Skip to content

Commit d53fd56

Browse files
authored
fix: add latest commands to the mapping (GoogleChromeLabs#207)
1 parent 336e5a0 commit d53fd56

File tree

2 files changed

+131
-4
lines changed

2 files changed

+131
-4
lines changed

out/index.d.ts

Lines changed: 65 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ export type Command =
1515
| BidiBluetooth.Bluetooth.SimulateAdapter
1616
| BidiBluetooth.Bluetooth.HandleRequestDevicePrompt
1717
| BidiBluetooth.Bluetooth.SimulateAdvertisement
18-
| BidiBluetooth.Bluetooth.SimulatePreconnectedPeripheral;
18+
| BidiBluetooth.Bluetooth.SimulatePreconnectedPeripheral
19+
| BidiBluetooth.Bluetooth.DisableSimulation
20+
| BidiBluetooth.Bluetooth.SimulateGattDisconnection
21+
| BidiBluetooth.Bluetooth.SimulateDescriptorResponse;
1922
export type Event =
2023
| Bidi.Event
2124
| ({
@@ -27,6 +30,10 @@ export interface Commands {
2730
params: BidiBluetooth.Bluetooth.HandleRequestDevicePromptParameters;
2831
returnType: Bidi.EmptyResult;
2932
};
33+
'bluetooth.disableSimulation': {
34+
params: BidiBluetooth.Bluetooth.DisableSimulationParameters;
35+
returnType: Bidi.EmptyResult;
36+
};
3037
'bluetooth.simulateAdapter': {
3138
params: BidiBluetooth.Bluetooth.SimulateAdapterParameters;
3239
returnType: Bidi.EmptyResult;
@@ -36,13 +43,29 @@ export interface Commands {
3643
returnType: Bidi.EmptyResult;
3744
};
3845
'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;
4059
returnType: Bidi.EmptyResult;
4160
};
4261
'browser.close': {
4362
params: Bidi.EmptyParams;
4463
returnType: Bidi.EmptyResult;
4564
};
65+
'browser.getgetClientWindows': {
66+
params: Bidi.EmptyParams;
67+
returnType: Bidi.Browser.GetClientWindowsResult;
68+
};
4669
'browser.createUserContext': {
4770
params: Bidi.EmptyParams;
4871
returnType: Bidi.Browser.CreateUserContextResult;
@@ -57,6 +80,10 @@ export interface Commands {
5780
};
5881
returnType: Bidi.Browser.RemoveUserContext;
5982
};
83+
'browser.setClientWindowState': {
84+
params: Bidi.Browser.SetClientWindowStateParameters;
85+
returnType: Bidi.Browser.ClientWindowInfo;
86+
};
6087
'browsingContext.activate': {
6188
params: Bidi.BrowsingContext.ActivateParameters;
6289
returnType: Bidi.EmptyResult;
@@ -105,6 +132,22 @@ export interface Commands {
105132
params: Bidi.BrowsingContext.TraverseHistoryParameters;
106133
returnType: Bidi.EmptyResult;
107134
};
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+
};
108151
'input.performActions': {
109152
params: Bidi.Input.PerformActionsParameters;
110153
returnType: Bidi.EmptyResult;
@@ -173,6 +216,10 @@ export interface Commands {
173216
params: Bidi.Storage.SetCookieParameters;
174217
returnType: Bidi.Storage.SetCookieParameters;
175218
};
219+
'network.addDataCollector': {
220+
params: Bidi.Network.AddDataCollectorParameters;
221+
returnType: Bidi.Network.AddDataCollectorResult;
222+
};
176223
'network.addIntercept': {
177224
params: Bidi.Network.AddInterceptParameters;
178225
returnType: Bidi.Network.AddInterceptResult;
@@ -197,6 +244,22 @@ export interface Commands {
197244
params: Bidi.Network.ProvideResponseParameters;
198245
returnType: Bidi.EmptyResult;
199246
};
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+
};
200263
'webExtension.install': {
201264
params: Bidi.WebExtension.InstallParameters;
202265
returnType: Bidi.WebExtension.InstallResult;

src/index.ts

Lines changed: 66 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ export type Command =
1818
| BidiBluetooth.Bluetooth.SimulateAdapter
1919
| BidiBluetooth.Bluetooth.HandleRequestDevicePrompt
2020
| BidiBluetooth.Bluetooth.SimulateAdvertisement
21-
| BidiBluetooth.Bluetooth.SimulatePreconnectedPeripheral;
21+
| BidiBluetooth.Bluetooth.SimulatePreconnectedPeripheral
22+
| BidiBluetooth.Bluetooth.DisableSimulation
23+
| BidiBluetooth.Bluetooth.SimulateGattDisconnection
24+
| BidiBluetooth.Bluetooth.SimulateDescriptorResponse;
2225
export type Event =
2326
| Bidi.Event
2427
| ({
@@ -32,6 +35,10 @@ export interface Commands {
3235
params: BidiBluetooth.Bluetooth.HandleRequestDevicePromptParameters;
3336
returnType: Bidi.EmptyResult;
3437
};
38+
'bluetooth.disableSimulation': {
39+
params: BidiBluetooth.Bluetooth.DisableSimulationParameters;
40+
returnType: Bidi.EmptyResult;
41+
};
3542
'bluetooth.simulateAdapter': {
3643
params: BidiBluetooth.Bluetooth.SimulateAdapterParameters;
3744
returnType: Bidi.EmptyResult;
@@ -41,14 +48,30 @@ export interface Commands {
4148
returnType: Bidi.EmptyResult;
4249
};
4350
'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;
4564
returnType: Bidi.EmptyResult;
4665
};
4766

4867
'browser.close': {
4968
params: Bidi.EmptyParams;
5069
returnType: Bidi.EmptyResult;
5170
};
71+
'browser.getgetClientWindows': {
72+
params: Bidi.EmptyParams;
73+
returnType: Bidi.Browser.GetClientWindowsResult;
74+
};
5275
'browser.createUserContext': {
5376
params: Bidi.EmptyParams;
5477
returnType: Bidi.Browser.CreateUserContextResult;
@@ -63,6 +86,10 @@ export interface Commands {
6386
};
6487
returnType: Bidi.Browser.RemoveUserContext;
6588
};
89+
'browser.setClientWindowState': {
90+
params: Bidi.Browser.SetClientWindowStateParameters;
91+
returnType: Bidi.Browser.ClientWindowInfo;
92+
};
6693

6794
'browsingContext.activate': {
6895
params: Bidi.BrowsingContext.ActivateParameters;
@@ -113,6 +140,23 @@ export interface Commands {
113140
returnType: Bidi.EmptyResult;
114141
};
115142

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+
116160
'input.performActions': {
117161
params: Bidi.Input.PerformActionsParameters;
118162
returnType: Bidi.EmptyResult;
@@ -186,6 +230,10 @@ export interface Commands {
186230
returnType: Bidi.Storage.SetCookieParameters;
187231
};
188232

233+
'network.addDataCollector': {
234+
params: Bidi.Network.AddDataCollectorParameters;
235+
returnType: Bidi.Network.AddDataCollectorResult;
236+
};
189237
'network.addIntercept': {
190238
params: Bidi.Network.AddInterceptParameters;
191239
returnType: Bidi.Network.AddInterceptResult;
@@ -210,6 +258,22 @@ export interface Commands {
210258
params: Bidi.Network.ProvideResponseParameters;
211259
returnType: Bidi.EmptyResult;
212260
};
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+
};
213277

214278
'webExtension.install': {
215279
params: Bidi.WebExtension.InstallParameters;

0 commit comments

Comments
 (0)