mizzkey/packages/misskey-js/src/schemas/blocking.ts

23 lines
561 B
TypeScript
Raw Normal View History

2023-05-10 16:32:46 +02:00
import type { JSONSchema7Definition } from 'schema-type';
2023-05-02 14:05:17 +02:00
export const packedBlockingSchema = {
2023-05-10 16:32:46 +02:00
$id: 'https://misskey-hub.net/api/schemas/Blocking',
2023-05-02 14:05:17 +02:00
type: 'object',
properties: {
2023-05-10 16:32:46 +02:00
id: { $ref: 'https://misskey-hub.net/api/schemas/Id' },
2023-05-02 14:05:17 +02:00
createdAt: {
type: 'string',
format: 'date-time',
},
2023-05-10 16:32:46 +02:00
blockeeId: { $ref: 'https://misskey-hub.net/api/schemas/Id' },
blockee: { $ref: 'https://misskey-hub.net/api/schemas/UserDetailed' },
2023-05-02 14:05:17 +02:00
},
2023-05-10 16:32:46 +02:00
required: [
'id',
'createdAt',
'blockeeId',
2023-05-22 07:20:19 +02:00
//'blockee',
2023-05-10 16:32:46 +02:00
],
} as const satisfies JSONSchema7Definition;