Add bot schedules (routines), open Activity, add Help and a Desktop computer view
Bots create, list, update and delete schedules (cron_jobs, Bun.cron in UTC); a per-minute cron queues due runs as tasks. Routines, Activity (super admins) and Help get their own rail aside. Help covers familiar problems, starting with signing in to Google through Cookie-Editor over the new Desktop (noVNC) view. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import { z } from "zod";
|
||||
|
||||
const CronJobIdField = z.coerce.number().int().positive("Pick a routine");
|
||||
|
||||
export const UpdateCronJobRequestSchema = z.object({
|
||||
cron_job_id: CronJobIdField,
|
||||
title: z.string().trim().min(1, "Give the routine a name").max(80, "Keep the name under 80 characters").optional(),
|
||||
instructions: z.string().trim().min(1, "Tell the bot what to do").max(8000).optional(),
|
||||
schedule: z.string().trim().min(1, "Set when it runs").max(100).optional(),
|
||||
enabled: z.boolean().optional(),
|
||||
});
|
||||
|
||||
export type UpdateCronJobRequest = z.infer<typeof UpdateCronJobRequestSchema>;
|
||||
|
||||
export const CronJobIdRequestSchema = z.object({
|
||||
cron_job_id: CronJobIdField,
|
||||
});
|
||||
|
||||
export type CronJobIdRequest = z.infer<typeof CronJobIdRequestSchema>;
|
||||
Reference in New Issue
Block a user