cdp-driver 0.3.0

Chrome DevTools Protocol client for AI agent browser control
Documentation
// @generated by `just generate-methods` from protocol/*.json.
// Do not edit by hand; edit xtask/ and regenerate.

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

/// Enables the |SmartCardEmulation| domain.
pub const ENABLE: &str = "SmartCardEmulation.enable";

/// Disables the |SmartCardEmulation| domain.
pub const DISABLE: &str = "SmartCardEmulation.disable";

/// Reports the successful result of a |SCardEstablishContext| call. This maps
/// to: PC/SC Lite:
/// <https://pcsclite.apdu.fr/api/group__API.html#gaa1b8970169fd4883a6dc4a8f43f19b67>
/// Microsoft:
/// <https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardestablishcontext>
///
/// Parameters:
/// - `requestId`: string
/// - `contextId`: integer
pub const REPORT_ESTABLISH_CONTEXT_RESULT: &str = "SmartCardEmulation.reportEstablishContextResult";

/// Reports the successful result of a |SCardReleaseContext| call. This maps
/// to: PC/SC Lite:
/// <https://pcsclite.apdu.fr/api/group__API.html#ga6aabcba7744c5c9419fdd6404f73a934>
/// Microsoft:
/// <https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardreleasecontext>
///
/// Parameters:
/// - `requestId`: string
pub const REPORT_RELEASE_CONTEXT_RESULT: &str = "SmartCardEmulation.reportReleaseContextResult";

/// Reports the successful result of a |SCardListReaders| call. This maps to:
/// PC/SC Lite:
/// <https://pcsclite.apdu.fr/api/group__API.html#ga93b07815789b3cf2629d439ecf20f0d9>
/// Microsoft:
/// <https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardlistreadersa>
///
/// Parameters:
/// - `requestId`: string
/// - `readers`: array
pub const REPORT_LIST_READERS_RESULT: &str = "SmartCardEmulation.reportListReadersResult";

/// Reports the successful result of a |SCardGetStatusChange| call. This maps
/// to: PC/SC Lite:
/// <https://pcsclite.apdu.fr/api/group__API.html#ga33247d5d1257d59e55647c3bb717db24>
/// Microsoft:
/// <https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardgetstatuschangea>
///
/// Parameters:
/// - `requestId`: string
/// - `readerStates`: array
pub const REPORT_GET_STATUS_CHANGE_RESULT: &str = "SmartCardEmulation.reportGetStatusChangeResult";

/// Reports the result of a |SCardBeginTransaction| call. On success, this
/// creates a new transaction object. This maps to: PC/SC Lite:
/// <https://pcsclite.apdu.fr/api/group__API.html#gaddb835dce01a0da1d6ca02d33ee7d861>
/// Microsoft:
/// <https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardbegintransaction>
///
/// Parameters:
/// - `requestId`: string
/// - `handle`: integer
pub const REPORT_BEGIN_TRANSACTION_RESULT: &str = "SmartCardEmulation.reportBeginTransactionResult";

/// Reports the successful result of a call that returns only a result code.
/// Used for: |SCardCancel|, |SCardDisconnect|, |SCardSetAttrib|,
/// |SCardEndTransaction|. This maps to: 1. SCardCancel PC/SC Lite:
/// <https://pcsclite.apdu.fr/api/group__API.html#gaacbbc0c6d6c0cbbeb4f4debf6fbeeee6>
/// Microsoft:
/// <https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardcancel>
/// 2. SCardDisconnect PC/SC Lite:
/// <https://pcsclite.apdu.fr/api/group__API.html#ga4be198045c73ec0deb79e66c0ca1738a>
/// Microsoft:
/// <https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scarddisconnect>
/// 3. SCardSetAttrib PC/SC Lite:
/// <https://pcsclite.apdu.fr/api/group__API.html#ga060f0038a4ddfd5dd2b8fadf3c3a2e4f>
/// Microsoft:
/// <https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardsetattrib>
/// 4. SCardEndTransaction PC/SC Lite:
/// <https://pcsclite.apdu.fr/api/group__API.html#gae8742473b404363e5c587f570d7e2f3b>
/// Microsoft:
/// <https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardendtransaction>
///
/// Parameters:
/// - `requestId`: string
pub const REPORT_PLAIN_RESULT: &str = "SmartCardEmulation.reportPlainResult";

/// Reports the successful result of a |SCardConnect| call. This maps to:
/// PC/SC Lite:
/// <https://pcsclite.apdu.fr/api/group__API.html#ga4e515829752e0a8dbc4d630696a8d6a5>
/// Microsoft:
/// <https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardconnecta>
///
/// Parameters:
/// - `requestId`: string
/// - `handle`: integer
/// - `activeProtocol`: Protocol (optional)
pub const REPORT_CONNECT_RESULT: &str = "SmartCardEmulation.reportConnectResult";

/// Reports the successful result of a call that sends back data on success.
/// Used for |SCardTransmit|, |SCardControl|, and |SCardGetAttrib|. This maps
/// to: 1. SCardTransmit PC/SC Lite:
/// <https://pcsclite.apdu.fr/api/group__API.html#ga9a2d77242a271310269065e64633ab99>
/// Microsoft:
/// <https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardtransmit>
/// 2. SCardControl PC/SC Lite:
/// <https://pcsclite.apdu.fr/api/group__API.html#gac3454d4657110fd7f753b2d3d8f4e32f>
/// Microsoft:
/// <https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardcontrol>
/// 3. SCardGetAttrib PC/SC Lite:
/// <https://pcsclite.apdu.fr/api/group__API.html#gaacfec51917255b7a25b94c5104961602>
/// Microsoft:
/// <https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardgetattrib>
///
/// Parameters:
/// - `requestId`: string
/// - `data`: string
pub const REPORT_DATA_RESULT: &str = "SmartCardEmulation.reportDataResult";

/// Reports the successful result of a |SCardStatus| call. This maps to: PC/SC
/// Lite:
/// <https://pcsclite.apdu.fr/api/group__API.html#gae49c3c894ad7ac12a5b896bde70d0382>
/// Microsoft:
/// <https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardstatusa>
///
/// Parameters:
/// - `requestId`: string
/// - `readerName`: string
/// - `state`: ConnectionState
/// - `atr`: string
/// - `protocol`: Protocol (optional)
pub const REPORT_STATUS_RESULT: &str = "SmartCardEmulation.reportStatusResult";

/// Reports an error result for the given request.
///
/// Parameters:
/// - `requestId`: string
/// - `resultCode`: ResultCode
pub const REPORT_ERROR: &str = "SmartCardEmulation.reportError";