diff options
| author | Zhineng Li <im@zhineng.li> | 2026-07-12 16:56:35 +0800 |
|---|---|---|
| committer | Zhineng Li <im@zhineng.li> | 2026-07-12 16:56:35 +0800 |
| commit | 814ec806c22e2782390af5a4a05cb6281aabd5e1 (patch) | |
| tree | 29e1692a067b17e56886a7d246d2b9521b2b7777 /data/bailian | |
| parent | eccd5cd5a067f5659982685afdeea209b1888efb (diff) | |
| download | afterglow-metadata-814ec806c22e2782390af5a4a05cb6281aabd5e1.tar.gz afterglow-metadata-814ec806c22e2782390af5a4a05cb6281aabd5e1.zip | |
update APIs 20260712
Diffstat (limited to 'data/bailian')
| -rw-r--r-- | data/bailian/2023-06-01/api-docs.php | 325 | ||||
| -rw-r--r-- | data/bailian/2023-12-29/api-docs.php | 3288 |
2 files changed, 1323 insertions, 2290 deletions
diff --git a/data/bailian/2023-06-01/api-docs.php b/data/bailian/2023-06-01/api-docs.php index 93eb330..378cd28 100644 --- a/data/bailian/2023-06-01/api-docs.php +++ b/data/bailian/2023-06-01/api-docs.php @@ -1,21 +1,13 @@ <?php return [ 'version' => '1.0', - 'info' => [ - 'style' => 'RPC', - 'product' => 'bailian', - 'version' => '2023-06-01', - ], + 'info' => ['style' => 'RPC', 'product' => 'bailian', 'version' => '2023-06-01'], 'components' => [ 'schemas' => [], ], 'apis' => [ 'SubmitDocumentImportJob' => [ - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -26,10 +18,7 @@ [ 'name' => 'AgentKey', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'Docs', @@ -42,33 +31,16 @@ 'type' => 'object', 'required' => false, 'properties' => [ - 'Name' => [ - 'type' => 'string', - 'required' => true, - ], - 'URL' => [ - 'type' => 'string', - 'required' => true, - ], - 'Type' => [ - 'type' => 'string', - 'required' => true, - ], - 'StoreId' => [ - 'type' => 'string', - 'required' => true, - ], + 'Name' => ['type' => 'string', 'required' => true], + 'URL' => ['type' => 'string', 'required' => true], + 'Type' => ['type' => 'string', 'required' => true], + 'StoreId' => ['type' => 'string', 'required' => true], 'TagIds' => [ 'type' => 'array', 'required' => false, - 'items' => [ - 'type' => 'string', - 'required' => false, - ], - ], - 'OwnerId' => [ - 'type' => 'string', + 'items' => ['type' => 'string', 'required' => false], ], + 'OwnerId' => ['type' => 'string'], ], ], ], @@ -76,12 +48,8 @@ ], ], 'DescribeDocumentImportJob' => [ - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -92,28 +60,18 @@ [ 'name' => 'JobId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'AgentKey', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], ], ], 'ListDocs' => [ - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -124,47 +82,27 @@ [ 'name' => 'AgentKey', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'PageSize', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'minimum' => '1', - 'maximum' => '20', - ], + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '1', 'maximum' => '20'], ], [ 'name' => 'PageNo', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'minimum' => '1', - ], + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '1'], ], [ 'name' => 'Name', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'StoreId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'TagIds', @@ -173,21 +111,14 @@ 'schema' => [ 'type' => 'array', 'required' => false, - 'items' => [ - 'type' => 'string', - 'required' => false, - ], + 'items' => ['type' => 'string', 'required' => false], ], ], ], ], 'DescribeDoc' => [ - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -198,28 +129,18 @@ [ 'name' => 'DocId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'AgentKey', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], ], ], 'DeleteDoc' => [ - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -230,28 +151,18 @@ [ 'name' => 'DocId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'AgentKey', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], ], ], 'UpdateDocAttribute' => [ - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -262,34 +173,22 @@ [ 'name' => 'AgentKey', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'DocId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'Name', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'DelAllTags', 'in' => 'query', - 'schema' => [ - 'type' => 'boolean', - 'required' => false, - ], + 'schema' => ['type' => 'boolean', 'required' => false], ], [ 'name' => 'TagIds', @@ -298,21 +197,14 @@ 'schema' => [ 'type' => 'array', 'required' => false, - 'items' => [ - 'type' => 'string', - 'required' => false, - ], + 'items' => ['type' => 'string', 'required' => false], ], ], ], ], 'DeleteDocumentTag' => [ - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -323,28 +215,18 @@ [ 'name' => 'TagId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'AgentKey', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], ], ], 'UpdateDocumentTag' => [ - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -355,36 +237,23 @@ [ 'name' => 'AgentKey', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'TagId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'Name', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], ], ], 'CreateDocumentTag' => [ - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -395,28 +264,18 @@ [ 'name' => 'AgentKey', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'Name', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], ], ], 'ListDocumentTags' => [ - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -427,57 +286,33 @@ [ 'name' => 'AgentKey', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'TagId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'Name', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'PageSize', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'minimum' => '1', - ], + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '1'], ], [ 'name' => 'PageNo', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'minimum' => '1', - ], + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '1'], ], ], ], 'GetPrompt' => [ - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -488,36 +323,23 @@ [ 'name' => 'AgentKey', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'PromptId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'Vars', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], ], ], 'CreateToken' => [ - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -528,26 +350,13 @@ [ 'name' => 'AgentKey', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], ], ], ], 'endpoints' => [ - [ - 'regionId' => 'cn-beijing', - 'endpoint' => 'bailian.cn-beijing.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shanghai-finance-1', - 'endpoint' => 'bailian.cn-shanghai-finance-1.aliyuncs.com', - ], - [ - 'regionId' => 'ap-southeast-1', - 'endpoint' => 'bailian.ap-southeast-1.aliyuncs.com', - ], + ['regionId' => 'cn-beijing', 'endpoint' => 'bailian.cn-beijing.aliyuncs.com'], + ['regionId' => 'ap-southeast-1', 'endpoint' => 'bailian.ap-southeast-1.aliyuncs.com'], ], ]; diff --git a/data/bailian/2023-12-29/api-docs.php b/data/bailian/2023-12-29/api-docs.php index 714b745..5d47a07 100644 --- a/data/bailian/2023-12-29/api-docs.php +++ b/data/bailian/2023-12-29/api-docs.php @@ -1,145 +1,32 @@ <?php return [ 'version' => '1.0', - 'info' => [ - 'style' => 'ROA', - 'product' => 'bailian', - 'version' => '2023-12-29', - ], + 'info' => ['style' => 'ROA', 'product' => 'bailian', 'version' => '2023-12-29'], 'components' => [ 'schemas' => [], ], 'apis' => [ - 'ListFile' => [ - 'path' => '/{WorkspaceId}/datacenter/files', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'https', - ], + 'AddCategory' => [ + 'path' => '/{WorkspaceId}/datacenter/category/', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'WorkspaceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], - ], - [ - 'name' => 'CategoryId', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], - ], - [ - 'name' => 'NextToken', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], - ], - [ - 'name' => 'MaxResults', - 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - ], - ], - [ - 'name' => 'FileName', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], - ], - ], - ], - 'DeleteCategory' => [ - 'path' => '/{WorkspaceId}/datacenter/category/{CategoryId}/', - 'methods' => [ - 'delete', - ], - 'schemes' => [ - 'https', - ], - 'security' => [ - [ - 'AK' => [], - ], - ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'deprecated' => false, - 'parameters' => [ - [ - 'name' => 'CategoryId', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'WorkspaceId', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], - ], - ], - ], - 'ListCategory' => [ - 'path' => '/{WorkspaceId}/datacenter/categories', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], - 'security' => [ - [ - 'AK' => [], - ], - ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'deprecated' => false, - 'parameters' => [ - [ - 'name' => 'WorkspaceId', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'name' => 'CategoryName', + 'in' => 'formData', + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'CategoryType', @@ -147,158 +34,110 @@ 'schema' => [ 'type' => 'string', 'required' => true, - 'enum' => [ - 'UNSTRUCTURED', - ], + 'enum' => ['UNSTRUCTURED'], ], ], [ 'name' => 'ParentCategoryId', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], - ], - [ - 'name' => 'NextToken', - 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'MaxResults', + 'name' => 'ConnectorId', 'in' => 'formData', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'minimum' => '0', - 'maximum' => '500', - ], - ], - [ - 'name' => 'CategoryName', - 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], ], ], - 'AddCategory' => [ - 'path' => '/{WorkspaceId}/datacenter/category/', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'AddConnector' => [ + 'path' => '/{WorkspaceId}/datacenter/connector', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'WorkspaceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'CategoryName', + 'name' => 'ConnectorName', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'minLength' => 1, 'maxLength' => 20], ], [ - 'name' => 'CategoryType', + 'name' => 'ConnectorType', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, - 'enum' => [ - 'UNSTRUCTURED', - ], + 'enum' => ['FILE'], ], ], [ - 'name' => 'ParentCategoryId', + 'name' => 'Description', 'in' => 'formData', + 'schema' => ['type' => 'string', 'required' => true, 'minLength' => 1, 'maxLength' => 200], + ], + [ + 'name' => 'FileConnectorConfig', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'type' => 'string', + 'type' => 'object', 'required' => false, + 'properties' => [ + 'RegionId' => ['type' => 'string', 'required' => false], + 'BucketName' => ['type' => 'string', 'required' => false], + 'StorageType' => [ + 'type' => 'string', + 'required' => false, + 'enum' => ['OSS_CUSTOM', 'OSS_PLATFORM'], + ], + ], ], ], ], ], 'AddFile' => [ 'path' => '/{WorkspaceId}/datacenter/file', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['put'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'LeaseId', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'Parser', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'CategoryId', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'WorkspaceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'Tags', @@ -307,12 +146,9 @@ 'schema' => [ 'type' => 'array', 'required' => false, - 'items' => [ - 'type' => 'string', - 'required' => false, - ], + 'items' => ['type' => 'string', 'required' => false], 'minItems' => 1, - 'maxItems' => 32, + 'maxItems' => 100, ], ], [ @@ -321,58 +157,55 @@ 'schema' => [ 'type' => 'string', 'required' => false, - 'enum' => [ - 'UNSTRUCTURED', - 'SESSION_FILE', - ], + 'enum' => ['UNSTRUCTURED', 'SESSION_FILE'], ], ], [ 'name' => 'OriginalFileUrl', 'in' => 'formData', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'ParserConfig', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'type' => 'string', + 'type' => 'object', 'required' => false, + 'properties' => [ + 'ModelName' => [ + 'type' => 'string', + 'required' => false, + 'enum' => ['qwen-vl-max', 'qwen-vl-plus', 'qwen3-vl-plus'], + ], + 'ModelPrompt' => ['type' => 'string', 'required' => false, 'minLength' => 1, 'maxLength' => 1500], + ], ], ], ], ], 'AddFilesFromAuthorizedOss' => [ 'path' => '/{WorkspaceId}/datacenter/file/fromoss', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'WorkspaceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'CategoryId', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'CategoryType', @@ -380,27 +213,18 @@ 'schema' => [ 'type' => 'string', 'required' => true, - 'enum' => [ - 'UNSTRUCTURED', - 'SESSION_FILE', - ], + 'enum' => ['UNSTRUCTURED', 'SESSION_FILE'], ], ], [ 'name' => 'OssRegionId', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'OssBucketName', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'FileDetails', @@ -413,17 +237,24 @@ 'type' => 'object', 'required' => true, 'properties' => [ - 'FileName' => [ + 'FileName' => ['type' => 'string', 'required' => true, 'minLength' => 1, 'maxLength' => 500], + 'OssKey' => ['type' => 'string', 'required' => true, 'minLength' => 1, 'maxLength' => 256], + 'Parser' => [ 'type' => 'string', - 'required' => true, - 'minLength' => 1, - 'maxLength' => 500, + 'required' => false, + 'enum' => ['DOCMIND', 'DOCMIND_DIGITAL', 'DOCMIND_LLM_VERSION', 'DASH_QWEN_VL_PARSER', 'DOCMIND_LLM_VERSION_MEDIA', 'AUTO_SELECT'], ], - 'OssKey' => [ - 'type' => 'string', - 'required' => true, - 'minLength' => 1, - 'maxLength' => 256, + 'ParserConfig' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'ModelName' => [ + 'type' => 'string', + 'required' => false, + 'enum' => ['qwen-vl-max', 'qwen-vl-plus', 'qwen3-vl-plus'], + ], + 'ModelPrompt' => ['type' => 'string', 'required' => false, 'minLength' => 1, 'maxLength' => 1000], + ], ], ], ], @@ -438,84 +269,111 @@ 'schema' => [ 'type' => 'array', 'required' => false, - 'items' => [ - 'type' => 'string', - 'required' => false, - ], + 'items' => ['type' => 'string', 'required' => false], ], ], [ 'name' => 'OverWriteFileByOssKey', 'in' => 'formData', + 'schema' => ['type' => 'boolean', 'required' => false], + ], + ], + ], + 'AddTable' => [ + 'path' => '/{WorkspaceId}/datacenter/table', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'WorkspaceId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'TableName', + 'in' => 'formData', + 'schema' => ['type' => 'string', 'required' => true, 'minLength' => 1, 'maxLength' => 64], + ], + [ + 'name' => 'TableDesc', + 'in' => 'formData', + 'schema' => ['type' => 'string', 'required' => false, 'minLength' => 1, 'maxLength' => 200], + ], + [ + 'name' => 'ConnectorId', + 'in' => 'formData', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'TableColumns', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'type' => 'boolean', - 'required' => false, + 'type' => 'array', + 'required' => true, + 'items' => [ + 'type' => 'object', + 'required' => true, + 'properties' => [ + 'ColumnName' => ['type' => 'string', 'required' => true, 'minLength' => 1, 'maxLength' => 15], + 'ColumnDesc' => ['type' => 'string', 'required' => false, 'minLength' => 0, 'maxLength' => 15], + 'DataType' => [ + 'type' => 'string', + 'required' => true, + 'enum' => ['string', 'double', 'long', 'datetime', 'image_url'], + ], + ], + ], + 'minItems' => 1, ], ], ], ], 'ApplyFileUploadLease' => [ 'path' => '/{WorkspaceId}/datacenter/category/{CategoryId}', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'CategoryId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'FileName', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'Md5', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'minLength' => 1, - 'maxLength' => 64, - ], + 'schema' => ['type' => 'string', 'required' => true, 'minLength' => 1, 'maxLength' => 64], ], [ 'name' => 'SizeInBytes', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'WorkspaceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'CategoryType', @@ -523,287 +381,122 @@ 'schema' => [ 'type' => 'string', 'required' => false, - 'enum' => [ - 'UNSTRUCTURED', - 'SESSION_FILE', - ], + 'enum' => ['UNSTRUCTURED', 'SESSION_FILE'], ], ], [ 'name' => 'UseInternalEndpoint', 'in' => 'formData', - 'schema' => [ - 'type' => 'boolean', - 'required' => false, - ], + 'schema' => ['type' => 'boolean', 'required' => false], ], ], ], - 'DeleteFile' => [ - 'path' => '/{WorkspaceId}/datacenter/file/{FileId}/', - 'methods' => [ - 'delete', - ], - 'schemes' => [ - 'https', - ], + 'ApplyTempStorageLease' => [ + 'path' => '/{WorkspaceId}/datacenter', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'FileId', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], - ], - [ - 'name' => 'WorkspaceId', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'name' => 'FileName', + 'in' => 'formData', + 'schema' => ['type' => 'string', 'required' => true], ], - ], - ], - 'DescribeFile' => [ - 'path' => '/{WorkspaceId}/datacenter/file/{FileId}/', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'https', - ], - 'security' => [ [ - 'AK' => [], + 'name' => 'SizeInBytes', + 'in' => 'formData', + 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => true, 'minimum' => '0'], ], - ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'deprecated' => false, - 'parameters' => [ [ 'name' => 'WorkspaceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], - ], - [ - 'name' => 'FileId', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], ], ], - 'UpdateFileTag' => [ - 'path' => '/{WorkspaceId}/datacenter/file/{FileId}', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'https', - ], + 'BatchUpdateFileTag' => [ + 'path' => '/{WorkspaceId}/datacenter/batchupdatetag', + 'methods' => ['put'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'WorkspaceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'FileId', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], - ], - [ - 'name' => 'Tags', + 'name' => 'FileInfos', 'in' => 'formData', 'style' => 'json', 'schema' => [ 'type' => 'array', 'required' => true, 'items' => [ - 'type' => 'string', - 'required' => false, + 'type' => 'object', + 'required' => true, + 'properties' => [ + 'FileId' => ['type' => 'string', 'required' => true], + 'tags' => [ + 'type' => 'array', + 'required' => true, + 'items' => ['type' => 'string', 'required' => false], + 'minItems' => 1, + 'maxItems' => 100, + ], + ], ], 'minItems' => 1, - 'maxItems' => 32, - ], - ], - ], - ], - 'GetParseSettings' => [ - 'path' => '/{WorkspaceId}/datacenter/parser/settings', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'https', - ], - 'security' => [ - [ - 'AK' => [], - ], - ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'deprecated' => false, - 'parameters' => [ - [ - 'name' => 'WorkspaceId', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => false, + 'maxItems' => 20, ], ], [ - 'name' => 'CategoryId', - 'in' => 'query', + 'name' => 'UpdateMode', + 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => false, - ], - ], - ], - ], - 'GetAvailableParserTypes' => [ - 'path' => '/{WorkspaceId}/datacenter/parser/parsertype', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'https', - ], - 'security' => [ - [ - 'AK' => [], - ], - ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'deprecated' => false, - 'parameters' => [ - [ - 'name' => 'WorkspaceId', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], - ], - [ - 'name' => 'FileType', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'enum' => [ - 'doc', - 'docx', - 'ppt', - 'pptx', - 'xls', - 'xlsx', - 'md', - 'txt', - 'pdf', - 'png', - 'jpg', - 'jpeg', - 'bmp', - 'gif', - 'html', - ], + 'enum' => ['OVERWRITE', 'APPEND'], ], ], ], ], 'ChangeParseSetting' => [ 'path' => '/{WorkspaceId}/datacenter/parser/settings', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['put'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'WorkspaceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'CategoryId', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'minLength' => 1, - 'maxLength' => 128, - ], + 'schema' => ['type' => 'string', 'required' => true, 'minLength' => 1, 'maxLength' => 128], ], [ 'name' => 'FileType', @@ -811,23 +504,7 @@ 'schema' => [ 'type' => 'string', 'required' => true, - 'enum' => [ - 'doc', - 'docx', - 'ppt', - 'pptx', - 'xls', - 'xlsx', - 'md', - 'txt', - 'pdf', - 'png', - 'jpg', - 'jpeg', - 'bmp', - 'gif', - 'html', - ], + 'enum' => ['doc', 'docx', 'ppt', 'pptx', 'xls', 'xlsx', 'md', 'txt', 'pdf', 'png', 'jpg', 'jpeg', 'bmp', 'gif', 'html'], ], ], [ @@ -836,15 +513,7 @@ 'schema' => [ 'type' => 'string', 'required' => true, - 'enum' => [ - 'DOCMIND', - 'DOCMIND_DIGITAL', - 'DOCMIND_LLM_VERSION', - 'DASH_SENSEVOICE', - 'RAG_VIDEO_PARSER', - 'DASH_QWEN_VL_PARSER', - 'BAILIAN_TXT_PARSER', - ], + 'enum' => ['DOCMIND', 'DOCMIND_DIGITAL', 'DOCMIND_LLM_VERSION', 'DASH_SENSEVOICE', 'RAG_VIDEO_PARSER', 'DASH_QWEN_VL_PARSER', 'BAILIAN_TXT_PARSER'], ], ], [ @@ -858,15 +527,9 @@ 'modelName' => [ 'type' => 'string', 'required' => false, - 'enum' => [ - 'qwen-vl-max', - 'qwen-vl-plus', - ], - ], - 'modelPrompt' => [ - 'type' => 'string', - 'required' => false, + 'enum' => ['qwen-vl-max', 'qwen-vl-plus', 'qwen3-vl-plus'], ], + 'modelPrompt' => ['type' => 'string', 'required' => false, 'minLength' => 1, 'maxLength' => 1500], ], ], ], @@ -874,107 +537,66 @@ ], 'CreateIndex' => [ 'path' => '/{WorkspaceId}/index/create', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'WorkspaceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'Name', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'StructureType', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'EmbeddingModelName', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'RerankModelName', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'RerankMinScore', 'in' => 'query', - 'schema' => [ - 'type' => 'number', - 'format' => 'double', - 'required' => false, - ], + 'schema' => ['type' => 'number', 'format' => 'double', 'required' => false], ], [ 'name' => 'ChunkSize', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - ], + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], ], [ 'name' => 'OverlapSize', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - ], + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], ], [ 'name' => 'Separator', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'SourceType', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'DocumentIds', @@ -983,10 +605,7 @@ 'schema' => [ 'type' => 'array', 'required' => false, - 'items' => [ - 'type' => 'string', - 'required' => false, - ], + 'items' => ['type' => 'string', 'required' => false], ], ], [ @@ -996,10 +615,7 @@ 'schema' => [ 'type' => 'array', 'required' => false, - 'items' => [ - 'type' => 'string', - 'required' => false, - ], + 'items' => ['type' => 'string', 'required' => false], ], ], [ @@ -1009,86 +625,23 @@ 'schema' => [ 'type' => 'array', 'required' => false, - 'items' => [ - 'type' => 'string', - 'required' => false, - ], - ], - ], - [ - 'name' => 'DataSource', - 'in' => 'query', - 'style' => 'json', - 'schema' => [ - 'type' => 'object', - 'required' => false, - 'properties' => [ - 'CredentialId' => [ - 'type' => 'string', - 'required' => false, - ], - 'CredentialKey' => [ - 'type' => 'string', - 'required' => false, - ], - 'Database' => [ - 'type' => 'string', - 'required' => false, - ], - 'Endpoint' => [ - 'type' => 'string', - 'required' => false, - ], - 'IsPrivateLink' => [ - 'type' => 'boolean', - 'required' => false, - ], - 'Region' => [ - 'type' => 'string', - 'required' => false, - ], - 'SubPath' => [ - 'type' => 'string', - 'required' => false, - ], - 'SubType' => [ - 'type' => 'string', - 'required' => false, - ], - 'Table' => [ - 'type' => 'string', - 'required' => false, - ], - 'Type' => [ - 'type' => 'string', - 'required' => false, - ], - ], + 'items' => ['type' => 'string', 'required' => false], ], ], [ 'name' => 'SinkType', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'SinkInstanceId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'SinkRegion', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'Columns', @@ -1101,26 +654,11 @@ 'type' => 'object', 'required' => false, 'properties' => [ - 'Column' => [ - 'type' => 'string', - 'required' => false, - ], - 'IsRecall' => [ - 'type' => 'boolean', - 'required' => false, - ], - 'IsSearch' => [ - 'type' => 'boolean', - 'required' => false, - ], - 'Name' => [ - 'type' => 'string', - 'required' => false, - ], - 'Type' => [ - 'type' => 'string', - 'required' => false, - ], + 'Column' => ['type' => 'string', 'required' => false], + 'IsRecall' => ['type' => 'boolean', 'required' => false], + 'IsSearch' => ['type' => 'boolean', 'required' => false], + 'Name' => ['type' => 'string', 'required' => false], + 'Type' => ['type' => 'string', 'required' => false], ], ], ], @@ -1128,10 +666,7 @@ [ 'name' => 'Description', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'metaExtractColumns', @@ -1144,30 +679,12 @@ 'type' => 'object', 'required' => false, 'properties' => [ - 'Key' => [ - 'type' => 'string', - 'required' => false, - ], - 'Value' => [ - 'type' => 'string', - 'required' => false, - ], - 'Type' => [ - 'type' => 'string', - 'required' => false, - ], - 'Desc' => [ - 'type' => 'string', - 'required' => false, - ], - 'EnableLlm' => [ - 'type' => 'boolean', - 'required' => false, - ], - 'EnableSearch' => [ - 'type' => 'boolean', - 'required' => false, - ], + 'Key' => ['type' => 'string', 'required' => false], + 'Value' => ['type' => 'string', 'required' => false], + 'Type' => ['type' => 'string', 'required' => false], + 'Desc' => ['type' => 'string', 'required' => false], + 'EnableLlm' => ['type' => 'boolean', 'required' => false], + 'EnableSearch' => ['type' => 'boolean', 'required' => false], ], ], ], @@ -1175,34 +692,22 @@ [ 'name' => 'enableHeaders', 'in' => 'query', - 'schema' => [ - 'type' => 'boolean', - 'required' => false, - ], + 'schema' => ['type' => 'boolean', 'required' => false], ], [ 'name' => 'chunkMode', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'EnableRewrite', 'in' => 'query', - 'schema' => [ - 'type' => 'boolean', - 'required' => false, - ], + 'schema' => ['type' => 'boolean', 'required' => false], ], [ 'name' => 'CreateIndexType', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'pipelineCommercialType', @@ -1210,22 +715,13 @@ 'schema' => [ 'type' => 'string', 'required' => false, - 'enum' => [ - 'enterprise', - 'standard', - ], + 'enum' => ['enterprise', 'standard'], ], ], [ 'name' => 'pipelineCommercialCu', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'minimum' => '1', - 'maximum' => '200', - ], + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '1', 'maximum' => '200'], ], [ 'name' => 'pipelineRetrieveRateLimitStrategy', @@ -1233,913 +729,808 @@ 'schema' => [ 'type' => 'string', 'required' => false, - 'enum' => [ - 'downgrade', - ], + 'enum' => ['downgrade'], ], ], [ 'name' => 'datasourceCode', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'table', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'database', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'knowledgeType', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'knowledgeScene', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'connectId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'channelType', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'RerankMode', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'RerankInstruct', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], ], ], ], - 'GetIndexJobStatus' => [ - 'path' => '/{WorkspaceId}/index/job/status', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'https', - ], + 'CreateMemory' => [ + 'path' => '/{workspaceId}/memories', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/x-www-form-urlencoded', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'WorkspaceId', + 'name' => 'workspaceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'JobId', + 'name' => 'description', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => false], ], + ], + ], + 'CreateMemoryNode' => [ + 'path' => '/{workspaceId}/memories/{memoryId}/memoryNodes', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ [ - 'name' => 'IndexId', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'AK' => [], ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ [ - 'name' => 'PageNumber', - 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - ], + 'name' => 'workspaceId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'pageSize', + 'name' => 'memoryId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'content', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => true], ], ], ], - 'SubmitIndexJob' => [ - 'path' => '/{WorkspaceId}/index/submit_index_job', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'CreatePromptTemplate' => [ + 'path' => '/{workspaceId}/promptTemplates', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'WorkspaceId', + 'name' => 'workspaceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'IndexId', + 'name' => 'name', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'content', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => true], ], ], ], - 'SubmitIndexAddDocumentsJob' => [ - 'path' => '/{WorkspaceId}/index/add_documents_to_index', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'DeleteCategory' => [ + 'path' => '/{WorkspaceId}/datacenter/category/{CategoryId}/', + 'methods' => ['delete'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ + 'name' => 'CategoryId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ 'name' => 'WorkspaceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], + ], + ], + 'DeleteChunk' => [ + 'path' => '/{WorkspaceId}/chunk/delete', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ [ - 'name' => 'IndexId', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'AK' => [], ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ [ - 'name' => 'SourceType', + 'name' => 'PipelineId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'DocumentIds', - 'in' => 'query', - 'style' => 'json', - 'schema' => [ - 'type' => 'array', - 'required' => false, - 'items' => [ - 'type' => 'string', - 'required' => false, - ], - ], + 'name' => 'WorkspaceId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'CategoryIds', + 'name' => 'ChunkIds', 'in' => 'query', 'style' => 'json', 'schema' => [ 'type' => 'array', - 'required' => false, - 'items' => [ - 'type' => 'string', - 'required' => false, - ], - ], - ], - [ - 'name' => 'ChunkMode', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], - ], - [ - 'name' => 'Separator', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, + 'required' => true, + 'items' => ['type' => 'string', 'required' => true], ], ], + ], + ], + 'DeleteConnector' => [ + 'path' => '/{WorkspaceId}/datacenter/connector/{ConnectorId}', + 'methods' => ['delete'], + 'schemes' => ['https'], + 'security' => [ [ - 'name' => 'ChunkSize', - 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - ], + 'AK' => [], ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ [ - 'name' => 'OverlapSize', - 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - ], + 'name' => 'ConnectorId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true, 'minLength' => 1, 'maxLength' => 256], ], [ - 'name' => 'EnableHeaders', - 'in' => 'query', - 'schema' => [ - 'type' => 'boolean', - 'required' => false, - ], + 'name' => 'WorkspaceId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], ], ], ], - 'Retrieve' => [ - 'path' => '/{WorkspaceId}/index/retrieve', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'DeleteFile' => [ + 'path' => '/{WorkspaceId}/datacenter/file/{FileId}/', + 'methods' => ['delete'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'Query', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'name' => 'FileId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true, 'minLength' => 32, 'maxLength' => 128], ], [ - 'name' => 'DenseSimilarityTopK', - 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - ], + 'name' => 'WorkspaceId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], ], + ], + ], + 'DeleteFiles' => [ + 'path' => '/{WorkspaceId}/datacenter/file/delete', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ [ - 'name' => 'EnableReranking', - 'in' => 'query', - 'schema' => [ - 'type' => 'boolean', - 'required' => false, - ], + 'AK' => [], ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ [ - 'name' => 'EnableRewrite', - 'in' => 'query', - 'schema' => [ - 'type' => 'boolean', - 'required' => false, - ], + 'name' => 'WorkspaceId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'Rerank', - 'in' => 'query', + 'name' => 'FileIds', + 'in' => 'formData', 'style' => 'json', 'schema' => [ 'type' => 'array', - 'required' => false, - 'items' => [ - 'type' => 'object', - 'required' => false, - 'properties' => [ - 'ModelName' => [ - 'type' => 'string', - 'required' => false, - ], - ], - ], + 'required' => true, + 'items' => ['type' => 'string', 'required' => false], + 'minItems' => 1, + 'maxItems' => 20, ], ], + ], + ], + 'DeleteIndex' => [ + 'path' => '/{WorkspaceId}/index/delete', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ [ - 'name' => 'RerankMinScore', - 'in' => 'query', - 'schema' => [ - 'type' => 'number', - 'format' => 'float', - 'required' => false, - ], + 'AK' => [], ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ [ - 'name' => 'RerankTopN', + 'name' => 'IndexId', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'Rewrite', - 'in' => 'query', - 'style' => 'json', - 'schema' => [ - 'type' => 'array', - 'required' => false, - 'items' => [ - 'type' => 'object', - 'required' => false, - 'properties' => [ - 'ModelName' => [ - 'type' => 'string', - 'required' => false, - ], - ], - ], - ], + 'name' => 'WorkspaceId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], ], + ], + ], + 'DeleteIndexDocument' => [ + 'path' => '/{WorkspaceId}/index/delete_index_document', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ [ - 'name' => 'SparseSimilarityTopK', - 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - ], + 'AK' => [], ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ [ 'name' => 'WorkspaceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'IndexId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'SaveRetrieverHistory', - 'in' => 'query', - 'schema' => [ - 'type' => 'boolean', - 'required' => false, - ], - ], - [ - 'name' => 'SearchFilters', + 'name' => 'DocumentIds', 'in' => 'query', 'style' => 'json', 'schema' => [ 'type' => 'array', - 'required' => false, - 'items' => [ - 'type' => 'object', - 'required' => false, - 'additionalProperties' => [ - 'type' => 'string', - ], - ], + 'required' => true, + 'items' => ['type' => 'string', 'required' => false], ], ], + ], + ], + 'DeleteMemory' => [ + 'path' => '/{workspaceId}/memories/{memoryId}', + 'methods' => ['delete'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ [ - 'name' => 'Images', - 'in' => 'query', - 'style' => 'simple', - 'schema' => [ - 'type' => 'array', - 'required' => false, - 'items' => [ - 'type' => 'string', - 'required' => false, - ], - ], + 'name' => 'workspaceId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'QueryHistory', - 'in' => 'query', - 'style' => 'json', - 'schema' => [ - 'type' => 'array', - 'required' => false, - 'items' => [ - 'type' => 'object', - 'required' => false, - 'properties' => [ - 'role' => [ - 'type' => 'string', - 'required' => false, - ], - 'content' => [ - 'type' => 'string', - 'required' => false, - ], - ], - ], - ], + 'name' => 'memoryId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], ], ], ], - 'ListIndexDocuments' => [ - 'path' => '/{WorkspaceId}/index/list_index_documents', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'https', - ], + 'DeleteMemoryNode' => [ + 'path' => '/{workspaceId}/memories/{memoryId}/memoryNodes/{memoryNodeId}', + 'methods' => ['delete'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/x-www-form-urlencoded', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'IndexId', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'name' => 'workspaceId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'DocumentStatus', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'name' => 'memoryId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'DocumentName', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'name' => 'memoryNodeId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], ], + ], + ], + 'DeletePromptTemplate' => [ + 'path' => '/{workspaceId}/promptTemplates/{promptTemplateId}', + 'methods' => ['delete'], + 'schemes' => ['https'], + 'security' => [ [ - 'name' => 'EnableNameLike', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'AK' => [], ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ [ - 'name' => 'PageNumber', - 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - ], + 'name' => 'workspaceId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'PageSize', - 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - ], + 'name' => 'promptTemplateId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], ], + ], + ], + 'DescribeFile' => [ + 'path' => '/{WorkspaceId}/datacenter/file/{FileId}/', + 'methods' => ['get'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ [ 'name' => 'WorkspaceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'FileId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], ], ], ], - 'ListIndexFileDetails' => [ - 'path' => '/{WorkspaceId}/index/list_index_file_detail', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'GetAlipayTransferStatus' => [ + 'path' => '/openapi/alipay/transfer/status', + 'methods' => ['get', 'post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'IndexId', + 'name' => 'workspace_id', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'DocumentStatus', + 'name' => 'code', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], + ], + ], + 'GetAlipayUrl' => [ + 'path' => '/openapi/alipay/transfer/url', + 'methods' => ['get'], + 'schemes' => ['https'], + 'security' => [ [ - 'name' => 'DocumentName', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'AK' => [], ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ [ - 'name' => 'PageNumber', + 'name' => 'workspace_id', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'PageSize', + 'name' => 'app_id', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], + ], + ], + 'GetAvailableParserTypes' => [ + 'path' => '/{WorkspaceId}/datacenter/parser/parsertype', + 'methods' => ['get'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ [ 'name' => 'WorkspaceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'EnableNameLike', + 'name' => 'FileType', 'in' => 'query', 'schema' => [ 'type' => 'string', - 'required' => false, + 'required' => true, + 'enum' => ['doc', 'docx', 'ppt', 'pptx', 'xls', 'xlsx', 'md', 'txt', 'pdf', 'png', 'jpg', 'jpeg', 'bmp', 'gif', 'html'], ], ], ], ], - 'UpdateIndex' => [ - 'path' => '/{WorkspaceId}/index/update', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'GetConnector' => [ + 'path' => '/{WorkspaceId}/datacenter/connector', + 'methods' => ['get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'WorkspaceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'Id', + 'name' => 'ConnectorName', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => false, 'minLength' => 0, 'maxLength' => 20], ], [ - 'name' => 'Name', + 'name' => 'ConnectorId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], + ], + ], + 'GetIndexJobStatus' => [ + 'path' => '/{WorkspaceId}/index/job/status', + 'methods' => ['get'], + 'schemes' => ['https'], + 'security' => [ [ - 'name' => 'Description', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'AK' => [], ], + ], + 'consumes' => ['application/x-www-form-urlencoded'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ [ - 'name' => 'RerankMinScore', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'name' => 'WorkspaceId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'DenseSimilarityTopK', + 'name' => 'JobId', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'minimum' => '0', - 'maximum' => '100', - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'SparseSimilarityTopK', + 'name' => 'IndexId', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'minimum' => '0', - 'maximum' => '100', - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'PipelineCommercialType', + 'name' => 'PageNumber', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - 'enum' => [ - 'standard', - 'enterprise', - ], - ], + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], ], [ - 'name' => 'PipelineCommercialCu', + 'name' => 'pageSize', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'minimum' => '1', - 'maximum' => '200', - ], + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], ], ], ], - 'DeleteIndexDocument' => [ - 'path' => '/{WorkspaceId}/index/delete_index_document', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'GetIndexMonitor' => [ + 'path' => '/{WorkspaceId}/rag/index/monitor', + 'methods' => ['get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'WorkspaceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'IndexId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'DocumentIds', + 'name' => 'StartTimestamp', 'in' => 'query', - 'style' => 'json', - 'schema' => [ - 'type' => 'array', - 'required' => true, - 'items' => [ - 'type' => 'string', - 'required' => false, - ], - ], + 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => true], + ], + [ + 'name' => 'EndTimestamp', + 'in' => 'query', + 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => true], ], ], ], - 'ListIndices' => [ - 'path' => '/{WorkspaceId}/index/list_indices', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'https', - ], + 'GetMemory' => [ + 'path' => '/{workspaceId}/memories/{memoryId}', + 'methods' => ['get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'workspaceId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'memoryId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], ], - 'produces' => [ - 'application/json', + ], + 'GetMemoryNode' => [ + 'path' => '/{workspaceId}/memories/{memoryId}/memoryNodes/{memoryNodeId}', + 'methods' => ['get'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'IndexName', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'name' => 'workspaceId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'PageNumber', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'name' => 'memoryId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'PageSize', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'name' => 'memoryNodeId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], ], + ], + ], + 'GetParseSettings' => [ + 'path' => '/{WorkspaceId}/datacenter/parser/settings', + 'methods' => ['get'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ [ 'name' => 'WorkspaceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'CategoryId', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], ], ], ], - 'DeleteIndex' => [ - 'path' => '/{WorkspaceId}/index/delete', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'GetPromptTemplate' => [ + 'path' => '/{workspaceId}/promptTemplates/{promptTemplateId}', + 'methods' => ['get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'IndexId', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'name' => 'workspaceId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'promptTemplateId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], ], + ], + ], + 'ListCategory' => [ + 'path' => '/{WorkspaceId}/datacenter/categories', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ [ 'name' => 'WorkspaceId', 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'ConnectorId', + 'in' => 'formData', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'CategoryType', + 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, + 'enum' => ['UNSTRUCTURED'], ], ], + [ + 'name' => 'ParentCategoryId', + 'in' => 'formData', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'NextToken', + 'in' => 'formData', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'MaxResults', + 'in' => 'formData', + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '0', 'maximum' => '500'], + ], + [ + 'name' => 'CategoryName', + 'in' => 'formData', + 'schema' => ['type' => 'string', 'required' => false], + ], ], ], 'ListChunks' => [ 'path' => '/{WorkspaceId}/index/list_chunks', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'WorkspaceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'body', @@ -2152,1077 +1543,910 @@ 'Fields' => [ 'type' => 'array', 'required' => false, - 'items' => [ - 'type' => 'string', - 'required' => false, - ], - ], - 'Filed' => [ - 'type' => 'string', - 'required' => false, - ], - 'FileId' => [ - 'type' => 'string', - 'required' => false, - ], - 'IndexId' => [ - 'type' => 'string', - 'required' => true, - ], - 'PageNum' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - ], - 'PageSize' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, + 'items' => ['type' => 'string', 'required' => false], ], + 'Filed' => ['type' => 'string', 'required' => false], + 'FileId' => ['type' => 'string', 'required' => false], + 'IndexId' => ['type' => 'string', 'required' => true], + 'PageNum' => ['type' => 'integer', 'format' => 'int32', 'required' => false], + 'PageSize' => ['type' => 'integer', 'format' => 'int32', 'required' => false], ], ], ], ], ], - 'UpdateChunk' => [ - 'path' => '/{WorkspaceId}/chunk/update', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'ListFile' => [ + 'path' => '/{WorkspaceId}/datacenter/files', + 'methods' => ['get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'PipelineId', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'name' => 'WorkspaceId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'DataId', + 'name' => 'CategoryId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'ChunkId', + 'name' => 'NextToken', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'IsDisplayedChunkContent', + 'name' => 'MaxResults', 'in' => 'query', - 'schema' => [ - 'type' => 'boolean', - 'required' => true, - ], + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], ], [ - 'name' => 'content', + 'name' => 'FileName', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'WorkspaceId', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], - ], - [ - 'name' => 'title', + 'name' => 'FileIds', 'in' => 'query', + 'style' => 'json', 'schema' => [ - 'type' => 'string', + 'type' => 'array', 'required' => false, + 'items' => ['type' => 'string', 'required' => false], + 'minItems' => 0, + 'maxItems' => 20, ], ], ], ], - 'DeleteChunk' => [ - 'path' => '/{WorkspaceId}/chunk/delete', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'ListIndexDocuments' => [ + 'path' => '/{WorkspaceId}/index/list_index_documents', + 'methods' => ['get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/x-www-form-urlencoded'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'PipelineId', + 'name' => 'IndexId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'WorkspaceId', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'name' => 'DocumentStatus', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'ChunkIds', + 'name' => 'DocumentName', 'in' => 'query', - 'style' => 'json', - 'schema' => [ - 'type' => 'array', - 'required' => true, - 'items' => [ - 'type' => 'string', - 'required' => true, - ], - ], + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'EnableNameLike', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], + ], + [ + 'name' => 'WorkspaceId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], ], ], ], - 'GetIndexMonitor' => [ - 'path' => '/{WorkspaceId}/rag/index/monitor', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'https', - ], + 'ListIndexFileDetails' => [ + 'path' => '/{WorkspaceId}/index/list_index_file_detail', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'WorkspaceId', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'name' => 'IndexId', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'IndexId', + 'name' => 'DocumentStatus', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'StartTimestamp', + 'name' => 'DocumentName', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'EndTimestamp', + 'name' => 'PageNumber', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - ], + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], + ], + [ + 'name' => 'WorkspaceId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'EnableNameLike', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], ], ], ], - 'CreatePromptTemplate' => [ - 'path' => '/{workspaceId}/promptTemplates', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'ListIndices' => [ + 'path' => '/{WorkspaceId}/index/list_indices', + 'methods' => ['get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'workspaceId', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'name' => 'IndexName', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'name', + 'name' => 'PageNumber', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'content', + 'name' => 'PageSize', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'WorkspaceId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], ], ], ], - 'GetPromptTemplate' => [ - 'path' => '/{workspaceId}/promptTemplates/{promptTemplateId}', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'https', - ], + 'ListMemories' => [ + 'path' => '/{workspaceId}/memories', + 'methods' => ['get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'workspaceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'promptTemplateId', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'name' => 'maxResults', + 'in' => 'query', + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], + ], + [ + 'name' => 'nextToken', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], ], ], ], - 'UpdatePromptTemplate' => [ - 'path' => '/{workspaceId}/promptTemplates/{promptTemplateId}', - 'methods' => [ - 'patch', - ], - 'schemes' => [ - 'https', - ], + 'ListMemoryNodes' => [ + 'path' => '/{workspaceId}/memories/{memoryId}/memoryNodes', + 'methods' => ['get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'workspaceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'promptTemplateId', + 'name' => 'memoryId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'name', + 'name' => 'maxResults', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '1', 'maximum' => '50'], ], [ - 'name' => 'content', + 'name' => 'nextToken', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], ], ], - 'DeletePromptTemplate' => [ - 'path' => '/{workspaceId}/promptTemplates/{promptTemplateId}', - 'methods' => [ - 'delete', - ], - 'schemes' => [ - 'https', - ], + 'ListPromptTemplates' => [ + 'path' => '/{workspaceId}/promptTemplates', + 'methods' => ['get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'workspaceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'promptTemplateId', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'name' => 'name', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'type', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'maxResults', + 'in' => 'query', + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], + ], + [ + 'name' => 'nextToken', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], ], ], ], - 'ListPromptTemplates' => [ - 'path' => '/{workspaceId}/promptTemplates', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'https', - ], + 'Retrieve' => [ + 'path' => '/{WorkspaceId}/index/retrieve', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'workspaceId', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'name' => 'Query', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'name', + 'name' => 'DenseSimilarityTopK', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], ], [ - 'name' => 'type', + 'name' => 'EnableReranking', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'boolean', 'required' => false], ], [ - 'name' => 'maxResults', + 'name' => 'EnableRewrite', 'in' => 'query', + 'schema' => ['type' => 'boolean', 'required' => false], + ], + [ + 'name' => 'Rerank', + 'in' => 'query', + 'style' => 'json', 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', + 'type' => 'array', 'required' => false, + 'items' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'ModelName' => ['type' => 'string', 'required' => false], + 'RerankMode' => ['type' => 'string', 'required' => false], + 'RerankInstruct' => ['type' => 'string', 'required' => false], + ], + ], ], ], [ - 'name' => 'nextToken', + 'name' => 'RerankMinScore', + 'in' => 'query', + 'schema' => ['type' => 'number', 'format' => 'float', 'required' => false], + ], + [ + 'name' => 'RerankTopN', 'in' => 'query', + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], + ], + [ + 'name' => 'Rewrite', + 'in' => 'query', + 'style' => 'json', 'schema' => [ - 'type' => 'string', + 'type' => 'array', 'required' => false, + 'items' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'ModelName' => ['type' => 'string', 'required' => false], + ], + ], ], ], - ], - ], - 'CreateMemory' => [ - 'path' => '/{workspaceId}/memories', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], - 'security' => [ [ - 'AK' => [], + 'name' => 'SparseSimilarityTopK', + 'in' => 'query', + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], ], - ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'deprecated' => false, - 'parameters' => [ [ - 'name' => 'workspaceId', + 'name' => 'WorkspaceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'description', + 'name' => 'IndexId', 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'SaveRetrieverHistory', + 'in' => 'query', + 'schema' => ['type' => 'boolean', 'required' => false], + ], + [ + 'name' => 'SearchFilters', + 'in' => 'query', + 'style' => 'json', 'schema' => [ - 'type' => 'string', + 'type' => 'array', 'required' => false, + 'items' => [ + 'type' => 'object', + 'required' => false, + 'additionalProperties' => ['type' => 'string'], + ], ], ], - ], - ], - 'GetMemory' => [ - 'path' => '/{workspaceId}/memories/{memoryId}', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'https', - ], - 'security' => [ [ - 'AK' => [], + 'name' => 'Images', + 'in' => 'query', + 'style' => 'simple', + 'schema' => [ + 'type' => 'array', + 'required' => false, + 'items' => ['type' => 'string', 'required' => false], + ], ], - ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'deprecated' => false, - 'parameters' => [ [ - 'name' => 'workspaceId', - 'in' => 'path', + 'name' => 'QueryHistory', + 'in' => 'query', + 'style' => 'json', 'schema' => [ - 'type' => 'string', - 'required' => true, + 'type' => 'array', + 'required' => false, + 'items' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'role' => ['type' => 'string', 'required' => false], + 'content' => ['type' => 'string', 'required' => false], + ], + ], ], ], [ - 'name' => 'memoryId', - 'in' => 'path', + 'name' => 'Extra', + 'in' => 'query', + 'style' => 'json', 'schema' => [ - 'type' => 'string', - 'required' => true, + 'type' => 'object', + 'properties' => [ + 'uniqueId' => ['type' => 'string', 'maxLength' => 512], + ], ], ], ], ], - 'UpdateMemory' => [ - 'path' => '/{workspaceId}/memories/{memoryId}', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'https', - ], + 'SubmitIndexAddDocumentsJob' => [ + 'path' => '/{WorkspaceId}/index/add_documents_to_index', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'workspaceId', + 'name' => 'WorkspaceId', 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'IndexId', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'SourceType', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'DocumentIds', + 'in' => 'query', + 'style' => 'json', 'schema' => [ - 'type' => 'string', - 'required' => true, + 'type' => 'array', + 'required' => false, + 'items' => ['type' => 'string', 'required' => false], ], ], [ - 'name' => 'memoryId', - 'in' => 'path', + 'name' => 'CategoryIds', + 'in' => 'query', + 'style' => 'json', 'schema' => [ - 'type' => 'string', - 'required' => true, + 'type' => 'array', + 'required' => false, + 'items' => ['type' => 'string', 'required' => false], ], ], [ - 'name' => 'description', + 'name' => 'ChunkMode', 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'Separator', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'ChunkSize', + 'in' => 'query', + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], + ], + [ + 'name' => 'OverlapSize', + 'in' => 'query', + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], + ], + [ + 'name' => 'EnableHeaders', + 'in' => 'query', + 'schema' => ['type' => 'boolean', 'required' => false], + ], + [ + 'name' => 'Extra', + 'in' => 'query', + 'style' => 'json', 'schema' => [ - 'type' => 'string', - 'required' => false, + 'type' => 'object', + 'properties' => [ + 'uniqueId' => ['type' => 'string'], + ], ], ], ], ], - 'DeleteMemory' => [ - 'path' => '/{workspaceId}/memories/{memoryId}', - 'methods' => [ - 'delete', - ], - 'schemes' => [ - 'https', - ], + 'SubmitIndexJob' => [ + 'path' => '/{WorkspaceId}/index/submit_index_job', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'workspaceId', + 'name' => 'WorkspaceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'memoryId', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'name' => 'IndexId', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => true], ], ], ], - 'ListMemories' => [ - 'path' => '/{workspaceId}/memories', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'https', - ], + 'UpdateChunk' => [ + 'path' => '/{WorkspaceId}/chunk/update', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'workspaceId', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'name' => 'PipelineId', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'maxResults', + 'name' => 'DataId', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'nextToken', + 'name' => 'ChunkId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'IsDisplayedChunkContent', + 'in' => 'query', + 'schema' => ['type' => 'boolean', 'required' => true], + ], + [ + 'name' => 'content', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'WorkspaceId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'title', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], ], ], ], - 'CreateMemoryNode' => [ - 'path' => '/{workspaceId}/memories/{memoryId}/memoryNodes', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'UpdateConnector' => [ + 'path' => '/{WorkspaceId}/datacenter/connector/{ConnectorId}', + 'methods' => ['put'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'workspaceId', + 'name' => 'WorkspaceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'memoryId', + 'name' => 'ConnectorId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'content', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'name' => 'ConnectorName', + 'in' => 'formData', + 'schema' => ['type' => 'string', 'required' => true, 'minLength' => 1, 'maxLength' => 20], + ], + [ + 'name' => 'Description', + 'in' => 'formData', + 'schema' => ['type' => 'string', 'required' => true, 'minLength' => 1, 'maxLength' => 200], ], ], ], - 'GetMemoryNode' => [ - 'path' => '/{workspaceId}/memories/{memoryId}/memoryNodes/{memoryNodeId}', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'https', - ], + 'UpdateFileTag' => [ + 'path' => '/{WorkspaceId}/datacenter/file/{FileId}', + 'methods' => ['put'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'workspaceId', + 'name' => 'WorkspaceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'memoryId', + 'name' => 'FileId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'memoryNodeId', - 'in' => 'path', + 'name' => 'Tags', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'type' => 'string', + 'type' => 'array', 'required' => true, + 'items' => ['type' => 'string', 'required' => false], + 'minItems' => 1, + 'maxItems' => 100, ], ], ], ], - 'UpdateMemoryNode' => [ - 'path' => '/{workspaceId}/memories/{memoryId}/memoryNodes/{memoryNodeId}', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'https', - ], + 'UpdateIndex' => [ + 'path' => '/{WorkspaceId}/index/update', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'workspaceId', + 'name' => 'WorkspaceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'memoryId', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'name' => 'Id', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'memoryNodeId', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'name' => 'Name', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'content', + 'name' => 'Description', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'RerankMinScore', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'DenseSimilarityTopK', + 'in' => 'query', + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '0', 'maximum' => '100'], + ], + [ + 'name' => 'SparseSimilarityTopK', + 'in' => 'query', + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '0', 'maximum' => '100'], + ], + [ + 'name' => 'PipelineCommercialType', 'in' => 'query', 'schema' => [ 'type' => 'string', - 'required' => true, + 'required' => false, + 'enum' => ['standard', 'enterprise'], ], ], + [ + 'name' => 'PipelineCommercialCu', + 'in' => 'query', + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '1', 'maximum' => '200'], + ], ], ], - 'DeleteMemoryNode' => [ - 'path' => '/{workspaceId}/memories/{memoryId}/memoryNodes/{memoryNodeId}', - 'methods' => [ - 'delete', - ], - 'schemes' => [ - 'https', - ], + 'UpdateMemory' => [ + 'path' => '/{workspaceId}/memories/{memoryId}', + 'methods' => ['put'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'workspaceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'memoryId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'memoryNodeId', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'name' => 'description', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], ], ], ], - 'ListMemoryNodes' => [ - 'path' => '/{workspaceId}/memories/{memoryId}/memoryNodes', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'https', - ], + 'UpdateMemoryNode' => [ + 'path' => '/{workspaceId}/memories/{memoryId}/memoryNodes/{memoryNodeId}', + 'methods' => ['put'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'workspaceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'memoryId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'maxResults', - 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'minimum' => '1', - 'maximum' => '50', - ], + 'name' => 'memoryNodeId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'nextToken', + 'name' => 'content', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => true], ], ], ], - 'GetAlipayTransferStatus' => [ - 'path' => '/openapi/alipay/transfer/status', - 'methods' => [ - 'get', - 'post', - ], - 'schemes' => [ - 'https', - ], + 'UpdatePromptTemplate' => [ + 'path' => '/{workspaceId}/promptTemplates/{promptTemplateId}', + 'methods' => ['patch'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'workspace_id', + 'name' => 'workspaceId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'promptTemplateId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'name', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'code', + 'name' => 'content', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], ], ], - 'GetAlipayUrl' => [ - 'path' => '/openapi/alipay/transfer/url', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'https', - ], + 'UpdateTableFromAuthorizedOss' => [ + 'path' => '/{WorkspaceId}/datacenter/table/fromoss/{TableId}', + 'methods' => ['put'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'workspace_id', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'name' => 'WorkspaceId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'app_id', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'name' => 'TableId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], ], - ], - ], - 'ApplyTempStorageLease' => [ - 'path' => '/{WorkspaceId}/datacenter', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], - 'security' => [ [ - 'AK' => [], + 'name' => 'OssBucket', + 'in' => 'formData', + 'schema' => ['type' => 'string', 'required' => true], ], - ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'deprecated' => false, - 'parameters' => [ [ - 'name' => 'FileName', + 'name' => 'OssRegionId', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'SizeInBytes', + 'name' => 'OssKey', 'in' => 'formData', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'minimum' => '0', - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'WorkspaceId', - 'in' => 'path', + 'name' => 'UpdateMode', + 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, + 'enum' => ['APPEND', 'OVERWRITE'], ], ], ], ], ], 'endpoints' => [ - [ - 'regionId' => 'cn-beijing', - 'endpoint' => 'bailian.cn-beijing.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shanghai-finance-1', - 'endpoint' => 'bailian.cn-shanghai-finance-1.aliyuncs.com', - ], - [ - 'regionId' => 'ap-southeast-1', - 'endpoint' => 'bailian.ap-southeast-1.aliyuncs.com', - ], + ['regionId' => 'cn-beijing', 'regionName' => '华北2(北京)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'bailian.cn-beijing.aliyuncs.com', 'endpoint' => 'bailian.cn-beijing.aliyuncs.com', 'vpc' => 'bailian-vpc.cn-beijing.aliyuncs.com'], + ['regionId' => 'ap-southeast-1', 'regionName' => '新加坡', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'bailian.ap-southeast-1.aliyuncs.com', 'endpoint' => 'bailian.ap-southeast-1.aliyuncs.com', 'vpc' => 'bailian-vpc.ap-southeast-1.aliyuncs.com'], ], ]; |
