/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod"; import { PresetAction, PresetAction$inboundSchema, PresetAction$Outbound, PresetAction$outboundSchema, } from "./presetaction.js"; export type AIAction = { /** * 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?: "AI_ACTION" | undefined; text: string; steps?: Array | undefined; }; /** @internal */ export const AIAction$inboundSchema: z.ZodType< AIAction, z.ZodTypeDef, unknown > = z.object({ index: z.number().optional(), id: z.string(), skipped: z.boolean().optional(), envKey: z.string().optional(), type: z.literal("AI_ACTION").optional(), text: z.string(), steps: z.array(PresetAction$inboundSchema).optional(), }); /** @internal */ export type AIAction$Outbound = { index?: number | undefined; id: string; skipped?: boolean | undefined; envKey?: string | undefined; type: "AI_ACTION"; text: string; steps?: Array | undefined; }; /** @internal */ export const AIAction$outboundSchema: z.ZodType< AIAction$Outbound, z.ZodTypeDef, AIAction > = z.object({ index: z.number().optional(), id: z.string(), skipped: z.boolean().optional(), envKey: z.string().optional(), type: z.literal("AI_ACTION").default("AI_ACTION" as const), text: z.string(), steps: z.array(PresetAction$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 AIAction$ { /** @deprecated use `AIAction$inboundSchema` instead. */ export const inboundSchema = AIAction$inboundSchema; /** @deprecated use `AIAction$outboundSchema` instead. */ export const outboundSchema = AIAction$outboundSchema; /** @deprecated use `AIAction$Outbound` instead. */ export type Outbound = AIAction$Outbound; }