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

import type * as Vapi from "../index.js";

export interface JsonQueryOnCallTableWithStringTypeColumn {
    /** This is the type of query. Only allowed type is "vapiql-json". */
    type: Vapi.JsonQueryOnCallTableWithStringTypeColumnType;
    /** This is the table that will be queried. */
    table: Vapi.JsonQueryOnCallTableWithStringTypeColumnTable;
    /**
     * This is the filters to apply to the insight.
     * The discriminator automatically selects the correct filter type based on column and operator.
     */
    filters?: Vapi.JsonQueryOnCallTableWithStringTypeColumnFiltersItem[] | undefined;
    /**
     * This is the column that will be queried in the selected table.
     * Available columns depend on the selected table.
     * String Type columns are columns where the rows store String data
     */
    column: Vapi.JsonQueryOnCallTableWithStringTypeColumnColumn;
    /**
     * This is the aggregation operation to perform on the column.
     * When the column is a string type, the operation must be "count".
     */
    operation: Vapi.JsonQueryOnCallTableWithStringTypeColumnOperation;
    /**
     * This is the name of the query.
     * It will be used to label the query in the insight board on the UI.
     */
    name?: string | undefined;
}
