/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: fb7a14c08770 */ import * as z from "zod/v4"; import { safeParse } from "../lib/schemas.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { DomainEndpoint, DomainEndpoint$inboundSchema, } from "./domainendpoint.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; export type DeploymentPortalDomainResponse = { deploymentPortalEndpoint: DomainEndpoint | null; packageEndpoint: DomainEndpoint | null; }; /** @internal */ export const DeploymentPortalDomainResponse$inboundSchema: z.ZodType< DeploymentPortalDomainResponse, unknown > = z.object({ deploymentPortalEndpoint: z.nullable(DomainEndpoint$inboundSchema), packageEndpoint: z.nullable(DomainEndpoint$inboundSchema), }); export function deploymentPortalDomainResponseFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentPortalDomainResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentPortalDomainResponse' from JSON`, ); }