Something went wrong. Try again.
A local-first event pipeline for independent agents, built on Jazz.
Something went wrong. Try again.
1.7 kB · 89 lines
TypeScript
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990import type { JsonObject } from "../core/json.js";
export type SourceKind = | "filesystem" | "rss" | "jetstream" | "fastmail" | "telegram" | "x-webhook" | "web" | "timer" | "agent" | "system";
export type PrivacyClass = "private" | "sensitive" | "public-source";
export interface EventCandidate { type: string; schemaVersion: number; source: string; sourceKind: SourceKind; externalId: string; idempotencyKey: string; occurredAt: string; observedAt?: string; actor: string; rootEventId?: string; parentEventId?: string; correlationId: string; privacy: PrivacyClass; payload: JsonObject; traceId?: string; createdByRuntime?: string;}
export interface ThoughtEvent { id: string; sourceSequence: number; type: string; schemaVersion: number; source: string; sourceKind: SourceKind; externalId: string; idempotencyKey: string; occurredAt: string; observedAt: string; actor: string; rootEventId: string; parentEventId?: string; correlationId: string; privacy: PrivacyClass; payload: JsonObject; payloadHash: string; traceId?: string; createdByRuntime: string; jazzRowId?: string;}
export interface AppendEventResult { event: ThoughtEvent; inserted: boolean;}
export interface DocumentVersion { id: string; source: string; documentId: string; path: string; contentType: string; sha256: string; content: string; sizeBytes: number; mtimeMs: number; createdAt: string;}
export interface CurrentDocument { id: string; source: string; documentId: string; path: string; versionId: string; sha256: string; contentType: string; sizeBytes: number; mtimeMs: number; deleted: boolean; updatedAt: string;}