mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-04 00:18:01 +01:00
29 lines
648 B
TypeScript
29 lines
648 B
TypeScript
export const AccountTypes = ['User', 'Service Account'] as const;
|
|
type AccountType = (typeof AccountTypes)[number];
|
|
|
|
export interface IUser {
|
|
id: number;
|
|
email: string;
|
|
name: string;
|
|
createdAt: string;
|
|
imageUrl: string;
|
|
loginAttempts: number;
|
|
permissions: string[] | null;
|
|
inviteLink: string;
|
|
rootRole: number;
|
|
seenAt: string | null;
|
|
username?: string;
|
|
isAPI: boolean;
|
|
paid?: boolean;
|
|
addedAt?: string;
|
|
accountType?: AccountType;
|
|
scimId?: string;
|
|
activeSessions?: number;
|
|
}
|
|
|
|
export interface IPermission {
|
|
permission: string;
|
|
project?: string;
|
|
environment?: string;
|
|
}
|