intercom-client
Version:
Official Node bindings to the Intercom API
35 lines (34 loc) • 1.17 kB
TypeScript
/**
* 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";
};
}