From 03fadd907a8011684dfc919a85c88588740f20d1 Mon Sep 17 00:00:00 2001 From: marihachi Date: Sat, 15 May 2021 13:09:06 +0900 Subject: [PATCH] endpoint --- src/endpoints.ts | 78 ++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 76 insertions(+), 2 deletions(-) diff --git a/src/endpoints.ts b/src/endpoints.ts index ca4a9e0..85c8ef2 100644 --- a/src/endpoints.ts +++ b/src/endpoints.ts @@ -5,14 +5,88 @@ type TODO = Record; 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[]; }; };