webdriver-bidi-protocol 0.3.7 → 0.3.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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.3.8](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/compare/webdriver-bidi-protocol-v0.3.7...webdriver-bidi-protocol-v0.3.8) (2025-10-12)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * re-generate types based on specifciation updates ([#278](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/278)) ([e4eea99](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/e4eea99d53be065c0f16b676570ca49c5c89766f))
9
+
3
10
  ## [0.3.7](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/compare/webdriver-bidi-protocol-v0.3.6...webdriver-bidi-protocol-v0.3.7) (2025-10-07)
4
11
 
5
12
 
package/out/gen/main.d.ts CHANGED
@@ -1025,6 +1025,7 @@ export type EmulationCommand =
1025
1025
  | Emulation.SetForcedColorsModeThemeOverride
1026
1026
  | Emulation.SetGeolocationOverride
1027
1027
  | Emulation.SetLocaleOverride
1028
+ | Emulation.SetNetworkConditions
1028
1029
  | Emulation.SetScreenOrientationOverride
1029
1030
  | Emulation.SetScriptingEnabled
1030
1031
  | Emulation.SetTimezoneOverride
@@ -1151,6 +1152,30 @@ export declare namespace Emulation {
1151
1152
  export declare namespace Emulation {
1152
1153
  type SetLocaleOverrideResult = EmptyResult;
1153
1154
  }
1155
+ export declare namespace Emulation {
1156
+ type SetNetworkConditions = {
1157
+ method: 'emulation.setNetworkConditions';
1158
+ params: Emulation.SetNetworkConditionsParameters;
1159
+ };
1160
+ }
1161
+ export declare namespace Emulation {
1162
+ type SetNetworkConditionsParameters = {
1163
+ networkConditions: Emulation.NetworkConditions | null;
1164
+ contexts?: [
1165
+ BrowsingContext.BrowsingContext,
1166
+ ...BrowsingContext.BrowsingContext[],
1167
+ ];
1168
+ userContexts?: [Browser.UserContext, ...Browser.UserContext[]];
1169
+ };
1170
+ }
1171
+ export declare namespace Emulation {
1172
+ type NetworkConditions = Emulation.NetworkConditionsOffline;
1173
+ }
1174
+ export declare namespace Emulation {
1175
+ type NetworkConditionsOffline = {
1176
+ type: 'offline';
1177
+ };
1178
+ }
1154
1179
  export declare namespace Emulation {
1155
1180
  type SetScreenOrientationOverride = {
1156
1181
  method: 'emulation.setScreenOrientationOverride';
@@ -1356,6 +1381,7 @@ export declare namespace Network {
1356
1381
  }
1357
1382
  export declare namespace Network {
1358
1383
  const enum DataType {
1384
+ Request = 'request',
1359
1385
  Response = 'response',
1360
1386
  }
1361
1387
  }
@@ -138,6 +138,10 @@ export interface Commands {
138
138
  params: Bidi.Emulation.SetLocaleOverrideParameters;
139
139
  returnType: Bidi.Emulation.SetLocaleOverrideResult;
140
140
  };
141
+ 'emulation.setNetworkConditions': {
142
+ params: Bidi.Emulation.SetNetworkConditionsParameters;
143
+ returnType: Bidi.EmptyResult;
144
+ };
141
145
  'emulation.setScreenOrientationOverride': {
142
146
  params: Bidi.Emulation.SetScreenOrientationOverrideParameters;
143
147
  returnType: Bidi.Emulation.SetScreenOrientationOverrideResult;
@@ -22,7 +22,7 @@ export declare namespace Permissions {
22
22
  descriptor: Permissions.PermissionDescriptor;
23
23
  state: Permissions.PermissionState;
24
24
  origin: string;
25
- topLevelOrigin?: string;
25
+ embeddedOrigin?: string;
26
26
  userContext?: string;
27
27
  };
28
28
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webdriver-bidi-protocol",
3
- "version": "0.3.7",
3
+ "version": "0.3.8",
4
4
  "description": "",
5
5
  "main": "out/index.js",
6
6
  "types": "out/index.d.ts",
package/src/gen/main.ts CHANGED
@@ -1027,6 +1027,7 @@ export type EmulationCommand =
1027
1027
  | Emulation.SetForcedColorsModeThemeOverride
1028
1028
  | Emulation.SetGeolocationOverride
1029
1029
  | Emulation.SetLocaleOverride
1030
+ | Emulation.SetNetworkConditions
1030
1031
  | Emulation.SetScreenOrientationOverride
1031
1032
  | Emulation.SetScriptingEnabled
1032
1033
  | Emulation.SetTimezoneOverride
@@ -1153,6 +1154,30 @@ export namespace Emulation {
1153
1154
  export namespace Emulation {
1154
1155
  export type SetLocaleOverrideResult = EmptyResult;
1155
1156
  }
1157
+ export namespace Emulation {
1158
+ export type SetNetworkConditions = {
1159
+ method: 'emulation.setNetworkConditions';
1160
+ params: Emulation.SetNetworkConditionsParameters;
1161
+ };
1162
+ }
1163
+ export namespace Emulation {
1164
+ export type SetNetworkConditionsParameters = {
1165
+ networkConditions: Emulation.NetworkConditions | null;
1166
+ contexts?: [
1167
+ BrowsingContext.BrowsingContext,
1168
+ ...BrowsingContext.BrowsingContext[],
1169
+ ];
1170
+ userContexts?: [Browser.UserContext, ...Browser.UserContext[]];
1171
+ };
1172
+ }
1173
+ export namespace Emulation {
1174
+ export type NetworkConditions = Emulation.NetworkConditionsOffline;
1175
+ }
1176
+ export namespace Emulation {
1177
+ export type NetworkConditionsOffline = {
1178
+ type: 'offline';
1179
+ };
1180
+ }
1156
1181
  export namespace Emulation {
1157
1182
  export type SetScreenOrientationOverride = {
1158
1183
  method: 'emulation.setScreenOrientationOverride';
@@ -1358,6 +1383,7 @@ export namespace Network {
1358
1383
  }
1359
1384
  export namespace Network {
1360
1385
  export const enum DataType {
1386
+ Request = 'request',
1361
1387
  Response = 'response',
1362
1388
  }
1363
1389
  }
@@ -139,6 +139,10 @@ export interface Commands {
139
139
  params: Bidi.Emulation.SetLocaleOverrideParameters;
140
140
  returnType: Bidi.Emulation.SetLocaleOverrideResult;
141
141
  };
142
+ 'emulation.setNetworkConditions': {
143
+ params: Bidi.Emulation.SetNetworkConditionsParameters;
144
+ returnType: Bidi.EmptyResult;
145
+ };
142
146
  'emulation.setScreenOrientationOverride': {
143
147
  params: Bidi.Emulation.SetScreenOrientationOverrideParameters;
144
148
  returnType: Bidi.Emulation.SetScreenOrientationOverrideResult;
@@ -22,7 +22,7 @@ export namespace Permissions {
22
22
  descriptor: Permissions.PermissionDescriptor;
23
23
  state: Permissions.PermissionState;
24
24
  origin: string;
25
- topLevelOrigin?: string;
25
+ embeddedOrigin?: string;
26
26
  userContext?: string;
27
27
  };
28
28
  }