/** * This file was auto-generated by Fern from our API Definition. */ import * as environments from "./environments.js"; import * as core from "./core/index.js"; import { Upload } from "./api/resources/upload/client/Client.js"; import { Tenant } from "./api/resources/tenant/client/Client.js"; import { Key } from "./api/resources/key/client/Client.js"; import { Embeddings } from "./api/resources/embeddings/client/Client.js"; import { Fetch } from "./api/resources/fetch/client/Client.js"; import { Data } from "./api/resources/data/client/Client.js"; import { Recall } from "./api/resources/recall/client/Client.js"; export declare namespace CortexAIClient { interface Options { environment?: core.Supplier; /** Specify a custom URL to connect the client to. */ baseUrl?: core.Supplier; token?: core.Supplier; /** Additional headers to include in requests. */ headers?: Record | undefined>; } 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; /** Additional query string parameters to include in the request. */ queryParams?: Record; /** Additional headers to include in the request. */ headers?: Record | undefined>; } } export declare class CortexAIClient { protected readonly _options: CortexAIClient.Options; protected _upload: Upload | undefined; protected _tenant: Tenant | undefined; protected _key: Key | undefined; protected _embeddings: Embeddings | undefined; protected _fetch: Fetch | undefined; protected _data: Data | undefined; protected _recall: Recall | undefined; constructor(_options?: CortexAIClient.Options); get upload(): Upload; get tenant(): Tenant; get key(): Key; get embeddings(): Embeddings; get fetch(): Fetch; get data(): Data; get recall(): Recall; /** * @param {CortexAIClient.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.metricsMetricsGet() */ metricsMetricsGet(requestOptions?: CortexAIClient.RequestOptions): core.HttpResponsePromise; private __metricsMetricsGet; protected _getAuthorizationHeader(): Promise; }