@avaya/infinity-agent-sdk - v1.0.0
    Preparing search index...

    A chat message.

    interface ChatMessage {
        type: CHAT;
        body: ChatMessageBody;
        subType?: TRANSCRIPTION;
        messageId: string;
        createdAt: Date;
        interactionId: string;
        author: MessageAuthor;
        direction: MessageDirection;
        isPrivate: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    type: CHAT

    Type of this message

    Body of a chat message which contains the content of the message.

    subType?: TRANSCRIPTION

    Specialized variant of this chat message (e.g. voice transcription). Absent for ordinary typed messages.

    messageId: string

    Server-assigned message identifier.

    createdAt: Date

    When the server recorded the message.

    interactionId: string

    Identifier of the interaction this message belongs to.

    Union of all supported author types. narrow on author.type.

    direction: MessageDirection

    Whether the message was inbound or outbound relative to the contact center.

    isPrivate: boolean

    Whether the message is private (visible to viewers only, not the customer).