/* * 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 ScrollDownCommand = { 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_DOWN" | undefined; deltaY?: number | undefined; }; /** @internal */ export const ScrollDownCommand$inboundSchema: z.ZodType< ScrollDownCommand, 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_DOWN").optional(), deltaY: z.number().optional(), }); /** @internal */ export type ScrollDownCommand$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_DOWN"; deltaY?: number | undefined; }; /** @internal */ export const ScrollDownCommand$outboundSchema: z.ZodType< ScrollDownCommand$Outbound, z.ZodTypeDef, ScrollDownCommand > = 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_DOWN").default("SCROLL_DOWN" as const), deltaY: 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 ScrollDownCommand$ { /** @deprecated use `ScrollDownCommand$inboundSchema` instead. */ export const inboundSchema = ScrollDownCommand$inboundSchema; /** @deprecated use `ScrollDownCommand$outboundSchema` instead. */ export const outboundSchema = ScrollDownCommand$outboundSchema; /** @deprecated use `ScrollDownCommand$Outbound` instead. */ export type Outbound = ScrollDownCommand$Outbound; }