intercom-client
Version:
Official Node bindings to the Intercom API
29 lines (28 loc) • 1.31 kB
text/typescript
import type * as Intercom from "../index.mjs";
/**
* Payload of the request to reply on behalf of an admin
*/
export interface AdminReplyConversationRequest {
message_type: AdminReplyConversationRequest.MessageType;
type: "admin";
/** The text body of the reply. Notes accept some HTML formatting. Must be present for comment and note message types. */
body?: string;
/** The id of the admin who is authoring the comment. */
admin_id: string;
/** The time the reply was created. If not provided, the current time will be used. */
created_at?: number;
/** The quick reply options to display to the end user. Must be present for quick_reply message types. */
reply_options?: Intercom.QuickReplyOption[];
/** A list of image URLs that will be added as attachments. You can include up to 10 URLs. */
attachment_urls?: string[];
/** A list of files that will be added as attachments. You can include up to 10 files */
attachment_files?: Intercom.ConversationAttachmentFiles[];
}
export declare namespace AdminReplyConversationRequest {
const MessageType: {
readonly Comment: "comment";
readonly Note: "note";
readonly QuickReply: "quick_reply";
};
type MessageType = (typeof MessageType)[keyof typeof MessageType];
}