OptionalendpointOptionalheadersExtra headers for fetch fallback (content-type defaults to application/json).
OptionalbeaconMax payload size for sendBeacon (default: 60 KiB).
OptionaldeliveryDelivery mode: 'immediate' (send on write) or 'buffered' (periodic/explicit flush). Default: 'buffered'.
OptionalonCalled when a batch is dropped (e.g., fetch fails in immediate mode).
OptionaldurableDurability: 'none' (default) | 'idb' for IndexedDB-backed queue.
OptionalidbIndexedDB database name (when durable === 'idb'). Default: 'accordkit'
OptionalidbIndexedDB object store name (when durable === 'idb'). Default: 'events'
OptionalidbIndexedDB version (when durable === 'idb'). Default: 1
OptionalmaxThe maximum total number of events to keep in memory across all session buffers.
If the total exceeds this size, the oldest events from the largest buffer will be dropped.
This prevents unbounded memory growth.
Only applies to buffered delivery mode.
OptionalbatchThe number of events to collect in a session's buffer before triggering a flush.
Only applies to buffered delivery mode.
OptionalflushThe maximum time in milliseconds to wait before flushing buffers, regardless of their size.
Only applies to buffered delivery mode.
OptionaloverflowThe policy to apply when the maxBuffer limit is reached.
This determines how the sink behaves when it's under heavy load.
auto-flush: Immediately triggers a flush.drop-oldest: Discards the oldest events to make room for new ones.error: Throw on overflow (useful for tests).
POST endpoint to deliver logs. If omitted, flushes are no-ops (buffer cleared).