/** * This file was auto-generated by Fern from our API Definition. */ import * as environments from "../../../../environments"; import * as core from "../../../../core"; import * as Vectara from "../../../index"; export declare namespace QueryHistory { interface Options { environment?: core.Supplier; token?: core.Supplier; /** Override the x-api-key header */ apiKey?: core.Supplier; fetcher?: core.FetchFunction; } interface RequestOptions { /** The maximum time to wait for a response in seconds. */ timeoutInSeconds?: number; /** The number of times to retry the request. Defaults to 2. */ maxRetries?: number; /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the x-api-key header */ apiKey?: string | undefined; /** Additional headers to include in the request. */ headers?: Record; } } export declare class QueryHistory { protected readonly _options: QueryHistory.Options; constructor(_options?: QueryHistory.Options); /** * Retrieve a detailed history of previously executed query. * * @param {string} queryId - The ID of the query history * @param {Vectara.GetQueryHistoryRequest} request * @param {QueryHistory.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Vectara.ForbiddenError} * @throws {@link Vectara.NotFoundError} * * @example * await client.queryHistory.getQueryHistory("query_id") */ getQueryHistory(queryId: string, request?: Vectara.GetQueryHistoryRequest, requestOptions?: QueryHistory.RequestOptions): Promise; /** * Retrieve query histories. * * @param {Vectara.GetQueryHistoriesRequest} request * @param {QueryHistory.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Vectara.BadRequestError} * @throws {@link Vectara.ForbiddenError} * * @example * await client.queryHistory.getQueryHistories() */ getQueryHistories(request?: Vectara.GetQueryHistoriesRequest, requestOptions?: QueryHistory.RequestOptions): Promise; protected _getAuthorizationHeader(): Promise; }