/* * 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 Auditor = { id: string; /** * The unique identifier for the organization. */ organizationId: string; /** * The email address of the auditor. */ email: string; /** * The given name (first name) of the auditor. */ givenName: string; /** * The family name (last name) of the auditor. */ familyName: string; }; /** @internal */ export const Auditor$inboundSchema: z.ZodType = z.object({ id: z.string(), organizationId: z.string(), email: z.string(), givenName: z.string(), familyName: z.string(), }); export function auditorFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => Auditor$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Auditor' from JSON`, ); }