intercom-client
Version:
Official Node bindings to the Intercom API
106 lines (105 loc) • 3.12 kB
text/typescript
import type * as Intercom from "../../../../index.mjs";
/**
* @example
* {
* conversation_id: "123 or \"last\"",
* body: {
* message_type: "comment",
* type: "user",
* body: "Thanks again :)",
* intercom_user_id: "6762f1571bb69f9f2193bbbb"
* }
* }
*
* @example
* {
* conversation_id: "123 or \"last\"",
* body: {
* message_type: "note",
* type: "admin",
* body: "<html> <body> <h2>An Unordered HTML List</h2> <ul> <li>Coffee</li> <li>Tea</li> <li>Milk</li> </ul> <h2>An Ordered HTML List</h2> <ol> <li>Coffee</li> <li>Tea</li> <li>Milk</li> </ol> </body> </html>",
* admin_id: "3156780"
* }
* }
*
* @example
* {
* conversation_id: "123 or \"last\"",
* body: {
* message_type: "quick_reply",
* type: "admin",
* admin_id: "3156780",
* reply_options: [{
* text: "Yes",
* uuid: "a5e1c524-5ddd-4c3e-9328-6bca5d6e3edb"
* }, {
* text: "No",
* uuid: "f4a98af1-be56-4948-a57e-e1a83f8484c6"
* }]
* }
* }
*
* @example
* {
* conversation_id: "123 or \"last\"",
* body: {
* message_type: "comment",
* type: "user",
* body: "body",
* reply_options: [{
* text: "Yes",
* uuid: "a5e1c524-5ddd-4c3e-9328-6bca5d6e3edb"
* }],
* intercom_user_id: "6762f1621bb69f9f2193bbbe"
* }
* }
*
* @example
* {
* conversation_id: "123 or \"last\"",
* body: {
* message_type: "comment",
* type: "user",
* body: "Thanks again :)",
* intercom_user_id: "6762f1661bb69f9f2193bbbf"
* }
* }
*
* @example
* {
* conversation_id: "123 or \"last\"",
* body: {
* message_type: "comment",
* type: "user",
* body: "Thanks again :)",
* intercom_user_id: "6762f1571bb69f9f2193bbbb"
* }
* }
*
* @example
* {
* conversation_id: "123 or \"last\"",
* body: {
* message_type: "comment",
* type: "user",
* body: "Thanks again :)",
* intercom_user_id: "6762f1571bb69f9f2193bbbb"
* }
* }
*
* @example
* {
* conversation_id: "123 or \"last\"",
* body: {
* message_type: "comment",
* type: "user",
* body: "Thanks again :)",
* intercom_user_id: "6762f1571bb69f9f2193bbbb"
* }
* }
*/
export interface ReplyToConversationRequest {
/** The Intercom provisioned identifier for the conversation or the string "last" to reply to the last part of the conversation */
conversation_id: string;
body: Intercom.ReplyConversationRequest;
}