wip
This commit is contained in:
parent
dbeb1856ac
commit
68a2aa3efd
6 changed files with 66 additions and 61 deletions
30
packages/misskey-js/src/schemas/moderation-log.ts
Normal file
30
packages/misskey-js/src/schemas/moderation-log.ts
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
import type { JSONSchema7Definition } from 'schema-type';
|
||||
|
||||
export const packedModerationLogSchema = {
|
||||
$id: 'https://misskey-hub.net/api/schemas/ModerationLog',
|
||||
|
||||
type: 'object',
|
||||
properties: {
|
||||
id: { $ref: 'https://misskey-hub.net/api/schemas/Id' },
|
||||
createdAt: {
|
||||
type: 'string',
|
||||
format: 'date-time',
|
||||
},
|
||||
type: {
|
||||
type: 'string',
|
||||
},
|
||||
info: {
|
||||
type: 'object',
|
||||
},
|
||||
userId: { $ref: 'https://misskey-hub.net/api/schemas/Id' },
|
||||
user: { $ref: 'https://misskey-hub.net/api/schemas/UserDetailed' },
|
||||
},
|
||||
required: [
|
||||
'id',
|
||||
'createdAt',
|
||||
'type',
|
||||
'info',
|
||||
'userId',
|
||||
'user',
|
||||
],
|
||||
} as const satisfies JSONSchema7Definition;
|
||||
Loading…
Add table
Add a link
Reference in a new issue