Interface UpdateHistoryEvent<TMessageType>

An event that is fired when a messageResponse is updated. This is triggered either by the end user updating messages in the pre:receive or customResponse events, or by us (internal) when we want to save state of a response type (ex. connect to agent).

interface UpdateHistoryEvent<TMessageType = MessageResponse | MessageRequest> {
    messageID: string;
    name: "update_history";
    partial_message?: DeepPartial<TMessageType>;
}

Type Parameters

Hierarchy (View Summary)

Properties

messageID: string

The messageID of the original message that we're saving the update in history for.

name: "update_history"

The name of the event.

partial_message?: DeepPartial<TMessageType>

The partial message response to be saved to the backend and used on session history reload to update the state of a previous message.

MMNEPVFCICPMFPCPTTAAATR