vendor/github.com/go-rod/rod/lib/proto/storage.go
1624 lines · 62228 bytes
1// This file is generated by "./lib/proto/generate"
2
3package proto
4
5import (
6 "github.com/ysmood/gson"
7)
8
9/*
10
11Storage
12
13*/
14
15// StorageSerializedStorageKey ...
16type StorageSerializedStorageKey string
17
18// StorageStorageType Enum of possible storage types.
19type StorageStorageType string
20
21const (
22 // StorageStorageTypeAppcache enum const.
23 StorageStorageTypeAppcache StorageStorageType = "appcache"
24
25 // StorageStorageTypeCookies enum const.
26 StorageStorageTypeCookies StorageStorageType = "cookies"
27
28 // StorageStorageTypeFileSystems enum const.
29 StorageStorageTypeFileSystems StorageStorageType = "file_systems"
30
31 // StorageStorageTypeIndexeddb enum const.
32 StorageStorageTypeIndexeddb StorageStorageType = "indexeddb"
33
34 // StorageStorageTypeLocalStorage enum const.
35 StorageStorageTypeLocalStorage StorageStorageType = "local_storage"
36
37 // StorageStorageTypeShaderCache enum const.
38 StorageStorageTypeShaderCache StorageStorageType = "shader_cache"
39
40 // StorageStorageTypeWebsql enum const.
41 StorageStorageTypeWebsql StorageStorageType = "websql"
42
43 // StorageStorageTypeServiceWorkers enum const.
44 StorageStorageTypeServiceWorkers StorageStorageType = "service_workers"
45
46 // StorageStorageTypeCacheStorage enum const.
47 StorageStorageTypeCacheStorage StorageStorageType = "cache_storage"
48
49 // StorageStorageTypeInterestGroups enum const.
50 StorageStorageTypeInterestGroups StorageStorageType = "interest_groups"
51
52 // StorageStorageTypeSharedStorage enum const.
53 StorageStorageTypeSharedStorage StorageStorageType = "shared_storage"
54
55 // StorageStorageTypeStorageBuckets enum const.
56 StorageStorageTypeStorageBuckets StorageStorageType = "storage_buckets"
57
58 // StorageStorageTypeAll enum const.
59 StorageStorageTypeAll StorageStorageType = "all"
60
61 // StorageStorageTypeOther enum const.
62 StorageStorageTypeOther StorageStorageType = "other"
63)
64
65// StorageUsageForType Usage for a storage type.
66type StorageUsageForType struct {
67 // StorageType Name of storage type.
68 StorageType StorageStorageType `json:"storageType"`
69
70 // Usage Storage usage (bytes).
71 Usage float64 `json:"usage"`
72}
73
74// StorageTrustTokens (experimental) Pair of issuer origin and number of available (signed, but not used) Trust
75// Tokens from that issuer.
76type StorageTrustTokens struct {
77 // IssuerOrigin ...
78 IssuerOrigin string `json:"issuerOrigin"`
79
80 // Count ...
81 Count float64 `json:"count"`
82}
83
84// StorageInterestGroupAuctionID Protected audience interest group auction identifier.
85type StorageInterestGroupAuctionID string
86
87// StorageInterestGroupAccessType Enum of interest group access types.
88type StorageInterestGroupAccessType string
89
90const (
91 // StorageInterestGroupAccessTypeJoin enum const.
92 StorageInterestGroupAccessTypeJoin StorageInterestGroupAccessType = "join"
93
94 // StorageInterestGroupAccessTypeLeave enum const.
95 StorageInterestGroupAccessTypeLeave StorageInterestGroupAccessType = "leave"
96
97 // StorageInterestGroupAccessTypeUpdate enum const.
98 StorageInterestGroupAccessTypeUpdate StorageInterestGroupAccessType = "update"
99
100 // StorageInterestGroupAccessTypeLoaded enum const.
101 StorageInterestGroupAccessTypeLoaded StorageInterestGroupAccessType = "loaded"
102
103 // StorageInterestGroupAccessTypeBid enum const.
104 StorageInterestGroupAccessTypeBid StorageInterestGroupAccessType = "bid"
105
106 // StorageInterestGroupAccessTypeWin enum const.
107 StorageInterestGroupAccessTypeWin StorageInterestGroupAccessType = "win"
108
109 // StorageInterestGroupAccessTypeAdditionalBid enum const.
110 StorageInterestGroupAccessTypeAdditionalBid StorageInterestGroupAccessType = "additionalBid"
111
112 // StorageInterestGroupAccessTypeAdditionalBidWin enum const.
113 StorageInterestGroupAccessTypeAdditionalBidWin StorageInterestGroupAccessType = "additionalBidWin"
114
115 // StorageInterestGroupAccessTypeTopLevelBid enum const.
116 StorageInterestGroupAccessTypeTopLevelBid StorageInterestGroupAccessType = "topLevelBid"
117
118 // StorageInterestGroupAccessTypeTopLevelAdditionalBid enum const.
119 StorageInterestGroupAccessTypeTopLevelAdditionalBid StorageInterestGroupAccessType = "topLevelAdditionalBid"
120
121 // StorageInterestGroupAccessTypeClear enum const.
122 StorageInterestGroupAccessTypeClear StorageInterestGroupAccessType = "clear"
123)
124
125// StorageInterestGroupAuctionEventType Enum of auction events.
126type StorageInterestGroupAuctionEventType string
127
128const (
129 // StorageInterestGroupAuctionEventTypeStarted enum const.
130 StorageInterestGroupAuctionEventTypeStarted StorageInterestGroupAuctionEventType = "started"
131
132 // StorageInterestGroupAuctionEventTypeConfigResolved enum const.
133 StorageInterestGroupAuctionEventTypeConfigResolved StorageInterestGroupAuctionEventType = "configResolved"
134)
135
136// StorageInterestGroupAuctionFetchType Enum of network fetches auctions can do.
137type StorageInterestGroupAuctionFetchType string
138
139const (
140 // StorageInterestGroupAuctionFetchTypeBidderJs enum const.
141 StorageInterestGroupAuctionFetchTypeBidderJs StorageInterestGroupAuctionFetchType = "bidderJs"
142
143 // StorageInterestGroupAuctionFetchTypeBidderWasm enum const.
144 StorageInterestGroupAuctionFetchTypeBidderWasm StorageInterestGroupAuctionFetchType = "bidderWasm"
145
146 // StorageInterestGroupAuctionFetchTypeSellerJs enum const.
147 StorageInterestGroupAuctionFetchTypeSellerJs StorageInterestGroupAuctionFetchType = "sellerJs"
148
149 // StorageInterestGroupAuctionFetchTypeBidderTrustedSignals enum const.
150 StorageInterestGroupAuctionFetchTypeBidderTrustedSignals StorageInterestGroupAuctionFetchType = "bidderTrustedSignals"
151
152 // StorageInterestGroupAuctionFetchTypeSellerTrustedSignals enum const.
153 StorageInterestGroupAuctionFetchTypeSellerTrustedSignals StorageInterestGroupAuctionFetchType = "sellerTrustedSignals"
154)
155
156// StorageSharedStorageAccessType Enum of shared storage access types.
157type StorageSharedStorageAccessType string
158
159const (
160 // StorageSharedStorageAccessTypeDocumentAddModule enum const.
161 StorageSharedStorageAccessTypeDocumentAddModule StorageSharedStorageAccessType = "documentAddModule"
162
163 // StorageSharedStorageAccessTypeDocumentSelectURL enum const.
164 StorageSharedStorageAccessTypeDocumentSelectURL StorageSharedStorageAccessType = "documentSelectURL"
165
166 // StorageSharedStorageAccessTypeDocumentRun enum const.
167 StorageSharedStorageAccessTypeDocumentRun StorageSharedStorageAccessType = "documentRun"
168
169 // StorageSharedStorageAccessTypeDocumentSet enum const.
170 StorageSharedStorageAccessTypeDocumentSet StorageSharedStorageAccessType = "documentSet"
171
172 // StorageSharedStorageAccessTypeDocumentAppend enum const.
173 StorageSharedStorageAccessTypeDocumentAppend StorageSharedStorageAccessType = "documentAppend"
174
175 // StorageSharedStorageAccessTypeDocumentDelete enum const.
176 StorageSharedStorageAccessTypeDocumentDelete StorageSharedStorageAccessType = "documentDelete"
177
178 // StorageSharedStorageAccessTypeDocumentClear enum const.
179 StorageSharedStorageAccessTypeDocumentClear StorageSharedStorageAccessType = "documentClear"
180
181 // StorageSharedStorageAccessTypeDocumentGet enum const.
182 StorageSharedStorageAccessTypeDocumentGet StorageSharedStorageAccessType = "documentGet"
183
184 // StorageSharedStorageAccessTypeWorkletSet enum const.
185 StorageSharedStorageAccessTypeWorkletSet StorageSharedStorageAccessType = "workletSet"
186
187 // StorageSharedStorageAccessTypeWorkletAppend enum const.
188 StorageSharedStorageAccessTypeWorkletAppend StorageSharedStorageAccessType = "workletAppend"
189
190 // StorageSharedStorageAccessTypeWorkletDelete enum const.
191 StorageSharedStorageAccessTypeWorkletDelete StorageSharedStorageAccessType = "workletDelete"
192
193 // StorageSharedStorageAccessTypeWorkletClear enum const.
194 StorageSharedStorageAccessTypeWorkletClear StorageSharedStorageAccessType = "workletClear"
195
196 // StorageSharedStorageAccessTypeWorkletGet enum const.
197 StorageSharedStorageAccessTypeWorkletGet StorageSharedStorageAccessType = "workletGet"
198
199 // StorageSharedStorageAccessTypeWorkletKeys enum const.
200 StorageSharedStorageAccessTypeWorkletKeys StorageSharedStorageAccessType = "workletKeys"
201
202 // StorageSharedStorageAccessTypeWorkletEntries enum const.
203 StorageSharedStorageAccessTypeWorkletEntries StorageSharedStorageAccessType = "workletEntries"
204
205 // StorageSharedStorageAccessTypeWorkletLength enum const.
206 StorageSharedStorageAccessTypeWorkletLength StorageSharedStorageAccessType = "workletLength"
207
208 // StorageSharedStorageAccessTypeWorkletRemainingBudget enum const.
209 StorageSharedStorageAccessTypeWorkletRemainingBudget StorageSharedStorageAccessType = "workletRemainingBudget"
210
211 // StorageSharedStorageAccessTypeHeaderSet enum const.
212 StorageSharedStorageAccessTypeHeaderSet StorageSharedStorageAccessType = "headerSet"
213
214 // StorageSharedStorageAccessTypeHeaderAppend enum const.
215 StorageSharedStorageAccessTypeHeaderAppend StorageSharedStorageAccessType = "headerAppend"
216
217 // StorageSharedStorageAccessTypeHeaderDelete enum const.
218 StorageSharedStorageAccessTypeHeaderDelete StorageSharedStorageAccessType = "headerDelete"
219
220 // StorageSharedStorageAccessTypeHeaderClear enum const.
221 StorageSharedStorageAccessTypeHeaderClear StorageSharedStorageAccessType = "headerClear"
222)
223
224// StorageSharedStorageEntry Struct for a single key-value pair in an origin's shared storage.
225type StorageSharedStorageEntry struct {
226 // Key ...
227 Key string `json:"key"`
228
229 // Value ...
230 Value string `json:"value"`
231}
232
233// StorageSharedStorageMetadata Details for an origin's shared storage.
234type StorageSharedStorageMetadata struct {
235 // CreationTime Time when the origin's shared storage was last created.
236 CreationTime TimeSinceEpoch `json:"creationTime"`
237
238 // Length Number of key-value pairs stored in origin's shared storage.
239 Length int `json:"length"`
240
241 // RemainingBudget Current amount of bits of entropy remaining in the navigation budget.
242 RemainingBudget float64 `json:"remainingBudget"`
243
244 // BytesUsed Total number of bytes stored as key-value pairs in origin's shared
245 // storage.
246 BytesUsed int `json:"bytesUsed"`
247}
248
249// StorageSharedStorageReportingMetadata Pair of reporting metadata details for a candidate URL for `selectURL()`.
250type StorageSharedStorageReportingMetadata struct {
251 // EventType ...
252 EventType string `json:"eventType"`
253
254 // ReportingURL ...
255 ReportingURL string `json:"reportingUrl"`
256}
257
258// StorageSharedStorageURLWithMetadata Bundles a candidate URL with its reporting metadata.
259type StorageSharedStorageURLWithMetadata struct {
260 // URL Spec of candidate URL.
261 URL string `json:"url"`
262
263 // ReportingMetadata Any associated reporting metadata.
264 ReportingMetadata []*StorageSharedStorageReportingMetadata `json:"reportingMetadata"`
265}
266
267// StorageSharedStorageAccessParams Bundles the parameters for shared storage access events whose
268// presence/absence can vary according to SharedStorageAccessType.
269type StorageSharedStorageAccessParams struct {
270 // ScriptSourceURL (optional) Spec of the module script URL.
271 // Present only for SharedStorageAccessType.documentAddModule.
272 ScriptSourceURL string `json:"scriptSourceUrl,omitempty"`
273
274 // OperationName (optional) Name of the registered operation to be run.
275 // Present only for SharedStorageAccessType.documentRun and
276 // SharedStorageAccessType.documentSelectURL.
277 OperationName string `json:"operationName,omitempty"`
278
279 // SerializedData (optional) The operation's serialized data in bytes (converted to a string).
280 // Present only for SharedStorageAccessType.documentRun and
281 // SharedStorageAccessType.documentSelectURL.
282 SerializedData string `json:"serializedData,omitempty"`
283
284 // UrlsWithMetadata (optional) Array of candidate URLs' specs, along with any associated metadata.
285 // Present only for SharedStorageAccessType.documentSelectURL.
286 UrlsWithMetadata []*StorageSharedStorageURLWithMetadata `json:"urlsWithMetadata,omitempty"`
287
288 // Key (optional) Key for a specific entry in an origin's shared storage.
289 // Present only for SharedStorageAccessType.documentSet,
290 // SharedStorageAccessType.documentAppend,
291 // SharedStorageAccessType.documentDelete,
292 // SharedStorageAccessType.workletSet,
293 // SharedStorageAccessType.workletAppend,
294 // SharedStorageAccessType.workletDelete,
295 // SharedStorageAccessType.workletGet,
296 // SharedStorageAccessType.headerSet,
297 // SharedStorageAccessType.headerAppend, and
298 // SharedStorageAccessType.headerDelete.
299 Key string `json:"key,omitempty"`
300
301 // Value (optional) Value for a specific entry in an origin's shared storage.
302 // Present only for SharedStorageAccessType.documentSet,
303 // SharedStorageAccessType.documentAppend,
304 // SharedStorageAccessType.workletSet,
305 // SharedStorageAccessType.workletAppend,
306 // SharedStorageAccessType.headerSet, and
307 // SharedStorageAccessType.headerAppend.
308 Value string `json:"value,omitempty"`
309
310 // IgnoreIfPresent (optional) Whether or not to set an entry for a key if that key is already present.
311 // Present only for SharedStorageAccessType.documentSet,
312 // SharedStorageAccessType.workletSet, and
313 // SharedStorageAccessType.headerSet.
314 IgnoreIfPresent bool `json:"ignoreIfPresent,omitempty"`
315}
316
317// StorageStorageBucketsDurability ...
318type StorageStorageBucketsDurability string
319
320const (
321 // StorageStorageBucketsDurabilityRelaxed enum const.
322 StorageStorageBucketsDurabilityRelaxed StorageStorageBucketsDurability = "relaxed"
323
324 // StorageStorageBucketsDurabilityStrict enum const.
325 StorageStorageBucketsDurabilityStrict StorageStorageBucketsDurability = "strict"
326)
327
328// StorageStorageBucket ...
329type StorageStorageBucket struct {
330 // StorageKey ...
331 StorageKey StorageSerializedStorageKey `json:"storageKey"`
332
333 // Name (optional) If not specified, it is the default bucket of the storageKey.
334 Name string `json:"name,omitempty"`
335}
336
337// StorageStorageBucketInfo ...
338type StorageStorageBucketInfo struct {
339 // Bucket ...
340 Bucket *StorageStorageBucket `json:"bucket"`
341
342 // ID ...
343 ID string `json:"id"`
344
345 // Expiration ...
346 Expiration TimeSinceEpoch `json:"expiration"`
347
348 // Quota Storage quota (bytes).
349 Quota float64 `json:"quota"`
350
351 // Persistent ...
352 Persistent bool `json:"persistent"`
353
354 // Durability ...
355 Durability StorageStorageBucketsDurability `json:"durability"`
356}
357
358// StorageAttributionReportingSourceType (experimental) ...
359type StorageAttributionReportingSourceType string
360
361const (
362 // StorageAttributionReportingSourceTypeNavigation enum const.
363 StorageAttributionReportingSourceTypeNavigation StorageAttributionReportingSourceType = "navigation"
364
365 // StorageAttributionReportingSourceTypeEvent enum const.
366 StorageAttributionReportingSourceTypeEvent StorageAttributionReportingSourceType = "event"
367)
368
369// StorageUnsignedInt64AsBase10 (experimental) ...
370type StorageUnsignedInt64AsBase10 string
371
372// StorageUnsignedInt128AsBase16 (experimental) ...
373type StorageUnsignedInt128AsBase16 string
374
375// StorageSignedInt64AsBase10 (experimental) ...
376type StorageSignedInt64AsBase10 string
377
378// StorageAttributionReportingFilterDataEntry (experimental) ...
379type StorageAttributionReportingFilterDataEntry struct {
380 // Key ...
381 Key string `json:"key"`
382
383 // Values ...
384 Values []string `json:"values"`
385}
386
387// StorageAttributionReportingFilterConfig (experimental) ...
388type StorageAttributionReportingFilterConfig struct {
389 // FilterValues ...
390 FilterValues []*StorageAttributionReportingFilterDataEntry `json:"filterValues"`
391
392 // LookbackWindow (optional) duration in seconds
393 LookbackWindow *int `json:"lookbackWindow,omitempty"`
394}
395
396// StorageAttributionReportingFilterPair (experimental) ...
397type StorageAttributionReportingFilterPair struct {
398 // Filters ...
399 Filters []*StorageAttributionReportingFilterConfig `json:"filters"`
400
401 // NotFilters ...
402 NotFilters []*StorageAttributionReportingFilterConfig `json:"notFilters"`
403}
404
405// StorageAttributionReportingAggregationKeysEntry (experimental) ...
406type StorageAttributionReportingAggregationKeysEntry struct {
407 // Key ...
408 Key string `json:"key"`
409
410 // Value ...
411 Value StorageUnsignedInt128AsBase16 `json:"value"`
412}
413
414// StorageAttributionReportingEventReportWindows (experimental) ...
415type StorageAttributionReportingEventReportWindows struct {
416 // Start duration in seconds
417 Start int `json:"start"`
418
419 // Ends duration in seconds
420 Ends []int `json:"ends"`
421}
422
423// StorageAttributionReportingTriggerSpec (experimental) ...
424type StorageAttributionReportingTriggerSpec struct {
425 // TriggerData number instead of integer because not all uint32 can be represented by
426 // int
427 TriggerData []float64 `json:"triggerData"`
428
429 // EventReportWindows ...
430 EventReportWindows *StorageAttributionReportingEventReportWindows `json:"eventReportWindows"`
431}
432
433// StorageAttributionReportingTriggerDataMatching (experimental) ...
434type StorageAttributionReportingTriggerDataMatching string
435
436const (
437 // StorageAttributionReportingTriggerDataMatchingExact enum const.
438 StorageAttributionReportingTriggerDataMatchingExact StorageAttributionReportingTriggerDataMatching = "exact"
439
440 // StorageAttributionReportingTriggerDataMatchingModulus enum const.
441 StorageAttributionReportingTriggerDataMatchingModulus StorageAttributionReportingTriggerDataMatching = "modulus"
442)
443
444// StorageAttributionReportingSourceRegistration (experimental) ...
445type StorageAttributionReportingSourceRegistration struct {
446 // Time ...
447 Time TimeSinceEpoch `json:"time"`
448
449 // Expiry duration in seconds
450 Expiry int `json:"expiry"`
451
452 // TriggerSpecs ...
453 TriggerSpecs []*StorageAttributionReportingTriggerSpec `json:"triggerSpecs"`
454
455 // AggregatableReportWindow duration in seconds
456 AggregatableReportWindow int `json:"aggregatableReportWindow"`
457
458 // Type ...
459 Type StorageAttributionReportingSourceType `json:"type"`
460
461 // SourceOrigin ...
462 SourceOrigin string `json:"sourceOrigin"`
463
464 // ReportingOrigin ...
465 ReportingOrigin string `json:"reportingOrigin"`
466
467 // DestinationSites ...
468 DestinationSites []string `json:"destinationSites"`
469
470 // EventID ...
471 EventID StorageUnsignedInt64AsBase10 `json:"eventId"`
472
473 // Priority ...
474 Priority StorageSignedInt64AsBase10 `json:"priority"`
475
476 // FilterData ...
477 FilterData []*StorageAttributionReportingFilterDataEntry `json:"filterData"`
478
479 // AggregationKeys ...
480 AggregationKeys []*StorageAttributionReportingAggregationKeysEntry `json:"aggregationKeys"`
481
482 // DebugKey (optional) ...
483 DebugKey StorageUnsignedInt64AsBase10 `json:"debugKey,omitempty"`
484
485 // TriggerDataMatching ...
486 TriggerDataMatching StorageAttributionReportingTriggerDataMatching `json:"triggerDataMatching"`
487}
488
489// StorageAttributionReportingSourceRegistrationResult (experimental) ...
490type StorageAttributionReportingSourceRegistrationResult string
491
492const (
493 // StorageAttributionReportingSourceRegistrationResultSuccess enum const.
494 StorageAttributionReportingSourceRegistrationResultSuccess StorageAttributionReportingSourceRegistrationResult = "success"
495
496 // StorageAttributionReportingSourceRegistrationResultInternalError enum const.
497 StorageAttributionReportingSourceRegistrationResultInternalError StorageAttributionReportingSourceRegistrationResult = "internalError"
498
499 // StorageAttributionReportingSourceRegistrationResultInsufficientSourceCapacity enum const.
500 StorageAttributionReportingSourceRegistrationResultInsufficientSourceCapacity StorageAttributionReportingSourceRegistrationResult = "insufficientSourceCapacity"
501
502 // StorageAttributionReportingSourceRegistrationResultInsufficientUniqueDestinationCapacity enum const.
503 StorageAttributionReportingSourceRegistrationResultInsufficientUniqueDestinationCapacity StorageAttributionReportingSourceRegistrationResult = "insufficientUniqueDestinationCapacity"
504
505 // StorageAttributionReportingSourceRegistrationResultExcessiveReportingOrigins enum const.
506 StorageAttributionReportingSourceRegistrationResultExcessiveReportingOrigins StorageAttributionReportingSourceRegistrationResult = "excessiveReportingOrigins"
507
508 // StorageAttributionReportingSourceRegistrationResultProhibitedByBrowserPolicy enum const.
509 StorageAttributionReportingSourceRegistrationResultProhibitedByBrowserPolicy StorageAttributionReportingSourceRegistrationResult = "prohibitedByBrowserPolicy"
510
511 // StorageAttributionReportingSourceRegistrationResultSuccessNoised enum const.
512 StorageAttributionReportingSourceRegistrationResultSuccessNoised StorageAttributionReportingSourceRegistrationResult = "successNoised"
513
514 // StorageAttributionReportingSourceRegistrationResultDestinationReportingLimitReached enum const.
515 StorageAttributionReportingSourceRegistrationResultDestinationReportingLimitReached StorageAttributionReportingSourceRegistrationResult = "destinationReportingLimitReached"
516
517 // StorageAttributionReportingSourceRegistrationResultDestinationGlobalLimitReached enum const.
518 StorageAttributionReportingSourceRegistrationResultDestinationGlobalLimitReached StorageAttributionReportingSourceRegistrationResult = "destinationGlobalLimitReached"
519
520 // StorageAttributionReportingSourceRegistrationResultDestinationBothLimitsReached enum const.
521 StorageAttributionReportingSourceRegistrationResultDestinationBothLimitsReached StorageAttributionReportingSourceRegistrationResult = "destinationBothLimitsReached"
522
523 // StorageAttributionReportingSourceRegistrationResultReportingOriginsPerSiteLimitReached enum const.
524 StorageAttributionReportingSourceRegistrationResultReportingOriginsPerSiteLimitReached StorageAttributionReportingSourceRegistrationResult = "reportingOriginsPerSiteLimitReached"
525
526 // StorageAttributionReportingSourceRegistrationResultExceedsMaxChannelCapacity enum const.
527 StorageAttributionReportingSourceRegistrationResultExceedsMaxChannelCapacity StorageAttributionReportingSourceRegistrationResult = "exceedsMaxChannelCapacity"
528
529 // StorageAttributionReportingSourceRegistrationResultExceedsMaxTriggerStateCardinality enum const.
530 StorageAttributionReportingSourceRegistrationResultExceedsMaxTriggerStateCardinality StorageAttributionReportingSourceRegistrationResult = "exceedsMaxTriggerStateCardinality"
531
532 // StorageAttributionReportingSourceRegistrationResultDestinationPerDayReportingLimitReached enum const.
533 StorageAttributionReportingSourceRegistrationResultDestinationPerDayReportingLimitReached StorageAttributionReportingSourceRegistrationResult = "destinationPerDayReportingLimitReached"
534)
535
536// StorageAttributionReportingSourceRegistrationTimeConfig (experimental) ...
537type StorageAttributionReportingSourceRegistrationTimeConfig string
538
539const (
540 // StorageAttributionReportingSourceRegistrationTimeConfigInclude enum const.
541 StorageAttributionReportingSourceRegistrationTimeConfigInclude StorageAttributionReportingSourceRegistrationTimeConfig = "include"
542
543 // StorageAttributionReportingSourceRegistrationTimeConfigExclude enum const.
544 StorageAttributionReportingSourceRegistrationTimeConfigExclude StorageAttributionReportingSourceRegistrationTimeConfig = "exclude"
545)
546
547// StorageAttributionReportingAggregatableValueDictEntry (experimental) ...
548type StorageAttributionReportingAggregatableValueDictEntry struct {
549 // Key ...
550 Key string `json:"key"`
551
552 // Value number instead of integer because not all uint32 can be represented by
553 // int
554 Value float64 `json:"value"`
555}
556
557// StorageAttributionReportingAggregatableValueEntry (experimental) ...
558type StorageAttributionReportingAggregatableValueEntry struct {
559 // Values ...
560 Values []*StorageAttributionReportingAggregatableValueDictEntry `json:"values"`
561
562 // Filters ...
563 Filters *StorageAttributionReportingFilterPair `json:"filters"`
564}
565
566// StorageAttributionReportingEventTriggerData (experimental) ...
567type StorageAttributionReportingEventTriggerData struct {
568 // Data ...
569 Data StorageUnsignedInt64AsBase10 `json:"data"`
570
571 // Priority ...
572 Priority StorageSignedInt64AsBase10 `json:"priority"`
573
574 // DedupKey (optional) ...
575 DedupKey StorageUnsignedInt64AsBase10 `json:"dedupKey,omitempty"`
576
577 // Filters ...
578 Filters *StorageAttributionReportingFilterPair `json:"filters"`
579}
580
581// StorageAttributionReportingAggregatableTriggerData (experimental) ...
582type StorageAttributionReportingAggregatableTriggerData struct {
583 // KeyPiece ...
584 KeyPiece StorageUnsignedInt128AsBase16 `json:"keyPiece"`
585
586 // SourceKeys ...
587 SourceKeys []string `json:"sourceKeys"`
588
589 // Filters ...
590 Filters *StorageAttributionReportingFilterPair `json:"filters"`
591}
592
593// StorageAttributionReportingAggregatableDedupKey (experimental) ...
594type StorageAttributionReportingAggregatableDedupKey struct {
595 // DedupKey (optional) ...
596 DedupKey StorageUnsignedInt64AsBase10 `json:"dedupKey,omitempty"`
597
598 // Filters ...
599 Filters *StorageAttributionReportingFilterPair `json:"filters"`
600}
601
602// StorageAttributionReportingTriggerRegistration (experimental) ...
603type StorageAttributionReportingTriggerRegistration struct {
604 // Filters ...
605 Filters *StorageAttributionReportingFilterPair `json:"filters"`
606
607 // DebugKey (optional) ...
608 DebugKey StorageUnsignedInt64AsBase10 `json:"debugKey,omitempty"`
609
610 // AggregatableDedupKeys ...
611 AggregatableDedupKeys []*StorageAttributionReportingAggregatableDedupKey `json:"aggregatableDedupKeys"`
612
613 // EventTriggerData ...
614 EventTriggerData []*StorageAttributionReportingEventTriggerData `json:"eventTriggerData"`
615
616 // AggregatableTriggerData ...
617 AggregatableTriggerData []*StorageAttributionReportingAggregatableTriggerData `json:"aggregatableTriggerData"`
618
619 // AggregatableValues ...
620 AggregatableValues []*StorageAttributionReportingAggregatableValueEntry `json:"aggregatableValues"`
621
622 // DebugReporting ...
623 DebugReporting bool `json:"debugReporting"`
624
625 // AggregationCoordinatorOrigin (optional) ...
626 AggregationCoordinatorOrigin string `json:"aggregationCoordinatorOrigin,omitempty"`
627
628 // SourceRegistrationTimeConfig ...
629 SourceRegistrationTimeConfig StorageAttributionReportingSourceRegistrationTimeConfig `json:"sourceRegistrationTimeConfig"`
630
631 // TriggerContextID (optional) ...
632 TriggerContextID string `json:"triggerContextId,omitempty"`
633}
634
635// StorageAttributionReportingEventLevelResult (experimental) ...
636type StorageAttributionReportingEventLevelResult string
637
638const (
639 // StorageAttributionReportingEventLevelResultSuccess enum const.
640 StorageAttributionReportingEventLevelResultSuccess StorageAttributionReportingEventLevelResult = "success"
641
642 // StorageAttributionReportingEventLevelResultSuccessDroppedLowerPriority enum const.
643 StorageAttributionReportingEventLevelResultSuccessDroppedLowerPriority StorageAttributionReportingEventLevelResult = "successDroppedLowerPriority"
644
645 // StorageAttributionReportingEventLevelResultInternalError enum const.
646 StorageAttributionReportingEventLevelResultInternalError StorageAttributionReportingEventLevelResult = "internalError"
647
648 // StorageAttributionReportingEventLevelResultNoCapacityForAttributionDestination enum const.
649 StorageAttributionReportingEventLevelResultNoCapacityForAttributionDestination StorageAttributionReportingEventLevelResult = "noCapacityForAttributionDestination"
650
651 // StorageAttributionReportingEventLevelResultNoMatchingSources enum const.
652 StorageAttributionReportingEventLevelResultNoMatchingSources StorageAttributionReportingEventLevelResult = "noMatchingSources"
653
654 // StorageAttributionReportingEventLevelResultDeduplicated enum const.
655 StorageAttributionReportingEventLevelResultDeduplicated StorageAttributionReportingEventLevelResult = "deduplicated"
656
657 // StorageAttributionReportingEventLevelResultExcessiveAttributions enum const.
658 StorageAttributionReportingEventLevelResultExcessiveAttributions StorageAttributionReportingEventLevelResult = "excessiveAttributions"
659
660 // StorageAttributionReportingEventLevelResultPriorityTooLow enum const.
661 StorageAttributionReportingEventLevelResultPriorityTooLow StorageAttributionReportingEventLevelResult = "priorityTooLow"
662
663 // StorageAttributionReportingEventLevelResultNeverAttributedSource enum const.
664 StorageAttributionReportingEventLevelResultNeverAttributedSource StorageAttributionReportingEventLevelResult = "neverAttributedSource"
665
666 // StorageAttributionReportingEventLevelResultExcessiveReportingOrigins enum const.
667 StorageAttributionReportingEventLevelResultExcessiveReportingOrigins StorageAttributionReportingEventLevelResult = "excessiveReportingOrigins"
668
669 // StorageAttributionReportingEventLevelResultNoMatchingSourceFilterData enum const.
670 StorageAttributionReportingEventLevelResultNoMatchingSourceFilterData StorageAttributionReportingEventLevelResult = "noMatchingSourceFilterData"
671
672 // StorageAttributionReportingEventLevelResultProhibitedByBrowserPolicy enum const.
673 StorageAttributionReportingEventLevelResultProhibitedByBrowserPolicy StorageAttributionReportingEventLevelResult = "prohibitedByBrowserPolicy"
674
675 // StorageAttributionReportingEventLevelResultNoMatchingConfigurations enum const.
676 StorageAttributionReportingEventLevelResultNoMatchingConfigurations StorageAttributionReportingEventLevelResult = "noMatchingConfigurations"
677
678 // StorageAttributionReportingEventLevelResultExcessiveReports enum const.
679 StorageAttributionReportingEventLevelResultExcessiveReports StorageAttributionReportingEventLevelResult = "excessiveReports"
680
681 // StorageAttributionReportingEventLevelResultFalselyAttributedSource enum const.
682 StorageAttributionReportingEventLevelResultFalselyAttributedSource StorageAttributionReportingEventLevelResult = "falselyAttributedSource"
683
684 // StorageAttributionReportingEventLevelResultReportWindowPassed enum const.
685 StorageAttributionReportingEventLevelResultReportWindowPassed StorageAttributionReportingEventLevelResult = "reportWindowPassed"
686
687 // StorageAttributionReportingEventLevelResultNotRegistered enum const.
688 StorageAttributionReportingEventLevelResultNotRegistered StorageAttributionReportingEventLevelResult = "notRegistered"
689
690 // StorageAttributionReportingEventLevelResultReportWindowNotStarted enum const.
691 StorageAttributionReportingEventLevelResultReportWindowNotStarted StorageAttributionReportingEventLevelResult = "reportWindowNotStarted"
692
693 // StorageAttributionReportingEventLevelResultNoMatchingTriggerData enum const.
694 StorageAttributionReportingEventLevelResultNoMatchingTriggerData StorageAttributionReportingEventLevelResult = "noMatchingTriggerData"
695)
696
697// StorageAttributionReportingAggregatableResult (experimental) ...
698type StorageAttributionReportingAggregatableResult string
699
700const (
701 // StorageAttributionReportingAggregatableResultSuccess enum const.
702 StorageAttributionReportingAggregatableResultSuccess StorageAttributionReportingAggregatableResult = "success"
703
704 // StorageAttributionReportingAggregatableResultInternalError enum const.
705 StorageAttributionReportingAggregatableResultInternalError StorageAttributionReportingAggregatableResult = "internalError"
706
707 // StorageAttributionReportingAggregatableResultNoCapacityForAttributionDestination enum const.
708 StorageAttributionReportingAggregatableResultNoCapacityForAttributionDestination StorageAttributionReportingAggregatableResult = "noCapacityForAttributionDestination"
709
710 // StorageAttributionReportingAggregatableResultNoMatchingSources enum const.
711 StorageAttributionReportingAggregatableResultNoMatchingSources StorageAttributionReportingAggregatableResult = "noMatchingSources"
712
713 // StorageAttributionReportingAggregatableResultExcessiveAttributions enum const.
714 StorageAttributionReportingAggregatableResultExcessiveAttributions StorageAttributionReportingAggregatableResult = "excessiveAttributions"
715
716 // StorageAttributionReportingAggregatableResultExcessiveReportingOrigins enum const.
717 StorageAttributionReportingAggregatableResultExcessiveReportingOrigins StorageAttributionReportingAggregatableResult = "excessiveReportingOrigins"
718
719 // StorageAttributionReportingAggregatableResultNoHistograms enum const.
720 StorageAttributionReportingAggregatableResultNoHistograms StorageAttributionReportingAggregatableResult = "noHistograms"
721
722 // StorageAttributionReportingAggregatableResultInsufficientBudget enum const.
723 StorageAttributionReportingAggregatableResultInsufficientBudget StorageAttributionReportingAggregatableResult = "insufficientBudget"
724
725 // StorageAttributionReportingAggregatableResultNoMatchingSourceFilterData enum const.
726 StorageAttributionReportingAggregatableResultNoMatchingSourceFilterData StorageAttributionReportingAggregatableResult = "noMatchingSourceFilterData"
727
728 // StorageAttributionReportingAggregatableResultNotRegistered enum const.
729 StorageAttributionReportingAggregatableResultNotRegistered StorageAttributionReportingAggregatableResult = "notRegistered"
730
731 // StorageAttributionReportingAggregatableResultProhibitedByBrowserPolicy enum const.
732 StorageAttributionReportingAggregatableResultProhibitedByBrowserPolicy StorageAttributionReportingAggregatableResult = "prohibitedByBrowserPolicy"
733
734 // StorageAttributionReportingAggregatableResultDeduplicated enum const.
735 StorageAttributionReportingAggregatableResultDeduplicated StorageAttributionReportingAggregatableResult = "deduplicated"
736
737 // StorageAttributionReportingAggregatableResultReportWindowPassed enum const.
738 StorageAttributionReportingAggregatableResultReportWindowPassed StorageAttributionReportingAggregatableResult = "reportWindowPassed"
739
740 // StorageAttributionReportingAggregatableResultExcessiveReports enum const.
741 StorageAttributionReportingAggregatableResultExcessiveReports StorageAttributionReportingAggregatableResult = "excessiveReports"
742)
743
744// StorageRelatedWebsiteSet (experimental) A single Related Website Set object.
745type StorageRelatedWebsiteSet struct {
746 // PrimarySites The primary site of this set, along with the ccTLDs if there is any.
747 PrimarySites []string `json:"primarySites"`
748
749 // AssociatedSites The associated sites of this set, along with the ccTLDs if there is any.
750 AssociatedSites []string `json:"associatedSites"`
751
752 // ServiceSites The service sites of this set, along with the ccTLDs if there is any.
753 ServiceSites []string `json:"serviceSites"`
754}
755
756// StorageGetStorageKeyForFrame Returns a storage key given a frame id.
757type StorageGetStorageKeyForFrame struct {
758 // FrameID ...
759 FrameID PageFrameID `json:"frameId"`
760}
761
762// ProtoReq name.
763func (m StorageGetStorageKeyForFrame) ProtoReq() string { return "Storage.getStorageKeyForFrame" }
764
765// Call the request.
766func (m StorageGetStorageKeyForFrame) Call(c Client) (*StorageGetStorageKeyForFrameResult, error) {
767 var res StorageGetStorageKeyForFrameResult
768 return &res, call(m.ProtoReq(), m, &res, c)
769}
770
771// StorageGetStorageKeyForFrameResult ...
772type StorageGetStorageKeyForFrameResult struct {
773 // StorageKey ...
774 StorageKey StorageSerializedStorageKey `json:"storageKey"`
775}
776
777// StorageClearDataForOrigin Clears storage for origin.
778type StorageClearDataForOrigin struct {
779 // Origin Security origin.
780 Origin string `json:"origin"`
781
782 // StorageTypes Comma separated list of StorageType to clear.
783 StorageTypes string `json:"storageTypes"`
784}
785
786// ProtoReq name.
787func (m StorageClearDataForOrigin) ProtoReq() string { return "Storage.clearDataForOrigin" }
788
789// Call sends the request.
790func (m StorageClearDataForOrigin) Call(c Client) error {
791 return call(m.ProtoReq(), m, nil, c)
792}
793
794// StorageClearDataForStorageKey Clears storage for storage key.
795type StorageClearDataForStorageKey struct {
796 // StorageKey Storage key.
797 StorageKey string `json:"storageKey"`
798
799 // StorageTypes Comma separated list of StorageType to clear.
800 StorageTypes string `json:"storageTypes"`
801}
802
803// ProtoReq name.
804func (m StorageClearDataForStorageKey) ProtoReq() string { return "Storage.clearDataForStorageKey" }
805
806// Call sends the request.
807func (m StorageClearDataForStorageKey) Call(c Client) error {
808 return call(m.ProtoReq(), m, nil, c)
809}
810
811// StorageGetCookies Returns all browser cookies.
812type StorageGetCookies struct {
813 // BrowserContextID (optional) Browser context to use when called on the browser endpoint.
814 BrowserContextID BrowserBrowserContextID `json:"browserContextId,omitempty"`
815}
816
817// ProtoReq name.
818func (m StorageGetCookies) ProtoReq() string { return "Storage.getCookies" }
819
820// Call the request.
821func (m StorageGetCookies) Call(c Client) (*StorageGetCookiesResult, error) {
822 var res StorageGetCookiesResult
823 return &res, call(m.ProtoReq(), m, &res, c)
824}
825
826// StorageGetCookiesResult ...
827type StorageGetCookiesResult struct {
828 // Cookies Array of cookie objects.
829 Cookies []*NetworkCookie `json:"cookies"`
830}
831
832// StorageSetCookies Sets given cookies.
833type StorageSetCookies struct {
834 // Cookies to be set.
835 Cookies []*NetworkCookieParam `json:"cookies"`
836
837 // BrowserContextID (optional) Browser context to use when called on the browser endpoint.
838 BrowserContextID BrowserBrowserContextID `json:"browserContextId,omitempty"`
839}
840
841// ProtoReq name.
842func (m StorageSetCookies) ProtoReq() string { return "Storage.setCookies" }
843
844// Call sends the request.
845func (m StorageSetCookies) Call(c Client) error {
846 return call(m.ProtoReq(), m, nil, c)
847}
848
849// StorageClearCookies Clears cookies.
850type StorageClearCookies struct {
851 // BrowserContextID (optional) Browser context to use when called on the browser endpoint.
852 BrowserContextID BrowserBrowserContextID `json:"browserContextId,omitempty"`
853}
854
855// ProtoReq name.
856func (m StorageClearCookies) ProtoReq() string { return "Storage.clearCookies" }
857
858// Call sends the request.
859func (m StorageClearCookies) Call(c Client) error {
860 return call(m.ProtoReq(), m, nil, c)
861}
862
863// StorageGetUsageAndQuota Returns usage and quota in bytes.
864type StorageGetUsageAndQuota struct {
865 // Origin Security origin.
866 Origin string `json:"origin"`
867}
868
869// ProtoReq name.
870func (m StorageGetUsageAndQuota) ProtoReq() string { return "Storage.getUsageAndQuota" }
871
872// Call the request.
873func (m StorageGetUsageAndQuota) Call(c Client) (*StorageGetUsageAndQuotaResult, error) {
874 var res StorageGetUsageAndQuotaResult
875 return &res, call(m.ProtoReq(), m, &res, c)
876}
877
878// StorageGetUsageAndQuotaResult ...
879type StorageGetUsageAndQuotaResult struct {
880 // Usage Storage usage (bytes).
881 Usage float64 `json:"usage"`
882
883 // Quota Storage quota (bytes).
884 Quota float64 `json:"quota"`
885
886 // OverrideActive Whether or not the origin has an active storage quota override
887 OverrideActive bool `json:"overrideActive"`
888
889 // UsageBreakdown Storage usage per type (bytes).
890 UsageBreakdown []*StorageUsageForType `json:"usageBreakdown"`
891}
892
893// StorageOverrideQuotaForOrigin (experimental) Override quota for the specified origin.
894type StorageOverrideQuotaForOrigin struct {
895 // Origin Security origin.
896 Origin string `json:"origin"`
897
898 // QuotaSize (optional) The quota size (in bytes) to override the original quota with.
899 // If this is called multiple times, the overridden quota will be equal to
900 // the quotaSize provided in the final call. If this is called without
901 // specifying a quotaSize, the quota will be reset to the default value for
902 // the specified origin. If this is called multiple times with different
903 // origins, the override will be maintained for each origin until it is
904 // disabled (called without a quotaSize).
905 QuotaSize *float64 `json:"quotaSize,omitempty"`
906}
907
908// ProtoReq name.
909func (m StorageOverrideQuotaForOrigin) ProtoReq() string { return "Storage.overrideQuotaForOrigin" }
910
911// Call sends the request.
912func (m StorageOverrideQuotaForOrigin) Call(c Client) error {
913 return call(m.ProtoReq(), m, nil, c)
914}
915
916// StorageTrackCacheStorageForOrigin Registers origin to be notified when an update occurs to its cache storage list.
917type StorageTrackCacheStorageForOrigin struct {
918 // Origin Security origin.
919 Origin string `json:"origin"`
920}
921
922// ProtoReq name.
923func (m StorageTrackCacheStorageForOrigin) ProtoReq() string {
924 return "Storage.trackCacheStorageForOrigin"
925}
926
927// Call sends the request.
928func (m StorageTrackCacheStorageForOrigin) Call(c Client) error {
929 return call(m.ProtoReq(), m, nil, c)
930}
931
932// StorageTrackCacheStorageForStorageKey Registers storage key to be notified when an update occurs to its cache storage list.
933type StorageTrackCacheStorageForStorageKey struct {
934 // StorageKey Storage key.
935 StorageKey string `json:"storageKey"`
936}
937
938// ProtoReq name.
939func (m StorageTrackCacheStorageForStorageKey) ProtoReq() string {
940 return "Storage.trackCacheStorageForStorageKey"
941}
942
943// Call sends the request.
944func (m StorageTrackCacheStorageForStorageKey) Call(c Client) error {
945 return call(m.ProtoReq(), m, nil, c)
946}
947
948// StorageTrackIndexedDBForOrigin Registers origin to be notified when an update occurs to its IndexedDB.
949type StorageTrackIndexedDBForOrigin struct {
950 // Origin Security origin.
951 Origin string `json:"origin"`
952}
953
954// ProtoReq name.
955func (m StorageTrackIndexedDBForOrigin) ProtoReq() string { return "Storage.trackIndexedDBForOrigin" }
956
957// Call sends the request.
958func (m StorageTrackIndexedDBForOrigin) Call(c Client) error {
959 return call(m.ProtoReq(), m, nil, c)
960}
961
962// StorageTrackIndexedDBForStorageKey Registers storage key to be notified when an update occurs to its IndexedDB.
963type StorageTrackIndexedDBForStorageKey struct {
964 // StorageKey Storage key.
965 StorageKey string `json:"storageKey"`
966}
967
968// ProtoReq name.
969func (m StorageTrackIndexedDBForStorageKey) ProtoReq() string {
970 return "Storage.trackIndexedDBForStorageKey"
971}
972
973// Call sends the request.
974func (m StorageTrackIndexedDBForStorageKey) Call(c Client) error {
975 return call(m.ProtoReq(), m, nil, c)
976}
977
978// StorageUntrackCacheStorageForOrigin Unregisters origin from receiving notifications for cache storage.
979type StorageUntrackCacheStorageForOrigin struct {
980 // Origin Security origin.
981 Origin string `json:"origin"`
982}
983
984// ProtoReq name.
985func (m StorageUntrackCacheStorageForOrigin) ProtoReq() string {
986 return "Storage.untrackCacheStorageForOrigin"
987}
988
989// Call sends the request.
990func (m StorageUntrackCacheStorageForOrigin) Call(c Client) error {
991 return call(m.ProtoReq(), m, nil, c)
992}
993
994// StorageUntrackCacheStorageForStorageKey Unregisters storage key from receiving notifications for cache storage.
995type StorageUntrackCacheStorageForStorageKey struct {
996 // StorageKey Storage key.
997 StorageKey string `json:"storageKey"`
998}
999
1000// ProtoReq name.
1001func (m StorageUntrackCacheStorageForStorageKey) ProtoReq() string {
1002 return "Storage.untrackCacheStorageForStorageKey"
1003}
1004
1005// Call sends the request.
1006func (m StorageUntrackCacheStorageForStorageKey) Call(c Client) error {
1007 return call(m.ProtoReq(), m, nil, c)
1008}
1009
1010// StorageUntrackIndexedDBForOrigin Unregisters origin from receiving notifications for IndexedDB.
1011type StorageUntrackIndexedDBForOrigin struct {
1012 // Origin Security origin.
1013 Origin string `json:"origin"`
1014}
1015
1016// ProtoReq name.
1017func (m StorageUntrackIndexedDBForOrigin) ProtoReq() string {
1018 return "Storage.untrackIndexedDBForOrigin"
1019}
1020
1021// Call sends the request.
1022func (m StorageUntrackIndexedDBForOrigin) Call(c Client) error {
1023 return call(m.ProtoReq(), m, nil, c)
1024}
1025
1026// StorageUntrackIndexedDBForStorageKey Unregisters storage key from receiving notifications for IndexedDB.
1027type StorageUntrackIndexedDBForStorageKey struct {
1028 // StorageKey Storage key.
1029 StorageKey string `json:"storageKey"`
1030}
1031
1032// ProtoReq name.
1033func (m StorageUntrackIndexedDBForStorageKey) ProtoReq() string {
1034 return "Storage.untrackIndexedDBForStorageKey"
1035}
1036
1037// Call sends the request.
1038func (m StorageUntrackIndexedDBForStorageKey) Call(c Client) error {
1039 return call(m.ProtoReq(), m, nil, c)
1040}
1041
1042// StorageGetTrustTokens (experimental) Returns the number of stored Trust Tokens per issuer for the
1043// current browsing context.
1044type StorageGetTrustTokens struct{}
1045
1046// ProtoReq name.
1047func (m StorageGetTrustTokens) ProtoReq() string { return "Storage.getTrustTokens" }
1048
1049// Call the request.
1050func (m StorageGetTrustTokens) Call(c Client) (*StorageGetTrustTokensResult, error) {
1051 var res StorageGetTrustTokensResult
1052 return &res, call(m.ProtoReq(), m, &res, c)
1053}
1054
1055// StorageGetTrustTokensResult (experimental) ...
1056type StorageGetTrustTokensResult struct {
1057 // Tokens ...
1058 Tokens []*StorageTrustTokens `json:"tokens"`
1059}
1060
1061// StorageClearTrustTokens (experimental) Removes all Trust Tokens issued by the provided issuerOrigin.
1062// Leaves other stored data, including the issuer's Redemption Records, intact.
1063type StorageClearTrustTokens struct {
1064 // IssuerOrigin ...
1065 IssuerOrigin string `json:"issuerOrigin"`
1066}
1067
1068// ProtoReq name.
1069func (m StorageClearTrustTokens) ProtoReq() string { return "Storage.clearTrustTokens" }
1070
1071// Call the request.
1072func (m StorageClearTrustTokens) Call(c Client) (*StorageClearTrustTokensResult, error) {
1073 var res StorageClearTrustTokensResult
1074 return &res, call(m.ProtoReq(), m, &res, c)
1075}
1076
1077// StorageClearTrustTokensResult (experimental) ...
1078type StorageClearTrustTokensResult struct {
1079 // DidDeleteTokens True if any tokens were deleted, false otherwise.
1080 DidDeleteTokens bool `json:"didDeleteTokens"`
1081}
1082
1083// StorageGetInterestGroupDetails (experimental) Gets details for a named interest group.
1084type StorageGetInterestGroupDetails struct {
1085 // OwnerOrigin ...
1086 OwnerOrigin string `json:"ownerOrigin"`
1087
1088 // Name ...
1089 Name string `json:"name"`
1090}
1091
1092// ProtoReq name.
1093func (m StorageGetInterestGroupDetails) ProtoReq() string { return "Storage.getInterestGroupDetails" }
1094
1095// Call the request.
1096func (m StorageGetInterestGroupDetails) Call(c Client) (*StorageGetInterestGroupDetailsResult, error) {
1097 var res StorageGetInterestGroupDetailsResult
1098 return &res, call(m.ProtoReq(), m, &res, c)
1099}
1100
1101// StorageGetInterestGroupDetailsResult (experimental) ...
1102type StorageGetInterestGroupDetailsResult struct {
1103 // Details This largely corresponds to:
1104 // https://wicg.github.io/turtledove/#dictdef-generatebidinterestgroup
1105 // but has absolute expirationTime instead of relative lifetimeMs and
1106 // also adds joiningOrigin.
1107 Details map[string]gson.JSON `json:"details"`
1108}
1109
1110// StorageSetInterestGroupTracking (experimental) Enables/Disables issuing of interestGroupAccessed events.
1111type StorageSetInterestGroupTracking struct {
1112 // Enable ...
1113 Enable bool `json:"enable"`
1114}
1115
1116// ProtoReq name.
1117func (m StorageSetInterestGroupTracking) ProtoReq() string { return "Storage.setInterestGroupTracking" }
1118
1119// Call sends the request.
1120func (m StorageSetInterestGroupTracking) Call(c Client) error {
1121 return call(m.ProtoReq(), m, nil, c)
1122}
1123
1124// StorageSetInterestGroupAuctionTracking (experimental) Enables/Disables issuing of interestGroupAuctionEventOccurred and
1125// interestGroupAuctionNetworkRequestCreated.
1126type StorageSetInterestGroupAuctionTracking struct {
1127 // Enable ...
1128 Enable bool `json:"enable"`
1129}
1130
1131// ProtoReq name.
1132func (m StorageSetInterestGroupAuctionTracking) ProtoReq() string {
1133 return "Storage.setInterestGroupAuctionTracking"
1134}
1135
1136// Call sends the request.
1137func (m StorageSetInterestGroupAuctionTracking) Call(c Client) error {
1138 return call(m.ProtoReq(), m, nil, c)
1139}
1140
1141// StorageGetSharedStorageMetadata (experimental) Gets metadata for an origin's shared storage.
1142type StorageGetSharedStorageMetadata struct {
1143 // OwnerOrigin ...
1144 OwnerOrigin string `json:"ownerOrigin"`
1145}
1146
1147// ProtoReq name.
1148func (m StorageGetSharedStorageMetadata) ProtoReq() string { return "Storage.getSharedStorageMetadata" }
1149
1150// Call the request.
1151func (m StorageGetSharedStorageMetadata) Call(c Client) (*StorageGetSharedStorageMetadataResult, error) {
1152 var res StorageGetSharedStorageMetadataResult
1153 return &res, call(m.ProtoReq(), m, &res, c)
1154}
1155
1156// StorageGetSharedStorageMetadataResult (experimental) ...
1157type StorageGetSharedStorageMetadataResult struct {
1158 // Metadata ...
1159 Metadata *StorageSharedStorageMetadata `json:"metadata"`
1160}
1161
1162// StorageGetSharedStorageEntries (experimental) Gets the entries in an given origin's shared storage.
1163type StorageGetSharedStorageEntries struct {
1164 // OwnerOrigin ...
1165 OwnerOrigin string `json:"ownerOrigin"`
1166}
1167
1168// ProtoReq name.
1169func (m StorageGetSharedStorageEntries) ProtoReq() string { return "Storage.getSharedStorageEntries" }
1170
1171// Call the request.
1172func (m StorageGetSharedStorageEntries) Call(c Client) (*StorageGetSharedStorageEntriesResult, error) {
1173 var res StorageGetSharedStorageEntriesResult
1174 return &res, call(m.ProtoReq(), m, &res, c)
1175}
1176
1177// StorageGetSharedStorageEntriesResult (experimental) ...
1178type StorageGetSharedStorageEntriesResult struct {
1179 // Entries ...
1180 Entries []*StorageSharedStorageEntry `json:"entries"`
1181}
1182
1183// StorageSetSharedStorageEntry (experimental) Sets entry with `key` and `value` for a given origin's shared storage.
1184type StorageSetSharedStorageEntry struct {
1185 // OwnerOrigin ...
1186 OwnerOrigin string `json:"ownerOrigin"`
1187
1188 // Key ...
1189 Key string `json:"key"`
1190
1191 // Value ...
1192 Value string `json:"value"`
1193
1194 // IgnoreIfPresent (optional) If `ignoreIfPresent` is included and true, then only sets the entry if
1195 // `key` doesn't already exist.
1196 IgnoreIfPresent bool `json:"ignoreIfPresent,omitempty"`
1197}
1198
1199// ProtoReq name.
1200func (m StorageSetSharedStorageEntry) ProtoReq() string { return "Storage.setSharedStorageEntry" }
1201
1202// Call sends the request.
1203func (m StorageSetSharedStorageEntry) Call(c Client) error {
1204 return call(m.ProtoReq(), m, nil, c)
1205}
1206
1207// StorageDeleteSharedStorageEntry (experimental) Deletes entry for `key` (if it exists) for a given origin's shared storage.
1208type StorageDeleteSharedStorageEntry struct {
1209 // OwnerOrigin ...
1210 OwnerOrigin string `json:"ownerOrigin"`
1211
1212 // Key ...
1213 Key string `json:"key"`
1214}
1215
1216// ProtoReq name.
1217func (m StorageDeleteSharedStorageEntry) ProtoReq() string { return "Storage.deleteSharedStorageEntry" }
1218
1219// Call sends the request.
1220func (m StorageDeleteSharedStorageEntry) Call(c Client) error {
1221 return call(m.ProtoReq(), m, nil, c)
1222}
1223
1224// StorageClearSharedStorageEntries (experimental) Clears all entries for a given origin's shared storage.
1225type StorageClearSharedStorageEntries struct {
1226 // OwnerOrigin ...
1227 OwnerOrigin string `json:"ownerOrigin"`
1228}
1229
1230// ProtoReq name.
1231func (m StorageClearSharedStorageEntries) ProtoReq() string {
1232 return "Storage.clearSharedStorageEntries"
1233}
1234
1235// Call sends the request.
1236func (m StorageClearSharedStorageEntries) Call(c Client) error {
1237 return call(m.ProtoReq(), m, nil, c)
1238}
1239
1240// StorageResetSharedStorageBudget (experimental) Resets the budget for `ownerOrigin` by clearing all budget withdrawals.
1241type StorageResetSharedStorageBudget struct {
1242 // OwnerOrigin ...
1243 OwnerOrigin string `json:"ownerOrigin"`
1244}
1245
1246// ProtoReq name.
1247func (m StorageResetSharedStorageBudget) ProtoReq() string { return "Storage.resetSharedStorageBudget" }
1248
1249// Call sends the request.
1250func (m StorageResetSharedStorageBudget) Call(c Client) error {
1251 return call(m.ProtoReq(), m, nil, c)
1252}
1253
1254// StorageSetSharedStorageTracking (experimental) Enables/disables issuing of sharedStorageAccessed events.
1255type StorageSetSharedStorageTracking struct {
1256 // Enable ...
1257 Enable bool `json:"enable"`
1258}
1259
1260// ProtoReq name.
1261func (m StorageSetSharedStorageTracking) ProtoReq() string { return "Storage.setSharedStorageTracking" }
1262
1263// Call sends the request.
1264func (m StorageSetSharedStorageTracking) Call(c Client) error {
1265 return call(m.ProtoReq(), m, nil, c)
1266}
1267
1268// StorageSetStorageBucketTracking (experimental) Set tracking for a storage key's buckets.
1269type StorageSetStorageBucketTracking struct {
1270 // StorageKey ...
1271 StorageKey string `json:"storageKey"`
1272
1273 // Enable ...
1274 Enable bool `json:"enable"`
1275}
1276
1277// ProtoReq name.
1278func (m StorageSetStorageBucketTracking) ProtoReq() string { return "Storage.setStorageBucketTracking" }
1279
1280// Call sends the request.
1281func (m StorageSetStorageBucketTracking) Call(c Client) error {
1282 return call(m.ProtoReq(), m, nil, c)
1283}
1284
1285// StorageDeleteStorageBucket (experimental) Deletes the Storage Bucket with the given storage key and bucket name.
1286type StorageDeleteStorageBucket struct {
1287 // Bucket ...
1288 Bucket *StorageStorageBucket `json:"bucket"`
1289}
1290
1291// ProtoReq name.
1292func (m StorageDeleteStorageBucket) ProtoReq() string { return "Storage.deleteStorageBucket" }
1293
1294// Call sends the request.
1295func (m StorageDeleteStorageBucket) Call(c Client) error {
1296 return call(m.ProtoReq(), m, nil, c)
1297}
1298
1299// StorageRunBounceTrackingMitigations (experimental) Deletes state for sites identified as potential bounce trackers, immediately.
1300type StorageRunBounceTrackingMitigations struct{}
1301
1302// ProtoReq name.
1303func (m StorageRunBounceTrackingMitigations) ProtoReq() string {
1304 return "Storage.runBounceTrackingMitigations"
1305}
1306
1307// Call the request.
1308func (m StorageRunBounceTrackingMitigations) Call(c Client) (*StorageRunBounceTrackingMitigationsResult, error) {
1309 var res StorageRunBounceTrackingMitigationsResult
1310 return &res, call(m.ProtoReq(), m, &res, c)
1311}
1312
1313// StorageRunBounceTrackingMitigationsResult (experimental) ...
1314type StorageRunBounceTrackingMitigationsResult struct {
1315 // DeletedSites ...
1316 DeletedSites []string `json:"deletedSites"`
1317}
1318
1319// StorageSetAttributionReportingLocalTestingMode (experimental) https://wicg.github.io/attribution-reporting-api/
1320type StorageSetAttributionReportingLocalTestingMode struct {
1321 // Enabled If enabled, noise is suppressed and reports are sent immediately.
1322 Enabled bool `json:"enabled"`
1323}
1324
1325// ProtoReq name.
1326func (m StorageSetAttributionReportingLocalTestingMode) ProtoReq() string {
1327 return "Storage.setAttributionReportingLocalTestingMode"
1328}
1329
1330// Call sends the request.
1331func (m StorageSetAttributionReportingLocalTestingMode) Call(c Client) error {
1332 return call(m.ProtoReq(), m, nil, c)
1333}
1334
1335// StorageSetAttributionReportingTracking (experimental) Enables/disables issuing of Attribution Reporting events.
1336type StorageSetAttributionReportingTracking struct {
1337 // Enable ...
1338 Enable bool `json:"enable"`
1339}
1340
1341// ProtoReq name.
1342func (m StorageSetAttributionReportingTracking) ProtoReq() string {
1343 return "Storage.setAttributionReportingTracking"
1344}
1345
1346// Call sends the request.
1347func (m StorageSetAttributionReportingTracking) Call(c Client) error {
1348 return call(m.ProtoReq(), m, nil, c)
1349}
1350
1351// StorageSendPendingAttributionReports (experimental) Sends all pending Attribution Reports immediately, regardless of their
1352// scheduled report time.
1353type StorageSendPendingAttributionReports struct{}
1354
1355// ProtoReq name.
1356func (m StorageSendPendingAttributionReports) ProtoReq() string {
1357 return "Storage.sendPendingAttributionReports"
1358}
1359
1360// Call the request.
1361func (m StorageSendPendingAttributionReports) Call(c Client) (*StorageSendPendingAttributionReportsResult, error) {
1362 var res StorageSendPendingAttributionReportsResult
1363 return &res, call(m.ProtoReq(), m, &res, c)
1364}
1365
1366// StorageSendPendingAttributionReportsResult (experimental) ...
1367type StorageSendPendingAttributionReportsResult struct {
1368 // NumSent The number of reports that were sent.
1369 NumSent int `json:"numSent"`
1370}
1371
1372// StorageGetRelatedWebsiteSets (experimental) Returns the effective Related Website Sets in use by this profile for the browser
1373// session. The effective Related Website Sets will not change during a browser session.
1374type StorageGetRelatedWebsiteSets struct{}
1375
1376// ProtoReq name.
1377func (m StorageGetRelatedWebsiteSets) ProtoReq() string { return "Storage.getRelatedWebsiteSets" }
1378
1379// Call the request.
1380func (m StorageGetRelatedWebsiteSets) Call(c Client) (*StorageGetRelatedWebsiteSetsResult, error) {
1381 var res StorageGetRelatedWebsiteSetsResult
1382 return &res, call(m.ProtoReq(), m, &res, c)
1383}
1384
1385// StorageGetRelatedWebsiteSetsResult (experimental) ...
1386type StorageGetRelatedWebsiteSetsResult struct {
1387 // Sets ...
1388 Sets []*StorageRelatedWebsiteSet `json:"sets"`
1389}
1390
1391// StorageCacheStorageContentUpdated A cache's contents have been modified.
1392type StorageCacheStorageContentUpdated struct {
1393 // Origin to update.
1394 Origin string `json:"origin"`
1395
1396 // StorageKey Storage key to update.
1397 StorageKey string `json:"storageKey"`
1398
1399 // BucketID Storage bucket to update.
1400 BucketID string `json:"bucketId"`
1401
1402 // CacheName Name of cache in origin.
1403 CacheName string `json:"cacheName"`
1404}
1405
1406// ProtoEvent name.
1407func (evt StorageCacheStorageContentUpdated) ProtoEvent() string {
1408 return "Storage.cacheStorageContentUpdated"
1409}
1410
1411// StorageCacheStorageListUpdated A cache has been added/deleted.
1412type StorageCacheStorageListUpdated struct {
1413 // Origin to update.
1414 Origin string `json:"origin"`
1415
1416 // StorageKey Storage key to update.
1417 StorageKey string `json:"storageKey"`
1418
1419 // BucketID Storage bucket to update.
1420 BucketID string `json:"bucketId"`
1421}
1422
1423// ProtoEvent name.
1424func (evt StorageCacheStorageListUpdated) ProtoEvent() string {
1425 return "Storage.cacheStorageListUpdated"
1426}
1427
1428// StorageIndexedDBContentUpdated The origin's IndexedDB object store has been modified.
1429type StorageIndexedDBContentUpdated struct {
1430 // Origin to update.
1431 Origin string `json:"origin"`
1432
1433 // StorageKey Storage key to update.
1434 StorageKey string `json:"storageKey"`
1435
1436 // BucketID Storage bucket to update.
1437 BucketID string `json:"bucketId"`
1438
1439 // DatabaseName Database to update.
1440 DatabaseName string `json:"databaseName"`
1441
1442 // ObjectStoreName ObjectStore to update.
1443 ObjectStoreName string `json:"objectStoreName"`
1444}
1445
1446// ProtoEvent name.
1447func (evt StorageIndexedDBContentUpdated) ProtoEvent() string {
1448 return "Storage.indexedDBContentUpdated"
1449}
1450
1451// StorageIndexedDBListUpdated The origin's IndexedDB database list has been modified.
1452type StorageIndexedDBListUpdated struct {
1453 // Origin to update.
1454 Origin string `json:"origin"`
1455
1456 // StorageKey Storage key to update.
1457 StorageKey string `json:"storageKey"`
1458
1459 // BucketID Storage bucket to update.
1460 BucketID string `json:"bucketId"`
1461}
1462
1463// ProtoEvent name.
1464func (evt StorageIndexedDBListUpdated) ProtoEvent() string {
1465 return "Storage.indexedDBListUpdated"
1466}
1467
1468// StorageInterestGroupAccessed One of the interest groups was accessed. Note that these events are global
1469// to all targets sharing an interest group store.
1470type StorageInterestGroupAccessed struct {
1471 // AccessTime ...
1472 AccessTime TimeSinceEpoch `json:"accessTime"`
1473
1474 // Type ...
1475 Type StorageInterestGroupAccessType `json:"type"`
1476
1477 // OwnerOrigin ...
1478 OwnerOrigin string `json:"ownerOrigin"`
1479
1480 // Name ...
1481 Name string `json:"name"`
1482
1483 // ComponentSellerOrigin (optional) For topLevelBid/topLevelAdditionalBid, and when appropriate,
1484 // win and additionalBidWin
1485 ComponentSellerOrigin string `json:"componentSellerOrigin,omitempty"`
1486
1487 // Bid (optional) For bid or somethingBid event, if done locally and not on a server.
1488 Bid *float64 `json:"bid,omitempty"`
1489
1490 // BidCurrency (optional) ...
1491 BidCurrency string `json:"bidCurrency,omitempty"`
1492
1493 // UniqueAuctionID (optional) For non-global events --- links to interestGroupAuctionEvent
1494 UniqueAuctionID StorageInterestGroupAuctionID `json:"uniqueAuctionId,omitempty"`
1495}
1496
1497// ProtoEvent name.
1498func (evt StorageInterestGroupAccessed) ProtoEvent() string {
1499 return "Storage.interestGroupAccessed"
1500}
1501
1502// StorageInterestGroupAuctionEventOccurred An auction involving interest groups is taking place. These events are
1503// target-specific.
1504type StorageInterestGroupAuctionEventOccurred struct {
1505 // EventTime ...
1506 EventTime TimeSinceEpoch `json:"eventTime"`
1507
1508 // Type ...
1509 Type StorageInterestGroupAuctionEventType `json:"type"`
1510
1511 // UniqueAuctionID ...
1512 UniqueAuctionID StorageInterestGroupAuctionID `json:"uniqueAuctionId"`
1513
1514 // ParentAuctionID (optional) Set for child auctions.
1515 ParentAuctionID StorageInterestGroupAuctionID `json:"parentAuctionId,omitempty"`
1516
1517 // AuctionConfig (optional) Set for started and configResolved
1518 AuctionConfig map[string]gson.JSON `json:"auctionConfig,omitempty"`
1519}
1520
1521// ProtoEvent name.
1522func (evt StorageInterestGroupAuctionEventOccurred) ProtoEvent() string {
1523 return "Storage.interestGroupAuctionEventOccurred"
1524}
1525
1526// StorageInterestGroupAuctionNetworkRequestCreated Specifies which auctions a particular network fetch may be related to, and
1527// in what role. Note that it is not ordered with respect to
1528// Network.requestWillBeSent (but will happen before loadingFinished
1529// loadingFailed).
1530type StorageInterestGroupAuctionNetworkRequestCreated struct {
1531 // Type ...
1532 Type StorageInterestGroupAuctionFetchType `json:"type"`
1533
1534 // RequestID ...
1535 RequestID NetworkRequestID `json:"requestId"`
1536
1537 // Auctions This is the set of the auctions using the worklet that issued this
1538 // request. In the case of trusted signals, it's possible that only some of
1539 // them actually care about the keys being queried.
1540 Auctions []StorageInterestGroupAuctionID `json:"auctions"`
1541}
1542
1543// ProtoEvent name.
1544func (evt StorageInterestGroupAuctionNetworkRequestCreated) ProtoEvent() string {
1545 return "Storage.interestGroupAuctionNetworkRequestCreated"
1546}
1547
1548// StorageSharedStorageAccessed Shared storage was accessed by the associated page.
1549// The following parameters are included in all events.
1550type StorageSharedStorageAccessed struct {
1551 // AccessTime Time of the access.
1552 AccessTime TimeSinceEpoch `json:"accessTime"`
1553
1554 // Type Enum value indicating the Shared Storage API method invoked.
1555 Type StorageSharedStorageAccessType `json:"type"`
1556
1557 // MainFrameID DevTools Frame Token for the primary frame tree's root.
1558 MainFrameID PageFrameID `json:"mainFrameId"`
1559
1560 // OwnerOrigin Serialized origin for the context that invoked the Shared Storage API.
1561 OwnerOrigin string `json:"ownerOrigin"`
1562
1563 // Params The sub-parameters wrapped by `params` are all optional and their
1564 // presence/absence depends on `type`.
1565 Params *StorageSharedStorageAccessParams `json:"params"`
1566}
1567
1568// ProtoEvent name.
1569func (evt StorageSharedStorageAccessed) ProtoEvent() string {
1570 return "Storage.sharedStorageAccessed"
1571}
1572
1573// StorageStorageBucketCreatedOrUpdated ...
1574type StorageStorageBucketCreatedOrUpdated struct {
1575 // BucketInfo ...
1576 BucketInfo *StorageStorageBucketInfo `json:"bucketInfo"`
1577}
1578
1579// ProtoEvent name.
1580func (evt StorageStorageBucketCreatedOrUpdated) ProtoEvent() string {
1581 return "Storage.storageBucketCreatedOrUpdated"
1582}
1583
1584// StorageStorageBucketDeleted ...
1585type StorageStorageBucketDeleted struct {
1586 // BucketID ...
1587 BucketID string `json:"bucketId"`
1588}
1589
1590// ProtoEvent name.
1591func (evt StorageStorageBucketDeleted) ProtoEvent() string {
1592 return "Storage.storageBucketDeleted"
1593}
1594
1595// StorageAttributionReportingSourceRegistered (experimental) ...
1596type StorageAttributionReportingSourceRegistered struct {
1597 // Registration ...
1598 Registration *StorageAttributionReportingSourceRegistration `json:"registration"`
1599
1600 // Result ...
1601 Result StorageAttributionReportingSourceRegistrationResult `json:"result"`
1602}
1603
1604// ProtoEvent name.
1605func (evt StorageAttributionReportingSourceRegistered) ProtoEvent() string {
1606 return "Storage.attributionReportingSourceRegistered"
1607}
1608
1609// StorageAttributionReportingTriggerRegistered (experimental) ...
1610type StorageAttributionReportingTriggerRegistered struct {
1611 // Registration ...
1612 Registration *StorageAttributionReportingTriggerRegistration `json:"registration"`
1613
1614 // EventLevel ...
1615 EventLevel StorageAttributionReportingEventLevelResult `json:"eventLevel"`
1616
1617 // Aggregatable ...
1618 Aggregatable StorageAttributionReportingAggregatableResult `json:"aggregatable"`
1619}
1620
1621// ProtoEvent name.
1622func (evt StorageAttributionReportingTriggerRegistered) ProtoEvent() string {
1623 return "Storage.attributionReportingTriggerRegistered"
1624}