intercom-client
Version:
Official Node bindings to the Intercom API
33 lines (32 loc) • 985 B
TypeScript
/**
* This file was auto-generated by Fern from our API Definition.
*/
/**
* A segment is a group of your contacts defined by the rules that you set.
*/
export interface Segment {
/** The type of object. */
type: "segment";
/** The unique identifier representing the segment. */
id: string;
/** The name of the segment. */
name: string;
/** The time the segment was created. */
created_at: number;
/** The time the segment was updated. */
updated_at?: number;
/** Type of the contact: contact (lead) or user. */
person_type: Segment.PersonType;
/** The number of items in the user segment. It's returned when `include_count=true` is included in the request. */
count?: number;
}
export declare namespace Segment {
/**
* Type of the contact: contact (lead) or user.
*/
type PersonType = "contact" | "user";
const PersonType: {
readonly Contact: "contact";
readonly User: "user";
};
}