1#![allow(dead_code)]
3use super::browser;
4use super::network;
5use super::page;
6use super::target;
7#[allow(unused_imports)]
8use super::types::*;
9#[allow(unused_imports)]
10use derive_builder::Builder;
11#[allow(unused_imports)]
12use serde::{Deserialize, Serialize};
13#[allow(unused_imports)]
14use serde_json::Value as Json;
15pub type SerializedStorageKey = String;
16pub type InterestGroupAuctionId = String;
17pub type UnsignedInt64AsBase10 = String;
18pub type UnsignedInt128AsBase16 = String;
19pub type SignedInt64AsBase10 = String;
20#[allow(deprecated)]
21#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
22pub enum StorageType {
23 #[serde(rename = "cookies")]
24 Cookies,
25 #[serde(rename = "file_systems")]
26 FileSystems,
27 #[serde(rename = "indexeddb")]
28 Indexeddb,
29 #[serde(rename = "local_storage")]
30 LocalStorage,
31 #[serde(rename = "shader_cache")]
32 ShaderCache,
33 #[serde(rename = "websql")]
34 Websql,
35 #[serde(rename = "service_workers")]
36 ServiceWorkers,
37 #[serde(rename = "cache_storage")]
38 CacheStorage,
39 #[serde(rename = "interest_groups")]
40 InterestGroups,
41 #[serde(rename = "shared_storage")]
42 SharedStorage,
43 #[serde(rename = "storage_buckets")]
44 StorageBuckets,
45 #[serde(rename = "all")]
46 All,
47 #[serde(rename = "other")]
48 Other,
49}
50#[allow(deprecated)]
51#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
52pub enum InterestGroupAccessType {
53 #[serde(rename = "join")]
54 Join,
55 #[serde(rename = "leave")]
56 Leave,
57 #[serde(rename = "update")]
58 Update,
59 #[serde(rename = "loaded")]
60 Loaded,
61 #[serde(rename = "bid")]
62 Bid,
63 #[serde(rename = "win")]
64 Win,
65 #[serde(rename = "additionalBid")]
66 AdditionalBid,
67 #[serde(rename = "additionalBidWin")]
68 AdditionalBidWin,
69 #[serde(rename = "topLevelBid")]
70 TopLevelBid,
71 #[serde(rename = "topLevelAdditionalBid")]
72 TopLevelAdditionalBid,
73 #[serde(rename = "clear")]
74 Clear,
75}
76#[allow(deprecated)]
77#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
78pub enum InterestGroupAuctionEventType {
79 #[serde(rename = "started")]
80 Started,
81 #[serde(rename = "configResolved")]
82 ConfigResolved,
83}
84#[allow(deprecated)]
85#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
86pub enum InterestGroupAuctionFetchType {
87 #[serde(rename = "bidderJs")]
88 BidderJs,
89 #[serde(rename = "bidderWasm")]
90 BidderWasm,
91 #[serde(rename = "sellerJs")]
92 SellerJs,
93 #[serde(rename = "bidderTrustedSignals")]
94 BidderTrustedSignals,
95 #[serde(rename = "sellerTrustedSignals")]
96 SellerTrustedSignals,
97}
98#[allow(deprecated)]
99#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
100pub enum SharedStorageAccessScope {
101 #[serde(rename = "window")]
102 Window,
103 #[serde(rename = "sharedStorageWorklet")]
104 SharedStorageWorklet,
105 #[serde(rename = "protectedAudienceWorklet")]
106 ProtectedAudienceWorklet,
107 #[serde(rename = "header")]
108 Header,
109}
110#[allow(deprecated)]
111#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
112pub enum SharedStorageAccessMethod {
113 #[serde(rename = "addModule")]
114 AddModule,
115 #[serde(rename = "createWorklet")]
116 CreateWorklet,
117 #[serde(rename = "selectURL")]
118 SelectUrl,
119 #[serde(rename = "run")]
120 Run,
121 #[serde(rename = "batchUpdate")]
122 BatchUpdate,
123 #[serde(rename = "set")]
124 Set,
125 #[serde(rename = "append")]
126 Append,
127 #[serde(rename = "delete")]
128 Delete,
129 #[serde(rename = "clear")]
130 Clear,
131 #[serde(rename = "get")]
132 Get,
133 #[serde(rename = "keys")]
134 Keys,
135 #[serde(rename = "values")]
136 Values,
137 #[serde(rename = "entries")]
138 Entries,
139 #[serde(rename = "length")]
140 Length,
141 #[serde(rename = "remainingBudget")]
142 RemainingBudget,
143}
144#[allow(deprecated)]
145#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
146pub enum StorageBucketsDurability {
147 #[serde(rename = "relaxed")]
148 Relaxed,
149 #[serde(rename = "strict")]
150 Strict,
151}
152#[allow(deprecated)]
153#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
154pub enum AttributionReportingSourceType {
155 #[serde(rename = "navigation")]
156 Navigation,
157 #[serde(rename = "event")]
158 Event,
159}
160#[allow(deprecated)]
161#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
162pub enum AttributionReportingTriggerDataMatching {
163 #[serde(rename = "exact")]
164 Exact,
165 #[serde(rename = "modulus")]
166 Modulus,
167}
168#[allow(deprecated)]
169#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
170pub enum AttributionReportingSourceRegistrationResult {
171 #[serde(rename = "success")]
172 Success,
173 #[serde(rename = "internalError")]
174 InternalError,
175 #[serde(rename = "insufficientSourceCapacity")]
176 InsufficientSourceCapacity,
177 #[serde(rename = "insufficientUniqueDestinationCapacity")]
178 InsufficientUniqueDestinationCapacity,
179 #[serde(rename = "excessiveReportingOrigins")]
180 ExcessiveReportingOrigins,
181 #[serde(rename = "prohibitedByBrowserPolicy")]
182 ProhibitedByBrowserPolicy,
183 #[serde(rename = "successNoised")]
184 SuccessNoised,
185 #[serde(rename = "destinationReportingLimitReached")]
186 DestinationReportingLimitReached,
187 #[serde(rename = "destinationGlobalLimitReached")]
188 DestinationGlobalLimitReached,
189 #[serde(rename = "destinationBothLimitsReached")]
190 DestinationBothLimitsReached,
191 #[serde(rename = "reportingOriginsPerSiteLimitReached")]
192 ReportingOriginsPerSiteLimitReached,
193 #[serde(rename = "exceedsMaxChannelCapacity")]
194 ExceedsMaxChannelCapacity,
195 #[serde(rename = "exceedsMaxScopesChannelCapacity")]
196 ExceedsMaxScopesChannelCapacity,
197 #[serde(rename = "exceedsMaxTriggerStateCardinality")]
198 ExceedsMaxTriggerStateCardinality,
199 #[serde(rename = "exceedsMaxEventStatesLimit")]
200 ExceedsMaxEventStatesLimit,
201 #[serde(rename = "destinationPerDayReportingLimitReached")]
202 DestinationPerDayReportingLimitReached,
203}
204#[allow(deprecated)]
205#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
206pub enum AttributionReportingSourceRegistrationTimeConfig {
207 #[serde(rename = "include")]
208 Include,
209 #[serde(rename = "exclude")]
210 Exclude,
211}
212#[allow(deprecated)]
213#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
214pub enum AttributionReportingEventLevelResult {
215 #[serde(rename = "success")]
216 Success,
217 #[serde(rename = "successDroppedLowerPriority")]
218 SuccessDroppedLowerPriority,
219 #[serde(rename = "internalError")]
220 InternalError,
221 #[serde(rename = "noCapacityForAttributionDestination")]
222 NoCapacityForAttributionDestination,
223 #[serde(rename = "noMatchingSources")]
224 NoMatchingSources,
225 #[serde(rename = "deduplicated")]
226 Deduplicated,
227 #[serde(rename = "excessiveAttributions")]
228 ExcessiveAttributions,
229 #[serde(rename = "priorityTooLow")]
230 PriorityTooLow,
231 #[serde(rename = "neverAttributedSource")]
232 NeverAttributedSource,
233 #[serde(rename = "excessiveReportingOrigins")]
234 ExcessiveReportingOrigins,
235 #[serde(rename = "noMatchingSourceFilterData")]
236 NoMatchingSourceFilterData,
237 #[serde(rename = "prohibitedByBrowserPolicy")]
238 ProhibitedByBrowserPolicy,
239 #[serde(rename = "noMatchingConfigurations")]
240 NoMatchingConfigurations,
241 #[serde(rename = "excessiveReports")]
242 ExcessiveReports,
243 #[serde(rename = "falselyAttributedSource")]
244 FalselyAttributedSource,
245 #[serde(rename = "reportWindowPassed")]
246 ReportWindowPassed,
247 #[serde(rename = "notRegistered")]
248 NotRegistered,
249 #[serde(rename = "reportWindowNotStarted")]
250 ReportWindowNotStarted,
251 #[serde(rename = "noMatchingTriggerData")]
252 NoMatchingTriggerData,
253}
254#[allow(deprecated)]
255#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
256pub enum AttributionReportingAggregatableResult {
257 #[serde(rename = "success")]
258 Success,
259 #[serde(rename = "internalError")]
260 InternalError,
261 #[serde(rename = "noCapacityForAttributionDestination")]
262 NoCapacityForAttributionDestination,
263 #[serde(rename = "noMatchingSources")]
264 NoMatchingSources,
265 #[serde(rename = "excessiveAttributions")]
266 ExcessiveAttributions,
267 #[serde(rename = "excessiveReportingOrigins")]
268 ExcessiveReportingOrigins,
269 #[serde(rename = "noHistograms")]
270 NoHistograms,
271 #[serde(rename = "insufficientBudget")]
272 InsufficientBudget,
273 #[serde(rename = "insufficientNamedBudget")]
274 InsufficientNamedBudget,
275 #[serde(rename = "noMatchingSourceFilterData")]
276 NoMatchingSourceFilterData,
277 #[serde(rename = "notRegistered")]
278 NotRegistered,
279 #[serde(rename = "prohibitedByBrowserPolicy")]
280 ProhibitedByBrowserPolicy,
281 #[serde(rename = "deduplicated")]
282 Deduplicated,
283 #[serde(rename = "reportWindowPassed")]
284 ReportWindowPassed,
285 #[serde(rename = "excessiveReports")]
286 ExcessiveReports,
287}
288#[allow(deprecated)]
289#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
290pub enum AttributionReportingReportResult {
291 #[serde(rename = "sent")]
292 Sent,
293 #[serde(rename = "prohibited")]
294 Prohibited,
295 #[serde(rename = "failedToAssemble")]
296 FailedToAssemble,
297 #[serde(rename = "expired")]
298 Expired,
299}
300#[allow(deprecated)]
301#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
302#[builder(setter(into, strip_option))]
303#[serde(rename_all = "camelCase")]
304#[doc = "Usage for a storage type."]
305pub struct UsageForType {
306 #[doc = "Name of storage type."]
307 pub storage_type: StorageType,
308 #[serde(default)]
309 #[doc = "Storage usage (bytes)."]
310 pub usage: JsFloat,
311}
312#[allow(deprecated)]
313#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
314#[builder(setter(into, strip_option))]
315#[serde(rename_all = "camelCase")]
316#[doc = "Pair of issuer origin and number of available (signed, but not used) Trust\n Tokens from that issuer."]
317pub struct TrustTokens {
318 #[serde(default)]
319 pub issuer_origin: String,
320 #[serde(default)]
321 pub count: JsFloat,
322}
323#[allow(deprecated)]
324#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
325#[builder(setter(into, strip_option))]
326#[serde(rename_all = "camelCase")]
327#[doc = "Struct for a single key-value pair in an origin's shared storage."]
328pub struct SharedStorageEntry {
329 #[serde(default)]
330 pub key: String,
331 #[serde(default)]
332 pub value: String,
333}
334#[allow(deprecated)]
335#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
336#[builder(setter(into, strip_option))]
337#[serde(rename_all = "camelCase")]
338#[doc = "Details for an origin's shared storage."]
339pub struct SharedStorageMetadata {
340 #[doc = "Time when the origin's shared storage was last created."]
341 pub creation_time: network::TimeSinceEpoch,
342 #[serde(default)]
343 #[doc = "Number of key-value pairs stored in origin's shared storage."]
344 pub length: JsUInt,
345 #[serde(default)]
346 #[doc = "Current amount of bits of entropy remaining in the navigation budget."]
347 pub remaining_budget: JsFloat,
348 #[serde(default)]
349 #[doc = "Total number of bytes stored as key-value pairs in origin's shared\n storage."]
350 pub bytes_used: JsUInt,
351}
352#[allow(deprecated)]
353#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
354#[builder(setter(into, strip_option))]
355#[serde(rename_all = "camelCase")]
356#[doc = "Represents a dictionary object passed in as privateAggregationConfig to\n run or selectURL."]
357pub struct SharedStoragePrivateAggregationConfig {
358 #[builder(default)]
359 #[serde(skip_serializing_if = "Option::is_none")]
360 #[serde(default)]
361 #[doc = "The chosen aggregation service deployment."]
362 pub aggregation_coordinator_origin: Option<String>,
363 #[builder(default)]
364 #[serde(skip_serializing_if = "Option::is_none")]
365 #[serde(default)]
366 #[doc = "The context ID provided."]
367 pub context_id: Option<String>,
368 #[serde(default)]
369 #[doc = "Configures the maximum size allowed for filtering IDs."]
370 pub filtering_id_max_bytes: JsUInt,
371 #[builder(default)]
372 #[serde(skip_serializing_if = "Option::is_none")]
373 #[serde(default)]
374 #[doc = "The limit on the number of contributions in the final report."]
375 pub max_contributions: Option<JsUInt>,
376}
377#[allow(deprecated)]
378#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
379#[builder(setter(into, strip_option))]
380#[serde(rename_all = "camelCase")]
381#[doc = "Pair of reporting metadata details for a candidate URL for `selectURL()`."]
382pub struct SharedStorageReportingMetadata {
383 #[serde(default)]
384 pub event_type: String,
385 #[serde(default)]
386 pub reporting_url: String,
387}
388#[allow(deprecated)]
389#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
390#[builder(setter(into, strip_option))]
391#[serde(rename_all = "camelCase")]
392#[doc = "Bundles a candidate URL with its reporting metadata."]
393pub struct SharedStorageUrlWithMetadata {
394 #[serde(default)]
395 #[doc = "Spec of candidate URL."]
396 pub url: String,
397 #[doc = "Any associated reporting metadata."]
398 pub reporting_metadata: Vec<SharedStorageReportingMetadata>,
399}
400#[allow(deprecated)]
401#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
402#[builder(setter(into, strip_option))]
403#[serde(rename_all = "camelCase")]
404#[doc = "Bundles the parameters for shared storage access events whose\n presence/absence can vary according to SharedStorageAccessType."]
405pub struct SharedStorageAccessParams {
406 #[builder(default)]
407 #[serde(skip_serializing_if = "Option::is_none")]
408 #[serde(default)]
409 #[doc = "Spec of the module script URL.\n Present only for SharedStorageAccessMethods: addModule and\n createWorklet."]
410 pub script_source_url: Option<String>,
411 #[builder(default)]
412 #[serde(skip_serializing_if = "Option::is_none")]
413 #[serde(default)]
414 #[doc = "String denoting \"context-origin\", \"script-origin\", or a custom\n origin to be used as the worklet's data origin.\n Present only for SharedStorageAccessMethod: createWorklet."]
415 pub data_origin: Option<String>,
416 #[builder(default)]
417 #[serde(skip_serializing_if = "Option::is_none")]
418 #[serde(default)]
419 #[doc = "Name of the registered operation to be run.\n Present only for SharedStorageAccessMethods: run and selectURL."]
420 pub operation_name: Option<String>,
421 #[builder(default)]
422 #[serde(skip_serializing_if = "Option::is_none")]
423 #[serde(default)]
424 #[doc = "ID of the operation call.\n Present only for SharedStorageAccessMethods: run and selectURL."]
425 pub operation_id: Option<String>,
426 #[builder(default)]
427 #[serde(skip_serializing_if = "Option::is_none")]
428 #[serde(default)]
429 #[doc = "Whether or not to keep the worket alive for future run or selectURL\n calls.\n Present only for SharedStorageAccessMethods: run and selectURL."]
430 pub keep_alive: Option<bool>,
431 #[builder(default)]
432 #[serde(skip_serializing_if = "Option::is_none")]
433 #[doc = "Configures the private aggregation options.\n Present only for SharedStorageAccessMethods: run and selectURL."]
434 pub private_aggregation_config: Option<SharedStoragePrivateAggregationConfig>,
435 #[builder(default)]
436 #[serde(skip_serializing_if = "Option::is_none")]
437 #[serde(default)]
438 #[doc = "The operation's serialized data in bytes (converted to a string).\n Present only for SharedStorageAccessMethods: run and selectURL.\n TODO(crbug.com/401011862): Consider updating this parameter to binary."]
439 pub serialized_data: Option<String>,
440 #[builder(default)]
441 #[serde(skip_serializing_if = "Option::is_none")]
442 #[doc = "Array of candidate URLs' specs, along with any associated metadata.\n Present only for SharedStorageAccessMethod: selectURL."]
443 pub urls_with_metadata: Option<Vec<SharedStorageUrlWithMetadata>>,
444 #[builder(default)]
445 #[serde(skip_serializing_if = "Option::is_none")]
446 #[serde(default)]
447 #[doc = "Spec of the URN:UUID generated for a selectURL call.\n Present only for SharedStorageAccessMethod: selectURL."]
448 pub urn_uuid: Option<String>,
449 #[builder(default)]
450 #[serde(skip_serializing_if = "Option::is_none")]
451 #[serde(default)]
452 #[doc = "Key for a specific entry in an origin's shared storage.\n Present only for SharedStorageAccessMethods: set, append, delete, and\n get."]
453 pub key: Option<String>,
454 #[builder(default)]
455 #[serde(skip_serializing_if = "Option::is_none")]
456 #[serde(default)]
457 #[doc = "Value for a specific entry in an origin's shared storage.\n Present only for SharedStorageAccessMethods: set and append."]
458 pub value: Option<String>,
459 #[builder(default)]
460 #[serde(skip_serializing_if = "Option::is_none")]
461 #[serde(default)]
462 #[doc = "Whether or not to set an entry for a key if that key is already present.\n Present only for SharedStorageAccessMethod: set."]
463 pub ignore_if_present: Option<bool>,
464 #[builder(default)]
465 #[serde(skip_serializing_if = "Option::is_none")]
466 #[serde(default)]
467 #[doc = "A number denoting the (0-based) order of the worklet's\n creation relative to all other shared storage worklets created by\n documents using the current storage partition.\n Present only for SharedStorageAccessMethods: addModule, createWorklet."]
468 pub worklet_ordinal: Option<JsUInt>,
469 #[builder(default)]
470 #[serde(skip_serializing_if = "Option::is_none")]
471 #[doc = "Hex representation of the DevTools token used as the TargetID for the\n associated shared storage worklet.\n Present only for SharedStorageAccessMethods: addModule, createWorklet,\n run, selectURL, and any other SharedStorageAccessMethod when the\n SharedStorageAccessScope is sharedStorageWorklet."]
472 pub worklet_target_id: Option<target::TargetId>,
473 #[builder(default)]
474 #[serde(skip_serializing_if = "Option::is_none")]
475 #[serde(default)]
476 #[doc = "Name of the lock to be acquired, if present.\n Optionally present only for SharedStorageAccessMethods: batchUpdate,\n set, append, delete, and clear."]
477 pub with_lock: Option<String>,
478 #[builder(default)]
479 #[serde(skip_serializing_if = "Option::is_none")]
480 #[serde(default)]
481 #[doc = "If the method has been called as part of a batchUpdate, then this\n number identifies the batch to which it belongs.\n Optionally present only for SharedStorageAccessMethods:\n batchUpdate (required), set, append, delete, and clear."]
482 pub batch_update_id: Option<String>,
483 #[builder(default)]
484 #[serde(skip_serializing_if = "Option::is_none")]
485 #[serde(default)]
486 #[doc = "Number of modifier methods sent in batch.\n Present only for SharedStorageAccessMethod: batchUpdate."]
487 pub batch_size: Option<JsUInt>,
488}
489#[allow(deprecated)]
490#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
491#[builder(setter(into, strip_option))]
492#[serde(rename_all = "camelCase")]
493pub struct StorageBucket {
494 pub storage_key: SerializedStorageKey,
495 #[builder(default)]
496 #[serde(skip_serializing_if = "Option::is_none")]
497 #[serde(default)]
498 #[doc = "If not specified, it is the default bucket of the storageKey."]
499 pub name: Option<String>,
500}
501#[allow(deprecated)]
502#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
503#[builder(setter(into, strip_option))]
504#[serde(rename_all = "camelCase")]
505pub struct StorageBucketInfo {
506 pub bucket: StorageBucket,
507 #[serde(default)]
508 pub id: String,
509 pub expiration: network::TimeSinceEpoch,
510 #[serde(default)]
511 #[doc = "Storage quota (bytes)."]
512 pub quota: JsFloat,
513 #[serde(default)]
514 pub persistent: bool,
515 pub durability: StorageBucketsDurability,
516}
517#[allow(deprecated)]
518#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
519#[builder(setter(into, strip_option))]
520#[serde(rename_all = "camelCase")]
521pub struct AttributionReportingFilterDataEntry {
522 #[serde(default)]
523 pub key: String,
524 #[serde(default)]
525 pub values: Vec<String>,
526}
527#[allow(deprecated)]
528#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
529#[builder(setter(into, strip_option))]
530#[serde(rename_all = "camelCase")]
531pub struct AttributionReportingFilterConfig {
532 pub filter_values: Vec<AttributionReportingFilterDataEntry>,
533 #[builder(default)]
534 #[serde(skip_serializing_if = "Option::is_none")]
535 #[serde(default)]
536 #[doc = "duration in seconds"]
537 pub lookback_window: Option<JsUInt>,
538}
539#[allow(deprecated)]
540#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
541#[builder(setter(into, strip_option))]
542#[serde(rename_all = "camelCase")]
543pub struct AttributionReportingFilterPair {
544 pub filters: Vec<AttributionReportingFilterConfig>,
545 pub not_filters: Vec<AttributionReportingFilterConfig>,
546}
547#[allow(deprecated)]
548#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
549#[builder(setter(into, strip_option))]
550#[serde(rename_all = "camelCase")]
551pub struct AttributionReportingAggregationKeysEntry {
552 #[serde(default)]
553 pub key: String,
554 pub value: UnsignedInt128AsBase16,
555}
556#[allow(deprecated)]
557#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
558#[builder(setter(into, strip_option))]
559#[serde(rename_all = "camelCase")]
560pub struct AttributionReportingEventReportWindows {
561 #[serde(default)]
562 #[doc = "duration in seconds"]
563 pub start: JsUInt,
564 #[serde(default)]
565 #[doc = "duration in seconds"]
566 pub ends: Vec<JsUInt>,
567}
568#[allow(deprecated)]
569#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
570#[builder(setter(into, strip_option))]
571#[serde(rename_all = "camelCase")]
572pub struct AttributionReportingAggregatableDebugReportingData {
573 pub key_piece: UnsignedInt128AsBase16,
574 #[serde(default)]
575 #[doc = "number instead of integer because not all uint32 can be represented by\n int"]
576 pub value: JsFloat,
577 #[serde(default)]
578 pub types: Vec<String>,
579}
580#[allow(deprecated)]
581#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
582#[builder(setter(into, strip_option))]
583#[serde(rename_all = "camelCase")]
584pub struct AttributionReportingAggregatableDebugReportingConfig {
585 #[builder(default)]
586 #[serde(skip_serializing_if = "Option::is_none")]
587 #[serde(default)]
588 #[doc = "number instead of integer because not all uint32 can be represented by\n int, only present for source registrations"]
589 pub budget: Option<JsFloat>,
590 pub key_piece: UnsignedInt128AsBase16,
591 pub debug_data: Vec<AttributionReportingAggregatableDebugReportingData>,
592 #[builder(default)]
593 #[serde(skip_serializing_if = "Option::is_none")]
594 #[serde(default)]
595 pub aggregation_coordinator_origin: Option<String>,
596}
597#[allow(deprecated)]
598#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
599#[builder(setter(into, strip_option))]
600#[serde(rename_all = "camelCase")]
601pub struct AttributionScopesData {
602 #[serde(default)]
603 pub values: Vec<String>,
604 #[serde(default)]
605 #[doc = "number instead of integer because not all uint32 can be represented by\n int"]
606 pub limit: JsFloat,
607 #[serde(default)]
608 pub max_event_states: JsFloat,
609}
610#[allow(deprecated)]
611#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
612#[builder(setter(into, strip_option))]
613#[serde(rename_all = "camelCase")]
614pub struct AttributionReportingNamedBudgetDef {
615 #[serde(default)]
616 pub name: String,
617 #[serde(default)]
618 pub budget: JsUInt,
619}
620#[allow(deprecated)]
621#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
622#[builder(setter(into, strip_option))]
623#[serde(rename_all = "camelCase")]
624pub struct AttributionReportingSourceRegistration {
625 pub time: network::TimeSinceEpoch,
626 #[serde(default)]
627 #[doc = "duration in seconds"]
628 pub expiry: JsUInt,
629 #[serde(default)]
630 #[doc = "number instead of integer because not all uint32 can be represented by\n int"]
631 pub trigger_data: Vec<JsFloat>,
632 pub event_report_windows: AttributionReportingEventReportWindows,
633 #[serde(default)]
634 #[doc = "duration in seconds"]
635 pub aggregatable_report_window: JsUInt,
636 pub r#type: AttributionReportingSourceType,
637 #[serde(default)]
638 pub source_origin: String,
639 #[serde(default)]
640 pub reporting_origin: String,
641 #[serde(default)]
642 pub destination_sites: Vec<String>,
643 pub event_id: UnsignedInt64AsBase10,
644 pub priority: SignedInt64AsBase10,
645 pub filter_data: Vec<AttributionReportingFilterDataEntry>,
646 pub aggregation_keys: Vec<AttributionReportingAggregationKeysEntry>,
647 #[builder(default)]
648 #[serde(skip_serializing_if = "Option::is_none")]
649 pub debug_key: Option<UnsignedInt64AsBase10>,
650 pub trigger_data_matching: AttributionReportingTriggerDataMatching,
651 pub destination_limit_priority: SignedInt64AsBase10,
652 pub aggregatable_debug_reporting_config: AttributionReportingAggregatableDebugReportingConfig,
653 #[builder(default)]
654 #[serde(skip_serializing_if = "Option::is_none")]
655 pub scopes_data: Option<AttributionScopesData>,
656 #[serde(default)]
657 pub max_event_level_reports: JsUInt,
658 pub named_budgets: Vec<AttributionReportingNamedBudgetDef>,
659 #[serde(default)]
660 pub debug_reporting: bool,
661 #[serde(default)]
662 pub event_level_epsilon: JsFloat,
663}
664#[allow(deprecated)]
665#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
666#[builder(setter(into, strip_option))]
667#[serde(rename_all = "camelCase")]
668pub struct AttributionReportingAggregatableValueDictEntry {
669 #[serde(default)]
670 pub key: String,
671 #[serde(default)]
672 #[doc = "number instead of integer because not all uint32 can be represented by\n int"]
673 pub value: JsFloat,
674 pub filtering_id: UnsignedInt64AsBase10,
675}
676#[allow(deprecated)]
677#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
678#[builder(setter(into, strip_option))]
679#[serde(rename_all = "camelCase")]
680pub struct AttributionReportingAggregatableValueEntry {
681 pub values: Vec<AttributionReportingAggregatableValueDictEntry>,
682 pub filters: AttributionReportingFilterPair,
683}
684#[allow(deprecated)]
685#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
686#[builder(setter(into, strip_option))]
687#[serde(rename_all = "camelCase")]
688pub struct AttributionReportingEventTriggerData {
689 pub data: UnsignedInt64AsBase10,
690 pub priority: SignedInt64AsBase10,
691 #[builder(default)]
692 #[serde(skip_serializing_if = "Option::is_none")]
693 pub dedup_key: Option<UnsignedInt64AsBase10>,
694 pub filters: AttributionReportingFilterPair,
695}
696#[allow(deprecated)]
697#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
698#[builder(setter(into, strip_option))]
699#[serde(rename_all = "camelCase")]
700pub struct AttributionReportingAggregatableTriggerData {
701 pub key_piece: UnsignedInt128AsBase16,
702 #[serde(default)]
703 pub source_keys: Vec<String>,
704 pub filters: AttributionReportingFilterPair,
705}
706#[allow(deprecated)]
707#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
708#[builder(setter(into, strip_option))]
709#[serde(rename_all = "camelCase")]
710pub struct AttributionReportingAggregatableDedupKey {
711 #[builder(default)]
712 #[serde(skip_serializing_if = "Option::is_none")]
713 pub dedup_key: Option<UnsignedInt64AsBase10>,
714 pub filters: AttributionReportingFilterPair,
715}
716#[allow(deprecated)]
717#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
718#[builder(setter(into, strip_option))]
719#[serde(rename_all = "camelCase")]
720pub struct AttributionReportingNamedBudgetCandidate {
721 #[builder(default)]
722 #[serde(skip_serializing_if = "Option::is_none")]
723 #[serde(default)]
724 pub name: Option<String>,
725 pub filters: AttributionReportingFilterPair,
726}
727#[allow(deprecated)]
728#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
729#[builder(setter(into, strip_option))]
730#[serde(rename_all = "camelCase")]
731pub struct AttributionReportingTriggerRegistration {
732 pub filters: AttributionReportingFilterPair,
733 #[builder(default)]
734 #[serde(skip_serializing_if = "Option::is_none")]
735 pub debug_key: Option<UnsignedInt64AsBase10>,
736 pub aggregatable_dedup_keys: Vec<AttributionReportingAggregatableDedupKey>,
737 pub event_trigger_data: Vec<AttributionReportingEventTriggerData>,
738 pub aggregatable_trigger_data: Vec<AttributionReportingAggregatableTriggerData>,
739 pub aggregatable_values: Vec<AttributionReportingAggregatableValueEntry>,
740 #[serde(default)]
741 pub aggregatable_filtering_id_max_bytes: JsUInt,
742 #[serde(default)]
743 pub debug_reporting: bool,
744 #[builder(default)]
745 #[serde(skip_serializing_if = "Option::is_none")]
746 #[serde(default)]
747 pub aggregation_coordinator_origin: Option<String>,
748 pub source_registration_time_config: AttributionReportingSourceRegistrationTimeConfig,
749 #[builder(default)]
750 #[serde(skip_serializing_if = "Option::is_none")]
751 #[serde(default)]
752 pub trigger_context_id: Option<String>,
753 pub aggregatable_debug_reporting_config: AttributionReportingAggregatableDebugReportingConfig,
754 #[serde(default)]
755 pub scopes: Vec<String>,
756 pub named_budgets: Vec<AttributionReportingNamedBudgetCandidate>,
757}
758#[allow(deprecated)]
759#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
760#[builder(setter(into, strip_option))]
761#[serde(rename_all = "camelCase")]
762#[doc = "A single Related Website Set object."]
763pub struct RelatedWebsiteSet {
764 #[serde(default)]
765 #[doc = "The primary site of this set, along with the ccTLDs if there is any."]
766 pub primary_sites: Vec<String>,
767 #[serde(default)]
768 #[doc = "The associated sites of this set, along with the ccTLDs if there is any."]
769 pub associated_sites: Vec<String>,
770 #[serde(default)]
771 #[doc = "The service sites of this set, along with the ccTLDs if there is any."]
772 pub service_sites: Vec<String>,
773}
774#[allow(deprecated)]
775#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
776#[builder(setter(into, strip_option))]
777#[serde(rename_all = "camelCase")]
778#[doc = "Returns a storage key given a frame id.\n Deprecated. Please use Storage.getStorageKey instead."]
779#[deprecated]
780pub struct GetStorageKeyForFrame {
781 pub frame_id: page::FrameId,
782}
783#[allow(deprecated)]
784#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
785#[builder(setter(into, strip_option))]
786#[serde(rename_all = "camelCase")]
787#[doc = "Returns storage key for the given frame. If no frame ID is provided,\n the storage key of the target executing this command is returned."]
788pub struct GetStorageKey {
789 #[builder(default)]
790 #[serde(skip_serializing_if = "Option::is_none")]
791 pub frame_id: Option<page::FrameId>,
792}
793#[allow(deprecated)]
794#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
795#[builder(setter(into, strip_option))]
796#[serde(rename_all = "camelCase")]
797#[doc = "Clears storage for origin."]
798pub struct ClearDataForOrigin {
799 #[serde(default)]
800 #[doc = "Security origin."]
801 pub origin: String,
802 #[serde(default)]
803 #[doc = "Comma separated list of StorageType to clear."]
804 pub storage_types: String,
805}
806#[allow(deprecated)]
807#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
808#[builder(setter(into, strip_option))]
809#[serde(rename_all = "camelCase")]
810#[doc = "Clears storage for storage key."]
811pub struct ClearDataForStorageKey {
812 #[serde(default)]
813 #[doc = "Storage key."]
814 pub storage_key: String,
815 #[serde(default)]
816 #[doc = "Comma separated list of StorageType to clear."]
817 pub storage_types: String,
818}
819#[allow(deprecated)]
820#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
821#[builder(setter(into, strip_option))]
822#[serde(rename_all = "camelCase")]
823#[doc = "Returns all browser cookies."]
824pub struct GetCookies {
825 #[builder(default)]
826 #[serde(skip_serializing_if = "Option::is_none")]
827 #[doc = "Browser context to use when called on the browser endpoint."]
828 pub browser_context_id: Option<browser::BrowserContextId>,
829}
830#[allow(deprecated)]
831#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
832#[builder(setter(into, strip_option))]
833#[serde(rename_all = "camelCase")]
834#[doc = "Sets given cookies."]
835pub struct SetCookies {
836 #[doc = "Cookies to be set."]
837 pub cookies: network::CookieParam,
838 #[builder(default)]
839 #[serde(skip_serializing_if = "Option::is_none")]
840 #[doc = "Browser context to use when called on the browser endpoint."]
841 pub browser_context_id: Option<browser::BrowserContextId>,
842}
843#[allow(deprecated)]
844#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
845#[builder(setter(into, strip_option))]
846#[serde(rename_all = "camelCase")]
847#[doc = "Clears cookies."]
848pub struct ClearCookies {
849 #[builder(default)]
850 #[serde(skip_serializing_if = "Option::is_none")]
851 #[doc = "Browser context to use when called on the browser endpoint."]
852 pub browser_context_id: Option<browser::BrowserContextId>,
853}
854#[allow(deprecated)]
855#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
856#[builder(setter(into, strip_option))]
857#[serde(rename_all = "camelCase")]
858#[doc = "Returns usage and quota in bytes."]
859pub struct GetUsageAndQuota {
860 #[serde(default)]
861 #[doc = "Security origin."]
862 pub origin: String,
863}
864#[allow(deprecated)]
865#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
866#[builder(setter(into, strip_option))]
867#[serde(rename_all = "camelCase")]
868#[doc = "Override quota for the specified origin"]
869pub struct OverrideQuotaForOrigin {
870 #[serde(default)]
871 #[doc = "Security origin."]
872 pub origin: String,
873 #[builder(default)]
874 #[serde(skip_serializing_if = "Option::is_none")]
875 #[serde(default)]
876 #[doc = "The quota size (in bytes) to override the original quota with.\n If this is called multiple times, the overridden quota will be equal to\n the quotaSize provided in the final call. If this is called without\n specifying a quotaSize, the quota will be reset to the default value for\n the specified origin. If this is called multiple times with different\n origins, the override will be maintained for each origin until it is\n disabled (called without a quotaSize)."]
877 pub quota_size: Option<JsFloat>,
878}
879#[allow(deprecated)]
880#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
881#[builder(setter(into, strip_option))]
882#[serde(rename_all = "camelCase")]
883#[doc = "Registers origin to be notified when an update occurs to its cache storage list."]
884pub struct TrackCacheStorageForOrigin {
885 #[serde(default)]
886 #[doc = "Security origin."]
887 pub origin: String,
888}
889#[allow(deprecated)]
890#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
891#[builder(setter(into, strip_option))]
892#[serde(rename_all = "camelCase")]
893#[doc = "Registers storage key to be notified when an update occurs to its cache storage list."]
894pub struct TrackCacheStorageForStorageKey {
895 #[serde(default)]
896 #[doc = "Storage key."]
897 pub storage_key: String,
898}
899#[allow(deprecated)]
900#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
901#[builder(setter(into, strip_option))]
902#[serde(rename_all = "camelCase")]
903#[doc = "Registers origin to be notified when an update occurs to its IndexedDB."]
904pub struct TrackIndexedDBForOrigin {
905 #[serde(default)]
906 #[doc = "Security origin."]
907 pub origin: String,
908}
909#[allow(deprecated)]
910#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
911#[builder(setter(into, strip_option))]
912#[serde(rename_all = "camelCase")]
913#[doc = "Registers storage key to be notified when an update occurs to its IndexedDB."]
914pub struct TrackIndexedDBForStorageKey {
915 #[serde(default)]
916 #[doc = "Storage key."]
917 pub storage_key: String,
918}
919#[allow(deprecated)]
920#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
921#[builder(setter(into, strip_option))]
922#[serde(rename_all = "camelCase")]
923#[doc = "Unregisters origin from receiving notifications for cache storage."]
924pub struct UntrackCacheStorageForOrigin {
925 #[serde(default)]
926 #[doc = "Security origin."]
927 pub origin: String,
928}
929#[allow(deprecated)]
930#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
931#[builder(setter(into, strip_option))]
932#[serde(rename_all = "camelCase")]
933#[doc = "Unregisters storage key from receiving notifications for cache storage."]
934pub struct UntrackCacheStorageForStorageKey {
935 #[serde(default)]
936 #[doc = "Storage key."]
937 pub storage_key: String,
938}
939#[allow(deprecated)]
940#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
941#[builder(setter(into, strip_option))]
942#[serde(rename_all = "camelCase")]
943#[doc = "Unregisters origin from receiving notifications for IndexedDB."]
944pub struct UntrackIndexedDBForOrigin {
945 #[serde(default)]
946 #[doc = "Security origin."]
947 pub origin: String,
948}
949#[allow(deprecated)]
950#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
951#[builder(setter(into, strip_option))]
952#[serde(rename_all = "camelCase")]
953#[doc = "Unregisters storage key from receiving notifications for IndexedDB."]
954pub struct UntrackIndexedDBForStorageKey {
955 #[serde(default)]
956 #[doc = "Storage key."]
957 pub storage_key: String,
958}
959#[allow(deprecated)]
960#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
961pub struct GetTrustTokens(pub Option<Json>);
962#[allow(deprecated)]
963#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
964#[builder(setter(into, strip_option))]
965#[serde(rename_all = "camelCase")]
966#[doc = "Removes all Trust Tokens issued by the provided issuerOrigin.\n Leaves other stored data, including the issuer's Redemption Records, intact."]
967pub struct ClearTrustTokens {
968 #[serde(default)]
969 pub issuer_origin: String,
970}
971#[allow(deprecated)]
972#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
973#[builder(setter(into, strip_option))]
974#[serde(rename_all = "camelCase")]
975#[doc = "Gets details for a named interest group."]
976pub struct GetInterestGroupDetails {
977 #[serde(default)]
978 pub owner_origin: String,
979 #[serde(default)]
980 pub name: String,
981}
982#[allow(deprecated)]
983#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
984#[builder(setter(into, strip_option))]
985#[serde(rename_all = "camelCase")]
986#[doc = "Enables/Disables issuing of interestGroupAccessed events."]
987pub struct SetInterestGroupTracking {
988 #[serde(default)]
989 pub enable: bool,
990}
991#[allow(deprecated)]
992#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
993#[builder(setter(into, strip_option))]
994#[serde(rename_all = "camelCase")]
995#[doc = "Enables/Disables issuing of interestGroupAuctionEventOccurred and\n interestGroupAuctionNetworkRequestCreated."]
996pub struct SetInterestGroupAuctionTracking {
997 #[serde(default)]
998 pub enable: bool,
999}
1000#[allow(deprecated)]
1001#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
1002#[builder(setter(into, strip_option))]
1003#[serde(rename_all = "camelCase")]
1004#[doc = "Gets metadata for an origin's shared storage."]
1005pub struct GetSharedStorageMetadata {
1006 #[serde(default)]
1007 pub owner_origin: String,
1008}
1009#[allow(deprecated)]
1010#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
1011#[builder(setter(into, strip_option))]
1012#[serde(rename_all = "camelCase")]
1013#[doc = "Gets the entries in an given origin's shared storage."]
1014pub struct GetSharedStorageEntries {
1015 #[serde(default)]
1016 pub owner_origin: String,
1017}
1018#[allow(deprecated)]
1019#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
1020#[builder(setter(into, strip_option))]
1021#[serde(rename_all = "camelCase")]
1022#[doc = "Sets entry with `key` and `value` for a given origin's shared storage."]
1023pub struct SetSharedStorageEntry {
1024 #[serde(default)]
1025 pub owner_origin: String,
1026 #[serde(default)]
1027 pub key: String,
1028 #[serde(default)]
1029 pub value: String,
1030 #[builder(default)]
1031 #[serde(skip_serializing_if = "Option::is_none")]
1032 #[serde(default)]
1033 #[doc = "If `ignoreIfPresent` is included and true, then only sets the entry if\n `key` doesn't already exist."]
1034 pub ignore_if_present: Option<bool>,
1035}
1036#[allow(deprecated)]
1037#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
1038#[builder(setter(into, strip_option))]
1039#[serde(rename_all = "camelCase")]
1040#[doc = "Deletes entry for `key` (if it exists) for a given origin's shared storage."]
1041pub struct DeleteSharedStorageEntry {
1042 #[serde(default)]
1043 pub owner_origin: String,
1044 #[serde(default)]
1045 pub key: String,
1046}
1047#[allow(deprecated)]
1048#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
1049#[builder(setter(into, strip_option))]
1050#[serde(rename_all = "camelCase")]
1051#[doc = "Clears all entries for a given origin's shared storage."]
1052pub struct ClearSharedStorageEntries {
1053 #[serde(default)]
1054 pub owner_origin: String,
1055}
1056#[allow(deprecated)]
1057#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
1058#[builder(setter(into, strip_option))]
1059#[serde(rename_all = "camelCase")]
1060#[doc = "Resets the budget for `ownerOrigin` by clearing all budget withdrawals."]
1061pub struct ResetSharedStorageBudget {
1062 #[serde(default)]
1063 pub owner_origin: String,
1064}
1065#[allow(deprecated)]
1066#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
1067#[builder(setter(into, strip_option))]
1068#[serde(rename_all = "camelCase")]
1069#[doc = "Enables/disables issuing of sharedStorageAccessed events."]
1070pub struct SetSharedStorageTracking {
1071 #[serde(default)]
1072 pub enable: bool,
1073}
1074#[allow(deprecated)]
1075#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
1076#[builder(setter(into, strip_option))]
1077#[serde(rename_all = "camelCase")]
1078#[doc = "Set tracking for a storage key's buckets."]
1079pub struct SetStorageBucketTracking {
1080 #[serde(default)]
1081 pub storage_key: String,
1082 #[serde(default)]
1083 pub enable: bool,
1084}
1085#[allow(deprecated)]
1086#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
1087#[builder(setter(into, strip_option))]
1088#[serde(rename_all = "camelCase")]
1089#[doc = "Deletes the Storage Bucket with the given storage key and bucket name."]
1090pub struct DeleteStorageBucket {
1091 pub bucket: StorageBucket,
1092}
1093#[allow(deprecated)]
1094#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
1095pub struct RunBounceTrackingMitigations(pub Option<Json>);
1096#[allow(deprecated)]
1097#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
1098#[builder(setter(into, strip_option))]
1099#[serde(rename_all = "camelCase")]
1100#[doc = "<https://wicg.github.io/attribution-reporting-api/>"]
1101pub struct SetAttributionReportingLocalTestingMode {
1102 #[serde(default)]
1103 #[doc = "If enabled, noise is suppressed and reports are sent immediately."]
1104 pub enabled: bool,
1105}
1106#[allow(deprecated)]
1107#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
1108#[builder(setter(into, strip_option))]
1109#[serde(rename_all = "camelCase")]
1110#[doc = "Enables/disables issuing of Attribution Reporting events."]
1111pub struct SetAttributionReportingTracking {
1112 #[serde(default)]
1113 pub enable: bool,
1114}
1115#[allow(deprecated)]
1116#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
1117pub struct SendPendingAttributionReports(pub Option<Json>);
1118#[allow(deprecated)]
1119#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
1120pub struct GetRelatedWebsiteSets(pub Option<Json>);
1121#[allow(deprecated)]
1122#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
1123#[builder(setter(into, strip_option))]
1124#[serde(rename_all = "camelCase")]
1125#[doc = "Returns the list of URLs from a page and its embedded resources that match\n existing grace period URL pattern rules.\n <https://developers.google.com/privacy-sandbox/cookies/temporary-exceptions/grace-period>"]
1126pub struct GetAffectedUrlsForThirdPartyCookieMetadata {
1127 #[serde(default)]
1128 #[doc = "The URL of the page currently being visited."]
1129 pub first_party_url: String,
1130 #[serde(default)]
1131 #[doc = "The list of embedded resource URLs from the page."]
1132 pub third_party_urls: Vec<String>,
1133}
1134#[allow(deprecated)]
1135#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
1136#[builder(setter(into, strip_option))]
1137#[serde(rename_all = "camelCase")]
1138pub struct SetProtectedAudienceKAnonymity {
1139 #[serde(default)]
1140 pub owner: String,
1141 #[serde(default)]
1142 pub name: String,
1143 #[serde(default)]
1144 pub hashes: Vec<String>,
1145}
1146#[allow(deprecated)]
1147#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
1148#[serde(rename_all = "camelCase")]
1149#[doc = "Returns a storage key given a frame id.\n Deprecated. Please use Storage.getStorageKey instead."]
1150#[deprecated]
1151pub struct GetStorageKeyForFrameReturnObject {
1152 pub storage_key: SerializedStorageKey,
1153}
1154#[allow(deprecated)]
1155#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
1156#[serde(rename_all = "camelCase")]
1157#[doc = "Returns storage key for the given frame. If no frame ID is provided,\n the storage key of the target executing this command is returned."]
1158pub struct GetStorageKeyReturnObject {
1159 pub storage_key: SerializedStorageKey,
1160}
1161#[allow(deprecated)]
1162#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
1163#[doc = "Clears storage for origin."]
1164pub struct ClearDataForOriginReturnObject(pub Option<Json>);
1165#[allow(deprecated)]
1166#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
1167#[doc = "Clears storage for storage key."]
1168pub struct ClearDataForStorageKeyReturnObject(pub Option<Json>);
1169#[allow(deprecated)]
1170#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
1171#[serde(rename_all = "camelCase")]
1172#[doc = "Returns all browser cookies."]
1173pub struct GetCookiesReturnObject {
1174 #[doc = "Array of cookie objects."]
1175 pub cookies: network::Cookie,
1176}
1177#[allow(deprecated)]
1178#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
1179#[doc = "Sets given cookies."]
1180pub struct SetCookiesReturnObject(pub Option<Json>);
1181#[allow(deprecated)]
1182#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
1183#[doc = "Clears cookies."]
1184pub struct ClearCookiesReturnObject(pub Option<Json>);
1185#[allow(deprecated)]
1186#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
1187#[serde(rename_all = "camelCase")]
1188#[doc = "Returns usage and quota in bytes."]
1189pub struct GetUsageAndQuotaReturnObject {
1190 #[serde(default)]
1191 #[doc = "Storage usage (bytes)."]
1192 pub usage: JsFloat,
1193 #[serde(default)]
1194 #[doc = "Storage quota (bytes)."]
1195 pub quota: JsFloat,
1196 #[serde(default)]
1197 #[doc = "Whether or not the origin has an active storage quota override"]
1198 pub override_active: bool,
1199 #[doc = "Storage usage per type (bytes)."]
1200 pub usage_breakdown: Vec<UsageForType>,
1201}
1202#[allow(deprecated)]
1203#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
1204#[doc = "Override quota for the specified origin"]
1205pub struct OverrideQuotaForOriginReturnObject(pub Option<Json>);
1206#[allow(deprecated)]
1207#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
1208#[doc = "Registers origin to be notified when an update occurs to its cache storage list."]
1209pub struct TrackCacheStorageForOriginReturnObject(pub Option<Json>);
1210#[allow(deprecated)]
1211#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
1212#[doc = "Registers storage key to be notified when an update occurs to its cache storage list."]
1213pub struct TrackCacheStorageForStorageKeyReturnObject(pub Option<Json>);
1214#[allow(deprecated)]
1215#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
1216#[doc = "Registers origin to be notified when an update occurs to its IndexedDB."]
1217pub struct TrackIndexedDBForOriginReturnObject(pub Option<Json>);
1218#[allow(deprecated)]
1219#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
1220#[doc = "Registers storage key to be notified when an update occurs to its IndexedDB."]
1221pub struct TrackIndexedDBForStorageKeyReturnObject(pub Option<Json>);
1222#[allow(deprecated)]
1223#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
1224#[doc = "Unregisters origin from receiving notifications for cache storage."]
1225pub struct UntrackCacheStorageForOriginReturnObject(pub Option<Json>);
1226#[allow(deprecated)]
1227#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
1228#[doc = "Unregisters storage key from receiving notifications for cache storage."]
1229pub struct UntrackCacheStorageForStorageKeyReturnObject(pub Option<Json>);
1230#[allow(deprecated)]
1231#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
1232#[doc = "Unregisters origin from receiving notifications for IndexedDB."]
1233pub struct UntrackIndexedDBForOriginReturnObject(pub Option<Json>);
1234#[allow(deprecated)]
1235#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
1236#[doc = "Unregisters storage key from receiving notifications for IndexedDB."]
1237pub struct UntrackIndexedDBForStorageKeyReturnObject(pub Option<Json>);
1238#[allow(deprecated)]
1239#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
1240#[serde(rename_all = "camelCase")]
1241#[doc = "Returns the number of stored Trust Tokens per issuer for the\n current browsing context."]
1242pub struct GetTrustTokensReturnObject {
1243 pub tokens: Vec<TrustTokens>,
1244}
1245#[allow(deprecated)]
1246#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
1247#[serde(rename_all = "camelCase")]
1248#[doc = "Removes all Trust Tokens issued by the provided issuerOrigin.\n Leaves other stored data, including the issuer's Redemption Records, intact."]
1249pub struct ClearTrustTokensReturnObject {
1250 #[serde(default)]
1251 #[doc = "True if any tokens were deleted, false otherwise."]
1252 pub did_delete_tokens: bool,
1253}
1254#[allow(deprecated)]
1255#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
1256#[serde(rename_all = "camelCase")]
1257#[doc = "Gets details for a named interest group."]
1258pub struct GetInterestGroupDetailsReturnObject {
1259 #[serde(default)]
1260 #[doc = "This largely corresponds to:\n <https://wicg.github.io/turtledove/#dictdef-generatebidinterestgroup>\n but has absolute expirationTime instead of relative lifetimeMs and\n also adds joiningOrigin."]
1261 pub details: Json,
1262}
1263#[allow(deprecated)]
1264#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
1265#[doc = "Enables/Disables issuing of interestGroupAccessed events."]
1266pub struct SetInterestGroupTrackingReturnObject(pub Option<Json>);
1267#[allow(deprecated)]
1268#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
1269#[doc = "Enables/Disables issuing of interestGroupAuctionEventOccurred and\n interestGroupAuctionNetworkRequestCreated."]
1270pub struct SetInterestGroupAuctionTrackingReturnObject(pub Option<Json>);
1271#[allow(deprecated)]
1272#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
1273#[serde(rename_all = "camelCase")]
1274#[doc = "Gets metadata for an origin's shared storage."]
1275pub struct GetSharedStorageMetadataReturnObject {
1276 pub metadata: SharedStorageMetadata,
1277}
1278#[allow(deprecated)]
1279#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
1280#[serde(rename_all = "camelCase")]
1281#[doc = "Gets the entries in an given origin's shared storage."]
1282pub struct GetSharedStorageEntriesReturnObject {
1283 pub entries: Vec<SharedStorageEntry>,
1284}
1285#[allow(deprecated)]
1286#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
1287#[doc = "Sets entry with `key` and `value` for a given origin's shared storage."]
1288pub struct SetSharedStorageEntryReturnObject(pub Option<Json>);
1289#[allow(deprecated)]
1290#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
1291#[doc = "Deletes entry for `key` (if it exists) for a given origin's shared storage."]
1292pub struct DeleteSharedStorageEntryReturnObject(pub Option<Json>);
1293#[allow(deprecated)]
1294#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
1295#[doc = "Clears all entries for a given origin's shared storage."]
1296pub struct ClearSharedStorageEntriesReturnObject(pub Option<Json>);
1297#[allow(deprecated)]
1298#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
1299#[doc = "Resets the budget for `ownerOrigin` by clearing all budget withdrawals."]
1300pub struct ResetSharedStorageBudgetReturnObject(pub Option<Json>);
1301#[allow(deprecated)]
1302#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
1303#[doc = "Enables/disables issuing of sharedStorageAccessed events."]
1304pub struct SetSharedStorageTrackingReturnObject(pub Option<Json>);
1305#[allow(deprecated)]
1306#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
1307#[doc = "Set tracking for a storage key's buckets."]
1308pub struct SetStorageBucketTrackingReturnObject(pub Option<Json>);
1309#[allow(deprecated)]
1310#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
1311#[doc = "Deletes the Storage Bucket with the given storage key and bucket name."]
1312pub struct DeleteStorageBucketReturnObject(pub Option<Json>);
1313#[allow(deprecated)]
1314#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
1315#[serde(rename_all = "camelCase")]
1316#[doc = "Deletes state for sites identified as potential bounce trackers, immediately."]
1317pub struct RunBounceTrackingMitigationsReturnObject {
1318 pub deleted_sites: Vec<String>,
1319}
1320#[allow(deprecated)]
1321#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
1322#[doc = "<https://wicg.github.io/attribution-reporting-api/>"]
1323pub struct SetAttributionReportingLocalTestingModeReturnObject(pub Option<Json>);
1324#[allow(deprecated)]
1325#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
1326#[doc = "Enables/disables issuing of Attribution Reporting events."]
1327pub struct SetAttributionReportingTrackingReturnObject(pub Option<Json>);
1328#[allow(deprecated)]
1329#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
1330#[serde(rename_all = "camelCase")]
1331#[doc = "Sends all pending Attribution Reports immediately, regardless of their\n scheduled report time."]
1332pub struct SendPendingAttributionReportsReturnObject {
1333 #[serde(default)]
1334 #[doc = "The number of reports that were sent."]
1335 pub num_sent: JsUInt,
1336}
1337#[allow(deprecated)]
1338#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
1339#[serde(rename_all = "camelCase")]
1340#[doc = "Returns the effective Related Website Sets in use by this profile for the browser\n session. The effective Related Website Sets will not change during a browser session."]
1341pub struct GetRelatedWebsiteSetsReturnObject {
1342 pub sets: Vec<RelatedWebsiteSet>,
1343}
1344#[allow(deprecated)]
1345#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
1346#[serde(rename_all = "camelCase")]
1347#[doc = "Returns the list of URLs from a page and its embedded resources that match\n existing grace period URL pattern rules.\n <https://developers.google.com/privacy-sandbox/cookies/temporary-exceptions/grace-period>"]
1348pub struct GetAffectedUrlsForThirdPartyCookieMetadataReturnObject {
1349 #[doc = "Array of matching URLs. If there is a primary pattern match for the first-\n party URL, only the first-party URL is returned in the array."]
1350 pub matched_urls: Vec<String>,
1351}
1352#[allow(deprecated)]
1353#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
1354pub struct SetProtectedAudienceKAnonymityReturnObject(pub Option<Json>);
1355#[allow(deprecated)]
1356impl Method for GetStorageKeyForFrame {
1357 const NAME: &'static str = "Storage.getStorageKeyForFrame";
1358 type ReturnObject = GetStorageKeyForFrameReturnObject;
1359}
1360#[allow(deprecated)]
1361impl Method for GetStorageKey {
1362 const NAME: &'static str = "Storage.getStorageKey";
1363 type ReturnObject = GetStorageKeyReturnObject;
1364}
1365#[allow(deprecated)]
1366impl Method for ClearDataForOrigin {
1367 const NAME: &'static str = "Storage.clearDataForOrigin";
1368 type ReturnObject = ClearDataForOriginReturnObject;
1369}
1370#[allow(deprecated)]
1371impl Method for ClearDataForStorageKey {
1372 const NAME: &'static str = "Storage.clearDataForStorageKey";
1373 type ReturnObject = ClearDataForStorageKeyReturnObject;
1374}
1375#[allow(deprecated)]
1376impl Method for GetCookies {
1377 const NAME: &'static str = "Storage.getCookies";
1378 type ReturnObject = GetCookiesReturnObject;
1379}
1380#[allow(deprecated)]
1381impl Method for SetCookies {
1382 const NAME: &'static str = "Storage.setCookies";
1383 type ReturnObject = SetCookiesReturnObject;
1384}
1385#[allow(deprecated)]
1386impl Method for ClearCookies {
1387 const NAME: &'static str = "Storage.clearCookies";
1388 type ReturnObject = ClearCookiesReturnObject;
1389}
1390#[allow(deprecated)]
1391impl Method for GetUsageAndQuota {
1392 const NAME: &'static str = "Storage.getUsageAndQuota";
1393 type ReturnObject = GetUsageAndQuotaReturnObject;
1394}
1395#[allow(deprecated)]
1396impl Method for OverrideQuotaForOrigin {
1397 const NAME: &'static str = "Storage.overrideQuotaForOrigin";
1398 type ReturnObject = OverrideQuotaForOriginReturnObject;
1399}
1400#[allow(deprecated)]
1401impl Method for TrackCacheStorageForOrigin {
1402 const NAME: &'static str = "Storage.trackCacheStorageForOrigin";
1403 type ReturnObject = TrackCacheStorageForOriginReturnObject;
1404}
1405#[allow(deprecated)]
1406impl Method for TrackCacheStorageForStorageKey {
1407 const NAME: &'static str = "Storage.trackCacheStorageForStorageKey";
1408 type ReturnObject = TrackCacheStorageForStorageKeyReturnObject;
1409}
1410#[allow(deprecated)]
1411impl Method for TrackIndexedDBForOrigin {
1412 const NAME: &'static str = "Storage.trackIndexedDBForOrigin";
1413 type ReturnObject = TrackIndexedDBForOriginReturnObject;
1414}
1415#[allow(deprecated)]
1416impl Method for TrackIndexedDBForStorageKey {
1417 const NAME: &'static str = "Storage.trackIndexedDBForStorageKey";
1418 type ReturnObject = TrackIndexedDBForStorageKeyReturnObject;
1419}
1420#[allow(deprecated)]
1421impl Method for UntrackCacheStorageForOrigin {
1422 const NAME: &'static str = "Storage.untrackCacheStorageForOrigin";
1423 type ReturnObject = UntrackCacheStorageForOriginReturnObject;
1424}
1425#[allow(deprecated)]
1426impl Method for UntrackCacheStorageForStorageKey {
1427 const NAME: &'static str = "Storage.untrackCacheStorageForStorageKey";
1428 type ReturnObject = UntrackCacheStorageForStorageKeyReturnObject;
1429}
1430#[allow(deprecated)]
1431impl Method for UntrackIndexedDBForOrigin {
1432 const NAME: &'static str = "Storage.untrackIndexedDBForOrigin";
1433 type ReturnObject = UntrackIndexedDBForOriginReturnObject;
1434}
1435#[allow(deprecated)]
1436impl Method for UntrackIndexedDBForStorageKey {
1437 const NAME: &'static str = "Storage.untrackIndexedDBForStorageKey";
1438 type ReturnObject = UntrackIndexedDBForStorageKeyReturnObject;
1439}
1440#[allow(deprecated)]
1441impl Method for GetTrustTokens {
1442 const NAME: &'static str = "Storage.getTrustTokens";
1443 type ReturnObject = GetTrustTokensReturnObject;
1444}
1445#[allow(deprecated)]
1446impl Method for ClearTrustTokens {
1447 const NAME: &'static str = "Storage.clearTrustTokens";
1448 type ReturnObject = ClearTrustTokensReturnObject;
1449}
1450#[allow(deprecated)]
1451impl Method for GetInterestGroupDetails {
1452 const NAME: &'static str = "Storage.getInterestGroupDetails";
1453 type ReturnObject = GetInterestGroupDetailsReturnObject;
1454}
1455#[allow(deprecated)]
1456impl Method for SetInterestGroupTracking {
1457 const NAME: &'static str = "Storage.setInterestGroupTracking";
1458 type ReturnObject = SetInterestGroupTrackingReturnObject;
1459}
1460#[allow(deprecated)]
1461impl Method for SetInterestGroupAuctionTracking {
1462 const NAME: &'static str = "Storage.setInterestGroupAuctionTracking";
1463 type ReturnObject = SetInterestGroupAuctionTrackingReturnObject;
1464}
1465#[allow(deprecated)]
1466impl Method for GetSharedStorageMetadata {
1467 const NAME: &'static str = "Storage.getSharedStorageMetadata";
1468 type ReturnObject = GetSharedStorageMetadataReturnObject;
1469}
1470#[allow(deprecated)]
1471impl Method for GetSharedStorageEntries {
1472 const NAME: &'static str = "Storage.getSharedStorageEntries";
1473 type ReturnObject = GetSharedStorageEntriesReturnObject;
1474}
1475#[allow(deprecated)]
1476impl Method for SetSharedStorageEntry {
1477 const NAME: &'static str = "Storage.setSharedStorageEntry";
1478 type ReturnObject = SetSharedStorageEntryReturnObject;
1479}
1480#[allow(deprecated)]
1481impl Method for DeleteSharedStorageEntry {
1482 const NAME: &'static str = "Storage.deleteSharedStorageEntry";
1483 type ReturnObject = DeleteSharedStorageEntryReturnObject;
1484}
1485#[allow(deprecated)]
1486impl Method for ClearSharedStorageEntries {
1487 const NAME: &'static str = "Storage.clearSharedStorageEntries";
1488 type ReturnObject = ClearSharedStorageEntriesReturnObject;
1489}
1490#[allow(deprecated)]
1491impl Method for ResetSharedStorageBudget {
1492 const NAME: &'static str = "Storage.resetSharedStorageBudget";
1493 type ReturnObject = ResetSharedStorageBudgetReturnObject;
1494}
1495#[allow(deprecated)]
1496impl Method for SetSharedStorageTracking {
1497 const NAME: &'static str = "Storage.setSharedStorageTracking";
1498 type ReturnObject = SetSharedStorageTrackingReturnObject;
1499}
1500#[allow(deprecated)]
1501impl Method for SetStorageBucketTracking {
1502 const NAME: &'static str = "Storage.setStorageBucketTracking";
1503 type ReturnObject = SetStorageBucketTrackingReturnObject;
1504}
1505#[allow(deprecated)]
1506impl Method for DeleteStorageBucket {
1507 const NAME: &'static str = "Storage.deleteStorageBucket";
1508 type ReturnObject = DeleteStorageBucketReturnObject;
1509}
1510#[allow(deprecated)]
1511impl Method for RunBounceTrackingMitigations {
1512 const NAME: &'static str = "Storage.runBounceTrackingMitigations";
1513 type ReturnObject = RunBounceTrackingMitigationsReturnObject;
1514}
1515#[allow(deprecated)]
1516impl Method for SetAttributionReportingLocalTestingMode {
1517 const NAME: &'static str = "Storage.setAttributionReportingLocalTestingMode";
1518 type ReturnObject = SetAttributionReportingLocalTestingModeReturnObject;
1519}
1520#[allow(deprecated)]
1521impl Method for SetAttributionReportingTracking {
1522 const NAME: &'static str = "Storage.setAttributionReportingTracking";
1523 type ReturnObject = SetAttributionReportingTrackingReturnObject;
1524}
1525#[allow(deprecated)]
1526impl Method for SendPendingAttributionReports {
1527 const NAME: &'static str = "Storage.sendPendingAttributionReports";
1528 type ReturnObject = SendPendingAttributionReportsReturnObject;
1529}
1530#[allow(deprecated)]
1531impl Method for GetRelatedWebsiteSets {
1532 const NAME: &'static str = "Storage.getRelatedWebsiteSets";
1533 type ReturnObject = GetRelatedWebsiteSetsReturnObject;
1534}
1535#[allow(deprecated)]
1536impl Method for GetAffectedUrlsForThirdPartyCookieMetadata {
1537 const NAME: &'static str = "Storage.getAffectedUrlsForThirdPartyCookieMetadata";
1538 type ReturnObject = GetAffectedUrlsForThirdPartyCookieMetadataReturnObject;
1539}
1540#[allow(deprecated)]
1541impl Method for SetProtectedAudienceKAnonymity {
1542 const NAME: &'static str = "Storage.setProtectedAudienceKAnonymity";
1543 type ReturnObject = SetProtectedAudienceKAnonymityReturnObject;
1544}
1545#[allow(dead_code)]
1546pub mod events {
1547 #[allow(unused_imports)]
1548 use super::super::types::*;
1549 #[allow(unused_imports)]
1550 use derive_builder::Builder;
1551 #[allow(unused_imports)]
1552 use serde::{Deserialize, Serialize};
1553 #[allow(unused_imports)]
1554 use serde_json::Value as Json;
1555 #[allow(deprecated)]
1556 #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
1557 pub struct CacheStorageContentUpdatedEvent {
1558 pub params: CacheStorageContentUpdatedEventParams,
1559 }
1560 #[allow(deprecated)]
1561 #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
1562 #[serde(rename_all = "camelCase")]
1563 pub struct CacheStorageContentUpdatedEventParams {
1564 #[serde(default)]
1565 #[doc = "Origin to update."]
1566 pub origin: String,
1567 #[serde(default)]
1568 #[doc = "Storage key to update."]
1569 pub storage_key: String,
1570 #[serde(default)]
1571 #[doc = "Storage bucket to update."]
1572 pub bucket_id: String,
1573 #[serde(default)]
1574 #[doc = "Name of cache in origin."]
1575 pub cache_name: String,
1576 }
1577 #[allow(deprecated)]
1578 #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
1579 pub struct CacheStorageListUpdatedEvent {
1580 pub params: CacheStorageListUpdatedEventParams,
1581 }
1582 #[allow(deprecated)]
1583 #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
1584 #[serde(rename_all = "camelCase")]
1585 pub struct CacheStorageListUpdatedEventParams {
1586 #[serde(default)]
1587 #[doc = "Origin to update."]
1588 pub origin: String,
1589 #[serde(default)]
1590 #[doc = "Storage key to update."]
1591 pub storage_key: String,
1592 #[serde(default)]
1593 #[doc = "Storage bucket to update."]
1594 pub bucket_id: String,
1595 }
1596 #[allow(deprecated)]
1597 #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
1598 pub struct IndexedDBContentUpdatedEvent {
1599 pub params: IndexedDBContentUpdatedEventParams,
1600 }
1601 #[allow(deprecated)]
1602 #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
1603 #[serde(rename_all = "camelCase")]
1604 pub struct IndexedDBContentUpdatedEventParams {
1605 #[serde(default)]
1606 #[doc = "Origin to update."]
1607 pub origin: String,
1608 #[serde(default)]
1609 #[doc = "Storage key to update."]
1610 pub storage_key: String,
1611 #[serde(default)]
1612 #[doc = "Storage bucket to update."]
1613 pub bucket_id: String,
1614 #[serde(default)]
1615 #[doc = "Database to update."]
1616 pub database_name: String,
1617 #[serde(default)]
1618 #[doc = "ObjectStore to update."]
1619 pub object_store_name: String,
1620 }
1621 #[allow(deprecated)]
1622 #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
1623 pub struct IndexedDBListUpdatedEvent {
1624 pub params: IndexedDBListUpdatedEventParams,
1625 }
1626 #[allow(deprecated)]
1627 #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
1628 #[serde(rename_all = "camelCase")]
1629 pub struct IndexedDBListUpdatedEventParams {
1630 #[serde(default)]
1631 #[doc = "Origin to update."]
1632 pub origin: String,
1633 #[serde(default)]
1634 #[doc = "Storage key to update."]
1635 pub storage_key: String,
1636 #[serde(default)]
1637 #[doc = "Storage bucket to update."]
1638 pub bucket_id: String,
1639 }
1640 #[allow(deprecated)]
1641 #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
1642 pub struct InterestGroupAccessedEvent {
1643 pub params: InterestGroupAccessedEventParams,
1644 }
1645 #[allow(deprecated)]
1646 #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
1647 #[serde(rename_all = "camelCase")]
1648 pub struct InterestGroupAccessedEventParams {
1649 pub access_time: super::super::network::TimeSinceEpoch,
1650 pub r#type: super::InterestGroupAccessType,
1651 #[serde(default)]
1652 pub owner_origin: String,
1653 #[serde(default)]
1654 pub name: String,
1655 #[builder(default)]
1656 #[serde(skip_serializing_if = "Option::is_none")]
1657 #[serde(default)]
1658 #[doc = "For topLevelBid/topLevelAdditionalBid, and when appropriate,\n win and additionalBidWin"]
1659 pub component_seller_origin: Option<String>,
1660 #[builder(default)]
1661 #[serde(skip_serializing_if = "Option::is_none")]
1662 #[serde(default)]
1663 #[doc = "For bid or somethingBid event, if done locally and not on a server."]
1664 pub bid: Option<JsFloat>,
1665 #[builder(default)]
1666 #[serde(skip_serializing_if = "Option::is_none")]
1667 #[serde(default)]
1668 pub bid_currency: Option<String>,
1669 #[builder(default)]
1670 #[serde(skip_serializing_if = "Option::is_none")]
1671 #[doc = "For non-global events --- links to interestGroupAuctionEvent"]
1672 pub unique_auction_id: Option<super::InterestGroupAuctionId>,
1673 }
1674 #[allow(deprecated)]
1675 #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
1676 pub struct InterestGroupAuctionEventOccurredEvent {
1677 pub params: InterestGroupAuctionEventOccurredEventParams,
1678 }
1679 #[allow(deprecated)]
1680 #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
1681 #[serde(rename_all = "camelCase")]
1682 pub struct InterestGroupAuctionEventOccurredEventParams {
1683 pub event_time: super::super::network::TimeSinceEpoch,
1684 pub r#type: super::InterestGroupAuctionEventType,
1685 pub unique_auction_id: super::InterestGroupAuctionId,
1686 #[builder(default)]
1687 #[serde(skip_serializing_if = "Option::is_none")]
1688 #[doc = "Set for child auctions."]
1689 pub parent_auction_id: Option<super::InterestGroupAuctionId>,
1690 #[builder(default)]
1691 #[serde(skip_serializing_if = "Option::is_none")]
1692 #[serde(default)]
1693 #[doc = "Set for started and configResolved"]
1694 pub auction_config: Option<Json>,
1695 }
1696 #[allow(deprecated)]
1697 #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
1698 pub struct InterestGroupAuctionNetworkRequestCreatedEvent {
1699 pub params: InterestGroupAuctionNetworkRequestCreatedEventParams,
1700 }
1701 #[allow(deprecated)]
1702 #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
1703 #[serde(rename_all = "camelCase")]
1704 pub struct InterestGroupAuctionNetworkRequestCreatedEventParams {
1705 pub r#type: super::InterestGroupAuctionFetchType,
1706 pub request_id: super::super::network::RequestId,
1707 #[doc = "This is the set of the auctions using the worklet that issued this\n request. In the case of trusted signals, it's possible that only some of\n them actually care about the keys being queried."]
1708 pub auctions: Vec<super::InterestGroupAuctionId>,
1709 }
1710 #[allow(deprecated)]
1711 #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
1712 pub struct SharedStorageAccessedEvent {
1713 pub params: SharedStorageAccessedEventParams,
1714 }
1715 #[allow(deprecated)]
1716 #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
1717 #[serde(rename_all = "camelCase")]
1718 pub struct SharedStorageAccessedEventParams {
1719 #[doc = "Time of the access."]
1720 pub access_time: super::super::network::TimeSinceEpoch,
1721 #[doc = "Enum value indicating the access scope."]
1722 pub scope: super::SharedStorageAccessScope,
1723 #[doc = "Enum value indicating the Shared Storage API method invoked."]
1724 pub method: super::SharedStorageAccessMethod,
1725 #[doc = "DevTools Frame Token for the primary frame tree's root."]
1726 pub main_frame_id: super::super::page::FrameId,
1727 #[serde(default)]
1728 #[doc = "Serialization of the origin owning the Shared Storage data."]
1729 pub owner_origin: String,
1730 #[serde(default)]
1731 #[doc = "Serialization of the site owning the Shared Storage data."]
1732 pub owner_site: String,
1733 #[doc = "The sub-parameters wrapped by `params` are all optional and their\n presence/absence depends on `type`."]
1734 pub params: super::SharedStorageAccessParams,
1735 }
1736 #[allow(deprecated)]
1737 #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
1738 pub struct SharedStorageWorkletOperationExecutionFinishedEvent {
1739 pub params: SharedStorageWorkletOperationExecutionFinishedEventParams,
1740 }
1741 #[allow(deprecated)]
1742 #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
1743 #[serde(rename_all = "camelCase")]
1744 pub struct SharedStorageWorkletOperationExecutionFinishedEventParams {
1745 #[doc = "Time that the operation finished."]
1746 pub finished_time: super::super::network::TimeSinceEpoch,
1747 #[serde(default)]
1748 #[doc = "Time, in microseconds, from start of shared storage JS API call until\n end of operation execution in the worklet."]
1749 pub execution_time: JsUInt,
1750 #[doc = "Enum value indicating the Shared Storage API method invoked."]
1751 pub method: super::SharedStorageAccessMethod,
1752 #[serde(default)]
1753 #[doc = "ID of the operation call."]
1754 pub operation_id: String,
1755 #[doc = "Hex representation of the DevTools token used as the TargetID for the\n associated shared storage worklet."]
1756 pub worklet_target_id: super::super::target::TargetId,
1757 #[doc = "DevTools Frame Token for the primary frame tree's root."]
1758 pub main_frame_id: super::super::page::FrameId,
1759 #[serde(default)]
1760 #[doc = "Serialization of the origin owning the Shared Storage data."]
1761 pub owner_origin: String,
1762 }
1763 #[allow(deprecated)]
1764 #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
1765 pub struct StorageBucketCreatedOrUpdatedEvent {
1766 pub params: StorageBucketCreatedOrUpdatedEventParams,
1767 }
1768 #[allow(deprecated)]
1769 #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
1770 #[serde(rename_all = "camelCase")]
1771 pub struct StorageBucketCreatedOrUpdatedEventParams {
1772 pub bucket_info: super::StorageBucketInfo,
1773 }
1774 #[allow(deprecated)]
1775 #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
1776 pub struct StorageBucketDeletedEvent {
1777 pub params: StorageBucketDeletedEventParams,
1778 }
1779 #[allow(deprecated)]
1780 #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
1781 #[serde(rename_all = "camelCase")]
1782 pub struct StorageBucketDeletedEventParams {
1783 #[serde(default)]
1784 pub bucket_id: String,
1785 }
1786 #[allow(deprecated)]
1787 #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
1788 pub struct AttributionReportingSourceRegisteredEvent {
1789 pub params: AttributionReportingSourceRegisteredEventParams,
1790 }
1791 #[allow(deprecated)]
1792 #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
1793 #[serde(rename_all = "camelCase")]
1794 pub struct AttributionReportingSourceRegisteredEventParams {
1795 pub registration: super::AttributionReportingSourceRegistration,
1796 pub result: super::AttributionReportingSourceRegistrationResult,
1797 }
1798 #[allow(deprecated)]
1799 #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
1800 pub struct AttributionReportingTriggerRegisteredEvent {
1801 pub params: AttributionReportingTriggerRegisteredEventParams,
1802 }
1803 #[allow(deprecated)]
1804 #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
1805 #[serde(rename_all = "camelCase")]
1806 pub struct AttributionReportingTriggerRegisteredEventParams {
1807 pub registration: super::AttributionReportingTriggerRegistration,
1808 pub event_level: super::AttributionReportingEventLevelResult,
1809 pub aggregatable: super::AttributionReportingAggregatableResult,
1810 }
1811 #[allow(deprecated)]
1812 #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
1813 pub struct AttributionReportingReportSentEvent {
1814 pub params: AttributionReportingReportSentEventParams,
1815 }
1816 #[allow(deprecated)]
1817 #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
1818 #[serde(rename_all = "camelCase")]
1819 pub struct AttributionReportingReportSentEventParams {
1820 #[serde(default)]
1821 pub url: String,
1822 #[serde(default)]
1823 pub body: Json,
1824 pub result: super::AttributionReportingReportResult,
1825 #[builder(default)]
1826 #[serde(skip_serializing_if = "Option::is_none")]
1827 #[serde(default)]
1828 #[doc = "If result is `sent`, populated with net/HTTP status."]
1829 pub net_error: Option<JsUInt>,
1830 #[builder(default)]
1831 #[serde(skip_serializing_if = "Option::is_none")]
1832 #[serde(default)]
1833 pub net_error_name: Option<String>,
1834 #[builder(default)]
1835 #[serde(skip_serializing_if = "Option::is_none")]
1836 #[serde(default)]
1837 pub http_status_code: Option<JsUInt>,
1838 }
1839 #[allow(deprecated)]
1840 #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
1841 pub struct AttributionReportingVerboseDebugReportSentEvent {
1842 pub params: AttributionReportingVerboseDebugReportSentEventParams,
1843 }
1844 #[allow(deprecated)]
1845 #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
1846 #[serde(rename_all = "camelCase")]
1847 pub struct AttributionReportingVerboseDebugReportSentEventParams {
1848 #[serde(default)]
1849 pub url: String,
1850 #[builder(default)]
1851 #[serde(skip_serializing_if = "Option::is_none")]
1852 #[serde(default)]
1853 pub body: Option<Vec<Json>>,
1854 #[builder(default)]
1855 #[serde(skip_serializing_if = "Option::is_none")]
1856 #[serde(default)]
1857 pub net_error: Option<JsUInt>,
1858 #[builder(default)]
1859 #[serde(skip_serializing_if = "Option::is_none")]
1860 #[serde(default)]
1861 pub net_error_name: Option<String>,
1862 #[builder(default)]
1863 #[serde(skip_serializing_if = "Option::is_none")]
1864 #[serde(default)]
1865 pub http_status_code: Option<JsUInt>,
1866 }
1867}