webdriver-bidi-protocol 0.1.5 → 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.5"
2
+ ".": "0.1.7"
3
3
  }
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
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
+
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)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * re-generate types based on specifciation updates ([#108](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/108)) ([00199dc](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/00199dc6e53e35cb12e1e67ce441a2d06f87e9ae))
18
+
3
19
  ## [0.1.5](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/compare/webdriver-bidi-protocol-v0.1.4...webdriver-bidi-protocol-v0.1.5) (2025-01-19)
4
20
 
5
21
 
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';
@@ -1813,6 +1824,7 @@ export declare namespace Script {
1813
1824
  BrowsingContext.BrowsingContext,
1814
1825
  ...BrowsingContext.BrowsingContext[],
1815
1826
  ];
1827
+ userContexts?: [Browser.UserContext, ...Browser.UserContext[]];
1816
1828
  sandbox?: string;
1817
1829
  };
1818
1830
  }
@@ -2091,6 +2103,7 @@ export type InputCommand =
2091
2103
  | Input.PerformActions
2092
2104
  | Input.ReleaseActions
2093
2105
  | Input.SetFiles;
2106
+ export type InputEvent = Input.FileDialogOpened;
2094
2107
  export declare namespace Input {
2095
2108
  type ElementOrigin = {
2096
2109
  type: 'element';
@@ -2212,8 +2225,8 @@ export declare namespace Input {
2212
2225
  export declare namespace Input {
2213
2226
  type PointerMoveAction = {
2214
2227
  type: 'pointerMove';
2215
- x: JsInt;
2216
- y: JsInt;
2228
+ x: number;
2229
+ y: number;
2217
2230
  duration?: JsUint;
2218
2231
  origin?: Input.Origin;
2219
2232
  } & Input.PointerCommonProperties;
@@ -2297,6 +2310,19 @@ export declare namespace Input {
2297
2310
  files: [...string[]];
2298
2311
  };
2299
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
+ }
2300
2326
  export type WebExtensionCommand = WebExtension.Install | WebExtension.Uninstall;
2301
2327
  export type WebExtensionResult = WebExtension.InstallResult;
2302
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.5",
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';
@@ -1817,6 +1828,7 @@ export namespace Script {
1817
1828
  BrowsingContext.BrowsingContext,
1818
1829
  ...BrowsingContext.BrowsingContext[],
1819
1830
  ];
1831
+ userContexts?: [Browser.UserContext, ...Browser.UserContext[]];
1820
1832
  sandbox?: string;
1821
1833
  };
1822
1834
  }
@@ -2095,6 +2107,7 @@ export type InputCommand =
2095
2107
  | Input.PerformActions
2096
2108
  | Input.ReleaseActions
2097
2109
  | Input.SetFiles;
2110
+ export type InputEvent = Input.FileDialogOpened;
2098
2111
  export namespace Input {
2099
2112
  export type ElementOrigin = {
2100
2113
  type: 'element';
@@ -2216,8 +2229,8 @@ export namespace Input {
2216
2229
  export namespace Input {
2217
2230
  export type PointerMoveAction = {
2218
2231
  type: 'pointerMove';
2219
- x: JsInt;
2220
- y: JsInt;
2232
+ x: number;
2233
+ y: number;
2221
2234
  duration?: JsUint;
2222
2235
  origin?: Input.Origin;
2223
2236
  } & Input.PointerCommonProperties;
@@ -2301,6 +2314,19 @@ export namespace Input {
2301
2314
  files: [...string[]];
2302
2315
  };
2303
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
+ }
2304
2330
  export type WebExtensionCommand = WebExtension.Install | WebExtension.Uninstall;
2305
2331
  export type WebExtensionResult = WebExtension.InstallResult;
2306
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 {