/* * 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 ScrollLeftCommand = { 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; cache?: SingleTargetCache | undefined; target?: ElementTarget | undefined; type?: "SCROLL_LEFT" | undefined; deltaX?: number | undefined; }; /** @internal */ export const ScrollLeftCommand$inboundSchema: z.ZodType< ScrollLeftCommand, 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(), cache: SingleTargetCache$inboundSchema.optional(), target: ElementTarget$inboundSchema.optional(), type: z.literal("SCROLL_LEFT").optional(), deltaX: z.number().optional(), }); /** @internal */ export type ScrollLeftCommand$Outbound = { thoughts?: string | undefined; id: string; useSelector?: boolean | undefined; force?: boolean | undefined; disableCache?: boolean | undefined; iframeUrl?: string | undefined; cache?: SingleTargetCache$Outbound | undefined; target?: ElementTarget$Outbound | undefined; type: "SCROLL_LEFT"; deltaX?: number | undefined; }; /** @internal */ export const ScrollLeftCommand$outboundSchema: z.ZodType< ScrollLeftCommand$Outbound, z.ZodTypeDef, ScrollLeftCommand > = 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(), cache: SingleTargetCache$outboundSchema.optional(), target: ElementTarget$outboundSchema.optional(), type: z.literal("SCROLL_LEFT").default("SCROLL_LEFT" as const), deltaX: z.number().optional(), }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace ScrollLeftCommand$ { /** @deprecated use `ScrollLeftCommand$inboundSchema` instead. */ export const inboundSchema = ScrollLeftCommand$inboundSchema; /** @deprecated use `ScrollLeftCommand$outboundSchema` instead. */ export const outboundSchema = ScrollLeftCommand$outboundSchema; /** @deprecated use `ScrollLeftCommand$Outbound` instead. */ export type Outbound = ScrollLeftCommand$Outbound; }