webdriver-bidi-protocol 0.1.2 → 0.1.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,4 +1,5 @@
1
1
  version: 2
2
+ # bump
2
3
  updates:
3
4
  - package-ecosystem: npm
4
5
  directory: /
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "0.1.2"
2
+ ".": "0.1.3"
3
3
  }
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [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
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * re-generate types based on specifciation updates ([#88](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/88)) ([d3c2c6f](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/d3c2c6fcf973551d4bef5cbee5291e3581ae257c))
9
+
3
10
  ## [0.1.2](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/compare/webdriver-bidi-protocol-v0.1.1...webdriver-bidi-protocol-v0.1.2) (2024-12-08)
4
11
 
5
12
 
package/out/gen/main.d.ts CHANGED
@@ -170,6 +170,9 @@ export declare namespace Session {
170
170
  Ignore = 'ignore',
171
171
  }
172
172
  }
173
+ export declare namespace Session {
174
+ type Subscription = string;
175
+ }
173
176
  export declare namespace Session {
174
177
  type SubscriptionRequest = {
175
178
  events: [string, ...string[]];
@@ -179,6 +182,20 @@ export declare namespace Session {
179
182
  ];
180
183
  };
181
184
  }
185
+ export declare namespace Session {
186
+ type UnsubscribeByIdRequest = {
187
+ subscriptions: [Session.Subscription, ...Session.Subscription[]];
188
+ };
189
+ }
190
+ export declare namespace Session {
191
+ type UnsubscribeByAttributesRequest = {
192
+ events: [string, ...string[]];
193
+ contexts?: [
194
+ BrowsingContext.BrowsingContext,
195
+ ...BrowsingContext.BrowsingContext[],
196
+ ];
197
+ };
198
+ }
182
199
  export declare namespace Session {
183
200
  type Status = {
184
201
  method: 'session.status';
@@ -230,10 +247,17 @@ export declare namespace Session {
230
247
  params: Session.SubscriptionRequest;
231
248
  };
232
249
  }
250
+ export declare namespace Session {
251
+ type SubscriptionRequestResult = {
252
+ subscription: Session.Subscription;
253
+ };
254
+ }
233
255
  export declare namespace Session {
234
256
  type Unsubscribe = {
235
257
  method: 'session.unsubscribe';
236
- params: Session.SubscriptionRequest;
258
+ params:
259
+ | Session.UnsubscribeByAttributesRequest
260
+ | Session.UnsubscribeByIdRequest;
237
261
  };
238
262
  }
239
263
  export type BrowserCommand =
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webdriver-bidi-protocol",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "",
5
5
  "main": "out/index.js",
6
6
  "types": "out/index.d.ts",
package/src/gen/main.ts CHANGED
@@ -172,6 +172,9 @@ export namespace Session {
172
172
  Ignore = 'ignore',
173
173
  }
174
174
  }
175
+ export namespace Session {
176
+ export type Subscription = string;
177
+ }
175
178
  export namespace Session {
176
179
  export type SubscriptionRequest = {
177
180
  events: [string, ...string[]];
@@ -181,6 +184,20 @@ export namespace Session {
181
184
  ];
182
185
  };
183
186
  }
187
+ export namespace Session {
188
+ export type UnsubscribeByIdRequest = {
189
+ subscriptions: [Session.Subscription, ...Session.Subscription[]];
190
+ };
191
+ }
192
+ export namespace Session {
193
+ export type UnsubscribeByAttributesRequest = {
194
+ events: [string, ...string[]];
195
+ contexts?: [
196
+ BrowsingContext.BrowsingContext,
197
+ ...BrowsingContext.BrowsingContext[],
198
+ ];
199
+ };
200
+ }
184
201
  export namespace Session {
185
202
  export type Status = {
186
203
  method: 'session.status';
@@ -232,10 +249,17 @@ export namespace Session {
232
249
  params: Session.SubscriptionRequest;
233
250
  };
234
251
  }
252
+ export namespace Session {
253
+ export type SubscriptionRequestResult = {
254
+ subscription: Session.Subscription;
255
+ };
256
+ }
235
257
  export namespace Session {
236
258
  export type Unsubscribe = {
237
259
  method: 'session.unsubscribe';
238
- params: Session.SubscriptionRequest;
260
+ params:
261
+ | Session.UnsubscribeByAttributesRequest
262
+ | Session.UnsubscribeByIdRequest;
239
263
  };
240
264
  }
241
265
  export type BrowserCommand =