mizzkey/packages/misskey-js/src/schemas/renote-muting.ts
2023-05-10 16:22:21 +00:00

23 lines
559 B
TypeScript

import type { JSONSchema7Definition } from 'schema-type';
export const packedRenoteMutingSchema = {
$id: 'https://misskey-hub.net/api/schemas/RenoteMuting',
type: 'object',
properties: {
id: { $ref: 'https://misskey-hub.net/api/schemas/Id' },
createdAt: {
type: 'string',
format: 'date-time',
},
muteeId: { $ref: 'https://misskey-hub.net/api/schemas/Id' },
mutee: { $ref: 'https://misskey-hub.net/api/schemas/UserDetailed' },
},
required: [
'id',
'createdAt',
'muteeId',
'mutee',
],
} as const satisfies JSONSchema7Definition;