Skip to main content

Type Alias: XapiVerb

XapiVerb = "initialized" | "answered" | "completed" | "passed" | "failed" | "progressed" | "terminated"

Defined in: adapters/xapi-stub.ts:22

In-memory xAPI 2.0 Tracker adapter. Emits well-formed statements into a queue that callers can read via statements. Ships zero network I/O — it is the adapter we wire to the Tracker in:

  • Astro preview (pnpm dev) — inspect emitted statements during authoring
  • Unit tests — assert emitted statement shapes
  • Phase 3 xAPI proxy (planned) — the statement builders here become the basis of the real XapiAdapter that POSTs to an LRS via the FastAPI /xapi proxy (per ADR 0013).

Statement shape follows xAPI 2.0 / IEEE 9274.1.1: { id, actor, verb, object, result?, context?, timestamp, stored?, authority? }

The stub sets id to a v4-like UUID, actor to an anonymous account, and timestamp to the ISO-8601 wall-clock moment of emission. Override via XapiStubOptions for test determinism.