/* * 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"; export type OtherName = { /** * The OID identifying the syntax of the otherName value. */ id?: string | undefined; /** * The raw otherName value. */ value?: string | undefined; }; /** @internal */ export const OtherName$inboundSchema: z.ZodType< OtherName, z.ZodTypeDef, unknown > = z.object({ id: z.string().optional(), value: z.string().optional(), }); export function otherNameFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => OtherName$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OtherName' from JSON`, ); }