diff options
Diffstat (limited to 'data/aisearchengine/2026-04-17/api-docs.php')
| -rw-r--r-- | data/aisearchengine/2026-04-17/api-docs.php | 198 |
1 files changed, 198 insertions, 0 deletions
diff --git a/data/aisearchengine/2026-04-17/api-docs.php b/data/aisearchengine/2026-04-17/api-docs.php new file mode 100644 index 0000000..176e23d --- /dev/null +++ b/data/aisearchengine/2026-04-17/api-docs.php @@ -0,0 +1,198 @@ +<?php return [ + 'version' => '1.0', + 'info' => ['style' => 'ROA', 'product' => 'AiSearchEngine', 'version' => '2026-04-17'], + 'components' => [ + 'schemas' => [], + ], + 'apis' => [ + 'EngineSearch' => [ + 'path' => '/api/v1/platform/app/search', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + [ + 'ApiKey' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'appId' => ['type' => 'string', 'required' => true], + 'sessionId' => ['type' => 'string', 'required' => false], + 'query' => [ + 'type' => 'object', + 'required' => true, + 'properties' => [ + 'texts' => [ + 'type' => 'array', + 'required' => false, + 'items' => ['type' => 'string', 'required' => false], + ], + 'imageUrls' => [ + 'type' => 'array', + 'required' => false, + 'items' => ['type' => 'string', 'required' => false], + ], + 'pageSize' => ['type' => 'integer', 'format' => 'int32', 'required' => false], + 'pageNo' => ['type' => 'integer', 'format' => 'int32', 'required' => false], + 'excludeIds' => [ + 'type' => 'array', + 'required' => false, + 'items' => ['type' => 'string', 'required' => false], + ], + ], + ], + 'grey' => ['type' => 'boolean', 'required' => false], + 'user' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'userId' => ['type' => 'string', 'required' => false], + ], + ], + ], + ], + ], + ], + ], + 'GetDatasetResourceUrl' => [ + 'path' => '/api/v1/dataset/open/resources', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + [ + 'ApiKey' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'datasetId' => ['type' => 'string', 'format' => 'int64', 'required' => true], + 'primaryKey' => ['type' => 'string', 'required' => true], + ], + ], + ], + ], + ], + 'ImportDatasetData' => [ + 'path' => '/api/v1/dataset/open/upsert', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + [ + 'ApiKey' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'datasetId' => ['type' => 'string', 'format' => 'int64', 'required' => true], + 'records' => [ + 'type' => 'array', + 'required' => true, + 'items' => [ + 'type' => 'object', + 'required' => false, + 'additionalProperties' => ['type' => 'any'], + ], + ], + ], + ], + ], + ], + ], + 'QaChat' => [ + 'path' => '/api/v1/platform/app/chat', + 'methods' => ['post'], + 'schemes' => ['https', 'sse'], + 'security' => [ + [ + 'AK' => [], + ], + [ + 'ApiKey' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['text/event-stream', 'application/json'], + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'appId' => ['type' => 'string', 'required' => true], + 'sessionId' => ['type' => 'string', 'required' => false], + 'message' => [ + 'type' => 'object', + 'required' => true, + 'properties' => [ + 'role' => ['type' => 'string', 'required' => false], + 'parts' => [ + 'type' => 'array', + 'required' => false, + 'items' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'type' => ['type' => 'string', 'required' => false], + 'text' => ['type' => 'string', 'required' => false], + 'url' => ['type' => 'string', 'required' => false], + 'mediaType' => ['type' => 'string', 'required' => false], + 'data' => ['type' => 'any', 'required' => false], + ], + ], + ], + ], + ], + 'options' => ['type' => 'object', 'required' => false], + ], + ], + ], + ], + ], + ], + 'endpoints' => [ + ['regionId' => 'cn-hangzhou', 'regionName' => '华东1(杭州)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'aisearchengine.aliyuncs.com', 'endpoint' => 'aisearchengine.aliyuncs.com', 'vpc' => ''], + ], +]; |
