Javascript API: Objects
CustomEvent
CustomEvent
interface CustomEvent<EventDetail> {
detail: EventDetail
}
MessageEvent
MessageEvent
interface MessageEvent {
direction: "INBOUND" | "OUTBOUND";
messageId: string;
conversationId: string;
browserContextId: string;
senderId: string | null;
sentAt: string;
}
ConversationEvent
ConversationEvent
interface ConversationEventParticipant {
isCurrent: boolean;
lastMessageAt: string | null;
user: {
id: string;
};
}
interface ConversationEvent {
conversationId: string;
browserContextId: string;
status: "OPEN" | "CLOSED" | "BLOCKED";
participants: ConversationEventParticipant[];
}
Updated 5 months ago