aboutsummaryrefslogtreecommitdiff
path: root/packages/bun-inspector-protocol/protocol/jsc/index.d.ts
blob: 88e7f0a90136f7a9e0345e152b880152e80ff73d (plain) (blame)
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
// GENERATED - DO NOT EDIT
export namespace JSC {
  export namespace Console {
    /**
     * Channels for different types of log messages.
     */
    export type ChannelSource =
      | "xml"
      | "javascript"
      | "network"
      | "console-api"
      | "storage"
      | "appcache"
      | "rendering"
      | "css"
      | "security"
      | "content-blocker"
      | "media"
      | "mediasource"
      | "webrtc"
      | "itp-debug"
      | "private-click-measurement"
      | "payment-request"
      | "other";
    /**
     * Level of logging.
     */
    export type ChannelLevel = "off" | "basic" | "verbose";
    /**
     * The reason the console is being cleared.
     */
    export type ClearReason = "console-api" | "main-frame-navigation";
    /**
     * Logging channel.
     */
    export type Channel = {
      source: ChannelSource;
      level: ChannelLevel;
    };
    /**
     * Console message.
     */
    export type ConsoleMessage = {
      source: ChannelSource;
      /**
       * Message severity.
       */
      level: "log" | "info" | "warning" | "error" | "debug";
      /**
       * Message text.
       */
      text: string;
      /**
       * Console message type.
       */
      type?:
        | "log"
        | "dir"
        | "dirxml"
        | "table"
        | "trace"
        | "clear"
        | "startGroup"
        | "startGroupCollapsed"
        | "endGroup"
        | "assert"
        | "timing"
        | "profile"
        | "profileEnd"
        | "image"
        | undefined;
      /**
       * URL of the message origin.
       */
      url?: string | undefined;
      /**
       * Line number in the resource that generated this message.
       */
      line?: number | undefined;
      /**
       * Column number on the line in the resource that generated this message.
       */
      column?: number | undefined;
      /**
       * Repeat count for repeated messages.
       */
      repeatCount?: number | undefined;
      /**
       * Message parameters in case of the formatted message.
       */
      parameters?: Runtime.RemoteObject[] | undefined;
      /**
       * JavaScript stack trace for assertions and error messages.
       */
      stackTrace?: StackTrace | undefined;
      /**
       * Identifier of the network request associated with this message.
       */
      networkRequestId?: Network.RequestId | undefined;
      /**
       * Time when this message was added. Currently only used when an expensive operation happens to make sure that the frontend can account for it.
       */
      timestamp?: number | undefined;
    };
    /**
     * Stack entry for console errors and assertions.
     */
    export type CallFrame = {
      /**
       * JavaScript function name.
       */
      functionName: string;
      /**
       * JavaScript script name or url.
       */
      url: string;
      /**
       * Script identifier.
       */
      scriptId: Debugger.ScriptId;
      /**
       * JavaScript script line number.
       */
      lineNumber: number;
      /**
       * JavaScript script column number.
       */
      columnNumber: number;
    };
    /**
     * Call frames for async function calls, console assertions, and error messages.
     */
    export type StackTrace = {
      callFrames: CallFrame[];
      /**
       * Whether the first item in <code>callFrames</code> is the native function that scheduled the asynchronous operation (e.g. setTimeout).
       */
      topCallFrameIsBoundary?: boolean | undefined;
      /**
       * Whether one or more frames have been truncated from the bottom of the stack.
       */
      truncated?: boolean | undefined;
      /**
       * Parent StackTrace.
       */
      parentStackTrace?: StackTrace | undefined;
    };
    /**
     * Issued when new console message is added.
     * @event `Console.messageAdded`
     */
    export type MessageAddedEvent = {
      /**
       * Console message that has been added.
       */
      message: ConsoleMessage;
    };
    /**
     * Issued when subsequent message(s) are equal to the previous one(s).
     * @event `Console.messageRepeatCountUpdated`
     */
    export type MessageRepeatCountUpdatedEvent = {
      /**
       * New repeat count value.
       */
      count: number;
      /**
       * Timestamp of the latest message.
       */
      timestamp?: number | undefined;
    };
    /**
     * Issued when console is cleared. This happens either upon <code>clearMessages</code> command or after page navigation.
     * @event `Console.messagesCleared`
     */
    export type MessagesClearedEvent = {
      /**
       * The reason the console is being cleared.
       */
      reason: ClearReason;
    };
    /**
     * Issued from console.takeHeapSnapshot.
     * @event `Console.heapSnapshot`
     */
    export type HeapSnapshotEvent = {
      timestamp: number;
      /**
       * Snapshot at the end of tracking.
       */
      snapshotData: Heap.HeapSnapshotData;
      /**
       * Optional title provided to console.takeHeapSnapshot.
       */
      title?: string | undefined;
    };
    /**
     * Enables console domain, sends the messages collected so far to the client by means of the <code>messageAdded</code> notification.
     * @request `Console.enable`
     */
    export type EnableRequest = {};
    /**
     * Enables console domain, sends the messages collected so far to the client by means of the <code>messageAdded</code> notification.
     * @response `Console.enable`
     */
    export type EnableResponse = {};
    /**
     * Disables console domain, prevents further console messages from being reported to the client.
     * @request `Console.disable`
     */
    export type DisableRequest = {};
    /**
     * Disables console domain, prevents further console messages from being reported to the client.
     * @response `Console.disable`
     */
    export type DisableResponse = {};
    /**
     * Clears console messages collected in the browser.
     * @request `Console.clearMessages`
     */
    export type ClearMessagesRequest = {};
    /**
     * Clears console messages collected in the browser.
     * @response `Console.clearMessages`
     */
    export type ClearMessagesResponse = {};
    /**
     * List of the different message sources that are non-default logging channels.
     * @request `Console.getLoggingChannels`
     */
    export type GetLoggingChannelsRequest = {};
    /**
     * List of the different message sources that are non-default logging channels.
     * @response `Console.getLoggingChannels`
     */
    export type GetLoggingChannelsResponse = {
      /**
       * Logging channels.
       */
      channels: Channel[];
    };
    /**
     * Modify the level of a channel.
     * @request `Console.setLoggingChannelLevel`
     */
    export type SetLoggingChannelLevelRequest = {
      /**
       * Logging channel to modify.
       */
      source: ChannelSource;
      /**
       * New level.
       */
      level: ChannelLevel;
    };
    /**
     * Modify the level of a channel.
     * @response `Console.setLoggingChannelLevel`
     */
    export type SetLoggingChannelLevelResponse = {};
  }
  export namespace CPUProfiler {
    /**
     * CPU usage for an individual thread.
     */
    export type ThreadInfo = {
      /**
       * Some thread identification information.
       */
      name: string;
      /**
       * CPU usage for this thread. This should not exceed 100% for an individual thread.
       */
      usage: number;
      /**
       * Type of thread. There should be a single main thread.
       */
      type?: "main" | "webkit" | undefined;
      /**
       * A thread may be associated with a target, such as a Worker, in the process.
       */
      targetId?: string | undefined;
    };
    export type Event = {
      timestamp: number;
      /**
       * Percent of total cpu usage. If there are multiple cores the usage may be greater than 100%.
       */
      usage: number;
      /**
       * Per-thread CPU usage information. Does not include the main thread.
       */
      threads?: ThreadInfo[] | undefined;
    };
    /**
     * Tracking started.
     * @event `CPUProfiler.trackingStart`
     */
    export type TrackingStartEvent = {
      timestamp: number;
    };
    /**
     * Periodic tracking updates with event data.
     * @event `CPUProfiler.trackingUpdate`
     */
    export type TrackingUpdateEvent = {
      event: Event;
    };
    /**
     * Tracking stopped.
     * @event `CPUProfiler.trackingComplete`
     */
    export type TrackingCompleteEvent = {
      timestamp: number;
    };
    /**
     * Start tracking cpu usage.
     * @request `CPUProfiler.startTracking`
     */
    export type StartTrackingRequest = {};
    /**
     * Start tracking cpu usage.
     * @response `CPUProfiler.startTracking`
     */
    export type StartTrackingResponse = {};
    /**
     * Stop tracking cpu usage. This will produce a `trackingComplete` event.
     * @request `CPUProfiler.stopTracking`
     */
    export type StopTrackingRequest = {};
    /**
     * Stop tracking cpu usage. This will produce a `trackingComplete` event.
     * @response `CPUProfiler.stopTracking`
     */
    export type StopTrackingResponse = {};
  }
  export namespace Debugger {
    /**
     * Breakpoint identifier.
     */
    export type BreakpointId = string;
    /**
     * Breakpoint action identifier.
     */
    export type BreakpointActionIdentifier = number;
    /**
     * Unique script identifier.
     */
    export type ScriptId = string;
    /**
     * Call frame identifier.
     */
    export type CallFrameId = string;
    /**
     * Location in the source code.
     */
    export type Location = {
      /**
       * Script identifier as reported in the <code>Debugger.scriptParsed</code>.
       */
      scriptId: ScriptId;
      /**
       * Line number in the script (0-based).
       */
      lineNumber: number;
      /**
       * Column number in the script (0-based).
       */
      columnNumber?: number | undefined;
    };
    /**
     * Action to perform when a breakpoint is triggered.
     */
    export type BreakpointAction = {
      /**
       * Different kinds of breakpoint actions.
       */
      type: "log" | "evaluate" | "sound" | "probe";
      /**
       * Data associated with this breakpoint type (e.g. for type "eval" this is the JavaScript string to evaluate).
       */
      data?: string | undefined;
      /**
       * A frontend-assigned identifier for this breakpoint action.
       */
      id?: BreakpointActionIdentifier | undefined;
      /**
       * Indicates whether this action should be executed with a user gesture or not. Defaults to <code>false<code>.
       */
      emulateUserGesture?: boolean | undefined;
    };
    /**
     * Extra options that modify breakpoint behavior.
     */
    export type BreakpointOptions = {
      /**
       * Expression to use as a breakpoint condition. When specified, debugger will only stop on the breakpoint if this expression evaluates to true.
       */
      condition?: string | undefined;
      /**
       * Actions to perform automatically when the breakpoint is triggered.
       */
      actions?: BreakpointAction[] | undefined;
      /**
       * Automatically continue after hitting this breakpoint and running actions.
       */
      autoContinue?: boolean | undefined;
      /**
       * Number of times to ignore this breakpoint, before stopping on the breakpoint and running actions.
       */
      ignoreCount?: number | undefined;
    };
    /**
     * Information about the function.
     */
    export type FunctionDetails = {
      /**
       * Location of the function.
       */
      location: Location;
      /**
       * Name of the function. Not present for anonymous functions.
       */
      name?: string | undefined;
      /**
       * Display name of the function(specified in 'displayName' property on the function object).
       */
      displayName?: string | undefined;
      /**
       * Scope chain for this closure.
       */
      scopeChain?: Scope[] | undefined;
    };
    /**
     * JavaScript call frame. Array of call frames form the call stack.
     */
    export type CallFrame = {
      /**
       * Call frame identifier. This identifier is only valid while the virtual machine is paused.
       */
      callFrameId: CallFrameId;
      /**
       * Name of the JavaScript function called on this call frame.
       */
      functionName: string;
      /**
       * Location in the source code.
       */
      location: Location;
      /**
       * Scope chain for this call frame.
       */
      scopeChain: Scope[];
      /**
       * <code>this</code> object for this call frame.
       */
      this: Runtime.RemoteObject;
      /**
       * Is the current frame tail deleted from a tail call.
       */
      isTailDeleted: boolean;
    };
    /**
     * Scope description.
     */
    export type Scope = {
      /**
       * Object representing the scope. For <code>global</code> and <code>with</code> scopes it represents the actual object; for the rest of the scopes, it is artificial transient object enumerating scope variables as its properties.
       */
      object: Runtime.RemoteObject;
      /**
       * Scope type.
       */
      type: "global" | "with" | "closure" | "catch" | "functionName" | "globalLexicalEnvironment" | "nestedLexical";
      /**
       * Name associated with the scope.
       */
      name?: string | undefined;
      /**
       * Location if available of the scope definition.
       */
      location?: Location | undefined;
      /**
       * Whether the scope has any variables.
       */
      empty?: boolean | undefined;
    };
    /**
     * A sample collected by evaluating a probe breakpoint action.
     */
    export type ProbeSample = {
      /**
       * Identifier of the probe breakpoint action that created the sample.
       */
      probeId: BreakpointActionIdentifier;
      /**
       * Unique identifier for this sample.
       */
      sampleId: number;
      /**
       * A batch identifier which is the same for all samples taken at the same breakpoint hit.
       */
      batchId: number;
      /**
       * Timestamp of when the sample was taken.
       */
      timestamp: number;
      /**
       * Contents of the sample.
       */
      payload: Runtime.RemoteObject;
    };
    /**
     * The pause reason auxiliary data when paused because of an assertion.
     */
    export type AssertPauseReason = {
      /**
       * The console.assert message string if provided.
       */
      message?: string | undefined;
    };
    /**
     * The pause reason auxiliary data when paused because of hitting a breakpoint.
     */
    export type BreakpointPauseReason = {
      /**
       * The identifier of the breakpoint causing the pause.
       */
      breakpointId: string;
    };
    /**
     * The pause reason auxiliary data when paused because of a Content Security Policy directive.
     */
    export type CSPViolationPauseReason = {
      /**
       * The CSP directive that blocked script execution.
       */
      directive: string;
    };
    /**
     * Called when global has been cleared and debugger client should reset its state. Happens upon navigation or reload.
     * @event `Debugger.globalObjectCleared`
     */
    export type GlobalObjectClearedEvent = {};
    /**
     * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
     * @event `Debugger.scriptParsed`
     */
    export type ScriptParsedEvent = {
      /**
       * Identifier of the script parsed.
       */
      scriptId: ScriptId;
      /**
       * URL of the script parsed (if any).
       */
      url: string;
      /**
       * Line offset of the script within the resource with given URL (for script tags).
       */
      startLine: number;
      /**
       * Column offset of the script within the resource with given URL.
       */
      startColumn: number;
      /**
       * Last line of the script.
       */
      endLine: number;
      /**
       * Length of the last line of the script.
       */
      endColumn: number;
      /**
       * Determines whether this script is a user extension script.
       */
      isContentScript?: boolean | undefined;
      /**
       * sourceURL name of the script (if any).
       */
      sourceURL?: string | undefined;
      /**
       * URL of source map associated with script (if any).
       */
      sourceMapURL?: string | undefined;
      /**
       * True if this script was parsed as a module.
       */
      module?: boolean | undefined;
    };
    /**
     * Fired when virtual machine fails to parse the script.
     * @event `Debugger.scriptFailedToParse`
     */
    export type ScriptFailedToParseEvent = {
      /**
       * URL of the script that failed to parse.
       */
      url: string;
      /**
       * Source text of the script that failed to parse.
       */
      scriptSource: string;
      /**
       * Line offset of the script within the resource.
       */
      startLine: number;
      /**
       * Line with error.
       */
      errorLine: number;
      /**
       * Parse error message.
       */
      errorMessage: string;
    };
    /**
     * Fired when breakpoint is resolved to an actual script and location.
     * @event `Debugger.breakpointResolved`
     */
    export type BreakpointResolvedEvent = {
      /**
       * Breakpoint unique identifier.
       */
      breakpointId: BreakpointId;
      /**
       * Actual breakpoint location.
       */
      location: Location;
    };
    /**
     * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
     * @event `Debugger.paused`
     */
    export type PausedEvent = {
      /**
       * Call stack the virtual machine stopped on.
       */
      callFrames: CallFrame[];
      /**
       * Pause reason.
       */
      reason:
        | "URL"
        | "DOM"
        | "AnimationFrame"
        | "Interval"
        | "Listener"
        | "Timeout"
        | "exception"
        | "assert"
        | "CSPViolation"
        | "DebuggerStatement"
        | "Breakpoint"
        | "PauseOnNextStatement"
        | "Microtask"
        | "FunctionCall"
        | "BlackboxedScript"
        | "other";
      /**
       * Object containing break-specific auxiliary properties.
       */
      data?: Record<string, unknown> | undefined;
      /**
       * Linked list of asynchronous StackTraces.
       */
      asyncStackTrace?: Console.StackTrace | undefined;
    };
    /**
     * Fired when the virtual machine resumed execution.
     * @event `Debugger.resumed`
     */
    export type ResumedEvent = {};
    /**
     * Fires when a new probe sample is collected.
     * @event `Debugger.didSampleProbe`
     */
    export type DidSampleProbeEvent = {
      /**
       * A collected probe sample.
       */
      sample: ProbeSample;
    };
    /**
     * Fired when a "sound" breakpoint action is triggered on a breakpoint.
     * @event `Debugger.playBreakpointActionSound`
     */
    export type PlayBreakpointActionSoundEvent = {
      /**
       * Breakpoint action identifier.
       */
      breakpointActionId: BreakpointActionIdentifier;
    };
    /**
     * Enables debugger for the given page. Clients should not assume that the debugging has been enabled until the result for this command is received.
     * @request `Debugger.enable`
     */
    export type EnableRequest = {};
    /**
     * Enables debugger for the given page. Clients should not assume that the debugging has been enabled until the result for this command is received.
     * @response `Debugger.enable`
     */
    export type EnableResponse = {};
    /**
     * Disables debugger for given page.
     * @request `Debugger.disable`
     */
    export type DisableRequest = {};
    /**
     * Disables debugger for given page.
     * @response `Debugger.disable`
     */
    export type DisableResponse = {};
    /**
     * Set the async stack trace depth for the page. A value of zero disables recording of async stack traces.
     * @request `Debugger.setAsyncStackTraceDepth`
     */
    export type SetAsyncStackTraceDepthRequest = {
      /**
       * Async stack trace depth.
       */
      depth: number;
    };
    /**
     * Set the async stack trace depth for the page. A value of zero disables recording of async stack traces.
     * @response `Debugger.setAsyncStackTraceDepth`
     */
    export type SetAsyncStackTraceDepthResponse = {};
    /**
     * Activates / deactivates all breakpoints on the page.
     * @request `Debugger.setBreakpointsActive`
     */
    export type SetBreakpointsActiveRequest = {
      /**
       * New value for breakpoints active state.
       */
      active: boolean;
    };
    /**
     * Activates / deactivates all breakpoints on the page.
     * @response `Debugger.setBreakpointsActive`
     */
    export type SetBreakpointsActiveResponse = {};
    /**
     * Sets JavaScript breakpoint at given location specified either by URL or URL regex. Once this command is issued, all existing parsed scripts will have breakpoints resolved and returned in <code>locations</code> property. Further matching script parsing will result in subsequent <code>breakpointResolved</code> events issued. This logical breakpoint will survive page reloads.
     * @request `Debugger.setBreakpointByUrl`
     */
    export type SetBreakpointByUrlRequest = {
      /**
       * Line number to set breakpoint at.
       */
      lineNumber: number;
      /**
       * URL of the resources to set breakpoint on.
       */
      url?: string | undefined;
      /**
       * Regex pattern for the URLs of the resources to set breakpoints on. Either <code>url</code> or <code>urlRegex</code> must be specified.
       */
      urlRegex?: string | undefined;
      /**
       * Offset in the line to set breakpoint at.
       */
      columnNumber?: number | undefined;
      /**
       * Options to apply to this breakpoint to modify its behavior.
       */
      options?: BreakpointOptions | undefined;
    };
    /**
     * Sets JavaScript breakpoint at given location specified either by URL or URL regex. Once this command is issued, all existing parsed scripts will have breakpoints resolved and returned in <code>locations</code> property. Further matching script parsing will result in subsequent <code>breakpointResolved</code> events issued. This logical breakpoint will survive page reloads.
     * @response `Debugger.setBreakpointByUrl`
     */
    export type SetBreakpointByUrlResponse = {
      /**
       * Id of the created breakpoint for further reference.
       */
      breakpointId: BreakpointId;
      /**
       * List of the locations this breakpoint resolved into upon addition.
       */
      locations: Location[];
    };
    /**
     * Sets JavaScript breakpoint at a given location.
     * @request `Debugger.setBreakpoint`
     */
    export type SetBreakpointRequest = {
      /**
       * Location to set breakpoint in.
       */
      location: Location;
      /**
       * Options to apply to this breakpoint to modify its behavior.
       */
      options?: BreakpointOptions | undefined;
    };
    /**
     * Sets JavaScript breakpoint at a given location.
     * @response `Debugger.setBreakpoint`
     */
    export type SetBreakpointResponse = {
      /**
       * Id of the created breakpoint for further reference.
       */
      breakpointId: BreakpointId;
      /**
       * Location this breakpoint resolved into.
       */
      actualLocation: Location;
    };
    /**
     * Removes JavaScript breakpoint.
     * @request `Debugger.removeBreakpoint`
     */
    export type RemoveBreakpointRequest = {
      breakpointId: BreakpointId;
    };
    /**
     * Removes JavaScript breakpoint.
     * @response `Debugger.removeBreakpoint`
     */
    export type RemoveBreakpointResponse = {};
    /**
     * Adds a JavaScript breakpoint that pauses execution whenever a function with the given name is about to be called.
     * @request `Debugger.addSymbolicBreakpoint`
     */
    export type AddSymbolicBreakpointRequest = {
      /**
       * The name of the function to pause in when called.
       */
      symbol: string;
      /**
       * If true, symbol is case sensitive. Defaults to true.
       */
      caseSensitive?: boolean | undefined;
      /**
       * If true, treats symbol as a regex. Defaults to false.
       */
      isRegex?: boolean | undefined;
      /**
       * Options to apply to this breakpoint to modify its behavior.
       */
      options?: BreakpointOptions | undefined;
    };
    /**
     * Adds a JavaScript breakpoint that pauses execution whenever a function with the given name is about to be called.
     * @response `Debugger.addSymbolicBreakpoint`
     */
    export type AddSymbolicBreakpointResponse = {};
    /**
     * Removes a previously added symbolic breakpoint.
     * @request `Debugger.removeSymbolicBreakpoint`
     */
    export type RemoveSymbolicBreakpointRequest = {
      /**
       * The name of the function to pause in when called.
       */
      symbol: string;
      /**
       * If true, symbol is case sensitive. Defaults to true.
       */
      caseSensitive?: boolean | undefined;
      /**
       * If true, treats symbol as a regex. Defaults to false.
       */
      isRegex?: boolean | undefined;
    };
    /**
     * Removes a previously added symbolic breakpoint.
     * @response `Debugger.removeSymbolicBreakpoint`
     */
    export type RemoveSymbolicBreakpointResponse = {};
    /**
     * Continues execution until the current evaluation completes. This will trigger either a Debugger.paused or Debugger.resumed event.
     * @request `Debugger.continueUntilNextRunLoop`
     */
    export type ContinueUntilNextRunLoopRequest = {};
    /**
     * Continues execution until the current evaluation completes. This will trigger either a Debugger.paused or Debugger.resumed event.
     * @response `Debugger.continueUntilNextRunLoop`
     */
    export type ContinueUntilNextRunLoopResponse = {};
    /**
     * Continues execution until specific location is reached. This will trigger either a Debugger.paused or Debugger.resumed event.
     * @request `Debugger.continueToLocation`
     */
    export type ContinueToLocationRequest = {
      /**
       * Location to continue to.
       */
      location: Location;
    };
    /**
     * Continues execution until specific location is reached. This will trigger either a Debugger.paused or Debugger.resumed event.
     * @response `Debugger.continueToLocation`
     */
    export type ContinueToLocationResponse = {};
    /**
     * Steps over the expression. This will trigger either a Debugger.paused or Debugger.resumed event.
     * @request `Debugger.stepNext`
     */
    export type StepNextRequest = {};
    /**
     * Steps over the expression. This will trigger either a Debugger.paused or Debugger.resumed event.
     * @response `Debugger.stepNext`
     */
    export type StepNextResponse = {};
    /**
     * Steps over the statement. This will trigger either a Debugger.paused or Debugger.resumed event.
     * @request `Debugger.stepOver`
     */
    export type StepOverRequest = {};
    /**
     * Steps over the statement. This will trigger either a Debugger.paused or Debugger.resumed event.
     * @response `Debugger.stepOver`
     */
    export type StepOverResponse = {};
    /**
     * Steps into the function call. This will trigger either a Debugger.paused or Debugger.resumed event.
     * @request `Debugger.stepInto`
     */
    export type StepIntoRequest = {};
    /**
     * Steps into the function call. This will trigger either a Debugger.paused or Debugger.resumed event.
     * @response `Debugger.stepInto`
     */
    export type StepIntoResponse = {};
    /**
     * Steps out of the function call. This will trigger either a Debugger.paused or Debugger.resumed event.
     * @request `Debugger.stepOut`
     */
    export type StepOutRequest = {};
    /**
     * Steps out of the function call. This will trigger either a Debugger.paused or Debugger.resumed event.
     * @response `Debugger.stepOut`
     */
    export type StepOutResponse = {};
    /**
     * Stops on the next JavaScript statement.
     * @request `Debugger.pause`
     */
    export type PauseRequest = {};
    /**
     * Stops on the next JavaScript statement.
     * @response `Debugger.pause`
     */
    export type PauseResponse = {};
    /**
     * Resumes JavaScript execution. This will trigger a Debugger.resumed event.
     * @request `Debugger.resume`
     */
    export type ResumeRequest = {};
    /**
     * Resumes JavaScript execution. This will trigger a Debugger.resumed event.
     * @response `Debugger.resume`
     */
    export type ResumeResponse = {};
    /**
     * Searches for given string in script content.
     * @request `Debugger.searchInContent`
     */
    export type SearchInContentRequest = {
      /**
       * Id of the script to search in.
       */
      scriptId: ScriptId;
      /**
       * String to search for.
       */
      query: string;
      /**
       * If true, search is case sensitive.
       */
      caseSensitive?: boolean | undefined;
      /**
       * If true, treats string parameter as regex.
       */
      isRegex?: boolean | undefined;
    };
    /**
     * Searches for given string in script content.
     * @response `Debugger.searchInContent`
     */
    export type SearchInContentResponse = {
      /**
       * List of search matches.
       */
      result: GenericTypes.SearchMatch[];
    };
    /**
     * Returns source for the script with given id.
     * @request `Debugger.getScriptSource`
     */
    export type GetScriptSourceRequest = {
      /**
       * Id of the script to get source for.
       */
      scriptId: ScriptId;
    };
    /**
     * Returns source for the script with given id.
     * @response `Debugger.getScriptSource`
     */
    export type GetScriptSourceResponse = {
      /**
       * Script source.
       */
      scriptSource: string;
    };
    /**
     * Returns detailed information on given function.
     * @request `Debugger.getFunctionDetails`
     */
    export type GetFunctionDetailsRequest = {
      /**
       * Id of the function to get location for.
       */
      functionId: Runtime.RemoteObjectId;
    };
    /**
     * Returns detailed information on given function.
     * @response `Debugger.getFunctionDetails`
     */
    export type GetFunctionDetailsResponse = {
      /**
       * Information about the function.
       */
      details: FunctionDetails;
    };
    /**
     * Returns a list of valid breakpoint locations within the given location range.
     * @request `Debugger.getBreakpointLocations`
     */
    export type GetBreakpointLocationsRequest = {
      /**
       * Starting location to look for breakpoint locations after (inclusive). Must have same scriptId as end.
       */
      start: Location;
      /**
       * Ending location to look for breakpoint locations before (exclusive). Must have same scriptId as start.
       */
      end: Location;
    };
    /**
     * Returns a list of valid breakpoint locations within the given location range.
     * @response `Debugger.getBreakpointLocations`
     */
    export type GetBreakpointLocationsResponse = {
      /**
       * List of resolved breakpoint locations.
       */
      locations: Location[];
    };
    /**
     * Control whether the debugger pauses execution before `debugger` statements.
     * @request `Debugger.setPauseOnDebuggerStatements`
     */
    export type SetPauseOnDebuggerStatementsRequest = {
      enabled: boolean;
      /**
       * Options to apply to this breakpoint to modify its behavior.
       */
      options?: BreakpointOptions | undefined;
    };
    /**
     * Control whether the debugger pauses execution before `debugger` statements.
     * @response `Debugger.setPauseOnDebuggerStatements`
     */
    export type SetPauseOnDebuggerStatementsResponse = {};
    /**
     * Defines pause on exceptions state. Can be set to stop on all exceptions, uncaught exceptions or no exceptions. Initial pause on exceptions state is <code>none</code>.
     * @request `Debugger.setPauseOnExceptions`
     */
    export type SetPauseOnExceptionsRequest = {
      /**
       * Pause on exceptions mode.
       */
      state: "none" | "uncaught" | "all";
      /**
       * Options to apply to this breakpoint to modify its behavior.
       */
      options?: BreakpointOptions | undefined;
    };
    /**
     * Defines pause on exceptions state. Can be set to stop on all exceptions, uncaught exceptions or no exceptions. Initial pause on exceptions state is <code>none</code>.
     * @response `Debugger.setPauseOnExceptions`
     */
    export type SetPauseOnExceptionsResponse = {};
    /**
     * Set pause on assertions state. Assertions are console.assert assertions.
     * @request `Debugger.setPauseOnAssertions`
     */
    export type SetPauseOnAssertionsRequest = {
      enabled: boolean;
      /**
       * Options to apply to this breakpoint to modify its behavior.
       */
      options?: BreakpointOptions | undefined;
    };
    /**
     * Set pause on assertions state. Assertions are console.assert assertions.
     * @response `Debugger.setPauseOnAssertions`
     */
    export type SetPauseOnAssertionsResponse = {};
    /**
     * Pause when running the next JavaScript microtask.
     * @request `Debugger.setPauseOnMicrotasks`
     */
    export type SetPauseOnMicrotasksRequest = {
      enabled: boolean;
      /**
       * Options to apply to this breakpoint to modify its behavior.
       */
      options?: BreakpointOptions | undefined;
    };
    /**
     * Pause when running the next JavaScript microtask.
     * @response `Debugger.setPauseOnMicrotasks`
     */
    export type SetPauseOnMicrotasksResponse = {};
    /**
     * Change whether to pause in the debugger for internal scripts. The default value is false.
     * @request `Debugger.setPauseForInternalScripts`
     */
    export type SetPauseForInternalScriptsRequest = {
      shouldPause: boolean;
    };
    /**
     * Change whether to pause in the debugger for internal scripts. The default value is false.
     * @response `Debugger.setPauseForInternalScripts`
     */
    export type SetPauseForInternalScriptsResponse = {};
    /**
     * Evaluates expression on a given call frame.
     * @request `Debugger.evaluateOnCallFrame`
     */
    export type EvaluateOnCallFrameRequest = {
      /**
       * Call frame identifier to evaluate on.
       */
      callFrameId: CallFrameId;
      /**
       * Expression to evaluate.
       */
      expression: string;
      /**
       * String object group name to put result into (allows rapid releasing resulting object handles using <code>releaseObjectGroup</code>).
       */
      objectGroup?: string | undefined;
      /**
       * Specifies whether command line API should be available to the evaluated expression, defaults to false.
       */
      includeCommandLineAPI?: boolean | undefined;
      /**
       * Specifies whether evaluation should stop on exceptions and mute console. Overrides setPauseOnException state.
       */
      doNotPauseOnExceptionsAndMuteConsole?: boolean | undefined;
      /**
       * Whether the result is expected to be a JSON object that should be sent by value.
       */
      returnByValue?: boolean | undefined;
      /**
       * Whether preview should be generated for the result.
       */
      generatePreview?: boolean | undefined;
      /**
       * Whether the resulting value should be considered for saving in the $n history.
       */
      saveResult?: boolean | undefined;
      /**
       * Whether the expression should be considered to be in a user gesture or not.
       */
      emulateUserGesture?: boolean | undefined;
    };
    /**
     * Evaluates expression on a given call frame.
     * @response `Debugger.evaluateOnCallFrame`
     */
    export type EvaluateOnCallFrameResponse = {
      /**
       * Object wrapper for the evaluation result.
       */
      result: Runtime.RemoteObject;
      /**
       * True if the result was thrown during the evaluation.
       */
      wasThrown?: boolean | undefined;
      /**
       * If the result was saved, this is the $n index that can be used to access the value.
       */
      savedResultIndex?: number | undefined;
    };
    /**
     * Sets whether the given URL should be in the list of blackboxed scripts, which are ignored when pausing/stepping/debugging.
     * @request `Debugger.setShouldBlackboxURL`
     */
    export type SetShouldBlackboxURLRequest = {
      url: string;
      shouldBlackbox: boolean;
      /**
       * If true, <code>url</code> is case sensitive.
       */
      caseSensitive?: boolean | undefined;
      /**
       * If true, treat <code>url</code> as regular expression.
       */
      isRegex?: boolean | undefined;
    };
    /**
     * Sets whether the given URL should be in the list of blackboxed scripts, which are ignored when pausing/stepping/debugging.
     * @response `Debugger.setShouldBlackboxURL`
     */
    export type SetShouldBlackboxURLResponse = {};
    /**
     * Sets whether evaluation of breakpoint conditions, ignore counts, and actions happen at the location of the breakpoint or are deferred due to blackboxing.
     * @request `Debugger.setBlackboxBreakpointEvaluations`
     */
    export type SetBlackboxBreakpointEvaluationsRequest = {
      blackboxBreakpointEvaluations: boolean;
    };
    /**
     * Sets whether evaluation of breakpoint conditions, ignore counts, and actions happen at the location of the breakpoint or are deferred due to blackboxing.
     * @response `Debugger.setBlackboxBreakpointEvaluations`
     */
    export type SetBlackboxBreakpointEvaluationsResponse = {};
  }
  export namespace GenericTypes {
    /**
     * Search match in a resource.
     */
    export type SearchMatch = {
      /**
       * Line number in resource content.
       */
      lineNumber: number;
      /**
       * Line with match content.
       */
      lineContent: string;
    };
  }
  export namespace Heap {
    /**
     * Information about a garbage collection.
     */
    export type GarbageCollection = {
      /**
       * The type of garbage collection.
       */
      type: "full" | "partial";
      startTime: number;
      endTime: number;
    };
    /**
     * JavaScriptCore HeapSnapshot JSON data.
     */
    export type HeapSnapshotData = string;
    /**
     * Information about the garbage collection.
     * @event `Heap.garbageCollected`
     */
    export type GarbageCollectedEvent = {
      collection: GarbageCollection;
    };
    /**
     * Tracking started.
     * @event `Heap.trackingStart`
     */
    export type TrackingStartEvent = {
      timestamp: number;
      /**
       * Snapshot at the start of tracking.
       */
      snapshotData: HeapSnapshotData;
    };
    /**
     * Tracking stopped.
     * @event `Heap.trackingComplete`
     */
    export type TrackingCompleteEvent = {
      timestamp: number;
      /**
       * Snapshot at the end of tracking.
       */
      snapshotData: HeapSnapshotData;
    };
    /**
     * Enables Heap domain events.
     * @request `Heap.enable`
     */
    export type EnableRequest = {};
    /**
     * Enables Heap domain events.
     * @response `Heap.enable`
     */
    export type EnableResponse = {};
    /**
     * Disables Heap domain events.
     * @request `Heap.disable`
     */
    export type DisableRequest = {};
    /**
     * Disables Heap domain events.
     * @response `Heap.disable`
     */
    export type DisableResponse = {};
    /**
     * Trigger a full garbage collection.
     * @request `Heap.gc`
     */
    export type GcRequest = {};
    /**
     * Trigger a full garbage collection.
     * @response `Heap.gc`
     */
    export type GcResponse = {};
    /**
     * Take a heap snapshot.
     * @request `Heap.snapshot`
     */
    export type SnapshotRequest = {};
    /**
     * Take a heap snapshot.
     * @response `Heap.snapshot`
     */
    export type SnapshotResponse = {
      timestamp: number;
      snapshotData: HeapSnapshotData;
    };
    /**
     * Start tracking heap changes. This will produce a `trackingStart` event.
     * @request `Heap.startTracking`
     */
    export type StartTrackingRequest = {};
    /**
     * Start tracking heap changes. This will produce a `trackingStart` event.
     * @response `Heap.startTracking`
     */
    export type StartTrackingResponse = {};
    /**
     * Stop tracking heap changes. This will produce a `trackingComplete` event.
     * @request `Heap.stopTracking`
     */
    export type StopTrackingRequest = {};
    /**
     * Stop tracking heap changes. This will produce a `trackingComplete` event.
     * @response `Heap.stopTracking`
     */
    export type StopTrackingResponse = {};
    /**
     * Returns a preview (string, Debugger.FunctionDetails, or Runtime.ObjectPreview) for a Heap.HeapObjectId.
     * @request `Heap.getPreview`
     */
    export type GetPreviewRequest = {
      /**
       * Identifier of the heap object within the snapshot.
       */
      heapObjectId: number;
    };
    /**
     * Returns a preview (string, Debugger.FunctionDetails, or Runtime.ObjectPreview) for a Heap.HeapObjectId.
     * @response `Heap.getPreview`
     */
    export type GetPreviewResponse = {
      /**
       * String value.
       */
      string?: string | undefined;
      /**
       * Function details.
       */
      functionDetails?: Debugger.FunctionDetails | undefined;
      /**
       * Object preview.
       */
      preview?: Runtime.ObjectPreview | undefined;
    };
    /**
     * Returns the strongly referenced Runtime.RemoteObject for a Heap.HeapObjectId.
     * @request `Heap.getRemoteObject`
     */
    export type GetRemoteObjectRequest = {
      /**
       * Identifier of the heap object within the snapshot.
       */
      heapObjectId: number;
      /**
       * Symbolic group name that can be used to release multiple objects.
       */
      objectGroup?: string | undefined;
    };
    /**
     * Returns the strongly referenced Runtime.RemoteObject for a Heap.HeapObjectId.
     * @response `Heap.getRemoteObject`
     */
    export type GetRemoteObjectResponse = {
      /**
       * Resulting object.
       */
      result: Runtime.RemoteObject;
    };
  }
  export namespace Inspector {
    /**
     * undefined
     * @event `Inspector.evaluateForTestInFrontend`
     */
    export type EvaluateForTestInFrontendEvent = {
      script: string;
    };
    /**
     * undefined
     * @event `Inspector.inspect`
     */
    export type InspectEvent = {
      object: Runtime.RemoteObject;
      hints: Record<string, unknown>;
    };
    /**
     * Enables inspector domain notifications.
     * @request `Inspector.enable`
     */
    export type EnableRequest = {};
    /**
     * Enables inspector domain notifications.
     * @response `Inspector.enable`
     */
    export type EnableResponse = {};
    /**
     * Disables inspector domain notifications.
     * @request `Inspector.disable`
     */
    export type DisableRequest = {};
    /**
     * Disables inspector domain notifications.
     * @response `Inspector.disable`
     */
    export type DisableResponse = {};
    /**
     * Sent by the frontend after all initialization messages have been sent.
     * @request `Inspector.initialized`
     */
    export type InitializedRequest = {};
    /**
     * Sent by the frontend after all initialization messages have been sent.
     * @response `Inspector.initialized`
     */
    export type InitializedResponse = {};
  }
  export namespace Network {
    /**
     * Unique loader identifier.
     */
    export type LoaderId = string;
    /**
     * Unique frame identifier.
     */
    export type FrameId = string;
    /**
     * Unique request identifier.
     */
    export type RequestId = string;
    /**
     * Elapsed seconds since frontend connected.
     */
    export type Timestamp = number;
    /**
     * Number of seconds since epoch.
     */
    export type Walltime = number;
    /**
     * Controls how much referrer information is sent with the request
     */
    export type ReferrerPolicy =
      | "empty-string"
      | "no-referrer"
      | "no-referrer-when-downgrade"
      | "same-origin"
      | "origin"
      | "strict-origin"
      | "origin-when-cross-origin"
      | "strict-origin-when-cross-origin"
      | "unsafe-url";
    /**
     * Request / response headers as keys / values of JSON object.
     */
    export type Headers = Record<string, unknown>;
    /**
     * Timing information for the request.
     */
    export type ResourceTiming = {
      /**
       * Request is initiated
       */
      startTime: Timestamp;
      /**
       * Started redirect resolution.
       */
      redirectStart: Timestamp;
      /**
       * Finished redirect resolution.
       */
      redirectEnd: Timestamp;
      /**
       * Resource fetching started.
       */
      fetchStart: Timestamp;
      /**
       * Started DNS address resolve in milliseconds relative to fetchStart.
       */
      domainLookupStart: number;
      /**
       * Finished DNS address resolve in milliseconds relative to fetchStart.
       */
      domainLookupEnd: number;
      /**
       * Started connecting to the remote host in milliseconds relative to fetchStart.
       */
      connectStart: number;
      /**
       * Connected to the remote host in milliseconds relative to fetchStart.
       */
      connectEnd: number;
      /**
       * Started SSL handshake in milliseconds relative to fetchStart.
       */
      secureConnectionStart: number;
      /**
       * Started sending request in milliseconds relative to fetchStart.
       */
      requestStart: number;
      /**
       * Started receiving response headers in milliseconds relative to fetchStart.
       */
      responseStart: number;
      /**
       * Finished receiving response headers in milliseconds relative to fetchStart.
       */
      responseEnd: number;
    };
    /**
     * HTTP request data.
     */
    export type Request = {
      /**
       * Request URL.
       */
      url: string;
      /**
       * HTTP request method.
       */
      method: string;
      /**
       * HTTP request headers.
       */
      headers: Headers;
      /**
       * HTTP POST request data.
       */
      postData?: string | undefined;
      /**
       * The level of included referrer information.
       */
      referrerPolicy?: ReferrerPolicy | undefined;
      /**
       * The base64 cryptographic hash of the resource.
       */
      integrity?: string | undefined;
    };
    /**
     * HTTP response data.
     */
    export type Response = {
      /**
       * Response URL. This URL can be different from CachedResource.url in case of redirect.
       */
      url: string;
      /**
       * HTTP response status code.
       */
      status: number;
      /**
       * HTTP response status text.
       */
      statusText: string;
      /**
       * HTTP response headers.
       */
      headers: Headers;
      /**
       * Resource mimeType as determined by the browser.
       */
      mimeType: string;
      /**
       * Specifies where the response came from.
       */
      source: "unknown" | "network" | "memory-cache" | "disk-cache" | "service-worker" | "inspector-override";
      /**
       * Refined HTTP request headers that were actually transmitted over the network.
       */
      requestHeaders?: Headers | undefined;
      /**
       * Timing information for the given request.
       */
      timing?: ResourceTiming | undefined;
      /**
       * The security information for the given request.
       */
      security?: Security.Security | undefined;
    };
    /**
     * Network load metrics.
     */
    export type Metrics = {
      /**
       * Network protocol. ALPN Protocol ID Identification Sequence, as per RFC 7301 (for example, http/2, http/1.1, spdy/3.1)
       */
      protocol?: string | undefined;
      /**
       * Network priority.
       */
      priority?: "low" | "medium" | "high" | undefined;
      /**
       * Connection identifier.
       */
      connectionIdentifier?: string | undefined;
      /**
       * Remote IP address.
       */
      remoteAddress?: string | undefined;
      /**
       * Refined HTTP request headers that were actually transmitted over the network.
       */
      requestHeaders?: Headers | undefined;
      /**
       * Total HTTP request header bytes sent over the network.
       */
      requestHeaderBytesSent?: number | undefined;
      /**
       * Total HTTP request body bytes sent over the network.
       */
      requestBodyBytesSent?: number | undefined;
      /**
       * Total HTTP response header bytes received over the network.
       */
      responseHeaderBytesReceived?: number | undefined;
      /**
       * Total HTTP response body bytes received over the network.
       */
      responseBodyBytesReceived?: number | undefined;
      /**
       * Total decoded response body size in bytes.
       */
      responseBodyDecodedSize?: number | undefined;
      /**
       * Connection information for the completed request.
       */
      securityConnection?: Security.Connection | undefined;
      /**
       * Whether or not the connection was proxied through a server. If <code>true</code>, the <code>remoteAddress</code> will be for the proxy server, not the server that provided the resource to the proxy server.
       */
      isProxyConnection?: boolean | undefined;
    };
    /**
     * WebSocket request data.
     */
    export type WebSocketRequest = {
      /**
       * HTTP response headers.
       */
      headers: Headers;
    };
    /**
     * WebSocket response data.
     */
    export type WebSocketResponse = {
      /**
       * HTTP response status code.
       */
      status: number;
      /**
       * HTTP response status text.
       */
      statusText: string;
      /**
       * HTTP response headers.
       */
      headers: Headers;
    };
    /**
     * WebSocket frame data.
     */
    export type WebSocketFrame = {
      /**
       * WebSocket frame opcode.
       */
      opcode: number;
      /**
       * WebSocket frame mask.
       */
      mask: boolean;
      /**
       * WebSocket frame payload data, binary frames (opcode = 2) are base64-encoded.
       */
      payloadData: string;
      /**
       * WebSocket frame payload length in bytes.
       */
      payloadLength: number;
    };
    /**
     * Information about the cached resource.
     */
    export type CachedResource = {
      /**
       * Resource URL. This is the url of the original network request.
       */
      url: string;
      /**
       * Type of this resource.
       */
      type: Page.ResourceType;
      /**
       * Cached response data.
       */
      response?: Response | undefined;
      /**
       * Cached response body size.
       */
      bodySize: number;
      /**
       * URL of source map associated with this resource (if any).
       */
      sourceMapURL?: string | undefined;
    };
    /**
     * Information about the request initiator.
     */
    export type Initiator = {
      /**
       * Type of this initiator.
       */
      type: "parser" | "script" | "other";
      /**
       * Initiator JavaScript stack trace, set for Script only.
       */
      stackTrace?: Console.StackTrace | undefined;
      /**
       * Initiator URL, set for Parser type only.
       */
      url?: string | undefined;
      /**
       * Initiator line number, set for Parser type only.
       */
      lineNumber?: number | undefined;
      /**
       * Set if the load was triggered by a DOM node, in addition to the other initiator information.
       */
      nodeId?: DOM.NodeId | undefined;
    };
    /**
     * Different stages of a network request.
     */
    export type NetworkStage = "request" | "response";
    /**
     * Different stages of a network request.
     */
    export type ResourceErrorType = "General" | "AccessControl" | "Cancellation" | "Timeout";
    /**
     * Fired when page is about to send HTTP request.
     * @event `Network.requestWillBeSent`
     */
    export type RequestWillBeSentEvent = {
      /**
       * Request identifier.
       */
      requestId: RequestId;
      /**
       * Frame identifier.
       */
      frameId: FrameId;
      /**
       * Loader identifier.
       */
      loaderId: LoaderId;
      /**
       * URL of the document this request is loaded for.
       */
      documentURL: string;
      /**
       * Request data.
       */
      request: Request;
      timestamp: Timestamp;
      walltime: Walltime;
      /**
       * Request initiator.
       */
      initiator: Initiator;
      /**
       * Redirect response data.
       */
      redirectResponse?: Response | undefined;
      /**
       * Resource type.
       */
      type?: Page.ResourceType | undefined;
      /**
       * Identifier for the context of where the load originated. In general this is the target identifier. For Workers this will be the workerId.
       */
      targetId?: string | undefined;
    };
    /**
     * Fired when HTTP response is available.
     * @event `Network.responseReceived`
     */
    export type ResponseReceivedEvent = {
      /**
       * Request identifier.
       */
      requestId: RequestId;
      /**
       * Frame identifier.
       */
      frameId: FrameId;
      /**
       * Loader identifier.
       */
      loaderId: LoaderId;
      /**
       * Timestamp.
       */
      timestamp: Timestamp;
      /**
       * Resource type.
       */
      type: Page.ResourceType;
      /**
       * Response data.
       */
      response: Response;
    };
    /**
     * Fired when data chunk was received over the network.
     * @event `Network.dataReceived`
     */
    export type DataReceivedEvent = {
      /**
       * Request identifier.
       */
      requestId: RequestId;
      /**
       * Timestamp.
       */
      timestamp: Timestamp;
      /**
       * Data chunk length.
       */
      dataLength: number;
      /**
       * Actual bytes received (might be less than dataLength for compressed encodings).
       */
      encodedDataLength: number;
    };
    /**
     * Fired when HTTP request has finished loading.
     * @event `Network.loadingFinished`
     */
    export type LoadingFinishedEvent = {
      /**
       * Request identifier.
       */
      requestId: RequestId;
      /**
       * Timestamp.
       */
      timestamp: Timestamp;
      /**
       * URL of source map associated with this resource (if any).
       */
      sourceMapURL?: string | undefined;
      /**
       * Network metrics.
       */
      metrics?: Metrics | undefined;
    };
    /**
     * Fired when HTTP request has failed to load.
     * @event `Network.loadingFailed`
     */
    export type LoadingFailedEvent = {
      /**
       * Request identifier.
       */
      requestId: RequestId;
      /**
       * Timestamp.
       */
      timestamp: Timestamp;
      /**
       * User friendly error message.
       */
      errorText: string;
      /**
       * True if loading was canceled.
       */
      canceled?: boolean | undefined;
    };
    /**
     * Fired when HTTP request has been served from memory cache.
     * @event `Network.requestServedFromMemoryCache`
     */
    export type RequestServedFromMemoryCacheEvent = {
      /**
       * Request identifier.
       */
      requestId: RequestId;
      /**
       * Frame identifier.
       */
      frameId: FrameId;
      /**
       * Loader identifier.
       */
      loaderId: LoaderId;
      /**
       * URL of the document this request is loaded for.
       */
      documentURL: string;
      /**
       * Timestamp.
       */
      timestamp: Timestamp;
      /**
       * Request initiator.
       */
      initiator: Initiator;
      /**
       * Cached resource data.
       */
      resource: CachedResource;
    };
    /**
     * Fired when HTTP request has been intercepted. The frontend must respond with <code>Network.interceptContinue</code>, <code>Network.interceptWithRequest</code>` or <code>Network.interceptWithResponse</code>` to resolve this request.
     * @event `Network.requestIntercepted`
     */
    export type RequestInterceptedEvent = {
      /**
       * Identifier for this intercepted network. Corresponds with an earlier <code>Network.requestWillBeSent</code>.
       */
      requestId: RequestId;
      /**
       * Original request content that would proceed if this is continued.
       */
      request: Request;
    };
    /**
     * Fired when HTTP response has been intercepted. The frontend must response with <code>Network.interceptContinue</code> or <code>Network.interceptWithResponse</code>` to continue this response.
     * @event `Network.responseIntercepted`
     */
    export type ResponseInterceptedEvent = {
      /**
       * Identifier for this intercepted network. Corresponds with an earlier <code>Network.requestWillBeSent</code>.
       */
      requestId: RequestId;
      /**
       * Original response content that would proceed if this is continued.
       */
      response: Response;
    };
    /**
     * Fired when WebSocket is about to initiate handshake.
     * @event `Network.webSocketWillSendHandshakeRequest`
     */
    export type WebSocketWillSendHandshakeRequestEvent = {
      /**
       * Request identifier.
       */
      requestId: RequestId;
      timestamp: Timestamp;
      walltime: Walltime;
      /**
       * WebSocket request data.
       */
      request: WebSocketRequest;
    };
    /**
     * Fired when WebSocket handshake response becomes available.
     * @event `Network.webSocketHandshakeResponseReceived`
     */
    export type WebSocketHandshakeResponseReceivedEvent = {
      /**
       * Request identifier.
       */
      requestId: RequestId;
      timestamp: Timestamp;
      /**
       * WebSocket response data.
       */
      response: WebSocketResponse;
    };
    /**
     * Fired upon WebSocket creation.
     * @event `Network.webSocketCreated`
     */
    export type WebSocketCreatedEvent = {
      /**
       * Request identifier.
       */
      requestId: RequestId;
      /**
       * WebSocket request URL.
       */
      url: string;
    };
    /**
     * Fired when WebSocket is closed.
     * @event `Network.webSocketClosed`
     */
    export type WebSocketClosedEvent = {
      /**
       * Request identifier.
       */
      requestId: RequestId;
      /**
       * Timestamp.
       */
      timestamp: Timestamp;
    };
    /**
     * Fired when WebSocket frame is received.
     * @event `Network.webSocketFrameReceived`
     */
    export type WebSocketFrameReceivedEvent = {
      /**
       * Request identifier.
       */
      requestId: RequestId;
      /**
       * Timestamp.
       */
      timestamp: Timestamp;
      /**
       * WebSocket response data.
       */
      response: WebSocketFrame;
    };
    /**
     * Fired when WebSocket frame error occurs.
     * @event `Network.webSocketFrameError`
     */
    export type WebSocketFrameErrorEvent = {
      /**
       * Request identifier.
       */
      requestId: RequestId;
      /**
       * Timestamp.
       */
      timestamp: Timestamp;
      /**
       * WebSocket frame error message.
       */
      errorMessage: string;
    };
    /**
     * Fired when WebSocket frame is sent.
     * @event `Network.webSocketFrameSent`
     */
    export type WebSocketFrameSentEvent = {
      /**
       * Request identifier.
       */
      requestId: RequestId;
      /**
       * Timestamp.
       */
      timestamp: Timestamp;
      /**
       * WebSocket response data.
       */
      response: WebSocketFrame;
    };
    /**
     * Enables network tracking, network events will now be delivered to the client.
     * @request `Network.enable`
     */
    export type EnableRequest = {};
    /**
     * Enables network tracking, network events will now be delivered to the client.
     * @response `Network.enable`
     */
    export type EnableResponse = {};
    /**
     * Disables network tracking, prevents network events from being sent to the client.
     * @request `Network.disable`
     */
    export type DisableRequest = {};
    /**
     * Disables network tracking, prevents network events from being sent to the client.
     * @response `Network.disable`
     */
    export type DisableResponse = {};
    /**
     * Specifies whether to always send extra HTTP headers with the requests from this page.
     * @request `Network.setExtraHTTPHeaders`
     */
    export type SetExtraHTTPHeadersRequest = {
      /**
       * Map with extra HTTP headers.
       */
      headers: Headers;
    };
    /**
     * Specifies whether to always send extra HTTP headers with the requests from this page.
     * @response `Network.setExtraHTTPHeaders`
     */
    export type SetExtraHTTPHeadersResponse = {};
    /**
     * Returns content served for the given request.
     * @request `Network.getResponseBody`
     */
    export type GetResponseBodyRequest = {
      /**
       * Identifier of the network request to get content for.
       */
      requestId: RequestId;
    };
    /**
     * Returns content served for the given request.
     * @response `Network.getResponseBody`
     */
    export type GetResponseBodyResponse = {
      /**
       * Response body.
       */
      body: string;
      /**
       * True, if content was sent as base64.
       */
      base64Encoded: boolean;
    };
    /**
     * Toggles whether the resource cache may be used when loading resources in the inspected page. If <code>true</code>, the resource cache will not be used when loading resources.
     * @request `Network.setResourceCachingDisabled`
     */
    export type SetResourceCachingDisabledRequest = {
      /**
       * Whether to prevent usage of the resource cache.
       */
      disabled: boolean;
    };
    /**
     * Toggles whether the resource cache may be used when loading resources in the inspected page. If <code>true</code>, the resource cache will not be used when loading resources.
     * @response `Network.setResourceCachingDisabled`
     */
    export type SetResourceCachingDisabledResponse = {};
    /**
     * Loads a resource in the context of a frame on the inspected page without cross origin checks.
     * @request `Network.loadResource`
     */
    export type LoadResourceRequest = {
      /**
       * Frame to load the resource from.
       */
      frameId: FrameId;
      /**
       * URL of the resource to load.
       */
      url: string;
    };
    /**
     * Loads a resource in the context of a frame on the inspected page without cross origin checks.
     * @response `Network.loadResource`
     */
    export type LoadResourceResponse = {
      /**
       * Resource content.
       */
      content: string;
      /**
       * Resource mimeType.
       */
      mimeType: string;
      /**
       * HTTP response status code.
       */
      status: number;
    };
    /**
     * Fetches a serialized secure certificate for the given requestId to be displayed via InspectorFrontendHost.showCertificate.
     * @request `Network.getSerializedCertificate`
     */
    export type GetSerializedCertificateRequest = {
      requestId: RequestId;
    };
    /**
     * Fetches a serialized secure certificate for the given requestId to be displayed via InspectorFrontendHost.showCertificate.
     * @response `Network.getSerializedCertificate`
     */
    export type GetSerializedCertificateResponse = {
      /**
       * Represents a base64 encoded WebCore::CertificateInfo object.
       */
      serializedCertificate: string;
    };
    /**
     * Resolves JavaScript WebSocket object for given request id.
     * @request `Network.resolveWebSocket`
     */
    export type ResolveWebSocketRequest = {
      /**
       * Identifier of the WebSocket resource to resolve.
       */
      requestId: RequestId;
      /**
       * Symbolic group name that can be used to release multiple objects.
       */
      objectGroup?: string | undefined;
    };
    /**
     * Resolves JavaScript WebSocket object for given request id.
     * @response `Network.resolveWebSocket`
     */
    export type ResolveWebSocketResponse = {
      /**
       * JavaScript object wrapper for given node.
       */
      object: Runtime.RemoteObject;
    };
    /**
     * Enable interception of network requests.
     * @request `Network.setInterceptionEnabled`
     */
    export type SetInterceptionEnabledRequest = {
      enabled: boolean;
    };
    /**
     * Enable interception of network requests.
     * @response `Network.setInterceptionEnabled`
     */
    export type SetInterceptionEnabledResponse = {};
    /**
     * Add an interception.
     * @request `Network.addInterception`
     */
    export type AddInterceptionRequest = {
      /**
       * URL pattern to intercept, intercept everything if not specified or empty
       */
      url: string;
      /**
       * Stage to intercept.
       */
      stage: NetworkStage;
      /**
       * If false, ignores letter casing of `url` parameter.
       */
      caseSensitive?: boolean | undefined;
      /**
       * If true, treats `url` parameter as a regular expression.
       */
      isRegex?: boolean | undefined;
    };
    /**
     * Add an interception.
     * @response `Network.addInterception`
     */
    export type AddInterceptionResponse = {};
    /**
     * Remove an interception.
     * @request `Network.removeInterception`
     */
    export type RemoveInterceptionRequest = {
      url: string;
      /**
       * Stage to intercept.
       */
      stage: NetworkStage;
      /**
       * If false, ignores letter casing of `url` parameter.
       */
      caseSensitive?: boolean | undefined;
      /**
       * If true, treats `url` parameter as a regular expression.
       */
      isRegex?: boolean | undefined;
    };
    /**
     * Remove an interception.
     * @response `Network.removeInterception`
     */
    export type RemoveInterceptionResponse = {};
    /**
     * Continue request or response without modifications.
     * @request `Network.interceptContinue`
     */
    export type InterceptContinueRequest = {
      /**
       * Identifier for the intercepted Network request or response to continue.
       */
      requestId: RequestId;
      /**
       * Stage to continue.
       */
      stage: NetworkStage;
    };
    /**
     * Continue request or response without modifications.
     * @response `Network.interceptContinue`
     */
    export type InterceptContinueResponse = {};
    /**
     * Replace intercepted request with the provided one.
     * @request `Network.interceptWithRequest`
     */
    export type InterceptWithRequestRequest = {
      /**
       * Identifier for the intercepted Network request or response to continue.
       */
      requestId: RequestId;
      /**
       * HTTP request url.
       */
      url?: string | undefined;
      /**
       * HTTP request method.
       */
      method?: string | undefined;
      /**
       * HTTP response headers. Pass through original values if unmodified.
       */
      headers?: Headers | undefined;
      /**
       * HTTP POST request data, base64-encoded.
       */
      postData?: string | undefined;
    };
    /**
     * Replace intercepted request with the provided one.
     * @response `Network.interceptWithRequest`
     */
    export type InterceptWithRequestResponse = {};
    /**
     * Provide response content for an intercepted response.
     * @request `Network.interceptWithResponse`
     */
    export type InterceptWithResponseRequest = {
      /**
       * Identifier for the intercepted Network response to modify.
       */
      requestId: RequestId;
      content: string;
      /**
       * True, if content was sent as base64.
       */
      base64Encoded: boolean;
      /**
       * MIME Type for the data.
       */
      mimeType?: string | undefined;
      /**
       * HTTP response status code. Pass through original values if unmodified.
       */
      status?: number | undefined;
      /**
       * HTTP response status text. Pass through original values if unmodified.
       */
      statusText?: string | undefined;
      /**
       * HTTP response headers. Pass through original values if unmodified.
       */
      headers?: Headers | undefined;
    };
    /**
     * Provide response content for an intercepted response.
     * @response `Network.interceptWithResponse`
     */
    export type InterceptWithResponseResponse = {};
    /**
     * Provide response for an intercepted request. Request completely bypasses the network in this case and is immediately fulfilled with the provided data.
     * @request `Network.interceptRequestWithResponse`
     */
    export type InterceptRequestWithResponseRequest = {
      /**
       * Identifier for the intercepted Network response to modify.
       */
      requestId: RequestId;
      content: string;
      /**
       * True, if content was sent as base64.
       */
      base64Encoded: boolean;
      /**
       * MIME Type for the data.
       */
      mimeType: string;
      /**
       * HTTP response status code.
       */
      status: number;
      /**
       * HTTP response status text.
       */
      statusText: string;
      /**
       * HTTP response headers.
       */
      headers: Headers;
    };
    /**
     * Provide response for an intercepted request. Request completely bypasses the network in this case and is immediately fulfilled with the provided data.
     * @response `Network.interceptRequestWithResponse`
     */
    export type InterceptRequestWithResponseResponse = {};
    /**
     * Fail request with given error type.
     * @request `Network.interceptRequestWithError`
     */
    export type InterceptRequestWithErrorRequest = {
      /**
       * Identifier for the intercepted Network request to fail.
       */
      requestId: RequestId;
      /**
       * Deliver error reason for the request failure.
       */
      errorType: ResourceErrorType;
    };
    /**
     * Fail request with given error type.
     * @response `Network.interceptRequestWithError`
     */
    export type InterceptRequestWithErrorResponse = {};
    /**
     * Emulate various network conditions (e.g. bytes per second, latency, etc.).
     * @request `Network.setEmulatedConditions`
     */
    export type SetEmulatedConditionsRequest = {
      /**
       * Limits the bytes per second of requests if positive. Removes any limits if zero or not provided.
       */
      bytesPerSecondLimit?: number | undefined;
    };
    /**
     * Emulate various network conditions (e.g. bytes per second, latency, etc.).
     * @response `Network.setEmulatedConditions`
     */
    export type SetEmulatedConditionsResponse = {};
  }
  export namespace Runtime {
    /**
     * Unique object identifier.
     */
    export type RemoteObjectId = string;
    /**
     * Mirror object referencing original JavaScript object.
     */
    export type RemoteObject = {
      /**
       * Object type.
       */
      type: "object" | "function" | "undefined" | "string" | "number" | "boolean" | "symbol" | "bigint";
      /**
       * Object subtype hint. Specified for <code>object</code> <code>function</code> (for class) type values only.
       */
      subtype?:
        | "array"
        | "null"
        | "node"
        | "regexp"
        | "date"
        | "error"
        | "map"
        | "set"
        | "weakmap"
        | "weakset"
        | "iterator"
        | "class"
        | "proxy"
        | "weakref"
        | undefined;
      /**
       * Object class (constructor) name. Specified for <code>object</code> type values only.
       */
      className?: string | undefined;
      /**
       * Remote object value (in case of primitive values or JSON values if it was requested).
       */
      value?: unknown | undefined;
      /**
       * String representation of the object.
       */
      description?: string | undefined;
      /**
       * Unique object identifier (for non-primitive values).
       */
      objectId?: RemoteObjectId | undefined;
      /**
       * Size of the array/collection. Specified for array/map/set/weakmap/weakset object type values only.
       */
      size?: number | undefined;
      /**
       * Remote object for the class prototype. Specified for class object type values only.
       */
      classPrototype?: RemoteObject | undefined;
      /**
       * Preview containing abbreviated property values. Specified for <code>object</code> type values only.
       */
      preview?: ObjectPreview | undefined;
    };
    /**
     * Object containing abbreviated remote object value.
     */
    export type ObjectPreview = {
      /**
       * Object type.
       */
      type: "object" | "function" | "undefined" | "string" | "number" | "boolean" | "symbol" | "bigint";
      /**
       * Object subtype hint. Specified for <code>object</code> type values only.
       */
      subtype?:
        | "array"
        | "null"
        | "node"
        | "regexp"
        | "date"
        | "error"
        | "map"
        | "set"
        | "weakmap"
        | "weakset"
        | "iterator"
        | "class"
        | "proxy"
        | "weakref"
        | undefined;
      /**
       * String representation of the object.
       */
      description?: string | undefined;
      /**
       * Determines whether preview is lossless (contains all information of the original object).
       */
      lossless: boolean;
      /**
       * True iff some of the properties of the original did not fit.
       */
      overflow?: boolean | undefined;
      /**
       * List of the properties.
       */
      properties?: PropertyPreview[] | undefined;
      /**
       * List of the entries. Specified for <code>map</code> and <code>set</code> subtype values only.
       */
      entries?: EntryPreview[] | undefined;
      /**
       * Size of the array/collection. Specified for array/map/set/weakmap/weakset object type values only.
       */
      size?: number | undefined;
    };
    export type PropertyPreview = {
      /**
       * Property name.
       */
      name: string;
      /**
       * Object type.
       */
      type: "object" | "function" | "undefined" | "string" | "number" | "boolean" | "symbol" | "bigint" | "accessor";
      /**
       * Object subtype hint. Specified for <code>object</code> type values only.
       */
      subtype?:
        | "array"
        | "null"
        | "node"
        | "regexp"
        | "date"
        | "error"
        | "map"
        | "set"
        | "weakmap"
        | "weakset"
        | "iterator"
        | "class"
        | "proxy"
        | "weakref"
        | undefined;
      /**
       * User-friendly property value string.
       */
      value?: string | undefined;
      /**
       * Nested value preview.
       */
      valuePreview?: ObjectPreview | undefined;
      /**
       * True if this is a private field.
       */
      isPrivate?: boolean | undefined;
      /**
       * True if this is an internal property.
       */
      internal?: boolean | undefined;
    };
    export type EntryPreview = {
      /**
       * Entry key. Specified for map-like collection entries.
       */
      key?: ObjectPreview | undefined;
      /**
       * Entry value.
       */
      value: ObjectPreview;
    };
    export type CollectionEntry = {
      /**
       * Entry key of a map-like collection, otherwise not provided.
       */
      key?: Runtime.RemoteObject | undefined;
      /**
       * Entry value.
       */
      value: Runtime.RemoteObject;
    };
    /**
     * Object property descriptor.
     */
    export type PropertyDescriptor = {
      /**
       * Property name or symbol description.
       */
      name: string;
      /**
       * The value associated with the property.
       */
      value?: RemoteObject | undefined;
      /**
       * True if the value associated with the property may be changed (data descriptors only).
       */
      writable?: boolean | undefined;
      /**
       * A function which serves as a getter for the property, or <code>undefined</code> if there is no getter (accessor descriptors only).
       */
      get?: RemoteObject | undefined;
      /**
       * A function which serves as a setter for the property, or <code>undefined</code> if there is no setter (accessor descriptors only).
       */
      set?: RemoteObject | undefined;
      /**
       * True if the result was thrown during the evaluation.
       */
      wasThrown?: boolean | undefined;
      /**
       * True if the type of this property descriptor may be changed and if the property may be deleted from the corresponding object.
       */
      configurable?: boolean | undefined;
      /**
       * True if this property shows up during enumeration of the properties on the corresponding object.
       */
      enumerable?: boolean | undefined;
      /**
       * True if the property is owned for the object.
       */
      isOwn?: boolean | undefined;
      /**
       * Property symbol object, if the property is a symbol.
       */
      symbol?: Runtime.RemoteObject | undefined;
      /**
       * True if the property is a private field.
       */
      isPrivate?: boolean | undefined;
      /**
       * True if the property value came from a native getter.
       */
      nativeGetter?: boolean | undefined;
    };
    /**
     * Object internal property descriptor. This property isn't normally visible in JavaScript code.
     */
    export type InternalPropertyDescriptor = {
      /**
       * Conventional property name.
       */
      name: string;
      /**
       * The value associated with the property.
       */
      value?: RemoteObject | undefined;
    };
    /**
     * Represents function call argument. Either remote object id <code>objectId</code> or primitive <code>value</code> or neither of (for undefined) them should be specified.
     */
    export type CallArgument = {
      /**
       * Primitive value.
       */
      value?: unknown | undefined;
      /**
       * Remote object handle.
       */
      objectId?: RemoteObjectId | undefined;
    };
    /**
     * Id of an execution context.
     */
    export type ExecutionContextId = number;
    /**
     * Type of the execution context.
     */
    export type ExecutionContextType = "normal" | "user" | "internal";
    /**
     * Description of an isolated world.
     */
    export type ExecutionContextDescription = {
      /**
       * Unique id of the execution context. It can be used to specify in which execution context script evaluation should be performed.
       */
      id: ExecutionContextId;
      type: ExecutionContextType;
      /**
       * Human readable name describing given context.
       */
      name: string;
      /**
       * Id of the owning frame.
       */
      frameId: Network.FrameId;
    };
    /**
     * Syntax error type: "none" for no error, "irrecoverable" for unrecoverable errors, "unterminated-literal" for when there is an unterminated literal, "recoverable" for when the expression is unfinished but valid so far.
     */
    export type SyntaxErrorType = "none" | "irrecoverable" | "unterminated-literal" | "recoverable";
    /**
     * Range of an error in source code.
     */
    export type ErrorRange = {
      /**
       * Start offset of range (inclusive).
       */
      startOffset: number;
      /**
       * End offset of range (exclusive).
       */
      endOffset: number;
    };
    export type StructureDescription = {
      /**
       * Array of strings, where the strings represent object properties.
       */
      fields?: string[] | undefined;
      /**
       * Array of strings, where the strings represent optional object properties.
       */
      optionalFields?: string[] | undefined;
      /**
       * Name of the constructor.
       */
      constructorName?: string | undefined;
      /**
       * Pointer to the StructureRepresentation of the protoype if one exists.
       */
      prototypeStructure?: StructureDescription | undefined;
      /**
       * If true, it indicates that the fields in this StructureDescription may be inaccurate. I.e, there might have been fields that have been deleted before it was profiled or it has fields we haven't profiled.
       */
      isImprecise?: boolean | undefined;
    };
    export type TypeSet = {
      /**
       * Indicates if this type description has been type Function.
       */
      isFunction: boolean;
      /**
       * Indicates if this type description has been type Undefined.
       */
      isUndefined: boolean;
      /**
       * Indicates if this type description has been type Null.
       */
      isNull: boolean;
      /**
       * Indicates if this type description has been type Boolean.
       */
      isBoolean: boolean;
      /**
       * Indicates if this type description has been type Integer.
       */
      isInteger: boolean;
      /**
       * Indicates if this type description has been type Number.
       */
      isNumber: boolean;
      /**
       * Indicates if this type description has been type String.
       */
      isString: boolean;
      /**
       * Indicates if this type description has been type Object.
       */
      isObject: boolean;
      /**
       * Indicates if this type description has been type Symbol.
       */
      isSymbol: boolean;
      /**
       * Indicates if this type description has been type BigInt.
       */
      isBigInt: boolean;
    };
    /**
     * Container for type information that has been gathered.
     */
    export type TypeDescription = {
      /**
       * If true, we were able to correlate the offset successfuly with a program location. If false, the offset may be bogus or the offset may be from a CodeBlock that hasn't executed.
       */
      isValid: boolean;
      /**
       * Least common ancestor of all Constructors if the TypeDescription has seen any structures. This string is the display name of the shared constructor function.
       */
      leastCommonAncestor?: string | undefined;
      /**
       * Set of booleans for determining the aggregate type of this type description.
       */
      typeSet?: TypeSet | undefined;
      /**
       * Array of descriptions for all structures seen for this variable.
       */
      structures?: StructureDescription[] | undefined;
      /**
       * If true, this indicates that no more structures are being profiled because some maximum threshold has been reached and profiling has stopped because of memory pressure.
       */
      isTruncated?: boolean | undefined;
    };
    /**
     * Describes the location of an expression we want type information for.
     */
    export type TypeLocation = {
      /**
       * What kind of type information do we want (normal, function return values, 'this' statement).
       */
      typeInformationDescriptor: number;
      /**
       * sourceID uniquely identifying a script
       */
      sourceID: string;
      /**
       * character offset for assignment range
       */
      divot: number;
    };
    /**
     * From Wikipedia: a basic block is a portion of the code within a program with only one entry point and only one exit point. This type gives the location of a basic block and if that basic block has executed.
     */
    export type BasicBlock = {
      /**
       * Start offset of the basic block.
       */
      startOffset: number;
      /**
       * End offset of the basic block.
       */
      endOffset: number;
      /**
       * Indicates if the basic block has executed before.
       */
      hasExecuted: boolean;
      /**
       * Indicates how many times the basic block has executed.
       */
      executionCount: number;
    };
    /**
     * Issued when new execution context is created.
     * @event `Runtime.executionContextCreated`
     */
    export type ExecutionContextCreatedEvent = {
      /**
       * A newly created execution context.
       */
      context: ExecutionContextDescription;
    };
    /**
     * Parses JavaScript source code for errors.
     * @request `Runtime.parse`
     */
    export type ParseRequest = {
      /**
       * Source code to parse.
       */
      source: string;
    };
    /**
     * Parses JavaScript source code for errors.
     * @response `Runtime.parse`
     */
    export type ParseResponse = {
      /**
       * Parse result.
       */
      result: SyntaxErrorType;
      /**
       * Parse error message.
       */
      message?: string | undefined;
      /**
       * Range in the source where the error occurred.
       */
      range?: ErrorRange | undefined;
    };
    /**
     * Evaluates expression on global object.
     * @request `Runtime.evaluate`
     */
    export type EvaluateRequest = {
      /**
       * Expression to evaluate.
       */
      expression: string;
      /**
       * Symbolic group name that can be used to release multiple objects.
       */
      objectGroup?: string | undefined;
      /**
       * Determines whether Command Line API should be available during the evaluation.
       */
      includeCommandLineAPI?: boolean | undefined;
      /**
       * Specifies whether evaluation should stop on exceptions and mute console. Overrides setPauseOnException state.
       */
      doNotPauseOnExceptionsAndMuteConsole?: boolean | undefined;
      /**
       * Specifies in which isolated context to perform evaluation. Each content script lives in an isolated context and this parameter may be used to specify one of those contexts. If the parameter is omitted or 0 the evaluation will be performed in the context of the inspected page.
       */
      contextId?: Runtime.ExecutionContextId | undefined;
      /**
       * Whether the result is expected to be a JSON object that should be sent by value.
       */
      returnByValue?: boolean | undefined;
      /**
       * Whether preview should be generated for the result.
       */
      generatePreview?: boolean | undefined;
      /**
       * Whether the resulting value should be considered for saving in the $n history.
       */
      saveResult?: boolean | undefined;
      /**
       * Whether the expression should be considered to be in a user gesture or not.
       */
      emulateUserGesture?: boolean | undefined;
    };
    /**
     * Evaluates expression on global object.
     * @response `Runtime.evaluate`
     */
    export type EvaluateResponse = {
      /**
       * Evaluation result.
       */
      result: RemoteObject;
      /**
       * True if the result was thrown during the evaluation.
       */
      wasThrown?: boolean | undefined;
      /**
       * If the result was saved, this is the $n index that can be used to access the value.
       */
      savedResultIndex?: number | undefined;
    };
    /**
     * Calls the async callback when the promise with the given ID gets settled.
     * @request `Runtime.awaitPromise`
     */
    export type AwaitPromiseRequest = {
      /**
       * Identifier of the promise.
       */
      promiseObjectId: RemoteObjectId;
      /**
       * Whether the result is expected to be a JSON object that should be sent by value.
       */
      returnByValue?: boolean | undefined;
      /**
       * Whether preview should be generated for the result.
       */
      generatePreview?: boolean | undefined;
      /**
       * Whether the resulting value should be considered for saving in the $n history.
       */
      saveResult?: boolean | undefined;
    };
    /**
     * Calls the async callback when the promise with the given ID gets settled.
     * @response `Runtime.awaitPromise`
     */
    export type AwaitPromiseResponse = {
      /**
       * Evaluation result.
       */
      result: RemoteObject;
      /**
       * True if the result was thrown during the evaluation.
       */
      wasThrown?: boolean | undefined;
      /**
       * If the result was saved, this is the $n index that can be used to access the value.
       */
      savedResultIndex?: number | undefined;
    };
    /**
     * Calls function with given declaration on the given object. Object group of the result is inherited from the target object.
     * @request `Runtime.callFunctionOn`
     */
    export type CallFunctionOnRequest = {
      /**
       * Identifier of the object to call function on.
       */
      objectId: RemoteObjectId;
      /**
       * Declaration of the function to call.
       */
      functionDeclaration: string;
      /**
       * Call arguments. All call arguments must belong to the same JavaScript world as the target object.
       */
      arguments?: CallArgument[] | undefined;
      /**
       * Specifies whether function call should stop on exceptions and mute console. Overrides setPauseOnException state.
       */
      doNotPauseOnExceptionsAndMuteConsole?: boolean | undefined;
      /**
       * Whether the result is expected to be a JSON object which should be sent by value.
       */
      returnByValue?: boolean | undefined;
      /**
       * Whether preview should be generated for the result.
       */
      generatePreview?: boolean | undefined;
      /**
       * Whether the expression should be considered to be in a user gesture or not.
       */
      emulateUserGesture?: boolean | undefined;
    };
    /**
     * Calls function with given declaration on the given object. Object group of the result is inherited from the target object.
     * @response `Runtime.callFunctionOn`
     */
    export type CallFunctionOnResponse = {
      /**
       * Call result.
       */
      result: RemoteObject;
      /**
       * True if the result was thrown during the evaluation.
       */
      wasThrown?: boolean | undefined;
    };
    /**
     * Returns a preview for the given object.
     * @request `Runtime.getPreview`
     */
    export type GetPreviewRequest = {
      /**
       * Identifier of the object to return a preview for.
       */
      objectId: RemoteObjectId;
    };
    /**
     * Returns a preview for the given object.
     * @response `Runtime.getPreview`
     */
    export type GetPreviewResponse = {
      preview: ObjectPreview;
    };
    /**
     * Returns properties of a given object. Object group of the result is inherited from the target object.
     * @request `Runtime.getProperties`
     */
    export type GetPropertiesRequest = {
      /**
       * Identifier of the object to return properties for.
       */
      objectId: RemoteObjectId;
      /**
       * If true, returns properties belonging only to the object itself, not to its prototype chain.
       */
      ownProperties?: boolean | undefined;
      /**
       * If provided skip to this value before collecting values. Otherwise, start at the beginning. Has no effect when the `objectId` is for a `iterator`/`WeakMap`/`WeakSet` object.
       */
      fetchStart?: number | undefined;
      /**
       * If provided only return `fetchCount` values. Otherwise, return values all the way to the end.
       */
      fetchCount?: number | undefined;
      /**
       * Whether preview should be generated for property values.
       */
      generatePreview?: boolean | undefined;
    };
    /**
     * Returns properties of a given object. Object group of the result is inherited from the target object.
     * @response `Runtime.getProperties`
     */
    export type GetPropertiesResponse = {
      /**
       * Object properties.
       */
      properties: PropertyDescriptor[];
      /**
       * Internal object properties. Only included if `fetchStart` is 0.
       */
      internalProperties?: InternalPropertyDescriptor[] | undefined;
    };
    /**
     * Returns displayable properties of a given object. Object group of the result is inherited from the target object. Displayable properties are own properties, internal properties, and native getters in the prototype chain (assumed to be bindings and treated like own properties for the frontend).
     * @request `Runtime.getDisplayableProperties`
     */
    export type GetDisplayablePropertiesRequest = {
      /**
       * Identifier of the object to return properties for.
       */
      objectId: RemoteObjectId;
      /**
       * If provided skip to this value before collecting values. Otherwise, start at the beginning. Has no effect when the `objectId` is for a `iterator`/`WeakMap`/`WeakSet` object.
       */
      fetchStart?: number | undefined;
      /**
       * If provided only return `fetchCount` values. Otherwise, return values all the way to the end.
       */
      fetchCount?: number | undefined;
      /**
       * Whether preview should be generated for property values.
       */
      generatePreview?: boolean | undefined;
    };
    /**
     * Returns displayable properties of a given object. Object group of the result is inherited from the target object. Displayable properties are own properties, internal properties, and native getters in the prototype chain (assumed to be bindings and treated like own properties for the frontend).
     * @response `Runtime.getDisplayableProperties`
     */
    export type GetDisplayablePropertiesResponse = {
      /**
       * Object properties.
       */
      properties: PropertyDescriptor[];
      /**
       * Internal object properties. Only included if `fetchStart` is 0.
       */
      internalProperties?: InternalPropertyDescriptor[] | undefined;
    };
    /**
     * Returns entries of given Map / Set collection.
     * @request `Runtime.getCollectionEntries`
     */
    export type GetCollectionEntriesRequest = {
      /**
       * Id of the collection to get entries for.
       */
      objectId: Runtime.RemoteObjectId;
      /**
       * Symbolic group name that can be used to release multiple. If not provided, it will be the same objectGroup as the RemoteObject determined from <code>objectId</code>. This is useful for WeakMap to release the collection entries.
       */
      objectGroup?: string | undefined;
      /**
       * If provided skip to this value before collecting values. Otherwise, start at the beginning. Has no effect when the `objectId<` is for a `iterator<`/`WeakMap<`/`WeakSet<` object.
       */
      fetchStart?: number | undefined;
      /**
       * If provided only return `fetchCount` values. Otherwise, return values all the way to the end.
       */
      fetchCount?: number | undefined;
    };
    /**
     * Returns entries of given Map / Set collection.
     * @response `Runtime.getCollectionEntries`
     */
    export type GetCollectionEntriesResponse = {
      /**
       * Array of collection entries.
       */
      entries: CollectionEntry[];
    };
    /**
     * Assign a saved result index to this value.
     * @request `Runtime.saveResult`
     */
    export type SaveResultRequest = {
      /**
       * Id or value of the object to save.
       */
      value: CallArgument;
      /**
       * Unique id of the execution context. To specify in which execution context script evaluation should be performed. If not provided, determine from the CallArgument's objectId.
       */
      contextId?: ExecutionContextId | undefined;
    };
    /**
     * Assign a saved result index to this value.
     * @response `Runtime.saveResult`
     */
    export type SaveResultResponse = {
      /**
       * If the value was saved, this is the $n index that can be used to access the value.
       */
      savedResultIndex?: number | undefined;
    };
    /**
     * Creates an additional reference to all saved values in the Console using the the given string as a prefix instead of $.
     * @request `Runtime.setSavedResultAlias`
     */
    export type SetSavedResultAliasRequest = {
      /**
       * Passing an empty/null string will clear the alias.
       */
      alias?: string | undefined;
    };
    /**
     * Creates an additional reference to all saved values in the Console using the the given string as a prefix instead of $.
     * @response `Runtime.setSavedResultAlias`
     */
    export type SetSavedResultAliasResponse = {};
    /**
     * Releases remote object with given id.
     * @request `Runtime.releaseObject`
     */
    export type ReleaseObjectRequest = {
      /**
       * Identifier of the object to release.
       */
      objectId: RemoteObjectId;
    };
    /**
     * Releases remote object with given id.
     * @response `Runtime.releaseObject`
     */
    export type ReleaseObjectResponse = {};
    /**
     * Releases all remote objects that belong to a given group.
     * @request `Runtime.releaseObjectGroup`
     */
    export type ReleaseObjectGroupRequest = {
      /**
       * Symbolic object group name.
       */
      objectGroup: string;
    };
    /**
     * Releases all remote objects that belong to a given group.
     * @response `Runtime.releaseObjectGroup`
     */
    export type ReleaseObjectGroupResponse = {};
    /**
     * Enables reporting of execution contexts creation by means of <code>executionContextCreated</code> event. When the reporting gets enabled the event will be sent immediately for each existing execution context.
     * @request `Runtime.enable`
     */
    export type EnableRequest = {};
    /**
     * Enables reporting of execution contexts creation by means of <code>executionContextCreated</code> event. When the reporting gets enabled the event will be sent immediately for each existing execution context.
     * @response `Runtime.enable`
     */
    export type EnableResponse = {};
    /**
     * Disables reporting of execution contexts creation.
     * @request `Runtime.disable`
     */
    export type DisableRequest = {};
    /**
     * Disables reporting of execution contexts creation.
     * @response `Runtime.disable`
     */
    export type DisableResponse = {};
    /**
     * Returns detailed information on the given function.
     * @request `Runtime.getRuntimeTypesForVariablesAtOffsets`
     */
    export type GetRuntimeTypesForVariablesAtOffsetsRequest = {
      /**
       * An array of type locations we're requesting information for. Results are expected in the same order they're sent in.
       */
      locations: TypeLocation[];
    };
    /**
     * Returns detailed information on the given function.
     * @response `Runtime.getRuntimeTypesForVariablesAtOffsets`
     */
    export type GetRuntimeTypesForVariablesAtOffsetsResponse = {
      types: TypeDescription[];
    };
    /**
     * Enables type profiling on the VM.
     * @request `Runtime.enableTypeProfiler`
     */
    export type EnableTypeProfilerRequest = {};
    /**
     * Enables type profiling on the VM.
     * @response `Runtime.enableTypeProfiler`
     */
    export type EnableTypeProfilerResponse = {};
    /**
     * Disables type profiling on the VM.
     * @request `Runtime.disableTypeProfiler`
     */
    export type DisableTypeProfilerRequest = {};
    /**
     * Disables type profiling on the VM.
     * @response `Runtime.disableTypeProfiler`
     */
    export type DisableTypeProfilerResponse = {};
    /**
     * Enables control flow profiling on the VM.
     * @request `Runtime.enableControlFlowProfiler`
     */
    export type EnableControlFlowProfilerRequest = {};
    /**
     * Enables control flow profiling on the VM.
     * @response `Runtime.enableControlFlowProfiler`
     */
    export type EnableControlFlowProfilerResponse = {};
    /**
     * Disables control flow profiling on the VM.
     * @request `Runtime.disableControlFlowProfiler`
     */
    export type DisableControlFlowProfilerRequest = {};
    /**
     * Disables control flow profiling on the VM.
     * @response `Runtime.disableControlFlowProfiler`
     */
    export type DisableControlFlowProfilerResponse = {};
    /**
     * Returns a list of basic blocks for the given sourceID with information about their text ranges and whether or not they have executed.
     * @request `Runtime.getBasicBlocks`
     */
    export type GetBasicBlocksRequest = {
      /**
       * Indicates which sourceID information is requested for.
       */
      sourceID: string;
    };
    /**
     * Returns a list of basic blocks for the given sourceID with information about their text ranges and whether or not they have executed.
     * @response `Runtime.getBasicBlocks`
     */
    export type GetBasicBlocksResponse = {
      basicBlocks: BasicBlock[];
    };
  }
  export namespace ScriptProfiler {
    export type EventType = "API" | "Microtask" | "Other";
    export type Event = {
      startTime: number;
      endTime: number;
      type: EventType;
    };
    export type ExpressionLocation = {
      /**
       * 1-based.
       */
      line: number;
      /**
       * 1-based.
       */
      column: number;
    };
    export type StackFrame = {
      /**
       * Unique script identifier.
       */
      sourceID: Debugger.ScriptId;
      /**
       * A displayable name for the stack frame. i.e function name, (program), etc.
       */
      name: string;
      /**
       * -1 if unavailable. 1-based if available.
       */
      line: number;
      /**
       * -1 if unavailable. 1-based if available.
       */
      column: number;
      url: string;
      expressionLocation?: ExpressionLocation | undefined;
    };
    export type StackTrace = {
      timestamp: number;
      /**
       * First array item is the bottom of the call stack and last array item is the top of the call stack.
       */
      stackFrames: StackFrame[];
    };
    export type Samples = {
      stackTraces: StackTrace[];
    };
    /**
     * Tracking started.
     * @event `ScriptProfiler.trackingStart`
     */
    export type TrackingStartEvent = {
      timestamp: number;
    };
    /**
     * Periodic tracking updates with event data.
     * @event `ScriptProfiler.trackingUpdate`
     */
    export type TrackingUpdateEvent = {
      event: Event;
    };
    /**
     * Tracking stopped. Includes any buffered data during tracking, such as profiling information.
     * @event `ScriptProfiler.trackingComplete`
     */
    export type TrackingCompleteEvent = {
      timestamp: number;
      /**
       * Stack traces.
       */
      samples?: Samples | undefined;
    };
    /**
     * Start tracking script evaluations.
     * @request `ScriptProfiler.startTracking`
     */
    export type StartTrackingRequest = {
      /**
       * Start the sampling profiler, defaults to false.
       */
      includeSamples?: boolean | undefined;
    };
    /**
     * Start tracking script evaluations.
     * @response `ScriptProfiler.startTracking`
     */
    export type StartTrackingResponse = {};
    /**
     * Stop tracking script evaluations. This will produce a `trackingComplete` event.
     * @request `ScriptProfiler.stopTracking`
     */
    export type StopTrackingRequest = {};
    /**
     * Stop tracking script evaluations. This will produce a `trackingComplete` event.
     * @response `ScriptProfiler.stopTracking`
     */
    export type StopTrackingResponse = {};
  }
  export type EventMap = {
    "Console.messageAdded": Console.MessageAddedEvent;
    "Console.messageRepeatCountUpdated": Console.MessageRepeatCountUpdatedEvent;
    "Console.messagesCleared": Console.MessagesClearedEvent;
    "Console.heapSnapshot": Console.HeapSnapshotEvent;
    "CPUProfiler.trackingStart": CPUProfiler.TrackingStartEvent;
    "CPUProfiler.trackingUpdate": CPUProfiler.TrackingUpdateEvent;
    "CPUProfiler.trackingComplete": CPUProfiler.TrackingCompleteEvent;
    "Debugger.globalObjectCleared": Debugger.GlobalObjectClearedEvent;
    "Debugger.scriptParsed": Debugger.ScriptParsedEvent;
    "Debugger.scriptFailedToParse": Debugger.ScriptFailedToParseEvent;
    "Debugger.breakpointResolved": Debugger.BreakpointResolvedEvent;
    "Debugger.paused": Debugger.PausedEvent;
    "Debugger.resumed": Debugger.ResumedEvent;
    "Debugger.didSampleProbe": Debugger.DidSampleProbeEvent;
    "Debugger.playBreakpointActionSound": Debugger.PlayBreakpointActionSoundEvent;
    "Heap.garbageCollected": Heap.GarbageCollectedEvent;
    "Heap.trackingStart": Heap.TrackingStartEvent;
    "Heap.trackingComplete": Heap.TrackingCompleteEvent;
    "Inspector.evaluateForTestInFrontend": Inspector.EvaluateForTestInFrontendEvent;
    "Inspector.inspect": Inspector.InspectEvent;
    "Network.requestWillBeSent": Network.RequestWillBeSentEvent;
    "Network.responseReceived": Network.ResponseReceivedEvent;
    "Network.dataReceived": Network.DataReceivedEvent;
    "Network.loadingFinished": Network.LoadingFinishedEvent;
    "Network.loadingFailed": Network.LoadingFailedEvent;
    "Network.requestServedFromMemoryCache": Network.RequestServedFromMemoryCacheEvent;
    "Network.requestIntercepted": Network.RequestInterceptedEvent;
    "Network.responseIntercepted": Network.ResponseInterceptedEvent;
    "Network.webSocketWillSendHandshakeRequest": Network.WebSocketWillSendHandshakeRequestEvent;
    "Network.webSocketHandshakeResponseReceived": Network.WebSocketHandshakeResponseReceivedEvent;
    "Network.webSocketCreated": Network.WebSocketCreatedEvent;
    "Network.webSocketClosed": Network.WebSocketClosedEvent;
    "Network.webSocketFrameReceived": Network.WebSocketFrameReceivedEvent;
    "Network.webSocketFrameError": Network.WebSocketFrameErrorEvent;
    "Network.webSocketFrameSent": Network.WebSocketFrameSentEvent;
    "Runtime.executionContextCreated": Runtime.ExecutionContextCreatedEvent;
    "ScriptProfiler.trackingStart": ScriptProfiler.TrackingStartEvent;
    "ScriptProfiler.trackingUpdate": ScriptProfiler.TrackingUpdateEvent;
    "ScriptProfiler.trackingComplete": ScriptProfiler.TrackingCompleteEvent;
  };
  export type RequestMap = {
    "Console.enable": Console.EnableRequest;
    "Console.disable": Console.DisableRequest;
    "Console.clearMessages": Console.ClearMessagesRequest;
    "Console.getLoggingChannels": Console.GetLoggingChannelsRequest;
    "Console.setLoggingChannelLevel": Console.SetLoggingChannelLevelRequest;
    "CPUProfiler.startTracking": CPUProfiler.StartTrackingRequest;
    "CPUProfiler.stopTracking": CPUProfiler.StopTrackingRequest;
    "Debugger.enable": Debugger.EnableRequest;
    "Debugger.disable": Debugger.DisableRequest;
    "Debugger.setAsyncStackTraceDepth": Debugger.SetAsyncStackTraceDepthRequest;
    "Debugger.setBreakpointsActive": Debugger.SetBreakpointsActiveRequest;
    "Debugger.setBreakpointByUrl": Debugger.SetBreakpointByUrlRequest;
    "Debugger.setBreakpoint": Debugger.SetBreakpointRequest;
    "Debugger.removeBreakpoint": Debugger.RemoveBreakpointRequest;
    "Debugger.addSymbolicBreakpoint": Debugger.AddSymbolicBreakpointRequest;
    "Debugger.removeSymbolicBreakpoint": Debugger.RemoveSymbolicBreakpointRequest;
    "Debugger.continueUntilNextRunLoop": Debugger.ContinueUntilNextRunLoopRequest;
    "Debugger.continueToLocation": Debugger.ContinueToLocationRequest;
    "Debugger.stepNext": Debugger.StepNextRequest;
    "Debugger.stepOver": Debugger.StepOverRequest;
    "Debugger.stepInto": Debugger.StepIntoRequest;
    "Debugger.stepOut": Debugger.StepOutRequest;
    "Debugger.pause": Debugger.PauseRequest;
    "Debugger.resume": Debugger.ResumeRequest;
    "Debugger.searchInContent": Debugger.SearchInContentRequest;
    "Debugger.getScriptSource": Debugger.GetScriptSourceRequest;
    "Debugger.getFunctionDetails": Debugger.GetFunctionDetailsRequest;
    "Debugger.getBreakpointLocations": Debugger.GetBreakpointLocationsRequest;
    "Debugger.setPauseOnDebuggerStatements": Debugger.SetPauseOnDebuggerStatementsRequest;
    "Debugger.setPauseOnExceptions": Debugger.SetPauseOnExceptionsRequest;
    "Debugger.setPauseOnAssertions": Debugger.SetPauseOnAssertionsRequest;
    "Debugger.setPauseOnMicrotasks": Debugger.SetPauseOnMicrotasksRequest;
    "Debugger.setPauseForInternalScripts": Debugger.SetPauseForInternalScriptsRequest;
    "Debugger.evaluateOnCallFrame": Debugger.EvaluateOnCallFrameRequest;
    "Debugger.setShouldBlackboxURL": Debugger.SetShouldBlackboxURLRequest;
    "Debugger.setBlackboxBreakpointEvaluations": Debugger.SetBlackboxBreakpointEvaluationsRequest;
    "Heap.enable": Heap.EnableRequest;
    "Heap.disable": Heap.DisableRequest;
    "Heap.gc": Heap.GcRequest;
    "Heap.snapshot": Heap.SnapshotRequest;
    "Heap.startTracking": Heap.StartTrackingRequest;
    "Heap.stopTracking": Heap.StopTrackingRequest;
    "Heap.getPreview": Heap.GetPreviewRequest;
    "Heap.getRemoteObject": Heap.GetRemoteObjectRequest;
    "Inspector.enable": Inspector.EnableRequest;
    "Inspector.disable": Inspector.DisableRequest;
    "Inspector.initialized": Inspector.InitializedRequest;
    "Network.enable": Network.EnableRequest;
    "Network.disable": Network.DisableRequest;
    "Network.setExtraHTTPHeaders": Network.SetExtraHTTPHeadersRequest;
    "Network.getResponseBody": Network.GetResponseBodyRequest;
    "Network.setResourceCachingDisabled": Network.SetResourceCachingDisabledRequest;
    "Network.loadResource": Network.LoadResourceRequest;
    "Network.getSerializedCertificate": Network.GetSerializedCertificateRequest;
    "Network.resolveWebSocket": Network.ResolveWebSocketRequest;
    "Network.setInterceptionEnabled": Network.SetInterceptionEnabledRequest;
    "Network.addInterception": Network.AddInterceptionRequest;
    "Network.removeInterception": Network.RemoveInterceptionRequest;
    "Network.interceptContinue": Network.InterceptContinueRequest;
    "Network.interceptWithRequest": Network.InterceptWithRequestRequest;
    "Network.interceptWithResponse": Network.InterceptWithResponseRequest;
    "Network.interceptRequestWithResponse": Network.InterceptRequestWithResponseRequest;
    "Network.interceptRequestWithError": Network.InterceptRequestWithErrorRequest;
    "Network.setEmulatedConditions": Network.SetEmulatedConditionsRequest;
    "Runtime.parse": Runtime.ParseRequest;
    "Runtime.evaluate": Runtime.EvaluateRequest;
    "Runtime.awaitPromise": Runtime.AwaitPromiseRequest;
    "Runtime.callFunctionOn": Runtime.CallFunctionOnRequest;
    "Runtime.getPreview": Runtime.GetPreviewRequest;
    "Runtime.getProperties": Runtime.GetPropertiesRequest;
    "Runtime.getDisplayableProperties": Runtime.GetDisplayablePropertiesRequest;
    "Runtime.getCollectionEntries": Runtime.GetCollectionEntriesRequest;
    "Runtime.saveResult": Runtime.SaveResultRequest;
    "Runtime.setSavedResultAlias": Runtime.SetSavedResultAliasRequest;
    "Runtime.releaseObject": Runtime.ReleaseObjectRequest;
    "Runtime.releaseObjectGroup": Runtime.ReleaseObjectGroupRequest;
    "Runtime.enable": Runtime.EnableRequest;
    "Runtime.disable": Runtime.DisableRequest;
    "Runtime.getRuntimeTypesForVariablesAtOffsets": Runtime.GetRuntimeTypesForVariablesAtOffsetsRequest;
    "Runtime.enableTypeProfiler": Runtime.EnableTypeProfilerRequest;
    "Runtime.disableTypeProfiler": Runtime.DisableTypeProfilerRequest;
    "Runtime.enableControlFlowProfiler": Runtime.EnableControlFlowProfilerRequest;
    "Runtime.disableControlFlowProfiler": Runtime.DisableControlFlowProfilerRequest;
    "Runtime.getBasicBlocks": Runtime.GetBasicBlocksRequest;
    "ScriptProfiler.startTracking": ScriptProfiler.StartTrackingRequest;
    "ScriptProfiler.stopTracking": ScriptProfiler.StopTrackingRequest;
  };
  export type ResponseMap = {
    "Console.enable": Console.EnableResponse;
    "Console.disable": Console.DisableResponse;
    "Console.clearMessages": Console.ClearMessagesResponse;
    "Console.getLoggingChannels": Console.GetLoggingChannelsResponse;
    "Console.setLoggingChannelLevel": Console.SetLoggingChannelLevelResponse;
    "CPUProfiler.startTracking": CPUProfiler.StartTrackingResponse;
    "CPUProfiler.stopTracking": CPUProfiler.StopTrackingResponse;
    "Debugger.enable": Debugger.EnableResponse;
    "Debugger.disable": Debugger.DisableResponse;
    "Debugger.setAsyncStackTraceDepth": Debugger.SetAsyncStackTraceDepthResponse;
    "Debugger.setBreakpointsActive": Debugger.SetBreakpointsActiveResponse;
    "Debugger.setBreakpointByUrl": Debugger.SetBreakpointByUrlResponse;
    "Debugger.setBreakpoint": Debugger.SetBreakpointResponse;
    "Debugger.removeBreakpoint": Debugger.RemoveBreakpointResponse;
    "Debugger.addSymbolicBreakpoint": Debugger.AddSymbolicBreakpointResponse;
    "Debugger.removeSymbolicBreakpoint": Debugger.RemoveSymbolicBreakpointResponse;
    "Debugger.continueUntilNextRunLoop": Debugger.ContinueUntilNextRunLoopResponse;
    "Debugger.continueToLocation": Debugger.ContinueToLocationResponse;
    "Debugger.stepNext": Debugger.StepNextResponse;
    "Debugger.stepOver": Debugger.StepOverResponse;
    "Debugger.stepInto": Debugger.StepIntoResponse;
    "Debugger.stepOut": Debugger.StepOutResponse;
    "Debugger.pause": Debugger.PauseResponse;
    "Debugger.resume": Debugger.ResumeResponse;
    "Debugger.searchInContent": Debugger.SearchInContentResponse;
    "Debugger.getScriptSource": Debugger.GetScriptSourceResponse;
    "Debugger.getFunctionDetails": Debugger.GetFunctionDetailsResponse;
    "Debugger.getBreakpointLocations": Debugger.GetBreakpointLocationsResponse;
    "Debugger.setPauseOnDebuggerStatements": Debugger.SetPauseOnDebuggerStatementsResponse;
    "Debugger.setPauseOnExceptions": Debugger.SetPauseOnExceptionsResponse;
    "Debugger.setPauseOnAssertions": Debugger.SetPauseOnAssertionsResponse;
    "Debugger.setPauseOnMicrotasks": Debugger.SetPauseOnMicrotasksResponse;
    "Debugger.setPauseForInternalScripts": Debugger.SetPauseForInternalScriptsResponse;
    "Debugger.evaluateOnCallFrame": Debugger.EvaluateOnCallFrameResponse;
    "Debugger.setShouldBlackboxURL": Debugger.SetShouldBlackboxURLResponse;
    "Debugger.setBlackboxBreakpointEvaluations": Debugger.SetBlackboxBreakpointEvaluationsResponse;
    "Heap.enable": Heap.EnableResponse;
    "Heap.disable": Heap.DisableResponse;
    "Heap.gc": Heap.GcResponse;
    "Heap.snapshot": Heap.SnapshotResponse;
    "Heap.startTracking": Heap.StartTrackingResponse;
    "Heap.stopTracking": Heap.StopTrackingResponse;
    "Heap.getPreview": Heap.GetPreviewResponse;
    "Heap.getRemoteObject": Heap.GetRemoteObjectResponse;
    "Inspector.enable": Inspector.EnableResponse;
    "Inspector.disable": Inspector.DisableResponse;
    "Inspector.initialized": Inspector.InitializedResponse;
    "Network.enable": Network.EnableResponse;
    "Network.disable": Network.DisableResponse;
    "Network.setExtraHTTPHeaders": Network.SetExtraHTTPHeadersResponse;
    "Network.getResponseBody": Network.GetResponseBodyResponse;
    "Network.setResourceCachingDisabled": Network.SetResourceCachingDisabledResponse;
    "Network.loadResource": Network.LoadResourceResponse;
    "Network.getSerializedCertificate": Network.GetSerializedCertificateResponse;
    "Network.resolveWebSocket": Network.ResolveWebSocketResponse;
    "Network.setInterceptionEnabled": Network.SetInterceptionEnabledResponse;
    "Network.addInterception": Network.AddInterceptionResponse;
    "Network.removeInterception": Network.RemoveInterceptionResponse;
    "Network.interceptContinue": Network.InterceptContinueResponse;
    "Network.interceptWithRequest": Network.InterceptWithRequestResponse;
    "Network.interceptWithResponse": Network.InterceptWithResponseResponse;
    "Network.interceptRequestWithResponse": Network.InterceptRequestWithResponseResponse;
    "Network.interceptRequestWithError": Network.InterceptRequestWithErrorResponse;
    "Network.setEmulatedConditions": Network.SetEmulatedConditionsResponse;
    "Runtime.parse": Runtime.ParseResponse;
    "Runtime.evaluate": Runtime.EvaluateResponse;
    "Runtime.awaitPromise": Runtime.AwaitPromiseResponse;
    "Runtime.callFunctionOn": Runtime.CallFunctionOnResponse;
    "Runtime.getPreview": Runtime.GetPreviewResponse;
    "Runtime.getProperties": Runtime.GetPropertiesResponse;
    "Runtime.getDisplayableProperties": Runtime.GetDisplayablePropertiesResponse;
    "Runtime.getCollectionEntries": Runtime.GetCollectionEntriesResponse;
    "Runtime.saveResult": Runtime.SaveResultResponse;
    "Runtime.setSavedResultAlias": Runtime.SetSavedResultAliasResponse;
    "Runtime.releaseObject": Runtime.ReleaseObjectResponse;
    "Runtime.releaseObjectGroup": Runtime.ReleaseObjectGroupResponse;
    "Runtime.enable": Runtime.EnableResponse;
    "Runtime.disable": Runtime.DisableResponse;
    "Runtime.getRuntimeTypesForVariablesAtOffsets": Runtime.GetRuntimeTypesForVariablesAtOffsetsResponse;
    "Runtime.enableTypeProfiler": Runtime.EnableTypeProfilerResponse;
    "Runtime.disableTypeProfiler": Runtime.DisableTypeProfilerResponse;
    "Runtime.enableControlFlowProfiler": Runtime.EnableControlFlowProfilerResponse;
    "Runtime.disableControlFlowProfiler": Runtime.DisableControlFlowProfilerResponse;
    "Runtime.getBasicBlocks": Runtime.GetBasicBlocksResponse;
    "ScriptProfiler.startTracking": ScriptProfiler.StartTrackingResponse;
    "ScriptProfiler.stopTracking": ScriptProfiler.StopTrackingResponse;
  };

  export type Event<T extends keyof EventMap = keyof EventMap> = {
    readonly method: T;
    readonly params: EventMap[T];
  };

  export type Request<T extends keyof RequestMap = keyof RequestMap> = {
    readonly id: number;
    readonly method: T;
    readonly params: RequestMap[T];
  };

  export type Response<T extends keyof ResponseMap = keyof ResponseMap> = {
    readonly id: number;
  } & (
    | {
        readonly method?: T;
        readonly result: ResponseMap[T];
      }
    | {
        readonly error: {
          readonly code?: string;
          readonly message: string;
        };
      }
  );
}