RocketChat/Rocket.Chat

View on GitHub
packages/core-typings/src/IServerEvent.ts

Summary

Maintainability
A
0 mins
Test Coverage
import type { IUser } from './IUser';

export enum ServerEventType {
    FAILED_LOGIN_ATTEMPT = 'failed-login-attempt',
    LOGIN = 'login',
}

export interface IServerEvent {
    _id: string;
    t: ServerEventType;
    ts: Date;
    ip: string;
    u?: Partial<Pick<IUser, '_id' | 'username'>>;
}