/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import * as components from "../components/index.js"; export type CreateDeploymentGlobals = { appId?: string | undefined; }; export type CreateDeploymentRequest = { appId?: string | undefined; deploymentConfigV3: components.DeploymentConfigV3; }; /** @internal */ export type CreateDeploymentRequest$Outbound = { appId?: string | undefined; DeploymentConfigV3: components.DeploymentConfigV3$Outbound; }; /** @internal */ export const CreateDeploymentRequest$outboundSchema: z.ZodType< CreateDeploymentRequest$Outbound, z.ZodTypeDef, CreateDeploymentRequest > = z.object({ appId: z.string().optional(), deploymentConfigV3: components.DeploymentConfigV3$outboundSchema, }).transform((v) => { return remap$(v, { deploymentConfigV3: "DeploymentConfigV3", }); }); export function createDeploymentRequestToJSON( createDeploymentRequest: CreateDeploymentRequest, ): string { return JSON.stringify( CreateDeploymentRequest$outboundSchema.parse(createDeploymentRequest), ); }