// (C) 2024-2026 GoodData Corporation
import globalAxios from 'axios';
// @ts-ignore
import { DUMMY_BASE_URL, assertParamExists, setSearchParams, toPathString, createRequestFunction } from './common.js';
// @ts-ignore
import { BASE_PATH, BaseAPI } from './base.js';
/**
 * Date granularity for date filters.
 */
export const AiDateGranularity = {
    DAY: 'DAY',
    WEEK: 'WEEK',
    MONTH: 'MONTH',
    QUARTER: 'QUARTER',
    YEAR: 'YEAR'
};
export const AiObjectType = {
    UNIDENTIFIED: 'unidentified',
    WORKSPACE: 'workspace',
    DATASET: 'dataset',
    DATE: 'date',
    FACT: 'fact',
    METRIC: 'metric',
    ATTRIBUTE: 'attribute',
    DATE_ATTRIBUTE: 'date_attribute',
    LABEL: 'label',
    VISUALIZATION: 'visualization',
    DASHBOARD: 'dashboard',
    FILTER_CONTEXT: 'filter_context'
};
// ConversationsAi FP - ConversationsAiAxiosParamCreator
/**
 *
 * @summary Delete Conversation
 * @param {string} workspaceId
 * @param {string} conversationId
 * @param {*} [options] Override http request option.
 * @param {Configuration} [configuration] Optional configuration.
 * @throws {RequiredError}
 */
export async function ConversationsAiAxiosParamCreator_DeleteConversationApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdDelete(workspaceId, conversationId, options = {}, configuration) {
    // verify required parameter 'workspaceId' is not null or undefined
    assertParamExists('deleteConversationApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdDelete', 'workspaceId', workspaceId);
    // verify required parameter 'conversationId' is not null or undefined
    assertParamExists('deleteConversationApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdDelete', 'conversationId', conversationId);
    const localVarPath = `/api/v1/ai/workspaces/{workspace_id}/chat/conversations/{conversation_id}`
        .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
        .replace(`{${"conversation_id"}}`, encodeURIComponent(String(conversationId)));
    // use dummy base URL string because the URL constructor only accepts absolute URLs.
    const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
    let baseOptions;
    if (configuration) {
        baseOptions = configuration.baseOptions;
    }
    const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
    const localVarHeaderParameter = {};
    const localVarQueryParameter = {};
    setSearchParams(localVarUrlObj, localVarQueryParameter);
    const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
    localVarRequestOptions.headers = {
        ...localVarHeaderParameter,
        ...headersFromBaseOptions,
        ...options.headers,
    };
    return {
        url: toPathString(localVarUrlObj),
        options: localVarRequestOptions,
    };
}
// ConversationsAi FP - ConversationsAiAxiosParamCreator
/**
 *
 * @summary Get Conversation
 * @param {string} workspaceId
 * @param {string} conversationId
 * @param {*} [options] Override http request option.
 * @param {Configuration} [configuration] Optional configuration.
 * @throws {RequiredError}
 */
export async function ConversationsAiAxiosParamCreator_GetConversationApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdGet(workspaceId, conversationId, options = {}, configuration) {
    // verify required parameter 'workspaceId' is not null or undefined
    assertParamExists('getConversationApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdGet', 'workspaceId', workspaceId);
    // verify required parameter 'conversationId' is not null or undefined
    assertParamExists('getConversationApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdGet', 'conversationId', conversationId);
    const localVarPath = `/api/v1/ai/workspaces/{workspace_id}/chat/conversations/{conversation_id}`
        .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
        .replace(`{${"conversation_id"}}`, encodeURIComponent(String(conversationId)));
    // use dummy base URL string because the URL constructor only accepts absolute URLs.
    const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
    let baseOptions;
    if (configuration) {
        baseOptions = configuration.baseOptions;
    }
    const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
    const localVarHeaderParameter = {};
    const localVarQueryParameter = {};
    setSearchParams(localVarUrlObj, localVarQueryParameter);
    const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
    localVarRequestOptions.headers = {
        ...localVarHeaderParameter,
        ...headersFromBaseOptions,
        ...options.headers,
    };
    return {
        url: toPathString(localVarUrlObj),
        options: localVarRequestOptions,
    };
}
// ConversationsAi FP - ConversationsAiAxiosParamCreator
/**
 *
 * @summary Get Conversations
 * @param {string} workspaceId
 * @param {*} [options] Override http request option.
 * @param {Configuration} [configuration] Optional configuration.
 * @throws {RequiredError}
 */
export async function ConversationsAiAxiosParamCreator_GetConversationsApiV1AiWorkspacesWorkspaceIdChatConversationsGet(workspaceId, options = {}, configuration) {
    // verify required parameter 'workspaceId' is not null or undefined
    assertParamExists('getConversationsApiV1AiWorkspacesWorkspaceIdChatConversationsGet', 'workspaceId', workspaceId);
    const localVarPath = `/api/v1/ai/workspaces/{workspace_id}/chat/conversations`
        .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
    // use dummy base URL string because the URL constructor only accepts absolute URLs.
    const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
    let baseOptions;
    if (configuration) {
        baseOptions = configuration.baseOptions;
    }
    const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
    const localVarHeaderParameter = {};
    const localVarQueryParameter = {};
    setSearchParams(localVarUrlObj, localVarQueryParameter);
    const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
    localVarRequestOptions.headers = {
        ...localVarHeaderParameter,
        ...headersFromBaseOptions,
        ...options.headers,
    };
    return {
        url: toPathString(localVarUrlObj),
        options: localVarRequestOptions,
    };
}
// ConversationsAi FP - ConversationsAiAxiosParamCreator
/**
 *
 * @summary Post Conversations
 * @param {string} workspaceId
 * @param {*} [options] Override http request option.
 * @param {Configuration} [configuration] Optional configuration.
 * @throws {RequiredError}
 */
export async function ConversationsAiAxiosParamCreator_PostConversationsApiV1AiWorkspacesWorkspaceIdChatConversationsPost(workspaceId, options = {}, configuration) {
    // verify required parameter 'workspaceId' is not null or undefined
    assertParamExists('postConversationsApiV1AiWorkspacesWorkspaceIdChatConversationsPost', 'workspaceId', workspaceId);
    const localVarPath = `/api/v1/ai/workspaces/{workspace_id}/chat/conversations`
        .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
    // use dummy base URL string because the URL constructor only accepts absolute URLs.
    const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
    let baseOptions;
    if (configuration) {
        baseOptions = configuration.baseOptions;
    }
    const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
    const localVarHeaderParameter = {};
    const localVarQueryParameter = {};
    setSearchParams(localVarUrlObj, localVarQueryParameter);
    const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
    localVarRequestOptions.headers = {
        ...localVarHeaderParameter,
        ...headersFromBaseOptions,
        ...options.headers,
    };
    return {
        url: toPathString(localVarUrlObj),
        options: localVarRequestOptions,
    };
}
// ConversationsAi Api FP
/**
 *
 * @summary Delete Conversation
 * @param {AxiosInstance} axios Axios instance.
 * @param {string} basePath Base path.
 * @param {ConversationsAiDeleteConversationApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdDeleteRequest} requestParameters Request parameters.
 * @param {*} [options] Override http request option.
 * @param {Configuration} [configuration] Optional configuration.
 * @throws {RequiredError}
 */
export async function ConversationsAi_DeleteConversationApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdDelete(axios, basePath, requestParameters, options, configuration) {
    const localVarAxiosArgs = await ConversationsAiAxiosParamCreator_DeleteConversationApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdDelete(requestParameters.workspaceId, requestParameters.conversationId, options || {}, configuration);
    return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
}
// ConversationsAi Api FP
/**
 *
 * @summary Get Conversation
 * @param {AxiosInstance} axios Axios instance.
 * @param {string} basePath Base path.
 * @param {ConversationsAiGetConversationApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdGetRequest} requestParameters Request parameters.
 * @param {*} [options] Override http request option.
 * @param {Configuration} [configuration] Optional configuration.
 * @throws {RequiredError}
 */
export async function ConversationsAi_GetConversationApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdGet(axios, basePath, requestParameters, options, configuration) {
    const localVarAxiosArgs = await ConversationsAiAxiosParamCreator_GetConversationApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdGet(requestParameters.workspaceId, requestParameters.conversationId, options || {}, configuration);
    return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
}
// ConversationsAi Api FP
/**
 *
 * @summary Get Conversations
 * @param {AxiosInstance} axios Axios instance.
 * @param {string} basePath Base path.
 * @param {ConversationsAiGetConversationsApiV1AiWorkspacesWorkspaceIdChatConversationsGetRequest} requestParameters Request parameters.
 * @param {*} [options] Override http request option.
 * @param {Configuration} [configuration] Optional configuration.
 * @throws {RequiredError}
 */
export async function ConversationsAi_GetConversationsApiV1AiWorkspacesWorkspaceIdChatConversationsGet(axios, basePath, requestParameters, options, configuration) {
    const localVarAxiosArgs = await ConversationsAiAxiosParamCreator_GetConversationsApiV1AiWorkspacesWorkspaceIdChatConversationsGet(requestParameters.workspaceId, options || {}, configuration);
    return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
}
// ConversationsAi Api FP
/**
 *
 * @summary Post Conversations
 * @param {AxiosInstance} axios Axios instance.
 * @param {string} basePath Base path.
 * @param {ConversationsAiPostConversationsApiV1AiWorkspacesWorkspaceIdChatConversationsPostRequest} requestParameters Request parameters.
 * @param {*} [options] Override http request option.
 * @param {Configuration} [configuration] Optional configuration.
 * @throws {RequiredError}
 */
export async function ConversationsAi_PostConversationsApiV1AiWorkspacesWorkspaceIdChatConversationsPost(axios, basePath, requestParameters, options, configuration) {
    const localVarAxiosArgs = await ConversationsAiAxiosParamCreator_PostConversationsApiV1AiWorkspacesWorkspaceIdChatConversationsPost(requestParameters.workspaceId, options || {}, configuration);
    return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
}
/**
 * ConversationsAi - object-oriented interface
 * @export
 * @class ConversationsAi
 * @extends {BaseAPI}
 */
export class ConversationsAi extends BaseAPI {
    /**
     *
     * @summary Delete Conversation
     * @param {ConversationsAiDeleteConversationApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdDeleteRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof ConversationsAi
     */
    deleteConversationApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdDelete(requestParameters, options) {
        return ConversationsAi_DeleteConversationApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdDelete(this.axios, this.basePath, requestParameters, options, this.configuration);
    }
    /**
     *
     * @summary Get Conversation
     * @param {ConversationsAiGetConversationApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdGetRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof ConversationsAi
     */
    getConversationApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdGet(requestParameters, options) {
        return ConversationsAi_GetConversationApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdGet(this.axios, this.basePath, requestParameters, options, this.configuration);
    }
    /**
     *
     * @summary Get Conversations
     * @param {ConversationsAiGetConversationsApiV1AiWorkspacesWorkspaceIdChatConversationsGetRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof ConversationsAi
     */
    getConversationsApiV1AiWorkspacesWorkspaceIdChatConversationsGet(requestParameters, options) {
        return ConversationsAi_GetConversationsApiV1AiWorkspacesWorkspaceIdChatConversationsGet(this.axios, this.basePath, requestParameters, options, this.configuration);
    }
    /**
     *
     * @summary Post Conversations
     * @param {ConversationsAiPostConversationsApiV1AiWorkspacesWorkspaceIdChatConversationsPostRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof ConversationsAi
     */
    postConversationsApiV1AiWorkspacesWorkspaceIdChatConversationsPost(requestParameters, options) {
        return ConversationsAi_PostConversationsApiV1AiWorkspacesWorkspaceIdChatConversationsPost(this.axios, this.basePath, requestParameters, options, this.configuration);
    }
}
// ItemsAi FP - ItemsAiAxiosParamCreator
/**
 *
 * @summary Get Conversation Items
 * @param {string} workspaceId
 * @param {string} conversationId
 * @param {*} [options] Override http request option.
 * @param {Configuration} [configuration] Optional configuration.
 * @throws {RequiredError}
 */
export async function ItemsAiAxiosParamCreator_GetConversationItemsApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdItemsGet(workspaceId, conversationId, options = {}, configuration) {
    // verify required parameter 'workspaceId' is not null or undefined
    assertParamExists('getConversationItemsApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdItemsGet', 'workspaceId', workspaceId);
    // verify required parameter 'conversationId' is not null or undefined
    assertParamExists('getConversationItemsApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdItemsGet', 'conversationId', conversationId);
    const localVarPath = `/api/v1/ai/workspaces/{workspace_id}/chat/conversations/{conversation_id}/items`
        .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
        .replace(`{${"conversation_id"}}`, encodeURIComponent(String(conversationId)));
    // use dummy base URL string because the URL constructor only accepts absolute URLs.
    const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
    let baseOptions;
    if (configuration) {
        baseOptions = configuration.baseOptions;
    }
    const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
    const localVarHeaderParameter = {};
    const localVarQueryParameter = {};
    setSearchParams(localVarUrlObj, localVarQueryParameter);
    const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
    localVarRequestOptions.headers = {
        ...localVarHeaderParameter,
        ...headersFromBaseOptions,
        ...options.headers,
    };
    return {
        url: toPathString(localVarUrlObj),
        options: localVarRequestOptions,
    };
}
// ItemsAi Api FP
/**
 *
 * @summary Get Conversation Items
 * @param {AxiosInstance} axios Axios instance.
 * @param {string} basePath Base path.
 * @param {ItemsAiGetConversationItemsApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdItemsGetRequest} requestParameters Request parameters.
 * @param {*} [options] Override http request option.
 * @param {Configuration} [configuration] Optional configuration.
 * @throws {RequiredError}
 */
export async function ItemsAi_GetConversationItemsApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdItemsGet(axios, basePath, requestParameters, options, configuration) {
    const localVarAxiosArgs = await ItemsAiAxiosParamCreator_GetConversationItemsApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdItemsGet(requestParameters.workspaceId, requestParameters.conversationId, options || {}, configuration);
    return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
}
/**
 * ItemsAi - object-oriented interface
 * @export
 * @class ItemsAi
 * @extends {BaseAPI}
 */
export class ItemsAi extends BaseAPI {
    /**
     *
     * @summary Get Conversation Items
     * @param {ItemsAiGetConversationItemsApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdItemsGetRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof ItemsAi
     */
    getConversationItemsApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdItemsGet(requestParameters, options) {
        return ItemsAi_GetConversationItemsApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdItemsGet(this.axios, this.basePath, requestParameters, options, this.configuration);
    }
}
// KnowledgeAi FP - KnowledgeAiAxiosParamCreator
/**
 * Download a knowledge document\'s raw file.
 * @summary Download Document
 * @param {string} workspaceId
 * @param {string} filename
 * @param {*} [options] Override http request option.
 * @param {Configuration} [configuration] Optional configuration.
 * @throws {RequiredError}
 */
export async function KnowledgeAiAxiosParamCreator_DownloadDocumentApiV1AiWorkspacesWorkspaceIdKnowledgeDocumentsFilenameDownloadGet(workspaceId, filename, options = {}, configuration) {
    // verify required parameter 'workspaceId' is not null or undefined
    assertParamExists('downloadDocumentApiV1AiWorkspacesWorkspaceIdKnowledgeDocumentsFilenameDownloadGet', 'workspaceId', workspaceId);
    // verify required parameter 'filename' is not null or undefined
    assertParamExists('downloadDocumentApiV1AiWorkspacesWorkspaceIdKnowledgeDocumentsFilenameDownloadGet', 'filename', filename);
    const localVarPath = `/api/v1/ai/workspaces/{workspace_id}/knowledge/documents/{filename}/download`
        .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
        .replace(`{${"filename"}}`, encodeURIComponent(String(filename)));
    // use dummy base URL string because the URL constructor only accepts absolute URLs.
    const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
    let baseOptions;
    if (configuration) {
        baseOptions = configuration.baseOptions;
    }
    const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
    const localVarHeaderParameter = {};
    const localVarQueryParameter = {};
    setSearchParams(localVarUrlObj, localVarQueryParameter);
    const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
    localVarRequestOptions.headers = {
        ...localVarHeaderParameter,
        ...headersFromBaseOptions,
        ...options.headers,
    };
    return {
        url: toPathString(localVarUrlObj),
        options: localVarRequestOptions,
    };
}
// KnowledgeAi FP - KnowledgeAiAxiosParamCreator
/**
 * Upload a new knowledge document. Returns 409 if filename already exists.
 * @summary Upload Document
 * @param {string} workspaceId
 * @param {File} file
 * @param {*} [options] Override http request option.
 * @param {Configuration} [configuration] Optional configuration.
 * @throws {RequiredError}
 */
export async function KnowledgeAiAxiosParamCreator_UploadDocumentApiV1AiWorkspacesWorkspaceIdKnowledgeDocumentsUploadPost(workspaceId, file, options = {}, configuration) {
    // verify required parameter 'workspaceId' is not null or undefined
    assertParamExists('uploadDocumentApiV1AiWorkspacesWorkspaceIdKnowledgeDocumentsUploadPost', 'workspaceId', workspaceId);
    // verify required parameter 'file' is not null or undefined
    assertParamExists('uploadDocumentApiV1AiWorkspacesWorkspaceIdKnowledgeDocumentsUploadPost', 'file', file);
    const localVarPath = `/api/v1/ai/workspaces/{workspace_id}/knowledge/documents/upload`
        .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
    // use dummy base URL string because the URL constructor only accepts absolute URLs.
    const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
    let baseOptions;
    if (configuration) {
        baseOptions = configuration.baseOptions;
    }
    const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
    const localVarHeaderParameter = {};
    const localVarQueryParameter = {};
    const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
    if (file !== undefined) {
        localVarFormParams.append('file', file);
    }
    localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
    setSearchParams(localVarUrlObj, localVarQueryParameter);
    const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
    localVarRequestOptions.headers = {
        ...localVarHeaderParameter,
        ...headersFromBaseOptions,
        ...options.headers,
    };
    localVarRequestOptions.data = localVarFormParams;
    return {
        url: toPathString(localVarUrlObj),
        options: localVarRequestOptions,
    };
}
// KnowledgeAi FP - KnowledgeAiAxiosParamCreator
/**
 * Upload or replace a knowledge document.
 * @summary Upsert Document
 * @param {string} workspaceId
 * @param {File} file
 * @param {*} [options] Override http request option.
 * @param {Configuration} [configuration] Optional configuration.
 * @throws {RequiredError}
 */
export async function KnowledgeAiAxiosParamCreator_UpsertDocumentApiV1AiWorkspacesWorkspaceIdKnowledgeDocumentsUploadPut(workspaceId, file, options = {}, configuration) {
    // verify required parameter 'workspaceId' is not null or undefined
    assertParamExists('upsertDocumentApiV1AiWorkspacesWorkspaceIdKnowledgeDocumentsUploadPut', 'workspaceId', workspaceId);
    // verify required parameter 'file' is not null or undefined
    assertParamExists('upsertDocumentApiV1AiWorkspacesWorkspaceIdKnowledgeDocumentsUploadPut', 'file', file);
    const localVarPath = `/api/v1/ai/workspaces/{workspace_id}/knowledge/documents/upload`
        .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
    // use dummy base URL string because the URL constructor only accepts absolute URLs.
    const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
    let baseOptions;
    if (configuration) {
        baseOptions = configuration.baseOptions;
    }
    const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
    const localVarHeaderParameter = {};
    const localVarQueryParameter = {};
    const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
    if (file !== undefined) {
        localVarFormParams.append('file', file);
    }
    localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
    setSearchParams(localVarUrlObj, localVarQueryParameter);
    const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
    localVarRequestOptions.headers = {
        ...localVarHeaderParameter,
        ...headersFromBaseOptions,
        ...options.headers,
    };
    localVarRequestOptions.data = localVarFormParams;
    return {
        url: toPathString(localVarUrlObj),
        options: localVarRequestOptions,
    };
}
// KnowledgeAi Api FP
/**
 * Download a knowledge document\'s raw file.
 * @summary Download Document
 * @param {AxiosInstance} axios Axios instance.
 * @param {string} basePath Base path.
 * @param {KnowledgeAiDownloadDocumentApiV1AiWorkspacesWorkspaceIdKnowledgeDocumentsFilenameDownloadGetRequest} requestParameters Request parameters.
 * @param {*} [options] Override http request option.
 * @param {Configuration} [configuration] Optional configuration.
 * @throws {RequiredError}
 */
export async function KnowledgeAi_DownloadDocumentApiV1AiWorkspacesWorkspaceIdKnowledgeDocumentsFilenameDownloadGet(axios, basePath, requestParameters, options, configuration) {
    const localVarAxiosArgs = await KnowledgeAiAxiosParamCreator_DownloadDocumentApiV1AiWorkspacesWorkspaceIdKnowledgeDocumentsFilenameDownloadGet(requestParameters.workspaceId, requestParameters.filename, options || {}, configuration);
    return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
}
// KnowledgeAi Api FP
/**
 * Upload a new knowledge document. Returns 409 if filename already exists.
 * @summary Upload Document
 * @param {AxiosInstance} axios Axios instance.
 * @param {string} basePath Base path.
 * @param {KnowledgeAiUploadDocumentApiV1AiWorkspacesWorkspaceIdKnowledgeDocumentsUploadPostRequest} requestParameters Request parameters.
 * @param {*} [options] Override http request option.
 * @param {Configuration} [configuration] Optional configuration.
 * @throws {RequiredError}
 */
export async function KnowledgeAi_UploadDocumentApiV1AiWorkspacesWorkspaceIdKnowledgeDocumentsUploadPost(axios, basePath, requestParameters, options, configuration) {
    const localVarAxiosArgs = await KnowledgeAiAxiosParamCreator_UploadDocumentApiV1AiWorkspacesWorkspaceIdKnowledgeDocumentsUploadPost(requestParameters.workspaceId, requestParameters.file, options || {}, configuration);
    return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
}
// KnowledgeAi Api FP
/**
 * Upload or replace a knowledge document.
 * @summary Upsert Document
 * @param {AxiosInstance} axios Axios instance.
 * @param {string} basePath Base path.
 * @param {KnowledgeAiUpsertDocumentApiV1AiWorkspacesWorkspaceIdKnowledgeDocumentsUploadPutRequest} requestParameters Request parameters.
 * @param {*} [options] Override http request option.
 * @param {Configuration} [configuration] Optional configuration.
 * @throws {RequiredError}
 */
export async function KnowledgeAi_UpsertDocumentApiV1AiWorkspacesWorkspaceIdKnowledgeDocumentsUploadPut(axios, basePath, requestParameters, options, configuration) {
    const localVarAxiosArgs = await KnowledgeAiAxiosParamCreator_UpsertDocumentApiV1AiWorkspacesWorkspaceIdKnowledgeDocumentsUploadPut(requestParameters.workspaceId, requestParameters.file, options || {}, configuration);
    return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
}
/**
 * KnowledgeAi - object-oriented interface
 * @export
 * @class KnowledgeAi
 * @extends {BaseAPI}
 */
export class KnowledgeAi extends BaseAPI {
    /**
     * Download a knowledge document\'s raw file.
     * @summary Download Document
     * @param {KnowledgeAiDownloadDocumentApiV1AiWorkspacesWorkspaceIdKnowledgeDocumentsFilenameDownloadGetRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof KnowledgeAi
     */
    downloadDocumentApiV1AiWorkspacesWorkspaceIdKnowledgeDocumentsFilenameDownloadGet(requestParameters, options) {
        return KnowledgeAi_DownloadDocumentApiV1AiWorkspacesWorkspaceIdKnowledgeDocumentsFilenameDownloadGet(this.axios, this.basePath, requestParameters, options, this.configuration);
    }
    /**
     * Upload a new knowledge document. Returns 409 if filename already exists.
     * @summary Upload Document
     * @param {KnowledgeAiUploadDocumentApiV1AiWorkspacesWorkspaceIdKnowledgeDocumentsUploadPostRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof KnowledgeAi
     */
    uploadDocumentApiV1AiWorkspacesWorkspaceIdKnowledgeDocumentsUploadPost(requestParameters, options) {
        return KnowledgeAi_UploadDocumentApiV1AiWorkspacesWorkspaceIdKnowledgeDocumentsUploadPost(this.axios, this.basePath, requestParameters, options, this.configuration);
    }
    /**
     * Upload or replace a knowledge document.
     * @summary Upsert Document
     * @param {KnowledgeAiUpsertDocumentApiV1AiWorkspacesWorkspaceIdKnowledgeDocumentsUploadPutRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof KnowledgeAi
     */
    upsertDocumentApiV1AiWorkspacesWorkspaceIdKnowledgeDocumentsUploadPut(requestParameters, options) {
        return KnowledgeAi_UpsertDocumentApiV1AiWorkspacesWorkspaceIdKnowledgeDocumentsUploadPut(this.axios, this.basePath, requestParameters, options, this.configuration);
    }
}
// MessagesAi FP - MessagesAiAxiosParamCreator
/**
 *
 * @summary Post Messages
 * @param {string} workspaceId
 * @param {string} conversationId
 * @param {AiSendMessageRequest} aiSendMessageRequest
 * @param {*} [options] Override http request option.
 * @param {Configuration} [configuration] Optional configuration.
 * @throws {RequiredError}
 */
export async function MessagesAiAxiosParamCreator_PostMessagesApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdMessagesPost(workspaceId, conversationId, aiSendMessageRequest, options = {}, configuration) {
    // verify required parameter 'workspaceId' is not null or undefined
    assertParamExists('postMessagesApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdMessagesPost', 'workspaceId', workspaceId);
    // verify required parameter 'conversationId' is not null or undefined
    assertParamExists('postMessagesApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdMessagesPost', 'conversationId', conversationId);
    // verify required parameter 'aiSendMessageRequest' is not null or undefined
    assertParamExists('postMessagesApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdMessagesPost', 'aiSendMessageRequest', aiSendMessageRequest);
    const localVarPath = `/api/v1/ai/workspaces/{workspace_id}/chat/conversations/{conversation_id}/messages`
        .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
        .replace(`{${"conversation_id"}}`, encodeURIComponent(String(conversationId)));
    // use dummy base URL string because the URL constructor only accepts absolute URLs.
    const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
    let baseOptions;
    if (configuration) {
        baseOptions = configuration.baseOptions;
    }
    const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
    const localVarHeaderParameter = {};
    const localVarQueryParameter = {};
    const consumes = [
        'application/json'
    ];
    // use application/json if present, otherwise fallback to the first one
    localVarHeaderParameter['Content-Type'] = consumes.includes('application/json')
        ? 'application/json'
        : consumes[0];
    setSearchParams(localVarUrlObj, localVarQueryParameter);
    const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
    localVarRequestOptions.headers = {
        ...localVarHeaderParameter,
        ...headersFromBaseOptions,
        ...options.headers,
    };
    const needsSerialization = typeof aiSendMessageRequest !== "string" ||
        localVarRequestOptions.headers["Content-Type"] === "application/json";
    localVarRequestOptions.data = needsSerialization
        ? JSON.stringify(aiSendMessageRequest !== undefined ? aiSendMessageRequest : {})
        : aiSendMessageRequest || "";
    return {
        url: toPathString(localVarUrlObj),
        options: localVarRequestOptions,
    };
}
// MessagesAi Api FP
/**
 *
 * @summary Post Messages
 * @param {AxiosInstance} axios Axios instance.
 * @param {string} basePath Base path.
 * @param {MessagesAiPostMessagesApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdMessagesPostRequest} requestParameters Request parameters.
 * @param {*} [options] Override http request option.
 * @param {Configuration} [configuration] Optional configuration.
 * @throws {RequiredError}
 */
export async function MessagesAi_PostMessagesApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdMessagesPost(axios, basePath, requestParameters, options, configuration) {
    const localVarAxiosArgs = await MessagesAiAxiosParamCreator_PostMessagesApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdMessagesPost(requestParameters.workspaceId, requestParameters.conversationId, requestParameters.aiSendMessageRequest, options || {}, configuration);
    return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
}
/**
 * MessagesAi - object-oriented interface
 * @export
 * @class MessagesAi
 * @extends {BaseAPI}
 */
export class MessagesAi extends BaseAPI {
    /**
     *
     * @summary Post Messages
     * @param {MessagesAiPostMessagesApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdMessagesPostRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof MessagesAi
     */
    postMessagesApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdMessagesPost(requestParameters, options) {
        return MessagesAi_PostMessagesApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdMessagesPost(this.axios, this.basePath, requestParameters, options, this.configuration);
    }
}
// ResponsesAi FP - ResponsesAiAxiosParamCreator
/**
 *
 * @summary Get Conversation Responses
 * @param {string} workspaceId
 * @param {string} conversationId
 * @param {*} [options] Override http request option.
 * @param {Configuration} [configuration] Optional configuration.
 * @throws {RequiredError}
 */
export async function ResponsesAiAxiosParamCreator_GetConversationResponsesApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdResponsesGet(workspaceId, conversationId, options = {}, configuration) {
    // verify required parameter 'workspaceId' is not null or undefined
    assertParamExists('getConversationResponsesApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdResponsesGet', 'workspaceId', workspaceId);
    // verify required parameter 'conversationId' is not null or undefined
    assertParamExists('getConversationResponsesApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdResponsesGet', 'conversationId', conversationId);
    const localVarPath = `/api/v1/ai/workspaces/{workspace_id}/chat/conversations/{conversation_id}/responses`
        .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
        .replace(`{${"conversation_id"}}`, encodeURIComponent(String(conversationId)));
    // use dummy base URL string because the URL constructor only accepts absolute URLs.
    const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
    let baseOptions;
    if (configuration) {
        baseOptions = configuration.baseOptions;
    }
    const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
    const localVarHeaderParameter = {};
    const localVarQueryParameter = {};
    setSearchParams(localVarUrlObj, localVarQueryParameter);
    const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
    localVarRequestOptions.headers = {
        ...localVarHeaderParameter,
        ...headersFromBaseOptions,
        ...options.headers,
    };
    return {
        url: toPathString(localVarUrlObj),
        options: localVarRequestOptions,
    };
}
// ResponsesAi FP - ResponsesAiAxiosParamCreator
/**
 *
 * @summary Patch Response
 * @param {string} workspaceId
 * @param {string} conversationId
 * @param {string} responseId
 * @param {AiResponseFeedbackRequest} aiResponseFeedbackRequest
 * @param {*} [options] Override http request option.
 * @param {Configuration} [configuration] Optional configuration.
 * @throws {RequiredError}
 */
export async function ResponsesAiAxiosParamCreator_PatchResponseApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdResponsesResponseIdPatch(workspaceId, conversationId, responseId, aiResponseFeedbackRequest, options = {}, configuration) {
    // verify required parameter 'workspaceId' is not null or undefined
    assertParamExists('patchResponseApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdResponsesResponseIdPatch', 'workspaceId', workspaceId);
    // verify required parameter 'conversationId' is not null or undefined
    assertParamExists('patchResponseApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdResponsesResponseIdPatch', 'conversationId', conversationId);
    // verify required parameter 'responseId' is not null or undefined
    assertParamExists('patchResponseApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdResponsesResponseIdPatch', 'responseId', responseId);
    // verify required parameter 'aiResponseFeedbackRequest' is not null or undefined
    assertParamExists('patchResponseApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdResponsesResponseIdPatch', 'aiResponseFeedbackRequest', aiResponseFeedbackRequest);
    const localVarPath = `/api/v1/ai/workspaces/{workspace_id}/chat/conversations/{conversation_id}/responses/{response_id}`
        .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
        .replace(`{${"conversation_id"}}`, encodeURIComponent(String(conversationId)))
        .replace(`{${"response_id"}}`, encodeURIComponent(String(responseId)));
    // use dummy base URL string because the URL constructor only accepts absolute URLs.
    const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
    let baseOptions;
    if (configuration) {
        baseOptions = configuration.baseOptions;
    }
    const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options };
    const localVarHeaderParameter = {};
    const localVarQueryParameter = {};
    const consumes = [
        'application/json'
    ];
    // use application/json if present, otherwise fallback to the first one
    localVarHeaderParameter['Content-Type'] = consumes.includes('application/json')
        ? 'application/json'
        : consumes[0];
    setSearchParams(localVarUrlObj, localVarQueryParameter);
    const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
    localVarRequestOptions.headers = {
        ...localVarHeaderParameter,
        ...headersFromBaseOptions,
        ...options.headers,
    };
    const needsSerialization = typeof aiResponseFeedbackRequest !== "string" ||
        localVarRequestOptions.headers["Content-Type"] === "application/json";
    localVarRequestOptions.data = needsSerialization
        ? JSON.stringify(aiResponseFeedbackRequest !== undefined ? aiResponseFeedbackRequest : {})
        : aiResponseFeedbackRequest || "";
    return {
        url: toPathString(localVarUrlObj),
        options: localVarRequestOptions,
    };
}
// ResponsesAi Api FP
/**
 *
 * @summary Get Conversation Responses
 * @param {AxiosInstance} axios Axios instance.
 * @param {string} basePath Base path.
 * @param {ResponsesAiGetConversationResponsesApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdResponsesGetRequest} requestParameters Request parameters.
 * @param {*} [options] Override http request option.
 * @param {Configuration} [configuration] Optional configuration.
 * @throws {RequiredError}
 */
export async function ResponsesAi_GetConversationResponsesApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdResponsesGet(axios, basePath, requestParameters, options, configuration) {
    const localVarAxiosArgs = await ResponsesAiAxiosParamCreator_GetConversationResponsesApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdResponsesGet(requestParameters.workspaceId, requestParameters.conversationId, options || {}, configuration);
    return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
}
// ResponsesAi Api FP
/**
 *
 * @summary Patch Response
 * @param {AxiosInstance} axios Axios instance.
 * @param {string} basePath Base path.
 * @param {ResponsesAiPatchResponseApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdResponsesResponseIdPatchRequest} requestParameters Request parameters.
 * @param {*} [options] Override http request option.
 * @param {Configuration} [configuration] Optional configuration.
 * @throws {RequiredError}
 */
export async function ResponsesAi_PatchResponseApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdResponsesResponseIdPatch(axios, basePath, requestParameters, options, configuration) {
    const localVarAxiosArgs = await ResponsesAiAxiosParamCreator_PatchResponseApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdResponsesResponseIdPatch(requestParameters.workspaceId, requestParameters.conversationId, requestParameters.responseId, requestParameters.aiResponseFeedbackRequest, options || {}, configuration);
    return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
}
/**
 * ResponsesAi - object-oriented interface
 * @export
 * @class ResponsesAi
 * @extends {BaseAPI}
 */
export class ResponsesAi extends BaseAPI {
    /**
     *
     * @summary Get Conversation Responses
     * @param {ResponsesAiGetConversationResponsesApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdResponsesGetRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof ResponsesAi
     */
    getConversationResponsesApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdResponsesGet(requestParameters, options) {
        return ResponsesAi_GetConversationResponsesApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdResponsesGet(this.axios, this.basePath, requestParameters, options, this.configuration);
    }
    /**
     *
     * @summary Patch Response
     * @param {ResponsesAiPatchResponseApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdResponsesResponseIdPatchRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof ResponsesAi
     */
    patchResponseApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdResponsesResponseIdPatch(requestParameters, options) {
        return ResponsesAi_PatchResponseApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdResponsesResponseIdPatch(this.axios, this.basePath, requestParameters, options, this.configuration);
    }
}
// VisualizationsAi FP - VisualizationsAiAxiosParamCreator
/**
 *
 * @summary Patch Visualization
 * @param {string} workspaceId
 * @param {string} conversationId
 * @param {string} visualizationId
 * @param {AiVisualizationIdUpdateRequest} aiVisualizationIdUpdateRequest
 * @param {*} [options] Override http request option.
 * @param {Configuration} [configuration] Optional configuration.
 * @throws {RequiredError}
 */
export async function VisualizationsAiAxiosParamCreator_PatchVisualizationApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdVisualizationsVisualizationIdPatch(workspaceId, conversationId, visualizationId, aiVisualizationIdUpdateRequest, options = {}, configuration) {
    // verify required parameter 'workspaceId' is not null or undefined
    assertParamExists('patchVisualizationApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdVisualizationsVisualizationIdPatch', 'workspaceId', workspaceId);
    // verify required parameter 'conversationId' is not null or undefined
    assertParamExists('patchVisualizationApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdVisualizationsVisualizationIdPatch', 'conversationId', conversationId);
    // verify required parameter 'visualizationId' is not null or undefined
    assertParamExists('patchVisualizationApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdVisualizationsVisualizationIdPatch', 'visualizationId', visualizationId);
    // verify required parameter 'aiVisualizationIdUpdateRequest' is not null or undefined
    assertParamExists('patchVisualizationApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdVisualizationsVisualizationIdPatch', 'aiVisualizationIdUpdateRequest', aiVisualizationIdUpdateRequest);
    const localVarPath = `/api/v1/ai/workspaces/{workspace_id}/chat/conversations/{conversation_id}/visualizations/{visualization_id}`
        .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
        .replace(`{${"conversation_id"}}`, encodeURIComponent(String(conversationId)))
        .replace(`{${"visualization_id"}}`, encodeURIComponent(String(visualizationId)));
    // use dummy base URL string because the URL constructor only accepts absolute URLs.
    const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
    let baseOptions;
    if (configuration) {
        baseOptions = configuration.baseOptions;
    }
    const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options };
    const localVarHeaderParameter = {};
    const localVarQueryParameter = {};
    const consumes = [
        'application/json'
    ];
    // use application/json if present, otherwise fallback to the first one
    localVarHeaderParameter['Content-Type'] = consumes.includes('application/json')
        ? 'application/json'
        : consumes[0];
    setSearchParams(localVarUrlObj, localVarQueryParameter);
    const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
    localVarRequestOptions.headers = {
        ...localVarHeaderParameter,
        ...headersFromBaseOptions,
        ...options.headers,
    };
    const needsSerialization = typeof aiVisualizationIdUpdateRequest !== "string" ||
        localVarRequestOptions.headers["Content-Type"] === "application/json";
    localVarRequestOptions.data = needsSerialization
        ? JSON.stringify(aiVisualizationIdUpdateRequest !== undefined ? aiVisualizationIdUpdateRequest : {})
        : aiVisualizationIdUpdateRequest || "";
    return {
        url: toPathString(localVarUrlObj),
        options: localVarRequestOptions,
    };
}
// VisualizationsAi Api FP
/**
 *
 * @summary Patch Visualization
 * @param {AxiosInstance} axios Axios instance.
 * @param {string} basePath Base path.
 * @param {VisualizationsAiPatchVisualizationApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdVisualizationsVisualizationIdPatchRequest} requestParameters Request parameters.
 * @param {*} [options] Override http request option.
 * @param {Configuration} [configuration] Optional configuration.
 * @throws {RequiredError}
 */
export async function VisualizationsAi_PatchVisualizationApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdVisualizationsVisualizationIdPatch(axios, basePath, requestParameters, options, configuration) {
    const localVarAxiosArgs = await VisualizationsAiAxiosParamCreator_PatchVisualizationApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdVisualizationsVisualizationIdPatch(requestParameters.workspaceId, requestParameters.conversationId, requestParameters.visualizationId, requestParameters.aiVisualizationIdUpdateRequest, options || {}, configuration);
    return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
}
/**
 * VisualizationsAi - object-oriented interface
 * @export
 * @class VisualizationsAi
 * @extends {BaseAPI}
 */
export class VisualizationsAi extends BaseAPI {
    /**
     *
     * @summary Patch Visualization
     * @param {VisualizationsAiPatchVisualizationApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdVisualizationsVisualizationIdPatchRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof VisualizationsAi
     */
    patchVisualizationApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdVisualizationsVisualizationIdPatch(requestParameters, options) {
        return VisualizationsAi_PatchVisualizationApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdVisualizationsVisualizationIdPatch(this.axios, this.basePath, requestParameters, options, this.configuration);
    }
}
//# sourceMappingURL=api.js.map