/* * 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 * as types from "../types/primitives.js"; import { SDKValidationError } from "./errors/sdk-validation-error.js"; export type IdNameEmail = { id: string; name: string | null; email: string; image: string | null; }; /** @internal */ export const IdNameEmail$inboundSchema: z.ZodMiniType = z .object({ id: types.string(), name: types.nullable(types.string()), email: types.string(), image: types.nullable(types.string()), }); export function idNameEmailFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => IdNameEmail$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'IdNameEmail' from JSON`, ); }