Variable agentScheduleSchemaConst
agentScheduleSchema: ZodObject<
{
agent: ZodOptional<ZodString>;
app: ZodOptional<ZodString>;
created_at: ZodOptional<ZodString>;
cron_expression: ZodOptional<ZodString>;
id: ZodString;
instructions: ZodOptional<ZodString>;
last_run_at: ZodOptional<ZodString>;
max_runs: ZodOptional<ZodNumber>;
metadata: ZodOptional<ZodRecord<ZodString, ZodUnknown>>;
next_run_at: ZodOptional<ZodString>;
run_count: ZodOptional<ZodNumber>;
schedule_type: ZodOptional<ZodString>;
scheduled_at: ZodOptional<ZodString>;
status: ZodOptional<ZodString>;
thread: ZodOptional<ZodString>;
timezone: ZodOptional<ZodString>;
updated_at: ZodOptional<ZodString>;
},
"strip",
ZodTypeAny,
{
agent?: string;
app?: string;
created_at?: string;
cron_expression?: string;
id: string;
instructions?: string;
last_run_at?: string;
max_runs?: number;
metadata?: Record<string, unknown>;
next_run_at?: string;
run_count?: number;
schedule_type?: string;
scheduled_at?: string;
status?: string;
thread?: string;
timezone?: string;
updated_at?: string;
},
{
agent?: string;
app?: string;
created_at?: string;
cron_expression?: string;
id: string;
instructions?: string;
last_run_at?: string;
max_runs?: number;
metadata?: Record<string, unknown>;
next_run_at?: string;
run_count?: number;
schedule_type?: string;
scheduled_at?: string;
status?: string;
thread?: string;
timezone?: string;
updated_at?: string;
},
> = ...
Runtime validator for AgentSchedule.