Skip to content

rulvar API reference


rulvar API reference / @rulvar/rulvar / WorkflowEvent

Type Alias: WorkflowEvent

ts
type WorkflowEvent = {
  parentSpanId?: string;
  replayed?: boolean;
  runId: string;
  seq: number;
  spanId: string;
  ts: string;
} & WorkflowEventBody;

Defined in: packages/core/dist/index.d.ts

The envelope: seq is an independent per-run telemetry counter, strictly increasing in emission order and DISTINCT from JournalEntry.seq (never compare or join the two; entryRef fields carry journal seqs explicitly). ts is wall clock, telemetry only. replayed is true only on re-emitted journal-backed lifecycle events; stream deltas are never re-emitted.

Type Declaration

NameTypeDefined in
parentSpanId?stringpackages/core/dist/index.d.ts
replayed?booleanpackages/core/dist/index.d.ts
runIdstringpackages/core/dist/index.d.ts
seqnumberpackages/core/dist/index.d.ts
spanIdstringpackages/core/dist/index.d.ts
tsstringpackages/core/dist/index.d.ts