summaryrefslogtreecommitdiff
path: root/src/server/api/endpoints/admin/abuse-user-reports.ts
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2021-03-06 22:34:51 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2021-03-06 22:34:51 +0900
commitdeda2b2782e37c925c67f730e4dd8770d4ef3034 (patch)
treeb6cfb688d446f85078cfaa819f463ac10488aec1 /src/server/api/endpoints/admin/abuse-user-reports.ts
parentfix bug (diff)
parentAPIドキュメントの改善 (#6757) (diff)
downloadsharkey-deda2b2782e37c925c67f730e4dd8770d4ef3034.tar.gz
sharkey-deda2b2782e37c925c67f730e4dd8770d4ef3034.tar.bz2
sharkey-deda2b2782e37c925c67f730e4dd8770d4ef3034.zip
Merge branch 'develop' of https://github.com/syuilo/misskey into develop
Diffstat (limited to 'src/server/api/endpoints/admin/abuse-user-reports.ts')
-rw-r--r--src/server/api/endpoints/admin/abuse-user-reports.ts73
1 files changed, 73 insertions, 0 deletions
diff --git a/src/server/api/endpoints/admin/abuse-user-reports.ts b/src/server/api/endpoints/admin/abuse-user-reports.ts
index 6a7f380e16..d63997d203 100644
--- a/src/server/api/endpoints/admin/abuse-user-reports.ts
+++ b/src/server/api/endpoints/admin/abuse-user-reports.ts
@@ -5,6 +5,11 @@ import { AbuseUserReports } from '../../../../models';
import { makePaginationQuery } from '../../common/make-pagination-query';
export const meta = {
+ desc: {
+ 'ja-JP': '通報一覧を表示します。',
+ 'en-US': 'Show list of abuse user reports.'
+ },
+
tags: ['admin'],
requireCredential: true as const,
@@ -46,6 +51,74 @@ export const meta = {
]),
default: 'combined'
},
+ },
+
+ res: {
+ type: 'array' as const,
+ optional: false as const, nullable: false as const,
+ items: {
+ type: 'object' as const,
+ optional: false as const, nullable: false as const,
+ properties: {
+ id: {
+ type: 'string' as const,
+ nullable: false as const, optional: false as const,
+ format: 'id',
+ description: 'The unique identifier for this User.',
+ example: 'xxxxxxxxxx',
+ },
+ createdAt: {
+ type: 'string' as const,
+ nullable: false as const, optional: false as const,
+ format: 'date-time',
+ description: 'The date that the abuse user report was created on Misskey.'
+ },
+ comment: {
+ type: 'string' as const,
+ nullable: false as const, optional: false as const,
+ description: 'The content of the report.',
+ },
+ resolved: {
+ type: 'boolean' as const,
+ nullable: false as const, optional: false as const,
+ description: 'Returns whether this report has been resolved',
+ example: false
+ },
+ reporterId: {
+ type: 'string' as const,
+ nullable: false as const, optional: false as const,
+ format: 'id',
+ description: 'Reporter\'s user ID.'
+ },
+ targetUserId: {
+ type: 'string' as const,
+ nullable: false as const, optional: false as const,
+ format: 'id',
+ description: 'User ID of the person to be reported.'
+ },
+ assigneeId: {
+ type: 'string' as const,
+ nullable: true as const, optional: false as const,
+ format: 'id',
+ description: 'User ID of the person who responded to the report.'
+ },
+ reporter: {
+ type: 'object' as const,
+ nullable: false as const, optional: false as const,
+ ref: 'User'
+ },
+ targetUser: {
+ type: 'object' as const,
+ nullable: false as const, optional: false as const,
+ ref: 'User'
+ },
+ assignee: {
+ type: 'object' as const,
+ nullable: true as const, optional: true as const,
+ ref: 'User'
+ }
+ }
+ }
}
};