// This file was auto-generated by Fern from our API Definition.

/**
 * Search using Intercoms Search APIs with a single filter.
 */
export interface SingleFilterSearchRequest {
    /** The accepted field that you want to search on. */
    field?: string;
    /** The accepted operators you can use to define how you want to search for the value. */
    operator?: SingleFilterSearchRequest.Operator;
    /** The value that you want to search on. */
    value?: SingleFilterSearchRequest.Value;
}

export namespace SingleFilterSearchRequest {
    /** The accepted operators you can use to define how you want to search for the value. */
    export const Operator = {
        Equals: "=",
        NotEquals: "!=",
        In: "IN",
        NotIn: "NIN",
        LessThan: "<",
        GreaterThan: ">",
        Contains: "~",
        DoesNotContain: "!~",
        StartsWith: "^",
        EndsWith: "$",
    } as const;
    export type Operator = (typeof Operator)[keyof typeof Operator];
    /**
     * The value that you want to search on.
     */
    export type Value = string | number | (string | number)[];
}
