1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-28 00:06:53 +01:00
unleash.unleash/frontend/src/interfaces/user.ts

27 lines
596 B
TypeScript
Raw Normal View History

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;
}
export interface IPermission {
permission: string;
project?: string;
environment?: string;
}