update endpoints
* admin/federation/delete-all-files * clips/delete
This commit is contained in:
parent
e0feb74a59
commit
51a91b4485
2 changed files with 5 additions and 3 deletions
|
@ -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; };
|
||||
|
|
|
@ -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';
|
||||
|
|
Reference in a new issue