update endpoints

* admin/federation/delete-all-files
* clips/delete
This commit is contained in:
marihachi 2021-05-20 22:17:36 +09:00
parent e0feb74a59
commit 51a91b4485
2 changed files with 5 additions and 3 deletions

View file

@ -1,4 +1,4 @@
import { Ad, Announcement, Antenna, App, AuthSession, ID, InstanceMetadata, Note, OriginType, Page, ServerInfo, Stats, User, UserSorting } from './entities';
import { Ad, Announcement, Antenna, App, AuthSession, Clip, ID, InstanceMetadata, Note, OriginType, Page, ServerInfo, Stats, User, UserSorting } from './entities';
type TODO = Record<string, any>;
@ -46,7 +46,7 @@ export type Endpoints = {
'admin/emoji/list': { req: TODO; res: TODO; };
'admin/emoji/remove': { req: TODO; res: TODO; };
'admin/emoji/update': { req: TODO; res: TODO; };
'admin/federation/delete-all-files': { req: TODO; res: null; };
'admin/federation/delete-all-files': { req: { host: string; }; res: null; };
'admin/federation/refresh-remote-instance-metadata': { req: TODO; res: TODO; };
'admin/federation/remove-all-following': { req: TODO; res: TODO; };
'admin/federation/update-instance': { req: TODO; res: TODO; };
@ -121,7 +121,7 @@ export type Endpoints = {
// clips
'clips/add-note': { req: TODO; res: TODO; };
'clips/create': { req: TODO; res: TODO; };
'clips/delete': { req: TODO; res: null; };
'clips/delete': { req: { clipId: Clip['id']; }; res: null; };
'clips/list': { req: TODO; res: TODO; };
'clips/notes': { req: TODO; res: TODO; };
'clips/show': { req: TODO; res: TODO; };

View file

@ -246,5 +246,7 @@ export type AuthSession = {
export type Ad = TODO;
export type Clip = TODO;
export type UserSorting = '+follower' | '-follower' | '+createdAt' | '-createdAt' | '+updatedAt' | '-updatedAt';
export type OriginType = 'combined' | 'local' | 'remote';