thelounge/src/types/client.d.ts
2022-05-21 11:49:27 -07:00

39 lines
570 B
TypeScript

type ClientConfig = {
log: boolean;
password: string;
sessions: {
[token: string]: {
lastUse: number;
ip: string;
agent: string;
pushSubscription?: ClientPushSubscription;
};
};
clientSettings: {
[key: string]: any;
};
browser?: {
language?: string;
ip?: string;
hostname?: string;
isSecure?: boolean;
};
};
type ClientPushSubscription = {
endpoint: string;
keys: {
p256dh: string;
auth: string;
};
};
type Mention = {
chanId: number;
msgId: number;
type: MessageType;
time: number;
text: string;
from: UserInMessage;
};