/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 082d506e39bb */ import * as z from "zod/v4"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type DeleteDomainGlobals = { /** * 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 DeleteDomainRequest = { /** * Unique identifier for the domain. */ id: string; }; /** * Domain deletion requested. */ export type DeleteDomainResponse = { success: boolean; }; /** @internal */ export type DeleteDomainRequest$Outbound = { id: string; }; /** @internal */ export const DeleteDomainRequest$outboundSchema: z.ZodType< DeleteDomainRequest$Outbound, DeleteDomainRequest > = z.object({ id: z.string(), }); export function deleteDomainRequestToJSON( deleteDomainRequest: DeleteDomainRequest, ): string { return JSON.stringify( DeleteDomainRequest$outboundSchema.parse(deleteDomainRequest), ); } /** @internal */ export const DeleteDomainResponse$inboundSchema: z.ZodType< DeleteDomainResponse, unknown > = z.object({ success: z.boolean(), }); export function deleteDomainResponseFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeleteDomainResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeleteDomainResponse' from JSON`, ); }