Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 12 additions & 24 deletions packages/protocol/schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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" });
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
Binary file modified packages/sdk-go/internal/extensionassets/stagehand-extension.zip
Binary file not shown.
3 changes: 0 additions & 3 deletions packages/sdk-go/models.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading