/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v4-mini"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type AddressValidationResultsMessage = { /** * See Address Validation Codes */ code?: string | undefined; /** * See Address Validation Source */ source?: string | undefined; text?: string | undefined; type?: string | undefined; }; /** @internal */ export const AddressValidationResultsMessage$inboundSchema: z.ZodMiniType< AddressValidationResultsMessage, unknown > = z.object({ code: z.optional(z.string()), source: z.optional(z.string()), text: z.optional(z.string()), type: z.optional(z.string()), }); export function addressValidationResultsMessageFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => AddressValidationResultsMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AddressValidationResultsMessage' from JSON`, ); }