webdriver-bidi-protocol 0.2.2 → 0.2.4

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.
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "0.2.2"
2
+ ".": "0.2.4"
3
3
  }
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.2.4](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/compare/webdriver-bidi-protocol-v0.2.3...webdriver-bidi-protocol-v0.2.4) (2025-08-01)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * add latest commands to the mapping ([#207](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/207)) ([d53fd56](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/d53fd56538f068a88900475955a54a4ea74bf305))
9
+
10
+ ## [0.2.3](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/compare/webdriver-bidi-protocol-v0.2.2...webdriver-bidi-protocol-v0.2.3) (2025-08-01)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * re-generate types based on specifciation updates ([#202](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/202)) ([db6f116](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/db6f116160068345715e17c686f9ddf3bf53423f))
16
+ * re-generate types based on specifciation updates ([#205](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/205)) ([8e75f89](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/8e75f892bdbce2360b271b4197154d9db65bb35a))
17
+
3
18
  ## [0.2.2](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/compare/webdriver-bidi-protocol-v0.2.1...webdriver-bidi-protocol-v0.2.2) (2025-07-14)
4
19
 
5
20
 
package/out/gen/main.d.ts CHANGED
@@ -950,9 +950,33 @@ export declare namespace BrowsingContext {
950
950
  };
951
951
  }
952
952
  export type EmulationCommand =
953
+ | Emulation.SetForcedColorsModeThemeOverride
953
954
  | Emulation.SetGeolocationOverride
954
955
  | Emulation.SetLocaleOverride
955
- | Emulation.SetScreenOrientationOverride;
956
+ | Emulation.SetScreenOrientationOverride
957
+ | Emulation.SetTimezoneOverride;
958
+ export declare namespace Emulation {
959
+ type SetForcedColorsModeThemeOverride = {
960
+ method: 'emulation.setForcedColorsModeThemeOverride';
961
+ params: Emulation.SetForcedColorsModeThemeOverrideParameters;
962
+ };
963
+ }
964
+ export declare namespace Emulation {
965
+ type SetForcedColorsModeThemeOverrideParameters = {
966
+ theme: Emulation.ForcedColorsModeTheme | null;
967
+ contexts?: [
968
+ BrowsingContext.BrowsingContext,
969
+ ...BrowsingContext.BrowsingContext[],
970
+ ];
971
+ userContexts?: [Browser.UserContext, ...Browser.UserContext[]];
972
+ };
973
+ }
974
+ export declare namespace Emulation {
975
+ const enum ForcedColorsModeTheme {
976
+ Light = 'light',
977
+ Dark = 'dark',
978
+ }
979
+ }
956
980
  export declare namespace Emulation {
957
981
  type SetGeolocationOverride = {
958
982
  method: 'emulation.setGeolocationOverride';
@@ -1071,6 +1095,22 @@ export declare namespace Emulation {
1071
1095
  userContexts?: [Browser.UserContext, ...Browser.UserContext[]];
1072
1096
  };
1073
1097
  }
1098
+ export declare namespace Emulation {
1099
+ type SetTimezoneOverride = {
1100
+ method: 'emulation.setTimezoneOverride';
1101
+ params: Emulation.SetTimezoneOverrideParameters;
1102
+ };
1103
+ }
1104
+ export declare namespace Emulation {
1105
+ type SetTimezoneOverrideParameters = {
1106
+ timezone: string | null;
1107
+ contexts?: [
1108
+ BrowsingContext.BrowsingContext,
1109
+ ...BrowsingContext.BrowsingContext[],
1110
+ ];
1111
+ userContexts?: [Browser.UserContext, ...Browser.UserContext[]];
1112
+ };
1113
+ }
1074
1114
  export type NetworkCommand =
1075
1115
  | Network.AddDataCollector
1076
1116
  | Network.AddIntercept
@@ -1083,7 +1123,8 @@ export type NetworkCommand =
1083
1123
  | Network.ProvideResponse
1084
1124
  | Network.RemoveDataCollector
1085
1125
  | Network.RemoveIntercept
1086
- | Network.SetCacheBehavior;
1126
+ | Network.SetCacheBehavior
1127
+ | Network.SetExtraHeaders;
1087
1128
  export type NetworkEvent =
1088
1129
  | Network.AuthRequired
1089
1130
  | Network.BeforeRequestSent
@@ -1115,11 +1156,6 @@ export declare namespace Network {
1115
1156
  intercepts?: [Network.Intercept, ...Network.Intercept[]];
1116
1157
  };
1117
1158
  }
1118
- export declare namespace Network {
1119
- const enum DataType {
1120
- Response = 'response',
1121
- }
1122
- }
1123
1159
  export declare namespace Network {
1124
1160
  type BytesValue = Network.StringValue | Network.Base64Value;
1125
1161
  }
@@ -1170,6 +1206,11 @@ export declare namespace Network {
1170
1206
  value: Network.BytesValue;
1171
1207
  };
1172
1208
  }
1209
+ export declare namespace Network {
1210
+ const enum DataType {
1211
+ Response = 'response',
1212
+ }
1213
+ }
1173
1214
  export declare namespace Network {
1174
1215
  type FetchTimingInfo = {
1175
1216
  timeOrigin: number;
@@ -1485,6 +1526,22 @@ export declare namespace Network {
1485
1526
  ];
1486
1527
  };
1487
1528
  }
1529
+ export declare namespace Network {
1530
+ type SetExtraHeaders = {
1531
+ method: 'network.setExtraHeaders';
1532
+ params: Network.SetExtraHeadersParameters;
1533
+ };
1534
+ }
1535
+ export declare namespace Network {
1536
+ type SetExtraHeadersParameters = {
1537
+ headers: [Network.Header, ...Network.Header[]];
1538
+ contexts?: [
1539
+ BrowsingContext.BrowsingContext,
1540
+ ...BrowsingContext.BrowsingContext[],
1541
+ ];
1542
+ userContexts?: [Browser.UserContext, ...Browser.UserContext[]];
1543
+ };
1544
+ }
1488
1545
  export type ScriptEvent =
1489
1546
  | Script.Message
1490
1547
  | Script.RealmCreated
package/out/index.d.ts CHANGED
@@ -15,7 +15,10 @@ export type Command =
15
15
  | BidiBluetooth.Bluetooth.SimulateAdapter
16
16
  | BidiBluetooth.Bluetooth.HandleRequestDevicePrompt
17
17
  | BidiBluetooth.Bluetooth.SimulateAdvertisement
18
- | BidiBluetooth.Bluetooth.SimulatePreconnectedPeripheral;
18
+ | BidiBluetooth.Bluetooth.SimulatePreconnectedPeripheral
19
+ | BidiBluetooth.Bluetooth.DisableSimulation
20
+ | BidiBluetooth.Bluetooth.SimulateGattDisconnection
21
+ | BidiBluetooth.Bluetooth.SimulateDescriptorResponse;
19
22
  export type Event =
20
23
  | Bidi.Event
21
24
  | ({
@@ -27,6 +30,10 @@ export interface Commands {
27
30
  params: BidiBluetooth.Bluetooth.HandleRequestDevicePromptParameters;
28
31
  returnType: Bidi.EmptyResult;
29
32
  };
33
+ 'bluetooth.disableSimulation': {
34
+ params: BidiBluetooth.Bluetooth.DisableSimulationParameters;
35
+ returnType: Bidi.EmptyResult;
36
+ };
30
37
  'bluetooth.simulateAdapter': {
31
38
  params: BidiBluetooth.Bluetooth.SimulateAdapterParameters;
32
39
  returnType: Bidi.EmptyResult;
@@ -36,13 +43,29 @@ export interface Commands {
36
43
  returnType: Bidi.EmptyResult;
37
44
  };
38
45
  'bluetooth.simulatePreconnectedPeripheral': {
39
- params: BidiBluetooth.Bluetooth.SimulatePreconnectedPeripheral;
46
+ params: BidiBluetooth.Bluetooth.SimulatePreconnectedPeripheralParameters;
47
+ returnType: Bidi.EmptyResult;
48
+ };
49
+ 'bluetooth.simulateGattDisconnection': {
50
+ params: BidiBluetooth.Bluetooth.SimulateGattDisconnectionParameters;
51
+ returnType: Bidi.EmptyResult;
52
+ };
53
+ 'bluetooth.simulateDescriptor': {
54
+ params: BidiBluetooth.Bluetooth.SimulateDescriptorParameters;
55
+ returnType: Bidi.EmptyResult;
56
+ };
57
+ 'bluetooth.simulateDescriptorResponse': {
58
+ params: BidiBluetooth.Bluetooth.SimulateDescriptorResponseParameters;
40
59
  returnType: Bidi.EmptyResult;
41
60
  };
42
61
  'browser.close': {
43
62
  params: Bidi.EmptyParams;
44
63
  returnType: Bidi.EmptyResult;
45
64
  };
65
+ 'browser.getgetClientWindows': {
66
+ params: Bidi.EmptyParams;
67
+ returnType: Bidi.Browser.GetClientWindowsResult;
68
+ };
46
69
  'browser.createUserContext': {
47
70
  params: Bidi.EmptyParams;
48
71
  returnType: Bidi.Browser.CreateUserContextResult;
@@ -57,6 +80,10 @@ export interface Commands {
57
80
  };
58
81
  returnType: Bidi.Browser.RemoveUserContext;
59
82
  };
83
+ 'browser.setClientWindowState': {
84
+ params: Bidi.Browser.SetClientWindowStateParameters;
85
+ returnType: Bidi.Browser.ClientWindowInfo;
86
+ };
60
87
  'browsingContext.activate': {
61
88
  params: Bidi.BrowsingContext.ActivateParameters;
62
89
  returnType: Bidi.EmptyResult;
@@ -105,6 +132,22 @@ export interface Commands {
105
132
  params: Bidi.BrowsingContext.TraverseHistoryParameters;
106
133
  returnType: Bidi.EmptyResult;
107
134
  };
135
+ 'emulation.setForcedColorsModeThemeOverride': {
136
+ params: Bidi.Emulation.SetForcedColorsModeThemeOverrideParameters;
137
+ returnType: Bidi.EmptyResult;
138
+ };
139
+ 'emulation.setGeolocationOverride': {
140
+ params: Bidi.Emulation.SetGeolocationOverrideParameters;
141
+ returnType: Bidi.EmptyResult;
142
+ };
143
+ 'emulation.setScreenOrientationOverride': {
144
+ params: Bidi.Emulation.SetScreenOrientationOverrideParameters;
145
+ returnType: Bidi.EmptyResult;
146
+ };
147
+ 'emulation.setTimezoneOverride': {
148
+ params: Bidi.Emulation.SetTimezoneOverrideParameters;
149
+ returnType: Bidi.EmptyResult;
150
+ };
108
151
  'input.performActions': {
109
152
  params: Bidi.Input.PerformActionsParameters;
110
153
  returnType: Bidi.EmptyResult;
@@ -173,6 +216,10 @@ export interface Commands {
173
216
  params: Bidi.Storage.SetCookieParameters;
174
217
  returnType: Bidi.Storage.SetCookieParameters;
175
218
  };
219
+ 'network.addDataCollector': {
220
+ params: Bidi.Network.AddDataCollectorParameters;
221
+ returnType: Bidi.Network.AddDataCollectorResult;
222
+ };
176
223
  'network.addIntercept': {
177
224
  params: Bidi.Network.AddInterceptParameters;
178
225
  returnType: Bidi.Network.AddInterceptResult;
@@ -197,6 +244,22 @@ export interface Commands {
197
244
  params: Bidi.Network.ProvideResponseParameters;
198
245
  returnType: Bidi.EmptyResult;
199
246
  };
247
+ 'network.disownData': {
248
+ params: Bidi.Network.DisownDataParameters;
249
+ returnType: Bidi.EmptyResult;
250
+ };
251
+ 'network.getData': {
252
+ params: Bidi.Network.GetDataParameters;
253
+ returnType: Bidi.Network.GetDataResult;
254
+ };
255
+ 'network.setCacheBehavior': {
256
+ params: Bidi.Network.SetCacheBehaviorParameters;
257
+ returnType: Bidi.EmptyResult;
258
+ };
259
+ 'network.setExtraHeaders': {
260
+ params: Bidi.Network.SetExtraHeadersParameters;
261
+ returnType: Bidi.EmptyResult;
262
+ };
200
263
  'webExtension.install': {
201
264
  params: Bidi.WebExtension.InstallParameters;
202
265
  returnType: Bidi.WebExtension.InstallResult;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webdriver-bidi-protocol",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "description": "",
5
5
  "main": "out/index.js",
6
6
  "types": "out/index.d.ts",
package/src/gen/main.ts CHANGED
@@ -952,9 +952,33 @@ export namespace BrowsingContext {
952
952
  };
953
953
  }
954
954
  export type EmulationCommand =
955
+ | Emulation.SetForcedColorsModeThemeOverride
955
956
  | Emulation.SetGeolocationOverride
956
957
  | Emulation.SetLocaleOverride
957
- | Emulation.SetScreenOrientationOverride;
958
+ | Emulation.SetScreenOrientationOverride
959
+ | Emulation.SetTimezoneOverride;
960
+ export namespace Emulation {
961
+ export type SetForcedColorsModeThemeOverride = {
962
+ method: 'emulation.setForcedColorsModeThemeOverride';
963
+ params: Emulation.SetForcedColorsModeThemeOverrideParameters;
964
+ };
965
+ }
966
+ export namespace Emulation {
967
+ export type SetForcedColorsModeThemeOverrideParameters = {
968
+ theme: Emulation.ForcedColorsModeTheme | null;
969
+ contexts?: [
970
+ BrowsingContext.BrowsingContext,
971
+ ...BrowsingContext.BrowsingContext[],
972
+ ];
973
+ userContexts?: [Browser.UserContext, ...Browser.UserContext[]];
974
+ };
975
+ }
976
+ export namespace Emulation {
977
+ export const enum ForcedColorsModeTheme {
978
+ Light = 'light',
979
+ Dark = 'dark',
980
+ }
981
+ }
958
982
  export namespace Emulation {
959
983
  export type SetGeolocationOverride = {
960
984
  method: 'emulation.setGeolocationOverride';
@@ -1073,6 +1097,22 @@ export namespace Emulation {
1073
1097
  userContexts?: [Browser.UserContext, ...Browser.UserContext[]];
1074
1098
  };
1075
1099
  }
1100
+ export namespace Emulation {
1101
+ export type SetTimezoneOverride = {
1102
+ method: 'emulation.setTimezoneOverride';
1103
+ params: Emulation.SetTimezoneOverrideParameters;
1104
+ };
1105
+ }
1106
+ export namespace Emulation {
1107
+ export type SetTimezoneOverrideParameters = {
1108
+ timezone: string | null;
1109
+ contexts?: [
1110
+ BrowsingContext.BrowsingContext,
1111
+ ...BrowsingContext.BrowsingContext[],
1112
+ ];
1113
+ userContexts?: [Browser.UserContext, ...Browser.UserContext[]];
1114
+ };
1115
+ }
1076
1116
  export type NetworkCommand =
1077
1117
  | Network.AddDataCollector
1078
1118
  | Network.AddIntercept
@@ -1085,7 +1125,8 @@ export type NetworkCommand =
1085
1125
  | Network.ProvideResponse
1086
1126
  | Network.RemoveDataCollector
1087
1127
  | Network.RemoveIntercept
1088
- | Network.SetCacheBehavior;
1128
+ | Network.SetCacheBehavior
1129
+ | Network.SetExtraHeaders;
1089
1130
  export type NetworkEvent =
1090
1131
  | Network.AuthRequired
1091
1132
  | Network.BeforeRequestSent
@@ -1117,11 +1158,6 @@ export namespace Network {
1117
1158
  intercepts?: [Network.Intercept, ...Network.Intercept[]];
1118
1159
  };
1119
1160
  }
1120
- export namespace Network {
1121
- export const enum DataType {
1122
- Response = 'response',
1123
- }
1124
- }
1125
1161
  export namespace Network {
1126
1162
  export type BytesValue = Network.StringValue | Network.Base64Value;
1127
1163
  }
@@ -1172,6 +1208,11 @@ export namespace Network {
1172
1208
  value: Network.BytesValue;
1173
1209
  };
1174
1210
  }
1211
+ export namespace Network {
1212
+ export const enum DataType {
1213
+ Response = 'response',
1214
+ }
1215
+ }
1175
1216
  export namespace Network {
1176
1217
  export type FetchTimingInfo = {
1177
1218
  timeOrigin: number;
@@ -1487,6 +1528,22 @@ export namespace Network {
1487
1528
  ];
1488
1529
  };
1489
1530
  }
1531
+ export namespace Network {
1532
+ export type SetExtraHeaders = {
1533
+ method: 'network.setExtraHeaders';
1534
+ params: Network.SetExtraHeadersParameters;
1535
+ };
1536
+ }
1537
+ export namespace Network {
1538
+ export type SetExtraHeadersParameters = {
1539
+ headers: [Network.Header, ...Network.Header[]];
1540
+ contexts?: [
1541
+ BrowsingContext.BrowsingContext,
1542
+ ...BrowsingContext.BrowsingContext[],
1543
+ ];
1544
+ userContexts?: [Browser.UserContext, ...Browser.UserContext[]];
1545
+ };
1546
+ }
1490
1547
  export type ScriptEvent =
1491
1548
  | Script.Message
1492
1549
  | Script.RealmCreated
package/src/index.ts CHANGED
@@ -18,7 +18,10 @@ export type Command =
18
18
  | BidiBluetooth.Bluetooth.SimulateAdapter
19
19
  | BidiBluetooth.Bluetooth.HandleRequestDevicePrompt
20
20
  | BidiBluetooth.Bluetooth.SimulateAdvertisement
21
- | BidiBluetooth.Bluetooth.SimulatePreconnectedPeripheral;
21
+ | BidiBluetooth.Bluetooth.SimulatePreconnectedPeripheral
22
+ | BidiBluetooth.Bluetooth.DisableSimulation
23
+ | BidiBluetooth.Bluetooth.SimulateGattDisconnection
24
+ | BidiBluetooth.Bluetooth.SimulateDescriptorResponse;
22
25
  export type Event =
23
26
  | Bidi.Event
24
27
  | ({
@@ -32,6 +35,10 @@ export interface Commands {
32
35
  params: BidiBluetooth.Bluetooth.HandleRequestDevicePromptParameters;
33
36
  returnType: Bidi.EmptyResult;
34
37
  };
38
+ 'bluetooth.disableSimulation': {
39
+ params: BidiBluetooth.Bluetooth.DisableSimulationParameters;
40
+ returnType: Bidi.EmptyResult;
41
+ };
35
42
  'bluetooth.simulateAdapter': {
36
43
  params: BidiBluetooth.Bluetooth.SimulateAdapterParameters;
37
44
  returnType: Bidi.EmptyResult;
@@ -41,7 +48,19 @@ export interface Commands {
41
48
  returnType: Bidi.EmptyResult;
42
49
  };
43
50
  'bluetooth.simulatePreconnectedPeripheral': {
44
- params: BidiBluetooth.Bluetooth.SimulatePreconnectedPeripheral;
51
+ params: BidiBluetooth.Bluetooth.SimulatePreconnectedPeripheralParameters;
52
+ returnType: Bidi.EmptyResult;
53
+ };
54
+ 'bluetooth.simulateGattDisconnection': {
55
+ params: BidiBluetooth.Bluetooth.SimulateGattDisconnectionParameters;
56
+ returnType: Bidi.EmptyResult;
57
+ };
58
+ 'bluetooth.simulateDescriptor': {
59
+ params: BidiBluetooth.Bluetooth.SimulateDescriptorParameters;
60
+ returnType: Bidi.EmptyResult;
61
+ };
62
+ 'bluetooth.simulateDescriptorResponse': {
63
+ params: BidiBluetooth.Bluetooth.SimulateDescriptorResponseParameters;
45
64
  returnType: Bidi.EmptyResult;
46
65
  };
47
66
 
@@ -49,6 +68,10 @@ export interface Commands {
49
68
  params: Bidi.EmptyParams;
50
69
  returnType: Bidi.EmptyResult;
51
70
  };
71
+ 'browser.getgetClientWindows': {
72
+ params: Bidi.EmptyParams;
73
+ returnType: Bidi.Browser.GetClientWindowsResult;
74
+ };
52
75
  'browser.createUserContext': {
53
76
  params: Bidi.EmptyParams;
54
77
  returnType: Bidi.Browser.CreateUserContextResult;
@@ -63,6 +86,10 @@ export interface Commands {
63
86
  };
64
87
  returnType: Bidi.Browser.RemoveUserContext;
65
88
  };
89
+ 'browser.setClientWindowState': {
90
+ params: Bidi.Browser.SetClientWindowStateParameters;
91
+ returnType: Bidi.Browser.ClientWindowInfo;
92
+ };
66
93
 
67
94
  'browsingContext.activate': {
68
95
  params: Bidi.BrowsingContext.ActivateParameters;
@@ -113,6 +140,23 @@ export interface Commands {
113
140
  returnType: Bidi.EmptyResult;
114
141
  };
115
142
 
143
+ 'emulation.setForcedColorsModeThemeOverride': {
144
+ params: Bidi.Emulation.SetForcedColorsModeThemeOverrideParameters;
145
+ returnType: Bidi.EmptyResult;
146
+ };
147
+ 'emulation.setGeolocationOverride': {
148
+ params: Bidi.Emulation.SetGeolocationOverrideParameters;
149
+ returnType: Bidi.EmptyResult;
150
+ };
151
+ 'emulation.setScreenOrientationOverride': {
152
+ params: Bidi.Emulation.SetScreenOrientationOverrideParameters;
153
+ returnType: Bidi.EmptyResult;
154
+ };
155
+ 'emulation.setTimezoneOverride': {
156
+ params: Bidi.Emulation.SetTimezoneOverrideParameters;
157
+ returnType: Bidi.EmptyResult;
158
+ };
159
+
116
160
  'input.performActions': {
117
161
  params: Bidi.Input.PerformActionsParameters;
118
162
  returnType: Bidi.EmptyResult;
@@ -186,6 +230,10 @@ export interface Commands {
186
230
  returnType: Bidi.Storage.SetCookieParameters;
187
231
  };
188
232
 
233
+ 'network.addDataCollector': {
234
+ params: Bidi.Network.AddDataCollectorParameters;
235
+ returnType: Bidi.Network.AddDataCollectorResult;
236
+ };
189
237
  'network.addIntercept': {
190
238
  params: Bidi.Network.AddInterceptParameters;
191
239
  returnType: Bidi.Network.AddInterceptResult;
@@ -210,6 +258,22 @@ export interface Commands {
210
258
  params: Bidi.Network.ProvideResponseParameters;
211
259
  returnType: Bidi.EmptyResult;
212
260
  };
261
+ 'network.disownData': {
262
+ params: Bidi.Network.DisownDataParameters;
263
+ returnType: Bidi.EmptyResult;
264
+ };
265
+ 'network.getData': {
266
+ params: Bidi.Network.GetDataParameters;
267
+ returnType: Bidi.Network.GetDataResult;
268
+ };
269
+ 'network.setCacheBehavior': {
270
+ params: Bidi.Network.SetCacheBehaviorParameters;
271
+ returnType: Bidi.EmptyResult;
272
+ };
273
+ 'network.setExtraHeaders': {
274
+ params: Bidi.Network.SetExtraHeadersParameters;
275
+ returnType: Bidi.EmptyResult;
276
+ };
213
277
 
214
278
  'webExtension.install': {
215
279
  params: Bidi.WebExtension.InstallParameters;