SessionLifecycleEvent
Base interface for all session lifecycle events
Events are published to a queue and consumed by workers that dispatch to adapters (notifications, payments, calendar, etc.)
Properties
actorId?
optional actorId: string;
ID of the user who triggered this event (if applicable)
correlationId?
optional correlationId: string;
Correlation ID for distributed tracing
eventId
eventId: string;
Unique identifier for this event instance
eventType
eventType: SessionLifecycleEventType;
Type of lifecycle event
newStatus
newStatus: SessionStatus;
New session status after this event
occurredAt
occurredAt: ISOString;
When this event occurred
payload?
optional payload: SessionEventPayload;
Additional event-specific data
previousStatus?
optional previousStatus: SessionStatus;
Previous session status (if applicable)
schemaVersion
schemaVersion: number;
Schema version for forward compatibility (start at 1)
sessionId
sessionId: string;
ID of the session this event relates to