/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { BridgeConfigurationDto, BridgeConfigurationDto$Outbound, BridgeConfigurationDto$outboundSchema, } from "./bridgeconfigurationdto.js"; import { InBoundParseDomainDto, InBoundParseDomainDto$Outbound, InBoundParseDomainDto$outboundSchema, } from "./inboundparsedomaindto.js"; export type UpdateEnvironmentRequestDto = { name?: string | undefined; identifier?: string | undefined; parentId?: string | undefined; color?: string | undefined; dns?: InBoundParseDomainDto | undefined; bridge?: BridgeConfigurationDto | undefined; }; /** @internal */ export type UpdateEnvironmentRequestDto$Outbound = { name?: string | undefined; identifier?: string | undefined; parentId?: string | undefined; color?: string | undefined; dns?: InBoundParseDomainDto$Outbound | undefined; bridge?: BridgeConfigurationDto$Outbound | undefined; }; /** @internal */ export const UpdateEnvironmentRequestDto$outboundSchema: z.ZodType< UpdateEnvironmentRequestDto$Outbound, z.ZodTypeDef, UpdateEnvironmentRequestDto > = z.object({ name: z.string().optional(), identifier: z.string().optional(), parentId: z.string().optional(), color: z.string().optional(), dns: InBoundParseDomainDto$outboundSchema.optional(), bridge: BridgeConfigurationDto$outboundSchema.optional(), }); export function updateEnvironmentRequestDtoToJSON( updateEnvironmentRequestDto: UpdateEnvironmentRequestDto, ): string { return JSON.stringify( UpdateEnvironmentRequestDto$outboundSchema.parse( updateEnvironmentRequestDto, ), ); }