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 configuring virtual authenticators to test the WebAuthn
//! API.
//!
//! Method names for the `WebAuthn` domain, for use with
//! [`CdpClient::call`](crate::CdpClient::call).
//!
//! This domain is experimental and may change without notice.

/// Enable the WebAuthn domain and start intercepting credential storage and
/// retrieval with a virtual authenticator.
///
/// Parameters:
/// - `enableUI`: boolean (optional)
pub const ENABLE: &str = "WebAuthn.enable";

/// Disable the WebAuthn domain.
pub const DISABLE: &str = "WebAuthn.disable";

/// Creates and adds a virtual authenticator.
///
/// Parameters:
/// - `options`: VirtualAuthenticatorOptions
///
/// Returns: `authenticatorId`
pub const ADD_VIRTUAL_AUTHENTICATOR: &str = "WebAuthn.addVirtualAuthenticator";

/// Resets parameters isBogusSignature, isBadUV, isBadUP to false if they are
/// not present.
///
/// Parameters:
/// - `authenticatorId`: AuthenticatorId
/// - `isBogusSignature`: boolean (optional)
/// - `isBadUV`: boolean (optional)
/// - `isBadUP`: boolean (optional)
pub const SET_RESPONSE_OVERRIDE_BITS: &str = "WebAuthn.setResponseOverrideBits";

/// Removes the given authenticator.
///
/// Parameters:
/// - `authenticatorId`: AuthenticatorId
pub const REMOVE_VIRTUAL_AUTHENTICATOR: &str = "WebAuthn.removeVirtualAuthenticator";

/// Adds the credential to the specified authenticator.
///
/// Parameters:
/// - `authenticatorId`: AuthenticatorId
/// - `credential`: Credential
pub const ADD_CREDENTIAL: &str = "WebAuthn.addCredential";

/// Returns a single credential stored in the given virtual authenticator that
/// matches the credential ID.
///
/// Parameters:
/// - `authenticatorId`: AuthenticatorId
/// - `credentialId`: string
///
/// Returns: `credential`
pub const GET_CREDENTIAL: &str = "WebAuthn.getCredential";

/// Returns all the credentials stored in the given virtual authenticator.
///
/// Parameters:
/// - `authenticatorId`: AuthenticatorId
///
/// Returns: `credentials`
pub const GET_CREDENTIALS: &str = "WebAuthn.getCredentials";

/// Removes a credential from the authenticator.
///
/// Parameters:
/// - `authenticatorId`: AuthenticatorId
/// - `credentialId`: string
pub const REMOVE_CREDENTIAL: &str = "WebAuthn.removeCredential";

/// Clears all the credentials from the specified device.
///
/// Parameters:
/// - `authenticatorId`: AuthenticatorId
pub const CLEAR_CREDENTIALS: &str = "WebAuthn.clearCredentials";

/// Sets whether User Verification succeeds or fails for an authenticator. The
/// default is true.
///
/// Parameters:
/// - `authenticatorId`: AuthenticatorId
/// - `isUserVerified`: boolean
pub const SET_USER_VERIFIED: &str = "WebAuthn.setUserVerified";

/// Sets whether tests of user presence will succeed immediately (if true) or
/// fail to resolve (if false) for an authenticator. The default is true.
///
/// Parameters:
/// - `authenticatorId`: AuthenticatorId
/// - `enabled`: boolean
pub const SET_AUTOMATIC_PRESENCE_SIMULATION: &str = "WebAuthn.setAutomaticPresenceSimulation";

/// Allows setting credential properties.
/// <https://w3c.github.io/webauthn/#sctn-automation-set-credential-properties>
///
/// Parameters:
/// - `authenticatorId`: AuthenticatorId
/// - `credentialId`: string
/// - `backupEligibility`: boolean (optional)
/// - `backupState`: boolean (optional)
/// - `activeCmtgKeyIndex`: integer (optional)
/// - `generateCmtgKeyOnNextOperation`: boolean (optional)
/// - `signCount`: number (optional)
pub const SET_CREDENTIAL_PROPERTIES: &str = "WebAuthn.setCredentialProperties";