@rocket.chat/apps-engine
Version:
The engine code for the Rocket.Chat Apps which manages, runs, translates, coordinates and all of that.
27 lines (26 loc) • 699 B
TypeScript
import type { IUserEmail } from './IUserEmail';
import type { IUserSettings } from './IUserSettings';
import type { UserStatusConnection } from './UserStatusConnection';
import type { UserType } from './UserType';
export interface IUser {
id: string;
username: string;
emails: Array<IUserEmail>;
type: UserType;
isEnabled: boolean;
name: string;
roles: Array<string>;
bio?: string;
status: string;
statusConnection: UserStatusConnection;
statusText?: string;
utcOffset: number;
createdAt: Date;
updatedAt: Date;
lastLoginAt: Date;
settings?: IUserSettings;
appId?: string;
customFields?: {
[key: string]: any;
};
}