webdriver-bidi-protocol 0.2.3 → 0.2.5

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.3"
2
+ ".": "0.2.5"
3
3
  }
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.2.5](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/compare/webdriver-bidi-protocol-v0.2.4...webdriver-bidi-protocol-v0.2.5) (2025-08-08)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * re-generate types based on specifciation updates ([#213](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/213)) ([eb37bb4](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/eb37bb4fb84ec00e23fe9bfa58dbb250abd2f040))
9
+
10
+ ## [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)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * 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))
16
+
3
17
  ## [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)
4
18
 
5
19
 
package/out/gen/main.d.ts CHANGED
@@ -1534,7 +1534,7 @@ export declare namespace Network {
1534
1534
  }
1535
1535
  export declare namespace Network {
1536
1536
  type SetExtraHeadersParameters = {
1537
- headers: [Network.Header, ...Network.Header[]];
1537
+ headers: [...Network.Header[]];
1538
1538
  contexts?: [
1539
1539
  BrowsingContext.BrowsingContext,
1540
1540
  ...BrowsingContext.BrowsingContext[],
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.3",
3
+ "version": "0.2.5",
4
4
  "description": "",
5
5
  "main": "out/index.js",
6
6
  "types": "out/index.d.ts",
@@ -25,6 +25,6 @@
25
25
  "parse5": "^8.0.0",
26
26
  "prettier": "3.6.2",
27
27
  "tsd": "0.32.0",
28
- "typescript": "5.8.3"
28
+ "typescript": "5.9.2"
29
29
  }
30
30
  }
package/src/gen/main.ts CHANGED
@@ -1536,7 +1536,7 @@ export namespace Network {
1536
1536
  }
1537
1537
  export namespace Network {
1538
1538
  export type SetExtraHeadersParameters = {
1539
- headers: [Network.Header, ...Network.Header[]];
1539
+ headers: [...Network.Header[]];
1540
1540
  contexts?: [
1541
1541
  BrowsingContext.BrowsingContext,
1542
1542
  ...BrowsingContext.BrowsingContext[],
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;