/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod"; import { AIAssertionCommand, AIAssertionCommand$inboundSchema, AIAssertionCommand$Outbound, AIAssertionCommand$outboundSchema, } from "./aiassertioncommand.js"; export type SuccessCommand = { thoughts?: string | undefined; /** * unique identifier to this step, used for step cache */ id: string; type?: "SUCCESS" | undefined; condition?: AIAssertionCommand | undefined; }; /** @internal */ export const SuccessCommand$inboundSchema: z.ZodType< SuccessCommand, z.ZodTypeDef, unknown > = z.object({ thoughts: z.string().optional(), id: z.string(), type: z.literal("SUCCESS").optional(), condition: AIAssertionCommand$inboundSchema.optional(), }); /** @internal */ export type SuccessCommand$Outbound = { thoughts?: string | undefined; id: string; type: "SUCCESS"; condition?: AIAssertionCommand$Outbound | undefined; }; /** @internal */ export const SuccessCommand$outboundSchema: z.ZodType< SuccessCommand$Outbound, z.ZodTypeDef, SuccessCommand > = z.object({ thoughts: z.string().optional(), id: z.string(), type: z.literal("SUCCESS").default("SUCCESS" as const), condition: AIAssertionCommand$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 SuccessCommand$ { /** @deprecated use `SuccessCommand$inboundSchema` instead. */ export const inboundSchema = SuccessCommand$inboundSchema; /** @deprecated use `SuccessCommand$outboundSchema` instead. */ export const outboundSchema = SuccessCommand$outboundSchema; /** @deprecated use `SuccessCommand$Outbound` instead. */ export type Outbound = SuccessCommand$Outbound; }