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

47 lines (46 loc) 1.16 kB
/** * 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"; }; } }