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

27 lines
535 B
TypeScript

import type { JSONSchema7Definition } from 'schema-type';
export const packedUserListSchema = {
$id: 'https://misskey-hub.net/api/schemas/UserList',
type: 'object',
properties: {
id: { $ref: 'https://misskey-hub.net/api/schemas/Id' },
createdAt: {
type: 'string',
format: 'date-time',
},
name: {
type: 'string',
},
userIds: {
type: 'array',
items: { $ref: 'https://misskey-hub.net/api/schemas/Id' },
},
},
required: [
'id',
'createdAt',
'name',
],
} as const satisfies JSONSchema7Definition;