/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod"; import { Command, Command$inboundSchema, Command$Outbound, Command$outboundSchema, } from "./command.js"; export type PresetAction = { /** * global index within a test (in-order traversal) */ index?: number | undefined; id: string; skipped?: boolean | undefined; /** * key in the environment to save the result of this step to */ envKey?: string | undefined; type?: "PRESET_ACTION" | undefined; command: Command; }; /** @internal */ export const PresetAction$inboundSchema: z.ZodType< PresetAction, z.ZodTypeDef, unknown > = z.object({ index: z.number().optional(), id: z.string(), skipped: z.boolean().optional(), envKey: z.string().optional(), type: z.literal("PRESET_ACTION").optional(), command: Command$inboundSchema, }); /** @internal */ export type PresetAction$Outbound = { index?: number | undefined; id: string; skipped?: boolean | undefined; envKey?: string | undefined; type: "PRESET_ACTION"; command: Command$Outbound; }; /** @internal */ export const PresetAction$outboundSchema: z.ZodType< PresetAction$Outbound, z.ZodTypeDef, PresetAction > = z.object({ index: z.number().optional(), id: z.string(), skipped: z.boolean().optional(), envKey: z.string().optional(), type: z.literal("PRESET_ACTION").default("PRESET_ACTION" as const), command: Command$outboundSchema, }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace PresetAction$ { /** @deprecated use `PresetAction$inboundSchema` instead. */ export const inboundSchema = PresetAction$inboundSchema; /** @deprecated use `PresetAction$outboundSchema` instead. */ export const outboundSchema = PresetAction$outboundSchema; /** @deprecated use `PresetAction$Outbound` instead. */ export type Outbound = PresetAction$Outbound; }