webdriver-bidi-protocol 0.1.6 → 0.1.7

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,5 +1,5 @@
1
1
  version: 2
2
- # bump
2
+ # bump 3
3
3
  updates:
4
4
  - package-ecosystem: npm
5
5
  directory: /
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "0.1.6"
2
+ ".": "0.1.7"
3
3
  }
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## [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)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * 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))
9
+ * 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))
10
+ * 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))
11
+
3
12
  ## [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
13
 
5
14
 
package/out/gen/main.d.ts CHANGED
@@ -13,6 +13,7 @@ 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;
@@ -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,11 +261,14 @@ 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
@@ -352,11 +357,9 @@ export declare namespace Browser {
352
357
  };
353
358
  }
354
359
  export declare namespace Browser {
355
- type SetClientWindowStateParameters =
356
- | ({
357
- clientWindow: Browser.ClientWindow;
358
- } & Browser.ClientWindowNamedState)
359
- | Browser.ClientWindowRectState;
360
+ type SetClientWindowStateParameters = {
361
+ clientWindow: Browser.ClientWindow;
362
+ } & (Browser.ClientWindowNamedState | Browser.ClientWindowRectState);
360
363
  }
361
364
  export declare namespace Browser {
362
365
  type ClientWindowNamedState = {
@@ -394,6 +397,7 @@ export type BrowsingContextEvent =
394
397
  | BrowsingContext.HistoryUpdated
395
398
  | BrowsingContext.Load
396
399
  | BrowsingContext.NavigationAborted
400
+ | BrowsingContext.NavigationCommitted
397
401
  | BrowsingContext.NavigationFailed
398
402
  | BrowsingContext.NavigationStarted
399
403
  | BrowsingContext.UserPromptClosed
@@ -774,12 +778,13 @@ export declare namespace BrowsingContext {
774
778
  }
775
779
  export declare namespace BrowsingContext {
776
780
  type SetViewportParameters = {
777
- context: BrowsingContext.BrowsingContext;
781
+ context?: BrowsingContext.BrowsingContext;
778
782
  viewport?: BrowsingContext.Viewport | null;
779
783
  /**
780
784
  * Must be greater than `0`.
781
785
  */
782
786
  devicePixelRatio?: number | null;
787
+ userContexts?: [Browser.UserContext, ...Browser.UserContext[]];
783
788
  };
784
789
  }
785
790
  export declare namespace BrowsingContext {
@@ -863,6 +868,12 @@ export declare namespace BrowsingContext {
863
868
  params: BrowsingContext.NavigationInfo;
864
869
  };
865
870
  }
871
+ export declare namespace BrowsingContext {
872
+ type NavigationCommitted = {
873
+ method: 'browsingContext.navigationCommitted';
874
+ params: BrowsingContext.NavigationInfo;
875
+ };
876
+ }
866
877
  export declare namespace BrowsingContext {
867
878
  type NavigationFailed = {
868
879
  method: 'browsingContext.navigationFailed';
@@ -2092,6 +2103,7 @@ export type InputCommand =
2092
2103
  | Input.PerformActions
2093
2104
  | Input.ReleaseActions
2094
2105
  | Input.SetFiles;
2106
+ export type InputEvent = Input.FileDialogOpened;
2095
2107
  export declare namespace Input {
2096
2108
  type ElementOrigin = {
2097
2109
  type: 'element';
@@ -2213,8 +2225,8 @@ export declare namespace Input {
2213
2225
  export declare namespace Input {
2214
2226
  type PointerMoveAction = {
2215
2227
  type: 'pointerMove';
2216
- x: JsInt;
2217
- y: JsInt;
2228
+ x: number;
2229
+ y: number;
2218
2230
  duration?: JsUint;
2219
2231
  origin?: Input.Origin;
2220
2232
  } & Input.PointerCommonProperties;
@@ -2298,6 +2310,19 @@ export declare namespace Input {
2298
2310
  files: [...string[]];
2299
2311
  };
2300
2312
  }
2313
+ export declare namespace Input {
2314
+ type FileDialogOpened = {
2315
+ method: 'input.fileDialogOpened';
2316
+ params: Input.FileDialogInfo;
2317
+ };
2318
+ }
2319
+ export declare namespace Input {
2320
+ type FileDialogInfo = {
2321
+ context: BrowsingContext.BrowsingContext;
2322
+ element?: Script.SharedReference;
2323
+ multiple: boolean;
2324
+ };
2325
+ }
2301
2326
  export type WebExtensionCommand = WebExtension.Install | WebExtension.Uninstall;
2302
2327
  export type WebExtensionResult = WebExtension.InstallResult;
2303
2328
  export declare namespace WebExtension {
@@ -62,7 +62,9 @@ export declare namespace Bluetooth {
62
62
  export declare namespace Bluetooth {
63
63
  type SimulateAdapterParameters = {
64
64
  context: string;
65
- state: 'absent' | 'powered-off' | 'powered-on';
65
+ type: 'create' | 'update' | 'remove';
66
+ leSupported?: boolean;
67
+ state?: 'absent' | 'powered-off' | 'powered-on';
66
68
  };
67
69
  }
68
70
  export declare namespace Bluetooth {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webdriver-bidi-protocol",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "",
5
5
  "main": "out/index.js",
6
6
  "types": "out/index.d.ts",
package/src/gen/main.ts CHANGED
@@ -13,6 +13,7 @@ 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;
@@ -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,11 +263,14 @@ 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
@@ -354,11 +359,9 @@ export namespace Browser {
354
359
  };
355
360
  }
356
361
  export namespace Browser {
357
- export type SetClientWindowStateParameters =
358
- | ({
359
- clientWindow: Browser.ClientWindow;
360
- } & Browser.ClientWindowNamedState)
361
- | Browser.ClientWindowRectState;
362
+ export type SetClientWindowStateParameters = {
363
+ clientWindow: Browser.ClientWindow;
364
+ } & (Browser.ClientWindowNamedState | Browser.ClientWindowRectState);
362
365
  }
363
366
  export namespace Browser {
364
367
  export type ClientWindowNamedState = {
@@ -396,6 +399,7 @@ export type BrowsingContextEvent =
396
399
  | BrowsingContext.HistoryUpdated
397
400
  | BrowsingContext.Load
398
401
  | BrowsingContext.NavigationAborted
402
+ | BrowsingContext.NavigationCommitted
399
403
  | BrowsingContext.NavigationFailed
400
404
  | BrowsingContext.NavigationStarted
401
405
  | BrowsingContext.UserPromptClosed
@@ -776,12 +780,13 @@ export namespace BrowsingContext {
776
780
  }
777
781
  export namespace BrowsingContext {
778
782
  export type SetViewportParameters = {
779
- context: BrowsingContext.BrowsingContext;
783
+ context?: BrowsingContext.BrowsingContext;
780
784
  viewport?: BrowsingContext.Viewport | null;
781
785
  /**
782
786
  * Must be greater than `0`.
783
787
  */
784
788
  devicePixelRatio?: number | null;
789
+ userContexts?: [Browser.UserContext, ...Browser.UserContext[]];
785
790
  };
786
791
  }
787
792
  export namespace BrowsingContext {
@@ -865,6 +870,12 @@ export namespace BrowsingContext {
865
870
  params: BrowsingContext.NavigationInfo;
866
871
  };
867
872
  }
873
+ export namespace BrowsingContext {
874
+ export type NavigationCommitted = {
875
+ method: 'browsingContext.navigationCommitted';
876
+ params: BrowsingContext.NavigationInfo;
877
+ };
878
+ }
868
879
  export namespace BrowsingContext {
869
880
  export type NavigationFailed = {
870
881
  method: 'browsingContext.navigationFailed';
@@ -2096,6 +2107,7 @@ export type InputCommand =
2096
2107
  | Input.PerformActions
2097
2108
  | Input.ReleaseActions
2098
2109
  | Input.SetFiles;
2110
+ export type InputEvent = Input.FileDialogOpened;
2099
2111
  export namespace Input {
2100
2112
  export type ElementOrigin = {
2101
2113
  type: 'element';
@@ -2217,8 +2229,8 @@ export namespace Input {
2217
2229
  export namespace Input {
2218
2230
  export type PointerMoveAction = {
2219
2231
  type: 'pointerMove';
2220
- x: JsInt;
2221
- y: JsInt;
2232
+ x: number;
2233
+ y: number;
2222
2234
  duration?: JsUint;
2223
2235
  origin?: Input.Origin;
2224
2236
  } & Input.PointerCommonProperties;
@@ -2302,6 +2314,19 @@ export namespace Input {
2302
2314
  files: [...string[]];
2303
2315
  };
2304
2316
  }
2317
+ export namespace Input {
2318
+ export type FileDialogOpened = {
2319
+ method: 'input.fileDialogOpened';
2320
+ params: Input.FileDialogInfo;
2321
+ };
2322
+ }
2323
+ export namespace Input {
2324
+ export type FileDialogInfo = {
2325
+ context: BrowsingContext.BrowsingContext;
2326
+ element?: Script.SharedReference;
2327
+ multiple: boolean;
2328
+ };
2329
+ }
2305
2330
  export type WebExtensionCommand = WebExtension.Install | WebExtension.Uninstall;
2306
2331
  export type WebExtensionResult = WebExtension.InstallResult;
2307
2332
  export namespace WebExtension {
@@ -62,7 +62,9 @@ export namespace Bluetooth {
62
62
  export namespace Bluetooth {
63
63
  export type SimulateAdapterParameters = {
64
64
  context: string;
65
- state: 'absent' | 'powered-off' | 'powered-on';
65
+ type: 'create' | 'update' | 'remove';
66
+ leSupported?: boolean;
67
+ state?: 'absent' | 'powered-off' | 'powered-on';
66
68
  };
67
69
  }
68
70
  export namespace Bluetooth {