import { z } from 'zod'; export type JobState = 'pending' | 'running' | 'completed' | 'failed' | 'poison' | 'paused'; export type JobKind = 'distill' | 'reembed' | 'cleanup' | 'distill-events' | 'consolidate' | 'transcribe'; export declare const DistillPayloadSchema: z.ZodObject<{ kind: z.ZodLiteral<"distill">; transcript_id: z.ZodString; session_id: z.ZodString; }, z.core.$strip>; /** * ADR-008 events capture kind — pre-typed atom candidates (runner-plugin * grades/lessons/review verdicts) that skip pipeline stages 1-5 and enter * at reduce (stage 6). Same payload shape as DistillPayloadSchema; the * `kind` discriminator routes the job to distillEventsHandler instead. */ export declare const DistillEventsPayloadSchema: z.ZodObject<{ kind: z.ZodLiteral<"distill-events">; transcript_id: z.ZodString; session_id: z.ZodString; }, z.core.$strip>; export declare const ReembedPayloadSchema: z.ZodObject<{ kind: z.ZodLiteral<"reembed">; memory_id: z.ZodString; }, z.core.$strip>; export declare const CleanupPayloadSchema: z.ZodObject<{ kind: z.ZodLiteral<"cleanup">; older_than_days: z.ZodDefault; }, z.core.$strip>; /** * FEAT-489 Slice A — audio file ingest. `audio_path` is an absolute path to * a local audio file (wav/mp3/m4a); `session_id` mirrors distill's own * requirement so the resulting transcript/memories carry normal session * provenance. Enqueued only when `config.audio.mode !== 'off'` (see * src/cli/audio.ts / src/pipeline/handlers/transcribe.ts) — the handler * itself defensively re-checks mode and refuses a stray 'off'-mode job * rather than silently processing it (ADR-015: no silent success path). */ export declare const TranscribePayloadSchema: z.ZodObject<{ kind: z.ZodLiteral<"transcribe">; audio_path: z.ZodString; session_id: z.ZodString; }, z.core.$strip>; export declare const JobPayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ kind: z.ZodLiteral<"distill">; transcript_id: z.ZodString; session_id: z.ZodString; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"reembed">; memory_id: z.ZodString; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"cleanup">; older_than_days: z.ZodDefault; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"distill-events">; transcript_id: z.ZodString; session_id: z.ZodString; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"transcribe">; audio_path: z.ZodString; session_id: z.ZodString; }, z.core.$strip>], "kind">; export type DistillPayload = z.infer; export type ReembedPayload = z.infer; export type CleanupPayload = z.infer; export type DistillEventsPayload = z.infer; export type TranscribePayload = z.infer; export type JobPayload = z.infer; export interface Job { id: string; kind: JobKind; payload_json: string; state: JobState; attempts: number; last_error: string | null; created_at: number; updated_at: number; }