/** * 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 { AiChatConversation } from '../models'; import type { AiChatRequest } from '../models'; import type { AiChatResponse } from '../models'; import type { ReorganizationApplyRequest } from '../models'; import type { ReorganizationApplyResult } from '../models'; import type { ReorganizationByKindRequest } from '../models'; import type { ReorganizationPlanView } from '../models'; /** * AIChatApi - axios parameter creator */ export declare const AIChatApiAxiosParamCreator: (configuration?: Configuration) => { /** * Creates the missing folders and moves the selected items (all applicable items when none is given). * @summary Apply a proposed reorganisation plan * @param {string} planId * @param {ReorganizationApplyRequest} [reorganizationApplyRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ apply: (planId: string, reorganizationApplyRequest?: ReorganizationApplyRequest, options?: RawAxiosRequestConfig) => Promise; /** * Send a message and receive a streaming response. The AI can answer questions about documents, search, summarize, and reorganize files. * @summary Chat with AI assistant * @param {AiChatRequest} aiChatRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ chat: (aiChatRequest: AiChatRequest, options?: RawAxiosRequestConfig) => Promise; /** * Delete a conversation and all its messages * @summary Delete conversation * @param {string} conversationId * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteConversation: (conversationId: string, options?: RawAxiosRequestConfig) => Promise; /** * * @summary Discard a proposed reorganisation plan * @param {string} planId * @param {*} [options] Override http request option. * @throws {RequiredError} */ discard: (planId: string, options?: RawAxiosRequestConfig) => Promise; /** * The plan\'s items (what moves where), which are applicable, and its status. * @summary Get a reorganisation plan proposed by the AI assistant * @param {string} planId * @param {*} [options] Override http request option. * @throws {RequiredError} */ get3: (planId: string, options?: RawAxiosRequestConfig) => Promise; /** * Get all messages in a conversation * @summary Get conversation history * @param {string} conversationId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getConversationHistory: (conversationId: string, options?: RawAxiosRequestConfig) => Promise; /** * Get all AI chat conversations for the current user * @summary List conversations * @param {*} [options] Override http request option. * @throws {RequiredError} */ listConversations: (options?: RawAxiosRequestConfig) => Promise; /** * Every folder of the scope holding documents of several kinds (their insight category) gets one sub-folder per kind, named like the existing folders (Invoices / Factures…) or else in the request\'s language, and the files move there. The answer is a stored plan to review and apply; a plan without an id means nothing needs splitting. * @summary Propose a reorganisation by kind of document — no model involved * @param {ReorganizationByKindRequest} [reorganizationByKindRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ proposeByKind: (reorganizationByKindRequest?: ReorganizationByKindRequest, options?: RawAxiosRequestConfig) => Promise; }; /** * AIChatApi - functional programming interface */ export declare const AIChatApiFp: (configuration?: Configuration) => { /** * Creates the missing folders and moves the selected items (all applicable items when none is given). * @summary Apply a proposed reorganisation plan * @param {string} planId * @param {ReorganizationApplyRequest} [reorganizationApplyRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ apply(planId: string, reorganizationApplyRequest?: ReorganizationApplyRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Send a message and receive a streaming response. The AI can answer questions about documents, search, summarize, and reorganize files. * @summary Chat with AI assistant * @param {AiChatRequest} aiChatRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ chat(aiChatRequest: AiChatRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>>; /** * Delete a conversation and all its messages * @summary Delete conversation * @param {string} conversationId * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteConversation(conversationId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary Discard a proposed reorganisation plan * @param {string} planId * @param {*} [options] Override http request option. * @throws {RequiredError} */ discard(planId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * The plan\'s items (what moves where), which are applicable, and its status. * @summary Get a reorganisation plan proposed by the AI assistant * @param {string} planId * @param {*} [options] Override http request option. * @throws {RequiredError} */ get3(planId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Get all messages in a conversation * @summary Get conversation history * @param {string} conversationId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getConversationHistory(conversationId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>>; /** * Get all AI chat conversations for the current user * @summary List conversations * @param {*} [options] Override http request option. * @throws {RequiredError} */ listConversations(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>>; /** * Every folder of the scope holding documents of several kinds (their insight category) gets one sub-folder per kind, named like the existing folders (Invoices / Factures…) or else in the request\'s language, and the files move there. The answer is a stored plan to review and apply; a plan without an id means nothing needs splitting. * @summary Propose a reorganisation by kind of document — no model involved * @param {ReorganizationByKindRequest} [reorganizationByKindRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ proposeByKind(reorganizationByKindRequest?: ReorganizationByKindRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; }; /** * AIChatApi - factory interface */ export declare const AIChatApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { /** * Creates the missing folders and moves the selected items (all applicable items when none is given). * @summary Apply a proposed reorganisation plan * @param {string} planId * @param {ReorganizationApplyRequest} [reorganizationApplyRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ apply(planId: string, reorganizationApplyRequest?: ReorganizationApplyRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Send a message and receive a streaming response. The AI can answer questions about documents, search, summarize, and reorganize files. * @summary Chat with AI assistant * @param {AiChatRequest} aiChatRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ chat(aiChatRequest: AiChatRequest, options?: RawAxiosRequestConfig): AxiosPromise>; /** * Delete a conversation and all its messages * @summary Delete conversation * @param {string} conversationId * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteConversation(conversationId: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Discard a proposed reorganisation plan * @param {string} planId * @param {*} [options] Override http request option. * @throws {RequiredError} */ discard(planId: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * The plan\'s items (what moves where), which are applicable, and its status. * @summary Get a reorganisation plan proposed by the AI assistant * @param {string} planId * @param {*} [options] Override http request option. * @throws {RequiredError} */ get3(planId: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * Get all messages in a conversation * @summary Get conversation history * @param {string} conversationId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getConversationHistory(conversationId: string, options?: RawAxiosRequestConfig): AxiosPromise>; /** * Get all AI chat conversations for the current user * @summary List conversations * @param {*} [options] Override http request option. * @throws {RequiredError} */ listConversations(options?: RawAxiosRequestConfig): AxiosPromise>; /** * Every folder of the scope holding documents of several kinds (their insight category) gets one sub-folder per kind, named like the existing folders (Invoices / Factures…) or else in the request\'s language, and the files move there. The answer is a stored plan to review and apply; a plan without an id means nothing needs splitting. * @summary Propose a reorganisation by kind of document — no model involved * @param {ReorganizationByKindRequest} [reorganizationByKindRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ proposeByKind(reorganizationByKindRequest?: ReorganizationByKindRequest, options?: RawAxiosRequestConfig): AxiosPromise; }; /** * AIChatApi - object-oriented interface */ export declare class AIChatApi extends BaseAPI { /** * Creates the missing folders and moves the selected items (all applicable items when none is given). * @summary Apply a proposed reorganisation plan * @param {string} planId * @param {ReorganizationApplyRequest} [reorganizationApplyRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ apply(planId: string, reorganizationApplyRequest?: ReorganizationApplyRequest, options?: RawAxiosRequestConfig): Promise>; /** * Send a message and receive a streaming response. The AI can answer questions about documents, search, summarize, and reorganize files. * @summary Chat with AI assistant * @param {AiChatRequest} aiChatRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ chat(aiChatRequest: AiChatRequest, options?: RawAxiosRequestConfig): Promise>; /** * Delete a conversation and all its messages * @summary Delete conversation * @param {string} conversationId * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteConversation(conversationId: string, options?: RawAxiosRequestConfig): Promise>; /** * * @summary Discard a proposed reorganisation plan * @param {string} planId * @param {*} [options] Override http request option. * @throws {RequiredError} */ discard(planId: string, options?: RawAxiosRequestConfig): Promise>; /** * The plan\'s items (what moves where), which are applicable, and its status. * @summary Get a reorganisation plan proposed by the AI assistant * @param {string} planId * @param {*} [options] Override http request option. * @throws {RequiredError} */ get3(planId: string, options?: RawAxiosRequestConfig): Promise>; /** * Get all messages in a conversation * @summary Get conversation history * @param {string} conversationId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getConversationHistory(conversationId: string, options?: RawAxiosRequestConfig): Promise>; /** * Get all AI chat conversations for the current user * @summary List conversations * @param {*} [options] Override http request option. * @throws {RequiredError} */ listConversations(options?: RawAxiosRequestConfig): Promise>; /** * Every folder of the scope holding documents of several kinds (their insight category) gets one sub-folder per kind, named like the existing folders (Invoices / Factures…) or else in the request\'s language, and the files move there. The answer is a stored plan to review and apply; a plan without an id means nothing needs splitting. * @summary Propose a reorganisation by kind of document — no model involved * @param {ReorganizationByKindRequest} [reorganizationByKindRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ proposeByKind(reorganizationByKindRequest?: ReorganizationByKindRequest, options?: RawAxiosRequestConfig): Promise>; }