Skip to content

Commit

Permalink
fix: re-generate types based on specifciation updates (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
browser-automation-bot authored Dec 20, 2024
1 parent 2cc6ccb commit d3c2c6f
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 2 deletions.
26 changes: 25 additions & 1 deletion out/gen/main.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,9 @@ export declare namespace Session {
Ignore = 'ignore',
}
}
export declare namespace Session {
type Subscription = string;
}
export declare namespace Session {
type SubscriptionRequest = {
events: [string, ...string[]];
Expand All @@ -179,6 +182,20 @@ export declare namespace Session {
];
};
}
export declare namespace Session {
type UnsubscribeByIdRequest = {
subscriptions: [Session.Subscription, ...Session.Subscription[]];
};
}
export declare namespace Session {
type UnsubscribeByAttributesRequest = {
events: [string, ...string[]];
contexts?: [
BrowsingContext.BrowsingContext,
...BrowsingContext.BrowsingContext[],
];
};
}
export declare namespace Session {
type Status = {
method: 'session.status';
Expand Down Expand Up @@ -230,10 +247,17 @@ export declare namespace Session {
params: Session.SubscriptionRequest;
};
}
export declare namespace Session {
type SubscriptionRequestResult = {
subscription: Session.Subscription;
};
}
export declare namespace Session {
type Unsubscribe = {
method: 'session.unsubscribe';
params: Session.SubscriptionRequest;
params:
| Session.UnsubscribeByAttributesRequest
| Session.UnsubscribeByIdRequest;
};
}
export type BrowserCommand =
Expand Down
26 changes: 25 additions & 1 deletion src/gen/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,9 @@ export namespace Session {
Ignore = 'ignore',
}
}
export namespace Session {
export type Subscription = string;
}
export namespace Session {
export type SubscriptionRequest = {
events: [string, ...string[]];
Expand All @@ -181,6 +184,20 @@ export namespace Session {
];
};
}
export namespace Session {
export type UnsubscribeByIdRequest = {
subscriptions: [Session.Subscription, ...Session.Subscription[]];
};
}
export namespace Session {
export type UnsubscribeByAttributesRequest = {
events: [string, ...string[]];
contexts?: [
BrowsingContext.BrowsingContext,
...BrowsingContext.BrowsingContext[],
];
};
}
export namespace Session {
export type Status = {
method: 'session.status';
Expand Down Expand Up @@ -232,10 +249,17 @@ export namespace Session {
params: Session.SubscriptionRequest;
};
}
export namespace Session {
export type SubscriptionRequestResult = {
subscription: Session.Subscription;
};
}
export namespace Session {
export type Unsubscribe = {
method: 'session.unsubscribe';
params: Session.SubscriptionRequest;
params:
| Session.UnsubscribeByAttributesRequest
| Session.UnsubscribeByIdRequest;
};
}
export type BrowserCommand =
Expand Down

0 comments on commit d3c2c6f

Please sign in to comment.