/* * 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 CreateDeploymentV2DeprecatedGlobals = { appId?: string | undefined; }; export type CreateDeploymentV2DeprecatedRequest = { appId?: string | undefined; buildId: number; deploymentConfigV2: components.DeploymentConfigV2; }; /** @internal */ export type CreateDeploymentV2DeprecatedRequest$Outbound = { appId?: string | undefined; buildId: number; DeploymentConfigV2: components.DeploymentConfigV2$Outbound; }; /** @internal */ export const CreateDeploymentV2DeprecatedRequest$outboundSchema: z.ZodType< CreateDeploymentV2DeprecatedRequest$Outbound, z.ZodTypeDef, CreateDeploymentV2DeprecatedRequest > = z.object({ appId: z.string().optional(), buildId: z.number().int(), deploymentConfigV2: components.DeploymentConfigV2$outboundSchema, }).transform((v) => { return remap$(v, { deploymentConfigV2: "DeploymentConfigV2", }); }); export function createDeploymentV2DeprecatedRequestToJSON( createDeploymentV2DeprecatedRequest: CreateDeploymentV2DeprecatedRequest, ): string { return JSON.stringify( CreateDeploymentV2DeprecatedRequest$outboundSchema.parse( createDeploymentV2DeprecatedRequest, ), ); }