/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod"; export type WaitUrlCommand = { thoughts?: string | undefined; /** * unique identifier to this step, used for step cache */ id: string; type?: "WAIT_FOR_URL" | undefined; /** * Deprecated: url or glob to wait for. New commands should use the discriminated matcher field. */ url: string; /** * Whether to ignore case when matching the URL */ caseInsensitive?: boolean | undefined; /** * Wait for the URL to NOT match the provided matcher instead. */ negated?: boolean | undefined; /** * Max seconds to wait for the URL to match */ timeout?: number | undefined; }; /** @internal */ export const WaitUrlCommand$inboundSchema: z.ZodType< WaitUrlCommand, z.ZodTypeDef, unknown > = z.object({ thoughts: z.string().optional(), id: z.string(), type: z.literal("WAIT_FOR_URL").optional(), url: z.string(), caseInsensitive: z.boolean().optional(), negated: z.boolean().optional(), timeout: z.number().int().optional(), }); /** @internal */ export type WaitUrlCommand$Outbound = { thoughts?: string | undefined; id: string; type: "WAIT_FOR_URL"; url: string; caseInsensitive?: boolean | undefined; negated?: boolean | undefined; timeout?: number | undefined; }; /** @internal */ export const WaitUrlCommand$outboundSchema: z.ZodType< WaitUrlCommand$Outbound, z.ZodTypeDef, WaitUrlCommand > = z.object({ thoughts: z.string().optional(), id: z.string(), type: z.literal("WAIT_FOR_URL").default("WAIT_FOR_URL" as const), url: z.string(), caseInsensitive: z.boolean().optional(), negated: z.boolean().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 WaitUrlCommand$ { /** @deprecated use `WaitUrlCommand$inboundSchema` instead. */ export const inboundSchema = WaitUrlCommand$inboundSchema; /** @deprecated use `WaitUrlCommand$outboundSchema` instead. */ export const outboundSchema = WaitUrlCommand$outboundSchema; /** @deprecated use `WaitUrlCommand$Outbound` instead. */ export type Outbound = WaitUrlCommand$Outbound; }