TypeScript types and constants defining the schema, states, lease and failure structures for reflection extraction background jobs. Reuse when building queued job processing with leasing and dead-letter handling.
// Source: https://github.com/BradGroux/veritas-kanban | License: MIT | Copyright 2026 Digital Meld
// Provided via justclaw.it.com; keep this notice with the code.
export const REFLECTION_EXTRACTION_JOB_SCHEMA_VERSION = 'reflection-extraction-job/v1' as const;
export const REFLECTION_EXTRACTION_JOB_STATES = [
'queued',
'leased',
'completed',
'dead-letter',
] as const;
export type ReflectionExtractionJobState = (typeof REFLECTION_EXTRACTION_JOB_STATES)[number];
export interface ReflectionExtractionJobSource {
taskId: string;
attemptId: string;
completionId: string;
completionDigest: string;
runEventId?: string;
}
export interface ReflectionExtractionJobLease {
ownerId: string;
acquiredAt: string;
expiresAt: string;
}
export interface ReflectionExtractionJobFail
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key