This commit is contained in:
Oleg Maslov
2026-09-02 10:14:22 +02:00
parent 0c3e2ead3b
commit b20b138fe4
771 changed files with 161561 additions and 9027 deletions

View File

@@ -124,10 +124,12 @@ export const createResourceSchema = z.object({
config: z.record(z.unknown()),
});
export const scheduledJobTypeSchema = z.enum(['chat', 'task', 'waggle', 'group']);
export const createCronSchema = z.object({
name: z.string().min(1).max(200),
cronExpr: z.string().min(1),
jobType: z.string().min(1),
jobType: scheduledJobTypeSchema,
jobConfig: z.record(z.unknown()).default({}),
});