Communication
Message — cross-channel communication.
One entity for all communication. Email, SMS, chat, push notifications.
Message
Universal communication primitive.
import { Noun } from 'digital-objects'
export const Message = Noun('Message', {
body: 'string!',
channel: 'Email | SMS | Chat | Push',
status: 'Draft | Sent | Delivered | Read | Failed',
sender: 'string',
recipient: 'string',
send: 'Sent',
deliver: 'Delivered',
read: 'Read',
})| Verb | Event | Description |
|---|---|---|
send | Sent | Message dispatched to channel |
deliver | Delivered | Confirmed delivery |
read | Read | Recipient opened/read |