mizzkey/packages/misskey-js/src/schemas/user-list.ts

27 lines
535 B
TypeScript
Raw Normal View History

2023-05-10 18:22:21 +02:00
import type { JSONSchema7Definition } from 'schema-type';
2023-05-02 14:05:17 +02:00
export const packedUserListSchema = {
2023-05-10 18:22:21 +02:00
$id: 'https://misskey-hub.net/api/schemas/UserList',
2023-05-02 14:05:17 +02:00
type: 'object',
properties: {
2023-05-10 18:22:21 +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',
},
name: {
type: 'string',
},
userIds: {
type: 'array',
2023-05-10 18:22:21 +02:00
items: { $ref: 'https://misskey-hub.net/api/schemas/Id' },
2023-05-02 14:05:17 +02:00
},
},
2023-05-10 18:22:21 +02:00
required: [
'id',
'createdAt',
'name',
],
} as const satisfies JSONSchema7Definition;