/** * openfilz-api * API for Document Management System * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import type { Configuration } from '../configuration'; import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; import { type RequestArgs, BaseAPI } from '../base'; import type { AiConnectionTestResult } from '../models'; import type { AiModelsResponse } from '../models'; import type { AiSettingsResponse } from '../models'; import type { ListAiModelsRequest } from '../models'; import type { SaveAiSettingsRequest } from '../models'; /** * AISettingsApi - axios parameter creator */ export declare const AISettingsApiAxiosParamCreator: (configuration?: Configuration) => { /** * Remove my chat-LLM override and go back to the server default model. * @summary Reset my AI settings * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteSettings: (options?: RawAxiosRequestConfig) => Promise; /** * Current user\'s chat-LLM override. The API key is never returned — only hasApiKey and its last characters. * @summary Get my AI settings * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSettings: (options?: RawAxiosRequestConfig) => Promise; /** * Ask the provider which chat models this key can use, so the picker reflects what exists today rather than a list baked into a release. Falls back to a built-in list (source=FALLBACK) when the provider cannot be reached. POST rather than GET because the key travels in the body, never in a query string; omit apiKey to use the stored key. * @summary List the provider\'s chat models * @param {ListAiModelsRequest} listAiModelsRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ listModels: (listAiModelsRequest: ListAiModelsRequest, options?: RawAxiosRequestConfig) => Promise; /** * Set the chat LLM to use for my conversations. Omit apiKey to keep the previously stored key. * @summary Save my AI settings * @param {SaveAiSettingsRequest} saveAiSettingsRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ saveSettings: (saveAiSettingsRequest: SaveAiSettingsRequest, options?: RawAxiosRequestConfig) => Promise; /** * Send a minimal completion request with the submitted settings (falls back to the stored key when apiKey is omitted). * @summary Test AI provider connection * @param {SaveAiSettingsRequest} saveAiSettingsRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ testConnection: (saveAiSettingsRequest: SaveAiSettingsRequest, options?: RawAxiosRequestConfig) => Promise; }; /** * AISettingsApi - functional programming interface */ export declare const AISettingsApiFp: (configuration?: Configuration) => { /** * Remove my chat-LLM override and go back to the server default model. * @summary Reset my AI settings * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteSettings(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Current user\'s chat-LLM override. The API key is never returned — only hasApiKey and its last characters. * @summary Get my AI settings * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSettings(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Ask the provider which chat models this key can use, so the picker reflects what exists today rather than a list baked into a release. Falls back to a built-in list (source=FALLBACK) when the provider cannot be reached. POST rather than GET because the key travels in the body, never in a query string; omit apiKey to use the stored key. * @summary List the provider\'s chat models * @param {ListAiModelsRequest} listAiModelsRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ listModels(listAiModelsRequest: ListAiModelsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Set the chat LLM to use for my conversations. Omit apiKey to keep the previously stored key. * @summary Save my AI settings * @param {SaveAiSettingsRequest} saveAiSettingsRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ saveSettings(saveAiSettingsRequest: SaveAiSettingsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Send a minimal completion request with the submitted settings (falls back to the stored key when apiKey is omitted). * @summary Test AI provider connection * @param {SaveAiSettingsRequest} saveAiSettingsRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ testConnection(saveAiSettingsRequest: SaveAiSettingsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; }; /** * AISettingsApi - factory interface */ export declare const AISettingsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { /** * Remove my chat-LLM override and go back to the server default model. * @summary Reset my AI settings * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteSettings(options?: RawAxiosRequestConfig): AxiosPromise; /** * Current user\'s chat-LLM override. The API key is never returned — only hasApiKey and its last characters. * @summary Get my AI settings * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSettings(options?: RawAxiosRequestConfig): AxiosPromise; /** * Ask the provider which chat models this key can use, so the picker reflects what exists today rather than a list baked into a release. Falls back to a built-in list (source=FALLBACK) when the provider cannot be reached. POST rather than GET because the key travels in the body, never in a query string; omit apiKey to use the stored key. * @summary List the provider\'s chat models * @param {ListAiModelsRequest} listAiModelsRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ listModels(listAiModelsRequest: ListAiModelsRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Set the chat LLM to use for my conversations. Omit apiKey to keep the previously stored key. * @summary Save my AI settings * @param {SaveAiSettingsRequest} saveAiSettingsRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ saveSettings(saveAiSettingsRequest: SaveAiSettingsRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Send a minimal completion request with the submitted settings (falls back to the stored key when apiKey is omitted). * @summary Test AI provider connection * @param {SaveAiSettingsRequest} saveAiSettingsRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ testConnection(saveAiSettingsRequest: SaveAiSettingsRequest, options?: RawAxiosRequestConfig): AxiosPromise; }; /** * AISettingsApi - object-oriented interface */ export declare class AISettingsApi extends BaseAPI { /** * Remove my chat-LLM override and go back to the server default model. * @summary Reset my AI settings * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteSettings(options?: RawAxiosRequestConfig): Promise>; /** * Current user\'s chat-LLM override. The API key is never returned — only hasApiKey and its last characters. * @summary Get my AI settings * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSettings(options?: RawAxiosRequestConfig): Promise>; /** * Ask the provider which chat models this key can use, so the picker reflects what exists today rather than a list baked into a release. Falls back to a built-in list (source=FALLBACK) when the provider cannot be reached. POST rather than GET because the key travels in the body, never in a query string; omit apiKey to use the stored key. * @summary List the provider\'s chat models * @param {ListAiModelsRequest} listAiModelsRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ listModels(listAiModelsRequest: ListAiModelsRequest, options?: RawAxiosRequestConfig): Promise>; /** * Set the chat LLM to use for my conversations. Omit apiKey to keep the previously stored key. * @summary Save my AI settings * @param {SaveAiSettingsRequest} saveAiSettingsRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ saveSettings(saveAiSettingsRequest: SaveAiSettingsRequest, options?: RawAxiosRequestConfig): Promise>; /** * Send a minimal completion request with the submitted settings (falls back to the stored key when apiKey is omitted). * @summary Test AI provider connection * @param {SaveAiSettingsRequest} saveAiSettingsRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ testConnection(saveAiSettingsRequest: SaveAiSettingsRequest, options?: RawAxiosRequestConfig): Promise>; }