/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { EipIdentity, EipIdentity$inboundSchema } from "./eipidentity.js"; import { EipInterface, EipInterface$inboundSchema } from "./eipinterface.js"; import { EipService, EipService$inboundSchema } from "./eipservice.js"; export type Eip = { identity?: EipIdentity | undefined; interfaces?: Array | null | undefined; services?: Array | null | undefined; }; /** @internal */ export const Eip$inboundSchema: z.ZodType = z .object({ identity: EipIdentity$inboundSchema.optional(), interfaces: z.nullable(z.array(EipInterface$inboundSchema)).optional(), services: z.nullable(z.array(EipService$inboundSchema)).optional(), }); export function eipFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => Eip$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Eip' from JSON`, ); }