/* * 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 UserInfoOrganization = { sub: string; name?: string | null | undefined; }; /** @internal */ export const UserInfoOrganization$inboundSchema: z.ZodMiniType< UserInfoOrganization, unknown > = z.object({ sub: z.string(), name: z.optional(z.nullable(z.string())), }); export function userInfoOrganizationFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => UserInfoOrganization$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UserInfoOrganization' from JSON`, ); }