2023-08-15 02:52:38 +09:00
|
|
|
/*
|
|
|
|
|
* SPDX-FileCopyrightText: syuilo and other misskey contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
*/
|
|
|
|
|
|
2023-08-08 20:13:05 +09:00
|
|
|
export const packedAbuseUserReportSchema = {
|
2022-01-18 22:27:10 +09:00
|
|
|
type: 'object',
|
|
|
|
|
properties: {
|
|
|
|
|
id: {
|
|
|
|
|
type: 'string',
|
|
|
|
|
optional: false, nullable: false,
|
|
|
|
|
format: 'id',
|
|
|
|
|
example: 'xxxxxxxxxx',
|
|
|
|
|
},
|
|
|
|
|
createdAt: {
|
|
|
|
|
type: 'string',
|
|
|
|
|
optional: false, nullable: false,
|
|
|
|
|
format: 'date-time',
|
|
|
|
|
},
|
2023-08-08 20:13:05 +09:00
|
|
|
comment: {
|
2022-01-18 22:27:10 +09:00
|
|
|
type: 'string',
|
|
|
|
|
optional: false, nullable: false,
|
|
|
|
|
},
|
2023-08-08 20:13:05 +09:00
|
|
|
resolved: {
|
|
|
|
|
type: 'boolean',
|
2022-01-18 22:27:10 +09:00
|
|
|
optional: false, nullable: false,
|
|
|
|
|
},
|
2023-08-08 20:13:05 +09:00
|
|
|
reporterId: {
|
2022-01-18 22:27:10 +09:00
|
|
|
type: 'string',
|
2023-08-08 20:13:05 +09:00
|
|
|
optional: false, nullable: false,
|
|
|
|
|
format: 'id',
|
|
|
|
|
},
|
|
|
|
|
reporter: {
|
|
|
|
|
type: 'object',
|
|
|
|
|
ref: 'UserDetailed',
|
|
|
|
|
optional: false, nullable: false,
|
2022-01-18 22:27:10 +09:00
|
|
|
},
|
2023-08-08 20:13:05 +09:00
|
|
|
targetUserId: {
|
2022-01-18 22:27:10 +09:00
|
|
|
type: 'string',
|
|
|
|
|
optional: false, nullable: false,
|
|
|
|
|
format: 'id',
|
|
|
|
|
},
|
2023-08-08 20:13:05 +09:00
|
|
|
targetUser: {
|
2022-01-18 22:27:10 +09:00
|
|
|
type: 'object',
|
2023-08-08 20:13:05 +09:00
|
|
|
ref: 'UserDetailed',
|
2022-01-18 22:27:10 +09:00
|
|
|
optional: false, nullable: false,
|
|
|
|
|
},
|
2023-08-08 20:13:05 +09:00
|
|
|
assigneeId: {
|
|
|
|
|
type: 'string',
|
|
|
|
|
optional: false, nullable: true,
|
|
|
|
|
format: 'id',
|
2022-01-18 22:27:10 +09:00
|
|
|
},
|
2023-08-08 20:13:05 +09:00
|
|
|
assignee: {
|
|
|
|
|
type: 'object',
|
|
|
|
|
ref: 'UserDetailed',
|
|
|
|
|
optional: true, nullable: true,
|
2022-01-18 22:27:10 +09:00
|
|
|
},
|
2023-08-08 20:13:05 +09:00
|
|
|
forwarded: {
|
2022-01-18 22:27:10 +09:00
|
|
|
type: 'boolean',
|
|
|
|
|
optional: false, nullable: false,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
} as const;
|