/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; export type CreateEnvironmentRequestDto = { /** * Name of the environment to be created */ name: string; /** * MongoDB ObjectId of the parent environment (optional) */ parentId?: string | undefined; /** * Hex color code for the environment */ color: string; }; /** @internal */ export type CreateEnvironmentRequestDto$Outbound = { name: string; parentId?: string | undefined; color: string; }; /** @internal */ export const CreateEnvironmentRequestDto$outboundSchema: z.ZodType< CreateEnvironmentRequestDto$Outbound, z.ZodTypeDef, CreateEnvironmentRequestDto > = z.object({ name: z.string(), parentId: z.string().optional(), color: z.string(), }); export function createEnvironmentRequestDtoToJSON( createEnvironmentRequestDto: CreateEnvironmentRequestDto, ): string { return JSON.stringify( CreateEnvironmentRequestDto$outboundSchema.parse( createEnvironmentRequestDto, ), ); }