Type Alias: MessageCreatedEventData
Properties
| Property | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Message ID |
sessionId | string | Yes | Session ID the message belongs to |
participantId | string | Yes | Participant ID (null for system messages) |
externalUserId | string | Yes | External user ID from ODIN (null for system messages) |
type | "user" | "system" | No | Message type (only set on system messages) |
senderName | string | Yes | Sender display name (or "[System]" for system messages) |
content | string | Yes | Transcribed message content |
timestamp | string | Yes | Message timestamp |
hasDebugAudio | boolean | No | Whether a debug audio WAV is available (user messages only) |
Defined in
4Players/cortex-typescript-sdk/src/realtime/events.ts:77