@obsrviq/types
v0.6.0
Published
Shared TypeScript contracts for Obsrviq (the spine — §4).
Readme
@obsrviq/types
The shared TypeScript contracts — the spine every Obsrviq package imports (spec §4). SDK, ingest, worker, API, player, and widgets all speak these types, so the wire format, the database, and the UI never drift.
import type {
ObsrviqEvent, ConsoleEvent, NetworkEvent, ErrorEvent, PerfEvent,
SessionSummary, SessionDetail, InsightCard, Score, CopilotChunk,
IngestBatch, Tenant, Site, ApiKey, User,
} from '@obsrviq/types';Key idea: every event carries t — milliseconds since session start — the
master clock that synchronizes the replay, console, network, errors, and AI panels.
See src/index.ts for the full, commented contract set.
