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.
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.