import { AutoEncoder } from '@simonbackx/simple-encoding'; import { UserPermissions } from './UserPermissions.js'; export declare enum LoginProviderType { SSO = "SSO", Google = "Google" } /** * Defines the applicable rate limits of the user (only used for API's). * Can only get changed by a platform admin */ export declare enum ApiUserRateLimits { Normal = "Normal", Medium = "Medium", High = "High" } export declare class UserMeta extends AutoEncoder { /** * When signed in with SSO, this is the id of that user in the SSO system */ loginProviderIds: Map; rateLimits: ApiUserRateLimits | null; } export declare class User extends AutoEncoder { id: string; organizationId: string | null; memberId: string | null; firstName: string | null; lastName: string | null; email: string; permissions: UserPermissions | null; /** * Readonly */ meta: UserMeta | null; verified: boolean; /** * Readonly */ hasAccount: boolean; /** * Readonly */ hasPassword: boolean; get name(): string; } export declare class NewUser extends User { /** * Will be empty in responses for now */ password: string; } export declare class ApiUser extends AutoEncoder { id: string; organizationId: string | null; name: string | null; permissions: UserPermissions | null; /** * Readonly */ meta: UserMeta | null; createdAt: Date; expiresAt: Date | null; } export declare class ApiUserWithToken extends ApiUser { token: string; } //# sourceMappingURL=User.d.ts.map