/** * Built-in roles */ export declare enum AuthorizationRoles { /** * CollabLand administrator (whitelisted users) */ ADMIN = "$admin", /** * CollabLand customer support */ CUSTOMER_SUPPORT = "$customer_support", /** * CollabLand client application/service account */ SERVICE_ACCOUNT = "$service_account", /** * CollabLand users */ USER_ACCOUNT = "$user_account", /** * Owner of the target entity */ OWNER = "$owner", /** * Community administrator */ COMMUNITY_ADMIN = "$community_admin", /** * Anonymous user */ ANONYMOUS = "$anonymous", /** * Authenticated user */ AUTHENTICATED = "$authenticated" } /** * Check if a given role is a user role * @param role - Role name * @returns */ export declare function isUserRole(role: string): boolean; export declare enum InternalScopes { PUBLIC = "$public", INTERNAL = "$internal", ALL = "$all" } export declare const OAUTH2_DEFAULT_SCOPE = ""; /** * Mapping from scope id to human-readable description */ export declare const SCOPE_DESCRIPTIONS: Record; /** * Mapping from scope alias to scope id */ export declare const SCOPE_ALIASES: Record; export declare function normalizeScopes(scopes: string[]): string[];