/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 701bbe7698ee */ import * as z from "zod/v4"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type UserIdentityOrganization = { id: string; name: string; }; /** @internal */ export const UserIdentityOrganization$inboundSchema: z.ZodType< UserIdentityOrganization, unknown > = z.object({ id: z.string(), name: z.string(), }); export function userIdentityOrganizationFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => UserIdentityOrganization$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UserIdentityOrganization' from JSON`, ); }