/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod"; export type JavaScriptCommand = { thoughts?: string | undefined; /** * unique identifier to this step, used for step cache */ id: string; code: string; fragment?: boolean | undefined; /** * default NODE */ environment?: "NODE" | undefined; /** * Max seconds for the code to complete */ timeout?: number | undefined; type?: "JAVASCRIPT" | undefined; envKey?: string | undefined; }; /** @internal */ export const JavaScriptCommand$inboundSchema: z.ZodType< JavaScriptCommand, z.ZodTypeDef, unknown > = z.object({ thoughts: z.string().optional(), id: z.string(), code: z.string(), fragment: z.boolean().optional(), environment: z.literal("NODE").optional(), timeout: z.number().int().optional(), type: z.literal("JAVASCRIPT").optional(), envKey: z.string().optional(), }); /** @internal */ export type JavaScriptCommand$Outbound = { thoughts?: string | undefined; id: string; code: string; fragment?: boolean | undefined; environment: "NODE"; timeout?: number | undefined; type: "JAVASCRIPT"; envKey?: string | undefined; }; /** @internal */ export const JavaScriptCommand$outboundSchema: z.ZodType< JavaScriptCommand$Outbound, z.ZodTypeDef, JavaScriptCommand > = z.object({ thoughts: z.string().optional(), id: z.string(), code: z.string(), fragment: z.boolean().optional(), environment: z.literal("NODE").default("NODE" as const), timeout: z.number().int().optional(), type: z.literal("JAVASCRIPT").default("JAVASCRIPT" as const), envKey: z.string().optional(), }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace JavaScriptCommand$ { /** @deprecated use `JavaScriptCommand$inboundSchema` instead. */ export const inboundSchema = JavaScriptCommand$inboundSchema; /** @deprecated use `JavaScriptCommand$outboundSchema` instead. */ export const outboundSchema = JavaScriptCommand$outboundSchema; /** @deprecated use `JavaScriptCommand$Outbound` instead. */ export type Outbound = JavaScriptCommand$Outbound; }