webdriver-bidi-protocol 0.1.9 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -32,6 +32,6 @@ updates:
32
32
  directory: /
33
33
  schedule:
34
34
  interval: daily
35
- open-pull-requests-limit: 1
35
+ open-pull-requests-limit: 5
36
36
  labels:
37
37
  - commit-updates
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "0.1.9"
2
+ ".": "0.2.1"
3
3
  }
package/CHANGELOG.md CHANGED
@@ -1,5 +1,61 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.2.1](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/compare/webdriver-bidi-protocol-v0.2.0...webdriver-bidi-protocol-v0.2.1) (2025-07-01)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * re-generate types based on specifciation updates ([#183](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/183)) ([daf944c](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/daf944c89cda0387cc0eac163c858515b60ea480))
9
+ * re-generate types based on specifciation updates ([#187](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/187)) ([d847f6a](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/d847f6afbd310e9587c79a942e33e09afe654729))
10
+
11
+ ## [0.2.0](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/compare/webdriver-bidi-protocol-v0.1.10...webdriver-bidi-protocol-v0.2.0) (2025-06-26)
12
+
13
+
14
+ ### Features
15
+
16
+ * add bluetooth ([#66](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/66)) ([e42e8d9](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/e42e8d9896540020955d81b08066bdf92ed16602))
17
+
18
+
19
+ ### Bug Fixes
20
+
21
+ * add repository ([#19](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/19)) ([91def9d](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/91def9dd0baeab3476e7154676e40d5a709da2c3))
22
+ * another repository fix ([72c215c](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/72c215cbcf76c97317deff925d1ff73732ed5bab))
23
+ * bump specs/webdriver-bidi from `0575bf7` to `9eaa877` ([#65](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/65)) ([d0ed8ef](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/d0ed8ef0254fb7786b5e2cd7b716aa772cc49fcd))
24
+ * bump specs/webdriver-bidi from `05a283e` to `62b8dfe` ([#16](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/16)) ([51dac71](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/51dac71ca4ea2e4e85eee7ba82a6a8ac7ff584a4))
25
+ * bump specs/webdriver-bidi from `0c366b0` to `a46d71b` ([#30](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/30)) ([c926381](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/c92638156ca8cbe36e2485fde2c3eca4b6d14cd7))
26
+ * bump specs/webdriver-bidi from `0fa2d99` to `712c17f` ([#36](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/36)) ([5e35acb](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/5e35acb0af5663fdace139da9648a298adf4b863))
27
+ * bump specs/webdriver-bidi from `287e9c6` to `0575bf7` ([#59](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/59)) ([20ec66a](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/20ec66ae46acdb49211991f603826bfbab0c0762))
28
+ * bump specs/webdriver-bidi from `62b8dfe` to `0c366b0` ([#25](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/25)) ([e6da243](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/e6da2439e38f2c403319ce1dbed16c9b8029667d))
29
+ * bump specs/webdriver-bidi from `712c17f` to `287e9c6` ([#43](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/43)) ([2f378f5](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/2f378f5890cbfec58e62f466b73fda0523083216))
30
+ * bump specs/webdriver-bidi from `a46d71b` to `0fa2d99` ([#33](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/33)) ([596a0ab](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/596a0ab776e061bccbc67a4fc38db4d5cce84643))
31
+ * document usage ([#7](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/7)) ([d98a6ee](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/d98a6ee23cbaa943440e2b40831a0c56aa0d6c18))
32
+ * re-gen types based on the spec changes ([#75](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/75)) ([e95b00e](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/e95b00e96333781b8843325d928e75f49768f06f))
33
+ * re-generate types based on specifciation updates ([#101](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/101)) ([c2aa431](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/c2aa431b0e7fe5c229f51d7b549fb6eb51009087))
34
+ * re-generate types based on specifciation updates ([#105](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/105)) ([adec09b](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/adec09b1c6fc6a29952a9c0a641ebd5d22f7370d))
35
+ * re-generate types based on specifciation updates ([#108](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/108)) ([00199dc](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/00199dc6e53e35cb12e1e67ce441a2d06f87e9ae))
36
+ * re-generate types based on specifciation updates ([#114](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/114)) ([f1a380a](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/f1a380afeebcb5f9a2ab66732f0971336c80bb0e))
37
+ * re-generate types based on specifciation updates ([#125](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/125)) ([95501b6](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/95501b6d1a81516aa55cd84af1a5d3f8c060174a))
38
+ * re-generate types based on specifciation updates ([#128](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/128)) ([852b2ab](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/852b2abfacb13c969f82f9507cccb50a2bbfeca0))
39
+ * re-generate types based on specifciation updates ([#140](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/140)) ([b769928](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/b769928b05cfc936a949384cc7b345f995895b54))
40
+ * re-generate types based on specifciation updates ([#143](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/143)) ([946a803](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/946a80305ad8c226519667a3c4d6bfc84d7a8fe1))
41
+ * re-generate types based on specifciation updates ([#147](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/147)) ([b568837](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/b5688371c4ce32b6d62ff6b1a08854f0c000bcbe))
42
+ * re-generate types based on specifciation updates ([#154](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/154)) ([5e9bfdd](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/5e9bfdde05a80e6852dbd81ac4e124702765b11c))
43
+ * re-generate types based on specifciation updates ([#156](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/156)) ([a917e79](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/a917e79b9abd17e312c52227310bfe8aa7e21abb))
44
+ * re-generate types based on specifciation updates ([#162](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/162)) ([bb92e98](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/bb92e98a232b060cc94a058fef92e10d8f8d6601))
45
+ * re-generate types based on specifciation updates ([#166](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/166)) ([42664dd](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/42664dd5c7401588e55dda5573c3b7096f700953))
46
+ * re-generate types based on specifciation updates ([#178](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/178)) ([6ee5f05](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/6ee5f05ae9298e59ff34c4859543bebcc4ad658d))
47
+ * re-generate types based on specifciation updates ([#83](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/83)) ([ac66a29](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/ac66a29bc3396c2bdabb133d5dfb63fc2b029add))
48
+ * re-generate types based on specifciation updates ([#88](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/88)) ([d3c2c6f](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/d3c2c6fcf973551d4bef5cbee5291e3581ae257c))
49
+ * re-generate types based on specifciation updates ([#95](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/95)) ([64abd1d](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/64abd1d65d99e75d7ec1e885fe22c0f093323843))
50
+ * update repository ([28cf911](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/28cf911e59ad5b177df47d04fc012d8c9cfe7fde))
51
+
52
+ ## [0.1.10](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/compare/webdriver-bidi-protocol-v0.1.9...webdriver-bidi-protocol-v0.1.10) (2025-06-26)
53
+
54
+
55
+ ### Bug Fixes
56
+
57
+ * re-generate types based on specifciation updates ([#178](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/178)) ([6ee5f05](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/6ee5f05ae9298e59ff34c4859543bebcc4ad658d))
58
+
3
59
  ## [0.1.9](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/compare/webdriver-bidi-protocol-v0.1.8...webdriver-bidi-protocol-v0.1.9) (2025-06-03)
4
60
 
5
61
 
package/out/gen/main.d.ts CHANGED
@@ -63,11 +63,13 @@ export declare const enum ErrorCode {
63
63
  InvalidWebExtension = 'invalid web extension',
64
64
  MoveTargetOutOfBounds = 'move target out of bounds',
65
65
  NoSuchAlert = 'no such alert',
66
+ NoSuchNetworkCollector = 'no such network collector',
66
67
  NoSuchElement = 'no such element',
67
68
  NoSuchFrame = 'no such frame',
68
69
  NoSuchHandle = 'no such handle',
69
70
  NoSuchHistoryEntry = 'no such history entry',
70
71
  NoSuchIntercept = 'no such intercept',
72
+ NoSuchNetworkData = 'no such network data',
71
73
  NoSuchNode = 'no such node',
72
74
  NoSuchRequest = 'no such request',
73
75
  NoSuchScript = 'no such script',
@@ -79,6 +81,7 @@ export declare const enum ErrorCode {
79
81
  UnableToCloseBrowser = 'unable to close browser',
80
82
  UnableToSetCookie = 'unable to set cookie',
81
83
  UnableToSetFileInput = 'unable to set file input',
84
+ UnavailableNetworkData = 'unavailable network data',
82
85
  UnderspecifiedStoragePartition = 'underspecified storage partition',
83
86
  UnknownCommand = 'unknown command',
84
87
  UnknownError = 'unknown error',
@@ -131,7 +134,6 @@ export declare namespace Session {
131
134
  export declare namespace Session {
132
135
  type ManualProxyConfiguration = {
133
136
  proxyType: 'manual';
134
- ftpProxy?: string;
135
137
  httpProxy?: string;
136
138
  sslProxy?: string;
137
139
  } & ({} | Session.SocksProxyConfiguration) & {
@@ -946,7 +948,10 @@ export declare namespace BrowsingContext {
946
948
  defaultValue?: string;
947
949
  };
948
950
  }
949
- export type EmulationCommand = Emulation.SetGeolocationOverride;
951
+ export type EmulationCommand =
952
+ | Emulation.SetGeolocationOverride
953
+ | Emulation.SetLocaleOverride
954
+ | Emulation.SetScreenOrientationOverride;
950
955
  export declare namespace Emulation {
951
956
  type SetGeolocationOverride = {
952
957
  method: 'emulation.setGeolocationOverride';
@@ -1014,13 +1019,67 @@ export declare namespace Emulation {
1014
1019
  type: 'positionUnavailable';
1015
1020
  };
1016
1021
  }
1022
+ export declare namespace Emulation {
1023
+ type SetLocaleOverride = {
1024
+ method: 'emulation.setLocaleOverride';
1025
+ params: Emulation.SetLocaleOverrideParameters;
1026
+ };
1027
+ }
1028
+ export declare namespace Emulation {
1029
+ type SetLocaleOverrideParameters = {
1030
+ locale: string | null;
1031
+ contexts?: [
1032
+ BrowsingContext.BrowsingContext,
1033
+ ...BrowsingContext.BrowsingContext[],
1034
+ ];
1035
+ userContexts?: [Browser.UserContext, ...Browser.UserContext[]];
1036
+ };
1037
+ }
1038
+ export declare namespace Emulation {
1039
+ type SetScreenOrientationOverride = {
1040
+ method: 'emulation.setScreenOrientationOverride';
1041
+ params: Emulation.SetScreenOrientationOverrideParameters;
1042
+ };
1043
+ }
1044
+ export declare namespace Emulation {
1045
+ const enum ScreenOrientationNatural {
1046
+ Portrait = 'portrait',
1047
+ Landscape = 'landscape',
1048
+ }
1049
+ }
1050
+ export declare namespace Emulation {
1051
+ type ScreenOrientationType =
1052
+ | 'portrait-primary'
1053
+ | 'portrait-secondary'
1054
+ | 'landscape-primary'
1055
+ | 'landscape-secondary';
1056
+ }
1057
+ export declare namespace Emulation {
1058
+ type ScreenOrientation = {
1059
+ natural: Emulation.ScreenOrientationNatural;
1060
+ type: Emulation.ScreenOrientationType;
1061
+ };
1062
+ }
1063
+ export declare namespace Emulation {
1064
+ type SetScreenOrientationOverrideParameters = {
1065
+ screenOrientation: Emulation.ScreenOrientation | null;
1066
+ contexts?: [
1067
+ BrowsingContext.BrowsingContext,
1068
+ ...BrowsingContext.BrowsingContext[],
1069
+ ];
1070
+ userContexts?: [Browser.UserContext, ...Browser.UserContext[]];
1071
+ };
1072
+ }
1017
1073
  export type NetworkCommand =
1074
+ | Network.AddDataCollector
1018
1075
  | Network.AddIntercept
1019
1076
  | Network.ContinueRequest
1020
1077
  | Network.ContinueResponse
1021
1078
  | Network.ContinueWithAuth
1022
1079
  | Network.FailRequest
1080
+ | Network.GetData
1023
1081
  | Network.ProvideResponse
1082
+ | Network.RemoveDataCollector
1024
1083
  | Network.RemoveIntercept
1025
1084
  | Network.SetCacheBehavior;
1026
1085
  export type NetworkEvent =
@@ -1054,6 +1113,11 @@ export declare namespace Network {
1054
1113
  intercepts?: [Network.Intercept, ...Network.Intercept[]];
1055
1114
  };
1056
1115
  }
1116
+ export declare namespace Network {
1117
+ const enum DataType {
1118
+ Response = 'response',
1119
+ }
1120
+ }
1057
1121
  export declare namespace Network {
1058
1122
  type BytesValue = Network.StringValue | Network.Base64Value;
1059
1123
  }
@@ -1069,11 +1133,20 @@ export declare namespace Network {
1069
1133
  value: string;
1070
1134
  };
1071
1135
  }
1136
+ export declare namespace Network {
1137
+ type Collector = string;
1138
+ }
1139
+ export declare namespace Network {
1140
+ const enum CollectorType {
1141
+ Blob = 'blob',
1142
+ }
1143
+ }
1072
1144
  export declare namespace Network {
1073
1145
  const enum SameSite {
1074
1146
  Strict = 'strict',
1075
1147
  Lax = 'lax',
1076
1148
  None = 'none',
1149
+ Default = 'default',
1077
1150
  }
1078
1151
  }
1079
1152
  export declare namespace Network {
@@ -1200,6 +1273,32 @@ export declare namespace Network {
1200
1273
  pattern: string;
1201
1274
  };
1202
1275
  }
1276
+ export declare namespace Network {
1277
+ type AddDataCollector = {
1278
+ method: 'network.addDataCollector';
1279
+ params: Network.AddDataCollectorParameters;
1280
+ };
1281
+ }
1282
+ export declare namespace Network {
1283
+ type AddDataCollectorParameters = {
1284
+ dataTypes: [Network.DataType, ...Network.DataType[]];
1285
+ maxEncodedDataSize: JsUint;
1286
+ /**
1287
+ * @defaultValue `"blob"`
1288
+ */
1289
+ collectorType?: Network.CollectorType;
1290
+ contexts?: [
1291
+ BrowsingContext.BrowsingContext,
1292
+ ...BrowsingContext.BrowsingContext[],
1293
+ ];
1294
+ userContexts?: [Browser.UserContext, ...Browser.UserContext[]];
1295
+ };
1296
+ }
1297
+ export declare namespace Network {
1298
+ type AddDataCollectorResult = {
1299
+ collector: Network.Collector;
1300
+ };
1301
+ }
1203
1302
  export declare namespace Network {
1204
1303
  type AddInterceptParameters = {
1205
1304
  phases: [Network.InterceptPhase, ...Network.InterceptPhase[]];
@@ -1285,6 +1384,19 @@ export declare namespace Network {
1285
1384
  action: 'default' | 'cancel';
1286
1385
  };
1287
1386
  }
1387
+ export declare namespace Network {
1388
+ type DisownData = {
1389
+ method: 'network.disownData';
1390
+ params: Network.DisownDataParameters;
1391
+ };
1392
+ }
1393
+ export declare namespace Network {
1394
+ type DisownDataParameters = {
1395
+ dataType: Network.DataType;
1396
+ collector: Network.Collector;
1397
+ request: Network.Request;
1398
+ };
1399
+ }
1288
1400
  export declare namespace Network {
1289
1401
  type FailRequest = {
1290
1402
  method: 'network.failRequest';
@@ -1296,6 +1408,28 @@ export declare namespace Network {
1296
1408
  request: Network.Request;
1297
1409
  };
1298
1410
  }
1411
+ export declare namespace Network {
1412
+ type GetData = {
1413
+ method: 'network.getData';
1414
+ params: Network.GetDataParameters;
1415
+ };
1416
+ }
1417
+ export declare namespace Network {
1418
+ type GetDataParameters = {
1419
+ dataType: Network.DataType;
1420
+ collector?: Network.Collector;
1421
+ /**
1422
+ * @defaultValue `false`
1423
+ */
1424
+ disown?: boolean;
1425
+ request: Network.Request;
1426
+ };
1427
+ }
1428
+ export declare namespace Script {
1429
+ type GetDataResult = {
1430
+ bytes: Network.BytesValue;
1431
+ };
1432
+ }
1299
1433
  export declare namespace Network {
1300
1434
  type ProvideResponse = {
1301
1435
  method: 'network.provideResponse';
@@ -1312,6 +1446,17 @@ export declare namespace Network {
1312
1446
  statusCode?: JsUint;
1313
1447
  };
1314
1448
  }
1449
+ export declare namespace Network {
1450
+ type RemoveDataCollector = {
1451
+ method: 'network.removeDataCollector';
1452
+ params: Network.RemoveDataCollectorParameters;
1453
+ };
1454
+ }
1455
+ export declare namespace Network {
1456
+ type RemoveDataCollectorParameters = {
1457
+ collector: Network.Collector;
1458
+ };
1459
+ }
1315
1460
  export declare namespace Network {
1316
1461
  type RemoveIntercept = {
1317
1462
  method: 'network.removeIntercept';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webdriver-bidi-protocol",
3
- "version": "0.1.9",
3
+ "version": "0.2.1",
4
4
  "description": "",
5
5
  "main": "out/index.js",
6
6
  "types": "out/index.d.ts",
@@ -20,10 +20,10 @@
20
20
  "url": "git+https://github.com/GoogleChromeLabs/webdriver-bidi-protocol.git"
21
21
  },
22
22
  "devDependencies": {
23
- "@types/node": "^22.5.2",
23
+ "@types/node": "^24.0.4",
24
24
  "gts": "^6.0.2",
25
25
  "parse5": "^7.1.2",
26
- "prettier": "3.5.3",
26
+ "prettier": "3.6.2",
27
27
  "tsd": "0.32.0",
28
28
  "typescript": "5.8.3"
29
29
  }
package/src/gen/main.ts CHANGED
@@ -65,11 +65,13 @@ export const enum ErrorCode {
65
65
  InvalidWebExtension = 'invalid web extension',
66
66
  MoveTargetOutOfBounds = 'move target out of bounds',
67
67
  NoSuchAlert = 'no such alert',
68
+ NoSuchNetworkCollector = 'no such network collector',
68
69
  NoSuchElement = 'no such element',
69
70
  NoSuchFrame = 'no such frame',
70
71
  NoSuchHandle = 'no such handle',
71
72
  NoSuchHistoryEntry = 'no such history entry',
72
73
  NoSuchIntercept = 'no such intercept',
74
+ NoSuchNetworkData = 'no such network data',
73
75
  NoSuchNode = 'no such node',
74
76
  NoSuchRequest = 'no such request',
75
77
  NoSuchScript = 'no such script',
@@ -81,6 +83,7 @@ export const enum ErrorCode {
81
83
  UnableToCloseBrowser = 'unable to close browser',
82
84
  UnableToSetCookie = 'unable to set cookie',
83
85
  UnableToSetFileInput = 'unable to set file input',
86
+ UnavailableNetworkData = 'unavailable network data',
84
87
  UnderspecifiedStoragePartition = 'underspecified storage partition',
85
88
  UnknownCommand = 'unknown command',
86
89
  UnknownError = 'unknown error',
@@ -133,7 +136,6 @@ export namespace Session {
133
136
  export namespace Session {
134
137
  export type ManualProxyConfiguration = {
135
138
  proxyType: 'manual';
136
- ftpProxy?: string;
137
139
  httpProxy?: string;
138
140
  sslProxy?: string;
139
141
  } & ({} | Session.SocksProxyConfiguration) & {
@@ -948,7 +950,10 @@ export namespace BrowsingContext {
948
950
  defaultValue?: string;
949
951
  };
950
952
  }
951
- export type EmulationCommand = Emulation.SetGeolocationOverride;
953
+ export type EmulationCommand =
954
+ | Emulation.SetGeolocationOverride
955
+ | Emulation.SetLocaleOverride
956
+ | Emulation.SetScreenOrientationOverride;
952
957
  export namespace Emulation {
953
958
  export type SetGeolocationOverride = {
954
959
  method: 'emulation.setGeolocationOverride';
@@ -1016,13 +1021,67 @@ export namespace Emulation {
1016
1021
  type: 'positionUnavailable';
1017
1022
  };
1018
1023
  }
1024
+ export namespace Emulation {
1025
+ export type SetLocaleOverride = {
1026
+ method: 'emulation.setLocaleOverride';
1027
+ params: Emulation.SetLocaleOverrideParameters;
1028
+ };
1029
+ }
1030
+ export namespace Emulation {
1031
+ export type SetLocaleOverrideParameters = {
1032
+ locale: string | null;
1033
+ contexts?: [
1034
+ BrowsingContext.BrowsingContext,
1035
+ ...BrowsingContext.BrowsingContext[],
1036
+ ];
1037
+ userContexts?: [Browser.UserContext, ...Browser.UserContext[]];
1038
+ };
1039
+ }
1040
+ export namespace Emulation {
1041
+ export type SetScreenOrientationOverride = {
1042
+ method: 'emulation.setScreenOrientationOverride';
1043
+ params: Emulation.SetScreenOrientationOverrideParameters;
1044
+ };
1045
+ }
1046
+ export namespace Emulation {
1047
+ export const enum ScreenOrientationNatural {
1048
+ Portrait = 'portrait',
1049
+ Landscape = 'landscape',
1050
+ }
1051
+ }
1052
+ export namespace Emulation {
1053
+ export type ScreenOrientationType =
1054
+ | 'portrait-primary'
1055
+ | 'portrait-secondary'
1056
+ | 'landscape-primary'
1057
+ | 'landscape-secondary';
1058
+ }
1059
+ export namespace Emulation {
1060
+ export type ScreenOrientation = {
1061
+ natural: Emulation.ScreenOrientationNatural;
1062
+ type: Emulation.ScreenOrientationType;
1063
+ };
1064
+ }
1065
+ export namespace Emulation {
1066
+ export type SetScreenOrientationOverrideParameters = {
1067
+ screenOrientation: Emulation.ScreenOrientation | null;
1068
+ contexts?: [
1069
+ BrowsingContext.BrowsingContext,
1070
+ ...BrowsingContext.BrowsingContext[],
1071
+ ];
1072
+ userContexts?: [Browser.UserContext, ...Browser.UserContext[]];
1073
+ };
1074
+ }
1019
1075
  export type NetworkCommand =
1076
+ | Network.AddDataCollector
1020
1077
  | Network.AddIntercept
1021
1078
  | Network.ContinueRequest
1022
1079
  | Network.ContinueResponse
1023
1080
  | Network.ContinueWithAuth
1024
1081
  | Network.FailRequest
1082
+ | Network.GetData
1025
1083
  | Network.ProvideResponse
1084
+ | Network.RemoveDataCollector
1026
1085
  | Network.RemoveIntercept
1027
1086
  | Network.SetCacheBehavior;
1028
1087
  export type NetworkEvent =
@@ -1056,6 +1115,11 @@ export namespace Network {
1056
1115
  intercepts?: [Network.Intercept, ...Network.Intercept[]];
1057
1116
  };
1058
1117
  }
1118
+ export namespace Network {
1119
+ export const enum DataType {
1120
+ Response = 'response',
1121
+ }
1122
+ }
1059
1123
  export namespace Network {
1060
1124
  export type BytesValue = Network.StringValue | Network.Base64Value;
1061
1125
  }
@@ -1071,11 +1135,20 @@ export namespace Network {
1071
1135
  value: string;
1072
1136
  };
1073
1137
  }
1138
+ export namespace Network {
1139
+ export type Collector = string;
1140
+ }
1141
+ export namespace Network {
1142
+ export const enum CollectorType {
1143
+ Blob = 'blob',
1144
+ }
1145
+ }
1074
1146
  export namespace Network {
1075
1147
  export const enum SameSite {
1076
1148
  Strict = 'strict',
1077
1149
  Lax = 'lax',
1078
1150
  None = 'none',
1151
+ Default = 'default',
1079
1152
  }
1080
1153
  }
1081
1154
  export namespace Network {
@@ -1202,6 +1275,32 @@ export namespace Network {
1202
1275
  pattern: string;
1203
1276
  };
1204
1277
  }
1278
+ export namespace Network {
1279
+ export type AddDataCollector = {
1280
+ method: 'network.addDataCollector';
1281
+ params: Network.AddDataCollectorParameters;
1282
+ };
1283
+ }
1284
+ export namespace Network {
1285
+ export type AddDataCollectorParameters = {
1286
+ dataTypes: [Network.DataType, ...Network.DataType[]];
1287
+ maxEncodedDataSize: JsUint;
1288
+ /**
1289
+ * @defaultValue `"blob"`
1290
+ */
1291
+ collectorType?: Network.CollectorType;
1292
+ contexts?: [
1293
+ BrowsingContext.BrowsingContext,
1294
+ ...BrowsingContext.BrowsingContext[],
1295
+ ];
1296
+ userContexts?: [Browser.UserContext, ...Browser.UserContext[]];
1297
+ };
1298
+ }
1299
+ export namespace Network {
1300
+ export type AddDataCollectorResult = {
1301
+ collector: Network.Collector;
1302
+ };
1303
+ }
1205
1304
  export namespace Network {
1206
1305
  export type AddInterceptParameters = {
1207
1306
  phases: [Network.InterceptPhase, ...Network.InterceptPhase[]];
@@ -1287,6 +1386,19 @@ export namespace Network {
1287
1386
  action: 'default' | 'cancel';
1288
1387
  };
1289
1388
  }
1389
+ export namespace Network {
1390
+ export type DisownData = {
1391
+ method: 'network.disownData';
1392
+ params: Network.DisownDataParameters;
1393
+ };
1394
+ }
1395
+ export namespace Network {
1396
+ export type DisownDataParameters = {
1397
+ dataType: Network.DataType;
1398
+ collector: Network.Collector;
1399
+ request: Network.Request;
1400
+ };
1401
+ }
1290
1402
  export namespace Network {
1291
1403
  export type FailRequest = {
1292
1404
  method: 'network.failRequest';
@@ -1298,6 +1410,28 @@ export namespace Network {
1298
1410
  request: Network.Request;
1299
1411
  };
1300
1412
  }
1413
+ export namespace Network {
1414
+ export type GetData = {
1415
+ method: 'network.getData';
1416
+ params: Network.GetDataParameters;
1417
+ };
1418
+ }
1419
+ export namespace Network {
1420
+ export type GetDataParameters = {
1421
+ dataType: Network.DataType;
1422
+ collector?: Network.Collector;
1423
+ /**
1424
+ * @defaultValue `false`
1425
+ */
1426
+ disown?: boolean;
1427
+ request: Network.Request;
1428
+ };
1429
+ }
1430
+ export namespace Script {
1431
+ export type GetDataResult = {
1432
+ bytes: Network.BytesValue;
1433
+ };
1434
+ }
1301
1435
  export namespace Network {
1302
1436
  export type ProvideResponse = {
1303
1437
  method: 'network.provideResponse';
@@ -1314,6 +1448,17 @@ export namespace Network {
1314
1448
  statusCode?: JsUint;
1315
1449
  };
1316
1450
  }
1451
+ export namespace Network {
1452
+ export type RemoveDataCollector = {
1453
+ method: 'network.removeDataCollector';
1454
+ params: Network.RemoveDataCollectorParameters;
1455
+ };
1456
+ }
1457
+ export namespace Network {
1458
+ export type RemoveDataCollectorParameters = {
1459
+ collector: Network.Collector;
1460
+ };
1461
+ }
1317
1462
  export namespace Network {
1318
1463
  export type RemoveIntercept = {
1319
1464
  method: 'network.removeIntercept';