interface IntegrationEventMetadata
Since 0.6.0

Optional causal metadata for publishIntegrationEvent.

Each field is omitted from the published envelope when absent — never written as undefined. causedBy returns a value assignable to this interface.

Properties

readonly
optional
correlationId: string

ID of the causal chain root this event descends from.

readonly
optional
causationId: string

ID of the event that directly caused this one.

readonly
optional
aggregateId: string

ID of the aggregate the event concerns.

readonly
optional
aggregateVersion: number

Version of the aggregate the event concerns.

Usage

import { type IntegrationEventMetadata } from "messaging-plugin/src/index.ts";