/* * 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 BlurCommand = { 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; type?: "BLUR" | undefined; target?: ElementTarget | undefined; cache?: SingleTargetCache | undefined; }; /** @internal */ export const BlurCommand$inboundSchema: z.ZodType< BlurCommand, 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(), type: z.literal("BLUR").optional(), target: ElementTarget$inboundSchema.optional(), cache: SingleTargetCache$inboundSchema.optional(), }); /** @internal */ export type BlurCommand$Outbound = { thoughts?: string | undefined; id: string; useSelector?: boolean | undefined; force?: boolean | undefined; disableCache?: boolean | undefined; iframeUrl?: string | undefined; type: "BLUR"; target?: ElementTarget$Outbound | undefined; cache?: SingleTargetCache$Outbound | undefined; }; /** @internal */ export const BlurCommand$outboundSchema: z.ZodType< BlurCommand$Outbound, z.ZodTypeDef, BlurCommand > = 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(), type: z.literal("BLUR").default("BLUR" as const), target: ElementTarget$outboundSchema.optional(), 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 BlurCommand$ { /** @deprecated use `BlurCommand$inboundSchema` instead. */ export const inboundSchema = BlurCommand$inboundSchema; /** @deprecated use `BlurCommand$outboundSchema` instead. */ export const outboundSchema = BlurCommand$outboundSchema; /** @deprecated use `BlurCommand$Outbound` instead. */ export type Outbound = BlurCommand$Outbound; }