intercom-client
Version:
[](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2Fintercom%2Fintercom-node) [ • 1.16 kB
TypeScript
/**
* This file was auto-generated by Fern from our API Definition.
*/
/**
* @example
* {
* from: {
* type: "user",
* id: "667d60d18a68186f43bafddd"
* },
* body: "Hello there"
* }
*
* @example
* {
* from: {
* type: "user",
* id: "123_doesnt_exist"
* },
* body: "Hello there"
* }
*/
export interface CreateConversationRequest {
from: CreateConversationRequest.From;
/** The content of the message. HTML is not supported. */
body: string;
}
export declare namespace CreateConversationRequest {
interface From {
/** The role associated to the contact - user or lead. */
type: From.Type;
/** The identifier for the contact which is given by Intercom. */
id: string;
}
namespace From {
/**
* The role associated to the contact - user or lead.
*/
type Type = "lead" | "user" | "contact";
const Type: {
readonly Lead: "lead";
readonly User: "user";
readonly Contact: "contact";
};
}
}