Add endpoints #7
1 changed files with 76 additions and 2 deletions
|
@ -5,14 +5,88 @@ type TODO = Record<string, any>;
|
|||
type ShowUserReq = { username: string; host?: string; } | { userId: ID; };
|
||||
|
||||
export type Endpoints = {
|
||||
// admin
|
||||
|
||||
// announcements
|
||||
|
||||
// antennas
|
||||
'antennas/create': { req: TODO; res: TODO; };
|
||||
|
||||
// ap
|
||||
|
||||
// app
|
||||
|
||||
// auth
|
||||
|
||||
// blocking
|
||||
|
||||
// channnels
|
||||
|
||||
// charts
|
||||
|
||||
// clips
|
||||
|
||||
// drive
|
||||
|
||||
// federation
|
||||
|
||||
// following
|
||||
|
||||
// gallery
|
||||
|
||||
// games
|
||||
|
||||
// get-online-users-count
|
||||
|
||||
// hashtags
|
||||
|
||||
// i
|
||||
'i': { req: TODO; res: User; };
|
||||
|
||||
// messaging
|
||||
|
||||
// meta
|
||||
'meta': { req: { detail?: boolean; }; res: Instance; };
|
||||
|
||||
'users': { req: { limit?: number; offset?: number; sort?: UserSorting; origin?: OriginType; }; res: User[]; };
|
||||
'users/show': { req: ShowUserReq; res: User; } | { req: { userIds: ID[]; }; res: User[]; };
|
||||
// miauth
|
||||
|
||||
// mute
|
||||
|
||||
// my
|
||||
|
||||
// notes
|
||||
'notes': { req: { limit?: number; sinceId?: ID; untilId?: ID; }; res: Note[]; };
|
||||
'notes/create': { req: TODO; res: { createdNote: Note }; };
|
||||
'notes/delete': { req: { noteId: ID; }; res: null; };
|
||||
'notes/show': { req: { noteId: ID; }; res: Note; };
|
||||
|
||||
// notifications
|
||||
|
||||
// page-push
|
||||
|
||||
// pages
|
||||
|
||||
// ping
|
||||
|
||||
// pinned-users
|
||||
|
||||
// promo
|
||||
|
||||
// request-reset-password
|
||||
|
||||
// reset-password
|
||||
|
||||
// room
|
||||
|
||||
// stats
|
||||
|
||||
// server-info
|
||||
|
||||
// sw
|
||||
|
||||
// username
|
||||
|
||||
// users
|
||||
'users': { req: { limit?: number; offset?: number; sort?: UserSorting; origin?: OriginType; }; res: User[]; };
|
||||
'users/show': { req: ShowUserReq; res: User; } | { req: { userIds: ID[]; }; res: User[]; };
|
||||
};
|
||||
|
|
Reference in a new issue