From ff852f4f907d6bf8fe7bd9b29ab0203fe3821f01 Mon Sep 17 00:00:00 2001 From: Browser Automation Bot Date: Tue, 11 Feb 2025 13:00:33 +0000 Subject: [PATCH] fix: re-generate types based on specifciation updates --- out/gen/main.d.ts | 20 +++++++++++++++----- src/gen/main.ts | 20 +++++++++++++++----- 2 files changed, 30 insertions(+), 10 deletions(-) diff --git a/out/gen/main.d.ts b/out/gen/main.d.ts index fbb89fe..d05a271 100644 --- a/out/gen/main.d.ts +++ b/out/gen/main.d.ts @@ -259,11 +259,14 @@ export declare namespace Session { export declare namespace Session { type Unsubscribe = { method: 'session.unsubscribe'; - params: - | Session.UnsubscribeByAttributesRequest - | Session.UnsubscribeByIdRequest; + params: Session.UnsubscribeParameters; }; } +export declare namespace Session { + type UnsubscribeParameters = + | Session.UnsubscribeByAttributesRequest + | Session.UnsubscribeByIdRequest; +} export type BrowserCommand = | Browser.Close | Browser.CreateUserContext @@ -394,6 +397,7 @@ export type BrowsingContextEvent = | BrowsingContext.HistoryUpdated | BrowsingContext.Load | BrowsingContext.NavigationAborted + | BrowsingContext.NavigationCommitted | BrowsingContext.NavigationFailed | BrowsingContext.NavigationStarted | BrowsingContext.UserPromptClosed @@ -863,6 +867,12 @@ export declare namespace BrowsingContext { params: BrowsingContext.NavigationInfo; }; } +export declare namespace BrowsingContext { + type NavigationCommitted = { + method: 'browsingContext.navigationCommitted'; + params: BrowsingContext.NavigationInfo; + }; +} export declare namespace BrowsingContext { type NavigationFailed = { method: 'browsingContext.navigationFailed'; @@ -2213,8 +2223,8 @@ export declare namespace Input { export declare namespace Input { type PointerMoveAction = { type: 'pointerMove'; - x: JsInt; - y: JsInt; + x: number; + y: number; duration?: JsUint; origin?: Input.Origin; } & Input.PointerCommonProperties; diff --git a/src/gen/main.ts b/src/gen/main.ts index 505e0a4..5847186 100644 --- a/src/gen/main.ts +++ b/src/gen/main.ts @@ -261,11 +261,14 @@ export namespace Session { export namespace Session { export type Unsubscribe = { method: 'session.unsubscribe'; - params: - | Session.UnsubscribeByAttributesRequest - | Session.UnsubscribeByIdRequest; + params: Session.UnsubscribeParameters; }; } +export namespace Session { + export type UnsubscribeParameters = + | Session.UnsubscribeByAttributesRequest + | Session.UnsubscribeByIdRequest; +} export type BrowserCommand = | Browser.Close | Browser.CreateUserContext @@ -396,6 +399,7 @@ export type BrowsingContextEvent = | BrowsingContext.HistoryUpdated | BrowsingContext.Load | BrowsingContext.NavigationAborted + | BrowsingContext.NavigationCommitted | BrowsingContext.NavigationFailed | BrowsingContext.NavigationStarted | BrowsingContext.UserPromptClosed @@ -865,6 +869,12 @@ export namespace BrowsingContext { params: BrowsingContext.NavigationInfo; }; } +export namespace BrowsingContext { + export type NavigationCommitted = { + method: 'browsingContext.navigationCommitted'; + params: BrowsingContext.NavigationInfo; + }; +} export namespace BrowsingContext { export type NavigationFailed = { method: 'browsingContext.navigationFailed'; @@ -2217,8 +2227,8 @@ export namespace Input { export namespace Input { export type PointerMoveAction = { type: 'pointerMove'; - x: JsInt; - y: JsInt; + x: number; + y: number; duration?: JsUint; origin?: Input.Origin; } & Input.PointerCommonProperties;