import { Type, type TSchema } from "typebox"; export declare const CronScheduleSchema: Type.TUnion<[Type.TObject<{ kind: Type.TLiteral<"at">; at: Type.TString; }>, Type.TObject<{ kind: Type.TLiteral<"every">; everyMs: Type.TInteger; anchorMs: Type.TOptional; }>, Type.TObject<{ kind: Type.TLiteral<"cron">; expr: Type.TString; tz: Type.TOptional; staggerMs: Type.TOptional; }>]>; export declare const CronPayloadSchema: Type.TUnion<[Type.TObject<{ kind: Type.TLiteral<"systemEvent">; text: Type.TString; }>, Type.TObject<{ kind: Type.TLiteral<"agentTurn">; message: TSchema; model: Type.TOptional; fallbacks: Type.TOptional>; thinking: Type.TOptional; timeoutSeconds: Type.TOptional; allowUnsafeExternalContent: Type.TOptional; lightContext: Type.TOptional; toolsAllow: Type.TOptional; }>]>; export declare const CronPayloadPatchSchema: Type.TUnion<[Type.TObject<{ kind: Type.TLiteral<"systemEvent">; text: Type.TOptional; }>, Type.TObject<{ kind: Type.TLiteral<"agentTurn">; message: TSchema; model: Type.TOptional; fallbacks: Type.TOptional>; thinking: Type.TOptional; timeoutSeconds: Type.TOptional; allowUnsafeExternalContent: Type.TOptional; lightContext: Type.TOptional; toolsAllow: Type.TOptional; }>]>; export declare const CronFailureAlertSchema: Type.TObject<{ after: Type.TOptional; channel: Type.TOptional, Type.TString]>>; to: Type.TOptional; cooldownMs: Type.TOptional; includeSkipped: Type.TOptional; mode: Type.TOptional, Type.TLiteral<"webhook">]>>; accountId: Type.TOptional; }>; export declare const CronFailureDestinationSchema: Type.TObject<{ channel: Type.TOptional, Type.TString]>>; to: Type.TOptional; accountId: Type.TOptional; mode: Type.TOptional, Type.TLiteral<"webhook">]>>; }>; export declare const CronDeliverySchema: Type.TUnion<[Type.TObject<{ channel: Type.TOptional, Type.TString]>>; threadId: Type.TOptional>; accountId: Type.TOptional; bestEffort: Type.TOptional; failureDestination: Type.TOptional, Type.TString]>>; to: Type.TOptional; accountId: Type.TOptional; mode: Type.TOptional, Type.TLiteral<"webhook">]>>; }>>; mode: Type.TLiteral<"none">; to: Type.TOptional; }>, Type.TObject<{ channel: Type.TOptional, Type.TString]>>; threadId: Type.TOptional>; accountId: Type.TOptional; bestEffort: Type.TOptional; failureDestination: Type.TOptional, Type.TString]>>; to: Type.TOptional; accountId: Type.TOptional; mode: Type.TOptional, Type.TLiteral<"webhook">]>>; }>>; mode: Type.TLiteral<"announce">; to: Type.TOptional; }>, Type.TObject<{ channel: Type.TOptional, Type.TString]>>; threadId: Type.TOptional>; accountId: Type.TOptional; bestEffort: Type.TOptional; failureDestination: Type.TOptional, Type.TString]>>; to: Type.TOptional; accountId: Type.TOptional; mode: Type.TOptional, Type.TLiteral<"webhook">]>>; }>>; mode: Type.TLiteral<"webhook">; to: Type.TString; }>]>; export declare const CronDeliveryPatchSchema: Type.TObject<{ channel: Type.TOptional, Type.TString]>>; threadId: Type.TOptional>; accountId: Type.TOptional; bestEffort: Type.TOptional; failureDestination: Type.TOptional, Type.TString]>>; to: Type.TOptional; accountId: Type.TOptional; mode: Type.TOptional, Type.TLiteral<"webhook">]>>; }>>; mode: Type.TOptional, Type.TLiteral<"announce">, Type.TLiteral<"webhook">]>>; to: Type.TOptional; }>; export declare const CronJobStateSchema: Type.TObject<{ nextRunAtMs: Type.TOptional; runningAtMs: Type.TOptional; lastRunAtMs: Type.TOptional; lastRunStatus: Type.TOptional, Type.TLiteral<"error">, Type.TLiteral<"skipped">]>>; lastStatus: Type.TOptional, Type.TLiteral<"error">, Type.TLiteral<"skipped">]>>; lastError: Type.TOptional; lastDiagnostics: Type.TOptional; entries: Type.TArray, Type.TLiteral<"cron-setup">, Type.TLiteral<"model-preflight">, Type.TLiteral<"agent-run">, Type.TLiteral<"tool">, Type.TLiteral<"exec">, Type.TLiteral<"delivery">]>; severity: Type.TUnion<[Type.TLiteral<"info">, Type.TLiteral<"warn">, Type.TLiteral<"error">]>; message: Type.TString; toolName: Type.TOptional; exitCode: Type.TOptional>; truncated: Type.TOptional; }>>; }>>; lastDiagnosticSummary: Type.TOptional; lastErrorReason: Type.TOptional, Type.TLiteral<"format">, Type.TLiteral<"rate_limit">, Type.TLiteral<"billing">, Type.TLiteral<"timeout">, Type.TLiteral<"model_not_found">, Type.TLiteral<"empty_response">, Type.TLiteral<"no_error_details">, Type.TLiteral<"unclassified">, Type.TLiteral<"unknown">]>>; lastDurationMs: Type.TOptional; consecutiveErrors: Type.TOptional; consecutiveSkipped: Type.TOptional; lastDelivered: Type.TOptional; lastDeliveryStatus: Type.TOptional, Type.TLiteral<"not-delivered">, Type.TLiteral<"unknown">, Type.TLiteral<"not-requested">]>>; lastDeliveryError: Type.TOptional; lastFailureAlertAtMs: Type.TOptional; }>; export declare const CronJobSchema: Type.TObject<{ id: Type.TString; agentId: Type.TOptional; sessionKey: Type.TOptional; name: Type.TString; description: Type.TOptional; enabled: Type.TBoolean; deleteAfterRun: Type.TOptional; createdAtMs: Type.TInteger; updatedAtMs: Type.TInteger; schedule: Type.TUnion<[Type.TObject<{ kind: Type.TLiteral<"at">; at: Type.TString; }>, Type.TObject<{ kind: Type.TLiteral<"every">; everyMs: Type.TInteger; anchorMs: Type.TOptional; }>, Type.TObject<{ kind: Type.TLiteral<"cron">; expr: Type.TString; tz: Type.TOptional; staggerMs: Type.TOptional; }>]>; sessionTarget: Type.TUnion<[Type.TLiteral<"main">, Type.TLiteral<"isolated">, Type.TLiteral<"current">, Type.TString]>; wakeMode: Type.TUnion<[Type.TLiteral<"next-heartbeat">, Type.TLiteral<"now">]>; payload: Type.TUnion<[Type.TObject<{ kind: Type.TLiteral<"systemEvent">; text: Type.TString; }>, Type.TObject<{ kind: Type.TLiteral<"agentTurn">; message: TSchema; model: Type.TOptional; fallbacks: Type.TOptional>; thinking: Type.TOptional; timeoutSeconds: Type.TOptional; allowUnsafeExternalContent: Type.TOptional; lightContext: Type.TOptional; toolsAllow: Type.TOptional; }>]>; delivery: Type.TOptional, Type.TString]>>; threadId: Type.TOptional>; accountId: Type.TOptional; bestEffort: Type.TOptional; failureDestination: Type.TOptional, Type.TString]>>; to: Type.TOptional; accountId: Type.TOptional; mode: Type.TOptional, Type.TLiteral<"webhook">]>>; }>>; mode: Type.TLiteral<"none">; to: Type.TOptional; }>, Type.TObject<{ channel: Type.TOptional, Type.TString]>>; threadId: Type.TOptional>; accountId: Type.TOptional; bestEffort: Type.TOptional; failureDestination: Type.TOptional, Type.TString]>>; to: Type.TOptional; accountId: Type.TOptional; mode: Type.TOptional, Type.TLiteral<"webhook">]>>; }>>; mode: Type.TLiteral<"announce">; to: Type.TOptional; }>, Type.TObject<{ channel: Type.TOptional, Type.TString]>>; threadId: Type.TOptional>; accountId: Type.TOptional; bestEffort: Type.TOptional; failureDestination: Type.TOptional, Type.TString]>>; to: Type.TOptional; accountId: Type.TOptional; mode: Type.TOptional, Type.TLiteral<"webhook">]>>; }>>; mode: Type.TLiteral<"webhook">; to: Type.TString; }>]>>; failureAlert: Type.TOptional, Type.TObject<{ after: Type.TOptional; channel: Type.TOptional, Type.TString]>>; to: Type.TOptional; cooldownMs: Type.TOptional; includeSkipped: Type.TOptional; mode: Type.TOptional, Type.TLiteral<"webhook">]>>; accountId: Type.TOptional; }>]>>; state: Type.TObject<{ nextRunAtMs: Type.TOptional; runningAtMs: Type.TOptional; lastRunAtMs: Type.TOptional; lastRunStatus: Type.TOptional, Type.TLiteral<"error">, Type.TLiteral<"skipped">]>>; lastStatus: Type.TOptional, Type.TLiteral<"error">, Type.TLiteral<"skipped">]>>; lastError: Type.TOptional; lastDiagnostics: Type.TOptional; entries: Type.TArray, Type.TLiteral<"cron-setup">, Type.TLiteral<"model-preflight">, Type.TLiteral<"agent-run">, Type.TLiteral<"tool">, Type.TLiteral<"exec">, Type.TLiteral<"delivery">]>; severity: Type.TUnion<[Type.TLiteral<"info">, Type.TLiteral<"warn">, Type.TLiteral<"error">]>; message: Type.TString; toolName: Type.TOptional; exitCode: Type.TOptional>; truncated: Type.TOptional; }>>; }>>; lastDiagnosticSummary: Type.TOptional; lastErrorReason: Type.TOptional, Type.TLiteral<"format">, Type.TLiteral<"rate_limit">, Type.TLiteral<"billing">, Type.TLiteral<"timeout">, Type.TLiteral<"model_not_found">, Type.TLiteral<"empty_response">, Type.TLiteral<"no_error_details">, Type.TLiteral<"unclassified">, Type.TLiteral<"unknown">]>>; lastDurationMs: Type.TOptional; consecutiveErrors: Type.TOptional; consecutiveSkipped: Type.TOptional; lastDelivered: Type.TOptional; lastDeliveryStatus: Type.TOptional, Type.TLiteral<"not-delivered">, Type.TLiteral<"unknown">, Type.TLiteral<"not-requested">]>>; lastDeliveryError: Type.TOptional; lastFailureAlertAtMs: Type.TOptional; }>; }>; export declare const CronListParamsSchema: Type.TObject<{ includeDisabled: Type.TOptional; limit: Type.TOptional; offset: Type.TOptional; query: Type.TOptional; enabled: Type.TOptional, Type.TLiteral<"enabled">, Type.TLiteral<"disabled">]>>; sortBy: Type.TOptional, Type.TLiteral<"updatedAtMs">, Type.TLiteral<"name">]>>; sortDir: Type.TOptional, Type.TLiteral<"desc">]>>; }>; export declare const CronStatusParamsSchema: Type.TObject<{}>; export declare const CronAddParamsSchema: Type.TObject<{ agentId: Type.TOptional>; sessionKey: Type.TOptional>; description: Type.TOptional; enabled: Type.TOptional; deleteAfterRun: Type.TOptional; name: Type.TString; schedule: Type.TUnion<[Type.TObject<{ kind: Type.TLiteral<"at">; at: Type.TString; }>, Type.TObject<{ kind: Type.TLiteral<"every">; everyMs: Type.TInteger; anchorMs: Type.TOptional; }>, Type.TObject<{ kind: Type.TLiteral<"cron">; expr: Type.TString; tz: Type.TOptional; staggerMs: Type.TOptional; }>]>; sessionTarget: Type.TUnion<[Type.TLiteral<"main">, Type.TLiteral<"isolated">, Type.TLiteral<"current">, Type.TString]>; wakeMode: Type.TUnion<[Type.TLiteral<"next-heartbeat">, Type.TLiteral<"now">]>; payload: Type.TUnion<[Type.TObject<{ kind: Type.TLiteral<"systemEvent">; text: Type.TString; }>, Type.TObject<{ kind: Type.TLiteral<"agentTurn">; message: TSchema; model: Type.TOptional; fallbacks: Type.TOptional>; thinking: Type.TOptional; timeoutSeconds: Type.TOptional; allowUnsafeExternalContent: Type.TOptional; lightContext: Type.TOptional; toolsAllow: Type.TOptional; }>]>; delivery: Type.TOptional, Type.TString]>>; threadId: Type.TOptional>; accountId: Type.TOptional; bestEffort: Type.TOptional; failureDestination: Type.TOptional, Type.TString]>>; to: Type.TOptional; accountId: Type.TOptional; mode: Type.TOptional, Type.TLiteral<"webhook">]>>; }>>; mode: Type.TLiteral<"none">; to: Type.TOptional; }>, Type.TObject<{ channel: Type.TOptional, Type.TString]>>; threadId: Type.TOptional>; accountId: Type.TOptional; bestEffort: Type.TOptional; failureDestination: Type.TOptional, Type.TString]>>; to: Type.TOptional; accountId: Type.TOptional; mode: Type.TOptional, Type.TLiteral<"webhook">]>>; }>>; mode: Type.TLiteral<"announce">; to: Type.TOptional; }>, Type.TObject<{ channel: Type.TOptional, Type.TString]>>; threadId: Type.TOptional>; accountId: Type.TOptional; bestEffort: Type.TOptional; failureDestination: Type.TOptional, Type.TString]>>; to: Type.TOptional; accountId: Type.TOptional; mode: Type.TOptional, Type.TLiteral<"webhook">]>>; }>>; mode: Type.TLiteral<"webhook">; to: Type.TString; }>]>>; failureAlert: Type.TOptional, Type.TObject<{ after: Type.TOptional; channel: Type.TOptional, Type.TString]>>; to: Type.TOptional; cooldownMs: Type.TOptional; includeSkipped: Type.TOptional; mode: Type.TOptional, Type.TLiteral<"webhook">]>>; accountId: Type.TOptional; }>]>>; }>; export declare const CronJobPatchSchema: Type.TObject<{ agentId: Type.TOptional>; sessionKey: Type.TOptional>; description: Type.TOptional; enabled: Type.TOptional; deleteAfterRun: Type.TOptional; name: Type.TOptional; schedule: Type.TOptional; at: Type.TString; }>, Type.TObject<{ kind: Type.TLiteral<"every">; everyMs: Type.TInteger; anchorMs: Type.TOptional; }>, Type.TObject<{ kind: Type.TLiteral<"cron">; expr: Type.TString; tz: Type.TOptional; staggerMs: Type.TOptional; }>]>>; sessionTarget: Type.TOptional, Type.TLiteral<"isolated">, Type.TLiteral<"current">, Type.TString]>>; wakeMode: Type.TOptional, Type.TLiteral<"now">]>>; payload: Type.TOptional; text: Type.TOptional; }>, Type.TObject<{ kind: Type.TLiteral<"agentTurn">; message: TSchema; model: Type.TOptional; fallbacks: Type.TOptional>; thinking: Type.TOptional; timeoutSeconds: Type.TOptional; allowUnsafeExternalContent: Type.TOptional; lightContext: Type.TOptional; toolsAllow: Type.TOptional; }>]>>; delivery: Type.TOptional, Type.TString]>>; threadId: Type.TOptional>; accountId: Type.TOptional; bestEffort: Type.TOptional; failureDestination: Type.TOptional, Type.TString]>>; to: Type.TOptional; accountId: Type.TOptional; mode: Type.TOptional, Type.TLiteral<"webhook">]>>; }>>; mode: Type.TOptional, Type.TLiteral<"announce">, Type.TLiteral<"webhook">]>>; to: Type.TOptional; }>>; failureAlert: Type.TOptional, Type.TObject<{ after: Type.TOptional; channel: Type.TOptional, Type.TString]>>; to: Type.TOptional; cooldownMs: Type.TOptional; includeSkipped: Type.TOptional; mode: Type.TOptional, Type.TLiteral<"webhook">]>>; accountId: Type.TOptional; }>]>>; state: Type.TOptional; runningAtMs: Type.TOptional; lastRunAtMs: Type.TOptional; lastRunStatus: Type.TOptional, Type.TLiteral<"error">, Type.TLiteral<"skipped">]>>; lastStatus: Type.TOptional, Type.TLiteral<"error">, Type.TLiteral<"skipped">]>>; lastError: Type.TOptional; lastErrorReason: Type.TOptional, Type.TLiteral<"format">, Type.TLiteral<"rate_limit">, Type.TLiteral<"billing">, Type.TLiteral<"timeout">, Type.TLiteral<"model_not_found">, Type.TLiteral<"empty_response">, Type.TLiteral<"no_error_details">, Type.TLiteral<"unclassified">, Type.TLiteral<"unknown">]>>; lastDurationMs: Type.TOptional; consecutiveErrors: Type.TOptional; consecutiveSkipped: Type.TOptional; lastDelivered: Type.TOptional; lastDeliveryStatus: Type.TOptional, Type.TLiteral<"not-delivered">, Type.TLiteral<"unknown">, Type.TLiteral<"not-requested">]>>; lastDeliveryError: Type.TOptional; lastFailureAlertAtMs: Type.TOptional; }>>; }>; export declare const CronUpdateParamsSchema: Type.TUnion<[Type.TObject<{ id: Type.TString; }>, Type.TObject<{ jobId: Type.TString; }>]>; export declare const CronRemoveParamsSchema: Type.TUnion<[Type.TObject<{ id: Type.TString; }>, Type.TObject<{ jobId: Type.TString; }>]>; export declare const CronRunParamsSchema: Type.TUnion<[Type.TObject<{ id: Type.TString; }>, Type.TObject<{ jobId: Type.TString; }>]>; export declare const CronRunsParamsSchema: Type.TObject<{ scope: Type.TOptional, Type.TLiteral<"all">]>>; id: Type.TOptional; jobId: Type.TOptional; limit: Type.TOptional; offset: Type.TOptional; statuses: Type.TOptional, Type.TLiteral<"error">, Type.TLiteral<"skipped">]>>>; status: Type.TOptional, Type.TLiteral<"ok">, Type.TLiteral<"error">, Type.TLiteral<"skipped">]>>; deliveryStatuses: Type.TOptional, Type.TLiteral<"not-delivered">, Type.TLiteral<"unknown">, Type.TLiteral<"not-requested">]>>>; deliveryStatus: Type.TOptional, Type.TLiteral<"not-delivered">, Type.TLiteral<"unknown">, Type.TLiteral<"not-requested">]>>; query: Type.TOptional; sortDir: Type.TOptional, Type.TLiteral<"desc">]>>; }>; export declare const CronRunLogEntrySchema: Type.TObject<{ ts: Type.TInteger; jobId: Type.TString; action: Type.TLiteral<"finished">; status: Type.TOptional, Type.TLiteral<"error">, Type.TLiteral<"skipped">]>>; error: Type.TOptional; summary: Type.TOptional; diagnostics: Type.TOptional; entries: Type.TArray, Type.TLiteral<"cron-setup">, Type.TLiteral<"model-preflight">, Type.TLiteral<"agent-run">, Type.TLiteral<"tool">, Type.TLiteral<"exec">, Type.TLiteral<"delivery">]>; severity: Type.TUnion<[Type.TLiteral<"info">, Type.TLiteral<"warn">, Type.TLiteral<"error">]>; message: Type.TString; toolName: Type.TOptional; exitCode: Type.TOptional>; truncated: Type.TOptional; }>>; }>>; delivered: Type.TOptional; deliveryStatus: Type.TOptional, Type.TLiteral<"not-delivered">, Type.TLiteral<"unknown">, Type.TLiteral<"not-requested">]>>; deliveryError: Type.TOptional; sessionId: Type.TOptional; sessionKey: Type.TOptional; runId: Type.TOptional; runAtMs: Type.TOptional; durationMs: Type.TOptional; nextRunAtMs: Type.TOptional; model: Type.TOptional; provider: Type.TOptional; usage: Type.TOptional; output_tokens: Type.TOptional; total_tokens: Type.TOptional; cache_read_tokens: Type.TOptional; cache_write_tokens: Type.TOptional; }>>; jobName: Type.TOptional; }>;