import * as z from "zod/v4"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; import { UserRole } from "./userrole.js"; /** * Authenticated user subject with workspace-scoped permissions */ export type UserSubject = { /** * Subject type identifier */ kind: "user"; /** * Unique user identifier */ id: string; /** * User's email address */ email: string; /** * ID of the workspace the user is authenticated within */ workspaceId: string; /** * Name of the workspace the user is authenticated within */ workspaceName?: string | undefined; /** * User's role within the workspace */ role: UserRole; }; /** @internal */ export declare const UserSubject$inboundSchema: z.ZodType; export declare function userSubjectFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=usersubject.d.ts.map