/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 9dddcd858ddf */ 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 UserIdentityWorkspace = { id: string; name: string; }; /** @internal */ export const UserIdentityWorkspace$inboundSchema: z.ZodType< UserIdentityWorkspace, unknown > = z.object({ id: z.string(), name: z.string(), }); export function userIdentityWorkspaceFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => UserIdentityWorkspace$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UserIdentityWorkspace' from JSON`, ); }