import * as plugins from '../loint-reception.plugins.js'; import { type IRole } from './loint-reception.role.js'; export interface IUser { id: string; data: { name: string; username: string; email: string; /** * mobile number used for verification */ mobileNumber?: string; /** * only used during initial password setting */ password?: string; /** * used for validation of passwords */ passwordHash?: string; status: 'new' | 'active' | 'deleted' | 'suspended'; /** * a quick ref for which organizations might have roles for this user * speeds up lookup */ connectedOrgs: string[]; /** * Platform-level admin flag * Users with this flag can access the global admin panel * to manage global apps, view platform stats, etc. */ isGlobalAdmin?: boolean; }; }