1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
// @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`: integer (optional)
pub const SET_CREDENTIAL_PROPERTIES: &str = "WebAuthn.setCredentialProperties";