/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: d9b1d481ad71 */ import * as z from "zod/v4"; import { ClosedEnum } from "../types/enums.js"; import { StackInputValueRequest, StackInputValueRequest$Outbound, StackInputValueRequest$outboundSchema, } from "./stackinputvaluerequest.js"; /** * Represents the target cloud platform. */ export const SetFirstPartyDeploymentInputsRequestPlatform = { Aws: "aws", Gcp: "gcp", Azure: "azure", Kubernetes: "kubernetes", Machines: "machines", Local: "local", Test: "test", } as const; /** * Represents the target cloud platform. */ export type SetFirstPartyDeploymentInputsRequestPlatform = ClosedEnum< typeof SetFirstPartyDeploymentInputsRequestPlatform >; export type SetFirstPartyDeploymentInputsRequest = { /** * Represents the target cloud platform. */ platform: SetFirstPartyDeploymentInputsRequestPlatform; inputValues?: { [k: string]: StackInputValueRequest } | undefined; releaseChannel?: string | undefined; }; /** @internal */ export const SetFirstPartyDeploymentInputsRequestPlatform$outboundSchema: z.ZodEnum = z.enum( SetFirstPartyDeploymentInputsRequestPlatform, ); /** @internal */ export type SetFirstPartyDeploymentInputsRequest$Outbound = { platform: string; inputValues?: { [k: string]: StackInputValueRequest$Outbound } | undefined; releaseChannel?: string | undefined; }; /** @internal */ export const SetFirstPartyDeploymentInputsRequest$outboundSchema: z.ZodType< SetFirstPartyDeploymentInputsRequest$Outbound, SetFirstPartyDeploymentInputsRequest > = z.object({ platform: SetFirstPartyDeploymentInputsRequestPlatform$outboundSchema, inputValues: z.record(z.string(), StackInputValueRequest$outboundSchema) .optional(), releaseChannel: z.string().min(1).max(63).regex(/^[a-z][a-z0-9-]*$/).optional(), }); export function setFirstPartyDeploymentInputsRequestToJSON( setFirstPartyDeploymentInputsRequest: SetFirstPartyDeploymentInputsRequest, ): string { return JSON.stringify( SetFirstPartyDeploymentInputsRequest$outboundSchema.parse( setFirstPartyDeploymentInputsRequest, ), ); }