webdriver-bidi-protocol 0.2.1 → 0.2.3
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/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +15 -0
- package/out/gen/main.d.ts +67 -8
- package/package.json +2 -2
- package/src/gen/main.ts +67 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [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
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* 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))
|
|
9
|
+
* 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))
|
|
10
|
+
|
|
11
|
+
## [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)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* re-generate types based on specifciation updates ([#190](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/190)) ([7387ba3](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/7387ba3287a187cc3a48d5ca4f735c650f8a2d1a))
|
|
17
|
+
|
|
3
18
|
## [0.2.1](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/compare/webdriver-bidi-protocol-v0.2.0...webdriver-bidi-protocol-v0.2.1) (2025-07-01)
|
|
4
19
|
|
|
5
20
|
|
package/out/gen/main.d.ts
CHANGED
|
@@ -319,6 +319,7 @@ export declare namespace Browser {
|
|
|
319
319
|
type CreateUserContextParameters = {
|
|
320
320
|
acceptInsecureCerts?: boolean;
|
|
321
321
|
proxy?: Session.ProxyConfiguration;
|
|
322
|
+
unhandledPromptBehavior?: Session.UserPromptHandler;
|
|
322
323
|
};
|
|
323
324
|
}
|
|
324
325
|
export declare namespace Browser {
|
|
@@ -949,9 +950,33 @@ export declare namespace BrowsingContext {
|
|
|
949
950
|
};
|
|
950
951
|
}
|
|
951
952
|
export type EmulationCommand =
|
|
953
|
+
| Emulation.SetForcedColorsModeThemeOverride
|
|
952
954
|
| Emulation.SetGeolocationOverride
|
|
953
955
|
| Emulation.SetLocaleOverride
|
|
954
|
-
| 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
|
+
}
|
|
955
980
|
export declare namespace Emulation {
|
|
956
981
|
type SetGeolocationOverride = {
|
|
957
982
|
method: 'emulation.setGeolocationOverride';
|
|
@@ -1070,18 +1095,36 @@ export declare namespace Emulation {
|
|
|
1070
1095
|
userContexts?: [Browser.UserContext, ...Browser.UserContext[]];
|
|
1071
1096
|
};
|
|
1072
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
|
+
}
|
|
1073
1114
|
export type NetworkCommand =
|
|
1074
1115
|
| Network.AddDataCollector
|
|
1075
1116
|
| Network.AddIntercept
|
|
1076
1117
|
| Network.ContinueRequest
|
|
1077
1118
|
| Network.ContinueResponse
|
|
1078
1119
|
| Network.ContinueWithAuth
|
|
1120
|
+
| Network.DisownData
|
|
1079
1121
|
| Network.FailRequest
|
|
1080
1122
|
| Network.GetData
|
|
1081
1123
|
| Network.ProvideResponse
|
|
1082
1124
|
| Network.RemoveDataCollector
|
|
1083
1125
|
| Network.RemoveIntercept
|
|
1084
|
-
| Network.SetCacheBehavior
|
|
1126
|
+
| Network.SetCacheBehavior
|
|
1127
|
+
| Network.SetExtraHeaders;
|
|
1085
1128
|
export type NetworkEvent =
|
|
1086
1129
|
| Network.AuthRequired
|
|
1087
1130
|
| Network.BeforeRequestSent
|
|
@@ -1113,11 +1156,6 @@ export declare namespace Network {
|
|
|
1113
1156
|
intercepts?: [Network.Intercept, ...Network.Intercept[]];
|
|
1114
1157
|
};
|
|
1115
1158
|
}
|
|
1116
|
-
export declare namespace Network {
|
|
1117
|
-
const enum DataType {
|
|
1118
|
-
Response = 'response',
|
|
1119
|
-
}
|
|
1120
|
-
}
|
|
1121
1159
|
export declare namespace Network {
|
|
1122
1160
|
type BytesValue = Network.StringValue | Network.Base64Value;
|
|
1123
1161
|
}
|
|
@@ -1168,6 +1206,11 @@ export declare namespace Network {
|
|
|
1168
1206
|
value: Network.BytesValue;
|
|
1169
1207
|
};
|
|
1170
1208
|
}
|
|
1209
|
+
export declare namespace Network {
|
|
1210
|
+
const enum DataType {
|
|
1211
|
+
Response = 'response',
|
|
1212
|
+
}
|
|
1213
|
+
}
|
|
1171
1214
|
export declare namespace Network {
|
|
1172
1215
|
type FetchTimingInfo = {
|
|
1173
1216
|
timeOrigin: number;
|
|
@@ -1425,7 +1468,7 @@ export declare namespace Network {
|
|
|
1425
1468
|
request: Network.Request;
|
|
1426
1469
|
};
|
|
1427
1470
|
}
|
|
1428
|
-
export declare namespace
|
|
1471
|
+
export declare namespace Network {
|
|
1429
1472
|
type GetDataResult = {
|
|
1430
1473
|
bytes: Network.BytesValue;
|
|
1431
1474
|
};
|
|
@@ -1483,6 +1526,22 @@ export declare namespace Network {
|
|
|
1483
1526
|
];
|
|
1484
1527
|
};
|
|
1485
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
|
+
}
|
|
1486
1545
|
export type ScriptEvent =
|
|
1487
1546
|
| Script.Message
|
|
1488
1547
|
| Script.RealmCreated
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "webdriver-bidi-protocol",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "out/index.js",
|
|
6
6
|
"types": "out/index.d.ts",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@types/node": "^24.0.4",
|
|
24
24
|
"gts": "^6.0.2",
|
|
25
|
-
"parse5": "^
|
|
25
|
+
"parse5": "^8.0.0",
|
|
26
26
|
"prettier": "3.6.2",
|
|
27
27
|
"tsd": "0.32.0",
|
|
28
28
|
"typescript": "5.8.3"
|
package/src/gen/main.ts
CHANGED
|
@@ -321,6 +321,7 @@ export namespace Browser {
|
|
|
321
321
|
export type CreateUserContextParameters = {
|
|
322
322
|
acceptInsecureCerts?: boolean;
|
|
323
323
|
proxy?: Session.ProxyConfiguration;
|
|
324
|
+
unhandledPromptBehavior?: Session.UserPromptHandler;
|
|
324
325
|
};
|
|
325
326
|
}
|
|
326
327
|
export namespace Browser {
|
|
@@ -951,9 +952,33 @@ export namespace BrowsingContext {
|
|
|
951
952
|
};
|
|
952
953
|
}
|
|
953
954
|
export type EmulationCommand =
|
|
955
|
+
| Emulation.SetForcedColorsModeThemeOverride
|
|
954
956
|
| Emulation.SetGeolocationOverride
|
|
955
957
|
| Emulation.SetLocaleOverride
|
|
956
|
-
| 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
|
+
}
|
|
957
982
|
export namespace Emulation {
|
|
958
983
|
export type SetGeolocationOverride = {
|
|
959
984
|
method: 'emulation.setGeolocationOverride';
|
|
@@ -1072,18 +1097,36 @@ export namespace Emulation {
|
|
|
1072
1097
|
userContexts?: [Browser.UserContext, ...Browser.UserContext[]];
|
|
1073
1098
|
};
|
|
1074
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
|
+
}
|
|
1075
1116
|
export type NetworkCommand =
|
|
1076
1117
|
| Network.AddDataCollector
|
|
1077
1118
|
| Network.AddIntercept
|
|
1078
1119
|
| Network.ContinueRequest
|
|
1079
1120
|
| Network.ContinueResponse
|
|
1080
1121
|
| Network.ContinueWithAuth
|
|
1122
|
+
| Network.DisownData
|
|
1081
1123
|
| Network.FailRequest
|
|
1082
1124
|
| Network.GetData
|
|
1083
1125
|
| Network.ProvideResponse
|
|
1084
1126
|
| Network.RemoveDataCollector
|
|
1085
1127
|
| Network.RemoveIntercept
|
|
1086
|
-
| Network.SetCacheBehavior
|
|
1128
|
+
| Network.SetCacheBehavior
|
|
1129
|
+
| Network.SetExtraHeaders;
|
|
1087
1130
|
export type NetworkEvent =
|
|
1088
1131
|
| Network.AuthRequired
|
|
1089
1132
|
| Network.BeforeRequestSent
|
|
@@ -1115,11 +1158,6 @@ export namespace Network {
|
|
|
1115
1158
|
intercepts?: [Network.Intercept, ...Network.Intercept[]];
|
|
1116
1159
|
};
|
|
1117
1160
|
}
|
|
1118
|
-
export namespace Network {
|
|
1119
|
-
export const enum DataType {
|
|
1120
|
-
Response = 'response',
|
|
1121
|
-
}
|
|
1122
|
-
}
|
|
1123
1161
|
export namespace Network {
|
|
1124
1162
|
export type BytesValue = Network.StringValue | Network.Base64Value;
|
|
1125
1163
|
}
|
|
@@ -1170,6 +1208,11 @@ export namespace Network {
|
|
|
1170
1208
|
value: Network.BytesValue;
|
|
1171
1209
|
};
|
|
1172
1210
|
}
|
|
1211
|
+
export namespace Network {
|
|
1212
|
+
export const enum DataType {
|
|
1213
|
+
Response = 'response',
|
|
1214
|
+
}
|
|
1215
|
+
}
|
|
1173
1216
|
export namespace Network {
|
|
1174
1217
|
export type FetchTimingInfo = {
|
|
1175
1218
|
timeOrigin: number;
|
|
@@ -1427,7 +1470,7 @@ export namespace Network {
|
|
|
1427
1470
|
request: Network.Request;
|
|
1428
1471
|
};
|
|
1429
1472
|
}
|
|
1430
|
-
export namespace
|
|
1473
|
+
export namespace Network {
|
|
1431
1474
|
export type GetDataResult = {
|
|
1432
1475
|
bytes: Network.BytesValue;
|
|
1433
1476
|
};
|
|
@@ -1485,6 +1528,22 @@ export namespace Network {
|
|
|
1485
1528
|
];
|
|
1486
1529
|
};
|
|
1487
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
|
+
}
|
|
1488
1547
|
export type ScriptEvent =
|
|
1489
1548
|
| Script.Message
|
|
1490
1549
|
| Script.RealmCreated
|