Headlessly

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',
})
VerbEventDescription
sendSentMessage dispatched to channel
deliverDeliveredConfirmed delivery
readReadRecipient opened/read

On this page