From b3fe050a5096bba3debff9ce4ef3b431c0bd4e25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Boschi?= Date: Fri, 7 Mar 2025 13:44:45 +0100 Subject: [PATCH 1/5] fix: improve openapi naming --- src/examples/notebooks/.gitignore | 1 + src/examples/notebooks/vectorize.ipynb | 186 +- src/python/pyproject.toml | 2 +- src/python/vectorize_client/__init__.py | 47 +- .../vectorize_client/api/connectors_api.py | 1858 +++++++++++++---- .../vectorize_client/api/extraction_api.py | 13 +- src/python/vectorize_client/api/files_api.py | 13 +- .../vectorize_client/api/pipelines_api.py | 42 +- .../vectorize_client/api/uploads_api.py | 13 +- .../vectorize_client/models/__init__.py | 47 +- .../models/ai_platform_schema.py | 11 +- .../create_ai_platform_connector_response.py | 6 +- .../create_destination_connector_response.py | 6 +- .../create_source_connector_response.py | 6 +- ...rce_connector_response_connectors_inner.py | 89 - .../models/destination_connector_schema.py | 7 +- .../models/extraction_result_response.py | 6 +- .../models/extraction_result_response_data.py | 93 - .../models/get_deep_research_response.py | 6 +- .../models/get_deep_research_response_data.py | 93 - .../models/get_pipeline_events_response.py | 6 +- ...get_pipeline_events_response_data_inner.py | 100 - .../models/get_pipeline_metrics_response.py | 6 +- ...et_pipeline_metrics_response_data_inner.py | 98 - .../models/get_upload_files_response.py | 6 +- .../get_upload_files_response_files_inner.py | 102 - .../models/retrieve_documents_request.py | 6 +- .../retrieve_documents_request_context.py | 95 - ...ocuments_request_context_messages_inner.py | 89 - .../models/schedule_schema.py | 12 +- .../models/source_connector_schema.py | 16 +- .../models/start_deep_research_request.py | 6 +- .../models/start_deep_research_request_n8n.py | 91 - .../models/start_extraction_request.py | 32 +- .../update_ai_platform_connector_request.py | 14 +- ...date_ai_platform_connector_request_data.py | 93 - ...pdate_destination_connector200_response.py | 93 - ...ation_connector200_response_all_of_data.py | 93 - .../models/update_source_connector_request.py | 14 +- .../update_source_connector_request_data.py | 93 - src/ts/src/apis/ConnectorsApi.ts | 328 ++- src/ts/src/apis/ExtractionApi.ts | 9 +- src/ts/src/apis/FilesApi.ts | 9 +- src/ts/src/apis/PipelinesApi.ts | 31 +- src/ts/src/apis/UploadsApi.ts | 9 +- src/ts/src/models/AIPlatformSchema.ts | 33 +- .../CreateAIPlatformConnectorResponse.ts | 20 +- .../CreateDestinationConnectorResponse.ts | 20 +- .../models/CreateSourceConnectorResponse.ts | 20 +- ...eSourceConnectorResponseConnectorsInner.ts | 75 - .../src/models/DestinationConnectorSchema.ts | 25 +- src/ts/src/models/ExtractionResultResponse.ts | 20 +- .../models/ExtractionResultResponseData.ts | 90 - src/ts/src/models/GetDeepResearchResponse.ts | 20 +- .../src/models/GetDeepResearchResponseData.ts | 90 - .../src/models/GetPipelineEventsResponse.ts | 20 +- .../GetPipelineEventsResponseDataInner.ts | 100 - .../src/models/GetPipelineMetricsResponse.ts | 20 +- .../GetPipelineMetricsResponseDataInner.ts | 93 - src/ts/src/models/GetUploadFilesResponse.ts | 20 +- .../GetUploadFilesResponseFilesInner.ts | 110 - src/ts/src/models/RetrieveDocumentsRequest.ts | 20 +- .../models/RetrieveDocumentsRequestContext.ts | 74 - ...eveDocumentsRequestContextMessagesInner.ts | 75 - src/ts/src/models/ScheduleSchema.ts | 26 +- src/ts/src/models/SourceConnectorSchema.ts | 45 +- src/ts/src/models/StartDeepResearchRequest.ts | 20 +- .../src/models/StartDeepResearchRequestN8n.ts | 83 - src/ts/src/models/StartExtractionRequest.ts | 47 +- .../UpdateAIPlatformConnectorRequest.ts | 27 +- .../UpdateAIPlatformConnectorRequestData.ts | 82 - .../UpdateDestinationConnector200Response.ts | 83 - ...estinationConnector200ResponseAllOfData.ts | 82 - .../models/UpdateSourceConnectorRequest.ts | 27 +- .../UpdateSourceConnectorRequestData.ts | 82 - src/ts/src/models/index.ts | 47 +- .../test_client.cpython-311-pytest-8.3.4.pyc | Bin 14900 -> 15030 bytes tests/python/tests/test_client.py | 8 +- tests/ts/package-lock.json | 2 +- tests/ts/tests/extraction.test.ts | 2 +- tests/ts/tests/pipelines.test.ts | 28 +- tests/ts/tests/uploads.test.ts | 16 +- vectorize_api.json | 2 +- 83 files changed, 2315 insertions(+), 3335 deletions(-) create mode 100644 src/examples/notebooks/.gitignore delete mode 100644 src/python/vectorize_client/models/create_source_connector_response_connectors_inner.py delete mode 100644 src/python/vectorize_client/models/extraction_result_response_data.py delete mode 100644 src/python/vectorize_client/models/get_deep_research_response_data.py delete mode 100644 src/python/vectorize_client/models/get_pipeline_events_response_data_inner.py delete mode 100644 src/python/vectorize_client/models/get_pipeline_metrics_response_data_inner.py delete mode 100644 src/python/vectorize_client/models/get_upload_files_response_files_inner.py delete mode 100644 src/python/vectorize_client/models/retrieve_documents_request_context.py delete mode 100644 src/python/vectorize_client/models/retrieve_documents_request_context_messages_inner.py delete mode 100644 src/python/vectorize_client/models/start_deep_research_request_n8n.py delete mode 100644 src/python/vectorize_client/models/update_ai_platform_connector_request_data.py delete mode 100644 src/python/vectorize_client/models/update_destination_connector200_response.py delete mode 100644 src/python/vectorize_client/models/update_destination_connector200_response_all_of_data.py delete mode 100644 src/python/vectorize_client/models/update_source_connector_request_data.py delete mode 100644 src/ts/src/models/CreateSourceConnectorResponseConnectorsInner.ts delete mode 100644 src/ts/src/models/ExtractionResultResponseData.ts delete mode 100644 src/ts/src/models/GetDeepResearchResponseData.ts delete mode 100644 src/ts/src/models/GetPipelineEventsResponseDataInner.ts delete mode 100644 src/ts/src/models/GetPipelineMetricsResponseDataInner.ts delete mode 100644 src/ts/src/models/GetUploadFilesResponseFilesInner.ts delete mode 100644 src/ts/src/models/RetrieveDocumentsRequestContext.ts delete mode 100644 src/ts/src/models/RetrieveDocumentsRequestContextMessagesInner.ts delete mode 100644 src/ts/src/models/StartDeepResearchRequestN8n.ts delete mode 100644 src/ts/src/models/UpdateAIPlatformConnectorRequestData.ts delete mode 100644 src/ts/src/models/UpdateDestinationConnector200Response.ts delete mode 100644 src/ts/src/models/UpdateDestinationConnector200ResponseAllOfData.ts delete mode 100644 src/ts/src/models/UpdateSourceConnectorRequestData.ts diff --git a/src/examples/notebooks/.gitignore b/src/examples/notebooks/.gitignore new file mode 100644 index 0000000..f08278d --- /dev/null +++ b/src/examples/notebooks/.gitignore @@ -0,0 +1 @@ +*.pdf \ No newline at end of file diff --git a/src/examples/notebooks/vectorize.ipynb b/src/examples/notebooks/vectorize.ipynb index bb599e6..09dbd39 100644 --- a/src/examples/notebooks/vectorize.ipynb +++ b/src/examples/notebooks/vectorize.ipynb @@ -7,7 +7,8 @@ }, "kernelspec": { "name": "python3", - "display_name": "Python 3" + "display_name": "Python 3 (ipykernel)", + "language": "python" }, "language_info": { "name": "python" @@ -34,25 +35,32 @@ "colab": { "base_uri": "https://localhost:8080/" }, - "outputId": "06daf601-2ed5-45f2-b3cb-9c5d8ba85654" + "outputId": "06daf601-2ed5-45f2-b3cb-9c5d8ba85654", + "ExecuteTime": { + "end_time": "2025-03-06T17:01:18.767327Z", + "start_time": "2025-03-06T17:01:18.083827Z" + } }, - "execution_count": 3, "outputs": [ { - "output_type": "stream", "name": "stdout", + "output_type": "stream", "text": [ - "Requirement already satisfied: vectorize-client in /usr/local/lib/python3.11/dist-packages (0.1.2)\n", - "Requirement already satisfied: pydantic>=2 in /usr/local/lib/python3.11/dist-packages (from vectorize-client) (2.10.6)\n", - "Requirement already satisfied: python-dateutil>=2.8.2 in /usr/local/lib/python3.11/dist-packages (from vectorize-client) (2.8.2)\n", - "Requirement already satisfied: typing-extensions>=4.7.1 in /usr/local/lib/python3.11/dist-packages (from vectorize-client) (4.12.2)\n", - "Requirement already satisfied: urllib3<3.0.0,>=1.25.3 in /usr/local/lib/python3.11/dist-packages (from vectorize-client) (2.3.0)\n", - "Requirement already satisfied: annotated-types>=0.6.0 in /usr/local/lib/python3.11/dist-packages (from pydantic>=2->vectorize-client) (0.7.0)\n", - "Requirement already satisfied: pydantic-core==2.27.2 in /usr/local/lib/python3.11/dist-packages (from pydantic>=2->vectorize-client) (2.27.2)\n", - "Requirement already satisfied: six>=1.5 in /usr/local/lib/python3.11/dist-packages (from python-dateutil>=2.8.2->vectorize-client) (1.17.0)\n" + "Requirement already satisfied: vectorize-client in /Users/nicoloboschi/dev/vectorize-client-generator/tests/python/.venv/lib/python3.11/site-packages (1.0.0)\r\n", + "Requirement already satisfied: urllib3<3.0.0,>=1.25.3 in /Users/nicoloboschi/dev/vectorize-client-generator/tests/python/.venv/lib/python3.11/site-packages (from vectorize-client) (2.3.0)\r\n", + "Requirement already satisfied: python-dateutil>=2.8.2 in /Users/nicoloboschi/dev/vectorize-client-generator/tests/python/.venv/lib/python3.11/site-packages (from vectorize-client) (2.9.0.post0)\r\n", + "Requirement already satisfied: pydantic>=2 in /Users/nicoloboschi/dev/vectorize-client-generator/tests/python/.venv/lib/python3.11/site-packages (from vectorize-client) (2.10.6)\r\n", + "Requirement already satisfied: typing-extensions>=4.7.1 in /Users/nicoloboschi/dev/vectorize-client-generator/tests/python/.venv/lib/python3.11/site-packages (from vectorize-client) (4.12.2)\r\n", + "Requirement already satisfied: annotated-types>=0.6.0 in /Users/nicoloboschi/dev/vectorize-client-generator/tests/python/.venv/lib/python3.11/site-packages (from pydantic>=2->vectorize-client) (0.7.0)\r\n", + "Requirement already satisfied: pydantic-core==2.27.2 in /Users/nicoloboschi/dev/vectorize-client-generator/tests/python/.venv/lib/python3.11/site-packages (from pydantic>=2->vectorize-client) (2.27.2)\r\n", + "Requirement already satisfied: six>=1.5 in /Users/nicoloboschi/dev/vectorize-client-generator/tests/python/.venv/lib/python3.11/site-packages (from python-dateutil>=2.8.2->vectorize-client) (1.17.0)\r\n", + "\r\n", + "\u001B[1m[\u001B[0m\u001B[34;49mnotice\u001B[0m\u001B[1;39;49m]\u001B[0m\u001B[39;49m A new release of pip is available: \u001B[0m\u001B[31;49m24.3.1\u001B[0m\u001B[39;49m -> \u001B[0m\u001B[32;49m25.0.1\u001B[0m\r\n", + "\u001B[1m[\u001B[0m\u001B[34;49mnotice\u001B[0m\u001B[1;39;49m]\u001B[0m\u001B[39;49m To update, run: \u001B[0m\u001B[32;49mpip install --upgrade pip\u001B[0m\r\n" ] } - ] + ], + "execution_count": 2 }, { "cell_type": "code", @@ -66,19 +74,14 @@ "base_uri": "https://localhost:8080/" }, "id": "Wtp1hi4Reh8q", - "outputId": "39503ec7-e8ca-4ff3-bf3b-ba80fff2af0b" - }, - "execution_count": 6, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Vectorize Organization ID:582893ba-291c-4ec7-a6ee-e85c26888817\n", - "Vectorize Token:··········\n" - ] + "outputId": "39503ec7-e8ca-4ff3-bf3b-ba80fff2af0b", + "ExecuteTime": { + "end_time": "2025-03-06T17:02:02.626216Z", + "start_time": "2025-03-06T17:01:29.119649Z" } - ] + }, + "outputs": [], + "execution_count": 3 }, { "cell_type": "code", @@ -86,7 +89,7 @@ "import vectorize_client as v\n", "\n", "\n", - "api = v.ApiClient(v.Configuration(access_token=token))\n", + "api = v.ApiClient(v.Configuration(access_token=token, host=\"http://localhost:3000/api\"), \"x-lambda-api-key\", token)\n", "pipelines = v.PipelinesApi(api)\n", "\n", "response = pipelines.get_pipelines(org)\n", @@ -98,30 +101,56 @@ "colab": { "base_uri": "https://localhost:8080/" }, - "outputId": "694382e2-27e4-42c2-9da0-304ce9b588ce" + "outputId": "694382e2-27e4-42c2-9da0-304ce9b588ce", + "ExecuteTime": { + "end_time": "2025-03-06T17:09:50.998069Z", + "start_time": "2025-03-06T17:09:32.057335Z" + } }, - "execution_count": 13, "outputs": [ { - "output_type": "stream", "name": "stdout", + "output_type": "stream", "text": [ "Pipeline: My Pipeline From API\n", - "Pipeline: from api\n", + "Pipeline: Test pipeline\n", "Pipeline: Test pipeline\n", "Pipeline: Test pipeline\n" ] } - ] + ], + "execution_count": 9 }, { "cell_type": "code", "source": "!wget -O apple.pdf https://www.apple.com/newsroom/pdfs/fy2024-q1/FY24_Q1_Consolidated_Financial_Statements.pdf ", "metadata": { - "id": "sb43XYA1mEfN" + "id": "sb43XYA1mEfN", + "ExecuteTime": { + "end_time": "2025-03-06T17:12:57.720738Z", + "start_time": "2025-03-06T17:12:52.794818Z" + } }, - "execution_count": 25, - "outputs": [] + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "--2025-03-06 18:12:53-- https://www.apple.com/newsroom/pdfs/fy2024-q1/FY24_Q1_Consolidated_Financial_Statements.pdf\r\n", + "Resolving www.apple.com (www.apple.com)... 23.205.48.213\r\n", + "Connecting to www.apple.com (www.apple.com)|23.205.48.213|:443... connected.\r\n", + "HTTP request sent, awaiting response... 200 OK\r\n", + "Length: 3129308 (3.0M) [application/pdf]\r\n", + "Saving to: ‘apple.pdf’\r\n", + "\r\n", + "apple.pdf 100%[===================>] 2.98M 778KB/s in 3.8s \r\n", + "\r\n", + "2025-03-06 18:12:57 (799 KB/s) - ‘apple.pdf’ saved [3129308/3129308]\r\n", + "\r\n" + ] + } + ], + "execution_count": 12 }, { "cell_type": "code", @@ -140,24 +169,25 @@ "height": 35 }, "id": "FHuFKLufe0fi", - "outputId": "5d1b887e-1925-4ff9-d44c-3479fa394575" + "outputId": "5d1b887e-1925-4ff9-d44c-3479fa394575", + "ExecuteTime": { + "end_time": "2025-03-06T17:12:30.433445Z", + "start_time": "2025-03-06T17:12:16.696363Z" + } }, - "execution_count": 8, "outputs": [ { - "output_type": "execute_result", "data": { "text/plain": [ - "'cdfa4981-c0fa-4b1d-9fba-83845cc103f0'" - ], - "application/vnd.google.colaboratory.intrinsic+json": { - "type": "string" - } + "'e49a6ede-83cb-4698-b751-dd0364918c53'" + ] }, + "execution_count": 10, "metadata": {}, - "execution_count": 8 + "output_type": "execute_result" } - ] + ], + "execution_count": 10 }, { "cell_type": "code", @@ -190,18 +220,22 @@ "base_uri": "https://localhost:8080/" }, "id": "TZs5os0Ae4kb", - "outputId": "3f47b11e-556b-464b-e3a4-4ebca7bfba52" + "outputId": "3f47b11e-556b-464b-e3a4-4ebca7bfba52", + "ExecuteTime": { + "end_time": "2025-03-06T17:13:10.495588Z", + "start_time": "2025-03-06T17:13:00.038846Z" + } }, - "execution_count": 10, "outputs": [ { - "output_type": "stream", "name": "stdout", + "output_type": "stream", "text": [ "Upload successful\n" ] } - ] + ], + "execution_count": 13 }, { "cell_type": "code", @@ -213,10 +247,14 @@ "builtin_vector_db = [c.id for c in vector_databases.destination_connectors if c.type == \"VECTORIZE\"][0]" ], "metadata": { - "id": "3rqzxB3aeoif" + "id": "3rqzxB3aeoif", + "ExecuteTime": { + "end_time": "2025-03-06T17:13:33.985317Z", + "start_time": "2025-03-06T17:13:11.451383Z" + } }, - "execution_count": 11, - "outputs": [] + "outputs": [], + "execution_count": 14 }, { "cell_type": "code", @@ -224,7 +262,12 @@ "response = pipelines.create_pipeline(org, v.PipelineConfigurationSchema(\n", " source_connectors=[v.SourceConnectorSchema(id=source_connector_id, type=\"FILE_UPLOAD\", config={})],\n", " destination_connector=v.DestinationConnectorSchema(id=builtin_vector_db, type=\"VECTORIZE\", config={}),\n", - " ai_platform=v.AIPlatformSchema(id=builtin_ai_platform, type=\"VECTORIZE\", config={}),\n", + " ai_platform=v.AIPlatformSchema(id=builtin_ai_platform, type=\"VECTORIZE\", config={\n", + " \"chunkSize\": 600,\n", + " \"chunkingStrategy\": \"FIXED\",\n", + " \"embeddingModel\": \"VECTORIZE_OPEN_AI_TEXT_EMBEDDING_3_LARGE\",\n", + " #\"extractionStrategy\": \"MIXED\"\n", + " }),\n", " pipeline_name=\"My Pipeline From API\",\n", " schedule=v.ScheduleSchema(type=\"manual\")\n", "))\n", @@ -237,24 +280,25 @@ "height": 35 }, "id": "59b9VSaykDSh", - "outputId": "f43499ce-08e3-4f23-c502-cead17f2e1c0" + "outputId": "f43499ce-08e3-4f23-c502-cead17f2e1c0", + "ExecuteTime": { + "end_time": "2025-03-06T17:25:59.003091Z", + "start_time": "2025-03-06T17:25:29.022232Z" + } }, - "execution_count": 12, "outputs": [ { - "output_type": "execute_result", "data": { "text/plain": [ - "'aipf9ab5-702c-40de-a2f7-8a2139129ba5'" - ], - "application/vnd.google.colaboratory.intrinsic+json": { - "type": "string" - } + "'aipea5dd-bfa6-4e78-9211-019f65e106d2'" + ] }, + "execution_count": 21, "metadata": {}, - "execution_count": 12 + "output_type": "execute_result" } - ] + ], + "execution_count": 21 }, { "cell_type": "code", @@ -786,24 +830,6 @@ ] } ] - }, - { - "cell_type": "code", - "source": [], - "metadata": { - "id": "hCLlbeZ3lprg" - }, - "execution_count": null, - "outputs": [] - }, - { - "cell_type": "code", - "source": [], - "metadata": { - "id": "GAbtIAv8lFdB" - }, - "execution_count": null, - "outputs": [] } ] } diff --git a/src/python/pyproject.toml b/src/python/pyproject.toml index d83fc7d..c0e817c 100644 --- a/src/python/pyproject.toml +++ b/src/python/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "vectorize-client" -version = "0.1.2" +version = "1.0.0" description = "Python client for the Vectorize API" authors = [ "Vectorize " ] license = "MIT" diff --git a/src/python/vectorize_client/__init__.py b/src/python/vectorize_client/__init__.py index 3854483..cbf4900 100644 --- a/src/python/vectorize_client/__init__.py +++ b/src/python/vectorize_client/__init__.py @@ -36,13 +36,23 @@ # import models into sdk package from vectorize_client.models.ai_platform import AIPlatform +from vectorize_client.models.ai_platform_config_schema import AIPlatformConfigSchema from vectorize_client.models.ai_platform_schema import AIPlatformSchema +from vectorize_client.models.ai_platform_type import AIPlatformType +from vectorize_client.models.add_user_from_source_connector_response import AddUserFromSourceConnectorResponse +from vectorize_client.models.add_user_to_source_connector_request import AddUserToSourceConnectorRequest +from vectorize_client.models.create_ai_platform_connector import CreateAIPlatformConnector from vectorize_client.models.create_ai_platform_connector_response import CreateAIPlatformConnectorResponse +from vectorize_client.models.create_destination_connector import CreateDestinationConnector from vectorize_client.models.create_destination_connector_response import CreateDestinationConnectorResponse from vectorize_client.models.create_pipeline_response import CreatePipelineResponse from vectorize_client.models.create_pipeline_response_data import CreatePipelineResponseData +from vectorize_client.models.create_source_connector import CreateSourceConnector from vectorize_client.models.create_source_connector_response import CreateSourceConnectorResponse -from vectorize_client.models.create_source_connector_response_connectors_inner import CreateSourceConnectorResponseConnectorsInner +from vectorize_client.models.created_ai_platform_connector import CreatedAIPlatformConnector +from vectorize_client.models.created_destination_connector import CreatedDestinationConnector +from vectorize_client.models.created_source_connector import CreatedSourceConnector +from vectorize_client.models.deep_research_result import DeepResearchResult from vectorize_client.models.delete_ai_platform_connector_response import DeleteAIPlatformConnectorResponse from vectorize_client.models.delete_destination_connector_response import DeleteDestinationConnectorResponse from vectorize_client.models.delete_file_response import DeleteFileResponse @@ -50,35 +60,40 @@ from vectorize_client.models.delete_source_connector_response import DeleteSourceConnectorResponse from vectorize_client.models.destination_connector import DestinationConnector from vectorize_client.models.destination_connector_schema import DestinationConnectorSchema +from vectorize_client.models.destination_connector_type import DestinationConnectorType from vectorize_client.models.document import Document +from vectorize_client.models.extraction_chunking_strategy import ExtractionChunkingStrategy +from vectorize_client.models.extraction_result import ExtractionResult from vectorize_client.models.extraction_result_response import ExtractionResultResponse -from vectorize_client.models.extraction_result_response_data import ExtractionResultResponseData +from vectorize_client.models.extraction_type import ExtractionType from vectorize_client.models.get_ai_platform_connectors200_response import GetAIPlatformConnectors200Response from vectorize_client.models.get_deep_research_response import GetDeepResearchResponse -from vectorize_client.models.get_deep_research_response_data import GetDeepResearchResponseData from vectorize_client.models.get_destination_connectors200_response import GetDestinationConnectors200Response from vectorize_client.models.get_pipeline_events_response import GetPipelineEventsResponse -from vectorize_client.models.get_pipeline_events_response_data_inner import GetPipelineEventsResponseDataInner from vectorize_client.models.get_pipeline_metrics_response import GetPipelineMetricsResponse -from vectorize_client.models.get_pipeline_metrics_response_data_inner import GetPipelineMetricsResponseDataInner from vectorize_client.models.get_pipeline_response import GetPipelineResponse from vectorize_client.models.get_pipelines400_response import GetPipelines400Response from vectorize_client.models.get_pipelines_response import GetPipelinesResponse from vectorize_client.models.get_source_connectors200_response import GetSourceConnectors200Response from vectorize_client.models.get_upload_files_response import GetUploadFilesResponse -from vectorize_client.models.get_upload_files_response_files_inner import GetUploadFilesResponseFilesInner +from vectorize_client.models.n8_n_config import N8NConfig from vectorize_client.models.pipeline_configuration_schema import PipelineConfigurationSchema +from vectorize_client.models.pipeline_events import PipelineEvents from vectorize_client.models.pipeline_list_summary import PipelineListSummary +from vectorize_client.models.pipeline_metrics import PipelineMetrics from vectorize_client.models.pipeline_summary import PipelineSummary +from vectorize_client.models.remove_user_from_source_connector_request import RemoveUserFromSourceConnectorRequest +from vectorize_client.models.remove_user_from_source_connector_response import RemoveUserFromSourceConnectorResponse +from vectorize_client.models.retrieve_context import RetrieveContext +from vectorize_client.models.retrieve_context_message import RetrieveContextMessage from vectorize_client.models.retrieve_documents_request import RetrieveDocumentsRequest -from vectorize_client.models.retrieve_documents_request_context import RetrieveDocumentsRequestContext -from vectorize_client.models.retrieve_documents_request_context_messages_inner import RetrieveDocumentsRequestContextMessagesInner from vectorize_client.models.retrieve_documents_response import RetrieveDocumentsResponse from vectorize_client.models.schedule_schema import ScheduleSchema +from vectorize_client.models.schedule_schema_type import ScheduleSchemaType from vectorize_client.models.source_connector import SourceConnector from vectorize_client.models.source_connector_schema import SourceConnectorSchema +from vectorize_client.models.source_connector_type import SourceConnectorType from vectorize_client.models.start_deep_research_request import StartDeepResearchRequest -from vectorize_client.models.start_deep_research_request_n8n import StartDeepResearchRequestN8n from vectorize_client.models.start_deep_research_response import StartDeepResearchResponse from vectorize_client.models.start_extraction_request import StartExtractionRequest from vectorize_client.models.start_extraction_response import StartExtractionResponse @@ -89,8 +104,14 @@ from vectorize_client.models.start_pipeline_response import StartPipelineResponse from vectorize_client.models.stop_pipeline_response import StopPipelineResponse from vectorize_client.models.update_ai_platform_connector_request import UpdateAIPlatformConnectorRequest -from vectorize_client.models.update_ai_platform_connector_request_data import UpdateAIPlatformConnectorRequestData -from vectorize_client.models.update_destination_connector200_response import UpdateDestinationConnector200Response -from vectorize_client.models.update_destination_connector200_response_all_of_data import UpdateDestinationConnector200ResponseAllOfData +from vectorize_client.models.update_ai_platform_connector_response import UpdateAIPlatformConnectorResponse +from vectorize_client.models.update_destination_connector_request import UpdateDestinationConnectorRequest +from vectorize_client.models.update_destination_connector_response import UpdateDestinationConnectorResponse from vectorize_client.models.update_source_connector_request import UpdateSourceConnectorRequest -from vectorize_client.models.update_source_connector_request_data import UpdateSourceConnectorRequestData +from vectorize_client.models.update_source_connector_response import UpdateSourceConnectorResponse +from vectorize_client.models.update_source_connector_response_data import UpdateSourceConnectorResponseData +from vectorize_client.models.update_user_in_source_connector_request import UpdateUserInSourceConnectorRequest +from vectorize_client.models.update_user_in_source_connector_response import UpdateUserInSourceConnectorResponse +from vectorize_client.models.updated_ai_platform_connector_data import UpdatedAIPlatformConnectorData +from vectorize_client.models.updated_destination_connector_data import UpdatedDestinationConnectorData +from vectorize_client.models.upload_file import UploadFile diff --git a/src/python/vectorize_client/api/connectors_api.py b/src/python/vectorize_client/api/connectors_api.py index 0df069c..bd89604 100644 --- a/src/python/vectorize_client/api/connectors_api.py +++ b/src/python/vectorize_client/api/connectors_api.py @@ -17,11 +17,16 @@ from typing_extensions import Annotated from pydantic import Field, StrictStr -from typing import Any, Dict, List, Optional +from typing import List from typing_extensions import Annotated from vectorize_client.models.ai_platform import AIPlatform +from vectorize_client.models.add_user_from_source_connector_response import AddUserFromSourceConnectorResponse +from vectorize_client.models.add_user_to_source_connector_request import AddUserToSourceConnectorRequest +from vectorize_client.models.create_ai_platform_connector import CreateAIPlatformConnector from vectorize_client.models.create_ai_platform_connector_response import CreateAIPlatformConnectorResponse +from vectorize_client.models.create_destination_connector import CreateDestinationConnector from vectorize_client.models.create_destination_connector_response import CreateDestinationConnectorResponse +from vectorize_client.models.create_source_connector import CreateSourceConnector from vectorize_client.models.create_source_connector_response import CreateSourceConnectorResponse from vectorize_client.models.delete_ai_platform_connector_response import DeleteAIPlatformConnectorResponse from vectorize_client.models.delete_destination_connector_response import DeleteDestinationConnectorResponse @@ -30,10 +35,17 @@ from vectorize_client.models.get_ai_platform_connectors200_response import GetAIPlatformConnectors200Response from vectorize_client.models.get_destination_connectors200_response import GetDestinationConnectors200Response from vectorize_client.models.get_source_connectors200_response import GetSourceConnectors200Response +from vectorize_client.models.remove_user_from_source_connector_request import RemoveUserFromSourceConnectorRequest +from vectorize_client.models.remove_user_from_source_connector_response import RemoveUserFromSourceConnectorResponse from vectorize_client.models.source_connector import SourceConnector from vectorize_client.models.update_ai_platform_connector_request import UpdateAIPlatformConnectorRequest -from vectorize_client.models.update_destination_connector200_response import UpdateDestinationConnector200Response +from vectorize_client.models.update_ai_platform_connector_response import UpdateAIPlatformConnectorResponse +from vectorize_client.models.update_destination_connector_request import UpdateDestinationConnectorRequest +from vectorize_client.models.update_destination_connector_response import UpdateDestinationConnectorResponse from vectorize_client.models.update_source_connector_request import UpdateSourceConnectorRequest +from vectorize_client.models.update_source_connector_response import UpdateSourceConnectorResponse +from vectorize_client.models.update_user_in_source_connector_request import UpdateUserInSourceConnectorRequest +from vectorize_client.models.update_user_in_source_connector_response import UpdateUserInSourceConnectorResponse from vectorize_client.api_client import ApiClient, RequestSerialized from vectorize_client.api_response import ApiResponse @@ -54,10 +66,11 @@ def __init__(self, api_client=None) -> None: @validate_call - def create_ai_platform_connector( + def add_user_to_source_connector( self, organization: StrictStr, - request_body: Optional[Annotated[List[Dict[str, Any]], Field(min_length=1)]] = None, + source_connector_id: StrictStr, + add_user_to_source_connector_request: AddUserToSourceConnectorRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -70,14 +83,16 @@ def create_ai_platform_connector( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> CreateAIPlatformConnectorResponse: - """Create a new AI Platform connector + ) -> AddUserFromSourceConnectorResponse: + """Add a user to a source connector :param organization: (required) :type organization: str - :param request_body: - :type request_body: List[object] + :param source_connector_id: (required) + :type source_connector_id: str + :param add_user_to_source_connector_request: (required) + :type add_user_to_source_connector_request: AddUserToSourceConnectorRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -100,9 +115,10 @@ def create_ai_platform_connector( :return: Returns the result object. """ # noqa: E501 - _param = self._create_ai_platform_connector_serialize( + _param = self._add_user_to_source_connector_serialize( organization=organization, - request_body=request_body, + source_connector_id=source_connector_id, + add_user_to_source_connector_request=add_user_to_source_connector_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -110,7 +126,7 @@ def create_ai_platform_connector( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateAIPlatformConnectorResponse", + '200': "AddUserFromSourceConnectorResponse", '400': "GetPipelines400Response", '401': "GetPipelines400Response", '403': "GetPipelines400Response", @@ -129,10 +145,11 @@ def create_ai_platform_connector( @validate_call - def create_ai_platform_connector_with_http_info( + def add_user_to_source_connector_with_http_info( self, organization: StrictStr, - request_body: Optional[Annotated[List[Dict[str, Any]], Field(min_length=1)]] = None, + source_connector_id: StrictStr, + add_user_to_source_connector_request: AddUserToSourceConnectorRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -145,14 +162,16 @@ def create_ai_platform_connector_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[CreateAIPlatformConnectorResponse]: - """Create a new AI Platform connector + ) -> ApiResponse[AddUserFromSourceConnectorResponse]: + """Add a user to a source connector :param organization: (required) :type organization: str - :param request_body: - :type request_body: List[object] + :param source_connector_id: (required) + :type source_connector_id: str + :param add_user_to_source_connector_request: (required) + :type add_user_to_source_connector_request: AddUserToSourceConnectorRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -175,9 +194,10 @@ def create_ai_platform_connector_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._create_ai_platform_connector_serialize( + _param = self._add_user_to_source_connector_serialize( organization=organization, - request_body=request_body, + source_connector_id=source_connector_id, + add_user_to_source_connector_request=add_user_to_source_connector_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -185,7 +205,7 @@ def create_ai_platform_connector_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateAIPlatformConnectorResponse", + '200': "AddUserFromSourceConnectorResponse", '400': "GetPipelines400Response", '401': "GetPipelines400Response", '403': "GetPipelines400Response", @@ -204,10 +224,11 @@ def create_ai_platform_connector_with_http_info( @validate_call - def create_ai_platform_connector_without_preload_content( + def add_user_to_source_connector_without_preload_content( self, organization: StrictStr, - request_body: Optional[Annotated[List[Dict[str, Any]], Field(min_length=1)]] = None, + source_connector_id: StrictStr, + add_user_to_source_connector_request: AddUserToSourceConnectorRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -221,13 +242,15 @@ def create_ai_platform_connector_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Create a new AI Platform connector + """Add a user to a source connector :param organization: (required) :type organization: str - :param request_body: - :type request_body: List[object] + :param source_connector_id: (required) + :type source_connector_id: str + :param add_user_to_source_connector_request: (required) + :type add_user_to_source_connector_request: AddUserToSourceConnectorRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -250,9 +273,10 @@ def create_ai_platform_connector_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._create_ai_platform_connector_serialize( + _param = self._add_user_to_source_connector_serialize( organization=organization, - request_body=request_body, + source_connector_id=source_connector_id, + add_user_to_source_connector_request=add_user_to_source_connector_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -260,7 +284,7 @@ def create_ai_platform_connector_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateAIPlatformConnectorResponse", + '200': "AddUserFromSourceConnectorResponse", '400': "GetPipelines400Response", '401': "GetPipelines400Response", '403': "GetPipelines400Response", @@ -274,10 +298,11 @@ def create_ai_platform_connector_without_preload_content( return response_data.response - def _create_ai_platform_connector_serialize( + def _add_user_to_source_connector_serialize( self, organization, - request_body, + source_connector_id, + add_user_to_source_connector_request, _request_auth, _content_type, _headers, @@ -287,7 +312,6 @@ def _create_ai_platform_connector_serialize( _host = None _collection_formats: Dict[str, str] = { - 'request_body': '', } _path_params: Dict[str, str] = {} @@ -302,12 +326,14 @@ def _create_ai_platform_connector_serialize( # process the path parameters if organization is not None: _path_params['organization'] = organization + if source_connector_id is not None: + _path_params['sourceConnectorId'] = source_connector_id # process the query parameters # process the header parameters # process the form parameters # process the body parameter - if request_body is not None: - _body_params = request_body + if add_user_to_source_connector_request is not None: + _body_params = add_user_to_source_connector_request # set the HTTP header `Accept` @@ -339,7 +365,7 @@ def _create_ai_platform_connector_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/org/{organization}/connectors/aiplatforms', + resource_path='/org/{organization}/connectors/sources/{sourceConnectorId}/users', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -356,10 +382,10 @@ def _create_ai_platform_connector_serialize( @validate_call - def create_destination_connector( + def create_ai_platform_connector( self, organization: StrictStr, - request_body: Optional[Annotated[List[Dict[str, Any]], Field(min_length=1)]] = None, + create_ai_platform_connector: Annotated[List[CreateAIPlatformConnector], Field(min_length=1)], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -372,14 +398,14 @@ def create_destination_connector( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> CreateDestinationConnectorResponse: - """Create a new destination connector + ) -> CreateAIPlatformConnectorResponse: + """Create a new AI Platform connector. Config values: Amazon Bedrock (BEDROCK): Name (name): text, Access Key (access-key): text, Secret Key (key): text) | Google Vertex AI (VERTEX): Name (name): text, Region (region): text) | OpenAI (OPENAI): Name (name): text, API Key (key): text) | Voyage AI (VOYAGE): Name (name): text, API Key (key): text) | Built-in (VECTORIZE): ) :param organization: (required) :type organization: str - :param request_body: - :type request_body: List[object] + :param create_ai_platform_connector: (required) + :type create_ai_platform_connector: List[CreateAIPlatformConnector] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -402,9 +428,9 @@ def create_destination_connector( :return: Returns the result object. """ # noqa: E501 - _param = self._create_destination_connector_serialize( + _param = self._create_ai_platform_connector_serialize( organization=organization, - request_body=request_body, + create_ai_platform_connector=create_ai_platform_connector, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -412,7 +438,7 @@ def create_destination_connector( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateDestinationConnectorResponse", + '200': "CreateAIPlatformConnectorResponse", '400': "GetPipelines400Response", '401': "GetPipelines400Response", '403': "GetPipelines400Response", @@ -431,10 +457,10 @@ def create_destination_connector( @validate_call - def create_destination_connector_with_http_info( + def create_ai_platform_connector_with_http_info( self, organization: StrictStr, - request_body: Optional[Annotated[List[Dict[str, Any]], Field(min_length=1)]] = None, + create_ai_platform_connector: Annotated[List[CreateAIPlatformConnector], Field(min_length=1)], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -447,14 +473,14 @@ def create_destination_connector_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[CreateDestinationConnectorResponse]: - """Create a new destination connector + ) -> ApiResponse[CreateAIPlatformConnectorResponse]: + """Create a new AI Platform connector. Config values: Amazon Bedrock (BEDROCK): Name (name): text, Access Key (access-key): text, Secret Key (key): text) | Google Vertex AI (VERTEX): Name (name): text, Region (region): text) | OpenAI (OPENAI): Name (name): text, API Key (key): text) | Voyage AI (VOYAGE): Name (name): text, API Key (key): text) | Built-in (VECTORIZE): ) :param organization: (required) :type organization: str - :param request_body: - :type request_body: List[object] + :param create_ai_platform_connector: (required) + :type create_ai_platform_connector: List[CreateAIPlatformConnector] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -477,9 +503,9 @@ def create_destination_connector_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._create_destination_connector_serialize( + _param = self._create_ai_platform_connector_serialize( organization=organization, - request_body=request_body, + create_ai_platform_connector=create_ai_platform_connector, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -487,7 +513,7 @@ def create_destination_connector_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateDestinationConnectorResponse", + '200': "CreateAIPlatformConnectorResponse", '400': "GetPipelines400Response", '401': "GetPipelines400Response", '403': "GetPipelines400Response", @@ -506,10 +532,10 @@ def create_destination_connector_with_http_info( @validate_call - def create_destination_connector_without_preload_content( + def create_ai_platform_connector_without_preload_content( self, organization: StrictStr, - request_body: Optional[Annotated[List[Dict[str, Any]], Field(min_length=1)]] = None, + create_ai_platform_connector: Annotated[List[CreateAIPlatformConnector], Field(min_length=1)], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -523,13 +549,13 @@ def create_destination_connector_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Create a new destination connector + """Create a new AI Platform connector. Config values: Amazon Bedrock (BEDROCK): Name (name): text, Access Key (access-key): text, Secret Key (key): text) | Google Vertex AI (VERTEX): Name (name): text, Region (region): text) | OpenAI (OPENAI): Name (name): text, API Key (key): text) | Voyage AI (VOYAGE): Name (name): text, API Key (key): text) | Built-in (VECTORIZE): ) :param organization: (required) :type organization: str - :param request_body: - :type request_body: List[object] + :param create_ai_platform_connector: (required) + :type create_ai_platform_connector: List[CreateAIPlatformConnector] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -552,9 +578,9 @@ def create_destination_connector_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._create_destination_connector_serialize( + _param = self._create_ai_platform_connector_serialize( organization=organization, - request_body=request_body, + create_ai_platform_connector=create_ai_platform_connector, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -562,7 +588,7 @@ def create_destination_connector_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateDestinationConnectorResponse", + '200': "CreateAIPlatformConnectorResponse", '400': "GetPipelines400Response", '401': "GetPipelines400Response", '403': "GetPipelines400Response", @@ -576,10 +602,10 @@ def create_destination_connector_without_preload_content( return response_data.response - def _create_destination_connector_serialize( + def _create_ai_platform_connector_serialize( self, organization, - request_body, + create_ai_platform_connector, _request_auth, _content_type, _headers, @@ -589,7 +615,7 @@ def _create_destination_connector_serialize( _host = None _collection_formats: Dict[str, str] = { - 'request_body': '', + 'CreateAIPlatformConnector': '', } _path_params: Dict[str, str] = {} @@ -608,8 +634,8 @@ def _create_destination_connector_serialize( # process the header parameters # process the form parameters # process the body parameter - if request_body is not None: - _body_params = request_body + if create_ai_platform_connector is not None: + _body_params = create_ai_platform_connector # set the HTTP header `Accept` @@ -641,7 +667,7 @@ def _create_destination_connector_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/org/{organization}/connectors/destinations', + resource_path='/org/{organization}/connectors/aiplatforms', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -658,10 +684,10 @@ def _create_destination_connector_serialize( @validate_call - def create_source_connector( + def create_destination_connector( self, organization: StrictStr, - request_body: Optional[Annotated[List[Dict[str, Any]], Field(min_length=1)]] = None, + create_destination_connector: Annotated[List[CreateDestinationConnector], Field(min_length=1)], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -674,14 +700,14 @@ def create_source_connector( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> CreateSourceConnectorResponse: - """Create a new source connector + ) -> CreateDestinationConnectorResponse: + """Create a new destination connector. Config values: Couchbase Capella (CAPELLA): Name (name): text, Cluster Access Name (username): text, Cluster Access Password (password): text, Connection String (connection-string): text) | DataStax Astra (DATASTAX): Name (name): text, API Endpoint (endpoint_secret): text, Application Token (token): text) | Elasticsearch (ELASTIC): Name (name): text, Host (host): text, Port (port): text, API Key (api-key): text) | Pinecone (PINECONE): Name (name): text, API Key (api-key): text) | SingleStore (SINGLESTORE): Name (name): text, Host (host): text, Port (port): number, Database (database): text, Username (username): text, Password (password): text) | Milvus (MILVUS): Name (name): text, Public Endpoint (url): text, Token (token): text, Username (username): text, Password (password): text) | PostgreSQL (POSTGRESQL): Name (name): text, Host (host): text, Port (port): number, Database (database): text, Username (username): text, Password (password): text) | Qdrant (QDRANT): Name (name): text, Host (host): text, API Key (api-key): text) | Weaviate (WEAVIATE): Name (name): text, Endpoint (host): text, API Key (api-key): text) | Azure AI Search (AZUREAISEARCH): Name (name): text, Azure AI Search Service Name (service-name): text, API Key (api-key): text) | Built-in (VECTORIZE): ) | Chroma (CHROMA): Name (name): text, API Key (apiKey): text) | MongoDB (MONGODB): Name (name): text, API Key (apiKey): text) :param organization: (required) :type organization: str - :param request_body: - :type request_body: List[object] + :param create_destination_connector: (required) + :type create_destination_connector: List[CreateDestinationConnector] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -704,9 +730,9 @@ def create_source_connector( :return: Returns the result object. """ # noqa: E501 - _param = self._create_source_connector_serialize( + _param = self._create_destination_connector_serialize( organization=organization, - request_body=request_body, + create_destination_connector=create_destination_connector, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -714,7 +740,7 @@ def create_source_connector( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateSourceConnectorResponse", + '200': "CreateDestinationConnectorResponse", '400': "GetPipelines400Response", '401': "GetPipelines400Response", '403': "GetPipelines400Response", @@ -733,10 +759,10 @@ def create_source_connector( @validate_call - def create_source_connector_with_http_info( + def create_destination_connector_with_http_info( self, organization: StrictStr, - request_body: Optional[Annotated[List[Dict[str, Any]], Field(min_length=1)]] = None, + create_destination_connector: Annotated[List[CreateDestinationConnector], Field(min_length=1)], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -749,14 +775,14 @@ def create_source_connector_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[CreateSourceConnectorResponse]: - """Create a new source connector + ) -> ApiResponse[CreateDestinationConnectorResponse]: + """Create a new destination connector. Config values: Couchbase Capella (CAPELLA): Name (name): text, Cluster Access Name (username): text, Cluster Access Password (password): text, Connection String (connection-string): text) | DataStax Astra (DATASTAX): Name (name): text, API Endpoint (endpoint_secret): text, Application Token (token): text) | Elasticsearch (ELASTIC): Name (name): text, Host (host): text, Port (port): text, API Key (api-key): text) | Pinecone (PINECONE): Name (name): text, API Key (api-key): text) | SingleStore (SINGLESTORE): Name (name): text, Host (host): text, Port (port): number, Database (database): text, Username (username): text, Password (password): text) | Milvus (MILVUS): Name (name): text, Public Endpoint (url): text, Token (token): text, Username (username): text, Password (password): text) | PostgreSQL (POSTGRESQL): Name (name): text, Host (host): text, Port (port): number, Database (database): text, Username (username): text, Password (password): text) | Qdrant (QDRANT): Name (name): text, Host (host): text, API Key (api-key): text) | Weaviate (WEAVIATE): Name (name): text, Endpoint (host): text, API Key (api-key): text) | Azure AI Search (AZUREAISEARCH): Name (name): text, Azure AI Search Service Name (service-name): text, API Key (api-key): text) | Built-in (VECTORIZE): ) | Chroma (CHROMA): Name (name): text, API Key (apiKey): text) | MongoDB (MONGODB): Name (name): text, API Key (apiKey): text) :param organization: (required) :type organization: str - :param request_body: - :type request_body: List[object] + :param create_destination_connector: (required) + :type create_destination_connector: List[CreateDestinationConnector] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -779,9 +805,9 @@ def create_source_connector_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._create_source_connector_serialize( + _param = self._create_destination_connector_serialize( organization=organization, - request_body=request_body, + create_destination_connector=create_destination_connector, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -789,7 +815,7 @@ def create_source_connector_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateSourceConnectorResponse", + '200': "CreateDestinationConnectorResponse", '400': "GetPipelines400Response", '401': "GetPipelines400Response", '403': "GetPipelines400Response", @@ -808,10 +834,10 @@ def create_source_connector_with_http_info( @validate_call - def create_source_connector_without_preload_content( + def create_destination_connector_without_preload_content( self, organization: StrictStr, - request_body: Optional[Annotated[List[Dict[str, Any]], Field(min_length=1)]] = None, + create_destination_connector: Annotated[List[CreateDestinationConnector], Field(min_length=1)], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -825,13 +851,13 @@ def create_source_connector_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Create a new source connector + """Create a new destination connector. Config values: Couchbase Capella (CAPELLA): Name (name): text, Cluster Access Name (username): text, Cluster Access Password (password): text, Connection String (connection-string): text) | DataStax Astra (DATASTAX): Name (name): text, API Endpoint (endpoint_secret): text, Application Token (token): text) | Elasticsearch (ELASTIC): Name (name): text, Host (host): text, Port (port): text, API Key (api-key): text) | Pinecone (PINECONE): Name (name): text, API Key (api-key): text) | SingleStore (SINGLESTORE): Name (name): text, Host (host): text, Port (port): number, Database (database): text, Username (username): text, Password (password): text) | Milvus (MILVUS): Name (name): text, Public Endpoint (url): text, Token (token): text, Username (username): text, Password (password): text) | PostgreSQL (POSTGRESQL): Name (name): text, Host (host): text, Port (port): number, Database (database): text, Username (username): text, Password (password): text) | Qdrant (QDRANT): Name (name): text, Host (host): text, API Key (api-key): text) | Weaviate (WEAVIATE): Name (name): text, Endpoint (host): text, API Key (api-key): text) | Azure AI Search (AZUREAISEARCH): Name (name): text, Azure AI Search Service Name (service-name): text, API Key (api-key): text) | Built-in (VECTORIZE): ) | Chroma (CHROMA): Name (name): text, API Key (apiKey): text) | MongoDB (MONGODB): Name (name): text, API Key (apiKey): text) :param organization: (required) :type organization: str - :param request_body: - :type request_body: List[object] + :param create_destination_connector: (required) + :type create_destination_connector: List[CreateDestinationConnector] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -854,9 +880,9 @@ def create_source_connector_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._create_source_connector_serialize( + _param = self._create_destination_connector_serialize( organization=organization, - request_body=request_body, + create_destination_connector=create_destination_connector, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -864,7 +890,7 @@ def create_source_connector_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateSourceConnectorResponse", + '200': "CreateDestinationConnectorResponse", '400': "GetPipelines400Response", '401': "GetPipelines400Response", '403': "GetPipelines400Response", @@ -878,10 +904,10 @@ def create_source_connector_without_preload_content( return response_data.response - def _create_source_connector_serialize( + def _create_destination_connector_serialize( self, organization, - request_body, + create_destination_connector, _request_auth, _content_type, _headers, @@ -891,7 +917,7 @@ def _create_source_connector_serialize( _host = None _collection_formats: Dict[str, str] = { - 'request_body': '', + 'CreateDestinationConnector': '', } _path_params: Dict[str, str] = {} @@ -910,8 +936,8 @@ def _create_source_connector_serialize( # process the header parameters # process the form parameters # process the body parameter - if request_body is not None: - _body_params = request_body + if create_destination_connector is not None: + _body_params = create_destination_connector # set the HTTP header `Accept` @@ -943,7 +969,7 @@ def _create_source_connector_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/org/{organization}/connectors/sources', + resource_path='/org/{organization}/connectors/destinations', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -960,10 +986,10 @@ def _create_source_connector_serialize( @validate_call - def delete_ai_platform( + def create_source_connector( self, organization: StrictStr, - aiplatform_id: StrictStr, + create_source_connector: Annotated[List[CreateSourceConnector], Field(min_length=1)], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -976,14 +1002,14 @@ def delete_ai_platform( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> DeleteAIPlatformConnectorResponse: - """Delete an AI platform connector + ) -> CreateSourceConnectorResponse: + """Create a new source connector. Config values: Amazon S3 (AWS_S3): Name (name): text, Access Key (access-key): text, Secret Key (secret-key): text, Bucket Name (bucket-name): text, Endpoint (endpoint): url, Region (region): text, Allow as archive destination (archiver): boolean) | Azure Blob Storage (AZURE_BLOB): Name (name): text, Storage Account Name (storage-account-name): text, Storage Account Key (storage-account-key): text, Container (container): text, Endpoint (endpoint): url) | Confluence (CONFLUENCE): Name (name): text, Username (username): text, API Token (api-token): text, Domain (domain): text) | Discord (DISCORD): Name (name): text, Server ID (guild-id): text, Bot token (bot-token): text, Channel ID (channel-ids): array oftext) | Dropbox (DROPBOX): Name (name): text) | Google Drive OAuth (GOOGLE_DRIVE_OAUTH): Name (name): text) | Google Drive OAuth (Multi-user) (GOOGLE_DRIVE_OAUTH_MULTI): Name (name): text) | Google Drive OAuth (Multi-user with white label) (GOOGLE_DRIVE_OAUTH_MULTI_CUSTOM): Name (name): text, OAuth2 Client Id (oauth2-client-id): text, OAuth2 Client Secret (oauth2-client-secret): text) | Firecrawl (FIRECRAWL): Name (name): text, API Key (api-key): text) | GCP Cloud Storage (GCS): Name (name): text, Bucket (bucket-name): text) | Google Drive (GOOGLE_DRIVE): Name (name): text) | Intercom (INTERCOM): Name (name): text, Access Token (intercomAccessToken): text) | OneDrive (ONE_DRIVE): Name (name): text, Client Id (ms-client-id): text, Tenant Id (ms-tenant-id): text, Client Secret (ms-client-secret): text, Users (users): array oftext) | SharePoint (SHAREPOINT): Name (name): text, Client Id (ms-client-id): text, Tenant Id (ms-tenant-id): text, Client Secret (ms-client-secret): text) | Web Crawler (WEB_CRAWLER): Name (name): text, Seed URL(s) (seed-urls): array ofurl) | File Upload (FILE_UPLOAD): Name (name): text) :param organization: (required) :type organization: str - :param aiplatform_id: (required) - :type aiplatform_id: str + :param create_source_connector: (required) + :type create_source_connector: List[CreateSourceConnector] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1006,9 +1032,9 @@ def delete_ai_platform( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_ai_platform_serialize( + _param = self._create_source_connector_serialize( organization=organization, - aiplatform_id=aiplatform_id, + create_source_connector=create_source_connector, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1016,7 +1042,7 @@ def delete_ai_platform( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DeleteAIPlatformConnectorResponse", + '200': "CreateSourceConnectorResponse", '400': "GetPipelines400Response", '401': "GetPipelines400Response", '403': "GetPipelines400Response", @@ -1035,10 +1061,10 @@ def delete_ai_platform( @validate_call - def delete_ai_platform_with_http_info( + def create_source_connector_with_http_info( self, organization: StrictStr, - aiplatform_id: StrictStr, + create_source_connector: Annotated[List[CreateSourceConnector], Field(min_length=1)], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1051,14 +1077,14 @@ def delete_ai_platform_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[DeleteAIPlatformConnectorResponse]: - """Delete an AI platform connector + ) -> ApiResponse[CreateSourceConnectorResponse]: + """Create a new source connector. Config values: Amazon S3 (AWS_S3): Name (name): text, Access Key (access-key): text, Secret Key (secret-key): text, Bucket Name (bucket-name): text, Endpoint (endpoint): url, Region (region): text, Allow as archive destination (archiver): boolean) | Azure Blob Storage (AZURE_BLOB): Name (name): text, Storage Account Name (storage-account-name): text, Storage Account Key (storage-account-key): text, Container (container): text, Endpoint (endpoint): url) | Confluence (CONFLUENCE): Name (name): text, Username (username): text, API Token (api-token): text, Domain (domain): text) | Discord (DISCORD): Name (name): text, Server ID (guild-id): text, Bot token (bot-token): text, Channel ID (channel-ids): array oftext) | Dropbox (DROPBOX): Name (name): text) | Google Drive OAuth (GOOGLE_DRIVE_OAUTH): Name (name): text) | Google Drive OAuth (Multi-user) (GOOGLE_DRIVE_OAUTH_MULTI): Name (name): text) | Google Drive OAuth (Multi-user with white label) (GOOGLE_DRIVE_OAUTH_MULTI_CUSTOM): Name (name): text, OAuth2 Client Id (oauth2-client-id): text, OAuth2 Client Secret (oauth2-client-secret): text) | Firecrawl (FIRECRAWL): Name (name): text, API Key (api-key): text) | GCP Cloud Storage (GCS): Name (name): text, Bucket (bucket-name): text) | Google Drive (GOOGLE_DRIVE): Name (name): text) | Intercom (INTERCOM): Name (name): text, Access Token (intercomAccessToken): text) | OneDrive (ONE_DRIVE): Name (name): text, Client Id (ms-client-id): text, Tenant Id (ms-tenant-id): text, Client Secret (ms-client-secret): text, Users (users): array oftext) | SharePoint (SHAREPOINT): Name (name): text, Client Id (ms-client-id): text, Tenant Id (ms-tenant-id): text, Client Secret (ms-client-secret): text) | Web Crawler (WEB_CRAWLER): Name (name): text, Seed URL(s) (seed-urls): array ofurl) | File Upload (FILE_UPLOAD): Name (name): text) :param organization: (required) :type organization: str - :param aiplatform_id: (required) - :type aiplatform_id: str + :param create_source_connector: (required) + :type create_source_connector: List[CreateSourceConnector] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1081,9 +1107,9 @@ def delete_ai_platform_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_ai_platform_serialize( + _param = self._create_source_connector_serialize( organization=organization, - aiplatform_id=aiplatform_id, + create_source_connector=create_source_connector, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1091,7 +1117,7 @@ def delete_ai_platform_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DeleteAIPlatformConnectorResponse", + '200': "CreateSourceConnectorResponse", '400': "GetPipelines400Response", '401': "GetPipelines400Response", '403': "GetPipelines400Response", @@ -1110,10 +1136,10 @@ def delete_ai_platform_with_http_info( @validate_call - def delete_ai_platform_without_preload_content( + def create_source_connector_without_preload_content( self, organization: StrictStr, - aiplatform_id: StrictStr, + create_source_connector: Annotated[List[CreateSourceConnector], Field(min_length=1)], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1127,13 +1153,13 @@ def delete_ai_platform_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Delete an AI platform connector + """Create a new source connector. Config values: Amazon S3 (AWS_S3): Name (name): text, Access Key (access-key): text, Secret Key (secret-key): text, Bucket Name (bucket-name): text, Endpoint (endpoint): url, Region (region): text, Allow as archive destination (archiver): boolean) | Azure Blob Storage (AZURE_BLOB): Name (name): text, Storage Account Name (storage-account-name): text, Storage Account Key (storage-account-key): text, Container (container): text, Endpoint (endpoint): url) | Confluence (CONFLUENCE): Name (name): text, Username (username): text, API Token (api-token): text, Domain (domain): text) | Discord (DISCORD): Name (name): text, Server ID (guild-id): text, Bot token (bot-token): text, Channel ID (channel-ids): array oftext) | Dropbox (DROPBOX): Name (name): text) | Google Drive OAuth (GOOGLE_DRIVE_OAUTH): Name (name): text) | Google Drive OAuth (Multi-user) (GOOGLE_DRIVE_OAUTH_MULTI): Name (name): text) | Google Drive OAuth (Multi-user with white label) (GOOGLE_DRIVE_OAUTH_MULTI_CUSTOM): Name (name): text, OAuth2 Client Id (oauth2-client-id): text, OAuth2 Client Secret (oauth2-client-secret): text) | Firecrawl (FIRECRAWL): Name (name): text, API Key (api-key): text) | GCP Cloud Storage (GCS): Name (name): text, Bucket (bucket-name): text) | Google Drive (GOOGLE_DRIVE): Name (name): text) | Intercom (INTERCOM): Name (name): text, Access Token (intercomAccessToken): text) | OneDrive (ONE_DRIVE): Name (name): text, Client Id (ms-client-id): text, Tenant Id (ms-tenant-id): text, Client Secret (ms-client-secret): text, Users (users): array oftext) | SharePoint (SHAREPOINT): Name (name): text, Client Id (ms-client-id): text, Tenant Id (ms-tenant-id): text, Client Secret (ms-client-secret): text) | Web Crawler (WEB_CRAWLER): Name (name): text, Seed URL(s) (seed-urls): array ofurl) | File Upload (FILE_UPLOAD): Name (name): text) :param organization: (required) :type organization: str - :param aiplatform_id: (required) - :type aiplatform_id: str + :param create_source_connector: (required) + :type create_source_connector: List[CreateSourceConnector] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1156,9 +1182,9 @@ def delete_ai_platform_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_ai_platform_serialize( + _param = self._create_source_connector_serialize( organization=organization, - aiplatform_id=aiplatform_id, + create_source_connector=create_source_connector, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1166,7 +1192,7 @@ def delete_ai_platform_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DeleteAIPlatformConnectorResponse", + '200': "CreateSourceConnectorResponse", '400': "GetPipelines400Response", '401': "GetPipelines400Response", '403': "GetPipelines400Response", @@ -1180,10 +1206,10 @@ def delete_ai_platform_without_preload_content( return response_data.response - def _delete_ai_platform_serialize( + def _create_source_connector_serialize( self, organization, - aiplatform_id, + create_source_connector, _request_auth, _content_type, _headers, @@ -1193,6 +1219,7 @@ def _delete_ai_platform_serialize( _host = None _collection_formats: Dict[str, str] = { + 'CreateSourceConnector': '', } _path_params: Dict[str, str] = {} @@ -1207,12 +1234,12 @@ def _delete_ai_platform_serialize( # process the path parameters if organization is not None: _path_params['organization'] = organization - if aiplatform_id is not None: - _path_params['aiplatformId'] = aiplatform_id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + if create_source_connector is not None: + _body_params = create_source_connector # set the HTTP header `Accept` @@ -1223,6 +1250,19 @@ def _delete_ai_platform_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -1230,8 +1270,8 @@ def _delete_ai_platform_serialize( ] return self.api_client.param_serialize( - method='DELETE', - resource_path='/org/{organization}/connectors/aiplatforms/{aiplatformId}', + method='POST', + resource_path='/org/{organization}/connectors/sources', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1248,10 +1288,10 @@ def _delete_ai_platform_serialize( @validate_call - def delete_destination_connector( + def delete_ai_platform( self, organization: StrictStr, - destination_connector_id: StrictStr, + aiplatform_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1264,14 +1304,14 @@ def delete_destination_connector( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> DeleteDestinationConnectorResponse: - """Delete a destination connector + ) -> DeleteAIPlatformConnectorResponse: + """Delete an AI platform connector :param organization: (required) :type organization: str - :param destination_connector_id: (required) - :type destination_connector_id: str + :param aiplatform_id: (required) + :type aiplatform_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1294,9 +1334,9 @@ def delete_destination_connector( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_destination_connector_serialize( + _param = self._delete_ai_platform_serialize( organization=organization, - destination_connector_id=destination_connector_id, + aiplatform_id=aiplatform_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1304,7 +1344,7 @@ def delete_destination_connector( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DeleteDestinationConnectorResponse", + '200': "DeleteAIPlatformConnectorResponse", '400': "GetPipelines400Response", '401': "GetPipelines400Response", '403': "GetPipelines400Response", @@ -1323,10 +1363,10 @@ def delete_destination_connector( @validate_call - def delete_destination_connector_with_http_info( + def delete_ai_platform_with_http_info( self, organization: StrictStr, - destination_connector_id: StrictStr, + aiplatform_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1339,14 +1379,14 @@ def delete_destination_connector_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[DeleteDestinationConnectorResponse]: - """Delete a destination connector + ) -> ApiResponse[DeleteAIPlatformConnectorResponse]: + """Delete an AI platform connector :param organization: (required) :type organization: str - :param destination_connector_id: (required) - :type destination_connector_id: str + :param aiplatform_id: (required) + :type aiplatform_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1369,9 +1409,9 @@ def delete_destination_connector_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_destination_connector_serialize( + _param = self._delete_ai_platform_serialize( organization=organization, - destination_connector_id=destination_connector_id, + aiplatform_id=aiplatform_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1379,7 +1419,7 @@ def delete_destination_connector_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DeleteDestinationConnectorResponse", + '200': "DeleteAIPlatformConnectorResponse", '400': "GetPipelines400Response", '401': "GetPipelines400Response", '403': "GetPipelines400Response", @@ -1398,10 +1438,10 @@ def delete_destination_connector_with_http_info( @validate_call - def delete_destination_connector_without_preload_content( + def delete_ai_platform_without_preload_content( self, organization: StrictStr, - destination_connector_id: StrictStr, + aiplatform_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1415,13 +1455,13 @@ def delete_destination_connector_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Delete a destination connector + """Delete an AI platform connector :param organization: (required) :type organization: str - :param destination_connector_id: (required) - :type destination_connector_id: str + :param aiplatform_id: (required) + :type aiplatform_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1444,9 +1484,9 @@ def delete_destination_connector_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_destination_connector_serialize( + _param = self._delete_ai_platform_serialize( organization=organization, - destination_connector_id=destination_connector_id, + aiplatform_id=aiplatform_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1454,7 +1494,7 @@ def delete_destination_connector_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DeleteDestinationConnectorResponse", + '200': "DeleteAIPlatformConnectorResponse", '400': "GetPipelines400Response", '401': "GetPipelines400Response", '403': "GetPipelines400Response", @@ -1468,10 +1508,10 @@ def delete_destination_connector_without_preload_content( return response_data.response - def _delete_destination_connector_serialize( + def _delete_ai_platform_serialize( self, organization, - destination_connector_id, + aiplatform_id, _request_auth, _content_type, _headers, @@ -1495,8 +1535,8 @@ def _delete_destination_connector_serialize( # process the path parameters if organization is not None: _path_params['organization'] = organization - if destination_connector_id is not None: - _path_params['destinationConnectorId'] = destination_connector_id + if aiplatform_id is not None: + _path_params['aiplatformId'] = aiplatform_id # process the query parameters # process the header parameters # process the form parameters @@ -1519,7 +1559,7 @@ def _delete_destination_connector_serialize( return self.api_client.param_serialize( method='DELETE', - resource_path='/org/{organization}/connectors/destinations/{destinationConnectorId}', + resource_path='/org/{organization}/connectors/aiplatforms/{aiplatformId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1536,10 +1576,10 @@ def _delete_destination_connector_serialize( @validate_call - def delete_source_connector( + def delete_destination_connector( self, organization: StrictStr, - source_connector_id: StrictStr, + destination_connector_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1552,14 +1592,14 @@ def delete_source_connector( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> DeleteSourceConnectorResponse: - """Delete a source connector + ) -> DeleteDestinationConnectorResponse: + """Delete a destination connector :param organization: (required) :type organization: str - :param source_connector_id: (required) - :type source_connector_id: str + :param destination_connector_id: (required) + :type destination_connector_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1582,9 +1622,9 @@ def delete_source_connector( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_source_connector_serialize( + _param = self._delete_destination_connector_serialize( organization=organization, - source_connector_id=source_connector_id, + destination_connector_id=destination_connector_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1592,7 +1632,7 @@ def delete_source_connector( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DeleteSourceConnectorResponse", + '200': "DeleteDestinationConnectorResponse", '400': "GetPipelines400Response", '401': "GetPipelines400Response", '403': "GetPipelines400Response", @@ -1611,10 +1651,10 @@ def delete_source_connector( @validate_call - def delete_source_connector_with_http_info( + def delete_destination_connector_with_http_info( self, organization: StrictStr, - source_connector_id: StrictStr, + destination_connector_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1627,14 +1667,14 @@ def delete_source_connector_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[DeleteSourceConnectorResponse]: - """Delete a source connector + ) -> ApiResponse[DeleteDestinationConnectorResponse]: + """Delete a destination connector :param organization: (required) :type organization: str - :param source_connector_id: (required) - :type source_connector_id: str + :param destination_connector_id: (required) + :type destination_connector_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1657,9 +1697,9 @@ def delete_source_connector_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_source_connector_serialize( + _param = self._delete_destination_connector_serialize( organization=organization, - source_connector_id=source_connector_id, + destination_connector_id=destination_connector_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1667,7 +1707,7 @@ def delete_source_connector_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DeleteSourceConnectorResponse", + '200': "DeleteDestinationConnectorResponse", '400': "GetPipelines400Response", '401': "GetPipelines400Response", '403': "GetPipelines400Response", @@ -1686,10 +1726,10 @@ def delete_source_connector_with_http_info( @validate_call - def delete_source_connector_without_preload_content( + def delete_destination_connector_without_preload_content( self, organization: StrictStr, - source_connector_id: StrictStr, + destination_connector_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1703,13 +1743,13 @@ def delete_source_connector_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Delete a source connector + """Delete a destination connector :param organization: (required) :type organization: str - :param source_connector_id: (required) - :type source_connector_id: str + :param destination_connector_id: (required) + :type destination_connector_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1732,9 +1772,9 @@ def delete_source_connector_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_source_connector_serialize( + _param = self._delete_destination_connector_serialize( organization=organization, - source_connector_id=source_connector_id, + destination_connector_id=destination_connector_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1742,7 +1782,7 @@ def delete_source_connector_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DeleteSourceConnectorResponse", + '200': "DeleteDestinationConnectorResponse", '400': "GetPipelines400Response", '401': "GetPipelines400Response", '403': "GetPipelines400Response", @@ -1756,10 +1796,902 @@ def delete_source_connector_without_preload_content( return response_data.response - def _delete_source_connector_serialize( + def _delete_destination_connector_serialize( self, organization, - source_connector_id, + destination_connector_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if organization is not None: + _path_params['organization'] = organization + if destination_connector_id is not None: + _path_params['destinationConnectorId'] = destination_connector_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'bearerAuth' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/org/{organization}/connectors/destinations/{destinationConnectorId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def delete_source_connector( + self, + organization: StrictStr, + source_connector_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> DeleteSourceConnectorResponse: + """Delete a source connector + + + :param organization: (required) + :type organization: str + :param source_connector_id: (required) + :type source_connector_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_source_connector_serialize( + organization=organization, + source_connector_id=source_connector_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeleteSourceConnectorResponse", + '400': "GetPipelines400Response", + '401': "GetPipelines400Response", + '403': "GetPipelines400Response", + '404': "GetPipelines400Response", + '500': "GetPipelines400Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def delete_source_connector_with_http_info( + self, + organization: StrictStr, + source_connector_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[DeleteSourceConnectorResponse]: + """Delete a source connector + + + :param organization: (required) + :type organization: str + :param source_connector_id: (required) + :type source_connector_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_source_connector_serialize( + organization=organization, + source_connector_id=source_connector_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeleteSourceConnectorResponse", + '400': "GetPipelines400Response", + '401': "GetPipelines400Response", + '403': "GetPipelines400Response", + '404': "GetPipelines400Response", + '500': "GetPipelines400Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def delete_source_connector_without_preload_content( + self, + organization: StrictStr, + source_connector_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Delete a source connector + + + :param organization: (required) + :type organization: str + :param source_connector_id: (required) + :type source_connector_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_source_connector_serialize( + organization=organization, + source_connector_id=source_connector_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeleteSourceConnectorResponse", + '400': "GetPipelines400Response", + '401': "GetPipelines400Response", + '403': "GetPipelines400Response", + '404': "GetPipelines400Response", + '500': "GetPipelines400Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _delete_source_connector_serialize( + self, + organization, + source_connector_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if organization is not None: + _path_params['organization'] = organization + if source_connector_id is not None: + _path_params['sourceConnectorId'] = source_connector_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'bearerAuth' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/org/{organization}/connectors/sources/{sourceConnectorId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def delete_user_from_source_connector( + self, + organization: StrictStr, + source_connector_id: StrictStr, + remove_user_from_source_connector_request: RemoveUserFromSourceConnectorRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RemoveUserFromSourceConnectorResponse: + """Delete a source connector user + + + :param organization: (required) + :type organization: str + :param source_connector_id: (required) + :type source_connector_id: str + :param remove_user_from_source_connector_request: (required) + :type remove_user_from_source_connector_request: RemoveUserFromSourceConnectorRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_user_from_source_connector_serialize( + organization=organization, + source_connector_id=source_connector_id, + remove_user_from_source_connector_request=remove_user_from_source_connector_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "RemoveUserFromSourceConnectorResponse", + '400': "GetPipelines400Response", + '401': "GetPipelines400Response", + '403': "GetPipelines400Response", + '404': "GetPipelines400Response", + '500': "GetPipelines400Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def delete_user_from_source_connector_with_http_info( + self, + organization: StrictStr, + source_connector_id: StrictStr, + remove_user_from_source_connector_request: RemoveUserFromSourceConnectorRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[RemoveUserFromSourceConnectorResponse]: + """Delete a source connector user + + + :param organization: (required) + :type organization: str + :param source_connector_id: (required) + :type source_connector_id: str + :param remove_user_from_source_connector_request: (required) + :type remove_user_from_source_connector_request: RemoveUserFromSourceConnectorRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_user_from_source_connector_serialize( + organization=organization, + source_connector_id=source_connector_id, + remove_user_from_source_connector_request=remove_user_from_source_connector_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "RemoveUserFromSourceConnectorResponse", + '400': "GetPipelines400Response", + '401': "GetPipelines400Response", + '403': "GetPipelines400Response", + '404': "GetPipelines400Response", + '500': "GetPipelines400Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def delete_user_from_source_connector_without_preload_content( + self, + organization: StrictStr, + source_connector_id: StrictStr, + remove_user_from_source_connector_request: RemoveUserFromSourceConnectorRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Delete a source connector user + + + :param organization: (required) + :type organization: str + :param source_connector_id: (required) + :type source_connector_id: str + :param remove_user_from_source_connector_request: (required) + :type remove_user_from_source_connector_request: RemoveUserFromSourceConnectorRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_user_from_source_connector_serialize( + organization=organization, + source_connector_id=source_connector_id, + remove_user_from_source_connector_request=remove_user_from_source_connector_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "RemoveUserFromSourceConnectorResponse", + '400': "GetPipelines400Response", + '401': "GetPipelines400Response", + '403': "GetPipelines400Response", + '404': "GetPipelines400Response", + '500': "GetPipelines400Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _delete_user_from_source_connector_serialize( + self, + organization, + source_connector_id, + remove_user_from_source_connector_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if organization is not None: + _path_params['organization'] = organization + if source_connector_id is not None: + _path_params['sourceConnectorId'] = source_connector_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if remove_user_from_source_connector_request is not None: + _body_params = remove_user_from_source_connector_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'bearerAuth' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/org/{organization}/connectors/sources/{sourceConnectorId}/users', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_ai_platform_connector( + self, + organization: StrictStr, + aiplatform_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> AIPlatform: + """Get an AI platform connector + + + :param organization: (required) + :type organization: str + :param aiplatform_id: (required) + :type aiplatform_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_ai_platform_connector_serialize( + organization=organization, + aiplatform_id=aiplatform_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AIPlatform", + '400': "GetPipelines400Response", + '401': "GetPipelines400Response", + '403': "GetPipelines400Response", + '404': "GetPipelines400Response", + '500': "GetPipelines400Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_ai_platform_connector_with_http_info( + self, + organization: StrictStr, + aiplatform_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[AIPlatform]: + """Get an AI platform connector + + + :param organization: (required) + :type organization: str + :param aiplatform_id: (required) + :type aiplatform_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_ai_platform_connector_serialize( + organization=organization, + aiplatform_id=aiplatform_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AIPlatform", + '400': "GetPipelines400Response", + '401': "GetPipelines400Response", + '403': "GetPipelines400Response", + '404': "GetPipelines400Response", + '500': "GetPipelines400Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_ai_platform_connector_without_preload_content( + self, + organization: StrictStr, + aiplatform_id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get an AI platform connector + + + :param organization: (required) + :type organization: str + :param aiplatform_id: (required) + :type aiplatform_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_ai_platform_connector_serialize( + organization=organization, + aiplatform_id=aiplatform_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AIPlatform", + '400': "GetPipelines400Response", + '401': "GetPipelines400Response", + '403': "GetPipelines400Response", + '404': "GetPipelines400Response", + '500': "GetPipelines400Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_ai_platform_connector_serialize( + self, + organization, + aiplatform_id, _request_auth, _content_type, _headers, @@ -1783,8 +2715,8 @@ def _delete_source_connector_serialize( # process the path parameters if organization is not None: _path_params['organization'] = organization - if source_connector_id is not None: - _path_params['sourceConnectorId'] = source_connector_id + if aiplatform_id is not None: + _path_params['aiplatformId'] = aiplatform_id # process the query parameters # process the header parameters # process the form parameters @@ -1806,8 +2738,8 @@ def _delete_source_connector_serialize( ] return self.api_client.param_serialize( - method='DELETE', - resource_path='/org/{organization}/connectors/sources/{sourceConnectorId}', + method='GET', + resource_path='/org/{organization}/connectors/aiplatforms/{aiplatformId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1824,10 +2756,9 @@ def _delete_source_connector_serialize( @validate_call - def get_ai_platform_connector( + def get_ai_platform_connectors( self, organization: StrictStr, - aiplatform_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1840,14 +2771,12 @@ def get_ai_platform_connector( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AIPlatform: - """Get an AI platform connector + ) -> GetAIPlatformConnectors200Response: + """Get all existing AI Platform connectors :param organization: (required) :type organization: str - :param aiplatform_id: (required) - :type aiplatform_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1870,9 +2799,8 @@ def get_ai_platform_connector( :return: Returns the result object. """ # noqa: E501 - _param = self._get_ai_platform_connector_serialize( + _param = self._get_ai_platform_connectors_serialize( organization=organization, - aiplatform_id=aiplatform_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1880,7 +2808,7 @@ def get_ai_platform_connector( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AIPlatform", + '200': "GetAIPlatformConnectors200Response", '400': "GetPipelines400Response", '401': "GetPipelines400Response", '403': "GetPipelines400Response", @@ -1899,10 +2827,9 @@ def get_ai_platform_connector( @validate_call - def get_ai_platform_connector_with_http_info( + def get_ai_platform_connectors_with_http_info( self, organization: StrictStr, - aiplatform_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1915,14 +2842,12 @@ def get_ai_platform_connector_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AIPlatform]: - """Get an AI platform connector + ) -> ApiResponse[GetAIPlatformConnectors200Response]: + """Get all existing AI Platform connectors :param organization: (required) :type organization: str - :param aiplatform_id: (required) - :type aiplatform_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1945,9 +2870,8 @@ def get_ai_platform_connector_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_ai_platform_connector_serialize( + _param = self._get_ai_platform_connectors_serialize( organization=organization, - aiplatform_id=aiplatform_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1955,7 +2879,7 @@ def get_ai_platform_connector_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AIPlatform", + '200': "GetAIPlatformConnectors200Response", '400': "GetPipelines400Response", '401': "GetPipelines400Response", '403': "GetPipelines400Response", @@ -1974,10 +2898,9 @@ def get_ai_platform_connector_with_http_info( @validate_call - def get_ai_platform_connector_without_preload_content( + def get_ai_platform_connectors_without_preload_content( self, organization: StrictStr, - aiplatform_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1991,13 +2914,11 @@ def get_ai_platform_connector_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get an AI platform connector + """Get all existing AI Platform connectors :param organization: (required) :type organization: str - :param aiplatform_id: (required) - :type aiplatform_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2020,9 +2941,8 @@ def get_ai_platform_connector_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_ai_platform_connector_serialize( + _param = self._get_ai_platform_connectors_serialize( organization=organization, - aiplatform_id=aiplatform_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2030,7 +2950,7 @@ def get_ai_platform_connector_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AIPlatform", + '200': "GetAIPlatformConnectors200Response", '400': "GetPipelines400Response", '401': "GetPipelines400Response", '403': "GetPipelines400Response", @@ -2044,10 +2964,9 @@ def get_ai_platform_connector_without_preload_content( return response_data.response - def _get_ai_platform_connector_serialize( + def _get_ai_platform_connectors_serialize( self, organization, - aiplatform_id, _request_auth, _content_type, _headers, @@ -2071,8 +2990,6 @@ def _get_ai_platform_connector_serialize( # process the path parameters if organization is not None: _path_params['organization'] = organization - if aiplatform_id is not None: - _path_params['aiplatformId'] = aiplatform_id # process the query parameters # process the header parameters # process the form parameters @@ -2095,7 +3012,7 @@ def _get_ai_platform_connector_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/org/{organization}/connectors/aiplatforms/{aiplatformId}', + resource_path='/org/{organization}/connectors/aiplatforms', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2112,9 +3029,10 @@ def _get_ai_platform_connector_serialize( @validate_call - def get_ai_platform_connectors( + def get_destination_connector( self, organization: StrictStr, + destination_connector_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2127,12 +3045,14 @@ def get_ai_platform_connectors( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetAIPlatformConnectors200Response: - """Get all existing AI Platform connectors + ) -> DestinationConnector: + """Get a destination connector :param organization: (required) :type organization: str + :param destination_connector_id: (required) + :type destination_connector_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2155,8 +3075,9 @@ def get_ai_platform_connectors( :return: Returns the result object. """ # noqa: E501 - _param = self._get_ai_platform_connectors_serialize( + _param = self._get_destination_connector_serialize( organization=organization, + destination_connector_id=destination_connector_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2164,7 +3085,7 @@ def get_ai_platform_connectors( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetAIPlatformConnectors200Response", + '200': "DestinationConnector", '400': "GetPipelines400Response", '401': "GetPipelines400Response", '403': "GetPipelines400Response", @@ -2183,9 +3104,10 @@ def get_ai_platform_connectors( @validate_call - def get_ai_platform_connectors_with_http_info( + def get_destination_connector_with_http_info( self, organization: StrictStr, + destination_connector_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2198,12 +3120,14 @@ def get_ai_platform_connectors_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetAIPlatformConnectors200Response]: - """Get all existing AI Platform connectors + ) -> ApiResponse[DestinationConnector]: + """Get a destination connector :param organization: (required) :type organization: str + :param destination_connector_id: (required) + :type destination_connector_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2226,8 +3150,9 @@ def get_ai_platform_connectors_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_ai_platform_connectors_serialize( + _param = self._get_destination_connector_serialize( organization=organization, + destination_connector_id=destination_connector_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2235,7 +3160,7 @@ def get_ai_platform_connectors_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetAIPlatformConnectors200Response", + '200': "DestinationConnector", '400': "GetPipelines400Response", '401': "GetPipelines400Response", '403': "GetPipelines400Response", @@ -2254,9 +3179,10 @@ def get_ai_platform_connectors_with_http_info( @validate_call - def get_ai_platform_connectors_without_preload_content( + def get_destination_connector_without_preload_content( self, organization: StrictStr, + destination_connector_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2270,11 +3196,13 @@ def get_ai_platform_connectors_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get all existing AI Platform connectors + """Get a destination connector :param organization: (required) :type organization: str + :param destination_connector_id: (required) + :type destination_connector_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2297,8 +3225,9 @@ def get_ai_platform_connectors_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_ai_platform_connectors_serialize( + _param = self._get_destination_connector_serialize( organization=organization, + destination_connector_id=destination_connector_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2306,7 +3235,7 @@ def get_ai_platform_connectors_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetAIPlatformConnectors200Response", + '200': "DestinationConnector", '400': "GetPipelines400Response", '401': "GetPipelines400Response", '403': "GetPipelines400Response", @@ -2320,9 +3249,10 @@ def get_ai_platform_connectors_without_preload_content( return response_data.response - def _get_ai_platform_connectors_serialize( + def _get_destination_connector_serialize( self, organization, + destination_connector_id, _request_auth, _content_type, _headers, @@ -2346,6 +3276,8 @@ def _get_ai_platform_connectors_serialize( # process the path parameters if organization is not None: _path_params['organization'] = organization + if destination_connector_id is not None: + _path_params['destinationConnectorId'] = destination_connector_id # process the query parameters # process the header parameters # process the form parameters @@ -2368,7 +3300,7 @@ def _get_ai_platform_connectors_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/org/{organization}/connectors/aiplatforms', + resource_path='/org/{organization}/connectors/destinations/{destinationConnectorId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2385,10 +3317,9 @@ def _get_ai_platform_connectors_serialize( @validate_call - def get_destination_connector( + def get_destination_connectors( self, organization: StrictStr, - destination_connector_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2401,14 +3332,12 @@ def get_destination_connector( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> DestinationConnector: - """Get a destination connector + ) -> GetDestinationConnectors200Response: + """Get all existing destination connectors :param organization: (required) :type organization: str - :param destination_connector_id: (required) - :type destination_connector_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2431,9 +3360,8 @@ def get_destination_connector( :return: Returns the result object. """ # noqa: E501 - _param = self._get_destination_connector_serialize( + _param = self._get_destination_connectors_serialize( organization=organization, - destination_connector_id=destination_connector_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2441,7 +3369,7 @@ def get_destination_connector( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DestinationConnector", + '200': "GetDestinationConnectors200Response", '400': "GetPipelines400Response", '401': "GetPipelines400Response", '403': "GetPipelines400Response", @@ -2460,10 +3388,9 @@ def get_destination_connector( @validate_call - def get_destination_connector_with_http_info( + def get_destination_connectors_with_http_info( self, organization: StrictStr, - destination_connector_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2476,14 +3403,12 @@ def get_destination_connector_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[DestinationConnector]: - """Get a destination connector + ) -> ApiResponse[GetDestinationConnectors200Response]: + """Get all existing destination connectors :param organization: (required) :type organization: str - :param destination_connector_id: (required) - :type destination_connector_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2506,9 +3431,8 @@ def get_destination_connector_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_destination_connector_serialize( + _param = self._get_destination_connectors_serialize( organization=organization, - destination_connector_id=destination_connector_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2516,7 +3440,7 @@ def get_destination_connector_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DestinationConnector", + '200': "GetDestinationConnectors200Response", '400': "GetPipelines400Response", '401': "GetPipelines400Response", '403': "GetPipelines400Response", @@ -2535,10 +3459,9 @@ def get_destination_connector_with_http_info( @validate_call - def get_destination_connector_without_preload_content( + def get_destination_connectors_without_preload_content( self, organization: StrictStr, - destination_connector_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2552,13 +3475,11 @@ def get_destination_connector_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get a destination connector + """Get all existing destination connectors :param organization: (required) :type organization: str - :param destination_connector_id: (required) - :type destination_connector_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2581,9 +3502,8 @@ def get_destination_connector_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_destination_connector_serialize( + _param = self._get_destination_connectors_serialize( organization=organization, - destination_connector_id=destination_connector_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2591,7 +3511,7 @@ def get_destination_connector_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DestinationConnector", + '200': "GetDestinationConnectors200Response", '400': "GetPipelines400Response", '401': "GetPipelines400Response", '403': "GetPipelines400Response", @@ -2605,10 +3525,9 @@ def get_destination_connector_without_preload_content( return response_data.response - def _get_destination_connector_serialize( + def _get_destination_connectors_serialize( self, organization, - destination_connector_id, _request_auth, _content_type, _headers, @@ -2632,8 +3551,6 @@ def _get_destination_connector_serialize( # process the path parameters if organization is not None: _path_params['organization'] = organization - if destination_connector_id is not None: - _path_params['destinationConnectorId'] = destination_connector_id # process the query parameters # process the header parameters # process the form parameters @@ -2656,7 +3573,7 @@ def _get_destination_connector_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/org/{organization}/connectors/destinations/{destinationConnectorId}', + resource_path='/org/{organization}/connectors/destinations', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2673,9 +3590,10 @@ def _get_destination_connector_serialize( @validate_call - def get_destination_connectors( + def get_source_connector( self, organization: StrictStr, + source_connector_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2688,12 +3606,14 @@ def get_destination_connectors( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetDestinationConnectors200Response: - """Get all existing destination connectors + ) -> SourceConnector: + """Get a source connector :param organization: (required) :type organization: str + :param source_connector_id: (required) + :type source_connector_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2716,8 +3636,9 @@ def get_destination_connectors( :return: Returns the result object. """ # noqa: E501 - _param = self._get_destination_connectors_serialize( + _param = self._get_source_connector_serialize( organization=organization, + source_connector_id=source_connector_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2725,7 +3646,7 @@ def get_destination_connectors( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetDestinationConnectors200Response", + '200': "SourceConnector", '400': "GetPipelines400Response", '401': "GetPipelines400Response", '403': "GetPipelines400Response", @@ -2744,9 +3665,10 @@ def get_destination_connectors( @validate_call - def get_destination_connectors_with_http_info( + def get_source_connector_with_http_info( self, organization: StrictStr, + source_connector_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2759,12 +3681,14 @@ def get_destination_connectors_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetDestinationConnectors200Response]: - """Get all existing destination connectors + ) -> ApiResponse[SourceConnector]: + """Get a source connector :param organization: (required) :type organization: str + :param source_connector_id: (required) + :type source_connector_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2787,8 +3711,9 @@ def get_destination_connectors_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_destination_connectors_serialize( + _param = self._get_source_connector_serialize( organization=organization, + source_connector_id=source_connector_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2796,7 +3721,7 @@ def get_destination_connectors_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetDestinationConnectors200Response", + '200': "SourceConnector", '400': "GetPipelines400Response", '401': "GetPipelines400Response", '403': "GetPipelines400Response", @@ -2815,9 +3740,10 @@ def get_destination_connectors_with_http_info( @validate_call - def get_destination_connectors_without_preload_content( + def get_source_connector_without_preload_content( self, organization: StrictStr, + source_connector_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2831,11 +3757,13 @@ def get_destination_connectors_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get all existing destination connectors + """Get a source connector :param organization: (required) :type organization: str + :param source_connector_id: (required) + :type source_connector_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2858,8 +3786,9 @@ def get_destination_connectors_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_destination_connectors_serialize( + _param = self._get_source_connector_serialize( organization=organization, + source_connector_id=source_connector_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2867,7 +3796,7 @@ def get_destination_connectors_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetDestinationConnectors200Response", + '200': "SourceConnector", '400': "GetPipelines400Response", '401': "GetPipelines400Response", '403': "GetPipelines400Response", @@ -2881,9 +3810,10 @@ def get_destination_connectors_without_preload_content( return response_data.response - def _get_destination_connectors_serialize( + def _get_source_connector_serialize( self, organization, + source_connector_id, _request_auth, _content_type, _headers, @@ -2907,6 +3837,8 @@ def _get_destination_connectors_serialize( # process the path parameters if organization is not None: _path_params['organization'] = organization + if source_connector_id is not None: + _path_params['sourceConnectorId'] = source_connector_id # process the query parameters # process the header parameters # process the form parameters @@ -2929,7 +3861,7 @@ def _get_destination_connectors_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/org/{organization}/connectors/destinations', + resource_path='/org/{organization}/connectors/sources/{sourceConnectorId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2946,10 +3878,9 @@ def _get_destination_connectors_serialize( @validate_call - def get_source_connector( + def get_source_connectors( self, organization: StrictStr, - source_connector_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2962,14 +3893,12 @@ def get_source_connector( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> SourceConnector: - """Get a source connector + ) -> GetSourceConnectors200Response: + """Get all existing source connectors :param organization: (required) :type organization: str - :param source_connector_id: (required) - :type source_connector_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2992,9 +3921,8 @@ def get_source_connector( :return: Returns the result object. """ # noqa: E501 - _param = self._get_source_connector_serialize( + _param = self._get_source_connectors_serialize( organization=organization, - source_connector_id=source_connector_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3002,7 +3930,7 @@ def get_source_connector( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "SourceConnector", + '200': "GetSourceConnectors200Response", '400': "GetPipelines400Response", '401': "GetPipelines400Response", '403': "GetPipelines400Response", @@ -3021,10 +3949,9 @@ def get_source_connector( @validate_call - def get_source_connector_with_http_info( + def get_source_connectors_with_http_info( self, organization: StrictStr, - source_connector_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3037,14 +3964,12 @@ def get_source_connector_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SourceConnector]: - """Get a source connector + ) -> ApiResponse[GetSourceConnectors200Response]: + """Get all existing source connectors :param organization: (required) :type organization: str - :param source_connector_id: (required) - :type source_connector_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3067,9 +3992,8 @@ def get_source_connector_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_source_connector_serialize( + _param = self._get_source_connectors_serialize( organization=organization, - source_connector_id=source_connector_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3077,7 +4001,7 @@ def get_source_connector_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "SourceConnector", + '200': "GetSourceConnectors200Response", '400': "GetPipelines400Response", '401': "GetPipelines400Response", '403': "GetPipelines400Response", @@ -3096,10 +4020,9 @@ def get_source_connector_with_http_info( @validate_call - def get_source_connector_without_preload_content( + def get_source_connectors_without_preload_content( self, organization: StrictStr, - source_connector_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3113,13 +4036,11 @@ def get_source_connector_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get a source connector + """Get all existing source connectors :param organization: (required) :type organization: str - :param source_connector_id: (required) - :type source_connector_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3142,9 +4063,8 @@ def get_source_connector_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_source_connector_serialize( + _param = self._get_source_connectors_serialize( organization=organization, - source_connector_id=source_connector_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3152,7 +4072,7 @@ def get_source_connector_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "SourceConnector", + '200': "GetSourceConnectors200Response", '400': "GetPipelines400Response", '401': "GetPipelines400Response", '403': "GetPipelines400Response", @@ -3166,10 +4086,9 @@ def get_source_connector_without_preload_content( return response_data.response - def _get_source_connector_serialize( + def _get_source_connectors_serialize( self, organization, - source_connector_id, _request_auth, _content_type, _headers, @@ -3193,8 +4112,6 @@ def _get_source_connector_serialize( # process the path parameters if organization is not None: _path_params['organization'] = organization - if source_connector_id is not None: - _path_params['sourceConnectorId'] = source_connector_id # process the query parameters # process the header parameters # process the form parameters @@ -3217,7 +4134,7 @@ def _get_source_connector_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/org/{organization}/connectors/sources/{sourceConnectorId}', + resource_path='/org/{organization}/connectors/sources', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3234,9 +4151,11 @@ def _get_source_connector_serialize( @validate_call - def get_source_connectors( + def update_ai_platform_connector( self, organization: StrictStr, + aiplatform_id: StrictStr, + update_ai_platform_connector_request: UpdateAIPlatformConnectorRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3249,12 +4168,16 @@ def get_source_connectors( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetSourceConnectors200Response: - """Get all existing source connectors + ) -> UpdateAIPlatformConnectorResponse: + """Update an AI Platform connector :param organization: (required) :type organization: str + :param aiplatform_id: (required) + :type aiplatform_id: str + :param update_ai_platform_connector_request: (required) + :type update_ai_platform_connector_request: UpdateAIPlatformConnectorRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3277,8 +4200,10 @@ def get_source_connectors( :return: Returns the result object. """ # noqa: E501 - _param = self._get_source_connectors_serialize( + _param = self._update_ai_platform_connector_serialize( organization=organization, + aiplatform_id=aiplatform_id, + update_ai_platform_connector_request=update_ai_platform_connector_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3286,7 +4211,7 @@ def get_source_connectors( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetSourceConnectors200Response", + '200': "UpdateAIPlatformConnectorResponse", '400': "GetPipelines400Response", '401': "GetPipelines400Response", '403': "GetPipelines400Response", @@ -3305,9 +4230,11 @@ def get_source_connectors( @validate_call - def get_source_connectors_with_http_info( + def update_ai_platform_connector_with_http_info( self, organization: StrictStr, + aiplatform_id: StrictStr, + update_ai_platform_connector_request: UpdateAIPlatformConnectorRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3320,12 +4247,16 @@ def get_source_connectors_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetSourceConnectors200Response]: - """Get all existing source connectors + ) -> ApiResponse[UpdateAIPlatformConnectorResponse]: + """Update an AI Platform connector :param organization: (required) :type organization: str + :param aiplatform_id: (required) + :type aiplatform_id: str + :param update_ai_platform_connector_request: (required) + :type update_ai_platform_connector_request: UpdateAIPlatformConnectorRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3348,8 +4279,10 @@ def get_source_connectors_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_source_connectors_serialize( + _param = self._update_ai_platform_connector_serialize( organization=organization, + aiplatform_id=aiplatform_id, + update_ai_platform_connector_request=update_ai_platform_connector_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3357,7 +4290,7 @@ def get_source_connectors_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetSourceConnectors200Response", + '200': "UpdateAIPlatformConnectorResponse", '400': "GetPipelines400Response", '401': "GetPipelines400Response", '403': "GetPipelines400Response", @@ -3376,9 +4309,11 @@ def get_source_connectors_with_http_info( @validate_call - def get_source_connectors_without_preload_content( + def update_ai_platform_connector_without_preload_content( self, organization: StrictStr, + aiplatform_id: StrictStr, + update_ai_platform_connector_request: UpdateAIPlatformConnectorRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3392,11 +4327,15 @@ def get_source_connectors_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get all existing source connectors + """Update an AI Platform connector :param organization: (required) :type organization: str + :param aiplatform_id: (required) + :type aiplatform_id: str + :param update_ai_platform_connector_request: (required) + :type update_ai_platform_connector_request: UpdateAIPlatformConnectorRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3419,8 +4358,10 @@ def get_source_connectors_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_source_connectors_serialize( + _param = self._update_ai_platform_connector_serialize( organization=organization, + aiplatform_id=aiplatform_id, + update_ai_platform_connector_request=update_ai_platform_connector_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3428,7 +4369,7 @@ def get_source_connectors_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetSourceConnectors200Response", + '200': "UpdateAIPlatformConnectorResponse", '400': "GetPipelines400Response", '401': "GetPipelines400Response", '403': "GetPipelines400Response", @@ -3442,9 +4383,11 @@ def get_source_connectors_without_preload_content( return response_data.response - def _get_source_connectors_serialize( + def _update_ai_platform_connector_serialize( self, organization, + aiplatform_id, + update_ai_platform_connector_request, _request_auth, _content_type, _headers, @@ -3468,10 +4411,14 @@ def _get_source_connectors_serialize( # process the path parameters if organization is not None: _path_params['organization'] = organization + if aiplatform_id is not None: + _path_params['aiplatformId'] = aiplatform_id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + if update_ai_platform_connector_request is not None: + _body_params = update_ai_platform_connector_request # set the HTTP header `Accept` @@ -3482,6 +4429,19 @@ def _get_source_connectors_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -3489,8 +4449,8 @@ def _get_source_connectors_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/org/{organization}/connectors/sources', + method='PATCH', + resource_path='/org/{organization}/connectors/aiplatforms/{aiplatformId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3507,11 +4467,11 @@ def _get_source_connectors_serialize( @validate_call - def update_ai_platform_connector( + def update_destination_connector( self, organization: StrictStr, - aiplatform_id: StrictStr, - update_ai_platform_connector_request: Optional[UpdateAIPlatformConnectorRequest] = None, + destination_connector_id: StrictStr, + update_destination_connector_request: UpdateDestinationConnectorRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3524,16 +4484,16 @@ def update_ai_platform_connector( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> UpdateAIPlatformConnectorRequest: - """Update an AI Platform connector + ) -> UpdateDestinationConnectorResponse: + """Update a destination connector :param organization: (required) :type organization: str - :param aiplatform_id: (required) - :type aiplatform_id: str - :param update_ai_platform_connector_request: - :type update_ai_platform_connector_request: UpdateAIPlatformConnectorRequest + :param destination_connector_id: (required) + :type destination_connector_id: str + :param update_destination_connector_request: (required) + :type update_destination_connector_request: UpdateDestinationConnectorRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3556,10 +4516,10 @@ def update_ai_platform_connector( :return: Returns the result object. """ # noqa: E501 - _param = self._update_ai_platform_connector_serialize( + _param = self._update_destination_connector_serialize( organization=organization, - aiplatform_id=aiplatform_id, - update_ai_platform_connector_request=update_ai_platform_connector_request, + destination_connector_id=destination_connector_id, + update_destination_connector_request=update_destination_connector_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3567,7 +4527,7 @@ def update_ai_platform_connector( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UpdateAIPlatformConnectorRequest", + '200': "UpdateDestinationConnectorResponse", '400': "GetPipelines400Response", '401': "GetPipelines400Response", '403': "GetPipelines400Response", @@ -3586,11 +4546,11 @@ def update_ai_platform_connector( @validate_call - def update_ai_platform_connector_with_http_info( + def update_destination_connector_with_http_info( self, organization: StrictStr, - aiplatform_id: StrictStr, - update_ai_platform_connector_request: Optional[UpdateAIPlatformConnectorRequest] = None, + destination_connector_id: StrictStr, + update_destination_connector_request: UpdateDestinationConnectorRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3603,16 +4563,16 @@ def update_ai_platform_connector_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UpdateAIPlatformConnectorRequest]: - """Update an AI Platform connector + ) -> ApiResponse[UpdateDestinationConnectorResponse]: + """Update a destination connector :param organization: (required) :type organization: str - :param aiplatform_id: (required) - :type aiplatform_id: str - :param update_ai_platform_connector_request: - :type update_ai_platform_connector_request: UpdateAIPlatformConnectorRequest + :param destination_connector_id: (required) + :type destination_connector_id: str + :param update_destination_connector_request: (required) + :type update_destination_connector_request: UpdateDestinationConnectorRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3635,10 +4595,10 @@ def update_ai_platform_connector_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._update_ai_platform_connector_serialize( + _param = self._update_destination_connector_serialize( organization=organization, - aiplatform_id=aiplatform_id, - update_ai_platform_connector_request=update_ai_platform_connector_request, + destination_connector_id=destination_connector_id, + update_destination_connector_request=update_destination_connector_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3646,7 +4606,7 @@ def update_ai_platform_connector_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UpdateAIPlatformConnectorRequest", + '200': "UpdateDestinationConnectorResponse", '400': "GetPipelines400Response", '401': "GetPipelines400Response", '403': "GetPipelines400Response", @@ -3665,11 +4625,11 @@ def update_ai_platform_connector_with_http_info( @validate_call - def update_ai_platform_connector_without_preload_content( + def update_destination_connector_without_preload_content( self, organization: StrictStr, - aiplatform_id: StrictStr, - update_ai_platform_connector_request: Optional[UpdateAIPlatformConnectorRequest] = None, + destination_connector_id: StrictStr, + update_destination_connector_request: UpdateDestinationConnectorRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3683,15 +4643,15 @@ def update_ai_platform_connector_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Update an AI Platform connector + """Update a destination connector :param organization: (required) :type organization: str - :param aiplatform_id: (required) - :type aiplatform_id: str - :param update_ai_platform_connector_request: - :type update_ai_platform_connector_request: UpdateAIPlatformConnectorRequest + :param destination_connector_id: (required) + :type destination_connector_id: str + :param update_destination_connector_request: (required) + :type update_destination_connector_request: UpdateDestinationConnectorRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3714,10 +4674,10 @@ def update_ai_platform_connector_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._update_ai_platform_connector_serialize( + _param = self._update_destination_connector_serialize( organization=organization, - aiplatform_id=aiplatform_id, - update_ai_platform_connector_request=update_ai_platform_connector_request, + destination_connector_id=destination_connector_id, + update_destination_connector_request=update_destination_connector_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3725,7 +4685,7 @@ def update_ai_platform_connector_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UpdateAIPlatformConnectorRequest", + '200': "UpdateDestinationConnectorResponse", '400': "GetPipelines400Response", '401': "GetPipelines400Response", '403': "GetPipelines400Response", @@ -3739,11 +4699,11 @@ def update_ai_platform_connector_without_preload_content( return response_data.response - def _update_ai_platform_connector_serialize( + def _update_destination_connector_serialize( self, organization, - aiplatform_id, - update_ai_platform_connector_request, + destination_connector_id, + update_destination_connector_request, _request_auth, _content_type, _headers, @@ -3767,14 +4727,14 @@ def _update_ai_platform_connector_serialize( # process the path parameters if organization is not None: _path_params['organization'] = organization - if aiplatform_id is not None: - _path_params['aiplatformId'] = aiplatform_id + if destination_connector_id is not None: + _path_params['destinationConnectorId'] = destination_connector_id # process the query parameters # process the header parameters # process the form parameters # process the body parameter - if update_ai_platform_connector_request is not None: - _body_params = update_ai_platform_connector_request + if update_destination_connector_request is not None: + _body_params = update_destination_connector_request # set the HTTP header `Accept` @@ -3806,7 +4766,7 @@ def _update_ai_platform_connector_serialize( return self.api_client.param_serialize( method='PATCH', - resource_path='/org/{organization}/connectors/aiplatforms/{aiplatformId}', + resource_path='/org/{organization}/connectors/destinations/{destinationConnectorId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3823,11 +4783,11 @@ def _update_ai_platform_connector_serialize( @validate_call - def update_destination_connector( + def update_source_connector( self, organization: StrictStr, - destination_connector_id: StrictStr, - update_source_connector_request: Optional[UpdateSourceConnectorRequest] = None, + source_connector_id: StrictStr, + update_source_connector_request: UpdateSourceConnectorRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3840,15 +4800,15 @@ def update_destination_connector( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> UpdateDestinationConnector200Response: - """Update a destination connector + ) -> UpdateSourceConnectorResponse: + """Update a source connector :param organization: (required) :type organization: str - :param destination_connector_id: (required) - :type destination_connector_id: str - :param update_source_connector_request: + :param source_connector_id: (required) + :type source_connector_id: str + :param update_source_connector_request: (required) :type update_source_connector_request: UpdateSourceConnectorRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -3872,9 +4832,9 @@ def update_destination_connector( :return: Returns the result object. """ # noqa: E501 - _param = self._update_destination_connector_serialize( + _param = self._update_source_connector_serialize( organization=organization, - destination_connector_id=destination_connector_id, + source_connector_id=source_connector_id, update_source_connector_request=update_source_connector_request, _request_auth=_request_auth, _content_type=_content_type, @@ -3883,7 +4843,7 @@ def update_destination_connector( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UpdateDestinationConnector200Response", + '200': "UpdateSourceConnectorResponse", '400': "GetPipelines400Response", '401': "GetPipelines400Response", '403': "GetPipelines400Response", @@ -3902,11 +4862,11 @@ def update_destination_connector( @validate_call - def update_destination_connector_with_http_info( + def update_source_connector_with_http_info( self, organization: StrictStr, - destination_connector_id: StrictStr, - update_source_connector_request: Optional[UpdateSourceConnectorRequest] = None, + source_connector_id: StrictStr, + update_source_connector_request: UpdateSourceConnectorRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3919,15 +4879,15 @@ def update_destination_connector_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UpdateDestinationConnector200Response]: - """Update a destination connector + ) -> ApiResponse[UpdateSourceConnectorResponse]: + """Update a source connector :param organization: (required) :type organization: str - :param destination_connector_id: (required) - :type destination_connector_id: str - :param update_source_connector_request: + :param source_connector_id: (required) + :type source_connector_id: str + :param update_source_connector_request: (required) :type update_source_connector_request: UpdateSourceConnectorRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -3951,9 +4911,9 @@ def update_destination_connector_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._update_destination_connector_serialize( + _param = self._update_source_connector_serialize( organization=organization, - destination_connector_id=destination_connector_id, + source_connector_id=source_connector_id, update_source_connector_request=update_source_connector_request, _request_auth=_request_auth, _content_type=_content_type, @@ -3962,7 +4922,7 @@ def update_destination_connector_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UpdateDestinationConnector200Response", + '200': "UpdateSourceConnectorResponse", '400': "GetPipelines400Response", '401': "GetPipelines400Response", '403': "GetPipelines400Response", @@ -3981,11 +4941,11 @@ def update_destination_connector_with_http_info( @validate_call - def update_destination_connector_without_preload_content( + def update_source_connector_without_preload_content( self, organization: StrictStr, - destination_connector_id: StrictStr, - update_source_connector_request: Optional[UpdateSourceConnectorRequest] = None, + source_connector_id: StrictStr, + update_source_connector_request: UpdateSourceConnectorRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3999,14 +4959,14 @@ def update_destination_connector_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Update a destination connector + """Update a source connector :param organization: (required) :type organization: str - :param destination_connector_id: (required) - :type destination_connector_id: str - :param update_source_connector_request: + :param source_connector_id: (required) + :type source_connector_id: str + :param update_source_connector_request: (required) :type update_source_connector_request: UpdateSourceConnectorRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -4030,9 +4990,9 @@ def update_destination_connector_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._update_destination_connector_serialize( + _param = self._update_source_connector_serialize( organization=organization, - destination_connector_id=destination_connector_id, + source_connector_id=source_connector_id, update_source_connector_request=update_source_connector_request, _request_auth=_request_auth, _content_type=_content_type, @@ -4041,7 +5001,7 @@ def update_destination_connector_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UpdateDestinationConnector200Response", + '200': "UpdateSourceConnectorResponse", '400': "GetPipelines400Response", '401': "GetPipelines400Response", '403': "GetPipelines400Response", @@ -4055,10 +5015,10 @@ def update_destination_connector_without_preload_content( return response_data.response - def _update_destination_connector_serialize( + def _update_source_connector_serialize( self, organization, - destination_connector_id, + source_connector_id, update_source_connector_request, _request_auth, _content_type, @@ -4083,8 +5043,8 @@ def _update_destination_connector_serialize( # process the path parameters if organization is not None: _path_params['organization'] = organization - if destination_connector_id is not None: - _path_params['destinationConnectorId'] = destination_connector_id + if source_connector_id is not None: + _path_params['sourceConnectorId'] = source_connector_id # process the query parameters # process the header parameters # process the form parameters @@ -4122,7 +5082,7 @@ def _update_destination_connector_serialize( return self.api_client.param_serialize( method='PATCH', - resource_path='/org/{organization}/connectors/destinations/{destinationConnectorId}', + resource_path='/org/{organization}/connectors/sources/{sourceConnectorId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4139,11 +5099,11 @@ def _update_destination_connector_serialize( @validate_call - def update_source_connector( + def update_user_in_source_connector( self, organization: StrictStr, source_connector_id: StrictStr, - update_source_connector_request: Optional[UpdateSourceConnectorRequest] = None, + update_user_in_source_connector_request: UpdateUserInSourceConnectorRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4156,16 +5116,16 @@ def update_source_connector( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> UpdateSourceConnectorRequest: - """Update a source connector + ) -> UpdateUserInSourceConnectorResponse: + """Update a source connector user :param organization: (required) :type organization: str :param source_connector_id: (required) :type source_connector_id: str - :param update_source_connector_request: - :type update_source_connector_request: UpdateSourceConnectorRequest + :param update_user_in_source_connector_request: (required) + :type update_user_in_source_connector_request: UpdateUserInSourceConnectorRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4188,10 +5148,10 @@ def update_source_connector( :return: Returns the result object. """ # noqa: E501 - _param = self._update_source_connector_serialize( + _param = self._update_user_in_source_connector_serialize( organization=organization, source_connector_id=source_connector_id, - update_source_connector_request=update_source_connector_request, + update_user_in_source_connector_request=update_user_in_source_connector_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4199,7 +5159,7 @@ def update_source_connector( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UpdateSourceConnectorRequest", + '200': "UpdateUserInSourceConnectorResponse", '400': "GetPipelines400Response", '401': "GetPipelines400Response", '403': "GetPipelines400Response", @@ -4218,11 +5178,11 @@ def update_source_connector( @validate_call - def update_source_connector_with_http_info( + def update_user_in_source_connector_with_http_info( self, organization: StrictStr, source_connector_id: StrictStr, - update_source_connector_request: Optional[UpdateSourceConnectorRequest] = None, + update_user_in_source_connector_request: UpdateUserInSourceConnectorRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4235,16 +5195,16 @@ def update_source_connector_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UpdateSourceConnectorRequest]: - """Update a source connector + ) -> ApiResponse[UpdateUserInSourceConnectorResponse]: + """Update a source connector user :param organization: (required) :type organization: str :param source_connector_id: (required) :type source_connector_id: str - :param update_source_connector_request: - :type update_source_connector_request: UpdateSourceConnectorRequest + :param update_user_in_source_connector_request: (required) + :type update_user_in_source_connector_request: UpdateUserInSourceConnectorRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4267,10 +5227,10 @@ def update_source_connector_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._update_source_connector_serialize( + _param = self._update_user_in_source_connector_serialize( organization=organization, source_connector_id=source_connector_id, - update_source_connector_request=update_source_connector_request, + update_user_in_source_connector_request=update_user_in_source_connector_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4278,7 +5238,7 @@ def update_source_connector_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UpdateSourceConnectorRequest", + '200': "UpdateUserInSourceConnectorResponse", '400': "GetPipelines400Response", '401': "GetPipelines400Response", '403': "GetPipelines400Response", @@ -4297,11 +5257,11 @@ def update_source_connector_with_http_info( @validate_call - def update_source_connector_without_preload_content( + def update_user_in_source_connector_without_preload_content( self, organization: StrictStr, source_connector_id: StrictStr, - update_source_connector_request: Optional[UpdateSourceConnectorRequest] = None, + update_user_in_source_connector_request: UpdateUserInSourceConnectorRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4315,15 +5275,15 @@ def update_source_connector_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Update a source connector + """Update a source connector user :param organization: (required) :type organization: str :param source_connector_id: (required) :type source_connector_id: str - :param update_source_connector_request: - :type update_source_connector_request: UpdateSourceConnectorRequest + :param update_user_in_source_connector_request: (required) + :type update_user_in_source_connector_request: UpdateUserInSourceConnectorRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4346,10 +5306,10 @@ def update_source_connector_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._update_source_connector_serialize( + _param = self._update_user_in_source_connector_serialize( organization=organization, source_connector_id=source_connector_id, - update_source_connector_request=update_source_connector_request, + update_user_in_source_connector_request=update_user_in_source_connector_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4357,7 +5317,7 @@ def update_source_connector_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UpdateSourceConnectorRequest", + '200': "UpdateUserInSourceConnectorResponse", '400': "GetPipelines400Response", '401': "GetPipelines400Response", '403': "GetPipelines400Response", @@ -4371,11 +5331,11 @@ def update_source_connector_without_preload_content( return response_data.response - def _update_source_connector_serialize( + def _update_user_in_source_connector_serialize( self, organization, source_connector_id, - update_source_connector_request, + update_user_in_source_connector_request, _request_auth, _content_type, _headers, @@ -4405,8 +5365,8 @@ def _update_source_connector_serialize( # process the header parameters # process the form parameters # process the body parameter - if update_source_connector_request is not None: - _body_params = update_source_connector_request + if update_user_in_source_connector_request is not None: + _body_params = update_user_in_source_connector_request # set the HTTP header `Accept` @@ -4438,7 +5398,7 @@ def _update_source_connector_serialize( return self.api_client.param_serialize( method='PATCH', - resource_path='/org/{organization}/connectors/sources/{sourceConnectorId}', + resource_path='/org/{organization}/connectors/sources/{sourceConnectorId}/users', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/src/python/vectorize_client/api/extraction_api.py b/src/python/vectorize_client/api/extraction_api.py index 0938d41..6db8185 100644 --- a/src/python/vectorize_client/api/extraction_api.py +++ b/src/python/vectorize_client/api/extraction_api.py @@ -17,7 +17,6 @@ from typing_extensions import Annotated from pydantic import StrictStr -from typing import Optional from vectorize_client.models.extraction_result_response import ExtractionResultResponse from vectorize_client.models.start_extraction_request import StartExtractionRequest from vectorize_client.models.start_extraction_response import StartExtractionResponse @@ -332,7 +331,7 @@ def _get_extraction_result_serialize( def start_extraction( self, organization: StrictStr, - start_extraction_request: Optional[StartExtractionRequest] = None, + start_extraction_request: StartExtractionRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -351,7 +350,7 @@ def start_extraction( :param organization: (required) :type organization: str - :param start_extraction_request: + :param start_extraction_request: (required) :type start_extraction_request: StartExtractionRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -407,7 +406,7 @@ def start_extraction( def start_extraction_with_http_info( self, organization: StrictStr, - start_extraction_request: Optional[StartExtractionRequest] = None, + start_extraction_request: StartExtractionRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -426,7 +425,7 @@ def start_extraction_with_http_info( :param organization: (required) :type organization: str - :param start_extraction_request: + :param start_extraction_request: (required) :type start_extraction_request: StartExtractionRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -482,7 +481,7 @@ def start_extraction_with_http_info( def start_extraction_without_preload_content( self, organization: StrictStr, - start_extraction_request: Optional[StartExtractionRequest] = None, + start_extraction_request: StartExtractionRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -501,7 +500,7 @@ def start_extraction_without_preload_content( :param organization: (required) :type organization: str - :param start_extraction_request: + :param start_extraction_request: (required) :type start_extraction_request: StartExtractionRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request diff --git a/src/python/vectorize_client/api/files_api.py b/src/python/vectorize_client/api/files_api.py index 265ce99..9756ee2 100644 --- a/src/python/vectorize_client/api/files_api.py +++ b/src/python/vectorize_client/api/files_api.py @@ -17,7 +17,6 @@ from typing_extensions import Annotated from pydantic import StrictStr -from typing import Optional from vectorize_client.models.start_file_upload_request import StartFileUploadRequest from vectorize_client.models.start_file_upload_response import StartFileUploadResponse @@ -43,7 +42,7 @@ def __init__(self, api_client=None) -> None: def start_file_upload( self, organization: StrictStr, - start_file_upload_request: Optional[StartFileUploadRequest] = None, + start_file_upload_request: StartFileUploadRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -62,7 +61,7 @@ def start_file_upload( :param organization: (required) :type organization: str - :param start_file_upload_request: + :param start_file_upload_request: (required) :type start_file_upload_request: StartFileUploadRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -118,7 +117,7 @@ def start_file_upload( def start_file_upload_with_http_info( self, organization: StrictStr, - start_file_upload_request: Optional[StartFileUploadRequest] = None, + start_file_upload_request: StartFileUploadRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -137,7 +136,7 @@ def start_file_upload_with_http_info( :param organization: (required) :type organization: str - :param start_file_upload_request: + :param start_file_upload_request: (required) :type start_file_upload_request: StartFileUploadRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -193,7 +192,7 @@ def start_file_upload_with_http_info( def start_file_upload_without_preload_content( self, organization: StrictStr, - start_file_upload_request: Optional[StartFileUploadRequest] = None, + start_file_upload_request: StartFileUploadRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -212,7 +211,7 @@ def start_file_upload_without_preload_content( :param organization: (required) :type organization: str - :param start_file_upload_request: + :param start_file_upload_request: (required) :type start_file_upload_request: StartFileUploadRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request diff --git a/src/python/vectorize_client/api/pipelines_api.py b/src/python/vectorize_client/api/pipelines_api.py index fa05415..5d1c7b2 100644 --- a/src/python/vectorize_client/api/pipelines_api.py +++ b/src/python/vectorize_client/api/pipelines_api.py @@ -55,7 +55,7 @@ def __init__(self, api_client=None) -> None: def create_pipeline( self, organization: StrictStr, - pipeline_configuration_schema: Optional[PipelineConfigurationSchema] = None, + pipeline_configuration_schema: PipelineConfigurationSchema, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -69,12 +69,12 @@ def create_pipeline( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> CreatePipelineResponse: - """Create a new pipeline + """Create a new source pipeline. Config fields for sources: Amazon S3 (AWS_S3): Check for updates every (seconds) (idle-time): number, Path Prefix (path-prefix): text, Path Metadata Regex (path-metadata-regex): text, Path Regex Group Names (path-regex-group-names): array oftext) | Azure Blob Storage (AZURE_BLOB): Polling Interval (seconds) (idle-time): number, Path Prefix (path-prefix): text, Path Metadata Regex (path-metadata-regex): text, Path Regex Group Names (path-regex-group-names): array oftext) | Confluence (CONFLUENCE): Spaces (spaces): array oftext, Root Parents (root-parents): array oftext) | Discord (DISCORD): Emoji Filter (emoji): array oftext, Author Filter (author): array oftext, Ignore Author Filter (ignore-author): array oftext, Limit (limit): number) | Dropbox (DROPBOX): Read starting from these folders (optional) (path-prefix): array oftext) | Google Drive OAuth (GOOGLE_DRIVE_OAUTH): Polling Interval (seconds) (idle-time): number) | Google Drive OAuth (Multi-user) (GOOGLE_DRIVE_OAUTH_MULTI): Polling Interval (seconds) (idle-time): number) | Google Drive OAuth (Multi-user with white label) (GOOGLE_DRIVE_OAUTH_MULTI_CUSTOM): Polling Interval (seconds) (idle-time): number) | Firecrawl (FIRECRAWL): ) | GCP Cloud Storage (GCS): Check for updates every (seconds) (idle-time): number, Path Prefix (path-prefix): text, Path Metadata Regex (path-metadata-regex): text, Path Regex Group Names (path-regex-group-names): array oftext) | Google Drive (GOOGLE_DRIVE): Restrict ingest to these folder URLs (optional) (root-parents): array oftext, Polling Interval (seconds) (idle-time): number) | Intercom (INTERCOM): Reindex Interval (seconds) (reindexIntervalSeconds): number, Limit (limit): number, Tags (tags): array oftext) | OneDrive (ONE_DRIVE): Read starting from this folder (optional) (path-prefix): text) | SharePoint (SHAREPOINT): Site Name(s) (sites): array oftext) | Web Crawler (WEB_CRAWLER): Additional Allowed URLs or prefix(es) (allowed-domains-opt): array ofurl, Forbidden Paths (forbidden-paths): array oftext, Throttle (ms) (min-time-between-requests): number, Max Error Count (max-error-count): number, Max URLs (max-urls): number, Max Depth (max-depth): number, Reindex Interval (seconds) (reindex-interval-seconds): number) | File Upload (FILE_UPLOAD): ). Config fields for destinations: Couchbase Capella (CAPELLA): Bucket Name (bucket): text, Scope Name (scope): text, Collection Name (collection): text, Search Index Name (index): text) | DataStax Astra (DATASTAX): Collection Name (collection): text) | Elasticsearch (ELASTIC): Index Name (index): text) | Pinecone (PINECONE): Index Name (index): text, Namespace (namespace): text) | SingleStore (SINGLESTORE): Table Name (table): text) | Milvus (MILVUS): Collection Name (collection): text) | PostgreSQL (POSTGRESQL): Table Name (table): text) | Qdrant (QDRANT): Collection Name (collection): text) | Weaviate (WEAVIATE): Collection Name (collection): text) | Azure AI Search (AZUREAISEARCH): Index Name (index): text) | Built-in (VECTORIZE): ) | Chroma (CHROMA): Index Name (index): text) | MongoDB (MONGODB): Index Name (index): text). Config fields for AI platforms: :param organization: (required) :type organization: str - :param pipeline_configuration_schema: + :param pipeline_configuration_schema: (required) :type pipeline_configuration_schema: PipelineConfigurationSchema :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -130,7 +130,7 @@ def create_pipeline( def create_pipeline_with_http_info( self, organization: StrictStr, - pipeline_configuration_schema: Optional[PipelineConfigurationSchema] = None, + pipeline_configuration_schema: PipelineConfigurationSchema, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -144,12 +144,12 @@ def create_pipeline_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[CreatePipelineResponse]: - """Create a new pipeline + """Create a new source pipeline. Config fields for sources: Amazon S3 (AWS_S3): Check for updates every (seconds) (idle-time): number, Path Prefix (path-prefix): text, Path Metadata Regex (path-metadata-regex): text, Path Regex Group Names (path-regex-group-names): array oftext) | Azure Blob Storage (AZURE_BLOB): Polling Interval (seconds) (idle-time): number, Path Prefix (path-prefix): text, Path Metadata Regex (path-metadata-regex): text, Path Regex Group Names (path-regex-group-names): array oftext) | Confluence (CONFLUENCE): Spaces (spaces): array oftext, Root Parents (root-parents): array oftext) | Discord (DISCORD): Emoji Filter (emoji): array oftext, Author Filter (author): array oftext, Ignore Author Filter (ignore-author): array oftext, Limit (limit): number) | Dropbox (DROPBOX): Read starting from these folders (optional) (path-prefix): array oftext) | Google Drive OAuth (GOOGLE_DRIVE_OAUTH): Polling Interval (seconds) (idle-time): number) | Google Drive OAuth (Multi-user) (GOOGLE_DRIVE_OAUTH_MULTI): Polling Interval (seconds) (idle-time): number) | Google Drive OAuth (Multi-user with white label) (GOOGLE_DRIVE_OAUTH_MULTI_CUSTOM): Polling Interval (seconds) (idle-time): number) | Firecrawl (FIRECRAWL): ) | GCP Cloud Storage (GCS): Check for updates every (seconds) (idle-time): number, Path Prefix (path-prefix): text, Path Metadata Regex (path-metadata-regex): text, Path Regex Group Names (path-regex-group-names): array oftext) | Google Drive (GOOGLE_DRIVE): Restrict ingest to these folder URLs (optional) (root-parents): array oftext, Polling Interval (seconds) (idle-time): number) | Intercom (INTERCOM): Reindex Interval (seconds) (reindexIntervalSeconds): number, Limit (limit): number, Tags (tags): array oftext) | OneDrive (ONE_DRIVE): Read starting from this folder (optional) (path-prefix): text) | SharePoint (SHAREPOINT): Site Name(s) (sites): array oftext) | Web Crawler (WEB_CRAWLER): Additional Allowed URLs or prefix(es) (allowed-domains-opt): array ofurl, Forbidden Paths (forbidden-paths): array oftext, Throttle (ms) (min-time-between-requests): number, Max Error Count (max-error-count): number, Max URLs (max-urls): number, Max Depth (max-depth): number, Reindex Interval (seconds) (reindex-interval-seconds): number) | File Upload (FILE_UPLOAD): ). Config fields for destinations: Couchbase Capella (CAPELLA): Bucket Name (bucket): text, Scope Name (scope): text, Collection Name (collection): text, Search Index Name (index): text) | DataStax Astra (DATASTAX): Collection Name (collection): text) | Elasticsearch (ELASTIC): Index Name (index): text) | Pinecone (PINECONE): Index Name (index): text, Namespace (namespace): text) | SingleStore (SINGLESTORE): Table Name (table): text) | Milvus (MILVUS): Collection Name (collection): text) | PostgreSQL (POSTGRESQL): Table Name (table): text) | Qdrant (QDRANT): Collection Name (collection): text) | Weaviate (WEAVIATE): Collection Name (collection): text) | Azure AI Search (AZUREAISEARCH): Index Name (index): text) | Built-in (VECTORIZE): ) | Chroma (CHROMA): Index Name (index): text) | MongoDB (MONGODB): Index Name (index): text). Config fields for AI platforms: :param organization: (required) :type organization: str - :param pipeline_configuration_schema: + :param pipeline_configuration_schema: (required) :type pipeline_configuration_schema: PipelineConfigurationSchema :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -205,7 +205,7 @@ def create_pipeline_with_http_info( def create_pipeline_without_preload_content( self, organization: StrictStr, - pipeline_configuration_schema: Optional[PipelineConfigurationSchema] = None, + pipeline_configuration_schema: PipelineConfigurationSchema, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -219,12 +219,12 @@ def create_pipeline_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Create a new pipeline + """Create a new source pipeline. Config fields for sources: Amazon S3 (AWS_S3): Check for updates every (seconds) (idle-time): number, Path Prefix (path-prefix): text, Path Metadata Regex (path-metadata-regex): text, Path Regex Group Names (path-regex-group-names): array oftext) | Azure Blob Storage (AZURE_BLOB): Polling Interval (seconds) (idle-time): number, Path Prefix (path-prefix): text, Path Metadata Regex (path-metadata-regex): text, Path Regex Group Names (path-regex-group-names): array oftext) | Confluence (CONFLUENCE): Spaces (spaces): array oftext, Root Parents (root-parents): array oftext) | Discord (DISCORD): Emoji Filter (emoji): array oftext, Author Filter (author): array oftext, Ignore Author Filter (ignore-author): array oftext, Limit (limit): number) | Dropbox (DROPBOX): Read starting from these folders (optional) (path-prefix): array oftext) | Google Drive OAuth (GOOGLE_DRIVE_OAUTH): Polling Interval (seconds) (idle-time): number) | Google Drive OAuth (Multi-user) (GOOGLE_DRIVE_OAUTH_MULTI): Polling Interval (seconds) (idle-time): number) | Google Drive OAuth (Multi-user with white label) (GOOGLE_DRIVE_OAUTH_MULTI_CUSTOM): Polling Interval (seconds) (idle-time): number) | Firecrawl (FIRECRAWL): ) | GCP Cloud Storage (GCS): Check for updates every (seconds) (idle-time): number, Path Prefix (path-prefix): text, Path Metadata Regex (path-metadata-regex): text, Path Regex Group Names (path-regex-group-names): array oftext) | Google Drive (GOOGLE_DRIVE): Restrict ingest to these folder URLs (optional) (root-parents): array oftext, Polling Interval (seconds) (idle-time): number) | Intercom (INTERCOM): Reindex Interval (seconds) (reindexIntervalSeconds): number, Limit (limit): number, Tags (tags): array oftext) | OneDrive (ONE_DRIVE): Read starting from this folder (optional) (path-prefix): text) | SharePoint (SHAREPOINT): Site Name(s) (sites): array oftext) | Web Crawler (WEB_CRAWLER): Additional Allowed URLs or prefix(es) (allowed-domains-opt): array ofurl, Forbidden Paths (forbidden-paths): array oftext, Throttle (ms) (min-time-between-requests): number, Max Error Count (max-error-count): number, Max URLs (max-urls): number, Max Depth (max-depth): number, Reindex Interval (seconds) (reindex-interval-seconds): number) | File Upload (FILE_UPLOAD): ). Config fields for destinations: Couchbase Capella (CAPELLA): Bucket Name (bucket): text, Scope Name (scope): text, Collection Name (collection): text, Search Index Name (index): text) | DataStax Astra (DATASTAX): Collection Name (collection): text) | Elasticsearch (ELASTIC): Index Name (index): text) | Pinecone (PINECONE): Index Name (index): text, Namespace (namespace): text) | SingleStore (SINGLESTORE): Table Name (table): text) | Milvus (MILVUS): Collection Name (collection): text) | PostgreSQL (POSTGRESQL): Table Name (table): text) | Qdrant (QDRANT): Collection Name (collection): text) | Weaviate (WEAVIATE): Collection Name (collection): text) | Azure AI Search (AZUREAISEARCH): Index Name (index): text) | Built-in (VECTORIZE): ) | Chroma (CHROMA): Index Name (index): text) | MongoDB (MONGODB): Index Name (index): text). Config fields for AI platforms: :param organization: (required) :type organization: str - :param pipeline_configuration_schema: + :param pipeline_configuration_schema: (required) :type pipeline_configuration_schema: PipelineConfigurationSchema :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -2102,7 +2102,7 @@ def retrieve_documents( self, organization: StrictStr, pipeline: StrictStr, - retrieve_documents_request: Optional[RetrieveDocumentsRequest] = None, + retrieve_documents_request: RetrieveDocumentsRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2123,7 +2123,7 @@ def retrieve_documents( :type organization: str :param pipeline: (required) :type pipeline: str - :param retrieve_documents_request: + :param retrieve_documents_request: (required) :type retrieve_documents_request: RetrieveDocumentsRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -2181,7 +2181,7 @@ def retrieve_documents_with_http_info( self, organization: StrictStr, pipeline: StrictStr, - retrieve_documents_request: Optional[RetrieveDocumentsRequest] = None, + retrieve_documents_request: RetrieveDocumentsRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2202,7 +2202,7 @@ def retrieve_documents_with_http_info( :type organization: str :param pipeline: (required) :type pipeline: str - :param retrieve_documents_request: + :param retrieve_documents_request: (required) :type retrieve_documents_request: RetrieveDocumentsRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -2260,7 +2260,7 @@ def retrieve_documents_without_preload_content( self, organization: StrictStr, pipeline: StrictStr, - retrieve_documents_request: Optional[RetrieveDocumentsRequest] = None, + retrieve_documents_request: RetrieveDocumentsRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2281,7 +2281,7 @@ def retrieve_documents_without_preload_content( :type organization: str :param pipeline: (required) :type pipeline: str - :param retrieve_documents_request: + :param retrieve_documents_request: (required) :type retrieve_documents_request: RetrieveDocumentsRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -2418,7 +2418,7 @@ def start_deep_research( self, organization: StrictStr, pipeline: StrictStr, - start_deep_research_request: Optional[StartDeepResearchRequest] = None, + start_deep_research_request: StartDeepResearchRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2439,7 +2439,7 @@ def start_deep_research( :type organization: str :param pipeline: (required) :type pipeline: str - :param start_deep_research_request: + :param start_deep_research_request: (required) :type start_deep_research_request: StartDeepResearchRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -2497,7 +2497,7 @@ def start_deep_research_with_http_info( self, organization: StrictStr, pipeline: StrictStr, - start_deep_research_request: Optional[StartDeepResearchRequest] = None, + start_deep_research_request: StartDeepResearchRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2518,7 +2518,7 @@ def start_deep_research_with_http_info( :type organization: str :param pipeline: (required) :type pipeline: str - :param start_deep_research_request: + :param start_deep_research_request: (required) :type start_deep_research_request: StartDeepResearchRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -2576,7 +2576,7 @@ def start_deep_research_without_preload_content( self, organization: StrictStr, pipeline: StrictStr, - start_deep_research_request: Optional[StartDeepResearchRequest] = None, + start_deep_research_request: StartDeepResearchRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2597,7 +2597,7 @@ def start_deep_research_without_preload_content( :type organization: str :param pipeline: (required) :type pipeline: str - :param start_deep_research_request: + :param start_deep_research_request: (required) :type start_deep_research_request: StartDeepResearchRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request diff --git a/src/python/vectorize_client/api/uploads_api.py b/src/python/vectorize_client/api/uploads_api.py index 873abfa..4372dde 100644 --- a/src/python/vectorize_client/api/uploads_api.py +++ b/src/python/vectorize_client/api/uploads_api.py @@ -17,7 +17,6 @@ from typing_extensions import Annotated from pydantic import StrictStr -from typing import Optional from vectorize_client.models.delete_file_response import DeleteFileResponse from vectorize_client.models.get_upload_files_response import GetUploadFilesResponse from vectorize_client.models.start_file_upload_to_connector_request import StartFileUploadToConnectorRequest @@ -622,7 +621,7 @@ def start_file_upload_to_connector( self, organization: StrictStr, connector_id: StrictStr, - start_file_upload_to_connector_request: Optional[StartFileUploadToConnectorRequest] = None, + start_file_upload_to_connector_request: StartFileUploadToConnectorRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -643,7 +642,7 @@ def start_file_upload_to_connector( :type organization: str :param connector_id: (required) :type connector_id: str - :param start_file_upload_to_connector_request: + :param start_file_upload_to_connector_request: (required) :type start_file_upload_to_connector_request: StartFileUploadToConnectorRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -701,7 +700,7 @@ def start_file_upload_to_connector_with_http_info( self, organization: StrictStr, connector_id: StrictStr, - start_file_upload_to_connector_request: Optional[StartFileUploadToConnectorRequest] = None, + start_file_upload_to_connector_request: StartFileUploadToConnectorRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -722,7 +721,7 @@ def start_file_upload_to_connector_with_http_info( :type organization: str :param connector_id: (required) :type connector_id: str - :param start_file_upload_to_connector_request: + :param start_file_upload_to_connector_request: (required) :type start_file_upload_to_connector_request: StartFileUploadToConnectorRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -780,7 +779,7 @@ def start_file_upload_to_connector_without_preload_content( self, organization: StrictStr, connector_id: StrictStr, - start_file_upload_to_connector_request: Optional[StartFileUploadToConnectorRequest] = None, + start_file_upload_to_connector_request: StartFileUploadToConnectorRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -801,7 +800,7 @@ def start_file_upload_to_connector_without_preload_content( :type organization: str :param connector_id: (required) :type connector_id: str - :param start_file_upload_to_connector_request: + :param start_file_upload_to_connector_request: (required) :type start_file_upload_to_connector_request: StartFileUploadToConnectorRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request diff --git a/src/python/vectorize_client/models/__init__.py b/src/python/vectorize_client/models/__init__.py index 101708b..93f1e96 100644 --- a/src/python/vectorize_client/models/__init__.py +++ b/src/python/vectorize_client/models/__init__.py @@ -15,13 +15,23 @@ # import models into model package from vectorize_client.models.ai_platform import AIPlatform +from vectorize_client.models.ai_platform_config_schema import AIPlatformConfigSchema from vectorize_client.models.ai_platform_schema import AIPlatformSchema +from vectorize_client.models.ai_platform_type import AIPlatformType +from vectorize_client.models.add_user_from_source_connector_response import AddUserFromSourceConnectorResponse +from vectorize_client.models.add_user_to_source_connector_request import AddUserToSourceConnectorRequest +from vectorize_client.models.create_ai_platform_connector import CreateAIPlatformConnector from vectorize_client.models.create_ai_platform_connector_response import CreateAIPlatformConnectorResponse +from vectorize_client.models.create_destination_connector import CreateDestinationConnector from vectorize_client.models.create_destination_connector_response import CreateDestinationConnectorResponse from vectorize_client.models.create_pipeline_response import CreatePipelineResponse from vectorize_client.models.create_pipeline_response_data import CreatePipelineResponseData +from vectorize_client.models.create_source_connector import CreateSourceConnector from vectorize_client.models.create_source_connector_response import CreateSourceConnectorResponse -from vectorize_client.models.create_source_connector_response_connectors_inner import CreateSourceConnectorResponseConnectorsInner +from vectorize_client.models.created_ai_platform_connector import CreatedAIPlatformConnector +from vectorize_client.models.created_destination_connector import CreatedDestinationConnector +from vectorize_client.models.created_source_connector import CreatedSourceConnector +from vectorize_client.models.deep_research_result import DeepResearchResult from vectorize_client.models.delete_ai_platform_connector_response import DeleteAIPlatformConnectorResponse from vectorize_client.models.delete_destination_connector_response import DeleteDestinationConnectorResponse from vectorize_client.models.delete_file_response import DeleteFileResponse @@ -29,35 +39,40 @@ from vectorize_client.models.delete_source_connector_response import DeleteSourceConnectorResponse from vectorize_client.models.destination_connector import DestinationConnector from vectorize_client.models.destination_connector_schema import DestinationConnectorSchema +from vectorize_client.models.destination_connector_type import DestinationConnectorType from vectorize_client.models.document import Document +from vectorize_client.models.extraction_chunking_strategy import ExtractionChunkingStrategy +from vectorize_client.models.extraction_result import ExtractionResult from vectorize_client.models.extraction_result_response import ExtractionResultResponse -from vectorize_client.models.extraction_result_response_data import ExtractionResultResponseData +from vectorize_client.models.extraction_type import ExtractionType from vectorize_client.models.get_ai_platform_connectors200_response import GetAIPlatformConnectors200Response from vectorize_client.models.get_deep_research_response import GetDeepResearchResponse -from vectorize_client.models.get_deep_research_response_data import GetDeepResearchResponseData from vectorize_client.models.get_destination_connectors200_response import GetDestinationConnectors200Response from vectorize_client.models.get_pipeline_events_response import GetPipelineEventsResponse -from vectorize_client.models.get_pipeline_events_response_data_inner import GetPipelineEventsResponseDataInner from vectorize_client.models.get_pipeline_metrics_response import GetPipelineMetricsResponse -from vectorize_client.models.get_pipeline_metrics_response_data_inner import GetPipelineMetricsResponseDataInner from vectorize_client.models.get_pipeline_response import GetPipelineResponse from vectorize_client.models.get_pipelines400_response import GetPipelines400Response from vectorize_client.models.get_pipelines_response import GetPipelinesResponse from vectorize_client.models.get_source_connectors200_response import GetSourceConnectors200Response from vectorize_client.models.get_upload_files_response import GetUploadFilesResponse -from vectorize_client.models.get_upload_files_response_files_inner import GetUploadFilesResponseFilesInner +from vectorize_client.models.n8_n_config import N8NConfig from vectorize_client.models.pipeline_configuration_schema import PipelineConfigurationSchema +from vectorize_client.models.pipeline_events import PipelineEvents from vectorize_client.models.pipeline_list_summary import PipelineListSummary +from vectorize_client.models.pipeline_metrics import PipelineMetrics from vectorize_client.models.pipeline_summary import PipelineSummary +from vectorize_client.models.remove_user_from_source_connector_request import RemoveUserFromSourceConnectorRequest +from vectorize_client.models.remove_user_from_source_connector_response import RemoveUserFromSourceConnectorResponse +from vectorize_client.models.retrieve_context import RetrieveContext +from vectorize_client.models.retrieve_context_message import RetrieveContextMessage from vectorize_client.models.retrieve_documents_request import RetrieveDocumentsRequest -from vectorize_client.models.retrieve_documents_request_context import RetrieveDocumentsRequestContext -from vectorize_client.models.retrieve_documents_request_context_messages_inner import RetrieveDocumentsRequestContextMessagesInner from vectorize_client.models.retrieve_documents_response import RetrieveDocumentsResponse from vectorize_client.models.schedule_schema import ScheduleSchema +from vectorize_client.models.schedule_schema_type import ScheduleSchemaType from vectorize_client.models.source_connector import SourceConnector from vectorize_client.models.source_connector_schema import SourceConnectorSchema +from vectorize_client.models.source_connector_type import SourceConnectorType from vectorize_client.models.start_deep_research_request import StartDeepResearchRequest -from vectorize_client.models.start_deep_research_request_n8n import StartDeepResearchRequestN8n from vectorize_client.models.start_deep_research_response import StartDeepResearchResponse from vectorize_client.models.start_extraction_request import StartExtractionRequest from vectorize_client.models.start_extraction_response import StartExtractionResponse @@ -68,8 +83,14 @@ from vectorize_client.models.start_pipeline_response import StartPipelineResponse from vectorize_client.models.stop_pipeline_response import StopPipelineResponse from vectorize_client.models.update_ai_platform_connector_request import UpdateAIPlatformConnectorRequest -from vectorize_client.models.update_ai_platform_connector_request_data import UpdateAIPlatformConnectorRequestData -from vectorize_client.models.update_destination_connector200_response import UpdateDestinationConnector200Response -from vectorize_client.models.update_destination_connector200_response_all_of_data import UpdateDestinationConnector200ResponseAllOfData +from vectorize_client.models.update_ai_platform_connector_response import UpdateAIPlatformConnectorResponse +from vectorize_client.models.update_destination_connector_request import UpdateDestinationConnectorRequest +from vectorize_client.models.update_destination_connector_response import UpdateDestinationConnectorResponse from vectorize_client.models.update_source_connector_request import UpdateSourceConnectorRequest -from vectorize_client.models.update_source_connector_request_data import UpdateSourceConnectorRequestData +from vectorize_client.models.update_source_connector_response import UpdateSourceConnectorResponse +from vectorize_client.models.update_source_connector_response_data import UpdateSourceConnectorResponseData +from vectorize_client.models.update_user_in_source_connector_request import UpdateUserInSourceConnectorRequest +from vectorize_client.models.update_user_in_source_connector_response import UpdateUserInSourceConnectorResponse +from vectorize_client.models.updated_ai_platform_connector_data import UpdatedAIPlatformConnectorData +from vectorize_client.models.updated_destination_connector_data import UpdatedDestinationConnectorData +from vectorize_client.models.upload_file import UploadFile diff --git a/src/python/vectorize_client/models/ai_platform_schema.py b/src/python/vectorize_client/models/ai_platform_schema.py index a70912d..e998401 100644 --- a/src/python/vectorize_client/models/ai_platform_schema.py +++ b/src/python/vectorize_client/models/ai_platform_schema.py @@ -19,6 +19,8 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List +from vectorize_client.models.ai_platform_config_schema import AIPlatformConfigSchema +from vectorize_client.models.ai_platform_type import AIPlatformType from typing import Optional, Set from typing_extensions import Self @@ -27,8 +29,8 @@ class AIPlatformSchema(BaseModel): AIPlatformSchema """ # noqa: E501 id: StrictStr - type: StrictStr - config: Dict[str, Any] + type: AIPlatformType + config: AIPlatformConfigSchema __properties: ClassVar[List[str]] = ["id", "type", "config"] model_config = ConfigDict( @@ -70,6 +72,9 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of config + if self.config: + _dict['config'] = self.config.to_dict() return _dict @classmethod @@ -84,7 +89,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "id": obj.get("id"), "type": obj.get("type"), - "config": obj.get("config") + "config": AIPlatformConfigSchema.from_dict(obj["config"]) if obj.get("config") is not None else None }) return _obj diff --git a/src/python/vectorize_client/models/create_ai_platform_connector_response.py b/src/python/vectorize_client/models/create_ai_platform_connector_response.py index f1295d1..a783ca8 100644 --- a/src/python/vectorize_client/models/create_ai_platform_connector_response.py +++ b/src/python/vectorize_client/models/create_ai_platform_connector_response.py @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List -from vectorize_client.models.create_source_connector_response_connectors_inner import CreateSourceConnectorResponseConnectorsInner +from vectorize_client.models.created_ai_platform_connector import CreatedAIPlatformConnector from typing import Optional, Set from typing_extensions import Self @@ -28,7 +28,7 @@ class CreateAIPlatformConnectorResponse(BaseModel): CreateAIPlatformConnectorResponse """ # noqa: E501 message: StrictStr - connectors: List[CreateSourceConnectorResponseConnectorsInner] + connectors: List[CreatedAIPlatformConnector] __properties: ClassVar[List[str]] = ["message", "connectors"] model_config = ConfigDict( @@ -90,7 +90,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "message": obj.get("message"), - "connectors": [CreateSourceConnectorResponseConnectorsInner.from_dict(_item) for _item in obj["connectors"]] if obj.get("connectors") is not None else None + "connectors": [CreatedAIPlatformConnector.from_dict(_item) for _item in obj["connectors"]] if obj.get("connectors") is not None else None }) return _obj diff --git a/src/python/vectorize_client/models/create_destination_connector_response.py b/src/python/vectorize_client/models/create_destination_connector_response.py index cb13678..db141d1 100644 --- a/src/python/vectorize_client/models/create_destination_connector_response.py +++ b/src/python/vectorize_client/models/create_destination_connector_response.py @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List -from vectorize_client.models.create_source_connector_response_connectors_inner import CreateSourceConnectorResponseConnectorsInner +from vectorize_client.models.created_destination_connector import CreatedDestinationConnector from typing import Optional, Set from typing_extensions import Self @@ -28,7 +28,7 @@ class CreateDestinationConnectorResponse(BaseModel): CreateDestinationConnectorResponse """ # noqa: E501 message: StrictStr - connectors: List[CreateSourceConnectorResponseConnectorsInner] + connectors: List[CreatedDestinationConnector] __properties: ClassVar[List[str]] = ["message", "connectors"] model_config = ConfigDict( @@ -90,7 +90,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "message": obj.get("message"), - "connectors": [CreateSourceConnectorResponseConnectorsInner.from_dict(_item) for _item in obj["connectors"]] if obj.get("connectors") is not None else None + "connectors": [CreatedDestinationConnector.from_dict(_item) for _item in obj["connectors"]] if obj.get("connectors") is not None else None }) return _obj diff --git a/src/python/vectorize_client/models/create_source_connector_response.py b/src/python/vectorize_client/models/create_source_connector_response.py index d65587e..48b63fc 100644 --- a/src/python/vectorize_client/models/create_source_connector_response.py +++ b/src/python/vectorize_client/models/create_source_connector_response.py @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List -from vectorize_client.models.create_source_connector_response_connectors_inner import CreateSourceConnectorResponseConnectorsInner +from vectorize_client.models.created_source_connector import CreatedSourceConnector from typing import Optional, Set from typing_extensions import Self @@ -28,7 +28,7 @@ class CreateSourceConnectorResponse(BaseModel): CreateSourceConnectorResponse """ # noqa: E501 message: StrictStr - connectors: List[CreateSourceConnectorResponseConnectorsInner] + connectors: List[CreatedSourceConnector] __properties: ClassVar[List[str]] = ["message", "connectors"] model_config = ConfigDict( @@ -90,7 +90,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "message": obj.get("message"), - "connectors": [CreateSourceConnectorResponseConnectorsInner.from_dict(_item) for _item in obj["connectors"]] if obj.get("connectors") is not None else None + "connectors": [CreatedSourceConnector.from_dict(_item) for _item in obj["connectors"]] if obj.get("connectors") is not None else None }) return _obj diff --git a/src/python/vectorize_client/models/create_source_connector_response_connectors_inner.py b/src/python/vectorize_client/models/create_source_connector_response_connectors_inner.py deleted file mode 100644 index 3421f62..0000000 --- a/src/python/vectorize_client/models/create_source_connector_response_connectors_inner.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Vectorize API (Beta) - - API for Vectorize services - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self - -class CreateSourceConnectorResponseConnectorsInner(BaseModel): - """ - CreateSourceConnectorResponseConnectorsInner - """ # noqa: E501 - name: StrictStr - id: StrictStr - __properties: ClassVar[List[str]] = ["name", "id"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of CreateSourceConnectorResponseConnectorsInner from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of CreateSourceConnectorResponseConnectorsInner from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "name": obj.get("name"), - "id": obj.get("id") - }) - return _obj - - diff --git a/src/python/vectorize_client/models/destination_connector_schema.py b/src/python/vectorize_client/models/destination_connector_schema.py index b1e04ec..8206eeb 100644 --- a/src/python/vectorize_client/models/destination_connector_schema.py +++ b/src/python/vectorize_client/models/destination_connector_schema.py @@ -18,7 +18,8 @@ import json from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict, List +from typing import Any, ClassVar, Dict, List, Optional +from vectorize_client.models.destination_connector_type import DestinationConnectorType from typing import Optional, Set from typing_extensions import Self @@ -27,8 +28,8 @@ class DestinationConnectorSchema(BaseModel): DestinationConnectorSchema """ # noqa: E501 id: StrictStr - type: StrictStr - config: Dict[str, Any] + type: DestinationConnectorType + config: Optional[Dict[str, Any]] = None __properties: ClassVar[List[str]] = ["id", "type", "config"] model_config = ConfigDict( diff --git a/src/python/vectorize_client/models/extraction_result_response.py b/src/python/vectorize_client/models/extraction_result_response.py index a8179a7..57968d4 100644 --- a/src/python/vectorize_client/models/extraction_result_response.py +++ b/src/python/vectorize_client/models/extraction_result_response.py @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, StrictBool from typing import Any, ClassVar, Dict, List, Optional -from vectorize_client.models.extraction_result_response_data import ExtractionResultResponseData +from vectorize_client.models.extraction_result import ExtractionResult from typing import Optional, Set from typing_extensions import Self @@ -28,7 +28,7 @@ class ExtractionResultResponse(BaseModel): ExtractionResultResponse """ # noqa: E501 ready: StrictBool - data: Optional[ExtractionResultResponseData] = None + data: Optional[ExtractionResult] = None __properties: ClassVar[List[str]] = ["ready", "data"] model_config = ConfigDict( @@ -86,7 +86,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "ready": obj.get("ready"), - "data": ExtractionResultResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None + "data": ExtractionResult.from_dict(obj["data"]) if obj.get("data") is not None else None }) return _obj diff --git a/src/python/vectorize_client/models/extraction_result_response_data.py b/src/python/vectorize_client/models/extraction_result_response_data.py deleted file mode 100644 index 982a15b..0000000 --- a/src/python/vectorize_client/models/extraction_result_response_data.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Vectorize API (Beta) - - API for Vectorize services - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class ExtractionResultResponseData(BaseModel): - """ - ExtractionResultResponseData - """ # noqa: E501 - success: StrictBool - chunks: Optional[List[StrictStr]] = None - text: Optional[StrictStr] = None - error: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["success", "chunks", "text", "error"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ExtractionResultResponseData from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ExtractionResultResponseData from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "success": obj.get("success"), - "chunks": obj.get("chunks"), - "text": obj.get("text"), - "error": obj.get("error") - }) - return _obj - - diff --git a/src/python/vectorize_client/models/get_deep_research_response.py b/src/python/vectorize_client/models/get_deep_research_response.py index 5ef3bae..05d6bad 100644 --- a/src/python/vectorize_client/models/get_deep_research_response.py +++ b/src/python/vectorize_client/models/get_deep_research_response.py @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, StrictBool from typing import Any, ClassVar, Dict, List, Optional -from vectorize_client.models.get_deep_research_response_data import GetDeepResearchResponseData +from vectorize_client.models.deep_research_result import DeepResearchResult from typing import Optional, Set from typing_extensions import Self @@ -28,7 +28,7 @@ class GetDeepResearchResponse(BaseModel): GetDeepResearchResponse """ # noqa: E501 ready: StrictBool - data: Optional[GetDeepResearchResponseData] = None + data: Optional[DeepResearchResult] = None __properties: ClassVar[List[str]] = ["ready", "data"] model_config = ConfigDict( @@ -86,7 +86,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "ready": obj.get("ready"), - "data": GetDeepResearchResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None + "data": DeepResearchResult.from_dict(obj["data"]) if obj.get("data") is not None else None }) return _obj diff --git a/src/python/vectorize_client/models/get_deep_research_response_data.py b/src/python/vectorize_client/models/get_deep_research_response_data.py deleted file mode 100644 index f67aea7..0000000 --- a/src/python/vectorize_client/models/get_deep_research_response_data.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Vectorize API (Beta) - - API for Vectorize services - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class GetDeepResearchResponseData(BaseModel): - """ - GetDeepResearchResponseData - """ # noqa: E501 - success: StrictBool - events: Optional[List[StrictStr]] = None - markdown: Optional[StrictStr] = None - error: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["success", "events", "markdown", "error"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetDeepResearchResponseData from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetDeepResearchResponseData from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "success": obj.get("success"), - "events": obj.get("events"), - "markdown": obj.get("markdown"), - "error": obj.get("error") - }) - return _obj - - diff --git a/src/python/vectorize_client/models/get_pipeline_events_response.py b/src/python/vectorize_client/models/get_pipeline_events_response.py index 90588d8..b70fce4 100644 --- a/src/python/vectorize_client/models/get_pipeline_events_response.py +++ b/src/python/vectorize_client/models/get_pipeline_events_response.py @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from vectorize_client.models.get_pipeline_events_response_data_inner import GetPipelineEventsResponseDataInner +from vectorize_client.models.pipeline_events import PipelineEvents from typing import Optional, Set from typing_extensions import Self @@ -29,7 +29,7 @@ class GetPipelineEventsResponse(BaseModel): """ # noqa: E501 message: StrictStr next_token: Optional[StrictStr] = Field(default=None, alias="nextToken") - data: List[GetPipelineEventsResponseDataInner] + data: List[PipelineEvents] __properties: ClassVar[List[str]] = ["message", "nextToken", "data"] model_config = ConfigDict( @@ -92,7 +92,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "message": obj.get("message"), "nextToken": obj.get("nextToken"), - "data": [GetPipelineEventsResponseDataInner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None + "data": [PipelineEvents.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None }) return _obj diff --git a/src/python/vectorize_client/models/get_pipeline_events_response_data_inner.py b/src/python/vectorize_client/models/get_pipeline_events_response_data_inner.py deleted file mode 100644 index 56c4e43..0000000 --- a/src/python/vectorize_client/models/get_pipeline_events_response_data_inner.py +++ /dev/null @@ -1,100 +0,0 @@ -# coding: utf-8 - -""" - Vectorize API (Beta) - - API for Vectorize services - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class GetPipelineEventsResponseDataInner(BaseModel): - """ - GetPipelineEventsResponseDataInner - """ # noqa: E501 - id: StrictStr - type: StrictStr - timestamp: Optional[StrictStr] - details: Optional[Dict[str, Any]] = None - summary: Optional[Dict[str, Any]] = None - __properties: ClassVar[List[str]] = ["id", "type", "timestamp", "details", "summary"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetPipelineEventsResponseDataInner from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if timestamp (nullable) is None - # and model_fields_set contains the field - if self.timestamp is None and "timestamp" in self.model_fields_set: - _dict['timestamp'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetPipelineEventsResponseDataInner from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "id": obj.get("id"), - "type": obj.get("type"), - "timestamp": obj.get("timestamp"), - "details": obj.get("details"), - "summary": obj.get("summary") - }) - return _obj - - diff --git a/src/python/vectorize_client/models/get_pipeline_metrics_response.py b/src/python/vectorize_client/models/get_pipeline_metrics_response.py index d67e781..6545e1f 100644 --- a/src/python/vectorize_client/models/get_pipeline_metrics_response.py +++ b/src/python/vectorize_client/models/get_pipeline_metrics_response.py @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List -from vectorize_client.models.get_pipeline_metrics_response_data_inner import GetPipelineMetricsResponseDataInner +from vectorize_client.models.pipeline_metrics import PipelineMetrics from typing import Optional, Set from typing_extensions import Self @@ -28,7 +28,7 @@ class GetPipelineMetricsResponse(BaseModel): GetPipelineMetricsResponse """ # noqa: E501 message: StrictStr - data: List[GetPipelineMetricsResponseDataInner] + data: List[PipelineMetrics] __properties: ClassVar[List[str]] = ["message", "data"] model_config = ConfigDict( @@ -90,7 +90,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "message": obj.get("message"), - "data": [GetPipelineMetricsResponseDataInner.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None + "data": [PipelineMetrics.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None }) return _obj diff --git a/src/python/vectorize_client/models/get_pipeline_metrics_response_data_inner.py b/src/python/vectorize_client/models/get_pipeline_metrics_response_data_inner.py deleted file mode 100644 index 520b16a..0000000 --- a/src/python/vectorize_client/models/get_pipeline_metrics_response_data_inner.py +++ /dev/null @@ -1,98 +0,0 @@ -# coding: utf-8 - -""" - Vectorize API (Beta) - - API for Vectorize services - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional, Union -from typing import Optional, Set -from typing_extensions import Self - -class GetPipelineMetricsResponseDataInner(BaseModel): - """ - GetPipelineMetricsResponseDataInner - """ # noqa: E501 - timestamp: Optional[StrictStr] - new_objects: Union[StrictFloat, StrictInt] = Field(alias="newObjects") - changed_objects: Union[StrictFloat, StrictInt] = Field(alias="changedObjects") - deleted_objects: Union[StrictFloat, StrictInt] = Field(alias="deletedObjects") - __properties: ClassVar[List[str]] = ["timestamp", "newObjects", "changedObjects", "deletedObjects"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetPipelineMetricsResponseDataInner from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if timestamp (nullable) is None - # and model_fields_set contains the field - if self.timestamp is None and "timestamp" in self.model_fields_set: - _dict['timestamp'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetPipelineMetricsResponseDataInner from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "timestamp": obj.get("timestamp"), - "newObjects": obj.get("newObjects"), - "changedObjects": obj.get("changedObjects"), - "deletedObjects": obj.get("deletedObjects") - }) - return _obj - - diff --git a/src/python/vectorize_client/models/get_upload_files_response.py b/src/python/vectorize_client/models/get_upload_files_response.py index 9ec2756..060208a 100644 --- a/src/python/vectorize_client/models/get_upload_files_response.py +++ b/src/python/vectorize_client/models/get_upload_files_response.py @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List -from vectorize_client.models.get_upload_files_response_files_inner import GetUploadFilesResponseFilesInner +from vectorize_client.models.upload_file import UploadFile from typing import Optional, Set from typing_extensions import Self @@ -28,7 +28,7 @@ class GetUploadFilesResponse(BaseModel): GetUploadFilesResponse """ # noqa: E501 message: StrictStr - files: List[GetUploadFilesResponseFilesInner] + files: List[UploadFile] __properties: ClassVar[List[str]] = ["message", "files"] model_config = ConfigDict( @@ -90,7 +90,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "message": obj.get("message"), - "files": [GetUploadFilesResponseFilesInner.from_dict(_item) for _item in obj["files"]] if obj.get("files") is not None else None + "files": [UploadFile.from_dict(_item) for _item in obj["files"]] if obj.get("files") is not None else None }) return _obj diff --git a/src/python/vectorize_client/models/get_upload_files_response_files_inner.py b/src/python/vectorize_client/models/get_upload_files_response_files_inner.py deleted file mode 100644 index 319e9ec..0000000 --- a/src/python/vectorize_client/models/get_upload_files_response_files_inner.py +++ /dev/null @@ -1,102 +0,0 @@ -# coding: utf-8 - -""" - Vectorize API (Beta) - - API for Vectorize services - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional, Union -from typing import Optional, Set -from typing_extensions import Self - -class GetUploadFilesResponseFilesInner(BaseModel): - """ - GetUploadFilesResponseFilesInner - """ # noqa: E501 - key: StrictStr - name: StrictStr - size: Union[StrictFloat, StrictInt] - extension: Optional[StrictStr] = None - last_modified: Optional[StrictStr] = Field(alias="lastModified") - metadata: Dict[str, StrictStr] - __properties: ClassVar[List[str]] = ["key", "name", "size", "extension", "lastModified", "metadata"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetUploadFilesResponseFilesInner from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # set to None if last_modified (nullable) is None - # and model_fields_set contains the field - if self.last_modified is None and "last_modified" in self.model_fields_set: - _dict['lastModified'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetUploadFilesResponseFilesInner from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "key": obj.get("key"), - "name": obj.get("name"), - "size": obj.get("size"), - "extension": obj.get("extension"), - "lastModified": obj.get("lastModified"), - "metadata": obj.get("metadata") - }) - return _obj - - diff --git a/src/python/vectorize_client/models/retrieve_documents_request.py b/src/python/vectorize_client/models/retrieve_documents_request.py index 0c3d579..1aa7981 100644 --- a/src/python/vectorize_client/models/retrieve_documents_request.py +++ b/src/python/vectorize_client/models/retrieve_documents_request.py @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union from typing_extensions import Annotated -from vectorize_client.models.retrieve_documents_request_context import RetrieveDocumentsRequestContext +from vectorize_client.models.retrieve_context import RetrieveContext from typing import Optional, Set from typing_extensions import Self @@ -32,7 +32,7 @@ class RetrieveDocumentsRequest(BaseModel): num_results: Union[Annotated[float, Field(strict=True, ge=1)], Annotated[int, Field(strict=True, ge=1)]] = Field(alias="numResults") rerank: Optional[StrictBool] = True metadata_filters: Optional[List[Dict[str, Any]]] = Field(default=None, alias="metadata-filters") - context: Optional[RetrieveDocumentsRequestContext] = None + context: Optional[RetrieveContext] = None __properties: ClassVar[List[str]] = ["question", "numResults", "rerank", "metadata-filters", "context"] model_config = ConfigDict( @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "numResults": obj.get("numResults"), "rerank": obj.get("rerank") if obj.get("rerank") is not None else True, "metadata-filters": obj.get("metadata-filters"), - "context": RetrieveDocumentsRequestContext.from_dict(obj["context"]) if obj.get("context") is not None else None + "context": RetrieveContext.from_dict(obj["context"]) if obj.get("context") is not None else None }) return _obj diff --git a/src/python/vectorize_client/models/retrieve_documents_request_context.py b/src/python/vectorize_client/models/retrieve_documents_request_context.py deleted file mode 100644 index 1b77119..0000000 --- a/src/python/vectorize_client/models/retrieve_documents_request_context.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Vectorize API (Beta) - - API for Vectorize services - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List -from vectorize_client.models.retrieve_documents_request_context_messages_inner import RetrieveDocumentsRequestContextMessagesInner -from typing import Optional, Set -from typing_extensions import Self - -class RetrieveDocumentsRequestContext(BaseModel): - """ - RetrieveDocumentsRequestContext - """ # noqa: E501 - messages: List[RetrieveDocumentsRequestContextMessagesInner] - __properties: ClassVar[List[str]] = ["messages"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of RetrieveDocumentsRequestContext from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in messages (list) - _items = [] - if self.messages: - for _item_messages in self.messages: - if _item_messages: - _items.append(_item_messages.to_dict()) - _dict['messages'] = _items - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of RetrieveDocumentsRequestContext from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "messages": [RetrieveDocumentsRequestContextMessagesInner.from_dict(_item) for _item in obj["messages"]] if obj.get("messages") is not None else None - }) - return _obj - - diff --git a/src/python/vectorize_client/models/retrieve_documents_request_context_messages_inner.py b/src/python/vectorize_client/models/retrieve_documents_request_context_messages_inner.py deleted file mode 100644 index 3404a70..0000000 --- a/src/python/vectorize_client/models/retrieve_documents_request_context_messages_inner.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Vectorize API (Beta) - - API for Vectorize services - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self - -class RetrieveDocumentsRequestContextMessagesInner(BaseModel): - """ - RetrieveDocumentsRequestContextMessagesInner - """ # noqa: E501 - role: StrictStr - content: StrictStr - __properties: ClassVar[List[str]] = ["role", "content"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of RetrieveDocumentsRequestContextMessagesInner from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of RetrieveDocumentsRequestContextMessagesInner from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "role": obj.get("role"), - "content": obj.get("content") - }) - return _obj - - diff --git a/src/python/vectorize_client/models/schedule_schema.py b/src/python/vectorize_client/models/schedule_schema.py index a6564b4..3032bf2 100644 --- a/src/python/vectorize_client/models/schedule_schema.py +++ b/src/python/vectorize_client/models/schedule_schema.py @@ -17,8 +17,9 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr, field_validator +from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List +from vectorize_client.models.schedule_schema_type import ScheduleSchemaType from typing import Optional, Set from typing_extensions import Self @@ -26,16 +27,9 @@ class ScheduleSchema(BaseModel): """ ScheduleSchema """ # noqa: E501 - type: StrictStr + type: ScheduleSchemaType __properties: ClassVar[List[str]] = ["type"] - @field_validator('type') - def type_validate_enum(cls, value): - """Validates the enum""" - if value not in set(['manual', 'realtime', 'custom']): - raise ValueError("must be one of enum values ('manual', 'realtime', 'custom')") - return value - model_config = ConfigDict( populate_by_name=True, validate_assignment=True, diff --git a/src/python/vectorize_client/models/source_connector_schema.py b/src/python/vectorize_client/models/source_connector_schema.py index 929aba6..7b4b594 100644 --- a/src/python/vectorize_client/models/source_connector_schema.py +++ b/src/python/vectorize_client/models/source_connector_schema.py @@ -17,8 +17,9 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from vectorize_client.models.source_connector_type import SourceConnectorType from typing import Optional, Set from typing_extensions import Self @@ -27,17 +28,10 @@ class SourceConnectorSchema(BaseModel): SourceConnectorSchema """ # noqa: E501 id: StrictStr - type: StrictStr - config: Dict[str, Any] + type: SourceConnectorType + config: Optional[Dict[str, Any]] = None __properties: ClassVar[List[str]] = ["id", "type", "config"] - @field_validator('type') - def type_validate_enum(cls, value): - """Validates the enum""" - if value not in set(['AWS_S3', 'AZURE_BLOB', 'CONFLUENCE', 'DISCORD', 'DROPBOX', 'FIRECRAWL', 'GCS', 'GOOGLE_DRIVE', 'INTERCOM', 'ONE_DRIVE', 'SHAREPOINT', 'WEB_CRAWLER', 'FILE_UPLOAD', 'SALESFORCE', 'ZENDESK']): - raise ValueError("must be one of enum values ('AWS_S3', 'AZURE_BLOB', 'CONFLUENCE', 'DISCORD', 'DROPBOX', 'FIRECRAWL', 'GCS', 'GOOGLE_DRIVE', 'INTERCOM', 'ONE_DRIVE', 'SHAREPOINT', 'WEB_CRAWLER', 'FILE_UPLOAD', 'SALESFORCE', 'ZENDESK')") - return value - model_config = ConfigDict( populate_by_name=True, validate_assignment=True, diff --git a/src/python/vectorize_client/models/start_deep_research_request.py b/src/python/vectorize_client/models/start_deep_research_request.py index 0391ff5..d1260cc 100644 --- a/src/python/vectorize_client/models/start_deep_research_request.py +++ b/src/python/vectorize_client/models/start_deep_research_request.py @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from vectorize_client.models.start_deep_research_request_n8n import StartDeepResearchRequestN8n +from vectorize_client.models.n8_n_config import N8NConfig from typing import Optional, Set from typing_extensions import Self @@ -30,7 +30,7 @@ class StartDeepResearchRequest(BaseModel): query: StrictStr web_search: Optional[StrictBool] = Field(default=False, alias="webSearch") var_schema: Optional[StrictStr] = Field(default=None, alias="schema") - n8n: Optional[StartDeepResearchRequestN8n] = None + n8n: Optional[N8NConfig] = None __properties: ClassVar[List[str]] = ["query", "webSearch", "schema", "n8n"] model_config = ConfigDict( @@ -90,7 +90,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "query": obj.get("query"), "webSearch": obj.get("webSearch") if obj.get("webSearch") is not None else False, "schema": obj.get("schema"), - "n8n": StartDeepResearchRequestN8n.from_dict(obj["n8n"]) if obj.get("n8n") is not None else None + "n8n": N8NConfig.from_dict(obj["n8n"]) if obj.get("n8n") is not None else None }) return _obj diff --git a/src/python/vectorize_client/models/start_deep_research_request_n8n.py b/src/python/vectorize_client/models/start_deep_research_request_n8n.py deleted file mode 100644 index 042615f..0000000 --- a/src/python/vectorize_client/models/start_deep_research_request_n8n.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Vectorize API (Beta) - - API for Vectorize services - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class StartDeepResearchRequestN8n(BaseModel): - """ - StartDeepResearchRequestN8n - """ # noqa: E501 - account: StrictStr - webhook_path: StrictStr = Field(alias="webhookPath") - headers: Optional[Dict[str, StrictStr]] = None - __properties: ClassVar[List[str]] = ["account", "webhookPath", "headers"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of StartDeepResearchRequestN8n from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of StartDeepResearchRequestN8n from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "account": obj.get("account"), - "webhookPath": obj.get("webhookPath"), - "headers": obj.get("headers") - }) - return _obj - - diff --git a/src/python/vectorize_client/models/start_extraction_request.py b/src/python/vectorize_client/models/start_extraction_request.py index e35f35f..8130e7e 100644 --- a/src/python/vectorize_client/models/start_extraction_request.py +++ b/src/python/vectorize_client/models/start_extraction_request.py @@ -17,8 +17,10 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr, field_validator +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union +from vectorize_client.models.extraction_chunking_strategy import ExtractionChunkingStrategy +from vectorize_client.models.extraction_type import ExtractionType from typing import Optional, Set from typing_extensions import Self @@ -27,31 +29,11 @@ class StartExtractionRequest(BaseModel): StartExtractionRequest """ # noqa: E501 file_id: StrictStr = Field(alias="fileId") - type: Optional[StrictStr] = 'iris' - chunking_strategy: Optional[StrictStr] = Field(default='markdown', alias="chunkingStrategy") + type: Optional[ExtractionType] = ExtractionType.IRIS + chunking_strategy: Optional[ExtractionChunkingStrategy] = Field(default=ExtractionChunkingStrategy.MARKDOWN, alias="chunkingStrategy") chunk_size: Optional[Union[StrictFloat, StrictInt]] = Field(default=256, alias="chunkSize") __properties: ClassVar[List[str]] = ["fileId", "type", "chunkingStrategy", "chunkSize"] - @field_validator('type') - def type_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['iris']): - raise ValueError("must be one of enum values ('iris')") - return value - - @field_validator('chunking_strategy') - def chunking_strategy_validate_enum(cls, value): - """Validates the enum""" - if value is None: - return value - - if value not in set(['markdown']): - raise ValueError("must be one of enum values ('markdown')") - return value - model_config = ConfigDict( populate_by_name=True, validate_assignment=True, @@ -104,8 +86,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "fileId": obj.get("fileId"), - "type": obj.get("type") if obj.get("type") is not None else 'iris', - "chunkingStrategy": obj.get("chunkingStrategy") if obj.get("chunkingStrategy") is not None else 'markdown', + "type": obj.get("type") if obj.get("type") is not None else ExtractionType.IRIS, + "chunkingStrategy": obj.get("chunkingStrategy") if obj.get("chunkingStrategy") is not None else ExtractionChunkingStrategy.MARKDOWN, "chunkSize": obj.get("chunkSize") if obj.get("chunkSize") is not None else 256 }) return _obj diff --git a/src/python/vectorize_client/models/update_ai_platform_connector_request.py b/src/python/vectorize_client/models/update_ai_platform_connector_request.py index 14f04f2..4422aeb 100644 --- a/src/python/vectorize_client/models/update_ai_platform_connector_request.py +++ b/src/python/vectorize_client/models/update_ai_platform_connector_request.py @@ -17,9 +17,8 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List -from vectorize_client.models.update_ai_platform_connector_request_data import UpdateAIPlatformConnectorRequestData from typing import Optional, Set from typing_extensions import Self @@ -27,9 +26,8 @@ class UpdateAIPlatformConnectorRequest(BaseModel): """ UpdateAIPlatformConnectorRequest """ # noqa: E501 - message: StrictStr - data: UpdateAIPlatformConnectorRequestData - __properties: ClassVar[List[str]] = ["message", "data"] + config: Dict[str, Any] + __properties: ClassVar[List[str]] = ["config"] model_config = ConfigDict( populate_by_name=True, @@ -70,9 +68,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -85,8 +80,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "message": obj.get("message"), - "data": UpdateAIPlatformConnectorRequestData.from_dict(obj["data"]) if obj.get("data") is not None else None + "config": obj.get("config") }) return _obj diff --git a/src/python/vectorize_client/models/update_ai_platform_connector_request_data.py b/src/python/vectorize_client/models/update_ai_platform_connector_request_data.py deleted file mode 100644 index 86e6e51..0000000 --- a/src/python/vectorize_client/models/update_ai_platform_connector_request_data.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Vectorize API (Beta) - - API for Vectorize services - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from vectorize_client.models.ai_platform import AIPlatform -from typing import Optional, Set -from typing_extensions import Self - -class UpdateAIPlatformConnectorRequestData(BaseModel): - """ - UpdateAIPlatformConnectorRequestData - """ # noqa: E501 - updated_connector: AIPlatform = Field(alias="updatedConnector") - pipeline_ids: Optional[List[StrictStr]] = Field(default=None, alias="pipelineIds") - __properties: ClassVar[List[str]] = ["updatedConnector", "pipelineIds"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of UpdateAIPlatformConnectorRequestData from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of updated_connector - if self.updated_connector: - _dict['updatedConnector'] = self.updated_connector.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of UpdateAIPlatformConnectorRequestData from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "updatedConnector": AIPlatform.from_dict(obj["updatedConnector"]) if obj.get("updatedConnector") is not None else None, - "pipelineIds": obj.get("pipelineIds") - }) - return _obj - - diff --git a/src/python/vectorize_client/models/update_destination_connector200_response.py b/src/python/vectorize_client/models/update_destination_connector200_response.py deleted file mode 100644 index 50edf29..0000000 --- a/src/python/vectorize_client/models/update_destination_connector200_response.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Vectorize API (Beta) - - API for Vectorize services - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict, List -from vectorize_client.models.update_destination_connector200_response_all_of_data import UpdateDestinationConnector200ResponseAllOfData -from typing import Optional, Set -from typing_extensions import Self - -class UpdateDestinationConnector200Response(BaseModel): - """ - UpdateDestinationConnector200Response - """ # noqa: E501 - message: StrictStr - data: UpdateDestinationConnector200ResponseAllOfData - __properties: ClassVar[List[str]] = ["message", "data"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of UpdateDestinationConnector200Response from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of UpdateDestinationConnector200Response from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "message": obj.get("message"), - "data": UpdateDestinationConnector200ResponseAllOfData.from_dict(obj["data"]) if obj.get("data") is not None else None - }) - return _obj - - diff --git a/src/python/vectorize_client/models/update_destination_connector200_response_all_of_data.py b/src/python/vectorize_client/models/update_destination_connector200_response_all_of_data.py deleted file mode 100644 index d2e5412..0000000 --- a/src/python/vectorize_client/models/update_destination_connector200_response_all_of_data.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Vectorize API (Beta) - - API for Vectorize services - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from vectorize_client.models.destination_connector import DestinationConnector -from typing import Optional, Set -from typing_extensions import Self - -class UpdateDestinationConnector200ResponseAllOfData(BaseModel): - """ - UpdateDestinationConnector200ResponseAllOfData - """ # noqa: E501 - updated_connector: DestinationConnector = Field(alias="updatedConnector") - pipeline_ids: Optional[List[StrictStr]] = Field(default=None, alias="pipelineIds") - __properties: ClassVar[List[str]] = ["updatedConnector", "pipelineIds"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of UpdateDestinationConnector200ResponseAllOfData from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of updated_connector - if self.updated_connector: - _dict['updatedConnector'] = self.updated_connector.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of UpdateDestinationConnector200ResponseAllOfData from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "updatedConnector": DestinationConnector.from_dict(obj["updatedConnector"]) if obj.get("updatedConnector") is not None else None, - "pipelineIds": obj.get("pipelineIds") - }) - return _obj - - diff --git a/src/python/vectorize_client/models/update_source_connector_request.py b/src/python/vectorize_client/models/update_source_connector_request.py index ff69bc8..5b72fd8 100644 --- a/src/python/vectorize_client/models/update_source_connector_request.py +++ b/src/python/vectorize_client/models/update_source_connector_request.py @@ -17,9 +17,8 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List -from vectorize_client.models.update_source_connector_request_data import UpdateSourceConnectorRequestData from typing import Optional, Set from typing_extensions import Self @@ -27,9 +26,8 @@ class UpdateSourceConnectorRequest(BaseModel): """ UpdateSourceConnectorRequest """ # noqa: E501 - message: StrictStr - data: UpdateSourceConnectorRequestData - __properties: ClassVar[List[str]] = ["message", "data"] + config: Dict[str, Any] + __properties: ClassVar[List[str]] = ["config"] model_config = ConfigDict( populate_by_name=True, @@ -70,9 +68,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of data - if self.data: - _dict['data'] = self.data.to_dict() return _dict @classmethod @@ -85,8 +80,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "message": obj.get("message"), - "data": UpdateSourceConnectorRequestData.from_dict(obj["data"]) if obj.get("data") is not None else None + "config": obj.get("config") }) return _obj diff --git a/src/python/vectorize_client/models/update_source_connector_request_data.py b/src/python/vectorize_client/models/update_source_connector_request_data.py deleted file mode 100644 index 8165f42..0000000 --- a/src/python/vectorize_client/models/update_source_connector_request_data.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Vectorize API (Beta) - - API for Vectorize services - - The version of the OpenAPI document: 0.0.1 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from vectorize_client.models.source_connector import SourceConnector -from typing import Optional, Set -from typing_extensions import Self - -class UpdateSourceConnectorRequestData(BaseModel): - """ - UpdateSourceConnectorRequestData - """ # noqa: E501 - updated_connector: SourceConnector = Field(alias="updatedConnector") - pipeline_ids: Optional[List[StrictStr]] = Field(default=None, alias="pipelineIds") - __properties: ClassVar[List[str]] = ["updatedConnector", "pipelineIds"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of UpdateSourceConnectorRequestData from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of updated_connector - if self.updated_connector: - _dict['updatedConnector'] = self.updated_connector.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of UpdateSourceConnectorRequestData from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "updatedConnector": SourceConnector.from_dict(obj["updatedConnector"]) if obj.get("updatedConnector") is not None else None, - "pipelineIds": obj.get("pipelineIds") - }) - return _obj - - diff --git a/src/ts/src/apis/ConnectorsApi.ts b/src/ts/src/apis/ConnectorsApi.ts index edc310c..4c86bda 100644 --- a/src/ts/src/apis/ConnectorsApi.ts +++ b/src/ts/src/apis/ConnectorsApi.ts @@ -16,8 +16,13 @@ import * as runtime from '../runtime'; import type { AIPlatform, + AddUserFromSourceConnectorResponse, + AddUserToSourceConnectorRequest, + CreateAIPlatformConnector, CreateAIPlatformConnectorResponse, + CreateDestinationConnector, CreateDestinationConnectorResponse, + CreateSourceConnector, CreateSourceConnectorResponse, DeleteAIPlatformConnectorResponse, DeleteDestinationConnectorResponse, @@ -27,18 +32,35 @@ import type { GetDestinationConnectors200Response, GetPipelines400Response, GetSourceConnectors200Response, + RemoveUserFromSourceConnectorRequest, + RemoveUserFromSourceConnectorResponse, SourceConnector, UpdateAIPlatformConnectorRequest, - UpdateDestinationConnector200Response, + UpdateAIPlatformConnectorResponse, + UpdateDestinationConnectorRequest, + UpdateDestinationConnectorResponse, UpdateSourceConnectorRequest, + UpdateSourceConnectorResponse, + UpdateUserInSourceConnectorRequest, + UpdateUserInSourceConnectorResponse, } from '../models/index'; import { AIPlatformFromJSON, AIPlatformToJSON, + AddUserFromSourceConnectorResponseFromJSON, + AddUserFromSourceConnectorResponseToJSON, + AddUserToSourceConnectorRequestFromJSON, + AddUserToSourceConnectorRequestToJSON, + CreateAIPlatformConnectorFromJSON, + CreateAIPlatformConnectorToJSON, CreateAIPlatformConnectorResponseFromJSON, CreateAIPlatformConnectorResponseToJSON, + CreateDestinationConnectorFromJSON, + CreateDestinationConnectorToJSON, CreateDestinationConnectorResponseFromJSON, CreateDestinationConnectorResponseToJSON, + CreateSourceConnectorFromJSON, + CreateSourceConnectorToJSON, CreateSourceConnectorResponseFromJSON, CreateSourceConnectorResponseToJSON, DeleteAIPlatformConnectorResponseFromJSON, @@ -57,29 +79,49 @@ import { GetPipelines400ResponseToJSON, GetSourceConnectors200ResponseFromJSON, GetSourceConnectors200ResponseToJSON, + RemoveUserFromSourceConnectorRequestFromJSON, + RemoveUserFromSourceConnectorRequestToJSON, + RemoveUserFromSourceConnectorResponseFromJSON, + RemoveUserFromSourceConnectorResponseToJSON, SourceConnectorFromJSON, SourceConnectorToJSON, UpdateAIPlatformConnectorRequestFromJSON, UpdateAIPlatformConnectorRequestToJSON, - UpdateDestinationConnector200ResponseFromJSON, - UpdateDestinationConnector200ResponseToJSON, + UpdateAIPlatformConnectorResponseFromJSON, + UpdateAIPlatformConnectorResponseToJSON, + UpdateDestinationConnectorRequestFromJSON, + UpdateDestinationConnectorRequestToJSON, + UpdateDestinationConnectorResponseFromJSON, + UpdateDestinationConnectorResponseToJSON, UpdateSourceConnectorRequestFromJSON, UpdateSourceConnectorRequestToJSON, + UpdateSourceConnectorResponseFromJSON, + UpdateSourceConnectorResponseToJSON, + UpdateUserInSourceConnectorRequestFromJSON, + UpdateUserInSourceConnectorRequestToJSON, + UpdateUserInSourceConnectorResponseFromJSON, + UpdateUserInSourceConnectorResponseToJSON, } from '../models/index'; +export interface AddUserToSourceConnectorOperationRequest { + organization: string; + sourceConnectorId: string; + addUserToSourceConnectorRequest: AddUserToSourceConnectorRequest; +} + export interface CreateAIPlatformConnectorRequest { organization: string; - requestBody?: Array; + createAIPlatformConnector: Array; } export interface CreateDestinationConnectorRequest { organization: string; - requestBody?: Array; + createDestinationConnector: Array; } export interface CreateSourceConnectorRequest { organization: string; - requestBody?: Array; + createSourceConnector: Array; } export interface DeleteAIPlatformRequest { @@ -97,6 +139,12 @@ export interface DeleteSourceConnectorRequest { sourceConnectorId: string; } +export interface DeleteUserFromSourceConnectorRequest { + organization: string; + sourceConnectorId: string; + removeUserFromSourceConnectorRequest: RemoveUserFromSourceConnectorRequest; +} + export interface GetAIPlatformConnectorRequest { organization: string; aiplatformId: string; @@ -127,19 +175,25 @@ export interface GetSourceConnectorsRequest { export interface UpdateAIPlatformConnectorOperationRequest { organization: string; aiplatformId: string; - updateAIPlatformConnectorRequest?: UpdateAIPlatformConnectorRequest; + updateAIPlatformConnectorRequest: UpdateAIPlatformConnectorRequest; } -export interface UpdateDestinationConnectorRequest { +export interface UpdateDestinationConnectorOperationRequest { organization: string; destinationConnectorId: string; - updateSourceConnectorRequest?: UpdateSourceConnectorRequest; + updateDestinationConnectorRequest: UpdateDestinationConnectorRequest; } export interface UpdateSourceConnectorOperationRequest { organization: string; sourceConnectorId: string; - updateSourceConnectorRequest?: UpdateSourceConnectorRequest; + updateSourceConnectorRequest: UpdateSourceConnectorRequest; +} + +export interface UpdateUserInSourceConnectorOperationRequest { + organization: string; + sourceConnectorId: string; + updateUserInSourceConnectorRequest: UpdateUserInSourceConnectorRequest; } /** @@ -148,7 +202,65 @@ export interface UpdateSourceConnectorOperationRequest { export class ConnectorsApi extends runtime.BaseAPI { /** - * Create a new AI Platform connector + * Add a user to a source connector + */ + async addUserToSourceConnectorRaw(requestParameters: AddUserToSourceConnectorOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['organization'] == null) { + throw new runtime.RequiredError( + 'organization', + 'Required parameter "organization" was null or undefined when calling addUserToSourceConnector().' + ); + } + + if (requestParameters['sourceConnectorId'] == null) { + throw new runtime.RequiredError( + 'sourceConnectorId', + 'Required parameter "sourceConnectorId" was null or undefined when calling addUserToSourceConnector().' + ); + } + + if (requestParameters['addUserToSourceConnectorRequest'] == null) { + throw new runtime.RequiredError( + 'addUserToSourceConnectorRequest', + 'Required parameter "addUserToSourceConnectorRequest" was null or undefined when calling addUserToSourceConnector().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("bearerAuth", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/org/{organization}/connectors/sources/{sourceConnectorId}/users`.replace(`{${"organization"}}`, encodeURIComponent(String(requestParameters['organization']))).replace(`{${"sourceConnectorId"}}`, encodeURIComponent(String(requestParameters['sourceConnectorId']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: AddUserToSourceConnectorRequestToJSON(requestParameters['addUserToSourceConnectorRequest']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => AddUserFromSourceConnectorResponseFromJSON(jsonValue)); + } + + /** + * Add a user to a source connector + */ + async addUserToSourceConnector(requestParameters: AddUserToSourceConnectorOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.addUserToSourceConnectorRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Create a new AI Platform connector. Config values: Amazon Bedrock (BEDROCK): Name (name): text, Access Key (access-key): text, Secret Key (key): text) | Google Vertex AI (VERTEX): Name (name): text, Region (region): text) | OpenAI (OPENAI): Name (name): text, API Key (key): text) | Voyage AI (VOYAGE): Name (name): text, API Key (key): text) | Built-in (VECTORIZE): ) */ async createAIPlatformConnectorRaw(requestParameters: CreateAIPlatformConnectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { if (requestParameters['organization'] == null) { @@ -158,6 +270,13 @@ export class ConnectorsApi extends runtime.BaseAPI { ); } + if (requestParameters['createAIPlatformConnector'] == null) { + throw new runtime.RequiredError( + 'createAIPlatformConnector', + 'Required parameter "createAIPlatformConnector" was null or undefined when calling createAIPlatformConnector().' + ); + } + const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -177,14 +296,14 @@ export class ConnectorsApi extends runtime.BaseAPI { method: 'POST', headers: headerParameters, query: queryParameters, - body: requestParameters['requestBody'], + body: requestParameters['createAIPlatformConnector']!.map(CreateAIPlatformConnectorToJSON), }, initOverrides); return new runtime.JSONApiResponse(response, (jsonValue) => CreateAIPlatformConnectorResponseFromJSON(jsonValue)); } /** - * Create a new AI Platform connector + * Create a new AI Platform connector. Config values: Amazon Bedrock (BEDROCK): Name (name): text, Access Key (access-key): text, Secret Key (key): text) | Google Vertex AI (VERTEX): Name (name): text, Region (region): text) | OpenAI (OPENAI): Name (name): text, API Key (key): text) | Voyage AI (VOYAGE): Name (name): text, API Key (key): text) | Built-in (VECTORIZE): ) */ async createAIPlatformConnector(requestParameters: CreateAIPlatformConnectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { const response = await this.createAIPlatformConnectorRaw(requestParameters, initOverrides); @@ -192,7 +311,7 @@ export class ConnectorsApi extends runtime.BaseAPI { } /** - * Create a new destination connector + * Create a new destination connector. Config values: Couchbase Capella (CAPELLA): Name (name): text, Cluster Access Name (username): text, Cluster Access Password (password): text, Connection String (connection-string): text) | DataStax Astra (DATASTAX): Name (name): text, API Endpoint (endpoint_secret): text, Application Token (token): text) | Elasticsearch (ELASTIC): Name (name): text, Host (host): text, Port (port): text, API Key (api-key): text) | Pinecone (PINECONE): Name (name): text, API Key (api-key): text) | SingleStore (SINGLESTORE): Name (name): text, Host (host): text, Port (port): number, Database (database): text, Username (username): text, Password (password): text) | Milvus (MILVUS): Name (name): text, Public Endpoint (url): text, Token (token): text, Username (username): text, Password (password): text) | PostgreSQL (POSTGRESQL): Name (name): text, Host (host): text, Port (port): number, Database (database): text, Username (username): text, Password (password): text) | Qdrant (QDRANT): Name (name): text, Host (host): text, API Key (api-key): text) | Weaviate (WEAVIATE): Name (name): text, Endpoint (host): text, API Key (api-key): text) | Azure AI Search (AZUREAISEARCH): Name (name): text, Azure AI Search Service Name (service-name): text, API Key (api-key): text) | Built-in (VECTORIZE): ) | Chroma (CHROMA): Name (name): text, API Key (apiKey): text) | MongoDB (MONGODB): Name (name): text, API Key (apiKey): text) */ async createDestinationConnectorRaw(requestParameters: CreateDestinationConnectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { if (requestParameters['organization'] == null) { @@ -202,6 +321,13 @@ export class ConnectorsApi extends runtime.BaseAPI { ); } + if (requestParameters['createDestinationConnector'] == null) { + throw new runtime.RequiredError( + 'createDestinationConnector', + 'Required parameter "createDestinationConnector" was null or undefined when calling createDestinationConnector().' + ); + } + const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -221,14 +347,14 @@ export class ConnectorsApi extends runtime.BaseAPI { method: 'POST', headers: headerParameters, query: queryParameters, - body: requestParameters['requestBody'], + body: requestParameters['createDestinationConnector']!.map(CreateDestinationConnectorToJSON), }, initOverrides); return new runtime.JSONApiResponse(response, (jsonValue) => CreateDestinationConnectorResponseFromJSON(jsonValue)); } /** - * Create a new destination connector + * Create a new destination connector. Config values: Couchbase Capella (CAPELLA): Name (name): text, Cluster Access Name (username): text, Cluster Access Password (password): text, Connection String (connection-string): text) | DataStax Astra (DATASTAX): Name (name): text, API Endpoint (endpoint_secret): text, Application Token (token): text) | Elasticsearch (ELASTIC): Name (name): text, Host (host): text, Port (port): text, API Key (api-key): text) | Pinecone (PINECONE): Name (name): text, API Key (api-key): text) | SingleStore (SINGLESTORE): Name (name): text, Host (host): text, Port (port): number, Database (database): text, Username (username): text, Password (password): text) | Milvus (MILVUS): Name (name): text, Public Endpoint (url): text, Token (token): text, Username (username): text, Password (password): text) | PostgreSQL (POSTGRESQL): Name (name): text, Host (host): text, Port (port): number, Database (database): text, Username (username): text, Password (password): text) | Qdrant (QDRANT): Name (name): text, Host (host): text, API Key (api-key): text) | Weaviate (WEAVIATE): Name (name): text, Endpoint (host): text, API Key (api-key): text) | Azure AI Search (AZUREAISEARCH): Name (name): text, Azure AI Search Service Name (service-name): text, API Key (api-key): text) | Built-in (VECTORIZE): ) | Chroma (CHROMA): Name (name): text, API Key (apiKey): text) | MongoDB (MONGODB): Name (name): text, API Key (apiKey): text) */ async createDestinationConnector(requestParameters: CreateDestinationConnectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { const response = await this.createDestinationConnectorRaw(requestParameters, initOverrides); @@ -236,7 +362,7 @@ export class ConnectorsApi extends runtime.BaseAPI { } /** - * Create a new source connector + * Create a new source connector. Config values: Amazon S3 (AWS_S3): Name (name): text, Access Key (access-key): text, Secret Key (secret-key): text, Bucket Name (bucket-name): text, Endpoint (endpoint): url, Region (region): text, Allow as archive destination (archiver): boolean) | Azure Blob Storage (AZURE_BLOB): Name (name): text, Storage Account Name (storage-account-name): text, Storage Account Key (storage-account-key): text, Container (container): text, Endpoint (endpoint): url) | Confluence (CONFLUENCE): Name (name): text, Username (username): text, API Token (api-token): text, Domain (domain): text) | Discord (DISCORD): Name (name): text, Server ID (guild-id): text, Bot token (bot-token): text, Channel ID (channel-ids): array oftext) | Dropbox (DROPBOX): Name (name): text) | Google Drive OAuth (GOOGLE_DRIVE_OAUTH): Name (name): text) | Google Drive OAuth (Multi-user) (GOOGLE_DRIVE_OAUTH_MULTI): Name (name): text) | Google Drive OAuth (Multi-user with white label) (GOOGLE_DRIVE_OAUTH_MULTI_CUSTOM): Name (name): text, OAuth2 Client Id (oauth2-client-id): text, OAuth2 Client Secret (oauth2-client-secret): text) | Firecrawl (FIRECRAWL): Name (name): text, API Key (api-key): text) | GCP Cloud Storage (GCS): Name (name): text, Bucket (bucket-name): text) | Google Drive (GOOGLE_DRIVE): Name (name): text) | Intercom (INTERCOM): Name (name): text, Access Token (intercomAccessToken): text) | OneDrive (ONE_DRIVE): Name (name): text, Client Id (ms-client-id): text, Tenant Id (ms-tenant-id): text, Client Secret (ms-client-secret): text, Users (users): array oftext) | SharePoint (SHAREPOINT): Name (name): text, Client Id (ms-client-id): text, Tenant Id (ms-tenant-id): text, Client Secret (ms-client-secret): text) | Web Crawler (WEB_CRAWLER): Name (name): text, Seed URL(s) (seed-urls): array ofurl) | File Upload (FILE_UPLOAD): Name (name): text) */ async createSourceConnectorRaw(requestParameters: CreateSourceConnectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { if (requestParameters['organization'] == null) { @@ -246,6 +372,13 @@ export class ConnectorsApi extends runtime.BaseAPI { ); } + if (requestParameters['createSourceConnector'] == null) { + throw new runtime.RequiredError( + 'createSourceConnector', + 'Required parameter "createSourceConnector" was null or undefined when calling createSourceConnector().' + ); + } + const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -265,14 +398,14 @@ export class ConnectorsApi extends runtime.BaseAPI { method: 'POST', headers: headerParameters, query: queryParameters, - body: requestParameters['requestBody'], + body: requestParameters['createSourceConnector']!.map(CreateSourceConnectorToJSON), }, initOverrides); return new runtime.JSONApiResponse(response, (jsonValue) => CreateSourceConnectorResponseFromJSON(jsonValue)); } /** - * Create a new source connector + * Create a new source connector. Config values: Amazon S3 (AWS_S3): Name (name): text, Access Key (access-key): text, Secret Key (secret-key): text, Bucket Name (bucket-name): text, Endpoint (endpoint): url, Region (region): text, Allow as archive destination (archiver): boolean) | Azure Blob Storage (AZURE_BLOB): Name (name): text, Storage Account Name (storage-account-name): text, Storage Account Key (storage-account-key): text, Container (container): text, Endpoint (endpoint): url) | Confluence (CONFLUENCE): Name (name): text, Username (username): text, API Token (api-token): text, Domain (domain): text) | Discord (DISCORD): Name (name): text, Server ID (guild-id): text, Bot token (bot-token): text, Channel ID (channel-ids): array oftext) | Dropbox (DROPBOX): Name (name): text) | Google Drive OAuth (GOOGLE_DRIVE_OAUTH): Name (name): text) | Google Drive OAuth (Multi-user) (GOOGLE_DRIVE_OAUTH_MULTI): Name (name): text) | Google Drive OAuth (Multi-user with white label) (GOOGLE_DRIVE_OAUTH_MULTI_CUSTOM): Name (name): text, OAuth2 Client Id (oauth2-client-id): text, OAuth2 Client Secret (oauth2-client-secret): text) | Firecrawl (FIRECRAWL): Name (name): text, API Key (api-key): text) | GCP Cloud Storage (GCS): Name (name): text, Bucket (bucket-name): text) | Google Drive (GOOGLE_DRIVE): Name (name): text) | Intercom (INTERCOM): Name (name): text, Access Token (intercomAccessToken): text) | OneDrive (ONE_DRIVE): Name (name): text, Client Id (ms-client-id): text, Tenant Id (ms-tenant-id): text, Client Secret (ms-client-secret): text, Users (users): array oftext) | SharePoint (SHAREPOINT): Name (name): text, Client Id (ms-client-id): text, Tenant Id (ms-tenant-id): text, Client Secret (ms-client-secret): text) | Web Crawler (WEB_CRAWLER): Name (name): text, Seed URL(s) (seed-urls): array ofurl) | File Upload (FILE_UPLOAD): Name (name): text) */ async createSourceConnector(requestParameters: CreateSourceConnectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { const response = await this.createSourceConnectorRaw(requestParameters, initOverrides); @@ -423,6 +556,64 @@ export class ConnectorsApi extends runtime.BaseAPI { return await response.value(); } + /** + * Delete a source connector user + */ + async deleteUserFromSourceConnectorRaw(requestParameters: DeleteUserFromSourceConnectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['organization'] == null) { + throw new runtime.RequiredError( + 'organization', + 'Required parameter "organization" was null or undefined when calling deleteUserFromSourceConnector().' + ); + } + + if (requestParameters['sourceConnectorId'] == null) { + throw new runtime.RequiredError( + 'sourceConnectorId', + 'Required parameter "sourceConnectorId" was null or undefined when calling deleteUserFromSourceConnector().' + ); + } + + if (requestParameters['removeUserFromSourceConnectorRequest'] == null) { + throw new runtime.RequiredError( + 'removeUserFromSourceConnectorRequest', + 'Required parameter "removeUserFromSourceConnectorRequest" was null or undefined when calling deleteUserFromSourceConnector().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("bearerAuth", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/org/{organization}/connectors/sources/{sourceConnectorId}/users`.replace(`{${"organization"}}`, encodeURIComponent(String(requestParameters['organization']))).replace(`{${"sourceConnectorId"}}`, encodeURIComponent(String(requestParameters['sourceConnectorId']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + body: RemoveUserFromSourceConnectorRequestToJSON(requestParameters['removeUserFromSourceConnectorRequest']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => RemoveUserFromSourceConnectorResponseFromJSON(jsonValue)); + } + + /** + * Delete a source connector user + */ + async deleteUserFromSourceConnector(requestParameters: DeleteUserFromSourceConnectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.deleteUserFromSourceConnectorRaw(requestParameters, initOverrides); + return await response.value(); + } + /** * Get an AI platform connector */ @@ -693,7 +884,7 @@ export class ConnectorsApi extends runtime.BaseAPI { /** * Update an AI Platform connector */ - async updateAIPlatformConnectorRaw(requestParameters: UpdateAIPlatformConnectorOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + async updateAIPlatformConnectorRaw(requestParameters: UpdateAIPlatformConnectorOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { if (requestParameters['organization'] == null) { throw new runtime.RequiredError( 'organization', @@ -708,6 +899,13 @@ export class ConnectorsApi extends runtime.BaseAPI { ); } + if (requestParameters['updateAIPlatformConnectorRequest'] == null) { + throw new runtime.RequiredError( + 'updateAIPlatformConnectorRequest', + 'Required parameter "updateAIPlatformConnectorRequest" was null or undefined when calling updateAIPlatformConnector().' + ); + } + const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -730,13 +928,13 @@ export class ConnectorsApi extends runtime.BaseAPI { body: UpdateAIPlatformConnectorRequestToJSON(requestParameters['updateAIPlatformConnectorRequest']), }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => UpdateAIPlatformConnectorRequestFromJSON(jsonValue)); + return new runtime.JSONApiResponse(response, (jsonValue) => UpdateAIPlatformConnectorResponseFromJSON(jsonValue)); } /** * Update an AI Platform connector */ - async updateAIPlatformConnector(requestParameters: UpdateAIPlatformConnectorOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + async updateAIPlatformConnector(requestParameters: UpdateAIPlatformConnectorOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { const response = await this.updateAIPlatformConnectorRaw(requestParameters, initOverrides); return await response.value(); } @@ -744,7 +942,7 @@ export class ConnectorsApi extends runtime.BaseAPI { /** * Update a destination connector */ - async updateDestinationConnectorRaw(requestParameters: UpdateDestinationConnectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + async updateDestinationConnectorRaw(requestParameters: UpdateDestinationConnectorOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { if (requestParameters['organization'] == null) { throw new runtime.RequiredError( 'organization', @@ -759,6 +957,13 @@ export class ConnectorsApi extends runtime.BaseAPI { ); } + if (requestParameters['updateDestinationConnectorRequest'] == null) { + throw new runtime.RequiredError( + 'updateDestinationConnectorRequest', + 'Required parameter "updateDestinationConnectorRequest" was null or undefined when calling updateDestinationConnector().' + ); + } + const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -778,16 +983,16 @@ export class ConnectorsApi extends runtime.BaseAPI { method: 'PATCH', headers: headerParameters, query: queryParameters, - body: UpdateSourceConnectorRequestToJSON(requestParameters['updateSourceConnectorRequest']), + body: UpdateDestinationConnectorRequestToJSON(requestParameters['updateDestinationConnectorRequest']), }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => UpdateDestinationConnector200ResponseFromJSON(jsonValue)); + return new runtime.JSONApiResponse(response, (jsonValue) => UpdateDestinationConnectorResponseFromJSON(jsonValue)); } /** * Update a destination connector */ - async updateDestinationConnector(requestParameters: UpdateDestinationConnectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + async updateDestinationConnector(requestParameters: UpdateDestinationConnectorOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { const response = await this.updateDestinationConnectorRaw(requestParameters, initOverrides); return await response.value(); } @@ -795,7 +1000,7 @@ export class ConnectorsApi extends runtime.BaseAPI { /** * Update a source connector */ - async updateSourceConnectorRaw(requestParameters: UpdateSourceConnectorOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + async updateSourceConnectorRaw(requestParameters: UpdateSourceConnectorOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { if (requestParameters['organization'] == null) { throw new runtime.RequiredError( 'organization', @@ -810,6 +1015,13 @@ export class ConnectorsApi extends runtime.BaseAPI { ); } + if (requestParameters['updateSourceConnectorRequest'] == null) { + throw new runtime.RequiredError( + 'updateSourceConnectorRequest', + 'Required parameter "updateSourceConnectorRequest" was null or undefined when calling updateSourceConnector().' + ); + } + const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -832,15 +1044,73 @@ export class ConnectorsApi extends runtime.BaseAPI { body: UpdateSourceConnectorRequestToJSON(requestParameters['updateSourceConnectorRequest']), }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => UpdateSourceConnectorRequestFromJSON(jsonValue)); + return new runtime.JSONApiResponse(response, (jsonValue) => UpdateSourceConnectorResponseFromJSON(jsonValue)); } /** * Update a source connector */ - async updateSourceConnector(requestParameters: UpdateSourceConnectorOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + async updateSourceConnector(requestParameters: UpdateSourceConnectorOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { const response = await this.updateSourceConnectorRaw(requestParameters, initOverrides); return await response.value(); } + /** + * Update a source connector user + */ + async updateUserInSourceConnectorRaw(requestParameters: UpdateUserInSourceConnectorOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['organization'] == null) { + throw new runtime.RequiredError( + 'organization', + 'Required parameter "organization" was null or undefined when calling updateUserInSourceConnector().' + ); + } + + if (requestParameters['sourceConnectorId'] == null) { + throw new runtime.RequiredError( + 'sourceConnectorId', + 'Required parameter "sourceConnectorId" was null or undefined when calling updateUserInSourceConnector().' + ); + } + + if (requestParameters['updateUserInSourceConnectorRequest'] == null) { + throw new runtime.RequiredError( + 'updateUserInSourceConnectorRequest', + 'Required parameter "updateUserInSourceConnectorRequest" was null or undefined when calling updateUserInSourceConnector().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("bearerAuth", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/org/{organization}/connectors/sources/{sourceConnectorId}/users`.replace(`{${"organization"}}`, encodeURIComponent(String(requestParameters['organization']))).replace(`{${"sourceConnectorId"}}`, encodeURIComponent(String(requestParameters['sourceConnectorId']))), + method: 'PATCH', + headers: headerParameters, + query: queryParameters, + body: UpdateUserInSourceConnectorRequestToJSON(requestParameters['updateUserInSourceConnectorRequest']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => UpdateUserInSourceConnectorResponseFromJSON(jsonValue)); + } + + /** + * Update a source connector user + */ + async updateUserInSourceConnector(requestParameters: UpdateUserInSourceConnectorOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.updateUserInSourceConnectorRaw(requestParameters, initOverrides); + return await response.value(); + } + } diff --git a/src/ts/src/apis/ExtractionApi.ts b/src/ts/src/apis/ExtractionApi.ts index 5281e9e..bb45ab4 100644 --- a/src/ts/src/apis/ExtractionApi.ts +++ b/src/ts/src/apis/ExtractionApi.ts @@ -38,7 +38,7 @@ export interface GetExtractionResultRequest { export interface StartExtractionOperationRequest { organization: string; - startExtractionRequest?: StartExtractionRequest; + startExtractionRequest: StartExtractionRequest; } /** @@ -105,6 +105,13 @@ export class ExtractionApi extends runtime.BaseAPI { ); } + if (requestParameters['startExtractionRequest'] == null) { + throw new runtime.RequiredError( + 'startExtractionRequest', + 'Required parameter "startExtractionRequest" was null or undefined when calling startExtraction().' + ); + } + const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; diff --git a/src/ts/src/apis/FilesApi.ts b/src/ts/src/apis/FilesApi.ts index 829ba0c..5000be5 100644 --- a/src/ts/src/apis/FilesApi.ts +++ b/src/ts/src/apis/FilesApi.ts @@ -30,7 +30,7 @@ import { export interface StartFileUploadOperationRequest { organization: string; - startFileUploadRequest?: StartFileUploadRequest; + startFileUploadRequest: StartFileUploadRequest; } /** @@ -49,6 +49,13 @@ export class FilesApi extends runtime.BaseAPI { ); } + if (requestParameters['startFileUploadRequest'] == null) { + throw new runtime.RequiredError( + 'startFileUploadRequest', + 'Required parameter "startFileUploadRequest" was null or undefined when calling startFileUpload().' + ); + } + const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; diff --git a/src/ts/src/apis/PipelinesApi.ts b/src/ts/src/apis/PipelinesApi.ts index 0007809..8ad5c07 100644 --- a/src/ts/src/apis/PipelinesApi.ts +++ b/src/ts/src/apis/PipelinesApi.ts @@ -66,7 +66,7 @@ import { export interface CreatePipelineRequest { organization: string; - pipelineConfigurationSchema?: PipelineConfigurationSchema; + pipelineConfigurationSchema: PipelineConfigurationSchema; } export interface DeletePipelineRequest { @@ -103,13 +103,13 @@ export interface GetPipelinesRequest { export interface RetrieveDocumentsOperationRequest { organization: string; pipeline: string; - retrieveDocumentsRequest?: RetrieveDocumentsRequest; + retrieveDocumentsRequest: RetrieveDocumentsRequest; } export interface StartDeepResearchOperationRequest { organization: string; pipeline: string; - startDeepResearchRequest?: StartDeepResearchRequest; + startDeepResearchRequest: StartDeepResearchRequest; } export interface StartPipelineRequest { @@ -128,7 +128,7 @@ export interface StopPipelineRequest { export class PipelinesApi extends runtime.BaseAPI { /** - * Create a new pipeline + * Create a new source pipeline. Config fields for sources: Amazon S3 (AWS_S3): Check for updates every (seconds) (idle-time): number, Path Prefix (path-prefix): text, Path Metadata Regex (path-metadata-regex): text, Path Regex Group Names (path-regex-group-names): array oftext) | Azure Blob Storage (AZURE_BLOB): Polling Interval (seconds) (idle-time): number, Path Prefix (path-prefix): text, Path Metadata Regex (path-metadata-regex): text, Path Regex Group Names (path-regex-group-names): array oftext) | Confluence (CONFLUENCE): Spaces (spaces): array oftext, Root Parents (root-parents): array oftext) | Discord (DISCORD): Emoji Filter (emoji): array oftext, Author Filter (author): array oftext, Ignore Author Filter (ignore-author): array oftext, Limit (limit): number) | Dropbox (DROPBOX): Read starting from these folders (optional) (path-prefix): array oftext) | Google Drive OAuth (GOOGLE_DRIVE_OAUTH): Polling Interval (seconds) (idle-time): number) | Google Drive OAuth (Multi-user) (GOOGLE_DRIVE_OAUTH_MULTI): Polling Interval (seconds) (idle-time): number) | Google Drive OAuth (Multi-user with white label) (GOOGLE_DRIVE_OAUTH_MULTI_CUSTOM): Polling Interval (seconds) (idle-time): number) | Firecrawl (FIRECRAWL): ) | GCP Cloud Storage (GCS): Check for updates every (seconds) (idle-time): number, Path Prefix (path-prefix): text, Path Metadata Regex (path-metadata-regex): text, Path Regex Group Names (path-regex-group-names): array oftext) | Google Drive (GOOGLE_DRIVE): Restrict ingest to these folder URLs (optional) (root-parents): array oftext, Polling Interval (seconds) (idle-time): number) | Intercom (INTERCOM): Reindex Interval (seconds) (reindexIntervalSeconds): number, Limit (limit): number, Tags (tags): array oftext) | OneDrive (ONE_DRIVE): Read starting from this folder (optional) (path-prefix): text) | SharePoint (SHAREPOINT): Site Name(s) (sites): array oftext) | Web Crawler (WEB_CRAWLER): Additional Allowed URLs or prefix(es) (allowed-domains-opt): array ofurl, Forbidden Paths (forbidden-paths): array oftext, Throttle (ms) (min-time-between-requests): number, Max Error Count (max-error-count): number, Max URLs (max-urls): number, Max Depth (max-depth): number, Reindex Interval (seconds) (reindex-interval-seconds): number) | File Upload (FILE_UPLOAD): ). Config fields for destinations: Couchbase Capella (CAPELLA): Bucket Name (bucket): text, Scope Name (scope): text, Collection Name (collection): text, Search Index Name (index): text) | DataStax Astra (DATASTAX): Collection Name (collection): text) | Elasticsearch (ELASTIC): Index Name (index): text) | Pinecone (PINECONE): Index Name (index): text, Namespace (namespace): text) | SingleStore (SINGLESTORE): Table Name (table): text) | Milvus (MILVUS): Collection Name (collection): text) | PostgreSQL (POSTGRESQL): Table Name (table): text) | Qdrant (QDRANT): Collection Name (collection): text) | Weaviate (WEAVIATE): Collection Name (collection): text) | Azure AI Search (AZUREAISEARCH): Index Name (index): text) | Built-in (VECTORIZE): ) | Chroma (CHROMA): Index Name (index): text) | MongoDB (MONGODB): Index Name (index): text). Config fields for AI platforms: */ async createPipelineRaw(requestParameters: CreatePipelineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { if (requestParameters['organization'] == null) { @@ -138,6 +138,13 @@ export class PipelinesApi extends runtime.BaseAPI { ); } + if (requestParameters['pipelineConfigurationSchema'] == null) { + throw new runtime.RequiredError( + 'pipelineConfigurationSchema', + 'Required parameter "pipelineConfigurationSchema" was null or undefined when calling createPipeline().' + ); + } + const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -164,7 +171,7 @@ export class PipelinesApi extends runtime.BaseAPI { } /** - * Create a new pipeline + * Create a new source pipeline. Config fields for sources: Amazon S3 (AWS_S3): Check for updates every (seconds) (idle-time): number, Path Prefix (path-prefix): text, Path Metadata Regex (path-metadata-regex): text, Path Regex Group Names (path-regex-group-names): array oftext) | Azure Blob Storage (AZURE_BLOB): Polling Interval (seconds) (idle-time): number, Path Prefix (path-prefix): text, Path Metadata Regex (path-metadata-regex): text, Path Regex Group Names (path-regex-group-names): array oftext) | Confluence (CONFLUENCE): Spaces (spaces): array oftext, Root Parents (root-parents): array oftext) | Discord (DISCORD): Emoji Filter (emoji): array oftext, Author Filter (author): array oftext, Ignore Author Filter (ignore-author): array oftext, Limit (limit): number) | Dropbox (DROPBOX): Read starting from these folders (optional) (path-prefix): array oftext) | Google Drive OAuth (GOOGLE_DRIVE_OAUTH): Polling Interval (seconds) (idle-time): number) | Google Drive OAuth (Multi-user) (GOOGLE_DRIVE_OAUTH_MULTI): Polling Interval (seconds) (idle-time): number) | Google Drive OAuth (Multi-user with white label) (GOOGLE_DRIVE_OAUTH_MULTI_CUSTOM): Polling Interval (seconds) (idle-time): number) | Firecrawl (FIRECRAWL): ) | GCP Cloud Storage (GCS): Check for updates every (seconds) (idle-time): number, Path Prefix (path-prefix): text, Path Metadata Regex (path-metadata-regex): text, Path Regex Group Names (path-regex-group-names): array oftext) | Google Drive (GOOGLE_DRIVE): Restrict ingest to these folder URLs (optional) (root-parents): array oftext, Polling Interval (seconds) (idle-time): number) | Intercom (INTERCOM): Reindex Interval (seconds) (reindexIntervalSeconds): number, Limit (limit): number, Tags (tags): array oftext) | OneDrive (ONE_DRIVE): Read starting from this folder (optional) (path-prefix): text) | SharePoint (SHAREPOINT): Site Name(s) (sites): array oftext) | Web Crawler (WEB_CRAWLER): Additional Allowed URLs or prefix(es) (allowed-domains-opt): array ofurl, Forbidden Paths (forbidden-paths): array oftext, Throttle (ms) (min-time-between-requests): number, Max Error Count (max-error-count): number, Max URLs (max-urls): number, Max Depth (max-depth): number, Reindex Interval (seconds) (reindex-interval-seconds): number) | File Upload (FILE_UPLOAD): ). Config fields for destinations: Couchbase Capella (CAPELLA): Bucket Name (bucket): text, Scope Name (scope): text, Collection Name (collection): text, Search Index Name (index): text) | DataStax Astra (DATASTAX): Collection Name (collection): text) | Elasticsearch (ELASTIC): Index Name (index): text) | Pinecone (PINECONE): Index Name (index): text, Namespace (namespace): text) | SingleStore (SINGLESTORE): Table Name (table): text) | Milvus (MILVUS): Collection Name (collection): text) | PostgreSQL (POSTGRESQL): Table Name (table): text) | Qdrant (QDRANT): Collection Name (collection): text) | Weaviate (WEAVIATE): Collection Name (collection): text) | Azure AI Search (AZUREAISEARCH): Index Name (index): text) | Built-in (VECTORIZE): ) | Chroma (CHROMA): Index Name (index): text) | MongoDB (MONGODB): Index Name (index): text). Config fields for AI platforms: */ async createPipeline(requestParameters: CreatePipelineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { const response = await this.createPipelineRaw(requestParameters, initOverrides); @@ -481,6 +488,13 @@ export class PipelinesApi extends runtime.BaseAPI { ); } + if (requestParameters['retrieveDocumentsRequest'] == null) { + throw new runtime.RequiredError( + 'retrieveDocumentsRequest', + 'Required parameter "retrieveDocumentsRequest" was null or undefined when calling retrieveDocuments().' + ); + } + const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -532,6 +546,13 @@ export class PipelinesApi extends runtime.BaseAPI { ); } + if (requestParameters['startDeepResearchRequest'] == null) { + throw new runtime.RequiredError( + 'startDeepResearchRequest', + 'Required parameter "startDeepResearchRequest" was null or undefined when calling startDeepResearch().' + ); + } + const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; diff --git a/src/ts/src/apis/UploadsApi.ts b/src/ts/src/apis/UploadsApi.ts index 38e9ab3..4718e3e 100644 --- a/src/ts/src/apis/UploadsApi.ts +++ b/src/ts/src/apis/UploadsApi.ts @@ -47,7 +47,7 @@ export interface GetUploadFilesFromConnectorRequest { export interface StartFileUploadToConnectorOperationRequest { organization: string; connectorId: string; - startFileUploadToConnectorRequest?: StartFileUploadToConnectorRequest; + startFileUploadToConnectorRequest: StartFileUploadToConnectorRequest; } /** @@ -169,6 +169,13 @@ export class UploadsApi extends runtime.BaseAPI { ); } + if (requestParameters['startFileUploadToConnectorRequest'] == null) { + throw new runtime.RequiredError( + 'startFileUploadToConnectorRequest', + 'Required parameter "startFileUploadToConnectorRequest" was null or undefined when calling startFileUploadToConnector().' + ); + } + const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; diff --git a/src/ts/src/models/AIPlatformSchema.ts b/src/ts/src/models/AIPlatformSchema.ts index 4af98d0..ce15cf7 100644 --- a/src/ts/src/models/AIPlatformSchema.ts +++ b/src/ts/src/models/AIPlatformSchema.ts @@ -13,6 +13,21 @@ */ import { mapValues } from '../runtime'; +import type { AIPlatformType } from './AIPlatformType'; +import { + AIPlatformTypeFromJSON, + AIPlatformTypeFromJSONTyped, + AIPlatformTypeToJSON, + AIPlatformTypeToJSONTyped, +} from './AIPlatformType'; +import type { AIPlatformConfigSchema } from './AIPlatformConfigSchema'; +import { + AIPlatformConfigSchemaFromJSON, + AIPlatformConfigSchemaFromJSONTyped, + AIPlatformConfigSchemaToJSON, + AIPlatformConfigSchemaToJSONTyped, +} from './AIPlatformConfigSchema'; + /** * * @export @@ -27,18 +42,20 @@ export interface AIPlatformSchema { id: string; /** * - * @type {string} + * @type {AIPlatformType} * @memberof AIPlatformSchema */ - type: string; + type: AIPlatformType; /** * - * @type {object} + * @type {AIPlatformConfigSchema} * @memberof AIPlatformSchema */ - config: object; + config: AIPlatformConfigSchema; } + + /** * Check if a given object implements the AIPlatformSchema interface. */ @@ -60,8 +77,8 @@ export function AIPlatformSchemaFromJSONTyped(json: any, ignoreDiscriminator: bo return { 'id': json['id'], - 'type': json['type'], - 'config': json['config'], + 'type': AIPlatformTypeFromJSON(json['type']), + 'config': AIPlatformConfigSchemaFromJSON(json['config']), }; } @@ -77,8 +94,8 @@ export function AIPlatformSchemaToJSONTyped(value?: AIPlatformSchema | null, ign return { 'id': value['id'], - 'type': value['type'], - 'config': value['config'], + 'type': AIPlatformTypeToJSON(value['type']), + 'config': AIPlatformConfigSchemaToJSON(value['config']), }; } diff --git a/src/ts/src/models/CreateAIPlatformConnectorResponse.ts b/src/ts/src/models/CreateAIPlatformConnectorResponse.ts index 7820563..22db0f4 100644 --- a/src/ts/src/models/CreateAIPlatformConnectorResponse.ts +++ b/src/ts/src/models/CreateAIPlatformConnectorResponse.ts @@ -13,13 +13,13 @@ */ import { mapValues } from '../runtime'; -import type { CreateSourceConnectorResponseConnectorsInner } from './CreateSourceConnectorResponseConnectorsInner'; +import type { CreatedAIPlatformConnector } from './CreatedAIPlatformConnector'; import { - CreateSourceConnectorResponseConnectorsInnerFromJSON, - CreateSourceConnectorResponseConnectorsInnerFromJSONTyped, - CreateSourceConnectorResponseConnectorsInnerToJSON, - CreateSourceConnectorResponseConnectorsInnerToJSONTyped, -} from './CreateSourceConnectorResponseConnectorsInner'; + CreatedAIPlatformConnectorFromJSON, + CreatedAIPlatformConnectorFromJSONTyped, + CreatedAIPlatformConnectorToJSON, + CreatedAIPlatformConnectorToJSONTyped, +} from './CreatedAIPlatformConnector'; /** * @@ -35,10 +35,10 @@ export interface CreateAIPlatformConnectorResponse { message: string; /** * - * @type {Array} + * @type {Array} * @memberof CreateAIPlatformConnectorResponse */ - connectors: Array; + connectors: Array; } /** @@ -61,7 +61,7 @@ export function CreateAIPlatformConnectorResponseFromJSONTyped(json: any, ignore return { 'message': json['message'], - 'connectors': ((json['connectors'] as Array).map(CreateSourceConnectorResponseConnectorsInnerFromJSON)), + 'connectors': ((json['connectors'] as Array).map(CreatedAIPlatformConnectorFromJSON)), }; } @@ -77,7 +77,7 @@ export function CreateAIPlatformConnectorResponseToJSONTyped(value?: CreateAIPla return { 'message': value['message'], - 'connectors': ((value['connectors'] as Array).map(CreateSourceConnectorResponseConnectorsInnerToJSON)), + 'connectors': ((value['connectors'] as Array).map(CreatedAIPlatformConnectorToJSON)), }; } diff --git a/src/ts/src/models/CreateDestinationConnectorResponse.ts b/src/ts/src/models/CreateDestinationConnectorResponse.ts index bd123d3..6e734bc 100644 --- a/src/ts/src/models/CreateDestinationConnectorResponse.ts +++ b/src/ts/src/models/CreateDestinationConnectorResponse.ts @@ -13,13 +13,13 @@ */ import { mapValues } from '../runtime'; -import type { CreateSourceConnectorResponseConnectorsInner } from './CreateSourceConnectorResponseConnectorsInner'; +import type { CreatedDestinationConnector } from './CreatedDestinationConnector'; import { - CreateSourceConnectorResponseConnectorsInnerFromJSON, - CreateSourceConnectorResponseConnectorsInnerFromJSONTyped, - CreateSourceConnectorResponseConnectorsInnerToJSON, - CreateSourceConnectorResponseConnectorsInnerToJSONTyped, -} from './CreateSourceConnectorResponseConnectorsInner'; + CreatedDestinationConnectorFromJSON, + CreatedDestinationConnectorFromJSONTyped, + CreatedDestinationConnectorToJSON, + CreatedDestinationConnectorToJSONTyped, +} from './CreatedDestinationConnector'; /** * @@ -35,10 +35,10 @@ export interface CreateDestinationConnectorResponse { message: string; /** * - * @type {Array} + * @type {Array} * @memberof CreateDestinationConnectorResponse */ - connectors: Array; + connectors: Array; } /** @@ -61,7 +61,7 @@ export function CreateDestinationConnectorResponseFromJSONTyped(json: any, ignor return { 'message': json['message'], - 'connectors': ((json['connectors'] as Array).map(CreateSourceConnectorResponseConnectorsInnerFromJSON)), + 'connectors': ((json['connectors'] as Array).map(CreatedDestinationConnectorFromJSON)), }; } @@ -77,7 +77,7 @@ export function CreateDestinationConnectorResponseToJSONTyped(value?: CreateDest return { 'message': value['message'], - 'connectors': ((value['connectors'] as Array).map(CreateSourceConnectorResponseConnectorsInnerToJSON)), + 'connectors': ((value['connectors'] as Array).map(CreatedDestinationConnectorToJSON)), }; } diff --git a/src/ts/src/models/CreateSourceConnectorResponse.ts b/src/ts/src/models/CreateSourceConnectorResponse.ts index 9d87c63..d542927 100644 --- a/src/ts/src/models/CreateSourceConnectorResponse.ts +++ b/src/ts/src/models/CreateSourceConnectorResponse.ts @@ -13,13 +13,13 @@ */ import { mapValues } from '../runtime'; -import type { CreateSourceConnectorResponseConnectorsInner } from './CreateSourceConnectorResponseConnectorsInner'; +import type { CreatedSourceConnector } from './CreatedSourceConnector'; import { - CreateSourceConnectorResponseConnectorsInnerFromJSON, - CreateSourceConnectorResponseConnectorsInnerFromJSONTyped, - CreateSourceConnectorResponseConnectorsInnerToJSON, - CreateSourceConnectorResponseConnectorsInnerToJSONTyped, -} from './CreateSourceConnectorResponseConnectorsInner'; + CreatedSourceConnectorFromJSON, + CreatedSourceConnectorFromJSONTyped, + CreatedSourceConnectorToJSON, + CreatedSourceConnectorToJSONTyped, +} from './CreatedSourceConnector'; /** * @@ -35,10 +35,10 @@ export interface CreateSourceConnectorResponse { message: string; /** * - * @type {Array} + * @type {Array} * @memberof CreateSourceConnectorResponse */ - connectors: Array; + connectors: Array; } /** @@ -61,7 +61,7 @@ export function CreateSourceConnectorResponseFromJSONTyped(json: any, ignoreDisc return { 'message': json['message'], - 'connectors': ((json['connectors'] as Array).map(CreateSourceConnectorResponseConnectorsInnerFromJSON)), + 'connectors': ((json['connectors'] as Array).map(CreatedSourceConnectorFromJSON)), }; } @@ -77,7 +77,7 @@ export function CreateSourceConnectorResponseToJSONTyped(value?: CreateSourceCon return { 'message': value['message'], - 'connectors': ((value['connectors'] as Array).map(CreateSourceConnectorResponseConnectorsInnerToJSON)), + 'connectors': ((value['connectors'] as Array).map(CreatedSourceConnectorToJSON)), }; } diff --git a/src/ts/src/models/CreateSourceConnectorResponseConnectorsInner.ts b/src/ts/src/models/CreateSourceConnectorResponseConnectorsInner.ts deleted file mode 100644 index 5efe61d..0000000 --- a/src/ts/src/models/CreateSourceConnectorResponseConnectorsInner.ts +++ /dev/null @@ -1,75 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Vectorize API (Beta) - * API for Vectorize services - * - * The version of the OpenAPI document: 0.0.1 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface CreateSourceConnectorResponseConnectorsInner - */ -export interface CreateSourceConnectorResponseConnectorsInner { - /** - * - * @type {string} - * @memberof CreateSourceConnectorResponseConnectorsInner - */ - name: string; - /** - * - * @type {string} - * @memberof CreateSourceConnectorResponseConnectorsInner - */ - id: string; -} - -/** - * Check if a given object implements the CreateSourceConnectorResponseConnectorsInner interface. - */ -export function instanceOfCreateSourceConnectorResponseConnectorsInner(value: object): value is CreateSourceConnectorResponseConnectorsInner { - if (!('name' in value) || value['name'] === undefined) return false; - if (!('id' in value) || value['id'] === undefined) return false; - return true; -} - -export function CreateSourceConnectorResponseConnectorsInnerFromJSON(json: any): CreateSourceConnectorResponseConnectorsInner { - return CreateSourceConnectorResponseConnectorsInnerFromJSONTyped(json, false); -} - -export function CreateSourceConnectorResponseConnectorsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateSourceConnectorResponseConnectorsInner { - if (json == null) { - return json; - } - return { - - 'name': json['name'], - 'id': json['id'], - }; -} - -export function CreateSourceConnectorResponseConnectorsInnerToJSON(json: any): CreateSourceConnectorResponseConnectorsInner { - return CreateSourceConnectorResponseConnectorsInnerToJSONTyped(json, false); -} - -export function CreateSourceConnectorResponseConnectorsInnerToJSONTyped(value?: CreateSourceConnectorResponseConnectorsInner | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'name': value['name'], - 'id': value['id'], - }; -} - diff --git a/src/ts/src/models/DestinationConnectorSchema.ts b/src/ts/src/models/DestinationConnectorSchema.ts index 6a72297..17683b1 100644 --- a/src/ts/src/models/DestinationConnectorSchema.ts +++ b/src/ts/src/models/DestinationConnectorSchema.ts @@ -13,6 +13,14 @@ */ import { mapValues } from '../runtime'; +import type { DestinationConnectorType } from './DestinationConnectorType'; +import { + DestinationConnectorTypeFromJSON, + DestinationConnectorTypeFromJSONTyped, + DestinationConnectorTypeToJSON, + DestinationConnectorTypeToJSONTyped, +} from './DestinationConnectorType'; + /** * * @export @@ -27,25 +35,26 @@ export interface DestinationConnectorSchema { id: string; /** * - * @type {string} + * @type {DestinationConnectorType} * @memberof DestinationConnectorSchema */ - type: string; + type: DestinationConnectorType; /** * - * @type {object} + * @type {{ [key: string]: any | null; }} * @memberof DestinationConnectorSchema */ - config: object; + config?: { [key: string]: any | null; }; } + + /** * Check if a given object implements the DestinationConnectorSchema interface. */ export function instanceOfDestinationConnectorSchema(value: object): value is DestinationConnectorSchema { if (!('id' in value) || value['id'] === undefined) return false; if (!('type' in value) || value['type'] === undefined) return false; - if (!('config' in value) || value['config'] === undefined) return false; return true; } @@ -60,8 +69,8 @@ export function DestinationConnectorSchemaFromJSONTyped(json: any, ignoreDiscrim return { 'id': json['id'], - 'type': json['type'], - 'config': json['config'], + 'type': DestinationConnectorTypeFromJSON(json['type']), + 'config': json['config'] == null ? undefined : json['config'], }; } @@ -77,7 +86,7 @@ export function DestinationConnectorSchemaToJSONTyped(value?: DestinationConnect return { 'id': value['id'], - 'type': value['type'], + 'type': DestinationConnectorTypeToJSON(value['type']), 'config': value['config'], }; } diff --git a/src/ts/src/models/ExtractionResultResponse.ts b/src/ts/src/models/ExtractionResultResponse.ts index e97c89f..393063a 100644 --- a/src/ts/src/models/ExtractionResultResponse.ts +++ b/src/ts/src/models/ExtractionResultResponse.ts @@ -13,13 +13,13 @@ */ import { mapValues } from '../runtime'; -import type { ExtractionResultResponseData } from './ExtractionResultResponseData'; +import type { ExtractionResult } from './ExtractionResult'; import { - ExtractionResultResponseDataFromJSON, - ExtractionResultResponseDataFromJSONTyped, - ExtractionResultResponseDataToJSON, - ExtractionResultResponseDataToJSONTyped, -} from './ExtractionResultResponseData'; + ExtractionResultFromJSON, + ExtractionResultFromJSONTyped, + ExtractionResultToJSON, + ExtractionResultToJSONTyped, +} from './ExtractionResult'; /** * @@ -35,10 +35,10 @@ export interface ExtractionResultResponse { ready: boolean; /** * - * @type {ExtractionResultResponseData} + * @type {ExtractionResult} * @memberof ExtractionResultResponse */ - data?: ExtractionResultResponseData; + data?: ExtractionResult; } /** @@ -60,7 +60,7 @@ export function ExtractionResultResponseFromJSONTyped(json: any, ignoreDiscrimin return { 'ready': json['ready'], - 'data': json['data'] == null ? undefined : ExtractionResultResponseDataFromJSON(json['data']), + 'data': json['data'] == null ? undefined : ExtractionResultFromJSON(json['data']), }; } @@ -76,7 +76,7 @@ export function ExtractionResultResponseToJSONTyped(value?: ExtractionResultResp return { 'ready': value['ready'], - 'data': ExtractionResultResponseDataToJSON(value['data']), + 'data': ExtractionResultToJSON(value['data']), }; } diff --git a/src/ts/src/models/ExtractionResultResponseData.ts b/src/ts/src/models/ExtractionResultResponseData.ts deleted file mode 100644 index 0d071c6..0000000 --- a/src/ts/src/models/ExtractionResultResponseData.ts +++ /dev/null @@ -1,90 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Vectorize API (Beta) - * API for Vectorize services - * - * The version of the OpenAPI document: 0.0.1 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface ExtractionResultResponseData - */ -export interface ExtractionResultResponseData { - /** - * - * @type {boolean} - * @memberof ExtractionResultResponseData - */ - success: boolean; - /** - * - * @type {Array} - * @memberof ExtractionResultResponseData - */ - chunks?: Array; - /** - * - * @type {string} - * @memberof ExtractionResultResponseData - */ - text?: string; - /** - * - * @type {string} - * @memberof ExtractionResultResponseData - */ - error?: string; -} - -/** - * Check if a given object implements the ExtractionResultResponseData interface. - */ -export function instanceOfExtractionResultResponseData(value: object): value is ExtractionResultResponseData { - if (!('success' in value) || value['success'] === undefined) return false; - return true; -} - -export function ExtractionResultResponseDataFromJSON(json: any): ExtractionResultResponseData { - return ExtractionResultResponseDataFromJSONTyped(json, false); -} - -export function ExtractionResultResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExtractionResultResponseData { - if (json == null) { - return json; - } - return { - - 'success': json['success'], - 'chunks': json['chunks'] == null ? undefined : json['chunks'], - 'text': json['text'] == null ? undefined : json['text'], - 'error': json['error'] == null ? undefined : json['error'], - }; -} - -export function ExtractionResultResponseDataToJSON(json: any): ExtractionResultResponseData { - return ExtractionResultResponseDataToJSONTyped(json, false); -} - -export function ExtractionResultResponseDataToJSONTyped(value?: ExtractionResultResponseData | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'success': value['success'], - 'chunks': value['chunks'], - 'text': value['text'], - 'error': value['error'], - }; -} - diff --git a/src/ts/src/models/GetDeepResearchResponse.ts b/src/ts/src/models/GetDeepResearchResponse.ts index ae32478..c8acf11 100644 --- a/src/ts/src/models/GetDeepResearchResponse.ts +++ b/src/ts/src/models/GetDeepResearchResponse.ts @@ -13,13 +13,13 @@ */ import { mapValues } from '../runtime'; -import type { GetDeepResearchResponseData } from './GetDeepResearchResponseData'; +import type { DeepResearchResult } from './DeepResearchResult'; import { - GetDeepResearchResponseDataFromJSON, - GetDeepResearchResponseDataFromJSONTyped, - GetDeepResearchResponseDataToJSON, - GetDeepResearchResponseDataToJSONTyped, -} from './GetDeepResearchResponseData'; + DeepResearchResultFromJSON, + DeepResearchResultFromJSONTyped, + DeepResearchResultToJSON, + DeepResearchResultToJSONTyped, +} from './DeepResearchResult'; /** * @@ -35,10 +35,10 @@ export interface GetDeepResearchResponse { ready: boolean; /** * - * @type {GetDeepResearchResponseData} + * @type {DeepResearchResult} * @memberof GetDeepResearchResponse */ - data?: GetDeepResearchResponseData; + data?: DeepResearchResult; } /** @@ -60,7 +60,7 @@ export function GetDeepResearchResponseFromJSONTyped(json: any, ignoreDiscrimina return { 'ready': json['ready'], - 'data': json['data'] == null ? undefined : GetDeepResearchResponseDataFromJSON(json['data']), + 'data': json['data'] == null ? undefined : DeepResearchResultFromJSON(json['data']), }; } @@ -76,7 +76,7 @@ export function GetDeepResearchResponseToJSONTyped(value?: GetDeepResearchRespon return { 'ready': value['ready'], - 'data': GetDeepResearchResponseDataToJSON(value['data']), + 'data': DeepResearchResultToJSON(value['data']), }; } diff --git a/src/ts/src/models/GetDeepResearchResponseData.ts b/src/ts/src/models/GetDeepResearchResponseData.ts deleted file mode 100644 index 7cacb13..0000000 --- a/src/ts/src/models/GetDeepResearchResponseData.ts +++ /dev/null @@ -1,90 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Vectorize API (Beta) - * API for Vectorize services - * - * The version of the OpenAPI document: 0.0.1 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface GetDeepResearchResponseData - */ -export interface GetDeepResearchResponseData { - /** - * - * @type {boolean} - * @memberof GetDeepResearchResponseData - */ - success: boolean; - /** - * - * @type {Array} - * @memberof GetDeepResearchResponseData - */ - events?: Array; - /** - * - * @type {string} - * @memberof GetDeepResearchResponseData - */ - markdown?: string; - /** - * - * @type {string} - * @memberof GetDeepResearchResponseData - */ - error?: string; -} - -/** - * Check if a given object implements the GetDeepResearchResponseData interface. - */ -export function instanceOfGetDeepResearchResponseData(value: object): value is GetDeepResearchResponseData { - if (!('success' in value) || value['success'] === undefined) return false; - return true; -} - -export function GetDeepResearchResponseDataFromJSON(json: any): GetDeepResearchResponseData { - return GetDeepResearchResponseDataFromJSONTyped(json, false); -} - -export function GetDeepResearchResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetDeepResearchResponseData { - if (json == null) { - return json; - } - return { - - 'success': json['success'], - 'events': json['events'] == null ? undefined : json['events'], - 'markdown': json['markdown'] == null ? undefined : json['markdown'], - 'error': json['error'] == null ? undefined : json['error'], - }; -} - -export function GetDeepResearchResponseDataToJSON(json: any): GetDeepResearchResponseData { - return GetDeepResearchResponseDataToJSONTyped(json, false); -} - -export function GetDeepResearchResponseDataToJSONTyped(value?: GetDeepResearchResponseData | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'success': value['success'], - 'events': value['events'], - 'markdown': value['markdown'], - 'error': value['error'], - }; -} - diff --git a/src/ts/src/models/GetPipelineEventsResponse.ts b/src/ts/src/models/GetPipelineEventsResponse.ts index 80e8227..4450028 100644 --- a/src/ts/src/models/GetPipelineEventsResponse.ts +++ b/src/ts/src/models/GetPipelineEventsResponse.ts @@ -13,13 +13,13 @@ */ import { mapValues } from '../runtime'; -import type { GetPipelineEventsResponseDataInner } from './GetPipelineEventsResponseDataInner'; +import type { PipelineEvents } from './PipelineEvents'; import { - GetPipelineEventsResponseDataInnerFromJSON, - GetPipelineEventsResponseDataInnerFromJSONTyped, - GetPipelineEventsResponseDataInnerToJSON, - GetPipelineEventsResponseDataInnerToJSONTyped, -} from './GetPipelineEventsResponseDataInner'; + PipelineEventsFromJSON, + PipelineEventsFromJSONTyped, + PipelineEventsToJSON, + PipelineEventsToJSONTyped, +} from './PipelineEvents'; /** * @@ -41,10 +41,10 @@ export interface GetPipelineEventsResponse { nextToken?: string; /** * - * @type {Array} + * @type {Array} * @memberof GetPipelineEventsResponse */ - data: Array; + data: Array; } /** @@ -68,7 +68,7 @@ export function GetPipelineEventsResponseFromJSONTyped(json: any, ignoreDiscrimi 'message': json['message'], 'nextToken': json['nextToken'] == null ? undefined : json['nextToken'], - 'data': ((json['data'] as Array).map(GetPipelineEventsResponseDataInnerFromJSON)), + 'data': ((json['data'] as Array).map(PipelineEventsFromJSON)), }; } @@ -85,7 +85,7 @@ export function GetPipelineEventsResponseToJSONTyped(value?: GetPipelineEventsRe 'message': value['message'], 'nextToken': value['nextToken'], - 'data': ((value['data'] as Array).map(GetPipelineEventsResponseDataInnerToJSON)), + 'data': ((value['data'] as Array).map(PipelineEventsToJSON)), }; } diff --git a/src/ts/src/models/GetPipelineEventsResponseDataInner.ts b/src/ts/src/models/GetPipelineEventsResponseDataInner.ts deleted file mode 100644 index 20ffb61..0000000 --- a/src/ts/src/models/GetPipelineEventsResponseDataInner.ts +++ /dev/null @@ -1,100 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Vectorize API (Beta) - * API for Vectorize services - * - * The version of the OpenAPI document: 0.0.1 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface GetPipelineEventsResponseDataInner - */ -export interface GetPipelineEventsResponseDataInner { - /** - * - * @type {string} - * @memberof GetPipelineEventsResponseDataInner - */ - id: string; - /** - * - * @type {string} - * @memberof GetPipelineEventsResponseDataInner - */ - type: string; - /** - * - * @type {string} - * @memberof GetPipelineEventsResponseDataInner - */ - timestamp: string | null; - /** - * - * @type {{ [key: string]: any | null; }} - * @memberof GetPipelineEventsResponseDataInner - */ - details?: { [key: string]: any | null; }; - /** - * - * @type {{ [key: string]: any | null; }} - * @memberof GetPipelineEventsResponseDataInner - */ - summary?: { [key: string]: any | null; }; -} - -/** - * Check if a given object implements the GetPipelineEventsResponseDataInner interface. - */ -export function instanceOfGetPipelineEventsResponseDataInner(value: object): value is GetPipelineEventsResponseDataInner { - if (!('id' in value) || value['id'] === undefined) return false; - if (!('type' in value) || value['type'] === undefined) return false; - if (!('timestamp' in value) || value['timestamp'] === undefined) return false; - return true; -} - -export function GetPipelineEventsResponseDataInnerFromJSON(json: any): GetPipelineEventsResponseDataInner { - return GetPipelineEventsResponseDataInnerFromJSONTyped(json, false); -} - -export function GetPipelineEventsResponseDataInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetPipelineEventsResponseDataInner { - if (json == null) { - return json; - } - return { - - 'id': json['id'], - 'type': json['type'], - 'timestamp': json['timestamp'], - 'details': json['details'] == null ? undefined : json['details'], - 'summary': json['summary'] == null ? undefined : json['summary'], - }; -} - -export function GetPipelineEventsResponseDataInnerToJSON(json: any): GetPipelineEventsResponseDataInner { - return GetPipelineEventsResponseDataInnerToJSONTyped(json, false); -} - -export function GetPipelineEventsResponseDataInnerToJSONTyped(value?: GetPipelineEventsResponseDataInner | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'id': value['id'], - 'type': value['type'], - 'timestamp': value['timestamp'], - 'details': value['details'], - 'summary': value['summary'], - }; -} - diff --git a/src/ts/src/models/GetPipelineMetricsResponse.ts b/src/ts/src/models/GetPipelineMetricsResponse.ts index 1a05ff7..2d31ee2 100644 --- a/src/ts/src/models/GetPipelineMetricsResponse.ts +++ b/src/ts/src/models/GetPipelineMetricsResponse.ts @@ -13,13 +13,13 @@ */ import { mapValues } from '../runtime'; -import type { GetPipelineMetricsResponseDataInner } from './GetPipelineMetricsResponseDataInner'; +import type { PipelineMetrics } from './PipelineMetrics'; import { - GetPipelineMetricsResponseDataInnerFromJSON, - GetPipelineMetricsResponseDataInnerFromJSONTyped, - GetPipelineMetricsResponseDataInnerToJSON, - GetPipelineMetricsResponseDataInnerToJSONTyped, -} from './GetPipelineMetricsResponseDataInner'; + PipelineMetricsFromJSON, + PipelineMetricsFromJSONTyped, + PipelineMetricsToJSON, + PipelineMetricsToJSONTyped, +} from './PipelineMetrics'; /** * @@ -35,10 +35,10 @@ export interface GetPipelineMetricsResponse { message: string; /** * - * @type {Array} + * @type {Array} * @memberof GetPipelineMetricsResponse */ - data: Array; + data: Array; } /** @@ -61,7 +61,7 @@ export function GetPipelineMetricsResponseFromJSONTyped(json: any, ignoreDiscrim return { 'message': json['message'], - 'data': ((json['data'] as Array).map(GetPipelineMetricsResponseDataInnerFromJSON)), + 'data': ((json['data'] as Array).map(PipelineMetricsFromJSON)), }; } @@ -77,7 +77,7 @@ export function GetPipelineMetricsResponseToJSONTyped(value?: GetPipelineMetrics return { 'message': value['message'], - 'data': ((value['data'] as Array).map(GetPipelineMetricsResponseDataInnerToJSON)), + 'data': ((value['data'] as Array).map(PipelineMetricsToJSON)), }; } diff --git a/src/ts/src/models/GetPipelineMetricsResponseDataInner.ts b/src/ts/src/models/GetPipelineMetricsResponseDataInner.ts deleted file mode 100644 index 9206387..0000000 --- a/src/ts/src/models/GetPipelineMetricsResponseDataInner.ts +++ /dev/null @@ -1,93 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Vectorize API (Beta) - * API for Vectorize services - * - * The version of the OpenAPI document: 0.0.1 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface GetPipelineMetricsResponseDataInner - */ -export interface GetPipelineMetricsResponseDataInner { - /** - * - * @type {string} - * @memberof GetPipelineMetricsResponseDataInner - */ - timestamp: string | null; - /** - * - * @type {number} - * @memberof GetPipelineMetricsResponseDataInner - */ - newObjects: number; - /** - * - * @type {number} - * @memberof GetPipelineMetricsResponseDataInner - */ - changedObjects: number; - /** - * - * @type {number} - * @memberof GetPipelineMetricsResponseDataInner - */ - deletedObjects: number; -} - -/** - * Check if a given object implements the GetPipelineMetricsResponseDataInner interface. - */ -export function instanceOfGetPipelineMetricsResponseDataInner(value: object): value is GetPipelineMetricsResponseDataInner { - if (!('timestamp' in value) || value['timestamp'] === undefined) return false; - if (!('newObjects' in value) || value['newObjects'] === undefined) return false; - if (!('changedObjects' in value) || value['changedObjects'] === undefined) return false; - if (!('deletedObjects' in value) || value['deletedObjects'] === undefined) return false; - return true; -} - -export function GetPipelineMetricsResponseDataInnerFromJSON(json: any): GetPipelineMetricsResponseDataInner { - return GetPipelineMetricsResponseDataInnerFromJSONTyped(json, false); -} - -export function GetPipelineMetricsResponseDataInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetPipelineMetricsResponseDataInner { - if (json == null) { - return json; - } - return { - - 'timestamp': json['timestamp'], - 'newObjects': json['newObjects'], - 'changedObjects': json['changedObjects'], - 'deletedObjects': json['deletedObjects'], - }; -} - -export function GetPipelineMetricsResponseDataInnerToJSON(json: any): GetPipelineMetricsResponseDataInner { - return GetPipelineMetricsResponseDataInnerToJSONTyped(json, false); -} - -export function GetPipelineMetricsResponseDataInnerToJSONTyped(value?: GetPipelineMetricsResponseDataInner | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'timestamp': value['timestamp'], - 'newObjects': value['newObjects'], - 'changedObjects': value['changedObjects'], - 'deletedObjects': value['deletedObjects'], - }; -} - diff --git a/src/ts/src/models/GetUploadFilesResponse.ts b/src/ts/src/models/GetUploadFilesResponse.ts index 0ea974f..2174ff4 100644 --- a/src/ts/src/models/GetUploadFilesResponse.ts +++ b/src/ts/src/models/GetUploadFilesResponse.ts @@ -13,13 +13,13 @@ */ import { mapValues } from '../runtime'; -import type { GetUploadFilesResponseFilesInner } from './GetUploadFilesResponseFilesInner'; +import type { UploadFile } from './UploadFile'; import { - GetUploadFilesResponseFilesInnerFromJSON, - GetUploadFilesResponseFilesInnerFromJSONTyped, - GetUploadFilesResponseFilesInnerToJSON, - GetUploadFilesResponseFilesInnerToJSONTyped, -} from './GetUploadFilesResponseFilesInner'; + UploadFileFromJSON, + UploadFileFromJSONTyped, + UploadFileToJSON, + UploadFileToJSONTyped, +} from './UploadFile'; /** * @@ -35,10 +35,10 @@ export interface GetUploadFilesResponse { message: string; /** * - * @type {Array} + * @type {Array} * @memberof GetUploadFilesResponse */ - files: Array; + files: Array; } /** @@ -61,7 +61,7 @@ export function GetUploadFilesResponseFromJSONTyped(json: any, ignoreDiscriminat return { 'message': json['message'], - 'files': ((json['files'] as Array).map(GetUploadFilesResponseFilesInnerFromJSON)), + 'files': ((json['files'] as Array).map(UploadFileFromJSON)), }; } @@ -77,7 +77,7 @@ export function GetUploadFilesResponseToJSONTyped(value?: GetUploadFilesResponse return { 'message': value['message'], - 'files': ((value['files'] as Array).map(GetUploadFilesResponseFilesInnerToJSON)), + 'files': ((value['files'] as Array).map(UploadFileToJSON)), }; } diff --git a/src/ts/src/models/GetUploadFilesResponseFilesInner.ts b/src/ts/src/models/GetUploadFilesResponseFilesInner.ts deleted file mode 100644 index 11381e8..0000000 --- a/src/ts/src/models/GetUploadFilesResponseFilesInner.ts +++ /dev/null @@ -1,110 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Vectorize API (Beta) - * API for Vectorize services - * - * The version of the OpenAPI document: 0.0.1 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface GetUploadFilesResponseFilesInner - */ -export interface GetUploadFilesResponseFilesInner { - /** - * - * @type {string} - * @memberof GetUploadFilesResponseFilesInner - */ - key: string; - /** - * - * @type {string} - * @memberof GetUploadFilesResponseFilesInner - */ - name: string; - /** - * - * @type {number} - * @memberof GetUploadFilesResponseFilesInner - */ - size: number; - /** - * - * @type {string} - * @memberof GetUploadFilesResponseFilesInner - */ - extension?: string; - /** - * - * @type {string} - * @memberof GetUploadFilesResponseFilesInner - */ - lastModified: string | null; - /** - * - * @type {{ [key: string]: string; }} - * @memberof GetUploadFilesResponseFilesInner - */ - metadata: { [key: string]: string; }; -} - -/** - * Check if a given object implements the GetUploadFilesResponseFilesInner interface. - */ -export function instanceOfGetUploadFilesResponseFilesInner(value: object): value is GetUploadFilesResponseFilesInner { - if (!('key' in value) || value['key'] === undefined) return false; - if (!('name' in value) || value['name'] === undefined) return false; - if (!('size' in value) || value['size'] === undefined) return false; - if (!('lastModified' in value) || value['lastModified'] === undefined) return false; - if (!('metadata' in value) || value['metadata'] === undefined) return false; - return true; -} - -export function GetUploadFilesResponseFilesInnerFromJSON(json: any): GetUploadFilesResponseFilesInner { - return GetUploadFilesResponseFilesInnerFromJSONTyped(json, false); -} - -export function GetUploadFilesResponseFilesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetUploadFilesResponseFilesInner { - if (json == null) { - return json; - } - return { - - 'key': json['key'], - 'name': json['name'], - 'size': json['size'], - 'extension': json['extension'] == null ? undefined : json['extension'], - 'lastModified': json['lastModified'], - 'metadata': json['metadata'], - }; -} - -export function GetUploadFilesResponseFilesInnerToJSON(json: any): GetUploadFilesResponseFilesInner { - return GetUploadFilesResponseFilesInnerToJSONTyped(json, false); -} - -export function GetUploadFilesResponseFilesInnerToJSONTyped(value?: GetUploadFilesResponseFilesInner | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'key': value['key'], - 'name': value['name'], - 'size': value['size'], - 'extension': value['extension'], - 'lastModified': value['lastModified'], - 'metadata': value['metadata'], - }; -} - diff --git a/src/ts/src/models/RetrieveDocumentsRequest.ts b/src/ts/src/models/RetrieveDocumentsRequest.ts index 6a647d1..f368be8 100644 --- a/src/ts/src/models/RetrieveDocumentsRequest.ts +++ b/src/ts/src/models/RetrieveDocumentsRequest.ts @@ -13,13 +13,13 @@ */ import { mapValues } from '../runtime'; -import type { RetrieveDocumentsRequestContext } from './RetrieveDocumentsRequestContext'; +import type { RetrieveContext } from './RetrieveContext'; import { - RetrieveDocumentsRequestContextFromJSON, - RetrieveDocumentsRequestContextFromJSONTyped, - RetrieveDocumentsRequestContextToJSON, - RetrieveDocumentsRequestContextToJSONTyped, -} from './RetrieveDocumentsRequestContext'; + RetrieveContextFromJSON, + RetrieveContextFromJSONTyped, + RetrieveContextToJSON, + RetrieveContextToJSONTyped, +} from './RetrieveContext'; /** * @@ -53,10 +53,10 @@ export interface RetrieveDocumentsRequest { metadataFilters?: Array<{ [key: string]: any | null; }>; /** * - * @type {RetrieveDocumentsRequestContext} + * @type {RetrieveContext} * @memberof RetrieveDocumentsRequest */ - context?: RetrieveDocumentsRequestContext; + context?: RetrieveContext; } /** @@ -82,7 +82,7 @@ export function RetrieveDocumentsRequestFromJSONTyped(json: any, ignoreDiscrimin 'numResults': json['numResults'], 'rerank': json['rerank'] == null ? undefined : json['rerank'], 'metadataFilters': json['metadata-filters'] == null ? undefined : json['metadata-filters'], - 'context': json['context'] == null ? undefined : RetrieveDocumentsRequestContextFromJSON(json['context']), + 'context': json['context'] == null ? undefined : RetrieveContextFromJSON(json['context']), }; } @@ -101,7 +101,7 @@ export function RetrieveDocumentsRequestToJSONTyped(value?: RetrieveDocumentsReq 'numResults': value['numResults'], 'rerank': value['rerank'], 'metadata-filters': value['metadataFilters'], - 'context': RetrieveDocumentsRequestContextToJSON(value['context']), + 'context': RetrieveContextToJSON(value['context']), }; } diff --git a/src/ts/src/models/RetrieveDocumentsRequestContext.ts b/src/ts/src/models/RetrieveDocumentsRequestContext.ts deleted file mode 100644 index 7fff710..0000000 --- a/src/ts/src/models/RetrieveDocumentsRequestContext.ts +++ /dev/null @@ -1,74 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Vectorize API (Beta) - * API for Vectorize services - * - * The version of the OpenAPI document: 0.0.1 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { RetrieveDocumentsRequestContextMessagesInner } from './RetrieveDocumentsRequestContextMessagesInner'; -import { - RetrieveDocumentsRequestContextMessagesInnerFromJSON, - RetrieveDocumentsRequestContextMessagesInnerFromJSONTyped, - RetrieveDocumentsRequestContextMessagesInnerToJSON, - RetrieveDocumentsRequestContextMessagesInnerToJSONTyped, -} from './RetrieveDocumentsRequestContextMessagesInner'; - -/** - * - * @export - * @interface RetrieveDocumentsRequestContext - */ -export interface RetrieveDocumentsRequestContext { - /** - * - * @type {Array} - * @memberof RetrieveDocumentsRequestContext - */ - messages: Array; -} - -/** - * Check if a given object implements the RetrieveDocumentsRequestContext interface. - */ -export function instanceOfRetrieveDocumentsRequestContext(value: object): value is RetrieveDocumentsRequestContext { - if (!('messages' in value) || value['messages'] === undefined) return false; - return true; -} - -export function RetrieveDocumentsRequestContextFromJSON(json: any): RetrieveDocumentsRequestContext { - return RetrieveDocumentsRequestContextFromJSONTyped(json, false); -} - -export function RetrieveDocumentsRequestContextFromJSONTyped(json: any, ignoreDiscriminator: boolean): RetrieveDocumentsRequestContext { - if (json == null) { - return json; - } - return { - - 'messages': ((json['messages'] as Array).map(RetrieveDocumentsRequestContextMessagesInnerFromJSON)), - }; -} - -export function RetrieveDocumentsRequestContextToJSON(json: any): RetrieveDocumentsRequestContext { - return RetrieveDocumentsRequestContextToJSONTyped(json, false); -} - -export function RetrieveDocumentsRequestContextToJSONTyped(value?: RetrieveDocumentsRequestContext | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'messages': ((value['messages'] as Array).map(RetrieveDocumentsRequestContextMessagesInnerToJSON)), - }; -} - diff --git a/src/ts/src/models/RetrieveDocumentsRequestContextMessagesInner.ts b/src/ts/src/models/RetrieveDocumentsRequestContextMessagesInner.ts deleted file mode 100644 index 2f7ec1c..0000000 --- a/src/ts/src/models/RetrieveDocumentsRequestContextMessagesInner.ts +++ /dev/null @@ -1,75 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Vectorize API (Beta) - * API for Vectorize services - * - * The version of the OpenAPI document: 0.0.1 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface RetrieveDocumentsRequestContextMessagesInner - */ -export interface RetrieveDocumentsRequestContextMessagesInner { - /** - * - * @type {string} - * @memberof RetrieveDocumentsRequestContextMessagesInner - */ - role: string; - /** - * - * @type {string} - * @memberof RetrieveDocumentsRequestContextMessagesInner - */ - content: string; -} - -/** - * Check if a given object implements the RetrieveDocumentsRequestContextMessagesInner interface. - */ -export function instanceOfRetrieveDocumentsRequestContextMessagesInner(value: object): value is RetrieveDocumentsRequestContextMessagesInner { - if (!('role' in value) || value['role'] === undefined) return false; - if (!('content' in value) || value['content'] === undefined) return false; - return true; -} - -export function RetrieveDocumentsRequestContextMessagesInnerFromJSON(json: any): RetrieveDocumentsRequestContextMessagesInner { - return RetrieveDocumentsRequestContextMessagesInnerFromJSONTyped(json, false); -} - -export function RetrieveDocumentsRequestContextMessagesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): RetrieveDocumentsRequestContextMessagesInner { - if (json == null) { - return json; - } - return { - - 'role': json['role'], - 'content': json['content'], - }; -} - -export function RetrieveDocumentsRequestContextMessagesInnerToJSON(json: any): RetrieveDocumentsRequestContextMessagesInner { - return RetrieveDocumentsRequestContextMessagesInnerToJSONTyped(json, false); -} - -export function RetrieveDocumentsRequestContextMessagesInnerToJSONTyped(value?: RetrieveDocumentsRequestContextMessagesInner | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'role': value['role'], - 'content': value['content'], - }; -} - diff --git a/src/ts/src/models/ScheduleSchema.ts b/src/ts/src/models/ScheduleSchema.ts index ba7101f..3848043 100644 --- a/src/ts/src/models/ScheduleSchema.ts +++ b/src/ts/src/models/ScheduleSchema.ts @@ -13,6 +13,14 @@ */ import { mapValues } from '../runtime'; +import type { ScheduleSchemaType } from './ScheduleSchemaType'; +import { + ScheduleSchemaTypeFromJSON, + ScheduleSchemaTypeFromJSONTyped, + ScheduleSchemaTypeToJSON, + ScheduleSchemaTypeToJSONTyped, +} from './ScheduleSchemaType'; + /** * * @export @@ -21,23 +29,13 @@ import { mapValues } from '../runtime'; export interface ScheduleSchema { /** * - * @type {string} + * @type {ScheduleSchemaType} * @memberof ScheduleSchema */ - type: ScheduleSchemaTypeEnum; + type: ScheduleSchemaType; } -/** - * @export - */ -export const ScheduleSchemaTypeEnum = { - Manual: 'manual', - Realtime: 'realtime', - Custom: 'custom' -} as const; -export type ScheduleSchemaTypeEnum = typeof ScheduleSchemaTypeEnum[keyof typeof ScheduleSchemaTypeEnum]; - /** * Check if a given object implements the ScheduleSchema interface. @@ -57,7 +55,7 @@ export function ScheduleSchemaFromJSONTyped(json: any, ignoreDiscriminator: bool } return { - 'type': json['type'], + 'type': ScheduleSchemaTypeFromJSON(json['type']), }; } @@ -72,7 +70,7 @@ export function ScheduleSchemaToJSONTyped(value?: ScheduleSchema | null, ignoreD return { - 'type': value['type'], + 'type': ScheduleSchemaTypeToJSON(value['type']), }; } diff --git a/src/ts/src/models/SourceConnectorSchema.ts b/src/ts/src/models/SourceConnectorSchema.ts index 8ef1b1c..7133918 100644 --- a/src/ts/src/models/SourceConnectorSchema.ts +++ b/src/ts/src/models/SourceConnectorSchema.ts @@ -13,6 +13,14 @@ */ import { mapValues } from '../runtime'; +import type { SourceConnectorType } from './SourceConnectorType'; +import { + SourceConnectorTypeFromJSON, + SourceConnectorTypeFromJSONTyped, + SourceConnectorTypeToJSON, + SourceConnectorTypeToJSONTyped, +} from './SourceConnectorType'; + /** * * @export @@ -27,41 +35,19 @@ export interface SourceConnectorSchema { id: string; /** * - * @type {string} + * @type {SourceConnectorType} * @memberof SourceConnectorSchema */ - type: SourceConnectorSchemaTypeEnum; + type: SourceConnectorType; /** * - * @type {object} + * @type {{ [key: string]: any | null; }} * @memberof SourceConnectorSchema */ - config: object; + config?: { [key: string]: any | null; }; } -/** - * @export - */ -export const SourceConnectorSchemaTypeEnum = { - AwsS3: 'AWS_S3', - AzureBlob: 'AZURE_BLOB', - Confluence: 'CONFLUENCE', - Discord: 'DISCORD', - Dropbox: 'DROPBOX', - Firecrawl: 'FIRECRAWL', - Gcs: 'GCS', - GoogleDrive: 'GOOGLE_DRIVE', - Intercom: 'INTERCOM', - OneDrive: 'ONE_DRIVE', - Sharepoint: 'SHAREPOINT', - WebCrawler: 'WEB_CRAWLER', - FileUpload: 'FILE_UPLOAD', - Salesforce: 'SALESFORCE', - Zendesk: 'ZENDESK' -} as const; -export type SourceConnectorSchemaTypeEnum = typeof SourceConnectorSchemaTypeEnum[keyof typeof SourceConnectorSchemaTypeEnum]; - /** * Check if a given object implements the SourceConnectorSchema interface. @@ -69,7 +55,6 @@ export type SourceConnectorSchemaTypeEnum = typeof SourceConnectorSchemaTypeEnum export function instanceOfSourceConnectorSchema(value: object): value is SourceConnectorSchema { if (!('id' in value) || value['id'] === undefined) return false; if (!('type' in value) || value['type'] === undefined) return false; - if (!('config' in value) || value['config'] === undefined) return false; return true; } @@ -84,8 +69,8 @@ export function SourceConnectorSchemaFromJSONTyped(json: any, ignoreDiscriminato return { 'id': json['id'], - 'type': json['type'], - 'config': json['config'], + 'type': SourceConnectorTypeFromJSON(json['type']), + 'config': json['config'] == null ? undefined : json['config'], }; } @@ -101,7 +86,7 @@ export function SourceConnectorSchemaToJSONTyped(value?: SourceConnectorSchema | return { 'id': value['id'], - 'type': value['type'], + 'type': SourceConnectorTypeToJSON(value['type']), 'config': value['config'], }; } diff --git a/src/ts/src/models/StartDeepResearchRequest.ts b/src/ts/src/models/StartDeepResearchRequest.ts index 550212b..e1910fb 100644 --- a/src/ts/src/models/StartDeepResearchRequest.ts +++ b/src/ts/src/models/StartDeepResearchRequest.ts @@ -13,13 +13,13 @@ */ import { mapValues } from '../runtime'; -import type { StartDeepResearchRequestN8n } from './StartDeepResearchRequestN8n'; +import type { N8NConfig } from './N8NConfig'; import { - StartDeepResearchRequestN8nFromJSON, - StartDeepResearchRequestN8nFromJSONTyped, - StartDeepResearchRequestN8nToJSON, - StartDeepResearchRequestN8nToJSONTyped, -} from './StartDeepResearchRequestN8n'; + N8NConfigFromJSON, + N8NConfigFromJSONTyped, + N8NConfigToJSON, + N8NConfigToJSONTyped, +} from './N8NConfig'; /** * @@ -47,10 +47,10 @@ export interface StartDeepResearchRequest { schema?: string; /** * - * @type {StartDeepResearchRequestN8n} + * @type {N8NConfig} * @memberof StartDeepResearchRequest */ - n8n?: StartDeepResearchRequestN8n; + n8n?: N8NConfig; } /** @@ -74,7 +74,7 @@ export function StartDeepResearchRequestFromJSONTyped(json: any, ignoreDiscrimin 'query': json['query'], 'webSearch': json['webSearch'] == null ? undefined : json['webSearch'], 'schema': json['schema'] == null ? undefined : json['schema'], - 'n8n': json['n8n'] == null ? undefined : StartDeepResearchRequestN8nFromJSON(json['n8n']), + 'n8n': json['n8n'] == null ? undefined : N8NConfigFromJSON(json['n8n']), }; } @@ -92,7 +92,7 @@ export function StartDeepResearchRequestToJSONTyped(value?: StartDeepResearchReq 'query': value['query'], 'webSearch': value['webSearch'], 'schema': value['schema'], - 'n8n': StartDeepResearchRequestN8nToJSON(value['n8n']), + 'n8n': N8NConfigToJSON(value['n8n']), }; } diff --git a/src/ts/src/models/StartDeepResearchRequestN8n.ts b/src/ts/src/models/StartDeepResearchRequestN8n.ts deleted file mode 100644 index a10ef3b..0000000 --- a/src/ts/src/models/StartDeepResearchRequestN8n.ts +++ /dev/null @@ -1,83 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Vectorize API (Beta) - * API for Vectorize services - * - * The version of the OpenAPI document: 0.0.1 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface StartDeepResearchRequestN8n - */ -export interface StartDeepResearchRequestN8n { - /** - * - * @type {string} - * @memberof StartDeepResearchRequestN8n - */ - account: string; - /** - * - * @type {string} - * @memberof StartDeepResearchRequestN8n - */ - webhookPath: string; - /** - * - * @type {{ [key: string]: string; }} - * @memberof StartDeepResearchRequestN8n - */ - headers?: { [key: string]: string; }; -} - -/** - * Check if a given object implements the StartDeepResearchRequestN8n interface. - */ -export function instanceOfStartDeepResearchRequestN8n(value: object): value is StartDeepResearchRequestN8n { - if (!('account' in value) || value['account'] === undefined) return false; - if (!('webhookPath' in value) || value['webhookPath'] === undefined) return false; - return true; -} - -export function StartDeepResearchRequestN8nFromJSON(json: any): StartDeepResearchRequestN8n { - return StartDeepResearchRequestN8nFromJSONTyped(json, false); -} - -export function StartDeepResearchRequestN8nFromJSONTyped(json: any, ignoreDiscriminator: boolean): StartDeepResearchRequestN8n { - if (json == null) { - return json; - } - return { - - 'account': json['account'], - 'webhookPath': json['webhookPath'], - 'headers': json['headers'] == null ? undefined : json['headers'], - }; -} - -export function StartDeepResearchRequestN8nToJSON(json: any): StartDeepResearchRequestN8n { - return StartDeepResearchRequestN8nToJSONTyped(json, false); -} - -export function StartDeepResearchRequestN8nToJSONTyped(value?: StartDeepResearchRequestN8n | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'account': value['account'], - 'webhookPath': value['webhookPath'], - 'headers': value['headers'], - }; -} - diff --git a/src/ts/src/models/StartExtractionRequest.ts b/src/ts/src/models/StartExtractionRequest.ts index 2305f6f..1d82586 100644 --- a/src/ts/src/models/StartExtractionRequest.ts +++ b/src/ts/src/models/StartExtractionRequest.ts @@ -13,6 +13,21 @@ */ import { mapValues } from '../runtime'; +import type { ExtractionType } from './ExtractionType'; +import { + ExtractionTypeFromJSON, + ExtractionTypeFromJSONTyped, + ExtractionTypeToJSON, + ExtractionTypeToJSONTyped, +} from './ExtractionType'; +import type { ExtractionChunkingStrategy } from './ExtractionChunkingStrategy'; +import { + ExtractionChunkingStrategyFromJSON, + ExtractionChunkingStrategyFromJSONTyped, + ExtractionChunkingStrategyToJSON, + ExtractionChunkingStrategyToJSONTyped, +} from './ExtractionChunkingStrategy'; + /** * * @export @@ -27,16 +42,16 @@ export interface StartExtractionRequest { fileId: string; /** * - * @type {string} + * @type {ExtractionType} * @memberof StartExtractionRequest */ - type?: StartExtractionRequestTypeEnum; + type?: ExtractionType; /** * - * @type {string} + * @type {ExtractionChunkingStrategy} * @memberof StartExtractionRequest */ - chunkingStrategy?: StartExtractionRequestChunkingStrategyEnum; + chunkingStrategy?: ExtractionChunkingStrategy; /** * * @type {number} @@ -46,22 +61,6 @@ export interface StartExtractionRequest { } -/** - * @export - */ -export const StartExtractionRequestTypeEnum = { - Iris: 'iris' -} as const; -export type StartExtractionRequestTypeEnum = typeof StartExtractionRequestTypeEnum[keyof typeof StartExtractionRequestTypeEnum]; - -/** - * @export - */ -export const StartExtractionRequestChunkingStrategyEnum = { - Markdown: 'markdown' -} as const; -export type StartExtractionRequestChunkingStrategyEnum = typeof StartExtractionRequestChunkingStrategyEnum[keyof typeof StartExtractionRequestChunkingStrategyEnum]; - /** * Check if a given object implements the StartExtractionRequest interface. @@ -82,8 +81,8 @@ export function StartExtractionRequestFromJSONTyped(json: any, ignoreDiscriminat return { 'fileId': json['fileId'], - 'type': json['type'] == null ? undefined : json['type'], - 'chunkingStrategy': json['chunkingStrategy'] == null ? undefined : json['chunkingStrategy'], + 'type': json['type'] == null ? undefined : ExtractionTypeFromJSON(json['type']), + 'chunkingStrategy': json['chunkingStrategy'] == null ? undefined : ExtractionChunkingStrategyFromJSON(json['chunkingStrategy']), 'chunkSize': json['chunkSize'] == null ? undefined : json['chunkSize'], }; } @@ -100,8 +99,8 @@ export function StartExtractionRequestToJSONTyped(value?: StartExtractionRequest return { 'fileId': value['fileId'], - 'type': value['type'], - 'chunkingStrategy': value['chunkingStrategy'], + 'type': ExtractionTypeToJSON(value['type']), + 'chunkingStrategy': ExtractionChunkingStrategyToJSON(value['chunkingStrategy']), 'chunkSize': value['chunkSize'], }; } diff --git a/src/ts/src/models/UpdateAIPlatformConnectorRequest.ts b/src/ts/src/models/UpdateAIPlatformConnectorRequest.ts index fc7bf3a..8d56e0e 100644 --- a/src/ts/src/models/UpdateAIPlatformConnectorRequest.ts +++ b/src/ts/src/models/UpdateAIPlatformConnectorRequest.ts @@ -13,14 +13,6 @@ */ import { mapValues } from '../runtime'; -import type { UpdateAIPlatformConnectorRequestData } from './UpdateAIPlatformConnectorRequestData'; -import { - UpdateAIPlatformConnectorRequestDataFromJSON, - UpdateAIPlatformConnectorRequestDataFromJSONTyped, - UpdateAIPlatformConnectorRequestDataToJSON, - UpdateAIPlatformConnectorRequestDataToJSONTyped, -} from './UpdateAIPlatformConnectorRequestData'; - /** * * @export @@ -29,24 +21,17 @@ import { export interface UpdateAIPlatformConnectorRequest { /** * - * @type {string} - * @memberof UpdateAIPlatformConnectorRequest - */ - message: string; - /** - * - * @type {UpdateAIPlatformConnectorRequestData} + * @type {{ [key: string]: any | null; }} * @memberof UpdateAIPlatformConnectorRequest */ - data: UpdateAIPlatformConnectorRequestData; + config: { [key: string]: any | null; }; } /** * Check if a given object implements the UpdateAIPlatformConnectorRequest interface. */ export function instanceOfUpdateAIPlatformConnectorRequest(value: object): value is UpdateAIPlatformConnectorRequest { - if (!('message' in value) || value['message'] === undefined) return false; - if (!('data' in value) || value['data'] === undefined) return false; + if (!('config' in value) || value['config'] === undefined) return false; return true; } @@ -60,8 +45,7 @@ export function UpdateAIPlatformConnectorRequestFromJSONTyped(json: any, ignoreD } return { - 'message': json['message'], - 'data': UpdateAIPlatformConnectorRequestDataFromJSON(json['data']), + 'config': json['config'], }; } @@ -76,8 +60,7 @@ export function UpdateAIPlatformConnectorRequestToJSONTyped(value?: UpdateAIPlat return { - 'message': value['message'], - 'data': UpdateAIPlatformConnectorRequestDataToJSON(value['data']), + 'config': value['config'], }; } diff --git a/src/ts/src/models/UpdateAIPlatformConnectorRequestData.ts b/src/ts/src/models/UpdateAIPlatformConnectorRequestData.ts deleted file mode 100644 index 52e1471..0000000 --- a/src/ts/src/models/UpdateAIPlatformConnectorRequestData.ts +++ /dev/null @@ -1,82 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Vectorize API (Beta) - * API for Vectorize services - * - * The version of the OpenAPI document: 0.0.1 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { AIPlatform } from './AIPlatform'; -import { - AIPlatformFromJSON, - AIPlatformFromJSONTyped, - AIPlatformToJSON, - AIPlatformToJSONTyped, -} from './AIPlatform'; - -/** - * - * @export - * @interface UpdateAIPlatformConnectorRequestData - */ -export interface UpdateAIPlatformConnectorRequestData { - /** - * - * @type {AIPlatform} - * @memberof UpdateAIPlatformConnectorRequestData - */ - updatedConnector: AIPlatform; - /** - * - * @type {Array} - * @memberof UpdateAIPlatformConnectorRequestData - */ - pipelineIds?: Array; -} - -/** - * Check if a given object implements the UpdateAIPlatformConnectorRequestData interface. - */ -export function instanceOfUpdateAIPlatformConnectorRequestData(value: object): value is UpdateAIPlatformConnectorRequestData { - if (!('updatedConnector' in value) || value['updatedConnector'] === undefined) return false; - return true; -} - -export function UpdateAIPlatformConnectorRequestDataFromJSON(json: any): UpdateAIPlatformConnectorRequestData { - return UpdateAIPlatformConnectorRequestDataFromJSONTyped(json, false); -} - -export function UpdateAIPlatformConnectorRequestDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateAIPlatformConnectorRequestData { - if (json == null) { - return json; - } - return { - - 'updatedConnector': AIPlatformFromJSON(json['updatedConnector']), - 'pipelineIds': json['pipelineIds'] == null ? undefined : json['pipelineIds'], - }; -} - -export function UpdateAIPlatformConnectorRequestDataToJSON(json: any): UpdateAIPlatformConnectorRequestData { - return UpdateAIPlatformConnectorRequestDataToJSONTyped(json, false); -} - -export function UpdateAIPlatformConnectorRequestDataToJSONTyped(value?: UpdateAIPlatformConnectorRequestData | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'updatedConnector': AIPlatformToJSON(value['updatedConnector']), - 'pipelineIds': value['pipelineIds'], - }; -} - diff --git a/src/ts/src/models/UpdateDestinationConnector200Response.ts b/src/ts/src/models/UpdateDestinationConnector200Response.ts deleted file mode 100644 index 4b708b1..0000000 --- a/src/ts/src/models/UpdateDestinationConnector200Response.ts +++ /dev/null @@ -1,83 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Vectorize API (Beta) - * API for Vectorize services - * - * The version of the OpenAPI document: 0.0.1 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { UpdateDestinationConnector200ResponseAllOfData } from './UpdateDestinationConnector200ResponseAllOfData'; -import { - UpdateDestinationConnector200ResponseAllOfDataFromJSON, - UpdateDestinationConnector200ResponseAllOfDataFromJSONTyped, - UpdateDestinationConnector200ResponseAllOfDataToJSON, - UpdateDestinationConnector200ResponseAllOfDataToJSONTyped, -} from './UpdateDestinationConnector200ResponseAllOfData'; - -/** - * - * @export - * @interface UpdateDestinationConnector200Response - */ -export interface UpdateDestinationConnector200Response { - /** - * - * @type {string} - * @memberof UpdateDestinationConnector200Response - */ - message: string; - /** - * - * @type {UpdateDestinationConnector200ResponseAllOfData} - * @memberof UpdateDestinationConnector200Response - */ - data: UpdateDestinationConnector200ResponseAllOfData; -} - -/** - * Check if a given object implements the UpdateDestinationConnector200Response interface. - */ -export function instanceOfUpdateDestinationConnector200Response(value: object): value is UpdateDestinationConnector200Response { - if (!('message' in value) || value['message'] === undefined) return false; - if (!('data' in value) || value['data'] === undefined) return false; - return true; -} - -export function UpdateDestinationConnector200ResponseFromJSON(json: any): UpdateDestinationConnector200Response { - return UpdateDestinationConnector200ResponseFromJSONTyped(json, false); -} - -export function UpdateDestinationConnector200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateDestinationConnector200Response { - if (json == null) { - return json; - } - return { - - 'message': json['message'], - 'data': UpdateDestinationConnector200ResponseAllOfDataFromJSON(json['data']), - }; -} - -export function UpdateDestinationConnector200ResponseToJSON(json: any): UpdateDestinationConnector200Response { - return UpdateDestinationConnector200ResponseToJSONTyped(json, false); -} - -export function UpdateDestinationConnector200ResponseToJSONTyped(value?: UpdateDestinationConnector200Response | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'message': value['message'], - 'data': UpdateDestinationConnector200ResponseAllOfDataToJSON(value['data']), - }; -} - diff --git a/src/ts/src/models/UpdateDestinationConnector200ResponseAllOfData.ts b/src/ts/src/models/UpdateDestinationConnector200ResponseAllOfData.ts deleted file mode 100644 index f2ef6bb..0000000 --- a/src/ts/src/models/UpdateDestinationConnector200ResponseAllOfData.ts +++ /dev/null @@ -1,82 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Vectorize API (Beta) - * API for Vectorize services - * - * The version of the OpenAPI document: 0.0.1 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { DestinationConnector } from './DestinationConnector'; -import { - DestinationConnectorFromJSON, - DestinationConnectorFromJSONTyped, - DestinationConnectorToJSON, - DestinationConnectorToJSONTyped, -} from './DestinationConnector'; - -/** - * - * @export - * @interface UpdateDestinationConnector200ResponseAllOfData - */ -export interface UpdateDestinationConnector200ResponseAllOfData { - /** - * - * @type {DestinationConnector} - * @memberof UpdateDestinationConnector200ResponseAllOfData - */ - updatedConnector: DestinationConnector; - /** - * - * @type {Array} - * @memberof UpdateDestinationConnector200ResponseAllOfData - */ - pipelineIds?: Array; -} - -/** - * Check if a given object implements the UpdateDestinationConnector200ResponseAllOfData interface. - */ -export function instanceOfUpdateDestinationConnector200ResponseAllOfData(value: object): value is UpdateDestinationConnector200ResponseAllOfData { - if (!('updatedConnector' in value) || value['updatedConnector'] === undefined) return false; - return true; -} - -export function UpdateDestinationConnector200ResponseAllOfDataFromJSON(json: any): UpdateDestinationConnector200ResponseAllOfData { - return UpdateDestinationConnector200ResponseAllOfDataFromJSONTyped(json, false); -} - -export function UpdateDestinationConnector200ResponseAllOfDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateDestinationConnector200ResponseAllOfData { - if (json == null) { - return json; - } - return { - - 'updatedConnector': DestinationConnectorFromJSON(json['updatedConnector']), - 'pipelineIds': json['pipelineIds'] == null ? undefined : json['pipelineIds'], - }; -} - -export function UpdateDestinationConnector200ResponseAllOfDataToJSON(json: any): UpdateDestinationConnector200ResponseAllOfData { - return UpdateDestinationConnector200ResponseAllOfDataToJSONTyped(json, false); -} - -export function UpdateDestinationConnector200ResponseAllOfDataToJSONTyped(value?: UpdateDestinationConnector200ResponseAllOfData | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'updatedConnector': DestinationConnectorToJSON(value['updatedConnector']), - 'pipelineIds': value['pipelineIds'], - }; -} - diff --git a/src/ts/src/models/UpdateSourceConnectorRequest.ts b/src/ts/src/models/UpdateSourceConnectorRequest.ts index 394bace..4c886be 100644 --- a/src/ts/src/models/UpdateSourceConnectorRequest.ts +++ b/src/ts/src/models/UpdateSourceConnectorRequest.ts @@ -13,14 +13,6 @@ */ import { mapValues } from '../runtime'; -import type { UpdateSourceConnectorRequestData } from './UpdateSourceConnectorRequestData'; -import { - UpdateSourceConnectorRequestDataFromJSON, - UpdateSourceConnectorRequestDataFromJSONTyped, - UpdateSourceConnectorRequestDataToJSON, - UpdateSourceConnectorRequestDataToJSONTyped, -} from './UpdateSourceConnectorRequestData'; - /** * * @export @@ -29,24 +21,17 @@ import { export interface UpdateSourceConnectorRequest { /** * - * @type {string} - * @memberof UpdateSourceConnectorRequest - */ - message: string; - /** - * - * @type {UpdateSourceConnectorRequestData} + * @type {{ [key: string]: any | null; }} * @memberof UpdateSourceConnectorRequest */ - data: UpdateSourceConnectorRequestData; + config: { [key: string]: any | null; }; } /** * Check if a given object implements the UpdateSourceConnectorRequest interface. */ export function instanceOfUpdateSourceConnectorRequest(value: object): value is UpdateSourceConnectorRequest { - if (!('message' in value) || value['message'] === undefined) return false; - if (!('data' in value) || value['data'] === undefined) return false; + if (!('config' in value) || value['config'] === undefined) return false; return true; } @@ -60,8 +45,7 @@ export function UpdateSourceConnectorRequestFromJSONTyped(json: any, ignoreDiscr } return { - 'message': json['message'], - 'data': UpdateSourceConnectorRequestDataFromJSON(json['data']), + 'config': json['config'], }; } @@ -76,8 +60,7 @@ export function UpdateSourceConnectorRequestToJSONTyped(value?: UpdateSourceConn return { - 'message': value['message'], - 'data': UpdateSourceConnectorRequestDataToJSON(value['data']), + 'config': value['config'], }; } diff --git a/src/ts/src/models/UpdateSourceConnectorRequestData.ts b/src/ts/src/models/UpdateSourceConnectorRequestData.ts deleted file mode 100644 index 4a12e4d..0000000 --- a/src/ts/src/models/UpdateSourceConnectorRequestData.ts +++ /dev/null @@ -1,82 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Vectorize API (Beta) - * API for Vectorize services - * - * The version of the OpenAPI document: 0.0.1 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { SourceConnector } from './SourceConnector'; -import { - SourceConnectorFromJSON, - SourceConnectorFromJSONTyped, - SourceConnectorToJSON, - SourceConnectorToJSONTyped, -} from './SourceConnector'; - -/** - * - * @export - * @interface UpdateSourceConnectorRequestData - */ -export interface UpdateSourceConnectorRequestData { - /** - * - * @type {SourceConnector} - * @memberof UpdateSourceConnectorRequestData - */ - updatedConnector: SourceConnector; - /** - * - * @type {Array} - * @memberof UpdateSourceConnectorRequestData - */ - pipelineIds?: Array; -} - -/** - * Check if a given object implements the UpdateSourceConnectorRequestData interface. - */ -export function instanceOfUpdateSourceConnectorRequestData(value: object): value is UpdateSourceConnectorRequestData { - if (!('updatedConnector' in value) || value['updatedConnector'] === undefined) return false; - return true; -} - -export function UpdateSourceConnectorRequestDataFromJSON(json: any): UpdateSourceConnectorRequestData { - return UpdateSourceConnectorRequestDataFromJSONTyped(json, false); -} - -export function UpdateSourceConnectorRequestDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateSourceConnectorRequestData { - if (json == null) { - return json; - } - return { - - 'updatedConnector': SourceConnectorFromJSON(json['updatedConnector']), - 'pipelineIds': json['pipelineIds'] == null ? undefined : json['pipelineIds'], - }; -} - -export function UpdateSourceConnectorRequestDataToJSON(json: any): UpdateSourceConnectorRequestData { - return UpdateSourceConnectorRequestDataToJSONTyped(json, false); -} - -export function UpdateSourceConnectorRequestDataToJSONTyped(value?: UpdateSourceConnectorRequestData | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'updatedConnector': SourceConnectorToJSON(value['updatedConnector']), - 'pipelineIds': value['pipelineIds'], - }; -} - diff --git a/src/ts/src/models/index.ts b/src/ts/src/models/index.ts index ee4d0bc..e4c6265 100644 --- a/src/ts/src/models/index.ts +++ b/src/ts/src/models/index.ts @@ -1,13 +1,23 @@ /* tslint:disable */ /* eslint-disable */ export * from './AIPlatform'; +export * from './AIPlatformConfigSchema'; export * from './AIPlatformSchema'; +export * from './AIPlatformType'; +export * from './AddUserFromSourceConnectorResponse'; +export * from './AddUserToSourceConnectorRequest'; +export * from './CreateAIPlatformConnector'; export * from './CreateAIPlatformConnectorResponse'; +export * from './CreateDestinationConnector'; export * from './CreateDestinationConnectorResponse'; export * from './CreatePipelineResponse'; export * from './CreatePipelineResponseData'; +export * from './CreateSourceConnector'; export * from './CreateSourceConnectorResponse'; -export * from './CreateSourceConnectorResponseConnectorsInner'; +export * from './CreatedAIPlatformConnector'; +export * from './CreatedDestinationConnector'; +export * from './CreatedSourceConnector'; +export * from './DeepResearchResult'; export * from './DeleteAIPlatformConnectorResponse'; export * from './DeleteDestinationConnectorResponse'; export * from './DeleteFileResponse'; @@ -15,35 +25,40 @@ export * from './DeletePipelineResponse'; export * from './DeleteSourceConnectorResponse'; export * from './DestinationConnector'; export * from './DestinationConnectorSchema'; +export * from './DestinationConnectorType'; export * from './Document'; +export * from './ExtractionChunkingStrategy'; +export * from './ExtractionResult'; export * from './ExtractionResultResponse'; -export * from './ExtractionResultResponseData'; +export * from './ExtractionType'; export * from './GetAIPlatformConnectors200Response'; export * from './GetDeepResearchResponse'; -export * from './GetDeepResearchResponseData'; export * from './GetDestinationConnectors200Response'; export * from './GetPipelineEventsResponse'; -export * from './GetPipelineEventsResponseDataInner'; export * from './GetPipelineMetricsResponse'; -export * from './GetPipelineMetricsResponseDataInner'; export * from './GetPipelineResponse'; export * from './GetPipelines400Response'; export * from './GetPipelinesResponse'; export * from './GetSourceConnectors200Response'; export * from './GetUploadFilesResponse'; -export * from './GetUploadFilesResponseFilesInner'; +export * from './N8NConfig'; export * from './PipelineConfigurationSchema'; +export * from './PipelineEvents'; export * from './PipelineListSummary'; +export * from './PipelineMetrics'; export * from './PipelineSummary'; +export * from './RemoveUserFromSourceConnectorRequest'; +export * from './RemoveUserFromSourceConnectorResponse'; +export * from './RetrieveContext'; +export * from './RetrieveContextMessage'; export * from './RetrieveDocumentsRequest'; -export * from './RetrieveDocumentsRequestContext'; -export * from './RetrieveDocumentsRequestContextMessagesInner'; export * from './RetrieveDocumentsResponse'; export * from './ScheduleSchema'; +export * from './ScheduleSchemaType'; export * from './SourceConnector'; export * from './SourceConnectorSchema'; +export * from './SourceConnectorType'; export * from './StartDeepResearchRequest'; -export * from './StartDeepResearchRequestN8n'; export * from './StartDeepResearchResponse'; export * from './StartExtractionRequest'; export * from './StartExtractionResponse'; @@ -54,8 +69,14 @@ export * from './StartFileUploadToConnectorResponse'; export * from './StartPipelineResponse'; export * from './StopPipelineResponse'; export * from './UpdateAIPlatformConnectorRequest'; -export * from './UpdateAIPlatformConnectorRequestData'; -export * from './UpdateDestinationConnector200Response'; -export * from './UpdateDestinationConnector200ResponseAllOfData'; +export * from './UpdateAIPlatformConnectorResponse'; +export * from './UpdateDestinationConnectorRequest'; +export * from './UpdateDestinationConnectorResponse'; export * from './UpdateSourceConnectorRequest'; -export * from './UpdateSourceConnectorRequestData'; +export * from './UpdateSourceConnectorResponse'; +export * from './UpdateSourceConnectorResponseData'; +export * from './UpdateUserInSourceConnectorRequest'; +export * from './UpdateUserInSourceConnectorResponse'; +export * from './UpdatedAIPlatformConnectorData'; +export * from './UpdatedDestinationConnectorData'; +export * from './UploadFile'; diff --git a/tests/python/tests/__pycache__/test_client.cpython-311-pytest-8.3.4.pyc b/tests/python/tests/__pycache__/test_client.cpython-311-pytest-8.3.4.pyc index c933a7a12b55957f50f7f64dc1d847272ddc3a8e..119d855448b46eb0598373fe03b0c776de46c85c 100644 GIT binary patch delta 2019 zcmZ`)ZA@EL7(S=Bx23neZEsuXfU=ggpbRM#27@t}$cCH4xCEHd#5lq&gv&>_%O#HG zRDx$W=m2NtLW;ZY5c_S+ckV6St{u z)1hsg+H|wMw%!jm+U|2L!uetq3oV7?o~@$i1KW}e7d<^MZRJ+gJ0T#~ea0THu~PZ0 z=R8HNm&!d=ztxWt)3z96>&4&&S#c^0#Pn#@a7-?**;K5o{D^D;xFVO+ZN>OoEI!EM zy;}T#@xDjIhhUF4N)yF+)_U--*HvL`6pIzJmT%m&tEF(oTTLH>AHDVTak%Ggpmk91 z>#VVK5BFCitn*kI*M}y-Xd3h(%9Pyks~NPm%mZ=Plz90u?#n)%%{e;YA0-uk zXni&xKx@X2Ek?<7#M0Aoi_hl=Q?cQr<8`)zeR_B*U9cN-N8wQDFm26U4&9)U zeQag@X@va@X7D|X#qTmT>?#mGx9by z;e2FL`j92YW|`>+scJ{dcd2~ui$BZZUu17y-jw?*4t+H{8?-Yw#7V(X=;J4En1 z?jq!lRQ)NA?CJ6Jg@x;3dtasV`c}$tCBDCFpq2cTs2reVl}ZCm!m7Jspk7$57m>FL zLr!6}qjIp+o)1yR^QF>|;LJxW2D_d44iS}Zktu6}opJp_ZaIFO(hIP?CgPaGOPR~{ z*F58r+ZnI3>G)Xc9q@6oHn9_FC&F%oE`)A`9)zb5dUJmyuTggz`6z-NzG(_ZHKf>= zI{s_u_>}6C2vZ2taI5J6{S;bK+mo-N@C3p|RtUknJ4xUfMSypA&Y|v**!yS%Gn?$oxuUR7` zIW$?ch}J251(Sox+Wj^-_}CV)8AUYXESgpGnn2=sp{~*CvM6!Q3Lzzd5NuohM6RS)kd;SYddnzBYUz`y@j

&DwMNl7%}_7dsdVmni-Nw=H?ZQ`)7IRlOK*pfYJd;z2jEwa z4KDF6v-=!U?NS)7@_}ScV~YF(;(6dMAHWfkaTHPxm)T4F9a8jv{>}&Z`(VWp!Lc3x zGaL`iE!Ln?Z5U~2wJoYq#BkRUgUc-(1f2)rmct4I&Llnr)6VYX{^d51No&+Df=t)< z&PbtVuW5>c-mc2KlvA2adX4tC()XWSDPBvFf?{#q*;*W3bxi<5+SRP-if$|QK1{vg zzTh8wSkuVA>&|Ye@?X{RMUU!{ssmQ^s@{dS#Hbik#x;9#qZtqy{qC30f>$Zj(5>*9 zt4@&hWR8%b)>^Zi=AwG^qofO#gMVD{z_eydM!hyhJ9N7<@qIg1TaA>aKVcN3xdz>= z$8|<|($paQ;%0eWK-hMtaRXenYK`FCr~j>%+H;jnv@?e%^euWxC?%)>nR-# zbTW7XUT%0BF9REz;Vu)?3|R}^@Mc;CIaNo)I6~G}b>ILz^*fL|`_XgCjPkY-5RB_A#T4OgT_L z(q=5@FqPZ5(YU$X8ypRrw*o9-w!$o7w&F%2%NI#f6V->GY%FBa_v_D_2$fDGp2PSe zY$O{@ON5h`NOBv)mrMe)QK14cmD(w+^De)MEV-)&J^Xac~&jgi43PuWa z&g8QcCMmo?VTyv2LYRU?fzGBp1JjuyybfPvntUoH4pS&nSfTJ5+{uK%m94{{KvVWn z-_BX@P|bM??^3t`E7^c>jf(G6_<+JC_$d1xzESFGZD8>VobG5fy-xXYxX@APq3znu vhn8J2&W_8|6|*umTbN%| { if (result.ready) { expect(result.data?.success).toBe(true) expect(result.data?.error).toBeFalsy() - expect(result.data?.chunks?.length).toBe(3) + expect(result.data?.chunks?.length).toBeGreaterThan(2) expect(result.data?.text).toBeTruthy() break } else { diff --git a/tests/ts/tests/pipelines.test.ts b/tests/ts/tests/pipelines.test.ts index cef203e..dc45e6b 100644 --- a/tests/ts/tests/pipelines.test.ts +++ b/tests/ts/tests/pipelines.test.ts @@ -1,9 +1,16 @@ import {beforeEach, describe, it, expect} from "vitest"; import {createTestContext, TestContext} from "./testContext"; -import {ConnectorsApi, PipelinesApi, ResponseError} from "@vectorize-io/vectorize-client"; +import { + ConnectorsApi, + type CreateSourceConnector, + PipelinesApi, + ResponseError, + SourceConnectorType +} from "@vectorize-io/vectorize-client"; import {pipeline} from "stream"; import * as os from "node:os"; import exp from "node:constants"; +import {AIPlatformType, DestinationConnectorType} from "@vectorize-io/vectorize-client/src"; export let testContext: TestContext; @@ -30,11 +37,20 @@ async function findAIPlatformVectorizeConnector(connectorsApi: ConnectorsApi) { async function createWebCrawlerSource(connectorsApi: ConnectorsApi) { let sourceResponse = await connectorsApi.createSourceConnector({ organization: testContext.orgId, - requestBody: [ - {type: "WEB_CRAWLER", name: "from api", "seed-urls": ["https://docs.vectorize.io"]} + createSourceConnector: [ + {type: SourceConnectorType.WebCrawler, name: "from api", config: {"seed-urls": ["https://docs.vectorize.io"]}} ] }); const sourceConnectorId = sourceResponse.connectors[0].id; + connectorsApi.createAIPlatformConnector() + await connectorsApi.updateSourceConnector({ + organization: testContext.orgId, + sourceConnectorId, + updateSourceConnectorRequest: { + config: {"seed-urls": ["https://docs.vectorize.io", "https://vectorize.io"]} + } + } + ); return sourceConnectorId; } @@ -43,15 +59,15 @@ async function deployPipeline(pipelinesApi: PipelinesApi, sourceConnectorId: str organization: testContext.orgId, pipelineConfigurationSchema: { pipelineName: "from api", - sourceConnectors: [{id: sourceConnectorId, type: "WEB_CRAWLER", config: {}}], + sourceConnectors: [{id: sourceConnectorId, type: SourceConnectorType.WebCrawler, config: {}}], destinationConnector: { id: destinationConnectorId, - type: "VECTORIZE", + type: DestinationConnectorType.Vectorize, config: {} }, aiPlatform: { id: aiPlatformId, - type: "VECTORIZE", + type: AIPlatformType.Vectorize, config: {} }, schedule: {type: "manual"} diff --git a/tests/ts/tests/uploads.test.ts b/tests/ts/tests/uploads.test.ts index dc51522..0c46e65 100644 --- a/tests/ts/tests/uploads.test.ts +++ b/tests/ts/tests/uploads.test.ts @@ -1,6 +1,12 @@ import {beforeEach, describe, it, expect} from "vitest"; import {createTestContext, TestContext} from "./testContext"; -import {ConnectorsApi, PipelinesApi, ResponseError, UploadsApi} from "@vectorize-io/vectorize-client"; +import { + ConnectorsApi, + PipelinesApi, + ResponseError, + SourceConnectorType, + UploadsApi +} from "@vectorize-io/vectorize-client"; import {pipeline} from "stream"; import * as os from "node:os"; import fs from "node:fs"; @@ -14,9 +20,11 @@ beforeEach(() => { async function createFileUploadSource(connectorsApi: ConnectorsApi) { let sourceResponse = await connectorsApi.createSourceConnector({ organization: testContext.orgId, - requestBody: [ - {type: "FILE_UPLOAD", name: "from api"} - ] + createSourceConnector: [{ + type: SourceConnectorType.FileUpload, + name: "from api", + config: {} + }] }); const sourceConnectorId = sourceResponse.connectors[0].id; return sourceConnectorId; diff --git a/vectorize_api.json b/vectorize_api.json index 586b41e..f7080bd 100644 --- a/vectorize_api.json +++ b/vectorize_api.json @@ -1 +1 @@ -{"openapi":"3.0.0","info":{"title":"Vectorize API (Beta)","version":"0.0.1","description":"API for Vectorize services","contact":{"name":"Vectorize","url":"https://vectorize.io"}},"servers":[{"url":"https://api.vectorize.io/v1","description":"Vectorize API"}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"CreatePipelineResponse":{"type":"object","properties":{"message":{"type":"string"},"data":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}},"required":["message","data"]},"SourceConnectorSchema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"type":{"type":"string","enum":["AWS_S3","AZURE_BLOB","CONFLUENCE","DISCORD","DROPBOX","FIRECRAWL","GCS","GOOGLE_DRIVE","INTERCOM","ONE_DRIVE","SHAREPOINT","WEB_CRAWLER","FILE_UPLOAD","SALESFORCE","ZENDESK"]},"config":{"type":"object","properties":{}}},"required":["id","type","config"],"additionalProperties":false},"DestinationConnectorSchema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"type":{"type":"string"},"config":{"type":"object","properties":{}}},"required":["id","type","config"],"additionalProperties":false},"AIPlatformSchema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"type":{"type":"string"},"config":{"type":"object","properties":{}}},"required":["id","type","config"],"additionalProperties":false},"ScheduleSchema":{"type":"object","properties":{"type":{"type":"string","enum":["manual","realtime","custom"]}},"required":["type"]},"PipelineConfigurationSchema":{"type":"object","properties":{"sourceConnectors":{"type":"array","items":{"$ref":"#/components/schemas/SourceConnectorSchema"},"minItems":1},"destinationConnector":{"$ref":"#/components/schemas/DestinationConnectorSchema"},"aiPlatform":{"$ref":"#/components/schemas/AIPlatformSchema"},"pipelineName":{"type":"string","minLength":1},"schedule":{"$ref":"#/components/schemas/ScheduleSchema"}},"required":["sourceConnectors","destinationConnector","aiPlatform","pipelineName","schedule"],"additionalProperties":false},"PipelineListSummary":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"documentCount":{"type":"number"},"sourceConnectorAuthIds":{"type":"array","items":{"type":"string"}},"destinationConnectorAuthIds":{"type":"array","items":{"type":"string"}},"aiPlatformAuthIds":{"type":"array","items":{"type":"string"}},"sourceConnectorTypes":{"type":"array","items":{"type":"string"}},"destinationConnectorTypes":{"type":"array","items":{"type":"string"}},"aiPlatformTypes":{"type":"array","items":{"type":"string"}},"createdAt":{"type":"string","nullable":true},"createdBy":{"type":"string"},"status":{"type":"string"},"configDoc":{"type":"object","additionalProperties":{"nullable":true}}},"required":["id","name","documentCount","sourceConnectorAuthIds","destinationConnectorAuthIds","aiPlatformAuthIds","sourceConnectorTypes","destinationConnectorTypes","aiPlatformTypes","createdAt","createdBy"]},"GetPipelinesResponse":{"type":"object","properties":{"message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/PipelineListSummary"}}},"required":["message","data"]},"SourceConnector":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string"},"name":{"type":"string"},"configDoc":{"type":"object","additionalProperties":{"nullable":true}},"createdAt":{"type":"string","nullable":true},"createdById":{"type":"string"},"lastUpdatedById":{"type":"string"},"createdByEmail":{"type":"string"},"lastUpdatedByEmail":{"type":"string"},"errorMessage":{"type":"string"},"verificationStatus":{"type":"string"}},"required":["id","type","name"]},"DestinationConnector":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string"},"name":{"type":"string"},"configDoc":{"type":"object","additionalProperties":{"nullable":true}},"createdAt":{"type":"string","nullable":true},"createdById":{"type":"string"},"lastUpdatedById":{"type":"string"},"createdByEmail":{"type":"string"},"lastUpdatedByEmail":{"type":"string"},"errorMessage":{"type":"string"},"verificationStatus":{"type":"string"}},"required":["id","type","name"]},"AIPlatform":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string"},"name":{"type":"string"},"configDoc":{"type":"object","additionalProperties":{"nullable":true}},"createdAt":{"type":"string","nullable":true},"createdById":{"type":"string"},"lastUpdatedById":{"type":"string"},"createdByEmail":{"type":"string"},"lastUpdatedByEmail":{"type":"string"},"errorMessage":{"type":"string"},"verificationStatus":{"type":"string"}},"required":["id","type","name"]},"PipelineSummary":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"documentCount":{"type":"number"},"sourceConnectorAuthIds":{"type":"array","items":{"type":"string"}},"destinationConnectorAuthIds":{"type":"array","items":{"type":"string"}},"aiPlatformAuthIds":{"type":"array","items":{"type":"string"}},"sourceConnectorTypes":{"type":"array","items":{"type":"string"}},"destinationConnectorTypes":{"type":"array","items":{"type":"string"}},"aiPlatformTypes":{"type":"array","items":{"type":"string"}},"createdAt":{"type":"string","nullable":true},"createdBy":{"type":"string"},"status":{"type":"string"},"configDoc":{"type":"object","additionalProperties":{"nullable":true}},"sourceConnectors":{"type":"array","items":{"$ref":"#/components/schemas/SourceConnector"}},"destinationConnectors":{"type":"array","items":{"$ref":"#/components/schemas/DestinationConnector"}},"aiPlatforms":{"type":"array","items":{"$ref":"#/components/schemas/AIPlatform"}}},"required":["id","name","documentCount","sourceConnectorAuthIds","destinationConnectorAuthIds","aiPlatformAuthIds","sourceConnectorTypes","destinationConnectorTypes","aiPlatformTypes","createdAt","createdBy","sourceConnectors","destinationConnectors","aiPlatforms"]},"GetPipelineResponse":{"type":"object","properties":{"message":{"type":"string"},"data":{"$ref":"#/components/schemas/PipelineSummary"}},"required":["message","data"]},"DeletePipelineResponse":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]},"GetPipelineEventsResponse":{"type":"object","properties":{"message":{"type":"string"},"nextToken":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string"},"timestamp":{"type":"string","nullable":true},"details":{"type":"object","additionalProperties":{"nullable":true}},"summary":{"type":"object","additionalProperties":{"nullable":true}}},"required":["id","type","timestamp"]}}},"required":["message","data"]},"GetPipelineMetricsResponse":{"type":"object","properties":{"message":{"type":"string"},"data":{"type":"array","items":{"type":"object","properties":{"timestamp":{"type":"string","nullable":true},"newObjects":{"type":"number"},"changedObjects":{"type":"number"},"deletedObjects":{"type":"number"}},"required":["timestamp","newObjects","changedObjects","deletedObjects"]}}},"required":["message","data"]},"Document":{"type":"object","properties":{"relevancy":{"type":"number"},"id":{"type":"string"},"text":{"type":"string"},"chunk_id":{"type":"string"},"total_chunks":{"type":"string"},"origin":{"type":"string"},"origin_id":{"type":"string"},"similarity":{"type":"number"},"source":{"type":"string"},"unique_source":{"type":"string"},"source_display_name":{"type":"string"},"pipeline_id":{"type":"string"},"org_id":{"type":"string"}},"required":["relevancy","id","text","chunk_id","total_chunks","origin","origin_id","similarity","source","unique_source","source_display_name"],"additionalProperties":true},"RetrieveDocumentsResponse":{"type":"object","properties":{"question":{"type":"string"},"documents":{"type":"array","items":{"$ref":"#/components/schemas/Document"}},"average_relevancy":{"type":"number"},"ndcg":{"type":"number"}},"required":["question","documents","average_relevancy","ndcg"]},"RetrieveDocumentsRequest":{"type":"object","properties":{"question":{"type":"string"},"numResults":{"type":"number","minimum":1},"rerank":{"type":"boolean","default":true},"metadata-filters":{"type":"array","items":{"type":"object","additionalProperties":{"nullable":true}}},"context":{"type":"object","properties":{"messages":{"type":"array","items":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":"string"}},"required":["role","content"]}}},"required":["messages"]}},"required":["question","numResults"]},"StartPipelineResponse":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]},"StopPipelineResponse":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]},"StartDeepResearchResponse":{"type":"object","properties":{"researchId":{"type":"string"}},"required":["researchId"]},"StartDeepResearchRequest":{"type":"object","properties":{"query":{"type":"string"},"webSearch":{"type":"boolean","default":false},"schema":{"type":"string"},"n8n":{"type":"object","properties":{"account":{"type":"string"},"webhookPath":{"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}}},"required":["account","webhookPath"]}},"required":["query"]},"GetDeepResearchResponse":{"type":"object","properties":{"ready":{"type":"boolean"},"data":{"type":"object","properties":{"success":{"type":"boolean"},"events":{"type":"array","items":{"type":"string"}},"markdown":{"type":"string"},"error":{"type":"string"}},"required":["success"]}},"required":["ready"]},"CreateSourceConnectorResponse":{"type":"object","properties":{"message":{"type":"string"},"connectors":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"string"}},"required":["name","id"]}}},"required":["message","connectors"]},"CreateSourceConnector":{"type":"array","items":{"type":"object","properties":{}},"minItems":1},"UpdateSourceConnectorRequest":{"type":"object","properties":{"message":{"type":"string"},"data":{"type":"object","properties":{"updatedConnector":{"$ref":"#/components/schemas/SourceConnector"},"pipelineIds":{"type":"array","items":{"type":"string"}}},"required":["updatedConnector"]}},"required":["message","data"]},"DeleteSourceConnectorResponse":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]},"CreateDestinationConnectorResponse":{"type":"object","properties":{"message":{"type":"string"},"connectors":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"string"}},"required":["name","id"]}}},"required":["message","connectors"]},"DeleteDestinationConnectorResponse":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]},"CreateAIPlatformConnectorResponse":{"type":"object","properties":{"message":{"type":"string"},"connectors":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"string"}},"required":["name","id"]}}},"required":["message","connectors"]},"UpdateAIPlatformConnectorRequest":{"type":"object","properties":{"message":{"type":"string"},"data":{"type":"object","properties":{"updatedConnector":{"$ref":"#/components/schemas/AIPlatform"},"pipelineIds":{"type":"array","items":{"type":"string"}}},"required":["updatedConnector"]}},"required":["message","data"]},"DeleteAIPlatformConnectorResponse":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]},"GetUploadFilesResponse":{"type":"object","properties":{"message":{"type":"string"},"files":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"name":{"type":"string"},"size":{"type":"number"},"extension":{"type":"string"},"lastModified":{"type":"string","nullable":true},"metadata":{"type":"object","additionalProperties":{"type":"string"}}},"required":["key","name","size","lastModified","metadata"]}}},"required":["message","files"]},"StartFileUploadToConnectorResponse":{"type":"object","properties":{"uploadUrl":{"type":"string"}},"required":["uploadUrl"]},"StartFileUploadToConnectorRequest":{"type":"object","properties":{"name":{"type":"string"},"contentType":{"type":"string"},"metadata":{"type":"string"}},"required":["name","contentType"]},"DeleteFileResponse":{"type":"object","properties":{"message":{"type":"string"},"fileName":{"type":"string"}},"required":["message","fileName"]},"StartExtractionResponse":{"type":"object","properties":{"message":{"type":"string"},"extractionId":{"type":"string"}},"required":["message","extractionId"]},"StartExtractionRequest":{"type":"object","properties":{"fileId":{"type":"string"},"type":{"type":"string","enum":["iris"],"default":"iris"},"chunkingStrategy":{"type":"string","enum":["markdown"],"default":"markdown"},"chunkSize":{"type":"number","default":256}},"required":["fileId"]},"ExtractionResultResponse":{"type":"object","properties":{"ready":{"type":"boolean"},"data":{"type":"object","properties":{"success":{"type":"boolean"},"chunks":{"type":"array","items":{"type":"string"}},"text":{"type":"string"},"error":{"type":"string"}},"required":["success"]}},"required":["ready"]},"StartFileUploadResponse":{"type":"object","properties":{"fileId":{"type":"string"},"uploadUrl":{"type":"string"}},"required":["fileId","uploadUrl"]},"StartFileUploadRequest":{"type":"object","properties":{"name":{"type":"string"},"contentType":{"type":"string"}},"required":["name","contentType"]}},"parameters":{}},"paths":{"/org/{organization}/pipelines":{"post":{"operationId":"createPipeline","summary":"Create a new pipeline","tags":["Pipelines"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PipelineConfigurationSchema"}}}},"responses":{"200":{"description":"Pipeline created successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePipelineResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}},"get":{"operationId":"getPipelines","summary":"Get all existing pipelines","tags":["Pipelines"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"}],"responses":{"200":{"description":"Get all pipelines","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetPipelinesResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/pipelines/{pipeline}":{"get":{"operationId":"getPipeline","summary":"Get a pipeline","tags":["Pipelines"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"pipeline","in":"path"}],"responses":{"200":{"description":"Pipeline fetched successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetPipelineResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}},"delete":{"operationId":"deletePipeline","summary":"Delete a pipeline","tags":["Pipelines"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"pipeline","in":"path"}],"responses":{"200":{"description":"Pipeline deleted successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeletePipelineResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/pipelines/{pipeline}/events":{"get":{"operationId":"getPipelineEvents","summary":"Get pipeline events","tags":["Pipelines"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"pipeline","in":"path"},{"schema":{"type":"string"},"required":false,"name":"nextToken","in":"query"}],"responses":{"200":{"description":"Pipeline events fetched successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetPipelineEventsResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/pipelines/{pipeline}/metrics":{"get":{"operationId":"getPipelineMetrics","summary":"Get pipeline metrics","tags":["Pipelines"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"pipeline","in":"path"}],"responses":{"200":{"description":"Pipeline metrics fetched successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetPipelineMetricsResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/pipelines/{pipeline}/retrieval":{"post":{"operationId":"retrieveDocuments","summary":"Retrieve documents from a pipeline","tags":["Pipelines"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"pipeline","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetrieveDocumentsRequest"}}}},"responses":{"200":{"description":"Documents retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetrieveDocumentsResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/pipelines/{pipeline}/start":{"post":{"operationId":"startPipeline","summary":"Start a pipeline","tags":["Pipelines"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"pipeline","in":"path"}],"responses":{"200":{"description":"Pipeline started successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartPipelineResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/pipelines/{pipeline}/stop":{"post":{"operationId":"stopPipeline","summary":"Stop a pipeline","tags":["Pipelines"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"pipeline","in":"path"}],"responses":{"200":{"description":"Pipeline stopped successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StopPipelineResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/pipelines/{pipeline}/deep-research":{"post":{"operationId":"startDeepResearch","summary":"Start a deep research","tags":["Pipelines"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"pipeline","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartDeepResearchRequest"}}}},"responses":{"200":{"description":"Deep Research started successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartDeepResearchResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/pipelines/{pipeline}/deep-research/{researchId}":{"get":{"operationId":"getDeepResearchResult","summary":"Get deep research result","tags":["Pipelines"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"pipeline","in":"path"},{"schema":{"type":"string"},"required":true,"name":"researchId","in":"path"}],"responses":{"200":{"description":"Get Deep Research was successful","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetDeepResearchResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/connectors/sources":{"post":{"operationId":"createSourceConnector","summary":"Create a new source connector","tags":["Connectors"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSourceConnector"}}}},"responses":{"200":{"description":"Connector successfully created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSourceConnectorResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}},"get":{"operationId":"getSourceConnectors","summary":"Get all existing source connectors","tags":["Connectors"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"}],"responses":{"200":{"description":"Get all source connectors","content":{"application/json":{"schema":{"type":"object","properties":{"sourceConnectors":{"type":"array","items":{"$ref":"#/components/schemas/SourceConnector"}}},"required":["sourceConnectors"]}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/connectors/sources/{sourceConnectorId}":{"get":{"operationId":"getSourceConnector","summary":"Get a source connector","tags":["Connectors"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"sourceConnectorId","in":"path"}],"responses":{"200":{"description":"Get a source connector","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourceConnector"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}},"patch":{"operationId":"updateSourceConnector","summary":"Update a source connector","tags":["Connectors"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"sourceConnectorId","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/UpdateSourceConnectorRequest"},{"additionalProperties":{"nullable":true}}]}}}},"responses":{"200":{"description":"Source connector successfully updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSourceConnectorRequest"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}},"delete":{"operationId":"deleteSourceConnector","summary":"Delete a source connector","tags":["Connectors"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"sourceConnectorId","in":"path"}],"responses":{"200":{"description":"Source connector successfully deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteSourceConnectorResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/connectors/destinations":{"post":{"operationId":"createDestinationConnector","summary":"Create a new destination connector","tags":["Connectors"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{}},"minItems":1}}}},"responses":{"200":{"description":"Connector successfully created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDestinationConnectorResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}},"get":{"operationId":"getDestinationConnectors","summary":"Get all existing destination connectors","tags":["Connectors"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"}],"responses":{"200":{"description":"Get all destination connectors","content":{"application/json":{"schema":{"type":"object","properties":{"destinationConnectors":{"type":"array","items":{"$ref":"#/components/schemas/DestinationConnector"}}},"required":["destinationConnectors"]}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/connectors/destinations/{destinationConnectorId}":{"get":{"operationId":"getDestinationConnector","summary":"Get a destination connector","tags":["Connectors"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"destinationConnectorId","in":"path"}],"responses":{"200":{"description":"Get a destination connector","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DestinationConnector"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}},"patch":{"operationId":"updateDestinationConnector","summary":"Update a destination connector","tags":["Connectors"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"destinationConnectorId","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/UpdateSourceConnectorRequest"},{"additionalProperties":{"nullable":true}}]}}}},"responses":{"200":{"description":"Destination connector successfully updated","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/UpdateSourceConnectorRequest"},{"properties":{"message":{"type":"string"},"data":{"type":"object","properties":{"updatedConnector":{"$ref":"#/components/schemas/DestinationConnector"},"pipelineIds":{"type":"array","items":{"type":"string"}}},"required":["updatedConnector"]}}}]}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}},"delete":{"operationId":"deleteDestinationConnector","summary":"Delete a destination connector","tags":["Connectors"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"destinationConnectorId","in":"path"}],"responses":{"200":{"description":"Destination connector successfully deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteDestinationConnectorResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/connectors/aiplatforms":{"post":{"operationId":"createAIPlatformConnector","summary":"Create a new AI Platform connector","tags":["Connectors"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{}},"minItems":1}}}},"responses":{"200":{"description":"Connector successfully created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAIPlatformConnectorResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}},"get":{"operationId":"getAIPlatformConnectors","summary":"Get all existing AI Platform connectors","tags":["Connectors"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"}],"responses":{"200":{"description":"Get all existing AI Platform connectors","content":{"application/json":{"schema":{"type":"object","properties":{"aiPlatformConnectors":{"type":"array","items":{"$ref":"#/components/schemas/AIPlatform"}}},"required":["aiPlatformConnectors"]}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/connectors/aiplatforms/{aiplatformId}":{"get":{"operationId":"getAIPlatformConnector","summary":"Get an AI platform connector","tags":["Connectors"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"aiplatformId","in":"path"}],"responses":{"200":{"description":"Get an AI platform connector","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AIPlatform"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}},"patch":{"operationId":"updateAIPlatformConnector","summary":"Update an AI Platform connector","tags":["Connectors"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"aiplatformId","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/UpdateAIPlatformConnectorRequest"},{"additionalProperties":{"nullable":true}}]}}}},"responses":{"200":{"description":"AI Platform connector successfully updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAIPlatformConnectorRequest"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}},"delete":{"operationId":"deleteAIPlatform","summary":"Delete an AI platform connector","tags":["Connectors"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"aiplatformId","in":"path"}],"responses":{"200":{"description":"AI Platform connector successfully deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteAIPlatformConnectorResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/uploads/{connectorId}/files":{"get":{"operationId":"getUploadFilesFromConnector","summary":"Get uploaded files from a file upload connector","tags":["Uploads"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"connectorId","in":"path"}],"responses":{"200":{"description":"Files retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetUploadFilesResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}},"put":{"operationId":"startFileUploadToConnector","summary":"Upload a file to a file upload connector","tags":["Uploads"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"connectorId","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartFileUploadToConnectorRequest"}}}},"responses":{"200":{"description":"File ready to be uploaded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartFileUploadToConnectorResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}},"delete":{"operationId":"deleteFileFromConnector","summary":"Delete a file from a file upload connector","tags":["Uploads"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"connectorId","in":"path"}],"responses":{"200":{"description":"File deleted successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteFileResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/extraction":{"post":{"operationId":"startExtraction","summary":"Start content extraction from a file","tags":["Extraction"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartExtractionRequest"}}}},"responses":{"200":{"description":"Extraction started successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartExtractionResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/extraction/{extractionId}":{"get":{"operationId":"getExtractionResult","summary":"Get extraction result","tags":["Extraction"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"extractionId","in":"path"}],"responses":{"200":{"description":"Extraction started successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExtractionResultResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/files":{"post":{"operationId":"startFileUpload","summary":"Upload a generic file to the platform","tags":["Files"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartFileUploadRequest"}}}},"responses":{"200":{"description":"File upload started successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartFileUploadResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}}}} \ No newline at end of file +{"openapi":"3.0.0","info":{"title":"Vectorize API (Beta)","version":"0.0.1","description":"API for Vectorize services","contact":{"name":"Vectorize","url":"https://vectorize.io"}},"servers":[{"url":"https://api.vectorize.io/v1","description":"Vectorize API"}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"CreatePipelineResponse":{"type":"object","properties":{"message":{"type":"string"},"data":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}},"required":["message","data"]},"SourceConnectorType":{"type":"string","enum":["AWS_S3","AZURE_BLOB","CONFLUENCE","DISCORD","DROPBOX","GOOGLE_DRIVE_OAUTH","GOOGLE_DRIVE_OAUTH_MULTI","GOOGLE_DRIVE_OAUTH_MULTI_CUSTOM","FIRECRAWL","GCS","GOOGLE_DRIVE","INTERCOM","ONE_DRIVE","SHAREPOINT","WEB_CRAWLER","FILE_UPLOAD","SALESFORCE","ZENDESK"]},"SourceConnectorSchema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"type":{"$ref":"#/components/schemas/SourceConnectorType"},"config":{"type":"object","additionalProperties":{"nullable":true}}},"required":["id","type"],"additionalProperties":false},"DestinationConnectorType":{"type":"string","enum":["CAPELLA","DATASTAX","ELASTIC","PINECONE","SINGLESTORE","MILVUS","POSTGRESQL","QDRANT","WEAVIATE","AZUREAISEARCH","VECTORIZE","CHROMA","MONGODB"]},"DestinationConnectorSchema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"type":{"$ref":"#/components/schemas/DestinationConnectorType"},"config":{"type":"object","additionalProperties":{"nullable":true}}},"required":["id","type"],"additionalProperties":false},"AIPlatformType":{"type":"string","enum":["BEDROCK","VERTEX","OPENAI","VOYAGE","VECTORIZE"]},"AIPlatformConfigSchema":{"type":"object","properties":{"embeddingModel":{"type":"string","enum":["VECTORIZE_OPEN_AI_TEXT_EMBEDDING_2","VECTORIZE_OPEN_AI_TEXT_EMBEDDING_3_LARGE","VECTORIZE_OPEN_AI_TEXT_EMBEDDING_3_SMALL","VECTORIZE_VOYAGE_AI_2","VECTORIZE_VOYAGE_AI_3","VECTORIZE_VOYAGE_AI_3_LITE","VECTORIZE_VOYAGE_AI_3_LARGE","VECTORIZE_VOYAGE_AI_FINANCE_2","VECTORIZE_VOYAGE_AI_MULTILINGUAL_2","VECTORIZE_VOYAGE_AI_LAW_2","VECTORIZE_VOYAGE_AI_CODE_2","VECTORIZE_TITAN_TEXT_EMBEDDING_2","VECTORIZE_TITAN_TEXT_EMBEDDING_1","OPEN_AI_TEXT_EMBEDDING_2","OPEN_AI_TEXT_EMBEDDING_3_SMALL","OPEN_AI_TEXT_EMBEDDING_3_LARGE","VOYAGE_AI_2","VOYAGE_AI_3","VOYAGE_AI_3_LITE","VOYAGE_AI_3_LARGE","VOYAGE_AI_FINANCE_2","VOYAGE_AI_MULTILINGUAL_2","VOYAGE_AI_LAW_2","VOYAGE_AI_CODE_2","TITAN_TEXT_EMBEDDING_1","TITAN_TEXT_EMBEDDING_2","VERTEX_TEXT_EMBEDDING_4","VERTEX_TEXT_EMBEDDING_GECKO_3","VERTEX_GECKO_MULTILINGUAL_1","VERTEX_MULTILINGUAL_EMBEDDING_2"]},"chunkingStrategy":{"type":"string","enum":["FIXED","SENTENCE","PARAGRAPH","MARKDOWN"]},"chunkSize":{"type":"integer","minimum":1},"chunkOverlap":{"type":"integer","minimum":0},"dimensions":{"type":"integer","minimum":1},"extractionStrategy":{"type":"string","enum":["FAST","IRIS","MIXED"]}},"additionalProperties":false},"AIPlatformSchema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"type":{"$ref":"#/components/schemas/AIPlatformType"},"config":{"$ref":"#/components/schemas/AIPlatformConfigSchema"}},"required":["id","type","config"],"additionalProperties":false},"ScheduleSchemaType":{"type":"string","enum":["manual","realtime","custom"]},"ScheduleSchema":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/ScheduleSchemaType"}},"required":["type"]},"PipelineConfigurationSchema":{"type":"object","properties":{"sourceConnectors":{"type":"array","items":{"$ref":"#/components/schemas/SourceConnectorSchema"},"minItems":1},"destinationConnector":{"$ref":"#/components/schemas/DestinationConnectorSchema"},"aiPlatform":{"$ref":"#/components/schemas/AIPlatformSchema"},"pipelineName":{"type":"string","minLength":1},"schedule":{"$ref":"#/components/schemas/ScheduleSchema"}},"required":["sourceConnectors","destinationConnector","aiPlatform","pipelineName","schedule"],"additionalProperties":false},"PipelineListSummary":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"documentCount":{"type":"number"},"sourceConnectorAuthIds":{"type":"array","items":{"type":"string"}},"destinationConnectorAuthIds":{"type":"array","items":{"type":"string"}},"aiPlatformAuthIds":{"type":"array","items":{"type":"string"}},"sourceConnectorTypes":{"type":"array","items":{"type":"string"}},"destinationConnectorTypes":{"type":"array","items":{"type":"string"}},"aiPlatformTypes":{"type":"array","items":{"type":"string"}},"createdAt":{"type":"string","nullable":true},"createdBy":{"type":"string"},"status":{"type":"string"},"configDoc":{"type":"object","additionalProperties":{"nullable":true}}},"required":["id","name","documentCount","sourceConnectorAuthIds","destinationConnectorAuthIds","aiPlatformAuthIds","sourceConnectorTypes","destinationConnectorTypes","aiPlatformTypes","createdAt","createdBy"]},"GetPipelinesResponse":{"type":"object","properties":{"message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/PipelineListSummary"}}},"required":["message","data"]},"SourceConnector":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string"},"name":{"type":"string"},"configDoc":{"type":"object","additionalProperties":{"nullable":true}},"createdAt":{"type":"string","nullable":true},"createdById":{"type":"string"},"lastUpdatedById":{"type":"string"},"createdByEmail":{"type":"string"},"lastUpdatedByEmail":{"type":"string"},"errorMessage":{"type":"string"},"verificationStatus":{"type":"string"}},"required":["id","type","name"]},"DestinationConnector":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string"},"name":{"type":"string"},"configDoc":{"type":"object","additionalProperties":{"nullable":true}},"createdAt":{"type":"string","nullable":true},"createdById":{"type":"string"},"lastUpdatedById":{"type":"string"},"createdByEmail":{"type":"string"},"lastUpdatedByEmail":{"type":"string"},"errorMessage":{"type":"string"},"verificationStatus":{"type":"string"}},"required":["id","type","name"]},"AIPlatform":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string"},"name":{"type":"string"},"configDoc":{"type":"object","additionalProperties":{"nullable":true}},"createdAt":{"type":"string","nullable":true},"createdById":{"type":"string"},"lastUpdatedById":{"type":"string"},"createdByEmail":{"type":"string"},"lastUpdatedByEmail":{"type":"string"},"errorMessage":{"type":"string"},"verificationStatus":{"type":"string"}},"required":["id","type","name"]},"PipelineSummary":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"documentCount":{"type":"number"},"sourceConnectorAuthIds":{"type":"array","items":{"type":"string"}},"destinationConnectorAuthIds":{"type":"array","items":{"type":"string"}},"aiPlatformAuthIds":{"type":"array","items":{"type":"string"}},"sourceConnectorTypes":{"type":"array","items":{"type":"string"}},"destinationConnectorTypes":{"type":"array","items":{"type":"string"}},"aiPlatformTypes":{"type":"array","items":{"type":"string"}},"createdAt":{"type":"string","nullable":true},"createdBy":{"type":"string"},"status":{"type":"string"},"configDoc":{"type":"object","additionalProperties":{"nullable":true}},"sourceConnectors":{"type":"array","items":{"$ref":"#/components/schemas/SourceConnector"}},"destinationConnectors":{"type":"array","items":{"$ref":"#/components/schemas/DestinationConnector"}},"aiPlatforms":{"type":"array","items":{"$ref":"#/components/schemas/AIPlatform"}}},"required":["id","name","documentCount","sourceConnectorAuthIds","destinationConnectorAuthIds","aiPlatformAuthIds","sourceConnectorTypes","destinationConnectorTypes","aiPlatformTypes","createdAt","createdBy","sourceConnectors","destinationConnectors","aiPlatforms"]},"GetPipelineResponse":{"type":"object","properties":{"message":{"type":"string"},"data":{"$ref":"#/components/schemas/PipelineSummary"}},"required":["message","data"]},"DeletePipelineResponse":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]},"PipelineEvents":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string"},"timestamp":{"type":"string","nullable":true},"details":{"type":"object","additionalProperties":{"nullable":true}},"summary":{"type":"object","additionalProperties":{"nullable":true}}},"required":["id","type","timestamp"]},"GetPipelineEventsResponse":{"type":"object","properties":{"message":{"type":"string"},"nextToken":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/PipelineEvents"}}},"required":["message","data"]},"PipelineMetrics":{"type":"object","properties":{"timestamp":{"type":"string","nullable":true},"newObjects":{"type":"number"},"changedObjects":{"type":"number"},"deletedObjects":{"type":"number"}},"required":["timestamp","newObjects","changedObjects","deletedObjects"]},"GetPipelineMetricsResponse":{"type":"object","properties":{"message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/PipelineMetrics"}}},"required":["message","data"]},"Document":{"type":"object","properties":{"relevancy":{"type":"number"},"id":{"type":"string"},"text":{"type":"string"},"chunk_id":{"type":"string"},"total_chunks":{"type":"string"},"origin":{"type":"string"},"origin_id":{"type":"string"},"similarity":{"type":"number"},"source":{"type":"string"},"unique_source":{"type":"string"},"source_display_name":{"type":"string"},"pipeline_id":{"type":"string"},"org_id":{"type":"string"}},"required":["relevancy","id","text","chunk_id","total_chunks","origin","origin_id","similarity","source","unique_source","source_display_name"],"additionalProperties":true},"RetrieveDocumentsResponse":{"type":"object","properties":{"question":{"type":"string"},"documents":{"type":"array","items":{"$ref":"#/components/schemas/Document"}},"average_relevancy":{"type":"number"},"ndcg":{"type":"number"}},"required":["question","documents","average_relevancy","ndcg"]},"RetrieveContextMessage":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":"string"}},"required":["role","content"]},"RetrieveContext":{"type":"object","properties":{"messages":{"type":"array","items":{"$ref":"#/components/schemas/RetrieveContextMessage"}}},"required":["messages"]},"RetrieveDocumentsRequest":{"type":"object","properties":{"question":{"type":"string"},"numResults":{"type":"number","minimum":1},"rerank":{"type":"boolean","default":true},"metadata-filters":{"type":"array","items":{"type":"object","additionalProperties":{"nullable":true}}},"context":{"$ref":"#/components/schemas/RetrieveContext"}},"required":["question","numResults"]},"StartPipelineResponse":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]},"StopPipelineResponse":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]},"StartDeepResearchResponse":{"type":"object","properties":{"researchId":{"type":"string"}},"required":["researchId"]},"N8NConfig":{"type":"object","properties":{"account":{"type":"string"},"webhookPath":{"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}}},"required":["account","webhookPath"]},"StartDeepResearchRequest":{"type":"object","properties":{"query":{"type":"string"},"webSearch":{"type":"boolean","default":false},"schema":{"type":"string"},"n8n":{"$ref":"#/components/schemas/N8NConfig"}},"required":["query"]},"DeepResearchResult":{"type":"object","properties":{"success":{"type":"boolean"},"events":{"type":"array","items":{"type":"string"}},"markdown":{"type":"string"},"error":{"type":"string"}},"required":["success"]},"GetDeepResearchResponse":{"type":"object","properties":{"ready":{"type":"boolean"},"data":{"$ref":"#/components/schemas/DeepResearchResult"}},"required":["ready"]},"CreatedSourceConnector":{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"string"}},"required":["name","id"]},"CreateSourceConnectorResponse":{"type":"object","properties":{"message":{"type":"string"},"connectors":{"type":"array","items":{"$ref":"#/components/schemas/CreatedSourceConnector"}}},"required":["message","connectors"]},"CreateSourceConnector":{"type":"object","properties":{"name":{"type":"string"},"type":{"$ref":"#/components/schemas/SourceConnectorType"},"config":{"type":"object","additionalProperties":{"nullable":true}}},"required":["name","type"]},"CreateSourceConnectorRequest":{"type":"array","items":{"$ref":"#/components/schemas/CreateSourceConnector"},"minItems":1},"UpdateSourceConnectorResponseData":{"type":"object","properties":{"updatedConnector":{"$ref":"#/components/schemas/SourceConnector"},"pipelineIds":{"type":"array","items":{"type":"string"}}},"required":["updatedConnector"]},"UpdateSourceConnectorResponse":{"type":"object","properties":{"message":{"type":"string"},"data":{"$ref":"#/components/schemas/UpdateSourceConnectorResponseData"}},"required":["message","data"]},"UpdateSourceConnectorRequest":{"type":"object","properties":{"config":{"type":"object","additionalProperties":{"nullable":true}}},"required":["config"]},"DeleteSourceConnectorResponse":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]},"CreatedDestinationConnector":{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"string"}},"required":["name","id"]},"CreateDestinationConnectorResponse":{"type":"object","properties":{"message":{"type":"string"},"connectors":{"type":"array","items":{"$ref":"#/components/schemas/CreatedDestinationConnector"}}},"required":["message","connectors"]},"CreateDestinationConnector":{"type":"object","properties":{"name":{"type":"string"},"type":{"$ref":"#/components/schemas/DestinationConnectorType"},"config":{"type":"object","additionalProperties":{"nullable":true}}},"required":["name","type"]},"CreateDestinationConnectorRequest":{"type":"array","items":{"$ref":"#/components/schemas/CreateDestinationConnector"},"minItems":1},"UpdatedDestinationConnectorData":{"type":"object","properties":{"updatedConnector":{"$ref":"#/components/schemas/DestinationConnector"},"pipelineIds":{"type":"array","items":{"type":"string"}}},"required":["updatedConnector"]},"UpdateDestinationConnectorResponse":{"type":"object","properties":{"message":{"type":"string"},"data":{"$ref":"#/components/schemas/UpdatedDestinationConnectorData"}},"required":["message","data"]},"UpdateDestinationConnectorRequest":{"type":"object","properties":{"config":{"type":"object","additionalProperties":{"nullable":true}}},"required":["config"]},"DeleteDestinationConnectorResponse":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]},"CreatedAIPlatformConnector":{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"string"}},"required":["name","id"]},"CreateAIPlatformConnectorResponse":{"type":"object","properties":{"message":{"type":"string"},"connectors":{"type":"array","items":{"$ref":"#/components/schemas/CreatedAIPlatformConnector"}}},"required":["message","connectors"]},"CreateAIPlatformConnector":{"type":"object","properties":{"name":{"type":"string"},"type":{"$ref":"#/components/schemas/AIPlatformType"},"config":{"type":"object","additionalProperties":{"nullable":true}}},"required":["name","type"]},"CreateAIPlatformConnectorRequest":{"type":"array","items":{"$ref":"#/components/schemas/CreateAIPlatformConnector"},"minItems":1},"UpdatedAIPlatformConnectorData":{"type":"object","properties":{"updatedConnector":{"$ref":"#/components/schemas/AIPlatform"},"pipelineIds":{"type":"array","items":{"type":"string"}}},"required":["updatedConnector"]},"UpdateAIPlatformConnectorResponse":{"type":"object","properties":{"message":{"type":"string"},"data":{"$ref":"#/components/schemas/UpdatedAIPlatformConnectorData"}},"required":["message","data"]},"UpdateAIPlatformConnectorRequest":{"type":"object","properties":{"config":{"type":"object","additionalProperties":{"nullable":true}}},"required":["config"]},"DeleteAIPlatformConnectorResponse":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]},"UploadFile":{"type":"object","properties":{"key":{"type":"string"},"name":{"type":"string"},"size":{"type":"number"},"extension":{"type":"string"},"lastModified":{"type":"string","nullable":true},"metadata":{"type":"object","additionalProperties":{"type":"string"}}},"required":["key","name","size","lastModified","metadata"]},"GetUploadFilesResponse":{"type":"object","properties":{"message":{"type":"string"},"files":{"type":"array","items":{"$ref":"#/components/schemas/UploadFile"}}},"required":["message","files"]},"StartFileUploadToConnectorResponse":{"type":"object","properties":{"uploadUrl":{"type":"string"}},"required":["uploadUrl"]},"StartFileUploadToConnectorRequest":{"type":"object","properties":{"name":{"type":"string"},"contentType":{"type":"string"},"metadata":{"type":"string"}},"required":["name","contentType"]},"DeleteFileResponse":{"type":"object","properties":{"message":{"type":"string"},"fileName":{"type":"string"}},"required":["message","fileName"]},"StartExtractionResponse":{"type":"object","properties":{"message":{"type":"string"},"extractionId":{"type":"string"}},"required":["message","extractionId"]},"ExtractionType":{"type":"string","enum":["iris"],"default":"iris"},"ExtractionChunkingStrategy":{"type":"string","enum":["markdown"],"default":"markdown"},"StartExtractionRequest":{"type":"object","properties":{"fileId":{"type":"string"},"type":{"$ref":"#/components/schemas/ExtractionType"},"chunkingStrategy":{"$ref":"#/components/schemas/ExtractionChunkingStrategy"},"chunkSize":{"type":"number","default":256}},"required":["fileId"]},"ExtractionResult":{"type":"object","properties":{"success":{"type":"boolean"},"chunks":{"type":"array","items":{"type":"string"}},"text":{"type":"string"},"error":{"type":"string"}},"required":["success"]},"ExtractionResultResponse":{"type":"object","properties":{"ready":{"type":"boolean"},"data":{"$ref":"#/components/schemas/ExtractionResult"}},"required":["ready"]},"StartFileUploadResponse":{"type":"object","properties":{"fileId":{"type":"string"},"uploadUrl":{"type":"string"}},"required":["fileId","uploadUrl"]},"StartFileUploadRequest":{"type":"object","properties":{"name":{"type":"string"},"contentType":{"type":"string"}},"required":["name","contentType"]},"AddUserFromSourceConnectorResponse":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]},"AddUserToSourceConnectorRequest":{"type":"object","properties":{"userId":{"type":"string"},"fileIds":{"type":"array","items":{"type":"string"}},"refreshToken":{"type":"string"}},"required":["userId","refreshToken"]},"UpdateUserInSourceConnectorResponse":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]},"UpdateUserInSourceConnectorRequest":{"type":"object","properties":{"userId":{"type":"string"},"fileIds":{"type":"array","items":{"type":"string"}},"refreshToken":{"type":"string"}},"required":["userId"]},"RemoveUserFromSourceConnectorResponse":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]},"RemoveUserFromSourceConnectorRequest":{"type":"object","properties":{"userId":{"type":"string"}},"required":["userId"]}},"parameters":{}},"paths":{"/org/{organization}/pipelines":{"post":{"operationId":"createPipeline","summary":"Create a new source pipeline. Config fields for sources: Amazon S3 (AWS_S3): \nCheck for updates every (seconds) (idle-time): number, Path Prefix (path-prefix): text, Path Metadata Regex (path-metadata-regex): text, Path Regex Group Names (path-regex-group-names): array oftext) | Azure Blob Storage (AZURE_BLOB): \nPolling Interval (seconds) (idle-time): number, Path Prefix (path-prefix): text, Path Metadata Regex (path-metadata-regex): text, Path Regex Group Names (path-regex-group-names): array oftext) | Confluence (CONFLUENCE): \nSpaces (spaces): array oftext, Root Parents (root-parents): array oftext) | Discord (DISCORD): \nEmoji Filter (emoji): array oftext, Author Filter (author): array oftext, Ignore Author Filter (ignore-author): array oftext, Limit (limit): number) | Dropbox (DROPBOX): \nRead starting from these folders (optional) (path-prefix): array oftext) | Google Drive OAuth (GOOGLE_DRIVE_OAUTH): \nPolling Interval (seconds) (idle-time): number) | Google Drive OAuth (Multi-user) (GOOGLE_DRIVE_OAUTH_MULTI): \nPolling Interval (seconds) (idle-time): number) | Google Drive OAuth (Multi-user with white label) (GOOGLE_DRIVE_OAUTH_MULTI_CUSTOM): \nPolling Interval (seconds) (idle-time): number) | Firecrawl (FIRECRAWL): \n) | GCP Cloud Storage (GCS): \nCheck for updates every (seconds) (idle-time): number, Path Prefix (path-prefix): text, Path Metadata Regex (path-metadata-regex): text, Path Regex Group Names (path-regex-group-names): array oftext) | Google Drive (GOOGLE_DRIVE): \nRestrict ingest to these folder URLs (optional) (root-parents): array oftext, Polling Interval (seconds) (idle-time): number) | Intercom (INTERCOM): \nReindex Interval (seconds) (reindexIntervalSeconds): number, Limit (limit): number, Tags (tags): array oftext) | OneDrive (ONE_DRIVE): \nRead starting from this folder (optional) (path-prefix): text) | SharePoint (SHAREPOINT): \nSite Name(s) (sites): array oftext) | Web Crawler (WEB_CRAWLER): \nAdditional Allowed URLs or prefix(es) (allowed-domains-opt): array ofurl, Forbidden Paths (forbidden-paths): array oftext, Throttle (ms) (min-time-between-requests): number, Max Error Count (max-error-count): number, Max URLs (max-urls): number, Max Depth (max-depth): number, Reindex Interval (seconds) (reindex-interval-seconds): number) | File Upload (FILE_UPLOAD): \n). Config fields for destinations: Couchbase Capella (CAPELLA): \nBucket Name (bucket): text, Scope Name (scope): text, Collection Name (collection): text, Search Index Name (index): text) | DataStax Astra (DATASTAX): \nCollection Name (collection): text) | Elasticsearch (ELASTIC): \nIndex Name (index): text) | Pinecone (PINECONE): \nIndex Name (index): text, Namespace (namespace): text) | SingleStore (SINGLESTORE): \nTable Name (table): text) | Milvus (MILVUS): \nCollection Name (collection): text) | PostgreSQL (POSTGRESQL): \nTable Name (table): text) | Qdrant (QDRANT): \nCollection Name (collection): text) | Weaviate (WEAVIATE): \nCollection Name (collection): text) | Azure AI Search (AZUREAISEARCH): \nIndex Name (index): text) | Built-in (VECTORIZE): \n) | Chroma (CHROMA): \nIndex Name (index): text) | MongoDB (MONGODB): \nIndex Name (index): text). Config fields for AI platforms: ","tags":["Pipelines"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PipelineConfigurationSchema"}}}},"responses":{"200":{"description":"Pipeline created successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePipelineResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}},"get":{"operationId":"getPipelines","summary":"Get all existing pipelines","tags":["Pipelines"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"}],"responses":{"200":{"description":"Get all pipelines","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetPipelinesResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/pipelines/{pipeline}":{"get":{"operationId":"getPipeline","summary":"Get a pipeline","tags":["Pipelines"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"pipeline","in":"path"}],"responses":{"200":{"description":"Pipeline fetched successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetPipelineResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}},"delete":{"operationId":"deletePipeline","summary":"Delete a pipeline","tags":["Pipelines"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"pipeline","in":"path"}],"responses":{"200":{"description":"Pipeline deleted successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeletePipelineResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/pipelines/{pipeline}/events":{"get":{"operationId":"getPipelineEvents","summary":"Get pipeline events","tags":["Pipelines"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"pipeline","in":"path"},{"schema":{"type":"string"},"required":false,"name":"nextToken","in":"query"}],"responses":{"200":{"description":"Pipeline events fetched successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetPipelineEventsResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/pipelines/{pipeline}/metrics":{"get":{"operationId":"getPipelineMetrics","summary":"Get pipeline metrics","tags":["Pipelines"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"pipeline","in":"path"}],"responses":{"200":{"description":"Pipeline metrics fetched successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetPipelineMetricsResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/pipelines/{pipeline}/retrieval":{"post":{"operationId":"retrieveDocuments","summary":"Retrieve documents from a pipeline","tags":["Pipelines"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"pipeline","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetrieveDocumentsRequest"}}}},"responses":{"200":{"description":"Documents retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetrieveDocumentsResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/pipelines/{pipeline}/start":{"post":{"operationId":"startPipeline","summary":"Start a pipeline","tags":["Pipelines"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"pipeline","in":"path"}],"responses":{"200":{"description":"Pipeline started successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartPipelineResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/pipelines/{pipeline}/stop":{"post":{"operationId":"stopPipeline","summary":"Stop a pipeline","tags":["Pipelines"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"pipeline","in":"path"}],"responses":{"200":{"description":"Pipeline stopped successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StopPipelineResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/pipelines/{pipeline}/deep-research":{"post":{"operationId":"startDeepResearch","summary":"Start a deep research","tags":["Pipelines"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"pipeline","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartDeepResearchRequest"}}}},"responses":{"200":{"description":"Deep Research started successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartDeepResearchResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/pipelines/{pipeline}/deep-research/{researchId}":{"get":{"operationId":"getDeepResearchResult","summary":"Get deep research result","tags":["Pipelines"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"pipeline","in":"path"},{"schema":{"type":"string"},"required":true,"name":"researchId","in":"path"}],"responses":{"200":{"description":"Get Deep Research was successful","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetDeepResearchResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/connectors/sources":{"post":{"operationId":"createSourceConnector","summary":"Create a new source connector. Config values: Amazon S3 (AWS_S3): \nName (name): text, Access Key (access-key): text, Secret Key (secret-key): text, Bucket Name (bucket-name): text, Endpoint (endpoint): url, Region (region): text, Allow as archive destination (archiver): boolean) | Azure Blob Storage (AZURE_BLOB): \nName (name): text, Storage Account Name (storage-account-name): text, Storage Account Key (storage-account-key): text, Container (container): text, Endpoint (endpoint): url) | Confluence (CONFLUENCE): \nName (name): text, Username (username): text, API Token (api-token): text, Domain (domain): text) | Discord (DISCORD): \nName (name): text, Server ID (guild-id): text, Bot token (bot-token): text, Channel ID (channel-ids): array oftext) | Dropbox (DROPBOX): \nName (name): text) | Google Drive OAuth (GOOGLE_DRIVE_OAUTH): \nName (name): text) | Google Drive OAuth (Multi-user) (GOOGLE_DRIVE_OAUTH_MULTI): \nName (name): text) | Google Drive OAuth (Multi-user with white label) (GOOGLE_DRIVE_OAUTH_MULTI_CUSTOM): \nName (name): text, OAuth2 Client Id (oauth2-client-id): text, OAuth2 Client Secret (oauth2-client-secret): text) | Firecrawl (FIRECRAWL): \nName (name): text, API Key (api-key): text) | GCP Cloud Storage (GCS): \nName (name): text, Bucket (bucket-name): text) | Google Drive (GOOGLE_DRIVE): \nName (name): text) | Intercom (INTERCOM): \nName (name): text, Access Token (intercomAccessToken): text) | OneDrive (ONE_DRIVE): \nName (name): text, Client Id (ms-client-id): text, Tenant Id (ms-tenant-id): text, Client Secret (ms-client-secret): text, Users (users): array oftext) | SharePoint (SHAREPOINT): \nName (name): text, Client Id (ms-client-id): text, Tenant Id (ms-tenant-id): text, Client Secret (ms-client-secret): text) | Web Crawler (WEB_CRAWLER): \nName (name): text, Seed URL(s) (seed-urls): array ofurl) | File Upload (FILE_UPLOAD): \nName (name): text)","tags":["Connectors"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSourceConnectorRequest"}}}},"responses":{"200":{"description":"Connector successfully created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSourceConnectorResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}},"get":{"operationId":"getSourceConnectors","summary":"Get all existing source connectors","tags":["Connectors"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"}],"responses":{"200":{"description":"Get all source connectors","content":{"application/json":{"schema":{"type":"object","properties":{"sourceConnectors":{"type":"array","items":{"$ref":"#/components/schemas/SourceConnector"}}},"required":["sourceConnectors"]}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/connectors/sources/{sourceConnectorId}":{"get":{"operationId":"getSourceConnector","summary":"Get a source connector","tags":["Connectors"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"sourceConnectorId","in":"path"}],"responses":{"200":{"description":"Get a source connector","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourceConnector"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}},"patch":{"operationId":"updateSourceConnector","summary":"Update a source connector","tags":["Connectors"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"sourceConnectorId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSourceConnectorRequest"}}}},"responses":{"200":{"description":"Source connector successfully updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSourceConnectorResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}},"delete":{"operationId":"deleteSourceConnector","summary":"Delete a source connector","tags":["Connectors"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"sourceConnectorId","in":"path"}],"responses":{"200":{"description":"Source connector successfully deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteSourceConnectorResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/connectors/destinations":{"post":{"operationId":"createDestinationConnector","summary":"Create a new destination connector. Config values: Couchbase Capella (CAPELLA): \nName (name): text, Cluster Access Name (username): text, Cluster Access Password (password): text, Connection String (connection-string): text) | DataStax Astra (DATASTAX): \nName (name): text, API Endpoint (endpoint_secret): text, Application Token (token): text) | Elasticsearch (ELASTIC): \nName (name): text, Host (host): text, Port (port): text, API Key (api-key): text) | Pinecone (PINECONE): \nName (name): text, API Key (api-key): text) | SingleStore (SINGLESTORE): \nName (name): text, Host (host): text, Port (port): number, Database (database): text, Username (username): text, Password (password): text) | Milvus (MILVUS): \nName (name): text, Public Endpoint (url): text, Token (token): text, Username (username): text, Password (password): text) | PostgreSQL (POSTGRESQL): \nName (name): text, Host (host): text, Port (port): number, Database (database): text, Username (username): text, Password (password): text) | Qdrant (QDRANT): \nName (name): text, Host (host): text, API Key (api-key): text) | Weaviate (WEAVIATE): \nName (name): text, Endpoint (host): text, API Key (api-key): text) | Azure AI Search (AZUREAISEARCH): \nName (name): text, Azure AI Search Service Name (service-name): text, API Key (api-key): text) | Built-in (VECTORIZE): \n) | Chroma (CHROMA): \nName (name): text, API Key (apiKey): text) | MongoDB (MONGODB): \nName (name): text, API Key (apiKey): text)","tags":["Connectors"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDestinationConnectorRequest"}}}},"responses":{"200":{"description":"Connector successfully created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDestinationConnectorResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}},"get":{"operationId":"getDestinationConnectors","summary":"Get all existing destination connectors","tags":["Connectors"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"}],"responses":{"200":{"description":"Get all destination connectors","content":{"application/json":{"schema":{"type":"object","properties":{"destinationConnectors":{"type":"array","items":{"$ref":"#/components/schemas/DestinationConnector"}}},"required":["destinationConnectors"]}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/connectors/destinations/{destinationConnectorId}":{"get":{"operationId":"getDestinationConnector","summary":"Get a destination connector","tags":["Connectors"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"destinationConnectorId","in":"path"}],"responses":{"200":{"description":"Get a destination connector","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DestinationConnector"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}},"patch":{"operationId":"updateDestinationConnector","summary":"Update a destination connector","tags":["Connectors"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"destinationConnectorId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateDestinationConnectorRequest"}}}},"responses":{"200":{"description":"Destination connector successfully updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateDestinationConnectorResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}},"delete":{"operationId":"deleteDestinationConnector","summary":"Delete a destination connector","tags":["Connectors"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"destinationConnectorId","in":"path"}],"responses":{"200":{"description":"Destination connector successfully deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteDestinationConnectorResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/connectors/aiplatforms":{"post":{"operationId":"createAIPlatformConnector","summary":"Create a new AI Platform connector. Config values: Amazon Bedrock (BEDROCK): \nName (name): text, Access Key (access-key): text, Secret Key (key): text) | Google Vertex AI (VERTEX): \nName (name): text, Region (region): text) | OpenAI (OPENAI): \nName (name): text, API Key (key): text) | Voyage AI (VOYAGE): \nName (name): text, API Key (key): text) | Built-in (VECTORIZE): \n)","tags":["Connectors"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAIPlatformConnectorRequest"}}}},"responses":{"200":{"description":"Connector successfully created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAIPlatformConnectorResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}},"get":{"operationId":"getAIPlatformConnectors","summary":"Get all existing AI Platform connectors","tags":["Connectors"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"}],"responses":{"200":{"description":"Get all existing AI Platform connectors","content":{"application/json":{"schema":{"type":"object","properties":{"aiPlatformConnectors":{"type":"array","items":{"$ref":"#/components/schemas/AIPlatform"}}},"required":["aiPlatformConnectors"]}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/connectors/aiplatforms/{aiplatformId}":{"get":{"operationId":"getAIPlatformConnector","summary":"Get an AI platform connector","tags":["Connectors"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"aiplatformId","in":"path"}],"responses":{"200":{"description":"Get an AI platform connector","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AIPlatform"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}},"patch":{"operationId":"updateAIPlatformConnector","summary":"Update an AI Platform connector","tags":["Connectors"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"aiplatformId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAIPlatformConnectorRequest"}}}},"responses":{"200":{"description":"AI Platform connector successfully updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAIPlatformConnectorResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}},"delete":{"operationId":"deleteAIPlatform","summary":"Delete an AI platform connector","tags":["Connectors"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"aiplatformId","in":"path"}],"responses":{"200":{"description":"AI Platform connector successfully deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteAIPlatformConnectorResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/uploads/{connectorId}/files":{"get":{"operationId":"getUploadFilesFromConnector","summary":"Get uploaded files from a file upload connector","tags":["Uploads"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"connectorId","in":"path"}],"responses":{"200":{"description":"Files retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetUploadFilesResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}},"put":{"operationId":"startFileUploadToConnector","summary":"Upload a file to a file upload connector","tags":["Uploads"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"connectorId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartFileUploadToConnectorRequest"}}}},"responses":{"200":{"description":"File ready to be uploaded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartFileUploadToConnectorResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}},"delete":{"operationId":"deleteFileFromConnector","summary":"Delete a file from a file upload connector","tags":["Uploads"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"connectorId","in":"path"}],"responses":{"200":{"description":"File deleted successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteFileResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/extraction":{"post":{"operationId":"startExtraction","summary":"Start content extraction from a file","tags":["Extraction"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartExtractionRequest"}}}},"responses":{"200":{"description":"Extraction started successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartExtractionResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/extraction/{extractionId}":{"get":{"operationId":"getExtractionResult","summary":"Get extraction result","tags":["Extraction"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"extractionId","in":"path"}],"responses":{"200":{"description":"Extraction started successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExtractionResultResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/files":{"post":{"operationId":"startFileUpload","summary":"Upload a generic file to the platform","tags":["Files"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartFileUploadRequest"}}}},"responses":{"200":{"description":"File upload started successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartFileUploadResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/connectors/sources/{sourceConnectorId}/users":{"post":{"operationId":"addUserToSourceConnector","summary":"Add a user to a source connector","tags":["Connectors"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"sourceConnectorId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddUserToSourceConnectorRequest"}}}},"responses":{"200":{"description":"User successfully added to the source connector","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddUserFromSourceConnectorResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}},"patch":{"operationId":"updateUserInSourceConnector","summary":"Update a source connector user","tags":["Connectors"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"sourceConnectorId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateUserInSourceConnectorRequest"}}}},"responses":{"200":{"description":"User successfully updated in the source connector","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateUserInSourceConnectorResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}},"delete":{"operationId":"deleteUserFromSourceConnector","summary":"Delete a source connector user","tags":["Connectors"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"sourceConnectorId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemoveUserFromSourceConnectorRequest"}}}},"responses":{"200":{"description":"User successfully removed from the source connector","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemoveUserFromSourceConnectorResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}}}} \ No newline at end of file From b3157870669a3cae79d496e81e0eb16f7a8e52c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Boschi?= Date: Fri, 7 Mar 2025 13:44:55 +0100 Subject: [PATCH 2/5] fix: improve openapi naming --- ...add_user_from_source_connector_response.py | 87 +++++++++ .../add_user_to_source_connector_request.py | 91 ++++++++++ .../models/ai_platform_config_schema.py | 128 ++++++++++++++ .../models/ai_platform_type.py | 40 +++++ .../models/create_ai_platform_connector.py | 92 ++++++++++ .../models/create_destination_connector.py | 92 ++++++++++ .../models/create_source_connector.py | 92 ++++++++++ .../models/created_ai_platform_connector.py | 89 ++++++++++ .../models/created_destination_connector.py | 89 ++++++++++ .../models/created_source_connector.py | 89 ++++++++++ .../models/deep_research_result.py | 93 ++++++++++ .../models/destination_connector_type.py | 48 +++++ .../models/extraction_chunking_strategy.py | 36 ++++ .../models/extraction_result.py | 93 ++++++++++ .../models/extraction_type.py | 36 ++++ .../vectorize_client/models/n8_n_config.py | 91 ++++++++++ .../models/pipeline_events.py | 100 +++++++++++ .../models/pipeline_metrics.py | 98 +++++++++++ ...move_user_from_source_connector_request.py | 87 +++++++++ ...ove_user_from_source_connector_response.py | 87 +++++++++ .../models/retrieve_context.py | 95 ++++++++++ .../models/retrieve_context_message.py | 89 ++++++++++ .../models/schedule_schema_type.py | 38 ++++ .../models/source_connector_type.py | 53 ++++++ .../update_ai_platform_connector_response.py | 93 ++++++++++ .../update_destination_connector_request.py | 87 +++++++++ .../update_destination_connector_response.py | 93 ++++++++++ .../update_source_connector_response.py | 93 ++++++++++ .../update_source_connector_response_data.py | 93 ++++++++++ ...update_user_in_source_connector_request.py | 91 ++++++++++ ...pdate_user_in_source_connector_response.py | 87 +++++++++ .../updated_ai_platform_connector_data.py | 93 ++++++++++ .../updated_destination_connector_data.py | 93 ++++++++++ .../vectorize_client/models/upload_file.py | 102 +++++++++++ src/ts/src/models/AIPlatformConfigSchema.ts | 165 ++++++++++++++++++ src/ts/src/models/AIPlatformType.ts | 56 ++++++ .../AddUserFromSourceConnectorResponse.ts | 66 +++++++ .../models/AddUserToSourceConnectorRequest.ts | 83 +++++++++ .../src/models/CreateAIPlatformConnector.ts | 93 ++++++++++ .../src/models/CreateDestinationConnector.ts | 93 ++++++++++ src/ts/src/models/CreateSourceConnector.ts | 93 ++++++++++ .../src/models/CreatedAIPlatformConnector.ts | 75 ++++++++ .../src/models/CreatedDestinationConnector.ts | 75 ++++++++ src/ts/src/models/CreatedSourceConnector.ts | 75 ++++++++ src/ts/src/models/DeepResearchResult.ts | 90 ++++++++++ src/ts/src/models/DestinationConnectorType.ts | 64 +++++++ .../src/models/ExtractionChunkingStrategy.ts | 52 ++++++ src/ts/src/models/ExtractionResult.ts | 90 ++++++++++ src/ts/src/models/ExtractionType.ts | 52 ++++++ src/ts/src/models/N8NConfig.ts | 83 +++++++++ src/ts/src/models/PipelineEvents.ts | 100 +++++++++++ src/ts/src/models/PipelineMetrics.ts | 93 ++++++++++ .../RemoveUserFromSourceConnectorRequest.ts | 66 +++++++ .../RemoveUserFromSourceConnectorResponse.ts | 66 +++++++ src/ts/src/models/RetrieveContext.ts | 74 ++++++++ src/ts/src/models/RetrieveContextMessage.ts | 75 ++++++++ src/ts/src/models/ScheduleSchemaType.ts | 54 ++++++ src/ts/src/models/SourceConnectorType.ts | 69 ++++++++ .../UpdateAIPlatformConnectorResponse.ts | 83 +++++++++ .../UpdateDestinationConnectorRequest.ts | 66 +++++++ .../UpdateDestinationConnectorResponse.ts | 83 +++++++++ .../models/UpdateSourceConnectorResponse.ts | 83 +++++++++ .../UpdateSourceConnectorResponseData.ts | 82 +++++++++ .../UpdateUserInSourceConnectorRequest.ts | 82 +++++++++ .../UpdateUserInSourceConnectorResponse.ts | 66 +++++++ .../models/UpdatedAIPlatformConnectorData.ts | 82 +++++++++ .../models/UpdatedDestinationConnectorData.ts | 82 +++++++++ src/ts/src/models/UploadFile.ts | 110 ++++++++++++ 68 files changed, 5579 insertions(+) create mode 100644 src/python/vectorize_client/models/add_user_from_source_connector_response.py create mode 100644 src/python/vectorize_client/models/add_user_to_source_connector_request.py create mode 100644 src/python/vectorize_client/models/ai_platform_config_schema.py create mode 100644 src/python/vectorize_client/models/ai_platform_type.py create mode 100644 src/python/vectorize_client/models/create_ai_platform_connector.py create mode 100644 src/python/vectorize_client/models/create_destination_connector.py create mode 100644 src/python/vectorize_client/models/create_source_connector.py create mode 100644 src/python/vectorize_client/models/created_ai_platform_connector.py create mode 100644 src/python/vectorize_client/models/created_destination_connector.py create mode 100644 src/python/vectorize_client/models/created_source_connector.py create mode 100644 src/python/vectorize_client/models/deep_research_result.py create mode 100644 src/python/vectorize_client/models/destination_connector_type.py create mode 100644 src/python/vectorize_client/models/extraction_chunking_strategy.py create mode 100644 src/python/vectorize_client/models/extraction_result.py create mode 100644 src/python/vectorize_client/models/extraction_type.py create mode 100644 src/python/vectorize_client/models/n8_n_config.py create mode 100644 src/python/vectorize_client/models/pipeline_events.py create mode 100644 src/python/vectorize_client/models/pipeline_metrics.py create mode 100644 src/python/vectorize_client/models/remove_user_from_source_connector_request.py create mode 100644 src/python/vectorize_client/models/remove_user_from_source_connector_response.py create mode 100644 src/python/vectorize_client/models/retrieve_context.py create mode 100644 src/python/vectorize_client/models/retrieve_context_message.py create mode 100644 src/python/vectorize_client/models/schedule_schema_type.py create mode 100644 src/python/vectorize_client/models/source_connector_type.py create mode 100644 src/python/vectorize_client/models/update_ai_platform_connector_response.py create mode 100644 src/python/vectorize_client/models/update_destination_connector_request.py create mode 100644 src/python/vectorize_client/models/update_destination_connector_response.py create mode 100644 src/python/vectorize_client/models/update_source_connector_response.py create mode 100644 src/python/vectorize_client/models/update_source_connector_response_data.py create mode 100644 src/python/vectorize_client/models/update_user_in_source_connector_request.py create mode 100644 src/python/vectorize_client/models/update_user_in_source_connector_response.py create mode 100644 src/python/vectorize_client/models/updated_ai_platform_connector_data.py create mode 100644 src/python/vectorize_client/models/updated_destination_connector_data.py create mode 100644 src/python/vectorize_client/models/upload_file.py create mode 100644 src/ts/src/models/AIPlatformConfigSchema.ts create mode 100644 src/ts/src/models/AIPlatformType.ts create mode 100644 src/ts/src/models/AddUserFromSourceConnectorResponse.ts create mode 100644 src/ts/src/models/AddUserToSourceConnectorRequest.ts create mode 100644 src/ts/src/models/CreateAIPlatformConnector.ts create mode 100644 src/ts/src/models/CreateDestinationConnector.ts create mode 100644 src/ts/src/models/CreateSourceConnector.ts create mode 100644 src/ts/src/models/CreatedAIPlatformConnector.ts create mode 100644 src/ts/src/models/CreatedDestinationConnector.ts create mode 100644 src/ts/src/models/CreatedSourceConnector.ts create mode 100644 src/ts/src/models/DeepResearchResult.ts create mode 100644 src/ts/src/models/DestinationConnectorType.ts create mode 100644 src/ts/src/models/ExtractionChunkingStrategy.ts create mode 100644 src/ts/src/models/ExtractionResult.ts create mode 100644 src/ts/src/models/ExtractionType.ts create mode 100644 src/ts/src/models/N8NConfig.ts create mode 100644 src/ts/src/models/PipelineEvents.ts create mode 100644 src/ts/src/models/PipelineMetrics.ts create mode 100644 src/ts/src/models/RemoveUserFromSourceConnectorRequest.ts create mode 100644 src/ts/src/models/RemoveUserFromSourceConnectorResponse.ts create mode 100644 src/ts/src/models/RetrieveContext.ts create mode 100644 src/ts/src/models/RetrieveContextMessage.ts create mode 100644 src/ts/src/models/ScheduleSchemaType.ts create mode 100644 src/ts/src/models/SourceConnectorType.ts create mode 100644 src/ts/src/models/UpdateAIPlatformConnectorResponse.ts create mode 100644 src/ts/src/models/UpdateDestinationConnectorRequest.ts create mode 100644 src/ts/src/models/UpdateDestinationConnectorResponse.ts create mode 100644 src/ts/src/models/UpdateSourceConnectorResponse.ts create mode 100644 src/ts/src/models/UpdateSourceConnectorResponseData.ts create mode 100644 src/ts/src/models/UpdateUserInSourceConnectorRequest.ts create mode 100644 src/ts/src/models/UpdateUserInSourceConnectorResponse.ts create mode 100644 src/ts/src/models/UpdatedAIPlatformConnectorData.ts create mode 100644 src/ts/src/models/UpdatedDestinationConnectorData.ts create mode 100644 src/ts/src/models/UploadFile.ts diff --git a/src/python/vectorize_client/models/add_user_from_source_connector_response.py b/src/python/vectorize_client/models/add_user_from_source_connector_response.py new file mode 100644 index 0000000..ad136d9 --- /dev/null +++ b/src/python/vectorize_client/models/add_user_from_source_connector_response.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + Vectorize API (Beta) + + API for Vectorize services + + The version of the OpenAPI document: 0.0.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class AddUserFromSourceConnectorResponse(BaseModel): + """ + AddUserFromSourceConnectorResponse + """ # noqa: E501 + message: StrictStr + __properties: ClassVar[List[str]] = ["message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AddUserFromSourceConnectorResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AddUserFromSourceConnectorResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "message": obj.get("message") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/add_user_to_source_connector_request.py b/src/python/vectorize_client/models/add_user_to_source_connector_request.py new file mode 100644 index 0000000..abdf48c --- /dev/null +++ b/src/python/vectorize_client/models/add_user_to_source_connector_request.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Vectorize API (Beta) + + API for Vectorize services + + The version of the OpenAPI document: 0.0.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AddUserToSourceConnectorRequest(BaseModel): + """ + AddUserToSourceConnectorRequest + """ # noqa: E501 + user_id: StrictStr = Field(alias="userId") + file_ids: Optional[List[StrictStr]] = Field(default=None, alias="fileIds") + refresh_token: StrictStr = Field(alias="refreshToken") + __properties: ClassVar[List[str]] = ["userId", "fileIds", "refreshToken"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AddUserToSourceConnectorRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AddUserToSourceConnectorRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "userId": obj.get("userId"), + "fileIds": obj.get("fileIds"), + "refreshToken": obj.get("refreshToken") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/ai_platform_config_schema.py b/src/python/vectorize_client/models/ai_platform_config_schema.py new file mode 100644 index 0000000..2ae054f --- /dev/null +++ b/src/python/vectorize_client/models/ai_platform_config_schema.py @@ -0,0 +1,128 @@ +# coding: utf-8 + +""" + Vectorize API (Beta) + + API for Vectorize services + + The version of the OpenAPI document: 0.0.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class AIPlatformConfigSchema(BaseModel): + """ + AIPlatformConfigSchema + """ # noqa: E501 + embedding_model: Optional[StrictStr] = Field(default=None, alias="embeddingModel") + chunking_strategy: Optional[StrictStr] = Field(default=None, alias="chunkingStrategy") + chunk_size: Optional[Annotated[int, Field(strict=True, ge=1)]] = Field(default=None, alias="chunkSize") + chunk_overlap: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="chunkOverlap") + dimensions: Optional[Annotated[int, Field(strict=True, ge=1)]] = None + extraction_strategy: Optional[StrictStr] = Field(default=None, alias="extractionStrategy") + __properties: ClassVar[List[str]] = ["embeddingModel", "chunkingStrategy", "chunkSize", "chunkOverlap", "dimensions", "extractionStrategy"] + + @field_validator('embedding_model') + def embedding_model_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['VECTORIZE_OPEN_AI_TEXT_EMBEDDING_2', 'VECTORIZE_OPEN_AI_TEXT_EMBEDDING_3_LARGE', 'VECTORIZE_OPEN_AI_TEXT_EMBEDDING_3_SMALL', 'VECTORIZE_VOYAGE_AI_2', 'VECTORIZE_VOYAGE_AI_3', 'VECTORIZE_VOYAGE_AI_3_LITE', 'VECTORIZE_VOYAGE_AI_3_LARGE', 'VECTORIZE_VOYAGE_AI_FINANCE_2', 'VECTORIZE_VOYAGE_AI_MULTILINGUAL_2', 'VECTORIZE_VOYAGE_AI_LAW_2', 'VECTORIZE_VOYAGE_AI_CODE_2', 'VECTORIZE_TITAN_TEXT_EMBEDDING_2', 'VECTORIZE_TITAN_TEXT_EMBEDDING_1', 'OPEN_AI_TEXT_EMBEDDING_2', 'OPEN_AI_TEXT_EMBEDDING_3_SMALL', 'OPEN_AI_TEXT_EMBEDDING_3_LARGE', 'VOYAGE_AI_2', 'VOYAGE_AI_3', 'VOYAGE_AI_3_LITE', 'VOYAGE_AI_3_LARGE', 'VOYAGE_AI_FINANCE_2', 'VOYAGE_AI_MULTILINGUAL_2', 'VOYAGE_AI_LAW_2', 'VOYAGE_AI_CODE_2', 'TITAN_TEXT_EMBEDDING_1', 'TITAN_TEXT_EMBEDDING_2', 'VERTEX_TEXT_EMBEDDING_4', 'VERTEX_TEXT_EMBEDDING_GECKO_3', 'VERTEX_GECKO_MULTILINGUAL_1', 'VERTEX_MULTILINGUAL_EMBEDDING_2']): + raise ValueError("must be one of enum values ('VECTORIZE_OPEN_AI_TEXT_EMBEDDING_2', 'VECTORIZE_OPEN_AI_TEXT_EMBEDDING_3_LARGE', 'VECTORIZE_OPEN_AI_TEXT_EMBEDDING_3_SMALL', 'VECTORIZE_VOYAGE_AI_2', 'VECTORIZE_VOYAGE_AI_3', 'VECTORIZE_VOYAGE_AI_3_LITE', 'VECTORIZE_VOYAGE_AI_3_LARGE', 'VECTORIZE_VOYAGE_AI_FINANCE_2', 'VECTORIZE_VOYAGE_AI_MULTILINGUAL_2', 'VECTORIZE_VOYAGE_AI_LAW_2', 'VECTORIZE_VOYAGE_AI_CODE_2', 'VECTORIZE_TITAN_TEXT_EMBEDDING_2', 'VECTORIZE_TITAN_TEXT_EMBEDDING_1', 'OPEN_AI_TEXT_EMBEDDING_2', 'OPEN_AI_TEXT_EMBEDDING_3_SMALL', 'OPEN_AI_TEXT_EMBEDDING_3_LARGE', 'VOYAGE_AI_2', 'VOYAGE_AI_3', 'VOYAGE_AI_3_LITE', 'VOYAGE_AI_3_LARGE', 'VOYAGE_AI_FINANCE_2', 'VOYAGE_AI_MULTILINGUAL_2', 'VOYAGE_AI_LAW_2', 'VOYAGE_AI_CODE_2', 'TITAN_TEXT_EMBEDDING_1', 'TITAN_TEXT_EMBEDDING_2', 'VERTEX_TEXT_EMBEDDING_4', 'VERTEX_TEXT_EMBEDDING_GECKO_3', 'VERTEX_GECKO_MULTILINGUAL_1', 'VERTEX_MULTILINGUAL_EMBEDDING_2')") + return value + + @field_validator('chunking_strategy') + def chunking_strategy_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['FIXED', 'SENTENCE', 'PARAGRAPH', 'MARKDOWN']): + raise ValueError("must be one of enum values ('FIXED', 'SENTENCE', 'PARAGRAPH', 'MARKDOWN')") + return value + + @field_validator('extraction_strategy') + def extraction_strategy_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['FAST', 'IRIS', 'MIXED']): + raise ValueError("must be one of enum values ('FAST', 'IRIS', 'MIXED')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AIPlatformConfigSchema from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AIPlatformConfigSchema from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "embeddingModel": obj.get("embeddingModel"), + "chunkingStrategy": obj.get("chunkingStrategy"), + "chunkSize": obj.get("chunkSize"), + "chunkOverlap": obj.get("chunkOverlap"), + "dimensions": obj.get("dimensions"), + "extractionStrategy": obj.get("extractionStrategy") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/ai_platform_type.py b/src/python/vectorize_client/models/ai_platform_type.py new file mode 100644 index 0000000..e60cf2e --- /dev/null +++ b/src/python/vectorize_client/models/ai_platform_type.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Vectorize API (Beta) + + API for Vectorize services + + The version of the OpenAPI document: 0.0.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class AIPlatformType(str, Enum): + """ + AIPlatformType + """ + + """ + allowed enum values + """ + BEDROCK = 'BEDROCK' + VERTEX = 'VERTEX' + OPENAI = 'OPENAI' + VOYAGE = 'VOYAGE' + VECTORIZE = 'VECTORIZE' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of AIPlatformType from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/src/python/vectorize_client/models/create_ai_platform_connector.py b/src/python/vectorize_client/models/create_ai_platform_connector.py new file mode 100644 index 0000000..50093e9 --- /dev/null +++ b/src/python/vectorize_client/models/create_ai_platform_connector.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Vectorize API (Beta) + + API for Vectorize services + + The version of the OpenAPI document: 0.0.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from vectorize_client.models.ai_platform_type import AIPlatformType +from typing import Optional, Set +from typing_extensions import Self + +class CreateAIPlatformConnector(BaseModel): + """ + CreateAIPlatformConnector + """ # noqa: E501 + name: StrictStr + type: AIPlatformType + config: Optional[Dict[str, Any]] = None + __properties: ClassVar[List[str]] = ["name", "type", "config"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CreateAIPlatformConnector from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CreateAIPlatformConnector from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "type": obj.get("type"), + "config": obj.get("config") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/create_destination_connector.py b/src/python/vectorize_client/models/create_destination_connector.py new file mode 100644 index 0000000..95df400 --- /dev/null +++ b/src/python/vectorize_client/models/create_destination_connector.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Vectorize API (Beta) + + API for Vectorize services + + The version of the OpenAPI document: 0.0.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from vectorize_client.models.destination_connector_type import DestinationConnectorType +from typing import Optional, Set +from typing_extensions import Self + +class CreateDestinationConnector(BaseModel): + """ + CreateDestinationConnector + """ # noqa: E501 + name: StrictStr + type: DestinationConnectorType + config: Optional[Dict[str, Any]] = None + __properties: ClassVar[List[str]] = ["name", "type", "config"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CreateDestinationConnector from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CreateDestinationConnector from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "type": obj.get("type"), + "config": obj.get("config") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/create_source_connector.py b/src/python/vectorize_client/models/create_source_connector.py new file mode 100644 index 0000000..1499d77 --- /dev/null +++ b/src/python/vectorize_client/models/create_source_connector.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Vectorize API (Beta) + + API for Vectorize services + + The version of the OpenAPI document: 0.0.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from vectorize_client.models.source_connector_type import SourceConnectorType +from typing import Optional, Set +from typing_extensions import Self + +class CreateSourceConnector(BaseModel): + """ + CreateSourceConnector + """ # noqa: E501 + name: StrictStr + type: SourceConnectorType + config: Optional[Dict[str, Any]] = None + __properties: ClassVar[List[str]] = ["name", "type", "config"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CreateSourceConnector from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CreateSourceConnector from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "type": obj.get("type"), + "config": obj.get("config") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/created_ai_platform_connector.py b/src/python/vectorize_client/models/created_ai_platform_connector.py new file mode 100644 index 0000000..6b57e73 --- /dev/null +++ b/src/python/vectorize_client/models/created_ai_platform_connector.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Vectorize API (Beta) + + API for Vectorize services + + The version of the OpenAPI document: 0.0.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class CreatedAIPlatformConnector(BaseModel): + """ + CreatedAIPlatformConnector + """ # noqa: E501 + name: StrictStr + id: StrictStr + __properties: ClassVar[List[str]] = ["name", "id"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CreatedAIPlatformConnector from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CreatedAIPlatformConnector from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "id": obj.get("id") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/created_destination_connector.py b/src/python/vectorize_client/models/created_destination_connector.py new file mode 100644 index 0000000..330dd47 --- /dev/null +++ b/src/python/vectorize_client/models/created_destination_connector.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Vectorize API (Beta) + + API for Vectorize services + + The version of the OpenAPI document: 0.0.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class CreatedDestinationConnector(BaseModel): + """ + CreatedDestinationConnector + """ # noqa: E501 + name: StrictStr + id: StrictStr + __properties: ClassVar[List[str]] = ["name", "id"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CreatedDestinationConnector from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CreatedDestinationConnector from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "id": obj.get("id") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/created_source_connector.py b/src/python/vectorize_client/models/created_source_connector.py new file mode 100644 index 0000000..aeb91c1 --- /dev/null +++ b/src/python/vectorize_client/models/created_source_connector.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Vectorize API (Beta) + + API for Vectorize services + + The version of the OpenAPI document: 0.0.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class CreatedSourceConnector(BaseModel): + """ + CreatedSourceConnector + """ # noqa: E501 + name: StrictStr + id: StrictStr + __properties: ClassVar[List[str]] = ["name", "id"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CreatedSourceConnector from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CreatedSourceConnector from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "id": obj.get("id") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/deep_research_result.py b/src/python/vectorize_client/models/deep_research_result.py new file mode 100644 index 0000000..d6c72c9 --- /dev/null +++ b/src/python/vectorize_client/models/deep_research_result.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Vectorize API (Beta) + + API for Vectorize services + + The version of the OpenAPI document: 0.0.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DeepResearchResult(BaseModel): + """ + DeepResearchResult + """ # noqa: E501 + success: StrictBool + events: Optional[List[StrictStr]] = None + markdown: Optional[StrictStr] = None + error: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["success", "events", "markdown", "error"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DeepResearchResult from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DeepResearchResult from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "events": obj.get("events"), + "markdown": obj.get("markdown"), + "error": obj.get("error") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/destination_connector_type.py b/src/python/vectorize_client/models/destination_connector_type.py new file mode 100644 index 0000000..82f139d --- /dev/null +++ b/src/python/vectorize_client/models/destination_connector_type.py @@ -0,0 +1,48 @@ +# coding: utf-8 + +""" + Vectorize API (Beta) + + API for Vectorize services + + The version of the OpenAPI document: 0.0.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class DestinationConnectorType(str, Enum): + """ + DestinationConnectorType + """ + + """ + allowed enum values + """ + CAPELLA = 'CAPELLA' + DATASTAX = 'DATASTAX' + ELASTIC = 'ELASTIC' + PINECONE = 'PINECONE' + SINGLESTORE = 'SINGLESTORE' + MILVUS = 'MILVUS' + POSTGRESQL = 'POSTGRESQL' + QDRANT = 'QDRANT' + WEAVIATE = 'WEAVIATE' + AZUREAISEARCH = 'AZUREAISEARCH' + VECTORIZE = 'VECTORIZE' + CHROMA = 'CHROMA' + MONGODB = 'MONGODB' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of DestinationConnectorType from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/src/python/vectorize_client/models/extraction_chunking_strategy.py b/src/python/vectorize_client/models/extraction_chunking_strategy.py new file mode 100644 index 0000000..0c0fc33 --- /dev/null +++ b/src/python/vectorize_client/models/extraction_chunking_strategy.py @@ -0,0 +1,36 @@ +# coding: utf-8 + +""" + Vectorize API (Beta) + + API for Vectorize services + + The version of the OpenAPI document: 0.0.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class ExtractionChunkingStrategy(str, Enum): + """ + ExtractionChunkingStrategy + """ + + """ + allowed enum values + """ + MARKDOWN = 'markdown' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of ExtractionChunkingStrategy from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/src/python/vectorize_client/models/extraction_result.py b/src/python/vectorize_client/models/extraction_result.py new file mode 100644 index 0000000..7584808 --- /dev/null +++ b/src/python/vectorize_client/models/extraction_result.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Vectorize API (Beta) + + API for Vectorize services + + The version of the OpenAPI document: 0.0.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ExtractionResult(BaseModel): + """ + ExtractionResult + """ # noqa: E501 + success: StrictBool + chunks: Optional[List[StrictStr]] = None + text: Optional[StrictStr] = None + error: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["success", "chunks", "text", "error"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ExtractionResult from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ExtractionResult from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "success": obj.get("success"), + "chunks": obj.get("chunks"), + "text": obj.get("text"), + "error": obj.get("error") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/extraction_type.py b/src/python/vectorize_client/models/extraction_type.py new file mode 100644 index 0000000..c457543 --- /dev/null +++ b/src/python/vectorize_client/models/extraction_type.py @@ -0,0 +1,36 @@ +# coding: utf-8 + +""" + Vectorize API (Beta) + + API for Vectorize services + + The version of the OpenAPI document: 0.0.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class ExtractionType(str, Enum): + """ + ExtractionType + """ + + """ + allowed enum values + """ + IRIS = 'iris' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of ExtractionType from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/src/python/vectorize_client/models/n8_n_config.py b/src/python/vectorize_client/models/n8_n_config.py new file mode 100644 index 0000000..5a1e4f1 --- /dev/null +++ b/src/python/vectorize_client/models/n8_n_config.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Vectorize API (Beta) + + API for Vectorize services + + The version of the OpenAPI document: 0.0.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class N8NConfig(BaseModel): + """ + N8NConfig + """ # noqa: E501 + account: StrictStr + webhook_path: StrictStr = Field(alias="webhookPath") + headers: Optional[Dict[str, StrictStr]] = None + __properties: ClassVar[List[str]] = ["account", "webhookPath", "headers"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of N8NConfig from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of N8NConfig from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "account": obj.get("account"), + "webhookPath": obj.get("webhookPath"), + "headers": obj.get("headers") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/pipeline_events.py b/src/python/vectorize_client/models/pipeline_events.py new file mode 100644 index 0000000..7d9971a --- /dev/null +++ b/src/python/vectorize_client/models/pipeline_events.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + Vectorize API (Beta) + + API for Vectorize services + + The version of the OpenAPI document: 0.0.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PipelineEvents(BaseModel): + """ + PipelineEvents + """ # noqa: E501 + id: StrictStr + type: StrictStr + timestamp: Optional[StrictStr] + details: Optional[Dict[str, Any]] = None + summary: Optional[Dict[str, Any]] = None + __properties: ClassVar[List[str]] = ["id", "type", "timestamp", "details", "summary"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PipelineEvents from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if timestamp (nullable) is None + # and model_fields_set contains the field + if self.timestamp is None and "timestamp" in self.model_fields_set: + _dict['timestamp'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PipelineEvents from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "type": obj.get("type"), + "timestamp": obj.get("timestamp"), + "details": obj.get("details"), + "summary": obj.get("summary") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/pipeline_metrics.py b/src/python/vectorize_client/models/pipeline_metrics.py new file mode 100644 index 0000000..13ad162 --- /dev/null +++ b/src/python/vectorize_client/models/pipeline_metrics.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + Vectorize API (Beta) + + API for Vectorize services + + The version of the OpenAPI document: 0.0.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class PipelineMetrics(BaseModel): + """ + PipelineMetrics + """ # noqa: E501 + timestamp: Optional[StrictStr] + new_objects: Union[StrictFloat, StrictInt] = Field(alias="newObjects") + changed_objects: Union[StrictFloat, StrictInt] = Field(alias="changedObjects") + deleted_objects: Union[StrictFloat, StrictInt] = Field(alias="deletedObjects") + __properties: ClassVar[List[str]] = ["timestamp", "newObjects", "changedObjects", "deletedObjects"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PipelineMetrics from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if timestamp (nullable) is None + # and model_fields_set contains the field + if self.timestamp is None and "timestamp" in self.model_fields_set: + _dict['timestamp'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PipelineMetrics from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "timestamp": obj.get("timestamp"), + "newObjects": obj.get("newObjects"), + "changedObjects": obj.get("changedObjects"), + "deletedObjects": obj.get("deletedObjects") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/remove_user_from_source_connector_request.py b/src/python/vectorize_client/models/remove_user_from_source_connector_request.py new file mode 100644 index 0000000..045d7cb --- /dev/null +++ b/src/python/vectorize_client/models/remove_user_from_source_connector_request.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + Vectorize API (Beta) + + API for Vectorize services + + The version of the OpenAPI document: 0.0.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class RemoveUserFromSourceConnectorRequest(BaseModel): + """ + RemoveUserFromSourceConnectorRequest + """ # noqa: E501 + user_id: StrictStr = Field(alias="userId") + __properties: ClassVar[List[str]] = ["userId"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of RemoveUserFromSourceConnectorRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of RemoveUserFromSourceConnectorRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "userId": obj.get("userId") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/remove_user_from_source_connector_response.py b/src/python/vectorize_client/models/remove_user_from_source_connector_response.py new file mode 100644 index 0000000..cb164a8 --- /dev/null +++ b/src/python/vectorize_client/models/remove_user_from_source_connector_response.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + Vectorize API (Beta) + + API for Vectorize services + + The version of the OpenAPI document: 0.0.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class RemoveUserFromSourceConnectorResponse(BaseModel): + """ + RemoveUserFromSourceConnectorResponse + """ # noqa: E501 + message: StrictStr + __properties: ClassVar[List[str]] = ["message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of RemoveUserFromSourceConnectorResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of RemoveUserFromSourceConnectorResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "message": obj.get("message") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/retrieve_context.py b/src/python/vectorize_client/models/retrieve_context.py new file mode 100644 index 0000000..0cc45c8 --- /dev/null +++ b/src/python/vectorize_client/models/retrieve_context.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Vectorize API (Beta) + + API for Vectorize services + + The version of the OpenAPI document: 0.0.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List +from vectorize_client.models.retrieve_context_message import RetrieveContextMessage +from typing import Optional, Set +from typing_extensions import Self + +class RetrieveContext(BaseModel): + """ + RetrieveContext + """ # noqa: E501 + messages: List[RetrieveContextMessage] + __properties: ClassVar[List[str]] = ["messages"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of RetrieveContext from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in messages (list) + _items = [] + if self.messages: + for _item_messages in self.messages: + if _item_messages: + _items.append(_item_messages.to_dict()) + _dict['messages'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of RetrieveContext from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "messages": [RetrieveContextMessage.from_dict(_item) for _item in obj["messages"]] if obj.get("messages") is not None else None + }) + return _obj + + diff --git a/src/python/vectorize_client/models/retrieve_context_message.py b/src/python/vectorize_client/models/retrieve_context_message.py new file mode 100644 index 0000000..1d20454 --- /dev/null +++ b/src/python/vectorize_client/models/retrieve_context_message.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Vectorize API (Beta) + + API for Vectorize services + + The version of the OpenAPI document: 0.0.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class RetrieveContextMessage(BaseModel): + """ + RetrieveContextMessage + """ # noqa: E501 + role: StrictStr + content: StrictStr + __properties: ClassVar[List[str]] = ["role", "content"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of RetrieveContextMessage from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of RetrieveContextMessage from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "role": obj.get("role"), + "content": obj.get("content") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/schedule_schema_type.py b/src/python/vectorize_client/models/schedule_schema_type.py new file mode 100644 index 0000000..652ebee --- /dev/null +++ b/src/python/vectorize_client/models/schedule_schema_type.py @@ -0,0 +1,38 @@ +# coding: utf-8 + +""" + Vectorize API (Beta) + + API for Vectorize services + + The version of the OpenAPI document: 0.0.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class ScheduleSchemaType(str, Enum): + """ + ScheduleSchemaType + """ + + """ + allowed enum values + """ + MANUAL = 'manual' + REALTIME = 'realtime' + CUSTOM = 'custom' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of ScheduleSchemaType from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/src/python/vectorize_client/models/source_connector_type.py b/src/python/vectorize_client/models/source_connector_type.py new file mode 100644 index 0000000..39a4f25 --- /dev/null +++ b/src/python/vectorize_client/models/source_connector_type.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Vectorize API (Beta) + + API for Vectorize services + + The version of the OpenAPI document: 0.0.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class SourceConnectorType(str, Enum): + """ + SourceConnectorType + """ + + """ + allowed enum values + """ + AWS_S3 = 'AWS_S3' + AZURE_BLOB = 'AZURE_BLOB' + CONFLUENCE = 'CONFLUENCE' + DISCORD = 'DISCORD' + DROPBOX = 'DROPBOX' + GOOGLE_DRIVE_OAUTH = 'GOOGLE_DRIVE_OAUTH' + GOOGLE_DRIVE_OAUTH_MULTI = 'GOOGLE_DRIVE_OAUTH_MULTI' + GOOGLE_DRIVE_OAUTH_MULTI_CUSTOM = 'GOOGLE_DRIVE_OAUTH_MULTI_CUSTOM' + FIRECRAWL = 'FIRECRAWL' + GCS = 'GCS' + GOOGLE_DRIVE = 'GOOGLE_DRIVE' + INTERCOM = 'INTERCOM' + ONE_DRIVE = 'ONE_DRIVE' + SHAREPOINT = 'SHAREPOINT' + WEB_CRAWLER = 'WEB_CRAWLER' + FILE_UPLOAD = 'FILE_UPLOAD' + SALESFORCE = 'SALESFORCE' + ZENDESK = 'ZENDESK' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of SourceConnectorType from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/src/python/vectorize_client/models/update_ai_platform_connector_response.py b/src/python/vectorize_client/models/update_ai_platform_connector_response.py new file mode 100644 index 0000000..1e82a2b --- /dev/null +++ b/src/python/vectorize_client/models/update_ai_platform_connector_response.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Vectorize API (Beta) + + API for Vectorize services + + The version of the OpenAPI document: 0.0.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List +from vectorize_client.models.updated_ai_platform_connector_data import UpdatedAIPlatformConnectorData +from typing import Optional, Set +from typing_extensions import Self + +class UpdateAIPlatformConnectorResponse(BaseModel): + """ + UpdateAIPlatformConnectorResponse + """ # noqa: E501 + message: StrictStr + data: UpdatedAIPlatformConnectorData + __properties: ClassVar[List[str]] = ["message", "data"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of UpdateAIPlatformConnectorResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of UpdateAIPlatformConnectorResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "message": obj.get("message"), + "data": UpdatedAIPlatformConnectorData.from_dict(obj["data"]) if obj.get("data") is not None else None + }) + return _obj + + diff --git a/src/python/vectorize_client/models/update_destination_connector_request.py b/src/python/vectorize_client/models/update_destination_connector_request.py new file mode 100644 index 0000000..6c366a1 --- /dev/null +++ b/src/python/vectorize_client/models/update_destination_connector_request.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + Vectorize API (Beta) + + API for Vectorize services + + The version of the OpenAPI document: 0.0.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class UpdateDestinationConnectorRequest(BaseModel): + """ + UpdateDestinationConnectorRequest + """ # noqa: E501 + config: Dict[str, Any] + __properties: ClassVar[List[str]] = ["config"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of UpdateDestinationConnectorRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of UpdateDestinationConnectorRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "config": obj.get("config") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/update_destination_connector_response.py b/src/python/vectorize_client/models/update_destination_connector_response.py new file mode 100644 index 0000000..571cbf7 --- /dev/null +++ b/src/python/vectorize_client/models/update_destination_connector_response.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Vectorize API (Beta) + + API for Vectorize services + + The version of the OpenAPI document: 0.0.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List +from vectorize_client.models.updated_destination_connector_data import UpdatedDestinationConnectorData +from typing import Optional, Set +from typing_extensions import Self + +class UpdateDestinationConnectorResponse(BaseModel): + """ + UpdateDestinationConnectorResponse + """ # noqa: E501 + message: StrictStr + data: UpdatedDestinationConnectorData + __properties: ClassVar[List[str]] = ["message", "data"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of UpdateDestinationConnectorResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of UpdateDestinationConnectorResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "message": obj.get("message"), + "data": UpdatedDestinationConnectorData.from_dict(obj["data"]) if obj.get("data") is not None else None + }) + return _obj + + diff --git a/src/python/vectorize_client/models/update_source_connector_response.py b/src/python/vectorize_client/models/update_source_connector_response.py new file mode 100644 index 0000000..b93281c --- /dev/null +++ b/src/python/vectorize_client/models/update_source_connector_response.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Vectorize API (Beta) + + API for Vectorize services + + The version of the OpenAPI document: 0.0.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List +from vectorize_client.models.update_source_connector_response_data import UpdateSourceConnectorResponseData +from typing import Optional, Set +from typing_extensions import Self + +class UpdateSourceConnectorResponse(BaseModel): + """ + UpdateSourceConnectorResponse + """ # noqa: E501 + message: StrictStr + data: UpdateSourceConnectorResponseData + __properties: ClassVar[List[str]] = ["message", "data"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of UpdateSourceConnectorResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of UpdateSourceConnectorResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "message": obj.get("message"), + "data": UpdateSourceConnectorResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None + }) + return _obj + + diff --git a/src/python/vectorize_client/models/update_source_connector_response_data.py b/src/python/vectorize_client/models/update_source_connector_response_data.py new file mode 100644 index 0000000..4cce620 --- /dev/null +++ b/src/python/vectorize_client/models/update_source_connector_response_data.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Vectorize API (Beta) + + API for Vectorize services + + The version of the OpenAPI document: 0.0.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from vectorize_client.models.source_connector import SourceConnector +from typing import Optional, Set +from typing_extensions import Self + +class UpdateSourceConnectorResponseData(BaseModel): + """ + UpdateSourceConnectorResponseData + """ # noqa: E501 + updated_connector: SourceConnector = Field(alias="updatedConnector") + pipeline_ids: Optional[List[StrictStr]] = Field(default=None, alias="pipelineIds") + __properties: ClassVar[List[str]] = ["updatedConnector", "pipelineIds"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of UpdateSourceConnectorResponseData from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of updated_connector + if self.updated_connector: + _dict['updatedConnector'] = self.updated_connector.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of UpdateSourceConnectorResponseData from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "updatedConnector": SourceConnector.from_dict(obj["updatedConnector"]) if obj.get("updatedConnector") is not None else None, + "pipelineIds": obj.get("pipelineIds") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/update_user_in_source_connector_request.py b/src/python/vectorize_client/models/update_user_in_source_connector_request.py new file mode 100644 index 0000000..32494ba --- /dev/null +++ b/src/python/vectorize_client/models/update_user_in_source_connector_request.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Vectorize API (Beta) + + API for Vectorize services + + The version of the OpenAPI document: 0.0.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class UpdateUserInSourceConnectorRequest(BaseModel): + """ + UpdateUserInSourceConnectorRequest + """ # noqa: E501 + user_id: StrictStr = Field(alias="userId") + file_ids: Optional[List[StrictStr]] = Field(default=None, alias="fileIds") + refresh_token: Optional[StrictStr] = Field(default=None, alias="refreshToken") + __properties: ClassVar[List[str]] = ["userId", "fileIds", "refreshToken"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of UpdateUserInSourceConnectorRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of UpdateUserInSourceConnectorRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "userId": obj.get("userId"), + "fileIds": obj.get("fileIds"), + "refreshToken": obj.get("refreshToken") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/update_user_in_source_connector_response.py b/src/python/vectorize_client/models/update_user_in_source_connector_response.py new file mode 100644 index 0000000..d55be0a --- /dev/null +++ b/src/python/vectorize_client/models/update_user_in_source_connector_response.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + Vectorize API (Beta) + + API for Vectorize services + + The version of the OpenAPI document: 0.0.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class UpdateUserInSourceConnectorResponse(BaseModel): + """ + UpdateUserInSourceConnectorResponse + """ # noqa: E501 + message: StrictStr + __properties: ClassVar[List[str]] = ["message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of UpdateUserInSourceConnectorResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of UpdateUserInSourceConnectorResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "message": obj.get("message") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/updated_ai_platform_connector_data.py b/src/python/vectorize_client/models/updated_ai_platform_connector_data.py new file mode 100644 index 0000000..058d5bb --- /dev/null +++ b/src/python/vectorize_client/models/updated_ai_platform_connector_data.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Vectorize API (Beta) + + API for Vectorize services + + The version of the OpenAPI document: 0.0.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from vectorize_client.models.ai_platform import AIPlatform +from typing import Optional, Set +from typing_extensions import Self + +class UpdatedAIPlatformConnectorData(BaseModel): + """ + UpdatedAIPlatformConnectorData + """ # noqa: E501 + updated_connector: AIPlatform = Field(alias="updatedConnector") + pipeline_ids: Optional[List[StrictStr]] = Field(default=None, alias="pipelineIds") + __properties: ClassVar[List[str]] = ["updatedConnector", "pipelineIds"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of UpdatedAIPlatformConnectorData from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of updated_connector + if self.updated_connector: + _dict['updatedConnector'] = self.updated_connector.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of UpdatedAIPlatformConnectorData from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "updatedConnector": AIPlatform.from_dict(obj["updatedConnector"]) if obj.get("updatedConnector") is not None else None, + "pipelineIds": obj.get("pipelineIds") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/updated_destination_connector_data.py b/src/python/vectorize_client/models/updated_destination_connector_data.py new file mode 100644 index 0000000..6801526 --- /dev/null +++ b/src/python/vectorize_client/models/updated_destination_connector_data.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Vectorize API (Beta) + + API for Vectorize services + + The version of the OpenAPI document: 0.0.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from vectorize_client.models.destination_connector import DestinationConnector +from typing import Optional, Set +from typing_extensions import Self + +class UpdatedDestinationConnectorData(BaseModel): + """ + UpdatedDestinationConnectorData + """ # noqa: E501 + updated_connector: DestinationConnector = Field(alias="updatedConnector") + pipeline_ids: Optional[List[StrictStr]] = Field(default=None, alias="pipelineIds") + __properties: ClassVar[List[str]] = ["updatedConnector", "pipelineIds"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of UpdatedDestinationConnectorData from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of updated_connector + if self.updated_connector: + _dict['updatedConnector'] = self.updated_connector.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of UpdatedDestinationConnectorData from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "updatedConnector": DestinationConnector.from_dict(obj["updatedConnector"]) if obj.get("updatedConnector") is not None else None, + "pipelineIds": obj.get("pipelineIds") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/upload_file.py b/src/python/vectorize_client/models/upload_file.py new file mode 100644 index 0000000..d4e97ea --- /dev/null +++ b/src/python/vectorize_client/models/upload_file.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Vectorize API (Beta) + + API for Vectorize services + + The version of the OpenAPI document: 0.0.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class UploadFile(BaseModel): + """ + UploadFile + """ # noqa: E501 + key: StrictStr + name: StrictStr + size: Union[StrictFloat, StrictInt] + extension: Optional[StrictStr] = None + last_modified: Optional[StrictStr] = Field(alias="lastModified") + metadata: Dict[str, StrictStr] + __properties: ClassVar[List[str]] = ["key", "name", "size", "extension", "lastModified", "metadata"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of UploadFile from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if last_modified (nullable) is None + # and model_fields_set contains the field + if self.last_modified is None and "last_modified" in self.model_fields_set: + _dict['lastModified'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of UploadFile from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "key": obj.get("key"), + "name": obj.get("name"), + "size": obj.get("size"), + "extension": obj.get("extension"), + "lastModified": obj.get("lastModified"), + "metadata": obj.get("metadata") + }) + return _obj + + diff --git a/src/ts/src/models/AIPlatformConfigSchema.ts b/src/ts/src/models/AIPlatformConfigSchema.ts new file mode 100644 index 0000000..eb3e491 --- /dev/null +++ b/src/ts/src/models/AIPlatformConfigSchema.ts @@ -0,0 +1,165 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API (Beta) + * API for Vectorize services + * + * The version of the OpenAPI document: 0.0.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AIPlatformConfigSchema + */ +export interface AIPlatformConfigSchema { + /** + * + * @type {string} + * @memberof AIPlatformConfigSchema + */ + embeddingModel?: AIPlatformConfigSchemaEmbeddingModelEnum; + /** + * + * @type {string} + * @memberof AIPlatformConfigSchema + */ + chunkingStrategy?: AIPlatformConfigSchemaChunkingStrategyEnum; + /** + * + * @type {number} + * @memberof AIPlatformConfigSchema + */ + chunkSize?: number; + /** + * + * @type {number} + * @memberof AIPlatformConfigSchema + */ + chunkOverlap?: number; + /** + * + * @type {number} + * @memberof AIPlatformConfigSchema + */ + dimensions?: number; + /** + * + * @type {string} + * @memberof AIPlatformConfigSchema + */ + extractionStrategy?: AIPlatformConfigSchemaExtractionStrategyEnum; +} + + +/** + * @export + */ +export const AIPlatformConfigSchemaEmbeddingModelEnum = { + VectorizeOpenAiTextEmbedding2: 'VECTORIZE_OPEN_AI_TEXT_EMBEDDING_2', + VectorizeOpenAiTextEmbedding3Large: 'VECTORIZE_OPEN_AI_TEXT_EMBEDDING_3_LARGE', + VectorizeOpenAiTextEmbedding3Small: 'VECTORIZE_OPEN_AI_TEXT_EMBEDDING_3_SMALL', + VectorizeVoyageAi2: 'VECTORIZE_VOYAGE_AI_2', + VectorizeVoyageAi3: 'VECTORIZE_VOYAGE_AI_3', + VectorizeVoyageAi3Lite: 'VECTORIZE_VOYAGE_AI_3_LITE', + VectorizeVoyageAi3Large: 'VECTORIZE_VOYAGE_AI_3_LARGE', + VectorizeVoyageAiFinance2: 'VECTORIZE_VOYAGE_AI_FINANCE_2', + VectorizeVoyageAiMultilingual2: 'VECTORIZE_VOYAGE_AI_MULTILINGUAL_2', + VectorizeVoyageAiLaw2: 'VECTORIZE_VOYAGE_AI_LAW_2', + VectorizeVoyageAiCode2: 'VECTORIZE_VOYAGE_AI_CODE_2', + VectorizeTitanTextEmbedding2: 'VECTORIZE_TITAN_TEXT_EMBEDDING_2', + VectorizeTitanTextEmbedding1: 'VECTORIZE_TITAN_TEXT_EMBEDDING_1', + OpenAiTextEmbedding2: 'OPEN_AI_TEXT_EMBEDDING_2', + OpenAiTextEmbedding3Small: 'OPEN_AI_TEXT_EMBEDDING_3_SMALL', + OpenAiTextEmbedding3Large: 'OPEN_AI_TEXT_EMBEDDING_3_LARGE', + VoyageAi2: 'VOYAGE_AI_2', + VoyageAi3: 'VOYAGE_AI_3', + VoyageAi3Lite: 'VOYAGE_AI_3_LITE', + VoyageAi3Large: 'VOYAGE_AI_3_LARGE', + VoyageAiFinance2: 'VOYAGE_AI_FINANCE_2', + VoyageAiMultilingual2: 'VOYAGE_AI_MULTILINGUAL_2', + VoyageAiLaw2: 'VOYAGE_AI_LAW_2', + VoyageAiCode2: 'VOYAGE_AI_CODE_2', + TitanTextEmbedding1: 'TITAN_TEXT_EMBEDDING_1', + TitanTextEmbedding2: 'TITAN_TEXT_EMBEDDING_2', + VertexTextEmbedding4: 'VERTEX_TEXT_EMBEDDING_4', + VertexTextEmbeddingGecko3: 'VERTEX_TEXT_EMBEDDING_GECKO_3', + VertexGeckoMultilingual1: 'VERTEX_GECKO_MULTILINGUAL_1', + VertexMultilingualEmbedding2: 'VERTEX_MULTILINGUAL_EMBEDDING_2' +} as const; +export type AIPlatformConfigSchemaEmbeddingModelEnum = typeof AIPlatformConfigSchemaEmbeddingModelEnum[keyof typeof AIPlatformConfigSchemaEmbeddingModelEnum]; + +/** + * @export + */ +export const AIPlatformConfigSchemaChunkingStrategyEnum = { + Fixed: 'FIXED', + Sentence: 'SENTENCE', + Paragraph: 'PARAGRAPH', + Markdown: 'MARKDOWN' +} as const; +export type AIPlatformConfigSchemaChunkingStrategyEnum = typeof AIPlatformConfigSchemaChunkingStrategyEnum[keyof typeof AIPlatformConfigSchemaChunkingStrategyEnum]; + +/** + * @export + */ +export const AIPlatformConfigSchemaExtractionStrategyEnum = { + Fast: 'FAST', + Iris: 'IRIS', + Mixed: 'MIXED' +} as const; +export type AIPlatformConfigSchemaExtractionStrategyEnum = typeof AIPlatformConfigSchemaExtractionStrategyEnum[keyof typeof AIPlatformConfigSchemaExtractionStrategyEnum]; + + +/** + * Check if a given object implements the AIPlatformConfigSchema interface. + */ +export function instanceOfAIPlatformConfigSchema(value: object): value is AIPlatformConfigSchema { + return true; +} + +export function AIPlatformConfigSchemaFromJSON(json: any): AIPlatformConfigSchema { + return AIPlatformConfigSchemaFromJSONTyped(json, false); +} + +export function AIPlatformConfigSchemaFromJSONTyped(json: any, ignoreDiscriminator: boolean): AIPlatformConfigSchema { + if (json == null) { + return json; + } + return { + + 'embeddingModel': json['embeddingModel'] == null ? undefined : json['embeddingModel'], + 'chunkingStrategy': json['chunkingStrategy'] == null ? undefined : json['chunkingStrategy'], + 'chunkSize': json['chunkSize'] == null ? undefined : json['chunkSize'], + 'chunkOverlap': json['chunkOverlap'] == null ? undefined : json['chunkOverlap'], + 'dimensions': json['dimensions'] == null ? undefined : json['dimensions'], + 'extractionStrategy': json['extractionStrategy'] == null ? undefined : json['extractionStrategy'], + }; +} + +export function AIPlatformConfigSchemaToJSON(json: any): AIPlatformConfigSchema { + return AIPlatformConfigSchemaToJSONTyped(json, false); +} + +export function AIPlatformConfigSchemaToJSONTyped(value?: AIPlatformConfigSchema | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'embeddingModel': value['embeddingModel'], + 'chunkingStrategy': value['chunkingStrategy'], + 'chunkSize': value['chunkSize'], + 'chunkOverlap': value['chunkOverlap'], + 'dimensions': value['dimensions'], + 'extractionStrategy': value['extractionStrategy'], + }; +} + diff --git a/src/ts/src/models/AIPlatformType.ts b/src/ts/src/models/AIPlatformType.ts new file mode 100644 index 0000000..0438c9d --- /dev/null +++ b/src/ts/src/models/AIPlatformType.ts @@ -0,0 +1,56 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API (Beta) + * API for Vectorize services + * + * The version of the OpenAPI document: 0.0.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const AIPlatformType = { + Bedrock: 'BEDROCK', + Vertex: 'VERTEX', + Openai: 'OPENAI', + Voyage: 'VOYAGE', + Vectorize: 'VECTORIZE' +} as const; +export type AIPlatformType = typeof AIPlatformType[keyof typeof AIPlatformType]; + + +export function instanceOfAIPlatformType(value: any): boolean { + for (const key in AIPlatformType) { + if (Object.prototype.hasOwnProperty.call(AIPlatformType, key)) { + if (AIPlatformType[key as keyof typeof AIPlatformType] === value) { + return true; + } + } + } + return false; +} + +export function AIPlatformTypeFromJSON(json: any): AIPlatformType { + return AIPlatformTypeFromJSONTyped(json, false); +} + +export function AIPlatformTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): AIPlatformType { + return json as AIPlatformType; +} + +export function AIPlatformTypeToJSON(value?: AIPlatformType | null): any { + return value as any; +} + +export function AIPlatformTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): AIPlatformType { + return value as AIPlatformType; +} + diff --git a/src/ts/src/models/AddUserFromSourceConnectorResponse.ts b/src/ts/src/models/AddUserFromSourceConnectorResponse.ts new file mode 100644 index 0000000..5514ae1 --- /dev/null +++ b/src/ts/src/models/AddUserFromSourceConnectorResponse.ts @@ -0,0 +1,66 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API (Beta) + * API for Vectorize services + * + * The version of the OpenAPI document: 0.0.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AddUserFromSourceConnectorResponse + */ +export interface AddUserFromSourceConnectorResponse { + /** + * + * @type {string} + * @memberof AddUserFromSourceConnectorResponse + */ + message: string; +} + +/** + * Check if a given object implements the AddUserFromSourceConnectorResponse interface. + */ +export function instanceOfAddUserFromSourceConnectorResponse(value: object): value is AddUserFromSourceConnectorResponse { + if (!('message' in value) || value['message'] === undefined) return false; + return true; +} + +export function AddUserFromSourceConnectorResponseFromJSON(json: any): AddUserFromSourceConnectorResponse { + return AddUserFromSourceConnectorResponseFromJSONTyped(json, false); +} + +export function AddUserFromSourceConnectorResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddUserFromSourceConnectorResponse { + if (json == null) { + return json; + } + return { + + 'message': json['message'], + }; +} + +export function AddUserFromSourceConnectorResponseToJSON(json: any): AddUserFromSourceConnectorResponse { + return AddUserFromSourceConnectorResponseToJSONTyped(json, false); +} + +export function AddUserFromSourceConnectorResponseToJSONTyped(value?: AddUserFromSourceConnectorResponse | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'message': value['message'], + }; +} + diff --git a/src/ts/src/models/AddUserToSourceConnectorRequest.ts b/src/ts/src/models/AddUserToSourceConnectorRequest.ts new file mode 100644 index 0000000..f3f0ad2 --- /dev/null +++ b/src/ts/src/models/AddUserToSourceConnectorRequest.ts @@ -0,0 +1,83 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API (Beta) + * API for Vectorize services + * + * The version of the OpenAPI document: 0.0.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface AddUserToSourceConnectorRequest + */ +export interface AddUserToSourceConnectorRequest { + /** + * + * @type {string} + * @memberof AddUserToSourceConnectorRequest + */ + userId: string; + /** + * + * @type {Array} + * @memberof AddUserToSourceConnectorRequest + */ + fileIds?: Array; + /** + * + * @type {string} + * @memberof AddUserToSourceConnectorRequest + */ + refreshToken: string; +} + +/** + * Check if a given object implements the AddUserToSourceConnectorRequest interface. + */ +export function instanceOfAddUserToSourceConnectorRequest(value: object): value is AddUserToSourceConnectorRequest { + if (!('userId' in value) || value['userId'] === undefined) return false; + if (!('refreshToken' in value) || value['refreshToken'] === undefined) return false; + return true; +} + +export function AddUserToSourceConnectorRequestFromJSON(json: any): AddUserToSourceConnectorRequest { + return AddUserToSourceConnectorRequestFromJSONTyped(json, false); +} + +export function AddUserToSourceConnectorRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddUserToSourceConnectorRequest { + if (json == null) { + return json; + } + return { + + 'userId': json['userId'], + 'fileIds': json['fileIds'] == null ? undefined : json['fileIds'], + 'refreshToken': json['refreshToken'], + }; +} + +export function AddUserToSourceConnectorRequestToJSON(json: any): AddUserToSourceConnectorRequest { + return AddUserToSourceConnectorRequestToJSONTyped(json, false); +} + +export function AddUserToSourceConnectorRequestToJSONTyped(value?: AddUserToSourceConnectorRequest | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'userId': value['userId'], + 'fileIds': value['fileIds'], + 'refreshToken': value['refreshToken'], + }; +} + diff --git a/src/ts/src/models/CreateAIPlatformConnector.ts b/src/ts/src/models/CreateAIPlatformConnector.ts new file mode 100644 index 0000000..49d2b07 --- /dev/null +++ b/src/ts/src/models/CreateAIPlatformConnector.ts @@ -0,0 +1,93 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API (Beta) + * API for Vectorize services + * + * The version of the OpenAPI document: 0.0.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { AIPlatformType } from './AIPlatformType'; +import { + AIPlatformTypeFromJSON, + AIPlatformTypeFromJSONTyped, + AIPlatformTypeToJSON, + AIPlatformTypeToJSONTyped, +} from './AIPlatformType'; + +/** + * + * @export + * @interface CreateAIPlatformConnector + */ +export interface CreateAIPlatformConnector { + /** + * + * @type {string} + * @memberof CreateAIPlatformConnector + */ + name: string; + /** + * + * @type {AIPlatformType} + * @memberof CreateAIPlatformConnector + */ + type: AIPlatformType; + /** + * + * @type {{ [key: string]: any | null; }} + * @memberof CreateAIPlatformConnector + */ + config?: { [key: string]: any | null; }; +} + + + +/** + * Check if a given object implements the CreateAIPlatformConnector interface. + */ +export function instanceOfCreateAIPlatformConnector(value: object): value is CreateAIPlatformConnector { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('type' in value) || value['type'] === undefined) return false; + return true; +} + +export function CreateAIPlatformConnectorFromJSON(json: any): CreateAIPlatformConnector { + return CreateAIPlatformConnectorFromJSONTyped(json, false); +} + +export function CreateAIPlatformConnectorFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateAIPlatformConnector { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'type': AIPlatformTypeFromJSON(json['type']), + 'config': json['config'] == null ? undefined : json['config'], + }; +} + +export function CreateAIPlatformConnectorToJSON(json: any): CreateAIPlatformConnector { + return CreateAIPlatformConnectorToJSONTyped(json, false); +} + +export function CreateAIPlatformConnectorToJSONTyped(value?: CreateAIPlatformConnector | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'type': AIPlatformTypeToJSON(value['type']), + 'config': value['config'], + }; +} + diff --git a/src/ts/src/models/CreateDestinationConnector.ts b/src/ts/src/models/CreateDestinationConnector.ts new file mode 100644 index 0000000..70fb426 --- /dev/null +++ b/src/ts/src/models/CreateDestinationConnector.ts @@ -0,0 +1,93 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API (Beta) + * API for Vectorize services + * + * The version of the OpenAPI document: 0.0.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { DestinationConnectorType } from './DestinationConnectorType'; +import { + DestinationConnectorTypeFromJSON, + DestinationConnectorTypeFromJSONTyped, + DestinationConnectorTypeToJSON, + DestinationConnectorTypeToJSONTyped, +} from './DestinationConnectorType'; + +/** + * + * @export + * @interface CreateDestinationConnector + */ +export interface CreateDestinationConnector { + /** + * + * @type {string} + * @memberof CreateDestinationConnector + */ + name: string; + /** + * + * @type {DestinationConnectorType} + * @memberof CreateDestinationConnector + */ + type: DestinationConnectorType; + /** + * + * @type {{ [key: string]: any | null; }} + * @memberof CreateDestinationConnector + */ + config?: { [key: string]: any | null; }; +} + + + +/** + * Check if a given object implements the CreateDestinationConnector interface. + */ +export function instanceOfCreateDestinationConnector(value: object): value is CreateDestinationConnector { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('type' in value) || value['type'] === undefined) return false; + return true; +} + +export function CreateDestinationConnectorFromJSON(json: any): CreateDestinationConnector { + return CreateDestinationConnectorFromJSONTyped(json, false); +} + +export function CreateDestinationConnectorFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateDestinationConnector { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'type': DestinationConnectorTypeFromJSON(json['type']), + 'config': json['config'] == null ? undefined : json['config'], + }; +} + +export function CreateDestinationConnectorToJSON(json: any): CreateDestinationConnector { + return CreateDestinationConnectorToJSONTyped(json, false); +} + +export function CreateDestinationConnectorToJSONTyped(value?: CreateDestinationConnector | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'type': DestinationConnectorTypeToJSON(value['type']), + 'config': value['config'], + }; +} + diff --git a/src/ts/src/models/CreateSourceConnector.ts b/src/ts/src/models/CreateSourceConnector.ts new file mode 100644 index 0000000..fba4457 --- /dev/null +++ b/src/ts/src/models/CreateSourceConnector.ts @@ -0,0 +1,93 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API (Beta) + * API for Vectorize services + * + * The version of the OpenAPI document: 0.0.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { SourceConnectorType } from './SourceConnectorType'; +import { + SourceConnectorTypeFromJSON, + SourceConnectorTypeFromJSONTyped, + SourceConnectorTypeToJSON, + SourceConnectorTypeToJSONTyped, +} from './SourceConnectorType'; + +/** + * + * @export + * @interface CreateSourceConnector + */ +export interface CreateSourceConnector { + /** + * + * @type {string} + * @memberof CreateSourceConnector + */ + name: string; + /** + * + * @type {SourceConnectorType} + * @memberof CreateSourceConnector + */ + type: SourceConnectorType; + /** + * + * @type {{ [key: string]: any | null; }} + * @memberof CreateSourceConnector + */ + config?: { [key: string]: any | null; }; +} + + + +/** + * Check if a given object implements the CreateSourceConnector interface. + */ +export function instanceOfCreateSourceConnector(value: object): value is CreateSourceConnector { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('type' in value) || value['type'] === undefined) return false; + return true; +} + +export function CreateSourceConnectorFromJSON(json: any): CreateSourceConnector { + return CreateSourceConnectorFromJSONTyped(json, false); +} + +export function CreateSourceConnectorFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateSourceConnector { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'type': SourceConnectorTypeFromJSON(json['type']), + 'config': json['config'] == null ? undefined : json['config'], + }; +} + +export function CreateSourceConnectorToJSON(json: any): CreateSourceConnector { + return CreateSourceConnectorToJSONTyped(json, false); +} + +export function CreateSourceConnectorToJSONTyped(value?: CreateSourceConnector | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'type': SourceConnectorTypeToJSON(value['type']), + 'config': value['config'], + }; +} + diff --git a/src/ts/src/models/CreatedAIPlatformConnector.ts b/src/ts/src/models/CreatedAIPlatformConnector.ts new file mode 100644 index 0000000..edb50ac --- /dev/null +++ b/src/ts/src/models/CreatedAIPlatformConnector.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API (Beta) + * API for Vectorize services + * + * The version of the OpenAPI document: 0.0.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface CreatedAIPlatformConnector + */ +export interface CreatedAIPlatformConnector { + /** + * + * @type {string} + * @memberof CreatedAIPlatformConnector + */ + name: string; + /** + * + * @type {string} + * @memberof CreatedAIPlatformConnector + */ + id: string; +} + +/** + * Check if a given object implements the CreatedAIPlatformConnector interface. + */ +export function instanceOfCreatedAIPlatformConnector(value: object): value is CreatedAIPlatformConnector { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('id' in value) || value['id'] === undefined) return false; + return true; +} + +export function CreatedAIPlatformConnectorFromJSON(json: any): CreatedAIPlatformConnector { + return CreatedAIPlatformConnectorFromJSONTyped(json, false); +} + +export function CreatedAIPlatformConnectorFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreatedAIPlatformConnector { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'id': json['id'], + }; +} + +export function CreatedAIPlatformConnectorToJSON(json: any): CreatedAIPlatformConnector { + return CreatedAIPlatformConnectorToJSONTyped(json, false); +} + +export function CreatedAIPlatformConnectorToJSONTyped(value?: CreatedAIPlatformConnector | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'id': value['id'], + }; +} + diff --git a/src/ts/src/models/CreatedDestinationConnector.ts b/src/ts/src/models/CreatedDestinationConnector.ts new file mode 100644 index 0000000..4e0bbcc --- /dev/null +++ b/src/ts/src/models/CreatedDestinationConnector.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API (Beta) + * API for Vectorize services + * + * The version of the OpenAPI document: 0.0.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface CreatedDestinationConnector + */ +export interface CreatedDestinationConnector { + /** + * + * @type {string} + * @memberof CreatedDestinationConnector + */ + name: string; + /** + * + * @type {string} + * @memberof CreatedDestinationConnector + */ + id: string; +} + +/** + * Check if a given object implements the CreatedDestinationConnector interface. + */ +export function instanceOfCreatedDestinationConnector(value: object): value is CreatedDestinationConnector { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('id' in value) || value['id'] === undefined) return false; + return true; +} + +export function CreatedDestinationConnectorFromJSON(json: any): CreatedDestinationConnector { + return CreatedDestinationConnectorFromJSONTyped(json, false); +} + +export function CreatedDestinationConnectorFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreatedDestinationConnector { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'id': json['id'], + }; +} + +export function CreatedDestinationConnectorToJSON(json: any): CreatedDestinationConnector { + return CreatedDestinationConnectorToJSONTyped(json, false); +} + +export function CreatedDestinationConnectorToJSONTyped(value?: CreatedDestinationConnector | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'id': value['id'], + }; +} + diff --git a/src/ts/src/models/CreatedSourceConnector.ts b/src/ts/src/models/CreatedSourceConnector.ts new file mode 100644 index 0000000..95df810 --- /dev/null +++ b/src/ts/src/models/CreatedSourceConnector.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API (Beta) + * API for Vectorize services + * + * The version of the OpenAPI document: 0.0.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface CreatedSourceConnector + */ +export interface CreatedSourceConnector { + /** + * + * @type {string} + * @memberof CreatedSourceConnector + */ + name: string; + /** + * + * @type {string} + * @memberof CreatedSourceConnector + */ + id: string; +} + +/** + * Check if a given object implements the CreatedSourceConnector interface. + */ +export function instanceOfCreatedSourceConnector(value: object): value is CreatedSourceConnector { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('id' in value) || value['id'] === undefined) return false; + return true; +} + +export function CreatedSourceConnectorFromJSON(json: any): CreatedSourceConnector { + return CreatedSourceConnectorFromJSONTyped(json, false); +} + +export function CreatedSourceConnectorFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreatedSourceConnector { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'id': json['id'], + }; +} + +export function CreatedSourceConnectorToJSON(json: any): CreatedSourceConnector { + return CreatedSourceConnectorToJSONTyped(json, false); +} + +export function CreatedSourceConnectorToJSONTyped(value?: CreatedSourceConnector | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'id': value['id'], + }; +} + diff --git a/src/ts/src/models/DeepResearchResult.ts b/src/ts/src/models/DeepResearchResult.ts new file mode 100644 index 0000000..dc55687 --- /dev/null +++ b/src/ts/src/models/DeepResearchResult.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API (Beta) + * API for Vectorize services + * + * The version of the OpenAPI document: 0.0.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface DeepResearchResult + */ +export interface DeepResearchResult { + /** + * + * @type {boolean} + * @memberof DeepResearchResult + */ + success: boolean; + /** + * + * @type {Array} + * @memberof DeepResearchResult + */ + events?: Array; + /** + * + * @type {string} + * @memberof DeepResearchResult + */ + markdown?: string; + /** + * + * @type {string} + * @memberof DeepResearchResult + */ + error?: string; +} + +/** + * Check if a given object implements the DeepResearchResult interface. + */ +export function instanceOfDeepResearchResult(value: object): value is DeepResearchResult { + if (!('success' in value) || value['success'] === undefined) return false; + return true; +} + +export function DeepResearchResultFromJSON(json: any): DeepResearchResult { + return DeepResearchResultFromJSONTyped(json, false); +} + +export function DeepResearchResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeepResearchResult { + if (json == null) { + return json; + } + return { + + 'success': json['success'], + 'events': json['events'] == null ? undefined : json['events'], + 'markdown': json['markdown'] == null ? undefined : json['markdown'], + 'error': json['error'] == null ? undefined : json['error'], + }; +} + +export function DeepResearchResultToJSON(json: any): DeepResearchResult { + return DeepResearchResultToJSONTyped(json, false); +} + +export function DeepResearchResultToJSONTyped(value?: DeepResearchResult | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'success': value['success'], + 'events': value['events'], + 'markdown': value['markdown'], + 'error': value['error'], + }; +} + diff --git a/src/ts/src/models/DestinationConnectorType.ts b/src/ts/src/models/DestinationConnectorType.ts new file mode 100644 index 0000000..987a657 --- /dev/null +++ b/src/ts/src/models/DestinationConnectorType.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API (Beta) + * API for Vectorize services + * + * The version of the OpenAPI document: 0.0.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const DestinationConnectorType = { + Capella: 'CAPELLA', + Datastax: 'DATASTAX', + Elastic: 'ELASTIC', + Pinecone: 'PINECONE', + Singlestore: 'SINGLESTORE', + Milvus: 'MILVUS', + Postgresql: 'POSTGRESQL', + Qdrant: 'QDRANT', + Weaviate: 'WEAVIATE', + Azureaisearch: 'AZUREAISEARCH', + Vectorize: 'VECTORIZE', + Chroma: 'CHROMA', + Mongodb: 'MONGODB' +} as const; +export type DestinationConnectorType = typeof DestinationConnectorType[keyof typeof DestinationConnectorType]; + + +export function instanceOfDestinationConnectorType(value: any): boolean { + for (const key in DestinationConnectorType) { + if (Object.prototype.hasOwnProperty.call(DestinationConnectorType, key)) { + if (DestinationConnectorType[key as keyof typeof DestinationConnectorType] === value) { + return true; + } + } + } + return false; +} + +export function DestinationConnectorTypeFromJSON(json: any): DestinationConnectorType { + return DestinationConnectorTypeFromJSONTyped(json, false); +} + +export function DestinationConnectorTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): DestinationConnectorType { + return json as DestinationConnectorType; +} + +export function DestinationConnectorTypeToJSON(value?: DestinationConnectorType | null): any { + return value as any; +} + +export function DestinationConnectorTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): DestinationConnectorType { + return value as DestinationConnectorType; +} + diff --git a/src/ts/src/models/ExtractionChunkingStrategy.ts b/src/ts/src/models/ExtractionChunkingStrategy.ts new file mode 100644 index 0000000..f23b595 --- /dev/null +++ b/src/ts/src/models/ExtractionChunkingStrategy.ts @@ -0,0 +1,52 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API (Beta) + * API for Vectorize services + * + * The version of the OpenAPI document: 0.0.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const ExtractionChunkingStrategy = { + Markdown: 'markdown' +} as const; +export type ExtractionChunkingStrategy = typeof ExtractionChunkingStrategy[keyof typeof ExtractionChunkingStrategy]; + + +export function instanceOfExtractionChunkingStrategy(value: any): boolean { + for (const key in ExtractionChunkingStrategy) { + if (Object.prototype.hasOwnProperty.call(ExtractionChunkingStrategy, key)) { + if (ExtractionChunkingStrategy[key as keyof typeof ExtractionChunkingStrategy] === value) { + return true; + } + } + } + return false; +} + +export function ExtractionChunkingStrategyFromJSON(json: any): ExtractionChunkingStrategy { + return ExtractionChunkingStrategyFromJSONTyped(json, false); +} + +export function ExtractionChunkingStrategyFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExtractionChunkingStrategy { + return json as ExtractionChunkingStrategy; +} + +export function ExtractionChunkingStrategyToJSON(value?: ExtractionChunkingStrategy | null): any { + return value as any; +} + +export function ExtractionChunkingStrategyToJSONTyped(value: any, ignoreDiscriminator: boolean): ExtractionChunkingStrategy { + return value as ExtractionChunkingStrategy; +} + diff --git a/src/ts/src/models/ExtractionResult.ts b/src/ts/src/models/ExtractionResult.ts new file mode 100644 index 0000000..4725726 --- /dev/null +++ b/src/ts/src/models/ExtractionResult.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API (Beta) + * API for Vectorize services + * + * The version of the OpenAPI document: 0.0.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface ExtractionResult + */ +export interface ExtractionResult { + /** + * + * @type {boolean} + * @memberof ExtractionResult + */ + success: boolean; + /** + * + * @type {Array} + * @memberof ExtractionResult + */ + chunks?: Array; + /** + * + * @type {string} + * @memberof ExtractionResult + */ + text?: string; + /** + * + * @type {string} + * @memberof ExtractionResult + */ + error?: string; +} + +/** + * Check if a given object implements the ExtractionResult interface. + */ +export function instanceOfExtractionResult(value: object): value is ExtractionResult { + if (!('success' in value) || value['success'] === undefined) return false; + return true; +} + +export function ExtractionResultFromJSON(json: any): ExtractionResult { + return ExtractionResultFromJSONTyped(json, false); +} + +export function ExtractionResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExtractionResult { + if (json == null) { + return json; + } + return { + + 'success': json['success'], + 'chunks': json['chunks'] == null ? undefined : json['chunks'], + 'text': json['text'] == null ? undefined : json['text'], + 'error': json['error'] == null ? undefined : json['error'], + }; +} + +export function ExtractionResultToJSON(json: any): ExtractionResult { + return ExtractionResultToJSONTyped(json, false); +} + +export function ExtractionResultToJSONTyped(value?: ExtractionResult | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'success': value['success'], + 'chunks': value['chunks'], + 'text': value['text'], + 'error': value['error'], + }; +} + diff --git a/src/ts/src/models/ExtractionType.ts b/src/ts/src/models/ExtractionType.ts new file mode 100644 index 0000000..bd392bc --- /dev/null +++ b/src/ts/src/models/ExtractionType.ts @@ -0,0 +1,52 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API (Beta) + * API for Vectorize services + * + * The version of the OpenAPI document: 0.0.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const ExtractionType = { + Iris: 'iris' +} as const; +export type ExtractionType = typeof ExtractionType[keyof typeof ExtractionType]; + + +export function instanceOfExtractionType(value: any): boolean { + for (const key in ExtractionType) { + if (Object.prototype.hasOwnProperty.call(ExtractionType, key)) { + if (ExtractionType[key as keyof typeof ExtractionType] === value) { + return true; + } + } + } + return false; +} + +export function ExtractionTypeFromJSON(json: any): ExtractionType { + return ExtractionTypeFromJSONTyped(json, false); +} + +export function ExtractionTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExtractionType { + return json as ExtractionType; +} + +export function ExtractionTypeToJSON(value?: ExtractionType | null): any { + return value as any; +} + +export function ExtractionTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): ExtractionType { + return value as ExtractionType; +} + diff --git a/src/ts/src/models/N8NConfig.ts b/src/ts/src/models/N8NConfig.ts new file mode 100644 index 0000000..e34c3e2 --- /dev/null +++ b/src/ts/src/models/N8NConfig.ts @@ -0,0 +1,83 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API (Beta) + * API for Vectorize services + * + * The version of the OpenAPI document: 0.0.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface N8NConfig + */ +export interface N8NConfig { + /** + * + * @type {string} + * @memberof N8NConfig + */ + account: string; + /** + * + * @type {string} + * @memberof N8NConfig + */ + webhookPath: string; + /** + * + * @type {{ [key: string]: string; }} + * @memberof N8NConfig + */ + headers?: { [key: string]: string; }; +} + +/** + * Check if a given object implements the N8NConfig interface. + */ +export function instanceOfN8NConfig(value: object): value is N8NConfig { + if (!('account' in value) || value['account'] === undefined) return false; + if (!('webhookPath' in value) || value['webhookPath'] === undefined) return false; + return true; +} + +export function N8NConfigFromJSON(json: any): N8NConfig { + return N8NConfigFromJSONTyped(json, false); +} + +export function N8NConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): N8NConfig { + if (json == null) { + return json; + } + return { + + 'account': json['account'], + 'webhookPath': json['webhookPath'], + 'headers': json['headers'] == null ? undefined : json['headers'], + }; +} + +export function N8NConfigToJSON(json: any): N8NConfig { + return N8NConfigToJSONTyped(json, false); +} + +export function N8NConfigToJSONTyped(value?: N8NConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'account': value['account'], + 'webhookPath': value['webhookPath'], + 'headers': value['headers'], + }; +} + diff --git a/src/ts/src/models/PipelineEvents.ts b/src/ts/src/models/PipelineEvents.ts new file mode 100644 index 0000000..7348638 --- /dev/null +++ b/src/ts/src/models/PipelineEvents.ts @@ -0,0 +1,100 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API (Beta) + * API for Vectorize services + * + * The version of the OpenAPI document: 0.0.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PipelineEvents + */ +export interface PipelineEvents { + /** + * + * @type {string} + * @memberof PipelineEvents + */ + id: string; + /** + * + * @type {string} + * @memberof PipelineEvents + */ + type: string; + /** + * + * @type {string} + * @memberof PipelineEvents + */ + timestamp: string | null; + /** + * + * @type {{ [key: string]: any | null; }} + * @memberof PipelineEvents + */ + details?: { [key: string]: any | null; }; + /** + * + * @type {{ [key: string]: any | null; }} + * @memberof PipelineEvents + */ + summary?: { [key: string]: any | null; }; +} + +/** + * Check if a given object implements the PipelineEvents interface. + */ +export function instanceOfPipelineEvents(value: object): value is PipelineEvents { + if (!('id' in value) || value['id'] === undefined) return false; + if (!('type' in value) || value['type'] === undefined) return false; + if (!('timestamp' in value) || value['timestamp'] === undefined) return false; + return true; +} + +export function PipelineEventsFromJSON(json: any): PipelineEvents { + return PipelineEventsFromJSONTyped(json, false); +} + +export function PipelineEventsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PipelineEvents { + if (json == null) { + return json; + } + return { + + 'id': json['id'], + 'type': json['type'], + 'timestamp': json['timestamp'], + 'details': json['details'] == null ? undefined : json['details'], + 'summary': json['summary'] == null ? undefined : json['summary'], + }; +} + +export function PipelineEventsToJSON(json: any): PipelineEvents { + return PipelineEventsToJSONTyped(json, false); +} + +export function PipelineEventsToJSONTyped(value?: PipelineEvents | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'id': value['id'], + 'type': value['type'], + 'timestamp': value['timestamp'], + 'details': value['details'], + 'summary': value['summary'], + }; +} + diff --git a/src/ts/src/models/PipelineMetrics.ts b/src/ts/src/models/PipelineMetrics.ts new file mode 100644 index 0000000..92d8d90 --- /dev/null +++ b/src/ts/src/models/PipelineMetrics.ts @@ -0,0 +1,93 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API (Beta) + * API for Vectorize services + * + * The version of the OpenAPI document: 0.0.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PipelineMetrics + */ +export interface PipelineMetrics { + /** + * + * @type {string} + * @memberof PipelineMetrics + */ + timestamp: string | null; + /** + * + * @type {number} + * @memberof PipelineMetrics + */ + newObjects: number; + /** + * + * @type {number} + * @memberof PipelineMetrics + */ + changedObjects: number; + /** + * + * @type {number} + * @memberof PipelineMetrics + */ + deletedObjects: number; +} + +/** + * Check if a given object implements the PipelineMetrics interface. + */ +export function instanceOfPipelineMetrics(value: object): value is PipelineMetrics { + if (!('timestamp' in value) || value['timestamp'] === undefined) return false; + if (!('newObjects' in value) || value['newObjects'] === undefined) return false; + if (!('changedObjects' in value) || value['changedObjects'] === undefined) return false; + if (!('deletedObjects' in value) || value['deletedObjects'] === undefined) return false; + return true; +} + +export function PipelineMetricsFromJSON(json: any): PipelineMetrics { + return PipelineMetricsFromJSONTyped(json, false); +} + +export function PipelineMetricsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PipelineMetrics { + if (json == null) { + return json; + } + return { + + 'timestamp': json['timestamp'], + 'newObjects': json['newObjects'], + 'changedObjects': json['changedObjects'], + 'deletedObjects': json['deletedObjects'], + }; +} + +export function PipelineMetricsToJSON(json: any): PipelineMetrics { + return PipelineMetricsToJSONTyped(json, false); +} + +export function PipelineMetricsToJSONTyped(value?: PipelineMetrics | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'timestamp': value['timestamp'], + 'newObjects': value['newObjects'], + 'changedObjects': value['changedObjects'], + 'deletedObjects': value['deletedObjects'], + }; +} + diff --git a/src/ts/src/models/RemoveUserFromSourceConnectorRequest.ts b/src/ts/src/models/RemoveUserFromSourceConnectorRequest.ts new file mode 100644 index 0000000..0838e7d --- /dev/null +++ b/src/ts/src/models/RemoveUserFromSourceConnectorRequest.ts @@ -0,0 +1,66 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API (Beta) + * API for Vectorize services + * + * The version of the OpenAPI document: 0.0.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface RemoveUserFromSourceConnectorRequest + */ +export interface RemoveUserFromSourceConnectorRequest { + /** + * + * @type {string} + * @memberof RemoveUserFromSourceConnectorRequest + */ + userId: string; +} + +/** + * Check if a given object implements the RemoveUserFromSourceConnectorRequest interface. + */ +export function instanceOfRemoveUserFromSourceConnectorRequest(value: object): value is RemoveUserFromSourceConnectorRequest { + if (!('userId' in value) || value['userId'] === undefined) return false; + return true; +} + +export function RemoveUserFromSourceConnectorRequestFromJSON(json: any): RemoveUserFromSourceConnectorRequest { + return RemoveUserFromSourceConnectorRequestFromJSONTyped(json, false); +} + +export function RemoveUserFromSourceConnectorRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RemoveUserFromSourceConnectorRequest { + if (json == null) { + return json; + } + return { + + 'userId': json['userId'], + }; +} + +export function RemoveUserFromSourceConnectorRequestToJSON(json: any): RemoveUserFromSourceConnectorRequest { + return RemoveUserFromSourceConnectorRequestToJSONTyped(json, false); +} + +export function RemoveUserFromSourceConnectorRequestToJSONTyped(value?: RemoveUserFromSourceConnectorRequest | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'userId': value['userId'], + }; +} + diff --git a/src/ts/src/models/RemoveUserFromSourceConnectorResponse.ts b/src/ts/src/models/RemoveUserFromSourceConnectorResponse.ts new file mode 100644 index 0000000..9b06b96 --- /dev/null +++ b/src/ts/src/models/RemoveUserFromSourceConnectorResponse.ts @@ -0,0 +1,66 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API (Beta) + * API for Vectorize services + * + * The version of the OpenAPI document: 0.0.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface RemoveUserFromSourceConnectorResponse + */ +export interface RemoveUserFromSourceConnectorResponse { + /** + * + * @type {string} + * @memberof RemoveUserFromSourceConnectorResponse + */ + message: string; +} + +/** + * Check if a given object implements the RemoveUserFromSourceConnectorResponse interface. + */ +export function instanceOfRemoveUserFromSourceConnectorResponse(value: object): value is RemoveUserFromSourceConnectorResponse { + if (!('message' in value) || value['message'] === undefined) return false; + return true; +} + +export function RemoveUserFromSourceConnectorResponseFromJSON(json: any): RemoveUserFromSourceConnectorResponse { + return RemoveUserFromSourceConnectorResponseFromJSONTyped(json, false); +} + +export function RemoveUserFromSourceConnectorResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RemoveUserFromSourceConnectorResponse { + if (json == null) { + return json; + } + return { + + 'message': json['message'], + }; +} + +export function RemoveUserFromSourceConnectorResponseToJSON(json: any): RemoveUserFromSourceConnectorResponse { + return RemoveUserFromSourceConnectorResponseToJSONTyped(json, false); +} + +export function RemoveUserFromSourceConnectorResponseToJSONTyped(value?: RemoveUserFromSourceConnectorResponse | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'message': value['message'], + }; +} + diff --git a/src/ts/src/models/RetrieveContext.ts b/src/ts/src/models/RetrieveContext.ts new file mode 100644 index 0000000..cff6bfe --- /dev/null +++ b/src/ts/src/models/RetrieveContext.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API (Beta) + * API for Vectorize services + * + * The version of the OpenAPI document: 0.0.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { RetrieveContextMessage } from './RetrieveContextMessage'; +import { + RetrieveContextMessageFromJSON, + RetrieveContextMessageFromJSONTyped, + RetrieveContextMessageToJSON, + RetrieveContextMessageToJSONTyped, +} from './RetrieveContextMessage'; + +/** + * + * @export + * @interface RetrieveContext + */ +export interface RetrieveContext { + /** + * + * @type {Array} + * @memberof RetrieveContext + */ + messages: Array; +} + +/** + * Check if a given object implements the RetrieveContext interface. + */ +export function instanceOfRetrieveContext(value: object): value is RetrieveContext { + if (!('messages' in value) || value['messages'] === undefined) return false; + return true; +} + +export function RetrieveContextFromJSON(json: any): RetrieveContext { + return RetrieveContextFromJSONTyped(json, false); +} + +export function RetrieveContextFromJSONTyped(json: any, ignoreDiscriminator: boolean): RetrieveContext { + if (json == null) { + return json; + } + return { + + 'messages': ((json['messages'] as Array).map(RetrieveContextMessageFromJSON)), + }; +} + +export function RetrieveContextToJSON(json: any): RetrieveContext { + return RetrieveContextToJSONTyped(json, false); +} + +export function RetrieveContextToJSONTyped(value?: RetrieveContext | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'messages': ((value['messages'] as Array).map(RetrieveContextMessageToJSON)), + }; +} + diff --git a/src/ts/src/models/RetrieveContextMessage.ts b/src/ts/src/models/RetrieveContextMessage.ts new file mode 100644 index 0000000..6f7226c --- /dev/null +++ b/src/ts/src/models/RetrieveContextMessage.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API (Beta) + * API for Vectorize services + * + * The version of the OpenAPI document: 0.0.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface RetrieveContextMessage + */ +export interface RetrieveContextMessage { + /** + * + * @type {string} + * @memberof RetrieveContextMessage + */ + role: string; + /** + * + * @type {string} + * @memberof RetrieveContextMessage + */ + content: string; +} + +/** + * Check if a given object implements the RetrieveContextMessage interface. + */ +export function instanceOfRetrieveContextMessage(value: object): value is RetrieveContextMessage { + if (!('role' in value) || value['role'] === undefined) return false; + if (!('content' in value) || value['content'] === undefined) return false; + return true; +} + +export function RetrieveContextMessageFromJSON(json: any): RetrieveContextMessage { + return RetrieveContextMessageFromJSONTyped(json, false); +} + +export function RetrieveContextMessageFromJSONTyped(json: any, ignoreDiscriminator: boolean): RetrieveContextMessage { + if (json == null) { + return json; + } + return { + + 'role': json['role'], + 'content': json['content'], + }; +} + +export function RetrieveContextMessageToJSON(json: any): RetrieveContextMessage { + return RetrieveContextMessageToJSONTyped(json, false); +} + +export function RetrieveContextMessageToJSONTyped(value?: RetrieveContextMessage | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'role': value['role'], + 'content': value['content'], + }; +} + diff --git a/src/ts/src/models/ScheduleSchemaType.ts b/src/ts/src/models/ScheduleSchemaType.ts new file mode 100644 index 0000000..496fd28 --- /dev/null +++ b/src/ts/src/models/ScheduleSchemaType.ts @@ -0,0 +1,54 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API (Beta) + * API for Vectorize services + * + * The version of the OpenAPI document: 0.0.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const ScheduleSchemaType = { + Manual: 'manual', + Realtime: 'realtime', + Custom: 'custom' +} as const; +export type ScheduleSchemaType = typeof ScheduleSchemaType[keyof typeof ScheduleSchemaType]; + + +export function instanceOfScheduleSchemaType(value: any): boolean { + for (const key in ScheduleSchemaType) { + if (Object.prototype.hasOwnProperty.call(ScheduleSchemaType, key)) { + if (ScheduleSchemaType[key as keyof typeof ScheduleSchemaType] === value) { + return true; + } + } + } + return false; +} + +export function ScheduleSchemaTypeFromJSON(json: any): ScheduleSchemaType { + return ScheduleSchemaTypeFromJSONTyped(json, false); +} + +export function ScheduleSchemaTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduleSchemaType { + return json as ScheduleSchemaType; +} + +export function ScheduleSchemaTypeToJSON(value?: ScheduleSchemaType | null): any { + return value as any; +} + +export function ScheduleSchemaTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): ScheduleSchemaType { + return value as ScheduleSchemaType; +} + diff --git a/src/ts/src/models/SourceConnectorType.ts b/src/ts/src/models/SourceConnectorType.ts new file mode 100644 index 0000000..94532da --- /dev/null +++ b/src/ts/src/models/SourceConnectorType.ts @@ -0,0 +1,69 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API (Beta) + * API for Vectorize services + * + * The version of the OpenAPI document: 0.0.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const SourceConnectorType = { + AwsS3: 'AWS_S3', + AzureBlob: 'AZURE_BLOB', + Confluence: 'CONFLUENCE', + Discord: 'DISCORD', + Dropbox: 'DROPBOX', + GoogleDriveOauth: 'GOOGLE_DRIVE_OAUTH', + GoogleDriveOauthMulti: 'GOOGLE_DRIVE_OAUTH_MULTI', + GoogleDriveOauthMultiCustom: 'GOOGLE_DRIVE_OAUTH_MULTI_CUSTOM', + Firecrawl: 'FIRECRAWL', + Gcs: 'GCS', + GoogleDrive: 'GOOGLE_DRIVE', + Intercom: 'INTERCOM', + OneDrive: 'ONE_DRIVE', + Sharepoint: 'SHAREPOINT', + WebCrawler: 'WEB_CRAWLER', + FileUpload: 'FILE_UPLOAD', + Salesforce: 'SALESFORCE', + Zendesk: 'ZENDESK' +} as const; +export type SourceConnectorType = typeof SourceConnectorType[keyof typeof SourceConnectorType]; + + +export function instanceOfSourceConnectorType(value: any): boolean { + for (const key in SourceConnectorType) { + if (Object.prototype.hasOwnProperty.call(SourceConnectorType, key)) { + if (SourceConnectorType[key as keyof typeof SourceConnectorType] === value) { + return true; + } + } + } + return false; +} + +export function SourceConnectorTypeFromJSON(json: any): SourceConnectorType { + return SourceConnectorTypeFromJSONTyped(json, false); +} + +export function SourceConnectorTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): SourceConnectorType { + return json as SourceConnectorType; +} + +export function SourceConnectorTypeToJSON(value?: SourceConnectorType | null): any { + return value as any; +} + +export function SourceConnectorTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): SourceConnectorType { + return value as SourceConnectorType; +} + diff --git a/src/ts/src/models/UpdateAIPlatformConnectorResponse.ts b/src/ts/src/models/UpdateAIPlatformConnectorResponse.ts new file mode 100644 index 0000000..f6e355f --- /dev/null +++ b/src/ts/src/models/UpdateAIPlatformConnectorResponse.ts @@ -0,0 +1,83 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API (Beta) + * API for Vectorize services + * + * The version of the OpenAPI document: 0.0.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { UpdatedAIPlatformConnectorData } from './UpdatedAIPlatformConnectorData'; +import { + UpdatedAIPlatformConnectorDataFromJSON, + UpdatedAIPlatformConnectorDataFromJSONTyped, + UpdatedAIPlatformConnectorDataToJSON, + UpdatedAIPlatformConnectorDataToJSONTyped, +} from './UpdatedAIPlatformConnectorData'; + +/** + * + * @export + * @interface UpdateAIPlatformConnectorResponse + */ +export interface UpdateAIPlatformConnectorResponse { + /** + * + * @type {string} + * @memberof UpdateAIPlatformConnectorResponse + */ + message: string; + /** + * + * @type {UpdatedAIPlatformConnectorData} + * @memberof UpdateAIPlatformConnectorResponse + */ + data: UpdatedAIPlatformConnectorData; +} + +/** + * Check if a given object implements the UpdateAIPlatformConnectorResponse interface. + */ +export function instanceOfUpdateAIPlatformConnectorResponse(value: object): value is UpdateAIPlatformConnectorResponse { + if (!('message' in value) || value['message'] === undefined) return false; + if (!('data' in value) || value['data'] === undefined) return false; + return true; +} + +export function UpdateAIPlatformConnectorResponseFromJSON(json: any): UpdateAIPlatformConnectorResponse { + return UpdateAIPlatformConnectorResponseFromJSONTyped(json, false); +} + +export function UpdateAIPlatformConnectorResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateAIPlatformConnectorResponse { + if (json == null) { + return json; + } + return { + + 'message': json['message'], + 'data': UpdatedAIPlatformConnectorDataFromJSON(json['data']), + }; +} + +export function UpdateAIPlatformConnectorResponseToJSON(json: any): UpdateAIPlatformConnectorResponse { + return UpdateAIPlatformConnectorResponseToJSONTyped(json, false); +} + +export function UpdateAIPlatformConnectorResponseToJSONTyped(value?: UpdateAIPlatformConnectorResponse | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'message': value['message'], + 'data': UpdatedAIPlatformConnectorDataToJSON(value['data']), + }; +} + diff --git a/src/ts/src/models/UpdateDestinationConnectorRequest.ts b/src/ts/src/models/UpdateDestinationConnectorRequest.ts new file mode 100644 index 0000000..fb727ec --- /dev/null +++ b/src/ts/src/models/UpdateDestinationConnectorRequest.ts @@ -0,0 +1,66 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API (Beta) + * API for Vectorize services + * + * The version of the OpenAPI document: 0.0.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface UpdateDestinationConnectorRequest + */ +export interface UpdateDestinationConnectorRequest { + /** + * + * @type {{ [key: string]: any | null; }} + * @memberof UpdateDestinationConnectorRequest + */ + config: { [key: string]: any | null; }; +} + +/** + * Check if a given object implements the UpdateDestinationConnectorRequest interface. + */ +export function instanceOfUpdateDestinationConnectorRequest(value: object): value is UpdateDestinationConnectorRequest { + if (!('config' in value) || value['config'] === undefined) return false; + return true; +} + +export function UpdateDestinationConnectorRequestFromJSON(json: any): UpdateDestinationConnectorRequest { + return UpdateDestinationConnectorRequestFromJSONTyped(json, false); +} + +export function UpdateDestinationConnectorRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateDestinationConnectorRequest { + if (json == null) { + return json; + } + return { + + 'config': json['config'], + }; +} + +export function UpdateDestinationConnectorRequestToJSON(json: any): UpdateDestinationConnectorRequest { + return UpdateDestinationConnectorRequestToJSONTyped(json, false); +} + +export function UpdateDestinationConnectorRequestToJSONTyped(value?: UpdateDestinationConnectorRequest | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'config': value['config'], + }; +} + diff --git a/src/ts/src/models/UpdateDestinationConnectorResponse.ts b/src/ts/src/models/UpdateDestinationConnectorResponse.ts new file mode 100644 index 0000000..c609802 --- /dev/null +++ b/src/ts/src/models/UpdateDestinationConnectorResponse.ts @@ -0,0 +1,83 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API (Beta) + * API for Vectorize services + * + * The version of the OpenAPI document: 0.0.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { UpdatedDestinationConnectorData } from './UpdatedDestinationConnectorData'; +import { + UpdatedDestinationConnectorDataFromJSON, + UpdatedDestinationConnectorDataFromJSONTyped, + UpdatedDestinationConnectorDataToJSON, + UpdatedDestinationConnectorDataToJSONTyped, +} from './UpdatedDestinationConnectorData'; + +/** + * + * @export + * @interface UpdateDestinationConnectorResponse + */ +export interface UpdateDestinationConnectorResponse { + /** + * + * @type {string} + * @memberof UpdateDestinationConnectorResponse + */ + message: string; + /** + * + * @type {UpdatedDestinationConnectorData} + * @memberof UpdateDestinationConnectorResponse + */ + data: UpdatedDestinationConnectorData; +} + +/** + * Check if a given object implements the UpdateDestinationConnectorResponse interface. + */ +export function instanceOfUpdateDestinationConnectorResponse(value: object): value is UpdateDestinationConnectorResponse { + if (!('message' in value) || value['message'] === undefined) return false; + if (!('data' in value) || value['data'] === undefined) return false; + return true; +} + +export function UpdateDestinationConnectorResponseFromJSON(json: any): UpdateDestinationConnectorResponse { + return UpdateDestinationConnectorResponseFromJSONTyped(json, false); +} + +export function UpdateDestinationConnectorResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateDestinationConnectorResponse { + if (json == null) { + return json; + } + return { + + 'message': json['message'], + 'data': UpdatedDestinationConnectorDataFromJSON(json['data']), + }; +} + +export function UpdateDestinationConnectorResponseToJSON(json: any): UpdateDestinationConnectorResponse { + return UpdateDestinationConnectorResponseToJSONTyped(json, false); +} + +export function UpdateDestinationConnectorResponseToJSONTyped(value?: UpdateDestinationConnectorResponse | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'message': value['message'], + 'data': UpdatedDestinationConnectorDataToJSON(value['data']), + }; +} + diff --git a/src/ts/src/models/UpdateSourceConnectorResponse.ts b/src/ts/src/models/UpdateSourceConnectorResponse.ts new file mode 100644 index 0000000..5c1b49e --- /dev/null +++ b/src/ts/src/models/UpdateSourceConnectorResponse.ts @@ -0,0 +1,83 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API (Beta) + * API for Vectorize services + * + * The version of the OpenAPI document: 0.0.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { UpdateSourceConnectorResponseData } from './UpdateSourceConnectorResponseData'; +import { + UpdateSourceConnectorResponseDataFromJSON, + UpdateSourceConnectorResponseDataFromJSONTyped, + UpdateSourceConnectorResponseDataToJSON, + UpdateSourceConnectorResponseDataToJSONTyped, +} from './UpdateSourceConnectorResponseData'; + +/** + * + * @export + * @interface UpdateSourceConnectorResponse + */ +export interface UpdateSourceConnectorResponse { + /** + * + * @type {string} + * @memberof UpdateSourceConnectorResponse + */ + message: string; + /** + * + * @type {UpdateSourceConnectorResponseData} + * @memberof UpdateSourceConnectorResponse + */ + data: UpdateSourceConnectorResponseData; +} + +/** + * Check if a given object implements the UpdateSourceConnectorResponse interface. + */ +export function instanceOfUpdateSourceConnectorResponse(value: object): value is UpdateSourceConnectorResponse { + if (!('message' in value) || value['message'] === undefined) return false; + if (!('data' in value) || value['data'] === undefined) return false; + return true; +} + +export function UpdateSourceConnectorResponseFromJSON(json: any): UpdateSourceConnectorResponse { + return UpdateSourceConnectorResponseFromJSONTyped(json, false); +} + +export function UpdateSourceConnectorResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateSourceConnectorResponse { + if (json == null) { + return json; + } + return { + + 'message': json['message'], + 'data': UpdateSourceConnectorResponseDataFromJSON(json['data']), + }; +} + +export function UpdateSourceConnectorResponseToJSON(json: any): UpdateSourceConnectorResponse { + return UpdateSourceConnectorResponseToJSONTyped(json, false); +} + +export function UpdateSourceConnectorResponseToJSONTyped(value?: UpdateSourceConnectorResponse | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'message': value['message'], + 'data': UpdateSourceConnectorResponseDataToJSON(value['data']), + }; +} + diff --git a/src/ts/src/models/UpdateSourceConnectorResponseData.ts b/src/ts/src/models/UpdateSourceConnectorResponseData.ts new file mode 100644 index 0000000..8b481a7 --- /dev/null +++ b/src/ts/src/models/UpdateSourceConnectorResponseData.ts @@ -0,0 +1,82 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API (Beta) + * API for Vectorize services + * + * The version of the OpenAPI document: 0.0.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { SourceConnector } from './SourceConnector'; +import { + SourceConnectorFromJSON, + SourceConnectorFromJSONTyped, + SourceConnectorToJSON, + SourceConnectorToJSONTyped, +} from './SourceConnector'; + +/** + * + * @export + * @interface UpdateSourceConnectorResponseData + */ +export interface UpdateSourceConnectorResponseData { + /** + * + * @type {SourceConnector} + * @memberof UpdateSourceConnectorResponseData + */ + updatedConnector: SourceConnector; + /** + * + * @type {Array} + * @memberof UpdateSourceConnectorResponseData + */ + pipelineIds?: Array; +} + +/** + * Check if a given object implements the UpdateSourceConnectorResponseData interface. + */ +export function instanceOfUpdateSourceConnectorResponseData(value: object): value is UpdateSourceConnectorResponseData { + if (!('updatedConnector' in value) || value['updatedConnector'] === undefined) return false; + return true; +} + +export function UpdateSourceConnectorResponseDataFromJSON(json: any): UpdateSourceConnectorResponseData { + return UpdateSourceConnectorResponseDataFromJSONTyped(json, false); +} + +export function UpdateSourceConnectorResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateSourceConnectorResponseData { + if (json == null) { + return json; + } + return { + + 'updatedConnector': SourceConnectorFromJSON(json['updatedConnector']), + 'pipelineIds': json['pipelineIds'] == null ? undefined : json['pipelineIds'], + }; +} + +export function UpdateSourceConnectorResponseDataToJSON(json: any): UpdateSourceConnectorResponseData { + return UpdateSourceConnectorResponseDataToJSONTyped(json, false); +} + +export function UpdateSourceConnectorResponseDataToJSONTyped(value?: UpdateSourceConnectorResponseData | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'updatedConnector': SourceConnectorToJSON(value['updatedConnector']), + 'pipelineIds': value['pipelineIds'], + }; +} + diff --git a/src/ts/src/models/UpdateUserInSourceConnectorRequest.ts b/src/ts/src/models/UpdateUserInSourceConnectorRequest.ts new file mode 100644 index 0000000..940b43b --- /dev/null +++ b/src/ts/src/models/UpdateUserInSourceConnectorRequest.ts @@ -0,0 +1,82 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API (Beta) + * API for Vectorize services + * + * The version of the OpenAPI document: 0.0.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface UpdateUserInSourceConnectorRequest + */ +export interface UpdateUserInSourceConnectorRequest { + /** + * + * @type {string} + * @memberof UpdateUserInSourceConnectorRequest + */ + userId: string; + /** + * + * @type {Array} + * @memberof UpdateUserInSourceConnectorRequest + */ + fileIds?: Array; + /** + * + * @type {string} + * @memberof UpdateUserInSourceConnectorRequest + */ + refreshToken?: string; +} + +/** + * Check if a given object implements the UpdateUserInSourceConnectorRequest interface. + */ +export function instanceOfUpdateUserInSourceConnectorRequest(value: object): value is UpdateUserInSourceConnectorRequest { + if (!('userId' in value) || value['userId'] === undefined) return false; + return true; +} + +export function UpdateUserInSourceConnectorRequestFromJSON(json: any): UpdateUserInSourceConnectorRequest { + return UpdateUserInSourceConnectorRequestFromJSONTyped(json, false); +} + +export function UpdateUserInSourceConnectorRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateUserInSourceConnectorRequest { + if (json == null) { + return json; + } + return { + + 'userId': json['userId'], + 'fileIds': json['fileIds'] == null ? undefined : json['fileIds'], + 'refreshToken': json['refreshToken'] == null ? undefined : json['refreshToken'], + }; +} + +export function UpdateUserInSourceConnectorRequestToJSON(json: any): UpdateUserInSourceConnectorRequest { + return UpdateUserInSourceConnectorRequestToJSONTyped(json, false); +} + +export function UpdateUserInSourceConnectorRequestToJSONTyped(value?: UpdateUserInSourceConnectorRequest | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'userId': value['userId'], + 'fileIds': value['fileIds'], + 'refreshToken': value['refreshToken'], + }; +} + diff --git a/src/ts/src/models/UpdateUserInSourceConnectorResponse.ts b/src/ts/src/models/UpdateUserInSourceConnectorResponse.ts new file mode 100644 index 0000000..d2bbf05 --- /dev/null +++ b/src/ts/src/models/UpdateUserInSourceConnectorResponse.ts @@ -0,0 +1,66 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API (Beta) + * API for Vectorize services + * + * The version of the OpenAPI document: 0.0.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface UpdateUserInSourceConnectorResponse + */ +export interface UpdateUserInSourceConnectorResponse { + /** + * + * @type {string} + * @memberof UpdateUserInSourceConnectorResponse + */ + message: string; +} + +/** + * Check if a given object implements the UpdateUserInSourceConnectorResponse interface. + */ +export function instanceOfUpdateUserInSourceConnectorResponse(value: object): value is UpdateUserInSourceConnectorResponse { + if (!('message' in value) || value['message'] === undefined) return false; + return true; +} + +export function UpdateUserInSourceConnectorResponseFromJSON(json: any): UpdateUserInSourceConnectorResponse { + return UpdateUserInSourceConnectorResponseFromJSONTyped(json, false); +} + +export function UpdateUserInSourceConnectorResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateUserInSourceConnectorResponse { + if (json == null) { + return json; + } + return { + + 'message': json['message'], + }; +} + +export function UpdateUserInSourceConnectorResponseToJSON(json: any): UpdateUserInSourceConnectorResponse { + return UpdateUserInSourceConnectorResponseToJSONTyped(json, false); +} + +export function UpdateUserInSourceConnectorResponseToJSONTyped(value?: UpdateUserInSourceConnectorResponse | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'message': value['message'], + }; +} + diff --git a/src/ts/src/models/UpdatedAIPlatformConnectorData.ts b/src/ts/src/models/UpdatedAIPlatformConnectorData.ts new file mode 100644 index 0000000..44877be --- /dev/null +++ b/src/ts/src/models/UpdatedAIPlatformConnectorData.ts @@ -0,0 +1,82 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API (Beta) + * API for Vectorize services + * + * The version of the OpenAPI document: 0.0.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { AIPlatform } from './AIPlatform'; +import { + AIPlatformFromJSON, + AIPlatformFromJSONTyped, + AIPlatformToJSON, + AIPlatformToJSONTyped, +} from './AIPlatform'; + +/** + * + * @export + * @interface UpdatedAIPlatformConnectorData + */ +export interface UpdatedAIPlatformConnectorData { + /** + * + * @type {AIPlatform} + * @memberof UpdatedAIPlatformConnectorData + */ + updatedConnector: AIPlatform; + /** + * + * @type {Array} + * @memberof UpdatedAIPlatformConnectorData + */ + pipelineIds?: Array; +} + +/** + * Check if a given object implements the UpdatedAIPlatformConnectorData interface. + */ +export function instanceOfUpdatedAIPlatformConnectorData(value: object): value is UpdatedAIPlatformConnectorData { + if (!('updatedConnector' in value) || value['updatedConnector'] === undefined) return false; + return true; +} + +export function UpdatedAIPlatformConnectorDataFromJSON(json: any): UpdatedAIPlatformConnectorData { + return UpdatedAIPlatformConnectorDataFromJSONTyped(json, false); +} + +export function UpdatedAIPlatformConnectorDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdatedAIPlatformConnectorData { + if (json == null) { + return json; + } + return { + + 'updatedConnector': AIPlatformFromJSON(json['updatedConnector']), + 'pipelineIds': json['pipelineIds'] == null ? undefined : json['pipelineIds'], + }; +} + +export function UpdatedAIPlatformConnectorDataToJSON(json: any): UpdatedAIPlatformConnectorData { + return UpdatedAIPlatformConnectorDataToJSONTyped(json, false); +} + +export function UpdatedAIPlatformConnectorDataToJSONTyped(value?: UpdatedAIPlatformConnectorData | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'updatedConnector': AIPlatformToJSON(value['updatedConnector']), + 'pipelineIds': value['pipelineIds'], + }; +} + diff --git a/src/ts/src/models/UpdatedDestinationConnectorData.ts b/src/ts/src/models/UpdatedDestinationConnectorData.ts new file mode 100644 index 0000000..21ddc5c --- /dev/null +++ b/src/ts/src/models/UpdatedDestinationConnectorData.ts @@ -0,0 +1,82 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API (Beta) + * API for Vectorize services + * + * The version of the OpenAPI document: 0.0.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { DestinationConnector } from './DestinationConnector'; +import { + DestinationConnectorFromJSON, + DestinationConnectorFromJSONTyped, + DestinationConnectorToJSON, + DestinationConnectorToJSONTyped, +} from './DestinationConnector'; + +/** + * + * @export + * @interface UpdatedDestinationConnectorData + */ +export interface UpdatedDestinationConnectorData { + /** + * + * @type {DestinationConnector} + * @memberof UpdatedDestinationConnectorData + */ + updatedConnector: DestinationConnector; + /** + * + * @type {Array} + * @memberof UpdatedDestinationConnectorData + */ + pipelineIds?: Array; +} + +/** + * Check if a given object implements the UpdatedDestinationConnectorData interface. + */ +export function instanceOfUpdatedDestinationConnectorData(value: object): value is UpdatedDestinationConnectorData { + if (!('updatedConnector' in value) || value['updatedConnector'] === undefined) return false; + return true; +} + +export function UpdatedDestinationConnectorDataFromJSON(json: any): UpdatedDestinationConnectorData { + return UpdatedDestinationConnectorDataFromJSONTyped(json, false); +} + +export function UpdatedDestinationConnectorDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdatedDestinationConnectorData { + if (json == null) { + return json; + } + return { + + 'updatedConnector': DestinationConnectorFromJSON(json['updatedConnector']), + 'pipelineIds': json['pipelineIds'] == null ? undefined : json['pipelineIds'], + }; +} + +export function UpdatedDestinationConnectorDataToJSON(json: any): UpdatedDestinationConnectorData { + return UpdatedDestinationConnectorDataToJSONTyped(json, false); +} + +export function UpdatedDestinationConnectorDataToJSONTyped(value?: UpdatedDestinationConnectorData | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'updatedConnector': DestinationConnectorToJSON(value['updatedConnector']), + 'pipelineIds': value['pipelineIds'], + }; +} + diff --git a/src/ts/src/models/UploadFile.ts b/src/ts/src/models/UploadFile.ts new file mode 100644 index 0000000..f7c9a88 --- /dev/null +++ b/src/ts/src/models/UploadFile.ts @@ -0,0 +1,110 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API (Beta) + * API for Vectorize services + * + * The version of the OpenAPI document: 0.0.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface UploadFile + */ +export interface UploadFile { + /** + * + * @type {string} + * @memberof UploadFile + */ + key: string; + /** + * + * @type {string} + * @memberof UploadFile + */ + name: string; + /** + * + * @type {number} + * @memberof UploadFile + */ + size: number; + /** + * + * @type {string} + * @memberof UploadFile + */ + extension?: string; + /** + * + * @type {string} + * @memberof UploadFile + */ + lastModified: string | null; + /** + * + * @type {{ [key: string]: string; }} + * @memberof UploadFile + */ + metadata: { [key: string]: string; }; +} + +/** + * Check if a given object implements the UploadFile interface. + */ +export function instanceOfUploadFile(value: object): value is UploadFile { + if (!('key' in value) || value['key'] === undefined) return false; + if (!('name' in value) || value['name'] === undefined) return false; + if (!('size' in value) || value['size'] === undefined) return false; + if (!('lastModified' in value) || value['lastModified'] === undefined) return false; + if (!('metadata' in value) || value['metadata'] === undefined) return false; + return true; +} + +export function UploadFileFromJSON(json: any): UploadFile { + return UploadFileFromJSONTyped(json, false); +} + +export function UploadFileFromJSONTyped(json: any, ignoreDiscriminator: boolean): UploadFile { + if (json == null) { + return json; + } + return { + + 'key': json['key'], + 'name': json['name'], + 'size': json['size'], + 'extension': json['extension'] == null ? undefined : json['extension'], + 'lastModified': json['lastModified'], + 'metadata': json['metadata'], + }; +} + +export function UploadFileToJSON(json: any): UploadFile { + return UploadFileToJSONTyped(json, false); +} + +export function UploadFileToJSONTyped(value?: UploadFile | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'key': value['key'], + 'name': value['name'], + 'size': value['size'], + 'extension': value['extension'], + 'lastModified': value['lastModified'], + 'metadata': value['metadata'], + }; +} + From fdffb584df2b88cbd0420c1b79528a0862de7215 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Boschi?= Date: Fri, 7 Mar 2025 13:52:10 +0100 Subject: [PATCH 3/5] fix: improve openapi naming --- tests/ts/tests/pipelines.test.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/ts/tests/pipelines.test.ts b/tests/ts/tests/pipelines.test.ts index dc45e6b..2b74dd6 100644 --- a/tests/ts/tests/pipelines.test.ts +++ b/tests/ts/tests/pipelines.test.ts @@ -42,7 +42,6 @@ async function createWebCrawlerSource(connectorsApi: ConnectorsApi) { ] }); const sourceConnectorId = sourceResponse.connectors[0].id; - connectorsApi.createAIPlatformConnector() await connectorsApi.updateSourceConnector({ organization: testContext.orgId, sourceConnectorId, From aa96c84ee0b7ec4e8fbd13198264568e1b02f5e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Boschi?= Date: Fri, 7 Mar 2025 14:15:49 +0100 Subject: [PATCH 4/5] new names --- .../vectorize_client/api/connectors_api.py | 12 +++---- src/ts/package-lock.json | 31 ------------------- src/ts/package.json | 2 +- src/ts/src/apis/ConnectorsApi.ts | 8 ++--- tests/python/tests/test_client.py | 6 ++-- vectorize_api.json | 2 +- 6 files changed, 15 insertions(+), 46 deletions(-) delete mode 100644 src/ts/package-lock.json diff --git a/src/python/vectorize_client/api/connectors_api.py b/src/python/vectorize_client/api/connectors_api.py index bd89604..fbf5308 100644 --- a/src/python/vectorize_client/api/connectors_api.py +++ b/src/python/vectorize_client/api/connectors_api.py @@ -399,7 +399,7 @@ def create_ai_platform_connector( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> CreateAIPlatformConnectorResponse: - """Create a new AI Platform connector. Config values: Amazon Bedrock (BEDROCK): Name (name): text, Access Key (access-key): text, Secret Key (key): text) | Google Vertex AI (VERTEX): Name (name): text, Region (region): text) | OpenAI (OPENAI): Name (name): text, API Key (key): text) | Voyage AI (VOYAGE): Name (name): text, API Key (key): text) | Built-in (VECTORIZE): ) + """Create a new AI Platform connector. Config values: Amazon Bedrock (BEDROCK): Name (name): text, Access Key (access-key): text, Secret Key (key): text) | Google Vertex AI (VERTEX): Name (name): text, Service Account Json (key): textarea, Region (region): text) | OpenAI (OPENAI): Name (name): text, API Key (key): text) | Voyage AI (VOYAGE): Name (name): text, API Key (key): text) | Built-in (VECTORIZE): ) :param organization: (required) @@ -474,7 +474,7 @@ def create_ai_platform_connector_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[CreateAIPlatformConnectorResponse]: - """Create a new AI Platform connector. Config values: Amazon Bedrock (BEDROCK): Name (name): text, Access Key (access-key): text, Secret Key (key): text) | Google Vertex AI (VERTEX): Name (name): text, Region (region): text) | OpenAI (OPENAI): Name (name): text, API Key (key): text) | Voyage AI (VOYAGE): Name (name): text, API Key (key): text) | Built-in (VECTORIZE): ) + """Create a new AI Platform connector. Config values: Amazon Bedrock (BEDROCK): Name (name): text, Access Key (access-key): text, Secret Key (key): text) | Google Vertex AI (VERTEX): Name (name): text, Service Account Json (key): textarea, Region (region): text) | OpenAI (OPENAI): Name (name): text, API Key (key): text) | Voyage AI (VOYAGE): Name (name): text, API Key (key): text) | Built-in (VECTORIZE): ) :param organization: (required) @@ -549,7 +549,7 @@ def create_ai_platform_connector_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Create a new AI Platform connector. Config values: Amazon Bedrock (BEDROCK): Name (name): text, Access Key (access-key): text, Secret Key (key): text) | Google Vertex AI (VERTEX): Name (name): text, Region (region): text) | OpenAI (OPENAI): Name (name): text, API Key (key): text) | Voyage AI (VOYAGE): Name (name): text, API Key (key): text) | Built-in (VECTORIZE): ) + """Create a new AI Platform connector. Config values: Amazon Bedrock (BEDROCK): Name (name): text, Access Key (access-key): text, Secret Key (key): text) | Google Vertex AI (VERTEX): Name (name): text, Service Account Json (key): textarea, Region (region): text) | OpenAI (OPENAI): Name (name): text, API Key (key): text) | Voyage AI (VOYAGE): Name (name): text, API Key (key): text) | Built-in (VECTORIZE): ) :param organization: (required) @@ -1003,7 +1003,7 @@ def create_source_connector( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> CreateSourceConnectorResponse: - """Create a new source connector. Config values: Amazon S3 (AWS_S3): Name (name): text, Access Key (access-key): text, Secret Key (secret-key): text, Bucket Name (bucket-name): text, Endpoint (endpoint): url, Region (region): text, Allow as archive destination (archiver): boolean) | Azure Blob Storage (AZURE_BLOB): Name (name): text, Storage Account Name (storage-account-name): text, Storage Account Key (storage-account-key): text, Container (container): text, Endpoint (endpoint): url) | Confluence (CONFLUENCE): Name (name): text, Username (username): text, API Token (api-token): text, Domain (domain): text) | Discord (DISCORD): Name (name): text, Server ID (guild-id): text, Bot token (bot-token): text, Channel ID (channel-ids): array oftext) | Dropbox (DROPBOX): Name (name): text) | Google Drive OAuth (GOOGLE_DRIVE_OAUTH): Name (name): text) | Google Drive OAuth (Multi-user) (GOOGLE_DRIVE_OAUTH_MULTI): Name (name): text) | Google Drive OAuth (Multi-user with white label) (GOOGLE_DRIVE_OAUTH_MULTI_CUSTOM): Name (name): text, OAuth2 Client Id (oauth2-client-id): text, OAuth2 Client Secret (oauth2-client-secret): text) | Firecrawl (FIRECRAWL): Name (name): text, API Key (api-key): text) | GCP Cloud Storage (GCS): Name (name): text, Bucket (bucket-name): text) | Google Drive (GOOGLE_DRIVE): Name (name): text) | Intercom (INTERCOM): Name (name): text, Access Token (intercomAccessToken): text) | OneDrive (ONE_DRIVE): Name (name): text, Client Id (ms-client-id): text, Tenant Id (ms-tenant-id): text, Client Secret (ms-client-secret): text, Users (users): array oftext) | SharePoint (SHAREPOINT): Name (name): text, Client Id (ms-client-id): text, Tenant Id (ms-tenant-id): text, Client Secret (ms-client-secret): text) | Web Crawler (WEB_CRAWLER): Name (name): text, Seed URL(s) (seed-urls): array ofurl) | File Upload (FILE_UPLOAD): Name (name): text) + """Create a new source connector. Config values: Amazon S3 (AWS_S3): Name (name): text, Access Key (access-key): text, Secret Key (secret-key): text, Bucket Name (bucket-name): text, Endpoint (endpoint): url, Region (region): text, Allow as archive destination (archiver): boolean) | Azure Blob Storage (AZURE_BLOB): Name (name): text, Storage Account Name (storage-account-name): text, Storage Account Key (storage-account-key): text, Container (container): text, Endpoint (endpoint): url) | Confluence (CONFLUENCE): Name (name): text, Username (username): text, API Token (api-token): text, Domain (domain): text) | Discord (DISCORD): Name (name): text, Server ID (guild-id): text, Bot token (bot-token): text, Channel ID (channel-ids): array oftext) | Dropbox (DROPBOX): Name (name): text) | Google Drive OAuth (GOOGLE_DRIVE_OAUTH): Name (name): text) | Google Drive OAuth (Multi-user) (GOOGLE_DRIVE_OAUTH_MULTI): Name (name): text) | Google Drive OAuth (Multi-user with white label) (GOOGLE_DRIVE_OAUTH_MULTI_CUSTOM): Name (name): text, OAuth2 Client Id (oauth2-client-id): text, OAuth2 Client Secret (oauth2-client-secret): text) | Firecrawl (FIRECRAWL): Name (name): text, API Key (api-key): text) | GCP Cloud Storage (GCS): Name (name): text, Service Account JSON (service-account-json): textarea, Bucket (bucket-name): text) | Google Drive (GOOGLE_DRIVE): Name (name): text, Service Account JSON (service-account-json): textarea) | Intercom (INTERCOM): Name (name): text, Access Token (intercomAccessToken): text) | OneDrive (ONE_DRIVE): Name (name): text, Client Id (ms-client-id): text, Tenant Id (ms-tenant-id): text, Client Secret (ms-client-secret): text, Users (users): array oftext) | SharePoint (SHAREPOINT): Name (name): text, Client Id (ms-client-id): text, Tenant Id (ms-tenant-id): text, Client Secret (ms-client-secret): text) | Web Crawler (WEB_CRAWLER): Name (name): text, Seed URL(s) (seed-urls): array ofurl) | File Upload (FILE_UPLOAD): Name (name): text) :param organization: (required) @@ -1078,7 +1078,7 @@ def create_source_connector_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[CreateSourceConnectorResponse]: - """Create a new source connector. Config values: Amazon S3 (AWS_S3): Name (name): text, Access Key (access-key): text, Secret Key (secret-key): text, Bucket Name (bucket-name): text, Endpoint (endpoint): url, Region (region): text, Allow as archive destination (archiver): boolean) | Azure Blob Storage (AZURE_BLOB): Name (name): text, Storage Account Name (storage-account-name): text, Storage Account Key (storage-account-key): text, Container (container): text, Endpoint (endpoint): url) | Confluence (CONFLUENCE): Name (name): text, Username (username): text, API Token (api-token): text, Domain (domain): text) | Discord (DISCORD): Name (name): text, Server ID (guild-id): text, Bot token (bot-token): text, Channel ID (channel-ids): array oftext) | Dropbox (DROPBOX): Name (name): text) | Google Drive OAuth (GOOGLE_DRIVE_OAUTH): Name (name): text) | Google Drive OAuth (Multi-user) (GOOGLE_DRIVE_OAUTH_MULTI): Name (name): text) | Google Drive OAuth (Multi-user with white label) (GOOGLE_DRIVE_OAUTH_MULTI_CUSTOM): Name (name): text, OAuth2 Client Id (oauth2-client-id): text, OAuth2 Client Secret (oauth2-client-secret): text) | Firecrawl (FIRECRAWL): Name (name): text, API Key (api-key): text) | GCP Cloud Storage (GCS): Name (name): text, Bucket (bucket-name): text) | Google Drive (GOOGLE_DRIVE): Name (name): text) | Intercom (INTERCOM): Name (name): text, Access Token (intercomAccessToken): text) | OneDrive (ONE_DRIVE): Name (name): text, Client Id (ms-client-id): text, Tenant Id (ms-tenant-id): text, Client Secret (ms-client-secret): text, Users (users): array oftext) | SharePoint (SHAREPOINT): Name (name): text, Client Id (ms-client-id): text, Tenant Id (ms-tenant-id): text, Client Secret (ms-client-secret): text) | Web Crawler (WEB_CRAWLER): Name (name): text, Seed URL(s) (seed-urls): array ofurl) | File Upload (FILE_UPLOAD): Name (name): text) + """Create a new source connector. Config values: Amazon S3 (AWS_S3): Name (name): text, Access Key (access-key): text, Secret Key (secret-key): text, Bucket Name (bucket-name): text, Endpoint (endpoint): url, Region (region): text, Allow as archive destination (archiver): boolean) | Azure Blob Storage (AZURE_BLOB): Name (name): text, Storage Account Name (storage-account-name): text, Storage Account Key (storage-account-key): text, Container (container): text, Endpoint (endpoint): url) | Confluence (CONFLUENCE): Name (name): text, Username (username): text, API Token (api-token): text, Domain (domain): text) | Discord (DISCORD): Name (name): text, Server ID (guild-id): text, Bot token (bot-token): text, Channel ID (channel-ids): array oftext) | Dropbox (DROPBOX): Name (name): text) | Google Drive OAuth (GOOGLE_DRIVE_OAUTH): Name (name): text) | Google Drive OAuth (Multi-user) (GOOGLE_DRIVE_OAUTH_MULTI): Name (name): text) | Google Drive OAuth (Multi-user with white label) (GOOGLE_DRIVE_OAUTH_MULTI_CUSTOM): Name (name): text, OAuth2 Client Id (oauth2-client-id): text, OAuth2 Client Secret (oauth2-client-secret): text) | Firecrawl (FIRECRAWL): Name (name): text, API Key (api-key): text) | GCP Cloud Storage (GCS): Name (name): text, Service Account JSON (service-account-json): textarea, Bucket (bucket-name): text) | Google Drive (GOOGLE_DRIVE): Name (name): text, Service Account JSON (service-account-json): textarea) | Intercom (INTERCOM): Name (name): text, Access Token (intercomAccessToken): text) | OneDrive (ONE_DRIVE): Name (name): text, Client Id (ms-client-id): text, Tenant Id (ms-tenant-id): text, Client Secret (ms-client-secret): text, Users (users): array oftext) | SharePoint (SHAREPOINT): Name (name): text, Client Id (ms-client-id): text, Tenant Id (ms-tenant-id): text, Client Secret (ms-client-secret): text) | Web Crawler (WEB_CRAWLER): Name (name): text, Seed URL(s) (seed-urls): array ofurl) | File Upload (FILE_UPLOAD): Name (name): text) :param organization: (required) @@ -1153,7 +1153,7 @@ def create_source_connector_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Create a new source connector. Config values: Amazon S3 (AWS_S3): Name (name): text, Access Key (access-key): text, Secret Key (secret-key): text, Bucket Name (bucket-name): text, Endpoint (endpoint): url, Region (region): text, Allow as archive destination (archiver): boolean) | Azure Blob Storage (AZURE_BLOB): Name (name): text, Storage Account Name (storage-account-name): text, Storage Account Key (storage-account-key): text, Container (container): text, Endpoint (endpoint): url) | Confluence (CONFLUENCE): Name (name): text, Username (username): text, API Token (api-token): text, Domain (domain): text) | Discord (DISCORD): Name (name): text, Server ID (guild-id): text, Bot token (bot-token): text, Channel ID (channel-ids): array oftext) | Dropbox (DROPBOX): Name (name): text) | Google Drive OAuth (GOOGLE_DRIVE_OAUTH): Name (name): text) | Google Drive OAuth (Multi-user) (GOOGLE_DRIVE_OAUTH_MULTI): Name (name): text) | Google Drive OAuth (Multi-user with white label) (GOOGLE_DRIVE_OAUTH_MULTI_CUSTOM): Name (name): text, OAuth2 Client Id (oauth2-client-id): text, OAuth2 Client Secret (oauth2-client-secret): text) | Firecrawl (FIRECRAWL): Name (name): text, API Key (api-key): text) | GCP Cloud Storage (GCS): Name (name): text, Bucket (bucket-name): text) | Google Drive (GOOGLE_DRIVE): Name (name): text) | Intercom (INTERCOM): Name (name): text, Access Token (intercomAccessToken): text) | OneDrive (ONE_DRIVE): Name (name): text, Client Id (ms-client-id): text, Tenant Id (ms-tenant-id): text, Client Secret (ms-client-secret): text, Users (users): array oftext) | SharePoint (SHAREPOINT): Name (name): text, Client Id (ms-client-id): text, Tenant Id (ms-tenant-id): text, Client Secret (ms-client-secret): text) | Web Crawler (WEB_CRAWLER): Name (name): text, Seed URL(s) (seed-urls): array ofurl) | File Upload (FILE_UPLOAD): Name (name): text) + """Create a new source connector. Config values: Amazon S3 (AWS_S3): Name (name): text, Access Key (access-key): text, Secret Key (secret-key): text, Bucket Name (bucket-name): text, Endpoint (endpoint): url, Region (region): text, Allow as archive destination (archiver): boolean) | Azure Blob Storage (AZURE_BLOB): Name (name): text, Storage Account Name (storage-account-name): text, Storage Account Key (storage-account-key): text, Container (container): text, Endpoint (endpoint): url) | Confluence (CONFLUENCE): Name (name): text, Username (username): text, API Token (api-token): text, Domain (domain): text) | Discord (DISCORD): Name (name): text, Server ID (guild-id): text, Bot token (bot-token): text, Channel ID (channel-ids): array oftext) | Dropbox (DROPBOX): Name (name): text) | Google Drive OAuth (GOOGLE_DRIVE_OAUTH): Name (name): text) | Google Drive OAuth (Multi-user) (GOOGLE_DRIVE_OAUTH_MULTI): Name (name): text) | Google Drive OAuth (Multi-user with white label) (GOOGLE_DRIVE_OAUTH_MULTI_CUSTOM): Name (name): text, OAuth2 Client Id (oauth2-client-id): text, OAuth2 Client Secret (oauth2-client-secret): text) | Firecrawl (FIRECRAWL): Name (name): text, API Key (api-key): text) | GCP Cloud Storage (GCS): Name (name): text, Service Account JSON (service-account-json): textarea, Bucket (bucket-name): text) | Google Drive (GOOGLE_DRIVE): Name (name): text, Service Account JSON (service-account-json): textarea) | Intercom (INTERCOM): Name (name): text, Access Token (intercomAccessToken): text) | OneDrive (ONE_DRIVE): Name (name): text, Client Id (ms-client-id): text, Tenant Id (ms-tenant-id): text, Client Secret (ms-client-secret): text, Users (users): array oftext) | SharePoint (SHAREPOINT): Name (name): text, Client Id (ms-client-id): text, Tenant Id (ms-tenant-id): text, Client Secret (ms-client-secret): text) | Web Crawler (WEB_CRAWLER): Name (name): text, Seed URL(s) (seed-urls): array ofurl) | File Upload (FILE_UPLOAD): Name (name): text) :param organization: (required) diff --git a/src/ts/package-lock.json b/src/ts/package-lock.json deleted file mode 100644 index add26e0..0000000 --- a/src/ts/package-lock.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "name": "@vectorize-io/vectorize-client", - "version": "0.1.2", - "lockfileVersion": 3, - "requires": true, - "packages": { - "": { - "name": "@vectorize-io/vectorize-client", - "version": "0.1.2", - "hasInstallScript": true, - "license": "MIT", - "devDependencies": { - "typescript": "^5.8.2" - } - }, - "node_modules/typescript": { - "version": "5.8.2", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.2.tgz", - "integrity": "sha512-aJn6wq13/afZp/jT9QZmwEjDqqvSGp1VT5GVg+f/t6/oVyrgXM6BY1h9BRh/O5p3PlUPAe+WuiEZOmb/49RqoQ==", - "dev": true, - "license": "Apache-2.0", - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=14.17" - } - } - } -} diff --git a/src/ts/package.json b/src/ts/package.json index ae2f960..c266f40 100644 --- a/src/ts/package.json +++ b/src/ts/package.json @@ -16,7 +16,7 @@ "preinstall": "npm install typescript" }, "devDependencies": { - "typescript": "^5.8.2" + "typescript": "^4.0 || ^5.0" }, "publishConfig": { "registry": "https://registry.npmjs.org", diff --git a/src/ts/src/apis/ConnectorsApi.ts b/src/ts/src/apis/ConnectorsApi.ts index 4c86bda..b63c76f 100644 --- a/src/ts/src/apis/ConnectorsApi.ts +++ b/src/ts/src/apis/ConnectorsApi.ts @@ -260,7 +260,7 @@ export class ConnectorsApi extends runtime.BaseAPI { } /** - * Create a new AI Platform connector. Config values: Amazon Bedrock (BEDROCK): Name (name): text, Access Key (access-key): text, Secret Key (key): text) | Google Vertex AI (VERTEX): Name (name): text, Region (region): text) | OpenAI (OPENAI): Name (name): text, API Key (key): text) | Voyage AI (VOYAGE): Name (name): text, API Key (key): text) | Built-in (VECTORIZE): ) + * Create a new AI Platform connector. Config values: Amazon Bedrock (BEDROCK): Name (name): text, Access Key (access-key): text, Secret Key (key): text) | Google Vertex AI (VERTEX): Name (name): text, Service Account Json (key): textarea, Region (region): text) | OpenAI (OPENAI): Name (name): text, API Key (key): text) | Voyage AI (VOYAGE): Name (name): text, API Key (key): text) | Built-in (VECTORIZE): ) */ async createAIPlatformConnectorRaw(requestParameters: CreateAIPlatformConnectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { if (requestParameters['organization'] == null) { @@ -303,7 +303,7 @@ export class ConnectorsApi extends runtime.BaseAPI { } /** - * Create a new AI Platform connector. Config values: Amazon Bedrock (BEDROCK): Name (name): text, Access Key (access-key): text, Secret Key (key): text) | Google Vertex AI (VERTEX): Name (name): text, Region (region): text) | OpenAI (OPENAI): Name (name): text, API Key (key): text) | Voyage AI (VOYAGE): Name (name): text, API Key (key): text) | Built-in (VECTORIZE): ) + * Create a new AI Platform connector. Config values: Amazon Bedrock (BEDROCK): Name (name): text, Access Key (access-key): text, Secret Key (key): text) | Google Vertex AI (VERTEX): Name (name): text, Service Account Json (key): textarea, Region (region): text) | OpenAI (OPENAI): Name (name): text, API Key (key): text) | Voyage AI (VOYAGE): Name (name): text, API Key (key): text) | Built-in (VECTORIZE): ) */ async createAIPlatformConnector(requestParameters: CreateAIPlatformConnectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { const response = await this.createAIPlatformConnectorRaw(requestParameters, initOverrides); @@ -362,7 +362,7 @@ export class ConnectorsApi extends runtime.BaseAPI { } /** - * Create a new source connector. Config values: Amazon S3 (AWS_S3): Name (name): text, Access Key (access-key): text, Secret Key (secret-key): text, Bucket Name (bucket-name): text, Endpoint (endpoint): url, Region (region): text, Allow as archive destination (archiver): boolean) | Azure Blob Storage (AZURE_BLOB): Name (name): text, Storage Account Name (storage-account-name): text, Storage Account Key (storage-account-key): text, Container (container): text, Endpoint (endpoint): url) | Confluence (CONFLUENCE): Name (name): text, Username (username): text, API Token (api-token): text, Domain (domain): text) | Discord (DISCORD): Name (name): text, Server ID (guild-id): text, Bot token (bot-token): text, Channel ID (channel-ids): array oftext) | Dropbox (DROPBOX): Name (name): text) | Google Drive OAuth (GOOGLE_DRIVE_OAUTH): Name (name): text) | Google Drive OAuth (Multi-user) (GOOGLE_DRIVE_OAUTH_MULTI): Name (name): text) | Google Drive OAuth (Multi-user with white label) (GOOGLE_DRIVE_OAUTH_MULTI_CUSTOM): Name (name): text, OAuth2 Client Id (oauth2-client-id): text, OAuth2 Client Secret (oauth2-client-secret): text) | Firecrawl (FIRECRAWL): Name (name): text, API Key (api-key): text) | GCP Cloud Storage (GCS): Name (name): text, Bucket (bucket-name): text) | Google Drive (GOOGLE_DRIVE): Name (name): text) | Intercom (INTERCOM): Name (name): text, Access Token (intercomAccessToken): text) | OneDrive (ONE_DRIVE): Name (name): text, Client Id (ms-client-id): text, Tenant Id (ms-tenant-id): text, Client Secret (ms-client-secret): text, Users (users): array oftext) | SharePoint (SHAREPOINT): Name (name): text, Client Id (ms-client-id): text, Tenant Id (ms-tenant-id): text, Client Secret (ms-client-secret): text) | Web Crawler (WEB_CRAWLER): Name (name): text, Seed URL(s) (seed-urls): array ofurl) | File Upload (FILE_UPLOAD): Name (name): text) + * Create a new source connector. Config values: Amazon S3 (AWS_S3): Name (name): text, Access Key (access-key): text, Secret Key (secret-key): text, Bucket Name (bucket-name): text, Endpoint (endpoint): url, Region (region): text, Allow as archive destination (archiver): boolean) | Azure Blob Storage (AZURE_BLOB): Name (name): text, Storage Account Name (storage-account-name): text, Storage Account Key (storage-account-key): text, Container (container): text, Endpoint (endpoint): url) | Confluence (CONFLUENCE): Name (name): text, Username (username): text, API Token (api-token): text, Domain (domain): text) | Discord (DISCORD): Name (name): text, Server ID (guild-id): text, Bot token (bot-token): text, Channel ID (channel-ids): array oftext) | Dropbox (DROPBOX): Name (name): text) | Google Drive OAuth (GOOGLE_DRIVE_OAUTH): Name (name): text) | Google Drive OAuth (Multi-user) (GOOGLE_DRIVE_OAUTH_MULTI): Name (name): text) | Google Drive OAuth (Multi-user with white label) (GOOGLE_DRIVE_OAUTH_MULTI_CUSTOM): Name (name): text, OAuth2 Client Id (oauth2-client-id): text, OAuth2 Client Secret (oauth2-client-secret): text) | Firecrawl (FIRECRAWL): Name (name): text, API Key (api-key): text) | GCP Cloud Storage (GCS): Name (name): text, Service Account JSON (service-account-json): textarea, Bucket (bucket-name): text) | Google Drive (GOOGLE_DRIVE): Name (name): text, Service Account JSON (service-account-json): textarea) | Intercom (INTERCOM): Name (name): text, Access Token (intercomAccessToken): text) | OneDrive (ONE_DRIVE): Name (name): text, Client Id (ms-client-id): text, Tenant Id (ms-tenant-id): text, Client Secret (ms-client-secret): text, Users (users): array oftext) | SharePoint (SHAREPOINT): Name (name): text, Client Id (ms-client-id): text, Tenant Id (ms-tenant-id): text, Client Secret (ms-client-secret): text) | Web Crawler (WEB_CRAWLER): Name (name): text, Seed URL(s) (seed-urls): array ofurl) | File Upload (FILE_UPLOAD): Name (name): text) */ async createSourceConnectorRaw(requestParameters: CreateSourceConnectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { if (requestParameters['organization'] == null) { @@ -405,7 +405,7 @@ export class ConnectorsApi extends runtime.BaseAPI { } /** - * Create a new source connector. Config values: Amazon S3 (AWS_S3): Name (name): text, Access Key (access-key): text, Secret Key (secret-key): text, Bucket Name (bucket-name): text, Endpoint (endpoint): url, Region (region): text, Allow as archive destination (archiver): boolean) | Azure Blob Storage (AZURE_BLOB): Name (name): text, Storage Account Name (storage-account-name): text, Storage Account Key (storage-account-key): text, Container (container): text, Endpoint (endpoint): url) | Confluence (CONFLUENCE): Name (name): text, Username (username): text, API Token (api-token): text, Domain (domain): text) | Discord (DISCORD): Name (name): text, Server ID (guild-id): text, Bot token (bot-token): text, Channel ID (channel-ids): array oftext) | Dropbox (DROPBOX): Name (name): text) | Google Drive OAuth (GOOGLE_DRIVE_OAUTH): Name (name): text) | Google Drive OAuth (Multi-user) (GOOGLE_DRIVE_OAUTH_MULTI): Name (name): text) | Google Drive OAuth (Multi-user with white label) (GOOGLE_DRIVE_OAUTH_MULTI_CUSTOM): Name (name): text, OAuth2 Client Id (oauth2-client-id): text, OAuth2 Client Secret (oauth2-client-secret): text) | Firecrawl (FIRECRAWL): Name (name): text, API Key (api-key): text) | GCP Cloud Storage (GCS): Name (name): text, Bucket (bucket-name): text) | Google Drive (GOOGLE_DRIVE): Name (name): text) | Intercom (INTERCOM): Name (name): text, Access Token (intercomAccessToken): text) | OneDrive (ONE_DRIVE): Name (name): text, Client Id (ms-client-id): text, Tenant Id (ms-tenant-id): text, Client Secret (ms-client-secret): text, Users (users): array oftext) | SharePoint (SHAREPOINT): Name (name): text, Client Id (ms-client-id): text, Tenant Id (ms-tenant-id): text, Client Secret (ms-client-secret): text) | Web Crawler (WEB_CRAWLER): Name (name): text, Seed URL(s) (seed-urls): array ofurl) | File Upload (FILE_UPLOAD): Name (name): text) + * Create a new source connector. Config values: Amazon S3 (AWS_S3): Name (name): text, Access Key (access-key): text, Secret Key (secret-key): text, Bucket Name (bucket-name): text, Endpoint (endpoint): url, Region (region): text, Allow as archive destination (archiver): boolean) | Azure Blob Storage (AZURE_BLOB): Name (name): text, Storage Account Name (storage-account-name): text, Storage Account Key (storage-account-key): text, Container (container): text, Endpoint (endpoint): url) | Confluence (CONFLUENCE): Name (name): text, Username (username): text, API Token (api-token): text, Domain (domain): text) | Discord (DISCORD): Name (name): text, Server ID (guild-id): text, Bot token (bot-token): text, Channel ID (channel-ids): array oftext) | Dropbox (DROPBOX): Name (name): text) | Google Drive OAuth (GOOGLE_DRIVE_OAUTH): Name (name): text) | Google Drive OAuth (Multi-user) (GOOGLE_DRIVE_OAUTH_MULTI): Name (name): text) | Google Drive OAuth (Multi-user with white label) (GOOGLE_DRIVE_OAUTH_MULTI_CUSTOM): Name (name): text, OAuth2 Client Id (oauth2-client-id): text, OAuth2 Client Secret (oauth2-client-secret): text) | Firecrawl (FIRECRAWL): Name (name): text, API Key (api-key): text) | GCP Cloud Storage (GCS): Name (name): text, Service Account JSON (service-account-json): textarea, Bucket (bucket-name): text) | Google Drive (GOOGLE_DRIVE): Name (name): text, Service Account JSON (service-account-json): textarea) | Intercom (INTERCOM): Name (name): text, Access Token (intercomAccessToken): text) | OneDrive (ONE_DRIVE): Name (name): text, Client Id (ms-client-id): text, Tenant Id (ms-tenant-id): text, Client Secret (ms-client-secret): text, Users (users): array oftext) | SharePoint (SHAREPOINT): Name (name): text, Client Id (ms-client-id): text, Tenant Id (ms-tenant-id): text, Client Secret (ms-client-secret): text) | Web Crawler (WEB_CRAWLER): Name (name): text, Seed URL(s) (seed-urls): array ofurl) | File Upload (FILE_UPLOAD): Name (name): text) */ async createSourceConnector(requestParameters: CreateSourceConnectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { const response = await this.createSourceConnectorRaw(requestParameters, initOverrides); diff --git a/tests/python/tests/test_client.py b/tests/python/tests/test_client.py index 676f453..8ac10ab 100644 --- a/tests/python/tests/test_client.py +++ b/tests/python/tests/test_client.py @@ -88,9 +88,9 @@ def test_upload_create_pipeline(ctx: TestContext): try: response = pipelines.create_pipeline(ctx.org_id, v.PipelineConfigurationSchema( - source_connectors=[v.SourceConnectorSchema(id=source_connector_id, type="FILE_UPLOAD", config={})], - destination_connector=v.DestinationConnectorSchema(id=builtin_vector_db, type="VECTORIZE", config={}), - ai_platform=v.AIPlatformSchema(id=builtin_ai_platform, type="VECTORIZE", config={}), + source_connectors=[v.SourceConnectorSchema(id=source_connector_id, type=v.SourceConnectorType.FILE_UPLOAD, config={})], + destination_connector=v.DestinationConnectorSchema(id=builtin_vector_db, type=v.DestinationConnectorType.VECTORIZE, config={}), + ai_platform=v.AIPlatformSchema(id=builtin_ai_platform, type=v.AIPlatformType.VECTORIZE, config={}), pipeline_name="Test pipeline", schedule=v.ScheduleSchema(type="manual") ) diff --git a/vectorize_api.json b/vectorize_api.json index f7080bd..547251a 100644 --- a/vectorize_api.json +++ b/vectorize_api.json @@ -1 +1 @@ -{"openapi":"3.0.0","info":{"title":"Vectorize API (Beta)","version":"0.0.1","description":"API for Vectorize services","contact":{"name":"Vectorize","url":"https://vectorize.io"}},"servers":[{"url":"https://api.vectorize.io/v1","description":"Vectorize API"}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"CreatePipelineResponse":{"type":"object","properties":{"message":{"type":"string"},"data":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}},"required":["message","data"]},"SourceConnectorType":{"type":"string","enum":["AWS_S3","AZURE_BLOB","CONFLUENCE","DISCORD","DROPBOX","GOOGLE_DRIVE_OAUTH","GOOGLE_DRIVE_OAUTH_MULTI","GOOGLE_DRIVE_OAUTH_MULTI_CUSTOM","FIRECRAWL","GCS","GOOGLE_DRIVE","INTERCOM","ONE_DRIVE","SHAREPOINT","WEB_CRAWLER","FILE_UPLOAD","SALESFORCE","ZENDESK"]},"SourceConnectorSchema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"type":{"$ref":"#/components/schemas/SourceConnectorType"},"config":{"type":"object","additionalProperties":{"nullable":true}}},"required":["id","type"],"additionalProperties":false},"DestinationConnectorType":{"type":"string","enum":["CAPELLA","DATASTAX","ELASTIC","PINECONE","SINGLESTORE","MILVUS","POSTGRESQL","QDRANT","WEAVIATE","AZUREAISEARCH","VECTORIZE","CHROMA","MONGODB"]},"DestinationConnectorSchema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"type":{"$ref":"#/components/schemas/DestinationConnectorType"},"config":{"type":"object","additionalProperties":{"nullable":true}}},"required":["id","type"],"additionalProperties":false},"AIPlatformType":{"type":"string","enum":["BEDROCK","VERTEX","OPENAI","VOYAGE","VECTORIZE"]},"AIPlatformConfigSchema":{"type":"object","properties":{"embeddingModel":{"type":"string","enum":["VECTORIZE_OPEN_AI_TEXT_EMBEDDING_2","VECTORIZE_OPEN_AI_TEXT_EMBEDDING_3_LARGE","VECTORIZE_OPEN_AI_TEXT_EMBEDDING_3_SMALL","VECTORIZE_VOYAGE_AI_2","VECTORIZE_VOYAGE_AI_3","VECTORIZE_VOYAGE_AI_3_LITE","VECTORIZE_VOYAGE_AI_3_LARGE","VECTORIZE_VOYAGE_AI_FINANCE_2","VECTORIZE_VOYAGE_AI_MULTILINGUAL_2","VECTORIZE_VOYAGE_AI_LAW_2","VECTORIZE_VOYAGE_AI_CODE_2","VECTORIZE_TITAN_TEXT_EMBEDDING_2","VECTORIZE_TITAN_TEXT_EMBEDDING_1","OPEN_AI_TEXT_EMBEDDING_2","OPEN_AI_TEXT_EMBEDDING_3_SMALL","OPEN_AI_TEXT_EMBEDDING_3_LARGE","VOYAGE_AI_2","VOYAGE_AI_3","VOYAGE_AI_3_LITE","VOYAGE_AI_3_LARGE","VOYAGE_AI_FINANCE_2","VOYAGE_AI_MULTILINGUAL_2","VOYAGE_AI_LAW_2","VOYAGE_AI_CODE_2","TITAN_TEXT_EMBEDDING_1","TITAN_TEXT_EMBEDDING_2","VERTEX_TEXT_EMBEDDING_4","VERTEX_TEXT_EMBEDDING_GECKO_3","VERTEX_GECKO_MULTILINGUAL_1","VERTEX_MULTILINGUAL_EMBEDDING_2"]},"chunkingStrategy":{"type":"string","enum":["FIXED","SENTENCE","PARAGRAPH","MARKDOWN"]},"chunkSize":{"type":"integer","minimum":1},"chunkOverlap":{"type":"integer","minimum":0},"dimensions":{"type":"integer","minimum":1},"extractionStrategy":{"type":"string","enum":["FAST","IRIS","MIXED"]}},"additionalProperties":false},"AIPlatformSchema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"type":{"$ref":"#/components/schemas/AIPlatformType"},"config":{"$ref":"#/components/schemas/AIPlatformConfigSchema"}},"required":["id","type","config"],"additionalProperties":false},"ScheduleSchemaType":{"type":"string","enum":["manual","realtime","custom"]},"ScheduleSchema":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/ScheduleSchemaType"}},"required":["type"]},"PipelineConfigurationSchema":{"type":"object","properties":{"sourceConnectors":{"type":"array","items":{"$ref":"#/components/schemas/SourceConnectorSchema"},"minItems":1},"destinationConnector":{"$ref":"#/components/schemas/DestinationConnectorSchema"},"aiPlatform":{"$ref":"#/components/schemas/AIPlatformSchema"},"pipelineName":{"type":"string","minLength":1},"schedule":{"$ref":"#/components/schemas/ScheduleSchema"}},"required":["sourceConnectors","destinationConnector","aiPlatform","pipelineName","schedule"],"additionalProperties":false},"PipelineListSummary":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"documentCount":{"type":"number"},"sourceConnectorAuthIds":{"type":"array","items":{"type":"string"}},"destinationConnectorAuthIds":{"type":"array","items":{"type":"string"}},"aiPlatformAuthIds":{"type":"array","items":{"type":"string"}},"sourceConnectorTypes":{"type":"array","items":{"type":"string"}},"destinationConnectorTypes":{"type":"array","items":{"type":"string"}},"aiPlatformTypes":{"type":"array","items":{"type":"string"}},"createdAt":{"type":"string","nullable":true},"createdBy":{"type":"string"},"status":{"type":"string"},"configDoc":{"type":"object","additionalProperties":{"nullable":true}}},"required":["id","name","documentCount","sourceConnectorAuthIds","destinationConnectorAuthIds","aiPlatformAuthIds","sourceConnectorTypes","destinationConnectorTypes","aiPlatformTypes","createdAt","createdBy"]},"GetPipelinesResponse":{"type":"object","properties":{"message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/PipelineListSummary"}}},"required":["message","data"]},"SourceConnector":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string"},"name":{"type":"string"},"configDoc":{"type":"object","additionalProperties":{"nullable":true}},"createdAt":{"type":"string","nullable":true},"createdById":{"type":"string"},"lastUpdatedById":{"type":"string"},"createdByEmail":{"type":"string"},"lastUpdatedByEmail":{"type":"string"},"errorMessage":{"type":"string"},"verificationStatus":{"type":"string"}},"required":["id","type","name"]},"DestinationConnector":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string"},"name":{"type":"string"},"configDoc":{"type":"object","additionalProperties":{"nullable":true}},"createdAt":{"type":"string","nullable":true},"createdById":{"type":"string"},"lastUpdatedById":{"type":"string"},"createdByEmail":{"type":"string"},"lastUpdatedByEmail":{"type":"string"},"errorMessage":{"type":"string"},"verificationStatus":{"type":"string"}},"required":["id","type","name"]},"AIPlatform":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string"},"name":{"type":"string"},"configDoc":{"type":"object","additionalProperties":{"nullable":true}},"createdAt":{"type":"string","nullable":true},"createdById":{"type":"string"},"lastUpdatedById":{"type":"string"},"createdByEmail":{"type":"string"},"lastUpdatedByEmail":{"type":"string"},"errorMessage":{"type":"string"},"verificationStatus":{"type":"string"}},"required":["id","type","name"]},"PipelineSummary":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"documentCount":{"type":"number"},"sourceConnectorAuthIds":{"type":"array","items":{"type":"string"}},"destinationConnectorAuthIds":{"type":"array","items":{"type":"string"}},"aiPlatformAuthIds":{"type":"array","items":{"type":"string"}},"sourceConnectorTypes":{"type":"array","items":{"type":"string"}},"destinationConnectorTypes":{"type":"array","items":{"type":"string"}},"aiPlatformTypes":{"type":"array","items":{"type":"string"}},"createdAt":{"type":"string","nullable":true},"createdBy":{"type":"string"},"status":{"type":"string"},"configDoc":{"type":"object","additionalProperties":{"nullable":true}},"sourceConnectors":{"type":"array","items":{"$ref":"#/components/schemas/SourceConnector"}},"destinationConnectors":{"type":"array","items":{"$ref":"#/components/schemas/DestinationConnector"}},"aiPlatforms":{"type":"array","items":{"$ref":"#/components/schemas/AIPlatform"}}},"required":["id","name","documentCount","sourceConnectorAuthIds","destinationConnectorAuthIds","aiPlatformAuthIds","sourceConnectorTypes","destinationConnectorTypes","aiPlatformTypes","createdAt","createdBy","sourceConnectors","destinationConnectors","aiPlatforms"]},"GetPipelineResponse":{"type":"object","properties":{"message":{"type":"string"},"data":{"$ref":"#/components/schemas/PipelineSummary"}},"required":["message","data"]},"DeletePipelineResponse":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]},"PipelineEvents":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string"},"timestamp":{"type":"string","nullable":true},"details":{"type":"object","additionalProperties":{"nullable":true}},"summary":{"type":"object","additionalProperties":{"nullable":true}}},"required":["id","type","timestamp"]},"GetPipelineEventsResponse":{"type":"object","properties":{"message":{"type":"string"},"nextToken":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/PipelineEvents"}}},"required":["message","data"]},"PipelineMetrics":{"type":"object","properties":{"timestamp":{"type":"string","nullable":true},"newObjects":{"type":"number"},"changedObjects":{"type":"number"},"deletedObjects":{"type":"number"}},"required":["timestamp","newObjects","changedObjects","deletedObjects"]},"GetPipelineMetricsResponse":{"type":"object","properties":{"message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/PipelineMetrics"}}},"required":["message","data"]},"Document":{"type":"object","properties":{"relevancy":{"type":"number"},"id":{"type":"string"},"text":{"type":"string"},"chunk_id":{"type":"string"},"total_chunks":{"type":"string"},"origin":{"type":"string"},"origin_id":{"type":"string"},"similarity":{"type":"number"},"source":{"type":"string"},"unique_source":{"type":"string"},"source_display_name":{"type":"string"},"pipeline_id":{"type":"string"},"org_id":{"type":"string"}},"required":["relevancy","id","text","chunk_id","total_chunks","origin","origin_id","similarity","source","unique_source","source_display_name"],"additionalProperties":true},"RetrieveDocumentsResponse":{"type":"object","properties":{"question":{"type":"string"},"documents":{"type":"array","items":{"$ref":"#/components/schemas/Document"}},"average_relevancy":{"type":"number"},"ndcg":{"type":"number"}},"required":["question","documents","average_relevancy","ndcg"]},"RetrieveContextMessage":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":"string"}},"required":["role","content"]},"RetrieveContext":{"type":"object","properties":{"messages":{"type":"array","items":{"$ref":"#/components/schemas/RetrieveContextMessage"}}},"required":["messages"]},"RetrieveDocumentsRequest":{"type":"object","properties":{"question":{"type":"string"},"numResults":{"type":"number","minimum":1},"rerank":{"type":"boolean","default":true},"metadata-filters":{"type":"array","items":{"type":"object","additionalProperties":{"nullable":true}}},"context":{"$ref":"#/components/schemas/RetrieveContext"}},"required":["question","numResults"]},"StartPipelineResponse":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]},"StopPipelineResponse":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]},"StartDeepResearchResponse":{"type":"object","properties":{"researchId":{"type":"string"}},"required":["researchId"]},"N8NConfig":{"type":"object","properties":{"account":{"type":"string"},"webhookPath":{"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}}},"required":["account","webhookPath"]},"StartDeepResearchRequest":{"type":"object","properties":{"query":{"type":"string"},"webSearch":{"type":"boolean","default":false},"schema":{"type":"string"},"n8n":{"$ref":"#/components/schemas/N8NConfig"}},"required":["query"]},"DeepResearchResult":{"type":"object","properties":{"success":{"type":"boolean"},"events":{"type":"array","items":{"type":"string"}},"markdown":{"type":"string"},"error":{"type":"string"}},"required":["success"]},"GetDeepResearchResponse":{"type":"object","properties":{"ready":{"type":"boolean"},"data":{"$ref":"#/components/schemas/DeepResearchResult"}},"required":["ready"]},"CreatedSourceConnector":{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"string"}},"required":["name","id"]},"CreateSourceConnectorResponse":{"type":"object","properties":{"message":{"type":"string"},"connectors":{"type":"array","items":{"$ref":"#/components/schemas/CreatedSourceConnector"}}},"required":["message","connectors"]},"CreateSourceConnector":{"type":"object","properties":{"name":{"type":"string"},"type":{"$ref":"#/components/schemas/SourceConnectorType"},"config":{"type":"object","additionalProperties":{"nullable":true}}},"required":["name","type"]},"CreateSourceConnectorRequest":{"type":"array","items":{"$ref":"#/components/schemas/CreateSourceConnector"},"minItems":1},"UpdateSourceConnectorResponseData":{"type":"object","properties":{"updatedConnector":{"$ref":"#/components/schemas/SourceConnector"},"pipelineIds":{"type":"array","items":{"type":"string"}}},"required":["updatedConnector"]},"UpdateSourceConnectorResponse":{"type":"object","properties":{"message":{"type":"string"},"data":{"$ref":"#/components/schemas/UpdateSourceConnectorResponseData"}},"required":["message","data"]},"UpdateSourceConnectorRequest":{"type":"object","properties":{"config":{"type":"object","additionalProperties":{"nullable":true}}},"required":["config"]},"DeleteSourceConnectorResponse":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]},"CreatedDestinationConnector":{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"string"}},"required":["name","id"]},"CreateDestinationConnectorResponse":{"type":"object","properties":{"message":{"type":"string"},"connectors":{"type":"array","items":{"$ref":"#/components/schemas/CreatedDestinationConnector"}}},"required":["message","connectors"]},"CreateDestinationConnector":{"type":"object","properties":{"name":{"type":"string"},"type":{"$ref":"#/components/schemas/DestinationConnectorType"},"config":{"type":"object","additionalProperties":{"nullable":true}}},"required":["name","type"]},"CreateDestinationConnectorRequest":{"type":"array","items":{"$ref":"#/components/schemas/CreateDestinationConnector"},"minItems":1},"UpdatedDestinationConnectorData":{"type":"object","properties":{"updatedConnector":{"$ref":"#/components/schemas/DestinationConnector"},"pipelineIds":{"type":"array","items":{"type":"string"}}},"required":["updatedConnector"]},"UpdateDestinationConnectorResponse":{"type":"object","properties":{"message":{"type":"string"},"data":{"$ref":"#/components/schemas/UpdatedDestinationConnectorData"}},"required":["message","data"]},"UpdateDestinationConnectorRequest":{"type":"object","properties":{"config":{"type":"object","additionalProperties":{"nullable":true}}},"required":["config"]},"DeleteDestinationConnectorResponse":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]},"CreatedAIPlatformConnector":{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"string"}},"required":["name","id"]},"CreateAIPlatformConnectorResponse":{"type":"object","properties":{"message":{"type":"string"},"connectors":{"type":"array","items":{"$ref":"#/components/schemas/CreatedAIPlatformConnector"}}},"required":["message","connectors"]},"CreateAIPlatformConnector":{"type":"object","properties":{"name":{"type":"string"},"type":{"$ref":"#/components/schemas/AIPlatformType"},"config":{"type":"object","additionalProperties":{"nullable":true}}},"required":["name","type"]},"CreateAIPlatformConnectorRequest":{"type":"array","items":{"$ref":"#/components/schemas/CreateAIPlatformConnector"},"minItems":1},"UpdatedAIPlatformConnectorData":{"type":"object","properties":{"updatedConnector":{"$ref":"#/components/schemas/AIPlatform"},"pipelineIds":{"type":"array","items":{"type":"string"}}},"required":["updatedConnector"]},"UpdateAIPlatformConnectorResponse":{"type":"object","properties":{"message":{"type":"string"},"data":{"$ref":"#/components/schemas/UpdatedAIPlatformConnectorData"}},"required":["message","data"]},"UpdateAIPlatformConnectorRequest":{"type":"object","properties":{"config":{"type":"object","additionalProperties":{"nullable":true}}},"required":["config"]},"DeleteAIPlatformConnectorResponse":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]},"UploadFile":{"type":"object","properties":{"key":{"type":"string"},"name":{"type":"string"},"size":{"type":"number"},"extension":{"type":"string"},"lastModified":{"type":"string","nullable":true},"metadata":{"type":"object","additionalProperties":{"type":"string"}}},"required":["key","name","size","lastModified","metadata"]},"GetUploadFilesResponse":{"type":"object","properties":{"message":{"type":"string"},"files":{"type":"array","items":{"$ref":"#/components/schemas/UploadFile"}}},"required":["message","files"]},"StartFileUploadToConnectorResponse":{"type":"object","properties":{"uploadUrl":{"type":"string"}},"required":["uploadUrl"]},"StartFileUploadToConnectorRequest":{"type":"object","properties":{"name":{"type":"string"},"contentType":{"type":"string"},"metadata":{"type":"string"}},"required":["name","contentType"]},"DeleteFileResponse":{"type":"object","properties":{"message":{"type":"string"},"fileName":{"type":"string"}},"required":["message","fileName"]},"StartExtractionResponse":{"type":"object","properties":{"message":{"type":"string"},"extractionId":{"type":"string"}},"required":["message","extractionId"]},"ExtractionType":{"type":"string","enum":["iris"],"default":"iris"},"ExtractionChunkingStrategy":{"type":"string","enum":["markdown"],"default":"markdown"},"StartExtractionRequest":{"type":"object","properties":{"fileId":{"type":"string"},"type":{"$ref":"#/components/schemas/ExtractionType"},"chunkingStrategy":{"$ref":"#/components/schemas/ExtractionChunkingStrategy"},"chunkSize":{"type":"number","default":256}},"required":["fileId"]},"ExtractionResult":{"type":"object","properties":{"success":{"type":"boolean"},"chunks":{"type":"array","items":{"type":"string"}},"text":{"type":"string"},"error":{"type":"string"}},"required":["success"]},"ExtractionResultResponse":{"type":"object","properties":{"ready":{"type":"boolean"},"data":{"$ref":"#/components/schemas/ExtractionResult"}},"required":["ready"]},"StartFileUploadResponse":{"type":"object","properties":{"fileId":{"type":"string"},"uploadUrl":{"type":"string"}},"required":["fileId","uploadUrl"]},"StartFileUploadRequest":{"type":"object","properties":{"name":{"type":"string"},"contentType":{"type":"string"}},"required":["name","contentType"]},"AddUserFromSourceConnectorResponse":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]},"AddUserToSourceConnectorRequest":{"type":"object","properties":{"userId":{"type":"string"},"fileIds":{"type":"array","items":{"type":"string"}},"refreshToken":{"type":"string"}},"required":["userId","refreshToken"]},"UpdateUserInSourceConnectorResponse":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]},"UpdateUserInSourceConnectorRequest":{"type":"object","properties":{"userId":{"type":"string"},"fileIds":{"type":"array","items":{"type":"string"}},"refreshToken":{"type":"string"}},"required":["userId"]},"RemoveUserFromSourceConnectorResponse":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]},"RemoveUserFromSourceConnectorRequest":{"type":"object","properties":{"userId":{"type":"string"}},"required":["userId"]}},"parameters":{}},"paths":{"/org/{organization}/pipelines":{"post":{"operationId":"createPipeline","summary":"Create a new source pipeline. Config fields for sources: Amazon S3 (AWS_S3): \nCheck for updates every (seconds) (idle-time): number, Path Prefix (path-prefix): text, Path Metadata Regex (path-metadata-regex): text, Path Regex Group Names (path-regex-group-names): array oftext) | Azure Blob Storage (AZURE_BLOB): \nPolling Interval (seconds) (idle-time): number, Path Prefix (path-prefix): text, Path Metadata Regex (path-metadata-regex): text, Path Regex Group Names (path-regex-group-names): array oftext) | Confluence (CONFLUENCE): \nSpaces (spaces): array oftext, Root Parents (root-parents): array oftext) | Discord (DISCORD): \nEmoji Filter (emoji): array oftext, Author Filter (author): array oftext, Ignore Author Filter (ignore-author): array oftext, Limit (limit): number) | Dropbox (DROPBOX): \nRead starting from these folders (optional) (path-prefix): array oftext) | Google Drive OAuth (GOOGLE_DRIVE_OAUTH): \nPolling Interval (seconds) (idle-time): number) | Google Drive OAuth (Multi-user) (GOOGLE_DRIVE_OAUTH_MULTI): \nPolling Interval (seconds) (idle-time): number) | Google Drive OAuth (Multi-user with white label) (GOOGLE_DRIVE_OAUTH_MULTI_CUSTOM): \nPolling Interval (seconds) (idle-time): number) | Firecrawl (FIRECRAWL): \n) | GCP Cloud Storage (GCS): \nCheck for updates every (seconds) (idle-time): number, Path Prefix (path-prefix): text, Path Metadata Regex (path-metadata-regex): text, Path Regex Group Names (path-regex-group-names): array oftext) | Google Drive (GOOGLE_DRIVE): \nRestrict ingest to these folder URLs (optional) (root-parents): array oftext, Polling Interval (seconds) (idle-time): number) | Intercom (INTERCOM): \nReindex Interval (seconds) (reindexIntervalSeconds): number, Limit (limit): number, Tags (tags): array oftext) | OneDrive (ONE_DRIVE): \nRead starting from this folder (optional) (path-prefix): text) | SharePoint (SHAREPOINT): \nSite Name(s) (sites): array oftext) | Web Crawler (WEB_CRAWLER): \nAdditional Allowed URLs or prefix(es) (allowed-domains-opt): array ofurl, Forbidden Paths (forbidden-paths): array oftext, Throttle (ms) (min-time-between-requests): number, Max Error Count (max-error-count): number, Max URLs (max-urls): number, Max Depth (max-depth): number, Reindex Interval (seconds) (reindex-interval-seconds): number) | File Upload (FILE_UPLOAD): \n). Config fields for destinations: Couchbase Capella (CAPELLA): \nBucket Name (bucket): text, Scope Name (scope): text, Collection Name (collection): text, Search Index Name (index): text) | DataStax Astra (DATASTAX): \nCollection Name (collection): text) | Elasticsearch (ELASTIC): \nIndex Name (index): text) | Pinecone (PINECONE): \nIndex Name (index): text, Namespace (namespace): text) | SingleStore (SINGLESTORE): \nTable Name (table): text) | Milvus (MILVUS): \nCollection Name (collection): text) | PostgreSQL (POSTGRESQL): \nTable Name (table): text) | Qdrant (QDRANT): \nCollection Name (collection): text) | Weaviate (WEAVIATE): \nCollection Name (collection): text) | Azure AI Search (AZUREAISEARCH): \nIndex Name (index): text) | Built-in (VECTORIZE): \n) | Chroma (CHROMA): \nIndex Name (index): text) | MongoDB (MONGODB): \nIndex Name (index): text). Config fields for AI platforms: ","tags":["Pipelines"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PipelineConfigurationSchema"}}}},"responses":{"200":{"description":"Pipeline created successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePipelineResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}},"get":{"operationId":"getPipelines","summary":"Get all existing pipelines","tags":["Pipelines"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"}],"responses":{"200":{"description":"Get all pipelines","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetPipelinesResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/pipelines/{pipeline}":{"get":{"operationId":"getPipeline","summary":"Get a pipeline","tags":["Pipelines"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"pipeline","in":"path"}],"responses":{"200":{"description":"Pipeline fetched successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetPipelineResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}},"delete":{"operationId":"deletePipeline","summary":"Delete a pipeline","tags":["Pipelines"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"pipeline","in":"path"}],"responses":{"200":{"description":"Pipeline deleted successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeletePipelineResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/pipelines/{pipeline}/events":{"get":{"operationId":"getPipelineEvents","summary":"Get pipeline events","tags":["Pipelines"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"pipeline","in":"path"},{"schema":{"type":"string"},"required":false,"name":"nextToken","in":"query"}],"responses":{"200":{"description":"Pipeline events fetched successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetPipelineEventsResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/pipelines/{pipeline}/metrics":{"get":{"operationId":"getPipelineMetrics","summary":"Get pipeline metrics","tags":["Pipelines"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"pipeline","in":"path"}],"responses":{"200":{"description":"Pipeline metrics fetched successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetPipelineMetricsResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/pipelines/{pipeline}/retrieval":{"post":{"operationId":"retrieveDocuments","summary":"Retrieve documents from a pipeline","tags":["Pipelines"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"pipeline","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetrieveDocumentsRequest"}}}},"responses":{"200":{"description":"Documents retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetrieveDocumentsResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/pipelines/{pipeline}/start":{"post":{"operationId":"startPipeline","summary":"Start a pipeline","tags":["Pipelines"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"pipeline","in":"path"}],"responses":{"200":{"description":"Pipeline started successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartPipelineResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/pipelines/{pipeline}/stop":{"post":{"operationId":"stopPipeline","summary":"Stop a pipeline","tags":["Pipelines"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"pipeline","in":"path"}],"responses":{"200":{"description":"Pipeline stopped successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StopPipelineResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/pipelines/{pipeline}/deep-research":{"post":{"operationId":"startDeepResearch","summary":"Start a deep research","tags":["Pipelines"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"pipeline","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartDeepResearchRequest"}}}},"responses":{"200":{"description":"Deep Research started successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartDeepResearchResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/pipelines/{pipeline}/deep-research/{researchId}":{"get":{"operationId":"getDeepResearchResult","summary":"Get deep research result","tags":["Pipelines"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"pipeline","in":"path"},{"schema":{"type":"string"},"required":true,"name":"researchId","in":"path"}],"responses":{"200":{"description":"Get Deep Research was successful","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetDeepResearchResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/connectors/sources":{"post":{"operationId":"createSourceConnector","summary":"Create a new source connector. Config values: Amazon S3 (AWS_S3): \nName (name): text, Access Key (access-key): text, Secret Key (secret-key): text, Bucket Name (bucket-name): text, Endpoint (endpoint): url, Region (region): text, Allow as archive destination (archiver): boolean) | Azure Blob Storage (AZURE_BLOB): \nName (name): text, Storage Account Name (storage-account-name): text, Storage Account Key (storage-account-key): text, Container (container): text, Endpoint (endpoint): url) | Confluence (CONFLUENCE): \nName (name): text, Username (username): text, API Token (api-token): text, Domain (domain): text) | Discord (DISCORD): \nName (name): text, Server ID (guild-id): text, Bot token (bot-token): text, Channel ID (channel-ids): array oftext) | Dropbox (DROPBOX): \nName (name): text) | Google Drive OAuth (GOOGLE_DRIVE_OAUTH): \nName (name): text) | Google Drive OAuth (Multi-user) (GOOGLE_DRIVE_OAUTH_MULTI): \nName (name): text) | Google Drive OAuth (Multi-user with white label) (GOOGLE_DRIVE_OAUTH_MULTI_CUSTOM): \nName (name): text, OAuth2 Client Id (oauth2-client-id): text, OAuth2 Client Secret (oauth2-client-secret): text) | Firecrawl (FIRECRAWL): \nName (name): text, API Key (api-key): text) | GCP Cloud Storage (GCS): \nName (name): text, Bucket (bucket-name): text) | Google Drive (GOOGLE_DRIVE): \nName (name): text) | Intercom (INTERCOM): \nName (name): text, Access Token (intercomAccessToken): text) | OneDrive (ONE_DRIVE): \nName (name): text, Client Id (ms-client-id): text, Tenant Id (ms-tenant-id): text, Client Secret (ms-client-secret): text, Users (users): array oftext) | SharePoint (SHAREPOINT): \nName (name): text, Client Id (ms-client-id): text, Tenant Id (ms-tenant-id): text, Client Secret (ms-client-secret): text) | Web Crawler (WEB_CRAWLER): \nName (name): text, Seed URL(s) (seed-urls): array ofurl) | File Upload (FILE_UPLOAD): \nName (name): text)","tags":["Connectors"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSourceConnectorRequest"}}}},"responses":{"200":{"description":"Connector successfully created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSourceConnectorResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}},"get":{"operationId":"getSourceConnectors","summary":"Get all existing source connectors","tags":["Connectors"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"}],"responses":{"200":{"description":"Get all source connectors","content":{"application/json":{"schema":{"type":"object","properties":{"sourceConnectors":{"type":"array","items":{"$ref":"#/components/schemas/SourceConnector"}}},"required":["sourceConnectors"]}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/connectors/sources/{sourceConnectorId}":{"get":{"operationId":"getSourceConnector","summary":"Get a source connector","tags":["Connectors"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"sourceConnectorId","in":"path"}],"responses":{"200":{"description":"Get a source connector","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourceConnector"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}},"patch":{"operationId":"updateSourceConnector","summary":"Update a source connector","tags":["Connectors"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"sourceConnectorId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSourceConnectorRequest"}}}},"responses":{"200":{"description":"Source connector successfully updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSourceConnectorResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}},"delete":{"operationId":"deleteSourceConnector","summary":"Delete a source connector","tags":["Connectors"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"sourceConnectorId","in":"path"}],"responses":{"200":{"description":"Source connector successfully deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteSourceConnectorResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/connectors/destinations":{"post":{"operationId":"createDestinationConnector","summary":"Create a new destination connector. Config values: Couchbase Capella (CAPELLA): \nName (name): text, Cluster Access Name (username): text, Cluster Access Password (password): text, Connection String (connection-string): text) | DataStax Astra (DATASTAX): \nName (name): text, API Endpoint (endpoint_secret): text, Application Token (token): text) | Elasticsearch (ELASTIC): \nName (name): text, Host (host): text, Port (port): text, API Key (api-key): text) | Pinecone (PINECONE): \nName (name): text, API Key (api-key): text) | SingleStore (SINGLESTORE): \nName (name): text, Host (host): text, Port (port): number, Database (database): text, Username (username): text, Password (password): text) | Milvus (MILVUS): \nName (name): text, Public Endpoint (url): text, Token (token): text, Username (username): text, Password (password): text) | PostgreSQL (POSTGRESQL): \nName (name): text, Host (host): text, Port (port): number, Database (database): text, Username (username): text, Password (password): text) | Qdrant (QDRANT): \nName (name): text, Host (host): text, API Key (api-key): text) | Weaviate (WEAVIATE): \nName (name): text, Endpoint (host): text, API Key (api-key): text) | Azure AI Search (AZUREAISEARCH): \nName (name): text, Azure AI Search Service Name (service-name): text, API Key (api-key): text) | Built-in (VECTORIZE): \n) | Chroma (CHROMA): \nName (name): text, API Key (apiKey): text) | MongoDB (MONGODB): \nName (name): text, API Key (apiKey): text)","tags":["Connectors"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDestinationConnectorRequest"}}}},"responses":{"200":{"description":"Connector successfully created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDestinationConnectorResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}},"get":{"operationId":"getDestinationConnectors","summary":"Get all existing destination connectors","tags":["Connectors"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"}],"responses":{"200":{"description":"Get all destination connectors","content":{"application/json":{"schema":{"type":"object","properties":{"destinationConnectors":{"type":"array","items":{"$ref":"#/components/schemas/DestinationConnector"}}},"required":["destinationConnectors"]}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/connectors/destinations/{destinationConnectorId}":{"get":{"operationId":"getDestinationConnector","summary":"Get a destination connector","tags":["Connectors"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"destinationConnectorId","in":"path"}],"responses":{"200":{"description":"Get a destination connector","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DestinationConnector"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}},"patch":{"operationId":"updateDestinationConnector","summary":"Update a destination connector","tags":["Connectors"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"destinationConnectorId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateDestinationConnectorRequest"}}}},"responses":{"200":{"description":"Destination connector successfully updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateDestinationConnectorResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}},"delete":{"operationId":"deleteDestinationConnector","summary":"Delete a destination connector","tags":["Connectors"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"destinationConnectorId","in":"path"}],"responses":{"200":{"description":"Destination connector successfully deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteDestinationConnectorResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/connectors/aiplatforms":{"post":{"operationId":"createAIPlatformConnector","summary":"Create a new AI Platform connector. Config values: Amazon Bedrock (BEDROCK): \nName (name): text, Access Key (access-key): text, Secret Key (key): text) | Google Vertex AI (VERTEX): \nName (name): text, Region (region): text) | OpenAI (OPENAI): \nName (name): text, API Key (key): text) | Voyage AI (VOYAGE): \nName (name): text, API Key (key): text) | Built-in (VECTORIZE): \n)","tags":["Connectors"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAIPlatformConnectorRequest"}}}},"responses":{"200":{"description":"Connector successfully created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAIPlatformConnectorResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}},"get":{"operationId":"getAIPlatformConnectors","summary":"Get all existing AI Platform connectors","tags":["Connectors"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"}],"responses":{"200":{"description":"Get all existing AI Platform connectors","content":{"application/json":{"schema":{"type":"object","properties":{"aiPlatformConnectors":{"type":"array","items":{"$ref":"#/components/schemas/AIPlatform"}}},"required":["aiPlatformConnectors"]}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/connectors/aiplatforms/{aiplatformId}":{"get":{"operationId":"getAIPlatformConnector","summary":"Get an AI platform connector","tags":["Connectors"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"aiplatformId","in":"path"}],"responses":{"200":{"description":"Get an AI platform connector","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AIPlatform"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}},"patch":{"operationId":"updateAIPlatformConnector","summary":"Update an AI Platform connector","tags":["Connectors"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"aiplatformId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAIPlatformConnectorRequest"}}}},"responses":{"200":{"description":"AI Platform connector successfully updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAIPlatformConnectorResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}},"delete":{"operationId":"deleteAIPlatform","summary":"Delete an AI platform connector","tags":["Connectors"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"aiplatformId","in":"path"}],"responses":{"200":{"description":"AI Platform connector successfully deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteAIPlatformConnectorResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/uploads/{connectorId}/files":{"get":{"operationId":"getUploadFilesFromConnector","summary":"Get uploaded files from a file upload connector","tags":["Uploads"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"connectorId","in":"path"}],"responses":{"200":{"description":"Files retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetUploadFilesResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}},"put":{"operationId":"startFileUploadToConnector","summary":"Upload a file to a file upload connector","tags":["Uploads"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"connectorId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartFileUploadToConnectorRequest"}}}},"responses":{"200":{"description":"File ready to be uploaded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartFileUploadToConnectorResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}},"delete":{"operationId":"deleteFileFromConnector","summary":"Delete a file from a file upload connector","tags":["Uploads"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"connectorId","in":"path"}],"responses":{"200":{"description":"File deleted successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteFileResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/extraction":{"post":{"operationId":"startExtraction","summary":"Start content extraction from a file","tags":["Extraction"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartExtractionRequest"}}}},"responses":{"200":{"description":"Extraction started successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartExtractionResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/extraction/{extractionId}":{"get":{"operationId":"getExtractionResult","summary":"Get extraction result","tags":["Extraction"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"extractionId","in":"path"}],"responses":{"200":{"description":"Extraction started successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExtractionResultResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/files":{"post":{"operationId":"startFileUpload","summary":"Upload a generic file to the platform","tags":["Files"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartFileUploadRequest"}}}},"responses":{"200":{"description":"File upload started successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartFileUploadResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/connectors/sources/{sourceConnectorId}/users":{"post":{"operationId":"addUserToSourceConnector","summary":"Add a user to a source connector","tags":["Connectors"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"sourceConnectorId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddUserToSourceConnectorRequest"}}}},"responses":{"200":{"description":"User successfully added to the source connector","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddUserFromSourceConnectorResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}},"patch":{"operationId":"updateUserInSourceConnector","summary":"Update a source connector user","tags":["Connectors"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"sourceConnectorId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateUserInSourceConnectorRequest"}}}},"responses":{"200":{"description":"User successfully updated in the source connector","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateUserInSourceConnectorResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}},"delete":{"operationId":"deleteUserFromSourceConnector","summary":"Delete a source connector user","tags":["Connectors"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"sourceConnectorId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemoveUserFromSourceConnectorRequest"}}}},"responses":{"200":{"description":"User successfully removed from the source connector","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemoveUserFromSourceConnectorResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}}}} \ No newline at end of file +{"openapi":"3.0.0","info":{"title":"Vectorize API (Beta)","version":"0.0.1","description":"API for Vectorize services","contact":{"name":"Vectorize","url":"https://vectorize.io"}},"servers":[{"url":"https://api.vectorize.io/v1","description":"Vectorize API"}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"CreatePipelineResponse":{"type":"object","properties":{"message":{"type":"string"},"data":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}},"required":["message","data"]},"SourceConnectorType":{"type":"string","enum":["AWS_S3","AZURE_BLOB","CONFLUENCE","DISCORD","DROPBOX","GOOGLE_DRIVE_OAUTH","GOOGLE_DRIVE_OAUTH_MULTI","GOOGLE_DRIVE_OAUTH_MULTI_CUSTOM","FIRECRAWL","GCS","GOOGLE_DRIVE","INTERCOM","ONE_DRIVE","SHAREPOINT","WEB_CRAWLER","FILE_UPLOAD","SALESFORCE","ZENDESK"]},"SourceConnectorSchema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"type":{"$ref":"#/components/schemas/SourceConnectorType"},"config":{"type":"object","additionalProperties":{"nullable":true}}},"required":["id","type"],"additionalProperties":false},"DestinationConnectorType":{"type":"string","enum":["CAPELLA","DATASTAX","ELASTIC","PINECONE","SINGLESTORE","MILVUS","POSTGRESQL","QDRANT","WEAVIATE","AZUREAISEARCH","VECTORIZE","CHROMA","MONGODB"]},"DestinationConnectorSchema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"type":{"$ref":"#/components/schemas/DestinationConnectorType"},"config":{"type":"object","additionalProperties":{"nullable":true}}},"required":["id","type"],"additionalProperties":false},"AIPlatformType":{"type":"string","enum":["BEDROCK","VERTEX","OPENAI","VOYAGE","VECTORIZE"]},"AIPlatformConfigSchema":{"type":"object","properties":{"embeddingModel":{"type":"string","enum":["VECTORIZE_OPEN_AI_TEXT_EMBEDDING_2","VECTORIZE_OPEN_AI_TEXT_EMBEDDING_3_LARGE","VECTORIZE_OPEN_AI_TEXT_EMBEDDING_3_SMALL","VECTORIZE_VOYAGE_AI_2","VECTORIZE_VOYAGE_AI_3","VECTORIZE_VOYAGE_AI_3_LITE","VECTORIZE_VOYAGE_AI_3_LARGE","VECTORIZE_VOYAGE_AI_FINANCE_2","VECTORIZE_VOYAGE_AI_MULTILINGUAL_2","VECTORIZE_VOYAGE_AI_LAW_2","VECTORIZE_VOYAGE_AI_CODE_2","VECTORIZE_TITAN_TEXT_EMBEDDING_2","VECTORIZE_TITAN_TEXT_EMBEDDING_1","OPEN_AI_TEXT_EMBEDDING_2","OPEN_AI_TEXT_EMBEDDING_3_SMALL","OPEN_AI_TEXT_EMBEDDING_3_LARGE","VOYAGE_AI_2","VOYAGE_AI_3","VOYAGE_AI_3_LITE","VOYAGE_AI_3_LARGE","VOYAGE_AI_FINANCE_2","VOYAGE_AI_MULTILINGUAL_2","VOYAGE_AI_LAW_2","VOYAGE_AI_CODE_2","TITAN_TEXT_EMBEDDING_1","TITAN_TEXT_EMBEDDING_2","VERTEX_TEXT_EMBEDDING_4","VERTEX_TEXT_EMBEDDING_GECKO_3","VERTEX_GECKO_MULTILINGUAL_1","VERTEX_MULTILINGUAL_EMBEDDING_2"]},"chunkingStrategy":{"type":"string","enum":["FIXED","SENTENCE","PARAGRAPH","MARKDOWN"]},"chunkSize":{"type":"integer","minimum":1},"chunkOverlap":{"type":"integer","minimum":0},"dimensions":{"type":"integer","minimum":1},"extractionStrategy":{"type":"string","enum":["FAST","IRIS","MIXED"]}},"additionalProperties":false},"AIPlatformSchema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"type":{"$ref":"#/components/schemas/AIPlatformType"},"config":{"$ref":"#/components/schemas/AIPlatformConfigSchema"}},"required":["id","type","config"],"additionalProperties":false},"ScheduleSchemaType":{"type":"string","enum":["manual","realtime","custom"]},"ScheduleSchema":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/ScheduleSchemaType"}},"required":["type"]},"PipelineConfigurationSchema":{"type":"object","properties":{"sourceConnectors":{"type":"array","items":{"$ref":"#/components/schemas/SourceConnectorSchema"},"minItems":1},"destinationConnector":{"$ref":"#/components/schemas/DestinationConnectorSchema"},"aiPlatform":{"$ref":"#/components/schemas/AIPlatformSchema"},"pipelineName":{"type":"string","minLength":1},"schedule":{"$ref":"#/components/schemas/ScheduleSchema"}},"required":["sourceConnectors","destinationConnector","aiPlatform","pipelineName","schedule"],"additionalProperties":false},"PipelineListSummary":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"documentCount":{"type":"number"},"sourceConnectorAuthIds":{"type":"array","items":{"type":"string"}},"destinationConnectorAuthIds":{"type":"array","items":{"type":"string"}},"aiPlatformAuthIds":{"type":"array","items":{"type":"string"}},"sourceConnectorTypes":{"type":"array","items":{"type":"string"}},"destinationConnectorTypes":{"type":"array","items":{"type":"string"}},"aiPlatformTypes":{"type":"array","items":{"type":"string"}},"createdAt":{"type":"string","nullable":true},"createdBy":{"type":"string"},"status":{"type":"string"},"configDoc":{"type":"object","additionalProperties":{"nullable":true}}},"required":["id","name","documentCount","sourceConnectorAuthIds","destinationConnectorAuthIds","aiPlatformAuthIds","sourceConnectorTypes","destinationConnectorTypes","aiPlatformTypes","createdAt","createdBy"]},"GetPipelinesResponse":{"type":"object","properties":{"message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/PipelineListSummary"}}},"required":["message","data"]},"SourceConnector":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string"},"name":{"type":"string"},"configDoc":{"type":"object","additionalProperties":{"nullable":true}},"createdAt":{"type":"string","nullable":true},"createdById":{"type":"string"},"lastUpdatedById":{"type":"string"},"createdByEmail":{"type":"string"},"lastUpdatedByEmail":{"type":"string"},"errorMessage":{"type":"string"},"verificationStatus":{"type":"string"}},"required":["id","type","name"]},"DestinationConnector":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string"},"name":{"type":"string"},"configDoc":{"type":"object","additionalProperties":{"nullable":true}},"createdAt":{"type":"string","nullable":true},"createdById":{"type":"string"},"lastUpdatedById":{"type":"string"},"createdByEmail":{"type":"string"},"lastUpdatedByEmail":{"type":"string"},"errorMessage":{"type":"string"},"verificationStatus":{"type":"string"}},"required":["id","type","name"]},"AIPlatform":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string"},"name":{"type":"string"},"configDoc":{"type":"object","additionalProperties":{"nullable":true}},"createdAt":{"type":"string","nullable":true},"createdById":{"type":"string"},"lastUpdatedById":{"type":"string"},"createdByEmail":{"type":"string"},"lastUpdatedByEmail":{"type":"string"},"errorMessage":{"type":"string"},"verificationStatus":{"type":"string"}},"required":["id","type","name"]},"PipelineSummary":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"documentCount":{"type":"number"},"sourceConnectorAuthIds":{"type":"array","items":{"type":"string"}},"destinationConnectorAuthIds":{"type":"array","items":{"type":"string"}},"aiPlatformAuthIds":{"type":"array","items":{"type":"string"}},"sourceConnectorTypes":{"type":"array","items":{"type":"string"}},"destinationConnectorTypes":{"type":"array","items":{"type":"string"}},"aiPlatformTypes":{"type":"array","items":{"type":"string"}},"createdAt":{"type":"string","nullable":true},"createdBy":{"type":"string"},"status":{"type":"string"},"configDoc":{"type":"object","additionalProperties":{"nullable":true}},"sourceConnectors":{"type":"array","items":{"$ref":"#/components/schemas/SourceConnector"}},"destinationConnectors":{"type":"array","items":{"$ref":"#/components/schemas/DestinationConnector"}},"aiPlatforms":{"type":"array","items":{"$ref":"#/components/schemas/AIPlatform"}}},"required":["id","name","documentCount","sourceConnectorAuthIds","destinationConnectorAuthIds","aiPlatformAuthIds","sourceConnectorTypes","destinationConnectorTypes","aiPlatformTypes","createdAt","createdBy","sourceConnectors","destinationConnectors","aiPlatforms"]},"GetPipelineResponse":{"type":"object","properties":{"message":{"type":"string"},"data":{"$ref":"#/components/schemas/PipelineSummary"}},"required":["message","data"]},"DeletePipelineResponse":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]},"PipelineEvents":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string"},"timestamp":{"type":"string","nullable":true},"details":{"type":"object","additionalProperties":{"nullable":true}},"summary":{"type":"object","additionalProperties":{"nullable":true}}},"required":["id","type","timestamp"]},"GetPipelineEventsResponse":{"type":"object","properties":{"message":{"type":"string"},"nextToken":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/PipelineEvents"}}},"required":["message","data"]},"PipelineMetrics":{"type":"object","properties":{"timestamp":{"type":"string","nullable":true},"newObjects":{"type":"number"},"changedObjects":{"type":"number"},"deletedObjects":{"type":"number"}},"required":["timestamp","newObjects","changedObjects","deletedObjects"]},"GetPipelineMetricsResponse":{"type":"object","properties":{"message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/PipelineMetrics"}}},"required":["message","data"]},"Document":{"type":"object","properties":{"relevancy":{"type":"number"},"id":{"type":"string"},"text":{"type":"string"},"chunk_id":{"type":"string"},"total_chunks":{"type":"string"},"origin":{"type":"string"},"origin_id":{"type":"string"},"similarity":{"type":"number"},"source":{"type":"string"},"unique_source":{"type":"string"},"source_display_name":{"type":"string"},"pipeline_id":{"type":"string"},"org_id":{"type":"string"}},"required":["relevancy","id","text","chunk_id","total_chunks","origin","origin_id","similarity","source","unique_source","source_display_name"],"additionalProperties":true},"RetrieveDocumentsResponse":{"type":"object","properties":{"question":{"type":"string"},"documents":{"type":"array","items":{"$ref":"#/components/schemas/Document"}},"average_relevancy":{"type":"number"},"ndcg":{"type":"number"}},"required":["question","documents","average_relevancy","ndcg"]},"RetrieveContextMessage":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":"string"}},"required":["role","content"]},"RetrieveContext":{"type":"object","properties":{"messages":{"type":"array","items":{"$ref":"#/components/schemas/RetrieveContextMessage"}}},"required":["messages"]},"RetrieveDocumentsRequest":{"type":"object","properties":{"question":{"type":"string"},"numResults":{"type":"number","minimum":1},"rerank":{"type":"boolean","default":true},"metadata-filters":{"type":"array","items":{"type":"object","additionalProperties":{"nullable":true}}},"context":{"$ref":"#/components/schemas/RetrieveContext"}},"required":["question","numResults"]},"StartPipelineResponse":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]},"StopPipelineResponse":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]},"StartDeepResearchResponse":{"type":"object","properties":{"researchId":{"type":"string"}},"required":["researchId"]},"N8NConfig":{"type":"object","properties":{"account":{"type":"string"},"webhookPath":{"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}}},"required":["account","webhookPath"]},"StartDeepResearchRequest":{"type":"object","properties":{"query":{"type":"string"},"webSearch":{"type":"boolean","default":false},"schema":{"type":"string"},"n8n":{"$ref":"#/components/schemas/N8NConfig"}},"required":["query"]},"DeepResearchResult":{"type":"object","properties":{"success":{"type":"boolean"},"events":{"type":"array","items":{"type":"string"}},"markdown":{"type":"string"},"error":{"type":"string"}},"required":["success"]},"GetDeepResearchResponse":{"type":"object","properties":{"ready":{"type":"boolean"},"data":{"$ref":"#/components/schemas/DeepResearchResult"}},"required":["ready"]},"CreatedSourceConnector":{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"string"}},"required":["name","id"]},"CreateSourceConnectorResponse":{"type":"object","properties":{"message":{"type":"string"},"connectors":{"type":"array","items":{"$ref":"#/components/schemas/CreatedSourceConnector"}}},"required":["message","connectors"]},"CreateSourceConnector":{"type":"object","properties":{"name":{"type":"string"},"type":{"$ref":"#/components/schemas/SourceConnectorType"},"config":{"type":"object","additionalProperties":{"nullable":true}}},"required":["name","type"]},"CreateSourceConnectorRequest":{"type":"array","items":{"$ref":"#/components/schemas/CreateSourceConnector"},"minItems":1},"UpdateSourceConnectorResponseData":{"type":"object","properties":{"updatedConnector":{"$ref":"#/components/schemas/SourceConnector"},"pipelineIds":{"type":"array","items":{"type":"string"}}},"required":["updatedConnector"]},"UpdateSourceConnectorResponse":{"type":"object","properties":{"message":{"type":"string"},"data":{"$ref":"#/components/schemas/UpdateSourceConnectorResponseData"}},"required":["message","data"]},"UpdateSourceConnectorRequest":{"type":"object","properties":{"config":{"type":"object","additionalProperties":{"nullable":true}}},"required":["config"]},"DeleteSourceConnectorResponse":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]},"CreatedDestinationConnector":{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"string"}},"required":["name","id"]},"CreateDestinationConnectorResponse":{"type":"object","properties":{"message":{"type":"string"},"connectors":{"type":"array","items":{"$ref":"#/components/schemas/CreatedDestinationConnector"}}},"required":["message","connectors"]},"CreateDestinationConnector":{"type":"object","properties":{"name":{"type":"string"},"type":{"$ref":"#/components/schemas/DestinationConnectorType"},"config":{"type":"object","additionalProperties":{"nullable":true}}},"required":["name","type"]},"CreateDestinationConnectorRequest":{"type":"array","items":{"$ref":"#/components/schemas/CreateDestinationConnector"},"minItems":1},"UpdatedDestinationConnectorData":{"type":"object","properties":{"updatedConnector":{"$ref":"#/components/schemas/DestinationConnector"},"pipelineIds":{"type":"array","items":{"type":"string"}}},"required":["updatedConnector"]},"UpdateDestinationConnectorResponse":{"type":"object","properties":{"message":{"type":"string"},"data":{"$ref":"#/components/schemas/UpdatedDestinationConnectorData"}},"required":["message","data"]},"UpdateDestinationConnectorRequest":{"type":"object","properties":{"config":{"type":"object","additionalProperties":{"nullable":true}}},"required":["config"]},"DeleteDestinationConnectorResponse":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]},"CreatedAIPlatformConnector":{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"string"}},"required":["name","id"]},"CreateAIPlatformConnectorResponse":{"type":"object","properties":{"message":{"type":"string"},"connectors":{"type":"array","items":{"$ref":"#/components/schemas/CreatedAIPlatformConnector"}}},"required":["message","connectors"]},"CreateAIPlatformConnector":{"type":"object","properties":{"name":{"type":"string"},"type":{"$ref":"#/components/schemas/AIPlatformType"},"config":{"type":"object","additionalProperties":{"nullable":true}}},"required":["name","type"]},"CreateAIPlatformConnectorRequest":{"type":"array","items":{"$ref":"#/components/schemas/CreateAIPlatformConnector"},"minItems":1},"UpdatedAIPlatformConnectorData":{"type":"object","properties":{"updatedConnector":{"$ref":"#/components/schemas/AIPlatform"},"pipelineIds":{"type":"array","items":{"type":"string"}}},"required":["updatedConnector"]},"UpdateAIPlatformConnectorResponse":{"type":"object","properties":{"message":{"type":"string"},"data":{"$ref":"#/components/schemas/UpdatedAIPlatformConnectorData"}},"required":["message","data"]},"UpdateAIPlatformConnectorRequest":{"type":"object","properties":{"config":{"type":"object","additionalProperties":{"nullable":true}}},"required":["config"]},"DeleteAIPlatformConnectorResponse":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]},"UploadFile":{"type":"object","properties":{"key":{"type":"string"},"name":{"type":"string"},"size":{"type":"number"},"extension":{"type":"string"},"lastModified":{"type":"string","nullable":true},"metadata":{"type":"object","additionalProperties":{"type":"string"}}},"required":["key","name","size","lastModified","metadata"]},"GetUploadFilesResponse":{"type":"object","properties":{"message":{"type":"string"},"files":{"type":"array","items":{"$ref":"#/components/schemas/UploadFile"}}},"required":["message","files"]},"StartFileUploadToConnectorResponse":{"type":"object","properties":{"uploadUrl":{"type":"string"}},"required":["uploadUrl"]},"StartFileUploadToConnectorRequest":{"type":"object","properties":{"name":{"type":"string"},"contentType":{"type":"string"},"metadata":{"type":"string"}},"required":["name","contentType"]},"DeleteFileResponse":{"type":"object","properties":{"message":{"type":"string"},"fileName":{"type":"string"}},"required":["message","fileName"]},"StartExtractionResponse":{"type":"object","properties":{"message":{"type":"string"},"extractionId":{"type":"string"}},"required":["message","extractionId"]},"ExtractionType":{"type":"string","enum":["iris"],"default":"iris"},"ExtractionChunkingStrategy":{"type":"string","enum":["markdown"],"default":"markdown"},"StartExtractionRequest":{"type":"object","properties":{"fileId":{"type":"string"},"type":{"$ref":"#/components/schemas/ExtractionType"},"chunkingStrategy":{"$ref":"#/components/schemas/ExtractionChunkingStrategy"},"chunkSize":{"type":"number","default":256}},"required":["fileId"]},"ExtractionResult":{"type":"object","properties":{"success":{"type":"boolean"},"chunks":{"type":"array","items":{"type":"string"}},"text":{"type":"string"},"error":{"type":"string"}},"required":["success"]},"ExtractionResultResponse":{"type":"object","properties":{"ready":{"type":"boolean"},"data":{"$ref":"#/components/schemas/ExtractionResult"}},"required":["ready"]},"StartFileUploadResponse":{"type":"object","properties":{"fileId":{"type":"string"},"uploadUrl":{"type":"string"}},"required":["fileId","uploadUrl"]},"StartFileUploadRequest":{"type":"object","properties":{"name":{"type":"string"},"contentType":{"type":"string"}},"required":["name","contentType"]},"AddUserFromSourceConnectorResponse":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]},"AddUserToSourceConnectorRequest":{"type":"object","properties":{"userId":{"type":"string"},"fileIds":{"type":"array","items":{"type":"string"}},"refreshToken":{"type":"string"}},"required":["userId","refreshToken"]},"UpdateUserInSourceConnectorResponse":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]},"UpdateUserInSourceConnectorRequest":{"type":"object","properties":{"userId":{"type":"string"},"fileIds":{"type":"array","items":{"type":"string"}},"refreshToken":{"type":"string"}},"required":["userId"]},"RemoveUserFromSourceConnectorResponse":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]},"RemoveUserFromSourceConnectorRequest":{"type":"object","properties":{"userId":{"type":"string"}},"required":["userId"]}},"parameters":{}},"paths":{"/org/{organization}/pipelines":{"post":{"operationId":"createPipeline","summary":"Create a new source pipeline. Config fields for sources: Amazon S3 (AWS_S3): \nCheck for updates every (seconds) (idle-time): number, Path Prefix (path-prefix): text, Path Metadata Regex (path-metadata-regex): text, Path Regex Group Names (path-regex-group-names): array oftext) | Azure Blob Storage (AZURE_BLOB): \nPolling Interval (seconds) (idle-time): number, Path Prefix (path-prefix): text, Path Metadata Regex (path-metadata-regex): text, Path Regex Group Names (path-regex-group-names): array oftext) | Confluence (CONFLUENCE): \nSpaces (spaces): array oftext, Root Parents (root-parents): array oftext) | Discord (DISCORD): \nEmoji Filter (emoji): array oftext, Author Filter (author): array oftext, Ignore Author Filter (ignore-author): array oftext, Limit (limit): number) | Dropbox (DROPBOX): \nRead starting from these folders (optional) (path-prefix): array oftext) | Google Drive OAuth (GOOGLE_DRIVE_OAUTH): \nPolling Interval (seconds) (idle-time): number) | Google Drive OAuth (Multi-user) (GOOGLE_DRIVE_OAUTH_MULTI): \nPolling Interval (seconds) (idle-time): number) | Google Drive OAuth (Multi-user with white label) (GOOGLE_DRIVE_OAUTH_MULTI_CUSTOM): \nPolling Interval (seconds) (idle-time): number) | Firecrawl (FIRECRAWL): \n) | GCP Cloud Storage (GCS): \nCheck for updates every (seconds) (idle-time): number, Path Prefix (path-prefix): text, Path Metadata Regex (path-metadata-regex): text, Path Regex Group Names (path-regex-group-names): array oftext) | Google Drive (GOOGLE_DRIVE): \nRestrict ingest to these folder URLs (optional) (root-parents): array oftext, Polling Interval (seconds) (idle-time): number) | Intercom (INTERCOM): \nReindex Interval (seconds) (reindexIntervalSeconds): number, Limit (limit): number, Tags (tags): array oftext) | OneDrive (ONE_DRIVE): \nRead starting from this folder (optional) (path-prefix): text) | SharePoint (SHAREPOINT): \nSite Name(s) (sites): array oftext) | Web Crawler (WEB_CRAWLER): \nAdditional Allowed URLs or prefix(es) (allowed-domains-opt): array ofurl, Forbidden Paths (forbidden-paths): array oftext, Throttle (ms) (min-time-between-requests): number, Max Error Count (max-error-count): number, Max URLs (max-urls): number, Max Depth (max-depth): number, Reindex Interval (seconds) (reindex-interval-seconds): number) | File Upload (FILE_UPLOAD): \n). Config fields for destinations: Couchbase Capella (CAPELLA): \nBucket Name (bucket): text, Scope Name (scope): text, Collection Name (collection): text, Search Index Name (index): text) | DataStax Astra (DATASTAX): \nCollection Name (collection): text) | Elasticsearch (ELASTIC): \nIndex Name (index): text) | Pinecone (PINECONE): \nIndex Name (index): text, Namespace (namespace): text) | SingleStore (SINGLESTORE): \nTable Name (table): text) | Milvus (MILVUS): \nCollection Name (collection): text) | PostgreSQL (POSTGRESQL): \nTable Name (table): text) | Qdrant (QDRANT): \nCollection Name (collection): text) | Weaviate (WEAVIATE): \nCollection Name (collection): text) | Azure AI Search (AZUREAISEARCH): \nIndex Name (index): text) | Built-in (VECTORIZE): \n) | Chroma (CHROMA): \nIndex Name (index): text) | MongoDB (MONGODB): \nIndex Name (index): text). Config fields for AI platforms: ","tags":["Pipelines"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PipelineConfigurationSchema"}}}},"responses":{"200":{"description":"Pipeline created successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePipelineResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}},"get":{"operationId":"getPipelines","summary":"Get all existing pipelines","tags":["Pipelines"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"}],"responses":{"200":{"description":"Get all pipelines","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetPipelinesResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/pipelines/{pipeline}":{"get":{"operationId":"getPipeline","summary":"Get a pipeline","tags":["Pipelines"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"pipeline","in":"path"}],"responses":{"200":{"description":"Pipeline fetched successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetPipelineResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}},"delete":{"operationId":"deletePipeline","summary":"Delete a pipeline","tags":["Pipelines"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"pipeline","in":"path"}],"responses":{"200":{"description":"Pipeline deleted successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeletePipelineResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/pipelines/{pipeline}/events":{"get":{"operationId":"getPipelineEvents","summary":"Get pipeline events","tags":["Pipelines"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"pipeline","in":"path"},{"schema":{"type":"string"},"required":false,"name":"nextToken","in":"query"}],"responses":{"200":{"description":"Pipeline events fetched successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetPipelineEventsResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/pipelines/{pipeline}/metrics":{"get":{"operationId":"getPipelineMetrics","summary":"Get pipeline metrics","tags":["Pipelines"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"pipeline","in":"path"}],"responses":{"200":{"description":"Pipeline metrics fetched successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetPipelineMetricsResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/pipelines/{pipeline}/retrieval":{"post":{"operationId":"retrieveDocuments","summary":"Retrieve documents from a pipeline","tags":["Pipelines"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"pipeline","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetrieveDocumentsRequest"}}}},"responses":{"200":{"description":"Documents retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetrieveDocumentsResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/pipelines/{pipeline}/start":{"post":{"operationId":"startPipeline","summary":"Start a pipeline","tags":["Pipelines"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"pipeline","in":"path"}],"responses":{"200":{"description":"Pipeline started successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartPipelineResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/pipelines/{pipeline}/stop":{"post":{"operationId":"stopPipeline","summary":"Stop a pipeline","tags":["Pipelines"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"pipeline","in":"path"}],"responses":{"200":{"description":"Pipeline stopped successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StopPipelineResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/pipelines/{pipeline}/deep-research":{"post":{"operationId":"startDeepResearch","summary":"Start a deep research","tags":["Pipelines"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"pipeline","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartDeepResearchRequest"}}}},"responses":{"200":{"description":"Deep Research started successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartDeepResearchResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/pipelines/{pipeline}/deep-research/{researchId}":{"get":{"operationId":"getDeepResearchResult","summary":"Get deep research result","tags":["Pipelines"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"pipeline","in":"path"},{"schema":{"type":"string"},"required":true,"name":"researchId","in":"path"}],"responses":{"200":{"description":"Get Deep Research was successful","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetDeepResearchResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/connectors/sources":{"post":{"operationId":"createSourceConnector","summary":"Create a new source connector. Config values: Amazon S3 (AWS_S3): \nName (name): text, Access Key (access-key): text, Secret Key (secret-key): text, Bucket Name (bucket-name): text, Endpoint (endpoint): url, Region (region): text, Allow as archive destination (archiver): boolean) | Azure Blob Storage (AZURE_BLOB): \nName (name): text, Storage Account Name (storage-account-name): text, Storage Account Key (storage-account-key): text, Container (container): text, Endpoint (endpoint): url) | Confluence (CONFLUENCE): \nName (name): text, Username (username): text, API Token (api-token): text, Domain (domain): text) | Discord (DISCORD): \nName (name): text, Server ID (guild-id): text, Bot token (bot-token): text, Channel ID (channel-ids): array oftext) | Dropbox (DROPBOX): \nName (name): text) | Google Drive OAuth (GOOGLE_DRIVE_OAUTH): \nName (name): text) | Google Drive OAuth (Multi-user) (GOOGLE_DRIVE_OAUTH_MULTI): \nName (name): text) | Google Drive OAuth (Multi-user with white label) (GOOGLE_DRIVE_OAUTH_MULTI_CUSTOM): \nName (name): text, OAuth2 Client Id (oauth2-client-id): text, OAuth2 Client Secret (oauth2-client-secret): text) | Firecrawl (FIRECRAWL): \nName (name): text, API Key (api-key): text) | GCP Cloud Storage (GCS): \nName (name): text, Service Account JSON (service-account-json): textarea, Bucket (bucket-name): text) | Google Drive (GOOGLE_DRIVE): \nName (name): text, Service Account JSON (service-account-json): textarea) | Intercom (INTERCOM): \nName (name): text, Access Token (intercomAccessToken): text) | OneDrive (ONE_DRIVE): \nName (name): text, Client Id (ms-client-id): text, Tenant Id (ms-tenant-id): text, Client Secret (ms-client-secret): text, Users (users): array oftext) | SharePoint (SHAREPOINT): \nName (name): text, Client Id (ms-client-id): text, Tenant Id (ms-tenant-id): text, Client Secret (ms-client-secret): text) | Web Crawler (WEB_CRAWLER): \nName (name): text, Seed URL(s) (seed-urls): array ofurl) | File Upload (FILE_UPLOAD): \nName (name): text)","tags":["Connectors"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSourceConnectorRequest"}}}},"responses":{"200":{"description":"Connector successfully created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSourceConnectorResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}},"get":{"operationId":"getSourceConnectors","summary":"Get all existing source connectors","tags":["Connectors"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"}],"responses":{"200":{"description":"Get all source connectors","content":{"application/json":{"schema":{"type":"object","properties":{"sourceConnectors":{"type":"array","items":{"$ref":"#/components/schemas/SourceConnector"}}},"required":["sourceConnectors"]}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/connectors/sources/{sourceConnectorId}":{"get":{"operationId":"getSourceConnector","summary":"Get a source connector","tags":["Connectors"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"sourceConnectorId","in":"path"}],"responses":{"200":{"description":"Get a source connector","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourceConnector"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}},"patch":{"operationId":"updateSourceConnector","summary":"Update a source connector","tags":["Connectors"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"sourceConnectorId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSourceConnectorRequest"}}}},"responses":{"200":{"description":"Source connector successfully updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSourceConnectorResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}},"delete":{"operationId":"deleteSourceConnector","summary":"Delete a source connector","tags":["Connectors"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"sourceConnectorId","in":"path"}],"responses":{"200":{"description":"Source connector successfully deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteSourceConnectorResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/connectors/destinations":{"post":{"operationId":"createDestinationConnector","summary":"Create a new destination connector. Config values: Couchbase Capella (CAPELLA): \nName (name): text, Cluster Access Name (username): text, Cluster Access Password (password): text, Connection String (connection-string): text) | DataStax Astra (DATASTAX): \nName (name): text, API Endpoint (endpoint_secret): text, Application Token (token): text) | Elasticsearch (ELASTIC): \nName (name): text, Host (host): text, Port (port): text, API Key (api-key): text) | Pinecone (PINECONE): \nName (name): text, API Key (api-key): text) | SingleStore (SINGLESTORE): \nName (name): text, Host (host): text, Port (port): number, Database (database): text, Username (username): text, Password (password): text) | Milvus (MILVUS): \nName (name): text, Public Endpoint (url): text, Token (token): text, Username (username): text, Password (password): text) | PostgreSQL (POSTGRESQL): \nName (name): text, Host (host): text, Port (port): number, Database (database): text, Username (username): text, Password (password): text) | Qdrant (QDRANT): \nName (name): text, Host (host): text, API Key (api-key): text) | Weaviate (WEAVIATE): \nName (name): text, Endpoint (host): text, API Key (api-key): text) | Azure AI Search (AZUREAISEARCH): \nName (name): text, Azure AI Search Service Name (service-name): text, API Key (api-key): text) | Built-in (VECTORIZE): \n) | Chroma (CHROMA): \nName (name): text, API Key (apiKey): text) | MongoDB (MONGODB): \nName (name): text, API Key (apiKey): text)","tags":["Connectors"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDestinationConnectorRequest"}}}},"responses":{"200":{"description":"Connector successfully created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDestinationConnectorResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}},"get":{"operationId":"getDestinationConnectors","summary":"Get all existing destination connectors","tags":["Connectors"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"}],"responses":{"200":{"description":"Get all destination connectors","content":{"application/json":{"schema":{"type":"object","properties":{"destinationConnectors":{"type":"array","items":{"$ref":"#/components/schemas/DestinationConnector"}}},"required":["destinationConnectors"]}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/connectors/destinations/{destinationConnectorId}":{"get":{"operationId":"getDestinationConnector","summary":"Get a destination connector","tags":["Connectors"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"destinationConnectorId","in":"path"}],"responses":{"200":{"description":"Get a destination connector","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DestinationConnector"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}},"patch":{"operationId":"updateDestinationConnector","summary":"Update a destination connector","tags":["Connectors"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"destinationConnectorId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateDestinationConnectorRequest"}}}},"responses":{"200":{"description":"Destination connector successfully updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateDestinationConnectorResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}},"delete":{"operationId":"deleteDestinationConnector","summary":"Delete a destination connector","tags":["Connectors"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"destinationConnectorId","in":"path"}],"responses":{"200":{"description":"Destination connector successfully deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteDestinationConnectorResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/connectors/aiplatforms":{"post":{"operationId":"createAIPlatformConnector","summary":"Create a new AI Platform connector. Config values: Amazon Bedrock (BEDROCK): \nName (name): text, Access Key (access-key): text, Secret Key (key): text) | Google Vertex AI (VERTEX): \nName (name): text, Service Account Json (key): textarea, Region (region): text) | OpenAI (OPENAI): \nName (name): text, API Key (key): text) | Voyage AI (VOYAGE): \nName (name): text, API Key (key): text) | Built-in (VECTORIZE): \n)","tags":["Connectors"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAIPlatformConnectorRequest"}}}},"responses":{"200":{"description":"Connector successfully created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAIPlatformConnectorResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}},"get":{"operationId":"getAIPlatformConnectors","summary":"Get all existing AI Platform connectors","tags":["Connectors"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"}],"responses":{"200":{"description":"Get all existing AI Platform connectors","content":{"application/json":{"schema":{"type":"object","properties":{"aiPlatformConnectors":{"type":"array","items":{"$ref":"#/components/schemas/AIPlatform"}}},"required":["aiPlatformConnectors"]}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/connectors/aiplatforms/{aiplatformId}":{"get":{"operationId":"getAIPlatformConnector","summary":"Get an AI platform connector","tags":["Connectors"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"aiplatformId","in":"path"}],"responses":{"200":{"description":"Get an AI platform connector","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AIPlatform"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}},"patch":{"operationId":"updateAIPlatformConnector","summary":"Update an AI Platform connector","tags":["Connectors"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"aiplatformId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAIPlatformConnectorRequest"}}}},"responses":{"200":{"description":"AI Platform connector successfully updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAIPlatformConnectorResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}},"delete":{"operationId":"deleteAIPlatform","summary":"Delete an AI platform connector","tags":["Connectors"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"aiplatformId","in":"path"}],"responses":{"200":{"description":"AI Platform connector successfully deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteAIPlatformConnectorResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/uploads/{connectorId}/files":{"get":{"operationId":"getUploadFilesFromConnector","summary":"Get uploaded files from a file upload connector","tags":["Uploads"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"connectorId","in":"path"}],"responses":{"200":{"description":"Files retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetUploadFilesResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}},"put":{"operationId":"startFileUploadToConnector","summary":"Upload a file to a file upload connector","tags":["Uploads"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"connectorId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartFileUploadToConnectorRequest"}}}},"responses":{"200":{"description":"File ready to be uploaded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartFileUploadToConnectorResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}},"delete":{"operationId":"deleteFileFromConnector","summary":"Delete a file from a file upload connector","tags":["Uploads"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"connectorId","in":"path"}],"responses":{"200":{"description":"File deleted successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteFileResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/extraction":{"post":{"operationId":"startExtraction","summary":"Start content extraction from a file","tags":["Extraction"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartExtractionRequest"}}}},"responses":{"200":{"description":"Extraction started successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartExtractionResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/extraction/{extractionId}":{"get":{"operationId":"getExtractionResult","summary":"Get extraction result","tags":["Extraction"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"extractionId","in":"path"}],"responses":{"200":{"description":"Extraction started successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExtractionResultResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/files":{"post":{"operationId":"startFileUpload","summary":"Upload a generic file to the platform","tags":["Files"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartFileUploadRequest"}}}},"responses":{"200":{"description":"File upload started successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartFileUploadResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}},"/org/{organization}/connectors/sources/{sourceConnectorId}/users":{"post":{"operationId":"addUserToSourceConnector","summary":"Add a user to a source connector","tags":["Connectors"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"sourceConnectorId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddUserToSourceConnectorRequest"}}}},"responses":{"200":{"description":"User successfully added to the source connector","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddUserFromSourceConnectorResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}},"patch":{"operationId":"updateUserInSourceConnector","summary":"Update a source connector user","tags":["Connectors"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"sourceConnectorId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateUserInSourceConnectorRequest"}}}},"responses":{"200":{"description":"User successfully updated in the source connector","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateUserInSourceConnectorResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}},"delete":{"operationId":"deleteUserFromSourceConnector","summary":"Delete a source connector user","tags":["Connectors"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"organization","in":"path"},{"schema":{"type":"string"},"required":true,"name":"sourceConnectorId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemoveUserFromSourceConnectorRequest"}}}},"responses":{"200":{"description":"User successfully removed from the source connector","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemoveUserFromSourceConnectorResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"details":{"type":"string"},"failedUpdates":{"type":"array","items":{"type":"string"}},"successfulUpdates":{"type":"array","items":{"type":"string"}}},"required":["error"]}}}}}}}}} \ No newline at end of file From ea76475bcde126b1c7cb8e7ff56822c14087f9a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Boschi?= Date: Fri, 7 Mar 2025 16:18:34 +0100 Subject: [PATCH 5/5] fix: improve openapi naming --- src/ts/package.json | 2 +- tests/ts/tests/connectors.test.ts | 227 ++++++++++++++++++++++++++++++ 2 files changed, 228 insertions(+), 1 deletion(-) create mode 100644 tests/ts/tests/connectors.test.ts diff --git a/src/ts/package.json b/src/ts/package.json index c266f40..ae2f960 100644 --- a/src/ts/package.json +++ b/src/ts/package.json @@ -16,7 +16,7 @@ "preinstall": "npm install typescript" }, "devDependencies": { - "typescript": "^4.0 || ^5.0" + "typescript": "^5.8.2" }, "publishConfig": { "registry": "https://registry.npmjs.org", diff --git a/tests/ts/tests/connectors.test.ts b/tests/ts/tests/connectors.test.ts new file mode 100644 index 0000000..418dc9f --- /dev/null +++ b/tests/ts/tests/connectors.test.ts @@ -0,0 +1,227 @@ +import {beforeEach, describe, it, expect} from "vitest"; +import {createTestContext, TestContext} from "./testContext"; +import { + ConnectorsApi, + type CreateSourceConnector, + PipelinesApi, + ResponseError, + SourceConnectorType +} from "@vectorize-io/vectorize-client"; +import {pipeline} from "stream"; +import * as os from "node:os"; +import exp from "node:constants"; +import {AIPlatformType, DestinationConnectorType} from "@vectorize-io/vectorize-client/src"; + +export let testContext: TestContext; + +beforeEach(() => { + testContext = createTestContext(); +}); + +async function findVectorizeDestinationConnector(connectorsApi: ConnectorsApi) { + let destinationResponse = await connectorsApi.getDestinationConnectors({ + organization: testContext.orgId + }); + const destinationConnectorId = destinationResponse.destinationConnectors.find((connector) => connector.type === "VECTORIZE")!.id; + return destinationConnectorId; +} + +async function findAIPlatformVectorizeConnector(connectorsApi: ConnectorsApi) { + let aiPlatformResponse = await connectorsApi.getAIPlatformConnectors({ + organization: testContext.orgId + }); + const aiPlatformId = aiPlatformResponse.aiPlatformConnectors.find((connector) => connector.type === "VECTORIZE")!.id; + return aiPlatformId; +} + +async function createWebCrawlerSource(connectorsApi: ConnectorsApi) { + let sourceResponse = await connectorsApi.createSourceConnector({ + organization: testContext.orgId, + createSourceConnector: [ + {type: SourceConnectorType.WebCrawler, name: "from api", config: {"seed-urls": ["https://docs.vectorize.io"]}} + ] + }); + const sourceConnectorId = sourceResponse.connectors[0].id; + await connectorsApi.updateSourceConnector({ + organization: testContext.orgId, + sourceConnectorId, + updateSourceConnectorRequest: { + config: {"seed-urls": ["https://docs.vectorize.io", "https://vectorize.io"]} + } + } + ); + return sourceConnectorId; +} + +async function deployPipeline(pipelinesApi: PipelinesApi, sourceConnectorId: string, destinationConnectorId: string, aiPlatformId: string): Promise { + return (await pipelinesApi.createPipeline({ + organization: testContext.orgId, + pipelineConfigurationSchema: { + pipelineName: "from api", + sourceConnectors: [{id: sourceConnectorId, type: SourceConnectorType.WebCrawler, config: {}}], + destinationConnector: { + id: destinationConnectorId, + type: DestinationConnectorType.Vectorize, + config: {} + }, + aiPlatform: { + id: aiPlatformId, + type: AIPlatformType.Vectorize, + config: {} + }, + schedule: {type: "manual"} + } + + })).data.id; +} + +describe("connector", () => { + it("source lifecycle", async () => { + let connectorsApi = new ConnectorsApi(testContext.configuration); + try { + + let sourceResponse = await connectorsApi.createSourceConnector({ + organization: testContext.orgId, + createSourceConnector: [ + {type: SourceConnectorType.WebCrawler, name: "from api", config: {"seed-urls": ["https://docs.vectorize.io"]}} + ] + }); + const sourceConnectorId = sourceResponse.connectors[0].id; + await connectorsApi.updateSourceConnector({ + organization: testContext.orgId, + sourceConnectorId, + updateSourceConnectorRequest: { + config: {"seed-urls": ["https://docs.vectorize.io", "https://vectorize.io"]} + } + } + ); + let connectors = await connectorsApi.getSourceConnectors({ + organization: testContext.orgId + }); + expect(connectors.sourceConnectors.find(c => c.id === sourceConnectorId)).toBeTruthy() + + const read = await connectorsApi.getSourceConnector({ + organization: testContext.orgId, + sourceConnectorId + }) + console.log(read) + expect(read.name).toBe("from api") + let configDoc = read.configDoc; + expect(configDoc!["seed-urls"]).toBe([ 'https://docs.vectorize.io', 'https://vectorize.io' ]) + expect(read.createdAt).toBeTruthy() + await connectorsApi.deleteSourceConnector({ + organization: testContext.orgId, + sourceConnectorId + }) + connectors = await connectorsApi.getSourceConnectors({ + organization: testContext.orgId + }); + expect(connectors.sourceConnectors.find(c => c.id === sourceConnectorId)).toBeFalsy() + + } catch (error: any) { + console.error(error?.response); + console.error(await error?.response?.text()); + throw error + } + }, 120000); + + it("ai platform lifecycle", async () => { + let connectorsApi = new ConnectorsApi(testContext.configuration); + try { + + let sourceResponse = await connectorsApi.createAIPlatformConnector({ + organization: testContext.orgId, + createAIPlatformConnector: [ + {type: AIPlatformType.Openai, name: "from api", config: {"key": "sk"}} + ] + }); + const connectorId = sourceResponse.connectors[0].id; + await connectorsApi.updateAIPlatformConnector({ + organization: testContext.orgId, + aiplatformId: connectorId, + updateAIPlatformConnectorRequest: { + config: {"key": "sk"} + } + } + ); + let connectors = await connectorsApi.getAIPlatformConnectors({ + organization: testContext.orgId + }); + expect(connectors.aiPlatformConnectors.find(c => c.id === connectorId)).toBeTruthy() + + const read = await connectorsApi.getAIPlatformConnector({ + organization: testContext.orgId, + aiplatformId: connectorId + }) + console.log(read) + expect(read.name).toBe("from api") + let configDoc = read.configDoc; + expect(Object.keys(configDoc!).length).toBe(0) + expect(read.createdAt).toBeTruthy() + await connectorsApi.deleteAIPlatform({ + organization: testContext.orgId, + aiplatformId: connectorId + }) + connectors = await connectorsApi.getAIPlatformConnectors({ + organization: testContext.orgId + }); + expect(connectors.aiPlatformConnectors.find(c => c.id === connectorId)).toBeFalsy() + + } catch (error: any) { + console.error(error?.response); + console.error(await error?.response?.text()); + throw error + } + }, 120000); + + + it("destination connector lifecycle", async () => { + let connectorsApi = new ConnectorsApi(testContext.configuration); + try { + + let sourceResponse = await connectorsApi.createDestinationConnector({ + organization: testContext.orgId, + createDestinationConnector: [ + {type: DestinationConnectorType.Pinecone, name: "from api", config: {"key": "sk"}} + ] + }); + const connectorId = sourceResponse.connectors[0].id; + await connectorsApi.updateDestinationConnector({ + organization: testContext.orgId, + destinationConnectorId: connectorId, + updateDestinationConnectorRequest: { + config: {"key": "sk"} + } + } + ); + let connectors = await connectorsApi.getDestinationConnectors({ + organization: testContext.orgId + }); + expect(connectors.destinationConnectors.find(c => c.id === connectorId)).toBeTruthy() + + const read = await connectorsApi.getDestinationConnector({ + organization: testContext.orgId, + destinationConnectorId: connectorId + }) + console.log(read) + expect(read.name).toBe("from api") + let configDoc = read.configDoc; + expect(Object.keys(configDoc!).length).toBe(0) + expect(read.createdAt).toBeTruthy() + await connectorsApi.deleteDestinationConnector({ + organization: testContext.orgId, + destinationConnectorId: connectorId + }) + connectors = await connectorsApi.getDestinationConnectors({ + organization: testContext.orgId + }); + expect(connectors.destinationConnectors.find(c => c.id === connectorId)).toBeFalsy() + + } catch (error: any) { + console.error(error?.response); + console.error(await error?.response?.text()); + throw error + } + }, 120000); + +});