webdriver-bidi-protocol 0.1.6 → 0.1.8
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.
- package/.github/dependabot.yml +1 -1
- package/.github/workflows/ci.yml +1 -1
- package/.github/workflows/regenerate.yml +2 -2
- package/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +17 -0
- package/out/gen/main.d.ts +92 -17
- package/out/gen/web-bluetooth.d.ts +19 -0
- package/package.json +1 -1
- package/src/gen/main.ts +92 -17
- package/src/gen/web-bluetooth.ts +19 -0
package/.github/dependabot.yml
CHANGED
package/.github/workflows/ci.yml
CHANGED
|
@@ -23,13 +23,13 @@ jobs:
|
|
|
23
23
|
with:
|
|
24
24
|
fetch-depth: 2
|
|
25
25
|
- name: Install cddlconv
|
|
26
|
-
run: cargo install cddlconv@0.1.
|
|
26
|
+
run: cargo install cddlconv@0.1.6
|
|
27
27
|
- name: Install dependencies
|
|
28
28
|
run: npm ci
|
|
29
29
|
- name: Build and test
|
|
30
30
|
run: npm test
|
|
31
31
|
- name: Create Pull Request
|
|
32
|
-
uses: peter-evans/create-pull-request@
|
|
32
|
+
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
|
|
33
33
|
with:
|
|
34
34
|
token: ${{ secrets.BROWSER_AUTOMATION_BOT_TOKEN }}
|
|
35
35
|
branch: regenerate
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.1.8](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/compare/webdriver-bidi-protocol-v0.1.7...webdriver-bidi-protocol-v0.1.8) (2025-04-04)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* 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))
|
|
9
|
+
* 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))
|
|
10
|
+
|
|
11
|
+
## [0.1.7](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/compare/webdriver-bidi-protocol-v0.1.6...webdriver-bidi-protocol-v0.1.7) (2025-03-06)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* 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))
|
|
17
|
+
* 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))
|
|
18
|
+
* 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))
|
|
19
|
+
|
|
3
20
|
## [0.1.6](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/compare/webdriver-bidi-protocol-v0.1.5...webdriver-bidi-protocol-v0.1.6) (2025-01-20)
|
|
4
21
|
|
|
5
22
|
|
package/out/gen/main.d.ts
CHANGED
|
@@ -13,12 +13,14 @@ export type CommandResponse = {
|
|
|
13
13
|
} & Extensible;
|
|
14
14
|
export type EventData =
|
|
15
15
|
| BrowsingContextEvent
|
|
16
|
+
| InputEvent
|
|
16
17
|
| LogEvent
|
|
17
18
|
| NetworkEvent
|
|
18
19
|
| ScriptEvent;
|
|
19
20
|
export type CommandData =
|
|
20
21
|
| BrowserCommand
|
|
21
22
|
| BrowsingContextCommand
|
|
23
|
+
| EmulationCommand
|
|
22
24
|
| InputCommand
|
|
23
25
|
| NetworkCommand
|
|
24
26
|
| ScriptCommand
|
|
@@ -94,8 +96,7 @@ export declare namespace Session {
|
|
|
94
96
|
| Session.DirectProxyConfiguration
|
|
95
97
|
| Session.ManualProxyConfiguration
|
|
96
98
|
| Session.PacProxyConfiguration
|
|
97
|
-
| Session.SystemProxyConfiguration
|
|
98
|
-
| Record<string, never>;
|
|
99
|
+
| Session.SystemProxyConfiguration;
|
|
99
100
|
}
|
|
100
101
|
export type SessionResult =
|
|
101
102
|
| Session.NewResult
|
|
@@ -163,6 +164,7 @@ export declare namespace Session {
|
|
|
163
164
|
beforeUnload?: Session.UserPromptHandlerType;
|
|
164
165
|
confirm?: Session.UserPromptHandlerType;
|
|
165
166
|
default?: Session.UserPromptHandlerType;
|
|
167
|
+
file?: Session.UserPromptHandlerType;
|
|
166
168
|
prompt?: Session.UserPromptHandlerType;
|
|
167
169
|
};
|
|
168
170
|
}
|
|
@@ -259,19 +261,21 @@ export declare namespace Session {
|
|
|
259
261
|
export declare namespace Session {
|
|
260
262
|
type Unsubscribe = {
|
|
261
263
|
method: 'session.unsubscribe';
|
|
262
|
-
params:
|
|
263
|
-
| Session.UnsubscribeByAttributesRequest
|
|
264
|
-
| Session.UnsubscribeByIdRequest;
|
|
264
|
+
params: Session.UnsubscribeParameters;
|
|
265
265
|
};
|
|
266
266
|
}
|
|
267
|
+
export declare namespace Session {
|
|
268
|
+
type UnsubscribeParameters =
|
|
269
|
+
| Session.UnsubscribeByAttributesRequest
|
|
270
|
+
| Session.UnsubscribeByIdRequest;
|
|
271
|
+
}
|
|
267
272
|
export type BrowserCommand =
|
|
268
273
|
| Browser.Close
|
|
269
274
|
| Browser.CreateUserContext
|
|
270
275
|
| Browser.GetClientWindows
|
|
271
276
|
| Browser.GetUserContexts
|
|
272
277
|
| Browser.RemoveUserContext
|
|
273
|
-
| Browser.SetClientWindowState
|
|
274
|
-
| Record<string, never>;
|
|
278
|
+
| Browser.SetClientWindowState;
|
|
275
279
|
export type BrowserResult =
|
|
276
280
|
| Browser.CreateUserContextResult
|
|
277
281
|
| Browser.GetUserContextsResult;
|
|
@@ -352,11 +356,9 @@ export declare namespace Browser {
|
|
|
352
356
|
};
|
|
353
357
|
}
|
|
354
358
|
export declare namespace Browser {
|
|
355
|
-
type SetClientWindowStateParameters =
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
} & Browser.ClientWindowNamedState)
|
|
359
|
-
| Browser.ClientWindowRectState;
|
|
359
|
+
type SetClientWindowStateParameters = {
|
|
360
|
+
clientWindow: Browser.ClientWindow;
|
|
361
|
+
} & (Browser.ClientWindowNamedState | Browser.ClientWindowRectState);
|
|
360
362
|
}
|
|
361
363
|
export declare namespace Browser {
|
|
362
364
|
type ClientWindowNamedState = {
|
|
@@ -394,6 +396,7 @@ export type BrowsingContextEvent =
|
|
|
394
396
|
| BrowsingContext.HistoryUpdated
|
|
395
397
|
| BrowsingContext.Load
|
|
396
398
|
| BrowsingContext.NavigationAborted
|
|
399
|
+
| BrowsingContext.NavigationCommitted
|
|
397
400
|
| BrowsingContext.NavigationFailed
|
|
398
401
|
| BrowsingContext.NavigationStarted
|
|
399
402
|
| BrowsingContext.UserPromptClosed
|
|
@@ -473,13 +476,16 @@ export declare namespace BrowsingContext {
|
|
|
473
476
|
type Navigation = string;
|
|
474
477
|
}
|
|
475
478
|
export declare namespace BrowsingContext {
|
|
476
|
-
type
|
|
479
|
+
type BaseNavigationInfo = {
|
|
477
480
|
context: BrowsingContext.BrowsingContext;
|
|
478
481
|
navigation: BrowsingContext.Navigation | null;
|
|
479
482
|
timestamp: JsUint;
|
|
480
483
|
url: string;
|
|
481
484
|
};
|
|
482
485
|
}
|
|
486
|
+
export declare namespace BrowsingContext {
|
|
487
|
+
type NavigationInfo = BrowsingContext.BaseNavigationInfo;
|
|
488
|
+
}
|
|
483
489
|
export declare namespace BrowsingContext {
|
|
484
490
|
const enum ReadinessState {
|
|
485
491
|
None = 'none',
|
|
@@ -774,12 +780,13 @@ export declare namespace BrowsingContext {
|
|
|
774
780
|
}
|
|
775
781
|
export declare namespace BrowsingContext {
|
|
776
782
|
type SetViewportParameters = {
|
|
777
|
-
context
|
|
783
|
+
context?: BrowsingContext.BrowsingContext;
|
|
778
784
|
viewport?: BrowsingContext.Viewport | null;
|
|
779
785
|
/**
|
|
780
786
|
* Must be greater than `0`.
|
|
781
787
|
*/
|
|
782
788
|
devicePixelRatio?: number | null;
|
|
789
|
+
userContexts?: [Browser.UserContext, ...Browser.UserContext[]];
|
|
783
790
|
};
|
|
784
791
|
}
|
|
785
792
|
export declare namespace BrowsingContext {
|
|
@@ -854,15 +861,26 @@ export declare namespace BrowsingContext {
|
|
|
854
861
|
export declare namespace BrowsingContext {
|
|
855
862
|
type DownloadWillBegin = {
|
|
856
863
|
method: 'browsingContext.downloadWillBegin';
|
|
857
|
-
params: BrowsingContext.
|
|
864
|
+
params: BrowsingContext.DownloadWillBeginParams;
|
|
858
865
|
};
|
|
859
866
|
}
|
|
867
|
+
export declare namespace BrowsingContext {
|
|
868
|
+
type DownloadWillBeginParams = {
|
|
869
|
+
suggestedFilename: string;
|
|
870
|
+
} & BrowsingContext.BaseNavigationInfo;
|
|
871
|
+
}
|
|
860
872
|
export declare namespace BrowsingContext {
|
|
861
873
|
type NavigationAborted = {
|
|
862
874
|
method: 'browsingContext.navigationAborted';
|
|
863
875
|
params: BrowsingContext.NavigationInfo;
|
|
864
876
|
};
|
|
865
877
|
}
|
|
878
|
+
export declare namespace BrowsingContext {
|
|
879
|
+
type NavigationCommitted = {
|
|
880
|
+
method: 'browsingContext.navigationCommitted';
|
|
881
|
+
params: BrowsingContext.NavigationInfo;
|
|
882
|
+
};
|
|
883
|
+
}
|
|
866
884
|
export declare namespace BrowsingContext {
|
|
867
885
|
type NavigationFailed = {
|
|
868
886
|
method: 'browsingContext.navigationFailed';
|
|
@@ -898,6 +916,49 @@ export declare namespace BrowsingContext {
|
|
|
898
916
|
defaultValue?: string;
|
|
899
917
|
};
|
|
900
918
|
}
|
|
919
|
+
export type EmulationCommand = Emulation.SetGeolocationOverride;
|
|
920
|
+
export declare namespace Emulation {
|
|
921
|
+
type SetGeolocationOverride = {
|
|
922
|
+
method: 'emulation.setGeolocationOverride';
|
|
923
|
+
params: Emulation.SetGeolocationOverrideParameters;
|
|
924
|
+
};
|
|
925
|
+
}
|
|
926
|
+
export declare namespace Emulation {
|
|
927
|
+
type SetGeolocationOverrideParameters = {
|
|
928
|
+
coordinates: Emulation.GeolocationCoordinates | null;
|
|
929
|
+
contexts?: [
|
|
930
|
+
BrowsingContext.BrowsingContext,
|
|
931
|
+
...BrowsingContext.BrowsingContext[],
|
|
932
|
+
];
|
|
933
|
+
userContexts?: [Browser.UserContext, ...Browser.UserContext[]];
|
|
934
|
+
};
|
|
935
|
+
}
|
|
936
|
+
export declare namespace Emulation {
|
|
937
|
+
type GeolocationCoordinates = {
|
|
938
|
+
latitude: number;
|
|
939
|
+
longitude: number;
|
|
940
|
+
/**
|
|
941
|
+
* @defaultValue `1`
|
|
942
|
+
*/
|
|
943
|
+
accuracy?: number;
|
|
944
|
+
/**
|
|
945
|
+
* @defaultValue `null`
|
|
946
|
+
*/
|
|
947
|
+
altitude?: number | null;
|
|
948
|
+
/**
|
|
949
|
+
* @defaultValue `null`
|
|
950
|
+
*/
|
|
951
|
+
altitudeAccuracy?: number | null;
|
|
952
|
+
/**
|
|
953
|
+
* @defaultValue `null`
|
|
954
|
+
*/
|
|
955
|
+
heading?: number | null;
|
|
956
|
+
/**
|
|
957
|
+
* @defaultValue `null`
|
|
958
|
+
*/
|
|
959
|
+
speed?: number | null;
|
|
960
|
+
};
|
|
961
|
+
}
|
|
901
962
|
export type NetworkCommand =
|
|
902
963
|
| Network.AddIntercept
|
|
903
964
|
| Network.ContinueRequest
|
|
@@ -2092,6 +2153,7 @@ export type InputCommand =
|
|
|
2092
2153
|
| Input.PerformActions
|
|
2093
2154
|
| Input.ReleaseActions
|
|
2094
2155
|
| Input.SetFiles;
|
|
2156
|
+
export type InputEvent = Input.FileDialogOpened;
|
|
2095
2157
|
export declare namespace Input {
|
|
2096
2158
|
type ElementOrigin = {
|
|
2097
2159
|
type: 'element';
|
|
@@ -2213,8 +2275,8 @@ export declare namespace Input {
|
|
|
2213
2275
|
export declare namespace Input {
|
|
2214
2276
|
type PointerMoveAction = {
|
|
2215
2277
|
type: 'pointerMove';
|
|
2216
|
-
x:
|
|
2217
|
-
y:
|
|
2278
|
+
x: number;
|
|
2279
|
+
y: number;
|
|
2218
2280
|
duration?: JsUint;
|
|
2219
2281
|
origin?: Input.Origin;
|
|
2220
2282
|
} & Input.PointerCommonProperties;
|
|
@@ -2298,6 +2360,19 @@ export declare namespace Input {
|
|
|
2298
2360
|
files: [...string[]];
|
|
2299
2361
|
};
|
|
2300
2362
|
}
|
|
2363
|
+
export declare namespace Input {
|
|
2364
|
+
type FileDialogOpened = {
|
|
2365
|
+
method: 'input.fileDialogOpened';
|
|
2366
|
+
params: Input.FileDialogInfo;
|
|
2367
|
+
};
|
|
2368
|
+
}
|
|
2369
|
+
export declare namespace Input {
|
|
2370
|
+
type FileDialogInfo = {
|
|
2371
|
+
context: BrowsingContext.BrowsingContext;
|
|
2372
|
+
element?: Script.SharedReference;
|
|
2373
|
+
multiple: boolean;
|
|
2374
|
+
};
|
|
2375
|
+
}
|
|
2301
2376
|
export type WebExtensionCommand = WebExtension.Install | WebExtension.Uninstall;
|
|
2302
2377
|
export type WebExtensionResult = WebExtension.InstallResult;
|
|
2303
2378
|
export declare namespace WebExtension {
|
|
@@ -27,6 +27,13 @@ export declare namespace Bluetooth {
|
|
|
27
27
|
manufacturerData?: [...Bluetooth.BluetoothManufacturerData[]];
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
|
+
export type BluetoothCommand =
|
|
31
|
+
| Bluetooth.HandleRequestDevicePrompt
|
|
32
|
+
| Bluetooth.SimulateAdapter
|
|
33
|
+
| Bluetooth.DisableSimulation
|
|
34
|
+
| Bluetooth.SimulatePreconnectedPeripheral
|
|
35
|
+
| Bluetooth.SimulateAdvertisement
|
|
36
|
+
| Record<string, never>;
|
|
30
37
|
export declare namespace Bluetooth {
|
|
31
38
|
type HandleRequestDevicePrompt = {
|
|
32
39
|
method: 'bluetooth.handleRequestDevicePrompt';
|
|
@@ -62,9 +69,21 @@ export declare namespace Bluetooth {
|
|
|
62
69
|
export declare namespace Bluetooth {
|
|
63
70
|
type SimulateAdapterParameters = {
|
|
64
71
|
context: string;
|
|
72
|
+
leSupported?: boolean;
|
|
65
73
|
state: 'absent' | 'powered-off' | 'powered-on';
|
|
66
74
|
};
|
|
67
75
|
}
|
|
76
|
+
export declare namespace Bluetooth {
|
|
77
|
+
type DisableSimulation = {
|
|
78
|
+
method: 'bluetooth.disableSimulation';
|
|
79
|
+
params: Bluetooth.DisableSimulationParameters;
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
export declare namespace Bluetooth {
|
|
83
|
+
type DisableSimulationParameters = {
|
|
84
|
+
context: string;
|
|
85
|
+
};
|
|
86
|
+
}
|
|
68
87
|
export declare namespace Bluetooth {
|
|
69
88
|
type SimulatePreconnectedPeripheral = {
|
|
70
89
|
method: 'bluetooth.simulatePreconnectedPeripheral';
|
package/package.json
CHANGED
package/src/gen/main.ts
CHANGED
|
@@ -13,12 +13,14 @@ export type CommandResponse = {
|
|
|
13
13
|
} & Extensible;
|
|
14
14
|
export type EventData =
|
|
15
15
|
| BrowsingContextEvent
|
|
16
|
+
| InputEvent
|
|
16
17
|
| LogEvent
|
|
17
18
|
| NetworkEvent
|
|
18
19
|
| ScriptEvent;
|
|
19
20
|
export type CommandData =
|
|
20
21
|
| BrowserCommand
|
|
21
22
|
| BrowsingContextCommand
|
|
23
|
+
| EmulationCommand
|
|
22
24
|
| InputCommand
|
|
23
25
|
| NetworkCommand
|
|
24
26
|
| ScriptCommand
|
|
@@ -96,8 +98,7 @@ export namespace Session {
|
|
|
96
98
|
| Session.DirectProxyConfiguration
|
|
97
99
|
| Session.ManualProxyConfiguration
|
|
98
100
|
| Session.PacProxyConfiguration
|
|
99
|
-
| Session.SystemProxyConfiguration
|
|
100
|
-
| Record<string, never>;
|
|
101
|
+
| Session.SystemProxyConfiguration;
|
|
101
102
|
}
|
|
102
103
|
export type SessionResult =
|
|
103
104
|
| Session.NewResult
|
|
@@ -165,6 +166,7 @@ export namespace Session {
|
|
|
165
166
|
beforeUnload?: Session.UserPromptHandlerType;
|
|
166
167
|
confirm?: Session.UserPromptHandlerType;
|
|
167
168
|
default?: Session.UserPromptHandlerType;
|
|
169
|
+
file?: Session.UserPromptHandlerType;
|
|
168
170
|
prompt?: Session.UserPromptHandlerType;
|
|
169
171
|
};
|
|
170
172
|
}
|
|
@@ -261,19 +263,21 @@ export namespace Session {
|
|
|
261
263
|
export namespace Session {
|
|
262
264
|
export type Unsubscribe = {
|
|
263
265
|
method: 'session.unsubscribe';
|
|
264
|
-
params:
|
|
265
|
-
| Session.UnsubscribeByAttributesRequest
|
|
266
|
-
| Session.UnsubscribeByIdRequest;
|
|
266
|
+
params: Session.UnsubscribeParameters;
|
|
267
267
|
};
|
|
268
268
|
}
|
|
269
|
+
export namespace Session {
|
|
270
|
+
export type UnsubscribeParameters =
|
|
271
|
+
| Session.UnsubscribeByAttributesRequest
|
|
272
|
+
| Session.UnsubscribeByIdRequest;
|
|
273
|
+
}
|
|
269
274
|
export type BrowserCommand =
|
|
270
275
|
| Browser.Close
|
|
271
276
|
| Browser.CreateUserContext
|
|
272
277
|
| Browser.GetClientWindows
|
|
273
278
|
| Browser.GetUserContexts
|
|
274
279
|
| Browser.RemoveUserContext
|
|
275
|
-
| Browser.SetClientWindowState
|
|
276
|
-
| Record<string, never>;
|
|
280
|
+
| Browser.SetClientWindowState;
|
|
277
281
|
export type BrowserResult =
|
|
278
282
|
| Browser.CreateUserContextResult
|
|
279
283
|
| Browser.GetUserContextsResult;
|
|
@@ -354,11 +358,9 @@ export namespace Browser {
|
|
|
354
358
|
};
|
|
355
359
|
}
|
|
356
360
|
export namespace Browser {
|
|
357
|
-
export type SetClientWindowStateParameters =
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
} & Browser.ClientWindowNamedState)
|
|
361
|
-
| Browser.ClientWindowRectState;
|
|
361
|
+
export type SetClientWindowStateParameters = {
|
|
362
|
+
clientWindow: Browser.ClientWindow;
|
|
363
|
+
} & (Browser.ClientWindowNamedState | Browser.ClientWindowRectState);
|
|
362
364
|
}
|
|
363
365
|
export namespace Browser {
|
|
364
366
|
export type ClientWindowNamedState = {
|
|
@@ -396,6 +398,7 @@ export type BrowsingContextEvent =
|
|
|
396
398
|
| BrowsingContext.HistoryUpdated
|
|
397
399
|
| BrowsingContext.Load
|
|
398
400
|
| BrowsingContext.NavigationAborted
|
|
401
|
+
| BrowsingContext.NavigationCommitted
|
|
399
402
|
| BrowsingContext.NavigationFailed
|
|
400
403
|
| BrowsingContext.NavigationStarted
|
|
401
404
|
| BrowsingContext.UserPromptClosed
|
|
@@ -475,13 +478,16 @@ export namespace BrowsingContext {
|
|
|
475
478
|
export type Navigation = string;
|
|
476
479
|
}
|
|
477
480
|
export namespace BrowsingContext {
|
|
478
|
-
export type
|
|
481
|
+
export type BaseNavigationInfo = {
|
|
479
482
|
context: BrowsingContext.BrowsingContext;
|
|
480
483
|
navigation: BrowsingContext.Navigation | null;
|
|
481
484
|
timestamp: JsUint;
|
|
482
485
|
url: string;
|
|
483
486
|
};
|
|
484
487
|
}
|
|
488
|
+
export namespace BrowsingContext {
|
|
489
|
+
export type NavigationInfo = BrowsingContext.BaseNavigationInfo;
|
|
490
|
+
}
|
|
485
491
|
export namespace BrowsingContext {
|
|
486
492
|
export const enum ReadinessState {
|
|
487
493
|
None = 'none',
|
|
@@ -776,12 +782,13 @@ export namespace BrowsingContext {
|
|
|
776
782
|
}
|
|
777
783
|
export namespace BrowsingContext {
|
|
778
784
|
export type SetViewportParameters = {
|
|
779
|
-
context
|
|
785
|
+
context?: BrowsingContext.BrowsingContext;
|
|
780
786
|
viewport?: BrowsingContext.Viewport | null;
|
|
781
787
|
/**
|
|
782
788
|
* Must be greater than `0`.
|
|
783
789
|
*/
|
|
784
790
|
devicePixelRatio?: number | null;
|
|
791
|
+
userContexts?: [Browser.UserContext, ...Browser.UserContext[]];
|
|
785
792
|
};
|
|
786
793
|
}
|
|
787
794
|
export namespace BrowsingContext {
|
|
@@ -856,15 +863,26 @@ export namespace BrowsingContext {
|
|
|
856
863
|
export namespace BrowsingContext {
|
|
857
864
|
export type DownloadWillBegin = {
|
|
858
865
|
method: 'browsingContext.downloadWillBegin';
|
|
859
|
-
params: BrowsingContext.
|
|
866
|
+
params: BrowsingContext.DownloadWillBeginParams;
|
|
860
867
|
};
|
|
861
868
|
}
|
|
869
|
+
export namespace BrowsingContext {
|
|
870
|
+
export type DownloadWillBeginParams = {
|
|
871
|
+
suggestedFilename: string;
|
|
872
|
+
} & BrowsingContext.BaseNavigationInfo;
|
|
873
|
+
}
|
|
862
874
|
export namespace BrowsingContext {
|
|
863
875
|
export type NavigationAborted = {
|
|
864
876
|
method: 'browsingContext.navigationAborted';
|
|
865
877
|
params: BrowsingContext.NavigationInfo;
|
|
866
878
|
};
|
|
867
879
|
}
|
|
880
|
+
export namespace BrowsingContext {
|
|
881
|
+
export type NavigationCommitted = {
|
|
882
|
+
method: 'browsingContext.navigationCommitted';
|
|
883
|
+
params: BrowsingContext.NavigationInfo;
|
|
884
|
+
};
|
|
885
|
+
}
|
|
868
886
|
export namespace BrowsingContext {
|
|
869
887
|
export type NavigationFailed = {
|
|
870
888
|
method: 'browsingContext.navigationFailed';
|
|
@@ -900,6 +918,49 @@ export namespace BrowsingContext {
|
|
|
900
918
|
defaultValue?: string;
|
|
901
919
|
};
|
|
902
920
|
}
|
|
921
|
+
export type EmulationCommand = Emulation.SetGeolocationOverride;
|
|
922
|
+
export namespace Emulation {
|
|
923
|
+
export type SetGeolocationOverride = {
|
|
924
|
+
method: 'emulation.setGeolocationOverride';
|
|
925
|
+
params: Emulation.SetGeolocationOverrideParameters;
|
|
926
|
+
};
|
|
927
|
+
}
|
|
928
|
+
export namespace Emulation {
|
|
929
|
+
export type SetGeolocationOverrideParameters = {
|
|
930
|
+
coordinates: Emulation.GeolocationCoordinates | null;
|
|
931
|
+
contexts?: [
|
|
932
|
+
BrowsingContext.BrowsingContext,
|
|
933
|
+
...BrowsingContext.BrowsingContext[],
|
|
934
|
+
];
|
|
935
|
+
userContexts?: [Browser.UserContext, ...Browser.UserContext[]];
|
|
936
|
+
};
|
|
937
|
+
}
|
|
938
|
+
export namespace Emulation {
|
|
939
|
+
export type GeolocationCoordinates = {
|
|
940
|
+
latitude: number;
|
|
941
|
+
longitude: number;
|
|
942
|
+
/**
|
|
943
|
+
* @defaultValue `1`
|
|
944
|
+
*/
|
|
945
|
+
accuracy?: number;
|
|
946
|
+
/**
|
|
947
|
+
* @defaultValue `null`
|
|
948
|
+
*/
|
|
949
|
+
altitude?: number | null;
|
|
950
|
+
/**
|
|
951
|
+
* @defaultValue `null`
|
|
952
|
+
*/
|
|
953
|
+
altitudeAccuracy?: number | null;
|
|
954
|
+
/**
|
|
955
|
+
* @defaultValue `null`
|
|
956
|
+
*/
|
|
957
|
+
heading?: number | null;
|
|
958
|
+
/**
|
|
959
|
+
* @defaultValue `null`
|
|
960
|
+
*/
|
|
961
|
+
speed?: number | null;
|
|
962
|
+
};
|
|
963
|
+
}
|
|
903
964
|
export type NetworkCommand =
|
|
904
965
|
| Network.AddIntercept
|
|
905
966
|
| Network.ContinueRequest
|
|
@@ -2096,6 +2157,7 @@ export type InputCommand =
|
|
|
2096
2157
|
| Input.PerformActions
|
|
2097
2158
|
| Input.ReleaseActions
|
|
2098
2159
|
| Input.SetFiles;
|
|
2160
|
+
export type InputEvent = Input.FileDialogOpened;
|
|
2099
2161
|
export namespace Input {
|
|
2100
2162
|
export type ElementOrigin = {
|
|
2101
2163
|
type: 'element';
|
|
@@ -2217,8 +2279,8 @@ export namespace Input {
|
|
|
2217
2279
|
export namespace Input {
|
|
2218
2280
|
export type PointerMoveAction = {
|
|
2219
2281
|
type: 'pointerMove';
|
|
2220
|
-
x:
|
|
2221
|
-
y:
|
|
2282
|
+
x: number;
|
|
2283
|
+
y: number;
|
|
2222
2284
|
duration?: JsUint;
|
|
2223
2285
|
origin?: Input.Origin;
|
|
2224
2286
|
} & Input.PointerCommonProperties;
|
|
@@ -2302,6 +2364,19 @@ export namespace Input {
|
|
|
2302
2364
|
files: [...string[]];
|
|
2303
2365
|
};
|
|
2304
2366
|
}
|
|
2367
|
+
export namespace Input {
|
|
2368
|
+
export type FileDialogOpened = {
|
|
2369
|
+
method: 'input.fileDialogOpened';
|
|
2370
|
+
params: Input.FileDialogInfo;
|
|
2371
|
+
};
|
|
2372
|
+
}
|
|
2373
|
+
export namespace Input {
|
|
2374
|
+
export type FileDialogInfo = {
|
|
2375
|
+
context: BrowsingContext.BrowsingContext;
|
|
2376
|
+
element?: Script.SharedReference;
|
|
2377
|
+
multiple: boolean;
|
|
2378
|
+
};
|
|
2379
|
+
}
|
|
2305
2380
|
export type WebExtensionCommand = WebExtension.Install | WebExtension.Uninstall;
|
|
2306
2381
|
export type WebExtensionResult = WebExtension.InstallResult;
|
|
2307
2382
|
export namespace WebExtension {
|
package/src/gen/web-bluetooth.ts
CHANGED
|
@@ -27,6 +27,13 @@ export namespace Bluetooth {
|
|
|
27
27
|
manufacturerData?: [...Bluetooth.BluetoothManufacturerData[]];
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
|
+
export type BluetoothCommand =
|
|
31
|
+
| Bluetooth.HandleRequestDevicePrompt
|
|
32
|
+
| Bluetooth.SimulateAdapter
|
|
33
|
+
| Bluetooth.DisableSimulation
|
|
34
|
+
| Bluetooth.SimulatePreconnectedPeripheral
|
|
35
|
+
| Bluetooth.SimulateAdvertisement
|
|
36
|
+
| Record<string, never>;
|
|
30
37
|
export namespace Bluetooth {
|
|
31
38
|
export type HandleRequestDevicePrompt = {
|
|
32
39
|
method: 'bluetooth.handleRequestDevicePrompt';
|
|
@@ -62,9 +69,21 @@ export namespace Bluetooth {
|
|
|
62
69
|
export namespace Bluetooth {
|
|
63
70
|
export type SimulateAdapterParameters = {
|
|
64
71
|
context: string;
|
|
72
|
+
leSupported?: boolean;
|
|
65
73
|
state: 'absent' | 'powered-off' | 'powered-on';
|
|
66
74
|
};
|
|
67
75
|
}
|
|
76
|
+
export namespace Bluetooth {
|
|
77
|
+
export type DisableSimulation = {
|
|
78
|
+
method: 'bluetooth.disableSimulation';
|
|
79
|
+
params: Bluetooth.DisableSimulationParameters;
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
export namespace Bluetooth {
|
|
83
|
+
export type DisableSimulationParameters = {
|
|
84
|
+
context: string;
|
|
85
|
+
};
|
|
86
|
+
}
|
|
68
87
|
export namespace Bluetooth {
|
|
69
88
|
export type SimulatePreconnectedPeripheral = {
|
|
70
89
|
method: 'bluetooth.simulatePreconnectedPeripheral';
|