cdp-driver 0.5.0

Chrome DevTools Protocol (CDP) client for Rust: every command, event and type generated from the schema, with sessions, for browser automation and AI agents
Documentation
// @generated by `just generate-methods` from protocol/*.json.
// Do not edit by hand; edit xtask/ and regenerate.

//! This domain allows interacting with the FedCM dialog.
//!
//! Method names for the `FedCm` domain, for use with
//! [`CdpClient::call`](crate::CdpClient::call).
//!
//! This domain is experimental and may change without notice.

/// `FedCm.enable`
///
/// Parameters:
/// - `disableRejectionDelay`: boolean (optional)
pub const ENABLE: &str = "FedCm.enable";

/// `FedCm.disable`
pub const DISABLE: &str = "FedCm.disable";

/// `FedCm.selectAccount`
///
/// Parameters:
/// - `dialogId`: string
/// - `accountIndex`: integer
pub const SELECT_ACCOUNT: &str = "FedCm.selectAccount";

/// `FedCm.clickDialogButton`
///
/// Parameters:
/// - `dialogId`: string
/// - `dialogButton`: DialogButton
pub const CLICK_DIALOG_BUTTON: &str = "FedCm.clickDialogButton";

/// `FedCm.openUrl`
///
/// Parameters:
/// - `dialogId`: string
/// - `accountIndex`: integer
/// - `accountUrlType`: AccountUrlType
pub const OPEN_URL: &str = "FedCm.openUrl";

/// `FedCm.dismissDialog`
///
/// Parameters:
/// - `dialogId`: string
/// - `triggerCooldown`: boolean (optional)
pub const DISMISS_DIALOG: &str = "FedCm.dismissDialog";

/// Resets the cooldown time, if any, to allow the next FedCM call to show a
/// dialog even if one was recently dismissed by the user.
pub const RESET_COOLDOWN: &str = "FedCm.resetCooldown";