Files
app/ts_interfaces/data/loint-reception.role.ts
T

19 lines
549 B
TypeScript
Raw Normal View History

2024-09-29 13:56:38 +02:00
import * as plugins from '../loint-reception.plugins.js';
/** Standard role types available in all organizations */
export type TStandardRole = 'owner' | 'admin' | 'editor' | 'guest' | 'viewer' | 'outlaw';
2024-09-29 13:56:38 +02:00
/**
* A role describes a user's permissions within an organization.
* Users can have multiple roles (e.g., ['owner', 'billing-admin']).
2024-09-29 13:56:38 +02:00
*/
export interface IRole {
id: string;
data: {
userId: string;
organizationId: string;
/** Array of roles - supports standard roles and custom role names */
roles: string[];
2024-09-29 13:56:38 +02:00
};
}