Interface CreateMessageInput<CustomFields>

interface CreateMessageInput {
    category: string;
    content: string;
    customFields?: CustomFields;
    messageType: "private" | "channel";
    organizationId?: string;
    priority?: string;
    receiptId?: string;
    senderId?: string;
    senderType: string;
    title?: string;
    topicId: string;
    typeId: string;
}

Type Parameters

  • CustomFields = unknown

Properties

category: string

Category of the message. Arbitrary string depending upon application

content: string

Message body

customFields?: CustomFields

Custom fields for the message

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

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

Generated using TypeDoc