diff options
Diffstat (limited to 'src/server/api/endpoints.ts')
| -rw-r--r-- | src/server/api/endpoints.ts | 44 |
1 files changed, 31 insertions, 13 deletions
diff --git a/src/server/api/endpoints.ts b/src/server/api/endpoints.ts index 892da3540f..94e649d29b 100644 --- a/src/server/api/endpoints.ts +++ b/src/server/api/endpoints.ts @@ -190,6 +190,11 @@ const endpoints: Endpoint[] = [ secure: true }, { + name: 'i/update_widget', + withCredential: true, + secure: true + }, + { name: 'i/change_password', withCredential: true, secure: true @@ -280,11 +285,6 @@ const endpoints: Endpoint[] = [ }, { - name: 'notifications/get_unread_count', - withCredential: true, - kind: 'notification-read' - }, - { name: 'notifications/delete', withCredential: true, kind: 'notification-write' @@ -454,6 +454,26 @@ const endpoints: Endpoint[] = [ kind: 'following-write' }, { + name: 'following/requests/accept', + withCredential: true, + kind: 'following-write' + }, + { + name: 'following/requests/reject', + withCredential: true, + kind: 'following-write' + }, + { + name: 'following/requests/cancel', + withCredential: true, + kind: 'following-write' + }, + { + name: 'following/requests/list', + withCredential: true, + kind: 'following-read' + }, + { name: 'following/stalk', withCredential: true, limit: { @@ -495,6 +515,11 @@ const endpoints: Endpoint[] = [ kind: 'note-write' }, { + name: 'notes/delete', + withCredential: true, + kind: 'note-write' + }, + { name: 'notes/renotes' }, { @@ -510,7 +535,6 @@ const endpoints: Endpoint[] = [ }, { name: 'notes/local-timeline', - withCredential: true, limit: { duration: ms('10minutes'), max: 100 @@ -518,7 +542,6 @@ const endpoints: Endpoint[] = [ }, { name: 'notes/global-timeline', - withCredential: true, limit: { duration: ms('10minutes'), max: 100 @@ -557,7 +580,7 @@ const endpoints: Endpoint[] = [ withCredential: true, limit: { duration: ms('1hour'), - max: 100 + max: 300 }, kind: 'reaction-write' }, @@ -608,11 +631,6 @@ const endpoints: Endpoint[] = [ kind: 'messaging-read' }, { - name: 'messaging/unread', - withCredential: true, - kind: 'messaging-read' - }, - { name: 'messaging/messages', withCredential: true, kind: 'messaging-read' |