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.

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

/// Clears all entries from an object store.
///
/// Parameters:
/// - `securityOrigin`: string (optional)
/// - `storageKey`: string (optional)
/// - `storageBucket`: Storage.StorageBucket (optional)
/// - `databaseName`: string
/// - `objectStoreName`: string
pub const CLEAR_OBJECT_STORE: &str = "IndexedDB.clearObjectStore";

/// Deletes a database.
///
/// Parameters:
/// - `securityOrigin`: string (optional)
/// - `storageKey`: string (optional)
/// - `storageBucket`: Storage.StorageBucket (optional)
/// - `databaseName`: string
pub const DELETE_DATABASE: &str = "IndexedDB.deleteDatabase";

/// Delete a range of entries from an object store
///
/// Parameters:
/// - `securityOrigin`: string (optional)
/// - `storageKey`: string (optional)
/// - `storageBucket`: Storage.StorageBucket (optional)
/// - `databaseName`: string
/// - `objectStoreName`: string
/// - `keyRange`: KeyRange
pub const DELETE_OBJECT_STORE_ENTRIES: &str = "IndexedDB.deleteObjectStoreEntries";

/// Disables events from backend.
pub const DISABLE: &str = "IndexedDB.disable";

/// Enables events from backend.
pub const ENABLE: &str = "IndexedDB.enable";

/// Requests data from object store or index.
///
/// Parameters:
/// - `securityOrigin`: string (optional)
/// - `storageKey`: string (optional)
/// - `storageBucket`: Storage.StorageBucket (optional)
/// - `databaseName`: string
/// - `objectStoreName`: string
/// - `indexName`: string (optional)
/// - `skipCount`: integer
/// - `pageSize`: integer
/// - `keyRange`: KeyRange (optional)
///
/// Returns: `objectStoreDataEntries`, `hasMore`
pub const REQUEST_DATA: &str = "IndexedDB.requestData";

/// Gets metadata of an object store.
///
/// Parameters:
/// - `securityOrigin`: string (optional)
/// - `storageKey`: string (optional)
/// - `storageBucket`: Storage.StorageBucket (optional)
/// - `databaseName`: string
/// - `objectStoreName`: string
///
/// Returns: `entriesCount`, `keyGeneratorValue`
pub const GET_METADATA: &str = "IndexedDB.getMetadata";

/// Requests database with given name in given frame.
///
/// Parameters:
/// - `securityOrigin`: string (optional)
/// - `storageKey`: string (optional)
/// - `storageBucket`: Storage.StorageBucket (optional)
/// - `databaseName`: string
///
/// Returns: `databaseWithObjectStores`
pub const REQUEST_DATABASE: &str = "IndexedDB.requestDatabase";

/// Requests database names for given security origin.
///
/// Parameters:
/// - `securityOrigin`: string (optional)
/// - `storageKey`: string (optional)
/// - `storageBucket`: Storage.StorageBucket (optional)
///
/// Returns: `databaseNames`
pub const REQUEST_DATABASE_NAMES: &str = "IndexedDB.requestDatabaseNames";