Add endpoints #7

Merged
marihachi merged 7 commits from work/add-endpoints-1 into master 2021-05-15 05:25:18 +00:00
Showing only changes of commit 03fadd907a - Show all commits

View file

@ -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[]; };
};