UNPKG

trellis

Version:

Agentic State Engine — event-sourced causal graph with branching, decision traces, and realtime sync for AI-native applications

32 lines 1.36 kB
/** * CronJob / CronRun ontology + defineType schemas. * @module trellis/plugins/cron/ontology */ import { z } from 'zod'; import { type InferType } from '../../schema/define.js'; import type { OntologySchema } from '../../core/ontology/types.js'; export declare const CronJobType: import("../../schema/define.js").TrellisType<"CronJob", { name: z.ZodString; enabled: z.ZodDefault<z.ZodBoolean>; intervalMs: z.ZodNumber; handler: z.ZodString; payload: z.ZodOptional<z.ZodUnknown>; nextRunAt: z.ZodOptional<z.ZodString>; lastRunAt: z.ZodOptional<z.ZodString>; leaseOwner: z.ZodOptional<z.ZodString>; leaseExpiresAt: z.ZodOptional<z.ZodString>; lastError: z.ZodOptional<z.ZodString>; timezone: z.ZodOptional<z.ZodString>; }, Record<never, never>, Record<never, never>>; export declare const CronRunType: import("../../schema/define.js").TrellisType<"CronRun", { jobId: z.ZodString; startedAt: z.ZodString; finishedAt: z.ZodString; status: z.ZodEnum<["ok", "error", "skipped"]>; error: z.ZodOptional<z.ZodString>; result: z.ZodOptional<z.ZodUnknown>; }, Record<never, never>, Record<never, never>>; export type CronJob = InferType<typeof CronJobType>; export type CronRun = InferType<typeof CronRunType>; export declare const cronOntology: OntologySchema; //# sourceMappingURL=ontology.d.ts.map