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/searchplat | |
| parent | eccd5cd5a067f5659982685afdeea209b1888efb (diff) | |
| download | afterglow-metadata-814ec806c22e2782390af5a4a05cb6281aabd5e1.tar.gz afterglow-metadata-814ec806c22e2782390af5a4a05cb6281aabd5e1.zip | |
update APIs 20260712
Diffstat (limited to 'data/searchplat')
| -rw-r--r-- | data/searchplat/2024-04-01/api-docs.php | 3020 | ||||
| -rw-r--r-- | data/searchplat/2024-05-29/api-docs.php | 1439 |
2 files changed, 1999 insertions, 2460 deletions
diff --git a/data/searchplat/2024-04-01/api-docs.php b/data/searchplat/2024-04-01/api-docs.php index 87323e4..62b3756 100644 --- a/data/searchplat/2024-04-01/api-docs.php +++ b/data/searchplat/2024-04-01/api-docs.php @@ -1,23 +1,44 @@ <?php return [ 'version' => '1.0', - 'info' => [ - 'style' => 'ROA', - 'product' => 'Searchplat', - 'version' => '2024-04-01', - ], + 'info' => ['style' => 'ROA', 'product' => 'Searchplat', 'version' => '2024-04-01'], 'components' => [ 'schemas' => [], ], 'apis' => [ - 'CreateWorkspace' => [ - 'path' => '/openapi/platform/workspaces', - 'methods' => [ - 'post', + 'CeaseFunctionInstance' => [ + 'path' => '/openapi/platform/workspaces/{workspaceName}/functions/{functionName}/instances/{instanceName}/actions/cease', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], ], - 'schemes' => [ - 'http', - 'https', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'workspaceName', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'functionName', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'instanceName', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], ], + ], + 'CreateAsyncTask' => [ + 'path' => '/openapi/platform/workspaces/{workspaceName}/async-tasks', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -26,6 +47,16 @@ 'deprecated' => false, 'parameters' => [ [ + 'name' => 'dryRun', + 'in' => 'query', + 'schema' => ['type' => 'boolean', 'required' => false], + ], + [ + 'name' => 'workspaceName', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ 'name' => 'body', 'in' => 'body', 'style' => 'json', @@ -33,70 +64,43 @@ 'type' => 'object', 'required' => false, 'properties' => [ - 'chargeType' => [ - 'type' => 'string', - 'required' => false, - ], - 'engineType' => [ - 'type' => 'string', - 'required' => false, - ], - 'name' => [ - 'type' => 'string', - 'required' => false, - ], - 'quota' => [ - 'type' => 'object', - 'required' => false, - 'properties' => [ - 'computeResource' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - ], - 'docSize' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - ], - 'spec' => [ - 'type' => 'string', - 'required' => false, - ], - ], - ], - 'type' => [ - 'type' => 'string', - 'required' => false, - ], + 'id' => ['type' => 'string', 'required' => false], + 'serviceType' => ['type' => 'string', 'required' => false], + 'serviceId' => ['type' => 'string', 'required' => false], + 'dataId' => ['type' => 'integer', 'format' => 'int64', 'required' => false], + 'name' => ['type' => 'string', 'required' => false], ], ], ], ], ], - 'UpdateWorkspace' => [ - 'path' => '/openapi/platform/workspaces/{workspaceName}', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'CreateCapability' => [ + 'path' => '/openapi/platform/workspaces/{workspaceName}/capabilities/{itemCategory}/items', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'workspaceName', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'itemCategory', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'dryRun', + 'in' => 'query', + 'schema' => ['type' => 'boolean', 'required' => false], ], [ 'name' => 'body', @@ -106,28 +110,18 @@ 'type' => 'object', 'required' => false, 'properties' => [ - 'description' => [ - 'type' => 'string', - 'required' => false, - ], - 'resourceGroupId' => [ - 'type' => 'string', - 'required' => false, - ], + 'itemName' => ['type' => 'string', 'required' => false], + 'itemDesc' => ['type' => 'string', 'required' => false], + 'itemValue' => ['type' => 'object', 'required' => false], ], ], ], ], ], - 'GetWorkspace' => [ - 'path' => '/openapi/platform/workspaces/{workspaceName}', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'CreateCredentials' => [ + 'path' => '/openapi/platform/workspaces/{workspaceName}/credentials', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -136,24 +130,33 @@ 'deprecated' => false, 'parameters' => [ [ - 'name' => 'workspaceName', - 'in' => 'path', + 'name' => 'dryRun', + 'in' => 'query', + 'schema' => ['type' => 'boolean', 'required' => false], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', 'schema' => [ - 'type' => 'string', - 'required' => true, + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'type' => ['type' => 'string', 'required' => false], + ], ], ], + [ + 'name' => 'workspaceName', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], ], ], - 'ListWorkspaces' => [ - 'path' => '/openapi/platform/workspaces', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'CreateExperienceData' => [ + 'path' => '/openapi/platform/workspaces/{workspaceName}/experience-data', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -162,75 +165,89 @@ 'deprecated' => false, 'parameters' => [ [ - 'name' => 'pageNumber', + 'name' => 'dryRun', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - ], + 'schema' => ['type' => 'boolean', 'required' => false], ], [ - 'name' => 'pageSize', - 'in' => 'query', + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', + 'type' => 'object', 'required' => false, + 'properties' => [ + 'serviceType' => ['type' => 'string', 'required' => false], + 'dataType' => ['type' => 'string', 'required' => false], + 'name' => ['type' => 'string', 'required' => false], + 'dataValue' => ['type' => 'string', 'required' => false], + 'dataSize' => ['type' => 'integer', 'format' => 'int64', 'required' => false], + 'contentType' => ['type' => 'string', 'required' => false], + ], ], ], [ - 'name' => 'instanceId', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'name' => 'workspaceName', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], ], + ], + ], + 'CreateFunctionInstance' => [ + 'path' => '/openapi/platform/workspaces/{workspaceName}/functions/{functionName}/instances', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ [ - 'name' => 'name', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'AK' => [], ], + ], + 'consumes' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ [ - 'name' => 'type', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'name' => 'workspaceName', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'sortBy', - 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - ], + 'name' => 'functionName', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'resourceGroupId', - 'in' => 'query', + 'name' => 'Body', + 'in' => 'body', + 'style' => 'json', 'schema' => [ - 'type' => 'string', + 'type' => 'object', 'required' => false, + 'properties' => [ + 'instanceName' => ['type' => 'string', 'required' => true], + 'modelType' => ['type' => 'string', 'required' => true], + 'functionType' => ['type' => 'string', 'required' => false], + 'description' => ['type' => 'string', 'required' => false], + 'createParameters' => [ + 'type' => 'array', + 'required' => false, + 'items' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'name' => ['type' => 'string', 'required' => false], + 'value' => ['type' => 'string', 'required' => false], + ], + ], + ], + ], ], ], ], ], - 'DeleteWorkspace' => [ - 'path' => '/openapi/platform/workspaces/{workspaceName}', - 'methods' => [ - 'delete', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'CreateFunctionTask' => [ + 'path' => '/openapi/platform/workspaces/{workspaceName}/functions/{functionName}/instances/{instanceName}/tasks', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -241,44 +258,57 @@ [ 'name' => 'workspaceName', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'functionName', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'instanceName', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], ], ], ], - 'UpdateCredentials' => [ - 'path' => '/openapi/platform/workspaces/{workspaceName}/credentials/{token}', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'CreateOfflineTask' => [ + 'path' => '/openapi/platform/workspaces/{workspaceName}/offline-tasks/{type}', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'token', + 'name' => 'workspaceName', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'type', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'draft', + 'in' => 'query', + 'schema' => ['type' => 'boolean', 'required' => false], ], [ 'name' => 'dryRun', 'in' => 'query', - 'schema' => [ - 'type' => 'boolean', - 'required' => false, - ], + 'schema' => ['type' => 'boolean', 'required' => false], + ], + [ + 'name' => 'regionId', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'body', @@ -288,46 +318,123 @@ 'type' => 'object', 'required' => false, 'properties' => [ - 'enabled' => [ - 'type' => 'boolean', + 'meta' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'apiKey' => ['type' => 'string', 'required' => false], + 'regionId' => ['type' => 'string', 'required' => false], + 'taskName' => ['type' => 'string', 'required' => false], + 'computeResource' => ['type' => 'string', 'required' => false], + 'labels' => [ + 'type' => 'array', + 'required' => false, + 'items' => ['type' => 'string', 'required' => false], + ], + ], + ], + 'source' => [ + 'type' => 'array', + 'required' => false, + 'items' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'name' => ['type' => 'string', 'required' => false], + 'type' => ['type' => 'string', 'required' => false], + 'parameters' => [ + 'type' => 'object', + 'required' => false, + 'additionalProperties' => ['type' => 'string'], + ], + 'schema' => [ + 'type' => 'array', + 'required' => false, + 'items' => [ + 'type' => 'object', + 'required' => false, + 'additionalProperties' => ['type' => 'string'], + ], + ], + 'primaryKey' => ['type' => 'string', 'required' => false], + ], + ], + ], + 'sink' => [ + 'type' => 'array', 'required' => false, + 'items' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'name' => ['type' => 'string', 'required' => false], + 'type' => ['type' => 'string', 'required' => false], + 'parameters' => [ + 'type' => 'object', + 'required' => false, + 'additionalProperties' => ['type' => 'string'], + ], + 'schema' => [ + 'type' => 'array', + 'required' => false, + 'items' => [ + 'type' => 'object', + 'required' => false, + 'additionalProperties' => ['type' => 'string'], + ], + ], + 'primaryKey' => ['type' => 'string', 'required' => false], + ], + ], + ], + 'processors' => [ + 'type' => 'array', + 'required' => false, + 'items' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'name' => ['type' => 'string', 'required' => false], + 'type' => ['type' => 'string', 'required' => false], + 'input' => ['type' => 'object', 'required' => false], + 'parameters' => ['type' => 'object', 'required' => false], + 'output' => ['type' => 'object', 'required' => false], + ], + ], + ], + 'parameters' => ['type' => 'object', 'required' => false], + 'status' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'status' => ['type' => 'string', 'required' => false], + 'errorMessage' => ['type' => 'string', 'required' => false], + 'createTime' => ['type' => 'integer', 'format' => 'int64', 'required' => false], + 'deleteTime' => ['type' => 'integer', 'format' => 'int64', 'required' => false], + ], ], ], ], ], - [ - 'name' => 'workspaceName', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], - ], ], ], - 'CreateCredentials' => [ - 'path' => '/openapi/platform/workspaces/{workspaceName}/credentials', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'CreateRagEvaluatorTask' => [ + 'path' => '/openapi/platform/workspaces/{workspaceName}/rag-evaluator/v1/api/task', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'dryRun', - 'in' => 'query', - 'schema' => [ - 'type' => 'boolean', - 'required' => false, - ], + 'name' => 'workspaceName', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'body', @@ -337,65 +444,123 @@ 'type' => 'object', 'required' => false, 'properties' => [ - 'type' => [ - 'type' => 'string', + 'app_name' => ['type' => 'string', 'required' => false], + 'task_name' => ['type' => 'string', 'required' => false], + 'data' => [ + 'type' => 'array', + 'required' => false, + 'items' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'question' => ['type' => 'string', 'required' => false], + 'standard_answer' => ['type' => 'string', 'required' => false], + 'recall_docs' => [ + 'type' => 'array', + 'required' => false, + 'items' => ['type' => 'string', 'required' => false], + ], + 'model_answer' => ['type' => 'string', 'required' => false], + ], + ], + ], + 'evaluate_config' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'model' => ['type' => 'string', 'required' => false], + 'prompt' => ['type' => 'string', 'required' => false], + 'run_all_step' => ['type' => 'boolean', 'required' => false], + ], + ], + 'metrics' => [ + 'type' => 'array', + 'required' => false, + 'items' => ['type' => 'any', 'required' => false], + ], + 'emails' => [ + 'type' => 'array', 'required' => false, + 'items' => ['type' => 'string', 'required' => false], ], + 'has_data_source' => ['type' => 'boolean', 'required' => false], + 'data_source_config' => ['type' => 'any', 'required' => false], ], ], ], + ], + ], + 'CreateWorkspace' => [ + 'path' => '/openapi/platform/workspaces', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], + 'security' => [ [ - 'name' => 'workspaceName', - 'in' => 'path', + 'AK' => [], + ], + ], + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', 'schema' => [ - 'type' => 'string', - 'required' => true, + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'chargeType' => ['type' => 'string', 'required' => false], + 'engineType' => ['type' => 'string', 'required' => false], + 'name' => ['type' => 'string', 'required' => false], + 'quota' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'computeResource' => ['type' => 'integer', 'format' => 'int32', 'required' => false], + 'docSize' => ['type' => 'integer', 'format' => 'int32', 'required' => false], + 'spec' => ['type' => 'string', 'required' => false], + ], + ], + 'type' => ['type' => 'string', 'required' => false], + ], ], ], ], ], - 'DeleteCredentials' => [ - 'path' => '/openapi/platform/workspaces/{workspaceName}/credentials/{token}', - 'methods' => [ - 'delete', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'DeleteCapability' => [ + 'path' => '/openapi/platform/workspaces/{workspaceName}/capabilities/{itemCategory}/items/{itemName}', + 'methods' => ['delete'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, 'parameters' => [ [ - 'name' => 'token', + 'name' => 'workspaceName', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'workspaceName', + 'name' => 'itemCategory', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'itemName', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], ], ], ], - 'GetCredentials' => [ + 'DeleteCredentials' => [ 'path' => '/openapi/platform/workspaces/{workspaceName}/credentials/{token}', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['delete'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -405,30 +570,19 @@ [ 'name' => 'token', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'workspaceName', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], ], ], - 'ListCredentials' => [ - 'path' => '/openapi/platform/workspaces/{workspaceName}/credentials', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'DeleteExperienceData' => [ + 'path' => '/openapi/platform/workspaces/{workspaceName}/experience-data/{id}', + 'methods' => ['delete'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -437,52 +591,26 @@ 'deprecated' => false, 'parameters' => [ [ - 'name' => 'pageSize', - 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'minimum' => '10', - 'maximum' => '100', - ], - ], - [ - 'name' => 'pageNumber', + 'name' => 'dryRun', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - ], + 'schema' => ['type' => 'boolean', 'required' => false], ], [ - 'name' => 'keyword', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'name' => 'id', + 'in' => 'path', + 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => true], ], [ 'name' => 'workspaceName', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], ], ], - 'GetExperienceData' => [ - 'path' => '/openapi/platform/workspaces/{workspaceName}/experience-data/{id}', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'DeleteFunctionInstance' => [ + 'path' => '/openapi/platform/workspaces/{workspaceName}/functions/{functionName}/instances/{instanceName}', + 'methods' => ['delete'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -491,154 +619,86 @@ 'deprecated' => false, 'parameters' => [ [ - 'name' => 'dryRun', - 'in' => 'query', - 'schema' => [ - 'type' => 'boolean', - 'required' => false, - ], + 'name' => 'workspaceName', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'workspaceName', + 'name' => 'functionName', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'id', + 'name' => 'instanceName', 'in' => 'path', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], ], ], - 'DeleteExperienceData' => [ - 'path' => '/openapi/platform/workspaces/{workspaceName}/experience-data/{id}', - 'methods' => [ - 'delete', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'DeleteOfflineTask' => [ + 'path' => '/openapi/platform/workspaces/{workspaceName}/offline-tasks/{type}/{taskName}', + 'methods' => ['delete'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'dryRun', - 'in' => 'query', - 'schema' => [ - 'type' => 'boolean', - 'required' => false, - ], + 'name' => 'workspaceName', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'id', + 'name' => 'type', 'in' => 'path', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'workspaceName', + 'name' => 'taskName', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'regionId', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], ], ], ], - 'CreateExperienceData' => [ - 'path' => '/openapi/platform/workspaces/{workspaceName}/experience-data', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'DeleteRagEvaluatorTask' => [ + 'path' => '/openapi/platform/workspaces/{workspaceName}/rag-evaluator/v1/api/task/{task_id}', + 'methods' => ['delete'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'dryRun', - 'in' => 'query', - 'schema' => [ - 'type' => 'boolean', - 'required' => false, - ], - ], - [ - 'name' => 'body', - 'in' => 'body', - 'style' => 'json', - 'schema' => [ - 'type' => 'object', - 'required' => false, - 'properties' => [ - 'serviceType' => [ - 'type' => 'string', - 'required' => false, - ], - 'dataType' => [ - 'type' => 'string', - 'required' => false, - ], - 'name' => [ - 'type' => 'string', - 'required' => false, - ], - 'dataValue' => [ - 'type' => 'string', - 'required' => false, - ], - 'dataSize' => [ - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - ], - 'contentType' => [ - 'type' => 'string', - 'required' => false, - ], - ], - ], + 'name' => 'workspaceName', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'workspaceName', + 'name' => 'task_id', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => false], ], ], ], - 'ListExperienceData' => [ - 'path' => '/openapi/platform/workspaces/{workspaceName}/experience-data', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'DeleteWorkspace' => [ + 'path' => '/openapi/platform/workspaces/{workspaceName}', + 'methods' => ['delete'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -647,99 +707,58 @@ 'deprecated' => false, 'parameters' => [ [ - 'name' => 'dryRun', - 'in' => 'query', - 'schema' => [ - 'type' => 'boolean', - 'required' => false, - ], - ], - [ - 'name' => 'serviceType', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], - ], - [ 'name' => 'workspaceName', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], - ], - [ - 'name' => 'dataType', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => true], ], ], ], - 'ListAsyncTasks' => [ - 'path' => '/openapi/platform/workspaces/{workspaceName}/async-tasks', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'DescribeCapability' => [ + 'path' => '/openapi/platform/workspaces/{workspaceName}/capabilities/{itemCategory}/items/{itemName}', + 'methods' => ['get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'dryRun', - 'in' => 'query', - 'schema' => [ - 'type' => 'boolean', - 'required' => false, - ], + 'name' => 'workspaceName', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'workspaceName', + 'name' => 'itemCategory', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'serviceType', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'name' => 'itemName', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], ], + ], + ], + 'DescribeRegions' => [ + 'path' => '/openapi/platform/regions', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], + 'security' => [ [ - 'name' => 'dataId', - 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - ], + 'AK' => [], ], ], + 'deprecated' => false, + 'parameters' => [], ], 'GetAsyncTask' => [ 'path' => '/openapi/platform/workspaces/{workspaceName}/async-tasks/{id}', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -750,150 +769,74 @@ [ 'name' => 'dryRun', 'in' => 'query', - 'schema' => [ - 'type' => 'boolean', - 'required' => false, - ], + 'schema' => ['type' => 'boolean', 'required' => false], ], [ 'name' => 'workspaceName', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'id', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], ], ], - 'CreateAsyncTask' => [ - 'path' => '/openapi/platform/workspaces/{workspaceName}/async-tasks', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'GetCredentials' => [ + 'path' => '/openapi/platform/workspaces/{workspaceName}/credentials/{token}', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'deprecated' => false, 'parameters' => [ [ - 'name' => 'dryRun', - 'in' => 'query', - 'schema' => [ - 'type' => 'boolean', - 'required' => false, - ], + 'name' => 'token', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'workspaceName', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], - ], - [ - 'name' => 'body', - 'in' => 'body', - 'style' => 'json', - 'schema' => [ - 'type' => 'object', - 'required' => false, - 'properties' => [ - 'id' => [ - 'type' => 'string', - 'required' => false, - ], - 'serviceType' => [ - 'type' => 'string', - 'required' => false, - ], - 'serviceId' => [ - 'type' => 'string', - 'required' => false, - ], - 'dataId' => [ - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - ], - 'name' => [ - 'type' => 'string', - 'required' => false, - ], - ], - ], + 'schema' => ['type' => 'string', 'required' => true], ], ], ], - 'ResumeFunctionInstance' => [ - 'path' => '/openapi/platform/workspaces/{workspaceName}/functions/{functionName}/instances/{instanceName}/actions/resume', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'GetExperienceData' => [ + 'path' => '/openapi/platform/workspaces/{workspaceName}/experience-data/{id}', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'workspaceName', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'name' => 'dryRun', + 'in' => 'query', + 'schema' => ['type' => 'boolean', 'required' => false], ], [ - 'name' => 'functionName', + 'name' => 'workspaceName', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'instanceName', + 'name' => 'id', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => true], ], ], ], - 'UpdateFunctionInstance' => [ + 'GetFunctionInstance' => [ 'path' => '/openapi/platform/workspaces/{workspaceName}/functions/{functionName}/instances/{instanceName}', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -904,322 +847,197 @@ [ 'name' => 'workspaceName', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'functionName', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'instanceName', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'Body', - 'in' => 'body', - 'style' => 'json', - 'schema' => [ - 'type' => 'object', - 'required' => false, - 'properties' => [ - 'createParameters' => [ - 'type' => 'array', - 'required' => false, - 'items' => [ - 'type' => 'object', - 'required' => false, - 'properties' => [ - 'name' => [ - 'type' => 'string', - 'required' => false, - ], - 'value' => [ - 'type' => 'string', - 'required' => false, - ], - ], - ], - ], - 'description' => [ - 'type' => 'string', - 'required' => false, - ], - ], - ], + 'name' => 'output', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], ], ], ], - 'ListFunctionInstances' => [ - 'path' => '/openapi/platform/workspaces/{workspaceName}/functions/{functionName}/instances', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'https', - ], + 'GetOfflineTask' => [ + 'path' => '/openapi/platform/workspaces/{workspaceName}/offline-tasks/{type}/{taskName}', + 'methods' => ['get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'workspaceName', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'functionName', + 'name' => 'type', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'modelType', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], - ], - [ - 'name' => 'functionType', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'name' => 'taskName', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'source', + 'name' => 'regionId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], + ], + ], + 'GetRagEvaluatorTask' => [ + 'path' => '/openapi/platform/workspaces/{workspaceName}/rag-evaluator/v1/api/task/{task_id}', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], + 'security' => [ [ - 'name' => 'pageNumber', - 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - ], + 'AK' => [], ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ [ - 'name' => 'pageSize', - 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - ], + 'name' => 'workspaceName', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'output', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'name' => 'task_id', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => false], ], ], ], - 'CeaseFunctionInstance' => [ - 'path' => '/openapi/platform/workspaces/{workspaceName}/functions/{functionName}/instances/{instanceName}/actions/cease', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'GetTableColumns' => [ + 'path' => '/openapi/platform/workspaces/{workspaceName}/data-sources/{dataSourceType}/columns', + 'methods' => ['get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'workspaceName', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'functionName', + 'name' => 'dataSourceType', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'instanceName', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'name' => 'params', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'regionId', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], ], ], ], - 'CreateFunctionInstance' => [ - 'path' => '/openapi/platform/workspaces/{workspaceName}/functions/{functionName}/instances', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'GetTableFields' => [ + 'path' => '/openapi/platform/workspaces/{workspaceName}/data-sources/{dataSourceType}/fields', + 'methods' => ['get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], 'deprecated' => false, 'parameters' => [ [ 'name' => 'workspaceName', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'functionName', + 'name' => 'dataSourceType', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'Body', - 'in' => 'body', - 'style' => 'json', - 'schema' => [ - 'type' => 'object', - 'required' => false, - 'properties' => [ - 'instanceName' => [ - 'type' => 'string', - 'required' => true, - ], - 'modelType' => [ - 'type' => 'string', - 'required' => true, - ], - 'functionType' => [ - 'type' => 'string', - 'required' => false, - ], - 'description' => [ - 'type' => 'string', - 'required' => false, - ], - 'createParameters' => [ - 'type' => 'array', - 'required' => false, - 'items' => [ - 'type' => 'object', - 'required' => false, - 'properties' => [ - 'name' => [ - 'type' => 'string', - 'required' => false, - ], - 'value' => [ - 'type' => 'string', - 'required' => false, - ], - ], - ], - ], - ], - ], + 'name' => 'params', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'rawType', + 'in' => 'query', + 'schema' => ['type' => 'boolean', 'required' => false], + ], + [ + 'name' => 'regionId', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], ], ], ], - 'CreateFunctionTask' => [ - 'path' => '/openapi/platform/workspaces/{workspaceName}/functions/{functionName}/instances/{instanceName}/tasks', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'GetTables' => [ + 'path' => '/openapi/platform/workspaces/{workspaceName}/data-sources/{dataSourceType}/tables', + 'methods' => ['get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'workspaceName', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'functionName', + 'name' => 'dataSourceType', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'instanceName', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'name' => 'params', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'regionId', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], ], ], ], - 'DeleteFunctionInstance' => [ - 'path' => '/openapi/platform/workspaces/{workspaceName}/functions/{functionName}/instances/{instanceName}', - 'methods' => [ - 'delete', - ], - 'schemes' => [ - 'https', - ], + 'GetWorkspace' => [ + 'path' => '/openapi/platform/workspaces/{workspaceName}', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -1230,37 +1048,14 @@ [ 'name' => 'workspaceName', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], - ], - [ - 'name' => 'functionName', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], - ], - [ - 'name' => 'instanceName', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], ], ], - 'GetFunctionInstance' => [ - 'path' => '/openapi/platform/workspaces/{workspaceName}/functions/{functionName}/instances/{instanceName}', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'https', - ], + 'ListAsyncTasks' => [ + 'path' => '/openapi/platform/workspaces/{workspaceName}/async-tasks', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -1269,557 +1064,263 @@ 'deprecated' => false, 'parameters' => [ [ - 'name' => 'workspaceName', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'name' => 'dryRun', + 'in' => 'query', + 'schema' => ['type' => 'boolean', 'required' => false], ], [ - 'name' => 'functionName', + 'name' => 'workspaceName', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'instanceName', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'name' => 'serviceType', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'output', + 'name' => 'dataId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], ], ], ], - 'ListFunctionRestrictions' => [ - 'path' => '/openapi/platform/workspaces/{workspaceName}/functions/{functionName}/restrictions/{restrictionName}', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'https', - ], + 'ListCapabilities' => [ + 'path' => '/openapi/platform/workspaces/{workspaceName}/capabilities/{itemCategory}/items', + 'methods' => ['get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'workspaceName', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'functionName', + 'name' => 'itemCategory', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'restrictionName', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'name' => 'pageNumber', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'modelType', + 'name' => 'pageSize', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'region', + 'name' => 'nextToken', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'source', + 'name' => 'maxResults', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], ], ], ], - 'DeleteRagEvaluatorTask' => [ - 'path' => '/openapi/platform/workspaces/{workspaceName}/rag-evaluator/v1/api/task/{task_id}', - 'methods' => [ - 'delete', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'ListCredentials' => [ + 'path' => '/openapi/platform/workspaces/{workspaceName}/credentials', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'workspaceName', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'name' => 'pageSize', + 'in' => 'query', + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '10', 'maximum' => '100'], ], [ - 'name' => 'task_id', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'name' => 'pageNumber', + 'in' => 'query', + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], ], - ], - ], - 'CreateRagEvaluatorTask' => [ - 'path' => '/openapi/platform/workspaces/{workspaceName}/rag-evaluator/v1/api/task', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ [ - 'AK' => [], + 'name' => 'keyword', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], ], - ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'deprecated' => false, - 'parameters' => [ [ 'name' => 'workspaceName', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], - ], - [ - 'name' => 'body', - 'in' => 'body', - 'style' => 'json', - 'schema' => [ - 'type' => 'object', - 'required' => false, - 'properties' => [ - 'app_name' => [ - 'type' => 'string', - 'required' => false, - ], - 'task_name' => [ - 'type' => 'string', - 'required' => false, - ], - 'data' => [ - 'type' => 'array', - 'required' => false, - 'items' => [ - 'type' => 'object', - 'required' => false, - 'properties' => [ - 'question' => [ - 'type' => 'string', - 'required' => false, - ], - 'standard_answer' => [ - 'type' => 'string', - 'required' => false, - ], - 'recall_docs' => [ - 'type' => 'array', - 'required' => false, - 'items' => [ - 'type' => 'string', - 'required' => false, - ], - ], - 'model_answer' => [ - 'type' => 'string', - 'required' => false, - ], - ], - ], - ], - 'evaluate_config' => [ - 'type' => 'object', - 'required' => false, - 'properties' => [ - 'model' => [ - 'type' => 'string', - 'required' => false, - ], - 'prompt' => [ - 'type' => 'string', - 'required' => false, - ], - 'run_all_step' => [ - 'type' => 'boolean', - 'required' => false, - ], - ], - ], - 'metrics' => [ - 'type' => 'array', - 'required' => false, - 'items' => [ - 'type' => 'any', - 'required' => false, - ], - ], - 'emails' => [ - 'type' => 'array', - 'required' => false, - 'items' => [ - 'type' => 'string', - 'required' => false, - ], - ], - 'has_data_source' => [ - 'type' => 'boolean', - 'required' => false, - ], - 'data_source_config' => [ - 'type' => 'any', - 'required' => false, - ], - ], - ], + 'schema' => ['type' => 'string', 'required' => true], ], ], ], - 'GetRagEvaluatorTask' => [ - 'path' => '/openapi/platform/workspaces/{workspaceName}/rag-evaluator/v1/api/task/{task_id}', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'ListExperienceData' => [ + 'path' => '/openapi/platform/workspaces/{workspaceName}/experience-data', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], 'deprecated' => false, 'parameters' => [ [ + 'name' => 'dryRun', + 'in' => 'query', + 'schema' => ['type' => 'boolean', 'required' => false], + ], + [ + 'name' => 'serviceType', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ 'name' => 'workspaceName', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'task_id', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'name' => 'dataType', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], ], ], ], - 'ListRagEvaluatorTasks' => [ - 'path' => '/openapi/platform/workspaces/{workspaceName}/rag-evaluator/v1/api/tasks', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'ListFunctionInstances' => [ + 'path' => '/openapi/platform/workspaces/{workspaceName}/functions/{functionName}/instances', + 'methods' => ['get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], 'deprecated' => false, 'parameters' => [ [ 'name' => 'workspaceName', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'pageNumber', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'name' => 'functionName', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'pageSize', + 'name' => 'modelType', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], - ], - ], - ], - 'StopOfflineTask' => [ - 'path' => '/openapi/platform/workspaces/{workspaceName}/offline-tasks/{type}/{taskName}/actions/stop', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], - 'security' => [ - [ - 'AK' => [], + 'schema' => ['type' => 'string', 'required' => false], ], - ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'deprecated' => false, - 'parameters' => [ [ - 'name' => 'workspaceName', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'name' => 'functionType', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'type', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'name' => 'source', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'taskName', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'name' => 'pageNumber', + 'in' => 'query', + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], ], [ - 'name' => 'regionId', + 'name' => 'pageSize', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], ], [ - 'name' => 'body', - 'in' => 'body', - 'style' => 'json', - 'schema' => [ - 'type' => 'object', - 'required' => false, - 'properties' => [ - 'timestamp' => [ - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - ], - 'parallelism' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - ], - ], - ], + 'name' => 'output', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], ], ], ], - 'StartOfflineTask' => [ - 'path' => '/openapi/platform/workspaces/{workspaceName}/offline-tasks/{type}/{taskName}/actions/start', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'ListFunctionRestrictions' => [ + 'path' => '/openapi/platform/workspaces/{workspaceName}/functions/{functionName}/restrictions/{restrictionName}', + 'methods' => ['get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'workspaceName', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'type', + 'name' => 'functionName', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'taskName', + 'name' => 'restrictionName', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'regionId', + 'name' => 'modelType', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'body', - 'in' => 'body', - 'style' => 'json', - 'schema' => [ - 'type' => 'object', - 'required' => false, - 'properties' => [ - 'timestamp' => [ - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - ], - 'parallelism' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - ], - ], - ], + 'name' => 'region', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'source', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], ], ], ], 'ListOfflineTask' => [ 'path' => '/openapi/platform/workspaces/{workspaceName}/offline-tasks/{type}', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'workspaceName', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'type', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'taskName', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'taskStatus', @@ -1828,10 +1329,7 @@ 'schema' => [ 'type' => 'array', 'required' => false, - 'items' => [ - 'type' => 'string', - 'required' => false, - ], + 'items' => ['type' => 'string', 'required' => false], ], ], [ @@ -1841,342 +1339,181 @@ 'schema' => [ 'type' => 'array', 'required' => false, - 'items' => [ - 'type' => 'string', - 'required' => false, - ], + 'items' => ['type' => 'string', 'required' => false], ], ], [ 'name' => 'pageNumber', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - ], + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], ], [ 'name' => 'pageSize', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - ], + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], ], [ 'name' => 'regionId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], ], ], - 'ModifyOfflineTask' => [ - 'path' => '/openapi/platform/workspaces/{workspaceName}/offline-tasks/{type}/{taskName}', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'https', - ], + 'ListRagEvaluatorTasks' => [ + 'path' => '/openapi/platform/workspaces/{workspaceName}/rag-evaluator/v1/api/tasks', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'workspaceName', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'type', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'name' => 'pageNumber', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'taskName', + 'name' => 'pageSize', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + ], + ], + 'ListServices' => [ + 'path' => '/openapi/platform/workspaces/{workspaceName}/services', + 'methods' => ['get'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'workspaceName', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'dryRun', + 'name' => 'modelType', 'in' => 'query', - 'schema' => [ - 'type' => 'boolean', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'regionId', + 'name' => 'serviceType', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'body', - 'in' => 'body', - 'style' => 'json', - 'schema' => [ - 'type' => 'object', - 'required' => false, - 'properties' => [ - 'meta' => [ - 'type' => 'object', - 'required' => false, - 'properties' => [ - 'apiKey' => [ - 'type' => 'string', - 'required' => false, - ], - 'regionId' => [ - 'type' => 'string', - 'required' => false, - ], - 'taskName' => [ - 'type' => 'string', - 'required' => false, - ], - 'computeResource' => [ - 'type' => 'string', - 'required' => false, - ], - 'labels' => [ - 'type' => 'array', - 'required' => false, - 'items' => [ - 'type' => 'string', - 'required' => false, - ], - ], - ], - ], - 'source' => [ - 'type' => 'array', - 'required' => false, - 'items' => [ - 'type' => 'object', - 'required' => false, - 'properties' => [ - 'name' => [ - 'type' => 'string', - 'required' => false, - ], - 'type' => [ - 'type' => 'string', - 'required' => false, - ], - 'parameters' => [ - 'type' => 'object', - 'required' => false, - 'additionalProperties' => [ - 'type' => 'string', - ], - ], - 'schema' => [ - 'type' => 'array', - 'required' => false, - 'items' => [ - 'type' => 'object', - 'required' => false, - 'additionalProperties' => [ - 'type' => 'string', - ], - ], - ], - 'primaryKey' => [ - 'type' => 'string', - 'required' => false, - ], - ], - ], - ], - 'sink' => [ - 'type' => 'array', - 'required' => false, - 'items' => [ - 'type' => 'object', - 'required' => false, - 'properties' => [ - 'name' => [ - 'type' => 'string', - 'required' => false, - ], - 'type' => [ - 'type' => 'string', - 'required' => false, - ], - 'parameters' => [ - 'type' => 'object', - 'required' => false, - 'additionalProperties' => [ - 'type' => 'string', - ], - ], - 'schema' => [ - 'type' => 'array', - 'required' => false, - 'items' => [ - 'type' => 'object', - 'required' => false, - 'additionalProperties' => [ - 'type' => 'string', - ], - ], - ], - 'primaryKey' => [ - 'type' => 'string', - 'required' => false, - ], - ], - ], - ], - 'processors' => [ - 'type' => 'array', - 'required' => false, - 'items' => [ - 'type' => 'object', - 'required' => false, - 'properties' => [ - 'name' => [ - 'type' => 'string', - 'required' => false, - ], - 'type' => [ - 'type' => 'string', - 'required' => false, - ], - 'input' => [ - 'type' => 'object', - 'required' => false, - ], - 'parameters' => [ - 'type' => 'object', - 'required' => false, - ], - 'output' => [ - 'type' => 'object', - 'required' => false, - ], - ], - ], - ], - 'parameters' => [ - 'type' => 'object', - 'required' => false, - ], - 'status' => [ - 'type' => 'object', - 'required' => false, - 'properties' => [ - 'status' => [ - 'type' => 'string', - 'required' => false, - ], - 'errorMessage' => [ - 'type' => 'string', - 'required' => false, - ], - 'createTime' => [ - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - ], - 'deleteTime' => [ - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - ], - ], - ], - ], - ], + 'name' => 'serviceId', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'name', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], ], ], ], - 'CreateOfflineTask' => [ - 'path' => '/openapi/platform/workspaces/{workspaceName}/offline-tasks/{type}', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'ListWorkspaces' => [ + 'path' => '/openapi/platform/workspaces', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'pageNumber', + 'in' => 'query', + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], + ], + [ + 'name' => 'pageSize', + 'in' => 'query', + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], + ], + [ + 'name' => 'instanceId', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'name', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'type', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'sortBy', + 'in' => 'query', + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], + ], + [ + 'name' => 'resourceGroupId', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], ], - 'produces' => [ - 'application/json', + ], + 'ModifyOfflineTask' => [ + 'path' => '/openapi/platform/workspaces/{workspaceName}/offline-tasks/{type}/{taskName}', + 'methods' => ['put'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'workspaceName', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'type', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'draft', - 'in' => 'query', - 'schema' => [ - 'type' => 'boolean', - 'required' => false, - ], + 'name' => 'taskName', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'dryRun', 'in' => 'query', - 'schema' => [ - 'type' => 'boolean', - 'required' => false, - ], + 'schema' => ['type' => 'boolean', 'required' => false], ], [ 'name' => 'regionId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'body', @@ -2190,29 +1527,14 @@ 'type' => 'object', 'required' => false, 'properties' => [ - 'apiKey' => [ - 'type' => 'string', - 'required' => false, - ], - 'regionId' => [ - 'type' => 'string', - 'required' => false, - ], - 'taskName' => [ - 'type' => 'string', - 'required' => false, - ], - 'computeResource' => [ - 'type' => 'string', - 'required' => false, - ], + 'apiKey' => ['type' => 'string', 'required' => false], + 'regionId' => ['type' => 'string', 'required' => false], + 'taskName' => ['type' => 'string', 'required' => false], + 'computeResource' => ['type' => 'string', 'required' => false], 'labels' => [ 'type' => 'array', 'required' => false, - 'items' => [ - 'type' => 'string', - 'required' => false, - ], + 'items' => ['type' => 'string', 'required' => false], ], ], ], @@ -2223,20 +1545,12 @@ 'type' => 'object', 'required' => false, 'properties' => [ - 'name' => [ - 'type' => 'string', - 'required' => false, - ], - 'type' => [ - 'type' => 'string', - 'required' => false, - ], + 'name' => ['type' => 'string', 'required' => false], + 'type' => ['type' => 'string', 'required' => false], 'parameters' => [ 'type' => 'object', 'required' => false, - 'additionalProperties' => [ - 'type' => 'string', - ], + 'additionalProperties' => ['type' => 'string'], ], 'schema' => [ 'type' => 'array', @@ -2244,15 +1558,10 @@ 'items' => [ 'type' => 'object', 'required' => false, - 'additionalProperties' => [ - 'type' => 'string', - ], + 'additionalProperties' => ['type' => 'string'], ], ], - 'primaryKey' => [ - 'type' => 'string', - 'required' => false, - ], + 'primaryKey' => ['type' => 'string', 'required' => false], ], ], ], @@ -2263,20 +1572,12 @@ 'type' => 'object', 'required' => false, 'properties' => [ - 'name' => [ - 'type' => 'string', - 'required' => false, - ], - 'type' => [ - 'type' => 'string', - 'required' => false, - ], + 'name' => ['type' => 'string', 'required' => false], + 'type' => ['type' => 'string', 'required' => false], 'parameters' => [ 'type' => 'object', 'required' => false, - 'additionalProperties' => [ - 'type' => 'string', - ], + 'additionalProperties' => ['type' => 'string'], ], 'schema' => [ 'type' => 'array', @@ -2284,15 +1585,10 @@ 'items' => [ 'type' => 'object', 'required' => false, - 'additionalProperties' => [ - 'type' => 'string', - ], + 'additionalProperties' => ['type' => 'string'], ], ], - 'primaryKey' => [ - 'type' => 'string', - 'required' => false, - ], + 'primaryKey' => ['type' => 'string', 'required' => false], ], ], ], @@ -2303,55 +1599,23 @@ 'type' => 'object', 'required' => false, 'properties' => [ - 'name' => [ - 'type' => 'string', - 'required' => false, - ], - 'type' => [ - 'type' => 'string', - 'required' => false, - ], - 'input' => [ - 'type' => 'object', - 'required' => false, - ], - 'parameters' => [ - 'type' => 'object', - 'required' => false, - ], - 'output' => [ - 'type' => 'object', - 'required' => false, - ], + 'name' => ['type' => 'string', 'required' => false], + 'type' => ['type' => 'string', 'required' => false], + 'input' => ['type' => 'object', 'required' => false], + 'parameters' => ['type' => 'object', 'required' => false], + 'output' => ['type' => 'object', 'required' => false], ], ], ], - 'parameters' => [ - 'type' => 'object', - 'required' => false, - ], + 'parameters' => ['type' => 'object', 'required' => false], 'status' => [ 'type' => 'object', 'required' => false, 'properties' => [ - 'status' => [ - 'type' => 'string', - 'required' => false, - ], - 'errorMessage' => [ - 'type' => 'string', - 'required' => false, - ], - 'createTime' => [ - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - ], - 'deleteTime' => [ - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - ], + 'status' => ['type' => 'string', 'required' => false], + 'errorMessage' => ['type' => 'string', 'required' => false], + 'createTime' => ['type' => 'integer', 'format' => 'int64', 'required' => false], + 'deleteTime' => ['type' => 'integer', 'format' => 'int64', 'required' => false], ], ], ], @@ -2359,168 +1623,68 @@ ], ], ], - 'GetOfflineTask' => [ - 'path' => '/openapi/platform/workspaces/{workspaceName}/offline-tasks/{type}/{taskName}', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'https', - ], + 'ResumeFunctionInstance' => [ + 'path' => '/openapi/platform/workspaces/{workspaceName}/functions/{functionName}/instances/{instanceName}/actions/resume', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'workspaceName', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'type', + 'name' => 'functionName', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'taskName', + 'name' => 'instanceName', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], - ], - [ - 'name' => 'regionId', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => true], ], ], ], - 'DeleteOfflineTask' => [ - 'path' => '/openapi/platform/workspaces/{workspaceName}/offline-tasks/{type}/{taskName}', - 'methods' => [ - 'delete', - ], - 'schemes' => [ - 'https', - ], + 'StartOfflineTask' => [ + 'path' => '/openapi/platform/workspaces/{workspaceName}/offline-tasks/{type}/{taskName}/actions/start', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'workspaceName', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'type', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'taskName', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'regionId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], - ], - ], - ], - 'UpdateCapability' => [ - 'path' => '/openapi/platform/workspaces/{workspaceName}/capabilities/{itemCategory}/items/{itemName}', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'https', - ], - 'security' => [ - [ - 'AK' => [], - ], - ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'deprecated' => false, - 'parameters' => [ - [ - 'name' => 'workspaceName', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], - ], - [ - 'name' => 'itemCategory', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], - ], - [ - 'name' => 'itemName', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], - ], - [ - 'name' => 'dryRun', - 'in' => 'query', - 'schema' => [ - 'type' => 'boolean', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'body', @@ -2530,229 +1694,93 @@ 'type' => 'object', 'required' => false, 'properties' => [ - 'itemDesc' => [ - 'type' => 'string', - 'required' => false, - ], - 'itemValue' => [ - 'type' => 'object', - 'required' => false, - ], + 'timestamp' => ['type' => 'integer', 'format' => 'int64', 'required' => false], + 'parallelism' => ['type' => 'integer', 'format' => 'int32', 'required' => false], ], ], ], ], ], - 'ListCapabilities' => [ - 'path' => '/openapi/platform/workspaces/{workspaceName}/capabilities/{itemCategory}/items', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'https', - ], + 'StopOfflineTask' => [ + 'path' => '/openapi/platform/workspaces/{workspaceName}/offline-tasks/{type}/{taskName}/actions/stop', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'workspaceName', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'itemCategory', + 'name' => 'type', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], - ], - [ - 'name' => 'pageNumber', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'pageSize', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'name' => 'taskName', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'nextToken', + 'name' => 'regionId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'maxResults', - 'in' => 'query', + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', + 'type' => 'object', 'required' => false, + 'properties' => [ + 'timestamp' => ['type' => 'integer', 'format' => 'int64', 'required' => false], + 'parallelism' => ['type' => 'integer', 'format' => 'int32', 'required' => false], + ], ], ], ], ], - 'DescribeCapability' => [ - 'path' => '/openapi/platform/workspaces/{workspaceName}/capabilities/{itemCategory}/items/{itemName}', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'https', - ], - 'security' => [ - [ - 'AK' => [], - ], - ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'deprecated' => false, - 'parameters' => [ - [ - 'name' => 'workspaceName', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], - ], - [ - 'name' => 'itemCategory', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], - ], - [ - 'name' => 'itemName', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], - ], - ], - ], - 'DeleteCapability' => [ + 'UpdateCapability' => [ 'path' => '/openapi/platform/workspaces/{workspaceName}/capabilities/{itemCategory}/items/{itemName}', - 'methods' => [ - 'delete', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['put'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'workspaceName', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'itemCategory', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'itemName', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], - ], - ], - ], - 'CreateCapability' => [ - 'path' => '/openapi/platform/workspaces/{workspaceName}/capabilities/{itemCategory}/items', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], - 'security' => [ - [ - 'AK' => [], - ], - ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'deprecated' => false, - 'parameters' => [ - [ - 'name' => 'workspaceName', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], - ], - [ - 'name' => 'itemCategory', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'dryRun', 'in' => 'query', - 'schema' => [ - 'type' => 'boolean', - 'required' => false, - ], + 'schema' => ['type' => 'boolean', 'required' => false], ], [ 'name' => 'body', @@ -2762,31 +1790,17 @@ 'type' => 'object', 'required' => false, 'properties' => [ - 'itemName' => [ - 'type' => 'string', - 'required' => false, - ], - 'itemDesc' => [ - 'type' => 'string', - 'required' => false, - ], - 'itemValue' => [ - 'type' => 'object', - 'required' => false, - ], + 'itemDesc' => ['type' => 'string', 'required' => false], + 'itemValue' => ['type' => 'object', 'required' => false], ], ], ], ], ], - 'GetTableFields' => [ - 'path' => '/openapi/platform/workspaces/{workspaceName}/data-sources/{dataSourceType}/fields', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'https', - ], + 'UpdateCredentials' => [ + 'path' => '/openapi/platform/workspaces/{workspaceName}/credentials/{token}', + 'methods' => ['put'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -2795,246 +1809,120 @@ 'deprecated' => false, 'parameters' => [ [ - 'name' => 'workspaceName', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], - ], - [ - 'name' => 'dataSourceType', + 'name' => 'token', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], - ], - [ - 'name' => 'params', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'rawType', + 'name' => 'dryRun', 'in' => 'query', - 'schema' => [ - 'type' => 'boolean', - 'required' => false, - ], + 'schema' => ['type' => 'boolean', 'required' => false], ], [ - 'name' => 'regionId', - 'in' => 'query', + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', 'schema' => [ - 'type' => 'string', + 'type' => 'object', 'required' => false, + 'properties' => [ + 'enabled' => ['type' => 'boolean', 'required' => false], + ], ], ], - ], - ], - 'DescribeRegions' => [ - 'path' => '/openapi/platform/regions', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ - [ - 'AK' => [], - ], - ], - 'deprecated' => false, - 'parameters' => [], - ], - 'ListServices' => [ - 'path' => '/openapi/platform/workspaces/{workspaceName}/services', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'https', - ], - 'security' => [ - [ - 'AK' => [], - ], - ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'deprecated' => false, - 'parameters' => [ [ 'name' => 'workspaceName', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], - ], - [ - 'name' => 'modelType', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], - ], - [ - 'name' => 'serviceType', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], - ], - [ - 'name' => 'serviceId', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], - ], - [ - 'name' => 'name', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => true], ], ], ], - 'GetTables' => [ - 'path' => '/openapi/platform/workspaces/{workspaceName}/data-sources/{dataSourceType}/tables', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'https', - ], + 'UpdateFunctionInstance' => [ + 'path' => '/openapi/platform/workspaces/{workspaceName}/functions/{functionName}/instances/{instanceName}', + 'methods' => ['put'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], 'deprecated' => false, 'parameters' => [ [ 'name' => 'workspaceName', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'dataSourceType', + 'name' => 'functionName', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'params', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'name' => 'instanceName', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'regionId', - 'in' => 'query', + 'name' => 'Body', + 'in' => 'body', + 'style' => 'json', 'schema' => [ - 'type' => 'string', + 'type' => 'object', 'required' => false, + 'properties' => [ + 'createParameters' => [ + 'type' => 'array', + 'required' => false, + 'items' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'name' => ['type' => 'string', 'required' => false], + 'value' => ['type' => 'string', 'required' => false], + ], + ], + ], + 'description' => ['type' => 'string', 'required' => false], + ], ], ], ], ], - 'GetTableColumns' => [ - 'path' => '/openapi/platform/workspaces/{workspaceName}/data-sources/{dataSourceType}/columns', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'https', - ], + 'UpdateWorkspace' => [ + 'path' => '/openapi/platform/workspaces/{workspaceName}', + 'methods' => ['put'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], 'deprecated' => false, 'parameters' => [ [ 'name' => 'workspaceName', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'dataSourceType', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], - ], - [ - 'name' => 'params', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], - ], - [ - 'name' => 'regionId', - 'in' => 'query', + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', 'schema' => [ - 'type' => 'string', + 'type' => 'object', 'required' => false, + 'properties' => [ + 'description' => ['type' => 'string', 'required' => false], + 'resourceGroupId' => ['type' => 'string', 'required' => false], + ], ], ], ], ], ], 'endpoints' => [ - [ - 'regionId' => 'cn-shanghai', - 'endpoint' => 'searchplat.cn-shanghai.aliyuncs.com', - ], - [ - 'regionId' => 'eu-central-1', - 'endpoint' => 'searchplat.eu-central-1.aliyuncs.com', - ], + ['regionId' => 'cn-shanghai', 'regionName' => '华东2(上海)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'searchplat.cn-shanghai.aliyuncs.com', 'endpoint' => 'searchplat.cn-shanghai.aliyuncs.com', 'vpc' => ''], + ['regionId' => 'eu-central-1', 'regionName' => '德国(法兰克福)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'searchplat.eu-central-1.aliyuncs.com', 'endpoint' => 'searchplat.eu-central-1.aliyuncs.com', 'vpc' => ''], ], ]; diff --git a/data/searchplat/2024-05-29/api-docs.php b/data/searchplat/2024-05-29/api-docs.php index 84fdece..2062175 100644 --- a/data/searchplat/2024-05-29/api-docs.php +++ b/data/searchplat/2024-05-29/api-docs.php @@ -1,50 +1,32 @@ <?php return [ 'version' => '1.0', - 'info' => [ - 'product' => 'Searchplat', - 'version' => '2024-05-29', - ], + 'info' => ['product' => 'Searchplat', 'version' => '2024-05-29'], 'components' => [ 'schemas' => [], ], 'apis' => [ 'GetTextGeneration' => [ 'path' => '/v3/openapi/workspaces/{workspace_name}/text-generation/{service_id}', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'BearerToken' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'workspace_name', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'service_id', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'body', @@ -59,27 +41,15 @@ 'items' => [ 'type' => 'object', 'properties' => [ - 'content' => [ - 'type' => 'string', - ], - 'role' => [ - 'type' => 'string', - ], + 'content' => ['type' => 'string'], + 'role' => ['type' => 'string'], ], ], ], - 'stream' => [ - 'type' => 'boolean', - ], - 'csi_level' => [ - 'type' => 'string', - ], - 'parameters' => [ - 'type' => 'object', - ], - 'enable_search' => [ - 'type' => 'boolean', - ], + 'stream' => ['type' => 'boolean'], + 'csi_level' => ['type' => 'string'], + 'parameters' => ['type' => 'object'], + 'enable_search' => ['type' => 'boolean'], ], ], ], @@ -87,89 +57,56 @@ ], 'GetDocumentAnalyzeTaskStatus' => [ 'path' => '/v3/openapi/workspaces/{workspace_name}/document-analyze/{service_id}/async/task-status', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'BearerToken' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'workspace_name', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'service_id', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'task_id', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], ], ], 'GetDocumentRank' => [ 'path' => '/v3/openapi/workspaces/{workspace_name}/ranker/{service_id}', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'BearerToken' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'workspace_name', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'service_id', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'body', @@ -181,15 +118,9 @@ 'docs' => [ 'type' => 'array', 'required' => true, - 'items' => [ - 'type' => 'string', - 'required' => true, - ], - ], - 'query' => [ - 'type' => 'string', - 'required' => true, + 'items' => ['type' => 'string', 'required' => true], ], + 'query' => ['type' => 'string', 'required' => true], ], ], ], @@ -197,41 +128,26 @@ ], 'GetDocumentSplit' => [ 'path' => '/v3/openapi/workspaces/{workspace_name}/document-split/{service_id}', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'BearerToken' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'workspace_name', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'service_id', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'body', @@ -244,30 +160,17 @@ 'type' => 'object', 'required' => true, 'properties' => [ - 'content' => [ - 'type' => 'string', - ], - 'content_encoding' => [ - 'type' => 'string', - ], - 'content_type' => [ - 'type' => 'string', - ], + 'content' => ['type' => 'string'], + 'content_encoding' => ['type' => 'string'], + 'content_type' => ['type' => 'string'], ], ], 'strategy' => [ 'type' => 'object', 'properties' => [ - 'max_chunk_size' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'compute_type' => [ - 'type' => 'string', - ], - 'need_sentence' => [ - 'type' => 'boolean', - ], + 'max_chunk_size' => ['type' => 'integer', 'format' => 'int64'], + 'compute_type' => ['type' => 'string'], + 'need_sentence' => ['type' => 'boolean'], ], ], ], @@ -277,41 +180,26 @@ ], 'CreateDocumentAnalyzeTask' => [ 'path' => '/v3/openapi/workspaces/{workspace_name}/document-analyze/{service_id}/async', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'BearerToken' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'workspace_name', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'service_id', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'body', @@ -323,26 +211,22 @@ 'document' => [ 'type' => 'object', 'properties' => [ - 'url' => [ - 'type' => 'string', - ], - 'content' => [ - 'type' => 'string', - ], - 'file_name' => [ - 'type' => 'string', - ], - 'file_type' => [ - 'type' => 'string', - ], + 'url' => ['type' => 'string'], + 'content' => ['type' => 'string'], + 'file_name' => ['type' => 'string'], + 'file_type' => ['type' => 'string'], ], ], 'output' => [ 'type' => 'object', 'properties' => [ - 'image_storage' => [ - 'type' => 'string', - ], + 'image_storage' => ['type' => 'string'], + ], + ], + 'strategy' => [ + 'type' => 'object', + 'properties' => [ + 'enable_semantic' => ['type' => 'boolean'], ], ], ], @@ -352,41 +236,26 @@ ], 'GetTextSparseEmbedding' => [ 'path' => '/v3/openapi/workspaces/{workspace_name}/text-sparse-embedding/{service_id}', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'BearerToken' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'workspace_name', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'service_id', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'body', @@ -398,21 +267,14 @@ 'input' => [ 'type' => 'array', 'required' => true, - 'items' => [ - 'type' => 'string', - ], + 'items' => ['type' => 'string'], ], 'input_type' => [ 'type' => 'string', 'required' => false, - 'enum' => [ - 'document', - 'query', - ], - ], - 'return_token' => [ - 'type' => 'boolean', + 'enum' => ['document', 'query'], ], + 'return_token' => ['type' => 'boolean'], ], ], ], @@ -420,41 +282,26 @@ ], 'GetQueryAnalysis' => [ 'path' => '/v3/openapi/workspaces/{workspace_name}/query-analyze/{service_id}', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'BearerToken' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'workspace_name', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'service_id', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'body', @@ -469,30 +316,19 @@ 'items' => [ 'type' => 'object', 'properties' => [ - 'content' => [ - 'type' => 'string', - ], - 'role' => [ - 'type' => 'string', - ], + 'content' => ['type' => 'string'], + 'role' => ['type' => 'string'], ], ], ], - 'query' => [ - 'type' => 'string', - 'required' => true, - ], + 'query' => ['type' => 'string', 'required' => true], 'functions' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'name' => [ - 'type' => 'string', - ], - 'parameters' => [ - 'type' => 'object', - ], + 'name' => ['type' => 'string'], + 'parameters' => ['type' => 'object'], ], ], ], @@ -503,41 +339,26 @@ ], 'CreateImageAnalyzeTask' => [ 'path' => '/v3/openapi/workspaces/{workspace_name}/image-analyze/{service_id}/async', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'BearerToken' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'workspace_name', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'service_id', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'body', @@ -549,18 +370,10 @@ 'document' => [ 'type' => 'object', 'properties' => [ - 'url' => [ - 'type' => 'string', - ], - 'content' => [ - 'type' => 'string', - ], - 'file_name' => [ - 'type' => 'string', - ], - 'file_type' => [ - 'type' => 'string', - ], + 'url' => ['type' => 'string'], + 'content' => ['type' => 'string'], + 'file_name' => ['type' => 'string'], + 'file_type' => ['type' => 'string'], ], ], ], @@ -570,90 +383,152 @@ ], 'GetImageAnalyzeTaskStatus' => [ 'path' => '/v3/openapi/workspaces/{workspace_name}/image-analyze/{service_id}/async/task-status', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'BearerToken' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'workspace_name', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'service_id', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'task_id', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], ], ], 'GetTextEmbedding' => [ 'path' => '/v3/openapi/workspaces/{workspace_name}/text-embedding/{service_id}', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'BearerToken' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'workspace_name', 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'service_id', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', 'schema' => [ - 'type' => 'string', - 'required' => true, + 'type' => 'object', + 'properties' => [ + 'input' => [ + 'type' => 'array', + 'required' => true, + 'items' => ['type' => 'string'], + ], + 'input_type' => [ + 'type' => 'string', + 'required' => false, + 'enum' => ['document', 'query'], + ], + ], ], ], + ], + ], + 'GetWebSearch' => [ + 'path' => '/v3/openapi/workspaces/{workspace_name}/web-search/{service_id}', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'BearerToken' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'workspace_name', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], [ 'name' => 'service_id', 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', 'schema' => [ - 'type' => 'string', - 'required' => true, + 'type' => 'object', + 'properties' => [ + 'query' => ['type' => 'string', 'required' => true], + 'way' => ['type' => 'string'], + 'top_k' => ['type' => 'integer', 'format' => 'int64'], + 'query_rewrite' => ['type' => 'boolean'], + 'content_type' => ['type' => 'string'], + 'history' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'role' => ['type' => 'string'], + 'content' => ['type' => 'string'], + ], + ], + ], + ], ], ], + ], + ], + 'GetEmbeddingTuning' => [ + 'path' => '/v3/openapi/workspaces/{workspace_name}/embedding-tuning/{service_id}', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'BearerToken' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'workspace_name', + 'in' => 'path', + 'schema' => ['type' => 'string'], + ], + [ + 'name' => 'service_id', + 'in' => 'path', + 'schema' => ['type' => 'string'], + ], [ 'name' => 'body', 'in' => 'body', @@ -663,62 +538,293 @@ 'properties' => [ 'input' => [ 'type' => 'array', - 'required' => true, 'items' => [ - 'type' => 'string', + 'type' => 'array', + 'items' => ['type' => 'number', 'format' => 'float'], ], ], - 'input_type' => [ - 'type' => 'string', - 'required' => false, - 'enum' => [ - 'document', - 'query', + 'parameters' => ['type' => 'object'], + ], + ], + ], + ], + ], + 'GetPrediction' => [ + 'path' => '/v3/openapi/deployments/{deployment_id}/predict', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'BearerToken' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => [], + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'deployment_id', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'schema' => ['type' => 'string'], + ], + [ + 'name' => 'Token', + 'in' => 'header', + 'schema' => ['type' => 'string'], + ], + ], + ], + 'CreateAudioAsrTask' => [ + 'path' => '/v3/openapi/workspaces/{workspace_name}/audio-asr/{service_id}/async', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'BearerToken' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'workspace_name', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'service_id', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'input' => [ + 'type' => 'object', + 'properties' => [ + 'content' => ['type' => 'string'], + 'file_name' => ['type' => 'string'], + 'oss' => ['type' => 'string'], + 'url' => ['type' => 'string'], ], ], + 'output' => [ + 'type' => 'object', + 'properties' => [ + 'type' => ['type' => 'string'], + 'oss' => ['type' => 'string'], + ], + ], + 'parameters' => ['type' => 'object'], ], ], ], ], ], - 'GetWebSearch' => [ - 'path' => '/v3/openapi/workspaces/{workspace_name}/web-search/{service_id}', - 'methods' => [ - 'post', + 'CreateVideoSnapshotTask' => [ + 'path' => '/v3/openapi/workspaces/{workspace_name}/video-snapshot/{service_id}/async', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'BearerToken' => [], + ], ], - 'schemes' => [ - 'http', - 'https', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'workspace_name', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'service_id', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'input' => [ + 'type' => 'object', + 'properties' => [ + 'content' => ['type' => 'string'], + 'file_name' => ['type' => 'string'], + 'oss' => ['type' => 'string'], + 'url' => ['type' => 'string'], + ], + ], + 'output' => [ + 'type' => 'object', + 'properties' => [ + 'type' => ['type' => 'string'], + 'oss' => ['type' => 'string'], + ], + ], + 'parameters' => ['type' => 'object'], + ], + ], + ], ], + ], + 'GetAudioAsrTaskStatus' => [ + 'path' => '/v3/openapi/workspaces/{workspace_name}/audio-asr/{service_id}/async/task-status', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'BearerToken' => [], ], ], - 'consumes' => [ - 'application/json', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'workspace_name', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'service_id', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'task_id', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => true], + ], ], - 'produces' => [ - 'application/json', + ], + 'GetImageObjectDetection' => [ + 'path' => '/v3/openapi/workspaces/{workspace_name}/image-object-detection/{service_id}', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'BearerToken' => [], + ], ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'workspace_name', 'in' => 'path', + 'schema' => ['type' => 'string'], + ], + [ + 'name' => 'service_id', + 'in' => 'path', + 'schema' => ['type' => 'string'], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', 'schema' => [ - 'type' => 'string', - 'required' => true, + 'type' => 'object', + 'properties' => [ + 'image' => [ + 'type' => 'object', + 'properties' => [ + 'url' => ['type' => 'string'], + 'content' => ['type' => 'string'], + ], + ], + 'options' => ['type' => 'object'], + ], ], ], + ], + ], + 'GetMultiModalEmbedding' => [ + 'path' => '/v3/openapi/workspaces/{workspace_name}/multi-modal-embedding/{service_id}', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'BearerToken' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'workspace_name', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], [ 'name' => 'service_id', 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', 'schema' => [ - 'type' => 'string', - 'required' => true, + 'type' => 'object', + 'properties' => [ + 'input' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'text' => ['type' => 'string'], + 'image' => ['type' => 'string'], + ], + ], + ], + 'options' => ['type' => 'object'], + ], ], ], + ], + ], + 'GetMultiModalReranker' => [ + 'path' => '/v3/openapi/workspaces/{workspace_name}/multi-modal-reranker/{service_id}', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'BearerToken' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'workspace_name', + 'in' => 'path', + 'schema' => ['type' => 'string'], + ], + [ + 'name' => 'service_id', + 'in' => 'path', + 'schema' => ['type' => 'string'], + ], [ 'name' => 'body', 'in' => 'body', @@ -727,135 +833,680 @@ 'type' => 'object', 'properties' => [ 'query' => [ - 'type' => 'string', - 'required' => true, - ], - 'way' => [ - 'type' => 'string', + 'type' => 'object', + 'properties' => [ + 'text' => ['type' => 'string'], + 'image' => ['type' => 'string'], + ], ], - 'top_k' => [ - 'type' => 'integer', - 'format' => 'int64', + 'docs' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'text' => ['type' => 'string'], + 'image' => ['type' => 'string'], + ], + ], ], + 'options' => ['type' => 'object'], ], ], ], ], ], - 'GetEmbeddingTuning' => [ - 'path' => '/v3/openapi/workspaces/{workspace_name}/embedding-tuning/{service_id}', - 'methods' => [ - 'post', + 'GetVideoSnapshotTaskStatus' => [ + 'path' => '/v3/openapi/workspaces/{workspace_name}/video-snapshot/{service_id}/async/task-status', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'BearerToken' => [], + ], ], - 'schemes' => [ - 'http', - 'https', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'workspace_name', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'service_id', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'task_id', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => true], + ], ], + ], + 'GetVideoSegmentationTaskStatus' => [ + 'path' => '/v3/openapi/workspaces/{workspace_name}/video-segmentation/{service_id}/async/task-status', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'BearerToken' => [], ], ], - 'consumes' => [ - 'application/json', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'workspace_name', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'service_id', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'task_id', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => true], + ], ], - 'produces' => [ - 'application/json', + ], + 'GetVideoSummarizationTaskStatus' => [ + 'path' => '/v3/openapi/workspaces/{workspace_name}/video-summarization/{service_id}/async/task-status', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'BearerToken' => [], + ], ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'workspace_name', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - ], + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'service_id', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'task_id', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => true], + ], + ], + ], + 'CreateVideoSegmentationTask' => [ + 'path' => '/v3/openapi/workspaces/{workspace_name}/video-segmentation/{service_id}/async', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'BearerToken' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'workspace_name', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'service_id', 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', 'schema' => [ - 'type' => 'string', + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'input' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'file_name' => ['type' => 'string', 'required' => false], + 'oss' => ['type' => 'string', 'required' => false], + 'url' => ['type' => 'string', 'required' => false], + ], + ], + 'output' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'type' => ['type' => 'string', 'required' => false], + 'oss' => ['type' => 'string', 'required' => false], + ], + ], + 'parameters' => ['type' => 'object', 'required' => false], + ], ], ], + ], + ], + 'CreateVideoSummarizationTask' => [ + 'path' => '/v3/openapi/workspaces/{workspace_name}/video-summarization/{service_id}/async', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'BearerToken' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'workspace_name', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'service_id', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], [ 'name' => 'body', 'in' => 'body', 'style' => 'json', 'schema' => [ 'type' => 'object', + 'required' => false, 'properties' => [ 'input' => [ - 'type' => 'array', - 'items' => [ - 'type' => 'array', - 'items' => [ - 'type' => 'number', - 'format' => 'float', + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'file_name' => ['type' => 'string', 'required' => false], + 'oss' => ['type' => 'string', 'required' => false], + 'url' => ['type' => 'string', 'required' => false], + 'chunks' => [ + 'type' => 'array', + 'required' => false, + 'items' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'start_time' => ['type' => 'number', 'format' => 'float', 'required' => false], + 'end_time' => ['type' => 'number', 'format' => 'float', 'required' => false], + 'transcript' => ['type' => 'string', 'required' => false], + 'snapshots' => [ + 'type' => 'array', + 'required' => false, + 'items' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'frame_index' => ['type' => 'integer', 'format' => 'int32', 'required' => false], + 'path' => ['type' => 'string', 'required' => false], + 'frame_time' => ['type' => 'number', 'format' => 'float', 'required' => false], + ], + ], + ], + ], + ], ], ], ], - 'parameters' => [ + 'output' => [ 'type' => 'object', + 'required' => false, + 'properties' => [ + 'type' => ['type' => 'string', 'required' => false], + 'oss' => ['type' => 'string', 'required' => false], + ], ], + 'parameters' => ['type' => 'object', 'required' => false], ], ], ], ], ], - 'GetPrediction' => [ - 'path' => '/v3/openapi/deployments/{deployment_id}/predict', - 'methods' => [ - 'post', + 'UpdateMemorySkill' => [ + 'path' => '/v3/openapi/workspaces/{workspace_name}/memory/{service_id}/skills/{skill_id}', + 'methods' => ['put'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'BearerToken' => [], + ], ], - 'schemes' => [ - 'http', - 'https', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'workspace_name', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'service_id', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'skill_id', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'name' => ['type' => 'string'], + 'version' => ['type' => 'string'], + 'files' => [ + 'type' => 'object', + 'additionalProperties' => ['type' => 'string'], + ], + 'user_id' => ['type' => 'string'], + 'agent_id' => ['type' => 'string'], + ], + ], + ], ], + ], + 'CreateMemorySkill' => [ + 'path' => '/v3/openapi/workspaces/{workspace_name}/memory/{service_id}/skills', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'BearerToken' => [], ], ], - 'consumes' => [ - 'application/json', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'workspace_name', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'service_id', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'zip_base64' => ['type' => 'string'], + 'user_id' => ['type' => 'string'], + 'agent_id' => ['type' => 'string'], + ], + ], + ], ], - 'produces' => [], + ], + 'SearchMemory' => [ + 'path' => '/v3/openapi/workspaces/{workspace_name}/memory/{service_id}/search', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'BearerToken' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'deployment_id', + 'name' => 'workspace_name', 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'service_id', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', 'schema' => [ - 'type' => 'string', - 'required' => true, + 'type' => 'object', + 'properties' => [ + 'query' => ['type' => 'string', 'required' => true], + 'user_id' => ['type' => 'string'], + 'agent_id' => ['type' => 'string'], + 'run_id' => ['type' => 'string'], + 'size' => ['type' => 'integer', 'format' => 'int32'], + 'enhancements' => [ + 'type' => 'object', + 'additionalProperties' => ['type' => 'any'], + ], + ], ], ], + ], + ], + 'DeleteMemory' => [ + 'path' => '/v3/openapi/workspaces/{workspace_name}/memory/{service_id}/memories/{memory_id}', + 'methods' => ['delete'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'BearerToken' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'workspace_name', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'service_id', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'memory_id', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + ], + ], + 'GetMemory' => [ + 'path' => '/v3/openapi/workspaces/{workspace_name}/memory/{service_id}/memories/{memory_id}', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'BearerToken' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'workspace_name', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'service_id', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'memory_id', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + ], + ], + 'GetMemoryTask' => [ + 'path' => '/v3/openapi/workspaces/{workspace_name}/memory/{service_id}/tasks/{task_id}', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'BearerToken' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'workspace_name', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'service_id', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'task_id', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + ], + ], + 'GetMemoryHealth' => [ + 'path' => '/v3/openapi/workspaces/{workspace_name}/memory/{service_id}/health', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'BearerToken' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'workspace_name', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'service_id', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + ], + ], + 'CreateMemory' => [ + 'path' => '/v3/openapi/workspaces/{workspace_name}/memory/{service_id}/memories', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'BearerToken' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'workspace_name', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'service_id', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'messages' => ['type' => 'any'], + 'user_id' => ['type' => 'string'], + 'agent_id' => ['type' => 'string'], + 'run_id' => ['type' => 'string'], + 'enhancements' => [ + 'type' => 'object', + 'additionalProperties' => ['type' => 'any'], + ], + ], + ], + ], + ], + ], + 'UpdateMemory' => [ + 'path' => '/v3/openapi/workspaces/{workspace_name}/memory/{service_id}/memories/{memory_id}', + 'methods' => ['put'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'BearerToken' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'workspace_name', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'service_id', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'memory_id', + 'in' => 'path', + 'schema' => ['type' => 'string'], + ], [ 'name' => 'body', 'in' => 'body', + 'style' => 'json', 'schema' => [ - 'type' => 'string', + 'type' => 'object', + 'properties' => [ + 'memory' => ['type' => 'string'], + ], ], ], + ], + ], + 'GetMemorySkill' => [ + 'path' => '/v3/openapi/workspaces/{workspace_name}/memory/{service_id}/skills/{skill_id}', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], + 'security' => [ [ - 'name' => 'Token', - 'in' => 'header', + 'BearerToken' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'workspace_name', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'service_id', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'skill_id', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + ], + ], + 'DeleteMemorySkill' => [ + 'path' => '/v3/openapi/workspaces/{workspace_name}/memory/{service_id}/skills/{skill_id}', + 'methods' => ['delete'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'BearerToken' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'workspace_name', + 'in' => 'path', + 'schema' => ['type' => 'string'], + ], + [ + 'name' => 'service_id', + 'in' => 'path', + 'schema' => ['type' => 'string'], + ], + [ + 'name' => 'skill_id', + 'in' => 'path', + 'schema' => ['type' => 'string'], + ], + ], + ], + 'GetJinaAiReader' => [ + 'path' => '/v3/openapi/workspaces/{workspace_name}/jina-ai-reader/{service_id}', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'BearerToken' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'workspace_name', + 'in' => 'path', + 'schema' => ['type' => 'string'], + ], + [ + 'name' => 'service_id', + 'in' => 'path', + 'schema' => ['type' => 'string'], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', 'schema' => [ - 'type' => 'string', + 'type' => 'object', + 'properties' => [ + 'url' => ['type' => 'string'], + ], ], ], ], ], ], 'endpoints' => [ - [ - 'regionId' => 'cn-shanghai', - 'endpoint' => 'searchplat.cn-shanghai.aliyuncs.com', - ], - [ - 'regionId' => 'eu-central-1', - 'endpoint' => 'searchplat.eu-central-1.aliyuncs.com', - ], + ['regionId' => 'cn-shanghai', 'endpoint' => 'searchplat.cn-shanghai.aliyuncs.com'], + ['regionId' => 'eu-central-1', 'endpoint' => 'searchplat.eu-central-1.aliyuncs.com'], ], ]; |
