cdp-protocol 0.3.1

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