/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type V3DomainUnlinkRequest = { pcidFrom?: string | undefined; pcidTo?: string | undefined; }; /** @internal */ export const V3DomainUnlinkRequest$inboundSchema: z.ZodType< V3DomainUnlinkRequest, z.ZodTypeDef, unknown > = z.object({ pcidFrom: z.string().optional(), pcidTo: z.string().optional(), }); /** @internal */ export type V3DomainUnlinkRequest$Outbound = { pcidFrom?: string | undefined; pcidTo?: string | undefined; }; /** @internal */ export const V3DomainUnlinkRequest$outboundSchema: z.ZodType< V3DomainUnlinkRequest$Outbound, z.ZodTypeDef, V3DomainUnlinkRequest > = z.object({ pcidFrom: z.string().optional(), pcidTo: z.string().optional(), }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace V3DomainUnlinkRequest$ { /** @deprecated use `V3DomainUnlinkRequest$inboundSchema` instead. */ export const inboundSchema = V3DomainUnlinkRequest$inboundSchema; /** @deprecated use `V3DomainUnlinkRequest$outboundSchema` instead. */ export const outboundSchema = V3DomainUnlinkRequest$outboundSchema; /** @deprecated use `V3DomainUnlinkRequest$Outbound` instead. */ export type Outbound = V3DomainUnlinkRequest$Outbound; } export function v3DomainUnlinkRequestToJSON( v3DomainUnlinkRequest: V3DomainUnlinkRequest, ): string { return JSON.stringify( V3DomainUnlinkRequest$outboundSchema.parse(v3DomainUnlinkRequest), ); } export function v3DomainUnlinkRequestFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => V3DomainUnlinkRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'V3DomainUnlinkRequest' from JSON`, ); }