Skip to content

AlpyneEvent

readonly claimedAt: Date

The timestamp (in UTC) the event was claimed by a worker


readonly createdAt: Date

The timestamp (in UTC) the event was published


readonly eventPrn: string

The PRN for the event. This can be considered the ‘topic’ of this event


readonly eventPrnLineage: string[]

The lineage of event PRNs that triggered this event.


readonly id: string

A unique, lexicographically sortable UUID for the event


readonly itemId: string

The item targeted by this event


readonly originalPrincipalId: string | null

The principal responsible for the top-level trace (rootParentId) that caused this event to be published


readonly parentId: string | null

The immediate parent event to this event TODO: is this the parent traceId or id?


readonly payload: Record<string, unknown>

The event payload in raw un-zodded form


readonly rootParentId: string | null

The top-level trace that caused this event to be published. This could be a request id from an HTTP request or another event TODO: if an event, is this a trace id or the id?


readonly traceId: string

A unique identifier to trace work in Alpyne systems associated with this event


readonly workspaceId: string

The workspace that contains (‘tenants’?) this event. All entities that this event refers to MUST belong to this workspace