/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod"; export type AIWaitCommand = { thoughts?: string | undefined; /** * unique identifier to this step, used for step cache */ id: string; type?: "AI_WAIT" | undefined; assertion: string; disableCache?: boolean | undefined; iframeUrl?: string | undefined; contextChoice?: "MULTIMODAL" | undefined; /** * Max seconds to wait for assertion to be true */ timeout?: number | undefined; }; /** @internal */ export const AIWaitCommand$inboundSchema: z.ZodType< AIWaitCommand, z.ZodTypeDef, unknown > = z.object({ thoughts: z.string().optional(), id: z.string(), type: z.literal("AI_WAIT").optional(), assertion: z.string(), disableCache: z.boolean().optional(), iframeUrl: z.string().optional(), contextChoice: z.literal("MULTIMODAL").optional(), timeout: z.number().int().optional(), }); /** @internal */ export type AIWaitCommand$Outbound = { thoughts?: string | undefined; id: string; type: "AI_WAIT"; assertion: string; disableCache?: boolean | undefined; iframeUrl?: string | undefined; contextChoice: "MULTIMODAL"; timeout?: number | undefined; }; /** @internal */ export const AIWaitCommand$outboundSchema: z.ZodType< AIWaitCommand$Outbound, z.ZodTypeDef, AIWaitCommand > = z.object({ thoughts: z.string().optional(), id: z.string(), type: z.literal("AI_WAIT").default("AI_WAIT" as const), assertion: z.string(), disableCache: z.boolean().optional(), iframeUrl: z.string().optional(), contextChoice: z.literal("MULTIMODAL").default("MULTIMODAL" as const), 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 AIWaitCommand$ { /** @deprecated use `AIWaitCommand$inboundSchema` instead. */ export const inboundSchema = AIWaitCommand$inboundSchema; /** @deprecated use `AIWaitCommand$outboundSchema` instead. */ export const outboundSchema = AIWaitCommand$outboundSchema; /** @deprecated use `AIWaitCommand$Outbound` instead. */ export type Outbound = AIWaitCommand$Outbound; }