diff --git a/packages/protocol/schemas.ts b/packages/protocol/schemas.ts index 7ab8b023f..e60b08049 100644 --- a/packages/protocol/schemas.ts +++ b/packages/protocol/schemas.ts @@ -1222,24 +1222,21 @@ export const PageNavigationOptionsSchema = z .meta({ id: "PageNavigationOptions" }); export const PageVoidResultSchema = z - .object({ + .strictObject({ ok: z.literal(true), }) - .strict() .meta({ id: "PageVoidResult" }); export const ContextVoidResultSchema = z - .object({ + .strictObject({ ok: z.literal(true), }) - .strict() .meta({ id: "ContextVoidResult" }); export const ContextCloseResultSchema = z - .object({ + .strictObject({ closed: z.literal(true), }) - .strict() .meta({ id: "ContextCloseResult" }); export const PageCoordinateResultSchema = z @@ -1734,10 +1731,9 @@ export const StagehandInitResultSchema = z .meta({ id: "StagehandInitResult" }); export const StagehandCloseResultSchema = z - .object({ + .strictObject({ closed: z.literal(true), }) - .strict() .meta({ id: "StagehandCloseResult" }); export const ContextPagesResultSchema = z.array(PageRefSchema).meta({ id: "ContextPagesResult" }); @@ -1777,10 +1773,9 @@ export const PageTitleResultSchema = z .meta({ id: "PageTitleResult" }); export const PageCloseResultSchema = z - .object({ + .strictObject({ closed: z.literal(true), }) - .strict() .meta({ id: "PageCloseResult" }); export const PageDragAndDropResultSchema = z @@ -1810,24 +1805,21 @@ export const PageWaitForSelectorResultSchema = z .meta({ id: "PageWaitForSelectorResult" }); export const LocatorClickResultSchema = z - .object({ + .strictObject({ clicked: z.literal(true), }) - .strict() .meta({ id: "LocatorClickResult" }); export const LocatorFillResultSchema = z - .object({ + .strictObject({ filled: z.literal(true), }) - .strict() .meta({ id: "LocatorFillResult" }); export const LocatorHoverResultSchema = z - .object({ + .strictObject({ hovered: z.literal(true), }) - .strict() .meta({ id: "LocatorHoverResult" }); export const LocatorCountResultSchema = z @@ -1873,10 +1865,9 @@ export const LocatorTextContentResultSchema = z .meta({ id: "LocatorTextContentResult" }); export const LocatorScrollToResultSchema = z - .object({ + .strictObject({ scrolled: z.literal(true), }) - .strict() .meta({ id: "LocatorScrollToResult" }); export const LocatorCentroidResultSchema = z @@ -1887,24 +1878,21 @@ export const LocatorCentroidResultSchema = z .meta({ id: "LocatorCentroidResult" }); export const LocatorHighlightResultSchema = z - .object({ + .strictObject({ highlighted: z.literal(true), }) - .strict() .meta({ id: "LocatorHighlightResult" }); export const LocatorSendClickEventResultSchema = z - .object({ + .strictObject({ clicked: z.literal(true), }) - .strict() .meta({ id: "LocatorSendClickEventResult" }); export const LocatorTypeResultSchema = z - .object({ + .strictObject({ typed: z.literal(true), }) - .strict() .meta({ id: "LocatorTypeResult" }); export const LocatorSelectOptionResultSchema = z diff --git a/packages/sdk-go/internal/extensionassets/stagehand-extension.zip b/packages/sdk-go/internal/extensionassets/stagehand-extension.zip index b1c3d8af2..c58d34417 100644 Binary files a/packages/sdk-go/internal/extensionassets/stagehand-extension.zip and b/packages/sdk-go/internal/extensionassets/stagehand-extension.zip differ diff --git a/packages/sdk-go/models.gen.go b/packages/sdk-go/models.gen.go index 4a56ac534..eee55d277 100644 --- a/packages/sdk-go/models.gen.go +++ b/packages/sdk-go/models.gen.go @@ -2465,7 +2465,4 @@ type generatedModelCatalog struct { // Schema7 corresponds to the JSON schema field "__schema7". Schema7 json.RawMessage `json:"__schema7,omitempty,omitzero"` - - // Schema8 corresponds to the JSON schema field "__schema8". - Schema8 json.RawMessage `json:"__schema8,omitempty,omitzero"` }