intercom-client
Version:
Official Node bindings to the Intercom API
31 lines (30 loc) • 1.01 kB
TypeScript
/**
* This file was auto-generated by Fern from our API Definition.
*/
import * as Intercom from "../index";
/**
* You can create a Ticket
*/
export interface CreateTicketRequest {
/** The ID of the type of ticket you want to create */
ticket_type_id: string;
/** The list of contacts (users or leads) affected by this ticket. Currently only one is allowed */
contacts: CreateTicketRequest.Contacts.Item[];
/** The ID of the company that the ticket is associated with. The ID that you set upon company creation. */
company_id?: string;
/** The time the ticket was created. If not provided, the current time will be used. */
created_at?: number;
ticket_attributes?: Intercom.TicketRequestCustomAttributes;
}
export declare namespace CreateTicketRequest {
type Contacts = Contacts.Item[];
namespace Contacts {
type Item = {
id: string;
} | {
external_id: string;
} | {
email: string;
};
}
}