/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { ResourceToPublishDto, ResourceToPublishDto$Outbound, ResourceToPublishDto$outboundSchema, } from "./resourcetopublishdto.js"; export type PublishEnvironmentRequestDto = { /** * Source environment ID to sync from. Defaults to the Development environment if not provided. */ sourceEnvironmentId?: string | undefined; /** * Perform a dry run without making actual changes */ dryRun?: boolean | undefined; /** * Array of specific resources to publish. If not provided, all resources will be published. */ resources?: Array | undefined; }; /** @internal */ export type PublishEnvironmentRequestDto$Outbound = { sourceEnvironmentId?: string | undefined; dryRun: boolean; resources?: Array | undefined; }; /** @internal */ export const PublishEnvironmentRequestDto$outboundSchema: z.ZodType< PublishEnvironmentRequestDto$Outbound, z.ZodTypeDef, PublishEnvironmentRequestDto > = z.object({ sourceEnvironmentId: z.string().optional(), dryRun: z.boolean().default(false), resources: z.array(ResourceToPublishDto$outboundSchema).optional(), }); export function publishEnvironmentRequestDtoToJSON( publishEnvironmentRequestDto: PublishEnvironmentRequestDto, ): string { return JSON.stringify( PublishEnvironmentRequestDto$outboundSchema.parse( publishEnvironmentRequestDto, ), ); }