/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: df71ca846e96 */ import * as z from "zod/v4"; import { ClosedEnum } from "../../types/enums.js"; import { RegisterDeploymentRequestVespaDeployment, RegisterDeploymentRequestVespaDeployment$Outbound, RegisterDeploymentRequestVespaDeployment$outboundSchema, } from "./registerdeploymentrequestvespadeployment.js"; export const RegisterDeploymentRequestDeploymentStatus = { Online: "online", Offline: "offline", } as const; export type RegisterDeploymentRequestDeploymentStatus = ClosedEnum< typeof RegisterDeploymentRequestDeploymentStatus >; export type RegisterDeploymentRequestDeploymentDeployment = RegisterDeploymentRequestVespaDeployment; export type RegisterDeploymentRequestDeployment = { name: string; status?: RegisterDeploymentRequestDeploymentStatus | undefined; deployment: RegisterDeploymentRequestVespaDeployment; }; /** @internal */ export const RegisterDeploymentRequestDeploymentStatus$outboundSchema: z.ZodEnum = z.enum( RegisterDeploymentRequestDeploymentStatus, ); /** @internal */ export type RegisterDeploymentRequestDeploymentDeployment$Outbound = RegisterDeploymentRequestVespaDeployment$Outbound; /** @internal */ export const RegisterDeploymentRequestDeploymentDeployment$outboundSchema: z.ZodType< RegisterDeploymentRequestDeploymentDeployment$Outbound, RegisterDeploymentRequestDeploymentDeployment > = RegisterDeploymentRequestVespaDeployment$outboundSchema; export function registerDeploymentRequestDeploymentDeploymentToJSON( registerDeploymentRequestDeploymentDeployment: RegisterDeploymentRequestDeploymentDeployment, ): string { return JSON.stringify( RegisterDeploymentRequestDeploymentDeployment$outboundSchema.parse( registerDeploymentRequestDeploymentDeployment, ), ); } /** @internal */ export type RegisterDeploymentRequestDeployment$Outbound = { name: string; status: string; deployment: RegisterDeploymentRequestVespaDeployment$Outbound; }; /** @internal */ export const RegisterDeploymentRequestDeployment$outboundSchema: z.ZodType< RegisterDeploymentRequestDeployment$Outbound, RegisterDeploymentRequestDeployment > = z.object({ name: z.string(), status: RegisterDeploymentRequestDeploymentStatus$outboundSchema.default( "offline", ), deployment: RegisterDeploymentRequestVespaDeployment$outboundSchema, }); export function registerDeploymentRequestDeploymentToJSON( registerDeploymentRequestDeployment: RegisterDeploymentRequestDeployment, ): string { return JSON.stringify( RegisterDeploymentRequestDeployment$outboundSchema.parse( registerDeploymentRequestDeployment, ), ); }