From f17099ccc24126c3829b3c798b0d5c6bef55f573 Mon Sep 17 00:00:00 2001 From: Jamie Ferguson Date: Tue, 17 Jun 2025 15:36:31 -0600 Subject: [PATCH 01/11] Updated ts generation to handle scenarios where SRC_DIR doesn't exist. --- scripts/generate-ts.sh | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/scripts/generate-ts.sh b/scripts/generate-ts.sh index 0850c0b..2e4716f 100755 --- a/scripts/generate-ts.sh +++ b/scripts/generate-ts.sh @@ -4,9 +4,16 @@ ROOT_DIR=$(git rev-parse --show-toplevel) SRC_DIR=$ROOT_DIR/src PACKAGE_JSON=$SRC_DIR/ts/package.json -cd $SRC_DIR/ts -current_version=$(npm pkg get version | tr -d '"') -cd ../../ + +# Try to get current version if the directory exists +if [ -d "$SRC_DIR/ts" ] && [ -f "$PACKAGE_JSON" ]; then + cd $SRC_DIR/ts + current_version=$(npm pkg get version | tr -d '"') + cd ../../ +else + # Use version from root package.json as fallback + current_version=$(node -p "require('./package.json').version") +fi rm -rf $SRC_DIR/ts openapi-generator-cli generate -i $ROOT_DIR/vectorize_api.json -g typescript-fetch -o $SRC_DIR/ts \ From 2fba9e9505cce4d8f2e372606f9c9abaf4c2a5a8 Mon Sep 17 00:00:00 2001 From: Jamie Ferguson Date: Tue, 17 Jun 2025 15:56:48 -0600 Subject: [PATCH 02/11] Updated generate-python.sh to get the version from package.json, this will handle scenarios where the python subdir doesn't exist. --- scripts/generate-python.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/generate-python.sh b/scripts/generate-python.sh index 6ae4e84..1e9101b 100755 --- a/scripts/generate-python.sh +++ b/scripts/generate-python.sh @@ -4,7 +4,7 @@ ROOT_DIR=$(git rev-parse --show-toplevel) SRC_DIR=$ROOT_DIR/src PYPROJECT=$SRC_DIR/python/pyproject.toml -current_version=$(npm run read-toml $PYPROJECT tool.poetry version | tail -n 1 | tr -d '[:space:]') +current_version=$(node -p "require('./package.json').version") rm -rf $SRC_DIR/python openapi-generator-cli generate -i $ROOT_DIR/vectorize_api.json -g python -o $SRC_DIR/python \ From 4e9daed5fad1945f8dc58496acb1de18f9442dbe Mon Sep 17 00:00:00 2001 From: Jamie Ferguson Date: Wed, 2 Jul 2025 18:37:51 -0600 Subject: [PATCH 03/11] Generation adjustment for a TS issue. --- scripts/fix-ts-unions.js | 159 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 159 insertions(+) create mode 100644 scripts/fix-ts-unions.js diff --git a/scripts/fix-ts-unions.js b/scripts/fix-ts-unions.js new file mode 100644 index 0000000..ba7b38a --- /dev/null +++ b/scripts/fix-ts-unions.js @@ -0,0 +1,159 @@ +#!/usr/bin/env node +const fs = require('fs'); +const path = require('path'); + +// Function to extract imported types from the file +function extractImportedTypes(content) { + const typeImports = []; + const importRegex = /import type \{ (\w+) \} from '\.\/\w+';/g; + let match; + + while ((match = importRegex.exec(content)) !== null) { + typeImports.push(match[1]); + } + + return typeImports; +} + +function fixJsonValueBug(content) { + // Fix the specific pattern in ToJSONTyped functions where 'value' is the parameter + content = content.replace( + /export function (\w+)ToJSONTyped\(value\?: ([^,]+) \| null, ignoreDiscriminator: boolean = false\): any \{[\s\S]*?return json;/g, + (match) => match.replace('return json;', 'return value;') + ); + + return content; +} + +// Update both functions to use this more precise fix: + +// Function to extract imported types from the file +function extractImportedTypes(content) { + const typeImports = []; + // Match both single-line and multi-line imports + const importRegex = /import type \{ (\w+) \} from ['"]\.\/\w+['"];/g; + let match; + + while ((match = importRegex.exec(content)) !== null) { + typeImports.push(match[1]); + } + + console.log(` Found imported types: ${typeImports.join(', ')}`); + return typeImports; +} + +// Function to fix union type definitions +function fixUnionTypes(filePath) { + let content = fs.readFileSync(filePath, 'utf8'); + const originalContent = content; + + // Pattern to match empty type definitions + const emptyTypePattern = /export type (\w+) = ;/; + + const match = emptyTypePattern.exec(content); + if (match) { + const typeName = match[1]; + console.log(`Fixing empty type: ${typeName}`); + + // Extract imported types from this file + const importedTypes = extractImportedTypes(content); + + // Filter imported types that are likely part of this union + const unionTypes = importedTypes.filter(t => { + const isUsed = content.includes(`instanceof${t}`) || + content.includes(`${t}FromJSON`) || + content.includes(`${t}ToJSON`); + if (isUsed) { + console.log(` Type ${t} is part of the union`); + } + return isUsed; + }); + + if (unionTypes.length > 0) { + // Create the union type + const unionTypeDefinition = `export type ${typeName} = ${unionTypes.join(' | ')};`; + + // Replace the empty type definition + content = content.replace( + `export type ${typeName} = ;`, + unionTypeDefinition + ); + + console.log(` Replaced with: ${unionTypeDefinition}`); + } else { + console.log(` WARNING: No union types found for ${typeName}`); + } + } + + // Only write if we made changes + if (content !== originalContent) { + fs.writeFileSync(filePath, content, 'utf8'); + console.log(`✅ Fixed ${filePath}`); + } +} + +function fixAnyTypeImports(filePath) { + let content = fs.readFileSync(filePath, 'utf8'); + const originalContent = content; + + // Remove AnyType imports + content = content.replace(/import type \{ AnyType \} from '\.\/AnyType';\n/g, ''); + content = content.replace(/import \{\s*[^}]*\s*\} from '\.\/AnyType';\n/g, ''); + + // Replace AnyType with any + content = content.replace(/: AnyType/g, ': any'); + + // Fix the json/value bug with the more precise function + content = fixJsonValueBug(content); + + // Only write if we made changes + if (content !== originalContent) { + fs.writeFileSync(filePath, content, 'utf8'); + } +} + +// Main function to process all TypeScript files +function processTypeScriptFiles(directory) { + const modelsDir = path.join(directory, 'src', 'models'); + + if (!fs.existsSync(modelsDir)) { + console.error(`Models directory not found: ${modelsDir}`); + process.exit(1); + } + + // Files that typically have union type issues + const filesToFix = [ + 'CreateAIPlatformConnectorRequest.ts', + 'CreateSourceConnectorRequest.ts', + 'CreateDestinationConnectorRequest.ts' + ]; + + filesToFix.forEach(fileName => { + const filePath = path.join(modelsDir, fileName); + if (fs.existsSync(filePath)) { + fixUnionTypes(filePath); + } else { + console.log(`⚠️ File not found: ${fileName}`); + } + }); + + const files = fs.readdirSync(modelsDir); +files.forEach(file => { + if (file.endsWith('.ts')) { + const filePath = path.join(modelsDir, file); + fixAnyTypeImports(filePath); + } +}); +} + +// Get the directory from command line argument +const tsDirectory = process.argv[2]; + +if (!tsDirectory) { + console.error('Usage: node fix-ts-unions.js '); + process.exit(1); +} + +console.log('🔧 Fixing TypeScript union types...'); +processTypeScriptFiles(tsDirectory); +console.log('✨ Done!'); \ No newline at end of file From 5e8027851603aa2af880c873709ac1550e3befa6 Mon Sep 17 00:00:00 2001 From: Jamie Ferguson Date: Thu, 3 Jul 2025 14:29:12 -0600 Subject: [PATCH 04/11] Lots of updates to support the updated OpenAPI spec. --- .DS_Store | Bin 0 -> 6148 bytes .github/workflows/ci.yml | 8 +- scripts/generate-python.sh | 2 - scripts/generate-ts.sh | 5 + src/python/README.md | 73 +- src/python/pyproject.toml | 50 +- src/python/vectorize_client/__init__.py | 453 +- src/python/vectorize_client/api/__init__.py | 4 +- .../api/ai_platform_connectors_api.py | 1524 +++++ .../vectorize_client/api/connectors_api.py | 5414 ----------------- .../api/destination_connectors_api.py | 1524 +++++ .../vectorize_client/api/extraction_api.py | 74 +- src/python/vectorize_client/api/files_api.py | 36 +- .../vectorize_client/api/pipelines_api.py | 671 +- .../api/source_connectors_api.py | 2487 ++++++++ .../vectorize_client/api/uploads_api.py | 130 +- src/python/vectorize_client/api_client.py | 4 +- src/python/vectorize_client/configuration.py | 4 +- src/python/vectorize_client/exceptions.py | 4 +- .../vectorize_client/models/__init__.py | 165 +- ...add_user_from_source_connector_response.py | 4 +- .../add_user_to_source_connector_request.py | 33 +- ...source_connector_request_selected_files.py | 137 + ...connector_request_selected_files_any_of.py | 89 + ...or_request_selected_files_any_of_value.py} | 12 +- .../vectorize_client/models/ai_platform.py | 4 +- .../models/ai_platform_config_schema.py | 4 +- .../models/ai_platform_connector_input.py | 103 + ...ema.py => ai_platform_connector_schema.py} | 16 +- .../models/ai_platform_type.py | 5 +- .../models/ai_platform_type_for_pipeline.py | 40 + src/python/vectorize_client/models/aws_s3.py | 102 + src/python/vectorize_client/models/aws_s31.py | 91 + .../models/awss3_auth_config.py | 114 + .../vectorize_client/models/awss3_config.py | 106 + .../vectorize_client/models/azure_blob.py | 102 + .../vectorize_client/models/azure_blob1.py | 91 + .../vectorize_client/models/azureaisearch.py | 102 + .../vectorize_client/models/azureaisearch1.py | 91 + .../models/azureaisearch_auth_config.py | 99 + .../models/azureaisearch_config.py | 95 + .../models/azureblob_auth_config.py | 95 + .../models/azureblob_config.py | 106 + src/python/vectorize_client/models/bedrock.py | 102 + ...create_source_connector.py => bedrock1.py} | 23 +- .../models/bedrock_auth_config.py | 108 + src/python/vectorize_client/models/capella.py | 102 + .../vectorize_client/models/capella1.py | 91 + .../models/capella_auth_config.py | 93 + .../vectorize_client/models/capella_config.py | 94 + .../vectorize_client/models/confluence.py | 102 + .../vectorize_client/models/confluence1.py | 91 + .../models/confluence_auth_config.py | 101 + .../models/confluence_config.py | 89 + .../create_ai_platform_connector_request.py | 168 + .../create_ai_platform_connector_response.py | 20 +- .../create_destination_connector_request.py | 280 + .../create_destination_connector_response.py | 20 +- .../models/create_pipeline_response.py | 4 +- .../models/create_pipeline_response_data.py | 4 +- .../models/create_source_connector_request.py | 294 + .../create_source_connector_response.py | 20 +- .../models/created_ai_platform_connector.py | 4 +- .../models/created_destination_connector.py | 4 +- .../models/created_source_connector.py | 4 +- .../vectorize_client/models/datastax.py | 102 + .../vectorize_client/models/datastax1.py | 91 + .../models/datastax_auth_config.py | 99 + .../models/datastax_config.py | 95 + .../models/deep_research_result.py | 4 +- .../delete_ai_platform_connector_response.py | 4 +- .../delete_destination_connector_response.py | 4 +- .../models/delete_file_response.py | 4 +- .../models/delete_pipeline_response.py | 4 +- .../delete_source_connector_response.py | 4 +- .../models/destination_connector.py | 4 +- .../models/destination_connector_input.py | 102 + .../destination_connector_input_config.py | 277 + .../models/destination_connector_schema.py | 8 +- .../models/destination_connector_type.py | 8 +- ...destination_connector_type_for_pipeline.py | 48 + src/python/vectorize_client/models/discord.py | 102 + .../vectorize_client/models/discord1.py | 91 + .../models/discord_auth_config.py | 101 + .../vectorize_client/models/discord_config.py | 130 + .../vectorize_client/models/document.py | 4 +- src/python/vectorize_client/models/dropbox.py | 91 + .../models/dropbox_auth_config.py | 97 + .../vectorize_client/models/dropbox_config.py | 98 + .../vectorize_client/models/dropbox_oauth.py | 91 + .../models/dropbox_oauth_multi.py | 91 + .../models/dropbox_oauth_multi_custom.py | 91 + .../models/dropboxoauth_auth_config.py | 95 + .../models/dropboxoauthmulti_auth_config.py | 93 + .../dropboxoauthmulticustom_auth_config.py | 97 + src/python/vectorize_client/models/elastic.py | 102 + .../vectorize_client/models/elastic1.py | 91 + .../models/elastic_auth_config.py | 101 + .../vectorize_client/models/elastic_config.py | 95 + .../models/extraction_chunking_strategy.py | 4 +- .../models/extraction_result.py | 4 +- .../models/extraction_result_response.py | 4 +- .../models/extraction_type.py | 4 +- .../vectorize_client/models/file_upload.py | 96 + .../vectorize_client/models/file_upload1.py | 91 + .../models/fileupload_auth_config.py | 91 + .../vectorize_client/models/firecrawl.py | 102 + .../vectorize_client/models/firecrawl1.py | 91 + .../models/firecrawl_auth_config.py | 89 + .../models/firecrawl_config.py | 96 + .../vectorize_client/models/fireflies.py | 102 + .../vectorize_client/models/fireflies1.py | 91 + .../models/fireflies_auth_config.py | 97 + .../models/fireflies_config.py | 100 + src/python/vectorize_client/models/gcs.py | 102 + src/python/vectorize_client/models/gcs1.py | 91 + .../models/gcs_auth_config.py | 91 + .../vectorize_client/models/gcs_config.py | 106 + .../get_ai_platform_connectors200_response.py | 4 +- .../models/get_deep_research_response.py | 4 +- .../get_destination_connectors200_response.py | 4 +- .../models/get_pipeline_events_response.py | 4 +- .../models/get_pipeline_metrics_response.py | 4 +- .../models/get_pipeline_response.py | 4 +- .../models/get_pipelines400_response.py | 4 +- .../models/get_pipelines_response.py | 4 +- .../get_source_connectors200_response.py | 4 +- .../models/get_upload_files_response.py | 4 +- src/python/vectorize_client/models/github.py | 102 + src/python/vectorize_client/models/github1.py | 91 + .../models/github_auth_config.py | 97 + .../vectorize_client/models/github_config.py | 126 + .../models/gmail_auth_config.py | 89 + .../vectorize_client/models/gmail_config.py | 142 + .../vectorize_client/models/google_drive.py | 102 + .../vectorize_client/models/google_drive1.py | 91 + .../models/google_drive_oauth.py | 91 + .../models/google_drive_oauth_multi.py | 91 + .../models/google_drive_oauth_multi_custom.py | 91 + .../models/googledrive_auth_config.py | 89 + .../models/googledrive_config.py | 110 + .../models/googledriveoauth_auth_config.py | 95 + .../models/googledriveoauth_config.py | 97 + .../googledriveoauthmulti_auth_config.py | 93 + .../models/googledriveoauthmulti_config.py | 97 + ...googledriveoauthmulticustom_auth_config.py | 97 + .../googledriveoauthmulticustom_config.py | 97 + .../vectorize_client/models/intercom.py | 91 + .../models/intercom_auth_config.py | 89 + .../models/intercom_config.py | 103 + .../models/metadata_extraction_strategy.py | 4 +- .../metadata_extraction_strategy_schema.py | 4 +- src/python/vectorize_client/models/milvus.py | 102 + src/python/vectorize_client/models/milvus1.py | 91 + .../models/milvus_auth_config.py | 95 + .../vectorize_client/models/milvus_config.py | 95 + .../vectorize_client/models/n8_n_config.py | 4 +- src/python/vectorize_client/models/notion.py | 91 + .../models/notion_auth_config.py | 93 + .../vectorize_client/models/notion_config.py | 95 + .../models/notion_oauth_multi.py | 91 + .../models/notion_oauth_multi_custom.py | 91 + .../models/notionoauthmulti_auth_config.py | 93 + .../notionoauthmulticustom_auth_config.py | 97 + .../vectorize_client/models/one_drive.py | 102 + .../vectorize_client/models/one_drive1.py | 91 + .../models/onedrive_auth_config.py | 95 + .../models/onedrive_config.py | 97 + src/python/vectorize_client/models/openai.py | 102 + ...te_ai_platform_connector.py => openai1.py} | 23 +- .../models/openai_auth_config.py | 97 + .../vectorize_client/models/pinecone.py | 102 + .../vectorize_client/models/pinecone1.py | 91 + .../models/pinecone_auth_config.py | 97 + .../models/pinecone_config.py | 107 + .../models/pipeline_configuration_schema.py | 10 +- .../models/pipeline_events.py | 4 +- .../models/pipeline_list_summary.py | 4 +- .../models/pipeline_metrics.py | 4 +- .../models/pipeline_summary.py | 4 +- .../vectorize_client/models/postgresql.py | 102 + .../vectorize_client/models/postgresql1.py | 91 + .../models/postgresql_auth_config.py | 97 + .../models/postgresql_config.py | 95 + src/python/vectorize_client/models/qdrant.py | 102 + src/python/vectorize_client/models/qdrant1.py | 91 + .../models/qdrant_auth_config.py | 99 + .../vectorize_client/models/qdrant_config.py | 95 + ...move_user_from_source_connector_request.py | 4 +- ...ove_user_from_source_connector_response.py | 4 +- .../models/retrieve_context.py | 4 +- .../models/retrieve_context_message.py | 4 +- .../models/retrieve_documents_request.py | 4 +- .../models/retrieve_documents_response.py | 4 +- .../models/schedule_schema.py | 4 +- .../models/schedule_schema_type.py | 4 +- .../vectorize_client/models/sharepoint.py | 102 + .../vectorize_client/models/sharepoint1.py | 91 + .../models/sharepoint_auth_config.py | 93 + .../models/sharepoint_config.py | 110 + .../vectorize_client/models/singlestore.py | 102 + .../vectorize_client/models/singlestore1.py | 91 + .../models/singlestore_auth_config.py | 97 + .../models/singlestore_config.py | 95 + .../models/source_connector.py | 4 +- .../models/source_connector_input.py | 102 + .../models/source_connector_input_config.py | 375 ++ .../models/source_connector_schema.py | 8 +- .../models/source_connector_type.py | 17 +- .../models/start_deep_research_request.py | 4 +- .../models/start_deep_research_response.py | 4 +- .../models/start_extraction_request.py | 4 +- .../models/start_extraction_response.py | 4 +- .../models/start_file_upload_request.py | 4 +- .../models/start_file_upload_response.py | 4 +- .../start_file_upload_to_connector_request.py | 4 +- ...start_file_upload_to_connector_response.py | 4 +- .../models/start_pipeline_response.py | 4 +- .../models/stop_pipeline_response.py | 4 +- .../vectorize_client/models/supabase.py | 102 + .../vectorize_client/models/supabase1.py | 91 + .../models/supabase_auth_config.py | 97 + .../models/supabase_config.py | 95 + .../vectorize_client/models/turbopuffer.py | 102 + .../vectorize_client/models/turbopuffer1.py | 91 + .../models/turbopuffer_auth_config.py | 97 + .../models/turbopuffer_config.py | 87 + .../update_ai_platform_connector_request.py | 184 +- .../update_ai_platform_connector_response.py | 4 +- .../update_destination_connector_request.py | 292 +- .../update_destination_connector_response.py | 4 +- .../models/update_source_connector_request.py | 460 +- .../update_source_connector_response.py | 4 +- .../update_source_connector_response_data.py | 4 +- ...update_user_in_source_connector_request.py | 29 +- ...pdate_user_in_source_connector_response.py | 4 +- .../updated_ai_platform_connector_data.py | 4 +- .../updated_destination_connector_data.py | 4 +- .../vectorize_client/models/upload_file.py | 6 +- src/python/vectorize_client/models/vertex.py | 102 + ...te_destination_connector.py => vertex1.py} | 23 +- .../models/vertex_auth_config.py | 91 + src/python/vectorize_client/models/voyage.py | 102 + src/python/vectorize_client/models/voyage1.py | 87 + .../models/voyage_auth_config.py | 97 + .../vectorize_client/models/weaviate.py | 102 + .../vectorize_client/models/weaviate1.py | 91 + .../models/weaviate_auth_config.py | 99 + .../models/weaviate_config.py | 95 + .../vectorize_client/models/web_crawler.py | 102 + .../vectorize_client/models/web_crawler1.py | 91 + .../models/webcrawler_auth_config.py | 89 + .../models/webcrawler_config.py | 110 + src/python/vectorize_client/rest.py | 4 +- src/ts/package-lock.json | 31 + src/ts/package.json | 4 +- src/ts/src/apis/AIPlatformConnectorsApi.ts | 332 + src/ts/src/apis/ConnectorsApi.ts | 1200 ---- src/ts/src/apis/DestinationConnectorsApi.ts | 332 + src/ts/src/apis/ExtractionApi.ts | 37 +- src/ts/src/apis/FilesApi.ts | 18 +- src/ts/src/apis/PipelinesApi.ts | 270 +- src/ts/src/apis/SourceConnectorsApi.ts | 548 ++ src/ts/src/apis/UploadsApi.ts | 67 +- src/ts/src/apis/index.ts | 4 +- src/ts/src/models/AIPlatform.ts | 4 +- src/ts/src/models/AIPlatformConfigSchema.ts | 4 +- src/ts/src/models/AIPlatformConnectorInput.ts | 98 + .../src/models/AIPlatformConnectorSchema.ts | 101 + src/ts/src/models/AIPlatformSchema.ts | 101 - src/ts/src/models/AIPlatformType.ts | 7 +- .../src/models/AIPlatformTypeForPipeline.ts | 56 + src/ts/src/models/AWSS3AuthConfig.ts | 118 + src/ts/src/models/AWSS3Config.ts | 127 + src/ts/src/models/AZUREAISEARCHAuthConfig.ts | 84 + src/ts/src/models/AZUREAISEARCHConfig.ts | 66 + src/ts/src/models/AZUREBLOBAuthConfig.ts | 101 + src/ts/src/models/AZUREBLOBConfig.ts | 127 + .../AddUserFromSourceConnectorResponse.ts | 4 +- .../models/AddUserToSourceConnectorRequest.ts | 37 +- ...erToSourceConnectorRequestSelectedFiles.ts | 88 + ...ourceConnectorRequestSelectedFilesAnyOf.ts | 73 + ...ConnectorRequestSelectedFilesAnyOfValue.ts | 75 + ...ourceConnectorRequestSelectedFilesValue.ts | 75 - src/ts/src/models/AwsS3.ts | 102 + src/ts/src/models/AwsS31.ts | 73 + src/ts/src/models/AzureBlob.ts | 102 + src/ts/src/models/AzureBlob1.ts | 73 + src/ts/src/models/Azureaisearch.ts | 102 + src/ts/src/models/Azureaisearch1.ts | 73 + src/ts/src/models/BEDROCKAuthConfig.ts | 93 + src/ts/src/models/Bedrock.ts | 102 + src/ts/src/models/Bedrock1.ts | 65 + src/ts/src/models/CAPELLAAuthConfig.ts | 93 + src/ts/src/models/CAPELLAConfig.ts | 93 + src/ts/src/models/CONFLUENCEAuthConfig.ts | 93 + src/ts/src/models/CONFLUENCEConfig.ts | 74 + src/ts/src/models/Capella.ts | 102 + src/ts/src/models/Capella1.ts | 73 + src/ts/src/models/Confluence.ts | 102 + src/ts/src/models/Confluence1.ts | 73 + .../src/models/CreateAIPlatformConnector.ts | 93 - .../CreateAIPlatformConnectorRequest.ts | 78 + .../CreateAIPlatformConnectorResponse.ts | 14 +- .../src/models/CreateDestinationConnector.ts | 93 - .../CreateDestinationConnectorRequest.ts | 134 + .../CreateDestinationConnectorResponse.ts | 14 +- src/ts/src/models/CreatePipelineResponse.ts | 4 +- .../src/models/CreatePipelineResponseData.ts | 4 +- src/ts/src/models/CreateSourceConnector.ts | 93 - .../models/CreateSourceConnectorRequest.ts | 141 + .../models/CreateSourceConnectorResponse.ts | 14 +- .../src/models/CreatedAIPlatformConnector.ts | 4 +- .../src/models/CreatedDestinationConnector.ts | 4 +- src/ts/src/models/CreatedSourceConnector.ts | 4 +- src/ts/src/models/DATASTAXAuthConfig.ts | 84 + src/ts/src/models/DATASTAXConfig.ts | 66 + src/ts/src/models/DISCORDAuthConfig.ts | 93 + src/ts/src/models/DISCORDConfig.ts | 142 + src/ts/src/models/DROPBOXAuthConfig.ts | 75 + src/ts/src/models/DROPBOXConfig.ts | 65 + src/ts/src/models/DROPBOXOAUTHAuthConfig.ts | 99 + .../src/models/DROPBOXOAUTHMULTIAuthConfig.ts | 90 + .../DROPBOXOAUTHMULTICUSTOMAuthConfig.ts | 108 + src/ts/src/models/Datastax.ts | 102 + src/ts/src/models/Datastax1.ts | 73 + src/ts/src/models/DeepResearchResult.ts | 4 +- .../DeleteAIPlatformConnectorResponse.ts | 4 +- .../DeleteDestinationConnectorResponse.ts | 4 +- src/ts/src/models/DeleteFileResponse.ts | 4 +- src/ts/src/models/DeletePipelineResponse.ts | 4 +- .../models/DeleteSourceConnectorResponse.ts | 4 +- src/ts/src/models/DestinationConnector.ts | 4 +- .../src/models/DestinationConnectorInput.ts | 113 + .../models/DestinationConnectorInputConfig.ts | 208 + .../src/models/DestinationConnectorSchema.ts | 24 +- src/ts/src/models/DestinationConnectorType.ts | 8 +- .../DestinationConnectorTypeForPipeline.ts | 64 + src/ts/src/models/Discord.ts | 102 + src/ts/src/models/Discord1.ts | 73 + src/ts/src/models/Document.ts | 4 +- src/ts/src/models/Dropbox.ts | 73 + src/ts/src/models/DropboxOauth.ts | 73 + src/ts/src/models/DropboxOauthMulti.ts | 73 + src/ts/src/models/DropboxOauthMultiCustom.ts | 73 + src/ts/src/models/ELASTICAuthConfig.ts | 93 + src/ts/src/models/ELASTICConfig.ts | 66 + src/ts/src/models/Elastic.ts | 102 + src/ts/src/models/Elastic1.ts | 73 + .../src/models/ExtractionChunkingStrategy.ts | 4 +- src/ts/src/models/ExtractionResult.ts | 4 +- src/ts/src/models/ExtractionResultResponse.ts | 4 +- src/ts/src/models/ExtractionType.ts | 4 +- src/ts/src/models/FILEUPLOADAuthConfig.ts | 82 + src/ts/src/models/FIRECRAWLAuthConfig.ts | 75 + src/ts/src/models/FIRECRAWLConfig.ts | 86 + src/ts/src/models/FIREFLIESAuthConfig.ts | 75 + src/ts/src/models/FIREFLIESConfig.ts | 116 + src/ts/src/models/FileUpload.ts | 85 + src/ts/src/models/FileUpload1.ts | 73 + src/ts/src/models/Firecrawl.ts | 102 + src/ts/src/models/Firecrawl1.ts | 73 + src/ts/src/models/Fireflies.ts | 102 + src/ts/src/models/Fireflies1.ts | 73 + src/ts/src/models/GCSAuthConfig.ts | 84 + src/ts/src/models/GCSConfig.ts | 127 + src/ts/src/models/GITHUBAuthConfig.ts | 75 + src/ts/src/models/GITHUBConfig.ts | 158 + src/ts/src/models/GMAILAuthConfig.ts | 75 + src/ts/src/models/GMAILConfig.ts | 174 + src/ts/src/models/GOOGLEDRIVEAuthConfig.ts | 75 + src/ts/src/models/GOOGLEDRIVEConfig.ts | 102 + .../src/models/GOOGLEDRIVEOAUTHAuthConfig.ts | 99 + src/ts/src/models/GOOGLEDRIVEOAUTHConfig.ts | 94 + .../models/GOOGLEDRIVEOAUTHMULTIAuthConfig.ts | 90 + .../GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig.ts | 108 + .../GOOGLEDRIVEOAUTHMULTICUSTOMConfig.ts | 94 + .../src/models/GOOGLEDRIVEOAUTHMULTIConfig.ts | 94 + src/ts/src/models/Gcs.ts | 102 + src/ts/src/models/Gcs1.ts | 73 + .../GetAIPlatformConnectors200Response.ts | 4 +- src/ts/src/models/GetDeepResearchResponse.ts | 4 +- .../GetDestinationConnectors200Response.ts | 4 +- .../src/models/GetPipelineEventsResponse.ts | 4 +- .../src/models/GetPipelineMetricsResponse.ts | 4 +- src/ts/src/models/GetPipelineResponse.ts | 4 +- src/ts/src/models/GetPipelines400Response.ts | 4 +- src/ts/src/models/GetPipelinesResponse.ts | 4 +- .../models/GetSourceConnectors200Response.ts | 4 +- src/ts/src/models/GetUploadFilesResponse.ts | 4 +- src/ts/src/models/Github.ts | 102 + src/ts/src/models/Github1.ts | 73 + src/ts/src/models/GoogleDrive.ts | 102 + src/ts/src/models/GoogleDrive1.ts | 73 + src/ts/src/models/GoogleDriveOauth.ts | 73 + src/ts/src/models/GoogleDriveOauthMulti.ts | 73 + .../src/models/GoogleDriveOauthMultiCustom.ts | 73 + src/ts/src/models/INTERCOMAuthConfig.ts | 75 + src/ts/src/models/INTERCOMConfig.ts | 94 + src/ts/src/models/Intercom.ts | 73 + src/ts/src/models/MILVUSAuthConfig.ts | 99 + src/ts/src/models/MILVUSConfig.ts | 66 + .../src/models/MetadataExtractionStrategy.ts | 4 +- .../MetadataExtractionStrategySchema.ts | 4 +- src/ts/src/models/Milvus.ts | 102 + src/ts/src/models/Milvus1.ts | 73 + src/ts/src/models/N8NConfig.ts | 4 +- src/ts/src/models/NOTIONAuthConfig.ts | 91 + src/ts/src/models/NOTIONConfig.ts | 102 + .../src/models/NOTIONOAUTHMULTIAuthConfig.ts | 90 + .../NOTIONOAUTHMULTICUSTOMAuthConfig.ts | 108 + src/ts/src/models/Notion.ts | 73 + src/ts/src/models/NotionOauthMulti.ts | 73 + src/ts/src/models/NotionOauthMultiCustom.ts | 73 + src/ts/src/models/ONEDRIVEAuthConfig.ts | 102 + src/ts/src/models/ONEDRIVEConfig.ts | 94 + src/ts/src/models/OPENAIAuthConfig.ts | 75 + src/ts/src/models/OneDrive.ts | 102 + src/ts/src/models/OneDrive1.ts | 73 + src/ts/src/models/Openai.ts | 102 + src/ts/src/models/Openai1.ts | 65 + src/ts/src/models/PINECONEAuthConfig.ts | 75 + src/ts/src/models/PINECONEConfig.ts | 74 + src/ts/src/models/POSTGRESQLAuthConfig.ts | 110 + src/ts/src/models/POSTGRESQLConfig.ts | 66 + src/ts/src/models/Pinecone.ts | 102 + src/ts/src/models/Pinecone1.ts | 73 + .../src/models/PipelineConfigurationSchema.ts | 24 +- src/ts/src/models/PipelineEvents.ts | 4 +- src/ts/src/models/PipelineListSummary.ts | 4 +- src/ts/src/models/PipelineMetrics.ts | 4 +- src/ts/src/models/PipelineSummary.ts | 4 +- src/ts/src/models/Postgresql.ts | 102 + src/ts/src/models/Postgresql1.ts | 73 + src/ts/src/models/QDRANTAuthConfig.ts | 84 + src/ts/src/models/QDRANTConfig.ts | 66 + src/ts/src/models/Qdrant.ts | 102 + src/ts/src/models/Qdrant1.ts | 73 + .../RemoveUserFromSourceConnectorRequest.ts | 4 +- .../RemoveUserFromSourceConnectorResponse.ts | 4 +- src/ts/src/models/RetrieveContext.ts | 4 +- src/ts/src/models/RetrieveContextMessage.ts | 4 +- src/ts/src/models/RetrieveDocumentsRequest.ts | 4 +- .../src/models/RetrieveDocumentsResponse.ts | 4 +- src/ts/src/models/SHAREPOINTAuthConfig.ts | 93 + src/ts/src/models/SHAREPOINTConfig.ts | 101 + src/ts/src/models/SINGLESTOREAuthConfig.ts | 111 + src/ts/src/models/SINGLESTOREConfig.ts | 66 + src/ts/src/models/SUPABASEAuthConfig.ts | 110 + src/ts/src/models/SUPABASEConfig.ts | 66 + src/ts/src/models/ScheduleSchema.ts | 4 +- src/ts/src/models/ScheduleSchemaType.ts | 4 +- src/ts/src/models/Sharepoint.ts | 102 + src/ts/src/models/Sharepoint1.ts | 73 + src/ts/src/models/Singlestore.ts | 102 + src/ts/src/models/Singlestore1.ts | 73 + src/ts/src/models/SourceConnector.ts | 4 +- src/ts/src/models/SourceConnectorInput.ts | 126 + .../src/models/SourceConnectorInputConfig.ts | 299 + src/ts/src/models/SourceConnectorSchema.ts | 9 +- src/ts/src/models/SourceConnectorType.ts | 17 +- src/ts/src/models/StartDeepResearchRequest.ts | 4 +- .../src/models/StartDeepResearchResponse.ts | 4 +- src/ts/src/models/StartExtractionRequest.ts | 4 +- src/ts/src/models/StartExtractionResponse.ts | 4 +- src/ts/src/models/StartFileUploadRequest.ts | 4 +- src/ts/src/models/StartFileUploadResponse.ts | 4 +- .../StartFileUploadToConnectorRequest.ts | 4 +- .../StartFileUploadToConnectorResponse.ts | 4 +- src/ts/src/models/StartPipelineResponse.ts | 4 +- src/ts/src/models/StopPipelineResponse.ts | 4 +- src/ts/src/models/Supabase.ts | 102 + src/ts/src/models/Supabase1.ts | 73 + src/ts/src/models/TURBOPUFFERAuthConfig.ts | 75 + src/ts/src/models/TURBOPUFFERConfig.ts | 66 + src/ts/src/models/Turbopuffer.ts | 102 + src/ts/src/models/Turbopuffer1.ts | 73 + .../UpdateAIPlatformConnectorRequest.ts | 96 +- .../UpdateAIPlatformConnectorResponse.ts | 4 +- .../UpdateDestinationConnectorRequest.ts | 200 +- .../UpdateDestinationConnectorResponse.ts | 4 +- .../models/UpdateSourceConnectorRequest.ts | 356 +- .../models/UpdateSourceConnectorResponse.ts | 4 +- .../UpdateSourceConnectorResponseData.ts | 4 +- .../UpdateUserInSourceConnectorRequest.ts | 32 +- .../UpdateUserInSourceConnectorResponse.ts | 4 +- .../models/UpdatedAIPlatformConnectorData.ts | 4 +- .../models/UpdatedDestinationConnectorData.ts | 4 +- src/ts/src/models/UploadFile.ts | 8 +- src/ts/src/models/VERTEXAuthConfig.ts | 84 + src/ts/src/models/VOYAGEAuthConfig.ts | 75 + src/ts/src/models/Vertex.ts | 102 + src/ts/src/models/Vertex1.ts | 65 + src/ts/src/models/Voyage.ts | 102 + src/ts/src/models/Voyage1.ts | 65 + src/ts/src/models/WEAVIATEAuthConfig.ts | 84 + src/ts/src/models/WEAVIATEConfig.ts | 66 + src/ts/src/models/WEBCRAWLERAuthConfig.ts | 75 + src/ts/src/models/WEBCRAWLERConfig.ts | 113 + src/ts/src/models/Weaviate.ts | 102 + src/ts/src/models/Weaviate1.ts | 73 + src/ts/src/models/WebCrawler.ts | 102 + src/ts/src/models/WebCrawler1.ts | 73 + src/ts/src/models/index.ts | 161 +- src/ts/src/runtime.ts | 4 +- tests/python/tests/test_client.py | 79 +- tests/ts/package-lock.json | 260 +- tests/ts/tests/connectors.test.ts | 240 +- tests/ts/tests/extraction.test.ts | 6 +- tests/ts/tests/pipelines.test.ts | 80 +- tests/ts/tests/testContext.ts | 8 +- tests/ts/tests/uploads.test.ts | 23 +- 512 files changed, 39745 insertions(+), 9124 deletions(-) create mode 100644 .DS_Store create mode 100644 src/python/vectorize_client/api/ai_platform_connectors_api.py delete mode 100644 src/python/vectorize_client/api/connectors_api.py create mode 100644 src/python/vectorize_client/api/destination_connectors_api.py create mode 100644 src/python/vectorize_client/api/source_connectors_api.py create mode 100644 src/python/vectorize_client/models/add_user_to_source_connector_request_selected_files.py create mode 100644 src/python/vectorize_client/models/add_user_to_source_connector_request_selected_files_any_of.py rename src/python/vectorize_client/models/{add_user_to_source_connector_request_selected_files_value.py => add_user_to_source_connector_request_selected_files_any_of_value.py} (89%) create mode 100644 src/python/vectorize_client/models/ai_platform_connector_input.py rename src/python/vectorize_client/models/{ai_platform_schema.py => ai_platform_connector_schema.py} (86%) create mode 100644 src/python/vectorize_client/models/ai_platform_type_for_pipeline.py create mode 100644 src/python/vectorize_client/models/aws_s3.py create mode 100644 src/python/vectorize_client/models/aws_s31.py create mode 100644 src/python/vectorize_client/models/awss3_auth_config.py create mode 100644 src/python/vectorize_client/models/awss3_config.py create mode 100644 src/python/vectorize_client/models/azure_blob.py create mode 100644 src/python/vectorize_client/models/azure_blob1.py create mode 100644 src/python/vectorize_client/models/azureaisearch.py create mode 100644 src/python/vectorize_client/models/azureaisearch1.py create mode 100644 src/python/vectorize_client/models/azureaisearch_auth_config.py create mode 100644 src/python/vectorize_client/models/azureaisearch_config.py create mode 100644 src/python/vectorize_client/models/azureblob_auth_config.py create mode 100644 src/python/vectorize_client/models/azureblob_config.py create mode 100644 src/python/vectorize_client/models/bedrock.py rename src/python/vectorize_client/models/{create_source_connector.py => bedrock1.py} (76%) create mode 100644 src/python/vectorize_client/models/bedrock_auth_config.py create mode 100644 src/python/vectorize_client/models/capella.py create mode 100644 src/python/vectorize_client/models/capella1.py create mode 100644 src/python/vectorize_client/models/capella_auth_config.py create mode 100644 src/python/vectorize_client/models/capella_config.py create mode 100644 src/python/vectorize_client/models/confluence.py create mode 100644 src/python/vectorize_client/models/confluence1.py create mode 100644 src/python/vectorize_client/models/confluence_auth_config.py create mode 100644 src/python/vectorize_client/models/confluence_config.py create mode 100644 src/python/vectorize_client/models/create_ai_platform_connector_request.py create mode 100644 src/python/vectorize_client/models/create_destination_connector_request.py create mode 100644 src/python/vectorize_client/models/create_source_connector_request.py create mode 100644 src/python/vectorize_client/models/datastax.py create mode 100644 src/python/vectorize_client/models/datastax1.py create mode 100644 src/python/vectorize_client/models/datastax_auth_config.py create mode 100644 src/python/vectorize_client/models/datastax_config.py create mode 100644 src/python/vectorize_client/models/destination_connector_input.py create mode 100644 src/python/vectorize_client/models/destination_connector_input_config.py create mode 100644 src/python/vectorize_client/models/destination_connector_type_for_pipeline.py create mode 100644 src/python/vectorize_client/models/discord.py create mode 100644 src/python/vectorize_client/models/discord1.py create mode 100644 src/python/vectorize_client/models/discord_auth_config.py create mode 100644 src/python/vectorize_client/models/discord_config.py create mode 100644 src/python/vectorize_client/models/dropbox.py create mode 100644 src/python/vectorize_client/models/dropbox_auth_config.py create mode 100644 src/python/vectorize_client/models/dropbox_config.py create mode 100644 src/python/vectorize_client/models/dropbox_oauth.py create mode 100644 src/python/vectorize_client/models/dropbox_oauth_multi.py create mode 100644 src/python/vectorize_client/models/dropbox_oauth_multi_custom.py create mode 100644 src/python/vectorize_client/models/dropboxoauth_auth_config.py create mode 100644 src/python/vectorize_client/models/dropboxoauthmulti_auth_config.py create mode 100644 src/python/vectorize_client/models/dropboxoauthmulticustom_auth_config.py create mode 100644 src/python/vectorize_client/models/elastic.py create mode 100644 src/python/vectorize_client/models/elastic1.py create mode 100644 src/python/vectorize_client/models/elastic_auth_config.py create mode 100644 src/python/vectorize_client/models/elastic_config.py create mode 100644 src/python/vectorize_client/models/file_upload.py create mode 100644 src/python/vectorize_client/models/file_upload1.py create mode 100644 src/python/vectorize_client/models/fileupload_auth_config.py create mode 100644 src/python/vectorize_client/models/firecrawl.py create mode 100644 src/python/vectorize_client/models/firecrawl1.py create mode 100644 src/python/vectorize_client/models/firecrawl_auth_config.py create mode 100644 src/python/vectorize_client/models/firecrawl_config.py create mode 100644 src/python/vectorize_client/models/fireflies.py create mode 100644 src/python/vectorize_client/models/fireflies1.py create mode 100644 src/python/vectorize_client/models/fireflies_auth_config.py create mode 100644 src/python/vectorize_client/models/fireflies_config.py create mode 100644 src/python/vectorize_client/models/gcs.py create mode 100644 src/python/vectorize_client/models/gcs1.py create mode 100644 src/python/vectorize_client/models/gcs_auth_config.py create mode 100644 src/python/vectorize_client/models/gcs_config.py create mode 100644 src/python/vectorize_client/models/github.py create mode 100644 src/python/vectorize_client/models/github1.py create mode 100644 src/python/vectorize_client/models/github_auth_config.py create mode 100644 src/python/vectorize_client/models/github_config.py create mode 100644 src/python/vectorize_client/models/gmail_auth_config.py create mode 100644 src/python/vectorize_client/models/gmail_config.py create mode 100644 src/python/vectorize_client/models/google_drive.py create mode 100644 src/python/vectorize_client/models/google_drive1.py create mode 100644 src/python/vectorize_client/models/google_drive_oauth.py create mode 100644 src/python/vectorize_client/models/google_drive_oauth_multi.py create mode 100644 src/python/vectorize_client/models/google_drive_oauth_multi_custom.py create mode 100644 src/python/vectorize_client/models/googledrive_auth_config.py create mode 100644 src/python/vectorize_client/models/googledrive_config.py create mode 100644 src/python/vectorize_client/models/googledriveoauth_auth_config.py create mode 100644 src/python/vectorize_client/models/googledriveoauth_config.py create mode 100644 src/python/vectorize_client/models/googledriveoauthmulti_auth_config.py create mode 100644 src/python/vectorize_client/models/googledriveoauthmulti_config.py create mode 100644 src/python/vectorize_client/models/googledriveoauthmulticustom_auth_config.py create mode 100644 src/python/vectorize_client/models/googledriveoauthmulticustom_config.py create mode 100644 src/python/vectorize_client/models/intercom.py create mode 100644 src/python/vectorize_client/models/intercom_auth_config.py create mode 100644 src/python/vectorize_client/models/intercom_config.py create mode 100644 src/python/vectorize_client/models/milvus.py create mode 100644 src/python/vectorize_client/models/milvus1.py create mode 100644 src/python/vectorize_client/models/milvus_auth_config.py create mode 100644 src/python/vectorize_client/models/milvus_config.py create mode 100644 src/python/vectorize_client/models/notion.py create mode 100644 src/python/vectorize_client/models/notion_auth_config.py create mode 100644 src/python/vectorize_client/models/notion_config.py create mode 100644 src/python/vectorize_client/models/notion_oauth_multi.py create mode 100644 src/python/vectorize_client/models/notion_oauth_multi_custom.py create mode 100644 src/python/vectorize_client/models/notionoauthmulti_auth_config.py create mode 100644 src/python/vectorize_client/models/notionoauthmulticustom_auth_config.py create mode 100644 src/python/vectorize_client/models/one_drive.py create mode 100644 src/python/vectorize_client/models/one_drive1.py create mode 100644 src/python/vectorize_client/models/onedrive_auth_config.py create mode 100644 src/python/vectorize_client/models/onedrive_config.py create mode 100644 src/python/vectorize_client/models/openai.py rename src/python/vectorize_client/models/{create_ai_platform_connector.py => openai1.py} (76%) create mode 100644 src/python/vectorize_client/models/openai_auth_config.py create mode 100644 src/python/vectorize_client/models/pinecone.py create mode 100644 src/python/vectorize_client/models/pinecone1.py create mode 100644 src/python/vectorize_client/models/pinecone_auth_config.py create mode 100644 src/python/vectorize_client/models/pinecone_config.py create mode 100644 src/python/vectorize_client/models/postgresql.py create mode 100644 src/python/vectorize_client/models/postgresql1.py create mode 100644 src/python/vectorize_client/models/postgresql_auth_config.py create mode 100644 src/python/vectorize_client/models/postgresql_config.py create mode 100644 src/python/vectorize_client/models/qdrant.py create mode 100644 src/python/vectorize_client/models/qdrant1.py create mode 100644 src/python/vectorize_client/models/qdrant_auth_config.py create mode 100644 src/python/vectorize_client/models/qdrant_config.py create mode 100644 src/python/vectorize_client/models/sharepoint.py create mode 100644 src/python/vectorize_client/models/sharepoint1.py create mode 100644 src/python/vectorize_client/models/sharepoint_auth_config.py create mode 100644 src/python/vectorize_client/models/sharepoint_config.py create mode 100644 src/python/vectorize_client/models/singlestore.py create mode 100644 src/python/vectorize_client/models/singlestore1.py create mode 100644 src/python/vectorize_client/models/singlestore_auth_config.py create mode 100644 src/python/vectorize_client/models/singlestore_config.py create mode 100644 src/python/vectorize_client/models/source_connector_input.py create mode 100644 src/python/vectorize_client/models/source_connector_input_config.py create mode 100644 src/python/vectorize_client/models/supabase.py create mode 100644 src/python/vectorize_client/models/supabase1.py create mode 100644 src/python/vectorize_client/models/supabase_auth_config.py create mode 100644 src/python/vectorize_client/models/supabase_config.py create mode 100644 src/python/vectorize_client/models/turbopuffer.py create mode 100644 src/python/vectorize_client/models/turbopuffer1.py create mode 100644 src/python/vectorize_client/models/turbopuffer_auth_config.py create mode 100644 src/python/vectorize_client/models/turbopuffer_config.py create mode 100644 src/python/vectorize_client/models/vertex.py rename src/python/vectorize_client/models/{create_destination_connector.py => vertex1.py} (75%) create mode 100644 src/python/vectorize_client/models/vertex_auth_config.py create mode 100644 src/python/vectorize_client/models/voyage.py create mode 100644 src/python/vectorize_client/models/voyage1.py create mode 100644 src/python/vectorize_client/models/voyage_auth_config.py create mode 100644 src/python/vectorize_client/models/weaviate.py create mode 100644 src/python/vectorize_client/models/weaviate1.py create mode 100644 src/python/vectorize_client/models/weaviate_auth_config.py create mode 100644 src/python/vectorize_client/models/weaviate_config.py create mode 100644 src/python/vectorize_client/models/web_crawler.py create mode 100644 src/python/vectorize_client/models/web_crawler1.py create mode 100644 src/python/vectorize_client/models/webcrawler_auth_config.py create mode 100644 src/python/vectorize_client/models/webcrawler_config.py create mode 100644 src/ts/package-lock.json create mode 100644 src/ts/src/apis/AIPlatformConnectorsApi.ts delete mode 100644 src/ts/src/apis/ConnectorsApi.ts create mode 100644 src/ts/src/apis/DestinationConnectorsApi.ts create mode 100644 src/ts/src/apis/SourceConnectorsApi.ts create mode 100644 src/ts/src/models/AIPlatformConnectorInput.ts create mode 100644 src/ts/src/models/AIPlatformConnectorSchema.ts delete mode 100644 src/ts/src/models/AIPlatformSchema.ts create mode 100644 src/ts/src/models/AIPlatformTypeForPipeline.ts create mode 100644 src/ts/src/models/AWSS3AuthConfig.ts create mode 100644 src/ts/src/models/AWSS3Config.ts create mode 100644 src/ts/src/models/AZUREAISEARCHAuthConfig.ts create mode 100644 src/ts/src/models/AZUREAISEARCHConfig.ts create mode 100644 src/ts/src/models/AZUREBLOBAuthConfig.ts create mode 100644 src/ts/src/models/AZUREBLOBConfig.ts create mode 100644 src/ts/src/models/AddUserToSourceConnectorRequestSelectedFiles.ts create mode 100644 src/ts/src/models/AddUserToSourceConnectorRequestSelectedFilesAnyOf.ts create mode 100644 src/ts/src/models/AddUserToSourceConnectorRequestSelectedFilesAnyOfValue.ts delete mode 100644 src/ts/src/models/AddUserToSourceConnectorRequestSelectedFilesValue.ts create mode 100644 src/ts/src/models/AwsS3.ts create mode 100644 src/ts/src/models/AwsS31.ts create mode 100644 src/ts/src/models/AzureBlob.ts create mode 100644 src/ts/src/models/AzureBlob1.ts create mode 100644 src/ts/src/models/Azureaisearch.ts create mode 100644 src/ts/src/models/Azureaisearch1.ts create mode 100644 src/ts/src/models/BEDROCKAuthConfig.ts create mode 100644 src/ts/src/models/Bedrock.ts create mode 100644 src/ts/src/models/Bedrock1.ts create mode 100644 src/ts/src/models/CAPELLAAuthConfig.ts create mode 100644 src/ts/src/models/CAPELLAConfig.ts create mode 100644 src/ts/src/models/CONFLUENCEAuthConfig.ts create mode 100644 src/ts/src/models/CONFLUENCEConfig.ts create mode 100644 src/ts/src/models/Capella.ts create mode 100644 src/ts/src/models/Capella1.ts create mode 100644 src/ts/src/models/Confluence.ts create mode 100644 src/ts/src/models/Confluence1.ts delete mode 100644 src/ts/src/models/CreateAIPlatformConnector.ts create mode 100644 src/ts/src/models/CreateAIPlatformConnectorRequest.ts delete mode 100644 src/ts/src/models/CreateDestinationConnector.ts create mode 100644 src/ts/src/models/CreateDestinationConnectorRequest.ts delete mode 100644 src/ts/src/models/CreateSourceConnector.ts create mode 100644 src/ts/src/models/CreateSourceConnectorRequest.ts create mode 100644 src/ts/src/models/DATASTAXAuthConfig.ts create mode 100644 src/ts/src/models/DATASTAXConfig.ts create mode 100644 src/ts/src/models/DISCORDAuthConfig.ts create mode 100644 src/ts/src/models/DISCORDConfig.ts create mode 100644 src/ts/src/models/DROPBOXAuthConfig.ts create mode 100644 src/ts/src/models/DROPBOXConfig.ts create mode 100644 src/ts/src/models/DROPBOXOAUTHAuthConfig.ts create mode 100644 src/ts/src/models/DROPBOXOAUTHMULTIAuthConfig.ts create mode 100644 src/ts/src/models/DROPBOXOAUTHMULTICUSTOMAuthConfig.ts create mode 100644 src/ts/src/models/Datastax.ts create mode 100644 src/ts/src/models/Datastax1.ts create mode 100644 src/ts/src/models/DestinationConnectorInput.ts create mode 100644 src/ts/src/models/DestinationConnectorInputConfig.ts create mode 100644 src/ts/src/models/DestinationConnectorTypeForPipeline.ts create mode 100644 src/ts/src/models/Discord.ts create mode 100644 src/ts/src/models/Discord1.ts create mode 100644 src/ts/src/models/Dropbox.ts create mode 100644 src/ts/src/models/DropboxOauth.ts create mode 100644 src/ts/src/models/DropboxOauthMulti.ts create mode 100644 src/ts/src/models/DropboxOauthMultiCustom.ts create mode 100644 src/ts/src/models/ELASTICAuthConfig.ts create mode 100644 src/ts/src/models/ELASTICConfig.ts create mode 100644 src/ts/src/models/Elastic.ts create mode 100644 src/ts/src/models/Elastic1.ts create mode 100644 src/ts/src/models/FILEUPLOADAuthConfig.ts create mode 100644 src/ts/src/models/FIRECRAWLAuthConfig.ts create mode 100644 src/ts/src/models/FIRECRAWLConfig.ts create mode 100644 src/ts/src/models/FIREFLIESAuthConfig.ts create mode 100644 src/ts/src/models/FIREFLIESConfig.ts create mode 100644 src/ts/src/models/FileUpload.ts create mode 100644 src/ts/src/models/FileUpload1.ts create mode 100644 src/ts/src/models/Firecrawl.ts create mode 100644 src/ts/src/models/Firecrawl1.ts create mode 100644 src/ts/src/models/Fireflies.ts create mode 100644 src/ts/src/models/Fireflies1.ts create mode 100644 src/ts/src/models/GCSAuthConfig.ts create mode 100644 src/ts/src/models/GCSConfig.ts create mode 100644 src/ts/src/models/GITHUBAuthConfig.ts create mode 100644 src/ts/src/models/GITHUBConfig.ts create mode 100644 src/ts/src/models/GMAILAuthConfig.ts create mode 100644 src/ts/src/models/GMAILConfig.ts create mode 100644 src/ts/src/models/GOOGLEDRIVEAuthConfig.ts create mode 100644 src/ts/src/models/GOOGLEDRIVEConfig.ts create mode 100644 src/ts/src/models/GOOGLEDRIVEOAUTHAuthConfig.ts create mode 100644 src/ts/src/models/GOOGLEDRIVEOAUTHConfig.ts create mode 100644 src/ts/src/models/GOOGLEDRIVEOAUTHMULTIAuthConfig.ts create mode 100644 src/ts/src/models/GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig.ts create mode 100644 src/ts/src/models/GOOGLEDRIVEOAUTHMULTICUSTOMConfig.ts create mode 100644 src/ts/src/models/GOOGLEDRIVEOAUTHMULTIConfig.ts create mode 100644 src/ts/src/models/Gcs.ts create mode 100644 src/ts/src/models/Gcs1.ts create mode 100644 src/ts/src/models/Github.ts create mode 100644 src/ts/src/models/Github1.ts create mode 100644 src/ts/src/models/GoogleDrive.ts create mode 100644 src/ts/src/models/GoogleDrive1.ts create mode 100644 src/ts/src/models/GoogleDriveOauth.ts create mode 100644 src/ts/src/models/GoogleDriveOauthMulti.ts create mode 100644 src/ts/src/models/GoogleDriveOauthMultiCustom.ts create mode 100644 src/ts/src/models/INTERCOMAuthConfig.ts create mode 100644 src/ts/src/models/INTERCOMConfig.ts create mode 100644 src/ts/src/models/Intercom.ts create mode 100644 src/ts/src/models/MILVUSAuthConfig.ts create mode 100644 src/ts/src/models/MILVUSConfig.ts create mode 100644 src/ts/src/models/Milvus.ts create mode 100644 src/ts/src/models/Milvus1.ts create mode 100644 src/ts/src/models/NOTIONAuthConfig.ts create mode 100644 src/ts/src/models/NOTIONConfig.ts create mode 100644 src/ts/src/models/NOTIONOAUTHMULTIAuthConfig.ts create mode 100644 src/ts/src/models/NOTIONOAUTHMULTICUSTOMAuthConfig.ts create mode 100644 src/ts/src/models/Notion.ts create mode 100644 src/ts/src/models/NotionOauthMulti.ts create mode 100644 src/ts/src/models/NotionOauthMultiCustom.ts create mode 100644 src/ts/src/models/ONEDRIVEAuthConfig.ts create mode 100644 src/ts/src/models/ONEDRIVEConfig.ts create mode 100644 src/ts/src/models/OPENAIAuthConfig.ts create mode 100644 src/ts/src/models/OneDrive.ts create mode 100644 src/ts/src/models/OneDrive1.ts create mode 100644 src/ts/src/models/Openai.ts create mode 100644 src/ts/src/models/Openai1.ts create mode 100644 src/ts/src/models/PINECONEAuthConfig.ts create mode 100644 src/ts/src/models/PINECONEConfig.ts create mode 100644 src/ts/src/models/POSTGRESQLAuthConfig.ts create mode 100644 src/ts/src/models/POSTGRESQLConfig.ts create mode 100644 src/ts/src/models/Pinecone.ts create mode 100644 src/ts/src/models/Pinecone1.ts create mode 100644 src/ts/src/models/Postgresql.ts create mode 100644 src/ts/src/models/Postgresql1.ts create mode 100644 src/ts/src/models/QDRANTAuthConfig.ts create mode 100644 src/ts/src/models/QDRANTConfig.ts create mode 100644 src/ts/src/models/Qdrant.ts create mode 100644 src/ts/src/models/Qdrant1.ts create mode 100644 src/ts/src/models/SHAREPOINTAuthConfig.ts create mode 100644 src/ts/src/models/SHAREPOINTConfig.ts create mode 100644 src/ts/src/models/SINGLESTOREAuthConfig.ts create mode 100644 src/ts/src/models/SINGLESTOREConfig.ts create mode 100644 src/ts/src/models/SUPABASEAuthConfig.ts create mode 100644 src/ts/src/models/SUPABASEConfig.ts create mode 100644 src/ts/src/models/Sharepoint.ts create mode 100644 src/ts/src/models/Sharepoint1.ts create mode 100644 src/ts/src/models/Singlestore.ts create mode 100644 src/ts/src/models/Singlestore1.ts create mode 100644 src/ts/src/models/SourceConnectorInput.ts create mode 100644 src/ts/src/models/SourceConnectorInputConfig.ts create mode 100644 src/ts/src/models/Supabase.ts create mode 100644 src/ts/src/models/Supabase1.ts create mode 100644 src/ts/src/models/TURBOPUFFERAuthConfig.ts create mode 100644 src/ts/src/models/TURBOPUFFERConfig.ts create mode 100644 src/ts/src/models/Turbopuffer.ts create mode 100644 src/ts/src/models/Turbopuffer1.ts create mode 100644 src/ts/src/models/VERTEXAuthConfig.ts create mode 100644 src/ts/src/models/VOYAGEAuthConfig.ts create mode 100644 src/ts/src/models/Vertex.ts create mode 100644 src/ts/src/models/Vertex1.ts create mode 100644 src/ts/src/models/Voyage.ts create mode 100644 src/ts/src/models/Voyage1.ts create mode 100644 src/ts/src/models/WEAVIATEAuthConfig.ts create mode 100644 src/ts/src/models/WEAVIATEConfig.ts create mode 100644 src/ts/src/models/WEBCRAWLERAuthConfig.ts create mode 100644 src/ts/src/models/WEBCRAWLERConfig.ts create mode 100644 src/ts/src/models/Weaviate.ts create mode 100644 src/ts/src/models/Weaviate1.ts create mode 100644 src/ts/src/models/WebCrawler.ts create mode 100644 src/ts/src/models/WebCrawler1.ts diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..4c191afa50e15e03f6a616af9d589a552628e5ec GIT binary patch literal 6148 zcmeHK%Sr=55UkdKfn0L*IKSW@3?Y6&en3nJ2!V*J_dWStewx(}#IVUJc#&%8u9@Dh z9i|T3+W>6!v3mfP0OoW@e0rFgKX;$lO=XNo=R02Uj$ywWw$H~&_4$Nz?=WDCH@y7j z9}njV%1Qw#AO)m=6p#W}Dd4@AHeVzvN&zV#1%4Fp??ab%7 literal 0 HcmV?d00001 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0d46e53..ccd7891 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,8 +30,8 @@ jobs: - name: "Run tests" env: - VECTORIZE_TOKEN: ${{ secrets.VECTORIZE_TOKEN }} - VECTORIZE_ORG: ${{ secrets.VECTORIZE_ORG }} + VECTORIZE_API_KEY: ${{ secrets.VECTORIZE_TOKEN }} + VECTORIZE_ORGANIZATION_ID: ${{ secrets.VECTORIZE_ORG }} VECTORIZE_ENV: dev run: | cd tests/ts @@ -65,8 +65,8 @@ jobs: - name: Tests env: - VECTORIZE_TOKEN: ${{ secrets.VECTORIZE_TOKEN }} - VECTORIZE_ORG: ${{ secrets.VECTORIZE_ORG }} + VECTORIZE_API_KEY: ${{ secrets.VECTORIZE_TOKEN }} + VECTORIZE_ORGANIZATION_ID: ${{ secrets.VECTORIZE_ORG }} VECTORIZE_ENV: dev run: | cd tests/python diff --git a/scripts/generate-python.sh b/scripts/generate-python.sh index 1e9101b..47eacfb 100755 --- a/scripts/generate-python.sh +++ b/scripts/generate-python.sh @@ -11,8 +11,6 @@ openapi-generator-cli generate -i $ROOT_DIR/vectorize_api.json -g python -o $SRC --additional-properties=packageName=vectorize_client \ --additional-properties=generateSourceCodeOnly=false - - npm run edit-toml $PYPROJECT tool.poetry version $current_version npm run edit-toml $PYPROJECT tool.poetry name vectorize-client npm run edit-toml $PYPROJECT tool.poetry description "Python client for the Vectorize API" diff --git a/scripts/generate-ts.sh b/scripts/generate-ts.sh index 2e4716f..4b1c992 100755 --- a/scripts/generate-ts.sh +++ b/scripts/generate-ts.sh @@ -16,6 +16,8 @@ else fi rm -rf $SRC_DIR/ts + +# Generate the client openapi-generator-cli generate -i $ROOT_DIR/vectorize_api.json -g typescript-fetch -o $SRC_DIR/ts \ --additional-properties=npmName=@vectorize-io/vectorize-client \ --additional-properties=licenseName=MIT \ @@ -23,6 +25,9 @@ openapi-generator-cli generate -i $ROOT_DIR/vectorize_api.json -g typescript-fet --additional-properties=snapshot=true \ --additional-properties=generateSourceCodeOnly=false +# Fix the union types +node $ROOT_DIR/scripts/fix-ts-unions.js $SRC_DIR/ts + edit_field() { local field=$1 local value=$2 diff --git a/src/python/README.md b/src/python/README.md index 6138907..0175c9f 100644 --- a/src/python/README.md +++ b/src/python/README.md @@ -1,14 +1,9 @@ -from dataclasses import field - # Vectorize Client -Python Api Client for Vectorize -For more information, please visit [https://vectorize.io](https://vectorize.io) - -## Requirements. +Python Api Client for [Vectorize](https://vectorize.io). +For the full documentation, please visit [docs.vectorize.io](https://docs.vectorize.io/api/api-getting-started). -Python 3.8+ -## Installation & Usage +## Installation ```sh pip install vectorize-client ``` @@ -20,8 +15,7 @@ import vectorize_client ## Getting Started -Please follow the [installation procedure](#installation--usage) and then run the following: - +List all your pipelines: ```python import vectorize_client as v @@ -34,62 +28,5 @@ with v.ApiClient(v.Configuration(access_token=TOKEN)) as api: print("Found" + str(len(response.data)) + " pipelines") ``` -## Documentation for API Endpoints - -All URIs are relative to *https://api.vectorize.io/v1* - -See the full [reference](https://vectorize.readme.io/reference) for more information. - -## Usage - -First, export your token and org id as environment variables: - -```sh -export VECTORIZE_TOKEN= -export VECTORIZE_ORG= -``` -Then, initialize the client with your token and org id: - -```python -import os -TOKEN = os.environ['VECTORIZE_TOKEN'] -ORG = os.environ['VECTORIZE_ORG'] -``` - -### Extraction - -Set the file you want to extract data from: - -```sh -export FILE= -``` - -Then, run the following code: -```python -import os -import vectorize_client as v -import time, logging - -TOKEN = os.environ['VECTORIZE_TOKEN'] -ORG = os.environ['VECTORIZE_ORG'] -FILE = os.environ['FILE'] - -with v.ApiClient(v.Configuration(access_token=TOKEN)) as api: - with open(FILE, 'rb') as file: - data = file.read() - extraction_id = v.ExtractionApi(api).start_extraction(ORG, data).extraction_id - print(f"Extraction started with id {extraction_id}") - while True: - extraction = v.ExtractionApi(api).get_extraction_result(ORG, extraction_id) - if extraction.ready: - extracted_data = extraction.data - if extracted_data.success: - print(extracted_data) - break - else: - raise Exception(extracted_data.error) - print("Waiting for extraction to complete...") - time.sleep(1) -``` - +Visit [docs.vectorize.io](https://docs.vectorize.io/api/api-getting-started) to learn more about the API. diff --git a/src/python/pyproject.toml b/src/python/pyproject.toml index 583791b..953abe0 100644 --- a/src/python/pyproject.toml +++ b/src/python/pyproject.toml @@ -1,34 +1,11 @@ -[project] -name = "vectorize_client" -version = "1.0.0" -description = "Vectorize API (Beta)" -license = "NoLicense" -readme = "README.md" -keywords = [ "OpenAPI", "OpenAPI-Generator", "Vectorize API (Beta)" ] -requires-python = ">=3.9" -dependencies = [ - "urllib3 (>=2.1.0,<3.0.0)", - "python-dateutil (>=2.8.2)", - "pydantic (>=2)", - "typing-extensions (>=4.7.1)" -] - - [[project.authors]] - name = "Vectorize" - email = "team@openapitools.org" - - [project.urls] - Repository = "https://github.com/GIT_USER_ID/GIT_REPO_ID" - [tool.poetry] -requires-poetry = ">=2.0" -version = "0.3.0" name = "vectorize-client" +version = "0.1.0" description = "Python client for the Vectorize API" authors = [ "Vectorize " ] license = "MIT" +readme = "README.md" repository = "https://github.com/vectorize-io/vectorize-clients" -homepage = "https://vectorize.io" keywords = [ "vectorize", "vectorize.io", @@ -36,14 +13,23 @@ keywords = [ "embeddings", "rag" ] +include = [ "vectorize_client/py.typed" ] +homepage = "https://vectorize.io" + + [tool.poetry.dependencies] + python = "^3.9" + urllib3 = ">= 2.1.0, < 3.0.0" + python-dateutil = ">= 2.8.2" + pydantic = ">= 2" + typing-extensions = ">= 4.7.1" -[tool.poetry.group.dev.dependencies] -pytest = ">= 7.2.1" -pytest-cov = ">= 2.8.1" -tox = ">= 3.9.0" -flake8 = ">= 4.0.0" -types-python-dateutil = ">= 2.8.19.14" -mypy = ">= 1.5" + [tool.poetry.dev-dependencies] + pytest = ">= 7.2.1" + pytest-cov = ">= 2.8.1" + tox = ">= 3.9.0" + flake8 = ">= 4.0.0" + types-python-dateutil = ">= 2.8.19.14" + mypy = ">= 1.5" [tool.pylint."MESSAGES CONTROL"] extension-pkg-whitelist = "pydantic" diff --git a/src/python/vectorize_client/__init__.py b/src/python/vectorize_client/__init__.py index 729acaa..bd423f5 100644 --- a/src/python/vectorize_client/__init__.py +++ b/src/python/vectorize_client/__init__.py @@ -3,9 +3,9 @@ # flake8: noqa """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -16,208 +16,257 @@ __version__ = "1.0.0" -# Define package exports -__all__ = [ - "ConnectorsApi", - "ExtractionApi", - "FilesApi", - "PipelinesApi", - "UploadsApi", - "ApiResponse", - "ApiClient", - "Configuration", - "OpenApiException", - "ApiTypeError", - "ApiValueError", - "ApiKeyError", - "ApiAttributeError", - "ApiException", - "AIPlatform", - "AIPlatformConfigSchema", - "AIPlatformSchema", - "AIPlatformType", - "AddUserFromSourceConnectorResponse", - "AddUserToSourceConnectorRequest", - "AddUserToSourceConnectorRequestSelectedFilesValue", - "AdvancedQuery", - "CreateAIPlatformConnector", - "CreateAIPlatformConnectorResponse", - "CreateDestinationConnector", - "CreateDestinationConnectorResponse", - "CreatePipelineResponse", - "CreatePipelineResponseData", - "CreateSourceConnector", - "CreateSourceConnectorResponse", - "CreatedAIPlatformConnector", - "CreatedDestinationConnector", - "CreatedSourceConnector", - "DeepResearchResult", - "DeleteAIPlatformConnectorResponse", - "DeleteDestinationConnectorResponse", - "DeleteFileResponse", - "DeletePipelineResponse", - "DeleteSourceConnectorResponse", - "DestinationConnector", - "DestinationConnectorSchema", - "DestinationConnectorType", - "Document", - "ExtractionChunkingStrategy", - "ExtractionResult", - "ExtractionResultResponse", - "ExtractionType", - "GetAIPlatformConnectors200Response", - "GetDeepResearchResponse", - "GetDestinationConnectors200Response", - "GetPipelineEventsResponse", - "GetPipelineMetricsResponse", - "GetPipelineResponse", - "GetPipelines400Response", - "GetPipelinesResponse", - "GetSourceConnectors200Response", - "GetUploadFilesResponse", - "MetadataExtractionStrategy", - "MetadataExtractionStrategySchema", - "N8NConfig", - "PipelineConfigurationSchema", - "PipelineEvents", - "PipelineListSummary", - "PipelineMetrics", - "PipelineSummary", - "RemoveUserFromSourceConnectorRequest", - "RemoveUserFromSourceConnectorResponse", - "RetrieveContext", - "RetrieveContextMessage", - "RetrieveDocumentsRequest", - "RetrieveDocumentsResponse", - "ScheduleSchema", - "ScheduleSchemaType", - "SourceConnector", - "SourceConnectorSchema", - "SourceConnectorType", - "StartDeepResearchRequest", - "StartDeepResearchResponse", - "StartExtractionRequest", - "StartExtractionResponse", - "StartFileUploadRequest", - "StartFileUploadResponse", - "StartFileUploadToConnectorRequest", - "StartFileUploadToConnectorResponse", - "StartPipelineResponse", - "StopPipelineResponse", - "UpdateAIPlatformConnectorRequest", - "UpdateAIPlatformConnectorResponse", - "UpdateDestinationConnectorRequest", - "UpdateDestinationConnectorResponse", - "UpdateSourceConnectorRequest", - "UpdateSourceConnectorResponse", - "UpdateSourceConnectorResponseData", - "UpdateUserInSourceConnectorRequest", - "UpdateUserInSourceConnectorResponse", - "UpdatedAIPlatformConnectorData", - "UpdatedDestinationConnectorData", - "UploadFile", -] - # import apis into sdk package -from vectorize_client.api.connectors_api import ConnectorsApi as ConnectorsApi -from vectorize_client.api.extraction_api import ExtractionApi as ExtractionApi -from vectorize_client.api.files_api import FilesApi as FilesApi -from vectorize_client.api.pipelines_api import PipelinesApi as PipelinesApi -from vectorize_client.api.uploads_api import UploadsApi as UploadsApi +from vectorize_client.api.ai_platform_connectors_api import AIPlatformConnectorsApi +from vectorize_client.api.destination_connectors_api import DestinationConnectorsApi +from vectorize_client.api.extraction_api import ExtractionApi +from vectorize_client.api.files_api import FilesApi +from vectorize_client.api.pipelines_api import PipelinesApi +from vectorize_client.api.source_connectors_api import SourceConnectorsApi +from vectorize_client.api.uploads_api import UploadsApi # import ApiClient -from vectorize_client.api_response import ApiResponse as ApiResponse -from vectorize_client.api_client import ApiClient as ApiClient -from vectorize_client.configuration import Configuration as Configuration -from vectorize_client.exceptions import OpenApiException as OpenApiException -from vectorize_client.exceptions import ApiTypeError as ApiTypeError -from vectorize_client.exceptions import ApiValueError as ApiValueError -from vectorize_client.exceptions import ApiKeyError as ApiKeyError -from vectorize_client.exceptions import ApiAttributeError as ApiAttributeError -from vectorize_client.exceptions import ApiException as ApiException +from vectorize_client.api_response import ApiResponse +from vectorize_client.api_client import ApiClient +from vectorize_client.configuration import Configuration +from vectorize_client.exceptions import OpenApiException +from vectorize_client.exceptions import ApiTypeError +from vectorize_client.exceptions import ApiValueError +from vectorize_client.exceptions import ApiKeyError +from vectorize_client.exceptions import ApiAttributeError +from vectorize_client.exceptions import ApiException # import models into sdk package -from vectorize_client.models.ai_platform import AIPlatform as AIPlatform -from vectorize_client.models.ai_platform_config_schema import AIPlatformConfigSchema as AIPlatformConfigSchema -from vectorize_client.models.ai_platform_schema import AIPlatformSchema as AIPlatformSchema -from vectorize_client.models.ai_platform_type import AIPlatformType as AIPlatformType -from vectorize_client.models.add_user_from_source_connector_response import AddUserFromSourceConnectorResponse as AddUserFromSourceConnectorResponse -from vectorize_client.models.add_user_to_source_connector_request import AddUserToSourceConnectorRequest as AddUserToSourceConnectorRequest -from vectorize_client.models.add_user_to_source_connector_request_selected_files_value import AddUserToSourceConnectorRequestSelectedFilesValue as AddUserToSourceConnectorRequestSelectedFilesValue -from vectorize_client.models.advanced_query import AdvancedQuery as AdvancedQuery -from vectorize_client.models.create_ai_platform_connector import CreateAIPlatformConnector as CreateAIPlatformConnector -from vectorize_client.models.create_ai_platform_connector_response import CreateAIPlatformConnectorResponse as CreateAIPlatformConnectorResponse -from vectorize_client.models.create_destination_connector import CreateDestinationConnector as CreateDestinationConnector -from vectorize_client.models.create_destination_connector_response import CreateDestinationConnectorResponse as CreateDestinationConnectorResponse -from vectorize_client.models.create_pipeline_response import CreatePipelineResponse as CreatePipelineResponse -from vectorize_client.models.create_pipeline_response_data import CreatePipelineResponseData as CreatePipelineResponseData -from vectorize_client.models.create_source_connector import CreateSourceConnector as CreateSourceConnector -from vectorize_client.models.create_source_connector_response import CreateSourceConnectorResponse as CreateSourceConnectorResponse -from vectorize_client.models.created_ai_platform_connector import CreatedAIPlatformConnector as CreatedAIPlatformConnector -from vectorize_client.models.created_destination_connector import CreatedDestinationConnector as CreatedDestinationConnector -from vectorize_client.models.created_source_connector import CreatedSourceConnector as CreatedSourceConnector -from vectorize_client.models.deep_research_result import DeepResearchResult as DeepResearchResult -from vectorize_client.models.delete_ai_platform_connector_response import DeleteAIPlatformConnectorResponse as DeleteAIPlatformConnectorResponse -from vectorize_client.models.delete_destination_connector_response import DeleteDestinationConnectorResponse as DeleteDestinationConnectorResponse -from vectorize_client.models.delete_file_response import DeleteFileResponse as DeleteFileResponse -from vectorize_client.models.delete_pipeline_response import DeletePipelineResponse as DeletePipelineResponse -from vectorize_client.models.delete_source_connector_response import DeleteSourceConnectorResponse as DeleteSourceConnectorResponse -from vectorize_client.models.destination_connector import DestinationConnector as DestinationConnector -from vectorize_client.models.destination_connector_schema import DestinationConnectorSchema as DestinationConnectorSchema -from vectorize_client.models.destination_connector_type import DestinationConnectorType as DestinationConnectorType -from vectorize_client.models.document import Document as Document -from vectorize_client.models.extraction_chunking_strategy import ExtractionChunkingStrategy as ExtractionChunkingStrategy -from vectorize_client.models.extraction_result import ExtractionResult as ExtractionResult -from vectorize_client.models.extraction_result_response import ExtractionResultResponse as ExtractionResultResponse -from vectorize_client.models.extraction_type import ExtractionType as ExtractionType -from vectorize_client.models.get_ai_platform_connectors200_response import GetAIPlatformConnectors200Response as GetAIPlatformConnectors200Response -from vectorize_client.models.get_deep_research_response import GetDeepResearchResponse as GetDeepResearchResponse -from vectorize_client.models.get_destination_connectors200_response import GetDestinationConnectors200Response as GetDestinationConnectors200Response -from vectorize_client.models.get_pipeline_events_response import GetPipelineEventsResponse as GetPipelineEventsResponse -from vectorize_client.models.get_pipeline_metrics_response import GetPipelineMetricsResponse as GetPipelineMetricsResponse -from vectorize_client.models.get_pipeline_response import GetPipelineResponse as GetPipelineResponse -from vectorize_client.models.get_pipelines400_response import GetPipelines400Response as GetPipelines400Response -from vectorize_client.models.get_pipelines_response import GetPipelinesResponse as GetPipelinesResponse -from vectorize_client.models.get_source_connectors200_response import GetSourceConnectors200Response as GetSourceConnectors200Response -from vectorize_client.models.get_upload_files_response import GetUploadFilesResponse as GetUploadFilesResponse -from vectorize_client.models.metadata_extraction_strategy import MetadataExtractionStrategy as MetadataExtractionStrategy -from vectorize_client.models.metadata_extraction_strategy_schema import MetadataExtractionStrategySchema as MetadataExtractionStrategySchema -from vectorize_client.models.n8_n_config import N8NConfig as N8NConfig -from vectorize_client.models.pipeline_configuration_schema import PipelineConfigurationSchema as PipelineConfigurationSchema -from vectorize_client.models.pipeline_events import PipelineEvents as PipelineEvents -from vectorize_client.models.pipeline_list_summary import PipelineListSummary as PipelineListSummary -from vectorize_client.models.pipeline_metrics import PipelineMetrics as PipelineMetrics -from vectorize_client.models.pipeline_summary import PipelineSummary as PipelineSummary -from vectorize_client.models.remove_user_from_source_connector_request import RemoveUserFromSourceConnectorRequest as RemoveUserFromSourceConnectorRequest -from vectorize_client.models.remove_user_from_source_connector_response import RemoveUserFromSourceConnectorResponse as RemoveUserFromSourceConnectorResponse -from vectorize_client.models.retrieve_context import RetrieveContext as RetrieveContext -from vectorize_client.models.retrieve_context_message import RetrieveContextMessage as RetrieveContextMessage -from vectorize_client.models.retrieve_documents_request import RetrieveDocumentsRequest as RetrieveDocumentsRequest -from vectorize_client.models.retrieve_documents_response import RetrieveDocumentsResponse as RetrieveDocumentsResponse -from vectorize_client.models.schedule_schema import ScheduleSchema as ScheduleSchema -from vectorize_client.models.schedule_schema_type import ScheduleSchemaType as ScheduleSchemaType -from vectorize_client.models.source_connector import SourceConnector as SourceConnector -from vectorize_client.models.source_connector_schema import SourceConnectorSchema as SourceConnectorSchema -from vectorize_client.models.source_connector_type import SourceConnectorType as SourceConnectorType -from vectorize_client.models.start_deep_research_request import StartDeepResearchRequest as StartDeepResearchRequest -from vectorize_client.models.start_deep_research_response import StartDeepResearchResponse as StartDeepResearchResponse -from vectorize_client.models.start_extraction_request import StartExtractionRequest as StartExtractionRequest -from vectorize_client.models.start_extraction_response import StartExtractionResponse as StartExtractionResponse -from vectorize_client.models.start_file_upload_request import StartFileUploadRequest as StartFileUploadRequest -from vectorize_client.models.start_file_upload_response import StartFileUploadResponse as StartFileUploadResponse -from vectorize_client.models.start_file_upload_to_connector_request import StartFileUploadToConnectorRequest as StartFileUploadToConnectorRequest -from vectorize_client.models.start_file_upload_to_connector_response import StartFileUploadToConnectorResponse as StartFileUploadToConnectorResponse -from vectorize_client.models.start_pipeline_response import StartPipelineResponse as StartPipelineResponse -from vectorize_client.models.stop_pipeline_response import StopPipelineResponse as StopPipelineResponse -from vectorize_client.models.update_ai_platform_connector_request import UpdateAIPlatformConnectorRequest as UpdateAIPlatformConnectorRequest -from vectorize_client.models.update_ai_platform_connector_response import UpdateAIPlatformConnectorResponse as UpdateAIPlatformConnectorResponse -from vectorize_client.models.update_destination_connector_request import UpdateDestinationConnectorRequest as UpdateDestinationConnectorRequest -from vectorize_client.models.update_destination_connector_response import UpdateDestinationConnectorResponse as UpdateDestinationConnectorResponse -from vectorize_client.models.update_source_connector_request import UpdateSourceConnectorRequest as UpdateSourceConnectorRequest -from vectorize_client.models.update_source_connector_response import UpdateSourceConnectorResponse as UpdateSourceConnectorResponse -from vectorize_client.models.update_source_connector_response_data import UpdateSourceConnectorResponseData as UpdateSourceConnectorResponseData -from vectorize_client.models.update_user_in_source_connector_request import UpdateUserInSourceConnectorRequest as UpdateUserInSourceConnectorRequest -from vectorize_client.models.update_user_in_source_connector_response import UpdateUserInSourceConnectorResponse as UpdateUserInSourceConnectorResponse -from vectorize_client.models.updated_ai_platform_connector_data import UpdatedAIPlatformConnectorData as UpdatedAIPlatformConnectorData -from vectorize_client.models.updated_destination_connector_data import UpdatedDestinationConnectorData as UpdatedDestinationConnectorData -from vectorize_client.models.upload_file import UploadFile as UploadFile +from vectorize_client.models.ai_platform import AIPlatform +from vectorize_client.models.ai_platform_config_schema import AIPlatformConfigSchema +from vectorize_client.models.ai_platform_connector_input import AIPlatformConnectorInput +from vectorize_client.models.ai_platform_connector_schema import AIPlatformConnectorSchema +from vectorize_client.models.ai_platform_type import AIPlatformType +from vectorize_client.models.ai_platform_type_for_pipeline import AIPlatformTypeForPipeline +from vectorize_client.models.awss3_auth_config import AWSS3AuthConfig +from vectorize_client.models.awss3_config import AWSS3Config +from vectorize_client.models.azureaisearch_auth_config import AZUREAISEARCHAuthConfig +from vectorize_client.models.azureaisearch_config import AZUREAISEARCHConfig +from vectorize_client.models.azureblob_auth_config import AZUREBLOBAuthConfig +from vectorize_client.models.azureblob_config import AZUREBLOBConfig +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.add_user_to_source_connector_request_selected_files import AddUserToSourceConnectorRequestSelectedFiles +from vectorize_client.models.add_user_to_source_connector_request_selected_files_any_of import AddUserToSourceConnectorRequestSelectedFilesAnyOf +from vectorize_client.models.add_user_to_source_connector_request_selected_files_any_of_value import AddUserToSourceConnectorRequestSelectedFilesAnyOfValue +from vectorize_client.models.aws_s3 import AwsS3 +from vectorize_client.models.aws_s31 import AwsS31 +from vectorize_client.models.azure_blob import AzureBlob +from vectorize_client.models.azure_blob1 import AzureBlob1 +from vectorize_client.models.azureaisearch import Azureaisearch +from vectorize_client.models.azureaisearch1 import Azureaisearch1 +from vectorize_client.models.bedrock_auth_config import BEDROCKAuthConfig +from vectorize_client.models.bedrock import Bedrock +from vectorize_client.models.bedrock1 import Bedrock1 +from vectorize_client.models.capella_auth_config import CAPELLAAuthConfig +from vectorize_client.models.capella_config import CAPELLAConfig +from vectorize_client.models.confluence_auth_config import CONFLUENCEAuthConfig +from vectorize_client.models.confluence_config import CONFLUENCEConfig +from vectorize_client.models.capella import Capella +from vectorize_client.models.capella1 import Capella1 +from vectorize_client.models.confluence import Confluence +from vectorize_client.models.confluence1 import Confluence1 +from vectorize_client.models.create_ai_platform_connector_request import CreateAIPlatformConnectorRequest +from vectorize_client.models.create_ai_platform_connector_response import CreateAIPlatformConnectorResponse +from vectorize_client.models.create_destination_connector_request import CreateDestinationConnectorRequest +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_request import CreateSourceConnectorRequest +from vectorize_client.models.create_source_connector_response import CreateSourceConnectorResponse +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.datastax_auth_config import DATASTAXAuthConfig +from vectorize_client.models.datastax_config import DATASTAXConfig +from vectorize_client.models.discord_auth_config import DISCORDAuthConfig +from vectorize_client.models.discord_config import DISCORDConfig +from vectorize_client.models.dropbox_auth_config import DROPBOXAuthConfig +from vectorize_client.models.dropbox_config import DROPBOXConfig +from vectorize_client.models.dropboxoauth_auth_config import DROPBOXOAUTHAuthConfig +from vectorize_client.models.dropboxoauthmulti_auth_config import DROPBOXOAUTHMULTIAuthConfig +from vectorize_client.models.dropboxoauthmulticustom_auth_config import DROPBOXOAUTHMULTICUSTOMAuthConfig +from vectorize_client.models.datastax import Datastax +from vectorize_client.models.datastax1 import Datastax1 +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 +from vectorize_client.models.delete_pipeline_response import DeletePipelineResponse +from vectorize_client.models.delete_source_connector_response import DeleteSourceConnectorResponse +from vectorize_client.models.destination_connector import DestinationConnector +from vectorize_client.models.destination_connector_input import DestinationConnectorInput +from vectorize_client.models.destination_connector_input_config import DestinationConnectorInputConfig +from vectorize_client.models.destination_connector_schema import DestinationConnectorSchema +from vectorize_client.models.destination_connector_type import DestinationConnectorType +from vectorize_client.models.destination_connector_type_for_pipeline import DestinationConnectorTypeForPipeline +from vectorize_client.models.discord import Discord +from vectorize_client.models.discord1 import Discord1 +from vectorize_client.models.document import Document +from vectorize_client.models.dropbox import Dropbox +from vectorize_client.models.dropbox_oauth import DropboxOauth +from vectorize_client.models.dropbox_oauth_multi import DropboxOauthMulti +from vectorize_client.models.dropbox_oauth_multi_custom import DropboxOauthMultiCustom +from vectorize_client.models.elastic_auth_config import ELASTICAuthConfig +from vectorize_client.models.elastic_config import ELASTICConfig +from vectorize_client.models.elastic import Elastic +from vectorize_client.models.elastic1 import Elastic1 +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_type import ExtractionType +from vectorize_client.models.fileupload_auth_config import FILEUPLOADAuthConfig +from vectorize_client.models.firecrawl_auth_config import FIRECRAWLAuthConfig +from vectorize_client.models.firecrawl_config import FIRECRAWLConfig +from vectorize_client.models.fireflies_auth_config import FIREFLIESAuthConfig +from vectorize_client.models.fireflies_config import FIREFLIESConfig +from vectorize_client.models.file_upload import FileUpload +from vectorize_client.models.file_upload1 import FileUpload1 +from vectorize_client.models.firecrawl import Firecrawl +from vectorize_client.models.firecrawl1 import Firecrawl1 +from vectorize_client.models.fireflies import Fireflies +from vectorize_client.models.fireflies1 import Fireflies1 +from vectorize_client.models.gcs_auth_config import GCSAuthConfig +from vectorize_client.models.gcs_config import GCSConfig +from vectorize_client.models.github_auth_config import GITHUBAuthConfig +from vectorize_client.models.github_config import GITHUBConfig +from vectorize_client.models.gmail_auth_config import GMAILAuthConfig +from vectorize_client.models.gmail_config import GMAILConfig +from vectorize_client.models.googledrive_auth_config import GOOGLEDRIVEAuthConfig +from vectorize_client.models.googledrive_config import GOOGLEDRIVEConfig +from vectorize_client.models.googledriveoauth_auth_config import GOOGLEDRIVEOAUTHAuthConfig +from vectorize_client.models.googledriveoauth_config import GOOGLEDRIVEOAUTHConfig +from vectorize_client.models.googledriveoauthmulti_auth_config import GOOGLEDRIVEOAUTHMULTIAuthConfig +from vectorize_client.models.googledriveoauthmulticustom_auth_config import GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig +from vectorize_client.models.googledriveoauthmulticustom_config import GOOGLEDRIVEOAUTHMULTICUSTOMConfig +from vectorize_client.models.googledriveoauthmulti_config import GOOGLEDRIVEOAUTHMULTIConfig +from vectorize_client.models.gcs import Gcs +from vectorize_client.models.gcs1 import Gcs1 +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_destination_connectors200_response import GetDestinationConnectors200Response +from vectorize_client.models.get_pipeline_events_response import GetPipelineEventsResponse +from vectorize_client.models.get_pipeline_metrics_response import GetPipelineMetricsResponse +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.github import Github +from vectorize_client.models.github1 import Github1 +from vectorize_client.models.google_drive import GoogleDrive +from vectorize_client.models.google_drive1 import GoogleDrive1 +from vectorize_client.models.google_drive_oauth import GoogleDriveOauth +from vectorize_client.models.google_drive_oauth_multi import GoogleDriveOauthMulti +from vectorize_client.models.google_drive_oauth_multi_custom import GoogleDriveOauthMultiCustom +from vectorize_client.models.intercom_auth_config import INTERCOMAuthConfig +from vectorize_client.models.intercom_config import INTERCOMConfig +from vectorize_client.models.intercom import Intercom +from vectorize_client.models.milvus_auth_config import MILVUSAuthConfig +from vectorize_client.models.milvus_config import MILVUSConfig +from vectorize_client.models.metadata_extraction_strategy import MetadataExtractionStrategy +from vectorize_client.models.metadata_extraction_strategy_schema import MetadataExtractionStrategySchema +from vectorize_client.models.milvus import Milvus +from vectorize_client.models.milvus1 import Milvus1 +from vectorize_client.models.n8_n_config import N8NConfig +from vectorize_client.models.notion_auth_config import NOTIONAuthConfig +from vectorize_client.models.notion_config import NOTIONConfig +from vectorize_client.models.notionoauthmulti_auth_config import NOTIONOAUTHMULTIAuthConfig +from vectorize_client.models.notionoauthmulticustom_auth_config import NOTIONOAUTHMULTICUSTOMAuthConfig +from vectorize_client.models.notion import Notion +from vectorize_client.models.notion_oauth_multi import NotionOauthMulti +from vectorize_client.models.notion_oauth_multi_custom import NotionOauthMultiCustom +from vectorize_client.models.onedrive_auth_config import ONEDRIVEAuthConfig +from vectorize_client.models.onedrive_config import ONEDRIVEConfig +from vectorize_client.models.openai_auth_config import OPENAIAuthConfig +from vectorize_client.models.one_drive import OneDrive +from vectorize_client.models.one_drive1 import OneDrive1 +from vectorize_client.models.openai import Openai +from vectorize_client.models.openai1 import Openai1 +from vectorize_client.models.pinecone_auth_config import PINECONEAuthConfig +from vectorize_client.models.pinecone_config import PINECONEConfig +from vectorize_client.models.postgresql_auth_config import POSTGRESQLAuthConfig +from vectorize_client.models.postgresql_config import POSTGRESQLConfig +from vectorize_client.models.pinecone import Pinecone +from vectorize_client.models.pinecone1 import Pinecone1 +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.postgresql import Postgresql +from vectorize_client.models.postgresql1 import Postgresql1 +from vectorize_client.models.qdrant_auth_config import QDRANTAuthConfig +from vectorize_client.models.qdrant_config import QDRANTConfig +from vectorize_client.models.qdrant import Qdrant +from vectorize_client.models.qdrant1 import Qdrant1 +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_response import RetrieveDocumentsResponse +from vectorize_client.models.sharepoint_auth_config import SHAREPOINTAuthConfig +from vectorize_client.models.sharepoint_config import SHAREPOINTConfig +from vectorize_client.models.singlestore_auth_config import SINGLESTOREAuthConfig +from vectorize_client.models.singlestore_config import SINGLESTOREConfig +from vectorize_client.models.supabase_auth_config import SUPABASEAuthConfig +from vectorize_client.models.supabase_config import SUPABASEConfig +from vectorize_client.models.schedule_schema import ScheduleSchema +from vectorize_client.models.schedule_schema_type import ScheduleSchemaType +from vectorize_client.models.sharepoint import Sharepoint +from vectorize_client.models.sharepoint1 import Sharepoint1 +from vectorize_client.models.singlestore import Singlestore +from vectorize_client.models.singlestore1 import Singlestore1 +from vectorize_client.models.source_connector import SourceConnector +from vectorize_client.models.source_connector_input import SourceConnectorInput +from vectorize_client.models.source_connector_input_config import SourceConnectorInputConfig +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_response import StartDeepResearchResponse +from vectorize_client.models.start_extraction_request import StartExtractionRequest +from vectorize_client.models.start_extraction_response import StartExtractionResponse +from vectorize_client.models.start_file_upload_request import StartFileUploadRequest +from vectorize_client.models.start_file_upload_response import StartFileUploadResponse +from vectorize_client.models.start_file_upload_to_connector_request import StartFileUploadToConnectorRequest +from vectorize_client.models.start_file_upload_to_connector_response import StartFileUploadToConnectorResponse +from vectorize_client.models.start_pipeline_response import StartPipelineResponse +from vectorize_client.models.stop_pipeline_response import StopPipelineResponse +from vectorize_client.models.supabase import Supabase +from vectorize_client.models.supabase1 import Supabase1 +from vectorize_client.models.turbopuffer_auth_config import TURBOPUFFERAuthConfig +from vectorize_client.models.turbopuffer_config import TURBOPUFFERConfig +from vectorize_client.models.turbopuffer import Turbopuffer +from vectorize_client.models.turbopuffer1 import Turbopuffer1 +from vectorize_client.models.update_ai_platform_connector_request import UpdateAIPlatformConnectorRequest +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_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 +from vectorize_client.models.vertex_auth_config import VERTEXAuthConfig +from vectorize_client.models.voyage_auth_config import VOYAGEAuthConfig +from vectorize_client.models.vertex import Vertex +from vectorize_client.models.vertex1 import Vertex1 +from vectorize_client.models.voyage import Voyage +from vectorize_client.models.voyage1 import Voyage1 +from vectorize_client.models.weaviate_auth_config import WEAVIATEAuthConfig +from vectorize_client.models.weaviate_config import WEAVIATEConfig +from vectorize_client.models.webcrawler_auth_config import WEBCRAWLERAuthConfig +from vectorize_client.models.webcrawler_config import WEBCRAWLERConfig +from vectorize_client.models.weaviate import Weaviate +from vectorize_client.models.weaviate1 import Weaviate1 +from vectorize_client.models.web_crawler import WebCrawler +from vectorize_client.models.web_crawler1 import WebCrawler1 diff --git a/src/python/vectorize_client/api/__init__.py b/src/python/vectorize_client/api/__init__.py index a9f74c1..36c4640 100644 --- a/src/python/vectorize_client/api/__init__.py +++ b/src/python/vectorize_client/api/__init__.py @@ -1,9 +1,11 @@ # flake8: noqa # import apis into api package -from vectorize_client.api.connectors_api import ConnectorsApi +from vectorize_client.api.ai_platform_connectors_api import AIPlatformConnectorsApi +from vectorize_client.api.destination_connectors_api import DestinationConnectorsApi from vectorize_client.api.extraction_api import ExtractionApi from vectorize_client.api.files_api import FilesApi from vectorize_client.api.pipelines_api import PipelinesApi +from vectorize_client.api.source_connectors_api import SourceConnectorsApi from vectorize_client.api.uploads_api import UploadsApi diff --git a/src/python/vectorize_client/api/ai_platform_connectors_api.py b/src/python/vectorize_client/api/ai_platform_connectors_api.py new file mode 100644 index 0000000..9af9afd --- /dev/null +++ b/src/python/vectorize_client/api/ai_platform_connectors_api.py @@ -0,0 +1,1524 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import StrictStr +from vectorize_client.models.ai_platform import AIPlatform +from vectorize_client.models.create_ai_platform_connector_request import CreateAIPlatformConnectorRequest +from vectorize_client.models.create_ai_platform_connector_response import CreateAIPlatformConnectorResponse +from vectorize_client.models.delete_ai_platform_connector_response import DeleteAIPlatformConnectorResponse +from vectorize_client.models.get_ai_platform_connectors200_response import GetAIPlatformConnectors200Response +from vectorize_client.models.update_ai_platform_connector_request import UpdateAIPlatformConnectorRequest +from vectorize_client.models.update_ai_platform_connector_response import UpdateAIPlatformConnectorResponse + +from vectorize_client.api_client import ApiClient, RequestSerialized +from vectorize_client.api_response import ApiResponse +from vectorize_client.rest import RESTResponseType + + +class AIPlatformConnectorsApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def create_ai_platform_connector( + self, + organization_id: StrictStr, + create_ai_platform_connector_request: CreateAIPlatformConnectorRequest, + _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, + ) -> CreateAIPlatformConnectorResponse: + """Create a new AI platform connector + + Creates a new AI platform connector for embeddings and processing. The specific configuration fields required depend on the platform type selected. + + :param organization_id: (required) + :type organization_id: str + :param create_ai_platform_connector_request: (required) + :type create_ai_platform_connector_request: CreateAIPlatformConnectorRequest + :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._create_ai_platform_connector_serialize( + organization_id=organization_id, + create_ai_platform_connector_request=create_ai_platform_connector_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "CreateAIPlatformConnectorResponse", + '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 create_ai_platform_connector_with_http_info( + self, + organization_id: StrictStr, + create_ai_platform_connector_request: CreateAIPlatformConnectorRequest, + _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[CreateAIPlatformConnectorResponse]: + """Create a new AI platform connector + + Creates a new AI platform connector for embeddings and processing. The specific configuration fields required depend on the platform type selected. + + :param organization_id: (required) + :type organization_id: str + :param create_ai_platform_connector_request: (required) + :type create_ai_platform_connector_request: CreateAIPlatformConnectorRequest + :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._create_ai_platform_connector_serialize( + organization_id=organization_id, + create_ai_platform_connector_request=create_ai_platform_connector_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "CreateAIPlatformConnectorResponse", + '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 create_ai_platform_connector_without_preload_content( + self, + organization_id: StrictStr, + create_ai_platform_connector_request: CreateAIPlatformConnectorRequest, + _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: + """Create a new AI platform connector + + Creates a new AI platform connector for embeddings and processing. The specific configuration fields required depend on the platform type selected. + + :param organization_id: (required) + :type organization_id: str + :param create_ai_platform_connector_request: (required) + :type create_ai_platform_connector_request: CreateAIPlatformConnectorRequest + :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._create_ai_platform_connector_serialize( + organization_id=organization_id, + create_ai_platform_connector_request=create_ai_platform_connector_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "CreateAIPlatformConnectorResponse", + '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 _create_ai_platform_connector_serialize( + self, + organization_id, + create_ai_platform_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_id is not None: + _path_params['organizationId'] = organization_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if create_ai_platform_connector_request is not None: + _body_params = create_ai_platform_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='POST', + resource_path='/org/{organizationId}/connectors/aiplatforms', + 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_ai_platform( + self, + organization_id: StrictStr, + ai_platform_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, + ) -> DeleteAIPlatformConnectorResponse: + """Delete an AI platform connector + + Delete an AI platform connector + + :param organization_id: (required) + :type organization_id: str + :param ai_platform_connector_id: (required) + :type ai_platform_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_ai_platform_serialize( + organization_id=organization_id, + ai_platform_connector_id=ai_platform_connector_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeleteAIPlatformConnectorResponse", + '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_ai_platform_with_http_info( + self, + organization_id: StrictStr, + ai_platform_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[DeleteAIPlatformConnectorResponse]: + """Delete an AI platform connector + + Delete an AI platform connector + + :param organization_id: (required) + :type organization_id: str + :param ai_platform_connector_id: (required) + :type ai_platform_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_ai_platform_serialize( + organization_id=organization_id, + ai_platform_connector_id=ai_platform_connector_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeleteAIPlatformConnectorResponse", + '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_ai_platform_without_preload_content( + self, + organization_id: StrictStr, + ai_platform_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 an AI platform connector + + Delete an AI platform connector + + :param organization_id: (required) + :type organization_id: str + :param ai_platform_connector_id: (required) + :type ai_platform_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_ai_platform_serialize( + organization_id=organization_id, + ai_platform_connector_id=ai_platform_connector_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeleteAIPlatformConnectorResponse", + '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_ai_platform_serialize( + self, + organization_id, + ai_platform_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_id is not None: + _path_params['organizationId'] = organization_id + if ai_platform_connector_id is not None: + _path_params['aiPlatformConnectorId'] = ai_platform_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/{organizationId}/connectors/aiplatforms/{aiPlatformConnectorId}', + 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_id: StrictStr, + ai_platform_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, + ) -> AIPlatform: + """Get an AI platform connector + + Get an AI platform connector + + :param organization_id: (required) + :type organization_id: str + :param ai_platform_connector_id: (required) + :type ai_platform_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._get_ai_platform_connector_serialize( + organization_id=organization_id, + ai_platform_connector_id=ai_platform_connector_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_id: StrictStr, + ai_platform_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[AIPlatform]: + """Get an AI platform connector + + Get an AI platform connector + + :param organization_id: (required) + :type organization_id: str + :param ai_platform_connector_id: (required) + :type ai_platform_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._get_ai_platform_connector_serialize( + organization_id=organization_id, + ai_platform_connector_id=ai_platform_connector_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_id: StrictStr, + ai_platform_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: + """Get an AI platform connector + + Get an AI platform connector + + :param organization_id: (required) + :type organization_id: str + :param ai_platform_connector_id: (required) + :type ai_platform_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._get_ai_platform_connector_serialize( + organization_id=organization_id, + ai_platform_connector_id=ai_platform_connector_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_id, + ai_platform_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_id is not None: + _path_params['organizationId'] = organization_id + if ai_platform_connector_id is not None: + _path_params['aiPlatformConnectorId'] = ai_platform_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='GET', + resource_path='/org/{organizationId}/connectors/aiplatforms/{aiPlatformConnectorId}', + 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_connectors( + self, + organization_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, + ) -> GetAIPlatformConnectors200Response: + """Get all existing AI Platform connectors + + Get all existing AI Platform connectors + + :param organization_id: (required) + :type organization_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_connectors_serialize( + organization_id=organization_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetAIPlatformConnectors200Response", + '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_connectors_with_http_info( + self, + organization_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[GetAIPlatformConnectors200Response]: + """Get all existing AI Platform connectors + + Get all existing AI Platform connectors + + :param organization_id: (required) + :type organization_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_connectors_serialize( + organization_id=organization_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetAIPlatformConnectors200Response", + '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_connectors_without_preload_content( + self, + organization_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 all existing AI Platform connectors + + Get all existing AI Platform connectors + + :param organization_id: (required) + :type organization_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_connectors_serialize( + organization_id=organization_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetAIPlatformConnectors200Response", + '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_connectors_serialize( + self, + organization_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_id is not None: + _path_params['organizationId'] = organization_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='GET', + resource_path='/org/{organizationId}/connectors/aiplatforms', + 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 update_ai_platform_connector( + self, + organization_id: StrictStr, + ai_platform_connector_id: StrictStr, + update_ai_platform_connector_request: UpdateAIPlatformConnectorRequest, + _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, + ) -> UpdateAIPlatformConnectorResponse: + """Update an AI Platform connector + + Update an AI Platform connector + + :param organization_id: (required) + :type organization_id: str + :param ai_platform_connector_id: (required) + :type ai_platform_connector_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 + (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._update_ai_platform_connector_serialize( + organization_id=organization_id, + ai_platform_connector_id=ai_platform_connector_id, + update_ai_platform_connector_request=update_ai_platform_connector_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "UpdateAIPlatformConnectorResponse", + '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 update_ai_platform_connector_with_http_info( + self, + organization_id: StrictStr, + ai_platform_connector_id: StrictStr, + update_ai_platform_connector_request: UpdateAIPlatformConnectorRequest, + _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[UpdateAIPlatformConnectorResponse]: + """Update an AI Platform connector + + Update an AI Platform connector + + :param organization_id: (required) + :type organization_id: str + :param ai_platform_connector_id: (required) + :type ai_platform_connector_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 + (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._update_ai_platform_connector_serialize( + organization_id=organization_id, + ai_platform_connector_id=ai_platform_connector_id, + update_ai_platform_connector_request=update_ai_platform_connector_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "UpdateAIPlatformConnectorResponse", + '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 update_ai_platform_connector_without_preload_content( + self, + organization_id: StrictStr, + ai_platform_connector_id: StrictStr, + update_ai_platform_connector_request: UpdateAIPlatformConnectorRequest, + _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: + """Update an AI Platform connector + + Update an AI Platform connector + + :param organization_id: (required) + :type organization_id: str + :param ai_platform_connector_id: (required) + :type ai_platform_connector_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 + (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._update_ai_platform_connector_serialize( + organization_id=organization_id, + ai_platform_connector_id=ai_platform_connector_id, + update_ai_platform_connector_request=update_ai_platform_connector_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "UpdateAIPlatformConnectorResponse", + '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 _update_ai_platform_connector_serialize( + self, + organization_id, + ai_platform_connector_id, + update_ai_platform_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_id is not None: + _path_params['organizationId'] = organization_id + if ai_platform_connector_id is not None: + _path_params['aiPlatformConnectorId'] = ai_platform_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 + + + # 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='PATCH', + resource_path='/org/{organizationId}/connectors/aiplatforms/{aiPlatformConnectorId}', + 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 + ) + + diff --git a/src/python/vectorize_client/api/connectors_api.py b/src/python/vectorize_client/api/connectors_api.py deleted file mode 100644 index 995bf44..0000000 --- a/src/python/vectorize_client/api/connectors_api.py +++ /dev/null @@ -1,5414 +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 - -import warnings -from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing_extensions import Annotated - -from pydantic import Field, StrictStr -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 -from vectorize_client.models.delete_source_connector_response import DeleteSourceConnectorResponse -from vectorize_client.models.destination_connector import DestinationConnector -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_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 -from vectorize_client.rest import RESTResponseType - - -class ConnectorsApi: - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - def __init__(self, api_client=None) -> None: - if api_client is None: - api_client = ApiClient.get_default() - self.api_client = api_client - - - @validate_call - def add_user_to_source_connector( - self, - organization: StrictStr, - source_connector_id: StrictStr, - add_user_to_source_connector_request: AddUserToSourceConnectorRequest, - _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, - ) -> AddUserFromSourceConnectorResponse: - """Add a user to a source connector - - - :param organization: (required) - :type organization: str - :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 - (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._add_user_to_source_connector_serialize( - organization=organization, - 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, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AddUserFromSourceConnectorResponse", - '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 add_user_to_source_connector_with_http_info( - self, - organization: StrictStr, - source_connector_id: StrictStr, - add_user_to_source_connector_request: AddUserToSourceConnectorRequest, - _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[AddUserFromSourceConnectorResponse]: - """Add a user to a source connector - - - :param organization: (required) - :type organization: str - :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 - (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._add_user_to_source_connector_serialize( - organization=organization, - 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, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AddUserFromSourceConnectorResponse", - '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 add_user_to_source_connector_without_preload_content( - self, - organization: StrictStr, - source_connector_id: StrictStr, - add_user_to_source_connector_request: AddUserToSourceConnectorRequest, - _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: - """Add a user to a source connector - - - :param organization: (required) - :type organization: str - :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 - (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._add_user_to_source_connector_serialize( - organization=organization, - 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, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "AddUserFromSourceConnectorResponse", - '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 _add_user_to_source_connector_serialize( - self, - organization, - source_connector_id, - add_user_to_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 add_user_to_source_connector_request is not None: - _body_params = add_user_to_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='POST', - 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 create_ai_platform_connector( - self, - organization: StrictStr, - create_ai_platform_connector: Annotated[List[CreateAIPlatformConnector], Field(min_length=1)], - _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, - ) -> 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, 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) - :type organization: str - :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 - (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._create_ai_platform_connector_serialize( - organization=organization, - create_ai_platform_connector=create_ai_platform_connector, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateAIPlatformConnectorResponse", - '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 create_ai_platform_connector_with_http_info( - self, - organization: StrictStr, - create_ai_platform_connector: Annotated[List[CreateAIPlatformConnector], Field(min_length=1)], - _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[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, 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) - :type organization: str - :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 - (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._create_ai_platform_connector_serialize( - organization=organization, - create_ai_platform_connector=create_ai_platform_connector, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateAIPlatformConnectorResponse", - '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 create_ai_platform_connector_without_preload_content( - self, - organization: StrictStr, - create_ai_platform_connector: Annotated[List[CreateAIPlatformConnector], Field(min_length=1)], - _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: - """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) - :type organization: str - :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 - (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._create_ai_platform_connector_serialize( - organization=organization, - create_ai_platform_connector=create_ai_platform_connector, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateAIPlatformConnectorResponse", - '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 _create_ai_platform_connector_serialize( - self, - organization, - create_ai_platform_connector, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - 'CreateAIPlatformConnector': '', - } - - _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 - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if create_ai_platform_connector is not None: - _body_params = create_ai_platform_connector - - - # 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='POST', - resource_path='/org/{organization}/connectors/aiplatforms', - 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 create_destination_connector( - self, - organization: StrictStr, - create_destination_connector: Annotated[List[CreateDestinationConnector], Field(min_length=1)], - _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, - ) -> 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) | Supabase (SUPABASE): Name (name): text, Host (host): text, Port (port): number, Database (database): text, Username (username): text, Password (password): 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 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 - (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._create_destination_connector_serialize( - organization=organization, - create_destination_connector=create_destination_connector, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateDestinationConnectorResponse", - '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 create_destination_connector_with_http_info( - self, - organization: StrictStr, - create_destination_connector: Annotated[List[CreateDestinationConnector], Field(min_length=1)], - _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[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) | Supabase (SUPABASE): Name (name): text, Host (host): text, Port (port): number, Database (database): text, Username (username): text, Password (password): 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 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 - (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._create_destination_connector_serialize( - organization=organization, - create_destination_connector=create_destination_connector, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateDestinationConnectorResponse", - '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 create_destination_connector_without_preload_content( - self, - organization: StrictStr, - create_destination_connector: Annotated[List[CreateDestinationConnector], Field(min_length=1)], - _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: - """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) | Supabase (SUPABASE): Name (name): text, Host (host): text, Port (port): number, Database (database): text, Username (username): text, Password (password): 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 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 - (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._create_destination_connector_serialize( - organization=organization, - create_destination_connector=create_destination_connector, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateDestinationConnectorResponse", - '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 _create_destination_connector_serialize( - self, - organization, - create_destination_connector, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - 'CreateDestinationConnector': '', - } - - _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 - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if create_destination_connector is not None: - _body_params = create_destination_connector - - - # 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='POST', - resource_path='/org/{organization}/connectors/destinations', - 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 create_source_connector( - self, - organization: StrictStr, - create_source_connector: Annotated[List[CreateSourceConnector], Field(min_length=1)], - _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, - ) -> 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 (Service Account) (GOOGLE_DRIVE): Name (name): text, Service Account JSON (service-account-json): textarea) | Google Drive Multi-User (Vectorize) (GOOGLE_DRIVE_OAUTH_MULTI): Name (name): text) | Google Drive Multi-User (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) | 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 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 - (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._create_source_connector_serialize( - organization=organization, - create_source_connector=create_source_connector, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateSourceConnectorResponse", - '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 create_source_connector_with_http_info( - self, - organization: StrictStr, - create_source_connector: Annotated[List[CreateSourceConnector], Field(min_length=1)], - _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[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 (Service Account) (GOOGLE_DRIVE): Name (name): text, Service Account JSON (service-account-json): textarea) | Google Drive Multi-User (Vectorize) (GOOGLE_DRIVE_OAUTH_MULTI): Name (name): text) | Google Drive Multi-User (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) | 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 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 - (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._create_source_connector_serialize( - organization=organization, - create_source_connector=create_source_connector, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateSourceConnectorResponse", - '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 create_source_connector_without_preload_content( - self, - organization: StrictStr, - create_source_connector: Annotated[List[CreateSourceConnector], Field(min_length=1)], - _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: - """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 (Service Account) (GOOGLE_DRIVE): Name (name): text, Service Account JSON (service-account-json): textarea) | Google Drive Multi-User (Vectorize) (GOOGLE_DRIVE_OAUTH_MULTI): Name (name): text) | Google Drive Multi-User (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) | 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 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 - (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._create_source_connector_serialize( - organization=organization, - create_source_connector=create_source_connector, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateSourceConnectorResponse", - '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 _create_source_connector_serialize( - self, - organization, - create_source_connector, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - 'CreateSourceConnector': '', - } - - _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 - # 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` - 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='POST', - resource_path='/org/{organization}/connectors/sources', - 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_ai_platform( - 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, - ) -> DeleteAIPlatformConnectorResponse: - """Delete 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._delete_ai_platform_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': "DeleteAIPlatformConnectorResponse", - '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_ai_platform_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[DeleteAIPlatformConnectorResponse]: - """Delete 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._delete_ai_platform_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': "DeleteAIPlatformConnectorResponse", - '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_ai_platform_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: - """Delete 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._delete_ai_platform_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': "DeleteAIPlatformConnectorResponse", - '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_ai_platform_serialize( - self, - organization, - aiplatform_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 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 - - - # 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/aiplatforms/{aiplatformId}', - 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_destination_connector( - self, - organization: StrictStr, - destination_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, - ) -> DeleteDestinationConnectorResponse: - """Delete 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 - (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_destination_connector_serialize( - organization=organization, - destination_connector_id=destination_connector_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "DeleteDestinationConnectorResponse", - '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_destination_connector_with_http_info( - self, - organization: StrictStr, - destination_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[DeleteDestinationConnectorResponse]: - """Delete 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 - (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_destination_connector_serialize( - organization=organization, - destination_connector_id=destination_connector_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "DeleteDestinationConnectorResponse", - '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_destination_connector_without_preload_content( - self, - organization: StrictStr, - destination_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 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 - (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_destination_connector_serialize( - organization=organization, - destination_connector_id=destination_connector_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "DeleteDestinationConnectorResponse", - '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_destination_connector_serialize( - self, - organization, - 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, - _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 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 - - - # 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='GET', - resource_path='/org/{organization}/connectors/aiplatforms/{aiplatformId}', - 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_connectors( - self, - organization: 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, - ) -> GetAIPlatformConnectors200Response: - """Get all existing AI Platform connectors - - - :param organization: (required) - :type organization: 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_connectors_serialize( - organization=organization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetAIPlatformConnectors200Response", - '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_connectors_with_http_info( - self, - organization: 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[GetAIPlatformConnectors200Response]: - """Get all existing AI Platform connectors - - - :param organization: (required) - :type organization: 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_connectors_serialize( - organization=organization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetAIPlatformConnectors200Response", - '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_connectors_without_preload_content( - self, - organization: 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 all existing AI Platform connectors - - - :param organization: (required) - :type organization: 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_connectors_serialize( - organization=organization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetAIPlatformConnectors200Response", - '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_connectors_serialize( - self, - organization, - _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 - # 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='GET', - resource_path='/org/{organization}/connectors/aiplatforms', - 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_destination_connector( - self, - organization: StrictStr, - destination_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, - ) -> 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 - (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_destination_connector_serialize( - organization=organization, - destination_connector_id=destination_connector_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "DestinationConnector", - '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_destination_connector_with_http_info( - self, - organization: StrictStr, - destination_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[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 - (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_destination_connector_serialize( - organization=organization, - destination_connector_id=destination_connector_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "DestinationConnector", - '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_destination_connector_without_preload_content( - self, - organization: StrictStr, - destination_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: - """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 - (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_destination_connector_serialize( - organization=organization, - destination_connector_id=destination_connector_id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "DestinationConnector", - '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_destination_connector_serialize( - self, - organization, - 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='GET', - 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 get_destination_connectors( - self, - organization: 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, - ) -> GetDestinationConnectors200Response: - """Get all existing destination connectors - - - :param organization: (required) - :type organization: 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_destination_connectors_serialize( - organization=organization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetDestinationConnectors200Response", - '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_destination_connectors_with_http_info( - self, - organization: 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[GetDestinationConnectors200Response]: - """Get all existing destination connectors - - - :param organization: (required) - :type organization: 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_destination_connectors_serialize( - organization=organization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetDestinationConnectors200Response", - '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_destination_connectors_without_preload_content( - self, - organization: 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 all existing destination connectors - - - :param organization: (required) - :type organization: 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_destination_connectors_serialize( - organization=organization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetDestinationConnectors200Response", - '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_destination_connectors_serialize( - self, - organization, - _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 - # 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='GET', - resource_path='/org/{organization}/connectors/destinations', - 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_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, - ) -> 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 - (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_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': "SourceConnector", - '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_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[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 - (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_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': "SourceConnector", - '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_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: - """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 - (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_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': "SourceConnector", - '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_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='GET', - 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 get_source_connectors( - self, - organization: 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, - ) -> GetSourceConnectors200Response: - """Get all existing source connectors - - - :param organization: (required) - :type organization: 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_source_connectors_serialize( - organization=organization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetSourceConnectors200Response", - '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_source_connectors_with_http_info( - self, - organization: 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[GetSourceConnectors200Response]: - """Get all existing source connectors - - - :param organization: (required) - :type organization: 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_source_connectors_serialize( - organization=organization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetSourceConnectors200Response", - '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_source_connectors_without_preload_content( - self, - organization: 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 all existing source connectors - - - :param organization: (required) - :type organization: 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_source_connectors_serialize( - organization=organization, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GetSourceConnectors200Response", - '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_source_connectors_serialize( - self, - organization, - _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 - # 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='GET', - resource_path='/org/{organization}/connectors/sources', - 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 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)], - 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, - ) -> 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 - (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._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, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UpdateAIPlatformConnectorResponse", - '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 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)], - 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[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 - (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._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, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UpdateAIPlatformConnectorResponse", - '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 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)], - 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: - """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 - (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._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, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UpdateAIPlatformConnectorResponse", - '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 _update_ai_platform_connector_serialize( - self, - organization, - aiplatform_id, - update_ai_platform_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 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` - 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='PATCH', - resource_path='/org/{organization}/connectors/aiplatforms/{aiplatformId}', - 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 update_destination_connector( - self, - organization: StrictStr, - destination_connector_id: StrictStr, - update_destination_connector_request: UpdateDestinationConnectorRequest, - _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, - ) -> UpdateDestinationConnectorResponse: - """Update a destination connector - - - :param organization: (required) - :type organization: str - :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 - (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._update_destination_connector_serialize( - organization=organization, - destination_connector_id=destination_connector_id, - update_destination_connector_request=update_destination_connector_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UpdateDestinationConnectorResponse", - '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 update_destination_connector_with_http_info( - self, - organization: StrictStr, - destination_connector_id: StrictStr, - update_destination_connector_request: UpdateDestinationConnectorRequest, - _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[UpdateDestinationConnectorResponse]: - """Update a destination connector - - - :param organization: (required) - :type organization: str - :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 - (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._update_destination_connector_serialize( - organization=organization, - destination_connector_id=destination_connector_id, - update_destination_connector_request=update_destination_connector_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UpdateDestinationConnectorResponse", - '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 update_destination_connector_without_preload_content( - self, - organization: StrictStr, - destination_connector_id: StrictStr, - update_destination_connector_request: UpdateDestinationConnectorRequest, - _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: - """Update a destination connector - - - :param organization: (required) - :type organization: str - :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 - (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._update_destination_connector_serialize( - organization=organization, - destination_connector_id=destination_connector_id, - update_destination_connector_request=update_destination_connector_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "UpdateDestinationConnectorResponse", - '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 _update_destination_connector_serialize( - self, - organization, - destination_connector_id, - update_destination_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 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_destination_connector_request is not None: - _body_params = update_destination_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='PATCH', - 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 update_source_connector( - self, - organization: StrictStr, - source_connector_id: StrictStr, - update_source_connector_request: UpdateSourceConnectorRequest, - _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, - ) -> UpdateSourceConnectorResponse: - """Update a source connector - - - :param organization: (required) - :type organization: str - :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 - 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._update_source_connector_serialize( - organization=organization, - source_connector_id=source_connector_id, - update_source_connector_request=update_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': "UpdateSourceConnectorResponse", - '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 update_source_connector_with_http_info( - self, - organization: StrictStr, - source_connector_id: StrictStr, - update_source_connector_request: UpdateSourceConnectorRequest, - _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[UpdateSourceConnectorResponse]: - """Update a source connector - - - :param organization: (required) - :type organization: str - :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 - 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._update_source_connector_serialize( - organization=organization, - source_connector_id=source_connector_id, - update_source_connector_request=update_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': "UpdateSourceConnectorResponse", - '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 update_source_connector_without_preload_content( - self, - organization: StrictStr, - source_connector_id: StrictStr, - update_source_connector_request: UpdateSourceConnectorRequest, - _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: - """Update a source connector - - - :param organization: (required) - :type organization: str - :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 - 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._update_source_connector_serialize( - organization=organization, - source_connector_id=source_connector_id, - update_source_connector_request=update_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': "UpdateSourceConnectorResponse", - '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 _update_source_connector_serialize( - self, - organization, - source_connector_id, - update_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 update_source_connector_request is not None: - _body_params = update_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='PATCH', - 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 update_user_in_source_connector( - self, - organization: StrictStr, - source_connector_id: StrictStr, - update_user_in_source_connector_request: UpdateUserInSourceConnectorRequest, - _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, - ) -> UpdateUserInSourceConnectorResponse: - """Update a source connector user - - - :param organization: (required) - :type organization: str - :param source_connector_id: (required) - :type source_connector_id: str - :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 - (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._update_user_in_source_connector_serialize( - organization=organization, - source_connector_id=source_connector_id, - update_user_in_source_connector_request=update_user_in_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': "UpdateUserInSourceConnectorResponse", - '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 update_user_in_source_connector_with_http_info( - self, - organization: StrictStr, - source_connector_id: StrictStr, - update_user_in_source_connector_request: UpdateUserInSourceConnectorRequest, - _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[UpdateUserInSourceConnectorResponse]: - """Update a source connector user - - - :param organization: (required) - :type organization: str - :param source_connector_id: (required) - :type source_connector_id: str - :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 - (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._update_user_in_source_connector_serialize( - organization=organization, - source_connector_id=source_connector_id, - update_user_in_source_connector_request=update_user_in_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': "UpdateUserInSourceConnectorResponse", - '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 update_user_in_source_connector_without_preload_content( - self, - organization: StrictStr, - source_connector_id: StrictStr, - update_user_in_source_connector_request: UpdateUserInSourceConnectorRequest, - _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: - """Update a source connector user - - - :param organization: (required) - :type organization: str - :param source_connector_id: (required) - :type source_connector_id: str - :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 - (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._update_user_in_source_connector_serialize( - organization=organization, - source_connector_id=source_connector_id, - update_user_in_source_connector_request=update_user_in_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': "UpdateUserInSourceConnectorResponse", - '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 _update_user_in_source_connector_serialize( - self, - organization, - source_connector_id, - update_user_in_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 update_user_in_source_connector_request is not None: - _body_params = update_user_in_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='PATCH', - 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 - ) - - diff --git a/src/python/vectorize_client/api/destination_connectors_api.py b/src/python/vectorize_client/api/destination_connectors_api.py new file mode 100644 index 0000000..68b3bb3 --- /dev/null +++ b/src/python/vectorize_client/api/destination_connectors_api.py @@ -0,0 +1,1524 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import StrictStr +from vectorize_client.models.create_destination_connector_request import CreateDestinationConnectorRequest +from vectorize_client.models.create_destination_connector_response import CreateDestinationConnectorResponse +from vectorize_client.models.delete_destination_connector_response import DeleteDestinationConnectorResponse +from vectorize_client.models.destination_connector import DestinationConnector +from vectorize_client.models.get_destination_connectors200_response import GetDestinationConnectors200Response +from vectorize_client.models.update_destination_connector_request import UpdateDestinationConnectorRequest +from vectorize_client.models.update_destination_connector_response import UpdateDestinationConnectorResponse + +from vectorize_client.api_client import ApiClient, RequestSerialized +from vectorize_client.api_response import ApiResponse +from vectorize_client.rest import RESTResponseType + + +class DestinationConnectorsApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def create_destination_connector( + self, + organization_id: StrictStr, + create_destination_connector_request: CreateDestinationConnectorRequest, + _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, + ) -> CreateDestinationConnectorResponse: + """Create a new destination connector + + Creates a new destination connector for data storage. The specific configuration fields required depend on the connector type selected. + + :param organization_id: (required) + :type organization_id: str + :param create_destination_connector_request: (required) + :type create_destination_connector_request: CreateDestinationConnectorRequest + :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._create_destination_connector_serialize( + organization_id=organization_id, + create_destination_connector_request=create_destination_connector_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "CreateDestinationConnectorResponse", + '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 create_destination_connector_with_http_info( + self, + organization_id: StrictStr, + create_destination_connector_request: CreateDestinationConnectorRequest, + _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[CreateDestinationConnectorResponse]: + """Create a new destination connector + + Creates a new destination connector for data storage. The specific configuration fields required depend on the connector type selected. + + :param organization_id: (required) + :type organization_id: str + :param create_destination_connector_request: (required) + :type create_destination_connector_request: CreateDestinationConnectorRequest + :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._create_destination_connector_serialize( + organization_id=organization_id, + create_destination_connector_request=create_destination_connector_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "CreateDestinationConnectorResponse", + '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 create_destination_connector_without_preload_content( + self, + organization_id: StrictStr, + create_destination_connector_request: CreateDestinationConnectorRequest, + _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: + """Create a new destination connector + + Creates a new destination connector for data storage. The specific configuration fields required depend on the connector type selected. + + :param organization_id: (required) + :type organization_id: str + :param create_destination_connector_request: (required) + :type create_destination_connector_request: CreateDestinationConnectorRequest + :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._create_destination_connector_serialize( + organization_id=organization_id, + create_destination_connector_request=create_destination_connector_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "CreateDestinationConnectorResponse", + '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 _create_destination_connector_serialize( + self, + organization_id, + create_destination_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_id is not None: + _path_params['organizationId'] = organization_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if create_destination_connector_request is not None: + _body_params = create_destination_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='POST', + resource_path='/org/{organizationId}/connectors/destinations', + 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_destination_connector( + self, + organization_id: StrictStr, + destination_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, + ) -> DeleteDestinationConnectorResponse: + """Delete a destination connector + + Delete a destination connector + + :param organization_id: (required) + :type organization_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 + (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_destination_connector_serialize( + organization_id=organization_id, + destination_connector_id=destination_connector_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeleteDestinationConnectorResponse", + '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_destination_connector_with_http_info( + self, + organization_id: StrictStr, + destination_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[DeleteDestinationConnectorResponse]: + """Delete a destination connector + + Delete a destination connector + + :param organization_id: (required) + :type organization_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 + (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_destination_connector_serialize( + organization_id=organization_id, + destination_connector_id=destination_connector_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeleteDestinationConnectorResponse", + '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_destination_connector_without_preload_content( + self, + organization_id: StrictStr, + destination_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 destination connector + + Delete a destination connector + + :param organization_id: (required) + :type organization_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 + (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_destination_connector_serialize( + organization_id=organization_id, + destination_connector_id=destination_connector_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeleteDestinationConnectorResponse", + '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_destination_connector_serialize( + self, + organization_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_id is not None: + _path_params['organizationId'] = organization_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 + + + # 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/{organizationId}/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 get_destination_connector( + self, + organization_id: StrictStr, + destination_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, + ) -> DestinationConnector: + """Get a destination connector + + Get a destination connector + + :param organization_id: (required) + :type organization_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 + (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_destination_connector_serialize( + organization_id=organization_id, + destination_connector_id=destination_connector_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DestinationConnector", + '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_destination_connector_with_http_info( + self, + organization_id: StrictStr, + destination_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[DestinationConnector]: + """Get a destination connector + + Get a destination connector + + :param organization_id: (required) + :type organization_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 + (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_destination_connector_serialize( + organization_id=organization_id, + destination_connector_id=destination_connector_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DestinationConnector", + '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_destination_connector_without_preload_content( + self, + organization_id: StrictStr, + destination_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: + """Get a destination connector + + Get a destination connector + + :param organization_id: (required) + :type organization_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 + (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_destination_connector_serialize( + organization_id=organization_id, + destination_connector_id=destination_connector_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DestinationConnector", + '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_destination_connector_serialize( + self, + organization_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_id is not None: + _path_params['organizationId'] = organization_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 + + + # 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='GET', + resource_path='/org/{organizationId}/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 get_destination_connectors( + self, + organization_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, + ) -> GetDestinationConnectors200Response: + """Get all existing destination connectors + + Get all existing destination connectors + + :param organization_id: (required) + :type organization_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_destination_connectors_serialize( + organization_id=organization_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetDestinationConnectors200Response", + '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_destination_connectors_with_http_info( + self, + organization_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[GetDestinationConnectors200Response]: + """Get all existing destination connectors + + Get all existing destination connectors + + :param organization_id: (required) + :type organization_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_destination_connectors_serialize( + organization_id=organization_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetDestinationConnectors200Response", + '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_destination_connectors_without_preload_content( + self, + organization_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 all existing destination connectors + + Get all existing destination connectors + + :param organization_id: (required) + :type organization_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_destination_connectors_serialize( + organization_id=organization_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetDestinationConnectors200Response", + '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_destination_connectors_serialize( + self, + organization_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_id is not None: + _path_params['organizationId'] = organization_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='GET', + resource_path='/org/{organizationId}/connectors/destinations', + 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 update_destination_connector( + self, + organization_id: StrictStr, + destination_connector_id: StrictStr, + update_destination_connector_request: UpdateDestinationConnectorRequest, + _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, + ) -> UpdateDestinationConnectorResponse: + """Update a destination connector + + Update a destination connector + + :param organization_id: (required) + :type organization_id: str + :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 + (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._update_destination_connector_serialize( + organization_id=organization_id, + destination_connector_id=destination_connector_id, + update_destination_connector_request=update_destination_connector_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "UpdateDestinationConnectorResponse", + '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 update_destination_connector_with_http_info( + self, + organization_id: StrictStr, + destination_connector_id: StrictStr, + update_destination_connector_request: UpdateDestinationConnectorRequest, + _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[UpdateDestinationConnectorResponse]: + """Update a destination connector + + Update a destination connector + + :param organization_id: (required) + :type organization_id: str + :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 + (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._update_destination_connector_serialize( + organization_id=organization_id, + destination_connector_id=destination_connector_id, + update_destination_connector_request=update_destination_connector_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "UpdateDestinationConnectorResponse", + '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 update_destination_connector_without_preload_content( + self, + organization_id: StrictStr, + destination_connector_id: StrictStr, + update_destination_connector_request: UpdateDestinationConnectorRequest, + _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: + """Update a destination connector + + Update a destination connector + + :param organization_id: (required) + :type organization_id: str + :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 + (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._update_destination_connector_serialize( + organization_id=organization_id, + destination_connector_id=destination_connector_id, + update_destination_connector_request=update_destination_connector_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "UpdateDestinationConnectorResponse", + '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 _update_destination_connector_serialize( + self, + organization_id, + destination_connector_id, + update_destination_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_id is not None: + _path_params['organizationId'] = organization_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_destination_connector_request is not None: + _body_params = update_destination_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='PATCH', + resource_path='/org/{organizationId}/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 + ) + + diff --git a/src/python/vectorize_client/api/extraction_api.py b/src/python/vectorize_client/api/extraction_api.py index 6db8185..2a4e005 100644 --- a/src/python/vectorize_client/api/extraction_api.py +++ b/src/python/vectorize_client/api/extraction_api.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -42,7 +42,7 @@ def __init__(self, api_client=None) -> None: @validate_call def get_extraction_result( self, - organization: StrictStr, + organization_id: StrictStr, extraction_id: StrictStr, _request_timeout: Union[ None, @@ -59,9 +59,10 @@ def get_extraction_result( ) -> ExtractionResultResponse: """Get extraction result + Get extraction result - :param organization: (required) - :type organization: str + :param organization_id: (required) + :type organization_id: str :param extraction_id: (required) :type extraction_id: str :param _request_timeout: timeout setting for this request. If one @@ -87,7 +88,7 @@ def get_extraction_result( """ # noqa: E501 _param = self._get_extraction_result_serialize( - organization=organization, + organization_id=organization_id, extraction_id=extraction_id, _request_auth=_request_auth, _content_type=_content_type, @@ -117,7 +118,7 @@ def get_extraction_result( @validate_call def get_extraction_result_with_http_info( self, - organization: StrictStr, + organization_id: StrictStr, extraction_id: StrictStr, _request_timeout: Union[ None, @@ -134,9 +135,10 @@ def get_extraction_result_with_http_info( ) -> ApiResponse[ExtractionResultResponse]: """Get extraction result + Get extraction result - :param organization: (required) - :type organization: str + :param organization_id: (required) + :type organization_id: str :param extraction_id: (required) :type extraction_id: str :param _request_timeout: timeout setting for this request. If one @@ -162,7 +164,7 @@ def get_extraction_result_with_http_info( """ # noqa: E501 _param = self._get_extraction_result_serialize( - organization=organization, + organization_id=organization_id, extraction_id=extraction_id, _request_auth=_request_auth, _content_type=_content_type, @@ -192,7 +194,7 @@ def get_extraction_result_with_http_info( @validate_call def get_extraction_result_without_preload_content( self, - organization: StrictStr, + organization_id: StrictStr, extraction_id: StrictStr, _request_timeout: Union[ None, @@ -209,9 +211,10 @@ def get_extraction_result_without_preload_content( ) -> RESTResponseType: """Get extraction result + Get extraction result - :param organization: (required) - :type organization: str + :param organization_id: (required) + :type organization_id: str :param extraction_id: (required) :type extraction_id: str :param _request_timeout: timeout setting for this request. If one @@ -237,7 +240,7 @@ def get_extraction_result_without_preload_content( """ # noqa: E501 _param = self._get_extraction_result_serialize( - organization=organization, + organization_id=organization_id, extraction_id=extraction_id, _request_auth=_request_auth, _content_type=_content_type, @@ -262,7 +265,7 @@ def get_extraction_result_without_preload_content( def _get_extraction_result_serialize( self, - organization, + organization_id, extraction_id, _request_auth, _content_type, @@ -285,8 +288,8 @@ def _get_extraction_result_serialize( _body_params: Optional[bytes] = None # process the path parameters - if organization is not None: - _path_params['organization'] = organization + if organization_id is not None: + _path_params['organizationId'] = organization_id if extraction_id is not None: _path_params['extractionId'] = extraction_id # process the query parameters @@ -311,7 +314,7 @@ def _get_extraction_result_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/org/{organization}/extraction/{extractionId}', + resource_path='/org/{organizationId}/extraction/{extractionId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -330,7 +333,7 @@ def _get_extraction_result_serialize( @validate_call def start_extraction( self, - organization: StrictStr, + organization_id: StrictStr, start_extraction_request: StartExtractionRequest, _request_timeout: Union[ None, @@ -347,9 +350,10 @@ def start_extraction( ) -> StartExtractionResponse: """Start content extraction from a file + Start content extraction from a file - :param organization: (required) - :type organization: str + :param organization_id: (required) + :type organization_id: str :param start_extraction_request: (required) :type start_extraction_request: StartExtractionRequest :param _request_timeout: timeout setting for this request. If one @@ -375,7 +379,7 @@ def start_extraction( """ # noqa: E501 _param = self._start_extraction_serialize( - organization=organization, + organization_id=organization_id, start_extraction_request=start_extraction_request, _request_auth=_request_auth, _content_type=_content_type, @@ -405,7 +409,7 @@ def start_extraction( @validate_call def start_extraction_with_http_info( self, - organization: StrictStr, + organization_id: StrictStr, start_extraction_request: StartExtractionRequest, _request_timeout: Union[ None, @@ -422,9 +426,10 @@ def start_extraction_with_http_info( ) -> ApiResponse[StartExtractionResponse]: """Start content extraction from a file + Start content extraction from a file - :param organization: (required) - :type organization: str + :param organization_id: (required) + :type organization_id: str :param start_extraction_request: (required) :type start_extraction_request: StartExtractionRequest :param _request_timeout: timeout setting for this request. If one @@ -450,7 +455,7 @@ def start_extraction_with_http_info( """ # noqa: E501 _param = self._start_extraction_serialize( - organization=organization, + organization_id=organization_id, start_extraction_request=start_extraction_request, _request_auth=_request_auth, _content_type=_content_type, @@ -480,7 +485,7 @@ def start_extraction_with_http_info( @validate_call def start_extraction_without_preload_content( self, - organization: StrictStr, + organization_id: StrictStr, start_extraction_request: StartExtractionRequest, _request_timeout: Union[ None, @@ -497,9 +502,10 @@ def start_extraction_without_preload_content( ) -> RESTResponseType: """Start content extraction from a file + Start content extraction from a file - :param organization: (required) - :type organization: str + :param organization_id: (required) + :type organization_id: str :param start_extraction_request: (required) :type start_extraction_request: StartExtractionRequest :param _request_timeout: timeout setting for this request. If one @@ -525,7 +531,7 @@ def start_extraction_without_preload_content( """ # noqa: E501 _param = self._start_extraction_serialize( - organization=organization, + organization_id=organization_id, start_extraction_request=start_extraction_request, _request_auth=_request_auth, _content_type=_content_type, @@ -550,7 +556,7 @@ def start_extraction_without_preload_content( def _start_extraction_serialize( self, - organization, + organization_id, start_extraction_request, _request_auth, _content_type, @@ -573,8 +579,8 @@ def _start_extraction_serialize( _body_params: Optional[bytes] = None # process the path parameters - if organization is not None: - _path_params['organization'] = organization + if organization_id is not None: + _path_params['organizationId'] = organization_id # process the query parameters # process the header parameters # process the form parameters @@ -612,7 +618,7 @@ def _start_extraction_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/org/{organization}/extraction', + resource_path='/org/{organizationId}/extraction', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/src/python/vectorize_client/api/files_api.py b/src/python/vectorize_client/api/files_api.py index 9756ee2..b041e67 100644 --- a/src/python/vectorize_client/api/files_api.py +++ b/src/python/vectorize_client/api/files_api.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -41,7 +41,7 @@ def __init__(self, api_client=None) -> None: @validate_call def start_file_upload( self, - organization: StrictStr, + organization_id: StrictStr, start_file_upload_request: StartFileUploadRequest, _request_timeout: Union[ None, @@ -59,8 +59,8 @@ def start_file_upload( """Upload a generic file to the platform - :param organization: (required) - :type organization: str + :param organization_id: (required) + :type organization_id: str :param start_file_upload_request: (required) :type start_file_upload_request: StartFileUploadRequest :param _request_timeout: timeout setting for this request. If one @@ -86,7 +86,7 @@ def start_file_upload( """ # noqa: E501 _param = self._start_file_upload_serialize( - organization=organization, + organization_id=organization_id, start_file_upload_request=start_file_upload_request, _request_auth=_request_auth, _content_type=_content_type, @@ -116,7 +116,7 @@ def start_file_upload( @validate_call def start_file_upload_with_http_info( self, - organization: StrictStr, + organization_id: StrictStr, start_file_upload_request: StartFileUploadRequest, _request_timeout: Union[ None, @@ -134,8 +134,8 @@ def start_file_upload_with_http_info( """Upload a generic file to the platform - :param organization: (required) - :type organization: str + :param organization_id: (required) + :type organization_id: str :param start_file_upload_request: (required) :type start_file_upload_request: StartFileUploadRequest :param _request_timeout: timeout setting for this request. If one @@ -161,7 +161,7 @@ def start_file_upload_with_http_info( """ # noqa: E501 _param = self._start_file_upload_serialize( - organization=organization, + organization_id=organization_id, start_file_upload_request=start_file_upload_request, _request_auth=_request_auth, _content_type=_content_type, @@ -191,7 +191,7 @@ def start_file_upload_with_http_info( @validate_call def start_file_upload_without_preload_content( self, - organization: StrictStr, + organization_id: StrictStr, start_file_upload_request: StartFileUploadRequest, _request_timeout: Union[ None, @@ -209,8 +209,8 @@ def start_file_upload_without_preload_content( """Upload a generic file to the platform - :param organization: (required) - :type organization: str + :param organization_id: (required) + :type organization_id: str :param start_file_upload_request: (required) :type start_file_upload_request: StartFileUploadRequest :param _request_timeout: timeout setting for this request. If one @@ -236,7 +236,7 @@ def start_file_upload_without_preload_content( """ # noqa: E501 _param = self._start_file_upload_serialize( - organization=organization, + organization_id=organization_id, start_file_upload_request=start_file_upload_request, _request_auth=_request_auth, _content_type=_content_type, @@ -261,7 +261,7 @@ def start_file_upload_without_preload_content( def _start_file_upload_serialize( self, - organization, + organization_id, start_file_upload_request, _request_auth, _content_type, @@ -284,8 +284,8 @@ def _start_file_upload_serialize( _body_params: Optional[bytes] = None # process the path parameters - if organization is not None: - _path_params['organization'] = organization + if organization_id is not None: + _path_params['organizationId'] = organization_id # process the query parameters # process the header parameters # process the form parameters @@ -323,7 +323,7 @@ def _start_file_upload_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/org/{organization}/files', + resource_path='/org/{organizationId}/files', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/src/python/vectorize_client/api/pipelines_api.py b/src/python/vectorize_client/api/pipelines_api.py index edbfe60..09247c5 100644 --- a/src/python/vectorize_client/api/pipelines_api.py +++ b/src/python/vectorize_client/api/pipelines_api.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -54,7 +54,7 @@ def __init__(self, api_client=None) -> None: @validate_call def create_pipeline( self, - organization: StrictStr, + organization_id: StrictStr, pipeline_configuration_schema: PipelineConfigurationSchema, _request_timeout: Union[ None, @@ -69,11 +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 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 from these folders (optional) (path-prefix): array oftext) | Google Drive OAuth (GOOGLE_DRIVE_OAUTH): Polling Interval (seconds) (idle-time): number) | Google Drive (Service Account) (GOOGLE_DRIVE): Restrict ingest to these folder URLs (optional) (root-parents): array oftext, Polling Interval (seconds) (idle-time): number) | Google Drive Multi-User (Vectorize) (GOOGLE_DRIVE_OAUTH_MULTI): Polling Interval (seconds) (idle-time): number) | Google Drive Multi-User (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) | 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) | Supabase (SUPABASE): Table Name (table): 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: + """Create a new pipeline + Creates a new pipeline with source connectors, destination connector, and AI platform configuration. The specific configuration fields required depend on the connector types selected. - :param organization: (required) - :type organization: str + :param organization_id: (required) + :type organization_id: str :param pipeline_configuration_schema: (required) :type pipeline_configuration_schema: PipelineConfigurationSchema :param _request_timeout: timeout setting for this request. If one @@ -99,7 +100,7 @@ def create_pipeline( """ # noqa: E501 _param = self._create_pipeline_serialize( - organization=organization, + organization_id=organization_id, pipeline_configuration_schema=pipeline_configuration_schema, _request_auth=_request_auth, _content_type=_content_type, @@ -129,7 +130,7 @@ def create_pipeline( @validate_call def create_pipeline_with_http_info( self, - organization: StrictStr, + organization_id: StrictStr, pipeline_configuration_schema: PipelineConfigurationSchema, _request_timeout: Union[ None, @@ -144,11 +145,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 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 from these folders (optional) (path-prefix): array oftext) | Google Drive OAuth (GOOGLE_DRIVE_OAUTH): Polling Interval (seconds) (idle-time): number) | Google Drive (Service Account) (GOOGLE_DRIVE): Restrict ingest to these folder URLs (optional) (root-parents): array oftext, Polling Interval (seconds) (idle-time): number) | Google Drive Multi-User (Vectorize) (GOOGLE_DRIVE_OAUTH_MULTI): Polling Interval (seconds) (idle-time): number) | Google Drive Multi-User (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) | 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) | Supabase (SUPABASE): Table Name (table): 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: + """Create a new pipeline + Creates a new pipeline with source connectors, destination connector, and AI platform configuration. The specific configuration fields required depend on the connector types selected. - :param organization: (required) - :type organization: str + :param organization_id: (required) + :type organization_id: str :param pipeline_configuration_schema: (required) :type pipeline_configuration_schema: PipelineConfigurationSchema :param _request_timeout: timeout setting for this request. If one @@ -174,7 +176,7 @@ def create_pipeline_with_http_info( """ # noqa: E501 _param = self._create_pipeline_serialize( - organization=organization, + organization_id=organization_id, pipeline_configuration_schema=pipeline_configuration_schema, _request_auth=_request_auth, _content_type=_content_type, @@ -204,7 +206,7 @@ def create_pipeline_with_http_info( @validate_call def create_pipeline_without_preload_content( self, - organization: StrictStr, + organization_id: StrictStr, pipeline_configuration_schema: PipelineConfigurationSchema, _request_timeout: Union[ None, @@ -219,11 +221,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 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 from these folders (optional) (path-prefix): array oftext) | Google Drive OAuth (GOOGLE_DRIVE_OAUTH): Polling Interval (seconds) (idle-time): number) | Google Drive (Service Account) (GOOGLE_DRIVE): Restrict ingest to these folder URLs (optional) (root-parents): array oftext, Polling Interval (seconds) (idle-time): number) | Google Drive Multi-User (Vectorize) (GOOGLE_DRIVE_OAUTH_MULTI): Polling Interval (seconds) (idle-time): number) | Google Drive Multi-User (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) | 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) | Supabase (SUPABASE): Table Name (table): 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: + """Create a new pipeline + Creates a new pipeline with source connectors, destination connector, and AI platform configuration. The specific configuration fields required depend on the connector types selected. - :param organization: (required) - :type organization: str + :param organization_id: (required) + :type organization_id: str :param pipeline_configuration_schema: (required) :type pipeline_configuration_schema: PipelineConfigurationSchema :param _request_timeout: timeout setting for this request. If one @@ -249,7 +252,7 @@ def create_pipeline_without_preload_content( """ # noqa: E501 _param = self._create_pipeline_serialize( - organization=organization, + organization_id=organization_id, pipeline_configuration_schema=pipeline_configuration_schema, _request_auth=_request_auth, _content_type=_content_type, @@ -274,7 +277,7 @@ def create_pipeline_without_preload_content( def _create_pipeline_serialize( self, - organization, + organization_id, pipeline_configuration_schema, _request_auth, _content_type, @@ -297,8 +300,8 @@ def _create_pipeline_serialize( _body_params: Optional[bytes] = None # process the path parameters - if organization is not None: - _path_params['organization'] = organization + if organization_id is not None: + _path_params['organizationId'] = organization_id # process the query parameters # process the header parameters # process the form parameters @@ -336,7 +339,7 @@ def _create_pipeline_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/org/{organization}/pipelines', + resource_path='/org/{organizationId}/pipelines', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -355,8 +358,8 @@ def _create_pipeline_serialize( @validate_call def delete_pipeline( self, - organization: StrictStr, - pipeline: StrictStr, + organization_id: StrictStr, + pipeline_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -372,11 +375,12 @@ def delete_pipeline( ) -> DeletePipelineResponse: """Delete a pipeline + Delete a pipeline - :param organization: (required) - :type organization: str - :param pipeline: (required) - :type pipeline: str + :param organization_id: (required) + :type organization_id: str + :param pipeline_id: (required) + :type pipeline_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 @@ -400,8 +404,8 @@ def delete_pipeline( """ # noqa: E501 _param = self._delete_pipeline_serialize( - organization=organization, - pipeline=pipeline, + organization_id=organization_id, + pipeline_id=pipeline_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -430,8 +434,8 @@ def delete_pipeline( @validate_call def delete_pipeline_with_http_info( self, - organization: StrictStr, - pipeline: StrictStr, + organization_id: StrictStr, + pipeline_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -447,11 +451,12 @@ def delete_pipeline_with_http_info( ) -> ApiResponse[DeletePipelineResponse]: """Delete a pipeline + Delete a pipeline - :param organization: (required) - :type organization: str - :param pipeline: (required) - :type pipeline: str + :param organization_id: (required) + :type organization_id: str + :param pipeline_id: (required) + :type pipeline_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 @@ -475,8 +480,8 @@ def delete_pipeline_with_http_info( """ # noqa: E501 _param = self._delete_pipeline_serialize( - organization=organization, - pipeline=pipeline, + organization_id=organization_id, + pipeline_id=pipeline_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -505,8 +510,8 @@ def delete_pipeline_with_http_info( @validate_call def delete_pipeline_without_preload_content( self, - organization: StrictStr, - pipeline: StrictStr, + organization_id: StrictStr, + pipeline_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -522,11 +527,12 @@ def delete_pipeline_without_preload_content( ) -> RESTResponseType: """Delete a pipeline + Delete a pipeline - :param organization: (required) - :type organization: str - :param pipeline: (required) - :type pipeline: str + :param organization_id: (required) + :type organization_id: str + :param pipeline_id: (required) + :type pipeline_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 @@ -550,8 +556,8 @@ def delete_pipeline_without_preload_content( """ # noqa: E501 _param = self._delete_pipeline_serialize( - organization=organization, - pipeline=pipeline, + organization_id=organization_id, + pipeline_id=pipeline_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -575,8 +581,8 @@ def delete_pipeline_without_preload_content( def _delete_pipeline_serialize( self, - organization, - pipeline, + organization_id, + pipeline_id, _request_auth, _content_type, _headers, @@ -598,10 +604,10 @@ def _delete_pipeline_serialize( _body_params: Optional[bytes] = None # process the path parameters - if organization is not None: - _path_params['organization'] = organization - if pipeline is not None: - _path_params['pipeline'] = pipeline + if organization_id is not None: + _path_params['organizationId'] = organization_id + if pipeline_id is not None: + _path_params['pipelineId'] = pipeline_id # process the query parameters # process the header parameters # process the form parameters @@ -624,7 +630,7 @@ def _delete_pipeline_serialize( return self.api_client.param_serialize( method='DELETE', - resource_path='/org/{organization}/pipelines/{pipeline}', + resource_path='/org/{organizationId}/pipelines/{pipelineId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -643,8 +649,8 @@ def _delete_pipeline_serialize( @validate_call def get_deep_research_result( self, - organization: StrictStr, - pipeline: StrictStr, + organization_id: StrictStr, + pipeline_id: StrictStr, research_id: StrictStr, _request_timeout: Union[ None, @@ -661,11 +667,12 @@ def get_deep_research_result( ) -> GetDeepResearchResponse: """Get deep research result + Get deep research result - :param organization: (required) - :type organization: str - :param pipeline: (required) - :type pipeline: str + :param organization_id: (required) + :type organization_id: str + :param pipeline_id: (required) + :type pipeline_id: str :param research_id: (required) :type research_id: str :param _request_timeout: timeout setting for this request. If one @@ -691,8 +698,8 @@ def get_deep_research_result( """ # noqa: E501 _param = self._get_deep_research_result_serialize( - organization=organization, - pipeline=pipeline, + organization_id=organization_id, + pipeline_id=pipeline_id, research_id=research_id, _request_auth=_request_auth, _content_type=_content_type, @@ -722,8 +729,8 @@ def get_deep_research_result( @validate_call def get_deep_research_result_with_http_info( self, - organization: StrictStr, - pipeline: StrictStr, + organization_id: StrictStr, + pipeline_id: StrictStr, research_id: StrictStr, _request_timeout: Union[ None, @@ -740,11 +747,12 @@ def get_deep_research_result_with_http_info( ) -> ApiResponse[GetDeepResearchResponse]: """Get deep research result + Get deep research result - :param organization: (required) - :type organization: str - :param pipeline: (required) - :type pipeline: str + :param organization_id: (required) + :type organization_id: str + :param pipeline_id: (required) + :type pipeline_id: str :param research_id: (required) :type research_id: str :param _request_timeout: timeout setting for this request. If one @@ -770,8 +778,8 @@ def get_deep_research_result_with_http_info( """ # noqa: E501 _param = self._get_deep_research_result_serialize( - organization=organization, - pipeline=pipeline, + organization_id=organization_id, + pipeline_id=pipeline_id, research_id=research_id, _request_auth=_request_auth, _content_type=_content_type, @@ -801,8 +809,8 @@ def get_deep_research_result_with_http_info( @validate_call def get_deep_research_result_without_preload_content( self, - organization: StrictStr, - pipeline: StrictStr, + organization_id: StrictStr, + pipeline_id: StrictStr, research_id: StrictStr, _request_timeout: Union[ None, @@ -819,11 +827,12 @@ def get_deep_research_result_without_preload_content( ) -> RESTResponseType: """Get deep research result + Get deep research result - :param organization: (required) - :type organization: str - :param pipeline: (required) - :type pipeline: str + :param organization_id: (required) + :type organization_id: str + :param pipeline_id: (required) + :type pipeline_id: str :param research_id: (required) :type research_id: str :param _request_timeout: timeout setting for this request. If one @@ -849,8 +858,8 @@ def get_deep_research_result_without_preload_content( """ # noqa: E501 _param = self._get_deep_research_result_serialize( - organization=organization, - pipeline=pipeline, + organization_id=organization_id, + pipeline_id=pipeline_id, research_id=research_id, _request_auth=_request_auth, _content_type=_content_type, @@ -875,8 +884,8 @@ def get_deep_research_result_without_preload_content( def _get_deep_research_result_serialize( self, - organization, - pipeline, + organization_id, + pipeline_id, research_id, _request_auth, _content_type, @@ -899,10 +908,10 @@ def _get_deep_research_result_serialize( _body_params: Optional[bytes] = None # process the path parameters - if organization is not None: - _path_params['organization'] = organization - if pipeline is not None: - _path_params['pipeline'] = pipeline + if organization_id is not None: + _path_params['organizationId'] = organization_id + if pipeline_id is not None: + _path_params['pipelineId'] = pipeline_id if research_id is not None: _path_params['researchId'] = research_id # process the query parameters @@ -927,7 +936,7 @@ def _get_deep_research_result_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/org/{organization}/pipelines/{pipeline}/deep-research/{researchId}', + resource_path='/org/{organizationId}/pipelines/{pipelineId}/deep-research/{researchId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -946,8 +955,8 @@ def _get_deep_research_result_serialize( @validate_call def get_pipeline( self, - organization: StrictStr, - pipeline: StrictStr, + organization_id: StrictStr, + pipeline_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -963,11 +972,12 @@ def get_pipeline( ) -> GetPipelineResponse: """Get a pipeline + Get a pipeline - :param organization: (required) - :type organization: str - :param pipeline: (required) - :type pipeline: str + :param organization_id: (required) + :type organization_id: str + :param pipeline_id: (required) + :type pipeline_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 @@ -991,8 +1001,8 @@ def get_pipeline( """ # noqa: E501 _param = self._get_pipeline_serialize( - organization=organization, - pipeline=pipeline, + organization_id=organization_id, + pipeline_id=pipeline_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1021,8 +1031,8 @@ def get_pipeline( @validate_call def get_pipeline_with_http_info( self, - organization: StrictStr, - pipeline: StrictStr, + organization_id: StrictStr, + pipeline_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1038,11 +1048,12 @@ def get_pipeline_with_http_info( ) -> ApiResponse[GetPipelineResponse]: """Get a pipeline + Get a pipeline - :param organization: (required) - :type organization: str - :param pipeline: (required) - :type pipeline: str + :param organization_id: (required) + :type organization_id: str + :param pipeline_id: (required) + :type pipeline_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 @@ -1066,8 +1077,8 @@ def get_pipeline_with_http_info( """ # noqa: E501 _param = self._get_pipeline_serialize( - organization=organization, - pipeline=pipeline, + organization_id=organization_id, + pipeline_id=pipeline_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1096,8 +1107,8 @@ def get_pipeline_with_http_info( @validate_call def get_pipeline_without_preload_content( self, - organization: StrictStr, - pipeline: StrictStr, + organization_id: StrictStr, + pipeline_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1113,11 +1124,12 @@ def get_pipeline_without_preload_content( ) -> RESTResponseType: """Get a pipeline + Get a pipeline - :param organization: (required) - :type organization: str - :param pipeline: (required) - :type pipeline: str + :param organization_id: (required) + :type organization_id: str + :param pipeline_id: (required) + :type pipeline_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 @@ -1141,8 +1153,8 @@ def get_pipeline_without_preload_content( """ # noqa: E501 _param = self._get_pipeline_serialize( - organization=organization, - pipeline=pipeline, + organization_id=organization_id, + pipeline_id=pipeline_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1166,8 +1178,8 @@ def get_pipeline_without_preload_content( def _get_pipeline_serialize( self, - organization, - pipeline, + organization_id, + pipeline_id, _request_auth, _content_type, _headers, @@ -1189,10 +1201,10 @@ def _get_pipeline_serialize( _body_params: Optional[bytes] = None # process the path parameters - if organization is not None: - _path_params['organization'] = organization - if pipeline is not None: - _path_params['pipeline'] = pipeline + if organization_id is not None: + _path_params['organizationId'] = organization_id + if pipeline_id is not None: + _path_params['pipelineId'] = pipeline_id # process the query parameters # process the header parameters # process the form parameters @@ -1215,7 +1227,7 @@ def _get_pipeline_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/org/{organization}/pipelines/{pipeline}', + resource_path='/org/{organizationId}/pipelines/{pipelineId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1234,8 +1246,8 @@ def _get_pipeline_serialize( @validate_call def get_pipeline_events( self, - organization: StrictStr, - pipeline: StrictStr, + organization_id: StrictStr, + pipeline_id: StrictStr, next_token: Optional[StrictStr] = None, _request_timeout: Union[ None, @@ -1252,11 +1264,12 @@ def get_pipeline_events( ) -> GetPipelineEventsResponse: """Get pipeline events + Get pipeline events - :param organization: (required) - :type organization: str - :param pipeline: (required) - :type pipeline: str + :param organization_id: (required) + :type organization_id: str + :param pipeline_id: (required) + :type pipeline_id: str :param next_token: :type next_token: str :param _request_timeout: timeout setting for this request. If one @@ -1282,8 +1295,8 @@ def get_pipeline_events( """ # noqa: E501 _param = self._get_pipeline_events_serialize( - organization=organization, - pipeline=pipeline, + organization_id=organization_id, + pipeline_id=pipeline_id, next_token=next_token, _request_auth=_request_auth, _content_type=_content_type, @@ -1313,8 +1326,8 @@ def get_pipeline_events( @validate_call def get_pipeline_events_with_http_info( self, - organization: StrictStr, - pipeline: StrictStr, + organization_id: StrictStr, + pipeline_id: StrictStr, next_token: Optional[StrictStr] = None, _request_timeout: Union[ None, @@ -1331,11 +1344,12 @@ def get_pipeline_events_with_http_info( ) -> ApiResponse[GetPipelineEventsResponse]: """Get pipeline events + Get pipeline events - :param organization: (required) - :type organization: str - :param pipeline: (required) - :type pipeline: str + :param organization_id: (required) + :type organization_id: str + :param pipeline_id: (required) + :type pipeline_id: str :param next_token: :type next_token: str :param _request_timeout: timeout setting for this request. If one @@ -1361,8 +1375,8 @@ def get_pipeline_events_with_http_info( """ # noqa: E501 _param = self._get_pipeline_events_serialize( - organization=organization, - pipeline=pipeline, + organization_id=organization_id, + pipeline_id=pipeline_id, next_token=next_token, _request_auth=_request_auth, _content_type=_content_type, @@ -1392,8 +1406,8 @@ def get_pipeline_events_with_http_info( @validate_call def get_pipeline_events_without_preload_content( self, - organization: StrictStr, - pipeline: StrictStr, + organization_id: StrictStr, + pipeline_id: StrictStr, next_token: Optional[StrictStr] = None, _request_timeout: Union[ None, @@ -1410,11 +1424,12 @@ def get_pipeline_events_without_preload_content( ) -> RESTResponseType: """Get pipeline events + Get pipeline events - :param organization: (required) - :type organization: str - :param pipeline: (required) - :type pipeline: str + :param organization_id: (required) + :type organization_id: str + :param pipeline_id: (required) + :type pipeline_id: str :param next_token: :type next_token: str :param _request_timeout: timeout setting for this request. If one @@ -1440,8 +1455,8 @@ def get_pipeline_events_without_preload_content( """ # noqa: E501 _param = self._get_pipeline_events_serialize( - organization=organization, - pipeline=pipeline, + organization_id=organization_id, + pipeline_id=pipeline_id, next_token=next_token, _request_auth=_request_auth, _content_type=_content_type, @@ -1466,8 +1481,8 @@ def get_pipeline_events_without_preload_content( def _get_pipeline_events_serialize( self, - organization, - pipeline, + organization_id, + pipeline_id, next_token, _request_auth, _content_type, @@ -1490,10 +1505,10 @@ def _get_pipeline_events_serialize( _body_params: Optional[bytes] = None # process the path parameters - if organization is not None: - _path_params['organization'] = organization - if pipeline is not None: - _path_params['pipeline'] = pipeline + if organization_id is not None: + _path_params['organizationId'] = organization_id + if pipeline_id is not None: + _path_params['pipelineId'] = pipeline_id # process the query parameters if next_token is not None: @@ -1520,7 +1535,7 @@ def _get_pipeline_events_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/org/{organization}/pipelines/{pipeline}/events', + resource_path='/org/{organizationId}/pipelines/{pipelineId}/events', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1539,8 +1554,8 @@ def _get_pipeline_events_serialize( @validate_call def get_pipeline_metrics( self, - organization: StrictStr, - pipeline: StrictStr, + organization_id: StrictStr, + pipeline_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1556,11 +1571,12 @@ def get_pipeline_metrics( ) -> GetPipelineMetricsResponse: """Get pipeline metrics + Get pipeline metrics - :param organization: (required) - :type organization: str - :param pipeline: (required) - :type pipeline: str + :param organization_id: (required) + :type organization_id: str + :param pipeline_id: (required) + :type pipeline_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 @@ -1584,8 +1600,8 @@ def get_pipeline_metrics( """ # noqa: E501 _param = self._get_pipeline_metrics_serialize( - organization=organization, - pipeline=pipeline, + organization_id=organization_id, + pipeline_id=pipeline_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1614,8 +1630,8 @@ def get_pipeline_metrics( @validate_call def get_pipeline_metrics_with_http_info( self, - organization: StrictStr, - pipeline: StrictStr, + organization_id: StrictStr, + pipeline_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1631,11 +1647,12 @@ def get_pipeline_metrics_with_http_info( ) -> ApiResponse[GetPipelineMetricsResponse]: """Get pipeline metrics + Get pipeline metrics - :param organization: (required) - :type organization: str - :param pipeline: (required) - :type pipeline: str + :param organization_id: (required) + :type organization_id: str + :param pipeline_id: (required) + :type pipeline_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 @@ -1659,8 +1676,8 @@ def get_pipeline_metrics_with_http_info( """ # noqa: E501 _param = self._get_pipeline_metrics_serialize( - organization=organization, - pipeline=pipeline, + organization_id=organization_id, + pipeline_id=pipeline_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1689,8 +1706,8 @@ def get_pipeline_metrics_with_http_info( @validate_call def get_pipeline_metrics_without_preload_content( self, - organization: StrictStr, - pipeline: StrictStr, + organization_id: StrictStr, + pipeline_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1706,11 +1723,12 @@ def get_pipeline_metrics_without_preload_content( ) -> RESTResponseType: """Get pipeline metrics + Get pipeline metrics - :param organization: (required) - :type organization: str - :param pipeline: (required) - :type pipeline: str + :param organization_id: (required) + :type organization_id: str + :param pipeline_id: (required) + :type pipeline_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 @@ -1734,8 +1752,8 @@ def get_pipeline_metrics_without_preload_content( """ # noqa: E501 _param = self._get_pipeline_metrics_serialize( - organization=organization, - pipeline=pipeline, + organization_id=organization_id, + pipeline_id=pipeline_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1759,8 +1777,8 @@ def get_pipeline_metrics_without_preload_content( def _get_pipeline_metrics_serialize( self, - organization, - pipeline, + organization_id, + pipeline_id, _request_auth, _content_type, _headers, @@ -1782,10 +1800,10 @@ def _get_pipeline_metrics_serialize( _body_params: Optional[bytes] = None # process the path parameters - if organization is not None: - _path_params['organization'] = organization - if pipeline is not None: - _path_params['pipeline'] = pipeline + if organization_id is not None: + _path_params['organizationId'] = organization_id + if pipeline_id is not None: + _path_params['pipelineId'] = pipeline_id # process the query parameters # process the header parameters # process the form parameters @@ -1808,7 +1826,7 @@ def _get_pipeline_metrics_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/org/{organization}/pipelines/{pipeline}/metrics', + resource_path='/org/{organizationId}/pipelines/{pipelineId}/metrics', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1827,7 +1845,7 @@ def _get_pipeline_metrics_serialize( @validate_call def get_pipelines( self, - organization: StrictStr, + organization_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1841,11 +1859,12 @@ def get_pipelines( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> GetPipelinesResponse: - """Get all existing pipelines + """Get all pipelines + Returns a list of all pipelines in the organization - :param organization: (required) - :type organization: str + :param organization_id: (required) + :type organization_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 @@ -1869,7 +1888,7 @@ def get_pipelines( """ # noqa: E501 _param = self._get_pipelines_serialize( - organization=organization, + organization_id=organization_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1898,7 +1917,7 @@ def get_pipelines( @validate_call def get_pipelines_with_http_info( self, - organization: StrictStr, + organization_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1912,11 +1931,12 @@ def get_pipelines_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[GetPipelinesResponse]: - """Get all existing pipelines + """Get all pipelines + Returns a list of all pipelines in the organization - :param organization: (required) - :type organization: str + :param organization_id: (required) + :type organization_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 @@ -1940,7 +1960,7 @@ def get_pipelines_with_http_info( """ # noqa: E501 _param = self._get_pipelines_serialize( - organization=organization, + organization_id=organization_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1969,7 +1989,7 @@ def get_pipelines_with_http_info( @validate_call def get_pipelines_without_preload_content( self, - organization: StrictStr, + organization_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1983,11 +2003,12 @@ def get_pipelines_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get all existing pipelines + """Get all pipelines + Returns a list of all pipelines in the organization - :param organization: (required) - :type organization: str + :param organization_id: (required) + :type organization_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 @@ -2011,7 +2032,7 @@ def get_pipelines_without_preload_content( """ # noqa: E501 _param = self._get_pipelines_serialize( - organization=organization, + organization_id=organization_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2035,7 +2056,7 @@ def get_pipelines_without_preload_content( def _get_pipelines_serialize( self, - organization, + organization_id, _request_auth, _content_type, _headers, @@ -2057,8 +2078,8 @@ def _get_pipelines_serialize( _body_params: Optional[bytes] = None # process the path parameters - if organization is not None: - _path_params['organization'] = organization + if organization_id is not None: + _path_params['organizationId'] = organization_id # process the query parameters # process the header parameters # process the form parameters @@ -2081,7 +2102,7 @@ def _get_pipelines_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/org/{organization}/pipelines', + resource_path='/org/{organizationId}/pipelines', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2100,8 +2121,8 @@ def _get_pipelines_serialize( @validate_call def retrieve_documents( self, - organization: StrictStr, - pipeline: StrictStr, + organization_id: StrictStr, + pipeline_id: StrictStr, retrieve_documents_request: RetrieveDocumentsRequest, _request_timeout: Union[ None, @@ -2118,11 +2139,12 @@ def retrieve_documents( ) -> RetrieveDocumentsResponse: """Retrieve documents from a pipeline + Retrieve documents from a pipeline - :param organization: (required) - :type organization: str - :param pipeline: (required) - :type pipeline: str + :param organization_id: (required) + :type organization_id: str + :param pipeline_id: (required) + :type pipeline_id: str :param retrieve_documents_request: (required) :type retrieve_documents_request: RetrieveDocumentsRequest :param _request_timeout: timeout setting for this request. If one @@ -2148,8 +2170,8 @@ def retrieve_documents( """ # noqa: E501 _param = self._retrieve_documents_serialize( - organization=organization, - pipeline=pipeline, + organization_id=organization_id, + pipeline_id=pipeline_id, retrieve_documents_request=retrieve_documents_request, _request_auth=_request_auth, _content_type=_content_type, @@ -2179,8 +2201,8 @@ def retrieve_documents( @validate_call def retrieve_documents_with_http_info( self, - organization: StrictStr, - pipeline: StrictStr, + organization_id: StrictStr, + pipeline_id: StrictStr, retrieve_documents_request: RetrieveDocumentsRequest, _request_timeout: Union[ None, @@ -2197,11 +2219,12 @@ def retrieve_documents_with_http_info( ) -> ApiResponse[RetrieveDocumentsResponse]: """Retrieve documents from a pipeline + Retrieve documents from a pipeline - :param organization: (required) - :type organization: str - :param pipeline: (required) - :type pipeline: str + :param organization_id: (required) + :type organization_id: str + :param pipeline_id: (required) + :type pipeline_id: str :param retrieve_documents_request: (required) :type retrieve_documents_request: RetrieveDocumentsRequest :param _request_timeout: timeout setting for this request. If one @@ -2227,8 +2250,8 @@ def retrieve_documents_with_http_info( """ # noqa: E501 _param = self._retrieve_documents_serialize( - organization=organization, - pipeline=pipeline, + organization_id=organization_id, + pipeline_id=pipeline_id, retrieve_documents_request=retrieve_documents_request, _request_auth=_request_auth, _content_type=_content_type, @@ -2258,8 +2281,8 @@ def retrieve_documents_with_http_info( @validate_call def retrieve_documents_without_preload_content( self, - organization: StrictStr, - pipeline: StrictStr, + organization_id: StrictStr, + pipeline_id: StrictStr, retrieve_documents_request: RetrieveDocumentsRequest, _request_timeout: Union[ None, @@ -2276,11 +2299,12 @@ def retrieve_documents_without_preload_content( ) -> RESTResponseType: """Retrieve documents from a pipeline + Retrieve documents from a pipeline - :param organization: (required) - :type organization: str - :param pipeline: (required) - :type pipeline: str + :param organization_id: (required) + :type organization_id: str + :param pipeline_id: (required) + :type pipeline_id: str :param retrieve_documents_request: (required) :type retrieve_documents_request: RetrieveDocumentsRequest :param _request_timeout: timeout setting for this request. If one @@ -2306,8 +2330,8 @@ def retrieve_documents_without_preload_content( """ # noqa: E501 _param = self._retrieve_documents_serialize( - organization=organization, - pipeline=pipeline, + organization_id=organization_id, + pipeline_id=pipeline_id, retrieve_documents_request=retrieve_documents_request, _request_auth=_request_auth, _content_type=_content_type, @@ -2332,8 +2356,8 @@ def retrieve_documents_without_preload_content( def _retrieve_documents_serialize( self, - organization, - pipeline, + organization_id, + pipeline_id, retrieve_documents_request, _request_auth, _content_type, @@ -2356,10 +2380,10 @@ def _retrieve_documents_serialize( _body_params: Optional[bytes] = None # process the path parameters - if organization is not None: - _path_params['organization'] = organization - if pipeline is not None: - _path_params['pipeline'] = pipeline + if organization_id is not None: + _path_params['organizationId'] = organization_id + if pipeline_id is not None: + _path_params['pipelineId'] = pipeline_id # process the query parameters # process the header parameters # process the form parameters @@ -2397,7 +2421,7 @@ def _retrieve_documents_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/org/{organization}/pipelines/{pipeline}/retrieval', + resource_path='/org/{organizationId}/pipelines/{pipelineId}/retrieval', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2416,8 +2440,8 @@ def _retrieve_documents_serialize( @validate_call def start_deep_research( self, - organization: StrictStr, - pipeline: StrictStr, + organization_id: StrictStr, + pipeline_id: StrictStr, start_deep_research_request: StartDeepResearchRequest, _request_timeout: Union[ None, @@ -2434,11 +2458,12 @@ def start_deep_research( ) -> StartDeepResearchResponse: """Start a deep research + Start a deep research - :param organization: (required) - :type organization: str - :param pipeline: (required) - :type pipeline: str + :param organization_id: (required) + :type organization_id: str + :param pipeline_id: (required) + :type pipeline_id: str :param start_deep_research_request: (required) :type start_deep_research_request: StartDeepResearchRequest :param _request_timeout: timeout setting for this request. If one @@ -2464,8 +2489,8 @@ def start_deep_research( """ # noqa: E501 _param = self._start_deep_research_serialize( - organization=organization, - pipeline=pipeline, + organization_id=organization_id, + pipeline_id=pipeline_id, start_deep_research_request=start_deep_research_request, _request_auth=_request_auth, _content_type=_content_type, @@ -2495,8 +2520,8 @@ def start_deep_research( @validate_call def start_deep_research_with_http_info( self, - organization: StrictStr, - pipeline: StrictStr, + organization_id: StrictStr, + pipeline_id: StrictStr, start_deep_research_request: StartDeepResearchRequest, _request_timeout: Union[ None, @@ -2513,11 +2538,12 @@ def start_deep_research_with_http_info( ) -> ApiResponse[StartDeepResearchResponse]: """Start a deep research + Start a deep research - :param organization: (required) - :type organization: str - :param pipeline: (required) - :type pipeline: str + :param organization_id: (required) + :type organization_id: str + :param pipeline_id: (required) + :type pipeline_id: str :param start_deep_research_request: (required) :type start_deep_research_request: StartDeepResearchRequest :param _request_timeout: timeout setting for this request. If one @@ -2543,8 +2569,8 @@ def start_deep_research_with_http_info( """ # noqa: E501 _param = self._start_deep_research_serialize( - organization=organization, - pipeline=pipeline, + organization_id=organization_id, + pipeline_id=pipeline_id, start_deep_research_request=start_deep_research_request, _request_auth=_request_auth, _content_type=_content_type, @@ -2574,8 +2600,8 @@ def start_deep_research_with_http_info( @validate_call def start_deep_research_without_preload_content( self, - organization: StrictStr, - pipeline: StrictStr, + organization_id: StrictStr, + pipeline_id: StrictStr, start_deep_research_request: StartDeepResearchRequest, _request_timeout: Union[ None, @@ -2592,11 +2618,12 @@ def start_deep_research_without_preload_content( ) -> RESTResponseType: """Start a deep research + Start a deep research - :param organization: (required) - :type organization: str - :param pipeline: (required) - :type pipeline: str + :param organization_id: (required) + :type organization_id: str + :param pipeline_id: (required) + :type pipeline_id: str :param start_deep_research_request: (required) :type start_deep_research_request: StartDeepResearchRequest :param _request_timeout: timeout setting for this request. If one @@ -2622,8 +2649,8 @@ def start_deep_research_without_preload_content( """ # noqa: E501 _param = self._start_deep_research_serialize( - organization=organization, - pipeline=pipeline, + organization_id=organization_id, + pipeline_id=pipeline_id, start_deep_research_request=start_deep_research_request, _request_auth=_request_auth, _content_type=_content_type, @@ -2648,8 +2675,8 @@ def start_deep_research_without_preload_content( def _start_deep_research_serialize( self, - organization, - pipeline, + organization_id, + pipeline_id, start_deep_research_request, _request_auth, _content_type, @@ -2672,10 +2699,10 @@ def _start_deep_research_serialize( _body_params: Optional[bytes] = None # process the path parameters - if organization is not None: - _path_params['organization'] = organization - if pipeline is not None: - _path_params['pipeline'] = pipeline + if organization_id is not None: + _path_params['organizationId'] = organization_id + if pipeline_id is not None: + _path_params['pipelineId'] = pipeline_id # process the query parameters # process the header parameters # process the form parameters @@ -2713,7 +2740,7 @@ def _start_deep_research_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/org/{organization}/pipelines/{pipeline}/deep-research', + resource_path='/org/{organizationId}/pipelines/{pipelineId}/deep-research', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2732,8 +2759,8 @@ def _start_deep_research_serialize( @validate_call def start_pipeline( self, - organization: StrictStr, - pipeline: StrictStr, + organization_id: StrictStr, + pipeline_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2749,11 +2776,12 @@ def start_pipeline( ) -> StartPipelineResponse: """Start a pipeline + Start a pipeline - :param organization: (required) - :type organization: str - :param pipeline: (required) - :type pipeline: str + :param organization_id: (required) + :type organization_id: str + :param pipeline_id: (required) + :type pipeline_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 @@ -2777,8 +2805,8 @@ def start_pipeline( """ # noqa: E501 _param = self._start_pipeline_serialize( - organization=organization, - pipeline=pipeline, + organization_id=organization_id, + pipeline_id=pipeline_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2807,8 +2835,8 @@ def start_pipeline( @validate_call def start_pipeline_with_http_info( self, - organization: StrictStr, - pipeline: StrictStr, + organization_id: StrictStr, + pipeline_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2824,11 +2852,12 @@ def start_pipeline_with_http_info( ) -> ApiResponse[StartPipelineResponse]: """Start a pipeline + Start a pipeline - :param organization: (required) - :type organization: str - :param pipeline: (required) - :type pipeline: str + :param organization_id: (required) + :type organization_id: str + :param pipeline_id: (required) + :type pipeline_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 @@ -2852,8 +2881,8 @@ def start_pipeline_with_http_info( """ # noqa: E501 _param = self._start_pipeline_serialize( - organization=organization, - pipeline=pipeline, + organization_id=organization_id, + pipeline_id=pipeline_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2882,8 +2911,8 @@ def start_pipeline_with_http_info( @validate_call def start_pipeline_without_preload_content( self, - organization: StrictStr, - pipeline: StrictStr, + organization_id: StrictStr, + pipeline_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2899,11 +2928,12 @@ def start_pipeline_without_preload_content( ) -> RESTResponseType: """Start a pipeline + Start a pipeline - :param organization: (required) - :type organization: str - :param pipeline: (required) - :type pipeline: str + :param organization_id: (required) + :type organization_id: str + :param pipeline_id: (required) + :type pipeline_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 @@ -2927,8 +2957,8 @@ def start_pipeline_without_preload_content( """ # noqa: E501 _param = self._start_pipeline_serialize( - organization=organization, - pipeline=pipeline, + organization_id=organization_id, + pipeline_id=pipeline_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2952,8 +2982,8 @@ def start_pipeline_without_preload_content( def _start_pipeline_serialize( self, - organization, - pipeline, + organization_id, + pipeline_id, _request_auth, _content_type, _headers, @@ -2975,10 +3005,10 @@ def _start_pipeline_serialize( _body_params: Optional[bytes] = None # process the path parameters - if organization is not None: - _path_params['organization'] = organization - if pipeline is not None: - _path_params['pipeline'] = pipeline + if organization_id is not None: + _path_params['organizationId'] = organization_id + if pipeline_id is not None: + _path_params['pipelineId'] = pipeline_id # process the query parameters # process the header parameters # process the form parameters @@ -3001,7 +3031,7 @@ def _start_pipeline_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/org/{organization}/pipelines/{pipeline}/start', + resource_path='/org/{organizationId}/pipelines/{pipelineId}/start', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3020,8 +3050,8 @@ def _start_pipeline_serialize( @validate_call def stop_pipeline( self, - organization: StrictStr, - pipeline: StrictStr, + organization_id: StrictStr, + pipeline_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3037,11 +3067,12 @@ def stop_pipeline( ) -> StopPipelineResponse: """Stop a pipeline + Stop a pipeline - :param organization: (required) - :type organization: str - :param pipeline: (required) - :type pipeline: str + :param organization_id: (required) + :type organization_id: str + :param pipeline_id: (required) + :type pipeline_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 @@ -3065,8 +3096,8 @@ def stop_pipeline( """ # noqa: E501 _param = self._stop_pipeline_serialize( - organization=organization, - pipeline=pipeline, + organization_id=organization_id, + pipeline_id=pipeline_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3095,8 +3126,8 @@ def stop_pipeline( @validate_call def stop_pipeline_with_http_info( self, - organization: StrictStr, - pipeline: StrictStr, + organization_id: StrictStr, + pipeline_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3112,11 +3143,12 @@ def stop_pipeline_with_http_info( ) -> ApiResponse[StopPipelineResponse]: """Stop a pipeline + Stop a pipeline - :param organization: (required) - :type organization: str - :param pipeline: (required) - :type pipeline: str + :param organization_id: (required) + :type organization_id: str + :param pipeline_id: (required) + :type pipeline_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 @@ -3140,8 +3172,8 @@ def stop_pipeline_with_http_info( """ # noqa: E501 _param = self._stop_pipeline_serialize( - organization=organization, - pipeline=pipeline, + organization_id=organization_id, + pipeline_id=pipeline_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3170,8 +3202,8 @@ def stop_pipeline_with_http_info( @validate_call def stop_pipeline_without_preload_content( self, - organization: StrictStr, - pipeline: StrictStr, + organization_id: StrictStr, + pipeline_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3187,11 +3219,12 @@ def stop_pipeline_without_preload_content( ) -> RESTResponseType: """Stop a pipeline + Stop a pipeline - :param organization: (required) - :type organization: str - :param pipeline: (required) - :type pipeline: str + :param organization_id: (required) + :type organization_id: str + :param pipeline_id: (required) + :type pipeline_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 @@ -3215,8 +3248,8 @@ def stop_pipeline_without_preload_content( """ # noqa: E501 _param = self._stop_pipeline_serialize( - organization=organization, - pipeline=pipeline, + organization_id=organization_id, + pipeline_id=pipeline_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3240,8 +3273,8 @@ def stop_pipeline_without_preload_content( def _stop_pipeline_serialize( self, - organization, - pipeline, + organization_id, + pipeline_id, _request_auth, _content_type, _headers, @@ -3263,10 +3296,10 @@ def _stop_pipeline_serialize( _body_params: Optional[bytes] = None # process the path parameters - if organization is not None: - _path_params['organization'] = organization - if pipeline is not None: - _path_params['pipeline'] = pipeline + if organization_id is not None: + _path_params['organizationId'] = organization_id + if pipeline_id is not None: + _path_params['pipelineId'] = pipeline_id # process the query parameters # process the header parameters # process the form parameters @@ -3289,7 +3322,7 @@ def _stop_pipeline_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/org/{organization}/pipelines/{pipeline}/stop', + resource_path='/org/{organizationId}/pipelines/{pipelineId}/stop', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/src/python/vectorize_client/api/source_connectors_api.py b/src/python/vectorize_client/api/source_connectors_api.py new file mode 100644 index 0000000..0b8255a --- /dev/null +++ b/src/python/vectorize_client/api/source_connectors_api.py @@ -0,0 +1,2487 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import StrictStr +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_source_connector_request import CreateSourceConnectorRequest +from vectorize_client.models.create_source_connector_response import CreateSourceConnectorResponse +from vectorize_client.models.delete_source_connector_response import DeleteSourceConnectorResponse +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_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 +from vectorize_client.rest import RESTResponseType + + +class SourceConnectorsApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def add_user_to_source_connector( + self, + organization_id: StrictStr, + source_connector_id: StrictStr, + add_user_to_source_connector_request: AddUserToSourceConnectorRequest, + _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, + ) -> AddUserFromSourceConnectorResponse: + """Add a user to a source connector + + Add a user to a source connector + + :param organization_id: (required) + :type organization_id: str + :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 + (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._add_user_to_source_connector_serialize( + organization_id=organization_id, + 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, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AddUserFromSourceConnectorResponse", + '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 add_user_to_source_connector_with_http_info( + self, + organization_id: StrictStr, + source_connector_id: StrictStr, + add_user_to_source_connector_request: AddUserToSourceConnectorRequest, + _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[AddUserFromSourceConnectorResponse]: + """Add a user to a source connector + + Add a user to a source connector + + :param organization_id: (required) + :type organization_id: str + :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 + (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._add_user_to_source_connector_serialize( + organization_id=organization_id, + 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, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AddUserFromSourceConnectorResponse", + '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 add_user_to_source_connector_without_preload_content( + self, + organization_id: StrictStr, + source_connector_id: StrictStr, + add_user_to_source_connector_request: AddUserToSourceConnectorRequest, + _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: + """Add a user to a source connector + + Add a user to a source connector + + :param organization_id: (required) + :type organization_id: str + :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 + (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._add_user_to_source_connector_serialize( + organization_id=organization_id, + 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, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AddUserFromSourceConnectorResponse", + '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 _add_user_to_source_connector_serialize( + self, + organization_id, + source_connector_id, + add_user_to_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_id is not None: + _path_params['organizationId'] = organization_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 + # process the body parameter + if add_user_to_source_connector_request is not None: + _body_params = add_user_to_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='POST', + resource_path='/org/{organizationId}/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 create_source_connector( + self, + organization_id: StrictStr, + create_source_connector_request: CreateSourceConnectorRequest, + _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, + ) -> CreateSourceConnectorResponse: + """Create a new source connector + + Creates a new source connector for data ingestion. The specific configuration fields required depend on the connector type selected. + + :param organization_id: (required) + :type organization_id: str + :param create_source_connector_request: (required) + :type create_source_connector_request: CreateSourceConnectorRequest + :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._create_source_connector_serialize( + organization_id=organization_id, + create_source_connector_request=create_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': "CreateSourceConnectorResponse", + '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 create_source_connector_with_http_info( + self, + organization_id: StrictStr, + create_source_connector_request: CreateSourceConnectorRequest, + _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[CreateSourceConnectorResponse]: + """Create a new source connector + + Creates a new source connector for data ingestion. The specific configuration fields required depend on the connector type selected. + + :param organization_id: (required) + :type organization_id: str + :param create_source_connector_request: (required) + :type create_source_connector_request: CreateSourceConnectorRequest + :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._create_source_connector_serialize( + organization_id=organization_id, + create_source_connector_request=create_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': "CreateSourceConnectorResponse", + '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 create_source_connector_without_preload_content( + self, + organization_id: StrictStr, + create_source_connector_request: CreateSourceConnectorRequest, + _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: + """Create a new source connector + + Creates a new source connector for data ingestion. The specific configuration fields required depend on the connector type selected. + + :param organization_id: (required) + :type organization_id: str + :param create_source_connector_request: (required) + :type create_source_connector_request: CreateSourceConnectorRequest + :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._create_source_connector_serialize( + organization_id=organization_id, + create_source_connector_request=create_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': "CreateSourceConnectorResponse", + '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 _create_source_connector_serialize( + self, + organization_id, + create_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_id is not None: + _path_params['organizationId'] = organization_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if create_source_connector_request is not None: + _body_params = create_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='POST', + resource_path='/org/{organizationId}/connectors/sources', + 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_id: 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 + + Delete a source connector + + :param organization_id: (required) + :type organization_id: 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_id=organization_id, + 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_id: 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 + + Delete a source connector + + :param organization_id: (required) + :type organization_id: 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_id=organization_id, + 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_id: 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 + + Delete a source connector + + :param organization_id: (required) + :type organization_id: 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_id=organization_id, + 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_id, + 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_id is not None: + _path_params['organizationId'] = organization_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 + # 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/{organizationId}/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_id: 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 + + Delete a source connector user + + :param organization_id: (required) + :type organization_id: 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_id=organization_id, + 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_id: 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 + + Delete a source connector user + + :param organization_id: (required) + :type organization_id: 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_id=organization_id, + 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_id: 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 + + Delete a source connector user + + :param organization_id: (required) + :type organization_id: 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_id=organization_id, + 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_id, + 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_id is not None: + _path_params['organizationId'] = organization_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 + # 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/{organizationId}/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_source_connector( + self, + organization_id: 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, + ) -> SourceConnector: + """Get a source connector + + Get a source connector + + :param organization_id: (required) + :type organization_id: 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._get_source_connector_serialize( + organization_id=organization_id, + 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': "SourceConnector", + '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_source_connector_with_http_info( + self, + organization_id: 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[SourceConnector]: + """Get a source connector + + Get a source connector + + :param organization_id: (required) + :type organization_id: 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._get_source_connector_serialize( + organization_id=organization_id, + 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': "SourceConnector", + '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_source_connector_without_preload_content( + self, + organization_id: 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: + """Get a source connector + + Get a source connector + + :param organization_id: (required) + :type organization_id: 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._get_source_connector_serialize( + organization_id=organization_id, + 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': "SourceConnector", + '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_source_connector_serialize( + self, + organization_id, + 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_id is not None: + _path_params['organizationId'] = organization_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 + # 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='GET', + resource_path='/org/{organizationId}/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 get_source_connectors( + self, + organization_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, + ) -> GetSourceConnectors200Response: + """Get all existing source connectors + + Get all existing source connectors + + :param organization_id: (required) + :type organization_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_source_connectors_serialize( + organization_id=organization_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetSourceConnectors200Response", + '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_source_connectors_with_http_info( + self, + organization_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[GetSourceConnectors200Response]: + """Get all existing source connectors + + Get all existing source connectors + + :param organization_id: (required) + :type organization_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_source_connectors_serialize( + organization_id=organization_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetSourceConnectors200Response", + '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_source_connectors_without_preload_content( + self, + organization_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 all existing source connectors + + Get all existing source connectors + + :param organization_id: (required) + :type organization_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_source_connectors_serialize( + organization_id=organization_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetSourceConnectors200Response", + '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_source_connectors_serialize( + self, + organization_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_id is not None: + _path_params['organizationId'] = organization_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='GET', + resource_path='/org/{organizationId}/connectors/sources', + 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 update_source_connector( + self, + organization_id: StrictStr, + source_connector_id: StrictStr, + update_source_connector_request: UpdateSourceConnectorRequest, + _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, + ) -> UpdateSourceConnectorResponse: + """Update a source connector + + Update a source connector + + :param organization_id: (required) + :type organization_id: str + :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 + 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._update_source_connector_serialize( + organization_id=organization_id, + source_connector_id=source_connector_id, + update_source_connector_request=update_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': "UpdateSourceConnectorResponse", + '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 update_source_connector_with_http_info( + self, + organization_id: StrictStr, + source_connector_id: StrictStr, + update_source_connector_request: UpdateSourceConnectorRequest, + _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[UpdateSourceConnectorResponse]: + """Update a source connector + + Update a source connector + + :param organization_id: (required) + :type organization_id: str + :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 + 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._update_source_connector_serialize( + organization_id=organization_id, + source_connector_id=source_connector_id, + update_source_connector_request=update_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': "UpdateSourceConnectorResponse", + '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 update_source_connector_without_preload_content( + self, + organization_id: StrictStr, + source_connector_id: StrictStr, + update_source_connector_request: UpdateSourceConnectorRequest, + _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: + """Update a source connector + + Update a source connector + + :param organization_id: (required) + :type organization_id: str + :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 + 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._update_source_connector_serialize( + organization_id=organization_id, + source_connector_id=source_connector_id, + update_source_connector_request=update_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': "UpdateSourceConnectorResponse", + '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 _update_source_connector_serialize( + self, + organization_id, + source_connector_id, + update_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_id is not None: + _path_params['organizationId'] = organization_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 + # process the body parameter + if update_source_connector_request is not None: + _body_params = update_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='PATCH', + resource_path='/org/{organizationId}/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 update_user_in_source_connector( + self, + organization_id: StrictStr, + source_connector_id: StrictStr, + update_user_in_source_connector_request: UpdateUserInSourceConnectorRequest, + _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, + ) -> UpdateUserInSourceConnectorResponse: + """Update a source connector user + + Update a source connector user + + :param organization_id: (required) + :type organization_id: str + :param source_connector_id: (required) + :type source_connector_id: str + :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 + (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._update_user_in_source_connector_serialize( + organization_id=organization_id, + source_connector_id=source_connector_id, + update_user_in_source_connector_request=update_user_in_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': "UpdateUserInSourceConnectorResponse", + '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 update_user_in_source_connector_with_http_info( + self, + organization_id: StrictStr, + source_connector_id: StrictStr, + update_user_in_source_connector_request: UpdateUserInSourceConnectorRequest, + _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[UpdateUserInSourceConnectorResponse]: + """Update a source connector user + + Update a source connector user + + :param organization_id: (required) + :type organization_id: str + :param source_connector_id: (required) + :type source_connector_id: str + :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 + (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._update_user_in_source_connector_serialize( + organization_id=organization_id, + source_connector_id=source_connector_id, + update_user_in_source_connector_request=update_user_in_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': "UpdateUserInSourceConnectorResponse", + '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 update_user_in_source_connector_without_preload_content( + self, + organization_id: StrictStr, + source_connector_id: StrictStr, + update_user_in_source_connector_request: UpdateUserInSourceConnectorRequest, + _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: + """Update a source connector user + + Update a source connector user + + :param organization_id: (required) + :type organization_id: str + :param source_connector_id: (required) + :type source_connector_id: str + :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 + (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._update_user_in_source_connector_serialize( + organization_id=organization_id, + source_connector_id=source_connector_id, + update_user_in_source_connector_request=update_user_in_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': "UpdateUserInSourceConnectorResponse", + '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 _update_user_in_source_connector_serialize( + self, + organization_id, + source_connector_id, + update_user_in_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_id is not None: + _path_params['organizationId'] = organization_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 + # process the body parameter + if update_user_in_source_connector_request is not None: + _body_params = update_user_in_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='PATCH', + resource_path='/org/{organizationId}/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 + ) + + diff --git a/src/python/vectorize_client/api/uploads_api.py b/src/python/vectorize_client/api/uploads_api.py index 4372dde..986eee2 100644 --- a/src/python/vectorize_client/api/uploads_api.py +++ b/src/python/vectorize_client/api/uploads_api.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -43,8 +43,9 @@ def __init__(self, api_client=None) -> None: @validate_call def delete_file_from_connector( self, - organization: StrictStr, + organization_id: StrictStr, connector_id: StrictStr, + file_name: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -58,13 +59,16 @@ def delete_file_from_connector( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> DeleteFileResponse: - """Delete a file from a file upload connector + """Delete a file from a File Upload connector + Delete a file from a File Upload connector - :param organization: (required) - :type organization: str + :param organization_id: (required) + :type organization_id: str :param connector_id: (required) :type connector_id: str + :param file_name: (required) + :type file_name: 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 @@ -88,8 +92,9 @@ def delete_file_from_connector( """ # noqa: E501 _param = self._delete_file_from_connector_serialize( - organization=organization, + organization_id=organization_id, connector_id=connector_id, + file_name=file_name, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -118,8 +123,9 @@ def delete_file_from_connector( @validate_call def delete_file_from_connector_with_http_info( self, - organization: StrictStr, + organization_id: StrictStr, connector_id: StrictStr, + file_name: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -133,13 +139,16 @@ def delete_file_from_connector_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[DeleteFileResponse]: - """Delete a file from a file upload connector + """Delete a file from a File Upload connector + Delete a file from a File Upload connector - :param organization: (required) - :type organization: str + :param organization_id: (required) + :type organization_id: str :param connector_id: (required) :type connector_id: str + :param file_name: (required) + :type file_name: 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 @@ -163,8 +172,9 @@ def delete_file_from_connector_with_http_info( """ # noqa: E501 _param = self._delete_file_from_connector_serialize( - organization=organization, + organization_id=organization_id, connector_id=connector_id, + file_name=file_name, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -193,8 +203,9 @@ def delete_file_from_connector_with_http_info( @validate_call def delete_file_from_connector_without_preload_content( self, - organization: StrictStr, + organization_id: StrictStr, connector_id: StrictStr, + file_name: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -208,13 +219,16 @@ def delete_file_from_connector_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Delete a file from a file upload connector + """Delete a file from a File Upload connector + Delete a file from a File Upload connector - :param organization: (required) - :type organization: str + :param organization_id: (required) + :type organization_id: str :param connector_id: (required) :type connector_id: str + :param file_name: (required) + :type file_name: 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 @@ -238,8 +252,9 @@ def delete_file_from_connector_without_preload_content( """ # noqa: E501 _param = self._delete_file_from_connector_serialize( - organization=organization, + organization_id=organization_id, connector_id=connector_id, + file_name=file_name, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -263,8 +278,9 @@ def delete_file_from_connector_without_preload_content( def _delete_file_from_connector_serialize( self, - organization, + organization_id, connector_id, + file_name, _request_auth, _content_type, _headers, @@ -286,10 +302,12 @@ def _delete_file_from_connector_serialize( _body_params: Optional[bytes] = None # process the path parameters - if organization is not None: - _path_params['organization'] = organization + if organization_id is not None: + _path_params['organizationId'] = organization_id if connector_id is not None: _path_params['connectorId'] = connector_id + if file_name is not None: + _path_params['fileName'] = file_name # process the query parameters # process the header parameters # process the form parameters @@ -312,7 +330,7 @@ def _delete_file_from_connector_serialize( return self.api_client.param_serialize( method='DELETE', - resource_path='/org/{organization}/uploads/{connectorId}/files', + resource_path='/org/{organizationId}/uploads/{connectorId}/files/{fileName}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -331,7 +349,7 @@ def _delete_file_from_connector_serialize( @validate_call def get_upload_files_from_connector( self, - organization: StrictStr, + organization_id: StrictStr, connector_id: StrictStr, _request_timeout: Union[ None, @@ -348,9 +366,10 @@ def get_upload_files_from_connector( ) -> GetUploadFilesResponse: """Get uploaded files from a file upload connector + Get uploaded files from a file upload connector - :param organization: (required) - :type organization: str + :param organization_id: (required) + :type organization_id: str :param connector_id: (required) :type connector_id: str :param _request_timeout: timeout setting for this request. If one @@ -376,7 +395,7 @@ def get_upload_files_from_connector( """ # noqa: E501 _param = self._get_upload_files_from_connector_serialize( - organization=organization, + organization_id=organization_id, connector_id=connector_id, _request_auth=_request_auth, _content_type=_content_type, @@ -406,7 +425,7 @@ def get_upload_files_from_connector( @validate_call def get_upload_files_from_connector_with_http_info( self, - organization: StrictStr, + organization_id: StrictStr, connector_id: StrictStr, _request_timeout: Union[ None, @@ -423,9 +442,10 @@ def get_upload_files_from_connector_with_http_info( ) -> ApiResponse[GetUploadFilesResponse]: """Get uploaded files from a file upload connector + Get uploaded files from a file upload connector - :param organization: (required) - :type organization: str + :param organization_id: (required) + :type organization_id: str :param connector_id: (required) :type connector_id: str :param _request_timeout: timeout setting for this request. If one @@ -451,7 +471,7 @@ def get_upload_files_from_connector_with_http_info( """ # noqa: E501 _param = self._get_upload_files_from_connector_serialize( - organization=organization, + organization_id=organization_id, connector_id=connector_id, _request_auth=_request_auth, _content_type=_content_type, @@ -481,7 +501,7 @@ def get_upload_files_from_connector_with_http_info( @validate_call def get_upload_files_from_connector_without_preload_content( self, - organization: StrictStr, + organization_id: StrictStr, connector_id: StrictStr, _request_timeout: Union[ None, @@ -498,9 +518,10 @@ def get_upload_files_from_connector_without_preload_content( ) -> RESTResponseType: """Get uploaded files from a file upload connector + Get uploaded files from a file upload connector - :param organization: (required) - :type organization: str + :param organization_id: (required) + :type organization_id: str :param connector_id: (required) :type connector_id: str :param _request_timeout: timeout setting for this request. If one @@ -526,7 +547,7 @@ def get_upload_files_from_connector_without_preload_content( """ # noqa: E501 _param = self._get_upload_files_from_connector_serialize( - organization=organization, + organization_id=organization_id, connector_id=connector_id, _request_auth=_request_auth, _content_type=_content_type, @@ -551,7 +572,7 @@ def get_upload_files_from_connector_without_preload_content( def _get_upload_files_from_connector_serialize( self, - organization, + organization_id, connector_id, _request_auth, _content_type, @@ -574,8 +595,8 @@ def _get_upload_files_from_connector_serialize( _body_params: Optional[bytes] = None # process the path parameters - if organization is not None: - _path_params['organization'] = organization + if organization_id is not None: + _path_params['organizationId'] = organization_id if connector_id is not None: _path_params['connectorId'] = connector_id # process the query parameters @@ -600,7 +621,7 @@ def _get_upload_files_from_connector_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/org/{organization}/uploads/{connectorId}/files', + resource_path='/org/{organizationId}/uploads/{connectorId}/files', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -619,7 +640,7 @@ def _get_upload_files_from_connector_serialize( @validate_call def start_file_upload_to_connector( self, - organization: StrictStr, + organization_id: StrictStr, connector_id: StrictStr, start_file_upload_to_connector_request: StartFileUploadToConnectorRequest, _request_timeout: Union[ @@ -637,9 +658,10 @@ def start_file_upload_to_connector( ) -> StartFileUploadToConnectorResponse: """Upload a file to a file upload connector + Upload a file to a file upload connector - :param organization: (required) - :type organization: str + :param organization_id: (required) + :type organization_id: str :param connector_id: (required) :type connector_id: str :param start_file_upload_to_connector_request: (required) @@ -667,7 +689,7 @@ def start_file_upload_to_connector( """ # noqa: E501 _param = self._start_file_upload_to_connector_serialize( - organization=organization, + organization_id=organization_id, connector_id=connector_id, start_file_upload_to_connector_request=start_file_upload_to_connector_request, _request_auth=_request_auth, @@ -698,7 +720,7 @@ def start_file_upload_to_connector( @validate_call def start_file_upload_to_connector_with_http_info( self, - organization: StrictStr, + organization_id: StrictStr, connector_id: StrictStr, start_file_upload_to_connector_request: StartFileUploadToConnectorRequest, _request_timeout: Union[ @@ -716,9 +738,10 @@ def start_file_upload_to_connector_with_http_info( ) -> ApiResponse[StartFileUploadToConnectorResponse]: """Upload a file to a file upload connector + Upload a file to a file upload connector - :param organization: (required) - :type organization: str + :param organization_id: (required) + :type organization_id: str :param connector_id: (required) :type connector_id: str :param start_file_upload_to_connector_request: (required) @@ -746,7 +769,7 @@ def start_file_upload_to_connector_with_http_info( """ # noqa: E501 _param = self._start_file_upload_to_connector_serialize( - organization=organization, + organization_id=organization_id, connector_id=connector_id, start_file_upload_to_connector_request=start_file_upload_to_connector_request, _request_auth=_request_auth, @@ -777,7 +800,7 @@ def start_file_upload_to_connector_with_http_info( @validate_call def start_file_upload_to_connector_without_preload_content( self, - organization: StrictStr, + organization_id: StrictStr, connector_id: StrictStr, start_file_upload_to_connector_request: StartFileUploadToConnectorRequest, _request_timeout: Union[ @@ -795,9 +818,10 @@ def start_file_upload_to_connector_without_preload_content( ) -> RESTResponseType: """Upload a file to a file upload connector + Upload a file to a file upload connector - :param organization: (required) - :type organization: str + :param organization_id: (required) + :type organization_id: str :param connector_id: (required) :type connector_id: str :param start_file_upload_to_connector_request: (required) @@ -825,7 +849,7 @@ def start_file_upload_to_connector_without_preload_content( """ # noqa: E501 _param = self._start_file_upload_to_connector_serialize( - organization=organization, + organization_id=organization_id, connector_id=connector_id, start_file_upload_to_connector_request=start_file_upload_to_connector_request, _request_auth=_request_auth, @@ -851,7 +875,7 @@ def start_file_upload_to_connector_without_preload_content( def _start_file_upload_to_connector_serialize( self, - organization, + organization_id, connector_id, start_file_upload_to_connector_request, _request_auth, @@ -875,8 +899,8 @@ def _start_file_upload_to_connector_serialize( _body_params: Optional[bytes] = None # process the path parameters - if organization is not None: - _path_params['organization'] = organization + if organization_id is not None: + _path_params['organizationId'] = organization_id if connector_id is not None: _path_params['connectorId'] = connector_id # process the query parameters @@ -916,7 +940,7 @@ def _start_file_upload_to_connector_serialize( return self.api_client.param_serialize( method='PUT', - resource_path='/org/{organization}/uploads/{connectorId}/files', + resource_path='/org/{organizationId}/uploads/{connectorId}/files', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/src/python/vectorize_client/api_client.py b/src/python/vectorize_client/api_client.py index b7ca4c8..b24877d 100644 --- a/src/python/vectorize_client/api_client.py +++ b/src/python/vectorize_client/api_client.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/src/python/vectorize_client/configuration.py b/src/python/vectorize_client/configuration.py index ab09b9a..ad26f41 100644 --- a/src/python/vectorize_client/configuration.py +++ b/src/python/vectorize_client/configuration.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/src/python/vectorize_client/exceptions.py b/src/python/vectorize_client/exceptions.py index 1ebc80d..e0947a6 100644 --- a/src/python/vectorize_client/exceptions.py +++ b/src/python/vectorize_client/exceptions.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/src/python/vectorize_client/models/__init__.py b/src/python/vectorize_client/models/__init__.py index 7280265..4c944c8 100644 --- a/src/python/vectorize_client/models/__init__.py +++ b/src/python/vectorize_client/models/__init__.py @@ -2,9 +2,9 @@ # flake8: noqa """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -16,23 +16,60 @@ # 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_connector_input import AIPlatformConnectorInput +from vectorize_client.models.ai_platform_connector_schema import AIPlatformConnectorSchema from vectorize_client.models.ai_platform_type import AIPlatformType +from vectorize_client.models.ai_platform_type_for_pipeline import AIPlatformTypeForPipeline +from vectorize_client.models.awss3_auth_config import AWSS3AuthConfig +from vectorize_client.models.awss3_config import AWSS3Config +from vectorize_client.models.azureaisearch_auth_config import AZUREAISEARCHAuthConfig +from vectorize_client.models.azureaisearch_config import AZUREAISEARCHConfig +from vectorize_client.models.azureblob_auth_config import AZUREBLOBAuthConfig +from vectorize_client.models.azureblob_config import AZUREBLOBConfig 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.add_user_to_source_connector_request_selected_files_value import AddUserToSourceConnectorRequestSelectedFilesValue -from vectorize_client.models.advanced_query import AdvancedQuery -from vectorize_client.models.create_ai_platform_connector import CreateAIPlatformConnector +from vectorize_client.models.add_user_to_source_connector_request_selected_files import AddUserToSourceConnectorRequestSelectedFiles +from vectorize_client.models.add_user_to_source_connector_request_selected_files_any_of import AddUserToSourceConnectorRequestSelectedFilesAnyOf +from vectorize_client.models.add_user_to_source_connector_request_selected_files_any_of_value import AddUserToSourceConnectorRequestSelectedFilesAnyOfValue +from vectorize_client.models.aws_s3 import AwsS3 +from vectorize_client.models.aws_s31 import AwsS31 +from vectorize_client.models.azure_blob import AzureBlob +from vectorize_client.models.azure_blob1 import AzureBlob1 +from vectorize_client.models.azureaisearch import Azureaisearch +from vectorize_client.models.azureaisearch1 import Azureaisearch1 +from vectorize_client.models.bedrock_auth_config import BEDROCKAuthConfig +from vectorize_client.models.bedrock import Bedrock +from vectorize_client.models.bedrock1 import Bedrock1 +from vectorize_client.models.capella_auth_config import CAPELLAAuthConfig +from vectorize_client.models.capella_config import CAPELLAConfig +from vectorize_client.models.confluence_auth_config import CONFLUENCEAuthConfig +from vectorize_client.models.confluence_config import CONFLUENCEConfig +from vectorize_client.models.capella import Capella +from vectorize_client.models.capella1 import Capella1 +from vectorize_client.models.confluence import Confluence +from vectorize_client.models.confluence1 import Confluence1 +from vectorize_client.models.create_ai_platform_connector_request import CreateAIPlatformConnectorRequest 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_request import CreateDestinationConnectorRequest 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_request import CreateSourceConnectorRequest from vectorize_client.models.create_source_connector_response import CreateSourceConnectorResponse 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.datastax_auth_config import DATASTAXAuthConfig +from vectorize_client.models.datastax_config import DATASTAXConfig +from vectorize_client.models.discord_auth_config import DISCORDAuthConfig +from vectorize_client.models.discord_config import DISCORDConfig +from vectorize_client.models.dropbox_auth_config import DROPBOXAuthConfig +from vectorize_client.models.dropbox_config import DROPBOXConfig +from vectorize_client.models.dropboxoauth_auth_config import DROPBOXOAUTHAuthConfig +from vectorize_client.models.dropboxoauthmulti_auth_config import DROPBOXOAUTHMULTIAuthConfig +from vectorize_client.models.dropboxoauthmulticustom_auth_config import DROPBOXOAUTHMULTICUSTOMAuthConfig +from vectorize_client.models.datastax import Datastax +from vectorize_client.models.datastax1 import Datastax1 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 @@ -40,13 +77,53 @@ from vectorize_client.models.delete_pipeline_response import DeletePipelineResponse from vectorize_client.models.delete_source_connector_response import DeleteSourceConnectorResponse from vectorize_client.models.destination_connector import DestinationConnector +from vectorize_client.models.destination_connector_input import DestinationConnectorInput +from vectorize_client.models.destination_connector_input_config import DestinationConnectorInputConfig from vectorize_client.models.destination_connector_schema import DestinationConnectorSchema from vectorize_client.models.destination_connector_type import DestinationConnectorType +from vectorize_client.models.destination_connector_type_for_pipeline import DestinationConnectorTypeForPipeline +from vectorize_client.models.discord import Discord +from vectorize_client.models.discord1 import Discord1 from vectorize_client.models.document import Document +from vectorize_client.models.dropbox import Dropbox +from vectorize_client.models.dropbox_oauth import DropboxOauth +from vectorize_client.models.dropbox_oauth_multi import DropboxOauthMulti +from vectorize_client.models.dropbox_oauth_multi_custom import DropboxOauthMultiCustom +from vectorize_client.models.elastic_auth_config import ELASTICAuthConfig +from vectorize_client.models.elastic_config import ELASTICConfig +from vectorize_client.models.elastic import Elastic +from vectorize_client.models.elastic1 import Elastic1 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_type import ExtractionType +from vectorize_client.models.fileupload_auth_config import FILEUPLOADAuthConfig +from vectorize_client.models.firecrawl_auth_config import FIRECRAWLAuthConfig +from vectorize_client.models.firecrawl_config import FIRECRAWLConfig +from vectorize_client.models.fireflies_auth_config import FIREFLIESAuthConfig +from vectorize_client.models.fireflies_config import FIREFLIESConfig +from vectorize_client.models.file_upload import FileUpload +from vectorize_client.models.file_upload1 import FileUpload1 +from vectorize_client.models.firecrawl import Firecrawl +from vectorize_client.models.firecrawl1 import Firecrawl1 +from vectorize_client.models.fireflies import Fireflies +from vectorize_client.models.fireflies1 import Fireflies1 +from vectorize_client.models.gcs_auth_config import GCSAuthConfig +from vectorize_client.models.gcs_config import GCSConfig +from vectorize_client.models.github_auth_config import GITHUBAuthConfig +from vectorize_client.models.github_config import GITHUBConfig +from vectorize_client.models.gmail_auth_config import GMAILAuthConfig +from vectorize_client.models.gmail_config import GMAILConfig +from vectorize_client.models.googledrive_auth_config import GOOGLEDRIVEAuthConfig +from vectorize_client.models.googledrive_config import GOOGLEDRIVEConfig +from vectorize_client.models.googledriveoauth_auth_config import GOOGLEDRIVEOAUTHAuthConfig +from vectorize_client.models.googledriveoauth_config import GOOGLEDRIVEOAUTHConfig +from vectorize_client.models.googledriveoauthmulti_auth_config import GOOGLEDRIVEOAUTHMULTIAuthConfig +from vectorize_client.models.googledriveoauthmulticustom_auth_config import GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig +from vectorize_client.models.googledriveoauthmulticustom_config import GOOGLEDRIVEOAUTHMULTICUSTOMConfig +from vectorize_client.models.googledriveoauthmulti_config import GOOGLEDRIVEOAUTHMULTIConfig +from vectorize_client.models.gcs import Gcs +from vectorize_client.models.gcs1 import Gcs1 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_destination_connectors200_response import GetDestinationConnectors200Response @@ -57,23 +134,75 @@ 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.github import Github +from vectorize_client.models.github1 import Github1 +from vectorize_client.models.google_drive import GoogleDrive +from vectorize_client.models.google_drive1 import GoogleDrive1 +from vectorize_client.models.google_drive_oauth import GoogleDriveOauth +from vectorize_client.models.google_drive_oauth_multi import GoogleDriveOauthMulti +from vectorize_client.models.google_drive_oauth_multi_custom import GoogleDriveOauthMultiCustom +from vectorize_client.models.intercom_auth_config import INTERCOMAuthConfig +from vectorize_client.models.intercom_config import INTERCOMConfig +from vectorize_client.models.intercom import Intercom +from vectorize_client.models.milvus_auth_config import MILVUSAuthConfig +from vectorize_client.models.milvus_config import MILVUSConfig from vectorize_client.models.metadata_extraction_strategy import MetadataExtractionStrategy from vectorize_client.models.metadata_extraction_strategy_schema import MetadataExtractionStrategySchema +from vectorize_client.models.milvus import Milvus +from vectorize_client.models.milvus1 import Milvus1 from vectorize_client.models.n8_n_config import N8NConfig +from vectorize_client.models.notion_auth_config import NOTIONAuthConfig +from vectorize_client.models.notion_config import NOTIONConfig +from vectorize_client.models.notionoauthmulti_auth_config import NOTIONOAUTHMULTIAuthConfig +from vectorize_client.models.notionoauthmulticustom_auth_config import NOTIONOAUTHMULTICUSTOMAuthConfig +from vectorize_client.models.notion import Notion +from vectorize_client.models.notion_oauth_multi import NotionOauthMulti +from vectorize_client.models.notion_oauth_multi_custom import NotionOauthMultiCustom +from vectorize_client.models.onedrive_auth_config import ONEDRIVEAuthConfig +from vectorize_client.models.onedrive_config import ONEDRIVEConfig +from vectorize_client.models.openai_auth_config import OPENAIAuthConfig +from vectorize_client.models.one_drive import OneDrive +from vectorize_client.models.one_drive1 import OneDrive1 +from vectorize_client.models.openai import Openai +from vectorize_client.models.openai1 import Openai1 +from vectorize_client.models.pinecone_auth_config import PINECONEAuthConfig +from vectorize_client.models.pinecone_config import PINECONEConfig +from vectorize_client.models.postgresql_auth_config import POSTGRESQLAuthConfig +from vectorize_client.models.postgresql_config import POSTGRESQLConfig +from vectorize_client.models.pinecone import Pinecone +from vectorize_client.models.pinecone1 import Pinecone1 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.postgresql import Postgresql +from vectorize_client.models.postgresql1 import Postgresql1 +from vectorize_client.models.qdrant_auth_config import QDRANTAuthConfig +from vectorize_client.models.qdrant_config import QDRANTConfig +from vectorize_client.models.qdrant import Qdrant +from vectorize_client.models.qdrant1 import Qdrant1 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_response import RetrieveDocumentsResponse +from vectorize_client.models.sharepoint_auth_config import SHAREPOINTAuthConfig +from vectorize_client.models.sharepoint_config import SHAREPOINTConfig +from vectorize_client.models.singlestore_auth_config import SINGLESTOREAuthConfig +from vectorize_client.models.singlestore_config import SINGLESTOREConfig +from vectorize_client.models.supabase_auth_config import SUPABASEAuthConfig +from vectorize_client.models.supabase_config import SUPABASEConfig from vectorize_client.models.schedule_schema import ScheduleSchema from vectorize_client.models.schedule_schema_type import ScheduleSchemaType +from vectorize_client.models.sharepoint import Sharepoint +from vectorize_client.models.sharepoint1 import Sharepoint1 +from vectorize_client.models.singlestore import Singlestore +from vectorize_client.models.singlestore1 import Singlestore1 from vectorize_client.models.source_connector import SourceConnector +from vectorize_client.models.source_connector_input import SourceConnectorInput +from vectorize_client.models.source_connector_input_config import SourceConnectorInputConfig 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 @@ -86,6 +215,12 @@ from vectorize_client.models.start_file_upload_to_connector_response import StartFileUploadToConnectorResponse from vectorize_client.models.start_pipeline_response import StartPipelineResponse from vectorize_client.models.stop_pipeline_response import StopPipelineResponse +from vectorize_client.models.supabase import Supabase +from vectorize_client.models.supabase1 import Supabase1 +from vectorize_client.models.turbopuffer_auth_config import TURBOPUFFERAuthConfig +from vectorize_client.models.turbopuffer_config import TURBOPUFFERConfig +from vectorize_client.models.turbopuffer import Turbopuffer +from vectorize_client.models.turbopuffer1 import Turbopuffer1 from vectorize_client.models.update_ai_platform_connector_request import UpdateAIPlatformConnectorRequest from vectorize_client.models.update_ai_platform_connector_response import UpdateAIPlatformConnectorResponse from vectorize_client.models.update_destination_connector_request import UpdateDestinationConnectorRequest @@ -98,3 +233,17 @@ 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 +from vectorize_client.models.vertex_auth_config import VERTEXAuthConfig +from vectorize_client.models.voyage_auth_config import VOYAGEAuthConfig +from vectorize_client.models.vertex import Vertex +from vectorize_client.models.vertex1 import Vertex1 +from vectorize_client.models.voyage import Voyage +from vectorize_client.models.voyage1 import Voyage1 +from vectorize_client.models.weaviate_auth_config import WEAVIATEAuthConfig +from vectorize_client.models.weaviate_config import WEAVIATEConfig +from vectorize_client.models.webcrawler_auth_config import WEBCRAWLERAuthConfig +from vectorize_client.models.webcrawler_config import WEBCRAWLERConfig +from vectorize_client.models.weaviate import Weaviate +from vectorize_client.models.weaviate1 import Weaviate1 +from vectorize_client.models.web_crawler import WebCrawler +from vectorize_client.models.web_crawler1 import WebCrawler1 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 index ad136d9..206bf9f 100644 --- 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 @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) 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 index ab54109..663c68f 100644 --- 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 @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,8 +18,8 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List -from vectorize_client.models.add_user_to_source_connector_request_selected_files_value import AddUserToSourceConnectorRequestSelectedFilesValue +from typing import Any, ClassVar, Dict, List, Optional +from vectorize_client.models.add_user_to_source_connector_request_selected_files import AddUserToSourceConnectorRequestSelectedFiles from typing import Optional, Set from typing_extensions import Self @@ -28,9 +28,10 @@ class AddUserToSourceConnectorRequest(BaseModel): AddUserToSourceConnectorRequest """ # noqa: E501 user_id: StrictStr = Field(alias="userId") - selected_files: Dict[str, AddUserToSourceConnectorRequestSelectedFilesValue] = Field(alias="selectedFiles") - refresh_token: StrictStr = Field(alias="refreshToken") - __properties: ClassVar[List[str]] = ["userId", "selectedFiles", "refreshToken"] + selected_files: AddUserToSourceConnectorRequestSelectedFiles = Field(alias="selectedFiles") + refresh_token: Optional[StrictStr] = Field(default=None, alias="refreshToken") + access_token: Optional[StrictStr] = Field(default=None, alias="accessToken") + __properties: ClassVar[List[str]] = ["userId", "selectedFiles", "refreshToken", "accessToken"] model_config = ConfigDict( populate_by_name=True, @@ -71,13 +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 each value in selected_files (dict) - _field_dict = {} + # override the default output from pydantic by calling `to_dict()` of selected_files if self.selected_files: - for _key_selected_files in self.selected_files: - if self.selected_files[_key_selected_files]: - _field_dict[_key_selected_files] = self.selected_files[_key_selected_files].to_dict() - _dict['selectedFiles'] = _field_dict + _dict['selectedFiles'] = self.selected_files.to_dict() return _dict @classmethod @@ -91,13 +88,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "userId": obj.get("userId"), - "selectedFiles": dict( - (_k, AddUserToSourceConnectorRequestSelectedFilesValue.from_dict(_v)) - for _k, _v in obj["selectedFiles"].items() - ) - if obj.get("selectedFiles") is not None - else None, - "refreshToken": obj.get("refreshToken") + "selectedFiles": AddUserToSourceConnectorRequestSelectedFiles.from_dict(obj["selectedFiles"]) if obj.get("selectedFiles") is not None else None, + "refreshToken": obj.get("refreshToken"), + "accessToken": obj.get("accessToken") }) return _obj diff --git a/src/python/vectorize_client/models/add_user_to_source_connector_request_selected_files.py b/src/python/vectorize_client/models/add_user_to_source_connector_request_selected_files.py new file mode 100644 index 0000000..7e2ea62 --- /dev/null +++ b/src/python/vectorize_client/models/add_user_to_source_connector_request_selected_files.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 +from inspect import getfullargspec +import json +import pprint +import re # noqa: F401 +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Dict, Optional +from vectorize_client.models.add_user_to_source_connector_request_selected_files_any_of import AddUserToSourceConnectorRequestSelectedFilesAnyOf +from vectorize_client.models.add_user_to_source_connector_request_selected_files_any_of_value import AddUserToSourceConnectorRequestSelectedFilesAnyOfValue +from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict +from typing_extensions import Literal, Self +from pydantic import Field + +ADDUSERTOSOURCECONNECTORREQUESTSELECTEDFILES_ANY_OF_SCHEMAS = ["AddUserToSourceConnectorRequestSelectedFilesAnyOf", "Dict[str, AddUserToSourceConnectorRequestSelectedFilesAnyOfValue]"] + +class AddUserToSourceConnectorRequestSelectedFiles(BaseModel): + """ + AddUserToSourceConnectorRequestSelectedFiles + """ + + # data type: Dict[str, AddUserToSourceConnectorRequestSelectedFilesAnyOfValue] + anyof_schema_1_validator: Optional[Dict[str, AddUserToSourceConnectorRequestSelectedFilesAnyOfValue]] = None + # data type: AddUserToSourceConnectorRequestSelectedFilesAnyOf + anyof_schema_2_validator: Optional[AddUserToSourceConnectorRequestSelectedFilesAnyOf] = None + if TYPE_CHECKING: + actual_instance: Optional[Union[AddUserToSourceConnectorRequestSelectedFilesAnyOf, Dict[str, AddUserToSourceConnectorRequestSelectedFilesAnyOfValue]]] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = { "AddUserToSourceConnectorRequestSelectedFilesAnyOf", "Dict[str, AddUserToSourceConnectorRequestSelectedFilesAnyOfValue]" } + + model_config = { + "validate_assignment": True, + "protected_namespaces": (), + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_anyof(cls, v): + instance = AddUserToSourceConnectorRequestSelectedFiles.model_construct() + error_messages = [] + # validate data type: Dict[str, AddUserToSourceConnectorRequestSelectedFilesAnyOfValue] + try: + instance.anyof_schema_1_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: AddUserToSourceConnectorRequestSelectedFilesAnyOf + if not isinstance(v, AddUserToSourceConnectorRequestSelectedFilesAnyOf): + error_messages.append(f"Error! Input type `{type(v)}` is not `AddUserToSourceConnectorRequestSelectedFilesAnyOf`") + else: + return v + + if error_messages: + # no match + raise ValueError("No match found when setting the actual_instance in AddUserToSourceConnectorRequestSelectedFiles with anyOf schemas: AddUserToSourceConnectorRequestSelectedFilesAnyOf, Dict[str, AddUserToSourceConnectorRequestSelectedFilesAnyOfValue]. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Dict[str, Any]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + # deserialize data into Dict[str, AddUserToSourceConnectorRequestSelectedFilesAnyOfValue] + try: + # validation + instance.anyof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_1_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # anyof_schema_2_validator: Optional[AddUserToSourceConnectorRequestSelectedFilesAnyOf] = None + try: + instance.actual_instance = AddUserToSourceConnectorRequestSelectedFilesAnyOf.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if error_messages: + # no match + raise ValueError("No match found when deserializing the JSON string into AddUserToSourceConnectorRequestSelectedFiles with anyOf schemas: AddUserToSourceConnectorRequestSelectedFilesAnyOf, Dict[str, AddUserToSourceConnectorRequestSelectedFilesAnyOfValue]. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], AddUserToSourceConnectorRequestSelectedFilesAnyOf, Dict[str, AddUserToSourceConnectorRequestSelectedFilesAnyOfValue]]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/src/python/vectorize_client/models/add_user_to_source_connector_request_selected_files_any_of.py b/src/python/vectorize_client/models/add_user_to_source_connector_request_selected_files_any_of.py new file mode 100644 index 0000000..4a4bb31 --- /dev/null +++ b/src/python/vectorize_client/models/add_user_to_source_connector_request_selected_files_any_of.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 AddUserToSourceConnectorRequestSelectedFilesAnyOf(BaseModel): + """ + AddUserToSourceConnectorRequestSelectedFilesAnyOf + """ # noqa: E501 + page_ids: Optional[List[StrictStr]] = Field(default=None, alias="pageIds") + database_ids: Optional[List[StrictStr]] = Field(default=None, alias="databaseIds") + __properties: ClassVar[List[str]] = ["pageIds", "databaseIds"] + + 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 AddUserToSourceConnectorRequestSelectedFilesAnyOf 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 AddUserToSourceConnectorRequestSelectedFilesAnyOf from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "pageIds": obj.get("pageIds"), + "databaseIds": obj.get("databaseIds") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/add_user_to_source_connector_request_selected_files_value.py b/src/python/vectorize_client/models/add_user_to_source_connector_request_selected_files_any_of_value.py similarity index 89% rename from src/python/vectorize_client/models/add_user_to_source_connector_request_selected_files_value.py rename to src/python/vectorize_client/models/add_user_to_source_connector_request_selected_files_any_of_value.py index c640930..32e1ffe 100644 --- a/src/python/vectorize_client/models/add_user_to_source_connector_request_selected_files_value.py +++ b/src/python/vectorize_client/models/add_user_to_source_connector_request_selected_files_any_of_value.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,9 +22,9 @@ from typing import Optional, Set from typing_extensions import Self -class AddUserToSourceConnectorRequestSelectedFilesValue(BaseModel): +class AddUserToSourceConnectorRequestSelectedFilesAnyOfValue(BaseModel): """ - AddUserToSourceConnectorRequestSelectedFilesValue + AddUserToSourceConnectorRequestSelectedFilesAnyOfValue """ # noqa: E501 name: StrictStr mime_type: StrictStr = Field(alias="mimeType") @@ -48,7 +48,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AddUserToSourceConnectorRequestSelectedFilesValue from a JSON string""" + """Create an instance of AddUserToSourceConnectorRequestSelectedFilesAnyOfValue from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -73,7 +73,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AddUserToSourceConnectorRequestSelectedFilesValue from a dict""" + """Create an instance of AddUserToSourceConnectorRequestSelectedFilesAnyOfValue from a dict""" if obj is None: return None diff --git a/src/python/vectorize_client/models/ai_platform.py b/src/python/vectorize_client/models/ai_platform.py index 14401d9..42f1631 100644 --- a/src/python/vectorize_client/models/ai_platform.py +++ b/src/python/vectorize_client/models/ai_platform.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/src/python/vectorize_client/models/ai_platform_config_schema.py b/src/python/vectorize_client/models/ai_platform_config_schema.py index 2ae054f..2714072 100644 --- a/src/python/vectorize_client/models/ai_platform_config_schema.py +++ b/src/python/vectorize_client/models/ai_platform_config_schema.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/src/python/vectorize_client/models/ai_platform_connector_input.py b/src/python/vectorize_client/models/ai_platform_connector_input.py new file mode 100644 index 0000000..3ec891b --- /dev/null +++ b/src/python/vectorize_client/models/ai_platform_connector_input.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 import Optional, Set +from typing_extensions import Self + +class AIPlatformConnectorInput(BaseModel): + """ + AI platform configuration + """ # noqa: E501 + id: StrictStr = Field(description="Unique identifier for the AI platform") + type: StrictStr = Field(description="Type of AI platform") + config: Optional[Any] = Field(description="Configuration specific to the AI platform") + __properties: ClassVar[List[str]] = ["id", "type", "config"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['BEDROCK', 'VERTEX', 'OPENAI', 'VOYAGE']): + raise ValueError("must be one of enum values ('BEDROCK', 'VERTEX', 'OPENAI', 'VOYAGE')") + 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 AIPlatformConnectorInput 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 config (nullable) is None + # and model_fields_set contains the field + if self.config is None and "config" in self.model_fields_set: + _dict['config'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AIPlatformConnectorInput 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"), + "config": obj.get("config") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/ai_platform_schema.py b/src/python/vectorize_client/models/ai_platform_connector_schema.py similarity index 86% rename from src/python/vectorize_client/models/ai_platform_schema.py rename to src/python/vectorize_client/models/ai_platform_connector_schema.py index e998401..88d1b6a 100644 --- a/src/python/vectorize_client/models/ai_platform_schema.py +++ b/src/python/vectorize_client/models/ai_platform_connector_schema.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -20,16 +20,16 @@ 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 vectorize_client.models.ai_platform_type_for_pipeline import AIPlatformTypeForPipeline from typing import Optional, Set from typing_extensions import Self -class AIPlatformSchema(BaseModel): +class AIPlatformConnectorSchema(BaseModel): """ - AIPlatformSchema + AIPlatformConnectorSchema """ # noqa: E501 id: StrictStr - type: AIPlatformType + type: AIPlatformTypeForPipeline config: AIPlatformConfigSchema __properties: ClassVar[List[str]] = ["id", "type", "config"] @@ -51,7 +51,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AIPlatformSchema from a JSON string""" + """Create an instance of AIPlatformConnectorSchema from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -79,7 +79,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AIPlatformSchema from a dict""" + """Create an instance of AIPlatformConnectorSchema from a dict""" if obj is None: return None diff --git a/src/python/vectorize_client/models/ai_platform_type.py b/src/python/vectorize_client/models/ai_platform_type.py index e60cf2e..5bd164e 100644 --- a/src/python/vectorize_client/models/ai_platform_type.py +++ b/src/python/vectorize_client/models/ai_platform_type.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -30,7 +30,6 @@ class AIPlatformType(str, Enum): VERTEX = 'VERTEX' OPENAI = 'OPENAI' VOYAGE = 'VOYAGE' - VECTORIZE = 'VECTORIZE' @classmethod def from_json(cls, json_str: str) -> Self: diff --git a/src/python/vectorize_client/models/ai_platform_type_for_pipeline.py b/src/python/vectorize_client/models/ai_platform_type_for_pipeline.py new file mode 100644 index 0000000..c41ab57 --- /dev/null +++ b/src/python/vectorize_client/models/ai_platform_type_for_pipeline.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 AIPlatformTypeForPipeline(str, Enum): + """ + AIPlatformTypeForPipeline + """ + + """ + 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 AIPlatformTypeForPipeline from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/src/python/vectorize_client/models/aws_s3.py b/src/python/vectorize_client/models/aws_s3.py new file mode 100644 index 0000000..f4f1ff0 --- /dev/null +++ b/src/python/vectorize_client/models/aws_s3.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 +from vectorize_client.models.awss3_config import AWSS3Config +from typing import Optional, Set +from typing_extensions import Self + +class AwsS3(BaseModel): + """ + AwsS3 + """ # noqa: E501 + name: StrictStr = Field(description="Name of the connector") + type: StrictStr = Field(description="Connector type (must be \"AWS_S3\")") + config: AWSS3Config + __properties: ClassVar[List[str]] = ["name", "type", "config"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['AWS_S3']): + raise ValueError("must be one of enum values ('AWS_S3')") + 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 AwsS3 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 config + if self.config: + _dict['config'] = self.config.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AwsS3 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": AWSS3Config.from_dict(obj["config"]) if obj.get("config") is not None else None + }) + return _obj + + diff --git a/src/python/vectorize_client/models/aws_s31.py b/src/python/vectorize_client/models/aws_s31.py new file mode 100644 index 0000000..920facc --- /dev/null +++ b/src/python/vectorize_client/models/aws_s31.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, Optional +from vectorize_client.models.awss3_config import AWSS3Config +from typing import Optional, Set +from typing_extensions import Self + +class AwsS31(BaseModel): + """ + AwsS31 + """ # noqa: E501 + config: Optional[AWSS3Config] = None + __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 AwsS31 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 config + if self.config: + _dict['config'] = self.config.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AwsS31 from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "config": AWSS3Config.from_dict(obj["config"]) if obj.get("config") is not None else None + }) + return _obj + + diff --git a/src/python/vectorize_client/models/awss3_auth_config.py b/src/python/vectorize_client/models/awss3_auth_config.py new file mode 100644 index 0000000..3a61101 --- /dev/null +++ b/src/python/vectorize_client/models/awss3_auth_config.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, StrictBool, 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 AWSS3AuthConfig(BaseModel): + """ + Authentication configuration for Amazon S3 + """ # noqa: E501 + name: StrictStr = Field(description="Name. Example: Enter a descriptive name") + access_key: Annotated[str, Field(strict=True)] = Field(description="Access Key. Example: Enter Access Key", alias="access-key") + secret_key: Annotated[str, Field(strict=True)] = Field(description="Secret Key. Example: Enter Secret Key", alias="secret-key") + bucket_name: StrictStr = Field(description="Bucket Name. Example: Enter your S3 Bucket Name", alias="bucket-name") + endpoint: Optional[StrictStr] = Field(default=None, description="Endpoint. Example: Enter Endpoint URL") + region: Optional[StrictStr] = Field(default=None, description="Region. Example: Region Name") + archiver: StrictBool = Field(description="Allow as archive destination") + __properties: ClassVar[List[str]] = ["name", "access-key", "secret-key", "bucket-name", "endpoint", "region", "archiver"] + + @field_validator('access_key') + def access_key_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^\S.*\S$|^\S$", value): + raise ValueError(r"must validate the regular expression /^\S.*\S$|^\S$/") + return value + + @field_validator('secret_key') + def secret_key_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^\S.*\S$|^\S$", value): + raise ValueError(r"must validate the regular expression /^\S.*\S$|^\S$/") + 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 AWSS3AuthConfig 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 AWSS3AuthConfig 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"), + "access-key": obj.get("access-key"), + "secret-key": obj.get("secret-key"), + "bucket-name": obj.get("bucket-name"), + "endpoint": obj.get("endpoint"), + "region": obj.get("region"), + "archiver": obj.get("archiver") if obj.get("archiver") is not None else False + }) + return _obj + + diff --git a/src/python/vectorize_client/models/awss3_config.py b/src/python/vectorize_client/models/awss3_config.py new file mode 100644 index 0000000..6a73186 --- /dev/null +++ b/src/python/vectorize_client/models/awss3_config.py @@ -0,0 +1,106 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, StrictBool, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class AWSS3Config(BaseModel): + """ + Configuration for Amazon S3 connector + """ # noqa: E501 + file_extensions: List[StrictStr] = Field(description="File Extensions", alias="file-extensions") + idle_time: Union[Annotated[float, Field(strict=True, ge=1)], Annotated[int, Field(strict=True, ge=1)]] = Field(description="Check for updates every (seconds)", alias="idle-time") + recursive: Optional[StrictBool] = Field(default=None, description="Recursively scan all folders in the bucket") + path_prefix: Optional[StrictStr] = Field(default=None, description="Path Prefix", alias="path-prefix") + path_metadata_regex: Optional[StrictStr] = Field(default=None, description="Path Metadata Regex", alias="path-metadata-regex") + path_regex_group_names: Optional[StrictStr] = Field(default=None, description="Path Regex Group Names. Example: Enter Group Name", alias="path-regex-group-names") + __properties: ClassVar[List[str]] = ["file-extensions", "idle-time", "recursive", "path-prefix", "path-metadata-regex", "path-regex-group-names"] + + @field_validator('file_extensions') + def file_extensions_validate_enum(cls, value): + """Validates the enum""" + for i in value: + if i not in set(['pdf', 'doc,docx,gdoc,odt,rtf,epub', 'ppt,pptx,gslides', 'xls,xlsx,gsheets,ods', 'eml,msg', 'txt', 'html,htm', 'md', 'json', 'csv', 'jpg,jpeg,png,webp,svg,gif']): + raise ValueError("each list item must be one of ('pdf', 'doc,docx,gdoc,odt,rtf,epub', 'ppt,pptx,gslides', 'xls,xlsx,gsheets,ods', 'eml,msg', 'txt', 'html,htm', 'md', 'json', 'csv', 'jpg,jpeg,png,webp,svg,gif')") + 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 AWSS3Config 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 AWSS3Config from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "file-extensions": obj.get("file-extensions"), + "idle-time": obj.get("idle-time") if obj.get("idle-time") is not None else 5, + "recursive": obj.get("recursive"), + "path-prefix": obj.get("path-prefix"), + "path-metadata-regex": obj.get("path-metadata-regex"), + "path-regex-group-names": obj.get("path-regex-group-names") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/azure_blob.py b/src/python/vectorize_client/models/azure_blob.py new file mode 100644 index 0000000..7ff2bb4 --- /dev/null +++ b/src/python/vectorize_client/models/azure_blob.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 +from vectorize_client.models.azureblob_config import AZUREBLOBConfig +from typing import Optional, Set +from typing_extensions import Self + +class AzureBlob(BaseModel): + """ + AzureBlob + """ # noqa: E501 + name: StrictStr = Field(description="Name of the connector") + type: StrictStr = Field(description="Connector type (must be \"AZURE_BLOB\")") + config: AZUREBLOBConfig + __properties: ClassVar[List[str]] = ["name", "type", "config"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['AZURE_BLOB']): + raise ValueError("must be one of enum values ('AZURE_BLOB')") + 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 AzureBlob 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 config + if self.config: + _dict['config'] = self.config.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AzureBlob 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": AZUREBLOBConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + }) + return _obj + + diff --git a/src/python/vectorize_client/models/azure_blob1.py b/src/python/vectorize_client/models/azure_blob1.py new file mode 100644 index 0000000..07e7364 --- /dev/null +++ b/src/python/vectorize_client/models/azure_blob1.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, Optional +from vectorize_client.models.azureblob_config import AZUREBLOBConfig +from typing import Optional, Set +from typing_extensions import Self + +class AzureBlob1(BaseModel): + """ + AzureBlob1 + """ # noqa: E501 + config: Optional[AZUREBLOBConfig] = None + __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 AzureBlob1 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 config + if self.config: + _dict['config'] = self.config.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AzureBlob1 from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "config": AZUREBLOBConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + }) + return _obj + + diff --git a/src/python/vectorize_client/models/azureaisearch.py b/src/python/vectorize_client/models/azureaisearch.py new file mode 100644 index 0000000..a95bb57 --- /dev/null +++ b/src/python/vectorize_client/models/azureaisearch.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 +from vectorize_client.models.azureaisearch_config import AZUREAISEARCHConfig +from typing import Optional, Set +from typing_extensions import Self + +class Azureaisearch(BaseModel): + """ + Azureaisearch + """ # noqa: E501 + name: StrictStr = Field(description="Name of the connector") + type: StrictStr = Field(description="Connector type (must be \"AZUREAISEARCH\")") + config: AZUREAISEARCHConfig + __properties: ClassVar[List[str]] = ["name", "type", "config"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['AZUREAISEARCH']): + raise ValueError("must be one of enum values ('AZUREAISEARCH')") + 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 Azureaisearch 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 config + if self.config: + _dict['config'] = self.config.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Azureaisearch 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": AZUREAISEARCHConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + }) + return _obj + + diff --git a/src/python/vectorize_client/models/azureaisearch1.py b/src/python/vectorize_client/models/azureaisearch1.py new file mode 100644 index 0000000..c89f2d6 --- /dev/null +++ b/src/python/vectorize_client/models/azureaisearch1.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, Optional +from vectorize_client.models.azureaisearch_config import AZUREAISEARCHConfig +from typing import Optional, Set +from typing_extensions import Self + +class Azureaisearch1(BaseModel): + """ + Azureaisearch1 + """ # noqa: E501 + config: Optional[AZUREAISEARCHConfig] = None + __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 Azureaisearch1 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 config + if self.config: + _dict['config'] = self.config.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Azureaisearch1 from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "config": AZUREAISEARCHConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + }) + return _obj + + diff --git a/src/python/vectorize_client/models/azureaisearch_auth_config.py b/src/python/vectorize_client/models/azureaisearch_auth_config.py new file mode 100644 index 0000000..5673570 --- /dev/null +++ b/src/python/vectorize_client/models/azureaisearch_auth_config.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class AZUREAISEARCHAuthConfig(BaseModel): + """ + Authentication configuration for Azure AI Search + """ # noqa: E501 + name: StrictStr = Field(description="Name. Example: Enter a descriptive name for your Azure AI Search integration") + service_name: StrictStr = Field(description="Azure AI Search Service Name. Example: Enter your Azure AI Search service name", alias="service-name") + api_key: Annotated[str, Field(strict=True)] = Field(description="API Key. Example: Enter your API key", alias="api-key") + __properties: ClassVar[List[str]] = ["name", "service-name", "api-key"] + + @field_validator('api_key') + def api_key_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^\S.*\S$|^\S$", value): + raise ValueError(r"must validate the regular expression /^\S.*\S$|^\S$/") + 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 AZUREAISEARCHAuthConfig 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 AZUREAISEARCHAuthConfig 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"), + "service-name": obj.get("service-name"), + "api-key": obj.get("api-key") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/azureaisearch_config.py b/src/python/vectorize_client/models/azureaisearch_config.py new file mode 100644 index 0000000..d7740e4 --- /dev/null +++ b/src/python/vectorize_client/models/azureaisearch_config.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, field_validator +from typing import Any, ClassVar, Dict, List +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class AZUREAISEARCHConfig(BaseModel): + """ + Configuration for Azure AI Search connector + """ # noqa: E501 + index: Annotated[str, Field(strict=True)] = Field(description="Index Name. Example: Enter index name") + __properties: ClassVar[List[str]] = ["index"] + + @field_validator('index') + def index_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^[a-z0-9][a-z0-9-]*[a-z0-9]$", value): + raise ValueError(r"must validate the regular expression /^[a-z0-9][a-z0-9-]*[a-z0-9]$/") + 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 AZUREAISEARCHConfig 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 AZUREAISEARCHConfig from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "index": obj.get("index") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/azureblob_auth_config.py b/src/python/vectorize_client/models/azureblob_auth_config.py new file mode 100644 index 0000000..7c2f278 --- /dev/null +++ b/src/python/vectorize_client/models/azureblob_auth_config.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, SecretStr, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AZUREBLOBAuthConfig(BaseModel): + """ + Authentication configuration for Azure Blob Storage + """ # noqa: E501 + name: StrictStr = Field(description="Name. Example: Enter a descriptive name") + storage_account_name: StrictStr = Field(description="Storage Account Name. Example: Enter Storage Account Name", alias="storage-account-name") + storage_account_key: SecretStr = Field(description="Storage Account Key. Example: Enter Storage Account Key", alias="storage-account-key") + container: StrictStr = Field(description="Container. Example: Enter Container Name") + endpoint: Optional[StrictStr] = Field(default=None, description="Endpoint. Example: Enter Endpoint URL") + __properties: ClassVar[List[str]] = ["name", "storage-account-name", "storage-account-key", "container", "endpoint"] + + 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 AZUREBLOBAuthConfig 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 AZUREBLOBAuthConfig 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"), + "storage-account-name": obj.get("storage-account-name"), + "storage-account-key": obj.get("storage-account-key"), + "container": obj.get("container"), + "endpoint": obj.get("endpoint") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/azureblob_config.py b/src/python/vectorize_client/models/azureblob_config.py new file mode 100644 index 0000000..acfecc3 --- /dev/null +++ b/src/python/vectorize_client/models/azureblob_config.py @@ -0,0 +1,106 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, StrictBool, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class AZUREBLOBConfig(BaseModel): + """ + Configuration for Azure Blob Storage connector + """ # noqa: E501 + file_extensions: List[StrictStr] = Field(description="File Extensions", alias="file-extensions") + idle_time: Union[Annotated[float, Field(strict=True, ge=1)], Annotated[int, Field(strict=True, ge=1)]] = Field(description="Polling Interval (seconds)", alias="idle-time") + recursive: Optional[StrictBool] = Field(default=None, description="Recursively scan all folders in the bucket") + path_prefix: Optional[StrictStr] = Field(default=None, description="Path Prefix", alias="path-prefix") + path_metadata_regex: Optional[StrictStr] = Field(default=None, description="Path Metadata Regex", alias="path-metadata-regex") + path_regex_group_names: Optional[StrictStr] = Field(default=None, description="Path Regex Group Names. Example: Enter Group Name", alias="path-regex-group-names") + __properties: ClassVar[List[str]] = ["file-extensions", "idle-time", "recursive", "path-prefix", "path-metadata-regex", "path-regex-group-names"] + + @field_validator('file_extensions') + def file_extensions_validate_enum(cls, value): + """Validates the enum""" + for i in value: + if i not in set(['pdf', 'doc,docx,gdoc,odt,rtf,epub', 'ppt,pptx,gslides', 'xls,xlsx,gsheets,ods', 'eml,msg', 'txt', 'html,htm', 'md', 'json', 'csv', 'jpg,jpeg,png,webp,svg,gif']): + raise ValueError("each list item must be one of ('pdf', 'doc,docx,gdoc,odt,rtf,epub', 'ppt,pptx,gslides', 'xls,xlsx,gsheets,ods', 'eml,msg', 'txt', 'html,htm', 'md', 'json', 'csv', 'jpg,jpeg,png,webp,svg,gif')") + 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 AZUREBLOBConfig 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 AZUREBLOBConfig from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "file-extensions": obj.get("file-extensions"), + "idle-time": obj.get("idle-time") if obj.get("idle-time") is not None else 5, + "recursive": obj.get("recursive"), + "path-prefix": obj.get("path-prefix"), + "path-metadata-regex": obj.get("path-metadata-regex"), + "path-regex-group-names": obj.get("path-regex-group-names") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/bedrock.py b/src/python/vectorize_client/models/bedrock.py new file mode 100644 index 0000000..63e73f8 --- /dev/null +++ b/src/python/vectorize_client/models/bedrock.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 +from vectorize_client.models.bedrock_auth_config import BEDROCKAuthConfig +from typing import Optional, Set +from typing_extensions import Self + +class Bedrock(BaseModel): + """ + Bedrock + """ # noqa: E501 + name: StrictStr = Field(description="Name of the connector") + type: StrictStr = Field(description="Connector type (must be \"BEDROCK\")") + config: BEDROCKAuthConfig + __properties: ClassVar[List[str]] = ["name", "type", "config"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['BEDROCK']): + raise ValueError("must be one of enum values ('BEDROCK')") + 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 Bedrock 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 config + if self.config: + _dict['config'] = self.config.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Bedrock 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": BEDROCKAuthConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + }) + return _obj + + diff --git a/src/python/vectorize_client/models/create_source_connector.py b/src/python/vectorize_client/models/bedrock1.py similarity index 76% rename from src/python/vectorize_client/models/create_source_connector.py rename to src/python/vectorize_client/models/bedrock1.py index 1499d77..88df20e 100644 --- a/src/python/vectorize_client/models/create_source_connector.py +++ b/src/python/vectorize_client/models/bedrock1.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -17,20 +17,17 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +from pydantic import BaseModel, ConfigDict, Field 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): +class Bedrock1(BaseModel): """ - CreateSourceConnector + Bedrock1 """ # noqa: E501 - name: StrictStr - type: SourceConnectorType - config: Optional[Dict[str, Any]] = None - __properties: ClassVar[List[str]] = ["name", "type", "config"] + config: Optional[Dict[str, Any]] = Field(default=None, description="Configuration updates") + __properties: ClassVar[List[str]] = ["config"] model_config = ConfigDict( populate_by_name=True, @@ -50,7 +47,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of CreateSourceConnector from a JSON string""" + """Create an instance of Bedrock1 from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -75,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of CreateSourceConnector from a dict""" + """Create an instance of Bedrock1 from a dict""" if obj is None: return None @@ -83,8 +80,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: 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/bedrock_auth_config.py b/src/python/vectorize_client/models/bedrock_auth_config.py new file mode 100644 index 0000000..7037ac1 --- /dev/null +++ b/src/python/vectorize_client/models/bedrock_auth_config.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class BEDROCKAuthConfig(BaseModel): + """ + Authentication configuration for Amazon Bedrock + """ # noqa: E501 + name: StrictStr = Field(description="Name. Example: Enter a descriptive name for your Amazon Bedrock integration") + access_key: Annotated[str, Field(strict=True)] = Field(description="Access Key. Example: Enter your Amazon Bedrock Access Key", alias="access-key") + key: Annotated[str, Field(strict=True)] = Field(description="Secret Key. Example: Enter your Amazon Bedrock Secret Key") + region: StrictStr = Field(description="Region. Example: Region Name") + __properties: ClassVar[List[str]] = ["name", "access-key", "key", "region"] + + @field_validator('access_key') + def access_key_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^\S.*\S$|^\S$", value): + raise ValueError(r"must validate the regular expression /^\S.*\S$|^\S$/") + return value + + @field_validator('key') + def key_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^\S.*\S$|^\S$", value): + raise ValueError(r"must validate the regular expression /^\S.*\S$|^\S$/") + 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 BEDROCKAuthConfig 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 BEDROCKAuthConfig 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"), + "access-key": obj.get("access-key"), + "key": obj.get("key"), + "region": obj.get("region") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/capella.py b/src/python/vectorize_client/models/capella.py new file mode 100644 index 0000000..851cd6a --- /dev/null +++ b/src/python/vectorize_client/models/capella.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 +from vectorize_client.models.capella_config import CAPELLAConfig +from typing import Optional, Set +from typing_extensions import Self + +class Capella(BaseModel): + """ + Capella + """ # noqa: E501 + name: StrictStr = Field(description="Name of the connector") + type: StrictStr = Field(description="Connector type (must be \"CAPELLA\")") + config: CAPELLAConfig + __properties: ClassVar[List[str]] = ["name", "type", "config"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['CAPELLA']): + raise ValueError("must be one of enum values ('CAPELLA')") + 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 Capella 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 config + if self.config: + _dict['config'] = self.config.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Capella 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": CAPELLAConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + }) + return _obj + + diff --git a/src/python/vectorize_client/models/capella1.py b/src/python/vectorize_client/models/capella1.py new file mode 100644 index 0000000..7838f1f --- /dev/null +++ b/src/python/vectorize_client/models/capella1.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, Optional +from vectorize_client.models.capella_config import CAPELLAConfig +from typing import Optional, Set +from typing_extensions import Self + +class Capella1(BaseModel): + """ + Capella1 + """ # noqa: E501 + config: Optional[CAPELLAConfig] = None + __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 Capella1 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 config + if self.config: + _dict['config'] = self.config.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Capella1 from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "config": CAPELLAConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + }) + return _obj + + diff --git a/src/python/vectorize_client/models/capella_auth_config.py b/src/python/vectorize_client/models/capella_auth_config.py new file mode 100644 index 0000000..a109563 --- /dev/null +++ b/src/python/vectorize_client/models/capella_auth_config.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, SecretStr, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class CAPELLAAuthConfig(BaseModel): + """ + Authentication configuration for Couchbase Capella + """ # noqa: E501 + name: StrictStr = Field(description="Name. Example: Enter a descriptive name for your Capella integration") + username: StrictStr = Field(description="Cluster Access Name. Example: Enter your cluster access name") + password: SecretStr = Field(description="Cluster Access Password. Example: Enter your cluster access password") + connection_string: StrictStr = Field(description="Connection String. Example: Enter your connection string", alias="connection-string") + __properties: ClassVar[List[str]] = ["name", "username", "password", "connection-string"] + + 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 CAPELLAAuthConfig 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 CAPELLAAuthConfig 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"), + "username": obj.get("username"), + "password": obj.get("password"), + "connection-string": obj.get("connection-string") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/capella_config.py b/src/python/vectorize_client/models/capella_config.py new file mode 100644 index 0000000..70de054 --- /dev/null +++ b/src/python/vectorize_client/models/capella_config.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class CAPELLAConfig(BaseModel): + """ + Configuration for Couchbase Capella connector + """ # noqa: E501 + bucket: StrictStr = Field(description="Bucket Name. Example: Enter bucket name") + scope: StrictStr = Field(description="Scope Name. Example: Enter scope name") + collection: StrictStr = Field(description="Collection Name. Example: Enter collection name") + index: Annotated[str, Field(strict=True, max_length=255)] = Field(description="Search Index Name. Example: Enter search index name") + __properties: ClassVar[List[str]] = ["bucket", "scope", "collection", "index"] + + 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 CAPELLAConfig 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 CAPELLAConfig from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "bucket": obj.get("bucket"), + "scope": obj.get("scope"), + "collection": obj.get("collection"), + "index": obj.get("index") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/confluence.py b/src/python/vectorize_client/models/confluence.py new file mode 100644 index 0000000..190a6a3 --- /dev/null +++ b/src/python/vectorize_client/models/confluence.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 +from vectorize_client.models.confluence_config import CONFLUENCEConfig +from typing import Optional, Set +from typing_extensions import Self + +class Confluence(BaseModel): + """ + Confluence + """ # noqa: E501 + name: StrictStr = Field(description="Name of the connector") + type: StrictStr = Field(description="Connector type (must be \"CONFLUENCE\")") + config: CONFLUENCEConfig + __properties: ClassVar[List[str]] = ["name", "type", "config"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['CONFLUENCE']): + raise ValueError("must be one of enum values ('CONFLUENCE')") + 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 Confluence 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 config + if self.config: + _dict['config'] = self.config.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Confluence 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": CONFLUENCEConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + }) + return _obj + + diff --git a/src/python/vectorize_client/models/confluence1.py b/src/python/vectorize_client/models/confluence1.py new file mode 100644 index 0000000..58ba20d --- /dev/null +++ b/src/python/vectorize_client/models/confluence1.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, Optional +from vectorize_client.models.confluence_config import CONFLUENCEConfig +from typing import Optional, Set +from typing_extensions import Self + +class Confluence1(BaseModel): + """ + Confluence1 + """ # noqa: E501 + config: Optional[CONFLUENCEConfig] = None + __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 Confluence1 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 config + if self.config: + _dict['config'] = self.config.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Confluence1 from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "config": CONFLUENCEConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + }) + return _obj + + diff --git a/src/python/vectorize_client/models/confluence_auth_config.py b/src/python/vectorize_client/models/confluence_auth_config.py new file mode 100644 index 0000000..e8b6ebc --- /dev/null +++ b/src/python/vectorize_client/models/confluence_auth_config.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class CONFLUENCEAuthConfig(BaseModel): + """ + Authentication configuration for Confluence + """ # noqa: E501 + name: StrictStr = Field(description="Name. Example: Enter a descriptive name") + username: StrictStr = Field(description="Username. Example: Enter your Confluence username") + api_token: Annotated[str, Field(strict=True)] = Field(description="API Token. Example: Enter your Confluence API token", alias="api-token") + domain: StrictStr = Field(description="Domain. Example: Enter your Confluence domain (e.g. my-domain.atlassian.net or confluence..com)") + __properties: ClassVar[List[str]] = ["name", "username", "api-token", "domain"] + + @field_validator('api_token') + def api_token_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^\S.*\S$|^\S$", value): + raise ValueError(r"must validate the regular expression /^\S.*\S$|^\S$/") + 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 CONFLUENCEAuthConfig 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 CONFLUENCEAuthConfig 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"), + "username": obj.get("username"), + "api-token": obj.get("api-token"), + "domain": obj.get("domain") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/confluence_config.py b/src/python/vectorize_client/models/confluence_config.py new file mode 100644 index 0000000..01f896e --- /dev/null +++ b/src/python/vectorize_client/models/confluence_config.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 CONFLUENCEConfig(BaseModel): + """ + Configuration for Confluence connector + """ # noqa: E501 + spaces: StrictStr = Field(description="Spaces. Example: Spaces to include (name, key or id)") + root_parents: Optional[StrictStr] = Field(default=None, description="Root Parents. Example: Enter root parent pages", alias="root-parents") + __properties: ClassVar[List[str]] = ["spaces", "root-parents"] + + 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 CONFLUENCEConfig 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 CONFLUENCEConfig from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "spaces": obj.get("spaces"), + "root-parents": obj.get("root-parents") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/create_ai_platform_connector_request.py b/src/python/vectorize_client/models/create_ai_platform_connector_request.py new file mode 100644 index 0000000..c69972d --- /dev/null +++ b/src/python/vectorize_client/models/create_ai_platform_connector_request.py @@ -0,0 +1,168 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 +import pprint +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional +from vectorize_client.models.bedrock import Bedrock +from vectorize_client.models.openai import Openai +from vectorize_client.models.vertex import Vertex +from vectorize_client.models.voyage import Voyage +from pydantic import StrictStr, Field +from typing import Union, List, Set, Optional, Dict +from typing_extensions import Literal, Self + +CREATEAIPLATFORMCONNECTORREQUEST_ONE_OF_SCHEMAS = ["Bedrock", "Openai", "Vertex", "Voyage"] + +class CreateAIPlatformConnectorRequest(BaseModel): + """ + CreateAIPlatformConnectorRequest + """ + # data type: Bedrock + oneof_schema_1_validator: Optional[Bedrock] = None + # data type: Vertex + oneof_schema_2_validator: Optional[Vertex] = None + # data type: Openai + oneof_schema_3_validator: Optional[Openai] = None + # data type: Voyage + oneof_schema_4_validator: Optional[Voyage] = None + actual_instance: Optional[Union[Bedrock, Openai, Vertex, Voyage]] = None + one_of_schemas: Set[str] = { "Bedrock", "Openai", "Vertex", "Voyage" } + + model_config = ConfigDict( + validate_assignment=True, + protected_namespaces=(), + ) + + + discriminator_value_class_map: Dict[str, str] = { + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + instance = CreateAIPlatformConnectorRequest.model_construct() + error_messages = [] + match = 0 + # validate data type: Bedrock + if not isinstance(v, Bedrock): + error_messages.append(f"Error! Input type `{type(v)}` is not `Bedrock`") + else: + match += 1 + # validate data type: Vertex + if not isinstance(v, Vertex): + error_messages.append(f"Error! Input type `{type(v)}` is not `Vertex`") + else: + match += 1 + # validate data type: Openai + if not isinstance(v, Openai): + error_messages.append(f"Error! Input type `{type(v)}` is not `Openai`") + else: + match += 1 + # validate data type: Voyage + if not isinstance(v, Voyage): + error_messages.append(f"Error! Input type `{type(v)}` is not `Voyage`") + else: + match += 1 + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in CreateAIPlatformConnectorRequest with oneOf schemas: Bedrock, Openai, Vertex, Voyage. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in CreateAIPlatformConnectorRequest with oneOf schemas: Bedrock, Openai, Vertex, Voyage. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + match = 0 + + # deserialize data into Bedrock + try: + instance.actual_instance = Bedrock.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into Vertex + try: + instance.actual_instance = Vertex.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into Openai + try: + instance.actual_instance = Openai.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into Voyage + try: + instance.actual_instance = Voyage.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into CreateAIPlatformConnectorRequest with oneOf schemas: Bedrock, Openai, Vertex, Voyage. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into CreateAIPlatformConnectorRequest with oneOf schemas: Bedrock, Openai, Vertex, Voyage. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], Bedrock, Openai, Vertex, Voyage]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + 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 a783ca8..bad0328 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 @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -28,8 +28,8 @@ class CreateAIPlatformConnectorResponse(BaseModel): CreateAIPlatformConnectorResponse """ # noqa: E501 message: StrictStr - connectors: List[CreatedAIPlatformConnector] - __properties: ClassVar[List[str]] = ["message", "connectors"] + connector: CreatedAIPlatformConnector + __properties: ClassVar[List[str]] = ["message", "connector"] model_config = ConfigDict( populate_by_name=True, @@ -70,13 +70,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 each item in connectors (list) - _items = [] - if self.connectors: - for _item_connectors in self.connectors: - if _item_connectors: - _items.append(_item_connectors.to_dict()) - _dict['connectors'] = _items + # override the default output from pydantic by calling `to_dict()` of connector + if self.connector: + _dict['connector'] = self.connector.to_dict() return _dict @classmethod @@ -90,7 +86,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "message": obj.get("message"), - "connectors": [CreatedAIPlatformConnector.from_dict(_item) for _item in obj["connectors"]] if obj.get("connectors") is not None else None + "connector": CreatedAIPlatformConnector.from_dict(obj["connector"]) if obj.get("connector") is not None else None }) return _obj diff --git a/src/python/vectorize_client/models/create_destination_connector_request.py b/src/python/vectorize_client/models/create_destination_connector_request.py new file mode 100644 index 0000000..f8bc05a --- /dev/null +++ b/src/python/vectorize_client/models/create_destination_connector_request.py @@ -0,0 +1,280 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 +import pprint +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional +from vectorize_client.models.azureaisearch import Azureaisearch +from vectorize_client.models.capella import Capella +from vectorize_client.models.datastax import Datastax +from vectorize_client.models.elastic import Elastic +from vectorize_client.models.milvus import Milvus +from vectorize_client.models.pinecone import Pinecone +from vectorize_client.models.postgresql import Postgresql +from vectorize_client.models.qdrant import Qdrant +from vectorize_client.models.singlestore import Singlestore +from vectorize_client.models.supabase import Supabase +from vectorize_client.models.turbopuffer import Turbopuffer +from vectorize_client.models.weaviate import Weaviate +from pydantic import StrictStr, Field +from typing import Union, List, Set, Optional, Dict +from typing_extensions import Literal, Self + +CREATEDESTINATIONCONNECTORREQUEST_ONE_OF_SCHEMAS = ["Azureaisearch", "Capella", "Datastax", "Elastic", "Milvus", "Pinecone", "Postgresql", "Qdrant", "Singlestore", "Supabase", "Turbopuffer", "Weaviate"] + +class CreateDestinationConnectorRequest(BaseModel): + """ + CreateDestinationConnectorRequest + """ + # data type: Capella + oneof_schema_1_validator: Optional[Capella] = None + # data type: Datastax + oneof_schema_2_validator: Optional[Datastax] = None + # data type: Elastic + oneof_schema_3_validator: Optional[Elastic] = None + # data type: Pinecone + oneof_schema_4_validator: Optional[Pinecone] = None + # data type: Singlestore + oneof_schema_5_validator: Optional[Singlestore] = None + # data type: Milvus + oneof_schema_6_validator: Optional[Milvus] = None + # data type: Postgresql + oneof_schema_7_validator: Optional[Postgresql] = None + # data type: Qdrant + oneof_schema_8_validator: Optional[Qdrant] = None + # data type: Supabase + oneof_schema_9_validator: Optional[Supabase] = None + # data type: Weaviate + oneof_schema_10_validator: Optional[Weaviate] = None + # data type: Azureaisearch + oneof_schema_11_validator: Optional[Azureaisearch] = None + # data type: Turbopuffer + oneof_schema_12_validator: Optional[Turbopuffer] = None + actual_instance: Optional[Union[Azureaisearch, Capella, Datastax, Elastic, Milvus, Pinecone, Postgresql, Qdrant, Singlestore, Supabase, Turbopuffer, Weaviate]] = None + one_of_schemas: Set[str] = { "Azureaisearch", "Capella", "Datastax", "Elastic", "Milvus", "Pinecone", "Postgresql", "Qdrant", "Singlestore", "Supabase", "Turbopuffer", "Weaviate" } + + model_config = ConfigDict( + validate_assignment=True, + protected_namespaces=(), + ) + + + discriminator_value_class_map: Dict[str, str] = { + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + instance = CreateDestinationConnectorRequest.model_construct() + error_messages = [] + match = 0 + # validate data type: Capella + if not isinstance(v, Capella): + error_messages.append(f"Error! Input type `{type(v)}` is not `Capella`") + else: + match += 1 + # validate data type: Datastax + if not isinstance(v, Datastax): + error_messages.append(f"Error! Input type `{type(v)}` is not `Datastax`") + else: + match += 1 + # validate data type: Elastic + if not isinstance(v, Elastic): + error_messages.append(f"Error! Input type `{type(v)}` is not `Elastic`") + else: + match += 1 + # validate data type: Pinecone + if not isinstance(v, Pinecone): + error_messages.append(f"Error! Input type `{type(v)}` is not `Pinecone`") + else: + match += 1 + # validate data type: Singlestore + if not isinstance(v, Singlestore): + error_messages.append(f"Error! Input type `{type(v)}` is not `Singlestore`") + else: + match += 1 + # validate data type: Milvus + if not isinstance(v, Milvus): + error_messages.append(f"Error! Input type `{type(v)}` is not `Milvus`") + else: + match += 1 + # validate data type: Postgresql + if not isinstance(v, Postgresql): + error_messages.append(f"Error! Input type `{type(v)}` is not `Postgresql`") + else: + match += 1 + # validate data type: Qdrant + if not isinstance(v, Qdrant): + error_messages.append(f"Error! Input type `{type(v)}` is not `Qdrant`") + else: + match += 1 + # validate data type: Supabase + if not isinstance(v, Supabase): + error_messages.append(f"Error! Input type `{type(v)}` is not `Supabase`") + else: + match += 1 + # validate data type: Weaviate + if not isinstance(v, Weaviate): + error_messages.append(f"Error! Input type `{type(v)}` is not `Weaviate`") + else: + match += 1 + # validate data type: Azureaisearch + if not isinstance(v, Azureaisearch): + error_messages.append(f"Error! Input type `{type(v)}` is not `Azureaisearch`") + else: + match += 1 + # validate data type: Turbopuffer + if not isinstance(v, Turbopuffer): + error_messages.append(f"Error! Input type `{type(v)}` is not `Turbopuffer`") + else: + match += 1 + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in CreateDestinationConnectorRequest with oneOf schemas: Azureaisearch, Capella, Datastax, Elastic, Milvus, Pinecone, Postgresql, Qdrant, Singlestore, Supabase, Turbopuffer, Weaviate. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in CreateDestinationConnectorRequest with oneOf schemas: Azureaisearch, Capella, Datastax, Elastic, Milvus, Pinecone, Postgresql, Qdrant, Singlestore, Supabase, Turbopuffer, Weaviate. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + match = 0 + + # deserialize data into Capella + try: + instance.actual_instance = Capella.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into Datastax + try: + instance.actual_instance = Datastax.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into Elastic + try: + instance.actual_instance = Elastic.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into Pinecone + try: + instance.actual_instance = Pinecone.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into Singlestore + try: + instance.actual_instance = Singlestore.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into Milvus + try: + instance.actual_instance = Milvus.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into Postgresql + try: + instance.actual_instance = Postgresql.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into Qdrant + try: + instance.actual_instance = Qdrant.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into Supabase + try: + instance.actual_instance = Supabase.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into Weaviate + try: + instance.actual_instance = Weaviate.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into Azureaisearch + try: + instance.actual_instance = Azureaisearch.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into Turbopuffer + try: + instance.actual_instance = Turbopuffer.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into CreateDestinationConnectorRequest with oneOf schemas: Azureaisearch, Capella, Datastax, Elastic, Milvus, Pinecone, Postgresql, Qdrant, Singlestore, Supabase, Turbopuffer, Weaviate. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into CreateDestinationConnectorRequest with oneOf schemas: Azureaisearch, Capella, Datastax, Elastic, Milvus, Pinecone, Postgresql, Qdrant, Singlestore, Supabase, Turbopuffer, Weaviate. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], Azureaisearch, Capella, Datastax, Elastic, Milvus, Pinecone, Postgresql, Qdrant, Singlestore, Supabase, Turbopuffer, Weaviate]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + 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 db141d1..94841a2 100644 --- a/src/python/vectorize_client/models/create_destination_connector_response.py +++ b/src/python/vectorize_client/models/create_destination_connector_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -28,8 +28,8 @@ class CreateDestinationConnectorResponse(BaseModel): CreateDestinationConnectorResponse """ # noqa: E501 message: StrictStr - connectors: List[CreatedDestinationConnector] - __properties: ClassVar[List[str]] = ["message", "connectors"] + connector: CreatedDestinationConnector + __properties: ClassVar[List[str]] = ["message", "connector"] model_config = ConfigDict( populate_by_name=True, @@ -70,13 +70,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 each item in connectors (list) - _items = [] - if self.connectors: - for _item_connectors in self.connectors: - if _item_connectors: - _items.append(_item_connectors.to_dict()) - _dict['connectors'] = _items + # override the default output from pydantic by calling `to_dict()` of connector + if self.connector: + _dict['connector'] = self.connector.to_dict() return _dict @classmethod @@ -90,7 +86,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "message": obj.get("message"), - "connectors": [CreatedDestinationConnector.from_dict(_item) for _item in obj["connectors"]] if obj.get("connectors") is not None else None + "connector": CreatedDestinationConnector.from_dict(obj["connector"]) if obj.get("connector") is not None else None }) return _obj diff --git a/src/python/vectorize_client/models/create_pipeline_response.py b/src/python/vectorize_client/models/create_pipeline_response.py index addc0d2..489ec5f 100644 --- a/src/python/vectorize_client/models/create_pipeline_response.py +++ b/src/python/vectorize_client/models/create_pipeline_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/src/python/vectorize_client/models/create_pipeline_response_data.py b/src/python/vectorize_client/models/create_pipeline_response_data.py index c97c4c0..5ca7df5 100644 --- a/src/python/vectorize_client/models/create_pipeline_response_data.py +++ b/src/python/vectorize_client/models/create_pipeline_response_data.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/src/python/vectorize_client/models/create_source_connector_request.py b/src/python/vectorize_client/models/create_source_connector_request.py new file mode 100644 index 0000000..0e06b5d --- /dev/null +++ b/src/python/vectorize_client/models/create_source_connector_request.py @@ -0,0 +1,294 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 +import pprint +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional +from vectorize_client.models.aws_s3 import AwsS3 +from vectorize_client.models.azure_blob import AzureBlob +from vectorize_client.models.confluence import Confluence +from vectorize_client.models.discord import Discord +from vectorize_client.models.file_upload import FileUpload +from vectorize_client.models.firecrawl import Firecrawl +from vectorize_client.models.fireflies import Fireflies +from vectorize_client.models.gcs import Gcs +from vectorize_client.models.github import Github +from vectorize_client.models.google_drive import GoogleDrive +from vectorize_client.models.one_drive import OneDrive +from vectorize_client.models.sharepoint import Sharepoint +from vectorize_client.models.web_crawler import WebCrawler +from pydantic import StrictStr, Field +from typing import Union, List, Set, Optional, Dict +from typing_extensions import Literal, Self + +CREATESOURCECONNECTORREQUEST_ONE_OF_SCHEMAS = ["AwsS3", "AzureBlob", "Confluence", "Discord", "FileUpload", "Firecrawl", "Fireflies", "Gcs", "Github", "GoogleDrive", "OneDrive", "Sharepoint", "WebCrawler"] + +class CreateSourceConnectorRequest(BaseModel): + """ + CreateSourceConnectorRequest + """ + # data type: AwsS3 + oneof_schema_1_validator: Optional[AwsS3] = None + # data type: AzureBlob + oneof_schema_2_validator: Optional[AzureBlob] = None + # data type: Confluence + oneof_schema_3_validator: Optional[Confluence] = None + # data type: Discord + oneof_schema_4_validator: Optional[Discord] = None + # data type: FileUpload + oneof_schema_5_validator: Optional[FileUpload] = None + # data type: GoogleDrive + oneof_schema_6_validator: Optional[GoogleDrive] = None + # data type: Firecrawl + oneof_schema_7_validator: Optional[Firecrawl] = None + # data type: Gcs + oneof_schema_8_validator: Optional[Gcs] = None + # data type: OneDrive + oneof_schema_9_validator: Optional[OneDrive] = None + # data type: Sharepoint + oneof_schema_10_validator: Optional[Sharepoint] = None + # data type: WebCrawler + oneof_schema_11_validator: Optional[WebCrawler] = None + # data type: Github + oneof_schema_12_validator: Optional[Github] = None + # data type: Fireflies + oneof_schema_13_validator: Optional[Fireflies] = None + actual_instance: Optional[Union[AwsS3, AzureBlob, Confluence, Discord, FileUpload, Firecrawl, Fireflies, Gcs, Github, GoogleDrive, OneDrive, Sharepoint, WebCrawler]] = None + one_of_schemas: Set[str] = { "AwsS3", "AzureBlob", "Confluence", "Discord", "FileUpload", "Firecrawl", "Fireflies", "Gcs", "Github", "GoogleDrive", "OneDrive", "Sharepoint", "WebCrawler" } + + model_config = ConfigDict( + validate_assignment=True, + protected_namespaces=(), + ) + + + discriminator_value_class_map: Dict[str, str] = { + } + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + instance = CreateSourceConnectorRequest.model_construct() + error_messages = [] + match = 0 + # validate data type: AwsS3 + if not isinstance(v, AwsS3): + error_messages.append(f"Error! Input type `{type(v)}` is not `AwsS3`") + else: + match += 1 + # validate data type: AzureBlob + if not isinstance(v, AzureBlob): + error_messages.append(f"Error! Input type `{type(v)}` is not `AzureBlob`") + else: + match += 1 + # validate data type: Confluence + if not isinstance(v, Confluence): + error_messages.append(f"Error! Input type `{type(v)}` is not `Confluence`") + else: + match += 1 + # validate data type: Discord + if not isinstance(v, Discord): + error_messages.append(f"Error! Input type `{type(v)}` is not `Discord`") + else: + match += 1 + # validate data type: FileUpload + if not isinstance(v, FileUpload): + error_messages.append(f"Error! Input type `{type(v)}` is not `FileUpload`") + else: + match += 1 + # validate data type: GoogleDrive + if not isinstance(v, GoogleDrive): + error_messages.append(f"Error! Input type `{type(v)}` is not `GoogleDrive`") + else: + match += 1 + # validate data type: Firecrawl + if not isinstance(v, Firecrawl): + error_messages.append(f"Error! Input type `{type(v)}` is not `Firecrawl`") + else: + match += 1 + # validate data type: Gcs + if not isinstance(v, Gcs): + error_messages.append(f"Error! Input type `{type(v)}` is not `Gcs`") + else: + match += 1 + # validate data type: OneDrive + if not isinstance(v, OneDrive): + error_messages.append(f"Error! Input type `{type(v)}` is not `OneDrive`") + else: + match += 1 + # validate data type: Sharepoint + if not isinstance(v, Sharepoint): + error_messages.append(f"Error! Input type `{type(v)}` is not `Sharepoint`") + else: + match += 1 + # validate data type: WebCrawler + if not isinstance(v, WebCrawler): + error_messages.append(f"Error! Input type `{type(v)}` is not `WebCrawler`") + else: + match += 1 + # validate data type: Github + if not isinstance(v, Github): + error_messages.append(f"Error! Input type `{type(v)}` is not `Github`") + else: + match += 1 + # validate data type: Fireflies + if not isinstance(v, Fireflies): + error_messages.append(f"Error! Input type `{type(v)}` is not `Fireflies`") + else: + match += 1 + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in CreateSourceConnectorRequest with oneOf schemas: AwsS3, AzureBlob, Confluence, Discord, FileUpload, Firecrawl, Fireflies, Gcs, Github, GoogleDrive, OneDrive, Sharepoint, WebCrawler. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in CreateSourceConnectorRequest with oneOf schemas: AwsS3, AzureBlob, Confluence, Discord, FileUpload, Firecrawl, Fireflies, Gcs, Github, GoogleDrive, OneDrive, Sharepoint, WebCrawler. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + match = 0 + + # deserialize data into AwsS3 + try: + instance.actual_instance = AwsS3.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into AzureBlob + try: + instance.actual_instance = AzureBlob.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into Confluence + try: + instance.actual_instance = Confluence.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into Discord + try: + instance.actual_instance = Discord.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into FileUpload + try: + instance.actual_instance = FileUpload.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into GoogleDrive + try: + instance.actual_instance = GoogleDrive.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into Firecrawl + try: + instance.actual_instance = Firecrawl.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into Gcs + try: + instance.actual_instance = Gcs.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into OneDrive + try: + instance.actual_instance = OneDrive.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into Sharepoint + try: + instance.actual_instance = Sharepoint.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into WebCrawler + try: + instance.actual_instance = WebCrawler.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into Github + try: + instance.actual_instance = Github.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into Fireflies + try: + instance.actual_instance = Fireflies.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into CreateSourceConnectorRequest with oneOf schemas: AwsS3, AzureBlob, Confluence, Discord, FileUpload, Firecrawl, Fireflies, Gcs, Github, GoogleDrive, OneDrive, Sharepoint, WebCrawler. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into CreateSourceConnectorRequest with oneOf schemas: AwsS3, AzureBlob, Confluence, Discord, FileUpload, Firecrawl, Fireflies, Gcs, Github, GoogleDrive, OneDrive, Sharepoint, WebCrawler. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], AwsS3, AzureBlob, Confluence, Discord, FileUpload, Firecrawl, Fireflies, Gcs, Github, GoogleDrive, OneDrive, Sharepoint, WebCrawler]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + 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 48b63fc..d292fa9 100644 --- a/src/python/vectorize_client/models/create_source_connector_response.py +++ b/src/python/vectorize_client/models/create_source_connector_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -28,8 +28,8 @@ class CreateSourceConnectorResponse(BaseModel): CreateSourceConnectorResponse """ # noqa: E501 message: StrictStr - connectors: List[CreatedSourceConnector] - __properties: ClassVar[List[str]] = ["message", "connectors"] + connector: CreatedSourceConnector + __properties: ClassVar[List[str]] = ["message", "connector"] model_config = ConfigDict( populate_by_name=True, @@ -70,13 +70,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 each item in connectors (list) - _items = [] - if self.connectors: - for _item_connectors in self.connectors: - if _item_connectors: - _items.append(_item_connectors.to_dict()) - _dict['connectors'] = _items + # override the default output from pydantic by calling `to_dict()` of connector + if self.connector: + _dict['connector'] = self.connector.to_dict() return _dict @classmethod @@ -90,7 +86,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "message": obj.get("message"), - "connectors": [CreatedSourceConnector.from_dict(_item) for _item in obj["connectors"]] if obj.get("connectors") is not None else None + "connector": CreatedSourceConnector.from_dict(obj["connector"]) if obj.get("connector") is not None else None }) 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 index 6b57e73..539c5e1 100644 --- a/src/python/vectorize_client/models/created_ai_platform_connector.py +++ b/src/python/vectorize_client/models/created_ai_platform_connector.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/src/python/vectorize_client/models/created_destination_connector.py b/src/python/vectorize_client/models/created_destination_connector.py index 330dd47..958dede 100644 --- a/src/python/vectorize_client/models/created_destination_connector.py +++ b/src/python/vectorize_client/models/created_destination_connector.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/src/python/vectorize_client/models/created_source_connector.py b/src/python/vectorize_client/models/created_source_connector.py index aeb91c1..602a30c 100644 --- a/src/python/vectorize_client/models/created_source_connector.py +++ b/src/python/vectorize_client/models/created_source_connector.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/src/python/vectorize_client/models/datastax.py b/src/python/vectorize_client/models/datastax.py new file mode 100644 index 0000000..23215ce --- /dev/null +++ b/src/python/vectorize_client/models/datastax.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 +from vectorize_client.models.datastax_config import DATASTAXConfig +from typing import Optional, Set +from typing_extensions import Self + +class Datastax(BaseModel): + """ + Datastax + """ # noqa: E501 + name: StrictStr = Field(description="Name of the connector") + type: StrictStr = Field(description="Connector type (must be \"DATASTAX\")") + config: DATASTAXConfig + __properties: ClassVar[List[str]] = ["name", "type", "config"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['DATASTAX']): + raise ValueError("must be one of enum values ('DATASTAX')") + 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 Datastax 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 config + if self.config: + _dict['config'] = self.config.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Datastax 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": DATASTAXConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + }) + return _obj + + diff --git a/src/python/vectorize_client/models/datastax1.py b/src/python/vectorize_client/models/datastax1.py new file mode 100644 index 0000000..4fb5649 --- /dev/null +++ b/src/python/vectorize_client/models/datastax1.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, Optional +from vectorize_client.models.datastax_config import DATASTAXConfig +from typing import Optional, Set +from typing_extensions import Self + +class Datastax1(BaseModel): + """ + Datastax1 + """ # noqa: E501 + config: Optional[DATASTAXConfig] = None + __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 Datastax1 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 config + if self.config: + _dict['config'] = self.config.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Datastax1 from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "config": DATASTAXConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + }) + return _obj + + diff --git a/src/python/vectorize_client/models/datastax_auth_config.py b/src/python/vectorize_client/models/datastax_auth_config.py new file mode 100644 index 0000000..290d48d --- /dev/null +++ b/src/python/vectorize_client/models/datastax_auth_config.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class DATASTAXAuthConfig(BaseModel): + """ + Authentication configuration for DataStax Astra + """ # noqa: E501 + name: StrictStr = Field(description="Name. Example: Enter a descriptive name for your DataStax integration") + endpoint_secret: StrictStr = Field(description="API Endpoint. Example: Enter your API endpoint") + token: Annotated[str, Field(strict=True)] = Field(description="Application Token. Example: Enter your application token") + __properties: ClassVar[List[str]] = ["name", "endpoint_secret", "token"] + + @field_validator('token') + def token_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^\S.*\S$|^\S$", value): + raise ValueError(r"must validate the regular expression /^\S.*\S$|^\S$/") + 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 DATASTAXAuthConfig 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 DATASTAXAuthConfig 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"), + "endpoint_secret": obj.get("endpoint_secret"), + "token": obj.get("token") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/datastax_config.py b/src/python/vectorize_client/models/datastax_config.py new file mode 100644 index 0000000..0f3fd4a --- /dev/null +++ b/src/python/vectorize_client/models/datastax_config.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, field_validator +from typing import Any, ClassVar, Dict, List +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class DATASTAXConfig(BaseModel): + """ + Configuration for DataStax Astra connector + """ # noqa: E501 + collection: Annotated[str, Field(strict=True)] = Field(description="Collection Name. Example: Enter collection name") + __properties: ClassVar[List[str]] = ["collection"] + + @field_validator('collection') + def collection_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^[a-zA-Z][a-zA-Z0-9_]*$", value): + raise ValueError(r"must validate the regular expression /^[a-zA-Z][a-zA-Z0-9_]*$/") + 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 DATASTAXConfig 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 DATASTAXConfig from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "collection": obj.get("collection") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/deep_research_result.py b/src/python/vectorize_client/models/deep_research_result.py index d6c72c9..89f19fb 100644 --- a/src/python/vectorize_client/models/deep_research_result.py +++ b/src/python/vectorize_client/models/deep_research_result.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/src/python/vectorize_client/models/delete_ai_platform_connector_response.py b/src/python/vectorize_client/models/delete_ai_platform_connector_response.py index e07840a..458134e 100644 --- a/src/python/vectorize_client/models/delete_ai_platform_connector_response.py +++ b/src/python/vectorize_client/models/delete_ai_platform_connector_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/src/python/vectorize_client/models/delete_destination_connector_response.py b/src/python/vectorize_client/models/delete_destination_connector_response.py index b6b4a08..d048f29 100644 --- a/src/python/vectorize_client/models/delete_destination_connector_response.py +++ b/src/python/vectorize_client/models/delete_destination_connector_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/src/python/vectorize_client/models/delete_file_response.py b/src/python/vectorize_client/models/delete_file_response.py index 45749a6..a7b99d5 100644 --- a/src/python/vectorize_client/models/delete_file_response.py +++ b/src/python/vectorize_client/models/delete_file_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/src/python/vectorize_client/models/delete_pipeline_response.py b/src/python/vectorize_client/models/delete_pipeline_response.py index b05f005..40cec9c 100644 --- a/src/python/vectorize_client/models/delete_pipeline_response.py +++ b/src/python/vectorize_client/models/delete_pipeline_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/src/python/vectorize_client/models/delete_source_connector_response.py b/src/python/vectorize_client/models/delete_source_connector_response.py index 1be364e..f1b2f22 100644 --- a/src/python/vectorize_client/models/delete_source_connector_response.py +++ b/src/python/vectorize_client/models/delete_source_connector_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/src/python/vectorize_client/models/destination_connector.py b/src/python/vectorize_client/models/destination_connector.py index 4351bf8..2b583b5 100644 --- a/src/python/vectorize_client/models/destination_connector.py +++ b/src/python/vectorize_client/models/destination_connector.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/src/python/vectorize_client/models/destination_connector_input.py b/src/python/vectorize_client/models/destination_connector_input.py new file mode 100644 index 0000000..a43d58a --- /dev/null +++ b/src/python/vectorize_client/models/destination_connector_input.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 +from vectorize_client.models.destination_connector_input_config import DestinationConnectorInputConfig +from typing import Optional, Set +from typing_extensions import Self + +class DestinationConnectorInput(BaseModel): + """ + Destination connector configuration + """ # noqa: E501 + id: StrictStr = Field(description="Unique identifier for the destination connector") + type: StrictStr = Field(description="Type of destination connector") + config: DestinationConnectorInputConfig + __properties: ClassVar[List[str]] = ["id", "type", "config"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['CAPELLA', 'DATASTAX', 'ELASTIC', 'PINECONE', 'SINGLESTORE', 'MILVUS', 'POSTGRESQL', 'QDRANT', 'SUPABASE', 'WEAVIATE', 'AZUREAISEARCH', 'TURBOPUFFER']): + raise ValueError("must be one of enum values ('CAPELLA', 'DATASTAX', 'ELASTIC', 'PINECONE', 'SINGLESTORE', 'MILVUS', 'POSTGRESQL', 'QDRANT', 'SUPABASE', 'WEAVIATE', 'AZUREAISEARCH', 'TURBOPUFFER')") + 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 DestinationConnectorInput 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 config + if self.config: + _dict['config'] = self.config.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DestinationConnectorInput 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"), + "config": DestinationConnectorInputConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + }) + return _obj + + diff --git a/src/python/vectorize_client/models/destination_connector_input_config.py b/src/python/vectorize_client/models/destination_connector_input_config.py new file mode 100644 index 0000000..9374893 --- /dev/null +++ b/src/python/vectorize_client/models/destination_connector_input_config.py @@ -0,0 +1,277 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 +import pprint +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional +from vectorize_client.models.azureaisearch_config import AZUREAISEARCHConfig +from vectorize_client.models.capella_config import CAPELLAConfig +from vectorize_client.models.datastax_config import DATASTAXConfig +from vectorize_client.models.elastic_config import ELASTICConfig +from vectorize_client.models.milvus_config import MILVUSConfig +from vectorize_client.models.pinecone_config import PINECONEConfig +from vectorize_client.models.postgresql_config import POSTGRESQLConfig +from vectorize_client.models.qdrant_config import QDRANTConfig +from vectorize_client.models.singlestore_config import SINGLESTOREConfig +from vectorize_client.models.supabase_config import SUPABASEConfig +from vectorize_client.models.turbopuffer_config import TURBOPUFFERConfig +from vectorize_client.models.weaviate_config import WEAVIATEConfig +from pydantic import StrictStr, Field +from typing import Union, List, Set, Optional, Dict +from typing_extensions import Literal, Self + +DESTINATIONCONNECTORINPUTCONFIG_ONE_OF_SCHEMAS = ["AZUREAISEARCHConfig", "CAPELLAConfig", "DATASTAXConfig", "ELASTICConfig", "MILVUSConfig", "PINECONEConfig", "POSTGRESQLConfig", "QDRANTConfig", "SINGLESTOREConfig", "SUPABASEConfig", "TURBOPUFFERConfig", "WEAVIATEConfig"] + +class DestinationConnectorInputConfig(BaseModel): + """ + Configuration specific to the connector type + """ + # data type: CAPELLAConfig + oneof_schema_1_validator: Optional[CAPELLAConfig] = None + # data type: DATASTAXConfig + oneof_schema_2_validator: Optional[DATASTAXConfig] = None + # data type: ELASTICConfig + oneof_schema_3_validator: Optional[ELASTICConfig] = None + # data type: PINECONEConfig + oneof_schema_4_validator: Optional[PINECONEConfig] = None + # data type: SINGLESTOREConfig + oneof_schema_5_validator: Optional[SINGLESTOREConfig] = None + # data type: MILVUSConfig + oneof_schema_6_validator: Optional[MILVUSConfig] = None + # data type: POSTGRESQLConfig + oneof_schema_7_validator: Optional[POSTGRESQLConfig] = None + # data type: QDRANTConfig + oneof_schema_8_validator: Optional[QDRANTConfig] = None + # data type: SUPABASEConfig + oneof_schema_9_validator: Optional[SUPABASEConfig] = None + # data type: WEAVIATEConfig + oneof_schema_10_validator: Optional[WEAVIATEConfig] = None + # data type: AZUREAISEARCHConfig + oneof_schema_11_validator: Optional[AZUREAISEARCHConfig] = None + # data type: TURBOPUFFERConfig + oneof_schema_12_validator: Optional[TURBOPUFFERConfig] = None + actual_instance: Optional[Union[AZUREAISEARCHConfig, CAPELLAConfig, DATASTAXConfig, ELASTICConfig, MILVUSConfig, PINECONEConfig, POSTGRESQLConfig, QDRANTConfig, SINGLESTOREConfig, SUPABASEConfig, TURBOPUFFERConfig, WEAVIATEConfig]] = None + one_of_schemas: Set[str] = { "AZUREAISEARCHConfig", "CAPELLAConfig", "DATASTAXConfig", "ELASTICConfig", "MILVUSConfig", "PINECONEConfig", "POSTGRESQLConfig", "QDRANTConfig", "SINGLESTOREConfig", "SUPABASEConfig", "TURBOPUFFERConfig", "WEAVIATEConfig" } + + model_config = ConfigDict( + validate_assignment=True, + protected_namespaces=(), + ) + + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + instance = DestinationConnectorInputConfig.model_construct() + error_messages = [] + match = 0 + # validate data type: CAPELLAConfig + if not isinstance(v, CAPELLAConfig): + error_messages.append(f"Error! Input type `{type(v)}` is not `CAPELLAConfig`") + else: + match += 1 + # validate data type: DATASTAXConfig + if not isinstance(v, DATASTAXConfig): + error_messages.append(f"Error! Input type `{type(v)}` is not `DATASTAXConfig`") + else: + match += 1 + # validate data type: ELASTICConfig + if not isinstance(v, ELASTICConfig): + error_messages.append(f"Error! Input type `{type(v)}` is not `ELASTICConfig`") + else: + match += 1 + # validate data type: PINECONEConfig + if not isinstance(v, PINECONEConfig): + error_messages.append(f"Error! Input type `{type(v)}` is not `PINECONEConfig`") + else: + match += 1 + # validate data type: SINGLESTOREConfig + if not isinstance(v, SINGLESTOREConfig): + error_messages.append(f"Error! Input type `{type(v)}` is not `SINGLESTOREConfig`") + else: + match += 1 + # validate data type: MILVUSConfig + if not isinstance(v, MILVUSConfig): + error_messages.append(f"Error! Input type `{type(v)}` is not `MILVUSConfig`") + else: + match += 1 + # validate data type: POSTGRESQLConfig + if not isinstance(v, POSTGRESQLConfig): + error_messages.append(f"Error! Input type `{type(v)}` is not `POSTGRESQLConfig`") + else: + match += 1 + # validate data type: QDRANTConfig + if not isinstance(v, QDRANTConfig): + error_messages.append(f"Error! Input type `{type(v)}` is not `QDRANTConfig`") + else: + match += 1 + # validate data type: SUPABASEConfig + if not isinstance(v, SUPABASEConfig): + error_messages.append(f"Error! Input type `{type(v)}` is not `SUPABASEConfig`") + else: + match += 1 + # validate data type: WEAVIATEConfig + if not isinstance(v, WEAVIATEConfig): + error_messages.append(f"Error! Input type `{type(v)}` is not `WEAVIATEConfig`") + else: + match += 1 + # validate data type: AZUREAISEARCHConfig + if not isinstance(v, AZUREAISEARCHConfig): + error_messages.append(f"Error! Input type `{type(v)}` is not `AZUREAISEARCHConfig`") + else: + match += 1 + # validate data type: TURBOPUFFERConfig + if not isinstance(v, TURBOPUFFERConfig): + error_messages.append(f"Error! Input type `{type(v)}` is not `TURBOPUFFERConfig`") + else: + match += 1 + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in DestinationConnectorInputConfig with oneOf schemas: AZUREAISEARCHConfig, CAPELLAConfig, DATASTAXConfig, ELASTICConfig, MILVUSConfig, PINECONEConfig, POSTGRESQLConfig, QDRANTConfig, SINGLESTOREConfig, SUPABASEConfig, TURBOPUFFERConfig, WEAVIATEConfig. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in DestinationConnectorInputConfig with oneOf schemas: AZUREAISEARCHConfig, CAPELLAConfig, DATASTAXConfig, ELASTICConfig, MILVUSConfig, PINECONEConfig, POSTGRESQLConfig, QDRANTConfig, SINGLESTOREConfig, SUPABASEConfig, TURBOPUFFERConfig, WEAVIATEConfig. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + match = 0 + + # deserialize data into CAPELLAConfig + try: + instance.actual_instance = CAPELLAConfig.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into DATASTAXConfig + try: + instance.actual_instance = DATASTAXConfig.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into ELASTICConfig + try: + instance.actual_instance = ELASTICConfig.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into PINECONEConfig + try: + instance.actual_instance = PINECONEConfig.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into SINGLESTOREConfig + try: + instance.actual_instance = SINGLESTOREConfig.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into MILVUSConfig + try: + instance.actual_instance = MILVUSConfig.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into POSTGRESQLConfig + try: + instance.actual_instance = POSTGRESQLConfig.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into QDRANTConfig + try: + instance.actual_instance = QDRANTConfig.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into SUPABASEConfig + try: + instance.actual_instance = SUPABASEConfig.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into WEAVIATEConfig + try: + instance.actual_instance = WEAVIATEConfig.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into AZUREAISEARCHConfig + try: + instance.actual_instance = AZUREAISEARCHConfig.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into TURBOPUFFERConfig + try: + instance.actual_instance = TURBOPUFFERConfig.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into DestinationConnectorInputConfig with oneOf schemas: AZUREAISEARCHConfig, CAPELLAConfig, DATASTAXConfig, ELASTICConfig, MILVUSConfig, PINECONEConfig, POSTGRESQLConfig, QDRANTConfig, SINGLESTOREConfig, SUPABASEConfig, TURBOPUFFERConfig, WEAVIATEConfig. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into DestinationConnectorInputConfig with oneOf schemas: AZUREAISEARCHConfig, CAPELLAConfig, DATASTAXConfig, ELASTICConfig, MILVUSConfig, PINECONEConfig, POSTGRESQLConfig, QDRANTConfig, SINGLESTOREConfig, SUPABASEConfig, TURBOPUFFERConfig, WEAVIATEConfig. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], AZUREAISEARCHConfig, CAPELLAConfig, DATASTAXConfig, ELASTICConfig, MILVUSConfig, PINECONEConfig, POSTGRESQLConfig, QDRANTConfig, SINGLESTOREConfig, SUPABASEConfig, TURBOPUFFERConfig, WEAVIATEConfig]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/src/python/vectorize_client/models/destination_connector_schema.py b/src/python/vectorize_client/models/destination_connector_schema.py index 8206eeb..589093c 100644 --- a/src/python/vectorize_client/models/destination_connector_schema.py +++ b/src/python/vectorize_client/models/destination_connector_schema.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from vectorize_client.models.destination_connector_type import DestinationConnectorType +from vectorize_client.models.destination_connector_type_for_pipeline import DestinationConnectorTypeForPipeline from typing import Optional, Set from typing_extensions import Self @@ -28,7 +28,7 @@ class DestinationConnectorSchema(BaseModel): DestinationConnectorSchema """ # noqa: E501 id: StrictStr - type: DestinationConnectorType + type: DestinationConnectorTypeForPipeline config: Optional[Dict[str, Any]] = None __properties: ClassVar[List[str]] = ["id", "type", "config"] diff --git a/src/python/vectorize_client/models/destination_connector_type.py b/src/python/vectorize_client/models/destination_connector_type.py index ca06824..bd83f88 100644 --- a/src/python/vectorize_client/models/destination_connector_type.py +++ b/src/python/vectorize_client/models/destination_connector_type.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -37,9 +37,7 @@ class DestinationConnectorType(str, Enum): SUPABASE = 'SUPABASE' WEAVIATE = 'WEAVIATE' AZUREAISEARCH = 'AZUREAISEARCH' - VECTORIZE = 'VECTORIZE' - CHROMA = 'CHROMA' - MONGODB = 'MONGODB' + TURBOPUFFER = 'TURBOPUFFER' @classmethod def from_json(cls, json_str: str) -> Self: diff --git a/src/python/vectorize_client/models/destination_connector_type_for_pipeline.py b/src/python/vectorize_client/models/destination_connector_type_for_pipeline.py new file mode 100644 index 0000000..58f6175 --- /dev/null +++ b/src/python/vectorize_client/models/destination_connector_type_for_pipeline.py @@ -0,0 +1,48 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 DestinationConnectorTypeForPipeline(str, Enum): + """ + DestinationConnectorTypeForPipeline + """ + + """ + allowed enum values + """ + CAPELLA = 'CAPELLA' + DATASTAX = 'DATASTAX' + ELASTIC = 'ELASTIC' + PINECONE = 'PINECONE' + SINGLESTORE = 'SINGLESTORE' + MILVUS = 'MILVUS' + POSTGRESQL = 'POSTGRESQL' + QDRANT = 'QDRANT' + SUPABASE = 'SUPABASE' + WEAVIATE = 'WEAVIATE' + AZUREAISEARCH = 'AZUREAISEARCH' + TURBOPUFFER = 'TURBOPUFFER' + VECTORIZE = 'VECTORIZE' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of DestinationConnectorTypeForPipeline from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/src/python/vectorize_client/models/discord.py b/src/python/vectorize_client/models/discord.py new file mode 100644 index 0000000..0dd8ab2 --- /dev/null +++ b/src/python/vectorize_client/models/discord.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 +from vectorize_client.models.discord_config import DISCORDConfig +from typing import Optional, Set +from typing_extensions import Self + +class Discord(BaseModel): + """ + Discord + """ # noqa: E501 + name: StrictStr = Field(description="Name of the connector") + type: StrictStr = Field(description="Connector type (must be \"DISCORD\")") + config: DISCORDConfig + __properties: ClassVar[List[str]] = ["name", "type", "config"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['DISCORD']): + raise ValueError("must be one of enum values ('DISCORD')") + 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 Discord 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 config + if self.config: + _dict['config'] = self.config.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Discord 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": DISCORDConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + }) + return _obj + + diff --git a/src/python/vectorize_client/models/discord1.py b/src/python/vectorize_client/models/discord1.py new file mode 100644 index 0000000..9ec5eae --- /dev/null +++ b/src/python/vectorize_client/models/discord1.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, Optional +from vectorize_client.models.discord_config import DISCORDConfig +from typing import Optional, Set +from typing_extensions import Self + +class Discord1(BaseModel): + """ + Discord1 + """ # noqa: E501 + config: Optional[DISCORDConfig] = None + __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 Discord1 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 config + if self.config: + _dict['config'] = self.config.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Discord1 from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "config": DISCORDConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + }) + return _obj + + diff --git a/src/python/vectorize_client/models/discord_auth_config.py b/src/python/vectorize_client/models/discord_auth_config.py new file mode 100644 index 0000000..a05b2fd --- /dev/null +++ b/src/python/vectorize_client/models/discord_auth_config.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class DISCORDAuthConfig(BaseModel): + """ + Authentication configuration for Discord + """ # noqa: E501 + name: StrictStr = Field(description="Name. Example: Enter a descriptive name") + server_id: StrictStr = Field(description="Server ID. Example: Enter Server ID", alias="server-id") + bot_token: Annotated[str, Field(strict=True)] = Field(description="Bot token. Example: Enter Token", alias="bot-token") + channel_ids: StrictStr = Field(description="Channel ID. Example: Enter channel ID", alias="channel-ids") + __properties: ClassVar[List[str]] = ["name", "server-id", "bot-token", "channel-ids"] + + @field_validator('bot_token') + def bot_token_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^\S.*\S$|^\S$", value): + raise ValueError(r"must validate the regular expression /^\S.*\S$|^\S$/") + 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 DISCORDAuthConfig 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 DISCORDAuthConfig 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"), + "server-id": obj.get("server-id"), + "bot-token": obj.get("bot-token"), + "channel-ids": obj.get("channel-ids") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/discord_config.py b/src/python/vectorize_client/models/discord_config.py new file mode 100644 index 0000000..211f568 --- /dev/null +++ b/src/python/vectorize_client/models/discord_config.py @@ -0,0 +1,130 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, Union +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class DISCORDConfig(BaseModel): + """ + Configuration for Discord connector + """ # noqa: E501 + emoji: Optional[StrictStr] = Field(default=None, description="Emoji Filter. Example: Enter custom emoji filter name") + author: Optional[StrictStr] = Field(default=None, description="Author Filter. Example: Enter author name") + ignore_author: Optional[StrictStr] = Field(default=None, description="Ignore Author Filter. Example: Enter ignore author name", alias="ignore-author") + limit: Optional[Union[Annotated[float, Field(strict=True, ge=1)], Annotated[int, Field(strict=True, ge=1)]]] = Field(default=10000, description="Limit. Example: Enter limit") + thread_message_inclusion: Optional[StrictStr] = Field(default='ALL', description="Thread Message Inclusion", alias="thread-message-inclusion") + filter_logic: Optional[StrictStr] = Field(default='AND', description="Filter Logic", alias="filter-logic") + thread_message_mode: Optional[StrictStr] = Field(default='CONCATENATE', description="Thread Message Mode", alias="thread-message-mode") + __properties: ClassVar[List[str]] = ["emoji", "author", "ignore-author", "limit", "thread-message-inclusion", "filter-logic", "thread-message-mode"] + + @field_validator('thread_message_inclusion') + def thread_message_inclusion_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['ALL', 'FILTER']): + raise ValueError("must be one of enum values ('ALL', 'FILTER')") + return value + + @field_validator('filter_logic') + def filter_logic_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['AND', 'OR']): + raise ValueError("must be one of enum values ('AND', 'OR')") + return value + + @field_validator('thread_message_mode') + def thread_message_mode_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['CONCATENATE', 'SINGLE']): + raise ValueError("must be one of enum values ('CONCATENATE', 'SINGLE')") + 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 DISCORDConfig 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 DISCORDConfig from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "emoji": obj.get("emoji"), + "author": obj.get("author"), + "ignore-author": obj.get("ignore-author"), + "limit": obj.get("limit") if obj.get("limit") is not None else 10000, + "thread-message-inclusion": obj.get("thread-message-inclusion") if obj.get("thread-message-inclusion") is not None else 'ALL', + "filter-logic": obj.get("filter-logic") if obj.get("filter-logic") is not None else 'AND', + "thread-message-mode": obj.get("thread-message-mode") if obj.get("thread-message-mode") is not None else 'CONCATENATE' + }) + return _obj + + diff --git a/src/python/vectorize_client/models/document.py b/src/python/vectorize_client/models/document.py index 199ba87..b65759f 100644 --- a/src/python/vectorize_client/models/document.py +++ b/src/python/vectorize_client/models/document.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/src/python/vectorize_client/models/dropbox.py b/src/python/vectorize_client/models/dropbox.py new file mode 100644 index 0000000..ddf68a1 --- /dev/null +++ b/src/python/vectorize_client/models/dropbox.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, Optional +from vectorize_client.models.dropbox_config import DROPBOXConfig +from typing import Optional, Set +from typing_extensions import Self + +class Dropbox(BaseModel): + """ + Dropbox + """ # noqa: E501 + config: Optional[DROPBOXConfig] = None + __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 Dropbox 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 config + if self.config: + _dict['config'] = self.config.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Dropbox from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "config": DROPBOXConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + }) + return _obj + + diff --git a/src/python/vectorize_client/models/dropbox_auth_config.py b/src/python/vectorize_client/models/dropbox_auth_config.py new file mode 100644 index 0000000..7c11df1 --- /dev/null +++ b/src/python/vectorize_client/models/dropbox_auth_config.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class DROPBOXAuthConfig(BaseModel): + """ + Authentication configuration for Dropbox (Legacy) + """ # noqa: E501 + name: StrictStr = Field(description="Name. Example: Enter a descriptive name") + refresh_token: Annotated[str, Field(strict=True)] = Field(description="Connect Dropbox to Vectorize. Example: Authorize", alias="refresh-token") + __properties: ClassVar[List[str]] = ["name", "refresh-token"] + + @field_validator('refresh_token') + def refresh_token_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^\S.*\S$|^\S$", value): + raise ValueError(r"must validate the regular expression /^\S.*\S$|^\S$/") + 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 DROPBOXAuthConfig 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 DROPBOXAuthConfig 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"), + "refresh-token": obj.get("refresh-token") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/dropbox_config.py b/src/python/vectorize_client/models/dropbox_config.py new file mode 100644 index 0000000..90f6fcb --- /dev/null +++ b/src/python/vectorize_client/models/dropbox_config.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, 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 DROPBOXConfig(BaseModel): + """ + Configuration for Dropbox (Legacy) connector + """ # noqa: E501 + path_prefix: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="Read from these folders (optional). Example: Enter Path: /exampleFolder/subFolder", alias="path-prefix") + __properties: ClassVar[List[str]] = ["path-prefix"] + + @field_validator('path_prefix') + def path_prefix_validate_regular_expression(cls, value): + """Validates the regular expression""" + if value is None: + return value + + if not re.match(r"^\/.*$", value): + raise ValueError(r"must validate the regular expression /^\/.*$/") + 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 DROPBOXConfig 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 DROPBOXConfig from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "path-prefix": obj.get("path-prefix") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/dropbox_oauth.py b/src/python/vectorize_client/models/dropbox_oauth.py new file mode 100644 index 0000000..ef3b006 --- /dev/null +++ b/src/python/vectorize_client/models/dropbox_oauth.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, Optional +from vectorize_client.models.dropboxoauth_auth_config import DROPBOXOAUTHAuthConfig +from typing import Optional, Set +from typing_extensions import Self + +class DropboxOauth(BaseModel): + """ + DropboxOauth + """ # noqa: E501 + config: Optional[DROPBOXOAUTHAuthConfig] = None + __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 DropboxOauth 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 config + if self.config: + _dict['config'] = self.config.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DropboxOauth from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "config": DROPBOXOAUTHAuthConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + }) + return _obj + + diff --git a/src/python/vectorize_client/models/dropbox_oauth_multi.py b/src/python/vectorize_client/models/dropbox_oauth_multi.py new file mode 100644 index 0000000..bf515c0 --- /dev/null +++ b/src/python/vectorize_client/models/dropbox_oauth_multi.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, Optional +from vectorize_client.models.dropboxoauthmulti_auth_config import DROPBOXOAUTHMULTIAuthConfig +from typing import Optional, Set +from typing_extensions import Self + +class DropboxOauthMulti(BaseModel): + """ + DropboxOauthMulti + """ # noqa: E501 + config: Optional[DROPBOXOAUTHMULTIAuthConfig] = None + __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 DropboxOauthMulti 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 config + if self.config: + _dict['config'] = self.config.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DropboxOauthMulti from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "config": DROPBOXOAUTHMULTIAuthConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + }) + return _obj + + diff --git a/src/python/vectorize_client/models/dropbox_oauth_multi_custom.py b/src/python/vectorize_client/models/dropbox_oauth_multi_custom.py new file mode 100644 index 0000000..b9c0910 --- /dev/null +++ b/src/python/vectorize_client/models/dropbox_oauth_multi_custom.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, Optional +from vectorize_client.models.dropboxoauthmulticustom_auth_config import DROPBOXOAUTHMULTICUSTOMAuthConfig +from typing import Optional, Set +from typing_extensions import Self + +class DropboxOauthMultiCustom(BaseModel): + """ + DropboxOauthMultiCustom + """ # noqa: E501 + config: Optional[DROPBOXOAUTHMULTICUSTOMAuthConfig] = None + __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 DropboxOauthMultiCustom 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 config + if self.config: + _dict['config'] = self.config.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DropboxOauthMultiCustom from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "config": DROPBOXOAUTHMULTICUSTOMAuthConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + }) + return _obj + + diff --git a/src/python/vectorize_client/models/dropboxoauth_auth_config.py b/src/python/vectorize_client/models/dropboxoauth_auth_config.py new file mode 100644 index 0000000..87068d8 --- /dev/null +++ b/src/python/vectorize_client/models/dropboxoauth_auth_config.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 DROPBOXOAUTHAuthConfig(BaseModel): + """ + Authentication configuration for Dropbox OAuth + """ # noqa: E501 + name: StrictStr = Field(description="Name. Example: Enter a descriptive name") + authorized_user: Optional[StrictStr] = Field(default=None, description="Authorized User", alias="authorized-user") + selection_details: StrictStr = Field(description="Connect Dropbox to Vectorize. Example: Authorize", alias="selection-details") + edited_users: Optional[Dict[str, Any]] = Field(default=None, alias="editedUsers") + reconnect_users: Optional[Dict[str, Any]] = Field(default=None, alias="reconnectUsers") + __properties: ClassVar[List[str]] = ["name", "authorized-user", "selection-details", "editedUsers", "reconnectUsers"] + + 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 DROPBOXOAUTHAuthConfig 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 DROPBOXOAUTHAuthConfig 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"), + "authorized-user": obj.get("authorized-user"), + "selection-details": obj.get("selection-details"), + "editedUsers": obj.get("editedUsers"), + "reconnectUsers": obj.get("reconnectUsers") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/dropboxoauthmulti_auth_config.py b/src/python/vectorize_client/models/dropboxoauthmulti_auth_config.py new file mode 100644 index 0000000..387d5f8 --- /dev/null +++ b/src/python/vectorize_client/models/dropboxoauthmulti_auth_config.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 DROPBOXOAUTHMULTIAuthConfig(BaseModel): + """ + Authentication configuration for Dropbox Multi-User (Vectorize) + """ # noqa: E501 + name: StrictStr = Field(description="Name. Example: Enter a descriptive name") + authorized_users: Optional[StrictStr] = Field(default=None, description="Authorized Users", alias="authorized-users") + edited_users: Optional[Dict[str, Any]] = Field(default=None, alias="editedUsers") + deleted_users: Optional[Dict[str, Any]] = Field(default=None, alias="deletedUsers") + __properties: ClassVar[List[str]] = ["name", "authorized-users", "editedUsers", "deletedUsers"] + + 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 DROPBOXOAUTHMULTIAuthConfig 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 DROPBOXOAUTHMULTIAuthConfig 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"), + "authorized-users": obj.get("authorized-users"), + "editedUsers": obj.get("editedUsers"), + "deletedUsers": obj.get("deletedUsers") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/dropboxoauthmulticustom_auth_config.py b/src/python/vectorize_client/models/dropboxoauthmulticustom_auth_config.py new file mode 100644 index 0000000..71ca8dd --- /dev/null +++ b/src/python/vectorize_client/models/dropboxoauthmulticustom_auth_config.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, SecretStr, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DROPBOXOAUTHMULTICUSTOMAuthConfig(BaseModel): + """ + Authentication configuration for Dropbox Multi-User (White Label) + """ # noqa: E501 + name: StrictStr = Field(description="Name. Example: Enter a descriptive name") + app_key: SecretStr = Field(description="Dropbox App Key. Example: Enter App Key", alias="app-key") + app_secret: SecretStr = Field(description="Dropbox App Secret. Example: Enter App Secret", alias="app-secret") + authorized_users: Optional[StrictStr] = Field(default=None, description="Authorized Users", alias="authorized-users") + edited_users: Optional[Dict[str, Any]] = Field(default=None, alias="editedUsers") + deleted_users: Optional[Dict[str, Any]] = Field(default=None, alias="deletedUsers") + __properties: ClassVar[List[str]] = ["name", "app-key", "app-secret", "authorized-users", "editedUsers", "deletedUsers"] + + 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 DROPBOXOAUTHMULTICUSTOMAuthConfig 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 DROPBOXOAUTHMULTICUSTOMAuthConfig 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"), + "app-key": obj.get("app-key"), + "app-secret": obj.get("app-secret"), + "authorized-users": obj.get("authorized-users"), + "editedUsers": obj.get("editedUsers"), + "deletedUsers": obj.get("deletedUsers") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/elastic.py b/src/python/vectorize_client/models/elastic.py new file mode 100644 index 0000000..fe87153 --- /dev/null +++ b/src/python/vectorize_client/models/elastic.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 +from vectorize_client.models.elastic_config import ELASTICConfig +from typing import Optional, Set +from typing_extensions import Self + +class Elastic(BaseModel): + """ + Elastic + """ # noqa: E501 + name: StrictStr = Field(description="Name of the connector") + type: StrictStr = Field(description="Connector type (must be \"ELASTIC\")") + config: ELASTICConfig + __properties: ClassVar[List[str]] = ["name", "type", "config"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['ELASTIC']): + raise ValueError("must be one of enum values ('ELASTIC')") + 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 Elastic 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 config + if self.config: + _dict['config'] = self.config.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Elastic 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": ELASTICConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + }) + return _obj + + diff --git a/src/python/vectorize_client/models/elastic1.py b/src/python/vectorize_client/models/elastic1.py new file mode 100644 index 0000000..3cf1eec --- /dev/null +++ b/src/python/vectorize_client/models/elastic1.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, Optional +from vectorize_client.models.elastic_config import ELASTICConfig +from typing import Optional, Set +from typing_extensions import Self + +class Elastic1(BaseModel): + """ + Elastic1 + """ # noqa: E501 + config: Optional[ELASTICConfig] = None + __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 Elastic1 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 config + if self.config: + _dict['config'] = self.config.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Elastic1 from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "config": ELASTICConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + }) + return _obj + + diff --git a/src/python/vectorize_client/models/elastic_auth_config.py b/src/python/vectorize_client/models/elastic_auth_config.py new file mode 100644 index 0000000..2694365 --- /dev/null +++ b/src/python/vectorize_client/models/elastic_auth_config.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class ELASTICAuthConfig(BaseModel): + """ + Authentication configuration for Elasticsearch + """ # noqa: E501 + name: StrictStr = Field(description="Name. Example: Enter a descriptive name for your Elastic integration") + host: StrictStr = Field(description="Host. Example: Enter your host") + port: StrictStr = Field(description="Port. Example: Enter your port") + api_key: Annotated[str, Field(strict=True)] = Field(description="API Key. Example: Enter your API key", alias="api-key") + __properties: ClassVar[List[str]] = ["name", "host", "port", "api-key"] + + @field_validator('api_key') + def api_key_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^\S.*\S$|^\S$", value): + raise ValueError(r"must validate the regular expression /^\S.*\S$|^\S$/") + 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 ELASTICAuthConfig 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 ELASTICAuthConfig 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"), + "host": obj.get("host"), + "port": obj.get("port"), + "api-key": obj.get("api-key") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/elastic_config.py b/src/python/vectorize_client/models/elastic_config.py new file mode 100644 index 0000000..af6b6d2 --- /dev/null +++ b/src/python/vectorize_client/models/elastic_config.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, field_validator +from typing import Any, ClassVar, Dict, List +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class ELASTICConfig(BaseModel): + """ + Configuration for Elasticsearch connector + """ # noqa: E501 + index: Annotated[str, Field(strict=True, max_length=255)] = Field(description="Index Name. Example: Enter index name") + __properties: ClassVar[List[str]] = ["index"] + + @field_validator('index') + def index_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^(?!.*(--|\.\.))(?!^[\-.])(?!.*[\-.]$)[a-z0-9-.]*$", value): + raise ValueError(r"must validate the regular expression /^(?!.*(--|\.\.))(?!^[\-.])(?!.*[\-.]$)[a-z0-9-.]*$/") + 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 ELASTICConfig 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 ELASTICConfig from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "index": obj.get("index") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/extraction_chunking_strategy.py b/src/python/vectorize_client/models/extraction_chunking_strategy.py index 0c0fc33..ea857b4 100644 --- a/src/python/vectorize_client/models/extraction_chunking_strategy.py +++ b/src/python/vectorize_client/models/extraction_chunking_strategy.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/src/python/vectorize_client/models/extraction_result.py b/src/python/vectorize_client/models/extraction_result.py index 01d5491..889ba1a 100644 --- a/src/python/vectorize_client/models/extraction_result.py +++ b/src/python/vectorize_client/models/extraction_result.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/src/python/vectorize_client/models/extraction_result_response.py b/src/python/vectorize_client/models/extraction_result_response.py index 57968d4..bbcce20 100644 --- a/src/python/vectorize_client/models/extraction_result_response.py +++ b/src/python/vectorize_client/models/extraction_result_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/src/python/vectorize_client/models/extraction_type.py b/src/python/vectorize_client/models/extraction_type.py index c457543..3391000 100644 --- a/src/python/vectorize_client/models/extraction_type.py +++ b/src/python/vectorize_client/models/extraction_type.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/src/python/vectorize_client/models/file_upload.py b/src/python/vectorize_client/models/file_upload.py new file mode 100644 index 0000000..07676ec --- /dev/null +++ b/src/python/vectorize_client/models/file_upload.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 +from typing import Optional, Set +from typing_extensions import Self + +class FileUpload(BaseModel): + """ + FileUpload + """ # noqa: E501 + name: StrictStr = Field(description="Name of the connector") + type: StrictStr = Field(description="Connector type (must be \"FILE_UPLOAD\")") + __properties: ClassVar[List[str]] = ["name", "type"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['FILE_UPLOAD']): + raise ValueError("must be one of enum values ('FILE_UPLOAD')") + 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 FileUpload 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 FileUpload 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") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/file_upload1.py b/src/python/vectorize_client/models/file_upload1.py new file mode 100644 index 0000000..cf54836 --- /dev/null +++ b/src/python/vectorize_client/models/file_upload1.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, Optional +from vectorize_client.models.fileupload_auth_config import FILEUPLOADAuthConfig +from typing import Optional, Set +from typing_extensions import Self + +class FileUpload1(BaseModel): + """ + FileUpload1 + """ # noqa: E501 + config: Optional[FILEUPLOADAuthConfig] = None + __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 FileUpload1 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 config + if self.config: + _dict['config'] = self.config.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of FileUpload1 from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "config": FILEUPLOADAuthConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + }) + return _obj + + diff --git a/src/python/vectorize_client/models/fileupload_auth_config.py b/src/python/vectorize_client/models/fileupload_auth_config.py new file mode 100644 index 0000000..5101849 --- /dev/null +++ b/src/python/vectorize_client/models/fileupload_auth_config.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 FILEUPLOADAuthConfig(BaseModel): + """ + Authentication configuration for File Upload + """ # noqa: E501 + name: StrictStr = Field(description="Name. Example: Enter a descriptive name for this connector") + path_prefix: Optional[StrictStr] = Field(default=None, description="Path Prefix", alias="path-prefix") + files: Optional[List[StrictStr]] = Field(default=None, description="Choose files. Files uploaded to this connector can be used in pipelines to vectorize their contents. Note: files with the same name will be overwritten.") + __properties: ClassVar[List[str]] = ["name", "path-prefix", "files"] + + 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 FILEUPLOADAuthConfig 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 FILEUPLOADAuthConfig 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"), + "path-prefix": obj.get("path-prefix"), + "files": obj.get("files") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/firecrawl.py b/src/python/vectorize_client/models/firecrawl.py new file mode 100644 index 0000000..b0b2b59 --- /dev/null +++ b/src/python/vectorize_client/models/firecrawl.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 +from vectorize_client.models.firecrawl_config import FIRECRAWLConfig +from typing import Optional, Set +from typing_extensions import Self + +class Firecrawl(BaseModel): + """ + Firecrawl + """ # noqa: E501 + name: StrictStr = Field(description="Name of the connector") + type: StrictStr = Field(description="Connector type (must be \"FIRECRAWL\")") + config: FIRECRAWLConfig + __properties: ClassVar[List[str]] = ["name", "type", "config"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['FIRECRAWL']): + raise ValueError("must be one of enum values ('FIRECRAWL')") + 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 Firecrawl 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 config + if self.config: + _dict['config'] = self.config.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Firecrawl 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": FIRECRAWLConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + }) + return _obj + + diff --git a/src/python/vectorize_client/models/firecrawl1.py b/src/python/vectorize_client/models/firecrawl1.py new file mode 100644 index 0000000..d880f44 --- /dev/null +++ b/src/python/vectorize_client/models/firecrawl1.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, Optional +from vectorize_client.models.firecrawl_config import FIRECRAWLConfig +from typing import Optional, Set +from typing_extensions import Self + +class Firecrawl1(BaseModel): + """ + Firecrawl1 + """ # noqa: E501 + config: Optional[FIRECRAWLConfig] = None + __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 Firecrawl1 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 config + if self.config: + _dict['config'] = self.config.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Firecrawl1 from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "config": FIRECRAWLConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + }) + return _obj + + diff --git a/src/python/vectorize_client/models/firecrawl_auth_config.py b/src/python/vectorize_client/models/firecrawl_auth_config.py new file mode 100644 index 0000000..df0aca4 --- /dev/null +++ b/src/python/vectorize_client/models/firecrawl_auth_config.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, SecretStr, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class FIRECRAWLAuthConfig(BaseModel): + """ + Authentication configuration for Firecrawl + """ # noqa: E501 + name: StrictStr = Field(description="Name. Example: Enter a descriptive name") + api_key: SecretStr = Field(description="API Key. Example: Enter your Firecrawl API Key", alias="api-key") + __properties: ClassVar[List[str]] = ["name", "api-key"] + + 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 FIRECRAWLAuthConfig 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 FIRECRAWLAuthConfig 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"), + "api-key": obj.get("api-key") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/firecrawl_config.py b/src/python/vectorize_client/models/firecrawl_config.py new file mode 100644 index 0000000..48adf7b --- /dev/null +++ b/src/python/vectorize_client/models/firecrawl_config.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 +from typing import Optional, Set +from typing_extensions import Self + +class FIRECRAWLConfig(BaseModel): + """ + Configuration for Firecrawl connector + """ # noqa: E501 + endpoint: StrictStr = Field(description="Endpoint. Example: Choose which api endpoint to use") + request: Dict[str, Any] = Field(description="Request Body. Example: JSON config for firecrawl's /crawl or /scrape endpoint.") + __properties: ClassVar[List[str]] = ["endpoint", "request"] + + @field_validator('endpoint') + def endpoint_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['Crawl', 'Scrape']): + raise ValueError("must be one of enum values ('Crawl', 'Scrape')") + 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 FIRECRAWLConfig 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 FIRECRAWLConfig from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "endpoint": obj.get("endpoint") if obj.get("endpoint") is not None else 'Crawl', + "request": obj.get("request") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/fireflies.py b/src/python/vectorize_client/models/fireflies.py new file mode 100644 index 0000000..c6fb12c --- /dev/null +++ b/src/python/vectorize_client/models/fireflies.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 +from vectorize_client.models.fireflies_config import FIREFLIESConfig +from typing import Optional, Set +from typing_extensions import Self + +class Fireflies(BaseModel): + """ + Fireflies + """ # noqa: E501 + name: StrictStr = Field(description="Name of the connector") + type: StrictStr = Field(description="Connector type (must be \"FIREFLIES\")") + config: FIREFLIESConfig + __properties: ClassVar[List[str]] = ["name", "type", "config"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['FIREFLIES']): + raise ValueError("must be one of enum values ('FIREFLIES')") + 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 Fireflies 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 config + if self.config: + _dict['config'] = self.config.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Fireflies 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": FIREFLIESConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + }) + return _obj + + diff --git a/src/python/vectorize_client/models/fireflies1.py b/src/python/vectorize_client/models/fireflies1.py new file mode 100644 index 0000000..2e9f392 --- /dev/null +++ b/src/python/vectorize_client/models/fireflies1.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, Optional +from vectorize_client.models.fireflies_config import FIREFLIESConfig +from typing import Optional, Set +from typing_extensions import Self + +class Fireflies1(BaseModel): + """ + Fireflies1 + """ # noqa: E501 + config: Optional[FIREFLIESConfig] = None + __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 Fireflies1 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 config + if self.config: + _dict['config'] = self.config.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Fireflies1 from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "config": FIREFLIESConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + }) + return _obj + + diff --git a/src/python/vectorize_client/models/fireflies_auth_config.py b/src/python/vectorize_client/models/fireflies_auth_config.py new file mode 100644 index 0000000..55e6ef2 --- /dev/null +++ b/src/python/vectorize_client/models/fireflies_auth_config.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class FIREFLIESAuthConfig(BaseModel): + """ + Authentication configuration for Fireflies.ai + """ # noqa: E501 + name: StrictStr = Field(description="Name. Example: Enter a descriptive name") + api_key: Annotated[str, Field(strict=True)] = Field(description="API Key. Example: Enter your Fireflies.ai API key", alias="api-key") + __properties: ClassVar[List[str]] = ["name", "api-key"] + + @field_validator('api_key') + def api_key_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^\S.*\S$|^\S$", value): + raise ValueError(r"must validate the regular expression /^\S.*\S$|^\S$/") + 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 FIREFLIESAuthConfig 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 FIREFLIESAuthConfig 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"), + "api-key": obj.get("api-key") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/fireflies_config.py b/src/python/vectorize_client/models/fireflies_config.py new file mode 100644 index 0000000..2cc1c63 --- /dev/null +++ b/src/python/vectorize_client/models/fireflies_config.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 datetime import date +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 FIREFLIESConfig(BaseModel): + """ + Configuration for Fireflies.ai connector + """ # noqa: E501 + start_date: date = Field(description="Start Date. Include meetings from this date forward. Example: Enter a date: Example 2023-12-31", alias="start-date") + end_date: Optional[date] = Field(default=None, description="End Date. Include meetings up to this date only. Example: Enter a date: Example 2023-12-31", alias="end-date") + title_filter_type: StrictStr = Field(alias="title-filter-type") + title_filter: Optional[StrictStr] = Field(default=None, description="Title Filter. Only include meetings with this text in the title. Example: Enter meeting title", alias="title-filter") + participant_filter_type: StrictStr = Field(alias="participant-filter-type") + participant_filter: Optional[StrictStr] = Field(default=None, description="Participant's Email Filter. Include meetings where these participants were invited. Example: Enter participant email", alias="participant-filter") + max_meetings: Optional[Union[StrictFloat, StrictInt]] = Field(default=-1, description="Max Meetings. Enter -1 for all available meetings, or specify a limit. Example: Enter maximum number of meetings to retrieve. (-1 for all)", alias="max-meetings") + __properties: ClassVar[List[str]] = ["start-date", "end-date", "title-filter-type", "title-filter", "participant-filter-type", "participant-filter", "max-meetings"] + + 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 FIREFLIESConfig 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 FIREFLIESConfig from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "start-date": obj.get("start-date"), + "end-date": obj.get("end-date"), + "title-filter-type": obj.get("title-filter-type") if obj.get("title-filter-type") is not None else 'AND', + "title-filter": obj.get("title-filter"), + "participant-filter-type": obj.get("participant-filter-type") if obj.get("participant-filter-type") is not None else 'AND', + "participant-filter": obj.get("participant-filter"), + "max-meetings": obj.get("max-meetings") if obj.get("max-meetings") is not None else -1 + }) + return _obj + + diff --git a/src/python/vectorize_client/models/gcs.py b/src/python/vectorize_client/models/gcs.py new file mode 100644 index 0000000..b8b4249 --- /dev/null +++ b/src/python/vectorize_client/models/gcs.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 +from vectorize_client.models.gcs_config import GCSConfig +from typing import Optional, Set +from typing_extensions import Self + +class Gcs(BaseModel): + """ + Gcs + """ # noqa: E501 + name: StrictStr = Field(description="Name of the connector") + type: StrictStr = Field(description="Connector type (must be \"GCS\")") + config: GCSConfig + __properties: ClassVar[List[str]] = ["name", "type", "config"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['GCS']): + raise ValueError("must be one of enum values ('GCS')") + 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 Gcs 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 config + if self.config: + _dict['config'] = self.config.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Gcs 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": GCSConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + }) + return _obj + + diff --git a/src/python/vectorize_client/models/gcs1.py b/src/python/vectorize_client/models/gcs1.py new file mode 100644 index 0000000..f3c6a26 --- /dev/null +++ b/src/python/vectorize_client/models/gcs1.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, Optional +from vectorize_client.models.gcs_config import GCSConfig +from typing import Optional, Set +from typing_extensions import Self + +class Gcs1(BaseModel): + """ + Gcs1 + """ # noqa: E501 + config: Optional[GCSConfig] = None + __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 Gcs1 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 config + if self.config: + _dict['config'] = self.config.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Gcs1 from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "config": GCSConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + }) + return _obj + + diff --git a/src/python/vectorize_client/models/gcs_auth_config.py b/src/python/vectorize_client/models/gcs_auth_config.py new file mode 100644 index 0000000..0a6eec0 --- /dev/null +++ b/src/python/vectorize_client/models/gcs_auth_config.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, SecretStr, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class GCSAuthConfig(BaseModel): + """ + Authentication configuration for GCP Cloud Storage + """ # noqa: E501 + name: StrictStr = Field(description="Name. Example: Enter a descriptive name") + service_account_json: SecretStr = Field(description="Service Account JSON. Example: Enter the JSON key file for the service account", alias="service-account-json") + bucket_name: StrictStr = Field(description="Bucket. Example: Enter bucket name", alias="bucket-name") + __properties: ClassVar[List[str]] = ["name", "service-account-json", "bucket-name"] + + 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 GCSAuthConfig 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 GCSAuthConfig 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"), + "service-account-json": obj.get("service-account-json"), + "bucket-name": obj.get("bucket-name") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/gcs_config.py b/src/python/vectorize_client/models/gcs_config.py new file mode 100644 index 0000000..1b3a873 --- /dev/null +++ b/src/python/vectorize_client/models/gcs_config.py @@ -0,0 +1,106 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, StrictBool, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class GCSConfig(BaseModel): + """ + Configuration for GCP Cloud Storage connector + """ # noqa: E501 + file_extensions: List[StrictStr] = Field(description="File Extensions", alias="file-extensions") + idle_time: Union[Annotated[float, Field(strict=True, ge=1)], Annotated[int, Field(strict=True, ge=1)]] = Field(description="Check for updates every (seconds)", alias="idle-time") + recursive: Optional[StrictBool] = Field(default=None, description="Recursively scan all folders in the bucket") + path_prefix: Optional[StrictStr] = Field(default=None, description="Path Prefix", alias="path-prefix") + path_metadata_regex: Optional[StrictStr] = Field(default=None, description="Path Metadata Regex", alias="path-metadata-regex") + path_regex_group_names: Optional[StrictStr] = Field(default=None, description="Path Regex Group Names. Example: Enter Group Name", alias="path-regex-group-names") + __properties: ClassVar[List[str]] = ["file-extensions", "idle-time", "recursive", "path-prefix", "path-metadata-regex", "path-regex-group-names"] + + @field_validator('file_extensions') + def file_extensions_validate_enum(cls, value): + """Validates the enum""" + for i in value: + if i not in set(['pdf', 'doc,docx,gdoc,odt,rtf,epub', 'ppt,pptx,gslides', 'xls,xlsx,gsheets,ods', 'eml,msg', 'txt', 'html,htm', 'md', 'json', 'csv', 'jpg,jpeg,png,webp,svg,gif']): + raise ValueError("each list item must be one of ('pdf', 'doc,docx,gdoc,odt,rtf,epub', 'ppt,pptx,gslides', 'xls,xlsx,gsheets,ods', 'eml,msg', 'txt', 'html,htm', 'md', 'json', 'csv', 'jpg,jpeg,png,webp,svg,gif')") + 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 GCSConfig 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 GCSConfig from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "file-extensions": obj.get("file-extensions"), + "idle-time": obj.get("idle-time") if obj.get("idle-time") is not None else 5, + "recursive": obj.get("recursive"), + "path-prefix": obj.get("path-prefix"), + "path-metadata-regex": obj.get("path-metadata-regex"), + "path-regex-group-names": obj.get("path-regex-group-names") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/get_ai_platform_connectors200_response.py b/src/python/vectorize_client/models/get_ai_platform_connectors200_response.py index 5f31291..a23bff6 100644 --- a/src/python/vectorize_client/models/get_ai_platform_connectors200_response.py +++ b/src/python/vectorize_client/models/get_ai_platform_connectors200_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) 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 05d6bad..7f3e428 100644 --- a/src/python/vectorize_client/models/get_deep_research_response.py +++ b/src/python/vectorize_client/models/get_deep_research_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/src/python/vectorize_client/models/get_destination_connectors200_response.py b/src/python/vectorize_client/models/get_destination_connectors200_response.py index 611eb87..fa60e88 100644 --- a/src/python/vectorize_client/models/get_destination_connectors200_response.py +++ b/src/python/vectorize_client/models/get_destination_connectors200_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) 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 b70fce4..982f462 100644 --- a/src/python/vectorize_client/models/get_pipeline_events_response.py +++ b/src/python/vectorize_client/models/get_pipeline_events_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) 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 6545e1f..77f1069 100644 --- a/src/python/vectorize_client/models/get_pipeline_metrics_response.py +++ b/src/python/vectorize_client/models/get_pipeline_metrics_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/src/python/vectorize_client/models/get_pipeline_response.py b/src/python/vectorize_client/models/get_pipeline_response.py index 6f63df6..50ba5ad 100644 --- a/src/python/vectorize_client/models/get_pipeline_response.py +++ b/src/python/vectorize_client/models/get_pipeline_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/src/python/vectorize_client/models/get_pipelines400_response.py b/src/python/vectorize_client/models/get_pipelines400_response.py index ab3e477..5c1ee78 100644 --- a/src/python/vectorize_client/models/get_pipelines400_response.py +++ b/src/python/vectorize_client/models/get_pipelines400_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/src/python/vectorize_client/models/get_pipelines_response.py b/src/python/vectorize_client/models/get_pipelines_response.py index 974f2c5..02218b1 100644 --- a/src/python/vectorize_client/models/get_pipelines_response.py +++ b/src/python/vectorize_client/models/get_pipelines_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/src/python/vectorize_client/models/get_source_connectors200_response.py b/src/python/vectorize_client/models/get_source_connectors200_response.py index ffe2b00..c2b5961 100644 --- a/src/python/vectorize_client/models/get_source_connectors200_response.py +++ b/src/python/vectorize_client/models/get_source_connectors200_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) 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 060208a..d214dfa 100644 --- a/src/python/vectorize_client/models/get_upload_files_response.py +++ b/src/python/vectorize_client/models/get_upload_files_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/src/python/vectorize_client/models/github.py b/src/python/vectorize_client/models/github.py new file mode 100644 index 0000000..0e0cee3 --- /dev/null +++ b/src/python/vectorize_client/models/github.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 +from vectorize_client.models.github_config import GITHUBConfig +from typing import Optional, Set +from typing_extensions import Self + +class Github(BaseModel): + """ + Github + """ # noqa: E501 + name: StrictStr = Field(description="Name of the connector") + type: StrictStr = Field(description="Connector type (must be \"GITHUB\")") + config: GITHUBConfig + __properties: ClassVar[List[str]] = ["name", "type", "config"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['GITHUB']): + raise ValueError("must be one of enum values ('GITHUB')") + 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 Github 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 config + if self.config: + _dict['config'] = self.config.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Github 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": GITHUBConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + }) + return _obj + + diff --git a/src/python/vectorize_client/models/github1.py b/src/python/vectorize_client/models/github1.py new file mode 100644 index 0000000..a170b8b --- /dev/null +++ b/src/python/vectorize_client/models/github1.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, Optional +from vectorize_client.models.github_config import GITHUBConfig +from typing import Optional, Set +from typing_extensions import Self + +class Github1(BaseModel): + """ + Github1 + """ # noqa: E501 + config: Optional[GITHUBConfig] = None + __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 Github1 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 config + if self.config: + _dict['config'] = self.config.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Github1 from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "config": GITHUBConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + }) + return _obj + + diff --git a/src/python/vectorize_client/models/github_auth_config.py b/src/python/vectorize_client/models/github_auth_config.py new file mode 100644 index 0000000..7b2ac2e --- /dev/null +++ b/src/python/vectorize_client/models/github_auth_config.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class GITHUBAuthConfig(BaseModel): + """ + Authentication configuration for GitHub + """ # noqa: E501 + name: StrictStr = Field(description="Name. Example: Enter a descriptive name") + oauth_token: Annotated[str, Field(strict=True)] = Field(description="Personal Access Token. Example: Enter your GitHub personal access token", alias="oauth-token") + __properties: ClassVar[List[str]] = ["name", "oauth-token"] + + @field_validator('oauth_token') + def oauth_token_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^\S.*\S$|^\S$", value): + raise ValueError(r"must validate the regular expression /^\S.*\S$|^\S$/") + 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 GITHUBAuthConfig 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 GITHUBAuthConfig 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"), + "oauth-token": obj.get("oauth-token") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/github_config.py b/src/python/vectorize_client/models/github_config.py new file mode 100644 index 0000000..07fb81c --- /dev/null +++ b/src/python/vectorize_client/models/github_config.py @@ -0,0 +1,126 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 datetime import date +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class GITHUBConfig(BaseModel): + """ + Configuration for GitHub connector + """ # noqa: E501 + repositories: Annotated[str, Field(strict=True)] = Field(description="Repositories. Example: Example: owner1/repo1") + include_pull_requests: StrictBool = Field(description="Include Pull Requests", alias="include-pull-requests") + pull_request_status: StrictStr = Field(description="Pull Request Status", alias="pull-request-status") + pull_request_labels: Optional[StrictStr] = Field(default=None, description="Pull Request Labels. Example: Optionally filter by label. E.g. fix", alias="pull-request-labels") + include_issues: StrictBool = Field(description="Include Issues", alias="include-issues") + issue_status: StrictStr = Field(description="Issue Status", alias="issue-status") + issue_labels: Optional[StrictStr] = Field(default=None, description="Issue Labels. Example: Optionally filter by label. E.g. bug", alias="issue-labels") + max_items: Union[StrictFloat, StrictInt] = Field(description="Max Items. Example: Enter maximum number of items to fetch", alias="max-items") + created_after: Optional[date] = Field(default=None, description="Created After. Filter for items created after this date. Example: Enter a date: Example 2012-12-31", alias="created-after") + __properties: ClassVar[List[str]] = ["repositories", "include-pull-requests", "pull-request-status", "pull-request-labels", "include-issues", "issue-status", "issue-labels", "max-items", "created-after"] + + @field_validator('repositories') + def repositories_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^[a-zA-Z0-9-]+\/[a-zA-Z0-9-]+$", value): + raise ValueError(r"must validate the regular expression /^[a-zA-Z0-9-]+\/[a-zA-Z0-9-]+$/") + return value + + @field_validator('pull_request_status') + def pull_request_status_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['all', 'open', 'closed', 'merged']): + raise ValueError("must be one of enum values ('all', 'open', 'closed', 'merged')") + return value + + @field_validator('issue_status') + def issue_status_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['all', 'open', 'closed']): + raise ValueError("must be one of enum values ('all', 'open', 'closed')") + 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 GITHUBConfig 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 GITHUBConfig from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "repositories": obj.get("repositories"), + "include-pull-requests": obj.get("include-pull-requests") if obj.get("include-pull-requests") is not None else True, + "pull-request-status": obj.get("pull-request-status") if obj.get("pull-request-status") is not None else 'all', + "pull-request-labels": obj.get("pull-request-labels"), + "include-issues": obj.get("include-issues") if obj.get("include-issues") is not None else True, + "issue-status": obj.get("issue-status") if obj.get("issue-status") is not None else 'all', + "issue-labels": obj.get("issue-labels"), + "max-items": obj.get("max-items") if obj.get("max-items") is not None else 1000, + "created-after": obj.get("created-after") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/gmail_auth_config.py b/src/python/vectorize_client/models/gmail_auth_config.py new file mode 100644 index 0000000..2905d0c --- /dev/null +++ b/src/python/vectorize_client/models/gmail_auth_config.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, SecretStr, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class GMAILAuthConfig(BaseModel): + """ + Authentication configuration for Gmail + """ # noqa: E501 + name: StrictStr = Field(description="Name. Example: Enter a descriptive name") + refresh_token: SecretStr = Field(description="Connect Gmail to Vectorize. Example: Authorize", alias="refresh-token") + __properties: ClassVar[List[str]] = ["name", "refresh-token"] + + 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 GMAILAuthConfig 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 GMAILAuthConfig 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"), + "refresh-token": obj.get("refresh-token") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/gmail_config.py b/src/python/vectorize_client/models/gmail_config.py new file mode 100644 index 0000000..2aaf56d --- /dev/null +++ b/src/python/vectorize_client/models/gmail_config.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 datetime import date +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class GMAILConfig(BaseModel): + """ + Configuration for Gmail connector + """ # noqa: E501 + from_filter_type: StrictStr = Field(alias="from-filter-type") + to_filter_type: StrictStr = Field(alias="to-filter-type") + subject_filter_type: StrictStr = Field(alias="subject-filter-type") + label_filter_type: StrictStr = Field(alias="label-filter-type") + var_from: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="From Address Filter. Only include emails from these senders. Example: Add sender email(s)", alias="from") + to: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="To Address Filter. Only include emails sent to these recipients. Example: Add recipient email(s)") + subject: Optional[StrictStr] = Field(default=None, description="Subject Filter. Include emails with these keywords in the subject line. Example: Add subject keywords") + start_date: Optional[date] = Field(default=None, description="Start Date. Only include emails sent after this date (exclusive). Format: YYYY-MM-DD.. Example: e.g., 2024-01-01", alias="start-date") + end_date: Optional[date] = Field(default=None, description="End Date. Only include emails sent before this date (exclusive). Format: YYYY-MM-DD.. Example: e.g., 2024-01-31", alias="end-date") + max_results: Optional[Union[StrictFloat, StrictInt]] = Field(default=-1, description="Maximum Results. Enter -1 for all available emails, or specify a limit. . Example: Enter maximum number of threads to retrieve", alias="max-results") + messages_to_fetch: Optional[List[StrictStr]] = Field(default=None, description="Messages to Fetch. Select which categories of messages to include in the import.", alias="messages-to-fetch") + label_ids: Optional[StrictStr] = Field(default=None, description="Label Filters. Include emails with these labels. Example: e.g., INBOX, IMPORTANT, CATEGORY_SOCIAL", alias="label-ids") + __properties: ClassVar[List[str]] = ["from-filter-type", "to-filter-type", "subject-filter-type", "label-filter-type", "from", "to", "subject", "start-date", "end-date", "max-results", "messages-to-fetch", "label-ids"] + + @field_validator('var_from') + def var_from_validate_regular_expression(cls, value): + """Validates the regular expression""" + if value is None: + return value + + if not re.match(r"^[^\s@]+@[^\s@]+\.[^\s@]+$", value): + raise ValueError(r"must validate the regular expression /^[^\s@]+@[^\s@]+\.[^\s@]+$/") + return value + + @field_validator('to') + def to_validate_regular_expression(cls, value): + """Validates the regular expression""" + if value is None: + return value + + if not re.match(r"^[^\s@]+@[^\s@]+\.[^\s@]+$", value): + raise ValueError(r"must validate the regular expression /^[^\s@]+@[^\s@]+\.[^\s@]+$/") + return value + + @field_validator('messages_to_fetch') + def messages_to_fetch_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['all', 'inbox', 'sent', 'archive', 'spam-trash', 'unread', 'starred', 'important']): + raise ValueError("each list item must be one of ('all', 'inbox', 'sent', 'archive', 'spam-trash', 'unread', 'starred', 'important')") + 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 GMAILConfig 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 GMAILConfig from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "from-filter-type": obj.get("from-filter-type") if obj.get("from-filter-type") is not None else 'OR', + "to-filter-type": obj.get("to-filter-type") if obj.get("to-filter-type") is not None else 'OR', + "subject-filter-type": obj.get("subject-filter-type") if obj.get("subject-filter-type") is not None else 'AND', + "label-filter-type": obj.get("label-filter-type") if obj.get("label-filter-type") is not None else 'AND', + "from": obj.get("from"), + "to": obj.get("to"), + "subject": obj.get("subject"), + "start-date": obj.get("start-date"), + "end-date": obj.get("end-date"), + "max-results": obj.get("max-results") if obj.get("max-results") is not None else -1, + "messages-to-fetch": obj.get("messages-to-fetch"), + "label-ids": obj.get("label-ids") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/google_drive.py b/src/python/vectorize_client/models/google_drive.py new file mode 100644 index 0000000..161df3a --- /dev/null +++ b/src/python/vectorize_client/models/google_drive.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 +from vectorize_client.models.googledrive_config import GOOGLEDRIVEConfig +from typing import Optional, Set +from typing_extensions import Self + +class GoogleDrive(BaseModel): + """ + GoogleDrive + """ # noqa: E501 + name: StrictStr = Field(description="Name of the connector") + type: StrictStr = Field(description="Connector type (must be \"GOOGLE_DRIVE\")") + config: GOOGLEDRIVEConfig + __properties: ClassVar[List[str]] = ["name", "type", "config"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['GOOGLE_DRIVE']): + raise ValueError("must be one of enum values ('GOOGLE_DRIVE')") + 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 GoogleDrive 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 config + if self.config: + _dict['config'] = self.config.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GoogleDrive 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": GOOGLEDRIVEConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + }) + return _obj + + diff --git a/src/python/vectorize_client/models/google_drive1.py b/src/python/vectorize_client/models/google_drive1.py new file mode 100644 index 0000000..b813f5a --- /dev/null +++ b/src/python/vectorize_client/models/google_drive1.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, Optional +from vectorize_client.models.googledrive_config import GOOGLEDRIVEConfig +from typing import Optional, Set +from typing_extensions import Self + +class GoogleDrive1(BaseModel): + """ + GoogleDrive1 + """ # noqa: E501 + config: Optional[GOOGLEDRIVEConfig] = None + __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 GoogleDrive1 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 config + if self.config: + _dict['config'] = self.config.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GoogleDrive1 from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "config": GOOGLEDRIVEConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + }) + return _obj + + diff --git a/src/python/vectorize_client/models/google_drive_oauth.py b/src/python/vectorize_client/models/google_drive_oauth.py new file mode 100644 index 0000000..1f0ebaf --- /dev/null +++ b/src/python/vectorize_client/models/google_drive_oauth.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, Optional +from vectorize_client.models.googledriveoauth_config import GOOGLEDRIVEOAUTHConfig +from typing import Optional, Set +from typing_extensions import Self + +class GoogleDriveOauth(BaseModel): + """ + GoogleDriveOauth + """ # noqa: E501 + config: Optional[GOOGLEDRIVEOAUTHConfig] = None + __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 GoogleDriveOauth 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 config + if self.config: + _dict['config'] = self.config.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GoogleDriveOauth from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "config": GOOGLEDRIVEOAUTHConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + }) + return _obj + + diff --git a/src/python/vectorize_client/models/google_drive_oauth_multi.py b/src/python/vectorize_client/models/google_drive_oauth_multi.py new file mode 100644 index 0000000..e190991 --- /dev/null +++ b/src/python/vectorize_client/models/google_drive_oauth_multi.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, Optional +from vectorize_client.models.googledriveoauthmulti_config import GOOGLEDRIVEOAUTHMULTIConfig +from typing import Optional, Set +from typing_extensions import Self + +class GoogleDriveOauthMulti(BaseModel): + """ + GoogleDriveOauthMulti + """ # noqa: E501 + config: Optional[GOOGLEDRIVEOAUTHMULTIConfig] = None + __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 GoogleDriveOauthMulti 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 config + if self.config: + _dict['config'] = self.config.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GoogleDriveOauthMulti from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "config": GOOGLEDRIVEOAUTHMULTIConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + }) + return _obj + + diff --git a/src/python/vectorize_client/models/google_drive_oauth_multi_custom.py b/src/python/vectorize_client/models/google_drive_oauth_multi_custom.py new file mode 100644 index 0000000..8ebdf59 --- /dev/null +++ b/src/python/vectorize_client/models/google_drive_oauth_multi_custom.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, Optional +from vectorize_client.models.googledriveoauthmulticustom_config import GOOGLEDRIVEOAUTHMULTICUSTOMConfig +from typing import Optional, Set +from typing_extensions import Self + +class GoogleDriveOauthMultiCustom(BaseModel): + """ + GoogleDriveOauthMultiCustom + """ # noqa: E501 + config: Optional[GOOGLEDRIVEOAUTHMULTICUSTOMConfig] = None + __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 GoogleDriveOauthMultiCustom 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 config + if self.config: + _dict['config'] = self.config.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GoogleDriveOauthMultiCustom from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "config": GOOGLEDRIVEOAUTHMULTICUSTOMConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + }) + return _obj + + diff --git a/src/python/vectorize_client/models/googledrive_auth_config.py b/src/python/vectorize_client/models/googledrive_auth_config.py new file mode 100644 index 0000000..287d87b --- /dev/null +++ b/src/python/vectorize_client/models/googledrive_auth_config.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, SecretStr, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class GOOGLEDRIVEAuthConfig(BaseModel): + """ + Authentication configuration for Google Drive (Service Account) + """ # noqa: E501 + name: StrictStr = Field(description="Name. Example: Enter a descriptive name") + service_account_json: SecretStr = Field(description="Service Account JSON. Example: Enter the JSON key file for the service account", alias="service-account-json") + __properties: ClassVar[List[str]] = ["name", "service-account-json"] + + 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 GOOGLEDRIVEAuthConfig 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 GOOGLEDRIVEAuthConfig 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"), + "service-account-json": obj.get("service-account-json") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/googledrive_config.py b/src/python/vectorize_client/models/googledrive_config.py new file mode 100644 index 0000000..3076118 --- /dev/null +++ b/src/python/vectorize_client/models/googledrive_config.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, field_validator +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class GOOGLEDRIVEConfig(BaseModel): + """ + Configuration for Google Drive (Service Account) connector + """ # noqa: E501 + file_extensions: List[StrictStr] = Field(description="File Extensions", alias="file-extensions") + root_parents: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="Restrict ingest to these folder URLs (optional). Example: Enter Folder URLs. Example: https://drive.google.com/drive/folders/1234aBCd5678_eFgH9012iJKL3456opqr", alias="root-parents") + idle_time: Optional[Union[StrictFloat, StrictInt]] = Field(default=5, description="Polling Interval (seconds). Example: Enter polling interval in seconds", alias="idle-time") + __properties: ClassVar[List[str]] = ["file-extensions", "root-parents", "idle-time"] + + @field_validator('file_extensions') + def file_extensions_validate_enum(cls, value): + """Validates the enum""" + for i in value: + if i not in set(['pdf', 'doc,docx,gdoc,odt,rtf,epub', 'ppt,pptx,gslides', 'xls,xlsx,gsheets,ods', 'eml,msg', 'txt', 'html,htm', 'md', 'json', 'csv', 'jpg,jpeg,png,webp,svg,gif']): + raise ValueError("each list item must be one of ('pdf', 'doc,docx,gdoc,odt,rtf,epub', 'ppt,pptx,gslides', 'xls,xlsx,gsheets,ods', 'eml,msg', 'txt', 'html,htm', 'md', 'json', 'csv', 'jpg,jpeg,png,webp,svg,gif')") + return value + + @field_validator('root_parents') + def root_parents_validate_regular_expression(cls, value): + """Validates the regular expression""" + if value is None: + return value + + if not re.match(r"^https:\/\/drive\.google\.com\/drive(\/u\/\d+)?\/folders\/[a-zA-Z0-9_-]+(\?.*)?$", value): + raise ValueError(r"must validate the regular expression /^https:\/\/drive\.google\.com\/drive(\/u\/\d+)?\/folders\/[a-zA-Z0-9_-]+(\?.*)?$/") + 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 GOOGLEDRIVEConfig 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 GOOGLEDRIVEConfig from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "file-extensions": obj.get("file-extensions"), + "root-parents": obj.get("root-parents"), + "idle-time": obj.get("idle-time") if obj.get("idle-time") is not None else 5 + }) + return _obj + + diff --git a/src/python/vectorize_client/models/googledriveoauth_auth_config.py b/src/python/vectorize_client/models/googledriveoauth_auth_config.py new file mode 100644 index 0000000..047bf99 --- /dev/null +++ b/src/python/vectorize_client/models/googledriveoauth_auth_config.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 GOOGLEDRIVEOAUTHAuthConfig(BaseModel): + """ + Authentication configuration for Google Drive OAuth + """ # noqa: E501 + name: StrictStr = Field(description="Name. Example: Enter a descriptive name") + authorized_user: Optional[StrictStr] = Field(default=None, description="Authorized User", alias="authorized-user") + selection_details: StrictStr = Field(description="Connect Google Drive to Vectorize. Example: Authorize", alias="selection-details") + edited_users: Optional[Dict[str, Any]] = Field(default=None, alias="editedUsers") + reconnect_users: Optional[Dict[str, Any]] = Field(default=None, alias="reconnectUsers") + __properties: ClassVar[List[str]] = ["name", "authorized-user", "selection-details", "editedUsers", "reconnectUsers"] + + 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 GOOGLEDRIVEOAUTHAuthConfig 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 GOOGLEDRIVEOAUTHAuthConfig 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"), + "authorized-user": obj.get("authorized-user"), + "selection-details": obj.get("selection-details"), + "editedUsers": obj.get("editedUsers"), + "reconnectUsers": obj.get("reconnectUsers") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/googledriveoauth_config.py b/src/python/vectorize_client/models/googledriveoauth_config.py new file mode 100644 index 0000000..603bba2 --- /dev/null +++ b/src/python/vectorize_client/models/googledriveoauth_config.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, field_validator +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class GOOGLEDRIVEOAUTHConfig(BaseModel): + """ + Configuration for Google Drive OAuth connector + """ # noqa: E501 + file_extensions: List[StrictStr] = Field(description="File Extensions", alias="file-extensions") + idle_time: Optional[Union[StrictFloat, StrictInt]] = Field(default=5, description="Polling Interval (seconds). Example: Enter polling interval in seconds", alias="idle-time") + __properties: ClassVar[List[str]] = ["file-extensions", "idle-time"] + + @field_validator('file_extensions') + def file_extensions_validate_enum(cls, value): + """Validates the enum""" + for i in value: + if i not in set(['pdf', 'doc,docx,gdoc,odt,rtf,epub', 'ppt,pptx,gslides', 'xls,xlsx,gsheets,ods', 'eml,msg', 'txt', 'html,htm', 'md', 'json', 'csv', 'jpg,jpeg,png,webp,svg,gif']): + raise ValueError("each list item must be one of ('pdf', 'doc,docx,gdoc,odt,rtf,epub', 'ppt,pptx,gslides', 'xls,xlsx,gsheets,ods', 'eml,msg', 'txt', 'html,htm', 'md', 'json', 'csv', 'jpg,jpeg,png,webp,svg,gif')") + 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 GOOGLEDRIVEOAUTHConfig 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 GOOGLEDRIVEOAUTHConfig from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "file-extensions": obj.get("file-extensions"), + "idle-time": obj.get("idle-time") if obj.get("idle-time") is not None else 5 + }) + return _obj + + diff --git a/src/python/vectorize_client/models/googledriveoauthmulti_auth_config.py b/src/python/vectorize_client/models/googledriveoauthmulti_auth_config.py new file mode 100644 index 0000000..ee67df6 --- /dev/null +++ b/src/python/vectorize_client/models/googledriveoauthmulti_auth_config.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 GOOGLEDRIVEOAUTHMULTIAuthConfig(BaseModel): + """ + Authentication configuration for Google Drive Multi-User (Vectorize) + """ # noqa: E501 + name: StrictStr = Field(description="Name. Example: Enter a descriptive name") + authorized_users: Optional[StrictStr] = Field(default=None, description="Authorized Users", alias="authorized-users") + edited_users: Optional[Dict[str, Any]] = Field(default=None, alias="editedUsers") + deleted_users: Optional[Dict[str, Any]] = Field(default=None, alias="deletedUsers") + __properties: ClassVar[List[str]] = ["name", "authorized-users", "editedUsers", "deletedUsers"] + + 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 GOOGLEDRIVEOAUTHMULTIAuthConfig 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 GOOGLEDRIVEOAUTHMULTIAuthConfig 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"), + "authorized-users": obj.get("authorized-users"), + "editedUsers": obj.get("editedUsers"), + "deletedUsers": obj.get("deletedUsers") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/googledriveoauthmulti_config.py b/src/python/vectorize_client/models/googledriveoauthmulti_config.py new file mode 100644 index 0000000..5604430 --- /dev/null +++ b/src/python/vectorize_client/models/googledriveoauthmulti_config.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, field_validator +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class GOOGLEDRIVEOAUTHMULTIConfig(BaseModel): + """ + Configuration for Google Drive Multi-User (Vectorize) connector + """ # noqa: E501 + file_extensions: List[StrictStr] = Field(description="File Extensions", alias="file-extensions") + idle_time: Optional[Union[StrictFloat, StrictInt]] = Field(default=5, description="Polling Interval (seconds). Example: Enter polling interval in seconds", alias="idle-time") + __properties: ClassVar[List[str]] = ["file-extensions", "idle-time"] + + @field_validator('file_extensions') + def file_extensions_validate_enum(cls, value): + """Validates the enum""" + for i in value: + if i not in set(['pdf', 'doc,docx,gdoc,odt,rtf,epub', 'ppt,pptx,gslides', 'xls,xlsx,gsheets,ods', 'eml,msg', 'txt', 'html,htm', 'md', 'json', 'csv', 'jpg,jpeg,png,webp,svg,gif']): + raise ValueError("each list item must be one of ('pdf', 'doc,docx,gdoc,odt,rtf,epub', 'ppt,pptx,gslides', 'xls,xlsx,gsheets,ods', 'eml,msg', 'txt', 'html,htm', 'md', 'json', 'csv', 'jpg,jpeg,png,webp,svg,gif')") + 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 GOOGLEDRIVEOAUTHMULTIConfig 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 GOOGLEDRIVEOAUTHMULTIConfig from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "file-extensions": obj.get("file-extensions"), + "idle-time": obj.get("idle-time") if obj.get("idle-time") is not None else 5 + }) + return _obj + + diff --git a/src/python/vectorize_client/models/googledriveoauthmulticustom_auth_config.py b/src/python/vectorize_client/models/googledriveoauthmulticustom_auth_config.py new file mode 100644 index 0000000..92d6fcc --- /dev/null +++ b/src/python/vectorize_client/models/googledriveoauthmulticustom_auth_config.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, SecretStr, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig(BaseModel): + """ + Authentication configuration for Google Drive Multi-User (White Label) + """ # noqa: E501 + name: StrictStr = Field(description="Name. Example: Enter a descriptive name") + oauth2_client_id: SecretStr = Field(description="OAuth2 Client Id. Example: Enter Client Id", alias="oauth2-client-id") + oauth2_client_secret: SecretStr = Field(description="OAuth2 Client Secret. Example: Enter Client Secret", alias="oauth2-client-secret") + authorized_users: Optional[StrictStr] = Field(default=None, description="Authorized Users", alias="authorized-users") + edited_users: Optional[Dict[str, Any]] = Field(default=None, alias="editedUsers") + deleted_users: Optional[Dict[str, Any]] = Field(default=None, alias="deletedUsers") + __properties: ClassVar[List[str]] = ["name", "oauth2-client-id", "oauth2-client-secret", "authorized-users", "editedUsers", "deletedUsers"] + + 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 GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig 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 GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig 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"), + "oauth2-client-id": obj.get("oauth2-client-id"), + "oauth2-client-secret": obj.get("oauth2-client-secret"), + "authorized-users": obj.get("authorized-users"), + "editedUsers": obj.get("editedUsers"), + "deletedUsers": obj.get("deletedUsers") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/googledriveoauthmulticustom_config.py b/src/python/vectorize_client/models/googledriveoauthmulticustom_config.py new file mode 100644 index 0000000..d9a9281 --- /dev/null +++ b/src/python/vectorize_client/models/googledriveoauthmulticustom_config.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, field_validator +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class GOOGLEDRIVEOAUTHMULTICUSTOMConfig(BaseModel): + """ + Configuration for Google Drive Multi-User (White Label) connector + """ # noqa: E501 + file_extensions: List[StrictStr] = Field(description="File Extensions", alias="file-extensions") + idle_time: Optional[Union[StrictFloat, StrictInt]] = Field(default=5, description="Polling Interval (seconds). Example: Enter polling interval in seconds", alias="idle-time") + __properties: ClassVar[List[str]] = ["file-extensions", "idle-time"] + + @field_validator('file_extensions') + def file_extensions_validate_enum(cls, value): + """Validates the enum""" + for i in value: + if i not in set(['pdf', 'doc,docx,gdoc,odt,rtf,epub', 'ppt,pptx,gslides', 'xls,xlsx,gsheets,ods', 'eml,msg', 'txt', 'html,htm', 'md', 'json', 'csv', 'jpg,jpeg,png,webp,svg,gif']): + raise ValueError("each list item must be one of ('pdf', 'doc,docx,gdoc,odt,rtf,epub', 'ppt,pptx,gslides', 'xls,xlsx,gsheets,ods', 'eml,msg', 'txt', 'html,htm', 'md', 'json', 'csv', 'jpg,jpeg,png,webp,svg,gif')") + 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 GOOGLEDRIVEOAUTHMULTICUSTOMConfig 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 GOOGLEDRIVEOAUTHMULTICUSTOMConfig from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "file-extensions": obj.get("file-extensions"), + "idle-time": obj.get("idle-time") if obj.get("idle-time") is not None else 5 + }) + return _obj + + diff --git a/src/python/vectorize_client/models/intercom.py b/src/python/vectorize_client/models/intercom.py new file mode 100644 index 0000000..21cb353 --- /dev/null +++ b/src/python/vectorize_client/models/intercom.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, Optional +from vectorize_client.models.intercom_config import INTERCOMConfig +from typing import Optional, Set +from typing_extensions import Self + +class Intercom(BaseModel): + """ + Intercom + """ # noqa: E501 + config: Optional[INTERCOMConfig] = None + __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 Intercom 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 config + if self.config: + _dict['config'] = self.config.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Intercom from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "config": INTERCOMConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + }) + return _obj + + diff --git a/src/python/vectorize_client/models/intercom_auth_config.py b/src/python/vectorize_client/models/intercom_auth_config.py new file mode 100644 index 0000000..ca804c4 --- /dev/null +++ b/src/python/vectorize_client/models/intercom_auth_config.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, SecretStr, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class INTERCOMAuthConfig(BaseModel): + """ + Authentication configuration for Intercom + """ # noqa: E501 + name: StrictStr = Field(description="Name. Example: Enter a descriptive name") + token: SecretStr = Field(description="Access Token. Example: Authorize Intercom Access") + __properties: ClassVar[List[str]] = ["name", "token"] + + 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 INTERCOMAuthConfig 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 INTERCOMAuthConfig 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"), + "token": obj.get("token") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/intercom_config.py b/src/python/vectorize_client/models/intercom_config.py new file mode 100644 index 0000000..34a0061 --- /dev/null +++ b/src/python/vectorize_client/models/intercom_config.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 datetime import date +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class INTERCOMConfig(BaseModel): + """ + Configuration for Intercom connector + """ # noqa: E501 + created_at: date = Field(description="Created After. Filter for conversations created after this date. Example: Enter a date: Example 2012-12-31") + updated_at: Optional[date] = Field(default=None, description="Updated After. Filter for conversations updated after this date. Example: Enter a date: Example 2012-12-31") + state: Optional[List[StrictStr]] = Field(default=None, description="State") + __properties: ClassVar[List[str]] = ["created_at", "updated_at", "state"] + + @field_validator('state') + def state_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['open', 'closed', 'snoozed']): + raise ValueError("each list item must be one of ('open', 'closed', 'snoozed')") + 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 INTERCOMConfig 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 INTERCOMConfig from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "created_at": obj.get("created_at"), + "updated_at": obj.get("updated_at"), + "state": obj.get("state") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/metadata_extraction_strategy.py b/src/python/vectorize_client/models/metadata_extraction_strategy.py index 5e23db1..ba0d740 100644 --- a/src/python/vectorize_client/models/metadata_extraction_strategy.py +++ b/src/python/vectorize_client/models/metadata_extraction_strategy.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/src/python/vectorize_client/models/metadata_extraction_strategy_schema.py b/src/python/vectorize_client/models/metadata_extraction_strategy_schema.py index 4178318..6fe666a 100644 --- a/src/python/vectorize_client/models/metadata_extraction_strategy_schema.py +++ b/src/python/vectorize_client/models/metadata_extraction_strategy_schema.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/src/python/vectorize_client/models/milvus.py b/src/python/vectorize_client/models/milvus.py new file mode 100644 index 0000000..22d95bf --- /dev/null +++ b/src/python/vectorize_client/models/milvus.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 +from vectorize_client.models.milvus_config import MILVUSConfig +from typing import Optional, Set +from typing_extensions import Self + +class Milvus(BaseModel): + """ + Milvus + """ # noqa: E501 + name: StrictStr = Field(description="Name of the connector") + type: StrictStr = Field(description="Connector type (must be \"MILVUS\")") + config: MILVUSConfig + __properties: ClassVar[List[str]] = ["name", "type", "config"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['MILVUS']): + raise ValueError("must be one of enum values ('MILVUS')") + 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 Milvus 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 config + if self.config: + _dict['config'] = self.config.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Milvus 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": MILVUSConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + }) + return _obj + + diff --git a/src/python/vectorize_client/models/milvus1.py b/src/python/vectorize_client/models/milvus1.py new file mode 100644 index 0000000..335a96e --- /dev/null +++ b/src/python/vectorize_client/models/milvus1.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, Optional +from vectorize_client.models.milvus_config import MILVUSConfig +from typing import Optional, Set +from typing_extensions import Self + +class Milvus1(BaseModel): + """ + Milvus1 + """ # noqa: E501 + config: Optional[MILVUSConfig] = None + __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 Milvus1 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 config + if self.config: + _dict['config'] = self.config.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Milvus1 from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "config": MILVUSConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + }) + return _obj + + diff --git a/src/python/vectorize_client/models/milvus_auth_config.py b/src/python/vectorize_client/models/milvus_auth_config.py new file mode 100644 index 0000000..3c3e8ae --- /dev/null +++ b/src/python/vectorize_client/models/milvus_auth_config.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, SecretStr, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class MILVUSAuthConfig(BaseModel): + """ + Authentication configuration for Milvus + """ # noqa: E501 + name: StrictStr = Field(description="Name. Example: Enter a descriptive name for your Milvus integration") + url: StrictStr = Field(description="Public Endpoint. Example: Enter your public endpoint for your Milvus cluster") + token: Optional[SecretStr] = Field(default=None, description="Token. Example: Enter your cluster token or Username/Password") + username: Optional[StrictStr] = Field(default=None, description="Username. Example: Enter your cluster Username") + password: Optional[SecretStr] = Field(default=None, description="Password. Example: Enter your cluster Password") + __properties: ClassVar[List[str]] = ["name", "url", "token", "username", "password"] + + 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 MILVUSAuthConfig 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 MILVUSAuthConfig 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"), + "url": obj.get("url"), + "token": obj.get("token"), + "username": obj.get("username"), + "password": obj.get("password") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/milvus_config.py b/src/python/vectorize_client/models/milvus_config.py new file mode 100644 index 0000000..9f752b5 --- /dev/null +++ b/src/python/vectorize_client/models/milvus_config.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, field_validator +from typing import Any, ClassVar, Dict, List +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class MILVUSConfig(BaseModel): + """ + Configuration for Milvus connector + """ # noqa: E501 + collection: Annotated[str, Field(strict=True)] = Field(description="Collection Name. Example: Enter collection name") + __properties: ClassVar[List[str]] = ["collection"] + + @field_validator('collection') + def collection_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^[a-zA-Z][a-zA-Z0-9_]*$", value): + raise ValueError(r"must validate the regular expression /^[a-zA-Z][a-zA-Z0-9_]*$/") + 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 MILVUSConfig 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 MILVUSConfig from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "collection": obj.get("collection") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/n8_n_config.py b/src/python/vectorize_client/models/n8_n_config.py index 5a1e4f1..712090c 100644 --- a/src/python/vectorize_client/models/n8_n_config.py +++ b/src/python/vectorize_client/models/n8_n_config.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/src/python/vectorize_client/models/notion.py b/src/python/vectorize_client/models/notion.py new file mode 100644 index 0000000..e3fac5c --- /dev/null +++ b/src/python/vectorize_client/models/notion.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, Optional +from vectorize_client.models.notion_config import NOTIONConfig +from typing import Optional, Set +from typing_extensions import Self + +class Notion(BaseModel): + """ + Notion + """ # noqa: E501 + config: Optional[NOTIONConfig] = None + __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 Notion 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 config + if self.config: + _dict['config'] = self.config.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Notion from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "config": NOTIONConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + }) + return _obj + + diff --git a/src/python/vectorize_client/models/notion_auth_config.py b/src/python/vectorize_client/models/notion_auth_config.py new file mode 100644 index 0000000..b90e3cf --- /dev/null +++ b/src/python/vectorize_client/models/notion_auth_config.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, SecretStr, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class NOTIONAuthConfig(BaseModel): + """ + Authentication configuration for Notion + """ # noqa: E501 + name: StrictStr = Field(description="Name. Example: Enter a descriptive name") + access_token: SecretStr = Field(description="Connect Notion to Vectorize - Note this will effect existing connections. test. Example: Authorize", alias="access-token") + s3id: Optional[StrictStr] = None + edited_token: Optional[StrictStr] = Field(default=None, alias="editedToken") + __properties: ClassVar[List[str]] = ["name", "access-token", "s3id", "editedToken"] + + 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 NOTIONAuthConfig 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 NOTIONAuthConfig 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"), + "access-token": obj.get("access-token"), + "s3id": obj.get("s3id"), + "editedToken": obj.get("editedToken") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/notion_config.py b/src/python/vectorize_client/models/notion_config.py new file mode 100644 index 0000000..1e63152 --- /dev/null +++ b/src/python/vectorize_client/models/notion_config.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 NOTIONConfig(BaseModel): + """ + Configuration for Notion connector + """ # noqa: E501 + select_resources: StrictStr = Field(description="Select Notion Resources", alias="select-resources") + database_ids: StrictStr = Field(description="Database IDs", alias="database-ids") + database_names: StrictStr = Field(description="Database Names", alias="database-names") + page_ids: StrictStr = Field(description="Page IDs", alias="page-ids") + page_names: StrictStr = Field(description="Page Names", alias="page-names") + __properties: ClassVar[List[str]] = ["select-resources", "database-ids", "database-names", "page-ids", "page-names"] + + 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 NOTIONConfig 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 NOTIONConfig from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "select-resources": obj.get("select-resources"), + "database-ids": obj.get("database-ids"), + "database-names": obj.get("database-names"), + "page-ids": obj.get("page-ids"), + "page-names": obj.get("page-names") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/notion_oauth_multi.py b/src/python/vectorize_client/models/notion_oauth_multi.py new file mode 100644 index 0000000..7810fc7 --- /dev/null +++ b/src/python/vectorize_client/models/notion_oauth_multi.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, Optional +from vectorize_client.models.notionoauthmulti_auth_config import NOTIONOAUTHMULTIAuthConfig +from typing import Optional, Set +from typing_extensions import Self + +class NotionOauthMulti(BaseModel): + """ + NotionOauthMulti + """ # noqa: E501 + config: Optional[NOTIONOAUTHMULTIAuthConfig] = None + __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 NotionOauthMulti 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 config + if self.config: + _dict['config'] = self.config.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of NotionOauthMulti from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "config": NOTIONOAUTHMULTIAuthConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + }) + return _obj + + diff --git a/src/python/vectorize_client/models/notion_oauth_multi_custom.py b/src/python/vectorize_client/models/notion_oauth_multi_custom.py new file mode 100644 index 0000000..9f415e6 --- /dev/null +++ b/src/python/vectorize_client/models/notion_oauth_multi_custom.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, Optional +from vectorize_client.models.notionoauthmulticustom_auth_config import NOTIONOAUTHMULTICUSTOMAuthConfig +from typing import Optional, Set +from typing_extensions import Self + +class NotionOauthMultiCustom(BaseModel): + """ + NotionOauthMultiCustom + """ # noqa: E501 + config: Optional[NOTIONOAUTHMULTICUSTOMAuthConfig] = None + __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 NotionOauthMultiCustom 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 config + if self.config: + _dict['config'] = self.config.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of NotionOauthMultiCustom from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "config": NOTIONOAUTHMULTICUSTOMAuthConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + }) + return _obj + + diff --git a/src/python/vectorize_client/models/notionoauthmulti_auth_config.py b/src/python/vectorize_client/models/notionoauthmulti_auth_config.py new file mode 100644 index 0000000..19c38b0 --- /dev/null +++ b/src/python/vectorize_client/models/notionoauthmulti_auth_config.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 NOTIONOAUTHMULTIAuthConfig(BaseModel): + """ + Authentication configuration for Notion Multi-User (Vectorize) + """ # noqa: E501 + name: StrictStr = Field(description="Name. Example: Enter a descriptive name") + authorized_users: Optional[StrictStr] = Field(default=None, description="Authorized Users. Users who have authorized access to their Notion content", alias="authorized-users") + edited_users: Optional[Dict[str, Any]] = Field(default=None, alias="editedUsers") + deleted_users: Optional[Dict[str, Any]] = Field(default=None, alias="deletedUsers") + __properties: ClassVar[List[str]] = ["name", "authorized-users", "editedUsers", "deletedUsers"] + + 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 NOTIONOAUTHMULTIAuthConfig 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 NOTIONOAUTHMULTIAuthConfig 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"), + "authorized-users": obj.get("authorized-users"), + "editedUsers": obj.get("editedUsers"), + "deletedUsers": obj.get("deletedUsers") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/notionoauthmulticustom_auth_config.py b/src/python/vectorize_client/models/notionoauthmulticustom_auth_config.py new file mode 100644 index 0000000..272a500 --- /dev/null +++ b/src/python/vectorize_client/models/notionoauthmulticustom_auth_config.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, SecretStr, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class NOTIONOAUTHMULTICUSTOMAuthConfig(BaseModel): + """ + Authentication configuration for Notion Multi-User (White Label) + """ # noqa: E501 + name: StrictStr = Field(description="Name. Example: Enter a descriptive name") + client_id: SecretStr = Field(description="Notion Client ID. Example: Enter Client ID", alias="client-id") + client_secret: SecretStr = Field(description="Notion Client Secret. Example: Enter Client Secret", alias="client-secret") + authorized_users: Optional[StrictStr] = Field(default=None, description="Authorized Users", alias="authorized-users") + edited_users: Optional[Dict[str, Any]] = Field(default=None, alias="editedUsers") + deleted_users: Optional[Dict[str, Any]] = Field(default=None, alias="deletedUsers") + __properties: ClassVar[List[str]] = ["name", "client-id", "client-secret", "authorized-users", "editedUsers", "deletedUsers"] + + 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 NOTIONOAUTHMULTICUSTOMAuthConfig 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 NOTIONOAUTHMULTICUSTOMAuthConfig 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"), + "client-id": obj.get("client-id"), + "client-secret": obj.get("client-secret"), + "authorized-users": obj.get("authorized-users"), + "editedUsers": obj.get("editedUsers"), + "deletedUsers": obj.get("deletedUsers") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/one_drive.py b/src/python/vectorize_client/models/one_drive.py new file mode 100644 index 0000000..38a2ada --- /dev/null +++ b/src/python/vectorize_client/models/one_drive.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 +from vectorize_client.models.onedrive_config import ONEDRIVEConfig +from typing import Optional, Set +from typing_extensions import Self + +class OneDrive(BaseModel): + """ + OneDrive + """ # noqa: E501 + name: StrictStr = Field(description="Name of the connector") + type: StrictStr = Field(description="Connector type (must be \"ONE_DRIVE\")") + config: ONEDRIVEConfig + __properties: ClassVar[List[str]] = ["name", "type", "config"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['ONE_DRIVE']): + raise ValueError("must be one of enum values ('ONE_DRIVE')") + 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 OneDrive 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 config + if self.config: + _dict['config'] = self.config.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of OneDrive 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": ONEDRIVEConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + }) + return _obj + + diff --git a/src/python/vectorize_client/models/one_drive1.py b/src/python/vectorize_client/models/one_drive1.py new file mode 100644 index 0000000..5f03ac0 --- /dev/null +++ b/src/python/vectorize_client/models/one_drive1.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, Optional +from vectorize_client.models.onedrive_config import ONEDRIVEConfig +from typing import Optional, Set +from typing_extensions import Self + +class OneDrive1(BaseModel): + """ + OneDrive1 + """ # noqa: E501 + config: Optional[ONEDRIVEConfig] = None + __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 OneDrive1 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 config + if self.config: + _dict['config'] = self.config.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of OneDrive1 from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "config": ONEDRIVEConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + }) + return _obj + + diff --git a/src/python/vectorize_client/models/onedrive_auth_config.py b/src/python/vectorize_client/models/onedrive_auth_config.py new file mode 100644 index 0000000..caf9a61 --- /dev/null +++ b/src/python/vectorize_client/models/onedrive_auth_config.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, SecretStr, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class ONEDRIVEAuthConfig(BaseModel): + """ + Authentication configuration for OneDrive + """ # noqa: E501 + name: StrictStr = Field(description="Name. Example: Enter a descriptive name") + ms_client_id: StrictStr = Field(description="Client Id. Example: Enter Client Id", alias="ms-client-id") + ms_tenant_id: StrictStr = Field(description="Tenant Id. Example: Enter Tenant Id", alias="ms-tenant-id") + ms_client_secret: SecretStr = Field(description="Client Secret. Example: Enter Client Secret", alias="ms-client-secret") + users: StrictStr = Field(description="Users. Example: Enter users emails to import files from. Example: developer@vectorize.io") + __properties: ClassVar[List[str]] = ["name", "ms-client-id", "ms-tenant-id", "ms-client-secret", "users"] + + 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 ONEDRIVEAuthConfig 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 ONEDRIVEAuthConfig 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"), + "ms-client-id": obj.get("ms-client-id"), + "ms-tenant-id": obj.get("ms-tenant-id"), + "ms-client-secret": obj.get("ms-client-secret"), + "users": obj.get("users") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/onedrive_config.py b/src/python/vectorize_client/models/onedrive_config.py new file mode 100644 index 0000000..03d1789 --- /dev/null +++ b/src/python/vectorize_client/models/onedrive_config.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 import Optional, Set +from typing_extensions import Self + +class ONEDRIVEConfig(BaseModel): + """ + Configuration for OneDrive connector + """ # noqa: E501 + file_extensions: List[StrictStr] = Field(description="File Extensions", alias="file-extensions") + path_prefix: Optional[StrictStr] = Field(default=None, description="Read starting from this folder (optional). Example: Enter Folder path: /exampleFolder/subFolder", alias="path-prefix") + __properties: ClassVar[List[str]] = ["file-extensions", "path-prefix"] + + @field_validator('file_extensions') + def file_extensions_validate_enum(cls, value): + """Validates the enum""" + for i in value: + if i not in set(['pdf', 'doc,docx,gdoc,odt,rtf,epub', 'ppt,pptx,gslides', 'xls,xlsx,gsheets,ods', 'eml,msg', 'txt', 'html,htm', 'md', 'json', 'csv', 'jpg,jpeg,png,webp,svg,gif']): + raise ValueError("each list item must be one of ('pdf', 'doc,docx,gdoc,odt,rtf,epub', 'ppt,pptx,gslides', 'xls,xlsx,gsheets,ods', 'eml,msg', 'txt', 'html,htm', 'md', 'json', 'csv', 'jpg,jpeg,png,webp,svg,gif')") + 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 ONEDRIVEConfig 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 ONEDRIVEConfig from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "file-extensions": obj.get("file-extensions"), + "path-prefix": obj.get("path-prefix") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/openai.py b/src/python/vectorize_client/models/openai.py new file mode 100644 index 0000000..083db50 --- /dev/null +++ b/src/python/vectorize_client/models/openai.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 +from vectorize_client.models.openai_auth_config import OPENAIAuthConfig +from typing import Optional, Set +from typing_extensions import Self + +class Openai(BaseModel): + """ + Openai + """ # noqa: E501 + name: StrictStr = Field(description="Name of the connector") + type: StrictStr = Field(description="Connector type (must be \"OPENAI\")") + config: OPENAIAuthConfig + __properties: ClassVar[List[str]] = ["name", "type", "config"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['OPENAI']): + raise ValueError("must be one of enum values ('OPENAI')") + 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 Openai 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 config + if self.config: + _dict['config'] = self.config.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Openai 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": OPENAIAuthConfig.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.py b/src/python/vectorize_client/models/openai1.py similarity index 76% rename from src/python/vectorize_client/models/create_ai_platform_connector.py rename to src/python/vectorize_client/models/openai1.py index 50093e9..6690093 100644 --- a/src/python/vectorize_client/models/create_ai_platform_connector.py +++ b/src/python/vectorize_client/models/openai1.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -17,20 +17,17 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +from pydantic import BaseModel, ConfigDict, Field 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): +class Openai1(BaseModel): """ - CreateAIPlatformConnector + Openai1 """ # noqa: E501 - name: StrictStr - type: AIPlatformType - config: Optional[Dict[str, Any]] = None - __properties: ClassVar[List[str]] = ["name", "type", "config"] + config: Optional[Dict[str, Any]] = Field(default=None, description="Configuration updates") + __properties: ClassVar[List[str]] = ["config"] model_config = ConfigDict( populate_by_name=True, @@ -50,7 +47,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of CreateAIPlatformConnector from a JSON string""" + """Create an instance of Openai1 from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -75,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of CreateAIPlatformConnector from a dict""" + """Create an instance of Openai1 from a dict""" if obj is None: return None @@ -83,8 +80,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: 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/openai_auth_config.py b/src/python/vectorize_client/models/openai_auth_config.py new file mode 100644 index 0000000..9bf99e0 --- /dev/null +++ b/src/python/vectorize_client/models/openai_auth_config.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class OPENAIAuthConfig(BaseModel): + """ + Authentication configuration for OpenAI + """ # noqa: E501 + name: StrictStr = Field(description="Name. Example: Enter a descriptive name for your OpenAI integration") + key: Annotated[str, Field(strict=True)] = Field(description="API Key. Example: Enter your OpenAI API Key") + __properties: ClassVar[List[str]] = ["name", "key"] + + @field_validator('key') + def key_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^\S.*\S$|^\S$", value): + raise ValueError(r"must validate the regular expression /^\S.*\S$|^\S$/") + 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 OPENAIAuthConfig 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 OPENAIAuthConfig 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"), + "key": obj.get("key") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/pinecone.py b/src/python/vectorize_client/models/pinecone.py new file mode 100644 index 0000000..397b50e --- /dev/null +++ b/src/python/vectorize_client/models/pinecone.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 +from vectorize_client.models.pinecone_config import PINECONEConfig +from typing import Optional, Set +from typing_extensions import Self + +class Pinecone(BaseModel): + """ + Pinecone + """ # noqa: E501 + name: StrictStr = Field(description="Name of the connector") + type: StrictStr = Field(description="Connector type (must be \"PINECONE\")") + config: PINECONEConfig + __properties: ClassVar[List[str]] = ["name", "type", "config"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['PINECONE']): + raise ValueError("must be one of enum values ('PINECONE')") + 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 Pinecone 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 config + if self.config: + _dict['config'] = self.config.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Pinecone 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": PINECONEConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + }) + return _obj + + diff --git a/src/python/vectorize_client/models/pinecone1.py b/src/python/vectorize_client/models/pinecone1.py new file mode 100644 index 0000000..7e8d629 --- /dev/null +++ b/src/python/vectorize_client/models/pinecone1.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, Optional +from vectorize_client.models.pinecone_config import PINECONEConfig +from typing import Optional, Set +from typing_extensions import Self + +class Pinecone1(BaseModel): + """ + Pinecone1 + """ # noqa: E501 + config: Optional[PINECONEConfig] = None + __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 Pinecone1 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 config + if self.config: + _dict['config'] = self.config.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Pinecone1 from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "config": PINECONEConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + }) + return _obj + + diff --git a/src/python/vectorize_client/models/pinecone_auth_config.py b/src/python/vectorize_client/models/pinecone_auth_config.py new file mode 100644 index 0000000..4358142 --- /dev/null +++ b/src/python/vectorize_client/models/pinecone_auth_config.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class PINECONEAuthConfig(BaseModel): + """ + Authentication configuration for Pinecone + """ # noqa: E501 + name: StrictStr = Field(description="Name. Example: Enter a descriptive name for your Pinecone integration") + api_key: Annotated[str, Field(strict=True)] = Field(description="API Key. Example: Enter your API Key", alias="api-key") + __properties: ClassVar[List[str]] = ["name", "api-key"] + + @field_validator('api_key') + def api_key_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^\S.*\S$|^\S$", value): + raise ValueError(r"must validate the regular expression /^\S.*\S$|^\S$/") + 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 PINECONEAuthConfig 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 PINECONEAuthConfig 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"), + "api-key": obj.get("api-key") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/pinecone_config.py b/src/python/vectorize_client/models/pinecone_config.py new file mode 100644 index 0000000..604855e --- /dev/null +++ b/src/python/vectorize_client/models/pinecone_config.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, 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 PINECONEConfig(BaseModel): + """ + Configuration for Pinecone connector + """ # noqa: E501 + index: Annotated[str, Field(strict=True, max_length=45)] = Field(description="Index Name. Example: Enter index name") + namespace: Optional[Annotated[str, Field(strict=True, max_length=45)]] = Field(default=None, description="Namespace. Example: Enter namespace") + __properties: ClassVar[List[str]] = ["index", "namespace"] + + @field_validator('index') + def index_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^(?!.*--)(?!^-)(?!.*-$)[a-z0-9-]+$", value): + raise ValueError(r"must validate the regular expression /^(?!.*--)(?!^-)(?!.*-$)[a-z0-9-]+$/") + return value + + @field_validator('namespace') + def namespace_validate_regular_expression(cls, value): + """Validates the regular expression""" + if value is None: + return value + + if not re.match(r"^(?!.*--)(?!^-)(?!.*-$)[a-z0-9-]+$", value): + raise ValueError(r"must validate the regular expression /^(?!.*--)(?!^-)(?!.*-$)[a-z0-9-]+$/") + 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 PINECONEConfig 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 PINECONEConfig from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "index": obj.get("index"), + "namespace": obj.get("namespace") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/pipeline_configuration_schema.py b/src/python/vectorize_client/models/pipeline_configuration_schema.py index 977c150..08f86ec 100644 --- a/src/python/vectorize_client/models/pipeline_configuration_schema.py +++ b/src/python/vectorize_client/models/pipeline_configuration_schema.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -20,7 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List from typing_extensions import Annotated -from vectorize_client.models.ai_platform_schema import AIPlatformSchema +from vectorize_client.models.ai_platform_connector_schema import AIPlatformConnectorSchema from vectorize_client.models.destination_connector_schema import DestinationConnectorSchema from vectorize_client.models.schedule_schema import ScheduleSchema from vectorize_client.models.source_connector_schema import SourceConnectorSchema @@ -33,7 +33,7 @@ class PipelineConfigurationSchema(BaseModel): """ # noqa: E501 source_connectors: Annotated[List[SourceConnectorSchema], Field(min_length=1)] = Field(alias="sourceConnectors") destination_connector: DestinationConnectorSchema = Field(alias="destinationConnector") - ai_platform: AIPlatformSchema = Field(alias="aiPlatform") + ai_platform: AIPlatformConnectorSchema = Field(alias="aiPlatform") pipeline_name: Annotated[str, Field(min_length=1, strict=True)] = Field(alias="pipelineName") schedule: ScheduleSchema __properties: ClassVar[List[str]] = ["sourceConnectors", "destinationConnector", "aiPlatform", "pipelineName", "schedule"] @@ -107,7 +107,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "sourceConnectors": [SourceConnectorSchema.from_dict(_item) for _item in obj["sourceConnectors"]] if obj.get("sourceConnectors") is not None else None, "destinationConnector": DestinationConnectorSchema.from_dict(obj["destinationConnector"]) if obj.get("destinationConnector") is not None else None, - "aiPlatform": AIPlatformSchema.from_dict(obj["aiPlatform"]) if obj.get("aiPlatform") is not None else None, + "aiPlatform": AIPlatformConnectorSchema.from_dict(obj["aiPlatform"]) if obj.get("aiPlatform") is not None else None, "pipelineName": obj.get("pipelineName"), "schedule": ScheduleSchema.from_dict(obj["schedule"]) if obj.get("schedule") is not None else None }) diff --git a/src/python/vectorize_client/models/pipeline_events.py b/src/python/vectorize_client/models/pipeline_events.py index 7d9971a..41ff884 100644 --- a/src/python/vectorize_client/models/pipeline_events.py +++ b/src/python/vectorize_client/models/pipeline_events.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/src/python/vectorize_client/models/pipeline_list_summary.py b/src/python/vectorize_client/models/pipeline_list_summary.py index 8540ba7..f1718bc 100644 --- a/src/python/vectorize_client/models/pipeline_list_summary.py +++ b/src/python/vectorize_client/models/pipeline_list_summary.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/src/python/vectorize_client/models/pipeline_metrics.py b/src/python/vectorize_client/models/pipeline_metrics.py index 13ad162..12d95ee 100644 --- a/src/python/vectorize_client/models/pipeline_metrics.py +++ b/src/python/vectorize_client/models/pipeline_metrics.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/src/python/vectorize_client/models/pipeline_summary.py b/src/python/vectorize_client/models/pipeline_summary.py index 7ac5218..6cedbe8 100644 --- a/src/python/vectorize_client/models/pipeline_summary.py +++ b/src/python/vectorize_client/models/pipeline_summary.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/src/python/vectorize_client/models/postgresql.py b/src/python/vectorize_client/models/postgresql.py new file mode 100644 index 0000000..bcfc291 --- /dev/null +++ b/src/python/vectorize_client/models/postgresql.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 +from vectorize_client.models.postgresql_config import POSTGRESQLConfig +from typing import Optional, Set +from typing_extensions import Self + +class Postgresql(BaseModel): + """ + Postgresql + """ # noqa: E501 + name: StrictStr = Field(description="Name of the connector") + type: StrictStr = Field(description="Connector type (must be \"POSTGRESQL\")") + config: POSTGRESQLConfig + __properties: ClassVar[List[str]] = ["name", "type", "config"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['POSTGRESQL']): + raise ValueError("must be one of enum values ('POSTGRESQL')") + 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 Postgresql 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 config + if self.config: + _dict['config'] = self.config.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Postgresql 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": POSTGRESQLConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + }) + return _obj + + diff --git a/src/python/vectorize_client/models/postgresql1.py b/src/python/vectorize_client/models/postgresql1.py new file mode 100644 index 0000000..b0c504d --- /dev/null +++ b/src/python/vectorize_client/models/postgresql1.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, Optional +from vectorize_client.models.postgresql_config import POSTGRESQLConfig +from typing import Optional, Set +from typing_extensions import Self + +class Postgresql1(BaseModel): + """ + Postgresql1 + """ # noqa: E501 + config: Optional[POSTGRESQLConfig] = None + __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 Postgresql1 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 config + if self.config: + _dict['config'] = self.config.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Postgresql1 from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "config": POSTGRESQLConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + }) + return _obj + + diff --git a/src/python/vectorize_client/models/postgresql_auth_config.py b/src/python/vectorize_client/models/postgresql_auth_config.py new file mode 100644 index 0000000..3b7b13f --- /dev/null +++ b/src/python/vectorize_client/models/postgresql_auth_config.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, SecretStr, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class POSTGRESQLAuthConfig(BaseModel): + """ + Authentication configuration for PostgreSQL + """ # noqa: E501 + name: StrictStr = Field(description="Name. Example: Enter a descriptive name for your PostgreSQL integration") + host: StrictStr = Field(description="Host. Example: Enter the host of the deployment") + port: Optional[Union[StrictFloat, StrictInt]] = Field(default=5432, description="Port. Example: Enter the port of the deployment") + database: StrictStr = Field(description="Database. Example: Enter the database name") + username: StrictStr = Field(description="Username. Example: Enter the username") + password: SecretStr = Field(description="Password. Example: Enter the username's password") + __properties: ClassVar[List[str]] = ["name", "host", "port", "database", "username", "password"] + + 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 POSTGRESQLAuthConfig 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 POSTGRESQLAuthConfig 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"), + "host": obj.get("host"), + "port": obj.get("port") if obj.get("port") is not None else 5432, + "database": obj.get("database"), + "username": obj.get("username"), + "password": obj.get("password") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/postgresql_config.py b/src/python/vectorize_client/models/postgresql_config.py new file mode 100644 index 0000000..6ab18f5 --- /dev/null +++ b/src/python/vectorize_client/models/postgresql_config.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, field_validator +from typing import Any, ClassVar, Dict, List +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class POSTGRESQLConfig(BaseModel): + """ + Configuration for PostgreSQL connector + """ # noqa: E501 + table: Annotated[str, Field(strict=True, max_length=45)] = Field(description="Table Name. Example: Enter or .
") + __properties: ClassVar[List[str]] = ["table"] + + @field_validator('table') + def table_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^(?!\b(add|alter|all|and|any|as|asc|avg|between|case|check|column|commit|constraint|create|cross|database|default|delete|desc|distinct|drop|else|exists|false|from|full|group|having|in|index|inner|insert|is|join|key|left|like|limit|max|min|not|null|on|or|order|outer|primary|right|rollback|select|set|sum|table|true|union|unique|update|values|view|where)\b$)(?!.*--)(?!.*[-])[a-z][a-z0-9._]{0,44}$", value): + raise ValueError(r"must validate the regular expression /^(?!\b(add|alter|all|and|any|as|asc|avg|between|case|check|column|commit|constraint|create|cross|database|default|delete|desc|distinct|drop|else|exists|false|from|full|group|having|in|index|inner|insert|is|join|key|left|like|limit|max|min|not|null|on|or|order|outer|primary|right|rollback|select|set|sum|table|true|union|unique|update|values|view|where)\b$)(?!.*--)(?!.*[-])[a-z][a-z0-9._]{0,44}$/") + 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 POSTGRESQLConfig 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 POSTGRESQLConfig from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "table": obj.get("table") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/qdrant.py b/src/python/vectorize_client/models/qdrant.py new file mode 100644 index 0000000..d2c8333 --- /dev/null +++ b/src/python/vectorize_client/models/qdrant.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 +from vectorize_client.models.qdrant_config import QDRANTConfig +from typing import Optional, Set +from typing_extensions import Self + +class Qdrant(BaseModel): + """ + Qdrant + """ # noqa: E501 + name: StrictStr = Field(description="Name of the connector") + type: StrictStr = Field(description="Connector type (must be \"QDRANT\")") + config: QDRANTConfig + __properties: ClassVar[List[str]] = ["name", "type", "config"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['QDRANT']): + raise ValueError("must be one of enum values ('QDRANT')") + 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 Qdrant 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 config + if self.config: + _dict['config'] = self.config.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Qdrant 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": QDRANTConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + }) + return _obj + + diff --git a/src/python/vectorize_client/models/qdrant1.py b/src/python/vectorize_client/models/qdrant1.py new file mode 100644 index 0000000..7ae631a --- /dev/null +++ b/src/python/vectorize_client/models/qdrant1.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, Optional +from vectorize_client.models.qdrant_config import QDRANTConfig +from typing import Optional, Set +from typing_extensions import Self + +class Qdrant1(BaseModel): + """ + Qdrant1 + """ # noqa: E501 + config: Optional[QDRANTConfig] = None + __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 Qdrant1 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 config + if self.config: + _dict['config'] = self.config.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Qdrant1 from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "config": QDRANTConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + }) + return _obj + + diff --git a/src/python/vectorize_client/models/qdrant_auth_config.py b/src/python/vectorize_client/models/qdrant_auth_config.py new file mode 100644 index 0000000..90d0426 --- /dev/null +++ b/src/python/vectorize_client/models/qdrant_auth_config.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class QDRANTAuthConfig(BaseModel): + """ + Authentication configuration for Qdrant + """ # noqa: E501 + name: StrictStr = Field(description="Name. Example: Enter a descriptive name for your Qdrant integration") + host: StrictStr = Field(description="Host. Example: Enter your host") + api_key: Annotated[str, Field(strict=True)] = Field(description="API Key. Example: Enter your API key", alias="api-key") + __properties: ClassVar[List[str]] = ["name", "host", "api-key"] + + @field_validator('api_key') + def api_key_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^\S.*\S$|^\S$", value): + raise ValueError(r"must validate the regular expression /^\S.*\S$|^\S$/") + 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 QDRANTAuthConfig 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 QDRANTAuthConfig 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"), + "host": obj.get("host"), + "api-key": obj.get("api-key") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/qdrant_config.py b/src/python/vectorize_client/models/qdrant_config.py new file mode 100644 index 0000000..3188b42 --- /dev/null +++ b/src/python/vectorize_client/models/qdrant_config.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, field_validator +from typing import Any, ClassVar, Dict, List +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class QDRANTConfig(BaseModel): + """ + Configuration for Qdrant connector + """ # noqa: E501 + collection: Annotated[str, Field(strict=True)] = Field(description="Collection Name. Example: Enter collection name") + __properties: ClassVar[List[str]] = ["collection"] + + @field_validator('collection') + def collection_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^[a-zA-Z0-9_-]*$", value): + raise ValueError(r"must validate the regular expression /^[a-zA-Z0-9_-]*$/") + 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 QDRANTConfig 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 QDRANTConfig from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "collection": obj.get("collection") + }) + 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 index 045d7cb..9227387 100644 --- 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 @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) 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 index cb164a8..8666c4f 100644 --- 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 @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/src/python/vectorize_client/models/retrieve_context.py b/src/python/vectorize_client/models/retrieve_context.py index 0cc45c8..4077346 100644 --- a/src/python/vectorize_client/models/retrieve_context.py +++ b/src/python/vectorize_client/models/retrieve_context.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/src/python/vectorize_client/models/retrieve_context_message.py b/src/python/vectorize_client/models/retrieve_context_message.py index 1d20454..6d29411 100644 --- a/src/python/vectorize_client/models/retrieve_context_message.py +++ b/src/python/vectorize_client/models/retrieve_context_message.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/src/python/vectorize_client/models/retrieve_documents_request.py b/src/python/vectorize_client/models/retrieve_documents_request.py index 87b5fb7..1b2b161 100644 --- a/src/python/vectorize_client/models/retrieve_documents_request.py +++ b/src/python/vectorize_client/models/retrieve_documents_request.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/src/python/vectorize_client/models/retrieve_documents_response.py b/src/python/vectorize_client/models/retrieve_documents_response.py index 0db17a5..ad0035b 100644 --- a/src/python/vectorize_client/models/retrieve_documents_response.py +++ b/src/python/vectorize_client/models/retrieve_documents_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/src/python/vectorize_client/models/schedule_schema.py b/src/python/vectorize_client/models/schedule_schema.py index 3032bf2..89a6037 100644 --- a/src/python/vectorize_client/models/schedule_schema.py +++ b/src/python/vectorize_client/models/schedule_schema.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/src/python/vectorize_client/models/schedule_schema_type.py b/src/python/vectorize_client/models/schedule_schema_type.py index 652ebee..67c0e2d 100644 --- a/src/python/vectorize_client/models/schedule_schema_type.py +++ b/src/python/vectorize_client/models/schedule_schema_type.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/src/python/vectorize_client/models/sharepoint.py b/src/python/vectorize_client/models/sharepoint.py new file mode 100644 index 0000000..73923d2 --- /dev/null +++ b/src/python/vectorize_client/models/sharepoint.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 +from vectorize_client.models.sharepoint_config import SHAREPOINTConfig +from typing import Optional, Set +from typing_extensions import Self + +class Sharepoint(BaseModel): + """ + Sharepoint + """ # noqa: E501 + name: StrictStr = Field(description="Name of the connector") + type: StrictStr = Field(description="Connector type (must be \"SHAREPOINT\")") + config: SHAREPOINTConfig + __properties: ClassVar[List[str]] = ["name", "type", "config"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['SHAREPOINT']): + raise ValueError("must be one of enum values ('SHAREPOINT')") + 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 Sharepoint 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 config + if self.config: + _dict['config'] = self.config.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Sharepoint 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": SHAREPOINTConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + }) + return _obj + + diff --git a/src/python/vectorize_client/models/sharepoint1.py b/src/python/vectorize_client/models/sharepoint1.py new file mode 100644 index 0000000..fb55697 --- /dev/null +++ b/src/python/vectorize_client/models/sharepoint1.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, Optional +from vectorize_client.models.sharepoint_config import SHAREPOINTConfig +from typing import Optional, Set +from typing_extensions import Self + +class Sharepoint1(BaseModel): + """ + Sharepoint1 + """ # noqa: E501 + config: Optional[SHAREPOINTConfig] = None + __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 Sharepoint1 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 config + if self.config: + _dict['config'] = self.config.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Sharepoint1 from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "config": SHAREPOINTConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + }) + return _obj + + diff --git a/src/python/vectorize_client/models/sharepoint_auth_config.py b/src/python/vectorize_client/models/sharepoint_auth_config.py new file mode 100644 index 0000000..7fb8f28 --- /dev/null +++ b/src/python/vectorize_client/models/sharepoint_auth_config.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, SecretStr, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class SHAREPOINTAuthConfig(BaseModel): + """ + Authentication configuration for SharePoint + """ # noqa: E501 + name: StrictStr = Field(description="Name. Example: Enter a descriptive name") + ms_client_id: StrictStr = Field(description="Client Id. Example: Enter Client Id", alias="ms-client-id") + ms_tenant_id: StrictStr = Field(description="Tenant Id. Example: Enter Tenant Id", alias="ms-tenant-id") + ms_client_secret: SecretStr = Field(description="Client Secret. Example: Enter Client Secret", alias="ms-client-secret") + __properties: ClassVar[List[str]] = ["name", "ms-client-id", "ms-tenant-id", "ms-client-secret"] + + 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 SHAREPOINTAuthConfig 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 SHAREPOINTAuthConfig 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"), + "ms-client-id": obj.get("ms-client-id"), + "ms-tenant-id": obj.get("ms-tenant-id"), + "ms-client-secret": obj.get("ms-client-secret") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/sharepoint_config.py b/src/python/vectorize_client/models/sharepoint_config.py new file mode 100644 index 0000000..81a95e8 --- /dev/null +++ b/src/python/vectorize_client/models/sharepoint_config.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 SHAREPOINTConfig(BaseModel): + """ + Configuration for SharePoint connector + """ # noqa: E501 + file_extensions: List[StrictStr] = Field(description="File Extensions", alias="file-extensions") + sites: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="Site Name(s). Example: Filter by site name. All sites if empty.") + folder_path: Optional[StrictStr] = Field(default=None, description="Read starting from this folder (optional). Example: Enter Folder path: /exampleFolder/subFolder", alias="folder-path") + __properties: ClassVar[List[str]] = ["file-extensions", "sites", "folder-path"] + + @field_validator('file_extensions') + def file_extensions_validate_enum(cls, value): + """Validates the enum""" + for i in value: + if i not in set(['pdf', 'doc,docx,gdoc,odt,rtf,epub', 'ppt,pptx,gslides', 'xls,xlsx,gsheets,ods', 'eml,msg', 'txt', 'html,htm', 'json', 'csv', 'jpg,jpeg,png,webp,svg,gif']): + raise ValueError("each list item must be one of ('pdf', 'doc,docx,gdoc,odt,rtf,epub', 'ppt,pptx,gslides', 'xls,xlsx,gsheets,ods', 'eml,msg', 'txt', 'html,htm', 'json', 'csv', 'jpg,jpeg,png,webp,svg,gif')") + return value + + @field_validator('sites') + def sites_validate_regular_expression(cls, value): + """Validates the regular expression""" + if value is None: + return value + + if not re.match(r"^(?!.*(https?:\/\/|www\.))[\w\s\-.]+$", value): + raise ValueError(r"must validate the regular expression /^(?!.*(https?:\/\/|www\.))[\w\s\-.]+$/") + 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 SHAREPOINTConfig 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 SHAREPOINTConfig from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "file-extensions": obj.get("file-extensions"), + "sites": obj.get("sites"), + "folder-path": obj.get("folder-path") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/singlestore.py b/src/python/vectorize_client/models/singlestore.py new file mode 100644 index 0000000..26ef596 --- /dev/null +++ b/src/python/vectorize_client/models/singlestore.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 +from vectorize_client.models.singlestore_config import SINGLESTOREConfig +from typing import Optional, Set +from typing_extensions import Self + +class Singlestore(BaseModel): + """ + Singlestore + """ # noqa: E501 + name: StrictStr = Field(description="Name of the connector") + type: StrictStr = Field(description="Connector type (must be \"SINGLESTORE\")") + config: SINGLESTOREConfig + __properties: ClassVar[List[str]] = ["name", "type", "config"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['SINGLESTORE']): + raise ValueError("must be one of enum values ('SINGLESTORE')") + 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 Singlestore 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 config + if self.config: + _dict['config'] = self.config.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Singlestore 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": SINGLESTOREConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + }) + return _obj + + diff --git a/src/python/vectorize_client/models/singlestore1.py b/src/python/vectorize_client/models/singlestore1.py new file mode 100644 index 0000000..43bbe0e --- /dev/null +++ b/src/python/vectorize_client/models/singlestore1.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, Optional +from vectorize_client.models.singlestore_config import SINGLESTOREConfig +from typing import Optional, Set +from typing_extensions import Self + +class Singlestore1(BaseModel): + """ + Singlestore1 + """ # noqa: E501 + config: Optional[SINGLESTOREConfig] = None + __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 Singlestore1 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 config + if self.config: + _dict['config'] = self.config.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Singlestore1 from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "config": SINGLESTOREConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + }) + return _obj + + diff --git a/src/python/vectorize_client/models/singlestore_auth_config.py b/src/python/vectorize_client/models/singlestore_auth_config.py new file mode 100644 index 0000000..6261055 --- /dev/null +++ b/src/python/vectorize_client/models/singlestore_auth_config.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, SecretStr, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Union +from typing import Optional, Set +from typing_extensions import Self + +class SINGLESTOREAuthConfig(BaseModel): + """ + Authentication configuration for SingleStore + """ # noqa: E501 + name: StrictStr = Field(description="Name. Example: Enter a descriptive name for your SingleStore integration") + host: StrictStr = Field(description="Host. Example: Enter the host of the deployment") + port: Union[StrictFloat, StrictInt] = Field(description="Port. Example: Enter the port of the deployment") + database: StrictStr = Field(description="Database. Example: Enter the database name") + username: StrictStr = Field(description="Username. Example: Enter the username") + password: SecretStr = Field(description="Password. Example: Enter the username's password") + __properties: ClassVar[List[str]] = ["name", "host", "port", "database", "username", "password"] + + 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 SINGLESTOREAuthConfig 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 SINGLESTOREAuthConfig 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"), + "host": obj.get("host"), + "port": obj.get("port"), + "database": obj.get("database"), + "username": obj.get("username"), + "password": obj.get("password") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/singlestore_config.py b/src/python/vectorize_client/models/singlestore_config.py new file mode 100644 index 0000000..f8d3331 --- /dev/null +++ b/src/python/vectorize_client/models/singlestore_config.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, field_validator +from typing import Any, ClassVar, Dict, List +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class SINGLESTOREConfig(BaseModel): + """ + Configuration for SingleStore connector + """ # noqa: E501 + table: Annotated[str, Field(strict=True, max_length=45)] = Field(description="Table Name. Example: Enter table name") + __properties: ClassVar[List[str]] = ["table"] + + @field_validator('table') + def table_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^(?!\b(add|alter|all|and|any|as|asc|avg|between|case|check|column|commit|constraint|create|cross|database|default|delete|desc|distinct|drop|else|exists|false|from|full|group|having|in|index|inner|insert|is|join|key|left|like|limit|max|min|not|null|on|or|order|outer|primary|right|rollback|select|set|sum|table|true|union|unique|update|values|view|where)\b$)(?!.*--)(?!.*[-])[a-z][a-z0-9_]{0,44}$", value): + raise ValueError(r"must validate the regular expression /^(?!\b(add|alter|all|and|any|as|asc|avg|between|case|check|column|commit|constraint|create|cross|database|default|delete|desc|distinct|drop|else|exists|false|from|full|group|having|in|index|inner|insert|is|join|key|left|like|limit|max|min|not|null|on|or|order|outer|primary|right|rollback|select|set|sum|table|true|union|unique|update|values|view|where)\b$)(?!.*--)(?!.*[-])[a-z][a-z0-9_]{0,44}$/") + 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 SINGLESTOREConfig 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 SINGLESTOREConfig from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "table": obj.get("table") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/source_connector.py b/src/python/vectorize_client/models/source_connector.py index deddefc..f1a0d76 100644 --- a/src/python/vectorize_client/models/source_connector.py +++ b/src/python/vectorize_client/models/source_connector.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/src/python/vectorize_client/models/source_connector_input.py b/src/python/vectorize_client/models/source_connector_input.py new file mode 100644 index 0000000..e3a31b7 --- /dev/null +++ b/src/python/vectorize_client/models/source_connector_input.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 +from vectorize_client.models.source_connector_input_config import SourceConnectorInputConfig +from typing import Optional, Set +from typing_extensions import Self + +class SourceConnectorInput(BaseModel): + """ + Source connector configuration + """ # noqa: E501 + id: StrictStr = Field(description="Unique identifier for the source connector") + type: StrictStr = Field(description="Type of source connector") + config: SourceConnectorInputConfig + __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', 'DROPBOX_OAUTH', 'DROPBOX_OAUTH_MULTI', 'DROPBOX_OAUTH_MULTI_CUSTOM', 'FILE_UPLOAD', 'GOOGLE_DRIVE_OAUTH', 'GOOGLE_DRIVE', 'GOOGLE_DRIVE_OAUTH_MULTI', 'GOOGLE_DRIVE_OAUTH_MULTI_CUSTOM', 'FIRECRAWL', 'GCS', 'INTERCOM', 'NOTION', 'NOTION_OAUTH_MULTI', 'NOTION_OAUTH_MULTI_CUSTOM', 'ONE_DRIVE', 'SHAREPOINT', 'WEB_CRAWLER', 'GITHUB', 'FIREFLIES', 'GMAIL']): + raise ValueError("must be one of enum values ('AWS_S3', 'AZURE_BLOB', 'CONFLUENCE', 'DISCORD', 'DROPBOX', 'DROPBOX_OAUTH', 'DROPBOX_OAUTH_MULTI', 'DROPBOX_OAUTH_MULTI_CUSTOM', 'FILE_UPLOAD', 'GOOGLE_DRIVE_OAUTH', 'GOOGLE_DRIVE', 'GOOGLE_DRIVE_OAUTH_MULTI', 'GOOGLE_DRIVE_OAUTH_MULTI_CUSTOM', 'FIRECRAWL', 'GCS', 'INTERCOM', 'NOTION', 'NOTION_OAUTH_MULTI', 'NOTION_OAUTH_MULTI_CUSTOM', 'ONE_DRIVE', 'SHAREPOINT', 'WEB_CRAWLER', 'GITHUB', 'FIREFLIES', 'GMAIL')") + 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 SourceConnectorInput 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 config + if self.config: + _dict['config'] = self.config.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SourceConnectorInput 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"), + "config": SourceConnectorInputConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + }) + return _obj + + diff --git a/src/python/vectorize_client/models/source_connector_input_config.py b/src/python/vectorize_client/models/source_connector_input_config.py new file mode 100644 index 0000000..5f36e03 --- /dev/null +++ b/src/python/vectorize_client/models/source_connector_input_config.py @@ -0,0 +1,375 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 +import pprint +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional +from vectorize_client.models.awss3_config import AWSS3Config +from vectorize_client.models.azureblob_config import AZUREBLOBConfig +from vectorize_client.models.confluence_config import CONFLUENCEConfig +from vectorize_client.models.discord_config import DISCORDConfig +from vectorize_client.models.dropbox_config import DROPBOXConfig +from vectorize_client.models.firecrawl_config import FIRECRAWLConfig +from vectorize_client.models.fireflies_config import FIREFLIESConfig +from vectorize_client.models.gcs_config import GCSConfig +from vectorize_client.models.github_config import GITHUBConfig +from vectorize_client.models.gmail_config import GMAILConfig +from vectorize_client.models.googledrive_config import GOOGLEDRIVEConfig +from vectorize_client.models.googledriveoauth_config import GOOGLEDRIVEOAUTHConfig +from vectorize_client.models.googledriveoauthmulti_config import GOOGLEDRIVEOAUTHMULTIConfig +from vectorize_client.models.googledriveoauthmulticustom_config import GOOGLEDRIVEOAUTHMULTICUSTOMConfig +from vectorize_client.models.intercom_config import INTERCOMConfig +from vectorize_client.models.notion_config import NOTIONConfig +from vectorize_client.models.onedrive_config import ONEDRIVEConfig +from vectorize_client.models.sharepoint_config import SHAREPOINTConfig +from vectorize_client.models.webcrawler_config import WEBCRAWLERConfig +from pydantic import StrictStr, Field +from typing import Union, List, Set, Optional, Dict +from typing_extensions import Literal, Self + +SOURCECONNECTORINPUTCONFIG_ONE_OF_SCHEMAS = ["AWSS3Config", "AZUREBLOBConfig", "CONFLUENCEConfig", "DISCORDConfig", "DROPBOXConfig", "FIRECRAWLConfig", "FIREFLIESConfig", "GCSConfig", "GITHUBConfig", "GMAILConfig", "GOOGLEDRIVEConfig", "GOOGLEDRIVEOAUTHConfig", "GOOGLEDRIVEOAUTHMULTICUSTOMConfig", "GOOGLEDRIVEOAUTHMULTIConfig", "INTERCOMConfig", "NOTIONConfig", "ONEDRIVEConfig", "SHAREPOINTConfig", "WEBCRAWLERConfig"] + +class SourceConnectorInputConfig(BaseModel): + """ + Configuration specific to the connector type + """ + # data type: AWSS3Config + oneof_schema_1_validator: Optional[AWSS3Config] = None + # data type: AZUREBLOBConfig + oneof_schema_2_validator: Optional[AZUREBLOBConfig] = None + # data type: CONFLUENCEConfig + oneof_schema_3_validator: Optional[CONFLUENCEConfig] = None + # data type: DISCORDConfig + oneof_schema_4_validator: Optional[DISCORDConfig] = None + # data type: DROPBOXConfig + oneof_schema_5_validator: Optional[DROPBOXConfig] = None + # data type: GOOGLEDRIVEOAUTHConfig + oneof_schema_6_validator: Optional[GOOGLEDRIVEOAUTHConfig] = None + # data type: GOOGLEDRIVEConfig + oneof_schema_7_validator: Optional[GOOGLEDRIVEConfig] = None + # data type: GOOGLEDRIVEOAUTHMULTIConfig + oneof_schema_8_validator: Optional[GOOGLEDRIVEOAUTHMULTIConfig] = None + # data type: GOOGLEDRIVEOAUTHMULTICUSTOMConfig + oneof_schema_9_validator: Optional[GOOGLEDRIVEOAUTHMULTICUSTOMConfig] = None + # data type: FIRECRAWLConfig + oneof_schema_10_validator: Optional[FIRECRAWLConfig] = None + # data type: GCSConfig + oneof_schema_11_validator: Optional[GCSConfig] = None + # data type: INTERCOMConfig + oneof_schema_12_validator: Optional[INTERCOMConfig] = None + # data type: NOTIONConfig + oneof_schema_13_validator: Optional[NOTIONConfig] = None + # data type: ONEDRIVEConfig + oneof_schema_14_validator: Optional[ONEDRIVEConfig] = None + # data type: SHAREPOINTConfig + oneof_schema_15_validator: Optional[SHAREPOINTConfig] = None + # data type: WEBCRAWLERConfig + oneof_schema_16_validator: Optional[WEBCRAWLERConfig] = None + # data type: GITHUBConfig + oneof_schema_17_validator: Optional[GITHUBConfig] = None + # data type: FIREFLIESConfig + oneof_schema_18_validator: Optional[FIREFLIESConfig] = None + # data type: GMAILConfig + oneof_schema_19_validator: Optional[GMAILConfig] = None + actual_instance: Optional[Union[AWSS3Config, AZUREBLOBConfig, CONFLUENCEConfig, DISCORDConfig, DROPBOXConfig, FIRECRAWLConfig, FIREFLIESConfig, GCSConfig, GITHUBConfig, GMAILConfig, GOOGLEDRIVEConfig, GOOGLEDRIVEOAUTHConfig, GOOGLEDRIVEOAUTHMULTICUSTOMConfig, GOOGLEDRIVEOAUTHMULTIConfig, INTERCOMConfig, NOTIONConfig, ONEDRIVEConfig, SHAREPOINTConfig, WEBCRAWLERConfig]] = None + one_of_schemas: Set[str] = { "AWSS3Config", "AZUREBLOBConfig", "CONFLUENCEConfig", "DISCORDConfig", "DROPBOXConfig", "FIRECRAWLConfig", "FIREFLIESConfig", "GCSConfig", "GITHUBConfig", "GMAILConfig", "GOOGLEDRIVEConfig", "GOOGLEDRIVEOAUTHConfig", "GOOGLEDRIVEOAUTHMULTICUSTOMConfig", "GOOGLEDRIVEOAUTHMULTIConfig", "INTERCOMConfig", "NOTIONConfig", "ONEDRIVEConfig", "SHAREPOINTConfig", "WEBCRAWLERConfig" } + + model_config = ConfigDict( + validate_assignment=True, + protected_namespaces=(), + ) + + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + instance = SourceConnectorInputConfig.model_construct() + error_messages = [] + match = 0 + # validate data type: AWSS3Config + if not isinstance(v, AWSS3Config): + error_messages.append(f"Error! Input type `{type(v)}` is not `AWSS3Config`") + else: + match += 1 + # validate data type: AZUREBLOBConfig + if not isinstance(v, AZUREBLOBConfig): + error_messages.append(f"Error! Input type `{type(v)}` is not `AZUREBLOBConfig`") + else: + match += 1 + # validate data type: CONFLUENCEConfig + if not isinstance(v, CONFLUENCEConfig): + error_messages.append(f"Error! Input type `{type(v)}` is not `CONFLUENCEConfig`") + else: + match += 1 + # validate data type: DISCORDConfig + if not isinstance(v, DISCORDConfig): + error_messages.append(f"Error! Input type `{type(v)}` is not `DISCORDConfig`") + else: + match += 1 + # validate data type: DROPBOXConfig + if not isinstance(v, DROPBOXConfig): + error_messages.append(f"Error! Input type `{type(v)}` is not `DROPBOXConfig`") + else: + match += 1 + # validate data type: GOOGLEDRIVEOAUTHConfig + if not isinstance(v, GOOGLEDRIVEOAUTHConfig): + error_messages.append(f"Error! Input type `{type(v)}` is not `GOOGLEDRIVEOAUTHConfig`") + else: + match += 1 + # validate data type: GOOGLEDRIVEConfig + if not isinstance(v, GOOGLEDRIVEConfig): + error_messages.append(f"Error! Input type `{type(v)}` is not `GOOGLEDRIVEConfig`") + else: + match += 1 + # validate data type: GOOGLEDRIVEOAUTHMULTIConfig + if not isinstance(v, GOOGLEDRIVEOAUTHMULTIConfig): + error_messages.append(f"Error! Input type `{type(v)}` is not `GOOGLEDRIVEOAUTHMULTIConfig`") + else: + match += 1 + # validate data type: GOOGLEDRIVEOAUTHMULTICUSTOMConfig + if not isinstance(v, GOOGLEDRIVEOAUTHMULTICUSTOMConfig): + error_messages.append(f"Error! Input type `{type(v)}` is not `GOOGLEDRIVEOAUTHMULTICUSTOMConfig`") + else: + match += 1 + # validate data type: FIRECRAWLConfig + if not isinstance(v, FIRECRAWLConfig): + error_messages.append(f"Error! Input type `{type(v)}` is not `FIRECRAWLConfig`") + else: + match += 1 + # validate data type: GCSConfig + if not isinstance(v, GCSConfig): + error_messages.append(f"Error! Input type `{type(v)}` is not `GCSConfig`") + else: + match += 1 + # validate data type: INTERCOMConfig + if not isinstance(v, INTERCOMConfig): + error_messages.append(f"Error! Input type `{type(v)}` is not `INTERCOMConfig`") + else: + match += 1 + # validate data type: NOTIONConfig + if not isinstance(v, NOTIONConfig): + error_messages.append(f"Error! Input type `{type(v)}` is not `NOTIONConfig`") + else: + match += 1 + # validate data type: ONEDRIVEConfig + if not isinstance(v, ONEDRIVEConfig): + error_messages.append(f"Error! Input type `{type(v)}` is not `ONEDRIVEConfig`") + else: + match += 1 + # validate data type: SHAREPOINTConfig + if not isinstance(v, SHAREPOINTConfig): + error_messages.append(f"Error! Input type `{type(v)}` is not `SHAREPOINTConfig`") + else: + match += 1 + # validate data type: WEBCRAWLERConfig + if not isinstance(v, WEBCRAWLERConfig): + error_messages.append(f"Error! Input type `{type(v)}` is not `WEBCRAWLERConfig`") + else: + match += 1 + # validate data type: GITHUBConfig + if not isinstance(v, GITHUBConfig): + error_messages.append(f"Error! Input type `{type(v)}` is not `GITHUBConfig`") + else: + match += 1 + # validate data type: FIREFLIESConfig + if not isinstance(v, FIREFLIESConfig): + error_messages.append(f"Error! Input type `{type(v)}` is not `FIREFLIESConfig`") + else: + match += 1 + # validate data type: GMAILConfig + if not isinstance(v, GMAILConfig): + error_messages.append(f"Error! Input type `{type(v)}` is not `GMAILConfig`") + else: + match += 1 + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in SourceConnectorInputConfig with oneOf schemas: AWSS3Config, AZUREBLOBConfig, CONFLUENCEConfig, DISCORDConfig, DROPBOXConfig, FIRECRAWLConfig, FIREFLIESConfig, GCSConfig, GITHUBConfig, GMAILConfig, GOOGLEDRIVEConfig, GOOGLEDRIVEOAUTHConfig, GOOGLEDRIVEOAUTHMULTICUSTOMConfig, GOOGLEDRIVEOAUTHMULTIConfig, INTERCOMConfig, NOTIONConfig, ONEDRIVEConfig, SHAREPOINTConfig, WEBCRAWLERConfig. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in SourceConnectorInputConfig with oneOf schemas: AWSS3Config, AZUREBLOBConfig, CONFLUENCEConfig, DISCORDConfig, DROPBOXConfig, FIRECRAWLConfig, FIREFLIESConfig, GCSConfig, GITHUBConfig, GMAILConfig, GOOGLEDRIVEConfig, GOOGLEDRIVEOAUTHConfig, GOOGLEDRIVEOAUTHMULTICUSTOMConfig, GOOGLEDRIVEOAUTHMULTIConfig, INTERCOMConfig, NOTIONConfig, ONEDRIVEConfig, SHAREPOINTConfig, WEBCRAWLERConfig. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + match = 0 + + # deserialize data into AWSS3Config + try: + instance.actual_instance = AWSS3Config.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into AZUREBLOBConfig + try: + instance.actual_instance = AZUREBLOBConfig.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into CONFLUENCEConfig + try: + instance.actual_instance = CONFLUENCEConfig.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into DISCORDConfig + try: + instance.actual_instance = DISCORDConfig.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into DROPBOXConfig + try: + instance.actual_instance = DROPBOXConfig.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into GOOGLEDRIVEOAUTHConfig + try: + instance.actual_instance = GOOGLEDRIVEOAUTHConfig.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into GOOGLEDRIVEConfig + try: + instance.actual_instance = GOOGLEDRIVEConfig.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into GOOGLEDRIVEOAUTHMULTIConfig + try: + instance.actual_instance = GOOGLEDRIVEOAUTHMULTIConfig.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into GOOGLEDRIVEOAUTHMULTICUSTOMConfig + try: + instance.actual_instance = GOOGLEDRIVEOAUTHMULTICUSTOMConfig.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into FIRECRAWLConfig + try: + instance.actual_instance = FIRECRAWLConfig.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into GCSConfig + try: + instance.actual_instance = GCSConfig.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into INTERCOMConfig + try: + instance.actual_instance = INTERCOMConfig.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into NOTIONConfig + try: + instance.actual_instance = NOTIONConfig.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into ONEDRIVEConfig + try: + instance.actual_instance = ONEDRIVEConfig.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into SHAREPOINTConfig + try: + instance.actual_instance = SHAREPOINTConfig.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into WEBCRAWLERConfig + try: + instance.actual_instance = WEBCRAWLERConfig.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into GITHUBConfig + try: + instance.actual_instance = GITHUBConfig.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into FIREFLIESConfig + try: + instance.actual_instance = FIREFLIESConfig.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into GMAILConfig + try: + instance.actual_instance = GMAILConfig.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into SourceConnectorInputConfig with oneOf schemas: AWSS3Config, AZUREBLOBConfig, CONFLUENCEConfig, DISCORDConfig, DROPBOXConfig, FIRECRAWLConfig, FIREFLIESConfig, GCSConfig, GITHUBConfig, GMAILConfig, GOOGLEDRIVEConfig, GOOGLEDRIVEOAUTHConfig, GOOGLEDRIVEOAUTHMULTICUSTOMConfig, GOOGLEDRIVEOAUTHMULTIConfig, INTERCOMConfig, NOTIONConfig, ONEDRIVEConfig, SHAREPOINTConfig, WEBCRAWLERConfig. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into SourceConnectorInputConfig with oneOf schemas: AWSS3Config, AZUREBLOBConfig, CONFLUENCEConfig, DISCORDConfig, DROPBOXConfig, FIRECRAWLConfig, FIREFLIESConfig, GCSConfig, GITHUBConfig, GMAILConfig, GOOGLEDRIVEConfig, GOOGLEDRIVEOAUTHConfig, GOOGLEDRIVEOAUTHMULTICUSTOMConfig, GOOGLEDRIVEOAUTHMULTIConfig, INTERCOMConfig, NOTIONConfig, ONEDRIVEConfig, SHAREPOINTConfig, WEBCRAWLERConfig. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], AWSS3Config, AZUREBLOBConfig, CONFLUENCEConfig, DISCORDConfig, DROPBOXConfig, FIRECRAWLConfig, FIREFLIESConfig, GCSConfig, GITHUBConfig, GMAILConfig, GOOGLEDRIVEConfig, GOOGLEDRIVEOAUTHConfig, GOOGLEDRIVEOAUTHMULTICUSTOMConfig, GOOGLEDRIVEOAUTHMULTIConfig, INTERCOMConfig, NOTIONConfig, ONEDRIVEConfig, SHAREPOINTConfig, WEBCRAWLERConfig]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/src/python/vectorize_client/models/source_connector_schema.py b/src/python/vectorize_client/models/source_connector_schema.py index 7b4b594..fe90e84 100644 --- a/src/python/vectorize_client/models/source_connector_schema.py +++ b/src/python/vectorize_client/models/source_connector_schema.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict, List, Optional +from typing import Any, ClassVar, Dict, List from vectorize_client.models.source_connector_type import SourceConnectorType from typing import Optional, Set from typing_extensions import Self @@ -29,7 +29,7 @@ class SourceConnectorSchema(BaseModel): """ # noqa: E501 id: StrictStr type: SourceConnectorType - config: Optional[Dict[str, Any]] = None + config: Dict[str, Any] __properties: ClassVar[List[str]] = ["id", "type", "config"] model_config = ConfigDict( diff --git a/src/python/vectorize_client/models/source_connector_type.py b/src/python/vectorize_client/models/source_connector_type.py index 776dfaf..3ef2da4 100644 --- a/src/python/vectorize_client/models/source_connector_type.py +++ b/src/python/vectorize_client/models/source_connector_type.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -31,6 +31,10 @@ class SourceConnectorType(str, Enum): CONFLUENCE = 'CONFLUENCE' DISCORD = 'DISCORD' DROPBOX = 'DROPBOX' + DROPBOX_OAUTH = 'DROPBOX_OAUTH' + DROPBOX_OAUTH_MULTI = 'DROPBOX_OAUTH_MULTI' + DROPBOX_OAUTH_MULTI_CUSTOM = 'DROPBOX_OAUTH_MULTI_CUSTOM' + FILE_UPLOAD = 'FILE_UPLOAD' GOOGLE_DRIVE_OAUTH = 'GOOGLE_DRIVE_OAUTH' GOOGLE_DRIVE = 'GOOGLE_DRIVE' GOOGLE_DRIVE_OAUTH_MULTI = 'GOOGLE_DRIVE_OAUTH_MULTI' @@ -38,12 +42,15 @@ class SourceConnectorType(str, Enum): FIRECRAWL = 'FIRECRAWL' GCS = 'GCS' INTERCOM = 'INTERCOM' + NOTION = 'NOTION' + NOTION_OAUTH_MULTI = 'NOTION_OAUTH_MULTI' + NOTION_OAUTH_MULTI_CUSTOM = 'NOTION_OAUTH_MULTI_CUSTOM' ONE_DRIVE = 'ONE_DRIVE' SHAREPOINT = 'SHAREPOINT' WEB_CRAWLER = 'WEB_CRAWLER' - FILE_UPLOAD = 'FILE_UPLOAD' - SALESFORCE = 'SALESFORCE' - ZENDESK = 'ZENDESK' + GITHUB = 'GITHUB' + FIREFLIES = 'FIREFLIES' + GMAIL = 'GMAIL' @classmethod def from_json(cls, json_str: str) -> Self: 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 d1260cc..de60fa6 100644 --- a/src/python/vectorize_client/models/start_deep_research_request.py +++ b/src/python/vectorize_client/models/start_deep_research_request.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/src/python/vectorize_client/models/start_deep_research_response.py b/src/python/vectorize_client/models/start_deep_research_response.py index e529903..66af5b1 100644 --- a/src/python/vectorize_client/models/start_deep_research_response.py +++ b/src/python/vectorize_client/models/start_deep_research_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/src/python/vectorize_client/models/start_extraction_request.py b/src/python/vectorize_client/models/start_extraction_request.py index 5328b38..8952900 100644 --- a/src/python/vectorize_client/models/start_extraction_request.py +++ b/src/python/vectorize_client/models/start_extraction_request.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/src/python/vectorize_client/models/start_extraction_response.py b/src/python/vectorize_client/models/start_extraction_response.py index d2af70f..19e5814 100644 --- a/src/python/vectorize_client/models/start_extraction_response.py +++ b/src/python/vectorize_client/models/start_extraction_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/src/python/vectorize_client/models/start_file_upload_request.py b/src/python/vectorize_client/models/start_file_upload_request.py index ecf1bd8..cc9aa40 100644 --- a/src/python/vectorize_client/models/start_file_upload_request.py +++ b/src/python/vectorize_client/models/start_file_upload_request.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/src/python/vectorize_client/models/start_file_upload_response.py b/src/python/vectorize_client/models/start_file_upload_response.py index 8adb7cd..f53e624 100644 --- a/src/python/vectorize_client/models/start_file_upload_response.py +++ b/src/python/vectorize_client/models/start_file_upload_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/src/python/vectorize_client/models/start_file_upload_to_connector_request.py b/src/python/vectorize_client/models/start_file_upload_to_connector_request.py index 76c297a..abf3809 100644 --- a/src/python/vectorize_client/models/start_file_upload_to_connector_request.py +++ b/src/python/vectorize_client/models/start_file_upload_to_connector_request.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/src/python/vectorize_client/models/start_file_upload_to_connector_response.py b/src/python/vectorize_client/models/start_file_upload_to_connector_response.py index bc36de0..b80bbc4 100644 --- a/src/python/vectorize_client/models/start_file_upload_to_connector_response.py +++ b/src/python/vectorize_client/models/start_file_upload_to_connector_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/src/python/vectorize_client/models/start_pipeline_response.py b/src/python/vectorize_client/models/start_pipeline_response.py index 4169699..52ea980 100644 --- a/src/python/vectorize_client/models/start_pipeline_response.py +++ b/src/python/vectorize_client/models/start_pipeline_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/src/python/vectorize_client/models/stop_pipeline_response.py b/src/python/vectorize_client/models/stop_pipeline_response.py index 68197ca..81b7820 100644 --- a/src/python/vectorize_client/models/stop_pipeline_response.py +++ b/src/python/vectorize_client/models/stop_pipeline_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/src/python/vectorize_client/models/supabase.py b/src/python/vectorize_client/models/supabase.py new file mode 100644 index 0000000..e528a1e --- /dev/null +++ b/src/python/vectorize_client/models/supabase.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 +from vectorize_client.models.supabase_config import SUPABASEConfig +from typing import Optional, Set +from typing_extensions import Self + +class Supabase(BaseModel): + """ + Supabase + """ # noqa: E501 + name: StrictStr = Field(description="Name of the connector") + type: StrictStr = Field(description="Connector type (must be \"SUPABASE\")") + config: SUPABASEConfig + __properties: ClassVar[List[str]] = ["name", "type", "config"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['SUPABASE']): + raise ValueError("must be one of enum values ('SUPABASE')") + 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 Supabase 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 config + if self.config: + _dict['config'] = self.config.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Supabase 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": SUPABASEConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + }) + return _obj + + diff --git a/src/python/vectorize_client/models/supabase1.py b/src/python/vectorize_client/models/supabase1.py new file mode 100644 index 0000000..ea326ee --- /dev/null +++ b/src/python/vectorize_client/models/supabase1.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, Optional +from vectorize_client.models.supabase_config import SUPABASEConfig +from typing import Optional, Set +from typing_extensions import Self + +class Supabase1(BaseModel): + """ + Supabase1 + """ # noqa: E501 + config: Optional[SUPABASEConfig] = None + __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 Supabase1 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 config + if self.config: + _dict['config'] = self.config.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Supabase1 from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "config": SUPABASEConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + }) + return _obj + + diff --git a/src/python/vectorize_client/models/supabase_auth_config.py b/src/python/vectorize_client/models/supabase_auth_config.py new file mode 100644 index 0000000..f49738b --- /dev/null +++ b/src/python/vectorize_client/models/supabase_auth_config.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, SecretStr, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class SUPABASEAuthConfig(BaseModel): + """ + Authentication configuration for Supabase + """ # noqa: E501 + name: StrictStr = Field(description="Name. Example: Enter a descriptive name for your Supabase integration") + host: StrictStr = Field(description="Host. Example: Enter the host of the deployment") + port: Optional[Union[StrictFloat, StrictInt]] = Field(default=5432, description="Port. Example: Enter the port of the deployment") + database: StrictStr = Field(description="Database. Example: Enter the database name") + username: StrictStr = Field(description="Username. Example: Enter the username") + password: SecretStr = Field(description="Password. Example: Enter the username's password") + __properties: ClassVar[List[str]] = ["name", "host", "port", "database", "username", "password"] + + 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 SUPABASEAuthConfig 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 SUPABASEAuthConfig 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"), + "host": obj.get("host") if obj.get("host") is not None else 'aws-0-us-east-1.pooler.supabase.com', + "port": obj.get("port") if obj.get("port") is not None else 5432, + "database": obj.get("database"), + "username": obj.get("username"), + "password": obj.get("password") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/supabase_config.py b/src/python/vectorize_client/models/supabase_config.py new file mode 100644 index 0000000..44e7c41 --- /dev/null +++ b/src/python/vectorize_client/models/supabase_config.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, field_validator +from typing import Any, ClassVar, Dict, List +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class SUPABASEConfig(BaseModel): + """ + Configuration for Supabase connector + """ # noqa: E501 + table: Annotated[str, Field(strict=True, max_length=45)] = Field(description="Table Name. Example: Enter
or .
") + __properties: ClassVar[List[str]] = ["table"] + + @field_validator('table') + def table_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^(?!\b(add|alter|all|and|any|as|asc|avg|between|case|check|column|commit|constraint|create|cross|database|default|delete|desc|distinct|drop|else|exists|false|from|full|group|having|in|index|inner|insert|is|join|key|left|like|limit|max|min|not|null|on|or|order|outer|primary|right|rollback|select|set|sum|table|true|union|unique|update|values|view|where)\b$)(?!.*--)(?!.*[-])[a-z][a-z0-9._]{0,44}$", value): + raise ValueError(r"must validate the regular expression /^(?!\b(add|alter|all|and|any|as|asc|avg|between|case|check|column|commit|constraint|create|cross|database|default|delete|desc|distinct|drop|else|exists|false|from|full|group|having|in|index|inner|insert|is|join|key|left|like|limit|max|min|not|null|on|or|order|outer|primary|right|rollback|select|set|sum|table|true|union|unique|update|values|view|where)\b$)(?!.*--)(?!.*[-])[a-z][a-z0-9._]{0,44}$/") + 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 SUPABASEConfig 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 SUPABASEConfig from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "table": obj.get("table") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/turbopuffer.py b/src/python/vectorize_client/models/turbopuffer.py new file mode 100644 index 0000000..fef7b48 --- /dev/null +++ b/src/python/vectorize_client/models/turbopuffer.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 +from vectorize_client.models.turbopuffer_config import TURBOPUFFERConfig +from typing import Optional, Set +from typing_extensions import Self + +class Turbopuffer(BaseModel): + """ + Turbopuffer + """ # noqa: E501 + name: StrictStr = Field(description="Name of the connector") + type: StrictStr = Field(description="Connector type (must be \"TURBOPUFFER\")") + config: TURBOPUFFERConfig + __properties: ClassVar[List[str]] = ["name", "type", "config"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['TURBOPUFFER']): + raise ValueError("must be one of enum values ('TURBOPUFFER')") + 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 Turbopuffer 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 config + if self.config: + _dict['config'] = self.config.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Turbopuffer 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": TURBOPUFFERConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + }) + return _obj + + diff --git a/src/python/vectorize_client/models/turbopuffer1.py b/src/python/vectorize_client/models/turbopuffer1.py new file mode 100644 index 0000000..a72fcc0 --- /dev/null +++ b/src/python/vectorize_client/models/turbopuffer1.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, Optional +from vectorize_client.models.turbopuffer_config import TURBOPUFFERConfig +from typing import Optional, Set +from typing_extensions import Self + +class Turbopuffer1(BaseModel): + """ + Turbopuffer1 + """ # noqa: E501 + config: Optional[TURBOPUFFERConfig] = None + __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 Turbopuffer1 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 config + if self.config: + _dict['config'] = self.config.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Turbopuffer1 from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "config": TURBOPUFFERConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + }) + return _obj + + diff --git a/src/python/vectorize_client/models/turbopuffer_auth_config.py b/src/python/vectorize_client/models/turbopuffer_auth_config.py new file mode 100644 index 0000000..43b933e --- /dev/null +++ b/src/python/vectorize_client/models/turbopuffer_auth_config.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class TURBOPUFFERAuthConfig(BaseModel): + """ + Authentication configuration for Turbopuffer + """ # noqa: E501 + name: StrictStr = Field(description="Name. Example: Enter a descriptive name for your Turbopuffer integration") + api_key: Annotated[str, Field(strict=True)] = Field(description="API Key. Example: Enter your API key", alias="api-key") + __properties: ClassVar[List[str]] = ["name", "api-key"] + + @field_validator('api_key') + def api_key_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^\S.*\S$|^\S$", value): + raise ValueError(r"must validate the regular expression /^\S.*\S$|^\S$/") + 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 TURBOPUFFERAuthConfig 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 TURBOPUFFERAuthConfig 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"), + "api-key": obj.get("api-key") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/turbopuffer_config.py b/src/python/vectorize_client/models/turbopuffer_config.py new file mode 100644 index 0000000..a12ca1c --- /dev/null +++ b/src/python/vectorize_client/models/turbopuffer_config.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 TURBOPUFFERConfig(BaseModel): + """ + Configuration for Turbopuffer connector + """ # noqa: E501 + namespace: StrictStr = Field(description="Namespace. Example: Enter namespace name") + __properties: ClassVar[List[str]] = ["namespace"] + + 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 TURBOPUFFERConfig 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 TURBOPUFFERConfig from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "namespace": obj.get("namespace") + }) + 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 4422aeb..e364998 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 @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -13,75 +13,153 @@ 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 +import pprint +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional +from vectorize_client.models.bedrock1 import Bedrock1 +from vectorize_client.models.openai1 import Openai1 +from vectorize_client.models.vertex1 import Vertex1 +from vectorize_client.models.voyage1 import Voyage1 +from pydantic import StrictStr, Field +from typing import Union, List, Set, Optional, Dict +from typing_extensions import Literal, Self + +UPDATEAIPLATFORMCONNECTORREQUEST_ONE_OF_SCHEMAS = ["Bedrock1", "Openai1", "Vertex1", "Voyage1"] class UpdateAIPlatformConnectorRequest(BaseModel): """ UpdateAIPlatformConnectorRequest - """ # noqa: E501 - config: Dict[str, Any] - __properties: ClassVar[List[str]] = ["config"] + """ + # data type: Bedrock1 + oneof_schema_1_validator: Optional[Bedrock1] = None + # data type: Vertex1 + oneof_schema_2_validator: Optional[Vertex1] = None + # data type: Openai1 + oneof_schema_3_validator: Optional[Openai1] = None + # data type: Voyage1 + oneof_schema_4_validator: Optional[Voyage1] = None + actual_instance: Optional[Union[Bedrock1, Openai1, Vertex1, Voyage1]] = None + one_of_schemas: Set[str] = { "Bedrock1", "Openai1", "Vertex1", "Voyage1" } 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()) + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + instance = UpdateAIPlatformConnectorRequest.model_construct() + error_messages = [] + match = 0 + # validate data type: Bedrock1 + if not isinstance(v, Bedrock1): + error_messages.append(f"Error! Input type `{type(v)}` is not `Bedrock1`") + else: + match += 1 + # validate data type: Vertex1 + if not isinstance(v, Vertex1): + error_messages.append(f"Error! Input type `{type(v)}` is not `Vertex1`") + else: + match += 1 + # validate data type: Openai1 + if not isinstance(v, Openai1): + error_messages.append(f"Error! Input type `{type(v)}` is not `Openai1`") + else: + match += 1 + # validate data type: Voyage1 + if not isinstance(v, Voyage1): + error_messages.append(f"Error! Input type `{type(v)}` is not `Voyage1`") + else: + match += 1 + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in UpdateAIPlatformConnectorRequest with oneOf schemas: Bedrock1, Openai1, Vertex1, Voyage1. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in UpdateAIPlatformConnectorRequest with oneOf schemas: Bedrock1, Openai1, Vertex1, Voyage1. Details: " + ", ".join(error_messages)) + else: + return v @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of UpdateAIPlatformConnectorRequest 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 + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of UpdateAIPlatformConnectorRequest from a dict""" - if obj is None: + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + match = 0 + + # deserialize data into Bedrock1 + try: + instance.actual_instance = Bedrock1.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into Vertex1 + try: + instance.actual_instance = Vertex1.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into Openai1 + try: + instance.actual_instance = Openai1.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into Voyage1 + try: + instance.actual_instance = Voyage1.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into UpdateAIPlatformConnectorRequest with oneOf schemas: Bedrock1, Openai1, Vertex1, Voyage1. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into UpdateAIPlatformConnectorRequest with oneOf schemas: Bedrock1, Openai1, Vertex1, Voyage1. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], Bedrock1, Openai1, Vertex1, Voyage1]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: return None - if not isinstance(obj, dict): - return cls.model_validate(obj) + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance - _obj = cls.model_validate({ - "config": obj.get("config") - }) - return _obj + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) 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 index 1e82a2b..8447cbc 100644 --- a/src/python/vectorize_client/models/update_ai_platform_connector_response.py +++ b/src/python/vectorize_client/models/update_ai_platform_connector_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/src/python/vectorize_client/models/update_destination_connector_request.py b/src/python/vectorize_client/models/update_destination_connector_request.py index 6c366a1..ab290a8 100644 --- a/src/python/vectorize_client/models/update_destination_connector_request.py +++ b/src/python/vectorize_client/models/update_destination_connector_request.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -13,75 +13,265 @@ from __future__ import annotations -import pprint -import re # noqa: F401 import json +import pprint +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional +from vectorize_client.models.azureaisearch1 import Azureaisearch1 +from vectorize_client.models.capella1 import Capella1 +from vectorize_client.models.datastax1 import Datastax1 +from vectorize_client.models.elastic1 import Elastic1 +from vectorize_client.models.milvus1 import Milvus1 +from vectorize_client.models.pinecone1 import Pinecone1 +from vectorize_client.models.postgresql1 import Postgresql1 +from vectorize_client.models.qdrant1 import Qdrant1 +from vectorize_client.models.singlestore1 import Singlestore1 +from vectorize_client.models.supabase1 import Supabase1 +from vectorize_client.models.turbopuffer1 import Turbopuffer1 +from vectorize_client.models.weaviate1 import Weaviate1 +from pydantic import StrictStr, Field +from typing import Union, List, Set, Optional, Dict +from typing_extensions import Literal, Self -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self +UPDATEDESTINATIONCONNECTORREQUEST_ONE_OF_SCHEMAS = ["Azureaisearch1", "Capella1", "Datastax1", "Elastic1", "Milvus1", "Pinecone1", "Postgresql1", "Qdrant1", "Singlestore1", "Supabase1", "Turbopuffer1", "Weaviate1"] class UpdateDestinationConnectorRequest(BaseModel): """ UpdateDestinationConnectorRequest - """ # noqa: E501 - config: Dict[str, Any] - __properties: ClassVar[List[str]] = ["config"] + """ + # data type: Capella1 + oneof_schema_1_validator: Optional[Capella1] = None + # data type: Datastax1 + oneof_schema_2_validator: Optional[Datastax1] = None + # data type: Elastic1 + oneof_schema_3_validator: Optional[Elastic1] = None + # data type: Pinecone1 + oneof_schema_4_validator: Optional[Pinecone1] = None + # data type: Singlestore1 + oneof_schema_5_validator: Optional[Singlestore1] = None + # data type: Milvus1 + oneof_schema_6_validator: Optional[Milvus1] = None + # data type: Postgresql1 + oneof_schema_7_validator: Optional[Postgresql1] = None + # data type: Qdrant1 + oneof_schema_8_validator: Optional[Qdrant1] = None + # data type: Supabase1 + oneof_schema_9_validator: Optional[Supabase1] = None + # data type: Weaviate1 + oneof_schema_10_validator: Optional[Weaviate1] = None + # data type: Azureaisearch1 + oneof_schema_11_validator: Optional[Azureaisearch1] = None + # data type: Turbopuffer1 + oneof_schema_12_validator: Optional[Turbopuffer1] = None + actual_instance: Optional[Union[Azureaisearch1, Capella1, Datastax1, Elastic1, Milvus1, Pinecone1, Postgresql1, Qdrant1, Singlestore1, Supabase1, Turbopuffer1, Weaviate1]] = None + one_of_schemas: Set[str] = { "Azureaisearch1", "Capella1", "Datastax1", "Elastic1", "Milvus1", "Pinecone1", "Postgresql1", "Qdrant1", "Singlestore1", "Supabase1", "Turbopuffer1", "Weaviate1" } 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 __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) - 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()) + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + instance = UpdateDestinationConnectorRequest.model_construct() + error_messages = [] + match = 0 + # validate data type: Capella1 + if not isinstance(v, Capella1): + error_messages.append(f"Error! Input type `{type(v)}` is not `Capella1`") + else: + match += 1 + # validate data type: Datastax1 + if not isinstance(v, Datastax1): + error_messages.append(f"Error! Input type `{type(v)}` is not `Datastax1`") + else: + match += 1 + # validate data type: Elastic1 + if not isinstance(v, Elastic1): + error_messages.append(f"Error! Input type `{type(v)}` is not `Elastic1`") + else: + match += 1 + # validate data type: Pinecone1 + if not isinstance(v, Pinecone1): + error_messages.append(f"Error! Input type `{type(v)}` is not `Pinecone1`") + else: + match += 1 + # validate data type: Singlestore1 + if not isinstance(v, Singlestore1): + error_messages.append(f"Error! Input type `{type(v)}` is not `Singlestore1`") + else: + match += 1 + # validate data type: Milvus1 + if not isinstance(v, Milvus1): + error_messages.append(f"Error! Input type `{type(v)}` is not `Milvus1`") + else: + match += 1 + # validate data type: Postgresql1 + if not isinstance(v, Postgresql1): + error_messages.append(f"Error! Input type `{type(v)}` is not `Postgresql1`") + else: + match += 1 + # validate data type: Qdrant1 + if not isinstance(v, Qdrant1): + error_messages.append(f"Error! Input type `{type(v)}` is not `Qdrant1`") + else: + match += 1 + # validate data type: Supabase1 + if not isinstance(v, Supabase1): + error_messages.append(f"Error! Input type `{type(v)}` is not `Supabase1`") + else: + match += 1 + # validate data type: Weaviate1 + if not isinstance(v, Weaviate1): + error_messages.append(f"Error! Input type `{type(v)}` is not `Weaviate1`") + else: + match += 1 + # validate data type: Azureaisearch1 + if not isinstance(v, Azureaisearch1): + error_messages.append(f"Error! Input type `{type(v)}` is not `Azureaisearch1`") + else: + match += 1 + # validate data type: Turbopuffer1 + if not isinstance(v, Turbopuffer1): + error_messages.append(f"Error! Input type `{type(v)}` is not `Turbopuffer1`") + else: + match += 1 + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in UpdateDestinationConnectorRequest with oneOf schemas: Azureaisearch1, Capella1, Datastax1, Elastic1, Milvus1, Pinecone1, Postgresql1, Qdrant1, Singlestore1, Supabase1, Turbopuffer1, Weaviate1. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in UpdateDestinationConnectorRequest with oneOf schemas: Azureaisearch1, Capella1, Datastax1, Elastic1, Milvus1, Pinecone1, Postgresql1, Qdrant1, Singlestore1, Supabase1, Turbopuffer1, Weaviate1. Details: " + ", ".join(error_messages)) + else: + return v @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 + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of UpdateDestinationConnectorRequest from a dict""" - if obj is None: + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + match = 0 + + # deserialize data into Capella1 + try: + instance.actual_instance = Capella1.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into Datastax1 + try: + instance.actual_instance = Datastax1.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into Elastic1 + try: + instance.actual_instance = Elastic1.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into Pinecone1 + try: + instance.actual_instance = Pinecone1.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into Singlestore1 + try: + instance.actual_instance = Singlestore1.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into Milvus1 + try: + instance.actual_instance = Milvus1.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into Postgresql1 + try: + instance.actual_instance = Postgresql1.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into Qdrant1 + try: + instance.actual_instance = Qdrant1.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into Supabase1 + try: + instance.actual_instance = Supabase1.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into Weaviate1 + try: + instance.actual_instance = Weaviate1.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into Azureaisearch1 + try: + instance.actual_instance = Azureaisearch1.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into Turbopuffer1 + try: + instance.actual_instance = Turbopuffer1.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into UpdateDestinationConnectorRequest with oneOf schemas: Azureaisearch1, Capella1, Datastax1, Elastic1, Milvus1, Pinecone1, Postgresql1, Qdrant1, Singlestore1, Supabase1, Turbopuffer1, Weaviate1. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into UpdateDestinationConnectorRequest with oneOf schemas: Azureaisearch1, Capella1, Datastax1, Elastic1, Milvus1, Pinecone1, Postgresql1, Qdrant1, Singlestore1, Supabase1, Turbopuffer1, Weaviate1. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], Azureaisearch1, Capella1, Datastax1, Elastic1, Milvus1, Pinecone1, Postgresql1, Qdrant1, Singlestore1, Supabase1, Turbopuffer1, Weaviate1]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: return None - if not isinstance(obj, dict): - return cls.model_validate(obj) + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance - _obj = cls.model_validate({ - "config": obj.get("config") - }) - return _obj + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) diff --git a/src/python/vectorize_client/models/update_destination_connector_response.py b/src/python/vectorize_client/models/update_destination_connector_response.py index 571cbf7..3c7e5cb 100644 --- a/src/python/vectorize_client/models/update_destination_connector_response.py +++ b/src/python/vectorize_client/models/update_destination_connector_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) 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 5b72fd8..dd05d2b 100644 --- a/src/python/vectorize_client/models/update_source_connector_request.py +++ b/src/python/vectorize_client/models/update_source_connector_request.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -13,75 +13,433 @@ from __future__ import annotations -import pprint -import re # noqa: F401 import json +import pprint +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional +from vectorize_client.models.aws_s31 import AwsS31 +from vectorize_client.models.azure_blob1 import AzureBlob1 +from vectorize_client.models.confluence1 import Confluence1 +from vectorize_client.models.discord1 import Discord1 +from vectorize_client.models.dropbox import Dropbox +from vectorize_client.models.dropbox_oauth import DropboxOauth +from vectorize_client.models.dropbox_oauth_multi import DropboxOauthMulti +from vectorize_client.models.dropbox_oauth_multi_custom import DropboxOauthMultiCustom +from vectorize_client.models.file_upload1 import FileUpload1 +from vectorize_client.models.firecrawl1 import Firecrawl1 +from vectorize_client.models.fireflies1 import Fireflies1 +from vectorize_client.models.gcs1 import Gcs1 +from vectorize_client.models.github1 import Github1 +from vectorize_client.models.google_drive1 import GoogleDrive1 +from vectorize_client.models.google_drive_oauth import GoogleDriveOauth +from vectorize_client.models.google_drive_oauth_multi import GoogleDriveOauthMulti +from vectorize_client.models.google_drive_oauth_multi_custom import GoogleDriveOauthMultiCustom +from vectorize_client.models.intercom import Intercom +from vectorize_client.models.notion import Notion +from vectorize_client.models.notion_oauth_multi import NotionOauthMulti +from vectorize_client.models.notion_oauth_multi_custom import NotionOauthMultiCustom +from vectorize_client.models.one_drive1 import OneDrive1 +from vectorize_client.models.sharepoint1 import Sharepoint1 +from vectorize_client.models.web_crawler1 import WebCrawler1 +from pydantic import StrictStr, Field +from typing import Union, List, Set, Optional, Dict +from typing_extensions import Literal, Self -from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self +UPDATESOURCECONNECTORREQUEST_ONE_OF_SCHEMAS = ["AwsS31", "AzureBlob1", "Confluence1", "Discord1", "Dropbox", "DropboxOauth", "DropboxOauthMulti", "DropboxOauthMultiCustom", "FileUpload1", "Firecrawl1", "Fireflies1", "Gcs1", "Github1", "GoogleDrive1", "GoogleDriveOauth", "GoogleDriveOauthMulti", "GoogleDriveOauthMultiCustom", "Intercom", "Notion", "NotionOauthMulti", "NotionOauthMultiCustom", "OneDrive1", "Sharepoint1", "WebCrawler1"] class UpdateSourceConnectorRequest(BaseModel): """ UpdateSourceConnectorRequest - """ # noqa: E501 - config: Dict[str, Any] - __properties: ClassVar[List[str]] = ["config"] + """ + # data type: AwsS31 + oneof_schema_1_validator: Optional[AwsS31] = None + # data type: AzureBlob1 + oneof_schema_2_validator: Optional[AzureBlob1] = None + # data type: Confluence1 + oneof_schema_3_validator: Optional[Confluence1] = None + # data type: Discord1 + oneof_schema_4_validator: Optional[Discord1] = None + # data type: Dropbox + oneof_schema_5_validator: Optional[Dropbox] = None + # data type: DropboxOauth + oneof_schema_6_validator: Optional[DropboxOauth] = None + # data type: DropboxOauthMulti + oneof_schema_7_validator: Optional[DropboxOauthMulti] = None + # data type: DropboxOauthMultiCustom + oneof_schema_8_validator: Optional[DropboxOauthMultiCustom] = None + # data type: FileUpload1 + oneof_schema_9_validator: Optional[FileUpload1] = None + # data type: GoogleDriveOauth + oneof_schema_10_validator: Optional[GoogleDriveOauth] = None + # data type: GoogleDrive1 + oneof_schema_11_validator: Optional[GoogleDrive1] = None + # data type: GoogleDriveOauthMulti + oneof_schema_12_validator: Optional[GoogleDriveOauthMulti] = None + # data type: GoogleDriveOauthMultiCustom + oneof_schema_13_validator: Optional[GoogleDriveOauthMultiCustom] = None + # data type: Firecrawl1 + oneof_schema_14_validator: Optional[Firecrawl1] = None + # data type: Gcs1 + oneof_schema_15_validator: Optional[Gcs1] = None + # data type: Intercom + oneof_schema_16_validator: Optional[Intercom] = None + # data type: Notion + oneof_schema_17_validator: Optional[Notion] = None + # data type: NotionOauthMulti + oneof_schema_18_validator: Optional[NotionOauthMulti] = None + # data type: NotionOauthMultiCustom + oneof_schema_19_validator: Optional[NotionOauthMultiCustom] = None + # data type: OneDrive1 + oneof_schema_20_validator: Optional[OneDrive1] = None + # data type: Sharepoint1 + oneof_schema_21_validator: Optional[Sharepoint1] = None + # data type: WebCrawler1 + oneof_schema_22_validator: Optional[WebCrawler1] = None + # data type: Github1 + oneof_schema_23_validator: Optional[Github1] = None + # data type: Fireflies1 + oneof_schema_24_validator: Optional[Fireflies1] = None + actual_instance: Optional[Union[AwsS31, AzureBlob1, Confluence1, Discord1, Dropbox, DropboxOauth, DropboxOauthMulti, DropboxOauthMultiCustom, FileUpload1, Firecrawl1, Fireflies1, Gcs1, Github1, GoogleDrive1, GoogleDriveOauth, GoogleDriveOauthMulti, GoogleDriveOauthMultiCustom, Intercom, Notion, NotionOauthMulti, NotionOauthMultiCustom, OneDrive1, Sharepoint1, WebCrawler1]] = None + one_of_schemas: Set[str] = { "AwsS31", "AzureBlob1", "Confluence1", "Discord1", "Dropbox", "DropboxOauth", "DropboxOauthMulti", "DropboxOauthMultiCustom", "FileUpload1", "Firecrawl1", "Fireflies1", "Gcs1", "Github1", "GoogleDrive1", "GoogleDriveOauth", "GoogleDriveOauthMulti", "GoogleDriveOauthMultiCustom", "Intercom", "Notion", "NotionOauthMulti", "NotionOauthMultiCustom", "OneDrive1", "Sharepoint1", "WebCrawler1" } 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 __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) - 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()) + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + instance = UpdateSourceConnectorRequest.model_construct() + error_messages = [] + match = 0 + # validate data type: AwsS31 + if not isinstance(v, AwsS31): + error_messages.append(f"Error! Input type `{type(v)}` is not `AwsS31`") + else: + match += 1 + # validate data type: AzureBlob1 + if not isinstance(v, AzureBlob1): + error_messages.append(f"Error! Input type `{type(v)}` is not `AzureBlob1`") + else: + match += 1 + # validate data type: Confluence1 + if not isinstance(v, Confluence1): + error_messages.append(f"Error! Input type `{type(v)}` is not `Confluence1`") + else: + match += 1 + # validate data type: Discord1 + if not isinstance(v, Discord1): + error_messages.append(f"Error! Input type `{type(v)}` is not `Discord1`") + else: + match += 1 + # validate data type: Dropbox + if not isinstance(v, Dropbox): + error_messages.append(f"Error! Input type `{type(v)}` is not `Dropbox`") + else: + match += 1 + # validate data type: DropboxOauth + if not isinstance(v, DropboxOauth): + error_messages.append(f"Error! Input type `{type(v)}` is not `DropboxOauth`") + else: + match += 1 + # validate data type: DropboxOauthMulti + if not isinstance(v, DropboxOauthMulti): + error_messages.append(f"Error! Input type `{type(v)}` is not `DropboxOauthMulti`") + else: + match += 1 + # validate data type: DropboxOauthMultiCustom + if not isinstance(v, DropboxOauthMultiCustom): + error_messages.append(f"Error! Input type `{type(v)}` is not `DropboxOauthMultiCustom`") + else: + match += 1 + # validate data type: FileUpload1 + if not isinstance(v, FileUpload1): + error_messages.append(f"Error! Input type `{type(v)}` is not `FileUpload1`") + else: + match += 1 + # validate data type: GoogleDriveOauth + if not isinstance(v, GoogleDriveOauth): + error_messages.append(f"Error! Input type `{type(v)}` is not `GoogleDriveOauth`") + else: + match += 1 + # validate data type: GoogleDrive1 + if not isinstance(v, GoogleDrive1): + error_messages.append(f"Error! Input type `{type(v)}` is not `GoogleDrive1`") + else: + match += 1 + # validate data type: GoogleDriveOauthMulti + if not isinstance(v, GoogleDriveOauthMulti): + error_messages.append(f"Error! Input type `{type(v)}` is not `GoogleDriveOauthMulti`") + else: + match += 1 + # validate data type: GoogleDriveOauthMultiCustom + if not isinstance(v, GoogleDriveOauthMultiCustom): + error_messages.append(f"Error! Input type `{type(v)}` is not `GoogleDriveOauthMultiCustom`") + else: + match += 1 + # validate data type: Firecrawl1 + if not isinstance(v, Firecrawl1): + error_messages.append(f"Error! Input type `{type(v)}` is not `Firecrawl1`") + else: + match += 1 + # validate data type: Gcs1 + if not isinstance(v, Gcs1): + error_messages.append(f"Error! Input type `{type(v)}` is not `Gcs1`") + else: + match += 1 + # validate data type: Intercom + if not isinstance(v, Intercom): + error_messages.append(f"Error! Input type `{type(v)}` is not `Intercom`") + else: + match += 1 + # validate data type: Notion + if not isinstance(v, Notion): + error_messages.append(f"Error! Input type `{type(v)}` is not `Notion`") + else: + match += 1 + # validate data type: NotionOauthMulti + if not isinstance(v, NotionOauthMulti): + error_messages.append(f"Error! Input type `{type(v)}` is not `NotionOauthMulti`") + else: + match += 1 + # validate data type: NotionOauthMultiCustom + if not isinstance(v, NotionOauthMultiCustom): + error_messages.append(f"Error! Input type `{type(v)}` is not `NotionOauthMultiCustom`") + else: + match += 1 + # validate data type: OneDrive1 + if not isinstance(v, OneDrive1): + error_messages.append(f"Error! Input type `{type(v)}` is not `OneDrive1`") + else: + match += 1 + # validate data type: Sharepoint1 + if not isinstance(v, Sharepoint1): + error_messages.append(f"Error! Input type `{type(v)}` is not `Sharepoint1`") + else: + match += 1 + # validate data type: WebCrawler1 + if not isinstance(v, WebCrawler1): + error_messages.append(f"Error! Input type `{type(v)}` is not `WebCrawler1`") + else: + match += 1 + # validate data type: Github1 + if not isinstance(v, Github1): + error_messages.append(f"Error! Input type `{type(v)}` is not `Github1`") + else: + match += 1 + # validate data type: Fireflies1 + if not isinstance(v, Fireflies1): + error_messages.append(f"Error! Input type `{type(v)}` is not `Fireflies1`") + else: + match += 1 + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in UpdateSourceConnectorRequest with oneOf schemas: AwsS31, AzureBlob1, Confluence1, Discord1, Dropbox, DropboxOauth, DropboxOauthMulti, DropboxOauthMultiCustom, FileUpload1, Firecrawl1, Fireflies1, Gcs1, Github1, GoogleDrive1, GoogleDriveOauth, GoogleDriveOauthMulti, GoogleDriveOauthMultiCustom, Intercom, Notion, NotionOauthMulti, NotionOauthMultiCustom, OneDrive1, Sharepoint1, WebCrawler1. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in UpdateSourceConnectorRequest with oneOf schemas: AwsS31, AzureBlob1, Confluence1, Discord1, Dropbox, DropboxOauth, DropboxOauthMulti, DropboxOauthMultiCustom, FileUpload1, Firecrawl1, Fireflies1, Gcs1, Github1, GoogleDrive1, GoogleDriveOauth, GoogleDriveOauthMulti, GoogleDriveOauthMultiCustom, Intercom, Notion, NotionOauthMulti, NotionOauthMultiCustom, OneDrive1, Sharepoint1, WebCrawler1. Details: " + ", ".join(error_messages)) + else: + return v @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of UpdateSourceConnectorRequest 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 + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of UpdateSourceConnectorRequest from a dict""" - if obj is None: + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + match = 0 + + # deserialize data into AwsS31 + try: + instance.actual_instance = AwsS31.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into AzureBlob1 + try: + instance.actual_instance = AzureBlob1.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into Confluence1 + try: + instance.actual_instance = Confluence1.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into Discord1 + try: + instance.actual_instance = Discord1.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into Dropbox + try: + instance.actual_instance = Dropbox.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into DropboxOauth + try: + instance.actual_instance = DropboxOauth.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into DropboxOauthMulti + try: + instance.actual_instance = DropboxOauthMulti.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into DropboxOauthMultiCustom + try: + instance.actual_instance = DropboxOauthMultiCustom.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into FileUpload1 + try: + instance.actual_instance = FileUpload1.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into GoogleDriveOauth + try: + instance.actual_instance = GoogleDriveOauth.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into GoogleDrive1 + try: + instance.actual_instance = GoogleDrive1.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into GoogleDriveOauthMulti + try: + instance.actual_instance = GoogleDriveOauthMulti.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into GoogleDriveOauthMultiCustom + try: + instance.actual_instance = GoogleDriveOauthMultiCustom.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into Firecrawl1 + try: + instance.actual_instance = Firecrawl1.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into Gcs1 + try: + instance.actual_instance = Gcs1.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into Intercom + try: + instance.actual_instance = Intercom.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into Notion + try: + instance.actual_instance = Notion.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into NotionOauthMulti + try: + instance.actual_instance = NotionOauthMulti.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into NotionOauthMultiCustom + try: + instance.actual_instance = NotionOauthMultiCustom.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into OneDrive1 + try: + instance.actual_instance = OneDrive1.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into Sharepoint1 + try: + instance.actual_instance = Sharepoint1.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into WebCrawler1 + try: + instance.actual_instance = WebCrawler1.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into Github1 + try: + instance.actual_instance = Github1.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into Fireflies1 + try: + instance.actual_instance = Fireflies1.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into UpdateSourceConnectorRequest with oneOf schemas: AwsS31, AzureBlob1, Confluence1, Discord1, Dropbox, DropboxOauth, DropboxOauthMulti, DropboxOauthMultiCustom, FileUpload1, Firecrawl1, Fireflies1, Gcs1, Github1, GoogleDrive1, GoogleDriveOauth, GoogleDriveOauthMulti, GoogleDriveOauthMultiCustom, Intercom, Notion, NotionOauthMulti, NotionOauthMultiCustom, OneDrive1, Sharepoint1, WebCrawler1. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into UpdateSourceConnectorRequest with oneOf schemas: AwsS31, AzureBlob1, Confluence1, Discord1, Dropbox, DropboxOauth, DropboxOauthMulti, DropboxOauthMultiCustom, FileUpload1, Firecrawl1, Fireflies1, Gcs1, Github1, GoogleDrive1, GoogleDriveOauth, GoogleDriveOauthMulti, GoogleDriveOauthMultiCustom, Intercom, Notion, NotionOauthMulti, NotionOauthMultiCustom, OneDrive1, Sharepoint1, WebCrawler1. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], AwsS31, AzureBlob1, Confluence1, Discord1, Dropbox, DropboxOauth, DropboxOauthMulti, DropboxOauthMultiCustom, FileUpload1, Firecrawl1, Fireflies1, Gcs1, Github1, GoogleDrive1, GoogleDriveOauth, GoogleDriveOauthMulti, GoogleDriveOauthMultiCustom, Intercom, Notion, NotionOauthMulti, NotionOauthMultiCustom, OneDrive1, Sharepoint1, WebCrawler1]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: return None - if not isinstance(obj, dict): - return cls.model_validate(obj) + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance - _obj = cls.model_validate({ - "config": obj.get("config") - }) - return _obj + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) diff --git a/src/python/vectorize_client/models/update_source_connector_response.py b/src/python/vectorize_client/models/update_source_connector_response.py index b93281c..ad00a98 100644 --- a/src/python/vectorize_client/models/update_source_connector_response.py +++ b/src/python/vectorize_client/models/update_source_connector_response.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) 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 index 4cce620..f22c878 100644 --- a/src/python/vectorize_client/models/update_source_connector_response_data.py +++ b/src/python/vectorize_client/models/update_source_connector_response_data.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) 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 index fd194e2..1437f42 100644 --- 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 @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from vectorize_client.models.add_user_to_source_connector_request_selected_files_value import AddUserToSourceConnectorRequestSelectedFilesValue +from vectorize_client.models.add_user_to_source_connector_request_selected_files import AddUserToSourceConnectorRequestSelectedFiles from typing import Optional, Set from typing_extensions import Self @@ -28,9 +28,10 @@ class UpdateUserInSourceConnectorRequest(BaseModel): UpdateUserInSourceConnectorRequest """ # noqa: E501 user_id: StrictStr = Field(alias="userId") - selected_files: Optional[Dict[str, AddUserToSourceConnectorRequestSelectedFilesValue]] = Field(default=None, alias="selectedFiles") + selected_files: Optional[AddUserToSourceConnectorRequestSelectedFiles] = Field(default=None, alias="selectedFiles") refresh_token: Optional[StrictStr] = Field(default=None, alias="refreshToken") - __properties: ClassVar[List[str]] = ["userId", "selectedFiles", "refreshToken"] + access_token: Optional[StrictStr] = Field(default=None, alias="accessToken") + __properties: ClassVar[List[str]] = ["userId", "selectedFiles", "refreshToken", "accessToken"] model_config = ConfigDict( populate_by_name=True, @@ -71,13 +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 each value in selected_files (dict) - _field_dict = {} + # override the default output from pydantic by calling `to_dict()` of selected_files if self.selected_files: - for _key_selected_files in self.selected_files: - if self.selected_files[_key_selected_files]: - _field_dict[_key_selected_files] = self.selected_files[_key_selected_files].to_dict() - _dict['selectedFiles'] = _field_dict + _dict['selectedFiles'] = self.selected_files.to_dict() return _dict @classmethod @@ -91,13 +88,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "userId": obj.get("userId"), - "selectedFiles": dict( - (_k, AddUserToSourceConnectorRequestSelectedFilesValue.from_dict(_v)) - for _k, _v in obj["selectedFiles"].items() - ) - if obj.get("selectedFiles") is not None - else None, - "refreshToken": obj.get("refreshToken") + "selectedFiles": AddUserToSourceConnectorRequestSelectedFiles.from_dict(obj["selectedFiles"]) if obj.get("selectedFiles") is not None else None, + "refreshToken": obj.get("refreshToken"), + "accessToken": obj.get("accessToken") }) 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 index d55be0a..dc48eb3 100644 --- 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 @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) 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 index 058d5bb..654a4f1 100644 --- a/src/python/vectorize_client/models/updated_ai_platform_connector_data.py +++ b/src/python/vectorize_client/models/updated_ai_platform_connector_data.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/src/python/vectorize_client/models/updated_destination_connector_data.py b/src/python/vectorize_client/models/updated_destination_connector_data.py index 6801526..8c80cc6 100644 --- a/src/python/vectorize_client/models/updated_destination_connector_data.py +++ b/src/python/vectorize_client/models/updated_destination_connector_data.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/src/python/vectorize_client/models/upload_file.py b/src/python/vectorize_client/models/upload_file.py index d4e97ea..351db1c 100644 --- a/src/python/vectorize_client/models/upload_file.py +++ b/src/python/vectorize_client/models/upload_file.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -31,7 +31,7 @@ class UploadFile(BaseModel): size: Union[StrictFloat, StrictInt] extension: Optional[StrictStr] = None last_modified: Optional[StrictStr] = Field(alias="lastModified") - metadata: Dict[str, StrictStr] + metadata: Dict[str, Any] __properties: ClassVar[List[str]] = ["key", "name", "size", "extension", "lastModified", "metadata"] model_config = ConfigDict( diff --git a/src/python/vectorize_client/models/vertex.py b/src/python/vectorize_client/models/vertex.py new file mode 100644 index 0000000..1b3bb5b --- /dev/null +++ b/src/python/vectorize_client/models/vertex.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 +from vectorize_client.models.vertex_auth_config import VERTEXAuthConfig +from typing import Optional, Set +from typing_extensions import Self + +class Vertex(BaseModel): + """ + Vertex + """ # noqa: E501 + name: StrictStr = Field(description="Name of the connector") + type: StrictStr = Field(description="Connector type (must be \"VERTEX\")") + config: VERTEXAuthConfig + __properties: ClassVar[List[str]] = ["name", "type", "config"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['VERTEX']): + raise ValueError("must be one of enum values ('VERTEX')") + 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 Vertex 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 config + if self.config: + _dict['config'] = self.config.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Vertex 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": VERTEXAuthConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + }) + return _obj + + diff --git a/src/python/vectorize_client/models/create_destination_connector.py b/src/python/vectorize_client/models/vertex1.py similarity index 75% rename from src/python/vectorize_client/models/create_destination_connector.py rename to src/python/vectorize_client/models/vertex1.py index 95df400..4782cdc 100644 --- a/src/python/vectorize_client/models/create_destination_connector.py +++ b/src/python/vectorize_client/models/vertex1.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -17,20 +17,17 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +from pydantic import BaseModel, ConfigDict, Field 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): +class Vertex1(BaseModel): """ - CreateDestinationConnector + Vertex1 """ # noqa: E501 - name: StrictStr - type: DestinationConnectorType - config: Optional[Dict[str, Any]] = None - __properties: ClassVar[List[str]] = ["name", "type", "config"] + config: Optional[Dict[str, Any]] = Field(default=None, description="Configuration updates") + __properties: ClassVar[List[str]] = ["config"] model_config = ConfigDict( populate_by_name=True, @@ -50,7 +47,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of CreateDestinationConnector from a JSON string""" + """Create an instance of Vertex1 from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -75,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of CreateDestinationConnector from a dict""" + """Create an instance of Vertex1 from a dict""" if obj is None: return None @@ -83,8 +80,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: 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/vertex_auth_config.py b/src/python/vectorize_client/models/vertex_auth_config.py new file mode 100644 index 0000000..9137921 --- /dev/null +++ b/src/python/vectorize_client/models/vertex_auth_config.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, SecretStr, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class VERTEXAuthConfig(BaseModel): + """ + Authentication configuration for Google Vertex AI + """ # noqa: E501 + name: StrictStr = Field(description="Name. Example: Enter a descriptive name for your Google Vertex AI integration") + key: SecretStr = Field(description="Service Account Json. Example: Enter the contents of your Google Vertex AI Service Account JSON file") + region: StrictStr = Field(description="Region. Example: Region Name, e.g. us-central1") + __properties: ClassVar[List[str]] = ["name", "key", "region"] + + 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 VERTEXAuthConfig 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 VERTEXAuthConfig 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"), + "key": obj.get("key"), + "region": obj.get("region") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/voyage.py b/src/python/vectorize_client/models/voyage.py new file mode 100644 index 0000000..f5fe25e --- /dev/null +++ b/src/python/vectorize_client/models/voyage.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 +from vectorize_client.models.voyage_auth_config import VOYAGEAuthConfig +from typing import Optional, Set +from typing_extensions import Self + +class Voyage(BaseModel): + """ + Voyage + """ # noqa: E501 + name: StrictStr = Field(description="Name of the connector") + type: StrictStr = Field(description="Connector type (must be \"VOYAGE\")") + config: VOYAGEAuthConfig + __properties: ClassVar[List[str]] = ["name", "type", "config"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['VOYAGE']): + raise ValueError("must be one of enum values ('VOYAGE')") + 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 Voyage 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 config + if self.config: + _dict['config'] = self.config.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Voyage 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": VOYAGEAuthConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + }) + return _obj + + diff --git a/src/python/vectorize_client/models/voyage1.py b/src/python/vectorize_client/models/voyage1.py new file mode 100644 index 0000000..993e7d8 --- /dev/null +++ b/src/python/vectorize_client/models/voyage1.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class Voyage1(BaseModel): + """ + Voyage1 + """ # noqa: E501 + config: Optional[Dict[str, Any]] = Field(default=None, description="Configuration updates") + __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 Voyage1 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 Voyage1 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/voyage_auth_config.py b/src/python/vectorize_client/models/voyage_auth_config.py new file mode 100644 index 0000000..837e36f --- /dev/null +++ b/src/python/vectorize_client/models/voyage_auth_config.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class VOYAGEAuthConfig(BaseModel): + """ + Authentication configuration for Voyage AI + """ # noqa: E501 + name: StrictStr = Field(description="Name. Example: Enter a descriptive name for your Voyage AI integration") + key: Annotated[str, Field(strict=True)] = Field(description="API Key. Example: Enter your Voyage AI API Key") + __properties: ClassVar[List[str]] = ["name", "key"] + + @field_validator('key') + def key_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^\S.*\S$|^\S$", value): + raise ValueError(r"must validate the regular expression /^\S.*\S$|^\S$/") + 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 VOYAGEAuthConfig 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 VOYAGEAuthConfig 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"), + "key": obj.get("key") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/weaviate.py b/src/python/vectorize_client/models/weaviate.py new file mode 100644 index 0000000..ed8b04c --- /dev/null +++ b/src/python/vectorize_client/models/weaviate.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 +from vectorize_client.models.weaviate_config import WEAVIATEConfig +from typing import Optional, Set +from typing_extensions import Self + +class Weaviate(BaseModel): + """ + Weaviate + """ # noqa: E501 + name: StrictStr = Field(description="Name of the connector") + type: StrictStr = Field(description="Connector type (must be \"WEAVIATE\")") + config: WEAVIATEConfig + __properties: ClassVar[List[str]] = ["name", "type", "config"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['WEAVIATE']): + raise ValueError("must be one of enum values ('WEAVIATE')") + 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 Weaviate 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 config + if self.config: + _dict['config'] = self.config.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Weaviate 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": WEAVIATEConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + }) + return _obj + + diff --git a/src/python/vectorize_client/models/weaviate1.py b/src/python/vectorize_client/models/weaviate1.py new file mode 100644 index 0000000..34e9929 --- /dev/null +++ b/src/python/vectorize_client/models/weaviate1.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, Optional +from vectorize_client.models.weaviate_config import WEAVIATEConfig +from typing import Optional, Set +from typing_extensions import Self + +class Weaviate1(BaseModel): + """ + Weaviate1 + """ # noqa: E501 + config: Optional[WEAVIATEConfig] = None + __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 Weaviate1 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 config + if self.config: + _dict['config'] = self.config.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Weaviate1 from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "config": WEAVIATEConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + }) + return _obj + + diff --git a/src/python/vectorize_client/models/weaviate_auth_config.py b/src/python/vectorize_client/models/weaviate_auth_config.py new file mode 100644 index 0000000..41805e8 --- /dev/null +++ b/src/python/vectorize_client/models/weaviate_auth_config.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class WEAVIATEAuthConfig(BaseModel): + """ + Authentication configuration for Weaviate + """ # noqa: E501 + name: StrictStr = Field(description="Name. Example: Enter a descriptive name for your Weaviate integration") + host: StrictStr = Field(description="Endpoint. Example: Enter your Weaviate Cluster REST Endpoint") + api_key: Annotated[str, Field(strict=True)] = Field(description="API Key. Example: Enter your API key", alias="api-key") + __properties: ClassVar[List[str]] = ["name", "host", "api-key"] + + @field_validator('api_key') + def api_key_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^\S.*\S$|^\S$", value): + raise ValueError(r"must validate the regular expression /^\S.*\S$|^\S$/") + 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 WEAVIATEAuthConfig 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 WEAVIATEAuthConfig 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"), + "host": obj.get("host"), + "api-key": obj.get("api-key") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/weaviate_config.py b/src/python/vectorize_client/models/weaviate_config.py new file mode 100644 index 0000000..72bc6b4 --- /dev/null +++ b/src/python/vectorize_client/models/weaviate_config.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, field_validator +from typing import Any, ClassVar, Dict, List +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class WEAVIATEConfig(BaseModel): + """ + Configuration for Weaviate connector + """ # noqa: E501 + collection: Annotated[str, Field(strict=True)] = Field(description="Collection Name. Example: Enter collection name") + __properties: ClassVar[List[str]] = ["collection"] + + @field_validator('collection') + def collection_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^[A-Z][_0-9A-Za-z]*$", value): + raise ValueError(r"must validate the regular expression /^[A-Z][_0-9A-Za-z]*$/") + 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 WEAVIATEConfig 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 WEAVIATEConfig from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "collection": obj.get("collection") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/web_crawler.py b/src/python/vectorize_client/models/web_crawler.py new file mode 100644 index 0000000..0a488cb --- /dev/null +++ b/src/python/vectorize_client/models/web_crawler.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 +from vectorize_client.models.webcrawler_config import WEBCRAWLERConfig +from typing import Optional, Set +from typing_extensions import Self + +class WebCrawler(BaseModel): + """ + WebCrawler + """ # noqa: E501 + name: StrictStr = Field(description="Name of the connector") + type: StrictStr = Field(description="Connector type (must be \"WEB_CRAWLER\")") + config: WEBCRAWLERConfig + __properties: ClassVar[List[str]] = ["name", "type", "config"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['WEB_CRAWLER']): + raise ValueError("must be one of enum values ('WEB_CRAWLER')") + 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 WebCrawler 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 config + if self.config: + _dict['config'] = self.config.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of WebCrawler 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": WEBCRAWLERConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + }) + return _obj + + diff --git a/src/python/vectorize_client/models/web_crawler1.py b/src/python/vectorize_client/models/web_crawler1.py new file mode 100644 index 0000000..0049978 --- /dev/null +++ b/src/python/vectorize_client/models/web_crawler1.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, Optional +from vectorize_client.models.webcrawler_config import WEBCRAWLERConfig +from typing import Optional, Set +from typing_extensions import Self + +class WebCrawler1(BaseModel): + """ + WebCrawler1 + """ # noqa: E501 + config: Optional[WEBCRAWLERConfig] = None + __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 WebCrawler1 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 config + if self.config: + _dict['config'] = self.config.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of WebCrawler1 from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "config": WEBCRAWLERConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + }) + return _obj + + diff --git a/src/python/vectorize_client/models/webcrawler_auth_config.py b/src/python/vectorize_client/models/webcrawler_auth_config.py new file mode 100644 index 0000000..d600677 --- /dev/null +++ b/src/python/vectorize_client/models/webcrawler_auth_config.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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 WEBCRAWLERAuthConfig(BaseModel): + """ + Authentication configuration for Web Crawler + """ # noqa: E501 + name: StrictStr = Field(description="Name. Example: Enter a descriptive name") + seed_urls: StrictStr = Field(description="Seed URL(s). Add one or more seed URLs to crawl. The crawler will start from these URLs and follow links to other pages.. Example: (e.g. https://example.com)", alias="seed-urls") + __properties: ClassVar[List[str]] = ["name", "seed-urls"] + + 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 WEBCRAWLERAuthConfig 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 WEBCRAWLERAuthConfig 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"), + "seed-urls": obj.get("seed-urls") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/webcrawler_config.py b/src/python/vectorize_client/models/webcrawler_config.py new file mode 100644 index 0000000..6666f05 --- /dev/null +++ b/src/python/vectorize_client/models/webcrawler_config.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + 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, field_validator +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class WEBCRAWLERConfig(BaseModel): + """ + Configuration for Web Crawler connector + """ # noqa: E501 + allowed_domains_opt: Optional[StrictStr] = Field(default=None, description="Additional Allowed URLs or prefix(es). Add one or more allowed URLs or URL prefixes. The crawler will read URLs that match these patterns in addition to the seed URL(s).. Example: (e.g. https://docs.example.com)", alias="allowed-domains-opt") + forbidden_paths: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="Forbidden Paths. Example: Enter forbidden paths (e.g. /admin)", alias="forbidden-paths") + min_time_between_requests: Optional[Union[StrictFloat, StrictInt]] = Field(default=500, description="Throttle (ms). Example: Enter minimum time between requests in milliseconds", alias="min-time-between-requests") + max_error_count: Optional[Union[StrictFloat, StrictInt]] = Field(default=5, description="Max Error Count. Example: Enter maximum error count", alias="max-error-count") + max_urls: Optional[Union[StrictFloat, StrictInt]] = Field(default=1000, description="Max URLs. Example: Enter maximum number of URLs to crawl", alias="max-urls") + max_depth: Optional[Union[StrictFloat, StrictInt]] = Field(default=50, description="Max Depth. Example: Enter maximum crawl depth", alias="max-depth") + reindex_interval_seconds: Optional[Union[StrictFloat, StrictInt]] = Field(default=3600, description="Reindex Interval (seconds). Example: Enter reindex interval in seconds", alias="reindex-interval-seconds") + __properties: ClassVar[List[str]] = ["allowed-domains-opt", "forbidden-paths", "min-time-between-requests", "max-error-count", "max-urls", "max-depth", "reindex-interval-seconds"] + + @field_validator('forbidden_paths') + def forbidden_paths_validate_regular_expression(cls, value): + """Validates the regular expression""" + if value is None: + return value + + if not re.match(r"^\/([a-zA-Z0-9-_]+(\/)?)+$", value): + raise ValueError(r"must validate the regular expression /^\/([a-zA-Z0-9-_]+(\/)?)+$/") + 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 WEBCRAWLERConfig 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 WEBCRAWLERConfig from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "allowed-domains-opt": obj.get("allowed-domains-opt"), + "forbidden-paths": obj.get("forbidden-paths"), + "min-time-between-requests": obj.get("min-time-between-requests") if obj.get("min-time-between-requests") is not None else 500, + "max-error-count": obj.get("max-error-count") if obj.get("max-error-count") is not None else 5, + "max-urls": obj.get("max-urls") if obj.get("max-urls") is not None else 1000, + "max-depth": obj.get("max-depth") if obj.get("max-depth") is not None else 50, + "reindex-interval-seconds": obj.get("reindex-interval-seconds") if obj.get("reindex-interval-seconds") is not None else 3600 + }) + return _obj + + diff --git a/src/python/vectorize_client/rest.py b/src/python/vectorize_client/rest.py index 2d60aa0..6fa52b3 100644 --- a/src/python/vectorize_client/rest.py +++ b/src/python/vectorize_client/rest.py @@ -1,9 +1,9 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/src/ts/package-lock.json b/src/ts/package-lock.json new file mode 100644 index 0000000..87623bf --- /dev/null +++ b/src/ts/package-lock.json @@ -0,0 +1,31 @@ +{ + "name": "@vectorize-io/vectorize-client", + "version": "0.0.1-SNAPSHOT.202507021445", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "@vectorize-io/vectorize-client", + "version": "0.0.1-SNAPSHOT.202507021445", + "hasInstallScript": true, + "license": "MIT", + "devDependencies": { + "typescript": "^5.8.3" + } + }, + "node_modules/typescript": { + "version": "5.8.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.3.tgz", + "integrity": "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==", + "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 d38b590..75db0c5 100644 --- a/src/ts/package.json +++ b/src/ts/package.json @@ -1,6 +1,6 @@ { "name": "@vectorize-io/vectorize-client", - "version": "0.3.0", + "version": "0.0.1-SNAPSHOT.202507021445", "description": "Client for the Vectorize API", "author": "Vectorize ", "repository": { @@ -16,7 +16,7 @@ "preinstall": "npm install typescript" }, "devDependencies": { - "typescript": "^4.0 || ^5.0" + "typescript": "^5.8.3" }, "publishConfig": { "registry": "https://registry.npmjs.org", diff --git a/src/ts/src/apis/AIPlatformConnectorsApi.ts b/src/ts/src/apis/AIPlatformConnectorsApi.ts new file mode 100644 index 0000000..7ec4988 --- /dev/null +++ b/src/ts/src/apis/AIPlatformConnectorsApi.ts @@ -0,0 +1,332 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 * as runtime from '../runtime'; +import type { + AIPlatform, + CreateAIPlatformConnectorRequest, + CreateAIPlatformConnectorResponse, + DeleteAIPlatformConnectorResponse, + GetAIPlatformConnectors200Response, + GetPipelines400Response, + UpdateAIPlatformConnectorRequest, + UpdateAIPlatformConnectorResponse, +} from '../models/index'; +import { + AIPlatformFromJSON, + AIPlatformToJSON, + CreateAIPlatformConnectorRequestFromJSON, + CreateAIPlatformConnectorRequestToJSON, + CreateAIPlatformConnectorResponseFromJSON, + CreateAIPlatformConnectorResponseToJSON, + DeleteAIPlatformConnectorResponseFromJSON, + DeleteAIPlatformConnectorResponseToJSON, + GetAIPlatformConnectors200ResponseFromJSON, + GetAIPlatformConnectors200ResponseToJSON, + GetPipelines400ResponseFromJSON, + GetPipelines400ResponseToJSON, + UpdateAIPlatformConnectorRequestFromJSON, + UpdateAIPlatformConnectorRequestToJSON, + UpdateAIPlatformConnectorResponseFromJSON, + UpdateAIPlatformConnectorResponseToJSON, +} from '../models/index'; + +export interface CreateAIPlatformConnectorOperationRequest { + organizationId: string; + createAIPlatformConnectorRequest: CreateAIPlatformConnectorRequest; +} + +export interface DeleteAIPlatformRequest { + organizationId: string; + aiPlatformConnectorId: string; +} + +export interface GetAIPlatformConnectorRequest { + organizationId: string; + aiPlatformConnectorId: string; +} + +export interface GetAIPlatformConnectorsRequest { + organizationId: string; +} + +export interface UpdateAIPlatformConnectorOperationRequest { + organizationId: string; + aiPlatformConnectorId: string; + updateAIPlatformConnectorRequest: UpdateAIPlatformConnectorRequest; +} + +/** + * + */ +export class AIPlatformConnectorsApi extends runtime.BaseAPI { + + /** + * Creates a new AI platform connector for embeddings and processing. The specific configuration fields required depend on the platform type selected. + * Create a new AI platform connector + */ + async createAIPlatformConnectorRaw(requestParameters: CreateAIPlatformConnectorOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['organizationId'] == null) { + throw new runtime.RequiredError( + 'organizationId', + 'Required parameter "organizationId" was null or undefined when calling createAIPlatformConnector().' + ); + } + + if (requestParameters['createAIPlatformConnectorRequest'] == null) { + throw new runtime.RequiredError( + 'createAIPlatformConnectorRequest', + 'Required parameter "createAIPlatformConnectorRequest" was null or undefined when calling createAIPlatformConnector().' + ); + } + + 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/{organizationId}/connectors/aiplatforms`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: CreateAIPlatformConnectorRequestToJSON(requestParameters['createAIPlatformConnectorRequest']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => CreateAIPlatformConnectorResponseFromJSON(jsonValue)); + } + + /** + * Creates a new AI platform connector for embeddings and processing. The specific configuration fields required depend on the platform type selected. + * Create a new AI platform connector + */ + async createAIPlatformConnector(requestParameters: CreateAIPlatformConnectorOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.createAIPlatformConnectorRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Delete an AI platform connector + * Delete an AI platform connector + */ + async deleteAIPlatformRaw(requestParameters: DeleteAIPlatformRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['organizationId'] == null) { + throw new runtime.RequiredError( + 'organizationId', + 'Required parameter "organizationId" was null or undefined when calling deleteAIPlatform().' + ); + } + + if (requestParameters['aiPlatformConnectorId'] == null) { + throw new runtime.RequiredError( + 'aiPlatformConnectorId', + 'Required parameter "aiPlatformConnectorId" was null or undefined when calling deleteAIPlatform().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + 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/{organizationId}/connectors/aiplatforms/{aiPlatformConnectorId}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))).replace(`{${"aiPlatformConnectorId"}}`, encodeURIComponent(String(requestParameters['aiPlatformConnectorId']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => DeleteAIPlatformConnectorResponseFromJSON(jsonValue)); + } + + /** + * Delete an AI platform connector + * Delete an AI platform connector + */ + async deleteAIPlatform(requestParameters: DeleteAIPlatformRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.deleteAIPlatformRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Get an AI platform connector + * Get an AI platform connector + */ + async getAIPlatformConnectorRaw(requestParameters: GetAIPlatformConnectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['organizationId'] == null) { + throw new runtime.RequiredError( + 'organizationId', + 'Required parameter "organizationId" was null or undefined when calling getAIPlatformConnector().' + ); + } + + if (requestParameters['aiPlatformConnectorId'] == null) { + throw new runtime.RequiredError( + 'aiPlatformConnectorId', + 'Required parameter "aiPlatformConnectorId" was null or undefined when calling getAIPlatformConnector().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + 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/{organizationId}/connectors/aiplatforms/{aiPlatformConnectorId}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))).replace(`{${"aiPlatformConnectorId"}}`, encodeURIComponent(String(requestParameters['aiPlatformConnectorId']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => AIPlatformFromJSON(jsonValue)); + } + + /** + * Get an AI platform connector + * Get an AI platform connector + */ + async getAIPlatformConnector(requestParameters: GetAIPlatformConnectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getAIPlatformConnectorRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Get all existing AI Platform connectors + * Get all existing AI Platform connectors + */ + async getAIPlatformConnectorsRaw(requestParameters: GetAIPlatformConnectorsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['organizationId'] == null) { + throw new runtime.RequiredError( + 'organizationId', + 'Required parameter "organizationId" was null or undefined when calling getAIPlatformConnectors().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + 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/{organizationId}/connectors/aiplatforms`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => GetAIPlatformConnectors200ResponseFromJSON(jsonValue)); + } + + /** + * Get all existing AI Platform connectors + * Get all existing AI Platform connectors + */ + async getAIPlatformConnectors(requestParameters: GetAIPlatformConnectorsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getAIPlatformConnectorsRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Update an AI Platform connector + * Update an AI Platform connector + */ + async updateAIPlatformConnectorRaw(requestParameters: UpdateAIPlatformConnectorOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['organizationId'] == null) { + throw new runtime.RequiredError( + 'organizationId', + 'Required parameter "organizationId" was null or undefined when calling updateAIPlatformConnector().' + ); + } + + if (requestParameters['aiPlatformConnectorId'] == null) { + throw new runtime.RequiredError( + 'aiPlatformConnectorId', + 'Required parameter "aiPlatformConnectorId" was null or undefined when calling updateAIPlatformConnector().' + ); + } + + 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 = {}; + + 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/{organizationId}/connectors/aiplatforms/{aiPlatformConnectorId}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))).replace(`{${"aiPlatformConnectorId"}}`, encodeURIComponent(String(requestParameters['aiPlatformConnectorId']))), + method: 'PATCH', + headers: headerParameters, + query: queryParameters, + body: UpdateAIPlatformConnectorRequestToJSON(requestParameters['updateAIPlatformConnectorRequest']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => UpdateAIPlatformConnectorResponseFromJSON(jsonValue)); + } + + /** + * Update an AI Platform connector + * Update an AI Platform connector + */ + async updateAIPlatformConnector(requestParameters: UpdateAIPlatformConnectorOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.updateAIPlatformConnectorRaw(requestParameters, initOverrides); + return await response.value(); + } + +} diff --git a/src/ts/src/apis/ConnectorsApi.ts b/src/ts/src/apis/ConnectorsApi.ts deleted file mode 100644 index 43493aa..0000000 --- a/src/ts/src/apis/ConnectorsApi.ts +++ /dev/null @@ -1,1200 +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 * as runtime from '../runtime'; -import type { - AIPlatform, - AddUserFromSourceConnectorResponse, - AddUserToSourceConnectorRequest, - CreateAIPlatformConnector, - CreateAIPlatformConnectorResponse, - CreateDestinationConnector, - CreateDestinationConnectorResponse, - CreateSourceConnector, - CreateSourceConnectorResponse, - DeleteAIPlatformConnectorResponse, - DeleteDestinationConnectorResponse, - DeleteSourceConnectorResponse, - DestinationConnector, - GetAIPlatformConnectors200Response, - GetDestinationConnectors200Response, - GetPipelines400Response, - GetSourceConnectors200Response, - RemoveUserFromSourceConnectorRequest, - RemoveUserFromSourceConnectorResponse, - SourceConnector, - UpdateAIPlatformConnectorRequest, - 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, - DeleteAIPlatformConnectorResponseToJSON, - DeleteDestinationConnectorResponseFromJSON, - DeleteDestinationConnectorResponseToJSON, - DeleteSourceConnectorResponseFromJSON, - DeleteSourceConnectorResponseToJSON, - DestinationConnectorFromJSON, - DestinationConnectorToJSON, - GetAIPlatformConnectors200ResponseFromJSON, - GetAIPlatformConnectors200ResponseToJSON, - GetDestinationConnectors200ResponseFromJSON, - GetDestinationConnectors200ResponseToJSON, - GetPipelines400ResponseFromJSON, - GetPipelines400ResponseToJSON, - GetSourceConnectors200ResponseFromJSON, - GetSourceConnectors200ResponseToJSON, - RemoveUserFromSourceConnectorRequestFromJSON, - RemoveUserFromSourceConnectorRequestToJSON, - RemoveUserFromSourceConnectorResponseFromJSON, - RemoveUserFromSourceConnectorResponseToJSON, - SourceConnectorFromJSON, - SourceConnectorToJSON, - UpdateAIPlatformConnectorRequestFromJSON, - UpdateAIPlatformConnectorRequestToJSON, - 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; - createAIPlatformConnector: Array; -} - -export interface CreateDestinationConnectorRequest { - organization: string; - createDestinationConnector: Array; -} - -export interface CreateSourceConnectorRequest { - organization: string; - createSourceConnector: Array; -} - -export interface DeleteAIPlatformRequest { - organization: string; - aiplatformId: string; -} - -export interface DeleteDestinationConnectorRequest { - organization: string; - destinationConnectorId: string; -} - -export interface DeleteSourceConnectorRequest { - organization: string; - sourceConnectorId: string; -} - -export interface DeleteUserFromSourceConnectorRequest { - organization: string; - sourceConnectorId: string; - removeUserFromSourceConnectorRequest: RemoveUserFromSourceConnectorRequest; -} - -export interface GetAIPlatformConnectorRequest { - organization: string; - aiplatformId: string; -} - -export interface GetAIPlatformConnectorsRequest { - organization: string; -} - -export interface GetDestinationConnectorRequest { - organization: string; - destinationConnectorId: string; -} - -export interface GetDestinationConnectorsRequest { - organization: string; -} - -export interface GetSourceConnectorRequest { - organization: string; - sourceConnectorId: string; -} - -export interface GetSourceConnectorsRequest { - organization: string; -} - -export interface UpdateAIPlatformConnectorOperationRequest { - organization: string; - aiplatformId: string; - updateAIPlatformConnectorRequest: UpdateAIPlatformConnectorRequest; -} - -export interface UpdateDestinationConnectorOperationRequest { - organization: string; - destinationConnectorId: string; - updateDestinationConnectorRequest: UpdateDestinationConnectorRequest; -} - -export interface UpdateSourceConnectorOperationRequest { - organization: string; - sourceConnectorId: string; - updateSourceConnectorRequest: UpdateSourceConnectorRequest; -} - -export interface UpdateUserInSourceConnectorOperationRequest { - organization: string; - sourceConnectorId: string; - updateUserInSourceConnectorRequest: UpdateUserInSourceConnectorRequest; -} - -/** - * - */ -export class ConnectorsApi extends runtime.BaseAPI { - - /** - * 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}`; - } - } - - let urlPath = `/org/{organization}/connectors/sources/{sourceConnectorId}/users`; - urlPath = urlPath.replace(`{${"organization"}}`, encodeURIComponent(String(requestParameters['organization']))); - urlPath = urlPath.replace(`{${"sourceConnectorId"}}`, encodeURIComponent(String(requestParameters['sourceConnectorId']))); - - const response = await this.request({ - path: urlPath, - 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, 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) { - throw new runtime.RequiredError( - 'organization', - 'Required parameter "organization" was null or undefined when calling createAIPlatformConnector().' - ); - } - - 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 = {}; - - 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}`; - } - } - - let urlPath = `/org/{organization}/connectors/aiplatforms`; - urlPath = urlPath.replace(`{${"organization"}}`, encodeURIComponent(String(requestParameters['organization']))); - - const response = await this.request({ - path: urlPath, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: requestParameters['createAIPlatformConnector']!.map(CreateAIPlatformConnectorToJSON), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => CreateAIPlatformConnectorResponseFromJSON(jsonValue)); - } - - /** - * 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); - return await response.value(); - } - - /** - * 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) | Supabase (SUPABASE): Name (name): text, Host (host): text, Port (port): number, Database (database): text, Username (username): text, Password (password): 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) { - throw new runtime.RequiredError( - 'organization', - 'Required parameter "organization" was null or undefined when calling createDestinationConnector().' - ); - } - - 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 = {}; - - 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}`; - } - } - - let urlPath = `/org/{organization}/connectors/destinations`; - urlPath = urlPath.replace(`{${"organization"}}`, encodeURIComponent(String(requestParameters['organization']))); - - const response = await this.request({ - path: urlPath, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: requestParameters['createDestinationConnector']!.map(CreateDestinationConnectorToJSON), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => CreateDestinationConnectorResponseFromJSON(jsonValue)); - } - - /** - * 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) | Supabase (SUPABASE): Name (name): text, Host (host): text, Port (port): number, Database (database): text, Username (username): text, Password (password): 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); - return await response.value(); - } - - /** - * 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 (Service Account) (GOOGLE_DRIVE): Name (name): text, Service Account JSON (service-account-json): textarea) | Google Drive Multi-User (Vectorize) (GOOGLE_DRIVE_OAUTH_MULTI): Name (name): text) | Google Drive Multi-User (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) | 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) { - throw new runtime.RequiredError( - 'organization', - 'Required parameter "organization" was null or undefined when calling createSourceConnector().' - ); - } - - 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 = {}; - - 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}`; - } - } - - let urlPath = `/org/{organization}/connectors/sources`; - urlPath = urlPath.replace(`{${"organization"}}`, encodeURIComponent(String(requestParameters['organization']))); - - const response = await this.request({ - path: urlPath, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: requestParameters['createSourceConnector']!.map(CreateSourceConnectorToJSON), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => CreateSourceConnectorResponseFromJSON(jsonValue)); - } - - /** - * 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 (Service Account) (GOOGLE_DRIVE): Name (name): text, Service Account JSON (service-account-json): textarea) | Google Drive Multi-User (Vectorize) (GOOGLE_DRIVE_OAUTH_MULTI): Name (name): text) | Google Drive Multi-User (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) | 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); - return await response.value(); - } - - /** - * Delete an AI platform connector - */ - async deleteAIPlatformRaw(requestParameters: DeleteAIPlatformRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['organization'] == null) { - throw new runtime.RequiredError( - 'organization', - 'Required parameter "organization" was null or undefined when calling deleteAIPlatform().' - ); - } - - if (requestParameters['aiplatformId'] == null) { - throw new runtime.RequiredError( - 'aiplatformId', - 'Required parameter "aiplatformId" was null or undefined when calling deleteAIPlatform().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - - let urlPath = `/org/{organization}/connectors/aiplatforms/{aiplatformId}`; - urlPath = urlPath.replace(`{${"organization"}}`, encodeURIComponent(String(requestParameters['organization']))); - urlPath = urlPath.replace(`{${"aiplatformId"}}`, encodeURIComponent(String(requestParameters['aiplatformId']))); - - const response = await this.request({ - path: urlPath, - method: 'DELETE', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => DeleteAIPlatformConnectorResponseFromJSON(jsonValue)); - } - - /** - * Delete an AI platform connector - */ - async deleteAIPlatform(requestParameters: DeleteAIPlatformRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.deleteAIPlatformRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Delete a destination connector - */ - async deleteDestinationConnectorRaw(requestParameters: DeleteDestinationConnectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['organization'] == null) { - throw new runtime.RequiredError( - 'organization', - 'Required parameter "organization" was null or undefined when calling deleteDestinationConnector().' - ); - } - - if (requestParameters['destinationConnectorId'] == null) { - throw new runtime.RequiredError( - 'destinationConnectorId', - 'Required parameter "destinationConnectorId" was null or undefined when calling deleteDestinationConnector().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - - let urlPath = `/org/{organization}/connectors/destinations/{destinationConnectorId}`; - urlPath = urlPath.replace(`{${"organization"}}`, encodeURIComponent(String(requestParameters['organization']))); - urlPath = urlPath.replace(`{${"destinationConnectorId"}}`, encodeURIComponent(String(requestParameters['destinationConnectorId']))); - - const response = await this.request({ - path: urlPath, - method: 'DELETE', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => DeleteDestinationConnectorResponseFromJSON(jsonValue)); - } - - /** - * Delete a destination connector - */ - async deleteDestinationConnector(requestParameters: DeleteDestinationConnectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.deleteDestinationConnectorRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Delete a source connector - */ - async deleteSourceConnectorRaw(requestParameters: DeleteSourceConnectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['organization'] == null) { - throw new runtime.RequiredError( - 'organization', - 'Required parameter "organization" was null or undefined when calling deleteSourceConnector().' - ); - } - - if (requestParameters['sourceConnectorId'] == null) { - throw new runtime.RequiredError( - 'sourceConnectorId', - 'Required parameter "sourceConnectorId" was null or undefined when calling deleteSourceConnector().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - - let urlPath = `/org/{organization}/connectors/sources/{sourceConnectorId}`; - urlPath = urlPath.replace(`{${"organization"}}`, encodeURIComponent(String(requestParameters['organization']))); - urlPath = urlPath.replace(`{${"sourceConnectorId"}}`, encodeURIComponent(String(requestParameters['sourceConnectorId']))); - - const response = await this.request({ - path: urlPath, - method: 'DELETE', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => DeleteSourceConnectorResponseFromJSON(jsonValue)); - } - - /** - * Delete a source connector - */ - async deleteSourceConnector(requestParameters: DeleteSourceConnectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.deleteSourceConnectorRaw(requestParameters, initOverrides); - 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}`; - } - } - - let urlPath = `/org/{organization}/connectors/sources/{sourceConnectorId}/users`; - urlPath = urlPath.replace(`{${"organization"}}`, encodeURIComponent(String(requestParameters['organization']))); - urlPath = urlPath.replace(`{${"sourceConnectorId"}}`, encodeURIComponent(String(requestParameters['sourceConnectorId']))); - - const response = await this.request({ - path: urlPath, - 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 - */ - async getAIPlatformConnectorRaw(requestParameters: GetAIPlatformConnectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['organization'] == null) { - throw new runtime.RequiredError( - 'organization', - 'Required parameter "organization" was null or undefined when calling getAIPlatformConnector().' - ); - } - - if (requestParameters['aiplatformId'] == null) { - throw new runtime.RequiredError( - 'aiplatformId', - 'Required parameter "aiplatformId" was null or undefined when calling getAIPlatformConnector().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - - let urlPath = `/org/{organization}/connectors/aiplatforms/{aiplatformId}`; - urlPath = urlPath.replace(`{${"organization"}}`, encodeURIComponent(String(requestParameters['organization']))); - urlPath = urlPath.replace(`{${"aiplatformId"}}`, encodeURIComponent(String(requestParameters['aiplatformId']))); - - const response = await this.request({ - path: urlPath, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => AIPlatformFromJSON(jsonValue)); - } - - /** - * Get an AI platform connector - */ - async getAIPlatformConnector(requestParameters: GetAIPlatformConnectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getAIPlatformConnectorRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Get all existing AI Platform connectors - */ - async getAIPlatformConnectorsRaw(requestParameters: GetAIPlatformConnectorsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['organization'] == null) { - throw new runtime.RequiredError( - 'organization', - 'Required parameter "organization" was null or undefined when calling getAIPlatformConnectors().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - - let urlPath = `/org/{organization}/connectors/aiplatforms`; - urlPath = urlPath.replace(`{${"organization"}}`, encodeURIComponent(String(requestParameters['organization']))); - - const response = await this.request({ - path: urlPath, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => GetAIPlatformConnectors200ResponseFromJSON(jsonValue)); - } - - /** - * Get all existing AI Platform connectors - */ - async getAIPlatformConnectors(requestParameters: GetAIPlatformConnectorsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getAIPlatformConnectorsRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Get a destination connector - */ - async getDestinationConnectorRaw(requestParameters: GetDestinationConnectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['organization'] == null) { - throw new runtime.RequiredError( - 'organization', - 'Required parameter "organization" was null or undefined when calling getDestinationConnector().' - ); - } - - if (requestParameters['destinationConnectorId'] == null) { - throw new runtime.RequiredError( - 'destinationConnectorId', - 'Required parameter "destinationConnectorId" was null or undefined when calling getDestinationConnector().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - - let urlPath = `/org/{organization}/connectors/destinations/{destinationConnectorId}`; - urlPath = urlPath.replace(`{${"organization"}}`, encodeURIComponent(String(requestParameters['organization']))); - urlPath = urlPath.replace(`{${"destinationConnectorId"}}`, encodeURIComponent(String(requestParameters['destinationConnectorId']))); - - const response = await this.request({ - path: urlPath, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => DestinationConnectorFromJSON(jsonValue)); - } - - /** - * Get a destination connector - */ - async getDestinationConnector(requestParameters: GetDestinationConnectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getDestinationConnectorRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Get all existing destination connectors - */ - async getDestinationConnectorsRaw(requestParameters: GetDestinationConnectorsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['organization'] == null) { - throw new runtime.RequiredError( - 'organization', - 'Required parameter "organization" was null or undefined when calling getDestinationConnectors().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - - let urlPath = `/org/{organization}/connectors/destinations`; - urlPath = urlPath.replace(`{${"organization"}}`, encodeURIComponent(String(requestParameters['organization']))); - - const response = await this.request({ - path: urlPath, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => GetDestinationConnectors200ResponseFromJSON(jsonValue)); - } - - /** - * Get all existing destination connectors - */ - async getDestinationConnectors(requestParameters: GetDestinationConnectorsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getDestinationConnectorsRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Get a source connector - */ - async getSourceConnectorRaw(requestParameters: GetSourceConnectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['organization'] == null) { - throw new runtime.RequiredError( - 'organization', - 'Required parameter "organization" was null or undefined when calling getSourceConnector().' - ); - } - - if (requestParameters['sourceConnectorId'] == null) { - throw new runtime.RequiredError( - 'sourceConnectorId', - 'Required parameter "sourceConnectorId" was null or undefined when calling getSourceConnector().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - - let urlPath = `/org/{organization}/connectors/sources/{sourceConnectorId}`; - urlPath = urlPath.replace(`{${"organization"}}`, encodeURIComponent(String(requestParameters['organization']))); - urlPath = urlPath.replace(`{${"sourceConnectorId"}}`, encodeURIComponent(String(requestParameters['sourceConnectorId']))); - - const response = await this.request({ - path: urlPath, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => SourceConnectorFromJSON(jsonValue)); - } - - /** - * Get a source connector - */ - async getSourceConnector(requestParameters: GetSourceConnectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getSourceConnectorRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Get all existing source connectors - */ - async getSourceConnectorsRaw(requestParameters: GetSourceConnectorsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['organization'] == null) { - throw new runtime.RequiredError( - 'organization', - 'Required parameter "organization" was null or undefined when calling getSourceConnectors().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("bearerAuth", []); - - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } - } - - let urlPath = `/org/{organization}/connectors/sources`; - urlPath = urlPath.replace(`{${"organization"}}`, encodeURIComponent(String(requestParameters['organization']))); - - const response = await this.request({ - path: urlPath, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => GetSourceConnectors200ResponseFromJSON(jsonValue)); - } - - /** - * Get all existing source connectors - */ - async getSourceConnectors(requestParameters: GetSourceConnectorsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getSourceConnectorsRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Update an AI Platform connector - */ - async updateAIPlatformConnectorRaw(requestParameters: UpdateAIPlatformConnectorOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['organization'] == null) { - throw new runtime.RequiredError( - 'organization', - 'Required parameter "organization" was null or undefined when calling updateAIPlatformConnector().' - ); - } - - if (requestParameters['aiplatformId'] == null) { - throw new runtime.RequiredError( - 'aiplatformId', - 'Required parameter "aiplatformId" was null or undefined when calling updateAIPlatformConnector().' - ); - } - - 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 = {}; - - 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}`; - } - } - - let urlPath = `/org/{organization}/connectors/aiplatforms/{aiplatformId}`; - urlPath = urlPath.replace(`{${"organization"}}`, encodeURIComponent(String(requestParameters['organization']))); - urlPath = urlPath.replace(`{${"aiplatformId"}}`, encodeURIComponent(String(requestParameters['aiplatformId']))); - - const response = await this.request({ - path: urlPath, - method: 'PATCH', - headers: headerParameters, - query: queryParameters, - body: UpdateAIPlatformConnectorRequestToJSON(requestParameters['updateAIPlatformConnectorRequest']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => UpdateAIPlatformConnectorResponseFromJSON(jsonValue)); - } - - /** - * Update an AI Platform connector - */ - async updateAIPlatformConnector(requestParameters: UpdateAIPlatformConnectorOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.updateAIPlatformConnectorRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Update a destination connector - */ - async updateDestinationConnectorRaw(requestParameters: UpdateDestinationConnectorOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['organization'] == null) { - throw new runtime.RequiredError( - 'organization', - 'Required parameter "organization" was null or undefined when calling updateDestinationConnector().' - ); - } - - if (requestParameters['destinationConnectorId'] == null) { - throw new runtime.RequiredError( - 'destinationConnectorId', - 'Required parameter "destinationConnectorId" was null or undefined when calling updateDestinationConnector().' - ); - } - - 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 = {}; - - 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}`; - } - } - - let urlPath = `/org/{organization}/connectors/destinations/{destinationConnectorId}`; - urlPath = urlPath.replace(`{${"organization"}}`, encodeURIComponent(String(requestParameters['organization']))); - urlPath = urlPath.replace(`{${"destinationConnectorId"}}`, encodeURIComponent(String(requestParameters['destinationConnectorId']))); - - const response = await this.request({ - path: urlPath, - method: 'PATCH', - headers: headerParameters, - query: queryParameters, - body: UpdateDestinationConnectorRequestToJSON(requestParameters['updateDestinationConnectorRequest']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => UpdateDestinationConnectorResponseFromJSON(jsonValue)); - } - - /** - * Update a destination connector - */ - async updateDestinationConnector(requestParameters: UpdateDestinationConnectorOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.updateDestinationConnectorRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - * Update a source connector - */ - async updateSourceConnectorRaw(requestParameters: UpdateSourceConnectorOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['organization'] == null) { - throw new runtime.RequiredError( - 'organization', - 'Required parameter "organization" was null or undefined when calling updateSourceConnector().' - ); - } - - if (requestParameters['sourceConnectorId'] == null) { - throw new runtime.RequiredError( - 'sourceConnectorId', - 'Required parameter "sourceConnectorId" was null or undefined when calling updateSourceConnector().' - ); - } - - 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 = {}; - - 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}`; - } - } - - let urlPath = `/org/{organization}/connectors/sources/{sourceConnectorId}`; - urlPath = urlPath.replace(`{${"organization"}}`, encodeURIComponent(String(requestParameters['organization']))); - urlPath = urlPath.replace(`{${"sourceConnectorId"}}`, encodeURIComponent(String(requestParameters['sourceConnectorId']))); - - const response = await this.request({ - path: urlPath, - method: 'PATCH', - headers: headerParameters, - query: queryParameters, - body: UpdateSourceConnectorRequestToJSON(requestParameters['updateSourceConnectorRequest']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => UpdateSourceConnectorResponseFromJSON(jsonValue)); - } - - /** - * Update a source connector - */ - 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}`; - } - } - - let urlPath = `/org/{organization}/connectors/sources/{sourceConnectorId}/users`; - urlPath = urlPath.replace(`{${"organization"}}`, encodeURIComponent(String(requestParameters['organization']))); - urlPath = urlPath.replace(`{${"sourceConnectorId"}}`, encodeURIComponent(String(requestParameters['sourceConnectorId']))); - - const response = await this.request({ - path: urlPath, - 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/DestinationConnectorsApi.ts b/src/ts/src/apis/DestinationConnectorsApi.ts new file mode 100644 index 0000000..f90cd7d --- /dev/null +++ b/src/ts/src/apis/DestinationConnectorsApi.ts @@ -0,0 +1,332 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 * as runtime from '../runtime'; +import type { + CreateDestinationConnectorRequest, + CreateDestinationConnectorResponse, + DeleteDestinationConnectorResponse, + DestinationConnector, + GetDestinationConnectors200Response, + GetPipelines400Response, + UpdateDestinationConnectorRequest, + UpdateDestinationConnectorResponse, +} from '../models/index'; +import { + CreateDestinationConnectorRequestFromJSON, + CreateDestinationConnectorRequestToJSON, + CreateDestinationConnectorResponseFromJSON, + CreateDestinationConnectorResponseToJSON, + DeleteDestinationConnectorResponseFromJSON, + DeleteDestinationConnectorResponseToJSON, + DestinationConnectorFromJSON, + DestinationConnectorToJSON, + GetDestinationConnectors200ResponseFromJSON, + GetDestinationConnectors200ResponseToJSON, + GetPipelines400ResponseFromJSON, + GetPipelines400ResponseToJSON, + UpdateDestinationConnectorRequestFromJSON, + UpdateDestinationConnectorRequestToJSON, + UpdateDestinationConnectorResponseFromJSON, + UpdateDestinationConnectorResponseToJSON, +} from '../models/index'; + +export interface CreateDestinationConnectorOperationRequest { + organizationId: string; + createDestinationConnectorRequest: CreateDestinationConnectorRequest; +} + +export interface DeleteDestinationConnectorRequest { + organizationId: string; + destinationConnectorId: string; +} + +export interface GetDestinationConnectorRequest { + organizationId: string; + destinationConnectorId: string; +} + +export interface GetDestinationConnectorsRequest { + organizationId: string; +} + +export interface UpdateDestinationConnectorOperationRequest { + organizationId: string; + destinationConnectorId: string; + updateDestinationConnectorRequest: UpdateDestinationConnectorRequest; +} + +/** + * + */ +export class DestinationConnectorsApi extends runtime.BaseAPI { + + /** + * Creates a new destination connector for data storage. The specific configuration fields required depend on the connector type selected. + * Create a new destination connector + */ + async createDestinationConnectorRaw(requestParameters: CreateDestinationConnectorOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['organizationId'] == null) { + throw new runtime.RequiredError( + 'organizationId', + 'Required parameter "organizationId" was null or undefined when calling createDestinationConnector().' + ); + } + + if (requestParameters['createDestinationConnectorRequest'] == null) { + throw new runtime.RequiredError( + 'createDestinationConnectorRequest', + 'Required parameter "createDestinationConnectorRequest" was null or undefined when calling createDestinationConnector().' + ); + } + + 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/{organizationId}/connectors/destinations`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: CreateDestinationConnectorRequestToJSON(requestParameters['createDestinationConnectorRequest']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => CreateDestinationConnectorResponseFromJSON(jsonValue)); + } + + /** + * Creates a new destination connector for data storage. The specific configuration fields required depend on the connector type selected. + * Create a new destination connector + */ + async createDestinationConnector(requestParameters: CreateDestinationConnectorOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.createDestinationConnectorRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Delete a destination connector + * Delete a destination connector + */ + async deleteDestinationConnectorRaw(requestParameters: DeleteDestinationConnectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['organizationId'] == null) { + throw new runtime.RequiredError( + 'organizationId', + 'Required parameter "organizationId" was null or undefined when calling deleteDestinationConnector().' + ); + } + + if (requestParameters['destinationConnectorId'] == null) { + throw new runtime.RequiredError( + 'destinationConnectorId', + 'Required parameter "destinationConnectorId" was null or undefined when calling deleteDestinationConnector().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + 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/{organizationId}/connectors/destinations/{destinationConnectorId}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))).replace(`{${"destinationConnectorId"}}`, encodeURIComponent(String(requestParameters['destinationConnectorId']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => DeleteDestinationConnectorResponseFromJSON(jsonValue)); + } + + /** + * Delete a destination connector + * Delete a destination connector + */ + async deleteDestinationConnector(requestParameters: DeleteDestinationConnectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.deleteDestinationConnectorRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Get a destination connector + * Get a destination connector + */ + async getDestinationConnectorRaw(requestParameters: GetDestinationConnectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['organizationId'] == null) { + throw new runtime.RequiredError( + 'organizationId', + 'Required parameter "organizationId" was null or undefined when calling getDestinationConnector().' + ); + } + + if (requestParameters['destinationConnectorId'] == null) { + throw new runtime.RequiredError( + 'destinationConnectorId', + 'Required parameter "destinationConnectorId" was null or undefined when calling getDestinationConnector().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + 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/{organizationId}/connectors/destinations/{destinationConnectorId}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))).replace(`{${"destinationConnectorId"}}`, encodeURIComponent(String(requestParameters['destinationConnectorId']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => DestinationConnectorFromJSON(jsonValue)); + } + + /** + * Get a destination connector + * Get a destination connector + */ + async getDestinationConnector(requestParameters: GetDestinationConnectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getDestinationConnectorRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Get all existing destination connectors + * Get all existing destination connectors + */ + async getDestinationConnectorsRaw(requestParameters: GetDestinationConnectorsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['organizationId'] == null) { + throw new runtime.RequiredError( + 'organizationId', + 'Required parameter "organizationId" was null or undefined when calling getDestinationConnectors().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + 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/{organizationId}/connectors/destinations`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => GetDestinationConnectors200ResponseFromJSON(jsonValue)); + } + + /** + * Get all existing destination connectors + * Get all existing destination connectors + */ + async getDestinationConnectors(requestParameters: GetDestinationConnectorsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getDestinationConnectorsRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Update a destination connector + * Update a destination connector + */ + async updateDestinationConnectorRaw(requestParameters: UpdateDestinationConnectorOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['organizationId'] == null) { + throw new runtime.RequiredError( + 'organizationId', + 'Required parameter "organizationId" was null or undefined when calling updateDestinationConnector().' + ); + } + + if (requestParameters['destinationConnectorId'] == null) { + throw new runtime.RequiredError( + 'destinationConnectorId', + 'Required parameter "destinationConnectorId" was null or undefined when calling updateDestinationConnector().' + ); + } + + 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 = {}; + + 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/{organizationId}/connectors/destinations/{destinationConnectorId}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))).replace(`{${"destinationConnectorId"}}`, encodeURIComponent(String(requestParameters['destinationConnectorId']))), + method: 'PATCH', + headers: headerParameters, + query: queryParameters, + body: UpdateDestinationConnectorRequestToJSON(requestParameters['updateDestinationConnectorRequest']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => UpdateDestinationConnectorResponseFromJSON(jsonValue)); + } + + /** + * Update a destination connector + * Update a destination connector + */ + async updateDestinationConnector(requestParameters: UpdateDestinationConnectorOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.updateDestinationConnectorRaw(requestParameters, initOverrides); + return await response.value(); + } + +} diff --git a/src/ts/src/apis/ExtractionApi.ts b/src/ts/src/apis/ExtractionApi.ts index f85a523..ae3113d 100644 --- a/src/ts/src/apis/ExtractionApi.ts +++ b/src/ts/src/apis/ExtractionApi.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * @@ -32,12 +32,12 @@ import { } from '../models/index'; export interface GetExtractionResultRequest { - organization: string; + organizationId: string; extractionId: string; } export interface StartExtractionOperationRequest { - organization: string; + organizationId: string; startExtractionRequest: StartExtractionRequest; } @@ -47,13 +47,14 @@ export interface StartExtractionOperationRequest { export class ExtractionApi extends runtime.BaseAPI { /** + * Get extraction result * Get extraction result */ async getExtractionResultRaw(requestParameters: GetExtractionResultRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['organization'] == null) { + if (requestParameters['organizationId'] == null) { throw new runtime.RequiredError( - 'organization', - 'Required parameter "organization" was null or undefined when calling getExtractionResult().' + 'organizationId', + 'Required parameter "organizationId" was null or undefined when calling getExtractionResult().' ); } @@ -76,13 +77,8 @@ export class ExtractionApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } - - let urlPath = `/org/{organization}/extraction/{extractionId}`; - urlPath = urlPath.replace(`{${"organization"}}`, encodeURIComponent(String(requestParameters['organization']))); - urlPath = urlPath.replace(`{${"extractionId"}}`, encodeURIComponent(String(requestParameters['extractionId']))); - const response = await this.request({ - path: urlPath, + path: `/org/{organizationId}/extraction/{extractionId}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))).replace(`{${"extractionId"}}`, encodeURIComponent(String(requestParameters['extractionId']))), method: 'GET', headers: headerParameters, query: queryParameters, @@ -92,6 +88,7 @@ export class ExtractionApi extends runtime.BaseAPI { } /** + * Get extraction result * Get extraction result */ async getExtractionResult(requestParameters: GetExtractionResultRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { @@ -100,13 +97,14 @@ export class ExtractionApi extends runtime.BaseAPI { } /** + * Start content extraction from a file * Start content extraction from a file */ async startExtractionRaw(requestParameters: StartExtractionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['organization'] == null) { + if (requestParameters['organizationId'] == null) { throw new runtime.RequiredError( - 'organization', - 'Required parameter "organization" was null or undefined when calling startExtraction().' + 'organizationId', + 'Required parameter "organizationId" was null or undefined when calling startExtraction().' ); } @@ -131,12 +129,8 @@ export class ExtractionApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } - - let urlPath = `/org/{organization}/extraction`; - urlPath = urlPath.replace(`{${"organization"}}`, encodeURIComponent(String(requestParameters['organization']))); - const response = await this.request({ - path: urlPath, + path: `/org/{organizationId}/extraction`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))), method: 'POST', headers: headerParameters, query: queryParameters, @@ -147,6 +141,7 @@ export class ExtractionApi extends runtime.BaseAPI { } /** + * Start content extraction from a file * Start content extraction from a file */ async startExtraction(requestParameters: StartExtractionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { diff --git a/src/ts/src/apis/FilesApi.ts b/src/ts/src/apis/FilesApi.ts index 26b4b86..198fd26 100644 --- a/src/ts/src/apis/FilesApi.ts +++ b/src/ts/src/apis/FilesApi.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * @@ -29,7 +29,7 @@ import { } from '../models/index'; export interface StartFileUploadOperationRequest { - organization: string; + organizationId: string; startFileUploadRequest: StartFileUploadRequest; } @@ -42,10 +42,10 @@ export class FilesApi extends runtime.BaseAPI { * Upload a generic file to the platform */ async startFileUploadRaw(requestParameters: StartFileUploadOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['organization'] == null) { + if (requestParameters['organizationId'] == null) { throw new runtime.RequiredError( - 'organization', - 'Required parameter "organization" was null or undefined when calling startFileUpload().' + 'organizationId', + 'Required parameter "organizationId" was null or undefined when calling startFileUpload().' ); } @@ -70,12 +70,8 @@ export class FilesApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } - - let urlPath = `/org/{organization}/files`; - urlPath = urlPath.replace(`{${"organization"}}`, encodeURIComponent(String(requestParameters['organization']))); - const response = await this.request({ - path: urlPath, + path: `/org/{organizationId}/files`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))), method: 'POST', headers: headerParameters, query: queryParameters, diff --git a/src/ts/src/apis/PipelinesApi.ts b/src/ts/src/apis/PipelinesApi.ts index 7aa19b7..4b785d5 100644 --- a/src/ts/src/apis/PipelinesApi.ts +++ b/src/ts/src/apis/PipelinesApi.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * @@ -65,61 +65,61 @@ import { } from '../models/index'; export interface CreatePipelineRequest { - organization: string; + organizationId: string; pipelineConfigurationSchema: PipelineConfigurationSchema; } export interface DeletePipelineRequest { - organization: string; - pipeline: string; + organizationId: string; + pipelineId: string; } export interface GetDeepResearchResultRequest { - organization: string; - pipeline: string; + organizationId: string; + pipelineId: string; researchId: string; } export interface GetPipelineRequest { - organization: string; - pipeline: string; + organizationId: string; + pipelineId: string; } export interface GetPipelineEventsRequest { - organization: string; - pipeline: string; + organizationId: string; + pipelineId: string; nextToken?: string; } export interface GetPipelineMetricsRequest { - organization: string; - pipeline: string; + organizationId: string; + pipelineId: string; } export interface GetPipelinesRequest { - organization: string; + organizationId: string; } export interface RetrieveDocumentsOperationRequest { - organization: string; - pipeline: string; + organizationId: string; + pipelineId: string; retrieveDocumentsRequest: RetrieveDocumentsRequest; } export interface StartDeepResearchOperationRequest { - organization: string; - pipeline: string; + organizationId: string; + pipelineId: string; startDeepResearchRequest: StartDeepResearchRequest; } export interface StartPipelineRequest { - organization: string; - pipeline: string; + organizationId: string; + pipelineId: string; } export interface StopPipelineRequest { - organization: string; - pipeline: string; + organizationId: string; + pipelineId: string; } /** @@ -128,13 +128,14 @@ export interface StopPipelineRequest { export class PipelinesApi extends runtime.BaseAPI { /** - * 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 from these folders (optional) (path-prefix): array oftext) | Google Drive OAuth (GOOGLE_DRIVE_OAUTH): Polling Interval (seconds) (idle-time): number) | Google Drive (Service Account) (GOOGLE_DRIVE): Restrict ingest to these folder URLs (optional) (root-parents): array oftext, Polling Interval (seconds) (idle-time): number) | Google Drive Multi-User (Vectorize) (GOOGLE_DRIVE_OAUTH_MULTI): Polling Interval (seconds) (idle-time): number) | Google Drive Multi-User (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) | 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) | Supabase (SUPABASE): Table Name (table): 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: + * Creates a new pipeline with source connectors, destination connector, and AI platform configuration. The specific configuration fields required depend on the connector types selected. + * Create a new pipeline */ async createPipelineRaw(requestParameters: CreatePipelineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['organization'] == null) { + if (requestParameters['organizationId'] == null) { throw new runtime.RequiredError( - 'organization', - 'Required parameter "organization" was null or undefined when calling createPipeline().' + 'organizationId', + 'Required parameter "organizationId" was null or undefined when calling createPipeline().' ); } @@ -159,12 +160,8 @@ export class PipelinesApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } - - let urlPath = `/org/{organization}/pipelines`; - urlPath = urlPath.replace(`{${"organization"}}`, encodeURIComponent(String(requestParameters['organization']))); - const response = await this.request({ - path: urlPath, + path: `/org/{organizationId}/pipelines`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))), method: 'POST', headers: headerParameters, query: queryParameters, @@ -175,7 +172,8 @@ export class PipelinesApi extends runtime.BaseAPI { } /** - * 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 from these folders (optional) (path-prefix): array oftext) | Google Drive OAuth (GOOGLE_DRIVE_OAUTH): Polling Interval (seconds) (idle-time): number) | Google Drive (Service Account) (GOOGLE_DRIVE): Restrict ingest to these folder URLs (optional) (root-parents): array oftext, Polling Interval (seconds) (idle-time): number) | Google Drive Multi-User (Vectorize) (GOOGLE_DRIVE_OAUTH_MULTI): Polling Interval (seconds) (idle-time): number) | Google Drive Multi-User (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) | 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) | Supabase (SUPABASE): Table Name (table): 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: + * Creates a new pipeline with source connectors, destination connector, and AI platform configuration. The specific configuration fields required depend on the connector types selected. + * Create a new pipeline */ async createPipeline(requestParameters: CreatePipelineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { const response = await this.createPipelineRaw(requestParameters, initOverrides); @@ -183,20 +181,21 @@ export class PipelinesApi extends runtime.BaseAPI { } /** + * Delete a pipeline * Delete a pipeline */ async deletePipelineRaw(requestParameters: DeletePipelineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['organization'] == null) { + if (requestParameters['organizationId'] == null) { throw new runtime.RequiredError( - 'organization', - 'Required parameter "organization" was null or undefined when calling deletePipeline().' + 'organizationId', + 'Required parameter "organizationId" was null or undefined when calling deletePipeline().' ); } - if (requestParameters['pipeline'] == null) { + if (requestParameters['pipelineId'] == null) { throw new runtime.RequiredError( - 'pipeline', - 'Required parameter "pipeline" was null or undefined when calling deletePipeline().' + 'pipelineId', + 'Required parameter "pipelineId" was null or undefined when calling deletePipeline().' ); } @@ -212,13 +211,8 @@ export class PipelinesApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } - - let urlPath = `/org/{organization}/pipelines/{pipeline}`; - urlPath = urlPath.replace(`{${"organization"}}`, encodeURIComponent(String(requestParameters['organization']))); - urlPath = urlPath.replace(`{${"pipeline"}}`, encodeURIComponent(String(requestParameters['pipeline']))); - const response = await this.request({ - path: urlPath, + path: `/org/{organizationId}/pipelines/{pipelineId}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))).replace(`{${"pipelineId"}}`, encodeURIComponent(String(requestParameters['pipelineId']))), method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -228,6 +222,7 @@ export class PipelinesApi extends runtime.BaseAPI { } /** + * Delete a pipeline * Delete a pipeline */ async deletePipeline(requestParameters: DeletePipelineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { @@ -236,20 +231,21 @@ export class PipelinesApi extends runtime.BaseAPI { } /** + * Get deep research result * Get deep research result */ async getDeepResearchResultRaw(requestParameters: GetDeepResearchResultRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['organization'] == null) { + if (requestParameters['organizationId'] == null) { throw new runtime.RequiredError( - 'organization', - 'Required parameter "organization" was null or undefined when calling getDeepResearchResult().' + 'organizationId', + 'Required parameter "organizationId" was null or undefined when calling getDeepResearchResult().' ); } - if (requestParameters['pipeline'] == null) { + if (requestParameters['pipelineId'] == null) { throw new runtime.RequiredError( - 'pipeline', - 'Required parameter "pipeline" was null or undefined when calling getDeepResearchResult().' + 'pipelineId', + 'Required parameter "pipelineId" was null or undefined when calling getDeepResearchResult().' ); } @@ -272,14 +268,8 @@ export class PipelinesApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } - - let urlPath = `/org/{organization}/pipelines/{pipeline}/deep-research/{researchId}`; - urlPath = urlPath.replace(`{${"organization"}}`, encodeURIComponent(String(requestParameters['organization']))); - urlPath = urlPath.replace(`{${"pipeline"}}`, encodeURIComponent(String(requestParameters['pipeline']))); - urlPath = urlPath.replace(`{${"researchId"}}`, encodeURIComponent(String(requestParameters['researchId']))); - const response = await this.request({ - path: urlPath, + path: `/org/{organizationId}/pipelines/{pipelineId}/deep-research/{researchId}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))).replace(`{${"pipelineId"}}`, encodeURIComponent(String(requestParameters['pipelineId']))).replace(`{${"researchId"}}`, encodeURIComponent(String(requestParameters['researchId']))), method: 'GET', headers: headerParameters, query: queryParameters, @@ -289,6 +279,7 @@ export class PipelinesApi extends runtime.BaseAPI { } /** + * Get deep research result * Get deep research result */ async getDeepResearchResult(requestParameters: GetDeepResearchResultRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { @@ -297,20 +288,21 @@ export class PipelinesApi extends runtime.BaseAPI { } /** + * Get a pipeline * Get a pipeline */ async getPipelineRaw(requestParameters: GetPipelineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['organization'] == null) { + if (requestParameters['organizationId'] == null) { throw new runtime.RequiredError( - 'organization', - 'Required parameter "organization" was null or undefined when calling getPipeline().' + 'organizationId', + 'Required parameter "organizationId" was null or undefined when calling getPipeline().' ); } - if (requestParameters['pipeline'] == null) { + if (requestParameters['pipelineId'] == null) { throw new runtime.RequiredError( - 'pipeline', - 'Required parameter "pipeline" was null or undefined when calling getPipeline().' + 'pipelineId', + 'Required parameter "pipelineId" was null or undefined when calling getPipeline().' ); } @@ -326,13 +318,8 @@ export class PipelinesApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } - - let urlPath = `/org/{organization}/pipelines/{pipeline}`; - urlPath = urlPath.replace(`{${"organization"}}`, encodeURIComponent(String(requestParameters['organization']))); - urlPath = urlPath.replace(`{${"pipeline"}}`, encodeURIComponent(String(requestParameters['pipeline']))); - const response = await this.request({ - path: urlPath, + path: `/org/{organizationId}/pipelines/{pipelineId}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))).replace(`{${"pipelineId"}}`, encodeURIComponent(String(requestParameters['pipelineId']))), method: 'GET', headers: headerParameters, query: queryParameters, @@ -342,6 +329,7 @@ export class PipelinesApi extends runtime.BaseAPI { } /** + * Get a pipeline * Get a pipeline */ async getPipeline(requestParameters: GetPipelineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { @@ -350,20 +338,21 @@ export class PipelinesApi extends runtime.BaseAPI { } /** + * Get pipeline events * Get pipeline events */ async getPipelineEventsRaw(requestParameters: GetPipelineEventsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['organization'] == null) { + if (requestParameters['organizationId'] == null) { throw new runtime.RequiredError( - 'organization', - 'Required parameter "organization" was null or undefined when calling getPipelineEvents().' + 'organizationId', + 'Required parameter "organizationId" was null or undefined when calling getPipelineEvents().' ); } - if (requestParameters['pipeline'] == null) { + if (requestParameters['pipelineId'] == null) { throw new runtime.RequiredError( - 'pipeline', - 'Required parameter "pipeline" was null or undefined when calling getPipelineEvents().' + 'pipelineId', + 'Required parameter "pipelineId" was null or undefined when calling getPipelineEvents().' ); } @@ -383,13 +372,8 @@ export class PipelinesApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } - - let urlPath = `/org/{organization}/pipelines/{pipeline}/events`; - urlPath = urlPath.replace(`{${"organization"}}`, encodeURIComponent(String(requestParameters['organization']))); - urlPath = urlPath.replace(`{${"pipeline"}}`, encodeURIComponent(String(requestParameters['pipeline']))); - const response = await this.request({ - path: urlPath, + path: `/org/{organizationId}/pipelines/{pipelineId}/events`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))).replace(`{${"pipelineId"}}`, encodeURIComponent(String(requestParameters['pipelineId']))), method: 'GET', headers: headerParameters, query: queryParameters, @@ -399,6 +383,7 @@ export class PipelinesApi extends runtime.BaseAPI { } /** + * Get pipeline events * Get pipeline events */ async getPipelineEvents(requestParameters: GetPipelineEventsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { @@ -407,20 +392,21 @@ export class PipelinesApi extends runtime.BaseAPI { } /** + * Get pipeline metrics * Get pipeline metrics */ async getPipelineMetricsRaw(requestParameters: GetPipelineMetricsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['organization'] == null) { + if (requestParameters['organizationId'] == null) { throw new runtime.RequiredError( - 'organization', - 'Required parameter "organization" was null or undefined when calling getPipelineMetrics().' + 'organizationId', + 'Required parameter "organizationId" was null or undefined when calling getPipelineMetrics().' ); } - if (requestParameters['pipeline'] == null) { + if (requestParameters['pipelineId'] == null) { throw new runtime.RequiredError( - 'pipeline', - 'Required parameter "pipeline" was null or undefined when calling getPipelineMetrics().' + 'pipelineId', + 'Required parameter "pipelineId" was null or undefined when calling getPipelineMetrics().' ); } @@ -436,13 +422,8 @@ export class PipelinesApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } - - let urlPath = `/org/{organization}/pipelines/{pipeline}/metrics`; - urlPath = urlPath.replace(`{${"organization"}}`, encodeURIComponent(String(requestParameters['organization']))); - urlPath = urlPath.replace(`{${"pipeline"}}`, encodeURIComponent(String(requestParameters['pipeline']))); - const response = await this.request({ - path: urlPath, + path: `/org/{organizationId}/pipelines/{pipelineId}/metrics`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))).replace(`{${"pipelineId"}}`, encodeURIComponent(String(requestParameters['pipelineId']))), method: 'GET', headers: headerParameters, query: queryParameters, @@ -452,6 +433,7 @@ export class PipelinesApi extends runtime.BaseAPI { } /** + * Get pipeline metrics * Get pipeline metrics */ async getPipelineMetrics(requestParameters: GetPipelineMetricsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { @@ -460,13 +442,14 @@ export class PipelinesApi extends runtime.BaseAPI { } /** - * Get all existing pipelines + * Returns a list of all pipelines in the organization + * Get all pipelines */ async getPipelinesRaw(requestParameters: GetPipelinesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['organization'] == null) { + if (requestParameters['organizationId'] == null) { throw new runtime.RequiredError( - 'organization', - 'Required parameter "organization" was null or undefined when calling getPipelines().' + 'organizationId', + 'Required parameter "organizationId" was null or undefined when calling getPipelines().' ); } @@ -482,12 +465,8 @@ export class PipelinesApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } - - let urlPath = `/org/{organization}/pipelines`; - urlPath = urlPath.replace(`{${"organization"}}`, encodeURIComponent(String(requestParameters['organization']))); - const response = await this.request({ - path: urlPath, + path: `/org/{organizationId}/pipelines`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))), method: 'GET', headers: headerParameters, query: queryParameters, @@ -497,7 +476,8 @@ export class PipelinesApi extends runtime.BaseAPI { } /** - * Get all existing pipelines + * Returns a list of all pipelines in the organization + * Get all pipelines */ async getPipelines(requestParameters: GetPipelinesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { const response = await this.getPipelinesRaw(requestParameters, initOverrides); @@ -505,20 +485,21 @@ export class PipelinesApi extends runtime.BaseAPI { } /** + * Retrieve documents from a pipeline * Retrieve documents from a pipeline */ async retrieveDocumentsRaw(requestParameters: RetrieveDocumentsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['organization'] == null) { + if (requestParameters['organizationId'] == null) { throw new runtime.RequiredError( - 'organization', - 'Required parameter "organization" was null or undefined when calling retrieveDocuments().' + 'organizationId', + 'Required parameter "organizationId" was null or undefined when calling retrieveDocuments().' ); } - if (requestParameters['pipeline'] == null) { + if (requestParameters['pipelineId'] == null) { throw new runtime.RequiredError( - 'pipeline', - 'Required parameter "pipeline" was null or undefined when calling retrieveDocuments().' + 'pipelineId', + 'Required parameter "pipelineId" was null or undefined when calling retrieveDocuments().' ); } @@ -543,13 +524,8 @@ export class PipelinesApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } - - let urlPath = `/org/{organization}/pipelines/{pipeline}/retrieval`; - urlPath = urlPath.replace(`{${"organization"}}`, encodeURIComponent(String(requestParameters['organization']))); - urlPath = urlPath.replace(`{${"pipeline"}}`, encodeURIComponent(String(requestParameters['pipeline']))); - const response = await this.request({ - path: urlPath, + path: `/org/{organizationId}/pipelines/{pipelineId}/retrieval`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))).replace(`{${"pipelineId"}}`, encodeURIComponent(String(requestParameters['pipelineId']))), method: 'POST', headers: headerParameters, query: queryParameters, @@ -560,6 +536,7 @@ export class PipelinesApi extends runtime.BaseAPI { } /** + * Retrieve documents from a pipeline * Retrieve documents from a pipeline */ async retrieveDocuments(requestParameters: RetrieveDocumentsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { @@ -568,20 +545,21 @@ export class PipelinesApi extends runtime.BaseAPI { } /** + * Start a deep research * Start a deep research */ async startDeepResearchRaw(requestParameters: StartDeepResearchOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['organization'] == null) { + if (requestParameters['organizationId'] == null) { throw new runtime.RequiredError( - 'organization', - 'Required parameter "organization" was null or undefined when calling startDeepResearch().' + 'organizationId', + 'Required parameter "organizationId" was null or undefined when calling startDeepResearch().' ); } - if (requestParameters['pipeline'] == null) { + if (requestParameters['pipelineId'] == null) { throw new runtime.RequiredError( - 'pipeline', - 'Required parameter "pipeline" was null or undefined when calling startDeepResearch().' + 'pipelineId', + 'Required parameter "pipelineId" was null or undefined when calling startDeepResearch().' ); } @@ -606,13 +584,8 @@ export class PipelinesApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } - - let urlPath = `/org/{organization}/pipelines/{pipeline}/deep-research`; - urlPath = urlPath.replace(`{${"organization"}}`, encodeURIComponent(String(requestParameters['organization']))); - urlPath = urlPath.replace(`{${"pipeline"}}`, encodeURIComponent(String(requestParameters['pipeline']))); - const response = await this.request({ - path: urlPath, + path: `/org/{organizationId}/pipelines/{pipelineId}/deep-research`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))).replace(`{${"pipelineId"}}`, encodeURIComponent(String(requestParameters['pipelineId']))), method: 'POST', headers: headerParameters, query: queryParameters, @@ -623,6 +596,7 @@ export class PipelinesApi extends runtime.BaseAPI { } /** + * Start a deep research * Start a deep research */ async startDeepResearch(requestParameters: StartDeepResearchOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { @@ -631,20 +605,21 @@ export class PipelinesApi extends runtime.BaseAPI { } /** + * Start a pipeline * Start a pipeline */ async startPipelineRaw(requestParameters: StartPipelineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['organization'] == null) { + if (requestParameters['organizationId'] == null) { throw new runtime.RequiredError( - 'organization', - 'Required parameter "organization" was null or undefined when calling startPipeline().' + 'organizationId', + 'Required parameter "organizationId" was null or undefined when calling startPipeline().' ); } - if (requestParameters['pipeline'] == null) { + if (requestParameters['pipelineId'] == null) { throw new runtime.RequiredError( - 'pipeline', - 'Required parameter "pipeline" was null or undefined when calling startPipeline().' + 'pipelineId', + 'Required parameter "pipelineId" was null or undefined when calling startPipeline().' ); } @@ -660,13 +635,8 @@ export class PipelinesApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } - - let urlPath = `/org/{organization}/pipelines/{pipeline}/start`; - urlPath = urlPath.replace(`{${"organization"}}`, encodeURIComponent(String(requestParameters['organization']))); - urlPath = urlPath.replace(`{${"pipeline"}}`, encodeURIComponent(String(requestParameters['pipeline']))); - const response = await this.request({ - path: urlPath, + path: `/org/{organizationId}/pipelines/{pipelineId}/start`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))).replace(`{${"pipelineId"}}`, encodeURIComponent(String(requestParameters['pipelineId']))), method: 'POST', headers: headerParameters, query: queryParameters, @@ -676,6 +646,7 @@ export class PipelinesApi extends runtime.BaseAPI { } /** + * Start a pipeline * Start a pipeline */ async startPipeline(requestParameters: StartPipelineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { @@ -684,20 +655,21 @@ export class PipelinesApi extends runtime.BaseAPI { } /** + * Stop a pipeline * Stop a pipeline */ async stopPipelineRaw(requestParameters: StopPipelineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['organization'] == null) { + if (requestParameters['organizationId'] == null) { throw new runtime.RequiredError( - 'organization', - 'Required parameter "organization" was null or undefined when calling stopPipeline().' + 'organizationId', + 'Required parameter "organizationId" was null or undefined when calling stopPipeline().' ); } - if (requestParameters['pipeline'] == null) { + if (requestParameters['pipelineId'] == null) { throw new runtime.RequiredError( - 'pipeline', - 'Required parameter "pipeline" was null or undefined when calling stopPipeline().' + 'pipelineId', + 'Required parameter "pipelineId" was null or undefined when calling stopPipeline().' ); } @@ -713,13 +685,8 @@ export class PipelinesApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } - - let urlPath = `/org/{organization}/pipelines/{pipeline}/stop`; - urlPath = urlPath.replace(`{${"organization"}}`, encodeURIComponent(String(requestParameters['organization']))); - urlPath = urlPath.replace(`{${"pipeline"}}`, encodeURIComponent(String(requestParameters['pipeline']))); - const response = await this.request({ - path: urlPath, + path: `/org/{organizationId}/pipelines/{pipelineId}/stop`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))).replace(`{${"pipelineId"}}`, encodeURIComponent(String(requestParameters['pipelineId']))), method: 'POST', headers: headerParameters, query: queryParameters, @@ -729,6 +696,7 @@ export class PipelinesApi extends runtime.BaseAPI { } /** + * Stop a pipeline * Stop a pipeline */ async stopPipeline(requestParameters: StopPipelineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { diff --git a/src/ts/src/apis/SourceConnectorsApi.ts b/src/ts/src/apis/SourceConnectorsApi.ts new file mode 100644 index 0000000..b177db0 --- /dev/null +++ b/src/ts/src/apis/SourceConnectorsApi.ts @@ -0,0 +1,548 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 * as runtime from '../runtime'; +import type { + AddUserFromSourceConnectorResponse, + AddUserToSourceConnectorRequest, + CreateSourceConnectorRequest, + CreateSourceConnectorResponse, + DeleteSourceConnectorResponse, + GetPipelines400Response, + GetSourceConnectors200Response, + RemoveUserFromSourceConnectorRequest, + RemoveUserFromSourceConnectorResponse, + SourceConnector, + UpdateSourceConnectorRequest, + UpdateSourceConnectorResponse, + UpdateUserInSourceConnectorRequest, + UpdateUserInSourceConnectorResponse, +} from '../models/index'; +import { + AddUserFromSourceConnectorResponseFromJSON, + AddUserFromSourceConnectorResponseToJSON, + AddUserToSourceConnectorRequestFromJSON, + AddUserToSourceConnectorRequestToJSON, + CreateSourceConnectorRequestFromJSON, + CreateSourceConnectorRequestToJSON, + CreateSourceConnectorResponseFromJSON, + CreateSourceConnectorResponseToJSON, + DeleteSourceConnectorResponseFromJSON, + DeleteSourceConnectorResponseToJSON, + GetPipelines400ResponseFromJSON, + GetPipelines400ResponseToJSON, + GetSourceConnectors200ResponseFromJSON, + GetSourceConnectors200ResponseToJSON, + RemoveUserFromSourceConnectorRequestFromJSON, + RemoveUserFromSourceConnectorRequestToJSON, + RemoveUserFromSourceConnectorResponseFromJSON, + RemoveUserFromSourceConnectorResponseToJSON, + SourceConnectorFromJSON, + SourceConnectorToJSON, + UpdateSourceConnectorRequestFromJSON, + UpdateSourceConnectorRequestToJSON, + UpdateSourceConnectorResponseFromJSON, + UpdateSourceConnectorResponseToJSON, + UpdateUserInSourceConnectorRequestFromJSON, + UpdateUserInSourceConnectorRequestToJSON, + UpdateUserInSourceConnectorResponseFromJSON, + UpdateUserInSourceConnectorResponseToJSON, +} from '../models/index'; + +export interface AddUserToSourceConnectorOperationRequest { + organizationId: string; + sourceConnectorId: string; + addUserToSourceConnectorRequest: AddUserToSourceConnectorRequest; +} + +export interface CreateSourceConnectorOperationRequest { + organizationId: string; + createSourceConnectorRequest: CreateSourceConnectorRequest; +} + +export interface DeleteSourceConnectorRequest { + organizationId: string; + sourceConnectorId: string; +} + +export interface DeleteUserFromSourceConnectorRequest { + organizationId: string; + sourceConnectorId: string; + removeUserFromSourceConnectorRequest: RemoveUserFromSourceConnectorRequest; +} + +export interface GetSourceConnectorRequest { + organizationId: string; + sourceConnectorId: string; +} + +export interface GetSourceConnectorsRequest { + organizationId: string; +} + +export interface UpdateSourceConnectorOperationRequest { + organizationId: string; + sourceConnectorId: string; + updateSourceConnectorRequest: UpdateSourceConnectorRequest; +} + +export interface UpdateUserInSourceConnectorOperationRequest { + organizationId: string; + sourceConnectorId: string; + updateUserInSourceConnectorRequest: UpdateUserInSourceConnectorRequest; +} + +/** + * + */ +export class SourceConnectorsApi extends runtime.BaseAPI { + + /** + * Add a user to a source connector + * Add a user to a source connector + */ + async addUserToSourceConnectorRaw(requestParameters: AddUserToSourceConnectorOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['organizationId'] == null) { + throw new runtime.RequiredError( + 'organizationId', + 'Required parameter "organizationId" 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/{organizationId}/connectors/sources/{sourceConnectorId}/users`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))).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 + * 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(); + } + + /** + * Creates a new source connector for data ingestion. The specific configuration fields required depend on the connector type selected. + * Create a new source connector + */ + async createSourceConnectorRaw(requestParameters: CreateSourceConnectorOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['organizationId'] == null) { + throw new runtime.RequiredError( + 'organizationId', + 'Required parameter "organizationId" was null or undefined when calling createSourceConnector().' + ); + } + + if (requestParameters['createSourceConnectorRequest'] == null) { + throw new runtime.RequiredError( + 'createSourceConnectorRequest', + 'Required parameter "createSourceConnectorRequest" was null or undefined when calling createSourceConnector().' + ); + } + + 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/{organizationId}/connectors/sources`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: CreateSourceConnectorRequestToJSON(requestParameters['createSourceConnectorRequest']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => CreateSourceConnectorResponseFromJSON(jsonValue)); + } + + /** + * Creates a new source connector for data ingestion. The specific configuration fields required depend on the connector type selected. + * Create a new source connector + */ + async createSourceConnector(requestParameters: CreateSourceConnectorOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.createSourceConnectorRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Delete a source connector + * Delete a source connector + */ + async deleteSourceConnectorRaw(requestParameters: DeleteSourceConnectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['organizationId'] == null) { + throw new runtime.RequiredError( + 'organizationId', + 'Required parameter "organizationId" was null or undefined when calling deleteSourceConnector().' + ); + } + + if (requestParameters['sourceConnectorId'] == null) { + throw new runtime.RequiredError( + 'sourceConnectorId', + 'Required parameter "sourceConnectorId" was null or undefined when calling deleteSourceConnector().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + 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/{organizationId}/connectors/sources/{sourceConnectorId}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))).replace(`{${"sourceConnectorId"}}`, encodeURIComponent(String(requestParameters['sourceConnectorId']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => DeleteSourceConnectorResponseFromJSON(jsonValue)); + } + + /** + * Delete a source connector + * Delete a source connector + */ + async deleteSourceConnector(requestParameters: DeleteSourceConnectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.deleteSourceConnectorRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Delete a source connector user + * Delete a source connector user + */ + async deleteUserFromSourceConnectorRaw(requestParameters: DeleteUserFromSourceConnectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['organizationId'] == null) { + throw new runtime.RequiredError( + 'organizationId', + 'Required parameter "organizationId" 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/{organizationId}/connectors/sources/{sourceConnectorId}/users`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))).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 + * 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 a source connector + * Get a source connector + */ + async getSourceConnectorRaw(requestParameters: GetSourceConnectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['organizationId'] == null) { + throw new runtime.RequiredError( + 'organizationId', + 'Required parameter "organizationId" was null or undefined when calling getSourceConnector().' + ); + } + + if (requestParameters['sourceConnectorId'] == null) { + throw new runtime.RequiredError( + 'sourceConnectorId', + 'Required parameter "sourceConnectorId" was null or undefined when calling getSourceConnector().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + 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/{organizationId}/connectors/sources/{sourceConnectorId}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))).replace(`{${"sourceConnectorId"}}`, encodeURIComponent(String(requestParameters['sourceConnectorId']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => SourceConnectorFromJSON(jsonValue)); + } + + /** + * Get a source connector + * Get a source connector + */ + async getSourceConnector(requestParameters: GetSourceConnectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getSourceConnectorRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Get all existing source connectors + * Get all existing source connectors + */ + async getSourceConnectorsRaw(requestParameters: GetSourceConnectorsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['organizationId'] == null) { + throw new runtime.RequiredError( + 'organizationId', + 'Required parameter "organizationId" was null or undefined when calling getSourceConnectors().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + 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/{organizationId}/connectors/sources`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => GetSourceConnectors200ResponseFromJSON(jsonValue)); + } + + /** + * Get all existing source connectors + * Get all existing source connectors + */ + async getSourceConnectors(requestParameters: GetSourceConnectorsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getSourceConnectorsRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Update a source connector + * Update a source connector + */ + async updateSourceConnectorRaw(requestParameters: UpdateSourceConnectorOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['organizationId'] == null) { + throw new runtime.RequiredError( + 'organizationId', + 'Required parameter "organizationId" was null or undefined when calling updateSourceConnector().' + ); + } + + if (requestParameters['sourceConnectorId'] == null) { + throw new runtime.RequiredError( + 'sourceConnectorId', + 'Required parameter "sourceConnectorId" was null or undefined when calling updateSourceConnector().' + ); + } + + 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 = {}; + + 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/{organizationId}/connectors/sources/{sourceConnectorId}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))).replace(`{${"sourceConnectorId"}}`, encodeURIComponent(String(requestParameters['sourceConnectorId']))), + method: 'PATCH', + headers: headerParameters, + query: queryParameters, + body: UpdateSourceConnectorRequestToJSON(requestParameters['updateSourceConnectorRequest']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => UpdateSourceConnectorResponseFromJSON(jsonValue)); + } + + /** + * Update a source connector + * Update a source connector + */ + 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 + * Update a source connector user + */ + async updateUserInSourceConnectorRaw(requestParameters: UpdateUserInSourceConnectorOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['organizationId'] == null) { + throw new runtime.RequiredError( + 'organizationId', + 'Required parameter "organizationId" 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/{organizationId}/connectors/sources/{sourceConnectorId}/users`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))).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 + * 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/UploadsApi.ts b/src/ts/src/apis/UploadsApi.ts index c889182..cbc12ec 100644 --- a/src/ts/src/apis/UploadsApi.ts +++ b/src/ts/src/apis/UploadsApi.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * @@ -35,17 +35,18 @@ import { } from '../models/index'; export interface DeleteFileFromConnectorRequest { - organization: string; + organizationId: string; connectorId: string; + fileName: string; } export interface GetUploadFilesFromConnectorRequest { - organization: string; + organizationId: string; connectorId: string; } export interface StartFileUploadToConnectorOperationRequest { - organization: string; + organizationId: string; connectorId: string; startFileUploadToConnectorRequest: StartFileUploadToConnectorRequest; } @@ -56,13 +57,14 @@ export interface StartFileUploadToConnectorOperationRequest { export class UploadsApi extends runtime.BaseAPI { /** - * Delete a file from a file upload connector + * Delete a file from a File Upload connector + * Delete a file from a File Upload connector */ async deleteFileFromConnectorRaw(requestParameters: DeleteFileFromConnectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['organization'] == null) { + if (requestParameters['organizationId'] == null) { throw new runtime.RequiredError( - 'organization', - 'Required parameter "organization" was null or undefined when calling deleteFileFromConnector().' + 'organizationId', + 'Required parameter "organizationId" was null or undefined when calling deleteFileFromConnector().' ); } @@ -73,6 +75,13 @@ export class UploadsApi extends runtime.BaseAPI { ); } + if (requestParameters['fileName'] == null) { + throw new runtime.RequiredError( + 'fileName', + 'Required parameter "fileName" was null or undefined when calling deleteFileFromConnector().' + ); + } + const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -85,13 +94,8 @@ export class UploadsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } - - let urlPath = `/org/{organization}/uploads/{connectorId}/files`; - urlPath = urlPath.replace(`{${"organization"}}`, encodeURIComponent(String(requestParameters['organization']))); - urlPath = urlPath.replace(`{${"connectorId"}}`, encodeURIComponent(String(requestParameters['connectorId']))); - const response = await this.request({ - path: urlPath, + path: `/org/{organizationId}/uploads/{connectorId}/files/{fileName}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))).replace(`{${"connectorId"}}`, encodeURIComponent(String(requestParameters['connectorId']))).replace(`{${"fileName"}}`, encodeURIComponent(String(requestParameters['fileName']))), method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -101,7 +105,8 @@ export class UploadsApi extends runtime.BaseAPI { } /** - * Delete a file from a file upload connector + * Delete a file from a File Upload connector + * Delete a file from a File Upload connector */ async deleteFileFromConnector(requestParameters: DeleteFileFromConnectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { const response = await this.deleteFileFromConnectorRaw(requestParameters, initOverrides); @@ -109,13 +114,14 @@ export class UploadsApi extends runtime.BaseAPI { } /** + * Get uploaded files from a file upload connector * Get uploaded files from a file upload connector */ async getUploadFilesFromConnectorRaw(requestParameters: GetUploadFilesFromConnectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['organization'] == null) { + if (requestParameters['organizationId'] == null) { throw new runtime.RequiredError( - 'organization', - 'Required parameter "organization" was null or undefined when calling getUploadFilesFromConnector().' + 'organizationId', + 'Required parameter "organizationId" was null or undefined when calling getUploadFilesFromConnector().' ); } @@ -138,13 +144,8 @@ export class UploadsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } - - let urlPath = `/org/{organization}/uploads/{connectorId}/files`; - urlPath = urlPath.replace(`{${"organization"}}`, encodeURIComponent(String(requestParameters['organization']))); - urlPath = urlPath.replace(`{${"connectorId"}}`, encodeURIComponent(String(requestParameters['connectorId']))); - const response = await this.request({ - path: urlPath, + path: `/org/{organizationId}/uploads/{connectorId}/files`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))).replace(`{${"connectorId"}}`, encodeURIComponent(String(requestParameters['connectorId']))), method: 'GET', headers: headerParameters, query: queryParameters, @@ -154,6 +155,7 @@ export class UploadsApi extends runtime.BaseAPI { } /** + * Get uploaded files from a file upload connector * Get uploaded files from a file upload connector */ async getUploadFilesFromConnector(requestParameters: GetUploadFilesFromConnectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { @@ -162,13 +164,14 @@ export class UploadsApi extends runtime.BaseAPI { } /** + * Upload a file to a file upload connector * Upload a file to a file upload connector */ async startFileUploadToConnectorRaw(requestParameters: StartFileUploadToConnectorOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['organization'] == null) { + if (requestParameters['organizationId'] == null) { throw new runtime.RequiredError( - 'organization', - 'Required parameter "organization" was null or undefined when calling startFileUploadToConnector().' + 'organizationId', + 'Required parameter "organizationId" was null or undefined when calling startFileUploadToConnector().' ); } @@ -200,13 +203,8 @@ export class UploadsApi extends runtime.BaseAPI { headerParameters["Authorization"] = `Bearer ${tokenString}`; } } - - let urlPath = `/org/{organization}/uploads/{connectorId}/files`; - urlPath = urlPath.replace(`{${"organization"}}`, encodeURIComponent(String(requestParameters['organization']))); - urlPath = urlPath.replace(`{${"connectorId"}}`, encodeURIComponent(String(requestParameters['connectorId']))); - const response = await this.request({ - path: urlPath, + path: `/org/{organizationId}/uploads/{connectorId}/files`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))).replace(`{${"connectorId"}}`, encodeURIComponent(String(requestParameters['connectorId']))), method: 'PUT', headers: headerParameters, query: queryParameters, @@ -217,6 +215,7 @@ export class UploadsApi extends runtime.BaseAPI { } /** + * Upload a file to a file upload connector * Upload a file to a file upload connector */ async startFileUploadToConnector(requestParameters: StartFileUploadToConnectorOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { diff --git a/src/ts/src/apis/index.ts b/src/ts/src/apis/index.ts index 85a1d1a..f15b39e 100644 --- a/src/ts/src/apis/index.ts +++ b/src/ts/src/apis/index.ts @@ -1,7 +1,9 @@ /* tslint:disable */ /* eslint-disable */ -export * from './ConnectorsApi'; +export * from './AIPlatformConnectorsApi'; +export * from './DestinationConnectorsApi'; export * from './ExtractionApi'; export * from './FilesApi'; export * from './PipelinesApi'; +export * from './SourceConnectorsApi'; export * from './UploadsApi'; diff --git a/src/ts/src/models/AIPlatform.ts b/src/ts/src/models/AIPlatform.ts index 26e0858..a8fa3a4 100644 --- a/src/ts/src/models/AIPlatform.ts +++ b/src/ts/src/models/AIPlatform.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * diff --git a/src/ts/src/models/AIPlatformConfigSchema.ts b/src/ts/src/models/AIPlatformConfigSchema.ts index eb3e491..8725077 100644 --- a/src/ts/src/models/AIPlatformConfigSchema.ts +++ b/src/ts/src/models/AIPlatformConfigSchema.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * diff --git a/src/ts/src/models/AIPlatformConnectorInput.ts b/src/ts/src/models/AIPlatformConnectorInput.ts new file mode 100644 index 0000000..19f0b3d --- /dev/null +++ b/src/ts/src/models/AIPlatformConnectorInput.ts @@ -0,0 +1,98 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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'; + +/** + * AI platform configuration + * @export + * @interface AIPlatformConnectorInput + */ +export interface AIPlatformConnectorInput { + /** + * Unique identifier for the AI platform + * @type {string} + * @memberof AIPlatformConnectorInput + */ + id: string; + /** + * Type of AI platform + * @type {string} + * @memberof AIPlatformConnectorInput + */ + type: AIPlatformConnectorInputTypeEnum; + /** + * Configuration specific to the AI platform + * @type {any} + * @memberof AIPlatformConnectorInput + */ + config: any | null; +} + + +/** + * @export + */ +export const AIPlatformConnectorInputTypeEnum = { + Bedrock: 'BEDROCK', + Vertex: 'VERTEX', + Openai: 'OPENAI', + Voyage: 'VOYAGE' +} as const; +export type AIPlatformConnectorInputTypeEnum = typeof AIPlatformConnectorInputTypeEnum[keyof typeof AIPlatformConnectorInputTypeEnum]; + + +/** + * Check if a given object implements the AIPlatformConnectorInput interface. + */ +export function instanceOfAIPlatformConnectorInput(value: object): value is AIPlatformConnectorInput { + 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; +} + +export function AIPlatformConnectorInputFromJSON(json: any): AIPlatformConnectorInput { + return AIPlatformConnectorInputFromJSONTyped(json, false); +} + +export function AIPlatformConnectorInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): AIPlatformConnectorInput { + if (json == null) { + return json; + } + return { + + 'id': json['id'], + 'type': json['type'], + 'config': json['config'], + }; +} + +export function AIPlatformConnectorInputToJSON(json: any): AIPlatformConnectorInput { + return AIPlatformConnectorInputToJSONTyped(json, false); +} + +export function AIPlatformConnectorInputToJSONTyped(value?: AIPlatformConnectorInput | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'id': value['id'], + 'type': value['type'], + 'config': value['config'], + }; +} + diff --git a/src/ts/src/models/AIPlatformConnectorSchema.ts b/src/ts/src/models/AIPlatformConnectorSchema.ts new file mode 100644 index 0000000..8145353 --- /dev/null +++ b/src/ts/src/models/AIPlatformConnectorSchema.ts @@ -0,0 +1,101 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 { AIPlatformTypeForPipeline } from './AIPlatformTypeForPipeline'; +import { + AIPlatformTypeForPipelineFromJSON, + AIPlatformTypeForPipelineFromJSONTyped, + AIPlatformTypeForPipelineToJSON, + AIPlatformTypeForPipelineToJSONTyped, +} from './AIPlatformTypeForPipeline'; +import type { AIPlatformConfigSchema } from './AIPlatformConfigSchema'; +import { + AIPlatformConfigSchemaFromJSON, + AIPlatformConfigSchemaFromJSONTyped, + AIPlatformConfigSchemaToJSON, + AIPlatformConfigSchemaToJSONTyped, +} from './AIPlatformConfigSchema'; + +/** + * + * @export + * @interface AIPlatformConnectorSchema + */ +export interface AIPlatformConnectorSchema { + /** + * + * @type {string} + * @memberof AIPlatformConnectorSchema + */ + id: string; + /** + * + * @type {AIPlatformTypeForPipeline} + * @memberof AIPlatformConnectorSchema + */ + type: AIPlatformTypeForPipeline; + /** + * + * @type {AIPlatformConfigSchema} + * @memberof AIPlatformConnectorSchema + */ + config: AIPlatformConfigSchema; +} + + + +/** + * Check if a given object implements the AIPlatformConnectorSchema interface. + */ +export function instanceOfAIPlatformConnectorSchema(value: object): value is AIPlatformConnectorSchema { + 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; +} + +export function AIPlatformConnectorSchemaFromJSON(json: any): AIPlatformConnectorSchema { + return AIPlatformConnectorSchemaFromJSONTyped(json, false); +} + +export function AIPlatformConnectorSchemaFromJSONTyped(json: any, ignoreDiscriminator: boolean): AIPlatformConnectorSchema { + if (json == null) { + return json; + } + return { + + 'id': json['id'], + 'type': AIPlatformTypeForPipelineFromJSON(json['type']), + 'config': AIPlatformConfigSchemaFromJSON(json['config']), + }; +} + +export function AIPlatformConnectorSchemaToJSON(json: any): AIPlatformConnectorSchema { + return AIPlatformConnectorSchemaToJSONTyped(json, false); +} + +export function AIPlatformConnectorSchemaToJSONTyped(value?: AIPlatformConnectorSchema | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'id': value['id'], + 'type': AIPlatformTypeForPipelineToJSON(value['type']), + 'config': AIPlatformConfigSchemaToJSON(value['config']), + }; +} + diff --git a/src/ts/src/models/AIPlatformSchema.ts b/src/ts/src/models/AIPlatformSchema.ts deleted file mode 100644 index ce15cf7..0000000 --- a/src/ts/src/models/AIPlatformSchema.ts +++ /dev/null @@ -1,101 +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 { AIPlatformType } from './AIPlatformType'; -import { - AIPlatformTypeFromJSON, - AIPlatformTypeFromJSONTyped, - AIPlatformTypeToJSON, - AIPlatformTypeToJSONTyped, -} from './AIPlatformType'; -import type { AIPlatformConfigSchema } from './AIPlatformConfigSchema'; -import { - AIPlatformConfigSchemaFromJSON, - AIPlatformConfigSchemaFromJSONTyped, - AIPlatformConfigSchemaToJSON, - AIPlatformConfigSchemaToJSONTyped, -} from './AIPlatformConfigSchema'; - -/** - * - * @export - * @interface AIPlatformSchema - */ -export interface AIPlatformSchema { - /** - * - * @type {string} - * @memberof AIPlatformSchema - */ - id: string; - /** - * - * @type {AIPlatformType} - * @memberof AIPlatformSchema - */ - type: AIPlatformType; - /** - * - * @type {AIPlatformConfigSchema} - * @memberof AIPlatformSchema - */ - config: AIPlatformConfigSchema; -} - - - -/** - * Check if a given object implements the AIPlatformSchema interface. - */ -export function instanceOfAIPlatformSchema(value: object): value is AIPlatformSchema { - 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; -} - -export function AIPlatformSchemaFromJSON(json: any): AIPlatformSchema { - return AIPlatformSchemaFromJSONTyped(json, false); -} - -export function AIPlatformSchemaFromJSONTyped(json: any, ignoreDiscriminator: boolean): AIPlatformSchema { - if (json == null) { - return json; - } - return { - - 'id': json['id'], - 'type': AIPlatformTypeFromJSON(json['type']), - 'config': AIPlatformConfigSchemaFromJSON(json['config']), - }; -} - -export function AIPlatformSchemaToJSON(json: any): AIPlatformSchema { - return AIPlatformSchemaToJSONTyped(json, false); -} - -export function AIPlatformSchemaToJSONTyped(value?: AIPlatformSchema | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'id': value['id'], - 'type': AIPlatformTypeToJSON(value['type']), - 'config': AIPlatformConfigSchemaToJSON(value['config']), - }; -} - diff --git a/src/ts/src/models/AIPlatformType.ts b/src/ts/src/models/AIPlatformType.ts index 0438c9d..914d1e6 100644 --- a/src/ts/src/models/AIPlatformType.ts +++ b/src/ts/src/models/AIPlatformType.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * @@ -21,8 +21,7 @@ export const AIPlatformType = { Bedrock: 'BEDROCK', Vertex: 'VERTEX', Openai: 'OPENAI', - Voyage: 'VOYAGE', - Vectorize: 'VECTORIZE' + Voyage: 'VOYAGE' } as const; export type AIPlatformType = typeof AIPlatformType[keyof typeof AIPlatformType]; diff --git a/src/ts/src/models/AIPlatformTypeForPipeline.ts b/src/ts/src/models/AIPlatformTypeForPipeline.ts new file mode 100644 index 0000000..7d858a7 --- /dev/null +++ b/src/ts/src/models/AIPlatformTypeForPipeline.ts @@ -0,0 +1,56 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 AIPlatformTypeForPipeline = { + Bedrock: 'BEDROCK', + Vertex: 'VERTEX', + Openai: 'OPENAI', + Voyage: 'VOYAGE', + Vectorize: 'VECTORIZE' +} as const; +export type AIPlatformTypeForPipeline = typeof AIPlatformTypeForPipeline[keyof typeof AIPlatformTypeForPipeline]; + + +export function instanceOfAIPlatformTypeForPipeline(value: any): boolean { + for (const key in AIPlatformTypeForPipeline) { + if (Object.prototype.hasOwnProperty.call(AIPlatformTypeForPipeline, key)) { + if (AIPlatformTypeForPipeline[key as keyof typeof AIPlatformTypeForPipeline] === value) { + return true; + } + } + } + return false; +} + +export function AIPlatformTypeForPipelineFromJSON(json: any): AIPlatformTypeForPipeline { + return AIPlatformTypeForPipelineFromJSONTyped(json, false); +} + +export function AIPlatformTypeForPipelineFromJSONTyped(json: any, ignoreDiscriminator: boolean): AIPlatformTypeForPipeline { + return json as AIPlatformTypeForPipeline; +} + +export function AIPlatformTypeForPipelineToJSON(value?: AIPlatformTypeForPipeline | null): any { + return value as any; +} + +export function AIPlatformTypeForPipelineToJSONTyped(value: any, ignoreDiscriminator: boolean): AIPlatformTypeForPipeline { + return value as AIPlatformTypeForPipeline; +} + diff --git a/src/ts/src/models/AWSS3AuthConfig.ts b/src/ts/src/models/AWSS3AuthConfig.ts new file mode 100644 index 0000000..06f2072 --- /dev/null +++ b/src/ts/src/models/AWSS3AuthConfig.ts @@ -0,0 +1,118 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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'; +/** + * Authentication configuration for Amazon S3 + * @export + * @interface AWSS3AuthConfig + */ +export interface AWSS3AuthConfig { + /** + * Name. Example: Enter a descriptive name + * @type {string} + * @memberof AWSS3AuthConfig + */ + name: string; + /** + * Access Key. Example: Enter Access Key + * @type {string} + * @memberof AWSS3AuthConfig + */ + accessKey: string; + /** + * Secret Key. Example: Enter Secret Key + * @type {string} + * @memberof AWSS3AuthConfig + */ + secretKey: string; + /** + * Bucket Name. Example: Enter your S3 Bucket Name + * @type {string} + * @memberof AWSS3AuthConfig + */ + bucketName: string; + /** + * Endpoint. Example: Enter Endpoint URL + * @type {string} + * @memberof AWSS3AuthConfig + */ + endpoint?: string; + /** + * Region. Example: Region Name + * @type {string} + * @memberof AWSS3AuthConfig + */ + region?: string; + /** + * Allow as archive destination + * @type {boolean} + * @memberof AWSS3AuthConfig + */ + archiver: boolean; +} + +/** + * Check if a given object implements the AWSS3AuthConfig interface. + */ +export function instanceOfAWSS3AuthConfig(value: object): value is AWSS3AuthConfig { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('accessKey' in value) || value['accessKey'] === undefined) return false; + if (!('secretKey' in value) || value['secretKey'] === undefined) return false; + if (!('bucketName' in value) || value['bucketName'] === undefined) return false; + if (!('archiver' in value) || value['archiver'] === undefined) return false; + return true; +} + +export function AWSS3AuthConfigFromJSON(json: any): AWSS3AuthConfig { + return AWSS3AuthConfigFromJSONTyped(json, false); +} + +export function AWSS3AuthConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): AWSS3AuthConfig { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'accessKey': json['access-key'], + 'secretKey': json['secret-key'], + 'bucketName': json['bucket-name'], + 'endpoint': json['endpoint'] == null ? undefined : json['endpoint'], + 'region': json['region'] == null ? undefined : json['region'], + 'archiver': json['archiver'], + }; +} + +export function AWSS3AuthConfigToJSON(json: any): AWSS3AuthConfig { + return AWSS3AuthConfigToJSONTyped(json, false); +} + +export function AWSS3AuthConfigToJSONTyped(value?: AWSS3AuthConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'access-key': value['accessKey'], + 'secret-key': value['secretKey'], + 'bucket-name': value['bucketName'], + 'endpoint': value['endpoint'], + 'region': value['region'], + 'archiver': value['archiver'], + }; +} + diff --git a/src/ts/src/models/AWSS3Config.ts b/src/ts/src/models/AWSS3Config.ts new file mode 100644 index 0000000..1bb4772 --- /dev/null +++ b/src/ts/src/models/AWSS3Config.ts @@ -0,0 +1,127 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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'; +/** + * Configuration for Amazon S3 connector + * @export + * @interface AWSS3Config + */ +export interface AWSS3Config { + /** + * File Extensions + * @type {Array} + * @memberof AWSS3Config + */ + fileExtensions: AWSS3ConfigFileExtensionsEnum; + /** + * Check for updates every (seconds) + * @type {number} + * @memberof AWSS3Config + */ + idleTime: number; + /** + * Recursively scan all folders in the bucket + * @type {boolean} + * @memberof AWSS3Config + */ + recursive?: boolean; + /** + * Path Prefix + * @type {string} + * @memberof AWSS3Config + */ + pathPrefix?: string; + /** + * Path Metadata Regex + * @type {string} + * @memberof AWSS3Config + */ + pathMetadataRegex?: string; + /** + * Path Regex Group Names. Example: Enter Group Name + * @type {string} + * @memberof AWSS3Config + */ + pathRegexGroupNames?: string; +} + + +/** + * @export + */ +export const AWSS3ConfigFileExtensionsEnum = { + Pdf: 'pdf', + Docdocxgdocodtrtfepub: 'doc,docx,gdoc,odt,rtf,epub', + Pptpptxgslides: 'ppt,pptx,gslides', + Xlsxlsxgsheetsods: 'xls,xlsx,gsheets,ods', + Emlmsg: 'eml,msg', + Txt: 'txt', + Htmlhtm: 'html,htm', + Md: 'md', + Json: 'json', + Csv: 'csv', + Jpgjpegpngwebpsvggif: 'jpg,jpeg,png,webp,svg,gif' +} as const; +export type AWSS3ConfigFileExtensionsEnum = typeof AWSS3ConfigFileExtensionsEnum[keyof typeof AWSS3ConfigFileExtensionsEnum]; + + +/** + * Check if a given object implements the AWSS3Config interface. + */ +export function instanceOfAWSS3Config(value: object): value is AWSS3Config { + if (!('fileExtensions' in value) || value['fileExtensions'] === undefined) return false; + if (!('idleTime' in value) || value['idleTime'] === undefined) return false; + return true; +} + +export function AWSS3ConfigFromJSON(json: any): AWSS3Config { + return AWSS3ConfigFromJSONTyped(json, false); +} + +export function AWSS3ConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): AWSS3Config { + if (json == null) { + return json; + } + return { + + 'fileExtensions': json['file-extensions'], + 'idleTime': json['idle-time'], + 'recursive': json['recursive'] == null ? undefined : json['recursive'], + 'pathPrefix': json['path-prefix'] == null ? undefined : json['path-prefix'], + 'pathMetadataRegex': json['path-metadata-regex'] == null ? undefined : json['path-metadata-regex'], + 'pathRegexGroupNames': json['path-regex-group-names'] == null ? undefined : json['path-regex-group-names'], + }; +} + +export function AWSS3ConfigToJSON(json: any): AWSS3Config { + return AWSS3ConfigToJSONTyped(json, false); +} + +export function AWSS3ConfigToJSONTyped(value?: AWSS3Config | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'file-extensions': value['fileExtensions'], + 'idle-time': value['idleTime'], + 'recursive': value['recursive'], + 'path-prefix': value['pathPrefix'], + 'path-metadata-regex': value['pathMetadataRegex'], + 'path-regex-group-names': value['pathRegexGroupNames'], + }; +} + diff --git a/src/ts/src/models/AZUREAISEARCHAuthConfig.ts b/src/ts/src/models/AZUREAISEARCHAuthConfig.ts new file mode 100644 index 0000000..701f703 --- /dev/null +++ b/src/ts/src/models/AZUREAISEARCHAuthConfig.ts @@ -0,0 +1,84 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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'; +/** + * Authentication configuration for Azure AI Search + * @export + * @interface AZUREAISEARCHAuthConfig + */ +export interface AZUREAISEARCHAuthConfig { + /** + * Name. Example: Enter a descriptive name for your Azure AI Search integration + * @type {string} + * @memberof AZUREAISEARCHAuthConfig + */ + name: string; + /** + * Azure AI Search Service Name. Example: Enter your Azure AI Search service name + * @type {string} + * @memberof AZUREAISEARCHAuthConfig + */ + serviceName: string; + /** + * API Key. Example: Enter your API key + * @type {string} + * @memberof AZUREAISEARCHAuthConfig + */ + apiKey: string; +} + +/** + * Check if a given object implements the AZUREAISEARCHAuthConfig interface. + */ +export function instanceOfAZUREAISEARCHAuthConfig(value: object): value is AZUREAISEARCHAuthConfig { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('serviceName' in value) || value['serviceName'] === undefined) return false; + if (!('apiKey' in value) || value['apiKey'] === undefined) return false; + return true; +} + +export function AZUREAISEARCHAuthConfigFromJSON(json: any): AZUREAISEARCHAuthConfig { + return AZUREAISEARCHAuthConfigFromJSONTyped(json, false); +} + +export function AZUREAISEARCHAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): AZUREAISEARCHAuthConfig { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'serviceName': json['service-name'], + 'apiKey': json['api-key'], + }; +} + +export function AZUREAISEARCHAuthConfigToJSON(json: any): AZUREAISEARCHAuthConfig { + return AZUREAISEARCHAuthConfigToJSONTyped(json, false); +} + +export function AZUREAISEARCHAuthConfigToJSONTyped(value?: AZUREAISEARCHAuthConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'service-name': value['serviceName'], + 'api-key': value['apiKey'], + }; +} + diff --git a/src/ts/src/models/AZUREAISEARCHConfig.ts b/src/ts/src/models/AZUREAISEARCHConfig.ts new file mode 100644 index 0000000..ba29221 --- /dev/null +++ b/src/ts/src/models/AZUREAISEARCHConfig.ts @@ -0,0 +1,66 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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'; +/** + * Configuration for Azure AI Search connector + * @export + * @interface AZUREAISEARCHConfig + */ +export interface AZUREAISEARCHConfig { + /** + * Index Name. Example: Enter index name + * @type {string} + * @memberof AZUREAISEARCHConfig + */ + index: string; +} + +/** + * Check if a given object implements the AZUREAISEARCHConfig interface. + */ +export function instanceOfAZUREAISEARCHConfig(value: object): value is AZUREAISEARCHConfig { + if (!('index' in value) || value['index'] === undefined) return false; + return true; +} + +export function AZUREAISEARCHConfigFromJSON(json: any): AZUREAISEARCHConfig { + return AZUREAISEARCHConfigFromJSONTyped(json, false); +} + +export function AZUREAISEARCHConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): AZUREAISEARCHConfig { + if (json == null) { + return json; + } + return { + + 'index': json['index'], + }; +} + +export function AZUREAISEARCHConfigToJSON(json: any): AZUREAISEARCHConfig { + return AZUREAISEARCHConfigToJSONTyped(json, false); +} + +export function AZUREAISEARCHConfigToJSONTyped(value?: AZUREAISEARCHConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'index': value['index'], + }; +} + diff --git a/src/ts/src/models/AZUREBLOBAuthConfig.ts b/src/ts/src/models/AZUREBLOBAuthConfig.ts new file mode 100644 index 0000000..aa132b8 --- /dev/null +++ b/src/ts/src/models/AZUREBLOBAuthConfig.ts @@ -0,0 +1,101 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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'; +/** + * Authentication configuration for Azure Blob Storage + * @export + * @interface AZUREBLOBAuthConfig + */ +export interface AZUREBLOBAuthConfig { + /** + * Name. Example: Enter a descriptive name + * @type {string} + * @memberof AZUREBLOBAuthConfig + */ + name: string; + /** + * Storage Account Name. Example: Enter Storage Account Name + * @type {string} + * @memberof AZUREBLOBAuthConfig + */ + storageAccountName: string; + /** + * Storage Account Key. Example: Enter Storage Account Key + * @type {string} + * @memberof AZUREBLOBAuthConfig + */ + storageAccountKey: string; + /** + * Container. Example: Enter Container Name + * @type {string} + * @memberof AZUREBLOBAuthConfig + */ + container: string; + /** + * Endpoint. Example: Enter Endpoint URL + * @type {string} + * @memberof AZUREBLOBAuthConfig + */ + endpoint?: string; +} + +/** + * Check if a given object implements the AZUREBLOBAuthConfig interface. + */ +export function instanceOfAZUREBLOBAuthConfig(value: object): value is AZUREBLOBAuthConfig { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('storageAccountName' in value) || value['storageAccountName'] === undefined) return false; + if (!('storageAccountKey' in value) || value['storageAccountKey'] === undefined) return false; + if (!('container' in value) || value['container'] === undefined) return false; + return true; +} + +export function AZUREBLOBAuthConfigFromJSON(json: any): AZUREBLOBAuthConfig { + return AZUREBLOBAuthConfigFromJSONTyped(json, false); +} + +export function AZUREBLOBAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): AZUREBLOBAuthConfig { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'storageAccountName': json['storage-account-name'], + 'storageAccountKey': json['storage-account-key'], + 'container': json['container'], + 'endpoint': json['endpoint'] == null ? undefined : json['endpoint'], + }; +} + +export function AZUREBLOBAuthConfigToJSON(json: any): AZUREBLOBAuthConfig { + return AZUREBLOBAuthConfigToJSONTyped(json, false); +} + +export function AZUREBLOBAuthConfigToJSONTyped(value?: AZUREBLOBAuthConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'storage-account-name': value['storageAccountName'], + 'storage-account-key': value['storageAccountKey'], + 'container': value['container'], + 'endpoint': value['endpoint'], + }; +} + diff --git a/src/ts/src/models/AZUREBLOBConfig.ts b/src/ts/src/models/AZUREBLOBConfig.ts new file mode 100644 index 0000000..bf70189 --- /dev/null +++ b/src/ts/src/models/AZUREBLOBConfig.ts @@ -0,0 +1,127 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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'; +/** + * Configuration for Azure Blob Storage connector + * @export + * @interface AZUREBLOBConfig + */ +export interface AZUREBLOBConfig { + /** + * File Extensions + * @type {Array} + * @memberof AZUREBLOBConfig + */ + fileExtensions: AZUREBLOBConfigFileExtensionsEnum; + /** + * Polling Interval (seconds) + * @type {number} + * @memberof AZUREBLOBConfig + */ + idleTime: number; + /** + * Recursively scan all folders in the bucket + * @type {boolean} + * @memberof AZUREBLOBConfig + */ + recursive?: boolean; + /** + * Path Prefix + * @type {string} + * @memberof AZUREBLOBConfig + */ + pathPrefix?: string; + /** + * Path Metadata Regex + * @type {string} + * @memberof AZUREBLOBConfig + */ + pathMetadataRegex?: string; + /** + * Path Regex Group Names. Example: Enter Group Name + * @type {string} + * @memberof AZUREBLOBConfig + */ + pathRegexGroupNames?: string; +} + + +/** + * @export + */ +export const AZUREBLOBConfigFileExtensionsEnum = { + Pdf: 'pdf', + Docdocxgdocodtrtfepub: 'doc,docx,gdoc,odt,rtf,epub', + Pptpptxgslides: 'ppt,pptx,gslides', + Xlsxlsxgsheetsods: 'xls,xlsx,gsheets,ods', + Emlmsg: 'eml,msg', + Txt: 'txt', + Htmlhtm: 'html,htm', + Md: 'md', + Json: 'json', + Csv: 'csv', + Jpgjpegpngwebpsvggif: 'jpg,jpeg,png,webp,svg,gif' +} as const; +export type AZUREBLOBConfigFileExtensionsEnum = typeof AZUREBLOBConfigFileExtensionsEnum[keyof typeof AZUREBLOBConfigFileExtensionsEnum]; + + +/** + * Check if a given object implements the AZUREBLOBConfig interface. + */ +export function instanceOfAZUREBLOBConfig(value: object): value is AZUREBLOBConfig { + if (!('fileExtensions' in value) || value['fileExtensions'] === undefined) return false; + if (!('idleTime' in value) || value['idleTime'] === undefined) return false; + return true; +} + +export function AZUREBLOBConfigFromJSON(json: any): AZUREBLOBConfig { + return AZUREBLOBConfigFromJSONTyped(json, false); +} + +export function AZUREBLOBConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): AZUREBLOBConfig { + if (json == null) { + return json; + } + return { + + 'fileExtensions': json['file-extensions'], + 'idleTime': json['idle-time'], + 'recursive': json['recursive'] == null ? undefined : json['recursive'], + 'pathPrefix': json['path-prefix'] == null ? undefined : json['path-prefix'], + 'pathMetadataRegex': json['path-metadata-regex'] == null ? undefined : json['path-metadata-regex'], + 'pathRegexGroupNames': json['path-regex-group-names'] == null ? undefined : json['path-regex-group-names'], + }; +} + +export function AZUREBLOBConfigToJSON(json: any): AZUREBLOBConfig { + return AZUREBLOBConfigToJSONTyped(json, false); +} + +export function AZUREBLOBConfigToJSONTyped(value?: AZUREBLOBConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'file-extensions': value['fileExtensions'], + 'idle-time': value['idleTime'], + 'recursive': value['recursive'], + 'path-prefix': value['pathPrefix'], + 'path-metadata-regex': value['pathMetadataRegex'], + 'path-regex-group-names': value['pathRegexGroupNames'], + }; +} + diff --git a/src/ts/src/models/AddUserFromSourceConnectorResponse.ts b/src/ts/src/models/AddUserFromSourceConnectorResponse.ts index 5514ae1..65f8a88 100644 --- a/src/ts/src/models/AddUserFromSourceConnectorResponse.ts +++ b/src/ts/src/models/AddUserFromSourceConnectorResponse.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * diff --git a/src/ts/src/models/AddUserToSourceConnectorRequest.ts b/src/ts/src/models/AddUserToSourceConnectorRequest.ts index a18eec6..06d5c56 100644 --- a/src/ts/src/models/AddUserToSourceConnectorRequest.ts +++ b/src/ts/src/models/AddUserToSourceConnectorRequest.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * @@ -13,13 +13,13 @@ */ import { mapValues } from '../runtime'; -import type { AddUserToSourceConnectorRequestSelectedFilesValue } from './AddUserToSourceConnectorRequestSelectedFilesValue'; +import type { AddUserToSourceConnectorRequestSelectedFiles } from './AddUserToSourceConnectorRequestSelectedFiles'; import { - AddUserToSourceConnectorRequestSelectedFilesValueFromJSON, - AddUserToSourceConnectorRequestSelectedFilesValueFromJSONTyped, - AddUserToSourceConnectorRequestSelectedFilesValueToJSON, - AddUserToSourceConnectorRequestSelectedFilesValueToJSONTyped, -} from './AddUserToSourceConnectorRequestSelectedFilesValue'; + AddUserToSourceConnectorRequestSelectedFilesFromJSON, + AddUserToSourceConnectorRequestSelectedFilesFromJSONTyped, + AddUserToSourceConnectorRequestSelectedFilesToJSON, + AddUserToSourceConnectorRequestSelectedFilesToJSONTyped, +} from './AddUserToSourceConnectorRequestSelectedFiles'; /** * @@ -35,16 +35,22 @@ export interface AddUserToSourceConnectorRequest { userId: string; /** * - * @type {{ [key: string]: AddUserToSourceConnectorRequestSelectedFilesValue; }} + * @type {AddUserToSourceConnectorRequestSelectedFiles} * @memberof AddUserToSourceConnectorRequest */ - selectedFiles: { [key: string]: AddUserToSourceConnectorRequestSelectedFilesValue; }; + selectedFiles: AddUserToSourceConnectorRequestSelectedFiles; /** * * @type {string} * @memberof AddUserToSourceConnectorRequest */ - refreshToken: string; + refreshToken?: string; + /** + * + * @type {string} + * @memberof AddUserToSourceConnectorRequest + */ + accessToken?: string; } /** @@ -53,7 +59,6 @@ export interface AddUserToSourceConnectorRequest { export function instanceOfAddUserToSourceConnectorRequest(value: object): value is AddUserToSourceConnectorRequest { if (!('userId' in value) || value['userId'] === undefined) return false; if (!('selectedFiles' in value) || value['selectedFiles'] === undefined) return false; - if (!('refreshToken' in value) || value['refreshToken'] === undefined) return false; return true; } @@ -68,8 +73,9 @@ export function AddUserToSourceConnectorRequestFromJSONTyped(json: any, ignoreDi return { 'userId': json['userId'], - 'selectedFiles': (mapValues(json['selectedFiles'], AddUserToSourceConnectorRequestSelectedFilesValueFromJSON)), - 'refreshToken': json['refreshToken'], + 'selectedFiles': AddUserToSourceConnectorRequestSelectedFilesFromJSON(json['selectedFiles']), + 'refreshToken': json['refreshToken'] == null ? undefined : json['refreshToken'], + 'accessToken': json['accessToken'] == null ? undefined : json['accessToken'], }; } @@ -85,8 +91,9 @@ export function AddUserToSourceConnectorRequestToJSONTyped(value?: AddUserToSour return { 'userId': value['userId'], - 'selectedFiles': (mapValues(value['selectedFiles'], AddUserToSourceConnectorRequestSelectedFilesValueToJSON)), + 'selectedFiles': AddUserToSourceConnectorRequestSelectedFilesToJSON(value['selectedFiles']), 'refreshToken': value['refreshToken'], + 'accessToken': value['accessToken'], }; } diff --git a/src/ts/src/models/AddUserToSourceConnectorRequestSelectedFiles.ts b/src/ts/src/models/AddUserToSourceConnectorRequestSelectedFiles.ts new file mode 100644 index 0000000..2533f40 --- /dev/null +++ b/src/ts/src/models/AddUserToSourceConnectorRequestSelectedFiles.ts @@ -0,0 +1,88 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 { AddUserToSourceConnectorRequestSelectedFilesAnyOfValue } from './AddUserToSourceConnectorRequestSelectedFilesAnyOfValue'; +import { + AddUserToSourceConnectorRequestSelectedFilesAnyOfValueFromJSON, + AddUserToSourceConnectorRequestSelectedFilesAnyOfValueFromJSONTyped, + AddUserToSourceConnectorRequestSelectedFilesAnyOfValueToJSON, + AddUserToSourceConnectorRequestSelectedFilesAnyOfValueToJSONTyped, +} from './AddUserToSourceConnectorRequestSelectedFilesAnyOfValue'; +import type { AddUserToSourceConnectorRequestSelectedFilesAnyOf } from './AddUserToSourceConnectorRequestSelectedFilesAnyOf'; +import { + AddUserToSourceConnectorRequestSelectedFilesAnyOfFromJSON, + AddUserToSourceConnectorRequestSelectedFilesAnyOfFromJSONTyped, + AddUserToSourceConnectorRequestSelectedFilesAnyOfToJSON, + AddUserToSourceConnectorRequestSelectedFilesAnyOfToJSONTyped, +} from './AddUserToSourceConnectorRequestSelectedFilesAnyOf'; + +/** + * + * @export + * @interface AddUserToSourceConnectorRequestSelectedFiles + */ +export interface AddUserToSourceConnectorRequestSelectedFiles { + /** + * + * @type {Array} + * @memberof AddUserToSourceConnectorRequestSelectedFiles + */ + pageIds?: Array; + /** + * + * @type {Array} + * @memberof AddUserToSourceConnectorRequestSelectedFiles + */ + databaseIds?: Array; +} + +/** + * Check if a given object implements the AddUserToSourceConnectorRequestSelectedFiles interface. + */ +export function instanceOfAddUserToSourceConnectorRequestSelectedFiles(value: object): value is AddUserToSourceConnectorRequestSelectedFiles { + return true; +} + +export function AddUserToSourceConnectorRequestSelectedFilesFromJSON(json: any): AddUserToSourceConnectorRequestSelectedFiles { + return AddUserToSourceConnectorRequestSelectedFilesFromJSONTyped(json, false); +} + +export function AddUserToSourceConnectorRequestSelectedFilesFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddUserToSourceConnectorRequestSelectedFiles { + if (json == null) { + return json; + } + return { + + 'pageIds': json['pageIds'] == null ? undefined : json['pageIds'], + 'databaseIds': json['databaseIds'] == null ? undefined : json['databaseIds'], + }; +} + +export function AddUserToSourceConnectorRequestSelectedFilesToJSON(json: any): AddUserToSourceConnectorRequestSelectedFiles { + return AddUserToSourceConnectorRequestSelectedFilesToJSONTyped(json, false); +} + +export function AddUserToSourceConnectorRequestSelectedFilesToJSONTyped(value?: AddUserToSourceConnectorRequestSelectedFiles | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'pageIds': value['pageIds'], + 'databaseIds': value['databaseIds'], + }; +} + diff --git a/src/ts/src/models/AddUserToSourceConnectorRequestSelectedFilesAnyOf.ts b/src/ts/src/models/AddUserToSourceConnectorRequestSelectedFilesAnyOf.ts new file mode 100644 index 0000000..a6541f6 --- /dev/null +++ b/src/ts/src/models/AddUserToSourceConnectorRequestSelectedFilesAnyOf.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 AddUserToSourceConnectorRequestSelectedFilesAnyOf + */ +export interface AddUserToSourceConnectorRequestSelectedFilesAnyOf { + /** + * + * @type {Array} + * @memberof AddUserToSourceConnectorRequestSelectedFilesAnyOf + */ + pageIds?: Array; + /** + * + * @type {Array} + * @memberof AddUserToSourceConnectorRequestSelectedFilesAnyOf + */ + databaseIds?: Array; +} + +/** + * Check if a given object implements the AddUserToSourceConnectorRequestSelectedFilesAnyOf interface. + */ +export function instanceOfAddUserToSourceConnectorRequestSelectedFilesAnyOf(value: object): value is AddUserToSourceConnectorRequestSelectedFilesAnyOf { + return true; +} + +export function AddUserToSourceConnectorRequestSelectedFilesAnyOfFromJSON(json: any): AddUserToSourceConnectorRequestSelectedFilesAnyOf { + return AddUserToSourceConnectorRequestSelectedFilesAnyOfFromJSONTyped(json, false); +} + +export function AddUserToSourceConnectorRequestSelectedFilesAnyOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddUserToSourceConnectorRequestSelectedFilesAnyOf { + if (json == null) { + return json; + } + return { + + 'pageIds': json['pageIds'] == null ? undefined : json['pageIds'], + 'databaseIds': json['databaseIds'] == null ? undefined : json['databaseIds'], + }; +} + +export function AddUserToSourceConnectorRequestSelectedFilesAnyOfToJSON(json: any): AddUserToSourceConnectorRequestSelectedFilesAnyOf { + return AddUserToSourceConnectorRequestSelectedFilesAnyOfToJSONTyped(json, false); +} + +export function AddUserToSourceConnectorRequestSelectedFilesAnyOfToJSONTyped(value?: AddUserToSourceConnectorRequestSelectedFilesAnyOf | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'pageIds': value['pageIds'], + 'databaseIds': value['databaseIds'], + }; +} + diff --git a/src/ts/src/models/AddUserToSourceConnectorRequestSelectedFilesAnyOfValue.ts b/src/ts/src/models/AddUserToSourceConnectorRequestSelectedFilesAnyOfValue.ts new file mode 100644 index 0000000..e8e633b --- /dev/null +++ b/src/ts/src/models/AddUserToSourceConnectorRequestSelectedFilesAnyOfValue.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 AddUserToSourceConnectorRequestSelectedFilesAnyOfValue + */ +export interface AddUserToSourceConnectorRequestSelectedFilesAnyOfValue { + /** + * + * @type {string} + * @memberof AddUserToSourceConnectorRequestSelectedFilesAnyOfValue + */ + name: string; + /** + * + * @type {string} + * @memberof AddUserToSourceConnectorRequestSelectedFilesAnyOfValue + */ + mimeType: string; +} + +/** + * Check if a given object implements the AddUserToSourceConnectorRequestSelectedFilesAnyOfValue interface. + */ +export function instanceOfAddUserToSourceConnectorRequestSelectedFilesAnyOfValue(value: object): value is AddUserToSourceConnectorRequestSelectedFilesAnyOfValue { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('mimeType' in value) || value['mimeType'] === undefined) return false; + return true; +} + +export function AddUserToSourceConnectorRequestSelectedFilesAnyOfValueFromJSON(json: any): AddUserToSourceConnectorRequestSelectedFilesAnyOfValue { + return AddUserToSourceConnectorRequestSelectedFilesAnyOfValueFromJSONTyped(json, false); +} + +export function AddUserToSourceConnectorRequestSelectedFilesAnyOfValueFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddUserToSourceConnectorRequestSelectedFilesAnyOfValue { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'mimeType': json['mimeType'], + }; +} + +export function AddUserToSourceConnectorRequestSelectedFilesAnyOfValueToJSON(json: any): AddUserToSourceConnectorRequestSelectedFilesAnyOfValue { + return AddUserToSourceConnectorRequestSelectedFilesAnyOfValueToJSONTyped(json, false); +} + +export function AddUserToSourceConnectorRequestSelectedFilesAnyOfValueToJSONTyped(value?: AddUserToSourceConnectorRequestSelectedFilesAnyOfValue | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'mimeType': value['mimeType'], + }; +} + diff --git a/src/ts/src/models/AddUserToSourceConnectorRequestSelectedFilesValue.ts b/src/ts/src/models/AddUserToSourceConnectorRequestSelectedFilesValue.ts deleted file mode 100644 index d9eecaa..0000000 --- a/src/ts/src/models/AddUserToSourceConnectorRequestSelectedFilesValue.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 AddUserToSourceConnectorRequestSelectedFilesValue - */ -export interface AddUserToSourceConnectorRequestSelectedFilesValue { - /** - * - * @type {string} - * @memberof AddUserToSourceConnectorRequestSelectedFilesValue - */ - name: string; - /** - * - * @type {string} - * @memberof AddUserToSourceConnectorRequestSelectedFilesValue - */ - mimeType: string; -} - -/** - * Check if a given object implements the AddUserToSourceConnectorRequestSelectedFilesValue interface. - */ -export function instanceOfAddUserToSourceConnectorRequestSelectedFilesValue(value: object): value is AddUserToSourceConnectorRequestSelectedFilesValue { - if (!('name' in value) || value['name'] === undefined) return false; - if (!('mimeType' in value) || value['mimeType'] === undefined) return false; - return true; -} - -export function AddUserToSourceConnectorRequestSelectedFilesValueFromJSON(json: any): AddUserToSourceConnectorRequestSelectedFilesValue { - return AddUserToSourceConnectorRequestSelectedFilesValueFromJSONTyped(json, false); -} - -export function AddUserToSourceConnectorRequestSelectedFilesValueFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddUserToSourceConnectorRequestSelectedFilesValue { - if (json == null) { - return json; - } - return { - - 'name': json['name'], - 'mimeType': json['mimeType'], - }; -} - -export function AddUserToSourceConnectorRequestSelectedFilesValueToJSON(json: any): AddUserToSourceConnectorRequestSelectedFilesValue { - return AddUserToSourceConnectorRequestSelectedFilesValueToJSONTyped(json, false); -} - -export function AddUserToSourceConnectorRequestSelectedFilesValueToJSONTyped(value?: AddUserToSourceConnectorRequestSelectedFilesValue | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'name': value['name'], - 'mimeType': value['mimeType'], - }; -} - diff --git a/src/ts/src/models/AwsS3.ts b/src/ts/src/models/AwsS3.ts new file mode 100644 index 0000000..7c15570 --- /dev/null +++ b/src/ts/src/models/AwsS3.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 { AWSS3Config } from './AWSS3Config'; +import { + AWSS3ConfigFromJSON, + AWSS3ConfigFromJSONTyped, + AWSS3ConfigToJSON, + AWSS3ConfigToJSONTyped, +} from './AWSS3Config'; + +/** + * + * @export + * @interface AwsS3 + */ +export interface AwsS3 { + /** + * Name of the connector + * @type {string} + * @memberof AwsS3 + */ + name: string; + /** + * Connector type (must be "AWS_S3") + * @type {string} + * @memberof AwsS3 + */ + type: AwsS3TypeEnum; + /** + * + * @type {AWSS3Config} + * @memberof AwsS3 + */ + config: AWSS3Config; +} + + +/** + * @export + */ +export const AwsS3TypeEnum = { + AwsS3: 'AWS_S3' +} as const; +export type AwsS3TypeEnum = typeof AwsS3TypeEnum[keyof typeof AwsS3TypeEnum]; + + +/** + * Check if a given object implements the AwsS3 interface. + */ +export function instanceOfAwsS3(value: object): value is AwsS3 { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('type' in value) || value['type'] === undefined) return false; + if (!('config' in value) || value['config'] === undefined) return false; + return true; +} + +export function AwsS3FromJSON(json: any): AwsS3 { + return AwsS3FromJSONTyped(json, false); +} + +export function AwsS3FromJSONTyped(json: any, ignoreDiscriminator: boolean): AwsS3 { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'type': json['type'], + 'config': AWSS3ConfigFromJSON(json['config']), + }; +} + +export function AwsS3ToJSON(json: any): AwsS3 { + return AwsS3ToJSONTyped(json, false); +} + +export function AwsS3ToJSONTyped(value?: AwsS3 | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'type': value['type'], + 'config': AWSS3ConfigToJSON(value['config']), + }; +} + diff --git a/src/ts/src/models/AwsS31.ts b/src/ts/src/models/AwsS31.ts new file mode 100644 index 0000000..16e44b0 --- /dev/null +++ b/src/ts/src/models/AwsS31.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 { AWSS3Config } from './AWSS3Config'; +import { + AWSS3ConfigFromJSON, + AWSS3ConfigFromJSONTyped, + AWSS3ConfigToJSON, + AWSS3ConfigToJSONTyped, +} from './AWSS3Config'; + +/** + * + * @export + * @interface AwsS31 + */ +export interface AwsS31 { + /** + * + * @type {AWSS3Config} + * @memberof AwsS31 + */ + config?: AWSS3Config; +} + +/** + * Check if a given object implements the AwsS31 interface. + */ +export function instanceOfAwsS31(value: object): value is AwsS31 { + return true; +} + +export function AwsS31FromJSON(json: any): AwsS31 { + return AwsS31FromJSONTyped(json, false); +} + +export function AwsS31FromJSONTyped(json: any, ignoreDiscriminator: boolean): AwsS31 { + if (json == null) { + return json; + } + return { + + 'config': json['config'] == null ? undefined : AWSS3ConfigFromJSON(json['config']), + }; +} + +export function AwsS31ToJSON(json: any): AwsS31 { + return AwsS31ToJSONTyped(json, false); +} + +export function AwsS31ToJSONTyped(value?: AwsS31 | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'config': AWSS3ConfigToJSON(value['config']), + }; +} + diff --git a/src/ts/src/models/AzureBlob.ts b/src/ts/src/models/AzureBlob.ts new file mode 100644 index 0000000..3379e02 --- /dev/null +++ b/src/ts/src/models/AzureBlob.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 { AZUREBLOBConfig } from './AZUREBLOBConfig'; +import { + AZUREBLOBConfigFromJSON, + AZUREBLOBConfigFromJSONTyped, + AZUREBLOBConfigToJSON, + AZUREBLOBConfigToJSONTyped, +} from './AZUREBLOBConfig'; + +/** + * + * @export + * @interface AzureBlob + */ +export interface AzureBlob { + /** + * Name of the connector + * @type {string} + * @memberof AzureBlob + */ + name: string; + /** + * Connector type (must be "AZURE_BLOB") + * @type {string} + * @memberof AzureBlob + */ + type: AzureBlobTypeEnum; + /** + * + * @type {AZUREBLOBConfig} + * @memberof AzureBlob + */ + config: AZUREBLOBConfig; +} + + +/** + * @export + */ +export const AzureBlobTypeEnum = { + AzureBlob: 'AZURE_BLOB' +} as const; +export type AzureBlobTypeEnum = typeof AzureBlobTypeEnum[keyof typeof AzureBlobTypeEnum]; + + +/** + * Check if a given object implements the AzureBlob interface. + */ +export function instanceOfAzureBlob(value: object): value is AzureBlob { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('type' in value) || value['type'] === undefined) return false; + if (!('config' in value) || value['config'] === undefined) return false; + return true; +} + +export function AzureBlobFromJSON(json: any): AzureBlob { + return AzureBlobFromJSONTyped(json, false); +} + +export function AzureBlobFromJSONTyped(json: any, ignoreDiscriminator: boolean): AzureBlob { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'type': json['type'], + 'config': AZUREBLOBConfigFromJSON(json['config']), + }; +} + +export function AzureBlobToJSON(json: any): AzureBlob { + return AzureBlobToJSONTyped(json, false); +} + +export function AzureBlobToJSONTyped(value?: AzureBlob | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'type': value['type'], + 'config': AZUREBLOBConfigToJSON(value['config']), + }; +} + diff --git a/src/ts/src/models/AzureBlob1.ts b/src/ts/src/models/AzureBlob1.ts new file mode 100644 index 0000000..18867b0 --- /dev/null +++ b/src/ts/src/models/AzureBlob1.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 { AZUREBLOBConfig } from './AZUREBLOBConfig'; +import { + AZUREBLOBConfigFromJSON, + AZUREBLOBConfigFromJSONTyped, + AZUREBLOBConfigToJSON, + AZUREBLOBConfigToJSONTyped, +} from './AZUREBLOBConfig'; + +/** + * + * @export + * @interface AzureBlob1 + */ +export interface AzureBlob1 { + /** + * + * @type {AZUREBLOBConfig} + * @memberof AzureBlob1 + */ + config?: AZUREBLOBConfig; +} + +/** + * Check if a given object implements the AzureBlob1 interface. + */ +export function instanceOfAzureBlob1(value: object): value is AzureBlob1 { + return true; +} + +export function AzureBlob1FromJSON(json: any): AzureBlob1 { + return AzureBlob1FromJSONTyped(json, false); +} + +export function AzureBlob1FromJSONTyped(json: any, ignoreDiscriminator: boolean): AzureBlob1 { + if (json == null) { + return json; + } + return { + + 'config': json['config'] == null ? undefined : AZUREBLOBConfigFromJSON(json['config']), + }; +} + +export function AzureBlob1ToJSON(json: any): AzureBlob1 { + return AzureBlob1ToJSONTyped(json, false); +} + +export function AzureBlob1ToJSONTyped(value?: AzureBlob1 | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'config': AZUREBLOBConfigToJSON(value['config']), + }; +} + diff --git a/src/ts/src/models/Azureaisearch.ts b/src/ts/src/models/Azureaisearch.ts new file mode 100644 index 0000000..4cef55d --- /dev/null +++ b/src/ts/src/models/Azureaisearch.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 { AZUREAISEARCHConfig } from './AZUREAISEARCHConfig'; +import { + AZUREAISEARCHConfigFromJSON, + AZUREAISEARCHConfigFromJSONTyped, + AZUREAISEARCHConfigToJSON, + AZUREAISEARCHConfigToJSONTyped, +} from './AZUREAISEARCHConfig'; + +/** + * + * @export + * @interface Azureaisearch + */ +export interface Azureaisearch { + /** + * Name of the connector + * @type {string} + * @memberof Azureaisearch + */ + name: string; + /** + * Connector type (must be "AZUREAISEARCH") + * @type {string} + * @memberof Azureaisearch + */ + type: AzureaisearchTypeEnum; + /** + * + * @type {AZUREAISEARCHConfig} + * @memberof Azureaisearch + */ + config: AZUREAISEARCHConfig; +} + + +/** + * @export + */ +export const AzureaisearchTypeEnum = { + Azureaisearch: 'AZUREAISEARCH' +} as const; +export type AzureaisearchTypeEnum = typeof AzureaisearchTypeEnum[keyof typeof AzureaisearchTypeEnum]; + + +/** + * Check if a given object implements the Azureaisearch interface. + */ +export function instanceOfAzureaisearch(value: object): value is Azureaisearch { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('type' in value) || value['type'] === undefined) return false; + if (!('config' in value) || value['config'] === undefined) return false; + return true; +} + +export function AzureaisearchFromJSON(json: any): Azureaisearch { + return AzureaisearchFromJSONTyped(json, false); +} + +export function AzureaisearchFromJSONTyped(json: any, ignoreDiscriminator: boolean): Azureaisearch { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'type': json['type'], + 'config': AZUREAISEARCHConfigFromJSON(json['config']), + }; +} + +export function AzureaisearchToJSON(json: any): Azureaisearch { + return AzureaisearchToJSONTyped(json, false); +} + +export function AzureaisearchToJSONTyped(value?: Azureaisearch | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'type': value['type'], + 'config': AZUREAISEARCHConfigToJSON(value['config']), + }; +} + diff --git a/src/ts/src/models/Azureaisearch1.ts b/src/ts/src/models/Azureaisearch1.ts new file mode 100644 index 0000000..8e6b4ef --- /dev/null +++ b/src/ts/src/models/Azureaisearch1.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 { AZUREAISEARCHConfig } from './AZUREAISEARCHConfig'; +import { + AZUREAISEARCHConfigFromJSON, + AZUREAISEARCHConfigFromJSONTyped, + AZUREAISEARCHConfigToJSON, + AZUREAISEARCHConfigToJSONTyped, +} from './AZUREAISEARCHConfig'; + +/** + * + * @export + * @interface Azureaisearch1 + */ +export interface Azureaisearch1 { + /** + * + * @type {AZUREAISEARCHConfig} + * @memberof Azureaisearch1 + */ + config?: AZUREAISEARCHConfig; +} + +/** + * Check if a given object implements the Azureaisearch1 interface. + */ +export function instanceOfAzureaisearch1(value: object): value is Azureaisearch1 { + return true; +} + +export function Azureaisearch1FromJSON(json: any): Azureaisearch1 { + return Azureaisearch1FromJSONTyped(json, false); +} + +export function Azureaisearch1FromJSONTyped(json: any, ignoreDiscriminator: boolean): Azureaisearch1 { + if (json == null) { + return json; + } + return { + + 'config': json['config'] == null ? undefined : AZUREAISEARCHConfigFromJSON(json['config']), + }; +} + +export function Azureaisearch1ToJSON(json: any): Azureaisearch1 { + return Azureaisearch1ToJSONTyped(json, false); +} + +export function Azureaisearch1ToJSONTyped(value?: Azureaisearch1 | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'config': AZUREAISEARCHConfigToJSON(value['config']), + }; +} + diff --git a/src/ts/src/models/BEDROCKAuthConfig.ts b/src/ts/src/models/BEDROCKAuthConfig.ts new file mode 100644 index 0000000..013bd26 --- /dev/null +++ b/src/ts/src/models/BEDROCKAuthConfig.ts @@ -0,0 +1,93 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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'; +/** + * Authentication configuration for Amazon Bedrock + * @export + * @interface BEDROCKAuthConfig + */ +export interface BEDROCKAuthConfig { + /** + * Name. Example: Enter a descriptive name for your Amazon Bedrock integration + * @type {string} + * @memberof BEDROCKAuthConfig + */ + name: string; + /** + * Access Key. Example: Enter your Amazon Bedrock Access Key + * @type {string} + * @memberof BEDROCKAuthConfig + */ + accessKey: string; + /** + * Secret Key. Example: Enter your Amazon Bedrock Secret Key + * @type {string} + * @memberof BEDROCKAuthConfig + */ + key: string; + /** + * Region. Example: Region Name + * @type {string} + * @memberof BEDROCKAuthConfig + */ + region: string; +} + +/** + * Check if a given object implements the BEDROCKAuthConfig interface. + */ +export function instanceOfBEDROCKAuthConfig(value: object): value is BEDROCKAuthConfig { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('accessKey' in value) || value['accessKey'] === undefined) return false; + if (!('key' in value) || value['key'] === undefined) return false; + if (!('region' in value) || value['region'] === undefined) return false; + return true; +} + +export function BEDROCKAuthConfigFromJSON(json: any): BEDROCKAuthConfig { + return BEDROCKAuthConfigFromJSONTyped(json, false); +} + +export function BEDROCKAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): BEDROCKAuthConfig { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'accessKey': json['access-key'], + 'key': json['key'], + 'region': json['region'], + }; +} + +export function BEDROCKAuthConfigToJSON(json: any): BEDROCKAuthConfig { + return BEDROCKAuthConfigToJSONTyped(json, false); +} + +export function BEDROCKAuthConfigToJSONTyped(value?: BEDROCKAuthConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'access-key': value['accessKey'], + 'key': value['key'], + 'region': value['region'], + }; +} + diff --git a/src/ts/src/models/Bedrock.ts b/src/ts/src/models/Bedrock.ts new file mode 100644 index 0000000..801dacd --- /dev/null +++ b/src/ts/src/models/Bedrock.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 { BEDROCKAuthConfig } from './BEDROCKAuthConfig'; +import { + BEDROCKAuthConfigFromJSON, + BEDROCKAuthConfigFromJSONTyped, + BEDROCKAuthConfigToJSON, + BEDROCKAuthConfigToJSONTyped, +} from './BEDROCKAuthConfig'; + +/** + * + * @export + * @interface Bedrock + */ +export interface Bedrock { + /** + * Name of the connector + * @type {string} + * @memberof Bedrock + */ + name: string; + /** + * Connector type (must be "BEDROCK") + * @type {string} + * @memberof Bedrock + */ + type: BedrockTypeEnum; + /** + * + * @type {BEDROCKAuthConfig} + * @memberof Bedrock + */ + config: BEDROCKAuthConfig; +} + + +/** + * @export + */ +export const BedrockTypeEnum = { + Bedrock: 'BEDROCK' +} as const; +export type BedrockTypeEnum = typeof BedrockTypeEnum[keyof typeof BedrockTypeEnum]; + + +/** + * Check if a given object implements the Bedrock interface. + */ +export function instanceOfBedrock(value: object): value is Bedrock { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('type' in value) || value['type'] === undefined) return false; + if (!('config' in value) || value['config'] === undefined) return false; + return true; +} + +export function BedrockFromJSON(json: any): Bedrock { + return BedrockFromJSONTyped(json, false); +} + +export function BedrockFromJSONTyped(json: any, ignoreDiscriminator: boolean): Bedrock { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'type': json['type'], + 'config': BEDROCKAuthConfigFromJSON(json['config']), + }; +} + +export function BedrockToJSON(json: any): Bedrock { + return BedrockToJSONTyped(json, false); +} + +export function BedrockToJSONTyped(value?: Bedrock | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'type': value['type'], + 'config': BEDROCKAuthConfigToJSON(value['config']), + }; +} + diff --git a/src/ts/src/models/Bedrock1.ts b/src/ts/src/models/Bedrock1.ts new file mode 100644 index 0000000..1736bcf --- /dev/null +++ b/src/ts/src/models/Bedrock1.ts @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 Bedrock1 + */ +export interface Bedrock1 { + /** + * Configuration updates + * @type {object} + * @memberof Bedrock1 + */ + config?: object; +} + +/** + * Check if a given object implements the Bedrock1 interface. + */ +export function instanceOfBedrock1(value: object): value is Bedrock1 { + return true; +} + +export function Bedrock1FromJSON(json: any): Bedrock1 { + return Bedrock1FromJSONTyped(json, false); +} + +export function Bedrock1FromJSONTyped(json: any, ignoreDiscriminator: boolean): Bedrock1 { + if (json == null) { + return json; + } + return { + + 'config': json['config'] == null ? undefined : json['config'], + }; +} + +export function Bedrock1ToJSON(json: any): Bedrock1 { + return Bedrock1ToJSONTyped(json, false); +} + +export function Bedrock1ToJSONTyped(value?: Bedrock1 | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'config': value['config'], + }; +} + diff --git a/src/ts/src/models/CAPELLAAuthConfig.ts b/src/ts/src/models/CAPELLAAuthConfig.ts new file mode 100644 index 0000000..ef1a7ed --- /dev/null +++ b/src/ts/src/models/CAPELLAAuthConfig.ts @@ -0,0 +1,93 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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'; +/** + * Authentication configuration for Couchbase Capella + * @export + * @interface CAPELLAAuthConfig + */ +export interface CAPELLAAuthConfig { + /** + * Name. Example: Enter a descriptive name for your Capella integration + * @type {string} + * @memberof CAPELLAAuthConfig + */ + name: string; + /** + * Cluster Access Name. Example: Enter your cluster access name + * @type {string} + * @memberof CAPELLAAuthConfig + */ + username: string; + /** + * Cluster Access Password. Example: Enter your cluster access password + * @type {string} + * @memberof CAPELLAAuthConfig + */ + password: string; + /** + * Connection String. Example: Enter your connection string + * @type {string} + * @memberof CAPELLAAuthConfig + */ + connectionString: string; +} + +/** + * Check if a given object implements the CAPELLAAuthConfig interface. + */ +export function instanceOfCAPELLAAuthConfig(value: object): value is CAPELLAAuthConfig { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('username' in value) || value['username'] === undefined) return false; + if (!('password' in value) || value['password'] === undefined) return false; + if (!('connectionString' in value) || value['connectionString'] === undefined) return false; + return true; +} + +export function CAPELLAAuthConfigFromJSON(json: any): CAPELLAAuthConfig { + return CAPELLAAuthConfigFromJSONTyped(json, false); +} + +export function CAPELLAAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): CAPELLAAuthConfig { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'username': json['username'], + 'password': json['password'], + 'connectionString': json['connection-string'], + }; +} + +export function CAPELLAAuthConfigToJSON(json: any): CAPELLAAuthConfig { + return CAPELLAAuthConfigToJSONTyped(json, false); +} + +export function CAPELLAAuthConfigToJSONTyped(value?: CAPELLAAuthConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'username': value['username'], + 'password': value['password'], + 'connection-string': value['connectionString'], + }; +} + diff --git a/src/ts/src/models/CAPELLAConfig.ts b/src/ts/src/models/CAPELLAConfig.ts new file mode 100644 index 0000000..acb7e27 --- /dev/null +++ b/src/ts/src/models/CAPELLAConfig.ts @@ -0,0 +1,93 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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'; +/** + * Configuration for Couchbase Capella connector + * @export + * @interface CAPELLAConfig + */ +export interface CAPELLAConfig { + /** + * Bucket Name. Example: Enter bucket name + * @type {string} + * @memberof CAPELLAConfig + */ + bucket: string; + /** + * Scope Name. Example: Enter scope name + * @type {string} + * @memberof CAPELLAConfig + */ + scope: string; + /** + * Collection Name. Example: Enter collection name + * @type {string} + * @memberof CAPELLAConfig + */ + collection: string; + /** + * Search Index Name. Example: Enter search index name + * @type {string} + * @memberof CAPELLAConfig + */ + index: string; +} + +/** + * Check if a given object implements the CAPELLAConfig interface. + */ +export function instanceOfCAPELLAConfig(value: object): value is CAPELLAConfig { + if (!('bucket' in value) || value['bucket'] === undefined) return false; + if (!('scope' in value) || value['scope'] === undefined) return false; + if (!('collection' in value) || value['collection'] === undefined) return false; + if (!('index' in value) || value['index'] === undefined) return false; + return true; +} + +export function CAPELLAConfigFromJSON(json: any): CAPELLAConfig { + return CAPELLAConfigFromJSONTyped(json, false); +} + +export function CAPELLAConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): CAPELLAConfig { + if (json == null) { + return json; + } + return { + + 'bucket': json['bucket'], + 'scope': json['scope'], + 'collection': json['collection'], + 'index': json['index'], + }; +} + +export function CAPELLAConfigToJSON(json: any): CAPELLAConfig { + return CAPELLAConfigToJSONTyped(json, false); +} + +export function CAPELLAConfigToJSONTyped(value?: CAPELLAConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'bucket': value['bucket'], + 'scope': value['scope'], + 'collection': value['collection'], + 'index': value['index'], + }; +} + diff --git a/src/ts/src/models/CONFLUENCEAuthConfig.ts b/src/ts/src/models/CONFLUENCEAuthConfig.ts new file mode 100644 index 0000000..fbc438c --- /dev/null +++ b/src/ts/src/models/CONFLUENCEAuthConfig.ts @@ -0,0 +1,93 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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'; +/** + * Authentication configuration for Confluence + * @export + * @interface CONFLUENCEAuthConfig + */ +export interface CONFLUENCEAuthConfig { + /** + * Name. Example: Enter a descriptive name + * @type {string} + * @memberof CONFLUENCEAuthConfig + */ + name: string; + /** + * Username. Example: Enter your Confluence username + * @type {string} + * @memberof CONFLUENCEAuthConfig + */ + username: string; + /** + * API Token. Example: Enter your Confluence API token + * @type {string} + * @memberof CONFLUENCEAuthConfig + */ + apiToken: string; + /** + * Domain. Example: Enter your Confluence domain (e.g. my-domain.atlassian.net or confluence..com) + * @type {string} + * @memberof CONFLUENCEAuthConfig + */ + domain: string; +} + +/** + * Check if a given object implements the CONFLUENCEAuthConfig interface. + */ +export function instanceOfCONFLUENCEAuthConfig(value: object): value is CONFLUENCEAuthConfig { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('username' in value) || value['username'] === undefined) return false; + if (!('apiToken' in value) || value['apiToken'] === undefined) return false; + if (!('domain' in value) || value['domain'] === undefined) return false; + return true; +} + +export function CONFLUENCEAuthConfigFromJSON(json: any): CONFLUENCEAuthConfig { + return CONFLUENCEAuthConfigFromJSONTyped(json, false); +} + +export function CONFLUENCEAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): CONFLUENCEAuthConfig { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'username': json['username'], + 'apiToken': json['api-token'], + 'domain': json['domain'], + }; +} + +export function CONFLUENCEAuthConfigToJSON(json: any): CONFLUENCEAuthConfig { + return CONFLUENCEAuthConfigToJSONTyped(json, false); +} + +export function CONFLUENCEAuthConfigToJSONTyped(value?: CONFLUENCEAuthConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'username': value['username'], + 'api-token': value['apiToken'], + 'domain': value['domain'], + }; +} + diff --git a/src/ts/src/models/CONFLUENCEConfig.ts b/src/ts/src/models/CONFLUENCEConfig.ts new file mode 100644 index 0000000..dd8e75a --- /dev/null +++ b/src/ts/src/models/CONFLUENCEConfig.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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'; +/** + * Configuration for Confluence connector + * @export + * @interface CONFLUENCEConfig + */ +export interface CONFLUENCEConfig { + /** + * Spaces. Example: Spaces to include (name, key or id) + * @type {string} + * @memberof CONFLUENCEConfig + */ + spaces: string; + /** + * Root Parents. Example: Enter root parent pages + * @type {string} + * @memberof CONFLUENCEConfig + */ + rootParents?: string; +} + +/** + * Check if a given object implements the CONFLUENCEConfig interface. + */ +export function instanceOfCONFLUENCEConfig(value: object): value is CONFLUENCEConfig { + if (!('spaces' in value) || value['spaces'] === undefined) return false; + return true; +} + +export function CONFLUENCEConfigFromJSON(json: any): CONFLUENCEConfig { + return CONFLUENCEConfigFromJSONTyped(json, false); +} + +export function CONFLUENCEConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): CONFLUENCEConfig { + if (json == null) { + return json; + } + return { + + 'spaces': json['spaces'], + 'rootParents': json['root-parents'] == null ? undefined : json['root-parents'], + }; +} + +export function CONFLUENCEConfigToJSON(json: any): CONFLUENCEConfig { + return CONFLUENCEConfigToJSONTyped(json, false); +} + +export function CONFLUENCEConfigToJSONTyped(value?: CONFLUENCEConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'spaces': value['spaces'], + 'root-parents': value['rootParents'], + }; +} + diff --git a/src/ts/src/models/Capella.ts b/src/ts/src/models/Capella.ts new file mode 100644 index 0000000..ff94a21 --- /dev/null +++ b/src/ts/src/models/Capella.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 { CAPELLAConfig } from './CAPELLAConfig'; +import { + CAPELLAConfigFromJSON, + CAPELLAConfigFromJSONTyped, + CAPELLAConfigToJSON, + CAPELLAConfigToJSONTyped, +} from './CAPELLAConfig'; + +/** + * + * @export + * @interface Capella + */ +export interface Capella { + /** + * Name of the connector + * @type {string} + * @memberof Capella + */ + name: string; + /** + * Connector type (must be "CAPELLA") + * @type {string} + * @memberof Capella + */ + type: CapellaTypeEnum; + /** + * + * @type {CAPELLAConfig} + * @memberof Capella + */ + config: CAPELLAConfig; +} + + +/** + * @export + */ +export const CapellaTypeEnum = { + Capella: 'CAPELLA' +} as const; +export type CapellaTypeEnum = typeof CapellaTypeEnum[keyof typeof CapellaTypeEnum]; + + +/** + * Check if a given object implements the Capella interface. + */ +export function instanceOfCapella(value: object): value is Capella { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('type' in value) || value['type'] === undefined) return false; + if (!('config' in value) || value['config'] === undefined) return false; + return true; +} + +export function CapellaFromJSON(json: any): Capella { + return CapellaFromJSONTyped(json, false); +} + +export function CapellaFromJSONTyped(json: any, ignoreDiscriminator: boolean): Capella { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'type': json['type'], + 'config': CAPELLAConfigFromJSON(json['config']), + }; +} + +export function CapellaToJSON(json: any): Capella { + return CapellaToJSONTyped(json, false); +} + +export function CapellaToJSONTyped(value?: Capella | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'type': value['type'], + 'config': CAPELLAConfigToJSON(value['config']), + }; +} + diff --git a/src/ts/src/models/Capella1.ts b/src/ts/src/models/Capella1.ts new file mode 100644 index 0000000..79b3f73 --- /dev/null +++ b/src/ts/src/models/Capella1.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 { CAPELLAConfig } from './CAPELLAConfig'; +import { + CAPELLAConfigFromJSON, + CAPELLAConfigFromJSONTyped, + CAPELLAConfigToJSON, + CAPELLAConfigToJSONTyped, +} from './CAPELLAConfig'; + +/** + * + * @export + * @interface Capella1 + */ +export interface Capella1 { + /** + * + * @type {CAPELLAConfig} + * @memberof Capella1 + */ + config?: CAPELLAConfig; +} + +/** + * Check if a given object implements the Capella1 interface. + */ +export function instanceOfCapella1(value: object): value is Capella1 { + return true; +} + +export function Capella1FromJSON(json: any): Capella1 { + return Capella1FromJSONTyped(json, false); +} + +export function Capella1FromJSONTyped(json: any, ignoreDiscriminator: boolean): Capella1 { + if (json == null) { + return json; + } + return { + + 'config': json['config'] == null ? undefined : CAPELLAConfigFromJSON(json['config']), + }; +} + +export function Capella1ToJSON(json: any): Capella1 { + return Capella1ToJSONTyped(json, false); +} + +export function Capella1ToJSONTyped(value?: Capella1 | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'config': CAPELLAConfigToJSON(value['config']), + }; +} + diff --git a/src/ts/src/models/Confluence.ts b/src/ts/src/models/Confluence.ts new file mode 100644 index 0000000..899f6da --- /dev/null +++ b/src/ts/src/models/Confluence.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 { CONFLUENCEConfig } from './CONFLUENCEConfig'; +import { + CONFLUENCEConfigFromJSON, + CONFLUENCEConfigFromJSONTyped, + CONFLUENCEConfigToJSON, + CONFLUENCEConfigToJSONTyped, +} from './CONFLUENCEConfig'; + +/** + * + * @export + * @interface Confluence + */ +export interface Confluence { + /** + * Name of the connector + * @type {string} + * @memberof Confluence + */ + name: string; + /** + * Connector type (must be "CONFLUENCE") + * @type {string} + * @memberof Confluence + */ + type: ConfluenceTypeEnum; + /** + * + * @type {CONFLUENCEConfig} + * @memberof Confluence + */ + config: CONFLUENCEConfig; +} + + +/** + * @export + */ +export const ConfluenceTypeEnum = { + Confluence: 'CONFLUENCE' +} as const; +export type ConfluenceTypeEnum = typeof ConfluenceTypeEnum[keyof typeof ConfluenceTypeEnum]; + + +/** + * Check if a given object implements the Confluence interface. + */ +export function instanceOfConfluence(value: object): value is Confluence { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('type' in value) || value['type'] === undefined) return false; + if (!('config' in value) || value['config'] === undefined) return false; + return true; +} + +export function ConfluenceFromJSON(json: any): Confluence { + return ConfluenceFromJSONTyped(json, false); +} + +export function ConfluenceFromJSONTyped(json: any, ignoreDiscriminator: boolean): Confluence { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'type': json['type'], + 'config': CONFLUENCEConfigFromJSON(json['config']), + }; +} + +export function ConfluenceToJSON(json: any): Confluence { + return ConfluenceToJSONTyped(json, false); +} + +export function ConfluenceToJSONTyped(value?: Confluence | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'type': value['type'], + 'config': CONFLUENCEConfigToJSON(value['config']), + }; +} + diff --git a/src/ts/src/models/Confluence1.ts b/src/ts/src/models/Confluence1.ts new file mode 100644 index 0000000..cae4e26 --- /dev/null +++ b/src/ts/src/models/Confluence1.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 { CONFLUENCEConfig } from './CONFLUENCEConfig'; +import { + CONFLUENCEConfigFromJSON, + CONFLUENCEConfigFromJSONTyped, + CONFLUENCEConfigToJSON, + CONFLUENCEConfigToJSONTyped, +} from './CONFLUENCEConfig'; + +/** + * + * @export + * @interface Confluence1 + */ +export interface Confluence1 { + /** + * + * @type {CONFLUENCEConfig} + * @memberof Confluence1 + */ + config?: CONFLUENCEConfig; +} + +/** + * Check if a given object implements the Confluence1 interface. + */ +export function instanceOfConfluence1(value: object): value is Confluence1 { + return true; +} + +export function Confluence1FromJSON(json: any): Confluence1 { + return Confluence1FromJSONTyped(json, false); +} + +export function Confluence1FromJSONTyped(json: any, ignoreDiscriminator: boolean): Confluence1 { + if (json == null) { + return json; + } + return { + + 'config': json['config'] == null ? undefined : CONFLUENCEConfigFromJSON(json['config']), + }; +} + +export function Confluence1ToJSON(json: any): Confluence1 { + return Confluence1ToJSONTyped(json, false); +} + +export function Confluence1ToJSONTyped(value?: Confluence1 | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'config': CONFLUENCEConfigToJSON(value['config']), + }; +} + diff --git a/src/ts/src/models/CreateAIPlatformConnector.ts b/src/ts/src/models/CreateAIPlatformConnector.ts deleted file mode 100644 index 49d2b07..0000000 --- a/src/ts/src/models/CreateAIPlatformConnector.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'; -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/CreateAIPlatformConnectorRequest.ts b/src/ts/src/models/CreateAIPlatformConnectorRequest.ts new file mode 100644 index 0000000..7318605 --- /dev/null +++ b/src/ts/src/models/CreateAIPlatformConnectorRequest.ts @@ -0,0 +1,78 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 type { Bedrock } from './Bedrock'; +import { + instanceOfBedrock, + BedrockFromJSON, + BedrockFromJSONTyped, + BedrockToJSON, +} from './Bedrock'; +import type { Openai } from './Openai'; +import { + instanceOfOpenai, + OpenaiFromJSON, + OpenaiFromJSONTyped, + OpenaiToJSON, +} from './Openai'; +import type { Vertex } from './Vertex'; +import { + instanceOfVertex, + VertexFromJSON, + VertexFromJSONTyped, + VertexToJSON, +} from './Vertex'; +import type { Voyage } from './Voyage'; +import { + instanceOfVoyage, + VoyageFromJSON, + VoyageFromJSONTyped, + VoyageToJSON, +} from './Voyage'; + +/** + * @type CreateAIPlatformConnectorRequest + * + * @export + */ +export type CreateAIPlatformConnectorRequest = Bedrock | Openai | Vertex | Voyage; + +export function CreateAIPlatformConnectorRequestFromJSON(json: any): CreateAIPlatformConnectorRequest { + return CreateAIPlatformConnectorRequestFromJSONTyped(json, false); +} + +export function CreateAIPlatformConnectorRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateAIPlatformConnectorRequest { + if (json == null) { + return json; + } + switch (json['type']) { + default: + return json; + } +} + +export function CreateAIPlatformConnectorRequestToJSON(json: any): any { + return CreateAIPlatformConnectorRequestToJSONTyped(json, false); +} + +export function CreateAIPlatformConnectorRequestToJSONTyped(value?: CreateAIPlatformConnectorRequest | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + switch (value['type']) { + default: + return value; + } +} + diff --git a/src/ts/src/models/CreateAIPlatformConnectorResponse.ts b/src/ts/src/models/CreateAIPlatformConnectorResponse.ts index 22db0f4..a3d638b 100644 --- a/src/ts/src/models/CreateAIPlatformConnectorResponse.ts +++ b/src/ts/src/models/CreateAIPlatformConnectorResponse.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * @@ -35,10 +35,10 @@ export interface CreateAIPlatformConnectorResponse { message: string; /** * - * @type {Array} + * @type {CreatedAIPlatformConnector} * @memberof CreateAIPlatformConnectorResponse */ - connectors: Array; + connector: CreatedAIPlatformConnector; } /** @@ -46,7 +46,7 @@ export interface CreateAIPlatformConnectorResponse { */ export function instanceOfCreateAIPlatformConnectorResponse(value: object): value is CreateAIPlatformConnectorResponse { if (!('message' in value) || value['message'] === undefined) return false; - if (!('connectors' in value) || value['connectors'] === undefined) return false; + if (!('connector' in value) || value['connector'] === undefined) return false; return true; } @@ -61,7 +61,7 @@ export function CreateAIPlatformConnectorResponseFromJSONTyped(json: any, ignore return { 'message': json['message'], - 'connectors': ((json['connectors'] as Array).map(CreatedAIPlatformConnectorFromJSON)), + 'connector': CreatedAIPlatformConnectorFromJSON(json['connector']), }; } @@ -77,7 +77,7 @@ export function CreateAIPlatformConnectorResponseToJSONTyped(value?: CreateAIPla return { 'message': value['message'], - 'connectors': ((value['connectors'] as Array).map(CreatedAIPlatformConnectorToJSON)), + 'connector': CreatedAIPlatformConnectorToJSON(value['connector']), }; } diff --git a/src/ts/src/models/CreateDestinationConnector.ts b/src/ts/src/models/CreateDestinationConnector.ts deleted file mode 100644 index 70fb426..0000000 --- a/src/ts/src/models/CreateDestinationConnector.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'; -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/CreateDestinationConnectorRequest.ts b/src/ts/src/models/CreateDestinationConnectorRequest.ts new file mode 100644 index 0000000..7b4ad6c --- /dev/null +++ b/src/ts/src/models/CreateDestinationConnectorRequest.ts @@ -0,0 +1,134 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 type { Azureaisearch } from './Azureaisearch'; +import { + instanceOfAzureaisearch, + AzureaisearchFromJSON, + AzureaisearchFromJSONTyped, + AzureaisearchToJSON, +} from './Azureaisearch'; +import type { Capella } from './Capella'; +import { + instanceOfCapella, + CapellaFromJSON, + CapellaFromJSONTyped, + CapellaToJSON, +} from './Capella'; +import type { Datastax } from './Datastax'; +import { + instanceOfDatastax, + DatastaxFromJSON, + DatastaxFromJSONTyped, + DatastaxToJSON, +} from './Datastax'; +import type { Elastic } from './Elastic'; +import { + instanceOfElastic, + ElasticFromJSON, + ElasticFromJSONTyped, + ElasticToJSON, +} from './Elastic'; +import type { Milvus } from './Milvus'; +import { + instanceOfMilvus, + MilvusFromJSON, + MilvusFromJSONTyped, + MilvusToJSON, +} from './Milvus'; +import type { Pinecone } from './Pinecone'; +import { + instanceOfPinecone, + PineconeFromJSON, + PineconeFromJSONTyped, + PineconeToJSON, +} from './Pinecone'; +import type { Postgresql } from './Postgresql'; +import { + instanceOfPostgresql, + PostgresqlFromJSON, + PostgresqlFromJSONTyped, + PostgresqlToJSON, +} from './Postgresql'; +import type { Qdrant } from './Qdrant'; +import { + instanceOfQdrant, + QdrantFromJSON, + QdrantFromJSONTyped, + QdrantToJSON, +} from './Qdrant'; +import type { Singlestore } from './Singlestore'; +import { + instanceOfSinglestore, + SinglestoreFromJSON, + SinglestoreFromJSONTyped, + SinglestoreToJSON, +} from './Singlestore'; +import type { Supabase } from './Supabase'; +import { + instanceOfSupabase, + SupabaseFromJSON, + SupabaseFromJSONTyped, + SupabaseToJSON, +} from './Supabase'; +import type { Turbopuffer } from './Turbopuffer'; +import { + instanceOfTurbopuffer, + TurbopufferFromJSON, + TurbopufferFromJSONTyped, + TurbopufferToJSON, +} from './Turbopuffer'; +import type { Weaviate } from './Weaviate'; +import { + instanceOfWeaviate, + WeaviateFromJSON, + WeaviateFromJSONTyped, + WeaviateToJSON, +} from './Weaviate'; + +/** + * @type CreateDestinationConnectorRequest + * + * @export + */ +export type CreateDestinationConnectorRequest = Azureaisearch | Capella | Datastax | Elastic | Milvus | Pinecone | Postgresql | Qdrant | Singlestore | Supabase | Turbopuffer | Weaviate; + +export function CreateDestinationConnectorRequestFromJSON(json: any): CreateDestinationConnectorRequest { + return CreateDestinationConnectorRequestFromJSONTyped(json, false); +} + +export function CreateDestinationConnectorRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateDestinationConnectorRequest { + if (json == null) { + return json; + } + switch (json['type']) { + default: + return json; + } +} + +export function CreateDestinationConnectorRequestToJSON(json: any): any { + return CreateDestinationConnectorRequestToJSONTyped(json, false); +} + +export function CreateDestinationConnectorRequestToJSONTyped(value?: CreateDestinationConnectorRequest | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + switch (value['type']) { + default: + return value; + } +} + diff --git a/src/ts/src/models/CreateDestinationConnectorResponse.ts b/src/ts/src/models/CreateDestinationConnectorResponse.ts index 6e734bc..7cb9026 100644 --- a/src/ts/src/models/CreateDestinationConnectorResponse.ts +++ b/src/ts/src/models/CreateDestinationConnectorResponse.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * @@ -35,10 +35,10 @@ export interface CreateDestinationConnectorResponse { message: string; /** * - * @type {Array} + * @type {CreatedDestinationConnector} * @memberof CreateDestinationConnectorResponse */ - connectors: Array; + connector: CreatedDestinationConnector; } /** @@ -46,7 +46,7 @@ export interface CreateDestinationConnectorResponse { */ export function instanceOfCreateDestinationConnectorResponse(value: object): value is CreateDestinationConnectorResponse { if (!('message' in value) || value['message'] === undefined) return false; - if (!('connectors' in value) || value['connectors'] === undefined) return false; + if (!('connector' in value) || value['connector'] === undefined) return false; return true; } @@ -61,7 +61,7 @@ export function CreateDestinationConnectorResponseFromJSONTyped(json: any, ignor return { 'message': json['message'], - 'connectors': ((json['connectors'] as Array).map(CreatedDestinationConnectorFromJSON)), + 'connector': CreatedDestinationConnectorFromJSON(json['connector']), }; } @@ -77,7 +77,7 @@ export function CreateDestinationConnectorResponseToJSONTyped(value?: CreateDest return { 'message': value['message'], - 'connectors': ((value['connectors'] as Array).map(CreatedDestinationConnectorToJSON)), + 'connector': CreatedDestinationConnectorToJSON(value['connector']), }; } diff --git a/src/ts/src/models/CreatePipelineResponse.ts b/src/ts/src/models/CreatePipelineResponse.ts index 60f8b99..03ac558 100644 --- a/src/ts/src/models/CreatePipelineResponse.ts +++ b/src/ts/src/models/CreatePipelineResponse.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * diff --git a/src/ts/src/models/CreatePipelineResponseData.ts b/src/ts/src/models/CreatePipelineResponseData.ts index a329f30..872b1eb 100644 --- a/src/ts/src/models/CreatePipelineResponseData.ts +++ b/src/ts/src/models/CreatePipelineResponseData.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * diff --git a/src/ts/src/models/CreateSourceConnector.ts b/src/ts/src/models/CreateSourceConnector.ts deleted file mode 100644 index fba4457..0000000 --- a/src/ts/src/models/CreateSourceConnector.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'; -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/CreateSourceConnectorRequest.ts b/src/ts/src/models/CreateSourceConnectorRequest.ts new file mode 100644 index 0000000..afa77f3 --- /dev/null +++ b/src/ts/src/models/CreateSourceConnectorRequest.ts @@ -0,0 +1,141 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 type { AwsS3 } from './AwsS3'; +import { + instanceOfAwsS3, + AwsS3FromJSON, + AwsS3FromJSONTyped, + AwsS3ToJSON, +} from './AwsS3'; +import type { AzureBlob } from './AzureBlob'; +import { + instanceOfAzureBlob, + AzureBlobFromJSON, + AzureBlobFromJSONTyped, + AzureBlobToJSON, +} from './AzureBlob'; +import type { Confluence } from './Confluence'; +import { + instanceOfConfluence, + ConfluenceFromJSON, + ConfluenceFromJSONTyped, + ConfluenceToJSON, +} from './Confluence'; +import type { Discord } from './Discord'; +import { + instanceOfDiscord, + DiscordFromJSON, + DiscordFromJSONTyped, + DiscordToJSON, +} from './Discord'; +import type { FileUpload } from './FileUpload'; +import { + instanceOfFileUpload, + FileUploadFromJSON, + FileUploadFromJSONTyped, + FileUploadToJSON, +} from './FileUpload'; +import type { Firecrawl } from './Firecrawl'; +import { + instanceOfFirecrawl, + FirecrawlFromJSON, + FirecrawlFromJSONTyped, + FirecrawlToJSON, +} from './Firecrawl'; +import type { Fireflies } from './Fireflies'; +import { + instanceOfFireflies, + FirefliesFromJSON, + FirefliesFromJSONTyped, + FirefliesToJSON, +} from './Fireflies'; +import type { Gcs } from './Gcs'; +import { + instanceOfGcs, + GcsFromJSON, + GcsFromJSONTyped, + GcsToJSON, +} from './Gcs'; +import type { Github } from './Github'; +import { + instanceOfGithub, + GithubFromJSON, + GithubFromJSONTyped, + GithubToJSON, +} from './Github'; +import type { GoogleDrive } from './GoogleDrive'; +import { + instanceOfGoogleDrive, + GoogleDriveFromJSON, + GoogleDriveFromJSONTyped, + GoogleDriveToJSON, +} from './GoogleDrive'; +import type { OneDrive } from './OneDrive'; +import { + instanceOfOneDrive, + OneDriveFromJSON, + OneDriveFromJSONTyped, + OneDriveToJSON, +} from './OneDrive'; +import type { Sharepoint } from './Sharepoint'; +import { + instanceOfSharepoint, + SharepointFromJSON, + SharepointFromJSONTyped, + SharepointToJSON, +} from './Sharepoint'; +import type { WebCrawler } from './WebCrawler'; +import { + instanceOfWebCrawler, + WebCrawlerFromJSON, + WebCrawlerFromJSONTyped, + WebCrawlerToJSON, +} from './WebCrawler'; + +/** + * @type CreateSourceConnectorRequest + * + * @export + */ +export type CreateSourceConnectorRequest = AwsS3 | AzureBlob | Confluence | Discord | FileUpload | Firecrawl | Fireflies | Gcs | Github | GoogleDrive | OneDrive | Sharepoint | WebCrawler; + +export function CreateSourceConnectorRequestFromJSON(json: any): CreateSourceConnectorRequest { + return CreateSourceConnectorRequestFromJSONTyped(json, false); +} + +export function CreateSourceConnectorRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateSourceConnectorRequest { + if (json == null) { + return json; + } + switch (json['type']) { + default: + return json; + } +} + +export function CreateSourceConnectorRequestToJSON(json: any): any { + return CreateSourceConnectorRequestToJSONTyped(json, false); +} + +export function CreateSourceConnectorRequestToJSONTyped(value?: CreateSourceConnectorRequest | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + switch (value['type']) { + default: + return value; + } +} + diff --git a/src/ts/src/models/CreateSourceConnectorResponse.ts b/src/ts/src/models/CreateSourceConnectorResponse.ts index d542927..56252ba 100644 --- a/src/ts/src/models/CreateSourceConnectorResponse.ts +++ b/src/ts/src/models/CreateSourceConnectorResponse.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * @@ -35,10 +35,10 @@ export interface CreateSourceConnectorResponse { message: string; /** * - * @type {Array} + * @type {CreatedSourceConnector} * @memberof CreateSourceConnectorResponse */ - connectors: Array; + connector: CreatedSourceConnector; } /** @@ -46,7 +46,7 @@ export interface CreateSourceConnectorResponse { */ export function instanceOfCreateSourceConnectorResponse(value: object): value is CreateSourceConnectorResponse { if (!('message' in value) || value['message'] === undefined) return false; - if (!('connectors' in value) || value['connectors'] === undefined) return false; + if (!('connector' in value) || value['connector'] === undefined) return false; return true; } @@ -61,7 +61,7 @@ export function CreateSourceConnectorResponseFromJSONTyped(json: any, ignoreDisc return { 'message': json['message'], - 'connectors': ((json['connectors'] as Array).map(CreatedSourceConnectorFromJSON)), + 'connector': CreatedSourceConnectorFromJSON(json['connector']), }; } @@ -77,7 +77,7 @@ export function CreateSourceConnectorResponseToJSONTyped(value?: CreateSourceCon return { 'message': value['message'], - 'connectors': ((value['connectors'] as Array).map(CreatedSourceConnectorToJSON)), + 'connector': CreatedSourceConnectorToJSON(value['connector']), }; } diff --git a/src/ts/src/models/CreatedAIPlatformConnector.ts b/src/ts/src/models/CreatedAIPlatformConnector.ts index edb50ac..7e2e90c 100644 --- a/src/ts/src/models/CreatedAIPlatformConnector.ts +++ b/src/ts/src/models/CreatedAIPlatformConnector.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * diff --git a/src/ts/src/models/CreatedDestinationConnector.ts b/src/ts/src/models/CreatedDestinationConnector.ts index 4e0bbcc..5fe8432 100644 --- a/src/ts/src/models/CreatedDestinationConnector.ts +++ b/src/ts/src/models/CreatedDestinationConnector.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * diff --git a/src/ts/src/models/CreatedSourceConnector.ts b/src/ts/src/models/CreatedSourceConnector.ts index 95df810..4de981a 100644 --- a/src/ts/src/models/CreatedSourceConnector.ts +++ b/src/ts/src/models/CreatedSourceConnector.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * diff --git a/src/ts/src/models/DATASTAXAuthConfig.ts b/src/ts/src/models/DATASTAXAuthConfig.ts new file mode 100644 index 0000000..396cb62 --- /dev/null +++ b/src/ts/src/models/DATASTAXAuthConfig.ts @@ -0,0 +1,84 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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'; +/** + * Authentication configuration for DataStax Astra + * @export + * @interface DATASTAXAuthConfig + */ +export interface DATASTAXAuthConfig { + /** + * Name. Example: Enter a descriptive name for your DataStax integration + * @type {string} + * @memberof DATASTAXAuthConfig + */ + name: string; + /** + * API Endpoint. Example: Enter your API endpoint + * @type {string} + * @memberof DATASTAXAuthConfig + */ + endpointSecret: string; + /** + * Application Token. Example: Enter your application token + * @type {string} + * @memberof DATASTAXAuthConfig + */ + token: string; +} + +/** + * Check if a given object implements the DATASTAXAuthConfig interface. + */ +export function instanceOfDATASTAXAuthConfig(value: object): value is DATASTAXAuthConfig { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('endpointSecret' in value) || value['endpointSecret'] === undefined) return false; + if (!('token' in value) || value['token'] === undefined) return false; + return true; +} + +export function DATASTAXAuthConfigFromJSON(json: any): DATASTAXAuthConfig { + return DATASTAXAuthConfigFromJSONTyped(json, false); +} + +export function DATASTAXAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): DATASTAXAuthConfig { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'endpointSecret': json['endpoint_secret'], + 'token': json['token'], + }; +} + +export function DATASTAXAuthConfigToJSON(json: any): DATASTAXAuthConfig { + return DATASTAXAuthConfigToJSONTyped(json, false); +} + +export function DATASTAXAuthConfigToJSONTyped(value?: DATASTAXAuthConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'endpoint_secret': value['endpointSecret'], + 'token': value['token'], + }; +} + diff --git a/src/ts/src/models/DATASTAXConfig.ts b/src/ts/src/models/DATASTAXConfig.ts new file mode 100644 index 0000000..81d1e9e --- /dev/null +++ b/src/ts/src/models/DATASTAXConfig.ts @@ -0,0 +1,66 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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'; +/** + * Configuration for DataStax Astra connector + * @export + * @interface DATASTAXConfig + */ +export interface DATASTAXConfig { + /** + * Collection Name. Example: Enter collection name + * @type {string} + * @memberof DATASTAXConfig + */ + collection: string; +} + +/** + * Check if a given object implements the DATASTAXConfig interface. + */ +export function instanceOfDATASTAXConfig(value: object): value is DATASTAXConfig { + if (!('collection' in value) || value['collection'] === undefined) return false; + return true; +} + +export function DATASTAXConfigFromJSON(json: any): DATASTAXConfig { + return DATASTAXConfigFromJSONTyped(json, false); +} + +export function DATASTAXConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): DATASTAXConfig { + if (json == null) { + return json; + } + return { + + 'collection': json['collection'], + }; +} + +export function DATASTAXConfigToJSON(json: any): DATASTAXConfig { + return DATASTAXConfigToJSONTyped(json, false); +} + +export function DATASTAXConfigToJSONTyped(value?: DATASTAXConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'collection': value['collection'], + }; +} + diff --git a/src/ts/src/models/DISCORDAuthConfig.ts b/src/ts/src/models/DISCORDAuthConfig.ts new file mode 100644 index 0000000..fe4939e --- /dev/null +++ b/src/ts/src/models/DISCORDAuthConfig.ts @@ -0,0 +1,93 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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'; +/** + * Authentication configuration for Discord + * @export + * @interface DISCORDAuthConfig + */ +export interface DISCORDAuthConfig { + /** + * Name. Example: Enter a descriptive name + * @type {string} + * @memberof DISCORDAuthConfig + */ + name: string; + /** + * Server ID. Example: Enter Server ID + * @type {string} + * @memberof DISCORDAuthConfig + */ + serverId: string; + /** + * Bot token. Example: Enter Token + * @type {string} + * @memberof DISCORDAuthConfig + */ + botToken: string; + /** + * Channel ID. Example: Enter channel ID + * @type {string} + * @memberof DISCORDAuthConfig + */ + channelIds: string; +} + +/** + * Check if a given object implements the DISCORDAuthConfig interface. + */ +export function instanceOfDISCORDAuthConfig(value: object): value is DISCORDAuthConfig { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('serverId' in value) || value['serverId'] === undefined) return false; + if (!('botToken' in value) || value['botToken'] === undefined) return false; + if (!('channelIds' in value) || value['channelIds'] === undefined) return false; + return true; +} + +export function DISCORDAuthConfigFromJSON(json: any): DISCORDAuthConfig { + return DISCORDAuthConfigFromJSONTyped(json, false); +} + +export function DISCORDAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): DISCORDAuthConfig { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'serverId': json['server-id'], + 'botToken': json['bot-token'], + 'channelIds': json['channel-ids'], + }; +} + +export function DISCORDAuthConfigToJSON(json: any): DISCORDAuthConfig { + return DISCORDAuthConfigToJSONTyped(json, false); +} + +export function DISCORDAuthConfigToJSONTyped(value?: DISCORDAuthConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'server-id': value['serverId'], + 'bot-token': value['botToken'], + 'channel-ids': value['channelIds'], + }; +} + diff --git a/src/ts/src/models/DISCORDConfig.ts b/src/ts/src/models/DISCORDConfig.ts new file mode 100644 index 0000000..7057b41 --- /dev/null +++ b/src/ts/src/models/DISCORDConfig.ts @@ -0,0 +1,142 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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'; +/** + * Configuration for Discord connector + * @export + * @interface DISCORDConfig + */ +export interface DISCORDConfig { + /** + * Emoji Filter. Example: Enter custom emoji filter name + * @type {string} + * @memberof DISCORDConfig + */ + emoji?: string; + /** + * Author Filter. Example: Enter author name + * @type {string} + * @memberof DISCORDConfig + */ + author?: string; + /** + * Ignore Author Filter. Example: Enter ignore author name + * @type {string} + * @memberof DISCORDConfig + */ + ignoreAuthor?: string; + /** + * Limit. Example: Enter limit + * @type {number} + * @memberof DISCORDConfig + */ + limit?: number; + /** + * Thread Message Inclusion + * @type {string} + * @memberof DISCORDConfig + */ + threadMessageInclusion?: DISCORDConfigThreadMessageInclusionEnum; + /** + * Filter Logic + * @type {string} + * @memberof DISCORDConfig + */ + filterLogic?: DISCORDConfigFilterLogicEnum; + /** + * Thread Message Mode + * @type {string} + * @memberof DISCORDConfig + */ + threadMessageMode?: DISCORDConfigThreadMessageModeEnum; +} + + +/** + * @export + */ +export const DISCORDConfigThreadMessageInclusionEnum = { + All: 'ALL', + Filter: 'FILTER' +} as const; +export type DISCORDConfigThreadMessageInclusionEnum = typeof DISCORDConfigThreadMessageInclusionEnum[keyof typeof DISCORDConfigThreadMessageInclusionEnum]; + +/** + * @export + */ +export const DISCORDConfigFilterLogicEnum = { + And: 'AND', + Or: 'OR' +} as const; +export type DISCORDConfigFilterLogicEnum = typeof DISCORDConfigFilterLogicEnum[keyof typeof DISCORDConfigFilterLogicEnum]; + +/** + * @export + */ +export const DISCORDConfigThreadMessageModeEnum = { + Concatenate: 'CONCATENATE', + Single: 'SINGLE' +} as const; +export type DISCORDConfigThreadMessageModeEnum = typeof DISCORDConfigThreadMessageModeEnum[keyof typeof DISCORDConfigThreadMessageModeEnum]; + + +/** + * Check if a given object implements the DISCORDConfig interface. + */ +export function instanceOfDISCORDConfig(value: object): value is DISCORDConfig { + return true; +} + +export function DISCORDConfigFromJSON(json: any): DISCORDConfig { + return DISCORDConfigFromJSONTyped(json, false); +} + +export function DISCORDConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): DISCORDConfig { + if (json == null) { + return json; + } + return { + + 'emoji': json['emoji'] == null ? undefined : json['emoji'], + 'author': json['author'] == null ? undefined : json['author'], + 'ignoreAuthor': json['ignore-author'] == null ? undefined : json['ignore-author'], + 'limit': json['limit'] == null ? undefined : json['limit'], + 'threadMessageInclusion': json['thread-message-inclusion'] == null ? undefined : json['thread-message-inclusion'], + 'filterLogic': json['filter-logic'] == null ? undefined : json['filter-logic'], + 'threadMessageMode': json['thread-message-mode'] == null ? undefined : json['thread-message-mode'], + }; +} + +export function DISCORDConfigToJSON(json: any): DISCORDConfig { + return DISCORDConfigToJSONTyped(json, false); +} + +export function DISCORDConfigToJSONTyped(value?: DISCORDConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'emoji': value['emoji'], + 'author': value['author'], + 'ignore-author': value['ignoreAuthor'], + 'limit': value['limit'], + 'thread-message-inclusion': value['threadMessageInclusion'], + 'filter-logic': value['filterLogic'], + 'thread-message-mode': value['threadMessageMode'], + }; +} + diff --git a/src/ts/src/models/DROPBOXAuthConfig.ts b/src/ts/src/models/DROPBOXAuthConfig.ts new file mode 100644 index 0000000..7bd7a58 --- /dev/null +++ b/src/ts/src/models/DROPBOXAuthConfig.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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'; +/** + * Authentication configuration for Dropbox (Legacy) + * @export + * @interface DROPBOXAuthConfig + */ +export interface DROPBOXAuthConfig { + /** + * Name. Example: Enter a descriptive name + * @type {string} + * @memberof DROPBOXAuthConfig + */ + name: string; + /** + * Connect Dropbox to Vectorize. Example: Authorize + * @type {string} + * @memberof DROPBOXAuthConfig + */ + refreshToken: string; +} + +/** + * Check if a given object implements the DROPBOXAuthConfig interface. + */ +export function instanceOfDROPBOXAuthConfig(value: object): value is DROPBOXAuthConfig { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('refreshToken' in value) || value['refreshToken'] === undefined) return false; + return true; +} + +export function DROPBOXAuthConfigFromJSON(json: any): DROPBOXAuthConfig { + return DROPBOXAuthConfigFromJSONTyped(json, false); +} + +export function DROPBOXAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): DROPBOXAuthConfig { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'refreshToken': json['refresh-token'], + }; +} + +export function DROPBOXAuthConfigToJSON(json: any): DROPBOXAuthConfig { + return DROPBOXAuthConfigToJSONTyped(json, false); +} + +export function DROPBOXAuthConfigToJSONTyped(value?: DROPBOXAuthConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'refresh-token': value['refreshToken'], + }; +} + diff --git a/src/ts/src/models/DROPBOXConfig.ts b/src/ts/src/models/DROPBOXConfig.ts new file mode 100644 index 0000000..d4e7c20 --- /dev/null +++ b/src/ts/src/models/DROPBOXConfig.ts @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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'; +/** + * Configuration for Dropbox (Legacy) connector + * @export + * @interface DROPBOXConfig + */ +export interface DROPBOXConfig { + /** + * Read from these folders (optional). Example: Enter Path: /exampleFolder/subFolder + * @type {string} + * @memberof DROPBOXConfig + */ + pathPrefix?: string; +} + +/** + * Check if a given object implements the DROPBOXConfig interface. + */ +export function instanceOfDROPBOXConfig(value: object): value is DROPBOXConfig { + return true; +} + +export function DROPBOXConfigFromJSON(json: any): DROPBOXConfig { + return DROPBOXConfigFromJSONTyped(json, false); +} + +export function DROPBOXConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): DROPBOXConfig { + if (json == null) { + return json; + } + return { + + 'pathPrefix': json['path-prefix'] == null ? undefined : json['path-prefix'], + }; +} + +export function DROPBOXConfigToJSON(json: any): DROPBOXConfig { + return DROPBOXConfigToJSONTyped(json, false); +} + +export function DROPBOXConfigToJSONTyped(value?: DROPBOXConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'path-prefix': value['pathPrefix'], + }; +} + diff --git a/src/ts/src/models/DROPBOXOAUTHAuthConfig.ts b/src/ts/src/models/DROPBOXOAUTHAuthConfig.ts new file mode 100644 index 0000000..85605d2 --- /dev/null +++ b/src/ts/src/models/DROPBOXOAUTHAuthConfig.ts @@ -0,0 +1,99 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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'; +/** + * Authentication configuration for Dropbox OAuth + * @export + * @interface DROPBOXOAUTHAuthConfig + */ +export interface DROPBOXOAUTHAuthConfig { + /** + * Name. Example: Enter a descriptive name + * @type {string} + * @memberof DROPBOXOAUTHAuthConfig + */ + name: string; + /** + * Authorized User + * @type {string} + * @memberof DROPBOXOAUTHAuthConfig + */ + authorizedUser?: string; + /** + * Connect Dropbox to Vectorize. Example: Authorize + * @type {string} + * @memberof DROPBOXOAUTHAuthConfig + */ + selectionDetails: string; + /** + * + * @type {object} + * @memberof DROPBOXOAUTHAuthConfig + */ + editedUsers?: object; + /** + * + * @type {object} + * @memberof DROPBOXOAUTHAuthConfig + */ + reconnectUsers?: object; +} + +/** + * Check if a given object implements the DROPBOXOAUTHAuthConfig interface. + */ +export function instanceOfDROPBOXOAUTHAuthConfig(value: object): value is DROPBOXOAUTHAuthConfig { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('selectionDetails' in value) || value['selectionDetails'] === undefined) return false; + return true; +} + +export function DROPBOXOAUTHAuthConfigFromJSON(json: any): DROPBOXOAUTHAuthConfig { + return DROPBOXOAUTHAuthConfigFromJSONTyped(json, false); +} + +export function DROPBOXOAUTHAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): DROPBOXOAUTHAuthConfig { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'authorizedUser': json['authorized-user'] == null ? undefined : json['authorized-user'], + 'selectionDetails': json['selection-details'], + 'editedUsers': json['editedUsers'] == null ? undefined : json['editedUsers'], + 'reconnectUsers': json['reconnectUsers'] == null ? undefined : json['reconnectUsers'], + }; +} + +export function DROPBOXOAUTHAuthConfigToJSON(json: any): DROPBOXOAUTHAuthConfig { + return DROPBOXOAUTHAuthConfigToJSONTyped(json, false); +} + +export function DROPBOXOAUTHAuthConfigToJSONTyped(value?: DROPBOXOAUTHAuthConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'authorized-user': value['authorizedUser'], + 'selection-details': value['selectionDetails'], + 'editedUsers': value['editedUsers'], + 'reconnectUsers': value['reconnectUsers'], + }; +} + diff --git a/src/ts/src/models/DROPBOXOAUTHMULTIAuthConfig.ts b/src/ts/src/models/DROPBOXOAUTHMULTIAuthConfig.ts new file mode 100644 index 0000000..94407fe --- /dev/null +++ b/src/ts/src/models/DROPBOXOAUTHMULTIAuthConfig.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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'; +/** + * Authentication configuration for Dropbox Multi-User (Vectorize) + * @export + * @interface DROPBOXOAUTHMULTIAuthConfig + */ +export interface DROPBOXOAUTHMULTIAuthConfig { + /** + * Name. Example: Enter a descriptive name + * @type {string} + * @memberof DROPBOXOAUTHMULTIAuthConfig + */ + name: string; + /** + * Authorized Users + * @type {string} + * @memberof DROPBOXOAUTHMULTIAuthConfig + */ + authorizedUsers?: string; + /** + * + * @type {object} + * @memberof DROPBOXOAUTHMULTIAuthConfig + */ + editedUsers?: object; + /** + * + * @type {object} + * @memberof DROPBOXOAUTHMULTIAuthConfig + */ + deletedUsers?: object; +} + +/** + * Check if a given object implements the DROPBOXOAUTHMULTIAuthConfig interface. + */ +export function instanceOfDROPBOXOAUTHMULTIAuthConfig(value: object): value is DROPBOXOAUTHMULTIAuthConfig { + if (!('name' in value) || value['name'] === undefined) return false; + return true; +} + +export function DROPBOXOAUTHMULTIAuthConfigFromJSON(json: any): DROPBOXOAUTHMULTIAuthConfig { + return DROPBOXOAUTHMULTIAuthConfigFromJSONTyped(json, false); +} + +export function DROPBOXOAUTHMULTIAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): DROPBOXOAUTHMULTIAuthConfig { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'authorizedUsers': json['authorized-users'] == null ? undefined : json['authorized-users'], + 'editedUsers': json['editedUsers'] == null ? undefined : json['editedUsers'], + 'deletedUsers': json['deletedUsers'] == null ? undefined : json['deletedUsers'], + }; +} + +export function DROPBOXOAUTHMULTIAuthConfigToJSON(json: any): DROPBOXOAUTHMULTIAuthConfig { + return DROPBOXOAUTHMULTIAuthConfigToJSONTyped(json, false); +} + +export function DROPBOXOAUTHMULTIAuthConfigToJSONTyped(value?: DROPBOXOAUTHMULTIAuthConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'authorized-users': value['authorizedUsers'], + 'editedUsers': value['editedUsers'], + 'deletedUsers': value['deletedUsers'], + }; +} + diff --git a/src/ts/src/models/DROPBOXOAUTHMULTICUSTOMAuthConfig.ts b/src/ts/src/models/DROPBOXOAUTHMULTICUSTOMAuthConfig.ts new file mode 100644 index 0000000..e3b0940 --- /dev/null +++ b/src/ts/src/models/DROPBOXOAUTHMULTICUSTOMAuthConfig.ts @@ -0,0 +1,108 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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'; +/** + * Authentication configuration for Dropbox Multi-User (White Label) + * @export + * @interface DROPBOXOAUTHMULTICUSTOMAuthConfig + */ +export interface DROPBOXOAUTHMULTICUSTOMAuthConfig { + /** + * Name. Example: Enter a descriptive name + * @type {string} + * @memberof DROPBOXOAUTHMULTICUSTOMAuthConfig + */ + name: string; + /** + * Dropbox App Key. Example: Enter App Key + * @type {string} + * @memberof DROPBOXOAUTHMULTICUSTOMAuthConfig + */ + appKey: string; + /** + * Dropbox App Secret. Example: Enter App Secret + * @type {string} + * @memberof DROPBOXOAUTHMULTICUSTOMAuthConfig + */ + appSecret: string; + /** + * Authorized Users + * @type {string} + * @memberof DROPBOXOAUTHMULTICUSTOMAuthConfig + */ + authorizedUsers?: string; + /** + * + * @type {object} + * @memberof DROPBOXOAUTHMULTICUSTOMAuthConfig + */ + editedUsers?: object; + /** + * + * @type {object} + * @memberof DROPBOXOAUTHMULTICUSTOMAuthConfig + */ + deletedUsers?: object; +} + +/** + * Check if a given object implements the DROPBOXOAUTHMULTICUSTOMAuthConfig interface. + */ +export function instanceOfDROPBOXOAUTHMULTICUSTOMAuthConfig(value: object): value is DROPBOXOAUTHMULTICUSTOMAuthConfig { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('appKey' in value) || value['appKey'] === undefined) return false; + if (!('appSecret' in value) || value['appSecret'] === undefined) return false; + return true; +} + +export function DROPBOXOAUTHMULTICUSTOMAuthConfigFromJSON(json: any): DROPBOXOAUTHMULTICUSTOMAuthConfig { + return DROPBOXOAUTHMULTICUSTOMAuthConfigFromJSONTyped(json, false); +} + +export function DROPBOXOAUTHMULTICUSTOMAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): DROPBOXOAUTHMULTICUSTOMAuthConfig { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'appKey': json['app-key'], + 'appSecret': json['app-secret'], + 'authorizedUsers': json['authorized-users'] == null ? undefined : json['authorized-users'], + 'editedUsers': json['editedUsers'] == null ? undefined : json['editedUsers'], + 'deletedUsers': json['deletedUsers'] == null ? undefined : json['deletedUsers'], + }; +} + +export function DROPBOXOAUTHMULTICUSTOMAuthConfigToJSON(json: any): DROPBOXOAUTHMULTICUSTOMAuthConfig { + return DROPBOXOAUTHMULTICUSTOMAuthConfigToJSONTyped(json, false); +} + +export function DROPBOXOAUTHMULTICUSTOMAuthConfigToJSONTyped(value?: DROPBOXOAUTHMULTICUSTOMAuthConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'app-key': value['appKey'], + 'app-secret': value['appSecret'], + 'authorized-users': value['authorizedUsers'], + 'editedUsers': value['editedUsers'], + 'deletedUsers': value['deletedUsers'], + }; +} + diff --git a/src/ts/src/models/Datastax.ts b/src/ts/src/models/Datastax.ts new file mode 100644 index 0000000..a49b9f5 --- /dev/null +++ b/src/ts/src/models/Datastax.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 { DATASTAXConfig } from './DATASTAXConfig'; +import { + DATASTAXConfigFromJSON, + DATASTAXConfigFromJSONTyped, + DATASTAXConfigToJSON, + DATASTAXConfigToJSONTyped, +} from './DATASTAXConfig'; + +/** + * + * @export + * @interface Datastax + */ +export interface Datastax { + /** + * Name of the connector + * @type {string} + * @memberof Datastax + */ + name: string; + /** + * Connector type (must be "DATASTAX") + * @type {string} + * @memberof Datastax + */ + type: DatastaxTypeEnum; + /** + * + * @type {DATASTAXConfig} + * @memberof Datastax + */ + config: DATASTAXConfig; +} + + +/** + * @export + */ +export const DatastaxTypeEnum = { + Datastax: 'DATASTAX' +} as const; +export type DatastaxTypeEnum = typeof DatastaxTypeEnum[keyof typeof DatastaxTypeEnum]; + + +/** + * Check if a given object implements the Datastax interface. + */ +export function instanceOfDatastax(value: object): value is Datastax { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('type' in value) || value['type'] === undefined) return false; + if (!('config' in value) || value['config'] === undefined) return false; + return true; +} + +export function DatastaxFromJSON(json: any): Datastax { + return DatastaxFromJSONTyped(json, false); +} + +export function DatastaxFromJSONTyped(json: any, ignoreDiscriminator: boolean): Datastax { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'type': json['type'], + 'config': DATASTAXConfigFromJSON(json['config']), + }; +} + +export function DatastaxToJSON(json: any): Datastax { + return DatastaxToJSONTyped(json, false); +} + +export function DatastaxToJSONTyped(value?: Datastax | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'type': value['type'], + 'config': DATASTAXConfigToJSON(value['config']), + }; +} + diff --git a/src/ts/src/models/Datastax1.ts b/src/ts/src/models/Datastax1.ts new file mode 100644 index 0000000..72ea71c --- /dev/null +++ b/src/ts/src/models/Datastax1.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 { DATASTAXConfig } from './DATASTAXConfig'; +import { + DATASTAXConfigFromJSON, + DATASTAXConfigFromJSONTyped, + DATASTAXConfigToJSON, + DATASTAXConfigToJSONTyped, +} from './DATASTAXConfig'; + +/** + * + * @export + * @interface Datastax1 + */ +export interface Datastax1 { + /** + * + * @type {DATASTAXConfig} + * @memberof Datastax1 + */ + config?: DATASTAXConfig; +} + +/** + * Check if a given object implements the Datastax1 interface. + */ +export function instanceOfDatastax1(value: object): value is Datastax1 { + return true; +} + +export function Datastax1FromJSON(json: any): Datastax1 { + return Datastax1FromJSONTyped(json, false); +} + +export function Datastax1FromJSONTyped(json: any, ignoreDiscriminator: boolean): Datastax1 { + if (json == null) { + return json; + } + return { + + 'config': json['config'] == null ? undefined : DATASTAXConfigFromJSON(json['config']), + }; +} + +export function Datastax1ToJSON(json: any): Datastax1 { + return Datastax1ToJSONTyped(json, false); +} + +export function Datastax1ToJSONTyped(value?: Datastax1 | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'config': DATASTAXConfigToJSON(value['config']), + }; +} + diff --git a/src/ts/src/models/DeepResearchResult.ts b/src/ts/src/models/DeepResearchResult.ts index dc55687..2b9abe7 100644 --- a/src/ts/src/models/DeepResearchResult.ts +++ b/src/ts/src/models/DeepResearchResult.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * diff --git a/src/ts/src/models/DeleteAIPlatformConnectorResponse.ts b/src/ts/src/models/DeleteAIPlatformConnectorResponse.ts index 4f7d3a2..44f2481 100644 --- a/src/ts/src/models/DeleteAIPlatformConnectorResponse.ts +++ b/src/ts/src/models/DeleteAIPlatformConnectorResponse.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * diff --git a/src/ts/src/models/DeleteDestinationConnectorResponse.ts b/src/ts/src/models/DeleteDestinationConnectorResponse.ts index 7860f0b..a75ccfa 100644 --- a/src/ts/src/models/DeleteDestinationConnectorResponse.ts +++ b/src/ts/src/models/DeleteDestinationConnectorResponse.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * diff --git a/src/ts/src/models/DeleteFileResponse.ts b/src/ts/src/models/DeleteFileResponse.ts index 47c22ca..68b1825 100644 --- a/src/ts/src/models/DeleteFileResponse.ts +++ b/src/ts/src/models/DeleteFileResponse.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * diff --git a/src/ts/src/models/DeletePipelineResponse.ts b/src/ts/src/models/DeletePipelineResponse.ts index d146444..ca35500 100644 --- a/src/ts/src/models/DeletePipelineResponse.ts +++ b/src/ts/src/models/DeletePipelineResponse.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * diff --git a/src/ts/src/models/DeleteSourceConnectorResponse.ts b/src/ts/src/models/DeleteSourceConnectorResponse.ts index 2c95535..0220e8b 100644 --- a/src/ts/src/models/DeleteSourceConnectorResponse.ts +++ b/src/ts/src/models/DeleteSourceConnectorResponse.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * diff --git a/src/ts/src/models/DestinationConnector.ts b/src/ts/src/models/DestinationConnector.ts index 3cf3569..1131d08 100644 --- a/src/ts/src/models/DestinationConnector.ts +++ b/src/ts/src/models/DestinationConnector.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * diff --git a/src/ts/src/models/DestinationConnectorInput.ts b/src/ts/src/models/DestinationConnectorInput.ts new file mode 100644 index 0000000..7f4da8b --- /dev/null +++ b/src/ts/src/models/DestinationConnectorInput.ts @@ -0,0 +1,113 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 { DestinationConnectorInputConfig } from './DestinationConnectorInputConfig'; +import { + DestinationConnectorInputConfigFromJSON, + DestinationConnectorInputConfigFromJSONTyped, + DestinationConnectorInputConfigToJSON, + DestinationConnectorInputConfigToJSONTyped, +} from './DestinationConnectorInputConfig'; + +/** + * Destination connector configuration + * @export + * @interface DestinationConnectorInput + */ +export interface DestinationConnectorInput { + /** + * Unique identifier for the destination connector + * @type {string} + * @memberof DestinationConnectorInput + */ + id: string; + /** + * Type of destination connector + * @type {string} + * @memberof DestinationConnectorInput + */ + type: DestinationConnectorInputTypeEnum; + /** + * + * @type {DestinationConnectorInputConfig} + * @memberof DestinationConnectorInput + */ + config: DestinationConnectorInputConfig; +} + + +/** + * @export + */ +export const DestinationConnectorInputTypeEnum = { + Capella: 'CAPELLA', + Datastax: 'DATASTAX', + Elastic: 'ELASTIC', + Pinecone: 'PINECONE', + Singlestore: 'SINGLESTORE', + Milvus: 'MILVUS', + Postgresql: 'POSTGRESQL', + Qdrant: 'QDRANT', + Supabase: 'SUPABASE', + Weaviate: 'WEAVIATE', + Azureaisearch: 'AZUREAISEARCH', + Turbopuffer: 'TURBOPUFFER' +} as const; +export type DestinationConnectorInputTypeEnum = typeof DestinationConnectorInputTypeEnum[keyof typeof DestinationConnectorInputTypeEnum]; + + +/** + * Check if a given object implements the DestinationConnectorInput interface. + */ +export function instanceOfDestinationConnectorInput(value: object): value is DestinationConnectorInput { + 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; +} + +export function DestinationConnectorInputFromJSON(json: any): DestinationConnectorInput { + return DestinationConnectorInputFromJSONTyped(json, false); +} + +export function DestinationConnectorInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): DestinationConnectorInput { + if (json == null) { + return json; + } + return { + + 'id': json['id'], + 'type': json['type'], + 'config': DestinationConnectorInputConfigFromJSON(json['config']), + }; +} + +export function DestinationConnectorInputToJSON(json: any): DestinationConnectorInput { + return DestinationConnectorInputToJSONTyped(json, false); +} + +export function DestinationConnectorInputToJSONTyped(value?: DestinationConnectorInput | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'id': value['id'], + 'type': value['type'], + 'config': DestinationConnectorInputConfigToJSON(value['config']), + }; +} + diff --git a/src/ts/src/models/DestinationConnectorInputConfig.ts b/src/ts/src/models/DestinationConnectorInputConfig.ts new file mode 100644 index 0000000..5b7b37e --- /dev/null +++ b/src/ts/src/models/DestinationConnectorInputConfig.ts @@ -0,0 +1,208 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 type { AZUREAISEARCHConfig } from './AZUREAISEARCHConfig'; +import { + instanceOfAZUREAISEARCHConfig, + AZUREAISEARCHConfigFromJSON, + AZUREAISEARCHConfigFromJSONTyped, + AZUREAISEARCHConfigToJSON, +} from './AZUREAISEARCHConfig'; +import type { CAPELLAConfig } from './CAPELLAConfig'; +import { + instanceOfCAPELLAConfig, + CAPELLAConfigFromJSON, + CAPELLAConfigFromJSONTyped, + CAPELLAConfigToJSON, +} from './CAPELLAConfig'; +import type { DATASTAXConfig } from './DATASTAXConfig'; +import { + instanceOfDATASTAXConfig, + DATASTAXConfigFromJSON, + DATASTAXConfigFromJSONTyped, + DATASTAXConfigToJSON, +} from './DATASTAXConfig'; +import type { ELASTICConfig } from './ELASTICConfig'; +import { + instanceOfELASTICConfig, + ELASTICConfigFromJSON, + ELASTICConfigFromJSONTyped, + ELASTICConfigToJSON, +} from './ELASTICConfig'; +import type { MILVUSConfig } from './MILVUSConfig'; +import { + instanceOfMILVUSConfig, + MILVUSConfigFromJSON, + MILVUSConfigFromJSONTyped, + MILVUSConfigToJSON, +} from './MILVUSConfig'; +import type { PINECONEConfig } from './PINECONEConfig'; +import { + instanceOfPINECONEConfig, + PINECONEConfigFromJSON, + PINECONEConfigFromJSONTyped, + PINECONEConfigToJSON, +} from './PINECONEConfig'; +import type { POSTGRESQLConfig } from './POSTGRESQLConfig'; +import { + instanceOfPOSTGRESQLConfig, + POSTGRESQLConfigFromJSON, + POSTGRESQLConfigFromJSONTyped, + POSTGRESQLConfigToJSON, +} from './POSTGRESQLConfig'; +import type { QDRANTConfig } from './QDRANTConfig'; +import { + instanceOfQDRANTConfig, + QDRANTConfigFromJSON, + QDRANTConfigFromJSONTyped, + QDRANTConfigToJSON, +} from './QDRANTConfig'; +import type { SINGLESTOREConfig } from './SINGLESTOREConfig'; +import { + instanceOfSINGLESTOREConfig, + SINGLESTOREConfigFromJSON, + SINGLESTOREConfigFromJSONTyped, + SINGLESTOREConfigToJSON, +} from './SINGLESTOREConfig'; +import type { SUPABASEConfig } from './SUPABASEConfig'; +import { + instanceOfSUPABASEConfig, + SUPABASEConfigFromJSON, + SUPABASEConfigFromJSONTyped, + SUPABASEConfigToJSON, +} from './SUPABASEConfig'; +import type { TURBOPUFFERConfig } from './TURBOPUFFERConfig'; +import { + instanceOfTURBOPUFFERConfig, + TURBOPUFFERConfigFromJSON, + TURBOPUFFERConfigFromJSONTyped, + TURBOPUFFERConfigToJSON, +} from './TURBOPUFFERConfig'; +import type { WEAVIATEConfig } from './WEAVIATEConfig'; +import { + instanceOfWEAVIATEConfig, + WEAVIATEConfigFromJSON, + WEAVIATEConfigFromJSONTyped, + WEAVIATEConfigToJSON, +} from './WEAVIATEConfig'; + +/** + * @type DestinationConnectorInputConfig + * Configuration specific to the connector type + * @export + */ +export type DestinationConnectorInputConfig = AZUREAISEARCHConfig | CAPELLAConfig | DATASTAXConfig | ELASTICConfig | MILVUSConfig | PINECONEConfig | POSTGRESQLConfig | QDRANTConfig | SINGLESTOREConfig | SUPABASEConfig | TURBOPUFFERConfig | WEAVIATEConfig; + +export function DestinationConnectorInputConfigFromJSON(json: any): DestinationConnectorInputConfig { + return DestinationConnectorInputConfigFromJSONTyped(json, false); +} + +export function DestinationConnectorInputConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): DestinationConnectorInputConfig { + if (json == null) { + return json; + } + if (typeof json !== 'object') { + return json; + } + if (instanceOfAZUREAISEARCHConfig(json)) { + return AZUREAISEARCHConfigFromJSONTyped(json, true); + } + if (instanceOfCAPELLAConfig(json)) { + return CAPELLAConfigFromJSONTyped(json, true); + } + if (instanceOfDATASTAXConfig(json)) { + return DATASTAXConfigFromJSONTyped(json, true); + } + if (instanceOfELASTICConfig(json)) { + return ELASTICConfigFromJSONTyped(json, true); + } + if (instanceOfMILVUSConfig(json)) { + return MILVUSConfigFromJSONTyped(json, true); + } + if (instanceOfPINECONEConfig(json)) { + return PINECONEConfigFromJSONTyped(json, true); + } + if (instanceOfPOSTGRESQLConfig(json)) { + return POSTGRESQLConfigFromJSONTyped(json, true); + } + if (instanceOfQDRANTConfig(json)) { + return QDRANTConfigFromJSONTyped(json, true); + } + if (instanceOfSINGLESTOREConfig(json)) { + return SINGLESTOREConfigFromJSONTyped(json, true); + } + if (instanceOfSUPABASEConfig(json)) { + return SUPABASEConfigFromJSONTyped(json, true); + } + if (instanceOfTURBOPUFFERConfig(json)) { + return TURBOPUFFERConfigFromJSONTyped(json, true); + } + if (instanceOfWEAVIATEConfig(json)) { + return WEAVIATEConfigFromJSONTyped(json, true); + } + + return {} as any; +} + +export function DestinationConnectorInputConfigToJSON(json: any): any { + return DestinationConnectorInputConfigToJSONTyped(json, false); +} + +export function DestinationConnectorInputConfigToJSONTyped(value?: DestinationConnectorInputConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + if (typeof value !== 'object') { + return value; + } + if (instanceOfAZUREAISEARCHConfig(value)) { + return AZUREAISEARCHConfigToJSON(value as AZUREAISEARCHConfig); + } + if (instanceOfCAPELLAConfig(value)) { + return CAPELLAConfigToJSON(value as CAPELLAConfig); + } + if (instanceOfDATASTAXConfig(value)) { + return DATASTAXConfigToJSON(value as DATASTAXConfig); + } + if (instanceOfELASTICConfig(value)) { + return ELASTICConfigToJSON(value as ELASTICConfig); + } + if (instanceOfMILVUSConfig(value)) { + return MILVUSConfigToJSON(value as MILVUSConfig); + } + if (instanceOfPINECONEConfig(value)) { + return PINECONEConfigToJSON(value as PINECONEConfig); + } + if (instanceOfPOSTGRESQLConfig(value)) { + return POSTGRESQLConfigToJSON(value as POSTGRESQLConfig); + } + if (instanceOfQDRANTConfig(value)) { + return QDRANTConfigToJSON(value as QDRANTConfig); + } + if (instanceOfSINGLESTOREConfig(value)) { + return SINGLESTOREConfigToJSON(value as SINGLESTOREConfig); + } + if (instanceOfSUPABASEConfig(value)) { + return SUPABASEConfigToJSON(value as SUPABASEConfig); + } + if (instanceOfTURBOPUFFERConfig(value)) { + return TURBOPUFFERConfigToJSON(value as TURBOPUFFERConfig); + } + if (instanceOfWEAVIATEConfig(value)) { + return WEAVIATEConfigToJSON(value as WEAVIATEConfig); + } + + return {}; +} + diff --git a/src/ts/src/models/DestinationConnectorSchema.ts b/src/ts/src/models/DestinationConnectorSchema.ts index 17683b1..35e1ba9 100644 --- a/src/ts/src/models/DestinationConnectorSchema.ts +++ b/src/ts/src/models/DestinationConnectorSchema.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * @@ -13,13 +13,13 @@ */ import { mapValues } from '../runtime'; -import type { DestinationConnectorType } from './DestinationConnectorType'; +import type { DestinationConnectorTypeForPipeline } from './DestinationConnectorTypeForPipeline'; import { - DestinationConnectorTypeFromJSON, - DestinationConnectorTypeFromJSONTyped, - DestinationConnectorTypeToJSON, - DestinationConnectorTypeToJSONTyped, -} from './DestinationConnectorType'; + DestinationConnectorTypeForPipelineFromJSON, + DestinationConnectorTypeForPipelineFromJSONTyped, + DestinationConnectorTypeForPipelineToJSON, + DestinationConnectorTypeForPipelineToJSONTyped, +} from './DestinationConnectorTypeForPipeline'; /** * @@ -35,10 +35,10 @@ export interface DestinationConnectorSchema { id: string; /** * - * @type {DestinationConnectorType} + * @type {DestinationConnectorTypeForPipeline} * @memberof DestinationConnectorSchema */ - type: DestinationConnectorType; + type: DestinationConnectorTypeForPipeline; /** * * @type {{ [key: string]: any | null; }} @@ -69,7 +69,7 @@ export function DestinationConnectorSchemaFromJSONTyped(json: any, ignoreDiscrim return { 'id': json['id'], - 'type': DestinationConnectorTypeFromJSON(json['type']), + 'type': DestinationConnectorTypeForPipelineFromJSON(json['type']), 'config': json['config'] == null ? undefined : json['config'], }; } @@ -86,7 +86,7 @@ export function DestinationConnectorSchemaToJSONTyped(value?: DestinationConnect return { 'id': value['id'], - 'type': DestinationConnectorTypeToJSON(value['type']), + 'type': DestinationConnectorTypeForPipelineToJSON(value['type']), 'config': value['config'], }; } diff --git a/src/ts/src/models/DestinationConnectorType.ts b/src/ts/src/models/DestinationConnectorType.ts index a668ca2..ab09c93 100644 --- a/src/ts/src/models/DestinationConnectorType.ts +++ b/src/ts/src/models/DestinationConnectorType.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * @@ -29,9 +29,7 @@ export const DestinationConnectorType = { Supabase: 'SUPABASE', Weaviate: 'WEAVIATE', Azureaisearch: 'AZUREAISEARCH', - Vectorize: 'VECTORIZE', - Chroma: 'CHROMA', - Mongodb: 'MONGODB' + Turbopuffer: 'TURBOPUFFER' } as const; export type DestinationConnectorType = typeof DestinationConnectorType[keyof typeof DestinationConnectorType]; diff --git a/src/ts/src/models/DestinationConnectorTypeForPipeline.ts b/src/ts/src/models/DestinationConnectorTypeForPipeline.ts new file mode 100644 index 0000000..c9285db --- /dev/null +++ b/src/ts/src/models/DestinationConnectorTypeForPipeline.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 DestinationConnectorTypeForPipeline = { + Capella: 'CAPELLA', + Datastax: 'DATASTAX', + Elastic: 'ELASTIC', + Pinecone: 'PINECONE', + Singlestore: 'SINGLESTORE', + Milvus: 'MILVUS', + Postgresql: 'POSTGRESQL', + Qdrant: 'QDRANT', + Supabase: 'SUPABASE', + Weaviate: 'WEAVIATE', + Azureaisearch: 'AZUREAISEARCH', + Turbopuffer: 'TURBOPUFFER', + Vectorize: 'VECTORIZE' +} as const; +export type DestinationConnectorTypeForPipeline = typeof DestinationConnectorTypeForPipeline[keyof typeof DestinationConnectorTypeForPipeline]; + + +export function instanceOfDestinationConnectorTypeForPipeline(value: any): boolean { + for (const key in DestinationConnectorTypeForPipeline) { + if (Object.prototype.hasOwnProperty.call(DestinationConnectorTypeForPipeline, key)) { + if (DestinationConnectorTypeForPipeline[key as keyof typeof DestinationConnectorTypeForPipeline] === value) { + return true; + } + } + } + return false; +} + +export function DestinationConnectorTypeForPipelineFromJSON(json: any): DestinationConnectorTypeForPipeline { + return DestinationConnectorTypeForPipelineFromJSONTyped(json, false); +} + +export function DestinationConnectorTypeForPipelineFromJSONTyped(json: any, ignoreDiscriminator: boolean): DestinationConnectorTypeForPipeline { + return json as DestinationConnectorTypeForPipeline; +} + +export function DestinationConnectorTypeForPipelineToJSON(value?: DestinationConnectorTypeForPipeline | null): any { + return value as any; +} + +export function DestinationConnectorTypeForPipelineToJSONTyped(value: any, ignoreDiscriminator: boolean): DestinationConnectorTypeForPipeline { + return value as DestinationConnectorTypeForPipeline; +} + diff --git a/src/ts/src/models/Discord.ts b/src/ts/src/models/Discord.ts new file mode 100644 index 0000000..857afea --- /dev/null +++ b/src/ts/src/models/Discord.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 { DISCORDConfig } from './DISCORDConfig'; +import { + DISCORDConfigFromJSON, + DISCORDConfigFromJSONTyped, + DISCORDConfigToJSON, + DISCORDConfigToJSONTyped, +} from './DISCORDConfig'; + +/** + * + * @export + * @interface Discord + */ +export interface Discord { + /** + * Name of the connector + * @type {string} + * @memberof Discord + */ + name: string; + /** + * Connector type (must be "DISCORD") + * @type {string} + * @memberof Discord + */ + type: DiscordTypeEnum; + /** + * + * @type {DISCORDConfig} + * @memberof Discord + */ + config: DISCORDConfig; +} + + +/** + * @export + */ +export const DiscordTypeEnum = { + Discord: 'DISCORD' +} as const; +export type DiscordTypeEnum = typeof DiscordTypeEnum[keyof typeof DiscordTypeEnum]; + + +/** + * Check if a given object implements the Discord interface. + */ +export function instanceOfDiscord(value: object): value is Discord { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('type' in value) || value['type'] === undefined) return false; + if (!('config' in value) || value['config'] === undefined) return false; + return true; +} + +export function DiscordFromJSON(json: any): Discord { + return DiscordFromJSONTyped(json, false); +} + +export function DiscordFromJSONTyped(json: any, ignoreDiscriminator: boolean): Discord { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'type': json['type'], + 'config': DISCORDConfigFromJSON(json['config']), + }; +} + +export function DiscordToJSON(json: any): Discord { + return DiscordToJSONTyped(json, false); +} + +export function DiscordToJSONTyped(value?: Discord | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'type': value['type'], + 'config': DISCORDConfigToJSON(value['config']), + }; +} + diff --git a/src/ts/src/models/Discord1.ts b/src/ts/src/models/Discord1.ts new file mode 100644 index 0000000..8b8be38 --- /dev/null +++ b/src/ts/src/models/Discord1.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 { DISCORDConfig } from './DISCORDConfig'; +import { + DISCORDConfigFromJSON, + DISCORDConfigFromJSONTyped, + DISCORDConfigToJSON, + DISCORDConfigToJSONTyped, +} from './DISCORDConfig'; + +/** + * + * @export + * @interface Discord1 + */ +export interface Discord1 { + /** + * + * @type {DISCORDConfig} + * @memberof Discord1 + */ + config?: DISCORDConfig; +} + +/** + * Check if a given object implements the Discord1 interface. + */ +export function instanceOfDiscord1(value: object): value is Discord1 { + return true; +} + +export function Discord1FromJSON(json: any): Discord1 { + return Discord1FromJSONTyped(json, false); +} + +export function Discord1FromJSONTyped(json: any, ignoreDiscriminator: boolean): Discord1 { + if (json == null) { + return json; + } + return { + + 'config': json['config'] == null ? undefined : DISCORDConfigFromJSON(json['config']), + }; +} + +export function Discord1ToJSON(json: any): Discord1 { + return Discord1ToJSONTyped(json, false); +} + +export function Discord1ToJSONTyped(value?: Discord1 | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'config': DISCORDConfigToJSON(value['config']), + }; +} + diff --git a/src/ts/src/models/Document.ts b/src/ts/src/models/Document.ts index 2cc8e41..23f2f0a 100644 --- a/src/ts/src/models/Document.ts +++ b/src/ts/src/models/Document.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * diff --git a/src/ts/src/models/Dropbox.ts b/src/ts/src/models/Dropbox.ts new file mode 100644 index 0000000..f23cdaf --- /dev/null +++ b/src/ts/src/models/Dropbox.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 { DROPBOXConfig } from './DROPBOXConfig'; +import { + DROPBOXConfigFromJSON, + DROPBOXConfigFromJSONTyped, + DROPBOXConfigToJSON, + DROPBOXConfigToJSONTyped, +} from './DROPBOXConfig'; + +/** + * + * @export + * @interface Dropbox + */ +export interface Dropbox { + /** + * + * @type {DROPBOXConfig} + * @memberof Dropbox + */ + config?: DROPBOXConfig; +} + +/** + * Check if a given object implements the Dropbox interface. + */ +export function instanceOfDropbox(value: object): value is Dropbox { + return true; +} + +export function DropboxFromJSON(json: any): Dropbox { + return DropboxFromJSONTyped(json, false); +} + +export function DropboxFromJSONTyped(json: any, ignoreDiscriminator: boolean): Dropbox { + if (json == null) { + return json; + } + return { + + 'config': json['config'] == null ? undefined : DROPBOXConfigFromJSON(json['config']), + }; +} + +export function DropboxToJSON(json: any): Dropbox { + return DropboxToJSONTyped(json, false); +} + +export function DropboxToJSONTyped(value?: Dropbox | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'config': DROPBOXConfigToJSON(value['config']), + }; +} + diff --git a/src/ts/src/models/DropboxOauth.ts b/src/ts/src/models/DropboxOauth.ts new file mode 100644 index 0000000..805d1b2 --- /dev/null +++ b/src/ts/src/models/DropboxOauth.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 { DROPBOXOAUTHAuthConfig } from './DROPBOXOAUTHAuthConfig'; +import { + DROPBOXOAUTHAuthConfigFromJSON, + DROPBOXOAUTHAuthConfigFromJSONTyped, + DROPBOXOAUTHAuthConfigToJSON, + DROPBOXOAUTHAuthConfigToJSONTyped, +} from './DROPBOXOAUTHAuthConfig'; + +/** + * + * @export + * @interface DropboxOauth + */ +export interface DropboxOauth { + /** + * + * @type {DROPBOXOAUTHAuthConfig} + * @memberof DropboxOauth + */ + config?: DROPBOXOAUTHAuthConfig; +} + +/** + * Check if a given object implements the DropboxOauth interface. + */ +export function instanceOfDropboxOauth(value: object): value is DropboxOauth { + return true; +} + +export function DropboxOauthFromJSON(json: any): DropboxOauth { + return DropboxOauthFromJSONTyped(json, false); +} + +export function DropboxOauthFromJSONTyped(json: any, ignoreDiscriminator: boolean): DropboxOauth { + if (json == null) { + return json; + } + return { + + 'config': json['config'] == null ? undefined : DROPBOXOAUTHAuthConfigFromJSON(json['config']), + }; +} + +export function DropboxOauthToJSON(json: any): DropboxOauth { + return DropboxOauthToJSONTyped(json, false); +} + +export function DropboxOauthToJSONTyped(value?: DropboxOauth | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'config': DROPBOXOAUTHAuthConfigToJSON(value['config']), + }; +} + diff --git a/src/ts/src/models/DropboxOauthMulti.ts b/src/ts/src/models/DropboxOauthMulti.ts new file mode 100644 index 0000000..57c949d --- /dev/null +++ b/src/ts/src/models/DropboxOauthMulti.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 { DROPBOXOAUTHMULTIAuthConfig } from './DROPBOXOAUTHMULTIAuthConfig'; +import { + DROPBOXOAUTHMULTIAuthConfigFromJSON, + DROPBOXOAUTHMULTIAuthConfigFromJSONTyped, + DROPBOXOAUTHMULTIAuthConfigToJSON, + DROPBOXOAUTHMULTIAuthConfigToJSONTyped, +} from './DROPBOXOAUTHMULTIAuthConfig'; + +/** + * + * @export + * @interface DropboxOauthMulti + */ +export interface DropboxOauthMulti { + /** + * + * @type {DROPBOXOAUTHMULTIAuthConfig} + * @memberof DropboxOauthMulti + */ + config?: DROPBOXOAUTHMULTIAuthConfig; +} + +/** + * Check if a given object implements the DropboxOauthMulti interface. + */ +export function instanceOfDropboxOauthMulti(value: object): value is DropboxOauthMulti { + return true; +} + +export function DropboxOauthMultiFromJSON(json: any): DropboxOauthMulti { + return DropboxOauthMultiFromJSONTyped(json, false); +} + +export function DropboxOauthMultiFromJSONTyped(json: any, ignoreDiscriminator: boolean): DropboxOauthMulti { + if (json == null) { + return json; + } + return { + + 'config': json['config'] == null ? undefined : DROPBOXOAUTHMULTIAuthConfigFromJSON(json['config']), + }; +} + +export function DropboxOauthMultiToJSON(json: any): DropboxOauthMulti { + return DropboxOauthMultiToJSONTyped(json, false); +} + +export function DropboxOauthMultiToJSONTyped(value?: DropboxOauthMulti | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'config': DROPBOXOAUTHMULTIAuthConfigToJSON(value['config']), + }; +} + diff --git a/src/ts/src/models/DropboxOauthMultiCustom.ts b/src/ts/src/models/DropboxOauthMultiCustom.ts new file mode 100644 index 0000000..4c2af1b --- /dev/null +++ b/src/ts/src/models/DropboxOauthMultiCustom.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 { DROPBOXOAUTHMULTICUSTOMAuthConfig } from './DROPBOXOAUTHMULTICUSTOMAuthConfig'; +import { + DROPBOXOAUTHMULTICUSTOMAuthConfigFromJSON, + DROPBOXOAUTHMULTICUSTOMAuthConfigFromJSONTyped, + DROPBOXOAUTHMULTICUSTOMAuthConfigToJSON, + DROPBOXOAUTHMULTICUSTOMAuthConfigToJSONTyped, +} from './DROPBOXOAUTHMULTICUSTOMAuthConfig'; + +/** + * + * @export + * @interface DropboxOauthMultiCustom + */ +export interface DropboxOauthMultiCustom { + /** + * + * @type {DROPBOXOAUTHMULTICUSTOMAuthConfig} + * @memberof DropboxOauthMultiCustom + */ + config?: DROPBOXOAUTHMULTICUSTOMAuthConfig; +} + +/** + * Check if a given object implements the DropboxOauthMultiCustom interface. + */ +export function instanceOfDropboxOauthMultiCustom(value: object): value is DropboxOauthMultiCustom { + return true; +} + +export function DropboxOauthMultiCustomFromJSON(json: any): DropboxOauthMultiCustom { + return DropboxOauthMultiCustomFromJSONTyped(json, false); +} + +export function DropboxOauthMultiCustomFromJSONTyped(json: any, ignoreDiscriminator: boolean): DropboxOauthMultiCustom { + if (json == null) { + return json; + } + return { + + 'config': json['config'] == null ? undefined : DROPBOXOAUTHMULTICUSTOMAuthConfigFromJSON(json['config']), + }; +} + +export function DropboxOauthMultiCustomToJSON(json: any): DropboxOauthMultiCustom { + return DropboxOauthMultiCustomToJSONTyped(json, false); +} + +export function DropboxOauthMultiCustomToJSONTyped(value?: DropboxOauthMultiCustom | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'config': DROPBOXOAUTHMULTICUSTOMAuthConfigToJSON(value['config']), + }; +} + diff --git a/src/ts/src/models/ELASTICAuthConfig.ts b/src/ts/src/models/ELASTICAuthConfig.ts new file mode 100644 index 0000000..a904a88 --- /dev/null +++ b/src/ts/src/models/ELASTICAuthConfig.ts @@ -0,0 +1,93 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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'; +/** + * Authentication configuration for Elasticsearch + * @export + * @interface ELASTICAuthConfig + */ +export interface ELASTICAuthConfig { + /** + * Name. Example: Enter a descriptive name for your Elastic integration + * @type {string} + * @memberof ELASTICAuthConfig + */ + name: string; + /** + * Host. Example: Enter your host + * @type {string} + * @memberof ELASTICAuthConfig + */ + host: string; + /** + * Port. Example: Enter your port + * @type {string} + * @memberof ELASTICAuthConfig + */ + port: string; + /** + * API Key. Example: Enter your API key + * @type {string} + * @memberof ELASTICAuthConfig + */ + apiKey: string; +} + +/** + * Check if a given object implements the ELASTICAuthConfig interface. + */ +export function instanceOfELASTICAuthConfig(value: object): value is ELASTICAuthConfig { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('host' in value) || value['host'] === undefined) return false; + if (!('port' in value) || value['port'] === undefined) return false; + if (!('apiKey' in value) || value['apiKey'] === undefined) return false; + return true; +} + +export function ELASTICAuthConfigFromJSON(json: any): ELASTICAuthConfig { + return ELASTICAuthConfigFromJSONTyped(json, false); +} + +export function ELASTICAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): ELASTICAuthConfig { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'host': json['host'], + 'port': json['port'], + 'apiKey': json['api-key'], + }; +} + +export function ELASTICAuthConfigToJSON(json: any): ELASTICAuthConfig { + return ELASTICAuthConfigToJSONTyped(json, false); +} + +export function ELASTICAuthConfigToJSONTyped(value?: ELASTICAuthConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'host': value['host'], + 'port': value['port'], + 'api-key': value['apiKey'], + }; +} + diff --git a/src/ts/src/models/ELASTICConfig.ts b/src/ts/src/models/ELASTICConfig.ts new file mode 100644 index 0000000..9dba6a5 --- /dev/null +++ b/src/ts/src/models/ELASTICConfig.ts @@ -0,0 +1,66 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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'; +/** + * Configuration for Elasticsearch connector + * @export + * @interface ELASTICConfig + */ +export interface ELASTICConfig { + /** + * Index Name. Example: Enter index name + * @type {string} + * @memberof ELASTICConfig + */ + index: string; +} + +/** + * Check if a given object implements the ELASTICConfig interface. + */ +export function instanceOfELASTICConfig(value: object): value is ELASTICConfig { + if (!('index' in value) || value['index'] === undefined) return false; + return true; +} + +export function ELASTICConfigFromJSON(json: any): ELASTICConfig { + return ELASTICConfigFromJSONTyped(json, false); +} + +export function ELASTICConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): ELASTICConfig { + if (json == null) { + return json; + } + return { + + 'index': json['index'], + }; +} + +export function ELASTICConfigToJSON(json: any): ELASTICConfig { + return ELASTICConfigToJSONTyped(json, false); +} + +export function ELASTICConfigToJSONTyped(value?: ELASTICConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'index': value['index'], + }; +} + diff --git a/src/ts/src/models/Elastic.ts b/src/ts/src/models/Elastic.ts new file mode 100644 index 0000000..c3940f6 --- /dev/null +++ b/src/ts/src/models/Elastic.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 { ELASTICConfig } from './ELASTICConfig'; +import { + ELASTICConfigFromJSON, + ELASTICConfigFromJSONTyped, + ELASTICConfigToJSON, + ELASTICConfigToJSONTyped, +} from './ELASTICConfig'; + +/** + * + * @export + * @interface Elastic + */ +export interface Elastic { + /** + * Name of the connector + * @type {string} + * @memberof Elastic + */ + name: string; + /** + * Connector type (must be "ELASTIC") + * @type {string} + * @memberof Elastic + */ + type: ElasticTypeEnum; + /** + * + * @type {ELASTICConfig} + * @memberof Elastic + */ + config: ELASTICConfig; +} + + +/** + * @export + */ +export const ElasticTypeEnum = { + Elastic: 'ELASTIC' +} as const; +export type ElasticTypeEnum = typeof ElasticTypeEnum[keyof typeof ElasticTypeEnum]; + + +/** + * Check if a given object implements the Elastic interface. + */ +export function instanceOfElastic(value: object): value is Elastic { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('type' in value) || value['type'] === undefined) return false; + if (!('config' in value) || value['config'] === undefined) return false; + return true; +} + +export function ElasticFromJSON(json: any): Elastic { + return ElasticFromJSONTyped(json, false); +} + +export function ElasticFromJSONTyped(json: any, ignoreDiscriminator: boolean): Elastic { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'type': json['type'], + 'config': ELASTICConfigFromJSON(json['config']), + }; +} + +export function ElasticToJSON(json: any): Elastic { + return ElasticToJSONTyped(json, false); +} + +export function ElasticToJSONTyped(value?: Elastic | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'type': value['type'], + 'config': ELASTICConfigToJSON(value['config']), + }; +} + diff --git a/src/ts/src/models/Elastic1.ts b/src/ts/src/models/Elastic1.ts new file mode 100644 index 0000000..f002176 --- /dev/null +++ b/src/ts/src/models/Elastic1.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 { ELASTICConfig } from './ELASTICConfig'; +import { + ELASTICConfigFromJSON, + ELASTICConfigFromJSONTyped, + ELASTICConfigToJSON, + ELASTICConfigToJSONTyped, +} from './ELASTICConfig'; + +/** + * + * @export + * @interface Elastic1 + */ +export interface Elastic1 { + /** + * + * @type {ELASTICConfig} + * @memberof Elastic1 + */ + config?: ELASTICConfig; +} + +/** + * Check if a given object implements the Elastic1 interface. + */ +export function instanceOfElastic1(value: object): value is Elastic1 { + return true; +} + +export function Elastic1FromJSON(json: any): Elastic1 { + return Elastic1FromJSONTyped(json, false); +} + +export function Elastic1FromJSONTyped(json: any, ignoreDiscriminator: boolean): Elastic1 { + if (json == null) { + return json; + } + return { + + 'config': json['config'] == null ? undefined : ELASTICConfigFromJSON(json['config']), + }; +} + +export function Elastic1ToJSON(json: any): Elastic1 { + return Elastic1ToJSONTyped(json, false); +} + +export function Elastic1ToJSONTyped(value?: Elastic1 | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'config': ELASTICConfigToJSON(value['config']), + }; +} + diff --git a/src/ts/src/models/ExtractionChunkingStrategy.ts b/src/ts/src/models/ExtractionChunkingStrategy.ts index f23b595..7199ccb 100644 --- a/src/ts/src/models/ExtractionChunkingStrategy.ts +++ b/src/ts/src/models/ExtractionChunkingStrategy.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * diff --git a/src/ts/src/models/ExtractionResult.ts b/src/ts/src/models/ExtractionResult.ts index 2e0561b..ba58664 100644 --- a/src/ts/src/models/ExtractionResult.ts +++ b/src/ts/src/models/ExtractionResult.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * diff --git a/src/ts/src/models/ExtractionResultResponse.ts b/src/ts/src/models/ExtractionResultResponse.ts index 393063a..6e05508 100644 --- a/src/ts/src/models/ExtractionResultResponse.ts +++ b/src/ts/src/models/ExtractionResultResponse.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * diff --git a/src/ts/src/models/ExtractionType.ts b/src/ts/src/models/ExtractionType.ts index bd392bc..2568702 100644 --- a/src/ts/src/models/ExtractionType.ts +++ b/src/ts/src/models/ExtractionType.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * diff --git a/src/ts/src/models/FILEUPLOADAuthConfig.ts b/src/ts/src/models/FILEUPLOADAuthConfig.ts new file mode 100644 index 0000000..ddf9a9a --- /dev/null +++ b/src/ts/src/models/FILEUPLOADAuthConfig.ts @@ -0,0 +1,82 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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'; +/** + * Authentication configuration for File Upload + * @export + * @interface FILEUPLOADAuthConfig + */ +export interface FILEUPLOADAuthConfig { + /** + * Name. Example: Enter a descriptive name for this connector + * @type {string} + * @memberof FILEUPLOADAuthConfig + */ + name: string; + /** + * Path Prefix + * @type {string} + * @memberof FILEUPLOADAuthConfig + */ + pathPrefix?: string; + /** + * Choose files. Files uploaded to this connector can be used in pipelines to vectorize their contents. Note: files with the same name will be overwritten. + * @type {Array} + * @memberof FILEUPLOADAuthConfig + */ + files?: Array; +} + +/** + * Check if a given object implements the FILEUPLOADAuthConfig interface. + */ +export function instanceOfFILEUPLOADAuthConfig(value: object): value is FILEUPLOADAuthConfig { + if (!('name' in value) || value['name'] === undefined) return false; + return true; +} + +export function FILEUPLOADAuthConfigFromJSON(json: any): FILEUPLOADAuthConfig { + return FILEUPLOADAuthConfigFromJSONTyped(json, false); +} + +export function FILEUPLOADAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): FILEUPLOADAuthConfig { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'pathPrefix': json['path-prefix'] == null ? undefined : json['path-prefix'], + 'files': json['files'] == null ? undefined : json['files'], + }; +} + +export function FILEUPLOADAuthConfigToJSON(json: any): FILEUPLOADAuthConfig { + return FILEUPLOADAuthConfigToJSONTyped(json, false); +} + +export function FILEUPLOADAuthConfigToJSONTyped(value?: FILEUPLOADAuthConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'path-prefix': value['pathPrefix'], + 'files': value['files'], + }; +} + diff --git a/src/ts/src/models/FIRECRAWLAuthConfig.ts b/src/ts/src/models/FIRECRAWLAuthConfig.ts new file mode 100644 index 0000000..bc8a009 --- /dev/null +++ b/src/ts/src/models/FIRECRAWLAuthConfig.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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'; +/** + * Authentication configuration for Firecrawl + * @export + * @interface FIRECRAWLAuthConfig + */ +export interface FIRECRAWLAuthConfig { + /** + * Name. Example: Enter a descriptive name + * @type {string} + * @memberof FIRECRAWLAuthConfig + */ + name: string; + /** + * API Key. Example: Enter your Firecrawl API Key + * @type {string} + * @memberof FIRECRAWLAuthConfig + */ + apiKey: string; +} + +/** + * Check if a given object implements the FIRECRAWLAuthConfig interface. + */ +export function instanceOfFIRECRAWLAuthConfig(value: object): value is FIRECRAWLAuthConfig { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('apiKey' in value) || value['apiKey'] === undefined) return false; + return true; +} + +export function FIRECRAWLAuthConfigFromJSON(json: any): FIRECRAWLAuthConfig { + return FIRECRAWLAuthConfigFromJSONTyped(json, false); +} + +export function FIRECRAWLAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): FIRECRAWLAuthConfig { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'apiKey': json['api-key'], + }; +} + +export function FIRECRAWLAuthConfigToJSON(json: any): FIRECRAWLAuthConfig { + return FIRECRAWLAuthConfigToJSONTyped(json, false); +} + +export function FIRECRAWLAuthConfigToJSONTyped(value?: FIRECRAWLAuthConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'api-key': value['apiKey'], + }; +} + diff --git a/src/ts/src/models/FIRECRAWLConfig.ts b/src/ts/src/models/FIRECRAWLConfig.ts new file mode 100644 index 0000000..bdfee91 --- /dev/null +++ b/src/ts/src/models/FIRECRAWLConfig.ts @@ -0,0 +1,86 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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'; +/** + * Configuration for Firecrawl connector + * @export + * @interface FIRECRAWLConfig + */ +export interface FIRECRAWLConfig { + /** + * Endpoint. Example: Choose which api endpoint to use + * @type {string} + * @memberof FIRECRAWLConfig + */ + endpoint: FIRECRAWLConfigEndpointEnum; + /** + * Request Body. Example: JSON config for firecrawl's /crawl or /scrape endpoint. + * @type {object} + * @memberof FIRECRAWLConfig + */ + request: object; +} + + +/** + * @export + */ +export const FIRECRAWLConfigEndpointEnum = { + Crawl: 'Crawl', + Scrape: 'Scrape' +} as const; +export type FIRECRAWLConfigEndpointEnum = typeof FIRECRAWLConfigEndpointEnum[keyof typeof FIRECRAWLConfigEndpointEnum]; + + +/** + * Check if a given object implements the FIRECRAWLConfig interface. + */ +export function instanceOfFIRECRAWLConfig(value: object): value is FIRECRAWLConfig { + if (!('endpoint' in value) || value['endpoint'] === undefined) return false; + if (!('request' in value) || value['request'] === undefined) return false; + return true; +} + +export function FIRECRAWLConfigFromJSON(json: any): FIRECRAWLConfig { + return FIRECRAWLConfigFromJSONTyped(json, false); +} + +export function FIRECRAWLConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): FIRECRAWLConfig { + if (json == null) { + return json; + } + return { + + 'endpoint': json['endpoint'], + 'request': json['request'], + }; +} + +export function FIRECRAWLConfigToJSON(json: any): FIRECRAWLConfig { + return FIRECRAWLConfigToJSONTyped(json, false); +} + +export function FIRECRAWLConfigToJSONTyped(value?: FIRECRAWLConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'endpoint': value['endpoint'], + 'request': value['request'], + }; +} + diff --git a/src/ts/src/models/FIREFLIESAuthConfig.ts b/src/ts/src/models/FIREFLIESAuthConfig.ts new file mode 100644 index 0000000..fa3341b --- /dev/null +++ b/src/ts/src/models/FIREFLIESAuthConfig.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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'; +/** + * Authentication configuration for Fireflies.ai + * @export + * @interface FIREFLIESAuthConfig + */ +export interface FIREFLIESAuthConfig { + /** + * Name. Example: Enter a descriptive name + * @type {string} + * @memberof FIREFLIESAuthConfig + */ + name: string; + /** + * API Key. Example: Enter your Fireflies.ai API key + * @type {string} + * @memberof FIREFLIESAuthConfig + */ + apiKey: string; +} + +/** + * Check if a given object implements the FIREFLIESAuthConfig interface. + */ +export function instanceOfFIREFLIESAuthConfig(value: object): value is FIREFLIESAuthConfig { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('apiKey' in value) || value['apiKey'] === undefined) return false; + return true; +} + +export function FIREFLIESAuthConfigFromJSON(json: any): FIREFLIESAuthConfig { + return FIREFLIESAuthConfigFromJSONTyped(json, false); +} + +export function FIREFLIESAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): FIREFLIESAuthConfig { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'apiKey': json['api-key'], + }; +} + +export function FIREFLIESAuthConfigToJSON(json: any): FIREFLIESAuthConfig { + return FIREFLIESAuthConfigToJSONTyped(json, false); +} + +export function FIREFLIESAuthConfigToJSONTyped(value?: FIREFLIESAuthConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'api-key': value['apiKey'], + }; +} + diff --git a/src/ts/src/models/FIREFLIESConfig.ts b/src/ts/src/models/FIREFLIESConfig.ts new file mode 100644 index 0000000..d1e9011 --- /dev/null +++ b/src/ts/src/models/FIREFLIESConfig.ts @@ -0,0 +1,116 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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'; +/** + * Configuration for Fireflies.ai connector + * @export + * @interface FIREFLIESConfig + */ +export interface FIREFLIESConfig { + /** + * Start Date. Include meetings from this date forward. Example: Enter a date: Example 2023-12-31 + * @type {Date} + * @memberof FIREFLIESConfig + */ + startDate: Date; + /** + * End Date. Include meetings up to this date only. Example: Enter a date: Example 2023-12-31 + * @type {Date} + * @memberof FIREFLIESConfig + */ + endDate?: Date; + /** + * + * @type {string} + * @memberof FIREFLIESConfig + */ + titleFilterType: string; + /** + * Title Filter. Only include meetings with this text in the title. Example: Enter meeting title + * @type {string} + * @memberof FIREFLIESConfig + */ + titleFilter?: string; + /** + * + * @type {string} + * @memberof FIREFLIESConfig + */ + participantFilterType: string; + /** + * Participant's Email Filter. Include meetings where these participants were invited. Example: Enter participant email + * @type {string} + * @memberof FIREFLIESConfig + */ + participantFilter?: string; + /** + * Max Meetings. Enter -1 for all available meetings, or specify a limit. Example: Enter maximum number of meetings to retrieve. (-1 for all) + * @type {number} + * @memberof FIREFLIESConfig + */ + maxMeetings?: number; +} + +/** + * Check if a given object implements the FIREFLIESConfig interface. + */ +export function instanceOfFIREFLIESConfig(value: object): value is FIREFLIESConfig { + if (!('startDate' in value) || value['startDate'] === undefined) return false; + if (!('titleFilterType' in value) || value['titleFilterType'] === undefined) return false; + if (!('participantFilterType' in value) || value['participantFilterType'] === undefined) return false; + return true; +} + +export function FIREFLIESConfigFromJSON(json: any): FIREFLIESConfig { + return FIREFLIESConfigFromJSONTyped(json, false); +} + +export function FIREFLIESConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): FIREFLIESConfig { + if (json == null) { + return json; + } + return { + + 'startDate': (new Date(json['start-date'])), + 'endDate': json['end-date'] == null ? undefined : (new Date(json['end-date'])), + 'titleFilterType': json['title-filter-type'], + 'titleFilter': json['title-filter'] == null ? undefined : json['title-filter'], + 'participantFilterType': json['participant-filter-type'], + 'participantFilter': json['participant-filter'] == null ? undefined : json['participant-filter'], + 'maxMeetings': json['max-meetings'] == null ? undefined : json['max-meetings'], + }; +} + +export function FIREFLIESConfigToJSON(json: any): FIREFLIESConfig { + return FIREFLIESConfigToJSONTyped(json, false); +} + +export function FIREFLIESConfigToJSONTyped(value?: FIREFLIESConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'start-date': ((value['startDate']).toISOString().substring(0,10)), + 'end-date': value['endDate'] == null ? undefined : ((value['endDate']).toISOString().substring(0,10)), + 'title-filter-type': value['titleFilterType'], + 'title-filter': value['titleFilter'], + 'participant-filter-type': value['participantFilterType'], + 'participant-filter': value['participantFilter'], + 'max-meetings': value['maxMeetings'], + }; +} + diff --git a/src/ts/src/models/FileUpload.ts b/src/ts/src/models/FileUpload.ts new file mode 100644 index 0000000..29693e3 --- /dev/null +++ b/src/ts/src/models/FileUpload.ts @@ -0,0 +1,85 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 FileUpload + */ +export interface FileUpload { + /** + * Name of the connector + * @type {string} + * @memberof FileUpload + */ + name: string; + /** + * Connector type (must be "FILE_UPLOAD") + * @type {string} + * @memberof FileUpload + */ + type: FileUploadTypeEnum; +} + + +/** + * @export + */ +export const FileUploadTypeEnum = { + FileUpload: 'FILE_UPLOAD' +} as const; +export type FileUploadTypeEnum = typeof FileUploadTypeEnum[keyof typeof FileUploadTypeEnum]; + + +/** + * Check if a given object implements the FileUpload interface. + */ +export function instanceOfFileUpload(value: object): value is FileUpload { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('type' in value) || value['type'] === undefined) return false; + return true; +} + +export function FileUploadFromJSON(json: any): FileUpload { + return FileUploadFromJSONTyped(json, false); +} + +export function FileUploadFromJSONTyped(json: any, ignoreDiscriminator: boolean): FileUpload { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'type': json['type'], + }; +} + +export function FileUploadToJSON(json: any): FileUpload { + return FileUploadToJSONTyped(json, false); +} + +export function FileUploadToJSONTyped(value?: FileUpload | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'type': value['type'], + }; +} + diff --git a/src/ts/src/models/FileUpload1.ts b/src/ts/src/models/FileUpload1.ts new file mode 100644 index 0000000..b5f67c9 --- /dev/null +++ b/src/ts/src/models/FileUpload1.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 { FILEUPLOADAuthConfig } from './FILEUPLOADAuthConfig'; +import { + FILEUPLOADAuthConfigFromJSON, + FILEUPLOADAuthConfigFromJSONTyped, + FILEUPLOADAuthConfigToJSON, + FILEUPLOADAuthConfigToJSONTyped, +} from './FILEUPLOADAuthConfig'; + +/** + * + * @export + * @interface FileUpload1 + */ +export interface FileUpload1 { + /** + * + * @type {FILEUPLOADAuthConfig} + * @memberof FileUpload1 + */ + config?: FILEUPLOADAuthConfig; +} + +/** + * Check if a given object implements the FileUpload1 interface. + */ +export function instanceOfFileUpload1(value: object): value is FileUpload1 { + return true; +} + +export function FileUpload1FromJSON(json: any): FileUpload1 { + return FileUpload1FromJSONTyped(json, false); +} + +export function FileUpload1FromJSONTyped(json: any, ignoreDiscriminator: boolean): FileUpload1 { + if (json == null) { + return json; + } + return { + + 'config': json['config'] == null ? undefined : FILEUPLOADAuthConfigFromJSON(json['config']), + }; +} + +export function FileUpload1ToJSON(json: any): FileUpload1 { + return FileUpload1ToJSONTyped(json, false); +} + +export function FileUpload1ToJSONTyped(value?: FileUpload1 | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'config': FILEUPLOADAuthConfigToJSON(value['config']), + }; +} + diff --git a/src/ts/src/models/Firecrawl.ts b/src/ts/src/models/Firecrawl.ts new file mode 100644 index 0000000..fe3ffd8 --- /dev/null +++ b/src/ts/src/models/Firecrawl.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 { FIRECRAWLConfig } from './FIRECRAWLConfig'; +import { + FIRECRAWLConfigFromJSON, + FIRECRAWLConfigFromJSONTyped, + FIRECRAWLConfigToJSON, + FIRECRAWLConfigToJSONTyped, +} from './FIRECRAWLConfig'; + +/** + * + * @export + * @interface Firecrawl + */ +export interface Firecrawl { + /** + * Name of the connector + * @type {string} + * @memberof Firecrawl + */ + name: string; + /** + * Connector type (must be "FIRECRAWL") + * @type {string} + * @memberof Firecrawl + */ + type: FirecrawlTypeEnum; + /** + * + * @type {FIRECRAWLConfig} + * @memberof Firecrawl + */ + config: FIRECRAWLConfig; +} + + +/** + * @export + */ +export const FirecrawlTypeEnum = { + Firecrawl: 'FIRECRAWL' +} as const; +export type FirecrawlTypeEnum = typeof FirecrawlTypeEnum[keyof typeof FirecrawlTypeEnum]; + + +/** + * Check if a given object implements the Firecrawl interface. + */ +export function instanceOfFirecrawl(value: object): value is Firecrawl { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('type' in value) || value['type'] === undefined) return false; + if (!('config' in value) || value['config'] === undefined) return false; + return true; +} + +export function FirecrawlFromJSON(json: any): Firecrawl { + return FirecrawlFromJSONTyped(json, false); +} + +export function FirecrawlFromJSONTyped(json: any, ignoreDiscriminator: boolean): Firecrawl { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'type': json['type'], + 'config': FIRECRAWLConfigFromJSON(json['config']), + }; +} + +export function FirecrawlToJSON(json: any): Firecrawl { + return FirecrawlToJSONTyped(json, false); +} + +export function FirecrawlToJSONTyped(value?: Firecrawl | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'type': value['type'], + 'config': FIRECRAWLConfigToJSON(value['config']), + }; +} + diff --git a/src/ts/src/models/Firecrawl1.ts b/src/ts/src/models/Firecrawl1.ts new file mode 100644 index 0000000..23b9c35 --- /dev/null +++ b/src/ts/src/models/Firecrawl1.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 { FIRECRAWLConfig } from './FIRECRAWLConfig'; +import { + FIRECRAWLConfigFromJSON, + FIRECRAWLConfigFromJSONTyped, + FIRECRAWLConfigToJSON, + FIRECRAWLConfigToJSONTyped, +} from './FIRECRAWLConfig'; + +/** + * + * @export + * @interface Firecrawl1 + */ +export interface Firecrawl1 { + /** + * + * @type {FIRECRAWLConfig} + * @memberof Firecrawl1 + */ + config?: FIRECRAWLConfig; +} + +/** + * Check if a given object implements the Firecrawl1 interface. + */ +export function instanceOfFirecrawl1(value: object): value is Firecrawl1 { + return true; +} + +export function Firecrawl1FromJSON(json: any): Firecrawl1 { + return Firecrawl1FromJSONTyped(json, false); +} + +export function Firecrawl1FromJSONTyped(json: any, ignoreDiscriminator: boolean): Firecrawl1 { + if (json == null) { + return json; + } + return { + + 'config': json['config'] == null ? undefined : FIRECRAWLConfigFromJSON(json['config']), + }; +} + +export function Firecrawl1ToJSON(json: any): Firecrawl1 { + return Firecrawl1ToJSONTyped(json, false); +} + +export function Firecrawl1ToJSONTyped(value?: Firecrawl1 | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'config': FIRECRAWLConfigToJSON(value['config']), + }; +} + diff --git a/src/ts/src/models/Fireflies.ts b/src/ts/src/models/Fireflies.ts new file mode 100644 index 0000000..a7886d2 --- /dev/null +++ b/src/ts/src/models/Fireflies.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 { FIREFLIESConfig } from './FIREFLIESConfig'; +import { + FIREFLIESConfigFromJSON, + FIREFLIESConfigFromJSONTyped, + FIREFLIESConfigToJSON, + FIREFLIESConfigToJSONTyped, +} from './FIREFLIESConfig'; + +/** + * + * @export + * @interface Fireflies + */ +export interface Fireflies { + /** + * Name of the connector + * @type {string} + * @memberof Fireflies + */ + name: string; + /** + * Connector type (must be "FIREFLIES") + * @type {string} + * @memberof Fireflies + */ + type: FirefliesTypeEnum; + /** + * + * @type {FIREFLIESConfig} + * @memberof Fireflies + */ + config: FIREFLIESConfig; +} + + +/** + * @export + */ +export const FirefliesTypeEnum = { + Fireflies: 'FIREFLIES' +} as const; +export type FirefliesTypeEnum = typeof FirefliesTypeEnum[keyof typeof FirefliesTypeEnum]; + + +/** + * Check if a given object implements the Fireflies interface. + */ +export function instanceOfFireflies(value: object): value is Fireflies { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('type' in value) || value['type'] === undefined) return false; + if (!('config' in value) || value['config'] === undefined) return false; + return true; +} + +export function FirefliesFromJSON(json: any): Fireflies { + return FirefliesFromJSONTyped(json, false); +} + +export function FirefliesFromJSONTyped(json: any, ignoreDiscriminator: boolean): Fireflies { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'type': json['type'], + 'config': FIREFLIESConfigFromJSON(json['config']), + }; +} + +export function FirefliesToJSON(json: any): Fireflies { + return FirefliesToJSONTyped(json, false); +} + +export function FirefliesToJSONTyped(value?: Fireflies | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'type': value['type'], + 'config': FIREFLIESConfigToJSON(value['config']), + }; +} + diff --git a/src/ts/src/models/Fireflies1.ts b/src/ts/src/models/Fireflies1.ts new file mode 100644 index 0000000..04a363a --- /dev/null +++ b/src/ts/src/models/Fireflies1.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 { FIREFLIESConfig } from './FIREFLIESConfig'; +import { + FIREFLIESConfigFromJSON, + FIREFLIESConfigFromJSONTyped, + FIREFLIESConfigToJSON, + FIREFLIESConfigToJSONTyped, +} from './FIREFLIESConfig'; + +/** + * + * @export + * @interface Fireflies1 + */ +export interface Fireflies1 { + /** + * + * @type {FIREFLIESConfig} + * @memberof Fireflies1 + */ + config?: FIREFLIESConfig; +} + +/** + * Check if a given object implements the Fireflies1 interface. + */ +export function instanceOfFireflies1(value: object): value is Fireflies1 { + return true; +} + +export function Fireflies1FromJSON(json: any): Fireflies1 { + return Fireflies1FromJSONTyped(json, false); +} + +export function Fireflies1FromJSONTyped(json: any, ignoreDiscriminator: boolean): Fireflies1 { + if (json == null) { + return json; + } + return { + + 'config': json['config'] == null ? undefined : FIREFLIESConfigFromJSON(json['config']), + }; +} + +export function Fireflies1ToJSON(json: any): Fireflies1 { + return Fireflies1ToJSONTyped(json, false); +} + +export function Fireflies1ToJSONTyped(value?: Fireflies1 | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'config': FIREFLIESConfigToJSON(value['config']), + }; +} + diff --git a/src/ts/src/models/GCSAuthConfig.ts b/src/ts/src/models/GCSAuthConfig.ts new file mode 100644 index 0000000..a305bb6 --- /dev/null +++ b/src/ts/src/models/GCSAuthConfig.ts @@ -0,0 +1,84 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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'; +/** + * Authentication configuration for GCP Cloud Storage + * @export + * @interface GCSAuthConfig + */ +export interface GCSAuthConfig { + /** + * Name. Example: Enter a descriptive name + * @type {string} + * @memberof GCSAuthConfig + */ + name: string; + /** + * Service Account JSON. Example: Enter the JSON key file for the service account + * @type {string} + * @memberof GCSAuthConfig + */ + serviceAccountJson: string; + /** + * Bucket. Example: Enter bucket name + * @type {string} + * @memberof GCSAuthConfig + */ + bucketName: string; +} + +/** + * Check if a given object implements the GCSAuthConfig interface. + */ +export function instanceOfGCSAuthConfig(value: object): value is GCSAuthConfig { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('serviceAccountJson' in value) || value['serviceAccountJson'] === undefined) return false; + if (!('bucketName' in value) || value['bucketName'] === undefined) return false; + return true; +} + +export function GCSAuthConfigFromJSON(json: any): GCSAuthConfig { + return GCSAuthConfigFromJSONTyped(json, false); +} + +export function GCSAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): GCSAuthConfig { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'serviceAccountJson': json['service-account-json'], + 'bucketName': json['bucket-name'], + }; +} + +export function GCSAuthConfigToJSON(json: any): GCSAuthConfig { + return GCSAuthConfigToJSONTyped(json, false); +} + +export function GCSAuthConfigToJSONTyped(value?: GCSAuthConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'service-account-json': value['serviceAccountJson'], + 'bucket-name': value['bucketName'], + }; +} + diff --git a/src/ts/src/models/GCSConfig.ts b/src/ts/src/models/GCSConfig.ts new file mode 100644 index 0000000..a7ebfdf --- /dev/null +++ b/src/ts/src/models/GCSConfig.ts @@ -0,0 +1,127 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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'; +/** + * Configuration for GCP Cloud Storage connector + * @export + * @interface GCSConfig + */ +export interface GCSConfig { + /** + * File Extensions + * @type {Array} + * @memberof GCSConfig + */ + fileExtensions: GCSConfigFileExtensionsEnum; + /** + * Check for updates every (seconds) + * @type {number} + * @memberof GCSConfig + */ + idleTime: number; + /** + * Recursively scan all folders in the bucket + * @type {boolean} + * @memberof GCSConfig + */ + recursive?: boolean; + /** + * Path Prefix + * @type {string} + * @memberof GCSConfig + */ + pathPrefix?: string; + /** + * Path Metadata Regex + * @type {string} + * @memberof GCSConfig + */ + pathMetadataRegex?: string; + /** + * Path Regex Group Names. Example: Enter Group Name + * @type {string} + * @memberof GCSConfig + */ + pathRegexGroupNames?: string; +} + + +/** + * @export + */ +export const GCSConfigFileExtensionsEnum = { + Pdf: 'pdf', + Docdocxgdocodtrtfepub: 'doc,docx,gdoc,odt,rtf,epub', + Pptpptxgslides: 'ppt,pptx,gslides', + Xlsxlsxgsheetsods: 'xls,xlsx,gsheets,ods', + Emlmsg: 'eml,msg', + Txt: 'txt', + Htmlhtm: 'html,htm', + Md: 'md', + Json: 'json', + Csv: 'csv', + Jpgjpegpngwebpsvggif: 'jpg,jpeg,png,webp,svg,gif' +} as const; +export type GCSConfigFileExtensionsEnum = typeof GCSConfigFileExtensionsEnum[keyof typeof GCSConfigFileExtensionsEnum]; + + +/** + * Check if a given object implements the GCSConfig interface. + */ +export function instanceOfGCSConfig(value: object): value is GCSConfig { + if (!('fileExtensions' in value) || value['fileExtensions'] === undefined) return false; + if (!('idleTime' in value) || value['idleTime'] === undefined) return false; + return true; +} + +export function GCSConfigFromJSON(json: any): GCSConfig { + return GCSConfigFromJSONTyped(json, false); +} + +export function GCSConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): GCSConfig { + if (json == null) { + return json; + } + return { + + 'fileExtensions': json['file-extensions'], + 'idleTime': json['idle-time'], + 'recursive': json['recursive'] == null ? undefined : json['recursive'], + 'pathPrefix': json['path-prefix'] == null ? undefined : json['path-prefix'], + 'pathMetadataRegex': json['path-metadata-regex'] == null ? undefined : json['path-metadata-regex'], + 'pathRegexGroupNames': json['path-regex-group-names'] == null ? undefined : json['path-regex-group-names'], + }; +} + +export function GCSConfigToJSON(json: any): GCSConfig { + return GCSConfigToJSONTyped(json, false); +} + +export function GCSConfigToJSONTyped(value?: GCSConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'file-extensions': value['fileExtensions'], + 'idle-time': value['idleTime'], + 'recursive': value['recursive'], + 'path-prefix': value['pathPrefix'], + 'path-metadata-regex': value['pathMetadataRegex'], + 'path-regex-group-names': value['pathRegexGroupNames'], + }; +} + diff --git a/src/ts/src/models/GITHUBAuthConfig.ts b/src/ts/src/models/GITHUBAuthConfig.ts new file mode 100644 index 0000000..1e834b3 --- /dev/null +++ b/src/ts/src/models/GITHUBAuthConfig.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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'; +/** + * Authentication configuration for GitHub + * @export + * @interface GITHUBAuthConfig + */ +export interface GITHUBAuthConfig { + /** + * Name. Example: Enter a descriptive name + * @type {string} + * @memberof GITHUBAuthConfig + */ + name: string; + /** + * Personal Access Token. Example: Enter your GitHub personal access token + * @type {string} + * @memberof GITHUBAuthConfig + */ + oauthToken: string; +} + +/** + * Check if a given object implements the GITHUBAuthConfig interface. + */ +export function instanceOfGITHUBAuthConfig(value: object): value is GITHUBAuthConfig { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('oauthToken' in value) || value['oauthToken'] === undefined) return false; + return true; +} + +export function GITHUBAuthConfigFromJSON(json: any): GITHUBAuthConfig { + return GITHUBAuthConfigFromJSONTyped(json, false); +} + +export function GITHUBAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): GITHUBAuthConfig { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'oauthToken': json['oauth-token'], + }; +} + +export function GITHUBAuthConfigToJSON(json: any): GITHUBAuthConfig { + return GITHUBAuthConfigToJSONTyped(json, false); +} + +export function GITHUBAuthConfigToJSONTyped(value?: GITHUBAuthConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'oauth-token': value['oauthToken'], + }; +} + diff --git a/src/ts/src/models/GITHUBConfig.ts b/src/ts/src/models/GITHUBConfig.ts new file mode 100644 index 0000000..e35b316 --- /dev/null +++ b/src/ts/src/models/GITHUBConfig.ts @@ -0,0 +1,158 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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'; +/** + * Configuration for GitHub connector + * @export + * @interface GITHUBConfig + */ +export interface GITHUBConfig { + /** + * Repositories. Example: Example: owner1/repo1 + * @type {string} + * @memberof GITHUBConfig + */ + repositories: string; + /** + * Include Pull Requests + * @type {boolean} + * @memberof GITHUBConfig + */ + includePullRequests: boolean; + /** + * Pull Request Status + * @type {string} + * @memberof GITHUBConfig + */ + pullRequestStatus: GITHUBConfigPullRequestStatusEnum; + /** + * Pull Request Labels. Example: Optionally filter by label. E.g. fix + * @type {string} + * @memberof GITHUBConfig + */ + pullRequestLabels?: string; + /** + * Include Issues + * @type {boolean} + * @memberof GITHUBConfig + */ + includeIssues: boolean; + /** + * Issue Status + * @type {string} + * @memberof GITHUBConfig + */ + issueStatus: GITHUBConfigIssueStatusEnum; + /** + * Issue Labels. Example: Optionally filter by label. E.g. bug + * @type {string} + * @memberof GITHUBConfig + */ + issueLabels?: string; + /** + * Max Items. Example: Enter maximum number of items to fetch + * @type {number} + * @memberof GITHUBConfig + */ + maxItems: number; + /** + * Created After. Filter for items created after this date. Example: Enter a date: Example 2012-12-31 + * @type {Date} + * @memberof GITHUBConfig + */ + createdAfter?: Date; +} + + +/** + * @export + */ +export const GITHUBConfigPullRequestStatusEnum = { + All: 'all', + Open: 'open', + Closed: 'closed', + Merged: 'merged' +} as const; +export type GITHUBConfigPullRequestStatusEnum = typeof GITHUBConfigPullRequestStatusEnum[keyof typeof GITHUBConfigPullRequestStatusEnum]; + +/** + * @export + */ +export const GITHUBConfigIssueStatusEnum = { + All: 'all', + Open: 'open', + Closed: 'closed' +} as const; +export type GITHUBConfigIssueStatusEnum = typeof GITHUBConfigIssueStatusEnum[keyof typeof GITHUBConfigIssueStatusEnum]; + + +/** + * Check if a given object implements the GITHUBConfig interface. + */ +export function instanceOfGITHUBConfig(value: object): value is GITHUBConfig { + if (!('repositories' in value) || value['repositories'] === undefined) return false; + if (!('includePullRequests' in value) || value['includePullRequests'] === undefined) return false; + if (!('pullRequestStatus' in value) || value['pullRequestStatus'] === undefined) return false; + if (!('includeIssues' in value) || value['includeIssues'] === undefined) return false; + if (!('issueStatus' in value) || value['issueStatus'] === undefined) return false; + if (!('maxItems' in value) || value['maxItems'] === undefined) return false; + return true; +} + +export function GITHUBConfigFromJSON(json: any): GITHUBConfig { + return GITHUBConfigFromJSONTyped(json, false); +} + +export function GITHUBConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): GITHUBConfig { + if (json == null) { + return json; + } + return { + + 'repositories': json['repositories'], + 'includePullRequests': json['include-pull-requests'], + 'pullRequestStatus': json['pull-request-status'], + 'pullRequestLabels': json['pull-request-labels'] == null ? undefined : json['pull-request-labels'], + 'includeIssues': json['include-issues'], + 'issueStatus': json['issue-status'], + 'issueLabels': json['issue-labels'] == null ? undefined : json['issue-labels'], + 'maxItems': json['max-items'], + 'createdAfter': json['created-after'] == null ? undefined : (new Date(json['created-after'])), + }; +} + +export function GITHUBConfigToJSON(json: any): GITHUBConfig { + return GITHUBConfigToJSONTyped(json, false); +} + +export function GITHUBConfigToJSONTyped(value?: GITHUBConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'repositories': value['repositories'], + 'include-pull-requests': value['includePullRequests'], + 'pull-request-status': value['pullRequestStatus'], + 'pull-request-labels': value['pullRequestLabels'], + 'include-issues': value['includeIssues'], + 'issue-status': value['issueStatus'], + 'issue-labels': value['issueLabels'], + 'max-items': value['maxItems'], + 'created-after': value['createdAfter'] == null ? undefined : ((value['createdAfter']).toISOString().substring(0,10)), + }; +} + diff --git a/src/ts/src/models/GMAILAuthConfig.ts b/src/ts/src/models/GMAILAuthConfig.ts new file mode 100644 index 0000000..5aa9a50 --- /dev/null +++ b/src/ts/src/models/GMAILAuthConfig.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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'; +/** + * Authentication configuration for Gmail + * @export + * @interface GMAILAuthConfig + */ +export interface GMAILAuthConfig { + /** + * Name. Example: Enter a descriptive name + * @type {string} + * @memberof GMAILAuthConfig + */ + name: string; + /** + * Connect Gmail to Vectorize. Example: Authorize + * @type {string} + * @memberof GMAILAuthConfig + */ + refreshToken: string; +} + +/** + * Check if a given object implements the GMAILAuthConfig interface. + */ +export function instanceOfGMAILAuthConfig(value: object): value is GMAILAuthConfig { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('refreshToken' in value) || value['refreshToken'] === undefined) return false; + return true; +} + +export function GMAILAuthConfigFromJSON(json: any): GMAILAuthConfig { + return GMAILAuthConfigFromJSONTyped(json, false); +} + +export function GMAILAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): GMAILAuthConfig { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'refreshToken': json['refresh-token'], + }; +} + +export function GMAILAuthConfigToJSON(json: any): GMAILAuthConfig { + return GMAILAuthConfigToJSONTyped(json, false); +} + +export function GMAILAuthConfigToJSONTyped(value?: GMAILAuthConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'refresh-token': value['refreshToken'], + }; +} + diff --git a/src/ts/src/models/GMAILConfig.ts b/src/ts/src/models/GMAILConfig.ts new file mode 100644 index 0000000..5d776de --- /dev/null +++ b/src/ts/src/models/GMAILConfig.ts @@ -0,0 +1,174 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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'; +/** + * Configuration for Gmail connector + * @export + * @interface GMAILConfig + */ +export interface GMAILConfig { + /** + * + * @type {string} + * @memberof GMAILConfig + */ + fromFilterType: string; + /** + * + * @type {string} + * @memberof GMAILConfig + */ + toFilterType: string; + /** + * + * @type {string} + * @memberof GMAILConfig + */ + subjectFilterType: string; + /** + * + * @type {string} + * @memberof GMAILConfig + */ + labelFilterType: string; + /** + * From Address Filter. Only include emails from these senders. Example: Add sender email(s) + * @type {string} + * @memberof GMAILConfig + */ + from?: string; + /** + * To Address Filter. Only include emails sent to these recipients. Example: Add recipient email(s) + * @type {string} + * @memberof GMAILConfig + */ + to?: string; + /** + * Subject Filter. Include emails with these keywords in the subject line. Example: Add subject keywords + * @type {string} + * @memberof GMAILConfig + */ + subject?: string; + /** + * Start Date. Only include emails sent after this date (exclusive). Format: YYYY-MM-DD.. Example: e.g., 2024-01-01 + * @type {Date} + * @memberof GMAILConfig + */ + startDate?: Date; + /** + * End Date. Only include emails sent before this date (exclusive). Format: YYYY-MM-DD.. Example: e.g., 2024-01-31 + * @type {Date} + * @memberof GMAILConfig + */ + endDate?: Date; + /** + * Maximum Results. Enter -1 for all available emails, or specify a limit. . Example: Enter maximum number of threads to retrieve + * @type {number} + * @memberof GMAILConfig + */ + maxResults?: number; + /** + * Messages to Fetch. Select which categories of messages to include in the import. + * @type {Array} + * @memberof GMAILConfig + */ + messagesToFetch?: GMAILConfigMessagesToFetchEnum; + /** + * Label Filters. Include emails with these labels. Example: e.g., INBOX, IMPORTANT, CATEGORY_SOCIAL + * @type {string} + * @memberof GMAILConfig + */ + labelIds?: string; +} + + +/** + * @export + */ +export const GMAILConfigMessagesToFetchEnum = { + All: 'all', + Inbox: 'inbox', + Sent: 'sent', + Archive: 'archive', + SpamTrash: 'spam-trash', + Unread: 'unread', + Starred: 'starred', + Important: 'important' +} as const; +export type GMAILConfigMessagesToFetchEnum = typeof GMAILConfigMessagesToFetchEnum[keyof typeof GMAILConfigMessagesToFetchEnum]; + + +/** + * Check if a given object implements the GMAILConfig interface. + */ +export function instanceOfGMAILConfig(value: object): value is GMAILConfig { + if (!('fromFilterType' in value) || value['fromFilterType'] === undefined) return false; + if (!('toFilterType' in value) || value['toFilterType'] === undefined) return false; + if (!('subjectFilterType' in value) || value['subjectFilterType'] === undefined) return false; + if (!('labelFilterType' in value) || value['labelFilterType'] === undefined) return false; + return true; +} + +export function GMAILConfigFromJSON(json: any): GMAILConfig { + return GMAILConfigFromJSONTyped(json, false); +} + +export function GMAILConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): GMAILConfig { + if (json == null) { + return json; + } + return { + + 'fromFilterType': json['from-filter-type'], + 'toFilterType': json['to-filter-type'], + 'subjectFilterType': json['subject-filter-type'], + 'labelFilterType': json['label-filter-type'], + 'from': json['from'] == null ? undefined : json['from'], + 'to': json['to'] == null ? undefined : json['to'], + 'subject': json['subject'] == null ? undefined : json['subject'], + 'startDate': json['start-date'] == null ? undefined : (new Date(json['start-date'])), + 'endDate': json['end-date'] == null ? undefined : (new Date(json['end-date'])), + 'maxResults': json['max-results'] == null ? undefined : json['max-results'], + 'messagesToFetch': json['messages-to-fetch'] == null ? undefined : json['messages-to-fetch'], + 'labelIds': json['label-ids'] == null ? undefined : json['label-ids'], + }; +} + +export function GMAILConfigToJSON(json: any): GMAILConfig { + return GMAILConfigToJSONTyped(json, false); +} + +export function GMAILConfigToJSONTyped(value?: GMAILConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'from-filter-type': value['fromFilterType'], + 'to-filter-type': value['toFilterType'], + 'subject-filter-type': value['subjectFilterType'], + 'label-filter-type': value['labelFilterType'], + 'from': value['from'], + 'to': value['to'], + 'subject': value['subject'], + 'start-date': value['startDate'] == null ? undefined : ((value['startDate']).toISOString().substring(0,10)), + 'end-date': value['endDate'] == null ? undefined : ((value['endDate']).toISOString().substring(0,10)), + 'max-results': value['maxResults'], + 'messages-to-fetch': value['messagesToFetch'], + 'label-ids': value['labelIds'], + }; +} + diff --git a/src/ts/src/models/GOOGLEDRIVEAuthConfig.ts b/src/ts/src/models/GOOGLEDRIVEAuthConfig.ts new file mode 100644 index 0000000..f9c7cc7 --- /dev/null +++ b/src/ts/src/models/GOOGLEDRIVEAuthConfig.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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'; +/** + * Authentication configuration for Google Drive (Service Account) + * @export + * @interface GOOGLEDRIVEAuthConfig + */ +export interface GOOGLEDRIVEAuthConfig { + /** + * Name. Example: Enter a descriptive name + * @type {string} + * @memberof GOOGLEDRIVEAuthConfig + */ + name: string; + /** + * Service Account JSON. Example: Enter the JSON key file for the service account + * @type {string} + * @memberof GOOGLEDRIVEAuthConfig + */ + serviceAccountJson: string; +} + +/** + * Check if a given object implements the GOOGLEDRIVEAuthConfig interface. + */ +export function instanceOfGOOGLEDRIVEAuthConfig(value: object): value is GOOGLEDRIVEAuthConfig { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('serviceAccountJson' in value) || value['serviceAccountJson'] === undefined) return false; + return true; +} + +export function GOOGLEDRIVEAuthConfigFromJSON(json: any): GOOGLEDRIVEAuthConfig { + return GOOGLEDRIVEAuthConfigFromJSONTyped(json, false); +} + +export function GOOGLEDRIVEAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): GOOGLEDRIVEAuthConfig { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'serviceAccountJson': json['service-account-json'], + }; +} + +export function GOOGLEDRIVEAuthConfigToJSON(json: any): GOOGLEDRIVEAuthConfig { + return GOOGLEDRIVEAuthConfigToJSONTyped(json, false); +} + +export function GOOGLEDRIVEAuthConfigToJSONTyped(value?: GOOGLEDRIVEAuthConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'service-account-json': value['serviceAccountJson'], + }; +} + diff --git a/src/ts/src/models/GOOGLEDRIVEConfig.ts b/src/ts/src/models/GOOGLEDRIVEConfig.ts new file mode 100644 index 0000000..8a1d280 --- /dev/null +++ b/src/ts/src/models/GOOGLEDRIVEConfig.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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'; +/** + * Configuration for Google Drive (Service Account) connector + * @export + * @interface GOOGLEDRIVEConfig + */ +export interface GOOGLEDRIVEConfig { + /** + * File Extensions + * @type {Array} + * @memberof GOOGLEDRIVEConfig + */ + fileExtensions: GOOGLEDRIVEConfigFileExtensionsEnum; + /** + * Restrict ingest to these folder URLs (optional). Example: Enter Folder URLs. Example: https://drive.google.com/drive/folders/1234aBCd5678_eFgH9012iJKL3456opqr + * @type {string} + * @memberof GOOGLEDRIVEConfig + */ + rootParents?: string; + /** + * Polling Interval (seconds). Example: Enter polling interval in seconds + * @type {number} + * @memberof GOOGLEDRIVEConfig + */ + idleTime?: number; +} + + +/** + * @export + */ +export const GOOGLEDRIVEConfigFileExtensionsEnum = { + Pdf: 'pdf', + Docdocxgdocodtrtfepub: 'doc,docx,gdoc,odt,rtf,epub', + Pptpptxgslides: 'ppt,pptx,gslides', + Xlsxlsxgsheetsods: 'xls,xlsx,gsheets,ods', + Emlmsg: 'eml,msg', + Txt: 'txt', + Htmlhtm: 'html,htm', + Md: 'md', + Json: 'json', + Csv: 'csv', + Jpgjpegpngwebpsvggif: 'jpg,jpeg,png,webp,svg,gif' +} as const; +export type GOOGLEDRIVEConfigFileExtensionsEnum = typeof GOOGLEDRIVEConfigFileExtensionsEnum[keyof typeof GOOGLEDRIVEConfigFileExtensionsEnum]; + + +/** + * Check if a given object implements the GOOGLEDRIVEConfig interface. + */ +export function instanceOfGOOGLEDRIVEConfig(value: object): value is GOOGLEDRIVEConfig { + if (!('fileExtensions' in value) || value['fileExtensions'] === undefined) return false; + return true; +} + +export function GOOGLEDRIVEConfigFromJSON(json: any): GOOGLEDRIVEConfig { + return GOOGLEDRIVEConfigFromJSONTyped(json, false); +} + +export function GOOGLEDRIVEConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): GOOGLEDRIVEConfig { + if (json == null) { + return json; + } + return { + + 'fileExtensions': json['file-extensions'], + 'rootParents': json['root-parents'] == null ? undefined : json['root-parents'], + 'idleTime': json['idle-time'] == null ? undefined : json['idle-time'], + }; +} + +export function GOOGLEDRIVEConfigToJSON(json: any): GOOGLEDRIVEConfig { + return GOOGLEDRIVEConfigToJSONTyped(json, false); +} + +export function GOOGLEDRIVEConfigToJSONTyped(value?: GOOGLEDRIVEConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'file-extensions': value['fileExtensions'], + 'root-parents': value['rootParents'], + 'idle-time': value['idleTime'], + }; +} + diff --git a/src/ts/src/models/GOOGLEDRIVEOAUTHAuthConfig.ts b/src/ts/src/models/GOOGLEDRIVEOAUTHAuthConfig.ts new file mode 100644 index 0000000..063ec7d --- /dev/null +++ b/src/ts/src/models/GOOGLEDRIVEOAUTHAuthConfig.ts @@ -0,0 +1,99 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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'; +/** + * Authentication configuration for Google Drive OAuth + * @export + * @interface GOOGLEDRIVEOAUTHAuthConfig + */ +export interface GOOGLEDRIVEOAUTHAuthConfig { + /** + * Name. Example: Enter a descriptive name + * @type {string} + * @memberof GOOGLEDRIVEOAUTHAuthConfig + */ + name: string; + /** + * Authorized User + * @type {string} + * @memberof GOOGLEDRIVEOAUTHAuthConfig + */ + authorizedUser?: string; + /** + * Connect Google Drive to Vectorize. Example: Authorize + * @type {string} + * @memberof GOOGLEDRIVEOAUTHAuthConfig + */ + selectionDetails: string; + /** + * + * @type {object} + * @memberof GOOGLEDRIVEOAUTHAuthConfig + */ + editedUsers?: object; + /** + * + * @type {object} + * @memberof GOOGLEDRIVEOAUTHAuthConfig + */ + reconnectUsers?: object; +} + +/** + * Check if a given object implements the GOOGLEDRIVEOAUTHAuthConfig interface. + */ +export function instanceOfGOOGLEDRIVEOAUTHAuthConfig(value: object): value is GOOGLEDRIVEOAUTHAuthConfig { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('selectionDetails' in value) || value['selectionDetails'] === undefined) return false; + return true; +} + +export function GOOGLEDRIVEOAUTHAuthConfigFromJSON(json: any): GOOGLEDRIVEOAUTHAuthConfig { + return GOOGLEDRIVEOAUTHAuthConfigFromJSONTyped(json, false); +} + +export function GOOGLEDRIVEOAUTHAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): GOOGLEDRIVEOAUTHAuthConfig { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'authorizedUser': json['authorized-user'] == null ? undefined : json['authorized-user'], + 'selectionDetails': json['selection-details'], + 'editedUsers': json['editedUsers'] == null ? undefined : json['editedUsers'], + 'reconnectUsers': json['reconnectUsers'] == null ? undefined : json['reconnectUsers'], + }; +} + +export function GOOGLEDRIVEOAUTHAuthConfigToJSON(json: any): GOOGLEDRIVEOAUTHAuthConfig { + return GOOGLEDRIVEOAUTHAuthConfigToJSONTyped(json, false); +} + +export function GOOGLEDRIVEOAUTHAuthConfigToJSONTyped(value?: GOOGLEDRIVEOAUTHAuthConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'authorized-user': value['authorizedUser'], + 'selection-details': value['selectionDetails'], + 'editedUsers': value['editedUsers'], + 'reconnectUsers': value['reconnectUsers'], + }; +} + diff --git a/src/ts/src/models/GOOGLEDRIVEOAUTHConfig.ts b/src/ts/src/models/GOOGLEDRIVEOAUTHConfig.ts new file mode 100644 index 0000000..bcdaed6 --- /dev/null +++ b/src/ts/src/models/GOOGLEDRIVEOAUTHConfig.ts @@ -0,0 +1,94 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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'; +/** + * Configuration for Google Drive OAuth connector + * @export + * @interface GOOGLEDRIVEOAUTHConfig + */ +export interface GOOGLEDRIVEOAUTHConfig { + /** + * File Extensions + * @type {Array} + * @memberof GOOGLEDRIVEOAUTHConfig + */ + fileExtensions: GOOGLEDRIVEOAUTHConfigFileExtensionsEnum; + /** + * Polling Interval (seconds). Example: Enter polling interval in seconds + * @type {number} + * @memberof GOOGLEDRIVEOAUTHConfig + */ + idleTime?: number; +} + + +/** + * @export + */ +export const GOOGLEDRIVEOAUTHConfigFileExtensionsEnum = { + Pdf: 'pdf', + Docdocxgdocodtrtfepub: 'doc,docx,gdoc,odt,rtf,epub', + Pptpptxgslides: 'ppt,pptx,gslides', + Xlsxlsxgsheetsods: 'xls,xlsx,gsheets,ods', + Emlmsg: 'eml,msg', + Txt: 'txt', + Htmlhtm: 'html,htm', + Md: 'md', + Json: 'json', + Csv: 'csv', + Jpgjpegpngwebpsvggif: 'jpg,jpeg,png,webp,svg,gif' +} as const; +export type GOOGLEDRIVEOAUTHConfigFileExtensionsEnum = typeof GOOGLEDRIVEOAUTHConfigFileExtensionsEnum[keyof typeof GOOGLEDRIVEOAUTHConfigFileExtensionsEnum]; + + +/** + * Check if a given object implements the GOOGLEDRIVEOAUTHConfig interface. + */ +export function instanceOfGOOGLEDRIVEOAUTHConfig(value: object): value is GOOGLEDRIVEOAUTHConfig { + if (!('fileExtensions' in value) || value['fileExtensions'] === undefined) return false; + return true; +} + +export function GOOGLEDRIVEOAUTHConfigFromJSON(json: any): GOOGLEDRIVEOAUTHConfig { + return GOOGLEDRIVEOAUTHConfigFromJSONTyped(json, false); +} + +export function GOOGLEDRIVEOAUTHConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): GOOGLEDRIVEOAUTHConfig { + if (json == null) { + return json; + } + return { + + 'fileExtensions': json['file-extensions'], + 'idleTime': json['idle-time'] == null ? undefined : json['idle-time'], + }; +} + +export function GOOGLEDRIVEOAUTHConfigToJSON(json: any): GOOGLEDRIVEOAUTHConfig { + return GOOGLEDRIVEOAUTHConfigToJSONTyped(json, false); +} + +export function GOOGLEDRIVEOAUTHConfigToJSONTyped(value?: GOOGLEDRIVEOAUTHConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'file-extensions': value['fileExtensions'], + 'idle-time': value['idleTime'], + }; +} + diff --git a/src/ts/src/models/GOOGLEDRIVEOAUTHMULTIAuthConfig.ts b/src/ts/src/models/GOOGLEDRIVEOAUTHMULTIAuthConfig.ts new file mode 100644 index 0000000..d24b144 --- /dev/null +++ b/src/ts/src/models/GOOGLEDRIVEOAUTHMULTIAuthConfig.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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'; +/** + * Authentication configuration for Google Drive Multi-User (Vectorize) + * @export + * @interface GOOGLEDRIVEOAUTHMULTIAuthConfig + */ +export interface GOOGLEDRIVEOAUTHMULTIAuthConfig { + /** + * Name. Example: Enter a descriptive name + * @type {string} + * @memberof GOOGLEDRIVEOAUTHMULTIAuthConfig + */ + name: string; + /** + * Authorized Users + * @type {string} + * @memberof GOOGLEDRIVEOAUTHMULTIAuthConfig + */ + authorizedUsers?: string; + /** + * + * @type {object} + * @memberof GOOGLEDRIVEOAUTHMULTIAuthConfig + */ + editedUsers?: object; + /** + * + * @type {object} + * @memberof GOOGLEDRIVEOAUTHMULTIAuthConfig + */ + deletedUsers?: object; +} + +/** + * Check if a given object implements the GOOGLEDRIVEOAUTHMULTIAuthConfig interface. + */ +export function instanceOfGOOGLEDRIVEOAUTHMULTIAuthConfig(value: object): value is GOOGLEDRIVEOAUTHMULTIAuthConfig { + if (!('name' in value) || value['name'] === undefined) return false; + return true; +} + +export function GOOGLEDRIVEOAUTHMULTIAuthConfigFromJSON(json: any): GOOGLEDRIVEOAUTHMULTIAuthConfig { + return GOOGLEDRIVEOAUTHMULTIAuthConfigFromJSONTyped(json, false); +} + +export function GOOGLEDRIVEOAUTHMULTIAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): GOOGLEDRIVEOAUTHMULTIAuthConfig { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'authorizedUsers': json['authorized-users'] == null ? undefined : json['authorized-users'], + 'editedUsers': json['editedUsers'] == null ? undefined : json['editedUsers'], + 'deletedUsers': json['deletedUsers'] == null ? undefined : json['deletedUsers'], + }; +} + +export function GOOGLEDRIVEOAUTHMULTIAuthConfigToJSON(json: any): GOOGLEDRIVEOAUTHMULTIAuthConfig { + return GOOGLEDRIVEOAUTHMULTIAuthConfigToJSONTyped(json, false); +} + +export function GOOGLEDRIVEOAUTHMULTIAuthConfigToJSONTyped(value?: GOOGLEDRIVEOAUTHMULTIAuthConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'authorized-users': value['authorizedUsers'], + 'editedUsers': value['editedUsers'], + 'deletedUsers': value['deletedUsers'], + }; +} + diff --git a/src/ts/src/models/GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig.ts b/src/ts/src/models/GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig.ts new file mode 100644 index 0000000..1498ce6 --- /dev/null +++ b/src/ts/src/models/GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig.ts @@ -0,0 +1,108 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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'; +/** + * Authentication configuration for Google Drive Multi-User (White Label) + * @export + * @interface GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig + */ +export interface GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig { + /** + * Name. Example: Enter a descriptive name + * @type {string} + * @memberof GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig + */ + name: string; + /** + * OAuth2 Client Id. Example: Enter Client Id + * @type {string} + * @memberof GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig + */ + oauth2ClientId: string; + /** + * OAuth2 Client Secret. Example: Enter Client Secret + * @type {string} + * @memberof GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig + */ + oauth2ClientSecret: string; + /** + * Authorized Users + * @type {string} + * @memberof GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig + */ + authorizedUsers?: string; + /** + * + * @type {object} + * @memberof GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig + */ + editedUsers?: object; + /** + * + * @type {object} + * @memberof GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig + */ + deletedUsers?: object; +} + +/** + * Check if a given object implements the GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig interface. + */ +export function instanceOfGOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig(value: object): value is GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('oauth2ClientId' in value) || value['oauth2ClientId'] === undefined) return false; + if (!('oauth2ClientSecret' in value) || value['oauth2ClientSecret'] === undefined) return false; + return true; +} + +export function GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfigFromJSON(json: any): GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig { + return GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfigFromJSONTyped(json, false); +} + +export function GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'oauth2ClientId': json['oauth2-client-id'], + 'oauth2ClientSecret': json['oauth2-client-secret'], + 'authorizedUsers': json['authorized-users'] == null ? undefined : json['authorized-users'], + 'editedUsers': json['editedUsers'] == null ? undefined : json['editedUsers'], + 'deletedUsers': json['deletedUsers'] == null ? undefined : json['deletedUsers'], + }; +} + +export function GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfigToJSON(json: any): GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig { + return GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfigToJSONTyped(json, false); +} + +export function GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfigToJSONTyped(value?: GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'oauth2-client-id': value['oauth2ClientId'], + 'oauth2-client-secret': value['oauth2ClientSecret'], + 'authorized-users': value['authorizedUsers'], + 'editedUsers': value['editedUsers'], + 'deletedUsers': value['deletedUsers'], + }; +} + diff --git a/src/ts/src/models/GOOGLEDRIVEOAUTHMULTICUSTOMConfig.ts b/src/ts/src/models/GOOGLEDRIVEOAUTHMULTICUSTOMConfig.ts new file mode 100644 index 0000000..52c5c09 --- /dev/null +++ b/src/ts/src/models/GOOGLEDRIVEOAUTHMULTICUSTOMConfig.ts @@ -0,0 +1,94 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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'; +/** + * Configuration for Google Drive Multi-User (White Label) connector + * @export + * @interface GOOGLEDRIVEOAUTHMULTICUSTOMConfig + */ +export interface GOOGLEDRIVEOAUTHMULTICUSTOMConfig { + /** + * File Extensions + * @type {Array} + * @memberof GOOGLEDRIVEOAUTHMULTICUSTOMConfig + */ + fileExtensions: GOOGLEDRIVEOAUTHMULTICUSTOMConfigFileExtensionsEnum; + /** + * Polling Interval (seconds). Example: Enter polling interval in seconds + * @type {number} + * @memberof GOOGLEDRIVEOAUTHMULTICUSTOMConfig + */ + idleTime?: number; +} + + +/** + * @export + */ +export const GOOGLEDRIVEOAUTHMULTICUSTOMConfigFileExtensionsEnum = { + Pdf: 'pdf', + Docdocxgdocodtrtfepub: 'doc,docx,gdoc,odt,rtf,epub', + Pptpptxgslides: 'ppt,pptx,gslides', + Xlsxlsxgsheetsods: 'xls,xlsx,gsheets,ods', + Emlmsg: 'eml,msg', + Txt: 'txt', + Htmlhtm: 'html,htm', + Md: 'md', + Json: 'json', + Csv: 'csv', + Jpgjpegpngwebpsvggif: 'jpg,jpeg,png,webp,svg,gif' +} as const; +export type GOOGLEDRIVEOAUTHMULTICUSTOMConfigFileExtensionsEnum = typeof GOOGLEDRIVEOAUTHMULTICUSTOMConfigFileExtensionsEnum[keyof typeof GOOGLEDRIVEOAUTHMULTICUSTOMConfigFileExtensionsEnum]; + + +/** + * Check if a given object implements the GOOGLEDRIVEOAUTHMULTICUSTOMConfig interface. + */ +export function instanceOfGOOGLEDRIVEOAUTHMULTICUSTOMConfig(value: object): value is GOOGLEDRIVEOAUTHMULTICUSTOMConfig { + if (!('fileExtensions' in value) || value['fileExtensions'] === undefined) return false; + return true; +} + +export function GOOGLEDRIVEOAUTHMULTICUSTOMConfigFromJSON(json: any): GOOGLEDRIVEOAUTHMULTICUSTOMConfig { + return GOOGLEDRIVEOAUTHMULTICUSTOMConfigFromJSONTyped(json, false); +} + +export function GOOGLEDRIVEOAUTHMULTICUSTOMConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): GOOGLEDRIVEOAUTHMULTICUSTOMConfig { + if (json == null) { + return json; + } + return { + + 'fileExtensions': json['file-extensions'], + 'idleTime': json['idle-time'] == null ? undefined : json['idle-time'], + }; +} + +export function GOOGLEDRIVEOAUTHMULTICUSTOMConfigToJSON(json: any): GOOGLEDRIVEOAUTHMULTICUSTOMConfig { + return GOOGLEDRIVEOAUTHMULTICUSTOMConfigToJSONTyped(json, false); +} + +export function GOOGLEDRIVEOAUTHMULTICUSTOMConfigToJSONTyped(value?: GOOGLEDRIVEOAUTHMULTICUSTOMConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'file-extensions': value['fileExtensions'], + 'idle-time': value['idleTime'], + }; +} + diff --git a/src/ts/src/models/GOOGLEDRIVEOAUTHMULTIConfig.ts b/src/ts/src/models/GOOGLEDRIVEOAUTHMULTIConfig.ts new file mode 100644 index 0000000..84221b8 --- /dev/null +++ b/src/ts/src/models/GOOGLEDRIVEOAUTHMULTIConfig.ts @@ -0,0 +1,94 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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'; +/** + * Configuration for Google Drive Multi-User (Vectorize) connector + * @export + * @interface GOOGLEDRIVEOAUTHMULTIConfig + */ +export interface GOOGLEDRIVEOAUTHMULTIConfig { + /** + * File Extensions + * @type {Array} + * @memberof GOOGLEDRIVEOAUTHMULTIConfig + */ + fileExtensions: GOOGLEDRIVEOAUTHMULTIConfigFileExtensionsEnum; + /** + * Polling Interval (seconds). Example: Enter polling interval in seconds + * @type {number} + * @memberof GOOGLEDRIVEOAUTHMULTIConfig + */ + idleTime?: number; +} + + +/** + * @export + */ +export const GOOGLEDRIVEOAUTHMULTIConfigFileExtensionsEnum = { + Pdf: 'pdf', + Docdocxgdocodtrtfepub: 'doc,docx,gdoc,odt,rtf,epub', + Pptpptxgslides: 'ppt,pptx,gslides', + Xlsxlsxgsheetsods: 'xls,xlsx,gsheets,ods', + Emlmsg: 'eml,msg', + Txt: 'txt', + Htmlhtm: 'html,htm', + Md: 'md', + Json: 'json', + Csv: 'csv', + Jpgjpegpngwebpsvggif: 'jpg,jpeg,png,webp,svg,gif' +} as const; +export type GOOGLEDRIVEOAUTHMULTIConfigFileExtensionsEnum = typeof GOOGLEDRIVEOAUTHMULTIConfigFileExtensionsEnum[keyof typeof GOOGLEDRIVEOAUTHMULTIConfigFileExtensionsEnum]; + + +/** + * Check if a given object implements the GOOGLEDRIVEOAUTHMULTIConfig interface. + */ +export function instanceOfGOOGLEDRIVEOAUTHMULTIConfig(value: object): value is GOOGLEDRIVEOAUTHMULTIConfig { + if (!('fileExtensions' in value) || value['fileExtensions'] === undefined) return false; + return true; +} + +export function GOOGLEDRIVEOAUTHMULTIConfigFromJSON(json: any): GOOGLEDRIVEOAUTHMULTIConfig { + return GOOGLEDRIVEOAUTHMULTIConfigFromJSONTyped(json, false); +} + +export function GOOGLEDRIVEOAUTHMULTIConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): GOOGLEDRIVEOAUTHMULTIConfig { + if (json == null) { + return json; + } + return { + + 'fileExtensions': json['file-extensions'], + 'idleTime': json['idle-time'] == null ? undefined : json['idle-time'], + }; +} + +export function GOOGLEDRIVEOAUTHMULTIConfigToJSON(json: any): GOOGLEDRIVEOAUTHMULTIConfig { + return GOOGLEDRIVEOAUTHMULTIConfigToJSONTyped(json, false); +} + +export function GOOGLEDRIVEOAUTHMULTIConfigToJSONTyped(value?: GOOGLEDRIVEOAUTHMULTIConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'file-extensions': value['fileExtensions'], + 'idle-time': value['idleTime'], + }; +} + diff --git a/src/ts/src/models/Gcs.ts b/src/ts/src/models/Gcs.ts new file mode 100644 index 0000000..920d97d --- /dev/null +++ b/src/ts/src/models/Gcs.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 { GCSConfig } from './GCSConfig'; +import { + GCSConfigFromJSON, + GCSConfigFromJSONTyped, + GCSConfigToJSON, + GCSConfigToJSONTyped, +} from './GCSConfig'; + +/** + * + * @export + * @interface Gcs + */ +export interface Gcs { + /** + * Name of the connector + * @type {string} + * @memberof Gcs + */ + name: string; + /** + * Connector type (must be "GCS") + * @type {string} + * @memberof Gcs + */ + type: GcsTypeEnum; + /** + * + * @type {GCSConfig} + * @memberof Gcs + */ + config: GCSConfig; +} + + +/** + * @export + */ +export const GcsTypeEnum = { + Gcs: 'GCS' +} as const; +export type GcsTypeEnum = typeof GcsTypeEnum[keyof typeof GcsTypeEnum]; + + +/** + * Check if a given object implements the Gcs interface. + */ +export function instanceOfGcs(value: object): value is Gcs { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('type' in value) || value['type'] === undefined) return false; + if (!('config' in value) || value['config'] === undefined) return false; + return true; +} + +export function GcsFromJSON(json: any): Gcs { + return GcsFromJSONTyped(json, false); +} + +export function GcsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Gcs { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'type': json['type'], + 'config': GCSConfigFromJSON(json['config']), + }; +} + +export function GcsToJSON(json: any): Gcs { + return GcsToJSONTyped(json, false); +} + +export function GcsToJSONTyped(value?: Gcs | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'type': value['type'], + 'config': GCSConfigToJSON(value['config']), + }; +} + diff --git a/src/ts/src/models/Gcs1.ts b/src/ts/src/models/Gcs1.ts new file mode 100644 index 0000000..c9fe626 --- /dev/null +++ b/src/ts/src/models/Gcs1.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 { GCSConfig } from './GCSConfig'; +import { + GCSConfigFromJSON, + GCSConfigFromJSONTyped, + GCSConfigToJSON, + GCSConfigToJSONTyped, +} from './GCSConfig'; + +/** + * + * @export + * @interface Gcs1 + */ +export interface Gcs1 { + /** + * + * @type {GCSConfig} + * @memberof Gcs1 + */ + config?: GCSConfig; +} + +/** + * Check if a given object implements the Gcs1 interface. + */ +export function instanceOfGcs1(value: object): value is Gcs1 { + return true; +} + +export function Gcs1FromJSON(json: any): Gcs1 { + return Gcs1FromJSONTyped(json, false); +} + +export function Gcs1FromJSONTyped(json: any, ignoreDiscriminator: boolean): Gcs1 { + if (json == null) { + return json; + } + return { + + 'config': json['config'] == null ? undefined : GCSConfigFromJSON(json['config']), + }; +} + +export function Gcs1ToJSON(json: any): Gcs1 { + return Gcs1ToJSONTyped(json, false); +} + +export function Gcs1ToJSONTyped(value?: Gcs1 | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'config': GCSConfigToJSON(value['config']), + }; +} + diff --git a/src/ts/src/models/GetAIPlatformConnectors200Response.ts b/src/ts/src/models/GetAIPlatformConnectors200Response.ts index 0396d69..1a7092e 100644 --- a/src/ts/src/models/GetAIPlatformConnectors200Response.ts +++ b/src/ts/src/models/GetAIPlatformConnectors200Response.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * diff --git a/src/ts/src/models/GetDeepResearchResponse.ts b/src/ts/src/models/GetDeepResearchResponse.ts index c8acf11..27281da 100644 --- a/src/ts/src/models/GetDeepResearchResponse.ts +++ b/src/ts/src/models/GetDeepResearchResponse.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * diff --git a/src/ts/src/models/GetDestinationConnectors200Response.ts b/src/ts/src/models/GetDestinationConnectors200Response.ts index fdf5ff4..f4f0922 100644 --- a/src/ts/src/models/GetDestinationConnectors200Response.ts +++ b/src/ts/src/models/GetDestinationConnectors200Response.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * diff --git a/src/ts/src/models/GetPipelineEventsResponse.ts b/src/ts/src/models/GetPipelineEventsResponse.ts index 4450028..4cef85e 100644 --- a/src/ts/src/models/GetPipelineEventsResponse.ts +++ b/src/ts/src/models/GetPipelineEventsResponse.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * diff --git a/src/ts/src/models/GetPipelineMetricsResponse.ts b/src/ts/src/models/GetPipelineMetricsResponse.ts index 2d31ee2..7eae6da 100644 --- a/src/ts/src/models/GetPipelineMetricsResponse.ts +++ b/src/ts/src/models/GetPipelineMetricsResponse.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * diff --git a/src/ts/src/models/GetPipelineResponse.ts b/src/ts/src/models/GetPipelineResponse.ts index 0ee2b51..2ed7b4e 100644 --- a/src/ts/src/models/GetPipelineResponse.ts +++ b/src/ts/src/models/GetPipelineResponse.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * diff --git a/src/ts/src/models/GetPipelines400Response.ts b/src/ts/src/models/GetPipelines400Response.ts index c883da4..5d0cd6a 100644 --- a/src/ts/src/models/GetPipelines400Response.ts +++ b/src/ts/src/models/GetPipelines400Response.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * diff --git a/src/ts/src/models/GetPipelinesResponse.ts b/src/ts/src/models/GetPipelinesResponse.ts index d78da37..f5a768c 100644 --- a/src/ts/src/models/GetPipelinesResponse.ts +++ b/src/ts/src/models/GetPipelinesResponse.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * diff --git a/src/ts/src/models/GetSourceConnectors200Response.ts b/src/ts/src/models/GetSourceConnectors200Response.ts index f4ab884..3469b8f 100644 --- a/src/ts/src/models/GetSourceConnectors200Response.ts +++ b/src/ts/src/models/GetSourceConnectors200Response.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * diff --git a/src/ts/src/models/GetUploadFilesResponse.ts b/src/ts/src/models/GetUploadFilesResponse.ts index 2174ff4..9be4981 100644 --- a/src/ts/src/models/GetUploadFilesResponse.ts +++ b/src/ts/src/models/GetUploadFilesResponse.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * diff --git a/src/ts/src/models/Github.ts b/src/ts/src/models/Github.ts new file mode 100644 index 0000000..8ae7b12 --- /dev/null +++ b/src/ts/src/models/Github.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 { GITHUBConfig } from './GITHUBConfig'; +import { + GITHUBConfigFromJSON, + GITHUBConfigFromJSONTyped, + GITHUBConfigToJSON, + GITHUBConfigToJSONTyped, +} from './GITHUBConfig'; + +/** + * + * @export + * @interface Github + */ +export interface Github { + /** + * Name of the connector + * @type {string} + * @memberof Github + */ + name: string; + /** + * Connector type (must be "GITHUB") + * @type {string} + * @memberof Github + */ + type: GithubTypeEnum; + /** + * + * @type {GITHUBConfig} + * @memberof Github + */ + config: GITHUBConfig; +} + + +/** + * @export + */ +export const GithubTypeEnum = { + Github: 'GITHUB' +} as const; +export type GithubTypeEnum = typeof GithubTypeEnum[keyof typeof GithubTypeEnum]; + + +/** + * Check if a given object implements the Github interface. + */ +export function instanceOfGithub(value: object): value is Github { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('type' in value) || value['type'] === undefined) return false; + if (!('config' in value) || value['config'] === undefined) return false; + return true; +} + +export function GithubFromJSON(json: any): Github { + return GithubFromJSONTyped(json, false); +} + +export function GithubFromJSONTyped(json: any, ignoreDiscriminator: boolean): Github { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'type': json['type'], + 'config': GITHUBConfigFromJSON(json['config']), + }; +} + +export function GithubToJSON(json: any): Github { + return GithubToJSONTyped(json, false); +} + +export function GithubToJSONTyped(value?: Github | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'type': value['type'], + 'config': GITHUBConfigToJSON(value['config']), + }; +} + diff --git a/src/ts/src/models/Github1.ts b/src/ts/src/models/Github1.ts new file mode 100644 index 0000000..430d5e4 --- /dev/null +++ b/src/ts/src/models/Github1.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 { GITHUBConfig } from './GITHUBConfig'; +import { + GITHUBConfigFromJSON, + GITHUBConfigFromJSONTyped, + GITHUBConfigToJSON, + GITHUBConfigToJSONTyped, +} from './GITHUBConfig'; + +/** + * + * @export + * @interface Github1 + */ +export interface Github1 { + /** + * + * @type {GITHUBConfig} + * @memberof Github1 + */ + config?: GITHUBConfig; +} + +/** + * Check if a given object implements the Github1 interface. + */ +export function instanceOfGithub1(value: object): value is Github1 { + return true; +} + +export function Github1FromJSON(json: any): Github1 { + return Github1FromJSONTyped(json, false); +} + +export function Github1FromJSONTyped(json: any, ignoreDiscriminator: boolean): Github1 { + if (json == null) { + return json; + } + return { + + 'config': json['config'] == null ? undefined : GITHUBConfigFromJSON(json['config']), + }; +} + +export function Github1ToJSON(json: any): Github1 { + return Github1ToJSONTyped(json, false); +} + +export function Github1ToJSONTyped(value?: Github1 | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'config': GITHUBConfigToJSON(value['config']), + }; +} + diff --git a/src/ts/src/models/GoogleDrive.ts b/src/ts/src/models/GoogleDrive.ts new file mode 100644 index 0000000..fd0b4dc --- /dev/null +++ b/src/ts/src/models/GoogleDrive.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 { GOOGLEDRIVEConfig } from './GOOGLEDRIVEConfig'; +import { + GOOGLEDRIVEConfigFromJSON, + GOOGLEDRIVEConfigFromJSONTyped, + GOOGLEDRIVEConfigToJSON, + GOOGLEDRIVEConfigToJSONTyped, +} from './GOOGLEDRIVEConfig'; + +/** + * + * @export + * @interface GoogleDrive + */ +export interface GoogleDrive { + /** + * Name of the connector + * @type {string} + * @memberof GoogleDrive + */ + name: string; + /** + * Connector type (must be "GOOGLE_DRIVE") + * @type {string} + * @memberof GoogleDrive + */ + type: GoogleDriveTypeEnum; + /** + * + * @type {GOOGLEDRIVEConfig} + * @memberof GoogleDrive + */ + config: GOOGLEDRIVEConfig; +} + + +/** + * @export + */ +export const GoogleDriveTypeEnum = { + GoogleDrive: 'GOOGLE_DRIVE' +} as const; +export type GoogleDriveTypeEnum = typeof GoogleDriveTypeEnum[keyof typeof GoogleDriveTypeEnum]; + + +/** + * Check if a given object implements the GoogleDrive interface. + */ +export function instanceOfGoogleDrive(value: object): value is GoogleDrive { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('type' in value) || value['type'] === undefined) return false; + if (!('config' in value) || value['config'] === undefined) return false; + return true; +} + +export function GoogleDriveFromJSON(json: any): GoogleDrive { + return GoogleDriveFromJSONTyped(json, false); +} + +export function GoogleDriveFromJSONTyped(json: any, ignoreDiscriminator: boolean): GoogleDrive { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'type': json['type'], + 'config': GOOGLEDRIVEConfigFromJSON(json['config']), + }; +} + +export function GoogleDriveToJSON(json: any): GoogleDrive { + return GoogleDriveToJSONTyped(json, false); +} + +export function GoogleDriveToJSONTyped(value?: GoogleDrive | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'type': value['type'], + 'config': GOOGLEDRIVEConfigToJSON(value['config']), + }; +} + diff --git a/src/ts/src/models/GoogleDrive1.ts b/src/ts/src/models/GoogleDrive1.ts new file mode 100644 index 0000000..12dc954 --- /dev/null +++ b/src/ts/src/models/GoogleDrive1.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 { GOOGLEDRIVEConfig } from './GOOGLEDRIVEConfig'; +import { + GOOGLEDRIVEConfigFromJSON, + GOOGLEDRIVEConfigFromJSONTyped, + GOOGLEDRIVEConfigToJSON, + GOOGLEDRIVEConfigToJSONTyped, +} from './GOOGLEDRIVEConfig'; + +/** + * + * @export + * @interface GoogleDrive1 + */ +export interface GoogleDrive1 { + /** + * + * @type {GOOGLEDRIVEConfig} + * @memberof GoogleDrive1 + */ + config?: GOOGLEDRIVEConfig; +} + +/** + * Check if a given object implements the GoogleDrive1 interface. + */ +export function instanceOfGoogleDrive1(value: object): value is GoogleDrive1 { + return true; +} + +export function GoogleDrive1FromJSON(json: any): GoogleDrive1 { + return GoogleDrive1FromJSONTyped(json, false); +} + +export function GoogleDrive1FromJSONTyped(json: any, ignoreDiscriminator: boolean): GoogleDrive1 { + if (json == null) { + return json; + } + return { + + 'config': json['config'] == null ? undefined : GOOGLEDRIVEConfigFromJSON(json['config']), + }; +} + +export function GoogleDrive1ToJSON(json: any): GoogleDrive1 { + return GoogleDrive1ToJSONTyped(json, false); +} + +export function GoogleDrive1ToJSONTyped(value?: GoogleDrive1 | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'config': GOOGLEDRIVEConfigToJSON(value['config']), + }; +} + diff --git a/src/ts/src/models/GoogleDriveOauth.ts b/src/ts/src/models/GoogleDriveOauth.ts new file mode 100644 index 0000000..1e72a23 --- /dev/null +++ b/src/ts/src/models/GoogleDriveOauth.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 { GOOGLEDRIVEOAUTHConfig } from './GOOGLEDRIVEOAUTHConfig'; +import { + GOOGLEDRIVEOAUTHConfigFromJSON, + GOOGLEDRIVEOAUTHConfigFromJSONTyped, + GOOGLEDRIVEOAUTHConfigToJSON, + GOOGLEDRIVEOAUTHConfigToJSONTyped, +} from './GOOGLEDRIVEOAUTHConfig'; + +/** + * + * @export + * @interface GoogleDriveOauth + */ +export interface GoogleDriveOauth { + /** + * + * @type {GOOGLEDRIVEOAUTHConfig} + * @memberof GoogleDriveOauth + */ + config?: GOOGLEDRIVEOAUTHConfig; +} + +/** + * Check if a given object implements the GoogleDriveOauth interface. + */ +export function instanceOfGoogleDriveOauth(value: object): value is GoogleDriveOauth { + return true; +} + +export function GoogleDriveOauthFromJSON(json: any): GoogleDriveOauth { + return GoogleDriveOauthFromJSONTyped(json, false); +} + +export function GoogleDriveOauthFromJSONTyped(json: any, ignoreDiscriminator: boolean): GoogleDriveOauth { + if (json == null) { + return json; + } + return { + + 'config': json['config'] == null ? undefined : GOOGLEDRIVEOAUTHConfigFromJSON(json['config']), + }; +} + +export function GoogleDriveOauthToJSON(json: any): GoogleDriveOauth { + return GoogleDriveOauthToJSONTyped(json, false); +} + +export function GoogleDriveOauthToJSONTyped(value?: GoogleDriveOauth | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'config': GOOGLEDRIVEOAUTHConfigToJSON(value['config']), + }; +} + diff --git a/src/ts/src/models/GoogleDriveOauthMulti.ts b/src/ts/src/models/GoogleDriveOauthMulti.ts new file mode 100644 index 0000000..237b692 --- /dev/null +++ b/src/ts/src/models/GoogleDriveOauthMulti.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 { GOOGLEDRIVEOAUTHMULTIConfig } from './GOOGLEDRIVEOAUTHMULTIConfig'; +import { + GOOGLEDRIVEOAUTHMULTIConfigFromJSON, + GOOGLEDRIVEOAUTHMULTIConfigFromJSONTyped, + GOOGLEDRIVEOAUTHMULTIConfigToJSON, + GOOGLEDRIVEOAUTHMULTIConfigToJSONTyped, +} from './GOOGLEDRIVEOAUTHMULTIConfig'; + +/** + * + * @export + * @interface GoogleDriveOauthMulti + */ +export interface GoogleDriveOauthMulti { + /** + * + * @type {GOOGLEDRIVEOAUTHMULTIConfig} + * @memberof GoogleDriveOauthMulti + */ + config?: GOOGLEDRIVEOAUTHMULTIConfig; +} + +/** + * Check if a given object implements the GoogleDriveOauthMulti interface. + */ +export function instanceOfGoogleDriveOauthMulti(value: object): value is GoogleDriveOauthMulti { + return true; +} + +export function GoogleDriveOauthMultiFromJSON(json: any): GoogleDriveOauthMulti { + return GoogleDriveOauthMultiFromJSONTyped(json, false); +} + +export function GoogleDriveOauthMultiFromJSONTyped(json: any, ignoreDiscriminator: boolean): GoogleDriveOauthMulti { + if (json == null) { + return json; + } + return { + + 'config': json['config'] == null ? undefined : GOOGLEDRIVEOAUTHMULTIConfigFromJSON(json['config']), + }; +} + +export function GoogleDriveOauthMultiToJSON(json: any): GoogleDriveOauthMulti { + return GoogleDriveOauthMultiToJSONTyped(json, false); +} + +export function GoogleDriveOauthMultiToJSONTyped(value?: GoogleDriveOauthMulti | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'config': GOOGLEDRIVEOAUTHMULTIConfigToJSON(value['config']), + }; +} + diff --git a/src/ts/src/models/GoogleDriveOauthMultiCustom.ts b/src/ts/src/models/GoogleDriveOauthMultiCustom.ts new file mode 100644 index 0000000..daddf70 --- /dev/null +++ b/src/ts/src/models/GoogleDriveOauthMultiCustom.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 { GOOGLEDRIVEOAUTHMULTICUSTOMConfig } from './GOOGLEDRIVEOAUTHMULTICUSTOMConfig'; +import { + GOOGLEDRIVEOAUTHMULTICUSTOMConfigFromJSON, + GOOGLEDRIVEOAUTHMULTICUSTOMConfigFromJSONTyped, + GOOGLEDRIVEOAUTHMULTICUSTOMConfigToJSON, + GOOGLEDRIVEOAUTHMULTICUSTOMConfigToJSONTyped, +} from './GOOGLEDRIVEOAUTHMULTICUSTOMConfig'; + +/** + * + * @export + * @interface GoogleDriveOauthMultiCustom + */ +export interface GoogleDriveOauthMultiCustom { + /** + * + * @type {GOOGLEDRIVEOAUTHMULTICUSTOMConfig} + * @memberof GoogleDriveOauthMultiCustom + */ + config?: GOOGLEDRIVEOAUTHMULTICUSTOMConfig; +} + +/** + * Check if a given object implements the GoogleDriveOauthMultiCustom interface. + */ +export function instanceOfGoogleDriveOauthMultiCustom(value: object): value is GoogleDriveOauthMultiCustom { + return true; +} + +export function GoogleDriveOauthMultiCustomFromJSON(json: any): GoogleDriveOauthMultiCustom { + return GoogleDriveOauthMultiCustomFromJSONTyped(json, false); +} + +export function GoogleDriveOauthMultiCustomFromJSONTyped(json: any, ignoreDiscriminator: boolean): GoogleDriveOauthMultiCustom { + if (json == null) { + return json; + } + return { + + 'config': json['config'] == null ? undefined : GOOGLEDRIVEOAUTHMULTICUSTOMConfigFromJSON(json['config']), + }; +} + +export function GoogleDriveOauthMultiCustomToJSON(json: any): GoogleDriveOauthMultiCustom { + return GoogleDriveOauthMultiCustomToJSONTyped(json, false); +} + +export function GoogleDriveOauthMultiCustomToJSONTyped(value?: GoogleDriveOauthMultiCustom | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'config': GOOGLEDRIVEOAUTHMULTICUSTOMConfigToJSON(value['config']), + }; +} + diff --git a/src/ts/src/models/INTERCOMAuthConfig.ts b/src/ts/src/models/INTERCOMAuthConfig.ts new file mode 100644 index 0000000..ef11a4c --- /dev/null +++ b/src/ts/src/models/INTERCOMAuthConfig.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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'; +/** + * Authentication configuration for Intercom + * @export + * @interface INTERCOMAuthConfig + */ +export interface INTERCOMAuthConfig { + /** + * Name. Example: Enter a descriptive name + * @type {string} + * @memberof INTERCOMAuthConfig + */ + name: string; + /** + * Access Token. Example: Authorize Intercom Access + * @type {string} + * @memberof INTERCOMAuthConfig + */ + token: string; +} + +/** + * Check if a given object implements the INTERCOMAuthConfig interface. + */ +export function instanceOfINTERCOMAuthConfig(value: object): value is INTERCOMAuthConfig { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('token' in value) || value['token'] === undefined) return false; + return true; +} + +export function INTERCOMAuthConfigFromJSON(json: any): INTERCOMAuthConfig { + return INTERCOMAuthConfigFromJSONTyped(json, false); +} + +export function INTERCOMAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): INTERCOMAuthConfig { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'token': json['token'], + }; +} + +export function INTERCOMAuthConfigToJSON(json: any): INTERCOMAuthConfig { + return INTERCOMAuthConfigToJSONTyped(json, false); +} + +export function INTERCOMAuthConfigToJSONTyped(value?: INTERCOMAuthConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'token': value['token'], + }; +} + diff --git a/src/ts/src/models/INTERCOMConfig.ts b/src/ts/src/models/INTERCOMConfig.ts new file mode 100644 index 0000000..8249d85 --- /dev/null +++ b/src/ts/src/models/INTERCOMConfig.ts @@ -0,0 +1,94 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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'; +/** + * Configuration for Intercom connector + * @export + * @interface INTERCOMConfig + */ +export interface INTERCOMConfig { + /** + * Created After. Filter for conversations created after this date. Example: Enter a date: Example 2012-12-31 + * @type {Date} + * @memberof INTERCOMConfig + */ + createdAt: Date; + /** + * Updated After. Filter for conversations updated after this date. Example: Enter a date: Example 2012-12-31 + * @type {Date} + * @memberof INTERCOMConfig + */ + updatedAt?: Date; + /** + * State + * @type {Array} + * @memberof INTERCOMConfig + */ + state?: INTERCOMConfigStateEnum; +} + + +/** + * @export + */ +export const INTERCOMConfigStateEnum = { + Open: 'open', + Closed: 'closed', + Snoozed: 'snoozed' +} as const; +export type INTERCOMConfigStateEnum = typeof INTERCOMConfigStateEnum[keyof typeof INTERCOMConfigStateEnum]; + + +/** + * Check if a given object implements the INTERCOMConfig interface. + */ +export function instanceOfINTERCOMConfig(value: object): value is INTERCOMConfig { + if (!('createdAt' in value) || value['createdAt'] === undefined) return false; + return true; +} + +export function INTERCOMConfigFromJSON(json: any): INTERCOMConfig { + return INTERCOMConfigFromJSONTyped(json, false); +} + +export function INTERCOMConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): INTERCOMConfig { + if (json == null) { + return json; + } + return { + + 'createdAt': (new Date(json['created_at'])), + 'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])), + 'state': json['state'] == null ? undefined : json['state'], + }; +} + +export function INTERCOMConfigToJSON(json: any): INTERCOMConfig { + return INTERCOMConfigToJSONTyped(json, false); +} + +export function INTERCOMConfigToJSONTyped(value?: INTERCOMConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'created_at': ((value['createdAt']).toISOString().substring(0,10)), + 'updated_at': value['updatedAt'] == null ? undefined : ((value['updatedAt']).toISOString().substring(0,10)), + 'state': value['state'], + }; +} + diff --git a/src/ts/src/models/Intercom.ts b/src/ts/src/models/Intercom.ts new file mode 100644 index 0000000..4966159 --- /dev/null +++ b/src/ts/src/models/Intercom.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 { INTERCOMConfig } from './INTERCOMConfig'; +import { + INTERCOMConfigFromJSON, + INTERCOMConfigFromJSONTyped, + INTERCOMConfigToJSON, + INTERCOMConfigToJSONTyped, +} from './INTERCOMConfig'; + +/** + * + * @export + * @interface Intercom + */ +export interface Intercom { + /** + * + * @type {INTERCOMConfig} + * @memberof Intercom + */ + config?: INTERCOMConfig; +} + +/** + * Check if a given object implements the Intercom interface. + */ +export function instanceOfIntercom(value: object): value is Intercom { + return true; +} + +export function IntercomFromJSON(json: any): Intercom { + return IntercomFromJSONTyped(json, false); +} + +export function IntercomFromJSONTyped(json: any, ignoreDiscriminator: boolean): Intercom { + if (json == null) { + return json; + } + return { + + 'config': json['config'] == null ? undefined : INTERCOMConfigFromJSON(json['config']), + }; +} + +export function IntercomToJSON(json: any): Intercom { + return IntercomToJSONTyped(json, false); +} + +export function IntercomToJSONTyped(value?: Intercom | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'config': INTERCOMConfigToJSON(value['config']), + }; +} + diff --git a/src/ts/src/models/MILVUSAuthConfig.ts b/src/ts/src/models/MILVUSAuthConfig.ts new file mode 100644 index 0000000..c803b2f --- /dev/null +++ b/src/ts/src/models/MILVUSAuthConfig.ts @@ -0,0 +1,99 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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'; +/** + * Authentication configuration for Milvus + * @export + * @interface MILVUSAuthConfig + */ +export interface MILVUSAuthConfig { + /** + * Name. Example: Enter a descriptive name for your Milvus integration + * @type {string} + * @memberof MILVUSAuthConfig + */ + name: string; + /** + * Public Endpoint. Example: Enter your public endpoint for your Milvus cluster + * @type {string} + * @memberof MILVUSAuthConfig + */ + url: string; + /** + * Token. Example: Enter your cluster token or Username/Password + * @type {string} + * @memberof MILVUSAuthConfig + */ + token?: string; + /** + * Username. Example: Enter your cluster Username + * @type {string} + * @memberof MILVUSAuthConfig + */ + username?: string; + /** + * Password. Example: Enter your cluster Password + * @type {string} + * @memberof MILVUSAuthConfig + */ + password?: string; +} + +/** + * Check if a given object implements the MILVUSAuthConfig interface. + */ +export function instanceOfMILVUSAuthConfig(value: object): value is MILVUSAuthConfig { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('url' in value) || value['url'] === undefined) return false; + return true; +} + +export function MILVUSAuthConfigFromJSON(json: any): MILVUSAuthConfig { + return MILVUSAuthConfigFromJSONTyped(json, false); +} + +export function MILVUSAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): MILVUSAuthConfig { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'url': json['url'], + 'token': json['token'] == null ? undefined : json['token'], + 'username': json['username'] == null ? undefined : json['username'], + 'password': json['password'] == null ? undefined : json['password'], + }; +} + +export function MILVUSAuthConfigToJSON(json: any): MILVUSAuthConfig { + return MILVUSAuthConfigToJSONTyped(json, false); +} + +export function MILVUSAuthConfigToJSONTyped(value?: MILVUSAuthConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'url': value['url'], + 'token': value['token'], + 'username': value['username'], + 'password': value['password'], + }; +} + diff --git a/src/ts/src/models/MILVUSConfig.ts b/src/ts/src/models/MILVUSConfig.ts new file mode 100644 index 0000000..cbca617 --- /dev/null +++ b/src/ts/src/models/MILVUSConfig.ts @@ -0,0 +1,66 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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'; +/** + * Configuration for Milvus connector + * @export + * @interface MILVUSConfig + */ +export interface MILVUSConfig { + /** + * Collection Name. Example: Enter collection name + * @type {string} + * @memberof MILVUSConfig + */ + collection: string; +} + +/** + * Check if a given object implements the MILVUSConfig interface. + */ +export function instanceOfMILVUSConfig(value: object): value is MILVUSConfig { + if (!('collection' in value) || value['collection'] === undefined) return false; + return true; +} + +export function MILVUSConfigFromJSON(json: any): MILVUSConfig { + return MILVUSConfigFromJSONTyped(json, false); +} + +export function MILVUSConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): MILVUSConfig { + if (json == null) { + return json; + } + return { + + 'collection': json['collection'], + }; +} + +export function MILVUSConfigToJSON(json: any): MILVUSConfig { + return MILVUSConfigToJSONTyped(json, false); +} + +export function MILVUSConfigToJSONTyped(value?: MILVUSConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'collection': value['collection'], + }; +} + diff --git a/src/ts/src/models/MetadataExtractionStrategy.ts b/src/ts/src/models/MetadataExtractionStrategy.ts index 80db984..f214d6e 100644 --- a/src/ts/src/models/MetadataExtractionStrategy.ts +++ b/src/ts/src/models/MetadataExtractionStrategy.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * diff --git a/src/ts/src/models/MetadataExtractionStrategySchema.ts b/src/ts/src/models/MetadataExtractionStrategySchema.ts index c4b8124..eba2b54 100644 --- a/src/ts/src/models/MetadataExtractionStrategySchema.ts +++ b/src/ts/src/models/MetadataExtractionStrategySchema.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * diff --git a/src/ts/src/models/Milvus.ts b/src/ts/src/models/Milvus.ts new file mode 100644 index 0000000..aa52541 --- /dev/null +++ b/src/ts/src/models/Milvus.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 { MILVUSConfig } from './MILVUSConfig'; +import { + MILVUSConfigFromJSON, + MILVUSConfigFromJSONTyped, + MILVUSConfigToJSON, + MILVUSConfigToJSONTyped, +} from './MILVUSConfig'; + +/** + * + * @export + * @interface Milvus + */ +export interface Milvus { + /** + * Name of the connector + * @type {string} + * @memberof Milvus + */ + name: string; + /** + * Connector type (must be "MILVUS") + * @type {string} + * @memberof Milvus + */ + type: MilvusTypeEnum; + /** + * + * @type {MILVUSConfig} + * @memberof Milvus + */ + config: MILVUSConfig; +} + + +/** + * @export + */ +export const MilvusTypeEnum = { + Milvus: 'MILVUS' +} as const; +export type MilvusTypeEnum = typeof MilvusTypeEnum[keyof typeof MilvusTypeEnum]; + + +/** + * Check if a given object implements the Milvus interface. + */ +export function instanceOfMilvus(value: object): value is Milvus { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('type' in value) || value['type'] === undefined) return false; + if (!('config' in value) || value['config'] === undefined) return false; + return true; +} + +export function MilvusFromJSON(json: any): Milvus { + return MilvusFromJSONTyped(json, false); +} + +export function MilvusFromJSONTyped(json: any, ignoreDiscriminator: boolean): Milvus { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'type': json['type'], + 'config': MILVUSConfigFromJSON(json['config']), + }; +} + +export function MilvusToJSON(json: any): Milvus { + return MilvusToJSONTyped(json, false); +} + +export function MilvusToJSONTyped(value?: Milvus | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'type': value['type'], + 'config': MILVUSConfigToJSON(value['config']), + }; +} + diff --git a/src/ts/src/models/Milvus1.ts b/src/ts/src/models/Milvus1.ts new file mode 100644 index 0000000..85c9764 --- /dev/null +++ b/src/ts/src/models/Milvus1.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 { MILVUSConfig } from './MILVUSConfig'; +import { + MILVUSConfigFromJSON, + MILVUSConfigFromJSONTyped, + MILVUSConfigToJSON, + MILVUSConfigToJSONTyped, +} from './MILVUSConfig'; + +/** + * + * @export + * @interface Milvus1 + */ +export interface Milvus1 { + /** + * + * @type {MILVUSConfig} + * @memberof Milvus1 + */ + config?: MILVUSConfig; +} + +/** + * Check if a given object implements the Milvus1 interface. + */ +export function instanceOfMilvus1(value: object): value is Milvus1 { + return true; +} + +export function Milvus1FromJSON(json: any): Milvus1 { + return Milvus1FromJSONTyped(json, false); +} + +export function Milvus1FromJSONTyped(json: any, ignoreDiscriminator: boolean): Milvus1 { + if (json == null) { + return json; + } + return { + + 'config': json['config'] == null ? undefined : MILVUSConfigFromJSON(json['config']), + }; +} + +export function Milvus1ToJSON(json: any): Milvus1 { + return Milvus1ToJSONTyped(json, false); +} + +export function Milvus1ToJSONTyped(value?: Milvus1 | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'config': MILVUSConfigToJSON(value['config']), + }; +} + diff --git a/src/ts/src/models/N8NConfig.ts b/src/ts/src/models/N8NConfig.ts index e34c3e2..bb85311 100644 --- a/src/ts/src/models/N8NConfig.ts +++ b/src/ts/src/models/N8NConfig.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * diff --git a/src/ts/src/models/NOTIONAuthConfig.ts b/src/ts/src/models/NOTIONAuthConfig.ts new file mode 100644 index 0000000..b459af4 --- /dev/null +++ b/src/ts/src/models/NOTIONAuthConfig.ts @@ -0,0 +1,91 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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'; +/** + * Authentication configuration for Notion + * @export + * @interface NOTIONAuthConfig + */ +export interface NOTIONAuthConfig { + /** + * Name. Example: Enter a descriptive name + * @type {string} + * @memberof NOTIONAuthConfig + */ + name: string; + /** + * Connect Notion to Vectorize - Note this will effect existing connections. test. Example: Authorize + * @type {string} + * @memberof NOTIONAuthConfig + */ + accessToken: string; + /** + * + * @type {string} + * @memberof NOTIONAuthConfig + */ + s3id?: string; + /** + * + * @type {string} + * @memberof NOTIONAuthConfig + */ + editedToken?: string; +} + +/** + * Check if a given object implements the NOTIONAuthConfig interface. + */ +export function instanceOfNOTIONAuthConfig(value: object): value is NOTIONAuthConfig { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('accessToken' in value) || value['accessToken'] === undefined) return false; + return true; +} + +export function NOTIONAuthConfigFromJSON(json: any): NOTIONAuthConfig { + return NOTIONAuthConfigFromJSONTyped(json, false); +} + +export function NOTIONAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): NOTIONAuthConfig { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'accessToken': json['access-token'], + 's3id': json['s3id'] == null ? undefined : json['s3id'], + 'editedToken': json['editedToken'] == null ? undefined : json['editedToken'], + }; +} + +export function NOTIONAuthConfigToJSON(json: any): NOTIONAuthConfig { + return NOTIONAuthConfigToJSONTyped(json, false); +} + +export function NOTIONAuthConfigToJSONTyped(value?: NOTIONAuthConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'access-token': value['accessToken'], + 's3id': value['s3id'], + 'editedToken': value['editedToken'], + }; +} + diff --git a/src/ts/src/models/NOTIONConfig.ts b/src/ts/src/models/NOTIONConfig.ts new file mode 100644 index 0000000..913514b --- /dev/null +++ b/src/ts/src/models/NOTIONConfig.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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'; +/** + * Configuration for Notion connector + * @export + * @interface NOTIONConfig + */ +export interface NOTIONConfig { + /** + * Select Notion Resources + * @type {string} + * @memberof NOTIONConfig + */ + selectResources: string; + /** + * Database IDs + * @type {string} + * @memberof NOTIONConfig + */ + databaseIds: string; + /** + * Database Names + * @type {string} + * @memberof NOTIONConfig + */ + databaseNames: string; + /** + * Page IDs + * @type {string} + * @memberof NOTIONConfig + */ + pageIds: string; + /** + * Page Names + * @type {string} + * @memberof NOTIONConfig + */ + pageNames: string; +} + +/** + * Check if a given object implements the NOTIONConfig interface. + */ +export function instanceOfNOTIONConfig(value: object): value is NOTIONConfig { + if (!('selectResources' in value) || value['selectResources'] === undefined) return false; + if (!('databaseIds' in value) || value['databaseIds'] === undefined) return false; + if (!('databaseNames' in value) || value['databaseNames'] === undefined) return false; + if (!('pageIds' in value) || value['pageIds'] === undefined) return false; + if (!('pageNames' in value) || value['pageNames'] === undefined) return false; + return true; +} + +export function NOTIONConfigFromJSON(json: any): NOTIONConfig { + return NOTIONConfigFromJSONTyped(json, false); +} + +export function NOTIONConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): NOTIONConfig { + if (json == null) { + return json; + } + return { + + 'selectResources': json['select-resources'], + 'databaseIds': json['database-ids'], + 'databaseNames': json['database-names'], + 'pageIds': json['page-ids'], + 'pageNames': json['page-names'], + }; +} + +export function NOTIONConfigToJSON(json: any): NOTIONConfig { + return NOTIONConfigToJSONTyped(json, false); +} + +export function NOTIONConfigToJSONTyped(value?: NOTIONConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'select-resources': value['selectResources'], + 'database-ids': value['databaseIds'], + 'database-names': value['databaseNames'], + 'page-ids': value['pageIds'], + 'page-names': value['pageNames'], + }; +} + diff --git a/src/ts/src/models/NOTIONOAUTHMULTIAuthConfig.ts b/src/ts/src/models/NOTIONOAUTHMULTIAuthConfig.ts new file mode 100644 index 0000000..de9c14e --- /dev/null +++ b/src/ts/src/models/NOTIONOAUTHMULTIAuthConfig.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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'; +/** + * Authentication configuration for Notion Multi-User (Vectorize) + * @export + * @interface NOTIONOAUTHMULTIAuthConfig + */ +export interface NOTIONOAUTHMULTIAuthConfig { + /** + * Name. Example: Enter a descriptive name + * @type {string} + * @memberof NOTIONOAUTHMULTIAuthConfig + */ + name: string; + /** + * Authorized Users. Users who have authorized access to their Notion content + * @type {string} + * @memberof NOTIONOAUTHMULTIAuthConfig + */ + authorizedUsers?: string; + /** + * + * @type {object} + * @memberof NOTIONOAUTHMULTIAuthConfig + */ + editedUsers?: object; + /** + * + * @type {object} + * @memberof NOTIONOAUTHMULTIAuthConfig + */ + deletedUsers?: object; +} + +/** + * Check if a given object implements the NOTIONOAUTHMULTIAuthConfig interface. + */ +export function instanceOfNOTIONOAUTHMULTIAuthConfig(value: object): value is NOTIONOAUTHMULTIAuthConfig { + if (!('name' in value) || value['name'] === undefined) return false; + return true; +} + +export function NOTIONOAUTHMULTIAuthConfigFromJSON(json: any): NOTIONOAUTHMULTIAuthConfig { + return NOTIONOAUTHMULTIAuthConfigFromJSONTyped(json, false); +} + +export function NOTIONOAUTHMULTIAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): NOTIONOAUTHMULTIAuthConfig { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'authorizedUsers': json['authorized-users'] == null ? undefined : json['authorized-users'], + 'editedUsers': json['editedUsers'] == null ? undefined : json['editedUsers'], + 'deletedUsers': json['deletedUsers'] == null ? undefined : json['deletedUsers'], + }; +} + +export function NOTIONOAUTHMULTIAuthConfigToJSON(json: any): NOTIONOAUTHMULTIAuthConfig { + return NOTIONOAUTHMULTIAuthConfigToJSONTyped(json, false); +} + +export function NOTIONOAUTHMULTIAuthConfigToJSONTyped(value?: NOTIONOAUTHMULTIAuthConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'authorized-users': value['authorizedUsers'], + 'editedUsers': value['editedUsers'], + 'deletedUsers': value['deletedUsers'], + }; +} + diff --git a/src/ts/src/models/NOTIONOAUTHMULTICUSTOMAuthConfig.ts b/src/ts/src/models/NOTIONOAUTHMULTICUSTOMAuthConfig.ts new file mode 100644 index 0000000..574785a --- /dev/null +++ b/src/ts/src/models/NOTIONOAUTHMULTICUSTOMAuthConfig.ts @@ -0,0 +1,108 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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'; +/** + * Authentication configuration for Notion Multi-User (White Label) + * @export + * @interface NOTIONOAUTHMULTICUSTOMAuthConfig + */ +export interface NOTIONOAUTHMULTICUSTOMAuthConfig { + /** + * Name. Example: Enter a descriptive name + * @type {string} + * @memberof NOTIONOAUTHMULTICUSTOMAuthConfig + */ + name: string; + /** + * Notion Client ID. Example: Enter Client ID + * @type {string} + * @memberof NOTIONOAUTHMULTICUSTOMAuthConfig + */ + clientId: string; + /** + * Notion Client Secret. Example: Enter Client Secret + * @type {string} + * @memberof NOTIONOAUTHMULTICUSTOMAuthConfig + */ + clientSecret: string; + /** + * Authorized Users + * @type {string} + * @memberof NOTIONOAUTHMULTICUSTOMAuthConfig + */ + authorizedUsers?: string; + /** + * + * @type {object} + * @memberof NOTIONOAUTHMULTICUSTOMAuthConfig + */ + editedUsers?: object; + /** + * + * @type {object} + * @memberof NOTIONOAUTHMULTICUSTOMAuthConfig + */ + deletedUsers?: object; +} + +/** + * Check if a given object implements the NOTIONOAUTHMULTICUSTOMAuthConfig interface. + */ +export function instanceOfNOTIONOAUTHMULTICUSTOMAuthConfig(value: object): value is NOTIONOAUTHMULTICUSTOMAuthConfig { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('clientId' in value) || value['clientId'] === undefined) return false; + if (!('clientSecret' in value) || value['clientSecret'] === undefined) return false; + return true; +} + +export function NOTIONOAUTHMULTICUSTOMAuthConfigFromJSON(json: any): NOTIONOAUTHMULTICUSTOMAuthConfig { + return NOTIONOAUTHMULTICUSTOMAuthConfigFromJSONTyped(json, false); +} + +export function NOTIONOAUTHMULTICUSTOMAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): NOTIONOAUTHMULTICUSTOMAuthConfig { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'clientId': json['client-id'], + 'clientSecret': json['client-secret'], + 'authorizedUsers': json['authorized-users'] == null ? undefined : json['authorized-users'], + 'editedUsers': json['editedUsers'] == null ? undefined : json['editedUsers'], + 'deletedUsers': json['deletedUsers'] == null ? undefined : json['deletedUsers'], + }; +} + +export function NOTIONOAUTHMULTICUSTOMAuthConfigToJSON(json: any): NOTIONOAUTHMULTICUSTOMAuthConfig { + return NOTIONOAUTHMULTICUSTOMAuthConfigToJSONTyped(json, false); +} + +export function NOTIONOAUTHMULTICUSTOMAuthConfigToJSONTyped(value?: NOTIONOAUTHMULTICUSTOMAuthConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'client-id': value['clientId'], + 'client-secret': value['clientSecret'], + 'authorized-users': value['authorizedUsers'], + 'editedUsers': value['editedUsers'], + 'deletedUsers': value['deletedUsers'], + }; +} + diff --git a/src/ts/src/models/Notion.ts b/src/ts/src/models/Notion.ts new file mode 100644 index 0000000..2bd735f --- /dev/null +++ b/src/ts/src/models/Notion.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 { NOTIONConfig } from './NOTIONConfig'; +import { + NOTIONConfigFromJSON, + NOTIONConfigFromJSONTyped, + NOTIONConfigToJSON, + NOTIONConfigToJSONTyped, +} from './NOTIONConfig'; + +/** + * + * @export + * @interface Notion + */ +export interface Notion { + /** + * + * @type {NOTIONConfig} + * @memberof Notion + */ + config?: NOTIONConfig; +} + +/** + * Check if a given object implements the Notion interface. + */ +export function instanceOfNotion(value: object): value is Notion { + return true; +} + +export function NotionFromJSON(json: any): Notion { + return NotionFromJSONTyped(json, false); +} + +export function NotionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Notion { + if (json == null) { + return json; + } + return { + + 'config': json['config'] == null ? undefined : NOTIONConfigFromJSON(json['config']), + }; +} + +export function NotionToJSON(json: any): Notion { + return NotionToJSONTyped(json, false); +} + +export function NotionToJSONTyped(value?: Notion | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'config': NOTIONConfigToJSON(value['config']), + }; +} + diff --git a/src/ts/src/models/NotionOauthMulti.ts b/src/ts/src/models/NotionOauthMulti.ts new file mode 100644 index 0000000..77358cd --- /dev/null +++ b/src/ts/src/models/NotionOauthMulti.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 { NOTIONOAUTHMULTIAuthConfig } from './NOTIONOAUTHMULTIAuthConfig'; +import { + NOTIONOAUTHMULTIAuthConfigFromJSON, + NOTIONOAUTHMULTIAuthConfigFromJSONTyped, + NOTIONOAUTHMULTIAuthConfigToJSON, + NOTIONOAUTHMULTIAuthConfigToJSONTyped, +} from './NOTIONOAUTHMULTIAuthConfig'; + +/** + * + * @export + * @interface NotionOauthMulti + */ +export interface NotionOauthMulti { + /** + * + * @type {NOTIONOAUTHMULTIAuthConfig} + * @memberof NotionOauthMulti + */ + config?: NOTIONOAUTHMULTIAuthConfig; +} + +/** + * Check if a given object implements the NotionOauthMulti interface. + */ +export function instanceOfNotionOauthMulti(value: object): value is NotionOauthMulti { + return true; +} + +export function NotionOauthMultiFromJSON(json: any): NotionOauthMulti { + return NotionOauthMultiFromJSONTyped(json, false); +} + +export function NotionOauthMultiFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotionOauthMulti { + if (json == null) { + return json; + } + return { + + 'config': json['config'] == null ? undefined : NOTIONOAUTHMULTIAuthConfigFromJSON(json['config']), + }; +} + +export function NotionOauthMultiToJSON(json: any): NotionOauthMulti { + return NotionOauthMultiToJSONTyped(json, false); +} + +export function NotionOauthMultiToJSONTyped(value?: NotionOauthMulti | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'config': NOTIONOAUTHMULTIAuthConfigToJSON(value['config']), + }; +} + diff --git a/src/ts/src/models/NotionOauthMultiCustom.ts b/src/ts/src/models/NotionOauthMultiCustom.ts new file mode 100644 index 0000000..e9e156e --- /dev/null +++ b/src/ts/src/models/NotionOauthMultiCustom.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 { NOTIONOAUTHMULTICUSTOMAuthConfig } from './NOTIONOAUTHMULTICUSTOMAuthConfig'; +import { + NOTIONOAUTHMULTICUSTOMAuthConfigFromJSON, + NOTIONOAUTHMULTICUSTOMAuthConfigFromJSONTyped, + NOTIONOAUTHMULTICUSTOMAuthConfigToJSON, + NOTIONOAUTHMULTICUSTOMAuthConfigToJSONTyped, +} from './NOTIONOAUTHMULTICUSTOMAuthConfig'; + +/** + * + * @export + * @interface NotionOauthMultiCustom + */ +export interface NotionOauthMultiCustom { + /** + * + * @type {NOTIONOAUTHMULTICUSTOMAuthConfig} + * @memberof NotionOauthMultiCustom + */ + config?: NOTIONOAUTHMULTICUSTOMAuthConfig; +} + +/** + * Check if a given object implements the NotionOauthMultiCustom interface. + */ +export function instanceOfNotionOauthMultiCustom(value: object): value is NotionOauthMultiCustom { + return true; +} + +export function NotionOauthMultiCustomFromJSON(json: any): NotionOauthMultiCustom { + return NotionOauthMultiCustomFromJSONTyped(json, false); +} + +export function NotionOauthMultiCustomFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotionOauthMultiCustom { + if (json == null) { + return json; + } + return { + + 'config': json['config'] == null ? undefined : NOTIONOAUTHMULTICUSTOMAuthConfigFromJSON(json['config']), + }; +} + +export function NotionOauthMultiCustomToJSON(json: any): NotionOauthMultiCustom { + return NotionOauthMultiCustomToJSONTyped(json, false); +} + +export function NotionOauthMultiCustomToJSONTyped(value?: NotionOauthMultiCustom | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'config': NOTIONOAUTHMULTICUSTOMAuthConfigToJSON(value['config']), + }; +} + diff --git a/src/ts/src/models/ONEDRIVEAuthConfig.ts b/src/ts/src/models/ONEDRIVEAuthConfig.ts new file mode 100644 index 0000000..769b9db --- /dev/null +++ b/src/ts/src/models/ONEDRIVEAuthConfig.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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'; +/** + * Authentication configuration for OneDrive + * @export + * @interface ONEDRIVEAuthConfig + */ +export interface ONEDRIVEAuthConfig { + /** + * Name. Example: Enter a descriptive name + * @type {string} + * @memberof ONEDRIVEAuthConfig + */ + name: string; + /** + * Client Id. Example: Enter Client Id + * @type {string} + * @memberof ONEDRIVEAuthConfig + */ + msClientId: string; + /** + * Tenant Id. Example: Enter Tenant Id + * @type {string} + * @memberof ONEDRIVEAuthConfig + */ + msTenantId: string; + /** + * Client Secret. Example: Enter Client Secret + * @type {string} + * @memberof ONEDRIVEAuthConfig + */ + msClientSecret: string; + /** + * Users. Example: Enter users emails to import files from. Example: developer@vectorize.io + * @type {string} + * @memberof ONEDRIVEAuthConfig + */ + users: string; +} + +/** + * Check if a given object implements the ONEDRIVEAuthConfig interface. + */ +export function instanceOfONEDRIVEAuthConfig(value: object): value is ONEDRIVEAuthConfig { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('msClientId' in value) || value['msClientId'] === undefined) return false; + if (!('msTenantId' in value) || value['msTenantId'] === undefined) return false; + if (!('msClientSecret' in value) || value['msClientSecret'] === undefined) return false; + if (!('users' in value) || value['users'] === undefined) return false; + return true; +} + +export function ONEDRIVEAuthConfigFromJSON(json: any): ONEDRIVEAuthConfig { + return ONEDRIVEAuthConfigFromJSONTyped(json, false); +} + +export function ONEDRIVEAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): ONEDRIVEAuthConfig { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'msClientId': json['ms-client-id'], + 'msTenantId': json['ms-tenant-id'], + 'msClientSecret': json['ms-client-secret'], + 'users': json['users'], + }; +} + +export function ONEDRIVEAuthConfigToJSON(json: any): ONEDRIVEAuthConfig { + return ONEDRIVEAuthConfigToJSONTyped(json, false); +} + +export function ONEDRIVEAuthConfigToJSONTyped(value?: ONEDRIVEAuthConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'ms-client-id': value['msClientId'], + 'ms-tenant-id': value['msTenantId'], + 'ms-client-secret': value['msClientSecret'], + 'users': value['users'], + }; +} + diff --git a/src/ts/src/models/ONEDRIVEConfig.ts b/src/ts/src/models/ONEDRIVEConfig.ts new file mode 100644 index 0000000..0a0c5b3 --- /dev/null +++ b/src/ts/src/models/ONEDRIVEConfig.ts @@ -0,0 +1,94 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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'; +/** + * Configuration for OneDrive connector + * @export + * @interface ONEDRIVEConfig + */ +export interface ONEDRIVEConfig { + /** + * File Extensions + * @type {Array} + * @memberof ONEDRIVEConfig + */ + fileExtensions: ONEDRIVEConfigFileExtensionsEnum; + /** + * Read starting from this folder (optional). Example: Enter Folder path: /exampleFolder/subFolder + * @type {string} + * @memberof ONEDRIVEConfig + */ + pathPrefix?: string; +} + + +/** + * @export + */ +export const ONEDRIVEConfigFileExtensionsEnum = { + Pdf: 'pdf', + Docdocxgdocodtrtfepub: 'doc,docx,gdoc,odt,rtf,epub', + Pptpptxgslides: 'ppt,pptx,gslides', + Xlsxlsxgsheetsods: 'xls,xlsx,gsheets,ods', + Emlmsg: 'eml,msg', + Txt: 'txt', + Htmlhtm: 'html,htm', + Md: 'md', + Json: 'json', + Csv: 'csv', + Jpgjpegpngwebpsvggif: 'jpg,jpeg,png,webp,svg,gif' +} as const; +export type ONEDRIVEConfigFileExtensionsEnum = typeof ONEDRIVEConfigFileExtensionsEnum[keyof typeof ONEDRIVEConfigFileExtensionsEnum]; + + +/** + * Check if a given object implements the ONEDRIVEConfig interface. + */ +export function instanceOfONEDRIVEConfig(value: object): value is ONEDRIVEConfig { + if (!('fileExtensions' in value) || value['fileExtensions'] === undefined) return false; + return true; +} + +export function ONEDRIVEConfigFromJSON(json: any): ONEDRIVEConfig { + return ONEDRIVEConfigFromJSONTyped(json, false); +} + +export function ONEDRIVEConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): ONEDRIVEConfig { + if (json == null) { + return json; + } + return { + + 'fileExtensions': json['file-extensions'], + 'pathPrefix': json['path-prefix'] == null ? undefined : json['path-prefix'], + }; +} + +export function ONEDRIVEConfigToJSON(json: any): ONEDRIVEConfig { + return ONEDRIVEConfigToJSONTyped(json, false); +} + +export function ONEDRIVEConfigToJSONTyped(value?: ONEDRIVEConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'file-extensions': value['fileExtensions'], + 'path-prefix': value['pathPrefix'], + }; +} + diff --git a/src/ts/src/models/OPENAIAuthConfig.ts b/src/ts/src/models/OPENAIAuthConfig.ts new file mode 100644 index 0000000..5e894d1 --- /dev/null +++ b/src/ts/src/models/OPENAIAuthConfig.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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'; +/** + * Authentication configuration for OpenAI + * @export + * @interface OPENAIAuthConfig + */ +export interface OPENAIAuthConfig { + /** + * Name. Example: Enter a descriptive name for your OpenAI integration + * @type {string} + * @memberof OPENAIAuthConfig + */ + name: string; + /** + * API Key. Example: Enter your OpenAI API Key + * @type {string} + * @memberof OPENAIAuthConfig + */ + key: string; +} + +/** + * Check if a given object implements the OPENAIAuthConfig interface. + */ +export function instanceOfOPENAIAuthConfig(value: object): value is OPENAIAuthConfig { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('key' in value) || value['key'] === undefined) return false; + return true; +} + +export function OPENAIAuthConfigFromJSON(json: any): OPENAIAuthConfig { + return OPENAIAuthConfigFromJSONTyped(json, false); +} + +export function OPENAIAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): OPENAIAuthConfig { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'key': json['key'], + }; +} + +export function OPENAIAuthConfigToJSON(json: any): OPENAIAuthConfig { + return OPENAIAuthConfigToJSONTyped(json, false); +} + +export function OPENAIAuthConfigToJSONTyped(value?: OPENAIAuthConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'key': value['key'], + }; +} + diff --git a/src/ts/src/models/OneDrive.ts b/src/ts/src/models/OneDrive.ts new file mode 100644 index 0000000..1a2e722 --- /dev/null +++ b/src/ts/src/models/OneDrive.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 { ONEDRIVEConfig } from './ONEDRIVEConfig'; +import { + ONEDRIVEConfigFromJSON, + ONEDRIVEConfigFromJSONTyped, + ONEDRIVEConfigToJSON, + ONEDRIVEConfigToJSONTyped, +} from './ONEDRIVEConfig'; + +/** + * + * @export + * @interface OneDrive + */ +export interface OneDrive { + /** + * Name of the connector + * @type {string} + * @memberof OneDrive + */ + name: string; + /** + * Connector type (must be "ONE_DRIVE") + * @type {string} + * @memberof OneDrive + */ + type: OneDriveTypeEnum; + /** + * + * @type {ONEDRIVEConfig} + * @memberof OneDrive + */ + config: ONEDRIVEConfig; +} + + +/** + * @export + */ +export const OneDriveTypeEnum = { + OneDrive: 'ONE_DRIVE' +} as const; +export type OneDriveTypeEnum = typeof OneDriveTypeEnum[keyof typeof OneDriveTypeEnum]; + + +/** + * Check if a given object implements the OneDrive interface. + */ +export function instanceOfOneDrive(value: object): value is OneDrive { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('type' in value) || value['type'] === undefined) return false; + if (!('config' in value) || value['config'] === undefined) return false; + return true; +} + +export function OneDriveFromJSON(json: any): OneDrive { + return OneDriveFromJSONTyped(json, false); +} + +export function OneDriveFromJSONTyped(json: any, ignoreDiscriminator: boolean): OneDrive { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'type': json['type'], + 'config': ONEDRIVEConfigFromJSON(json['config']), + }; +} + +export function OneDriveToJSON(json: any): OneDrive { + return OneDriveToJSONTyped(json, false); +} + +export function OneDriveToJSONTyped(value?: OneDrive | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'type': value['type'], + 'config': ONEDRIVEConfigToJSON(value['config']), + }; +} + diff --git a/src/ts/src/models/OneDrive1.ts b/src/ts/src/models/OneDrive1.ts new file mode 100644 index 0000000..53f1f12 --- /dev/null +++ b/src/ts/src/models/OneDrive1.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 { ONEDRIVEConfig } from './ONEDRIVEConfig'; +import { + ONEDRIVEConfigFromJSON, + ONEDRIVEConfigFromJSONTyped, + ONEDRIVEConfigToJSON, + ONEDRIVEConfigToJSONTyped, +} from './ONEDRIVEConfig'; + +/** + * + * @export + * @interface OneDrive1 + */ +export interface OneDrive1 { + /** + * + * @type {ONEDRIVEConfig} + * @memberof OneDrive1 + */ + config?: ONEDRIVEConfig; +} + +/** + * Check if a given object implements the OneDrive1 interface. + */ +export function instanceOfOneDrive1(value: object): value is OneDrive1 { + return true; +} + +export function OneDrive1FromJSON(json: any): OneDrive1 { + return OneDrive1FromJSONTyped(json, false); +} + +export function OneDrive1FromJSONTyped(json: any, ignoreDiscriminator: boolean): OneDrive1 { + if (json == null) { + return json; + } + return { + + 'config': json['config'] == null ? undefined : ONEDRIVEConfigFromJSON(json['config']), + }; +} + +export function OneDrive1ToJSON(json: any): OneDrive1 { + return OneDrive1ToJSONTyped(json, false); +} + +export function OneDrive1ToJSONTyped(value?: OneDrive1 | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'config': ONEDRIVEConfigToJSON(value['config']), + }; +} + diff --git a/src/ts/src/models/Openai.ts b/src/ts/src/models/Openai.ts new file mode 100644 index 0000000..b4bc814 --- /dev/null +++ b/src/ts/src/models/Openai.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 { OPENAIAuthConfig } from './OPENAIAuthConfig'; +import { + OPENAIAuthConfigFromJSON, + OPENAIAuthConfigFromJSONTyped, + OPENAIAuthConfigToJSON, + OPENAIAuthConfigToJSONTyped, +} from './OPENAIAuthConfig'; + +/** + * + * @export + * @interface Openai + */ +export interface Openai { + /** + * Name of the connector + * @type {string} + * @memberof Openai + */ + name: string; + /** + * Connector type (must be "OPENAI") + * @type {string} + * @memberof Openai + */ + type: OpenaiTypeEnum; + /** + * + * @type {OPENAIAuthConfig} + * @memberof Openai + */ + config: OPENAIAuthConfig; +} + + +/** + * @export + */ +export const OpenaiTypeEnum = { + Openai: 'OPENAI' +} as const; +export type OpenaiTypeEnum = typeof OpenaiTypeEnum[keyof typeof OpenaiTypeEnum]; + + +/** + * Check if a given object implements the Openai interface. + */ +export function instanceOfOpenai(value: object): value is Openai { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('type' in value) || value['type'] === undefined) return false; + if (!('config' in value) || value['config'] === undefined) return false; + return true; +} + +export function OpenaiFromJSON(json: any): Openai { + return OpenaiFromJSONTyped(json, false); +} + +export function OpenaiFromJSONTyped(json: any, ignoreDiscriminator: boolean): Openai { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'type': json['type'], + 'config': OPENAIAuthConfigFromJSON(json['config']), + }; +} + +export function OpenaiToJSON(json: any): Openai { + return OpenaiToJSONTyped(json, false); +} + +export function OpenaiToJSONTyped(value?: Openai | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'type': value['type'], + 'config': OPENAIAuthConfigToJSON(value['config']), + }; +} + diff --git a/src/ts/src/models/Openai1.ts b/src/ts/src/models/Openai1.ts new file mode 100644 index 0000000..c07fdc8 --- /dev/null +++ b/src/ts/src/models/Openai1.ts @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 Openai1 + */ +export interface Openai1 { + /** + * Configuration updates + * @type {object} + * @memberof Openai1 + */ + config?: object; +} + +/** + * Check if a given object implements the Openai1 interface. + */ +export function instanceOfOpenai1(value: object): value is Openai1 { + return true; +} + +export function Openai1FromJSON(json: any): Openai1 { + return Openai1FromJSONTyped(json, false); +} + +export function Openai1FromJSONTyped(json: any, ignoreDiscriminator: boolean): Openai1 { + if (json == null) { + return json; + } + return { + + 'config': json['config'] == null ? undefined : json['config'], + }; +} + +export function Openai1ToJSON(json: any): Openai1 { + return Openai1ToJSONTyped(json, false); +} + +export function Openai1ToJSONTyped(value?: Openai1 | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'config': value['config'], + }; +} + diff --git a/src/ts/src/models/PINECONEAuthConfig.ts b/src/ts/src/models/PINECONEAuthConfig.ts new file mode 100644 index 0000000..77e2046 --- /dev/null +++ b/src/ts/src/models/PINECONEAuthConfig.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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'; +/** + * Authentication configuration for Pinecone + * @export + * @interface PINECONEAuthConfig + */ +export interface PINECONEAuthConfig { + /** + * Name. Example: Enter a descriptive name for your Pinecone integration + * @type {string} + * @memberof PINECONEAuthConfig + */ + name: string; + /** + * API Key. Example: Enter your API Key + * @type {string} + * @memberof PINECONEAuthConfig + */ + apiKey: string; +} + +/** + * Check if a given object implements the PINECONEAuthConfig interface. + */ +export function instanceOfPINECONEAuthConfig(value: object): value is PINECONEAuthConfig { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('apiKey' in value) || value['apiKey'] === undefined) return false; + return true; +} + +export function PINECONEAuthConfigFromJSON(json: any): PINECONEAuthConfig { + return PINECONEAuthConfigFromJSONTyped(json, false); +} + +export function PINECONEAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): PINECONEAuthConfig { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'apiKey': json['api-key'], + }; +} + +export function PINECONEAuthConfigToJSON(json: any): PINECONEAuthConfig { + return PINECONEAuthConfigToJSONTyped(json, false); +} + +export function PINECONEAuthConfigToJSONTyped(value?: PINECONEAuthConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'api-key': value['apiKey'], + }; +} + diff --git a/src/ts/src/models/PINECONEConfig.ts b/src/ts/src/models/PINECONEConfig.ts new file mode 100644 index 0000000..5987be5 --- /dev/null +++ b/src/ts/src/models/PINECONEConfig.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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'; +/** + * Configuration for Pinecone connector + * @export + * @interface PINECONEConfig + */ +export interface PINECONEConfig { + /** + * Index Name. Example: Enter index name + * @type {string} + * @memberof PINECONEConfig + */ + index: string; + /** + * Namespace. Example: Enter namespace + * @type {string} + * @memberof PINECONEConfig + */ + namespace?: string; +} + +/** + * Check if a given object implements the PINECONEConfig interface. + */ +export function instanceOfPINECONEConfig(value: object): value is PINECONEConfig { + if (!('index' in value) || value['index'] === undefined) return false; + return true; +} + +export function PINECONEConfigFromJSON(json: any): PINECONEConfig { + return PINECONEConfigFromJSONTyped(json, false); +} + +export function PINECONEConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): PINECONEConfig { + if (json == null) { + return json; + } + return { + + 'index': json['index'], + 'namespace': json['namespace'] == null ? undefined : json['namespace'], + }; +} + +export function PINECONEConfigToJSON(json: any): PINECONEConfig { + return PINECONEConfigToJSONTyped(json, false); +} + +export function PINECONEConfigToJSONTyped(value?: PINECONEConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'index': value['index'], + 'namespace': value['namespace'], + }; +} + diff --git a/src/ts/src/models/POSTGRESQLAuthConfig.ts b/src/ts/src/models/POSTGRESQLAuthConfig.ts new file mode 100644 index 0000000..83ba67c --- /dev/null +++ b/src/ts/src/models/POSTGRESQLAuthConfig.ts @@ -0,0 +1,110 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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'; +/** + * Authentication configuration for PostgreSQL + * @export + * @interface POSTGRESQLAuthConfig + */ +export interface POSTGRESQLAuthConfig { + /** + * Name. Example: Enter a descriptive name for your PostgreSQL integration + * @type {string} + * @memberof POSTGRESQLAuthConfig + */ + name: string; + /** + * Host. Example: Enter the host of the deployment + * @type {string} + * @memberof POSTGRESQLAuthConfig + */ + host: string; + /** + * Port. Example: Enter the port of the deployment + * @type {number} + * @memberof POSTGRESQLAuthConfig + */ + port?: number; + /** + * Database. Example: Enter the database name + * @type {string} + * @memberof POSTGRESQLAuthConfig + */ + database: string; + /** + * Username. Example: Enter the username + * @type {string} + * @memberof POSTGRESQLAuthConfig + */ + username: string; + /** + * Password. Example: Enter the username's password + * @type {string} + * @memberof POSTGRESQLAuthConfig + */ + password: string; +} + +/** + * Check if a given object implements the POSTGRESQLAuthConfig interface. + */ +export function instanceOfPOSTGRESQLAuthConfig(value: object): value is POSTGRESQLAuthConfig { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('host' in value) || value['host'] === undefined) return false; + if (!('database' in value) || value['database'] === undefined) return false; + if (!('username' in value) || value['username'] === undefined) return false; + if (!('password' in value) || value['password'] === undefined) return false; + return true; +} + +export function POSTGRESQLAuthConfigFromJSON(json: any): POSTGRESQLAuthConfig { + return POSTGRESQLAuthConfigFromJSONTyped(json, false); +} + +export function POSTGRESQLAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): POSTGRESQLAuthConfig { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'host': json['host'], + 'port': json['port'] == null ? undefined : json['port'], + 'database': json['database'], + 'username': json['username'], + 'password': json['password'], + }; +} + +export function POSTGRESQLAuthConfigToJSON(json: any): POSTGRESQLAuthConfig { + return POSTGRESQLAuthConfigToJSONTyped(json, false); +} + +export function POSTGRESQLAuthConfigToJSONTyped(value?: POSTGRESQLAuthConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'host': value['host'], + 'port': value['port'], + 'database': value['database'], + 'username': value['username'], + 'password': value['password'], + }; +} + diff --git a/src/ts/src/models/POSTGRESQLConfig.ts b/src/ts/src/models/POSTGRESQLConfig.ts new file mode 100644 index 0000000..47a43d7 --- /dev/null +++ b/src/ts/src/models/POSTGRESQLConfig.ts @@ -0,0 +1,66 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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'; +/** + * Configuration for PostgreSQL connector + * @export + * @interface POSTGRESQLConfig + */ +export interface POSTGRESQLConfig { + /** + * Table Name. Example: Enter
or .
+ * @type {string} + * @memberof POSTGRESQLConfig + */ + table: string; +} + +/** + * Check if a given object implements the POSTGRESQLConfig interface. + */ +export function instanceOfPOSTGRESQLConfig(value: object): value is POSTGRESQLConfig { + if (!('table' in value) || value['table'] === undefined) return false; + return true; +} + +export function POSTGRESQLConfigFromJSON(json: any): POSTGRESQLConfig { + return POSTGRESQLConfigFromJSONTyped(json, false); +} + +export function POSTGRESQLConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): POSTGRESQLConfig { + if (json == null) { + return json; + } + return { + + 'table': json['table'], + }; +} + +export function POSTGRESQLConfigToJSON(json: any): POSTGRESQLConfig { + return POSTGRESQLConfigToJSONTyped(json, false); +} + +export function POSTGRESQLConfigToJSONTyped(value?: POSTGRESQLConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'table': value['table'], + }; +} + diff --git a/src/ts/src/models/Pinecone.ts b/src/ts/src/models/Pinecone.ts new file mode 100644 index 0000000..80510eb --- /dev/null +++ b/src/ts/src/models/Pinecone.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 { PINECONEConfig } from './PINECONEConfig'; +import { + PINECONEConfigFromJSON, + PINECONEConfigFromJSONTyped, + PINECONEConfigToJSON, + PINECONEConfigToJSONTyped, +} from './PINECONEConfig'; + +/** + * + * @export + * @interface Pinecone + */ +export interface Pinecone { + /** + * Name of the connector + * @type {string} + * @memberof Pinecone + */ + name: string; + /** + * Connector type (must be "PINECONE") + * @type {string} + * @memberof Pinecone + */ + type: PineconeTypeEnum; + /** + * + * @type {PINECONEConfig} + * @memberof Pinecone + */ + config: PINECONEConfig; +} + + +/** + * @export + */ +export const PineconeTypeEnum = { + Pinecone: 'PINECONE' +} as const; +export type PineconeTypeEnum = typeof PineconeTypeEnum[keyof typeof PineconeTypeEnum]; + + +/** + * Check if a given object implements the Pinecone interface. + */ +export function instanceOfPinecone(value: object): value is Pinecone { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('type' in value) || value['type'] === undefined) return false; + if (!('config' in value) || value['config'] === undefined) return false; + return true; +} + +export function PineconeFromJSON(json: any): Pinecone { + return PineconeFromJSONTyped(json, false); +} + +export function PineconeFromJSONTyped(json: any, ignoreDiscriminator: boolean): Pinecone { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'type': json['type'], + 'config': PINECONEConfigFromJSON(json['config']), + }; +} + +export function PineconeToJSON(json: any): Pinecone { + return PineconeToJSONTyped(json, false); +} + +export function PineconeToJSONTyped(value?: Pinecone | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'type': value['type'], + 'config': PINECONEConfigToJSON(value['config']), + }; +} + diff --git a/src/ts/src/models/Pinecone1.ts b/src/ts/src/models/Pinecone1.ts new file mode 100644 index 0000000..64d6383 --- /dev/null +++ b/src/ts/src/models/Pinecone1.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 { PINECONEConfig } from './PINECONEConfig'; +import { + PINECONEConfigFromJSON, + PINECONEConfigFromJSONTyped, + PINECONEConfigToJSON, + PINECONEConfigToJSONTyped, +} from './PINECONEConfig'; + +/** + * + * @export + * @interface Pinecone1 + */ +export interface Pinecone1 { + /** + * + * @type {PINECONEConfig} + * @memberof Pinecone1 + */ + config?: PINECONEConfig; +} + +/** + * Check if a given object implements the Pinecone1 interface. + */ +export function instanceOfPinecone1(value: object): value is Pinecone1 { + return true; +} + +export function Pinecone1FromJSON(json: any): Pinecone1 { + return Pinecone1FromJSONTyped(json, false); +} + +export function Pinecone1FromJSONTyped(json: any, ignoreDiscriminator: boolean): Pinecone1 { + if (json == null) { + return json; + } + return { + + 'config': json['config'] == null ? undefined : PINECONEConfigFromJSON(json['config']), + }; +} + +export function Pinecone1ToJSON(json: any): Pinecone1 { + return Pinecone1ToJSONTyped(json, false); +} + +export function Pinecone1ToJSONTyped(value?: Pinecone1 | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'config': PINECONEConfigToJSON(value['config']), + }; +} + diff --git a/src/ts/src/models/PipelineConfigurationSchema.ts b/src/ts/src/models/PipelineConfigurationSchema.ts index 6ce652b..0cef107 100644 --- a/src/ts/src/models/PipelineConfigurationSchema.ts +++ b/src/ts/src/models/PipelineConfigurationSchema.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * @@ -34,13 +34,13 @@ import { DestinationConnectorSchemaToJSON, DestinationConnectorSchemaToJSONTyped, } from './DestinationConnectorSchema'; -import type { AIPlatformSchema } from './AIPlatformSchema'; +import type { AIPlatformConnectorSchema } from './AIPlatformConnectorSchema'; import { - AIPlatformSchemaFromJSON, - AIPlatformSchemaFromJSONTyped, - AIPlatformSchemaToJSON, - AIPlatformSchemaToJSONTyped, -} from './AIPlatformSchema'; + AIPlatformConnectorSchemaFromJSON, + AIPlatformConnectorSchemaFromJSONTyped, + AIPlatformConnectorSchemaToJSON, + AIPlatformConnectorSchemaToJSONTyped, +} from './AIPlatformConnectorSchema'; /** * @@ -62,10 +62,10 @@ export interface PipelineConfigurationSchema { destinationConnector: DestinationConnectorSchema; /** * - * @type {AIPlatformSchema} + * @type {AIPlatformConnectorSchema} * @memberof PipelineConfigurationSchema */ - aiPlatform: AIPlatformSchema; + aiPlatform: AIPlatformConnectorSchema; /** * * @type {string} @@ -104,7 +104,7 @@ export function PipelineConfigurationSchemaFromJSONTyped(json: any, ignoreDiscri 'sourceConnectors': ((json['sourceConnectors'] as Array).map(SourceConnectorSchemaFromJSON)), 'destinationConnector': DestinationConnectorSchemaFromJSON(json['destinationConnector']), - 'aiPlatform': AIPlatformSchemaFromJSON(json['aiPlatform']), + 'aiPlatform': AIPlatformConnectorSchemaFromJSON(json['aiPlatform']), 'pipelineName': json['pipelineName'], 'schedule': ScheduleSchemaFromJSON(json['schedule']), }; @@ -123,7 +123,7 @@ export function PipelineConfigurationSchemaToJSONTyped(value?: PipelineConfigura 'sourceConnectors': ((value['sourceConnectors'] as Array).map(SourceConnectorSchemaToJSON)), 'destinationConnector': DestinationConnectorSchemaToJSON(value['destinationConnector']), - 'aiPlatform': AIPlatformSchemaToJSON(value['aiPlatform']), + 'aiPlatform': AIPlatformConnectorSchemaToJSON(value['aiPlatform']), 'pipelineName': value['pipelineName'], 'schedule': ScheduleSchemaToJSON(value['schedule']), }; diff --git a/src/ts/src/models/PipelineEvents.ts b/src/ts/src/models/PipelineEvents.ts index 7348638..67a3768 100644 --- a/src/ts/src/models/PipelineEvents.ts +++ b/src/ts/src/models/PipelineEvents.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * diff --git a/src/ts/src/models/PipelineListSummary.ts b/src/ts/src/models/PipelineListSummary.ts index 067ffb9..4c4d947 100644 --- a/src/ts/src/models/PipelineListSummary.ts +++ b/src/ts/src/models/PipelineListSummary.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * diff --git a/src/ts/src/models/PipelineMetrics.ts b/src/ts/src/models/PipelineMetrics.ts index 92d8d90..4d0e396 100644 --- a/src/ts/src/models/PipelineMetrics.ts +++ b/src/ts/src/models/PipelineMetrics.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * diff --git a/src/ts/src/models/PipelineSummary.ts b/src/ts/src/models/PipelineSummary.ts index 0fac550..c45b412 100644 --- a/src/ts/src/models/PipelineSummary.ts +++ b/src/ts/src/models/PipelineSummary.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * diff --git a/src/ts/src/models/Postgresql.ts b/src/ts/src/models/Postgresql.ts new file mode 100644 index 0000000..6f17078 --- /dev/null +++ b/src/ts/src/models/Postgresql.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 { POSTGRESQLConfig } from './POSTGRESQLConfig'; +import { + POSTGRESQLConfigFromJSON, + POSTGRESQLConfigFromJSONTyped, + POSTGRESQLConfigToJSON, + POSTGRESQLConfigToJSONTyped, +} from './POSTGRESQLConfig'; + +/** + * + * @export + * @interface Postgresql + */ +export interface Postgresql { + /** + * Name of the connector + * @type {string} + * @memberof Postgresql + */ + name: string; + /** + * Connector type (must be "POSTGRESQL") + * @type {string} + * @memberof Postgresql + */ + type: PostgresqlTypeEnum; + /** + * + * @type {POSTGRESQLConfig} + * @memberof Postgresql + */ + config: POSTGRESQLConfig; +} + + +/** + * @export + */ +export const PostgresqlTypeEnum = { + Postgresql: 'POSTGRESQL' +} as const; +export type PostgresqlTypeEnum = typeof PostgresqlTypeEnum[keyof typeof PostgresqlTypeEnum]; + + +/** + * Check if a given object implements the Postgresql interface. + */ +export function instanceOfPostgresql(value: object): value is Postgresql { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('type' in value) || value['type'] === undefined) return false; + if (!('config' in value) || value['config'] === undefined) return false; + return true; +} + +export function PostgresqlFromJSON(json: any): Postgresql { + return PostgresqlFromJSONTyped(json, false); +} + +export function PostgresqlFromJSONTyped(json: any, ignoreDiscriminator: boolean): Postgresql { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'type': json['type'], + 'config': POSTGRESQLConfigFromJSON(json['config']), + }; +} + +export function PostgresqlToJSON(json: any): Postgresql { + return PostgresqlToJSONTyped(json, false); +} + +export function PostgresqlToJSONTyped(value?: Postgresql | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'type': value['type'], + 'config': POSTGRESQLConfigToJSON(value['config']), + }; +} + diff --git a/src/ts/src/models/Postgresql1.ts b/src/ts/src/models/Postgresql1.ts new file mode 100644 index 0000000..06e0484 --- /dev/null +++ b/src/ts/src/models/Postgresql1.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 { POSTGRESQLConfig } from './POSTGRESQLConfig'; +import { + POSTGRESQLConfigFromJSON, + POSTGRESQLConfigFromJSONTyped, + POSTGRESQLConfigToJSON, + POSTGRESQLConfigToJSONTyped, +} from './POSTGRESQLConfig'; + +/** + * + * @export + * @interface Postgresql1 + */ +export interface Postgresql1 { + /** + * + * @type {POSTGRESQLConfig} + * @memberof Postgresql1 + */ + config?: POSTGRESQLConfig; +} + +/** + * Check if a given object implements the Postgresql1 interface. + */ +export function instanceOfPostgresql1(value: object): value is Postgresql1 { + return true; +} + +export function Postgresql1FromJSON(json: any): Postgresql1 { + return Postgresql1FromJSONTyped(json, false); +} + +export function Postgresql1FromJSONTyped(json: any, ignoreDiscriminator: boolean): Postgresql1 { + if (json == null) { + return json; + } + return { + + 'config': json['config'] == null ? undefined : POSTGRESQLConfigFromJSON(json['config']), + }; +} + +export function Postgresql1ToJSON(json: any): Postgresql1 { + return Postgresql1ToJSONTyped(json, false); +} + +export function Postgresql1ToJSONTyped(value?: Postgresql1 | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'config': POSTGRESQLConfigToJSON(value['config']), + }; +} + diff --git a/src/ts/src/models/QDRANTAuthConfig.ts b/src/ts/src/models/QDRANTAuthConfig.ts new file mode 100644 index 0000000..39ba53c --- /dev/null +++ b/src/ts/src/models/QDRANTAuthConfig.ts @@ -0,0 +1,84 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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'; +/** + * Authentication configuration for Qdrant + * @export + * @interface QDRANTAuthConfig + */ +export interface QDRANTAuthConfig { + /** + * Name. Example: Enter a descriptive name for your Qdrant integration + * @type {string} + * @memberof QDRANTAuthConfig + */ + name: string; + /** + * Host. Example: Enter your host + * @type {string} + * @memberof QDRANTAuthConfig + */ + host: string; + /** + * API Key. Example: Enter your API key + * @type {string} + * @memberof QDRANTAuthConfig + */ + apiKey: string; +} + +/** + * Check if a given object implements the QDRANTAuthConfig interface. + */ +export function instanceOfQDRANTAuthConfig(value: object): value is QDRANTAuthConfig { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('host' in value) || value['host'] === undefined) return false; + if (!('apiKey' in value) || value['apiKey'] === undefined) return false; + return true; +} + +export function QDRANTAuthConfigFromJSON(json: any): QDRANTAuthConfig { + return QDRANTAuthConfigFromJSONTyped(json, false); +} + +export function QDRANTAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): QDRANTAuthConfig { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'host': json['host'], + 'apiKey': json['api-key'], + }; +} + +export function QDRANTAuthConfigToJSON(json: any): QDRANTAuthConfig { + return QDRANTAuthConfigToJSONTyped(json, false); +} + +export function QDRANTAuthConfigToJSONTyped(value?: QDRANTAuthConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'host': value['host'], + 'api-key': value['apiKey'], + }; +} + diff --git a/src/ts/src/models/QDRANTConfig.ts b/src/ts/src/models/QDRANTConfig.ts new file mode 100644 index 0000000..db6c661 --- /dev/null +++ b/src/ts/src/models/QDRANTConfig.ts @@ -0,0 +1,66 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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'; +/** + * Configuration for Qdrant connector + * @export + * @interface QDRANTConfig + */ +export interface QDRANTConfig { + /** + * Collection Name. Example: Enter collection name + * @type {string} + * @memberof QDRANTConfig + */ + collection: string; +} + +/** + * Check if a given object implements the QDRANTConfig interface. + */ +export function instanceOfQDRANTConfig(value: object): value is QDRANTConfig { + if (!('collection' in value) || value['collection'] === undefined) return false; + return true; +} + +export function QDRANTConfigFromJSON(json: any): QDRANTConfig { + return QDRANTConfigFromJSONTyped(json, false); +} + +export function QDRANTConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): QDRANTConfig { + if (json == null) { + return json; + } + return { + + 'collection': json['collection'], + }; +} + +export function QDRANTConfigToJSON(json: any): QDRANTConfig { + return QDRANTConfigToJSONTyped(json, false); +} + +export function QDRANTConfigToJSONTyped(value?: QDRANTConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'collection': value['collection'], + }; +} + diff --git a/src/ts/src/models/Qdrant.ts b/src/ts/src/models/Qdrant.ts new file mode 100644 index 0000000..6725591 --- /dev/null +++ b/src/ts/src/models/Qdrant.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 { QDRANTConfig } from './QDRANTConfig'; +import { + QDRANTConfigFromJSON, + QDRANTConfigFromJSONTyped, + QDRANTConfigToJSON, + QDRANTConfigToJSONTyped, +} from './QDRANTConfig'; + +/** + * + * @export + * @interface Qdrant + */ +export interface Qdrant { + /** + * Name of the connector + * @type {string} + * @memberof Qdrant + */ + name: string; + /** + * Connector type (must be "QDRANT") + * @type {string} + * @memberof Qdrant + */ + type: QdrantTypeEnum; + /** + * + * @type {QDRANTConfig} + * @memberof Qdrant + */ + config: QDRANTConfig; +} + + +/** + * @export + */ +export const QdrantTypeEnum = { + Qdrant: 'QDRANT' +} as const; +export type QdrantTypeEnum = typeof QdrantTypeEnum[keyof typeof QdrantTypeEnum]; + + +/** + * Check if a given object implements the Qdrant interface. + */ +export function instanceOfQdrant(value: object): value is Qdrant { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('type' in value) || value['type'] === undefined) return false; + if (!('config' in value) || value['config'] === undefined) return false; + return true; +} + +export function QdrantFromJSON(json: any): Qdrant { + return QdrantFromJSONTyped(json, false); +} + +export function QdrantFromJSONTyped(json: any, ignoreDiscriminator: boolean): Qdrant { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'type': json['type'], + 'config': QDRANTConfigFromJSON(json['config']), + }; +} + +export function QdrantToJSON(json: any): Qdrant { + return QdrantToJSONTyped(json, false); +} + +export function QdrantToJSONTyped(value?: Qdrant | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'type': value['type'], + 'config': QDRANTConfigToJSON(value['config']), + }; +} + diff --git a/src/ts/src/models/Qdrant1.ts b/src/ts/src/models/Qdrant1.ts new file mode 100644 index 0000000..f361e34 --- /dev/null +++ b/src/ts/src/models/Qdrant1.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 { QDRANTConfig } from './QDRANTConfig'; +import { + QDRANTConfigFromJSON, + QDRANTConfigFromJSONTyped, + QDRANTConfigToJSON, + QDRANTConfigToJSONTyped, +} from './QDRANTConfig'; + +/** + * + * @export + * @interface Qdrant1 + */ +export interface Qdrant1 { + /** + * + * @type {QDRANTConfig} + * @memberof Qdrant1 + */ + config?: QDRANTConfig; +} + +/** + * Check if a given object implements the Qdrant1 interface. + */ +export function instanceOfQdrant1(value: object): value is Qdrant1 { + return true; +} + +export function Qdrant1FromJSON(json: any): Qdrant1 { + return Qdrant1FromJSONTyped(json, false); +} + +export function Qdrant1FromJSONTyped(json: any, ignoreDiscriminator: boolean): Qdrant1 { + if (json == null) { + return json; + } + return { + + 'config': json['config'] == null ? undefined : QDRANTConfigFromJSON(json['config']), + }; +} + +export function Qdrant1ToJSON(json: any): Qdrant1 { + return Qdrant1ToJSONTyped(json, false); +} + +export function Qdrant1ToJSONTyped(value?: Qdrant1 | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'config': QDRANTConfigToJSON(value['config']), + }; +} + diff --git a/src/ts/src/models/RemoveUserFromSourceConnectorRequest.ts b/src/ts/src/models/RemoveUserFromSourceConnectorRequest.ts index 0838e7d..bc48f46 100644 --- a/src/ts/src/models/RemoveUserFromSourceConnectorRequest.ts +++ b/src/ts/src/models/RemoveUserFromSourceConnectorRequest.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * diff --git a/src/ts/src/models/RemoveUserFromSourceConnectorResponse.ts b/src/ts/src/models/RemoveUserFromSourceConnectorResponse.ts index 9b06b96..ab144d4 100644 --- a/src/ts/src/models/RemoveUserFromSourceConnectorResponse.ts +++ b/src/ts/src/models/RemoveUserFromSourceConnectorResponse.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * diff --git a/src/ts/src/models/RetrieveContext.ts b/src/ts/src/models/RetrieveContext.ts index cff6bfe..cf22f64 100644 --- a/src/ts/src/models/RetrieveContext.ts +++ b/src/ts/src/models/RetrieveContext.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * diff --git a/src/ts/src/models/RetrieveContextMessage.ts b/src/ts/src/models/RetrieveContextMessage.ts index 6f7226c..5fa577f 100644 --- a/src/ts/src/models/RetrieveContextMessage.ts +++ b/src/ts/src/models/RetrieveContextMessage.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * diff --git a/src/ts/src/models/RetrieveDocumentsRequest.ts b/src/ts/src/models/RetrieveDocumentsRequest.ts index bb581a1..190b29b 100644 --- a/src/ts/src/models/RetrieveDocumentsRequest.ts +++ b/src/ts/src/models/RetrieveDocumentsRequest.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * diff --git a/src/ts/src/models/RetrieveDocumentsResponse.ts b/src/ts/src/models/RetrieveDocumentsResponse.ts index 1c46e05..8bffb7e 100644 --- a/src/ts/src/models/RetrieveDocumentsResponse.ts +++ b/src/ts/src/models/RetrieveDocumentsResponse.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * diff --git a/src/ts/src/models/SHAREPOINTAuthConfig.ts b/src/ts/src/models/SHAREPOINTAuthConfig.ts new file mode 100644 index 0000000..aa6e2fd --- /dev/null +++ b/src/ts/src/models/SHAREPOINTAuthConfig.ts @@ -0,0 +1,93 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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'; +/** + * Authentication configuration for SharePoint + * @export + * @interface SHAREPOINTAuthConfig + */ +export interface SHAREPOINTAuthConfig { + /** + * Name. Example: Enter a descriptive name + * @type {string} + * @memberof SHAREPOINTAuthConfig + */ + name: string; + /** + * Client Id. Example: Enter Client Id + * @type {string} + * @memberof SHAREPOINTAuthConfig + */ + msClientId: string; + /** + * Tenant Id. Example: Enter Tenant Id + * @type {string} + * @memberof SHAREPOINTAuthConfig + */ + msTenantId: string; + /** + * Client Secret. Example: Enter Client Secret + * @type {string} + * @memberof SHAREPOINTAuthConfig + */ + msClientSecret: string; +} + +/** + * Check if a given object implements the SHAREPOINTAuthConfig interface. + */ +export function instanceOfSHAREPOINTAuthConfig(value: object): value is SHAREPOINTAuthConfig { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('msClientId' in value) || value['msClientId'] === undefined) return false; + if (!('msTenantId' in value) || value['msTenantId'] === undefined) return false; + if (!('msClientSecret' in value) || value['msClientSecret'] === undefined) return false; + return true; +} + +export function SHAREPOINTAuthConfigFromJSON(json: any): SHAREPOINTAuthConfig { + return SHAREPOINTAuthConfigFromJSONTyped(json, false); +} + +export function SHAREPOINTAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): SHAREPOINTAuthConfig { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'msClientId': json['ms-client-id'], + 'msTenantId': json['ms-tenant-id'], + 'msClientSecret': json['ms-client-secret'], + }; +} + +export function SHAREPOINTAuthConfigToJSON(json: any): SHAREPOINTAuthConfig { + return SHAREPOINTAuthConfigToJSONTyped(json, false); +} + +export function SHAREPOINTAuthConfigToJSONTyped(value?: SHAREPOINTAuthConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'ms-client-id': value['msClientId'], + 'ms-tenant-id': value['msTenantId'], + 'ms-client-secret': value['msClientSecret'], + }; +} + diff --git a/src/ts/src/models/SHAREPOINTConfig.ts b/src/ts/src/models/SHAREPOINTConfig.ts new file mode 100644 index 0000000..457c5ee --- /dev/null +++ b/src/ts/src/models/SHAREPOINTConfig.ts @@ -0,0 +1,101 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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'; +/** + * Configuration for SharePoint connector + * @export + * @interface SHAREPOINTConfig + */ +export interface SHAREPOINTConfig { + /** + * File Extensions + * @type {Array} + * @memberof SHAREPOINTConfig + */ + fileExtensions: SHAREPOINTConfigFileExtensionsEnum; + /** + * Site Name(s). Example: Filter by site name. All sites if empty. + * @type {string} + * @memberof SHAREPOINTConfig + */ + sites?: string; + /** + * Read starting from this folder (optional). Example: Enter Folder path: /exampleFolder/subFolder + * @type {string} + * @memberof SHAREPOINTConfig + */ + folderPath?: string; +} + + +/** + * @export + */ +export const SHAREPOINTConfigFileExtensionsEnum = { + Pdf: 'pdf', + Docdocxgdocodtrtfepub: 'doc,docx,gdoc,odt,rtf,epub', + Pptpptxgslides: 'ppt,pptx,gslides', + Xlsxlsxgsheetsods: 'xls,xlsx,gsheets,ods', + Emlmsg: 'eml,msg', + Txt: 'txt', + Htmlhtm: 'html,htm', + Json: 'json', + Csv: 'csv', + Jpgjpegpngwebpsvggif: 'jpg,jpeg,png,webp,svg,gif' +} as const; +export type SHAREPOINTConfigFileExtensionsEnum = typeof SHAREPOINTConfigFileExtensionsEnum[keyof typeof SHAREPOINTConfigFileExtensionsEnum]; + + +/** + * Check if a given object implements the SHAREPOINTConfig interface. + */ +export function instanceOfSHAREPOINTConfig(value: object): value is SHAREPOINTConfig { + if (!('fileExtensions' in value) || value['fileExtensions'] === undefined) return false; + return true; +} + +export function SHAREPOINTConfigFromJSON(json: any): SHAREPOINTConfig { + return SHAREPOINTConfigFromJSONTyped(json, false); +} + +export function SHAREPOINTConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): SHAREPOINTConfig { + if (json == null) { + return json; + } + return { + + 'fileExtensions': json['file-extensions'], + 'sites': json['sites'] == null ? undefined : json['sites'], + 'folderPath': json['folder-path'] == null ? undefined : json['folder-path'], + }; +} + +export function SHAREPOINTConfigToJSON(json: any): SHAREPOINTConfig { + return SHAREPOINTConfigToJSONTyped(json, false); +} + +export function SHAREPOINTConfigToJSONTyped(value?: SHAREPOINTConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'file-extensions': value['fileExtensions'], + 'sites': value['sites'], + 'folder-path': value['folderPath'], + }; +} + diff --git a/src/ts/src/models/SINGLESTOREAuthConfig.ts b/src/ts/src/models/SINGLESTOREAuthConfig.ts new file mode 100644 index 0000000..4df758c --- /dev/null +++ b/src/ts/src/models/SINGLESTOREAuthConfig.ts @@ -0,0 +1,111 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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'; +/** + * Authentication configuration for SingleStore + * @export + * @interface SINGLESTOREAuthConfig + */ +export interface SINGLESTOREAuthConfig { + /** + * Name. Example: Enter a descriptive name for your SingleStore integration + * @type {string} + * @memberof SINGLESTOREAuthConfig + */ + name: string; + /** + * Host. Example: Enter the host of the deployment + * @type {string} + * @memberof SINGLESTOREAuthConfig + */ + host: string; + /** + * Port. Example: Enter the port of the deployment + * @type {number} + * @memberof SINGLESTOREAuthConfig + */ + port: number; + /** + * Database. Example: Enter the database name + * @type {string} + * @memberof SINGLESTOREAuthConfig + */ + database: string; + /** + * Username. Example: Enter the username + * @type {string} + * @memberof SINGLESTOREAuthConfig + */ + username: string; + /** + * Password. Example: Enter the username's password + * @type {string} + * @memberof SINGLESTOREAuthConfig + */ + password: string; +} + +/** + * Check if a given object implements the SINGLESTOREAuthConfig interface. + */ +export function instanceOfSINGLESTOREAuthConfig(value: object): value is SINGLESTOREAuthConfig { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('host' in value) || value['host'] === undefined) return false; + if (!('port' in value) || value['port'] === undefined) return false; + if (!('database' in value) || value['database'] === undefined) return false; + if (!('username' in value) || value['username'] === undefined) return false; + if (!('password' in value) || value['password'] === undefined) return false; + return true; +} + +export function SINGLESTOREAuthConfigFromJSON(json: any): SINGLESTOREAuthConfig { + return SINGLESTOREAuthConfigFromJSONTyped(json, false); +} + +export function SINGLESTOREAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): SINGLESTOREAuthConfig { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'host': json['host'], + 'port': json['port'], + 'database': json['database'], + 'username': json['username'], + 'password': json['password'], + }; +} + +export function SINGLESTOREAuthConfigToJSON(json: any): SINGLESTOREAuthConfig { + return SINGLESTOREAuthConfigToJSONTyped(json, false); +} + +export function SINGLESTOREAuthConfigToJSONTyped(value?: SINGLESTOREAuthConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'host': value['host'], + 'port': value['port'], + 'database': value['database'], + 'username': value['username'], + 'password': value['password'], + }; +} + diff --git a/src/ts/src/models/SINGLESTOREConfig.ts b/src/ts/src/models/SINGLESTOREConfig.ts new file mode 100644 index 0000000..bbbbe39 --- /dev/null +++ b/src/ts/src/models/SINGLESTOREConfig.ts @@ -0,0 +1,66 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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'; +/** + * Configuration for SingleStore connector + * @export + * @interface SINGLESTOREConfig + */ +export interface SINGLESTOREConfig { + /** + * Table Name. Example: Enter table name + * @type {string} + * @memberof SINGLESTOREConfig + */ + table: string; +} + +/** + * Check if a given object implements the SINGLESTOREConfig interface. + */ +export function instanceOfSINGLESTOREConfig(value: object): value is SINGLESTOREConfig { + if (!('table' in value) || value['table'] === undefined) return false; + return true; +} + +export function SINGLESTOREConfigFromJSON(json: any): SINGLESTOREConfig { + return SINGLESTOREConfigFromJSONTyped(json, false); +} + +export function SINGLESTOREConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): SINGLESTOREConfig { + if (json == null) { + return json; + } + return { + + 'table': json['table'], + }; +} + +export function SINGLESTOREConfigToJSON(json: any): SINGLESTOREConfig { + return SINGLESTOREConfigToJSONTyped(json, false); +} + +export function SINGLESTOREConfigToJSONTyped(value?: SINGLESTOREConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'table': value['table'], + }; +} + diff --git a/src/ts/src/models/SUPABASEAuthConfig.ts b/src/ts/src/models/SUPABASEAuthConfig.ts new file mode 100644 index 0000000..89f1eaa --- /dev/null +++ b/src/ts/src/models/SUPABASEAuthConfig.ts @@ -0,0 +1,110 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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'; +/** + * Authentication configuration for Supabase + * @export + * @interface SUPABASEAuthConfig + */ +export interface SUPABASEAuthConfig { + /** + * Name. Example: Enter a descriptive name for your Supabase integration + * @type {string} + * @memberof SUPABASEAuthConfig + */ + name: string; + /** + * Host. Example: Enter the host of the deployment + * @type {string} + * @memberof SUPABASEAuthConfig + */ + host: string; + /** + * Port. Example: Enter the port of the deployment + * @type {number} + * @memberof SUPABASEAuthConfig + */ + port?: number; + /** + * Database. Example: Enter the database name + * @type {string} + * @memberof SUPABASEAuthConfig + */ + database: string; + /** + * Username. Example: Enter the username + * @type {string} + * @memberof SUPABASEAuthConfig + */ + username: string; + /** + * Password. Example: Enter the username's password + * @type {string} + * @memberof SUPABASEAuthConfig + */ + password: string; +} + +/** + * Check if a given object implements the SUPABASEAuthConfig interface. + */ +export function instanceOfSUPABASEAuthConfig(value: object): value is SUPABASEAuthConfig { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('host' in value) || value['host'] === undefined) return false; + if (!('database' in value) || value['database'] === undefined) return false; + if (!('username' in value) || value['username'] === undefined) return false; + if (!('password' in value) || value['password'] === undefined) return false; + return true; +} + +export function SUPABASEAuthConfigFromJSON(json: any): SUPABASEAuthConfig { + return SUPABASEAuthConfigFromJSONTyped(json, false); +} + +export function SUPABASEAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): SUPABASEAuthConfig { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'host': json['host'], + 'port': json['port'] == null ? undefined : json['port'], + 'database': json['database'], + 'username': json['username'], + 'password': json['password'], + }; +} + +export function SUPABASEAuthConfigToJSON(json: any): SUPABASEAuthConfig { + return SUPABASEAuthConfigToJSONTyped(json, false); +} + +export function SUPABASEAuthConfigToJSONTyped(value?: SUPABASEAuthConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'host': value['host'], + 'port': value['port'], + 'database': value['database'], + 'username': value['username'], + 'password': value['password'], + }; +} + diff --git a/src/ts/src/models/SUPABASEConfig.ts b/src/ts/src/models/SUPABASEConfig.ts new file mode 100644 index 0000000..11035ca --- /dev/null +++ b/src/ts/src/models/SUPABASEConfig.ts @@ -0,0 +1,66 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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'; +/** + * Configuration for Supabase connector + * @export + * @interface SUPABASEConfig + */ +export interface SUPABASEConfig { + /** + * Table Name. Example: Enter
or .
+ * @type {string} + * @memberof SUPABASEConfig + */ + table: string; +} + +/** + * Check if a given object implements the SUPABASEConfig interface. + */ +export function instanceOfSUPABASEConfig(value: object): value is SUPABASEConfig { + if (!('table' in value) || value['table'] === undefined) return false; + return true; +} + +export function SUPABASEConfigFromJSON(json: any): SUPABASEConfig { + return SUPABASEConfigFromJSONTyped(json, false); +} + +export function SUPABASEConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): SUPABASEConfig { + if (json == null) { + return json; + } + return { + + 'table': json['table'], + }; +} + +export function SUPABASEConfigToJSON(json: any): SUPABASEConfig { + return SUPABASEConfigToJSONTyped(json, false); +} + +export function SUPABASEConfigToJSONTyped(value?: SUPABASEConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'table': value['table'], + }; +} + diff --git a/src/ts/src/models/ScheduleSchema.ts b/src/ts/src/models/ScheduleSchema.ts index 3848043..03a084c 100644 --- a/src/ts/src/models/ScheduleSchema.ts +++ b/src/ts/src/models/ScheduleSchema.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * diff --git a/src/ts/src/models/ScheduleSchemaType.ts b/src/ts/src/models/ScheduleSchemaType.ts index 496fd28..ea083ea 100644 --- a/src/ts/src/models/ScheduleSchemaType.ts +++ b/src/ts/src/models/ScheduleSchemaType.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * diff --git a/src/ts/src/models/Sharepoint.ts b/src/ts/src/models/Sharepoint.ts new file mode 100644 index 0000000..0f86f1f --- /dev/null +++ b/src/ts/src/models/Sharepoint.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 { SHAREPOINTConfig } from './SHAREPOINTConfig'; +import { + SHAREPOINTConfigFromJSON, + SHAREPOINTConfigFromJSONTyped, + SHAREPOINTConfigToJSON, + SHAREPOINTConfigToJSONTyped, +} from './SHAREPOINTConfig'; + +/** + * + * @export + * @interface Sharepoint + */ +export interface Sharepoint { + /** + * Name of the connector + * @type {string} + * @memberof Sharepoint + */ + name: string; + /** + * Connector type (must be "SHAREPOINT") + * @type {string} + * @memberof Sharepoint + */ + type: SharepointTypeEnum; + /** + * + * @type {SHAREPOINTConfig} + * @memberof Sharepoint + */ + config: SHAREPOINTConfig; +} + + +/** + * @export + */ +export const SharepointTypeEnum = { + Sharepoint: 'SHAREPOINT' +} as const; +export type SharepointTypeEnum = typeof SharepointTypeEnum[keyof typeof SharepointTypeEnum]; + + +/** + * Check if a given object implements the Sharepoint interface. + */ +export function instanceOfSharepoint(value: object): value is Sharepoint { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('type' in value) || value['type'] === undefined) return false; + if (!('config' in value) || value['config'] === undefined) return false; + return true; +} + +export function SharepointFromJSON(json: any): Sharepoint { + return SharepointFromJSONTyped(json, false); +} + +export function SharepointFromJSONTyped(json: any, ignoreDiscriminator: boolean): Sharepoint { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'type': json['type'], + 'config': SHAREPOINTConfigFromJSON(json['config']), + }; +} + +export function SharepointToJSON(json: any): Sharepoint { + return SharepointToJSONTyped(json, false); +} + +export function SharepointToJSONTyped(value?: Sharepoint | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'type': value['type'], + 'config': SHAREPOINTConfigToJSON(value['config']), + }; +} + diff --git a/src/ts/src/models/Sharepoint1.ts b/src/ts/src/models/Sharepoint1.ts new file mode 100644 index 0000000..50a7bf1 --- /dev/null +++ b/src/ts/src/models/Sharepoint1.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 { SHAREPOINTConfig } from './SHAREPOINTConfig'; +import { + SHAREPOINTConfigFromJSON, + SHAREPOINTConfigFromJSONTyped, + SHAREPOINTConfigToJSON, + SHAREPOINTConfigToJSONTyped, +} from './SHAREPOINTConfig'; + +/** + * + * @export + * @interface Sharepoint1 + */ +export interface Sharepoint1 { + /** + * + * @type {SHAREPOINTConfig} + * @memberof Sharepoint1 + */ + config?: SHAREPOINTConfig; +} + +/** + * Check if a given object implements the Sharepoint1 interface. + */ +export function instanceOfSharepoint1(value: object): value is Sharepoint1 { + return true; +} + +export function Sharepoint1FromJSON(json: any): Sharepoint1 { + return Sharepoint1FromJSONTyped(json, false); +} + +export function Sharepoint1FromJSONTyped(json: any, ignoreDiscriminator: boolean): Sharepoint1 { + if (json == null) { + return json; + } + return { + + 'config': json['config'] == null ? undefined : SHAREPOINTConfigFromJSON(json['config']), + }; +} + +export function Sharepoint1ToJSON(json: any): Sharepoint1 { + return Sharepoint1ToJSONTyped(json, false); +} + +export function Sharepoint1ToJSONTyped(value?: Sharepoint1 | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'config': SHAREPOINTConfigToJSON(value['config']), + }; +} + diff --git a/src/ts/src/models/Singlestore.ts b/src/ts/src/models/Singlestore.ts new file mode 100644 index 0000000..4428dd7 --- /dev/null +++ b/src/ts/src/models/Singlestore.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 { SINGLESTOREConfig } from './SINGLESTOREConfig'; +import { + SINGLESTOREConfigFromJSON, + SINGLESTOREConfigFromJSONTyped, + SINGLESTOREConfigToJSON, + SINGLESTOREConfigToJSONTyped, +} from './SINGLESTOREConfig'; + +/** + * + * @export + * @interface Singlestore + */ +export interface Singlestore { + /** + * Name of the connector + * @type {string} + * @memberof Singlestore + */ + name: string; + /** + * Connector type (must be "SINGLESTORE") + * @type {string} + * @memberof Singlestore + */ + type: SinglestoreTypeEnum; + /** + * + * @type {SINGLESTOREConfig} + * @memberof Singlestore + */ + config: SINGLESTOREConfig; +} + + +/** + * @export + */ +export const SinglestoreTypeEnum = { + Singlestore: 'SINGLESTORE' +} as const; +export type SinglestoreTypeEnum = typeof SinglestoreTypeEnum[keyof typeof SinglestoreTypeEnum]; + + +/** + * Check if a given object implements the Singlestore interface. + */ +export function instanceOfSinglestore(value: object): value is Singlestore { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('type' in value) || value['type'] === undefined) return false; + if (!('config' in value) || value['config'] === undefined) return false; + return true; +} + +export function SinglestoreFromJSON(json: any): Singlestore { + return SinglestoreFromJSONTyped(json, false); +} + +export function SinglestoreFromJSONTyped(json: any, ignoreDiscriminator: boolean): Singlestore { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'type': json['type'], + 'config': SINGLESTOREConfigFromJSON(json['config']), + }; +} + +export function SinglestoreToJSON(json: any): Singlestore { + return SinglestoreToJSONTyped(json, false); +} + +export function SinglestoreToJSONTyped(value?: Singlestore | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'type': value['type'], + 'config': SINGLESTOREConfigToJSON(value['config']), + }; +} + diff --git a/src/ts/src/models/Singlestore1.ts b/src/ts/src/models/Singlestore1.ts new file mode 100644 index 0000000..037b0a9 --- /dev/null +++ b/src/ts/src/models/Singlestore1.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 { SINGLESTOREConfig } from './SINGLESTOREConfig'; +import { + SINGLESTOREConfigFromJSON, + SINGLESTOREConfigFromJSONTyped, + SINGLESTOREConfigToJSON, + SINGLESTOREConfigToJSONTyped, +} from './SINGLESTOREConfig'; + +/** + * + * @export + * @interface Singlestore1 + */ +export interface Singlestore1 { + /** + * + * @type {SINGLESTOREConfig} + * @memberof Singlestore1 + */ + config?: SINGLESTOREConfig; +} + +/** + * Check if a given object implements the Singlestore1 interface. + */ +export function instanceOfSinglestore1(value: object): value is Singlestore1 { + return true; +} + +export function Singlestore1FromJSON(json: any): Singlestore1 { + return Singlestore1FromJSONTyped(json, false); +} + +export function Singlestore1FromJSONTyped(json: any, ignoreDiscriminator: boolean): Singlestore1 { + if (json == null) { + return json; + } + return { + + 'config': json['config'] == null ? undefined : SINGLESTOREConfigFromJSON(json['config']), + }; +} + +export function Singlestore1ToJSON(json: any): Singlestore1 { + return Singlestore1ToJSONTyped(json, false); +} + +export function Singlestore1ToJSONTyped(value?: Singlestore1 | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'config': SINGLESTOREConfigToJSON(value['config']), + }; +} + diff --git a/src/ts/src/models/SourceConnector.ts b/src/ts/src/models/SourceConnector.ts index a2ee1dc..f5996fd 100644 --- a/src/ts/src/models/SourceConnector.ts +++ b/src/ts/src/models/SourceConnector.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * diff --git a/src/ts/src/models/SourceConnectorInput.ts b/src/ts/src/models/SourceConnectorInput.ts new file mode 100644 index 0000000..107d195 --- /dev/null +++ b/src/ts/src/models/SourceConnectorInput.ts @@ -0,0 +1,126 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 { SourceConnectorInputConfig } from './SourceConnectorInputConfig'; +import { + SourceConnectorInputConfigFromJSON, + SourceConnectorInputConfigFromJSONTyped, + SourceConnectorInputConfigToJSON, + SourceConnectorInputConfigToJSONTyped, +} from './SourceConnectorInputConfig'; + +/** + * Source connector configuration + * @export + * @interface SourceConnectorInput + */ +export interface SourceConnectorInput { + /** + * Unique identifier for the source connector + * @type {string} + * @memberof SourceConnectorInput + */ + id: string; + /** + * Type of source connector + * @type {string} + * @memberof SourceConnectorInput + */ + type: SourceConnectorInputTypeEnum; + /** + * + * @type {SourceConnectorInputConfig} + * @memberof SourceConnectorInput + */ + config: SourceConnectorInputConfig; +} + + +/** + * @export + */ +export const SourceConnectorInputTypeEnum = { + AwsS3: 'AWS_S3', + AzureBlob: 'AZURE_BLOB', + Confluence: 'CONFLUENCE', + Discord: 'DISCORD', + Dropbox: 'DROPBOX', + DropboxOauth: 'DROPBOX_OAUTH', + DropboxOauthMulti: 'DROPBOX_OAUTH_MULTI', + DropboxOauthMultiCustom: 'DROPBOX_OAUTH_MULTI_CUSTOM', + FileUpload: 'FILE_UPLOAD', + GoogleDriveOauth: 'GOOGLE_DRIVE_OAUTH', + GoogleDrive: 'GOOGLE_DRIVE', + GoogleDriveOauthMulti: 'GOOGLE_DRIVE_OAUTH_MULTI', + GoogleDriveOauthMultiCustom: 'GOOGLE_DRIVE_OAUTH_MULTI_CUSTOM', + Firecrawl: 'FIRECRAWL', + Gcs: 'GCS', + Intercom: 'INTERCOM', + Notion: 'NOTION', + NotionOauthMulti: 'NOTION_OAUTH_MULTI', + NotionOauthMultiCustom: 'NOTION_OAUTH_MULTI_CUSTOM', + OneDrive: 'ONE_DRIVE', + Sharepoint: 'SHAREPOINT', + WebCrawler: 'WEB_CRAWLER', + Github: 'GITHUB', + Fireflies: 'FIREFLIES', + Gmail: 'GMAIL' +} as const; +export type SourceConnectorInputTypeEnum = typeof SourceConnectorInputTypeEnum[keyof typeof SourceConnectorInputTypeEnum]; + + +/** + * Check if a given object implements the SourceConnectorInput interface. + */ +export function instanceOfSourceConnectorInput(value: object): value is SourceConnectorInput { + 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; +} + +export function SourceConnectorInputFromJSON(json: any): SourceConnectorInput { + return SourceConnectorInputFromJSONTyped(json, false); +} + +export function SourceConnectorInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): SourceConnectorInput { + if (json == null) { + return json; + } + return { + + 'id': json['id'], + 'type': json['type'], + 'config': SourceConnectorInputConfigFromJSON(json['config']), + }; +} + +export function SourceConnectorInputToJSON(json: any): SourceConnectorInput { + return SourceConnectorInputToJSONTyped(json, false); +} + +export function SourceConnectorInputToJSONTyped(value?: SourceConnectorInput | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'id': value['id'], + 'type': value['type'], + 'config': SourceConnectorInputConfigToJSON(value['config']), + }; +} + diff --git a/src/ts/src/models/SourceConnectorInputConfig.ts b/src/ts/src/models/SourceConnectorInputConfig.ts new file mode 100644 index 0000000..54ecee9 --- /dev/null +++ b/src/ts/src/models/SourceConnectorInputConfig.ts @@ -0,0 +1,299 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 type { AWSS3Config } from './AWSS3Config'; +import { + instanceOfAWSS3Config, + AWSS3ConfigFromJSON, + AWSS3ConfigFromJSONTyped, + AWSS3ConfigToJSON, +} from './AWSS3Config'; +import type { AZUREBLOBConfig } from './AZUREBLOBConfig'; +import { + instanceOfAZUREBLOBConfig, + AZUREBLOBConfigFromJSON, + AZUREBLOBConfigFromJSONTyped, + AZUREBLOBConfigToJSON, +} from './AZUREBLOBConfig'; +import type { CONFLUENCEConfig } from './CONFLUENCEConfig'; +import { + instanceOfCONFLUENCEConfig, + CONFLUENCEConfigFromJSON, + CONFLUENCEConfigFromJSONTyped, + CONFLUENCEConfigToJSON, +} from './CONFLUENCEConfig'; +import type { DISCORDConfig } from './DISCORDConfig'; +import { + instanceOfDISCORDConfig, + DISCORDConfigFromJSON, + DISCORDConfigFromJSONTyped, + DISCORDConfigToJSON, +} from './DISCORDConfig'; +import type { DROPBOXConfig } from './DROPBOXConfig'; +import { + instanceOfDROPBOXConfig, + DROPBOXConfigFromJSON, + DROPBOXConfigFromJSONTyped, + DROPBOXConfigToJSON, +} from './DROPBOXConfig'; +import type { FIRECRAWLConfig } from './FIRECRAWLConfig'; +import { + instanceOfFIRECRAWLConfig, + FIRECRAWLConfigFromJSON, + FIRECRAWLConfigFromJSONTyped, + FIRECRAWLConfigToJSON, +} from './FIRECRAWLConfig'; +import type { FIREFLIESConfig } from './FIREFLIESConfig'; +import { + instanceOfFIREFLIESConfig, + FIREFLIESConfigFromJSON, + FIREFLIESConfigFromJSONTyped, + FIREFLIESConfigToJSON, +} from './FIREFLIESConfig'; +import type { GCSConfig } from './GCSConfig'; +import { + instanceOfGCSConfig, + GCSConfigFromJSON, + GCSConfigFromJSONTyped, + GCSConfigToJSON, +} from './GCSConfig'; +import type { GITHUBConfig } from './GITHUBConfig'; +import { + instanceOfGITHUBConfig, + GITHUBConfigFromJSON, + GITHUBConfigFromJSONTyped, + GITHUBConfigToJSON, +} from './GITHUBConfig'; +import type { GMAILConfig } from './GMAILConfig'; +import { + instanceOfGMAILConfig, + GMAILConfigFromJSON, + GMAILConfigFromJSONTyped, + GMAILConfigToJSON, +} from './GMAILConfig'; +import type { GOOGLEDRIVEConfig } from './GOOGLEDRIVEConfig'; +import { + instanceOfGOOGLEDRIVEConfig, + GOOGLEDRIVEConfigFromJSON, + GOOGLEDRIVEConfigFromJSONTyped, + GOOGLEDRIVEConfigToJSON, +} from './GOOGLEDRIVEConfig'; +import type { GOOGLEDRIVEOAUTHConfig } from './GOOGLEDRIVEOAUTHConfig'; +import { + instanceOfGOOGLEDRIVEOAUTHConfig, + GOOGLEDRIVEOAUTHConfigFromJSON, + GOOGLEDRIVEOAUTHConfigFromJSONTyped, + GOOGLEDRIVEOAUTHConfigToJSON, +} from './GOOGLEDRIVEOAUTHConfig'; +import type { GOOGLEDRIVEOAUTHMULTICUSTOMConfig } from './GOOGLEDRIVEOAUTHMULTICUSTOMConfig'; +import { + instanceOfGOOGLEDRIVEOAUTHMULTICUSTOMConfig, + GOOGLEDRIVEOAUTHMULTICUSTOMConfigFromJSON, + GOOGLEDRIVEOAUTHMULTICUSTOMConfigFromJSONTyped, + GOOGLEDRIVEOAUTHMULTICUSTOMConfigToJSON, +} from './GOOGLEDRIVEOAUTHMULTICUSTOMConfig'; +import type { GOOGLEDRIVEOAUTHMULTIConfig } from './GOOGLEDRIVEOAUTHMULTIConfig'; +import { + instanceOfGOOGLEDRIVEOAUTHMULTIConfig, + GOOGLEDRIVEOAUTHMULTIConfigFromJSON, + GOOGLEDRIVEOAUTHMULTIConfigFromJSONTyped, + GOOGLEDRIVEOAUTHMULTIConfigToJSON, +} from './GOOGLEDRIVEOAUTHMULTIConfig'; +import type { INTERCOMConfig } from './INTERCOMConfig'; +import { + instanceOfINTERCOMConfig, + INTERCOMConfigFromJSON, + INTERCOMConfigFromJSONTyped, + INTERCOMConfigToJSON, +} from './INTERCOMConfig'; +import type { NOTIONConfig } from './NOTIONConfig'; +import { + instanceOfNOTIONConfig, + NOTIONConfigFromJSON, + NOTIONConfigFromJSONTyped, + NOTIONConfigToJSON, +} from './NOTIONConfig'; +import type { ONEDRIVEConfig } from './ONEDRIVEConfig'; +import { + instanceOfONEDRIVEConfig, + ONEDRIVEConfigFromJSON, + ONEDRIVEConfigFromJSONTyped, + ONEDRIVEConfigToJSON, +} from './ONEDRIVEConfig'; +import type { SHAREPOINTConfig } from './SHAREPOINTConfig'; +import { + instanceOfSHAREPOINTConfig, + SHAREPOINTConfigFromJSON, + SHAREPOINTConfigFromJSONTyped, + SHAREPOINTConfigToJSON, +} from './SHAREPOINTConfig'; +import type { WEBCRAWLERConfig } from './WEBCRAWLERConfig'; +import { + instanceOfWEBCRAWLERConfig, + WEBCRAWLERConfigFromJSON, + WEBCRAWLERConfigFromJSONTyped, + WEBCRAWLERConfigToJSON, +} from './WEBCRAWLERConfig'; + +/** + * @type SourceConnectorInputConfig + * Configuration specific to the connector type + * @export + */ +export type SourceConnectorInputConfig = AWSS3Config | AZUREBLOBConfig | CONFLUENCEConfig | DISCORDConfig | DROPBOXConfig | FIRECRAWLConfig | FIREFLIESConfig | GCSConfig | GITHUBConfig | GMAILConfig | GOOGLEDRIVEConfig | GOOGLEDRIVEOAUTHConfig | GOOGLEDRIVEOAUTHMULTICUSTOMConfig | GOOGLEDRIVEOAUTHMULTIConfig | INTERCOMConfig | NOTIONConfig | ONEDRIVEConfig | SHAREPOINTConfig | WEBCRAWLERConfig; + +export function SourceConnectorInputConfigFromJSON(json: any): SourceConnectorInputConfig { + return SourceConnectorInputConfigFromJSONTyped(json, false); +} + +export function SourceConnectorInputConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): SourceConnectorInputConfig { + if (json == null) { + return json; + } + if (typeof json !== 'object') { + return json; + } + if (instanceOfAWSS3Config(json)) { + return AWSS3ConfigFromJSONTyped(json, true); + } + if (instanceOfAZUREBLOBConfig(json)) { + return AZUREBLOBConfigFromJSONTyped(json, true); + } + if (instanceOfCONFLUENCEConfig(json)) { + return CONFLUENCEConfigFromJSONTyped(json, true); + } + if (instanceOfDISCORDConfig(json)) { + return DISCORDConfigFromJSONTyped(json, true); + } + if (instanceOfDROPBOXConfig(json)) { + return DROPBOXConfigFromJSONTyped(json, true); + } + if (instanceOfFIRECRAWLConfig(json)) { + return FIRECRAWLConfigFromJSONTyped(json, true); + } + if (instanceOfFIREFLIESConfig(json)) { + return FIREFLIESConfigFromJSONTyped(json, true); + } + if (instanceOfGCSConfig(json)) { + return GCSConfigFromJSONTyped(json, true); + } + if (instanceOfGITHUBConfig(json)) { + return GITHUBConfigFromJSONTyped(json, true); + } + if (instanceOfGMAILConfig(json)) { + return GMAILConfigFromJSONTyped(json, true); + } + if (instanceOfGOOGLEDRIVEConfig(json)) { + return GOOGLEDRIVEConfigFromJSONTyped(json, true); + } + if (instanceOfGOOGLEDRIVEOAUTHConfig(json)) { + return GOOGLEDRIVEOAUTHConfigFromJSONTyped(json, true); + } + if (instanceOfGOOGLEDRIVEOAUTHMULTICUSTOMConfig(json)) { + return GOOGLEDRIVEOAUTHMULTICUSTOMConfigFromJSONTyped(json, true); + } + if (instanceOfGOOGLEDRIVEOAUTHMULTIConfig(json)) { + return GOOGLEDRIVEOAUTHMULTIConfigFromJSONTyped(json, true); + } + if (instanceOfINTERCOMConfig(json)) { + return INTERCOMConfigFromJSONTyped(json, true); + } + if (instanceOfNOTIONConfig(json)) { + return NOTIONConfigFromJSONTyped(json, true); + } + if (instanceOfONEDRIVEConfig(json)) { + return ONEDRIVEConfigFromJSONTyped(json, true); + } + if (instanceOfSHAREPOINTConfig(json)) { + return SHAREPOINTConfigFromJSONTyped(json, true); + } + if (instanceOfWEBCRAWLERConfig(json)) { + return WEBCRAWLERConfigFromJSONTyped(json, true); + } + + return {} as any; +} + +export function SourceConnectorInputConfigToJSON(json: any): any { + return SourceConnectorInputConfigToJSONTyped(json, false); +} + +export function SourceConnectorInputConfigToJSONTyped(value?: SourceConnectorInputConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + if (typeof value !== 'object') { + return value; + } + if (instanceOfAWSS3Config(value)) { + return AWSS3ConfigToJSON(value as AWSS3Config); + } + if (instanceOfAZUREBLOBConfig(value)) { + return AZUREBLOBConfigToJSON(value as AZUREBLOBConfig); + } + if (instanceOfCONFLUENCEConfig(value)) { + return CONFLUENCEConfigToJSON(value as CONFLUENCEConfig); + } + if (instanceOfDISCORDConfig(value)) { + return DISCORDConfigToJSON(value as DISCORDConfig); + } + if (instanceOfDROPBOXConfig(value)) { + return DROPBOXConfigToJSON(value as DROPBOXConfig); + } + if (instanceOfFIRECRAWLConfig(value)) { + return FIRECRAWLConfigToJSON(value as FIRECRAWLConfig); + } + if (instanceOfFIREFLIESConfig(value)) { + return FIREFLIESConfigToJSON(value as FIREFLIESConfig); + } + if (instanceOfGCSConfig(value)) { + return GCSConfigToJSON(value as GCSConfig); + } + if (instanceOfGITHUBConfig(value)) { + return GITHUBConfigToJSON(value as GITHUBConfig); + } + if (instanceOfGMAILConfig(value)) { + return GMAILConfigToJSON(value as GMAILConfig); + } + if (instanceOfGOOGLEDRIVEConfig(value)) { + return GOOGLEDRIVEConfigToJSON(value as GOOGLEDRIVEConfig); + } + if (instanceOfGOOGLEDRIVEOAUTHConfig(value)) { + return GOOGLEDRIVEOAUTHConfigToJSON(value as GOOGLEDRIVEOAUTHConfig); + } + if (instanceOfGOOGLEDRIVEOAUTHMULTICUSTOMConfig(value)) { + return GOOGLEDRIVEOAUTHMULTICUSTOMConfigToJSON(value as GOOGLEDRIVEOAUTHMULTICUSTOMConfig); + } + if (instanceOfGOOGLEDRIVEOAUTHMULTIConfig(value)) { + return GOOGLEDRIVEOAUTHMULTIConfigToJSON(value as GOOGLEDRIVEOAUTHMULTIConfig); + } + if (instanceOfINTERCOMConfig(value)) { + return INTERCOMConfigToJSON(value as INTERCOMConfig); + } + if (instanceOfNOTIONConfig(value)) { + return NOTIONConfigToJSON(value as NOTIONConfig); + } + if (instanceOfONEDRIVEConfig(value)) { + return ONEDRIVEConfigToJSON(value as ONEDRIVEConfig); + } + if (instanceOfSHAREPOINTConfig(value)) { + return SHAREPOINTConfigToJSON(value as SHAREPOINTConfig); + } + if (instanceOfWEBCRAWLERConfig(value)) { + return WEBCRAWLERConfigToJSON(value as WEBCRAWLERConfig); + } + + return {}; +} + diff --git a/src/ts/src/models/SourceConnectorSchema.ts b/src/ts/src/models/SourceConnectorSchema.ts index 7133918..15a7618 100644 --- a/src/ts/src/models/SourceConnectorSchema.ts +++ b/src/ts/src/models/SourceConnectorSchema.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * @@ -44,7 +44,7 @@ export interface SourceConnectorSchema { * @type {{ [key: string]: any | null; }} * @memberof SourceConnectorSchema */ - config?: { [key: string]: any | null; }; + config: { [key: string]: any | null; }; } @@ -55,6 +55,7 @@ export interface SourceConnectorSchema { 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; } @@ -70,7 +71,7 @@ export function SourceConnectorSchemaFromJSONTyped(json: any, ignoreDiscriminato 'id': json['id'], 'type': SourceConnectorTypeFromJSON(json['type']), - 'config': json['config'] == null ? undefined : json['config'], + 'config': json['config'], }; } diff --git a/src/ts/src/models/SourceConnectorType.ts b/src/ts/src/models/SourceConnectorType.ts index 5d33907..fb74408 100644 --- a/src/ts/src/models/SourceConnectorType.ts +++ b/src/ts/src/models/SourceConnectorType.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * @@ -23,6 +23,10 @@ export const SourceConnectorType = { Confluence: 'CONFLUENCE', Discord: 'DISCORD', Dropbox: 'DROPBOX', + DropboxOauth: 'DROPBOX_OAUTH', + DropboxOauthMulti: 'DROPBOX_OAUTH_MULTI', + DropboxOauthMultiCustom: 'DROPBOX_OAUTH_MULTI_CUSTOM', + FileUpload: 'FILE_UPLOAD', GoogleDriveOauth: 'GOOGLE_DRIVE_OAUTH', GoogleDrive: 'GOOGLE_DRIVE', GoogleDriveOauthMulti: 'GOOGLE_DRIVE_OAUTH_MULTI', @@ -30,12 +34,15 @@ export const SourceConnectorType = { Firecrawl: 'FIRECRAWL', Gcs: 'GCS', Intercom: 'INTERCOM', + Notion: 'NOTION', + NotionOauthMulti: 'NOTION_OAUTH_MULTI', + NotionOauthMultiCustom: 'NOTION_OAUTH_MULTI_CUSTOM', OneDrive: 'ONE_DRIVE', Sharepoint: 'SHAREPOINT', WebCrawler: 'WEB_CRAWLER', - FileUpload: 'FILE_UPLOAD', - Salesforce: 'SALESFORCE', - Zendesk: 'ZENDESK' + Github: 'GITHUB', + Fireflies: 'FIREFLIES', + Gmail: 'GMAIL' } as const; export type SourceConnectorType = typeof SourceConnectorType[keyof typeof SourceConnectorType]; diff --git a/src/ts/src/models/StartDeepResearchRequest.ts b/src/ts/src/models/StartDeepResearchRequest.ts index e1910fb..d3dd9c8 100644 --- a/src/ts/src/models/StartDeepResearchRequest.ts +++ b/src/ts/src/models/StartDeepResearchRequest.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * diff --git a/src/ts/src/models/StartDeepResearchResponse.ts b/src/ts/src/models/StartDeepResearchResponse.ts index 5853105..c261636 100644 --- a/src/ts/src/models/StartDeepResearchResponse.ts +++ b/src/ts/src/models/StartDeepResearchResponse.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * diff --git a/src/ts/src/models/StartExtractionRequest.ts b/src/ts/src/models/StartExtractionRequest.ts index 2de652c..2dd02f2 100644 --- a/src/ts/src/models/StartExtractionRequest.ts +++ b/src/ts/src/models/StartExtractionRequest.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * diff --git a/src/ts/src/models/StartExtractionResponse.ts b/src/ts/src/models/StartExtractionResponse.ts index e942d74..653e28a 100644 --- a/src/ts/src/models/StartExtractionResponse.ts +++ b/src/ts/src/models/StartExtractionResponse.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * diff --git a/src/ts/src/models/StartFileUploadRequest.ts b/src/ts/src/models/StartFileUploadRequest.ts index 3b6ec3a..8069b62 100644 --- a/src/ts/src/models/StartFileUploadRequest.ts +++ b/src/ts/src/models/StartFileUploadRequest.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * diff --git a/src/ts/src/models/StartFileUploadResponse.ts b/src/ts/src/models/StartFileUploadResponse.ts index 55f6a69..6f0351a 100644 --- a/src/ts/src/models/StartFileUploadResponse.ts +++ b/src/ts/src/models/StartFileUploadResponse.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * diff --git a/src/ts/src/models/StartFileUploadToConnectorRequest.ts b/src/ts/src/models/StartFileUploadToConnectorRequest.ts index ac8b4d1..b9225b1 100644 --- a/src/ts/src/models/StartFileUploadToConnectorRequest.ts +++ b/src/ts/src/models/StartFileUploadToConnectorRequest.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * diff --git a/src/ts/src/models/StartFileUploadToConnectorResponse.ts b/src/ts/src/models/StartFileUploadToConnectorResponse.ts index 5e09a52..3a95985 100644 --- a/src/ts/src/models/StartFileUploadToConnectorResponse.ts +++ b/src/ts/src/models/StartFileUploadToConnectorResponse.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * diff --git a/src/ts/src/models/StartPipelineResponse.ts b/src/ts/src/models/StartPipelineResponse.ts index 0eb38ef..6c7490e 100644 --- a/src/ts/src/models/StartPipelineResponse.ts +++ b/src/ts/src/models/StartPipelineResponse.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * diff --git a/src/ts/src/models/StopPipelineResponse.ts b/src/ts/src/models/StopPipelineResponse.ts index 24b133f..b2dea54 100644 --- a/src/ts/src/models/StopPipelineResponse.ts +++ b/src/ts/src/models/StopPipelineResponse.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * diff --git a/src/ts/src/models/Supabase.ts b/src/ts/src/models/Supabase.ts new file mode 100644 index 0000000..dc120cd --- /dev/null +++ b/src/ts/src/models/Supabase.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 { SUPABASEConfig } from './SUPABASEConfig'; +import { + SUPABASEConfigFromJSON, + SUPABASEConfigFromJSONTyped, + SUPABASEConfigToJSON, + SUPABASEConfigToJSONTyped, +} from './SUPABASEConfig'; + +/** + * + * @export + * @interface Supabase + */ +export interface Supabase { + /** + * Name of the connector + * @type {string} + * @memberof Supabase + */ + name: string; + /** + * Connector type (must be "SUPABASE") + * @type {string} + * @memberof Supabase + */ + type: SupabaseTypeEnum; + /** + * + * @type {SUPABASEConfig} + * @memberof Supabase + */ + config: SUPABASEConfig; +} + + +/** + * @export + */ +export const SupabaseTypeEnum = { + Supabase: 'SUPABASE' +} as const; +export type SupabaseTypeEnum = typeof SupabaseTypeEnum[keyof typeof SupabaseTypeEnum]; + + +/** + * Check if a given object implements the Supabase interface. + */ +export function instanceOfSupabase(value: object): value is Supabase { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('type' in value) || value['type'] === undefined) return false; + if (!('config' in value) || value['config'] === undefined) return false; + return true; +} + +export function SupabaseFromJSON(json: any): Supabase { + return SupabaseFromJSONTyped(json, false); +} + +export function SupabaseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Supabase { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'type': json['type'], + 'config': SUPABASEConfigFromJSON(json['config']), + }; +} + +export function SupabaseToJSON(json: any): Supabase { + return SupabaseToJSONTyped(json, false); +} + +export function SupabaseToJSONTyped(value?: Supabase | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'type': value['type'], + 'config': SUPABASEConfigToJSON(value['config']), + }; +} + diff --git a/src/ts/src/models/Supabase1.ts b/src/ts/src/models/Supabase1.ts new file mode 100644 index 0000000..4caf393 --- /dev/null +++ b/src/ts/src/models/Supabase1.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 { SUPABASEConfig } from './SUPABASEConfig'; +import { + SUPABASEConfigFromJSON, + SUPABASEConfigFromJSONTyped, + SUPABASEConfigToJSON, + SUPABASEConfigToJSONTyped, +} from './SUPABASEConfig'; + +/** + * + * @export + * @interface Supabase1 + */ +export interface Supabase1 { + /** + * + * @type {SUPABASEConfig} + * @memberof Supabase1 + */ + config?: SUPABASEConfig; +} + +/** + * Check if a given object implements the Supabase1 interface. + */ +export function instanceOfSupabase1(value: object): value is Supabase1 { + return true; +} + +export function Supabase1FromJSON(json: any): Supabase1 { + return Supabase1FromJSONTyped(json, false); +} + +export function Supabase1FromJSONTyped(json: any, ignoreDiscriminator: boolean): Supabase1 { + if (json == null) { + return json; + } + return { + + 'config': json['config'] == null ? undefined : SUPABASEConfigFromJSON(json['config']), + }; +} + +export function Supabase1ToJSON(json: any): Supabase1 { + return Supabase1ToJSONTyped(json, false); +} + +export function Supabase1ToJSONTyped(value?: Supabase1 | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'config': SUPABASEConfigToJSON(value['config']), + }; +} + diff --git a/src/ts/src/models/TURBOPUFFERAuthConfig.ts b/src/ts/src/models/TURBOPUFFERAuthConfig.ts new file mode 100644 index 0000000..8244b5d --- /dev/null +++ b/src/ts/src/models/TURBOPUFFERAuthConfig.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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'; +/** + * Authentication configuration for Turbopuffer + * @export + * @interface TURBOPUFFERAuthConfig + */ +export interface TURBOPUFFERAuthConfig { + /** + * Name. Example: Enter a descriptive name for your Turbopuffer integration + * @type {string} + * @memberof TURBOPUFFERAuthConfig + */ + name: string; + /** + * API Key. Example: Enter your API key + * @type {string} + * @memberof TURBOPUFFERAuthConfig + */ + apiKey: string; +} + +/** + * Check if a given object implements the TURBOPUFFERAuthConfig interface. + */ +export function instanceOfTURBOPUFFERAuthConfig(value: object): value is TURBOPUFFERAuthConfig { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('apiKey' in value) || value['apiKey'] === undefined) return false; + return true; +} + +export function TURBOPUFFERAuthConfigFromJSON(json: any): TURBOPUFFERAuthConfig { + return TURBOPUFFERAuthConfigFromJSONTyped(json, false); +} + +export function TURBOPUFFERAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): TURBOPUFFERAuthConfig { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'apiKey': json['api-key'], + }; +} + +export function TURBOPUFFERAuthConfigToJSON(json: any): TURBOPUFFERAuthConfig { + return TURBOPUFFERAuthConfigToJSONTyped(json, false); +} + +export function TURBOPUFFERAuthConfigToJSONTyped(value?: TURBOPUFFERAuthConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'api-key': value['apiKey'], + }; +} + diff --git a/src/ts/src/models/TURBOPUFFERConfig.ts b/src/ts/src/models/TURBOPUFFERConfig.ts new file mode 100644 index 0000000..5cfee75 --- /dev/null +++ b/src/ts/src/models/TURBOPUFFERConfig.ts @@ -0,0 +1,66 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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'; +/** + * Configuration for Turbopuffer connector + * @export + * @interface TURBOPUFFERConfig + */ +export interface TURBOPUFFERConfig { + /** + * Namespace. Example: Enter namespace name + * @type {string} + * @memberof TURBOPUFFERConfig + */ + namespace: string; +} + +/** + * Check if a given object implements the TURBOPUFFERConfig interface. + */ +export function instanceOfTURBOPUFFERConfig(value: object): value is TURBOPUFFERConfig { + if (!('namespace' in value) || value['namespace'] === undefined) return false; + return true; +} + +export function TURBOPUFFERConfigFromJSON(json: any): TURBOPUFFERConfig { + return TURBOPUFFERConfigFromJSONTyped(json, false); +} + +export function TURBOPUFFERConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): TURBOPUFFERConfig { + if (json == null) { + return json; + } + return { + + 'namespace': json['namespace'], + }; +} + +export function TURBOPUFFERConfigToJSON(json: any): TURBOPUFFERConfig { + return TURBOPUFFERConfigToJSONTyped(json, false); +} + +export function TURBOPUFFERConfigToJSONTyped(value?: TURBOPUFFERConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'namespace': value['namespace'], + }; +} + diff --git a/src/ts/src/models/Turbopuffer.ts b/src/ts/src/models/Turbopuffer.ts new file mode 100644 index 0000000..26fac44 --- /dev/null +++ b/src/ts/src/models/Turbopuffer.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 { TURBOPUFFERConfig } from './TURBOPUFFERConfig'; +import { + TURBOPUFFERConfigFromJSON, + TURBOPUFFERConfigFromJSONTyped, + TURBOPUFFERConfigToJSON, + TURBOPUFFERConfigToJSONTyped, +} from './TURBOPUFFERConfig'; + +/** + * + * @export + * @interface Turbopuffer + */ +export interface Turbopuffer { + /** + * Name of the connector + * @type {string} + * @memberof Turbopuffer + */ + name: string; + /** + * Connector type (must be "TURBOPUFFER") + * @type {string} + * @memberof Turbopuffer + */ + type: TurbopufferTypeEnum; + /** + * + * @type {TURBOPUFFERConfig} + * @memberof Turbopuffer + */ + config: TURBOPUFFERConfig; +} + + +/** + * @export + */ +export const TurbopufferTypeEnum = { + Turbopuffer: 'TURBOPUFFER' +} as const; +export type TurbopufferTypeEnum = typeof TurbopufferTypeEnum[keyof typeof TurbopufferTypeEnum]; + + +/** + * Check if a given object implements the Turbopuffer interface. + */ +export function instanceOfTurbopuffer(value: object): value is Turbopuffer { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('type' in value) || value['type'] === undefined) return false; + if (!('config' in value) || value['config'] === undefined) return false; + return true; +} + +export function TurbopufferFromJSON(json: any): Turbopuffer { + return TurbopufferFromJSONTyped(json, false); +} + +export function TurbopufferFromJSONTyped(json: any, ignoreDiscriminator: boolean): Turbopuffer { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'type': json['type'], + 'config': TURBOPUFFERConfigFromJSON(json['config']), + }; +} + +export function TurbopufferToJSON(json: any): Turbopuffer { + return TurbopufferToJSONTyped(json, false); +} + +export function TurbopufferToJSONTyped(value?: Turbopuffer | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'type': value['type'], + 'config': TURBOPUFFERConfigToJSON(value['config']), + }; +} + diff --git a/src/ts/src/models/Turbopuffer1.ts b/src/ts/src/models/Turbopuffer1.ts new file mode 100644 index 0000000..3fc9d91 --- /dev/null +++ b/src/ts/src/models/Turbopuffer1.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 { TURBOPUFFERConfig } from './TURBOPUFFERConfig'; +import { + TURBOPUFFERConfigFromJSON, + TURBOPUFFERConfigFromJSONTyped, + TURBOPUFFERConfigToJSON, + TURBOPUFFERConfigToJSONTyped, +} from './TURBOPUFFERConfig'; + +/** + * + * @export + * @interface Turbopuffer1 + */ +export interface Turbopuffer1 { + /** + * + * @type {TURBOPUFFERConfig} + * @memberof Turbopuffer1 + */ + config?: TURBOPUFFERConfig; +} + +/** + * Check if a given object implements the Turbopuffer1 interface. + */ +export function instanceOfTurbopuffer1(value: object): value is Turbopuffer1 { + return true; +} + +export function Turbopuffer1FromJSON(json: any): Turbopuffer1 { + return Turbopuffer1FromJSONTyped(json, false); +} + +export function Turbopuffer1FromJSONTyped(json: any, ignoreDiscriminator: boolean): Turbopuffer1 { + if (json == null) { + return json; + } + return { + + 'config': json['config'] == null ? undefined : TURBOPUFFERConfigFromJSON(json['config']), + }; +} + +export function Turbopuffer1ToJSON(json: any): Turbopuffer1 { + return Turbopuffer1ToJSONTyped(json, false); +} + +export function Turbopuffer1ToJSONTyped(value?: Turbopuffer1 | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'config': TURBOPUFFERConfigToJSON(value['config']), + }; +} + diff --git a/src/ts/src/models/UpdateAIPlatformConnectorRequest.ts b/src/ts/src/models/UpdateAIPlatformConnectorRequest.ts index 8d56e0e..bc42f06 100644 --- a/src/ts/src/models/UpdateAIPlatformConnectorRequest.ts +++ b/src/ts/src/models/UpdateAIPlatformConnectorRequest.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * @@ -12,28 +12,41 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; +import type { Bedrock1 } from './Bedrock1'; +import { + instanceOfBedrock1, + Bedrock1FromJSON, + Bedrock1FromJSONTyped, + Bedrock1ToJSON, +} from './Bedrock1'; +import type { Openai1 } from './Openai1'; +import { + instanceOfOpenai1, + Openai1FromJSON, + Openai1FromJSONTyped, + Openai1ToJSON, +} from './Openai1'; +import type { Vertex1 } from './Vertex1'; +import { + instanceOfVertex1, + Vertex1FromJSON, + Vertex1FromJSONTyped, + Vertex1ToJSON, +} from './Vertex1'; +import type { Voyage1 } from './Voyage1'; +import { + instanceOfVoyage1, + Voyage1FromJSON, + Voyage1FromJSONTyped, + Voyage1ToJSON, +} from './Voyage1'; + /** + * @type UpdateAIPlatformConnectorRequest * * @export - * @interface UpdateAIPlatformConnectorRequest - */ -export interface UpdateAIPlatformConnectorRequest { - /** - * - * @type {{ [key: string]: any | null; }} - * @memberof UpdateAIPlatformConnectorRequest - */ - config: { [key: string]: any | null; }; -} - -/** - * Check if a given object implements the UpdateAIPlatformConnectorRequest interface. */ -export function instanceOfUpdateAIPlatformConnectorRequest(value: object): value is UpdateAIPlatformConnectorRequest { - if (!('config' in value) || value['config'] === undefined) return false; - return true; -} +export type UpdateAIPlatformConnectorRequest = Bedrock1 | Openai1 | Vertex1 | Voyage1; export function UpdateAIPlatformConnectorRequestFromJSON(json: any): UpdateAIPlatformConnectorRequest { return UpdateAIPlatformConnectorRequestFromJSONTyped(json, false); @@ -43,13 +56,26 @@ export function UpdateAIPlatformConnectorRequestFromJSONTyped(json: any, ignoreD if (json == null) { return json; } - return { - - 'config': json['config'], - }; + if (typeof json !== 'object') { + return json; + } + if (instanceOfBedrock1(json)) { + return Bedrock1FromJSONTyped(json, true); + } + if (instanceOfOpenai1(json)) { + return Openai1FromJSONTyped(json, true); + } + if (instanceOfVertex1(json)) { + return Vertex1FromJSONTyped(json, true); + } + if (instanceOfVoyage1(json)) { + return Voyage1FromJSONTyped(json, true); + } + + return {} as any; } -export function UpdateAIPlatformConnectorRequestToJSON(json: any): UpdateAIPlatformConnectorRequest { +export function UpdateAIPlatformConnectorRequestToJSON(json: any): any { return UpdateAIPlatformConnectorRequestToJSONTyped(json, false); } @@ -57,10 +83,22 @@ export function UpdateAIPlatformConnectorRequestToJSONTyped(value?: UpdateAIPlat if (value == null) { return value; } + if (typeof value !== 'object') { + return value; + } + if (instanceOfBedrock1(value)) { + return Bedrock1ToJSON(value as Bedrock1); + } + if (instanceOfOpenai1(value)) { + return Openai1ToJSON(value as Openai1); + } + if (instanceOfVertex1(value)) { + return Vertex1ToJSON(value as Vertex1); + } + if (instanceOfVoyage1(value)) { + return Voyage1ToJSON(value as Voyage1); + } - return { - - 'config': value['config'], - }; + return {}; } diff --git a/src/ts/src/models/UpdateAIPlatformConnectorResponse.ts b/src/ts/src/models/UpdateAIPlatformConnectorResponse.ts index f6e355f..d625907 100644 --- a/src/ts/src/models/UpdateAIPlatformConnectorResponse.ts +++ b/src/ts/src/models/UpdateAIPlatformConnectorResponse.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * diff --git a/src/ts/src/models/UpdateDestinationConnectorRequest.ts b/src/ts/src/models/UpdateDestinationConnectorRequest.ts index fb727ec..0d0ba62 100644 --- a/src/ts/src/models/UpdateDestinationConnectorRequest.ts +++ b/src/ts/src/models/UpdateDestinationConnectorRequest.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * @@ -12,28 +12,97 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; +import type { Azureaisearch1 } from './Azureaisearch1'; +import { + instanceOfAzureaisearch1, + Azureaisearch1FromJSON, + Azureaisearch1FromJSONTyped, + Azureaisearch1ToJSON, +} from './Azureaisearch1'; +import type { Capella1 } from './Capella1'; +import { + instanceOfCapella1, + Capella1FromJSON, + Capella1FromJSONTyped, + Capella1ToJSON, +} from './Capella1'; +import type { Datastax1 } from './Datastax1'; +import { + instanceOfDatastax1, + Datastax1FromJSON, + Datastax1FromJSONTyped, + Datastax1ToJSON, +} from './Datastax1'; +import type { Elastic1 } from './Elastic1'; +import { + instanceOfElastic1, + Elastic1FromJSON, + Elastic1FromJSONTyped, + Elastic1ToJSON, +} from './Elastic1'; +import type { Milvus1 } from './Milvus1'; +import { + instanceOfMilvus1, + Milvus1FromJSON, + Milvus1FromJSONTyped, + Milvus1ToJSON, +} from './Milvus1'; +import type { Pinecone1 } from './Pinecone1'; +import { + instanceOfPinecone1, + Pinecone1FromJSON, + Pinecone1FromJSONTyped, + Pinecone1ToJSON, +} from './Pinecone1'; +import type { Postgresql1 } from './Postgresql1'; +import { + instanceOfPostgresql1, + Postgresql1FromJSON, + Postgresql1FromJSONTyped, + Postgresql1ToJSON, +} from './Postgresql1'; +import type { Qdrant1 } from './Qdrant1'; +import { + instanceOfQdrant1, + Qdrant1FromJSON, + Qdrant1FromJSONTyped, + Qdrant1ToJSON, +} from './Qdrant1'; +import type { Singlestore1 } from './Singlestore1'; +import { + instanceOfSinglestore1, + Singlestore1FromJSON, + Singlestore1FromJSONTyped, + Singlestore1ToJSON, +} from './Singlestore1'; +import type { Supabase1 } from './Supabase1'; +import { + instanceOfSupabase1, + Supabase1FromJSON, + Supabase1FromJSONTyped, + Supabase1ToJSON, +} from './Supabase1'; +import type { Turbopuffer1 } from './Turbopuffer1'; +import { + instanceOfTurbopuffer1, + Turbopuffer1FromJSON, + Turbopuffer1FromJSONTyped, + Turbopuffer1ToJSON, +} from './Turbopuffer1'; +import type { Weaviate1 } from './Weaviate1'; +import { + instanceOfWeaviate1, + Weaviate1FromJSON, + Weaviate1FromJSONTyped, + Weaviate1ToJSON, +} from './Weaviate1'; + /** + * @type UpdateDestinationConnectorRequest * * @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 type UpdateDestinationConnectorRequest = Azureaisearch1 | Capella1 | Datastax1 | Elastic1 | Milvus1 | Pinecone1 | Postgresql1 | Qdrant1 | Singlestore1 | Supabase1 | Turbopuffer1 | Weaviate1; export function UpdateDestinationConnectorRequestFromJSON(json: any): UpdateDestinationConnectorRequest { return UpdateDestinationConnectorRequestFromJSONTyped(json, false); @@ -43,13 +112,50 @@ export function UpdateDestinationConnectorRequestFromJSONTyped(json: any, ignore if (json == null) { return json; } - return { - - 'config': json['config'], - }; + if (typeof json !== 'object') { + return json; + } + if (instanceOfAzureaisearch1(json)) { + return Azureaisearch1FromJSONTyped(json, true); + } + if (instanceOfCapella1(json)) { + return Capella1FromJSONTyped(json, true); + } + if (instanceOfDatastax1(json)) { + return Datastax1FromJSONTyped(json, true); + } + if (instanceOfElastic1(json)) { + return Elastic1FromJSONTyped(json, true); + } + if (instanceOfMilvus1(json)) { + return Milvus1FromJSONTyped(json, true); + } + if (instanceOfPinecone1(json)) { + return Pinecone1FromJSONTyped(json, true); + } + if (instanceOfPostgresql1(json)) { + return Postgresql1FromJSONTyped(json, true); + } + if (instanceOfQdrant1(json)) { + return Qdrant1FromJSONTyped(json, true); + } + if (instanceOfSinglestore1(json)) { + return Singlestore1FromJSONTyped(json, true); + } + if (instanceOfSupabase1(json)) { + return Supabase1FromJSONTyped(json, true); + } + if (instanceOfTurbopuffer1(json)) { + return Turbopuffer1FromJSONTyped(json, true); + } + if (instanceOfWeaviate1(json)) { + return Weaviate1FromJSONTyped(json, true); + } + + return {} as any; } -export function UpdateDestinationConnectorRequestToJSON(json: any): UpdateDestinationConnectorRequest { +export function UpdateDestinationConnectorRequestToJSON(json: any): any { return UpdateDestinationConnectorRequestToJSONTyped(json, false); } @@ -57,10 +163,46 @@ export function UpdateDestinationConnectorRequestToJSONTyped(value?: UpdateDesti if (value == null) { return value; } + if (typeof value !== 'object') { + return value; + } + if (instanceOfAzureaisearch1(value)) { + return Azureaisearch1ToJSON(value as Azureaisearch1); + } + if (instanceOfCapella1(value)) { + return Capella1ToJSON(value as Capella1); + } + if (instanceOfDatastax1(value)) { + return Datastax1ToJSON(value as Datastax1); + } + if (instanceOfElastic1(value)) { + return Elastic1ToJSON(value as Elastic1); + } + if (instanceOfMilvus1(value)) { + return Milvus1ToJSON(value as Milvus1); + } + if (instanceOfPinecone1(value)) { + return Pinecone1ToJSON(value as Pinecone1); + } + if (instanceOfPostgresql1(value)) { + return Postgresql1ToJSON(value as Postgresql1); + } + if (instanceOfQdrant1(value)) { + return Qdrant1ToJSON(value as Qdrant1); + } + if (instanceOfSinglestore1(value)) { + return Singlestore1ToJSON(value as Singlestore1); + } + if (instanceOfSupabase1(value)) { + return Supabase1ToJSON(value as Supabase1); + } + if (instanceOfTurbopuffer1(value)) { + return Turbopuffer1ToJSON(value as Turbopuffer1); + } + if (instanceOfWeaviate1(value)) { + return Weaviate1ToJSON(value as Weaviate1); + } - return { - - 'config': value['config'], - }; + return {}; } diff --git a/src/ts/src/models/UpdateDestinationConnectorResponse.ts b/src/ts/src/models/UpdateDestinationConnectorResponse.ts index c609802..5d1bd26 100644 --- a/src/ts/src/models/UpdateDestinationConnectorResponse.ts +++ b/src/ts/src/models/UpdateDestinationConnectorResponse.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * diff --git a/src/ts/src/models/UpdateSourceConnectorRequest.ts b/src/ts/src/models/UpdateSourceConnectorRequest.ts index 4c886be..089e48c 100644 --- a/src/ts/src/models/UpdateSourceConnectorRequest.ts +++ b/src/ts/src/models/UpdateSourceConnectorRequest.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * @@ -12,28 +12,181 @@ * Do not edit the class manually. */ -import { mapValues } from '../runtime'; +import type { AwsS31 } from './AwsS31'; +import { + instanceOfAwsS31, + AwsS31FromJSON, + AwsS31FromJSONTyped, + AwsS31ToJSON, +} from './AwsS31'; +import type { AzureBlob1 } from './AzureBlob1'; +import { + instanceOfAzureBlob1, + AzureBlob1FromJSON, + AzureBlob1FromJSONTyped, + AzureBlob1ToJSON, +} from './AzureBlob1'; +import type { Confluence1 } from './Confluence1'; +import { + instanceOfConfluence1, + Confluence1FromJSON, + Confluence1FromJSONTyped, + Confluence1ToJSON, +} from './Confluence1'; +import type { Discord1 } from './Discord1'; +import { + instanceOfDiscord1, + Discord1FromJSON, + Discord1FromJSONTyped, + Discord1ToJSON, +} from './Discord1'; +import type { Dropbox } from './Dropbox'; +import { + instanceOfDropbox, + DropboxFromJSON, + DropboxFromJSONTyped, + DropboxToJSON, +} from './Dropbox'; +import type { DropboxOauth } from './DropboxOauth'; +import { + instanceOfDropboxOauth, + DropboxOauthFromJSON, + DropboxOauthFromJSONTyped, + DropboxOauthToJSON, +} from './DropboxOauth'; +import type { DropboxOauthMulti } from './DropboxOauthMulti'; +import { + instanceOfDropboxOauthMulti, + DropboxOauthMultiFromJSON, + DropboxOauthMultiFromJSONTyped, + DropboxOauthMultiToJSON, +} from './DropboxOauthMulti'; +import type { DropboxOauthMultiCustom } from './DropboxOauthMultiCustom'; +import { + instanceOfDropboxOauthMultiCustom, + DropboxOauthMultiCustomFromJSON, + DropboxOauthMultiCustomFromJSONTyped, + DropboxOauthMultiCustomToJSON, +} from './DropboxOauthMultiCustom'; +import type { FileUpload1 } from './FileUpload1'; +import { + instanceOfFileUpload1, + FileUpload1FromJSON, + FileUpload1FromJSONTyped, + FileUpload1ToJSON, +} from './FileUpload1'; +import type { Firecrawl1 } from './Firecrawl1'; +import { + instanceOfFirecrawl1, + Firecrawl1FromJSON, + Firecrawl1FromJSONTyped, + Firecrawl1ToJSON, +} from './Firecrawl1'; +import type { Fireflies1 } from './Fireflies1'; +import { + instanceOfFireflies1, + Fireflies1FromJSON, + Fireflies1FromJSONTyped, + Fireflies1ToJSON, +} from './Fireflies1'; +import type { Gcs1 } from './Gcs1'; +import { + instanceOfGcs1, + Gcs1FromJSON, + Gcs1FromJSONTyped, + Gcs1ToJSON, +} from './Gcs1'; +import type { Github1 } from './Github1'; +import { + instanceOfGithub1, + Github1FromJSON, + Github1FromJSONTyped, + Github1ToJSON, +} from './Github1'; +import type { GoogleDrive1 } from './GoogleDrive1'; +import { + instanceOfGoogleDrive1, + GoogleDrive1FromJSON, + GoogleDrive1FromJSONTyped, + GoogleDrive1ToJSON, +} from './GoogleDrive1'; +import type { GoogleDriveOauth } from './GoogleDriveOauth'; +import { + instanceOfGoogleDriveOauth, + GoogleDriveOauthFromJSON, + GoogleDriveOauthFromJSONTyped, + GoogleDriveOauthToJSON, +} from './GoogleDriveOauth'; +import type { GoogleDriveOauthMulti } from './GoogleDriveOauthMulti'; +import { + instanceOfGoogleDriveOauthMulti, + GoogleDriveOauthMultiFromJSON, + GoogleDriveOauthMultiFromJSONTyped, + GoogleDriveOauthMultiToJSON, +} from './GoogleDriveOauthMulti'; +import type { GoogleDriveOauthMultiCustom } from './GoogleDriveOauthMultiCustom'; +import { + instanceOfGoogleDriveOauthMultiCustom, + GoogleDriveOauthMultiCustomFromJSON, + GoogleDriveOauthMultiCustomFromJSONTyped, + GoogleDriveOauthMultiCustomToJSON, +} from './GoogleDriveOauthMultiCustom'; +import type { Intercom } from './Intercom'; +import { + instanceOfIntercom, + IntercomFromJSON, + IntercomFromJSONTyped, + IntercomToJSON, +} from './Intercom'; +import type { Notion } from './Notion'; +import { + instanceOfNotion, + NotionFromJSON, + NotionFromJSONTyped, + NotionToJSON, +} from './Notion'; +import type { NotionOauthMulti } from './NotionOauthMulti'; +import { + instanceOfNotionOauthMulti, + NotionOauthMultiFromJSON, + NotionOauthMultiFromJSONTyped, + NotionOauthMultiToJSON, +} from './NotionOauthMulti'; +import type { NotionOauthMultiCustom } from './NotionOauthMultiCustom'; +import { + instanceOfNotionOauthMultiCustom, + NotionOauthMultiCustomFromJSON, + NotionOauthMultiCustomFromJSONTyped, + NotionOauthMultiCustomToJSON, +} from './NotionOauthMultiCustom'; +import type { OneDrive1 } from './OneDrive1'; +import { + instanceOfOneDrive1, + OneDrive1FromJSON, + OneDrive1FromJSONTyped, + OneDrive1ToJSON, +} from './OneDrive1'; +import type { Sharepoint1 } from './Sharepoint1'; +import { + instanceOfSharepoint1, + Sharepoint1FromJSON, + Sharepoint1FromJSONTyped, + Sharepoint1ToJSON, +} from './Sharepoint1'; +import type { WebCrawler1 } from './WebCrawler1'; +import { + instanceOfWebCrawler1, + WebCrawler1FromJSON, + WebCrawler1FromJSONTyped, + WebCrawler1ToJSON, +} from './WebCrawler1'; + /** + * @type UpdateSourceConnectorRequest * * @export - * @interface UpdateSourceConnectorRequest - */ -export interface UpdateSourceConnectorRequest { - /** - * - * @type {{ [key: string]: any | null; }} - * @memberof UpdateSourceConnectorRequest - */ - config: { [key: string]: any | null; }; -} - -/** - * Check if a given object implements the UpdateSourceConnectorRequest interface. */ -export function instanceOfUpdateSourceConnectorRequest(value: object): value is UpdateSourceConnectorRequest { - if (!('config' in value) || value['config'] === undefined) return false; - return true; -} +export type UpdateSourceConnectorRequest = AwsS31 | AzureBlob1 | Confluence1 | Discord1 | Dropbox | DropboxOauth | DropboxOauthMulti | DropboxOauthMultiCustom | FileUpload1 | Firecrawl1 | Fireflies1 | Gcs1 | Github1 | GoogleDrive1 | GoogleDriveOauth | GoogleDriveOauthMulti | GoogleDriveOauthMultiCustom | Intercom | Notion | NotionOauthMulti | NotionOauthMultiCustom | OneDrive1 | Sharepoint1 | WebCrawler1; export function UpdateSourceConnectorRequestFromJSON(json: any): UpdateSourceConnectorRequest { return UpdateSourceConnectorRequestFromJSONTyped(json, false); @@ -43,13 +196,86 @@ export function UpdateSourceConnectorRequestFromJSONTyped(json: any, ignoreDiscr if (json == null) { return json; } - return { - - 'config': json['config'], - }; + if (typeof json !== 'object') { + return json; + } + if (instanceOfAwsS31(json)) { + return AwsS31FromJSONTyped(json, true); + } + if (instanceOfAzureBlob1(json)) { + return AzureBlob1FromJSONTyped(json, true); + } + if (instanceOfConfluence1(json)) { + return Confluence1FromJSONTyped(json, true); + } + if (instanceOfDiscord1(json)) { + return Discord1FromJSONTyped(json, true); + } + if (instanceOfDropbox(json)) { + return DropboxFromJSONTyped(json, true); + } + if (instanceOfDropboxOauth(json)) { + return DropboxOauthFromJSONTyped(json, true); + } + if (instanceOfDropboxOauthMulti(json)) { + return DropboxOauthMultiFromJSONTyped(json, true); + } + if (instanceOfDropboxOauthMultiCustom(json)) { + return DropboxOauthMultiCustomFromJSONTyped(json, true); + } + if (instanceOfFileUpload1(json)) { + return FileUpload1FromJSONTyped(json, true); + } + if (instanceOfFirecrawl1(json)) { + return Firecrawl1FromJSONTyped(json, true); + } + if (instanceOfFireflies1(json)) { + return Fireflies1FromJSONTyped(json, true); + } + if (instanceOfGcs1(json)) { + return Gcs1FromJSONTyped(json, true); + } + if (instanceOfGithub1(json)) { + return Github1FromJSONTyped(json, true); + } + if (instanceOfGoogleDrive1(json)) { + return GoogleDrive1FromJSONTyped(json, true); + } + if (instanceOfGoogleDriveOauth(json)) { + return GoogleDriveOauthFromJSONTyped(json, true); + } + if (instanceOfGoogleDriveOauthMulti(json)) { + return GoogleDriveOauthMultiFromJSONTyped(json, true); + } + if (instanceOfGoogleDriveOauthMultiCustom(json)) { + return GoogleDriveOauthMultiCustomFromJSONTyped(json, true); + } + if (instanceOfIntercom(json)) { + return IntercomFromJSONTyped(json, true); + } + if (instanceOfNotion(json)) { + return NotionFromJSONTyped(json, true); + } + if (instanceOfNotionOauthMulti(json)) { + return NotionOauthMultiFromJSONTyped(json, true); + } + if (instanceOfNotionOauthMultiCustom(json)) { + return NotionOauthMultiCustomFromJSONTyped(json, true); + } + if (instanceOfOneDrive1(json)) { + return OneDrive1FromJSONTyped(json, true); + } + if (instanceOfSharepoint1(json)) { + return Sharepoint1FromJSONTyped(json, true); + } + if (instanceOfWebCrawler1(json)) { + return WebCrawler1FromJSONTyped(json, true); + } + + return {} as any; } -export function UpdateSourceConnectorRequestToJSON(json: any): UpdateSourceConnectorRequest { +export function UpdateSourceConnectorRequestToJSON(json: any): any { return UpdateSourceConnectorRequestToJSONTyped(json, false); } @@ -57,10 +283,82 @@ export function UpdateSourceConnectorRequestToJSONTyped(value?: UpdateSourceConn if (value == null) { return value; } + if (typeof value !== 'object') { + return value; + } + if (instanceOfAwsS31(value)) { + return AwsS31ToJSON(value as AwsS31); + } + if (instanceOfAzureBlob1(value)) { + return AzureBlob1ToJSON(value as AzureBlob1); + } + if (instanceOfConfluence1(value)) { + return Confluence1ToJSON(value as Confluence1); + } + if (instanceOfDiscord1(value)) { + return Discord1ToJSON(value as Discord1); + } + if (instanceOfDropbox(value)) { + return DropboxToJSON(value as Dropbox); + } + if (instanceOfDropboxOauth(value)) { + return DropboxOauthToJSON(value as DropboxOauth); + } + if (instanceOfDropboxOauthMulti(value)) { + return DropboxOauthMultiToJSON(value as DropboxOauthMulti); + } + if (instanceOfDropboxOauthMultiCustom(value)) { + return DropboxOauthMultiCustomToJSON(value as DropboxOauthMultiCustom); + } + if (instanceOfFileUpload1(value)) { + return FileUpload1ToJSON(value as FileUpload1); + } + if (instanceOfFirecrawl1(value)) { + return Firecrawl1ToJSON(value as Firecrawl1); + } + if (instanceOfFireflies1(value)) { + return Fireflies1ToJSON(value as Fireflies1); + } + if (instanceOfGcs1(value)) { + return Gcs1ToJSON(value as Gcs1); + } + if (instanceOfGithub1(value)) { + return Github1ToJSON(value as Github1); + } + if (instanceOfGoogleDrive1(value)) { + return GoogleDrive1ToJSON(value as GoogleDrive1); + } + if (instanceOfGoogleDriveOauth(value)) { + return GoogleDriveOauthToJSON(value as GoogleDriveOauth); + } + if (instanceOfGoogleDriveOauthMulti(value)) { + return GoogleDriveOauthMultiToJSON(value as GoogleDriveOauthMulti); + } + if (instanceOfGoogleDriveOauthMultiCustom(value)) { + return GoogleDriveOauthMultiCustomToJSON(value as GoogleDriveOauthMultiCustom); + } + if (instanceOfIntercom(value)) { + return IntercomToJSON(value as Intercom); + } + if (instanceOfNotion(value)) { + return NotionToJSON(value as Notion); + } + if (instanceOfNotionOauthMulti(value)) { + return NotionOauthMultiToJSON(value as NotionOauthMulti); + } + if (instanceOfNotionOauthMultiCustom(value)) { + return NotionOauthMultiCustomToJSON(value as NotionOauthMultiCustom); + } + if (instanceOfOneDrive1(value)) { + return OneDrive1ToJSON(value as OneDrive1); + } + if (instanceOfSharepoint1(value)) { + return Sharepoint1ToJSON(value as Sharepoint1); + } + if (instanceOfWebCrawler1(value)) { + return WebCrawler1ToJSON(value as WebCrawler1); + } - return { - - 'config': value['config'], - }; + return {}; } diff --git a/src/ts/src/models/UpdateSourceConnectorResponse.ts b/src/ts/src/models/UpdateSourceConnectorResponse.ts index 5c1b49e..d325d62 100644 --- a/src/ts/src/models/UpdateSourceConnectorResponse.ts +++ b/src/ts/src/models/UpdateSourceConnectorResponse.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * diff --git a/src/ts/src/models/UpdateSourceConnectorResponseData.ts b/src/ts/src/models/UpdateSourceConnectorResponseData.ts index 8b481a7..60c37ab 100644 --- a/src/ts/src/models/UpdateSourceConnectorResponseData.ts +++ b/src/ts/src/models/UpdateSourceConnectorResponseData.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * diff --git a/src/ts/src/models/UpdateUserInSourceConnectorRequest.ts b/src/ts/src/models/UpdateUserInSourceConnectorRequest.ts index 3ec061c..fa21f47 100644 --- a/src/ts/src/models/UpdateUserInSourceConnectorRequest.ts +++ b/src/ts/src/models/UpdateUserInSourceConnectorRequest.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * @@ -13,13 +13,13 @@ */ import { mapValues } from '../runtime'; -import type { AddUserToSourceConnectorRequestSelectedFilesValue } from './AddUserToSourceConnectorRequestSelectedFilesValue'; +import type { AddUserToSourceConnectorRequestSelectedFiles } from './AddUserToSourceConnectorRequestSelectedFiles'; import { - AddUserToSourceConnectorRequestSelectedFilesValueFromJSON, - AddUserToSourceConnectorRequestSelectedFilesValueFromJSONTyped, - AddUserToSourceConnectorRequestSelectedFilesValueToJSON, - AddUserToSourceConnectorRequestSelectedFilesValueToJSONTyped, -} from './AddUserToSourceConnectorRequestSelectedFilesValue'; + AddUserToSourceConnectorRequestSelectedFilesFromJSON, + AddUserToSourceConnectorRequestSelectedFilesFromJSONTyped, + AddUserToSourceConnectorRequestSelectedFilesToJSON, + AddUserToSourceConnectorRequestSelectedFilesToJSONTyped, +} from './AddUserToSourceConnectorRequestSelectedFiles'; /** * @@ -35,16 +35,22 @@ export interface UpdateUserInSourceConnectorRequest { userId: string; /** * - * @type {{ [key: string]: AddUserToSourceConnectorRequestSelectedFilesValue; }} + * @type {AddUserToSourceConnectorRequestSelectedFiles} * @memberof UpdateUserInSourceConnectorRequest */ - selectedFiles?: { [key: string]: AddUserToSourceConnectorRequestSelectedFilesValue; }; + selectedFiles?: AddUserToSourceConnectorRequestSelectedFiles; /** * * @type {string} * @memberof UpdateUserInSourceConnectorRequest */ refreshToken?: string; + /** + * + * @type {string} + * @memberof UpdateUserInSourceConnectorRequest + */ + accessToken?: string; } /** @@ -66,8 +72,9 @@ export function UpdateUserInSourceConnectorRequestFromJSONTyped(json: any, ignor return { 'userId': json['userId'], - 'selectedFiles': json['selectedFiles'] == null ? undefined : (mapValues(json['selectedFiles'], AddUserToSourceConnectorRequestSelectedFilesValueFromJSON)), + 'selectedFiles': json['selectedFiles'] == null ? undefined : AddUserToSourceConnectorRequestSelectedFilesFromJSON(json['selectedFiles']), 'refreshToken': json['refreshToken'] == null ? undefined : json['refreshToken'], + 'accessToken': json['accessToken'] == null ? undefined : json['accessToken'], }; } @@ -83,8 +90,9 @@ export function UpdateUserInSourceConnectorRequestToJSONTyped(value?: UpdateUser return { 'userId': value['userId'], - 'selectedFiles': value['selectedFiles'] == null ? undefined : (mapValues(value['selectedFiles'], AddUserToSourceConnectorRequestSelectedFilesValueToJSON)), + 'selectedFiles': AddUserToSourceConnectorRequestSelectedFilesToJSON(value['selectedFiles']), 'refreshToken': value['refreshToken'], + 'accessToken': value['accessToken'], }; } diff --git a/src/ts/src/models/UpdateUserInSourceConnectorResponse.ts b/src/ts/src/models/UpdateUserInSourceConnectorResponse.ts index d2bbf05..8ab4d8d 100644 --- a/src/ts/src/models/UpdateUserInSourceConnectorResponse.ts +++ b/src/ts/src/models/UpdateUserInSourceConnectorResponse.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * diff --git a/src/ts/src/models/UpdatedAIPlatformConnectorData.ts b/src/ts/src/models/UpdatedAIPlatformConnectorData.ts index 44877be..ca6919f 100644 --- a/src/ts/src/models/UpdatedAIPlatformConnectorData.ts +++ b/src/ts/src/models/UpdatedAIPlatformConnectorData.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * diff --git a/src/ts/src/models/UpdatedDestinationConnectorData.ts b/src/ts/src/models/UpdatedDestinationConnectorData.ts index 21ddc5c..780bf4d 100644 --- a/src/ts/src/models/UpdatedDestinationConnectorData.ts +++ b/src/ts/src/models/UpdatedDestinationConnectorData.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * diff --git a/src/ts/src/models/UploadFile.ts b/src/ts/src/models/UploadFile.ts index f7c9a88..5590d42 100644 --- a/src/ts/src/models/UploadFile.ts +++ b/src/ts/src/models/UploadFile.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * @@ -51,10 +51,10 @@ export interface UploadFile { lastModified: string | null; /** * - * @type {{ [key: string]: string; }} + * @type {{ [key: string]: any | null; }} * @memberof UploadFile */ - metadata: { [key: string]: string; }; + metadata: { [key: string]: any | null; }; } /** diff --git a/src/ts/src/models/VERTEXAuthConfig.ts b/src/ts/src/models/VERTEXAuthConfig.ts new file mode 100644 index 0000000..9a0a46a --- /dev/null +++ b/src/ts/src/models/VERTEXAuthConfig.ts @@ -0,0 +1,84 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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'; +/** + * Authentication configuration for Google Vertex AI + * @export + * @interface VERTEXAuthConfig + */ +export interface VERTEXAuthConfig { + /** + * Name. Example: Enter a descriptive name for your Google Vertex AI integration + * @type {string} + * @memberof VERTEXAuthConfig + */ + name: string; + /** + * Service Account Json. Example: Enter the contents of your Google Vertex AI Service Account JSON file + * @type {string} + * @memberof VERTEXAuthConfig + */ + key: string; + /** + * Region. Example: Region Name, e.g. us-central1 + * @type {string} + * @memberof VERTEXAuthConfig + */ + region: string; +} + +/** + * Check if a given object implements the VERTEXAuthConfig interface. + */ +export function instanceOfVERTEXAuthConfig(value: object): value is VERTEXAuthConfig { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('key' in value) || value['key'] === undefined) return false; + if (!('region' in value) || value['region'] === undefined) return false; + return true; +} + +export function VERTEXAuthConfigFromJSON(json: any): VERTEXAuthConfig { + return VERTEXAuthConfigFromJSONTyped(json, false); +} + +export function VERTEXAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): VERTEXAuthConfig { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'key': json['key'], + 'region': json['region'], + }; +} + +export function VERTEXAuthConfigToJSON(json: any): VERTEXAuthConfig { + return VERTEXAuthConfigToJSONTyped(json, false); +} + +export function VERTEXAuthConfigToJSONTyped(value?: VERTEXAuthConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'key': value['key'], + 'region': value['region'], + }; +} + diff --git a/src/ts/src/models/VOYAGEAuthConfig.ts b/src/ts/src/models/VOYAGEAuthConfig.ts new file mode 100644 index 0000000..c684a2d --- /dev/null +++ b/src/ts/src/models/VOYAGEAuthConfig.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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'; +/** + * Authentication configuration for Voyage AI + * @export + * @interface VOYAGEAuthConfig + */ +export interface VOYAGEAuthConfig { + /** + * Name. Example: Enter a descriptive name for your Voyage AI integration + * @type {string} + * @memberof VOYAGEAuthConfig + */ + name: string; + /** + * API Key. Example: Enter your Voyage AI API Key + * @type {string} + * @memberof VOYAGEAuthConfig + */ + key: string; +} + +/** + * Check if a given object implements the VOYAGEAuthConfig interface. + */ +export function instanceOfVOYAGEAuthConfig(value: object): value is VOYAGEAuthConfig { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('key' in value) || value['key'] === undefined) return false; + return true; +} + +export function VOYAGEAuthConfigFromJSON(json: any): VOYAGEAuthConfig { + return VOYAGEAuthConfigFromJSONTyped(json, false); +} + +export function VOYAGEAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): VOYAGEAuthConfig { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'key': json['key'], + }; +} + +export function VOYAGEAuthConfigToJSON(json: any): VOYAGEAuthConfig { + return VOYAGEAuthConfigToJSONTyped(json, false); +} + +export function VOYAGEAuthConfigToJSONTyped(value?: VOYAGEAuthConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'key': value['key'], + }; +} + diff --git a/src/ts/src/models/Vertex.ts b/src/ts/src/models/Vertex.ts new file mode 100644 index 0000000..39103dd --- /dev/null +++ b/src/ts/src/models/Vertex.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 { VERTEXAuthConfig } from './VERTEXAuthConfig'; +import { + VERTEXAuthConfigFromJSON, + VERTEXAuthConfigFromJSONTyped, + VERTEXAuthConfigToJSON, + VERTEXAuthConfigToJSONTyped, +} from './VERTEXAuthConfig'; + +/** + * + * @export + * @interface Vertex + */ +export interface Vertex { + /** + * Name of the connector + * @type {string} + * @memberof Vertex + */ + name: string; + /** + * Connector type (must be "VERTEX") + * @type {string} + * @memberof Vertex + */ + type: VertexTypeEnum; + /** + * + * @type {VERTEXAuthConfig} + * @memberof Vertex + */ + config: VERTEXAuthConfig; +} + + +/** + * @export + */ +export const VertexTypeEnum = { + Vertex: 'VERTEX' +} as const; +export type VertexTypeEnum = typeof VertexTypeEnum[keyof typeof VertexTypeEnum]; + + +/** + * Check if a given object implements the Vertex interface. + */ +export function instanceOfVertex(value: object): value is Vertex { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('type' in value) || value['type'] === undefined) return false; + if (!('config' in value) || value['config'] === undefined) return false; + return true; +} + +export function VertexFromJSON(json: any): Vertex { + return VertexFromJSONTyped(json, false); +} + +export function VertexFromJSONTyped(json: any, ignoreDiscriminator: boolean): Vertex { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'type': json['type'], + 'config': VERTEXAuthConfigFromJSON(json['config']), + }; +} + +export function VertexToJSON(json: any): Vertex { + return VertexToJSONTyped(json, false); +} + +export function VertexToJSONTyped(value?: Vertex | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'type': value['type'], + 'config': VERTEXAuthConfigToJSON(value['config']), + }; +} + diff --git a/src/ts/src/models/Vertex1.ts b/src/ts/src/models/Vertex1.ts new file mode 100644 index 0000000..8652b83 --- /dev/null +++ b/src/ts/src/models/Vertex1.ts @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 Vertex1 + */ +export interface Vertex1 { + /** + * Configuration updates + * @type {object} + * @memberof Vertex1 + */ + config?: object; +} + +/** + * Check if a given object implements the Vertex1 interface. + */ +export function instanceOfVertex1(value: object): value is Vertex1 { + return true; +} + +export function Vertex1FromJSON(json: any): Vertex1 { + return Vertex1FromJSONTyped(json, false); +} + +export function Vertex1FromJSONTyped(json: any, ignoreDiscriminator: boolean): Vertex1 { + if (json == null) { + return json; + } + return { + + 'config': json['config'] == null ? undefined : json['config'], + }; +} + +export function Vertex1ToJSON(json: any): Vertex1 { + return Vertex1ToJSONTyped(json, false); +} + +export function Vertex1ToJSONTyped(value?: Vertex1 | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'config': value['config'], + }; +} + diff --git a/src/ts/src/models/Voyage.ts b/src/ts/src/models/Voyage.ts new file mode 100644 index 0000000..08aa35a --- /dev/null +++ b/src/ts/src/models/Voyage.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 { VOYAGEAuthConfig } from './VOYAGEAuthConfig'; +import { + VOYAGEAuthConfigFromJSON, + VOYAGEAuthConfigFromJSONTyped, + VOYAGEAuthConfigToJSON, + VOYAGEAuthConfigToJSONTyped, +} from './VOYAGEAuthConfig'; + +/** + * + * @export + * @interface Voyage + */ +export interface Voyage { + /** + * Name of the connector + * @type {string} + * @memberof Voyage + */ + name: string; + /** + * Connector type (must be "VOYAGE") + * @type {string} + * @memberof Voyage + */ + type: VoyageTypeEnum; + /** + * + * @type {VOYAGEAuthConfig} + * @memberof Voyage + */ + config: VOYAGEAuthConfig; +} + + +/** + * @export + */ +export const VoyageTypeEnum = { + Voyage: 'VOYAGE' +} as const; +export type VoyageTypeEnum = typeof VoyageTypeEnum[keyof typeof VoyageTypeEnum]; + + +/** + * Check if a given object implements the Voyage interface. + */ +export function instanceOfVoyage(value: object): value is Voyage { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('type' in value) || value['type'] === undefined) return false; + if (!('config' in value) || value['config'] === undefined) return false; + return true; +} + +export function VoyageFromJSON(json: any): Voyage { + return VoyageFromJSONTyped(json, false); +} + +export function VoyageFromJSONTyped(json: any, ignoreDiscriminator: boolean): Voyage { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'type': json['type'], + 'config': VOYAGEAuthConfigFromJSON(json['config']), + }; +} + +export function VoyageToJSON(json: any): Voyage { + return VoyageToJSONTyped(json, false); +} + +export function VoyageToJSONTyped(value?: Voyage | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'type': value['type'], + 'config': VOYAGEAuthConfigToJSON(value['config']), + }; +} + diff --git a/src/ts/src/models/Voyage1.ts b/src/ts/src/models/Voyage1.ts new file mode 100644 index 0000000..3077e45 --- /dev/null +++ b/src/ts/src/models/Voyage1.ts @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 Voyage1 + */ +export interface Voyage1 { + /** + * Configuration updates + * @type {object} + * @memberof Voyage1 + */ + config?: object; +} + +/** + * Check if a given object implements the Voyage1 interface. + */ +export function instanceOfVoyage1(value: object): value is Voyage1 { + return true; +} + +export function Voyage1FromJSON(json: any): Voyage1 { + return Voyage1FromJSONTyped(json, false); +} + +export function Voyage1FromJSONTyped(json: any, ignoreDiscriminator: boolean): Voyage1 { + if (json == null) { + return json; + } + return { + + 'config': json['config'] == null ? undefined : json['config'], + }; +} + +export function Voyage1ToJSON(json: any): Voyage1 { + return Voyage1ToJSONTyped(json, false); +} + +export function Voyage1ToJSONTyped(value?: Voyage1 | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'config': value['config'], + }; +} + diff --git a/src/ts/src/models/WEAVIATEAuthConfig.ts b/src/ts/src/models/WEAVIATEAuthConfig.ts new file mode 100644 index 0000000..8e7c497 --- /dev/null +++ b/src/ts/src/models/WEAVIATEAuthConfig.ts @@ -0,0 +1,84 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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'; +/** + * Authentication configuration for Weaviate + * @export + * @interface WEAVIATEAuthConfig + */ +export interface WEAVIATEAuthConfig { + /** + * Name. Example: Enter a descriptive name for your Weaviate integration + * @type {string} + * @memberof WEAVIATEAuthConfig + */ + name: string; + /** + * Endpoint. Example: Enter your Weaviate Cluster REST Endpoint + * @type {string} + * @memberof WEAVIATEAuthConfig + */ + host: string; + /** + * API Key. Example: Enter your API key + * @type {string} + * @memberof WEAVIATEAuthConfig + */ + apiKey: string; +} + +/** + * Check if a given object implements the WEAVIATEAuthConfig interface. + */ +export function instanceOfWEAVIATEAuthConfig(value: object): value is WEAVIATEAuthConfig { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('host' in value) || value['host'] === undefined) return false; + if (!('apiKey' in value) || value['apiKey'] === undefined) return false; + return true; +} + +export function WEAVIATEAuthConfigFromJSON(json: any): WEAVIATEAuthConfig { + return WEAVIATEAuthConfigFromJSONTyped(json, false); +} + +export function WEAVIATEAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): WEAVIATEAuthConfig { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'host': json['host'], + 'apiKey': json['api-key'], + }; +} + +export function WEAVIATEAuthConfigToJSON(json: any): WEAVIATEAuthConfig { + return WEAVIATEAuthConfigToJSONTyped(json, false); +} + +export function WEAVIATEAuthConfigToJSONTyped(value?: WEAVIATEAuthConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'host': value['host'], + 'api-key': value['apiKey'], + }; +} + diff --git a/src/ts/src/models/WEAVIATEConfig.ts b/src/ts/src/models/WEAVIATEConfig.ts new file mode 100644 index 0000000..70cc944 --- /dev/null +++ b/src/ts/src/models/WEAVIATEConfig.ts @@ -0,0 +1,66 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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'; +/** + * Configuration for Weaviate connector + * @export + * @interface WEAVIATEConfig + */ +export interface WEAVIATEConfig { + /** + * Collection Name. Example: Enter collection name + * @type {string} + * @memberof WEAVIATEConfig + */ + collection: string; +} + +/** + * Check if a given object implements the WEAVIATEConfig interface. + */ +export function instanceOfWEAVIATEConfig(value: object): value is WEAVIATEConfig { + if (!('collection' in value) || value['collection'] === undefined) return false; + return true; +} + +export function WEAVIATEConfigFromJSON(json: any): WEAVIATEConfig { + return WEAVIATEConfigFromJSONTyped(json, false); +} + +export function WEAVIATEConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): WEAVIATEConfig { + if (json == null) { + return json; + } + return { + + 'collection': json['collection'], + }; +} + +export function WEAVIATEConfigToJSON(json: any): WEAVIATEConfig { + return WEAVIATEConfigToJSONTyped(json, false); +} + +export function WEAVIATEConfigToJSONTyped(value?: WEAVIATEConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'collection': value['collection'], + }; +} + diff --git a/src/ts/src/models/WEBCRAWLERAuthConfig.ts b/src/ts/src/models/WEBCRAWLERAuthConfig.ts new file mode 100644 index 0000000..061a754 --- /dev/null +++ b/src/ts/src/models/WEBCRAWLERAuthConfig.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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'; +/** + * Authentication configuration for Web Crawler + * @export + * @interface WEBCRAWLERAuthConfig + */ +export interface WEBCRAWLERAuthConfig { + /** + * Name. Example: Enter a descriptive name + * @type {string} + * @memberof WEBCRAWLERAuthConfig + */ + name: string; + /** + * Seed URL(s). Add one or more seed URLs to crawl. The crawler will start from these URLs and follow links to other pages.. Example: (e.g. https://example.com) + * @type {string} + * @memberof WEBCRAWLERAuthConfig + */ + seedUrls: string; +} + +/** + * Check if a given object implements the WEBCRAWLERAuthConfig interface. + */ +export function instanceOfWEBCRAWLERAuthConfig(value: object): value is WEBCRAWLERAuthConfig { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('seedUrls' in value) || value['seedUrls'] === undefined) return false; + return true; +} + +export function WEBCRAWLERAuthConfigFromJSON(json: any): WEBCRAWLERAuthConfig { + return WEBCRAWLERAuthConfigFromJSONTyped(json, false); +} + +export function WEBCRAWLERAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): WEBCRAWLERAuthConfig { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'seedUrls': json['seed-urls'], + }; +} + +export function WEBCRAWLERAuthConfigToJSON(json: any): WEBCRAWLERAuthConfig { + return WEBCRAWLERAuthConfigToJSONTyped(json, false); +} + +export function WEBCRAWLERAuthConfigToJSONTyped(value?: WEBCRAWLERAuthConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'seed-urls': value['seedUrls'], + }; +} + diff --git a/src/ts/src/models/WEBCRAWLERConfig.ts b/src/ts/src/models/WEBCRAWLERConfig.ts new file mode 100644 index 0000000..3a17028 --- /dev/null +++ b/src/ts/src/models/WEBCRAWLERConfig.ts @@ -0,0 +1,113 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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'; +/** + * Configuration for Web Crawler connector + * @export + * @interface WEBCRAWLERConfig + */ +export interface WEBCRAWLERConfig { + /** + * Additional Allowed URLs or prefix(es). Add one or more allowed URLs or URL prefixes. The crawler will read URLs that match these patterns in addition to the seed URL(s).. Example: (e.g. https://docs.example.com) + * @type {string} + * @memberof WEBCRAWLERConfig + */ + allowedDomainsOpt?: string; + /** + * Forbidden Paths. Example: Enter forbidden paths (e.g. /admin) + * @type {string} + * @memberof WEBCRAWLERConfig + */ + forbiddenPaths?: string; + /** + * Throttle (ms). Example: Enter minimum time between requests in milliseconds + * @type {number} + * @memberof WEBCRAWLERConfig + */ + minTimeBetweenRequests?: number; + /** + * Max Error Count. Example: Enter maximum error count + * @type {number} + * @memberof WEBCRAWLERConfig + */ + maxErrorCount?: number; + /** + * Max URLs. Example: Enter maximum number of URLs to crawl + * @type {number} + * @memberof WEBCRAWLERConfig + */ + maxUrls?: number; + /** + * Max Depth. Example: Enter maximum crawl depth + * @type {number} + * @memberof WEBCRAWLERConfig + */ + maxDepth?: number; + /** + * Reindex Interval (seconds). Example: Enter reindex interval in seconds + * @type {number} + * @memberof WEBCRAWLERConfig + */ + reindexIntervalSeconds?: number; +} + +/** + * Check if a given object implements the WEBCRAWLERConfig interface. + */ +export function instanceOfWEBCRAWLERConfig(value: object): value is WEBCRAWLERConfig { + return true; +} + +export function WEBCRAWLERConfigFromJSON(json: any): WEBCRAWLERConfig { + return WEBCRAWLERConfigFromJSONTyped(json, false); +} + +export function WEBCRAWLERConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): WEBCRAWLERConfig { + if (json == null) { + return json; + } + return { + + 'allowedDomainsOpt': json['allowed-domains-opt'] == null ? undefined : json['allowed-domains-opt'], + 'forbiddenPaths': json['forbidden-paths'] == null ? undefined : json['forbidden-paths'], + 'minTimeBetweenRequests': json['min-time-between-requests'] == null ? undefined : json['min-time-between-requests'], + 'maxErrorCount': json['max-error-count'] == null ? undefined : json['max-error-count'], + 'maxUrls': json['max-urls'] == null ? undefined : json['max-urls'], + 'maxDepth': json['max-depth'] == null ? undefined : json['max-depth'], + 'reindexIntervalSeconds': json['reindex-interval-seconds'] == null ? undefined : json['reindex-interval-seconds'], + }; +} + +export function WEBCRAWLERConfigToJSON(json: any): WEBCRAWLERConfig { + return WEBCRAWLERConfigToJSONTyped(json, false); +} + +export function WEBCRAWLERConfigToJSONTyped(value?: WEBCRAWLERConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'allowed-domains-opt': value['allowedDomainsOpt'], + 'forbidden-paths': value['forbiddenPaths'], + 'min-time-between-requests': value['minTimeBetweenRequests'], + 'max-error-count': value['maxErrorCount'], + 'max-urls': value['maxUrls'], + 'max-depth': value['maxDepth'], + 'reindex-interval-seconds': value['reindexIntervalSeconds'], + }; +} + diff --git a/src/ts/src/models/Weaviate.ts b/src/ts/src/models/Weaviate.ts new file mode 100644 index 0000000..f4c03bd --- /dev/null +++ b/src/ts/src/models/Weaviate.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 { WEAVIATEConfig } from './WEAVIATEConfig'; +import { + WEAVIATEConfigFromJSON, + WEAVIATEConfigFromJSONTyped, + WEAVIATEConfigToJSON, + WEAVIATEConfigToJSONTyped, +} from './WEAVIATEConfig'; + +/** + * + * @export + * @interface Weaviate + */ +export interface Weaviate { + /** + * Name of the connector + * @type {string} + * @memberof Weaviate + */ + name: string; + /** + * Connector type (must be "WEAVIATE") + * @type {string} + * @memberof Weaviate + */ + type: WeaviateTypeEnum; + /** + * + * @type {WEAVIATEConfig} + * @memberof Weaviate + */ + config: WEAVIATEConfig; +} + + +/** + * @export + */ +export const WeaviateTypeEnum = { + Weaviate: 'WEAVIATE' +} as const; +export type WeaviateTypeEnum = typeof WeaviateTypeEnum[keyof typeof WeaviateTypeEnum]; + + +/** + * Check if a given object implements the Weaviate interface. + */ +export function instanceOfWeaviate(value: object): value is Weaviate { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('type' in value) || value['type'] === undefined) return false; + if (!('config' in value) || value['config'] === undefined) return false; + return true; +} + +export function WeaviateFromJSON(json: any): Weaviate { + return WeaviateFromJSONTyped(json, false); +} + +export function WeaviateFromJSONTyped(json: any, ignoreDiscriminator: boolean): Weaviate { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'type': json['type'], + 'config': WEAVIATEConfigFromJSON(json['config']), + }; +} + +export function WeaviateToJSON(json: any): Weaviate { + return WeaviateToJSONTyped(json, false); +} + +export function WeaviateToJSONTyped(value?: Weaviate | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'type': value['type'], + 'config': WEAVIATEConfigToJSON(value['config']), + }; +} + diff --git a/src/ts/src/models/Weaviate1.ts b/src/ts/src/models/Weaviate1.ts new file mode 100644 index 0000000..c511b06 --- /dev/null +++ b/src/ts/src/models/Weaviate1.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 { WEAVIATEConfig } from './WEAVIATEConfig'; +import { + WEAVIATEConfigFromJSON, + WEAVIATEConfigFromJSONTyped, + WEAVIATEConfigToJSON, + WEAVIATEConfigToJSONTyped, +} from './WEAVIATEConfig'; + +/** + * + * @export + * @interface Weaviate1 + */ +export interface Weaviate1 { + /** + * + * @type {WEAVIATEConfig} + * @memberof Weaviate1 + */ + config?: WEAVIATEConfig; +} + +/** + * Check if a given object implements the Weaviate1 interface. + */ +export function instanceOfWeaviate1(value: object): value is Weaviate1 { + return true; +} + +export function Weaviate1FromJSON(json: any): Weaviate1 { + return Weaviate1FromJSONTyped(json, false); +} + +export function Weaviate1FromJSONTyped(json: any, ignoreDiscriminator: boolean): Weaviate1 { + if (json == null) { + return json; + } + return { + + 'config': json['config'] == null ? undefined : WEAVIATEConfigFromJSON(json['config']), + }; +} + +export function Weaviate1ToJSON(json: any): Weaviate1 { + return Weaviate1ToJSONTyped(json, false); +} + +export function Weaviate1ToJSONTyped(value?: Weaviate1 | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'config': WEAVIATEConfigToJSON(value['config']), + }; +} + diff --git a/src/ts/src/models/WebCrawler.ts b/src/ts/src/models/WebCrawler.ts new file mode 100644 index 0000000..a9061fb --- /dev/null +++ b/src/ts/src/models/WebCrawler.ts @@ -0,0 +1,102 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 { WEBCRAWLERConfig } from './WEBCRAWLERConfig'; +import { + WEBCRAWLERConfigFromJSON, + WEBCRAWLERConfigFromJSONTyped, + WEBCRAWLERConfigToJSON, + WEBCRAWLERConfigToJSONTyped, +} from './WEBCRAWLERConfig'; + +/** + * + * @export + * @interface WebCrawler + */ +export interface WebCrawler { + /** + * Name of the connector + * @type {string} + * @memberof WebCrawler + */ + name: string; + /** + * Connector type (must be "WEB_CRAWLER") + * @type {string} + * @memberof WebCrawler + */ + type: WebCrawlerTypeEnum; + /** + * + * @type {WEBCRAWLERConfig} + * @memberof WebCrawler + */ + config: WEBCRAWLERConfig; +} + + +/** + * @export + */ +export const WebCrawlerTypeEnum = { + WebCrawler: 'WEB_CRAWLER' +} as const; +export type WebCrawlerTypeEnum = typeof WebCrawlerTypeEnum[keyof typeof WebCrawlerTypeEnum]; + + +/** + * Check if a given object implements the WebCrawler interface. + */ +export function instanceOfWebCrawler(value: object): value is WebCrawler { + if (!('name' in value) || value['name'] === undefined) return false; + if (!('type' in value) || value['type'] === undefined) return false; + if (!('config' in value) || value['config'] === undefined) return false; + return true; +} + +export function WebCrawlerFromJSON(json: any): WebCrawler { + return WebCrawlerFromJSONTyped(json, false); +} + +export function WebCrawlerFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebCrawler { + if (json == null) { + return json; + } + return { + + 'name': json['name'], + 'type': json['type'], + 'config': WEBCRAWLERConfigFromJSON(json['config']), + }; +} + +export function WebCrawlerToJSON(json: any): WebCrawler { + return WebCrawlerToJSONTyped(json, false); +} + +export function WebCrawlerToJSONTyped(value?: WebCrawler | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'name': value['name'], + 'type': value['type'], + 'config': WEBCRAWLERConfigToJSON(value['config']), + }; +} + diff --git a/src/ts/src/models/WebCrawler1.ts b/src/ts/src/models/WebCrawler1.ts new file mode 100644 index 0000000..a6dd84a --- /dev/null +++ b/src/ts/src/models/WebCrawler1.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * 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 { WEBCRAWLERConfig } from './WEBCRAWLERConfig'; +import { + WEBCRAWLERConfigFromJSON, + WEBCRAWLERConfigFromJSONTyped, + WEBCRAWLERConfigToJSON, + WEBCRAWLERConfigToJSONTyped, +} from './WEBCRAWLERConfig'; + +/** + * + * @export + * @interface WebCrawler1 + */ +export interface WebCrawler1 { + /** + * + * @type {WEBCRAWLERConfig} + * @memberof WebCrawler1 + */ + config?: WEBCRAWLERConfig; +} + +/** + * Check if a given object implements the WebCrawler1 interface. + */ +export function instanceOfWebCrawler1(value: object): value is WebCrawler1 { + return true; +} + +export function WebCrawler1FromJSON(json: any): WebCrawler1 { + return WebCrawler1FromJSONTyped(json, false); +} + +export function WebCrawler1FromJSONTyped(json: any, ignoreDiscriminator: boolean): WebCrawler1 { + if (json == null) { + return json; + } + return { + + 'config': json['config'] == null ? undefined : WEBCRAWLERConfigFromJSON(json['config']), + }; +} + +export function WebCrawler1ToJSON(json: any): WebCrawler1 { + return WebCrawler1ToJSONTyped(json, false); +} + +export function WebCrawler1ToJSONTyped(value?: WebCrawler1 | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'config': WEBCRAWLERConfigToJSON(value['config']), + }; +} + diff --git a/src/ts/src/models/index.ts b/src/ts/src/models/index.ts index 1c993a5..241604e 100644 --- a/src/ts/src/models/index.ts +++ b/src/ts/src/models/index.ts @@ -2,23 +2,60 @@ /* eslint-disable */ export * from './AIPlatform'; export * from './AIPlatformConfigSchema'; -export * from './AIPlatformSchema'; +export * from './AIPlatformConnectorInput'; +export * from './AIPlatformConnectorSchema'; export * from './AIPlatformType'; +export * from './AIPlatformTypeForPipeline'; +export * from './AWSS3AuthConfig'; +export * from './AWSS3Config'; +export * from './AZUREAISEARCHAuthConfig'; +export * from './AZUREAISEARCHConfig'; +export * from './AZUREBLOBAuthConfig'; +export * from './AZUREBLOBConfig'; export * from './AddUserFromSourceConnectorResponse'; export * from './AddUserToSourceConnectorRequest'; -export * from './AddUserToSourceConnectorRequestSelectedFilesValue'; -export * from './AdvancedQuery'; -export * from './CreateAIPlatformConnector'; +export * from './AddUserToSourceConnectorRequestSelectedFiles'; +export * from './AddUserToSourceConnectorRequestSelectedFilesAnyOf'; +export * from './AddUserToSourceConnectorRequestSelectedFilesAnyOfValue'; +export * from './AwsS3'; +export * from './AwsS31'; +export * from './AzureBlob'; +export * from './AzureBlob1'; +export * from './Azureaisearch'; +export * from './Azureaisearch1'; +export * from './BEDROCKAuthConfig'; +export * from './Bedrock'; +export * from './Bedrock1'; +export * from './CAPELLAAuthConfig'; +export * from './CAPELLAConfig'; +export * from './CONFLUENCEAuthConfig'; +export * from './CONFLUENCEConfig'; +export * from './Capella'; +export * from './Capella1'; +export * from './Confluence'; +export * from './Confluence1'; +export * from './CreateAIPlatformConnectorRequest'; export * from './CreateAIPlatformConnectorResponse'; -export * from './CreateDestinationConnector'; +export * from './CreateDestinationConnectorRequest'; export * from './CreateDestinationConnectorResponse'; export * from './CreatePipelineResponse'; export * from './CreatePipelineResponseData'; -export * from './CreateSourceConnector'; +export * from './CreateSourceConnectorRequest'; export * from './CreateSourceConnectorResponse'; export * from './CreatedAIPlatformConnector'; export * from './CreatedDestinationConnector'; export * from './CreatedSourceConnector'; +export * from './DATASTAXAuthConfig'; +export * from './DATASTAXConfig'; +export * from './DISCORDAuthConfig'; +export * from './DISCORDConfig'; +export * from './DROPBOXAuthConfig'; +export * from './DROPBOXConfig'; +export * from './DROPBOXOAUTHAuthConfig'; +export * from './DROPBOXOAUTHMULTIAuthConfig'; +export * from './DROPBOXOAUTHMULTICUSTOMAuthConfig'; +export * from './Datastax'; +export * from './Datastax1'; export * from './DeepResearchResult'; export * from './DeleteAIPlatformConnectorResponse'; export * from './DeleteDestinationConnectorResponse'; @@ -26,13 +63,53 @@ export * from './DeleteFileResponse'; export * from './DeletePipelineResponse'; export * from './DeleteSourceConnectorResponse'; export * from './DestinationConnector'; +export * from './DestinationConnectorInput'; +export * from './DestinationConnectorInputConfig'; export * from './DestinationConnectorSchema'; export * from './DestinationConnectorType'; +export * from './DestinationConnectorTypeForPipeline'; +export * from './Discord'; +export * from './Discord1'; export * from './Document'; +export * from './Dropbox'; +export * from './DropboxOauth'; +export * from './DropboxOauthMulti'; +export * from './DropboxOauthMultiCustom'; +export * from './ELASTICAuthConfig'; +export * from './ELASTICConfig'; +export * from './Elastic'; +export * from './Elastic1'; export * from './ExtractionChunkingStrategy'; export * from './ExtractionResult'; export * from './ExtractionResultResponse'; export * from './ExtractionType'; +export * from './FILEUPLOADAuthConfig'; +export * from './FIRECRAWLAuthConfig'; +export * from './FIRECRAWLConfig'; +export * from './FIREFLIESAuthConfig'; +export * from './FIREFLIESConfig'; +export * from './FileUpload'; +export * from './FileUpload1'; +export * from './Firecrawl'; +export * from './Firecrawl1'; +export * from './Fireflies'; +export * from './Fireflies1'; +export * from './GCSAuthConfig'; +export * from './GCSConfig'; +export * from './GITHUBAuthConfig'; +export * from './GITHUBConfig'; +export * from './GMAILAuthConfig'; +export * from './GMAILConfig'; +export * from './GOOGLEDRIVEAuthConfig'; +export * from './GOOGLEDRIVEConfig'; +export * from './GOOGLEDRIVEOAUTHAuthConfig'; +export * from './GOOGLEDRIVEOAUTHConfig'; +export * from './GOOGLEDRIVEOAUTHMULTIAuthConfig'; +export * from './GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig'; +export * from './GOOGLEDRIVEOAUTHMULTICUSTOMConfig'; +export * from './GOOGLEDRIVEOAUTHMULTIConfig'; +export * from './Gcs'; +export * from './Gcs1'; export * from './GetAIPlatformConnectors200Response'; export * from './GetDeepResearchResponse'; export * from './GetDestinationConnectors200Response'; @@ -43,23 +120,75 @@ export * from './GetPipelines400Response'; export * from './GetPipelinesResponse'; export * from './GetSourceConnectors200Response'; export * from './GetUploadFilesResponse'; +export * from './Github'; +export * from './Github1'; +export * from './GoogleDrive'; +export * from './GoogleDrive1'; +export * from './GoogleDriveOauth'; +export * from './GoogleDriveOauthMulti'; +export * from './GoogleDriveOauthMultiCustom'; +export * from './INTERCOMAuthConfig'; +export * from './INTERCOMConfig'; +export * from './Intercom'; +export * from './MILVUSAuthConfig'; +export * from './MILVUSConfig'; export * from './MetadataExtractionStrategy'; export * from './MetadataExtractionStrategySchema'; +export * from './Milvus'; +export * from './Milvus1'; export * from './N8NConfig'; +export * from './NOTIONAuthConfig'; +export * from './NOTIONConfig'; +export * from './NOTIONOAUTHMULTIAuthConfig'; +export * from './NOTIONOAUTHMULTICUSTOMAuthConfig'; +export * from './Notion'; +export * from './NotionOauthMulti'; +export * from './NotionOauthMultiCustom'; +export * from './ONEDRIVEAuthConfig'; +export * from './ONEDRIVEConfig'; +export * from './OPENAIAuthConfig'; +export * from './OneDrive'; +export * from './OneDrive1'; +export * from './Openai'; +export * from './Openai1'; +export * from './PINECONEAuthConfig'; +export * from './PINECONEConfig'; +export * from './POSTGRESQLAuthConfig'; +export * from './POSTGRESQLConfig'; +export * from './Pinecone'; +export * from './Pinecone1'; export * from './PipelineConfigurationSchema'; export * from './PipelineEvents'; export * from './PipelineListSummary'; export * from './PipelineMetrics'; export * from './PipelineSummary'; +export * from './Postgresql'; +export * from './Postgresql1'; +export * from './QDRANTAuthConfig'; +export * from './QDRANTConfig'; +export * from './Qdrant'; +export * from './Qdrant1'; export * from './RemoveUserFromSourceConnectorRequest'; export * from './RemoveUserFromSourceConnectorResponse'; export * from './RetrieveContext'; export * from './RetrieveContextMessage'; export * from './RetrieveDocumentsRequest'; export * from './RetrieveDocumentsResponse'; +export * from './SHAREPOINTAuthConfig'; +export * from './SHAREPOINTConfig'; +export * from './SINGLESTOREAuthConfig'; +export * from './SINGLESTOREConfig'; +export * from './SUPABASEAuthConfig'; +export * from './SUPABASEConfig'; export * from './ScheduleSchema'; export * from './ScheduleSchemaType'; +export * from './Sharepoint'; +export * from './Sharepoint1'; +export * from './Singlestore'; +export * from './Singlestore1'; export * from './SourceConnector'; +export * from './SourceConnectorInput'; +export * from './SourceConnectorInputConfig'; export * from './SourceConnectorSchema'; export * from './SourceConnectorType'; export * from './StartDeepResearchRequest'; @@ -72,6 +201,12 @@ export * from './StartFileUploadToConnectorRequest'; export * from './StartFileUploadToConnectorResponse'; export * from './StartPipelineResponse'; export * from './StopPipelineResponse'; +export * from './Supabase'; +export * from './Supabase1'; +export * from './TURBOPUFFERAuthConfig'; +export * from './TURBOPUFFERConfig'; +export * from './Turbopuffer'; +export * from './Turbopuffer1'; export * from './UpdateAIPlatformConnectorRequest'; export * from './UpdateAIPlatformConnectorResponse'; export * from './UpdateDestinationConnectorRequest'; @@ -84,3 +219,17 @@ export * from './UpdateUserInSourceConnectorResponse'; export * from './UpdatedAIPlatformConnectorData'; export * from './UpdatedDestinationConnectorData'; export * from './UploadFile'; +export * from './VERTEXAuthConfig'; +export * from './VOYAGEAuthConfig'; +export * from './Vertex'; +export * from './Vertex1'; +export * from './Voyage'; +export * from './Voyage1'; +export * from './WEAVIATEAuthConfig'; +export * from './WEAVIATEConfig'; +export * from './WEBCRAWLERAuthConfig'; +export * from './WEBCRAWLERConfig'; +export * from './Weaviate'; +export * from './Weaviate1'; +export * from './WebCrawler'; +export * from './WebCrawler1'; diff --git a/src/ts/src/runtime.ts b/src/ts/src/runtime.ts index f38c132..8ce3cf9 100644 --- a/src/ts/src/runtime.ts +++ b/src/ts/src/runtime.ts @@ -1,8 +1,8 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * * The version of the OpenAPI document: 0.0.1 * diff --git a/tests/python/tests/test_client.py b/tests/python/tests/test_client.py index 20fbf04..178b48c 100644 --- a/tests/python/tests/test_client.py +++ b/tests/python/tests/test_client.py @@ -14,12 +14,12 @@ class TestContext: @pytest.fixture def ctx() -> TestContext: - token = os.getenv("VECTORIZE_TOKEN") + token = os.getenv("VECTORIZE_API_KEY") if not token: - raise ValueError("Please set VECTORIZE_TOKEN environment variable") - org = os.getenv("VECTORIZE_ORG") + raise ValueError("Please set VECTORIZE_API_KEY environment variable") + org = os.getenv("VECTORIZE_ORGANIZATION_ID") if not org: - raise ValueError("Please set VECTORIZE_ORG environment variable") + raise ValueError("Please set VECTORIZE_ORGANIZATION_ID environment variable") env = os.getenv("VECTORIZE_ENV", "prod") header_name = None header_value = None @@ -46,49 +46,55 @@ def test_get_pipelines(ctx: TestContext): logging.info(pipeline.id) - def test_delete_system_connectors(ctx: TestContext): - connectors = v.ConnectorsApi(ctx.api_client) + # Split the old ConnectorsApi into specific APIs + ai_platforms_api = v.AIPlatformConnectorsApi(ctx.api_client) + destination_connectors_api = v.DestinationConnectorsApi(ctx.api_client) - ai_platforms = connectors.get_ai_platform_connectors(ctx.org_id) + ai_platforms = ai_platforms_api.get_ai_platform_connectors(ctx.org_id) builtin_ai_platform = [c.id for c in ai_platforms.ai_platform_connectors if c.type == "VECTORIZE"][0] - destination_connectors = connectors.get_destination_connectors(ctx.org_id) + destination_connectors = destination_connectors_api.get_destination_connectors(ctx.org_id) builtin_vector_db = [c.id for c in destination_connectors.destination_connectors if c.type == "VECTORIZE"][0] - try: - connectors.delete_ai_platform(ctx.org_id, builtin_ai_platform) + ai_platforms_api.delete_ai_platform(ctx.org_id, builtin_ai_platform) raise ValueError("test should have failed") except Exception as e: logging.error(f"Failed to delete: {e}") - if "Cannot delete system connector" in str(e): + # Update the expected error message + if "Cannot delete AI platform" in str(e) or "Cannot delete system connector" in str(e): pass else: raise e try: - connectors.delete_destination_connector(ctx.org_id, builtin_vector_db) + destination_connectors_api.delete_destination_connector(ctx.org_id, builtin_vector_db) raise ValueError("test should have failed") except Exception as e: logging.error(f"Failed to delete: {e}") - if "Cannot delete system connector" in str(e): + # Update the expected error message + if "Cannot delete destination connector" in str(e) or "Cannot delete system connector" in str(e): pass else: raise e - - + + def test_upload_create_pipeline(ctx: TestContext): pipelines = v.PipelinesApi(ctx.api_client) - connectors_api = v.ConnectorsApi(ctx.api_client) - response = connectors_api.create_source_connector(ctx.org_id, [v.CreateSourceConnector( + # Create source connector using new API structure + source_connectors_api = v.SourceConnectorsApi(ctx.api_client) + file_upload = v.FileUpload( name="from api", - type=v.SourceConnectorType.FILE_UPLOAD)] + type="FILE_UPLOAD" ) - source_connector_id = response.connectors[0].id + create_request = v.CreateSourceConnectorRequest(file_upload) # Just pass file_upload directly + response = source_connectors_api.create_source_connector(ctx.org_id, create_request) + source_connector_id = response.connector.id logging.info(f"Created source connector {source_connector_id}") + # Upload file to the connector uploads_api = v.UploadsApi(ctx.api_client) upload_response = uploads_api.start_file_upload_to_connector( ctx.org_id, source_connector_id, v.StartFileUploadToConnectorRequest( @@ -108,21 +114,37 @@ def test_upload_create_pipeline(ctx: TestContext): else: logging.info("Upload successful") - ai_platforms = connectors_api.get_ai_platform_connectors(ctx.org_id) + # Get AI platform connector + ai_platforms_api = v.AIPlatformConnectorsApi(ctx.api_client) + ai_platforms = ai_platforms_api.get_ai_platform_connectors(ctx.org_id) builtin_ai_platform = [c.id for c in ai_platforms.ai_platform_connectors if c.type == "VECTORIZE"][0] logging.info(f"Using AI platform {builtin_ai_platform}") - vector_databases = connectors_api.get_destination_connectors(ctx.org_id) - builtin_vector_db = [c.id for c in vector_databases.destination_connectors if c.type == "VECTORIZE"][0] + # Get destination connector + destination_connectors_api = v.DestinationConnectorsApi(ctx.api_client) + destination_connectors = destination_connectors_api.get_destination_connectors(ctx.org_id) + builtin_vector_db = [c.id for c in destination_connectors.destination_connectors if c.type == "VECTORIZE"][0] logging.info(f"Using destination connector {builtin_vector_db}") created_pipeline_id = None try: - + # Create pipeline with updated schema response = pipelines.create_pipeline(ctx.org_id, v.PipelineConfigurationSchema( - 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={}), + source_connectors=[v.SourceConnectorSchema( + id=source_connector_id, + type="FILE_UPLOAD", + config={} + )], + destination_connector=v.DestinationConnectorSchema( + id=builtin_vector_db, + type="VECTORIZE", + config={} + ), + aiPlatform=v.AIPlatformConnectorSchema( + id=builtin_ai_platform, + type="VECTORIZE", + config={} + ), pipeline_name="Test pipeline", schedule=v.ScheduleSchema(type="manual") ) @@ -132,6 +154,7 @@ def test_upload_create_pipeline(ctx: TestContext): pipeline_id = response.data.id _test_retrieval(ctx, response.data.id) + # Start deep research response = pipelines.start_deep_research(ctx.org_id, response.data.id, v.StartDeepResearchRequest( query="What is the meaning of life?", web_search=False, @@ -153,9 +176,7 @@ def test_upload_create_pipeline(ctx: TestContext): pipelines.delete_pipeline(ctx.org_id, created_pipeline_id) except Exception as e: logging.error(f"Failed to delete pipeline {created_pipeline_id}: {e}") - - - + def _test_retrieval(ctx: TestContext, pipeline_id: str): pipelines = v.PipelinesApi(ctx.api_client) response = pipelines.retrieve_documents(ctx.org_id, pipeline_id, v.RetrieveDocumentsRequest( diff --git a/tests/ts/package-lock.json b/tests/ts/package-lock.json index a6377ab..34413dc 100644 --- a/tests/ts/package-lock.json +++ b/tests/ts/package-lock.json @@ -17,7 +17,7 @@ }, "../../src/ts": { "name": "@vectorize-io/vectorize-client", - "version": "0.2.1", + "version": "0.0.1-SNAPSHOT.202507021445", "dev": true, "hasInstallScript": true, "license": "MIT", @@ -458,270 +458,277 @@ "license": "MIT" }, "node_modules/@rollup/rollup-android-arm-eabi": { - "version": "4.44.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.44.1.tgz", - "integrity": "sha512-JAcBr1+fgqx20m7Fwe1DxPUl/hPkee6jA6Pl7n1v2EFiktAHenTaXl5aIFjUIEsfn9w3HE4gK1lEgNGMzBDs1w==", + "version": "4.34.8", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.34.8.tgz", + "integrity": "sha512-q217OSE8DTp8AFHuNHXo0Y86e1wtlfVrXiAlwkIvGRQv9zbc6mE3sjIVfwI8sYUyNxwOg0j/Vm1RKM04JcWLJw==", "cpu": [ "arm" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "android" ] }, "node_modules/@rollup/rollup-android-arm64": { - "version": "4.44.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.44.1.tgz", - "integrity": "sha512-RurZetXqTu4p+G0ChbnkwBuAtwAbIwJkycw1n6GvlGlBuS4u5qlr5opix8cBAYFJgaY05TWtM+LaoFggUmbZEQ==", + "version": "4.34.8", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.34.8.tgz", + "integrity": "sha512-Gigjz7mNWaOL9wCggvoK3jEIUUbGul656opstjaUSGC3eT0BM7PofdAJaBfPFWWkXNVAXbaQtC99OCg4sJv70Q==", "cpu": [ "arm64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "android" ] }, "node_modules/@rollup/rollup-darwin-arm64": { - "version": "4.44.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.44.1.tgz", - "integrity": "sha512-fM/xPesi7g2M7chk37LOnmnSTHLG/v2ggWqKj3CCA1rMA4mm5KVBT1fNoswbo1JhPuNNZrVwpTvlCVggv8A2zg==", + "version": "4.34.8", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.34.8.tgz", + "integrity": "sha512-02rVdZ5tgdUNRxIUrFdcMBZQoaPMrxtwSb+/hOfBdqkatYHR3lZ2A2EGyHq2sGOd0Owk80oV3snlDASC24He3Q==", "cpu": [ "arm64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "darwin" ] }, "node_modules/@rollup/rollup-darwin-x64": { - "version": "4.44.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.44.1.tgz", - "integrity": "sha512-gDnWk57urJrkrHQ2WVx9TSVTH7lSlU7E3AFqiko+bgjlh78aJ88/3nycMax52VIVjIm3ObXnDL2H00e/xzoipw==", + "version": "4.34.8", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.34.8.tgz", + "integrity": "sha512-qIP/elwR/tq/dYRx3lgwK31jkZvMiD6qUtOycLhTzCvrjbZ3LjQnEM9rNhSGpbLXVJYQ3rq39A6Re0h9tU2ynw==", "cpu": [ "x64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "darwin" ] }, "node_modules/@rollup/rollup-freebsd-arm64": { - "version": "4.44.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.44.1.tgz", - "integrity": "sha512-wnFQmJ/zPThM5zEGcnDcCJeYJgtSLjh1d//WuHzhf6zT3Md1BvvhJnWoy+HECKu2bMxaIcfWiu3bJgx6z4g2XA==", + "version": "4.34.8", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.34.8.tgz", + "integrity": "sha512-IQNVXL9iY6NniYbTaOKdrlVP3XIqazBgJOVkddzJlqnCpRi/yAeSOa8PLcECFSQochzqApIOE1GHNu3pCz+BDA==", "cpu": [ "arm64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "freebsd" ] }, "node_modules/@rollup/rollup-freebsd-x64": { - "version": "4.44.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.44.1.tgz", - "integrity": "sha512-uBmIxoJ4493YATvU2c0upGz87f99e3wop7TJgOA/bXMFd2SvKCI7xkxY/5k50bv7J6dw1SXT4MQBQSLn8Bb/Uw==", + "version": "4.34.8", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.34.8.tgz", + "integrity": "sha512-TYXcHghgnCqYFiE3FT5QwXtOZqDj5GmaFNTNt3jNC+vh22dc/ukG2cG+pi75QO4kACohZzidsq7yKTKwq/Jq7Q==", "cpu": [ "x64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "freebsd" ] }, "node_modules/@rollup/rollup-linux-arm-gnueabihf": { - "version": "4.44.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.44.1.tgz", - "integrity": "sha512-n0edDmSHlXFhrlmTK7XBuwKlG5MbS7yleS1cQ9nn4kIeW+dJH+ExqNgQ0RrFRew8Y+0V/x6C5IjsHrJmiHtkxQ==", + "version": "4.34.8", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.34.8.tgz", + "integrity": "sha512-A4iphFGNkWRd+5m3VIGuqHnG3MVnqKe7Al57u9mwgbyZ2/xF9Jio72MaY7xxh+Y87VAHmGQr73qoKL9HPbXj1g==", "cpu": [ "arm" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" ] }, "node_modules/@rollup/rollup-linux-arm-musleabihf": { - "version": "4.44.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.44.1.tgz", - "integrity": "sha512-8WVUPy3FtAsKSpyk21kV52HCxB+me6YkbkFHATzC2Yd3yuqHwy2lbFL4alJOLXKljoRw08Zk8/xEj89cLQ/4Nw==", + "version": "4.34.8", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.34.8.tgz", + "integrity": "sha512-S0lqKLfTm5u+QTxlFiAnb2J/2dgQqRy/XvziPtDd1rKZFXHTyYLoVL58M/XFwDI01AQCDIevGLbQrMAtdyanpA==", "cpu": [ "arm" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" ] }, "node_modules/@rollup/rollup-linux-arm64-gnu": { - "version": "4.44.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.44.1.tgz", - "integrity": "sha512-yuktAOaeOgorWDeFJggjuCkMGeITfqvPgkIXhDqsfKX8J3jGyxdDZgBV/2kj/2DyPaLiX6bPdjJDTu9RB8lUPQ==", + "version": "4.34.8", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.34.8.tgz", + "integrity": "sha512-jpz9YOuPiSkL4G4pqKrus0pn9aYwpImGkosRKwNi+sJSkz+WU3anZe6hi73StLOQdfXYXC7hUfsQlTnjMd3s1A==", "cpu": [ "arm64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" ] }, "node_modules/@rollup/rollup-linux-arm64-musl": { - "version": "4.44.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.44.1.tgz", - "integrity": "sha512-W+GBM4ifET1Plw8pdVaecwUgxmiH23CfAUj32u8knq0JPFyK4weRy6H7ooxYFD19YxBulL0Ktsflg5XS7+7u9g==", + "version": "4.34.8", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.34.8.tgz", + "integrity": "sha512-KdSfaROOUJXgTVxJNAZ3KwkRc5nggDk+06P6lgi1HLv1hskgvxHUKZ4xtwHkVYJ1Rep4GNo+uEfycCRRxht7+Q==", "cpu": [ "arm64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" ] }, "node_modules/@rollup/rollup-linux-loongarch64-gnu": { - "version": "4.44.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loongarch64-gnu/-/rollup-linux-loongarch64-gnu-4.44.1.tgz", - "integrity": "sha512-1zqnUEMWp9WrGVuVak6jWTl4fEtrVKfZY7CvcBmUUpxAJ7WcSowPSAWIKa/0o5mBL/Ij50SIf9tuirGx63Ovew==", + "version": "4.34.8", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loongarch64-gnu/-/rollup-linux-loongarch64-gnu-4.34.8.tgz", + "integrity": "sha512-NyF4gcxwkMFRjgXBM6g2lkT58OWztZvw5KkV2K0qqSnUEqCVcqdh2jN4gQrTn/YUpAcNKyFHfoOZEer9nwo6uQ==", "cpu": [ "loong64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" ] }, "node_modules/@rollup/rollup-linux-powerpc64le-gnu": { - "version": "4.44.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.44.1.tgz", - "integrity": "sha512-Rl3JKaRu0LHIx7ExBAAnf0JcOQetQffaw34T8vLlg9b1IhzcBgaIdnvEbbsZq9uZp3uAH+JkHd20Nwn0h9zPjA==", + "version": "4.34.8", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.34.8.tgz", + "integrity": "sha512-LMJc999GkhGvktHU85zNTDImZVUCJ1z/MbAJTnviiWmmjyckP5aQsHtcujMjpNdMZPT2rQEDBlJfubhs3jsMfw==", "cpu": [ "ppc64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" ] }, "node_modules/@rollup/rollup-linux-riscv64-gnu": { - "version": "4.44.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.44.1.tgz", - "integrity": "sha512-j5akelU3snyL6K3N/iX7otLBIl347fGwmd95U5gS/7z6T4ftK288jKq3A5lcFKcx7wwzb5rgNvAg3ZbV4BqUSw==", - "cpu": [ - "riscv64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-riscv64-musl": { - "version": "4.44.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.44.1.tgz", - "integrity": "sha512-ppn5llVGgrZw7yxbIm8TTvtj1EoPgYUAbfw0uDjIOzzoqlZlZrLJ/KuiE7uf5EpTpCTrNt1EdtzF0naMm0wGYg==", + "version": "4.34.8", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.34.8.tgz", + "integrity": "sha512-xAQCAHPj8nJq1PI3z8CIZzXuXCstquz7cIOL73HHdXiRcKk8Ywwqtx2wrIy23EcTn4aZ2fLJNBB8d0tQENPCmw==", "cpu": [ "riscv64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" ] }, "node_modules/@rollup/rollup-linux-s390x-gnu": { - "version": "4.44.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.44.1.tgz", - "integrity": "sha512-Hu6hEdix0oxtUma99jSP7xbvjkUM/ycke/AQQ4EC5g7jNRLLIwjcNwaUy95ZKBJJwg1ZowsclNnjYqzN4zwkAw==", + "version": "4.34.8", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.34.8.tgz", + "integrity": "sha512-DdePVk1NDEuc3fOe3dPPTb+rjMtuFw89gw6gVWxQFAuEqqSdDKnrwzZHrUYdac7A7dXl9Q2Vflxpme15gUWQFA==", "cpu": [ "s390x" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" ] }, "node_modules/@rollup/rollup-linux-x64-gnu": { - "version": "4.44.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.44.1.tgz", - "integrity": "sha512-EtnsrmZGomz9WxK1bR5079zee3+7a+AdFlghyd6VbAjgRJDbTANJ9dcPIPAi76uG05micpEL+gPGmAKYTschQw==", + "version": "4.34.8", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.34.8.tgz", + "integrity": "sha512-8y7ED8gjxITUltTUEJLQdgpbPh1sUQ0kMTmufRF/Ns5tI9TNMNlhWtmPKKHCU0SilX+3MJkZ0zERYYGIVBYHIA==", "cpu": [ "x64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" ] }, "node_modules/@rollup/rollup-linux-x64-musl": { - "version": "4.44.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.44.1.tgz", - "integrity": "sha512-iAS4p+J1az6Usn0f8xhgL4PaU878KEtutP4hqw52I4IO6AGoyOkHCxcc4bqufv1tQLdDWFx8lR9YlwxKuv3/3g==", + "version": "4.34.8", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.34.8.tgz", + "integrity": "sha512-SCXcP0ZpGFIe7Ge+McxY5zKxiEI5ra+GT3QRxL0pMMtxPfpyLAKleZODi1zdRHkz5/BhueUrYtYVgubqe9JBNQ==", "cpu": [ "x64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" ] }, "node_modules/@rollup/rollup-win32-arm64-msvc": { - "version": "4.44.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.44.1.tgz", - "integrity": "sha512-NtSJVKcXwcqozOl+FwI41OH3OApDyLk3kqTJgx8+gp6On9ZEt5mYhIsKNPGuaZr3p9T6NWPKGU/03Vw4CNU9qg==", + "version": "4.34.8", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.34.8.tgz", + "integrity": "sha512-YHYsgzZgFJzTRbth4h7Or0m5O74Yda+hLin0irAIobkLQFRQd1qWmnoVfwmKm9TXIZVAD0nZ+GEb2ICicLyCnQ==", "cpu": [ "arm64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "win32" ] }, "node_modules/@rollup/rollup-win32-ia32-msvc": { - "version": "4.44.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.44.1.tgz", - "integrity": "sha512-JYA3qvCOLXSsnTR3oiyGws1Dm0YTuxAAeaYGVlGpUsHqloPcFjPg+X0Fj2qODGLNwQOAcCiQmHub/V007kiH5A==", + "version": "4.34.8", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.34.8.tgz", + "integrity": "sha512-r3NRQrXkHr4uWy5TOjTpTYojR9XmF0j/RYgKCef+Ag46FWUTltm5ziticv8LdNsDMehjJ543x/+TJAek/xBA2w==", "cpu": [ "ia32" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "win32" ] }, "node_modules/@rollup/rollup-win32-x64-msvc": { - "version": "4.44.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.44.1.tgz", - "integrity": "sha512-J8o22LuF0kTe7m+8PvW9wk3/bRq5+mRo5Dqo6+vXb7otCm3TPhYOJqOaQtGU9YMWQSL3krMnoOxMr0+9E6F3Ug==", + "version": "4.34.8", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.34.8.tgz", + "integrity": "sha512-U0FaE5O1BCpZSeE6gBl3c5ObhePQSfk9vDRToMmTkbhCOgW4jqvtS5LGyQ76L1fH8sM0keRp4uDTsbjiUyjk0g==", "cpu": [ "x64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "win32" ] }, "node_modules/@types/estree": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz", - "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==", - "dev": true + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.6.tgz", + "integrity": "sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==", + "dev": true, + "license": "MIT" }, "node_modules/@types/node": { "version": "22.13.4", @@ -993,26 +1000,13 @@ "node": ">=12.0.0" } }, - "node_modules/fdir": { - "version": "6.4.6", - "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.4.6.tgz", - "integrity": "sha512-hiFoqpyZcfNm1yc4u8oWCf9A2c4D3QjCrks3zmoVKVxpQRzmPNar1hUJcBG2RQHvEVGDN+Jm81ZheVLAQMK6+w==", - "dev": true, - "peerDependencies": { - "picomatch": "^3 || ^4" - }, - "peerDependenciesMeta": { - "picomatch": { - "optional": true - } - } - }, "node_modules/fsevents": { "version": "2.3.3", "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", "dev": true, "hasInstallScript": true, + "license": "MIT", "optional": true, "os": [ "darwin" @@ -1088,18 +1082,6 @@ "dev": true, "license": "ISC" }, - "node_modules/picomatch": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.2.tgz", - "integrity": "sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==", - "dev": true, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, "node_modules/postcss": { "version": "8.5.3", "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.3.tgz", @@ -1130,12 +1112,13 @@ } }, "node_modules/rollup": { - "version": "4.44.1", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.44.1.tgz", - "integrity": "sha512-x8H8aPvD+xbl0Do8oez5f5o8eMS3trfCghc4HhLAnCkj7Vl0d1JWGs0UF/D886zLW2rOj2QymV/JcSSsw+XDNg==", + "version": "4.34.8", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.34.8.tgz", + "integrity": "sha512-489gTVMzAYdiZHFVA/ig/iYFllCcWFHMvUHI1rpFmkoUtRlQxqh6/yiNqnYibjMZ2b/+FUQwldG+aLsEt6bglQ==", "dev": true, + "license": "MIT", "dependencies": { - "@types/estree": "1.0.8" + "@types/estree": "1.0.6" }, "bin": { "rollup": "dist/bin/rollup" @@ -1145,26 +1128,25 @@ "npm": ">=8.0.0" }, "optionalDependencies": { - "@rollup/rollup-android-arm-eabi": "4.44.1", - "@rollup/rollup-android-arm64": "4.44.1", - "@rollup/rollup-darwin-arm64": "4.44.1", - "@rollup/rollup-darwin-x64": "4.44.1", - "@rollup/rollup-freebsd-arm64": "4.44.1", - "@rollup/rollup-freebsd-x64": "4.44.1", - "@rollup/rollup-linux-arm-gnueabihf": "4.44.1", - "@rollup/rollup-linux-arm-musleabihf": "4.44.1", - "@rollup/rollup-linux-arm64-gnu": "4.44.1", - "@rollup/rollup-linux-arm64-musl": "4.44.1", - "@rollup/rollup-linux-loongarch64-gnu": "4.44.1", - "@rollup/rollup-linux-powerpc64le-gnu": "4.44.1", - "@rollup/rollup-linux-riscv64-gnu": "4.44.1", - "@rollup/rollup-linux-riscv64-musl": "4.44.1", - "@rollup/rollup-linux-s390x-gnu": "4.44.1", - "@rollup/rollup-linux-x64-gnu": "4.44.1", - "@rollup/rollup-linux-x64-musl": "4.44.1", - "@rollup/rollup-win32-arm64-msvc": "4.44.1", - "@rollup/rollup-win32-ia32-msvc": "4.44.1", - "@rollup/rollup-win32-x64-msvc": "4.44.1", + "@rollup/rollup-android-arm-eabi": "4.34.8", + "@rollup/rollup-android-arm64": "4.34.8", + "@rollup/rollup-darwin-arm64": "4.34.8", + "@rollup/rollup-darwin-x64": "4.34.8", + "@rollup/rollup-freebsd-arm64": "4.34.8", + "@rollup/rollup-freebsd-x64": "4.34.8", + "@rollup/rollup-linux-arm-gnueabihf": "4.34.8", + "@rollup/rollup-linux-arm-musleabihf": "4.34.8", + "@rollup/rollup-linux-arm64-gnu": "4.34.8", + "@rollup/rollup-linux-arm64-musl": "4.34.8", + "@rollup/rollup-linux-loongarch64-gnu": "4.34.8", + "@rollup/rollup-linux-powerpc64le-gnu": "4.34.8", + "@rollup/rollup-linux-riscv64-gnu": "4.34.8", + "@rollup/rollup-linux-s390x-gnu": "4.34.8", + "@rollup/rollup-linux-x64-gnu": "4.34.8", + "@rollup/rollup-linux-x64-musl": "4.34.8", + "@rollup/rollup-win32-arm64-msvc": "4.34.8", + "@rollup/rollup-win32-ia32-msvc": "4.34.8", + "@rollup/rollup-win32-x64-msvc": "4.34.8", "fsevents": "~2.3.2" } }, @@ -1213,22 +1195,6 @@ "dev": true, "license": "MIT" }, - "node_modules/tinyglobby": { - "version": "0.2.14", - "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.14.tgz", - "integrity": "sha512-tX5e7OM1HnYr2+a2C/4V0htOcSQcoSTH9KgJnVvNm5zm/cyEWKJ7j7YutsH9CxMdtOkkLFy2AHrMci9IM8IPZQ==", - "dev": true, - "dependencies": { - "fdir": "^6.4.4", - "picomatch": "^4.0.2" - }, - "engines": { - "node": ">=12.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/SuperchupuDev" - } - }, "node_modules/tinypool": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/tinypool/-/tinypool-1.0.2.tgz", @@ -1281,17 +1247,15 @@ "license": "MIT" }, "node_modules/vite": { - "version": "6.3.5", - "resolved": "https://registry.npmjs.org/vite/-/vite-6.3.5.tgz", - "integrity": "sha512-cZn6NDFE7wdTpINgs++ZJ4N49W2vRp8LCKrn3Ob1kYNtOo21vfDoaV5GzBfLU4MovSAB8uNRm4jgzVQZ+mBzPQ==", + "version": "6.2.6", + "resolved": "https://registry.npmjs.org/vite/-/vite-6.2.6.tgz", + "integrity": "sha512-9xpjNl3kR4rVDZgPNdTL0/c6ao4km69a/2ihNQbcANz8RuCOK3hQBmLSJf3bRKVQjVMda+YvizNE8AwvogcPbw==", "dev": true, + "license": "MIT", "dependencies": { "esbuild": "^0.25.0", - "fdir": "^6.4.4", - "picomatch": "^4.0.2", "postcss": "^8.5.3", - "rollup": "^4.34.9", - "tinyglobby": "^0.2.13" + "rollup": "^4.30.1" }, "bin": { "vite": "bin/vite.js" diff --git a/tests/ts/tests/connectors.test.ts b/tests/ts/tests/connectors.test.ts index 0006793..3cf1265 100644 --- a/tests/ts/tests/connectors.test.ts +++ b/tests/ts/tests/connectors.test.ts @@ -1,16 +1,18 @@ import {beforeEach, describe, it, expect} from "vitest"; import {createTestContext, TestContext} from "./testContext"; import { - ConnectorsApi, - type CreateSourceConnector, + SourceConnectorsApi, + AIPlatformConnectorsApi, + DestinationConnectorsApi, PipelinesApi, ResponseError, - SourceConnectorType + SourceConnectorType, + AIPlatformType, + DestinationConnectorType } 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; @@ -18,44 +20,45 @@ beforeEach(() => { testContext = createTestContext(); }); -async function findVectorizeDestinationConnector(connectorsApi: ConnectorsApi) { - let destinationResponse = await connectorsApi.getDestinationConnectors({ - organization: testContext.orgId +async function findVectorizeDestinationConnector(destinationConnectorsApi: DestinationConnectorsApi) { + let destinationResponse = await destinationConnectorsApi.getDestinationConnectors({ + organizationId: 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 +async function findAIPlatformVectorizeConnector(aiPlatformConnectorsApi: AIPlatformConnectorsApi) { + let aiPlatformResponse = await aiPlatformConnectorsApi.getAIPlatformConnectors({ + organizationId: 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"]}} - ] +async function createWebCrawlerSource(sourceConnectorsApi: SourceConnectorsApi) { + let sourceResponse = await sourceConnectorsApi.createSourceConnector({ + organizationId: testContext.orgId, + createSourceConnectorRequest: { + 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, + const sourceConnectorId = sourceResponse.connector.id; + await sourceConnectorsApi.updateSourceConnector({ + organizationId: testContext.orgId, sourceConnectorId, - updateSourceConnectorRequest: { - config: {"seed-urls": ["https://docs.vectorize.io", "https://vectorize.io"]} - } + 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, + organizationId: testContext.orgId, pipelineConfigurationSchema: { pipelineName: "from api", sourceConnectors: [{id: sourceConnectorId, type: SourceConnectorType.WebCrawler, config: {}}], @@ -71,50 +74,67 @@ async function deployPipeline(pipelinesApi: PipelinesApi, sourceConnectorId: str }, schedule: {type: "manual"} } - })).data.id; } describe("connector", () => { it("source lifecycle", async () => { - let connectorsApi = new ConnectorsApi(testContext.configuration); + let sourceConnectorsApi = new SourceConnectorsApi(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"]}} - ] + // Create source connector + let sourceResponse = await sourceConnectorsApi.createSourceConnector({ + organizationId: testContext.orgId, + createSourceConnectorRequest: { + name: "from api", + type: "WEB_CRAWLER", + config: {"seed-urls": ["https://docs.vectorize.io"]} + } }); - const sourceConnectorId = sourceResponse.connectors[0].id; - await connectorsApi.updateSourceConnector({ - organization: testContext.orgId, + const sourceConnectorId = sourceResponse.connector.id; + + // Update source connector + /* ENG-2651 + await sourceConnectorsApi.updateSourceConnector({ + organizationId: testContext.orgId, sourceConnectorId, - updateSourceConnectorRequest: { - config: {"seed-urls": ["https://docs.vectorize.io", "https://vectorize.io"]} + updateSourceConnectorRequest: { + config: { + "max-urls": 100, + "max-depth": 5 } } - ); - let connectors = await connectorsApi.getSourceConnectors({ - organization: testContext.orgId + }); + */ + + // Get all source connectors + let connectors = await sourceConnectorsApi.getSourceConnectors({ + organizationId: testContext.orgId }); expect(connectors.sourceConnectors.find(c => c.id === sourceConnectorId)).toBeTruthy() - const read = await connectorsApi.getSourceConnector({ - organization: testContext.orgId, + // Get single source connector + const read = await sourceConnectorsApi.getSourceConnector({ + organizationId: testContext.orgId, sourceConnectorId }) - console.log(read) + console.log("Full connector:", read) + console.log("ConfigDoc after update:", read.configDoc) + console.log("ConfigDoc keys:", Object.keys(read.configDoc || {})) + expect(read.name).toBe("from api") let configDoc = read.configDoc; - expect(configDoc!["seed-urls"]).toStrictEqual([ 'https://docs.vectorize.io', 'https://vectorize.io' ]) + expect(configDoc!["seed-urls"]).toStrictEqual(["https://docs.vectorize.io"]) expect(read.createdAt).toBeTruthy() - await connectorsApi.deleteSourceConnector({ - organization: testContext.orgId, + + // Delete source connector + await sourceConnectorsApi.deleteSourceConnector({ + organizationId: testContext.orgId, sourceConnectorId }) - connectors = await connectorsApi.getSourceConnectors({ - organization: testContext.orgId + + // Verify deletion + connectors = await sourceConnectorsApi.getSourceConnectors({ + organizationId: testContext.orgId }); expect(connectors.sourceConnectors.find(c => c.id === sourceConnectorId)).toBeFalsy() @@ -126,44 +146,56 @@ describe("connector", () => { }, 120000); it("ai platform lifecycle", async () => { - let connectorsApi = new ConnectorsApi(testContext.configuration); + let aiPlatformConnectorsApi = new AIPlatformConnectorsApi(testContext.configuration); try { - - let sourceResponse = await connectorsApi.createAIPlatformConnector({ - organization: testContext.orgId, - createAIPlatformConnector: [ - {type: AIPlatformType.Openai, name: "from api", config: {"key": "sk"}} - ] + // Create AI platform connector + let sourceResponse = await aiPlatformConnectorsApi.createAIPlatformConnector({ + organizationId: testContext.orgId, + createAIPlatformConnectorRequest: { + name: "from api", + type: "OPENAI", + config: {"key": "sk"} + } }); - const connectorId = sourceResponse.connectors[0].id; - await connectorsApi.updateAIPlatformConnector({ - organization: testContext.orgId, - aiplatformId: connectorId, - updateAIPlatformConnectorRequest: { - config: {"key": "sk"} - } + const connectorId = sourceResponse.connector.id; + + /* ENG-2651 + await aiPlatformConnectorsApi.updateAIPlatformConnector({ + organizationId: testContext.orgId, + aiplatformId: connectorId, + updateAIPlatformConnectorRequest: { + config: {"key": "sk"} } - ); - let connectors = await connectorsApi.getAIPlatformConnectors({ - organization: testContext.orgId + }); + */ + + // Get all AI platform connectors + let connectors = await aiPlatformConnectorsApi.getAIPlatformConnectors({ + organizationId: testContext.orgId }); expect(connectors.aiPlatformConnectors.find(c => c.id === connectorId)).toBeTruthy() - const read = await connectorsApi.getAIPlatformConnector({ - organization: testContext.orgId, - aiplatformId: connectorId + // Get single AI platform connector + const read = await aiPlatformConnectorsApi.getAIPlatformConnector({ + organizationId: testContext.orgId, + aiPlatformConnectorId: connectorId }) console.log(read) expect(read.name).toBe("from api") let configDoc = read.configDoc; + // API key should be redacted/empty in response expect(Object.keys(configDoc!).length).toBe(0) expect(read.createdAt).toBeTruthy() - await connectorsApi.deleteAIPlatform({ - organization: testContext.orgId, - aiplatformId: connectorId + + // Delete AI platform connector + await aiPlatformConnectorsApi.deleteAIPlatform({ + organizationId: testContext.orgId, + aiPlatformConnectorId: connectorId }) - connectors = await connectorsApi.getAIPlatformConnectors({ - organization: testContext.orgId + + // Verify deletion + connectors = await aiPlatformConnectorsApi.getAIPlatformConnectors({ + organizationId: testContext.orgId }); expect(connectors.aiPlatformConnectors.find(c => c.id === connectorId)).toBeFalsy() @@ -174,46 +206,57 @@ describe("connector", () => { } }, 120000); - it("destination connector lifecycle", async () => { - let connectorsApi = new ConnectorsApi(testContext.configuration); + let destinationConnectorsApi = new DestinationConnectorsApi(testContext.configuration); try { - - let sourceResponse = await connectorsApi.createDestinationConnector({ - organization: testContext.orgId, - createDestinationConnector: [ - {type: DestinationConnectorType.Pinecone, name: "from api", config: {"api-key": "sk"}} - ] + // Create destination connector + let sourceResponse = await destinationConnectorsApi.createDestinationConnector({ + organizationId: testContext.orgId, + createDestinationConnectorRequest: { + name: "from api", + type: "PINECONE", + config: {"api-key": "sk"} + } }); - const connectorId = sourceResponse.connectors[0].id; - await connectorsApi.updateDestinationConnector({ - organization: testContext.orgId, - destinationConnectorId: connectorId, - updateDestinationConnectorRequest: { - config: {"api-key": "sk"} - } + const connectorId = sourceResponse.connector.id; + + /* ENG-2651 + await destinationConnectorsApi.updateDestinationConnector({ + organizationId: testContext.orgId, + destinationConnectorId: connectorId, + updateDestinationConnectorRequest: { + config: {"api-key": "sk"} } - ); - let connectors = await connectorsApi.getDestinationConnectors({ - organization: testContext.orgId + }); + */ + + // Get all destination connectors + let connectors = await destinationConnectorsApi.getDestinationConnectors({ + organizationId: testContext.orgId }); expect(connectors.destinationConnectors.find(c => c.id === connectorId)).toBeTruthy() - const read = await connectorsApi.getDestinationConnector({ - organization: testContext.orgId, + // Get single destination connector + const read = await destinationConnectorsApi.getDestinationConnector({ + organizationId: testContext.orgId, destinationConnectorId: connectorId }) console.log(read) expect(read.name).toBe("from api") let configDoc = read.configDoc; + // API key should be redacted/empty in response expect(Object.keys(configDoc!).length).toBe(0) expect(read.createdAt).toBeTruthy() - await connectorsApi.deleteDestinationConnector({ - organization: testContext.orgId, + + // Delete destination connector + await destinationConnectorsApi.deleteDestinationConnector({ + organizationId: testContext.orgId, destinationConnectorId: connectorId }) - connectors = await connectorsApi.getDestinationConnectors({ - organization: testContext.orgId + + // Verify deletion + connectors = await destinationConnectorsApi.getDestinationConnectors({ + organizationId: testContext.orgId }); expect(connectors.destinationConnectors.find(c => c.id === connectorId)).toBeFalsy() @@ -223,5 +266,4 @@ describe("connector", () => { throw error } }, 120000); - -}); +}); \ No newline at end of file diff --git a/tests/ts/tests/extraction.test.ts b/tests/ts/tests/extraction.test.ts index 1035464..71ae774 100644 --- a/tests/ts/tests/extraction.test.ts +++ b/tests/ts/tests/extraction.test.ts @@ -15,7 +15,7 @@ describe("extraction", () => { try { const startResponse = await new FilesApi(testContext.configuration) .startFileUpload({ - organization: testContext.orgId, + organizationId: testContext.orgId, startFileUploadRequest: { name: "test", contentType: "application/pdf" @@ -35,7 +35,7 @@ describe("extraction", () => { } const response = await extractionApi.startExtraction({ - organization: testContext.orgId, + organizationId: testContext.orgId, startExtractionRequest: { fileId: startResponse.fileId, chunkSize: 512, @@ -54,7 +54,7 @@ describe("extraction", () => { async function pollExtraction(extractionApi: ExtractionApi, extractionId: string) { while (true) { const result = await extractionApi.getExtractionResult({ - organization: testContext.orgId, + organizationId: testContext.orgId, extractionId: extractionId }) if (result.ready) { diff --git a/tests/ts/tests/pipelines.test.ts b/tests/ts/tests/pipelines.test.ts index 2b74dd6..3bee750 100644 --- a/tests/ts/tests/pipelines.test.ts +++ b/tests/ts/tests/pipelines.test.ts @@ -1,7 +1,9 @@ import {beforeEach, describe, it, expect} from "vitest"; import {createTestContext, TestContext} from "./testContext"; import { - ConnectorsApi, + SourceConnectorsApi, + AIPlatformConnectorsApi, + DestinationConnectorsApi, type CreateSourceConnector, PipelinesApi, ResponseError, @@ -18,31 +20,34 @@ beforeEach(() => { testContext = createTestContext(); }); -async function findVectorizeDestinationConnector(connectorsApi: ConnectorsApi) { +async function findVectorizeDestinationConnector(connectorsApi: DestinationConnectorsApi) { let destinationResponse = await connectorsApi.getDestinationConnectors({ - organization: testContext.orgId + organizationId: 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 +async function findAIPlatformVectorizeConnector(aiPlatformConnectorsApi: AIPlatformConnectorsApi) { + let aiPlatformResponse = await aiPlatformConnectorsApi.getAIPlatformConnectors({ + organizationId: 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"]}} - ] +async function createWebCrawlerSource(sourceConnectorsApi: SourceConnectorsApi) { + let sourceResponse = await sourceConnectorsApi.createSourceConnector({ + organizationId: testContext.orgId, + createSourceConnectorRequest: { + type: SourceConnectorType.WebCrawler, + name: "from api", + config: {"seed-urls": ["https://docs.vectorize.io"]} + } }); - const sourceConnectorId = sourceResponse.connectors[0].id; - await connectorsApi.updateSourceConnector({ + const sourceConnectorId = sourceResponse.connector.id; + /* ENG-2651 + await sourceConnectorsApi.updateSourceConnector({ organization: testContext.orgId, sourceConnectorId, updateSourceConnectorRequest: { @@ -50,23 +55,24 @@ async function createWebCrawlerSource(connectorsApi: ConnectorsApi) { } } ); + */ return sourceConnectorId; } async function deployPipeline(pipelinesApi: PipelinesApi, sourceConnectorId: string, destinationConnectorId: string, aiPlatformId: string): Promise { return (await pipelinesApi.createPipeline({ - organization: testContext.orgId, + organizationId: testContext.orgId, pipelineConfigurationSchema: { pipelineName: "from api", sourceConnectors: [{id: sourceConnectorId, type: SourceConnectorType.WebCrawler, config: {}}], destinationConnector: { id: destinationConnectorId, - type: DestinationConnectorType.Vectorize, + type: DestinationConnectorType.VECTORIZE, config: {} }, aiPlatform: { id: aiPlatformId, - type: AIPlatformType.Vectorize, + type: AIPlatformType.VECTORIZE, config: {} }, schedule: {type: "manual"} @@ -77,46 +83,48 @@ async function deployPipeline(pipelinesApi: PipelinesApi, sourceConnectorId: str describe("pipelines", () => { it("verify pipeline lifecycle", async () => { - let connectorsApi = new ConnectorsApi(testContext.configuration); + let sourceConnectorsApi = new SourceConnectorsApi(testContext.configuration); + let destinationConnectorsApi = new DestinationConnectorsApi(testContext.configuration); + let aiPlatformConnectorsApi = new AIPlatformConnectorsApi(testContext.configuration); let pipelinesApi = new PipelinesApi(testContext.configuration); let pipelineId; try { - const sourceConnectorId = await createWebCrawlerSource(connectorsApi); + const sourceConnectorId = await createWebCrawlerSource(sourceConnectorsApi); console.log("created source", sourceConnectorId); - const aiPlatformId = await findAIPlatformVectorizeConnector(connectorsApi); - console.log("ai platform", aiPlatformId); + const aiPlatformConnectorId = await findAIPlatformVectorizeConnector(aiPlatformConnectorsApi); + console.log("ai platform", aiPlatformConnectorId); - const destinationConnectorId = await findVectorizeDestinationConnector(connectorsApi); + const destinationConnectorId = await findVectorizeDestinationConnector(destinationConnectorsApi); console.log("destinationConnectorId", destinationConnectorId); - pipelineId = await deployPipeline(pipelinesApi, sourceConnectorId, destinationConnectorId, aiPlatformId); + pipelineId = await deployPipeline(pipelinesApi, sourceConnectorId, destinationConnectorId, aiPlatformConnectorId); const events = await pipelinesApi.getPipelineEvents({ - organization: testContext.orgId, - pipeline: pipelineId + organizationId: testContext.orgId, + pipelineId: pipelineId }) console.log("events", events.data); const metrics = await pipelinesApi.getPipelineMetrics({ - organization: testContext.orgId, - pipeline: pipelineId + organizationId: testContext.orgId, + pipelineId: pipelineId }) console.log("metrics", metrics.data); await pipelinesApi.stopPipeline({ - organization: testContext.orgId, - pipeline: pipelineId + organizationId: testContext.orgId, + pipelineId: pipelineId }) await pipelinesApi.startPipeline({ - organization: testContext.orgId, - pipeline: pipelineId + organizationId: testContext.orgId, + pipelineId: pipelineId }) let response = await pipelinesApi.getPipelines({ - organization: testContext.orgId + organizationId: testContext.orgId }); console.log(response.data); const pipelines = response.data; @@ -130,8 +138,8 @@ describe("pipelines", () => { expect(found).toBe(true) let docs = await pipelinesApi.retrieveDocuments({ - organization: testContext.orgId, - pipeline: pipelineId, + organizationId: testContext.orgId, + pipelineId: pipelineId, retrieveDocumentsRequest: { question: "what is vectorize?", numResults: 5, @@ -146,8 +154,8 @@ describe("pipelines", () => { if (pipelineId) { try { await pipelinesApi.deletePipeline({ - organization: testContext.orgId, - pipeline: pipelineId + organizationId: testContext.orgId, + pipelineId: pipelineId }) } catch (error: any) { console.error("failed to delete pipeline", error?.response); diff --git a/tests/ts/tests/testContext.ts b/tests/ts/tests/testContext.ts index c290636..e7f46ae 100644 --- a/tests/ts/tests/testContext.ts +++ b/tests/ts/tests/testContext.ts @@ -6,13 +6,13 @@ export interface TestContext { } export function createTestContext(): TestContext { - const token = process.env.VECTORIZE_TOKEN + const token = process.env.VECTORIZE_API_KEY if (!token) { - throw new Error("VECTORIZE_TOKEN must be set"); + throw new Error("VECTORIZE_API_KEY must be set"); } - const orgId = process.env.VECTORIZE_ORG + const orgId = process.env.VECTORIZE_ORGANIZATION_ID if (!orgId) { - throw new Error("VECTORIZE_ORG must be set"); + throw new Error("VECTORIZE_ORGANIZATION_ID must be set"); } const env = process.env.VECTORIZE_ENV || "local" let host; diff --git a/tests/ts/tests/uploads.test.ts b/tests/ts/tests/uploads.test.ts index 0c46e65..775eabd 100644 --- a/tests/ts/tests/uploads.test.ts +++ b/tests/ts/tests/uploads.test.ts @@ -1,7 +1,7 @@ import {beforeEach, describe, it, expect} from "vitest"; import {createTestContext, TestContext} from "./testContext"; import { - ConnectorsApi, + SourceConnectorsApi, PipelinesApi, ResponseError, SourceConnectorType, @@ -17,32 +17,31 @@ beforeEach(() => { testContext = createTestContext(); }); -async function createFileUploadSource(connectorsApi: ConnectorsApi) { - let sourceResponse = await connectorsApi.createSourceConnector({ - organization: testContext.orgId, - createSourceConnector: [{ +async function createFileUploadSource(sourceConnectorsApi: SourceConnectorsApi) { + let sourceResponse = await sourceConnectorsApi.createSourceConnector({ + organizationId: testContext.orgId, + createSourceConnectorRequest: { type: SourceConnectorType.FileUpload, name: "from api", - config: {} - }] + } }); - const sourceConnectorId = sourceResponse.connectors[0].id; + const sourceConnectorId = sourceResponse.connector.id; return sourceConnectorId; } describe("uploads", () => { it("verify uploads lifecycle", async () => { - let connectorsApi = new ConnectorsApi(testContext.configuration); + let sourceConnectorsApi = new SourceConnectorsApi(testContext.configuration); let uploadsApi = new UploadsApi(testContext.configuration); try { - const sourceConnectorId = await createFileUploadSource(connectorsApi); + const sourceConnectorId = await createFileUploadSource(sourceConnectorsApi); console.log("created source", sourceConnectorId); const fileBuffer = fs.readFileSync("tests/research.pdf"); const uploadResponse = await uploadsApi.startFileUploadToConnector({ - organization: testContext.orgId, + organizationId: testContext.orgId, connectorId: sourceConnectorId, startFileUploadToConnectorRequest: { name: "research.pdf", @@ -63,7 +62,7 @@ describe("uploads", () => { } let files = await uploadsApi.getUploadFilesFromConnector({ - organization: testContext.orgId, + organizationId: testContext.orgId, connectorId: sourceConnectorId }); console.log(files.files) From 31ffca54a8703e9b9127693edf6a104301868454 Mon Sep 17 00:00:00 2001 From: Jamie Ferguson Date: Thu, 3 Jul 2025 14:51:05 -0600 Subject: [PATCH 05/11] Updated version in the OpenAPI spec. --- vectorize_api.json | 15030 ++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 15029 insertions(+), 1 deletion(-) diff --git a/vectorize_api.json b/vectorize_api.json index e6e6ac9..64c7a58 100644 --- a/vectorize_api.json +++ b/vectorize_api.json @@ -1 +1,15029 @@ -{"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"]},"AdvancedQuery":{"type":"object","properties":{"mode":{"type":"string","enum":["text","vector","hybrid"], "default":"vector"},"text-fields":{"type":"array","items":{"type":"string"}},"match-type":{"type":"string","enum":["match","match_phrase","multi_match"]},"text-boost": {"type": "number", "format": "float", "default": 1.0},"filters": {"type": "object", "additionalProperties": true}},"additionalProperties": false},"SourceConnectorType":{"type":"string","enum":["AWS_S3","AZURE_BLOB","CONFLUENCE","DISCORD","DROPBOX","GOOGLE_DRIVE_OAUTH","GOOGLE_DRIVE","GOOGLE_DRIVE_OAUTH_MULTI","GOOGLE_DRIVE_OAUTH_MULTI_CUSTOM","FIRECRAWL","GCS","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","SUPABASE","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"},"advanced-query":{"$ref":"#/components/schemas/AdvancedQuery"}},"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"},"MetadataExtractionStrategySchema":{"type":"object","properties":{"id":{"type":"string"},"schema":{"type":"string"}},"required":["id","schema"]},"MetadataExtractionStrategy":{"type":"object","properties":{"schemas":{"type":"array","items":{"$ref":"#/components/schemas/MetadataExtractionStrategySchema"}},"inferSchema":{"type":"boolean"}}},"StartExtractionRequest":{"type":"object","properties":{"fileId":{"type":"string"},"type":{"$ref":"#/components/schemas/ExtractionType"},"chunkingStrategy":{"$ref":"#/components/schemas/ExtractionChunkingStrategy"},"chunkSize":{"type":"number","default":256},"metadata":{"$ref":"#/components/schemas/MetadataExtractionStrategy"}},"required":["fileId"]},"ExtractionResult":{"type":"object","properties":{"success":{"type":"boolean"},"chunks":{"type":"array","items":{"type":"string"}},"text":{"type":"string"},"metadata":{"type":"string"},"metadataSchema":{"type":"string"},"chunksMetadata":{"type":"array","items":{"type":"string"}},"chunksSchema":{"type":"array","items":{"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"},"selectedFiles":{"type":"object","additionalProperties":{"type":"object","properties":{"name":{"type":"string"},"mimeType":{"type":"string"}},"required":["name","mimeType"]}},"refreshToken":{"type":"string"}},"required":["userId","selectedFiles","refreshToken"]},"UpdateUserInSourceConnectorResponse":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]},"UpdateUserInSourceConnectorRequest":{"type":"object","properties":{"userId":{"type":"string"},"selectedFiles":{"type":"object","additionalProperties":{"type":"object","properties":{"name":{"type":"string"},"mimeType":{"type":"string"}},"required":["name","mimeType"]}},"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 from these folders (optional) (path-prefix): array oftext) | Google Drive OAuth (GOOGLE_DRIVE_OAUTH): \nPolling Interval (seconds) (idle-time): number) | Google Drive (Service Account) (GOOGLE_DRIVE): \nRestrict ingest to these folder URLs (optional) (root-parents): array oftext, Polling Interval (seconds) (idle-time): number) | Google Drive Multi-User (Vectorize) (GOOGLE_DRIVE_OAUTH_MULTI): \nPolling Interval (seconds) (idle-time): number) | Google Drive Multi-User (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) | 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) | Supabase (SUPABASE): \nTable Name (table): 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 (Service Account) (GOOGLE_DRIVE): \nName (name): text, Service Account JSON (service-account-json): textarea) | Google Drive Multi-User (Vectorize) (GOOGLE_DRIVE_OAUTH_MULTI): \nName (name): text) | Google Drive Multi-User (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) | 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) | Supabase (SUPABASE): \nName (name): text, Host (host): text, Port (port): number, Database (database): text, Username (username): text, Password (password): 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 +{ + "openapi": "3.0.0", + "info": { + "title": "Vectorize API", + "version": "0.1.0", + "description": "API for Vectorize services (Beta)", + "contact": { + "name": "Vectorize", + "url": "https://vectorize.io" + }, + "x-release-date": "2025-07-03" + }, + "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", + "DROPBOX_OAUTH", + "DROPBOX_OAUTH_MULTI", + "DROPBOX_OAUTH_MULTI_CUSTOM", + "FILE_UPLOAD", + "GOOGLE_DRIVE_OAUTH", + "GOOGLE_DRIVE", + "GOOGLE_DRIVE_OAUTH_MULTI", + "GOOGLE_DRIVE_OAUTH_MULTI_CUSTOM", + "FIRECRAWL", + "GCS", + "INTERCOM", + "NOTION", + "NOTION_OAUTH_MULTI", + "NOTION_OAUTH_MULTI_CUSTOM", + "ONE_DRIVE", + "SHAREPOINT", + "WEB_CRAWLER", + "GITHUB", + "FIREFLIES", + "GMAIL" + ] + }, + "SourceConnectorSchema": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + }, + "type": { + "$ref": "#/components/schemas/SourceConnectorType" + }, + "config": { + "type": "object", + "additionalProperties": { + "nullable": true + } + } + }, + "required": [ + "id", + "type", + "config" + ], + "additionalProperties": false + }, + "DestinationConnectorTypeForPipeline": { + "type": "string", + "enum": [ + "CAPELLA", + "DATASTAX", + "ELASTIC", + "PINECONE", + "SINGLESTORE", + "MILVUS", + "POSTGRESQL", + "QDRANT", + "SUPABASE", + "WEAVIATE", + "AZUREAISEARCH", + "TURBOPUFFER", + "VECTORIZE" + ] + }, + "DestinationConnectorSchema": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + }, + "type": { + "$ref": "#/components/schemas/DestinationConnectorTypeForPipeline" + }, + "config": { + "type": "object", + "additionalProperties": { + "nullable": true + } + } + }, + "required": [ + "id", + "type" + ], + "additionalProperties": false + }, + "AIPlatformTypeForPipeline": { + "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_VOYAGE_AI_35", + "VECTORIZE_VOYAGE_AI_35_LITE", + "VECTORIZE_VOYAGE_AI_CODE_3", + "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", + "VOYAGE_AI_35", + "VOYAGE_AI_35_LITE", + "VOYAGE_AI_CODE_3", + "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 + }, + "AIPlatformConnectorSchema": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + }, + "type": { + "$ref": "#/components/schemas/AIPlatformTypeForPipeline" + }, + "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": { + "$ref": "#/components/schemas/PipelineSourceConnectorRequest" + }, + "destinationConnector": { + "$ref": "#/components/schemas/PipelineDestinationConnectorRequest" + }, + "aiPlatform": { + "$ref": "#/components/schemas/AIPlatformConnectorSchema" + }, + "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" + ] + }, + "AdvancedQuery": { + "type": "object", + "properties": { + "mode": { + "type": "string", + "enum": [ + "text", + "vector", + "hybrid" + ], + "default": "vector" + }, + "text-fields": { + "type": "array", + "items": { + "type": "string" + } + }, + "match-type": { + "type": "string", + "enum": [ + "match", + "match_phrase", + "multi_match" + ] + }, + "text-boost": { + "type": "number", + "default": 1 + }, + "filters": { + "type": "object", + "additionalProperties": { + "nullable": true + } + } + }, + "additionalProperties": true + }, + "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" + }, + "advanced-query": { + "$ref": "#/components/schemas/AdvancedQuery" + } + }, + "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" + }, + "connector": { + "$ref": "#/components/schemas/CreatedSourceConnector" + } + }, + "required": [ + "message", + "connector" + ] + }, + "CreateSourceConnectorRequest": { + "oneOf": [ + { + "type": "object", + "title": "AwsS3", + "required": [ + "name", + "type", + "config" + ], + "properties": { + "name": { + "type": "string", + "description": "Name of the connector" + }, + "type": { + "type": "string", + "enum": [ + "AWS_S3" + ], + "description": "Connector type (must be \"AWS_S3\")" + }, + "config": { + "$ref": "#/components/schemas/AWS_S3Config" + } + }, + "example": { + "name": "Amazon S3 Example", + "type": "AWS_S3", + "config": { + "access-key": "example-access-key", + "secret-key": "example-secret-key", + "bucket-name": "example-bucket-name", + "region": "example-region", + "archiver": false + } + } + }, + { + "type": "object", + "title": "AzureBlob", + "required": [ + "name", + "type", + "config" + ], + "properties": { + "name": { + "type": "string", + "description": "Name of the connector" + }, + "type": { + "type": "string", + "enum": [ + "AZURE_BLOB" + ], + "description": "Connector type (must be \"AZURE_BLOB\")" + }, + "config": { + "$ref": "#/components/schemas/AZURE_BLOBConfig" + } + }, + "example": { + "name": "Azure Blob Storage Example", + "type": "AZURE_BLOB", + "config": { + "storage-account-name": "example-storage-account-name", + "storage-account-key": "example-storage-account-key", + "container": "example-container" + } + } + }, + { + "type": "object", + "title": "Confluence", + "required": [ + "name", + "type", + "config" + ], + "properties": { + "name": { + "type": "string", + "description": "Name of the connector" + }, + "type": { + "type": "string", + "enum": [ + "CONFLUENCE" + ], + "description": "Connector type (must be \"CONFLUENCE\")" + }, + "config": { + "$ref": "#/components/schemas/CONFLUENCEConfig" + } + }, + "example": { + "name": "Confluence Example", + "type": "CONFLUENCE", + "config": { + "username": "example-username", + "api-token": "example-api-token", + "domain": "example-domain" + } + } + }, + { + "type": "object", + "title": "Discord", + "required": [ + "name", + "type", + "config" + ], + "properties": { + "name": { + "type": "string", + "description": "Name of the connector" + }, + "type": { + "type": "string", + "enum": [ + "DISCORD" + ], + "description": "Connector type (must be \"DISCORD\")" + }, + "config": { + "$ref": "#/components/schemas/DISCORDConfig" + } + }, + "example": { + "name": "Discord Example", + "type": "DISCORD", + "config": { + "server-id": "example-server-id", + "bot-token": "example-bot-token", + "channel-ids": "example-channel-ids" + } + } + }, + { + "type": "object", + "title": "FileUpload", + "required": [ + "name", + "type" + ], + "properties": { + "name": { + "type": "string", + "description": "Name of the connector" + }, + "type": { + "type": "string", + "enum": [ + "FILE_UPLOAD" + ], + "description": "Connector type (must be \"FILE_UPLOAD\")" + } + }, + "example": { + "name": "File Upload Example", + "type": "FILE_UPLOAD" + } + }, + { + "type": "object", + "title": "GoogleDrive", + "required": [ + "name", + "type", + "config" + ], + "properties": { + "name": { + "type": "string", + "description": "Name of the connector" + }, + "type": { + "type": "string", + "enum": [ + "GOOGLE_DRIVE" + ], + "description": "Connector type (must be \"GOOGLE_DRIVE\")" + }, + "config": { + "$ref": "#/components/schemas/GOOGLE_DRIVEConfig" + } + }, + "example": { + "name": "Google Drive (Service Account) Example", + "type": "GOOGLE_DRIVE", + "config": { + "service-account-json": "example-service-account-json" + } + } + }, + { + "type": "object", + "title": "Firecrawl", + "required": [ + "name", + "type", + "config" + ], + "properties": { + "name": { + "type": "string", + "description": "Name of the connector" + }, + "type": { + "type": "string", + "enum": [ + "FIRECRAWL" + ], + "description": "Connector type (must be \"FIRECRAWL\")" + }, + "config": { + "$ref": "#/components/schemas/FIRECRAWLConfig" + } + }, + "example": { + "name": "Firecrawl Example", + "type": "FIRECRAWL", + "config": { + "api-key": "example-api-key" + } + } + }, + { + "type": "object", + "title": "Gcs", + "required": [ + "name", + "type", + "config" + ], + "properties": { + "name": { + "type": "string", + "description": "Name of the connector" + }, + "type": { + "type": "string", + "enum": [ + "GCS" + ], + "description": "Connector type (must be \"GCS\")" + }, + "config": { + "$ref": "#/components/schemas/GCSConfig" + } + }, + "example": { + "name": "GCP Cloud Storage Example", + "type": "GCS", + "config": { + "service-account-json": "example-service-account-json", + "bucket-name": "example-bucket-name" + } + } + }, + { + "type": "object", + "title": "OneDrive", + "required": [ + "name", + "type", + "config" + ], + "properties": { + "name": { + "type": "string", + "description": "Name of the connector" + }, + "type": { + "type": "string", + "enum": [ + "ONE_DRIVE" + ], + "description": "Connector type (must be \"ONE_DRIVE\")" + }, + "config": { + "$ref": "#/components/schemas/ONE_DRIVEConfig" + } + }, + "example": { + "name": "OneDrive Example", + "type": "ONE_DRIVE", + "config": { + "ms-client-id": "example-ms-client-id", + "ms-tenant-id": "example-ms-tenant-id", + "ms-client-secret": "example-ms-client-secret", + "users": "example-users" + } + } + }, + { + "type": "object", + "title": "Sharepoint", + "required": [ + "name", + "type", + "config" + ], + "properties": { + "name": { + "type": "string", + "description": "Name of the connector" + }, + "type": { + "type": "string", + "enum": [ + "SHAREPOINT" + ], + "description": "Connector type (must be \"SHAREPOINT\")" + }, + "config": { + "$ref": "#/components/schemas/SHAREPOINTConfig" + } + }, + "example": { + "name": "SharePoint Example", + "type": "SHAREPOINT", + "config": { + "ms-client-id": "example-ms-client-id", + "ms-tenant-id": "example-ms-tenant-id", + "ms-client-secret": "example-ms-client-secret" + } + } + }, + { + "type": "object", + "title": "WebCrawler", + "required": [ + "name", + "type", + "config" + ], + "properties": { + "name": { + "type": "string", + "description": "Name of the connector" + }, + "type": { + "type": "string", + "enum": [ + "WEB_CRAWLER" + ], + "description": "Connector type (must be \"WEB_CRAWLER\")" + }, + "config": { + "$ref": "#/components/schemas/WEB_CRAWLERConfig" + } + }, + "example": { + "name": "Web Crawler Example", + "type": "WEB_CRAWLER", + "config": {} + } + }, + { + "type": "object", + "title": "Github", + "required": [ + "name", + "type", + "config" + ], + "properties": { + "name": { + "type": "string", + "description": "Name of the connector" + }, + "type": { + "type": "string", + "enum": [ + "GITHUB" + ], + "description": "Connector type (must be \"GITHUB\")" + }, + "config": { + "$ref": "#/components/schemas/GITHUBConfig" + } + }, + "example": { + "name": "GitHub Example", + "type": "GITHUB", + "config": { + "oauth-token": "example-oauth-token" + } + } + }, + { + "type": "object", + "title": "Fireflies", + "required": [ + "name", + "type", + "config" + ], + "properties": { + "name": { + "type": "string", + "description": "Name of the connector" + }, + "type": { + "type": "string", + "enum": [ + "FIREFLIES" + ], + "description": "Connector type (must be \"FIREFLIES\")" + }, + "config": { + "$ref": "#/components/schemas/FIREFLIESConfig" + } + }, + "example": { + "name": "Fireflies.ai Example", + "type": "FIREFLIES", + "config": { + "api-key": "example-api-key" + } + } + } + ], + "discriminator": { + "propertyName": "type" + } + }, + "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": { + "oneOf": [ + { + "type": "object", + "title": "AwsS3", + "properties": { + "config": { + "$ref": "#/components/schemas/AWS_S3Config" + } + }, + "example": { + "config": { + "access-key": "Enter Access Key", + "secret-key": "Enter Secret Key", + "bucket-name": "Enter your S3 Bucket Name", + "endpoint": "Enter Endpoint URL", + "region": "Region Name", + "archiver": false + } + } + }, + { + "type": "object", + "title": "AzureBlob", + "properties": { + "config": { + "$ref": "#/components/schemas/AZURE_BLOBConfig" + } + }, + "example": { + "config": { + "storage-account-name": "Enter Storage Account Name", + "storage-account-key": "Enter Storage Account Key", + "container": "Enter Container Name", + "endpoint": "Enter Endpoint URL" + } + } + }, + { + "type": "object", + "title": "Confluence", + "properties": { + "config": { + "$ref": "#/components/schemas/CONFLUENCEConfig" + } + }, + "example": { + "config": { + "username": "Enter your Confluence username", + "api-token": "Enter your Confluence API token", + "domain": "Enter your Confluence domain (e.g. my-domain.atlassian.net or confluence..com)" + } + } + }, + { + "type": "object", + "title": "Discord", + "properties": { + "config": { + "$ref": "#/components/schemas/DISCORDConfig" + } + }, + "example": { + "config": { + "server-id": "Enter Server ID", + "bot-token": "Enter Token", + "channel-ids": "Enter channel ID" + } + } + }, + { + "type": "object", + "title": "Dropbox", + "properties": { + "config": { + "$ref": "#/components/schemas/DROPBOXConfig" + } + }, + "example": { + "config": {} + } + }, + { + "type": "object", + "title": "DropboxOauth", + "properties": { + "config": { + "$ref": "#/components/schemas/DROPBOX_OAUTHAuthConfig" + } + }, + "example": { + "config": {} + } + }, + { + "type": "object", + "title": "DropboxOauthMulti", + "properties": { + "config": { + "$ref": "#/components/schemas/DROPBOX_OAUTH_MULTIAuthConfig" + } + }, + "example": { + "config": {} + } + }, + { + "type": "object", + "title": "DropboxOauthMultiCustom", + "properties": { + "config": { + "$ref": "#/components/schemas/DROPBOX_OAUTH_MULTI_CUSTOMAuthConfig" + } + }, + "example": { + "config": {} + } + }, + { + "type": "object", + "title": "FileUpload", + "properties": { + "config": { + "$ref": "#/components/schemas/FILE_UPLOADAuthConfig" + } + }, + "example": {} + }, + { + "type": "object", + "title": "GoogleDriveOauth", + "properties": { + "config": { + "$ref": "#/components/schemas/GOOGLE_DRIVE_OAUTHConfig" + } + }, + "example": { + "config": {} + } + }, + { + "type": "object", + "title": "GoogleDrive", + "properties": { + "config": { + "$ref": "#/components/schemas/GOOGLE_DRIVEConfig" + } + }, + "example": { + "config": { + "service-account-json": "Enter the JSON key file for the service account" + } + } + }, + { + "type": "object", + "title": "GoogleDriveOauthMulti", + "properties": { + "config": { + "$ref": "#/components/schemas/GOOGLE_DRIVE_OAUTH_MULTIConfig" + } + }, + "example": { + "config": {} + } + }, + { + "type": "object", + "title": "GoogleDriveOauthMultiCustom", + "properties": { + "config": { + "$ref": "#/components/schemas/GOOGLE_DRIVE_OAUTH_MULTI_CUSTOMConfig" + } + }, + "example": { + "config": {} + } + }, + { + "type": "object", + "title": "Firecrawl", + "properties": { + "config": { + "$ref": "#/components/schemas/FIRECRAWLConfig" + } + }, + "example": { + "config": { + "api-key": "Enter your Firecrawl API Key" + } + } + }, + { + "type": "object", + "title": "Gcs", + "properties": { + "config": { + "$ref": "#/components/schemas/GCSConfig" + } + }, + "example": { + "config": { + "service-account-json": "Enter the JSON key file for the service account", + "bucket-name": "Enter bucket name" + } + } + }, + { + "type": "object", + "title": "Intercom", + "properties": { + "config": { + "$ref": "#/components/schemas/INTERCOMConfig" + } + }, + "example": { + "config": {} + } + }, + { + "type": "object", + "title": "Notion", + "properties": { + "config": { + "$ref": "#/components/schemas/NOTIONConfig" + } + }, + "example": { + "config": {} + } + }, + { + "type": "object", + "title": "NotionOauthMulti", + "properties": { + "config": { + "$ref": "#/components/schemas/NOTION_OAUTH_MULTIAuthConfig" + } + }, + "example": { + "config": {} + } + }, + { + "type": "object", + "title": "NotionOauthMultiCustom", + "properties": { + "config": { + "$ref": "#/components/schemas/NOTION_OAUTH_MULTI_CUSTOMAuthConfig" + } + }, + "example": { + "config": {} + } + }, + { + "type": "object", + "title": "OneDrive", + "properties": { + "config": { + "$ref": "#/components/schemas/ONE_DRIVEConfig" + } + }, + "example": { + "config": { + "ms-client-id": "Enter Client Id", + "ms-tenant-id": "Enter Tenant Id", + "ms-client-secret": "Enter Client Secret", + "users": "Enter users emails to import files from. Example: developer@vectorize.io" + } + } + }, + { + "type": "object", + "title": "Sharepoint", + "properties": { + "config": { + "$ref": "#/components/schemas/SHAREPOINTConfig" + } + }, + "example": { + "config": { + "ms-client-id": "Enter Client Id", + "ms-tenant-id": "Enter Tenant Id", + "ms-client-secret": "Enter Client Secret" + } + } + }, + { + "type": "object", + "title": "WebCrawler", + "properties": { + "config": { + "$ref": "#/components/schemas/WEB_CRAWLERConfig" + } + }, + "example": { + "config": { + "seed-urls": "(e.g. https://example.com)" + } + } + }, + { + "type": "object", + "title": "Github", + "properties": { + "config": { + "$ref": "#/components/schemas/GITHUBConfig" + } + }, + "example": { + "config": { + "oauth-token": "Enter your GitHub personal access token" + } + } + }, + { + "type": "object", + "title": "Fireflies", + "properties": { + "config": { + "$ref": "#/components/schemas/FIREFLIESConfig" + } + }, + "example": { + "config": { + "api-key": "Enter your Fireflies.ai API key" + } + } + } + ] + }, + "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" + }, + "connector": { + "$ref": "#/components/schemas/CreatedDestinationConnector" + } + }, + "required": [ + "message", + "connector" + ] + }, + "DestinationConnectorType": { + "type": "string", + "enum": [ + "CAPELLA", + "DATASTAX", + "ELASTIC", + "PINECONE", + "SINGLESTORE", + "MILVUS", + "POSTGRESQL", + "QDRANT", + "SUPABASE", + "WEAVIATE", + "AZUREAISEARCH", + "TURBOPUFFER" + ] + }, + "CreateDestinationConnectorRequest": { + "oneOf": [ + { + "type": "object", + "title": "Capella", + "required": [ + "name", + "type", + "config" + ], + "properties": { + "name": { + "type": "string", + "description": "Name of the connector" + }, + "type": { + "type": "string", + "enum": [ + "CAPELLA" + ], + "description": "Connector type (must be \"CAPELLA\")" + }, + "config": { + "$ref": "#/components/schemas/CAPELLAConfig" + } + }, + "example": { + "name": "Couchbase Capella Example", + "type": "CAPELLA", + "config": { + "bucket": "example-bucket", + "scope": "example-scope", + "collection": "example-collection", + "index": "example-index" + } + } + }, + { + "type": "object", + "title": "Datastax", + "required": [ + "name", + "type", + "config" + ], + "properties": { + "name": { + "type": "string", + "description": "Name of the connector" + }, + "type": { + "type": "string", + "enum": [ + "DATASTAX" + ], + "description": "Connector type (must be \"DATASTAX\")" + }, + "config": { + "$ref": "#/components/schemas/DATASTAXConfig" + } + }, + "example": { + "name": "DataStax Astra Example", + "type": "DATASTAX", + "config": { + "collection": "example-collection" + } + } + }, + { + "type": "object", + "title": "Elastic", + "required": [ + "name", + "type", + "config" + ], + "properties": { + "name": { + "type": "string", + "description": "Name of the connector" + }, + "type": { + "type": "string", + "enum": [ + "ELASTIC" + ], + "description": "Connector type (must be \"ELASTIC\")" + }, + "config": { + "$ref": "#/components/schemas/ELASTICConfig" + } + }, + "example": { + "name": "Elasticsearch Example", + "type": "ELASTIC", + "config": { + "index": "example-index" + } + } + }, + { + "type": "object", + "title": "Pinecone", + "required": [ + "name", + "type", + "config" + ], + "properties": { + "name": { + "type": "string", + "description": "Name of the connector" + }, + "type": { + "type": "string", + "enum": [ + "PINECONE" + ], + "description": "Connector type (must be \"PINECONE\")" + }, + "config": { + "$ref": "#/components/schemas/PINECONEConfig" + } + }, + "example": { + "name": "Pinecone Example", + "type": "PINECONE", + "config": { + "index": "example-index", + "namespace": "example-namespace" + } + } + }, + { + "type": "object", + "title": "Singlestore", + "required": [ + "name", + "type", + "config" + ], + "properties": { + "name": { + "type": "string", + "description": "Name of the connector" + }, + "type": { + "type": "string", + "enum": [ + "SINGLESTORE" + ], + "description": "Connector type (must be \"SINGLESTORE\")" + }, + "config": { + "$ref": "#/components/schemas/SINGLESTOREConfig" + } + }, + "example": { + "name": "SingleStore Example", + "type": "SINGLESTORE", + "config": { + "table": "example-table" + } + } + }, + { + "type": "object", + "title": "Milvus", + "required": [ + "name", + "type", + "config" + ], + "properties": { + "name": { + "type": "string", + "description": "Name of the connector" + }, + "type": { + "type": "string", + "enum": [ + "MILVUS" + ], + "description": "Connector type (must be \"MILVUS\")" + }, + "config": { + "$ref": "#/components/schemas/MILVUSConfig" + } + }, + "example": { + "name": "Milvus Example", + "type": "MILVUS", + "config": { + "collection": "example-collection" + } + } + }, + { + "type": "object", + "title": "Postgresql", + "required": [ + "name", + "type", + "config" + ], + "properties": { + "name": { + "type": "string", + "description": "Name of the connector" + }, + "type": { + "type": "string", + "enum": [ + "POSTGRESQL" + ], + "description": "Connector type (must be \"POSTGRESQL\")" + }, + "config": { + "$ref": "#/components/schemas/POSTGRESQLConfig" + } + }, + "example": { + "name": "PostgreSQL Example", + "type": "POSTGRESQL", + "config": { + "table": "example-table" + } + } + }, + { + "type": "object", + "title": "Qdrant", + "required": [ + "name", + "type", + "config" + ], + "properties": { + "name": { + "type": "string", + "description": "Name of the connector" + }, + "type": { + "type": "string", + "enum": [ + "QDRANT" + ], + "description": "Connector type (must be \"QDRANT\")" + }, + "config": { + "$ref": "#/components/schemas/QDRANTConfig" + } + }, + "example": { + "name": "Qdrant Example", + "type": "QDRANT", + "config": { + "collection": "example-collection" + } + } + }, + { + "type": "object", + "title": "Supabase", + "required": [ + "name", + "type", + "config" + ], + "properties": { + "name": { + "type": "string", + "description": "Name of the connector" + }, + "type": { + "type": "string", + "enum": [ + "SUPABASE" + ], + "description": "Connector type (must be \"SUPABASE\")" + }, + "config": { + "$ref": "#/components/schemas/SUPABASEConfig" + } + }, + "example": { + "name": "Supabase Example", + "type": "SUPABASE", + "config": { + "table": "example-table" + } + } + }, + { + "type": "object", + "title": "Weaviate", + "required": [ + "name", + "type", + "config" + ], + "properties": { + "name": { + "type": "string", + "description": "Name of the connector" + }, + "type": { + "type": "string", + "enum": [ + "WEAVIATE" + ], + "description": "Connector type (must be \"WEAVIATE\")" + }, + "config": { + "$ref": "#/components/schemas/WEAVIATEConfig" + } + }, + "example": { + "name": "Weaviate Example", + "type": "WEAVIATE", + "config": { + "collection": "example-collection" + } + } + }, + { + "type": "object", + "title": "Azureaisearch", + "required": [ + "name", + "type", + "config" + ], + "properties": { + "name": { + "type": "string", + "description": "Name of the connector" + }, + "type": { + "type": "string", + "enum": [ + "AZUREAISEARCH" + ], + "description": "Connector type (must be \"AZUREAISEARCH\")" + }, + "config": { + "$ref": "#/components/schemas/AZUREAISEARCHConfig" + } + }, + "example": { + "name": "Azure AI Search Example", + "type": "AZUREAISEARCH", + "config": { + "index": "example-index" + } + } + }, + { + "type": "object", + "title": "Turbopuffer", + "required": [ + "name", + "type", + "config" + ], + "properties": { + "name": { + "type": "string", + "description": "Name of the connector" + }, + "type": { + "type": "string", + "enum": [ + "TURBOPUFFER" + ], + "description": "Connector type (must be \"TURBOPUFFER\")" + }, + "config": { + "$ref": "#/components/schemas/TURBOPUFFERConfig" + } + }, + "example": { + "name": "Turbopuffer Example", + "type": "TURBOPUFFER", + "config": { + "namespace": "example-namespace" + } + } + } + ], + "discriminator": { + "propertyName": "type" + } + }, + "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": { + "oneOf": [ + { + "type": "object", + "title": "Capella", + "properties": { + "config": { + "$ref": "#/components/schemas/CAPELLAConfig" + } + }, + "example": { + "config": { + "username": "Enter your cluster access name", + "password": "Enter your cluster access password", + "connection-string": "Enter your connection string" + } + } + }, + { + "type": "object", + "title": "Datastax", + "properties": { + "config": { + "$ref": "#/components/schemas/DATASTAXConfig" + } + }, + "example": { + "config": { + "endpoint_secret": "Enter your API endpoint", + "token": "Enter your application token" + } + } + }, + { + "type": "object", + "title": "Elastic", + "properties": { + "config": { + "$ref": "#/components/schemas/ELASTICConfig" + } + }, + "example": { + "config": { + "host": "Enter your host", + "port": "Enter your port", + "api-key": "Enter your API key" + } + } + }, + { + "type": "object", + "title": "Pinecone", + "properties": { + "config": { + "$ref": "#/components/schemas/PINECONEConfig" + } + }, + "example": { + "config": { + "api-key": "Enter your API Key" + } + } + }, + { + "type": "object", + "title": "Singlestore", + "properties": { + "config": { + "$ref": "#/components/schemas/SINGLESTOREConfig" + } + }, + "example": { + "config": { + "host": "Enter the host of the deployment", + "port": 100, + "database": "Enter the database name", + "username": "Enter the username", + "password": "Enter the username's password" + } + } + }, + { + "type": "object", + "title": "Milvus", + "properties": { + "config": { + "$ref": "#/components/schemas/MILVUSConfig" + } + }, + "example": { + "config": { + "url": "Enter your public endpoint for your Milvus cluster", + "token": "Enter your cluster token or Username/Password", + "username": "Enter your cluster Username", + "password": "Enter your cluster Password" + } + } + }, + { + "type": "object", + "title": "Postgresql", + "properties": { + "config": { + "$ref": "#/components/schemas/POSTGRESQLConfig" + } + }, + "example": { + "config": { + "host": "Enter the host of the deployment", + "port": 5432, + "database": "Enter the database name", + "username": "Enter the username", + "password": "Enter the username's password" + } + } + }, + { + "type": "object", + "title": "Qdrant", + "properties": { + "config": { + "$ref": "#/components/schemas/QDRANTConfig" + } + }, + "example": { + "config": { + "host": "Enter your host", + "api-key": "Enter your API key" + } + } + }, + { + "type": "object", + "title": "Supabase", + "properties": { + "config": { + "$ref": "#/components/schemas/SUPABASEConfig" + } + }, + "example": { + "config": { + "host": "aws-0-us-east-1.pooler.supabase.com", + "port": 5432, + "database": "Enter the database name", + "username": "Enter the username", + "password": "Enter the username's password" + } + } + }, + { + "type": "object", + "title": "Weaviate", + "properties": { + "config": { + "$ref": "#/components/schemas/WEAVIATEConfig" + } + }, + "example": { + "config": { + "host": "Enter your Weaviate Cluster REST Endpoint", + "api-key": "Enter your API key" + } + } + }, + { + "type": "object", + "title": "Azureaisearch", + "properties": { + "config": { + "$ref": "#/components/schemas/AZUREAISEARCHConfig" + } + }, + "example": { + "config": { + "service-name": "Enter your Azure AI Search service name", + "api-key": "Enter your API key" + } + } + }, + { + "type": "object", + "title": "Turbopuffer", + "properties": { + "config": { + "$ref": "#/components/schemas/TURBOPUFFERConfig" + } + }, + "example": { + "config": { + "api-key": "Enter your API key" + } + } + } + ] + }, + "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" + }, + "connector": { + "$ref": "#/components/schemas/CreatedAIPlatformConnector" + } + }, + "required": [ + "message", + "connector" + ] + }, + "AIPlatformType": { + "type": "string", + "enum": [ + "BEDROCK", + "VERTEX", + "OPENAI", + "VOYAGE" + ] + }, + "CreateAIPlatformConnectorRequest": { + "oneOf": [ + { + "type": "object", + "title": "Bedrock", + "required": [ + "name", + "type", + "config" + ], + "properties": { + "name": { + "type": "string", + "description": "Name of the connector" + }, + "type": { + "type": "string", + "enum": [ + "BEDROCK" + ], + "description": "Connector type (must be \"BEDROCK\")" + }, + "config": { + "$ref": "#/components/schemas/BEDROCKAuthConfig" + } + }, + "example": { + "name": "Amazon Bedrock Example", + "type": "BEDROCK", + "config": { + "access-key": "example-access-key", + "key": "example-key" + } + } + }, + { + "type": "object", + "title": "Vertex", + "required": [ + "name", + "type", + "config" + ], + "properties": { + "name": { + "type": "string", + "description": "Name of the connector" + }, + "type": { + "type": "string", + "enum": [ + "VERTEX" + ], + "description": "Connector type (must be \"VERTEX\")" + }, + "config": { + "$ref": "#/components/schemas/VERTEXAuthConfig" + } + }, + "example": { + "name": "Google Vertex AI Example", + "type": "VERTEX", + "config": { + "key": "example-key", + "region": "example-region" + } + } + }, + { + "type": "object", + "title": "Openai", + "required": [ + "name", + "type", + "config" + ], + "properties": { + "name": { + "type": "string", + "description": "Name of the connector" + }, + "type": { + "type": "string", + "enum": [ + "OPENAI" + ], + "description": "Connector type (must be \"OPENAI\")" + }, + "config": { + "$ref": "#/components/schemas/OPENAIAuthConfig" + } + }, + "example": { + "name": "OpenAI Example", + "type": "OPENAI", + "config": { + "key": "example-key" + } + } + }, + { + "type": "object", + "title": "Voyage", + "required": [ + "name", + "type", + "config" + ], + "properties": { + "name": { + "type": "string", + "description": "Name of the connector" + }, + "type": { + "type": "string", + "enum": [ + "VOYAGE" + ], + "description": "Connector type (must be \"VOYAGE\")" + }, + "config": { + "$ref": "#/components/schemas/VOYAGEAuthConfig" + } + }, + "example": { + "name": "Voyage AI Example", + "type": "VOYAGE", + "config": { + "key": "example-key" + } + } + } + ], + "discriminator": { + "propertyName": "type" + } + }, + "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": { + "oneOf": [ + { + "type": "object", + "title": "Bedrock", + "properties": { + "config": { + "type": "object", + "description": "Configuration updates" + } + }, + "example": { + "config": {} + } + }, + { + "type": "object", + "title": "Vertex", + "properties": { + "config": { + "type": "object", + "description": "Configuration updates" + } + }, + "example": { + "config": {} + } + }, + { + "type": "object", + "title": "Openai", + "properties": { + "config": { + "type": "object", + "description": "Configuration updates" + } + }, + "example": { + "config": {} + } + }, + { + "type": "object", + "title": "Voyage", + "properties": { + "config": { + "type": "object", + "description": "Configuration updates" + } + }, + "example": { + "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": { + "nullable": true + } + } + }, + "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" + }, + "MetadataExtractionStrategySchema": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "schema": { + "type": "string" + } + }, + "required": [ + "id", + "schema" + ] + }, + "MetadataExtractionStrategy": { + "type": "object", + "properties": { + "schemas": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MetadataExtractionStrategySchema" + } + }, + "inferSchema": { + "type": "boolean" + } + } + }, + "StartExtractionRequest": { + "type": "object", + "properties": { + "fileId": { + "type": "string" + }, + "type": { + "$ref": "#/components/schemas/ExtractionType" + }, + "chunkingStrategy": { + "$ref": "#/components/schemas/ExtractionChunkingStrategy" + }, + "chunkSize": { + "type": "number", + "default": 256 + }, + "metadata": { + "$ref": "#/components/schemas/MetadataExtractionStrategy" + } + }, + "required": [ + "fileId" + ] + }, + "ExtractionResult": { + "type": "object", + "properties": { + "success": { + "type": "boolean" + }, + "chunks": { + "type": "array", + "items": { + "type": "string" + } + }, + "text": { + "type": "string" + }, + "metadata": { + "type": "string" + }, + "metadataSchema": { + "type": "string" + }, + "chunksMetadata": { + "type": "array", + "items": { + "type": "string" + } + }, + "chunksSchema": { + "type": "array", + "items": { + "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" + }, + "selectedFiles": { + "anyOf": [ + { + "type": "object", + "additionalProperties": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "mimeType": { + "type": "string" + } + }, + "required": [ + "name", + "mimeType" + ] + } + }, + { + "type": "object", + "properties": { + "pageIds": { + "type": "array", + "items": { + "type": "string" + } + }, + "databaseIds": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + ] + }, + "refreshToken": { + "type": "string" + }, + "accessToken": { + "type": "string" + } + }, + "required": [ + "userId", + "selectedFiles" + ] + }, + "UpdateUserInSourceConnectorResponse": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ] + }, + "UpdateUserInSourceConnectorRequest": { + "type": "object", + "properties": { + "userId": { + "type": "string" + }, + "selectedFiles": { + "anyOf": [ + { + "type": "object", + "additionalProperties": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "mimeType": { + "type": "string" + } + }, + "required": [ + "name", + "mimeType" + ] + } + }, + { + "type": "object", + "properties": { + "pageIds": { + "type": "array", + "items": { + "type": "string" + } + }, + "databaseIds": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + ] + }, + "refreshToken": { + "type": "string" + }, + "accessToken": { + "type": "string" + } + }, + "required": [ + "userId" + ] + }, + "RemoveUserFromSourceConnectorResponse": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ] + }, + "RemoveUserFromSourceConnectorRequest": { + "type": "object", + "properties": { + "userId": { + "type": "string" + } + }, + "required": [ + "userId" + ] + }, + "AWS_S3AuthConfig": { + "type": "object", + "description": "Authentication configuration for Amazon S3", + "properties": { + "name": { + "type": "string", + "description": "Name. Example: Enter a descriptive name" + }, + "access-key": { + "type": "string", + "format": "password", + "description": "Access Key. Example: Enter Access Key", + "pattern": "^\\S.*\\S$|^\\S$" + }, + "secret-key": { + "type": "string", + "format": "password", + "description": "Secret Key. Example: Enter Secret Key", + "pattern": "^\\S.*\\S$|^\\S$" + }, + "bucket-name": { + "type": "string", + "description": "Bucket Name. Example: Enter your S3 Bucket Name" + }, + "endpoint": { + "type": "string", + "description": "Endpoint. Example: Enter Endpoint URL" + }, + "region": { + "type": "string", + "description": "Region. Example: Region Name" + }, + "archiver": { + "type": "boolean", + "description": "Allow as archive destination", + "default": false + } + }, + "required": [ + "name", + "access-key", + "secret-key", + "bucket-name", + "archiver" + ] + }, + "AWS_S3Config": { + "type": "object", + "description": "Configuration for Amazon S3 connector", + "properties": { + "file-extensions": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "pdf", + "doc,docx,gdoc,odt,rtf,epub", + "ppt,pptx,gslides", + "xls,xlsx,gsheets,ods", + "eml,msg", + "txt", + "html,htm", + "md", + "json", + "csv", + "jpg,jpeg,png,webp,svg,gif" + ] + }, + "description": "File Extensions", + "default": [ + "pdf", + "doc", + "docx", + "gdoc", + "odt", + "rtf", + "epub", + "ppt", + "pptx", + "gslides", + "xls", + "xlsx", + "gsheets", + "ods", + "eml", + "msg", + "txt", + "html", + "htm", + "md", + "json", + "csv", + "jpg", + "jpeg", + "png", + "webp", + "svg", + "gif" + ], + "enum": [ + "pdf", + "doc,docx,gdoc,odt,rtf,epub", + "ppt,pptx,gslides", + "xls,xlsx,gsheets,ods", + "eml,msg", + "txt", + "html,htm", + "md", + "json", + "csv", + "jpg,jpeg,png,webp,svg,gif" + ] + }, + "idle-time": { + "type": "number", + "description": "Check for updates every (seconds)", + "minimum": 1, + "default": 5 + }, + "recursive": { + "type": "boolean", + "description": "Recursively scan all folders in the bucket" + }, + "path-prefix": { + "type": "string", + "description": "Path Prefix" + }, + "path-metadata-regex": { + "type": "string", + "description": "Path Metadata Regex" + }, + "path-regex-group-names": { + "type": "string", + "description": "Path Regex Group Names. Example: Enter Group Name" + } + }, + "required": [ + "file-extensions", + "idle-time" + ] + }, + "AZURE_BLOBAuthConfig": { + "type": "object", + "description": "Authentication configuration for Azure Blob Storage", + "properties": { + "name": { + "type": "string", + "description": "Name. Example: Enter a descriptive name" + }, + "storage-account-name": { + "type": "string", + "description": "Storage Account Name. Example: Enter Storage Account Name" + }, + "storage-account-key": { + "type": "string", + "format": "password", + "description": "Storage Account Key. Example: Enter Storage Account Key" + }, + "container": { + "type": "string", + "description": "Container. Example: Enter Container Name" + }, + "endpoint": { + "type": "string", + "description": "Endpoint. Example: Enter Endpoint URL" + } + }, + "required": [ + "name", + "storage-account-name", + "storage-account-key", + "container" + ] + }, + "AZURE_BLOBConfig": { + "type": "object", + "description": "Configuration for Azure Blob Storage connector", + "properties": { + "file-extensions": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "pdf", + "doc,docx,gdoc,odt,rtf,epub", + "ppt,pptx,gslides", + "xls,xlsx,gsheets,ods", + "eml,msg", + "txt", + "html,htm", + "md", + "json", + "csv", + "jpg,jpeg,png,webp,svg,gif" + ] + }, + "description": "File Extensions", + "default": [ + "pdf", + "doc", + "docx", + "gdoc", + "odt", + "rtf", + "epub", + "ppt", + "pptx", + "gslides", + "xls", + "xlsx", + "gsheets", + "ods", + "eml", + "msg", + "txt", + "html", + "htm", + "md", + "json", + "csv", + "jpg", + "jpeg", + "png", + "webp", + "svg", + "gif" + ], + "enum": [ + "pdf", + "doc,docx,gdoc,odt,rtf,epub", + "ppt,pptx,gslides", + "xls,xlsx,gsheets,ods", + "eml,msg", + "txt", + "html,htm", + "md", + "json", + "csv", + "jpg,jpeg,png,webp,svg,gif" + ] + }, + "idle-time": { + "type": "number", + "description": "Polling Interval (seconds)", + "minimum": 1, + "default": 5 + }, + "recursive": { + "type": "boolean", + "description": "Recursively scan all folders in the bucket" + }, + "path-prefix": { + "type": "string", + "description": "Path Prefix" + }, + "path-metadata-regex": { + "type": "string", + "description": "Path Metadata Regex" + }, + "path-regex-group-names": { + "type": "string", + "description": "Path Regex Group Names. Example: Enter Group Name" + } + }, + "required": [ + "file-extensions", + "idle-time" + ] + }, + "CONFLUENCEAuthConfig": { + "type": "object", + "description": "Authentication configuration for Confluence", + "properties": { + "name": { + "type": "string", + "description": "Name. Example: Enter a descriptive name" + }, + "username": { + "type": "string", + "description": "Username. Example: Enter your Confluence username" + }, + "api-token": { + "type": "string", + "format": "password", + "description": "API Token. Example: Enter your Confluence API token", + "pattern": "^\\S.*\\S$|^\\S$" + }, + "domain": { + "type": "string", + "description": "Domain. Example: Enter your Confluence domain (e.g. my-domain.atlassian.net or confluence..com)" + } + }, + "required": [ + "name", + "username", + "api-token", + "domain" + ] + }, + "CONFLUENCEConfig": { + "type": "object", + "description": "Configuration for Confluence connector", + "properties": { + "spaces": { + "type": "string", + "description": "Spaces. Example: Spaces to include (name, key or id)" + }, + "root-parents": { + "type": "string", + "description": "Root Parents. Example: Enter root parent pages" + } + }, + "required": [ + "spaces" + ] + }, + "DISCORDAuthConfig": { + "type": "object", + "description": "Authentication configuration for Discord", + "properties": { + "name": { + "type": "string", + "description": "Name. Example: Enter a descriptive name" + }, + "server-id": { + "type": "string", + "description": "Server ID. Example: Enter Server ID" + }, + "bot-token": { + "type": "string", + "format": "password", + "description": "Bot token. Example: Enter Token", + "pattern": "^\\S.*\\S$|^\\S$" + }, + "channel-ids": { + "type": "string", + "description": "Channel ID. Example: Enter channel ID" + } + }, + "required": [ + "name", + "server-id", + "bot-token", + "channel-ids" + ] + }, + "DISCORDConfig": { + "type": "object", + "description": "Configuration for Discord connector", + "properties": { + "emoji": { + "type": "string", + "description": "Emoji Filter. Example: Enter custom emoji filter name" + }, + "author": { + "type": "string", + "description": "Author Filter. Example: Enter author name" + }, + "ignore-author": { + "type": "string", + "description": "Ignore Author Filter. Example: Enter ignore author name" + }, + "limit": { + "type": "number", + "description": "Limit. Example: Enter limit", + "minimum": 1, + "default": 10000 + }, + "thread-message-inclusion": { + "type": "string", + "description": "Thread Message Inclusion", + "default": "ALL", + "enum": [ + "ALL", + "FILTER" + ] + }, + "filter-logic": { + "type": "string", + "description": "Filter Logic", + "default": "AND", + "enum": [ + "AND", + "OR" + ] + }, + "thread-message-mode": { + "type": "string", + "description": "Thread Message Mode", + "default": "CONCATENATE", + "enum": [ + "CONCATENATE", + "SINGLE" + ] + } + } + }, + "DROPBOXAuthConfig": { + "type": "object", + "description": "Authentication configuration for Dropbox (Legacy)", + "properties": { + "name": { + "type": "string", + "description": "Name. Example: Enter a descriptive name" + }, + "refresh-token": { + "type": "string", + "format": "password", + "description": "Connect Dropbox to Vectorize. Example: Authorize", + "pattern": "^\\S.*\\S$|^\\S$" + } + }, + "required": [ + "name", + "refresh-token" + ] + }, + "DROPBOXConfig": { + "type": "object", + "description": "Configuration for Dropbox (Legacy) connector", + "properties": { + "path-prefix": { + "type": "string", + "description": "Read from these folders (optional). Example: Enter Path: /exampleFolder/subFolder", + "pattern": "^\\/.*$" + } + } + }, + "DROPBOX_OAUTHAuthConfig": { + "type": "object", + "description": "Authentication configuration for Dropbox OAuth", + "properties": { + "name": { + "type": "string", + "description": "Name. Example: Enter a descriptive name" + }, + "authorized-user": { + "type": "string", + "description": "Authorized User" + }, + "selection-details": { + "type": "string", + "description": "Connect Dropbox to Vectorize. Example: Authorize" + }, + "editedUsers": { + "type": "object", + "default": {} + }, + "reconnectUsers": { + "type": "object", + "default": {} + } + }, + "required": [ + "name", + "selection-details" + ] + }, + "DROPBOX_OAUTH_MULTIAuthConfig": { + "type": "object", + "description": "Authentication configuration for Dropbox Multi-User (Vectorize)", + "properties": { + "name": { + "type": "string", + "description": "Name. Example: Enter a descriptive name" + }, + "authorized-users": { + "type": "string", + "description": "Authorized Users" + }, + "editedUsers": { + "type": "object", + "default": {} + }, + "deletedUsers": { + "type": "object", + "default": {} + } + }, + "required": [ + "name" + ] + }, + "DROPBOX_OAUTH_MULTI_CUSTOMAuthConfig": { + "type": "object", + "description": "Authentication configuration for Dropbox Multi-User (White Label)", + "properties": { + "name": { + "type": "string", + "description": "Name. Example: Enter a descriptive name" + }, + "app-key": { + "type": "string", + "format": "password", + "description": "Dropbox App Key. Example: Enter App Key" + }, + "app-secret": { + "type": "string", + "format": "password", + "description": "Dropbox App Secret. Example: Enter App Secret" + }, + "authorized-users": { + "type": "string", + "description": "Authorized Users" + }, + "editedUsers": { + "type": "object", + "default": {} + }, + "deletedUsers": { + "type": "object", + "default": {} + } + }, + "required": [ + "name", + "app-key", + "app-secret" + ] + }, + "FILE_UPLOADAuthConfig": { + "type": "object", + "description": "Authentication configuration for File Upload", + "properties": { + "name": { + "type": "string", + "description": "Name. Example: Enter a descriptive name for this connector" + }, + "path-prefix": { + "type": "string", + "description": "Path Prefix" + }, + "files": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Choose files. Files uploaded to this connector can be used in pipelines to vectorize their contents. Note: files with the same name will be overwritten." + } + }, + "required": [ + "name" + ] + }, + "FILE_UPLOADCreateConfig": { + "type": "object", + "description": "Create configuration for File Upload", + "properties": {} + }, + "GOOGLE_DRIVE_OAUTHAuthConfig": { + "type": "object", + "description": "Authentication configuration for Google Drive OAuth", + "properties": { + "name": { + "type": "string", + "description": "Name. Example: Enter a descriptive name" + }, + "authorized-user": { + "type": "string", + "description": "Authorized User" + }, + "selection-details": { + "type": "string", + "description": "Connect Google Drive to Vectorize. Example: Authorize" + }, + "editedUsers": { + "type": "object", + "default": {} + }, + "reconnectUsers": { + "type": "object", + "default": {} + } + }, + "required": [ + "name", + "selection-details" + ] + }, + "GOOGLE_DRIVE_OAUTHConfig": { + "type": "object", + "description": "Configuration for Google Drive OAuth connector", + "properties": { + "file-extensions": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "pdf", + "doc,docx,gdoc,odt,rtf,epub", + "ppt,pptx,gslides", + "xls,xlsx,gsheets,ods", + "eml,msg", + "txt", + "html,htm", + "md", + "json", + "csv", + "jpg,jpeg,png,webp,svg,gif" + ] + }, + "description": "File Extensions", + "default": [ + "pdf", + "doc", + "docx", + "gdoc", + "odt", + "rtf", + "epub", + "ppt", + "pptx", + "gslides", + "xls", + "xlsx", + "gsheets", + "ods", + "eml", + "msg", + "txt", + "html", + "htm", + "md", + "json", + "csv", + "jpg", + "jpeg", + "png", + "webp", + "svg", + "gif" + ], + "enum": [ + "pdf", + "doc,docx,gdoc,odt,rtf,epub", + "ppt,pptx,gslides", + "xls,xlsx,gsheets,ods", + "eml,msg", + "txt", + "html,htm", + "md", + "json", + "csv", + "jpg,jpeg,png,webp,svg,gif" + ] + }, + "idle-time": { + "type": "number", + "description": "Polling Interval (seconds). Example: Enter polling interval in seconds", + "default": 5 + } + }, + "required": [ + "file-extensions" + ] + }, + "GOOGLE_DRIVEAuthConfig": { + "type": "object", + "description": "Authentication configuration for Google Drive (Service Account)", + "properties": { + "name": { + "type": "string", + "description": "Name. Example: Enter a descriptive name" + }, + "service-account-json": { + "type": "string", + "format": "password", + "description": "Service Account JSON. Example: Enter the JSON key file for the service account" + } + }, + "required": [ + "name", + "service-account-json" + ] + }, + "GOOGLE_DRIVEConfig": { + "type": "object", + "description": "Configuration for Google Drive (Service Account) connector", + "properties": { + "file-extensions": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "pdf", + "doc,docx,gdoc,odt,rtf,epub", + "ppt,pptx,gslides", + "xls,xlsx,gsheets,ods", + "eml,msg", + "txt", + "html,htm", + "md", + "json", + "csv", + "jpg,jpeg,png,webp,svg,gif" + ] + }, + "description": "File Extensions", + "default": [ + "pdf", + "doc", + "docx", + "gdoc", + "odt", + "rtf", + "epub", + "ppt", + "pptx", + "gslides", + "xls", + "xlsx", + "gsheets", + "ods", + "eml", + "msg", + "txt", + "html", + "htm", + "md", + "json", + "csv", + "jpg", + "jpeg", + "png", + "webp", + "svg", + "gif" + ], + "enum": [ + "pdf", + "doc,docx,gdoc,odt,rtf,epub", + "ppt,pptx,gslides", + "xls,xlsx,gsheets,ods", + "eml,msg", + "txt", + "html,htm", + "md", + "json", + "csv", + "jpg,jpeg,png,webp,svg,gif" + ] + }, + "root-parents": { + "type": "string", + "description": "Restrict ingest to these folder URLs (optional). Example: Enter Folder URLs. Example: https://drive.google.com/drive/folders/1234aBCd5678_eFgH9012iJKL3456opqr", + "pattern": "^https:\\/\\/drive\\.google\\.com\\/drive(\\/u\\/\\d+)?\\/folders\\/[a-zA-Z0-9_-]+(\\?.*)?$" + }, + "idle-time": { + "type": "number", + "description": "Polling Interval (seconds). Example: Enter polling interval in seconds", + "default": 5 + } + }, + "required": [ + "file-extensions" + ] + }, + "GOOGLE_DRIVE_OAUTH_MULTIAuthConfig": { + "type": "object", + "description": "Authentication configuration for Google Drive Multi-User (Vectorize)", + "properties": { + "name": { + "type": "string", + "description": "Name. Example: Enter a descriptive name" + }, + "authorized-users": { + "type": "string", + "description": "Authorized Users" + }, + "editedUsers": { + "type": "object", + "default": {} + }, + "deletedUsers": { + "type": "object", + "default": {} + } + }, + "required": [ + "name" + ] + }, + "GOOGLE_DRIVE_OAUTH_MULTIConfig": { + "type": "object", + "description": "Configuration for Google Drive Multi-User (Vectorize) connector", + "properties": { + "file-extensions": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "pdf", + "doc,docx,gdoc,odt,rtf,epub", + "ppt,pptx,gslides", + "xls,xlsx,gsheets,ods", + "eml,msg", + "txt", + "html,htm", + "md", + "json", + "csv", + "jpg,jpeg,png,webp,svg,gif" + ] + }, + "description": "File Extensions", + "default": [ + "pdf", + "doc", + "docx", + "gdoc", + "odt", + "rtf", + "epub", + "ppt", + "pptx", + "gslides", + "xls", + "xlsx", + "gsheets", + "ods", + "eml", + "msg", + "txt", + "html", + "htm", + "md", + "json", + "csv", + "jpg", + "jpeg", + "png", + "webp", + "svg", + "gif" + ], + "enum": [ + "pdf", + "doc,docx,gdoc,odt,rtf,epub", + "ppt,pptx,gslides", + "xls,xlsx,gsheets,ods", + "eml,msg", + "txt", + "html,htm", + "md", + "json", + "csv", + "jpg,jpeg,png,webp,svg,gif" + ] + }, + "idle-time": { + "type": "number", + "description": "Polling Interval (seconds). Example: Enter polling interval in seconds", + "default": 5 + } + }, + "required": [ + "file-extensions" + ] + }, + "GOOGLE_DRIVE_OAUTH_MULTI_CUSTOMAuthConfig": { + "type": "object", + "description": "Authentication configuration for Google Drive Multi-User (White Label)", + "properties": { + "name": { + "type": "string", + "description": "Name. Example: Enter a descriptive name" + }, + "oauth2-client-id": { + "type": "string", + "format": "password", + "description": "OAuth2 Client Id. Example: Enter Client Id" + }, + "oauth2-client-secret": { + "type": "string", + "format": "password", + "description": "OAuth2 Client Secret. Example: Enter Client Secret" + }, + "authorized-users": { + "type": "string", + "description": "Authorized Users" + }, + "editedUsers": { + "type": "object", + "default": {} + }, + "deletedUsers": { + "type": "object", + "default": {} + } + }, + "required": [ + "name", + "oauth2-client-id", + "oauth2-client-secret" + ] + }, + "GOOGLE_DRIVE_OAUTH_MULTI_CUSTOMConfig": { + "type": "object", + "description": "Configuration for Google Drive Multi-User (White Label) connector", + "properties": { + "file-extensions": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "pdf", + "doc,docx,gdoc,odt,rtf,epub", + "ppt,pptx,gslides", + "xls,xlsx,gsheets,ods", + "eml,msg", + "txt", + "html,htm", + "md", + "json", + "csv", + "jpg,jpeg,png,webp,svg,gif" + ] + }, + "description": "File Extensions", + "default": [ + "pdf", + "doc", + "docx", + "gdoc", + "odt", + "rtf", + "epub", + "ppt", + "pptx", + "gslides", + "xls", + "xlsx", + "gsheets", + "ods", + "eml", + "msg", + "txt", + "html", + "htm", + "md", + "json", + "csv", + "jpg", + "jpeg", + "png", + "webp", + "svg", + "gif" + ], + "enum": [ + "pdf", + "doc,docx,gdoc,odt,rtf,epub", + "ppt,pptx,gslides", + "xls,xlsx,gsheets,ods", + "eml,msg", + "txt", + "html,htm", + "md", + "json", + "csv", + "jpg,jpeg,png,webp,svg,gif" + ] + }, + "idle-time": { + "type": "number", + "description": "Polling Interval (seconds). Example: Enter polling interval in seconds", + "default": 5 + } + }, + "required": [ + "file-extensions" + ] + }, + "FIRECRAWLAuthConfig": { + "type": "object", + "description": "Authentication configuration for Firecrawl", + "properties": { + "name": { + "type": "string", + "description": "Name. Example: Enter a descriptive name" + }, + "api-key": { + "type": "string", + "format": "password", + "description": "API Key. Example: Enter your Firecrawl API Key" + } + }, + "required": [ + "name", + "api-key" + ] + }, + "FIRECRAWLConfig": { + "type": "object", + "description": "Configuration for Firecrawl connector", + "properties": { + "endpoint": { + "type": "string", + "description": "Endpoint. Example: Choose which api endpoint to use", + "default": "Crawl", + "enum": [ + "Crawl", + "Scrape" + ] + }, + "request": { + "type": "object", + "description": "Request Body. Example: JSON config for firecrawl's /crawl or /scrape endpoint.", + "default": { + "url": "https://docs.vectorize.io/", + "maxDepth": 25, + "limit": 100 + } + } + }, + "required": [ + "endpoint", + "request" + ] + }, + "GCSAuthConfig": { + "type": "object", + "description": "Authentication configuration for GCP Cloud Storage", + "properties": { + "name": { + "type": "string", + "description": "Name. Example: Enter a descriptive name" + }, + "service-account-json": { + "type": "string", + "format": "password", + "description": "Service Account JSON. Example: Enter the JSON key file for the service account" + }, + "bucket-name": { + "type": "string", + "description": "Bucket. Example: Enter bucket name" + } + }, + "required": [ + "name", + "service-account-json", + "bucket-name" + ] + }, + "GCSConfig": { + "type": "object", + "description": "Configuration for GCP Cloud Storage connector", + "properties": { + "file-extensions": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "pdf", + "doc,docx,gdoc,odt,rtf,epub", + "ppt,pptx,gslides", + "xls,xlsx,gsheets,ods", + "eml,msg", + "txt", + "html,htm", + "md", + "json", + "csv", + "jpg,jpeg,png,webp,svg,gif" + ] + }, + "description": "File Extensions", + "default": [ + "pdf", + "doc", + "docx", + "gdoc", + "odt", + "rtf", + "epub", + "ppt", + "pptx", + "gslides", + "xls", + "xlsx", + "gsheets", + "ods", + "eml", + "msg", + "txt", + "html", + "htm", + "md", + "json", + "csv", + "jpg", + "jpeg", + "png", + "webp", + "svg", + "gif" + ], + "enum": [ + "pdf", + "doc,docx,gdoc,odt,rtf,epub", + "ppt,pptx,gslides", + "xls,xlsx,gsheets,ods", + "eml,msg", + "txt", + "html,htm", + "md", + "json", + "csv", + "jpg,jpeg,png,webp,svg,gif" + ] + }, + "idle-time": { + "type": "number", + "description": "Check for updates every (seconds)", + "minimum": 1, + "default": 5 + }, + "recursive": { + "type": "boolean", + "description": "Recursively scan all folders in the bucket" + }, + "path-prefix": { + "type": "string", + "description": "Path Prefix" + }, + "path-metadata-regex": { + "type": "string", + "description": "Path Metadata Regex" + }, + "path-regex-group-names": { + "type": "string", + "description": "Path Regex Group Names. Example: Enter Group Name" + } + }, + "required": [ + "file-extensions", + "idle-time" + ] + }, + "INTERCOMAuthConfig": { + "type": "object", + "description": "Authentication configuration for Intercom", + "properties": { + "name": { + "type": "string", + "description": "Name. Example: Enter a descriptive name" + }, + "token": { + "type": "string", + "format": "password", + "description": "Access Token. Example: Authorize Intercom Access" + } + }, + "required": [ + "name", + "token" + ] + }, + "INTERCOMConfig": { + "type": "object", + "description": "Configuration for Intercom connector", + "properties": { + "created_at": { + "type": "string", + "format": "date", + "description": "Created After. Filter for conversations created after this date. Example: Enter a date: Example 2012-12-31", + "default": "2025-07-03" + }, + "updated_at": { + "type": "string", + "format": "date", + "description": "Updated After. Filter for conversations updated after this date. Example: Enter a date: Example 2012-12-31" + }, + "state": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "open", + "closed", + "snoozed" + ] + }, + "description": "State", + "default": [ + "open", + "closed", + "snoozed" + ], + "enum": [ + "open", + "closed", + "snoozed" + ] + } + }, + "required": [ + "created_at" + ] + }, + "NOTIONAuthConfig": { + "type": "object", + "description": "Authentication configuration for Notion", + "properties": { + "name": { + "type": "string", + "description": "Name. Example: Enter a descriptive name" + }, + "access-token": { + "type": "string", + "format": "password", + "description": "Connect Notion to Vectorize - Note this will effect existing connections. test. Example: Authorize" + }, + "s3id": { + "type": "string" + }, + "editedToken": { + "type": "string" + } + }, + "required": [ + "name", + "access-token" + ] + }, + "NOTIONConfig": { + "type": "object", + "description": "Configuration for Notion connector", + "properties": { + "select-resources": { + "type": "string", + "description": "Select Notion Resources" + }, + "database-ids": { + "type": "string", + "description": "Database IDs" + }, + "database-names": { + "type": "string", + "description": "Database Names" + }, + "page-ids": { + "type": "string", + "description": "Page IDs" + }, + "page-names": { + "type": "string", + "description": "Page Names" + } + }, + "required": [ + "select-resources", + "database-ids", + "database-names", + "page-ids", + "page-names" + ] + }, + "NOTION_OAUTH_MULTIAuthConfig": { + "type": "object", + "description": "Authentication configuration for Notion Multi-User (Vectorize)", + "properties": { + "name": { + "type": "string", + "description": "Name. Example: Enter a descriptive name" + }, + "authorized-users": { + "type": "string", + "description": "Authorized Users. Users who have authorized access to their Notion content" + }, + "editedUsers": { + "type": "object", + "default": {} + }, + "deletedUsers": { + "type": "object", + "default": {} + } + }, + "required": [ + "name" + ] + }, + "NOTION_OAUTH_MULTI_CUSTOMAuthConfig": { + "type": "object", + "description": "Authentication configuration for Notion Multi-User (White Label)", + "properties": { + "name": { + "type": "string", + "description": "Name. Example: Enter a descriptive name" + }, + "client-id": { + "type": "string", + "format": "password", + "description": "Notion Client ID. Example: Enter Client ID" + }, + "client-secret": { + "type": "string", + "format": "password", + "description": "Notion Client Secret. Example: Enter Client Secret" + }, + "authorized-users": { + "type": "string", + "description": "Authorized Users" + }, + "editedUsers": { + "type": "object", + "default": {} + }, + "deletedUsers": { + "type": "object", + "default": {} + } + }, + "required": [ + "name", + "client-id", + "client-secret" + ] + }, + "ONE_DRIVEAuthConfig": { + "type": "object", + "description": "Authentication configuration for OneDrive", + "properties": { + "name": { + "type": "string", + "description": "Name. Example: Enter a descriptive name" + }, + "ms-client-id": { + "type": "string", + "description": "Client Id. Example: Enter Client Id" + }, + "ms-tenant-id": { + "type": "string", + "description": "Tenant Id. Example: Enter Tenant Id" + }, + "ms-client-secret": { + "type": "string", + "format": "password", + "description": "Client Secret. Example: Enter Client Secret" + }, + "users": { + "type": "string", + "description": "Users. Example: Enter users emails to import files from. Example: developer@vectorize.io" + } + }, + "required": [ + "name", + "ms-client-id", + "ms-tenant-id", + "ms-client-secret", + "users" + ] + }, + "ONE_DRIVEConfig": { + "type": "object", + "description": "Configuration for OneDrive connector", + "properties": { + "file-extensions": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "pdf", + "doc,docx,gdoc,odt,rtf,epub", + "ppt,pptx,gslides", + "xls,xlsx,gsheets,ods", + "eml,msg", + "txt", + "html,htm", + "md", + "json", + "csv", + "jpg,jpeg,png,webp,svg,gif" + ] + }, + "description": "File Extensions", + "default": [ + "pdf", + "doc", + "docx", + "gdoc", + "odt", + "rtf", + "epub", + "ppt", + "pptx", + "gslides", + "xls", + "xlsx", + "gsheets", + "ods", + "eml", + "msg", + "txt", + "html", + "htm", + "md", + "json", + "csv", + "jpg", + "jpeg", + "png", + "webp", + "svg", + "gif" + ], + "enum": [ + "pdf", + "doc,docx,gdoc,odt,rtf,epub", + "ppt,pptx,gslides", + "xls,xlsx,gsheets,ods", + "eml,msg", + "txt", + "html,htm", + "md", + "json", + "csv", + "jpg,jpeg,png,webp,svg,gif" + ] + }, + "path-prefix": { + "type": "string", + "description": "Read starting from this folder (optional). Example: Enter Folder path: /exampleFolder/subFolder" + } + }, + "required": [ + "file-extensions" + ] + }, + "SHAREPOINTAuthConfig": { + "type": "object", + "description": "Authentication configuration for SharePoint", + "properties": { + "name": { + "type": "string", + "description": "Name. Example: Enter a descriptive name" + }, + "ms-client-id": { + "type": "string", + "description": "Client Id. Example: Enter Client Id" + }, + "ms-tenant-id": { + "type": "string", + "description": "Tenant Id. Example: Enter Tenant Id" + }, + "ms-client-secret": { + "type": "string", + "format": "password", + "description": "Client Secret. Example: Enter Client Secret" + } + }, + "required": [ + "name", + "ms-client-id", + "ms-tenant-id", + "ms-client-secret" + ] + }, + "SHAREPOINTConfig": { + "type": "object", + "description": "Configuration for SharePoint connector", + "properties": { + "file-extensions": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "pdf", + "doc,docx,gdoc,odt,rtf,epub", + "ppt,pptx,gslides", + "xls,xlsx,gsheets,ods", + "eml,msg", + "txt", + "html,htm", + "json", + "csv", + "jpg,jpeg,png,webp,svg,gif" + ] + }, + "description": "File Extensions", + "default": [ + "pdf", + "doc", + "docx", + "gdoc", + "odt", + "rtf", + "epub", + "ppt", + "pptx", + "gslides", + "xls", + "xlsx", + "gsheets", + "ods", + "eml", + "msg", + "txt", + "html", + "htm", + "json", + "csv", + "jpg", + "jpeg", + "png", + "webp", + "svg", + "gif" + ], + "enum": [ + "pdf", + "doc,docx,gdoc,odt,rtf,epub", + "ppt,pptx,gslides", + "xls,xlsx,gsheets,ods", + "eml,msg", + "txt", + "html,htm", + "json", + "csv", + "jpg,jpeg,png,webp,svg,gif" + ] + }, + "sites": { + "type": "string", + "description": "Site Name(s). Example: Filter by site name. All sites if empty.", + "pattern": "^(?!.*(https?:\\/\\/|www\\.))[\\w\\s\\-.]+$" + }, + "folder-path": { + "type": "string", + "description": "Read starting from this folder (optional). Example: Enter Folder path: /exampleFolder/subFolder" + } + }, + "required": [ + "file-extensions" + ] + }, + "WEB_CRAWLERAuthConfig": { + "type": "object", + "description": "Authentication configuration for Web Crawler", + "properties": { + "name": { + "type": "string", + "description": "Name. Example: Enter a descriptive name" + }, + "seed-urls": { + "type": "string", + "description": "Seed URL(s). Add one or more seed URLs to crawl. The crawler will start from these URLs and follow links to other pages.. Example: (e.g. https://example.com)" + } + }, + "required": [ + "name", + "seed-urls" + ] + }, + "WEB_CRAWLERConfig": { + "type": "object", + "description": "Configuration for Web Crawler connector", + "properties": { + "allowed-domains-opt": { + "type": "string", + "description": "Additional Allowed URLs or prefix(es). Add one or more allowed URLs or URL prefixes. The crawler will read URLs that match these patterns in addition to the seed URL(s).. Example: (e.g. https://docs.example.com)" + }, + "forbidden-paths": { + "type": "string", + "description": "Forbidden Paths. Example: Enter forbidden paths (e.g. /admin)", + "pattern": "^\\/([a-zA-Z0-9-_]+(\\/)?)+$" + }, + "min-time-between-requests": { + "type": "number", + "description": "Throttle (ms). Example: Enter minimum time between requests in milliseconds", + "default": 500 + }, + "max-error-count": { + "type": "number", + "description": "Max Error Count. Example: Enter maximum error count", + "default": 5 + }, + "max-urls": { + "type": "number", + "description": "Max URLs. Example: Enter maximum number of URLs to crawl", + "default": 1000 + }, + "max-depth": { + "type": "number", + "description": "Max Depth. Example: Enter maximum crawl depth", + "default": 50 + }, + "reindex-interval-seconds": { + "type": "number", + "description": "Reindex Interval (seconds). Example: Enter reindex interval in seconds", + "default": 3600 + } + } + }, + "GITHUBAuthConfig": { + "type": "object", + "description": "Authentication configuration for GitHub", + "properties": { + "name": { + "type": "string", + "description": "Name. Example: Enter a descriptive name" + }, + "oauth-token": { + "type": "string", + "format": "password", + "description": "Personal Access Token. Example: Enter your GitHub personal access token", + "pattern": "^\\S.*\\S$|^\\S$" + } + }, + "required": [ + "name", + "oauth-token" + ] + }, + "GITHUBConfig": { + "type": "object", + "description": "Configuration for GitHub connector", + "properties": { + "repositories": { + "type": "string", + "description": "Repositories. Example: Example: owner1/repo1", + "pattern": "^[a-zA-Z0-9-]+\\/[a-zA-Z0-9-]+$" + }, + "include-pull-requests": { + "type": "boolean", + "description": "Include Pull Requests", + "default": true + }, + "pull-request-status": { + "type": "string", + "description": "Pull Request Status", + "default": "all", + "enum": [ + "all", + "open", + "closed", + "merged" + ] + }, + "pull-request-labels": { + "type": "string", + "description": "Pull Request Labels. Example: Optionally filter by label. E.g. fix" + }, + "include-issues": { + "type": "boolean", + "description": "Include Issues", + "default": true + }, + "issue-status": { + "type": "string", + "description": "Issue Status", + "default": "all", + "enum": [ + "all", + "open", + "closed" + ] + }, + "issue-labels": { + "type": "string", + "description": "Issue Labels. Example: Optionally filter by label. E.g. bug" + }, + "max-items": { + "type": "number", + "description": "Max Items. Example: Enter maximum number of items to fetch", + "default": 1000 + }, + "created-after": { + "type": "string", + "format": "date", + "description": "Created After. Filter for items created after this date. Example: Enter a date: Example 2012-12-31" + } + }, + "required": [ + "repositories", + "include-pull-requests", + "pull-request-status", + "include-issues", + "issue-status", + "max-items" + ] + }, + "FIREFLIESAuthConfig": { + "type": "object", + "description": "Authentication configuration for Fireflies.ai", + "properties": { + "name": { + "type": "string", + "description": "Name. Example: Enter a descriptive name" + }, + "api-key": { + "type": "string", + "format": "password", + "description": "API Key. Example: Enter your Fireflies.ai API key", + "pattern": "^\\S.*\\S$|^\\S$" + } + }, + "required": [ + "name", + "api-key" + ] + }, + "FIREFLIESConfig": { + "type": "object", + "description": "Configuration for Fireflies.ai connector", + "properties": { + "start-date": { + "type": "string", + "format": "date", + "description": "Start Date. Include meetings from this date forward. Example: Enter a date: Example 2023-12-31", + "default": "2025-07-03" + }, + "end-date": { + "type": "string", + "format": "date", + "description": "End Date. Include meetings up to this date only. Example: Enter a date: Example 2023-12-31" + }, + "title-filter-type": { + "type": "string", + "default": "AND" + }, + "title-filter": { + "type": "string", + "description": "Title Filter. Only include meetings with this text in the title. Example: Enter meeting title" + }, + "participant-filter-type": { + "type": "string", + "default": "AND" + }, + "participant-filter": { + "type": "string", + "description": "Participant's Email Filter. Include meetings where these participants were invited. Example: Enter participant email" + }, + "max-meetings": { + "type": "number", + "description": "Max Meetings. Enter -1 for all available meetings, or specify a limit. Example: Enter maximum number of meetings to retrieve. (-1 for all)", + "default": -1 + } + }, + "required": [ + "start-date", + "title-filter-type", + "participant-filter-type" + ] + }, + "GMAILAuthConfig": { + "type": "object", + "description": "Authentication configuration for Gmail", + "properties": { + "name": { + "type": "string", + "description": "Name. Example: Enter a descriptive name" + }, + "refresh-token": { + "type": "string", + "format": "password", + "description": "Connect Gmail to Vectorize. Example: Authorize" + } + }, + "required": [ + "name", + "refresh-token" + ] + }, + "GMAILConfig": { + "type": "object", + "description": "Configuration for Gmail connector", + "properties": { + "from-filter-type": { + "type": "string", + "default": "OR" + }, + "to-filter-type": { + "type": "string", + "default": "OR" + }, + "cc-filter-type": { + "type": "string", + "default": "OR" + }, + "subject-filter-type": { + "type": "string", + "default": "AND" + }, + "label-filter-type": { + "type": "string", + "default": "AND" + }, + "from": { + "type": "string", + "description": "From Address Filter. Only include emails from these senders. Example: Add sender email(s)", + "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$" + }, + "to": { + "type": "string", + "description": "To Address Filter. Only include emails sent to these recipients. Example: Add recipient email(s)", + "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$" + }, + "cc": { + "type": "string", + "description": "CC Address Filter. Only include emails with these addresses in CC field. Example: Add CC email(s)", + "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$" + }, + "include-attachments": { + "type": "boolean", + "description": "Include Attachments. Include email attachments in the processed content", + "default": false + }, + "subject": { + "type": "string", + "description": "Subject Filter. Include emails with these keywords in the subject line. Example: Add subject keywords" + }, + "start-date": { + "type": "string", + "format": "date", + "description": "Start Date. Only include emails sent after this date (exclusive). Format: YYYY-MM-DD.. Example: e.g., 2024-01-01" + }, + "end-date": { + "type": "string", + "format": "date", + "description": "End Date. Only include emails sent before this date (exclusive). Format: YYYY-MM-DD.. Example: e.g., 2024-01-31" + }, + "max-results": { + "type": "number", + "description": "Maximum Results. Enter -1 for all available emails, or specify a limit. . Example: Enter maximum number of threads to retrieve", + "default": -1 + }, + "messages-to-fetch": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "all", + "inbox", + "sent", + "archive", + "spam-trash", + "unread", + "starred", + "important" + ] + }, + "description": "Messages to Fetch. Select which categories of messages to include in the import.", + "default": [ + "inbox" + ], + "enum": [ + "all", + "inbox", + "sent", + "archive", + "spam-trash", + "unread", + "starred", + "important" + ] + }, + "label-ids": { + "type": "string", + "description": "Label Filters. Include emails with these labels. Example: e.g., INBOX, IMPORTANT, CATEGORY_SOCIAL" + } + }, + "required": [ + "from-filter-type", + "to-filter-type", + "cc-filter-type", + "subject-filter-type", + "label-filter-type" + ] + }, + "CAPELLAAuthConfig": { + "type": "object", + "description": "Authentication configuration for Couchbase Capella", + "properties": { + "name": { + "type": "string", + "description": "Name. Example: Enter a descriptive name for your Capella integration" + }, + "username": { + "type": "string", + "description": "Cluster Access Name. Example: Enter your cluster access name" + }, + "password": { + "type": "string", + "format": "password", + "description": "Cluster Access Password. Example: Enter your cluster access password" + }, + "connection-string": { + "type": "string", + "description": "Connection String. Example: Enter your connection string" + } + }, + "required": [ + "name", + "username", + "password", + "connection-string" + ] + }, + "CAPELLAConfig": { + "type": "object", + "description": "Configuration for Couchbase Capella connector", + "properties": { + "bucket": { + "type": "string", + "description": "Bucket Name. Example: Enter bucket name" + }, + "scope": { + "type": "string", + "description": "Scope Name. Example: Enter scope name" + }, + "collection": { + "type": "string", + "description": "Collection Name. Example: Enter collection name" + }, + "index": { + "type": "string", + "description": "Search Index Name. Example: Enter search index name", + "maxLength": 255 + } + }, + "required": [ + "bucket", + "scope", + "collection", + "index" + ] + }, + "DATASTAXAuthConfig": { + "type": "object", + "description": "Authentication configuration for DataStax Astra", + "properties": { + "name": { + "type": "string", + "description": "Name. Example: Enter a descriptive name for your DataStax integration" + }, + "endpoint_secret": { + "type": "string", + "description": "API Endpoint. Example: Enter your API endpoint" + }, + "token": { + "type": "string", + "format": "password", + "description": "Application Token. Example: Enter your application token", + "pattern": "^\\S.*\\S$|^\\S$" + } + }, + "required": [ + "name", + "endpoint_secret", + "token" + ] + }, + "DATASTAXConfig": { + "type": "object", + "description": "Configuration for DataStax Astra connector", + "properties": { + "collection": { + "type": "string", + "description": "Collection Name. Example: Enter collection name", + "pattern": "^[a-zA-Z][a-zA-Z0-9_]*$" + } + }, + "required": [ + "collection" + ] + }, + "ELASTICAuthConfig": { + "type": "object", + "description": "Authentication configuration for Elasticsearch", + "properties": { + "name": { + "type": "string", + "description": "Name. Example: Enter a descriptive name for your Elastic integration" + }, + "host": { + "type": "string", + "description": "Host. Example: Enter your host" + }, + "port": { + "type": "string", + "description": "Port. Example: Enter your port" + }, + "api-key": { + "type": "string", + "format": "password", + "description": "API Key. Example: Enter your API key", + "pattern": "^\\S.*\\S$|^\\S$" + } + }, + "required": [ + "name", + "host", + "port", + "api-key" + ] + }, + "ELASTICConfig": { + "type": "object", + "description": "Configuration for Elasticsearch connector", + "properties": { + "index": { + "type": "string", + "description": "Index Name. Example: Enter index name", + "maxLength": 255, + "pattern": "^(?!.*(--|\\.\\.))(?!^[\\-.])(?!.*[\\-.]$)[a-z0-9-.]*$" + } + }, + "required": [ + "index" + ] + }, + "PINECONEAuthConfig": { + "type": "object", + "description": "Authentication configuration for Pinecone", + "properties": { + "name": { + "type": "string", + "description": "Name. Example: Enter a descriptive name for your Pinecone integration" + }, + "api-key": { + "type": "string", + "format": "password", + "description": "API Key. Example: Enter your API Key", + "pattern": "^\\S.*\\S$|^\\S$" + } + }, + "required": [ + "name", + "api-key" + ] + }, + "PINECONEConfig": { + "type": "object", + "description": "Configuration for Pinecone connector", + "properties": { + "index": { + "type": "string", + "description": "Index Name. Example: Enter index name", + "maxLength": 45, + "pattern": "^(?!.*--)(?!^-)(?!.*-$)[a-z0-9-]+$" + }, + "namespace": { + "type": "string", + "description": "Namespace. Example: Enter namespace", + "maxLength": 45, + "pattern": "^(?!.*--)(?!^-)(?!.*-$)[a-z0-9-]+$" + } + }, + "required": [ + "index" + ] + }, + "SINGLESTOREAuthConfig": { + "type": "object", + "description": "Authentication configuration for SingleStore", + "properties": { + "name": { + "type": "string", + "description": "Name. Example: Enter a descriptive name for your SingleStore integration" + }, + "host": { + "type": "string", + "description": "Host. Example: Enter the host of the deployment" + }, + "port": { + "type": "number", + "description": "Port. Example: Enter the port of the deployment" + }, + "database": { + "type": "string", + "description": "Database. Example: Enter the database name" + }, + "username": { + "type": "string", + "description": "Username. Example: Enter the username" + }, + "password": { + "type": "string", + "format": "password", + "description": "Password. Example: Enter the username's password" + } + }, + "required": [ + "name", + "host", + "port", + "database", + "username", + "password" + ] + }, + "SINGLESTOREConfig": { + "type": "object", + "description": "Configuration for SingleStore connector", + "properties": { + "table": { + "type": "string", + "description": "Table Name. Example: Enter table name", + "maxLength": 45, + "pattern": "^(?!\\b(add|alter|all|and|any|as|asc|avg|between|case|check|column|commit|constraint|create|cross|database|default|delete|desc|distinct|drop|else|exists|false|from|full|group|having|in|index|inner|insert|is|join|key|left|like|limit|max|min|not|null|on|or|order|outer|primary|right|rollback|select|set|sum|table|true|union|unique|update|values|view|where)\\b$)(?!.*--)(?!.*[-])[a-z][a-z0-9_]{0,44}$" + } + }, + "required": [ + "table" + ] + }, + "MILVUSAuthConfig": { + "type": "object", + "description": "Authentication configuration for Milvus", + "properties": { + "name": { + "type": "string", + "description": "Name. Example: Enter a descriptive name for your Milvus integration" + }, + "url": { + "type": "string", + "description": "Public Endpoint. Example: Enter your public endpoint for your Milvus cluster" + }, + "token": { + "type": "string", + "format": "password", + "description": "Token. Example: Enter your cluster token or Username/Password" + }, + "username": { + "type": "string", + "description": "Username. Example: Enter your cluster Username" + }, + "password": { + "type": "string", + "format": "password", + "description": "Password. Example: Enter your cluster Password" + } + }, + "required": [ + "name", + "url" + ] + }, + "MILVUSConfig": { + "type": "object", + "description": "Configuration for Milvus connector", + "properties": { + "collection": { + "type": "string", + "description": "Collection Name. Example: Enter collection name", + "pattern": "^[a-zA-Z][a-zA-Z0-9_]*$" + } + }, + "required": [ + "collection" + ] + }, + "POSTGRESQLAuthConfig": { + "type": "object", + "description": "Authentication configuration for PostgreSQL", + "properties": { + "name": { + "type": "string", + "description": "Name. Example: Enter a descriptive name for your PostgreSQL integration" + }, + "host": { + "type": "string", + "description": "Host. Example: Enter the host of the deployment" + }, + "port": { + "type": "number", + "description": "Port. Example: Enter the port of the deployment", + "default": 5432 + }, + "database": { + "type": "string", + "description": "Database. Example: Enter the database name" + }, + "username": { + "type": "string", + "description": "Username. Example: Enter the username" + }, + "password": { + "type": "string", + "format": "password", + "description": "Password. Example: Enter the username's password" + } + }, + "required": [ + "name", + "host", + "database", + "username", + "password" + ] + }, + "POSTGRESQLConfig": { + "type": "object", + "description": "Configuration for PostgreSQL connector", + "properties": { + "table": { + "type": "string", + "description": "Table Name. Example: Enter
or .
", + "maxLength": 45, + "pattern": "^(?!\\b(add|alter|all|and|any|as|asc|avg|between|case|check|column|commit|constraint|create|cross|database|default|delete|desc|distinct|drop|else|exists|false|from|full|group|having|in|index|inner|insert|is|join|key|left|like|limit|max|min|not|null|on|or|order|outer|primary|right|rollback|select|set|sum|table|true|union|unique|update|values|view|where)\\b$)(?!.*--)(?!.*[-])[a-z][a-z0-9._]{0,44}$" + } + }, + "required": [ + "table" + ] + }, + "QDRANTAuthConfig": { + "type": "object", + "description": "Authentication configuration for Qdrant", + "properties": { + "name": { + "type": "string", + "description": "Name. Example: Enter a descriptive name for your Qdrant integration" + }, + "host": { + "type": "string", + "description": "Host. Example: Enter your host" + }, + "api-key": { + "type": "string", + "format": "password", + "description": "API Key. Example: Enter your API key", + "pattern": "^\\S.*\\S$|^\\S$" + } + }, + "required": [ + "name", + "host", + "api-key" + ] + }, + "QDRANTConfig": { + "type": "object", + "description": "Configuration for Qdrant connector", + "properties": { + "collection": { + "type": "string", + "description": "Collection Name. Example: Enter collection name", + "pattern": "^[a-zA-Z0-9_-]*$" + } + }, + "required": [ + "collection" + ] + }, + "SUPABASEAuthConfig": { + "type": "object", + "description": "Authentication configuration for Supabase", + "properties": { + "name": { + "type": "string", + "description": "Name. Example: Enter a descriptive name for your Supabase integration" + }, + "host": { + "type": "string", + "description": "Host. Example: Enter the host of the deployment", + "default": "aws-0-us-east-1.pooler.supabase.com" + }, + "port": { + "type": "number", + "description": "Port. Example: Enter the port of the deployment", + "default": 5432 + }, + "database": { + "type": "string", + "description": "Database. Example: Enter the database name" + }, + "username": { + "type": "string", + "description": "Username. Example: Enter the username" + }, + "password": { + "type": "string", + "format": "password", + "description": "Password. Example: Enter the username's password" + } + }, + "required": [ + "name", + "host", + "database", + "username", + "password" + ] + }, + "SUPABASEConfig": { + "type": "object", + "description": "Configuration for Supabase connector", + "properties": { + "table": { + "type": "string", + "description": "Table Name. Example: Enter
or .
", + "maxLength": 45, + "pattern": "^(?!\\b(add|alter|all|and|any|as|asc|avg|between|case|check|column|commit|constraint|create|cross|database|default|delete|desc|distinct|drop|else|exists|false|from|full|group|having|in|index|inner|insert|is|join|key|left|like|limit|max|min|not|null|on|or|order|outer|primary|right|rollback|select|set|sum|table|true|union|unique|update|values|view|where)\\b$)(?!.*--)(?!.*[-])[a-z][a-z0-9._]{0,44}$" + } + }, + "required": [ + "table" + ] + }, + "WEAVIATEAuthConfig": { + "type": "object", + "description": "Authentication configuration for Weaviate", + "properties": { + "name": { + "type": "string", + "description": "Name. Example: Enter a descriptive name for your Weaviate integration" + }, + "host": { + "type": "string", + "description": "Endpoint. Example: Enter your Weaviate Cluster REST Endpoint" + }, + "api-key": { + "type": "string", + "format": "password", + "description": "API Key. Example: Enter your API key", + "pattern": "^\\S.*\\S$|^\\S$" + } + }, + "required": [ + "name", + "host", + "api-key" + ] + }, + "WEAVIATEConfig": { + "type": "object", + "description": "Configuration for Weaviate connector", + "properties": { + "collection": { + "type": "string", + "description": "Collection Name. Example: Enter collection name", + "pattern": "^[A-Z][_0-9A-Za-z]*$" + } + }, + "required": [ + "collection" + ] + }, + "AZUREAISEARCHAuthConfig": { + "type": "object", + "description": "Authentication configuration for Azure AI Search", + "properties": { + "name": { + "type": "string", + "description": "Name. Example: Enter a descriptive name for your Azure AI Search integration" + }, + "service-name": { + "type": "string", + "description": "Azure AI Search Service Name. Example: Enter your Azure AI Search service name" + }, + "api-key": { + "type": "string", + "format": "password", + "description": "API Key. Example: Enter your API key", + "pattern": "^\\S.*\\S$|^\\S$" + } + }, + "required": [ + "name", + "service-name", + "api-key" + ] + }, + "AZUREAISEARCHConfig": { + "type": "object", + "description": "Configuration for Azure AI Search connector", + "properties": { + "index": { + "type": "string", + "description": "Index Name. Example: Enter index name", + "pattern": "^[a-z0-9][a-z0-9-]*[a-z0-9]$" + } + }, + "required": [ + "index" + ] + }, + "TURBOPUFFERAuthConfig": { + "type": "object", + "description": "Authentication configuration for Turbopuffer", + "properties": { + "name": { + "type": "string", + "description": "Name. Example: Enter a descriptive name for your Turbopuffer integration" + }, + "api-key": { + "type": "string", + "format": "password", + "description": "API Key. Example: Enter your API key", + "pattern": "^\\S.*\\S$|^\\S$" + } + }, + "required": [ + "name", + "api-key" + ] + }, + "TURBOPUFFERConfig": { + "type": "object", + "description": "Configuration for Turbopuffer connector", + "properties": { + "namespace": { + "type": "string", + "description": "Namespace. Example: Enter namespace name" + } + }, + "required": [ + "namespace" + ] + }, + "BEDROCKAuthConfig": { + "type": "object", + "description": "Authentication configuration for Amazon Bedrock", + "properties": { + "name": { + "type": "string", + "description": "Name. Example: Enter a descriptive name for your Amazon Bedrock integration" + }, + "access-key": { + "type": "string", + "format": "password", + "description": "Access Key. Example: Enter your Amazon Bedrock Access Key", + "pattern": "^\\S.*\\S$|^\\S$" + }, + "key": { + "type": "string", + "format": "password", + "description": "Secret Key. Example: Enter your Amazon Bedrock Secret Key", + "pattern": "^\\S.*\\S$|^\\S$" + }, + "region": { + "type": "string", + "description": "Region. Example: Region Name" + } + }, + "required": [ + "name", + "access-key", + "key", + "region" + ] + }, + "VERTEXAuthConfig": { + "type": "object", + "description": "Authentication configuration for Google Vertex AI", + "properties": { + "name": { + "type": "string", + "description": "Name. Example: Enter a descriptive name for your Google Vertex AI integration" + }, + "key": { + "type": "string", + "format": "password", + "description": "Service Account Json. Example: Enter the contents of your Google Vertex AI Service Account JSON file" + }, + "region": { + "type": "string", + "description": "Region. Example: Region Name, e.g. us-central1" + } + }, + "required": [ + "name", + "key", + "region" + ] + }, + "OPENAIAuthConfig": { + "type": "object", + "description": "Authentication configuration for OpenAI", + "properties": { + "name": { + "type": "string", + "description": "Name. Example: Enter a descriptive name for your OpenAI integration" + }, + "key": { + "type": "string", + "format": "password", + "description": "API Key. Example: Enter your OpenAI API Key", + "pattern": "^\\S.*\\S$|^\\S$" + } + }, + "required": [ + "name", + "key" + ] + }, + "VOYAGEAuthConfig": { + "type": "object", + "description": "Authentication configuration for Voyage AI", + "properties": { + "name": { + "type": "string", + "description": "Name. Example: Enter a descriptive name for your Voyage AI integration" + }, + "key": { + "type": "string", + "format": "password", + "description": "API Key. Example: Enter your Voyage AI API Key", + "pattern": "^\\S.*\\S$|^\\S$" + } + }, + "required": [ + "name", + "key" + ] + }, + "SourceConnectorInput": { + "type": "object", + "description": "Source connector configuration", + "properties": { + "id": { + "type": "string", + "format": "uuid", + "description": "Unique identifier for the source connector" + }, + "type": { + "type": "string", + "description": "Type of source connector", + "enum": [ + "AWS_S3", + "AZURE_BLOB", + "CONFLUENCE", + "DISCORD", + "DROPBOX", + "DROPBOX_OAUTH", + "DROPBOX_OAUTH_MULTI", + "DROPBOX_OAUTH_MULTI_CUSTOM", + "FILE_UPLOAD", + "GOOGLE_DRIVE_OAUTH", + "GOOGLE_DRIVE", + "GOOGLE_DRIVE_OAUTH_MULTI", + "GOOGLE_DRIVE_OAUTH_MULTI_CUSTOM", + "FIRECRAWL", + "GCS", + "INTERCOM", + "NOTION", + "NOTION_OAUTH_MULTI", + "NOTION_OAUTH_MULTI_CUSTOM", + "ONE_DRIVE", + "SHAREPOINT", + "WEB_CRAWLER", + "GITHUB", + "FIREFLIES", + "GMAIL" + ] + }, + "config": { + "oneOf": [ + { + "$ref": "#/components/schemas/AWS_S3Config" + }, + { + "$ref": "#/components/schemas/AZURE_BLOBConfig" + }, + { + "$ref": "#/components/schemas/CONFLUENCEConfig" + }, + { + "$ref": "#/components/schemas/DISCORDConfig" + }, + { + "$ref": "#/components/schemas/DROPBOXConfig" + }, + { + "$ref": "#/components/schemas/GOOGLE_DRIVE_OAUTHConfig" + }, + { + "$ref": "#/components/schemas/GOOGLE_DRIVEConfig" + }, + { + "$ref": "#/components/schemas/GOOGLE_DRIVE_OAUTH_MULTIConfig" + }, + { + "$ref": "#/components/schemas/GOOGLE_DRIVE_OAUTH_MULTI_CUSTOMConfig" + }, + { + "$ref": "#/components/schemas/FIRECRAWLConfig" + }, + { + "$ref": "#/components/schemas/GCSConfig" + }, + { + "$ref": "#/components/schemas/INTERCOMConfig" + }, + { + "$ref": "#/components/schemas/NOTIONConfig" + }, + { + "$ref": "#/components/schemas/ONE_DRIVEConfig" + }, + { + "$ref": "#/components/schemas/SHAREPOINTConfig" + }, + { + "$ref": "#/components/schemas/WEB_CRAWLERConfig" + }, + { + "$ref": "#/components/schemas/GITHUBConfig" + }, + { + "$ref": "#/components/schemas/FIREFLIESConfig" + }, + { + "$ref": "#/components/schemas/GMAILConfig" + } + ], + "description": "Configuration specific to the connector type" + } + }, + "required": [ + "id", + "type", + "config" + ] + }, + "DestinationConnectorInput": { + "type": "object", + "description": "Destination connector configuration", + "properties": { + "id": { + "type": "string", + "format": "uuid", + "description": "Unique identifier for the destination connector" + }, + "type": { + "type": "string", + "description": "Type of destination connector", + "enum": [ + "CAPELLA", + "DATASTAX", + "ELASTIC", + "PINECONE", + "SINGLESTORE", + "MILVUS", + "POSTGRESQL", + "QDRANT", + "SUPABASE", + "WEAVIATE", + "AZUREAISEARCH", + "TURBOPUFFER" + ] + }, + "config": { + "oneOf": [ + { + "$ref": "#/components/schemas/CAPELLAConfig" + }, + { + "$ref": "#/components/schemas/DATASTAXConfig" + }, + { + "$ref": "#/components/schemas/ELASTICConfig" + }, + { + "$ref": "#/components/schemas/PINECONEConfig" + }, + { + "$ref": "#/components/schemas/SINGLESTOREConfig" + }, + { + "$ref": "#/components/schemas/MILVUSConfig" + }, + { + "$ref": "#/components/schemas/POSTGRESQLConfig" + }, + { + "$ref": "#/components/schemas/QDRANTConfig" + }, + { + "$ref": "#/components/schemas/SUPABASEConfig" + }, + { + "$ref": "#/components/schemas/WEAVIATEConfig" + }, + { + "$ref": "#/components/schemas/AZUREAISEARCHConfig" + }, + { + "$ref": "#/components/schemas/TURBOPUFFERConfig" + } + ], + "description": "Configuration specific to the connector type" + } + }, + "required": [ + "id", + "type", + "config" + ] + }, + "AIPlatformConnectorInput": { + "type": "object", + "description": "AI platform configuration", + "properties": { + "id": { + "type": "string", + "format": "uuid", + "description": "Unique identifier for the AI platform" + }, + "type": { + "type": "string", + "description": "Type of AI platform", + "enum": [ + "BEDROCK", + "VERTEX", + "OPENAI", + "VOYAGE" + ] + }, + "config": { + "oneOf": [], + "description": "Configuration specific to the AI platform" + } + }, + "required": [ + "id", + "type", + "config" + ] + }, + "PipelineSourceConnectorRequest": { + "type": "array", + "minItems": 1, + "items": { + "$ref": "#/components/schemas/SourceConnectorSchema" + } + }, + "PipelineDestinationConnectorRequest": { + "$ref": "#/components/schemas/DestinationConnectorSchema" + } + }, + "parameters": {} + }, + "paths": { + "/org/{organizationId}/pipelines": { + "post": { + "operationId": "createPipeline", + "summary": "Create a new pipeline", + "description": "Creates a new pipeline with source connectors, destination connector, and AI platform configuration. The specific configuration fields required depend on the connector types selected.", + "tags": [ + "Pipelines" + ], + "security": [ + { + "bearerAuth": [] + } + ], + "parameters": [ + { + "schema": { + "type": "string", + "description": "The unique identifier of the organization", + "example": "org_123" + }, + "required": true, + "name": "organizationId", + "in": "path" + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PipelineConfigurationSchema" + }, + "example": { + "sourceConnectors": [ + { + "id": "63fa809d-a380-4642-918b-cda69c060a4a", + "type": "AWS_S3", + "config": {} + } + ], + "destinationConnector": { + "id": "fae78d69-6c7f-4147-bba5-9d4c18446a52", + "type": "CAPELLA", + "config": {} + }, + "aiPlatform": { + "id": "e016675f-8a2c-48f2-b206-38476dddbe5d", + "type": "BEDROCK", + "config": { + "embeddingModel": "VECTORIZE_OPEN_AI_TEXT_EMBEDDING_2", + "chunkingStrategy": "FIXED", + "chunkSize": 20, + "chunkOverlap": 100, + "dimensions": 100, + "extractionStrategy": "FAST" + } + }, + "pipelineName": "Data Processing Pipeline", + "schedule": { + "type": "manual" + } + } + } + } + }, + "responses": { + "200": { + "description": "Pipeline created successfully", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreatePipelineResponse" + }, + "example": { + "message": "Operation completed successfully", + "data": {} + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + } + } + }, + "get": { + "operationId": "getPipelines", + "summary": "Get all pipelines", + "description": "Returns a list of all pipelines in the organization", + "tags": [ + "Pipelines" + ], + "security": [ + { + "bearerAuth": [] + } + ], + "parameters": [ + { + "schema": { + "type": "string", + "description": "The unique identifier of the organization", + "example": "org_123" + }, + "required": true, + "name": "organizationId", + "in": "path" + } + ], + "responses": { + "200": { + "description": "Pipelines retrieved successfully", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetPipelinesResponse" + }, + "example": { + "message": "Operation completed successfully", + "data": [ + { + "id": "069fc77c-affd-4a0d-97c8-e1cd408167ba", + "name": "Example Item", + "type": "example-type", + "status": "active" + } + ] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + } + } + } + }, + "/org/{organizationId}/pipelines/{pipelineId}": { + "get": { + "operationId": "getPipeline", + "summary": "Get a pipeline", + "description": "Get a pipeline", + "tags": [ + "Pipelines" + ], + "security": [ + { + "bearerAuth": [] + } + ], + "parameters": [ + { + "schema": { + "type": "string", + "description": "The unique identifier of the organization", + "example": "org_123" + }, + "required": true, + "name": "organizationId", + "in": "path" + }, + { + "schema": { + "type": "string", + "description": "The unique identifier of the pipeline", + "example": "pipe_456" + }, + "required": true, + "name": "pipelineId", + "in": "path" + } + ], + "responses": { + "200": { + "description": "Pipeline fetched successfully", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetPipelineResponse" + }, + "example": { + "message": "Operation completed successfully", + "data": { + "id": "6eeb28ce-f90a-46dd-9cc1-a64a3e845a63", + "name": "My PipelineSummary", + "documentCount": 42, + "sourceConnectorAuthIds": [], + "destinationConnectorAuthIds": [], + "aiPlatformAuthIds": [], + "sourceConnectorTypes": [], + "destinationConnectorTypes": [], + "aiPlatformTypes": [], + "createdAt": "example-createdAt", + "createdBy": "example-createdBy", + "status": "active", + "configDoc": {}, + "sourceConnectors": [], + "destinationConnectors": [], + "aiPlatforms": [] + } + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + } + } + }, + "delete": { + "operationId": "deletePipeline", + "summary": "Delete a pipeline", + "description": "Delete a pipeline", + "tags": [ + "Pipelines" + ], + "security": [ + { + "bearerAuth": [] + } + ], + "parameters": [ + { + "schema": { + "type": "string", + "description": "The unique identifier of the organization", + "example": "org_123" + }, + "required": true, + "name": "organizationId", + "in": "path" + }, + { + "schema": { + "type": "string", + "description": "The unique identifier of the pipeline", + "example": "pipe_456" + }, + "required": true, + "name": "pipelineId", + "in": "path" + } + ], + "responses": { + "200": { + "description": "Pipeline deleted successfully", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DeletePipelineResponse" + }, + "example": { + "message": "Operation completed successfully" + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + } + } + } + }, + "/org/{organizationId}/pipelines/{pipelineId}/events": { + "get": { + "operationId": "getPipelineEvents", + "summary": "Get pipeline events", + "description": "Get pipeline events", + "tags": [ + "Pipelines" + ], + "security": [ + { + "bearerAuth": [] + } + ], + "parameters": [ + { + "schema": { + "type": "string", + "description": "The unique identifier of the organization", + "example": "org_123" + }, + "required": true, + "name": "organizationId", + "in": "path" + }, + { + "schema": { + "type": "string", + "description": "The unique identifier of the pipeline", + "example": "pipe_456" + }, + "required": true, + "name": "pipelineId", + "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" + }, + "example": { + "message": "Operation completed successfully", + "nextToken": "token_example_123456", + "data": [ + { + "id": "f1166af6-aebe-4877-b742-3a3e829e2a86", + "name": "Example Item", + "type": "example-type", + "status": "active" + } + ] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + } + } + } + }, + "/org/{organizationId}/pipelines/{pipelineId}/metrics": { + "get": { + "operationId": "getPipelineMetrics", + "summary": "Get pipeline metrics", + "description": "Get pipeline metrics", + "tags": [ + "Pipelines" + ], + "security": [ + { + "bearerAuth": [] + } + ], + "parameters": [ + { + "schema": { + "type": "string", + "description": "The unique identifier of the organization", + "example": "org_123" + }, + "required": true, + "name": "organizationId", + "in": "path" + }, + { + "schema": { + "type": "string", + "description": "The unique identifier of the pipeline", + "example": "pipe_456" + }, + "required": true, + "name": "pipelineId", + "in": "path" + } + ], + "responses": { + "200": { + "description": "Pipeline metrics fetched successfully", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetPipelineMetricsResponse" + }, + "example": { + "message": "Operation completed successfully", + "data": [ + { + "id": "4236a4e7-1612-42d9-a6d7-a11a26fdecf4", + "name": "Example Item", + "type": "example-type", + "status": "active" + } + ] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + } + } + } + }, + "/org/{organizationId}/pipelines/{pipelineId}/retrieval": { + "post": { + "operationId": "retrieveDocuments", + "summary": "Retrieve documents from a pipeline", + "description": "Retrieve documents from a pipeline", + "tags": [ + "Pipelines" + ], + "security": [ + { + "bearerAuth": [] + } + ], + "parameters": [ + { + "schema": { + "type": "string", + "description": "The unique identifier of the organization", + "example": "org_123" + }, + "required": true, + "name": "organizationId", + "in": "path" + }, + { + "schema": { + "type": "string", + "description": "The unique identifier of the pipeline", + "example": "pipe_456" + }, + "required": true, + "name": "pipelineId", + "in": "path" + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RetrieveDocumentsRequest" + }, + "example": { + "question": "example-question", + "numResults": 100, + "rerank": true, + "metadata-filters": [], + "context": { + "messages": [] + }, + "advanced-query": { + "mode": "text", + "text-fields": [], + "match-type": "match", + "text-boost": 100, + "filters": {} + } + } + } + } + }, + "responses": { + "200": { + "description": "Documents retrieved successfully", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RetrieveDocumentsResponse" + }, + "example": { + "question": "example-question", + "documents": [], + "average_relevancy": 100, + "ndcg": 100 + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + } + } + } + }, + "/org/{organizationId}/pipelines/{pipelineId}/start": { + "post": { + "operationId": "startPipeline", + "summary": "Start a pipeline", + "description": "Start a pipeline", + "tags": [ + "Pipelines" + ], + "security": [ + { + "bearerAuth": [] + } + ], + "parameters": [ + { + "schema": { + "type": "string", + "description": "The unique identifier of the organization", + "example": "org_123" + }, + "required": true, + "name": "organizationId", + "in": "path" + }, + { + "schema": { + "type": "string", + "description": "The unique identifier of the pipeline", + "example": "pipe_456" + }, + "required": true, + "name": "pipelineId", + "in": "path" + } + ], + "responses": { + "200": { + "description": "Pipeline started successfully", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/StartPipelineResponse" + }, + "example": { + "message": "Operation completed successfully" + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + } + } + } + }, + "/org/{organizationId}/pipelines/{pipelineId}/stop": { + "post": { + "operationId": "stopPipeline", + "summary": "Stop a pipeline", + "description": "Stop a pipeline", + "tags": [ + "Pipelines" + ], + "security": [ + { + "bearerAuth": [] + } + ], + "parameters": [ + { + "schema": { + "type": "string", + "description": "The unique identifier of the organization", + "example": "org_123" + }, + "required": true, + "name": "organizationId", + "in": "path" + }, + { + "schema": { + "type": "string", + "description": "The unique identifier of the pipeline", + "example": "pipe_456" + }, + "required": true, + "name": "pipelineId", + "in": "path" + } + ], + "responses": { + "200": { + "description": "Pipeline stopped successfully", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/StopPipelineResponse" + }, + "example": { + "message": "Operation completed successfully" + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + } + } + } + }, + "/org/{organizationId}/pipelines/{pipelineId}/deep-research": { + "post": { + "operationId": "startDeepResearch", + "summary": "Start a deep research", + "description": "Start a deep research", + "tags": [ + "Pipelines" + ], + "security": [ + { + "bearerAuth": [] + } + ], + "parameters": [ + { + "schema": { + "type": "string", + "description": "The unique identifier of the organization", + "example": "org_123" + }, + "required": true, + "name": "organizationId", + "in": "path" + }, + { + "schema": { + "type": "string", + "description": "The unique identifier of the pipeline", + "example": "pipe_456" + }, + "required": true, + "name": "pipelineId", + "in": "path" + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/StartDeepResearchRequest" + }, + "example": { + "query": "example-query", + "webSearch": true, + "schema": "example-schema", + "n8n": { + "account": "example-account", + "webhookPath": "/example/path", + "headers": {} + } + } + } + } + }, + "responses": { + "200": { + "description": "Deep Research started successfully", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/StartDeepResearchResponse" + }, + "example": { + "researchId": "2bd4ac5d-1eed-4da8-8247-78a6f856dae3" + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + } + } + } + }, + "/org/{organizationId}/pipelines/{pipelineId}/deep-research/{researchId}": { + "get": { + "operationId": "getDeepResearchResult", + "summary": "Get deep research result", + "description": "Get deep research result", + "tags": [ + "Pipelines" + ], + "security": [ + { + "bearerAuth": [] + } + ], + "parameters": [ + { + "schema": { + "type": "string", + "description": "The unique identifier of the organization", + "example": "org_123" + }, + "required": true, + "name": "organizationId", + "in": "path" + }, + { + "schema": { + "type": "string", + "description": "The unique identifier of the pipeline", + "example": "pipe_456" + }, + "required": true, + "name": "pipelineId", + "in": "path" + }, + { + "schema": { + "type": "string", + "description": "The unique identifier of the deep research", + "example": "8070" + }, + "required": true, + "name": "researchId", + "in": "path" + } + ], + "responses": { + "200": { + "description": "Get Deep Research was successful", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetDeepResearchResponse" + }, + "example": { + "ready": true, + "data": { + "success": true, + "events": [], + "markdown": "example-markdown", + "error": null + } + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + } + } + } + }, + "/org/{organizationId}/connectors/sources": { + "post": { + "operationId": "createSourceConnector", + "summary": "Create a new source connector", + "description": "Creates a new source connector for data ingestion. The specific configuration fields required depend on the connector type selected.", + "tags": [ + "Source Connectors" + ], + "security": [ + { + "bearerAuth": [] + } + ], + "parameters": [ + { + "schema": { + "type": "string", + "description": "The unique identifier of the organization", + "example": "org_123" + }, + "required": true, + "name": "organizationId", + "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" + }, + "example": { + "message": "Operation completed successfully", + "connector": { + "name": "My CreatedSourceConnector", + "id": "dceb80fd-6ec3-42ce-9819-8e97481e9537" + } + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + } + } + }, + "get": { + "operationId": "getSourceConnectors", + "summary": "Get all existing source connectors", + "description": "Get all existing source connectors", + "tags": [ + "Source Connectors" + ], + "security": [ + { + "bearerAuth": [] + } + ], + "parameters": [ + { + "schema": { + "type": "string", + "description": "The unique identifier of the organization", + "example": "org_123" + }, + "required": true, + "name": "organizationId", + "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" + ] + }, + "example": { + "sourceConnectors": [ + { + "id": "a84f0d0e-141e-48e1-87ed-1c8aa8639ecb", + "type": "AWS_S3", + "name": "S3 Documents Bucket", + "createdAt": "2025-07-03T20:44:29.277Z", + "verificationStatus": "verified" + }, + { + "id": "524c038d-f8b4-4ac7-8cbc-88e548c0250a", + "type": "GOOGLE_DRIVE", + "name": "Team Shared Drive", + "createdAt": "2025-07-03T20:44:29.277Z", + "verificationStatus": "verified" + } + ] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + } + } + } + }, + "/org/{organizationId}/connectors/sources/{sourceConnectorId}": { + "get": { + "operationId": "getSourceConnector", + "summary": "Get a source connector", + "description": "Get a source connector", + "tags": [ + "Source Connectors" + ], + "security": [ + { + "bearerAuth": [] + } + ], + "parameters": [ + { + "schema": { + "type": "string", + "description": "The unique identifier of the organization", + "example": "org_123" + }, + "required": true, + "name": "organizationId", + "in": "path" + }, + { + "schema": { + "type": "string", + "description": "The unique identifier of the source connector", + "example": "cb184aec-0fce-4f39-8c4a-919af8425cd5" + }, + "required": true, + "name": "sourceConnectorId", + "in": "path" + } + ], + "responses": { + "200": { + "description": "Get a source connector", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SourceConnector" + }, + "example": { + "id": "468f7065-235b-4240-9feb-34e3c58584dd", + "type": "example-type", + "name": "My SourceConnector", + "configDoc": {}, + "createdAt": "example-createdAt", + "createdById": "3324748e-4dfb-4982-a6eb-7facee7a0048", + "lastUpdatedById": "d48e5bdf-f576-41e3-bf32-279f9c021449", + "createdByEmail": "user@example.com", + "lastUpdatedByEmail": "user@example.com", + "errorMessage": "Operation completed successfully", + "verificationStatus": "verified" + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + } + } + }, + "patch": { + "operationId": "updateSourceConnector", + "summary": "Update a source connector", + "description": "Update a source connector", + "tags": [ + "Source Connectors" + ], + "security": [ + { + "bearerAuth": [] + } + ], + "parameters": [ + { + "schema": { + "type": "string", + "description": "The unique identifier of the organization", + "example": "org_123" + }, + "required": true, + "name": "organizationId", + "in": "path" + }, + { + "schema": { + "type": "string", + "description": "The unique identifier of the source connector", + "example": "cb184aec-0fce-4f39-8c4a-919af8425cd5" + }, + "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" + }, + "example": { + "message": "Operation completed successfully", + "data": { + "updatedConnector": { + "id": "8b519593-6fb7-433d-9ca9-e6a0fe3cb545", + "type": "example-type", + "name": "My SourceConnector", + "configDoc": {}, + "createdAt": "example-createdAt", + "createdById": "8495fb6a-6312-4a25-9d15-2d5386c9c9e5", + "lastUpdatedById": "1876f29f-0d15-4044-8276-ae11471d8d06", + "createdByEmail": "user@example.com", + "lastUpdatedByEmail": "user@example.com", + "errorMessage": "Operation completed successfully", + "verificationStatus": "verified" + }, + "pipelineIds": [] + } + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + } + } + }, + "delete": { + "operationId": "deleteSourceConnector", + "summary": "Delete a source connector", + "description": "Delete a source connector", + "tags": [ + "Source Connectors" + ], + "security": [ + { + "bearerAuth": [] + } + ], + "parameters": [ + { + "schema": { + "type": "string", + "description": "The unique identifier of the organization", + "example": "org_123" + }, + "required": true, + "name": "organizationId", + "in": "path" + }, + { + "schema": { + "type": "string", + "description": "The unique identifier of the source connector", + "example": "cb184aec-0fce-4f39-8c4a-919af8425cd5" + }, + "required": true, + "name": "sourceConnectorId", + "in": "path" + } + ], + "responses": { + "200": { + "description": "Source connector successfully deleted", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DeleteSourceConnectorResponse" + }, + "example": { + "message": "Operation completed successfully" + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + } + } + } + }, + "/org/{organizationId}/connectors/destinations": { + "post": { + "operationId": "createDestinationConnector", + "summary": "Create a new destination connector", + "description": "Creates a new destination connector for data storage. The specific configuration fields required depend on the connector type selected.", + "tags": [ + "Destination Connectors" + ], + "security": [ + { + "bearerAuth": [] + } + ], + "parameters": [ + { + "schema": { + "type": "string", + "description": "The unique identifier of the organization", + "example": "org_123" + }, + "required": true, + "name": "organizationId", + "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" + }, + "example": { + "message": "Operation completed successfully", + "connector": { + "name": "My CreatedDestinationConnector", + "id": "6d5cab2b-e0dc-460b-a172-7159a0d36e27" + } + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + } + } + }, + "get": { + "operationId": "getDestinationConnectors", + "summary": "Get all existing destination connectors", + "description": "Get all existing destination connectors", + "tags": [ + "Destination Connectors" + ], + "security": [ + { + "bearerAuth": [] + } + ], + "parameters": [ + { + "schema": { + "type": "string", + "description": "The unique identifier of the organization", + "example": "org_123" + }, + "required": true, + "name": "organizationId", + "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" + ] + }, + "example": { + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + } + } + } + }, + "/org/{organizationId}/connectors/destinations/{destinationConnectorId}": { + "get": { + "operationId": "getDestinationConnector", + "summary": "Get a destination connector", + "description": "Get a destination connector", + "tags": [ + "Destination Connectors" + ], + "security": [ + { + "bearerAuth": [] + } + ], + "parameters": [ + { + "schema": { + "type": "string", + "description": "The unique identifier of the organization", + "example": "org_123" + }, + "required": true, + "name": "organizationId", + "in": "path" + }, + { + "schema": { + "type": "string", + "description": "The unique identifier of the destination connector", + "example": "cb184aec-0fce-4f39-8c4a-919af8425cd5" + }, + "required": true, + "name": "destinationConnectorId", + "in": "path" + } + ], + "responses": { + "200": { + "description": "Get a destination connector", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DestinationConnector" + }, + "example": { + "id": "ed9042f5-70d8-4b45-9cd4-fcf33a71d34e", + "type": "example-type", + "name": "My DestinationConnector", + "configDoc": {}, + "createdAt": "example-createdAt", + "createdById": "2f5a8b35-e098-4951-ac31-21ec94016a54", + "lastUpdatedById": "8adb671e-006a-43d1-bd0b-d8651dddcb11", + "createdByEmail": "user@example.com", + "lastUpdatedByEmail": "user@example.com", + "errorMessage": "Operation completed successfully", + "verificationStatus": "verified" + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + } + } + }, + "patch": { + "operationId": "updateDestinationConnector", + "summary": "Update a destination connector", + "description": "Update a destination connector", + "tags": [ + "Destination Connectors" + ], + "security": [ + { + "bearerAuth": [] + } + ], + "parameters": [ + { + "schema": { + "type": "string", + "description": "The unique identifier of the organization", + "example": "org_123" + }, + "required": true, + "name": "organizationId", + "in": "path" + }, + { + "schema": { + "type": "string", + "description": "The unique identifier of the destination connector", + "example": "cb184aec-0fce-4f39-8c4a-919af8425cd5" + }, + "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" + }, + "example": { + "message": "Operation completed successfully", + "data": { + "updatedConnector": { + "id": "d55b33d8-22b3-4a79-8aa3-b360777d2c5f", + "type": "example-type", + "name": "My DestinationConnector", + "configDoc": {}, + "createdAt": "example-createdAt", + "createdById": "9b5d456e-1061-4226-8f7b-07528ff52167", + "lastUpdatedById": "8c5aa686-6147-4e52-81ed-202811f8af03", + "createdByEmail": "user@example.com", + "lastUpdatedByEmail": "user@example.com", + "errorMessage": "Operation completed successfully", + "verificationStatus": "verified" + }, + "pipelineIds": [] + } + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + } + } + }, + "delete": { + "operationId": "deleteDestinationConnector", + "summary": "Delete a destination connector", + "description": "Delete a destination connector", + "tags": [ + "Destination Connectors" + ], + "security": [ + { + "bearerAuth": [] + } + ], + "parameters": [ + { + "schema": { + "type": "string", + "description": "The unique identifier of the organization", + "example": "org_123" + }, + "required": true, + "name": "organizationId", + "in": "path" + }, + { + "schema": { + "type": "string", + "description": "The unique identifier of the destination connector", + "example": "cb184aec-0fce-4f39-8c4a-919af8425cd5" + }, + "required": true, + "name": "destinationConnectorId", + "in": "path" + } + ], + "responses": { + "200": { + "description": "Destination connector successfully deleted", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DeleteDestinationConnectorResponse" + }, + "example": { + "message": "Operation completed successfully" + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + } + } + } + }, + "/org/{organizationId}/connectors/aiplatforms": { + "post": { + "operationId": "createAIPlatformConnector", + "summary": "Create a new AI platform connector", + "description": "Creates a new AI platform connector for embeddings and processing. The specific configuration fields required depend on the platform type selected.", + "tags": [ + "AI Platform Connectors" + ], + "security": [ + { + "bearerAuth": [] + } + ], + "parameters": [ + { + "schema": { + "type": "string", + "description": "The unique identifier of the organization", + "example": "org_123" + }, + "required": true, + "name": "organizationId", + "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" + }, + "example": { + "message": "Operation completed successfully", + "connector": { + "name": "My CreatedAIPlatformConnector", + "id": "27b5f4e4-ba84-4092-8547-35afadf2b44b" + } + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + } + } + }, + "get": { + "operationId": "getAIPlatformConnectors", + "summary": "Get all existing AI Platform connectors", + "description": "Get all existing AI Platform connectors", + "tags": [ + "AI Platform Connectors" + ], + "security": [ + { + "bearerAuth": [] + } + ], + "parameters": [ + { + "schema": { + "type": "string", + "description": "The unique identifier of the organization", + "example": "org_123" + }, + "required": true, + "name": "organizationId", + "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" + ] + }, + "example": { + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + } + } + } + }, + "/org/{organizationId}/connectors/aiplatforms/{aiPlatformConnectorId}": { + "get": { + "operationId": "getAIPlatformConnector", + "summary": "Get an AI platform connector", + "description": "Get an AI platform connector", + "tags": [ + "AI Platform Connectors" + ], + "security": [ + { + "bearerAuth": [] + } + ], + "parameters": [ + { + "schema": { + "type": "string", + "description": "The unique identifier of the organization", + "example": "org_123" + }, + "required": true, + "name": "organizationId", + "in": "path" + }, + { + "schema": { + "type": "string", + "description": "The unique identifier of the AI platform connector", + "example": "cb184aec-0fce-4f39-8c4a-919af8425cd5" + }, + "required": true, + "name": "aiPlatformConnectorId", + "in": "path" + } + ], + "responses": { + "200": { + "description": "Get an AI platform connector", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AIPlatform" + }, + "example": { + "id": "3f10a091-9431-40e7-b57f-5bd056be9d42", + "type": "example-type", + "name": "My AIPlatform", + "configDoc": {}, + "createdAt": "example-createdAt", + "createdById": "6f26019b-0665-450f-9030-cf1c4b2aaf66", + "lastUpdatedById": "4de5e3a4-2cae-4032-8029-543bd0a7a35a", + "createdByEmail": "user@example.com", + "lastUpdatedByEmail": "user@example.com", + "errorMessage": "Operation completed successfully", + "verificationStatus": "verified" + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + } + } + }, + "patch": { + "operationId": "updateAIPlatformConnector", + "summary": "Update an AI Platform connector", + "description": "Update an AI Platform connector", + "tags": [ + "AI Platform Connectors" + ], + "security": [ + { + "bearerAuth": [] + } + ], + "parameters": [ + { + "schema": { + "type": "string", + "description": "The unique identifier of the organization", + "example": "org_123" + }, + "required": true, + "name": "organizationId", + "in": "path" + }, + { + "schema": { + "type": "string", + "description": "The unique identifier of the AI platform connector", + "example": "cb184aec-0fce-4f39-8c4a-919af8425cd5" + }, + "required": true, + "name": "aiPlatformConnectorId", + "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" + }, + "example": { + "message": "Operation completed successfully", + "data": { + "updatedConnector": { + "id": "18e41420-b1d1-4b65-8b69-26d0318a6aa1", + "type": "example-type", + "name": "My AIPlatform", + "configDoc": {}, + "createdAt": "example-createdAt", + "createdById": "bacba87e-1ac7-42c7-8a2f-1c79baae8781", + "lastUpdatedById": "38f138e9-77c5-4950-bb06-67e5f19f97bc", + "createdByEmail": "user@example.com", + "lastUpdatedByEmail": "user@example.com", + "errorMessage": "Operation completed successfully", + "verificationStatus": "verified" + }, + "pipelineIds": [] + } + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + } + } + }, + "delete": { + "operationId": "deleteAIPlatform", + "summary": "Delete an AI platform connector", + "description": "Delete an AI platform connector", + "tags": [ + "AI Platform Connectors" + ], + "security": [ + { + "bearerAuth": [] + } + ], + "parameters": [ + { + "schema": { + "type": "string", + "description": "The unique identifier of the organization", + "example": "org_123" + }, + "required": true, + "name": "organizationId", + "in": "path" + }, + { + "schema": { + "type": "string", + "description": "The unique identifier of the AI platform connector", + "example": "cb184aec-0fce-4f39-8c4a-919af8425cd5" + }, + "required": true, + "name": "aiPlatformConnectorId", + "in": "path" + } + ], + "responses": { + "200": { + "description": "AI Platform connector successfully deleted", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DeleteAIPlatformConnectorResponse" + }, + "example": { + "message": "Operation completed successfully" + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + } + } + } + }, + "/org/{organizationId}/uploads/{connectorId}/files": { + "get": { + "operationId": "getUploadFilesFromConnector", + "summary": "Get uploaded files from a file upload connector", + "description": "Get uploaded files from a file upload connector", + "tags": [ + "Uploads" + ], + "security": [ + { + "bearerAuth": [] + } + ], + "parameters": [ + { + "schema": { + "type": "string", + "description": "The unique identifier of the organization", + "example": "org_123" + }, + "required": true, + "name": "organizationId", + "in": "path" + }, + { + "schema": { + "type": "string", + "description": "The unique identifier of the connector", + "example": "pipe_456" + }, + "required": true, + "name": "connectorId", + "in": "path" + } + ], + "responses": { + "200": { + "description": "Files retrieved successfully", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetUploadFilesResponse" + }, + "example": { + "message": "Operation completed successfully", + "files": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + } + } + }, + "put": { + "operationId": "startFileUploadToConnector", + "summary": "Upload a file to a file upload connector", + "description": "Upload a file to a file upload connector", + "tags": [ + "Uploads" + ], + "security": [ + { + "bearerAuth": [] + } + ], + "parameters": [ + { + "schema": { + "type": "string", + "description": "The unique identifier of the organization", + "example": "org_123" + }, + "required": true, + "name": "organizationId", + "in": "path" + }, + { + "schema": { + "type": "string", + "description": "The unique identifier of the connector", + "example": "pipe_456" + }, + "required": true, + "name": "connectorId", + "in": "path" + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/StartFileUploadToConnectorRequest" + }, + "example": { + "name": "My StartFileUploadToConnectorRequest", + "contentType": "document", + "metadata": "example-metadata" + } + } + } + }, + "responses": { + "200": { + "description": "File ready to be uploaded", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/StartFileUploadToConnectorResponse" + }, + "example": { + "uploadUrl": "https://api.example.com" + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + } + } + } + }, + "/org/{organizationId}/uploads/{connectorId}/files/{fileName}": { + "delete": { + "operationId": "deleteFileFromConnector", + "summary": "Delete a file from a File Upload connector", + "description": "Delete a file from a File Upload connector", + "tags": [ + "Uploads" + ], + "security": [ + { + "bearerAuth": [] + } + ], + "parameters": [ + { + "schema": { + "type": "string", + "description": "The unique identifier of the organization", + "example": "org_123" + }, + "required": true, + "name": "organizationId", + "in": "path" + }, + { + "schema": { + "type": "string", + "description": "The unique identifier of the connector", + "example": "pipe_456" + }, + "required": true, + "name": "connectorId", + "in": "path" + }, + { + "schema": { + "type": "string", + "description": "The unique identifier of the file name", + "example": "pipe_456" + }, + "required": true, + "name": "fileName", + "in": "path" + } + ], + "responses": { + "200": { + "description": "File deleted successfully", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DeleteFileResponse" + }, + "example": { + "message": "Operation completed successfully", + "fileName": "document.pdf" + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + } + } + } + }, + "/org/{organizationId}/extraction": { + "post": { + "operationId": "startExtraction", + "summary": "Start content extraction from a file", + "description": "Start content extraction from a file", + "tags": [ + "Extraction" + ], + "security": [ + { + "bearerAuth": [] + } + ], + "parameters": [ + { + "schema": { + "type": "string", + "description": "The unique identifier of the organization", + "example": "org_123" + }, + "required": true, + "name": "organizationId", + "in": "path" + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/StartExtractionRequest" + }, + "example": { + "fileId": "8e309a3e-d40c-42f2-bf5f-0b2b749a8a6d", + "type": "iris", + "chunkingStrategy": "markdown", + "chunkSize": 20, + "metadata": { + "schemas": [], + "inferSchema": true + } + } + } + } + }, + "responses": { + "200": { + "description": "Extraction started successfully", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/StartExtractionResponse" + }, + "example": { + "message": "Operation completed successfully", + "extractionId": "d2251b25-5ad5-455b-8ec4-addee68f78af" + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + } + } + } + }, + "/org/{organizationId}/extraction/{extractionId}": { + "get": { + "operationId": "getExtractionResult", + "summary": "Get extraction result", + "description": "Get extraction result", + "tags": [ + "Extraction" + ], + "security": [ + { + "bearerAuth": [] + } + ], + "parameters": [ + { + "schema": { + "type": "string", + "description": "The unique identifier of the organization", + "example": "org_123" + }, + "required": true, + "name": "organizationId", + "in": "path" + }, + { + "schema": { + "type": "string", + "description": "The unique identifier of the extraction job", + "example": "ext_789" + }, + "required": true, + "name": "extractionId", + "in": "path" + } + ], + "responses": { + "200": { + "description": "Extraction started successfully", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ExtractionResultResponse" + }, + "example": { + "ready": true, + "data": { + "success": true, + "chunks": [], + "text": "example-text", + "metadata": "example-metadata", + "metadataSchema": "example-metadataSchema", + "chunksMetadata": [], + "chunksSchema": [], + "error": null + } + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + } + } + } + }, + "/org/{organizationId}/files": { + "post": { + "operationId": "startFileUpload", + "summary": "Upload a generic file to the platform", + "tags": [ + "Files" + ], + "security": [ + { + "bearerAuth": [] + } + ], + "parameters": [ + { + "schema": { + "type": "string", + "description": "The unique identifier of the organization", + "example": "org_123" + }, + "required": true, + "name": "organizationId", + "in": "path" + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/StartFileUploadRequest" + }, + "example": { + "name": "My StartFileUploadRequest", + "contentType": "document" + } + } + } + }, + "responses": { + "200": { + "description": "File upload started successfully", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/StartFileUploadResponse" + }, + "example": { + "fileId": "1805d09c-f8a7-4e45-9fa6-5aec7c01ac94", + "uploadUrl": "https://api.example.com" + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + } + } + } + }, + "/org/{organizationId}/connectors/sources/{sourceConnectorId}/users": { + "post": { + "operationId": "addUserToSourceConnector", + "summary": "Add a user to a source connector", + "description": "Add a user to a source connector", + "tags": [ + "Source Connectors" + ], + "security": [ + { + "bearerAuth": [] + } + ], + "parameters": [ + { + "schema": { + "type": "string", + "description": "The unique identifier of the organization", + "example": "org_123" + }, + "required": true, + "name": "organizationId", + "in": "path" + }, + { + "schema": { + "type": "string", + "description": "The unique identifier of the source connector", + "example": "cb184aec-0fce-4f39-8c4a-919af8425cd5" + }, + "required": true, + "name": "sourceConnectorId", + "in": "path" + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AddUserToSourceConnectorRequest" + }, + "example": { + "userId": "db8f51b8-e8b1-4694-bbe3-c54bcc1b2d87", + "selectedFiles": {}, + "refreshToken": "refresh_token_example_123456", + "accessToken": "access_token_example_123456" + } + } + } + }, + "responses": { + "200": { + "description": "User successfully added to the source connector", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AddUserFromSourceConnectorResponse" + }, + "example": { + "message": "Operation completed successfully" + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + } + } + }, + "patch": { + "operationId": "updateUserInSourceConnector", + "summary": "Update a source connector user", + "description": "Update a source connector user", + "tags": [ + "Source Connectors" + ], + "security": [ + { + "bearerAuth": [] + } + ], + "parameters": [ + { + "schema": { + "type": "string", + "description": "The unique identifier of the organization", + "example": "org_123" + }, + "required": true, + "name": "organizationId", + "in": "path" + }, + { + "schema": { + "type": "string", + "description": "The unique identifier of the source connector", + "example": "cb184aec-0fce-4f39-8c4a-919af8425cd5" + }, + "required": true, + "name": "sourceConnectorId", + "in": "path" + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateUserInSourceConnectorRequest" + }, + "example": { + "userId": "80945bc0-b9b0-4473-96a8-fc67831b7b23", + "selectedFiles": {}, + "refreshToken": "refresh_token_example_123456", + "accessToken": "access_token_example_123456" + } + } + } + }, + "responses": { + "200": { + "description": "User successfully updated in the source connector", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateUserInSourceConnectorResponse" + }, + "example": { + "message": "Operation completed successfully" + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + } + } + }, + "delete": { + "operationId": "deleteUserFromSourceConnector", + "summary": "Delete a source connector user", + "description": "Delete a source connector user", + "tags": [ + "Source Connectors" + ], + "security": [ + { + "bearerAuth": [] + } + ], + "parameters": [ + { + "schema": { + "type": "string", + "description": "The unique identifier of the organization", + "example": "org_123" + }, + "required": true, + "name": "organizationId", + "in": "path" + }, + { + "schema": { + "type": "string", + "description": "The unique identifier of the source connector", + "example": "cb184aec-0fce-4f39-8c4a-919af8425cd5" + }, + "required": true, + "name": "sourceConnectorId", + "in": "path" + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RemoveUserFromSourceConnectorRequest" + }, + "example": { + "userId": "02913dc2-4f28-48dd-9bda-9da132ef75ca" + } + } + } + }, + "responses": { + "200": { + "description": "User successfully removed from the source connector", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RemoveUserFromSourceConnectorResponse" + }, + "example": { + "message": "Operation completed successfully" + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + }, + "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" + ] + }, + "example": { + "error": "An error occurred", + "details": "example-details", + "failedUpdates": [], + "successfulUpdates": [] + } + } + } + } + } + } + } + }, + "tags": [ + { + "name": "Source Connectors", + "description": "Operations related to source connectors", + "x-category": "Connectors" + }, + { + "name": "Destination Connectors", + "description": "Operations related to destination connectors", + "x-category": "Connectors" + }, + { + "name": "AI Platform Connectors", + "description": "Operations related to AI platform connectors", + "x-category": "Connectors" + }, + { + "name": "Pipelines", + "description": "Operations related to pipelines" + }, + { + "name": "Uploads", + "description": "Operations related to file uploads" + }, + { + "name": "Extraction", + "description": "Operations related to data extraction" + }, + { + "name": "Files", + "description": "Operations related to file management" + } + ] +} \ No newline at end of file From d9949927d8dc05208b1725bb9e678afeeee5b64c Mon Sep 17 00:00:00 2001 From: Jamie Ferguson Date: Thu, 3 Jul 2025 15:50:05 -0600 Subject: [PATCH 06/11] Regenerated clients with OpenAPI spec 0.1.0 --- src/python/vectorize_client/__init__.py | 3 +- .../api/ai_platform_connectors_api.py | 2 +- .../api/destination_connectors_api.py | 2 +- .../vectorize_client/api/extraction_api.py | 2 +- src/python/vectorize_client/api/files_api.py | 2 +- .../vectorize_client/api/pipelines_api.py | 2 +- .../api/source_connectors_api.py | 2 +- .../vectorize_client/api/uploads_api.py | 2 +- src/python/vectorize_client/api_client.py | 6 +--- src/python/vectorize_client/configuration.py | 4 +-- src/python/vectorize_client/exceptions.py | 2 +- .../vectorize_client/models/__init__.py | 3 +- ...add_user_from_source_connector_response.py | 2 +- .../add_user_to_source_connector_request.py | 2 +- ...source_connector_request_selected_files.py | 2 +- ...connector_request_selected_files_any_of.py | 2 +- ...tor_request_selected_files_any_of_value.py | 2 +- .../vectorize_client/models/advanced_query.py | 23 +++++++++++--- .../vectorize_client/models/ai_platform.py | 2 +- .../models/ai_platform_config_schema.py | 6 ++-- .../models/ai_platform_connector_input.py | 2 +- .../models/ai_platform_connector_schema.py | 2 +- .../models/ai_platform_type.py | 2 +- .../models/ai_platform_type_for_pipeline.py | 2 +- src/python/vectorize_client/models/aws_s3.py | 2 +- src/python/vectorize_client/models/aws_s31.py | 2 +- .../models/awss3_auth_config.py | 2 +- .../vectorize_client/models/awss3_config.py | 2 +- .../vectorize_client/models/azure_blob.py | 2 +- .../vectorize_client/models/azure_blob1.py | 2 +- .../vectorize_client/models/azureaisearch.py | 2 +- .../vectorize_client/models/azureaisearch1.py | 2 +- .../models/azureaisearch_auth_config.py | 2 +- .../models/azureaisearch_config.py | 2 +- .../models/azureblob_auth_config.py | 2 +- .../models/azureblob_config.py | 2 +- src/python/vectorize_client/models/bedrock.py | 2 +- .../vectorize_client/models/bedrock1.py | 2 +- .../models/bedrock_auth_config.py | 2 +- src/python/vectorize_client/models/capella.py | 2 +- .../vectorize_client/models/capella1.py | 2 +- .../models/capella_auth_config.py | 2 +- .../vectorize_client/models/capella_config.py | 2 +- .../vectorize_client/models/confluence.py | 2 +- .../vectorize_client/models/confluence1.py | 2 +- .../models/confluence_auth_config.py | 2 +- .../models/confluence_config.py | 2 +- .../create_ai_platform_connector_request.py | 2 +- .../create_ai_platform_connector_response.py | 2 +- .../create_destination_connector_request.py | 2 +- .../create_destination_connector_response.py | 2 +- .../models/create_pipeline_response.py | 2 +- .../models/create_pipeline_response_data.py | 2 +- .../models/create_source_connector_request.py | 2 +- .../create_source_connector_response.py | 2 +- .../models/created_ai_platform_connector.py | 2 +- .../models/created_destination_connector.py | 2 +- .../models/created_source_connector.py | 2 +- .../vectorize_client/models/datastax.py | 2 +- .../vectorize_client/models/datastax1.py | 2 +- .../models/datastax_auth_config.py | 2 +- .../models/datastax_config.py | 2 +- .../models/deep_research_result.py | 2 +- .../delete_ai_platform_connector_response.py | 2 +- .../delete_destination_connector_response.py | 2 +- .../models/delete_file_response.py | 2 +- .../models/delete_pipeline_response.py | 2 +- .../delete_source_connector_response.py | 2 +- .../models/destination_connector.py | 2 +- .../models/destination_connector_input.py | 2 +- .../destination_connector_input_config.py | 2 +- .../models/destination_connector_schema.py | 2 +- .../models/destination_connector_type.py | 2 +- ...destination_connector_type_for_pipeline.py | 2 +- src/python/vectorize_client/models/discord.py | 2 +- .../vectorize_client/models/discord1.py | 2 +- .../models/discord_auth_config.py | 2 +- .../vectorize_client/models/discord_config.py | 2 +- .../vectorize_client/models/document.py | 2 +- src/python/vectorize_client/models/dropbox.py | 2 +- .../models/dropbox_auth_config.py | 2 +- .../vectorize_client/models/dropbox_config.py | 2 +- .../vectorize_client/models/dropbox_oauth.py | 2 +- .../models/dropbox_oauth_multi.py | 2 +- .../models/dropbox_oauth_multi_custom.py | 2 +- .../models/dropboxoauth_auth_config.py | 2 +- .../models/dropboxoauthmulti_auth_config.py | 2 +- .../dropboxoauthmulticustom_auth_config.py | 2 +- src/python/vectorize_client/models/elastic.py | 2 +- .../vectorize_client/models/elastic1.py | 2 +- .../models/elastic_auth_config.py | 2 +- .../vectorize_client/models/elastic_config.py | 2 +- .../models/extraction_chunking_strategy.py | 2 +- .../models/extraction_result.py | 2 +- .../models/extraction_result_response.py | 2 +- .../models/extraction_type.py | 2 +- .../vectorize_client/models/file_upload.py | 2 +- .../vectorize_client/models/file_upload1.py | 2 +- .../models/fileupload_auth_config.py | 2 +- .../vectorize_client/models/firecrawl.py | 2 +- .../vectorize_client/models/firecrawl1.py | 2 +- .../models/firecrawl_auth_config.py | 2 +- .../models/firecrawl_config.py | 2 +- .../vectorize_client/models/fireflies.py | 2 +- .../vectorize_client/models/fireflies1.py | 2 +- .../models/fireflies_auth_config.py | 2 +- .../models/fireflies_config.py | 2 +- src/python/vectorize_client/models/gcs.py | 2 +- src/python/vectorize_client/models/gcs1.py | 2 +- .../models/gcs_auth_config.py | 2 +- .../vectorize_client/models/gcs_config.py | 2 +- .../get_ai_platform_connectors200_response.py | 2 +- .../models/get_deep_research_response.py | 2 +- .../get_destination_connectors200_response.py | 2 +- .../models/get_pipeline_events_response.py | 2 +- .../models/get_pipeline_metrics_response.py | 2 +- .../models/get_pipeline_response.py | 2 +- .../models/get_pipelines400_response.py | 2 +- .../models/get_pipelines_response.py | 2 +- .../get_source_connectors200_response.py | 2 +- .../models/get_upload_files_response.py | 2 +- src/python/vectorize_client/models/github.py | 2 +- src/python/vectorize_client/models/github1.py | 2 +- .../models/github_auth_config.py | 2 +- .../vectorize_client/models/github_config.py | 2 +- .../models/gmail_auth_config.py | 2 +- .../vectorize_client/models/gmail_config.py | 22 +++++++++++-- .../vectorize_client/models/google_drive.py | 2 +- .../vectorize_client/models/google_drive1.py | 2 +- .../models/google_drive_oauth.py | 2 +- .../models/google_drive_oauth_multi.py | 2 +- .../models/google_drive_oauth_multi_custom.py | 2 +- .../models/googledrive_auth_config.py | 2 +- .../models/googledrive_config.py | 2 +- .../models/googledriveoauth_auth_config.py | 2 +- .../models/googledriveoauth_config.py | 2 +- .../googledriveoauthmulti_auth_config.py | 2 +- .../models/googledriveoauthmulti_config.py | 2 +- ...googledriveoauthmulticustom_auth_config.py | 2 +- .../googledriveoauthmulticustom_config.py | 2 +- .../vectorize_client/models/intercom.py | 2 +- .../models/intercom_auth_config.py | 2 +- .../models/intercom_config.py | 2 +- .../models/metadata_extraction_strategy.py | 2 +- .../metadata_extraction_strategy_schema.py | 2 +- src/python/vectorize_client/models/milvus.py | 2 +- src/python/vectorize_client/models/milvus1.py | 2 +- .../models/milvus_auth_config.py | 2 +- .../vectorize_client/models/milvus_config.py | 2 +- .../vectorize_client/models/n8_n_config.py | 2 +- src/python/vectorize_client/models/notion.py | 2 +- .../models/notion_auth_config.py | 2 +- .../vectorize_client/models/notion_config.py | 2 +- .../models/notion_oauth_multi.py | 2 +- .../models/notion_oauth_multi_custom.py | 2 +- .../models/notionoauthmulti_auth_config.py | 2 +- .../notionoauthmulticustom_auth_config.py | 2 +- .../vectorize_client/models/one_drive.py | 2 +- .../vectorize_client/models/one_drive1.py | 2 +- .../models/onedrive_auth_config.py | 2 +- .../models/onedrive_config.py | 2 +- src/python/vectorize_client/models/openai.py | 2 +- src/python/vectorize_client/models/openai1.py | 2 +- .../models/openai_auth_config.py | 2 +- .../vectorize_client/models/pinecone.py | 2 +- .../vectorize_client/models/pinecone1.py | 2 +- .../models/pinecone_auth_config.py | 2 +- .../models/pinecone_config.py | 2 +- .../models/pipeline_configuration_schema.py | 2 +- .../models/pipeline_events.py | 2 +- .../models/pipeline_list_summary.py | 2 +- .../models/pipeline_metrics.py | 2 +- .../models/pipeline_summary.py | 2 +- .../vectorize_client/models/postgresql.py | 2 +- .../vectorize_client/models/postgresql1.py | 2 +- .../models/postgresql_auth_config.py | 2 +- .../models/postgresql_config.py | 2 +- src/python/vectorize_client/models/qdrant.py | 2 +- src/python/vectorize_client/models/qdrant1.py | 2 +- .../models/qdrant_auth_config.py | 2 +- .../vectorize_client/models/qdrant_config.py | 2 +- ...move_user_from_source_connector_request.py | 2 +- ...ove_user_from_source_connector_response.py | 2 +- .../models/retrieve_context.py | 2 +- .../models/retrieve_context_message.py | 2 +- .../models/retrieve_documents_request.py | 2 +- .../models/retrieve_documents_response.py | 2 +- .../models/schedule_schema.py | 2 +- .../models/schedule_schema_type.py | 2 +- .../vectorize_client/models/sharepoint.py | 2 +- .../vectorize_client/models/sharepoint1.py | 2 +- .../models/sharepoint_auth_config.py | 2 +- .../models/sharepoint_config.py | 2 +- .../vectorize_client/models/singlestore.py | 2 +- .../vectorize_client/models/singlestore1.py | 2 +- .../models/singlestore_auth_config.py | 2 +- .../models/singlestore_config.py | 2 +- .../models/source_connector.py | 2 +- .../models/source_connector_input.py | 2 +- .../models/source_connector_input_config.py | 2 +- .../models/source_connector_schema.py | 2 +- .../models/source_connector_type.py | 2 +- .../models/start_deep_research_request.py | 2 +- .../models/start_deep_research_response.py | 2 +- .../models/start_extraction_request.py | 2 +- .../models/start_extraction_response.py | 2 +- .../models/start_file_upload_request.py | 2 +- .../models/start_file_upload_response.py | 2 +- .../start_file_upload_to_connector_request.py | 2 +- ...start_file_upload_to_connector_response.py | 2 +- .../models/start_pipeline_response.py | 2 +- .../models/stop_pipeline_response.py | 2 +- .../vectorize_client/models/supabase.py | 2 +- .../vectorize_client/models/supabase1.py | 2 +- .../models/supabase_auth_config.py | 2 +- .../models/supabase_config.py | 2 +- .../vectorize_client/models/turbopuffer.py | 2 +- .../vectorize_client/models/turbopuffer1.py | 2 +- .../models/turbopuffer_auth_config.py | 2 +- .../models/turbopuffer_config.py | 2 +- .../update_ai_platform_connector_request.py | 2 +- .../update_ai_platform_connector_response.py | 2 +- .../update_destination_connector_request.py | 2 +- .../update_destination_connector_response.py | 2 +- .../models/update_source_connector_request.py | 2 +- .../update_source_connector_response.py | 2 +- .../update_source_connector_response_data.py | 2 +- ...update_user_in_source_connector_request.py | 2 +- ...pdate_user_in_source_connector_response.py | 2 +- .../updated_ai_platform_connector_data.py | 2 +- .../updated_destination_connector_data.py | 2 +- .../vectorize_client/models/upload_file.py | 2 +- src/python/vectorize_client/models/vertex.py | 2 +- src/python/vectorize_client/models/vertex1.py | 2 +- .../models/vertex_auth_config.py | 2 +- src/python/vectorize_client/models/voyage.py | 2 +- src/python/vectorize_client/models/voyage1.py | 2 +- .../models/voyage_auth_config.py | 2 +- .../vectorize_client/models/weaviate.py | 2 +- .../vectorize_client/models/weaviate1.py | 2 +- .../models/weaviate_auth_config.py | 2 +- .../models/weaviate_config.py | 2 +- .../vectorize_client/models/web_crawler.py | 2 +- .../vectorize_client/models/web_crawler1.py | 2 +- .../models/webcrawler_auth_config.py | 2 +- .../models/webcrawler_config.py | 2 +- src/python/vectorize_client/rest.py | 2 +- src/ts/package-lock.json | 31 ------------------- src/ts/package.json | 2 +- src/ts/src/apis/AIPlatformConnectorsApi.ts | 2 +- src/ts/src/apis/DestinationConnectorsApi.ts | 2 +- src/ts/src/apis/ExtractionApi.ts | 2 +- src/ts/src/apis/FilesApi.ts | 2 +- src/ts/src/apis/PipelinesApi.ts | 2 +- src/ts/src/apis/SourceConnectorsApi.ts | 2 +- src/ts/src/apis/UploadsApi.ts | 2 +- src/ts/src/models/AIPlatform.ts | 2 +- src/ts/src/models/AIPlatformConfigSchema.ts | 8 ++++- src/ts/src/models/AIPlatformConnectorInput.ts | 2 +- .../src/models/AIPlatformConnectorSchema.ts | 2 +- src/ts/src/models/AIPlatformType.ts | 2 +- .../src/models/AIPlatformTypeForPipeline.ts | 2 +- src/ts/src/models/AWSS3AuthConfig.ts | 2 +- src/ts/src/models/AWSS3Config.ts | 2 +- src/ts/src/models/AZUREAISEARCHAuthConfig.ts | 2 +- src/ts/src/models/AZUREAISEARCHConfig.ts | 2 +- src/ts/src/models/AZUREBLOBAuthConfig.ts | 2 +- src/ts/src/models/AZUREBLOBConfig.ts | 2 +- .../AddUserFromSourceConnectorResponse.ts | 2 +- .../models/AddUserToSourceConnectorRequest.ts | 2 +- ...erToSourceConnectorRequestSelectedFiles.ts | 2 +- ...ourceConnectorRequestSelectedFilesAnyOf.ts | 2 +- ...ConnectorRequestSelectedFilesAnyOfValue.ts | 2 +- src/ts/src/models/AdvancedQuery.ts | 13 +++++--- src/ts/src/models/AwsS3.ts | 2 +- src/ts/src/models/AwsS31.ts | 2 +- src/ts/src/models/AzureBlob.ts | 2 +- src/ts/src/models/AzureBlob1.ts | 2 +- src/ts/src/models/Azureaisearch.ts | 2 +- src/ts/src/models/Azureaisearch1.ts | 2 +- src/ts/src/models/BEDROCKAuthConfig.ts | 2 +- src/ts/src/models/Bedrock.ts | 2 +- src/ts/src/models/Bedrock1.ts | 2 +- src/ts/src/models/CAPELLAAuthConfig.ts | 2 +- src/ts/src/models/CAPELLAConfig.ts | 2 +- src/ts/src/models/CONFLUENCEAuthConfig.ts | 2 +- src/ts/src/models/CONFLUENCEConfig.ts | 2 +- src/ts/src/models/Capella.ts | 2 +- src/ts/src/models/Capella1.ts | 2 +- src/ts/src/models/Confluence.ts | 2 +- src/ts/src/models/Confluence1.ts | 2 +- .../CreateAIPlatformConnectorRequest.ts | 2 +- .../CreateAIPlatformConnectorResponse.ts | 2 +- .../CreateDestinationConnectorRequest.ts | 2 +- .../CreateDestinationConnectorResponse.ts | 2 +- src/ts/src/models/CreatePipelineResponse.ts | 2 +- .../src/models/CreatePipelineResponseData.ts | 2 +- .../models/CreateSourceConnectorRequest.ts | 2 +- .../models/CreateSourceConnectorResponse.ts | 2 +- .../src/models/CreatedAIPlatformConnector.ts | 2 +- .../src/models/CreatedDestinationConnector.ts | 2 +- src/ts/src/models/CreatedSourceConnector.ts | 2 +- src/ts/src/models/DATASTAXAuthConfig.ts | 2 +- src/ts/src/models/DATASTAXConfig.ts | 2 +- src/ts/src/models/DISCORDAuthConfig.ts | 2 +- src/ts/src/models/DISCORDConfig.ts | 2 +- src/ts/src/models/DROPBOXAuthConfig.ts | 2 +- src/ts/src/models/DROPBOXConfig.ts | 2 +- src/ts/src/models/DROPBOXOAUTHAuthConfig.ts | 2 +- .../src/models/DROPBOXOAUTHMULTIAuthConfig.ts | 2 +- .../DROPBOXOAUTHMULTICUSTOMAuthConfig.ts | 2 +- src/ts/src/models/Datastax.ts | 2 +- src/ts/src/models/Datastax1.ts | 2 +- src/ts/src/models/DeepResearchResult.ts | 2 +- .../DeleteAIPlatformConnectorResponse.ts | 2 +- .../DeleteDestinationConnectorResponse.ts | 2 +- src/ts/src/models/DeleteFileResponse.ts | 2 +- src/ts/src/models/DeletePipelineResponse.ts | 2 +- .../models/DeleteSourceConnectorResponse.ts | 2 +- src/ts/src/models/DestinationConnector.ts | 2 +- .../src/models/DestinationConnectorInput.ts | 2 +- .../models/DestinationConnectorInputConfig.ts | 2 +- .../src/models/DestinationConnectorSchema.ts | 2 +- src/ts/src/models/DestinationConnectorType.ts | 2 +- .../DestinationConnectorTypeForPipeline.ts | 2 +- src/ts/src/models/Discord.ts | 2 +- src/ts/src/models/Discord1.ts | 2 +- src/ts/src/models/Document.ts | 2 +- src/ts/src/models/Dropbox.ts | 2 +- src/ts/src/models/DropboxOauth.ts | 2 +- src/ts/src/models/DropboxOauthMulti.ts | 2 +- src/ts/src/models/DropboxOauthMultiCustom.ts | 2 +- src/ts/src/models/ELASTICAuthConfig.ts | 2 +- src/ts/src/models/ELASTICConfig.ts | 2 +- src/ts/src/models/Elastic.ts | 2 +- src/ts/src/models/Elastic1.ts | 2 +- .../src/models/ExtractionChunkingStrategy.ts | 2 +- src/ts/src/models/ExtractionResult.ts | 2 +- src/ts/src/models/ExtractionResultResponse.ts | 2 +- src/ts/src/models/ExtractionType.ts | 2 +- src/ts/src/models/FILEUPLOADAuthConfig.ts | 2 +- src/ts/src/models/FIRECRAWLAuthConfig.ts | 2 +- src/ts/src/models/FIRECRAWLConfig.ts | 2 +- src/ts/src/models/FIREFLIESAuthConfig.ts | 2 +- src/ts/src/models/FIREFLIESConfig.ts | 2 +- src/ts/src/models/FileUpload.ts | 2 +- src/ts/src/models/FileUpload1.ts | 2 +- src/ts/src/models/Firecrawl.ts | 2 +- src/ts/src/models/Firecrawl1.ts | 2 +- src/ts/src/models/Fireflies.ts | 2 +- src/ts/src/models/Fireflies1.ts | 2 +- src/ts/src/models/GCSAuthConfig.ts | 2 +- src/ts/src/models/GCSConfig.ts | 2 +- src/ts/src/models/GITHUBAuthConfig.ts | 2 +- src/ts/src/models/GITHUBConfig.ts | 2 +- src/ts/src/models/GMAILAuthConfig.ts | 2 +- src/ts/src/models/GMAILConfig.ts | 27 +++++++++++++++- src/ts/src/models/GOOGLEDRIVEAuthConfig.ts | 2 +- src/ts/src/models/GOOGLEDRIVEConfig.ts | 2 +- .../src/models/GOOGLEDRIVEOAUTHAuthConfig.ts | 2 +- src/ts/src/models/GOOGLEDRIVEOAUTHConfig.ts | 2 +- .../models/GOOGLEDRIVEOAUTHMULTIAuthConfig.ts | 2 +- .../GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig.ts | 2 +- .../GOOGLEDRIVEOAUTHMULTICUSTOMConfig.ts | 2 +- .../src/models/GOOGLEDRIVEOAUTHMULTIConfig.ts | 2 +- src/ts/src/models/Gcs.ts | 2 +- src/ts/src/models/Gcs1.ts | 2 +- .../GetAIPlatformConnectors200Response.ts | 2 +- src/ts/src/models/GetDeepResearchResponse.ts | 2 +- .../GetDestinationConnectors200Response.ts | 2 +- .../src/models/GetPipelineEventsResponse.ts | 2 +- .../src/models/GetPipelineMetricsResponse.ts | 2 +- src/ts/src/models/GetPipelineResponse.ts | 2 +- src/ts/src/models/GetPipelines400Response.ts | 2 +- src/ts/src/models/GetPipelinesResponse.ts | 2 +- .../models/GetSourceConnectors200Response.ts | 2 +- src/ts/src/models/GetUploadFilesResponse.ts | 2 +- src/ts/src/models/Github.ts | 2 +- src/ts/src/models/Github1.ts | 2 +- src/ts/src/models/GoogleDrive.ts | 2 +- src/ts/src/models/GoogleDrive1.ts | 2 +- src/ts/src/models/GoogleDriveOauth.ts | 2 +- src/ts/src/models/GoogleDriveOauthMulti.ts | 2 +- .../src/models/GoogleDriveOauthMultiCustom.ts | 2 +- src/ts/src/models/INTERCOMAuthConfig.ts | 2 +- src/ts/src/models/INTERCOMConfig.ts | 2 +- src/ts/src/models/Intercom.ts | 2 +- src/ts/src/models/MILVUSAuthConfig.ts | 2 +- src/ts/src/models/MILVUSConfig.ts | 2 +- .../src/models/MetadataExtractionStrategy.ts | 2 +- .../MetadataExtractionStrategySchema.ts | 2 +- src/ts/src/models/Milvus.ts | 2 +- src/ts/src/models/Milvus1.ts | 2 +- src/ts/src/models/N8NConfig.ts | 2 +- src/ts/src/models/NOTIONAuthConfig.ts | 2 +- src/ts/src/models/NOTIONConfig.ts | 2 +- .../src/models/NOTIONOAUTHMULTIAuthConfig.ts | 2 +- .../NOTIONOAUTHMULTICUSTOMAuthConfig.ts | 2 +- src/ts/src/models/Notion.ts | 2 +- src/ts/src/models/NotionOauthMulti.ts | 2 +- src/ts/src/models/NotionOauthMultiCustom.ts | 2 +- src/ts/src/models/ONEDRIVEAuthConfig.ts | 2 +- src/ts/src/models/ONEDRIVEConfig.ts | 2 +- src/ts/src/models/OPENAIAuthConfig.ts | 2 +- src/ts/src/models/OneDrive.ts | 2 +- src/ts/src/models/OneDrive1.ts | 2 +- src/ts/src/models/Openai.ts | 2 +- src/ts/src/models/Openai1.ts | 2 +- src/ts/src/models/PINECONEAuthConfig.ts | 2 +- src/ts/src/models/PINECONEConfig.ts | 2 +- src/ts/src/models/POSTGRESQLAuthConfig.ts | 2 +- src/ts/src/models/POSTGRESQLConfig.ts | 2 +- src/ts/src/models/Pinecone.ts | 2 +- src/ts/src/models/Pinecone1.ts | 2 +- .../src/models/PipelineConfigurationSchema.ts | 2 +- src/ts/src/models/PipelineEvents.ts | 2 +- src/ts/src/models/PipelineListSummary.ts | 2 +- src/ts/src/models/PipelineMetrics.ts | 2 +- src/ts/src/models/PipelineSummary.ts | 2 +- src/ts/src/models/Postgresql.ts | 2 +- src/ts/src/models/Postgresql1.ts | 2 +- src/ts/src/models/QDRANTAuthConfig.ts | 2 +- src/ts/src/models/QDRANTConfig.ts | 2 +- src/ts/src/models/Qdrant.ts | 2 +- src/ts/src/models/Qdrant1.ts | 2 +- .../RemoveUserFromSourceConnectorRequest.ts | 2 +- .../RemoveUserFromSourceConnectorResponse.ts | 2 +- src/ts/src/models/RetrieveContext.ts | 2 +- src/ts/src/models/RetrieveContextMessage.ts | 2 +- src/ts/src/models/RetrieveDocumentsRequest.ts | 2 +- .../src/models/RetrieveDocumentsResponse.ts | 2 +- src/ts/src/models/SHAREPOINTAuthConfig.ts | 2 +- src/ts/src/models/SHAREPOINTConfig.ts | 2 +- src/ts/src/models/SINGLESTOREAuthConfig.ts | 2 +- src/ts/src/models/SINGLESTOREConfig.ts | 2 +- src/ts/src/models/SUPABASEAuthConfig.ts | 2 +- src/ts/src/models/SUPABASEConfig.ts | 2 +- src/ts/src/models/ScheduleSchema.ts | 2 +- src/ts/src/models/ScheduleSchemaType.ts | 2 +- src/ts/src/models/Sharepoint.ts | 2 +- src/ts/src/models/Sharepoint1.ts | 2 +- src/ts/src/models/Singlestore.ts | 2 +- src/ts/src/models/Singlestore1.ts | 2 +- src/ts/src/models/SourceConnector.ts | 2 +- src/ts/src/models/SourceConnectorInput.ts | 2 +- .../src/models/SourceConnectorInputConfig.ts | 2 +- src/ts/src/models/SourceConnectorSchema.ts | 2 +- src/ts/src/models/SourceConnectorType.ts | 2 +- src/ts/src/models/StartDeepResearchRequest.ts | 2 +- .../src/models/StartDeepResearchResponse.ts | 2 +- src/ts/src/models/StartExtractionRequest.ts | 2 +- src/ts/src/models/StartExtractionResponse.ts | 2 +- src/ts/src/models/StartFileUploadRequest.ts | 2 +- src/ts/src/models/StartFileUploadResponse.ts | 2 +- .../StartFileUploadToConnectorRequest.ts | 2 +- .../StartFileUploadToConnectorResponse.ts | 2 +- src/ts/src/models/StartPipelineResponse.ts | 2 +- src/ts/src/models/StopPipelineResponse.ts | 2 +- src/ts/src/models/Supabase.ts | 2 +- src/ts/src/models/Supabase1.ts | 2 +- src/ts/src/models/TURBOPUFFERAuthConfig.ts | 2 +- src/ts/src/models/TURBOPUFFERConfig.ts | 2 +- src/ts/src/models/Turbopuffer.ts | 2 +- src/ts/src/models/Turbopuffer1.ts | 2 +- .../UpdateAIPlatformConnectorRequest.ts | 2 +- .../UpdateAIPlatformConnectorResponse.ts | 2 +- .../UpdateDestinationConnectorRequest.ts | 2 +- .../UpdateDestinationConnectorResponse.ts | 2 +- .../models/UpdateSourceConnectorRequest.ts | 2 +- .../models/UpdateSourceConnectorResponse.ts | 2 +- .../UpdateSourceConnectorResponseData.ts | 2 +- .../UpdateUserInSourceConnectorRequest.ts | 2 +- .../UpdateUserInSourceConnectorResponse.ts | 2 +- .../models/UpdatedAIPlatformConnectorData.ts | 2 +- .../models/UpdatedDestinationConnectorData.ts | 2 +- src/ts/src/models/UploadFile.ts | 2 +- src/ts/src/models/VERTEXAuthConfig.ts | 2 +- src/ts/src/models/VOYAGEAuthConfig.ts | 2 +- src/ts/src/models/Vertex.ts | 2 +- src/ts/src/models/Vertex1.ts | 2 +- src/ts/src/models/Voyage.ts | 2 +- src/ts/src/models/Voyage1.ts | 2 +- src/ts/src/models/WEAVIATEAuthConfig.ts | 2 +- src/ts/src/models/WEAVIATEConfig.ts | 2 +- src/ts/src/models/WEBCRAWLERAuthConfig.ts | 2 +- src/ts/src/models/WEBCRAWLERConfig.ts | 2 +- src/ts/src/models/Weaviate.ts | 2 +- src/ts/src/models/Weaviate1.ts | 2 +- src/ts/src/models/WebCrawler.ts | 2 +- src/ts/src/models/WebCrawler1.ts | 2 +- src/ts/src/models/index.ts | 1 + src/ts/src/runtime.ts | 2 +- 492 files changed, 569 insertions(+), 538 deletions(-) delete mode 100644 src/ts/package-lock.json diff --git a/src/python/vectorize_client/__init__.py b/src/python/vectorize_client/__init__.py index bd423f5..b1f4bf9 100644 --- a/src/python/vectorize_client/__init__.py +++ b/src/python/vectorize_client/__init__.py @@ -7,7 +7,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -54,6 +54,7 @@ from vectorize_client.models.add_user_to_source_connector_request_selected_files import AddUserToSourceConnectorRequestSelectedFiles from vectorize_client.models.add_user_to_source_connector_request_selected_files_any_of import AddUserToSourceConnectorRequestSelectedFilesAnyOf from vectorize_client.models.add_user_to_source_connector_request_selected_files_any_of_value import AddUserToSourceConnectorRequestSelectedFilesAnyOfValue +from vectorize_client.models.advanced_query import AdvancedQuery from vectorize_client.models.aws_s3 import AwsS3 from vectorize_client.models.aws_s31 import AwsS31 from vectorize_client.models.azure_blob import AzureBlob diff --git a/src/python/vectorize_client/api/ai_platform_connectors_api.py b/src/python/vectorize_client/api/ai_platform_connectors_api.py index 9af9afd..d900c3e 100644 --- a/src/python/vectorize_client/api/ai_platform_connectors_api.py +++ b/src/python/vectorize_client/api/ai_platform_connectors_api.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/api/destination_connectors_api.py b/src/python/vectorize_client/api/destination_connectors_api.py index 68b3bb3..c6b15d3 100644 --- a/src/python/vectorize_client/api/destination_connectors_api.py +++ b/src/python/vectorize_client/api/destination_connectors_api.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/api/extraction_api.py b/src/python/vectorize_client/api/extraction_api.py index 2a4e005..4d0baf1 100644 --- a/src/python/vectorize_client/api/extraction_api.py +++ b/src/python/vectorize_client/api/extraction_api.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/api/files_api.py b/src/python/vectorize_client/api/files_api.py index b041e67..9e1ce08 100644 --- a/src/python/vectorize_client/api/files_api.py +++ b/src/python/vectorize_client/api/files_api.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/api/pipelines_api.py b/src/python/vectorize_client/api/pipelines_api.py index 09247c5..a367f5e 100644 --- a/src/python/vectorize_client/api/pipelines_api.py +++ b/src/python/vectorize_client/api/pipelines_api.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/api/source_connectors_api.py b/src/python/vectorize_client/api/source_connectors_api.py index 0b8255a..99b1d33 100644 --- a/src/python/vectorize_client/api/source_connectors_api.py +++ b/src/python/vectorize_client/api/source_connectors_api.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/api/uploads_api.py b/src/python/vectorize_client/api/uploads_api.py index 986eee2..03b57b6 100644 --- a/src/python/vectorize_client/api/uploads_api.py +++ b/src/python/vectorize_client/api/uploads_api.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/api_client.py b/src/python/vectorize_client/api_client.py index b24877d..eefbba4 100644 --- a/src/python/vectorize_client/api_client.py +++ b/src/python/vectorize_client/api_client.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -382,10 +382,6 @@ def sanitize_for_serialization(self, obj): else: obj_dict = obj.__dict__ - if isinstance(obj_dict, list): - # here we handle instances that can either be a list or something else, and only became a real list by calling to_dict() - return self.sanitize_for_serialization(obj_dict) - return { key: self.sanitize_for_serialization(val) for key, val in obj_dict.items() diff --git a/src/python/vectorize_client/configuration.py b/src/python/vectorize_client/configuration.py index ad26f41..dbafe6e 100644 --- a/src/python/vectorize_client/configuration.py +++ b/src/python/vectorize_client/configuration.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -510,7 +510,7 @@ def to_debug_report(self) -> str: return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: 0.0.1\n"\ + "Version of the API: 0.1.0\n"\ "SDK Package Version: 1.0.0".\ format(env=sys.platform, pyversion=sys.version) diff --git a/src/python/vectorize_client/exceptions.py b/src/python/vectorize_client/exceptions.py index e0947a6..bfb0236 100644 --- a/src/python/vectorize_client/exceptions.py +++ b/src/python/vectorize_client/exceptions.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/__init__.py b/src/python/vectorize_client/models/__init__.py index 4c944c8..989f8ba 100644 --- a/src/python/vectorize_client/models/__init__.py +++ b/src/python/vectorize_client/models/__init__.py @@ -6,7 +6,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -31,6 +31,7 @@ from vectorize_client.models.add_user_to_source_connector_request_selected_files import AddUserToSourceConnectorRequestSelectedFiles from vectorize_client.models.add_user_to_source_connector_request_selected_files_any_of import AddUserToSourceConnectorRequestSelectedFilesAnyOf from vectorize_client.models.add_user_to_source_connector_request_selected_files_any_of_value import AddUserToSourceConnectorRequestSelectedFilesAnyOfValue +from vectorize_client.models.advanced_query import AdvancedQuery from vectorize_client.models.aws_s3 import AwsS3 from vectorize_client.models.aws_s31 import AwsS31 from vectorize_client.models.azure_blob import AzureBlob 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 index 206bf9f..1286ca1 100644 --- 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 @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. 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 index 663c68f..93bcf22 100644 --- 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 @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/add_user_to_source_connector_request_selected_files.py b/src/python/vectorize_client/models/add_user_to_source_connector_request_selected_files.py index 7e2ea62..461c760 100644 --- a/src/python/vectorize_client/models/add_user_to_source_connector_request_selected_files.py +++ b/src/python/vectorize_client/models/add_user_to_source_connector_request_selected_files.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/add_user_to_source_connector_request_selected_files_any_of.py b/src/python/vectorize_client/models/add_user_to_source_connector_request_selected_files_any_of.py index 4a4bb31..2a4a89d 100644 --- a/src/python/vectorize_client/models/add_user_to_source_connector_request_selected_files_any_of.py +++ b/src/python/vectorize_client/models/add_user_to_source_connector_request_selected_files_any_of.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/add_user_to_source_connector_request_selected_files_any_of_value.py b/src/python/vectorize_client/models/add_user_to_source_connector_request_selected_files_any_of_value.py index 32e1ffe..748b408 100644 --- a/src/python/vectorize_client/models/add_user_to_source_connector_request_selected_files_any_of_value.py +++ b/src/python/vectorize_client/models/add_user_to_source_connector_request_selected_files_any_of_value.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/advanced_query.py b/src/python/vectorize_client/models/advanced_query.py index 023f3d0..6778bdc 100644 --- a/src/python/vectorize_client/models/advanced_query.py +++ b/src/python/vectorize_client/models/advanced_query.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - Vectorize API (Beta) + Vectorize API - API for Vectorize services + API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -29,8 +29,9 @@ class AdvancedQuery(BaseModel): mode: Optional[StrictStr] = 'vector' text_fields: Optional[List[StrictStr]] = Field(default=None, alias="text-fields") match_type: Optional[StrictStr] = Field(default=None, alias="match-type") - text_boost: Optional[Union[StrictFloat, StrictInt]] = Field(default=1.0, alias="text-boost") + text_boost: Optional[Union[StrictFloat, StrictInt]] = Field(default=1, alias="text-boost") filters: Optional[Dict[str, Any]] = None + additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["mode", "text-fields", "match-type", "text-boost", "filters"] @field_validator('mode') @@ -83,8 +84,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -92,6 +95,11 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + return _dict @classmethod @@ -107,9 +115,14 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "mode": obj.get("mode") if obj.get("mode") is not None else 'vector', "text-fields": obj.get("text-fields"), "match-type": obj.get("match-type"), - "text-boost": obj.get("text-boost") if obj.get("text-boost") is not None else 1.0, + "text-boost": obj.get("text-boost") if obj.get("text-boost") is not None else 1, "filters": obj.get("filters") }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/src/python/vectorize_client/models/ai_platform.py b/src/python/vectorize_client/models/ai_platform.py index 42f1631..5519804 100644 --- a/src/python/vectorize_client/models/ai_platform.py +++ b/src/python/vectorize_client/models/ai_platform.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/ai_platform_config_schema.py b/src/python/vectorize_client/models/ai_platform_config_schema.py index 2714072..6fb5e15 100644 --- a/src/python/vectorize_client/models/ai_platform_config_schema.py +++ b/src/python/vectorize_client/models/ai_platform_config_schema.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -41,8 +41,8 @@ def embedding_model_validate_enum(cls, value): 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')") + 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_VOYAGE_AI_35', 'VECTORIZE_VOYAGE_AI_35_LITE', 'VECTORIZE_VOYAGE_AI_CODE_3', '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', 'VOYAGE_AI_35', 'VOYAGE_AI_35_LITE', 'VOYAGE_AI_CODE_3', '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_VOYAGE_AI_35', 'VECTORIZE_VOYAGE_AI_35_LITE', 'VECTORIZE_VOYAGE_AI_CODE_3', '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', 'VOYAGE_AI_35', 'VOYAGE_AI_35_LITE', 'VOYAGE_AI_CODE_3', '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') diff --git a/src/python/vectorize_client/models/ai_platform_connector_input.py b/src/python/vectorize_client/models/ai_platform_connector_input.py index 3ec891b..b7b879e 100644 --- a/src/python/vectorize_client/models/ai_platform_connector_input.py +++ b/src/python/vectorize_client/models/ai_platform_connector_input.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/ai_platform_connector_schema.py b/src/python/vectorize_client/models/ai_platform_connector_schema.py index 88d1b6a..c42511f 100644 --- a/src/python/vectorize_client/models/ai_platform_connector_schema.py +++ b/src/python/vectorize_client/models/ai_platform_connector_schema.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/ai_platform_type.py b/src/python/vectorize_client/models/ai_platform_type.py index 5bd164e..f9d1365 100644 --- a/src/python/vectorize_client/models/ai_platform_type.py +++ b/src/python/vectorize_client/models/ai_platform_type.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/ai_platform_type_for_pipeline.py b/src/python/vectorize_client/models/ai_platform_type_for_pipeline.py index c41ab57..ec05ffc 100644 --- a/src/python/vectorize_client/models/ai_platform_type_for_pipeline.py +++ b/src/python/vectorize_client/models/ai_platform_type_for_pipeline.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/aws_s3.py b/src/python/vectorize_client/models/aws_s3.py index f4f1ff0..18246b5 100644 --- a/src/python/vectorize_client/models/aws_s3.py +++ b/src/python/vectorize_client/models/aws_s3.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/aws_s31.py b/src/python/vectorize_client/models/aws_s31.py index 920facc..ac0b0e7 100644 --- a/src/python/vectorize_client/models/aws_s31.py +++ b/src/python/vectorize_client/models/aws_s31.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/awss3_auth_config.py b/src/python/vectorize_client/models/awss3_auth_config.py index 3a61101..a167266 100644 --- a/src/python/vectorize_client/models/awss3_auth_config.py +++ b/src/python/vectorize_client/models/awss3_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/awss3_config.py b/src/python/vectorize_client/models/awss3_config.py index 6a73186..944f3d0 100644 --- a/src/python/vectorize_client/models/awss3_config.py +++ b/src/python/vectorize_client/models/awss3_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/azure_blob.py b/src/python/vectorize_client/models/azure_blob.py index 7ff2bb4..6e7b158 100644 --- a/src/python/vectorize_client/models/azure_blob.py +++ b/src/python/vectorize_client/models/azure_blob.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/azure_blob1.py b/src/python/vectorize_client/models/azure_blob1.py index 07e7364..6763d1a 100644 --- a/src/python/vectorize_client/models/azure_blob1.py +++ b/src/python/vectorize_client/models/azure_blob1.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/azureaisearch.py b/src/python/vectorize_client/models/azureaisearch.py index a95bb57..c4f61b7 100644 --- a/src/python/vectorize_client/models/azureaisearch.py +++ b/src/python/vectorize_client/models/azureaisearch.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/azureaisearch1.py b/src/python/vectorize_client/models/azureaisearch1.py index c89f2d6..302a1a6 100644 --- a/src/python/vectorize_client/models/azureaisearch1.py +++ b/src/python/vectorize_client/models/azureaisearch1.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/azureaisearch_auth_config.py b/src/python/vectorize_client/models/azureaisearch_auth_config.py index 5673570..f437bdc 100644 --- a/src/python/vectorize_client/models/azureaisearch_auth_config.py +++ b/src/python/vectorize_client/models/azureaisearch_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/azureaisearch_config.py b/src/python/vectorize_client/models/azureaisearch_config.py index d7740e4..77c4ba0 100644 --- a/src/python/vectorize_client/models/azureaisearch_config.py +++ b/src/python/vectorize_client/models/azureaisearch_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/azureblob_auth_config.py b/src/python/vectorize_client/models/azureblob_auth_config.py index 7c2f278..bdad0ea 100644 --- a/src/python/vectorize_client/models/azureblob_auth_config.py +++ b/src/python/vectorize_client/models/azureblob_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/azureblob_config.py b/src/python/vectorize_client/models/azureblob_config.py index acfecc3..d8d495c 100644 --- a/src/python/vectorize_client/models/azureblob_config.py +++ b/src/python/vectorize_client/models/azureblob_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/bedrock.py b/src/python/vectorize_client/models/bedrock.py index 63e73f8..01346ca 100644 --- a/src/python/vectorize_client/models/bedrock.py +++ b/src/python/vectorize_client/models/bedrock.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/bedrock1.py b/src/python/vectorize_client/models/bedrock1.py index 88df20e..b818996 100644 --- a/src/python/vectorize_client/models/bedrock1.py +++ b/src/python/vectorize_client/models/bedrock1.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/bedrock_auth_config.py b/src/python/vectorize_client/models/bedrock_auth_config.py index 7037ac1..168b40a 100644 --- a/src/python/vectorize_client/models/bedrock_auth_config.py +++ b/src/python/vectorize_client/models/bedrock_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/capella.py b/src/python/vectorize_client/models/capella.py index 851cd6a..773a45c 100644 --- a/src/python/vectorize_client/models/capella.py +++ b/src/python/vectorize_client/models/capella.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/capella1.py b/src/python/vectorize_client/models/capella1.py index 7838f1f..a8503a4 100644 --- a/src/python/vectorize_client/models/capella1.py +++ b/src/python/vectorize_client/models/capella1.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/capella_auth_config.py b/src/python/vectorize_client/models/capella_auth_config.py index a109563..91dc22f 100644 --- a/src/python/vectorize_client/models/capella_auth_config.py +++ b/src/python/vectorize_client/models/capella_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/capella_config.py b/src/python/vectorize_client/models/capella_config.py index 70de054..f0db12b 100644 --- a/src/python/vectorize_client/models/capella_config.py +++ b/src/python/vectorize_client/models/capella_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/confluence.py b/src/python/vectorize_client/models/confluence.py index 190a6a3..7f0faf0 100644 --- a/src/python/vectorize_client/models/confluence.py +++ b/src/python/vectorize_client/models/confluence.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/confluence1.py b/src/python/vectorize_client/models/confluence1.py index 58ba20d..ae7cb7f 100644 --- a/src/python/vectorize_client/models/confluence1.py +++ b/src/python/vectorize_client/models/confluence1.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/confluence_auth_config.py b/src/python/vectorize_client/models/confluence_auth_config.py index e8b6ebc..ae07705 100644 --- a/src/python/vectorize_client/models/confluence_auth_config.py +++ b/src/python/vectorize_client/models/confluence_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/confluence_config.py b/src/python/vectorize_client/models/confluence_config.py index 01f896e..499ef51 100644 --- a/src/python/vectorize_client/models/confluence_config.py +++ b/src/python/vectorize_client/models/confluence_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/create_ai_platform_connector_request.py b/src/python/vectorize_client/models/create_ai_platform_connector_request.py index c69972d..64d8cdd 100644 --- a/src/python/vectorize_client/models/create_ai_platform_connector_request.py +++ b/src/python/vectorize_client/models/create_ai_platform_connector_request.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. 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 bad0328..3b64e50 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 @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/create_destination_connector_request.py b/src/python/vectorize_client/models/create_destination_connector_request.py index f8bc05a..9f3c936 100644 --- a/src/python/vectorize_client/models/create_destination_connector_request.py +++ b/src/python/vectorize_client/models/create_destination_connector_request.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. 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 94841a2..6e0fbd5 100644 --- a/src/python/vectorize_client/models/create_destination_connector_response.py +++ b/src/python/vectorize_client/models/create_destination_connector_response.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/create_pipeline_response.py b/src/python/vectorize_client/models/create_pipeline_response.py index 489ec5f..46d5931 100644 --- a/src/python/vectorize_client/models/create_pipeline_response.py +++ b/src/python/vectorize_client/models/create_pipeline_response.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/create_pipeline_response_data.py b/src/python/vectorize_client/models/create_pipeline_response_data.py index 5ca7df5..638b54e 100644 --- a/src/python/vectorize_client/models/create_pipeline_response_data.py +++ b/src/python/vectorize_client/models/create_pipeline_response_data.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/create_source_connector_request.py b/src/python/vectorize_client/models/create_source_connector_request.py index 0e06b5d..055ff0a 100644 --- a/src/python/vectorize_client/models/create_source_connector_request.py +++ b/src/python/vectorize_client/models/create_source_connector_request.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. 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 d292fa9..99d0ff4 100644 --- a/src/python/vectorize_client/models/create_source_connector_response.py +++ b/src/python/vectorize_client/models/create_source_connector_response.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/created_ai_platform_connector.py b/src/python/vectorize_client/models/created_ai_platform_connector.py index 539c5e1..dae3113 100644 --- a/src/python/vectorize_client/models/created_ai_platform_connector.py +++ b/src/python/vectorize_client/models/created_ai_platform_connector.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/created_destination_connector.py b/src/python/vectorize_client/models/created_destination_connector.py index 958dede..bf8a9fe 100644 --- a/src/python/vectorize_client/models/created_destination_connector.py +++ b/src/python/vectorize_client/models/created_destination_connector.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/created_source_connector.py b/src/python/vectorize_client/models/created_source_connector.py index 602a30c..5793031 100644 --- a/src/python/vectorize_client/models/created_source_connector.py +++ b/src/python/vectorize_client/models/created_source_connector.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/datastax.py b/src/python/vectorize_client/models/datastax.py index 23215ce..5b77706 100644 --- a/src/python/vectorize_client/models/datastax.py +++ b/src/python/vectorize_client/models/datastax.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/datastax1.py b/src/python/vectorize_client/models/datastax1.py index 4fb5649..7723a32 100644 --- a/src/python/vectorize_client/models/datastax1.py +++ b/src/python/vectorize_client/models/datastax1.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/datastax_auth_config.py b/src/python/vectorize_client/models/datastax_auth_config.py index 290d48d..34e0469 100644 --- a/src/python/vectorize_client/models/datastax_auth_config.py +++ b/src/python/vectorize_client/models/datastax_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/datastax_config.py b/src/python/vectorize_client/models/datastax_config.py index 0f3fd4a..7f35d47 100644 --- a/src/python/vectorize_client/models/datastax_config.py +++ b/src/python/vectorize_client/models/datastax_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/deep_research_result.py b/src/python/vectorize_client/models/deep_research_result.py index 89f19fb..088a020 100644 --- a/src/python/vectorize_client/models/deep_research_result.py +++ b/src/python/vectorize_client/models/deep_research_result.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/delete_ai_platform_connector_response.py b/src/python/vectorize_client/models/delete_ai_platform_connector_response.py index 458134e..6436100 100644 --- a/src/python/vectorize_client/models/delete_ai_platform_connector_response.py +++ b/src/python/vectorize_client/models/delete_ai_platform_connector_response.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/delete_destination_connector_response.py b/src/python/vectorize_client/models/delete_destination_connector_response.py index d048f29..e26c3f8 100644 --- a/src/python/vectorize_client/models/delete_destination_connector_response.py +++ b/src/python/vectorize_client/models/delete_destination_connector_response.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/delete_file_response.py b/src/python/vectorize_client/models/delete_file_response.py index a7b99d5..9c00470 100644 --- a/src/python/vectorize_client/models/delete_file_response.py +++ b/src/python/vectorize_client/models/delete_file_response.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/delete_pipeline_response.py b/src/python/vectorize_client/models/delete_pipeline_response.py index 40cec9c..14bebfa 100644 --- a/src/python/vectorize_client/models/delete_pipeline_response.py +++ b/src/python/vectorize_client/models/delete_pipeline_response.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/delete_source_connector_response.py b/src/python/vectorize_client/models/delete_source_connector_response.py index f1b2f22..185c2bc 100644 --- a/src/python/vectorize_client/models/delete_source_connector_response.py +++ b/src/python/vectorize_client/models/delete_source_connector_response.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/destination_connector.py b/src/python/vectorize_client/models/destination_connector.py index 2b583b5..cb90251 100644 --- a/src/python/vectorize_client/models/destination_connector.py +++ b/src/python/vectorize_client/models/destination_connector.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/destination_connector_input.py b/src/python/vectorize_client/models/destination_connector_input.py index a43d58a..ca61e7c 100644 --- a/src/python/vectorize_client/models/destination_connector_input.py +++ b/src/python/vectorize_client/models/destination_connector_input.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/destination_connector_input_config.py b/src/python/vectorize_client/models/destination_connector_input_config.py index 9374893..94450f5 100644 --- a/src/python/vectorize_client/models/destination_connector_input_config.py +++ b/src/python/vectorize_client/models/destination_connector_input_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/destination_connector_schema.py b/src/python/vectorize_client/models/destination_connector_schema.py index 589093c..338b4af 100644 --- a/src/python/vectorize_client/models/destination_connector_schema.py +++ b/src/python/vectorize_client/models/destination_connector_schema.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/destination_connector_type.py b/src/python/vectorize_client/models/destination_connector_type.py index bd83f88..685396b 100644 --- a/src/python/vectorize_client/models/destination_connector_type.py +++ b/src/python/vectorize_client/models/destination_connector_type.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/destination_connector_type_for_pipeline.py b/src/python/vectorize_client/models/destination_connector_type_for_pipeline.py index 58f6175..985c1af 100644 --- a/src/python/vectorize_client/models/destination_connector_type_for_pipeline.py +++ b/src/python/vectorize_client/models/destination_connector_type_for_pipeline.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/discord.py b/src/python/vectorize_client/models/discord.py index 0dd8ab2..7ad3a52 100644 --- a/src/python/vectorize_client/models/discord.py +++ b/src/python/vectorize_client/models/discord.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/discord1.py b/src/python/vectorize_client/models/discord1.py index 9ec5eae..26b463a 100644 --- a/src/python/vectorize_client/models/discord1.py +++ b/src/python/vectorize_client/models/discord1.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/discord_auth_config.py b/src/python/vectorize_client/models/discord_auth_config.py index a05b2fd..22e3aee 100644 --- a/src/python/vectorize_client/models/discord_auth_config.py +++ b/src/python/vectorize_client/models/discord_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/discord_config.py b/src/python/vectorize_client/models/discord_config.py index 211f568..85da264 100644 --- a/src/python/vectorize_client/models/discord_config.py +++ b/src/python/vectorize_client/models/discord_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/document.py b/src/python/vectorize_client/models/document.py index b65759f..9c971ca 100644 --- a/src/python/vectorize_client/models/document.py +++ b/src/python/vectorize_client/models/document.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/dropbox.py b/src/python/vectorize_client/models/dropbox.py index ddf68a1..5efc91b 100644 --- a/src/python/vectorize_client/models/dropbox.py +++ b/src/python/vectorize_client/models/dropbox.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/dropbox_auth_config.py b/src/python/vectorize_client/models/dropbox_auth_config.py index 7c11df1..f955790 100644 --- a/src/python/vectorize_client/models/dropbox_auth_config.py +++ b/src/python/vectorize_client/models/dropbox_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/dropbox_config.py b/src/python/vectorize_client/models/dropbox_config.py index 90f6fcb..0c4033e 100644 --- a/src/python/vectorize_client/models/dropbox_config.py +++ b/src/python/vectorize_client/models/dropbox_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/dropbox_oauth.py b/src/python/vectorize_client/models/dropbox_oauth.py index ef3b006..1eca6d8 100644 --- a/src/python/vectorize_client/models/dropbox_oauth.py +++ b/src/python/vectorize_client/models/dropbox_oauth.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/dropbox_oauth_multi.py b/src/python/vectorize_client/models/dropbox_oauth_multi.py index bf515c0..438f27c 100644 --- a/src/python/vectorize_client/models/dropbox_oauth_multi.py +++ b/src/python/vectorize_client/models/dropbox_oauth_multi.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/dropbox_oauth_multi_custom.py b/src/python/vectorize_client/models/dropbox_oauth_multi_custom.py index b9c0910..c4775b0 100644 --- a/src/python/vectorize_client/models/dropbox_oauth_multi_custom.py +++ b/src/python/vectorize_client/models/dropbox_oauth_multi_custom.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/dropboxoauth_auth_config.py b/src/python/vectorize_client/models/dropboxoauth_auth_config.py index 87068d8..078c8ce 100644 --- a/src/python/vectorize_client/models/dropboxoauth_auth_config.py +++ b/src/python/vectorize_client/models/dropboxoauth_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/dropboxoauthmulti_auth_config.py b/src/python/vectorize_client/models/dropboxoauthmulti_auth_config.py index 387d5f8..f78015f 100644 --- a/src/python/vectorize_client/models/dropboxoauthmulti_auth_config.py +++ b/src/python/vectorize_client/models/dropboxoauthmulti_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/dropboxoauthmulticustom_auth_config.py b/src/python/vectorize_client/models/dropboxoauthmulticustom_auth_config.py index 71ca8dd..a81f35e 100644 --- a/src/python/vectorize_client/models/dropboxoauthmulticustom_auth_config.py +++ b/src/python/vectorize_client/models/dropboxoauthmulticustom_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/elastic.py b/src/python/vectorize_client/models/elastic.py index fe87153..5ca71b0 100644 --- a/src/python/vectorize_client/models/elastic.py +++ b/src/python/vectorize_client/models/elastic.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/elastic1.py b/src/python/vectorize_client/models/elastic1.py index 3cf1eec..ba08563 100644 --- a/src/python/vectorize_client/models/elastic1.py +++ b/src/python/vectorize_client/models/elastic1.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/elastic_auth_config.py b/src/python/vectorize_client/models/elastic_auth_config.py index 2694365..8b40732 100644 --- a/src/python/vectorize_client/models/elastic_auth_config.py +++ b/src/python/vectorize_client/models/elastic_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/elastic_config.py b/src/python/vectorize_client/models/elastic_config.py index af6b6d2..4689718 100644 --- a/src/python/vectorize_client/models/elastic_config.py +++ b/src/python/vectorize_client/models/elastic_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/extraction_chunking_strategy.py b/src/python/vectorize_client/models/extraction_chunking_strategy.py index ea857b4..f584f07 100644 --- a/src/python/vectorize_client/models/extraction_chunking_strategy.py +++ b/src/python/vectorize_client/models/extraction_chunking_strategy.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/extraction_result.py b/src/python/vectorize_client/models/extraction_result.py index 889ba1a..650a1b3 100644 --- a/src/python/vectorize_client/models/extraction_result.py +++ b/src/python/vectorize_client/models/extraction_result.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/extraction_result_response.py b/src/python/vectorize_client/models/extraction_result_response.py index bbcce20..ab3378a 100644 --- a/src/python/vectorize_client/models/extraction_result_response.py +++ b/src/python/vectorize_client/models/extraction_result_response.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/extraction_type.py b/src/python/vectorize_client/models/extraction_type.py index 3391000..7c4c6bc 100644 --- a/src/python/vectorize_client/models/extraction_type.py +++ b/src/python/vectorize_client/models/extraction_type.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/file_upload.py b/src/python/vectorize_client/models/file_upload.py index 07676ec..2e629cb 100644 --- a/src/python/vectorize_client/models/file_upload.py +++ b/src/python/vectorize_client/models/file_upload.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/file_upload1.py b/src/python/vectorize_client/models/file_upload1.py index cf54836..dfb3e79 100644 --- a/src/python/vectorize_client/models/file_upload1.py +++ b/src/python/vectorize_client/models/file_upload1.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/fileupload_auth_config.py b/src/python/vectorize_client/models/fileupload_auth_config.py index 5101849..15f493b 100644 --- a/src/python/vectorize_client/models/fileupload_auth_config.py +++ b/src/python/vectorize_client/models/fileupload_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/firecrawl.py b/src/python/vectorize_client/models/firecrawl.py index b0b2b59..6d8bfcf 100644 --- a/src/python/vectorize_client/models/firecrawl.py +++ b/src/python/vectorize_client/models/firecrawl.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/firecrawl1.py b/src/python/vectorize_client/models/firecrawl1.py index d880f44..1df5ce6 100644 --- a/src/python/vectorize_client/models/firecrawl1.py +++ b/src/python/vectorize_client/models/firecrawl1.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/firecrawl_auth_config.py b/src/python/vectorize_client/models/firecrawl_auth_config.py index df0aca4..95e1636 100644 --- a/src/python/vectorize_client/models/firecrawl_auth_config.py +++ b/src/python/vectorize_client/models/firecrawl_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/firecrawl_config.py b/src/python/vectorize_client/models/firecrawl_config.py index 48adf7b..5bbc8e1 100644 --- a/src/python/vectorize_client/models/firecrawl_config.py +++ b/src/python/vectorize_client/models/firecrawl_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/fireflies.py b/src/python/vectorize_client/models/fireflies.py index c6fb12c..ab6a602 100644 --- a/src/python/vectorize_client/models/fireflies.py +++ b/src/python/vectorize_client/models/fireflies.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/fireflies1.py b/src/python/vectorize_client/models/fireflies1.py index 2e9f392..a92611b 100644 --- a/src/python/vectorize_client/models/fireflies1.py +++ b/src/python/vectorize_client/models/fireflies1.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/fireflies_auth_config.py b/src/python/vectorize_client/models/fireflies_auth_config.py index 55e6ef2..b957b6c 100644 --- a/src/python/vectorize_client/models/fireflies_auth_config.py +++ b/src/python/vectorize_client/models/fireflies_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/fireflies_config.py b/src/python/vectorize_client/models/fireflies_config.py index 2cc1c63..95f1ba7 100644 --- a/src/python/vectorize_client/models/fireflies_config.py +++ b/src/python/vectorize_client/models/fireflies_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/gcs.py b/src/python/vectorize_client/models/gcs.py index b8b4249..916ca8b 100644 --- a/src/python/vectorize_client/models/gcs.py +++ b/src/python/vectorize_client/models/gcs.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/gcs1.py b/src/python/vectorize_client/models/gcs1.py index f3c6a26..01d87bd 100644 --- a/src/python/vectorize_client/models/gcs1.py +++ b/src/python/vectorize_client/models/gcs1.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/gcs_auth_config.py b/src/python/vectorize_client/models/gcs_auth_config.py index 0a6eec0..668c6e2 100644 --- a/src/python/vectorize_client/models/gcs_auth_config.py +++ b/src/python/vectorize_client/models/gcs_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/gcs_config.py b/src/python/vectorize_client/models/gcs_config.py index 1b3a873..dbf7582 100644 --- a/src/python/vectorize_client/models/gcs_config.py +++ b/src/python/vectorize_client/models/gcs_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/get_ai_platform_connectors200_response.py b/src/python/vectorize_client/models/get_ai_platform_connectors200_response.py index a23bff6..78a010c 100644 --- a/src/python/vectorize_client/models/get_ai_platform_connectors200_response.py +++ b/src/python/vectorize_client/models/get_ai_platform_connectors200_response.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. 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 7f3e428..b57d04c 100644 --- a/src/python/vectorize_client/models/get_deep_research_response.py +++ b/src/python/vectorize_client/models/get_deep_research_response.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/get_destination_connectors200_response.py b/src/python/vectorize_client/models/get_destination_connectors200_response.py index fa60e88..5e3bfe5 100644 --- a/src/python/vectorize_client/models/get_destination_connectors200_response.py +++ b/src/python/vectorize_client/models/get_destination_connectors200_response.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. 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 982f462..979981f 100644 --- a/src/python/vectorize_client/models/get_pipeline_events_response.py +++ b/src/python/vectorize_client/models/get_pipeline_events_response.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. 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 77f1069..9dfb581 100644 --- a/src/python/vectorize_client/models/get_pipeline_metrics_response.py +++ b/src/python/vectorize_client/models/get_pipeline_metrics_response.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/get_pipeline_response.py b/src/python/vectorize_client/models/get_pipeline_response.py index 50ba5ad..98ac834 100644 --- a/src/python/vectorize_client/models/get_pipeline_response.py +++ b/src/python/vectorize_client/models/get_pipeline_response.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/get_pipelines400_response.py b/src/python/vectorize_client/models/get_pipelines400_response.py index 5c1ee78..ebbcf2a 100644 --- a/src/python/vectorize_client/models/get_pipelines400_response.py +++ b/src/python/vectorize_client/models/get_pipelines400_response.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/get_pipelines_response.py b/src/python/vectorize_client/models/get_pipelines_response.py index 02218b1..52af6ba 100644 --- a/src/python/vectorize_client/models/get_pipelines_response.py +++ b/src/python/vectorize_client/models/get_pipelines_response.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/get_source_connectors200_response.py b/src/python/vectorize_client/models/get_source_connectors200_response.py index c2b5961..f487023 100644 --- a/src/python/vectorize_client/models/get_source_connectors200_response.py +++ b/src/python/vectorize_client/models/get_source_connectors200_response.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. 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 d214dfa..5a6df32 100644 --- a/src/python/vectorize_client/models/get_upload_files_response.py +++ b/src/python/vectorize_client/models/get_upload_files_response.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/github.py b/src/python/vectorize_client/models/github.py index 0e0cee3..d96373c 100644 --- a/src/python/vectorize_client/models/github.py +++ b/src/python/vectorize_client/models/github.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/github1.py b/src/python/vectorize_client/models/github1.py index a170b8b..54f23e7 100644 --- a/src/python/vectorize_client/models/github1.py +++ b/src/python/vectorize_client/models/github1.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/github_auth_config.py b/src/python/vectorize_client/models/github_auth_config.py index 7b2ac2e..e00566c 100644 --- a/src/python/vectorize_client/models/github_auth_config.py +++ b/src/python/vectorize_client/models/github_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/github_config.py b/src/python/vectorize_client/models/github_config.py index 07fb81c..d3ea39b 100644 --- a/src/python/vectorize_client/models/github_config.py +++ b/src/python/vectorize_client/models/github_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/gmail_auth_config.py b/src/python/vectorize_client/models/gmail_auth_config.py index 2905d0c..4f68c14 100644 --- a/src/python/vectorize_client/models/gmail_auth_config.py +++ b/src/python/vectorize_client/models/gmail_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/gmail_config.py b/src/python/vectorize_client/models/gmail_config.py index 2aaf56d..110602b 100644 --- a/src/python/vectorize_client/models/gmail_config.py +++ b/src/python/vectorize_client/models/gmail_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -18,7 +18,7 @@ import json from datetime import date -from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr, field_validator +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional, Union from typing_extensions import Annotated from typing import Optional, Set @@ -30,17 +30,20 @@ class GMAILConfig(BaseModel): """ # noqa: E501 from_filter_type: StrictStr = Field(alias="from-filter-type") to_filter_type: StrictStr = Field(alias="to-filter-type") + cc_filter_type: StrictStr = Field(alias="cc-filter-type") subject_filter_type: StrictStr = Field(alias="subject-filter-type") label_filter_type: StrictStr = Field(alias="label-filter-type") var_from: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="From Address Filter. Only include emails from these senders. Example: Add sender email(s)", alias="from") to: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="To Address Filter. Only include emails sent to these recipients. Example: Add recipient email(s)") + cc: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="CC Address Filter. Only include emails with these addresses in CC field. Example: Add CC email(s)") + include_attachments: Optional[StrictBool] = Field(default=False, description="Include Attachments. Include email attachments in the processed content", alias="include-attachments") subject: Optional[StrictStr] = Field(default=None, description="Subject Filter. Include emails with these keywords in the subject line. Example: Add subject keywords") start_date: Optional[date] = Field(default=None, description="Start Date. Only include emails sent after this date (exclusive). Format: YYYY-MM-DD.. Example: e.g., 2024-01-01", alias="start-date") end_date: Optional[date] = Field(default=None, description="End Date. Only include emails sent before this date (exclusive). Format: YYYY-MM-DD.. Example: e.g., 2024-01-31", alias="end-date") max_results: Optional[Union[StrictFloat, StrictInt]] = Field(default=-1, description="Maximum Results. Enter -1 for all available emails, or specify a limit. . Example: Enter maximum number of threads to retrieve", alias="max-results") messages_to_fetch: Optional[List[StrictStr]] = Field(default=None, description="Messages to Fetch. Select which categories of messages to include in the import.", alias="messages-to-fetch") label_ids: Optional[StrictStr] = Field(default=None, description="Label Filters. Include emails with these labels. Example: e.g., INBOX, IMPORTANT, CATEGORY_SOCIAL", alias="label-ids") - __properties: ClassVar[List[str]] = ["from-filter-type", "to-filter-type", "subject-filter-type", "label-filter-type", "from", "to", "subject", "start-date", "end-date", "max-results", "messages-to-fetch", "label-ids"] + __properties: ClassVar[List[str]] = ["from-filter-type", "to-filter-type", "cc-filter-type", "subject-filter-type", "label-filter-type", "from", "to", "cc", "include-attachments", "subject", "start-date", "end-date", "max-results", "messages-to-fetch", "label-ids"] @field_validator('var_from') def var_from_validate_regular_expression(cls, value): @@ -62,6 +65,16 @@ def to_validate_regular_expression(cls, value): raise ValueError(r"must validate the regular expression /^[^\s@]+@[^\s@]+\.[^\s@]+$/") return value + @field_validator('cc') + def cc_validate_regular_expression(cls, value): + """Validates the regular expression""" + if value is None: + return value + + if not re.match(r"^[^\s@]+@[^\s@]+\.[^\s@]+$", value): + raise ValueError(r"must validate the regular expression /^[^\s@]+@[^\s@]+\.[^\s@]+$/") + return value + @field_validator('messages_to_fetch') def messages_to_fetch_validate_enum(cls, value): """Validates the enum""" @@ -126,10 +139,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "from-filter-type": obj.get("from-filter-type") if obj.get("from-filter-type") is not None else 'OR', "to-filter-type": obj.get("to-filter-type") if obj.get("to-filter-type") is not None else 'OR', + "cc-filter-type": obj.get("cc-filter-type") if obj.get("cc-filter-type") is not None else 'OR', "subject-filter-type": obj.get("subject-filter-type") if obj.get("subject-filter-type") is not None else 'AND', "label-filter-type": obj.get("label-filter-type") if obj.get("label-filter-type") is not None else 'AND', "from": obj.get("from"), "to": obj.get("to"), + "cc": obj.get("cc"), + "include-attachments": obj.get("include-attachments") if obj.get("include-attachments") is not None else False, "subject": obj.get("subject"), "start-date": obj.get("start-date"), "end-date": obj.get("end-date"), diff --git a/src/python/vectorize_client/models/google_drive.py b/src/python/vectorize_client/models/google_drive.py index 161df3a..b57a316 100644 --- a/src/python/vectorize_client/models/google_drive.py +++ b/src/python/vectorize_client/models/google_drive.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/google_drive1.py b/src/python/vectorize_client/models/google_drive1.py index b813f5a..39d415a 100644 --- a/src/python/vectorize_client/models/google_drive1.py +++ b/src/python/vectorize_client/models/google_drive1.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/google_drive_oauth.py b/src/python/vectorize_client/models/google_drive_oauth.py index 1f0ebaf..02a4c6f 100644 --- a/src/python/vectorize_client/models/google_drive_oauth.py +++ b/src/python/vectorize_client/models/google_drive_oauth.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/google_drive_oauth_multi.py b/src/python/vectorize_client/models/google_drive_oauth_multi.py index e190991..7e345c7 100644 --- a/src/python/vectorize_client/models/google_drive_oauth_multi.py +++ b/src/python/vectorize_client/models/google_drive_oauth_multi.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/google_drive_oauth_multi_custom.py b/src/python/vectorize_client/models/google_drive_oauth_multi_custom.py index 8ebdf59..e99051c 100644 --- a/src/python/vectorize_client/models/google_drive_oauth_multi_custom.py +++ b/src/python/vectorize_client/models/google_drive_oauth_multi_custom.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/googledrive_auth_config.py b/src/python/vectorize_client/models/googledrive_auth_config.py index 287d87b..2e9f359 100644 --- a/src/python/vectorize_client/models/googledrive_auth_config.py +++ b/src/python/vectorize_client/models/googledrive_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/googledrive_config.py b/src/python/vectorize_client/models/googledrive_config.py index 3076118..f94c9d2 100644 --- a/src/python/vectorize_client/models/googledrive_config.py +++ b/src/python/vectorize_client/models/googledrive_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/googledriveoauth_auth_config.py b/src/python/vectorize_client/models/googledriveoauth_auth_config.py index 047bf99..bd6f9ea 100644 --- a/src/python/vectorize_client/models/googledriveoauth_auth_config.py +++ b/src/python/vectorize_client/models/googledriveoauth_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/googledriveoauth_config.py b/src/python/vectorize_client/models/googledriveoauth_config.py index 603bba2..fa4d532 100644 --- a/src/python/vectorize_client/models/googledriveoauth_config.py +++ b/src/python/vectorize_client/models/googledriveoauth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/googledriveoauthmulti_auth_config.py b/src/python/vectorize_client/models/googledriveoauthmulti_auth_config.py index ee67df6..6da4a91 100644 --- a/src/python/vectorize_client/models/googledriveoauthmulti_auth_config.py +++ b/src/python/vectorize_client/models/googledriveoauthmulti_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/googledriveoauthmulti_config.py b/src/python/vectorize_client/models/googledriveoauthmulti_config.py index 5604430..c0c6c5e 100644 --- a/src/python/vectorize_client/models/googledriveoauthmulti_config.py +++ b/src/python/vectorize_client/models/googledriveoauthmulti_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/googledriveoauthmulticustom_auth_config.py b/src/python/vectorize_client/models/googledriveoauthmulticustom_auth_config.py index 92d6fcc..853438f 100644 --- a/src/python/vectorize_client/models/googledriveoauthmulticustom_auth_config.py +++ b/src/python/vectorize_client/models/googledriveoauthmulticustom_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/googledriveoauthmulticustom_config.py b/src/python/vectorize_client/models/googledriveoauthmulticustom_config.py index d9a9281..2afd9a9 100644 --- a/src/python/vectorize_client/models/googledriveoauthmulticustom_config.py +++ b/src/python/vectorize_client/models/googledriveoauthmulticustom_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/intercom.py b/src/python/vectorize_client/models/intercom.py index 21cb353..9174321 100644 --- a/src/python/vectorize_client/models/intercom.py +++ b/src/python/vectorize_client/models/intercom.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/intercom_auth_config.py b/src/python/vectorize_client/models/intercom_auth_config.py index ca804c4..f07c186 100644 --- a/src/python/vectorize_client/models/intercom_auth_config.py +++ b/src/python/vectorize_client/models/intercom_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/intercom_config.py b/src/python/vectorize_client/models/intercom_config.py index 34a0061..2b3edc9 100644 --- a/src/python/vectorize_client/models/intercom_config.py +++ b/src/python/vectorize_client/models/intercom_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/metadata_extraction_strategy.py b/src/python/vectorize_client/models/metadata_extraction_strategy.py index ba0d740..1672625 100644 --- a/src/python/vectorize_client/models/metadata_extraction_strategy.py +++ b/src/python/vectorize_client/models/metadata_extraction_strategy.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/metadata_extraction_strategy_schema.py b/src/python/vectorize_client/models/metadata_extraction_strategy_schema.py index 6fe666a..61af8d0 100644 --- a/src/python/vectorize_client/models/metadata_extraction_strategy_schema.py +++ b/src/python/vectorize_client/models/metadata_extraction_strategy_schema.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/milvus.py b/src/python/vectorize_client/models/milvus.py index 22d95bf..e59919c 100644 --- a/src/python/vectorize_client/models/milvus.py +++ b/src/python/vectorize_client/models/milvus.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/milvus1.py b/src/python/vectorize_client/models/milvus1.py index 335a96e..f6c7161 100644 --- a/src/python/vectorize_client/models/milvus1.py +++ b/src/python/vectorize_client/models/milvus1.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/milvus_auth_config.py b/src/python/vectorize_client/models/milvus_auth_config.py index 3c3e8ae..54b8a8f 100644 --- a/src/python/vectorize_client/models/milvus_auth_config.py +++ b/src/python/vectorize_client/models/milvus_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/milvus_config.py b/src/python/vectorize_client/models/milvus_config.py index 9f752b5..7525c71 100644 --- a/src/python/vectorize_client/models/milvus_config.py +++ b/src/python/vectorize_client/models/milvus_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/n8_n_config.py b/src/python/vectorize_client/models/n8_n_config.py index 712090c..6b6c3a5 100644 --- a/src/python/vectorize_client/models/n8_n_config.py +++ b/src/python/vectorize_client/models/n8_n_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/notion.py b/src/python/vectorize_client/models/notion.py index e3fac5c..14c1372 100644 --- a/src/python/vectorize_client/models/notion.py +++ b/src/python/vectorize_client/models/notion.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/notion_auth_config.py b/src/python/vectorize_client/models/notion_auth_config.py index b90e3cf..d30675d 100644 --- a/src/python/vectorize_client/models/notion_auth_config.py +++ b/src/python/vectorize_client/models/notion_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/notion_config.py b/src/python/vectorize_client/models/notion_config.py index 1e63152..c1ef559 100644 --- a/src/python/vectorize_client/models/notion_config.py +++ b/src/python/vectorize_client/models/notion_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/notion_oauth_multi.py b/src/python/vectorize_client/models/notion_oauth_multi.py index 7810fc7..241957e 100644 --- a/src/python/vectorize_client/models/notion_oauth_multi.py +++ b/src/python/vectorize_client/models/notion_oauth_multi.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/notion_oauth_multi_custom.py b/src/python/vectorize_client/models/notion_oauth_multi_custom.py index 9f415e6..5af78f3 100644 --- a/src/python/vectorize_client/models/notion_oauth_multi_custom.py +++ b/src/python/vectorize_client/models/notion_oauth_multi_custom.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/notionoauthmulti_auth_config.py b/src/python/vectorize_client/models/notionoauthmulti_auth_config.py index 19c38b0..34284a1 100644 --- a/src/python/vectorize_client/models/notionoauthmulti_auth_config.py +++ b/src/python/vectorize_client/models/notionoauthmulti_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/notionoauthmulticustom_auth_config.py b/src/python/vectorize_client/models/notionoauthmulticustom_auth_config.py index 272a500..e8d0574 100644 --- a/src/python/vectorize_client/models/notionoauthmulticustom_auth_config.py +++ b/src/python/vectorize_client/models/notionoauthmulticustom_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/one_drive.py b/src/python/vectorize_client/models/one_drive.py index 38a2ada..8dc2891 100644 --- a/src/python/vectorize_client/models/one_drive.py +++ b/src/python/vectorize_client/models/one_drive.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/one_drive1.py b/src/python/vectorize_client/models/one_drive1.py index 5f03ac0..798fabf 100644 --- a/src/python/vectorize_client/models/one_drive1.py +++ b/src/python/vectorize_client/models/one_drive1.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/onedrive_auth_config.py b/src/python/vectorize_client/models/onedrive_auth_config.py index caf9a61..cf0ff64 100644 --- a/src/python/vectorize_client/models/onedrive_auth_config.py +++ b/src/python/vectorize_client/models/onedrive_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/onedrive_config.py b/src/python/vectorize_client/models/onedrive_config.py index 03d1789..9b1beb6 100644 --- a/src/python/vectorize_client/models/onedrive_config.py +++ b/src/python/vectorize_client/models/onedrive_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/openai.py b/src/python/vectorize_client/models/openai.py index 083db50..a28253f 100644 --- a/src/python/vectorize_client/models/openai.py +++ b/src/python/vectorize_client/models/openai.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/openai1.py b/src/python/vectorize_client/models/openai1.py index 6690093..669411e 100644 --- a/src/python/vectorize_client/models/openai1.py +++ b/src/python/vectorize_client/models/openai1.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/openai_auth_config.py b/src/python/vectorize_client/models/openai_auth_config.py index 9bf99e0..db0d6eb 100644 --- a/src/python/vectorize_client/models/openai_auth_config.py +++ b/src/python/vectorize_client/models/openai_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/pinecone.py b/src/python/vectorize_client/models/pinecone.py index 397b50e..088f0a9 100644 --- a/src/python/vectorize_client/models/pinecone.py +++ b/src/python/vectorize_client/models/pinecone.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/pinecone1.py b/src/python/vectorize_client/models/pinecone1.py index 7e8d629..58cd734 100644 --- a/src/python/vectorize_client/models/pinecone1.py +++ b/src/python/vectorize_client/models/pinecone1.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/pinecone_auth_config.py b/src/python/vectorize_client/models/pinecone_auth_config.py index 4358142..b585917 100644 --- a/src/python/vectorize_client/models/pinecone_auth_config.py +++ b/src/python/vectorize_client/models/pinecone_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/pinecone_config.py b/src/python/vectorize_client/models/pinecone_config.py index 604855e..fa7e167 100644 --- a/src/python/vectorize_client/models/pinecone_config.py +++ b/src/python/vectorize_client/models/pinecone_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/pipeline_configuration_schema.py b/src/python/vectorize_client/models/pipeline_configuration_schema.py index 08f86ec..e290091 100644 --- a/src/python/vectorize_client/models/pipeline_configuration_schema.py +++ b/src/python/vectorize_client/models/pipeline_configuration_schema.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/pipeline_events.py b/src/python/vectorize_client/models/pipeline_events.py index 41ff884..78af0ab 100644 --- a/src/python/vectorize_client/models/pipeline_events.py +++ b/src/python/vectorize_client/models/pipeline_events.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/pipeline_list_summary.py b/src/python/vectorize_client/models/pipeline_list_summary.py index f1718bc..69da1ad 100644 --- a/src/python/vectorize_client/models/pipeline_list_summary.py +++ b/src/python/vectorize_client/models/pipeline_list_summary.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/pipeline_metrics.py b/src/python/vectorize_client/models/pipeline_metrics.py index 12d95ee..5358845 100644 --- a/src/python/vectorize_client/models/pipeline_metrics.py +++ b/src/python/vectorize_client/models/pipeline_metrics.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/pipeline_summary.py b/src/python/vectorize_client/models/pipeline_summary.py index 6cedbe8..bcd21cc 100644 --- a/src/python/vectorize_client/models/pipeline_summary.py +++ b/src/python/vectorize_client/models/pipeline_summary.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/postgresql.py b/src/python/vectorize_client/models/postgresql.py index bcfc291..b4d54ae 100644 --- a/src/python/vectorize_client/models/postgresql.py +++ b/src/python/vectorize_client/models/postgresql.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/postgresql1.py b/src/python/vectorize_client/models/postgresql1.py index b0c504d..0d93398 100644 --- a/src/python/vectorize_client/models/postgresql1.py +++ b/src/python/vectorize_client/models/postgresql1.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/postgresql_auth_config.py b/src/python/vectorize_client/models/postgresql_auth_config.py index 3b7b13f..69a937d 100644 --- a/src/python/vectorize_client/models/postgresql_auth_config.py +++ b/src/python/vectorize_client/models/postgresql_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/postgresql_config.py b/src/python/vectorize_client/models/postgresql_config.py index 6ab18f5..661e277 100644 --- a/src/python/vectorize_client/models/postgresql_config.py +++ b/src/python/vectorize_client/models/postgresql_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/qdrant.py b/src/python/vectorize_client/models/qdrant.py index d2c8333..3d1f336 100644 --- a/src/python/vectorize_client/models/qdrant.py +++ b/src/python/vectorize_client/models/qdrant.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/qdrant1.py b/src/python/vectorize_client/models/qdrant1.py index 7ae631a..d97a055 100644 --- a/src/python/vectorize_client/models/qdrant1.py +++ b/src/python/vectorize_client/models/qdrant1.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/qdrant_auth_config.py b/src/python/vectorize_client/models/qdrant_auth_config.py index 90d0426..427ba67 100644 --- a/src/python/vectorize_client/models/qdrant_auth_config.py +++ b/src/python/vectorize_client/models/qdrant_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/qdrant_config.py b/src/python/vectorize_client/models/qdrant_config.py index 3188b42..e73c4b6 100644 --- a/src/python/vectorize_client/models/qdrant_config.py +++ b/src/python/vectorize_client/models/qdrant_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. 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 index 9227387..e3936b6 100644 --- 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 @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. 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 index 8666c4f..11ecb03 100644 --- 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 @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/retrieve_context.py b/src/python/vectorize_client/models/retrieve_context.py index 4077346..3664508 100644 --- a/src/python/vectorize_client/models/retrieve_context.py +++ b/src/python/vectorize_client/models/retrieve_context.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/retrieve_context_message.py b/src/python/vectorize_client/models/retrieve_context_message.py index 6d29411..ddf4431 100644 --- a/src/python/vectorize_client/models/retrieve_context_message.py +++ b/src/python/vectorize_client/models/retrieve_context_message.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/retrieve_documents_request.py b/src/python/vectorize_client/models/retrieve_documents_request.py index 1b2b161..66a2b73 100644 --- a/src/python/vectorize_client/models/retrieve_documents_request.py +++ b/src/python/vectorize_client/models/retrieve_documents_request.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/retrieve_documents_response.py b/src/python/vectorize_client/models/retrieve_documents_response.py index ad0035b..fada136 100644 --- a/src/python/vectorize_client/models/retrieve_documents_response.py +++ b/src/python/vectorize_client/models/retrieve_documents_response.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/schedule_schema.py b/src/python/vectorize_client/models/schedule_schema.py index 89a6037..606a801 100644 --- a/src/python/vectorize_client/models/schedule_schema.py +++ b/src/python/vectorize_client/models/schedule_schema.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/schedule_schema_type.py b/src/python/vectorize_client/models/schedule_schema_type.py index 67c0e2d..94db02b 100644 --- a/src/python/vectorize_client/models/schedule_schema_type.py +++ b/src/python/vectorize_client/models/schedule_schema_type.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/sharepoint.py b/src/python/vectorize_client/models/sharepoint.py index 73923d2..a96ffcf 100644 --- a/src/python/vectorize_client/models/sharepoint.py +++ b/src/python/vectorize_client/models/sharepoint.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/sharepoint1.py b/src/python/vectorize_client/models/sharepoint1.py index fb55697..5004654 100644 --- a/src/python/vectorize_client/models/sharepoint1.py +++ b/src/python/vectorize_client/models/sharepoint1.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/sharepoint_auth_config.py b/src/python/vectorize_client/models/sharepoint_auth_config.py index 7fb8f28..61b53f4 100644 --- a/src/python/vectorize_client/models/sharepoint_auth_config.py +++ b/src/python/vectorize_client/models/sharepoint_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/sharepoint_config.py b/src/python/vectorize_client/models/sharepoint_config.py index 81a95e8..d2f54e7 100644 --- a/src/python/vectorize_client/models/sharepoint_config.py +++ b/src/python/vectorize_client/models/sharepoint_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/singlestore.py b/src/python/vectorize_client/models/singlestore.py index 26ef596..805345b 100644 --- a/src/python/vectorize_client/models/singlestore.py +++ b/src/python/vectorize_client/models/singlestore.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/singlestore1.py b/src/python/vectorize_client/models/singlestore1.py index 43bbe0e..407014f 100644 --- a/src/python/vectorize_client/models/singlestore1.py +++ b/src/python/vectorize_client/models/singlestore1.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/singlestore_auth_config.py b/src/python/vectorize_client/models/singlestore_auth_config.py index 6261055..c9f5720 100644 --- a/src/python/vectorize_client/models/singlestore_auth_config.py +++ b/src/python/vectorize_client/models/singlestore_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/singlestore_config.py b/src/python/vectorize_client/models/singlestore_config.py index f8d3331..76ed47f 100644 --- a/src/python/vectorize_client/models/singlestore_config.py +++ b/src/python/vectorize_client/models/singlestore_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/source_connector.py b/src/python/vectorize_client/models/source_connector.py index f1a0d76..187a589 100644 --- a/src/python/vectorize_client/models/source_connector.py +++ b/src/python/vectorize_client/models/source_connector.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/source_connector_input.py b/src/python/vectorize_client/models/source_connector_input.py index e3a31b7..0751996 100644 --- a/src/python/vectorize_client/models/source_connector_input.py +++ b/src/python/vectorize_client/models/source_connector_input.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/source_connector_input_config.py b/src/python/vectorize_client/models/source_connector_input_config.py index 5f36e03..5defd25 100644 --- a/src/python/vectorize_client/models/source_connector_input_config.py +++ b/src/python/vectorize_client/models/source_connector_input_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/source_connector_schema.py b/src/python/vectorize_client/models/source_connector_schema.py index fe90e84..1e29c6d 100644 --- a/src/python/vectorize_client/models/source_connector_schema.py +++ b/src/python/vectorize_client/models/source_connector_schema.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/source_connector_type.py b/src/python/vectorize_client/models/source_connector_type.py index 3ef2da4..181e386 100644 --- a/src/python/vectorize_client/models/source_connector_type.py +++ b/src/python/vectorize_client/models/source_connector_type.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. 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 de60fa6..213ea07 100644 --- a/src/python/vectorize_client/models/start_deep_research_request.py +++ b/src/python/vectorize_client/models/start_deep_research_request.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/start_deep_research_response.py b/src/python/vectorize_client/models/start_deep_research_response.py index 66af5b1..1d2f1ab 100644 --- a/src/python/vectorize_client/models/start_deep_research_response.py +++ b/src/python/vectorize_client/models/start_deep_research_response.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/start_extraction_request.py b/src/python/vectorize_client/models/start_extraction_request.py index 8952900..0f8bf56 100644 --- a/src/python/vectorize_client/models/start_extraction_request.py +++ b/src/python/vectorize_client/models/start_extraction_request.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/start_extraction_response.py b/src/python/vectorize_client/models/start_extraction_response.py index 19e5814..f610627 100644 --- a/src/python/vectorize_client/models/start_extraction_response.py +++ b/src/python/vectorize_client/models/start_extraction_response.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/start_file_upload_request.py b/src/python/vectorize_client/models/start_file_upload_request.py index cc9aa40..b10920d 100644 --- a/src/python/vectorize_client/models/start_file_upload_request.py +++ b/src/python/vectorize_client/models/start_file_upload_request.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/start_file_upload_response.py b/src/python/vectorize_client/models/start_file_upload_response.py index f53e624..a62dc7c 100644 --- a/src/python/vectorize_client/models/start_file_upload_response.py +++ b/src/python/vectorize_client/models/start_file_upload_response.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/start_file_upload_to_connector_request.py b/src/python/vectorize_client/models/start_file_upload_to_connector_request.py index abf3809..6bea180 100644 --- a/src/python/vectorize_client/models/start_file_upload_to_connector_request.py +++ b/src/python/vectorize_client/models/start_file_upload_to_connector_request.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/start_file_upload_to_connector_response.py b/src/python/vectorize_client/models/start_file_upload_to_connector_response.py index b80bbc4..385afc1 100644 --- a/src/python/vectorize_client/models/start_file_upload_to_connector_response.py +++ b/src/python/vectorize_client/models/start_file_upload_to_connector_response.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/start_pipeline_response.py b/src/python/vectorize_client/models/start_pipeline_response.py index 52ea980..0b1634d 100644 --- a/src/python/vectorize_client/models/start_pipeline_response.py +++ b/src/python/vectorize_client/models/start_pipeline_response.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/stop_pipeline_response.py b/src/python/vectorize_client/models/stop_pipeline_response.py index 81b7820..6531c37 100644 --- a/src/python/vectorize_client/models/stop_pipeline_response.py +++ b/src/python/vectorize_client/models/stop_pipeline_response.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/supabase.py b/src/python/vectorize_client/models/supabase.py index e528a1e..90fa38b 100644 --- a/src/python/vectorize_client/models/supabase.py +++ b/src/python/vectorize_client/models/supabase.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/supabase1.py b/src/python/vectorize_client/models/supabase1.py index ea326ee..a0d8744 100644 --- a/src/python/vectorize_client/models/supabase1.py +++ b/src/python/vectorize_client/models/supabase1.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/supabase_auth_config.py b/src/python/vectorize_client/models/supabase_auth_config.py index f49738b..19761da 100644 --- a/src/python/vectorize_client/models/supabase_auth_config.py +++ b/src/python/vectorize_client/models/supabase_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/supabase_config.py b/src/python/vectorize_client/models/supabase_config.py index 44e7c41..5e35cc8 100644 --- a/src/python/vectorize_client/models/supabase_config.py +++ b/src/python/vectorize_client/models/supabase_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/turbopuffer.py b/src/python/vectorize_client/models/turbopuffer.py index fef7b48..cbd0a43 100644 --- a/src/python/vectorize_client/models/turbopuffer.py +++ b/src/python/vectorize_client/models/turbopuffer.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/turbopuffer1.py b/src/python/vectorize_client/models/turbopuffer1.py index a72fcc0..96df8b7 100644 --- a/src/python/vectorize_client/models/turbopuffer1.py +++ b/src/python/vectorize_client/models/turbopuffer1.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/turbopuffer_auth_config.py b/src/python/vectorize_client/models/turbopuffer_auth_config.py index 43b933e..bf3f7fb 100644 --- a/src/python/vectorize_client/models/turbopuffer_auth_config.py +++ b/src/python/vectorize_client/models/turbopuffer_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/turbopuffer_config.py b/src/python/vectorize_client/models/turbopuffer_config.py index a12ca1c..3147b3f 100644 --- a/src/python/vectorize_client/models/turbopuffer_config.py +++ b/src/python/vectorize_client/models/turbopuffer_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. 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 e364998..bb65ab6 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 @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. 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 index 8447cbc..18a4070 100644 --- a/src/python/vectorize_client/models/update_ai_platform_connector_response.py +++ b/src/python/vectorize_client/models/update_ai_platform_connector_response.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/update_destination_connector_request.py b/src/python/vectorize_client/models/update_destination_connector_request.py index ab290a8..598f0d2 100644 --- a/src/python/vectorize_client/models/update_destination_connector_request.py +++ b/src/python/vectorize_client/models/update_destination_connector_request.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/update_destination_connector_response.py b/src/python/vectorize_client/models/update_destination_connector_response.py index 3c7e5cb..b5c79b5 100644 --- a/src/python/vectorize_client/models/update_destination_connector_response.py +++ b/src/python/vectorize_client/models/update_destination_connector_response.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. 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 dd05d2b..4c2d499 100644 --- a/src/python/vectorize_client/models/update_source_connector_request.py +++ b/src/python/vectorize_client/models/update_source_connector_request.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/update_source_connector_response.py b/src/python/vectorize_client/models/update_source_connector_response.py index ad00a98..1091dbe 100644 --- a/src/python/vectorize_client/models/update_source_connector_response.py +++ b/src/python/vectorize_client/models/update_source_connector_response.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. 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 index f22c878..619fd84 100644 --- a/src/python/vectorize_client/models/update_source_connector_response_data.py +++ b/src/python/vectorize_client/models/update_source_connector_response_data.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. 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 index 1437f42..d55780b 100644 --- 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 @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. 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 index dc48eb3..e4590d4 100644 --- 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 @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. 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 index 654a4f1..11395b9 100644 --- a/src/python/vectorize_client/models/updated_ai_platform_connector_data.py +++ b/src/python/vectorize_client/models/updated_ai_platform_connector_data.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/updated_destination_connector_data.py b/src/python/vectorize_client/models/updated_destination_connector_data.py index 8c80cc6..2d9b2b8 100644 --- a/src/python/vectorize_client/models/updated_destination_connector_data.py +++ b/src/python/vectorize_client/models/updated_destination_connector_data.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/upload_file.py b/src/python/vectorize_client/models/upload_file.py index 351db1c..de33b67 100644 --- a/src/python/vectorize_client/models/upload_file.py +++ b/src/python/vectorize_client/models/upload_file.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/vertex.py b/src/python/vectorize_client/models/vertex.py index 1b3bb5b..1a35752 100644 --- a/src/python/vectorize_client/models/vertex.py +++ b/src/python/vectorize_client/models/vertex.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/vertex1.py b/src/python/vectorize_client/models/vertex1.py index 4782cdc..3aec028 100644 --- a/src/python/vectorize_client/models/vertex1.py +++ b/src/python/vectorize_client/models/vertex1.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/vertex_auth_config.py b/src/python/vectorize_client/models/vertex_auth_config.py index 9137921..824be8a 100644 --- a/src/python/vectorize_client/models/vertex_auth_config.py +++ b/src/python/vectorize_client/models/vertex_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/voyage.py b/src/python/vectorize_client/models/voyage.py index f5fe25e..b1be482 100644 --- a/src/python/vectorize_client/models/voyage.py +++ b/src/python/vectorize_client/models/voyage.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/voyage1.py b/src/python/vectorize_client/models/voyage1.py index 993e7d8..1929be9 100644 --- a/src/python/vectorize_client/models/voyage1.py +++ b/src/python/vectorize_client/models/voyage1.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/voyage_auth_config.py b/src/python/vectorize_client/models/voyage_auth_config.py index 837e36f..87474b5 100644 --- a/src/python/vectorize_client/models/voyage_auth_config.py +++ b/src/python/vectorize_client/models/voyage_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/weaviate.py b/src/python/vectorize_client/models/weaviate.py index ed8b04c..854a559 100644 --- a/src/python/vectorize_client/models/weaviate.py +++ b/src/python/vectorize_client/models/weaviate.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/weaviate1.py b/src/python/vectorize_client/models/weaviate1.py index 34e9929..8012251 100644 --- a/src/python/vectorize_client/models/weaviate1.py +++ b/src/python/vectorize_client/models/weaviate1.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/weaviate_auth_config.py b/src/python/vectorize_client/models/weaviate_auth_config.py index 41805e8..76a4948 100644 --- a/src/python/vectorize_client/models/weaviate_auth_config.py +++ b/src/python/vectorize_client/models/weaviate_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/weaviate_config.py b/src/python/vectorize_client/models/weaviate_config.py index 72bc6b4..b125df0 100644 --- a/src/python/vectorize_client/models/weaviate_config.py +++ b/src/python/vectorize_client/models/weaviate_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/web_crawler.py b/src/python/vectorize_client/models/web_crawler.py index 0a488cb..e177c56 100644 --- a/src/python/vectorize_client/models/web_crawler.py +++ b/src/python/vectorize_client/models/web_crawler.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/web_crawler1.py b/src/python/vectorize_client/models/web_crawler1.py index 0049978..8b3d4a0 100644 --- a/src/python/vectorize_client/models/web_crawler1.py +++ b/src/python/vectorize_client/models/web_crawler1.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/webcrawler_auth_config.py b/src/python/vectorize_client/models/webcrawler_auth_config.py index d600677..f0f494b 100644 --- a/src/python/vectorize_client/models/webcrawler_auth_config.py +++ b/src/python/vectorize_client/models/webcrawler_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/webcrawler_config.py b/src/python/vectorize_client/models/webcrawler_config.py index 6666f05..160a04d 100644 --- a/src/python/vectorize_client/models/webcrawler_config.py +++ b/src/python/vectorize_client/models/webcrawler_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/rest.py b/src/python/vectorize_client/rest.py index 6fa52b3..ca2f99e 100644 --- a/src/python/vectorize_client/rest.py +++ b/src/python/vectorize_client/rest.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.0.1 + The version of the OpenAPI document: 0.1.0 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/ts/package-lock.json b/src/ts/package-lock.json deleted file mode 100644 index 87623bf..0000000 --- a/src/ts/package-lock.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "name": "@vectorize-io/vectorize-client", - "version": "0.0.1-SNAPSHOT.202507021445", - "lockfileVersion": 3, - "requires": true, - "packages": { - "": { - "name": "@vectorize-io/vectorize-client", - "version": "0.0.1-SNAPSHOT.202507021445", - "hasInstallScript": true, - "license": "MIT", - "devDependencies": { - "typescript": "^5.8.3" - } - }, - "node_modules/typescript": { - "version": "5.8.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.3.tgz", - "integrity": "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==", - "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 75db0c5..ea336be 100644 --- a/src/ts/package.json +++ b/src/ts/package.json @@ -16,7 +16,7 @@ "preinstall": "npm install typescript" }, "devDependencies": { - "typescript": "^5.8.3" + "typescript": "^4.0 || ^5.0" }, "publishConfig": { "registry": "https://registry.npmjs.org", diff --git a/src/ts/src/apis/AIPlatformConnectorsApi.ts b/src/ts/src/apis/AIPlatformConnectorsApi.ts index 7ec4988..a386ffd 100644 --- a/src/ts/src/apis/AIPlatformConnectorsApi.ts +++ b/src/ts/src/apis/AIPlatformConnectorsApi.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/apis/DestinationConnectorsApi.ts b/src/ts/src/apis/DestinationConnectorsApi.ts index f90cd7d..fce1920 100644 --- a/src/ts/src/apis/DestinationConnectorsApi.ts +++ b/src/ts/src/apis/DestinationConnectorsApi.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/apis/ExtractionApi.ts b/src/ts/src/apis/ExtractionApi.ts index ae3113d..b5f3e95 100644 --- a/src/ts/src/apis/ExtractionApi.ts +++ b/src/ts/src/apis/ExtractionApi.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/apis/FilesApi.ts b/src/ts/src/apis/FilesApi.ts index 198fd26..ae46d60 100644 --- a/src/ts/src/apis/FilesApi.ts +++ b/src/ts/src/apis/FilesApi.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/apis/PipelinesApi.ts b/src/ts/src/apis/PipelinesApi.ts index 4b785d5..08dbb6f 100644 --- a/src/ts/src/apis/PipelinesApi.ts +++ b/src/ts/src/apis/PipelinesApi.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/apis/SourceConnectorsApi.ts b/src/ts/src/apis/SourceConnectorsApi.ts index b177db0..a8c4afd 100644 --- a/src/ts/src/apis/SourceConnectorsApi.ts +++ b/src/ts/src/apis/SourceConnectorsApi.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/apis/UploadsApi.ts b/src/ts/src/apis/UploadsApi.ts index cbc12ec..518cb35 100644 --- a/src/ts/src/apis/UploadsApi.ts +++ b/src/ts/src/apis/UploadsApi.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/AIPlatform.ts b/src/ts/src/models/AIPlatform.ts index a8fa3a4..13156a3 100644 --- a/src/ts/src/models/AIPlatform.ts +++ b/src/ts/src/models/AIPlatform.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/AIPlatformConfigSchema.ts b/src/ts/src/models/AIPlatformConfigSchema.ts index 8725077..b4effd3 100644 --- a/src/ts/src/models/AIPlatformConfigSchema.ts +++ b/src/ts/src/models/AIPlatformConfigSchema.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -73,6 +73,9 @@ export const AIPlatformConfigSchemaEmbeddingModelEnum = { VectorizeVoyageAiMultilingual2: 'VECTORIZE_VOYAGE_AI_MULTILINGUAL_2', VectorizeVoyageAiLaw2: 'VECTORIZE_VOYAGE_AI_LAW_2', VectorizeVoyageAiCode2: 'VECTORIZE_VOYAGE_AI_CODE_2', + VectorizeVoyageAi35: 'VECTORIZE_VOYAGE_AI_35', + VectorizeVoyageAi35Lite: 'VECTORIZE_VOYAGE_AI_35_LITE', + VectorizeVoyageAiCode3: 'VECTORIZE_VOYAGE_AI_CODE_3', VectorizeTitanTextEmbedding2: 'VECTORIZE_TITAN_TEXT_EMBEDDING_2', VectorizeTitanTextEmbedding1: 'VECTORIZE_TITAN_TEXT_EMBEDDING_1', OpenAiTextEmbedding2: 'OPEN_AI_TEXT_EMBEDDING_2', @@ -86,6 +89,9 @@ export const AIPlatformConfigSchemaEmbeddingModelEnum = { VoyageAiMultilingual2: 'VOYAGE_AI_MULTILINGUAL_2', VoyageAiLaw2: 'VOYAGE_AI_LAW_2', VoyageAiCode2: 'VOYAGE_AI_CODE_2', + VoyageAi35: 'VOYAGE_AI_35', + VoyageAi35Lite: 'VOYAGE_AI_35_LITE', + VoyageAiCode3: 'VOYAGE_AI_CODE_3', TitanTextEmbedding1: 'TITAN_TEXT_EMBEDDING_1', TitanTextEmbedding2: 'TITAN_TEXT_EMBEDDING_2', VertexTextEmbedding4: 'VERTEX_TEXT_EMBEDDING_4', diff --git a/src/ts/src/models/AIPlatformConnectorInput.ts b/src/ts/src/models/AIPlatformConnectorInput.ts index 19f0b3d..3a9d690 100644 --- a/src/ts/src/models/AIPlatformConnectorInput.ts +++ b/src/ts/src/models/AIPlatformConnectorInput.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/AIPlatformConnectorSchema.ts b/src/ts/src/models/AIPlatformConnectorSchema.ts index 8145353..9be4885 100644 --- a/src/ts/src/models/AIPlatformConnectorSchema.ts +++ b/src/ts/src/models/AIPlatformConnectorSchema.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/AIPlatformType.ts b/src/ts/src/models/AIPlatformType.ts index 914d1e6..b1a7f4f 100644 --- a/src/ts/src/models/AIPlatformType.ts +++ b/src/ts/src/models/AIPlatformType.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/AIPlatformTypeForPipeline.ts b/src/ts/src/models/AIPlatformTypeForPipeline.ts index 7d858a7..45c9385 100644 --- a/src/ts/src/models/AIPlatformTypeForPipeline.ts +++ b/src/ts/src/models/AIPlatformTypeForPipeline.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/AWSS3AuthConfig.ts b/src/ts/src/models/AWSS3AuthConfig.ts index 06f2072..6edba44 100644 --- a/src/ts/src/models/AWSS3AuthConfig.ts +++ b/src/ts/src/models/AWSS3AuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/AWSS3Config.ts b/src/ts/src/models/AWSS3Config.ts index 1bb4772..8f09a99 100644 --- a/src/ts/src/models/AWSS3Config.ts +++ b/src/ts/src/models/AWSS3Config.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/AZUREAISEARCHAuthConfig.ts b/src/ts/src/models/AZUREAISEARCHAuthConfig.ts index 701f703..0e566b0 100644 --- a/src/ts/src/models/AZUREAISEARCHAuthConfig.ts +++ b/src/ts/src/models/AZUREAISEARCHAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/AZUREAISEARCHConfig.ts b/src/ts/src/models/AZUREAISEARCHConfig.ts index ba29221..d362894 100644 --- a/src/ts/src/models/AZUREAISEARCHConfig.ts +++ b/src/ts/src/models/AZUREAISEARCHConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/AZUREBLOBAuthConfig.ts b/src/ts/src/models/AZUREBLOBAuthConfig.ts index aa132b8..990816e 100644 --- a/src/ts/src/models/AZUREBLOBAuthConfig.ts +++ b/src/ts/src/models/AZUREBLOBAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/AZUREBLOBConfig.ts b/src/ts/src/models/AZUREBLOBConfig.ts index bf70189..c88f4d5 100644 --- a/src/ts/src/models/AZUREBLOBConfig.ts +++ b/src/ts/src/models/AZUREBLOBConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/AddUserFromSourceConnectorResponse.ts b/src/ts/src/models/AddUserFromSourceConnectorResponse.ts index 65f8a88..8bf8777 100644 --- a/src/ts/src/models/AddUserFromSourceConnectorResponse.ts +++ b/src/ts/src/models/AddUserFromSourceConnectorResponse.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/AddUserToSourceConnectorRequest.ts b/src/ts/src/models/AddUserToSourceConnectorRequest.ts index 06d5c56..fd52a54 100644 --- a/src/ts/src/models/AddUserToSourceConnectorRequest.ts +++ b/src/ts/src/models/AddUserToSourceConnectorRequest.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/AddUserToSourceConnectorRequestSelectedFiles.ts b/src/ts/src/models/AddUserToSourceConnectorRequestSelectedFiles.ts index 2533f40..8a6990f 100644 --- a/src/ts/src/models/AddUserToSourceConnectorRequestSelectedFiles.ts +++ b/src/ts/src/models/AddUserToSourceConnectorRequestSelectedFiles.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/AddUserToSourceConnectorRequestSelectedFilesAnyOf.ts b/src/ts/src/models/AddUserToSourceConnectorRequestSelectedFilesAnyOf.ts index a6541f6..7271ee1 100644 --- a/src/ts/src/models/AddUserToSourceConnectorRequestSelectedFilesAnyOf.ts +++ b/src/ts/src/models/AddUserToSourceConnectorRequestSelectedFilesAnyOf.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/AddUserToSourceConnectorRequestSelectedFilesAnyOfValue.ts b/src/ts/src/models/AddUserToSourceConnectorRequestSelectedFilesAnyOfValue.ts index e8e633b..2c7bae9 100644 --- a/src/ts/src/models/AddUserToSourceConnectorRequestSelectedFilesAnyOfValue.ts +++ b/src/ts/src/models/AddUserToSourceConnectorRequestSelectedFilesAnyOfValue.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/AdvancedQuery.ts b/src/ts/src/models/AdvancedQuery.ts index 4a1372c..8a3641b 100644 --- a/src/ts/src/models/AdvancedQuery.ts +++ b/src/ts/src/models/AdvancedQuery.ts @@ -1,10 +1,10 @@ /* tslint:disable */ /* eslint-disable */ /** - * Vectorize API (Beta) - * API for Vectorize services + * Vectorize API + * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,6 +19,7 @@ import { mapValues } from '../runtime'; * @interface AdvancedQuery */ export interface AdvancedQuery { + [key: string]: any | any; /** * * @type {string} @@ -45,10 +46,10 @@ export interface AdvancedQuery { textBoost?: number; /** * - * @type {{ [key: string]: any; }} + * @type {{ [key: string]: any | null; }} * @memberof AdvancedQuery */ - filters?: { [key: string]: any; }; + filters?: { [key: string]: any | null; }; } @@ -90,6 +91,7 @@ export function AdvancedQueryFromJSONTyped(json: any, ignoreDiscriminator: boole } return { + ...json, 'mode': json['mode'] == null ? undefined : json['mode'], 'textFields': json['text-fields'] == null ? undefined : json['text-fields'], 'matchType': json['match-type'] == null ? undefined : json['match-type'], @@ -109,6 +111,7 @@ export function AdvancedQueryToJSONTyped(value?: AdvancedQuery | null, ignoreDis return { + ...value, 'mode': value['mode'], 'text-fields': value['textFields'], 'match-type': value['matchType'], diff --git a/src/ts/src/models/AwsS3.ts b/src/ts/src/models/AwsS3.ts index 7c15570..6143248 100644 --- a/src/ts/src/models/AwsS3.ts +++ b/src/ts/src/models/AwsS3.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/AwsS31.ts b/src/ts/src/models/AwsS31.ts index 16e44b0..bade104 100644 --- a/src/ts/src/models/AwsS31.ts +++ b/src/ts/src/models/AwsS31.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/AzureBlob.ts b/src/ts/src/models/AzureBlob.ts index 3379e02..0254336 100644 --- a/src/ts/src/models/AzureBlob.ts +++ b/src/ts/src/models/AzureBlob.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/AzureBlob1.ts b/src/ts/src/models/AzureBlob1.ts index 18867b0..50ce087 100644 --- a/src/ts/src/models/AzureBlob1.ts +++ b/src/ts/src/models/AzureBlob1.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/Azureaisearch.ts b/src/ts/src/models/Azureaisearch.ts index 4cef55d..c0d89cd 100644 --- a/src/ts/src/models/Azureaisearch.ts +++ b/src/ts/src/models/Azureaisearch.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/Azureaisearch1.ts b/src/ts/src/models/Azureaisearch1.ts index 8e6b4ef..a541451 100644 --- a/src/ts/src/models/Azureaisearch1.ts +++ b/src/ts/src/models/Azureaisearch1.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/BEDROCKAuthConfig.ts b/src/ts/src/models/BEDROCKAuthConfig.ts index 013bd26..9143988 100644 --- a/src/ts/src/models/BEDROCKAuthConfig.ts +++ b/src/ts/src/models/BEDROCKAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/Bedrock.ts b/src/ts/src/models/Bedrock.ts index 801dacd..35f1651 100644 --- a/src/ts/src/models/Bedrock.ts +++ b/src/ts/src/models/Bedrock.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/Bedrock1.ts b/src/ts/src/models/Bedrock1.ts index 1736bcf..cb2d132 100644 --- a/src/ts/src/models/Bedrock1.ts +++ b/src/ts/src/models/Bedrock1.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/CAPELLAAuthConfig.ts b/src/ts/src/models/CAPELLAAuthConfig.ts index ef1a7ed..90d8f83 100644 --- a/src/ts/src/models/CAPELLAAuthConfig.ts +++ b/src/ts/src/models/CAPELLAAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/CAPELLAConfig.ts b/src/ts/src/models/CAPELLAConfig.ts index acb7e27..d61c66b 100644 --- a/src/ts/src/models/CAPELLAConfig.ts +++ b/src/ts/src/models/CAPELLAConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/CONFLUENCEAuthConfig.ts b/src/ts/src/models/CONFLUENCEAuthConfig.ts index fbc438c..90a13ac 100644 --- a/src/ts/src/models/CONFLUENCEAuthConfig.ts +++ b/src/ts/src/models/CONFLUENCEAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/CONFLUENCEConfig.ts b/src/ts/src/models/CONFLUENCEConfig.ts index dd8e75a..31d8e94 100644 --- a/src/ts/src/models/CONFLUENCEConfig.ts +++ b/src/ts/src/models/CONFLUENCEConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/Capella.ts b/src/ts/src/models/Capella.ts index ff94a21..75e589c 100644 --- a/src/ts/src/models/Capella.ts +++ b/src/ts/src/models/Capella.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/Capella1.ts b/src/ts/src/models/Capella1.ts index 79b3f73..aefde66 100644 --- a/src/ts/src/models/Capella1.ts +++ b/src/ts/src/models/Capella1.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/Confluence.ts b/src/ts/src/models/Confluence.ts index 899f6da..7858d1c 100644 --- a/src/ts/src/models/Confluence.ts +++ b/src/ts/src/models/Confluence.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/Confluence1.ts b/src/ts/src/models/Confluence1.ts index cae4e26..3ad6d60 100644 --- a/src/ts/src/models/Confluence1.ts +++ b/src/ts/src/models/Confluence1.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/CreateAIPlatformConnectorRequest.ts b/src/ts/src/models/CreateAIPlatformConnectorRequest.ts index 7318605..764f9bd 100644 --- a/src/ts/src/models/CreateAIPlatformConnectorRequest.ts +++ b/src/ts/src/models/CreateAIPlatformConnectorRequest.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/CreateAIPlatformConnectorResponse.ts b/src/ts/src/models/CreateAIPlatformConnectorResponse.ts index a3d638b..2dcff0b 100644 --- a/src/ts/src/models/CreateAIPlatformConnectorResponse.ts +++ b/src/ts/src/models/CreateAIPlatformConnectorResponse.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/CreateDestinationConnectorRequest.ts b/src/ts/src/models/CreateDestinationConnectorRequest.ts index 7b4ad6c..aad865d 100644 --- a/src/ts/src/models/CreateDestinationConnectorRequest.ts +++ b/src/ts/src/models/CreateDestinationConnectorRequest.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/CreateDestinationConnectorResponse.ts b/src/ts/src/models/CreateDestinationConnectorResponse.ts index 7cb9026..eb21dfe 100644 --- a/src/ts/src/models/CreateDestinationConnectorResponse.ts +++ b/src/ts/src/models/CreateDestinationConnectorResponse.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/CreatePipelineResponse.ts b/src/ts/src/models/CreatePipelineResponse.ts index 03ac558..227ab73 100644 --- a/src/ts/src/models/CreatePipelineResponse.ts +++ b/src/ts/src/models/CreatePipelineResponse.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/CreatePipelineResponseData.ts b/src/ts/src/models/CreatePipelineResponseData.ts index 872b1eb..dcca309 100644 --- a/src/ts/src/models/CreatePipelineResponseData.ts +++ b/src/ts/src/models/CreatePipelineResponseData.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/CreateSourceConnectorRequest.ts b/src/ts/src/models/CreateSourceConnectorRequest.ts index afa77f3..503d596 100644 --- a/src/ts/src/models/CreateSourceConnectorRequest.ts +++ b/src/ts/src/models/CreateSourceConnectorRequest.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/CreateSourceConnectorResponse.ts b/src/ts/src/models/CreateSourceConnectorResponse.ts index 56252ba..31fbe6d 100644 --- a/src/ts/src/models/CreateSourceConnectorResponse.ts +++ b/src/ts/src/models/CreateSourceConnectorResponse.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/CreatedAIPlatformConnector.ts b/src/ts/src/models/CreatedAIPlatformConnector.ts index 7e2e90c..33f25a8 100644 --- a/src/ts/src/models/CreatedAIPlatformConnector.ts +++ b/src/ts/src/models/CreatedAIPlatformConnector.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/CreatedDestinationConnector.ts b/src/ts/src/models/CreatedDestinationConnector.ts index 5fe8432..1e23edb 100644 --- a/src/ts/src/models/CreatedDestinationConnector.ts +++ b/src/ts/src/models/CreatedDestinationConnector.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/CreatedSourceConnector.ts b/src/ts/src/models/CreatedSourceConnector.ts index 4de981a..b1cc1f5 100644 --- a/src/ts/src/models/CreatedSourceConnector.ts +++ b/src/ts/src/models/CreatedSourceConnector.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/DATASTAXAuthConfig.ts b/src/ts/src/models/DATASTAXAuthConfig.ts index 396cb62..6dd2583 100644 --- a/src/ts/src/models/DATASTAXAuthConfig.ts +++ b/src/ts/src/models/DATASTAXAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/DATASTAXConfig.ts b/src/ts/src/models/DATASTAXConfig.ts index 81d1e9e..6e1ed8e 100644 --- a/src/ts/src/models/DATASTAXConfig.ts +++ b/src/ts/src/models/DATASTAXConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/DISCORDAuthConfig.ts b/src/ts/src/models/DISCORDAuthConfig.ts index fe4939e..db6b6f5 100644 --- a/src/ts/src/models/DISCORDAuthConfig.ts +++ b/src/ts/src/models/DISCORDAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/DISCORDConfig.ts b/src/ts/src/models/DISCORDConfig.ts index 7057b41..9cce84f 100644 --- a/src/ts/src/models/DISCORDConfig.ts +++ b/src/ts/src/models/DISCORDConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/DROPBOXAuthConfig.ts b/src/ts/src/models/DROPBOXAuthConfig.ts index 7bd7a58..a4b5c4d 100644 --- a/src/ts/src/models/DROPBOXAuthConfig.ts +++ b/src/ts/src/models/DROPBOXAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/DROPBOXConfig.ts b/src/ts/src/models/DROPBOXConfig.ts index d4e7c20..65b6b04 100644 --- a/src/ts/src/models/DROPBOXConfig.ts +++ b/src/ts/src/models/DROPBOXConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/DROPBOXOAUTHAuthConfig.ts b/src/ts/src/models/DROPBOXOAUTHAuthConfig.ts index 85605d2..7cd7328 100644 --- a/src/ts/src/models/DROPBOXOAUTHAuthConfig.ts +++ b/src/ts/src/models/DROPBOXOAUTHAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/DROPBOXOAUTHMULTIAuthConfig.ts b/src/ts/src/models/DROPBOXOAUTHMULTIAuthConfig.ts index 94407fe..1dbd70e 100644 --- a/src/ts/src/models/DROPBOXOAUTHMULTIAuthConfig.ts +++ b/src/ts/src/models/DROPBOXOAUTHMULTIAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/DROPBOXOAUTHMULTICUSTOMAuthConfig.ts b/src/ts/src/models/DROPBOXOAUTHMULTICUSTOMAuthConfig.ts index e3b0940..342b1a8 100644 --- a/src/ts/src/models/DROPBOXOAUTHMULTICUSTOMAuthConfig.ts +++ b/src/ts/src/models/DROPBOXOAUTHMULTICUSTOMAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/Datastax.ts b/src/ts/src/models/Datastax.ts index a49b9f5..6df9d15 100644 --- a/src/ts/src/models/Datastax.ts +++ b/src/ts/src/models/Datastax.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/Datastax1.ts b/src/ts/src/models/Datastax1.ts index 72ea71c..8158560 100644 --- a/src/ts/src/models/Datastax1.ts +++ b/src/ts/src/models/Datastax1.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/DeepResearchResult.ts b/src/ts/src/models/DeepResearchResult.ts index 2b9abe7..65bc4a6 100644 --- a/src/ts/src/models/DeepResearchResult.ts +++ b/src/ts/src/models/DeepResearchResult.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/DeleteAIPlatformConnectorResponse.ts b/src/ts/src/models/DeleteAIPlatformConnectorResponse.ts index 44f2481..71321ac 100644 --- a/src/ts/src/models/DeleteAIPlatformConnectorResponse.ts +++ b/src/ts/src/models/DeleteAIPlatformConnectorResponse.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/DeleteDestinationConnectorResponse.ts b/src/ts/src/models/DeleteDestinationConnectorResponse.ts index a75ccfa..60e8c18 100644 --- a/src/ts/src/models/DeleteDestinationConnectorResponse.ts +++ b/src/ts/src/models/DeleteDestinationConnectorResponse.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/DeleteFileResponse.ts b/src/ts/src/models/DeleteFileResponse.ts index 68b1825..6c96f55 100644 --- a/src/ts/src/models/DeleteFileResponse.ts +++ b/src/ts/src/models/DeleteFileResponse.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/DeletePipelineResponse.ts b/src/ts/src/models/DeletePipelineResponse.ts index ca35500..34b5f63 100644 --- a/src/ts/src/models/DeletePipelineResponse.ts +++ b/src/ts/src/models/DeletePipelineResponse.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/DeleteSourceConnectorResponse.ts b/src/ts/src/models/DeleteSourceConnectorResponse.ts index 0220e8b..7cb95ae 100644 --- a/src/ts/src/models/DeleteSourceConnectorResponse.ts +++ b/src/ts/src/models/DeleteSourceConnectorResponse.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/DestinationConnector.ts b/src/ts/src/models/DestinationConnector.ts index 1131d08..56b6a5d 100644 --- a/src/ts/src/models/DestinationConnector.ts +++ b/src/ts/src/models/DestinationConnector.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/DestinationConnectorInput.ts b/src/ts/src/models/DestinationConnectorInput.ts index 7f4da8b..b98801b 100644 --- a/src/ts/src/models/DestinationConnectorInput.ts +++ b/src/ts/src/models/DestinationConnectorInput.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/DestinationConnectorInputConfig.ts b/src/ts/src/models/DestinationConnectorInputConfig.ts index 5b7b37e..be3a11a 100644 --- a/src/ts/src/models/DestinationConnectorInputConfig.ts +++ b/src/ts/src/models/DestinationConnectorInputConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/DestinationConnectorSchema.ts b/src/ts/src/models/DestinationConnectorSchema.ts index 35e1ba9..a5fd271 100644 --- a/src/ts/src/models/DestinationConnectorSchema.ts +++ b/src/ts/src/models/DestinationConnectorSchema.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/DestinationConnectorType.ts b/src/ts/src/models/DestinationConnectorType.ts index ab09c93..3b81f70 100644 --- a/src/ts/src/models/DestinationConnectorType.ts +++ b/src/ts/src/models/DestinationConnectorType.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/DestinationConnectorTypeForPipeline.ts b/src/ts/src/models/DestinationConnectorTypeForPipeline.ts index c9285db..2ab03b6 100644 --- a/src/ts/src/models/DestinationConnectorTypeForPipeline.ts +++ b/src/ts/src/models/DestinationConnectorTypeForPipeline.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/Discord.ts b/src/ts/src/models/Discord.ts index 857afea..01908c3 100644 --- a/src/ts/src/models/Discord.ts +++ b/src/ts/src/models/Discord.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/Discord1.ts b/src/ts/src/models/Discord1.ts index 8b8be38..098404f 100644 --- a/src/ts/src/models/Discord1.ts +++ b/src/ts/src/models/Discord1.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/Document.ts b/src/ts/src/models/Document.ts index 23f2f0a..88a3672 100644 --- a/src/ts/src/models/Document.ts +++ b/src/ts/src/models/Document.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/Dropbox.ts b/src/ts/src/models/Dropbox.ts index f23cdaf..3cf5ba3 100644 --- a/src/ts/src/models/Dropbox.ts +++ b/src/ts/src/models/Dropbox.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/DropboxOauth.ts b/src/ts/src/models/DropboxOauth.ts index 805d1b2..951fb75 100644 --- a/src/ts/src/models/DropboxOauth.ts +++ b/src/ts/src/models/DropboxOauth.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/DropboxOauthMulti.ts b/src/ts/src/models/DropboxOauthMulti.ts index 57c949d..87a4e9d 100644 --- a/src/ts/src/models/DropboxOauthMulti.ts +++ b/src/ts/src/models/DropboxOauthMulti.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/DropboxOauthMultiCustom.ts b/src/ts/src/models/DropboxOauthMultiCustom.ts index 4c2af1b..b3b98c5 100644 --- a/src/ts/src/models/DropboxOauthMultiCustom.ts +++ b/src/ts/src/models/DropboxOauthMultiCustom.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/ELASTICAuthConfig.ts b/src/ts/src/models/ELASTICAuthConfig.ts index a904a88..c6ef52e 100644 --- a/src/ts/src/models/ELASTICAuthConfig.ts +++ b/src/ts/src/models/ELASTICAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/ELASTICConfig.ts b/src/ts/src/models/ELASTICConfig.ts index 9dba6a5..302c9f4 100644 --- a/src/ts/src/models/ELASTICConfig.ts +++ b/src/ts/src/models/ELASTICConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/Elastic.ts b/src/ts/src/models/Elastic.ts index c3940f6..9d4c3e5 100644 --- a/src/ts/src/models/Elastic.ts +++ b/src/ts/src/models/Elastic.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/Elastic1.ts b/src/ts/src/models/Elastic1.ts index f002176..a6f092f 100644 --- a/src/ts/src/models/Elastic1.ts +++ b/src/ts/src/models/Elastic1.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/ExtractionChunkingStrategy.ts b/src/ts/src/models/ExtractionChunkingStrategy.ts index 7199ccb..1c876cf 100644 --- a/src/ts/src/models/ExtractionChunkingStrategy.ts +++ b/src/ts/src/models/ExtractionChunkingStrategy.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/ExtractionResult.ts b/src/ts/src/models/ExtractionResult.ts index ba58664..2c431eb 100644 --- a/src/ts/src/models/ExtractionResult.ts +++ b/src/ts/src/models/ExtractionResult.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/ExtractionResultResponse.ts b/src/ts/src/models/ExtractionResultResponse.ts index 6e05508..c8d0712 100644 --- a/src/ts/src/models/ExtractionResultResponse.ts +++ b/src/ts/src/models/ExtractionResultResponse.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/ExtractionType.ts b/src/ts/src/models/ExtractionType.ts index 2568702..8798413 100644 --- a/src/ts/src/models/ExtractionType.ts +++ b/src/ts/src/models/ExtractionType.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/FILEUPLOADAuthConfig.ts b/src/ts/src/models/FILEUPLOADAuthConfig.ts index ddf9a9a..2693743 100644 --- a/src/ts/src/models/FILEUPLOADAuthConfig.ts +++ b/src/ts/src/models/FILEUPLOADAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/FIRECRAWLAuthConfig.ts b/src/ts/src/models/FIRECRAWLAuthConfig.ts index bc8a009..24e1234 100644 --- a/src/ts/src/models/FIRECRAWLAuthConfig.ts +++ b/src/ts/src/models/FIRECRAWLAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/FIRECRAWLConfig.ts b/src/ts/src/models/FIRECRAWLConfig.ts index bdfee91..d456927 100644 --- a/src/ts/src/models/FIRECRAWLConfig.ts +++ b/src/ts/src/models/FIRECRAWLConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/FIREFLIESAuthConfig.ts b/src/ts/src/models/FIREFLIESAuthConfig.ts index fa3341b..b971f35 100644 --- a/src/ts/src/models/FIREFLIESAuthConfig.ts +++ b/src/ts/src/models/FIREFLIESAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/FIREFLIESConfig.ts b/src/ts/src/models/FIREFLIESConfig.ts index d1e9011..27d3f8e 100644 --- a/src/ts/src/models/FIREFLIESConfig.ts +++ b/src/ts/src/models/FIREFLIESConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/FileUpload.ts b/src/ts/src/models/FileUpload.ts index 29693e3..9e2a352 100644 --- a/src/ts/src/models/FileUpload.ts +++ b/src/ts/src/models/FileUpload.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/FileUpload1.ts b/src/ts/src/models/FileUpload1.ts index b5f67c9..2cd88d8 100644 --- a/src/ts/src/models/FileUpload1.ts +++ b/src/ts/src/models/FileUpload1.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/Firecrawl.ts b/src/ts/src/models/Firecrawl.ts index fe3ffd8..ef3c860 100644 --- a/src/ts/src/models/Firecrawl.ts +++ b/src/ts/src/models/Firecrawl.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/Firecrawl1.ts b/src/ts/src/models/Firecrawl1.ts index 23b9c35..0efed49 100644 --- a/src/ts/src/models/Firecrawl1.ts +++ b/src/ts/src/models/Firecrawl1.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/Fireflies.ts b/src/ts/src/models/Fireflies.ts index a7886d2..375b104 100644 --- a/src/ts/src/models/Fireflies.ts +++ b/src/ts/src/models/Fireflies.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/Fireflies1.ts b/src/ts/src/models/Fireflies1.ts index 04a363a..9af8afc 100644 --- a/src/ts/src/models/Fireflies1.ts +++ b/src/ts/src/models/Fireflies1.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/GCSAuthConfig.ts b/src/ts/src/models/GCSAuthConfig.ts index a305bb6..62a4a47 100644 --- a/src/ts/src/models/GCSAuthConfig.ts +++ b/src/ts/src/models/GCSAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/GCSConfig.ts b/src/ts/src/models/GCSConfig.ts index a7ebfdf..1a10d32 100644 --- a/src/ts/src/models/GCSConfig.ts +++ b/src/ts/src/models/GCSConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/GITHUBAuthConfig.ts b/src/ts/src/models/GITHUBAuthConfig.ts index 1e834b3..075981e 100644 --- a/src/ts/src/models/GITHUBAuthConfig.ts +++ b/src/ts/src/models/GITHUBAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/GITHUBConfig.ts b/src/ts/src/models/GITHUBConfig.ts index e35b316..53c3b66 100644 --- a/src/ts/src/models/GITHUBConfig.ts +++ b/src/ts/src/models/GITHUBConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/GMAILAuthConfig.ts b/src/ts/src/models/GMAILAuthConfig.ts index 5aa9a50..6b32275 100644 --- a/src/ts/src/models/GMAILAuthConfig.ts +++ b/src/ts/src/models/GMAILAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/GMAILConfig.ts b/src/ts/src/models/GMAILConfig.ts index 5d776de..2f9f94a 100644 --- a/src/ts/src/models/GMAILConfig.ts +++ b/src/ts/src/models/GMAILConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -31,6 +31,12 @@ export interface GMAILConfig { * @memberof GMAILConfig */ toFilterType: string; + /** + * + * @type {string} + * @memberof GMAILConfig + */ + ccFilterType: string; /** * * @type {string} @@ -55,6 +61,18 @@ export interface GMAILConfig { * @memberof GMAILConfig */ to?: string; + /** + * CC Address Filter. Only include emails with these addresses in CC field. Example: Add CC email(s) + * @type {string} + * @memberof GMAILConfig + */ + cc?: string; + /** + * Include Attachments. Include email attachments in the processed content + * @type {boolean} + * @memberof GMAILConfig + */ + includeAttachments?: boolean; /** * Subject Filter. Include emails with these keywords in the subject line. Example: Add subject keywords * @type {string} @@ -116,6 +134,7 @@ export type GMAILConfigMessagesToFetchEnum = typeof GMAILConfigMessagesToFetchEn export function instanceOfGMAILConfig(value: object): value is GMAILConfig { if (!('fromFilterType' in value) || value['fromFilterType'] === undefined) return false; if (!('toFilterType' in value) || value['toFilterType'] === undefined) return false; + if (!('ccFilterType' in value) || value['ccFilterType'] === undefined) return false; if (!('subjectFilterType' in value) || value['subjectFilterType'] === undefined) return false; if (!('labelFilterType' in value) || value['labelFilterType'] === undefined) return false; return true; @@ -133,10 +152,13 @@ export function GMAILConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean 'fromFilterType': json['from-filter-type'], 'toFilterType': json['to-filter-type'], + 'ccFilterType': json['cc-filter-type'], 'subjectFilterType': json['subject-filter-type'], 'labelFilterType': json['label-filter-type'], 'from': json['from'] == null ? undefined : json['from'], 'to': json['to'] == null ? undefined : json['to'], + 'cc': json['cc'] == null ? undefined : json['cc'], + 'includeAttachments': json['include-attachments'] == null ? undefined : json['include-attachments'], 'subject': json['subject'] == null ? undefined : json['subject'], 'startDate': json['start-date'] == null ? undefined : (new Date(json['start-date'])), 'endDate': json['end-date'] == null ? undefined : (new Date(json['end-date'])), @@ -159,10 +181,13 @@ export function GMAILConfigToJSONTyped(value?: GMAILConfig | null, ignoreDiscrim 'from-filter-type': value['fromFilterType'], 'to-filter-type': value['toFilterType'], + 'cc-filter-type': value['ccFilterType'], 'subject-filter-type': value['subjectFilterType'], 'label-filter-type': value['labelFilterType'], 'from': value['from'], 'to': value['to'], + 'cc': value['cc'], + 'include-attachments': value['includeAttachments'], 'subject': value['subject'], 'start-date': value['startDate'] == null ? undefined : ((value['startDate']).toISOString().substring(0,10)), 'end-date': value['endDate'] == null ? undefined : ((value['endDate']).toISOString().substring(0,10)), diff --git a/src/ts/src/models/GOOGLEDRIVEAuthConfig.ts b/src/ts/src/models/GOOGLEDRIVEAuthConfig.ts index f9c7cc7..be35758 100644 --- a/src/ts/src/models/GOOGLEDRIVEAuthConfig.ts +++ b/src/ts/src/models/GOOGLEDRIVEAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/GOOGLEDRIVEConfig.ts b/src/ts/src/models/GOOGLEDRIVEConfig.ts index 8a1d280..28a8c5b 100644 --- a/src/ts/src/models/GOOGLEDRIVEConfig.ts +++ b/src/ts/src/models/GOOGLEDRIVEConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/GOOGLEDRIVEOAUTHAuthConfig.ts b/src/ts/src/models/GOOGLEDRIVEOAUTHAuthConfig.ts index 063ec7d..64bae74 100644 --- a/src/ts/src/models/GOOGLEDRIVEOAUTHAuthConfig.ts +++ b/src/ts/src/models/GOOGLEDRIVEOAUTHAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/GOOGLEDRIVEOAUTHConfig.ts b/src/ts/src/models/GOOGLEDRIVEOAUTHConfig.ts index bcdaed6..86fbcdc 100644 --- a/src/ts/src/models/GOOGLEDRIVEOAUTHConfig.ts +++ b/src/ts/src/models/GOOGLEDRIVEOAUTHConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/GOOGLEDRIVEOAUTHMULTIAuthConfig.ts b/src/ts/src/models/GOOGLEDRIVEOAUTHMULTIAuthConfig.ts index d24b144..0474058 100644 --- a/src/ts/src/models/GOOGLEDRIVEOAUTHMULTIAuthConfig.ts +++ b/src/ts/src/models/GOOGLEDRIVEOAUTHMULTIAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig.ts b/src/ts/src/models/GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig.ts index 1498ce6..26e4bbf 100644 --- a/src/ts/src/models/GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig.ts +++ b/src/ts/src/models/GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/GOOGLEDRIVEOAUTHMULTICUSTOMConfig.ts b/src/ts/src/models/GOOGLEDRIVEOAUTHMULTICUSTOMConfig.ts index 52c5c09..13c790b 100644 --- a/src/ts/src/models/GOOGLEDRIVEOAUTHMULTICUSTOMConfig.ts +++ b/src/ts/src/models/GOOGLEDRIVEOAUTHMULTICUSTOMConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/GOOGLEDRIVEOAUTHMULTIConfig.ts b/src/ts/src/models/GOOGLEDRIVEOAUTHMULTIConfig.ts index 84221b8..1774c75 100644 --- a/src/ts/src/models/GOOGLEDRIVEOAUTHMULTIConfig.ts +++ b/src/ts/src/models/GOOGLEDRIVEOAUTHMULTIConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/Gcs.ts b/src/ts/src/models/Gcs.ts index 920d97d..9fc5551 100644 --- a/src/ts/src/models/Gcs.ts +++ b/src/ts/src/models/Gcs.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/Gcs1.ts b/src/ts/src/models/Gcs1.ts index c9fe626..455bf3b 100644 --- a/src/ts/src/models/Gcs1.ts +++ b/src/ts/src/models/Gcs1.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/GetAIPlatformConnectors200Response.ts b/src/ts/src/models/GetAIPlatformConnectors200Response.ts index 1a7092e..aa0468b 100644 --- a/src/ts/src/models/GetAIPlatformConnectors200Response.ts +++ b/src/ts/src/models/GetAIPlatformConnectors200Response.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/GetDeepResearchResponse.ts b/src/ts/src/models/GetDeepResearchResponse.ts index 27281da..322f2e0 100644 --- a/src/ts/src/models/GetDeepResearchResponse.ts +++ b/src/ts/src/models/GetDeepResearchResponse.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/GetDestinationConnectors200Response.ts b/src/ts/src/models/GetDestinationConnectors200Response.ts index f4f0922..a770841 100644 --- a/src/ts/src/models/GetDestinationConnectors200Response.ts +++ b/src/ts/src/models/GetDestinationConnectors200Response.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/GetPipelineEventsResponse.ts b/src/ts/src/models/GetPipelineEventsResponse.ts index 4cef85e..54afaca 100644 --- a/src/ts/src/models/GetPipelineEventsResponse.ts +++ b/src/ts/src/models/GetPipelineEventsResponse.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/GetPipelineMetricsResponse.ts b/src/ts/src/models/GetPipelineMetricsResponse.ts index 7eae6da..802df8e 100644 --- a/src/ts/src/models/GetPipelineMetricsResponse.ts +++ b/src/ts/src/models/GetPipelineMetricsResponse.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/GetPipelineResponse.ts b/src/ts/src/models/GetPipelineResponse.ts index 2ed7b4e..85b952a 100644 --- a/src/ts/src/models/GetPipelineResponse.ts +++ b/src/ts/src/models/GetPipelineResponse.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/GetPipelines400Response.ts b/src/ts/src/models/GetPipelines400Response.ts index 5d0cd6a..082b236 100644 --- a/src/ts/src/models/GetPipelines400Response.ts +++ b/src/ts/src/models/GetPipelines400Response.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/GetPipelinesResponse.ts b/src/ts/src/models/GetPipelinesResponse.ts index f5a768c..5931659 100644 --- a/src/ts/src/models/GetPipelinesResponse.ts +++ b/src/ts/src/models/GetPipelinesResponse.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/GetSourceConnectors200Response.ts b/src/ts/src/models/GetSourceConnectors200Response.ts index 3469b8f..d51e815 100644 --- a/src/ts/src/models/GetSourceConnectors200Response.ts +++ b/src/ts/src/models/GetSourceConnectors200Response.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/GetUploadFilesResponse.ts b/src/ts/src/models/GetUploadFilesResponse.ts index 9be4981..374dc57 100644 --- a/src/ts/src/models/GetUploadFilesResponse.ts +++ b/src/ts/src/models/GetUploadFilesResponse.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/Github.ts b/src/ts/src/models/Github.ts index 8ae7b12..87c9ef7 100644 --- a/src/ts/src/models/Github.ts +++ b/src/ts/src/models/Github.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/Github1.ts b/src/ts/src/models/Github1.ts index 430d5e4..ab52826 100644 --- a/src/ts/src/models/Github1.ts +++ b/src/ts/src/models/Github1.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/GoogleDrive.ts b/src/ts/src/models/GoogleDrive.ts index fd0b4dc..7f77e8d 100644 --- a/src/ts/src/models/GoogleDrive.ts +++ b/src/ts/src/models/GoogleDrive.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/GoogleDrive1.ts b/src/ts/src/models/GoogleDrive1.ts index 12dc954..8fb8a91 100644 --- a/src/ts/src/models/GoogleDrive1.ts +++ b/src/ts/src/models/GoogleDrive1.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/GoogleDriveOauth.ts b/src/ts/src/models/GoogleDriveOauth.ts index 1e72a23..3b39744 100644 --- a/src/ts/src/models/GoogleDriveOauth.ts +++ b/src/ts/src/models/GoogleDriveOauth.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/GoogleDriveOauthMulti.ts b/src/ts/src/models/GoogleDriveOauthMulti.ts index 237b692..997cce5 100644 --- a/src/ts/src/models/GoogleDriveOauthMulti.ts +++ b/src/ts/src/models/GoogleDriveOauthMulti.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/GoogleDriveOauthMultiCustom.ts b/src/ts/src/models/GoogleDriveOauthMultiCustom.ts index daddf70..42eaa92 100644 --- a/src/ts/src/models/GoogleDriveOauthMultiCustom.ts +++ b/src/ts/src/models/GoogleDriveOauthMultiCustom.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/INTERCOMAuthConfig.ts b/src/ts/src/models/INTERCOMAuthConfig.ts index ef11a4c..2093c57 100644 --- a/src/ts/src/models/INTERCOMAuthConfig.ts +++ b/src/ts/src/models/INTERCOMAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/INTERCOMConfig.ts b/src/ts/src/models/INTERCOMConfig.ts index 8249d85..f500745 100644 --- a/src/ts/src/models/INTERCOMConfig.ts +++ b/src/ts/src/models/INTERCOMConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/Intercom.ts b/src/ts/src/models/Intercom.ts index 4966159..5f654c6 100644 --- a/src/ts/src/models/Intercom.ts +++ b/src/ts/src/models/Intercom.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/MILVUSAuthConfig.ts b/src/ts/src/models/MILVUSAuthConfig.ts index c803b2f..b385917 100644 --- a/src/ts/src/models/MILVUSAuthConfig.ts +++ b/src/ts/src/models/MILVUSAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/MILVUSConfig.ts b/src/ts/src/models/MILVUSConfig.ts index cbca617..c801fa6 100644 --- a/src/ts/src/models/MILVUSConfig.ts +++ b/src/ts/src/models/MILVUSConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/MetadataExtractionStrategy.ts b/src/ts/src/models/MetadataExtractionStrategy.ts index f214d6e..776994b 100644 --- a/src/ts/src/models/MetadataExtractionStrategy.ts +++ b/src/ts/src/models/MetadataExtractionStrategy.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/MetadataExtractionStrategySchema.ts b/src/ts/src/models/MetadataExtractionStrategySchema.ts index eba2b54..4ca3b26 100644 --- a/src/ts/src/models/MetadataExtractionStrategySchema.ts +++ b/src/ts/src/models/MetadataExtractionStrategySchema.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/Milvus.ts b/src/ts/src/models/Milvus.ts index aa52541..d52bf5d 100644 --- a/src/ts/src/models/Milvus.ts +++ b/src/ts/src/models/Milvus.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/Milvus1.ts b/src/ts/src/models/Milvus1.ts index 85c9764..b5d87b2 100644 --- a/src/ts/src/models/Milvus1.ts +++ b/src/ts/src/models/Milvus1.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/N8NConfig.ts b/src/ts/src/models/N8NConfig.ts index bb85311..e2c6668 100644 --- a/src/ts/src/models/N8NConfig.ts +++ b/src/ts/src/models/N8NConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/NOTIONAuthConfig.ts b/src/ts/src/models/NOTIONAuthConfig.ts index b459af4..07ab942 100644 --- a/src/ts/src/models/NOTIONAuthConfig.ts +++ b/src/ts/src/models/NOTIONAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/NOTIONConfig.ts b/src/ts/src/models/NOTIONConfig.ts index 913514b..7b9cfc9 100644 --- a/src/ts/src/models/NOTIONConfig.ts +++ b/src/ts/src/models/NOTIONConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/NOTIONOAUTHMULTIAuthConfig.ts b/src/ts/src/models/NOTIONOAUTHMULTIAuthConfig.ts index de9c14e..f956276 100644 --- a/src/ts/src/models/NOTIONOAUTHMULTIAuthConfig.ts +++ b/src/ts/src/models/NOTIONOAUTHMULTIAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/NOTIONOAUTHMULTICUSTOMAuthConfig.ts b/src/ts/src/models/NOTIONOAUTHMULTICUSTOMAuthConfig.ts index 574785a..da365a3 100644 --- a/src/ts/src/models/NOTIONOAUTHMULTICUSTOMAuthConfig.ts +++ b/src/ts/src/models/NOTIONOAUTHMULTICUSTOMAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/Notion.ts b/src/ts/src/models/Notion.ts index 2bd735f..02441a2 100644 --- a/src/ts/src/models/Notion.ts +++ b/src/ts/src/models/Notion.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/NotionOauthMulti.ts b/src/ts/src/models/NotionOauthMulti.ts index 77358cd..42ca7ca 100644 --- a/src/ts/src/models/NotionOauthMulti.ts +++ b/src/ts/src/models/NotionOauthMulti.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/NotionOauthMultiCustom.ts b/src/ts/src/models/NotionOauthMultiCustom.ts index e9e156e..0ae3771 100644 --- a/src/ts/src/models/NotionOauthMultiCustom.ts +++ b/src/ts/src/models/NotionOauthMultiCustom.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/ONEDRIVEAuthConfig.ts b/src/ts/src/models/ONEDRIVEAuthConfig.ts index 769b9db..cee3fbf 100644 --- a/src/ts/src/models/ONEDRIVEAuthConfig.ts +++ b/src/ts/src/models/ONEDRIVEAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/ONEDRIVEConfig.ts b/src/ts/src/models/ONEDRIVEConfig.ts index 0a0c5b3..81ed7a5 100644 --- a/src/ts/src/models/ONEDRIVEConfig.ts +++ b/src/ts/src/models/ONEDRIVEConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/OPENAIAuthConfig.ts b/src/ts/src/models/OPENAIAuthConfig.ts index 5e894d1..1e59eb1 100644 --- a/src/ts/src/models/OPENAIAuthConfig.ts +++ b/src/ts/src/models/OPENAIAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/OneDrive.ts b/src/ts/src/models/OneDrive.ts index 1a2e722..3c296d1 100644 --- a/src/ts/src/models/OneDrive.ts +++ b/src/ts/src/models/OneDrive.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/OneDrive1.ts b/src/ts/src/models/OneDrive1.ts index 53f1f12..0e918e3 100644 --- a/src/ts/src/models/OneDrive1.ts +++ b/src/ts/src/models/OneDrive1.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/Openai.ts b/src/ts/src/models/Openai.ts index b4bc814..a861527 100644 --- a/src/ts/src/models/Openai.ts +++ b/src/ts/src/models/Openai.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/Openai1.ts b/src/ts/src/models/Openai1.ts index c07fdc8..9de78bd 100644 --- a/src/ts/src/models/Openai1.ts +++ b/src/ts/src/models/Openai1.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/PINECONEAuthConfig.ts b/src/ts/src/models/PINECONEAuthConfig.ts index 77e2046..28dbb16 100644 --- a/src/ts/src/models/PINECONEAuthConfig.ts +++ b/src/ts/src/models/PINECONEAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/PINECONEConfig.ts b/src/ts/src/models/PINECONEConfig.ts index 5987be5..4b4089d 100644 --- a/src/ts/src/models/PINECONEConfig.ts +++ b/src/ts/src/models/PINECONEConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/POSTGRESQLAuthConfig.ts b/src/ts/src/models/POSTGRESQLAuthConfig.ts index 83ba67c..cb9ebcf 100644 --- a/src/ts/src/models/POSTGRESQLAuthConfig.ts +++ b/src/ts/src/models/POSTGRESQLAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/POSTGRESQLConfig.ts b/src/ts/src/models/POSTGRESQLConfig.ts index 47a43d7..79d2365 100644 --- a/src/ts/src/models/POSTGRESQLConfig.ts +++ b/src/ts/src/models/POSTGRESQLConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/Pinecone.ts b/src/ts/src/models/Pinecone.ts index 80510eb..636b3ae 100644 --- a/src/ts/src/models/Pinecone.ts +++ b/src/ts/src/models/Pinecone.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/Pinecone1.ts b/src/ts/src/models/Pinecone1.ts index 64d6383..9711f44 100644 --- a/src/ts/src/models/Pinecone1.ts +++ b/src/ts/src/models/Pinecone1.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/PipelineConfigurationSchema.ts b/src/ts/src/models/PipelineConfigurationSchema.ts index 0cef107..1ff2c37 100644 --- a/src/ts/src/models/PipelineConfigurationSchema.ts +++ b/src/ts/src/models/PipelineConfigurationSchema.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/PipelineEvents.ts b/src/ts/src/models/PipelineEvents.ts index 67a3768..bd0e3db 100644 --- a/src/ts/src/models/PipelineEvents.ts +++ b/src/ts/src/models/PipelineEvents.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/PipelineListSummary.ts b/src/ts/src/models/PipelineListSummary.ts index 4c4d947..a74fc48 100644 --- a/src/ts/src/models/PipelineListSummary.ts +++ b/src/ts/src/models/PipelineListSummary.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/PipelineMetrics.ts b/src/ts/src/models/PipelineMetrics.ts index 4d0e396..4a111ac 100644 --- a/src/ts/src/models/PipelineMetrics.ts +++ b/src/ts/src/models/PipelineMetrics.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/PipelineSummary.ts b/src/ts/src/models/PipelineSummary.ts index c45b412..dcc6697 100644 --- a/src/ts/src/models/PipelineSummary.ts +++ b/src/ts/src/models/PipelineSummary.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/Postgresql.ts b/src/ts/src/models/Postgresql.ts index 6f17078..4aa1138 100644 --- a/src/ts/src/models/Postgresql.ts +++ b/src/ts/src/models/Postgresql.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/Postgresql1.ts b/src/ts/src/models/Postgresql1.ts index 06e0484..633e099 100644 --- a/src/ts/src/models/Postgresql1.ts +++ b/src/ts/src/models/Postgresql1.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/QDRANTAuthConfig.ts b/src/ts/src/models/QDRANTAuthConfig.ts index 39ba53c..84f0373 100644 --- a/src/ts/src/models/QDRANTAuthConfig.ts +++ b/src/ts/src/models/QDRANTAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/QDRANTConfig.ts b/src/ts/src/models/QDRANTConfig.ts index db6c661..f6404d2 100644 --- a/src/ts/src/models/QDRANTConfig.ts +++ b/src/ts/src/models/QDRANTConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/Qdrant.ts b/src/ts/src/models/Qdrant.ts index 6725591..049a46b 100644 --- a/src/ts/src/models/Qdrant.ts +++ b/src/ts/src/models/Qdrant.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/Qdrant1.ts b/src/ts/src/models/Qdrant1.ts index f361e34..6b38c9f 100644 --- a/src/ts/src/models/Qdrant1.ts +++ b/src/ts/src/models/Qdrant1.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/RemoveUserFromSourceConnectorRequest.ts b/src/ts/src/models/RemoveUserFromSourceConnectorRequest.ts index bc48f46..46082a2 100644 --- a/src/ts/src/models/RemoveUserFromSourceConnectorRequest.ts +++ b/src/ts/src/models/RemoveUserFromSourceConnectorRequest.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/RemoveUserFromSourceConnectorResponse.ts b/src/ts/src/models/RemoveUserFromSourceConnectorResponse.ts index ab144d4..bacdbc1 100644 --- a/src/ts/src/models/RemoveUserFromSourceConnectorResponse.ts +++ b/src/ts/src/models/RemoveUserFromSourceConnectorResponse.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/RetrieveContext.ts b/src/ts/src/models/RetrieveContext.ts index cf22f64..6758a6f 100644 --- a/src/ts/src/models/RetrieveContext.ts +++ b/src/ts/src/models/RetrieveContext.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/RetrieveContextMessage.ts b/src/ts/src/models/RetrieveContextMessage.ts index 5fa577f..6a974e1 100644 --- a/src/ts/src/models/RetrieveContextMessage.ts +++ b/src/ts/src/models/RetrieveContextMessage.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/RetrieveDocumentsRequest.ts b/src/ts/src/models/RetrieveDocumentsRequest.ts index 190b29b..3d4fac9 100644 --- a/src/ts/src/models/RetrieveDocumentsRequest.ts +++ b/src/ts/src/models/RetrieveDocumentsRequest.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/RetrieveDocumentsResponse.ts b/src/ts/src/models/RetrieveDocumentsResponse.ts index 8bffb7e..082ebb5 100644 --- a/src/ts/src/models/RetrieveDocumentsResponse.ts +++ b/src/ts/src/models/RetrieveDocumentsResponse.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/SHAREPOINTAuthConfig.ts b/src/ts/src/models/SHAREPOINTAuthConfig.ts index aa6e2fd..654013e 100644 --- a/src/ts/src/models/SHAREPOINTAuthConfig.ts +++ b/src/ts/src/models/SHAREPOINTAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/SHAREPOINTConfig.ts b/src/ts/src/models/SHAREPOINTConfig.ts index 457c5ee..68a92fe 100644 --- a/src/ts/src/models/SHAREPOINTConfig.ts +++ b/src/ts/src/models/SHAREPOINTConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/SINGLESTOREAuthConfig.ts b/src/ts/src/models/SINGLESTOREAuthConfig.ts index 4df758c..23086bd 100644 --- a/src/ts/src/models/SINGLESTOREAuthConfig.ts +++ b/src/ts/src/models/SINGLESTOREAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/SINGLESTOREConfig.ts b/src/ts/src/models/SINGLESTOREConfig.ts index bbbbe39..12aa469 100644 --- a/src/ts/src/models/SINGLESTOREConfig.ts +++ b/src/ts/src/models/SINGLESTOREConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/SUPABASEAuthConfig.ts b/src/ts/src/models/SUPABASEAuthConfig.ts index 89f1eaa..1b4a017 100644 --- a/src/ts/src/models/SUPABASEAuthConfig.ts +++ b/src/ts/src/models/SUPABASEAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/SUPABASEConfig.ts b/src/ts/src/models/SUPABASEConfig.ts index 11035ca..e484dcf 100644 --- a/src/ts/src/models/SUPABASEConfig.ts +++ b/src/ts/src/models/SUPABASEConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/ScheduleSchema.ts b/src/ts/src/models/ScheduleSchema.ts index 03a084c..b638f2c 100644 --- a/src/ts/src/models/ScheduleSchema.ts +++ b/src/ts/src/models/ScheduleSchema.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/ScheduleSchemaType.ts b/src/ts/src/models/ScheduleSchemaType.ts index ea083ea..cd0822e 100644 --- a/src/ts/src/models/ScheduleSchemaType.ts +++ b/src/ts/src/models/ScheduleSchemaType.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/Sharepoint.ts b/src/ts/src/models/Sharepoint.ts index 0f86f1f..6a2d661 100644 --- a/src/ts/src/models/Sharepoint.ts +++ b/src/ts/src/models/Sharepoint.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/Sharepoint1.ts b/src/ts/src/models/Sharepoint1.ts index 50a7bf1..f4a607d 100644 --- a/src/ts/src/models/Sharepoint1.ts +++ b/src/ts/src/models/Sharepoint1.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/Singlestore.ts b/src/ts/src/models/Singlestore.ts index 4428dd7..8f986b4 100644 --- a/src/ts/src/models/Singlestore.ts +++ b/src/ts/src/models/Singlestore.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/Singlestore1.ts b/src/ts/src/models/Singlestore1.ts index 037b0a9..1087f9c 100644 --- a/src/ts/src/models/Singlestore1.ts +++ b/src/ts/src/models/Singlestore1.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/SourceConnector.ts b/src/ts/src/models/SourceConnector.ts index f5996fd..8b954cf 100644 --- a/src/ts/src/models/SourceConnector.ts +++ b/src/ts/src/models/SourceConnector.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/SourceConnectorInput.ts b/src/ts/src/models/SourceConnectorInput.ts index 107d195..139f675 100644 --- a/src/ts/src/models/SourceConnectorInput.ts +++ b/src/ts/src/models/SourceConnectorInput.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/SourceConnectorInputConfig.ts b/src/ts/src/models/SourceConnectorInputConfig.ts index 54ecee9..1d655ef 100644 --- a/src/ts/src/models/SourceConnectorInputConfig.ts +++ b/src/ts/src/models/SourceConnectorInputConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/SourceConnectorSchema.ts b/src/ts/src/models/SourceConnectorSchema.ts index 15a7618..a22a42f 100644 --- a/src/ts/src/models/SourceConnectorSchema.ts +++ b/src/ts/src/models/SourceConnectorSchema.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/SourceConnectorType.ts b/src/ts/src/models/SourceConnectorType.ts index fb74408..cbf0ef1 100644 --- a/src/ts/src/models/SourceConnectorType.ts +++ b/src/ts/src/models/SourceConnectorType.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/StartDeepResearchRequest.ts b/src/ts/src/models/StartDeepResearchRequest.ts index d3dd9c8..54ed2ea 100644 --- a/src/ts/src/models/StartDeepResearchRequest.ts +++ b/src/ts/src/models/StartDeepResearchRequest.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/StartDeepResearchResponse.ts b/src/ts/src/models/StartDeepResearchResponse.ts index c261636..77e6a99 100644 --- a/src/ts/src/models/StartDeepResearchResponse.ts +++ b/src/ts/src/models/StartDeepResearchResponse.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/StartExtractionRequest.ts b/src/ts/src/models/StartExtractionRequest.ts index 2dd02f2..ca30f28 100644 --- a/src/ts/src/models/StartExtractionRequest.ts +++ b/src/ts/src/models/StartExtractionRequest.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/StartExtractionResponse.ts b/src/ts/src/models/StartExtractionResponse.ts index 653e28a..3e7a6b8 100644 --- a/src/ts/src/models/StartExtractionResponse.ts +++ b/src/ts/src/models/StartExtractionResponse.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/StartFileUploadRequest.ts b/src/ts/src/models/StartFileUploadRequest.ts index 8069b62..c2238da 100644 --- a/src/ts/src/models/StartFileUploadRequest.ts +++ b/src/ts/src/models/StartFileUploadRequest.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/StartFileUploadResponse.ts b/src/ts/src/models/StartFileUploadResponse.ts index 6f0351a..f4abdda 100644 --- a/src/ts/src/models/StartFileUploadResponse.ts +++ b/src/ts/src/models/StartFileUploadResponse.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/StartFileUploadToConnectorRequest.ts b/src/ts/src/models/StartFileUploadToConnectorRequest.ts index b9225b1..2a7d705 100644 --- a/src/ts/src/models/StartFileUploadToConnectorRequest.ts +++ b/src/ts/src/models/StartFileUploadToConnectorRequest.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/StartFileUploadToConnectorResponse.ts b/src/ts/src/models/StartFileUploadToConnectorResponse.ts index 3a95985..3cb455b 100644 --- a/src/ts/src/models/StartFileUploadToConnectorResponse.ts +++ b/src/ts/src/models/StartFileUploadToConnectorResponse.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/StartPipelineResponse.ts b/src/ts/src/models/StartPipelineResponse.ts index 6c7490e..9d83fc1 100644 --- a/src/ts/src/models/StartPipelineResponse.ts +++ b/src/ts/src/models/StartPipelineResponse.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/StopPipelineResponse.ts b/src/ts/src/models/StopPipelineResponse.ts index b2dea54..a913818 100644 --- a/src/ts/src/models/StopPipelineResponse.ts +++ b/src/ts/src/models/StopPipelineResponse.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/Supabase.ts b/src/ts/src/models/Supabase.ts index dc120cd..748c9a4 100644 --- a/src/ts/src/models/Supabase.ts +++ b/src/ts/src/models/Supabase.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/Supabase1.ts b/src/ts/src/models/Supabase1.ts index 4caf393..74f235b 100644 --- a/src/ts/src/models/Supabase1.ts +++ b/src/ts/src/models/Supabase1.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/TURBOPUFFERAuthConfig.ts b/src/ts/src/models/TURBOPUFFERAuthConfig.ts index 8244b5d..8344e8c 100644 --- a/src/ts/src/models/TURBOPUFFERAuthConfig.ts +++ b/src/ts/src/models/TURBOPUFFERAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/TURBOPUFFERConfig.ts b/src/ts/src/models/TURBOPUFFERConfig.ts index 5cfee75..5dbe48e 100644 --- a/src/ts/src/models/TURBOPUFFERConfig.ts +++ b/src/ts/src/models/TURBOPUFFERConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/Turbopuffer.ts b/src/ts/src/models/Turbopuffer.ts index 26fac44..6f4bda8 100644 --- a/src/ts/src/models/Turbopuffer.ts +++ b/src/ts/src/models/Turbopuffer.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/Turbopuffer1.ts b/src/ts/src/models/Turbopuffer1.ts index 3fc9d91..754ee3a 100644 --- a/src/ts/src/models/Turbopuffer1.ts +++ b/src/ts/src/models/Turbopuffer1.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/UpdateAIPlatformConnectorRequest.ts b/src/ts/src/models/UpdateAIPlatformConnectorRequest.ts index bc42f06..0c77fb8 100644 --- a/src/ts/src/models/UpdateAIPlatformConnectorRequest.ts +++ b/src/ts/src/models/UpdateAIPlatformConnectorRequest.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/UpdateAIPlatformConnectorResponse.ts b/src/ts/src/models/UpdateAIPlatformConnectorResponse.ts index d625907..f3440a8 100644 --- a/src/ts/src/models/UpdateAIPlatformConnectorResponse.ts +++ b/src/ts/src/models/UpdateAIPlatformConnectorResponse.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/UpdateDestinationConnectorRequest.ts b/src/ts/src/models/UpdateDestinationConnectorRequest.ts index 0d0ba62..4ffc63a 100644 --- a/src/ts/src/models/UpdateDestinationConnectorRequest.ts +++ b/src/ts/src/models/UpdateDestinationConnectorRequest.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/UpdateDestinationConnectorResponse.ts b/src/ts/src/models/UpdateDestinationConnectorResponse.ts index 5d1bd26..c912a24 100644 --- a/src/ts/src/models/UpdateDestinationConnectorResponse.ts +++ b/src/ts/src/models/UpdateDestinationConnectorResponse.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/UpdateSourceConnectorRequest.ts b/src/ts/src/models/UpdateSourceConnectorRequest.ts index 089e48c..dadfa1b 100644 --- a/src/ts/src/models/UpdateSourceConnectorRequest.ts +++ b/src/ts/src/models/UpdateSourceConnectorRequest.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/UpdateSourceConnectorResponse.ts b/src/ts/src/models/UpdateSourceConnectorResponse.ts index d325d62..86bbc41 100644 --- a/src/ts/src/models/UpdateSourceConnectorResponse.ts +++ b/src/ts/src/models/UpdateSourceConnectorResponse.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/UpdateSourceConnectorResponseData.ts b/src/ts/src/models/UpdateSourceConnectorResponseData.ts index 60c37ab..63f9048 100644 --- a/src/ts/src/models/UpdateSourceConnectorResponseData.ts +++ b/src/ts/src/models/UpdateSourceConnectorResponseData.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/UpdateUserInSourceConnectorRequest.ts b/src/ts/src/models/UpdateUserInSourceConnectorRequest.ts index fa21f47..151436e 100644 --- a/src/ts/src/models/UpdateUserInSourceConnectorRequest.ts +++ b/src/ts/src/models/UpdateUserInSourceConnectorRequest.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/UpdateUserInSourceConnectorResponse.ts b/src/ts/src/models/UpdateUserInSourceConnectorResponse.ts index 8ab4d8d..5ab0099 100644 --- a/src/ts/src/models/UpdateUserInSourceConnectorResponse.ts +++ b/src/ts/src/models/UpdateUserInSourceConnectorResponse.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/UpdatedAIPlatformConnectorData.ts b/src/ts/src/models/UpdatedAIPlatformConnectorData.ts index ca6919f..3b41e24 100644 --- a/src/ts/src/models/UpdatedAIPlatformConnectorData.ts +++ b/src/ts/src/models/UpdatedAIPlatformConnectorData.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/UpdatedDestinationConnectorData.ts b/src/ts/src/models/UpdatedDestinationConnectorData.ts index 780bf4d..5f8ceb8 100644 --- a/src/ts/src/models/UpdatedDestinationConnectorData.ts +++ b/src/ts/src/models/UpdatedDestinationConnectorData.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/UploadFile.ts b/src/ts/src/models/UploadFile.ts index 5590d42..68d7ccc 100644 --- a/src/ts/src/models/UploadFile.ts +++ b/src/ts/src/models/UploadFile.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/VERTEXAuthConfig.ts b/src/ts/src/models/VERTEXAuthConfig.ts index 9a0a46a..69512f3 100644 --- a/src/ts/src/models/VERTEXAuthConfig.ts +++ b/src/ts/src/models/VERTEXAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/VOYAGEAuthConfig.ts b/src/ts/src/models/VOYAGEAuthConfig.ts index c684a2d..78d42fe 100644 --- a/src/ts/src/models/VOYAGEAuthConfig.ts +++ b/src/ts/src/models/VOYAGEAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/Vertex.ts b/src/ts/src/models/Vertex.ts index 39103dd..40e15db 100644 --- a/src/ts/src/models/Vertex.ts +++ b/src/ts/src/models/Vertex.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/Vertex1.ts b/src/ts/src/models/Vertex1.ts index 8652b83..9fadceb 100644 --- a/src/ts/src/models/Vertex1.ts +++ b/src/ts/src/models/Vertex1.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/Voyage.ts b/src/ts/src/models/Voyage.ts index 08aa35a..e119210 100644 --- a/src/ts/src/models/Voyage.ts +++ b/src/ts/src/models/Voyage.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/Voyage1.ts b/src/ts/src/models/Voyage1.ts index 3077e45..8aa65ac 100644 --- a/src/ts/src/models/Voyage1.ts +++ b/src/ts/src/models/Voyage1.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/WEAVIATEAuthConfig.ts b/src/ts/src/models/WEAVIATEAuthConfig.ts index 8e7c497..0397d38 100644 --- a/src/ts/src/models/WEAVIATEAuthConfig.ts +++ b/src/ts/src/models/WEAVIATEAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/WEAVIATEConfig.ts b/src/ts/src/models/WEAVIATEConfig.ts index 70cc944..36c6157 100644 --- a/src/ts/src/models/WEAVIATEConfig.ts +++ b/src/ts/src/models/WEAVIATEConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/WEBCRAWLERAuthConfig.ts b/src/ts/src/models/WEBCRAWLERAuthConfig.ts index 061a754..da6bdf0 100644 --- a/src/ts/src/models/WEBCRAWLERAuthConfig.ts +++ b/src/ts/src/models/WEBCRAWLERAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/WEBCRAWLERConfig.ts b/src/ts/src/models/WEBCRAWLERConfig.ts index 3a17028..8b13153 100644 --- a/src/ts/src/models/WEBCRAWLERConfig.ts +++ b/src/ts/src/models/WEBCRAWLERConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/Weaviate.ts b/src/ts/src/models/Weaviate.ts index f4c03bd..000e4ff 100644 --- a/src/ts/src/models/Weaviate.ts +++ b/src/ts/src/models/Weaviate.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/Weaviate1.ts b/src/ts/src/models/Weaviate1.ts index c511b06..a3ec6a4 100644 --- a/src/ts/src/models/Weaviate1.ts +++ b/src/ts/src/models/Weaviate1.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/WebCrawler.ts b/src/ts/src/models/WebCrawler.ts index a9061fb..cf5b6e5 100644 --- a/src/ts/src/models/WebCrawler.ts +++ b/src/ts/src/models/WebCrawler.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/WebCrawler1.ts b/src/ts/src/models/WebCrawler1.ts index a6dd84a..e4b5e39 100644 --- a/src/ts/src/models/WebCrawler1.ts +++ b/src/ts/src/models/WebCrawler1.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/index.ts b/src/ts/src/models/index.ts index 241604e..a868e57 100644 --- a/src/ts/src/models/index.ts +++ b/src/ts/src/models/index.ts @@ -17,6 +17,7 @@ export * from './AddUserToSourceConnectorRequest'; export * from './AddUserToSourceConnectorRequestSelectedFiles'; export * from './AddUserToSourceConnectorRequestSelectedFilesAnyOf'; export * from './AddUserToSourceConnectorRequestSelectedFilesAnyOfValue'; +export * from './AdvancedQuery'; export * from './AwsS3'; export * from './AwsS31'; export * from './AzureBlob'; diff --git a/src/ts/src/runtime.ts b/src/ts/src/runtime.ts index 8ce3cf9..cf99c0c 100644 --- a/src/ts/src/runtime.ts +++ b/src/ts/src/runtime.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: 0.1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). From fb2fc10b2146c34d5c84c6a3b3d903339d394831 Mon Sep 17 00:00:00 2001 From: Jamie Ferguson <87547501+lulujo@users.noreply.github.com> Date: Thu, 10 Jul 2025 11:43:53 -0600 Subject: [PATCH 07/11] Eng 2651 fix update connector api (#18) --- src/python/vectorize_client/__init__.py | 10 +- .../api/ai_platform_connectors_api.py | 28 +- .../api/destination_connectors_api.py | 2 +- .../vectorize_client/api/extraction_api.py | 2 +- src/python/vectorize_client/api/files_api.py | 2 +- .../vectorize_client/api/pipelines_api.py | 2 +- .../api/source_connectors_api.py | 2 +- .../vectorize_client/api/uploads_api.py | 2 +- src/python/vectorize_client/api_client.py | 2 +- src/python/vectorize_client/configuration.py | 4 +- src/python/vectorize_client/exceptions.py | 2 +- .../vectorize_client/models/__init__.py | 10 +- ...add_user_from_source_connector_response.py | 2 +- .../add_user_to_source_connector_request.py | 2 +- ...source_connector_request_selected_files.py | 2 +- ...connector_request_selected_files_any_of.py | 2 +- ...tor_request_selected_files_any_of_value.py | 2 +- .../vectorize_client/models/advanced_query.py | 2 +- .../models/ai_platform_config_schema.py | 2 +- ...i_platform.py => ai_platform_connector.py} | 10 +- .../models/ai_platform_connector_input.py | 2 +- .../models/ai_platform_type.py | 2 +- .../models/ai_platform_type_for_pipeline.py | 2 +- src/python/vectorize_client/models/aws_s3.py | 8 +- src/python/vectorize_client/models/aws_s31.py | 8 +- .../models/awss3_auth_config.py | 6 +- .../vectorize_client/models/awss3_config.py | 10 +- .../vectorize_client/models/azure_blob.py | 8 +- .../vectorize_client/models/azure_blob1.py | 8 +- .../vectorize_client/models/azureaisearch.py | 8 +- .../vectorize_client/models/azureaisearch1.py | 8 +- .../models/azureaisearch_auth_config.py | 6 +- .../models/azureaisearch_config.py | 2 +- .../models/azureblob_auth_config.py | 6 +- .../models/azureblob_config.py | 10 +- src/python/vectorize_client/models/bedrock.py | 2 +- .../vectorize_client/models/bedrock1.py | 2 +- .../models/bedrock_auth_config.py | 6 +- src/python/vectorize_client/models/capella.py | 8 +- .../vectorize_client/models/capella1.py | 8 +- .../models/capella_auth_config.py | 6 +- .../vectorize_client/models/capella_config.py | 2 +- .../vectorize_client/models/confluence.py | 8 +- .../vectorize_client/models/confluence1.py | 8 +- .../models/confluence_auth_config.py | 6 +- .../models/confluence_config.py | 6 +- .../create_ai_platform_connector_request.py | 2 +- .../create_ai_platform_connector_response.py | 2 +- .../create_destination_connector_request.py | 2 +- .../create_destination_connector_response.py | 2 +- .../models/create_pipeline_response.py | 2 +- .../models/create_pipeline_response_data.py | 2 +- .../models/create_source_connector_request.py | 2 +- .../create_source_connector_response.py | 2 +- .../models/created_ai_platform_connector.py | 2 +- .../models/created_destination_connector.py | 2 +- .../models/created_source_connector.py | 2 +- .../vectorize_client/models/datastax.py | 8 +- .../vectorize_client/models/datastax1.py | 8 +- .../models/datastax_auth_config.py | 6 +- .../models/datastax_config.py | 2 +- .../models/deep_research_result.py | 2 +- .../delete_ai_platform_connector_response.py | 2 +- .../delete_destination_connector_response.py | 2 +- .../models/delete_file_response.py | 2 +- .../models/delete_pipeline_response.py | 2 +- .../delete_source_connector_response.py | 2 +- .../models/destination_connector.py | 2 +- .../models/destination_connector_input.py | 2 +- .../destination_connector_input_config.py | 2 +- .../models/destination_connector_type.py | 2 +- ...destination_connector_type_for_pipeline.py | 2 +- src/python/vectorize_client/models/discord.py | 8 +- .../vectorize_client/models/discord1.py | 8 +- .../models/discord_auth_config.py | 8 +- .../vectorize_client/models/discord_config.py | 8 +- .../vectorize_client/models/document.py | 2 +- src/python/vectorize_client/models/dropbox.py | 8 +- .../models/dropbox_auth_config.py | 8 +- .../vectorize_client/models/dropbox_config.py | 17 +- .../vectorize_client/models/dropbox_oauth.py | 2 +- .../models/dropbox_oauth_multi.py | 2 +- .../models/dropbox_oauth_multi_custom.py | 2 +- .../models/dropboxoauth_auth_config.py | 6 +- .../models/dropboxoauthmulti_auth_config.py | 8 +- .../dropboxoauthmulticustom_auth_config.py | 8 +- src/python/vectorize_client/models/elastic.py | 8 +- .../vectorize_client/models/elastic1.py | 8 +- .../models/elastic_auth_config.py | 6 +- .../vectorize_client/models/elastic_config.py | 2 +- .../models/extraction_chunking_strategy.py | 2 +- .../models/extraction_result.py | 2 +- .../models/extraction_result_response.py | 2 +- .../models/extraction_type.py | 2 +- .../vectorize_client/models/file_upload.py | 2 +- .../vectorize_client/models/file_upload1.py | 2 +- .../models/fileupload_auth_config.py | 6 +- .../vectorize_client/models/firecrawl.py | 8 +- .../vectorize_client/models/firecrawl1.py | 8 +- .../models/firecrawl_auth_config.py | 8 +- .../models/firecrawl_config.py | 2 +- .../vectorize_client/models/fireflies.py | 8 +- .../vectorize_client/models/fireflies1.py | 8 +- .../models/fireflies_auth_config.py | 8 +- .../models/fireflies_config.py | 2 +- src/python/vectorize_client/models/gcs.py | 8 +- src/python/vectorize_client/models/gcs1.py | 8 +- .../models/gcs_auth_config.py | 6 +- .../vectorize_client/models/gcs_config.py | 10 +- .../get_ai_platform_connectors200_response.py | 8 +- .../models/get_deep_research_response.py | 2 +- .../get_destination_connectors200_response.py | 2 +- .../models/get_pipeline_events_response.py | 2 +- .../models/get_pipeline_metrics_response.py | 2 +- .../models/get_pipeline_response.py | 2 +- .../models/get_pipelines400_response.py | 2 +- .../models/get_pipelines_response.py | 2 +- .../get_source_connectors200_response.py | 2 +- .../models/get_upload_files_response.py | 2 +- src/python/vectorize_client/models/github.py | 8 +- src/python/vectorize_client/models/github1.py | 8 +- .../models/github_auth_config.py | 8 +- .../vectorize_client/models/github_config.py | 16 +- .../models/gmail_auth_config.py | 8 +- .../vectorize_client/models/gmail_config.py | 2 +- .../vectorize_client/models/google_drive.py | 8 +- .../vectorize_client/models/google_drive1.py | 8 +- .../models/google_drive_oauth.py | 8 +- .../models/google_drive_oauth_multi.py | 8 +- .../models/google_drive_oauth_multi_custom.py | 8 +- .../models/googledrive_auth_config.py | 8 +- .../models/googledrive_config.py | 23 +- .../models/googledriveoauth_auth_config.py | 6 +- .../models/googledriveoauth_config.py | 10 +- .../googledriveoauthmulti_auth_config.py | 8 +- .../models/googledriveoauthmulti_config.py | 10 +- ...googledriveoauthmulticustom_auth_config.py | 8 +- .../googledriveoauthmulticustom_config.py | 10 +- .../vectorize_client/models/intercom.py | 8 +- .../models/intercom_auth_config.py | 8 +- .../models/intercom_config.py | 2 +- .../models/metadata_extraction_strategy.py | 2 +- .../metadata_extraction_strategy_schema.py | 2 +- src/python/vectorize_client/models/milvus.py | 8 +- src/python/vectorize_client/models/milvus1.py | 8 +- .../models/milvus_auth_config.py | 6 +- .../vectorize_client/models/milvus_config.py | 2 +- .../vectorize_client/models/n8_n_config.py | 2 +- src/python/vectorize_client/models/notion.py | 8 +- .../models/notion_auth_config.py | 6 +- .../vectorize_client/models/notion_config.py | 2 +- .../models/notion_oauth_multi.py | 2 +- .../models/notion_oauth_multi_custom.py | 2 +- .../models/notionoauthmulti_auth_config.py | 8 +- .../notionoauthmulticustom_auth_config.py | 8 +- .../vectorize_client/models/one_drive.py | 8 +- .../vectorize_client/models/one_drive1.py | 8 +- .../models/onedrive_auth_config.py | 8 +- .../models/onedrive_config.py | 6 +- src/python/vectorize_client/models/openai.py | 2 +- src/python/vectorize_client/models/openai1.py | 2 +- .../models/openai_auth_config.py | 8 +- .../vectorize_client/models/pinecone.py | 8 +- .../vectorize_client/models/pinecone1.py | 8 +- .../models/pinecone_auth_config.py | 8 +- .../models/pinecone_config.py | 2 +- ... pipeline_ai_platform_connector_schema.py} | 10 +- .../models/pipeline_configuration_schema.py | 28 +- ... pipeline_destination_connector_schema.py} | 10 +- .../models/pipeline_events.py | 2 +- .../models/pipeline_list_summary.py | 2 +- .../models/pipeline_metrics.py | 2 +- ...py => pipeline_source_connector_schema.py} | 10 +- .../models/pipeline_summary.py | 8 +- .../vectorize_client/models/postgresql.py | 8 +- .../vectorize_client/models/postgresql1.py | 8 +- .../models/postgresql_auth_config.py | 6 +- .../models/postgresql_config.py | 2 +- src/python/vectorize_client/models/qdrant.py | 8 +- src/python/vectorize_client/models/qdrant1.py | 8 +- .../models/qdrant_auth_config.py | 6 +- .../vectorize_client/models/qdrant_config.py | 2 +- ...move_user_from_source_connector_request.py | 2 +- ...ove_user_from_source_connector_response.py | 2 +- .../models/retrieve_context.py | 2 +- .../models/retrieve_context_message.py | 2 +- .../models/retrieve_documents_request.py | 2 +- .../models/retrieve_documents_response.py | 2 +- .../models/schedule_schema.py | 2 +- .../models/schedule_schema_type.py | 2 +- .../vectorize_client/models/sharepoint.py | 8 +- .../vectorize_client/models/sharepoint1.py | 8 +- .../models/sharepoint_auth_config.py | 6 +- .../models/sharepoint_config.py | 19 +- .../vectorize_client/models/singlestore.py | 8 +- .../vectorize_client/models/singlestore1.py | 8 +- .../models/singlestore_auth_config.py | 6 +- .../models/singlestore_config.py | 2 +- .../models/source_connector.py | 2 +- .../models/source_connector_input.py | 2 +- .../models/source_connector_input_config.py | 2 +- .../models/source_connector_type.py | 2 +- .../models/start_deep_research_request.py | 2 +- .../models/start_deep_research_response.py | 2 +- .../models/start_extraction_request.py | 2 +- .../models/start_extraction_response.py | 2 +- .../models/start_file_upload_request.py | 2 +- .../models/start_file_upload_response.py | 2 +- .../start_file_upload_to_connector_request.py | 2 +- ...start_file_upload_to_connector_response.py | 2 +- .../models/start_pipeline_response.py | 2 +- .../models/stop_pipeline_response.py | 2 +- .../vectorize_client/models/supabase.py | 8 +- .../vectorize_client/models/supabase1.py | 8 +- .../models/supabase_auth_config.py | 6 +- .../models/supabase_config.py | 2 +- .../vectorize_client/models/turbopuffer.py | 8 +- .../vectorize_client/models/turbopuffer1.py | 8 +- .../models/turbopuffer_auth_config.py | 8 +- .../models/turbopuffer_config.py | 2 +- .../update_ai_platform_connector_request.py | 2 +- .../update_ai_platform_connector_response.py | 2 +- .../update_destination_connector_request.py | 2 +- .../update_destination_connector_response.py | 2 +- .../models/update_source_connector_request.py | 2 +- .../update_source_connector_response.py | 2 +- .../update_source_connector_response_data.py | 2 +- ...update_user_in_source_connector_request.py | 2 +- ...pdate_user_in_source_connector_response.py | 2 +- .../updated_ai_platform_connector_data.py | 8 +- .../updated_destination_connector_data.py | 2 +- .../vectorize_client/models/upload_file.py | 2 +- src/python/vectorize_client/models/vertex.py | 2 +- src/python/vectorize_client/models/vertex1.py | 2 +- .../models/vertex_auth_config.py | 6 +- src/python/vectorize_client/models/voyage.py | 2 +- src/python/vectorize_client/models/voyage1.py | 2 +- .../models/voyage_auth_config.py | 8 +- .../vectorize_client/models/weaviate.py | 8 +- .../vectorize_client/models/weaviate1.py | 8 +- .../models/weaviate_auth_config.py | 6 +- .../models/weaviate_config.py | 2 +- .../vectorize_client/models/web_crawler.py | 8 +- .../vectorize_client/models/web_crawler1.py | 8 +- .../models/webcrawler_auth_config.py | 8 +- .../models/webcrawler_config.py | 19 +- src/python/vectorize_client/rest.py | 2 +- src/ts/package-lock.json | 31 + src/ts/package.json | 2 +- src/ts/src/apis/AIPlatformConnectorsApi.ts | 26 +- src/ts/src/apis/DestinationConnectorsApi.ts | 2 +- src/ts/src/apis/ExtractionApi.ts | 2 +- src/ts/src/apis/FilesApi.ts | 2 +- src/ts/src/apis/PipelinesApi.ts | 2 +- src/ts/src/apis/SourceConnectorsApi.ts | 2 +- src/ts/src/apis/UploadsApi.ts | 2 +- src/ts/src/models/AIPlatformConfigSchema.ts | 2 +- .../{AIPlatform.ts => AIPlatformConnector.ts} | 44 +- src/ts/src/models/AIPlatformConnectorInput.ts | 2 +- src/ts/src/models/AIPlatformType.ts | 2 +- .../src/models/AIPlatformTypeForPipeline.ts | 2 +- src/ts/src/models/AWSS3AuthConfig.ts | 11 +- src/ts/src/models/AWSS3Config.ts | 10 +- src/ts/src/models/AZUREAISEARCHAuthConfig.ts | 11 +- src/ts/src/models/AZUREAISEARCHConfig.ts | 2 +- src/ts/src/models/AZUREBLOBAuthConfig.ts | 11 +- src/ts/src/models/AZUREBLOBConfig.ts | 10 +- .../AddUserFromSourceConnectorResponse.ts | 2 +- .../models/AddUserToSourceConnectorRequest.ts | 2 +- ...erToSourceConnectorRequestSelectedFiles.ts | 2 +- ...ourceConnectorRequestSelectedFilesAnyOf.ts | 2 +- ...ConnectorRequestSelectedFilesAnyOfValue.ts | 2 +- src/ts/src/models/AdvancedQuery.ts | 2 +- src/ts/src/models/AwsS3.ts | 22 +- src/ts/src/models/AwsS31.ts | 22 +- src/ts/src/models/AzureBlob.ts | 22 +- src/ts/src/models/AzureBlob1.ts | 22 +- src/ts/src/models/Azureaisearch.ts | 22 +- src/ts/src/models/Azureaisearch1.ts | 22 +- src/ts/src/models/BEDROCKAuthConfig.ts | 11 +- src/ts/src/models/Bedrock.ts | 2 +- src/ts/src/models/Bedrock1.ts | 2 +- src/ts/src/models/CAPELLAAuthConfig.ts | 11 +- src/ts/src/models/CAPELLAConfig.ts | 2 +- src/ts/src/models/CONFLUENCEAuthConfig.ts | 11 +- src/ts/src/models/CONFLUENCEConfig.ts | 10 +- src/ts/src/models/Capella.ts | 22 +- src/ts/src/models/Capella1.ts | 22 +- src/ts/src/models/Confluence.ts | 22 +- src/ts/src/models/Confluence1.ts | 22 +- .../CreateAIPlatformConnectorRequest.ts | 2 +- .../CreateAIPlatformConnectorResponse.ts | 2 +- .../CreateDestinationConnectorRequest.ts | 2 +- .../CreateDestinationConnectorResponse.ts | 2 +- src/ts/src/models/CreatePipelineResponse.ts | 2 +- .../src/models/CreatePipelineResponseData.ts | 2 +- .../models/CreateSourceConnectorRequest.ts | 2 +- .../models/CreateSourceConnectorResponse.ts | 2 +- .../src/models/CreatedAIPlatformConnector.ts | 2 +- .../src/models/CreatedDestinationConnector.ts | 2 +- src/ts/src/models/CreatedSourceConnector.ts | 2 +- src/ts/src/models/DATASTAXAuthConfig.ts | 11 +- src/ts/src/models/DATASTAXConfig.ts | 2 +- src/ts/src/models/DISCORDAuthConfig.ts | 15 +- src/ts/src/models/DISCORDConfig.ts | 14 +- src/ts/src/models/DROPBOXAuthConfig.ts | 11 +- src/ts/src/models/DROPBOXConfig.ts | 6 +- src/ts/src/models/DROPBOXOAUTHAuthConfig.ts | 11 +- .../src/models/DROPBOXOAUTHMULTIAuthConfig.ts | 15 +- .../DROPBOXOAUTHMULTICUSTOMAuthConfig.ts | 15 +- src/ts/src/models/Datastax.ts | 22 +- src/ts/src/models/Datastax1.ts | 22 +- src/ts/src/models/DeepResearchResult.ts | 2 +- .../DeleteAIPlatformConnectorResponse.ts | 2 +- .../DeleteDestinationConnectorResponse.ts | 2 +- src/ts/src/models/DeleteFileResponse.ts | 2 +- src/ts/src/models/DeletePipelineResponse.ts | 2 +- .../models/DeleteSourceConnectorResponse.ts | 2 +- src/ts/src/models/DestinationConnector.ts | 2 +- .../src/models/DestinationConnectorInput.ts | 2 +- .../models/DestinationConnectorInputConfig.ts | 2 +- src/ts/src/models/DestinationConnectorType.ts | 2 +- .../DestinationConnectorTypeForPipeline.ts | 2 +- src/ts/src/models/Discord.ts | 22 +- src/ts/src/models/Discord1.ts | 22 +- src/ts/src/models/Document.ts | 2 +- src/ts/src/models/Dropbox.ts | 22 +- src/ts/src/models/DropboxOauth.ts | 2 +- src/ts/src/models/DropboxOauthMulti.ts | 2 +- src/ts/src/models/DropboxOauthMultiCustom.ts | 2 +- src/ts/src/models/ELASTICAuthConfig.ts | 11 +- src/ts/src/models/ELASTICConfig.ts | 2 +- src/ts/src/models/Elastic.ts | 22 +- src/ts/src/models/Elastic1.ts | 22 +- .../src/models/ExtractionChunkingStrategy.ts | 2 +- src/ts/src/models/ExtractionResult.ts | 2 +- src/ts/src/models/ExtractionResultResponse.ts | 2 +- src/ts/src/models/ExtractionType.ts | 2 +- src/ts/src/models/FILEUPLOADAuthConfig.ts | 11 +- src/ts/src/models/FIRECRAWLAuthConfig.ts | 11 +- src/ts/src/models/FIRECRAWLConfig.ts | 2 +- src/ts/src/models/FIREFLIESAuthConfig.ts | 11 +- src/ts/src/models/FIREFLIESConfig.ts | 2 +- src/ts/src/models/FileUpload.ts | 2 +- src/ts/src/models/FileUpload1.ts | 2 +- src/ts/src/models/Firecrawl.ts | 22 +- src/ts/src/models/Firecrawl1.ts | 22 +- src/ts/src/models/Fireflies.ts | 22 +- src/ts/src/models/Fireflies1.ts | 22 +- src/ts/src/models/GCSAuthConfig.ts | 11 +- src/ts/src/models/GCSConfig.ts | 10 +- src/ts/src/models/GITHUBAuthConfig.ts | 11 +- src/ts/src/models/GITHUBConfig.ts | 14 +- src/ts/src/models/GMAILAuthConfig.ts | 11 +- src/ts/src/models/GMAILConfig.ts | 2 +- src/ts/src/models/GOOGLEDRIVEAuthConfig.ts | 11 +- src/ts/src/models/GOOGLEDRIVEConfig.ts | 10 +- .../src/models/GOOGLEDRIVEOAUTHAuthConfig.ts | 11 +- src/ts/src/models/GOOGLEDRIVEOAUTHConfig.ts | 6 +- .../models/GOOGLEDRIVEOAUTHMULTIAuthConfig.ts | 15 +- .../GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig.ts | 15 +- .../GOOGLEDRIVEOAUTHMULTICUSTOMConfig.ts | 6 +- .../src/models/GOOGLEDRIVEOAUTHMULTIConfig.ts | 6 +- src/ts/src/models/Gcs.ts | 22 +- src/ts/src/models/Gcs1.ts | 22 +- .../GetAIPlatformConnectors200Response.ts | 22 +- src/ts/src/models/GetDeepResearchResponse.ts | 2 +- .../GetDestinationConnectors200Response.ts | 2 +- .../src/models/GetPipelineEventsResponse.ts | 2 +- .../src/models/GetPipelineMetricsResponse.ts | 2 +- src/ts/src/models/GetPipelineResponse.ts | 2 +- src/ts/src/models/GetPipelines400Response.ts | 2 +- src/ts/src/models/GetPipelinesResponse.ts | 2 +- .../models/GetSourceConnectors200Response.ts | 2 +- src/ts/src/models/GetUploadFilesResponse.ts | 2 +- src/ts/src/models/Github.ts | 22 +- src/ts/src/models/Github1.ts | 22 +- src/ts/src/models/GoogleDrive.ts | 22 +- src/ts/src/models/GoogleDrive1.ts | 22 +- src/ts/src/models/GoogleDriveOauth.ts | 22 +- src/ts/src/models/GoogleDriveOauthMulti.ts | 22 +- .../src/models/GoogleDriveOauthMultiCustom.ts | 22 +- src/ts/src/models/INTERCOMAuthConfig.ts | 11 +- src/ts/src/models/INTERCOMConfig.ts | 2 +- src/ts/src/models/Intercom.ts | 22 +- src/ts/src/models/MILVUSAuthConfig.ts | 11 +- src/ts/src/models/MILVUSConfig.ts | 2 +- .../src/models/MetadataExtractionStrategy.ts | 2 +- .../MetadataExtractionStrategySchema.ts | 2 +- src/ts/src/models/Milvus.ts | 22 +- src/ts/src/models/Milvus1.ts | 22 +- src/ts/src/models/N8NConfig.ts | 2 +- src/ts/src/models/NOTIONAuthConfig.ts | 11 +- src/ts/src/models/NOTIONConfig.ts | 2 +- .../src/models/NOTIONOAUTHMULTIAuthConfig.ts | 15 +- .../NOTIONOAUTHMULTICUSTOMAuthConfig.ts | 15 +- src/ts/src/models/Notion.ts | 22 +- src/ts/src/models/NotionOauthMulti.ts | 2 +- src/ts/src/models/NotionOauthMultiCustom.ts | 2 +- src/ts/src/models/ONEDRIVEAuthConfig.ts | 15 +- src/ts/src/models/ONEDRIVEConfig.ts | 6 +- src/ts/src/models/OPENAIAuthConfig.ts | 11 +- src/ts/src/models/OneDrive.ts | 22 +- src/ts/src/models/OneDrive1.ts | 22 +- src/ts/src/models/Openai.ts | 2 +- src/ts/src/models/Openai1.ts | 2 +- src/ts/src/models/PINECONEAuthConfig.ts | 11 +- src/ts/src/models/PINECONEConfig.ts | 2 +- src/ts/src/models/POSTGRESQLAuthConfig.ts | 11 +- src/ts/src/models/POSTGRESQLConfig.ts | 2 +- src/ts/src/models/Pinecone.ts | 22 +- src/ts/src/models/Pinecone1.ts | 22 +- ...s => PipelineAIPlatformConnectorSchema.ts} | 28 +- .../src/models/PipelineConfigurationSchema.ts | 66 +- ... => PipelineDestinationConnectorSchema.ts} | 28 +- src/ts/src/models/PipelineEvents.ts | 2 +- src/ts/src/models/PipelineListSummary.ts | 2 +- src/ts/src/models/PipelineMetrics.ts | 2 +- ...ma.ts => PipelineSourceConnectorSchema.ts} | 28 +- src/ts/src/models/PipelineSummary.ts | 24 +- src/ts/src/models/Postgresql.ts | 22 +- src/ts/src/models/Postgresql1.ts | 22 +- src/ts/src/models/QDRANTAuthConfig.ts | 11 +- src/ts/src/models/QDRANTConfig.ts | 2 +- src/ts/src/models/Qdrant.ts | 22 +- src/ts/src/models/Qdrant1.ts | 22 +- .../RemoveUserFromSourceConnectorRequest.ts | 2 +- .../RemoveUserFromSourceConnectorResponse.ts | 2 +- src/ts/src/models/RetrieveContext.ts | 2 +- src/ts/src/models/RetrieveContextMessage.ts | 2 +- src/ts/src/models/RetrieveDocumentsRequest.ts | 2 +- .../src/models/RetrieveDocumentsResponse.ts | 2 +- src/ts/src/models/SHAREPOINTAuthConfig.ts | 11 +- src/ts/src/models/SHAREPOINTConfig.ts | 10 +- src/ts/src/models/SINGLESTOREAuthConfig.ts | 11 +- src/ts/src/models/SINGLESTOREConfig.ts | 2 +- src/ts/src/models/SUPABASEAuthConfig.ts | 11 +- src/ts/src/models/SUPABASEConfig.ts | 2 +- src/ts/src/models/ScheduleSchema.ts | 2 +- src/ts/src/models/ScheduleSchemaType.ts | 2 +- src/ts/src/models/Sharepoint.ts | 22 +- src/ts/src/models/Sharepoint1.ts | 22 +- src/ts/src/models/Singlestore.ts | 22 +- src/ts/src/models/Singlestore1.ts | 22 +- src/ts/src/models/SourceConnector.ts | 2 +- src/ts/src/models/SourceConnectorInput.ts | 2 +- .../src/models/SourceConnectorInputConfig.ts | 2 +- src/ts/src/models/SourceConnectorType.ts | 2 +- src/ts/src/models/StartDeepResearchRequest.ts | 2 +- .../src/models/StartDeepResearchResponse.ts | 2 +- src/ts/src/models/StartExtractionRequest.ts | 2 +- src/ts/src/models/StartExtractionResponse.ts | 2 +- src/ts/src/models/StartFileUploadRequest.ts | 2 +- src/ts/src/models/StartFileUploadResponse.ts | 2 +- .../StartFileUploadToConnectorRequest.ts | 2 +- .../StartFileUploadToConnectorResponse.ts | 2 +- src/ts/src/models/StartPipelineResponse.ts | 2 +- src/ts/src/models/StopPipelineResponse.ts | 2 +- src/ts/src/models/Supabase.ts | 22 +- src/ts/src/models/Supabase1.ts | 22 +- src/ts/src/models/TURBOPUFFERAuthConfig.ts | 11 +- src/ts/src/models/TURBOPUFFERConfig.ts | 2 +- src/ts/src/models/Turbopuffer.ts | 22 +- src/ts/src/models/Turbopuffer1.ts | 22 +- .../UpdateAIPlatformConnectorRequest.ts | 2 +- .../UpdateAIPlatformConnectorResponse.ts | 2 +- .../UpdateDestinationConnectorRequest.ts | 2 +- .../UpdateDestinationConnectorResponse.ts | 2 +- .../models/UpdateSourceConnectorRequest.ts | 2 +- .../models/UpdateSourceConnectorResponse.ts | 2 +- .../UpdateSourceConnectorResponseData.ts | 2 +- .../UpdateUserInSourceConnectorRequest.ts | 2 +- .../UpdateUserInSourceConnectorResponse.ts | 2 +- .../models/UpdatedAIPlatformConnectorData.ts | 22 +- .../models/UpdatedDestinationConnectorData.ts | 2 +- src/ts/src/models/UploadFile.ts | 2 +- src/ts/src/models/VERTEXAuthConfig.ts | 11 +- src/ts/src/models/VOYAGEAuthConfig.ts | 11 +- src/ts/src/models/Vertex.ts | 2 +- src/ts/src/models/Vertex1.ts | 2 +- src/ts/src/models/Voyage.ts | 2 +- src/ts/src/models/Voyage1.ts | 2 +- src/ts/src/models/WEAVIATEAuthConfig.ts | 11 +- src/ts/src/models/WEAVIATEConfig.ts | 2 +- src/ts/src/models/WEBCRAWLERAuthConfig.ts | 15 +- src/ts/src/models/WEBCRAWLERConfig.ts | 10 +- src/ts/src/models/Weaviate.ts | 22 +- src/ts/src/models/Weaviate1.ts | 22 +- src/ts/src/models/WebCrawler.ts | 22 +- src/ts/src/models/WebCrawler1.ts | 22 +- src/ts/src/models/index.ts | 8 +- src/ts/src/runtime.ts | 2 +- tests/python/tests/test_client.py | 44 +- vectorize_api.json | 698 +++++++----------- 494 files changed, 1893 insertions(+), 2517 deletions(-) rename src/python/vectorize_client/models/{ai_platform.py => ai_platform_connector.py} (93%) rename src/python/vectorize_client/models/{ai_platform_connector_schema.py => pipeline_ai_platform_connector_schema.py} (89%) rename src/python/vectorize_client/models/{destination_connector_schema.py => pipeline_destination_connector_schema.py} (88%) rename src/python/vectorize_client/models/{source_connector_schema.py => pipeline_source_connector_schema.py} (89%) create mode 100644 src/ts/package-lock.json rename src/ts/src/models/{AIPlatform.ts => AIPlatformConnector.ts} (70%) rename src/ts/src/models/{AIPlatformConnectorSchema.ts => PipelineAIPlatformConnectorSchema.ts} (62%) rename src/ts/src/models/{DestinationConnectorSchema.ts => PipelineDestinationConnectorSchema.ts} (58%) rename src/ts/src/models/{SourceConnectorSchema.ts => PipelineSourceConnectorSchema.ts} (58%) diff --git a/src/python/vectorize_client/__init__.py b/src/python/vectorize_client/__init__.py index b1f4bf9..ba17ae7 100644 --- a/src/python/vectorize_client/__init__.py +++ b/src/python/vectorize_client/__init__.py @@ -7,7 +7,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -37,10 +37,9 @@ from vectorize_client.exceptions import ApiException # 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_connector import AIPlatformConnector from vectorize_client.models.ai_platform_connector_input import AIPlatformConnectorInput -from vectorize_client.models.ai_platform_connector_schema import AIPlatformConnectorSchema from vectorize_client.models.ai_platform_type import AIPlatformType from vectorize_client.models.ai_platform_type_for_pipeline import AIPlatformTypeForPipeline from vectorize_client.models.awss3_auth_config import AWSS3AuthConfig @@ -103,7 +102,6 @@ from vectorize_client.models.destination_connector import DestinationConnector from vectorize_client.models.destination_connector_input import DestinationConnectorInput from vectorize_client.models.destination_connector_input_config import DestinationConnectorInputConfig -from vectorize_client.models.destination_connector_schema import DestinationConnectorSchema from vectorize_client.models.destination_connector_type import DestinationConnectorType from vectorize_client.models.destination_connector_type_for_pipeline import DestinationConnectorTypeForPipeline from vectorize_client.models.discord import Discord @@ -195,10 +193,13 @@ from vectorize_client.models.postgresql_config import POSTGRESQLConfig from vectorize_client.models.pinecone import Pinecone from vectorize_client.models.pinecone1 import Pinecone1 +from vectorize_client.models.pipeline_ai_platform_connector_schema import PipelineAIPlatformConnectorSchema from vectorize_client.models.pipeline_configuration_schema import PipelineConfigurationSchema +from vectorize_client.models.pipeline_destination_connector_schema import PipelineDestinationConnectorSchema 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_source_connector_schema import PipelineSourceConnectorSchema from vectorize_client.models.pipeline_summary import PipelineSummary from vectorize_client.models.postgresql import Postgresql from vectorize_client.models.postgresql1 import Postgresql1 @@ -227,7 +228,6 @@ from vectorize_client.models.source_connector import SourceConnector from vectorize_client.models.source_connector_input import SourceConnectorInput from vectorize_client.models.source_connector_input_config import SourceConnectorInputConfig -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_response import StartDeepResearchResponse diff --git a/src/python/vectorize_client/api/ai_platform_connectors_api.py b/src/python/vectorize_client/api/ai_platform_connectors_api.py index d900c3e..4ec6535 100644 --- a/src/python/vectorize_client/api/ai_platform_connectors_api.py +++ b/src/python/vectorize_client/api/ai_platform_connectors_api.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -17,7 +17,7 @@ from typing_extensions import Annotated from pydantic import StrictStr -from vectorize_client.models.ai_platform import AIPlatform +from vectorize_client.models.ai_platform_connector import AIPlatformConnector from vectorize_client.models.create_ai_platform_connector_request import CreateAIPlatformConnectorRequest from vectorize_client.models.create_ai_platform_connector_response import CreateAIPlatformConnectorResponse from vectorize_client.models.delete_ai_platform_connector_response import DeleteAIPlatformConnectorResponse @@ -348,7 +348,7 @@ def _create_ai_platform_connector_serialize( @validate_call - def delete_ai_platform( + def delete_ai_platform_connector( self, organization_id: StrictStr, ai_platform_connector_id: StrictStr, @@ -395,7 +395,7 @@ def delete_ai_platform( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_ai_platform_serialize( + _param = self._delete_ai_platform_connector_serialize( organization_id=organization_id, ai_platform_connector_id=ai_platform_connector_id, _request_auth=_request_auth, @@ -424,7 +424,7 @@ def delete_ai_platform( @validate_call - def delete_ai_platform_with_http_info( + def delete_ai_platform_connector_with_http_info( self, organization_id: StrictStr, ai_platform_connector_id: StrictStr, @@ -471,7 +471,7 @@ def delete_ai_platform_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_ai_platform_serialize( + _param = self._delete_ai_platform_connector_serialize( organization_id=organization_id, ai_platform_connector_id=ai_platform_connector_id, _request_auth=_request_auth, @@ -500,7 +500,7 @@ def delete_ai_platform_with_http_info( @validate_call - def delete_ai_platform_without_preload_content( + def delete_ai_platform_connector_without_preload_content( self, organization_id: StrictStr, ai_platform_connector_id: StrictStr, @@ -547,7 +547,7 @@ def delete_ai_platform_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_ai_platform_serialize( + _param = self._delete_ai_platform_connector_serialize( organization_id=organization_id, ai_platform_connector_id=ai_platform_connector_id, _request_auth=_request_auth, @@ -571,7 +571,7 @@ def delete_ai_platform_without_preload_content( return response_data.response - def _delete_ai_platform_serialize( + def _delete_ai_platform_connector_serialize( self, organization_id, ai_platform_connector_id, @@ -655,7 +655,7 @@ 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: + ) -> AIPlatformConnector: """Get an AI platform connector Get an AI platform connector @@ -696,7 +696,7 @@ def get_ai_platform_connector( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AIPlatform", + '200': "AIPlatformConnector", '400': "GetPipelines400Response", '401': "GetPipelines400Response", '403': "GetPipelines400Response", @@ -731,7 +731,7 @@ 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]: + ) -> ApiResponse[AIPlatformConnector]: """Get an AI platform connector Get an AI platform connector @@ -772,7 +772,7 @@ def get_ai_platform_connector_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AIPlatform", + '200': "AIPlatformConnector", '400': "GetPipelines400Response", '401': "GetPipelines400Response", '403': "GetPipelines400Response", @@ -848,7 +848,7 @@ def get_ai_platform_connector_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AIPlatform", + '200': "AIPlatformConnector", '400': "GetPipelines400Response", '401': "GetPipelines400Response", '403': "GetPipelines400Response", diff --git a/src/python/vectorize_client/api/destination_connectors_api.py b/src/python/vectorize_client/api/destination_connectors_api.py index c6b15d3..6c396fe 100644 --- a/src/python/vectorize_client/api/destination_connectors_api.py +++ b/src/python/vectorize_client/api/destination_connectors_api.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/api/extraction_api.py b/src/python/vectorize_client/api/extraction_api.py index 4d0baf1..7646412 100644 --- a/src/python/vectorize_client/api/extraction_api.py +++ b/src/python/vectorize_client/api/extraction_api.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/api/files_api.py b/src/python/vectorize_client/api/files_api.py index 9e1ce08..f7070ef 100644 --- a/src/python/vectorize_client/api/files_api.py +++ b/src/python/vectorize_client/api/files_api.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/api/pipelines_api.py b/src/python/vectorize_client/api/pipelines_api.py index a367f5e..d547b08 100644 --- a/src/python/vectorize_client/api/pipelines_api.py +++ b/src/python/vectorize_client/api/pipelines_api.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/api/source_connectors_api.py b/src/python/vectorize_client/api/source_connectors_api.py index 99b1d33..920a670 100644 --- a/src/python/vectorize_client/api/source_connectors_api.py +++ b/src/python/vectorize_client/api/source_connectors_api.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/api/uploads_api.py b/src/python/vectorize_client/api/uploads_api.py index 03b57b6..91d3122 100644 --- a/src/python/vectorize_client/api/uploads_api.py +++ b/src/python/vectorize_client/api/uploads_api.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/api_client.py b/src/python/vectorize_client/api_client.py index eefbba4..4d98eba 100644 --- a/src/python/vectorize_client/api_client.py +++ b/src/python/vectorize_client/api_client.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/configuration.py b/src/python/vectorize_client/configuration.py index dbafe6e..8df061a 100644 --- a/src/python/vectorize_client/configuration.py +++ b/src/python/vectorize_client/configuration.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -510,7 +510,7 @@ def to_debug_report(self) -> str: return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: 0.1.0\n"\ + "Version of the API: 0.1.2\n"\ "SDK Package Version: 1.0.0".\ format(env=sys.platform, pyversion=sys.version) diff --git a/src/python/vectorize_client/exceptions.py b/src/python/vectorize_client/exceptions.py index bfb0236..1f6f9f0 100644 --- a/src/python/vectorize_client/exceptions.py +++ b/src/python/vectorize_client/exceptions.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/__init__.py b/src/python/vectorize_client/models/__init__.py index 989f8ba..20854fd 100644 --- a/src/python/vectorize_client/models/__init__.py +++ b/src/python/vectorize_client/models/__init__.py @@ -6,7 +6,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,10 +14,9 @@ # 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_connector import AIPlatformConnector from vectorize_client.models.ai_platform_connector_input import AIPlatformConnectorInput -from vectorize_client.models.ai_platform_connector_schema import AIPlatformConnectorSchema from vectorize_client.models.ai_platform_type import AIPlatformType from vectorize_client.models.ai_platform_type_for_pipeline import AIPlatformTypeForPipeline from vectorize_client.models.awss3_auth_config import AWSS3AuthConfig @@ -80,7 +79,6 @@ from vectorize_client.models.destination_connector import DestinationConnector from vectorize_client.models.destination_connector_input import DestinationConnectorInput from vectorize_client.models.destination_connector_input_config import DestinationConnectorInputConfig -from vectorize_client.models.destination_connector_schema import DestinationConnectorSchema from vectorize_client.models.destination_connector_type import DestinationConnectorType from vectorize_client.models.destination_connector_type_for_pipeline import DestinationConnectorTypeForPipeline from vectorize_client.models.discord import Discord @@ -172,10 +170,13 @@ from vectorize_client.models.postgresql_config import POSTGRESQLConfig from vectorize_client.models.pinecone import Pinecone from vectorize_client.models.pinecone1 import Pinecone1 +from vectorize_client.models.pipeline_ai_platform_connector_schema import PipelineAIPlatformConnectorSchema from vectorize_client.models.pipeline_configuration_schema import PipelineConfigurationSchema +from vectorize_client.models.pipeline_destination_connector_schema import PipelineDestinationConnectorSchema 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_source_connector_schema import PipelineSourceConnectorSchema from vectorize_client.models.pipeline_summary import PipelineSummary from vectorize_client.models.postgresql import Postgresql from vectorize_client.models.postgresql1 import Postgresql1 @@ -204,7 +205,6 @@ from vectorize_client.models.source_connector import SourceConnector from vectorize_client.models.source_connector_input import SourceConnectorInput from vectorize_client.models.source_connector_input_config import SourceConnectorInputConfig -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_response import StartDeepResearchResponse 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 index 1286ca1..06e1256 100644 --- 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 @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. 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 index 93bcf22..10fac4d 100644 --- 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 @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/add_user_to_source_connector_request_selected_files.py b/src/python/vectorize_client/models/add_user_to_source_connector_request_selected_files.py index 461c760..dba2f03 100644 --- a/src/python/vectorize_client/models/add_user_to_source_connector_request_selected_files.py +++ b/src/python/vectorize_client/models/add_user_to_source_connector_request_selected_files.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/add_user_to_source_connector_request_selected_files_any_of.py b/src/python/vectorize_client/models/add_user_to_source_connector_request_selected_files_any_of.py index 2a4a89d..8697517 100644 --- a/src/python/vectorize_client/models/add_user_to_source_connector_request_selected_files_any_of.py +++ b/src/python/vectorize_client/models/add_user_to_source_connector_request_selected_files_any_of.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/add_user_to_source_connector_request_selected_files_any_of_value.py b/src/python/vectorize_client/models/add_user_to_source_connector_request_selected_files_any_of_value.py index 748b408..fecfd04 100644 --- a/src/python/vectorize_client/models/add_user_to_source_connector_request_selected_files_any_of_value.py +++ b/src/python/vectorize_client/models/add_user_to_source_connector_request_selected_files_any_of_value.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/advanced_query.py b/src/python/vectorize_client/models/advanced_query.py index 6778bdc..d803c04 100644 --- a/src/python/vectorize_client/models/advanced_query.py +++ b/src/python/vectorize_client/models/advanced_query.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/ai_platform_config_schema.py b/src/python/vectorize_client/models/ai_platform_config_schema.py index 6fb5e15..53453e6 100644 --- a/src/python/vectorize_client/models/ai_platform_config_schema.py +++ b/src/python/vectorize_client/models/ai_platform_config_schema.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/ai_platform.py b/src/python/vectorize_client/models/ai_platform_connector.py similarity index 93% rename from src/python/vectorize_client/models/ai_platform.py rename to src/python/vectorize_client/models/ai_platform_connector.py index 5519804..ae5cb15 100644 --- a/src/python/vectorize_client/models/ai_platform.py +++ b/src/python/vectorize_client/models/ai_platform_connector.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -22,9 +22,9 @@ from typing import Optional, Set from typing_extensions import Self -class AIPlatform(BaseModel): +class AIPlatformConnector(BaseModel): """ - AIPlatform + AIPlatformConnector """ # noqa: E501 id: StrictStr type: StrictStr @@ -57,7 +57,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AIPlatform from a JSON string""" + """Create an instance of AIPlatformConnector from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -87,7 +87,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AIPlatform from a dict""" + """Create an instance of AIPlatformConnector from a dict""" if obj is None: return None diff --git a/src/python/vectorize_client/models/ai_platform_connector_input.py b/src/python/vectorize_client/models/ai_platform_connector_input.py index b7b879e..64eab8d 100644 --- a/src/python/vectorize_client/models/ai_platform_connector_input.py +++ b/src/python/vectorize_client/models/ai_platform_connector_input.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/ai_platform_type.py b/src/python/vectorize_client/models/ai_platform_type.py index f9d1365..2a001e6 100644 --- a/src/python/vectorize_client/models/ai_platform_type.py +++ b/src/python/vectorize_client/models/ai_platform_type.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/ai_platform_type_for_pipeline.py b/src/python/vectorize_client/models/ai_platform_type_for_pipeline.py index ec05ffc..03e1b9e 100644 --- a/src/python/vectorize_client/models/ai_platform_type_for_pipeline.py +++ b/src/python/vectorize_client/models/ai_platform_type_for_pipeline.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/aws_s3.py b/src/python/vectorize_client/models/aws_s3.py index 18246b5..6d7e892 100644 --- a/src/python/vectorize_client/models/aws_s3.py +++ b/src/python/vectorize_client/models/aws_s3.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator from typing import Any, ClassVar, Dict, List -from vectorize_client.models.awss3_config import AWSS3Config +from vectorize_client.models.awss3_auth_config import AWSS3AuthConfig from typing import Optional, Set from typing_extensions import Self @@ -29,7 +29,7 @@ class AwsS3(BaseModel): """ # noqa: E501 name: StrictStr = Field(description="Name of the connector") type: StrictStr = Field(description="Connector type (must be \"AWS_S3\")") - config: AWSS3Config + config: AWSS3AuthConfig __properties: ClassVar[List[str]] = ["name", "type", "config"] @field_validator('type') @@ -95,7 +95,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), "type": obj.get("type"), - "config": AWSS3Config.from_dict(obj["config"]) if obj.get("config") is not None else None + "config": AWSS3AuthConfig.from_dict(obj["config"]) if obj.get("config") is not None else None }) return _obj diff --git a/src/python/vectorize_client/models/aws_s31.py b/src/python/vectorize_client/models/aws_s31.py index ac0b0e7..de7f366 100644 --- a/src/python/vectorize_client/models/aws_s31.py +++ b/src/python/vectorize_client/models/aws_s31.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from vectorize_client.models.awss3_config import AWSS3Config +from vectorize_client.models.awss3_auth_config import AWSS3AuthConfig from typing import Optional, Set from typing_extensions import Self @@ -27,7 +27,7 @@ class AwsS31(BaseModel): """ AwsS31 """ # noqa: E501 - config: Optional[AWSS3Config] = None + config: Optional[AWSS3AuthConfig] = None __properties: ClassVar[List[str]] = ["config"] model_config = ConfigDict( @@ -84,7 +84,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "config": AWSS3Config.from_dict(obj["config"]) if obj.get("config") is not None else None + "config": AWSS3AuthConfig.from_dict(obj["config"]) if obj.get("config") is not None else None }) return _obj diff --git a/src/python/vectorize_client/models/awss3_auth_config.py b/src/python/vectorize_client/models/awss3_auth_config.py index a167266..a645b48 100644 --- a/src/python/vectorize_client/models/awss3_auth_config.py +++ b/src/python/vectorize_client/models/awss3_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -27,14 +27,13 @@ class AWSS3AuthConfig(BaseModel): """ Authentication configuration for Amazon S3 """ # noqa: E501 - name: StrictStr = Field(description="Name. Example: Enter a descriptive name") access_key: Annotated[str, Field(strict=True)] = Field(description="Access Key. Example: Enter Access Key", alias="access-key") secret_key: Annotated[str, Field(strict=True)] = Field(description="Secret Key. Example: Enter Secret Key", alias="secret-key") bucket_name: StrictStr = Field(description="Bucket Name. Example: Enter your S3 Bucket Name", alias="bucket-name") endpoint: Optional[StrictStr] = Field(default=None, description="Endpoint. Example: Enter Endpoint URL") region: Optional[StrictStr] = Field(default=None, description="Region. Example: Region Name") archiver: StrictBool = Field(description="Allow as archive destination") - __properties: ClassVar[List[str]] = ["name", "access-key", "secret-key", "bucket-name", "endpoint", "region", "archiver"] + __properties: ClassVar[List[str]] = ["access-key", "secret-key", "bucket-name", "endpoint", "region", "archiver"] @field_validator('access_key') def access_key_validate_regular_expression(cls, value): @@ -101,7 +100,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "name": obj.get("name"), "access-key": obj.get("access-key"), "secret-key": obj.get("secret-key"), "bucket-name": obj.get("bucket-name"), diff --git a/src/python/vectorize_client/models/awss3_config.py b/src/python/vectorize_client/models/awss3_config.py index 944f3d0..77fa269 100644 --- a/src/python/vectorize_client/models/awss3_config.py +++ b/src/python/vectorize_client/models/awss3_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -32,15 +32,15 @@ class AWSS3Config(BaseModel): recursive: Optional[StrictBool] = Field(default=None, description="Recursively scan all folders in the bucket") path_prefix: Optional[StrictStr] = Field(default=None, description="Path Prefix", alias="path-prefix") path_metadata_regex: Optional[StrictStr] = Field(default=None, description="Path Metadata Regex", alias="path-metadata-regex") - path_regex_group_names: Optional[StrictStr] = Field(default=None, description="Path Regex Group Names. Example: Enter Group Name", alias="path-regex-group-names") + path_regex_group_names: Optional[List[StrictStr]] = Field(default=None, description="Path Regex Group Names. Example: Enter Group Name", alias="path-regex-group-names") __properties: ClassVar[List[str]] = ["file-extensions", "idle-time", "recursive", "path-prefix", "path-metadata-regex", "path-regex-group-names"] @field_validator('file_extensions') def file_extensions_validate_enum(cls, value): """Validates the enum""" for i in value: - if i not in set(['pdf', 'doc,docx,gdoc,odt,rtf,epub', 'ppt,pptx,gslides', 'xls,xlsx,gsheets,ods', 'eml,msg', 'txt', 'html,htm', 'md', 'json', 'csv', 'jpg,jpeg,png,webp,svg,gif']): - raise ValueError("each list item must be one of ('pdf', 'doc,docx,gdoc,odt,rtf,epub', 'ppt,pptx,gslides', 'xls,xlsx,gsheets,ods', 'eml,msg', 'txt', 'html,htm', 'md', 'json', 'csv', 'jpg,jpeg,png,webp,svg,gif')") + if i not in set(['pdf', 'doc,docx,gdoc,odt,rtf,epub', 'ppt,pptx,gslides', 'xls,xlsx,gsheets,ods', 'eml,msg', 'txt', 'html,htm', 'md', 'jpg,jpeg,png,webp,svg,gif', 'json', 'csv']): + raise ValueError("each list item must be one of ('pdf', 'doc,docx,gdoc,odt,rtf,epub', 'ppt,pptx,gslides', 'xls,xlsx,gsheets,ods', 'eml,msg', 'txt', 'html,htm', 'md', 'jpg,jpeg,png,webp,svg,gif', 'json', 'csv')") return value model_config = ConfigDict( @@ -95,7 +95,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "file-extensions": obj.get("file-extensions"), - "idle-time": obj.get("idle-time") if obj.get("idle-time") is not None else 5, + "idle-time": obj.get("idle-time") if obj.get("idle-time") is not None else 30, "recursive": obj.get("recursive"), "path-prefix": obj.get("path-prefix"), "path-metadata-regex": obj.get("path-metadata-regex"), diff --git a/src/python/vectorize_client/models/azure_blob.py b/src/python/vectorize_client/models/azure_blob.py index 6e7b158..7ce4c99 100644 --- a/src/python/vectorize_client/models/azure_blob.py +++ b/src/python/vectorize_client/models/azure_blob.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator from typing import Any, ClassVar, Dict, List -from vectorize_client.models.azureblob_config import AZUREBLOBConfig +from vectorize_client.models.azureblob_auth_config import AZUREBLOBAuthConfig from typing import Optional, Set from typing_extensions import Self @@ -29,7 +29,7 @@ class AzureBlob(BaseModel): """ # noqa: E501 name: StrictStr = Field(description="Name of the connector") type: StrictStr = Field(description="Connector type (must be \"AZURE_BLOB\")") - config: AZUREBLOBConfig + config: AZUREBLOBAuthConfig __properties: ClassVar[List[str]] = ["name", "type", "config"] @field_validator('type') @@ -95,7 +95,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), "type": obj.get("type"), - "config": AZUREBLOBConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + "config": AZUREBLOBAuthConfig.from_dict(obj["config"]) if obj.get("config") is not None else None }) return _obj diff --git a/src/python/vectorize_client/models/azure_blob1.py b/src/python/vectorize_client/models/azure_blob1.py index 6763d1a..c2de8f8 100644 --- a/src/python/vectorize_client/models/azure_blob1.py +++ b/src/python/vectorize_client/models/azure_blob1.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from vectorize_client.models.azureblob_config import AZUREBLOBConfig +from vectorize_client.models.azureblob_auth_config import AZUREBLOBAuthConfig from typing import Optional, Set from typing_extensions import Self @@ -27,7 +27,7 @@ class AzureBlob1(BaseModel): """ AzureBlob1 """ # noqa: E501 - config: Optional[AZUREBLOBConfig] = None + config: Optional[AZUREBLOBAuthConfig] = None __properties: ClassVar[List[str]] = ["config"] model_config = ConfigDict( @@ -84,7 +84,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "config": AZUREBLOBConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + "config": AZUREBLOBAuthConfig.from_dict(obj["config"]) if obj.get("config") is not None else None }) return _obj diff --git a/src/python/vectorize_client/models/azureaisearch.py b/src/python/vectorize_client/models/azureaisearch.py index c4f61b7..56aee60 100644 --- a/src/python/vectorize_client/models/azureaisearch.py +++ b/src/python/vectorize_client/models/azureaisearch.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator from typing import Any, ClassVar, Dict, List -from vectorize_client.models.azureaisearch_config import AZUREAISEARCHConfig +from vectorize_client.models.azureaisearch_auth_config import AZUREAISEARCHAuthConfig from typing import Optional, Set from typing_extensions import Self @@ -29,7 +29,7 @@ class Azureaisearch(BaseModel): """ # noqa: E501 name: StrictStr = Field(description="Name of the connector") type: StrictStr = Field(description="Connector type (must be \"AZUREAISEARCH\")") - config: AZUREAISEARCHConfig + config: AZUREAISEARCHAuthConfig __properties: ClassVar[List[str]] = ["name", "type", "config"] @field_validator('type') @@ -95,7 +95,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), "type": obj.get("type"), - "config": AZUREAISEARCHConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + "config": AZUREAISEARCHAuthConfig.from_dict(obj["config"]) if obj.get("config") is not None else None }) return _obj diff --git a/src/python/vectorize_client/models/azureaisearch1.py b/src/python/vectorize_client/models/azureaisearch1.py index 302a1a6..99f9441 100644 --- a/src/python/vectorize_client/models/azureaisearch1.py +++ b/src/python/vectorize_client/models/azureaisearch1.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from vectorize_client.models.azureaisearch_config import AZUREAISEARCHConfig +from vectorize_client.models.azureaisearch_auth_config import AZUREAISEARCHAuthConfig from typing import Optional, Set from typing_extensions import Self @@ -27,7 +27,7 @@ class Azureaisearch1(BaseModel): """ Azureaisearch1 """ # noqa: E501 - config: Optional[AZUREAISEARCHConfig] = None + config: Optional[AZUREAISEARCHAuthConfig] = None __properties: ClassVar[List[str]] = ["config"] model_config = ConfigDict( @@ -84,7 +84,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "config": AZUREAISEARCHConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + "config": AZUREAISEARCHAuthConfig.from_dict(obj["config"]) if obj.get("config") is not None else None }) return _obj diff --git a/src/python/vectorize_client/models/azureaisearch_auth_config.py b/src/python/vectorize_client/models/azureaisearch_auth_config.py index f437bdc..e17bc52 100644 --- a/src/python/vectorize_client/models/azureaisearch_auth_config.py +++ b/src/python/vectorize_client/models/azureaisearch_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -27,10 +27,9 @@ class AZUREAISEARCHAuthConfig(BaseModel): """ Authentication configuration for Azure AI Search """ # noqa: E501 - name: StrictStr = Field(description="Name. Example: Enter a descriptive name for your Azure AI Search integration") service_name: StrictStr = Field(description="Azure AI Search Service Name. Example: Enter your Azure AI Search service name", alias="service-name") api_key: Annotated[str, Field(strict=True)] = Field(description="API Key. Example: Enter your API key", alias="api-key") - __properties: ClassVar[List[str]] = ["name", "service-name", "api-key"] + __properties: ClassVar[List[str]] = ["service-name", "api-key"] @field_validator('api_key') def api_key_validate_regular_expression(cls, value): @@ -90,7 +89,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "name": obj.get("name"), "service-name": obj.get("service-name"), "api-key": obj.get("api-key") }) diff --git a/src/python/vectorize_client/models/azureaisearch_config.py b/src/python/vectorize_client/models/azureaisearch_config.py index 77c4ba0..30bbea2 100644 --- a/src/python/vectorize_client/models/azureaisearch_config.py +++ b/src/python/vectorize_client/models/azureaisearch_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/azureblob_auth_config.py b/src/python/vectorize_client/models/azureblob_auth_config.py index bdad0ea..6031e37 100644 --- a/src/python/vectorize_client/models/azureblob_auth_config.py +++ b/src/python/vectorize_client/models/azureblob_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -26,12 +26,11 @@ class AZUREBLOBAuthConfig(BaseModel): """ Authentication configuration for Azure Blob Storage """ # noqa: E501 - name: StrictStr = Field(description="Name. Example: Enter a descriptive name") storage_account_name: StrictStr = Field(description="Storage Account Name. Example: Enter Storage Account Name", alias="storage-account-name") storage_account_key: SecretStr = Field(description="Storage Account Key. Example: Enter Storage Account Key", alias="storage-account-key") container: StrictStr = Field(description="Container. Example: Enter Container Name") endpoint: Optional[StrictStr] = Field(default=None, description="Endpoint. Example: Enter Endpoint URL") - __properties: ClassVar[List[str]] = ["name", "storage-account-name", "storage-account-key", "container", "endpoint"] + __properties: ClassVar[List[str]] = ["storage-account-name", "storage-account-key", "container", "endpoint"] model_config = ConfigDict( populate_by_name=True, @@ -84,7 +83,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "name": obj.get("name"), "storage-account-name": obj.get("storage-account-name"), "storage-account-key": obj.get("storage-account-key"), "container": obj.get("container"), diff --git a/src/python/vectorize_client/models/azureblob_config.py b/src/python/vectorize_client/models/azureblob_config.py index d8d495c..62557c8 100644 --- a/src/python/vectorize_client/models/azureblob_config.py +++ b/src/python/vectorize_client/models/azureblob_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -32,15 +32,15 @@ class AZUREBLOBConfig(BaseModel): recursive: Optional[StrictBool] = Field(default=None, description="Recursively scan all folders in the bucket") path_prefix: Optional[StrictStr] = Field(default=None, description="Path Prefix", alias="path-prefix") path_metadata_regex: Optional[StrictStr] = Field(default=None, description="Path Metadata Regex", alias="path-metadata-regex") - path_regex_group_names: Optional[StrictStr] = Field(default=None, description="Path Regex Group Names. Example: Enter Group Name", alias="path-regex-group-names") + path_regex_group_names: Optional[List[StrictStr]] = Field(default=None, description="Path Regex Group Names. Example: Enter Group Name", alias="path-regex-group-names") __properties: ClassVar[List[str]] = ["file-extensions", "idle-time", "recursive", "path-prefix", "path-metadata-regex", "path-regex-group-names"] @field_validator('file_extensions') def file_extensions_validate_enum(cls, value): """Validates the enum""" for i in value: - if i not in set(['pdf', 'doc,docx,gdoc,odt,rtf,epub', 'ppt,pptx,gslides', 'xls,xlsx,gsheets,ods', 'eml,msg', 'txt', 'html,htm', 'md', 'json', 'csv', 'jpg,jpeg,png,webp,svg,gif']): - raise ValueError("each list item must be one of ('pdf', 'doc,docx,gdoc,odt,rtf,epub', 'ppt,pptx,gslides', 'xls,xlsx,gsheets,ods', 'eml,msg', 'txt', 'html,htm', 'md', 'json', 'csv', 'jpg,jpeg,png,webp,svg,gif')") + if i not in set(['pdf', 'doc,docx,gdoc,odt,rtf,epub', 'ppt,pptx,gslides', 'xls,xlsx,gsheets,ods', 'eml,msg', 'txt', 'html,htm', 'md', 'jpg,jpeg,png,webp,svg,gif', 'json', 'csv']): + raise ValueError("each list item must be one of ('pdf', 'doc,docx,gdoc,odt,rtf,epub', 'ppt,pptx,gslides', 'xls,xlsx,gsheets,ods', 'eml,msg', 'txt', 'html,htm', 'md', 'jpg,jpeg,png,webp,svg,gif', 'json', 'csv')") return value model_config = ConfigDict( @@ -95,7 +95,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "file-extensions": obj.get("file-extensions"), - "idle-time": obj.get("idle-time") if obj.get("idle-time") is not None else 5, + "idle-time": obj.get("idle-time") if obj.get("idle-time") is not None else 30, "recursive": obj.get("recursive"), "path-prefix": obj.get("path-prefix"), "path-metadata-regex": obj.get("path-metadata-regex"), diff --git a/src/python/vectorize_client/models/bedrock.py b/src/python/vectorize_client/models/bedrock.py index 01346ca..47d6f90 100644 --- a/src/python/vectorize_client/models/bedrock.py +++ b/src/python/vectorize_client/models/bedrock.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/bedrock1.py b/src/python/vectorize_client/models/bedrock1.py index b818996..6775588 100644 --- a/src/python/vectorize_client/models/bedrock1.py +++ b/src/python/vectorize_client/models/bedrock1.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/bedrock_auth_config.py b/src/python/vectorize_client/models/bedrock_auth_config.py index 168b40a..9d53ae4 100644 --- a/src/python/vectorize_client/models/bedrock_auth_config.py +++ b/src/python/vectorize_client/models/bedrock_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -27,11 +27,10 @@ class BEDROCKAuthConfig(BaseModel): """ Authentication configuration for Amazon Bedrock """ # noqa: E501 - name: StrictStr = Field(description="Name. Example: Enter a descriptive name for your Amazon Bedrock integration") access_key: Annotated[str, Field(strict=True)] = Field(description="Access Key. Example: Enter your Amazon Bedrock Access Key", alias="access-key") key: Annotated[str, Field(strict=True)] = Field(description="Secret Key. Example: Enter your Amazon Bedrock Secret Key") region: StrictStr = Field(description="Region. Example: Region Name") - __properties: ClassVar[List[str]] = ["name", "access-key", "key", "region"] + __properties: ClassVar[List[str]] = ["access-key", "key", "region"] @field_validator('access_key') def access_key_validate_regular_expression(cls, value): @@ -98,7 +97,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "name": obj.get("name"), "access-key": obj.get("access-key"), "key": obj.get("key"), "region": obj.get("region") diff --git a/src/python/vectorize_client/models/capella.py b/src/python/vectorize_client/models/capella.py index 773a45c..c7edb7d 100644 --- a/src/python/vectorize_client/models/capella.py +++ b/src/python/vectorize_client/models/capella.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator from typing import Any, ClassVar, Dict, List -from vectorize_client.models.capella_config import CAPELLAConfig +from vectorize_client.models.capella_auth_config import CAPELLAAuthConfig from typing import Optional, Set from typing_extensions import Self @@ -29,7 +29,7 @@ class Capella(BaseModel): """ # noqa: E501 name: StrictStr = Field(description="Name of the connector") type: StrictStr = Field(description="Connector type (must be \"CAPELLA\")") - config: CAPELLAConfig + config: CAPELLAAuthConfig __properties: ClassVar[List[str]] = ["name", "type", "config"] @field_validator('type') @@ -95,7 +95,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), "type": obj.get("type"), - "config": CAPELLAConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + "config": CAPELLAAuthConfig.from_dict(obj["config"]) if obj.get("config") is not None else None }) return _obj diff --git a/src/python/vectorize_client/models/capella1.py b/src/python/vectorize_client/models/capella1.py index a8503a4..f80bc12 100644 --- a/src/python/vectorize_client/models/capella1.py +++ b/src/python/vectorize_client/models/capella1.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from vectorize_client.models.capella_config import CAPELLAConfig +from vectorize_client.models.capella_auth_config import CAPELLAAuthConfig from typing import Optional, Set from typing_extensions import Self @@ -27,7 +27,7 @@ class Capella1(BaseModel): """ Capella1 """ # noqa: E501 - config: Optional[CAPELLAConfig] = None + config: Optional[CAPELLAAuthConfig] = None __properties: ClassVar[List[str]] = ["config"] model_config = ConfigDict( @@ -84,7 +84,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "config": CAPELLAConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + "config": CAPELLAAuthConfig.from_dict(obj["config"]) if obj.get("config") is not None else None }) return _obj diff --git a/src/python/vectorize_client/models/capella_auth_config.py b/src/python/vectorize_client/models/capella_auth_config.py index 91dc22f..2c27c12 100644 --- a/src/python/vectorize_client/models/capella_auth_config.py +++ b/src/python/vectorize_client/models/capella_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -26,11 +26,10 @@ class CAPELLAAuthConfig(BaseModel): """ Authentication configuration for Couchbase Capella """ # noqa: E501 - name: StrictStr = Field(description="Name. Example: Enter a descriptive name for your Capella integration") username: StrictStr = Field(description="Cluster Access Name. Example: Enter your cluster access name") password: SecretStr = Field(description="Cluster Access Password. Example: Enter your cluster access password") connection_string: StrictStr = Field(description="Connection String. Example: Enter your connection string", alias="connection-string") - __properties: ClassVar[List[str]] = ["name", "username", "password", "connection-string"] + __properties: ClassVar[List[str]] = ["username", "password", "connection-string"] model_config = ConfigDict( populate_by_name=True, @@ -83,7 +82,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "name": obj.get("name"), "username": obj.get("username"), "password": obj.get("password"), "connection-string": obj.get("connection-string") diff --git a/src/python/vectorize_client/models/capella_config.py b/src/python/vectorize_client/models/capella_config.py index f0db12b..0b8ccbd 100644 --- a/src/python/vectorize_client/models/capella_config.py +++ b/src/python/vectorize_client/models/capella_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/confluence.py b/src/python/vectorize_client/models/confluence.py index 7f0faf0..76979c8 100644 --- a/src/python/vectorize_client/models/confluence.py +++ b/src/python/vectorize_client/models/confluence.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator from typing import Any, ClassVar, Dict, List -from vectorize_client.models.confluence_config import CONFLUENCEConfig +from vectorize_client.models.confluence_auth_config import CONFLUENCEAuthConfig from typing import Optional, Set from typing_extensions import Self @@ -29,7 +29,7 @@ class Confluence(BaseModel): """ # noqa: E501 name: StrictStr = Field(description="Name of the connector") type: StrictStr = Field(description="Connector type (must be \"CONFLUENCE\")") - config: CONFLUENCEConfig + config: CONFLUENCEAuthConfig __properties: ClassVar[List[str]] = ["name", "type", "config"] @field_validator('type') @@ -95,7 +95,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), "type": obj.get("type"), - "config": CONFLUENCEConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + "config": CONFLUENCEAuthConfig.from_dict(obj["config"]) if obj.get("config") is not None else None }) return _obj diff --git a/src/python/vectorize_client/models/confluence1.py b/src/python/vectorize_client/models/confluence1.py index ae7cb7f..8389197 100644 --- a/src/python/vectorize_client/models/confluence1.py +++ b/src/python/vectorize_client/models/confluence1.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from vectorize_client.models.confluence_config import CONFLUENCEConfig +from vectorize_client.models.confluence_auth_config import CONFLUENCEAuthConfig from typing import Optional, Set from typing_extensions import Self @@ -27,7 +27,7 @@ class Confluence1(BaseModel): """ Confluence1 """ # noqa: E501 - config: Optional[CONFLUENCEConfig] = None + config: Optional[CONFLUENCEAuthConfig] = None __properties: ClassVar[List[str]] = ["config"] model_config = ConfigDict( @@ -84,7 +84,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "config": CONFLUENCEConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + "config": CONFLUENCEAuthConfig.from_dict(obj["config"]) if obj.get("config") is not None else None }) return _obj diff --git a/src/python/vectorize_client/models/confluence_auth_config.py b/src/python/vectorize_client/models/confluence_auth_config.py index ae07705..c59de0b 100644 --- a/src/python/vectorize_client/models/confluence_auth_config.py +++ b/src/python/vectorize_client/models/confluence_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -27,11 +27,10 @@ class CONFLUENCEAuthConfig(BaseModel): """ Authentication configuration for Confluence """ # noqa: E501 - name: StrictStr = Field(description="Name. Example: Enter a descriptive name") username: StrictStr = Field(description="Username. Example: Enter your Confluence username") api_token: Annotated[str, Field(strict=True)] = Field(description="API Token. Example: Enter your Confluence API token", alias="api-token") domain: StrictStr = Field(description="Domain. Example: Enter your Confluence domain (e.g. my-domain.atlassian.net or confluence..com)") - __properties: ClassVar[List[str]] = ["name", "username", "api-token", "domain"] + __properties: ClassVar[List[str]] = ["username", "api-token", "domain"] @field_validator('api_token') def api_token_validate_regular_expression(cls, value): @@ -91,7 +90,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "name": obj.get("name"), "username": obj.get("username"), "api-token": obj.get("api-token"), "domain": obj.get("domain") diff --git a/src/python/vectorize_client/models/confluence_config.py b/src/python/vectorize_client/models/confluence_config.py index 499ef51..87929e3 100644 --- a/src/python/vectorize_client/models/confluence_config.py +++ b/src/python/vectorize_client/models/confluence_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -26,8 +26,8 @@ class CONFLUENCEConfig(BaseModel): """ Configuration for Confluence connector """ # noqa: E501 - spaces: StrictStr = Field(description="Spaces. Example: Spaces to include (name, key or id)") - root_parents: Optional[StrictStr] = Field(default=None, description="Root Parents. Example: Enter root parent pages", alias="root-parents") + spaces: List[StrictStr] = Field(description="Spaces. Example: Spaces to include (name, key or id)") + root_parents: Optional[List[StrictStr]] = Field(default=None, description="Root Parents. Example: Enter root parent pages", alias="root-parents") __properties: ClassVar[List[str]] = ["spaces", "root-parents"] model_config = ConfigDict( diff --git a/src/python/vectorize_client/models/create_ai_platform_connector_request.py b/src/python/vectorize_client/models/create_ai_platform_connector_request.py index 64d8cdd..a053dad 100644 --- a/src/python/vectorize_client/models/create_ai_platform_connector_request.py +++ b/src/python/vectorize_client/models/create_ai_platform_connector_request.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. 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 3b64e50..dcf55b7 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 @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/create_destination_connector_request.py b/src/python/vectorize_client/models/create_destination_connector_request.py index 9f3c936..c35e303 100644 --- a/src/python/vectorize_client/models/create_destination_connector_request.py +++ b/src/python/vectorize_client/models/create_destination_connector_request.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. 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 6e0fbd5..f25d5bc 100644 --- a/src/python/vectorize_client/models/create_destination_connector_response.py +++ b/src/python/vectorize_client/models/create_destination_connector_response.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/create_pipeline_response.py b/src/python/vectorize_client/models/create_pipeline_response.py index 46d5931..bb450ad 100644 --- a/src/python/vectorize_client/models/create_pipeline_response.py +++ b/src/python/vectorize_client/models/create_pipeline_response.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/create_pipeline_response_data.py b/src/python/vectorize_client/models/create_pipeline_response_data.py index 638b54e..a03801a 100644 --- a/src/python/vectorize_client/models/create_pipeline_response_data.py +++ b/src/python/vectorize_client/models/create_pipeline_response_data.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/create_source_connector_request.py b/src/python/vectorize_client/models/create_source_connector_request.py index 055ff0a..570b912 100644 --- a/src/python/vectorize_client/models/create_source_connector_request.py +++ b/src/python/vectorize_client/models/create_source_connector_request.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. 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 99d0ff4..cadff15 100644 --- a/src/python/vectorize_client/models/create_source_connector_response.py +++ b/src/python/vectorize_client/models/create_source_connector_response.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/created_ai_platform_connector.py b/src/python/vectorize_client/models/created_ai_platform_connector.py index dae3113..18d505a 100644 --- a/src/python/vectorize_client/models/created_ai_platform_connector.py +++ b/src/python/vectorize_client/models/created_ai_platform_connector.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/created_destination_connector.py b/src/python/vectorize_client/models/created_destination_connector.py index bf8a9fe..b86688c 100644 --- a/src/python/vectorize_client/models/created_destination_connector.py +++ b/src/python/vectorize_client/models/created_destination_connector.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/created_source_connector.py b/src/python/vectorize_client/models/created_source_connector.py index 5793031..0a599e4 100644 --- a/src/python/vectorize_client/models/created_source_connector.py +++ b/src/python/vectorize_client/models/created_source_connector.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/datastax.py b/src/python/vectorize_client/models/datastax.py index 5b77706..f8d29ed 100644 --- a/src/python/vectorize_client/models/datastax.py +++ b/src/python/vectorize_client/models/datastax.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator from typing import Any, ClassVar, Dict, List -from vectorize_client.models.datastax_config import DATASTAXConfig +from vectorize_client.models.datastax_auth_config import DATASTAXAuthConfig from typing import Optional, Set from typing_extensions import Self @@ -29,7 +29,7 @@ class Datastax(BaseModel): """ # noqa: E501 name: StrictStr = Field(description="Name of the connector") type: StrictStr = Field(description="Connector type (must be \"DATASTAX\")") - config: DATASTAXConfig + config: DATASTAXAuthConfig __properties: ClassVar[List[str]] = ["name", "type", "config"] @field_validator('type') @@ -95,7 +95,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), "type": obj.get("type"), - "config": DATASTAXConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + "config": DATASTAXAuthConfig.from_dict(obj["config"]) if obj.get("config") is not None else None }) return _obj diff --git a/src/python/vectorize_client/models/datastax1.py b/src/python/vectorize_client/models/datastax1.py index 7723a32..6065d10 100644 --- a/src/python/vectorize_client/models/datastax1.py +++ b/src/python/vectorize_client/models/datastax1.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from vectorize_client.models.datastax_config import DATASTAXConfig +from vectorize_client.models.datastax_auth_config import DATASTAXAuthConfig from typing import Optional, Set from typing_extensions import Self @@ -27,7 +27,7 @@ class Datastax1(BaseModel): """ Datastax1 """ # noqa: E501 - config: Optional[DATASTAXConfig] = None + config: Optional[DATASTAXAuthConfig] = None __properties: ClassVar[List[str]] = ["config"] model_config = ConfigDict( @@ -84,7 +84,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "config": DATASTAXConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + "config": DATASTAXAuthConfig.from_dict(obj["config"]) if obj.get("config") is not None else None }) return _obj diff --git a/src/python/vectorize_client/models/datastax_auth_config.py b/src/python/vectorize_client/models/datastax_auth_config.py index 34e0469..32d1e05 100644 --- a/src/python/vectorize_client/models/datastax_auth_config.py +++ b/src/python/vectorize_client/models/datastax_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -27,10 +27,9 @@ class DATASTAXAuthConfig(BaseModel): """ Authentication configuration for DataStax Astra """ # noqa: E501 - name: StrictStr = Field(description="Name. Example: Enter a descriptive name for your DataStax integration") endpoint_secret: StrictStr = Field(description="API Endpoint. Example: Enter your API endpoint") token: Annotated[str, Field(strict=True)] = Field(description="Application Token. Example: Enter your application token") - __properties: ClassVar[List[str]] = ["name", "endpoint_secret", "token"] + __properties: ClassVar[List[str]] = ["endpoint_secret", "token"] @field_validator('token') def token_validate_regular_expression(cls, value): @@ -90,7 +89,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "name": obj.get("name"), "endpoint_secret": obj.get("endpoint_secret"), "token": obj.get("token") }) diff --git a/src/python/vectorize_client/models/datastax_config.py b/src/python/vectorize_client/models/datastax_config.py index 7f35d47..4af1edb 100644 --- a/src/python/vectorize_client/models/datastax_config.py +++ b/src/python/vectorize_client/models/datastax_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/deep_research_result.py b/src/python/vectorize_client/models/deep_research_result.py index 088a020..d99a554 100644 --- a/src/python/vectorize_client/models/deep_research_result.py +++ b/src/python/vectorize_client/models/deep_research_result.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/delete_ai_platform_connector_response.py b/src/python/vectorize_client/models/delete_ai_platform_connector_response.py index 6436100..3986a7c 100644 --- a/src/python/vectorize_client/models/delete_ai_platform_connector_response.py +++ b/src/python/vectorize_client/models/delete_ai_platform_connector_response.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/delete_destination_connector_response.py b/src/python/vectorize_client/models/delete_destination_connector_response.py index e26c3f8..f32e03a 100644 --- a/src/python/vectorize_client/models/delete_destination_connector_response.py +++ b/src/python/vectorize_client/models/delete_destination_connector_response.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/delete_file_response.py b/src/python/vectorize_client/models/delete_file_response.py index 9c00470..a39bff5 100644 --- a/src/python/vectorize_client/models/delete_file_response.py +++ b/src/python/vectorize_client/models/delete_file_response.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/delete_pipeline_response.py b/src/python/vectorize_client/models/delete_pipeline_response.py index 14bebfa..3175fcb 100644 --- a/src/python/vectorize_client/models/delete_pipeline_response.py +++ b/src/python/vectorize_client/models/delete_pipeline_response.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/delete_source_connector_response.py b/src/python/vectorize_client/models/delete_source_connector_response.py index 185c2bc..5cbbc5b 100644 --- a/src/python/vectorize_client/models/delete_source_connector_response.py +++ b/src/python/vectorize_client/models/delete_source_connector_response.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/destination_connector.py b/src/python/vectorize_client/models/destination_connector.py index cb90251..ccf76d0 100644 --- a/src/python/vectorize_client/models/destination_connector.py +++ b/src/python/vectorize_client/models/destination_connector.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/destination_connector_input.py b/src/python/vectorize_client/models/destination_connector_input.py index ca61e7c..c158af1 100644 --- a/src/python/vectorize_client/models/destination_connector_input.py +++ b/src/python/vectorize_client/models/destination_connector_input.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/destination_connector_input_config.py b/src/python/vectorize_client/models/destination_connector_input_config.py index 94450f5..7ae3b6b 100644 --- a/src/python/vectorize_client/models/destination_connector_input_config.py +++ b/src/python/vectorize_client/models/destination_connector_input_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/destination_connector_type.py b/src/python/vectorize_client/models/destination_connector_type.py index 685396b..d0aa204 100644 --- a/src/python/vectorize_client/models/destination_connector_type.py +++ b/src/python/vectorize_client/models/destination_connector_type.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/destination_connector_type_for_pipeline.py b/src/python/vectorize_client/models/destination_connector_type_for_pipeline.py index 985c1af..fc8585b 100644 --- a/src/python/vectorize_client/models/destination_connector_type_for_pipeline.py +++ b/src/python/vectorize_client/models/destination_connector_type_for_pipeline.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/discord.py b/src/python/vectorize_client/models/discord.py index 7ad3a52..b62d031 100644 --- a/src/python/vectorize_client/models/discord.py +++ b/src/python/vectorize_client/models/discord.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator from typing import Any, ClassVar, Dict, List -from vectorize_client.models.discord_config import DISCORDConfig +from vectorize_client.models.discord_auth_config import DISCORDAuthConfig from typing import Optional, Set from typing_extensions import Self @@ -29,7 +29,7 @@ class Discord(BaseModel): """ # noqa: E501 name: StrictStr = Field(description="Name of the connector") type: StrictStr = Field(description="Connector type (must be \"DISCORD\")") - config: DISCORDConfig + config: DISCORDAuthConfig __properties: ClassVar[List[str]] = ["name", "type", "config"] @field_validator('type') @@ -95,7 +95,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), "type": obj.get("type"), - "config": DISCORDConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + "config": DISCORDAuthConfig.from_dict(obj["config"]) if obj.get("config") is not None else None }) return _obj diff --git a/src/python/vectorize_client/models/discord1.py b/src/python/vectorize_client/models/discord1.py index 26b463a..1ffb8c1 100644 --- a/src/python/vectorize_client/models/discord1.py +++ b/src/python/vectorize_client/models/discord1.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from vectorize_client.models.discord_config import DISCORDConfig +from vectorize_client.models.discord_auth_config import DISCORDAuthConfig from typing import Optional, Set from typing_extensions import Self @@ -27,7 +27,7 @@ class Discord1(BaseModel): """ Discord1 """ # noqa: E501 - config: Optional[DISCORDConfig] = None + config: Optional[DISCORDAuthConfig] = None __properties: ClassVar[List[str]] = ["config"] model_config = ConfigDict( @@ -84,7 +84,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "config": DISCORDConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + "config": DISCORDAuthConfig.from_dict(obj["config"]) if obj.get("config") is not None else None }) return _obj diff --git a/src/python/vectorize_client/models/discord_auth_config.py b/src/python/vectorize_client/models/discord_auth_config.py index 22e3aee..1eb9193 100644 --- a/src/python/vectorize_client/models/discord_auth_config.py +++ b/src/python/vectorize_client/models/discord_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -27,11 +27,10 @@ class DISCORDAuthConfig(BaseModel): """ Authentication configuration for Discord """ # noqa: E501 - name: StrictStr = Field(description="Name. Example: Enter a descriptive name") server_id: StrictStr = Field(description="Server ID. Example: Enter Server ID", alias="server-id") bot_token: Annotated[str, Field(strict=True)] = Field(description="Bot token. Example: Enter Token", alias="bot-token") - channel_ids: StrictStr = Field(description="Channel ID. Example: Enter channel ID", alias="channel-ids") - __properties: ClassVar[List[str]] = ["name", "server-id", "bot-token", "channel-ids"] + channel_ids: List[StrictStr] = Field(description="Channel ID. Example: Enter channel ID", alias="channel-ids") + __properties: ClassVar[List[str]] = ["server-id", "bot-token", "channel-ids"] @field_validator('bot_token') def bot_token_validate_regular_expression(cls, value): @@ -91,7 +90,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "name": obj.get("name"), "server-id": obj.get("server-id"), "bot-token": obj.get("bot-token"), "channel-ids": obj.get("channel-ids") diff --git a/src/python/vectorize_client/models/discord_config.py b/src/python/vectorize_client/models/discord_config.py index 85da264..e8179a9 100644 --- a/src/python/vectorize_client/models/discord_config.py +++ b/src/python/vectorize_client/models/discord_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -27,9 +27,9 @@ class DISCORDConfig(BaseModel): """ Configuration for Discord connector """ # noqa: E501 - emoji: Optional[StrictStr] = Field(default=None, description="Emoji Filter. Example: Enter custom emoji filter name") - author: Optional[StrictStr] = Field(default=None, description="Author Filter. Example: Enter author name") - ignore_author: Optional[StrictStr] = Field(default=None, description="Ignore Author Filter. Example: Enter ignore author name", alias="ignore-author") + emoji: Optional[List[StrictStr]] = Field(default=None, description="Emoji Filter. Example: Enter custom emoji filter name") + author: Optional[List[StrictStr]] = Field(default=None, description="Author Filter. Example: Enter author name") + ignore_author: Optional[List[StrictStr]] = Field(default=None, description="Ignore Author Filter. Example: Enter ignore author name", alias="ignore-author") limit: Optional[Union[Annotated[float, Field(strict=True, ge=1)], Annotated[int, Field(strict=True, ge=1)]]] = Field(default=10000, description="Limit. Example: Enter limit") thread_message_inclusion: Optional[StrictStr] = Field(default='ALL', description="Thread Message Inclusion", alias="thread-message-inclusion") filter_logic: Optional[StrictStr] = Field(default='AND', description="Filter Logic", alias="filter-logic") diff --git a/src/python/vectorize_client/models/document.py b/src/python/vectorize_client/models/document.py index 9c971ca..a897978 100644 --- a/src/python/vectorize_client/models/document.py +++ b/src/python/vectorize_client/models/document.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/dropbox.py b/src/python/vectorize_client/models/dropbox.py index 5efc91b..9b043d8 100644 --- a/src/python/vectorize_client/models/dropbox.py +++ b/src/python/vectorize_client/models/dropbox.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from vectorize_client.models.dropbox_config import DROPBOXConfig +from vectorize_client.models.dropbox_auth_config import DROPBOXAuthConfig from typing import Optional, Set from typing_extensions import Self @@ -27,7 +27,7 @@ class Dropbox(BaseModel): """ Dropbox """ # noqa: E501 - config: Optional[DROPBOXConfig] = None + config: Optional[DROPBOXAuthConfig] = None __properties: ClassVar[List[str]] = ["config"] model_config = ConfigDict( @@ -84,7 +84,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "config": DROPBOXConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + "config": DROPBOXAuthConfig.from_dict(obj["config"]) if obj.get("config") is not None else None }) return _obj diff --git a/src/python/vectorize_client/models/dropbox_auth_config.py b/src/python/vectorize_client/models/dropbox_auth_config.py index f955790..2c957d3 100644 --- a/src/python/vectorize_client/models/dropbox_auth_config.py +++ b/src/python/vectorize_client/models/dropbox_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from pydantic import BaseModel, ConfigDict, Field, field_validator from typing import Any, ClassVar, Dict, List from typing_extensions import Annotated from typing import Optional, Set @@ -27,9 +27,8 @@ class DROPBOXAuthConfig(BaseModel): """ Authentication configuration for Dropbox (Legacy) """ # noqa: E501 - name: StrictStr = Field(description="Name. Example: Enter a descriptive name") refresh_token: Annotated[str, Field(strict=True)] = Field(description="Connect Dropbox to Vectorize. Example: Authorize", alias="refresh-token") - __properties: ClassVar[List[str]] = ["name", "refresh-token"] + __properties: ClassVar[List[str]] = ["refresh-token"] @field_validator('refresh_token') def refresh_token_validate_regular_expression(cls, value): @@ -89,7 +88,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "name": obj.get("name"), "refresh-token": obj.get("refresh-token") }) return _obj diff --git a/src/python/vectorize_client/models/dropbox_config.py b/src/python/vectorize_client/models/dropbox_config.py index 0c4033e..9710330 100644 --- a/src/python/vectorize_client/models/dropbox_config.py +++ b/src/python/vectorize_client/models/dropbox_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -17,9 +17,8 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, field_validator +from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self @@ -27,19 +26,9 @@ class DROPBOXConfig(BaseModel): """ Configuration for Dropbox (Legacy) connector """ # noqa: E501 - path_prefix: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="Read from these folders (optional). Example: Enter Path: /exampleFolder/subFolder", alias="path-prefix") + path_prefix: Optional[List[StrictStr]] = Field(default=None, description="Read from these folders (optional). Example: Enter Path: /exampleFolder/subFolder", alias="path-prefix") __properties: ClassVar[List[str]] = ["path-prefix"] - @field_validator('path_prefix') - def path_prefix_validate_regular_expression(cls, value): - """Validates the regular expression""" - if value is None: - return value - - if not re.match(r"^\/.*$", value): - raise ValueError(r"must validate the regular expression /^\/.*$/") - return value - model_config = ConfigDict( populate_by_name=True, validate_assignment=True, diff --git a/src/python/vectorize_client/models/dropbox_oauth.py b/src/python/vectorize_client/models/dropbox_oauth.py index 1eca6d8..9056d7e 100644 --- a/src/python/vectorize_client/models/dropbox_oauth.py +++ b/src/python/vectorize_client/models/dropbox_oauth.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/dropbox_oauth_multi.py b/src/python/vectorize_client/models/dropbox_oauth_multi.py index 438f27c..3dbdd33 100644 --- a/src/python/vectorize_client/models/dropbox_oauth_multi.py +++ b/src/python/vectorize_client/models/dropbox_oauth_multi.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/dropbox_oauth_multi_custom.py b/src/python/vectorize_client/models/dropbox_oauth_multi_custom.py index c4775b0..ef75c5a 100644 --- a/src/python/vectorize_client/models/dropbox_oauth_multi_custom.py +++ b/src/python/vectorize_client/models/dropbox_oauth_multi_custom.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/dropboxoauth_auth_config.py b/src/python/vectorize_client/models/dropboxoauth_auth_config.py index 078c8ce..19cb4fc 100644 --- a/src/python/vectorize_client/models/dropboxoauth_auth_config.py +++ b/src/python/vectorize_client/models/dropboxoauth_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -26,12 +26,11 @@ class DROPBOXOAUTHAuthConfig(BaseModel): """ Authentication configuration for Dropbox OAuth """ # noqa: E501 - name: StrictStr = Field(description="Name. Example: Enter a descriptive name") authorized_user: Optional[StrictStr] = Field(default=None, description="Authorized User", alias="authorized-user") selection_details: StrictStr = Field(description="Connect Dropbox to Vectorize. Example: Authorize", alias="selection-details") edited_users: Optional[Dict[str, Any]] = Field(default=None, alias="editedUsers") reconnect_users: Optional[Dict[str, Any]] = Field(default=None, alias="reconnectUsers") - __properties: ClassVar[List[str]] = ["name", "authorized-user", "selection-details", "editedUsers", "reconnectUsers"] + __properties: ClassVar[List[str]] = ["authorized-user", "selection-details", "editedUsers", "reconnectUsers"] model_config = ConfigDict( populate_by_name=True, @@ -84,7 +83,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "name": obj.get("name"), "authorized-user": obj.get("authorized-user"), "selection-details": obj.get("selection-details"), "editedUsers": obj.get("editedUsers"), diff --git a/src/python/vectorize_client/models/dropboxoauthmulti_auth_config.py b/src/python/vectorize_client/models/dropboxoauthmulti_auth_config.py index f78015f..dd846e7 100644 --- a/src/python/vectorize_client/models/dropboxoauthmulti_auth_config.py +++ b/src/python/vectorize_client/models/dropboxoauthmulti_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -26,11 +26,10 @@ class DROPBOXOAUTHMULTIAuthConfig(BaseModel): """ Authentication configuration for Dropbox Multi-User (Vectorize) """ # noqa: E501 - name: StrictStr = Field(description="Name. Example: Enter a descriptive name") - authorized_users: Optional[StrictStr] = Field(default=None, description="Authorized Users", alias="authorized-users") + authorized_users: Optional[List[StrictStr]] = Field(default=None, description="Authorized Users", alias="authorized-users") edited_users: Optional[Dict[str, Any]] = Field(default=None, alias="editedUsers") deleted_users: Optional[Dict[str, Any]] = Field(default=None, alias="deletedUsers") - __properties: ClassVar[List[str]] = ["name", "authorized-users", "editedUsers", "deletedUsers"] + __properties: ClassVar[List[str]] = ["authorized-users", "editedUsers", "deletedUsers"] model_config = ConfigDict( populate_by_name=True, @@ -83,7 +82,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "name": obj.get("name"), "authorized-users": obj.get("authorized-users"), "editedUsers": obj.get("editedUsers"), "deletedUsers": obj.get("deletedUsers") diff --git a/src/python/vectorize_client/models/dropboxoauthmulticustom_auth_config.py b/src/python/vectorize_client/models/dropboxoauthmulticustom_auth_config.py index a81f35e..90dc6ca 100644 --- a/src/python/vectorize_client/models/dropboxoauthmulticustom_auth_config.py +++ b/src/python/vectorize_client/models/dropboxoauthmulticustom_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -26,13 +26,12 @@ class DROPBOXOAUTHMULTICUSTOMAuthConfig(BaseModel): """ Authentication configuration for Dropbox Multi-User (White Label) """ # noqa: E501 - name: StrictStr = Field(description="Name. Example: Enter a descriptive name") app_key: SecretStr = Field(description="Dropbox App Key. Example: Enter App Key", alias="app-key") app_secret: SecretStr = Field(description="Dropbox App Secret. Example: Enter App Secret", alias="app-secret") - authorized_users: Optional[StrictStr] = Field(default=None, description="Authorized Users", alias="authorized-users") + authorized_users: Optional[List[StrictStr]] = Field(default=None, description="Authorized Users", alias="authorized-users") edited_users: Optional[Dict[str, Any]] = Field(default=None, alias="editedUsers") deleted_users: Optional[Dict[str, Any]] = Field(default=None, alias="deletedUsers") - __properties: ClassVar[List[str]] = ["name", "app-key", "app-secret", "authorized-users", "editedUsers", "deletedUsers"] + __properties: ClassVar[List[str]] = ["app-key", "app-secret", "authorized-users", "editedUsers", "deletedUsers"] model_config = ConfigDict( populate_by_name=True, @@ -85,7 +84,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "name": obj.get("name"), "app-key": obj.get("app-key"), "app-secret": obj.get("app-secret"), "authorized-users": obj.get("authorized-users"), diff --git a/src/python/vectorize_client/models/elastic.py b/src/python/vectorize_client/models/elastic.py index 5ca71b0..07ffe79 100644 --- a/src/python/vectorize_client/models/elastic.py +++ b/src/python/vectorize_client/models/elastic.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator from typing import Any, ClassVar, Dict, List -from vectorize_client.models.elastic_config import ELASTICConfig +from vectorize_client.models.elastic_auth_config import ELASTICAuthConfig from typing import Optional, Set from typing_extensions import Self @@ -29,7 +29,7 @@ class Elastic(BaseModel): """ # noqa: E501 name: StrictStr = Field(description="Name of the connector") type: StrictStr = Field(description="Connector type (must be \"ELASTIC\")") - config: ELASTICConfig + config: ELASTICAuthConfig __properties: ClassVar[List[str]] = ["name", "type", "config"] @field_validator('type') @@ -95,7 +95,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), "type": obj.get("type"), - "config": ELASTICConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + "config": ELASTICAuthConfig.from_dict(obj["config"]) if obj.get("config") is not None else None }) return _obj diff --git a/src/python/vectorize_client/models/elastic1.py b/src/python/vectorize_client/models/elastic1.py index ba08563..0094631 100644 --- a/src/python/vectorize_client/models/elastic1.py +++ b/src/python/vectorize_client/models/elastic1.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from vectorize_client.models.elastic_config import ELASTICConfig +from vectorize_client.models.elastic_auth_config import ELASTICAuthConfig from typing import Optional, Set from typing_extensions import Self @@ -27,7 +27,7 @@ class Elastic1(BaseModel): """ Elastic1 """ # noqa: E501 - config: Optional[ELASTICConfig] = None + config: Optional[ELASTICAuthConfig] = None __properties: ClassVar[List[str]] = ["config"] model_config = ConfigDict( @@ -84,7 +84,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "config": ELASTICConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + "config": ELASTICAuthConfig.from_dict(obj["config"]) if obj.get("config") is not None else None }) return _obj diff --git a/src/python/vectorize_client/models/elastic_auth_config.py b/src/python/vectorize_client/models/elastic_auth_config.py index 8b40732..1e0a426 100644 --- a/src/python/vectorize_client/models/elastic_auth_config.py +++ b/src/python/vectorize_client/models/elastic_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -27,11 +27,10 @@ class ELASTICAuthConfig(BaseModel): """ Authentication configuration for Elasticsearch """ # noqa: E501 - name: StrictStr = Field(description="Name. Example: Enter a descriptive name for your Elastic integration") host: StrictStr = Field(description="Host. Example: Enter your host") port: StrictStr = Field(description="Port. Example: Enter your port") api_key: Annotated[str, Field(strict=True)] = Field(description="API Key. Example: Enter your API key", alias="api-key") - __properties: ClassVar[List[str]] = ["name", "host", "port", "api-key"] + __properties: ClassVar[List[str]] = ["host", "port", "api-key"] @field_validator('api_key') def api_key_validate_regular_expression(cls, value): @@ -91,7 +90,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "name": obj.get("name"), "host": obj.get("host"), "port": obj.get("port"), "api-key": obj.get("api-key") diff --git a/src/python/vectorize_client/models/elastic_config.py b/src/python/vectorize_client/models/elastic_config.py index 4689718..68834ff 100644 --- a/src/python/vectorize_client/models/elastic_config.py +++ b/src/python/vectorize_client/models/elastic_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/extraction_chunking_strategy.py b/src/python/vectorize_client/models/extraction_chunking_strategy.py index f584f07..2a97986 100644 --- a/src/python/vectorize_client/models/extraction_chunking_strategy.py +++ b/src/python/vectorize_client/models/extraction_chunking_strategy.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/extraction_result.py b/src/python/vectorize_client/models/extraction_result.py index 650a1b3..8f40ae6 100644 --- a/src/python/vectorize_client/models/extraction_result.py +++ b/src/python/vectorize_client/models/extraction_result.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/extraction_result_response.py b/src/python/vectorize_client/models/extraction_result_response.py index ab3378a..5ce7acf 100644 --- a/src/python/vectorize_client/models/extraction_result_response.py +++ b/src/python/vectorize_client/models/extraction_result_response.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/extraction_type.py b/src/python/vectorize_client/models/extraction_type.py index 7c4c6bc..4818e10 100644 --- a/src/python/vectorize_client/models/extraction_type.py +++ b/src/python/vectorize_client/models/extraction_type.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/file_upload.py b/src/python/vectorize_client/models/file_upload.py index 2e629cb..8258080 100644 --- a/src/python/vectorize_client/models/file_upload.py +++ b/src/python/vectorize_client/models/file_upload.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/file_upload1.py b/src/python/vectorize_client/models/file_upload1.py index dfb3e79..1a2ca6d 100644 --- a/src/python/vectorize_client/models/file_upload1.py +++ b/src/python/vectorize_client/models/file_upload1.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/fileupload_auth_config.py b/src/python/vectorize_client/models/fileupload_auth_config.py index 15f493b..ff9497f 100644 --- a/src/python/vectorize_client/models/fileupload_auth_config.py +++ b/src/python/vectorize_client/models/fileupload_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -26,10 +26,9 @@ class FILEUPLOADAuthConfig(BaseModel): """ Authentication configuration for File Upload """ # noqa: E501 - name: StrictStr = Field(description="Name. Example: Enter a descriptive name for this connector") path_prefix: Optional[StrictStr] = Field(default=None, description="Path Prefix", alias="path-prefix") files: Optional[List[StrictStr]] = Field(default=None, description="Choose files. Files uploaded to this connector can be used in pipelines to vectorize their contents. Note: files with the same name will be overwritten.") - __properties: ClassVar[List[str]] = ["name", "path-prefix", "files"] + __properties: ClassVar[List[str]] = ["path-prefix", "files"] model_config = ConfigDict( populate_by_name=True, @@ -82,7 +81,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "name": obj.get("name"), "path-prefix": obj.get("path-prefix"), "files": obj.get("files") }) diff --git a/src/python/vectorize_client/models/firecrawl.py b/src/python/vectorize_client/models/firecrawl.py index 6d8bfcf..8db822e 100644 --- a/src/python/vectorize_client/models/firecrawl.py +++ b/src/python/vectorize_client/models/firecrawl.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator from typing import Any, ClassVar, Dict, List -from vectorize_client.models.firecrawl_config import FIRECRAWLConfig +from vectorize_client.models.firecrawl_auth_config import FIRECRAWLAuthConfig from typing import Optional, Set from typing_extensions import Self @@ -29,7 +29,7 @@ class Firecrawl(BaseModel): """ # noqa: E501 name: StrictStr = Field(description="Name of the connector") type: StrictStr = Field(description="Connector type (must be \"FIRECRAWL\")") - config: FIRECRAWLConfig + config: FIRECRAWLAuthConfig __properties: ClassVar[List[str]] = ["name", "type", "config"] @field_validator('type') @@ -95,7 +95,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), "type": obj.get("type"), - "config": FIRECRAWLConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + "config": FIRECRAWLAuthConfig.from_dict(obj["config"]) if obj.get("config") is not None else None }) return _obj diff --git a/src/python/vectorize_client/models/firecrawl1.py b/src/python/vectorize_client/models/firecrawl1.py index 1df5ce6..bf95f4d 100644 --- a/src/python/vectorize_client/models/firecrawl1.py +++ b/src/python/vectorize_client/models/firecrawl1.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from vectorize_client.models.firecrawl_config import FIRECRAWLConfig +from vectorize_client.models.firecrawl_auth_config import FIRECRAWLAuthConfig from typing import Optional, Set from typing_extensions import Self @@ -27,7 +27,7 @@ class Firecrawl1(BaseModel): """ Firecrawl1 """ # noqa: E501 - config: Optional[FIRECRAWLConfig] = None + config: Optional[FIRECRAWLAuthConfig] = None __properties: ClassVar[List[str]] = ["config"] model_config = ConfigDict( @@ -84,7 +84,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "config": FIRECRAWLConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + "config": FIRECRAWLAuthConfig.from_dict(obj["config"]) if obj.get("config") is not None else None }) return _obj diff --git a/src/python/vectorize_client/models/firecrawl_auth_config.py b/src/python/vectorize_client/models/firecrawl_auth_config.py index 95e1636..0427fa4 100644 --- a/src/python/vectorize_client/models/firecrawl_auth_config.py +++ b/src/python/vectorize_client/models/firecrawl_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, SecretStr, StrictStr +from pydantic import BaseModel, ConfigDict, Field, SecretStr from typing import Any, ClassVar, Dict, List from typing import Optional, Set from typing_extensions import Self @@ -26,9 +26,8 @@ class FIRECRAWLAuthConfig(BaseModel): """ Authentication configuration for Firecrawl """ # noqa: E501 - name: StrictStr = Field(description="Name. Example: Enter a descriptive name") api_key: SecretStr = Field(description="API Key. Example: Enter your Firecrawl API Key", alias="api-key") - __properties: ClassVar[List[str]] = ["name", "api-key"] + __properties: ClassVar[List[str]] = ["api-key"] model_config = ConfigDict( populate_by_name=True, @@ -81,7 +80,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "name": obj.get("name"), "api-key": obj.get("api-key") }) return _obj diff --git a/src/python/vectorize_client/models/firecrawl_config.py b/src/python/vectorize_client/models/firecrawl_config.py index 5bbc8e1..0580ba6 100644 --- a/src/python/vectorize_client/models/firecrawl_config.py +++ b/src/python/vectorize_client/models/firecrawl_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/fireflies.py b/src/python/vectorize_client/models/fireflies.py index ab6a602..b2cb773 100644 --- a/src/python/vectorize_client/models/fireflies.py +++ b/src/python/vectorize_client/models/fireflies.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator from typing import Any, ClassVar, Dict, List -from vectorize_client.models.fireflies_config import FIREFLIESConfig +from vectorize_client.models.fireflies_auth_config import FIREFLIESAuthConfig from typing import Optional, Set from typing_extensions import Self @@ -29,7 +29,7 @@ class Fireflies(BaseModel): """ # noqa: E501 name: StrictStr = Field(description="Name of the connector") type: StrictStr = Field(description="Connector type (must be \"FIREFLIES\")") - config: FIREFLIESConfig + config: FIREFLIESAuthConfig __properties: ClassVar[List[str]] = ["name", "type", "config"] @field_validator('type') @@ -95,7 +95,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), "type": obj.get("type"), - "config": FIREFLIESConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + "config": FIREFLIESAuthConfig.from_dict(obj["config"]) if obj.get("config") is not None else None }) return _obj diff --git a/src/python/vectorize_client/models/fireflies1.py b/src/python/vectorize_client/models/fireflies1.py index a92611b..0dcebd8 100644 --- a/src/python/vectorize_client/models/fireflies1.py +++ b/src/python/vectorize_client/models/fireflies1.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from vectorize_client.models.fireflies_config import FIREFLIESConfig +from vectorize_client.models.fireflies_auth_config import FIREFLIESAuthConfig from typing import Optional, Set from typing_extensions import Self @@ -27,7 +27,7 @@ class Fireflies1(BaseModel): """ Fireflies1 """ # noqa: E501 - config: Optional[FIREFLIESConfig] = None + config: Optional[FIREFLIESAuthConfig] = None __properties: ClassVar[List[str]] = ["config"] model_config = ConfigDict( @@ -84,7 +84,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "config": FIREFLIESConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + "config": FIREFLIESAuthConfig.from_dict(obj["config"]) if obj.get("config") is not None else None }) return _obj diff --git a/src/python/vectorize_client/models/fireflies_auth_config.py b/src/python/vectorize_client/models/fireflies_auth_config.py index b957b6c..367bf98 100644 --- a/src/python/vectorize_client/models/fireflies_auth_config.py +++ b/src/python/vectorize_client/models/fireflies_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from pydantic import BaseModel, ConfigDict, Field, field_validator from typing import Any, ClassVar, Dict, List from typing_extensions import Annotated from typing import Optional, Set @@ -27,9 +27,8 @@ class FIREFLIESAuthConfig(BaseModel): """ Authentication configuration for Fireflies.ai """ # noqa: E501 - name: StrictStr = Field(description="Name. Example: Enter a descriptive name") api_key: Annotated[str, Field(strict=True)] = Field(description="API Key. Example: Enter your Fireflies.ai API key", alias="api-key") - __properties: ClassVar[List[str]] = ["name", "api-key"] + __properties: ClassVar[List[str]] = ["api-key"] @field_validator('api_key') def api_key_validate_regular_expression(cls, value): @@ -89,7 +88,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "name": obj.get("name"), "api-key": obj.get("api-key") }) return _obj diff --git a/src/python/vectorize_client/models/fireflies_config.py b/src/python/vectorize_client/models/fireflies_config.py index 95f1ba7..e0fe60a 100644 --- a/src/python/vectorize_client/models/fireflies_config.py +++ b/src/python/vectorize_client/models/fireflies_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/gcs.py b/src/python/vectorize_client/models/gcs.py index 916ca8b..51958d8 100644 --- a/src/python/vectorize_client/models/gcs.py +++ b/src/python/vectorize_client/models/gcs.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator from typing import Any, ClassVar, Dict, List -from vectorize_client.models.gcs_config import GCSConfig +from vectorize_client.models.gcs_auth_config import GCSAuthConfig from typing import Optional, Set from typing_extensions import Self @@ -29,7 +29,7 @@ class Gcs(BaseModel): """ # noqa: E501 name: StrictStr = Field(description="Name of the connector") type: StrictStr = Field(description="Connector type (must be \"GCS\")") - config: GCSConfig + config: GCSAuthConfig __properties: ClassVar[List[str]] = ["name", "type", "config"] @field_validator('type') @@ -95,7 +95,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), "type": obj.get("type"), - "config": GCSConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + "config": GCSAuthConfig.from_dict(obj["config"]) if obj.get("config") is not None else None }) return _obj diff --git a/src/python/vectorize_client/models/gcs1.py b/src/python/vectorize_client/models/gcs1.py index 01d87bd..0c466ea 100644 --- a/src/python/vectorize_client/models/gcs1.py +++ b/src/python/vectorize_client/models/gcs1.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from vectorize_client.models.gcs_config import GCSConfig +from vectorize_client.models.gcs_auth_config import GCSAuthConfig from typing import Optional, Set from typing_extensions import Self @@ -27,7 +27,7 @@ class Gcs1(BaseModel): """ Gcs1 """ # noqa: E501 - config: Optional[GCSConfig] = None + config: Optional[GCSAuthConfig] = None __properties: ClassVar[List[str]] = ["config"] model_config = ConfigDict( @@ -84,7 +84,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "config": GCSConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + "config": GCSAuthConfig.from_dict(obj["config"]) if obj.get("config") is not None else None }) return _obj diff --git a/src/python/vectorize_client/models/gcs_auth_config.py b/src/python/vectorize_client/models/gcs_auth_config.py index 668c6e2..dd459e3 100644 --- a/src/python/vectorize_client/models/gcs_auth_config.py +++ b/src/python/vectorize_client/models/gcs_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -26,10 +26,9 @@ class GCSAuthConfig(BaseModel): """ Authentication configuration for GCP Cloud Storage """ # noqa: E501 - name: StrictStr = Field(description="Name. Example: Enter a descriptive name") service_account_json: SecretStr = Field(description="Service Account JSON. Example: Enter the JSON key file for the service account", alias="service-account-json") bucket_name: StrictStr = Field(description="Bucket. Example: Enter bucket name", alias="bucket-name") - __properties: ClassVar[List[str]] = ["name", "service-account-json", "bucket-name"] + __properties: ClassVar[List[str]] = ["service-account-json", "bucket-name"] model_config = ConfigDict( populate_by_name=True, @@ -82,7 +81,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "name": obj.get("name"), "service-account-json": obj.get("service-account-json"), "bucket-name": obj.get("bucket-name") }) diff --git a/src/python/vectorize_client/models/gcs_config.py b/src/python/vectorize_client/models/gcs_config.py index dbf7582..2716909 100644 --- a/src/python/vectorize_client/models/gcs_config.py +++ b/src/python/vectorize_client/models/gcs_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -32,15 +32,15 @@ class GCSConfig(BaseModel): recursive: Optional[StrictBool] = Field(default=None, description="Recursively scan all folders in the bucket") path_prefix: Optional[StrictStr] = Field(default=None, description="Path Prefix", alias="path-prefix") path_metadata_regex: Optional[StrictStr] = Field(default=None, description="Path Metadata Regex", alias="path-metadata-regex") - path_regex_group_names: Optional[StrictStr] = Field(default=None, description="Path Regex Group Names. Example: Enter Group Name", alias="path-regex-group-names") + path_regex_group_names: Optional[List[StrictStr]] = Field(default=None, description="Path Regex Group Names. Example: Enter Group Name", alias="path-regex-group-names") __properties: ClassVar[List[str]] = ["file-extensions", "idle-time", "recursive", "path-prefix", "path-metadata-regex", "path-regex-group-names"] @field_validator('file_extensions') def file_extensions_validate_enum(cls, value): """Validates the enum""" for i in value: - if i not in set(['pdf', 'doc,docx,gdoc,odt,rtf,epub', 'ppt,pptx,gslides', 'xls,xlsx,gsheets,ods', 'eml,msg', 'txt', 'html,htm', 'md', 'json', 'csv', 'jpg,jpeg,png,webp,svg,gif']): - raise ValueError("each list item must be one of ('pdf', 'doc,docx,gdoc,odt,rtf,epub', 'ppt,pptx,gslides', 'xls,xlsx,gsheets,ods', 'eml,msg', 'txt', 'html,htm', 'md', 'json', 'csv', 'jpg,jpeg,png,webp,svg,gif')") + if i not in set(['pdf', 'doc,docx,gdoc,odt,rtf,epub', 'ppt,pptx,gslides', 'xls,xlsx,gsheets,ods', 'eml,msg', 'txt', 'html,htm', 'md', 'jpg,jpeg,png,webp,svg,gif', 'json', 'csv']): + raise ValueError("each list item must be one of ('pdf', 'doc,docx,gdoc,odt,rtf,epub', 'ppt,pptx,gslides', 'xls,xlsx,gsheets,ods', 'eml,msg', 'txt', 'html,htm', 'md', 'jpg,jpeg,png,webp,svg,gif', 'json', 'csv')") return value model_config = ConfigDict( @@ -95,7 +95,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "file-extensions": obj.get("file-extensions"), - "idle-time": obj.get("idle-time") if obj.get("idle-time") is not None else 5, + "idle-time": obj.get("idle-time") if obj.get("idle-time") is not None else 30, "recursive": obj.get("recursive"), "path-prefix": obj.get("path-prefix"), "path-metadata-regex": obj.get("path-metadata-regex"), diff --git a/src/python/vectorize_client/models/get_ai_platform_connectors200_response.py b/src/python/vectorize_client/models/get_ai_platform_connectors200_response.py index 78a010c..666b292 100644 --- a/src/python/vectorize_client/models/get_ai_platform_connectors200_response.py +++ b/src/python/vectorize_client/models/get_ai_platform_connectors200_response.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List -from vectorize_client.models.ai_platform import AIPlatform +from vectorize_client.models.ai_platform_connector import AIPlatformConnector from typing import Optional, Set from typing_extensions import Self @@ -27,7 +27,7 @@ class GetAIPlatformConnectors200Response(BaseModel): """ GetAIPlatformConnectors200Response """ # noqa: E501 - ai_platform_connectors: List[AIPlatform] = Field(alias="aiPlatformConnectors") + ai_platform_connectors: List[AIPlatformConnector] = Field(alias="aiPlatformConnectors") __properties: ClassVar[List[str]] = ["aiPlatformConnectors"] model_config = ConfigDict( @@ -88,7 +88,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "aiPlatformConnectors": [AIPlatform.from_dict(_item) for _item in obj["aiPlatformConnectors"]] if obj.get("aiPlatformConnectors") is not None else None + "aiPlatformConnectors": [AIPlatformConnector.from_dict(_item) for _item in obj["aiPlatformConnectors"]] if obj.get("aiPlatformConnectors") is not None else None }) 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 b57d04c..c8cc56f 100644 --- a/src/python/vectorize_client/models/get_deep_research_response.py +++ b/src/python/vectorize_client/models/get_deep_research_response.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/get_destination_connectors200_response.py b/src/python/vectorize_client/models/get_destination_connectors200_response.py index 5e3bfe5..763a1dd 100644 --- a/src/python/vectorize_client/models/get_destination_connectors200_response.py +++ b/src/python/vectorize_client/models/get_destination_connectors200_response.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. 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 979981f..73ceeef 100644 --- a/src/python/vectorize_client/models/get_pipeline_events_response.py +++ b/src/python/vectorize_client/models/get_pipeline_events_response.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. 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 9dfb581..46d7682 100644 --- a/src/python/vectorize_client/models/get_pipeline_metrics_response.py +++ b/src/python/vectorize_client/models/get_pipeline_metrics_response.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/get_pipeline_response.py b/src/python/vectorize_client/models/get_pipeline_response.py index 98ac834..20040f0 100644 --- a/src/python/vectorize_client/models/get_pipeline_response.py +++ b/src/python/vectorize_client/models/get_pipeline_response.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/get_pipelines400_response.py b/src/python/vectorize_client/models/get_pipelines400_response.py index ebbcf2a..41ed573 100644 --- a/src/python/vectorize_client/models/get_pipelines400_response.py +++ b/src/python/vectorize_client/models/get_pipelines400_response.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/get_pipelines_response.py b/src/python/vectorize_client/models/get_pipelines_response.py index 52af6ba..2430e14 100644 --- a/src/python/vectorize_client/models/get_pipelines_response.py +++ b/src/python/vectorize_client/models/get_pipelines_response.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/get_source_connectors200_response.py b/src/python/vectorize_client/models/get_source_connectors200_response.py index f487023..4cb3c28 100644 --- a/src/python/vectorize_client/models/get_source_connectors200_response.py +++ b/src/python/vectorize_client/models/get_source_connectors200_response.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. 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 5a6df32..78a7739 100644 --- a/src/python/vectorize_client/models/get_upload_files_response.py +++ b/src/python/vectorize_client/models/get_upload_files_response.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/github.py b/src/python/vectorize_client/models/github.py index d96373c..7269201 100644 --- a/src/python/vectorize_client/models/github.py +++ b/src/python/vectorize_client/models/github.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator from typing import Any, ClassVar, Dict, List -from vectorize_client.models.github_config import GITHUBConfig +from vectorize_client.models.github_auth_config import GITHUBAuthConfig from typing import Optional, Set from typing_extensions import Self @@ -29,7 +29,7 @@ class Github(BaseModel): """ # noqa: E501 name: StrictStr = Field(description="Name of the connector") type: StrictStr = Field(description="Connector type (must be \"GITHUB\")") - config: GITHUBConfig + config: GITHUBAuthConfig __properties: ClassVar[List[str]] = ["name", "type", "config"] @field_validator('type') @@ -95,7 +95,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), "type": obj.get("type"), - "config": GITHUBConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + "config": GITHUBAuthConfig.from_dict(obj["config"]) if obj.get("config") is not None else None }) return _obj diff --git a/src/python/vectorize_client/models/github1.py b/src/python/vectorize_client/models/github1.py index 54f23e7..5e246d2 100644 --- a/src/python/vectorize_client/models/github1.py +++ b/src/python/vectorize_client/models/github1.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from vectorize_client.models.github_config import GITHUBConfig +from vectorize_client.models.github_auth_config import GITHUBAuthConfig from typing import Optional, Set from typing_extensions import Self @@ -27,7 +27,7 @@ class Github1(BaseModel): """ Github1 """ # noqa: E501 - config: Optional[GITHUBConfig] = None + config: Optional[GITHUBAuthConfig] = None __properties: ClassVar[List[str]] = ["config"] model_config = ConfigDict( @@ -84,7 +84,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "config": GITHUBConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + "config": GITHUBAuthConfig.from_dict(obj["config"]) if obj.get("config") is not None else None }) return _obj diff --git a/src/python/vectorize_client/models/github_auth_config.py b/src/python/vectorize_client/models/github_auth_config.py index e00566c..45e0938 100644 --- a/src/python/vectorize_client/models/github_auth_config.py +++ b/src/python/vectorize_client/models/github_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from pydantic import BaseModel, ConfigDict, Field, field_validator from typing import Any, ClassVar, Dict, List from typing_extensions import Annotated from typing import Optional, Set @@ -27,9 +27,8 @@ class GITHUBAuthConfig(BaseModel): """ Authentication configuration for GitHub """ # noqa: E501 - name: StrictStr = Field(description="Name. Example: Enter a descriptive name") oauth_token: Annotated[str, Field(strict=True)] = Field(description="Personal Access Token. Example: Enter your GitHub personal access token", alias="oauth-token") - __properties: ClassVar[List[str]] = ["name", "oauth-token"] + __properties: ClassVar[List[str]] = ["oauth-token"] @field_validator('oauth_token') def oauth_token_validate_regular_expression(cls, value): @@ -89,7 +88,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "name": obj.get("name"), "oauth-token": obj.get("oauth-token") }) return _obj diff --git a/src/python/vectorize_client/models/github_config.py b/src/python/vectorize_client/models/github_config.py index d3ea39b..e93f40c 100644 --- a/src/python/vectorize_client/models/github_config.py +++ b/src/python/vectorize_client/models/github_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -20,7 +20,6 @@ from datetime import date from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional, Union -from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self @@ -28,24 +27,17 @@ class GITHUBConfig(BaseModel): """ Configuration for GitHub connector """ # noqa: E501 - repositories: Annotated[str, Field(strict=True)] = Field(description="Repositories. Example: Example: owner1/repo1") + repositories: List[StrictStr] = Field(description="Repositories. Example: Example: owner1/repo1") include_pull_requests: StrictBool = Field(description="Include Pull Requests", alias="include-pull-requests") pull_request_status: StrictStr = Field(description="Pull Request Status", alias="pull-request-status") - pull_request_labels: Optional[StrictStr] = Field(default=None, description="Pull Request Labels. Example: Optionally filter by label. E.g. fix", alias="pull-request-labels") + pull_request_labels: Optional[List[StrictStr]] = Field(default=None, description="Pull Request Labels. Example: Optionally filter by label. E.g. fix", alias="pull-request-labels") include_issues: StrictBool = Field(description="Include Issues", alias="include-issues") issue_status: StrictStr = Field(description="Issue Status", alias="issue-status") - issue_labels: Optional[StrictStr] = Field(default=None, description="Issue Labels. Example: Optionally filter by label. E.g. bug", alias="issue-labels") + issue_labels: Optional[List[StrictStr]] = Field(default=None, description="Issue Labels. Example: Optionally filter by label. E.g. bug", alias="issue-labels") max_items: Union[StrictFloat, StrictInt] = Field(description="Max Items. Example: Enter maximum number of items to fetch", alias="max-items") created_after: Optional[date] = Field(default=None, description="Created After. Filter for items created after this date. Example: Enter a date: Example 2012-12-31", alias="created-after") __properties: ClassVar[List[str]] = ["repositories", "include-pull-requests", "pull-request-status", "pull-request-labels", "include-issues", "issue-status", "issue-labels", "max-items", "created-after"] - @field_validator('repositories') - def repositories_validate_regular_expression(cls, value): - """Validates the regular expression""" - if not re.match(r"^[a-zA-Z0-9-]+\/[a-zA-Z0-9-]+$", value): - raise ValueError(r"must validate the regular expression /^[a-zA-Z0-9-]+\/[a-zA-Z0-9-]+$/") - return value - @field_validator('pull_request_status') def pull_request_status_validate_enum(cls, value): """Validates the enum""" diff --git a/src/python/vectorize_client/models/gmail_auth_config.py b/src/python/vectorize_client/models/gmail_auth_config.py index 4f68c14..91f9a91 100644 --- a/src/python/vectorize_client/models/gmail_auth_config.py +++ b/src/python/vectorize_client/models/gmail_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, SecretStr, StrictStr +from pydantic import BaseModel, ConfigDict, Field, SecretStr from typing import Any, ClassVar, Dict, List from typing import Optional, Set from typing_extensions import Self @@ -26,9 +26,8 @@ class GMAILAuthConfig(BaseModel): """ Authentication configuration for Gmail """ # noqa: E501 - name: StrictStr = Field(description="Name. Example: Enter a descriptive name") refresh_token: SecretStr = Field(description="Connect Gmail to Vectorize. Example: Authorize", alias="refresh-token") - __properties: ClassVar[List[str]] = ["name", "refresh-token"] + __properties: ClassVar[List[str]] = ["refresh-token"] model_config = ConfigDict( populate_by_name=True, @@ -81,7 +80,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "name": obj.get("name"), "refresh-token": obj.get("refresh-token") }) return _obj diff --git a/src/python/vectorize_client/models/gmail_config.py b/src/python/vectorize_client/models/gmail_config.py index 110602b..575af0d 100644 --- a/src/python/vectorize_client/models/gmail_config.py +++ b/src/python/vectorize_client/models/gmail_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/google_drive.py b/src/python/vectorize_client/models/google_drive.py index b57a316..92c157a 100644 --- a/src/python/vectorize_client/models/google_drive.py +++ b/src/python/vectorize_client/models/google_drive.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator from typing import Any, ClassVar, Dict, List -from vectorize_client.models.googledrive_config import GOOGLEDRIVEConfig +from vectorize_client.models.googledrive_auth_config import GOOGLEDRIVEAuthConfig from typing import Optional, Set from typing_extensions import Self @@ -29,7 +29,7 @@ class GoogleDrive(BaseModel): """ # noqa: E501 name: StrictStr = Field(description="Name of the connector") type: StrictStr = Field(description="Connector type (must be \"GOOGLE_DRIVE\")") - config: GOOGLEDRIVEConfig + config: GOOGLEDRIVEAuthConfig __properties: ClassVar[List[str]] = ["name", "type", "config"] @field_validator('type') @@ -95,7 +95,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), "type": obj.get("type"), - "config": GOOGLEDRIVEConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + "config": GOOGLEDRIVEAuthConfig.from_dict(obj["config"]) if obj.get("config") is not None else None }) return _obj diff --git a/src/python/vectorize_client/models/google_drive1.py b/src/python/vectorize_client/models/google_drive1.py index 39d415a..aae572b 100644 --- a/src/python/vectorize_client/models/google_drive1.py +++ b/src/python/vectorize_client/models/google_drive1.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from vectorize_client.models.googledrive_config import GOOGLEDRIVEConfig +from vectorize_client.models.googledrive_auth_config import GOOGLEDRIVEAuthConfig from typing import Optional, Set from typing_extensions import Self @@ -27,7 +27,7 @@ class GoogleDrive1(BaseModel): """ GoogleDrive1 """ # noqa: E501 - config: Optional[GOOGLEDRIVEConfig] = None + config: Optional[GOOGLEDRIVEAuthConfig] = None __properties: ClassVar[List[str]] = ["config"] model_config = ConfigDict( @@ -84,7 +84,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "config": GOOGLEDRIVEConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + "config": GOOGLEDRIVEAuthConfig.from_dict(obj["config"]) if obj.get("config") is not None else None }) return _obj diff --git a/src/python/vectorize_client/models/google_drive_oauth.py b/src/python/vectorize_client/models/google_drive_oauth.py index 02a4c6f..fdafbfd 100644 --- a/src/python/vectorize_client/models/google_drive_oauth.py +++ b/src/python/vectorize_client/models/google_drive_oauth.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from vectorize_client.models.googledriveoauth_config import GOOGLEDRIVEOAUTHConfig +from vectorize_client.models.googledriveoauth_auth_config import GOOGLEDRIVEOAUTHAuthConfig from typing import Optional, Set from typing_extensions import Self @@ -27,7 +27,7 @@ class GoogleDriveOauth(BaseModel): """ GoogleDriveOauth """ # noqa: E501 - config: Optional[GOOGLEDRIVEOAUTHConfig] = None + config: Optional[GOOGLEDRIVEOAUTHAuthConfig] = None __properties: ClassVar[List[str]] = ["config"] model_config = ConfigDict( @@ -84,7 +84,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "config": GOOGLEDRIVEOAUTHConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + "config": GOOGLEDRIVEOAUTHAuthConfig.from_dict(obj["config"]) if obj.get("config") is not None else None }) return _obj diff --git a/src/python/vectorize_client/models/google_drive_oauth_multi.py b/src/python/vectorize_client/models/google_drive_oauth_multi.py index 7e345c7..e9ba0df 100644 --- a/src/python/vectorize_client/models/google_drive_oauth_multi.py +++ b/src/python/vectorize_client/models/google_drive_oauth_multi.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from vectorize_client.models.googledriveoauthmulti_config import GOOGLEDRIVEOAUTHMULTIConfig +from vectorize_client.models.googledriveoauthmulti_auth_config import GOOGLEDRIVEOAUTHMULTIAuthConfig from typing import Optional, Set from typing_extensions import Self @@ -27,7 +27,7 @@ class GoogleDriveOauthMulti(BaseModel): """ GoogleDriveOauthMulti """ # noqa: E501 - config: Optional[GOOGLEDRIVEOAUTHMULTIConfig] = None + config: Optional[GOOGLEDRIVEOAUTHMULTIAuthConfig] = None __properties: ClassVar[List[str]] = ["config"] model_config = ConfigDict( @@ -84,7 +84,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "config": GOOGLEDRIVEOAUTHMULTIConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + "config": GOOGLEDRIVEOAUTHMULTIAuthConfig.from_dict(obj["config"]) if obj.get("config") is not None else None }) return _obj diff --git a/src/python/vectorize_client/models/google_drive_oauth_multi_custom.py b/src/python/vectorize_client/models/google_drive_oauth_multi_custom.py index e99051c..7a3008a 100644 --- a/src/python/vectorize_client/models/google_drive_oauth_multi_custom.py +++ b/src/python/vectorize_client/models/google_drive_oauth_multi_custom.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from vectorize_client.models.googledriveoauthmulticustom_config import GOOGLEDRIVEOAUTHMULTICUSTOMConfig +from vectorize_client.models.googledriveoauthmulticustom_auth_config import GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig from typing import Optional, Set from typing_extensions import Self @@ -27,7 +27,7 @@ class GoogleDriveOauthMultiCustom(BaseModel): """ GoogleDriveOauthMultiCustom """ # noqa: E501 - config: Optional[GOOGLEDRIVEOAUTHMULTICUSTOMConfig] = None + config: Optional[GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig] = None __properties: ClassVar[List[str]] = ["config"] model_config = ConfigDict( @@ -84,7 +84,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "config": GOOGLEDRIVEOAUTHMULTICUSTOMConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + "config": GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig.from_dict(obj["config"]) if obj.get("config") is not None else None }) return _obj diff --git a/src/python/vectorize_client/models/googledrive_auth_config.py b/src/python/vectorize_client/models/googledrive_auth_config.py index 2e9f359..0014c8a 100644 --- a/src/python/vectorize_client/models/googledrive_auth_config.py +++ b/src/python/vectorize_client/models/googledrive_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, SecretStr, StrictStr +from pydantic import BaseModel, ConfigDict, Field, SecretStr from typing import Any, ClassVar, Dict, List from typing import Optional, Set from typing_extensions import Self @@ -26,9 +26,8 @@ class GOOGLEDRIVEAuthConfig(BaseModel): """ Authentication configuration for Google Drive (Service Account) """ # noqa: E501 - name: StrictStr = Field(description="Name. Example: Enter a descriptive name") service_account_json: SecretStr = Field(description="Service Account JSON. Example: Enter the JSON key file for the service account", alias="service-account-json") - __properties: ClassVar[List[str]] = ["name", "service-account-json"] + __properties: ClassVar[List[str]] = ["service-account-json"] model_config = ConfigDict( populate_by_name=True, @@ -81,7 +80,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "name": obj.get("name"), "service-account-json": obj.get("service-account-json") }) return _obj diff --git a/src/python/vectorize_client/models/googledrive_config.py b/src/python/vectorize_client/models/googledrive_config.py index f94c9d2..0950ed8 100644 --- a/src/python/vectorize_client/models/googledrive_config.py +++ b/src/python/vectorize_client/models/googledrive_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,6 @@ from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional, Union -from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self @@ -28,26 +27,16 @@ class GOOGLEDRIVEConfig(BaseModel): Configuration for Google Drive (Service Account) connector """ # noqa: E501 file_extensions: List[StrictStr] = Field(description="File Extensions", alias="file-extensions") - root_parents: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="Restrict ingest to these folder URLs (optional). Example: Enter Folder URLs. Example: https://drive.google.com/drive/folders/1234aBCd5678_eFgH9012iJKL3456opqr", alias="root-parents") - idle_time: Optional[Union[StrictFloat, StrictInt]] = Field(default=5, description="Polling Interval (seconds). Example: Enter polling interval in seconds", alias="idle-time") + root_parents: Optional[List[StrictStr]] = Field(default=None, description="Restrict ingest to these folder URLs (optional). Example: Enter Folder URLs. Example: https://drive.google.com/drive/folders/1234aBCd5678_eFgH9012iJKL3456opqr", alias="root-parents") + idle_time: Optional[Union[StrictFloat, StrictInt]] = Field(default=30, description="Polling Interval (seconds). Example: Enter polling interval in seconds", alias="idle-time") __properties: ClassVar[List[str]] = ["file-extensions", "root-parents", "idle-time"] @field_validator('file_extensions') def file_extensions_validate_enum(cls, value): """Validates the enum""" for i in value: - if i not in set(['pdf', 'doc,docx,gdoc,odt,rtf,epub', 'ppt,pptx,gslides', 'xls,xlsx,gsheets,ods', 'eml,msg', 'txt', 'html,htm', 'md', 'json', 'csv', 'jpg,jpeg,png,webp,svg,gif']): - raise ValueError("each list item must be one of ('pdf', 'doc,docx,gdoc,odt,rtf,epub', 'ppt,pptx,gslides', 'xls,xlsx,gsheets,ods', 'eml,msg', 'txt', 'html,htm', 'md', 'json', 'csv', 'jpg,jpeg,png,webp,svg,gif')") - return value - - @field_validator('root_parents') - def root_parents_validate_regular_expression(cls, value): - """Validates the regular expression""" - if value is None: - return value - - if not re.match(r"^https:\/\/drive\.google\.com\/drive(\/u\/\d+)?\/folders\/[a-zA-Z0-9_-]+(\?.*)?$", value): - raise ValueError(r"must validate the regular expression /^https:\/\/drive\.google\.com\/drive(\/u\/\d+)?\/folders\/[a-zA-Z0-9_-]+(\?.*)?$/") + if i not in set(['pdf', 'doc,docx,gdoc,odt,rtf,epub', 'ppt,pptx,gslides', 'xls,xlsx,gsheets,ods', 'eml,msg', 'txt', 'html,htm', 'md', 'jpg,jpeg,png,webp,svg,gif', 'json', 'csv']): + raise ValueError("each list item must be one of ('pdf', 'doc,docx,gdoc,odt,rtf,epub', 'ppt,pptx,gslides', 'xls,xlsx,gsheets,ods', 'eml,msg', 'txt', 'html,htm', 'md', 'jpg,jpeg,png,webp,svg,gif', 'json', 'csv')") return value model_config = ConfigDict( @@ -103,7 +92,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "file-extensions": obj.get("file-extensions"), "root-parents": obj.get("root-parents"), - "idle-time": obj.get("idle-time") if obj.get("idle-time") is not None else 5 + "idle-time": obj.get("idle-time") if obj.get("idle-time") is not None else 30 }) return _obj diff --git a/src/python/vectorize_client/models/googledriveoauth_auth_config.py b/src/python/vectorize_client/models/googledriveoauth_auth_config.py index bd6f9ea..8c5e522 100644 --- a/src/python/vectorize_client/models/googledriveoauth_auth_config.py +++ b/src/python/vectorize_client/models/googledriveoauth_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -26,12 +26,11 @@ class GOOGLEDRIVEOAUTHAuthConfig(BaseModel): """ Authentication configuration for Google Drive OAuth """ # noqa: E501 - name: StrictStr = Field(description="Name. Example: Enter a descriptive name") authorized_user: Optional[StrictStr] = Field(default=None, description="Authorized User", alias="authorized-user") selection_details: StrictStr = Field(description="Connect Google Drive to Vectorize. Example: Authorize", alias="selection-details") edited_users: Optional[Dict[str, Any]] = Field(default=None, alias="editedUsers") reconnect_users: Optional[Dict[str, Any]] = Field(default=None, alias="reconnectUsers") - __properties: ClassVar[List[str]] = ["name", "authorized-user", "selection-details", "editedUsers", "reconnectUsers"] + __properties: ClassVar[List[str]] = ["authorized-user", "selection-details", "editedUsers", "reconnectUsers"] model_config = ConfigDict( populate_by_name=True, @@ -84,7 +83,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "name": obj.get("name"), "authorized-user": obj.get("authorized-user"), "selection-details": obj.get("selection-details"), "editedUsers": obj.get("editedUsers"), diff --git a/src/python/vectorize_client/models/googledriveoauth_config.py b/src/python/vectorize_client/models/googledriveoauth_config.py index fa4d532..511e2d1 100644 --- a/src/python/vectorize_client/models/googledriveoauth_config.py +++ b/src/python/vectorize_client/models/googledriveoauth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -27,15 +27,15 @@ class GOOGLEDRIVEOAUTHConfig(BaseModel): Configuration for Google Drive OAuth connector """ # noqa: E501 file_extensions: List[StrictStr] = Field(description="File Extensions", alias="file-extensions") - idle_time: Optional[Union[StrictFloat, StrictInt]] = Field(default=5, description="Polling Interval (seconds). Example: Enter polling interval in seconds", alias="idle-time") + idle_time: Optional[Union[StrictFloat, StrictInt]] = Field(default=30, description="Polling Interval (seconds). Example: Enter polling interval in seconds", alias="idle-time") __properties: ClassVar[List[str]] = ["file-extensions", "idle-time"] @field_validator('file_extensions') def file_extensions_validate_enum(cls, value): """Validates the enum""" for i in value: - if i not in set(['pdf', 'doc,docx,gdoc,odt,rtf,epub', 'ppt,pptx,gslides', 'xls,xlsx,gsheets,ods', 'eml,msg', 'txt', 'html,htm', 'md', 'json', 'csv', 'jpg,jpeg,png,webp,svg,gif']): - raise ValueError("each list item must be one of ('pdf', 'doc,docx,gdoc,odt,rtf,epub', 'ppt,pptx,gslides', 'xls,xlsx,gsheets,ods', 'eml,msg', 'txt', 'html,htm', 'md', 'json', 'csv', 'jpg,jpeg,png,webp,svg,gif')") + if i not in set(['pdf', 'doc,docx,gdoc,odt,rtf,epub', 'ppt,pptx,gslides', 'xls,xlsx,gsheets,ods', 'eml,msg', 'txt', 'html,htm', 'md', 'jpg,jpeg,png,webp,svg,gif', 'json', 'csv']): + raise ValueError("each list item must be one of ('pdf', 'doc,docx,gdoc,odt,rtf,epub', 'ppt,pptx,gslides', 'xls,xlsx,gsheets,ods', 'eml,msg', 'txt', 'html,htm', 'md', 'jpg,jpeg,png,webp,svg,gif', 'json', 'csv')") return value model_config = ConfigDict( @@ -90,7 +90,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "file-extensions": obj.get("file-extensions"), - "idle-time": obj.get("idle-time") if obj.get("idle-time") is not None else 5 + "idle-time": obj.get("idle-time") if obj.get("idle-time") is not None else 30 }) return _obj diff --git a/src/python/vectorize_client/models/googledriveoauthmulti_auth_config.py b/src/python/vectorize_client/models/googledriveoauthmulti_auth_config.py index 6da4a91..6501745 100644 --- a/src/python/vectorize_client/models/googledriveoauthmulti_auth_config.py +++ b/src/python/vectorize_client/models/googledriveoauthmulti_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -26,11 +26,10 @@ class GOOGLEDRIVEOAUTHMULTIAuthConfig(BaseModel): """ Authentication configuration for Google Drive Multi-User (Vectorize) """ # noqa: E501 - name: StrictStr = Field(description="Name. Example: Enter a descriptive name") - authorized_users: Optional[StrictStr] = Field(default=None, description="Authorized Users", alias="authorized-users") + authorized_users: Optional[List[StrictStr]] = Field(default=None, description="Authorized Users", alias="authorized-users") edited_users: Optional[Dict[str, Any]] = Field(default=None, alias="editedUsers") deleted_users: Optional[Dict[str, Any]] = Field(default=None, alias="deletedUsers") - __properties: ClassVar[List[str]] = ["name", "authorized-users", "editedUsers", "deletedUsers"] + __properties: ClassVar[List[str]] = ["authorized-users", "editedUsers", "deletedUsers"] model_config = ConfigDict( populate_by_name=True, @@ -83,7 +82,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "name": obj.get("name"), "authorized-users": obj.get("authorized-users"), "editedUsers": obj.get("editedUsers"), "deletedUsers": obj.get("deletedUsers") diff --git a/src/python/vectorize_client/models/googledriveoauthmulti_config.py b/src/python/vectorize_client/models/googledriveoauthmulti_config.py index c0c6c5e..54a1fa3 100644 --- a/src/python/vectorize_client/models/googledriveoauthmulti_config.py +++ b/src/python/vectorize_client/models/googledriveoauthmulti_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -27,15 +27,15 @@ class GOOGLEDRIVEOAUTHMULTIConfig(BaseModel): Configuration for Google Drive Multi-User (Vectorize) connector """ # noqa: E501 file_extensions: List[StrictStr] = Field(description="File Extensions", alias="file-extensions") - idle_time: Optional[Union[StrictFloat, StrictInt]] = Field(default=5, description="Polling Interval (seconds). Example: Enter polling interval in seconds", alias="idle-time") + idle_time: Optional[Union[StrictFloat, StrictInt]] = Field(default=30, description="Polling Interval (seconds). Example: Enter polling interval in seconds", alias="idle-time") __properties: ClassVar[List[str]] = ["file-extensions", "idle-time"] @field_validator('file_extensions') def file_extensions_validate_enum(cls, value): """Validates the enum""" for i in value: - if i not in set(['pdf', 'doc,docx,gdoc,odt,rtf,epub', 'ppt,pptx,gslides', 'xls,xlsx,gsheets,ods', 'eml,msg', 'txt', 'html,htm', 'md', 'json', 'csv', 'jpg,jpeg,png,webp,svg,gif']): - raise ValueError("each list item must be one of ('pdf', 'doc,docx,gdoc,odt,rtf,epub', 'ppt,pptx,gslides', 'xls,xlsx,gsheets,ods', 'eml,msg', 'txt', 'html,htm', 'md', 'json', 'csv', 'jpg,jpeg,png,webp,svg,gif')") + if i not in set(['pdf', 'doc,docx,gdoc,odt,rtf,epub', 'ppt,pptx,gslides', 'xls,xlsx,gsheets,ods', 'eml,msg', 'txt', 'html,htm', 'md', 'jpg,jpeg,png,webp,svg,gif', 'json', 'csv']): + raise ValueError("each list item must be one of ('pdf', 'doc,docx,gdoc,odt,rtf,epub', 'ppt,pptx,gslides', 'xls,xlsx,gsheets,ods', 'eml,msg', 'txt', 'html,htm', 'md', 'jpg,jpeg,png,webp,svg,gif', 'json', 'csv')") return value model_config = ConfigDict( @@ -90,7 +90,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "file-extensions": obj.get("file-extensions"), - "idle-time": obj.get("idle-time") if obj.get("idle-time") is not None else 5 + "idle-time": obj.get("idle-time") if obj.get("idle-time") is not None else 30 }) return _obj diff --git a/src/python/vectorize_client/models/googledriveoauthmulticustom_auth_config.py b/src/python/vectorize_client/models/googledriveoauthmulticustom_auth_config.py index 853438f..9a013f8 100644 --- a/src/python/vectorize_client/models/googledriveoauthmulticustom_auth_config.py +++ b/src/python/vectorize_client/models/googledriveoauthmulticustom_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -26,13 +26,12 @@ class GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig(BaseModel): """ Authentication configuration for Google Drive Multi-User (White Label) """ # noqa: E501 - name: StrictStr = Field(description="Name. Example: Enter a descriptive name") oauth2_client_id: SecretStr = Field(description="OAuth2 Client Id. Example: Enter Client Id", alias="oauth2-client-id") oauth2_client_secret: SecretStr = Field(description="OAuth2 Client Secret. Example: Enter Client Secret", alias="oauth2-client-secret") - authorized_users: Optional[StrictStr] = Field(default=None, description="Authorized Users", alias="authorized-users") + authorized_users: Optional[List[StrictStr]] = Field(default=None, description="Authorized Users", alias="authorized-users") edited_users: Optional[Dict[str, Any]] = Field(default=None, alias="editedUsers") deleted_users: Optional[Dict[str, Any]] = Field(default=None, alias="deletedUsers") - __properties: ClassVar[List[str]] = ["name", "oauth2-client-id", "oauth2-client-secret", "authorized-users", "editedUsers", "deletedUsers"] + __properties: ClassVar[List[str]] = ["oauth2-client-id", "oauth2-client-secret", "authorized-users", "editedUsers", "deletedUsers"] model_config = ConfigDict( populate_by_name=True, @@ -85,7 +84,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "name": obj.get("name"), "oauth2-client-id": obj.get("oauth2-client-id"), "oauth2-client-secret": obj.get("oauth2-client-secret"), "authorized-users": obj.get("authorized-users"), diff --git a/src/python/vectorize_client/models/googledriveoauthmulticustom_config.py b/src/python/vectorize_client/models/googledriveoauthmulticustom_config.py index 2afd9a9..83ef5d1 100644 --- a/src/python/vectorize_client/models/googledriveoauthmulticustom_config.py +++ b/src/python/vectorize_client/models/googledriveoauthmulticustom_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -27,15 +27,15 @@ class GOOGLEDRIVEOAUTHMULTICUSTOMConfig(BaseModel): Configuration for Google Drive Multi-User (White Label) connector """ # noqa: E501 file_extensions: List[StrictStr] = Field(description="File Extensions", alias="file-extensions") - idle_time: Optional[Union[StrictFloat, StrictInt]] = Field(default=5, description="Polling Interval (seconds). Example: Enter polling interval in seconds", alias="idle-time") + idle_time: Optional[Union[StrictFloat, StrictInt]] = Field(default=30, description="Polling Interval (seconds). Example: Enter polling interval in seconds", alias="idle-time") __properties: ClassVar[List[str]] = ["file-extensions", "idle-time"] @field_validator('file_extensions') def file_extensions_validate_enum(cls, value): """Validates the enum""" for i in value: - if i not in set(['pdf', 'doc,docx,gdoc,odt,rtf,epub', 'ppt,pptx,gslides', 'xls,xlsx,gsheets,ods', 'eml,msg', 'txt', 'html,htm', 'md', 'json', 'csv', 'jpg,jpeg,png,webp,svg,gif']): - raise ValueError("each list item must be one of ('pdf', 'doc,docx,gdoc,odt,rtf,epub', 'ppt,pptx,gslides', 'xls,xlsx,gsheets,ods', 'eml,msg', 'txt', 'html,htm', 'md', 'json', 'csv', 'jpg,jpeg,png,webp,svg,gif')") + if i not in set(['pdf', 'doc,docx,gdoc,odt,rtf,epub', 'ppt,pptx,gslides', 'xls,xlsx,gsheets,ods', 'eml,msg', 'txt', 'html,htm', 'md', 'jpg,jpeg,png,webp,svg,gif', 'json', 'csv']): + raise ValueError("each list item must be one of ('pdf', 'doc,docx,gdoc,odt,rtf,epub', 'ppt,pptx,gslides', 'xls,xlsx,gsheets,ods', 'eml,msg', 'txt', 'html,htm', 'md', 'jpg,jpeg,png,webp,svg,gif', 'json', 'csv')") return value model_config = ConfigDict( @@ -90,7 +90,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "file-extensions": obj.get("file-extensions"), - "idle-time": obj.get("idle-time") if obj.get("idle-time") is not None else 5 + "idle-time": obj.get("idle-time") if obj.get("idle-time") is not None else 30 }) return _obj diff --git a/src/python/vectorize_client/models/intercom.py b/src/python/vectorize_client/models/intercom.py index 9174321..62b5631 100644 --- a/src/python/vectorize_client/models/intercom.py +++ b/src/python/vectorize_client/models/intercom.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from vectorize_client.models.intercom_config import INTERCOMConfig +from vectorize_client.models.intercom_auth_config import INTERCOMAuthConfig from typing import Optional, Set from typing_extensions import Self @@ -27,7 +27,7 @@ class Intercom(BaseModel): """ Intercom """ # noqa: E501 - config: Optional[INTERCOMConfig] = None + config: Optional[INTERCOMAuthConfig] = None __properties: ClassVar[List[str]] = ["config"] model_config = ConfigDict( @@ -84,7 +84,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "config": INTERCOMConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + "config": INTERCOMAuthConfig.from_dict(obj["config"]) if obj.get("config") is not None else None }) return _obj diff --git a/src/python/vectorize_client/models/intercom_auth_config.py b/src/python/vectorize_client/models/intercom_auth_config.py index f07c186..a43cfff 100644 --- a/src/python/vectorize_client/models/intercom_auth_config.py +++ b/src/python/vectorize_client/models/intercom_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, SecretStr, StrictStr +from pydantic import BaseModel, ConfigDict, Field, SecretStr from typing import Any, ClassVar, Dict, List from typing import Optional, Set from typing_extensions import Self @@ -26,9 +26,8 @@ class INTERCOMAuthConfig(BaseModel): """ Authentication configuration for Intercom """ # noqa: E501 - name: StrictStr = Field(description="Name. Example: Enter a descriptive name") token: SecretStr = Field(description="Access Token. Example: Authorize Intercom Access") - __properties: ClassVar[List[str]] = ["name", "token"] + __properties: ClassVar[List[str]] = ["token"] model_config = ConfigDict( populate_by_name=True, @@ -81,7 +80,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "name": obj.get("name"), "token": obj.get("token") }) return _obj diff --git a/src/python/vectorize_client/models/intercom_config.py b/src/python/vectorize_client/models/intercom_config.py index 2b3edc9..00d0dc9 100644 --- a/src/python/vectorize_client/models/intercom_config.py +++ b/src/python/vectorize_client/models/intercom_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/metadata_extraction_strategy.py b/src/python/vectorize_client/models/metadata_extraction_strategy.py index 1672625..b3c704d 100644 --- a/src/python/vectorize_client/models/metadata_extraction_strategy.py +++ b/src/python/vectorize_client/models/metadata_extraction_strategy.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/metadata_extraction_strategy_schema.py b/src/python/vectorize_client/models/metadata_extraction_strategy_schema.py index 61af8d0..5d8e3c2 100644 --- a/src/python/vectorize_client/models/metadata_extraction_strategy_schema.py +++ b/src/python/vectorize_client/models/metadata_extraction_strategy_schema.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/milvus.py b/src/python/vectorize_client/models/milvus.py index e59919c..8cded28 100644 --- a/src/python/vectorize_client/models/milvus.py +++ b/src/python/vectorize_client/models/milvus.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator from typing import Any, ClassVar, Dict, List -from vectorize_client.models.milvus_config import MILVUSConfig +from vectorize_client.models.milvus_auth_config import MILVUSAuthConfig from typing import Optional, Set from typing_extensions import Self @@ -29,7 +29,7 @@ class Milvus(BaseModel): """ # noqa: E501 name: StrictStr = Field(description="Name of the connector") type: StrictStr = Field(description="Connector type (must be \"MILVUS\")") - config: MILVUSConfig + config: MILVUSAuthConfig __properties: ClassVar[List[str]] = ["name", "type", "config"] @field_validator('type') @@ -95,7 +95,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), "type": obj.get("type"), - "config": MILVUSConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + "config": MILVUSAuthConfig.from_dict(obj["config"]) if obj.get("config") is not None else None }) return _obj diff --git a/src/python/vectorize_client/models/milvus1.py b/src/python/vectorize_client/models/milvus1.py index f6c7161..d2447bb 100644 --- a/src/python/vectorize_client/models/milvus1.py +++ b/src/python/vectorize_client/models/milvus1.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from vectorize_client.models.milvus_config import MILVUSConfig +from vectorize_client.models.milvus_auth_config import MILVUSAuthConfig from typing import Optional, Set from typing_extensions import Self @@ -27,7 +27,7 @@ class Milvus1(BaseModel): """ Milvus1 """ # noqa: E501 - config: Optional[MILVUSConfig] = None + config: Optional[MILVUSAuthConfig] = None __properties: ClassVar[List[str]] = ["config"] model_config = ConfigDict( @@ -84,7 +84,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "config": MILVUSConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + "config": MILVUSAuthConfig.from_dict(obj["config"]) if obj.get("config") is not None else None }) return _obj diff --git a/src/python/vectorize_client/models/milvus_auth_config.py b/src/python/vectorize_client/models/milvus_auth_config.py index 54b8a8f..11539e7 100644 --- a/src/python/vectorize_client/models/milvus_auth_config.py +++ b/src/python/vectorize_client/models/milvus_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -26,12 +26,11 @@ class MILVUSAuthConfig(BaseModel): """ Authentication configuration for Milvus """ # noqa: E501 - name: StrictStr = Field(description="Name. Example: Enter a descriptive name for your Milvus integration") url: StrictStr = Field(description="Public Endpoint. Example: Enter your public endpoint for your Milvus cluster") token: Optional[SecretStr] = Field(default=None, description="Token. Example: Enter your cluster token or Username/Password") username: Optional[StrictStr] = Field(default=None, description="Username. Example: Enter your cluster Username") password: Optional[SecretStr] = Field(default=None, description="Password. Example: Enter your cluster Password") - __properties: ClassVar[List[str]] = ["name", "url", "token", "username", "password"] + __properties: ClassVar[List[str]] = ["url", "token", "username", "password"] model_config = ConfigDict( populate_by_name=True, @@ -84,7 +83,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "name": obj.get("name"), "url": obj.get("url"), "token": obj.get("token"), "username": obj.get("username"), diff --git a/src/python/vectorize_client/models/milvus_config.py b/src/python/vectorize_client/models/milvus_config.py index 7525c71..968eba3 100644 --- a/src/python/vectorize_client/models/milvus_config.py +++ b/src/python/vectorize_client/models/milvus_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/n8_n_config.py b/src/python/vectorize_client/models/n8_n_config.py index 6b6c3a5..5b796af 100644 --- a/src/python/vectorize_client/models/n8_n_config.py +++ b/src/python/vectorize_client/models/n8_n_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/notion.py b/src/python/vectorize_client/models/notion.py index 14c1372..c71b137 100644 --- a/src/python/vectorize_client/models/notion.py +++ b/src/python/vectorize_client/models/notion.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from vectorize_client.models.notion_config import NOTIONConfig +from vectorize_client.models.notion_auth_config import NOTIONAuthConfig from typing import Optional, Set from typing_extensions import Self @@ -27,7 +27,7 @@ class Notion(BaseModel): """ Notion """ # noqa: E501 - config: Optional[NOTIONConfig] = None + config: Optional[NOTIONAuthConfig] = None __properties: ClassVar[List[str]] = ["config"] model_config = ConfigDict( @@ -84,7 +84,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "config": NOTIONConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + "config": NOTIONAuthConfig.from_dict(obj["config"]) if obj.get("config") is not None else None }) return _obj diff --git a/src/python/vectorize_client/models/notion_auth_config.py b/src/python/vectorize_client/models/notion_auth_config.py index d30675d..4e87bd1 100644 --- a/src/python/vectorize_client/models/notion_auth_config.py +++ b/src/python/vectorize_client/models/notion_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -26,11 +26,10 @@ class NOTIONAuthConfig(BaseModel): """ Authentication configuration for Notion """ # noqa: E501 - name: StrictStr = Field(description="Name. Example: Enter a descriptive name") access_token: SecretStr = Field(description="Connect Notion to Vectorize - Note this will effect existing connections. test. Example: Authorize", alias="access-token") s3id: Optional[StrictStr] = None edited_token: Optional[StrictStr] = Field(default=None, alias="editedToken") - __properties: ClassVar[List[str]] = ["name", "access-token", "s3id", "editedToken"] + __properties: ClassVar[List[str]] = ["access-token", "s3id", "editedToken"] model_config = ConfigDict( populate_by_name=True, @@ -83,7 +82,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "name": obj.get("name"), "access-token": obj.get("access-token"), "s3id": obj.get("s3id"), "editedToken": obj.get("editedToken") diff --git a/src/python/vectorize_client/models/notion_config.py b/src/python/vectorize_client/models/notion_config.py index c1ef559..90a154a 100644 --- a/src/python/vectorize_client/models/notion_config.py +++ b/src/python/vectorize_client/models/notion_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/notion_oauth_multi.py b/src/python/vectorize_client/models/notion_oauth_multi.py index 241957e..be557af 100644 --- a/src/python/vectorize_client/models/notion_oauth_multi.py +++ b/src/python/vectorize_client/models/notion_oauth_multi.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/notion_oauth_multi_custom.py b/src/python/vectorize_client/models/notion_oauth_multi_custom.py index 5af78f3..300f5aa 100644 --- a/src/python/vectorize_client/models/notion_oauth_multi_custom.py +++ b/src/python/vectorize_client/models/notion_oauth_multi_custom.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/notionoauthmulti_auth_config.py b/src/python/vectorize_client/models/notionoauthmulti_auth_config.py index 34284a1..41cb537 100644 --- a/src/python/vectorize_client/models/notionoauthmulti_auth_config.py +++ b/src/python/vectorize_client/models/notionoauthmulti_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -26,11 +26,10 @@ class NOTIONOAUTHMULTIAuthConfig(BaseModel): """ Authentication configuration for Notion Multi-User (Vectorize) """ # noqa: E501 - name: StrictStr = Field(description="Name. Example: Enter a descriptive name") - authorized_users: Optional[StrictStr] = Field(default=None, description="Authorized Users. Users who have authorized access to their Notion content", alias="authorized-users") + authorized_users: Optional[List[StrictStr]] = Field(default=None, description="Authorized Users. Users who have authorized access to their Notion content", alias="authorized-users") edited_users: Optional[Dict[str, Any]] = Field(default=None, alias="editedUsers") deleted_users: Optional[Dict[str, Any]] = Field(default=None, alias="deletedUsers") - __properties: ClassVar[List[str]] = ["name", "authorized-users", "editedUsers", "deletedUsers"] + __properties: ClassVar[List[str]] = ["authorized-users", "editedUsers", "deletedUsers"] model_config = ConfigDict( populate_by_name=True, @@ -83,7 +82,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "name": obj.get("name"), "authorized-users": obj.get("authorized-users"), "editedUsers": obj.get("editedUsers"), "deletedUsers": obj.get("deletedUsers") diff --git a/src/python/vectorize_client/models/notionoauthmulticustom_auth_config.py b/src/python/vectorize_client/models/notionoauthmulticustom_auth_config.py index e8d0574..5f11f41 100644 --- a/src/python/vectorize_client/models/notionoauthmulticustom_auth_config.py +++ b/src/python/vectorize_client/models/notionoauthmulticustom_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -26,13 +26,12 @@ class NOTIONOAUTHMULTICUSTOMAuthConfig(BaseModel): """ Authentication configuration for Notion Multi-User (White Label) """ # noqa: E501 - name: StrictStr = Field(description="Name. Example: Enter a descriptive name") client_id: SecretStr = Field(description="Notion Client ID. Example: Enter Client ID", alias="client-id") client_secret: SecretStr = Field(description="Notion Client Secret. Example: Enter Client Secret", alias="client-secret") - authorized_users: Optional[StrictStr] = Field(default=None, description="Authorized Users", alias="authorized-users") + authorized_users: Optional[List[StrictStr]] = Field(default=None, description="Authorized Users", alias="authorized-users") edited_users: Optional[Dict[str, Any]] = Field(default=None, alias="editedUsers") deleted_users: Optional[Dict[str, Any]] = Field(default=None, alias="deletedUsers") - __properties: ClassVar[List[str]] = ["name", "client-id", "client-secret", "authorized-users", "editedUsers", "deletedUsers"] + __properties: ClassVar[List[str]] = ["client-id", "client-secret", "authorized-users", "editedUsers", "deletedUsers"] model_config = ConfigDict( populate_by_name=True, @@ -85,7 +84,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "name": obj.get("name"), "client-id": obj.get("client-id"), "client-secret": obj.get("client-secret"), "authorized-users": obj.get("authorized-users"), diff --git a/src/python/vectorize_client/models/one_drive.py b/src/python/vectorize_client/models/one_drive.py index 8dc2891..3643630 100644 --- a/src/python/vectorize_client/models/one_drive.py +++ b/src/python/vectorize_client/models/one_drive.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator from typing import Any, ClassVar, Dict, List -from vectorize_client.models.onedrive_config import ONEDRIVEConfig +from vectorize_client.models.onedrive_auth_config import ONEDRIVEAuthConfig from typing import Optional, Set from typing_extensions import Self @@ -29,7 +29,7 @@ class OneDrive(BaseModel): """ # noqa: E501 name: StrictStr = Field(description="Name of the connector") type: StrictStr = Field(description="Connector type (must be \"ONE_DRIVE\")") - config: ONEDRIVEConfig + config: ONEDRIVEAuthConfig __properties: ClassVar[List[str]] = ["name", "type", "config"] @field_validator('type') @@ -95,7 +95,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), "type": obj.get("type"), - "config": ONEDRIVEConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + "config": ONEDRIVEAuthConfig.from_dict(obj["config"]) if obj.get("config") is not None else None }) return _obj diff --git a/src/python/vectorize_client/models/one_drive1.py b/src/python/vectorize_client/models/one_drive1.py index 798fabf..63ec322 100644 --- a/src/python/vectorize_client/models/one_drive1.py +++ b/src/python/vectorize_client/models/one_drive1.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from vectorize_client.models.onedrive_config import ONEDRIVEConfig +from vectorize_client.models.onedrive_auth_config import ONEDRIVEAuthConfig from typing import Optional, Set from typing_extensions import Self @@ -27,7 +27,7 @@ class OneDrive1(BaseModel): """ OneDrive1 """ # noqa: E501 - config: Optional[ONEDRIVEConfig] = None + config: Optional[ONEDRIVEAuthConfig] = None __properties: ClassVar[List[str]] = ["config"] model_config = ConfigDict( @@ -84,7 +84,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "config": ONEDRIVEConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + "config": ONEDRIVEAuthConfig.from_dict(obj["config"]) if obj.get("config") is not None else None }) return _obj diff --git a/src/python/vectorize_client/models/onedrive_auth_config.py b/src/python/vectorize_client/models/onedrive_auth_config.py index cf0ff64..eaddc74 100644 --- a/src/python/vectorize_client/models/onedrive_auth_config.py +++ b/src/python/vectorize_client/models/onedrive_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -26,12 +26,11 @@ class ONEDRIVEAuthConfig(BaseModel): """ Authentication configuration for OneDrive """ # noqa: E501 - name: StrictStr = Field(description="Name. Example: Enter a descriptive name") ms_client_id: StrictStr = Field(description="Client Id. Example: Enter Client Id", alias="ms-client-id") ms_tenant_id: StrictStr = Field(description="Tenant Id. Example: Enter Tenant Id", alias="ms-tenant-id") ms_client_secret: SecretStr = Field(description="Client Secret. Example: Enter Client Secret", alias="ms-client-secret") - users: StrictStr = Field(description="Users. Example: Enter users emails to import files from. Example: developer@vectorize.io") - __properties: ClassVar[List[str]] = ["name", "ms-client-id", "ms-tenant-id", "ms-client-secret", "users"] + users: List[StrictStr] = Field(description="Users. Example: Enter users emails to import files from. Example: developer@vectorize.io") + __properties: ClassVar[List[str]] = ["ms-client-id", "ms-tenant-id", "ms-client-secret", "users"] model_config = ConfigDict( populate_by_name=True, @@ -84,7 +83,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "name": obj.get("name"), "ms-client-id": obj.get("ms-client-id"), "ms-tenant-id": obj.get("ms-tenant-id"), "ms-client-secret": obj.get("ms-client-secret"), diff --git a/src/python/vectorize_client/models/onedrive_config.py b/src/python/vectorize_client/models/onedrive_config.py index 9b1beb6..e459aca 100644 --- a/src/python/vectorize_client/models/onedrive_config.py +++ b/src/python/vectorize_client/models/onedrive_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -34,8 +34,8 @@ class ONEDRIVEConfig(BaseModel): def file_extensions_validate_enum(cls, value): """Validates the enum""" for i in value: - if i not in set(['pdf', 'doc,docx,gdoc,odt,rtf,epub', 'ppt,pptx,gslides', 'xls,xlsx,gsheets,ods', 'eml,msg', 'txt', 'html,htm', 'md', 'json', 'csv', 'jpg,jpeg,png,webp,svg,gif']): - raise ValueError("each list item must be one of ('pdf', 'doc,docx,gdoc,odt,rtf,epub', 'ppt,pptx,gslides', 'xls,xlsx,gsheets,ods', 'eml,msg', 'txt', 'html,htm', 'md', 'json', 'csv', 'jpg,jpeg,png,webp,svg,gif')") + if i not in set(['pdf', 'doc,docx,gdoc,odt,rtf,epub', 'ppt,pptx,gslides', 'xls,xlsx,gsheets,ods', 'eml,msg', 'txt', 'html,htm', 'md', 'jpg,jpeg,png,webp,svg,gif', 'json', 'csv']): + raise ValueError("each list item must be one of ('pdf', 'doc,docx,gdoc,odt,rtf,epub', 'ppt,pptx,gslides', 'xls,xlsx,gsheets,ods', 'eml,msg', 'txt', 'html,htm', 'md', 'jpg,jpeg,png,webp,svg,gif', 'json', 'csv')") return value model_config = ConfigDict( diff --git a/src/python/vectorize_client/models/openai.py b/src/python/vectorize_client/models/openai.py index a28253f..ea69882 100644 --- a/src/python/vectorize_client/models/openai.py +++ b/src/python/vectorize_client/models/openai.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/openai1.py b/src/python/vectorize_client/models/openai1.py index 669411e..22ed320 100644 --- a/src/python/vectorize_client/models/openai1.py +++ b/src/python/vectorize_client/models/openai1.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/openai_auth_config.py b/src/python/vectorize_client/models/openai_auth_config.py index db0d6eb..11ee13b 100644 --- a/src/python/vectorize_client/models/openai_auth_config.py +++ b/src/python/vectorize_client/models/openai_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from pydantic import BaseModel, ConfigDict, Field, field_validator from typing import Any, ClassVar, Dict, List from typing_extensions import Annotated from typing import Optional, Set @@ -27,9 +27,8 @@ class OPENAIAuthConfig(BaseModel): """ Authentication configuration for OpenAI """ # noqa: E501 - name: StrictStr = Field(description="Name. Example: Enter a descriptive name for your OpenAI integration") key: Annotated[str, Field(strict=True)] = Field(description="API Key. Example: Enter your OpenAI API Key") - __properties: ClassVar[List[str]] = ["name", "key"] + __properties: ClassVar[List[str]] = ["key"] @field_validator('key') def key_validate_regular_expression(cls, value): @@ -89,7 +88,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "name": obj.get("name"), "key": obj.get("key") }) return _obj diff --git a/src/python/vectorize_client/models/pinecone.py b/src/python/vectorize_client/models/pinecone.py index 088f0a9..7af1205 100644 --- a/src/python/vectorize_client/models/pinecone.py +++ b/src/python/vectorize_client/models/pinecone.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator from typing import Any, ClassVar, Dict, List -from vectorize_client.models.pinecone_config import PINECONEConfig +from vectorize_client.models.pinecone_auth_config import PINECONEAuthConfig from typing import Optional, Set from typing_extensions import Self @@ -29,7 +29,7 @@ class Pinecone(BaseModel): """ # noqa: E501 name: StrictStr = Field(description="Name of the connector") type: StrictStr = Field(description="Connector type (must be \"PINECONE\")") - config: PINECONEConfig + config: PINECONEAuthConfig __properties: ClassVar[List[str]] = ["name", "type", "config"] @field_validator('type') @@ -95,7 +95,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), "type": obj.get("type"), - "config": PINECONEConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + "config": PINECONEAuthConfig.from_dict(obj["config"]) if obj.get("config") is not None else None }) return _obj diff --git a/src/python/vectorize_client/models/pinecone1.py b/src/python/vectorize_client/models/pinecone1.py index 58cd734..729c3fa 100644 --- a/src/python/vectorize_client/models/pinecone1.py +++ b/src/python/vectorize_client/models/pinecone1.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from vectorize_client.models.pinecone_config import PINECONEConfig +from vectorize_client.models.pinecone_auth_config import PINECONEAuthConfig from typing import Optional, Set from typing_extensions import Self @@ -27,7 +27,7 @@ class Pinecone1(BaseModel): """ Pinecone1 """ # noqa: E501 - config: Optional[PINECONEConfig] = None + config: Optional[PINECONEAuthConfig] = None __properties: ClassVar[List[str]] = ["config"] model_config = ConfigDict( @@ -84,7 +84,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "config": PINECONEConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + "config": PINECONEAuthConfig.from_dict(obj["config"]) if obj.get("config") is not None else None }) return _obj diff --git a/src/python/vectorize_client/models/pinecone_auth_config.py b/src/python/vectorize_client/models/pinecone_auth_config.py index b585917..e7d054b 100644 --- a/src/python/vectorize_client/models/pinecone_auth_config.py +++ b/src/python/vectorize_client/models/pinecone_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from pydantic import BaseModel, ConfigDict, Field, field_validator from typing import Any, ClassVar, Dict, List from typing_extensions import Annotated from typing import Optional, Set @@ -27,9 +27,8 @@ class PINECONEAuthConfig(BaseModel): """ Authentication configuration for Pinecone """ # noqa: E501 - name: StrictStr = Field(description="Name. Example: Enter a descriptive name for your Pinecone integration") api_key: Annotated[str, Field(strict=True)] = Field(description="API Key. Example: Enter your API Key", alias="api-key") - __properties: ClassVar[List[str]] = ["name", "api-key"] + __properties: ClassVar[List[str]] = ["api-key"] @field_validator('api_key') def api_key_validate_regular_expression(cls, value): @@ -89,7 +88,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "name": obj.get("name"), "api-key": obj.get("api-key") }) return _obj diff --git a/src/python/vectorize_client/models/pinecone_config.py b/src/python/vectorize_client/models/pinecone_config.py index fa7e167..088b1d1 100644 --- a/src/python/vectorize_client/models/pinecone_config.py +++ b/src/python/vectorize_client/models/pinecone_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/ai_platform_connector_schema.py b/src/python/vectorize_client/models/pipeline_ai_platform_connector_schema.py similarity index 89% rename from src/python/vectorize_client/models/ai_platform_connector_schema.py rename to src/python/vectorize_client/models/pipeline_ai_platform_connector_schema.py index c42511f..89757b0 100644 --- a/src/python/vectorize_client/models/ai_platform_connector_schema.py +++ b/src/python/vectorize_client/models/pipeline_ai_platform_connector_schema.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -24,9 +24,9 @@ from typing import Optional, Set from typing_extensions import Self -class AIPlatformConnectorSchema(BaseModel): +class PipelineAIPlatformConnectorSchema(BaseModel): """ - AIPlatformConnectorSchema + PipelineAIPlatformConnectorSchema """ # noqa: E501 id: StrictStr type: AIPlatformTypeForPipeline @@ -51,7 +51,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AIPlatformConnectorSchema from a JSON string""" + """Create an instance of PipelineAIPlatformConnectorSchema from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -79,7 +79,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AIPlatformConnectorSchema from a dict""" + """Create an instance of PipelineAIPlatformConnectorSchema from a dict""" if obj is None: return None diff --git a/src/python/vectorize_client/models/pipeline_configuration_schema.py b/src/python/vectorize_client/models/pipeline_configuration_schema.py index e290091..5be27fd 100644 --- a/src/python/vectorize_client/models/pipeline_configuration_schema.py +++ b/src/python/vectorize_client/models/pipeline_configuration_schema.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -20,10 +20,10 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List from typing_extensions import Annotated -from vectorize_client.models.ai_platform_connector_schema import AIPlatformConnectorSchema -from vectorize_client.models.destination_connector_schema import DestinationConnectorSchema +from vectorize_client.models.pipeline_ai_platform_connector_schema import PipelineAIPlatformConnectorSchema +from vectorize_client.models.pipeline_destination_connector_schema import PipelineDestinationConnectorSchema +from vectorize_client.models.pipeline_source_connector_schema import PipelineSourceConnectorSchema from vectorize_client.models.schedule_schema import ScheduleSchema -from vectorize_client.models.source_connector_schema import SourceConnectorSchema from typing import Optional, Set from typing_extensions import Self @@ -31,12 +31,12 @@ class PipelineConfigurationSchema(BaseModel): """ PipelineConfigurationSchema """ # noqa: E501 - source_connectors: Annotated[List[SourceConnectorSchema], Field(min_length=1)] = Field(alias="sourceConnectors") - destination_connector: DestinationConnectorSchema = Field(alias="destinationConnector") - ai_platform: AIPlatformConnectorSchema = Field(alias="aiPlatform") + source_connectors: Annotated[List[PipelineSourceConnectorSchema], Field(min_length=1)] = Field(alias="sourceConnectors") + destination_connector: PipelineDestinationConnectorSchema = Field(alias="destinationConnector") + ai_platform_connector: PipelineAIPlatformConnectorSchema = Field(alias="aiPlatformConnector") pipeline_name: Annotated[str, Field(min_length=1, strict=True)] = Field(alias="pipelineName") schedule: ScheduleSchema - __properties: ClassVar[List[str]] = ["sourceConnectors", "destinationConnector", "aiPlatform", "pipelineName", "schedule"] + __properties: ClassVar[List[str]] = ["sourceConnectors", "destinationConnector", "aiPlatformConnector", "pipelineName", "schedule"] model_config = ConfigDict( populate_by_name=True, @@ -87,9 +87,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of destination_connector if self.destination_connector: _dict['destinationConnector'] = self.destination_connector.to_dict() - # override the default output from pydantic by calling `to_dict()` of ai_platform - if self.ai_platform: - _dict['aiPlatform'] = self.ai_platform.to_dict() + # override the default output from pydantic by calling `to_dict()` of ai_platform_connector + if self.ai_platform_connector: + _dict['aiPlatformConnector'] = self.ai_platform_connector.to_dict() # override the default output from pydantic by calling `to_dict()` of schedule if self.schedule: _dict['schedule'] = self.schedule.to_dict() @@ -105,9 +105,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "sourceConnectors": [SourceConnectorSchema.from_dict(_item) for _item in obj["sourceConnectors"]] if obj.get("sourceConnectors") is not None else None, - "destinationConnector": DestinationConnectorSchema.from_dict(obj["destinationConnector"]) if obj.get("destinationConnector") is not None else None, - "aiPlatform": AIPlatformConnectorSchema.from_dict(obj["aiPlatform"]) if obj.get("aiPlatform") is not None else None, + "sourceConnectors": [PipelineSourceConnectorSchema.from_dict(_item) for _item in obj["sourceConnectors"]] if obj.get("sourceConnectors") is not None else None, + "destinationConnector": PipelineDestinationConnectorSchema.from_dict(obj["destinationConnector"]) if obj.get("destinationConnector") is not None else None, + "aiPlatformConnector": PipelineAIPlatformConnectorSchema.from_dict(obj["aiPlatformConnector"]) if obj.get("aiPlatformConnector") is not None else None, "pipelineName": obj.get("pipelineName"), "schedule": ScheduleSchema.from_dict(obj["schedule"]) if obj.get("schedule") is not None else None }) diff --git a/src/python/vectorize_client/models/destination_connector_schema.py b/src/python/vectorize_client/models/pipeline_destination_connector_schema.py similarity index 88% rename from src/python/vectorize_client/models/destination_connector_schema.py rename to src/python/vectorize_client/models/pipeline_destination_connector_schema.py index 338b4af..d87283a 100644 --- a/src/python/vectorize_client/models/destination_connector_schema.py +++ b/src/python/vectorize_client/models/pipeline_destination_connector_schema.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -23,9 +23,9 @@ from typing import Optional, Set from typing_extensions import Self -class DestinationConnectorSchema(BaseModel): +class PipelineDestinationConnectorSchema(BaseModel): """ - DestinationConnectorSchema + PipelineDestinationConnectorSchema """ # noqa: E501 id: StrictStr type: DestinationConnectorTypeForPipeline @@ -50,7 +50,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DestinationConnectorSchema from a JSON string""" + """Create an instance of PipelineDestinationConnectorSchema from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -75,7 +75,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DestinationConnectorSchema from a dict""" + """Create an instance of PipelineDestinationConnectorSchema from a dict""" if obj is None: return None diff --git a/src/python/vectorize_client/models/pipeline_events.py b/src/python/vectorize_client/models/pipeline_events.py index 78af0ab..4c962b5 100644 --- a/src/python/vectorize_client/models/pipeline_events.py +++ b/src/python/vectorize_client/models/pipeline_events.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/pipeline_list_summary.py b/src/python/vectorize_client/models/pipeline_list_summary.py index 69da1ad..532aa30 100644 --- a/src/python/vectorize_client/models/pipeline_list_summary.py +++ b/src/python/vectorize_client/models/pipeline_list_summary.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/pipeline_metrics.py b/src/python/vectorize_client/models/pipeline_metrics.py index 5358845..dd10874 100644 --- a/src/python/vectorize_client/models/pipeline_metrics.py +++ b/src/python/vectorize_client/models/pipeline_metrics.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/source_connector_schema.py b/src/python/vectorize_client/models/pipeline_source_connector_schema.py similarity index 89% rename from src/python/vectorize_client/models/source_connector_schema.py rename to src/python/vectorize_client/models/pipeline_source_connector_schema.py index 1e29c6d..241cf02 100644 --- a/src/python/vectorize_client/models/source_connector_schema.py +++ b/src/python/vectorize_client/models/pipeline_source_connector_schema.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -23,9 +23,9 @@ from typing import Optional, Set from typing_extensions import Self -class SourceConnectorSchema(BaseModel): +class PipelineSourceConnectorSchema(BaseModel): """ - SourceConnectorSchema + PipelineSourceConnectorSchema """ # noqa: E501 id: StrictStr type: SourceConnectorType @@ -50,7 +50,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SourceConnectorSchema from a JSON string""" + """Create an instance of PipelineSourceConnectorSchema from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -75,7 +75,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SourceConnectorSchema from a dict""" + """Create an instance of PipelineSourceConnectorSchema from a dict""" if obj is None: return None diff --git a/src/python/vectorize_client/models/pipeline_summary.py b/src/python/vectorize_client/models/pipeline_summary.py index bcd21cc..ad6d162 100644 --- a/src/python/vectorize_client/models/pipeline_summary.py +++ b/src/python/vectorize_client/models/pipeline_summary.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union -from vectorize_client.models.ai_platform import AIPlatform +from vectorize_client.models.ai_platform_connector import AIPlatformConnector from vectorize_client.models.destination_connector import DestinationConnector from vectorize_client.models.source_connector import SourceConnector from typing import Optional, Set @@ -44,7 +44,7 @@ class PipelineSummary(BaseModel): config_doc: Optional[Dict[str, Any]] = Field(default=None, alias="configDoc") source_connectors: List[SourceConnector] = Field(alias="sourceConnectors") destination_connectors: List[DestinationConnector] = Field(alias="destinationConnectors") - ai_platforms: List[AIPlatform] = Field(alias="aiPlatforms") + ai_platforms: List[AIPlatformConnector] = Field(alias="aiPlatforms") __properties: ClassVar[List[str]] = ["id", "name", "documentCount", "sourceConnectorAuthIds", "destinationConnectorAuthIds", "aiPlatformAuthIds", "sourceConnectorTypes", "destinationConnectorTypes", "aiPlatformTypes", "createdAt", "createdBy", "status", "configDoc", "sourceConnectors", "destinationConnectors", "aiPlatforms"] model_config = ConfigDict( @@ -139,7 +139,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "configDoc": obj.get("configDoc"), "sourceConnectors": [SourceConnector.from_dict(_item) for _item in obj["sourceConnectors"]] if obj.get("sourceConnectors") is not None else None, "destinationConnectors": [DestinationConnector.from_dict(_item) for _item in obj["destinationConnectors"]] if obj.get("destinationConnectors") is not None else None, - "aiPlatforms": [AIPlatform.from_dict(_item) for _item in obj["aiPlatforms"]] if obj.get("aiPlatforms") is not None else None + "aiPlatforms": [AIPlatformConnector.from_dict(_item) for _item in obj["aiPlatforms"]] if obj.get("aiPlatforms") is not None else None }) return _obj diff --git a/src/python/vectorize_client/models/postgresql.py b/src/python/vectorize_client/models/postgresql.py index b4d54ae..d69fda7 100644 --- a/src/python/vectorize_client/models/postgresql.py +++ b/src/python/vectorize_client/models/postgresql.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator from typing import Any, ClassVar, Dict, List -from vectorize_client.models.postgresql_config import POSTGRESQLConfig +from vectorize_client.models.postgresql_auth_config import POSTGRESQLAuthConfig from typing import Optional, Set from typing_extensions import Self @@ -29,7 +29,7 @@ class Postgresql(BaseModel): """ # noqa: E501 name: StrictStr = Field(description="Name of the connector") type: StrictStr = Field(description="Connector type (must be \"POSTGRESQL\")") - config: POSTGRESQLConfig + config: POSTGRESQLAuthConfig __properties: ClassVar[List[str]] = ["name", "type", "config"] @field_validator('type') @@ -95,7 +95,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), "type": obj.get("type"), - "config": POSTGRESQLConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + "config": POSTGRESQLAuthConfig.from_dict(obj["config"]) if obj.get("config") is not None else None }) return _obj diff --git a/src/python/vectorize_client/models/postgresql1.py b/src/python/vectorize_client/models/postgresql1.py index 0d93398..b0e97b9 100644 --- a/src/python/vectorize_client/models/postgresql1.py +++ b/src/python/vectorize_client/models/postgresql1.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from vectorize_client.models.postgresql_config import POSTGRESQLConfig +from vectorize_client.models.postgresql_auth_config import POSTGRESQLAuthConfig from typing import Optional, Set from typing_extensions import Self @@ -27,7 +27,7 @@ class Postgresql1(BaseModel): """ Postgresql1 """ # noqa: E501 - config: Optional[POSTGRESQLConfig] = None + config: Optional[POSTGRESQLAuthConfig] = None __properties: ClassVar[List[str]] = ["config"] model_config = ConfigDict( @@ -84,7 +84,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "config": POSTGRESQLConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + "config": POSTGRESQLAuthConfig.from_dict(obj["config"]) if obj.get("config") is not None else None }) return _obj diff --git a/src/python/vectorize_client/models/postgresql_auth_config.py b/src/python/vectorize_client/models/postgresql_auth_config.py index 69a937d..ea49a39 100644 --- a/src/python/vectorize_client/models/postgresql_auth_config.py +++ b/src/python/vectorize_client/models/postgresql_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -26,13 +26,12 @@ class POSTGRESQLAuthConfig(BaseModel): """ Authentication configuration for PostgreSQL """ # noqa: E501 - name: StrictStr = Field(description="Name. Example: Enter a descriptive name for your PostgreSQL integration") host: StrictStr = Field(description="Host. Example: Enter the host of the deployment") port: Optional[Union[StrictFloat, StrictInt]] = Field(default=5432, description="Port. Example: Enter the port of the deployment") database: StrictStr = Field(description="Database. Example: Enter the database name") username: StrictStr = Field(description="Username. Example: Enter the username") password: SecretStr = Field(description="Password. Example: Enter the username's password") - __properties: ClassVar[List[str]] = ["name", "host", "port", "database", "username", "password"] + __properties: ClassVar[List[str]] = ["host", "port", "database", "username", "password"] model_config = ConfigDict( populate_by_name=True, @@ -85,7 +84,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "name": obj.get("name"), "host": obj.get("host"), "port": obj.get("port") if obj.get("port") is not None else 5432, "database": obj.get("database"), diff --git a/src/python/vectorize_client/models/postgresql_config.py b/src/python/vectorize_client/models/postgresql_config.py index 661e277..3b45541 100644 --- a/src/python/vectorize_client/models/postgresql_config.py +++ b/src/python/vectorize_client/models/postgresql_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/qdrant.py b/src/python/vectorize_client/models/qdrant.py index 3d1f336..bf96b79 100644 --- a/src/python/vectorize_client/models/qdrant.py +++ b/src/python/vectorize_client/models/qdrant.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator from typing import Any, ClassVar, Dict, List -from vectorize_client.models.qdrant_config import QDRANTConfig +from vectorize_client.models.qdrant_auth_config import QDRANTAuthConfig from typing import Optional, Set from typing_extensions import Self @@ -29,7 +29,7 @@ class Qdrant(BaseModel): """ # noqa: E501 name: StrictStr = Field(description="Name of the connector") type: StrictStr = Field(description="Connector type (must be \"QDRANT\")") - config: QDRANTConfig + config: QDRANTAuthConfig __properties: ClassVar[List[str]] = ["name", "type", "config"] @field_validator('type') @@ -95,7 +95,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), "type": obj.get("type"), - "config": QDRANTConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + "config": QDRANTAuthConfig.from_dict(obj["config"]) if obj.get("config") is not None else None }) return _obj diff --git a/src/python/vectorize_client/models/qdrant1.py b/src/python/vectorize_client/models/qdrant1.py index d97a055..655ac5c 100644 --- a/src/python/vectorize_client/models/qdrant1.py +++ b/src/python/vectorize_client/models/qdrant1.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from vectorize_client.models.qdrant_config import QDRANTConfig +from vectorize_client.models.qdrant_auth_config import QDRANTAuthConfig from typing import Optional, Set from typing_extensions import Self @@ -27,7 +27,7 @@ class Qdrant1(BaseModel): """ Qdrant1 """ # noqa: E501 - config: Optional[QDRANTConfig] = None + config: Optional[QDRANTAuthConfig] = None __properties: ClassVar[List[str]] = ["config"] model_config = ConfigDict( @@ -84,7 +84,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "config": QDRANTConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + "config": QDRANTAuthConfig.from_dict(obj["config"]) if obj.get("config") is not None else None }) return _obj diff --git a/src/python/vectorize_client/models/qdrant_auth_config.py b/src/python/vectorize_client/models/qdrant_auth_config.py index 427ba67..cd0f439 100644 --- a/src/python/vectorize_client/models/qdrant_auth_config.py +++ b/src/python/vectorize_client/models/qdrant_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -27,10 +27,9 @@ class QDRANTAuthConfig(BaseModel): """ Authentication configuration for Qdrant """ # noqa: E501 - name: StrictStr = Field(description="Name. Example: Enter a descriptive name for your Qdrant integration") host: StrictStr = Field(description="Host. Example: Enter your host") api_key: Annotated[str, Field(strict=True)] = Field(description="API Key. Example: Enter your API key", alias="api-key") - __properties: ClassVar[List[str]] = ["name", "host", "api-key"] + __properties: ClassVar[List[str]] = ["host", "api-key"] @field_validator('api_key') def api_key_validate_regular_expression(cls, value): @@ -90,7 +89,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "name": obj.get("name"), "host": obj.get("host"), "api-key": obj.get("api-key") }) diff --git a/src/python/vectorize_client/models/qdrant_config.py b/src/python/vectorize_client/models/qdrant_config.py index e73c4b6..dcdd658 100644 --- a/src/python/vectorize_client/models/qdrant_config.py +++ b/src/python/vectorize_client/models/qdrant_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. 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 index e3936b6..c4c8b7d 100644 --- 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 @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. 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 index 11ecb03..73d96c5 100644 --- 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 @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/retrieve_context.py b/src/python/vectorize_client/models/retrieve_context.py index 3664508..4168aa1 100644 --- a/src/python/vectorize_client/models/retrieve_context.py +++ b/src/python/vectorize_client/models/retrieve_context.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/retrieve_context_message.py b/src/python/vectorize_client/models/retrieve_context_message.py index ddf4431..4c26712 100644 --- a/src/python/vectorize_client/models/retrieve_context_message.py +++ b/src/python/vectorize_client/models/retrieve_context_message.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/retrieve_documents_request.py b/src/python/vectorize_client/models/retrieve_documents_request.py index 66a2b73..8c6e4de 100644 --- a/src/python/vectorize_client/models/retrieve_documents_request.py +++ b/src/python/vectorize_client/models/retrieve_documents_request.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/retrieve_documents_response.py b/src/python/vectorize_client/models/retrieve_documents_response.py index fada136..a8dc57a 100644 --- a/src/python/vectorize_client/models/retrieve_documents_response.py +++ b/src/python/vectorize_client/models/retrieve_documents_response.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/schedule_schema.py b/src/python/vectorize_client/models/schedule_schema.py index 606a801..d412707 100644 --- a/src/python/vectorize_client/models/schedule_schema.py +++ b/src/python/vectorize_client/models/schedule_schema.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/schedule_schema_type.py b/src/python/vectorize_client/models/schedule_schema_type.py index 94db02b..0599386 100644 --- a/src/python/vectorize_client/models/schedule_schema_type.py +++ b/src/python/vectorize_client/models/schedule_schema_type.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/sharepoint.py b/src/python/vectorize_client/models/sharepoint.py index a96ffcf..02aa9fd 100644 --- a/src/python/vectorize_client/models/sharepoint.py +++ b/src/python/vectorize_client/models/sharepoint.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator from typing import Any, ClassVar, Dict, List -from vectorize_client.models.sharepoint_config import SHAREPOINTConfig +from vectorize_client.models.sharepoint_auth_config import SHAREPOINTAuthConfig from typing import Optional, Set from typing_extensions import Self @@ -29,7 +29,7 @@ class Sharepoint(BaseModel): """ # noqa: E501 name: StrictStr = Field(description="Name of the connector") type: StrictStr = Field(description="Connector type (must be \"SHAREPOINT\")") - config: SHAREPOINTConfig + config: SHAREPOINTAuthConfig __properties: ClassVar[List[str]] = ["name", "type", "config"] @field_validator('type') @@ -95,7 +95,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), "type": obj.get("type"), - "config": SHAREPOINTConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + "config": SHAREPOINTAuthConfig.from_dict(obj["config"]) if obj.get("config") is not None else None }) return _obj diff --git a/src/python/vectorize_client/models/sharepoint1.py b/src/python/vectorize_client/models/sharepoint1.py index 5004654..9d9e50c 100644 --- a/src/python/vectorize_client/models/sharepoint1.py +++ b/src/python/vectorize_client/models/sharepoint1.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from vectorize_client.models.sharepoint_config import SHAREPOINTConfig +from vectorize_client.models.sharepoint_auth_config import SHAREPOINTAuthConfig from typing import Optional, Set from typing_extensions import Self @@ -27,7 +27,7 @@ class Sharepoint1(BaseModel): """ Sharepoint1 """ # noqa: E501 - config: Optional[SHAREPOINTConfig] = None + config: Optional[SHAREPOINTAuthConfig] = None __properties: ClassVar[List[str]] = ["config"] model_config = ConfigDict( @@ -84,7 +84,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "config": SHAREPOINTConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + "config": SHAREPOINTAuthConfig.from_dict(obj["config"]) if obj.get("config") is not None else None }) return _obj diff --git a/src/python/vectorize_client/models/sharepoint_auth_config.py b/src/python/vectorize_client/models/sharepoint_auth_config.py index 61b53f4..e6c53b0 100644 --- a/src/python/vectorize_client/models/sharepoint_auth_config.py +++ b/src/python/vectorize_client/models/sharepoint_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -26,11 +26,10 @@ class SHAREPOINTAuthConfig(BaseModel): """ Authentication configuration for SharePoint """ # noqa: E501 - name: StrictStr = Field(description="Name. Example: Enter a descriptive name") ms_client_id: StrictStr = Field(description="Client Id. Example: Enter Client Id", alias="ms-client-id") ms_tenant_id: StrictStr = Field(description="Tenant Id. Example: Enter Tenant Id", alias="ms-tenant-id") ms_client_secret: SecretStr = Field(description="Client Secret. Example: Enter Client Secret", alias="ms-client-secret") - __properties: ClassVar[List[str]] = ["name", "ms-client-id", "ms-tenant-id", "ms-client-secret"] + __properties: ClassVar[List[str]] = ["ms-client-id", "ms-tenant-id", "ms-client-secret"] model_config = ConfigDict( populate_by_name=True, @@ -83,7 +82,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "name": obj.get("name"), "ms-client-id": obj.get("ms-client-id"), "ms-tenant-id": obj.get("ms-tenant-id"), "ms-client-secret": obj.get("ms-client-secret") diff --git a/src/python/vectorize_client/models/sharepoint_config.py b/src/python/vectorize_client/models/sharepoint_config.py index d2f54e7..38b6d38 100644 --- a/src/python/vectorize_client/models/sharepoint_config.py +++ b/src/python/vectorize_client/models/sharepoint_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,6 @@ 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 @@ -28,7 +27,7 @@ class SHAREPOINTConfig(BaseModel): Configuration for SharePoint connector """ # noqa: E501 file_extensions: List[StrictStr] = Field(description="File Extensions", alias="file-extensions") - sites: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="Site Name(s). Example: Filter by site name. All sites if empty.") + sites: Optional[List[StrictStr]] = Field(default=None, description="Site Name(s). Example: Filter by site name. All sites if empty.") folder_path: Optional[StrictStr] = Field(default=None, description="Read starting from this folder (optional). Example: Enter Folder path: /exampleFolder/subFolder", alias="folder-path") __properties: ClassVar[List[str]] = ["file-extensions", "sites", "folder-path"] @@ -36,18 +35,8 @@ class SHAREPOINTConfig(BaseModel): def file_extensions_validate_enum(cls, value): """Validates the enum""" for i in value: - if i not in set(['pdf', 'doc,docx,gdoc,odt,rtf,epub', 'ppt,pptx,gslides', 'xls,xlsx,gsheets,ods', 'eml,msg', 'txt', 'html,htm', 'json', 'csv', 'jpg,jpeg,png,webp,svg,gif']): - raise ValueError("each list item must be one of ('pdf', 'doc,docx,gdoc,odt,rtf,epub', 'ppt,pptx,gslides', 'xls,xlsx,gsheets,ods', 'eml,msg', 'txt', 'html,htm', 'json', 'csv', 'jpg,jpeg,png,webp,svg,gif')") - return value - - @field_validator('sites') - def sites_validate_regular_expression(cls, value): - """Validates the regular expression""" - if value is None: - return value - - if not re.match(r"^(?!.*(https?:\/\/|www\.))[\w\s\-.]+$", value): - raise ValueError(r"must validate the regular expression /^(?!.*(https?:\/\/|www\.))[\w\s\-.]+$/") + if i not in set(['pdf', 'doc,docx,gdoc,odt,rtf,epub', 'ppt,pptx,gslides', 'xls,xlsx,gsheets,ods', 'eml,msg', 'txt', 'html,htm', 'jpg,jpeg,png,webp,svg,gif', 'json', 'csv']): + raise ValueError("each list item must be one of ('pdf', 'doc,docx,gdoc,odt,rtf,epub', 'ppt,pptx,gslides', 'xls,xlsx,gsheets,ods', 'eml,msg', 'txt', 'html,htm', 'jpg,jpeg,png,webp,svg,gif', 'json', 'csv')") return value model_config = ConfigDict( diff --git a/src/python/vectorize_client/models/singlestore.py b/src/python/vectorize_client/models/singlestore.py index 805345b..d3f22ab 100644 --- a/src/python/vectorize_client/models/singlestore.py +++ b/src/python/vectorize_client/models/singlestore.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator from typing import Any, ClassVar, Dict, List -from vectorize_client.models.singlestore_config import SINGLESTOREConfig +from vectorize_client.models.singlestore_auth_config import SINGLESTOREAuthConfig from typing import Optional, Set from typing_extensions import Self @@ -29,7 +29,7 @@ class Singlestore(BaseModel): """ # noqa: E501 name: StrictStr = Field(description="Name of the connector") type: StrictStr = Field(description="Connector type (must be \"SINGLESTORE\")") - config: SINGLESTOREConfig + config: SINGLESTOREAuthConfig __properties: ClassVar[List[str]] = ["name", "type", "config"] @field_validator('type') @@ -95,7 +95,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), "type": obj.get("type"), - "config": SINGLESTOREConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + "config": SINGLESTOREAuthConfig.from_dict(obj["config"]) if obj.get("config") is not None else None }) return _obj diff --git a/src/python/vectorize_client/models/singlestore1.py b/src/python/vectorize_client/models/singlestore1.py index 407014f..98fa361 100644 --- a/src/python/vectorize_client/models/singlestore1.py +++ b/src/python/vectorize_client/models/singlestore1.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from vectorize_client.models.singlestore_config import SINGLESTOREConfig +from vectorize_client.models.singlestore_auth_config import SINGLESTOREAuthConfig from typing import Optional, Set from typing_extensions import Self @@ -27,7 +27,7 @@ class Singlestore1(BaseModel): """ Singlestore1 """ # noqa: E501 - config: Optional[SINGLESTOREConfig] = None + config: Optional[SINGLESTOREAuthConfig] = None __properties: ClassVar[List[str]] = ["config"] model_config = ConfigDict( @@ -84,7 +84,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "config": SINGLESTOREConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + "config": SINGLESTOREAuthConfig.from_dict(obj["config"]) if obj.get("config") is not None else None }) return _obj diff --git a/src/python/vectorize_client/models/singlestore_auth_config.py b/src/python/vectorize_client/models/singlestore_auth_config.py index c9f5720..1f332ac 100644 --- a/src/python/vectorize_client/models/singlestore_auth_config.py +++ b/src/python/vectorize_client/models/singlestore_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -26,13 +26,12 @@ class SINGLESTOREAuthConfig(BaseModel): """ Authentication configuration for SingleStore """ # noqa: E501 - name: StrictStr = Field(description="Name. Example: Enter a descriptive name for your SingleStore integration") host: StrictStr = Field(description="Host. Example: Enter the host of the deployment") port: Union[StrictFloat, StrictInt] = Field(description="Port. Example: Enter the port of the deployment") database: StrictStr = Field(description="Database. Example: Enter the database name") username: StrictStr = Field(description="Username. Example: Enter the username") password: SecretStr = Field(description="Password. Example: Enter the username's password") - __properties: ClassVar[List[str]] = ["name", "host", "port", "database", "username", "password"] + __properties: ClassVar[List[str]] = ["host", "port", "database", "username", "password"] model_config = ConfigDict( populate_by_name=True, @@ -85,7 +84,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "name": obj.get("name"), "host": obj.get("host"), "port": obj.get("port"), "database": obj.get("database"), diff --git a/src/python/vectorize_client/models/singlestore_config.py b/src/python/vectorize_client/models/singlestore_config.py index 76ed47f..d76c21b 100644 --- a/src/python/vectorize_client/models/singlestore_config.py +++ b/src/python/vectorize_client/models/singlestore_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/source_connector.py b/src/python/vectorize_client/models/source_connector.py index 187a589..53ad268 100644 --- a/src/python/vectorize_client/models/source_connector.py +++ b/src/python/vectorize_client/models/source_connector.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/source_connector_input.py b/src/python/vectorize_client/models/source_connector_input.py index 0751996..1db8f0f 100644 --- a/src/python/vectorize_client/models/source_connector_input.py +++ b/src/python/vectorize_client/models/source_connector_input.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/source_connector_input_config.py b/src/python/vectorize_client/models/source_connector_input_config.py index 5defd25..bb69a8c 100644 --- a/src/python/vectorize_client/models/source_connector_input_config.py +++ b/src/python/vectorize_client/models/source_connector_input_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/source_connector_type.py b/src/python/vectorize_client/models/source_connector_type.py index 181e386..299d4bb 100644 --- a/src/python/vectorize_client/models/source_connector_type.py +++ b/src/python/vectorize_client/models/source_connector_type.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. 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 213ea07..58d5266 100644 --- a/src/python/vectorize_client/models/start_deep_research_request.py +++ b/src/python/vectorize_client/models/start_deep_research_request.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/start_deep_research_response.py b/src/python/vectorize_client/models/start_deep_research_response.py index 1d2f1ab..5f87e4a 100644 --- a/src/python/vectorize_client/models/start_deep_research_response.py +++ b/src/python/vectorize_client/models/start_deep_research_response.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/start_extraction_request.py b/src/python/vectorize_client/models/start_extraction_request.py index 0f8bf56..009ace9 100644 --- a/src/python/vectorize_client/models/start_extraction_request.py +++ b/src/python/vectorize_client/models/start_extraction_request.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/start_extraction_response.py b/src/python/vectorize_client/models/start_extraction_response.py index f610627..83b79a0 100644 --- a/src/python/vectorize_client/models/start_extraction_response.py +++ b/src/python/vectorize_client/models/start_extraction_response.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/start_file_upload_request.py b/src/python/vectorize_client/models/start_file_upload_request.py index b10920d..def8642 100644 --- a/src/python/vectorize_client/models/start_file_upload_request.py +++ b/src/python/vectorize_client/models/start_file_upload_request.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/start_file_upload_response.py b/src/python/vectorize_client/models/start_file_upload_response.py index a62dc7c..eee80f3 100644 --- a/src/python/vectorize_client/models/start_file_upload_response.py +++ b/src/python/vectorize_client/models/start_file_upload_response.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/start_file_upload_to_connector_request.py b/src/python/vectorize_client/models/start_file_upload_to_connector_request.py index 6bea180..5c4047b 100644 --- a/src/python/vectorize_client/models/start_file_upload_to_connector_request.py +++ b/src/python/vectorize_client/models/start_file_upload_to_connector_request.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/start_file_upload_to_connector_response.py b/src/python/vectorize_client/models/start_file_upload_to_connector_response.py index 385afc1..4f81824 100644 --- a/src/python/vectorize_client/models/start_file_upload_to_connector_response.py +++ b/src/python/vectorize_client/models/start_file_upload_to_connector_response.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/start_pipeline_response.py b/src/python/vectorize_client/models/start_pipeline_response.py index 0b1634d..9ba6708 100644 --- a/src/python/vectorize_client/models/start_pipeline_response.py +++ b/src/python/vectorize_client/models/start_pipeline_response.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/stop_pipeline_response.py b/src/python/vectorize_client/models/stop_pipeline_response.py index 6531c37..aee44a9 100644 --- a/src/python/vectorize_client/models/stop_pipeline_response.py +++ b/src/python/vectorize_client/models/stop_pipeline_response.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/supabase.py b/src/python/vectorize_client/models/supabase.py index 90fa38b..8280d58 100644 --- a/src/python/vectorize_client/models/supabase.py +++ b/src/python/vectorize_client/models/supabase.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator from typing import Any, ClassVar, Dict, List -from vectorize_client.models.supabase_config import SUPABASEConfig +from vectorize_client.models.supabase_auth_config import SUPABASEAuthConfig from typing import Optional, Set from typing_extensions import Self @@ -29,7 +29,7 @@ class Supabase(BaseModel): """ # noqa: E501 name: StrictStr = Field(description="Name of the connector") type: StrictStr = Field(description="Connector type (must be \"SUPABASE\")") - config: SUPABASEConfig + config: SUPABASEAuthConfig __properties: ClassVar[List[str]] = ["name", "type", "config"] @field_validator('type') @@ -95,7 +95,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), "type": obj.get("type"), - "config": SUPABASEConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + "config": SUPABASEAuthConfig.from_dict(obj["config"]) if obj.get("config") is not None else None }) return _obj diff --git a/src/python/vectorize_client/models/supabase1.py b/src/python/vectorize_client/models/supabase1.py index a0d8744..3a01806 100644 --- a/src/python/vectorize_client/models/supabase1.py +++ b/src/python/vectorize_client/models/supabase1.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from vectorize_client.models.supabase_config import SUPABASEConfig +from vectorize_client.models.supabase_auth_config import SUPABASEAuthConfig from typing import Optional, Set from typing_extensions import Self @@ -27,7 +27,7 @@ class Supabase1(BaseModel): """ Supabase1 """ # noqa: E501 - config: Optional[SUPABASEConfig] = None + config: Optional[SUPABASEAuthConfig] = None __properties: ClassVar[List[str]] = ["config"] model_config = ConfigDict( @@ -84,7 +84,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "config": SUPABASEConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + "config": SUPABASEAuthConfig.from_dict(obj["config"]) if obj.get("config") is not None else None }) return _obj diff --git a/src/python/vectorize_client/models/supabase_auth_config.py b/src/python/vectorize_client/models/supabase_auth_config.py index 19761da..dda8c4d 100644 --- a/src/python/vectorize_client/models/supabase_auth_config.py +++ b/src/python/vectorize_client/models/supabase_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -26,13 +26,12 @@ class SUPABASEAuthConfig(BaseModel): """ Authentication configuration for Supabase """ # noqa: E501 - name: StrictStr = Field(description="Name. Example: Enter a descriptive name for your Supabase integration") host: StrictStr = Field(description="Host. Example: Enter the host of the deployment") port: Optional[Union[StrictFloat, StrictInt]] = Field(default=5432, description="Port. Example: Enter the port of the deployment") database: StrictStr = Field(description="Database. Example: Enter the database name") username: StrictStr = Field(description="Username. Example: Enter the username") password: SecretStr = Field(description="Password. Example: Enter the username's password") - __properties: ClassVar[List[str]] = ["name", "host", "port", "database", "username", "password"] + __properties: ClassVar[List[str]] = ["host", "port", "database", "username", "password"] model_config = ConfigDict( populate_by_name=True, @@ -85,7 +84,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "name": obj.get("name"), "host": obj.get("host") if obj.get("host") is not None else 'aws-0-us-east-1.pooler.supabase.com', "port": obj.get("port") if obj.get("port") is not None else 5432, "database": obj.get("database"), diff --git a/src/python/vectorize_client/models/supabase_config.py b/src/python/vectorize_client/models/supabase_config.py index 5e35cc8..60612a0 100644 --- a/src/python/vectorize_client/models/supabase_config.py +++ b/src/python/vectorize_client/models/supabase_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/turbopuffer.py b/src/python/vectorize_client/models/turbopuffer.py index cbd0a43..bd52f89 100644 --- a/src/python/vectorize_client/models/turbopuffer.py +++ b/src/python/vectorize_client/models/turbopuffer.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator from typing import Any, ClassVar, Dict, List -from vectorize_client.models.turbopuffer_config import TURBOPUFFERConfig +from vectorize_client.models.turbopuffer_auth_config import TURBOPUFFERAuthConfig from typing import Optional, Set from typing_extensions import Self @@ -29,7 +29,7 @@ class Turbopuffer(BaseModel): """ # noqa: E501 name: StrictStr = Field(description="Name of the connector") type: StrictStr = Field(description="Connector type (must be \"TURBOPUFFER\")") - config: TURBOPUFFERConfig + config: TURBOPUFFERAuthConfig __properties: ClassVar[List[str]] = ["name", "type", "config"] @field_validator('type') @@ -95,7 +95,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), "type": obj.get("type"), - "config": TURBOPUFFERConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + "config": TURBOPUFFERAuthConfig.from_dict(obj["config"]) if obj.get("config") is not None else None }) return _obj diff --git a/src/python/vectorize_client/models/turbopuffer1.py b/src/python/vectorize_client/models/turbopuffer1.py index 96df8b7..6caaafc 100644 --- a/src/python/vectorize_client/models/turbopuffer1.py +++ b/src/python/vectorize_client/models/turbopuffer1.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from vectorize_client.models.turbopuffer_config import TURBOPUFFERConfig +from vectorize_client.models.turbopuffer_auth_config import TURBOPUFFERAuthConfig from typing import Optional, Set from typing_extensions import Self @@ -27,7 +27,7 @@ class Turbopuffer1(BaseModel): """ Turbopuffer1 """ # noqa: E501 - config: Optional[TURBOPUFFERConfig] = None + config: Optional[TURBOPUFFERAuthConfig] = None __properties: ClassVar[List[str]] = ["config"] model_config = ConfigDict( @@ -84,7 +84,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "config": TURBOPUFFERConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + "config": TURBOPUFFERAuthConfig.from_dict(obj["config"]) if obj.get("config") is not None else None }) return _obj diff --git a/src/python/vectorize_client/models/turbopuffer_auth_config.py b/src/python/vectorize_client/models/turbopuffer_auth_config.py index bf3f7fb..c7252f8 100644 --- a/src/python/vectorize_client/models/turbopuffer_auth_config.py +++ b/src/python/vectorize_client/models/turbopuffer_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from pydantic import BaseModel, ConfigDict, Field, field_validator from typing import Any, ClassVar, Dict, List from typing_extensions import Annotated from typing import Optional, Set @@ -27,9 +27,8 @@ class TURBOPUFFERAuthConfig(BaseModel): """ Authentication configuration for Turbopuffer """ # noqa: E501 - name: StrictStr = Field(description="Name. Example: Enter a descriptive name for your Turbopuffer integration") api_key: Annotated[str, Field(strict=True)] = Field(description="API Key. Example: Enter your API key", alias="api-key") - __properties: ClassVar[List[str]] = ["name", "api-key"] + __properties: ClassVar[List[str]] = ["api-key"] @field_validator('api_key') def api_key_validate_regular_expression(cls, value): @@ -89,7 +88,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "name": obj.get("name"), "api-key": obj.get("api-key") }) return _obj diff --git a/src/python/vectorize_client/models/turbopuffer_config.py b/src/python/vectorize_client/models/turbopuffer_config.py index 3147b3f..9c2f0c3 100644 --- a/src/python/vectorize_client/models/turbopuffer_config.py +++ b/src/python/vectorize_client/models/turbopuffer_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. 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 bb65ab6..4ff34dd 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 @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. 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 index 18a4070..c3db66b 100644 --- a/src/python/vectorize_client/models/update_ai_platform_connector_response.py +++ b/src/python/vectorize_client/models/update_ai_platform_connector_response.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/update_destination_connector_request.py b/src/python/vectorize_client/models/update_destination_connector_request.py index 598f0d2..de00d8f 100644 --- a/src/python/vectorize_client/models/update_destination_connector_request.py +++ b/src/python/vectorize_client/models/update_destination_connector_request.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/update_destination_connector_response.py b/src/python/vectorize_client/models/update_destination_connector_response.py index b5c79b5..dce7c36 100644 --- a/src/python/vectorize_client/models/update_destination_connector_response.py +++ b/src/python/vectorize_client/models/update_destination_connector_response.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. 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 4c2d499..680dfe1 100644 --- a/src/python/vectorize_client/models/update_source_connector_request.py +++ b/src/python/vectorize_client/models/update_source_connector_request.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/update_source_connector_response.py b/src/python/vectorize_client/models/update_source_connector_response.py index 1091dbe..65c5b3a 100644 --- a/src/python/vectorize_client/models/update_source_connector_response.py +++ b/src/python/vectorize_client/models/update_source_connector_response.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. 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 index 619fd84..781555f 100644 --- a/src/python/vectorize_client/models/update_source_connector_response_data.py +++ b/src/python/vectorize_client/models/update_source_connector_response_data.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. 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 index d55780b..9a7a901 100644 --- 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 @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. 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 index e4590d4..2827df4 100644 --- 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 @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. 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 index 11395b9..ef44358 100644 --- a/src/python/vectorize_client/models/updated_ai_platform_connector_data.py +++ b/src/python/vectorize_client/models/updated_ai_platform_connector_data.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from vectorize_client.models.ai_platform import AIPlatform +from vectorize_client.models.ai_platform_connector import AIPlatformConnector from typing import Optional, Set from typing_extensions import Self @@ -27,7 +27,7 @@ class UpdatedAIPlatformConnectorData(BaseModel): """ UpdatedAIPlatformConnectorData """ # noqa: E501 - updated_connector: AIPlatform = Field(alias="updatedConnector") + updated_connector: AIPlatformConnector = Field(alias="updatedConnector") pipeline_ids: Optional[List[StrictStr]] = Field(default=None, alias="pipelineIds") __properties: ClassVar[List[str]] = ["updatedConnector", "pipelineIds"] @@ -85,7 +85,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "updatedConnector": AIPlatform.from_dict(obj["updatedConnector"]) if obj.get("updatedConnector") is not None else None, + "updatedConnector": AIPlatformConnector.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 index 2d9b2b8..513de8c 100644 --- a/src/python/vectorize_client/models/updated_destination_connector_data.py +++ b/src/python/vectorize_client/models/updated_destination_connector_data.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/upload_file.py b/src/python/vectorize_client/models/upload_file.py index de33b67..d70e260 100644 --- a/src/python/vectorize_client/models/upload_file.py +++ b/src/python/vectorize_client/models/upload_file.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/vertex.py b/src/python/vectorize_client/models/vertex.py index 1a35752..ba2b038 100644 --- a/src/python/vectorize_client/models/vertex.py +++ b/src/python/vectorize_client/models/vertex.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/vertex1.py b/src/python/vectorize_client/models/vertex1.py index 3aec028..4780e6d 100644 --- a/src/python/vectorize_client/models/vertex1.py +++ b/src/python/vectorize_client/models/vertex1.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/vertex_auth_config.py b/src/python/vectorize_client/models/vertex_auth_config.py index 824be8a..e7dd136 100644 --- a/src/python/vectorize_client/models/vertex_auth_config.py +++ b/src/python/vectorize_client/models/vertex_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -26,10 +26,9 @@ class VERTEXAuthConfig(BaseModel): """ Authentication configuration for Google Vertex AI """ # noqa: E501 - name: StrictStr = Field(description="Name. Example: Enter a descriptive name for your Google Vertex AI integration") key: SecretStr = Field(description="Service Account Json. Example: Enter the contents of your Google Vertex AI Service Account JSON file") region: StrictStr = Field(description="Region. Example: Region Name, e.g. us-central1") - __properties: ClassVar[List[str]] = ["name", "key", "region"] + __properties: ClassVar[List[str]] = ["key", "region"] model_config = ConfigDict( populate_by_name=True, @@ -82,7 +81,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "name": obj.get("name"), "key": obj.get("key"), "region": obj.get("region") }) diff --git a/src/python/vectorize_client/models/voyage.py b/src/python/vectorize_client/models/voyage.py index b1be482..d07a4b5 100644 --- a/src/python/vectorize_client/models/voyage.py +++ b/src/python/vectorize_client/models/voyage.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/voyage1.py b/src/python/vectorize_client/models/voyage1.py index 1929be9..a740c28 100644 --- a/src/python/vectorize_client/models/voyage1.py +++ b/src/python/vectorize_client/models/voyage1.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/voyage_auth_config.py b/src/python/vectorize_client/models/voyage_auth_config.py index 87474b5..cb4f436 100644 --- a/src/python/vectorize_client/models/voyage_auth_config.py +++ b/src/python/vectorize_client/models/voyage_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from pydantic import BaseModel, ConfigDict, Field, field_validator from typing import Any, ClassVar, Dict, List from typing_extensions import Annotated from typing import Optional, Set @@ -27,9 +27,8 @@ class VOYAGEAuthConfig(BaseModel): """ Authentication configuration for Voyage AI """ # noqa: E501 - name: StrictStr = Field(description="Name. Example: Enter a descriptive name for your Voyage AI integration") key: Annotated[str, Field(strict=True)] = Field(description="API Key. Example: Enter your Voyage AI API Key") - __properties: ClassVar[List[str]] = ["name", "key"] + __properties: ClassVar[List[str]] = ["key"] @field_validator('key') def key_validate_regular_expression(cls, value): @@ -89,7 +88,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "name": obj.get("name"), "key": obj.get("key") }) return _obj diff --git a/src/python/vectorize_client/models/weaviate.py b/src/python/vectorize_client/models/weaviate.py index 854a559..67cb2ed 100644 --- a/src/python/vectorize_client/models/weaviate.py +++ b/src/python/vectorize_client/models/weaviate.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator from typing import Any, ClassVar, Dict, List -from vectorize_client.models.weaviate_config import WEAVIATEConfig +from vectorize_client.models.weaviate_auth_config import WEAVIATEAuthConfig from typing import Optional, Set from typing_extensions import Self @@ -29,7 +29,7 @@ class Weaviate(BaseModel): """ # noqa: E501 name: StrictStr = Field(description="Name of the connector") type: StrictStr = Field(description="Connector type (must be \"WEAVIATE\")") - config: WEAVIATEConfig + config: WEAVIATEAuthConfig __properties: ClassVar[List[str]] = ["name", "type", "config"] @field_validator('type') @@ -95,7 +95,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), "type": obj.get("type"), - "config": WEAVIATEConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + "config": WEAVIATEAuthConfig.from_dict(obj["config"]) if obj.get("config") is not None else None }) return _obj diff --git a/src/python/vectorize_client/models/weaviate1.py b/src/python/vectorize_client/models/weaviate1.py index 8012251..27a451c 100644 --- a/src/python/vectorize_client/models/weaviate1.py +++ b/src/python/vectorize_client/models/weaviate1.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from vectorize_client.models.weaviate_config import WEAVIATEConfig +from vectorize_client.models.weaviate_auth_config import WEAVIATEAuthConfig from typing import Optional, Set from typing_extensions import Self @@ -27,7 +27,7 @@ class Weaviate1(BaseModel): """ Weaviate1 """ # noqa: E501 - config: Optional[WEAVIATEConfig] = None + config: Optional[WEAVIATEAuthConfig] = None __properties: ClassVar[List[str]] = ["config"] model_config = ConfigDict( @@ -84,7 +84,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "config": WEAVIATEConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + "config": WEAVIATEAuthConfig.from_dict(obj["config"]) if obj.get("config") is not None else None }) return _obj diff --git a/src/python/vectorize_client/models/weaviate_auth_config.py b/src/python/vectorize_client/models/weaviate_auth_config.py index 76a4948..3377584 100644 --- a/src/python/vectorize_client/models/weaviate_auth_config.py +++ b/src/python/vectorize_client/models/weaviate_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -27,10 +27,9 @@ class WEAVIATEAuthConfig(BaseModel): """ Authentication configuration for Weaviate """ # noqa: E501 - name: StrictStr = Field(description="Name. Example: Enter a descriptive name for your Weaviate integration") host: StrictStr = Field(description="Endpoint. Example: Enter your Weaviate Cluster REST Endpoint") api_key: Annotated[str, Field(strict=True)] = Field(description="API Key. Example: Enter your API key", alias="api-key") - __properties: ClassVar[List[str]] = ["name", "host", "api-key"] + __properties: ClassVar[List[str]] = ["host", "api-key"] @field_validator('api_key') def api_key_validate_regular_expression(cls, value): @@ -90,7 +89,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "name": obj.get("name"), "host": obj.get("host"), "api-key": obj.get("api-key") }) diff --git a/src/python/vectorize_client/models/weaviate_config.py b/src/python/vectorize_client/models/weaviate_config.py index b125df0..a9f5db5 100644 --- a/src/python/vectorize_client/models/weaviate_config.py +++ b/src/python/vectorize_client/models/weaviate_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/python/vectorize_client/models/web_crawler.py b/src/python/vectorize_client/models/web_crawler.py index e177c56..3cf541e 100644 --- a/src/python/vectorize_client/models/web_crawler.py +++ b/src/python/vectorize_client/models/web_crawler.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator from typing import Any, ClassVar, Dict, List -from vectorize_client.models.webcrawler_config import WEBCRAWLERConfig +from vectorize_client.models.webcrawler_auth_config import WEBCRAWLERAuthConfig from typing import Optional, Set from typing_extensions import Self @@ -29,7 +29,7 @@ class WebCrawler(BaseModel): """ # noqa: E501 name: StrictStr = Field(description="Name of the connector") type: StrictStr = Field(description="Connector type (must be \"WEB_CRAWLER\")") - config: WEBCRAWLERConfig + config: WEBCRAWLERAuthConfig __properties: ClassVar[List[str]] = ["name", "type", "config"] @field_validator('type') @@ -95,7 +95,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), "type": obj.get("type"), - "config": WEBCRAWLERConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + "config": WEBCRAWLERAuthConfig.from_dict(obj["config"]) if obj.get("config") is not None else None }) return _obj diff --git a/src/python/vectorize_client/models/web_crawler1.py b/src/python/vectorize_client/models/web_crawler1.py index 8b3d4a0..31e6312 100644 --- a/src/python/vectorize_client/models/web_crawler1.py +++ b/src/python/vectorize_client/models/web_crawler1.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,7 +19,7 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from vectorize_client.models.webcrawler_config import WEBCRAWLERConfig +from vectorize_client.models.webcrawler_auth_config import WEBCRAWLERAuthConfig from typing import Optional, Set from typing_extensions import Self @@ -27,7 +27,7 @@ class WebCrawler1(BaseModel): """ WebCrawler1 """ # noqa: E501 - config: Optional[WEBCRAWLERConfig] = None + config: Optional[WEBCRAWLERAuthConfig] = None __properties: ClassVar[List[str]] = ["config"] model_config = ConfigDict( @@ -84,7 +84,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "config": WEBCRAWLERConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + "config": WEBCRAWLERAuthConfig.from_dict(obj["config"]) if obj.get("config") is not None else None }) return _obj diff --git a/src/python/vectorize_client/models/webcrawler_auth_config.py b/src/python/vectorize_client/models/webcrawler_auth_config.py index f0f494b..c1340dc 100644 --- a/src/python/vectorize_client/models/webcrawler_auth_config.py +++ b/src/python/vectorize_client/models/webcrawler_auth_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -26,9 +26,8 @@ class WEBCRAWLERAuthConfig(BaseModel): """ Authentication configuration for Web Crawler """ # noqa: E501 - name: StrictStr = Field(description="Name. Example: Enter a descriptive name") - seed_urls: StrictStr = Field(description="Seed URL(s). Add one or more seed URLs to crawl. The crawler will start from these URLs and follow links to other pages.. Example: (e.g. https://example.com)", alias="seed-urls") - __properties: ClassVar[List[str]] = ["name", "seed-urls"] + seed_urls: List[StrictStr] = Field(description="Seed URL(s). Add one or more seed URLs to crawl. The crawler will start from these URLs and follow links to other pages.. Example: (e.g. https://example.com)", alias="seed-urls") + __properties: ClassVar[List[str]] = ["seed-urls"] model_config = ConfigDict( populate_by_name=True, @@ -81,7 +80,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "name": obj.get("name"), "seed-urls": obj.get("seed-urls") }) return _obj diff --git a/src/python/vectorize_client/models/webcrawler_config.py b/src/python/vectorize_client/models/webcrawler_config.py index 160a04d..0958563 100644 --- a/src/python/vectorize_client/models/webcrawler_config.py +++ b/src/python/vectorize_client/models/webcrawler_config.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -17,9 +17,8 @@ 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 typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self @@ -27,8 +26,8 @@ class WEBCRAWLERConfig(BaseModel): """ Configuration for Web Crawler connector """ # noqa: E501 - allowed_domains_opt: Optional[StrictStr] = Field(default=None, description="Additional Allowed URLs or prefix(es). Add one or more allowed URLs or URL prefixes. The crawler will read URLs that match these patterns in addition to the seed URL(s).. Example: (e.g. https://docs.example.com)", alias="allowed-domains-opt") - forbidden_paths: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="Forbidden Paths. Example: Enter forbidden paths (e.g. /admin)", alias="forbidden-paths") + allowed_domains_opt: Optional[List[StrictStr]] = Field(default=None, description="Additional Allowed URLs or prefix(es). Add one or more allowed URLs or URL prefixes. The crawler will read URLs that match these patterns in addition to the seed URL(s).. Example: (e.g. https://docs.example.com)", alias="allowed-domains-opt") + forbidden_paths: Optional[List[StrictStr]] = Field(default=None, description="Forbidden Paths. Example: Enter forbidden paths (e.g. /admin)", alias="forbidden-paths") min_time_between_requests: Optional[Union[StrictFloat, StrictInt]] = Field(default=500, description="Throttle (ms). Example: Enter minimum time between requests in milliseconds", alias="min-time-between-requests") max_error_count: Optional[Union[StrictFloat, StrictInt]] = Field(default=5, description="Max Error Count. Example: Enter maximum error count", alias="max-error-count") max_urls: Optional[Union[StrictFloat, StrictInt]] = Field(default=1000, description="Max URLs. Example: Enter maximum number of URLs to crawl", alias="max-urls") @@ -36,16 +35,6 @@ class WEBCRAWLERConfig(BaseModel): reindex_interval_seconds: Optional[Union[StrictFloat, StrictInt]] = Field(default=3600, description="Reindex Interval (seconds). Example: Enter reindex interval in seconds", alias="reindex-interval-seconds") __properties: ClassVar[List[str]] = ["allowed-domains-opt", "forbidden-paths", "min-time-between-requests", "max-error-count", "max-urls", "max-depth", "reindex-interval-seconds"] - @field_validator('forbidden_paths') - def forbidden_paths_validate_regular_expression(cls, value): - """Validates the regular expression""" - if value is None: - return value - - if not re.match(r"^\/([a-zA-Z0-9-_]+(\/)?)+$", value): - raise ValueError(r"must validate the regular expression /^\/([a-zA-Z0-9-_]+(\/)?)+$/") - return value - model_config = ConfigDict( populate_by_name=True, validate_assignment=True, diff --git a/src/python/vectorize_client/rest.py b/src/python/vectorize_client/rest.py index ca2f99e..f95c53b 100644 --- a/src/python/vectorize_client/rest.py +++ b/src/python/vectorize_client/rest.py @@ -5,7 +5,7 @@ API for Vectorize services (Beta) - The version of the OpenAPI document: 0.1.0 + The version of the OpenAPI document: 0.1.2 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/src/ts/package-lock.json b/src/ts/package-lock.json new file mode 100644 index 0000000..87623bf --- /dev/null +++ b/src/ts/package-lock.json @@ -0,0 +1,31 @@ +{ + "name": "@vectorize-io/vectorize-client", + "version": "0.0.1-SNAPSHOT.202507021445", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "@vectorize-io/vectorize-client", + "version": "0.0.1-SNAPSHOT.202507021445", + "hasInstallScript": true, + "license": "MIT", + "devDependencies": { + "typescript": "^5.8.3" + } + }, + "node_modules/typescript": { + "version": "5.8.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.3.tgz", + "integrity": "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==", + "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 ea336be..75db0c5 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.3" }, "publishConfig": { "registry": "https://registry.npmjs.org", diff --git a/src/ts/src/apis/AIPlatformConnectorsApi.ts b/src/ts/src/apis/AIPlatformConnectorsApi.ts index a386ffd..b83ed47 100644 --- a/src/ts/src/apis/AIPlatformConnectorsApi.ts +++ b/src/ts/src/apis/AIPlatformConnectorsApi.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -15,7 +15,7 @@ import * as runtime from '../runtime'; import type { - AIPlatform, + AIPlatformConnector, CreateAIPlatformConnectorRequest, CreateAIPlatformConnectorResponse, DeleteAIPlatformConnectorResponse, @@ -25,8 +25,8 @@ import type { UpdateAIPlatformConnectorResponse, } from '../models/index'; import { - AIPlatformFromJSON, - AIPlatformToJSON, + AIPlatformConnectorFromJSON, + AIPlatformConnectorToJSON, CreateAIPlatformConnectorRequestFromJSON, CreateAIPlatformConnectorRequestToJSON, CreateAIPlatformConnectorResponseFromJSON, @@ -48,7 +48,7 @@ export interface CreateAIPlatformConnectorOperationRequest { createAIPlatformConnectorRequest: CreateAIPlatformConnectorRequest; } -export interface DeleteAIPlatformRequest { +export interface DeleteAIPlatformConnectorRequest { organizationId: string; aiPlatformConnectorId: string; } @@ -130,18 +130,18 @@ export class AIPlatformConnectorsApi extends runtime.BaseAPI { * Delete an AI platform connector * Delete an AI platform connector */ - async deleteAIPlatformRaw(requestParameters: DeleteAIPlatformRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + async deleteAIPlatformConnectorRaw(requestParameters: DeleteAIPlatformConnectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { if (requestParameters['organizationId'] == null) { throw new runtime.RequiredError( 'organizationId', - 'Required parameter "organizationId" was null or undefined when calling deleteAIPlatform().' + 'Required parameter "organizationId" was null or undefined when calling deleteAIPlatformConnector().' ); } if (requestParameters['aiPlatformConnectorId'] == null) { throw new runtime.RequiredError( 'aiPlatformConnectorId', - 'Required parameter "aiPlatformConnectorId" was null or undefined when calling deleteAIPlatform().' + 'Required parameter "aiPlatformConnectorId" was null or undefined when calling deleteAIPlatformConnector().' ); } @@ -171,8 +171,8 @@ export class AIPlatformConnectorsApi extends runtime.BaseAPI { * Delete an AI platform connector * Delete an AI platform connector */ - async deleteAIPlatform(requestParameters: DeleteAIPlatformRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.deleteAIPlatformRaw(requestParameters, initOverrides); + async deleteAIPlatformConnector(requestParameters: DeleteAIPlatformConnectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.deleteAIPlatformConnectorRaw(requestParameters, initOverrides); return await response.value(); } @@ -180,7 +180,7 @@ export class AIPlatformConnectorsApi extends runtime.BaseAPI { * Get an AI platform connector * Get an AI platform connector */ - async getAIPlatformConnectorRaw(requestParameters: GetAIPlatformConnectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + async getAIPlatformConnectorRaw(requestParameters: GetAIPlatformConnectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { if (requestParameters['organizationId'] == null) { throw new runtime.RequiredError( 'organizationId', @@ -214,14 +214,14 @@ export class AIPlatformConnectorsApi extends runtime.BaseAPI { query: queryParameters, }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => AIPlatformFromJSON(jsonValue)); + return new runtime.JSONApiResponse(response, (jsonValue) => AIPlatformConnectorFromJSON(jsonValue)); } /** * Get an AI platform connector * Get an AI platform connector */ - async getAIPlatformConnector(requestParameters: GetAIPlatformConnectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + async getAIPlatformConnector(requestParameters: GetAIPlatformConnectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { const response = await this.getAIPlatformConnectorRaw(requestParameters, initOverrides); return await response.value(); } diff --git a/src/ts/src/apis/DestinationConnectorsApi.ts b/src/ts/src/apis/DestinationConnectorsApi.ts index fce1920..80016d7 100644 --- a/src/ts/src/apis/DestinationConnectorsApi.ts +++ b/src/ts/src/apis/DestinationConnectorsApi.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/apis/ExtractionApi.ts b/src/ts/src/apis/ExtractionApi.ts index b5f3e95..07a05c9 100644 --- a/src/ts/src/apis/ExtractionApi.ts +++ b/src/ts/src/apis/ExtractionApi.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/apis/FilesApi.ts b/src/ts/src/apis/FilesApi.ts index ae46d60..491cbdb 100644 --- a/src/ts/src/apis/FilesApi.ts +++ b/src/ts/src/apis/FilesApi.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/apis/PipelinesApi.ts b/src/ts/src/apis/PipelinesApi.ts index 08dbb6f..1bebe53 100644 --- a/src/ts/src/apis/PipelinesApi.ts +++ b/src/ts/src/apis/PipelinesApi.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/apis/SourceConnectorsApi.ts b/src/ts/src/apis/SourceConnectorsApi.ts index a8c4afd..9d26206 100644 --- a/src/ts/src/apis/SourceConnectorsApi.ts +++ b/src/ts/src/apis/SourceConnectorsApi.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/apis/UploadsApi.ts b/src/ts/src/apis/UploadsApi.ts index 518cb35..864fb67 100644 --- a/src/ts/src/apis/UploadsApi.ts +++ b/src/ts/src/apis/UploadsApi.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/AIPlatformConfigSchema.ts b/src/ts/src/models/AIPlatformConfigSchema.ts index b4effd3..053b554 100644 --- a/src/ts/src/models/AIPlatformConfigSchema.ts +++ b/src/ts/src/models/AIPlatformConfigSchema.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/AIPlatform.ts b/src/ts/src/models/AIPlatformConnector.ts similarity index 70% rename from src/ts/src/models/AIPlatform.ts rename to src/ts/src/models/AIPlatformConnector.ts index 13156a3..fb78fd7 100644 --- a/src/ts/src/models/AIPlatform.ts +++ b/src/ts/src/models/AIPlatformConnector.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,92 +16,92 @@ import { mapValues } from '../runtime'; /** * * @export - * @interface AIPlatform + * @interface AIPlatformConnector */ -export interface AIPlatform { +export interface AIPlatformConnector { /** * * @type {string} - * @memberof AIPlatform + * @memberof AIPlatformConnector */ id: string; /** * * @type {string} - * @memberof AIPlatform + * @memberof AIPlatformConnector */ type: string; /** * * @type {string} - * @memberof AIPlatform + * @memberof AIPlatformConnector */ name: string; /** * * @type {{ [key: string]: any | null; }} - * @memberof AIPlatform + * @memberof AIPlatformConnector */ configDoc?: { [key: string]: any | null; }; /** * * @type {string} - * @memberof AIPlatform + * @memberof AIPlatformConnector */ createdAt?: string | null; /** * * @type {string} - * @memberof AIPlatform + * @memberof AIPlatformConnector */ createdById?: string; /** * * @type {string} - * @memberof AIPlatform + * @memberof AIPlatformConnector */ lastUpdatedById?: string; /** * * @type {string} - * @memberof AIPlatform + * @memberof AIPlatformConnector */ createdByEmail?: string; /** * * @type {string} - * @memberof AIPlatform + * @memberof AIPlatformConnector */ lastUpdatedByEmail?: string; /** * * @type {string} - * @memberof AIPlatform + * @memberof AIPlatformConnector */ errorMessage?: string; /** * * @type {string} - * @memberof AIPlatform + * @memberof AIPlatformConnector */ verificationStatus?: string; } /** - * Check if a given object implements the AIPlatform interface. + * Check if a given object implements the AIPlatformConnector interface. */ -export function instanceOfAIPlatform(value: object): value is AIPlatform { +export function instanceOfAIPlatformConnector(value: object): value is AIPlatformConnector { if (!('id' in value) || value['id'] === undefined) return false; if (!('type' in value) || value['type'] === undefined) return false; if (!('name' in value) || value['name'] === undefined) return false; return true; } -export function AIPlatformFromJSON(json: any): AIPlatform { - return AIPlatformFromJSONTyped(json, false); +export function AIPlatformConnectorFromJSON(json: any): AIPlatformConnector { + return AIPlatformConnectorFromJSONTyped(json, false); } -export function AIPlatformFromJSONTyped(json: any, ignoreDiscriminator: boolean): AIPlatform { +export function AIPlatformConnectorFromJSONTyped(json: any, ignoreDiscriminator: boolean): AIPlatformConnector { if (json == null) { return json; } @@ -121,11 +121,11 @@ export function AIPlatformFromJSONTyped(json: any, ignoreDiscriminator: boolean) }; } -export function AIPlatformToJSON(json: any): AIPlatform { - return AIPlatformToJSONTyped(json, false); +export function AIPlatformConnectorToJSON(json: any): AIPlatformConnector { + return AIPlatformConnectorToJSONTyped(json, false); } -export function AIPlatformToJSONTyped(value?: AIPlatform | null, ignoreDiscriminator: boolean = false): any { +export function AIPlatformConnectorToJSONTyped(value?: AIPlatformConnector | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } diff --git a/src/ts/src/models/AIPlatformConnectorInput.ts b/src/ts/src/models/AIPlatformConnectorInput.ts index 3a9d690..21c0841 100644 --- a/src/ts/src/models/AIPlatformConnectorInput.ts +++ b/src/ts/src/models/AIPlatformConnectorInput.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/AIPlatformType.ts b/src/ts/src/models/AIPlatformType.ts index b1a7f4f..64afa62 100644 --- a/src/ts/src/models/AIPlatformType.ts +++ b/src/ts/src/models/AIPlatformType.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/AIPlatformTypeForPipeline.ts b/src/ts/src/models/AIPlatformTypeForPipeline.ts index 45c9385..02f168b 100644 --- a/src/ts/src/models/AIPlatformTypeForPipeline.ts +++ b/src/ts/src/models/AIPlatformTypeForPipeline.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/AWSS3AuthConfig.ts b/src/ts/src/models/AWSS3AuthConfig.ts index 6edba44..735bbeb 100644 --- a/src/ts/src/models/AWSS3AuthConfig.ts +++ b/src/ts/src/models/AWSS3AuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,12 +19,6 @@ import { mapValues } from '../runtime'; * @interface AWSS3AuthConfig */ export interface AWSS3AuthConfig { - /** - * Name. Example: Enter a descriptive name - * @type {string} - * @memberof AWSS3AuthConfig - */ - name: string; /** * Access Key. Example: Enter Access Key * @type {string} @@ -67,7 +61,6 @@ export interface AWSS3AuthConfig { * Check if a given object implements the AWSS3AuthConfig interface. */ export function instanceOfAWSS3AuthConfig(value: object): value is AWSS3AuthConfig { - if (!('name' in value) || value['name'] === undefined) return false; if (!('accessKey' in value) || value['accessKey'] === undefined) return false; if (!('secretKey' in value) || value['secretKey'] === undefined) return false; if (!('bucketName' in value) || value['bucketName'] === undefined) return false; @@ -85,7 +78,6 @@ export function AWSS3AuthConfigFromJSONTyped(json: any, ignoreDiscriminator: boo } return { - 'name': json['name'], 'accessKey': json['access-key'], 'secretKey': json['secret-key'], 'bucketName': json['bucket-name'], @@ -106,7 +98,6 @@ export function AWSS3AuthConfigToJSONTyped(value?: AWSS3AuthConfig | null, ignor return { - 'name': value['name'], 'access-key': value['accessKey'], 'secret-key': value['secretKey'], 'bucket-name': value['bucketName'], diff --git a/src/ts/src/models/AWSS3Config.ts b/src/ts/src/models/AWSS3Config.ts index 8f09a99..6f34ddc 100644 --- a/src/ts/src/models/AWSS3Config.ts +++ b/src/ts/src/models/AWSS3Config.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -51,10 +51,10 @@ export interface AWSS3Config { pathMetadataRegex?: string; /** * Path Regex Group Names. Example: Enter Group Name - * @type {string} + * @type {Array} * @memberof AWSS3Config */ - pathRegexGroupNames?: string; + pathRegexGroupNames?: Array; } @@ -70,9 +70,9 @@ export const AWSS3ConfigFileExtensionsEnum = { Txt: 'txt', Htmlhtm: 'html,htm', Md: 'md', + Jpgjpegpngwebpsvggif: 'jpg,jpeg,png,webp,svg,gif', Json: 'json', - Csv: 'csv', - Jpgjpegpngwebpsvggif: 'jpg,jpeg,png,webp,svg,gif' + Csv: 'csv' } as const; export type AWSS3ConfigFileExtensionsEnum = typeof AWSS3ConfigFileExtensionsEnum[keyof typeof AWSS3ConfigFileExtensionsEnum]; diff --git a/src/ts/src/models/AZUREAISEARCHAuthConfig.ts b/src/ts/src/models/AZUREAISEARCHAuthConfig.ts index 0e566b0..2f9ce05 100644 --- a/src/ts/src/models/AZUREAISEARCHAuthConfig.ts +++ b/src/ts/src/models/AZUREAISEARCHAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,12 +19,6 @@ import { mapValues } from '../runtime'; * @interface AZUREAISEARCHAuthConfig */ export interface AZUREAISEARCHAuthConfig { - /** - * Name. Example: Enter a descriptive name for your Azure AI Search integration - * @type {string} - * @memberof AZUREAISEARCHAuthConfig - */ - name: string; /** * Azure AI Search Service Name. Example: Enter your Azure AI Search service name * @type {string} @@ -43,7 +37,6 @@ export interface AZUREAISEARCHAuthConfig { * Check if a given object implements the AZUREAISEARCHAuthConfig interface. */ export function instanceOfAZUREAISEARCHAuthConfig(value: object): value is AZUREAISEARCHAuthConfig { - if (!('name' in value) || value['name'] === undefined) return false; if (!('serviceName' in value) || value['serviceName'] === undefined) return false; if (!('apiKey' in value) || value['apiKey'] === undefined) return false; return true; @@ -59,7 +52,6 @@ export function AZUREAISEARCHAuthConfigFromJSONTyped(json: any, ignoreDiscrimina } return { - 'name': json['name'], 'serviceName': json['service-name'], 'apiKey': json['api-key'], }; @@ -76,7 +68,6 @@ export function AZUREAISEARCHAuthConfigToJSONTyped(value?: AZUREAISEARCHAuthConf return { - 'name': value['name'], 'service-name': value['serviceName'], 'api-key': value['apiKey'], }; diff --git a/src/ts/src/models/AZUREAISEARCHConfig.ts b/src/ts/src/models/AZUREAISEARCHConfig.ts index d362894..09b97f2 100644 --- a/src/ts/src/models/AZUREAISEARCHConfig.ts +++ b/src/ts/src/models/AZUREAISEARCHConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/AZUREBLOBAuthConfig.ts b/src/ts/src/models/AZUREBLOBAuthConfig.ts index 990816e..d283b07 100644 --- a/src/ts/src/models/AZUREBLOBAuthConfig.ts +++ b/src/ts/src/models/AZUREBLOBAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,12 +19,6 @@ import { mapValues } from '../runtime'; * @interface AZUREBLOBAuthConfig */ export interface AZUREBLOBAuthConfig { - /** - * Name. Example: Enter a descriptive name - * @type {string} - * @memberof AZUREBLOBAuthConfig - */ - name: string; /** * Storage Account Name. Example: Enter Storage Account Name * @type {string} @@ -55,7 +49,6 @@ export interface AZUREBLOBAuthConfig { * Check if a given object implements the AZUREBLOBAuthConfig interface. */ export function instanceOfAZUREBLOBAuthConfig(value: object): value is AZUREBLOBAuthConfig { - if (!('name' in value) || value['name'] === undefined) return false; if (!('storageAccountName' in value) || value['storageAccountName'] === undefined) return false; if (!('storageAccountKey' in value) || value['storageAccountKey'] === undefined) return false; if (!('container' in value) || value['container'] === undefined) return false; @@ -72,7 +65,6 @@ export function AZUREBLOBAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: } return { - 'name': json['name'], 'storageAccountName': json['storage-account-name'], 'storageAccountKey': json['storage-account-key'], 'container': json['container'], @@ -91,7 +83,6 @@ export function AZUREBLOBAuthConfigToJSONTyped(value?: AZUREBLOBAuthConfig | nul return { - 'name': value['name'], 'storage-account-name': value['storageAccountName'], 'storage-account-key': value['storageAccountKey'], 'container': value['container'], diff --git a/src/ts/src/models/AZUREBLOBConfig.ts b/src/ts/src/models/AZUREBLOBConfig.ts index c88f4d5..5c55c8c 100644 --- a/src/ts/src/models/AZUREBLOBConfig.ts +++ b/src/ts/src/models/AZUREBLOBConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -51,10 +51,10 @@ export interface AZUREBLOBConfig { pathMetadataRegex?: string; /** * Path Regex Group Names. Example: Enter Group Name - * @type {string} + * @type {Array} * @memberof AZUREBLOBConfig */ - pathRegexGroupNames?: string; + pathRegexGroupNames?: Array; } @@ -70,9 +70,9 @@ export const AZUREBLOBConfigFileExtensionsEnum = { Txt: 'txt', Htmlhtm: 'html,htm', Md: 'md', + Jpgjpegpngwebpsvggif: 'jpg,jpeg,png,webp,svg,gif', Json: 'json', - Csv: 'csv', - Jpgjpegpngwebpsvggif: 'jpg,jpeg,png,webp,svg,gif' + Csv: 'csv' } as const; export type AZUREBLOBConfigFileExtensionsEnum = typeof AZUREBLOBConfigFileExtensionsEnum[keyof typeof AZUREBLOBConfigFileExtensionsEnum]; diff --git a/src/ts/src/models/AddUserFromSourceConnectorResponse.ts b/src/ts/src/models/AddUserFromSourceConnectorResponse.ts index 8bf8777..9c5b03f 100644 --- a/src/ts/src/models/AddUserFromSourceConnectorResponse.ts +++ b/src/ts/src/models/AddUserFromSourceConnectorResponse.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/AddUserToSourceConnectorRequest.ts b/src/ts/src/models/AddUserToSourceConnectorRequest.ts index fd52a54..4818d60 100644 --- a/src/ts/src/models/AddUserToSourceConnectorRequest.ts +++ b/src/ts/src/models/AddUserToSourceConnectorRequest.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/AddUserToSourceConnectorRequestSelectedFiles.ts b/src/ts/src/models/AddUserToSourceConnectorRequestSelectedFiles.ts index 8a6990f..eb36151 100644 --- a/src/ts/src/models/AddUserToSourceConnectorRequestSelectedFiles.ts +++ b/src/ts/src/models/AddUserToSourceConnectorRequestSelectedFiles.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/AddUserToSourceConnectorRequestSelectedFilesAnyOf.ts b/src/ts/src/models/AddUserToSourceConnectorRequestSelectedFilesAnyOf.ts index 7271ee1..b206d15 100644 --- a/src/ts/src/models/AddUserToSourceConnectorRequestSelectedFilesAnyOf.ts +++ b/src/ts/src/models/AddUserToSourceConnectorRequestSelectedFilesAnyOf.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/AddUserToSourceConnectorRequestSelectedFilesAnyOfValue.ts b/src/ts/src/models/AddUserToSourceConnectorRequestSelectedFilesAnyOfValue.ts index 2c7bae9..ef70d5a 100644 --- a/src/ts/src/models/AddUserToSourceConnectorRequestSelectedFilesAnyOfValue.ts +++ b/src/ts/src/models/AddUserToSourceConnectorRequestSelectedFilesAnyOfValue.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/AdvancedQuery.ts b/src/ts/src/models/AdvancedQuery.ts index 8a3641b..af2a4fc 100644 --- a/src/ts/src/models/AdvancedQuery.ts +++ b/src/ts/src/models/AdvancedQuery.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/AwsS3.ts b/src/ts/src/models/AwsS3.ts index 6143248..c790910 100644 --- a/src/ts/src/models/AwsS3.ts +++ b/src/ts/src/models/AwsS3.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,13 +13,13 @@ */ import { mapValues } from '../runtime'; -import type { AWSS3Config } from './AWSS3Config'; +import type { AWSS3AuthConfig } from './AWSS3AuthConfig'; import { - AWSS3ConfigFromJSON, - AWSS3ConfigFromJSONTyped, - AWSS3ConfigToJSON, - AWSS3ConfigToJSONTyped, -} from './AWSS3Config'; + AWSS3AuthConfigFromJSON, + AWSS3AuthConfigFromJSONTyped, + AWSS3AuthConfigToJSON, + AWSS3AuthConfigToJSONTyped, +} from './AWSS3AuthConfig'; /** * @@ -41,10 +41,10 @@ export interface AwsS3 { type: AwsS3TypeEnum; /** * - * @type {AWSS3Config} + * @type {AWSS3AuthConfig} * @memberof AwsS3 */ - config: AWSS3Config; + config: AWSS3AuthConfig; } @@ -79,7 +79,7 @@ export function AwsS3FromJSONTyped(json: any, ignoreDiscriminator: boolean): Aws 'name': json['name'], 'type': json['type'], - 'config': AWSS3ConfigFromJSON(json['config']), + 'config': AWSS3AuthConfigFromJSON(json['config']), }; } @@ -96,7 +96,7 @@ export function AwsS3ToJSONTyped(value?: AwsS3 | null, ignoreDiscriminator: bool 'name': value['name'], 'type': value['type'], - 'config': AWSS3ConfigToJSON(value['config']), + 'config': AWSS3AuthConfigToJSON(value['config']), }; } diff --git a/src/ts/src/models/AwsS31.ts b/src/ts/src/models/AwsS31.ts index bade104..f03c7be 100644 --- a/src/ts/src/models/AwsS31.ts +++ b/src/ts/src/models/AwsS31.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,13 +13,13 @@ */ import { mapValues } from '../runtime'; -import type { AWSS3Config } from './AWSS3Config'; +import type { AWSS3AuthConfig } from './AWSS3AuthConfig'; import { - AWSS3ConfigFromJSON, - AWSS3ConfigFromJSONTyped, - AWSS3ConfigToJSON, - AWSS3ConfigToJSONTyped, -} from './AWSS3Config'; + AWSS3AuthConfigFromJSON, + AWSS3AuthConfigFromJSONTyped, + AWSS3AuthConfigToJSON, + AWSS3AuthConfigToJSONTyped, +} from './AWSS3AuthConfig'; /** * @@ -29,10 +29,10 @@ import { export interface AwsS31 { /** * - * @type {AWSS3Config} + * @type {AWSS3AuthConfig} * @memberof AwsS31 */ - config?: AWSS3Config; + config?: AWSS3AuthConfig; } /** @@ -52,7 +52,7 @@ export function AwsS31FromJSONTyped(json: any, ignoreDiscriminator: boolean): Aw } return { - 'config': json['config'] == null ? undefined : AWSS3ConfigFromJSON(json['config']), + 'config': json['config'] == null ? undefined : AWSS3AuthConfigFromJSON(json['config']), }; } @@ -67,7 +67,7 @@ export function AwsS31ToJSONTyped(value?: AwsS31 | null, ignoreDiscriminator: bo return { - 'config': AWSS3ConfigToJSON(value['config']), + 'config': AWSS3AuthConfigToJSON(value['config']), }; } diff --git a/src/ts/src/models/AzureBlob.ts b/src/ts/src/models/AzureBlob.ts index 0254336..dd1a64a 100644 --- a/src/ts/src/models/AzureBlob.ts +++ b/src/ts/src/models/AzureBlob.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,13 +13,13 @@ */ import { mapValues } from '../runtime'; -import type { AZUREBLOBConfig } from './AZUREBLOBConfig'; +import type { AZUREBLOBAuthConfig } from './AZUREBLOBAuthConfig'; import { - AZUREBLOBConfigFromJSON, - AZUREBLOBConfigFromJSONTyped, - AZUREBLOBConfigToJSON, - AZUREBLOBConfigToJSONTyped, -} from './AZUREBLOBConfig'; + AZUREBLOBAuthConfigFromJSON, + AZUREBLOBAuthConfigFromJSONTyped, + AZUREBLOBAuthConfigToJSON, + AZUREBLOBAuthConfigToJSONTyped, +} from './AZUREBLOBAuthConfig'; /** * @@ -41,10 +41,10 @@ export interface AzureBlob { type: AzureBlobTypeEnum; /** * - * @type {AZUREBLOBConfig} + * @type {AZUREBLOBAuthConfig} * @memberof AzureBlob */ - config: AZUREBLOBConfig; + config: AZUREBLOBAuthConfig; } @@ -79,7 +79,7 @@ export function AzureBlobFromJSONTyped(json: any, ignoreDiscriminator: boolean): 'name': json['name'], 'type': json['type'], - 'config': AZUREBLOBConfigFromJSON(json['config']), + 'config': AZUREBLOBAuthConfigFromJSON(json['config']), }; } @@ -96,7 +96,7 @@ export function AzureBlobToJSONTyped(value?: AzureBlob | null, ignoreDiscriminat 'name': value['name'], 'type': value['type'], - 'config': AZUREBLOBConfigToJSON(value['config']), + 'config': AZUREBLOBAuthConfigToJSON(value['config']), }; } diff --git a/src/ts/src/models/AzureBlob1.ts b/src/ts/src/models/AzureBlob1.ts index 50ce087..c4b1826 100644 --- a/src/ts/src/models/AzureBlob1.ts +++ b/src/ts/src/models/AzureBlob1.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,13 +13,13 @@ */ import { mapValues } from '../runtime'; -import type { AZUREBLOBConfig } from './AZUREBLOBConfig'; +import type { AZUREBLOBAuthConfig } from './AZUREBLOBAuthConfig'; import { - AZUREBLOBConfigFromJSON, - AZUREBLOBConfigFromJSONTyped, - AZUREBLOBConfigToJSON, - AZUREBLOBConfigToJSONTyped, -} from './AZUREBLOBConfig'; + AZUREBLOBAuthConfigFromJSON, + AZUREBLOBAuthConfigFromJSONTyped, + AZUREBLOBAuthConfigToJSON, + AZUREBLOBAuthConfigToJSONTyped, +} from './AZUREBLOBAuthConfig'; /** * @@ -29,10 +29,10 @@ import { export interface AzureBlob1 { /** * - * @type {AZUREBLOBConfig} + * @type {AZUREBLOBAuthConfig} * @memberof AzureBlob1 */ - config?: AZUREBLOBConfig; + config?: AZUREBLOBAuthConfig; } /** @@ -52,7 +52,7 @@ export function AzureBlob1FromJSONTyped(json: any, ignoreDiscriminator: boolean) } return { - 'config': json['config'] == null ? undefined : AZUREBLOBConfigFromJSON(json['config']), + 'config': json['config'] == null ? undefined : AZUREBLOBAuthConfigFromJSON(json['config']), }; } @@ -67,7 +67,7 @@ export function AzureBlob1ToJSONTyped(value?: AzureBlob1 | null, ignoreDiscrimin return { - 'config': AZUREBLOBConfigToJSON(value['config']), + 'config': AZUREBLOBAuthConfigToJSON(value['config']), }; } diff --git a/src/ts/src/models/Azureaisearch.ts b/src/ts/src/models/Azureaisearch.ts index c0d89cd..bf134b6 100644 --- a/src/ts/src/models/Azureaisearch.ts +++ b/src/ts/src/models/Azureaisearch.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,13 +13,13 @@ */ import { mapValues } from '../runtime'; -import type { AZUREAISEARCHConfig } from './AZUREAISEARCHConfig'; +import type { AZUREAISEARCHAuthConfig } from './AZUREAISEARCHAuthConfig'; import { - AZUREAISEARCHConfigFromJSON, - AZUREAISEARCHConfigFromJSONTyped, - AZUREAISEARCHConfigToJSON, - AZUREAISEARCHConfigToJSONTyped, -} from './AZUREAISEARCHConfig'; + AZUREAISEARCHAuthConfigFromJSON, + AZUREAISEARCHAuthConfigFromJSONTyped, + AZUREAISEARCHAuthConfigToJSON, + AZUREAISEARCHAuthConfigToJSONTyped, +} from './AZUREAISEARCHAuthConfig'; /** * @@ -41,10 +41,10 @@ export interface Azureaisearch { type: AzureaisearchTypeEnum; /** * - * @type {AZUREAISEARCHConfig} + * @type {AZUREAISEARCHAuthConfig} * @memberof Azureaisearch */ - config: AZUREAISEARCHConfig; + config: AZUREAISEARCHAuthConfig; } @@ -79,7 +79,7 @@ export function AzureaisearchFromJSONTyped(json: any, ignoreDiscriminator: boole 'name': json['name'], 'type': json['type'], - 'config': AZUREAISEARCHConfigFromJSON(json['config']), + 'config': AZUREAISEARCHAuthConfigFromJSON(json['config']), }; } @@ -96,7 +96,7 @@ export function AzureaisearchToJSONTyped(value?: Azureaisearch | null, ignoreDis 'name': value['name'], 'type': value['type'], - 'config': AZUREAISEARCHConfigToJSON(value['config']), + 'config': AZUREAISEARCHAuthConfigToJSON(value['config']), }; } diff --git a/src/ts/src/models/Azureaisearch1.ts b/src/ts/src/models/Azureaisearch1.ts index a541451..8100749 100644 --- a/src/ts/src/models/Azureaisearch1.ts +++ b/src/ts/src/models/Azureaisearch1.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,13 +13,13 @@ */ import { mapValues } from '../runtime'; -import type { AZUREAISEARCHConfig } from './AZUREAISEARCHConfig'; +import type { AZUREAISEARCHAuthConfig } from './AZUREAISEARCHAuthConfig'; import { - AZUREAISEARCHConfigFromJSON, - AZUREAISEARCHConfigFromJSONTyped, - AZUREAISEARCHConfigToJSON, - AZUREAISEARCHConfigToJSONTyped, -} from './AZUREAISEARCHConfig'; + AZUREAISEARCHAuthConfigFromJSON, + AZUREAISEARCHAuthConfigFromJSONTyped, + AZUREAISEARCHAuthConfigToJSON, + AZUREAISEARCHAuthConfigToJSONTyped, +} from './AZUREAISEARCHAuthConfig'; /** * @@ -29,10 +29,10 @@ import { export interface Azureaisearch1 { /** * - * @type {AZUREAISEARCHConfig} + * @type {AZUREAISEARCHAuthConfig} * @memberof Azureaisearch1 */ - config?: AZUREAISEARCHConfig; + config?: AZUREAISEARCHAuthConfig; } /** @@ -52,7 +52,7 @@ export function Azureaisearch1FromJSONTyped(json: any, ignoreDiscriminator: bool } return { - 'config': json['config'] == null ? undefined : AZUREAISEARCHConfigFromJSON(json['config']), + 'config': json['config'] == null ? undefined : AZUREAISEARCHAuthConfigFromJSON(json['config']), }; } @@ -67,7 +67,7 @@ export function Azureaisearch1ToJSONTyped(value?: Azureaisearch1 | null, ignoreD return { - 'config': AZUREAISEARCHConfigToJSON(value['config']), + 'config': AZUREAISEARCHAuthConfigToJSON(value['config']), }; } diff --git a/src/ts/src/models/BEDROCKAuthConfig.ts b/src/ts/src/models/BEDROCKAuthConfig.ts index 9143988..0b3cd17 100644 --- a/src/ts/src/models/BEDROCKAuthConfig.ts +++ b/src/ts/src/models/BEDROCKAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,12 +19,6 @@ import { mapValues } from '../runtime'; * @interface BEDROCKAuthConfig */ export interface BEDROCKAuthConfig { - /** - * Name. Example: Enter a descriptive name for your Amazon Bedrock integration - * @type {string} - * @memberof BEDROCKAuthConfig - */ - name: string; /** * Access Key. Example: Enter your Amazon Bedrock Access Key * @type {string} @@ -49,7 +43,6 @@ export interface BEDROCKAuthConfig { * Check if a given object implements the BEDROCKAuthConfig interface. */ export function instanceOfBEDROCKAuthConfig(value: object): value is BEDROCKAuthConfig { - if (!('name' in value) || value['name'] === undefined) return false; if (!('accessKey' in value) || value['accessKey'] === undefined) return false; if (!('key' in value) || value['key'] === undefined) return false; if (!('region' in value) || value['region'] === undefined) return false; @@ -66,7 +59,6 @@ export function BEDROCKAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: b } return { - 'name': json['name'], 'accessKey': json['access-key'], 'key': json['key'], 'region': json['region'], @@ -84,7 +76,6 @@ export function BEDROCKAuthConfigToJSONTyped(value?: BEDROCKAuthConfig | null, i return { - 'name': value['name'], 'access-key': value['accessKey'], 'key': value['key'], 'region': value['region'], diff --git a/src/ts/src/models/Bedrock.ts b/src/ts/src/models/Bedrock.ts index 35f1651..8a0c97a 100644 --- a/src/ts/src/models/Bedrock.ts +++ b/src/ts/src/models/Bedrock.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/Bedrock1.ts b/src/ts/src/models/Bedrock1.ts index cb2d132..adcfa19 100644 --- a/src/ts/src/models/Bedrock1.ts +++ b/src/ts/src/models/Bedrock1.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/CAPELLAAuthConfig.ts b/src/ts/src/models/CAPELLAAuthConfig.ts index 90d8f83..a20fee8 100644 --- a/src/ts/src/models/CAPELLAAuthConfig.ts +++ b/src/ts/src/models/CAPELLAAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,12 +19,6 @@ import { mapValues } from '../runtime'; * @interface CAPELLAAuthConfig */ export interface CAPELLAAuthConfig { - /** - * Name. Example: Enter a descriptive name for your Capella integration - * @type {string} - * @memberof CAPELLAAuthConfig - */ - name: string; /** * Cluster Access Name. Example: Enter your cluster access name * @type {string} @@ -49,7 +43,6 @@ export interface CAPELLAAuthConfig { * Check if a given object implements the CAPELLAAuthConfig interface. */ export function instanceOfCAPELLAAuthConfig(value: object): value is CAPELLAAuthConfig { - if (!('name' in value) || value['name'] === undefined) return false; if (!('username' in value) || value['username'] === undefined) return false; if (!('password' in value) || value['password'] === undefined) return false; if (!('connectionString' in value) || value['connectionString'] === undefined) return false; @@ -66,7 +59,6 @@ export function CAPELLAAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: b } return { - 'name': json['name'], 'username': json['username'], 'password': json['password'], 'connectionString': json['connection-string'], @@ -84,7 +76,6 @@ export function CAPELLAAuthConfigToJSONTyped(value?: CAPELLAAuthConfig | null, i return { - 'name': value['name'], 'username': value['username'], 'password': value['password'], 'connection-string': value['connectionString'], diff --git a/src/ts/src/models/CAPELLAConfig.ts b/src/ts/src/models/CAPELLAConfig.ts index d61c66b..67603a2 100644 --- a/src/ts/src/models/CAPELLAConfig.ts +++ b/src/ts/src/models/CAPELLAConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/CONFLUENCEAuthConfig.ts b/src/ts/src/models/CONFLUENCEAuthConfig.ts index 90a13ac..fd9a2af 100644 --- a/src/ts/src/models/CONFLUENCEAuthConfig.ts +++ b/src/ts/src/models/CONFLUENCEAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,12 +19,6 @@ import { mapValues } from '../runtime'; * @interface CONFLUENCEAuthConfig */ export interface CONFLUENCEAuthConfig { - /** - * Name. Example: Enter a descriptive name - * @type {string} - * @memberof CONFLUENCEAuthConfig - */ - name: string; /** * Username. Example: Enter your Confluence username * @type {string} @@ -49,7 +43,6 @@ export interface CONFLUENCEAuthConfig { * Check if a given object implements the CONFLUENCEAuthConfig interface. */ export function instanceOfCONFLUENCEAuthConfig(value: object): value is CONFLUENCEAuthConfig { - if (!('name' in value) || value['name'] === undefined) return false; if (!('username' in value) || value['username'] === undefined) return false; if (!('apiToken' in value) || value['apiToken'] === undefined) return false; if (!('domain' in value) || value['domain'] === undefined) return false; @@ -66,7 +59,6 @@ export function CONFLUENCEAuthConfigFromJSONTyped(json: any, ignoreDiscriminator } return { - 'name': json['name'], 'username': json['username'], 'apiToken': json['api-token'], 'domain': json['domain'], @@ -84,7 +76,6 @@ export function CONFLUENCEAuthConfigToJSONTyped(value?: CONFLUENCEAuthConfig | n return { - 'name': value['name'], 'username': value['username'], 'api-token': value['apiToken'], 'domain': value['domain'], diff --git a/src/ts/src/models/CONFLUENCEConfig.ts b/src/ts/src/models/CONFLUENCEConfig.ts index 31d8e94..4ecaf39 100644 --- a/src/ts/src/models/CONFLUENCEConfig.ts +++ b/src/ts/src/models/CONFLUENCEConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,16 +21,16 @@ import { mapValues } from '../runtime'; export interface CONFLUENCEConfig { /** * Spaces. Example: Spaces to include (name, key or id) - * @type {string} + * @type {Array} * @memberof CONFLUENCEConfig */ - spaces: string; + spaces: Array; /** * Root Parents. Example: Enter root parent pages - * @type {string} + * @type {Array} * @memberof CONFLUENCEConfig */ - rootParents?: string; + rootParents?: Array; } /** diff --git a/src/ts/src/models/Capella.ts b/src/ts/src/models/Capella.ts index 75e589c..cd19926 100644 --- a/src/ts/src/models/Capella.ts +++ b/src/ts/src/models/Capella.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,13 +13,13 @@ */ import { mapValues } from '../runtime'; -import type { CAPELLAConfig } from './CAPELLAConfig'; +import type { CAPELLAAuthConfig } from './CAPELLAAuthConfig'; import { - CAPELLAConfigFromJSON, - CAPELLAConfigFromJSONTyped, - CAPELLAConfigToJSON, - CAPELLAConfigToJSONTyped, -} from './CAPELLAConfig'; + CAPELLAAuthConfigFromJSON, + CAPELLAAuthConfigFromJSONTyped, + CAPELLAAuthConfigToJSON, + CAPELLAAuthConfigToJSONTyped, +} from './CAPELLAAuthConfig'; /** * @@ -41,10 +41,10 @@ export interface Capella { type: CapellaTypeEnum; /** * - * @type {CAPELLAConfig} + * @type {CAPELLAAuthConfig} * @memberof Capella */ - config: CAPELLAConfig; + config: CAPELLAAuthConfig; } @@ -79,7 +79,7 @@ export function CapellaFromJSONTyped(json: any, ignoreDiscriminator: boolean): C 'name': json['name'], 'type': json['type'], - 'config': CAPELLAConfigFromJSON(json['config']), + 'config': CAPELLAAuthConfigFromJSON(json['config']), }; } @@ -96,7 +96,7 @@ export function CapellaToJSONTyped(value?: Capella | null, ignoreDiscriminator: 'name': value['name'], 'type': value['type'], - 'config': CAPELLAConfigToJSON(value['config']), + 'config': CAPELLAAuthConfigToJSON(value['config']), }; } diff --git a/src/ts/src/models/Capella1.ts b/src/ts/src/models/Capella1.ts index aefde66..2171858 100644 --- a/src/ts/src/models/Capella1.ts +++ b/src/ts/src/models/Capella1.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,13 +13,13 @@ */ import { mapValues } from '../runtime'; -import type { CAPELLAConfig } from './CAPELLAConfig'; +import type { CAPELLAAuthConfig } from './CAPELLAAuthConfig'; import { - CAPELLAConfigFromJSON, - CAPELLAConfigFromJSONTyped, - CAPELLAConfigToJSON, - CAPELLAConfigToJSONTyped, -} from './CAPELLAConfig'; + CAPELLAAuthConfigFromJSON, + CAPELLAAuthConfigFromJSONTyped, + CAPELLAAuthConfigToJSON, + CAPELLAAuthConfigToJSONTyped, +} from './CAPELLAAuthConfig'; /** * @@ -29,10 +29,10 @@ import { export interface Capella1 { /** * - * @type {CAPELLAConfig} + * @type {CAPELLAAuthConfig} * @memberof Capella1 */ - config?: CAPELLAConfig; + config?: CAPELLAAuthConfig; } /** @@ -52,7 +52,7 @@ export function Capella1FromJSONTyped(json: any, ignoreDiscriminator: boolean): } return { - 'config': json['config'] == null ? undefined : CAPELLAConfigFromJSON(json['config']), + 'config': json['config'] == null ? undefined : CAPELLAAuthConfigFromJSON(json['config']), }; } @@ -67,7 +67,7 @@ export function Capella1ToJSONTyped(value?: Capella1 | null, ignoreDiscriminator return { - 'config': CAPELLAConfigToJSON(value['config']), + 'config': CAPELLAAuthConfigToJSON(value['config']), }; } diff --git a/src/ts/src/models/Confluence.ts b/src/ts/src/models/Confluence.ts index 7858d1c..299fd35 100644 --- a/src/ts/src/models/Confluence.ts +++ b/src/ts/src/models/Confluence.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,13 +13,13 @@ */ import { mapValues } from '../runtime'; -import type { CONFLUENCEConfig } from './CONFLUENCEConfig'; +import type { CONFLUENCEAuthConfig } from './CONFLUENCEAuthConfig'; import { - CONFLUENCEConfigFromJSON, - CONFLUENCEConfigFromJSONTyped, - CONFLUENCEConfigToJSON, - CONFLUENCEConfigToJSONTyped, -} from './CONFLUENCEConfig'; + CONFLUENCEAuthConfigFromJSON, + CONFLUENCEAuthConfigFromJSONTyped, + CONFLUENCEAuthConfigToJSON, + CONFLUENCEAuthConfigToJSONTyped, +} from './CONFLUENCEAuthConfig'; /** * @@ -41,10 +41,10 @@ export interface Confluence { type: ConfluenceTypeEnum; /** * - * @type {CONFLUENCEConfig} + * @type {CONFLUENCEAuthConfig} * @memberof Confluence */ - config: CONFLUENCEConfig; + config: CONFLUENCEAuthConfig; } @@ -79,7 +79,7 @@ export function ConfluenceFromJSONTyped(json: any, ignoreDiscriminator: boolean) 'name': json['name'], 'type': json['type'], - 'config': CONFLUENCEConfigFromJSON(json['config']), + 'config': CONFLUENCEAuthConfigFromJSON(json['config']), }; } @@ -96,7 +96,7 @@ export function ConfluenceToJSONTyped(value?: Confluence | null, ignoreDiscrimin 'name': value['name'], 'type': value['type'], - 'config': CONFLUENCEConfigToJSON(value['config']), + 'config': CONFLUENCEAuthConfigToJSON(value['config']), }; } diff --git a/src/ts/src/models/Confluence1.ts b/src/ts/src/models/Confluence1.ts index 3ad6d60..c73f211 100644 --- a/src/ts/src/models/Confluence1.ts +++ b/src/ts/src/models/Confluence1.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,13 +13,13 @@ */ import { mapValues } from '../runtime'; -import type { CONFLUENCEConfig } from './CONFLUENCEConfig'; +import type { CONFLUENCEAuthConfig } from './CONFLUENCEAuthConfig'; import { - CONFLUENCEConfigFromJSON, - CONFLUENCEConfigFromJSONTyped, - CONFLUENCEConfigToJSON, - CONFLUENCEConfigToJSONTyped, -} from './CONFLUENCEConfig'; + CONFLUENCEAuthConfigFromJSON, + CONFLUENCEAuthConfigFromJSONTyped, + CONFLUENCEAuthConfigToJSON, + CONFLUENCEAuthConfigToJSONTyped, +} from './CONFLUENCEAuthConfig'; /** * @@ -29,10 +29,10 @@ import { export interface Confluence1 { /** * - * @type {CONFLUENCEConfig} + * @type {CONFLUENCEAuthConfig} * @memberof Confluence1 */ - config?: CONFLUENCEConfig; + config?: CONFLUENCEAuthConfig; } /** @@ -52,7 +52,7 @@ export function Confluence1FromJSONTyped(json: any, ignoreDiscriminator: boolean } return { - 'config': json['config'] == null ? undefined : CONFLUENCEConfigFromJSON(json['config']), + 'config': json['config'] == null ? undefined : CONFLUENCEAuthConfigFromJSON(json['config']), }; } @@ -67,7 +67,7 @@ export function Confluence1ToJSONTyped(value?: Confluence1 | null, ignoreDiscrim return { - 'config': CONFLUENCEConfigToJSON(value['config']), + 'config': CONFLUENCEAuthConfigToJSON(value['config']), }; } diff --git a/src/ts/src/models/CreateAIPlatformConnectorRequest.ts b/src/ts/src/models/CreateAIPlatformConnectorRequest.ts index 764f9bd..320cb7d 100644 --- a/src/ts/src/models/CreateAIPlatformConnectorRequest.ts +++ b/src/ts/src/models/CreateAIPlatformConnectorRequest.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/CreateAIPlatformConnectorResponse.ts b/src/ts/src/models/CreateAIPlatformConnectorResponse.ts index 2dcff0b..d7da430 100644 --- a/src/ts/src/models/CreateAIPlatformConnectorResponse.ts +++ b/src/ts/src/models/CreateAIPlatformConnectorResponse.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/CreateDestinationConnectorRequest.ts b/src/ts/src/models/CreateDestinationConnectorRequest.ts index aad865d..4efbba5 100644 --- a/src/ts/src/models/CreateDestinationConnectorRequest.ts +++ b/src/ts/src/models/CreateDestinationConnectorRequest.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/CreateDestinationConnectorResponse.ts b/src/ts/src/models/CreateDestinationConnectorResponse.ts index eb21dfe..1b39613 100644 --- a/src/ts/src/models/CreateDestinationConnectorResponse.ts +++ b/src/ts/src/models/CreateDestinationConnectorResponse.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/CreatePipelineResponse.ts b/src/ts/src/models/CreatePipelineResponse.ts index 227ab73..bf4b840 100644 --- a/src/ts/src/models/CreatePipelineResponse.ts +++ b/src/ts/src/models/CreatePipelineResponse.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/CreatePipelineResponseData.ts b/src/ts/src/models/CreatePipelineResponseData.ts index dcca309..83039ee 100644 --- a/src/ts/src/models/CreatePipelineResponseData.ts +++ b/src/ts/src/models/CreatePipelineResponseData.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/CreateSourceConnectorRequest.ts b/src/ts/src/models/CreateSourceConnectorRequest.ts index 503d596..5ddd1e8 100644 --- a/src/ts/src/models/CreateSourceConnectorRequest.ts +++ b/src/ts/src/models/CreateSourceConnectorRequest.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/CreateSourceConnectorResponse.ts b/src/ts/src/models/CreateSourceConnectorResponse.ts index 31fbe6d..d0dbb22 100644 --- a/src/ts/src/models/CreateSourceConnectorResponse.ts +++ b/src/ts/src/models/CreateSourceConnectorResponse.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/CreatedAIPlatformConnector.ts b/src/ts/src/models/CreatedAIPlatformConnector.ts index 33f25a8..a231110 100644 --- a/src/ts/src/models/CreatedAIPlatformConnector.ts +++ b/src/ts/src/models/CreatedAIPlatformConnector.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/CreatedDestinationConnector.ts b/src/ts/src/models/CreatedDestinationConnector.ts index 1e23edb..50bb9dd 100644 --- a/src/ts/src/models/CreatedDestinationConnector.ts +++ b/src/ts/src/models/CreatedDestinationConnector.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/CreatedSourceConnector.ts b/src/ts/src/models/CreatedSourceConnector.ts index b1cc1f5..28a1ccc 100644 --- a/src/ts/src/models/CreatedSourceConnector.ts +++ b/src/ts/src/models/CreatedSourceConnector.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/DATASTAXAuthConfig.ts b/src/ts/src/models/DATASTAXAuthConfig.ts index 6dd2583..3b29c72 100644 --- a/src/ts/src/models/DATASTAXAuthConfig.ts +++ b/src/ts/src/models/DATASTAXAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,12 +19,6 @@ import { mapValues } from '../runtime'; * @interface DATASTAXAuthConfig */ export interface DATASTAXAuthConfig { - /** - * Name. Example: Enter a descriptive name for your DataStax integration - * @type {string} - * @memberof DATASTAXAuthConfig - */ - name: string; /** * API Endpoint. Example: Enter your API endpoint * @type {string} @@ -43,7 +37,6 @@ export interface DATASTAXAuthConfig { * Check if a given object implements the DATASTAXAuthConfig interface. */ export function instanceOfDATASTAXAuthConfig(value: object): value is DATASTAXAuthConfig { - if (!('name' in value) || value['name'] === undefined) return false; if (!('endpointSecret' in value) || value['endpointSecret'] === undefined) return false; if (!('token' in value) || value['token'] === undefined) return false; return true; @@ -59,7 +52,6 @@ export function DATASTAXAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: } return { - 'name': json['name'], 'endpointSecret': json['endpoint_secret'], 'token': json['token'], }; @@ -76,7 +68,6 @@ export function DATASTAXAuthConfigToJSONTyped(value?: DATASTAXAuthConfig | null, return { - 'name': value['name'], 'endpoint_secret': value['endpointSecret'], 'token': value['token'], }; diff --git a/src/ts/src/models/DATASTAXConfig.ts b/src/ts/src/models/DATASTAXConfig.ts index 6e1ed8e..7dbeb67 100644 --- a/src/ts/src/models/DATASTAXConfig.ts +++ b/src/ts/src/models/DATASTAXConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/DISCORDAuthConfig.ts b/src/ts/src/models/DISCORDAuthConfig.ts index db6b6f5..72b46db 100644 --- a/src/ts/src/models/DISCORDAuthConfig.ts +++ b/src/ts/src/models/DISCORDAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,12 +19,6 @@ import { mapValues } from '../runtime'; * @interface DISCORDAuthConfig */ export interface DISCORDAuthConfig { - /** - * Name. Example: Enter a descriptive name - * @type {string} - * @memberof DISCORDAuthConfig - */ - name: string; /** * Server ID. Example: Enter Server ID * @type {string} @@ -39,17 +33,16 @@ export interface DISCORDAuthConfig { botToken: string; /** * Channel ID. Example: Enter channel ID - * @type {string} + * @type {Array} * @memberof DISCORDAuthConfig */ - channelIds: string; + channelIds: Array; } /** * Check if a given object implements the DISCORDAuthConfig interface. */ export function instanceOfDISCORDAuthConfig(value: object): value is DISCORDAuthConfig { - if (!('name' in value) || value['name'] === undefined) return false; if (!('serverId' in value) || value['serverId'] === undefined) return false; if (!('botToken' in value) || value['botToken'] === undefined) return false; if (!('channelIds' in value) || value['channelIds'] === undefined) return false; @@ -66,7 +59,6 @@ export function DISCORDAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: b } return { - 'name': json['name'], 'serverId': json['server-id'], 'botToken': json['bot-token'], 'channelIds': json['channel-ids'], @@ -84,7 +76,6 @@ export function DISCORDAuthConfigToJSONTyped(value?: DISCORDAuthConfig | null, i return { - 'name': value['name'], 'server-id': value['serverId'], 'bot-token': value['botToken'], 'channel-ids': value['channelIds'], diff --git a/src/ts/src/models/DISCORDConfig.ts b/src/ts/src/models/DISCORDConfig.ts index 9cce84f..2c04998 100644 --- a/src/ts/src/models/DISCORDConfig.ts +++ b/src/ts/src/models/DISCORDConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,22 +21,22 @@ import { mapValues } from '../runtime'; export interface DISCORDConfig { /** * Emoji Filter. Example: Enter custom emoji filter name - * @type {string} + * @type {Array} * @memberof DISCORDConfig */ - emoji?: string; + emoji?: Array; /** * Author Filter. Example: Enter author name - * @type {string} + * @type {Array} * @memberof DISCORDConfig */ - author?: string; + author?: Array; /** * Ignore Author Filter. Example: Enter ignore author name - * @type {string} + * @type {Array} * @memberof DISCORDConfig */ - ignoreAuthor?: string; + ignoreAuthor?: Array; /** * Limit. Example: Enter limit * @type {number} diff --git a/src/ts/src/models/DROPBOXAuthConfig.ts b/src/ts/src/models/DROPBOXAuthConfig.ts index a4b5c4d..e42f392 100644 --- a/src/ts/src/models/DROPBOXAuthConfig.ts +++ b/src/ts/src/models/DROPBOXAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,12 +19,6 @@ import { mapValues } from '../runtime'; * @interface DROPBOXAuthConfig */ export interface DROPBOXAuthConfig { - /** - * Name. Example: Enter a descriptive name - * @type {string} - * @memberof DROPBOXAuthConfig - */ - name: string; /** * Connect Dropbox to Vectorize. Example: Authorize * @type {string} @@ -37,7 +31,6 @@ export interface DROPBOXAuthConfig { * Check if a given object implements the DROPBOXAuthConfig interface. */ export function instanceOfDROPBOXAuthConfig(value: object): value is DROPBOXAuthConfig { - if (!('name' in value) || value['name'] === undefined) return false; if (!('refreshToken' in value) || value['refreshToken'] === undefined) return false; return true; } @@ -52,7 +45,6 @@ export function DROPBOXAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: b } return { - 'name': json['name'], 'refreshToken': json['refresh-token'], }; } @@ -68,7 +60,6 @@ export function DROPBOXAuthConfigToJSONTyped(value?: DROPBOXAuthConfig | null, i return { - 'name': value['name'], 'refresh-token': value['refreshToken'], }; } diff --git a/src/ts/src/models/DROPBOXConfig.ts b/src/ts/src/models/DROPBOXConfig.ts index 65b6b04..9e59a4e 100644 --- a/src/ts/src/models/DROPBOXConfig.ts +++ b/src/ts/src/models/DROPBOXConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,10 +21,10 @@ import { mapValues } from '../runtime'; export interface DROPBOXConfig { /** * Read from these folders (optional). Example: Enter Path: /exampleFolder/subFolder - * @type {string} + * @type {Array} * @memberof DROPBOXConfig */ - pathPrefix?: string; + pathPrefix?: Array; } /** diff --git a/src/ts/src/models/DROPBOXOAUTHAuthConfig.ts b/src/ts/src/models/DROPBOXOAUTHAuthConfig.ts index 7cd7328..2b10f98 100644 --- a/src/ts/src/models/DROPBOXOAUTHAuthConfig.ts +++ b/src/ts/src/models/DROPBOXOAUTHAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,12 +19,6 @@ import { mapValues } from '../runtime'; * @interface DROPBOXOAUTHAuthConfig */ export interface DROPBOXOAUTHAuthConfig { - /** - * Name. Example: Enter a descriptive name - * @type {string} - * @memberof DROPBOXOAUTHAuthConfig - */ - name: string; /** * Authorized User * @type {string} @@ -55,7 +49,6 @@ export interface DROPBOXOAUTHAuthConfig { * Check if a given object implements the DROPBOXOAUTHAuthConfig interface. */ export function instanceOfDROPBOXOAUTHAuthConfig(value: object): value is DROPBOXOAUTHAuthConfig { - if (!('name' in value) || value['name'] === undefined) return false; if (!('selectionDetails' in value) || value['selectionDetails'] === undefined) return false; return true; } @@ -70,7 +63,6 @@ export function DROPBOXOAUTHAuthConfigFromJSONTyped(json: any, ignoreDiscriminat } return { - 'name': json['name'], 'authorizedUser': json['authorized-user'] == null ? undefined : json['authorized-user'], 'selectionDetails': json['selection-details'], 'editedUsers': json['editedUsers'] == null ? undefined : json['editedUsers'], @@ -89,7 +81,6 @@ export function DROPBOXOAUTHAuthConfigToJSONTyped(value?: DROPBOXOAUTHAuthConfig return { - 'name': value['name'], 'authorized-user': value['authorizedUser'], 'selection-details': value['selectionDetails'], 'editedUsers': value['editedUsers'], diff --git a/src/ts/src/models/DROPBOXOAUTHMULTIAuthConfig.ts b/src/ts/src/models/DROPBOXOAUTHMULTIAuthConfig.ts index 1dbd70e..c44c091 100644 --- a/src/ts/src/models/DROPBOXOAUTHMULTIAuthConfig.ts +++ b/src/ts/src/models/DROPBOXOAUTHMULTIAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,18 +19,12 @@ import { mapValues } from '../runtime'; * @interface DROPBOXOAUTHMULTIAuthConfig */ export interface DROPBOXOAUTHMULTIAuthConfig { - /** - * Name. Example: Enter a descriptive name - * @type {string} - * @memberof DROPBOXOAUTHMULTIAuthConfig - */ - name: string; /** * Authorized Users - * @type {string} + * @type {Array} * @memberof DROPBOXOAUTHMULTIAuthConfig */ - authorizedUsers?: string; + authorizedUsers?: Array; /** * * @type {object} @@ -49,7 +43,6 @@ export interface DROPBOXOAUTHMULTIAuthConfig { * Check if a given object implements the DROPBOXOAUTHMULTIAuthConfig interface. */ export function instanceOfDROPBOXOAUTHMULTIAuthConfig(value: object): value is DROPBOXOAUTHMULTIAuthConfig { - if (!('name' in value) || value['name'] === undefined) return false; return true; } @@ -63,7 +56,6 @@ export function DROPBOXOAUTHMULTIAuthConfigFromJSONTyped(json: any, ignoreDiscri } return { - 'name': json['name'], 'authorizedUsers': json['authorized-users'] == null ? undefined : json['authorized-users'], 'editedUsers': json['editedUsers'] == null ? undefined : json['editedUsers'], 'deletedUsers': json['deletedUsers'] == null ? undefined : json['deletedUsers'], @@ -81,7 +73,6 @@ export function DROPBOXOAUTHMULTIAuthConfigToJSONTyped(value?: DROPBOXOAUTHMULTI return { - 'name': value['name'], 'authorized-users': value['authorizedUsers'], 'editedUsers': value['editedUsers'], 'deletedUsers': value['deletedUsers'], diff --git a/src/ts/src/models/DROPBOXOAUTHMULTICUSTOMAuthConfig.ts b/src/ts/src/models/DROPBOXOAUTHMULTICUSTOMAuthConfig.ts index 342b1a8..e5238e9 100644 --- a/src/ts/src/models/DROPBOXOAUTHMULTICUSTOMAuthConfig.ts +++ b/src/ts/src/models/DROPBOXOAUTHMULTICUSTOMAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,12 +19,6 @@ import { mapValues } from '../runtime'; * @interface DROPBOXOAUTHMULTICUSTOMAuthConfig */ export interface DROPBOXOAUTHMULTICUSTOMAuthConfig { - /** - * Name. Example: Enter a descriptive name - * @type {string} - * @memberof DROPBOXOAUTHMULTICUSTOMAuthConfig - */ - name: string; /** * Dropbox App Key. Example: Enter App Key * @type {string} @@ -39,10 +33,10 @@ export interface DROPBOXOAUTHMULTICUSTOMAuthConfig { appSecret: string; /** * Authorized Users - * @type {string} + * @type {Array} * @memberof DROPBOXOAUTHMULTICUSTOMAuthConfig */ - authorizedUsers?: string; + authorizedUsers?: Array; /** * * @type {object} @@ -61,7 +55,6 @@ export interface DROPBOXOAUTHMULTICUSTOMAuthConfig { * Check if a given object implements the DROPBOXOAUTHMULTICUSTOMAuthConfig interface. */ export function instanceOfDROPBOXOAUTHMULTICUSTOMAuthConfig(value: object): value is DROPBOXOAUTHMULTICUSTOMAuthConfig { - if (!('name' in value) || value['name'] === undefined) return false; if (!('appKey' in value) || value['appKey'] === undefined) return false; if (!('appSecret' in value) || value['appSecret'] === undefined) return false; return true; @@ -77,7 +70,6 @@ export function DROPBOXOAUTHMULTICUSTOMAuthConfigFromJSONTyped(json: any, ignore } return { - 'name': json['name'], 'appKey': json['app-key'], 'appSecret': json['app-secret'], 'authorizedUsers': json['authorized-users'] == null ? undefined : json['authorized-users'], @@ -97,7 +89,6 @@ export function DROPBOXOAUTHMULTICUSTOMAuthConfigToJSONTyped(value?: DROPBOXOAUT return { - 'name': value['name'], 'app-key': value['appKey'], 'app-secret': value['appSecret'], 'authorized-users': value['authorizedUsers'], diff --git a/src/ts/src/models/Datastax.ts b/src/ts/src/models/Datastax.ts index 6df9d15..d62f297 100644 --- a/src/ts/src/models/Datastax.ts +++ b/src/ts/src/models/Datastax.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,13 +13,13 @@ */ import { mapValues } from '../runtime'; -import type { DATASTAXConfig } from './DATASTAXConfig'; +import type { DATASTAXAuthConfig } from './DATASTAXAuthConfig'; import { - DATASTAXConfigFromJSON, - DATASTAXConfigFromJSONTyped, - DATASTAXConfigToJSON, - DATASTAXConfigToJSONTyped, -} from './DATASTAXConfig'; + DATASTAXAuthConfigFromJSON, + DATASTAXAuthConfigFromJSONTyped, + DATASTAXAuthConfigToJSON, + DATASTAXAuthConfigToJSONTyped, +} from './DATASTAXAuthConfig'; /** * @@ -41,10 +41,10 @@ export interface Datastax { type: DatastaxTypeEnum; /** * - * @type {DATASTAXConfig} + * @type {DATASTAXAuthConfig} * @memberof Datastax */ - config: DATASTAXConfig; + config: DATASTAXAuthConfig; } @@ -79,7 +79,7 @@ export function DatastaxFromJSONTyped(json: any, ignoreDiscriminator: boolean): 'name': json['name'], 'type': json['type'], - 'config': DATASTAXConfigFromJSON(json['config']), + 'config': DATASTAXAuthConfigFromJSON(json['config']), }; } @@ -96,7 +96,7 @@ export function DatastaxToJSONTyped(value?: Datastax | null, ignoreDiscriminator 'name': value['name'], 'type': value['type'], - 'config': DATASTAXConfigToJSON(value['config']), + 'config': DATASTAXAuthConfigToJSON(value['config']), }; } diff --git a/src/ts/src/models/Datastax1.ts b/src/ts/src/models/Datastax1.ts index 8158560..d0cee01 100644 --- a/src/ts/src/models/Datastax1.ts +++ b/src/ts/src/models/Datastax1.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,13 +13,13 @@ */ import { mapValues } from '../runtime'; -import type { DATASTAXConfig } from './DATASTAXConfig'; +import type { DATASTAXAuthConfig } from './DATASTAXAuthConfig'; import { - DATASTAXConfigFromJSON, - DATASTAXConfigFromJSONTyped, - DATASTAXConfigToJSON, - DATASTAXConfigToJSONTyped, -} from './DATASTAXConfig'; + DATASTAXAuthConfigFromJSON, + DATASTAXAuthConfigFromJSONTyped, + DATASTAXAuthConfigToJSON, + DATASTAXAuthConfigToJSONTyped, +} from './DATASTAXAuthConfig'; /** * @@ -29,10 +29,10 @@ import { export interface Datastax1 { /** * - * @type {DATASTAXConfig} + * @type {DATASTAXAuthConfig} * @memberof Datastax1 */ - config?: DATASTAXConfig; + config?: DATASTAXAuthConfig; } /** @@ -52,7 +52,7 @@ export function Datastax1FromJSONTyped(json: any, ignoreDiscriminator: boolean): } return { - 'config': json['config'] == null ? undefined : DATASTAXConfigFromJSON(json['config']), + 'config': json['config'] == null ? undefined : DATASTAXAuthConfigFromJSON(json['config']), }; } @@ -67,7 +67,7 @@ export function Datastax1ToJSONTyped(value?: Datastax1 | null, ignoreDiscriminat return { - 'config': DATASTAXConfigToJSON(value['config']), + 'config': DATASTAXAuthConfigToJSON(value['config']), }; } diff --git a/src/ts/src/models/DeepResearchResult.ts b/src/ts/src/models/DeepResearchResult.ts index 65bc4a6..237f194 100644 --- a/src/ts/src/models/DeepResearchResult.ts +++ b/src/ts/src/models/DeepResearchResult.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/DeleteAIPlatformConnectorResponse.ts b/src/ts/src/models/DeleteAIPlatformConnectorResponse.ts index 71321ac..456203f 100644 --- a/src/ts/src/models/DeleteAIPlatformConnectorResponse.ts +++ b/src/ts/src/models/DeleteAIPlatformConnectorResponse.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/DeleteDestinationConnectorResponse.ts b/src/ts/src/models/DeleteDestinationConnectorResponse.ts index 60e8c18..895797a 100644 --- a/src/ts/src/models/DeleteDestinationConnectorResponse.ts +++ b/src/ts/src/models/DeleteDestinationConnectorResponse.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/DeleteFileResponse.ts b/src/ts/src/models/DeleteFileResponse.ts index 6c96f55..943442c 100644 --- a/src/ts/src/models/DeleteFileResponse.ts +++ b/src/ts/src/models/DeleteFileResponse.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/DeletePipelineResponse.ts b/src/ts/src/models/DeletePipelineResponse.ts index 34b5f63..ddcd268 100644 --- a/src/ts/src/models/DeletePipelineResponse.ts +++ b/src/ts/src/models/DeletePipelineResponse.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/DeleteSourceConnectorResponse.ts b/src/ts/src/models/DeleteSourceConnectorResponse.ts index 7cb95ae..ae4b688 100644 --- a/src/ts/src/models/DeleteSourceConnectorResponse.ts +++ b/src/ts/src/models/DeleteSourceConnectorResponse.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/DestinationConnector.ts b/src/ts/src/models/DestinationConnector.ts index 56b6a5d..72676bc 100644 --- a/src/ts/src/models/DestinationConnector.ts +++ b/src/ts/src/models/DestinationConnector.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/DestinationConnectorInput.ts b/src/ts/src/models/DestinationConnectorInput.ts index b98801b..77476d6 100644 --- a/src/ts/src/models/DestinationConnectorInput.ts +++ b/src/ts/src/models/DestinationConnectorInput.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/DestinationConnectorInputConfig.ts b/src/ts/src/models/DestinationConnectorInputConfig.ts index be3a11a..90eeab4 100644 --- a/src/ts/src/models/DestinationConnectorInputConfig.ts +++ b/src/ts/src/models/DestinationConnectorInputConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/DestinationConnectorType.ts b/src/ts/src/models/DestinationConnectorType.ts index 3b81f70..bda0357 100644 --- a/src/ts/src/models/DestinationConnectorType.ts +++ b/src/ts/src/models/DestinationConnectorType.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/DestinationConnectorTypeForPipeline.ts b/src/ts/src/models/DestinationConnectorTypeForPipeline.ts index 2ab03b6..2aa1b1c 100644 --- a/src/ts/src/models/DestinationConnectorTypeForPipeline.ts +++ b/src/ts/src/models/DestinationConnectorTypeForPipeline.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/Discord.ts b/src/ts/src/models/Discord.ts index 01908c3..d7aea43 100644 --- a/src/ts/src/models/Discord.ts +++ b/src/ts/src/models/Discord.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,13 +13,13 @@ */ import { mapValues } from '../runtime'; -import type { DISCORDConfig } from './DISCORDConfig'; +import type { DISCORDAuthConfig } from './DISCORDAuthConfig'; import { - DISCORDConfigFromJSON, - DISCORDConfigFromJSONTyped, - DISCORDConfigToJSON, - DISCORDConfigToJSONTyped, -} from './DISCORDConfig'; + DISCORDAuthConfigFromJSON, + DISCORDAuthConfigFromJSONTyped, + DISCORDAuthConfigToJSON, + DISCORDAuthConfigToJSONTyped, +} from './DISCORDAuthConfig'; /** * @@ -41,10 +41,10 @@ export interface Discord { type: DiscordTypeEnum; /** * - * @type {DISCORDConfig} + * @type {DISCORDAuthConfig} * @memberof Discord */ - config: DISCORDConfig; + config: DISCORDAuthConfig; } @@ -79,7 +79,7 @@ export function DiscordFromJSONTyped(json: any, ignoreDiscriminator: boolean): D 'name': json['name'], 'type': json['type'], - 'config': DISCORDConfigFromJSON(json['config']), + 'config': DISCORDAuthConfigFromJSON(json['config']), }; } @@ -96,7 +96,7 @@ export function DiscordToJSONTyped(value?: Discord | null, ignoreDiscriminator: 'name': value['name'], 'type': value['type'], - 'config': DISCORDConfigToJSON(value['config']), + 'config': DISCORDAuthConfigToJSON(value['config']), }; } diff --git a/src/ts/src/models/Discord1.ts b/src/ts/src/models/Discord1.ts index 098404f..898501c 100644 --- a/src/ts/src/models/Discord1.ts +++ b/src/ts/src/models/Discord1.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,13 +13,13 @@ */ import { mapValues } from '../runtime'; -import type { DISCORDConfig } from './DISCORDConfig'; +import type { DISCORDAuthConfig } from './DISCORDAuthConfig'; import { - DISCORDConfigFromJSON, - DISCORDConfigFromJSONTyped, - DISCORDConfigToJSON, - DISCORDConfigToJSONTyped, -} from './DISCORDConfig'; + DISCORDAuthConfigFromJSON, + DISCORDAuthConfigFromJSONTyped, + DISCORDAuthConfigToJSON, + DISCORDAuthConfigToJSONTyped, +} from './DISCORDAuthConfig'; /** * @@ -29,10 +29,10 @@ import { export interface Discord1 { /** * - * @type {DISCORDConfig} + * @type {DISCORDAuthConfig} * @memberof Discord1 */ - config?: DISCORDConfig; + config?: DISCORDAuthConfig; } /** @@ -52,7 +52,7 @@ export function Discord1FromJSONTyped(json: any, ignoreDiscriminator: boolean): } return { - 'config': json['config'] == null ? undefined : DISCORDConfigFromJSON(json['config']), + 'config': json['config'] == null ? undefined : DISCORDAuthConfigFromJSON(json['config']), }; } @@ -67,7 +67,7 @@ export function Discord1ToJSONTyped(value?: Discord1 | null, ignoreDiscriminator return { - 'config': DISCORDConfigToJSON(value['config']), + 'config': DISCORDAuthConfigToJSON(value['config']), }; } diff --git a/src/ts/src/models/Document.ts b/src/ts/src/models/Document.ts index 88a3672..52f04b8 100644 --- a/src/ts/src/models/Document.ts +++ b/src/ts/src/models/Document.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/Dropbox.ts b/src/ts/src/models/Dropbox.ts index 3cf5ba3..b03c526 100644 --- a/src/ts/src/models/Dropbox.ts +++ b/src/ts/src/models/Dropbox.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,13 +13,13 @@ */ import { mapValues } from '../runtime'; -import type { DROPBOXConfig } from './DROPBOXConfig'; +import type { DROPBOXAuthConfig } from './DROPBOXAuthConfig'; import { - DROPBOXConfigFromJSON, - DROPBOXConfigFromJSONTyped, - DROPBOXConfigToJSON, - DROPBOXConfigToJSONTyped, -} from './DROPBOXConfig'; + DROPBOXAuthConfigFromJSON, + DROPBOXAuthConfigFromJSONTyped, + DROPBOXAuthConfigToJSON, + DROPBOXAuthConfigToJSONTyped, +} from './DROPBOXAuthConfig'; /** * @@ -29,10 +29,10 @@ import { export interface Dropbox { /** * - * @type {DROPBOXConfig} + * @type {DROPBOXAuthConfig} * @memberof Dropbox */ - config?: DROPBOXConfig; + config?: DROPBOXAuthConfig; } /** @@ -52,7 +52,7 @@ export function DropboxFromJSONTyped(json: any, ignoreDiscriminator: boolean): D } return { - 'config': json['config'] == null ? undefined : DROPBOXConfigFromJSON(json['config']), + 'config': json['config'] == null ? undefined : DROPBOXAuthConfigFromJSON(json['config']), }; } @@ -67,7 +67,7 @@ export function DropboxToJSONTyped(value?: Dropbox | null, ignoreDiscriminator: return { - 'config': DROPBOXConfigToJSON(value['config']), + 'config': DROPBOXAuthConfigToJSON(value['config']), }; } diff --git a/src/ts/src/models/DropboxOauth.ts b/src/ts/src/models/DropboxOauth.ts index 951fb75..89e45fc 100644 --- a/src/ts/src/models/DropboxOauth.ts +++ b/src/ts/src/models/DropboxOauth.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/DropboxOauthMulti.ts b/src/ts/src/models/DropboxOauthMulti.ts index 87a4e9d..bfaf480 100644 --- a/src/ts/src/models/DropboxOauthMulti.ts +++ b/src/ts/src/models/DropboxOauthMulti.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/DropboxOauthMultiCustom.ts b/src/ts/src/models/DropboxOauthMultiCustom.ts index b3b98c5..a48e2ca 100644 --- a/src/ts/src/models/DropboxOauthMultiCustom.ts +++ b/src/ts/src/models/DropboxOauthMultiCustom.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/ELASTICAuthConfig.ts b/src/ts/src/models/ELASTICAuthConfig.ts index c6ef52e..f77dbd5 100644 --- a/src/ts/src/models/ELASTICAuthConfig.ts +++ b/src/ts/src/models/ELASTICAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,12 +19,6 @@ import { mapValues } from '../runtime'; * @interface ELASTICAuthConfig */ export interface ELASTICAuthConfig { - /** - * Name. Example: Enter a descriptive name for your Elastic integration - * @type {string} - * @memberof ELASTICAuthConfig - */ - name: string; /** * Host. Example: Enter your host * @type {string} @@ -49,7 +43,6 @@ export interface ELASTICAuthConfig { * Check if a given object implements the ELASTICAuthConfig interface. */ export function instanceOfELASTICAuthConfig(value: object): value is ELASTICAuthConfig { - if (!('name' in value) || value['name'] === undefined) return false; if (!('host' in value) || value['host'] === undefined) return false; if (!('port' in value) || value['port'] === undefined) return false; if (!('apiKey' in value) || value['apiKey'] === undefined) return false; @@ -66,7 +59,6 @@ export function ELASTICAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: b } return { - 'name': json['name'], 'host': json['host'], 'port': json['port'], 'apiKey': json['api-key'], @@ -84,7 +76,6 @@ export function ELASTICAuthConfigToJSONTyped(value?: ELASTICAuthConfig | null, i return { - 'name': value['name'], 'host': value['host'], 'port': value['port'], 'api-key': value['apiKey'], diff --git a/src/ts/src/models/ELASTICConfig.ts b/src/ts/src/models/ELASTICConfig.ts index 302c9f4..9bf45f4 100644 --- a/src/ts/src/models/ELASTICConfig.ts +++ b/src/ts/src/models/ELASTICConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/Elastic.ts b/src/ts/src/models/Elastic.ts index 9d4c3e5..50cdf1e 100644 --- a/src/ts/src/models/Elastic.ts +++ b/src/ts/src/models/Elastic.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,13 +13,13 @@ */ import { mapValues } from '../runtime'; -import type { ELASTICConfig } from './ELASTICConfig'; +import type { ELASTICAuthConfig } from './ELASTICAuthConfig'; import { - ELASTICConfigFromJSON, - ELASTICConfigFromJSONTyped, - ELASTICConfigToJSON, - ELASTICConfigToJSONTyped, -} from './ELASTICConfig'; + ELASTICAuthConfigFromJSON, + ELASTICAuthConfigFromJSONTyped, + ELASTICAuthConfigToJSON, + ELASTICAuthConfigToJSONTyped, +} from './ELASTICAuthConfig'; /** * @@ -41,10 +41,10 @@ export interface Elastic { type: ElasticTypeEnum; /** * - * @type {ELASTICConfig} + * @type {ELASTICAuthConfig} * @memberof Elastic */ - config: ELASTICConfig; + config: ELASTICAuthConfig; } @@ -79,7 +79,7 @@ export function ElasticFromJSONTyped(json: any, ignoreDiscriminator: boolean): E 'name': json['name'], 'type': json['type'], - 'config': ELASTICConfigFromJSON(json['config']), + 'config': ELASTICAuthConfigFromJSON(json['config']), }; } @@ -96,7 +96,7 @@ export function ElasticToJSONTyped(value?: Elastic | null, ignoreDiscriminator: 'name': value['name'], 'type': value['type'], - 'config': ELASTICConfigToJSON(value['config']), + 'config': ELASTICAuthConfigToJSON(value['config']), }; } diff --git a/src/ts/src/models/Elastic1.ts b/src/ts/src/models/Elastic1.ts index a6f092f..9c528eb 100644 --- a/src/ts/src/models/Elastic1.ts +++ b/src/ts/src/models/Elastic1.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,13 +13,13 @@ */ import { mapValues } from '../runtime'; -import type { ELASTICConfig } from './ELASTICConfig'; +import type { ELASTICAuthConfig } from './ELASTICAuthConfig'; import { - ELASTICConfigFromJSON, - ELASTICConfigFromJSONTyped, - ELASTICConfigToJSON, - ELASTICConfigToJSONTyped, -} from './ELASTICConfig'; + ELASTICAuthConfigFromJSON, + ELASTICAuthConfigFromJSONTyped, + ELASTICAuthConfigToJSON, + ELASTICAuthConfigToJSONTyped, +} from './ELASTICAuthConfig'; /** * @@ -29,10 +29,10 @@ import { export interface Elastic1 { /** * - * @type {ELASTICConfig} + * @type {ELASTICAuthConfig} * @memberof Elastic1 */ - config?: ELASTICConfig; + config?: ELASTICAuthConfig; } /** @@ -52,7 +52,7 @@ export function Elastic1FromJSONTyped(json: any, ignoreDiscriminator: boolean): } return { - 'config': json['config'] == null ? undefined : ELASTICConfigFromJSON(json['config']), + 'config': json['config'] == null ? undefined : ELASTICAuthConfigFromJSON(json['config']), }; } @@ -67,7 +67,7 @@ export function Elastic1ToJSONTyped(value?: Elastic1 | null, ignoreDiscriminator return { - 'config': ELASTICConfigToJSON(value['config']), + 'config': ELASTICAuthConfigToJSON(value['config']), }; } diff --git a/src/ts/src/models/ExtractionChunkingStrategy.ts b/src/ts/src/models/ExtractionChunkingStrategy.ts index 1c876cf..cef6aba 100644 --- a/src/ts/src/models/ExtractionChunkingStrategy.ts +++ b/src/ts/src/models/ExtractionChunkingStrategy.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/ExtractionResult.ts b/src/ts/src/models/ExtractionResult.ts index 2c431eb..e9a8fdf 100644 --- a/src/ts/src/models/ExtractionResult.ts +++ b/src/ts/src/models/ExtractionResult.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/ExtractionResultResponse.ts b/src/ts/src/models/ExtractionResultResponse.ts index c8d0712..09fb212 100644 --- a/src/ts/src/models/ExtractionResultResponse.ts +++ b/src/ts/src/models/ExtractionResultResponse.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/ExtractionType.ts b/src/ts/src/models/ExtractionType.ts index 8798413..58e0605 100644 --- a/src/ts/src/models/ExtractionType.ts +++ b/src/ts/src/models/ExtractionType.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/FILEUPLOADAuthConfig.ts b/src/ts/src/models/FILEUPLOADAuthConfig.ts index 2693743..7a69ee9 100644 --- a/src/ts/src/models/FILEUPLOADAuthConfig.ts +++ b/src/ts/src/models/FILEUPLOADAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,12 +19,6 @@ import { mapValues } from '../runtime'; * @interface FILEUPLOADAuthConfig */ export interface FILEUPLOADAuthConfig { - /** - * Name. Example: Enter a descriptive name for this connector - * @type {string} - * @memberof FILEUPLOADAuthConfig - */ - name: string; /** * Path Prefix * @type {string} @@ -43,7 +37,6 @@ export interface FILEUPLOADAuthConfig { * Check if a given object implements the FILEUPLOADAuthConfig interface. */ export function instanceOfFILEUPLOADAuthConfig(value: object): value is FILEUPLOADAuthConfig { - if (!('name' in value) || value['name'] === undefined) return false; return true; } @@ -57,7 +50,6 @@ export function FILEUPLOADAuthConfigFromJSONTyped(json: any, ignoreDiscriminator } return { - 'name': json['name'], 'pathPrefix': json['path-prefix'] == null ? undefined : json['path-prefix'], 'files': json['files'] == null ? undefined : json['files'], }; @@ -74,7 +66,6 @@ export function FILEUPLOADAuthConfigToJSONTyped(value?: FILEUPLOADAuthConfig | n return { - 'name': value['name'], 'path-prefix': value['pathPrefix'], 'files': value['files'], }; diff --git a/src/ts/src/models/FIRECRAWLAuthConfig.ts b/src/ts/src/models/FIRECRAWLAuthConfig.ts index 24e1234..ac79a2b 100644 --- a/src/ts/src/models/FIRECRAWLAuthConfig.ts +++ b/src/ts/src/models/FIRECRAWLAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,12 +19,6 @@ import { mapValues } from '../runtime'; * @interface FIRECRAWLAuthConfig */ export interface FIRECRAWLAuthConfig { - /** - * Name. Example: Enter a descriptive name - * @type {string} - * @memberof FIRECRAWLAuthConfig - */ - name: string; /** * API Key. Example: Enter your Firecrawl API Key * @type {string} @@ -37,7 +31,6 @@ export interface FIRECRAWLAuthConfig { * Check if a given object implements the FIRECRAWLAuthConfig interface. */ export function instanceOfFIRECRAWLAuthConfig(value: object): value is FIRECRAWLAuthConfig { - if (!('name' in value) || value['name'] === undefined) return false; if (!('apiKey' in value) || value['apiKey'] === undefined) return false; return true; } @@ -52,7 +45,6 @@ export function FIRECRAWLAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: } return { - 'name': json['name'], 'apiKey': json['api-key'], }; } @@ -68,7 +60,6 @@ export function FIRECRAWLAuthConfigToJSONTyped(value?: FIRECRAWLAuthConfig | nul return { - 'name': value['name'], 'api-key': value['apiKey'], }; } diff --git a/src/ts/src/models/FIRECRAWLConfig.ts b/src/ts/src/models/FIRECRAWLConfig.ts index d456927..8e71cd6 100644 --- a/src/ts/src/models/FIRECRAWLConfig.ts +++ b/src/ts/src/models/FIRECRAWLConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/FIREFLIESAuthConfig.ts b/src/ts/src/models/FIREFLIESAuthConfig.ts index b971f35..bdfbb92 100644 --- a/src/ts/src/models/FIREFLIESAuthConfig.ts +++ b/src/ts/src/models/FIREFLIESAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,12 +19,6 @@ import { mapValues } from '../runtime'; * @interface FIREFLIESAuthConfig */ export interface FIREFLIESAuthConfig { - /** - * Name. Example: Enter a descriptive name - * @type {string} - * @memberof FIREFLIESAuthConfig - */ - name: string; /** * API Key. Example: Enter your Fireflies.ai API key * @type {string} @@ -37,7 +31,6 @@ export interface FIREFLIESAuthConfig { * Check if a given object implements the FIREFLIESAuthConfig interface. */ export function instanceOfFIREFLIESAuthConfig(value: object): value is FIREFLIESAuthConfig { - if (!('name' in value) || value['name'] === undefined) return false; if (!('apiKey' in value) || value['apiKey'] === undefined) return false; return true; } @@ -52,7 +45,6 @@ export function FIREFLIESAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: } return { - 'name': json['name'], 'apiKey': json['api-key'], }; } @@ -68,7 +60,6 @@ export function FIREFLIESAuthConfigToJSONTyped(value?: FIREFLIESAuthConfig | nul return { - 'name': value['name'], 'api-key': value['apiKey'], }; } diff --git a/src/ts/src/models/FIREFLIESConfig.ts b/src/ts/src/models/FIREFLIESConfig.ts index 27d3f8e..e8efbef 100644 --- a/src/ts/src/models/FIREFLIESConfig.ts +++ b/src/ts/src/models/FIREFLIESConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/FileUpload.ts b/src/ts/src/models/FileUpload.ts index 9e2a352..809bf9a 100644 --- a/src/ts/src/models/FileUpload.ts +++ b/src/ts/src/models/FileUpload.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/FileUpload1.ts b/src/ts/src/models/FileUpload1.ts index 2cd88d8..083df73 100644 --- a/src/ts/src/models/FileUpload1.ts +++ b/src/ts/src/models/FileUpload1.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/Firecrawl.ts b/src/ts/src/models/Firecrawl.ts index ef3c860..7f4aa35 100644 --- a/src/ts/src/models/Firecrawl.ts +++ b/src/ts/src/models/Firecrawl.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,13 +13,13 @@ */ import { mapValues } from '../runtime'; -import type { FIRECRAWLConfig } from './FIRECRAWLConfig'; +import type { FIRECRAWLAuthConfig } from './FIRECRAWLAuthConfig'; import { - FIRECRAWLConfigFromJSON, - FIRECRAWLConfigFromJSONTyped, - FIRECRAWLConfigToJSON, - FIRECRAWLConfigToJSONTyped, -} from './FIRECRAWLConfig'; + FIRECRAWLAuthConfigFromJSON, + FIRECRAWLAuthConfigFromJSONTyped, + FIRECRAWLAuthConfigToJSON, + FIRECRAWLAuthConfigToJSONTyped, +} from './FIRECRAWLAuthConfig'; /** * @@ -41,10 +41,10 @@ export interface Firecrawl { type: FirecrawlTypeEnum; /** * - * @type {FIRECRAWLConfig} + * @type {FIRECRAWLAuthConfig} * @memberof Firecrawl */ - config: FIRECRAWLConfig; + config: FIRECRAWLAuthConfig; } @@ -79,7 +79,7 @@ export function FirecrawlFromJSONTyped(json: any, ignoreDiscriminator: boolean): 'name': json['name'], 'type': json['type'], - 'config': FIRECRAWLConfigFromJSON(json['config']), + 'config': FIRECRAWLAuthConfigFromJSON(json['config']), }; } @@ -96,7 +96,7 @@ export function FirecrawlToJSONTyped(value?: Firecrawl | null, ignoreDiscriminat 'name': value['name'], 'type': value['type'], - 'config': FIRECRAWLConfigToJSON(value['config']), + 'config': FIRECRAWLAuthConfigToJSON(value['config']), }; } diff --git a/src/ts/src/models/Firecrawl1.ts b/src/ts/src/models/Firecrawl1.ts index 0efed49..cd7166a 100644 --- a/src/ts/src/models/Firecrawl1.ts +++ b/src/ts/src/models/Firecrawl1.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,13 +13,13 @@ */ import { mapValues } from '../runtime'; -import type { FIRECRAWLConfig } from './FIRECRAWLConfig'; +import type { FIRECRAWLAuthConfig } from './FIRECRAWLAuthConfig'; import { - FIRECRAWLConfigFromJSON, - FIRECRAWLConfigFromJSONTyped, - FIRECRAWLConfigToJSON, - FIRECRAWLConfigToJSONTyped, -} from './FIRECRAWLConfig'; + FIRECRAWLAuthConfigFromJSON, + FIRECRAWLAuthConfigFromJSONTyped, + FIRECRAWLAuthConfigToJSON, + FIRECRAWLAuthConfigToJSONTyped, +} from './FIRECRAWLAuthConfig'; /** * @@ -29,10 +29,10 @@ import { export interface Firecrawl1 { /** * - * @type {FIRECRAWLConfig} + * @type {FIRECRAWLAuthConfig} * @memberof Firecrawl1 */ - config?: FIRECRAWLConfig; + config?: FIRECRAWLAuthConfig; } /** @@ -52,7 +52,7 @@ export function Firecrawl1FromJSONTyped(json: any, ignoreDiscriminator: boolean) } return { - 'config': json['config'] == null ? undefined : FIRECRAWLConfigFromJSON(json['config']), + 'config': json['config'] == null ? undefined : FIRECRAWLAuthConfigFromJSON(json['config']), }; } @@ -67,7 +67,7 @@ export function Firecrawl1ToJSONTyped(value?: Firecrawl1 | null, ignoreDiscrimin return { - 'config': FIRECRAWLConfigToJSON(value['config']), + 'config': FIRECRAWLAuthConfigToJSON(value['config']), }; } diff --git a/src/ts/src/models/Fireflies.ts b/src/ts/src/models/Fireflies.ts index 375b104..64f7b4e 100644 --- a/src/ts/src/models/Fireflies.ts +++ b/src/ts/src/models/Fireflies.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,13 +13,13 @@ */ import { mapValues } from '../runtime'; -import type { FIREFLIESConfig } from './FIREFLIESConfig'; +import type { FIREFLIESAuthConfig } from './FIREFLIESAuthConfig'; import { - FIREFLIESConfigFromJSON, - FIREFLIESConfigFromJSONTyped, - FIREFLIESConfigToJSON, - FIREFLIESConfigToJSONTyped, -} from './FIREFLIESConfig'; + FIREFLIESAuthConfigFromJSON, + FIREFLIESAuthConfigFromJSONTyped, + FIREFLIESAuthConfigToJSON, + FIREFLIESAuthConfigToJSONTyped, +} from './FIREFLIESAuthConfig'; /** * @@ -41,10 +41,10 @@ export interface Fireflies { type: FirefliesTypeEnum; /** * - * @type {FIREFLIESConfig} + * @type {FIREFLIESAuthConfig} * @memberof Fireflies */ - config: FIREFLIESConfig; + config: FIREFLIESAuthConfig; } @@ -79,7 +79,7 @@ export function FirefliesFromJSONTyped(json: any, ignoreDiscriminator: boolean): 'name': json['name'], 'type': json['type'], - 'config': FIREFLIESConfigFromJSON(json['config']), + 'config': FIREFLIESAuthConfigFromJSON(json['config']), }; } @@ -96,7 +96,7 @@ export function FirefliesToJSONTyped(value?: Fireflies | null, ignoreDiscriminat 'name': value['name'], 'type': value['type'], - 'config': FIREFLIESConfigToJSON(value['config']), + 'config': FIREFLIESAuthConfigToJSON(value['config']), }; } diff --git a/src/ts/src/models/Fireflies1.ts b/src/ts/src/models/Fireflies1.ts index 9af8afc..993dc7f 100644 --- a/src/ts/src/models/Fireflies1.ts +++ b/src/ts/src/models/Fireflies1.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,13 +13,13 @@ */ import { mapValues } from '../runtime'; -import type { FIREFLIESConfig } from './FIREFLIESConfig'; +import type { FIREFLIESAuthConfig } from './FIREFLIESAuthConfig'; import { - FIREFLIESConfigFromJSON, - FIREFLIESConfigFromJSONTyped, - FIREFLIESConfigToJSON, - FIREFLIESConfigToJSONTyped, -} from './FIREFLIESConfig'; + FIREFLIESAuthConfigFromJSON, + FIREFLIESAuthConfigFromJSONTyped, + FIREFLIESAuthConfigToJSON, + FIREFLIESAuthConfigToJSONTyped, +} from './FIREFLIESAuthConfig'; /** * @@ -29,10 +29,10 @@ import { export interface Fireflies1 { /** * - * @type {FIREFLIESConfig} + * @type {FIREFLIESAuthConfig} * @memberof Fireflies1 */ - config?: FIREFLIESConfig; + config?: FIREFLIESAuthConfig; } /** @@ -52,7 +52,7 @@ export function Fireflies1FromJSONTyped(json: any, ignoreDiscriminator: boolean) } return { - 'config': json['config'] == null ? undefined : FIREFLIESConfigFromJSON(json['config']), + 'config': json['config'] == null ? undefined : FIREFLIESAuthConfigFromJSON(json['config']), }; } @@ -67,7 +67,7 @@ export function Fireflies1ToJSONTyped(value?: Fireflies1 | null, ignoreDiscrimin return { - 'config': FIREFLIESConfigToJSON(value['config']), + 'config': FIREFLIESAuthConfigToJSON(value['config']), }; } diff --git a/src/ts/src/models/GCSAuthConfig.ts b/src/ts/src/models/GCSAuthConfig.ts index 62a4a47..aee9ac0 100644 --- a/src/ts/src/models/GCSAuthConfig.ts +++ b/src/ts/src/models/GCSAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,12 +19,6 @@ import { mapValues } from '../runtime'; * @interface GCSAuthConfig */ export interface GCSAuthConfig { - /** - * Name. Example: Enter a descriptive name - * @type {string} - * @memberof GCSAuthConfig - */ - name: string; /** * Service Account JSON. Example: Enter the JSON key file for the service account * @type {string} @@ -43,7 +37,6 @@ export interface GCSAuthConfig { * Check if a given object implements the GCSAuthConfig interface. */ export function instanceOfGCSAuthConfig(value: object): value is GCSAuthConfig { - if (!('name' in value) || value['name'] === undefined) return false; if (!('serviceAccountJson' in value) || value['serviceAccountJson'] === undefined) return false; if (!('bucketName' in value) || value['bucketName'] === undefined) return false; return true; @@ -59,7 +52,6 @@ export function GCSAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: boole } return { - 'name': json['name'], 'serviceAccountJson': json['service-account-json'], 'bucketName': json['bucket-name'], }; @@ -76,7 +68,6 @@ export function GCSAuthConfigToJSONTyped(value?: GCSAuthConfig | null, ignoreDis return { - 'name': value['name'], 'service-account-json': value['serviceAccountJson'], 'bucket-name': value['bucketName'], }; diff --git a/src/ts/src/models/GCSConfig.ts b/src/ts/src/models/GCSConfig.ts index 1a10d32..759569e 100644 --- a/src/ts/src/models/GCSConfig.ts +++ b/src/ts/src/models/GCSConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -51,10 +51,10 @@ export interface GCSConfig { pathMetadataRegex?: string; /** * Path Regex Group Names. Example: Enter Group Name - * @type {string} + * @type {Array} * @memberof GCSConfig */ - pathRegexGroupNames?: string; + pathRegexGroupNames?: Array; } @@ -70,9 +70,9 @@ export const GCSConfigFileExtensionsEnum = { Txt: 'txt', Htmlhtm: 'html,htm', Md: 'md', + Jpgjpegpngwebpsvggif: 'jpg,jpeg,png,webp,svg,gif', Json: 'json', - Csv: 'csv', - Jpgjpegpngwebpsvggif: 'jpg,jpeg,png,webp,svg,gif' + Csv: 'csv' } as const; export type GCSConfigFileExtensionsEnum = typeof GCSConfigFileExtensionsEnum[keyof typeof GCSConfigFileExtensionsEnum]; diff --git a/src/ts/src/models/GITHUBAuthConfig.ts b/src/ts/src/models/GITHUBAuthConfig.ts index 075981e..b4cd903 100644 --- a/src/ts/src/models/GITHUBAuthConfig.ts +++ b/src/ts/src/models/GITHUBAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,12 +19,6 @@ import { mapValues } from '../runtime'; * @interface GITHUBAuthConfig */ export interface GITHUBAuthConfig { - /** - * Name. Example: Enter a descriptive name - * @type {string} - * @memberof GITHUBAuthConfig - */ - name: string; /** * Personal Access Token. Example: Enter your GitHub personal access token * @type {string} @@ -37,7 +31,6 @@ export interface GITHUBAuthConfig { * Check if a given object implements the GITHUBAuthConfig interface. */ export function instanceOfGITHUBAuthConfig(value: object): value is GITHUBAuthConfig { - if (!('name' in value) || value['name'] === undefined) return false; if (!('oauthToken' in value) || value['oauthToken'] === undefined) return false; return true; } @@ -52,7 +45,6 @@ export function GITHUBAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: bo } return { - 'name': json['name'], 'oauthToken': json['oauth-token'], }; } @@ -68,7 +60,6 @@ export function GITHUBAuthConfigToJSONTyped(value?: GITHUBAuthConfig | null, ign return { - 'name': value['name'], 'oauth-token': value['oauthToken'], }; } diff --git a/src/ts/src/models/GITHUBConfig.ts b/src/ts/src/models/GITHUBConfig.ts index 53c3b66..248b0fc 100644 --- a/src/ts/src/models/GITHUBConfig.ts +++ b/src/ts/src/models/GITHUBConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,10 +21,10 @@ import { mapValues } from '../runtime'; export interface GITHUBConfig { /** * Repositories. Example: Example: owner1/repo1 - * @type {string} + * @type {Array} * @memberof GITHUBConfig */ - repositories: string; + repositories: Array; /** * Include Pull Requests * @type {boolean} @@ -39,10 +39,10 @@ export interface GITHUBConfig { pullRequestStatus: GITHUBConfigPullRequestStatusEnum; /** * Pull Request Labels. Example: Optionally filter by label. E.g. fix - * @type {string} + * @type {Array} * @memberof GITHUBConfig */ - pullRequestLabels?: string; + pullRequestLabels?: Array; /** * Include Issues * @type {boolean} @@ -57,10 +57,10 @@ export interface GITHUBConfig { issueStatus: GITHUBConfigIssueStatusEnum; /** * Issue Labels. Example: Optionally filter by label. E.g. bug - * @type {string} + * @type {Array} * @memberof GITHUBConfig */ - issueLabels?: string; + issueLabels?: Array; /** * Max Items. Example: Enter maximum number of items to fetch * @type {number} diff --git a/src/ts/src/models/GMAILAuthConfig.ts b/src/ts/src/models/GMAILAuthConfig.ts index 6b32275..d52386d 100644 --- a/src/ts/src/models/GMAILAuthConfig.ts +++ b/src/ts/src/models/GMAILAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,12 +19,6 @@ import { mapValues } from '../runtime'; * @interface GMAILAuthConfig */ export interface GMAILAuthConfig { - /** - * Name. Example: Enter a descriptive name - * @type {string} - * @memberof GMAILAuthConfig - */ - name: string; /** * Connect Gmail to Vectorize. Example: Authorize * @type {string} @@ -37,7 +31,6 @@ export interface GMAILAuthConfig { * Check if a given object implements the GMAILAuthConfig interface. */ export function instanceOfGMAILAuthConfig(value: object): value is GMAILAuthConfig { - if (!('name' in value) || value['name'] === undefined) return false; if (!('refreshToken' in value) || value['refreshToken'] === undefined) return false; return true; } @@ -52,7 +45,6 @@ export function GMAILAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: boo } return { - 'name': json['name'], 'refreshToken': json['refresh-token'], }; } @@ -68,7 +60,6 @@ export function GMAILAuthConfigToJSONTyped(value?: GMAILAuthConfig | null, ignor return { - 'name': value['name'], 'refresh-token': value['refreshToken'], }; } diff --git a/src/ts/src/models/GMAILConfig.ts b/src/ts/src/models/GMAILConfig.ts index 2f9f94a..745d20a 100644 --- a/src/ts/src/models/GMAILConfig.ts +++ b/src/ts/src/models/GMAILConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/GOOGLEDRIVEAuthConfig.ts b/src/ts/src/models/GOOGLEDRIVEAuthConfig.ts index be35758..d0d69b9 100644 --- a/src/ts/src/models/GOOGLEDRIVEAuthConfig.ts +++ b/src/ts/src/models/GOOGLEDRIVEAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,12 +19,6 @@ import { mapValues } from '../runtime'; * @interface GOOGLEDRIVEAuthConfig */ export interface GOOGLEDRIVEAuthConfig { - /** - * Name. Example: Enter a descriptive name - * @type {string} - * @memberof GOOGLEDRIVEAuthConfig - */ - name: string; /** * Service Account JSON. Example: Enter the JSON key file for the service account * @type {string} @@ -37,7 +31,6 @@ export interface GOOGLEDRIVEAuthConfig { * Check if a given object implements the GOOGLEDRIVEAuthConfig interface. */ export function instanceOfGOOGLEDRIVEAuthConfig(value: object): value is GOOGLEDRIVEAuthConfig { - if (!('name' in value) || value['name'] === undefined) return false; if (!('serviceAccountJson' in value) || value['serviceAccountJson'] === undefined) return false; return true; } @@ -52,7 +45,6 @@ export function GOOGLEDRIVEAuthConfigFromJSONTyped(json: any, ignoreDiscriminato } return { - 'name': json['name'], 'serviceAccountJson': json['service-account-json'], }; } @@ -68,7 +60,6 @@ export function GOOGLEDRIVEAuthConfigToJSONTyped(value?: GOOGLEDRIVEAuthConfig | return { - 'name': value['name'], 'service-account-json': value['serviceAccountJson'], }; } diff --git a/src/ts/src/models/GOOGLEDRIVEConfig.ts b/src/ts/src/models/GOOGLEDRIVEConfig.ts index 28a8c5b..b14b7cc 100644 --- a/src/ts/src/models/GOOGLEDRIVEConfig.ts +++ b/src/ts/src/models/GOOGLEDRIVEConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -27,10 +27,10 @@ export interface GOOGLEDRIVEConfig { fileExtensions: GOOGLEDRIVEConfigFileExtensionsEnum; /** * Restrict ingest to these folder URLs (optional). Example: Enter Folder URLs. Example: https://drive.google.com/drive/folders/1234aBCd5678_eFgH9012iJKL3456opqr - * @type {string} + * @type {Array} * @memberof GOOGLEDRIVEConfig */ - rootParents?: string; + rootParents?: Array; /** * Polling Interval (seconds). Example: Enter polling interval in seconds * @type {number} @@ -52,9 +52,9 @@ export const GOOGLEDRIVEConfigFileExtensionsEnum = { Txt: 'txt', Htmlhtm: 'html,htm', Md: 'md', + Jpgjpegpngwebpsvggif: 'jpg,jpeg,png,webp,svg,gif', Json: 'json', - Csv: 'csv', - Jpgjpegpngwebpsvggif: 'jpg,jpeg,png,webp,svg,gif' + Csv: 'csv' } as const; export type GOOGLEDRIVEConfigFileExtensionsEnum = typeof GOOGLEDRIVEConfigFileExtensionsEnum[keyof typeof GOOGLEDRIVEConfigFileExtensionsEnum]; diff --git a/src/ts/src/models/GOOGLEDRIVEOAUTHAuthConfig.ts b/src/ts/src/models/GOOGLEDRIVEOAUTHAuthConfig.ts index 64bae74..8de8a74 100644 --- a/src/ts/src/models/GOOGLEDRIVEOAUTHAuthConfig.ts +++ b/src/ts/src/models/GOOGLEDRIVEOAUTHAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,12 +19,6 @@ import { mapValues } from '../runtime'; * @interface GOOGLEDRIVEOAUTHAuthConfig */ export interface GOOGLEDRIVEOAUTHAuthConfig { - /** - * Name. Example: Enter a descriptive name - * @type {string} - * @memberof GOOGLEDRIVEOAUTHAuthConfig - */ - name: string; /** * Authorized User * @type {string} @@ -55,7 +49,6 @@ export interface GOOGLEDRIVEOAUTHAuthConfig { * Check if a given object implements the GOOGLEDRIVEOAUTHAuthConfig interface. */ export function instanceOfGOOGLEDRIVEOAUTHAuthConfig(value: object): value is GOOGLEDRIVEOAUTHAuthConfig { - if (!('name' in value) || value['name'] === undefined) return false; if (!('selectionDetails' in value) || value['selectionDetails'] === undefined) return false; return true; } @@ -70,7 +63,6 @@ export function GOOGLEDRIVEOAUTHAuthConfigFromJSONTyped(json: any, ignoreDiscrim } return { - 'name': json['name'], 'authorizedUser': json['authorized-user'] == null ? undefined : json['authorized-user'], 'selectionDetails': json['selection-details'], 'editedUsers': json['editedUsers'] == null ? undefined : json['editedUsers'], @@ -89,7 +81,6 @@ export function GOOGLEDRIVEOAUTHAuthConfigToJSONTyped(value?: GOOGLEDRIVEOAUTHAu return { - 'name': value['name'], 'authorized-user': value['authorizedUser'], 'selection-details': value['selectionDetails'], 'editedUsers': value['editedUsers'], diff --git a/src/ts/src/models/GOOGLEDRIVEOAUTHConfig.ts b/src/ts/src/models/GOOGLEDRIVEOAUTHConfig.ts index 86fbcdc..c5e2d13 100644 --- a/src/ts/src/models/GOOGLEDRIVEOAUTHConfig.ts +++ b/src/ts/src/models/GOOGLEDRIVEOAUTHConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -46,9 +46,9 @@ export const GOOGLEDRIVEOAUTHConfigFileExtensionsEnum = { Txt: 'txt', Htmlhtm: 'html,htm', Md: 'md', + Jpgjpegpngwebpsvggif: 'jpg,jpeg,png,webp,svg,gif', Json: 'json', - Csv: 'csv', - Jpgjpegpngwebpsvggif: 'jpg,jpeg,png,webp,svg,gif' + Csv: 'csv' } as const; export type GOOGLEDRIVEOAUTHConfigFileExtensionsEnum = typeof GOOGLEDRIVEOAUTHConfigFileExtensionsEnum[keyof typeof GOOGLEDRIVEOAUTHConfigFileExtensionsEnum]; diff --git a/src/ts/src/models/GOOGLEDRIVEOAUTHMULTIAuthConfig.ts b/src/ts/src/models/GOOGLEDRIVEOAUTHMULTIAuthConfig.ts index 0474058..41e222e 100644 --- a/src/ts/src/models/GOOGLEDRIVEOAUTHMULTIAuthConfig.ts +++ b/src/ts/src/models/GOOGLEDRIVEOAUTHMULTIAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,18 +19,12 @@ import { mapValues } from '../runtime'; * @interface GOOGLEDRIVEOAUTHMULTIAuthConfig */ export interface GOOGLEDRIVEOAUTHMULTIAuthConfig { - /** - * Name. Example: Enter a descriptive name - * @type {string} - * @memberof GOOGLEDRIVEOAUTHMULTIAuthConfig - */ - name: string; /** * Authorized Users - * @type {string} + * @type {Array} * @memberof GOOGLEDRIVEOAUTHMULTIAuthConfig */ - authorizedUsers?: string; + authorizedUsers?: Array; /** * * @type {object} @@ -49,7 +43,6 @@ export interface GOOGLEDRIVEOAUTHMULTIAuthConfig { * Check if a given object implements the GOOGLEDRIVEOAUTHMULTIAuthConfig interface. */ export function instanceOfGOOGLEDRIVEOAUTHMULTIAuthConfig(value: object): value is GOOGLEDRIVEOAUTHMULTIAuthConfig { - if (!('name' in value) || value['name'] === undefined) return false; return true; } @@ -63,7 +56,6 @@ export function GOOGLEDRIVEOAUTHMULTIAuthConfigFromJSONTyped(json: any, ignoreDi } return { - 'name': json['name'], 'authorizedUsers': json['authorized-users'] == null ? undefined : json['authorized-users'], 'editedUsers': json['editedUsers'] == null ? undefined : json['editedUsers'], 'deletedUsers': json['deletedUsers'] == null ? undefined : json['deletedUsers'], @@ -81,7 +73,6 @@ export function GOOGLEDRIVEOAUTHMULTIAuthConfigToJSONTyped(value?: GOOGLEDRIVEOA return { - 'name': value['name'], 'authorized-users': value['authorizedUsers'], 'editedUsers': value['editedUsers'], 'deletedUsers': value['deletedUsers'], diff --git a/src/ts/src/models/GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig.ts b/src/ts/src/models/GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig.ts index 26e4bbf..be75713 100644 --- a/src/ts/src/models/GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig.ts +++ b/src/ts/src/models/GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,12 +19,6 @@ import { mapValues } from '../runtime'; * @interface GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig */ export interface GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig { - /** - * Name. Example: Enter a descriptive name - * @type {string} - * @memberof GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig - */ - name: string; /** * OAuth2 Client Id. Example: Enter Client Id * @type {string} @@ -39,10 +33,10 @@ export interface GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig { oauth2ClientSecret: string; /** * Authorized Users - * @type {string} + * @type {Array} * @memberof GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig */ - authorizedUsers?: string; + authorizedUsers?: Array; /** * * @type {object} @@ -61,7 +55,6 @@ export interface GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig { * Check if a given object implements the GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig interface. */ export function instanceOfGOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig(value: object): value is GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig { - if (!('name' in value) || value['name'] === undefined) return false; if (!('oauth2ClientId' in value) || value['oauth2ClientId'] === undefined) return false; if (!('oauth2ClientSecret' in value) || value['oauth2ClientSecret'] === undefined) return false; return true; @@ -77,7 +70,6 @@ export function GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfigFromJSONTyped(json: any, ig } return { - 'name': json['name'], 'oauth2ClientId': json['oauth2-client-id'], 'oauth2ClientSecret': json['oauth2-client-secret'], 'authorizedUsers': json['authorized-users'] == null ? undefined : json['authorized-users'], @@ -97,7 +89,6 @@ export function GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfigToJSONTyped(value?: GOOGLED return { - 'name': value['name'], 'oauth2-client-id': value['oauth2ClientId'], 'oauth2-client-secret': value['oauth2ClientSecret'], 'authorized-users': value['authorizedUsers'], diff --git a/src/ts/src/models/GOOGLEDRIVEOAUTHMULTICUSTOMConfig.ts b/src/ts/src/models/GOOGLEDRIVEOAUTHMULTICUSTOMConfig.ts index 13c790b..411e160 100644 --- a/src/ts/src/models/GOOGLEDRIVEOAUTHMULTICUSTOMConfig.ts +++ b/src/ts/src/models/GOOGLEDRIVEOAUTHMULTICUSTOMConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -46,9 +46,9 @@ export const GOOGLEDRIVEOAUTHMULTICUSTOMConfigFileExtensionsEnum = { Txt: 'txt', Htmlhtm: 'html,htm', Md: 'md', + Jpgjpegpngwebpsvggif: 'jpg,jpeg,png,webp,svg,gif', Json: 'json', - Csv: 'csv', - Jpgjpegpngwebpsvggif: 'jpg,jpeg,png,webp,svg,gif' + Csv: 'csv' } as const; export type GOOGLEDRIVEOAUTHMULTICUSTOMConfigFileExtensionsEnum = typeof GOOGLEDRIVEOAUTHMULTICUSTOMConfigFileExtensionsEnum[keyof typeof GOOGLEDRIVEOAUTHMULTICUSTOMConfigFileExtensionsEnum]; diff --git a/src/ts/src/models/GOOGLEDRIVEOAUTHMULTIConfig.ts b/src/ts/src/models/GOOGLEDRIVEOAUTHMULTIConfig.ts index 1774c75..fc44dc2 100644 --- a/src/ts/src/models/GOOGLEDRIVEOAUTHMULTIConfig.ts +++ b/src/ts/src/models/GOOGLEDRIVEOAUTHMULTIConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -46,9 +46,9 @@ export const GOOGLEDRIVEOAUTHMULTIConfigFileExtensionsEnum = { Txt: 'txt', Htmlhtm: 'html,htm', Md: 'md', + Jpgjpegpngwebpsvggif: 'jpg,jpeg,png,webp,svg,gif', Json: 'json', - Csv: 'csv', - Jpgjpegpngwebpsvggif: 'jpg,jpeg,png,webp,svg,gif' + Csv: 'csv' } as const; export type GOOGLEDRIVEOAUTHMULTIConfigFileExtensionsEnum = typeof GOOGLEDRIVEOAUTHMULTIConfigFileExtensionsEnum[keyof typeof GOOGLEDRIVEOAUTHMULTIConfigFileExtensionsEnum]; diff --git a/src/ts/src/models/Gcs.ts b/src/ts/src/models/Gcs.ts index 9fc5551..6403baa 100644 --- a/src/ts/src/models/Gcs.ts +++ b/src/ts/src/models/Gcs.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,13 +13,13 @@ */ import { mapValues } from '../runtime'; -import type { GCSConfig } from './GCSConfig'; +import type { GCSAuthConfig } from './GCSAuthConfig'; import { - GCSConfigFromJSON, - GCSConfigFromJSONTyped, - GCSConfigToJSON, - GCSConfigToJSONTyped, -} from './GCSConfig'; + GCSAuthConfigFromJSON, + GCSAuthConfigFromJSONTyped, + GCSAuthConfigToJSON, + GCSAuthConfigToJSONTyped, +} from './GCSAuthConfig'; /** * @@ -41,10 +41,10 @@ export interface Gcs { type: GcsTypeEnum; /** * - * @type {GCSConfig} + * @type {GCSAuthConfig} * @memberof Gcs */ - config: GCSConfig; + config: GCSAuthConfig; } @@ -79,7 +79,7 @@ export function GcsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Gcs { 'name': json['name'], 'type': json['type'], - 'config': GCSConfigFromJSON(json['config']), + 'config': GCSAuthConfigFromJSON(json['config']), }; } @@ -96,7 +96,7 @@ export function GcsToJSONTyped(value?: Gcs | null, ignoreDiscriminator: boolean 'name': value['name'], 'type': value['type'], - 'config': GCSConfigToJSON(value['config']), + 'config': GCSAuthConfigToJSON(value['config']), }; } diff --git a/src/ts/src/models/Gcs1.ts b/src/ts/src/models/Gcs1.ts index 455bf3b..315e7a2 100644 --- a/src/ts/src/models/Gcs1.ts +++ b/src/ts/src/models/Gcs1.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,13 +13,13 @@ */ import { mapValues } from '../runtime'; -import type { GCSConfig } from './GCSConfig'; +import type { GCSAuthConfig } from './GCSAuthConfig'; import { - GCSConfigFromJSON, - GCSConfigFromJSONTyped, - GCSConfigToJSON, - GCSConfigToJSONTyped, -} from './GCSConfig'; + GCSAuthConfigFromJSON, + GCSAuthConfigFromJSONTyped, + GCSAuthConfigToJSON, + GCSAuthConfigToJSONTyped, +} from './GCSAuthConfig'; /** * @@ -29,10 +29,10 @@ import { export interface Gcs1 { /** * - * @type {GCSConfig} + * @type {GCSAuthConfig} * @memberof Gcs1 */ - config?: GCSConfig; + config?: GCSAuthConfig; } /** @@ -52,7 +52,7 @@ export function Gcs1FromJSONTyped(json: any, ignoreDiscriminator: boolean): Gcs1 } return { - 'config': json['config'] == null ? undefined : GCSConfigFromJSON(json['config']), + 'config': json['config'] == null ? undefined : GCSAuthConfigFromJSON(json['config']), }; } @@ -67,7 +67,7 @@ export function Gcs1ToJSONTyped(value?: Gcs1 | null, ignoreDiscriminator: boolea return { - 'config': GCSConfigToJSON(value['config']), + 'config': GCSAuthConfigToJSON(value['config']), }; } diff --git a/src/ts/src/models/GetAIPlatformConnectors200Response.ts b/src/ts/src/models/GetAIPlatformConnectors200Response.ts index aa0468b..56df040 100644 --- a/src/ts/src/models/GetAIPlatformConnectors200Response.ts +++ b/src/ts/src/models/GetAIPlatformConnectors200Response.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,13 +13,13 @@ */ import { mapValues } from '../runtime'; -import type { AIPlatform } from './AIPlatform'; +import type { AIPlatformConnector } from './AIPlatformConnector'; import { - AIPlatformFromJSON, - AIPlatformFromJSONTyped, - AIPlatformToJSON, - AIPlatformToJSONTyped, -} from './AIPlatform'; + AIPlatformConnectorFromJSON, + AIPlatformConnectorFromJSONTyped, + AIPlatformConnectorToJSON, + AIPlatformConnectorToJSONTyped, +} from './AIPlatformConnector'; /** * @@ -29,10 +29,10 @@ import { export interface GetAIPlatformConnectors200Response { /** * - * @type {Array} + * @type {Array} * @memberof GetAIPlatformConnectors200Response */ - aiPlatformConnectors: Array; + aiPlatformConnectors: Array; } /** @@ -53,7 +53,7 @@ export function GetAIPlatformConnectors200ResponseFromJSONTyped(json: any, ignor } return { - 'aiPlatformConnectors': ((json['aiPlatformConnectors'] as Array).map(AIPlatformFromJSON)), + 'aiPlatformConnectors': ((json['aiPlatformConnectors'] as Array).map(AIPlatformConnectorFromJSON)), }; } @@ -68,7 +68,7 @@ export function GetAIPlatformConnectors200ResponseToJSONTyped(value?: GetAIPlatf return { - 'aiPlatformConnectors': ((value['aiPlatformConnectors'] as Array).map(AIPlatformToJSON)), + 'aiPlatformConnectors': ((value['aiPlatformConnectors'] as Array).map(AIPlatformConnectorToJSON)), }; } diff --git a/src/ts/src/models/GetDeepResearchResponse.ts b/src/ts/src/models/GetDeepResearchResponse.ts index 322f2e0..c571cd9 100644 --- a/src/ts/src/models/GetDeepResearchResponse.ts +++ b/src/ts/src/models/GetDeepResearchResponse.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/GetDestinationConnectors200Response.ts b/src/ts/src/models/GetDestinationConnectors200Response.ts index a770841..8fd4ff6 100644 --- a/src/ts/src/models/GetDestinationConnectors200Response.ts +++ b/src/ts/src/models/GetDestinationConnectors200Response.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/GetPipelineEventsResponse.ts b/src/ts/src/models/GetPipelineEventsResponse.ts index 54afaca..d23746c 100644 --- a/src/ts/src/models/GetPipelineEventsResponse.ts +++ b/src/ts/src/models/GetPipelineEventsResponse.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/GetPipelineMetricsResponse.ts b/src/ts/src/models/GetPipelineMetricsResponse.ts index 802df8e..2448b93 100644 --- a/src/ts/src/models/GetPipelineMetricsResponse.ts +++ b/src/ts/src/models/GetPipelineMetricsResponse.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/GetPipelineResponse.ts b/src/ts/src/models/GetPipelineResponse.ts index 85b952a..c048cfd 100644 --- a/src/ts/src/models/GetPipelineResponse.ts +++ b/src/ts/src/models/GetPipelineResponse.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/GetPipelines400Response.ts b/src/ts/src/models/GetPipelines400Response.ts index 082b236..95298b0 100644 --- a/src/ts/src/models/GetPipelines400Response.ts +++ b/src/ts/src/models/GetPipelines400Response.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/GetPipelinesResponse.ts b/src/ts/src/models/GetPipelinesResponse.ts index 5931659..c6ff006 100644 --- a/src/ts/src/models/GetPipelinesResponse.ts +++ b/src/ts/src/models/GetPipelinesResponse.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/GetSourceConnectors200Response.ts b/src/ts/src/models/GetSourceConnectors200Response.ts index d51e815..ae4063e 100644 --- a/src/ts/src/models/GetSourceConnectors200Response.ts +++ b/src/ts/src/models/GetSourceConnectors200Response.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/GetUploadFilesResponse.ts b/src/ts/src/models/GetUploadFilesResponse.ts index 374dc57..2a3aee3 100644 --- a/src/ts/src/models/GetUploadFilesResponse.ts +++ b/src/ts/src/models/GetUploadFilesResponse.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/Github.ts b/src/ts/src/models/Github.ts index 87c9ef7..a36d847 100644 --- a/src/ts/src/models/Github.ts +++ b/src/ts/src/models/Github.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,13 +13,13 @@ */ import { mapValues } from '../runtime'; -import type { GITHUBConfig } from './GITHUBConfig'; +import type { GITHUBAuthConfig } from './GITHUBAuthConfig'; import { - GITHUBConfigFromJSON, - GITHUBConfigFromJSONTyped, - GITHUBConfigToJSON, - GITHUBConfigToJSONTyped, -} from './GITHUBConfig'; + GITHUBAuthConfigFromJSON, + GITHUBAuthConfigFromJSONTyped, + GITHUBAuthConfigToJSON, + GITHUBAuthConfigToJSONTyped, +} from './GITHUBAuthConfig'; /** * @@ -41,10 +41,10 @@ export interface Github { type: GithubTypeEnum; /** * - * @type {GITHUBConfig} + * @type {GITHUBAuthConfig} * @memberof Github */ - config: GITHUBConfig; + config: GITHUBAuthConfig; } @@ -79,7 +79,7 @@ export function GithubFromJSONTyped(json: any, ignoreDiscriminator: boolean): Gi 'name': json['name'], 'type': json['type'], - 'config': GITHUBConfigFromJSON(json['config']), + 'config': GITHUBAuthConfigFromJSON(json['config']), }; } @@ -96,7 +96,7 @@ export function GithubToJSONTyped(value?: Github | null, ignoreDiscriminator: bo 'name': value['name'], 'type': value['type'], - 'config': GITHUBConfigToJSON(value['config']), + 'config': GITHUBAuthConfigToJSON(value['config']), }; } diff --git a/src/ts/src/models/Github1.ts b/src/ts/src/models/Github1.ts index ab52826..6b7990c 100644 --- a/src/ts/src/models/Github1.ts +++ b/src/ts/src/models/Github1.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,13 +13,13 @@ */ import { mapValues } from '../runtime'; -import type { GITHUBConfig } from './GITHUBConfig'; +import type { GITHUBAuthConfig } from './GITHUBAuthConfig'; import { - GITHUBConfigFromJSON, - GITHUBConfigFromJSONTyped, - GITHUBConfigToJSON, - GITHUBConfigToJSONTyped, -} from './GITHUBConfig'; + GITHUBAuthConfigFromJSON, + GITHUBAuthConfigFromJSONTyped, + GITHUBAuthConfigToJSON, + GITHUBAuthConfigToJSONTyped, +} from './GITHUBAuthConfig'; /** * @@ -29,10 +29,10 @@ import { export interface Github1 { /** * - * @type {GITHUBConfig} + * @type {GITHUBAuthConfig} * @memberof Github1 */ - config?: GITHUBConfig; + config?: GITHUBAuthConfig; } /** @@ -52,7 +52,7 @@ export function Github1FromJSONTyped(json: any, ignoreDiscriminator: boolean): G } return { - 'config': json['config'] == null ? undefined : GITHUBConfigFromJSON(json['config']), + 'config': json['config'] == null ? undefined : GITHUBAuthConfigFromJSON(json['config']), }; } @@ -67,7 +67,7 @@ export function Github1ToJSONTyped(value?: Github1 | null, ignoreDiscriminator: return { - 'config': GITHUBConfigToJSON(value['config']), + 'config': GITHUBAuthConfigToJSON(value['config']), }; } diff --git a/src/ts/src/models/GoogleDrive.ts b/src/ts/src/models/GoogleDrive.ts index 7f77e8d..52e7fe2 100644 --- a/src/ts/src/models/GoogleDrive.ts +++ b/src/ts/src/models/GoogleDrive.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,13 +13,13 @@ */ import { mapValues } from '../runtime'; -import type { GOOGLEDRIVEConfig } from './GOOGLEDRIVEConfig'; +import type { GOOGLEDRIVEAuthConfig } from './GOOGLEDRIVEAuthConfig'; import { - GOOGLEDRIVEConfigFromJSON, - GOOGLEDRIVEConfigFromJSONTyped, - GOOGLEDRIVEConfigToJSON, - GOOGLEDRIVEConfigToJSONTyped, -} from './GOOGLEDRIVEConfig'; + GOOGLEDRIVEAuthConfigFromJSON, + GOOGLEDRIVEAuthConfigFromJSONTyped, + GOOGLEDRIVEAuthConfigToJSON, + GOOGLEDRIVEAuthConfigToJSONTyped, +} from './GOOGLEDRIVEAuthConfig'; /** * @@ -41,10 +41,10 @@ export interface GoogleDrive { type: GoogleDriveTypeEnum; /** * - * @type {GOOGLEDRIVEConfig} + * @type {GOOGLEDRIVEAuthConfig} * @memberof GoogleDrive */ - config: GOOGLEDRIVEConfig; + config: GOOGLEDRIVEAuthConfig; } @@ -79,7 +79,7 @@ export function GoogleDriveFromJSONTyped(json: any, ignoreDiscriminator: boolean 'name': json['name'], 'type': json['type'], - 'config': GOOGLEDRIVEConfigFromJSON(json['config']), + 'config': GOOGLEDRIVEAuthConfigFromJSON(json['config']), }; } @@ -96,7 +96,7 @@ export function GoogleDriveToJSONTyped(value?: GoogleDrive | null, ignoreDiscrim 'name': value['name'], 'type': value['type'], - 'config': GOOGLEDRIVEConfigToJSON(value['config']), + 'config': GOOGLEDRIVEAuthConfigToJSON(value['config']), }; } diff --git a/src/ts/src/models/GoogleDrive1.ts b/src/ts/src/models/GoogleDrive1.ts index 8fb8a91..39b805f 100644 --- a/src/ts/src/models/GoogleDrive1.ts +++ b/src/ts/src/models/GoogleDrive1.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,13 +13,13 @@ */ import { mapValues } from '../runtime'; -import type { GOOGLEDRIVEConfig } from './GOOGLEDRIVEConfig'; +import type { GOOGLEDRIVEAuthConfig } from './GOOGLEDRIVEAuthConfig'; import { - GOOGLEDRIVEConfigFromJSON, - GOOGLEDRIVEConfigFromJSONTyped, - GOOGLEDRIVEConfigToJSON, - GOOGLEDRIVEConfigToJSONTyped, -} from './GOOGLEDRIVEConfig'; + GOOGLEDRIVEAuthConfigFromJSON, + GOOGLEDRIVEAuthConfigFromJSONTyped, + GOOGLEDRIVEAuthConfigToJSON, + GOOGLEDRIVEAuthConfigToJSONTyped, +} from './GOOGLEDRIVEAuthConfig'; /** * @@ -29,10 +29,10 @@ import { export interface GoogleDrive1 { /** * - * @type {GOOGLEDRIVEConfig} + * @type {GOOGLEDRIVEAuthConfig} * @memberof GoogleDrive1 */ - config?: GOOGLEDRIVEConfig; + config?: GOOGLEDRIVEAuthConfig; } /** @@ -52,7 +52,7 @@ export function GoogleDrive1FromJSONTyped(json: any, ignoreDiscriminator: boolea } return { - 'config': json['config'] == null ? undefined : GOOGLEDRIVEConfigFromJSON(json['config']), + 'config': json['config'] == null ? undefined : GOOGLEDRIVEAuthConfigFromJSON(json['config']), }; } @@ -67,7 +67,7 @@ export function GoogleDrive1ToJSONTyped(value?: GoogleDrive1 | null, ignoreDiscr return { - 'config': GOOGLEDRIVEConfigToJSON(value['config']), + 'config': GOOGLEDRIVEAuthConfigToJSON(value['config']), }; } diff --git a/src/ts/src/models/GoogleDriveOauth.ts b/src/ts/src/models/GoogleDriveOauth.ts index 3b39744..42b2de5 100644 --- a/src/ts/src/models/GoogleDriveOauth.ts +++ b/src/ts/src/models/GoogleDriveOauth.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,13 +13,13 @@ */ import { mapValues } from '../runtime'; -import type { GOOGLEDRIVEOAUTHConfig } from './GOOGLEDRIVEOAUTHConfig'; +import type { GOOGLEDRIVEOAUTHAuthConfig } from './GOOGLEDRIVEOAUTHAuthConfig'; import { - GOOGLEDRIVEOAUTHConfigFromJSON, - GOOGLEDRIVEOAUTHConfigFromJSONTyped, - GOOGLEDRIVEOAUTHConfigToJSON, - GOOGLEDRIVEOAUTHConfigToJSONTyped, -} from './GOOGLEDRIVEOAUTHConfig'; + GOOGLEDRIVEOAUTHAuthConfigFromJSON, + GOOGLEDRIVEOAUTHAuthConfigFromJSONTyped, + GOOGLEDRIVEOAUTHAuthConfigToJSON, + GOOGLEDRIVEOAUTHAuthConfigToJSONTyped, +} from './GOOGLEDRIVEOAUTHAuthConfig'; /** * @@ -29,10 +29,10 @@ import { export interface GoogleDriveOauth { /** * - * @type {GOOGLEDRIVEOAUTHConfig} + * @type {GOOGLEDRIVEOAUTHAuthConfig} * @memberof GoogleDriveOauth */ - config?: GOOGLEDRIVEOAUTHConfig; + config?: GOOGLEDRIVEOAUTHAuthConfig; } /** @@ -52,7 +52,7 @@ export function GoogleDriveOauthFromJSONTyped(json: any, ignoreDiscriminator: bo } return { - 'config': json['config'] == null ? undefined : GOOGLEDRIVEOAUTHConfigFromJSON(json['config']), + 'config': json['config'] == null ? undefined : GOOGLEDRIVEOAUTHAuthConfigFromJSON(json['config']), }; } @@ -67,7 +67,7 @@ export function GoogleDriveOauthToJSONTyped(value?: GoogleDriveOauth | null, ign return { - 'config': GOOGLEDRIVEOAUTHConfigToJSON(value['config']), + 'config': GOOGLEDRIVEOAUTHAuthConfigToJSON(value['config']), }; } diff --git a/src/ts/src/models/GoogleDriveOauthMulti.ts b/src/ts/src/models/GoogleDriveOauthMulti.ts index 997cce5..5901e22 100644 --- a/src/ts/src/models/GoogleDriveOauthMulti.ts +++ b/src/ts/src/models/GoogleDriveOauthMulti.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,13 +13,13 @@ */ import { mapValues } from '../runtime'; -import type { GOOGLEDRIVEOAUTHMULTIConfig } from './GOOGLEDRIVEOAUTHMULTIConfig'; +import type { GOOGLEDRIVEOAUTHMULTIAuthConfig } from './GOOGLEDRIVEOAUTHMULTIAuthConfig'; import { - GOOGLEDRIVEOAUTHMULTIConfigFromJSON, - GOOGLEDRIVEOAUTHMULTIConfigFromJSONTyped, - GOOGLEDRIVEOAUTHMULTIConfigToJSON, - GOOGLEDRIVEOAUTHMULTIConfigToJSONTyped, -} from './GOOGLEDRIVEOAUTHMULTIConfig'; + GOOGLEDRIVEOAUTHMULTIAuthConfigFromJSON, + GOOGLEDRIVEOAUTHMULTIAuthConfigFromJSONTyped, + GOOGLEDRIVEOAUTHMULTIAuthConfigToJSON, + GOOGLEDRIVEOAUTHMULTIAuthConfigToJSONTyped, +} from './GOOGLEDRIVEOAUTHMULTIAuthConfig'; /** * @@ -29,10 +29,10 @@ import { export interface GoogleDriveOauthMulti { /** * - * @type {GOOGLEDRIVEOAUTHMULTIConfig} + * @type {GOOGLEDRIVEOAUTHMULTIAuthConfig} * @memberof GoogleDriveOauthMulti */ - config?: GOOGLEDRIVEOAUTHMULTIConfig; + config?: GOOGLEDRIVEOAUTHMULTIAuthConfig; } /** @@ -52,7 +52,7 @@ export function GoogleDriveOauthMultiFromJSONTyped(json: any, ignoreDiscriminato } return { - 'config': json['config'] == null ? undefined : GOOGLEDRIVEOAUTHMULTIConfigFromJSON(json['config']), + 'config': json['config'] == null ? undefined : GOOGLEDRIVEOAUTHMULTIAuthConfigFromJSON(json['config']), }; } @@ -67,7 +67,7 @@ export function GoogleDriveOauthMultiToJSONTyped(value?: GoogleDriveOauthMulti | return { - 'config': GOOGLEDRIVEOAUTHMULTIConfigToJSON(value['config']), + 'config': GOOGLEDRIVEOAUTHMULTIAuthConfigToJSON(value['config']), }; } diff --git a/src/ts/src/models/GoogleDriveOauthMultiCustom.ts b/src/ts/src/models/GoogleDriveOauthMultiCustom.ts index 42eaa92..a0981bd 100644 --- a/src/ts/src/models/GoogleDriveOauthMultiCustom.ts +++ b/src/ts/src/models/GoogleDriveOauthMultiCustom.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,13 +13,13 @@ */ import { mapValues } from '../runtime'; -import type { GOOGLEDRIVEOAUTHMULTICUSTOMConfig } from './GOOGLEDRIVEOAUTHMULTICUSTOMConfig'; +import type { GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig } from './GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig'; import { - GOOGLEDRIVEOAUTHMULTICUSTOMConfigFromJSON, - GOOGLEDRIVEOAUTHMULTICUSTOMConfigFromJSONTyped, - GOOGLEDRIVEOAUTHMULTICUSTOMConfigToJSON, - GOOGLEDRIVEOAUTHMULTICUSTOMConfigToJSONTyped, -} from './GOOGLEDRIVEOAUTHMULTICUSTOMConfig'; + GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfigFromJSON, + GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfigFromJSONTyped, + GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfigToJSON, + GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfigToJSONTyped, +} from './GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig'; /** * @@ -29,10 +29,10 @@ import { export interface GoogleDriveOauthMultiCustom { /** * - * @type {GOOGLEDRIVEOAUTHMULTICUSTOMConfig} + * @type {GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig} * @memberof GoogleDriveOauthMultiCustom */ - config?: GOOGLEDRIVEOAUTHMULTICUSTOMConfig; + config?: GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig; } /** @@ -52,7 +52,7 @@ export function GoogleDriveOauthMultiCustomFromJSONTyped(json: any, ignoreDiscri } return { - 'config': json['config'] == null ? undefined : GOOGLEDRIVEOAUTHMULTICUSTOMConfigFromJSON(json['config']), + 'config': json['config'] == null ? undefined : GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfigFromJSON(json['config']), }; } @@ -67,7 +67,7 @@ export function GoogleDriveOauthMultiCustomToJSONTyped(value?: GoogleDriveOauthM return { - 'config': GOOGLEDRIVEOAUTHMULTICUSTOMConfigToJSON(value['config']), + 'config': GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfigToJSON(value['config']), }; } diff --git a/src/ts/src/models/INTERCOMAuthConfig.ts b/src/ts/src/models/INTERCOMAuthConfig.ts index 2093c57..e15673f 100644 --- a/src/ts/src/models/INTERCOMAuthConfig.ts +++ b/src/ts/src/models/INTERCOMAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,12 +19,6 @@ import { mapValues } from '../runtime'; * @interface INTERCOMAuthConfig */ export interface INTERCOMAuthConfig { - /** - * Name. Example: Enter a descriptive name - * @type {string} - * @memberof INTERCOMAuthConfig - */ - name: string; /** * Access Token. Example: Authorize Intercom Access * @type {string} @@ -37,7 +31,6 @@ export interface INTERCOMAuthConfig { * Check if a given object implements the INTERCOMAuthConfig interface. */ export function instanceOfINTERCOMAuthConfig(value: object): value is INTERCOMAuthConfig { - if (!('name' in value) || value['name'] === undefined) return false; if (!('token' in value) || value['token'] === undefined) return false; return true; } @@ -52,7 +45,6 @@ export function INTERCOMAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: } return { - 'name': json['name'], 'token': json['token'], }; } @@ -68,7 +60,6 @@ export function INTERCOMAuthConfigToJSONTyped(value?: INTERCOMAuthConfig | null, return { - 'name': value['name'], 'token': value['token'], }; } diff --git a/src/ts/src/models/INTERCOMConfig.ts b/src/ts/src/models/INTERCOMConfig.ts index f500745..5aff59f 100644 --- a/src/ts/src/models/INTERCOMConfig.ts +++ b/src/ts/src/models/INTERCOMConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/Intercom.ts b/src/ts/src/models/Intercom.ts index 5f654c6..5077c83 100644 --- a/src/ts/src/models/Intercom.ts +++ b/src/ts/src/models/Intercom.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,13 +13,13 @@ */ import { mapValues } from '../runtime'; -import type { INTERCOMConfig } from './INTERCOMConfig'; +import type { INTERCOMAuthConfig } from './INTERCOMAuthConfig'; import { - INTERCOMConfigFromJSON, - INTERCOMConfigFromJSONTyped, - INTERCOMConfigToJSON, - INTERCOMConfigToJSONTyped, -} from './INTERCOMConfig'; + INTERCOMAuthConfigFromJSON, + INTERCOMAuthConfigFromJSONTyped, + INTERCOMAuthConfigToJSON, + INTERCOMAuthConfigToJSONTyped, +} from './INTERCOMAuthConfig'; /** * @@ -29,10 +29,10 @@ import { export interface Intercom { /** * - * @type {INTERCOMConfig} + * @type {INTERCOMAuthConfig} * @memberof Intercom */ - config?: INTERCOMConfig; + config?: INTERCOMAuthConfig; } /** @@ -52,7 +52,7 @@ export function IntercomFromJSONTyped(json: any, ignoreDiscriminator: boolean): } return { - 'config': json['config'] == null ? undefined : INTERCOMConfigFromJSON(json['config']), + 'config': json['config'] == null ? undefined : INTERCOMAuthConfigFromJSON(json['config']), }; } @@ -67,7 +67,7 @@ export function IntercomToJSONTyped(value?: Intercom | null, ignoreDiscriminator return { - 'config': INTERCOMConfigToJSON(value['config']), + 'config': INTERCOMAuthConfigToJSON(value['config']), }; } diff --git a/src/ts/src/models/MILVUSAuthConfig.ts b/src/ts/src/models/MILVUSAuthConfig.ts index b385917..23e651c 100644 --- a/src/ts/src/models/MILVUSAuthConfig.ts +++ b/src/ts/src/models/MILVUSAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,12 +19,6 @@ import { mapValues } from '../runtime'; * @interface MILVUSAuthConfig */ export interface MILVUSAuthConfig { - /** - * Name. Example: Enter a descriptive name for your Milvus integration - * @type {string} - * @memberof MILVUSAuthConfig - */ - name: string; /** * Public Endpoint. Example: Enter your public endpoint for your Milvus cluster * @type {string} @@ -55,7 +49,6 @@ export interface MILVUSAuthConfig { * Check if a given object implements the MILVUSAuthConfig interface. */ export function instanceOfMILVUSAuthConfig(value: object): value is MILVUSAuthConfig { - if (!('name' in value) || value['name'] === undefined) return false; if (!('url' in value) || value['url'] === undefined) return false; return true; } @@ -70,7 +63,6 @@ export function MILVUSAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: bo } return { - 'name': json['name'], 'url': json['url'], 'token': json['token'] == null ? undefined : json['token'], 'username': json['username'] == null ? undefined : json['username'], @@ -89,7 +81,6 @@ export function MILVUSAuthConfigToJSONTyped(value?: MILVUSAuthConfig | null, ign return { - 'name': value['name'], 'url': value['url'], 'token': value['token'], 'username': value['username'], diff --git a/src/ts/src/models/MILVUSConfig.ts b/src/ts/src/models/MILVUSConfig.ts index c801fa6..0f4d123 100644 --- a/src/ts/src/models/MILVUSConfig.ts +++ b/src/ts/src/models/MILVUSConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/MetadataExtractionStrategy.ts b/src/ts/src/models/MetadataExtractionStrategy.ts index 776994b..03d2fb2 100644 --- a/src/ts/src/models/MetadataExtractionStrategy.ts +++ b/src/ts/src/models/MetadataExtractionStrategy.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/MetadataExtractionStrategySchema.ts b/src/ts/src/models/MetadataExtractionStrategySchema.ts index 4ca3b26..b510188 100644 --- a/src/ts/src/models/MetadataExtractionStrategySchema.ts +++ b/src/ts/src/models/MetadataExtractionStrategySchema.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/Milvus.ts b/src/ts/src/models/Milvus.ts index d52bf5d..f65108b 100644 --- a/src/ts/src/models/Milvus.ts +++ b/src/ts/src/models/Milvus.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,13 +13,13 @@ */ import { mapValues } from '../runtime'; -import type { MILVUSConfig } from './MILVUSConfig'; +import type { MILVUSAuthConfig } from './MILVUSAuthConfig'; import { - MILVUSConfigFromJSON, - MILVUSConfigFromJSONTyped, - MILVUSConfigToJSON, - MILVUSConfigToJSONTyped, -} from './MILVUSConfig'; + MILVUSAuthConfigFromJSON, + MILVUSAuthConfigFromJSONTyped, + MILVUSAuthConfigToJSON, + MILVUSAuthConfigToJSONTyped, +} from './MILVUSAuthConfig'; /** * @@ -41,10 +41,10 @@ export interface Milvus { type: MilvusTypeEnum; /** * - * @type {MILVUSConfig} + * @type {MILVUSAuthConfig} * @memberof Milvus */ - config: MILVUSConfig; + config: MILVUSAuthConfig; } @@ -79,7 +79,7 @@ export function MilvusFromJSONTyped(json: any, ignoreDiscriminator: boolean): Mi 'name': json['name'], 'type': json['type'], - 'config': MILVUSConfigFromJSON(json['config']), + 'config': MILVUSAuthConfigFromJSON(json['config']), }; } @@ -96,7 +96,7 @@ export function MilvusToJSONTyped(value?: Milvus | null, ignoreDiscriminator: bo 'name': value['name'], 'type': value['type'], - 'config': MILVUSConfigToJSON(value['config']), + 'config': MILVUSAuthConfigToJSON(value['config']), }; } diff --git a/src/ts/src/models/Milvus1.ts b/src/ts/src/models/Milvus1.ts index b5d87b2..fcb3577 100644 --- a/src/ts/src/models/Milvus1.ts +++ b/src/ts/src/models/Milvus1.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,13 +13,13 @@ */ import { mapValues } from '../runtime'; -import type { MILVUSConfig } from './MILVUSConfig'; +import type { MILVUSAuthConfig } from './MILVUSAuthConfig'; import { - MILVUSConfigFromJSON, - MILVUSConfigFromJSONTyped, - MILVUSConfigToJSON, - MILVUSConfigToJSONTyped, -} from './MILVUSConfig'; + MILVUSAuthConfigFromJSON, + MILVUSAuthConfigFromJSONTyped, + MILVUSAuthConfigToJSON, + MILVUSAuthConfigToJSONTyped, +} from './MILVUSAuthConfig'; /** * @@ -29,10 +29,10 @@ import { export interface Milvus1 { /** * - * @type {MILVUSConfig} + * @type {MILVUSAuthConfig} * @memberof Milvus1 */ - config?: MILVUSConfig; + config?: MILVUSAuthConfig; } /** @@ -52,7 +52,7 @@ export function Milvus1FromJSONTyped(json: any, ignoreDiscriminator: boolean): M } return { - 'config': json['config'] == null ? undefined : MILVUSConfigFromJSON(json['config']), + 'config': json['config'] == null ? undefined : MILVUSAuthConfigFromJSON(json['config']), }; } @@ -67,7 +67,7 @@ export function Milvus1ToJSONTyped(value?: Milvus1 | null, ignoreDiscriminator: return { - 'config': MILVUSConfigToJSON(value['config']), + 'config': MILVUSAuthConfigToJSON(value['config']), }; } diff --git a/src/ts/src/models/N8NConfig.ts b/src/ts/src/models/N8NConfig.ts index e2c6668..f5dad29 100644 --- a/src/ts/src/models/N8NConfig.ts +++ b/src/ts/src/models/N8NConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/NOTIONAuthConfig.ts b/src/ts/src/models/NOTIONAuthConfig.ts index 07ab942..07de1bd 100644 --- a/src/ts/src/models/NOTIONAuthConfig.ts +++ b/src/ts/src/models/NOTIONAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,12 +19,6 @@ import { mapValues } from '../runtime'; * @interface NOTIONAuthConfig */ export interface NOTIONAuthConfig { - /** - * Name. Example: Enter a descriptive name - * @type {string} - * @memberof NOTIONAuthConfig - */ - name: string; /** * Connect Notion to Vectorize - Note this will effect existing connections. test. Example: Authorize * @type {string} @@ -49,7 +43,6 @@ export interface NOTIONAuthConfig { * Check if a given object implements the NOTIONAuthConfig interface. */ export function instanceOfNOTIONAuthConfig(value: object): value is NOTIONAuthConfig { - if (!('name' in value) || value['name'] === undefined) return false; if (!('accessToken' in value) || value['accessToken'] === undefined) return false; return true; } @@ -64,7 +57,6 @@ export function NOTIONAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: bo } return { - 'name': json['name'], 'accessToken': json['access-token'], 's3id': json['s3id'] == null ? undefined : json['s3id'], 'editedToken': json['editedToken'] == null ? undefined : json['editedToken'], @@ -82,7 +74,6 @@ export function NOTIONAuthConfigToJSONTyped(value?: NOTIONAuthConfig | null, ign return { - 'name': value['name'], 'access-token': value['accessToken'], 's3id': value['s3id'], 'editedToken': value['editedToken'], diff --git a/src/ts/src/models/NOTIONConfig.ts b/src/ts/src/models/NOTIONConfig.ts index 7b9cfc9..86cbce3 100644 --- a/src/ts/src/models/NOTIONConfig.ts +++ b/src/ts/src/models/NOTIONConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/NOTIONOAUTHMULTIAuthConfig.ts b/src/ts/src/models/NOTIONOAUTHMULTIAuthConfig.ts index f956276..2184693 100644 --- a/src/ts/src/models/NOTIONOAUTHMULTIAuthConfig.ts +++ b/src/ts/src/models/NOTIONOAUTHMULTIAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,18 +19,12 @@ import { mapValues } from '../runtime'; * @interface NOTIONOAUTHMULTIAuthConfig */ export interface NOTIONOAUTHMULTIAuthConfig { - /** - * Name. Example: Enter a descriptive name - * @type {string} - * @memberof NOTIONOAUTHMULTIAuthConfig - */ - name: string; /** * Authorized Users. Users who have authorized access to their Notion content - * @type {string} + * @type {Array} * @memberof NOTIONOAUTHMULTIAuthConfig */ - authorizedUsers?: string; + authorizedUsers?: Array; /** * * @type {object} @@ -49,7 +43,6 @@ export interface NOTIONOAUTHMULTIAuthConfig { * Check if a given object implements the NOTIONOAUTHMULTIAuthConfig interface. */ export function instanceOfNOTIONOAUTHMULTIAuthConfig(value: object): value is NOTIONOAUTHMULTIAuthConfig { - if (!('name' in value) || value['name'] === undefined) return false; return true; } @@ -63,7 +56,6 @@ export function NOTIONOAUTHMULTIAuthConfigFromJSONTyped(json: any, ignoreDiscrim } return { - 'name': json['name'], 'authorizedUsers': json['authorized-users'] == null ? undefined : json['authorized-users'], 'editedUsers': json['editedUsers'] == null ? undefined : json['editedUsers'], 'deletedUsers': json['deletedUsers'] == null ? undefined : json['deletedUsers'], @@ -81,7 +73,6 @@ export function NOTIONOAUTHMULTIAuthConfigToJSONTyped(value?: NOTIONOAUTHMULTIAu return { - 'name': value['name'], 'authorized-users': value['authorizedUsers'], 'editedUsers': value['editedUsers'], 'deletedUsers': value['deletedUsers'], diff --git a/src/ts/src/models/NOTIONOAUTHMULTICUSTOMAuthConfig.ts b/src/ts/src/models/NOTIONOAUTHMULTICUSTOMAuthConfig.ts index da365a3..1a10b99 100644 --- a/src/ts/src/models/NOTIONOAUTHMULTICUSTOMAuthConfig.ts +++ b/src/ts/src/models/NOTIONOAUTHMULTICUSTOMAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,12 +19,6 @@ import { mapValues } from '../runtime'; * @interface NOTIONOAUTHMULTICUSTOMAuthConfig */ export interface NOTIONOAUTHMULTICUSTOMAuthConfig { - /** - * Name. Example: Enter a descriptive name - * @type {string} - * @memberof NOTIONOAUTHMULTICUSTOMAuthConfig - */ - name: string; /** * Notion Client ID. Example: Enter Client ID * @type {string} @@ -39,10 +33,10 @@ export interface NOTIONOAUTHMULTICUSTOMAuthConfig { clientSecret: string; /** * Authorized Users - * @type {string} + * @type {Array} * @memberof NOTIONOAUTHMULTICUSTOMAuthConfig */ - authorizedUsers?: string; + authorizedUsers?: Array; /** * * @type {object} @@ -61,7 +55,6 @@ export interface NOTIONOAUTHMULTICUSTOMAuthConfig { * Check if a given object implements the NOTIONOAUTHMULTICUSTOMAuthConfig interface. */ export function instanceOfNOTIONOAUTHMULTICUSTOMAuthConfig(value: object): value is NOTIONOAUTHMULTICUSTOMAuthConfig { - if (!('name' in value) || value['name'] === undefined) return false; if (!('clientId' in value) || value['clientId'] === undefined) return false; if (!('clientSecret' in value) || value['clientSecret'] === undefined) return false; return true; @@ -77,7 +70,6 @@ export function NOTIONOAUTHMULTICUSTOMAuthConfigFromJSONTyped(json: any, ignoreD } return { - 'name': json['name'], 'clientId': json['client-id'], 'clientSecret': json['client-secret'], 'authorizedUsers': json['authorized-users'] == null ? undefined : json['authorized-users'], @@ -97,7 +89,6 @@ export function NOTIONOAUTHMULTICUSTOMAuthConfigToJSONTyped(value?: NOTIONOAUTHM return { - 'name': value['name'], 'client-id': value['clientId'], 'client-secret': value['clientSecret'], 'authorized-users': value['authorizedUsers'], diff --git a/src/ts/src/models/Notion.ts b/src/ts/src/models/Notion.ts index 02441a2..0c6bb84 100644 --- a/src/ts/src/models/Notion.ts +++ b/src/ts/src/models/Notion.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,13 +13,13 @@ */ import { mapValues } from '../runtime'; -import type { NOTIONConfig } from './NOTIONConfig'; +import type { NOTIONAuthConfig } from './NOTIONAuthConfig'; import { - NOTIONConfigFromJSON, - NOTIONConfigFromJSONTyped, - NOTIONConfigToJSON, - NOTIONConfigToJSONTyped, -} from './NOTIONConfig'; + NOTIONAuthConfigFromJSON, + NOTIONAuthConfigFromJSONTyped, + NOTIONAuthConfigToJSON, + NOTIONAuthConfigToJSONTyped, +} from './NOTIONAuthConfig'; /** * @@ -29,10 +29,10 @@ import { export interface Notion { /** * - * @type {NOTIONConfig} + * @type {NOTIONAuthConfig} * @memberof Notion */ - config?: NOTIONConfig; + config?: NOTIONAuthConfig; } /** @@ -52,7 +52,7 @@ export function NotionFromJSONTyped(json: any, ignoreDiscriminator: boolean): No } return { - 'config': json['config'] == null ? undefined : NOTIONConfigFromJSON(json['config']), + 'config': json['config'] == null ? undefined : NOTIONAuthConfigFromJSON(json['config']), }; } @@ -67,7 +67,7 @@ export function NotionToJSONTyped(value?: Notion | null, ignoreDiscriminator: bo return { - 'config': NOTIONConfigToJSON(value['config']), + 'config': NOTIONAuthConfigToJSON(value['config']), }; } diff --git a/src/ts/src/models/NotionOauthMulti.ts b/src/ts/src/models/NotionOauthMulti.ts index 42ca7ca..abd34d4 100644 --- a/src/ts/src/models/NotionOauthMulti.ts +++ b/src/ts/src/models/NotionOauthMulti.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/NotionOauthMultiCustom.ts b/src/ts/src/models/NotionOauthMultiCustom.ts index 0ae3771..9d751b1 100644 --- a/src/ts/src/models/NotionOauthMultiCustom.ts +++ b/src/ts/src/models/NotionOauthMultiCustom.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/ONEDRIVEAuthConfig.ts b/src/ts/src/models/ONEDRIVEAuthConfig.ts index cee3fbf..d42f6cd 100644 --- a/src/ts/src/models/ONEDRIVEAuthConfig.ts +++ b/src/ts/src/models/ONEDRIVEAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,12 +19,6 @@ import { mapValues } from '../runtime'; * @interface ONEDRIVEAuthConfig */ export interface ONEDRIVEAuthConfig { - /** - * Name. Example: Enter a descriptive name - * @type {string} - * @memberof ONEDRIVEAuthConfig - */ - name: string; /** * Client Id. Example: Enter Client Id * @type {string} @@ -45,17 +39,16 @@ export interface ONEDRIVEAuthConfig { msClientSecret: string; /** * Users. Example: Enter users emails to import files from. Example: developer@vectorize.io - * @type {string} + * @type {Array} * @memberof ONEDRIVEAuthConfig */ - users: string; + users: Array; } /** * Check if a given object implements the ONEDRIVEAuthConfig interface. */ export function instanceOfONEDRIVEAuthConfig(value: object): value is ONEDRIVEAuthConfig { - if (!('name' in value) || value['name'] === undefined) return false; if (!('msClientId' in value) || value['msClientId'] === undefined) return false; if (!('msTenantId' in value) || value['msTenantId'] === undefined) return false; if (!('msClientSecret' in value) || value['msClientSecret'] === undefined) return false; @@ -73,7 +66,6 @@ export function ONEDRIVEAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: } return { - 'name': json['name'], 'msClientId': json['ms-client-id'], 'msTenantId': json['ms-tenant-id'], 'msClientSecret': json['ms-client-secret'], @@ -92,7 +84,6 @@ export function ONEDRIVEAuthConfigToJSONTyped(value?: ONEDRIVEAuthConfig | null, return { - 'name': value['name'], 'ms-client-id': value['msClientId'], 'ms-tenant-id': value['msTenantId'], 'ms-client-secret': value['msClientSecret'], diff --git a/src/ts/src/models/ONEDRIVEConfig.ts b/src/ts/src/models/ONEDRIVEConfig.ts index 81ed7a5..549978c 100644 --- a/src/ts/src/models/ONEDRIVEConfig.ts +++ b/src/ts/src/models/ONEDRIVEConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -46,9 +46,9 @@ export const ONEDRIVEConfigFileExtensionsEnum = { Txt: 'txt', Htmlhtm: 'html,htm', Md: 'md', + Jpgjpegpngwebpsvggif: 'jpg,jpeg,png,webp,svg,gif', Json: 'json', - Csv: 'csv', - Jpgjpegpngwebpsvggif: 'jpg,jpeg,png,webp,svg,gif' + Csv: 'csv' } as const; export type ONEDRIVEConfigFileExtensionsEnum = typeof ONEDRIVEConfigFileExtensionsEnum[keyof typeof ONEDRIVEConfigFileExtensionsEnum]; diff --git a/src/ts/src/models/OPENAIAuthConfig.ts b/src/ts/src/models/OPENAIAuthConfig.ts index 1e59eb1..bd96c72 100644 --- a/src/ts/src/models/OPENAIAuthConfig.ts +++ b/src/ts/src/models/OPENAIAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,12 +19,6 @@ import { mapValues } from '../runtime'; * @interface OPENAIAuthConfig */ export interface OPENAIAuthConfig { - /** - * Name. Example: Enter a descriptive name for your OpenAI integration - * @type {string} - * @memberof OPENAIAuthConfig - */ - name: string; /** * API Key. Example: Enter your OpenAI API Key * @type {string} @@ -37,7 +31,6 @@ export interface OPENAIAuthConfig { * Check if a given object implements the OPENAIAuthConfig interface. */ export function instanceOfOPENAIAuthConfig(value: object): value is OPENAIAuthConfig { - if (!('name' in value) || value['name'] === undefined) return false; if (!('key' in value) || value['key'] === undefined) return false; return true; } @@ -52,7 +45,6 @@ export function OPENAIAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: bo } return { - 'name': json['name'], 'key': json['key'], }; } @@ -68,7 +60,6 @@ export function OPENAIAuthConfigToJSONTyped(value?: OPENAIAuthConfig | null, ign return { - 'name': value['name'], 'key': value['key'], }; } diff --git a/src/ts/src/models/OneDrive.ts b/src/ts/src/models/OneDrive.ts index 3c296d1..33f8359 100644 --- a/src/ts/src/models/OneDrive.ts +++ b/src/ts/src/models/OneDrive.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,13 +13,13 @@ */ import { mapValues } from '../runtime'; -import type { ONEDRIVEConfig } from './ONEDRIVEConfig'; +import type { ONEDRIVEAuthConfig } from './ONEDRIVEAuthConfig'; import { - ONEDRIVEConfigFromJSON, - ONEDRIVEConfigFromJSONTyped, - ONEDRIVEConfigToJSON, - ONEDRIVEConfigToJSONTyped, -} from './ONEDRIVEConfig'; + ONEDRIVEAuthConfigFromJSON, + ONEDRIVEAuthConfigFromJSONTyped, + ONEDRIVEAuthConfigToJSON, + ONEDRIVEAuthConfigToJSONTyped, +} from './ONEDRIVEAuthConfig'; /** * @@ -41,10 +41,10 @@ export interface OneDrive { type: OneDriveTypeEnum; /** * - * @type {ONEDRIVEConfig} + * @type {ONEDRIVEAuthConfig} * @memberof OneDrive */ - config: ONEDRIVEConfig; + config: ONEDRIVEAuthConfig; } @@ -79,7 +79,7 @@ export function OneDriveFromJSONTyped(json: any, ignoreDiscriminator: boolean): 'name': json['name'], 'type': json['type'], - 'config': ONEDRIVEConfigFromJSON(json['config']), + 'config': ONEDRIVEAuthConfigFromJSON(json['config']), }; } @@ -96,7 +96,7 @@ export function OneDriveToJSONTyped(value?: OneDrive | null, ignoreDiscriminator 'name': value['name'], 'type': value['type'], - 'config': ONEDRIVEConfigToJSON(value['config']), + 'config': ONEDRIVEAuthConfigToJSON(value['config']), }; } diff --git a/src/ts/src/models/OneDrive1.ts b/src/ts/src/models/OneDrive1.ts index 0e918e3..007aa82 100644 --- a/src/ts/src/models/OneDrive1.ts +++ b/src/ts/src/models/OneDrive1.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,13 +13,13 @@ */ import { mapValues } from '../runtime'; -import type { ONEDRIVEConfig } from './ONEDRIVEConfig'; +import type { ONEDRIVEAuthConfig } from './ONEDRIVEAuthConfig'; import { - ONEDRIVEConfigFromJSON, - ONEDRIVEConfigFromJSONTyped, - ONEDRIVEConfigToJSON, - ONEDRIVEConfigToJSONTyped, -} from './ONEDRIVEConfig'; + ONEDRIVEAuthConfigFromJSON, + ONEDRIVEAuthConfigFromJSONTyped, + ONEDRIVEAuthConfigToJSON, + ONEDRIVEAuthConfigToJSONTyped, +} from './ONEDRIVEAuthConfig'; /** * @@ -29,10 +29,10 @@ import { export interface OneDrive1 { /** * - * @type {ONEDRIVEConfig} + * @type {ONEDRIVEAuthConfig} * @memberof OneDrive1 */ - config?: ONEDRIVEConfig; + config?: ONEDRIVEAuthConfig; } /** @@ -52,7 +52,7 @@ export function OneDrive1FromJSONTyped(json: any, ignoreDiscriminator: boolean): } return { - 'config': json['config'] == null ? undefined : ONEDRIVEConfigFromJSON(json['config']), + 'config': json['config'] == null ? undefined : ONEDRIVEAuthConfigFromJSON(json['config']), }; } @@ -67,7 +67,7 @@ export function OneDrive1ToJSONTyped(value?: OneDrive1 | null, ignoreDiscriminat return { - 'config': ONEDRIVEConfigToJSON(value['config']), + 'config': ONEDRIVEAuthConfigToJSON(value['config']), }; } diff --git a/src/ts/src/models/Openai.ts b/src/ts/src/models/Openai.ts index a861527..64260ab 100644 --- a/src/ts/src/models/Openai.ts +++ b/src/ts/src/models/Openai.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/Openai1.ts b/src/ts/src/models/Openai1.ts index 9de78bd..1fa9997 100644 --- a/src/ts/src/models/Openai1.ts +++ b/src/ts/src/models/Openai1.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/PINECONEAuthConfig.ts b/src/ts/src/models/PINECONEAuthConfig.ts index 28dbb16..f38f840 100644 --- a/src/ts/src/models/PINECONEAuthConfig.ts +++ b/src/ts/src/models/PINECONEAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,12 +19,6 @@ import { mapValues } from '../runtime'; * @interface PINECONEAuthConfig */ export interface PINECONEAuthConfig { - /** - * Name. Example: Enter a descriptive name for your Pinecone integration - * @type {string} - * @memberof PINECONEAuthConfig - */ - name: string; /** * API Key. Example: Enter your API Key * @type {string} @@ -37,7 +31,6 @@ export interface PINECONEAuthConfig { * Check if a given object implements the PINECONEAuthConfig interface. */ export function instanceOfPINECONEAuthConfig(value: object): value is PINECONEAuthConfig { - if (!('name' in value) || value['name'] === undefined) return false; if (!('apiKey' in value) || value['apiKey'] === undefined) return false; return true; } @@ -52,7 +45,6 @@ export function PINECONEAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: } return { - 'name': json['name'], 'apiKey': json['api-key'], }; } @@ -68,7 +60,6 @@ export function PINECONEAuthConfigToJSONTyped(value?: PINECONEAuthConfig | null, return { - 'name': value['name'], 'api-key': value['apiKey'], }; } diff --git a/src/ts/src/models/PINECONEConfig.ts b/src/ts/src/models/PINECONEConfig.ts index 4b4089d..b3bdae7 100644 --- a/src/ts/src/models/PINECONEConfig.ts +++ b/src/ts/src/models/PINECONEConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/POSTGRESQLAuthConfig.ts b/src/ts/src/models/POSTGRESQLAuthConfig.ts index cb9ebcf..ea5b7b7 100644 --- a/src/ts/src/models/POSTGRESQLAuthConfig.ts +++ b/src/ts/src/models/POSTGRESQLAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,12 +19,6 @@ import { mapValues } from '../runtime'; * @interface POSTGRESQLAuthConfig */ export interface POSTGRESQLAuthConfig { - /** - * Name. Example: Enter a descriptive name for your PostgreSQL integration - * @type {string} - * @memberof POSTGRESQLAuthConfig - */ - name: string; /** * Host. Example: Enter the host of the deployment * @type {string} @@ -61,7 +55,6 @@ export interface POSTGRESQLAuthConfig { * Check if a given object implements the POSTGRESQLAuthConfig interface. */ export function instanceOfPOSTGRESQLAuthConfig(value: object): value is POSTGRESQLAuthConfig { - if (!('name' in value) || value['name'] === undefined) return false; if (!('host' in value) || value['host'] === undefined) return false; if (!('database' in value) || value['database'] === undefined) return false; if (!('username' in value) || value['username'] === undefined) return false; @@ -79,7 +72,6 @@ export function POSTGRESQLAuthConfigFromJSONTyped(json: any, ignoreDiscriminator } return { - 'name': json['name'], 'host': json['host'], 'port': json['port'] == null ? undefined : json['port'], 'database': json['database'], @@ -99,7 +91,6 @@ export function POSTGRESQLAuthConfigToJSONTyped(value?: POSTGRESQLAuthConfig | n return { - 'name': value['name'], 'host': value['host'], 'port': value['port'], 'database': value['database'], diff --git a/src/ts/src/models/POSTGRESQLConfig.ts b/src/ts/src/models/POSTGRESQLConfig.ts index 79d2365..80099c4 100644 --- a/src/ts/src/models/POSTGRESQLConfig.ts +++ b/src/ts/src/models/POSTGRESQLConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/Pinecone.ts b/src/ts/src/models/Pinecone.ts index 636b3ae..56c3bab 100644 --- a/src/ts/src/models/Pinecone.ts +++ b/src/ts/src/models/Pinecone.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,13 +13,13 @@ */ import { mapValues } from '../runtime'; -import type { PINECONEConfig } from './PINECONEConfig'; +import type { PINECONEAuthConfig } from './PINECONEAuthConfig'; import { - PINECONEConfigFromJSON, - PINECONEConfigFromJSONTyped, - PINECONEConfigToJSON, - PINECONEConfigToJSONTyped, -} from './PINECONEConfig'; + PINECONEAuthConfigFromJSON, + PINECONEAuthConfigFromJSONTyped, + PINECONEAuthConfigToJSON, + PINECONEAuthConfigToJSONTyped, +} from './PINECONEAuthConfig'; /** * @@ -41,10 +41,10 @@ export interface Pinecone { type: PineconeTypeEnum; /** * - * @type {PINECONEConfig} + * @type {PINECONEAuthConfig} * @memberof Pinecone */ - config: PINECONEConfig; + config: PINECONEAuthConfig; } @@ -79,7 +79,7 @@ export function PineconeFromJSONTyped(json: any, ignoreDiscriminator: boolean): 'name': json['name'], 'type': json['type'], - 'config': PINECONEConfigFromJSON(json['config']), + 'config': PINECONEAuthConfigFromJSON(json['config']), }; } @@ -96,7 +96,7 @@ export function PineconeToJSONTyped(value?: Pinecone | null, ignoreDiscriminator 'name': value['name'], 'type': value['type'], - 'config': PINECONEConfigToJSON(value['config']), + 'config': PINECONEAuthConfigToJSON(value['config']), }; } diff --git a/src/ts/src/models/Pinecone1.ts b/src/ts/src/models/Pinecone1.ts index 9711f44..082405b 100644 --- a/src/ts/src/models/Pinecone1.ts +++ b/src/ts/src/models/Pinecone1.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,13 +13,13 @@ */ import { mapValues } from '../runtime'; -import type { PINECONEConfig } from './PINECONEConfig'; +import type { PINECONEAuthConfig } from './PINECONEAuthConfig'; import { - PINECONEConfigFromJSON, - PINECONEConfigFromJSONTyped, - PINECONEConfigToJSON, - PINECONEConfigToJSONTyped, -} from './PINECONEConfig'; + PINECONEAuthConfigFromJSON, + PINECONEAuthConfigFromJSONTyped, + PINECONEAuthConfigToJSON, + PINECONEAuthConfigToJSONTyped, +} from './PINECONEAuthConfig'; /** * @@ -29,10 +29,10 @@ import { export interface Pinecone1 { /** * - * @type {PINECONEConfig} + * @type {PINECONEAuthConfig} * @memberof Pinecone1 */ - config?: PINECONEConfig; + config?: PINECONEAuthConfig; } /** @@ -52,7 +52,7 @@ export function Pinecone1FromJSONTyped(json: any, ignoreDiscriminator: boolean): } return { - 'config': json['config'] == null ? undefined : PINECONEConfigFromJSON(json['config']), + 'config': json['config'] == null ? undefined : PINECONEAuthConfigFromJSON(json['config']), }; } @@ -67,7 +67,7 @@ export function Pinecone1ToJSONTyped(value?: Pinecone1 | null, ignoreDiscriminat return { - 'config': PINECONEConfigToJSON(value['config']), + 'config': PINECONEAuthConfigToJSON(value['config']), }; } diff --git a/src/ts/src/models/AIPlatformConnectorSchema.ts b/src/ts/src/models/PipelineAIPlatformConnectorSchema.ts similarity index 62% rename from src/ts/src/models/AIPlatformConnectorSchema.ts rename to src/ts/src/models/PipelineAIPlatformConnectorSchema.ts index 9be4885..ee8e3c1 100644 --- a/src/ts/src/models/AIPlatformConnectorSchema.ts +++ b/src/ts/src/models/PipelineAIPlatformConnectorSchema.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -31,25 +31,25 @@ import { /** * * @export - * @interface AIPlatformConnectorSchema + * @interface PipelineAIPlatformConnectorSchema */ -export interface AIPlatformConnectorSchema { +export interface PipelineAIPlatformConnectorSchema { /** * * @type {string} - * @memberof AIPlatformConnectorSchema + * @memberof PipelineAIPlatformConnectorSchema */ id: string; /** * * @type {AIPlatformTypeForPipeline} - * @memberof AIPlatformConnectorSchema + * @memberof PipelineAIPlatformConnectorSchema */ type: AIPlatformTypeForPipeline; /** * * @type {AIPlatformConfigSchema} - * @memberof AIPlatformConnectorSchema + * @memberof PipelineAIPlatformConnectorSchema */ config: AIPlatformConfigSchema; } @@ -57,20 +57,20 @@ export interface AIPlatformConnectorSchema { /** - * Check if a given object implements the AIPlatformConnectorSchema interface. + * Check if a given object implements the PipelineAIPlatformConnectorSchema interface. */ -export function instanceOfAIPlatformConnectorSchema(value: object): value is AIPlatformConnectorSchema { +export function instanceOfPipelineAIPlatformConnectorSchema(value: object): value is PipelineAIPlatformConnectorSchema { 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; } -export function AIPlatformConnectorSchemaFromJSON(json: any): AIPlatformConnectorSchema { - return AIPlatformConnectorSchemaFromJSONTyped(json, false); +export function PipelineAIPlatformConnectorSchemaFromJSON(json: any): PipelineAIPlatformConnectorSchema { + return PipelineAIPlatformConnectorSchemaFromJSONTyped(json, false); } -export function AIPlatformConnectorSchemaFromJSONTyped(json: any, ignoreDiscriminator: boolean): AIPlatformConnectorSchema { +export function PipelineAIPlatformConnectorSchemaFromJSONTyped(json: any, ignoreDiscriminator: boolean): PipelineAIPlatformConnectorSchema { if (json == null) { return json; } @@ -82,11 +82,11 @@ export function AIPlatformConnectorSchemaFromJSONTyped(json: any, ignoreDiscrimi }; } -export function AIPlatformConnectorSchemaToJSON(json: any): AIPlatformConnectorSchema { - return AIPlatformConnectorSchemaToJSONTyped(json, false); +export function PipelineAIPlatformConnectorSchemaToJSON(json: any): PipelineAIPlatformConnectorSchema { + return PipelineAIPlatformConnectorSchemaToJSONTyped(json, false); } -export function AIPlatformConnectorSchemaToJSONTyped(value?: AIPlatformConnectorSchema | null, ignoreDiscriminator: boolean = false): any { +export function PipelineAIPlatformConnectorSchemaToJSONTyped(value?: PipelineAIPlatformConnectorSchema | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } diff --git a/src/ts/src/models/PipelineConfigurationSchema.ts b/src/ts/src/models/PipelineConfigurationSchema.ts index 1ff2c37..712c857 100644 --- a/src/ts/src/models/PipelineConfigurationSchema.ts +++ b/src/ts/src/models/PipelineConfigurationSchema.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,13 @@ */ import { mapValues } from '../runtime'; +import type { PipelineSourceConnectorSchema } from './PipelineSourceConnectorSchema'; +import { + PipelineSourceConnectorSchemaFromJSON, + PipelineSourceConnectorSchemaFromJSONTyped, + PipelineSourceConnectorSchemaToJSON, + PipelineSourceConnectorSchemaToJSONTyped, +} from './PipelineSourceConnectorSchema'; import type { ScheduleSchema } from './ScheduleSchema'; import { ScheduleSchemaFromJSON, @@ -20,27 +27,20 @@ import { ScheduleSchemaToJSON, ScheduleSchemaToJSONTyped, } from './ScheduleSchema'; -import type { SourceConnectorSchema } from './SourceConnectorSchema'; -import { - SourceConnectorSchemaFromJSON, - SourceConnectorSchemaFromJSONTyped, - SourceConnectorSchemaToJSON, - SourceConnectorSchemaToJSONTyped, -} from './SourceConnectorSchema'; -import type { DestinationConnectorSchema } from './DestinationConnectorSchema'; +import type { PipelineAIPlatformConnectorSchema } from './PipelineAIPlatformConnectorSchema'; import { - DestinationConnectorSchemaFromJSON, - DestinationConnectorSchemaFromJSONTyped, - DestinationConnectorSchemaToJSON, - DestinationConnectorSchemaToJSONTyped, -} from './DestinationConnectorSchema'; -import type { AIPlatformConnectorSchema } from './AIPlatformConnectorSchema'; + PipelineAIPlatformConnectorSchemaFromJSON, + PipelineAIPlatformConnectorSchemaFromJSONTyped, + PipelineAIPlatformConnectorSchemaToJSON, + PipelineAIPlatformConnectorSchemaToJSONTyped, +} from './PipelineAIPlatformConnectorSchema'; +import type { PipelineDestinationConnectorSchema } from './PipelineDestinationConnectorSchema'; import { - AIPlatformConnectorSchemaFromJSON, - AIPlatformConnectorSchemaFromJSONTyped, - AIPlatformConnectorSchemaToJSON, - AIPlatformConnectorSchemaToJSONTyped, -} from './AIPlatformConnectorSchema'; + PipelineDestinationConnectorSchemaFromJSON, + PipelineDestinationConnectorSchemaFromJSONTyped, + PipelineDestinationConnectorSchemaToJSON, + PipelineDestinationConnectorSchemaToJSONTyped, +} from './PipelineDestinationConnectorSchema'; /** * @@ -50,22 +50,22 @@ import { export interface PipelineConfigurationSchema { /** * - * @type {Array} + * @type {Array} * @memberof PipelineConfigurationSchema */ - sourceConnectors: Array; + sourceConnectors: Array; /** * - * @type {DestinationConnectorSchema} + * @type {PipelineDestinationConnectorSchema} * @memberof PipelineConfigurationSchema */ - destinationConnector: DestinationConnectorSchema; + destinationConnector: PipelineDestinationConnectorSchema; /** * - * @type {AIPlatformConnectorSchema} + * @type {PipelineAIPlatformConnectorSchema} * @memberof PipelineConfigurationSchema */ - aiPlatform: AIPlatformConnectorSchema; + aiPlatformConnector: PipelineAIPlatformConnectorSchema; /** * * @type {string} @@ -86,7 +86,7 @@ export interface PipelineConfigurationSchema { export function instanceOfPipelineConfigurationSchema(value: object): value is PipelineConfigurationSchema { if (!('sourceConnectors' in value) || value['sourceConnectors'] === undefined) return false; if (!('destinationConnector' in value) || value['destinationConnector'] === undefined) return false; - if (!('aiPlatform' in value) || value['aiPlatform'] === undefined) return false; + if (!('aiPlatformConnector' in value) || value['aiPlatformConnector'] === undefined) return false; if (!('pipelineName' in value) || value['pipelineName'] === undefined) return false; if (!('schedule' in value) || value['schedule'] === undefined) return false; return true; @@ -102,9 +102,9 @@ export function PipelineConfigurationSchemaFromJSONTyped(json: any, ignoreDiscri } return { - 'sourceConnectors': ((json['sourceConnectors'] as Array).map(SourceConnectorSchemaFromJSON)), - 'destinationConnector': DestinationConnectorSchemaFromJSON(json['destinationConnector']), - 'aiPlatform': AIPlatformConnectorSchemaFromJSON(json['aiPlatform']), + 'sourceConnectors': ((json['sourceConnectors'] as Array).map(PipelineSourceConnectorSchemaFromJSON)), + 'destinationConnector': PipelineDestinationConnectorSchemaFromJSON(json['destinationConnector']), + 'aiPlatformConnector': PipelineAIPlatformConnectorSchemaFromJSON(json['aiPlatformConnector']), 'pipelineName': json['pipelineName'], 'schedule': ScheduleSchemaFromJSON(json['schedule']), }; @@ -121,9 +121,9 @@ export function PipelineConfigurationSchemaToJSONTyped(value?: PipelineConfigura return { - 'sourceConnectors': ((value['sourceConnectors'] as Array).map(SourceConnectorSchemaToJSON)), - 'destinationConnector': DestinationConnectorSchemaToJSON(value['destinationConnector']), - 'aiPlatform': AIPlatformConnectorSchemaToJSON(value['aiPlatform']), + 'sourceConnectors': ((value['sourceConnectors'] as Array).map(PipelineSourceConnectorSchemaToJSON)), + 'destinationConnector': PipelineDestinationConnectorSchemaToJSON(value['destinationConnector']), + 'aiPlatformConnector': PipelineAIPlatformConnectorSchemaToJSON(value['aiPlatformConnector']), 'pipelineName': value['pipelineName'], 'schedule': ScheduleSchemaToJSON(value['schedule']), }; diff --git a/src/ts/src/models/DestinationConnectorSchema.ts b/src/ts/src/models/PipelineDestinationConnectorSchema.ts similarity index 58% rename from src/ts/src/models/DestinationConnectorSchema.ts rename to src/ts/src/models/PipelineDestinationConnectorSchema.ts index a5fd271..c017b07 100644 --- a/src/ts/src/models/DestinationConnectorSchema.ts +++ b/src/ts/src/models/PipelineDestinationConnectorSchema.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -24,25 +24,25 @@ import { /** * * @export - * @interface DestinationConnectorSchema + * @interface PipelineDestinationConnectorSchema */ -export interface DestinationConnectorSchema { +export interface PipelineDestinationConnectorSchema { /** * * @type {string} - * @memberof DestinationConnectorSchema + * @memberof PipelineDestinationConnectorSchema */ id: string; /** * * @type {DestinationConnectorTypeForPipeline} - * @memberof DestinationConnectorSchema + * @memberof PipelineDestinationConnectorSchema */ type: DestinationConnectorTypeForPipeline; /** * * @type {{ [key: string]: any | null; }} - * @memberof DestinationConnectorSchema + * @memberof PipelineDestinationConnectorSchema */ config?: { [key: string]: any | null; }; } @@ -50,19 +50,19 @@ export interface DestinationConnectorSchema { /** - * Check if a given object implements the DestinationConnectorSchema interface. + * Check if a given object implements the PipelineDestinationConnectorSchema interface. */ -export function instanceOfDestinationConnectorSchema(value: object): value is DestinationConnectorSchema { +export function instanceOfPipelineDestinationConnectorSchema(value: object): value is PipelineDestinationConnectorSchema { if (!('id' in value) || value['id'] === undefined) return false; if (!('type' in value) || value['type'] === undefined) return false; return true; } -export function DestinationConnectorSchemaFromJSON(json: any): DestinationConnectorSchema { - return DestinationConnectorSchemaFromJSONTyped(json, false); +export function PipelineDestinationConnectorSchemaFromJSON(json: any): PipelineDestinationConnectorSchema { + return PipelineDestinationConnectorSchemaFromJSONTyped(json, false); } -export function DestinationConnectorSchemaFromJSONTyped(json: any, ignoreDiscriminator: boolean): DestinationConnectorSchema { +export function PipelineDestinationConnectorSchemaFromJSONTyped(json: any, ignoreDiscriminator: boolean): PipelineDestinationConnectorSchema { if (json == null) { return json; } @@ -74,11 +74,11 @@ export function DestinationConnectorSchemaFromJSONTyped(json: any, ignoreDiscrim }; } -export function DestinationConnectorSchemaToJSON(json: any): DestinationConnectorSchema { - return DestinationConnectorSchemaToJSONTyped(json, false); +export function PipelineDestinationConnectorSchemaToJSON(json: any): PipelineDestinationConnectorSchema { + return PipelineDestinationConnectorSchemaToJSONTyped(json, false); } -export function DestinationConnectorSchemaToJSONTyped(value?: DestinationConnectorSchema | null, ignoreDiscriminator: boolean = false): any { +export function PipelineDestinationConnectorSchemaToJSONTyped(value?: PipelineDestinationConnectorSchema | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } diff --git a/src/ts/src/models/PipelineEvents.ts b/src/ts/src/models/PipelineEvents.ts index bd0e3db..360ff4c 100644 --- a/src/ts/src/models/PipelineEvents.ts +++ b/src/ts/src/models/PipelineEvents.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/PipelineListSummary.ts b/src/ts/src/models/PipelineListSummary.ts index a74fc48..8833d83 100644 --- a/src/ts/src/models/PipelineListSummary.ts +++ b/src/ts/src/models/PipelineListSummary.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/PipelineMetrics.ts b/src/ts/src/models/PipelineMetrics.ts index 4a111ac..19c7ca7 100644 --- a/src/ts/src/models/PipelineMetrics.ts +++ b/src/ts/src/models/PipelineMetrics.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/SourceConnectorSchema.ts b/src/ts/src/models/PipelineSourceConnectorSchema.ts similarity index 58% rename from src/ts/src/models/SourceConnectorSchema.ts rename to src/ts/src/models/PipelineSourceConnectorSchema.ts index a22a42f..da779e5 100644 --- a/src/ts/src/models/SourceConnectorSchema.ts +++ b/src/ts/src/models/PipelineSourceConnectorSchema.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -24,25 +24,25 @@ import { /** * * @export - * @interface SourceConnectorSchema + * @interface PipelineSourceConnectorSchema */ -export interface SourceConnectorSchema { +export interface PipelineSourceConnectorSchema { /** * * @type {string} - * @memberof SourceConnectorSchema + * @memberof PipelineSourceConnectorSchema */ id: string; /** * * @type {SourceConnectorType} - * @memberof SourceConnectorSchema + * @memberof PipelineSourceConnectorSchema */ type: SourceConnectorType; /** * * @type {{ [key: string]: any | null; }} - * @memberof SourceConnectorSchema + * @memberof PipelineSourceConnectorSchema */ config: { [key: string]: any | null; }; } @@ -50,20 +50,20 @@ export interface SourceConnectorSchema { /** - * Check if a given object implements the SourceConnectorSchema interface. + * Check if a given object implements the PipelineSourceConnectorSchema interface. */ -export function instanceOfSourceConnectorSchema(value: object): value is SourceConnectorSchema { +export function instanceOfPipelineSourceConnectorSchema(value: object): value is PipelineSourceConnectorSchema { 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; } -export function SourceConnectorSchemaFromJSON(json: any): SourceConnectorSchema { - return SourceConnectorSchemaFromJSONTyped(json, false); +export function PipelineSourceConnectorSchemaFromJSON(json: any): PipelineSourceConnectorSchema { + return PipelineSourceConnectorSchemaFromJSONTyped(json, false); } -export function SourceConnectorSchemaFromJSONTyped(json: any, ignoreDiscriminator: boolean): SourceConnectorSchema { +export function PipelineSourceConnectorSchemaFromJSONTyped(json: any, ignoreDiscriminator: boolean): PipelineSourceConnectorSchema { if (json == null) { return json; } @@ -75,11 +75,11 @@ export function SourceConnectorSchemaFromJSONTyped(json: any, ignoreDiscriminato }; } -export function SourceConnectorSchemaToJSON(json: any): SourceConnectorSchema { - return SourceConnectorSchemaToJSONTyped(json, false); +export function PipelineSourceConnectorSchemaToJSON(json: any): PipelineSourceConnectorSchema { + return PipelineSourceConnectorSchemaToJSONTyped(json, false); } -export function SourceConnectorSchemaToJSONTyped(value?: SourceConnectorSchema | null, ignoreDiscriminator: boolean = false): any { +export function PipelineSourceConnectorSchemaToJSONTyped(value?: PipelineSourceConnectorSchema | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } diff --git a/src/ts/src/models/PipelineSummary.ts b/src/ts/src/models/PipelineSummary.ts index dcc6697..1ba0bf0 100644 --- a/src/ts/src/models/PipelineSummary.ts +++ b/src/ts/src/models/PipelineSummary.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,13 @@ */ import { mapValues } from '../runtime'; +import type { AIPlatformConnector } from './AIPlatformConnector'; +import { + AIPlatformConnectorFromJSON, + AIPlatformConnectorFromJSONTyped, + AIPlatformConnectorToJSON, + AIPlatformConnectorToJSONTyped, +} from './AIPlatformConnector'; import type { SourceConnector } from './SourceConnector'; import { SourceConnectorFromJSON, @@ -27,13 +34,6 @@ import { DestinationConnectorToJSON, DestinationConnectorToJSONTyped, } from './DestinationConnector'; -import type { AIPlatform } from './AIPlatform'; -import { - AIPlatformFromJSON, - AIPlatformFromJSONTyped, - AIPlatformToJSON, - AIPlatformToJSONTyped, -} from './AIPlatform'; /** * @@ -133,10 +133,10 @@ export interface PipelineSummary { destinationConnectors: Array; /** * - * @type {Array} + * @type {Array} * @memberof PipelineSummary */ - aiPlatforms: Array; + aiPlatforms: Array; } /** @@ -185,7 +185,7 @@ export function PipelineSummaryFromJSONTyped(json: any, ignoreDiscriminator: boo 'configDoc': json['configDoc'] == null ? undefined : json['configDoc'], 'sourceConnectors': ((json['sourceConnectors'] as Array).map(SourceConnectorFromJSON)), 'destinationConnectors': ((json['destinationConnectors'] as Array).map(DestinationConnectorFromJSON)), - 'aiPlatforms': ((json['aiPlatforms'] as Array).map(AIPlatformFromJSON)), + 'aiPlatforms': ((json['aiPlatforms'] as Array).map(AIPlatformConnectorFromJSON)), }; } @@ -215,7 +215,7 @@ export function PipelineSummaryToJSONTyped(value?: PipelineSummary | null, ignor 'configDoc': value['configDoc'], 'sourceConnectors': ((value['sourceConnectors'] as Array).map(SourceConnectorToJSON)), 'destinationConnectors': ((value['destinationConnectors'] as Array).map(DestinationConnectorToJSON)), - 'aiPlatforms': ((value['aiPlatforms'] as Array).map(AIPlatformToJSON)), + 'aiPlatforms': ((value['aiPlatforms'] as Array).map(AIPlatformConnectorToJSON)), }; } diff --git a/src/ts/src/models/Postgresql.ts b/src/ts/src/models/Postgresql.ts index 4aa1138..d5cd088 100644 --- a/src/ts/src/models/Postgresql.ts +++ b/src/ts/src/models/Postgresql.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,13 +13,13 @@ */ import { mapValues } from '../runtime'; -import type { POSTGRESQLConfig } from './POSTGRESQLConfig'; +import type { POSTGRESQLAuthConfig } from './POSTGRESQLAuthConfig'; import { - POSTGRESQLConfigFromJSON, - POSTGRESQLConfigFromJSONTyped, - POSTGRESQLConfigToJSON, - POSTGRESQLConfigToJSONTyped, -} from './POSTGRESQLConfig'; + POSTGRESQLAuthConfigFromJSON, + POSTGRESQLAuthConfigFromJSONTyped, + POSTGRESQLAuthConfigToJSON, + POSTGRESQLAuthConfigToJSONTyped, +} from './POSTGRESQLAuthConfig'; /** * @@ -41,10 +41,10 @@ export interface Postgresql { type: PostgresqlTypeEnum; /** * - * @type {POSTGRESQLConfig} + * @type {POSTGRESQLAuthConfig} * @memberof Postgresql */ - config: POSTGRESQLConfig; + config: POSTGRESQLAuthConfig; } @@ -79,7 +79,7 @@ export function PostgresqlFromJSONTyped(json: any, ignoreDiscriminator: boolean) 'name': json['name'], 'type': json['type'], - 'config': POSTGRESQLConfigFromJSON(json['config']), + 'config': POSTGRESQLAuthConfigFromJSON(json['config']), }; } @@ -96,7 +96,7 @@ export function PostgresqlToJSONTyped(value?: Postgresql | null, ignoreDiscrimin 'name': value['name'], 'type': value['type'], - 'config': POSTGRESQLConfigToJSON(value['config']), + 'config': POSTGRESQLAuthConfigToJSON(value['config']), }; } diff --git a/src/ts/src/models/Postgresql1.ts b/src/ts/src/models/Postgresql1.ts index 633e099..9098ee7 100644 --- a/src/ts/src/models/Postgresql1.ts +++ b/src/ts/src/models/Postgresql1.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,13 +13,13 @@ */ import { mapValues } from '../runtime'; -import type { POSTGRESQLConfig } from './POSTGRESQLConfig'; +import type { POSTGRESQLAuthConfig } from './POSTGRESQLAuthConfig'; import { - POSTGRESQLConfigFromJSON, - POSTGRESQLConfigFromJSONTyped, - POSTGRESQLConfigToJSON, - POSTGRESQLConfigToJSONTyped, -} from './POSTGRESQLConfig'; + POSTGRESQLAuthConfigFromJSON, + POSTGRESQLAuthConfigFromJSONTyped, + POSTGRESQLAuthConfigToJSON, + POSTGRESQLAuthConfigToJSONTyped, +} from './POSTGRESQLAuthConfig'; /** * @@ -29,10 +29,10 @@ import { export interface Postgresql1 { /** * - * @type {POSTGRESQLConfig} + * @type {POSTGRESQLAuthConfig} * @memberof Postgresql1 */ - config?: POSTGRESQLConfig; + config?: POSTGRESQLAuthConfig; } /** @@ -52,7 +52,7 @@ export function Postgresql1FromJSONTyped(json: any, ignoreDiscriminator: boolean } return { - 'config': json['config'] == null ? undefined : POSTGRESQLConfigFromJSON(json['config']), + 'config': json['config'] == null ? undefined : POSTGRESQLAuthConfigFromJSON(json['config']), }; } @@ -67,7 +67,7 @@ export function Postgresql1ToJSONTyped(value?: Postgresql1 | null, ignoreDiscrim return { - 'config': POSTGRESQLConfigToJSON(value['config']), + 'config': POSTGRESQLAuthConfigToJSON(value['config']), }; } diff --git a/src/ts/src/models/QDRANTAuthConfig.ts b/src/ts/src/models/QDRANTAuthConfig.ts index 84f0373..933a5a5 100644 --- a/src/ts/src/models/QDRANTAuthConfig.ts +++ b/src/ts/src/models/QDRANTAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,12 +19,6 @@ import { mapValues } from '../runtime'; * @interface QDRANTAuthConfig */ export interface QDRANTAuthConfig { - /** - * Name. Example: Enter a descriptive name for your Qdrant integration - * @type {string} - * @memberof QDRANTAuthConfig - */ - name: string; /** * Host. Example: Enter your host * @type {string} @@ -43,7 +37,6 @@ export interface QDRANTAuthConfig { * Check if a given object implements the QDRANTAuthConfig interface. */ export function instanceOfQDRANTAuthConfig(value: object): value is QDRANTAuthConfig { - if (!('name' in value) || value['name'] === undefined) return false; if (!('host' in value) || value['host'] === undefined) return false; if (!('apiKey' in value) || value['apiKey'] === undefined) return false; return true; @@ -59,7 +52,6 @@ export function QDRANTAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: bo } return { - 'name': json['name'], 'host': json['host'], 'apiKey': json['api-key'], }; @@ -76,7 +68,6 @@ export function QDRANTAuthConfigToJSONTyped(value?: QDRANTAuthConfig | null, ign return { - 'name': value['name'], 'host': value['host'], 'api-key': value['apiKey'], }; diff --git a/src/ts/src/models/QDRANTConfig.ts b/src/ts/src/models/QDRANTConfig.ts index f6404d2..acc4b29 100644 --- a/src/ts/src/models/QDRANTConfig.ts +++ b/src/ts/src/models/QDRANTConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/Qdrant.ts b/src/ts/src/models/Qdrant.ts index 049a46b..cf1e10e 100644 --- a/src/ts/src/models/Qdrant.ts +++ b/src/ts/src/models/Qdrant.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,13 +13,13 @@ */ import { mapValues } from '../runtime'; -import type { QDRANTConfig } from './QDRANTConfig'; +import type { QDRANTAuthConfig } from './QDRANTAuthConfig'; import { - QDRANTConfigFromJSON, - QDRANTConfigFromJSONTyped, - QDRANTConfigToJSON, - QDRANTConfigToJSONTyped, -} from './QDRANTConfig'; + QDRANTAuthConfigFromJSON, + QDRANTAuthConfigFromJSONTyped, + QDRANTAuthConfigToJSON, + QDRANTAuthConfigToJSONTyped, +} from './QDRANTAuthConfig'; /** * @@ -41,10 +41,10 @@ export interface Qdrant { type: QdrantTypeEnum; /** * - * @type {QDRANTConfig} + * @type {QDRANTAuthConfig} * @memberof Qdrant */ - config: QDRANTConfig; + config: QDRANTAuthConfig; } @@ -79,7 +79,7 @@ export function QdrantFromJSONTyped(json: any, ignoreDiscriminator: boolean): Qd 'name': json['name'], 'type': json['type'], - 'config': QDRANTConfigFromJSON(json['config']), + 'config': QDRANTAuthConfigFromJSON(json['config']), }; } @@ -96,7 +96,7 @@ export function QdrantToJSONTyped(value?: Qdrant | null, ignoreDiscriminator: bo 'name': value['name'], 'type': value['type'], - 'config': QDRANTConfigToJSON(value['config']), + 'config': QDRANTAuthConfigToJSON(value['config']), }; } diff --git a/src/ts/src/models/Qdrant1.ts b/src/ts/src/models/Qdrant1.ts index 6b38c9f..f4a1cc7 100644 --- a/src/ts/src/models/Qdrant1.ts +++ b/src/ts/src/models/Qdrant1.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,13 +13,13 @@ */ import { mapValues } from '../runtime'; -import type { QDRANTConfig } from './QDRANTConfig'; +import type { QDRANTAuthConfig } from './QDRANTAuthConfig'; import { - QDRANTConfigFromJSON, - QDRANTConfigFromJSONTyped, - QDRANTConfigToJSON, - QDRANTConfigToJSONTyped, -} from './QDRANTConfig'; + QDRANTAuthConfigFromJSON, + QDRANTAuthConfigFromJSONTyped, + QDRANTAuthConfigToJSON, + QDRANTAuthConfigToJSONTyped, +} from './QDRANTAuthConfig'; /** * @@ -29,10 +29,10 @@ import { export interface Qdrant1 { /** * - * @type {QDRANTConfig} + * @type {QDRANTAuthConfig} * @memberof Qdrant1 */ - config?: QDRANTConfig; + config?: QDRANTAuthConfig; } /** @@ -52,7 +52,7 @@ export function Qdrant1FromJSONTyped(json: any, ignoreDiscriminator: boolean): Q } return { - 'config': json['config'] == null ? undefined : QDRANTConfigFromJSON(json['config']), + 'config': json['config'] == null ? undefined : QDRANTAuthConfigFromJSON(json['config']), }; } @@ -67,7 +67,7 @@ export function Qdrant1ToJSONTyped(value?: Qdrant1 | null, ignoreDiscriminator: return { - 'config': QDRANTConfigToJSON(value['config']), + 'config': QDRANTAuthConfigToJSON(value['config']), }; } diff --git a/src/ts/src/models/RemoveUserFromSourceConnectorRequest.ts b/src/ts/src/models/RemoveUserFromSourceConnectorRequest.ts index 46082a2..8e70ea4 100644 --- a/src/ts/src/models/RemoveUserFromSourceConnectorRequest.ts +++ b/src/ts/src/models/RemoveUserFromSourceConnectorRequest.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/RemoveUserFromSourceConnectorResponse.ts b/src/ts/src/models/RemoveUserFromSourceConnectorResponse.ts index bacdbc1..e5e52fb 100644 --- a/src/ts/src/models/RemoveUserFromSourceConnectorResponse.ts +++ b/src/ts/src/models/RemoveUserFromSourceConnectorResponse.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/RetrieveContext.ts b/src/ts/src/models/RetrieveContext.ts index 6758a6f..04df542 100644 --- a/src/ts/src/models/RetrieveContext.ts +++ b/src/ts/src/models/RetrieveContext.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/RetrieveContextMessage.ts b/src/ts/src/models/RetrieveContextMessage.ts index 6a974e1..30dfaac 100644 --- a/src/ts/src/models/RetrieveContextMessage.ts +++ b/src/ts/src/models/RetrieveContextMessage.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/RetrieveDocumentsRequest.ts b/src/ts/src/models/RetrieveDocumentsRequest.ts index 3d4fac9..c61ab58 100644 --- a/src/ts/src/models/RetrieveDocumentsRequest.ts +++ b/src/ts/src/models/RetrieveDocumentsRequest.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/RetrieveDocumentsResponse.ts b/src/ts/src/models/RetrieveDocumentsResponse.ts index 082ebb5..5ee5261 100644 --- a/src/ts/src/models/RetrieveDocumentsResponse.ts +++ b/src/ts/src/models/RetrieveDocumentsResponse.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/SHAREPOINTAuthConfig.ts b/src/ts/src/models/SHAREPOINTAuthConfig.ts index 654013e..da6f1e8 100644 --- a/src/ts/src/models/SHAREPOINTAuthConfig.ts +++ b/src/ts/src/models/SHAREPOINTAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,12 +19,6 @@ import { mapValues } from '../runtime'; * @interface SHAREPOINTAuthConfig */ export interface SHAREPOINTAuthConfig { - /** - * Name. Example: Enter a descriptive name - * @type {string} - * @memberof SHAREPOINTAuthConfig - */ - name: string; /** * Client Id. Example: Enter Client Id * @type {string} @@ -49,7 +43,6 @@ export interface SHAREPOINTAuthConfig { * Check if a given object implements the SHAREPOINTAuthConfig interface. */ export function instanceOfSHAREPOINTAuthConfig(value: object): value is SHAREPOINTAuthConfig { - if (!('name' in value) || value['name'] === undefined) return false; if (!('msClientId' in value) || value['msClientId'] === undefined) return false; if (!('msTenantId' in value) || value['msTenantId'] === undefined) return false; if (!('msClientSecret' in value) || value['msClientSecret'] === undefined) return false; @@ -66,7 +59,6 @@ export function SHAREPOINTAuthConfigFromJSONTyped(json: any, ignoreDiscriminator } return { - 'name': json['name'], 'msClientId': json['ms-client-id'], 'msTenantId': json['ms-tenant-id'], 'msClientSecret': json['ms-client-secret'], @@ -84,7 +76,6 @@ export function SHAREPOINTAuthConfigToJSONTyped(value?: SHAREPOINTAuthConfig | n return { - 'name': value['name'], 'ms-client-id': value['msClientId'], 'ms-tenant-id': value['msTenantId'], 'ms-client-secret': value['msClientSecret'], diff --git a/src/ts/src/models/SHAREPOINTConfig.ts b/src/ts/src/models/SHAREPOINTConfig.ts index 68a92fe..a7c41f2 100644 --- a/src/ts/src/models/SHAREPOINTConfig.ts +++ b/src/ts/src/models/SHAREPOINTConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -27,10 +27,10 @@ export interface SHAREPOINTConfig { fileExtensions: SHAREPOINTConfigFileExtensionsEnum; /** * Site Name(s). Example: Filter by site name. All sites if empty. - * @type {string} + * @type {Array} * @memberof SHAREPOINTConfig */ - sites?: string; + sites?: Array; /** * Read starting from this folder (optional). Example: Enter Folder path: /exampleFolder/subFolder * @type {string} @@ -51,9 +51,9 @@ export const SHAREPOINTConfigFileExtensionsEnum = { Emlmsg: 'eml,msg', Txt: 'txt', Htmlhtm: 'html,htm', + Jpgjpegpngwebpsvggif: 'jpg,jpeg,png,webp,svg,gif', Json: 'json', - Csv: 'csv', - Jpgjpegpngwebpsvggif: 'jpg,jpeg,png,webp,svg,gif' + Csv: 'csv' } as const; export type SHAREPOINTConfigFileExtensionsEnum = typeof SHAREPOINTConfigFileExtensionsEnum[keyof typeof SHAREPOINTConfigFileExtensionsEnum]; diff --git a/src/ts/src/models/SINGLESTOREAuthConfig.ts b/src/ts/src/models/SINGLESTOREAuthConfig.ts index 23086bd..94eb8f7 100644 --- a/src/ts/src/models/SINGLESTOREAuthConfig.ts +++ b/src/ts/src/models/SINGLESTOREAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,12 +19,6 @@ import { mapValues } from '../runtime'; * @interface SINGLESTOREAuthConfig */ export interface SINGLESTOREAuthConfig { - /** - * Name. Example: Enter a descriptive name for your SingleStore integration - * @type {string} - * @memberof SINGLESTOREAuthConfig - */ - name: string; /** * Host. Example: Enter the host of the deployment * @type {string} @@ -61,7 +55,6 @@ export interface SINGLESTOREAuthConfig { * Check if a given object implements the SINGLESTOREAuthConfig interface. */ export function instanceOfSINGLESTOREAuthConfig(value: object): value is SINGLESTOREAuthConfig { - if (!('name' in value) || value['name'] === undefined) return false; if (!('host' in value) || value['host'] === undefined) return false; if (!('port' in value) || value['port'] === undefined) return false; if (!('database' in value) || value['database'] === undefined) return false; @@ -80,7 +73,6 @@ export function SINGLESTOREAuthConfigFromJSONTyped(json: any, ignoreDiscriminato } return { - 'name': json['name'], 'host': json['host'], 'port': json['port'], 'database': json['database'], @@ -100,7 +92,6 @@ export function SINGLESTOREAuthConfigToJSONTyped(value?: SINGLESTOREAuthConfig | return { - 'name': value['name'], 'host': value['host'], 'port': value['port'], 'database': value['database'], diff --git a/src/ts/src/models/SINGLESTOREConfig.ts b/src/ts/src/models/SINGLESTOREConfig.ts index 12aa469..7d2101b 100644 --- a/src/ts/src/models/SINGLESTOREConfig.ts +++ b/src/ts/src/models/SINGLESTOREConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/SUPABASEAuthConfig.ts b/src/ts/src/models/SUPABASEAuthConfig.ts index 1b4a017..30328f0 100644 --- a/src/ts/src/models/SUPABASEAuthConfig.ts +++ b/src/ts/src/models/SUPABASEAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,12 +19,6 @@ import { mapValues } from '../runtime'; * @interface SUPABASEAuthConfig */ export interface SUPABASEAuthConfig { - /** - * Name. Example: Enter a descriptive name for your Supabase integration - * @type {string} - * @memberof SUPABASEAuthConfig - */ - name: string; /** * Host. Example: Enter the host of the deployment * @type {string} @@ -61,7 +55,6 @@ export interface SUPABASEAuthConfig { * Check if a given object implements the SUPABASEAuthConfig interface. */ export function instanceOfSUPABASEAuthConfig(value: object): value is SUPABASEAuthConfig { - if (!('name' in value) || value['name'] === undefined) return false; if (!('host' in value) || value['host'] === undefined) return false; if (!('database' in value) || value['database'] === undefined) return false; if (!('username' in value) || value['username'] === undefined) return false; @@ -79,7 +72,6 @@ export function SUPABASEAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: } return { - 'name': json['name'], 'host': json['host'], 'port': json['port'] == null ? undefined : json['port'], 'database': json['database'], @@ -99,7 +91,6 @@ export function SUPABASEAuthConfigToJSONTyped(value?: SUPABASEAuthConfig | null, return { - 'name': value['name'], 'host': value['host'], 'port': value['port'], 'database': value['database'], diff --git a/src/ts/src/models/SUPABASEConfig.ts b/src/ts/src/models/SUPABASEConfig.ts index e484dcf..db01f13 100644 --- a/src/ts/src/models/SUPABASEConfig.ts +++ b/src/ts/src/models/SUPABASEConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/ScheduleSchema.ts b/src/ts/src/models/ScheduleSchema.ts index b638f2c..251df9c 100644 --- a/src/ts/src/models/ScheduleSchema.ts +++ b/src/ts/src/models/ScheduleSchema.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/ScheduleSchemaType.ts b/src/ts/src/models/ScheduleSchemaType.ts index cd0822e..64a6077 100644 --- a/src/ts/src/models/ScheduleSchemaType.ts +++ b/src/ts/src/models/ScheduleSchemaType.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/Sharepoint.ts b/src/ts/src/models/Sharepoint.ts index 6a2d661..f1b9907 100644 --- a/src/ts/src/models/Sharepoint.ts +++ b/src/ts/src/models/Sharepoint.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,13 +13,13 @@ */ import { mapValues } from '../runtime'; -import type { SHAREPOINTConfig } from './SHAREPOINTConfig'; +import type { SHAREPOINTAuthConfig } from './SHAREPOINTAuthConfig'; import { - SHAREPOINTConfigFromJSON, - SHAREPOINTConfigFromJSONTyped, - SHAREPOINTConfigToJSON, - SHAREPOINTConfigToJSONTyped, -} from './SHAREPOINTConfig'; + SHAREPOINTAuthConfigFromJSON, + SHAREPOINTAuthConfigFromJSONTyped, + SHAREPOINTAuthConfigToJSON, + SHAREPOINTAuthConfigToJSONTyped, +} from './SHAREPOINTAuthConfig'; /** * @@ -41,10 +41,10 @@ export interface Sharepoint { type: SharepointTypeEnum; /** * - * @type {SHAREPOINTConfig} + * @type {SHAREPOINTAuthConfig} * @memberof Sharepoint */ - config: SHAREPOINTConfig; + config: SHAREPOINTAuthConfig; } @@ -79,7 +79,7 @@ export function SharepointFromJSONTyped(json: any, ignoreDiscriminator: boolean) 'name': json['name'], 'type': json['type'], - 'config': SHAREPOINTConfigFromJSON(json['config']), + 'config': SHAREPOINTAuthConfigFromJSON(json['config']), }; } @@ -96,7 +96,7 @@ export function SharepointToJSONTyped(value?: Sharepoint | null, ignoreDiscrimin 'name': value['name'], 'type': value['type'], - 'config': SHAREPOINTConfigToJSON(value['config']), + 'config': SHAREPOINTAuthConfigToJSON(value['config']), }; } diff --git a/src/ts/src/models/Sharepoint1.ts b/src/ts/src/models/Sharepoint1.ts index f4a607d..ed42b30 100644 --- a/src/ts/src/models/Sharepoint1.ts +++ b/src/ts/src/models/Sharepoint1.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,13 +13,13 @@ */ import { mapValues } from '../runtime'; -import type { SHAREPOINTConfig } from './SHAREPOINTConfig'; +import type { SHAREPOINTAuthConfig } from './SHAREPOINTAuthConfig'; import { - SHAREPOINTConfigFromJSON, - SHAREPOINTConfigFromJSONTyped, - SHAREPOINTConfigToJSON, - SHAREPOINTConfigToJSONTyped, -} from './SHAREPOINTConfig'; + SHAREPOINTAuthConfigFromJSON, + SHAREPOINTAuthConfigFromJSONTyped, + SHAREPOINTAuthConfigToJSON, + SHAREPOINTAuthConfigToJSONTyped, +} from './SHAREPOINTAuthConfig'; /** * @@ -29,10 +29,10 @@ import { export interface Sharepoint1 { /** * - * @type {SHAREPOINTConfig} + * @type {SHAREPOINTAuthConfig} * @memberof Sharepoint1 */ - config?: SHAREPOINTConfig; + config?: SHAREPOINTAuthConfig; } /** @@ -52,7 +52,7 @@ export function Sharepoint1FromJSONTyped(json: any, ignoreDiscriminator: boolean } return { - 'config': json['config'] == null ? undefined : SHAREPOINTConfigFromJSON(json['config']), + 'config': json['config'] == null ? undefined : SHAREPOINTAuthConfigFromJSON(json['config']), }; } @@ -67,7 +67,7 @@ export function Sharepoint1ToJSONTyped(value?: Sharepoint1 | null, ignoreDiscrim return { - 'config': SHAREPOINTConfigToJSON(value['config']), + 'config': SHAREPOINTAuthConfigToJSON(value['config']), }; } diff --git a/src/ts/src/models/Singlestore.ts b/src/ts/src/models/Singlestore.ts index 8f986b4..9dc9679 100644 --- a/src/ts/src/models/Singlestore.ts +++ b/src/ts/src/models/Singlestore.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,13 +13,13 @@ */ import { mapValues } from '../runtime'; -import type { SINGLESTOREConfig } from './SINGLESTOREConfig'; +import type { SINGLESTOREAuthConfig } from './SINGLESTOREAuthConfig'; import { - SINGLESTOREConfigFromJSON, - SINGLESTOREConfigFromJSONTyped, - SINGLESTOREConfigToJSON, - SINGLESTOREConfigToJSONTyped, -} from './SINGLESTOREConfig'; + SINGLESTOREAuthConfigFromJSON, + SINGLESTOREAuthConfigFromJSONTyped, + SINGLESTOREAuthConfigToJSON, + SINGLESTOREAuthConfigToJSONTyped, +} from './SINGLESTOREAuthConfig'; /** * @@ -41,10 +41,10 @@ export interface Singlestore { type: SinglestoreTypeEnum; /** * - * @type {SINGLESTOREConfig} + * @type {SINGLESTOREAuthConfig} * @memberof Singlestore */ - config: SINGLESTOREConfig; + config: SINGLESTOREAuthConfig; } @@ -79,7 +79,7 @@ export function SinglestoreFromJSONTyped(json: any, ignoreDiscriminator: boolean 'name': json['name'], 'type': json['type'], - 'config': SINGLESTOREConfigFromJSON(json['config']), + 'config': SINGLESTOREAuthConfigFromJSON(json['config']), }; } @@ -96,7 +96,7 @@ export function SinglestoreToJSONTyped(value?: Singlestore | null, ignoreDiscrim 'name': value['name'], 'type': value['type'], - 'config': SINGLESTOREConfigToJSON(value['config']), + 'config': SINGLESTOREAuthConfigToJSON(value['config']), }; } diff --git a/src/ts/src/models/Singlestore1.ts b/src/ts/src/models/Singlestore1.ts index 1087f9c..331670c 100644 --- a/src/ts/src/models/Singlestore1.ts +++ b/src/ts/src/models/Singlestore1.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,13 +13,13 @@ */ import { mapValues } from '../runtime'; -import type { SINGLESTOREConfig } from './SINGLESTOREConfig'; +import type { SINGLESTOREAuthConfig } from './SINGLESTOREAuthConfig'; import { - SINGLESTOREConfigFromJSON, - SINGLESTOREConfigFromJSONTyped, - SINGLESTOREConfigToJSON, - SINGLESTOREConfigToJSONTyped, -} from './SINGLESTOREConfig'; + SINGLESTOREAuthConfigFromJSON, + SINGLESTOREAuthConfigFromJSONTyped, + SINGLESTOREAuthConfigToJSON, + SINGLESTOREAuthConfigToJSONTyped, +} from './SINGLESTOREAuthConfig'; /** * @@ -29,10 +29,10 @@ import { export interface Singlestore1 { /** * - * @type {SINGLESTOREConfig} + * @type {SINGLESTOREAuthConfig} * @memberof Singlestore1 */ - config?: SINGLESTOREConfig; + config?: SINGLESTOREAuthConfig; } /** @@ -52,7 +52,7 @@ export function Singlestore1FromJSONTyped(json: any, ignoreDiscriminator: boolea } return { - 'config': json['config'] == null ? undefined : SINGLESTOREConfigFromJSON(json['config']), + 'config': json['config'] == null ? undefined : SINGLESTOREAuthConfigFromJSON(json['config']), }; } @@ -67,7 +67,7 @@ export function Singlestore1ToJSONTyped(value?: Singlestore1 | null, ignoreDiscr return { - 'config': SINGLESTOREConfigToJSON(value['config']), + 'config': SINGLESTOREAuthConfigToJSON(value['config']), }; } diff --git a/src/ts/src/models/SourceConnector.ts b/src/ts/src/models/SourceConnector.ts index 8b954cf..aa8d922 100644 --- a/src/ts/src/models/SourceConnector.ts +++ b/src/ts/src/models/SourceConnector.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/SourceConnectorInput.ts b/src/ts/src/models/SourceConnectorInput.ts index 139f675..78a0af8 100644 --- a/src/ts/src/models/SourceConnectorInput.ts +++ b/src/ts/src/models/SourceConnectorInput.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/SourceConnectorInputConfig.ts b/src/ts/src/models/SourceConnectorInputConfig.ts index 1d655ef..fddcd84 100644 --- a/src/ts/src/models/SourceConnectorInputConfig.ts +++ b/src/ts/src/models/SourceConnectorInputConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/SourceConnectorType.ts b/src/ts/src/models/SourceConnectorType.ts index cbf0ef1..8c29063 100644 --- a/src/ts/src/models/SourceConnectorType.ts +++ b/src/ts/src/models/SourceConnectorType.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/StartDeepResearchRequest.ts b/src/ts/src/models/StartDeepResearchRequest.ts index 54ed2ea..63c7b09 100644 --- a/src/ts/src/models/StartDeepResearchRequest.ts +++ b/src/ts/src/models/StartDeepResearchRequest.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/StartDeepResearchResponse.ts b/src/ts/src/models/StartDeepResearchResponse.ts index 77e6a99..8efbd2d 100644 --- a/src/ts/src/models/StartDeepResearchResponse.ts +++ b/src/ts/src/models/StartDeepResearchResponse.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/StartExtractionRequest.ts b/src/ts/src/models/StartExtractionRequest.ts index ca30f28..42307e7 100644 --- a/src/ts/src/models/StartExtractionRequest.ts +++ b/src/ts/src/models/StartExtractionRequest.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/StartExtractionResponse.ts b/src/ts/src/models/StartExtractionResponse.ts index 3e7a6b8..5ca8bff 100644 --- a/src/ts/src/models/StartExtractionResponse.ts +++ b/src/ts/src/models/StartExtractionResponse.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/StartFileUploadRequest.ts b/src/ts/src/models/StartFileUploadRequest.ts index c2238da..377c744 100644 --- a/src/ts/src/models/StartFileUploadRequest.ts +++ b/src/ts/src/models/StartFileUploadRequest.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/StartFileUploadResponse.ts b/src/ts/src/models/StartFileUploadResponse.ts index f4abdda..bd06bfb 100644 --- a/src/ts/src/models/StartFileUploadResponse.ts +++ b/src/ts/src/models/StartFileUploadResponse.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/StartFileUploadToConnectorRequest.ts b/src/ts/src/models/StartFileUploadToConnectorRequest.ts index 2a7d705..62f594d 100644 --- a/src/ts/src/models/StartFileUploadToConnectorRequest.ts +++ b/src/ts/src/models/StartFileUploadToConnectorRequest.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/StartFileUploadToConnectorResponse.ts b/src/ts/src/models/StartFileUploadToConnectorResponse.ts index 3cb455b..47be49a 100644 --- a/src/ts/src/models/StartFileUploadToConnectorResponse.ts +++ b/src/ts/src/models/StartFileUploadToConnectorResponse.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/StartPipelineResponse.ts b/src/ts/src/models/StartPipelineResponse.ts index 9d83fc1..1061576 100644 --- a/src/ts/src/models/StartPipelineResponse.ts +++ b/src/ts/src/models/StartPipelineResponse.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/StopPipelineResponse.ts b/src/ts/src/models/StopPipelineResponse.ts index a913818..6cf0f63 100644 --- a/src/ts/src/models/StopPipelineResponse.ts +++ b/src/ts/src/models/StopPipelineResponse.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/Supabase.ts b/src/ts/src/models/Supabase.ts index 748c9a4..67156ea 100644 --- a/src/ts/src/models/Supabase.ts +++ b/src/ts/src/models/Supabase.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,13 +13,13 @@ */ import { mapValues } from '../runtime'; -import type { SUPABASEConfig } from './SUPABASEConfig'; +import type { SUPABASEAuthConfig } from './SUPABASEAuthConfig'; import { - SUPABASEConfigFromJSON, - SUPABASEConfigFromJSONTyped, - SUPABASEConfigToJSON, - SUPABASEConfigToJSONTyped, -} from './SUPABASEConfig'; + SUPABASEAuthConfigFromJSON, + SUPABASEAuthConfigFromJSONTyped, + SUPABASEAuthConfigToJSON, + SUPABASEAuthConfigToJSONTyped, +} from './SUPABASEAuthConfig'; /** * @@ -41,10 +41,10 @@ export interface Supabase { type: SupabaseTypeEnum; /** * - * @type {SUPABASEConfig} + * @type {SUPABASEAuthConfig} * @memberof Supabase */ - config: SUPABASEConfig; + config: SUPABASEAuthConfig; } @@ -79,7 +79,7 @@ export function SupabaseFromJSONTyped(json: any, ignoreDiscriminator: boolean): 'name': json['name'], 'type': json['type'], - 'config': SUPABASEConfigFromJSON(json['config']), + 'config': SUPABASEAuthConfigFromJSON(json['config']), }; } @@ -96,7 +96,7 @@ export function SupabaseToJSONTyped(value?: Supabase | null, ignoreDiscriminator 'name': value['name'], 'type': value['type'], - 'config': SUPABASEConfigToJSON(value['config']), + 'config': SUPABASEAuthConfigToJSON(value['config']), }; } diff --git a/src/ts/src/models/Supabase1.ts b/src/ts/src/models/Supabase1.ts index 74f235b..03dcef8 100644 --- a/src/ts/src/models/Supabase1.ts +++ b/src/ts/src/models/Supabase1.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,13 +13,13 @@ */ import { mapValues } from '../runtime'; -import type { SUPABASEConfig } from './SUPABASEConfig'; +import type { SUPABASEAuthConfig } from './SUPABASEAuthConfig'; import { - SUPABASEConfigFromJSON, - SUPABASEConfigFromJSONTyped, - SUPABASEConfigToJSON, - SUPABASEConfigToJSONTyped, -} from './SUPABASEConfig'; + SUPABASEAuthConfigFromJSON, + SUPABASEAuthConfigFromJSONTyped, + SUPABASEAuthConfigToJSON, + SUPABASEAuthConfigToJSONTyped, +} from './SUPABASEAuthConfig'; /** * @@ -29,10 +29,10 @@ import { export interface Supabase1 { /** * - * @type {SUPABASEConfig} + * @type {SUPABASEAuthConfig} * @memberof Supabase1 */ - config?: SUPABASEConfig; + config?: SUPABASEAuthConfig; } /** @@ -52,7 +52,7 @@ export function Supabase1FromJSONTyped(json: any, ignoreDiscriminator: boolean): } return { - 'config': json['config'] == null ? undefined : SUPABASEConfigFromJSON(json['config']), + 'config': json['config'] == null ? undefined : SUPABASEAuthConfigFromJSON(json['config']), }; } @@ -67,7 +67,7 @@ export function Supabase1ToJSONTyped(value?: Supabase1 | null, ignoreDiscriminat return { - 'config': SUPABASEConfigToJSON(value['config']), + 'config': SUPABASEAuthConfigToJSON(value['config']), }; } diff --git a/src/ts/src/models/TURBOPUFFERAuthConfig.ts b/src/ts/src/models/TURBOPUFFERAuthConfig.ts index 8344e8c..07ec13e 100644 --- a/src/ts/src/models/TURBOPUFFERAuthConfig.ts +++ b/src/ts/src/models/TURBOPUFFERAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,12 +19,6 @@ import { mapValues } from '../runtime'; * @interface TURBOPUFFERAuthConfig */ export interface TURBOPUFFERAuthConfig { - /** - * Name. Example: Enter a descriptive name for your Turbopuffer integration - * @type {string} - * @memberof TURBOPUFFERAuthConfig - */ - name: string; /** * API Key. Example: Enter your API key * @type {string} @@ -37,7 +31,6 @@ export interface TURBOPUFFERAuthConfig { * Check if a given object implements the TURBOPUFFERAuthConfig interface. */ export function instanceOfTURBOPUFFERAuthConfig(value: object): value is TURBOPUFFERAuthConfig { - if (!('name' in value) || value['name'] === undefined) return false; if (!('apiKey' in value) || value['apiKey'] === undefined) return false; return true; } @@ -52,7 +45,6 @@ export function TURBOPUFFERAuthConfigFromJSONTyped(json: any, ignoreDiscriminato } return { - 'name': json['name'], 'apiKey': json['api-key'], }; } @@ -68,7 +60,6 @@ export function TURBOPUFFERAuthConfigToJSONTyped(value?: TURBOPUFFERAuthConfig | return { - 'name': value['name'], 'api-key': value['apiKey'], }; } diff --git a/src/ts/src/models/TURBOPUFFERConfig.ts b/src/ts/src/models/TURBOPUFFERConfig.ts index 5dbe48e..ca12cf6 100644 --- a/src/ts/src/models/TURBOPUFFERConfig.ts +++ b/src/ts/src/models/TURBOPUFFERConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/Turbopuffer.ts b/src/ts/src/models/Turbopuffer.ts index 6f4bda8..0cf2b55 100644 --- a/src/ts/src/models/Turbopuffer.ts +++ b/src/ts/src/models/Turbopuffer.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,13 +13,13 @@ */ import { mapValues } from '../runtime'; -import type { TURBOPUFFERConfig } from './TURBOPUFFERConfig'; +import type { TURBOPUFFERAuthConfig } from './TURBOPUFFERAuthConfig'; import { - TURBOPUFFERConfigFromJSON, - TURBOPUFFERConfigFromJSONTyped, - TURBOPUFFERConfigToJSON, - TURBOPUFFERConfigToJSONTyped, -} from './TURBOPUFFERConfig'; + TURBOPUFFERAuthConfigFromJSON, + TURBOPUFFERAuthConfigFromJSONTyped, + TURBOPUFFERAuthConfigToJSON, + TURBOPUFFERAuthConfigToJSONTyped, +} from './TURBOPUFFERAuthConfig'; /** * @@ -41,10 +41,10 @@ export interface Turbopuffer { type: TurbopufferTypeEnum; /** * - * @type {TURBOPUFFERConfig} + * @type {TURBOPUFFERAuthConfig} * @memberof Turbopuffer */ - config: TURBOPUFFERConfig; + config: TURBOPUFFERAuthConfig; } @@ -79,7 +79,7 @@ export function TurbopufferFromJSONTyped(json: any, ignoreDiscriminator: boolean 'name': json['name'], 'type': json['type'], - 'config': TURBOPUFFERConfigFromJSON(json['config']), + 'config': TURBOPUFFERAuthConfigFromJSON(json['config']), }; } @@ -96,7 +96,7 @@ export function TurbopufferToJSONTyped(value?: Turbopuffer | null, ignoreDiscrim 'name': value['name'], 'type': value['type'], - 'config': TURBOPUFFERConfigToJSON(value['config']), + 'config': TURBOPUFFERAuthConfigToJSON(value['config']), }; } diff --git a/src/ts/src/models/Turbopuffer1.ts b/src/ts/src/models/Turbopuffer1.ts index 754ee3a..c8d966c 100644 --- a/src/ts/src/models/Turbopuffer1.ts +++ b/src/ts/src/models/Turbopuffer1.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,13 +13,13 @@ */ import { mapValues } from '../runtime'; -import type { TURBOPUFFERConfig } from './TURBOPUFFERConfig'; +import type { TURBOPUFFERAuthConfig } from './TURBOPUFFERAuthConfig'; import { - TURBOPUFFERConfigFromJSON, - TURBOPUFFERConfigFromJSONTyped, - TURBOPUFFERConfigToJSON, - TURBOPUFFERConfigToJSONTyped, -} from './TURBOPUFFERConfig'; + TURBOPUFFERAuthConfigFromJSON, + TURBOPUFFERAuthConfigFromJSONTyped, + TURBOPUFFERAuthConfigToJSON, + TURBOPUFFERAuthConfigToJSONTyped, +} from './TURBOPUFFERAuthConfig'; /** * @@ -29,10 +29,10 @@ import { export interface Turbopuffer1 { /** * - * @type {TURBOPUFFERConfig} + * @type {TURBOPUFFERAuthConfig} * @memberof Turbopuffer1 */ - config?: TURBOPUFFERConfig; + config?: TURBOPUFFERAuthConfig; } /** @@ -52,7 +52,7 @@ export function Turbopuffer1FromJSONTyped(json: any, ignoreDiscriminator: boolea } return { - 'config': json['config'] == null ? undefined : TURBOPUFFERConfigFromJSON(json['config']), + 'config': json['config'] == null ? undefined : TURBOPUFFERAuthConfigFromJSON(json['config']), }; } @@ -67,7 +67,7 @@ export function Turbopuffer1ToJSONTyped(value?: Turbopuffer1 | null, ignoreDiscr return { - 'config': TURBOPUFFERConfigToJSON(value['config']), + 'config': TURBOPUFFERAuthConfigToJSON(value['config']), }; } diff --git a/src/ts/src/models/UpdateAIPlatformConnectorRequest.ts b/src/ts/src/models/UpdateAIPlatformConnectorRequest.ts index 0c77fb8..6e53829 100644 --- a/src/ts/src/models/UpdateAIPlatformConnectorRequest.ts +++ b/src/ts/src/models/UpdateAIPlatformConnectorRequest.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/UpdateAIPlatformConnectorResponse.ts b/src/ts/src/models/UpdateAIPlatformConnectorResponse.ts index f3440a8..3f6d338 100644 --- a/src/ts/src/models/UpdateAIPlatformConnectorResponse.ts +++ b/src/ts/src/models/UpdateAIPlatformConnectorResponse.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/UpdateDestinationConnectorRequest.ts b/src/ts/src/models/UpdateDestinationConnectorRequest.ts index 4ffc63a..7b82643 100644 --- a/src/ts/src/models/UpdateDestinationConnectorRequest.ts +++ b/src/ts/src/models/UpdateDestinationConnectorRequest.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/UpdateDestinationConnectorResponse.ts b/src/ts/src/models/UpdateDestinationConnectorResponse.ts index c912a24..f10e7f2 100644 --- a/src/ts/src/models/UpdateDestinationConnectorResponse.ts +++ b/src/ts/src/models/UpdateDestinationConnectorResponse.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/UpdateSourceConnectorRequest.ts b/src/ts/src/models/UpdateSourceConnectorRequest.ts index dadfa1b..def495e 100644 --- a/src/ts/src/models/UpdateSourceConnectorRequest.ts +++ b/src/ts/src/models/UpdateSourceConnectorRequest.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/UpdateSourceConnectorResponse.ts b/src/ts/src/models/UpdateSourceConnectorResponse.ts index 86bbc41..0d35d75 100644 --- a/src/ts/src/models/UpdateSourceConnectorResponse.ts +++ b/src/ts/src/models/UpdateSourceConnectorResponse.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/UpdateSourceConnectorResponseData.ts b/src/ts/src/models/UpdateSourceConnectorResponseData.ts index 63f9048..365fdf8 100644 --- a/src/ts/src/models/UpdateSourceConnectorResponseData.ts +++ b/src/ts/src/models/UpdateSourceConnectorResponseData.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/UpdateUserInSourceConnectorRequest.ts b/src/ts/src/models/UpdateUserInSourceConnectorRequest.ts index 151436e..be0214f 100644 --- a/src/ts/src/models/UpdateUserInSourceConnectorRequest.ts +++ b/src/ts/src/models/UpdateUserInSourceConnectorRequest.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/UpdateUserInSourceConnectorResponse.ts b/src/ts/src/models/UpdateUserInSourceConnectorResponse.ts index 5ab0099..25e6f98 100644 --- a/src/ts/src/models/UpdateUserInSourceConnectorResponse.ts +++ b/src/ts/src/models/UpdateUserInSourceConnectorResponse.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/UpdatedAIPlatformConnectorData.ts b/src/ts/src/models/UpdatedAIPlatformConnectorData.ts index 3b41e24..07dbf84 100644 --- a/src/ts/src/models/UpdatedAIPlatformConnectorData.ts +++ b/src/ts/src/models/UpdatedAIPlatformConnectorData.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,13 +13,13 @@ */ import { mapValues } from '../runtime'; -import type { AIPlatform } from './AIPlatform'; +import type { AIPlatformConnector } from './AIPlatformConnector'; import { - AIPlatformFromJSON, - AIPlatformFromJSONTyped, - AIPlatformToJSON, - AIPlatformToJSONTyped, -} from './AIPlatform'; + AIPlatformConnectorFromJSON, + AIPlatformConnectorFromJSONTyped, + AIPlatformConnectorToJSON, + AIPlatformConnectorToJSONTyped, +} from './AIPlatformConnector'; /** * @@ -29,10 +29,10 @@ import { export interface UpdatedAIPlatformConnectorData { /** * - * @type {AIPlatform} + * @type {AIPlatformConnector} * @memberof UpdatedAIPlatformConnectorData */ - updatedConnector: AIPlatform; + updatedConnector: AIPlatformConnector; /** * * @type {Array} @@ -59,7 +59,7 @@ export function UpdatedAIPlatformConnectorDataFromJSONTyped(json: any, ignoreDis } return { - 'updatedConnector': AIPlatformFromJSON(json['updatedConnector']), + 'updatedConnector': AIPlatformConnectorFromJSON(json['updatedConnector']), 'pipelineIds': json['pipelineIds'] == null ? undefined : json['pipelineIds'], }; } @@ -75,7 +75,7 @@ export function UpdatedAIPlatformConnectorDataToJSONTyped(value?: UpdatedAIPlatf return { - 'updatedConnector': AIPlatformToJSON(value['updatedConnector']), + 'updatedConnector': AIPlatformConnectorToJSON(value['updatedConnector']), 'pipelineIds': value['pipelineIds'], }; } diff --git a/src/ts/src/models/UpdatedDestinationConnectorData.ts b/src/ts/src/models/UpdatedDestinationConnectorData.ts index 5f8ceb8..031c5d6 100644 --- a/src/ts/src/models/UpdatedDestinationConnectorData.ts +++ b/src/ts/src/models/UpdatedDestinationConnectorData.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/UploadFile.ts b/src/ts/src/models/UploadFile.ts index 68d7ccc..70b1102 100644 --- a/src/ts/src/models/UploadFile.ts +++ b/src/ts/src/models/UploadFile.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/VERTEXAuthConfig.ts b/src/ts/src/models/VERTEXAuthConfig.ts index 69512f3..7af4284 100644 --- a/src/ts/src/models/VERTEXAuthConfig.ts +++ b/src/ts/src/models/VERTEXAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,12 +19,6 @@ import { mapValues } from '../runtime'; * @interface VERTEXAuthConfig */ export interface VERTEXAuthConfig { - /** - * Name. Example: Enter a descriptive name for your Google Vertex AI integration - * @type {string} - * @memberof VERTEXAuthConfig - */ - name: string; /** * Service Account Json. Example: Enter the contents of your Google Vertex AI Service Account JSON file * @type {string} @@ -43,7 +37,6 @@ export interface VERTEXAuthConfig { * Check if a given object implements the VERTEXAuthConfig interface. */ export function instanceOfVERTEXAuthConfig(value: object): value is VERTEXAuthConfig { - if (!('name' in value) || value['name'] === undefined) return false; if (!('key' in value) || value['key'] === undefined) return false; if (!('region' in value) || value['region'] === undefined) return false; return true; @@ -59,7 +52,6 @@ export function VERTEXAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: bo } return { - 'name': json['name'], 'key': json['key'], 'region': json['region'], }; @@ -76,7 +68,6 @@ export function VERTEXAuthConfigToJSONTyped(value?: VERTEXAuthConfig | null, ign return { - 'name': value['name'], 'key': value['key'], 'region': value['region'], }; diff --git a/src/ts/src/models/VOYAGEAuthConfig.ts b/src/ts/src/models/VOYAGEAuthConfig.ts index 78d42fe..dc21204 100644 --- a/src/ts/src/models/VOYAGEAuthConfig.ts +++ b/src/ts/src/models/VOYAGEAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,12 +19,6 @@ import { mapValues } from '../runtime'; * @interface VOYAGEAuthConfig */ export interface VOYAGEAuthConfig { - /** - * Name. Example: Enter a descriptive name for your Voyage AI integration - * @type {string} - * @memberof VOYAGEAuthConfig - */ - name: string; /** * API Key. Example: Enter your Voyage AI API Key * @type {string} @@ -37,7 +31,6 @@ export interface VOYAGEAuthConfig { * Check if a given object implements the VOYAGEAuthConfig interface. */ export function instanceOfVOYAGEAuthConfig(value: object): value is VOYAGEAuthConfig { - if (!('name' in value) || value['name'] === undefined) return false; if (!('key' in value) || value['key'] === undefined) return false; return true; } @@ -52,7 +45,6 @@ export function VOYAGEAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: bo } return { - 'name': json['name'], 'key': json['key'], }; } @@ -68,7 +60,6 @@ export function VOYAGEAuthConfigToJSONTyped(value?: VOYAGEAuthConfig | null, ign return { - 'name': value['name'], 'key': value['key'], }; } diff --git a/src/ts/src/models/Vertex.ts b/src/ts/src/models/Vertex.ts index 40e15db..f17dd62 100644 --- a/src/ts/src/models/Vertex.ts +++ b/src/ts/src/models/Vertex.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/Vertex1.ts b/src/ts/src/models/Vertex1.ts index 9fadceb..3c6937e 100644 --- a/src/ts/src/models/Vertex1.ts +++ b/src/ts/src/models/Vertex1.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/Voyage.ts b/src/ts/src/models/Voyage.ts index e119210..2aeba19 100644 --- a/src/ts/src/models/Voyage.ts +++ b/src/ts/src/models/Voyage.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/Voyage1.ts b/src/ts/src/models/Voyage1.ts index 8aa65ac..422cb0e 100644 --- a/src/ts/src/models/Voyage1.ts +++ b/src/ts/src/models/Voyage1.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/WEAVIATEAuthConfig.ts b/src/ts/src/models/WEAVIATEAuthConfig.ts index 0397d38..3bf9654 100644 --- a/src/ts/src/models/WEAVIATEAuthConfig.ts +++ b/src/ts/src/models/WEAVIATEAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,12 +19,6 @@ import { mapValues } from '../runtime'; * @interface WEAVIATEAuthConfig */ export interface WEAVIATEAuthConfig { - /** - * Name. Example: Enter a descriptive name for your Weaviate integration - * @type {string} - * @memberof WEAVIATEAuthConfig - */ - name: string; /** * Endpoint. Example: Enter your Weaviate Cluster REST Endpoint * @type {string} @@ -43,7 +37,6 @@ export interface WEAVIATEAuthConfig { * Check if a given object implements the WEAVIATEAuthConfig interface. */ export function instanceOfWEAVIATEAuthConfig(value: object): value is WEAVIATEAuthConfig { - if (!('name' in value) || value['name'] === undefined) return false; if (!('host' in value) || value['host'] === undefined) return false; if (!('apiKey' in value) || value['apiKey'] === undefined) return false; return true; @@ -59,7 +52,6 @@ export function WEAVIATEAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: } return { - 'name': json['name'], 'host': json['host'], 'apiKey': json['api-key'], }; @@ -76,7 +68,6 @@ export function WEAVIATEAuthConfigToJSONTyped(value?: WEAVIATEAuthConfig | null, return { - 'name': value['name'], 'host': value['host'], 'api-key': value['apiKey'], }; diff --git a/src/ts/src/models/WEAVIATEConfig.ts b/src/ts/src/models/WEAVIATEConfig.ts index 36c6157..010b5d6 100644 --- a/src/ts/src/models/WEAVIATEConfig.ts +++ b/src/ts/src/models/WEAVIATEConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/ts/src/models/WEBCRAWLERAuthConfig.ts b/src/ts/src/models/WEBCRAWLERAuthConfig.ts index da6bdf0..6d83a68 100644 --- a/src/ts/src/models/WEBCRAWLERAuthConfig.ts +++ b/src/ts/src/models/WEBCRAWLERAuthConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,25 +19,18 @@ import { mapValues } from '../runtime'; * @interface WEBCRAWLERAuthConfig */ export interface WEBCRAWLERAuthConfig { - /** - * Name. Example: Enter a descriptive name - * @type {string} - * @memberof WEBCRAWLERAuthConfig - */ - name: string; /** * Seed URL(s). Add one or more seed URLs to crawl. The crawler will start from these URLs and follow links to other pages.. Example: (e.g. https://example.com) - * @type {string} + * @type {Array} * @memberof WEBCRAWLERAuthConfig */ - seedUrls: string; + seedUrls: Array; } /** * Check if a given object implements the WEBCRAWLERAuthConfig interface. */ export function instanceOfWEBCRAWLERAuthConfig(value: object): value is WEBCRAWLERAuthConfig { - if (!('name' in value) || value['name'] === undefined) return false; if (!('seedUrls' in value) || value['seedUrls'] === undefined) return false; return true; } @@ -52,7 +45,6 @@ export function WEBCRAWLERAuthConfigFromJSONTyped(json: any, ignoreDiscriminator } return { - 'name': json['name'], 'seedUrls': json['seed-urls'], }; } @@ -68,7 +60,6 @@ export function WEBCRAWLERAuthConfigToJSONTyped(value?: WEBCRAWLERAuthConfig | n return { - 'name': value['name'], 'seed-urls': value['seedUrls'], }; } diff --git a/src/ts/src/models/WEBCRAWLERConfig.ts b/src/ts/src/models/WEBCRAWLERConfig.ts index 8b13153..1da05a6 100644 --- a/src/ts/src/models/WEBCRAWLERConfig.ts +++ b/src/ts/src/models/WEBCRAWLERConfig.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,16 +21,16 @@ import { mapValues } from '../runtime'; export interface WEBCRAWLERConfig { /** * Additional Allowed URLs or prefix(es). Add one or more allowed URLs or URL prefixes. The crawler will read URLs that match these patterns in addition to the seed URL(s).. Example: (e.g. https://docs.example.com) - * @type {string} + * @type {Array} * @memberof WEBCRAWLERConfig */ - allowedDomainsOpt?: string; + allowedDomainsOpt?: Array; /** * Forbidden Paths. Example: Enter forbidden paths (e.g. /admin) - * @type {string} + * @type {Array} * @memberof WEBCRAWLERConfig */ - forbiddenPaths?: string; + forbiddenPaths?: Array; /** * Throttle (ms). Example: Enter minimum time between requests in milliseconds * @type {number} diff --git a/src/ts/src/models/Weaviate.ts b/src/ts/src/models/Weaviate.ts index 000e4ff..6a71278 100644 --- a/src/ts/src/models/Weaviate.ts +++ b/src/ts/src/models/Weaviate.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,13 +13,13 @@ */ import { mapValues } from '../runtime'; -import type { WEAVIATEConfig } from './WEAVIATEConfig'; +import type { WEAVIATEAuthConfig } from './WEAVIATEAuthConfig'; import { - WEAVIATEConfigFromJSON, - WEAVIATEConfigFromJSONTyped, - WEAVIATEConfigToJSON, - WEAVIATEConfigToJSONTyped, -} from './WEAVIATEConfig'; + WEAVIATEAuthConfigFromJSON, + WEAVIATEAuthConfigFromJSONTyped, + WEAVIATEAuthConfigToJSON, + WEAVIATEAuthConfigToJSONTyped, +} from './WEAVIATEAuthConfig'; /** * @@ -41,10 +41,10 @@ export interface Weaviate { type: WeaviateTypeEnum; /** * - * @type {WEAVIATEConfig} + * @type {WEAVIATEAuthConfig} * @memberof Weaviate */ - config: WEAVIATEConfig; + config: WEAVIATEAuthConfig; } @@ -79,7 +79,7 @@ export function WeaviateFromJSONTyped(json: any, ignoreDiscriminator: boolean): 'name': json['name'], 'type': json['type'], - 'config': WEAVIATEConfigFromJSON(json['config']), + 'config': WEAVIATEAuthConfigFromJSON(json['config']), }; } @@ -96,7 +96,7 @@ export function WeaviateToJSONTyped(value?: Weaviate | null, ignoreDiscriminator 'name': value['name'], 'type': value['type'], - 'config': WEAVIATEConfigToJSON(value['config']), + 'config': WEAVIATEAuthConfigToJSON(value['config']), }; } diff --git a/src/ts/src/models/Weaviate1.ts b/src/ts/src/models/Weaviate1.ts index a3ec6a4..fe8969d 100644 --- a/src/ts/src/models/Weaviate1.ts +++ b/src/ts/src/models/Weaviate1.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,13 +13,13 @@ */ import { mapValues } from '../runtime'; -import type { WEAVIATEConfig } from './WEAVIATEConfig'; +import type { WEAVIATEAuthConfig } from './WEAVIATEAuthConfig'; import { - WEAVIATEConfigFromJSON, - WEAVIATEConfigFromJSONTyped, - WEAVIATEConfigToJSON, - WEAVIATEConfigToJSONTyped, -} from './WEAVIATEConfig'; + WEAVIATEAuthConfigFromJSON, + WEAVIATEAuthConfigFromJSONTyped, + WEAVIATEAuthConfigToJSON, + WEAVIATEAuthConfigToJSONTyped, +} from './WEAVIATEAuthConfig'; /** * @@ -29,10 +29,10 @@ import { export interface Weaviate1 { /** * - * @type {WEAVIATEConfig} + * @type {WEAVIATEAuthConfig} * @memberof Weaviate1 */ - config?: WEAVIATEConfig; + config?: WEAVIATEAuthConfig; } /** @@ -52,7 +52,7 @@ export function Weaviate1FromJSONTyped(json: any, ignoreDiscriminator: boolean): } return { - 'config': json['config'] == null ? undefined : WEAVIATEConfigFromJSON(json['config']), + 'config': json['config'] == null ? undefined : WEAVIATEAuthConfigFromJSON(json['config']), }; } @@ -67,7 +67,7 @@ export function Weaviate1ToJSONTyped(value?: Weaviate1 | null, ignoreDiscriminat return { - 'config': WEAVIATEConfigToJSON(value['config']), + 'config': WEAVIATEAuthConfigToJSON(value['config']), }; } diff --git a/src/ts/src/models/WebCrawler.ts b/src/ts/src/models/WebCrawler.ts index cf5b6e5..c7e0f69 100644 --- a/src/ts/src/models/WebCrawler.ts +++ b/src/ts/src/models/WebCrawler.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,13 +13,13 @@ */ import { mapValues } from '../runtime'; -import type { WEBCRAWLERConfig } from './WEBCRAWLERConfig'; +import type { WEBCRAWLERAuthConfig } from './WEBCRAWLERAuthConfig'; import { - WEBCRAWLERConfigFromJSON, - WEBCRAWLERConfigFromJSONTyped, - WEBCRAWLERConfigToJSON, - WEBCRAWLERConfigToJSONTyped, -} from './WEBCRAWLERConfig'; + WEBCRAWLERAuthConfigFromJSON, + WEBCRAWLERAuthConfigFromJSONTyped, + WEBCRAWLERAuthConfigToJSON, + WEBCRAWLERAuthConfigToJSONTyped, +} from './WEBCRAWLERAuthConfig'; /** * @@ -41,10 +41,10 @@ export interface WebCrawler { type: WebCrawlerTypeEnum; /** * - * @type {WEBCRAWLERConfig} + * @type {WEBCRAWLERAuthConfig} * @memberof WebCrawler */ - config: WEBCRAWLERConfig; + config: WEBCRAWLERAuthConfig; } @@ -79,7 +79,7 @@ export function WebCrawlerFromJSONTyped(json: any, ignoreDiscriminator: boolean) 'name': json['name'], 'type': json['type'], - 'config': WEBCRAWLERConfigFromJSON(json['config']), + 'config': WEBCRAWLERAuthConfigFromJSON(json['config']), }; } @@ -96,7 +96,7 @@ export function WebCrawlerToJSONTyped(value?: WebCrawler | null, ignoreDiscrimin 'name': value['name'], 'type': value['type'], - 'config': WEBCRAWLERConfigToJSON(value['config']), + 'config': WEBCRAWLERAuthConfigToJSON(value['config']), }; } diff --git a/src/ts/src/models/WebCrawler1.ts b/src/ts/src/models/WebCrawler1.ts index e4b5e39..301162e 100644 --- a/src/ts/src/models/WebCrawler1.ts +++ b/src/ts/src/models/WebCrawler1.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,13 +13,13 @@ */ import { mapValues } from '../runtime'; -import type { WEBCRAWLERConfig } from './WEBCRAWLERConfig'; +import type { WEBCRAWLERAuthConfig } from './WEBCRAWLERAuthConfig'; import { - WEBCRAWLERConfigFromJSON, - WEBCRAWLERConfigFromJSONTyped, - WEBCRAWLERConfigToJSON, - WEBCRAWLERConfigToJSONTyped, -} from './WEBCRAWLERConfig'; + WEBCRAWLERAuthConfigFromJSON, + WEBCRAWLERAuthConfigFromJSONTyped, + WEBCRAWLERAuthConfigToJSON, + WEBCRAWLERAuthConfigToJSONTyped, +} from './WEBCRAWLERAuthConfig'; /** * @@ -29,10 +29,10 @@ import { export interface WebCrawler1 { /** * - * @type {WEBCRAWLERConfig} + * @type {WEBCRAWLERAuthConfig} * @memberof WebCrawler1 */ - config?: WEBCRAWLERConfig; + config?: WEBCRAWLERAuthConfig; } /** @@ -52,7 +52,7 @@ export function WebCrawler1FromJSONTyped(json: any, ignoreDiscriminator: boolean } return { - 'config': json['config'] == null ? undefined : WEBCRAWLERConfigFromJSON(json['config']), + 'config': json['config'] == null ? undefined : WEBCRAWLERAuthConfigFromJSON(json['config']), }; } @@ -67,7 +67,7 @@ export function WebCrawler1ToJSONTyped(value?: WebCrawler1 | null, ignoreDiscrim return { - 'config': WEBCRAWLERConfigToJSON(value['config']), + 'config': WEBCRAWLERAuthConfigToJSON(value['config']), }; } diff --git a/src/ts/src/models/index.ts b/src/ts/src/models/index.ts index a868e57..db60c67 100644 --- a/src/ts/src/models/index.ts +++ b/src/ts/src/models/index.ts @@ -1,9 +1,8 @@ /* tslint:disable */ /* eslint-disable */ -export * from './AIPlatform'; export * from './AIPlatformConfigSchema'; +export * from './AIPlatformConnector'; export * from './AIPlatformConnectorInput'; -export * from './AIPlatformConnectorSchema'; export * from './AIPlatformType'; export * from './AIPlatformTypeForPipeline'; export * from './AWSS3AuthConfig'; @@ -66,7 +65,6 @@ export * from './DeleteSourceConnectorResponse'; export * from './DestinationConnector'; export * from './DestinationConnectorInput'; export * from './DestinationConnectorInputConfig'; -export * from './DestinationConnectorSchema'; export * from './DestinationConnectorType'; export * from './DestinationConnectorTypeForPipeline'; export * from './Discord'; @@ -158,10 +156,13 @@ export * from './POSTGRESQLAuthConfig'; export * from './POSTGRESQLConfig'; export * from './Pinecone'; export * from './Pinecone1'; +export * from './PipelineAIPlatformConnectorSchema'; export * from './PipelineConfigurationSchema'; +export * from './PipelineDestinationConnectorSchema'; export * from './PipelineEvents'; export * from './PipelineListSummary'; export * from './PipelineMetrics'; +export * from './PipelineSourceConnectorSchema'; export * from './PipelineSummary'; export * from './Postgresql'; export * from './Postgresql1'; @@ -190,7 +191,6 @@ export * from './Singlestore1'; export * from './SourceConnector'; export * from './SourceConnectorInput'; export * from './SourceConnectorInputConfig'; -export * from './SourceConnectorSchema'; export * from './SourceConnectorType'; export * from './StartDeepResearchRequest'; export * from './StartDeepResearchResponse'; diff --git a/src/ts/src/runtime.ts b/src/ts/src/runtime.ts index cf99c0c..74f8ea9 100644 --- a/src/ts/src/runtime.ts +++ b/src/ts/src/runtime.ts @@ -4,7 +4,7 @@ * Vectorize API * API for Vectorize services (Beta) * - * The version of the OpenAPI document: 0.1.0 + * The version of the OpenAPI document: 0.1.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/tests/python/tests/test_client.py b/tests/python/tests/test_client.py index 178b48c..1b82193 100644 --- a/tests/python/tests/test_client.py +++ b/tests/python/tests/test_client.py @@ -48,17 +48,23 @@ def test_get_pipelines(ctx: TestContext): def test_delete_system_connectors(ctx: TestContext): # Split the old ConnectorsApi into specific APIs - ai_platforms_api = v.AIPlatformConnectorsApi(ctx.api_client) + ai_platform_connectors_api = v.AIPlatformConnectorsApi(ctx.api_client) destination_connectors_api = v.DestinationConnectorsApi(ctx.api_client) - ai_platforms = ai_platforms_api.get_ai_platform_connectors(ctx.org_id) + ai_platforms = ai_platform_connectors_api.get_ai_platform_connectors(ctx.org_id) + print(f"Found {len(ai_platforms.ai_platform_connectors)} AI platform connectors:") + for c in ai_platforms.ai_platform_connectors: + print(f" - {c.name} (type: {c.type}, id: {c.id})") builtin_ai_platform = [c.id for c in ai_platforms.ai_platform_connectors if c.type == "VECTORIZE"][0] destination_connectors = destination_connectors_api.get_destination_connectors(ctx.org_id) + print(f"Found {len(destination_connectors.destination_connectors)} destination connectors:") + for c in destination_connectors.destination_connectors: + print(f" - {c.name} (type: {c.type}, id: {c.id})") builtin_vector_db = [c.id for c in destination_connectors.destination_connectors if c.type == "VECTORIZE"][0] try: - ai_platforms_api.delete_ai_platform(ctx.org_id, builtin_ai_platform) + ai_platform_connectors_api.delete_ai_platform_connector(ctx.org_id, builtin_ai_platform) raise ValueError("test should have failed") except Exception as e: logging.error(f"Failed to delete: {e}") @@ -106,6 +112,9 @@ def test_upload_create_pipeline(ctx: TestContext): http = urllib3.PoolManager() this_dir = Path(__file__).parent file_path = this_dir / "research.pdf" + + original_debug = ctx.api_client.configuration.debug + ctx.api_client.configuration.debug = False with open(file_path, "rb") as f: response = http.request("PUT", upload_response.upload_url, body=f, headers={"Content-Type": "application/pdf", "Content-Length": str(os.path.getsize(file_path))}) @@ -114,11 +123,13 @@ def test_upload_create_pipeline(ctx: TestContext): else: logging.info("Upload successful") + ctx.api_client.configuration.debug = original_debug + # Get AI platform connector ai_platforms_api = v.AIPlatformConnectorsApi(ctx.api_client) ai_platforms = ai_platforms_api.get_ai_platform_connectors(ctx.org_id) builtin_ai_platform = [c.id for c in ai_platforms.ai_platform_connectors if c.type == "VECTORIZE"][0] - logging.info(f"Using AI platform {builtin_ai_platform}") + logging.info(f"Using AI platform connector {builtin_ai_platform}") # Get destination connector destination_connectors_api = v.DestinationConnectorsApi(ctx.api_client) @@ -130,17 +141,17 @@ def test_upload_create_pipeline(ctx: TestContext): try: # Create pipeline with updated schema response = pipelines.create_pipeline(ctx.org_id, v.PipelineConfigurationSchema( - source_connectors=[v.SourceConnectorSchema( + source_connectors=[v.PipelineSourceConnectorSchema( id=source_connector_id, type="FILE_UPLOAD", config={} )], - destination_connector=v.DestinationConnectorSchema( + destination_connector=v.PipelineDestinationConnectorSchema( id=builtin_vector_db, type="VECTORIZE", config={} ), - aiPlatform=v.AIPlatformConnectorSchema( + ai_platform_connector=v.PipelineAIPlatformConnectorSchema( id=builtin_ai_platform, type="VECTORIZE", config={} @@ -178,13 +189,18 @@ def test_upload_create_pipeline(ctx: TestContext): logging.error(f"Failed to delete pipeline {created_pipeline_id}: {e}") def _test_retrieval(ctx: TestContext, pipeline_id: str): - pipelines = v.PipelinesApi(ctx.api_client) - response = pipelines.retrieve_documents(ctx.org_id, pipeline_id, v.RetrieveDocumentsRequest( - question="What are you?", - num_results=5, - )) - logging.info(response.documents) - + try: + pipelines = v.PipelinesApi(ctx.api_client) + response = pipelines.retrieve_documents(ctx.org_id, pipeline_id, v.RetrieveDocumentsRequest( + question="What are you?", + num_results=5, + )) + logging.info(response.documents) + except v.exceptions.ApiException as e: + if e.status == 405 and os.getenv("VECTORIZE_ENV") == "local": + logging.warning("Retrieval not supported on local environment - skipping") + else: + raise @pytest.mark.timeout(60) def test_extraction(ctx: TestContext): diff --git a/vectorize_api.json b/vectorize_api.json index 64c7a58..5a66ab3 100644 --- a/vectorize_api.json +++ b/vectorize_api.json @@ -2,13 +2,13 @@ "openapi": "3.0.0", "info": { "title": "Vectorize API", - "version": "0.1.0", + "version": "0.1.2", "description": "API for Vectorize services (Beta)", "contact": { "name": "Vectorize", "url": "https://vectorize.io" }, - "x-release-date": "2025-07-03" + "x-release-date": "2025-07-10" }, "servers": [ { @@ -78,7 +78,7 @@ "GMAIL" ] }, - "SourceConnectorSchema": { + "PipelineSourceConnectorSchema": { "type": "object", "properties": { "id": { @@ -120,7 +120,7 @@ "VECTORIZE" ] }, - "DestinationConnectorSchema": { + "PipelineDestinationConnectorSchema": { "type": "object", "properties": { "id": { @@ -229,7 +229,7 @@ }, "additionalProperties": false }, - "AIPlatformConnectorSchema": { + "PipelineAIPlatformConnectorSchema": { "type": "object", "properties": { "id": { @@ -273,13 +273,17 @@ "type": "object", "properties": { "sourceConnectors": { - "$ref": "#/components/schemas/PipelineSourceConnectorRequest" + "type": "array", + "items": { + "$ref": "#/components/schemas/PipelineSourceConnectorSchema" + }, + "minItems": 1 }, "destinationConnector": { - "$ref": "#/components/schemas/PipelineDestinationConnectorRequest" + "$ref": "#/components/schemas/PipelineDestinationConnectorSchema" }, - "aiPlatform": { - "$ref": "#/components/schemas/AIPlatformConnectorSchema" + "aiPlatformConnector": { + "$ref": "#/components/schemas/PipelineAIPlatformConnectorSchema" }, "pipelineName": { "type": "string", @@ -292,7 +296,7 @@ "required": [ "sourceConnectors", "destinationConnector", - "aiPlatform", + "aiPlatformConnector", "pipelineName", "schedule" ], @@ -489,7 +493,7 @@ "name" ] }, - "AIPlatform": { + "AIPlatformConnector": { "type": "object", "properties": { "id": { @@ -615,7 +619,7 @@ "aiPlatforms": { "type": "array", "items": { - "$ref": "#/components/schemas/AIPlatform" + "$ref": "#/components/schemas/AIPlatformConnector" } } }, @@ -1109,7 +1113,7 @@ "description": "Connector type (must be \"AWS_S3\")" }, "config": { - "$ref": "#/components/schemas/AWS_S3Config" + "$ref": "#/components/schemas/AWS_S3AuthConfig" } }, "example": { @@ -1145,7 +1149,7 @@ "description": "Connector type (must be \"AZURE_BLOB\")" }, "config": { - "$ref": "#/components/schemas/AZURE_BLOBConfig" + "$ref": "#/components/schemas/AZURE_BLOBAuthConfig" } }, "example": { @@ -1179,7 +1183,7 @@ "description": "Connector type (must be \"CONFLUENCE\")" }, "config": { - "$ref": "#/components/schemas/CONFLUENCEConfig" + "$ref": "#/components/schemas/CONFLUENCEAuthConfig" } }, "example": { @@ -1213,7 +1217,7 @@ "description": "Connector type (must be \"DISCORD\")" }, "config": { - "$ref": "#/components/schemas/DISCORDConfig" + "$ref": "#/components/schemas/DISCORDAuthConfig" } }, "example": { @@ -1272,7 +1276,7 @@ "description": "Connector type (must be \"GOOGLE_DRIVE\")" }, "config": { - "$ref": "#/components/schemas/GOOGLE_DRIVEConfig" + "$ref": "#/components/schemas/GOOGLE_DRIVEAuthConfig" } }, "example": { @@ -1304,7 +1308,7 @@ "description": "Connector type (must be \"FIRECRAWL\")" }, "config": { - "$ref": "#/components/schemas/FIRECRAWLConfig" + "$ref": "#/components/schemas/FIRECRAWLAuthConfig" } }, "example": { @@ -1336,7 +1340,7 @@ "description": "Connector type (must be \"GCS\")" }, "config": { - "$ref": "#/components/schemas/GCSConfig" + "$ref": "#/components/schemas/GCSAuthConfig" } }, "example": { @@ -1369,7 +1373,7 @@ "description": "Connector type (must be \"ONE_DRIVE\")" }, "config": { - "$ref": "#/components/schemas/ONE_DRIVEConfig" + "$ref": "#/components/schemas/ONE_DRIVEAuthConfig" } }, "example": { @@ -1404,7 +1408,7 @@ "description": "Connector type (must be \"SHAREPOINT\")" }, "config": { - "$ref": "#/components/schemas/SHAREPOINTConfig" + "$ref": "#/components/schemas/SHAREPOINTAuthConfig" } }, "example": { @@ -1438,7 +1442,7 @@ "description": "Connector type (must be \"WEB_CRAWLER\")" }, "config": { - "$ref": "#/components/schemas/WEB_CRAWLERConfig" + "$ref": "#/components/schemas/WEB_CRAWLERAuthConfig" } }, "example": { @@ -1468,7 +1472,7 @@ "description": "Connector type (must be \"GITHUB\")" }, "config": { - "$ref": "#/components/schemas/GITHUBConfig" + "$ref": "#/components/schemas/GITHUBAuthConfig" } }, "example": { @@ -1500,7 +1504,7 @@ "description": "Connector type (must be \"FIREFLIES\")" }, "config": { - "$ref": "#/components/schemas/FIREFLIESConfig" + "$ref": "#/components/schemas/FIREFLIESAuthConfig" } }, "example": { @@ -1555,7 +1559,7 @@ "title": "AwsS3", "properties": { "config": { - "$ref": "#/components/schemas/AWS_S3Config" + "$ref": "#/components/schemas/AWS_S3AuthConfig" } }, "example": { @@ -1574,7 +1578,7 @@ "title": "AzureBlob", "properties": { "config": { - "$ref": "#/components/schemas/AZURE_BLOBConfig" + "$ref": "#/components/schemas/AZURE_BLOBAuthConfig" } }, "example": { @@ -1591,7 +1595,7 @@ "title": "Confluence", "properties": { "config": { - "$ref": "#/components/schemas/CONFLUENCEConfig" + "$ref": "#/components/schemas/CONFLUENCEAuthConfig" } }, "example": { @@ -1607,7 +1611,7 @@ "title": "Discord", "properties": { "config": { - "$ref": "#/components/schemas/DISCORDConfig" + "$ref": "#/components/schemas/DISCORDAuthConfig" } }, "example": { @@ -1623,7 +1627,7 @@ "title": "Dropbox", "properties": { "config": { - "$ref": "#/components/schemas/DROPBOXConfig" + "$ref": "#/components/schemas/DROPBOXAuthConfig" } }, "example": { @@ -1681,7 +1685,7 @@ "title": "GoogleDriveOauth", "properties": { "config": { - "$ref": "#/components/schemas/GOOGLE_DRIVE_OAUTHConfig" + "$ref": "#/components/schemas/GOOGLE_DRIVE_OAUTHAuthConfig" } }, "example": { @@ -1693,7 +1697,7 @@ "title": "GoogleDrive", "properties": { "config": { - "$ref": "#/components/schemas/GOOGLE_DRIVEConfig" + "$ref": "#/components/schemas/GOOGLE_DRIVEAuthConfig" } }, "example": { @@ -1707,7 +1711,7 @@ "title": "GoogleDriveOauthMulti", "properties": { "config": { - "$ref": "#/components/schemas/GOOGLE_DRIVE_OAUTH_MULTIConfig" + "$ref": "#/components/schemas/GOOGLE_DRIVE_OAUTH_MULTIAuthConfig" } }, "example": { @@ -1719,7 +1723,7 @@ "title": "GoogleDriveOauthMultiCustom", "properties": { "config": { - "$ref": "#/components/schemas/GOOGLE_DRIVE_OAUTH_MULTI_CUSTOMConfig" + "$ref": "#/components/schemas/GOOGLE_DRIVE_OAUTH_MULTI_CUSTOMAuthConfig" } }, "example": { @@ -1731,7 +1735,7 @@ "title": "Firecrawl", "properties": { "config": { - "$ref": "#/components/schemas/FIRECRAWLConfig" + "$ref": "#/components/schemas/FIRECRAWLAuthConfig" } }, "example": { @@ -1745,7 +1749,7 @@ "title": "Gcs", "properties": { "config": { - "$ref": "#/components/schemas/GCSConfig" + "$ref": "#/components/schemas/GCSAuthConfig" } }, "example": { @@ -1760,7 +1764,7 @@ "title": "Intercom", "properties": { "config": { - "$ref": "#/components/schemas/INTERCOMConfig" + "$ref": "#/components/schemas/INTERCOMAuthConfig" } }, "example": { @@ -1772,7 +1776,7 @@ "title": "Notion", "properties": { "config": { - "$ref": "#/components/schemas/NOTIONConfig" + "$ref": "#/components/schemas/NOTIONAuthConfig" } }, "example": { @@ -1808,7 +1812,7 @@ "title": "OneDrive", "properties": { "config": { - "$ref": "#/components/schemas/ONE_DRIVEConfig" + "$ref": "#/components/schemas/ONE_DRIVEAuthConfig" } }, "example": { @@ -1825,7 +1829,7 @@ "title": "Sharepoint", "properties": { "config": { - "$ref": "#/components/schemas/SHAREPOINTConfig" + "$ref": "#/components/schemas/SHAREPOINTAuthConfig" } }, "example": { @@ -1841,7 +1845,7 @@ "title": "WebCrawler", "properties": { "config": { - "$ref": "#/components/schemas/WEB_CRAWLERConfig" + "$ref": "#/components/schemas/WEB_CRAWLERAuthConfig" } }, "example": { @@ -1855,7 +1859,7 @@ "title": "Github", "properties": { "config": { - "$ref": "#/components/schemas/GITHUBConfig" + "$ref": "#/components/schemas/GITHUBAuthConfig" } }, "example": { @@ -1869,7 +1873,7 @@ "title": "Fireflies", "properties": { "config": { - "$ref": "#/components/schemas/FIREFLIESConfig" + "$ref": "#/components/schemas/FIREFLIESAuthConfig" } }, "example": { @@ -1961,7 +1965,7 @@ "description": "Connector type (must be \"CAPELLA\")" }, "config": { - "$ref": "#/components/schemas/CAPELLAConfig" + "$ref": "#/components/schemas/CAPELLAAuthConfig" } }, "example": { @@ -1996,7 +2000,7 @@ "description": "Connector type (must be \"DATASTAX\")" }, "config": { - "$ref": "#/components/schemas/DATASTAXConfig" + "$ref": "#/components/schemas/DATASTAXAuthConfig" } }, "example": { @@ -2028,7 +2032,7 @@ "description": "Connector type (must be \"ELASTIC\")" }, "config": { - "$ref": "#/components/schemas/ELASTICConfig" + "$ref": "#/components/schemas/ELASTICAuthConfig" } }, "example": { @@ -2060,7 +2064,7 @@ "description": "Connector type (must be \"PINECONE\")" }, "config": { - "$ref": "#/components/schemas/PINECONEConfig" + "$ref": "#/components/schemas/PINECONEAuthConfig" } }, "example": { @@ -2093,7 +2097,7 @@ "description": "Connector type (must be \"SINGLESTORE\")" }, "config": { - "$ref": "#/components/schemas/SINGLESTOREConfig" + "$ref": "#/components/schemas/SINGLESTOREAuthConfig" } }, "example": { @@ -2125,7 +2129,7 @@ "description": "Connector type (must be \"MILVUS\")" }, "config": { - "$ref": "#/components/schemas/MILVUSConfig" + "$ref": "#/components/schemas/MILVUSAuthConfig" } }, "example": { @@ -2157,7 +2161,7 @@ "description": "Connector type (must be \"POSTGRESQL\")" }, "config": { - "$ref": "#/components/schemas/POSTGRESQLConfig" + "$ref": "#/components/schemas/POSTGRESQLAuthConfig" } }, "example": { @@ -2189,7 +2193,7 @@ "description": "Connector type (must be \"QDRANT\")" }, "config": { - "$ref": "#/components/schemas/QDRANTConfig" + "$ref": "#/components/schemas/QDRANTAuthConfig" } }, "example": { @@ -2221,7 +2225,7 @@ "description": "Connector type (must be \"SUPABASE\")" }, "config": { - "$ref": "#/components/schemas/SUPABASEConfig" + "$ref": "#/components/schemas/SUPABASEAuthConfig" } }, "example": { @@ -2253,7 +2257,7 @@ "description": "Connector type (must be \"WEAVIATE\")" }, "config": { - "$ref": "#/components/schemas/WEAVIATEConfig" + "$ref": "#/components/schemas/WEAVIATEAuthConfig" } }, "example": { @@ -2285,7 +2289,7 @@ "description": "Connector type (must be \"AZUREAISEARCH\")" }, "config": { - "$ref": "#/components/schemas/AZUREAISEARCHConfig" + "$ref": "#/components/schemas/AZUREAISEARCHAuthConfig" } }, "example": { @@ -2317,7 +2321,7 @@ "description": "Connector type (must be \"TURBOPUFFER\")" }, "config": { - "$ref": "#/components/schemas/TURBOPUFFERConfig" + "$ref": "#/components/schemas/TURBOPUFFERAuthConfig" } }, "example": { @@ -2372,7 +2376,7 @@ "title": "Capella", "properties": { "config": { - "$ref": "#/components/schemas/CAPELLAConfig" + "$ref": "#/components/schemas/CAPELLAAuthConfig" } }, "example": { @@ -2388,7 +2392,7 @@ "title": "Datastax", "properties": { "config": { - "$ref": "#/components/schemas/DATASTAXConfig" + "$ref": "#/components/schemas/DATASTAXAuthConfig" } }, "example": { @@ -2403,7 +2407,7 @@ "title": "Elastic", "properties": { "config": { - "$ref": "#/components/schemas/ELASTICConfig" + "$ref": "#/components/schemas/ELASTICAuthConfig" } }, "example": { @@ -2419,7 +2423,7 @@ "title": "Pinecone", "properties": { "config": { - "$ref": "#/components/schemas/PINECONEConfig" + "$ref": "#/components/schemas/PINECONEAuthConfig" } }, "example": { @@ -2433,7 +2437,7 @@ "title": "Singlestore", "properties": { "config": { - "$ref": "#/components/schemas/SINGLESTOREConfig" + "$ref": "#/components/schemas/SINGLESTOREAuthConfig" } }, "example": { @@ -2451,7 +2455,7 @@ "title": "Milvus", "properties": { "config": { - "$ref": "#/components/schemas/MILVUSConfig" + "$ref": "#/components/schemas/MILVUSAuthConfig" } }, "example": { @@ -2468,7 +2472,7 @@ "title": "Postgresql", "properties": { "config": { - "$ref": "#/components/schemas/POSTGRESQLConfig" + "$ref": "#/components/schemas/POSTGRESQLAuthConfig" } }, "example": { @@ -2486,7 +2490,7 @@ "title": "Qdrant", "properties": { "config": { - "$ref": "#/components/schemas/QDRANTConfig" + "$ref": "#/components/schemas/QDRANTAuthConfig" } }, "example": { @@ -2501,7 +2505,7 @@ "title": "Supabase", "properties": { "config": { - "$ref": "#/components/schemas/SUPABASEConfig" + "$ref": "#/components/schemas/SUPABASEAuthConfig" } }, "example": { @@ -2519,7 +2523,7 @@ "title": "Weaviate", "properties": { "config": { - "$ref": "#/components/schemas/WEAVIATEConfig" + "$ref": "#/components/schemas/WEAVIATEAuthConfig" } }, "example": { @@ -2534,7 +2538,7 @@ "title": "Azureaisearch", "properties": { "config": { - "$ref": "#/components/schemas/AZUREAISEARCHConfig" + "$ref": "#/components/schemas/AZUREAISEARCHAuthConfig" } }, "example": { @@ -2549,7 +2553,7 @@ "title": "Turbopuffer", "properties": { "config": { - "$ref": "#/components/schemas/TURBOPUFFERConfig" + "$ref": "#/components/schemas/TURBOPUFFERAuthConfig" } }, "example": { @@ -2751,7 +2755,7 @@ "type": "object", "properties": { "updatedConnector": { - "$ref": "#/components/schemas/AIPlatform" + "$ref": "#/components/schemas/AIPlatformConnector" }, "pipelineIds": { "type": "array", @@ -3270,10 +3274,6 @@ "type": "object", "description": "Authentication configuration for Amazon S3", "properties": { - "name": { - "type": "string", - "description": "Name. Example: Enter a descriptive name" - }, "access-key": { "type": "string", "format": "password", @@ -3305,7 +3305,6 @@ } }, "required": [ - "name", "access-key", "secret-key", "bucket-name", @@ -3329,9 +3328,9 @@ "txt", "html,htm", "md", + "jpg,jpeg,png,webp,svg,gif", "json", - "csv", - "jpg,jpeg,png,webp,svg,gif" + "csv" ] }, "description": "File Extensions", @@ -3356,8 +3355,6 @@ "html", "htm", "md", - "json", - "csv", "jpg", "jpeg", "png", @@ -3374,16 +3371,16 @@ "txt", "html,htm", "md", + "jpg,jpeg,png,webp,svg,gif", "json", - "csv", - "jpg,jpeg,png,webp,svg,gif" + "csv" ] }, "idle-time": { "type": "number", "description": "Check for updates every (seconds)", "minimum": 1, - "default": 5 + "default": 30 }, "recursive": { "type": "boolean", @@ -3398,7 +3395,10 @@ "description": "Path Metadata Regex" }, "path-regex-group-names": { - "type": "string", + "type": "array", + "items": { + "type": "string" + }, "description": "Path Regex Group Names. Example: Enter Group Name" } }, @@ -3411,10 +3411,6 @@ "type": "object", "description": "Authentication configuration for Azure Blob Storage", "properties": { - "name": { - "type": "string", - "description": "Name. Example: Enter a descriptive name" - }, "storage-account-name": { "type": "string", "description": "Storage Account Name. Example: Enter Storage Account Name" @@ -3434,7 +3430,6 @@ } }, "required": [ - "name", "storage-account-name", "storage-account-key", "container" @@ -3457,9 +3452,9 @@ "txt", "html,htm", "md", + "jpg,jpeg,png,webp,svg,gif", "json", - "csv", - "jpg,jpeg,png,webp,svg,gif" + "csv" ] }, "description": "File Extensions", @@ -3484,8 +3479,6 @@ "html", "htm", "md", - "json", - "csv", "jpg", "jpeg", "png", @@ -3502,16 +3495,16 @@ "txt", "html,htm", "md", + "jpg,jpeg,png,webp,svg,gif", "json", - "csv", - "jpg,jpeg,png,webp,svg,gif" + "csv" ] }, "idle-time": { "type": "number", "description": "Polling Interval (seconds)", "minimum": 1, - "default": 5 + "default": 30 }, "recursive": { "type": "boolean", @@ -3526,7 +3519,10 @@ "description": "Path Metadata Regex" }, "path-regex-group-names": { - "type": "string", + "type": "array", + "items": { + "type": "string" + }, "description": "Path Regex Group Names. Example: Enter Group Name" } }, @@ -3539,10 +3535,6 @@ "type": "object", "description": "Authentication configuration for Confluence", "properties": { - "name": { - "type": "string", - "description": "Name. Example: Enter a descriptive name" - }, "username": { "type": "string", "description": "Username. Example: Enter your Confluence username" @@ -3559,7 +3551,6 @@ } }, "required": [ - "name", "username", "api-token", "domain" @@ -3570,11 +3561,17 @@ "description": "Configuration for Confluence connector", "properties": { "spaces": { - "type": "string", + "type": "array", + "items": { + "type": "string" + }, "description": "Spaces. Example: Spaces to include (name, key or id)" }, "root-parents": { - "type": "string", + "type": "array", + "items": { + "type": "string" + }, "description": "Root Parents. Example: Enter root parent pages" } }, @@ -3586,10 +3583,6 @@ "type": "object", "description": "Authentication configuration for Discord", "properties": { - "name": { - "type": "string", - "description": "Name. Example: Enter a descriptive name" - }, "server-id": { "type": "string", "description": "Server ID. Example: Enter Server ID" @@ -3601,12 +3594,14 @@ "pattern": "^\\S.*\\S$|^\\S$" }, "channel-ids": { - "type": "string", + "type": "array", + "items": { + "type": "string" + }, "description": "Channel ID. Example: Enter channel ID" } }, "required": [ - "name", "server-id", "bot-token", "channel-ids" @@ -3617,15 +3612,24 @@ "description": "Configuration for Discord connector", "properties": { "emoji": { - "type": "string", + "type": "array", + "items": { + "type": "string" + }, "description": "Emoji Filter. Example: Enter custom emoji filter name" }, "author": { - "type": "string", + "type": "array", + "items": { + "type": "string" + }, "description": "Author Filter. Example: Enter author name" }, "ignore-author": { - "type": "string", + "type": "array", + "items": { + "type": "string" + }, "description": "Ignore Author Filter. Example: Enter ignore author name" }, "limit": { @@ -3667,10 +3671,6 @@ "type": "object", "description": "Authentication configuration for Dropbox (Legacy)", "properties": { - "name": { - "type": "string", - "description": "Name. Example: Enter a descriptive name" - }, "refresh-token": { "type": "string", "format": "password", @@ -3679,7 +3679,6 @@ } }, "required": [ - "name", "refresh-token" ] }, @@ -3688,7 +3687,10 @@ "description": "Configuration for Dropbox (Legacy) connector", "properties": { "path-prefix": { - "type": "string", + "type": "array", + "items": { + "type": "string" + }, "description": "Read from these folders (optional). Example: Enter Path: /exampleFolder/subFolder", "pattern": "^\\/.*$" } @@ -3698,10 +3700,6 @@ "type": "object", "description": "Authentication configuration for Dropbox OAuth", "properties": { - "name": { - "type": "string", - "description": "Name. Example: Enter a descriptive name" - }, "authorized-user": { "type": "string", "description": "Authorized User" @@ -3720,7 +3718,6 @@ } }, "required": [ - "name", "selection-details" ] }, @@ -3728,12 +3725,11 @@ "type": "object", "description": "Authentication configuration for Dropbox Multi-User (Vectorize)", "properties": { - "name": { - "type": "string", - "description": "Name. Example: Enter a descriptive name" - }, "authorized-users": { - "type": "string", + "type": "array", + "items": { + "type": "string" + }, "description": "Authorized Users" }, "editedUsers": { @@ -3744,19 +3740,12 @@ "type": "object", "default": {} } - }, - "required": [ - "name" - ] + } }, "DROPBOX_OAUTH_MULTI_CUSTOMAuthConfig": { "type": "object", "description": "Authentication configuration for Dropbox Multi-User (White Label)", "properties": { - "name": { - "type": "string", - "description": "Name. Example: Enter a descriptive name" - }, "app-key": { "type": "string", "format": "password", @@ -3768,7 +3757,10 @@ "description": "Dropbox App Secret. Example: Enter App Secret" }, "authorized-users": { - "type": "string", + "type": "array", + "items": { + "type": "string" + }, "description": "Authorized Users" }, "editedUsers": { @@ -3781,7 +3773,6 @@ } }, "required": [ - "name", "app-key", "app-secret" ] @@ -3790,10 +3781,6 @@ "type": "object", "description": "Authentication configuration for File Upload", "properties": { - "name": { - "type": "string", - "description": "Name. Example: Enter a descriptive name for this connector" - }, "path-prefix": { "type": "string", "description": "Path Prefix" @@ -3805,10 +3792,7 @@ }, "description": "Choose files. Files uploaded to this connector can be used in pipelines to vectorize their contents. Note: files with the same name will be overwritten." } - }, - "required": [ - "name" - ] + } }, "FILE_UPLOADCreateConfig": { "type": "object", @@ -3819,10 +3803,6 @@ "type": "object", "description": "Authentication configuration for Google Drive OAuth", "properties": { - "name": { - "type": "string", - "description": "Name. Example: Enter a descriptive name" - }, "authorized-user": { "type": "string", "description": "Authorized User" @@ -3841,7 +3821,6 @@ } }, "required": [ - "name", "selection-details" ] }, @@ -3862,9 +3841,9 @@ "txt", "html,htm", "md", + "jpg,jpeg,png,webp,svg,gif", "json", - "csv", - "jpg,jpeg,png,webp,svg,gif" + "csv" ] }, "description": "File Extensions", @@ -3889,8 +3868,6 @@ "html", "htm", "md", - "json", - "csv", "jpg", "jpeg", "png", @@ -3907,15 +3884,15 @@ "txt", "html,htm", "md", + "jpg,jpeg,png,webp,svg,gif", "json", - "csv", - "jpg,jpeg,png,webp,svg,gif" + "csv" ] }, "idle-time": { "type": "number", "description": "Polling Interval (seconds). Example: Enter polling interval in seconds", - "default": 5 + "default": 30 } }, "required": [ @@ -3926,10 +3903,6 @@ "type": "object", "description": "Authentication configuration for Google Drive (Service Account)", "properties": { - "name": { - "type": "string", - "description": "Name. Example: Enter a descriptive name" - }, "service-account-json": { "type": "string", "format": "password", @@ -3937,7 +3910,6 @@ } }, "required": [ - "name", "service-account-json" ] }, @@ -3958,9 +3930,9 @@ "txt", "html,htm", "md", + "jpg,jpeg,png,webp,svg,gif", "json", - "csv", - "jpg,jpeg,png,webp,svg,gif" + "csv" ] }, "description": "File Extensions", @@ -3985,8 +3957,6 @@ "html", "htm", "md", - "json", - "csv", "jpg", "jpeg", "png", @@ -4003,20 +3973,23 @@ "txt", "html,htm", "md", + "jpg,jpeg,png,webp,svg,gif", "json", - "csv", - "jpg,jpeg,png,webp,svg,gif" + "csv" ] }, "root-parents": { - "type": "string", + "type": "array", + "items": { + "type": "string" + }, "description": "Restrict ingest to these folder URLs (optional). Example: Enter Folder URLs. Example: https://drive.google.com/drive/folders/1234aBCd5678_eFgH9012iJKL3456opqr", "pattern": "^https:\\/\\/drive\\.google\\.com\\/drive(\\/u\\/\\d+)?\\/folders\\/[a-zA-Z0-9_-]+(\\?.*)?$" }, "idle-time": { "type": "number", "description": "Polling Interval (seconds). Example: Enter polling interval in seconds", - "default": 5 + "default": 30 } }, "required": [ @@ -4027,12 +4000,11 @@ "type": "object", "description": "Authentication configuration for Google Drive Multi-User (Vectorize)", "properties": { - "name": { - "type": "string", - "description": "Name. Example: Enter a descriptive name" - }, "authorized-users": { - "type": "string", + "type": "array", + "items": { + "type": "string" + }, "description": "Authorized Users" }, "editedUsers": { @@ -4043,10 +4015,7 @@ "type": "object", "default": {} } - }, - "required": [ - "name" - ] + } }, "GOOGLE_DRIVE_OAUTH_MULTIConfig": { "type": "object", @@ -4065,9 +4034,9 @@ "txt", "html,htm", "md", + "jpg,jpeg,png,webp,svg,gif", "json", - "csv", - "jpg,jpeg,png,webp,svg,gif" + "csv" ] }, "description": "File Extensions", @@ -4092,8 +4061,6 @@ "html", "htm", "md", - "json", - "csv", "jpg", "jpeg", "png", @@ -4110,15 +4077,15 @@ "txt", "html,htm", "md", + "jpg,jpeg,png,webp,svg,gif", "json", - "csv", - "jpg,jpeg,png,webp,svg,gif" + "csv" ] }, "idle-time": { "type": "number", "description": "Polling Interval (seconds). Example: Enter polling interval in seconds", - "default": 5 + "default": 30 } }, "required": [ @@ -4129,10 +4096,6 @@ "type": "object", "description": "Authentication configuration for Google Drive Multi-User (White Label)", "properties": { - "name": { - "type": "string", - "description": "Name. Example: Enter a descriptive name" - }, "oauth2-client-id": { "type": "string", "format": "password", @@ -4144,7 +4107,10 @@ "description": "OAuth2 Client Secret. Example: Enter Client Secret" }, "authorized-users": { - "type": "string", + "type": "array", + "items": { + "type": "string" + }, "description": "Authorized Users" }, "editedUsers": { @@ -4157,7 +4123,6 @@ } }, "required": [ - "name", "oauth2-client-id", "oauth2-client-secret" ] @@ -4179,9 +4144,9 @@ "txt", "html,htm", "md", + "jpg,jpeg,png,webp,svg,gif", "json", - "csv", - "jpg,jpeg,png,webp,svg,gif" + "csv" ] }, "description": "File Extensions", @@ -4206,8 +4171,6 @@ "html", "htm", "md", - "json", - "csv", "jpg", "jpeg", "png", @@ -4224,15 +4187,15 @@ "txt", "html,htm", "md", + "jpg,jpeg,png,webp,svg,gif", "json", - "csv", - "jpg,jpeg,png,webp,svg,gif" + "csv" ] }, "idle-time": { "type": "number", "description": "Polling Interval (seconds). Example: Enter polling interval in seconds", - "default": 5 + "default": 30 } }, "required": [ @@ -4243,10 +4206,6 @@ "type": "object", "description": "Authentication configuration for Firecrawl", "properties": { - "name": { - "type": "string", - "description": "Name. Example: Enter a descriptive name" - }, "api-key": { "type": "string", "format": "password", @@ -4254,7 +4213,6 @@ } }, "required": [ - "name", "api-key" ] }, @@ -4290,10 +4248,6 @@ "type": "object", "description": "Authentication configuration for GCP Cloud Storage", "properties": { - "name": { - "type": "string", - "description": "Name. Example: Enter a descriptive name" - }, "service-account-json": { "type": "string", "format": "password", @@ -4305,7 +4259,6 @@ } }, "required": [ - "name", "service-account-json", "bucket-name" ] @@ -4327,9 +4280,9 @@ "txt", "html,htm", "md", + "jpg,jpeg,png,webp,svg,gif", "json", - "csv", - "jpg,jpeg,png,webp,svg,gif" + "csv" ] }, "description": "File Extensions", @@ -4354,8 +4307,6 @@ "html", "htm", "md", - "json", - "csv", "jpg", "jpeg", "png", @@ -4372,16 +4323,16 @@ "txt", "html,htm", "md", + "jpg,jpeg,png,webp,svg,gif", "json", - "csv", - "jpg,jpeg,png,webp,svg,gif" + "csv" ] }, "idle-time": { "type": "number", "description": "Check for updates every (seconds)", "minimum": 1, - "default": 5 + "default": 30 }, "recursive": { "type": "boolean", @@ -4396,7 +4347,10 @@ "description": "Path Metadata Regex" }, "path-regex-group-names": { - "type": "string", + "type": "array", + "items": { + "type": "string" + }, "description": "Path Regex Group Names. Example: Enter Group Name" } }, @@ -4409,10 +4363,6 @@ "type": "object", "description": "Authentication configuration for Intercom", "properties": { - "name": { - "type": "string", - "description": "Name. Example: Enter a descriptive name" - }, "token": { "type": "string", "format": "password", @@ -4420,7 +4370,6 @@ } }, "required": [ - "name", "token" ] }, @@ -4432,7 +4381,7 @@ "type": "string", "format": "date", "description": "Created After. Filter for conversations created after this date. Example: Enter a date: Example 2012-12-31", - "default": "2025-07-03" + "default": "2025-07-10" }, "updated_at": { "type": "string", @@ -4470,10 +4419,6 @@ "type": "object", "description": "Authentication configuration for Notion", "properties": { - "name": { - "type": "string", - "description": "Name. Example: Enter a descriptive name" - }, "access-token": { "type": "string", "format": "password", @@ -4487,7 +4432,6 @@ } }, "required": [ - "name", "access-token" ] }, @@ -4528,12 +4472,11 @@ "type": "object", "description": "Authentication configuration for Notion Multi-User (Vectorize)", "properties": { - "name": { - "type": "string", - "description": "Name. Example: Enter a descriptive name" - }, "authorized-users": { - "type": "string", + "type": "array", + "items": { + "type": "string" + }, "description": "Authorized Users. Users who have authorized access to their Notion content" }, "editedUsers": { @@ -4544,19 +4487,12 @@ "type": "object", "default": {} } - }, - "required": [ - "name" - ] + } }, "NOTION_OAUTH_MULTI_CUSTOMAuthConfig": { "type": "object", "description": "Authentication configuration for Notion Multi-User (White Label)", "properties": { - "name": { - "type": "string", - "description": "Name. Example: Enter a descriptive name" - }, "client-id": { "type": "string", "format": "password", @@ -4568,7 +4504,10 @@ "description": "Notion Client Secret. Example: Enter Client Secret" }, "authorized-users": { - "type": "string", + "type": "array", + "items": { + "type": "string" + }, "description": "Authorized Users" }, "editedUsers": { @@ -4581,7 +4520,6 @@ } }, "required": [ - "name", "client-id", "client-secret" ] @@ -4590,10 +4528,6 @@ "type": "object", "description": "Authentication configuration for OneDrive", "properties": { - "name": { - "type": "string", - "description": "Name. Example: Enter a descriptive name" - }, "ms-client-id": { "type": "string", "description": "Client Id. Example: Enter Client Id" @@ -4608,12 +4542,14 @@ "description": "Client Secret. Example: Enter Client Secret" }, "users": { - "type": "string", + "type": "array", + "items": { + "type": "string" + }, "description": "Users. Example: Enter users emails to import files from. Example: developer@vectorize.io" } }, "required": [ - "name", "ms-client-id", "ms-tenant-id", "ms-client-secret", @@ -4637,9 +4573,9 @@ "txt", "html,htm", "md", + "jpg,jpeg,png,webp,svg,gif", "json", - "csv", - "jpg,jpeg,png,webp,svg,gif" + "csv" ] }, "description": "File Extensions", @@ -4664,8 +4600,6 @@ "html", "htm", "md", - "json", - "csv", "jpg", "jpeg", "png", @@ -4682,9 +4616,9 @@ "txt", "html,htm", "md", + "jpg,jpeg,png,webp,svg,gif", "json", - "csv", - "jpg,jpeg,png,webp,svg,gif" + "csv" ] }, "path-prefix": { @@ -4700,10 +4634,6 @@ "type": "object", "description": "Authentication configuration for SharePoint", "properties": { - "name": { - "type": "string", - "description": "Name. Example: Enter a descriptive name" - }, "ms-client-id": { "type": "string", "description": "Client Id. Example: Enter Client Id" @@ -4719,7 +4649,6 @@ } }, "required": [ - "name", "ms-client-id", "ms-tenant-id", "ms-client-secret" @@ -4741,9 +4670,9 @@ "eml,msg", "txt", "html,htm", + "jpg,jpeg,png,webp,svg,gif", "json", - "csv", - "jpg,jpeg,png,webp,svg,gif" + "csv" ] }, "description": "File Extensions", @@ -4767,8 +4696,6 @@ "txt", "html", "htm", - "json", - "csv", "jpg", "jpeg", "png", @@ -4784,13 +4711,16 @@ "eml,msg", "txt", "html,htm", + "jpg,jpeg,png,webp,svg,gif", "json", - "csv", - "jpg,jpeg,png,webp,svg,gif" + "csv" ] }, "sites": { - "type": "string", + "type": "array", + "items": { + "type": "string" + }, "description": "Site Name(s). Example: Filter by site name. All sites if empty.", "pattern": "^(?!.*(https?:\\/\\/|www\\.))[\\w\\s\\-.]+$" }, @@ -4807,17 +4737,15 @@ "type": "object", "description": "Authentication configuration for Web Crawler", "properties": { - "name": { - "type": "string", - "description": "Name. Example: Enter a descriptive name" - }, "seed-urls": { - "type": "string", + "type": "array", + "items": { + "type": "string" + }, "description": "Seed URL(s). Add one or more seed URLs to crawl. The crawler will start from these URLs and follow links to other pages.. Example: (e.g. https://example.com)" } }, "required": [ - "name", "seed-urls" ] }, @@ -4826,11 +4754,17 @@ "description": "Configuration for Web Crawler connector", "properties": { "allowed-domains-opt": { - "type": "string", + "type": "array", + "items": { + "type": "string" + }, "description": "Additional Allowed URLs or prefix(es). Add one or more allowed URLs or URL prefixes. The crawler will read URLs that match these patterns in addition to the seed URL(s).. Example: (e.g. https://docs.example.com)" }, "forbidden-paths": { - "type": "string", + "type": "array", + "items": { + "type": "string" + }, "description": "Forbidden Paths. Example: Enter forbidden paths (e.g. /admin)", "pattern": "^\\/([a-zA-Z0-9-_]+(\\/)?)+$" }, @@ -4865,10 +4799,6 @@ "type": "object", "description": "Authentication configuration for GitHub", "properties": { - "name": { - "type": "string", - "description": "Name. Example: Enter a descriptive name" - }, "oauth-token": { "type": "string", "format": "password", @@ -4877,7 +4807,6 @@ } }, "required": [ - "name", "oauth-token" ] }, @@ -4886,7 +4815,10 @@ "description": "Configuration for GitHub connector", "properties": { "repositories": { - "type": "string", + "type": "array", + "items": { + "type": "string" + }, "description": "Repositories. Example: Example: owner1/repo1", "pattern": "^[a-zA-Z0-9-]+\\/[a-zA-Z0-9-]+$" }, @@ -4907,7 +4839,10 @@ ] }, "pull-request-labels": { - "type": "string", + "type": "array", + "items": { + "type": "string" + }, "description": "Pull Request Labels. Example: Optionally filter by label. E.g. fix" }, "include-issues": { @@ -4926,7 +4861,10 @@ ] }, "issue-labels": { - "type": "string", + "type": "array", + "items": { + "type": "string" + }, "description": "Issue Labels. Example: Optionally filter by label. E.g. bug" }, "max-items": { @@ -4953,10 +4891,6 @@ "type": "object", "description": "Authentication configuration for Fireflies.ai", "properties": { - "name": { - "type": "string", - "description": "Name. Example: Enter a descriptive name" - }, "api-key": { "type": "string", "format": "password", @@ -4965,7 +4899,6 @@ } }, "required": [ - "name", "api-key" ] }, @@ -4977,7 +4910,7 @@ "type": "string", "format": "date", "description": "Start Date. Include meetings from this date forward. Example: Enter a date: Example 2023-12-31", - "default": "2025-07-03" + "default": "2025-07-10" }, "end-date": { "type": "string", @@ -5016,10 +4949,6 @@ "type": "object", "description": "Authentication configuration for Gmail", "properties": { - "name": { - "type": "string", - "description": "Name. Example: Enter a descriptive name" - }, "refresh-token": { "type": "string", "format": "password", @@ -5027,7 +4956,6 @@ } }, "required": [ - "name", "refresh-token" ] }, @@ -5141,10 +5069,6 @@ "type": "object", "description": "Authentication configuration for Couchbase Capella", "properties": { - "name": { - "type": "string", - "description": "Name. Example: Enter a descriptive name for your Capella integration" - }, "username": { "type": "string", "description": "Cluster Access Name. Example: Enter your cluster access name" @@ -5160,7 +5084,6 @@ } }, "required": [ - "name", "username", "password", "connection-string" @@ -5199,10 +5122,6 @@ "type": "object", "description": "Authentication configuration for DataStax Astra", "properties": { - "name": { - "type": "string", - "description": "Name. Example: Enter a descriptive name for your DataStax integration" - }, "endpoint_secret": { "type": "string", "description": "API Endpoint. Example: Enter your API endpoint" @@ -5215,7 +5134,6 @@ } }, "required": [ - "name", "endpoint_secret", "token" ] @@ -5238,10 +5156,6 @@ "type": "object", "description": "Authentication configuration for Elasticsearch", "properties": { - "name": { - "type": "string", - "description": "Name. Example: Enter a descriptive name for your Elastic integration" - }, "host": { "type": "string", "description": "Host. Example: Enter your host" @@ -5258,7 +5172,6 @@ } }, "required": [ - "name", "host", "port", "api-key" @@ -5283,10 +5196,6 @@ "type": "object", "description": "Authentication configuration for Pinecone", "properties": { - "name": { - "type": "string", - "description": "Name. Example: Enter a descriptive name for your Pinecone integration" - }, "api-key": { "type": "string", "format": "password", @@ -5295,7 +5204,6 @@ } }, "required": [ - "name", "api-key" ] }, @@ -5324,10 +5232,6 @@ "type": "object", "description": "Authentication configuration for SingleStore", "properties": { - "name": { - "type": "string", - "description": "Name. Example: Enter a descriptive name for your SingleStore integration" - }, "host": { "type": "string", "description": "Host. Example: Enter the host of the deployment" @@ -5351,7 +5255,6 @@ } }, "required": [ - "name", "host", "port", "database", @@ -5378,10 +5281,6 @@ "type": "object", "description": "Authentication configuration for Milvus", "properties": { - "name": { - "type": "string", - "description": "Name. Example: Enter a descriptive name for your Milvus integration" - }, "url": { "type": "string", "description": "Public Endpoint. Example: Enter your public endpoint for your Milvus cluster" @@ -5402,7 +5301,6 @@ } }, "required": [ - "name", "url" ] }, @@ -5424,10 +5322,6 @@ "type": "object", "description": "Authentication configuration for PostgreSQL", "properties": { - "name": { - "type": "string", - "description": "Name. Example: Enter a descriptive name for your PostgreSQL integration" - }, "host": { "type": "string", "description": "Host. Example: Enter the host of the deployment" @@ -5452,7 +5346,6 @@ } }, "required": [ - "name", "host", "database", "username", @@ -5478,10 +5371,6 @@ "type": "object", "description": "Authentication configuration for Qdrant", "properties": { - "name": { - "type": "string", - "description": "Name. Example: Enter a descriptive name for your Qdrant integration" - }, "host": { "type": "string", "description": "Host. Example: Enter your host" @@ -5494,7 +5383,6 @@ } }, "required": [ - "name", "host", "api-key" ] @@ -5517,10 +5405,6 @@ "type": "object", "description": "Authentication configuration for Supabase", "properties": { - "name": { - "type": "string", - "description": "Name. Example: Enter a descriptive name for your Supabase integration" - }, "host": { "type": "string", "description": "Host. Example: Enter the host of the deployment", @@ -5546,7 +5430,6 @@ } }, "required": [ - "name", "host", "database", "username", @@ -5572,10 +5455,6 @@ "type": "object", "description": "Authentication configuration for Weaviate", "properties": { - "name": { - "type": "string", - "description": "Name. Example: Enter a descriptive name for your Weaviate integration" - }, "host": { "type": "string", "description": "Endpoint. Example: Enter your Weaviate Cluster REST Endpoint" @@ -5588,7 +5467,6 @@ } }, "required": [ - "name", "host", "api-key" ] @@ -5611,10 +5489,6 @@ "type": "object", "description": "Authentication configuration for Azure AI Search", "properties": { - "name": { - "type": "string", - "description": "Name. Example: Enter a descriptive name for your Azure AI Search integration" - }, "service-name": { "type": "string", "description": "Azure AI Search Service Name. Example: Enter your Azure AI Search service name" @@ -5627,7 +5501,6 @@ } }, "required": [ - "name", "service-name", "api-key" ] @@ -5650,10 +5523,6 @@ "type": "object", "description": "Authentication configuration for Turbopuffer", "properties": { - "name": { - "type": "string", - "description": "Name. Example: Enter a descriptive name for your Turbopuffer integration" - }, "api-key": { "type": "string", "format": "password", @@ -5662,7 +5531,6 @@ } }, "required": [ - "name", "api-key" ] }, @@ -5683,10 +5551,6 @@ "type": "object", "description": "Authentication configuration for Amazon Bedrock", "properties": { - "name": { - "type": "string", - "description": "Name. Example: Enter a descriptive name for your Amazon Bedrock integration" - }, "access-key": { "type": "string", "format": "password", @@ -5705,7 +5569,6 @@ } }, "required": [ - "name", "access-key", "key", "region" @@ -5715,10 +5578,6 @@ "type": "object", "description": "Authentication configuration for Google Vertex AI", "properties": { - "name": { - "type": "string", - "description": "Name. Example: Enter a descriptive name for your Google Vertex AI integration" - }, "key": { "type": "string", "format": "password", @@ -5730,7 +5589,6 @@ } }, "required": [ - "name", "key", "region" ] @@ -5739,10 +5597,6 @@ "type": "object", "description": "Authentication configuration for OpenAI", "properties": { - "name": { - "type": "string", - "description": "Name. Example: Enter a descriptive name for your OpenAI integration" - }, "key": { "type": "string", "format": "password", @@ -5751,7 +5605,6 @@ } }, "required": [ - "name", "key" ] }, @@ -5759,10 +5612,6 @@ "type": "object", "description": "Authentication configuration for Voyage AI", "properties": { - "name": { - "type": "string", - "description": "Name. Example: Enter a descriptive name for your Voyage AI integration" - }, "key": { "type": "string", "format": "password", @@ -5771,7 +5620,6 @@ } }, "required": [ - "name", "key" ] }, @@ -5988,16 +5836,6 @@ "type", "config" ] - }, - "PipelineSourceConnectorRequest": { - "type": "array", - "minItems": 1, - "items": { - "$ref": "#/components/schemas/SourceConnectorSchema" - } - }, - "PipelineDestinationConnectorRequest": { - "$ref": "#/components/schemas/DestinationConnectorSchema" } }, "parameters": {} @@ -6036,20 +5874,14 @@ "$ref": "#/components/schemas/PipelineConfigurationSchema" }, "example": { - "sourceConnectors": [ - { - "id": "63fa809d-a380-4642-918b-cda69c060a4a", - "type": "AWS_S3", - "config": {} - } - ], + "sourceConnectors": [], "destinationConnector": { - "id": "fae78d69-6c7f-4147-bba5-9d4c18446a52", + "id": "83f7d2d5-216c-4b89-a09f-30fdf603a641", "type": "CAPELLA", "config": {} }, - "aiPlatform": { - "id": "e016675f-8a2c-48f2-b206-38476dddbe5d", + "aiPlatformConnector": { + "id": "ca028407-2684-4606-924c-57c1b3b3c534", "type": "BEDROCK", "config": { "embeddingModel": "VECTORIZE_OPEN_AI_TEXT_EMBEDDING_2", @@ -6316,7 +6148,7 @@ "message": "Operation completed successfully", "data": [ { - "id": "069fc77c-affd-4a0d-97c8-e1cd408167ba", + "id": "cbc588c9-8ba5-445e-a017-31ecf2d7e4af", "name": "Example Item", "type": "example-type", "status": "active" @@ -6570,7 +6402,7 @@ "example": { "message": "Operation completed successfully", "data": { - "id": "6eeb28ce-f90a-46dd-9cc1-a64a3e845a63", + "id": "3e2409df-0992-4158-b030-b2a4d020b0ae", "name": "My PipelineSummary", "documentCount": 42, "sourceConnectorAuthIds": [], @@ -7090,7 +6922,7 @@ "nextToken": "token_example_123456", "data": [ { - "id": "f1166af6-aebe-4877-b742-3a3e829e2a86", + "id": "6b1ed7a6-a064-4e91-b12e-29be44420b3e", "name": "Example Item", "type": "example-type", "status": "active" @@ -7345,7 +7177,7 @@ "message": "Operation completed successfully", "data": [ { - "id": "4236a4e7-1612-42d9-a6d7-a11a26fdecf4", + "id": "21a8e50b-3bdf-476f-a0ec-8ef29194e6b0", "name": "Example Item", "type": "example-type", "status": "active" @@ -8387,7 +8219,7 @@ "$ref": "#/components/schemas/StartDeepResearchResponse" }, "example": { - "researchId": "2bd4ac5d-1eed-4da8-8247-78a6f856dae3" + "researchId": "52dbc4c8-c9ff-4e48-aee9-b1f19be6cc4a" } } } @@ -8900,7 +8732,7 @@ "message": "Operation completed successfully", "connector": { "name": "My CreatedSourceConnector", - "id": "dceb80fd-6ec3-42ce-9819-8e97481e9537" + "id": "e2e316e1-63ab-40d5-b038-c6a2f7cb0488" } } } @@ -9149,17 +8981,17 @@ "example": { "sourceConnectors": [ { - "id": "a84f0d0e-141e-48e1-87ed-1c8aa8639ecb", + "id": "90ecce40-7941-4211-ace0-33d1cd563664", "type": "AWS_S3", "name": "S3 Documents Bucket", - "createdAt": "2025-07-03T20:44:29.277Z", + "createdAt": "2025-07-10T16:13:57.612Z", "verificationStatus": "verified" }, { - "id": "524c038d-f8b4-4ac7-8cbc-88e548c0250a", + "id": "18aacfd0-7d25-46be-986e-efab612e3224", "type": "GOOGLE_DRIVE", "name": "Team Shared Drive", - "createdAt": "2025-07-03T20:44:29.277Z", + "createdAt": "2025-07-10T16:13:57.612Z", "verificationStatus": "verified" } ] @@ -9409,13 +9241,13 @@ "$ref": "#/components/schemas/SourceConnector" }, "example": { - "id": "468f7065-235b-4240-9feb-34e3c58584dd", + "id": "aded3d9b-d269-4698-85bf-c045ba339778", "type": "example-type", "name": "My SourceConnector", "configDoc": {}, "createdAt": "example-createdAt", - "createdById": "3324748e-4dfb-4982-a6eb-7facee7a0048", - "lastUpdatedById": "d48e5bdf-f576-41e3-bf32-279f9c021449", + "createdById": "2097fc76-fed2-4a9b-b578-47146171f4f2", + "lastUpdatedById": "dc69f9d7-4057-4367-a3c8-42782f79e7fe", "createdByEmail": "user@example.com", "lastUpdatedByEmail": "user@example.com", "errorMessage": "Operation completed successfully", @@ -9677,13 +9509,13 @@ "message": "Operation completed successfully", "data": { "updatedConnector": { - "id": "8b519593-6fb7-433d-9ca9-e6a0fe3cb545", + "id": "2d13cd4d-dbc0-49e0-8094-1805962b1cd6", "type": "example-type", "name": "My SourceConnector", "configDoc": {}, "createdAt": "example-createdAt", - "createdById": "8495fb6a-6312-4a25-9d15-2d5386c9c9e5", - "lastUpdatedById": "1876f29f-0d15-4044-8276-ae11471d8d06", + "createdById": "0e083136-ce24-433c-a752-d7f3fc2fbdc5", + "lastUpdatedById": "e9a3ce70-9004-4fe7-b9b8-50afc982d968", "createdByEmail": "user@example.com", "lastUpdatedByEmail": "user@example.com", "errorMessage": "Operation completed successfully", @@ -10185,7 +10017,7 @@ "message": "Operation completed successfully", "connector": { "name": "My CreatedDestinationConnector", - "id": "6d5cab2b-e0dc-460b-a172-7159a0d36e27" + "id": "0c209ce4-da3a-4e11-8545-14bb840a4112" } } } @@ -10679,13 +10511,13 @@ "$ref": "#/components/schemas/DestinationConnector" }, "example": { - "id": "ed9042f5-70d8-4b45-9cd4-fcf33a71d34e", + "id": "38119016-11e1-4716-8c69-5fc60b266374", "type": "example-type", "name": "My DestinationConnector", "configDoc": {}, "createdAt": "example-createdAt", - "createdById": "2f5a8b35-e098-4951-ac31-21ec94016a54", - "lastUpdatedById": "8adb671e-006a-43d1-bd0b-d8651dddcb11", + "createdById": "83109fc0-76ce-4c03-9376-1d1be79f6f24", + "lastUpdatedById": "644d6627-f7f2-4d98-b3fd-960651980db0", "createdByEmail": "user@example.com", "lastUpdatedByEmail": "user@example.com", "errorMessage": "Operation completed successfully", @@ -10947,13 +10779,13 @@ "message": "Operation completed successfully", "data": { "updatedConnector": { - "id": "d55b33d8-22b3-4a79-8aa3-b360777d2c5f", + "id": "e39bc6d4-1e1a-410e-9493-7a9ed216064d", "type": "example-type", "name": "My DestinationConnector", "configDoc": {}, "createdAt": "example-createdAt", - "createdById": "9b5d456e-1061-4226-8f7b-07528ff52167", - "lastUpdatedById": "8c5aa686-6147-4e52-81ed-202811f8af03", + "createdById": "0564b856-8be4-4c78-a250-232e3229ac21", + "lastUpdatedById": "a8b9e8d9-68e7-4867-971a-fcc845a22049", "createdByEmail": "user@example.com", "lastUpdatedByEmail": "user@example.com", "errorMessage": "Operation completed successfully", @@ -11455,7 +11287,7 @@ "message": "Operation completed successfully", "connector": { "name": "My CreatedAIPlatformConnector", - "id": "27b5f4e4-ba84-4092-8547-35afadf2b44b" + "id": "0cf8dfa6-b99c-43ce-b366-51f369f538bd" } } } @@ -11693,7 +11525,7 @@ "aiPlatformConnectors": { "type": "array", "items": { - "$ref": "#/components/schemas/AIPlatform" + "$ref": "#/components/schemas/AIPlatformConnector" } } }, @@ -11946,16 +11778,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AIPlatform" + "$ref": "#/components/schemas/AIPlatformConnector" }, "example": { - "id": "3f10a091-9431-40e7-b57f-5bd056be9d42", + "id": "45b11ecc-5354-4029-ba78-bbe6502d9191", "type": "example-type", - "name": "My AIPlatform", + "name": "My AIPlatformConnector", "configDoc": {}, "createdAt": "example-createdAt", - "createdById": "6f26019b-0665-450f-9030-cf1c4b2aaf66", - "lastUpdatedById": "4de5e3a4-2cae-4032-8029-543bd0a7a35a", + "createdById": "0dace4d0-39e5-4a65-a518-5084798be4fd", + "lastUpdatedById": "6c5aeb52-e99e-41e3-91a3-487c8f04a17c", "createdByEmail": "user@example.com", "lastUpdatedByEmail": "user@example.com", "errorMessage": "Operation completed successfully", @@ -12217,13 +12049,13 @@ "message": "Operation completed successfully", "data": { "updatedConnector": { - "id": "18e41420-b1d1-4b65-8b69-26d0318a6aa1", + "id": "db205e2c-70da-482f-b8fa-4c1839517351", "type": "example-type", - "name": "My AIPlatform", + "name": "My AIPlatformConnector", "configDoc": {}, "createdAt": "example-createdAt", - "createdById": "bacba87e-1ac7-42c7-8a2f-1c79baae8781", - "lastUpdatedById": "38f138e9-77c5-4950-bb06-67e5f19f97bc", + "createdById": "cadfaa1a-aa95-4a57-82c0-52609d33f4bd", + "lastUpdatedById": "3e307fab-0c82-490c-9384-040a3453b07c", "createdByEmail": "user@example.com", "lastUpdatedByEmail": "user@example.com", "errorMessage": "Operation completed successfully", @@ -12433,7 +12265,7 @@ } }, "delete": { - "operationId": "deleteAIPlatform", + "operationId": "deleteAIPlatformConnector", "summary": "Delete an AI platform connector", "description": "Delete an AI platform connector", "tags": [ @@ -13477,7 +13309,7 @@ "$ref": "#/components/schemas/StartExtractionRequest" }, "example": { - "fileId": "8e309a3e-d40c-42f2-bf5f-0b2b749a8a6d", + "fileId": "f239b1fb-7aac-4cad-8566-8076435cd7b5", "type": "iris", "chunkingStrategy": "markdown", "chunkSize": 20, @@ -13499,7 +13331,7 @@ }, "example": { "message": "Operation completed successfully", - "extractionId": "d2251b25-5ad5-455b-8ec4-addee68f78af" + "extractionId": "ebb0ffb7-69e5-45d0-91a8-f43222243760" } } } @@ -14006,7 +13838,7 @@ "$ref": "#/components/schemas/StartFileUploadResponse" }, "example": { - "fileId": "1805d09c-f8a7-4e45-9fa6-5aec7c01ac94", + "fileId": "d9e38bd0-d2b0-4dca-b832-7a543e84f251", "uploadUrl": "https://api.example.com" } } @@ -14253,7 +14085,7 @@ "$ref": "#/components/schemas/AddUserToSourceConnectorRequest" }, "example": { - "userId": "db8f51b8-e8b1-4694-bbe3-c54bcc1b2d87", + "userId": "67ffccee-6574-4fda-8f9d-2cd4e2f9dcc7", "selectedFiles": {}, "refreshToken": "refresh_token_example_123456", "accessToken": "access_token_example_123456" @@ -14514,7 +14346,7 @@ "$ref": "#/components/schemas/UpdateUserInSourceConnectorRequest" }, "example": { - "userId": "80945bc0-b9b0-4473-96a8-fc67831b7b23", + "userId": "2da2bdd2-80e5-4bd9-a97c-b4a074a9a709", "selectedFiles": {}, "refreshToken": "refresh_token_example_123456", "accessToken": "access_token_example_123456" @@ -14775,7 +14607,7 @@ "$ref": "#/components/schemas/RemoveUserFromSourceConnectorRequest" }, "example": { - "userId": "02913dc2-4f28-48dd-9bda-9da132ef75ca" + "userId": "53a1dc3b-a072-4ff3-bc58-209c9f083f54" } } } From a8867901c4ebc0376985a82dfd78a03a76128ed9 Mon Sep 17 00:00:00 2001 From: Jamie Ferguson Date: Fri, 11 Jul 2025 09:53:45 -0600 Subject: [PATCH 08/11] Updated based on latest spec. --- src/python/vectorize_client/__init__.py | 2 +- .../vectorize_client/models/__init__.py | 2 +- ..._type.py => ai_platform_connector_type.py} | 6 +- src/python/vectorize_client/models/bedrock.py | 2 +- src/python/vectorize_client/models/openai.py | 2 +- src/python/vectorize_client/models/vertex.py | 2 +- src/python/vectorize_client/models/voyage.py | 2 +- src/ts/src/models/AIPlatformConnectorType.ts | 55 +++++++++++ src/ts/src/models/AIPlatformType.ts | 55 ----------- src/ts/src/models/Bedrock.ts | 2 +- src/ts/src/models/Openai.ts | 2 +- src/ts/src/models/Vertex.ts | 2 +- src/ts/src/models/Voyage.ts | 2 +- src/ts/src/models/index.ts | 2 +- tests/ts/tests/connectors.test.ts | 2 +- vectorize_api.json | 98 ++++++++++--------- 16 files changed, 121 insertions(+), 117 deletions(-) rename src/python/vectorize_client/models/{ai_platform_type.py => ai_platform_connector_type.py} (80%) create mode 100644 src/ts/src/models/AIPlatformConnectorType.ts delete mode 100644 src/ts/src/models/AIPlatformType.ts diff --git a/src/python/vectorize_client/__init__.py b/src/python/vectorize_client/__init__.py index ba17ae7..be04ec2 100644 --- a/src/python/vectorize_client/__init__.py +++ b/src/python/vectorize_client/__init__.py @@ -40,7 +40,7 @@ from vectorize_client.models.ai_platform_config_schema import AIPlatformConfigSchema from vectorize_client.models.ai_platform_connector import AIPlatformConnector from vectorize_client.models.ai_platform_connector_input import AIPlatformConnectorInput -from vectorize_client.models.ai_platform_type import AIPlatformType +from vectorize_client.models.ai_platform_connector_type import AIPlatformConnectorType from vectorize_client.models.ai_platform_type_for_pipeline import AIPlatformTypeForPipeline from vectorize_client.models.awss3_auth_config import AWSS3AuthConfig from vectorize_client.models.awss3_config import AWSS3Config diff --git a/src/python/vectorize_client/models/__init__.py b/src/python/vectorize_client/models/__init__.py index 20854fd..e497e89 100644 --- a/src/python/vectorize_client/models/__init__.py +++ b/src/python/vectorize_client/models/__init__.py @@ -17,7 +17,7 @@ from vectorize_client.models.ai_platform_config_schema import AIPlatformConfigSchema from vectorize_client.models.ai_platform_connector import AIPlatformConnector from vectorize_client.models.ai_platform_connector_input import AIPlatformConnectorInput -from vectorize_client.models.ai_platform_type import AIPlatformType +from vectorize_client.models.ai_platform_connector_type import AIPlatformConnectorType from vectorize_client.models.ai_platform_type_for_pipeline import AIPlatformTypeForPipeline from vectorize_client.models.awss3_auth_config import AWSS3AuthConfig from vectorize_client.models.awss3_config import AWSS3Config diff --git a/src/python/vectorize_client/models/ai_platform_type.py b/src/python/vectorize_client/models/ai_platform_connector_type.py similarity index 80% rename from src/python/vectorize_client/models/ai_platform_type.py rename to src/python/vectorize_client/models/ai_platform_connector_type.py index 2a001e6..e53b533 100644 --- a/src/python/vectorize_client/models/ai_platform_type.py +++ b/src/python/vectorize_client/models/ai_platform_connector_type.py @@ -18,9 +18,9 @@ from typing_extensions import Self -class AIPlatformType(str, Enum): +class AIPlatformConnectorType(str, Enum): """ - AIPlatformType + AIPlatformConnectorType """ """ @@ -33,7 +33,7 @@ class AIPlatformType(str, Enum): @classmethod def from_json(cls, json_str: str) -> Self: - """Create an instance of AIPlatformType from a JSON string""" + """Create an instance of AIPlatformConnectorType from a JSON string""" return cls(json.loads(json_str)) diff --git a/src/python/vectorize_client/models/bedrock.py b/src/python/vectorize_client/models/bedrock.py index 47d6f90..aa81e6d 100644 --- a/src/python/vectorize_client/models/bedrock.py +++ b/src/python/vectorize_client/models/bedrock.py @@ -28,7 +28,7 @@ class Bedrock(BaseModel): Bedrock """ # noqa: E501 name: StrictStr = Field(description="Name of the connector") - type: StrictStr = Field(description="Connector type (must be \"BEDROCK\")") + type: StrictStr = Field(description="Must be \"BEDROCK\"") config: BEDROCKAuthConfig __properties: ClassVar[List[str]] = ["name", "type", "config"] diff --git a/src/python/vectorize_client/models/openai.py b/src/python/vectorize_client/models/openai.py index ea69882..02b53f1 100644 --- a/src/python/vectorize_client/models/openai.py +++ b/src/python/vectorize_client/models/openai.py @@ -28,7 +28,7 @@ class Openai(BaseModel): Openai """ # noqa: E501 name: StrictStr = Field(description="Name of the connector") - type: StrictStr = Field(description="Connector type (must be \"OPENAI\")") + type: StrictStr = Field(description="Must be \"OPENAI\"") config: OPENAIAuthConfig __properties: ClassVar[List[str]] = ["name", "type", "config"] diff --git a/src/python/vectorize_client/models/vertex.py b/src/python/vectorize_client/models/vertex.py index ba2b038..b463406 100644 --- a/src/python/vectorize_client/models/vertex.py +++ b/src/python/vectorize_client/models/vertex.py @@ -28,7 +28,7 @@ class Vertex(BaseModel): Vertex """ # noqa: E501 name: StrictStr = Field(description="Name of the connector") - type: StrictStr = Field(description="Connector type (must be \"VERTEX\")") + type: StrictStr = Field(description="Must be \"VERTEX\"") config: VERTEXAuthConfig __properties: ClassVar[List[str]] = ["name", "type", "config"] diff --git a/src/python/vectorize_client/models/voyage.py b/src/python/vectorize_client/models/voyage.py index d07a4b5..5b5a06d 100644 --- a/src/python/vectorize_client/models/voyage.py +++ b/src/python/vectorize_client/models/voyage.py @@ -28,7 +28,7 @@ class Voyage(BaseModel): Voyage """ # noqa: E501 name: StrictStr = Field(description="Name of the connector") - type: StrictStr = Field(description="Connector type (must be \"VOYAGE\")") + type: StrictStr = Field(description="Must be \"VOYAGE\"") config: VOYAGEAuthConfig __properties: ClassVar[List[str]] = ["name", "type", "config"] diff --git a/src/ts/src/models/AIPlatformConnectorType.ts b/src/ts/src/models/AIPlatformConnectorType.ts new file mode 100644 index 0000000..562625e --- /dev/null +++ b/src/ts/src/models/AIPlatformConnectorType.ts @@ -0,0 +1,55 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * The version of the OpenAPI document: 0.1.2 + * + * + * 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 AIPlatformConnectorType = { + Bedrock: 'BEDROCK', + Vertex: 'VERTEX', + Openai: 'OPENAI', + Voyage: 'VOYAGE' +} as const; +export type AIPlatformConnectorType = typeof AIPlatformConnectorType[keyof typeof AIPlatformConnectorType]; + + +export function instanceOfAIPlatformConnectorType(value: any): boolean { + for (const key in AIPlatformConnectorType) { + if (Object.prototype.hasOwnProperty.call(AIPlatformConnectorType, key)) { + if (AIPlatformConnectorType[key as keyof typeof AIPlatformConnectorType] === value) { + return true; + } + } + } + return false; +} + +export function AIPlatformConnectorTypeFromJSON(json: any): AIPlatformConnectorType { + return AIPlatformConnectorTypeFromJSONTyped(json, false); +} + +export function AIPlatformConnectorTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): AIPlatformConnectorType { + return json as AIPlatformConnectorType; +} + +export function AIPlatformConnectorTypeToJSON(value?: AIPlatformConnectorType | null): any { + return value as any; +} + +export function AIPlatformConnectorTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): AIPlatformConnectorType { + return value as AIPlatformConnectorType; +} + diff --git a/src/ts/src/models/AIPlatformType.ts b/src/ts/src/models/AIPlatformType.ts deleted file mode 100644 index 64afa62..0000000 --- a/src/ts/src/models/AIPlatformType.ts +++ /dev/null @@ -1,55 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Vectorize API - * API for Vectorize services (Beta) - * - * The version of the OpenAPI document: 0.1.2 - * - * - * 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' -} 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/Bedrock.ts b/src/ts/src/models/Bedrock.ts index 8a0c97a..4016da3 100644 --- a/src/ts/src/models/Bedrock.ts +++ b/src/ts/src/models/Bedrock.ts @@ -34,7 +34,7 @@ export interface Bedrock { */ name: string; /** - * Connector type (must be "BEDROCK") + * Must be "BEDROCK" * @type {string} * @memberof Bedrock */ diff --git a/src/ts/src/models/Openai.ts b/src/ts/src/models/Openai.ts index 64260ab..75ab369 100644 --- a/src/ts/src/models/Openai.ts +++ b/src/ts/src/models/Openai.ts @@ -34,7 +34,7 @@ export interface Openai { */ name: string; /** - * Connector type (must be "OPENAI") + * Must be "OPENAI" * @type {string} * @memberof Openai */ diff --git a/src/ts/src/models/Vertex.ts b/src/ts/src/models/Vertex.ts index f17dd62..0f22cdb 100644 --- a/src/ts/src/models/Vertex.ts +++ b/src/ts/src/models/Vertex.ts @@ -34,7 +34,7 @@ export interface Vertex { */ name: string; /** - * Connector type (must be "VERTEX") + * Must be "VERTEX" * @type {string} * @memberof Vertex */ diff --git a/src/ts/src/models/Voyage.ts b/src/ts/src/models/Voyage.ts index 2aeba19..48f6f30 100644 --- a/src/ts/src/models/Voyage.ts +++ b/src/ts/src/models/Voyage.ts @@ -34,7 +34,7 @@ export interface Voyage { */ name: string; /** - * Connector type (must be "VOYAGE") + * Must be "VOYAGE" * @type {string} * @memberof Voyage */ diff --git a/src/ts/src/models/index.ts b/src/ts/src/models/index.ts index db60c67..8f265bb 100644 --- a/src/ts/src/models/index.ts +++ b/src/ts/src/models/index.ts @@ -3,7 +3,7 @@ export * from './AIPlatformConfigSchema'; export * from './AIPlatformConnector'; export * from './AIPlatformConnectorInput'; -export * from './AIPlatformType'; +export * from './AIPlatformConnectorType'; export * from './AIPlatformTypeForPipeline'; export * from './AWSS3AuthConfig'; export * from './AWSS3Config'; diff --git a/tests/ts/tests/connectors.test.ts b/tests/ts/tests/connectors.test.ts index 3cf1265..fe4fcc3 100644 --- a/tests/ts/tests/connectors.test.ts +++ b/tests/ts/tests/connectors.test.ts @@ -188,7 +188,7 @@ describe("connector", () => { expect(read.createdAt).toBeTruthy() // Delete AI platform connector - await aiPlatformConnectorsApi.deleteAIPlatform({ + await aiPlatformConnectorsApi.deleteAIPlatformConnector({ organizationId: testContext.orgId, aiPlatformConnectorId: connectorId }) diff --git a/vectorize_api.json b/vectorize_api.json index 5a66ab3..688a56e 100644 --- a/vectorize_api.json +++ b/vectorize_api.json @@ -2605,7 +2605,7 @@ "connector" ] }, - "AIPlatformType": { + "AIPlatformConnectorType": { "type": "string", "enum": [ "BEDROCK", @@ -2634,10 +2634,11 @@ "enum": [ "BEDROCK" ], - "description": "Connector type (must be \"BEDROCK\")" + "description": "Must be \"BEDROCK\"" }, "config": { - "$ref": "#/components/schemas/BEDROCKAuthConfig" + "$ref": "#/components/schemas/BEDROCKAuthConfig", + "description": "Configuration for Amazon Bedrock" } }, "example": { @@ -2667,10 +2668,11 @@ "enum": [ "VERTEX" ], - "description": "Connector type (must be \"VERTEX\")" + "description": "Must be \"VERTEX\"" }, "config": { - "$ref": "#/components/schemas/VERTEXAuthConfig" + "$ref": "#/components/schemas/VERTEXAuthConfig", + "description": "Configuration for Google Vertex AI" } }, "example": { @@ -2700,10 +2702,11 @@ "enum": [ "OPENAI" ], - "description": "Connector type (must be \"OPENAI\")" + "description": "Must be \"OPENAI\"" }, "config": { - "$ref": "#/components/schemas/OPENAIAuthConfig" + "$ref": "#/components/schemas/OPENAIAuthConfig", + "description": "Configuration for OpenAI" } }, "example": { @@ -2732,10 +2735,11 @@ "enum": [ "VOYAGE" ], - "description": "Connector type (must be \"VOYAGE\")" + "description": "Must be \"VOYAGE\"" }, "config": { - "$ref": "#/components/schemas/VOYAGEAuthConfig" + "$ref": "#/components/schemas/VOYAGEAuthConfig", + "description": "Configuration for Voyage AI" } }, "example": { @@ -5876,12 +5880,12 @@ "example": { "sourceConnectors": [], "destinationConnector": { - "id": "83f7d2d5-216c-4b89-a09f-30fdf603a641", + "id": "ae4a7bcb-aaed-41bd-99b3-64c4a673343a", "type": "CAPELLA", "config": {} }, "aiPlatformConnector": { - "id": "ca028407-2684-4606-924c-57c1b3b3c534", + "id": "3b696b69-7060-438d-9c7e-0f6be117367d", "type": "BEDROCK", "config": { "embeddingModel": "VECTORIZE_OPEN_AI_TEXT_EMBEDDING_2", @@ -6148,7 +6152,7 @@ "message": "Operation completed successfully", "data": [ { - "id": "cbc588c9-8ba5-445e-a017-31ecf2d7e4af", + "id": "25b2a51b-c0cd-4d59-8c30-db344e836f2c", "name": "Example Item", "type": "example-type", "status": "active" @@ -6402,7 +6406,7 @@ "example": { "message": "Operation completed successfully", "data": { - "id": "3e2409df-0992-4158-b030-b2a4d020b0ae", + "id": "91bd911a-94de-45a8-854b-ea97df2d7216", "name": "My PipelineSummary", "documentCount": 42, "sourceConnectorAuthIds": [], @@ -6922,7 +6926,7 @@ "nextToken": "token_example_123456", "data": [ { - "id": "6b1ed7a6-a064-4e91-b12e-29be44420b3e", + "id": "1c2d2b11-9755-4434-90f0-803704032154", "name": "Example Item", "type": "example-type", "status": "active" @@ -7177,7 +7181,7 @@ "message": "Operation completed successfully", "data": [ { - "id": "21a8e50b-3bdf-476f-a0ec-8ef29194e6b0", + "id": "5148840a-b511-4bdc-babc-6b2fa73c5a2e", "name": "Example Item", "type": "example-type", "status": "active" @@ -8219,7 +8223,7 @@ "$ref": "#/components/schemas/StartDeepResearchResponse" }, "example": { - "researchId": "52dbc4c8-c9ff-4e48-aee9-b1f19be6cc4a" + "researchId": "a7853c29-5f98-4faa-ad5e-b466e071ea14" } } } @@ -8732,7 +8736,7 @@ "message": "Operation completed successfully", "connector": { "name": "My CreatedSourceConnector", - "id": "e2e316e1-63ab-40d5-b038-c6a2f7cb0488" + "id": "abc458c3-e72a-4397-9328-c0e1fd9a117d" } } } @@ -8981,17 +8985,17 @@ "example": { "sourceConnectors": [ { - "id": "90ecce40-7941-4211-ace0-33d1cd563664", + "id": "9bbf3fc9-a549-4808-a525-6f2219d2a5bc", "type": "AWS_S3", "name": "S3 Documents Bucket", - "createdAt": "2025-07-10T16:13:57.612Z", + "createdAt": "2025-07-10T19:29:03.499Z", "verificationStatus": "verified" }, { - "id": "18aacfd0-7d25-46be-986e-efab612e3224", + "id": "abccbb14-ead6-4e1f-93cb-367c434984fc", "type": "GOOGLE_DRIVE", "name": "Team Shared Drive", - "createdAt": "2025-07-10T16:13:57.612Z", + "createdAt": "2025-07-10T19:29:03.499Z", "verificationStatus": "verified" } ] @@ -9241,13 +9245,13 @@ "$ref": "#/components/schemas/SourceConnector" }, "example": { - "id": "aded3d9b-d269-4698-85bf-c045ba339778", + "id": "9f5b95ed-69ac-462d-93c8-d6898ef069aa", "type": "example-type", "name": "My SourceConnector", "configDoc": {}, "createdAt": "example-createdAt", - "createdById": "2097fc76-fed2-4a9b-b578-47146171f4f2", - "lastUpdatedById": "dc69f9d7-4057-4367-a3c8-42782f79e7fe", + "createdById": "ab55e680-3915-401a-aa46-0c2c26f1874a", + "lastUpdatedById": "dde926ec-7186-4608-affb-0eb4ac01f180", "createdByEmail": "user@example.com", "lastUpdatedByEmail": "user@example.com", "errorMessage": "Operation completed successfully", @@ -9509,13 +9513,13 @@ "message": "Operation completed successfully", "data": { "updatedConnector": { - "id": "2d13cd4d-dbc0-49e0-8094-1805962b1cd6", + "id": "0f4a7788-ea5b-4ff1-aa24-6258cea5e508", "type": "example-type", "name": "My SourceConnector", "configDoc": {}, "createdAt": "example-createdAt", - "createdById": "0e083136-ce24-433c-a752-d7f3fc2fbdc5", - "lastUpdatedById": "e9a3ce70-9004-4fe7-b9b8-50afc982d968", + "createdById": "e368b137-7f81-40e3-824d-d67e7b844c88", + "lastUpdatedById": "867255de-747a-4ae7-872d-d74c838b88c0", "createdByEmail": "user@example.com", "lastUpdatedByEmail": "user@example.com", "errorMessage": "Operation completed successfully", @@ -10017,7 +10021,7 @@ "message": "Operation completed successfully", "connector": { "name": "My CreatedDestinationConnector", - "id": "0c209ce4-da3a-4e11-8545-14bb840a4112" + "id": "828cab7e-5faf-45c6-b59b-4cd8c53542d2" } } } @@ -10511,13 +10515,13 @@ "$ref": "#/components/schemas/DestinationConnector" }, "example": { - "id": "38119016-11e1-4716-8c69-5fc60b266374", + "id": "c83e315e-c6e1-4b21-a82b-81ca4526da1e", "type": "example-type", "name": "My DestinationConnector", "configDoc": {}, "createdAt": "example-createdAt", - "createdById": "83109fc0-76ce-4c03-9376-1d1be79f6f24", - "lastUpdatedById": "644d6627-f7f2-4d98-b3fd-960651980db0", + "createdById": "018fd9f4-18aa-4209-a581-8632e5417507", + "lastUpdatedById": "58f2955d-ec6a-402a-b720-5a8520b4a222", "createdByEmail": "user@example.com", "lastUpdatedByEmail": "user@example.com", "errorMessage": "Operation completed successfully", @@ -10779,13 +10783,13 @@ "message": "Operation completed successfully", "data": { "updatedConnector": { - "id": "e39bc6d4-1e1a-410e-9493-7a9ed216064d", + "id": "d5b5ff01-e065-409e-b32c-90256543b08c", "type": "example-type", "name": "My DestinationConnector", "configDoc": {}, "createdAt": "example-createdAt", - "createdById": "0564b856-8be4-4c78-a250-232e3229ac21", - "lastUpdatedById": "a8b9e8d9-68e7-4867-971a-fcc845a22049", + "createdById": "6e46a0aa-1680-4a01-9af6-d10a98ceef57", + "lastUpdatedById": "292140d8-d1d5-4627-829c-a4eed548ba03", "createdByEmail": "user@example.com", "lastUpdatedByEmail": "user@example.com", "errorMessage": "Operation completed successfully", @@ -11287,7 +11291,7 @@ "message": "Operation completed successfully", "connector": { "name": "My CreatedAIPlatformConnector", - "id": "0cf8dfa6-b99c-43ce-b366-51f369f538bd" + "id": "14695463-d363-4680-9a38-c9a6516cc37e" } } } @@ -11781,13 +11785,13 @@ "$ref": "#/components/schemas/AIPlatformConnector" }, "example": { - "id": "45b11ecc-5354-4029-ba78-bbe6502d9191", + "id": "b78bc048-e835-4e37-a2a0-958da1386938", "type": "example-type", "name": "My AIPlatformConnector", "configDoc": {}, "createdAt": "example-createdAt", - "createdById": "0dace4d0-39e5-4a65-a518-5084798be4fd", - "lastUpdatedById": "6c5aeb52-e99e-41e3-91a3-487c8f04a17c", + "createdById": "9a688f77-3d46-4214-b631-8b7603be2739", + "lastUpdatedById": "438b02cb-b855-4ac5-947c-13f1ae09b5aa", "createdByEmail": "user@example.com", "lastUpdatedByEmail": "user@example.com", "errorMessage": "Operation completed successfully", @@ -12049,13 +12053,13 @@ "message": "Operation completed successfully", "data": { "updatedConnector": { - "id": "db205e2c-70da-482f-b8fa-4c1839517351", + "id": "b6131428-da01-4571-851c-58d1e6ff7632", "type": "example-type", "name": "My AIPlatformConnector", "configDoc": {}, "createdAt": "example-createdAt", - "createdById": "cadfaa1a-aa95-4a57-82c0-52609d33f4bd", - "lastUpdatedById": "3e307fab-0c82-490c-9384-040a3453b07c", + "createdById": "0d52c026-0298-4293-832e-f9f2f7c75d20", + "lastUpdatedById": "4f87d5b2-515e-4db9-9e97-1fdf388dd54d", "createdByEmail": "user@example.com", "lastUpdatedByEmail": "user@example.com", "errorMessage": "Operation completed successfully", @@ -13309,7 +13313,7 @@ "$ref": "#/components/schemas/StartExtractionRequest" }, "example": { - "fileId": "f239b1fb-7aac-4cad-8566-8076435cd7b5", + "fileId": "b8aa3113-620d-4ad5-8aae-7effeada0c69", "type": "iris", "chunkingStrategy": "markdown", "chunkSize": 20, @@ -13331,7 +13335,7 @@ }, "example": { "message": "Operation completed successfully", - "extractionId": "ebb0ffb7-69e5-45d0-91a8-f43222243760" + "extractionId": "0f7b162f-7ccd-4fdc-a237-7f49707c0df8" } } } @@ -13838,7 +13842,7 @@ "$ref": "#/components/schemas/StartFileUploadResponse" }, "example": { - "fileId": "d9e38bd0-d2b0-4dca-b832-7a543e84f251", + "fileId": "cf9ee18e-d329-43f3-9e0f-737972715f20", "uploadUrl": "https://api.example.com" } } @@ -14085,7 +14089,7 @@ "$ref": "#/components/schemas/AddUserToSourceConnectorRequest" }, "example": { - "userId": "67ffccee-6574-4fda-8f9d-2cd4e2f9dcc7", + "userId": "1918f9f1-5f9c-43f4-ac5d-e58e043df684", "selectedFiles": {}, "refreshToken": "refresh_token_example_123456", "accessToken": "access_token_example_123456" @@ -14346,7 +14350,7 @@ "$ref": "#/components/schemas/UpdateUserInSourceConnectorRequest" }, "example": { - "userId": "2da2bdd2-80e5-4bd9-a97c-b4a074a9a709", + "userId": "8afb88ca-2a31-47fb-8c62-3d0f2f341e48", "selectedFiles": {}, "refreshToken": "refresh_token_example_123456", "accessToken": "access_token_example_123456" @@ -14607,7 +14611,7 @@ "$ref": "#/components/schemas/RemoveUserFromSourceConnectorRequest" }, "example": { - "userId": "53a1dc3b-a072-4ff3-bc58-209c9f083f54" + "userId": "a3efde95-0ff2-4f48-afdc-168b2ffdbf46" } } } From 38b2cbb260f769b31c59f3e7b4d0a2dc4a37f2ac Mon Sep 17 00:00:00 2001 From: Jamie Ferguson Date: Fri, 18 Jul 2025 13:21:38 -0600 Subject: [PATCH 09/11] Updated to match latest OpenAPI spec. --- src/python/vectorize_client/__init__.py | 24 +- .../api/ai_platform_connectors_api.py | 35 + .../api/destination_connectors_api.py | 35 + .../vectorize_client/api/pipelines_api.py | 34 + .../api/source_connectors_api.py | 35 + .../vectorize_client/models/__init__.py | 24 +- .../models/docusign_config.py | 120 +++ src/python/vectorize_client/models/dropbox.py | 91 --- .../models/dropbox_auth_config.py | 95 --- .../vectorize_client/models/dropbox_oauth.py | 91 --- .../models/dropbox_oauth_multi.py | 91 --- .../models/dropbox_oauth_multi_custom.py | 91 --- .../models/dropboxoauth_auth_config.py | 93 --- .../models/dropboxoauthmulti_auth_config.py | 91 --- .../dropboxoauthmulticustom_auth_config.py | 95 --- .../models/fireflies_config.py | 4 +- .../vectorize_client/models/github_config.py | 4 +- .../models/gmail_auth_config.py | 87 --- .../vectorize_client/models/gmail_config.py | 4 +- .../models/google_drive_oauth.py | 91 --- .../models/google_drive_oauth_multi.py | 91 --- .../models/google_drive_oauth_multi_custom.py | 91 --- .../models/googledriveoauth_auth_config.py | 93 --- .../googledriveoauthmulti_auth_config.py | 91 --- ...googledriveoauthmulticustom_auth_config.py | 95 --- .../vectorize_client/models/intercom.py | 91 --- .../models/intercom_auth_config.py | 87 --- src/python/vectorize_client/models/notion.py | 91 --- .../models/notion_auth_config.py | 91 --- .../models/notion_oauth_multi.py | 91 --- .../models/notion_oauth_multi_custom.py | 91 --- .../models/notionoauthmulti_auth_config.py | 91 --- .../notionoauthmulticustom_auth_config.py | 95 --- .../models/source_connector_input.py | 4 +- .../models/source_connector_input_config.py | 32 +- .../models/source_connector_type.py | 1 + .../models/update_source_connector_request.py | 188 +---- src/ts/package-lock.json | 31 - src/ts/package.json | 2 +- src/ts/src/apis/AIPlatformConnectorsApi.ts | 10 + src/ts/src/apis/DestinationConnectorsApi.ts | 10 + src/ts/src/apis/PipelinesApi.ts | 10 + src/ts/src/apis/SourceConnectorsApi.ts | 10 + src/ts/src/models/DOCUSIGNConfig.ts | 141 ++++ src/ts/src/models/DROPBOXAuthConfig.ts | 66 -- src/ts/src/models/DROPBOXOAUTHAuthConfig.ts | 90 --- .../src/models/DROPBOXOAUTHMULTIAuthConfig.ts | 81 -- .../DROPBOXOAUTHMULTICUSTOMAuthConfig.ts | 99 --- src/ts/src/models/Dropbox.ts | 73 -- src/ts/src/models/DropboxOauth.ts | 73 -- src/ts/src/models/DropboxOauthMulti.ts | 73 -- src/ts/src/models/DropboxOauthMultiCustom.ts | 73 -- src/ts/src/models/FIREFLIESConfig.ts | 2 +- src/ts/src/models/GITHUBConfig.ts | 7 +- src/ts/src/models/GMAILAuthConfig.ts | 66 -- src/ts/src/models/GMAILConfig.ts | 2 +- .../src/models/GOOGLEDRIVEOAUTHAuthConfig.ts | 90 --- .../models/GOOGLEDRIVEOAUTHMULTIAuthConfig.ts | 81 -- .../GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig.ts | 99 --- src/ts/src/models/GoogleDriveOauth.ts | 73 -- src/ts/src/models/GoogleDriveOauthMulti.ts | 73 -- .../src/models/GoogleDriveOauthMultiCustom.ts | 73 -- src/ts/src/models/INTERCOMAuthConfig.ts | 66 -- src/ts/src/models/Intercom.ts | 73 -- src/ts/src/models/NOTIONAuthConfig.ts | 82 --- .../src/models/NOTIONOAUTHMULTIAuthConfig.ts | 81 -- .../NOTIONOAUTHMULTICUSTOMAuthConfig.ts | 99 --- src/ts/src/models/Notion.ts | 73 -- src/ts/src/models/NotionOauthMulti.ts | 73 -- src/ts/src/models/NotionOauthMultiCustom.ts | 73 -- src/ts/src/models/SourceConnectorInput.ts | 1 + .../src/models/SourceConnectorInputConfig.ts | 15 +- src/ts/src/models/SourceConnectorType.ts | 1 + .../models/UpdateSourceConnectorRequest.ts | 145 +--- src/ts/src/models/index.ts | 24 +- vectorize_api.json | 696 ++++++------------ 76 files changed, 755 insertions(+), 4804 deletions(-) create mode 100644 src/python/vectorize_client/models/docusign_config.py delete mode 100644 src/python/vectorize_client/models/dropbox.py delete mode 100644 src/python/vectorize_client/models/dropbox_auth_config.py delete mode 100644 src/python/vectorize_client/models/dropbox_oauth.py delete mode 100644 src/python/vectorize_client/models/dropbox_oauth_multi.py delete mode 100644 src/python/vectorize_client/models/dropbox_oauth_multi_custom.py delete mode 100644 src/python/vectorize_client/models/dropboxoauth_auth_config.py delete mode 100644 src/python/vectorize_client/models/dropboxoauthmulti_auth_config.py delete mode 100644 src/python/vectorize_client/models/dropboxoauthmulticustom_auth_config.py delete mode 100644 src/python/vectorize_client/models/gmail_auth_config.py delete mode 100644 src/python/vectorize_client/models/google_drive_oauth.py delete mode 100644 src/python/vectorize_client/models/google_drive_oauth_multi.py delete mode 100644 src/python/vectorize_client/models/google_drive_oauth_multi_custom.py delete mode 100644 src/python/vectorize_client/models/googledriveoauth_auth_config.py delete mode 100644 src/python/vectorize_client/models/googledriveoauthmulti_auth_config.py delete mode 100644 src/python/vectorize_client/models/googledriveoauthmulticustom_auth_config.py delete mode 100644 src/python/vectorize_client/models/intercom.py delete mode 100644 src/python/vectorize_client/models/intercom_auth_config.py delete mode 100644 src/python/vectorize_client/models/notion.py delete mode 100644 src/python/vectorize_client/models/notion_auth_config.py delete mode 100644 src/python/vectorize_client/models/notion_oauth_multi.py delete mode 100644 src/python/vectorize_client/models/notion_oauth_multi_custom.py delete mode 100644 src/python/vectorize_client/models/notionoauthmulti_auth_config.py delete mode 100644 src/python/vectorize_client/models/notionoauthmulticustom_auth_config.py delete mode 100644 src/ts/package-lock.json create mode 100644 src/ts/src/models/DOCUSIGNConfig.ts delete mode 100644 src/ts/src/models/DROPBOXAuthConfig.ts delete mode 100644 src/ts/src/models/DROPBOXOAUTHAuthConfig.ts delete mode 100644 src/ts/src/models/DROPBOXOAUTHMULTIAuthConfig.ts delete mode 100644 src/ts/src/models/DROPBOXOAUTHMULTICUSTOMAuthConfig.ts delete mode 100644 src/ts/src/models/Dropbox.ts delete mode 100644 src/ts/src/models/DropboxOauth.ts delete mode 100644 src/ts/src/models/DropboxOauthMulti.ts delete mode 100644 src/ts/src/models/DropboxOauthMultiCustom.ts delete mode 100644 src/ts/src/models/GMAILAuthConfig.ts delete mode 100644 src/ts/src/models/GOOGLEDRIVEOAUTHAuthConfig.ts delete mode 100644 src/ts/src/models/GOOGLEDRIVEOAUTHMULTIAuthConfig.ts delete mode 100644 src/ts/src/models/GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig.ts delete mode 100644 src/ts/src/models/GoogleDriveOauth.ts delete mode 100644 src/ts/src/models/GoogleDriveOauthMulti.ts delete mode 100644 src/ts/src/models/GoogleDriveOauthMultiCustom.ts delete mode 100644 src/ts/src/models/INTERCOMAuthConfig.ts delete mode 100644 src/ts/src/models/Intercom.ts delete mode 100644 src/ts/src/models/NOTIONAuthConfig.ts delete mode 100644 src/ts/src/models/NOTIONOAUTHMULTIAuthConfig.ts delete mode 100644 src/ts/src/models/NOTIONOAUTHMULTICUSTOMAuthConfig.ts delete mode 100644 src/ts/src/models/Notion.ts delete mode 100644 src/ts/src/models/NotionOauthMulti.ts delete mode 100644 src/ts/src/models/NotionOauthMultiCustom.ts diff --git a/src/python/vectorize_client/__init__.py b/src/python/vectorize_client/__init__.py index be04ec2..963c663 100644 --- a/src/python/vectorize_client/__init__.py +++ b/src/python/vectorize_client/__init__.py @@ -86,11 +86,8 @@ from vectorize_client.models.datastax_config import DATASTAXConfig from vectorize_client.models.discord_auth_config import DISCORDAuthConfig from vectorize_client.models.discord_config import DISCORDConfig -from vectorize_client.models.dropbox_auth_config import DROPBOXAuthConfig +from vectorize_client.models.docusign_config import DOCUSIGNConfig from vectorize_client.models.dropbox_config import DROPBOXConfig -from vectorize_client.models.dropboxoauth_auth_config import DROPBOXOAUTHAuthConfig -from vectorize_client.models.dropboxoauthmulti_auth_config import DROPBOXOAUTHMULTIAuthConfig -from vectorize_client.models.dropboxoauthmulticustom_auth_config import DROPBOXOAUTHMULTICUSTOMAuthConfig from vectorize_client.models.datastax import Datastax from vectorize_client.models.datastax1 import Datastax1 from vectorize_client.models.deep_research_result import DeepResearchResult @@ -107,10 +104,6 @@ from vectorize_client.models.discord import Discord from vectorize_client.models.discord1 import Discord1 from vectorize_client.models.document import Document -from vectorize_client.models.dropbox import Dropbox -from vectorize_client.models.dropbox_oauth import DropboxOauth -from vectorize_client.models.dropbox_oauth_multi import DropboxOauthMulti -from vectorize_client.models.dropbox_oauth_multi_custom import DropboxOauthMultiCustom from vectorize_client.models.elastic_auth_config import ELASTICAuthConfig from vectorize_client.models.elastic_config import ELASTICConfig from vectorize_client.models.elastic import Elastic @@ -134,14 +127,10 @@ from vectorize_client.models.gcs_config import GCSConfig from vectorize_client.models.github_auth_config import GITHUBAuthConfig from vectorize_client.models.github_config import GITHUBConfig -from vectorize_client.models.gmail_auth_config import GMAILAuthConfig from vectorize_client.models.gmail_config import GMAILConfig from vectorize_client.models.googledrive_auth_config import GOOGLEDRIVEAuthConfig from vectorize_client.models.googledrive_config import GOOGLEDRIVEConfig -from vectorize_client.models.googledriveoauth_auth_config import GOOGLEDRIVEOAUTHAuthConfig from vectorize_client.models.googledriveoauth_config import GOOGLEDRIVEOAUTHConfig -from vectorize_client.models.googledriveoauthmulti_auth_config import GOOGLEDRIVEOAUTHMULTIAuthConfig -from vectorize_client.models.googledriveoauthmulticustom_auth_config import GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig from vectorize_client.models.googledriveoauthmulticustom_config import GOOGLEDRIVEOAUTHMULTICUSTOMConfig from vectorize_client.models.googledriveoauthmulti_config import GOOGLEDRIVEOAUTHMULTIConfig from vectorize_client.models.gcs import Gcs @@ -160,12 +149,7 @@ from vectorize_client.models.github1 import Github1 from vectorize_client.models.google_drive import GoogleDrive from vectorize_client.models.google_drive1 import GoogleDrive1 -from vectorize_client.models.google_drive_oauth import GoogleDriveOauth -from vectorize_client.models.google_drive_oauth_multi import GoogleDriveOauthMulti -from vectorize_client.models.google_drive_oauth_multi_custom import GoogleDriveOauthMultiCustom -from vectorize_client.models.intercom_auth_config import INTERCOMAuthConfig from vectorize_client.models.intercom_config import INTERCOMConfig -from vectorize_client.models.intercom import Intercom from vectorize_client.models.milvus_auth_config import MILVUSAuthConfig from vectorize_client.models.milvus_config import MILVUSConfig from vectorize_client.models.metadata_extraction_strategy import MetadataExtractionStrategy @@ -173,13 +157,7 @@ from vectorize_client.models.milvus import Milvus from vectorize_client.models.milvus1 import Milvus1 from vectorize_client.models.n8_n_config import N8NConfig -from vectorize_client.models.notion_auth_config import NOTIONAuthConfig from vectorize_client.models.notion_config import NOTIONConfig -from vectorize_client.models.notionoauthmulti_auth_config import NOTIONOAUTHMULTIAuthConfig -from vectorize_client.models.notionoauthmulticustom_auth_config import NOTIONOAUTHMULTICUSTOMAuthConfig -from vectorize_client.models.notion import Notion -from vectorize_client.models.notion_oauth_multi import NotionOauthMulti -from vectorize_client.models.notion_oauth_multi_custom import NotionOauthMultiCustom from vectorize_client.models.onedrive_auth_config import ONEDRIVEAuthConfig from vectorize_client.models.onedrive_config import ONEDRIVEConfig from vectorize_client.models.openai_auth_config import OPENAIAuthConfig diff --git a/src/python/vectorize_client/api/ai_platform_connectors_api.py b/src/python/vectorize_client/api/ai_platform_connectors_api.py index 4ec6535..a37746c 100644 --- a/src/python/vectorize_client/api/ai_platform_connectors_api.py +++ b/src/python/vectorize_client/api/ai_platform_connectors_api.py @@ -17,6 +17,7 @@ from typing_extensions import Annotated from pydantic import StrictStr +from typing import Optional from vectorize_client.models.ai_platform_connector import AIPlatformConnector from vectorize_client.models.create_ai_platform_connector_request import CreateAIPlatformConnectorRequest from vectorize_client.models.create_ai_platform_connector_response import CreateAIPlatformConnectorResponse @@ -48,6 +49,7 @@ def create_ai_platform_connector( self, organization_id: StrictStr, create_ai_platform_connector_request: CreateAIPlatformConnectorRequest, + workspace_id: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -69,6 +71,8 @@ def create_ai_platform_connector( :type organization_id: str :param create_ai_platform_connector_request: (required) :type create_ai_platform_connector_request: CreateAIPlatformConnectorRequest + :param workspace_id: + :type workspace_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 @@ -94,6 +98,7 @@ def create_ai_platform_connector( _param = self._create_ai_platform_connector_serialize( organization_id=organization_id, create_ai_platform_connector_request=create_ai_platform_connector_request, + workspace_id=workspace_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -124,6 +129,7 @@ def create_ai_platform_connector_with_http_info( self, organization_id: StrictStr, create_ai_platform_connector_request: CreateAIPlatformConnectorRequest, + workspace_id: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -145,6 +151,8 @@ def create_ai_platform_connector_with_http_info( :type organization_id: str :param create_ai_platform_connector_request: (required) :type create_ai_platform_connector_request: CreateAIPlatformConnectorRequest + :param workspace_id: + :type workspace_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 @@ -170,6 +178,7 @@ def create_ai_platform_connector_with_http_info( _param = self._create_ai_platform_connector_serialize( organization_id=organization_id, create_ai_platform_connector_request=create_ai_platform_connector_request, + workspace_id=workspace_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -200,6 +209,7 @@ def create_ai_platform_connector_without_preload_content( self, organization_id: StrictStr, create_ai_platform_connector_request: CreateAIPlatformConnectorRequest, + workspace_id: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -221,6 +231,8 @@ def create_ai_platform_connector_without_preload_content( :type organization_id: str :param create_ai_platform_connector_request: (required) :type create_ai_platform_connector_request: CreateAIPlatformConnectorRequest + :param workspace_id: + :type workspace_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 @@ -246,6 +258,7 @@ def create_ai_platform_connector_without_preload_content( _param = self._create_ai_platform_connector_serialize( organization_id=organization_id, create_ai_platform_connector_request=create_ai_platform_connector_request, + workspace_id=workspace_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -271,6 +284,7 @@ def _create_ai_platform_connector_serialize( self, organization_id, create_ai_platform_connector_request, + workspace_id, _request_auth, _content_type, _headers, @@ -295,6 +309,10 @@ def _create_ai_platform_connector_serialize( if organization_id is not None: _path_params['organizationId'] = organization_id # process the query parameters + if workspace_id is not None: + + _query_params.append(('workspaceId', workspace_id)) + # process the header parameters # process the form parameters # process the body parameter @@ -933,6 +951,7 @@ def _get_ai_platform_connector_serialize( def get_ai_platform_connectors( self, organization_id: StrictStr, + workspace_id: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -952,6 +971,8 @@ def get_ai_platform_connectors( :param organization_id: (required) :type organization_id: str + :param workspace_id: + :type workspace_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 @@ -976,6 +997,7 @@ def get_ai_platform_connectors( _param = self._get_ai_platform_connectors_serialize( organization_id=organization_id, + workspace_id=workspace_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1005,6 +1027,7 @@ def get_ai_platform_connectors( def get_ai_platform_connectors_with_http_info( self, organization_id: StrictStr, + workspace_id: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1024,6 +1047,8 @@ def get_ai_platform_connectors_with_http_info( :param organization_id: (required) :type organization_id: str + :param workspace_id: + :type workspace_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 @@ -1048,6 +1073,7 @@ def get_ai_platform_connectors_with_http_info( _param = self._get_ai_platform_connectors_serialize( organization_id=organization_id, + workspace_id=workspace_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1077,6 +1103,7 @@ def get_ai_platform_connectors_with_http_info( def get_ai_platform_connectors_without_preload_content( self, organization_id: StrictStr, + workspace_id: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1096,6 +1123,8 @@ def get_ai_platform_connectors_without_preload_content( :param organization_id: (required) :type organization_id: str + :param workspace_id: + :type workspace_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 @@ -1120,6 +1149,7 @@ def get_ai_platform_connectors_without_preload_content( _param = self._get_ai_platform_connectors_serialize( organization_id=organization_id, + workspace_id=workspace_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1144,6 +1174,7 @@ def get_ai_platform_connectors_without_preload_content( def _get_ai_platform_connectors_serialize( self, organization_id, + workspace_id, _request_auth, _content_type, _headers, @@ -1168,6 +1199,10 @@ def _get_ai_platform_connectors_serialize( if organization_id is not None: _path_params['organizationId'] = organization_id # process the query parameters + if workspace_id is not None: + + _query_params.append(('workspaceId', workspace_id)) + # process the header parameters # process the form parameters # process the body parameter diff --git a/src/python/vectorize_client/api/destination_connectors_api.py b/src/python/vectorize_client/api/destination_connectors_api.py index 6c396fe..a142770 100644 --- a/src/python/vectorize_client/api/destination_connectors_api.py +++ b/src/python/vectorize_client/api/destination_connectors_api.py @@ -17,6 +17,7 @@ from typing_extensions import Annotated from pydantic import StrictStr +from typing import Optional from vectorize_client.models.create_destination_connector_request import CreateDestinationConnectorRequest from vectorize_client.models.create_destination_connector_response import CreateDestinationConnectorResponse from vectorize_client.models.delete_destination_connector_response import DeleteDestinationConnectorResponse @@ -48,6 +49,7 @@ def create_destination_connector( self, organization_id: StrictStr, create_destination_connector_request: CreateDestinationConnectorRequest, + workspace_id: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -69,6 +71,8 @@ def create_destination_connector( :type organization_id: str :param create_destination_connector_request: (required) :type create_destination_connector_request: CreateDestinationConnectorRequest + :param workspace_id: + :type workspace_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 @@ -94,6 +98,7 @@ def create_destination_connector( _param = self._create_destination_connector_serialize( organization_id=organization_id, create_destination_connector_request=create_destination_connector_request, + workspace_id=workspace_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -124,6 +129,7 @@ def create_destination_connector_with_http_info( self, organization_id: StrictStr, create_destination_connector_request: CreateDestinationConnectorRequest, + workspace_id: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -145,6 +151,8 @@ def create_destination_connector_with_http_info( :type organization_id: str :param create_destination_connector_request: (required) :type create_destination_connector_request: CreateDestinationConnectorRequest + :param workspace_id: + :type workspace_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 @@ -170,6 +178,7 @@ def create_destination_connector_with_http_info( _param = self._create_destination_connector_serialize( organization_id=organization_id, create_destination_connector_request=create_destination_connector_request, + workspace_id=workspace_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -200,6 +209,7 @@ def create_destination_connector_without_preload_content( self, organization_id: StrictStr, create_destination_connector_request: CreateDestinationConnectorRequest, + workspace_id: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -221,6 +231,8 @@ def create_destination_connector_without_preload_content( :type organization_id: str :param create_destination_connector_request: (required) :type create_destination_connector_request: CreateDestinationConnectorRequest + :param workspace_id: + :type workspace_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 @@ -246,6 +258,7 @@ def create_destination_connector_without_preload_content( _param = self._create_destination_connector_serialize( organization_id=organization_id, create_destination_connector_request=create_destination_connector_request, + workspace_id=workspace_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -271,6 +284,7 @@ def _create_destination_connector_serialize( self, organization_id, create_destination_connector_request, + workspace_id, _request_auth, _content_type, _headers, @@ -295,6 +309,10 @@ def _create_destination_connector_serialize( if organization_id is not None: _path_params['organizationId'] = organization_id # process the query parameters + if workspace_id is not None: + + _query_params.append(('workspaceId', workspace_id)) + # process the header parameters # process the form parameters # process the body parameter @@ -933,6 +951,7 @@ def _get_destination_connector_serialize( def get_destination_connectors( self, organization_id: StrictStr, + workspace_id: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -952,6 +971,8 @@ def get_destination_connectors( :param organization_id: (required) :type organization_id: str + :param workspace_id: + :type workspace_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 @@ -976,6 +997,7 @@ def get_destination_connectors( _param = self._get_destination_connectors_serialize( organization_id=organization_id, + workspace_id=workspace_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1005,6 +1027,7 @@ def get_destination_connectors( def get_destination_connectors_with_http_info( self, organization_id: StrictStr, + workspace_id: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1024,6 +1047,8 @@ def get_destination_connectors_with_http_info( :param organization_id: (required) :type organization_id: str + :param workspace_id: + :type workspace_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 @@ -1048,6 +1073,7 @@ def get_destination_connectors_with_http_info( _param = self._get_destination_connectors_serialize( organization_id=organization_id, + workspace_id=workspace_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1077,6 +1103,7 @@ def get_destination_connectors_with_http_info( def get_destination_connectors_without_preload_content( self, organization_id: StrictStr, + workspace_id: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1096,6 +1123,8 @@ def get_destination_connectors_without_preload_content( :param organization_id: (required) :type organization_id: str + :param workspace_id: + :type workspace_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 @@ -1120,6 +1149,7 @@ def get_destination_connectors_without_preload_content( _param = self._get_destination_connectors_serialize( organization_id=organization_id, + workspace_id=workspace_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1144,6 +1174,7 @@ def get_destination_connectors_without_preload_content( def _get_destination_connectors_serialize( self, organization_id, + workspace_id, _request_auth, _content_type, _headers, @@ -1168,6 +1199,10 @@ def _get_destination_connectors_serialize( if organization_id is not None: _path_params['organizationId'] = organization_id # process the query parameters + if workspace_id is not None: + + _query_params.append(('workspaceId', workspace_id)) + # process the header parameters # process the form parameters # process the body parameter diff --git a/src/python/vectorize_client/api/pipelines_api.py b/src/python/vectorize_client/api/pipelines_api.py index d547b08..9c70615 100644 --- a/src/python/vectorize_client/api/pipelines_api.py +++ b/src/python/vectorize_client/api/pipelines_api.py @@ -56,6 +56,7 @@ def create_pipeline( self, organization_id: StrictStr, pipeline_configuration_schema: PipelineConfigurationSchema, + workspace_id: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -77,6 +78,8 @@ def create_pipeline( :type organization_id: str :param pipeline_configuration_schema: (required) :type pipeline_configuration_schema: PipelineConfigurationSchema + :param workspace_id: + :type workspace_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 @@ -102,6 +105,7 @@ def create_pipeline( _param = self._create_pipeline_serialize( organization_id=organization_id, pipeline_configuration_schema=pipeline_configuration_schema, + workspace_id=workspace_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -132,6 +136,7 @@ def create_pipeline_with_http_info( self, organization_id: StrictStr, pipeline_configuration_schema: PipelineConfigurationSchema, + workspace_id: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -153,6 +158,8 @@ def create_pipeline_with_http_info( :type organization_id: str :param pipeline_configuration_schema: (required) :type pipeline_configuration_schema: PipelineConfigurationSchema + :param workspace_id: + :type workspace_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 @@ -178,6 +185,7 @@ def create_pipeline_with_http_info( _param = self._create_pipeline_serialize( organization_id=organization_id, pipeline_configuration_schema=pipeline_configuration_schema, + workspace_id=workspace_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -208,6 +216,7 @@ def create_pipeline_without_preload_content( self, organization_id: StrictStr, pipeline_configuration_schema: PipelineConfigurationSchema, + workspace_id: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -229,6 +238,8 @@ def create_pipeline_without_preload_content( :type organization_id: str :param pipeline_configuration_schema: (required) :type pipeline_configuration_schema: PipelineConfigurationSchema + :param workspace_id: + :type workspace_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 @@ -254,6 +265,7 @@ def create_pipeline_without_preload_content( _param = self._create_pipeline_serialize( organization_id=organization_id, pipeline_configuration_schema=pipeline_configuration_schema, + workspace_id=workspace_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -279,6 +291,7 @@ def _create_pipeline_serialize( self, organization_id, pipeline_configuration_schema, + workspace_id, _request_auth, _content_type, _headers, @@ -303,6 +316,10 @@ def _create_pipeline_serialize( if organization_id is not None: _path_params['organizationId'] = organization_id # process the query parameters + if workspace_id is not None: + + _query_params.append(('workspaceId', workspace_id)) + # process the header parameters # process the form parameters # process the body parameter @@ -1846,6 +1863,7 @@ def _get_pipeline_metrics_serialize( def get_pipelines( self, organization_id: StrictStr, + workspace_id: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1865,6 +1883,8 @@ def get_pipelines( :param organization_id: (required) :type organization_id: str + :param workspace_id: + :type workspace_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 @@ -1889,6 +1909,7 @@ def get_pipelines( _param = self._get_pipelines_serialize( organization_id=organization_id, + workspace_id=workspace_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1918,6 +1939,7 @@ def get_pipelines( def get_pipelines_with_http_info( self, organization_id: StrictStr, + workspace_id: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1937,6 +1959,8 @@ def get_pipelines_with_http_info( :param organization_id: (required) :type organization_id: str + :param workspace_id: + :type workspace_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 @@ -1961,6 +1985,7 @@ def get_pipelines_with_http_info( _param = self._get_pipelines_serialize( organization_id=organization_id, + workspace_id=workspace_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1990,6 +2015,7 @@ def get_pipelines_with_http_info( def get_pipelines_without_preload_content( self, organization_id: StrictStr, + workspace_id: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2009,6 +2035,8 @@ def get_pipelines_without_preload_content( :param organization_id: (required) :type organization_id: str + :param workspace_id: + :type workspace_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 @@ -2033,6 +2061,7 @@ def get_pipelines_without_preload_content( _param = self._get_pipelines_serialize( organization_id=organization_id, + workspace_id=workspace_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2057,6 +2086,7 @@ def get_pipelines_without_preload_content( def _get_pipelines_serialize( self, organization_id, + workspace_id, _request_auth, _content_type, _headers, @@ -2081,6 +2111,10 @@ def _get_pipelines_serialize( if organization_id is not None: _path_params['organizationId'] = organization_id # process the query parameters + if workspace_id is not None: + + _query_params.append(('workspaceId', workspace_id)) + # process the header parameters # process the form parameters # process the body parameter diff --git a/src/python/vectorize_client/api/source_connectors_api.py b/src/python/vectorize_client/api/source_connectors_api.py index 920a670..d5d4297 100644 --- a/src/python/vectorize_client/api/source_connectors_api.py +++ b/src/python/vectorize_client/api/source_connectors_api.py @@ -17,6 +17,7 @@ from typing_extensions import Annotated from pydantic import StrictStr +from typing import Optional 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_source_connector_request import CreateSourceConnectorRequest @@ -373,6 +374,7 @@ def create_source_connector( self, organization_id: StrictStr, create_source_connector_request: CreateSourceConnectorRequest, + workspace_id: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -394,6 +396,8 @@ def create_source_connector( :type organization_id: str :param create_source_connector_request: (required) :type create_source_connector_request: CreateSourceConnectorRequest + :param workspace_id: + :type workspace_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 @@ -419,6 +423,7 @@ def create_source_connector( _param = self._create_source_connector_serialize( organization_id=organization_id, create_source_connector_request=create_source_connector_request, + workspace_id=workspace_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -449,6 +454,7 @@ def create_source_connector_with_http_info( self, organization_id: StrictStr, create_source_connector_request: CreateSourceConnectorRequest, + workspace_id: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -470,6 +476,8 @@ def create_source_connector_with_http_info( :type organization_id: str :param create_source_connector_request: (required) :type create_source_connector_request: CreateSourceConnectorRequest + :param workspace_id: + :type workspace_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 @@ -495,6 +503,7 @@ def create_source_connector_with_http_info( _param = self._create_source_connector_serialize( organization_id=organization_id, create_source_connector_request=create_source_connector_request, + workspace_id=workspace_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -525,6 +534,7 @@ def create_source_connector_without_preload_content( self, organization_id: StrictStr, create_source_connector_request: CreateSourceConnectorRequest, + workspace_id: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -546,6 +556,8 @@ def create_source_connector_without_preload_content( :type organization_id: str :param create_source_connector_request: (required) :type create_source_connector_request: CreateSourceConnectorRequest + :param workspace_id: + :type workspace_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 @@ -571,6 +583,7 @@ def create_source_connector_without_preload_content( _param = self._create_source_connector_serialize( organization_id=organization_id, create_source_connector_request=create_source_connector_request, + workspace_id=workspace_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -596,6 +609,7 @@ def _create_source_connector_serialize( self, organization_id, create_source_connector_request, + workspace_id, _request_auth, _content_type, _headers, @@ -620,6 +634,10 @@ def _create_source_connector_serialize( if organization_id is not None: _path_params['organizationId'] = organization_id # process the query parameters + if workspace_id is not None: + + _query_params.append(('workspaceId', workspace_id)) + # process the header parameters # process the form parameters # process the body parameter @@ -1577,6 +1595,7 @@ def _get_source_connector_serialize( def get_source_connectors( self, organization_id: StrictStr, + workspace_id: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1596,6 +1615,8 @@ def get_source_connectors( :param organization_id: (required) :type organization_id: str + :param workspace_id: + :type workspace_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 @@ -1620,6 +1641,7 @@ def get_source_connectors( _param = self._get_source_connectors_serialize( organization_id=organization_id, + workspace_id=workspace_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1649,6 +1671,7 @@ def get_source_connectors( def get_source_connectors_with_http_info( self, organization_id: StrictStr, + workspace_id: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1668,6 +1691,8 @@ def get_source_connectors_with_http_info( :param organization_id: (required) :type organization_id: str + :param workspace_id: + :type workspace_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 @@ -1692,6 +1717,7 @@ def get_source_connectors_with_http_info( _param = self._get_source_connectors_serialize( organization_id=organization_id, + workspace_id=workspace_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1721,6 +1747,7 @@ def get_source_connectors_with_http_info( def get_source_connectors_without_preload_content( self, organization_id: StrictStr, + workspace_id: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1740,6 +1767,8 @@ def get_source_connectors_without_preload_content( :param organization_id: (required) :type organization_id: str + :param workspace_id: + :type workspace_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 @@ -1764,6 +1793,7 @@ def get_source_connectors_without_preload_content( _param = self._get_source_connectors_serialize( organization_id=organization_id, + workspace_id=workspace_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1788,6 +1818,7 @@ def get_source_connectors_without_preload_content( def _get_source_connectors_serialize( self, organization_id, + workspace_id, _request_auth, _content_type, _headers, @@ -1812,6 +1843,10 @@ def _get_source_connectors_serialize( if organization_id is not None: _path_params['organizationId'] = organization_id # process the query parameters + if workspace_id is not None: + + _query_params.append(('workspaceId', workspace_id)) + # process the header parameters # process the form parameters # process the body parameter diff --git a/src/python/vectorize_client/models/__init__.py b/src/python/vectorize_client/models/__init__.py index e497e89..faada95 100644 --- a/src/python/vectorize_client/models/__init__.py +++ b/src/python/vectorize_client/models/__init__.py @@ -63,11 +63,8 @@ from vectorize_client.models.datastax_config import DATASTAXConfig from vectorize_client.models.discord_auth_config import DISCORDAuthConfig from vectorize_client.models.discord_config import DISCORDConfig -from vectorize_client.models.dropbox_auth_config import DROPBOXAuthConfig +from vectorize_client.models.docusign_config import DOCUSIGNConfig from vectorize_client.models.dropbox_config import DROPBOXConfig -from vectorize_client.models.dropboxoauth_auth_config import DROPBOXOAUTHAuthConfig -from vectorize_client.models.dropboxoauthmulti_auth_config import DROPBOXOAUTHMULTIAuthConfig -from vectorize_client.models.dropboxoauthmulticustom_auth_config import DROPBOXOAUTHMULTICUSTOMAuthConfig from vectorize_client.models.datastax import Datastax from vectorize_client.models.datastax1 import Datastax1 from vectorize_client.models.deep_research_result import DeepResearchResult @@ -84,10 +81,6 @@ from vectorize_client.models.discord import Discord from vectorize_client.models.discord1 import Discord1 from vectorize_client.models.document import Document -from vectorize_client.models.dropbox import Dropbox -from vectorize_client.models.dropbox_oauth import DropboxOauth -from vectorize_client.models.dropbox_oauth_multi import DropboxOauthMulti -from vectorize_client.models.dropbox_oauth_multi_custom import DropboxOauthMultiCustom from vectorize_client.models.elastic_auth_config import ELASTICAuthConfig from vectorize_client.models.elastic_config import ELASTICConfig from vectorize_client.models.elastic import Elastic @@ -111,14 +104,10 @@ from vectorize_client.models.gcs_config import GCSConfig from vectorize_client.models.github_auth_config import GITHUBAuthConfig from vectorize_client.models.github_config import GITHUBConfig -from vectorize_client.models.gmail_auth_config import GMAILAuthConfig from vectorize_client.models.gmail_config import GMAILConfig from vectorize_client.models.googledrive_auth_config import GOOGLEDRIVEAuthConfig from vectorize_client.models.googledrive_config import GOOGLEDRIVEConfig -from vectorize_client.models.googledriveoauth_auth_config import GOOGLEDRIVEOAUTHAuthConfig from vectorize_client.models.googledriveoauth_config import GOOGLEDRIVEOAUTHConfig -from vectorize_client.models.googledriveoauthmulti_auth_config import GOOGLEDRIVEOAUTHMULTIAuthConfig -from vectorize_client.models.googledriveoauthmulticustom_auth_config import GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig from vectorize_client.models.googledriveoauthmulticustom_config import GOOGLEDRIVEOAUTHMULTICUSTOMConfig from vectorize_client.models.googledriveoauthmulti_config import GOOGLEDRIVEOAUTHMULTIConfig from vectorize_client.models.gcs import Gcs @@ -137,12 +126,7 @@ from vectorize_client.models.github1 import Github1 from vectorize_client.models.google_drive import GoogleDrive from vectorize_client.models.google_drive1 import GoogleDrive1 -from vectorize_client.models.google_drive_oauth import GoogleDriveOauth -from vectorize_client.models.google_drive_oauth_multi import GoogleDriveOauthMulti -from vectorize_client.models.google_drive_oauth_multi_custom import GoogleDriveOauthMultiCustom -from vectorize_client.models.intercom_auth_config import INTERCOMAuthConfig from vectorize_client.models.intercom_config import INTERCOMConfig -from vectorize_client.models.intercom import Intercom from vectorize_client.models.milvus_auth_config import MILVUSAuthConfig from vectorize_client.models.milvus_config import MILVUSConfig from vectorize_client.models.metadata_extraction_strategy import MetadataExtractionStrategy @@ -150,13 +134,7 @@ from vectorize_client.models.milvus import Milvus from vectorize_client.models.milvus1 import Milvus1 from vectorize_client.models.n8_n_config import N8NConfig -from vectorize_client.models.notion_auth_config import NOTIONAuthConfig from vectorize_client.models.notion_config import NOTIONConfig -from vectorize_client.models.notionoauthmulti_auth_config import NOTIONOAUTHMULTIAuthConfig -from vectorize_client.models.notionoauthmulticustom_auth_config import NOTIONOAUTHMULTICUSTOMAuthConfig -from vectorize_client.models.notion import Notion -from vectorize_client.models.notion_oauth_multi import NotionOauthMulti -from vectorize_client.models.notion_oauth_multi_custom import NotionOauthMultiCustom from vectorize_client.models.onedrive_auth_config import ONEDRIVEAuthConfig from vectorize_client.models.onedrive_config import ONEDRIVEConfig from vectorize_client.models.openai_auth_config import OPENAIAuthConfig diff --git a/src/python/vectorize_client/models/docusign_config.py b/src/python/vectorize_client/models/docusign_config.py new file mode 100644 index 0000000..70638c2 --- /dev/null +++ b/src/python/vectorize_client/models/docusign_config.py @@ -0,0 +1,120 @@ +# coding: utf-8 + +""" + Vectorize API + + API for Vectorize services (Beta) + + The version of the OpenAPI document: 0.1.2 + 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 datetime import date +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class DOCUSIGNConfig(BaseModel): + """ + Configuration for DocuSign connector + """ # noqa: E501 + envelope_statuses: Optional[List[StrictStr]] = Field(default=None, description="Envelope Statuses. Filter envelopes by status", alias="envelope-statuses") + from_date: date = Field(description="Created From Date. Include envelopes created on or after this date. Example: Enter start date (YYYY-MM-DD)", alias="from-date") + to_date: Optional[date] = Field(default=None, description="Created To Date. Include envelopes that were last updated up to this date. Example: Enter end date (YYYY-MM-DD)", alias="to-date") + folder_ids: Optional[List[StrictStr]] = Field(default=None, description="Folder Names. Select which DocuSign folders to include in the import") + max_documents: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Max Documents. Leave blank for no limit, or specify a maximum number. Example: Enter maximum number of documents to retrieve (leave blank for no limit)", alias="max-documents") + search_text: Optional[StrictStr] = Field(default=None, description="Search Text. Filter envelopes containing this text in their content. Example: Enter text to search within envelope content", alias="search-text") + __properties: ClassVar[List[str]] = ["envelope-statuses", "from-date", "to-date", "folder_ids", "max-documents", "search-text"] + + @field_validator('envelope_statuses') + def envelope_statuses_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['completed', 'correct', 'created', 'declined', 'delivered', 'sent', 'signed', 'voided', 'all']): + raise ValueError("each list item must be one of ('completed', 'correct', 'created', 'declined', 'delivered', 'sent', 'signed', 'voided', 'all')") + return value + + @field_validator('folder_ids') + def folder_ids_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['inbox', 'sentitems', 'draft', 'recyclebin', 'awaiting_my_signature', 'completed', 'out_for_signature', 'waiting_for_others', 'expiring_soon', 'all']): + raise ValueError("each list item must be one of ('inbox', 'sentitems', 'draft', 'recyclebin', 'awaiting_my_signature', 'completed', 'out_for_signature', 'waiting_for_others', 'expiring_soon', 'all')") + 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 DOCUSIGNConfig 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 DOCUSIGNConfig from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "envelope-statuses": obj.get("envelope-statuses"), + "from-date": obj.get("from-date"), + "to-date": obj.get("to-date"), + "folder_ids": obj.get("folder_ids"), + "max-documents": obj.get("max-documents"), + "search-text": obj.get("search-text") + }) + return _obj + + diff --git a/src/python/vectorize_client/models/dropbox.py b/src/python/vectorize_client/models/dropbox.py deleted file mode 100644 index 9b043d8..0000000 --- a/src/python/vectorize_client/models/dropbox.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Vectorize API - - API for Vectorize services (Beta) - - The version of the OpenAPI document: 0.1.2 - 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, Optional -from vectorize_client.models.dropbox_auth_config import DROPBOXAuthConfig -from typing import Optional, Set -from typing_extensions import Self - -class Dropbox(BaseModel): - """ - Dropbox - """ # noqa: E501 - config: Optional[DROPBOXAuthConfig] = None - __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 Dropbox 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 config - if self.config: - _dict['config'] = self.config.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of Dropbox from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "config": DROPBOXAuthConfig.from_dict(obj["config"]) if obj.get("config") is not None else None - }) - return _obj - - diff --git a/src/python/vectorize_client/models/dropbox_auth_config.py b/src/python/vectorize_client/models/dropbox_auth_config.py deleted file mode 100644 index 2c957d3..0000000 --- a/src/python/vectorize_client/models/dropbox_auth_config.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Vectorize API - - API for Vectorize services (Beta) - - The version of the OpenAPI document: 0.1.2 - 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, field_validator -from typing import Any, ClassVar, Dict, List -from typing_extensions import Annotated -from typing import Optional, Set -from typing_extensions import Self - -class DROPBOXAuthConfig(BaseModel): - """ - Authentication configuration for Dropbox (Legacy) - """ # noqa: E501 - refresh_token: Annotated[str, Field(strict=True)] = Field(description="Connect Dropbox to Vectorize. Example: Authorize", alias="refresh-token") - __properties: ClassVar[List[str]] = ["refresh-token"] - - @field_validator('refresh_token') - def refresh_token_validate_regular_expression(cls, value): - """Validates the regular expression""" - if not re.match(r"^\S.*\S$|^\S$", value): - raise ValueError(r"must validate the regular expression /^\S.*\S$|^\S$/") - 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 DROPBOXAuthConfig 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 DROPBOXAuthConfig from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "refresh-token": obj.get("refresh-token") - }) - return _obj - - diff --git a/src/python/vectorize_client/models/dropbox_oauth.py b/src/python/vectorize_client/models/dropbox_oauth.py deleted file mode 100644 index 9056d7e..0000000 --- a/src/python/vectorize_client/models/dropbox_oauth.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Vectorize API - - API for Vectorize services (Beta) - - The version of the OpenAPI document: 0.1.2 - 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, Optional -from vectorize_client.models.dropboxoauth_auth_config import DROPBOXOAUTHAuthConfig -from typing import Optional, Set -from typing_extensions import Self - -class DropboxOauth(BaseModel): - """ - DropboxOauth - """ # noqa: E501 - config: Optional[DROPBOXOAUTHAuthConfig] = None - __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 DropboxOauth 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 config - if self.config: - _dict['config'] = self.config.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DropboxOauth from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "config": DROPBOXOAUTHAuthConfig.from_dict(obj["config"]) if obj.get("config") is not None else None - }) - return _obj - - diff --git a/src/python/vectorize_client/models/dropbox_oauth_multi.py b/src/python/vectorize_client/models/dropbox_oauth_multi.py deleted file mode 100644 index 3dbdd33..0000000 --- a/src/python/vectorize_client/models/dropbox_oauth_multi.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Vectorize API - - API for Vectorize services (Beta) - - The version of the OpenAPI document: 0.1.2 - 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, Optional -from vectorize_client.models.dropboxoauthmulti_auth_config import DROPBOXOAUTHMULTIAuthConfig -from typing import Optional, Set -from typing_extensions import Self - -class DropboxOauthMulti(BaseModel): - """ - DropboxOauthMulti - """ # noqa: E501 - config: Optional[DROPBOXOAUTHMULTIAuthConfig] = None - __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 DropboxOauthMulti 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 config - if self.config: - _dict['config'] = self.config.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DropboxOauthMulti from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "config": DROPBOXOAUTHMULTIAuthConfig.from_dict(obj["config"]) if obj.get("config") is not None else None - }) - return _obj - - diff --git a/src/python/vectorize_client/models/dropbox_oauth_multi_custom.py b/src/python/vectorize_client/models/dropbox_oauth_multi_custom.py deleted file mode 100644 index ef75c5a..0000000 --- a/src/python/vectorize_client/models/dropbox_oauth_multi_custom.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Vectorize API - - API for Vectorize services (Beta) - - The version of the OpenAPI document: 0.1.2 - 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, Optional -from vectorize_client.models.dropboxoauthmulticustom_auth_config import DROPBOXOAUTHMULTICUSTOMAuthConfig -from typing import Optional, Set -from typing_extensions import Self - -class DropboxOauthMultiCustom(BaseModel): - """ - DropboxOauthMultiCustom - """ # noqa: E501 - config: Optional[DROPBOXOAUTHMULTICUSTOMAuthConfig] = None - __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 DropboxOauthMultiCustom 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 config - if self.config: - _dict['config'] = self.config.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DropboxOauthMultiCustom from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "config": DROPBOXOAUTHMULTICUSTOMAuthConfig.from_dict(obj["config"]) if obj.get("config") is not None else None - }) - return _obj - - diff --git a/src/python/vectorize_client/models/dropboxoauth_auth_config.py b/src/python/vectorize_client/models/dropboxoauth_auth_config.py deleted file mode 100644 index 19cb4fc..0000000 --- a/src/python/vectorize_client/models/dropboxoauth_auth_config.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Vectorize API - - API for Vectorize services (Beta) - - The version of the OpenAPI document: 0.1.2 - 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 DROPBOXOAUTHAuthConfig(BaseModel): - """ - Authentication configuration for Dropbox OAuth - """ # noqa: E501 - authorized_user: Optional[StrictStr] = Field(default=None, description="Authorized User", alias="authorized-user") - selection_details: StrictStr = Field(description="Connect Dropbox to Vectorize. Example: Authorize", alias="selection-details") - edited_users: Optional[Dict[str, Any]] = Field(default=None, alias="editedUsers") - reconnect_users: Optional[Dict[str, Any]] = Field(default=None, alias="reconnectUsers") - __properties: ClassVar[List[str]] = ["authorized-user", "selection-details", "editedUsers", "reconnectUsers"] - - 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 DROPBOXOAUTHAuthConfig 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 DROPBOXOAUTHAuthConfig from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "authorized-user": obj.get("authorized-user"), - "selection-details": obj.get("selection-details"), - "editedUsers": obj.get("editedUsers"), - "reconnectUsers": obj.get("reconnectUsers") - }) - return _obj - - diff --git a/src/python/vectorize_client/models/dropboxoauthmulti_auth_config.py b/src/python/vectorize_client/models/dropboxoauthmulti_auth_config.py deleted file mode 100644 index dd846e7..0000000 --- a/src/python/vectorize_client/models/dropboxoauthmulti_auth_config.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Vectorize API - - API for Vectorize services (Beta) - - The version of the OpenAPI document: 0.1.2 - 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 DROPBOXOAUTHMULTIAuthConfig(BaseModel): - """ - Authentication configuration for Dropbox Multi-User (Vectorize) - """ # noqa: E501 - authorized_users: Optional[List[StrictStr]] = Field(default=None, description="Authorized Users", alias="authorized-users") - edited_users: Optional[Dict[str, Any]] = Field(default=None, alias="editedUsers") - deleted_users: Optional[Dict[str, Any]] = Field(default=None, alias="deletedUsers") - __properties: ClassVar[List[str]] = ["authorized-users", "editedUsers", "deletedUsers"] - - 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 DROPBOXOAUTHMULTIAuthConfig 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 DROPBOXOAUTHMULTIAuthConfig from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "authorized-users": obj.get("authorized-users"), - "editedUsers": obj.get("editedUsers"), - "deletedUsers": obj.get("deletedUsers") - }) - return _obj - - diff --git a/src/python/vectorize_client/models/dropboxoauthmulticustom_auth_config.py b/src/python/vectorize_client/models/dropboxoauthmulticustom_auth_config.py deleted file mode 100644 index 90dc6ca..0000000 --- a/src/python/vectorize_client/models/dropboxoauthmulticustom_auth_config.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Vectorize API - - API for Vectorize services (Beta) - - The version of the OpenAPI document: 0.1.2 - 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, SecretStr, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class DROPBOXOAUTHMULTICUSTOMAuthConfig(BaseModel): - """ - Authentication configuration for Dropbox Multi-User (White Label) - """ # noqa: E501 - app_key: SecretStr = Field(description="Dropbox App Key. Example: Enter App Key", alias="app-key") - app_secret: SecretStr = Field(description="Dropbox App Secret. Example: Enter App Secret", alias="app-secret") - authorized_users: Optional[List[StrictStr]] = Field(default=None, description="Authorized Users", alias="authorized-users") - edited_users: Optional[Dict[str, Any]] = Field(default=None, alias="editedUsers") - deleted_users: Optional[Dict[str, Any]] = Field(default=None, alias="deletedUsers") - __properties: ClassVar[List[str]] = ["app-key", "app-secret", "authorized-users", "editedUsers", "deletedUsers"] - - 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 DROPBOXOAUTHMULTICUSTOMAuthConfig 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 DROPBOXOAUTHMULTICUSTOMAuthConfig from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "app-key": obj.get("app-key"), - "app-secret": obj.get("app-secret"), - "authorized-users": obj.get("authorized-users"), - "editedUsers": obj.get("editedUsers"), - "deletedUsers": obj.get("deletedUsers") - }) - return _obj - - diff --git a/src/python/vectorize_client/models/fireflies_config.py b/src/python/vectorize_client/models/fireflies_config.py index e0fe60a..f9f538a 100644 --- a/src/python/vectorize_client/models/fireflies_config.py +++ b/src/python/vectorize_client/models/fireflies_config.py @@ -33,7 +33,7 @@ class FIREFLIESConfig(BaseModel): title_filter: Optional[StrictStr] = Field(default=None, description="Title Filter. Only include meetings with this text in the title. Example: Enter meeting title", alias="title-filter") participant_filter_type: StrictStr = Field(alias="participant-filter-type") participant_filter: Optional[StrictStr] = Field(default=None, description="Participant's Email Filter. Include meetings where these participants were invited. Example: Enter participant email", alias="participant-filter") - max_meetings: Optional[Union[StrictFloat, StrictInt]] = Field(default=-1, description="Max Meetings. Enter -1 for all available meetings, or specify a limit. Example: Enter maximum number of meetings to retrieve. (-1 for all)", alias="max-meetings") + max_meetings: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Max Meetings. Leave blank for no limit, or specify a maximum number. Example: Enter maximum number of meetings to retrieve (leave blank for no limit)", alias="max-meetings") __properties: ClassVar[List[str]] = ["start-date", "end-date", "title-filter-type", "title-filter", "participant-filter-type", "participant-filter", "max-meetings"] model_config = ConfigDict( @@ -93,7 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "title-filter": obj.get("title-filter"), "participant-filter-type": obj.get("participant-filter-type") if obj.get("participant-filter-type") is not None else 'AND', "participant-filter": obj.get("participant-filter"), - "max-meetings": obj.get("max-meetings") if obj.get("max-meetings") is not None else -1 + "max-meetings": obj.get("max-meetings") }) return _obj diff --git a/src/python/vectorize_client/models/github_config.py b/src/python/vectorize_client/models/github_config.py index e93f40c..d653c83 100644 --- a/src/python/vectorize_client/models/github_config.py +++ b/src/python/vectorize_client/models/github_config.py @@ -34,7 +34,7 @@ class GITHUBConfig(BaseModel): include_issues: StrictBool = Field(description="Include Issues", alias="include-issues") issue_status: StrictStr = Field(description="Issue Status", alias="issue-status") issue_labels: Optional[List[StrictStr]] = Field(default=None, description="Issue Labels. Example: Optionally filter by label. E.g. bug", alias="issue-labels") - max_items: Union[StrictFloat, StrictInt] = Field(description="Max Items. Example: Enter maximum number of items to fetch", alias="max-items") + max_items: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Max Items. Leave blank for no limit, or specify a maximum number. Example: Enter maximum number of items to fetch (leave blank for no limit)", alias="max-items") created_after: Optional[date] = Field(default=None, description="Created After. Filter for items created after this date. Example: Enter a date: Example 2012-12-31", alias="created-after") __properties: ClassVar[List[str]] = ["repositories", "include-pull-requests", "pull-request-status", "pull-request-labels", "include-issues", "issue-status", "issue-labels", "max-items", "created-after"] @@ -110,7 +110,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "include-issues": obj.get("include-issues") if obj.get("include-issues") is not None else True, "issue-status": obj.get("issue-status") if obj.get("issue-status") is not None else 'all', "issue-labels": obj.get("issue-labels"), - "max-items": obj.get("max-items") if obj.get("max-items") is not None else 1000, + "max-items": obj.get("max-items"), "created-after": obj.get("created-after") }) return _obj diff --git a/src/python/vectorize_client/models/gmail_auth_config.py b/src/python/vectorize_client/models/gmail_auth_config.py deleted file mode 100644 index 91f9a91..0000000 --- a/src/python/vectorize_client/models/gmail_auth_config.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - Vectorize API - - API for Vectorize services (Beta) - - The version of the OpenAPI document: 0.1.2 - 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, SecretStr -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self - -class GMAILAuthConfig(BaseModel): - """ - Authentication configuration for Gmail - """ # noqa: E501 - refresh_token: SecretStr = Field(description="Connect Gmail to Vectorize. Example: Authorize", alias="refresh-token") - __properties: ClassVar[List[str]] = ["refresh-token"] - - 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 GMAILAuthConfig 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 GMAILAuthConfig from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "refresh-token": obj.get("refresh-token") - }) - return _obj - - diff --git a/src/python/vectorize_client/models/gmail_config.py b/src/python/vectorize_client/models/gmail_config.py index 575af0d..e94acaf 100644 --- a/src/python/vectorize_client/models/gmail_config.py +++ b/src/python/vectorize_client/models/gmail_config.py @@ -40,7 +40,7 @@ class GMAILConfig(BaseModel): subject: Optional[StrictStr] = Field(default=None, description="Subject Filter. Include emails with these keywords in the subject line. Example: Add subject keywords") start_date: Optional[date] = Field(default=None, description="Start Date. Only include emails sent after this date (exclusive). Format: YYYY-MM-DD.. Example: e.g., 2024-01-01", alias="start-date") end_date: Optional[date] = Field(default=None, description="End Date. Only include emails sent before this date (exclusive). Format: YYYY-MM-DD.. Example: e.g., 2024-01-31", alias="end-date") - max_results: Optional[Union[StrictFloat, StrictInt]] = Field(default=-1, description="Maximum Results. Enter -1 for all available emails, or specify a limit. . Example: Enter maximum number of threads to retrieve", alias="max-results") + max_results: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Maximum Results. Leave blank for no limit, or specify a maximum number. Example: Enter maximum number of threads to retrieve (leave blank for no limit)", alias="max-results") messages_to_fetch: Optional[List[StrictStr]] = Field(default=None, description="Messages to Fetch. Select which categories of messages to include in the import.", alias="messages-to-fetch") label_ids: Optional[StrictStr] = Field(default=None, description="Label Filters. Include emails with these labels. Example: e.g., INBOX, IMPORTANT, CATEGORY_SOCIAL", alias="label-ids") __properties: ClassVar[List[str]] = ["from-filter-type", "to-filter-type", "cc-filter-type", "subject-filter-type", "label-filter-type", "from", "to", "cc", "include-attachments", "subject", "start-date", "end-date", "max-results", "messages-to-fetch", "label-ids"] @@ -149,7 +149,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "subject": obj.get("subject"), "start-date": obj.get("start-date"), "end-date": obj.get("end-date"), - "max-results": obj.get("max-results") if obj.get("max-results") is not None else -1, + "max-results": obj.get("max-results"), "messages-to-fetch": obj.get("messages-to-fetch"), "label-ids": obj.get("label-ids") }) diff --git a/src/python/vectorize_client/models/google_drive_oauth.py b/src/python/vectorize_client/models/google_drive_oauth.py deleted file mode 100644 index fdafbfd..0000000 --- a/src/python/vectorize_client/models/google_drive_oauth.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Vectorize API - - API for Vectorize services (Beta) - - The version of the OpenAPI document: 0.1.2 - 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, Optional -from vectorize_client.models.googledriveoauth_auth_config import GOOGLEDRIVEOAUTHAuthConfig -from typing import Optional, Set -from typing_extensions import Self - -class GoogleDriveOauth(BaseModel): - """ - GoogleDriveOauth - """ # noqa: E501 - config: Optional[GOOGLEDRIVEOAUTHAuthConfig] = None - __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 GoogleDriveOauth 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 config - if self.config: - _dict['config'] = self.config.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GoogleDriveOauth from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "config": GOOGLEDRIVEOAUTHAuthConfig.from_dict(obj["config"]) if obj.get("config") is not None else None - }) - return _obj - - diff --git a/src/python/vectorize_client/models/google_drive_oauth_multi.py b/src/python/vectorize_client/models/google_drive_oauth_multi.py deleted file mode 100644 index e9ba0df..0000000 --- a/src/python/vectorize_client/models/google_drive_oauth_multi.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Vectorize API - - API for Vectorize services (Beta) - - The version of the OpenAPI document: 0.1.2 - 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, Optional -from vectorize_client.models.googledriveoauthmulti_auth_config import GOOGLEDRIVEOAUTHMULTIAuthConfig -from typing import Optional, Set -from typing_extensions import Self - -class GoogleDriveOauthMulti(BaseModel): - """ - GoogleDriveOauthMulti - """ # noqa: E501 - config: Optional[GOOGLEDRIVEOAUTHMULTIAuthConfig] = None - __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 GoogleDriveOauthMulti 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 config - if self.config: - _dict['config'] = self.config.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GoogleDriveOauthMulti from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "config": GOOGLEDRIVEOAUTHMULTIAuthConfig.from_dict(obj["config"]) if obj.get("config") is not None else None - }) - return _obj - - diff --git a/src/python/vectorize_client/models/google_drive_oauth_multi_custom.py b/src/python/vectorize_client/models/google_drive_oauth_multi_custom.py deleted file mode 100644 index 7a3008a..0000000 --- a/src/python/vectorize_client/models/google_drive_oauth_multi_custom.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Vectorize API - - API for Vectorize services (Beta) - - The version of the OpenAPI document: 0.1.2 - 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, Optional -from vectorize_client.models.googledriveoauthmulticustom_auth_config import GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig -from typing import Optional, Set -from typing_extensions import Self - -class GoogleDriveOauthMultiCustom(BaseModel): - """ - GoogleDriveOauthMultiCustom - """ # noqa: E501 - config: Optional[GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig] = None - __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 GoogleDriveOauthMultiCustom 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 config - if self.config: - _dict['config'] = self.config.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GoogleDriveOauthMultiCustom from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "config": GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig.from_dict(obj["config"]) if obj.get("config") is not None else None - }) - return _obj - - diff --git a/src/python/vectorize_client/models/googledriveoauth_auth_config.py b/src/python/vectorize_client/models/googledriveoauth_auth_config.py deleted file mode 100644 index 8c5e522..0000000 --- a/src/python/vectorize_client/models/googledriveoauth_auth_config.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - Vectorize API - - API for Vectorize services (Beta) - - The version of the OpenAPI document: 0.1.2 - 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 GOOGLEDRIVEOAUTHAuthConfig(BaseModel): - """ - Authentication configuration for Google Drive OAuth - """ # noqa: E501 - authorized_user: Optional[StrictStr] = Field(default=None, description="Authorized User", alias="authorized-user") - selection_details: StrictStr = Field(description="Connect Google Drive to Vectorize. Example: Authorize", alias="selection-details") - edited_users: Optional[Dict[str, Any]] = Field(default=None, alias="editedUsers") - reconnect_users: Optional[Dict[str, Any]] = Field(default=None, alias="reconnectUsers") - __properties: ClassVar[List[str]] = ["authorized-user", "selection-details", "editedUsers", "reconnectUsers"] - - 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 GOOGLEDRIVEOAUTHAuthConfig 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 GOOGLEDRIVEOAUTHAuthConfig from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "authorized-user": obj.get("authorized-user"), - "selection-details": obj.get("selection-details"), - "editedUsers": obj.get("editedUsers"), - "reconnectUsers": obj.get("reconnectUsers") - }) - return _obj - - diff --git a/src/python/vectorize_client/models/googledriveoauthmulti_auth_config.py b/src/python/vectorize_client/models/googledriveoauthmulti_auth_config.py deleted file mode 100644 index 6501745..0000000 --- a/src/python/vectorize_client/models/googledriveoauthmulti_auth_config.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Vectorize API - - API for Vectorize services (Beta) - - The version of the OpenAPI document: 0.1.2 - 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 GOOGLEDRIVEOAUTHMULTIAuthConfig(BaseModel): - """ - Authentication configuration for Google Drive Multi-User (Vectorize) - """ # noqa: E501 - authorized_users: Optional[List[StrictStr]] = Field(default=None, description="Authorized Users", alias="authorized-users") - edited_users: Optional[Dict[str, Any]] = Field(default=None, alias="editedUsers") - deleted_users: Optional[Dict[str, Any]] = Field(default=None, alias="deletedUsers") - __properties: ClassVar[List[str]] = ["authorized-users", "editedUsers", "deletedUsers"] - - 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 GOOGLEDRIVEOAUTHMULTIAuthConfig 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 GOOGLEDRIVEOAUTHMULTIAuthConfig from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "authorized-users": obj.get("authorized-users"), - "editedUsers": obj.get("editedUsers"), - "deletedUsers": obj.get("deletedUsers") - }) - return _obj - - diff --git a/src/python/vectorize_client/models/googledriveoauthmulticustom_auth_config.py b/src/python/vectorize_client/models/googledriveoauthmulticustom_auth_config.py deleted file mode 100644 index 9a013f8..0000000 --- a/src/python/vectorize_client/models/googledriveoauthmulticustom_auth_config.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Vectorize API - - API for Vectorize services (Beta) - - The version of the OpenAPI document: 0.1.2 - 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, SecretStr, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig(BaseModel): - """ - Authentication configuration for Google Drive Multi-User (White Label) - """ # noqa: E501 - oauth2_client_id: SecretStr = Field(description="OAuth2 Client Id. Example: Enter Client Id", alias="oauth2-client-id") - oauth2_client_secret: SecretStr = Field(description="OAuth2 Client Secret. Example: Enter Client Secret", alias="oauth2-client-secret") - authorized_users: Optional[List[StrictStr]] = Field(default=None, description="Authorized Users", alias="authorized-users") - edited_users: Optional[Dict[str, Any]] = Field(default=None, alias="editedUsers") - deleted_users: Optional[Dict[str, Any]] = Field(default=None, alias="deletedUsers") - __properties: ClassVar[List[str]] = ["oauth2-client-id", "oauth2-client-secret", "authorized-users", "editedUsers", "deletedUsers"] - - 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 GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig 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 GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "oauth2-client-id": obj.get("oauth2-client-id"), - "oauth2-client-secret": obj.get("oauth2-client-secret"), - "authorized-users": obj.get("authorized-users"), - "editedUsers": obj.get("editedUsers"), - "deletedUsers": obj.get("deletedUsers") - }) - return _obj - - diff --git a/src/python/vectorize_client/models/intercom.py b/src/python/vectorize_client/models/intercom.py deleted file mode 100644 index 62b5631..0000000 --- a/src/python/vectorize_client/models/intercom.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Vectorize API - - API for Vectorize services (Beta) - - The version of the OpenAPI document: 0.1.2 - 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, Optional -from vectorize_client.models.intercom_auth_config import INTERCOMAuthConfig -from typing import Optional, Set -from typing_extensions import Self - -class Intercom(BaseModel): - """ - Intercom - """ # noqa: E501 - config: Optional[INTERCOMAuthConfig] = None - __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 Intercom 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 config - if self.config: - _dict['config'] = self.config.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of Intercom from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "config": INTERCOMAuthConfig.from_dict(obj["config"]) if obj.get("config") is not None else None - }) - return _obj - - diff --git a/src/python/vectorize_client/models/intercom_auth_config.py b/src/python/vectorize_client/models/intercom_auth_config.py deleted file mode 100644 index a43cfff..0000000 --- a/src/python/vectorize_client/models/intercom_auth_config.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - Vectorize API - - API for Vectorize services (Beta) - - The version of the OpenAPI document: 0.1.2 - 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, SecretStr -from typing import Any, ClassVar, Dict, List -from typing import Optional, Set -from typing_extensions import Self - -class INTERCOMAuthConfig(BaseModel): - """ - Authentication configuration for Intercom - """ # noqa: E501 - token: SecretStr = Field(description="Access Token. Example: Authorize Intercom Access") - __properties: ClassVar[List[str]] = ["token"] - - 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 INTERCOMAuthConfig 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 INTERCOMAuthConfig from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "token": obj.get("token") - }) - return _obj - - diff --git a/src/python/vectorize_client/models/notion.py b/src/python/vectorize_client/models/notion.py deleted file mode 100644 index c71b137..0000000 --- a/src/python/vectorize_client/models/notion.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Vectorize API - - API for Vectorize services (Beta) - - The version of the OpenAPI document: 0.1.2 - 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, Optional -from vectorize_client.models.notion_auth_config import NOTIONAuthConfig -from typing import Optional, Set -from typing_extensions import Self - -class Notion(BaseModel): - """ - Notion - """ # noqa: E501 - config: Optional[NOTIONAuthConfig] = None - __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 Notion 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 config - if self.config: - _dict['config'] = self.config.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of Notion from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "config": NOTIONAuthConfig.from_dict(obj["config"]) if obj.get("config") is not None else None - }) - return _obj - - diff --git a/src/python/vectorize_client/models/notion_auth_config.py b/src/python/vectorize_client/models/notion_auth_config.py deleted file mode 100644 index 4e87bd1..0000000 --- a/src/python/vectorize_client/models/notion_auth_config.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Vectorize API - - API for Vectorize services (Beta) - - The version of the OpenAPI document: 0.1.2 - 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, SecretStr, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class NOTIONAuthConfig(BaseModel): - """ - Authentication configuration for Notion - """ # noqa: E501 - access_token: SecretStr = Field(description="Connect Notion to Vectorize - Note this will effect existing connections. test. Example: Authorize", alias="access-token") - s3id: Optional[StrictStr] = None - edited_token: Optional[StrictStr] = Field(default=None, alias="editedToken") - __properties: ClassVar[List[str]] = ["access-token", "s3id", "editedToken"] - - 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 NOTIONAuthConfig 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 NOTIONAuthConfig from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "access-token": obj.get("access-token"), - "s3id": obj.get("s3id"), - "editedToken": obj.get("editedToken") - }) - return _obj - - diff --git a/src/python/vectorize_client/models/notion_oauth_multi.py b/src/python/vectorize_client/models/notion_oauth_multi.py deleted file mode 100644 index be557af..0000000 --- a/src/python/vectorize_client/models/notion_oauth_multi.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Vectorize API - - API for Vectorize services (Beta) - - The version of the OpenAPI document: 0.1.2 - 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, Optional -from vectorize_client.models.notionoauthmulti_auth_config import NOTIONOAUTHMULTIAuthConfig -from typing import Optional, Set -from typing_extensions import Self - -class NotionOauthMulti(BaseModel): - """ - NotionOauthMulti - """ # noqa: E501 - config: Optional[NOTIONOAUTHMULTIAuthConfig] = None - __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 NotionOauthMulti 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 config - if self.config: - _dict['config'] = self.config.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of NotionOauthMulti from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "config": NOTIONOAUTHMULTIAuthConfig.from_dict(obj["config"]) if obj.get("config") is not None else None - }) - return _obj - - diff --git a/src/python/vectorize_client/models/notion_oauth_multi_custom.py b/src/python/vectorize_client/models/notion_oauth_multi_custom.py deleted file mode 100644 index 300f5aa..0000000 --- a/src/python/vectorize_client/models/notion_oauth_multi_custom.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Vectorize API - - API for Vectorize services (Beta) - - The version of the OpenAPI document: 0.1.2 - 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, Optional -from vectorize_client.models.notionoauthmulticustom_auth_config import NOTIONOAUTHMULTICUSTOMAuthConfig -from typing import Optional, Set -from typing_extensions import Self - -class NotionOauthMultiCustom(BaseModel): - """ - NotionOauthMultiCustom - """ # noqa: E501 - config: Optional[NOTIONOAUTHMULTICUSTOMAuthConfig] = None - __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 NotionOauthMultiCustom 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 config - if self.config: - _dict['config'] = self.config.to_dict() - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of NotionOauthMultiCustom from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "config": NOTIONOAUTHMULTICUSTOMAuthConfig.from_dict(obj["config"]) if obj.get("config") is not None else None - }) - return _obj - - diff --git a/src/python/vectorize_client/models/notionoauthmulti_auth_config.py b/src/python/vectorize_client/models/notionoauthmulti_auth_config.py deleted file mode 100644 index 41cb537..0000000 --- a/src/python/vectorize_client/models/notionoauthmulti_auth_config.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - Vectorize API - - API for Vectorize services (Beta) - - The version of the OpenAPI document: 0.1.2 - 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 NOTIONOAUTHMULTIAuthConfig(BaseModel): - """ - Authentication configuration for Notion Multi-User (Vectorize) - """ # noqa: E501 - authorized_users: Optional[List[StrictStr]] = Field(default=None, description="Authorized Users. Users who have authorized access to their Notion content", alias="authorized-users") - edited_users: Optional[Dict[str, Any]] = Field(default=None, alias="editedUsers") - deleted_users: Optional[Dict[str, Any]] = Field(default=None, alias="deletedUsers") - __properties: ClassVar[List[str]] = ["authorized-users", "editedUsers", "deletedUsers"] - - 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 NOTIONOAUTHMULTIAuthConfig 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 NOTIONOAUTHMULTIAuthConfig from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "authorized-users": obj.get("authorized-users"), - "editedUsers": obj.get("editedUsers"), - "deletedUsers": obj.get("deletedUsers") - }) - return _obj - - diff --git a/src/python/vectorize_client/models/notionoauthmulticustom_auth_config.py b/src/python/vectorize_client/models/notionoauthmulticustom_auth_config.py deleted file mode 100644 index 5f11f41..0000000 --- a/src/python/vectorize_client/models/notionoauthmulticustom_auth_config.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - Vectorize API - - API for Vectorize services (Beta) - - The version of the OpenAPI document: 0.1.2 - 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, SecretStr, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self - -class NOTIONOAUTHMULTICUSTOMAuthConfig(BaseModel): - """ - Authentication configuration for Notion Multi-User (White Label) - """ # noqa: E501 - client_id: SecretStr = Field(description="Notion Client ID. Example: Enter Client ID", alias="client-id") - client_secret: SecretStr = Field(description="Notion Client Secret. Example: Enter Client Secret", alias="client-secret") - authorized_users: Optional[List[StrictStr]] = Field(default=None, description="Authorized Users", alias="authorized-users") - edited_users: Optional[Dict[str, Any]] = Field(default=None, alias="editedUsers") - deleted_users: Optional[Dict[str, Any]] = Field(default=None, alias="deletedUsers") - __properties: ClassVar[List[str]] = ["client-id", "client-secret", "authorized-users", "editedUsers", "deletedUsers"] - - 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 NOTIONOAUTHMULTICUSTOMAuthConfig 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 NOTIONOAUTHMULTICUSTOMAuthConfig from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "client-id": obj.get("client-id"), - "client-secret": obj.get("client-secret"), - "authorized-users": obj.get("authorized-users"), - "editedUsers": obj.get("editedUsers"), - "deletedUsers": obj.get("deletedUsers") - }) - return _obj - - diff --git a/src/python/vectorize_client/models/source_connector_input.py b/src/python/vectorize_client/models/source_connector_input.py index 1db8f0f..b4c8fa5 100644 --- a/src/python/vectorize_client/models/source_connector_input.py +++ b/src/python/vectorize_client/models/source_connector_input.py @@ -35,8 +35,8 @@ class SourceConnectorInput(BaseModel): @field_validator('type') def type_validate_enum(cls, value): """Validates the enum""" - if value not in set(['AWS_S3', 'AZURE_BLOB', 'CONFLUENCE', 'DISCORD', 'DROPBOX', 'DROPBOX_OAUTH', 'DROPBOX_OAUTH_MULTI', 'DROPBOX_OAUTH_MULTI_CUSTOM', 'FILE_UPLOAD', 'GOOGLE_DRIVE_OAUTH', 'GOOGLE_DRIVE', 'GOOGLE_DRIVE_OAUTH_MULTI', 'GOOGLE_DRIVE_OAUTH_MULTI_CUSTOM', 'FIRECRAWL', 'GCS', 'INTERCOM', 'NOTION', 'NOTION_OAUTH_MULTI', 'NOTION_OAUTH_MULTI_CUSTOM', 'ONE_DRIVE', 'SHAREPOINT', 'WEB_CRAWLER', 'GITHUB', 'FIREFLIES', 'GMAIL']): - raise ValueError("must be one of enum values ('AWS_S3', 'AZURE_BLOB', 'CONFLUENCE', 'DISCORD', 'DROPBOX', 'DROPBOX_OAUTH', 'DROPBOX_OAUTH_MULTI', 'DROPBOX_OAUTH_MULTI_CUSTOM', 'FILE_UPLOAD', 'GOOGLE_DRIVE_OAUTH', 'GOOGLE_DRIVE', 'GOOGLE_DRIVE_OAUTH_MULTI', 'GOOGLE_DRIVE_OAUTH_MULTI_CUSTOM', 'FIRECRAWL', 'GCS', 'INTERCOM', 'NOTION', 'NOTION_OAUTH_MULTI', 'NOTION_OAUTH_MULTI_CUSTOM', 'ONE_DRIVE', 'SHAREPOINT', 'WEB_CRAWLER', 'GITHUB', 'FIREFLIES', 'GMAIL')") + if value not in set(['AWS_S3', 'AZURE_BLOB', 'CONFLUENCE', 'DISCORD', 'DROPBOX', 'DROPBOX_OAUTH', 'DROPBOX_OAUTH_MULTI', 'DROPBOX_OAUTH_MULTI_CUSTOM', 'FILE_UPLOAD', 'GOOGLE_DRIVE_OAUTH', 'GOOGLE_DRIVE', 'GOOGLE_DRIVE_OAUTH_MULTI', 'GOOGLE_DRIVE_OAUTH_MULTI_CUSTOM', 'FIRECRAWL', 'GCS', 'INTERCOM', 'NOTION', 'NOTION_OAUTH_MULTI', 'NOTION_OAUTH_MULTI_CUSTOM', 'ONE_DRIVE', 'SHAREPOINT', 'WEB_CRAWLER', 'GITHUB', 'FIREFLIES', 'DOCUSIGN', 'GMAIL']): + raise ValueError("must be one of enum values ('AWS_S3', 'AZURE_BLOB', 'CONFLUENCE', 'DISCORD', 'DROPBOX', 'DROPBOX_OAUTH', 'DROPBOX_OAUTH_MULTI', 'DROPBOX_OAUTH_MULTI_CUSTOM', 'FILE_UPLOAD', 'GOOGLE_DRIVE_OAUTH', 'GOOGLE_DRIVE', 'GOOGLE_DRIVE_OAUTH_MULTI', 'GOOGLE_DRIVE_OAUTH_MULTI_CUSTOM', 'FIRECRAWL', 'GCS', 'INTERCOM', 'NOTION', 'NOTION_OAUTH_MULTI', 'NOTION_OAUTH_MULTI_CUSTOM', 'ONE_DRIVE', 'SHAREPOINT', 'WEB_CRAWLER', 'GITHUB', 'FIREFLIES', 'DOCUSIGN', 'GMAIL')") return value model_config = ConfigDict( diff --git a/src/python/vectorize_client/models/source_connector_input_config.py b/src/python/vectorize_client/models/source_connector_input_config.py index bb69a8c..da26091 100644 --- a/src/python/vectorize_client/models/source_connector_input_config.py +++ b/src/python/vectorize_client/models/source_connector_input_config.py @@ -21,6 +21,7 @@ from vectorize_client.models.azureblob_config import AZUREBLOBConfig from vectorize_client.models.confluence_config import CONFLUENCEConfig from vectorize_client.models.discord_config import DISCORDConfig +from vectorize_client.models.docusign_config import DOCUSIGNConfig from vectorize_client.models.dropbox_config import DROPBOXConfig from vectorize_client.models.firecrawl_config import FIRECRAWLConfig from vectorize_client.models.fireflies_config import FIREFLIESConfig @@ -40,7 +41,7 @@ from typing import Union, List, Set, Optional, Dict from typing_extensions import Literal, Self -SOURCECONNECTORINPUTCONFIG_ONE_OF_SCHEMAS = ["AWSS3Config", "AZUREBLOBConfig", "CONFLUENCEConfig", "DISCORDConfig", "DROPBOXConfig", "FIRECRAWLConfig", "FIREFLIESConfig", "GCSConfig", "GITHUBConfig", "GMAILConfig", "GOOGLEDRIVEConfig", "GOOGLEDRIVEOAUTHConfig", "GOOGLEDRIVEOAUTHMULTICUSTOMConfig", "GOOGLEDRIVEOAUTHMULTIConfig", "INTERCOMConfig", "NOTIONConfig", "ONEDRIVEConfig", "SHAREPOINTConfig", "WEBCRAWLERConfig"] +SOURCECONNECTORINPUTCONFIG_ONE_OF_SCHEMAS = ["AWSS3Config", "AZUREBLOBConfig", "CONFLUENCEConfig", "DISCORDConfig", "DOCUSIGNConfig", "DROPBOXConfig", "FIRECRAWLConfig", "FIREFLIESConfig", "GCSConfig", "GITHUBConfig", "GMAILConfig", "GOOGLEDRIVEConfig", "GOOGLEDRIVEOAUTHConfig", "GOOGLEDRIVEOAUTHMULTICUSTOMConfig", "GOOGLEDRIVEOAUTHMULTIConfig", "INTERCOMConfig", "NOTIONConfig", "ONEDRIVEConfig", "SHAREPOINTConfig", "WEBCRAWLERConfig"] class SourceConnectorInputConfig(BaseModel): """ @@ -82,10 +83,12 @@ class SourceConnectorInputConfig(BaseModel): oneof_schema_17_validator: Optional[GITHUBConfig] = None # data type: FIREFLIESConfig oneof_schema_18_validator: Optional[FIREFLIESConfig] = None + # data type: DOCUSIGNConfig + oneof_schema_19_validator: Optional[DOCUSIGNConfig] = None # data type: GMAILConfig - oneof_schema_19_validator: Optional[GMAILConfig] = None - actual_instance: Optional[Union[AWSS3Config, AZUREBLOBConfig, CONFLUENCEConfig, DISCORDConfig, DROPBOXConfig, FIRECRAWLConfig, FIREFLIESConfig, GCSConfig, GITHUBConfig, GMAILConfig, GOOGLEDRIVEConfig, GOOGLEDRIVEOAUTHConfig, GOOGLEDRIVEOAUTHMULTICUSTOMConfig, GOOGLEDRIVEOAUTHMULTIConfig, INTERCOMConfig, NOTIONConfig, ONEDRIVEConfig, SHAREPOINTConfig, WEBCRAWLERConfig]] = None - one_of_schemas: Set[str] = { "AWSS3Config", "AZUREBLOBConfig", "CONFLUENCEConfig", "DISCORDConfig", "DROPBOXConfig", "FIRECRAWLConfig", "FIREFLIESConfig", "GCSConfig", "GITHUBConfig", "GMAILConfig", "GOOGLEDRIVEConfig", "GOOGLEDRIVEOAUTHConfig", "GOOGLEDRIVEOAUTHMULTICUSTOMConfig", "GOOGLEDRIVEOAUTHMULTIConfig", "INTERCOMConfig", "NOTIONConfig", "ONEDRIVEConfig", "SHAREPOINTConfig", "WEBCRAWLERConfig" } + oneof_schema_20_validator: Optional[GMAILConfig] = None + actual_instance: Optional[Union[AWSS3Config, AZUREBLOBConfig, CONFLUENCEConfig, DISCORDConfig, DOCUSIGNConfig, DROPBOXConfig, FIRECRAWLConfig, FIREFLIESConfig, GCSConfig, GITHUBConfig, GMAILConfig, GOOGLEDRIVEConfig, GOOGLEDRIVEOAUTHConfig, GOOGLEDRIVEOAUTHMULTICUSTOMConfig, GOOGLEDRIVEOAUTHMULTIConfig, INTERCOMConfig, NOTIONConfig, ONEDRIVEConfig, SHAREPOINTConfig, WEBCRAWLERConfig]] = None + one_of_schemas: Set[str] = { "AWSS3Config", "AZUREBLOBConfig", "CONFLUENCEConfig", "DISCORDConfig", "DOCUSIGNConfig", "DROPBOXConfig", "FIRECRAWLConfig", "FIREFLIESConfig", "GCSConfig", "GITHUBConfig", "GMAILConfig", "GOOGLEDRIVEConfig", "GOOGLEDRIVEOAUTHConfig", "GOOGLEDRIVEOAUTHMULTICUSTOMConfig", "GOOGLEDRIVEOAUTHMULTIConfig", "INTERCOMConfig", "NOTIONConfig", "ONEDRIVEConfig", "SHAREPOINTConfig", "WEBCRAWLERConfig" } model_config = ConfigDict( validate_assignment=True, @@ -198,6 +201,11 @@ def actual_instance_must_validate_oneof(cls, v): error_messages.append(f"Error! Input type `{type(v)}` is not `FIREFLIESConfig`") else: match += 1 + # validate data type: DOCUSIGNConfig + if not isinstance(v, DOCUSIGNConfig): + error_messages.append(f"Error! Input type `{type(v)}` is not `DOCUSIGNConfig`") + else: + match += 1 # validate data type: GMAILConfig if not isinstance(v, GMAILConfig): error_messages.append(f"Error! Input type `{type(v)}` is not `GMAILConfig`") @@ -205,10 +213,10 @@ def actual_instance_must_validate_oneof(cls, v): match += 1 if match > 1: # more than 1 match - raise ValueError("Multiple matches found when setting `actual_instance` in SourceConnectorInputConfig with oneOf schemas: AWSS3Config, AZUREBLOBConfig, CONFLUENCEConfig, DISCORDConfig, DROPBOXConfig, FIRECRAWLConfig, FIREFLIESConfig, GCSConfig, GITHUBConfig, GMAILConfig, GOOGLEDRIVEConfig, GOOGLEDRIVEOAUTHConfig, GOOGLEDRIVEOAUTHMULTICUSTOMConfig, GOOGLEDRIVEOAUTHMULTIConfig, INTERCOMConfig, NOTIONConfig, ONEDRIVEConfig, SHAREPOINTConfig, WEBCRAWLERConfig. Details: " + ", ".join(error_messages)) + raise ValueError("Multiple matches found when setting `actual_instance` in SourceConnectorInputConfig with oneOf schemas: AWSS3Config, AZUREBLOBConfig, CONFLUENCEConfig, DISCORDConfig, DOCUSIGNConfig, DROPBOXConfig, FIRECRAWLConfig, FIREFLIESConfig, GCSConfig, GITHUBConfig, GMAILConfig, GOOGLEDRIVEConfig, GOOGLEDRIVEOAUTHConfig, GOOGLEDRIVEOAUTHMULTICUSTOMConfig, GOOGLEDRIVEOAUTHMULTIConfig, INTERCOMConfig, NOTIONConfig, ONEDRIVEConfig, SHAREPOINTConfig, WEBCRAWLERConfig. Details: " + ", ".join(error_messages)) elif match == 0: # no match - raise ValueError("No match found when setting `actual_instance` in SourceConnectorInputConfig with oneOf schemas: AWSS3Config, AZUREBLOBConfig, CONFLUENCEConfig, DISCORDConfig, DROPBOXConfig, FIRECRAWLConfig, FIREFLIESConfig, GCSConfig, GITHUBConfig, GMAILConfig, GOOGLEDRIVEConfig, GOOGLEDRIVEOAUTHConfig, GOOGLEDRIVEOAUTHMULTICUSTOMConfig, GOOGLEDRIVEOAUTHMULTIConfig, INTERCOMConfig, NOTIONConfig, ONEDRIVEConfig, SHAREPOINTConfig, WEBCRAWLERConfig. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when setting `actual_instance` in SourceConnectorInputConfig with oneOf schemas: AWSS3Config, AZUREBLOBConfig, CONFLUENCEConfig, DISCORDConfig, DOCUSIGNConfig, DROPBOXConfig, FIRECRAWLConfig, FIREFLIESConfig, GCSConfig, GITHUBConfig, GMAILConfig, GOOGLEDRIVEConfig, GOOGLEDRIVEOAUTHConfig, GOOGLEDRIVEOAUTHMULTICUSTOMConfig, GOOGLEDRIVEOAUTHMULTIConfig, INTERCOMConfig, NOTIONConfig, ONEDRIVEConfig, SHAREPOINTConfig, WEBCRAWLERConfig. Details: " + ", ".join(error_messages)) else: return v @@ -331,6 +339,12 @@ def from_json(cls, json_str: str) -> Self: match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + # deserialize data into DOCUSIGNConfig + try: + instance.actual_instance = DOCUSIGNConfig.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) # deserialize data into GMAILConfig try: instance.actual_instance = GMAILConfig.from_json(json_str) @@ -340,10 +354,10 @@ def from_json(cls, json_str: str) -> Self: if match > 1: # more than 1 match - raise ValueError("Multiple matches found when deserializing the JSON string into SourceConnectorInputConfig with oneOf schemas: AWSS3Config, AZUREBLOBConfig, CONFLUENCEConfig, DISCORDConfig, DROPBOXConfig, FIRECRAWLConfig, FIREFLIESConfig, GCSConfig, GITHUBConfig, GMAILConfig, GOOGLEDRIVEConfig, GOOGLEDRIVEOAUTHConfig, GOOGLEDRIVEOAUTHMULTICUSTOMConfig, GOOGLEDRIVEOAUTHMULTIConfig, INTERCOMConfig, NOTIONConfig, ONEDRIVEConfig, SHAREPOINTConfig, WEBCRAWLERConfig. Details: " + ", ".join(error_messages)) + raise ValueError("Multiple matches found when deserializing the JSON string into SourceConnectorInputConfig with oneOf schemas: AWSS3Config, AZUREBLOBConfig, CONFLUENCEConfig, DISCORDConfig, DOCUSIGNConfig, DROPBOXConfig, FIRECRAWLConfig, FIREFLIESConfig, GCSConfig, GITHUBConfig, GMAILConfig, GOOGLEDRIVEConfig, GOOGLEDRIVEOAUTHConfig, GOOGLEDRIVEOAUTHMULTICUSTOMConfig, GOOGLEDRIVEOAUTHMULTIConfig, INTERCOMConfig, NOTIONConfig, ONEDRIVEConfig, SHAREPOINTConfig, WEBCRAWLERConfig. Details: " + ", ".join(error_messages)) elif match == 0: # no match - raise ValueError("No match found when deserializing the JSON string into SourceConnectorInputConfig with oneOf schemas: AWSS3Config, AZUREBLOBConfig, CONFLUENCEConfig, DISCORDConfig, DROPBOXConfig, FIRECRAWLConfig, FIREFLIESConfig, GCSConfig, GITHUBConfig, GMAILConfig, GOOGLEDRIVEConfig, GOOGLEDRIVEOAUTHConfig, GOOGLEDRIVEOAUTHMULTICUSTOMConfig, GOOGLEDRIVEOAUTHMULTIConfig, INTERCOMConfig, NOTIONConfig, ONEDRIVEConfig, SHAREPOINTConfig, WEBCRAWLERConfig. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when deserializing the JSON string into SourceConnectorInputConfig with oneOf schemas: AWSS3Config, AZUREBLOBConfig, CONFLUENCEConfig, DISCORDConfig, DOCUSIGNConfig, DROPBOXConfig, FIRECRAWLConfig, FIREFLIESConfig, GCSConfig, GITHUBConfig, GMAILConfig, GOOGLEDRIVEConfig, GOOGLEDRIVEOAUTHConfig, GOOGLEDRIVEOAUTHMULTICUSTOMConfig, GOOGLEDRIVEOAUTHMULTIConfig, INTERCOMConfig, NOTIONConfig, ONEDRIVEConfig, SHAREPOINTConfig, WEBCRAWLERConfig. Details: " + ", ".join(error_messages)) else: return instance @@ -357,7 +371,7 @@ def to_json(self) -> str: else: return json.dumps(self.actual_instance) - def to_dict(self) -> Optional[Union[Dict[str, Any], AWSS3Config, AZUREBLOBConfig, CONFLUENCEConfig, DISCORDConfig, DROPBOXConfig, FIRECRAWLConfig, FIREFLIESConfig, GCSConfig, GITHUBConfig, GMAILConfig, GOOGLEDRIVEConfig, GOOGLEDRIVEOAUTHConfig, GOOGLEDRIVEOAUTHMULTICUSTOMConfig, GOOGLEDRIVEOAUTHMULTIConfig, INTERCOMConfig, NOTIONConfig, ONEDRIVEConfig, SHAREPOINTConfig, WEBCRAWLERConfig]]: + def to_dict(self) -> Optional[Union[Dict[str, Any], AWSS3Config, AZUREBLOBConfig, CONFLUENCEConfig, DISCORDConfig, DOCUSIGNConfig, DROPBOXConfig, FIRECRAWLConfig, FIREFLIESConfig, GCSConfig, GITHUBConfig, GMAILConfig, GOOGLEDRIVEConfig, GOOGLEDRIVEOAUTHConfig, GOOGLEDRIVEOAUTHMULTICUSTOMConfig, GOOGLEDRIVEOAUTHMULTIConfig, INTERCOMConfig, NOTIONConfig, ONEDRIVEConfig, SHAREPOINTConfig, WEBCRAWLERConfig]]: """Returns the dict representation of the actual instance""" if self.actual_instance is None: return None diff --git a/src/python/vectorize_client/models/source_connector_type.py b/src/python/vectorize_client/models/source_connector_type.py index 299d4bb..6e97c76 100644 --- a/src/python/vectorize_client/models/source_connector_type.py +++ b/src/python/vectorize_client/models/source_connector_type.py @@ -50,6 +50,7 @@ class SourceConnectorType(str, Enum): WEB_CRAWLER = 'WEB_CRAWLER' GITHUB = 'GITHUB' FIREFLIES = 'FIREFLIES' + DOCUSIGN = 'DOCUSIGN' GMAIL = 'GMAIL' @classmethod 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 680dfe1..720cdd7 100644 --- a/src/python/vectorize_client/models/update_source_connector_request.py +++ b/src/python/vectorize_client/models/update_source_connector_request.py @@ -21,23 +21,12 @@ from vectorize_client.models.azure_blob1 import AzureBlob1 from vectorize_client.models.confluence1 import Confluence1 from vectorize_client.models.discord1 import Discord1 -from vectorize_client.models.dropbox import Dropbox -from vectorize_client.models.dropbox_oauth import DropboxOauth -from vectorize_client.models.dropbox_oauth_multi import DropboxOauthMulti -from vectorize_client.models.dropbox_oauth_multi_custom import DropboxOauthMultiCustom from vectorize_client.models.file_upload1 import FileUpload1 from vectorize_client.models.firecrawl1 import Firecrawl1 from vectorize_client.models.fireflies1 import Fireflies1 from vectorize_client.models.gcs1 import Gcs1 from vectorize_client.models.github1 import Github1 from vectorize_client.models.google_drive1 import GoogleDrive1 -from vectorize_client.models.google_drive_oauth import GoogleDriveOauth -from vectorize_client.models.google_drive_oauth_multi import GoogleDriveOauthMulti -from vectorize_client.models.google_drive_oauth_multi_custom import GoogleDriveOauthMultiCustom -from vectorize_client.models.intercom import Intercom -from vectorize_client.models.notion import Notion -from vectorize_client.models.notion_oauth_multi import NotionOauthMulti -from vectorize_client.models.notion_oauth_multi_custom import NotionOauthMultiCustom from vectorize_client.models.one_drive1 import OneDrive1 from vectorize_client.models.sharepoint1 import Sharepoint1 from vectorize_client.models.web_crawler1 import WebCrawler1 @@ -45,7 +34,7 @@ from typing import Union, List, Set, Optional, Dict from typing_extensions import Literal, Self -UPDATESOURCECONNECTORREQUEST_ONE_OF_SCHEMAS = ["AwsS31", "AzureBlob1", "Confluence1", "Discord1", "Dropbox", "DropboxOauth", "DropboxOauthMulti", "DropboxOauthMultiCustom", "FileUpload1", "Firecrawl1", "Fireflies1", "Gcs1", "Github1", "GoogleDrive1", "GoogleDriveOauth", "GoogleDriveOauthMulti", "GoogleDriveOauthMultiCustom", "Intercom", "Notion", "NotionOauthMulti", "NotionOauthMultiCustom", "OneDrive1", "Sharepoint1", "WebCrawler1"] +UPDATESOURCECONNECTORREQUEST_ONE_OF_SCHEMAS = ["AwsS31", "AzureBlob1", "Confluence1", "Discord1", "FileUpload1", "Firecrawl1", "Fireflies1", "Gcs1", "Github1", "GoogleDrive1", "OneDrive1", "Sharepoint1", "WebCrawler1"] class UpdateSourceConnectorRequest(BaseModel): """ @@ -59,48 +48,26 @@ class UpdateSourceConnectorRequest(BaseModel): oneof_schema_3_validator: Optional[Confluence1] = None # data type: Discord1 oneof_schema_4_validator: Optional[Discord1] = None - # data type: Dropbox - oneof_schema_5_validator: Optional[Dropbox] = None - # data type: DropboxOauth - oneof_schema_6_validator: Optional[DropboxOauth] = None - # data type: DropboxOauthMulti - oneof_schema_7_validator: Optional[DropboxOauthMulti] = None - # data type: DropboxOauthMultiCustom - oneof_schema_8_validator: Optional[DropboxOauthMultiCustom] = None # data type: FileUpload1 - oneof_schema_9_validator: Optional[FileUpload1] = None - # data type: GoogleDriveOauth - oneof_schema_10_validator: Optional[GoogleDriveOauth] = None + oneof_schema_5_validator: Optional[FileUpload1] = None # data type: GoogleDrive1 - oneof_schema_11_validator: Optional[GoogleDrive1] = None - # data type: GoogleDriveOauthMulti - oneof_schema_12_validator: Optional[GoogleDriveOauthMulti] = None - # data type: GoogleDriveOauthMultiCustom - oneof_schema_13_validator: Optional[GoogleDriveOauthMultiCustom] = None + oneof_schema_6_validator: Optional[GoogleDrive1] = None # data type: Firecrawl1 - oneof_schema_14_validator: Optional[Firecrawl1] = None + oneof_schema_7_validator: Optional[Firecrawl1] = None # data type: Gcs1 - oneof_schema_15_validator: Optional[Gcs1] = None - # data type: Intercom - oneof_schema_16_validator: Optional[Intercom] = None - # data type: Notion - oneof_schema_17_validator: Optional[Notion] = None - # data type: NotionOauthMulti - oneof_schema_18_validator: Optional[NotionOauthMulti] = None - # data type: NotionOauthMultiCustom - oneof_schema_19_validator: Optional[NotionOauthMultiCustom] = None + oneof_schema_8_validator: Optional[Gcs1] = None # data type: OneDrive1 - oneof_schema_20_validator: Optional[OneDrive1] = None + oneof_schema_9_validator: Optional[OneDrive1] = None # data type: Sharepoint1 - oneof_schema_21_validator: Optional[Sharepoint1] = None + oneof_schema_10_validator: Optional[Sharepoint1] = None # data type: WebCrawler1 - oneof_schema_22_validator: Optional[WebCrawler1] = None + oneof_schema_11_validator: Optional[WebCrawler1] = None # data type: Github1 - oneof_schema_23_validator: Optional[Github1] = None + oneof_schema_12_validator: Optional[Github1] = None # data type: Fireflies1 - oneof_schema_24_validator: Optional[Fireflies1] = None - actual_instance: Optional[Union[AwsS31, AzureBlob1, Confluence1, Discord1, Dropbox, DropboxOauth, DropboxOauthMulti, DropboxOauthMultiCustom, FileUpload1, Firecrawl1, Fireflies1, Gcs1, Github1, GoogleDrive1, GoogleDriveOauth, GoogleDriveOauthMulti, GoogleDriveOauthMultiCustom, Intercom, Notion, NotionOauthMulti, NotionOauthMultiCustom, OneDrive1, Sharepoint1, WebCrawler1]] = None - one_of_schemas: Set[str] = { "AwsS31", "AzureBlob1", "Confluence1", "Discord1", "Dropbox", "DropboxOauth", "DropboxOauthMulti", "DropboxOauthMultiCustom", "FileUpload1", "Firecrawl1", "Fireflies1", "Gcs1", "Github1", "GoogleDrive1", "GoogleDriveOauth", "GoogleDriveOauthMulti", "GoogleDriveOauthMultiCustom", "Intercom", "Notion", "NotionOauthMulti", "NotionOauthMultiCustom", "OneDrive1", "Sharepoint1", "WebCrawler1" } + oneof_schema_13_validator: Optional[Fireflies1] = None + actual_instance: Optional[Union[AwsS31, AzureBlob1, Confluence1, Discord1, FileUpload1, Firecrawl1, Fireflies1, Gcs1, Github1, GoogleDrive1, OneDrive1, Sharepoint1, WebCrawler1]] = None + one_of_schemas: Set[str] = { "AwsS31", "AzureBlob1", "Confluence1", "Discord1", "FileUpload1", "Firecrawl1", "Fireflies1", "Gcs1", "Github1", "GoogleDrive1", "OneDrive1", "Sharepoint1", "WebCrawler1" } model_config = ConfigDict( validate_assignment=True, @@ -143,51 +110,16 @@ def actual_instance_must_validate_oneof(cls, v): error_messages.append(f"Error! Input type `{type(v)}` is not `Discord1`") else: match += 1 - # validate data type: Dropbox - if not isinstance(v, Dropbox): - error_messages.append(f"Error! Input type `{type(v)}` is not `Dropbox`") - else: - match += 1 - # validate data type: DropboxOauth - if not isinstance(v, DropboxOauth): - error_messages.append(f"Error! Input type `{type(v)}` is not `DropboxOauth`") - else: - match += 1 - # validate data type: DropboxOauthMulti - if not isinstance(v, DropboxOauthMulti): - error_messages.append(f"Error! Input type `{type(v)}` is not `DropboxOauthMulti`") - else: - match += 1 - # validate data type: DropboxOauthMultiCustom - if not isinstance(v, DropboxOauthMultiCustom): - error_messages.append(f"Error! Input type `{type(v)}` is not `DropboxOauthMultiCustom`") - else: - match += 1 # validate data type: FileUpload1 if not isinstance(v, FileUpload1): error_messages.append(f"Error! Input type `{type(v)}` is not `FileUpload1`") else: match += 1 - # validate data type: GoogleDriveOauth - if not isinstance(v, GoogleDriveOauth): - error_messages.append(f"Error! Input type `{type(v)}` is not `GoogleDriveOauth`") - else: - match += 1 # validate data type: GoogleDrive1 if not isinstance(v, GoogleDrive1): error_messages.append(f"Error! Input type `{type(v)}` is not `GoogleDrive1`") else: match += 1 - # validate data type: GoogleDriveOauthMulti - if not isinstance(v, GoogleDriveOauthMulti): - error_messages.append(f"Error! Input type `{type(v)}` is not `GoogleDriveOauthMulti`") - else: - match += 1 - # validate data type: GoogleDriveOauthMultiCustom - if not isinstance(v, GoogleDriveOauthMultiCustom): - error_messages.append(f"Error! Input type `{type(v)}` is not `GoogleDriveOauthMultiCustom`") - else: - match += 1 # validate data type: Firecrawl1 if not isinstance(v, Firecrawl1): error_messages.append(f"Error! Input type `{type(v)}` is not `Firecrawl1`") @@ -198,26 +130,6 @@ def actual_instance_must_validate_oneof(cls, v): error_messages.append(f"Error! Input type `{type(v)}` is not `Gcs1`") else: match += 1 - # validate data type: Intercom - if not isinstance(v, Intercom): - error_messages.append(f"Error! Input type `{type(v)}` is not `Intercom`") - else: - match += 1 - # validate data type: Notion - if not isinstance(v, Notion): - error_messages.append(f"Error! Input type `{type(v)}` is not `Notion`") - else: - match += 1 - # validate data type: NotionOauthMulti - if not isinstance(v, NotionOauthMulti): - error_messages.append(f"Error! Input type `{type(v)}` is not `NotionOauthMulti`") - else: - match += 1 - # validate data type: NotionOauthMultiCustom - if not isinstance(v, NotionOauthMultiCustom): - error_messages.append(f"Error! Input type `{type(v)}` is not `NotionOauthMultiCustom`") - else: - match += 1 # validate data type: OneDrive1 if not isinstance(v, OneDrive1): error_messages.append(f"Error! Input type `{type(v)}` is not `OneDrive1`") @@ -245,10 +157,10 @@ def actual_instance_must_validate_oneof(cls, v): match += 1 if match > 1: # more than 1 match - raise ValueError("Multiple matches found when setting `actual_instance` in UpdateSourceConnectorRequest with oneOf schemas: AwsS31, AzureBlob1, Confluence1, Discord1, Dropbox, DropboxOauth, DropboxOauthMulti, DropboxOauthMultiCustom, FileUpload1, Firecrawl1, Fireflies1, Gcs1, Github1, GoogleDrive1, GoogleDriveOauth, GoogleDriveOauthMulti, GoogleDriveOauthMultiCustom, Intercom, Notion, NotionOauthMulti, NotionOauthMultiCustom, OneDrive1, Sharepoint1, WebCrawler1. Details: " + ", ".join(error_messages)) + raise ValueError("Multiple matches found when setting `actual_instance` in UpdateSourceConnectorRequest with oneOf schemas: AwsS31, AzureBlob1, Confluence1, Discord1, FileUpload1, Firecrawl1, Fireflies1, Gcs1, Github1, GoogleDrive1, OneDrive1, Sharepoint1, WebCrawler1. Details: " + ", ".join(error_messages)) elif match == 0: # no match - raise ValueError("No match found when setting `actual_instance` in UpdateSourceConnectorRequest with oneOf schemas: AwsS31, AzureBlob1, Confluence1, Discord1, Dropbox, DropboxOauth, DropboxOauthMulti, DropboxOauthMultiCustom, FileUpload1, Firecrawl1, Fireflies1, Gcs1, Github1, GoogleDrive1, GoogleDriveOauth, GoogleDriveOauthMulti, GoogleDriveOauthMultiCustom, Intercom, Notion, NotionOauthMulti, NotionOauthMultiCustom, OneDrive1, Sharepoint1, WebCrawler1. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when setting `actual_instance` in UpdateSourceConnectorRequest with oneOf schemas: AwsS31, AzureBlob1, Confluence1, Discord1, FileUpload1, Firecrawl1, Fireflies1, Gcs1, Github1, GoogleDrive1, OneDrive1, Sharepoint1, WebCrawler1. Details: " + ", ".join(error_messages)) else: return v @@ -287,60 +199,18 @@ def from_json(cls, json_str: str) -> Self: match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) - # deserialize data into Dropbox - try: - instance.actual_instance = Dropbox.from_json(json_str) - match += 1 - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # deserialize data into DropboxOauth - try: - instance.actual_instance = DropboxOauth.from_json(json_str) - match += 1 - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # deserialize data into DropboxOauthMulti - try: - instance.actual_instance = DropboxOauthMulti.from_json(json_str) - match += 1 - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # deserialize data into DropboxOauthMultiCustom - try: - instance.actual_instance = DropboxOauthMultiCustom.from_json(json_str) - match += 1 - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) # deserialize data into FileUpload1 try: instance.actual_instance = FileUpload1.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) - # deserialize data into GoogleDriveOauth - try: - instance.actual_instance = GoogleDriveOauth.from_json(json_str) - match += 1 - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) # deserialize data into GoogleDrive1 try: instance.actual_instance = GoogleDrive1.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) - # deserialize data into GoogleDriveOauthMulti - try: - instance.actual_instance = GoogleDriveOauthMulti.from_json(json_str) - match += 1 - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # deserialize data into GoogleDriveOauthMultiCustom - try: - instance.actual_instance = GoogleDriveOauthMultiCustom.from_json(json_str) - match += 1 - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) # deserialize data into Firecrawl1 try: instance.actual_instance = Firecrawl1.from_json(json_str) @@ -353,30 +223,6 @@ def from_json(cls, json_str: str) -> Self: match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) - # deserialize data into Intercom - try: - instance.actual_instance = Intercom.from_json(json_str) - match += 1 - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # deserialize data into Notion - try: - instance.actual_instance = Notion.from_json(json_str) - match += 1 - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # deserialize data into NotionOauthMulti - try: - instance.actual_instance = NotionOauthMulti.from_json(json_str) - match += 1 - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # deserialize data into NotionOauthMultiCustom - try: - instance.actual_instance = NotionOauthMultiCustom.from_json(json_str) - match += 1 - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) # deserialize data into OneDrive1 try: instance.actual_instance = OneDrive1.from_json(json_str) @@ -410,10 +256,10 @@ def from_json(cls, json_str: str) -> Self: if match > 1: # more than 1 match - raise ValueError("Multiple matches found when deserializing the JSON string into UpdateSourceConnectorRequest with oneOf schemas: AwsS31, AzureBlob1, Confluence1, Discord1, Dropbox, DropboxOauth, DropboxOauthMulti, DropboxOauthMultiCustom, FileUpload1, Firecrawl1, Fireflies1, Gcs1, Github1, GoogleDrive1, GoogleDriveOauth, GoogleDriveOauthMulti, GoogleDriveOauthMultiCustom, Intercom, Notion, NotionOauthMulti, NotionOauthMultiCustom, OneDrive1, Sharepoint1, WebCrawler1. Details: " + ", ".join(error_messages)) + raise ValueError("Multiple matches found when deserializing the JSON string into UpdateSourceConnectorRequest with oneOf schemas: AwsS31, AzureBlob1, Confluence1, Discord1, FileUpload1, Firecrawl1, Fireflies1, Gcs1, Github1, GoogleDrive1, OneDrive1, Sharepoint1, WebCrawler1. Details: " + ", ".join(error_messages)) elif match == 0: # no match - raise ValueError("No match found when deserializing the JSON string into UpdateSourceConnectorRequest with oneOf schemas: AwsS31, AzureBlob1, Confluence1, Discord1, Dropbox, DropboxOauth, DropboxOauthMulti, DropboxOauthMultiCustom, FileUpload1, Firecrawl1, Fireflies1, Gcs1, Github1, GoogleDrive1, GoogleDriveOauth, GoogleDriveOauthMulti, GoogleDriveOauthMultiCustom, Intercom, Notion, NotionOauthMulti, NotionOauthMultiCustom, OneDrive1, Sharepoint1, WebCrawler1. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when deserializing the JSON string into UpdateSourceConnectorRequest with oneOf schemas: AwsS31, AzureBlob1, Confluence1, Discord1, FileUpload1, Firecrawl1, Fireflies1, Gcs1, Github1, GoogleDrive1, OneDrive1, Sharepoint1, WebCrawler1. Details: " + ", ".join(error_messages)) else: return instance @@ -427,7 +273,7 @@ def to_json(self) -> str: else: return json.dumps(self.actual_instance) - def to_dict(self) -> Optional[Union[Dict[str, Any], AwsS31, AzureBlob1, Confluence1, Discord1, Dropbox, DropboxOauth, DropboxOauthMulti, DropboxOauthMultiCustom, FileUpload1, Firecrawl1, Fireflies1, Gcs1, Github1, GoogleDrive1, GoogleDriveOauth, GoogleDriveOauthMulti, GoogleDriveOauthMultiCustom, Intercom, Notion, NotionOauthMulti, NotionOauthMultiCustom, OneDrive1, Sharepoint1, WebCrawler1]]: + def to_dict(self) -> Optional[Union[Dict[str, Any], AwsS31, AzureBlob1, Confluence1, Discord1, FileUpload1, Firecrawl1, Fireflies1, Gcs1, Github1, GoogleDrive1, OneDrive1, Sharepoint1, WebCrawler1]]: """Returns the dict representation of the actual instance""" if self.actual_instance is None: return None diff --git a/src/ts/package-lock.json b/src/ts/package-lock.json deleted file mode 100644 index 87623bf..0000000 --- a/src/ts/package-lock.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "name": "@vectorize-io/vectorize-client", - "version": "0.0.1-SNAPSHOT.202507021445", - "lockfileVersion": 3, - "requires": true, - "packages": { - "": { - "name": "@vectorize-io/vectorize-client", - "version": "0.0.1-SNAPSHOT.202507021445", - "hasInstallScript": true, - "license": "MIT", - "devDependencies": { - "typescript": "^5.8.3" - } - }, - "node_modules/typescript": { - "version": "5.8.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.3.tgz", - "integrity": "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==", - "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 75db0c5..ea336be 100644 --- a/src/ts/package.json +++ b/src/ts/package.json @@ -16,7 +16,7 @@ "preinstall": "npm install typescript" }, "devDependencies": { - "typescript": "^5.8.3" + "typescript": "^4.0 || ^5.0" }, "publishConfig": { "registry": "https://registry.npmjs.org", diff --git a/src/ts/src/apis/AIPlatformConnectorsApi.ts b/src/ts/src/apis/AIPlatformConnectorsApi.ts index b83ed47..32d55cd 100644 --- a/src/ts/src/apis/AIPlatformConnectorsApi.ts +++ b/src/ts/src/apis/AIPlatformConnectorsApi.ts @@ -46,6 +46,7 @@ import { export interface CreateAIPlatformConnectorOperationRequest { organizationId: string; createAIPlatformConnectorRequest: CreateAIPlatformConnectorRequest; + workspaceId?: string; } export interface DeleteAIPlatformConnectorRequest { @@ -60,6 +61,7 @@ export interface GetAIPlatformConnectorRequest { export interface GetAIPlatformConnectorsRequest { organizationId: string; + workspaceId?: string; } export interface UpdateAIPlatformConnectorOperationRequest { @@ -94,6 +96,10 @@ export class AIPlatformConnectorsApi extends runtime.BaseAPI { const queryParameters: any = {}; + if (requestParameters['workspaceId'] != null) { + queryParameters['workspaceId'] = requestParameters['workspaceId']; + } + const headerParameters: runtime.HTTPHeaders = {}; headerParameters['Content-Type'] = 'application/json'; @@ -240,6 +246,10 @@ export class AIPlatformConnectorsApi extends runtime.BaseAPI { const queryParameters: any = {}; + if (requestParameters['workspaceId'] != null) { + queryParameters['workspaceId'] = requestParameters['workspaceId']; + } + const headerParameters: runtime.HTTPHeaders = {}; if (this.configuration && this.configuration.accessToken) { diff --git a/src/ts/src/apis/DestinationConnectorsApi.ts b/src/ts/src/apis/DestinationConnectorsApi.ts index 80016d7..09cc892 100644 --- a/src/ts/src/apis/DestinationConnectorsApi.ts +++ b/src/ts/src/apis/DestinationConnectorsApi.ts @@ -46,6 +46,7 @@ import { export interface CreateDestinationConnectorOperationRequest { organizationId: string; createDestinationConnectorRequest: CreateDestinationConnectorRequest; + workspaceId?: string; } export interface DeleteDestinationConnectorRequest { @@ -60,6 +61,7 @@ export interface GetDestinationConnectorRequest { export interface GetDestinationConnectorsRequest { organizationId: string; + workspaceId?: string; } export interface UpdateDestinationConnectorOperationRequest { @@ -94,6 +96,10 @@ export class DestinationConnectorsApi extends runtime.BaseAPI { const queryParameters: any = {}; + if (requestParameters['workspaceId'] != null) { + queryParameters['workspaceId'] = requestParameters['workspaceId']; + } + const headerParameters: runtime.HTTPHeaders = {}; headerParameters['Content-Type'] = 'application/json'; @@ -240,6 +246,10 @@ export class DestinationConnectorsApi extends runtime.BaseAPI { const queryParameters: any = {}; + if (requestParameters['workspaceId'] != null) { + queryParameters['workspaceId'] = requestParameters['workspaceId']; + } + const headerParameters: runtime.HTTPHeaders = {}; if (this.configuration && this.configuration.accessToken) { diff --git a/src/ts/src/apis/PipelinesApi.ts b/src/ts/src/apis/PipelinesApi.ts index 1bebe53..b53f9fd 100644 --- a/src/ts/src/apis/PipelinesApi.ts +++ b/src/ts/src/apis/PipelinesApi.ts @@ -67,6 +67,7 @@ import { export interface CreatePipelineRequest { organizationId: string; pipelineConfigurationSchema: PipelineConfigurationSchema; + workspaceId?: string; } export interface DeletePipelineRequest { @@ -98,6 +99,7 @@ export interface GetPipelineMetricsRequest { export interface GetPipelinesRequest { organizationId: string; + workspaceId?: string; } export interface RetrieveDocumentsOperationRequest { @@ -148,6 +150,10 @@ export class PipelinesApi extends runtime.BaseAPI { const queryParameters: any = {}; + if (requestParameters['workspaceId'] != null) { + queryParameters['workspaceId'] = requestParameters['workspaceId']; + } + const headerParameters: runtime.HTTPHeaders = {}; headerParameters['Content-Type'] = 'application/json'; @@ -455,6 +461,10 @@ export class PipelinesApi extends runtime.BaseAPI { const queryParameters: any = {}; + if (requestParameters['workspaceId'] != null) { + queryParameters['workspaceId'] = requestParameters['workspaceId']; + } + const headerParameters: runtime.HTTPHeaders = {}; if (this.configuration && this.configuration.accessToken) { diff --git a/src/ts/src/apis/SourceConnectorsApi.ts b/src/ts/src/apis/SourceConnectorsApi.ts index 9d26206..a5e1462 100644 --- a/src/ts/src/apis/SourceConnectorsApi.ts +++ b/src/ts/src/apis/SourceConnectorsApi.ts @@ -70,6 +70,7 @@ export interface AddUserToSourceConnectorOperationRequest { export interface CreateSourceConnectorOperationRequest { organizationId: string; createSourceConnectorRequest: CreateSourceConnectorRequest; + workspaceId?: string; } export interface DeleteSourceConnectorRequest { @@ -90,6 +91,7 @@ export interface GetSourceConnectorRequest { export interface GetSourceConnectorsRequest { organizationId: string; + workspaceId?: string; } export interface UpdateSourceConnectorOperationRequest { @@ -190,6 +192,10 @@ export class SourceConnectorsApi extends runtime.BaseAPI { const queryParameters: any = {}; + if (requestParameters['workspaceId'] != null) { + queryParameters['workspaceId'] = requestParameters['workspaceId']; + } + const headerParameters: runtime.HTTPHeaders = {}; headerParameters['Content-Type'] = 'application/json'; @@ -396,6 +402,10 @@ export class SourceConnectorsApi extends runtime.BaseAPI { const queryParameters: any = {}; + if (requestParameters['workspaceId'] != null) { + queryParameters['workspaceId'] = requestParameters['workspaceId']; + } + const headerParameters: runtime.HTTPHeaders = {}; if (this.configuration && this.configuration.accessToken) { diff --git a/src/ts/src/models/DOCUSIGNConfig.ts b/src/ts/src/models/DOCUSIGNConfig.ts new file mode 100644 index 0000000..11e7100 --- /dev/null +++ b/src/ts/src/models/DOCUSIGNConfig.ts @@ -0,0 +1,141 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Vectorize API + * API for Vectorize services (Beta) + * + * The version of the OpenAPI document: 0.1.2 + * + * + * 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'; +/** + * Configuration for DocuSign connector + * @export + * @interface DOCUSIGNConfig + */ +export interface DOCUSIGNConfig { + /** + * Envelope Statuses. Filter envelopes by status + * @type {Array} + * @memberof DOCUSIGNConfig + */ + envelopeStatuses?: DOCUSIGNConfigEnvelopeStatusesEnum; + /** + * Created From Date. Include envelopes created on or after this date. Example: Enter start date (YYYY-MM-DD) + * @type {Date} + * @memberof DOCUSIGNConfig + */ + fromDate: Date; + /** + * Created To Date. Include envelopes that were last updated up to this date. Example: Enter end date (YYYY-MM-DD) + * @type {Date} + * @memberof DOCUSIGNConfig + */ + toDate?: Date; + /** + * Folder Names. Select which DocuSign folders to include in the import + * @type {Array} + * @memberof DOCUSIGNConfig + */ + folderIds?: DOCUSIGNConfigFolderIdsEnum; + /** + * Max Documents. Leave blank for no limit, or specify a maximum number. Example: Enter maximum number of documents to retrieve (leave blank for no limit) + * @type {number} + * @memberof DOCUSIGNConfig + */ + maxDocuments?: number; + /** + * Search Text. Filter envelopes containing this text in their content. Example: Enter text to search within envelope content + * @type {string} + * @memberof DOCUSIGNConfig + */ + searchText?: string; +} + + +/** + * @export + */ +export const DOCUSIGNConfigEnvelopeStatusesEnum = { + Completed: 'completed', + Correct: 'correct', + Created: 'created', + Declined: 'declined', + Delivered: 'delivered', + Sent: 'sent', + Signed: 'signed', + Voided: 'voided', + All: 'all' +} as const; +export type DOCUSIGNConfigEnvelopeStatusesEnum = typeof DOCUSIGNConfigEnvelopeStatusesEnum[keyof typeof DOCUSIGNConfigEnvelopeStatusesEnum]; + +/** + * @export + */ +export const DOCUSIGNConfigFolderIdsEnum = { + Inbox: 'inbox', + Sentitems: 'sentitems', + Draft: 'draft', + Recyclebin: 'recyclebin', + AwaitingMySignature: 'awaiting_my_signature', + Completed: 'completed', + OutForSignature: 'out_for_signature', + WaitingForOthers: 'waiting_for_others', + ExpiringSoon: 'expiring_soon', + All: 'all' +} as const; +export type DOCUSIGNConfigFolderIdsEnum = typeof DOCUSIGNConfigFolderIdsEnum[keyof typeof DOCUSIGNConfigFolderIdsEnum]; + + +/** + * Check if a given object implements the DOCUSIGNConfig interface. + */ +export function instanceOfDOCUSIGNConfig(value: object): value is DOCUSIGNConfig { + if (!('fromDate' in value) || value['fromDate'] === undefined) return false; + return true; +} + +export function DOCUSIGNConfigFromJSON(json: any): DOCUSIGNConfig { + return DOCUSIGNConfigFromJSONTyped(json, false); +} + +export function DOCUSIGNConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): DOCUSIGNConfig { + if (json == null) { + return json; + } + return { + + 'envelopeStatuses': json['envelope-statuses'] == null ? undefined : json['envelope-statuses'], + 'fromDate': (new Date(json['from-date'])), + 'toDate': json['to-date'] == null ? undefined : (new Date(json['to-date'])), + 'folderIds': json['folder_ids'] == null ? undefined : json['folder_ids'], + 'maxDocuments': json['max-documents'] == null ? undefined : json['max-documents'], + 'searchText': json['search-text'] == null ? undefined : json['search-text'], + }; +} + +export function DOCUSIGNConfigToJSON(json: any): DOCUSIGNConfig { + return DOCUSIGNConfigToJSONTyped(json, false); +} + +export function DOCUSIGNConfigToJSONTyped(value?: DOCUSIGNConfig | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'envelope-statuses': value['envelopeStatuses'], + 'from-date': ((value['fromDate']).toISOString().substring(0,10)), + 'to-date': value['toDate'] == null ? undefined : ((value['toDate']).toISOString().substring(0,10)), + 'folder_ids': value['folderIds'], + 'max-documents': value['maxDocuments'], + 'search-text': value['searchText'], + }; +} + diff --git a/src/ts/src/models/DROPBOXAuthConfig.ts b/src/ts/src/models/DROPBOXAuthConfig.ts deleted file mode 100644 index e42f392..0000000 --- a/src/ts/src/models/DROPBOXAuthConfig.ts +++ /dev/null @@ -1,66 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Vectorize API - * API for Vectorize services (Beta) - * - * The version of the OpenAPI document: 0.1.2 - * - * - * 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'; -/** - * Authentication configuration for Dropbox (Legacy) - * @export - * @interface DROPBOXAuthConfig - */ -export interface DROPBOXAuthConfig { - /** - * Connect Dropbox to Vectorize. Example: Authorize - * @type {string} - * @memberof DROPBOXAuthConfig - */ - refreshToken: string; -} - -/** - * Check if a given object implements the DROPBOXAuthConfig interface. - */ -export function instanceOfDROPBOXAuthConfig(value: object): value is DROPBOXAuthConfig { - if (!('refreshToken' in value) || value['refreshToken'] === undefined) return false; - return true; -} - -export function DROPBOXAuthConfigFromJSON(json: any): DROPBOXAuthConfig { - return DROPBOXAuthConfigFromJSONTyped(json, false); -} - -export function DROPBOXAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): DROPBOXAuthConfig { - if (json == null) { - return json; - } - return { - - 'refreshToken': json['refresh-token'], - }; -} - -export function DROPBOXAuthConfigToJSON(json: any): DROPBOXAuthConfig { - return DROPBOXAuthConfigToJSONTyped(json, false); -} - -export function DROPBOXAuthConfigToJSONTyped(value?: DROPBOXAuthConfig | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'refresh-token': value['refreshToken'], - }; -} - diff --git a/src/ts/src/models/DROPBOXOAUTHAuthConfig.ts b/src/ts/src/models/DROPBOXOAUTHAuthConfig.ts deleted file mode 100644 index 2b10f98..0000000 --- a/src/ts/src/models/DROPBOXOAUTHAuthConfig.ts +++ /dev/null @@ -1,90 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Vectorize API - * API for Vectorize services (Beta) - * - * The version of the OpenAPI document: 0.1.2 - * - * - * 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'; -/** - * Authentication configuration for Dropbox OAuth - * @export - * @interface DROPBOXOAUTHAuthConfig - */ -export interface DROPBOXOAUTHAuthConfig { - /** - * Authorized User - * @type {string} - * @memberof DROPBOXOAUTHAuthConfig - */ - authorizedUser?: string; - /** - * Connect Dropbox to Vectorize. Example: Authorize - * @type {string} - * @memberof DROPBOXOAUTHAuthConfig - */ - selectionDetails: string; - /** - * - * @type {object} - * @memberof DROPBOXOAUTHAuthConfig - */ - editedUsers?: object; - /** - * - * @type {object} - * @memberof DROPBOXOAUTHAuthConfig - */ - reconnectUsers?: object; -} - -/** - * Check if a given object implements the DROPBOXOAUTHAuthConfig interface. - */ -export function instanceOfDROPBOXOAUTHAuthConfig(value: object): value is DROPBOXOAUTHAuthConfig { - if (!('selectionDetails' in value) || value['selectionDetails'] === undefined) return false; - return true; -} - -export function DROPBOXOAUTHAuthConfigFromJSON(json: any): DROPBOXOAUTHAuthConfig { - return DROPBOXOAUTHAuthConfigFromJSONTyped(json, false); -} - -export function DROPBOXOAUTHAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): DROPBOXOAUTHAuthConfig { - if (json == null) { - return json; - } - return { - - 'authorizedUser': json['authorized-user'] == null ? undefined : json['authorized-user'], - 'selectionDetails': json['selection-details'], - 'editedUsers': json['editedUsers'] == null ? undefined : json['editedUsers'], - 'reconnectUsers': json['reconnectUsers'] == null ? undefined : json['reconnectUsers'], - }; -} - -export function DROPBOXOAUTHAuthConfigToJSON(json: any): DROPBOXOAUTHAuthConfig { - return DROPBOXOAUTHAuthConfigToJSONTyped(json, false); -} - -export function DROPBOXOAUTHAuthConfigToJSONTyped(value?: DROPBOXOAUTHAuthConfig | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'authorized-user': value['authorizedUser'], - 'selection-details': value['selectionDetails'], - 'editedUsers': value['editedUsers'], - 'reconnectUsers': value['reconnectUsers'], - }; -} - diff --git a/src/ts/src/models/DROPBOXOAUTHMULTIAuthConfig.ts b/src/ts/src/models/DROPBOXOAUTHMULTIAuthConfig.ts deleted file mode 100644 index c44c091..0000000 --- a/src/ts/src/models/DROPBOXOAUTHMULTIAuthConfig.ts +++ /dev/null @@ -1,81 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Vectorize API - * API for Vectorize services (Beta) - * - * The version of the OpenAPI document: 0.1.2 - * - * - * 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'; -/** - * Authentication configuration for Dropbox Multi-User (Vectorize) - * @export - * @interface DROPBOXOAUTHMULTIAuthConfig - */ -export interface DROPBOXOAUTHMULTIAuthConfig { - /** - * Authorized Users - * @type {Array} - * @memberof DROPBOXOAUTHMULTIAuthConfig - */ - authorizedUsers?: Array; - /** - * - * @type {object} - * @memberof DROPBOXOAUTHMULTIAuthConfig - */ - editedUsers?: object; - /** - * - * @type {object} - * @memberof DROPBOXOAUTHMULTIAuthConfig - */ - deletedUsers?: object; -} - -/** - * Check if a given object implements the DROPBOXOAUTHMULTIAuthConfig interface. - */ -export function instanceOfDROPBOXOAUTHMULTIAuthConfig(value: object): value is DROPBOXOAUTHMULTIAuthConfig { - return true; -} - -export function DROPBOXOAUTHMULTIAuthConfigFromJSON(json: any): DROPBOXOAUTHMULTIAuthConfig { - return DROPBOXOAUTHMULTIAuthConfigFromJSONTyped(json, false); -} - -export function DROPBOXOAUTHMULTIAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): DROPBOXOAUTHMULTIAuthConfig { - if (json == null) { - return json; - } - return { - - 'authorizedUsers': json['authorized-users'] == null ? undefined : json['authorized-users'], - 'editedUsers': json['editedUsers'] == null ? undefined : json['editedUsers'], - 'deletedUsers': json['deletedUsers'] == null ? undefined : json['deletedUsers'], - }; -} - -export function DROPBOXOAUTHMULTIAuthConfigToJSON(json: any): DROPBOXOAUTHMULTIAuthConfig { - return DROPBOXOAUTHMULTIAuthConfigToJSONTyped(json, false); -} - -export function DROPBOXOAUTHMULTIAuthConfigToJSONTyped(value?: DROPBOXOAUTHMULTIAuthConfig | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'authorized-users': value['authorizedUsers'], - 'editedUsers': value['editedUsers'], - 'deletedUsers': value['deletedUsers'], - }; -} - diff --git a/src/ts/src/models/DROPBOXOAUTHMULTICUSTOMAuthConfig.ts b/src/ts/src/models/DROPBOXOAUTHMULTICUSTOMAuthConfig.ts deleted file mode 100644 index e5238e9..0000000 --- a/src/ts/src/models/DROPBOXOAUTHMULTICUSTOMAuthConfig.ts +++ /dev/null @@ -1,99 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Vectorize API - * API for Vectorize services (Beta) - * - * The version of the OpenAPI document: 0.1.2 - * - * - * 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'; -/** - * Authentication configuration for Dropbox Multi-User (White Label) - * @export - * @interface DROPBOXOAUTHMULTICUSTOMAuthConfig - */ -export interface DROPBOXOAUTHMULTICUSTOMAuthConfig { - /** - * Dropbox App Key. Example: Enter App Key - * @type {string} - * @memberof DROPBOXOAUTHMULTICUSTOMAuthConfig - */ - appKey: string; - /** - * Dropbox App Secret. Example: Enter App Secret - * @type {string} - * @memberof DROPBOXOAUTHMULTICUSTOMAuthConfig - */ - appSecret: string; - /** - * Authorized Users - * @type {Array} - * @memberof DROPBOXOAUTHMULTICUSTOMAuthConfig - */ - authorizedUsers?: Array; - /** - * - * @type {object} - * @memberof DROPBOXOAUTHMULTICUSTOMAuthConfig - */ - editedUsers?: object; - /** - * - * @type {object} - * @memberof DROPBOXOAUTHMULTICUSTOMAuthConfig - */ - deletedUsers?: object; -} - -/** - * Check if a given object implements the DROPBOXOAUTHMULTICUSTOMAuthConfig interface. - */ -export function instanceOfDROPBOXOAUTHMULTICUSTOMAuthConfig(value: object): value is DROPBOXOAUTHMULTICUSTOMAuthConfig { - if (!('appKey' in value) || value['appKey'] === undefined) return false; - if (!('appSecret' in value) || value['appSecret'] === undefined) return false; - return true; -} - -export function DROPBOXOAUTHMULTICUSTOMAuthConfigFromJSON(json: any): DROPBOXOAUTHMULTICUSTOMAuthConfig { - return DROPBOXOAUTHMULTICUSTOMAuthConfigFromJSONTyped(json, false); -} - -export function DROPBOXOAUTHMULTICUSTOMAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): DROPBOXOAUTHMULTICUSTOMAuthConfig { - if (json == null) { - return json; - } - return { - - 'appKey': json['app-key'], - 'appSecret': json['app-secret'], - 'authorizedUsers': json['authorized-users'] == null ? undefined : json['authorized-users'], - 'editedUsers': json['editedUsers'] == null ? undefined : json['editedUsers'], - 'deletedUsers': json['deletedUsers'] == null ? undefined : json['deletedUsers'], - }; -} - -export function DROPBOXOAUTHMULTICUSTOMAuthConfigToJSON(json: any): DROPBOXOAUTHMULTICUSTOMAuthConfig { - return DROPBOXOAUTHMULTICUSTOMAuthConfigToJSONTyped(json, false); -} - -export function DROPBOXOAUTHMULTICUSTOMAuthConfigToJSONTyped(value?: DROPBOXOAUTHMULTICUSTOMAuthConfig | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'app-key': value['appKey'], - 'app-secret': value['appSecret'], - 'authorized-users': value['authorizedUsers'], - 'editedUsers': value['editedUsers'], - 'deletedUsers': value['deletedUsers'], - }; -} - diff --git a/src/ts/src/models/Dropbox.ts b/src/ts/src/models/Dropbox.ts deleted file mode 100644 index b03c526..0000000 --- a/src/ts/src/models/Dropbox.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Vectorize API - * API for Vectorize services (Beta) - * - * The version of the OpenAPI document: 0.1.2 - * - * - * 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 { DROPBOXAuthConfig } from './DROPBOXAuthConfig'; -import { - DROPBOXAuthConfigFromJSON, - DROPBOXAuthConfigFromJSONTyped, - DROPBOXAuthConfigToJSON, - DROPBOXAuthConfigToJSONTyped, -} from './DROPBOXAuthConfig'; - -/** - * - * @export - * @interface Dropbox - */ -export interface Dropbox { - /** - * - * @type {DROPBOXAuthConfig} - * @memberof Dropbox - */ - config?: DROPBOXAuthConfig; -} - -/** - * Check if a given object implements the Dropbox interface. - */ -export function instanceOfDropbox(value: object): value is Dropbox { - return true; -} - -export function DropboxFromJSON(json: any): Dropbox { - return DropboxFromJSONTyped(json, false); -} - -export function DropboxFromJSONTyped(json: any, ignoreDiscriminator: boolean): Dropbox { - if (json == null) { - return json; - } - return { - - 'config': json['config'] == null ? undefined : DROPBOXAuthConfigFromJSON(json['config']), - }; -} - -export function DropboxToJSON(json: any): Dropbox { - return DropboxToJSONTyped(json, false); -} - -export function DropboxToJSONTyped(value?: Dropbox | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'config': DROPBOXAuthConfigToJSON(value['config']), - }; -} - diff --git a/src/ts/src/models/DropboxOauth.ts b/src/ts/src/models/DropboxOauth.ts deleted file mode 100644 index 89e45fc..0000000 --- a/src/ts/src/models/DropboxOauth.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Vectorize API - * API for Vectorize services (Beta) - * - * The version of the OpenAPI document: 0.1.2 - * - * - * 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 { DROPBOXOAUTHAuthConfig } from './DROPBOXOAUTHAuthConfig'; -import { - DROPBOXOAUTHAuthConfigFromJSON, - DROPBOXOAUTHAuthConfigFromJSONTyped, - DROPBOXOAUTHAuthConfigToJSON, - DROPBOXOAUTHAuthConfigToJSONTyped, -} from './DROPBOXOAUTHAuthConfig'; - -/** - * - * @export - * @interface DropboxOauth - */ -export interface DropboxOauth { - /** - * - * @type {DROPBOXOAUTHAuthConfig} - * @memberof DropboxOauth - */ - config?: DROPBOXOAUTHAuthConfig; -} - -/** - * Check if a given object implements the DropboxOauth interface. - */ -export function instanceOfDropboxOauth(value: object): value is DropboxOauth { - return true; -} - -export function DropboxOauthFromJSON(json: any): DropboxOauth { - return DropboxOauthFromJSONTyped(json, false); -} - -export function DropboxOauthFromJSONTyped(json: any, ignoreDiscriminator: boolean): DropboxOauth { - if (json == null) { - return json; - } - return { - - 'config': json['config'] == null ? undefined : DROPBOXOAUTHAuthConfigFromJSON(json['config']), - }; -} - -export function DropboxOauthToJSON(json: any): DropboxOauth { - return DropboxOauthToJSONTyped(json, false); -} - -export function DropboxOauthToJSONTyped(value?: DropboxOauth | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'config': DROPBOXOAUTHAuthConfigToJSON(value['config']), - }; -} - diff --git a/src/ts/src/models/DropboxOauthMulti.ts b/src/ts/src/models/DropboxOauthMulti.ts deleted file mode 100644 index bfaf480..0000000 --- a/src/ts/src/models/DropboxOauthMulti.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Vectorize API - * API for Vectorize services (Beta) - * - * The version of the OpenAPI document: 0.1.2 - * - * - * 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 { DROPBOXOAUTHMULTIAuthConfig } from './DROPBOXOAUTHMULTIAuthConfig'; -import { - DROPBOXOAUTHMULTIAuthConfigFromJSON, - DROPBOXOAUTHMULTIAuthConfigFromJSONTyped, - DROPBOXOAUTHMULTIAuthConfigToJSON, - DROPBOXOAUTHMULTIAuthConfigToJSONTyped, -} from './DROPBOXOAUTHMULTIAuthConfig'; - -/** - * - * @export - * @interface DropboxOauthMulti - */ -export interface DropboxOauthMulti { - /** - * - * @type {DROPBOXOAUTHMULTIAuthConfig} - * @memberof DropboxOauthMulti - */ - config?: DROPBOXOAUTHMULTIAuthConfig; -} - -/** - * Check if a given object implements the DropboxOauthMulti interface. - */ -export function instanceOfDropboxOauthMulti(value: object): value is DropboxOauthMulti { - return true; -} - -export function DropboxOauthMultiFromJSON(json: any): DropboxOauthMulti { - return DropboxOauthMultiFromJSONTyped(json, false); -} - -export function DropboxOauthMultiFromJSONTyped(json: any, ignoreDiscriminator: boolean): DropboxOauthMulti { - if (json == null) { - return json; - } - return { - - 'config': json['config'] == null ? undefined : DROPBOXOAUTHMULTIAuthConfigFromJSON(json['config']), - }; -} - -export function DropboxOauthMultiToJSON(json: any): DropboxOauthMulti { - return DropboxOauthMultiToJSONTyped(json, false); -} - -export function DropboxOauthMultiToJSONTyped(value?: DropboxOauthMulti | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'config': DROPBOXOAUTHMULTIAuthConfigToJSON(value['config']), - }; -} - diff --git a/src/ts/src/models/DropboxOauthMultiCustom.ts b/src/ts/src/models/DropboxOauthMultiCustom.ts deleted file mode 100644 index a48e2ca..0000000 --- a/src/ts/src/models/DropboxOauthMultiCustom.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Vectorize API - * API for Vectorize services (Beta) - * - * The version of the OpenAPI document: 0.1.2 - * - * - * 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 { DROPBOXOAUTHMULTICUSTOMAuthConfig } from './DROPBOXOAUTHMULTICUSTOMAuthConfig'; -import { - DROPBOXOAUTHMULTICUSTOMAuthConfigFromJSON, - DROPBOXOAUTHMULTICUSTOMAuthConfigFromJSONTyped, - DROPBOXOAUTHMULTICUSTOMAuthConfigToJSON, - DROPBOXOAUTHMULTICUSTOMAuthConfigToJSONTyped, -} from './DROPBOXOAUTHMULTICUSTOMAuthConfig'; - -/** - * - * @export - * @interface DropboxOauthMultiCustom - */ -export interface DropboxOauthMultiCustom { - /** - * - * @type {DROPBOXOAUTHMULTICUSTOMAuthConfig} - * @memberof DropboxOauthMultiCustom - */ - config?: DROPBOXOAUTHMULTICUSTOMAuthConfig; -} - -/** - * Check if a given object implements the DropboxOauthMultiCustom interface. - */ -export function instanceOfDropboxOauthMultiCustom(value: object): value is DropboxOauthMultiCustom { - return true; -} - -export function DropboxOauthMultiCustomFromJSON(json: any): DropboxOauthMultiCustom { - return DropboxOauthMultiCustomFromJSONTyped(json, false); -} - -export function DropboxOauthMultiCustomFromJSONTyped(json: any, ignoreDiscriminator: boolean): DropboxOauthMultiCustom { - if (json == null) { - return json; - } - return { - - 'config': json['config'] == null ? undefined : DROPBOXOAUTHMULTICUSTOMAuthConfigFromJSON(json['config']), - }; -} - -export function DropboxOauthMultiCustomToJSON(json: any): DropboxOauthMultiCustom { - return DropboxOauthMultiCustomToJSONTyped(json, false); -} - -export function DropboxOauthMultiCustomToJSONTyped(value?: DropboxOauthMultiCustom | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'config': DROPBOXOAUTHMULTICUSTOMAuthConfigToJSON(value['config']), - }; -} - diff --git a/src/ts/src/models/FIREFLIESConfig.ts b/src/ts/src/models/FIREFLIESConfig.ts index e8efbef..34c4dba 100644 --- a/src/ts/src/models/FIREFLIESConfig.ts +++ b/src/ts/src/models/FIREFLIESConfig.ts @@ -56,7 +56,7 @@ export interface FIREFLIESConfig { */ participantFilter?: string; /** - * Max Meetings. Enter -1 for all available meetings, or specify a limit. Example: Enter maximum number of meetings to retrieve. (-1 for all) + * Max Meetings. Leave blank for no limit, or specify a maximum number. Example: Enter maximum number of meetings to retrieve (leave blank for no limit) * @type {number} * @memberof FIREFLIESConfig */ diff --git a/src/ts/src/models/GITHUBConfig.ts b/src/ts/src/models/GITHUBConfig.ts index 248b0fc..3236b54 100644 --- a/src/ts/src/models/GITHUBConfig.ts +++ b/src/ts/src/models/GITHUBConfig.ts @@ -62,11 +62,11 @@ export interface GITHUBConfig { */ issueLabels?: Array; /** - * Max Items. Example: Enter maximum number of items to fetch + * Max Items. Leave blank for no limit, or specify a maximum number. Example: Enter maximum number of items to fetch (leave blank for no limit) * @type {number} * @memberof GITHUBConfig */ - maxItems: number; + maxItems?: number; /** * Created After. Filter for items created after this date. Example: Enter a date: Example 2012-12-31 * @type {Date} @@ -107,7 +107,6 @@ export function instanceOfGITHUBConfig(value: object): value is GITHUBConfig { if (!('pullRequestStatus' in value) || value['pullRequestStatus'] === undefined) return false; if (!('includeIssues' in value) || value['includeIssues'] === undefined) return false; if (!('issueStatus' in value) || value['issueStatus'] === undefined) return false; - if (!('maxItems' in value) || value['maxItems'] === undefined) return false; return true; } @@ -128,7 +127,7 @@ export function GITHUBConfigFromJSONTyped(json: any, ignoreDiscriminator: boolea 'includeIssues': json['include-issues'], 'issueStatus': json['issue-status'], 'issueLabels': json['issue-labels'] == null ? undefined : json['issue-labels'], - 'maxItems': json['max-items'], + 'maxItems': json['max-items'] == null ? undefined : json['max-items'], 'createdAfter': json['created-after'] == null ? undefined : (new Date(json['created-after'])), }; } diff --git a/src/ts/src/models/GMAILAuthConfig.ts b/src/ts/src/models/GMAILAuthConfig.ts deleted file mode 100644 index d52386d..0000000 --- a/src/ts/src/models/GMAILAuthConfig.ts +++ /dev/null @@ -1,66 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Vectorize API - * API for Vectorize services (Beta) - * - * The version of the OpenAPI document: 0.1.2 - * - * - * 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'; -/** - * Authentication configuration for Gmail - * @export - * @interface GMAILAuthConfig - */ -export interface GMAILAuthConfig { - /** - * Connect Gmail to Vectorize. Example: Authorize - * @type {string} - * @memberof GMAILAuthConfig - */ - refreshToken: string; -} - -/** - * Check if a given object implements the GMAILAuthConfig interface. - */ -export function instanceOfGMAILAuthConfig(value: object): value is GMAILAuthConfig { - if (!('refreshToken' in value) || value['refreshToken'] === undefined) return false; - return true; -} - -export function GMAILAuthConfigFromJSON(json: any): GMAILAuthConfig { - return GMAILAuthConfigFromJSONTyped(json, false); -} - -export function GMAILAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): GMAILAuthConfig { - if (json == null) { - return json; - } - return { - - 'refreshToken': json['refresh-token'], - }; -} - -export function GMAILAuthConfigToJSON(json: any): GMAILAuthConfig { - return GMAILAuthConfigToJSONTyped(json, false); -} - -export function GMAILAuthConfigToJSONTyped(value?: GMAILAuthConfig | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'refresh-token': value['refreshToken'], - }; -} - diff --git a/src/ts/src/models/GMAILConfig.ts b/src/ts/src/models/GMAILConfig.ts index 745d20a..3e71000 100644 --- a/src/ts/src/models/GMAILConfig.ts +++ b/src/ts/src/models/GMAILConfig.ts @@ -92,7 +92,7 @@ export interface GMAILConfig { */ endDate?: Date; /** - * Maximum Results. Enter -1 for all available emails, or specify a limit. . Example: Enter maximum number of threads to retrieve + * Maximum Results. Leave blank for no limit, or specify a maximum number. Example: Enter maximum number of threads to retrieve (leave blank for no limit) * @type {number} * @memberof GMAILConfig */ diff --git a/src/ts/src/models/GOOGLEDRIVEOAUTHAuthConfig.ts b/src/ts/src/models/GOOGLEDRIVEOAUTHAuthConfig.ts deleted file mode 100644 index 8de8a74..0000000 --- a/src/ts/src/models/GOOGLEDRIVEOAUTHAuthConfig.ts +++ /dev/null @@ -1,90 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Vectorize API - * API for Vectorize services (Beta) - * - * The version of the OpenAPI document: 0.1.2 - * - * - * 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'; -/** - * Authentication configuration for Google Drive OAuth - * @export - * @interface GOOGLEDRIVEOAUTHAuthConfig - */ -export interface GOOGLEDRIVEOAUTHAuthConfig { - /** - * Authorized User - * @type {string} - * @memberof GOOGLEDRIVEOAUTHAuthConfig - */ - authorizedUser?: string; - /** - * Connect Google Drive to Vectorize. Example: Authorize - * @type {string} - * @memberof GOOGLEDRIVEOAUTHAuthConfig - */ - selectionDetails: string; - /** - * - * @type {object} - * @memberof GOOGLEDRIVEOAUTHAuthConfig - */ - editedUsers?: object; - /** - * - * @type {object} - * @memberof GOOGLEDRIVEOAUTHAuthConfig - */ - reconnectUsers?: object; -} - -/** - * Check if a given object implements the GOOGLEDRIVEOAUTHAuthConfig interface. - */ -export function instanceOfGOOGLEDRIVEOAUTHAuthConfig(value: object): value is GOOGLEDRIVEOAUTHAuthConfig { - if (!('selectionDetails' in value) || value['selectionDetails'] === undefined) return false; - return true; -} - -export function GOOGLEDRIVEOAUTHAuthConfigFromJSON(json: any): GOOGLEDRIVEOAUTHAuthConfig { - return GOOGLEDRIVEOAUTHAuthConfigFromJSONTyped(json, false); -} - -export function GOOGLEDRIVEOAUTHAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): GOOGLEDRIVEOAUTHAuthConfig { - if (json == null) { - return json; - } - return { - - 'authorizedUser': json['authorized-user'] == null ? undefined : json['authorized-user'], - 'selectionDetails': json['selection-details'], - 'editedUsers': json['editedUsers'] == null ? undefined : json['editedUsers'], - 'reconnectUsers': json['reconnectUsers'] == null ? undefined : json['reconnectUsers'], - }; -} - -export function GOOGLEDRIVEOAUTHAuthConfigToJSON(json: any): GOOGLEDRIVEOAUTHAuthConfig { - return GOOGLEDRIVEOAUTHAuthConfigToJSONTyped(json, false); -} - -export function GOOGLEDRIVEOAUTHAuthConfigToJSONTyped(value?: GOOGLEDRIVEOAUTHAuthConfig | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'authorized-user': value['authorizedUser'], - 'selection-details': value['selectionDetails'], - 'editedUsers': value['editedUsers'], - 'reconnectUsers': value['reconnectUsers'], - }; -} - diff --git a/src/ts/src/models/GOOGLEDRIVEOAUTHMULTIAuthConfig.ts b/src/ts/src/models/GOOGLEDRIVEOAUTHMULTIAuthConfig.ts deleted file mode 100644 index 41e222e..0000000 --- a/src/ts/src/models/GOOGLEDRIVEOAUTHMULTIAuthConfig.ts +++ /dev/null @@ -1,81 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Vectorize API - * API for Vectorize services (Beta) - * - * The version of the OpenAPI document: 0.1.2 - * - * - * 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'; -/** - * Authentication configuration for Google Drive Multi-User (Vectorize) - * @export - * @interface GOOGLEDRIVEOAUTHMULTIAuthConfig - */ -export interface GOOGLEDRIVEOAUTHMULTIAuthConfig { - /** - * Authorized Users - * @type {Array} - * @memberof GOOGLEDRIVEOAUTHMULTIAuthConfig - */ - authorizedUsers?: Array; - /** - * - * @type {object} - * @memberof GOOGLEDRIVEOAUTHMULTIAuthConfig - */ - editedUsers?: object; - /** - * - * @type {object} - * @memberof GOOGLEDRIVEOAUTHMULTIAuthConfig - */ - deletedUsers?: object; -} - -/** - * Check if a given object implements the GOOGLEDRIVEOAUTHMULTIAuthConfig interface. - */ -export function instanceOfGOOGLEDRIVEOAUTHMULTIAuthConfig(value: object): value is GOOGLEDRIVEOAUTHMULTIAuthConfig { - return true; -} - -export function GOOGLEDRIVEOAUTHMULTIAuthConfigFromJSON(json: any): GOOGLEDRIVEOAUTHMULTIAuthConfig { - return GOOGLEDRIVEOAUTHMULTIAuthConfigFromJSONTyped(json, false); -} - -export function GOOGLEDRIVEOAUTHMULTIAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): GOOGLEDRIVEOAUTHMULTIAuthConfig { - if (json == null) { - return json; - } - return { - - 'authorizedUsers': json['authorized-users'] == null ? undefined : json['authorized-users'], - 'editedUsers': json['editedUsers'] == null ? undefined : json['editedUsers'], - 'deletedUsers': json['deletedUsers'] == null ? undefined : json['deletedUsers'], - }; -} - -export function GOOGLEDRIVEOAUTHMULTIAuthConfigToJSON(json: any): GOOGLEDRIVEOAUTHMULTIAuthConfig { - return GOOGLEDRIVEOAUTHMULTIAuthConfigToJSONTyped(json, false); -} - -export function GOOGLEDRIVEOAUTHMULTIAuthConfigToJSONTyped(value?: GOOGLEDRIVEOAUTHMULTIAuthConfig | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'authorized-users': value['authorizedUsers'], - 'editedUsers': value['editedUsers'], - 'deletedUsers': value['deletedUsers'], - }; -} - diff --git a/src/ts/src/models/GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig.ts b/src/ts/src/models/GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig.ts deleted file mode 100644 index be75713..0000000 --- a/src/ts/src/models/GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig.ts +++ /dev/null @@ -1,99 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Vectorize API - * API for Vectorize services (Beta) - * - * The version of the OpenAPI document: 0.1.2 - * - * - * 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'; -/** - * Authentication configuration for Google Drive Multi-User (White Label) - * @export - * @interface GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig - */ -export interface GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig { - /** - * OAuth2 Client Id. Example: Enter Client Id - * @type {string} - * @memberof GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig - */ - oauth2ClientId: string; - /** - * OAuth2 Client Secret. Example: Enter Client Secret - * @type {string} - * @memberof GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig - */ - oauth2ClientSecret: string; - /** - * Authorized Users - * @type {Array} - * @memberof GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig - */ - authorizedUsers?: Array; - /** - * - * @type {object} - * @memberof GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig - */ - editedUsers?: object; - /** - * - * @type {object} - * @memberof GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig - */ - deletedUsers?: object; -} - -/** - * Check if a given object implements the GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig interface. - */ -export function instanceOfGOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig(value: object): value is GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig { - if (!('oauth2ClientId' in value) || value['oauth2ClientId'] === undefined) return false; - if (!('oauth2ClientSecret' in value) || value['oauth2ClientSecret'] === undefined) return false; - return true; -} - -export function GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfigFromJSON(json: any): GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig { - return GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfigFromJSONTyped(json, false); -} - -export function GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig { - if (json == null) { - return json; - } - return { - - 'oauth2ClientId': json['oauth2-client-id'], - 'oauth2ClientSecret': json['oauth2-client-secret'], - 'authorizedUsers': json['authorized-users'] == null ? undefined : json['authorized-users'], - 'editedUsers': json['editedUsers'] == null ? undefined : json['editedUsers'], - 'deletedUsers': json['deletedUsers'] == null ? undefined : json['deletedUsers'], - }; -} - -export function GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfigToJSON(json: any): GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig { - return GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfigToJSONTyped(json, false); -} - -export function GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfigToJSONTyped(value?: GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'oauth2-client-id': value['oauth2ClientId'], - 'oauth2-client-secret': value['oauth2ClientSecret'], - 'authorized-users': value['authorizedUsers'], - 'editedUsers': value['editedUsers'], - 'deletedUsers': value['deletedUsers'], - }; -} - diff --git a/src/ts/src/models/GoogleDriveOauth.ts b/src/ts/src/models/GoogleDriveOauth.ts deleted file mode 100644 index 42b2de5..0000000 --- a/src/ts/src/models/GoogleDriveOauth.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Vectorize API - * API for Vectorize services (Beta) - * - * The version of the OpenAPI document: 0.1.2 - * - * - * 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 { GOOGLEDRIVEOAUTHAuthConfig } from './GOOGLEDRIVEOAUTHAuthConfig'; -import { - GOOGLEDRIVEOAUTHAuthConfigFromJSON, - GOOGLEDRIVEOAUTHAuthConfigFromJSONTyped, - GOOGLEDRIVEOAUTHAuthConfigToJSON, - GOOGLEDRIVEOAUTHAuthConfigToJSONTyped, -} from './GOOGLEDRIVEOAUTHAuthConfig'; - -/** - * - * @export - * @interface GoogleDriveOauth - */ -export interface GoogleDriveOauth { - /** - * - * @type {GOOGLEDRIVEOAUTHAuthConfig} - * @memberof GoogleDriveOauth - */ - config?: GOOGLEDRIVEOAUTHAuthConfig; -} - -/** - * Check if a given object implements the GoogleDriveOauth interface. - */ -export function instanceOfGoogleDriveOauth(value: object): value is GoogleDriveOauth { - return true; -} - -export function GoogleDriveOauthFromJSON(json: any): GoogleDriveOauth { - return GoogleDriveOauthFromJSONTyped(json, false); -} - -export function GoogleDriveOauthFromJSONTyped(json: any, ignoreDiscriminator: boolean): GoogleDriveOauth { - if (json == null) { - return json; - } - return { - - 'config': json['config'] == null ? undefined : GOOGLEDRIVEOAUTHAuthConfigFromJSON(json['config']), - }; -} - -export function GoogleDriveOauthToJSON(json: any): GoogleDriveOauth { - return GoogleDriveOauthToJSONTyped(json, false); -} - -export function GoogleDriveOauthToJSONTyped(value?: GoogleDriveOauth | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'config': GOOGLEDRIVEOAUTHAuthConfigToJSON(value['config']), - }; -} - diff --git a/src/ts/src/models/GoogleDriveOauthMulti.ts b/src/ts/src/models/GoogleDriveOauthMulti.ts deleted file mode 100644 index 5901e22..0000000 --- a/src/ts/src/models/GoogleDriveOauthMulti.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Vectorize API - * API for Vectorize services (Beta) - * - * The version of the OpenAPI document: 0.1.2 - * - * - * 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 { GOOGLEDRIVEOAUTHMULTIAuthConfig } from './GOOGLEDRIVEOAUTHMULTIAuthConfig'; -import { - GOOGLEDRIVEOAUTHMULTIAuthConfigFromJSON, - GOOGLEDRIVEOAUTHMULTIAuthConfigFromJSONTyped, - GOOGLEDRIVEOAUTHMULTIAuthConfigToJSON, - GOOGLEDRIVEOAUTHMULTIAuthConfigToJSONTyped, -} from './GOOGLEDRIVEOAUTHMULTIAuthConfig'; - -/** - * - * @export - * @interface GoogleDriveOauthMulti - */ -export interface GoogleDriveOauthMulti { - /** - * - * @type {GOOGLEDRIVEOAUTHMULTIAuthConfig} - * @memberof GoogleDriveOauthMulti - */ - config?: GOOGLEDRIVEOAUTHMULTIAuthConfig; -} - -/** - * Check if a given object implements the GoogleDriveOauthMulti interface. - */ -export function instanceOfGoogleDriveOauthMulti(value: object): value is GoogleDriveOauthMulti { - return true; -} - -export function GoogleDriveOauthMultiFromJSON(json: any): GoogleDriveOauthMulti { - return GoogleDriveOauthMultiFromJSONTyped(json, false); -} - -export function GoogleDriveOauthMultiFromJSONTyped(json: any, ignoreDiscriminator: boolean): GoogleDriveOauthMulti { - if (json == null) { - return json; - } - return { - - 'config': json['config'] == null ? undefined : GOOGLEDRIVEOAUTHMULTIAuthConfigFromJSON(json['config']), - }; -} - -export function GoogleDriveOauthMultiToJSON(json: any): GoogleDriveOauthMulti { - return GoogleDriveOauthMultiToJSONTyped(json, false); -} - -export function GoogleDriveOauthMultiToJSONTyped(value?: GoogleDriveOauthMulti | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'config': GOOGLEDRIVEOAUTHMULTIAuthConfigToJSON(value['config']), - }; -} - diff --git a/src/ts/src/models/GoogleDriveOauthMultiCustom.ts b/src/ts/src/models/GoogleDriveOauthMultiCustom.ts deleted file mode 100644 index a0981bd..0000000 --- a/src/ts/src/models/GoogleDriveOauthMultiCustom.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Vectorize API - * API for Vectorize services (Beta) - * - * The version of the OpenAPI document: 0.1.2 - * - * - * 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 { GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig } from './GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig'; -import { - GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfigFromJSON, - GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfigFromJSONTyped, - GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfigToJSON, - GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfigToJSONTyped, -} from './GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig'; - -/** - * - * @export - * @interface GoogleDriveOauthMultiCustom - */ -export interface GoogleDriveOauthMultiCustom { - /** - * - * @type {GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig} - * @memberof GoogleDriveOauthMultiCustom - */ - config?: GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig; -} - -/** - * Check if a given object implements the GoogleDriveOauthMultiCustom interface. - */ -export function instanceOfGoogleDriveOauthMultiCustom(value: object): value is GoogleDriveOauthMultiCustom { - return true; -} - -export function GoogleDriveOauthMultiCustomFromJSON(json: any): GoogleDriveOauthMultiCustom { - return GoogleDriveOauthMultiCustomFromJSONTyped(json, false); -} - -export function GoogleDriveOauthMultiCustomFromJSONTyped(json: any, ignoreDiscriminator: boolean): GoogleDriveOauthMultiCustom { - if (json == null) { - return json; - } - return { - - 'config': json['config'] == null ? undefined : GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfigFromJSON(json['config']), - }; -} - -export function GoogleDriveOauthMultiCustomToJSON(json: any): GoogleDriveOauthMultiCustom { - return GoogleDriveOauthMultiCustomToJSONTyped(json, false); -} - -export function GoogleDriveOauthMultiCustomToJSONTyped(value?: GoogleDriveOauthMultiCustom | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'config': GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfigToJSON(value['config']), - }; -} - diff --git a/src/ts/src/models/INTERCOMAuthConfig.ts b/src/ts/src/models/INTERCOMAuthConfig.ts deleted file mode 100644 index e15673f..0000000 --- a/src/ts/src/models/INTERCOMAuthConfig.ts +++ /dev/null @@ -1,66 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Vectorize API - * API for Vectorize services (Beta) - * - * The version of the OpenAPI document: 0.1.2 - * - * - * 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'; -/** - * Authentication configuration for Intercom - * @export - * @interface INTERCOMAuthConfig - */ -export interface INTERCOMAuthConfig { - /** - * Access Token. Example: Authorize Intercom Access - * @type {string} - * @memberof INTERCOMAuthConfig - */ - token: string; -} - -/** - * Check if a given object implements the INTERCOMAuthConfig interface. - */ -export function instanceOfINTERCOMAuthConfig(value: object): value is INTERCOMAuthConfig { - if (!('token' in value) || value['token'] === undefined) return false; - return true; -} - -export function INTERCOMAuthConfigFromJSON(json: any): INTERCOMAuthConfig { - return INTERCOMAuthConfigFromJSONTyped(json, false); -} - -export function INTERCOMAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): INTERCOMAuthConfig { - if (json == null) { - return json; - } - return { - - 'token': json['token'], - }; -} - -export function INTERCOMAuthConfigToJSON(json: any): INTERCOMAuthConfig { - return INTERCOMAuthConfigToJSONTyped(json, false); -} - -export function INTERCOMAuthConfigToJSONTyped(value?: INTERCOMAuthConfig | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'token': value['token'], - }; -} - diff --git a/src/ts/src/models/Intercom.ts b/src/ts/src/models/Intercom.ts deleted file mode 100644 index 5077c83..0000000 --- a/src/ts/src/models/Intercom.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Vectorize API - * API for Vectorize services (Beta) - * - * The version of the OpenAPI document: 0.1.2 - * - * - * 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 { INTERCOMAuthConfig } from './INTERCOMAuthConfig'; -import { - INTERCOMAuthConfigFromJSON, - INTERCOMAuthConfigFromJSONTyped, - INTERCOMAuthConfigToJSON, - INTERCOMAuthConfigToJSONTyped, -} from './INTERCOMAuthConfig'; - -/** - * - * @export - * @interface Intercom - */ -export interface Intercom { - /** - * - * @type {INTERCOMAuthConfig} - * @memberof Intercom - */ - config?: INTERCOMAuthConfig; -} - -/** - * Check if a given object implements the Intercom interface. - */ -export function instanceOfIntercom(value: object): value is Intercom { - return true; -} - -export function IntercomFromJSON(json: any): Intercom { - return IntercomFromJSONTyped(json, false); -} - -export function IntercomFromJSONTyped(json: any, ignoreDiscriminator: boolean): Intercom { - if (json == null) { - return json; - } - return { - - 'config': json['config'] == null ? undefined : INTERCOMAuthConfigFromJSON(json['config']), - }; -} - -export function IntercomToJSON(json: any): Intercom { - return IntercomToJSONTyped(json, false); -} - -export function IntercomToJSONTyped(value?: Intercom | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'config': INTERCOMAuthConfigToJSON(value['config']), - }; -} - diff --git a/src/ts/src/models/NOTIONAuthConfig.ts b/src/ts/src/models/NOTIONAuthConfig.ts deleted file mode 100644 index 07de1bd..0000000 --- a/src/ts/src/models/NOTIONAuthConfig.ts +++ /dev/null @@ -1,82 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Vectorize API - * API for Vectorize services (Beta) - * - * The version of the OpenAPI document: 0.1.2 - * - * - * 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'; -/** - * Authentication configuration for Notion - * @export - * @interface NOTIONAuthConfig - */ -export interface NOTIONAuthConfig { - /** - * Connect Notion to Vectorize - Note this will effect existing connections. test. Example: Authorize - * @type {string} - * @memberof NOTIONAuthConfig - */ - accessToken: string; - /** - * - * @type {string} - * @memberof NOTIONAuthConfig - */ - s3id?: string; - /** - * - * @type {string} - * @memberof NOTIONAuthConfig - */ - editedToken?: string; -} - -/** - * Check if a given object implements the NOTIONAuthConfig interface. - */ -export function instanceOfNOTIONAuthConfig(value: object): value is NOTIONAuthConfig { - if (!('accessToken' in value) || value['accessToken'] === undefined) return false; - return true; -} - -export function NOTIONAuthConfigFromJSON(json: any): NOTIONAuthConfig { - return NOTIONAuthConfigFromJSONTyped(json, false); -} - -export function NOTIONAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): NOTIONAuthConfig { - if (json == null) { - return json; - } - return { - - 'accessToken': json['access-token'], - 's3id': json['s3id'] == null ? undefined : json['s3id'], - 'editedToken': json['editedToken'] == null ? undefined : json['editedToken'], - }; -} - -export function NOTIONAuthConfigToJSON(json: any): NOTIONAuthConfig { - return NOTIONAuthConfigToJSONTyped(json, false); -} - -export function NOTIONAuthConfigToJSONTyped(value?: NOTIONAuthConfig | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'access-token': value['accessToken'], - 's3id': value['s3id'], - 'editedToken': value['editedToken'], - }; -} - diff --git a/src/ts/src/models/NOTIONOAUTHMULTIAuthConfig.ts b/src/ts/src/models/NOTIONOAUTHMULTIAuthConfig.ts deleted file mode 100644 index 2184693..0000000 --- a/src/ts/src/models/NOTIONOAUTHMULTIAuthConfig.ts +++ /dev/null @@ -1,81 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Vectorize API - * API for Vectorize services (Beta) - * - * The version of the OpenAPI document: 0.1.2 - * - * - * 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'; -/** - * Authentication configuration for Notion Multi-User (Vectorize) - * @export - * @interface NOTIONOAUTHMULTIAuthConfig - */ -export interface NOTIONOAUTHMULTIAuthConfig { - /** - * Authorized Users. Users who have authorized access to their Notion content - * @type {Array} - * @memberof NOTIONOAUTHMULTIAuthConfig - */ - authorizedUsers?: Array; - /** - * - * @type {object} - * @memberof NOTIONOAUTHMULTIAuthConfig - */ - editedUsers?: object; - /** - * - * @type {object} - * @memberof NOTIONOAUTHMULTIAuthConfig - */ - deletedUsers?: object; -} - -/** - * Check if a given object implements the NOTIONOAUTHMULTIAuthConfig interface. - */ -export function instanceOfNOTIONOAUTHMULTIAuthConfig(value: object): value is NOTIONOAUTHMULTIAuthConfig { - return true; -} - -export function NOTIONOAUTHMULTIAuthConfigFromJSON(json: any): NOTIONOAUTHMULTIAuthConfig { - return NOTIONOAUTHMULTIAuthConfigFromJSONTyped(json, false); -} - -export function NOTIONOAUTHMULTIAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): NOTIONOAUTHMULTIAuthConfig { - if (json == null) { - return json; - } - return { - - 'authorizedUsers': json['authorized-users'] == null ? undefined : json['authorized-users'], - 'editedUsers': json['editedUsers'] == null ? undefined : json['editedUsers'], - 'deletedUsers': json['deletedUsers'] == null ? undefined : json['deletedUsers'], - }; -} - -export function NOTIONOAUTHMULTIAuthConfigToJSON(json: any): NOTIONOAUTHMULTIAuthConfig { - return NOTIONOAUTHMULTIAuthConfigToJSONTyped(json, false); -} - -export function NOTIONOAUTHMULTIAuthConfigToJSONTyped(value?: NOTIONOAUTHMULTIAuthConfig | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'authorized-users': value['authorizedUsers'], - 'editedUsers': value['editedUsers'], - 'deletedUsers': value['deletedUsers'], - }; -} - diff --git a/src/ts/src/models/NOTIONOAUTHMULTICUSTOMAuthConfig.ts b/src/ts/src/models/NOTIONOAUTHMULTICUSTOMAuthConfig.ts deleted file mode 100644 index 1a10b99..0000000 --- a/src/ts/src/models/NOTIONOAUTHMULTICUSTOMAuthConfig.ts +++ /dev/null @@ -1,99 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Vectorize API - * API for Vectorize services (Beta) - * - * The version of the OpenAPI document: 0.1.2 - * - * - * 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'; -/** - * Authentication configuration for Notion Multi-User (White Label) - * @export - * @interface NOTIONOAUTHMULTICUSTOMAuthConfig - */ -export interface NOTIONOAUTHMULTICUSTOMAuthConfig { - /** - * Notion Client ID. Example: Enter Client ID - * @type {string} - * @memberof NOTIONOAUTHMULTICUSTOMAuthConfig - */ - clientId: string; - /** - * Notion Client Secret. Example: Enter Client Secret - * @type {string} - * @memberof NOTIONOAUTHMULTICUSTOMAuthConfig - */ - clientSecret: string; - /** - * Authorized Users - * @type {Array} - * @memberof NOTIONOAUTHMULTICUSTOMAuthConfig - */ - authorizedUsers?: Array; - /** - * - * @type {object} - * @memberof NOTIONOAUTHMULTICUSTOMAuthConfig - */ - editedUsers?: object; - /** - * - * @type {object} - * @memberof NOTIONOAUTHMULTICUSTOMAuthConfig - */ - deletedUsers?: object; -} - -/** - * Check if a given object implements the NOTIONOAUTHMULTICUSTOMAuthConfig interface. - */ -export function instanceOfNOTIONOAUTHMULTICUSTOMAuthConfig(value: object): value is NOTIONOAUTHMULTICUSTOMAuthConfig { - if (!('clientId' in value) || value['clientId'] === undefined) return false; - if (!('clientSecret' in value) || value['clientSecret'] === undefined) return false; - return true; -} - -export function NOTIONOAUTHMULTICUSTOMAuthConfigFromJSON(json: any): NOTIONOAUTHMULTICUSTOMAuthConfig { - return NOTIONOAUTHMULTICUSTOMAuthConfigFromJSONTyped(json, false); -} - -export function NOTIONOAUTHMULTICUSTOMAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): NOTIONOAUTHMULTICUSTOMAuthConfig { - if (json == null) { - return json; - } - return { - - 'clientId': json['client-id'], - 'clientSecret': json['client-secret'], - 'authorizedUsers': json['authorized-users'] == null ? undefined : json['authorized-users'], - 'editedUsers': json['editedUsers'] == null ? undefined : json['editedUsers'], - 'deletedUsers': json['deletedUsers'] == null ? undefined : json['deletedUsers'], - }; -} - -export function NOTIONOAUTHMULTICUSTOMAuthConfigToJSON(json: any): NOTIONOAUTHMULTICUSTOMAuthConfig { - return NOTIONOAUTHMULTICUSTOMAuthConfigToJSONTyped(json, false); -} - -export function NOTIONOAUTHMULTICUSTOMAuthConfigToJSONTyped(value?: NOTIONOAUTHMULTICUSTOMAuthConfig | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'client-id': value['clientId'], - 'client-secret': value['clientSecret'], - 'authorized-users': value['authorizedUsers'], - 'editedUsers': value['editedUsers'], - 'deletedUsers': value['deletedUsers'], - }; -} - diff --git a/src/ts/src/models/Notion.ts b/src/ts/src/models/Notion.ts deleted file mode 100644 index 0c6bb84..0000000 --- a/src/ts/src/models/Notion.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Vectorize API - * API for Vectorize services (Beta) - * - * The version of the OpenAPI document: 0.1.2 - * - * - * 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 { NOTIONAuthConfig } from './NOTIONAuthConfig'; -import { - NOTIONAuthConfigFromJSON, - NOTIONAuthConfigFromJSONTyped, - NOTIONAuthConfigToJSON, - NOTIONAuthConfigToJSONTyped, -} from './NOTIONAuthConfig'; - -/** - * - * @export - * @interface Notion - */ -export interface Notion { - /** - * - * @type {NOTIONAuthConfig} - * @memberof Notion - */ - config?: NOTIONAuthConfig; -} - -/** - * Check if a given object implements the Notion interface. - */ -export function instanceOfNotion(value: object): value is Notion { - return true; -} - -export function NotionFromJSON(json: any): Notion { - return NotionFromJSONTyped(json, false); -} - -export function NotionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Notion { - if (json == null) { - return json; - } - return { - - 'config': json['config'] == null ? undefined : NOTIONAuthConfigFromJSON(json['config']), - }; -} - -export function NotionToJSON(json: any): Notion { - return NotionToJSONTyped(json, false); -} - -export function NotionToJSONTyped(value?: Notion | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'config': NOTIONAuthConfigToJSON(value['config']), - }; -} - diff --git a/src/ts/src/models/NotionOauthMulti.ts b/src/ts/src/models/NotionOauthMulti.ts deleted file mode 100644 index abd34d4..0000000 --- a/src/ts/src/models/NotionOauthMulti.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Vectorize API - * API for Vectorize services (Beta) - * - * The version of the OpenAPI document: 0.1.2 - * - * - * 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 { NOTIONOAUTHMULTIAuthConfig } from './NOTIONOAUTHMULTIAuthConfig'; -import { - NOTIONOAUTHMULTIAuthConfigFromJSON, - NOTIONOAUTHMULTIAuthConfigFromJSONTyped, - NOTIONOAUTHMULTIAuthConfigToJSON, - NOTIONOAUTHMULTIAuthConfigToJSONTyped, -} from './NOTIONOAUTHMULTIAuthConfig'; - -/** - * - * @export - * @interface NotionOauthMulti - */ -export interface NotionOauthMulti { - /** - * - * @type {NOTIONOAUTHMULTIAuthConfig} - * @memberof NotionOauthMulti - */ - config?: NOTIONOAUTHMULTIAuthConfig; -} - -/** - * Check if a given object implements the NotionOauthMulti interface. - */ -export function instanceOfNotionOauthMulti(value: object): value is NotionOauthMulti { - return true; -} - -export function NotionOauthMultiFromJSON(json: any): NotionOauthMulti { - return NotionOauthMultiFromJSONTyped(json, false); -} - -export function NotionOauthMultiFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotionOauthMulti { - if (json == null) { - return json; - } - return { - - 'config': json['config'] == null ? undefined : NOTIONOAUTHMULTIAuthConfigFromJSON(json['config']), - }; -} - -export function NotionOauthMultiToJSON(json: any): NotionOauthMulti { - return NotionOauthMultiToJSONTyped(json, false); -} - -export function NotionOauthMultiToJSONTyped(value?: NotionOauthMulti | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'config': NOTIONOAUTHMULTIAuthConfigToJSON(value['config']), - }; -} - diff --git a/src/ts/src/models/NotionOauthMultiCustom.ts b/src/ts/src/models/NotionOauthMultiCustom.ts deleted file mode 100644 index 9d751b1..0000000 --- a/src/ts/src/models/NotionOauthMultiCustom.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Vectorize API - * API for Vectorize services (Beta) - * - * The version of the OpenAPI document: 0.1.2 - * - * - * 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 { NOTIONOAUTHMULTICUSTOMAuthConfig } from './NOTIONOAUTHMULTICUSTOMAuthConfig'; -import { - NOTIONOAUTHMULTICUSTOMAuthConfigFromJSON, - NOTIONOAUTHMULTICUSTOMAuthConfigFromJSONTyped, - NOTIONOAUTHMULTICUSTOMAuthConfigToJSON, - NOTIONOAUTHMULTICUSTOMAuthConfigToJSONTyped, -} from './NOTIONOAUTHMULTICUSTOMAuthConfig'; - -/** - * - * @export - * @interface NotionOauthMultiCustom - */ -export interface NotionOauthMultiCustom { - /** - * - * @type {NOTIONOAUTHMULTICUSTOMAuthConfig} - * @memberof NotionOauthMultiCustom - */ - config?: NOTIONOAUTHMULTICUSTOMAuthConfig; -} - -/** - * Check if a given object implements the NotionOauthMultiCustom interface. - */ -export function instanceOfNotionOauthMultiCustom(value: object): value is NotionOauthMultiCustom { - return true; -} - -export function NotionOauthMultiCustomFromJSON(json: any): NotionOauthMultiCustom { - return NotionOauthMultiCustomFromJSONTyped(json, false); -} - -export function NotionOauthMultiCustomFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotionOauthMultiCustom { - if (json == null) { - return json; - } - return { - - 'config': json['config'] == null ? undefined : NOTIONOAUTHMULTICUSTOMAuthConfigFromJSON(json['config']), - }; -} - -export function NotionOauthMultiCustomToJSON(json: any): NotionOauthMultiCustom { - return NotionOauthMultiCustomToJSONTyped(json, false); -} - -export function NotionOauthMultiCustomToJSONTyped(value?: NotionOauthMultiCustom | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'config': NOTIONOAUTHMULTICUSTOMAuthConfigToJSON(value['config']), - }; -} - diff --git a/src/ts/src/models/SourceConnectorInput.ts b/src/ts/src/models/SourceConnectorInput.ts index 78a0af8..b12b710 100644 --- a/src/ts/src/models/SourceConnectorInput.ts +++ b/src/ts/src/models/SourceConnectorInput.ts @@ -76,6 +76,7 @@ export const SourceConnectorInputTypeEnum = { WebCrawler: 'WEB_CRAWLER', Github: 'GITHUB', Fireflies: 'FIREFLIES', + Docusign: 'DOCUSIGN', Gmail: 'GMAIL' } as const; export type SourceConnectorInputTypeEnum = typeof SourceConnectorInputTypeEnum[keyof typeof SourceConnectorInputTypeEnum]; diff --git a/src/ts/src/models/SourceConnectorInputConfig.ts b/src/ts/src/models/SourceConnectorInputConfig.ts index fddcd84..5622cab 100644 --- a/src/ts/src/models/SourceConnectorInputConfig.ts +++ b/src/ts/src/models/SourceConnectorInputConfig.ts @@ -40,6 +40,13 @@ import { DISCORDConfigFromJSONTyped, DISCORDConfigToJSON, } from './DISCORDConfig'; +import type { DOCUSIGNConfig } from './DOCUSIGNConfig'; +import { + instanceOfDOCUSIGNConfig, + DOCUSIGNConfigFromJSON, + DOCUSIGNConfigFromJSONTyped, + DOCUSIGNConfigToJSON, +} from './DOCUSIGNConfig'; import type { DROPBOXConfig } from './DROPBOXConfig'; import { instanceOfDROPBOXConfig, @@ -151,7 +158,7 @@ import { * Configuration specific to the connector type * @export */ -export type SourceConnectorInputConfig = AWSS3Config | AZUREBLOBConfig | CONFLUENCEConfig | DISCORDConfig | DROPBOXConfig | FIRECRAWLConfig | FIREFLIESConfig | GCSConfig | GITHUBConfig | GMAILConfig | GOOGLEDRIVEConfig | GOOGLEDRIVEOAUTHConfig | GOOGLEDRIVEOAUTHMULTICUSTOMConfig | GOOGLEDRIVEOAUTHMULTIConfig | INTERCOMConfig | NOTIONConfig | ONEDRIVEConfig | SHAREPOINTConfig | WEBCRAWLERConfig; +export type SourceConnectorInputConfig = AWSS3Config | AZUREBLOBConfig | CONFLUENCEConfig | DISCORDConfig | DOCUSIGNConfig | DROPBOXConfig | FIRECRAWLConfig | FIREFLIESConfig | GCSConfig | GITHUBConfig | GMAILConfig | GOOGLEDRIVEConfig | GOOGLEDRIVEOAUTHConfig | GOOGLEDRIVEOAUTHMULTICUSTOMConfig | GOOGLEDRIVEOAUTHMULTIConfig | INTERCOMConfig | NOTIONConfig | ONEDRIVEConfig | SHAREPOINTConfig | WEBCRAWLERConfig; export function SourceConnectorInputConfigFromJSON(json: any): SourceConnectorInputConfig { return SourceConnectorInputConfigFromJSONTyped(json, false); @@ -176,6 +183,9 @@ export function SourceConnectorInputConfigFromJSONTyped(json: any, ignoreDiscrim if (instanceOfDISCORDConfig(json)) { return DISCORDConfigFromJSONTyped(json, true); } + if (instanceOfDOCUSIGNConfig(json)) { + return DOCUSIGNConfigFromJSONTyped(json, true); + } if (instanceOfDROPBOXConfig(json)) { return DROPBOXConfigFromJSONTyped(json, true); } @@ -248,6 +258,9 @@ export function SourceConnectorInputConfigToJSONTyped(value?: SourceConnectorInp if (instanceOfDISCORDConfig(value)) { return DISCORDConfigToJSON(value as DISCORDConfig); } + if (instanceOfDOCUSIGNConfig(value)) { + return DOCUSIGNConfigToJSON(value as DOCUSIGNConfig); + } if (instanceOfDROPBOXConfig(value)) { return DROPBOXConfigToJSON(value as DROPBOXConfig); } diff --git a/src/ts/src/models/SourceConnectorType.ts b/src/ts/src/models/SourceConnectorType.ts index 8c29063..b7fc555 100644 --- a/src/ts/src/models/SourceConnectorType.ts +++ b/src/ts/src/models/SourceConnectorType.ts @@ -42,6 +42,7 @@ export const SourceConnectorType = { WebCrawler: 'WEB_CRAWLER', Github: 'GITHUB', Fireflies: 'FIREFLIES', + Docusign: 'DOCUSIGN', Gmail: 'GMAIL' } as const; export type SourceConnectorType = typeof SourceConnectorType[keyof typeof SourceConnectorType]; diff --git a/src/ts/src/models/UpdateSourceConnectorRequest.ts b/src/ts/src/models/UpdateSourceConnectorRequest.ts index def495e..fe5dab1 100644 --- a/src/ts/src/models/UpdateSourceConnectorRequest.ts +++ b/src/ts/src/models/UpdateSourceConnectorRequest.ts @@ -40,34 +40,6 @@ import { Discord1FromJSONTyped, Discord1ToJSON, } from './Discord1'; -import type { Dropbox } from './Dropbox'; -import { - instanceOfDropbox, - DropboxFromJSON, - DropboxFromJSONTyped, - DropboxToJSON, -} from './Dropbox'; -import type { DropboxOauth } from './DropboxOauth'; -import { - instanceOfDropboxOauth, - DropboxOauthFromJSON, - DropboxOauthFromJSONTyped, - DropboxOauthToJSON, -} from './DropboxOauth'; -import type { DropboxOauthMulti } from './DropboxOauthMulti'; -import { - instanceOfDropboxOauthMulti, - DropboxOauthMultiFromJSON, - DropboxOauthMultiFromJSONTyped, - DropboxOauthMultiToJSON, -} from './DropboxOauthMulti'; -import type { DropboxOauthMultiCustom } from './DropboxOauthMultiCustom'; -import { - instanceOfDropboxOauthMultiCustom, - DropboxOauthMultiCustomFromJSON, - DropboxOauthMultiCustomFromJSONTyped, - DropboxOauthMultiCustomToJSON, -} from './DropboxOauthMultiCustom'; import type { FileUpload1 } from './FileUpload1'; import { instanceOfFileUpload1, @@ -110,55 +82,6 @@ import { GoogleDrive1FromJSONTyped, GoogleDrive1ToJSON, } from './GoogleDrive1'; -import type { GoogleDriveOauth } from './GoogleDriveOauth'; -import { - instanceOfGoogleDriveOauth, - GoogleDriveOauthFromJSON, - GoogleDriveOauthFromJSONTyped, - GoogleDriveOauthToJSON, -} from './GoogleDriveOauth'; -import type { GoogleDriveOauthMulti } from './GoogleDriveOauthMulti'; -import { - instanceOfGoogleDriveOauthMulti, - GoogleDriveOauthMultiFromJSON, - GoogleDriveOauthMultiFromJSONTyped, - GoogleDriveOauthMultiToJSON, -} from './GoogleDriveOauthMulti'; -import type { GoogleDriveOauthMultiCustom } from './GoogleDriveOauthMultiCustom'; -import { - instanceOfGoogleDriveOauthMultiCustom, - GoogleDriveOauthMultiCustomFromJSON, - GoogleDriveOauthMultiCustomFromJSONTyped, - GoogleDriveOauthMultiCustomToJSON, -} from './GoogleDriveOauthMultiCustom'; -import type { Intercom } from './Intercom'; -import { - instanceOfIntercom, - IntercomFromJSON, - IntercomFromJSONTyped, - IntercomToJSON, -} from './Intercom'; -import type { Notion } from './Notion'; -import { - instanceOfNotion, - NotionFromJSON, - NotionFromJSONTyped, - NotionToJSON, -} from './Notion'; -import type { NotionOauthMulti } from './NotionOauthMulti'; -import { - instanceOfNotionOauthMulti, - NotionOauthMultiFromJSON, - NotionOauthMultiFromJSONTyped, - NotionOauthMultiToJSON, -} from './NotionOauthMulti'; -import type { NotionOauthMultiCustom } from './NotionOauthMultiCustom'; -import { - instanceOfNotionOauthMultiCustom, - NotionOauthMultiCustomFromJSON, - NotionOauthMultiCustomFromJSONTyped, - NotionOauthMultiCustomToJSON, -} from './NotionOauthMultiCustom'; import type { OneDrive1 } from './OneDrive1'; import { instanceOfOneDrive1, @@ -186,7 +109,7 @@ import { * * @export */ -export type UpdateSourceConnectorRequest = AwsS31 | AzureBlob1 | Confluence1 | Discord1 | Dropbox | DropboxOauth | DropboxOauthMulti | DropboxOauthMultiCustom | FileUpload1 | Firecrawl1 | Fireflies1 | Gcs1 | Github1 | GoogleDrive1 | GoogleDriveOauth | GoogleDriveOauthMulti | GoogleDriveOauthMultiCustom | Intercom | Notion | NotionOauthMulti | NotionOauthMultiCustom | OneDrive1 | Sharepoint1 | WebCrawler1; +export type UpdateSourceConnectorRequest = AwsS31 | AzureBlob1 | Confluence1 | Discord1 | FileUpload1 | Firecrawl1 | Fireflies1 | Gcs1 | Github1 | GoogleDrive1 | OneDrive1 | Sharepoint1 | WebCrawler1; export function UpdateSourceConnectorRequestFromJSON(json: any): UpdateSourceConnectorRequest { return UpdateSourceConnectorRequestFromJSONTyped(json, false); @@ -211,18 +134,6 @@ export function UpdateSourceConnectorRequestFromJSONTyped(json: any, ignoreDiscr if (instanceOfDiscord1(json)) { return Discord1FromJSONTyped(json, true); } - if (instanceOfDropbox(json)) { - return DropboxFromJSONTyped(json, true); - } - if (instanceOfDropboxOauth(json)) { - return DropboxOauthFromJSONTyped(json, true); - } - if (instanceOfDropboxOauthMulti(json)) { - return DropboxOauthMultiFromJSONTyped(json, true); - } - if (instanceOfDropboxOauthMultiCustom(json)) { - return DropboxOauthMultiCustomFromJSONTyped(json, true); - } if (instanceOfFileUpload1(json)) { return FileUpload1FromJSONTyped(json, true); } @@ -241,27 +152,6 @@ export function UpdateSourceConnectorRequestFromJSONTyped(json: any, ignoreDiscr if (instanceOfGoogleDrive1(json)) { return GoogleDrive1FromJSONTyped(json, true); } - if (instanceOfGoogleDriveOauth(json)) { - return GoogleDriveOauthFromJSONTyped(json, true); - } - if (instanceOfGoogleDriveOauthMulti(json)) { - return GoogleDriveOauthMultiFromJSONTyped(json, true); - } - if (instanceOfGoogleDriveOauthMultiCustom(json)) { - return GoogleDriveOauthMultiCustomFromJSONTyped(json, true); - } - if (instanceOfIntercom(json)) { - return IntercomFromJSONTyped(json, true); - } - if (instanceOfNotion(json)) { - return NotionFromJSONTyped(json, true); - } - if (instanceOfNotionOauthMulti(json)) { - return NotionOauthMultiFromJSONTyped(json, true); - } - if (instanceOfNotionOauthMultiCustom(json)) { - return NotionOauthMultiCustomFromJSONTyped(json, true); - } if (instanceOfOneDrive1(json)) { return OneDrive1FromJSONTyped(json, true); } @@ -298,18 +188,6 @@ export function UpdateSourceConnectorRequestToJSONTyped(value?: UpdateSourceConn if (instanceOfDiscord1(value)) { return Discord1ToJSON(value as Discord1); } - if (instanceOfDropbox(value)) { - return DropboxToJSON(value as Dropbox); - } - if (instanceOfDropboxOauth(value)) { - return DropboxOauthToJSON(value as DropboxOauth); - } - if (instanceOfDropboxOauthMulti(value)) { - return DropboxOauthMultiToJSON(value as DropboxOauthMulti); - } - if (instanceOfDropboxOauthMultiCustom(value)) { - return DropboxOauthMultiCustomToJSON(value as DropboxOauthMultiCustom); - } if (instanceOfFileUpload1(value)) { return FileUpload1ToJSON(value as FileUpload1); } @@ -328,27 +206,6 @@ export function UpdateSourceConnectorRequestToJSONTyped(value?: UpdateSourceConn if (instanceOfGoogleDrive1(value)) { return GoogleDrive1ToJSON(value as GoogleDrive1); } - if (instanceOfGoogleDriveOauth(value)) { - return GoogleDriveOauthToJSON(value as GoogleDriveOauth); - } - if (instanceOfGoogleDriveOauthMulti(value)) { - return GoogleDriveOauthMultiToJSON(value as GoogleDriveOauthMulti); - } - if (instanceOfGoogleDriveOauthMultiCustom(value)) { - return GoogleDriveOauthMultiCustomToJSON(value as GoogleDriveOauthMultiCustom); - } - if (instanceOfIntercom(value)) { - return IntercomToJSON(value as Intercom); - } - if (instanceOfNotion(value)) { - return NotionToJSON(value as Notion); - } - if (instanceOfNotionOauthMulti(value)) { - return NotionOauthMultiToJSON(value as NotionOauthMulti); - } - if (instanceOfNotionOauthMultiCustom(value)) { - return NotionOauthMultiCustomToJSON(value as NotionOauthMultiCustom); - } if (instanceOfOneDrive1(value)) { return OneDrive1ToJSON(value as OneDrive1); } diff --git a/src/ts/src/models/index.ts b/src/ts/src/models/index.ts index 8f265bb..cf66398 100644 --- a/src/ts/src/models/index.ts +++ b/src/ts/src/models/index.ts @@ -49,11 +49,8 @@ export * from './DATASTAXAuthConfig'; export * from './DATASTAXConfig'; export * from './DISCORDAuthConfig'; export * from './DISCORDConfig'; -export * from './DROPBOXAuthConfig'; +export * from './DOCUSIGNConfig'; export * from './DROPBOXConfig'; -export * from './DROPBOXOAUTHAuthConfig'; -export * from './DROPBOXOAUTHMULTIAuthConfig'; -export * from './DROPBOXOAUTHMULTICUSTOMAuthConfig'; export * from './Datastax'; export * from './Datastax1'; export * from './DeepResearchResult'; @@ -70,10 +67,6 @@ export * from './DestinationConnectorTypeForPipeline'; export * from './Discord'; export * from './Discord1'; export * from './Document'; -export * from './Dropbox'; -export * from './DropboxOauth'; -export * from './DropboxOauthMulti'; -export * from './DropboxOauthMultiCustom'; export * from './ELASTICAuthConfig'; export * from './ELASTICConfig'; export * from './Elastic'; @@ -97,14 +90,10 @@ export * from './GCSAuthConfig'; export * from './GCSConfig'; export * from './GITHUBAuthConfig'; export * from './GITHUBConfig'; -export * from './GMAILAuthConfig'; export * from './GMAILConfig'; export * from './GOOGLEDRIVEAuthConfig'; export * from './GOOGLEDRIVEConfig'; -export * from './GOOGLEDRIVEOAUTHAuthConfig'; export * from './GOOGLEDRIVEOAUTHConfig'; -export * from './GOOGLEDRIVEOAUTHMULTIAuthConfig'; -export * from './GOOGLEDRIVEOAUTHMULTICUSTOMAuthConfig'; export * from './GOOGLEDRIVEOAUTHMULTICUSTOMConfig'; export * from './GOOGLEDRIVEOAUTHMULTIConfig'; export * from './Gcs'; @@ -123,12 +112,7 @@ export * from './Github'; export * from './Github1'; export * from './GoogleDrive'; export * from './GoogleDrive1'; -export * from './GoogleDriveOauth'; -export * from './GoogleDriveOauthMulti'; -export * from './GoogleDriveOauthMultiCustom'; -export * from './INTERCOMAuthConfig'; export * from './INTERCOMConfig'; -export * from './Intercom'; export * from './MILVUSAuthConfig'; export * from './MILVUSConfig'; export * from './MetadataExtractionStrategy'; @@ -136,13 +120,7 @@ export * from './MetadataExtractionStrategySchema'; export * from './Milvus'; export * from './Milvus1'; export * from './N8NConfig'; -export * from './NOTIONAuthConfig'; export * from './NOTIONConfig'; -export * from './NOTIONOAUTHMULTIAuthConfig'; -export * from './NOTIONOAUTHMULTICUSTOMAuthConfig'; -export * from './Notion'; -export * from './NotionOauthMulti'; -export * from './NotionOauthMultiCustom'; export * from './ONEDRIVEAuthConfig'; export * from './ONEDRIVEConfig'; export * from './OPENAIAuthConfig'; diff --git a/vectorize_api.json b/vectorize_api.json index 688a56e..3590011 100644 --- a/vectorize_api.json +++ b/vectorize_api.json @@ -8,7 +8,7 @@ "name": "Vectorize", "url": "https://vectorize.io" }, - "x-release-date": "2025-07-10" + "x-release-date": "2025-07-16" }, "servers": [ { @@ -75,6 +75,7 @@ "WEB_CRAWLER", "GITHUB", "FIREFLIES", + "DOCUSIGN", "GMAIL" ] }, @@ -1622,54 +1623,6 @@ } } }, - { - "type": "object", - "title": "Dropbox", - "properties": { - "config": { - "$ref": "#/components/schemas/DROPBOXAuthConfig" - } - }, - "example": { - "config": {} - } - }, - { - "type": "object", - "title": "DropboxOauth", - "properties": { - "config": { - "$ref": "#/components/schemas/DROPBOX_OAUTHAuthConfig" - } - }, - "example": { - "config": {} - } - }, - { - "type": "object", - "title": "DropboxOauthMulti", - "properties": { - "config": { - "$ref": "#/components/schemas/DROPBOX_OAUTH_MULTIAuthConfig" - } - }, - "example": { - "config": {} - } - }, - { - "type": "object", - "title": "DropboxOauthMultiCustom", - "properties": { - "config": { - "$ref": "#/components/schemas/DROPBOX_OAUTH_MULTI_CUSTOMAuthConfig" - } - }, - "example": { - "config": {} - } - }, { "type": "object", "title": "FileUpload", @@ -1680,18 +1633,6 @@ }, "example": {} }, - { - "type": "object", - "title": "GoogleDriveOauth", - "properties": { - "config": { - "$ref": "#/components/schemas/GOOGLE_DRIVE_OAUTHAuthConfig" - } - }, - "example": { - "config": {} - } - }, { "type": "object", "title": "GoogleDrive", @@ -1706,30 +1647,6 @@ } } }, - { - "type": "object", - "title": "GoogleDriveOauthMulti", - "properties": { - "config": { - "$ref": "#/components/schemas/GOOGLE_DRIVE_OAUTH_MULTIAuthConfig" - } - }, - "example": { - "config": {} - } - }, - { - "type": "object", - "title": "GoogleDriveOauthMultiCustom", - "properties": { - "config": { - "$ref": "#/components/schemas/GOOGLE_DRIVE_OAUTH_MULTI_CUSTOMAuthConfig" - } - }, - "example": { - "config": {} - } - }, { "type": "object", "title": "Firecrawl", @@ -1759,54 +1676,6 @@ } } }, - { - "type": "object", - "title": "Intercom", - "properties": { - "config": { - "$ref": "#/components/schemas/INTERCOMAuthConfig" - } - }, - "example": { - "config": {} - } - }, - { - "type": "object", - "title": "Notion", - "properties": { - "config": { - "$ref": "#/components/schemas/NOTIONAuthConfig" - } - }, - "example": { - "config": {} - } - }, - { - "type": "object", - "title": "NotionOauthMulti", - "properties": { - "config": { - "$ref": "#/components/schemas/NOTION_OAUTH_MULTIAuthConfig" - } - }, - "example": { - "config": {} - } - }, - { - "type": "object", - "title": "NotionOauthMultiCustom", - "properties": { - "config": { - "$ref": "#/components/schemas/NOTION_OAUTH_MULTI_CUSTOMAuthConfig" - } - }, - "example": { - "config": {} - } - }, { "type": "object", "title": "OneDrive", @@ -3671,21 +3540,6 @@ } } }, - "DROPBOXAuthConfig": { - "type": "object", - "description": "Authentication configuration for Dropbox (Legacy)", - "properties": { - "refresh-token": { - "type": "string", - "format": "password", - "description": "Connect Dropbox to Vectorize. Example: Authorize", - "pattern": "^\\S.*\\S$|^\\S$" - } - }, - "required": [ - "refresh-token" - ] - }, "DROPBOXConfig": { "type": "object", "description": "Configuration for Dropbox (Legacy) connector", @@ -3700,87 +3554,6 @@ } } }, - "DROPBOX_OAUTHAuthConfig": { - "type": "object", - "description": "Authentication configuration for Dropbox OAuth", - "properties": { - "authorized-user": { - "type": "string", - "description": "Authorized User" - }, - "selection-details": { - "type": "string", - "description": "Connect Dropbox to Vectorize. Example: Authorize" - }, - "editedUsers": { - "type": "object", - "default": {} - }, - "reconnectUsers": { - "type": "object", - "default": {} - } - }, - "required": [ - "selection-details" - ] - }, - "DROPBOX_OAUTH_MULTIAuthConfig": { - "type": "object", - "description": "Authentication configuration for Dropbox Multi-User (Vectorize)", - "properties": { - "authorized-users": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Authorized Users" - }, - "editedUsers": { - "type": "object", - "default": {} - }, - "deletedUsers": { - "type": "object", - "default": {} - } - } - }, - "DROPBOX_OAUTH_MULTI_CUSTOMAuthConfig": { - "type": "object", - "description": "Authentication configuration for Dropbox Multi-User (White Label)", - "properties": { - "app-key": { - "type": "string", - "format": "password", - "description": "Dropbox App Key. Example: Enter App Key" - }, - "app-secret": { - "type": "string", - "format": "password", - "description": "Dropbox App Secret. Example: Enter App Secret" - }, - "authorized-users": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Authorized Users" - }, - "editedUsers": { - "type": "object", - "default": {} - }, - "deletedUsers": { - "type": "object", - "default": {} - } - }, - "required": [ - "app-key", - "app-secret" - ] - }, "FILE_UPLOADAuthConfig": { "type": "object", "description": "Authentication configuration for File Upload", @@ -3803,31 +3576,6 @@ "description": "Create configuration for File Upload", "properties": {} }, - "GOOGLE_DRIVE_OAUTHAuthConfig": { - "type": "object", - "description": "Authentication configuration for Google Drive OAuth", - "properties": { - "authorized-user": { - "type": "string", - "description": "Authorized User" - }, - "selection-details": { - "type": "string", - "description": "Connect Google Drive to Vectorize. Example: Authorize" - }, - "editedUsers": { - "type": "object", - "default": {} - }, - "reconnectUsers": { - "type": "object", - "default": {} - } - }, - "required": [ - "selection-details" - ] - }, "GOOGLE_DRIVE_OAUTHConfig": { "type": "object", "description": "Configuration for Google Drive OAuth connector", @@ -4000,27 +3748,6 @@ "file-extensions" ] }, - "GOOGLE_DRIVE_OAUTH_MULTIAuthConfig": { - "type": "object", - "description": "Authentication configuration for Google Drive Multi-User (Vectorize)", - "properties": { - "authorized-users": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Authorized Users" - }, - "editedUsers": { - "type": "object", - "default": {} - }, - "deletedUsers": { - "type": "object", - "default": {} - } - } - }, "GOOGLE_DRIVE_OAUTH_MULTIConfig": { "type": "object", "description": "Configuration for Google Drive Multi-User (Vectorize) connector", @@ -4096,41 +3823,6 @@ "file-extensions" ] }, - "GOOGLE_DRIVE_OAUTH_MULTI_CUSTOMAuthConfig": { - "type": "object", - "description": "Authentication configuration for Google Drive Multi-User (White Label)", - "properties": { - "oauth2-client-id": { - "type": "string", - "format": "password", - "description": "OAuth2 Client Id. Example: Enter Client Id" - }, - "oauth2-client-secret": { - "type": "string", - "format": "password", - "description": "OAuth2 Client Secret. Example: Enter Client Secret" - }, - "authorized-users": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Authorized Users" - }, - "editedUsers": { - "type": "object", - "default": {} - }, - "deletedUsers": { - "type": "object", - "default": {} - } - }, - "required": [ - "oauth2-client-id", - "oauth2-client-secret" - ] - }, "GOOGLE_DRIVE_OAUTH_MULTI_CUSTOMConfig": { "type": "object", "description": "Configuration for Google Drive Multi-User (White Label) connector", @@ -4363,20 +4055,6 @@ "idle-time" ] }, - "INTERCOMAuthConfig": { - "type": "object", - "description": "Authentication configuration for Intercom", - "properties": { - "token": { - "type": "string", - "format": "password", - "description": "Access Token. Example: Authorize Intercom Access" - } - }, - "required": [ - "token" - ] - }, "INTERCOMConfig": { "type": "object", "description": "Configuration for Intercom connector", @@ -4385,7 +4063,7 @@ "type": "string", "format": "date", "description": "Created After. Filter for conversations created after this date. Example: Enter a date: Example 2012-12-31", - "default": "2025-07-10" + "default": "2025-07-16" }, "updated_at": { "type": "string", @@ -4419,26 +4097,6 @@ "created_at" ] }, - "NOTIONAuthConfig": { - "type": "object", - "description": "Authentication configuration for Notion", - "properties": { - "access-token": { - "type": "string", - "format": "password", - "description": "Connect Notion to Vectorize - Note this will effect existing connections. test. Example: Authorize" - }, - "s3id": { - "type": "string" - }, - "editedToken": { - "type": "string" - } - }, - "required": [ - "access-token" - ] - }, "NOTIONConfig": { "type": "object", "description": "Configuration for Notion connector", @@ -4472,62 +4130,6 @@ "page-names" ] }, - "NOTION_OAUTH_MULTIAuthConfig": { - "type": "object", - "description": "Authentication configuration for Notion Multi-User (Vectorize)", - "properties": { - "authorized-users": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Authorized Users. Users who have authorized access to their Notion content" - }, - "editedUsers": { - "type": "object", - "default": {} - }, - "deletedUsers": { - "type": "object", - "default": {} - } - } - }, - "NOTION_OAUTH_MULTI_CUSTOMAuthConfig": { - "type": "object", - "description": "Authentication configuration for Notion Multi-User (White Label)", - "properties": { - "client-id": { - "type": "string", - "format": "password", - "description": "Notion Client ID. Example: Enter Client ID" - }, - "client-secret": { - "type": "string", - "format": "password", - "description": "Notion Client Secret. Example: Enter Client Secret" - }, - "authorized-users": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Authorized Users" - }, - "editedUsers": { - "type": "object", - "default": {} - }, - "deletedUsers": { - "type": "object", - "default": {} - } - }, - "required": [ - "client-id", - "client-secret" - ] - }, "ONE_DRIVEAuthConfig": { "type": "object", "description": "Authentication configuration for OneDrive", @@ -4873,8 +4475,7 @@ }, "max-items": { "type": "number", - "description": "Max Items. Example: Enter maximum number of items to fetch", - "default": 1000 + "description": "Max Items. Leave blank for no limit, or specify a maximum number. Example: Enter maximum number of items to fetch (leave blank for no limit)" }, "created-after": { "type": "string", @@ -4887,8 +4488,7 @@ "include-pull-requests", "pull-request-status", "include-issues", - "issue-status", - "max-items" + "issue-status" ] }, "FIREFLIESAuthConfig": { @@ -4914,7 +4514,7 @@ "type": "string", "format": "date", "description": "Start Date. Include meetings from this date forward. Example: Enter a date: Example 2023-12-31", - "default": "2025-07-10" + "default": "2025-07-16" }, "end-date": { "type": "string", @@ -4939,8 +4539,7 @@ }, "max-meetings": { "type": "number", - "description": "Max Meetings. Enter -1 for all available meetings, or specify a limit. Example: Enter maximum number of meetings to retrieve. (-1 for all)", - "default": -1 + "description": "Max Meetings. Leave blank for no limit, or specify a maximum number. Example: Enter maximum number of meetings to retrieve (leave blank for no limit)" } }, "required": [ @@ -4949,18 +4548,98 @@ "participant-filter-type" ] }, - "GMAILAuthConfig": { + "DOCUSIGNConfig": { "type": "object", - "description": "Authentication configuration for Gmail", + "description": "Configuration for DocuSign connector", "properties": { - "refresh-token": { + "envelope-statuses": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "completed", + "correct", + "created", + "declined", + "delivered", + "sent", + "signed", + "voided", + "all" + ] + }, + "description": "Envelope Statuses. Filter envelopes by status", + "default": [ + "all" + ], + "enum": [ + "completed", + "correct", + "created", + "declined", + "delivered", + "sent", + "signed", + "voided", + "all" + ] + }, + "from-date": { "type": "string", - "format": "password", - "description": "Connect Gmail to Vectorize. Example: Authorize" + "format": "date", + "description": "Created From Date. Include envelopes created on or after this date. Example: Enter start date (YYYY-MM-DD)", + "default": "2025-07-16" + }, + "to-date": { + "type": "string", + "format": "date", + "description": "Created To Date. Include envelopes that were last updated up to this date. Example: Enter end date (YYYY-MM-DD)" + }, + "folder_ids": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "inbox", + "sentitems", + "draft", + "recyclebin", + "awaiting_my_signature", + "completed", + "out_for_signature", + "waiting_for_others", + "expiring_soon", + "all" + ] + }, + "description": "Folder Names. Select which DocuSign folders to include in the import", + "default": [ + "all" + ], + "enum": [ + "inbox", + "sentitems", + "draft", + "recyclebin", + "awaiting_my_signature", + "completed", + "out_for_signature", + "waiting_for_others", + "expiring_soon", + "all" + ] + }, + "max-documents": { + "type": "number", + "description": "Max Documents. Leave blank for no limit, or specify a maximum number. Example: Enter maximum number of documents to retrieve (leave blank for no limit)" + }, + "search-text": { + "type": "string", + "description": "Search Text. Filter envelopes containing this text in their content. Example: Enter text to search within envelope content" } }, "required": [ - "refresh-token" + "from-date" ] }, "GMAILConfig": { @@ -5023,8 +4702,7 @@ }, "max-results": { "type": "number", - "description": "Maximum Results. Enter -1 for all available emails, or specify a limit. . Example: Enter maximum number of threads to retrieve", - "default": -1 + "description": "Maximum Results. Leave blank for no limit, or specify a maximum number. Example: Enter maximum number of threads to retrieve (leave blank for no limit)" }, "messages-to-fetch": { "type": "array", @@ -5664,6 +5342,7 @@ "WEB_CRAWLER", "GITHUB", "FIREFLIES", + "DOCUSIGN", "GMAIL" ] }, @@ -5723,6 +5402,9 @@ { "$ref": "#/components/schemas/FIREFLIESConfig" }, + { + "$ref": "#/components/schemas/DOCUSIGNConfig" + }, { "$ref": "#/components/schemas/GMAILConfig" } @@ -5868,6 +5550,16 @@ "required": true, "name": "organizationId", "in": "path" + }, + { + "schema": { + "type": "string", + "description": "The workspace ID within the organization. If not provided, defaults to the first workspace.", + "example": "ws_789" + }, + "required": false, + "name": "workspaceId", + "in": "query" } ], "requestBody": { @@ -5880,12 +5572,12 @@ "example": { "sourceConnectors": [], "destinationConnector": { - "id": "ae4a7bcb-aaed-41bd-99b3-64c4a673343a", + "id": "b843c74d-ef33-4138-82aa-6550622b3293", "type": "CAPELLA", "config": {} }, "aiPlatformConnector": { - "id": "3b696b69-7060-438d-9c7e-0f6be117367d", + "id": "b843c74d-ef33-4138-82aa-6550622b3293", "type": "BEDROCK", "config": { "embeddingModel": "VECTORIZE_OPEN_AI_TEXT_EMBEDDING_2", @@ -6138,6 +5830,16 @@ "required": true, "name": "organizationId", "in": "path" + }, + { + "schema": { + "type": "string", + "description": "The workspace ID within the organization. If not provided, defaults to the first workspace.", + "example": "ws_789" + }, + "required": false, + "name": "workspaceId", + "in": "query" } ], "responses": { @@ -6152,7 +5854,7 @@ "message": "Operation completed successfully", "data": [ { - "id": "25b2a51b-c0cd-4d59-8c30-db344e836f2c", + "id": "b843c74d-ef33-4138-82aa-6550622b3293", "name": "Example Item", "type": "example-type", "status": "active" @@ -6406,7 +6108,7 @@ "example": { "message": "Operation completed successfully", "data": { - "id": "91bd911a-94de-45a8-854b-ea97df2d7216", + "id": "b843c74d-ef33-4138-82aa-6550622b3293", "name": "My PipelineSummary", "documentCount": 42, "sourceConnectorAuthIds": [], @@ -6926,7 +6628,7 @@ "nextToken": "token_example_123456", "data": [ { - "id": "1c2d2b11-9755-4434-90f0-803704032154", + "id": "b843c74d-ef33-4138-82aa-6550622b3293", "name": "Example Item", "type": "example-type", "status": "active" @@ -7181,7 +6883,7 @@ "message": "Operation completed successfully", "data": [ { - "id": "5148840a-b511-4bdc-babc-6b2fa73c5a2e", + "id": "b843c74d-ef33-4138-82aa-6550622b3293", "name": "Example Item", "type": "example-type", "status": "active" @@ -8223,7 +7925,7 @@ "$ref": "#/components/schemas/StartDeepResearchResponse" }, "example": { - "researchId": "a7853c29-5f98-4faa-ad5e-b466e071ea14" + "researchId": "b843c74d-ef33-4138-82aa-6550622b3293" } } } @@ -8712,6 +8414,16 @@ "required": true, "name": "organizationId", "in": "path" + }, + { + "schema": { + "type": "string", + "description": "The workspace ID within the organization. If not provided, defaults to the first workspace.", + "example": "ws_789" + }, + "required": false, + "name": "workspaceId", + "in": "query" } ], "requestBody": { @@ -8736,7 +8448,7 @@ "message": "Operation completed successfully", "connector": { "name": "My CreatedSourceConnector", - "id": "abc458c3-e72a-4397-9328-c0e1fd9a117d" + "id": "b843c74d-ef33-4138-82aa-6550622b3293" } } } @@ -8961,6 +8673,16 @@ "required": true, "name": "organizationId", "in": "path" + }, + { + "schema": { + "type": "string", + "description": "The workspace ID within the organization. If not provided, defaults to the first workspace.", + "example": "ws_789" + }, + "required": false, + "name": "workspaceId", + "in": "query" } ], "responses": { @@ -8985,18 +8707,40 @@ "example": { "sourceConnectors": [ { - "id": "9bbf3fc9-a549-4808-a525-6f2219d2a5bc", + "id": "550e8400-e29b-41d4-a716-446655440000", "type": "AWS_S3", "name": "S3 Documents Bucket", - "createdAt": "2025-07-10T19:29:03.499Z", - "verificationStatus": "verified" + "createdAt": "2024-01-15T10:30:00.000Z", + "verificationStatus": "verified", + "configDoc": { + "access-key": "AKIAIOSFODNN7EXAMPLE", + "secret-key": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY", + "bucket-name": "my-documents-bucket", + "file-extensions": [ + "pdf", + "docx", + "txt" + ], + "idle-time": 300 + }, + "createdByEmail": "admin@example.com" }, { - "id": "abccbb14-ead6-4e1f-93cb-367c434984fc", + "id": "6ba7b810-9dad-11d1-80b4-00c04fd430c8", "type": "GOOGLE_DRIVE", "name": "Team Shared Drive", - "createdAt": "2025-07-10T19:29:03.499Z", - "verificationStatus": "verified" + "createdAt": "2024-01-16T09:15:00.000Z", + "verificationStatus": "verified", + "configDoc": { + "folder-id": "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms", + "file-extensions": [ + "pdf", + "docx", + "txt" + ], + "idle-time": 600 + }, + "createdByEmail": "user@example.com" } ] } @@ -9245,13 +8989,13 @@ "$ref": "#/components/schemas/SourceConnector" }, "example": { - "id": "9f5b95ed-69ac-462d-93c8-d6898ef069aa", + "id": "b843c74d-ef33-4138-82aa-6550622b3293", "type": "example-type", "name": "My SourceConnector", "configDoc": {}, "createdAt": "example-createdAt", - "createdById": "ab55e680-3915-401a-aa46-0c2c26f1874a", - "lastUpdatedById": "dde926ec-7186-4608-affb-0eb4ac01f180", + "createdById": "b843c74d-ef33-4138-82aa-6550622b3293", + "lastUpdatedById": "b843c74d-ef33-4138-82aa-6550622b3293", "createdByEmail": "user@example.com", "lastUpdatedByEmail": "user@example.com", "errorMessage": "Operation completed successfully", @@ -9513,13 +9257,13 @@ "message": "Operation completed successfully", "data": { "updatedConnector": { - "id": "0f4a7788-ea5b-4ff1-aa24-6258cea5e508", + "id": "b843c74d-ef33-4138-82aa-6550622b3293", "type": "example-type", "name": "My SourceConnector", "configDoc": {}, "createdAt": "example-createdAt", - "createdById": "e368b137-7f81-40e3-824d-d67e7b844c88", - "lastUpdatedById": "867255de-747a-4ae7-872d-d74c838b88c0", + "createdById": "b843c74d-ef33-4138-82aa-6550622b3293", + "lastUpdatedById": "b843c74d-ef33-4138-82aa-6550622b3293", "createdByEmail": "user@example.com", "lastUpdatedByEmail": "user@example.com", "errorMessage": "Operation completed successfully", @@ -9997,6 +9741,16 @@ "required": true, "name": "organizationId", "in": "path" + }, + { + "schema": { + "type": "string", + "description": "The workspace ID within the organization. If not provided, defaults to the first workspace.", + "example": "ws_789" + }, + "required": false, + "name": "workspaceId", + "in": "query" } ], "requestBody": { @@ -10021,7 +9775,7 @@ "message": "Operation completed successfully", "connector": { "name": "My CreatedDestinationConnector", - "id": "828cab7e-5faf-45c6-b59b-4cd8c53542d2" + "id": "b843c74d-ef33-4138-82aa-6550622b3293" } } } @@ -10246,6 +10000,16 @@ "required": true, "name": "organizationId", "in": "path" + }, + { + "schema": { + "type": "string", + "description": "The workspace ID within the organization. If not provided, defaults to the first workspace.", + "example": "ws_789" + }, + "required": false, + "name": "workspaceId", + "in": "query" } ], "responses": { @@ -10515,13 +10279,13 @@ "$ref": "#/components/schemas/DestinationConnector" }, "example": { - "id": "c83e315e-c6e1-4b21-a82b-81ca4526da1e", + "id": "b843c74d-ef33-4138-82aa-6550622b3293", "type": "example-type", "name": "My DestinationConnector", "configDoc": {}, "createdAt": "example-createdAt", - "createdById": "018fd9f4-18aa-4209-a581-8632e5417507", - "lastUpdatedById": "58f2955d-ec6a-402a-b720-5a8520b4a222", + "createdById": "b843c74d-ef33-4138-82aa-6550622b3293", + "lastUpdatedById": "b843c74d-ef33-4138-82aa-6550622b3293", "createdByEmail": "user@example.com", "lastUpdatedByEmail": "user@example.com", "errorMessage": "Operation completed successfully", @@ -10783,13 +10547,13 @@ "message": "Operation completed successfully", "data": { "updatedConnector": { - "id": "d5b5ff01-e065-409e-b32c-90256543b08c", + "id": "b843c74d-ef33-4138-82aa-6550622b3293", "type": "example-type", "name": "My DestinationConnector", "configDoc": {}, "createdAt": "example-createdAt", - "createdById": "6e46a0aa-1680-4a01-9af6-d10a98ceef57", - "lastUpdatedById": "292140d8-d1d5-4627-829c-a4eed548ba03", + "createdById": "b843c74d-ef33-4138-82aa-6550622b3293", + "lastUpdatedById": "b843c74d-ef33-4138-82aa-6550622b3293", "createdByEmail": "user@example.com", "lastUpdatedByEmail": "user@example.com", "errorMessage": "Operation completed successfully", @@ -11267,6 +11031,16 @@ "required": true, "name": "organizationId", "in": "path" + }, + { + "schema": { + "type": "string", + "description": "The workspace ID within the organization. If not provided, defaults to the first workspace.", + "example": "ws_789" + }, + "required": false, + "name": "workspaceId", + "in": "query" } ], "requestBody": { @@ -11291,7 +11065,7 @@ "message": "Operation completed successfully", "connector": { "name": "My CreatedAIPlatformConnector", - "id": "14695463-d363-4680-9a38-c9a6516cc37e" + "id": "b843c74d-ef33-4138-82aa-6550622b3293" } } } @@ -11516,6 +11290,16 @@ "required": true, "name": "organizationId", "in": "path" + }, + { + "schema": { + "type": "string", + "description": "The workspace ID within the organization. If not provided, defaults to the first workspace.", + "example": "ws_789" + }, + "required": false, + "name": "workspaceId", + "in": "query" } ], "responses": { @@ -11785,13 +11569,13 @@ "$ref": "#/components/schemas/AIPlatformConnector" }, "example": { - "id": "b78bc048-e835-4e37-a2a0-958da1386938", + "id": "b843c74d-ef33-4138-82aa-6550622b3293", "type": "example-type", "name": "My AIPlatformConnector", "configDoc": {}, "createdAt": "example-createdAt", - "createdById": "9a688f77-3d46-4214-b631-8b7603be2739", - "lastUpdatedById": "438b02cb-b855-4ac5-947c-13f1ae09b5aa", + "createdById": "b843c74d-ef33-4138-82aa-6550622b3293", + "lastUpdatedById": "b843c74d-ef33-4138-82aa-6550622b3293", "createdByEmail": "user@example.com", "lastUpdatedByEmail": "user@example.com", "errorMessage": "Operation completed successfully", @@ -12053,13 +11837,13 @@ "message": "Operation completed successfully", "data": { "updatedConnector": { - "id": "b6131428-da01-4571-851c-58d1e6ff7632", + "id": "b843c74d-ef33-4138-82aa-6550622b3293", "type": "example-type", "name": "My AIPlatformConnector", "configDoc": {}, "createdAt": "example-createdAt", - "createdById": "0d52c026-0298-4293-832e-f9f2f7c75d20", - "lastUpdatedById": "4f87d5b2-515e-4db9-9e97-1fdf388dd54d", + "createdById": "b843c74d-ef33-4138-82aa-6550622b3293", + "lastUpdatedById": "b843c74d-ef33-4138-82aa-6550622b3293", "createdByEmail": "user@example.com", "lastUpdatedByEmail": "user@example.com", "errorMessage": "Operation completed successfully", @@ -13313,7 +13097,7 @@ "$ref": "#/components/schemas/StartExtractionRequest" }, "example": { - "fileId": "b8aa3113-620d-4ad5-8aae-7effeada0c69", + "fileId": "b843c74d-ef33-4138-82aa-6550622b3293", "type": "iris", "chunkingStrategy": "markdown", "chunkSize": 20, @@ -13335,7 +13119,7 @@ }, "example": { "message": "Operation completed successfully", - "extractionId": "0f7b162f-7ccd-4fdc-a237-7f49707c0df8" + "extractionId": "b843c74d-ef33-4138-82aa-6550622b3293" } } } @@ -13842,7 +13626,7 @@ "$ref": "#/components/schemas/StartFileUploadResponse" }, "example": { - "fileId": "cf9ee18e-d329-43f3-9e0f-737972715f20", + "fileId": "b843c74d-ef33-4138-82aa-6550622b3293", "uploadUrl": "https://api.example.com" } } @@ -14089,7 +13873,7 @@ "$ref": "#/components/schemas/AddUserToSourceConnectorRequest" }, "example": { - "userId": "1918f9f1-5f9c-43f4-ac5d-e58e043df684", + "userId": "b843c74d-ef33-4138-82aa-6550622b3293", "selectedFiles": {}, "refreshToken": "refresh_token_example_123456", "accessToken": "access_token_example_123456" @@ -14350,7 +14134,7 @@ "$ref": "#/components/schemas/UpdateUserInSourceConnectorRequest" }, "example": { - "userId": "8afb88ca-2a31-47fb-8c62-3d0f2f341e48", + "userId": "b843c74d-ef33-4138-82aa-6550622b3293", "selectedFiles": {}, "refreshToken": "refresh_token_example_123456", "accessToken": "access_token_example_123456" @@ -14611,7 +14395,7 @@ "$ref": "#/components/schemas/RemoveUserFromSourceConnectorRequest" }, "example": { - "userId": "a3efde95-0ff2-4f48-afdc-168b2ffdbf46" + "userId": "b843c74d-ef33-4138-82aa-6550622b3293" } } } From df5f0d75ccf02dea473319d6ce7facaaf5d80b50 Mon Sep 17 00:00:00 2001 From: Jamie Ferguson Date: Fri, 18 Jul 2025 14:05:03 -0600 Subject: [PATCH 10/11] Updated TS tests to work with latest spec. --- src/ts/package-lock.json | 31 +++++++++++++++++++++++++++++++ src/ts/package.json | 2 +- tests/ts/tests/connectors.test.ts | 24 ++++++++---------------- tests/ts/tests/pipelines.test.ts | 13 ++++++------- 4 files changed, 46 insertions(+), 24 deletions(-) create mode 100644 src/ts/package-lock.json diff --git a/src/ts/package-lock.json b/src/ts/package-lock.json new file mode 100644 index 0000000..87623bf --- /dev/null +++ b/src/ts/package-lock.json @@ -0,0 +1,31 @@ +{ + "name": "@vectorize-io/vectorize-client", + "version": "0.0.1-SNAPSHOT.202507021445", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "@vectorize-io/vectorize-client", + "version": "0.0.1-SNAPSHOT.202507021445", + "hasInstallScript": true, + "license": "MIT", + "devDependencies": { + "typescript": "^5.8.3" + } + }, + "node_modules/typescript": { + "version": "5.8.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.3.tgz", + "integrity": "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==", + "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 ea336be..75db0c5 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.3" }, "publishConfig": { "registry": "https://registry.npmjs.org", diff --git a/tests/ts/tests/connectors.test.ts b/tests/ts/tests/connectors.test.ts index fe4fcc3..00f7efe 100644 --- a/tests/ts/tests/connectors.test.ts +++ b/tests/ts/tests/connectors.test.ts @@ -7,8 +7,8 @@ import { PipelinesApi, ResponseError, SourceConnectorType, - AIPlatformType, - DestinationConnectorType + AIPlatformTypeForPipeline, + DestinationConnectorTypeForPipeline } from "@vectorize-io/vectorize-client"; import {pipeline} from "stream"; import * as os from "node:os"; @@ -64,12 +64,12 @@ async function deployPipeline(pipelinesApi: PipelinesApi, sourceConnectorId: str sourceConnectors: [{id: sourceConnectorId, type: SourceConnectorType.WebCrawler, config: {}}], destinationConnector: { id: destinationConnectorId, - type: DestinationConnectorType.Vectorize, + type: DestinationConnectorTypeForPipeline.Vectorize, config: {} }, - aiPlatform: { + aiPlatformConnector: { id: aiPlatformId, - type: AIPlatformType.Vectorize, + type: AIPlatformTypeForPipeline.Vectorize, config: {} }, schedule: {type: "manual"} @@ -93,18 +93,14 @@ describe("connector", () => { const sourceConnectorId = sourceResponse.connector.id; // Update source connector - /* ENG-2651 await sourceConnectorsApi.updateSourceConnector({ organizationId: testContext.orgId, sourceConnectorId, updateSourceConnectorRequest: { config: { - "max-urls": 100, - "max-depth": 5 - } + "seed-urls": ["https://docs.vectorize.io", "https://vectorize.io/pricing"]} } }); - */ // Get all source connectors let connectors = await sourceConnectorsApi.getSourceConnectors({ @@ -159,15 +155,13 @@ describe("connector", () => { }); const connectorId = sourceResponse.connector.id; - /* ENG-2651 await aiPlatformConnectorsApi.updateAIPlatformConnector({ organizationId: testContext.orgId, - aiplatformId: connectorId, + aiPlatformConnectorId: connectorId, updateAIPlatformConnectorRequest: { config: {"key": "sk"} } }); - */ // Get all AI platform connectors let connectors = await aiPlatformConnectorsApi.getAIPlatformConnectors({ @@ -220,15 +214,13 @@ describe("connector", () => { }); const connectorId = sourceResponse.connector.id; - /* ENG-2651 await destinationConnectorsApi.updateDestinationConnector({ organizationId: testContext.orgId, destinationConnectorId: connectorId, updateDestinationConnectorRequest: { - config: {"api-key": "sk"} + config: {"apiKey": "sk"} } }); - */ // Get all destination connectors let connectors = await destinationConnectorsApi.getDestinationConnectors({ diff --git a/tests/ts/tests/pipelines.test.ts b/tests/ts/tests/pipelines.test.ts index 3bee750..8dc587c 100644 --- a/tests/ts/tests/pipelines.test.ts +++ b/tests/ts/tests/pipelines.test.ts @@ -12,7 +12,7 @@ import { import {pipeline} from "stream"; import * as os from "node:os"; import exp from "node:constants"; -import {AIPlatformType, DestinationConnectorType} from "@vectorize-io/vectorize-client/src"; +import {AIPlatformConnectorType, DestinationConnectorType} from "@vectorize-io/vectorize-client/src"; export let testContext: TestContext; @@ -46,16 +46,15 @@ async function createWebCrawlerSource(sourceConnectorsApi: SourceConnectorsApi) } }); const sourceConnectorId = sourceResponse.connector.id; - /* ENG-2651 await sourceConnectorsApi.updateSourceConnector({ - organization: testContext.orgId, + organizationId: testContext.orgId, sourceConnectorId, updateSourceConnectorRequest: { config: {"seed-urls": ["https://docs.vectorize.io", "https://vectorize.io"]} } } ); - */ + return sourceConnectorId; } @@ -67,12 +66,12 @@ async function deployPipeline(pipelinesApi: PipelinesApi, sourceConnectorId: str sourceConnectors: [{id: sourceConnectorId, type: SourceConnectorType.WebCrawler, config: {}}], destinationConnector: { id: destinationConnectorId, - type: DestinationConnectorType.VECTORIZE, + type: "VECTORIZE" as any, config: {} }, - aiPlatform: { + aiPlatformConnector: { id: aiPlatformId, - type: AIPlatformType.VECTORIZE, + type: "VECTORIZE" as any, config: {} }, schedule: {type: "manual"} From 2fee8e719b16b008f15ac289ca8ed1a37b83138a Mon Sep 17 00:00:00 2001 From: Jamie Ferguson Date: Fri, 18 Jul 2025 14:09:45 -0600 Subject: [PATCH 11/11] Add false positive to gitleaksignore --- .gitleaksignore | 1 + 1 file changed, 1 insertion(+) create mode 100644 .gitleaksignore diff --git a/.gitleaksignore b/.gitleaksignore new file mode 100644 index 0000000..d821426 --- /dev/null +++ b/.gitleaksignore @@ -0,0 +1 @@ +38b2cbb260f769b31c59f3e7b4d0a2dc4a37f2ac:src/python/vectorize_client/models/source_connector_input_config.py:dropbox-api-token:44