Skip to main content

Type Alias: MessageCreatedEvent

type MessageCreatedEvent: components["schemas"]["MessageCreatedEvent"];

Properties

PropertyTypeRequiredDescription
idstringYesUnique ID for this specific event occurrence (UUIDv4)
tenantIdstringYesTenant this event belongs to
projectIdstringNoProject/app ID for project-scoped events
resourceIdstringYesComposite resource identifier in resource:id format (example: "session:abc-123")
timestampstringYesISO 8601 timestamp of when the event occurred
type"message.created"Yes
source"cortex:bot"YesOrigin service
payloadMessageCreatedPayloadYes

Defined in

4Players/cortex-typescript-sdk/src/realtime/events.ts:51