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
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
// Auto-generated from Chrome at version 146.0.7680.165 domain: Network
#![allow(dead_code)]
use super::debugger;
use super::emulation;
use super::io;
use super::network;
use super::page;
use super::runtime;
use super::security;
#[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 LoaderId = String;
pub type RequestId = String;
pub type InterceptionId = String;
pub type TimeSinceEpoch = JsFloat;
pub type MonotonicTime = JsFloat;
pub type ReportId = String;
pub type DeviceBoundSessionEventId = String;
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub enum ResourceType {
    #[serde(rename = "Document")]
    Document,
    #[serde(rename = "Stylesheet")]
    Stylesheet,
    #[serde(rename = "Image")]
    Image,
    #[serde(rename = "Media")]
    Media,
    #[serde(rename = "Font")]
    Font,
    #[serde(rename = "Script")]
    Script,
    #[serde(rename = "TextTrack")]
    TextTrack,
    #[serde(rename = "XHR")]
    Xhr,
    #[serde(rename = "Fetch")]
    Fetch,
    #[serde(rename = "Prefetch")]
    Prefetch,
    #[serde(rename = "EventSource")]
    EventSource,
    #[serde(rename = "WebSocket")]
    WebSocket,
    #[serde(rename = "Manifest")]
    Manifest,
    #[serde(rename = "SignedExchange")]
    SignedExchange,
    #[serde(rename = "Ping")]
    Ping,
    #[serde(rename = "CSPViolationReport")]
    CspViolationReport,
    #[serde(rename = "Preflight")]
    Preflight,
    #[serde(rename = "FedCM")]
    FedCm,
    #[serde(rename = "Other")]
    Other,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub enum ErrorReason {
    #[serde(rename = "Failed")]
    Failed,
    #[serde(rename = "Aborted")]
    Aborted,
    #[serde(rename = "TimedOut")]
    TimedOut,
    #[serde(rename = "AccessDenied")]
    AccessDenied,
    #[serde(rename = "ConnectionClosed")]
    ConnectionClosed,
    #[serde(rename = "ConnectionReset")]
    ConnectionReset,
    #[serde(rename = "ConnectionRefused")]
    ConnectionRefused,
    #[serde(rename = "ConnectionAborted")]
    ConnectionAborted,
    #[serde(rename = "ConnectionFailed")]
    ConnectionFailed,
    #[serde(rename = "NameNotResolved")]
    NameNotResolved,
    #[serde(rename = "InternetDisconnected")]
    InternetDisconnected,
    #[serde(rename = "AddressUnreachable")]
    AddressUnreachable,
    #[serde(rename = "BlockedByClient")]
    BlockedByClient,
    #[serde(rename = "BlockedByResponse")]
    BlockedByResponse,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub enum ConnectionType {
    #[serde(rename = "none")]
    None,
    #[serde(rename = "cellular2g")]
    Cellular2G,
    #[serde(rename = "cellular3g")]
    Cellular3G,
    #[serde(rename = "cellular4g")]
    Cellular4G,
    #[serde(rename = "bluetooth")]
    Bluetooth,
    #[serde(rename = "ethernet")]
    Ethernet,
    #[serde(rename = "wifi")]
    Wifi,
    #[serde(rename = "wimax")]
    Wimax,
    #[serde(rename = "other")]
    Other,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub enum CookieSameSite {
    #[serde(rename = "Strict")]
    Strict,
    #[serde(rename = "Lax")]
    Lax,
    #[serde(rename = "None")]
    None,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub enum CookiePriority {
    #[serde(rename = "Low")]
    Low,
    #[serde(rename = "Medium")]
    Medium,
    #[serde(rename = "High")]
    High,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub enum CookieSourceScheme {
    #[serde(rename = "Unset")]
    Unset,
    #[serde(rename = "NonSecure")]
    NonSecure,
    #[serde(rename = "Secure")]
    Secure,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub enum ResourcePriority {
    #[serde(rename = "VeryLow")]
    VeryLow,
    #[serde(rename = "Low")]
    Low,
    #[serde(rename = "Medium")]
    Medium,
    #[serde(rename = "High")]
    High,
    #[serde(rename = "VeryHigh")]
    VeryHigh,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub enum RenderBlockingBehavior {
    #[serde(rename = "Blocking")]
    Blocking,
    #[serde(rename = "InBodyParserBlocking")]
    InBodyParserBlocking,
    #[serde(rename = "NonBlocking")]
    NonBlocking,
    #[serde(rename = "NonBlockingDynamic")]
    NonBlockingDynamic,
    #[serde(rename = "PotentiallyBlocking")]
    PotentiallyBlocking,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub enum RequestReferrerPolicy {
    #[serde(rename = "unsafe-url")]
    UnsafeUrl,
    #[serde(rename = "no-referrer-when-downgrade")]
    NoReferrerWhenDowngrade,
    #[serde(rename = "no-referrer")]
    NoReferrer,
    #[serde(rename = "origin")]
    Origin,
    #[serde(rename = "origin-when-cross-origin")]
    OriginWhenCrossOrigin,
    #[serde(rename = "same-origin")]
    SameOrigin,
    #[serde(rename = "strict-origin")]
    StrictOrigin,
    #[serde(rename = "strict-origin-when-cross-origin")]
    StrictOriginWhenCrossOrigin,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub enum CertificateTransparencyCompliance {
    #[serde(rename = "unknown")]
    Unknown,
    #[serde(rename = "not-compliant")]
    NotCompliant,
    #[serde(rename = "compliant")]
    Compliant,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub enum BlockedReason {
    #[serde(rename = "other")]
    Other,
    #[serde(rename = "csp")]
    Csp,
    #[serde(rename = "mixed-content")]
    MixedContent,
    #[serde(rename = "origin")]
    Origin,
    #[serde(rename = "inspector")]
    Inspector,
    #[serde(rename = "integrity")]
    Integrity,
    #[serde(rename = "subresource-filter")]
    SubresourceFilter,
    #[serde(rename = "content-type")]
    ContentType,
    #[serde(rename = "coep-frame-resource-needs-coep-header")]
    CoepFrameResourceNeedsCoepHeader,
    #[serde(rename = "coop-sandboxed-iframe-cannot-navigate-to-coop-page")]
    CoopSandboxedIframeCannotNavigateToCoopPage,
    #[serde(rename = "corp-not-same-origin")]
    CorpNotSameOrigin,
    #[serde(rename = "corp-not-same-origin-after-defaulted-to-same-origin-by-coep")]
    CorpNotSameOriginAfterDefaultedToSameOriginByCoep,
    #[serde(rename = "corp-not-same-origin-after-defaulted-to-same-origin-by-dip")]
    CorpNotSameOriginAfterDefaultedToSameOriginByDip,
    #[serde(rename = "corp-not-same-origin-after-defaulted-to-same-origin-by-coep-and-dip")]
    CorpNotSameOriginAfterDefaultedToSameOriginByCoepAndDip,
    #[serde(rename = "corp-not-same-site")]
    CorpNotSameSite,
    #[serde(rename = "sri-message-signature-mismatch")]
    SriMessageSignatureMismatch,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub enum CorsError {
    #[serde(rename = "DisallowedByMode")]
    DisallowedByMode,
    #[serde(rename = "InvalidResponse")]
    InvalidResponse,
    #[serde(rename = "WildcardOriginNotAllowed")]
    WildcardOriginNotAllowed,
    #[serde(rename = "MissingAllowOriginHeader")]
    MissingAllowOriginHeader,
    #[serde(rename = "MultipleAllowOriginValues")]
    MultipleAllowOriginValues,
    #[serde(rename = "InvalidAllowOriginValue")]
    InvalidAllowOriginValue,
    #[serde(rename = "AllowOriginMismatch")]
    AllowOriginMismatch,
    #[serde(rename = "InvalidAllowCredentials")]
    InvalidAllowCredentials,
    #[serde(rename = "CorsDisabledScheme")]
    CorsDisabledScheme,
    #[serde(rename = "PreflightInvalidStatus")]
    PreflightInvalidStatus,
    #[serde(rename = "PreflightDisallowedRedirect")]
    PreflightDisallowedRedirect,
    #[serde(rename = "PreflightWildcardOriginNotAllowed")]
    PreflightWildcardOriginNotAllowed,
    #[serde(rename = "PreflightMissingAllowOriginHeader")]
    PreflightMissingAllowOriginHeader,
    #[serde(rename = "PreflightMultipleAllowOriginValues")]
    PreflightMultipleAllowOriginValues,
    #[serde(rename = "PreflightInvalidAllowOriginValue")]
    PreflightInvalidAllowOriginValue,
    #[serde(rename = "PreflightAllowOriginMismatch")]
    PreflightAllowOriginMismatch,
    #[serde(rename = "PreflightInvalidAllowCredentials")]
    PreflightInvalidAllowCredentials,
    #[serde(rename = "PreflightMissingAllowExternal")]
    PreflightMissingAllowExternal,
    #[serde(rename = "PreflightInvalidAllowExternal")]
    PreflightInvalidAllowExternal,
    #[serde(rename = "InvalidAllowMethodsPreflightResponse")]
    InvalidAllowMethodsPreflightResponse,
    #[serde(rename = "InvalidAllowHeadersPreflightResponse")]
    InvalidAllowHeadersPreflightResponse,
    #[serde(rename = "MethodDisallowedByPreflightResponse")]
    MethodDisallowedByPreflightResponse,
    #[serde(rename = "HeaderDisallowedByPreflightResponse")]
    HeaderDisallowedByPreflightResponse,
    #[serde(rename = "RedirectContainsCredentials")]
    RedirectContainsCredentials,
    #[serde(rename = "InsecureLocalNetwork")]
    InsecureLocalNetwork,
    #[serde(rename = "InvalidLocalNetworkAccess")]
    InvalidLocalNetworkAccess,
    #[serde(rename = "NoCorsRedirectModeNotFollow")]
    NoCorsRedirectModeNotFollow,
    #[serde(rename = "LocalNetworkAccessPermissionDenied")]
    LocalNetworkAccessPermissionDenied,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub enum ServiceWorkerResponseSource {
    #[serde(rename = "cache-storage")]
    CacheStorage,
    #[serde(rename = "http-cache")]
    HttpCache,
    #[serde(rename = "fallback-code")]
    FallbackCode,
    #[serde(rename = "network")]
    Network,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub enum TrustTokenParamsRefreshPolicy {
    #[serde(rename = "UseCached")]
    UseCached,
    #[serde(rename = "Refresh")]
    Refresh,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub enum TrustTokenOperationType {
    #[serde(rename = "Issuance")]
    Issuance,
    #[serde(rename = "Redemption")]
    Redemption,
    #[serde(rename = "Signing")]
    Signing,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub enum AlternateProtocolUsage {
    #[serde(rename = "alternativeJobWonWithoutRace")]
    AlternativeJobWonWithoutRace,
    #[serde(rename = "alternativeJobWonRace")]
    AlternativeJobWonRace,
    #[serde(rename = "mainJobWonRace")]
    MainJobWonRace,
    #[serde(rename = "mappingMissing")]
    MappingMissing,
    #[serde(rename = "broken")]
    Broken,
    #[serde(rename = "dnsAlpnH3JobWonWithoutRace")]
    DnsAlpnH3JobWonWithoutRace,
    #[serde(rename = "dnsAlpnH3JobWonRace")]
    DnsAlpnH3JobWonRace,
    #[serde(rename = "unspecifiedReason")]
    UnspecifiedReason,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub enum ServiceWorkerRouterSource {
    #[serde(rename = "network")]
    Network,
    #[serde(rename = "cache")]
    Cache,
    #[serde(rename = "fetch-event")]
    FetchEvent,
    #[serde(rename = "race-network-and-fetch-handler")]
    RaceNetworkAndFetchHandler,
    #[serde(rename = "race-network-and-cache")]
    RaceNetworkAndCache,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub enum InitiatorType {
    #[serde(rename = "parser")]
    Parser,
    #[serde(rename = "script")]
    Script,
    #[serde(rename = "preload")]
    Preload,
    #[serde(rename = "SignedExchange")]
    SignedExchange,
    #[serde(rename = "preflight")]
    Preflight,
    #[serde(rename = "FedCM")]
    FedCm,
    #[serde(rename = "other")]
    Other,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub enum SetCookieBlockedReason {
    #[serde(rename = "SecureOnly")]
    SecureOnly,
    #[serde(rename = "SameSiteStrict")]
    SameSiteStrict,
    #[serde(rename = "SameSiteLax")]
    SameSiteLax,
    #[serde(rename = "SameSiteUnspecifiedTreatedAsLax")]
    SameSiteUnspecifiedTreatedAsLax,
    #[serde(rename = "SameSiteNoneInsecure")]
    SameSiteNoneInsecure,
    #[serde(rename = "UserPreferences")]
    UserPreferences,
    #[serde(rename = "ThirdPartyPhaseout")]
    ThirdPartyPhaseout,
    #[serde(rename = "ThirdPartyBlockedInFirstPartySet")]
    ThirdPartyBlockedInFirstPartySet,
    #[serde(rename = "SyntaxError")]
    SyntaxError,
    #[serde(rename = "SchemeNotSupported")]
    SchemeNotSupported,
    #[serde(rename = "OverwriteSecure")]
    OverwriteSecure,
    #[serde(rename = "InvalidDomain")]
    InvalidDomain,
    #[serde(rename = "InvalidPrefix")]
    InvalidPrefix,
    #[serde(rename = "UnknownError")]
    UnknownError,
    #[serde(rename = "SchemefulSameSiteStrict")]
    SchemefulSameSiteStrict,
    #[serde(rename = "SchemefulSameSiteLax")]
    SchemefulSameSiteLax,
    #[serde(rename = "SchemefulSameSiteUnspecifiedTreatedAsLax")]
    SchemefulSameSiteUnspecifiedTreatedAsLax,
    #[serde(rename = "NameValuePairExceedsMaxSize")]
    NameValuePairExceedsMaxSize,
    #[serde(rename = "DisallowedCharacter")]
    DisallowedCharacter,
    #[serde(rename = "NoCookieContent")]
    NoCookieContent,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub enum CookieBlockedReason {
    #[serde(rename = "SecureOnly")]
    SecureOnly,
    #[serde(rename = "NotOnPath")]
    NotOnPath,
    #[serde(rename = "DomainMismatch")]
    DomainMismatch,
    #[serde(rename = "SameSiteStrict")]
    SameSiteStrict,
    #[serde(rename = "SameSiteLax")]
    SameSiteLax,
    #[serde(rename = "SameSiteUnspecifiedTreatedAsLax")]
    SameSiteUnspecifiedTreatedAsLax,
    #[serde(rename = "SameSiteNoneInsecure")]
    SameSiteNoneInsecure,
    #[serde(rename = "UserPreferences")]
    UserPreferences,
    #[serde(rename = "ThirdPartyPhaseout")]
    ThirdPartyPhaseout,
    #[serde(rename = "ThirdPartyBlockedInFirstPartySet")]
    ThirdPartyBlockedInFirstPartySet,
    #[serde(rename = "UnknownError")]
    UnknownError,
    #[serde(rename = "SchemefulSameSiteStrict")]
    SchemefulSameSiteStrict,
    #[serde(rename = "SchemefulSameSiteLax")]
    SchemefulSameSiteLax,
    #[serde(rename = "SchemefulSameSiteUnspecifiedTreatedAsLax")]
    SchemefulSameSiteUnspecifiedTreatedAsLax,
    #[serde(rename = "NameValuePairExceedsMaxSize")]
    NameValuePairExceedsMaxSize,
    #[serde(rename = "PortMismatch")]
    PortMismatch,
    #[serde(rename = "SchemeMismatch")]
    SchemeMismatch,
    #[serde(rename = "AnonymousContext")]
    AnonymousContext,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub enum CookieExemptionReason {
    #[serde(rename = "None")]
    None,
    #[serde(rename = "UserSetting")]
    UserSetting,
    #[serde(rename = "TPCDMetadata")]
    TpcdMetadata,
    #[serde(rename = "TPCDDeprecationTrial")]
    TpcdDeprecationTrial,
    #[serde(rename = "TopLevelTPCDDeprecationTrial")]
    TopLevelTpcdDeprecationTrial,
    #[serde(rename = "TPCDHeuristics")]
    TpcdHeuristics,
    #[serde(rename = "EnterprisePolicy")]
    EnterprisePolicy,
    #[serde(rename = "StorageAccess")]
    StorageAccess,
    #[serde(rename = "TopLevelStorageAccess")]
    TopLevelStorageAccess,
    #[serde(rename = "Scheme")]
    Scheme,
    #[serde(rename = "SameSiteNoneCookiesInSandbox")]
    SameSiteNoneCookiesInSandbox,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub enum AuthChallengeSource {
    #[serde(rename = "Server")]
    Server,
    #[serde(rename = "Proxy")]
    Proxy,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub enum AuthChallengeResponseResponse {
    #[serde(rename = "Default")]
    Default,
    #[serde(rename = "CancelAuth")]
    CancelAuth,
    #[serde(rename = "ProvideCredentials")]
    ProvideCredentials,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub enum InterceptionStage {
    #[serde(rename = "Request")]
    Request,
    #[serde(rename = "HeadersReceived")]
    HeadersReceived,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub enum SignedExchangeErrorField {
    #[serde(rename = "signatureSig")]
    SignatureSig,
    #[serde(rename = "signatureIntegrity")]
    SignatureIntegrity,
    #[serde(rename = "signatureCertUrl")]
    SignatureCertUrl,
    #[serde(rename = "signatureCertSha256")]
    SignatureCertSha256,
    #[serde(rename = "signatureValidityUrl")]
    SignatureValidityUrl,
    #[serde(rename = "signatureTimestamps")]
    SignatureTimestamps,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub enum ContentEncoding {
    #[serde(rename = "deflate")]
    Deflate,
    #[serde(rename = "gzip")]
    Gzip,
    #[serde(rename = "br")]
    Br,
    #[serde(rename = "zstd")]
    Zstd,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub enum DirectSocketDnsQueryType {
    #[serde(rename = "ipv4")]
    Ipv4,
    #[serde(rename = "ipv6")]
    Ipv6,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub enum LocalNetworkAccessRequestPolicy {
    #[serde(rename = "Allow")]
    Allow,
    #[serde(rename = "BlockFromInsecureToMorePrivate")]
    BlockFromInsecureToMorePrivate,
    #[serde(rename = "WarnFromInsecureToMorePrivate")]
    WarnFromInsecureToMorePrivate,
    #[serde(rename = "PermissionBlock")]
    PermissionBlock,
    #[serde(rename = "PermissionWarn")]
    PermissionWarn,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub enum IpAddressSpace {
    #[serde(rename = "Loopback")]
    Loopback,
    #[serde(rename = "Local")]
    Local,
    #[serde(rename = "Public")]
    Public,
    #[serde(rename = "Unknown")]
    Unknown,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub enum CrossOriginOpenerPolicyValue {
    #[serde(rename = "SameOrigin")]
    SameOrigin,
    #[serde(rename = "SameOriginAllowPopups")]
    SameOriginAllowPopups,
    #[serde(rename = "RestrictProperties")]
    RestrictProperties,
    #[serde(rename = "UnsafeNone")]
    UnsafeNone,
    #[serde(rename = "SameOriginPlusCoep")]
    SameOriginPlusCoep,
    #[serde(rename = "RestrictPropertiesPlusCoep")]
    RestrictPropertiesPlusCoep,
    #[serde(rename = "NoopenerAllowPopups")]
    NoopenerAllowPopups,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub enum CrossOriginEmbedderPolicyValue {
    #[serde(rename = "None")]
    None,
    #[serde(rename = "Credentialless")]
    Credentialless,
    #[serde(rename = "RequireCorp")]
    RequireCorp,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub enum ContentSecurityPolicySource {
    #[serde(rename = "HTTP")]
    Http,
    #[serde(rename = "Meta")]
    Meta,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub enum ReportStatus {
    #[serde(rename = "Queued")]
    Queued,
    #[serde(rename = "Pending")]
    Pending,
    #[serde(rename = "MarkedForRemoval")]
    MarkedForRemoval,
    #[serde(rename = "Success")]
    Success,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub enum DeviceBoundSessionWithUsageUsage {
    #[serde(rename = "NotInScope")]
    NotInScope,
    #[serde(rename = "InScopeRefreshNotYetNeeded")]
    InScopeRefreshNotYetNeeded,
    #[serde(rename = "InScopeRefreshNotAllowed")]
    InScopeRefreshNotAllowed,
    #[serde(rename = "ProactiveRefreshNotPossible")]
    ProactiveRefreshNotPossible,
    #[serde(rename = "ProactiveRefreshAttempted")]
    ProactiveRefreshAttempted,
    #[serde(rename = "Deferred")]
    Deferred,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub enum DeviceBoundSessionUrlRuleRuleType {
    #[serde(rename = "Exclude")]
    Exclude,
    #[serde(rename = "Include")]
    Include,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub enum DeviceBoundSessionFetchResult {
    #[serde(rename = "Success")]
    Success,
    #[serde(rename = "KeyError")]
    KeyError,
    #[serde(rename = "SigningError")]
    SigningError,
    #[serde(rename = "ServerRequestedTermination")]
    ServerRequestedTermination,
    #[serde(rename = "InvalidSessionId")]
    InvalidSessionId,
    #[serde(rename = "InvalidChallenge")]
    InvalidChallenge,
    #[serde(rename = "TooManyChallenges")]
    TooManyChallenges,
    #[serde(rename = "InvalidFetcherUrl")]
    InvalidFetcherUrl,
    #[serde(rename = "InvalidRefreshUrl")]
    InvalidRefreshUrl,
    #[serde(rename = "TransientHttpError")]
    TransientHttpError,
    #[serde(rename = "ScopeOriginSameSiteMismatch")]
    ScopeOriginSameSiteMismatch,
    #[serde(rename = "RefreshUrlSameSiteMismatch")]
    RefreshUrlSameSiteMismatch,
    #[serde(rename = "MismatchedSessionId")]
    MismatchedSessionId,
    #[serde(rename = "MissingScope")]
    MissingScope,
    #[serde(rename = "NoCredentials")]
    NoCredentials,
    #[serde(rename = "SubdomainRegistrationWellKnownUnavailable")]
    SubdomainRegistrationWellKnownUnavailable,
    #[serde(rename = "SubdomainRegistrationUnauthorized")]
    SubdomainRegistrationUnauthorized,
    #[serde(rename = "SubdomainRegistrationWellKnownMalformed")]
    SubdomainRegistrationWellKnownMalformed,
    #[serde(rename = "SessionProviderWellKnownUnavailable")]
    SessionProviderWellKnownUnavailable,
    #[serde(rename = "RelyingPartyWellKnownUnavailable")]
    RelyingPartyWellKnownUnavailable,
    #[serde(rename = "FederatedKeyThumbprintMismatch")]
    FederatedKeyThumbprintMismatch,
    #[serde(rename = "InvalidFederatedSessionUrl")]
    InvalidFederatedSessionUrl,
    #[serde(rename = "InvalidFederatedKey")]
    InvalidFederatedKey,
    #[serde(rename = "TooManyRelyingOriginLabels")]
    TooManyRelyingOriginLabels,
    #[serde(rename = "BoundCookieSetForbidden")]
    BoundCookieSetForbidden,
    #[serde(rename = "NetError")]
    NetError,
    #[serde(rename = "ProxyError")]
    ProxyError,
    #[serde(rename = "EmptySessionConfig")]
    EmptySessionConfig,
    #[serde(rename = "InvalidCredentialsConfig")]
    InvalidCredentialsConfig,
    #[serde(rename = "InvalidCredentialsType")]
    InvalidCredentialsType,
    #[serde(rename = "InvalidCredentialsEmptyName")]
    InvalidCredentialsEmptyName,
    #[serde(rename = "InvalidCredentialsCookie")]
    InvalidCredentialsCookie,
    #[serde(rename = "PersistentHttpError")]
    PersistentHttpError,
    #[serde(rename = "RegistrationAttemptedChallenge")]
    RegistrationAttemptedChallenge,
    #[serde(rename = "InvalidScopeOrigin")]
    InvalidScopeOrigin,
    #[serde(rename = "ScopeOriginContainsPath")]
    ScopeOriginContainsPath,
    #[serde(rename = "RefreshInitiatorNotString")]
    RefreshInitiatorNotString,
    #[serde(rename = "RefreshInitiatorInvalidHostPattern")]
    RefreshInitiatorInvalidHostPattern,
    #[serde(rename = "InvalidScopeSpecification")]
    InvalidScopeSpecification,
    #[serde(rename = "MissingScopeSpecificationType")]
    MissingScopeSpecificationType,
    #[serde(rename = "EmptyScopeSpecificationDomain")]
    EmptyScopeSpecificationDomain,
    #[serde(rename = "EmptyScopeSpecificationPath")]
    EmptyScopeSpecificationPath,
    #[serde(rename = "InvalidScopeSpecificationType")]
    InvalidScopeSpecificationType,
    #[serde(rename = "InvalidScopeIncludeSite")]
    InvalidScopeIncludeSite,
    #[serde(rename = "MissingScopeIncludeSite")]
    MissingScopeIncludeSite,
    #[serde(rename = "FederatedNotAuthorizedByProvider")]
    FederatedNotAuthorizedByProvider,
    #[serde(rename = "FederatedNotAuthorizedByRelyingParty")]
    FederatedNotAuthorizedByRelyingParty,
    #[serde(rename = "SessionProviderWellKnownMalformed")]
    SessionProviderWellKnownMalformed,
    #[serde(rename = "SessionProviderWellKnownHasProviderOrigin")]
    SessionProviderWellKnownHasProviderOrigin,
    #[serde(rename = "RelyingPartyWellKnownMalformed")]
    RelyingPartyWellKnownMalformed,
    #[serde(rename = "RelyingPartyWellKnownHasRelyingOrigins")]
    RelyingPartyWellKnownHasRelyingOrigins,
    #[serde(rename = "InvalidFederatedSessionProviderSessionMissing")]
    InvalidFederatedSessionProviderSessionMissing,
    #[serde(rename = "InvalidFederatedSessionWrongProviderOrigin")]
    InvalidFederatedSessionWrongProviderOrigin,
    #[serde(rename = "InvalidCredentialsCookieCreationTime")]
    InvalidCredentialsCookieCreationTime,
    #[serde(rename = "InvalidCredentialsCookieName")]
    InvalidCredentialsCookieName,
    #[serde(rename = "InvalidCredentialsCookieParsing")]
    InvalidCredentialsCookieParsing,
    #[serde(rename = "InvalidCredentialsCookieUnpermittedAttribute")]
    InvalidCredentialsCookieUnpermittedAttribute,
    #[serde(rename = "InvalidCredentialsCookieInvalidDomain")]
    InvalidCredentialsCookieInvalidDomain,
    #[serde(rename = "InvalidCredentialsCookiePrefix")]
    InvalidCredentialsCookiePrefix,
    #[serde(rename = "InvalidScopeRulePath")]
    InvalidScopeRulePath,
    #[serde(rename = "InvalidScopeRuleHostPattern")]
    InvalidScopeRuleHostPattern,
    #[serde(rename = "ScopeRuleOriginScopedHostPatternMismatch")]
    ScopeRuleOriginScopedHostPatternMismatch,
    #[serde(rename = "ScopeRuleSiteScopedHostPatternMismatch")]
    ScopeRuleSiteScopedHostPatternMismatch,
    #[serde(rename = "SigningQuotaExceeded")]
    SigningQuotaExceeded,
    #[serde(rename = "InvalidConfigJson")]
    InvalidConfigJson,
    #[serde(rename = "InvalidFederatedSessionProviderFailedToRestoreKey")]
    InvalidFederatedSessionProviderFailedToRestoreKey,
    #[serde(rename = "FailedToUnwrapKey")]
    FailedToUnwrapKey,
    #[serde(rename = "SessionDeletedDuringRefresh")]
    SessionDeletedDuringRefresh,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub enum RefreshEventDetailsRefreshResult {
    #[serde(rename = "Refreshed")]
    Refreshed,
    #[serde(rename = "InitializedService")]
    InitializedService,
    #[serde(rename = "Unreachable")]
    Unreachable,
    #[serde(rename = "ServerError")]
    ServerError,
    #[serde(rename = "RefreshQuotaExceeded")]
    RefreshQuotaExceeded,
    #[serde(rename = "FatalError")]
    FatalError,
    #[serde(rename = "SigningQuotaExceeded")]
    SigningQuotaExceeded,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub enum TerminationEventDetailsDeletionReason {
    #[serde(rename = "Expired")]
    Expired,
    #[serde(rename = "FailedToRestoreKey")]
    FailedToRestoreKey,
    #[serde(rename = "FailedToUnwrapKey")]
    FailedToUnwrapKey,
    #[serde(rename = "StoragePartitionCleared")]
    StoragePartitionCleared,
    #[serde(rename = "ClearBrowsingData")]
    ClearBrowsingData,
    #[serde(rename = "ServerRequested")]
    ServerRequested,
    #[serde(rename = "InvalidSessionParams")]
    InvalidSessionParams,
    #[serde(rename = "RefreshFatalError")]
    RefreshFatalError,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub enum ChallengeEventDetailsChallengeResult {
    #[serde(rename = "Success")]
    Success,
    #[serde(rename = "NoSessionId")]
    NoSessionId,
    #[serde(rename = "NoSessionMatch")]
    NoSessionMatch,
    #[serde(rename = "CantSetBoundCookie")]
    CantSetBoundCookie,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub enum TrustTokenOperationDoneStatusOption {
    #[serde(rename = "Ok")]
    Ok,
    #[serde(rename = "InvalidArgument")]
    InvalidArgument,
    #[serde(rename = "MissingIssuerKeys")]
    MissingIssuerKeys,
    #[serde(rename = "FailedPrecondition")]
    FailedPrecondition,
    #[serde(rename = "ResourceExhausted")]
    ResourceExhausted,
    #[serde(rename = "AlreadyExists")]
    AlreadyExists,
    #[serde(rename = "ResourceLimited")]
    ResourceLimited,
    #[serde(rename = "Unauthorized")]
    Unauthorized,
    #[serde(rename = "BadResponse")]
    BadResponse,
    #[serde(rename = "InternalError")]
    InternalError,
    #[serde(rename = "UnknownError")]
    UnknownError,
    #[serde(rename = "FulfilledLocally")]
    FulfilledLocally,
    #[serde(rename = "SiteIssuerLimit")]
    SiteIssuerLimit,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub struct Headers(pub Option<Json>);
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Timing information for the request."]
pub struct ResourceTiming {
    #[serde(default)]
    #[doc = "Timing's requestTime is a baseline in seconds, while the other numbers are ticks in\n milliseconds relatively to this requestTime."]
    pub request_time: JsFloat,
    #[serde(default)]
    #[doc = "Started resolving proxy."]
    pub proxy_start: JsFloat,
    #[serde(default)]
    #[doc = "Finished resolving proxy."]
    pub proxy_end: JsFloat,
    #[serde(default)]
    #[doc = "Started DNS address resolve."]
    pub dns_start: JsFloat,
    #[serde(default)]
    #[doc = "Finished DNS address resolve."]
    pub dns_end: JsFloat,
    #[serde(default)]
    #[doc = "Started connecting to the remote host."]
    pub connect_start: JsFloat,
    #[serde(default)]
    #[doc = "Connected to the remote host."]
    pub connect_end: JsFloat,
    #[serde(default)]
    #[doc = "Started SSL handshake."]
    pub ssl_start: JsFloat,
    #[serde(default)]
    #[doc = "Finished SSL handshake."]
    pub ssl_end: JsFloat,
    #[serde(default)]
    #[doc = "Started running ServiceWorker."]
    pub worker_start: JsFloat,
    #[serde(default)]
    #[doc = "Finished Starting ServiceWorker."]
    pub worker_ready: JsFloat,
    #[serde(default)]
    #[doc = "Started fetch event."]
    pub worker_fetch_start: JsFloat,
    #[serde(default)]
    #[doc = "Settled fetch event respondWith promise."]
    pub worker_respond_with_settled: JsFloat,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Started ServiceWorker static routing source evaluation."]
    pub worker_router_evaluation_start: Option<JsFloat>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Started cache lookup when the source was evaluated to `cache`."]
    pub worker_cache_lookup_start: Option<JsFloat>,
    #[serde(default)]
    #[doc = "Started sending request."]
    pub send_start: JsFloat,
    #[serde(default)]
    #[doc = "Finished sending request."]
    pub send_end: JsFloat,
    #[serde(default)]
    #[doc = "Time the server started pushing request."]
    pub push_start: JsFloat,
    #[serde(default)]
    #[doc = "Time the server finished pushing request."]
    pub push_end: JsFloat,
    #[serde(default)]
    #[doc = "Started receiving response headers."]
    pub receive_headers_start: JsFloat,
    #[serde(default)]
    #[doc = "Finished receiving response headers."]
    pub receive_headers_end: JsFloat,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Post data entry for HTTP request"]
pub struct PostDataEntry {
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    pub bytes: Option<String>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "HTTP request data."]
pub struct Request {
    #[serde(default)]
    #[doc = "Request URL (without fragment)."]
    pub url: String,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Fragment of the requested URL starting with hash, if present."]
    pub url_fragment: Option<String>,
    #[serde(default)]
    #[doc = "HTTP request method."]
    pub method: String,
    #[doc = "HTTP request headers."]
    pub headers: Headers,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "HTTP POST request data.\n Use postDataEntries instead."]
    #[deprecated]
    pub post_data: Option<String>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "True when the request has POST data. Note that postData might still be omitted when this flag is true when the data is too long."]
    pub has_post_data: Option<bool>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Request body elements (post data broken into individual entries)."]
    pub post_data_entries: Option<Vec<PostDataEntry>>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "The mixed content type of the request."]
    pub mixed_content_type: Option<security::MixedContentType>,
    #[doc = "Priority of the resource request at the time request is sent."]
    pub initial_priority: ResourcePriority,
    #[doc = "The referrer policy of the request, as defined in <https://www.w3.org/TR/referrer-policy/>"]
    pub referrer_policy: RequestReferrerPolicy,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Whether is loaded via link preload."]
    pub is_link_preload: Option<bool>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Set for requests when the TrustToken API is used. Contains the parameters\n passed by the developer (e.g. via \"fetch\") as understood by the backend."]
    pub trust_token_params: Option<TrustTokenParams>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "True if this resource request is considered to be the 'same site' as the\n request corresponding to the main frame."]
    pub is_same_site: Option<bool>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "True when the resource request is ad-related."]
    pub is_ad_related: Option<bool>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Details of a signed certificate timestamp (SCT)."]
pub struct SignedCertificateTimestamp {
    #[serde(default)]
    #[doc = "Validation status."]
    pub status: String,
    #[serde(default)]
    #[doc = "Origin."]
    pub origin: String,
    #[serde(default)]
    #[doc = "Log name / description."]
    pub log_description: String,
    #[serde(default)]
    #[doc = "Log ID."]
    pub log_id: String,
    #[serde(default)]
    #[doc = "Issuance date. Unlike TimeSinceEpoch, this contains the number of\n milliseconds since January 1, 1970, UTC, not the number of seconds."]
    pub timestamp: JsFloat,
    #[serde(default)]
    #[doc = "Hash algorithm."]
    pub hash_algorithm: String,
    #[serde(default)]
    #[doc = "Signature algorithm."]
    pub signature_algorithm: String,
    #[serde(default)]
    #[doc = "Signature data."]
    pub signature_data: String,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Security details about a request."]
pub struct SecurityDetails {
    #[serde(default)]
    #[doc = "Protocol name (e.g. \"TLS 1.2\" or \"QUIC\")."]
    pub protocol: String,
    #[serde(default)]
    #[doc = "Key Exchange used by the connection, or the empty string if not applicable."]
    pub key_exchange: String,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "(EC)DH group used by the connection, if applicable."]
    pub key_exchange_group: Option<String>,
    #[serde(default)]
    #[doc = "Cipher name."]
    pub cipher: String,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "TLS MAC. Note that AEAD ciphers do not have separate MACs."]
    pub mac: Option<String>,
    #[doc = "Certificate ID value."]
    pub certificate_id: security::CertificateId,
    #[serde(default)]
    #[doc = "Certificate subject name."]
    pub subject_name: String,
    #[serde(default)]
    #[doc = "Subject Alternative Name (SAN) DNS names and IP addresses."]
    pub san_list: Vec<String>,
    #[serde(default)]
    #[doc = "Name of the issuing CA."]
    pub issuer: String,
    #[doc = "Certificate valid from date."]
    pub valid_from: TimeSinceEpoch,
    #[doc = "Certificate valid to (expiration) date"]
    pub valid_to: TimeSinceEpoch,
    #[doc = "List of signed certificate timestamps (SCTs)."]
    pub signed_certificate_timestamp_list: Vec<SignedCertificateTimestamp>,
    #[doc = "Whether the request complied with Certificate Transparency policy"]
    pub certificate_transparency_compliance: CertificateTransparencyCompliance,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "The signature algorithm used by the server in the TLS server signature,\n represented as a TLS SignatureScheme code point. Omitted if not\n applicable or not known."]
    pub server_signature_algorithm: Option<JsUInt>,
    #[serde(default)]
    #[doc = "Whether the connection used Encrypted ClientHello"]
    pub encrypted_client_hello: bool,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
pub struct CorsErrorStatus {
    pub cors_error: CorsError,
    #[serde(default)]
    pub failed_parameter: String,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Determines what type of Trust Token operation is executed and\n depending on the type, some additional parameters. The values\n are specified in third_party/blink/renderer/core/fetch/trust_token.idl."]
pub struct TrustTokenParams {
    pub operation: TrustTokenOperationType,
    #[doc = "Only set for \"token-redemption\" operation and determine whether\n to request a fresh SRR or use a still valid cached SRR."]
    pub refresh_policy: TrustTokenParamsRefreshPolicy,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Origins of issuers from whom to request tokens or redemption\n records."]
    pub issuers: Option<Vec<String>>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
pub struct ServiceWorkerRouterInfo {
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "ID of the rule matched. If there is a matched rule, this field will\n be set, otherwiser no value will be set."]
    pub rule_id_matched: Option<JsUInt>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "The router source of the matched rule. If there is a matched rule, this\n field will be set, otherwise no value will be set."]
    pub matched_source_type: Option<ServiceWorkerRouterSource>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "The actual router source used."]
    pub actual_source_type: Option<ServiceWorkerRouterSource>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "HTTP response data."]
pub struct Response {
    #[serde(default)]
    #[doc = "Response URL. This URL can be different from CachedResource.url in case of redirect."]
    pub url: String,
    #[serde(default)]
    #[doc = "HTTP response status code."]
    pub status: JsUInt,
    #[serde(default)]
    #[doc = "HTTP response status text."]
    pub status_text: String,
    #[doc = "HTTP response headers."]
    pub headers: Headers,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "HTTP response headers text. This has been replaced by the headers in Network.responseReceivedExtraInfo."]
    #[deprecated]
    pub headers_text: Option<String>,
    #[serde(default)]
    #[doc = "Resource mimeType as determined by the browser."]
    pub mime_type: String,
    #[serde(default)]
    #[doc = "Resource charset as determined by the browser (if applicable)."]
    pub charset: String,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Refined HTTP request headers that were actually transmitted over the network."]
    pub request_headers: Option<Headers>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "HTTP request headers text. This has been replaced by the headers in Network.requestWillBeSentExtraInfo."]
    #[deprecated]
    pub request_headers_text: Option<String>,
    #[serde(default)]
    #[doc = "Specifies whether physical connection was actually reused for this request."]
    pub connection_reused: bool,
    #[serde(default)]
    #[doc = "Physical connection id that was actually used for this request."]
    pub connection_id: JsFloat,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Remote IP address."]
    #[serde(rename = "remoteIPAddress")]
    pub remote_ip_address: Option<String>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Remote port."]
    pub remote_port: Option<JsUInt>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Specifies that the request was served from the disk cache."]
    pub from_disk_cache: Option<bool>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Specifies that the request was served from the ServiceWorker."]
    pub from_service_worker: Option<bool>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Specifies that the request was served from the prefetch cache."]
    pub from_prefetch_cache: Option<bool>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Specifies that the request was served from the prefetch cache."]
    pub from_early_hints: Option<bool>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Information about how ServiceWorker Static Router API was used. If this\n field is set with `matchedSourceType` field, a matching rule is found.\n If this field is set without `matchedSource`, no matching rule is found.\n Otherwise, the API is not used."]
    pub service_worker_router_info: Option<ServiceWorkerRouterInfo>,
    #[serde(default)]
    #[doc = "Total number of bytes received for this request so far."]
    pub encoded_data_length: JsFloat,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Timing information for the given request."]
    pub timing: Option<ResourceTiming>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Response source of response from ServiceWorker."]
    pub service_worker_response_source: Option<ServiceWorkerResponseSource>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "The time at which the returned response was generated."]
    pub response_time: Option<TimeSinceEpoch>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Cache Storage Cache Name."]
    pub cache_storage_cache_name: Option<String>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Protocol used to fetch this request."]
    pub protocol: Option<String>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "The reason why Chrome uses a specific transport protocol for HTTP semantics."]
    pub alternate_protocol_usage: Option<AlternateProtocolUsage>,
    #[doc = "Security state of the request resource."]
    pub security_state: security::SecurityState,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Security details for the request."]
    pub security_details: Option<SecurityDetails>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "WebSocket request data."]
pub struct WebSocketRequest {
    #[doc = "HTTP request headers."]
    pub headers: Headers,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "WebSocket response data."]
pub struct WebSocketResponse {
    #[serde(default)]
    #[doc = "HTTP response status code."]
    pub status: JsUInt,
    #[serde(default)]
    #[doc = "HTTP response status text."]
    pub status_text: String,
    #[doc = "HTTP response headers."]
    pub headers: Headers,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "HTTP response headers text."]
    pub headers_text: Option<String>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "HTTP request headers."]
    pub request_headers: Option<Headers>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "HTTP request headers text."]
    pub request_headers_text: Option<String>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "WebSocket message data. This represents an entire WebSocket message, not just a fragmented frame as the name suggests."]
pub struct WebSocketFrame {
    #[serde(default)]
    #[doc = "WebSocket message opcode."]
    pub opcode: JsFloat,
    #[serde(default)]
    #[doc = "WebSocket message mask."]
    pub mask: bool,
    #[serde(default)]
    #[doc = "WebSocket message payload data.\n If the opcode is 1, this is a text message and payloadData is a UTF-8 string.\n If the opcode isn't 1, then payloadData is a base64 encoded string representing binary data."]
    pub payload_data: String,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Information about the cached resource."]
pub struct CachedResource {
    #[serde(default)]
    #[doc = "Resource URL. This is the url of the original network request."]
    pub url: String,
    #[doc = "Type of this resource."]
    pub r#type: ResourceType,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Cached response data."]
    pub response: Option<Response>,
    #[serde(default)]
    #[doc = "Cached response body size."]
    pub body_size: JsFloat,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Information about the request initiator."]
pub struct Initiator {
    #[doc = "Type of this initiator."]
    pub r#type: InitiatorType,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Initiator JavaScript stack trace, set for Script only.\n Requires the Debugger domain to be enabled."]
    pub stack: Option<runtime::StackTrace>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Initiator URL, set for Parser type or for Script type (when script is importing module) or for SignedExchange type."]
    pub url: Option<String>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Initiator line number, set for Parser type or for Script type (when script is importing\n module) (0-based)."]
    pub line_number: Option<JsFloat>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Initiator column number, set for Parser type or for Script type (when script is importing\n module) (0-based)."]
    pub column_number: Option<JsFloat>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Set if another request triggered this request (e.g. preflight)."]
    pub request_id: Option<RequestId>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "cookiePartitionKey object\n The representation of the components of the key that are created by the cookiePartitionKey class contained in net/cookies/cookie_partition_key.h."]
pub struct CookiePartitionKey {
    #[serde(default)]
    #[doc = "The site of the top-level URL the browser was visiting at the start\n of the request to the endpoint that set the cookie."]
    pub top_level_site: String,
    #[serde(default)]
    #[doc = "Indicates if the cookie has any ancestors that are cross-site to the topLevelSite."]
    pub has_cross_site_ancestor: bool,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Cookie object"]
pub struct Cookie {
    #[serde(default)]
    #[doc = "Cookie name."]
    pub name: String,
    #[serde(default)]
    #[doc = "Cookie value."]
    pub value: String,
    #[serde(default)]
    #[doc = "Cookie domain."]
    pub domain: String,
    #[serde(default)]
    #[doc = "Cookie path."]
    pub path: String,
    #[serde(default)]
    #[doc = "Cookie expiration date as the number of seconds since the UNIX epoch.\n The value is set to -1 if the expiry date is not set.\n The value can be null for values that cannot be represented in\n JSON (±Inf)."]
    pub expires: JsFloat,
    #[serde(default)]
    #[doc = "Cookie size."]
    pub size: JsUInt,
    #[serde(default)]
    #[doc = "True if cookie is http-only."]
    pub http_only: bool,
    #[serde(default)]
    #[doc = "True if cookie is secure."]
    pub secure: bool,
    #[serde(default)]
    #[doc = "True in case of session cookie."]
    pub session: bool,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Cookie SameSite type."]
    pub same_site: Option<CookieSameSite>,
    #[doc = "Cookie Priority"]
    pub priority: CookiePriority,
    #[doc = "Cookie source scheme type."]
    pub source_scheme: CookieSourceScheme,
    #[serde(default)]
    #[doc = "Cookie source port. Valid values are {-1, \\[1, 65535\\]}, -1 indicates an unspecified port.\n An unspecified port value allows protocol clients to emulate legacy cookie scope for the port.\n This is a temporary ability and it will be removed in the future."]
    pub source_port: JsUInt,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Cookie partition key."]
    pub partition_key: Option<CookiePartitionKey>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "True if cookie partition key is opaque."]
    pub partition_key_opaque: Option<bool>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "A cookie which was not stored from a response with the corresponding reason."]
pub struct BlockedSetCookieWithReason {
    #[doc = "The reason(s) this cookie was blocked."]
    pub blocked_reasons: Vec<SetCookieBlockedReason>,
    #[serde(default)]
    #[doc = "The string representing this individual cookie as it would appear in the header.\n This is not the entire \"cookie\" or \"set-cookie\" header which could have multiple cookies."]
    pub cookie_line: String,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "The cookie object which represents the cookie which was not stored. It is optional because\n sometimes complete cookie information is not available, such as in the case of parsing\n errors."]
    pub cookie: Option<Cookie>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "A cookie should have been blocked by 3PCD but is exempted and stored from a response with the\n corresponding reason. A cookie could only have at most one exemption reason."]
pub struct ExemptedSetCookieWithReason {
    #[doc = "The reason the cookie was exempted."]
    pub exemption_reason: CookieExemptionReason,
    #[serde(default)]
    #[doc = "The string representing this individual cookie as it would appear in the header."]
    pub cookie_line: String,
    #[doc = "The cookie object representing the cookie."]
    pub cookie: Cookie,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "A cookie associated with the request which may or may not be sent with it.\n Includes the cookies itself and reasons for blocking or exemption."]
pub struct AssociatedCookie {
    #[doc = "The cookie object representing the cookie which was not sent."]
    pub cookie: Cookie,
    #[doc = "The reason(s) the cookie was blocked. If empty means the cookie is included."]
    pub blocked_reasons: Vec<CookieBlockedReason>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "The reason the cookie should have been blocked by 3PCD but is exempted. A cookie could\n only have at most one exemption reason."]
    pub exemption_reason: Option<CookieExemptionReason>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Cookie parameter object"]
pub struct CookieParam {
    #[serde(default)]
    #[doc = "Cookie name."]
    pub name: String,
    #[serde(default)]
    #[doc = "Cookie value."]
    pub value: String,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "The request-URI to associate with the setting of the cookie. This value can affect the\n default domain, path, source port, and source scheme values of the created cookie."]
    pub url: Option<String>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Cookie domain."]
    pub domain: Option<String>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Cookie path."]
    pub path: Option<String>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "True if cookie is secure."]
    pub secure: Option<bool>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "True if cookie is http-only."]
    pub http_only: Option<bool>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Cookie SameSite type."]
    pub same_site: Option<CookieSameSite>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Cookie expiration date, session cookie if not set"]
    pub expires: Option<TimeSinceEpoch>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Cookie Priority."]
    pub priority: Option<CookiePriority>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Cookie source scheme type."]
    pub source_scheme: Option<CookieSourceScheme>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Cookie source port. Valid values are {-1, \\[1, 65535\\]}, -1 indicates an unspecified port.\n An unspecified port value allows protocol clients to emulate legacy cookie scope for the port.\n This is a temporary ability and it will be removed in the future."]
    pub source_port: Option<JsUInt>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Cookie partition key. If not set, the cookie will be set as not partitioned."]
    pub partition_key: Option<CookiePartitionKey>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Authorization challenge for HTTP status code 401 or 407."]
pub struct AuthChallenge {
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Source of the authentication challenge."]
    pub source: Option<AuthChallengeSource>,
    #[serde(default)]
    #[doc = "Origin of the challenger."]
    pub origin: String,
    #[serde(default)]
    #[doc = "The authentication scheme used, such as basic or digest"]
    pub scheme: String,
    #[serde(default)]
    #[doc = "The realm of the challenge. May be empty."]
    pub realm: String,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Response to an AuthChallenge."]
pub struct AuthChallengeResponse {
    #[doc = "The decision on what to do in response to the authorization challenge.  Default means\n deferring to the default behavior of the net stack, which will likely either the Cancel\n authentication or display a popup dialog box."]
    pub response: AuthChallengeResponseResponse,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "The username to provide, possibly empty. Should only be set if response is\n ProvideCredentials."]
    pub username: Option<String>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "The password to provide, possibly empty. Should only be set if response is\n ProvideCredentials."]
    pub password: Option<String>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Request pattern for interception."]
pub struct RequestPattern {
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Wildcards (`'*'` -\\> zero or more, `'?'` -\\> exactly one) are allowed. Escape character is\n backslash. Omitting is equivalent to `\"*\"`."]
    pub url_pattern: Option<String>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "If set, only requests for matching resource types will be intercepted."]
    pub resource_type: Option<ResourceType>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Stage at which to begin intercepting requests. Default is Request."]
    pub interception_stage: Option<InterceptionStage>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Information about a signed exchange signature.\n <https://wicg.github.io/webpackage/draft-yasskin-httpbis-origin-signed-exchanges-impl.html#rfc.section.3.1>"]
pub struct SignedExchangeSignature {
    #[serde(default)]
    #[doc = "Signed exchange signature label."]
    pub label: String,
    #[serde(default)]
    #[doc = "The hex string of signed exchange signature."]
    pub signature: String,
    #[serde(default)]
    #[doc = "Signed exchange signature integrity."]
    pub integrity: String,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Signed exchange signature cert Url."]
    pub cert_url: Option<String>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "The hex string of signed exchange signature cert sha256."]
    pub cert_sha_256: Option<String>,
    #[serde(default)]
    #[doc = "Signed exchange signature validity Url."]
    pub validity_url: String,
    #[serde(default)]
    #[doc = "Signed exchange signature date."]
    pub date: JsUInt,
    #[serde(default)]
    #[doc = "Signed exchange signature expires."]
    pub expires: JsUInt,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "The encoded certificates."]
    pub certificates: Option<Vec<String>>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Information about a signed exchange header.\n <https://wicg.github.io/webpackage/draft-yasskin-httpbis-origin-signed-exchanges-impl.html#cbor-representation>"]
pub struct SignedExchangeHeader {
    #[serde(default)]
    #[doc = "Signed exchange request URL."]
    pub request_url: String,
    #[serde(default)]
    #[doc = "Signed exchange response code."]
    pub response_code: JsUInt,
    #[doc = "Signed exchange response headers."]
    pub response_headers: Headers,
    #[doc = "Signed exchange response signature."]
    pub signatures: Vec<SignedExchangeSignature>,
    #[serde(default)]
    #[doc = "Signed exchange header integrity hash in the form of `sha256-\\<base64-hash-value\\>`."]
    pub header_integrity: String,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Information about a signed exchange response."]
pub struct SignedExchangeError {
    #[serde(default)]
    #[doc = "Error message."]
    pub message: String,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "The index of the signature which caused the error."]
    pub signature_index: Option<JsUInt>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "The field which caused the error."]
    pub error_field: Option<SignedExchangeErrorField>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Information about a signed exchange response."]
pub struct SignedExchangeInfo {
    #[doc = "The outer response of signed HTTP exchange which was received from network."]
    pub outer_response: Response,
    #[serde(default)]
    #[doc = "Whether network response for the signed exchange was accompanied by\n extra headers."]
    pub has_extra_info: bool,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Information about the signed exchange header."]
    pub header: Option<SignedExchangeHeader>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Security details for the signed exchange header."]
    pub security_details: Option<SecurityDetails>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Errors occurred while handling the signed exchange."]
    pub errors: Option<Vec<SignedExchangeError>>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
pub struct NetworkConditions {
    #[serde(default)]
    #[doc = "Only matching requests will be affected by these conditions. Patterns use the URLPattern constructor string\n syntax (<https://urlpattern.spec.whatwg.org/>) and must be absolute. If the pattern is empty, all requests are\n matched (including p2p connections)."]
    pub url_pattern: String,
    #[serde(default)]
    #[doc = "Minimum latency from request sent to response headers received (ms)."]
    pub latency: JsFloat,
    #[serde(default)]
    #[doc = "Maximal aggregated download throughput (bytes/sec). -1 disables download throttling."]
    pub download_throughput: JsFloat,
    #[serde(default)]
    #[doc = "Maximal aggregated upload throughput (bytes/sec).  -1 disables upload throttling."]
    pub upload_throughput: JsFloat,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Connection type if known."]
    pub connection_type: Option<ConnectionType>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "WebRTC packet loss (percent, 0-100). 0 disables packet loss emulation, 100 drops all the packets."]
    pub packet_loss: Option<JsFloat>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "WebRTC packet queue length (packet). 0 removes any queue length limitations."]
    pub packet_queue_length: Option<JsUInt>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "WebRTC packetReordering feature."]
    pub packet_reordering: Option<bool>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
pub struct BlockPattern {
    #[serde(default)]
    #[doc = "URL pattern to match. Patterns use the URLPattern constructor string syntax\n (<https://urlpattern.spec.whatwg.org/>) and must be absolute. Example: `*://*:*/*.css`."]
    pub url_pattern: String,
    #[serde(default)]
    #[doc = "Whether or not to block the pattern. If false, a matching request will not be blocked even if it matches a later\n `BlockPattern`."]
    pub block: bool,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
pub struct DirectTcpSocketOptions {
    #[serde(default)]
    #[doc = "TCP_NODELAY option"]
    pub no_delay: bool,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Expected to be unsigned integer."]
    pub keep_alive_delay: Option<JsFloat>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Expected to be unsigned integer."]
    pub send_buffer_size: Option<JsFloat>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Expected to be unsigned integer."]
    pub receive_buffer_size: Option<JsFloat>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    pub dns_query_type: Option<DirectSocketDnsQueryType>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
pub struct DirectUdpSocketOptions {
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    pub remote_addr: Option<String>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Unsigned int 16."]
    pub remote_port: Option<JsUInt>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    pub local_addr: Option<String>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Unsigned int 16."]
    pub local_port: Option<JsUInt>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    pub dns_query_type: Option<DirectSocketDnsQueryType>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Expected to be unsigned integer."]
    pub send_buffer_size: Option<JsFloat>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Expected to be unsigned integer."]
    pub receive_buffer_size: Option<JsFloat>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    pub multicast_loopback: Option<bool>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Unsigned int 8."]
    pub multicast_time_to_live: Option<JsUInt>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    pub multicast_allow_address_sharing: Option<bool>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
pub struct DirectUdpMessage {
    pub data: String,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Null for connected mode."]
    pub remote_addr: Option<String>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Null for connected mode.\n Expected to be unsigned integer."]
    pub remote_port: Option<JsUInt>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
pub struct ConnectTiming {
    #[serde(default)]
    #[doc = "Timing's requestTime is a baseline in seconds, while the other numbers are ticks in\n milliseconds relatively to this requestTime. Matches ResourceTiming's requestTime for\n the same request (but not for redirected requests)."]
    pub request_time: JsFloat,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
pub struct ClientSecurityState {
    #[serde(default)]
    pub initiator_is_secure_context: bool,
    #[serde(rename = "initiatorIPAddressSpace")]
    pub initiator_ip_address_space: IpAddressSpace,
    pub local_network_access_request_policy: LocalNetworkAccessRequestPolicy,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
pub struct CrossOriginOpenerPolicyStatus {
    pub value: CrossOriginOpenerPolicyValue,
    pub report_only_value: CrossOriginOpenerPolicyValue,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    pub reporting_endpoint: Option<String>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    pub report_only_reporting_endpoint: Option<String>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
pub struct CrossOriginEmbedderPolicyStatus {
    pub value: CrossOriginEmbedderPolicyValue,
    pub report_only_value: CrossOriginEmbedderPolicyValue,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    pub reporting_endpoint: Option<String>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    pub report_only_reporting_endpoint: Option<String>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
pub struct ContentSecurityPolicyStatus {
    #[serde(default)]
    pub effective_directives: String,
    #[serde(default)]
    pub is_enforced: bool,
    pub source: ContentSecurityPolicySource,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
pub struct SecurityIsolationStatus {
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    pub coop: Option<CrossOriginOpenerPolicyStatus>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    pub coep: Option<CrossOriginEmbedderPolicyStatus>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    pub csp: Option<Vec<ContentSecurityPolicyStatus>>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "An object representing a report generated by the Reporting API."]
pub struct ReportingApiReport {
    pub id: ReportId,
    #[serde(default)]
    #[doc = "The URL of the document that triggered the report."]
    pub initiator_url: String,
    #[serde(default)]
    #[doc = "The name of the endpoint group that should be used to deliver the report."]
    pub destination: String,
    #[serde(default)]
    #[doc = "The type of the report (specifies the set of data that is contained in the report body)."]
    pub r#type: String,
    #[doc = "When the report was generated."]
    pub timestamp: network::TimeSinceEpoch,
    #[serde(default)]
    #[doc = "How many uploads deep the related request was."]
    pub depth: JsUInt,
    #[serde(default)]
    #[doc = "The number of delivery attempts made so far, not including an active attempt."]
    pub completed_attempts: JsUInt,
    #[serde(default)]
    pub body: Json,
    pub status: ReportStatus,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
pub struct ReportingApiEndpoint {
    #[serde(default)]
    #[doc = "The URL of the endpoint to which reports may be delivered."]
    pub url: String,
    #[serde(default)]
    #[doc = "Name of the endpoint group."]
    pub group_name: String,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Unique identifier for a device bound session."]
pub struct DeviceBoundSessionKey {
    #[serde(default)]
    #[doc = "The site the session is set up for."]
    pub site: String,
    #[serde(default)]
    #[doc = "The id of the session."]
    pub id: String,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "How a device bound session was used during a request."]
pub struct DeviceBoundSessionWithUsage {
    #[doc = "The key for the session."]
    pub session_key: DeviceBoundSessionKey,
    #[doc = "How the session was used (or not used)."]
    pub usage: DeviceBoundSessionWithUsageUsage,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "A device bound session's cookie craving."]
pub struct DeviceBoundSessionCookieCraving {
    #[serde(default)]
    #[doc = "The name of the craving."]
    pub name: String,
    #[serde(default)]
    #[doc = "The domain of the craving."]
    pub domain: String,
    #[serde(default)]
    #[doc = "The path of the craving."]
    pub path: String,
    #[serde(default)]
    #[doc = "The `Secure` attribute of the craving attributes."]
    pub secure: bool,
    #[serde(default)]
    #[doc = "The `HttpOnly` attribute of the craving attributes."]
    pub http_only: bool,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "The `SameSite` attribute of the craving attributes."]
    pub same_site: Option<CookieSameSite>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "A device bound session's inclusion URL rule."]
pub struct DeviceBoundSessionUrlRule {
    #[doc = "See comments on `net::device_bound_sessions::SessionInclusionRules::UrlRule::rule_type`."]
    pub rule_type: DeviceBoundSessionUrlRuleRuleType,
    #[serde(default)]
    #[doc = "See comments on `net::device_bound_sessions::SessionInclusionRules::UrlRule::host_pattern`."]
    pub host_pattern: String,
    #[serde(default)]
    #[doc = "See comments on `net::device_bound_sessions::SessionInclusionRules::UrlRule::path_prefix`."]
    pub path_prefix: String,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "A device bound session's inclusion rules."]
pub struct DeviceBoundSessionInclusionRules {
    #[serde(default)]
    #[doc = "See comments on `net::device_bound_sessions::SessionInclusionRules::origin_`."]
    pub origin: String,
    #[serde(default)]
    #[doc = "Whether the whole site is included. See comments on\n `net::device_bound_sessions::SessionInclusionRules::include_site_` for more\n details; this boolean is true if that value is populated."]
    pub include_site: bool,
    #[doc = "See comments on `net::device_bound_sessions::SessionInclusionRules::url_rules_`."]
    pub url_rules: Vec<DeviceBoundSessionUrlRule>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "A device bound session."]
pub struct DeviceBoundSession {
    #[doc = "The site and session ID of the session."]
    pub key: DeviceBoundSessionKey,
    #[serde(default)]
    #[doc = "See comments on `net::device_bound_sessions::Session::refresh_url_`."]
    pub refresh_url: String,
    #[doc = "See comments on `net::device_bound_sessions::Session::inclusion_rules_`."]
    pub inclusion_rules: DeviceBoundSessionInclusionRules,
    #[doc = "See comments on `net::device_bound_sessions::Session::cookie_cravings_`."]
    pub cookie_cravings: Vec<DeviceBoundSessionCookieCraving>,
    #[doc = "See comments on `net::device_bound_sessions::Session::expiry_date_`."]
    pub expiry_date: network::TimeSinceEpoch,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "See comments on `net::device_bound_sessions::Session::cached_challenge__`."]
    pub cached_challenge: Option<String>,
    #[serde(default)]
    #[doc = "See comments on `net::device_bound_sessions::Session::allowed_refresh_initiators_`."]
    pub allowed_refresh_initiators: Vec<String>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Session event details specific to creation."]
pub struct CreationEventDetails {
    #[doc = "The result of the fetch attempt."]
    pub fetch_result: DeviceBoundSessionFetchResult,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "The session if there was a newly created session. This is populated for\n all successful creation events."]
    pub new_session: Option<DeviceBoundSession>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Session event details specific to refresh."]
pub struct RefreshEventDetails {
    #[doc = "The result of a refresh."]
    pub refresh_result: RefreshEventDetailsRefreshResult,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "If there was a fetch attempt, the result of that."]
    pub fetch_result: Option<DeviceBoundSessionFetchResult>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "The session display if there was a newly created session. This is populated\n for any refresh event that modifies the session config."]
    pub new_session: Option<DeviceBoundSession>,
    #[serde(default)]
    #[doc = "See comments on `net::device_bound_sessions::RefreshEventResult::was_fully_proactive_refresh`."]
    pub was_fully_proactive_refresh: bool,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Session event details specific to termination."]
pub struct TerminationEventDetails {
    #[doc = "The reason for a session being deleted."]
    pub deletion_reason: TerminationEventDetailsDeletionReason,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Session event details specific to challenges."]
pub struct ChallengeEventDetails {
    #[doc = "The result of a challenge."]
    pub challenge_result: ChallengeEventDetailsChallengeResult,
    #[serde(default)]
    #[doc = "The challenge set."]
    pub challenge: String,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "An object providing the result of a network resource load."]
pub struct LoadNetworkResourcePageResult {
    #[serde(default)]
    pub success: bool,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Optional values used for error reporting."]
    pub net_error: Option<JsFloat>,
    #[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<JsFloat>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "If successful, one of the following two fields holds the result."]
    pub stream: Option<io::StreamHandle>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Response headers."]
    pub headers: Option<network::Headers>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "An options object that may be extended later to better support CORS,\n CORB and streaming."]
pub struct LoadNetworkResourceOptions {
    #[serde(default)]
    pub disable_cache: bool,
    #[serde(default)]
    pub include_credentials: bool,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Sets a list of content encodings that will be accepted. Empty list means no encoding is accepted."]
pub struct SetAcceptedEncodings {
    #[doc = "List of accepted content encodings."]
    pub encodings: Vec<ContentEncoding>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub struct ClearAcceptedEncodingsOverride(pub Option<Json>);
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub struct CanClearBrowserCache(pub Option<Json>);
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub struct CanClearBrowserCookies(pub Option<Json>);
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub struct CanEmulateNetworkConditions(pub Option<Json>);
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub struct ClearBrowserCache(pub Option<Json>);
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub struct ClearBrowserCookies(pub Option<Json>);
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Response to Network.requestIntercepted which either modifies the request to continue with any\n modifications, or blocks it, or completes it with the provided response bytes. If a network\n fetch occurs as a result which encounters a redirect an additional Network.requestIntercepted\n event will be sent with the same InterceptionId.\n Deprecated, use Fetch.continueRequest, Fetch.fulfillRequest and Fetch.failRequest instead."]
#[deprecated]
pub struct ContinueInterceptedRequest {
    pub interception_id: InterceptionId,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "If set this causes the request to fail with the given reason. Passing `Aborted` for requests\n marked with `isNavigationRequest` also cancels the navigation. Must not be set in response\n to an authChallenge."]
    pub error_reason: Option<ErrorReason>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "If set the requests completes using with the provided base64 encoded raw response, including\n HTTP status line and headers etc... Must not be set in response to an authChallenge."]
    pub raw_response: Option<Vec<u8>>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "If set the request url will be modified in a way that's not observable by page. Must not be\n set in response to an authChallenge."]
    pub url: Option<String>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "If set this allows the request method to be overridden. Must not be set in response to an\n authChallenge."]
    pub method: Option<String>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "If set this allows postData to be set. Must not be set in response to an authChallenge."]
    pub post_data: Option<String>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "If set this allows the request headers to be changed. Must not be set in response to an\n authChallenge."]
    pub headers: Option<Headers>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Response to a requestIntercepted with an authChallenge. Must not be set otherwise."]
    pub auth_challenge_response: Option<AuthChallengeResponse>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Deletes browser cookies with matching name and url or domain/path/partitionKey pair."]
pub struct DeleteCookies {
    #[serde(default)]
    #[doc = "Name of the cookies to remove."]
    pub name: String,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "If specified, deletes all the cookies with the given name where domain and path match\n provided URL."]
    pub url: Option<String>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "If specified, deletes only cookies with the exact domain."]
    pub domain: Option<String>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "If specified, deletes only cookies with the exact path."]
    pub path: Option<String>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "If specified, deletes only cookies with the the given name and partitionKey where\n all partition key attributes match the cookie partition key attribute."]
    pub partition_key: Option<CookiePartitionKey>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub struct Disable(pub Option<Json>);
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Activates emulation of network conditions. This command is deprecated in favor of the emulateNetworkConditionsByRule\n and overrideNetworkState commands, which can be used together to the same effect."]
#[deprecated]
pub struct EmulateNetworkConditions {
    #[serde(default)]
    #[doc = "True to emulate internet disconnection."]
    pub offline: bool,
    #[serde(default)]
    #[doc = "Minimum latency from request sent to response headers received (ms)."]
    pub latency: JsFloat,
    #[serde(default)]
    #[doc = "Maximal aggregated download throughput (bytes/sec). -1 disables download throttling."]
    pub download_throughput: JsFloat,
    #[serde(default)]
    #[doc = "Maximal aggregated upload throughput (bytes/sec).  -1 disables upload throttling."]
    pub upload_throughput: JsFloat,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Connection type if known."]
    pub connection_type: Option<ConnectionType>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "WebRTC packet loss (percent, 0-100). 0 disables packet loss emulation, 100 drops all the packets."]
    pub packet_loss: Option<JsFloat>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "WebRTC packet queue length (packet). 0 removes any queue length limitations."]
    pub packet_queue_length: Option<JsUInt>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "WebRTC packetReordering feature."]
    pub packet_reordering: Option<bool>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Activates emulation of network conditions for individual requests using URL match patterns. Unlike the deprecated\n Network.emulateNetworkConditions this method does not affect `navigator` state. Use Network.overrideNetworkState to\n explicitly modify `navigator` behavior."]
pub struct EmulateNetworkConditionsByRule {
    #[serde(default)]
    #[doc = "True to emulate internet disconnection."]
    pub offline: bool,
    #[doc = "Configure conditions for matching requests. If multiple entries match a request, the first entry wins.  Global\n conditions can be configured by leaving the urlPattern for the conditions empty. These global conditions are\n also applied for throttling of p2p connections."]
    pub matched_network_conditions: Vec<NetworkConditions>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Override the state of navigator.onLine and navigator.connection."]
pub struct OverrideNetworkState {
    #[serde(default)]
    #[doc = "True to emulate internet disconnection."]
    pub offline: bool,
    #[serde(default)]
    #[doc = "Minimum latency from request sent to response headers received (ms)."]
    pub latency: JsFloat,
    #[serde(default)]
    #[doc = "Maximal aggregated download throughput (bytes/sec). -1 disables download throttling."]
    pub download_throughput: JsFloat,
    #[serde(default)]
    #[doc = "Maximal aggregated upload throughput (bytes/sec).  -1 disables upload throttling."]
    pub upload_throughput: JsFloat,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Connection type if known."]
    pub connection_type: Option<ConnectionType>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Enables network tracking, network events will now be delivered to the client."]
pub struct Enable {
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Buffer size in bytes to use when preserving network payloads (XHRs, etc)."]
    pub max_total_buffer_size: Option<JsUInt>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Per-resource buffer size in bytes to use when preserving network payloads (XHRs, etc)."]
    pub max_resource_buffer_size: Option<JsUInt>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Longest post body size (in bytes) that would be included in requestWillBeSent notification"]
    pub max_post_data_size: Option<JsUInt>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Whether DirectSocket chunk send/receive events should be reported."]
    pub report_direct_socket_traffic: Option<bool>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Enable storing response bodies outside of renderer, so that these survive\n a cross-process navigation. Requires maxTotalBufferSize to be set.\n Currently defaults to false. This field is being deprecated in favor of the dedicated\n configureDurableMessages command, due to the possibility of deadlocks when awaiting\n Network.enable before issuing Runtime.runIfWaitingForDebugger."]
    pub enable_durable_messages: Option<bool>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Configures storing response bodies outside of renderer, so that these survive\n a cross-process navigation.\n If maxTotalBufferSize is not set, durable messages are disabled."]
pub struct ConfigureDurableMessages {
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Buffer size in bytes to use when preserving network payloads (XHRs, etc)."]
    pub max_total_buffer_size: Option<JsUInt>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Per-resource buffer size in bytes to use when preserving network payloads (XHRs, etc)."]
    pub max_resource_buffer_size: Option<JsUInt>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub struct GetAllCookies(pub Option<Json>);
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Returns the DER-encoded certificate."]
pub struct GetCertificate {
    #[serde(default)]
    #[doc = "Origin to get certificate for."]
    pub origin: String,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Returns all browser cookies for the current URL. Depending on the backend support, will return\n detailed cookie information in the `cookies` field."]
pub struct GetCookies {
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "The list of URLs for which applicable cookies will be fetched.\n If not specified, it's assumed to be set to the list containing\n the URLs of the page and all of its subframes."]
    pub urls: Option<Vec<String>>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Returns content served for the given request."]
pub struct GetResponseBody {
    #[doc = "Identifier of the network request to get content for."]
    pub request_id: RequestId,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Returns post data sent with the request. Returns an error when no data was sent with the request."]
pub struct GetRequestPostData {
    #[doc = "Identifier of the network request to get content for."]
    pub request_id: RequestId,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Returns content served for the given currently intercepted request."]
pub struct GetResponseBodyForInterception {
    #[doc = "Identifier for the intercepted request to get body for."]
    pub interception_id: InterceptionId,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Returns a handle to the stream representing the response body. Note that after this command,\n the intercepted request can't be continued as is -- you either need to cancel it or to provide\n the response body. The stream only supports sequential read, IO.read will fail if the position\n is specified."]
pub struct TakeResponseBodyForInterceptionAsStream {
    pub interception_id: InterceptionId,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "This method sends a new XMLHttpRequest which is identical to the original one. The following\n parameters should be identical: method, url, async, request body, extra headers, withCredentials\n attribute, user, password."]
pub struct ReplayXHR {
    #[doc = "Identifier of XHR to replay."]
    pub request_id: RequestId,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Searches for given string in response content."]
pub struct SearchInResponseBody {
    #[doc = "Identifier of the network response to search."]
    pub request_id: RequestId,
    #[serde(default)]
    #[doc = "String to search for."]
    pub query: String,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "If true, search is case sensitive."]
    pub case_sensitive: Option<bool>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "If true, treats string parameter as regex."]
    pub is_regex: Option<bool>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Blocks URLs from loading."]
pub struct SetBlockedURLs {
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Patterns to match in the order in which they are given. These patterns\n also take precedence over any wildcard patterns defined in `urls`."]
    pub url_patterns: Option<Vec<BlockPattern>>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "URL patterns to block. Wildcards ('*') are allowed."]
    #[deprecated]
    pub urls: Option<Vec<String>>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Toggles ignoring of service worker for each request."]
pub struct SetBypassServiceWorker {
    #[serde(default)]
    #[doc = "Bypass service worker and load from network."]
    pub bypass: bool,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Toggles ignoring cache for each request. If `true`, cache will not be used."]
pub struct SetCacheDisabled {
    #[serde(default)]
    #[doc = "Cache disabled state."]
    pub cache_disabled: bool,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Sets a cookie with the given cookie data; may overwrite equivalent cookies if they exist."]
pub struct SetCookie {
    #[serde(default)]
    #[doc = "Cookie name."]
    pub name: String,
    #[serde(default)]
    #[doc = "Cookie value."]
    pub value: String,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "The request-URI to associate with the setting of the cookie. This value can affect the\n default domain, path, source port, and source scheme values of the created cookie."]
    pub url: Option<String>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Cookie domain."]
    pub domain: Option<String>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Cookie path."]
    pub path: Option<String>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "True if cookie is secure."]
    pub secure: Option<bool>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "True if cookie is http-only."]
    pub http_only: Option<bool>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Cookie SameSite type."]
    pub same_site: Option<CookieSameSite>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Cookie expiration date, session cookie if not set"]
    pub expires: Option<TimeSinceEpoch>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Cookie Priority type."]
    pub priority: Option<CookiePriority>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Cookie source scheme type."]
    pub source_scheme: Option<CookieSourceScheme>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Cookie source port. Valid values are {-1, \\[1, 65535\\]}, -1 indicates an unspecified port.\n An unspecified port value allows protocol clients to emulate legacy cookie scope for the port.\n This is a temporary ability and it will be removed in the future."]
    pub source_port: Option<JsUInt>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Cookie partition key. If not set, the cookie will be set as not partitioned."]
    pub partition_key: Option<CookiePartitionKey>,
}
#[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: Vec<CookieParam>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Specifies whether to always send extra HTTP headers with the requests from this page."]
pub struct SetExtraHTTPHeaders {
    #[doc = "Map with extra HTTP headers."]
    pub headers: Headers,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Specifies whether to attach a page script stack id in requests"]
pub struct SetAttachDebugStack {
    #[serde(default)]
    #[doc = "Whether to attach a page script stack for debugging purpose."]
    pub enabled: bool,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Sets the requests to intercept that match the provided patterns and optionally resource types.\n Deprecated, please use Fetch.enable instead."]
#[deprecated]
pub struct SetRequestInterception {
    #[doc = "Requests matching any of these patterns will be forwarded and wait for the corresponding\n continueInterceptedRequest call."]
    pub patterns: Vec<RequestPattern>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Allows overriding user agent with the given string."]
pub struct SetUserAgentOverride {
    #[serde(default)]
    #[doc = "User agent to use."]
    pub user_agent: String,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "Browser language to emulate."]
    pub accept_language: Option<String>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    #[doc = "The platform navigator.platform should return."]
    pub platform: Option<String>,
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "To be sent in Sec-CH-UA-* headers and returned in navigator.userAgentData"]
    pub user_agent_metadata: Option<emulation::UserAgentMetadata>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Enables streaming of the response for the given requestId.\n If enabled, the dataReceived event contains the data that was received during streaming."]
pub struct StreamResourceContent {
    #[doc = "Identifier of the request to stream."]
    pub request_id: RequestId,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Returns information about the COEP/COOP isolation status."]
pub struct GetSecurityIsolationStatus {
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "If no frameId is provided, the status of the target is provided."]
    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 = "Enables tracking for the Reporting API, events generated by the Reporting API will now be delivered to the client.\n Enabling triggers 'reportingApiReportAdded' for all existing reports."]
pub struct EnableReportingApi {
    #[serde(default)]
    #[doc = "Whether to enable or disable events for the Reporting API"]
    pub enable: bool,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Sets up tracking device bound sessions and fetching of initial set of sessions."]
pub struct EnableDeviceBoundSessions {
    #[serde(default)]
    #[doc = "Whether to enable or disable events."]
    pub enable: bool,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Fetches the schemeful site for a specific origin."]
pub struct FetchSchemefulSite {
    #[serde(default)]
    #[doc = "The URL origin."]
    pub origin: String,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Fetches the resource and returns the content."]
pub struct LoadNetworkResource {
    #[builder(default)]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[doc = "Frame id to get the resource for. Mandatory for frame targets, and\n should be omitted for worker targets."]
    pub frame_id: Option<page::FrameId>,
    #[serde(default)]
    #[doc = "URL of the resource to get content for."]
    pub url: String,
    #[doc = "Options for the request."]
    pub options: LoadNetworkResourceOptions,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[builder(setter(into, strip_option))]
#[serde(rename_all = "camelCase")]
#[doc = "Sets Controls for third-party cookie access\n Page reload is required before the new cookie behavior will be observed"]
pub struct SetCookieControls {
    #[serde(default)]
    #[doc = "Whether 3pc restriction is enabled."]
    pub enable_third_party_cookie_restriction: bool,
    #[serde(default)]
    #[doc = "Whether 3pc grace period exception should be enabled; false by default."]
    pub disable_third_party_cookie_metadata: bool,
    #[serde(default)]
    #[doc = "Whether 3pc heuristics exceptions should be enabled; false by default."]
    pub disable_third_party_cookie_heuristics: bool,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
#[doc = "Sets a list of content encodings that will be accepted. Empty list means no encoding is accepted."]
pub struct SetAcceptedEncodingsReturnObject(pub Option<Json>);
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
#[doc = "Clears accepted encodings set by setAcceptedEncodings"]
pub struct ClearAcceptedEncodingsOverrideReturnObject(pub Option<Json>);
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[serde(rename_all = "camelCase")]
#[doc = "Tells whether clearing browser cache is supported."]
#[deprecated]
pub struct CanClearBrowserCacheReturnObject {
    #[serde(default)]
    #[doc = "True if browser cache can be cleared."]
    pub result: bool,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[serde(rename_all = "camelCase")]
#[doc = "Tells whether clearing browser cookies is supported."]
#[deprecated]
pub struct CanClearBrowserCookiesReturnObject {
    #[serde(default)]
    #[doc = "True if browser cookies can be cleared."]
    pub result: bool,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[serde(rename_all = "camelCase")]
#[doc = "Tells whether emulation of network conditions is supported."]
#[deprecated]
pub struct CanEmulateNetworkConditionsReturnObject {
    #[serde(default)]
    #[doc = "True if emulation of network conditions is supported."]
    pub result: bool,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
#[doc = "Clears browser cache."]
pub struct ClearBrowserCacheReturnObject(pub Option<Json>);
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
#[doc = "Clears browser cookies."]
pub struct ClearBrowserCookiesReturnObject(pub Option<Json>);
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
#[doc = "Response to Network.requestIntercepted which either modifies the request to continue with any\n modifications, or blocks it, or completes it with the provided response bytes. If a network\n fetch occurs as a result which encounters a redirect an additional Network.requestIntercepted\n event will be sent with the same InterceptionId.\n Deprecated, use Fetch.continueRequest, Fetch.fulfillRequest and Fetch.failRequest instead."]
#[deprecated]
pub struct ContinueInterceptedRequestReturnObject(pub Option<Json>);
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
#[doc = "Deletes browser cookies with matching name and url or domain/path/partitionKey pair."]
pub struct DeleteCookiesReturnObject(pub Option<Json>);
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
#[doc = "Disables network tracking, prevents network events from being sent to the client."]
pub struct DisableReturnObject(pub Option<Json>);
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
#[doc = "Activates emulation of network conditions. This command is deprecated in favor of the emulateNetworkConditionsByRule\n and overrideNetworkState commands, which can be used together to the same effect."]
#[deprecated]
pub struct EmulateNetworkConditionsReturnObject(pub Option<Json>);
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[serde(rename_all = "camelCase")]
#[doc = "Activates emulation of network conditions for individual requests using URL match patterns. Unlike the deprecated\n Network.emulateNetworkConditions this method does not affect `navigator` state. Use Network.overrideNetworkState to\n explicitly modify `navigator` behavior."]
pub struct EmulateNetworkConditionsByRuleReturnObject {
    #[doc = "An id for each entry in matchedNetworkConditions. The id will be included in the requestWillBeSentExtraInfo for\n requests affected by a rule."]
    pub rule_ids: Vec<String>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
#[doc = "Override the state of navigator.onLine and navigator.connection."]
pub struct OverrideNetworkStateReturnObject(pub Option<Json>);
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
#[doc = "Enables network tracking, network events will now be delivered to the client."]
pub struct EnableReturnObject(pub Option<Json>);
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
#[doc = "Configures storing response bodies outside of renderer, so that these survive\n a cross-process navigation.\n If maxTotalBufferSize is not set, durable messages are disabled."]
pub struct ConfigureDurableMessagesReturnObject(pub Option<Json>);
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[serde(rename_all = "camelCase")]
#[doc = "Returns all browser cookies. Depending on the backend support, will return detailed cookie\n information in the `cookies` field.\n Deprecated. Use Storage.getCookies instead."]
#[deprecated]
pub struct GetAllCookiesReturnObject {
    #[doc = "Array of cookie objects."]
    pub cookies: Vec<Cookie>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[serde(rename_all = "camelCase")]
#[doc = "Returns the DER-encoded certificate."]
pub struct GetCertificateReturnObject {
    pub table_names: Vec<String>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[serde(rename_all = "camelCase")]
#[doc = "Returns all browser cookies for the current URL. Depending on the backend support, will return\n detailed cookie information in the `cookies` field."]
pub struct GetCookiesReturnObject {
    #[doc = "Array of cookie objects."]
    pub cookies: Vec<Cookie>,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[serde(rename_all = "camelCase")]
#[doc = "Returns content served for the given request."]
pub struct GetResponseBodyReturnObject {
    #[serde(default)]
    #[doc = "Response body."]
    pub body: String,
    #[serde(default)]
    #[doc = "True, if content was sent as base64."]
    pub base_64_encoded: bool,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[serde(rename_all = "camelCase")]
#[doc = "Returns post data sent with the request. Returns an error when no data was sent with the request."]
pub struct GetRequestPostDataReturnObject {
    #[serde(default)]
    #[doc = "Request body string, omitting files from multipart requests"]
    pub post_data: String,
    #[serde(default)]
    #[doc = "True, if content was sent as base64."]
    pub base_64_encoded: bool,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[serde(rename_all = "camelCase")]
#[doc = "Returns content served for the given currently intercepted request."]
pub struct GetResponseBodyForInterceptionReturnObject {
    #[serde(default)]
    #[doc = "Response body."]
    pub body: String,
    #[serde(default)]
    #[doc = "True, if content was sent as base64."]
    pub base_64_encoded: bool,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[serde(rename_all = "camelCase")]
#[doc = "Returns a handle to the stream representing the response body. Note that after this command,\n the intercepted request can't be continued as is -- you either need to cancel it or to provide\n the response body. The stream only supports sequential read, IO.read will fail if the position\n is specified."]
pub struct TakeResponseBodyForInterceptionAsStreamReturnObject {
    pub stream: io::StreamHandle,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
#[doc = "This method sends a new XMLHttpRequest which is identical to the original one. The following\n parameters should be identical: method, url, async, request body, extra headers, withCredentials\n attribute, user, password."]
pub struct ReplayXHRReturnObject(pub Option<Json>);
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[serde(rename_all = "camelCase")]
#[doc = "Searches for given string in response content."]
pub struct SearchInResponseBodyReturnObject {
    #[doc = "List of search matches."]
    pub result: debugger::SearchMatch,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
#[doc = "Blocks URLs from loading."]
pub struct SetBlockedURLsReturnObject(pub Option<Json>);
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
#[doc = "Toggles ignoring of service worker for each request."]
pub struct SetBypassServiceWorkerReturnObject(pub Option<Json>);
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
#[doc = "Toggles ignoring cache for each request. If `true`, cache will not be used."]
pub struct SetCacheDisabledReturnObject(pub Option<Json>);
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[serde(rename_all = "camelCase")]
#[doc = "Sets a cookie with the given cookie data; may overwrite equivalent cookies if they exist."]
pub struct SetCookieReturnObject {
    #[serde(default)]
    #[doc = "Always set to true. If an error occurs, the response indicates protocol error."]
    #[deprecated]
    pub success: bool,
}
#[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 = "Specifies whether to always send extra HTTP headers with the requests from this page."]
pub struct SetExtraHTTPHeadersReturnObject(pub Option<Json>);
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
#[doc = "Specifies whether to attach a page script stack id in requests"]
pub struct SetAttachDebugStackReturnObject(pub Option<Json>);
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
#[doc = "Sets the requests to intercept that match the provided patterns and optionally resource types.\n Deprecated, please use Fetch.enable instead."]
#[deprecated]
pub struct SetRequestInterceptionReturnObject(pub Option<Json>);
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
#[doc = "Allows overriding user agent with the given string."]
pub struct SetUserAgentOverrideReturnObject(pub Option<Json>);
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[serde(rename_all = "camelCase")]
#[doc = "Enables streaming of the response for the given requestId.\n If enabled, the dataReceived event contains the data that was received during streaming."]
pub struct StreamResourceContentReturnObject {
    #[doc = "Data that has been buffered until streaming is enabled."]
    pub buffered_data: String,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[serde(rename_all = "camelCase")]
#[doc = "Returns information about the COEP/COOP isolation status."]
pub struct GetSecurityIsolationStatusReturnObject {
    pub status: SecurityIsolationStatus,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
#[doc = "Enables tracking for the Reporting API, events generated by the Reporting API will now be delivered to the client.\n Enabling triggers 'reportingApiReportAdded' for all existing reports."]
pub struct EnableReportingApiReturnObject(pub Option<Json>);
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
#[doc = "Sets up tracking device bound sessions and fetching of initial set of sessions."]
pub struct EnableDeviceBoundSessionsReturnObject(pub Option<Json>);
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[serde(rename_all = "camelCase")]
#[doc = "Fetches the schemeful site for a specific origin."]
pub struct FetchSchemefulSiteReturnObject {
    #[serde(default)]
    #[doc = "The corresponding schemeful site."]
    pub schemeful_site: String,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
#[serde(rename_all = "camelCase")]
#[doc = "Fetches the resource and returns the content."]
pub struct LoadNetworkResourceReturnObject {
    pub resource: LoadNetworkResourcePageResult,
}
#[allow(deprecated)]
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
#[doc = "Sets Controls for third-party cookie access\n Page reload is required before the new cookie behavior will be observed"]
pub struct SetCookieControlsReturnObject(pub Option<Json>);
#[allow(deprecated)]
impl Method for SetAcceptedEncodings {
    const NAME: &'static str = "Network.setAcceptedEncodings";
    type ReturnObject = SetAcceptedEncodingsReturnObject;
}
#[allow(deprecated)]
impl Method for ClearAcceptedEncodingsOverride {
    const NAME: &'static str = "Network.clearAcceptedEncodingsOverride";
    type ReturnObject = ClearAcceptedEncodingsOverrideReturnObject;
}
#[allow(deprecated)]
impl Method for CanClearBrowserCache {
    const NAME: &'static str = "Network.canClearBrowserCache";
    type ReturnObject = CanClearBrowserCacheReturnObject;
}
#[allow(deprecated)]
impl Method for CanClearBrowserCookies {
    const NAME: &'static str = "Network.canClearBrowserCookies";
    type ReturnObject = CanClearBrowserCookiesReturnObject;
}
#[allow(deprecated)]
impl Method for CanEmulateNetworkConditions {
    const NAME: &'static str = "Network.canEmulateNetworkConditions";
    type ReturnObject = CanEmulateNetworkConditionsReturnObject;
}
#[allow(deprecated)]
impl Method for ClearBrowserCache {
    const NAME: &'static str = "Network.clearBrowserCache";
    type ReturnObject = ClearBrowserCacheReturnObject;
}
#[allow(deprecated)]
impl Method for ClearBrowserCookies {
    const NAME: &'static str = "Network.clearBrowserCookies";
    type ReturnObject = ClearBrowserCookiesReturnObject;
}
#[allow(deprecated)]
impl Method for ContinueInterceptedRequest {
    const NAME: &'static str = "Network.continueInterceptedRequest";
    type ReturnObject = ContinueInterceptedRequestReturnObject;
}
#[allow(deprecated)]
impl Method for DeleteCookies {
    const NAME: &'static str = "Network.deleteCookies";
    type ReturnObject = DeleteCookiesReturnObject;
}
#[allow(deprecated)]
impl Method for Disable {
    const NAME: &'static str = "Network.disable";
    type ReturnObject = DisableReturnObject;
}
#[allow(deprecated)]
impl Method for EmulateNetworkConditions {
    const NAME: &'static str = "Network.emulateNetworkConditions";
    type ReturnObject = EmulateNetworkConditionsReturnObject;
}
#[allow(deprecated)]
impl Method for EmulateNetworkConditionsByRule {
    const NAME: &'static str = "Network.emulateNetworkConditionsByRule";
    type ReturnObject = EmulateNetworkConditionsByRuleReturnObject;
}
#[allow(deprecated)]
impl Method for OverrideNetworkState {
    const NAME: &'static str = "Network.overrideNetworkState";
    type ReturnObject = OverrideNetworkStateReturnObject;
}
#[allow(deprecated)]
impl Method for Enable {
    const NAME: &'static str = "Network.enable";
    type ReturnObject = EnableReturnObject;
}
#[allow(deprecated)]
impl Method for ConfigureDurableMessages {
    const NAME: &'static str = "Network.configureDurableMessages";
    type ReturnObject = ConfigureDurableMessagesReturnObject;
}
#[allow(deprecated)]
impl Method for GetAllCookies {
    const NAME: &'static str = "Network.getAllCookies";
    type ReturnObject = GetAllCookiesReturnObject;
}
#[allow(deprecated)]
impl Method for GetCertificate {
    const NAME: &'static str = "Network.getCertificate";
    type ReturnObject = GetCertificateReturnObject;
}
#[allow(deprecated)]
impl Method for GetCookies {
    const NAME: &'static str = "Network.getCookies";
    type ReturnObject = GetCookiesReturnObject;
}
#[allow(deprecated)]
impl Method for GetResponseBody {
    const NAME: &'static str = "Network.getResponseBody";
    type ReturnObject = GetResponseBodyReturnObject;
}
#[allow(deprecated)]
impl Method for GetRequestPostData {
    const NAME: &'static str = "Network.getRequestPostData";
    type ReturnObject = GetRequestPostDataReturnObject;
}
#[allow(deprecated)]
impl Method for GetResponseBodyForInterception {
    const NAME: &'static str = "Network.getResponseBodyForInterception";
    type ReturnObject = GetResponseBodyForInterceptionReturnObject;
}
#[allow(deprecated)]
impl Method for TakeResponseBodyForInterceptionAsStream {
    const NAME: &'static str = "Network.takeResponseBodyForInterceptionAsStream";
    type ReturnObject = TakeResponseBodyForInterceptionAsStreamReturnObject;
}
#[allow(deprecated)]
impl Method for ReplayXHR {
    const NAME: &'static str = "Network.replayXHR";
    type ReturnObject = ReplayXHRReturnObject;
}
#[allow(deprecated)]
impl Method for SearchInResponseBody {
    const NAME: &'static str = "Network.searchInResponseBody";
    type ReturnObject = SearchInResponseBodyReturnObject;
}
#[allow(deprecated)]
impl Method for SetBlockedURLs {
    const NAME: &'static str = "Network.setBlockedURLs";
    type ReturnObject = SetBlockedURLsReturnObject;
}
#[allow(deprecated)]
impl Method for SetBypassServiceWorker {
    const NAME: &'static str = "Network.setBypassServiceWorker";
    type ReturnObject = SetBypassServiceWorkerReturnObject;
}
#[allow(deprecated)]
impl Method for SetCacheDisabled {
    const NAME: &'static str = "Network.setCacheDisabled";
    type ReturnObject = SetCacheDisabledReturnObject;
}
#[allow(deprecated)]
impl Method for SetCookie {
    const NAME: &'static str = "Network.setCookie";
    type ReturnObject = SetCookieReturnObject;
}
#[allow(deprecated)]
impl Method for SetCookies {
    const NAME: &'static str = "Network.setCookies";
    type ReturnObject = SetCookiesReturnObject;
}
#[allow(deprecated)]
impl Method for SetExtraHTTPHeaders {
    const NAME: &'static str = "Network.setExtraHTTPHeaders";
    type ReturnObject = SetExtraHTTPHeadersReturnObject;
}
#[allow(deprecated)]
impl Method for SetAttachDebugStack {
    const NAME: &'static str = "Network.setAttachDebugStack";
    type ReturnObject = SetAttachDebugStackReturnObject;
}
#[allow(deprecated)]
impl Method for SetRequestInterception {
    const NAME: &'static str = "Network.setRequestInterception";
    type ReturnObject = SetRequestInterceptionReturnObject;
}
#[allow(deprecated)]
impl Method for SetUserAgentOverride {
    const NAME: &'static str = "Network.setUserAgentOverride";
    type ReturnObject = SetUserAgentOverrideReturnObject;
}
#[allow(deprecated)]
impl Method for StreamResourceContent {
    const NAME: &'static str = "Network.streamResourceContent";
    type ReturnObject = StreamResourceContentReturnObject;
}
#[allow(deprecated)]
impl Method for GetSecurityIsolationStatus {
    const NAME: &'static str = "Network.getSecurityIsolationStatus";
    type ReturnObject = GetSecurityIsolationStatusReturnObject;
}
#[allow(deprecated)]
impl Method for EnableReportingApi {
    const NAME: &'static str = "Network.enableReportingApi";
    type ReturnObject = EnableReportingApiReturnObject;
}
#[allow(deprecated)]
impl Method for EnableDeviceBoundSessions {
    const NAME: &'static str = "Network.enableDeviceBoundSessions";
    type ReturnObject = EnableDeviceBoundSessionsReturnObject;
}
#[allow(deprecated)]
impl Method for FetchSchemefulSite {
    const NAME: &'static str = "Network.fetchSchemefulSite";
    type ReturnObject = FetchSchemefulSiteReturnObject;
}
#[allow(deprecated)]
impl Method for LoadNetworkResource {
    const NAME: &'static str = "Network.loadNetworkResource";
    type ReturnObject = LoadNetworkResourceReturnObject;
}
#[allow(deprecated)]
impl Method for SetCookieControls {
    const NAME: &'static str = "Network.setCookieControls";
    type ReturnObject = SetCookieControlsReturnObject;
}
#[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 DataReceivedEvent {
        pub params: DataReceivedEventParams,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
    #[serde(rename_all = "camelCase")]
    pub struct DataReceivedEventParams {
        #[doc = "Request identifier."]
        pub request_id: super::RequestId,
        #[doc = "Timestamp."]
        pub timestamp: super::MonotonicTime,
        #[serde(default)]
        #[doc = "Data chunk length."]
        pub data_length: JsUInt,
        #[serde(default)]
        #[doc = "Actual bytes received (might be less than dataLength for compressed encodings)."]
        pub encoded_data_length: JsUInt,
        #[builder(default)]
        #[serde(skip_serializing_if = "Option::is_none")]
        #[serde(default)]
        #[doc = "Data that was received."]
        pub data: Option<String>,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
    pub struct EventSourceMessageReceivedEvent {
        pub params: EventSourceMessageReceivedEventParams,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
    #[serde(rename_all = "camelCase")]
    pub struct EventSourceMessageReceivedEventParams {
        #[doc = "Request identifier."]
        pub request_id: super::RequestId,
        #[doc = "Timestamp."]
        pub timestamp: super::MonotonicTime,
        #[serde(default)]
        #[doc = "Message type."]
        pub event_name: String,
        #[serde(default)]
        #[doc = "Message identifier."]
        pub event_id: String,
        #[serde(default)]
        #[doc = "Message content."]
        pub data: String,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
    pub struct LoadingFailedEvent {
        pub params: LoadingFailedEventParams,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
    #[serde(rename_all = "camelCase")]
    pub struct LoadingFailedEventParams {
        #[doc = "Request identifier."]
        pub request_id: super::RequestId,
        #[doc = "Timestamp."]
        pub timestamp: super::MonotonicTime,
        #[doc = "Resource type."]
        pub r#type: super::ResourceType,
        #[serde(default)]
        #[doc = "Error message. List of network errors: <https://cs.chromium.org/chromium/src/net/base/net_error_list.h>"]
        pub error_text: String,
        #[builder(default)]
        #[serde(skip_serializing_if = "Option::is_none")]
        #[serde(default)]
        #[doc = "True if loading was canceled."]
        pub canceled: Option<bool>,
        #[builder(default)]
        #[serde(skip_serializing_if = "Option::is_none")]
        #[doc = "The reason why loading was blocked, if any."]
        pub blocked_reason: Option<super::BlockedReason>,
        #[builder(default)]
        #[serde(skip_serializing_if = "Option::is_none")]
        #[doc = "The reason why loading was blocked by CORS, if any."]
        pub cors_error_status: Option<super::CorsErrorStatus>,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
    pub struct LoadingFinishedEvent {
        pub params: LoadingFinishedEventParams,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
    #[serde(rename_all = "camelCase")]
    pub struct LoadingFinishedEventParams {
        #[doc = "Request identifier."]
        pub request_id: super::RequestId,
        #[doc = "Timestamp."]
        pub timestamp: super::MonotonicTime,
        #[serde(default)]
        #[doc = "Total number of bytes received for this request."]
        pub encoded_data_length: JsFloat,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
    pub struct RequestInterceptedEvent {
        pub params: RequestInterceptedEventParams,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
    #[serde(rename_all = "camelCase")]
    pub struct RequestInterceptedEventParams {
        #[doc = "Each request the page makes will have a unique id, however if any redirects are encountered\n while processing that fetch, they will be reported with the same id as the original fetch.\n Likewise if HTTP authentication is needed then the same fetch id will be used."]
        pub interception_id: super::InterceptionId,
        pub request: super::Request,
        #[doc = "The id of the frame that initiated the request."]
        pub frame_id: super::super::page::FrameId,
        #[doc = "How the requested resource will be used."]
        pub resource_type: super::ResourceType,
        #[serde(default)]
        #[doc = "Whether this is a navigation request, which can abort the navigation completely."]
        pub is_navigation_request: bool,
        #[builder(default)]
        #[serde(skip_serializing_if = "Option::is_none")]
        #[serde(default)]
        #[doc = "Set if the request is a navigation that will result in a download.\n Only present after response is received from the server (i.e. HeadersReceived stage)."]
        pub is_download: Option<bool>,
        #[builder(default)]
        #[serde(skip_serializing_if = "Option::is_none")]
        #[serde(default)]
        #[doc = "Redirect location, only sent if a redirect was intercepted."]
        pub redirect_url: Option<String>,
        #[builder(default)]
        #[serde(skip_serializing_if = "Option::is_none")]
        #[doc = "Details of the Authorization Challenge encountered. If this is set then\n continueInterceptedRequest must contain an authChallengeResponse."]
        pub auth_challenge: Option<super::AuthChallenge>,
        #[builder(default)]
        #[serde(skip_serializing_if = "Option::is_none")]
        #[doc = "Response error if intercepted at response stage or if redirect occurred while intercepting\n request."]
        pub response_error_reason: Option<super::ErrorReason>,
        #[builder(default)]
        #[serde(skip_serializing_if = "Option::is_none")]
        #[serde(default)]
        #[doc = "Response code if intercepted at response stage or if redirect occurred while intercepting\n request or auth retry occurred."]
        pub response_status_code: Option<JsUInt>,
        #[builder(default)]
        #[serde(skip_serializing_if = "Option::is_none")]
        #[doc = "Response headers if intercepted at the response stage or if redirect occurred while\n intercepting request or auth retry occurred."]
        pub response_headers: Option<super::Headers>,
        #[builder(default)]
        #[serde(skip_serializing_if = "Option::is_none")]
        #[doc = "If the intercepted request had a corresponding requestWillBeSent event fired for it, then\n this requestId will be the same as the requestId present in the requestWillBeSent event."]
        pub request_id: Option<super::RequestId>,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
    pub struct RequestServedFromCacheEvent {
        pub params: RequestServedFromCacheEventParams,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
    #[serde(rename_all = "camelCase")]
    pub struct RequestServedFromCacheEventParams {
        #[doc = "Request identifier."]
        pub request_id: super::RequestId,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
    pub struct RequestWillBeSentEvent {
        pub params: RequestWillBeSentEventParams,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
    #[serde(rename_all = "camelCase")]
    pub struct RequestWillBeSentEventParams {
        #[doc = "Request identifier."]
        pub request_id: super::RequestId,
        #[doc = "Loader identifier. Empty string if the request is fetched from worker."]
        pub loader_id: super::LoaderId,
        #[serde(default)]
        #[doc = "URL of the document this request is loaded for."]
        #[serde(rename = "documentURL")]
        pub document_url: String,
        #[doc = "Request data."]
        pub request: super::Request,
        #[doc = "Timestamp."]
        pub timestamp: super::MonotonicTime,
        #[doc = "Timestamp."]
        pub wall_time: super::TimeSinceEpoch,
        #[doc = "Request initiator."]
        pub initiator: super::Initiator,
        #[serde(default)]
        #[doc = "In the case that redirectResponse is populated, this flag indicates whether\n requestWillBeSentExtraInfo and responseReceivedExtraInfo events will be or were emitted\n for the request which was just redirected."]
        pub redirect_has_extra_info: bool,
        #[builder(default)]
        #[serde(skip_serializing_if = "Option::is_none")]
        #[doc = "Redirect response data."]
        pub redirect_response: Option<super::Response>,
        #[builder(default)]
        #[serde(skip_serializing_if = "Option::is_none")]
        #[doc = "Type of this resource."]
        pub r#type: Option<super::ResourceType>,
        #[builder(default)]
        #[serde(skip_serializing_if = "Option::is_none")]
        #[doc = "Frame identifier."]
        pub frame_id: Option<super::super::page::FrameId>,
        #[builder(default)]
        #[serde(skip_serializing_if = "Option::is_none")]
        #[serde(default)]
        #[doc = "Whether the request is initiated by a user gesture. Defaults to false."]
        pub has_user_gesture: Option<bool>,
        #[builder(default)]
        #[serde(skip_serializing_if = "Option::is_none")]
        #[doc = "The render blocking behavior of the request."]
        pub render_blocking_behavior: Option<super::RenderBlockingBehavior>,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
    pub struct ResourceChangedPriorityEvent {
        pub params: ResourceChangedPriorityEventParams,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
    #[serde(rename_all = "camelCase")]
    pub struct ResourceChangedPriorityEventParams {
        #[doc = "Request identifier."]
        pub request_id: super::RequestId,
        #[doc = "New priority"]
        pub new_priority: super::ResourcePriority,
        #[doc = "Timestamp."]
        pub timestamp: super::MonotonicTime,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
    pub struct SignedExchangeReceivedEvent {
        pub params: SignedExchangeReceivedEventParams,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
    #[serde(rename_all = "camelCase")]
    pub struct SignedExchangeReceivedEventParams {
        #[doc = "Request identifier."]
        pub request_id: super::RequestId,
        #[doc = "Information about the signed exchange response."]
        pub info: super::SignedExchangeInfo,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
    pub struct ResponseReceivedEvent {
        pub params: ResponseReceivedEventParams,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
    #[serde(rename_all = "camelCase")]
    pub struct ResponseReceivedEventParams {
        #[doc = "Request identifier."]
        pub request_id: super::RequestId,
        #[doc = "Loader identifier. Empty string if the request is fetched from worker."]
        pub loader_id: super::LoaderId,
        #[doc = "Timestamp."]
        pub timestamp: super::MonotonicTime,
        #[doc = "Resource type."]
        pub r#type: super::ResourceType,
        #[doc = "Response data."]
        pub response: super::Response,
        #[serde(default)]
        #[doc = "Indicates whether requestWillBeSentExtraInfo and responseReceivedExtraInfo events will be\n or were emitted for this request."]
        pub has_extra_info: bool,
        #[builder(default)]
        #[serde(skip_serializing_if = "Option::is_none")]
        #[doc = "Frame identifier."]
        pub frame_id: Option<super::super::page::FrameId>,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
    pub struct WebSocketClosedEvent {
        pub params: WebSocketClosedEventParams,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
    #[serde(rename_all = "camelCase")]
    pub struct WebSocketClosedEventParams {
        #[doc = "Request identifier."]
        pub request_id: super::RequestId,
        #[doc = "Timestamp."]
        pub timestamp: super::MonotonicTime,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
    pub struct WebSocketCreatedEvent {
        pub params: WebSocketCreatedEventParams,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
    #[serde(rename_all = "camelCase")]
    pub struct WebSocketCreatedEventParams {
        #[doc = "Request identifier."]
        pub request_id: super::RequestId,
        #[serde(default)]
        #[doc = "WebSocket request URL."]
        pub url: String,
        #[builder(default)]
        #[serde(skip_serializing_if = "Option::is_none")]
        #[doc = "Request initiator."]
        pub initiator: Option<super::Initiator>,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
    pub struct WebSocketFrameErrorEvent {
        pub params: WebSocketFrameErrorEventParams,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
    #[serde(rename_all = "camelCase")]
    pub struct WebSocketFrameErrorEventParams {
        #[doc = "Request identifier."]
        pub request_id: super::RequestId,
        #[doc = "Timestamp."]
        pub timestamp: super::MonotonicTime,
        #[serde(default)]
        #[doc = "WebSocket error message."]
        pub error_message: String,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
    pub struct WebSocketFrameReceivedEvent {
        pub params: WebSocketFrameReceivedEventParams,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
    #[serde(rename_all = "camelCase")]
    pub struct WebSocketFrameReceivedEventParams {
        #[doc = "Request identifier."]
        pub request_id: super::RequestId,
        #[doc = "Timestamp."]
        pub timestamp: super::MonotonicTime,
        #[doc = "WebSocket response data."]
        pub response: super::WebSocketFrame,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
    pub struct WebSocketFrameSentEvent {
        pub params: WebSocketFrameSentEventParams,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
    #[serde(rename_all = "camelCase")]
    pub struct WebSocketFrameSentEventParams {
        #[doc = "Request identifier."]
        pub request_id: super::RequestId,
        #[doc = "Timestamp."]
        pub timestamp: super::MonotonicTime,
        #[doc = "WebSocket response data."]
        pub response: super::WebSocketFrame,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
    pub struct WebSocketHandshakeResponseReceivedEvent {
        pub params: WebSocketHandshakeResponseReceivedEventParams,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
    #[serde(rename_all = "camelCase")]
    pub struct WebSocketHandshakeResponseReceivedEventParams {
        #[doc = "Request identifier."]
        pub request_id: super::RequestId,
        #[doc = "Timestamp."]
        pub timestamp: super::MonotonicTime,
        #[doc = "WebSocket response data."]
        pub response: super::WebSocketResponse,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
    pub struct WebSocketWillSendHandshakeRequestEvent {
        pub params: WebSocketWillSendHandshakeRequestEventParams,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
    #[serde(rename_all = "camelCase")]
    pub struct WebSocketWillSendHandshakeRequestEventParams {
        #[doc = "Request identifier."]
        pub request_id: super::RequestId,
        #[doc = "Timestamp."]
        pub timestamp: super::MonotonicTime,
        #[doc = "UTC Timestamp."]
        pub wall_time: super::TimeSinceEpoch,
        #[doc = "WebSocket request data."]
        pub request: super::WebSocketRequest,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
    pub struct WebTransportCreatedEvent {
        pub params: WebTransportCreatedEventParams,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
    #[serde(rename_all = "camelCase")]
    pub struct WebTransportCreatedEventParams {
        #[doc = "WebTransport identifier."]
        pub transport_id: super::RequestId,
        #[serde(default)]
        #[doc = "WebTransport request URL."]
        pub url: String,
        #[doc = "Timestamp."]
        pub timestamp: super::MonotonicTime,
        #[builder(default)]
        #[serde(skip_serializing_if = "Option::is_none")]
        #[doc = "Request initiator."]
        pub initiator: Option<super::Initiator>,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
    pub struct WebTransportConnectionEstablishedEvent {
        pub params: WebTransportConnectionEstablishedEventParams,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
    #[serde(rename_all = "camelCase")]
    pub struct WebTransportConnectionEstablishedEventParams {
        #[doc = "WebTransport identifier."]
        pub transport_id: super::RequestId,
        #[doc = "Timestamp."]
        pub timestamp: super::MonotonicTime,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
    pub struct WebTransportClosedEvent {
        pub params: WebTransportClosedEventParams,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
    #[serde(rename_all = "camelCase")]
    pub struct WebTransportClosedEventParams {
        #[doc = "WebTransport identifier."]
        pub transport_id: super::RequestId,
        #[doc = "Timestamp."]
        pub timestamp: super::MonotonicTime,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
    pub struct DirectTCPSocketCreatedEvent {
        pub params: DirectTCPSocketCreatedEventParams,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
    #[serde(rename_all = "camelCase")]
    pub struct DirectTCPSocketCreatedEventParams {
        pub identifier: super::RequestId,
        #[serde(default)]
        pub remote_addr: String,
        #[serde(default)]
        #[doc = "Unsigned int 16."]
        pub remote_port: JsUInt,
        pub options: super::DirectTcpSocketOptions,
        pub timestamp: super::MonotonicTime,
        #[builder(default)]
        #[serde(skip_serializing_if = "Option::is_none")]
        pub initiator: Option<super::Initiator>,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
    pub struct DirectTCPSocketOpenedEvent {
        pub params: DirectTCPSocketOpenedEventParams,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
    #[serde(rename_all = "camelCase")]
    pub struct DirectTCPSocketOpenedEventParams {
        pub identifier: super::RequestId,
        #[serde(default)]
        pub remote_addr: String,
        #[serde(default)]
        #[doc = "Expected to be unsigned integer."]
        pub remote_port: JsUInt,
        pub timestamp: super::MonotonicTime,
        #[builder(default)]
        #[serde(skip_serializing_if = "Option::is_none")]
        #[serde(default)]
        pub local_addr: Option<String>,
        #[builder(default)]
        #[serde(skip_serializing_if = "Option::is_none")]
        #[serde(default)]
        #[doc = "Expected to be unsigned integer."]
        pub local_port: Option<JsUInt>,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
    pub struct DirectTCPSocketAbortedEvent {
        pub params: DirectTCPSocketAbortedEventParams,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
    #[serde(rename_all = "camelCase")]
    pub struct DirectTCPSocketAbortedEventParams {
        pub identifier: super::RequestId,
        #[serde(default)]
        pub error_message: String,
        pub timestamp: super::MonotonicTime,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
    pub struct DirectTCPSocketClosedEvent {
        pub params: DirectTCPSocketClosedEventParams,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
    #[serde(rename_all = "camelCase")]
    pub struct DirectTCPSocketClosedEventParams {
        pub identifier: super::RequestId,
        pub timestamp: super::MonotonicTime,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
    pub struct DirectTCPSocketChunkSentEvent {
        pub params: DirectTCPSocketChunkSentEventParams,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
    #[serde(rename_all = "camelCase")]
    pub struct DirectTCPSocketChunkSentEventParams {
        pub identifier: super::RequestId,
        #[serde(default)]
        pub data: String,
        pub timestamp: super::MonotonicTime,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
    pub struct DirectTCPSocketChunkReceivedEvent {
        pub params: DirectTCPSocketChunkReceivedEventParams,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
    #[serde(rename_all = "camelCase")]
    pub struct DirectTCPSocketChunkReceivedEventParams {
        pub identifier: super::RequestId,
        #[serde(default)]
        pub data: String,
        pub timestamp: super::MonotonicTime,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
    pub struct DirectUDPSocketJoinedMulticastGroupEvent {
        pub params: DirectUDPSocketJoinedMulticastGroupEventParams,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
    #[serde(rename_all = "camelCase")]
    pub struct DirectUDPSocketJoinedMulticastGroupEventParams {
        pub identifier: super::RequestId,
        #[serde(default)]
        #[serde(rename = "IPAddress")]
        pub ip_address: String,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
    pub struct DirectUDPSocketLeftMulticastGroupEvent {
        pub params: DirectUDPSocketLeftMulticastGroupEventParams,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
    #[serde(rename_all = "camelCase")]
    pub struct DirectUDPSocketLeftMulticastGroupEventParams {
        pub identifier: super::RequestId,
        #[serde(default)]
        #[serde(rename = "IPAddress")]
        pub ip_address: String,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
    pub struct DirectUDPSocketCreatedEvent {
        pub params: DirectUDPSocketCreatedEventParams,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
    #[serde(rename_all = "camelCase")]
    pub struct DirectUDPSocketCreatedEventParams {
        pub identifier: super::RequestId,
        pub options: super::DirectUdpSocketOptions,
        pub timestamp: super::MonotonicTime,
        #[builder(default)]
        #[serde(skip_serializing_if = "Option::is_none")]
        pub initiator: Option<super::Initiator>,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
    pub struct DirectUDPSocketOpenedEvent {
        pub params: DirectUDPSocketOpenedEventParams,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
    #[serde(rename_all = "camelCase")]
    pub struct DirectUDPSocketOpenedEventParams {
        pub identifier: super::RequestId,
        #[serde(default)]
        pub local_addr: String,
        #[serde(default)]
        #[doc = "Expected to be unsigned integer."]
        pub local_port: JsUInt,
        pub timestamp: super::MonotonicTime,
        #[builder(default)]
        #[serde(skip_serializing_if = "Option::is_none")]
        #[serde(default)]
        pub remote_addr: Option<String>,
        #[builder(default)]
        #[serde(skip_serializing_if = "Option::is_none")]
        #[serde(default)]
        #[doc = "Expected to be unsigned integer."]
        pub remote_port: Option<JsUInt>,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
    pub struct DirectUDPSocketAbortedEvent {
        pub params: DirectUDPSocketAbortedEventParams,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
    #[serde(rename_all = "camelCase")]
    pub struct DirectUDPSocketAbortedEventParams {
        pub identifier: super::RequestId,
        #[serde(default)]
        pub error_message: String,
        pub timestamp: super::MonotonicTime,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
    pub struct DirectUDPSocketClosedEvent {
        pub params: DirectUDPSocketClosedEventParams,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
    #[serde(rename_all = "camelCase")]
    pub struct DirectUDPSocketClosedEventParams {
        pub identifier: super::RequestId,
        pub timestamp: super::MonotonicTime,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
    pub struct DirectUDPSocketChunkSentEvent {
        pub params: DirectUDPSocketChunkSentEventParams,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
    #[serde(rename_all = "camelCase")]
    pub struct DirectUDPSocketChunkSentEventParams {
        pub identifier: super::RequestId,
        pub message: super::DirectUdpMessage,
        pub timestamp: super::MonotonicTime,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
    pub struct DirectUDPSocketChunkReceivedEvent {
        pub params: DirectUDPSocketChunkReceivedEventParams,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
    #[serde(rename_all = "camelCase")]
    pub struct DirectUDPSocketChunkReceivedEventParams {
        pub identifier: super::RequestId,
        pub message: super::DirectUdpMessage,
        pub timestamp: super::MonotonicTime,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
    pub struct RequestWillBeSentExtraInfoEvent {
        pub params: RequestWillBeSentExtraInfoEventParams,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
    #[serde(rename_all = "camelCase")]
    pub struct RequestWillBeSentExtraInfoEventParams {
        #[doc = "Request identifier. Used to match this information to an existing requestWillBeSent event."]
        pub request_id: super::RequestId,
        #[doc = "A list of cookies potentially associated to the requested URL. This includes both cookies sent with\n the request and the ones not sent; the latter are distinguished by having blockedReasons field set."]
        pub associated_cookies: Vec<super::AssociatedCookie>,
        #[doc = "Raw request headers as they will be sent over the wire."]
        pub headers: super::Headers,
        #[doc = "Connection timing information for the request."]
        pub connect_timing: super::ConnectTiming,
        #[builder(default)]
        #[serde(skip_serializing_if = "Option::is_none")]
        #[doc = "How the request site's device bound sessions were used during this request."]
        pub device_bound_session_usages: Option<Vec<super::DeviceBoundSessionWithUsage>>,
        #[builder(default)]
        #[serde(skip_serializing_if = "Option::is_none")]
        #[doc = "The client security state set for the request."]
        pub client_security_state: Option<super::ClientSecurityState>,
        #[builder(default)]
        #[serde(skip_serializing_if = "Option::is_none")]
        #[serde(default)]
        #[doc = "Whether the site has partitioned cookies stored in a partition different than the current one."]
        pub site_has_cookie_in_other_partition: Option<bool>,
        #[builder(default)]
        #[serde(skip_serializing_if = "Option::is_none")]
        #[serde(default)]
        #[doc = "The network conditions id if this request was affected by network conditions configured via\n emulateNetworkConditionsByRule."]
        pub applied_network_conditions_id: Option<String>,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
    pub struct ResponseReceivedExtraInfoEvent {
        pub params: ResponseReceivedExtraInfoEventParams,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
    #[serde(rename_all = "camelCase")]
    pub struct ResponseReceivedExtraInfoEventParams {
        #[doc = "Request identifier. Used to match this information to another responseReceived event."]
        pub request_id: super::RequestId,
        #[doc = "A list of cookies which were not stored from the response along with the corresponding\n reasons for blocking. The cookies here may not be valid due to syntax errors, which\n are represented by the invalid cookie line string instead of a proper cookie."]
        pub blocked_cookies: Vec<super::BlockedSetCookieWithReason>,
        #[doc = "Raw response headers as they were received over the wire.\n Duplicate headers in the response are represented as a single key with their values\n concatentated using `\\n` as the separator.\n See also `headersText` that contains verbatim text for HTTP/1.*."]
        pub headers: super::Headers,
        #[doc = "The IP address space of the resource. The address space can only be determined once the transport\n established the connection, so we can't send it in `requestWillBeSentExtraInfo`."]
        #[serde(rename = "resourceIPAddressSpace")]
        pub resource_ip_address_space: super::IpAddressSpace,
        #[serde(default)]
        #[doc = "The status code of the response. This is useful in cases the request failed and no responseReceived\n event is triggered, which is the case for, e.g., CORS errors. This is also the correct status code\n for cached requests, where the status in responseReceived is a 200 and this will be 304."]
        pub status_code: JsUInt,
        #[builder(default)]
        #[serde(skip_serializing_if = "Option::is_none")]
        #[serde(default)]
        #[doc = "Raw response header text as it was received over the wire. The raw text may not always be\n available, such as in the case of HTTP/2 or QUIC."]
        pub headers_text: Option<String>,
        #[builder(default)]
        #[serde(skip_serializing_if = "Option::is_none")]
        #[doc = "The cookie partition key that will be used to store partitioned cookies set in this response.\n Only sent when partitioned cookies are enabled."]
        pub cookie_partition_key: Option<super::CookiePartitionKey>,
        #[builder(default)]
        #[serde(skip_serializing_if = "Option::is_none")]
        #[serde(default)]
        #[doc = "True if partitioned cookies are enabled, but the partition key is not serializable to string."]
        pub cookie_partition_key_opaque: Option<bool>,
        #[builder(default)]
        #[serde(skip_serializing_if = "Option::is_none")]
        #[doc = "A list of cookies which should have been blocked by 3PCD but are exempted and stored from\n the response with the corresponding reason."]
        pub exempted_cookies: Option<Vec<super::ExemptedSetCookieWithReason>>,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
    pub struct ResponseReceivedEarlyHintsEvent {
        pub params: ResponseReceivedEarlyHintsEventParams,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
    #[serde(rename_all = "camelCase")]
    pub struct ResponseReceivedEarlyHintsEventParams {
        #[doc = "Request identifier. Used to match this information to another responseReceived event."]
        pub request_id: super::RequestId,
        #[doc = "Raw response headers as they were received over the wire.\n Duplicate headers in the response are represented as a single key with their values\n concatentated using `\\n` as the separator.\n See also `headersText` that contains verbatim text for HTTP/1.*."]
        pub headers: super::Headers,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
    pub struct TrustTokenOperationDoneEvent {
        pub params: TrustTokenOperationDoneEventParams,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
    #[serde(rename_all = "camelCase")]
    pub struct TrustTokenOperationDoneEventParams {
        #[doc = "Detailed success or error status of the operation.\n 'AlreadyExists' also signifies a successful operation, as the result\n of the operation already exists und thus, the operation was abort\n preemptively (e.g. a cache hit)."]
        pub status: super::TrustTokenOperationDoneStatusOption,
        pub r#type: super::TrustTokenOperationType,
        pub request_id: super::RequestId,
        #[builder(default)]
        #[serde(skip_serializing_if = "Option::is_none")]
        #[serde(default)]
        #[doc = "Top level origin. The context in which the operation was attempted."]
        pub top_level_origin: Option<String>,
        #[builder(default)]
        #[serde(skip_serializing_if = "Option::is_none")]
        #[serde(default)]
        #[doc = "Origin of the issuer in case of a \"Issuance\" or \"Redemption\" operation."]
        pub issuer_origin: Option<String>,
        #[builder(default)]
        #[serde(skip_serializing_if = "Option::is_none")]
        #[serde(default)]
        #[doc = "The number of obtained Trust Tokens on a successful \"Issuance\" operation."]
        pub issued_token_count: Option<JsUInt>,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
    pub struct PolicyUpdatedEvent(pub Option<Json>);
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
    pub struct ReportingApiReportAddedEvent {
        pub params: ReportingApiReportAddedEventParams,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
    #[serde(rename_all = "camelCase")]
    pub struct ReportingApiReportAddedEventParams {
        pub report: super::ReportingApiReport,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
    pub struct ReportingApiReportUpdatedEvent {
        pub params: ReportingApiReportUpdatedEventParams,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
    #[serde(rename_all = "camelCase")]
    pub struct ReportingApiReportUpdatedEventParams {
        pub report: super::ReportingApiReport,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
    pub struct ReportingApiEndpointsChangedForOriginEvent {
        pub params: ReportingApiEndpointsChangedForOriginEventParams,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
    #[serde(rename_all = "camelCase")]
    pub struct ReportingApiEndpointsChangedForOriginEventParams {
        #[serde(default)]
        #[doc = "Origin of the document(s) which configured the endpoints."]
        pub origin: String,
        pub endpoints: Vec<super::ReportingApiEndpoint>,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
    pub struct DeviceBoundSessionsAddedEvent {
        pub params: DeviceBoundSessionsAddedEventParams,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
    #[serde(rename_all = "camelCase")]
    pub struct DeviceBoundSessionsAddedEventParams {
        #[doc = "The device bound sessions."]
        pub sessions: Vec<super::DeviceBoundSession>,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
    pub struct DeviceBoundSessionEventOccurredEvent {
        pub params: DeviceBoundSessionEventOccurredEventParams,
    }
    #[allow(deprecated)]
    #[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Builder)]
    #[serde(rename_all = "camelCase")]
    pub struct DeviceBoundSessionEventOccurredEventParams {
        #[doc = "A unique identifier for this session event."]
        pub event_id: super::DeviceBoundSessionEventId,
        #[serde(default)]
        #[doc = "The site this session event is associated with."]
        pub site: String,
        #[serde(default)]
        #[doc = "Whether this event was considered successful."]
        pub succeeded: bool,
        #[builder(default)]
        #[serde(skip_serializing_if = "Option::is_none")]
        #[serde(default)]
        #[doc = "The session ID this event is associated with. May not be populated for\n failed events."]
        pub session_id: Option<String>,
        #[builder(default)]
        #[serde(skip_serializing_if = "Option::is_none")]
        #[doc = "The below are the different session event type details. Exactly one is populated."]
        pub creation_event_details: Option<super::CreationEventDetails>,
        #[builder(default)]
        #[serde(skip_serializing_if = "Option::is_none")]
        pub refresh_event_details: Option<super::RefreshEventDetails>,
        #[builder(default)]
        #[serde(skip_serializing_if = "Option::is_none")]
        pub termination_event_details: Option<super::TerminationEventDetails>,
        #[builder(default)]
        #[serde(skip_serializing_if = "Option::is_none")]
        pub challenge_event_details: Option<super::ChallengeEventDetails>,
    }
}