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