interface Event

A single event in the event log.

Type Parameters

T = unknown

Properties

id: string

Unique identifier for this event.

topic: string

The topic this event belongs to.

The event data payload.

Partition key for ordering guarantees.

Monotonically increasing sequence number within the topic. Represented as a string to support bigint while remaining serializable.

timestamp: number

Unix timestamp in milliseconds when the event was created.

optional
metadata: Record<string, unknown>

Optional metadata associated with the event.

Usage

import { type Event } from ".";