IFClite TypeScript API
    Preparing search index...
    Index
    • Append an event. seq and ts are assigned by the log; any caller-supplied values are overwritten. The input type uses distributive Omit so each event-kind's unique fields stay visible to TypeScript (no need for as casts at call sites).

      Parameters

      • event: AuditEventInput

      Returns AuditEvent

    • Approximate in-memory footprint, in JSON bytes.

      Returns number

    • Reset everything.

      Returns void

    • Export the entire log as a pretty-printed JSON string.

      Returns string

    • Hydrate the log from a prior snapshot (typically from IDB). Used when the viewer's host service restores state on app boot. The eviction policy still runs after hydration so an over-cap import gets trimmed.

      Parameters

      Returns void

    • Current event count.

      Returns number

    • Subscribe to new audit events; returns an unsubscribe.

      Parameters

      Returns () => void