/* * 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 MouseDragCommand = { 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?: "MOUSE_DRAG" | undefined; target?: ElementTarget | undefined; /** * pixels to move horizontally, can be template */ deltaX: string; /** * pixels to move vertically, can be template */ deltaY: string; steps?: number | undefined; cache?: SingleTargetCache | undefined; }; /** @internal */ export const MouseDragCommand$inboundSchema: z.ZodType< MouseDragCommand, 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("MOUSE_DRAG").optional(), target: ElementTarget$inboundSchema.optional(), deltaX: z.string(), deltaY: z.string(), steps: z.number().optional(), cache: SingleTargetCache$inboundSchema.optional(), }); /** @internal */ export type MouseDragCommand$Outbound = { thoughts?: string | undefined; id: string; useSelector?: boolean | undefined; force?: boolean | undefined; disableCache?: boolean | undefined; iframeUrl?: string | undefined; type: "MOUSE_DRAG"; target?: ElementTarget$Outbound | undefined; deltaX: string; deltaY: string; steps?: number | undefined; cache?: SingleTargetCache$Outbound | undefined; }; /** @internal */ export const MouseDragCommand$outboundSchema: z.ZodType< MouseDragCommand$Outbound, z.ZodTypeDef, MouseDragCommand > = 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("MOUSE_DRAG").default("MOUSE_DRAG" as const), target: ElementTarget$outboundSchema.optional(), deltaX: z.string(), deltaY: z.string(), steps: z.number().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 MouseDragCommand$ { /** @deprecated use `MouseDragCommand$inboundSchema` instead. */ export const inboundSchema = MouseDragCommand$inboundSchema; /** @deprecated use `MouseDragCommand$outboundSchema` instead. */ export const outboundSchema = MouseDragCommand$outboundSchema; /** @deprecated use `MouseDragCommand$Outbound` instead. */ export type Outbound = MouseDragCommand$Outbound; }