webdriver-bidi-protocol 0.4.0 → 0.4.2
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/CHANGELOG.md +14 -0
- package/out/gen/main.d.ts +30 -0
- package/out/gen/mapping.d.ts +12 -8
- package/out/gen/ua-client-hints.d.ts +9 -9
- package/package.json +2 -2
- package/src/gen/main.ts +30 -0
- package/src/gen/mapping.ts +12 -8
- package/src/gen/ua-client-hints.ts +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.4.2](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/compare/webdriver-bidi-protocol-v0.4.1...webdriver-bidi-protocol-v0.4.2) (2026-05-22)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* re-generate types based on spec updates ([#330](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/330)) ([d6db955](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/d6db955281b2019ce29c62c82fec64bcf5a31156))
|
|
9
|
+
|
|
10
|
+
## [0.4.1](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/compare/webdriver-bidi-protocol-v0.4.0...webdriver-bidi-protocol-v0.4.1) (2026-02-11)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* re-generate types based on spec updates ([#323](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/323)) ([ea25193](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/ea25193553542688555e820afa255c7cccaf8802))
|
|
16
|
+
|
|
3
17
|
## [0.4.0](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/compare/webdriver-bidi-protocol-v0.3.11...webdriver-bidi-protocol-v0.4.0) (2026-01-20)
|
|
4
18
|
|
|
5
19
|
|
package/out/gen/main.d.ts
CHANGED
|
@@ -548,6 +548,7 @@ export declare namespace BrowsingContext {
|
|
|
548
548
|
navigation: BrowsingContext.Navigation | null;
|
|
549
549
|
timestamp: JsUint;
|
|
550
550
|
url: string;
|
|
551
|
+
userContext?: Browser.UserContext;
|
|
551
552
|
};
|
|
552
553
|
}
|
|
553
554
|
export declare namespace BrowsingContext {
|
|
@@ -677,6 +678,7 @@ export declare namespace BrowsingContext {
|
|
|
677
678
|
export declare namespace BrowsingContext {
|
|
678
679
|
type CreateResult = {
|
|
679
680
|
context: BrowsingContext.BrowsingContext;
|
|
681
|
+
userContext?: Browser.UserContext;
|
|
680
682
|
};
|
|
681
683
|
}
|
|
682
684
|
export declare namespace BrowsingContext {
|
|
@@ -927,6 +929,7 @@ export declare namespace BrowsingContext {
|
|
|
927
929
|
context: BrowsingContext.BrowsingContext;
|
|
928
930
|
timestamp: JsUint;
|
|
929
931
|
url: string;
|
|
932
|
+
userContext?: Browser.UserContext;
|
|
930
933
|
};
|
|
931
934
|
}
|
|
932
935
|
export declare namespace BrowsingContext {
|
|
@@ -1003,6 +1006,7 @@ export declare namespace BrowsingContext {
|
|
|
1003
1006
|
context: BrowsingContext.BrowsingContext;
|
|
1004
1007
|
accepted: boolean;
|
|
1005
1008
|
type: BrowsingContext.UserPromptType;
|
|
1009
|
+
userContext?: Browser.UserContext;
|
|
1006
1010
|
userText?: string;
|
|
1007
1011
|
};
|
|
1008
1012
|
}
|
|
@@ -1018,6 +1022,7 @@ export declare namespace BrowsingContext {
|
|
|
1018
1022
|
handler: Session.UserPromptHandlerType;
|
|
1019
1023
|
message: string;
|
|
1020
1024
|
type: BrowsingContext.UserPromptType;
|
|
1025
|
+
userContext?: Browser.UserContext;
|
|
1021
1026
|
defaultValue?: string;
|
|
1022
1027
|
};
|
|
1023
1028
|
}
|
|
@@ -1029,6 +1034,7 @@ export type EmulationCommand =
|
|
|
1029
1034
|
| Emulation.SetScreenOrientationOverride
|
|
1030
1035
|
| Emulation.SetScreenSettingsOverride
|
|
1031
1036
|
| Emulation.SetScriptingEnabled
|
|
1037
|
+
| Emulation.SetScrollbarTypeOverride
|
|
1032
1038
|
| Emulation.SetTimezoneOverride
|
|
1033
1039
|
| Emulation.SetTouchOverride
|
|
1034
1040
|
| Emulation.SetUserAgentOverride;
|
|
@@ -1038,6 +1044,7 @@ export type EmulationResult =
|
|
|
1038
1044
|
| Emulation.SetLocaleOverrideResult
|
|
1039
1045
|
| Emulation.SetScreenOrientationOverrideResult
|
|
1040
1046
|
| Emulation.SetScriptingEnabledResult
|
|
1047
|
+
| Emulation.SetScrollbarTypeOverrideResult
|
|
1041
1048
|
| Emulation.SetTimezoneOverrideResult
|
|
1042
1049
|
| Emulation.SetTouchOverrideResult
|
|
1043
1050
|
| Emulation.SetUserAgentOverrideResult;
|
|
@@ -1283,6 +1290,25 @@ export declare namespace Emulation {
|
|
|
1283
1290
|
export declare namespace Emulation {
|
|
1284
1291
|
type SetScriptingEnabledResult = EmptyResult;
|
|
1285
1292
|
}
|
|
1293
|
+
export declare namespace Emulation {
|
|
1294
|
+
type SetScrollbarTypeOverride = {
|
|
1295
|
+
method: 'emulation.setScrollbarTypeOverride';
|
|
1296
|
+
params: Emulation.SetScrollbarTypeOverrideParameters;
|
|
1297
|
+
};
|
|
1298
|
+
}
|
|
1299
|
+
export declare namespace Emulation {
|
|
1300
|
+
type SetScrollbarTypeOverrideParameters = {
|
|
1301
|
+
scrollbarType: 'classic' | 'overlay' | null;
|
|
1302
|
+
contexts?: [
|
|
1303
|
+
BrowsingContext.BrowsingContext,
|
|
1304
|
+
...BrowsingContext.BrowsingContext[],
|
|
1305
|
+
];
|
|
1306
|
+
userContexts?: [Browser.UserContext, ...Browser.UserContext[]];
|
|
1307
|
+
};
|
|
1308
|
+
}
|
|
1309
|
+
export declare namespace Emulation {
|
|
1310
|
+
type SetScrollbarTypeOverrideResult = EmptyResult;
|
|
1311
|
+
}
|
|
1286
1312
|
export declare namespace Emulation {
|
|
1287
1313
|
type SetTimezoneOverride = {
|
|
1288
1314
|
method: 'emulation.setTimezoneOverride';
|
|
@@ -1379,6 +1405,7 @@ export declare namespace Network {
|
|
|
1379
1405
|
redirectCount: JsUint;
|
|
1380
1406
|
request: Network.RequestData;
|
|
1381
1407
|
timestamp: JsUint;
|
|
1408
|
+
userContext?: Browser.UserContext | null;
|
|
1382
1409
|
intercepts?: [Network.Intercept, ...Network.Intercept[]];
|
|
1383
1410
|
};
|
|
1384
1411
|
}
|
|
@@ -2057,6 +2084,7 @@ export declare namespace Script {
|
|
|
2057
2084
|
type WindowRealmInfo = Script.BaseRealmInfo & {
|
|
2058
2085
|
type: 'window';
|
|
2059
2086
|
context: BrowsingContext.BrowsingContext;
|
|
2087
|
+
userContext?: Browser.UserContext;
|
|
2060
2088
|
sandbox?: string;
|
|
2061
2089
|
};
|
|
2062
2090
|
}
|
|
@@ -2363,6 +2391,7 @@ export declare namespace Script {
|
|
|
2363
2391
|
type Source = {
|
|
2364
2392
|
realm: Script.Realm;
|
|
2365
2393
|
context?: BrowsingContext.BrowsingContext;
|
|
2394
|
+
userContext?: Browser.UserContext;
|
|
2366
2395
|
};
|
|
2367
2396
|
}
|
|
2368
2397
|
export declare namespace Script {
|
|
@@ -2910,6 +2939,7 @@ export declare namespace Input {
|
|
|
2910
2939
|
export declare namespace Input {
|
|
2911
2940
|
type FileDialogInfo = {
|
|
2912
2941
|
context: BrowsingContext.BrowsingContext;
|
|
2942
|
+
userContext?: Browser.UserContext;
|
|
2913
2943
|
element?: Script.SharedReference;
|
|
2914
2944
|
multiple: boolean;
|
|
2915
2945
|
};
|
package/out/gen/mapping.d.ts
CHANGED
|
@@ -127,14 +127,6 @@ export interface Commands {
|
|
|
127
127
|
params: Bidi.BrowsingContext.TraverseHistoryParameters;
|
|
128
128
|
returnType: Bidi.BrowsingContext.TraverseHistoryResult;
|
|
129
129
|
};
|
|
130
|
-
'emulation.setClientHintsOverride': {
|
|
131
|
-
params: {
|
|
132
|
-
clientHints: BidiUaClientHints.Emulation.ClientHintsMetadata | null;
|
|
133
|
-
contexts?: [string, ...string[]];
|
|
134
|
-
userContexts?: [string, ...string[]];
|
|
135
|
-
};
|
|
136
|
-
returnType: BidiUaClientHints.Emulation.SetClientHintsOverrideResult;
|
|
137
|
-
};
|
|
138
130
|
'emulation.setForcedColorsModeThemeOverride': {
|
|
139
131
|
params: Bidi.Emulation.SetForcedColorsModeThemeOverrideParameters;
|
|
140
132
|
returnType: Bidi.Emulation.SetForcedColorsModeThemeOverrideResult;
|
|
@@ -163,6 +155,10 @@ export interface Commands {
|
|
|
163
155
|
params: Bidi.Emulation.SetScriptingEnabledParameters;
|
|
164
156
|
returnType: Bidi.Emulation.SetScriptingEnabledResult;
|
|
165
157
|
};
|
|
158
|
+
'emulation.setScrollbarTypeOverride': {
|
|
159
|
+
params: Bidi.Emulation.SetScrollbarTypeOverrideParameters;
|
|
160
|
+
returnType: Bidi.Emulation.SetScrollbarTypeOverrideResult;
|
|
161
|
+
};
|
|
166
162
|
'emulation.setTimezoneOverride': {
|
|
167
163
|
params: Bidi.Emulation.SetTimezoneOverrideParameters;
|
|
168
164
|
returnType: Bidi.Emulation.SetTimezoneOverrideResult;
|
|
@@ -299,6 +295,14 @@ export interface Commands {
|
|
|
299
295
|
params: Bidi.Storage.SetCookieParameters;
|
|
300
296
|
returnType: Bidi.Storage.SetCookieResult;
|
|
301
297
|
};
|
|
298
|
+
'userAgentClientHints.setClientHintsOverride': {
|
|
299
|
+
params: {
|
|
300
|
+
clientHints: BidiUaClientHints.UserAgentClientHints.ClientHintsMetadata | null;
|
|
301
|
+
contexts?: [string, ...string[]];
|
|
302
|
+
userContexts?: [string, ...string[]];
|
|
303
|
+
};
|
|
304
|
+
returnType: BidiUaClientHints.UserAgentClientHints.SetClientHintsOverrideResult;
|
|
305
|
+
};
|
|
302
306
|
'webExtension.install': {
|
|
303
307
|
params: Bidi.WebExtension.InstallParameters;
|
|
304
308
|
returnType: Bidi.WebExtension.InstallResult;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
export type UserAgentClientHintsCommand =
|
|
2
|
-
|
|
3
|
-
export declare namespace
|
|
2
|
+
UserAgentClientHints.SetClientHintsOverrideCommand;
|
|
3
|
+
export declare namespace UserAgentClientHints {
|
|
4
4
|
type SetClientHintsOverrideCommand = {
|
|
5
|
-
method: '
|
|
5
|
+
method: 'userAgentClientHints.setClientHintsOverride';
|
|
6
6
|
params: {
|
|
7
|
-
clientHints:
|
|
7
|
+
clientHints: UserAgentClientHints.ClientHintsMetadata | null;
|
|
8
8
|
contexts?: [string, ...string[]];
|
|
9
9
|
userContexts?: [string, ...string[]];
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
|
-
export declare namespace
|
|
13
|
+
export declare namespace UserAgentClientHints {
|
|
14
14
|
type ClientHintsMetadata = {
|
|
15
|
-
brands?: [...
|
|
16
|
-
fullVersionList?: [...
|
|
15
|
+
brands?: [...UserAgentClientHints.BrandVersion[]];
|
|
16
|
+
fullVersionList?: [...UserAgentClientHints.BrandVersion[]];
|
|
17
17
|
platform?: string;
|
|
18
18
|
platformVersion?: string;
|
|
19
19
|
architecture?: string;
|
|
@@ -24,12 +24,12 @@ export declare namespace Emulation {
|
|
|
24
24
|
formFactors?: [...string[]];
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
|
-
export declare namespace
|
|
27
|
+
export declare namespace UserAgentClientHints {
|
|
28
28
|
type BrandVersion = {
|
|
29
29
|
brand: string;
|
|
30
30
|
version: string;
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
|
-
export declare namespace
|
|
33
|
+
export declare namespace UserAgentClientHints {
|
|
34
34
|
type SetClientHintsOverrideResult = Record<string, never>;
|
|
35
35
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "webdriver-bidi-protocol",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "out/index.js",
|
|
6
6
|
"types": "out/index.d.ts",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/node": "^25.0.2",
|
|
29
29
|
"parse5": "^8.0.0",
|
|
30
|
-
"prettier": "3.8.
|
|
30
|
+
"prettier": "3.8.1",
|
|
31
31
|
"tsd": "0.33.0",
|
|
32
32
|
"typescript": "5.9.3",
|
|
33
33
|
"ts-morph": "27.0.2"
|
package/src/gen/main.ts
CHANGED
|
@@ -550,6 +550,7 @@ export namespace BrowsingContext {
|
|
|
550
550
|
navigation: BrowsingContext.Navigation | null;
|
|
551
551
|
timestamp: JsUint;
|
|
552
552
|
url: string;
|
|
553
|
+
userContext?: Browser.UserContext;
|
|
553
554
|
};
|
|
554
555
|
}
|
|
555
556
|
export namespace BrowsingContext {
|
|
@@ -679,6 +680,7 @@ export namespace BrowsingContext {
|
|
|
679
680
|
export namespace BrowsingContext {
|
|
680
681
|
export type CreateResult = {
|
|
681
682
|
context: BrowsingContext.BrowsingContext;
|
|
683
|
+
userContext?: Browser.UserContext;
|
|
682
684
|
};
|
|
683
685
|
}
|
|
684
686
|
export namespace BrowsingContext {
|
|
@@ -929,6 +931,7 @@ export namespace BrowsingContext {
|
|
|
929
931
|
context: BrowsingContext.BrowsingContext;
|
|
930
932
|
timestamp: JsUint;
|
|
931
933
|
url: string;
|
|
934
|
+
userContext?: Browser.UserContext;
|
|
932
935
|
};
|
|
933
936
|
}
|
|
934
937
|
export namespace BrowsingContext {
|
|
@@ -1005,6 +1008,7 @@ export namespace BrowsingContext {
|
|
|
1005
1008
|
context: BrowsingContext.BrowsingContext;
|
|
1006
1009
|
accepted: boolean;
|
|
1007
1010
|
type: BrowsingContext.UserPromptType;
|
|
1011
|
+
userContext?: Browser.UserContext;
|
|
1008
1012
|
userText?: string;
|
|
1009
1013
|
};
|
|
1010
1014
|
}
|
|
@@ -1020,6 +1024,7 @@ export namespace BrowsingContext {
|
|
|
1020
1024
|
handler: Session.UserPromptHandlerType;
|
|
1021
1025
|
message: string;
|
|
1022
1026
|
type: BrowsingContext.UserPromptType;
|
|
1027
|
+
userContext?: Browser.UserContext;
|
|
1023
1028
|
defaultValue?: string;
|
|
1024
1029
|
};
|
|
1025
1030
|
}
|
|
@@ -1031,6 +1036,7 @@ export type EmulationCommand =
|
|
|
1031
1036
|
| Emulation.SetScreenOrientationOverride
|
|
1032
1037
|
| Emulation.SetScreenSettingsOverride
|
|
1033
1038
|
| Emulation.SetScriptingEnabled
|
|
1039
|
+
| Emulation.SetScrollbarTypeOverride
|
|
1034
1040
|
| Emulation.SetTimezoneOverride
|
|
1035
1041
|
| Emulation.SetTouchOverride
|
|
1036
1042
|
| Emulation.SetUserAgentOverride;
|
|
@@ -1040,6 +1046,7 @@ export type EmulationResult =
|
|
|
1040
1046
|
| Emulation.SetLocaleOverrideResult
|
|
1041
1047
|
| Emulation.SetScreenOrientationOverrideResult
|
|
1042
1048
|
| Emulation.SetScriptingEnabledResult
|
|
1049
|
+
| Emulation.SetScrollbarTypeOverrideResult
|
|
1043
1050
|
| Emulation.SetTimezoneOverrideResult
|
|
1044
1051
|
| Emulation.SetTouchOverrideResult
|
|
1045
1052
|
| Emulation.SetUserAgentOverrideResult;
|
|
@@ -1285,6 +1292,25 @@ export namespace Emulation {
|
|
|
1285
1292
|
export namespace Emulation {
|
|
1286
1293
|
export type SetScriptingEnabledResult = EmptyResult;
|
|
1287
1294
|
}
|
|
1295
|
+
export namespace Emulation {
|
|
1296
|
+
export type SetScrollbarTypeOverride = {
|
|
1297
|
+
method: 'emulation.setScrollbarTypeOverride';
|
|
1298
|
+
params: Emulation.SetScrollbarTypeOverrideParameters;
|
|
1299
|
+
};
|
|
1300
|
+
}
|
|
1301
|
+
export namespace Emulation {
|
|
1302
|
+
export type SetScrollbarTypeOverrideParameters = {
|
|
1303
|
+
scrollbarType: 'classic' | 'overlay' | null;
|
|
1304
|
+
contexts?: [
|
|
1305
|
+
BrowsingContext.BrowsingContext,
|
|
1306
|
+
...BrowsingContext.BrowsingContext[],
|
|
1307
|
+
];
|
|
1308
|
+
userContexts?: [Browser.UserContext, ...Browser.UserContext[]];
|
|
1309
|
+
};
|
|
1310
|
+
}
|
|
1311
|
+
export namespace Emulation {
|
|
1312
|
+
export type SetScrollbarTypeOverrideResult = EmptyResult;
|
|
1313
|
+
}
|
|
1288
1314
|
export namespace Emulation {
|
|
1289
1315
|
export type SetTimezoneOverride = {
|
|
1290
1316
|
method: 'emulation.setTimezoneOverride';
|
|
@@ -1381,6 +1407,7 @@ export namespace Network {
|
|
|
1381
1407
|
redirectCount: JsUint;
|
|
1382
1408
|
request: Network.RequestData;
|
|
1383
1409
|
timestamp: JsUint;
|
|
1410
|
+
userContext?: Browser.UserContext | null;
|
|
1384
1411
|
intercepts?: [Network.Intercept, ...Network.Intercept[]];
|
|
1385
1412
|
};
|
|
1386
1413
|
}
|
|
@@ -2059,6 +2086,7 @@ export namespace Script {
|
|
|
2059
2086
|
export type WindowRealmInfo = Script.BaseRealmInfo & {
|
|
2060
2087
|
type: 'window';
|
|
2061
2088
|
context: BrowsingContext.BrowsingContext;
|
|
2089
|
+
userContext?: Browser.UserContext;
|
|
2062
2090
|
sandbox?: string;
|
|
2063
2091
|
};
|
|
2064
2092
|
}
|
|
@@ -2367,6 +2395,7 @@ export namespace Script {
|
|
|
2367
2395
|
export type Source = {
|
|
2368
2396
|
realm: Script.Realm;
|
|
2369
2397
|
context?: BrowsingContext.BrowsingContext;
|
|
2398
|
+
userContext?: Browser.UserContext;
|
|
2370
2399
|
};
|
|
2371
2400
|
}
|
|
2372
2401
|
export namespace Script {
|
|
@@ -2914,6 +2943,7 @@ export namespace Input {
|
|
|
2914
2943
|
export namespace Input {
|
|
2915
2944
|
export type FileDialogInfo = {
|
|
2916
2945
|
context: BrowsingContext.BrowsingContext;
|
|
2946
|
+
userContext?: Browser.UserContext;
|
|
2917
2947
|
element?: Script.SharedReference;
|
|
2918
2948
|
multiple: boolean;
|
|
2919
2949
|
};
|
package/src/gen/mapping.ts
CHANGED
|
@@ -128,14 +128,6 @@ export interface Commands {
|
|
|
128
128
|
params: Bidi.BrowsingContext.TraverseHistoryParameters;
|
|
129
129
|
returnType: Bidi.BrowsingContext.TraverseHistoryResult;
|
|
130
130
|
};
|
|
131
|
-
'emulation.setClientHintsOverride': {
|
|
132
|
-
params: {
|
|
133
|
-
clientHints: BidiUaClientHints.Emulation.ClientHintsMetadata | null;
|
|
134
|
-
contexts?: [string, ...string[]];
|
|
135
|
-
userContexts?: [string, ...string[]];
|
|
136
|
-
};
|
|
137
|
-
returnType: BidiUaClientHints.Emulation.SetClientHintsOverrideResult;
|
|
138
|
-
};
|
|
139
131
|
'emulation.setForcedColorsModeThemeOverride': {
|
|
140
132
|
params: Bidi.Emulation.SetForcedColorsModeThemeOverrideParameters;
|
|
141
133
|
returnType: Bidi.Emulation.SetForcedColorsModeThemeOverrideResult;
|
|
@@ -164,6 +156,10 @@ export interface Commands {
|
|
|
164
156
|
params: Bidi.Emulation.SetScriptingEnabledParameters;
|
|
165
157
|
returnType: Bidi.Emulation.SetScriptingEnabledResult;
|
|
166
158
|
};
|
|
159
|
+
'emulation.setScrollbarTypeOverride': {
|
|
160
|
+
params: Bidi.Emulation.SetScrollbarTypeOverrideParameters;
|
|
161
|
+
returnType: Bidi.Emulation.SetScrollbarTypeOverrideResult;
|
|
162
|
+
};
|
|
167
163
|
'emulation.setTimezoneOverride': {
|
|
168
164
|
params: Bidi.Emulation.SetTimezoneOverrideParameters;
|
|
169
165
|
returnType: Bidi.Emulation.SetTimezoneOverrideResult;
|
|
@@ -300,6 +296,14 @@ export interface Commands {
|
|
|
300
296
|
params: Bidi.Storage.SetCookieParameters;
|
|
301
297
|
returnType: Bidi.Storage.SetCookieResult;
|
|
302
298
|
};
|
|
299
|
+
'userAgentClientHints.setClientHintsOverride': {
|
|
300
|
+
params: {
|
|
301
|
+
clientHints: BidiUaClientHints.UserAgentClientHints.ClientHintsMetadata | null;
|
|
302
|
+
contexts?: [string, ...string[]];
|
|
303
|
+
userContexts?: [string, ...string[]];
|
|
304
|
+
};
|
|
305
|
+
returnType: BidiUaClientHints.UserAgentClientHints.SetClientHintsOverrideResult;
|
|
306
|
+
};
|
|
303
307
|
'webExtension.install': {
|
|
304
308
|
params: Bidi.WebExtension.InstallParameters;
|
|
305
309
|
returnType: Bidi.WebExtension.InstallResult;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
export type UserAgentClientHintsCommand =
|
|
2
|
-
|
|
3
|
-
export namespace
|
|
2
|
+
UserAgentClientHints.SetClientHintsOverrideCommand;
|
|
3
|
+
export namespace UserAgentClientHints {
|
|
4
4
|
export type SetClientHintsOverrideCommand = {
|
|
5
|
-
method: '
|
|
5
|
+
method: 'userAgentClientHints.setClientHintsOverride';
|
|
6
6
|
params: {
|
|
7
|
-
clientHints:
|
|
7
|
+
clientHints: UserAgentClientHints.ClientHintsMetadata | null;
|
|
8
8
|
contexts?: [string, ...string[]];
|
|
9
9
|
userContexts?: [string, ...string[]];
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
|
-
export namespace
|
|
13
|
+
export namespace UserAgentClientHints {
|
|
14
14
|
export type ClientHintsMetadata = {
|
|
15
|
-
brands?: [...
|
|
16
|
-
fullVersionList?: [...
|
|
15
|
+
brands?: [...UserAgentClientHints.BrandVersion[]];
|
|
16
|
+
fullVersionList?: [...UserAgentClientHints.BrandVersion[]];
|
|
17
17
|
platform?: string;
|
|
18
18
|
platformVersion?: string;
|
|
19
19
|
architecture?: string;
|
|
@@ -24,12 +24,12 @@ export namespace Emulation {
|
|
|
24
24
|
formFactors?: [...string[]];
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
|
-
export namespace
|
|
27
|
+
export namespace UserAgentClientHints {
|
|
28
28
|
export type BrandVersion = {
|
|
29
29
|
brand: string;
|
|
30
30
|
version: string;
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
|
-
export namespace
|
|
33
|
+
export namespace UserAgentClientHints {
|
|
34
34
|
export type SetClientHintsOverrideResult = Record<string, never>;
|
|
35
35
|
}
|