intercom-client
Version:
Official Node bindings to the Intercom API
18 lines (17 loc) • 487 B
text/typescript
/**
* A recipient of a message
*/
export interface Recipient {
/** The role associated to the contact - `user` or `lead`. */
type: Recipient.Type;
/** The identifier for the contact which is given by Intercom. */
id: string;
}
export declare namespace Recipient {
/** The role associated to the contact - `user` or `lead`. */
const Type: {
readonly User: "user";
readonly Lead: "lead";
};
type Type = (typeof Type)[keyof typeof Type];
}