/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod"; import { ManualPageAssertion, ManualPageAssertion$inboundSchema, ManualPageAssertion$Outbound, ManualPageAssertion$outboundSchema, } from "./manualpageassertion.js"; export type PageAssertionCommand = { thoughts?: string | undefined; /** * unique identifier to this step, used for step cache */ id: string; type?: "PAGE_CHECK" | undefined; assertion: ManualPageAssertion; /** * url or url regex for the iframe */ iframeUrl?: string | undefined; /** * max seconds to wait for the assertion to be true */ timeout?: number | undefined; }; /** @internal */ export const PageAssertionCommand$inboundSchema: z.ZodType< PageAssertionCommand, z.ZodTypeDef, unknown > = z.object({ thoughts: z.string().optional(), id: z.string(), type: z.literal("PAGE_CHECK").optional(), assertion: ManualPageAssertion$inboundSchema, iframeUrl: z.string().optional(), timeout: z.number().int().optional(), }); /** @internal */ export type PageAssertionCommand$Outbound = { thoughts?: string | undefined; id: string; type: "PAGE_CHECK"; assertion: ManualPageAssertion$Outbound; iframeUrl?: string | undefined; timeout?: number | undefined; }; /** @internal */ export const PageAssertionCommand$outboundSchema: z.ZodType< PageAssertionCommand$Outbound, z.ZodTypeDef, PageAssertionCommand > = z.object({ thoughts: z.string().optional(), id: z.string(), type: z.literal("PAGE_CHECK").default("PAGE_CHECK" as const), assertion: ManualPageAssertion$outboundSchema, iframeUrl: z.string().optional(), timeout: z.number().int().optional(), }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace PageAssertionCommand$ { /** @deprecated use `PageAssertionCommand$inboundSchema` instead. */ export const inboundSchema = PageAssertionCommand$inboundSchema; /** @deprecated use `PageAssertionCommand$outboundSchema` instead. */ export const outboundSchema = PageAssertionCommand$outboundSchema; /** @deprecated use `PageAssertionCommand$Outbound` instead. */ export type Outbound = PageAssertionCommand$Outbound; }