mirror of
https://github.com/stoatchat/javascript-client-api.git
synced 2026-07-19 17:13:35 -04:00
53 lines
611 B
TypeScript
53 lines
611 B
TypeScript
import type { Id } from "./_common";
|
|
|
|
export interface Account {
|
|
/**
|
|
* User ID
|
|
*/
|
|
_id: Id;
|
|
|
|
/**
|
|
* User Email
|
|
*/
|
|
email: string;
|
|
}
|
|
|
|
export interface Session {
|
|
/**
|
|
* Session ID
|
|
*/
|
|
_id?: Id;
|
|
|
|
/**
|
|
* User ID
|
|
*/
|
|
user_id: Id;
|
|
|
|
/**
|
|
* @maxLength 64
|
|
*/
|
|
token: string;
|
|
|
|
/**
|
|
* Device name
|
|
*/
|
|
name: string;
|
|
|
|
/**
|
|
* Web Push subscription
|
|
*/
|
|
subscription?: string;
|
|
}
|
|
|
|
export interface SessionInfo {
|
|
/**
|
|
* Session ID
|
|
*/
|
|
_id: Id;
|
|
|
|
/**
|
|
* Device name
|
|
*/
|
|
name: string;
|
|
}
|