/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod"; import { ElementTarget, ElementTarget$inboundSchema, ElementTarget$Outbound, ElementTarget$outboundSchema, } from "./elementtarget.js"; import { SingleTargetCache, SingleTargetCache$inboundSchema, SingleTargetCache$Outbound, SingleTargetCache$outboundSchema, } from "./singletargetcache.js"; export type TypeCommand = { thoughts?: string | undefined; /** * unique identifier to this step, used for step cache */ id: string; useSelector?: boolean | undefined; force?: boolean | undefined; /** * disable element caching for this step */ disableCache?: boolean | undefined; /** * url or url regex for the iframe */ iframeUrl?: string | undefined; clearContent?: boolean | undefined; /** * Deprecated: this is now the default. Please set delay to zero if you wish to achieve instant typing behavior. */ pressKeysSequentially?: boolean | undefined; /** * Delay between each press in milliseconds. */ delay?: number | undefined; pressEnter?: boolean | undefined; type?: "TYPE" | undefined; target?: ElementTarget | undefined; value: string; cache?: SingleTargetCache | undefined; }; /** @internal */ export const TypeCommand$inboundSchema: z.ZodType< TypeCommand, z.ZodTypeDef, unknown > = z.object({ thoughts: z.string().optional(), id: z.string(), useSelector: z.boolean().optional(), force: z.boolean().optional(), disableCache: z.boolean().optional(), iframeUrl: z.string().optional(), clearContent: z.boolean().optional(), pressKeysSequentially: z.boolean().optional(), delay: z.number().optional(), pressEnter: z.boolean().optional(), type: z.literal("TYPE").optional(), target: ElementTarget$inboundSchema.optional(), value: z.string(), cache: SingleTargetCache$inboundSchema.optional(), }); /** @internal */ export type TypeCommand$Outbound = { thoughts?: string | undefined; id: string; useSelector?: boolean | undefined; force?: boolean | undefined; disableCache?: boolean | undefined; iframeUrl?: string | undefined; clearContent?: boolean | undefined; pressKeysSequentially?: boolean | undefined; delay?: number | undefined; pressEnter?: boolean | undefined; type: "TYPE"; target?: ElementTarget$Outbound | undefined; value: string; cache?: SingleTargetCache$Outbound | undefined; }; /** @internal */ export const TypeCommand$outboundSchema: z.ZodType< TypeCommand$Outbound, z.ZodTypeDef, TypeCommand > = z.object({ thoughts: z.string().optional(), id: z.string(), useSelector: z.boolean().optional(), force: z.boolean().optional(), disableCache: z.boolean().optional(), iframeUrl: z.string().optional(), clearContent: z.boolean().optional(), pressKeysSequentially: z.boolean().optional(), delay: z.number().optional(), pressEnter: z.boolean().optional(), type: z.literal("TYPE").default("TYPE" as const), target: ElementTarget$outboundSchema.optional(), value: z.string(), cache: SingleTargetCache$outboundSchema.optional(), }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace TypeCommand$ { /** @deprecated use `TypeCommand$inboundSchema` instead. */ export const inboundSchema = TypeCommand$inboundSchema; /** @deprecated use `TypeCommand$outboundSchema` instead. */ export const outboundSchema = TypeCommand$outboundSchema; /** @deprecated use `TypeCommand$Outbound` instead. */ export type Outbound = TypeCommand$Outbound; }