Skip to content

Commit d3c2c6f

Browse files
fix: re-generate types based on specifciation updates (GoogleChromeLabs#88)
1 parent 2cc6ccb commit d3c2c6f

File tree

2 files changed

+50
-2
lines changed

2 files changed

+50
-2
lines changed

out/gen/main.d.ts

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,9 @@ export declare namespace Session {
170170
Ignore = 'ignore',
171171
}
172172
}
173+
export declare namespace Session {
174+
type Subscription = string;
175+
}
173176
export declare namespace Session {
174177
type SubscriptionRequest = {
175178
events: [string, ...string[]];
@@ -179,6 +182,20 @@ export declare namespace Session {
179182
];
180183
};
181184
}
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+
}
182199
export declare namespace Session {
183200
type Status = {
184201
method: 'session.status';
@@ -230,10 +247,17 @@ export declare namespace Session {
230247
params: Session.SubscriptionRequest;
231248
};
232249
}
250+
export declare namespace Session {
251+
type SubscriptionRequestResult = {
252+
subscription: Session.Subscription;
253+
};
254+
}
233255
export declare namespace Session {
234256
type Unsubscribe = {
235257
method: 'session.unsubscribe';
236-
params: Session.SubscriptionRequest;
258+
params:
259+
| Session.UnsubscribeByAttributesRequest
260+
| Session.UnsubscribeByIdRequest;
237261
};
238262
}
239263
export type BrowserCommand =

src/gen/main.ts

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,9 @@ export namespace Session {
172172
Ignore = 'ignore',
173173
}
174174
}
175+
export namespace Session {
176+
export type Subscription = string;
177+
}
175178
export namespace Session {
176179
export type SubscriptionRequest = {
177180
events: [string, ...string[]];
@@ -181,6 +184,20 @@ export namespace Session {
181184
];
182185
};
183186
}
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+
}
184201
export namespace Session {
185202
export type Status = {
186203
method: 'session.status';
@@ -232,10 +249,17 @@ export namespace Session {
232249
params: Session.SubscriptionRequest;
233250
};
234251
}
252+
export namespace Session {
253+
export type SubscriptionRequestResult = {
254+
subscription: Session.Subscription;
255+
};
256+
}
235257
export namespace Session {
236258
export type Unsubscribe = {
237259
method: 'session.unsubscribe';
238-
params: Session.SubscriptionRequest;
260+
params:
261+
| Session.UnsubscribeByAttributesRequest
262+
| Session.UnsubscribeByIdRequest;
239263
};
240264
}
241265
export type BrowserCommand =

0 commit comments

Comments
 (0)