/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 84ac9c336ea1 */ import * as z from "zod/v4"; import { ForwardImportRequest, ForwardImportRequest$Outbound, ForwardImportRequest$outboundSchema, } from "./forwardimportrequest.js"; import { PersistImportedDeploymentRequest, PersistImportedDeploymentRequest$Outbound, PersistImportedDeploymentRequest$outboundSchema, } from "./persistimporteddeploymentrequest.js"; /** * Request schema for importing a deployment from resolved setup infrastructure */ export type ImportDeploymentRequest = | PersistImportedDeploymentRequest | ForwardImportRequest; /** @internal */ export type ImportDeploymentRequest$Outbound = | PersistImportedDeploymentRequest$Outbound | ForwardImportRequest$Outbound; /** @internal */ export const ImportDeploymentRequest$outboundSchema: z.ZodType< ImportDeploymentRequest$Outbound, ImportDeploymentRequest > = z.union([ PersistImportedDeploymentRequest$outboundSchema, ForwardImportRequest$outboundSchema, ]); export function importDeploymentRequestToJSON( importDeploymentRequest: ImportDeploymentRequest, ): string { return JSON.stringify( ImportDeploymentRequest$outboundSchema.parse(importDeploymentRequest), ); }