Interface MessageResponse<CustomFields>

interface MessageResponse {
    category: string;
    content: string;
    createdAt: string;
    customFields?: CustomFields;
    id: string;
    messageType: "private" | "channel";
    organizationId?: string;
    priority?: string;
    readStatus?: "read" | "unread";
    receiptId?: string;
    senderId?: string;
    senderType: string;
    title: string;
    topicId: string;
    typeId: string;
    updatedAt: string;
}

Type Parameters

  • CustomFields = unknown

Properties

category: string

Category of the message. Arbitrary string depending upon application

content: string

Message body

createdAt: string

ISO datetime for when the message was created

customFields?: CustomFields

Custom fields for the message

id: string

Message ID

messageType: "private" | "channel"

Message type. Either a private message or made in a subscribable channel

organizationId?: string

Associated organization with the message (for supply side)

priority?: string

Priority of the message. Arbitrary string depending upon application

readStatus?: "read" | "unread"

Read status for this message. Depending upon the input, this may be for the user, the org, or not returned. Read the messaging service api documentation for details

receiptId?: string

Receiver of the message. Only applicable for private type

senderId?: string

Sender id of the message. Generally a user id

senderType: string

Sender type of the message. Generally 'normalUser', but may be an arbitrary value depending upon senderId's purpose

title: string

Message title

topicId: string

Topic ID for the message

typeId: string

Type ID for the message. Arbitrary string depending upon application

updatedAt: string

ISO datetime for when the message was last updated

Generated using TypeDoc