Skip to main content

cdp_driver/methods/
storage.rs

1// @generated by `just generate-methods` from protocol/*.json.
2// Do not edit by hand; edit xtask/ and regenerate.
3
4//! The `Storage` domain.
5//!
6//! Method names for the `Storage` domain, for use with
7//! [`CdpClient::call`](crate::CdpClient::call).
8//!
9//! This domain is experimental and may change without notice.
10
11/// Returns a storage key given a frame id. Deprecated. Please use
12/// Storage.getStorageKey instead.
13///
14/// Deprecated in the protocol.
15///
16/// Parameters:
17/// - `frameId`: Page.FrameId
18///
19/// Returns: `storageKey`
20pub const GET_STORAGE_KEY_FOR_FRAME: &str = "Storage.getStorageKeyForFrame";
21
22/// Returns storage key for the given frame. If no frame ID is provided, the
23/// storage key of the target executing this command is returned.
24///
25/// Experimental: may change without notice.
26///
27/// Parameters:
28/// - `frameId`: Page.FrameId (optional)
29///
30/// Returns: `storageKey`
31pub const GET_STORAGE_KEY: &str = "Storage.getStorageKey";
32
33/// Clears storage for origin.
34///
35/// Parameters:
36/// - `origin`: string
37/// - `storageTypes`: string
38pub const CLEAR_DATA_FOR_ORIGIN: &str = "Storage.clearDataForOrigin";
39
40/// Clears storage for storage key.
41///
42/// Parameters:
43/// - `storageKey`: string
44/// - `storageTypes`: string
45pub const CLEAR_DATA_FOR_STORAGE_KEY: &str = "Storage.clearDataForStorageKey";
46
47/// Returns all browser cookies.
48///
49/// Parameters:
50/// - `browserContextId`: Browser.BrowserContextID (optional)
51///
52/// Returns: `cookies`
53pub const GET_COOKIES: &str = "Storage.getCookies";
54
55/// Sets given cookies.
56///
57/// Parameters:
58/// - `cookies`: array
59/// - `browserContextId`: Browser.BrowserContextID (optional)
60pub const SET_COOKIES: &str = "Storage.setCookies";
61
62/// Clears cookies.
63///
64/// Parameters:
65/// - `browserContextId`: Browser.BrowserContextID (optional)
66pub const CLEAR_COOKIES: &str = "Storage.clearCookies";
67
68/// Returns usage and quota in bytes.
69///
70/// Parameters:
71/// - `origin`: string
72///
73/// Returns: `usage`, `quota`, `overrideActive`, `usageBreakdown`
74pub const GET_USAGE_AND_QUOTA: &str = "Storage.getUsageAndQuota";
75
76/// Override quota for the specified origin
77///
78/// Experimental: may change without notice.
79///
80/// Parameters:
81/// - `origin`: string
82/// - `quotaSize`: number (optional)
83pub const OVERRIDE_QUOTA_FOR_ORIGIN: &str = "Storage.overrideQuotaForOrigin";
84
85/// Registers origin to be notified when an update occurs to its cache storage
86/// list.
87///
88/// Parameters:
89/// - `origin`: string
90pub const TRACK_CACHE_STORAGE_FOR_ORIGIN: &str = "Storage.trackCacheStorageForOrigin";
91
92/// Registers storage key to be notified when an update occurs to its cache
93/// storage list.
94///
95/// Parameters:
96/// - `storageKey`: string
97pub const TRACK_CACHE_STORAGE_FOR_STORAGE_KEY: &str = "Storage.trackCacheStorageForStorageKey";
98
99/// Registers origin to be notified when an update occurs to its IndexedDB.
100///
101/// Parameters:
102/// - `origin`: string
103pub const TRACK_INDEXED_DB_FOR_ORIGIN: &str = "Storage.trackIndexedDBForOrigin";
104
105/// Registers storage key to be notified when an update occurs to its
106/// IndexedDB.
107///
108/// Parameters:
109/// - `storageKey`: string
110pub const TRACK_INDEXED_DB_FOR_STORAGE_KEY: &str = "Storage.trackIndexedDBForStorageKey";
111
112/// Unregisters origin from receiving notifications for cache storage.
113///
114/// Parameters:
115/// - `origin`: string
116pub const UNTRACK_CACHE_STORAGE_FOR_ORIGIN: &str = "Storage.untrackCacheStorageForOrigin";
117
118/// Unregisters storage key from receiving notifications for cache storage.
119///
120/// Parameters:
121/// - `storageKey`: string
122pub const UNTRACK_CACHE_STORAGE_FOR_STORAGE_KEY: &str = "Storage.untrackCacheStorageForStorageKey";
123
124/// Unregisters origin from receiving notifications for IndexedDB.
125///
126/// Parameters:
127/// - `origin`: string
128pub const UNTRACK_INDEXED_DB_FOR_ORIGIN: &str = "Storage.untrackIndexedDBForOrigin";
129
130/// Unregisters storage key from receiving notifications for IndexedDB.
131///
132/// Parameters:
133/// - `storageKey`: string
134pub const UNTRACK_INDEXED_DB_FOR_STORAGE_KEY: &str = "Storage.untrackIndexedDBForStorageKey";
135
136/// Returns the number of stored Trust Tokens per issuer for the current
137/// browsing context.
138///
139/// Experimental: may change without notice.
140///
141/// Returns: `tokens`
142pub const GET_TRUST_TOKENS: &str = "Storage.getTrustTokens";
143
144/// Removes all Trust Tokens issued by the provided issuerOrigin. Leaves other
145/// stored data, including the issuer's Redemption Records, intact.
146///
147/// Experimental: may change without notice.
148///
149/// Parameters:
150/// - `issuerOrigin`: string
151///
152/// Returns: `didDeleteTokens`
153pub const CLEAR_TRUST_TOKENS: &str = "Storage.clearTrustTokens";
154
155/// Returns all stored Private Verification Tokens for the current browsing
156/// context.
157///
158/// Experimental: may change without notice.
159///
160/// Returns: `tokens`
161pub const GET_PRIVATE_VERIFICATION_TOKENS: &str = "Storage.getPrivateVerificationTokens";
162
163/// Returns the configured Private Verification Tokens issuers and their
164/// redeemer origins.
165///
166/// Experimental: may change without notice.
167///
168/// Returns: `configs`
169pub const GET_PRIVATE_VERIFICATION_TOKENS_ISSUER_CONFIGS: &str =
170    "Storage.getPrivateVerificationTokensIssuerConfigs";
171
172/// Removes all Private Verification Tokens issued by the provided
173/// issuerOrigin.
174///
175/// Experimental: may change without notice.
176///
177/// Parameters:
178/// - `issuerOrigin`: string
179pub const CLEAR_PRIVATE_VERIFICATION_TOKENS: &str = "Storage.clearPrivateVerificationTokens";
180
181/// Removes a specific Private Verification Token by its ID.
182///
183/// Experimental: may change without notice.
184///
185/// Parameters:
186/// - `tokenId`: string
187pub const DELETE_PRIVATE_VERIFICATION_TOKEN: &str = "Storage.deletePrivateVerificationToken";
188
189/// Set tracking for Private Verification Tokens.
190///
191/// Experimental: may change without notice.
192///
193/// Parameters:
194/// - `enable`: boolean
195pub const SET_PRIVATE_VERIFICATION_TOKENS_TRACKING: &str =
196    "Storage.setPrivateVerificationTokensTracking";
197
198/// Set tracking for a storage key's buckets.
199///
200/// Experimental: may change without notice.
201///
202/// Parameters:
203/// - `storageKey`: string
204/// - `enable`: boolean
205pub const SET_STORAGE_BUCKET_TRACKING: &str = "Storage.setStorageBucketTracking";
206
207/// Deletes the Storage Bucket with the given storage key and bucket name.
208///
209/// Experimental: may change without notice.
210///
211/// Parameters:
212/// - `bucket`: StorageBucket
213pub const DELETE_STORAGE_BUCKET: &str = "Storage.deleteStorageBucket";
214
215/// Deletes state for sites identified as potential bounce trackers,
216/// immediately.
217///
218/// Experimental: may change without notice.
219///
220/// Returns: `deletedSites`
221pub const RUN_BOUNCE_TRACKING_MITIGATIONS: &str = "Storage.runBounceTrackingMitigations";