// 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 namespace Segment {
    /** Type of the contact: contact (lead) or user. */
    export const PersonType = {
        Contact: "contact",
        User: "user",
    } as const;
    export type PersonType = (typeof PersonType)[keyof typeof PersonType];
}
