* reset-password
* server-info
This commit is contained in:
marihachi 2021-05-15 13:22:49 +09:00
parent 733d94f3bc
commit e0ddddc170
2 changed files with 18 additions and 1 deletions

View file

@ -1,4 +1,4 @@
import { ID, Instance, Note, OriginType, Stats, User, UserSorting } from './types';
import { ID, Instance, Note, OriginType, ServerInfo, Stats, User, UserSorting } from './types';
type TODO = Record<string, any>;
@ -75,6 +75,7 @@ export type Endpoints = {
// request-reset-password
// reset-password
'reset-password': { req: { token: string; password: string; }; res: null; };
// room
@ -82,6 +83,7 @@ export type Endpoints = {
'stats': { req: null; res: Stats; };
// server-info
'server-info': { req: null; res: ServerInfo; };
// sw

View file

@ -72,6 +72,21 @@ export type Instance = {
}[];
};
export type ServerInfo = {
machine: string;
cpu: {
model: string;
cores: number;
};
mem: {
total: number;
};
fs: {
total: number;
used: number;
};
};
export type Stats = {
notesCount: number;
originalNotesCount: number;