webdriver-bidi-protocol 0.2.2 → 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.
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "0.2.2"
2
+ ".": "0.2.3"
3
3
  }
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
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
+
3
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)
4
12
 
5
13
 
package/out/gen/main.d.ts CHANGED
@@ -950,9 +950,33 @@ export declare namespace BrowsingContext {
950
950
  };
951
951
  }
952
952
  export type EmulationCommand =
953
+ | Emulation.SetForcedColorsModeThemeOverride
953
954
  | Emulation.SetGeolocationOverride
954
955
  | Emulation.SetLocaleOverride
955
- | 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
+ }
956
980
  export declare namespace Emulation {
957
981
  type SetGeolocationOverride = {
958
982
  method: 'emulation.setGeolocationOverride';
@@ -1071,6 +1095,22 @@ export declare namespace Emulation {
1071
1095
  userContexts?: [Browser.UserContext, ...Browser.UserContext[]];
1072
1096
  };
1073
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
+ }
1074
1114
  export type NetworkCommand =
1075
1115
  | Network.AddDataCollector
1076
1116
  | Network.AddIntercept
@@ -1083,7 +1123,8 @@ export type NetworkCommand =
1083
1123
  | Network.ProvideResponse
1084
1124
  | Network.RemoveDataCollector
1085
1125
  | Network.RemoveIntercept
1086
- | Network.SetCacheBehavior;
1126
+ | Network.SetCacheBehavior
1127
+ | Network.SetExtraHeaders;
1087
1128
  export type NetworkEvent =
1088
1129
  | Network.AuthRequired
1089
1130
  | Network.BeforeRequestSent
@@ -1115,11 +1156,6 @@ export declare namespace Network {
1115
1156
  intercepts?: [Network.Intercept, ...Network.Intercept[]];
1116
1157
  };
1117
1158
  }
1118
- export declare namespace Network {
1119
- const enum DataType {
1120
- Response = 'response',
1121
- }
1122
- }
1123
1159
  export declare namespace Network {
1124
1160
  type BytesValue = Network.StringValue | Network.Base64Value;
1125
1161
  }
@@ -1170,6 +1206,11 @@ export declare namespace Network {
1170
1206
  value: Network.BytesValue;
1171
1207
  };
1172
1208
  }
1209
+ export declare namespace Network {
1210
+ const enum DataType {
1211
+ Response = 'response',
1212
+ }
1213
+ }
1173
1214
  export declare namespace Network {
1174
1215
  type FetchTimingInfo = {
1175
1216
  timeOrigin: number;
@@ -1485,6 +1526,22 @@ export declare namespace Network {
1485
1526
  ];
1486
1527
  };
1487
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
+ }
1488
1545
  export type ScriptEvent =
1489
1546
  | Script.Message
1490
1547
  | Script.RealmCreated
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webdriver-bidi-protocol",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "",
5
5
  "main": "out/index.js",
6
6
  "types": "out/index.d.ts",
package/src/gen/main.ts CHANGED
@@ -952,9 +952,33 @@ export namespace BrowsingContext {
952
952
  };
953
953
  }
954
954
  export type EmulationCommand =
955
+ | Emulation.SetForcedColorsModeThemeOverride
955
956
  | Emulation.SetGeolocationOverride
956
957
  | Emulation.SetLocaleOverride
957
- | 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
+ }
958
982
  export namespace Emulation {
959
983
  export type SetGeolocationOverride = {
960
984
  method: 'emulation.setGeolocationOverride';
@@ -1073,6 +1097,22 @@ export namespace Emulation {
1073
1097
  userContexts?: [Browser.UserContext, ...Browser.UserContext[]];
1074
1098
  };
1075
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
+ }
1076
1116
  export type NetworkCommand =
1077
1117
  | Network.AddDataCollector
1078
1118
  | Network.AddIntercept
@@ -1085,7 +1125,8 @@ export type NetworkCommand =
1085
1125
  | Network.ProvideResponse
1086
1126
  | Network.RemoveDataCollector
1087
1127
  | Network.RemoveIntercept
1088
- | Network.SetCacheBehavior;
1128
+ | Network.SetCacheBehavior
1129
+ | Network.SetExtraHeaders;
1089
1130
  export type NetworkEvent =
1090
1131
  | Network.AuthRequired
1091
1132
  | Network.BeforeRequestSent
@@ -1117,11 +1158,6 @@ export namespace Network {
1117
1158
  intercepts?: [Network.Intercept, ...Network.Intercept[]];
1118
1159
  };
1119
1160
  }
1120
- export namespace Network {
1121
- export const enum DataType {
1122
- Response = 'response',
1123
- }
1124
- }
1125
1161
  export namespace Network {
1126
1162
  export type BytesValue = Network.StringValue | Network.Base64Value;
1127
1163
  }
@@ -1172,6 +1208,11 @@ export namespace Network {
1172
1208
  value: Network.BytesValue;
1173
1209
  };
1174
1210
  }
1211
+ export namespace Network {
1212
+ export const enum DataType {
1213
+ Response = 'response',
1214
+ }
1215
+ }
1175
1216
  export namespace Network {
1176
1217
  export type FetchTimingInfo = {
1177
1218
  timeOrigin: number;
@@ -1487,6 +1528,22 @@ export namespace Network {
1487
1528
  ];
1488
1529
  };
1489
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
+ }
1490
1547
  export type ScriptEvent =
1491
1548
  | Script.Message
1492
1549
  | Script.RealmCreated