UNPKG

intercom-client

Version:

[![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-Built%20with%20Fern-brightgreen)](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2Fintercom%2Fintercom-node) [![npm shield](ht

35 lines (34 loc) 1.17 kB
/** * This file was auto-generated by Fern from our API Definition. */ /** * Message are how you reach out to contacts in Intercom. They are created when an admin sends an outbound message to a contact. */ export interface Message { /** The type of the message */ type: string; /** The id representing the message. */ id: string; /** The time the conversation was created. */ created_at: number; /** The subject of the message. Only present if message_type: email. */ subject: string; /** The message body, which may contain HTML. */ body: string; /** The type of message that was sent. Can be email, inapp, facebook or twitter. */ message_type: Message.MessageType; /** The associated conversation_id */ conversation_id: string; } export declare namespace Message { /** * The type of message that was sent. Can be email, inapp, facebook or twitter. */ type MessageType = "email" | "inapp" | "facebook" | "twitter"; const MessageType: { readonly Email: "email"; readonly Inapp: "inapp"; readonly Facebook: "facebook"; readonly Twitter: "twitter"; }; }