monkeeShark/packages/misskey-js/src/schemas/queue.ts
2023-05-10 16:22:21 +00:00

31 lines
503 B
TypeScript

import type { JSONSchema7Definition } from 'schema-type';
export const packedQueueCountSchema = {
$id: 'https://misskey-hub.net/api/schemas/QueueCount',
type: 'object',
properties: {
waiting: {
type: 'number',
},
active: {
type: 'number',
},
completed: {
type: 'number',
},
failed: {
type: 'number',
},
delayed: {
type: 'number',
},
},
required: [
'waiting',
'active',
'completed',
'failed',
'delayed',
],
} as const satisfies JSONSchema7Definition;