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

32 lines
503 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 packedQueueCountSchema = {
2023-05-10 18:22:21 +02:00
$id: 'https://misskey-hub.net/api/schemas/QueueCount',
2023-05-02 14:05:17 +02:00
type: 'object',
properties: {
waiting: {
type: 'number',
},
active: {
type: 'number',
},
completed: {
type: 'number',
},
failed: {
type: 'number',
},
delayed: {
type: 'number',
},
},
2023-05-10 18:22:21 +02:00
required: [
'waiting',
'active',
'completed',
'failed',
'delayed',
],
} as const satisfies JSONSchema7Definition;