webdriver-bidi-protocol 0.1.3 → 0.1.5

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.
@@ -29,7 +29,7 @@ jobs:
29
29
  - name: Build and test
30
30
  run: npm test
31
31
  - name: Create Pull Request
32
- uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # v7.0.5
32
+ uses: peter-evans/create-pull-request@67ccf781d68cd99b580ae25a5c18a1cc84ffff1f # v7.0.6
33
33
  with:
34
34
  token: ${{ secrets.BROWSER_AUTOMATION_BOT_TOKEN }}
35
35
  branch: regenerate
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "0.1.3"
2
+ ".": "0.1.5"
3
3
  }
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # Changelog
2
2
 
3
+ ## [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
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * re-generate types based on specifciation updates ([#101](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/101)) ([c2aa431](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/c2aa431b0e7fe5c229f51d7b549fb6eb51009087))
9
+ * re-generate types based on specifciation updates ([#105](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/105)) ([adec09b](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/adec09b1c6fc6a29952a9c0a641ebd5d22f7370d))
10
+
11
+ ## [0.1.4](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/compare/webdriver-bidi-protocol-v0.1.3...webdriver-bidi-protocol-v0.1.4) (2025-01-08)
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * re-generate types based on specifciation updates ([#95](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/95)) ([64abd1d](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/64abd1d65d99e75d7ec1e885fe22c0f093323843))
17
+
3
18
  ## [0.1.3](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/compare/webdriver-bidi-protocol-v0.1.2...webdriver-bidi-protocol-v0.1.3) (2024-12-20)
4
19
 
5
20
 
package/out/gen/main.d.ts CHANGED
@@ -97,7 +97,10 @@ export declare namespace Session {
97
97
  | Session.SystemProxyConfiguration
98
98
  | Record<string, never>;
99
99
  }
100
- export type SessionResult = Session.NewResult | Session.StatusResult;
100
+ export type SessionResult =
101
+ | Session.NewResult
102
+ | Session.StatusResult
103
+ | Session.SubscribeResult;
101
104
  export declare namespace Session {
102
105
  type CapabilitiesRequest = {
103
106
  alwaysMatch?: Session.CapabilityRequest;
@@ -180,6 +183,7 @@ export declare namespace Session {
180
183
  BrowsingContext.BrowsingContext,
181
184
  ...BrowsingContext.BrowsingContext[],
182
185
  ];
186
+ userContexts?: [Browser.UserContext, ...Browser.UserContext[]];
183
187
  };
184
188
  }
185
189
  export declare namespace Session {
@@ -248,7 +252,7 @@ export declare namespace Session {
248
252
  };
249
253
  }
250
254
  export declare namespace Session {
251
- type SubscriptionRequestResult = {
255
+ type SubscribeResult = {
252
256
  subscription: Session.Subscription;
253
257
  };
254
258
  }
@@ -423,6 +427,7 @@ export declare namespace BrowsingContext {
423
427
  type Locator =
424
428
  | BrowsingContext.AccessibilityLocator
425
429
  | BrowsingContext.CssLocator
430
+ | BrowsingContext.ContextLocator
426
431
  | BrowsingContext.InnerTextLocator
427
432
  | BrowsingContext.XPathLocator;
428
433
  }
@@ -441,6 +446,14 @@ export declare namespace BrowsingContext {
441
446
  value: string;
442
447
  };
443
448
  }
449
+ export declare namespace BrowsingContext {
450
+ type ContextLocator = {
451
+ type: 'context';
452
+ value: {
453
+ context: BrowsingContext.BrowsingContext;
454
+ };
455
+ };
456
+ }
444
457
  export declare namespace BrowsingContext {
445
458
  type InnerTextLocator = {
446
459
  type: 'innerText';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webdriver-bidi-protocol",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "",
5
5
  "main": "out/index.js",
6
6
  "types": "out/index.d.ts",
@@ -25,6 +25,6 @@
25
25
  "parse5": "^7.1.2",
26
26
  "prettier": "3.4.2",
27
27
  "tsd": "0.31.2",
28
- "typescript": "5.7.2"
28
+ "typescript": "5.7.3"
29
29
  }
30
30
  }
package/src/gen/main.ts CHANGED
@@ -99,7 +99,10 @@ export namespace Session {
99
99
  | Session.SystemProxyConfiguration
100
100
  | Record<string, never>;
101
101
  }
102
- export type SessionResult = Session.NewResult | Session.StatusResult;
102
+ export type SessionResult =
103
+ | Session.NewResult
104
+ | Session.StatusResult
105
+ | Session.SubscribeResult;
103
106
  export namespace Session {
104
107
  export type CapabilitiesRequest = {
105
108
  alwaysMatch?: Session.CapabilityRequest;
@@ -182,6 +185,7 @@ export namespace Session {
182
185
  BrowsingContext.BrowsingContext,
183
186
  ...BrowsingContext.BrowsingContext[],
184
187
  ];
188
+ userContexts?: [Browser.UserContext, ...Browser.UserContext[]];
185
189
  };
186
190
  }
187
191
  export namespace Session {
@@ -250,7 +254,7 @@ export namespace Session {
250
254
  };
251
255
  }
252
256
  export namespace Session {
253
- export type SubscriptionRequestResult = {
257
+ export type SubscribeResult = {
254
258
  subscription: Session.Subscription;
255
259
  };
256
260
  }
@@ -425,6 +429,7 @@ export namespace BrowsingContext {
425
429
  export type Locator =
426
430
  | BrowsingContext.AccessibilityLocator
427
431
  | BrowsingContext.CssLocator
432
+ | BrowsingContext.ContextLocator
428
433
  | BrowsingContext.InnerTextLocator
429
434
  | BrowsingContext.XPathLocator;
430
435
  }
@@ -443,6 +448,14 @@ export namespace BrowsingContext {
443
448
  value: string;
444
449
  };
445
450
  }
451
+ export namespace BrowsingContext {
452
+ export type ContextLocator = {
453
+ type: 'context';
454
+ value: {
455
+ context: BrowsingContext.BrowsingContext;
456
+ };
457
+ };
458
+ }
446
459
  export namespace BrowsingContext {
447
460
  export type InnerTextLocator = {
448
461
  type: 'innerText';