/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: fa059660e4b2 */ import * as z from "zod/v4"; export type CreateDomainGlobals = { /** * Workspace name. Platform API keys already select a workspace; other authentication methods can configure it once on the SDK client. */ workspace?: string | undefined; }; export type CreateDomainSetup = { deploymentPortal?: boolean | undefined; packages?: boolean | undefined; /** * Unique identifier for the project. */ deploymentUrlProjectId?: string | null | undefined; managerIds?: Array | undefined; }; export type CreateDomainRequest = { domain: string; setup?: CreateDomainSetup | undefined; }; /** @internal */ export type CreateDomainSetup$Outbound = { deploymentPortal?: boolean | undefined; packages?: boolean | undefined; deploymentUrlProjectId?: string | null | undefined; managerIds?: Array | undefined; }; /** @internal */ export const CreateDomainSetup$outboundSchema: z.ZodType< CreateDomainSetup$Outbound, CreateDomainSetup > = z.object({ deploymentPortal: z.boolean().optional(), packages: z.boolean().optional(), deploymentUrlProjectId: z.nullable(z.string()).optional(), managerIds: z.array(z.string()).optional(), }); export function createDomainSetupToJSON( createDomainSetup: CreateDomainSetup, ): string { return JSON.stringify( CreateDomainSetup$outboundSchema.parse(createDomainSetup), ); } /** @internal */ export type CreateDomainRequest$Outbound = { domain: string; setup?: CreateDomainSetup$Outbound | undefined; }; /** @internal */ export const CreateDomainRequest$outboundSchema: z.ZodType< CreateDomainRequest$Outbound, CreateDomainRequest > = z.object({ domain: z.string(), setup: z.lazy(() => CreateDomainSetup$outboundSchema).optional(), }); export function createDomainRequestToJSON( createDomainRequest: CreateDomainRequest, ): string { return JSON.stringify( CreateDomainRequest$outboundSchema.parse(createDomainRequest), ); }