From 1c7f908ce09f98fdcbf79ed2a8ae21be60eaa634 Mon Sep 17 00:00:00 2001 From: Zhineng Li Date: Sun, 12 Jul 2026 17:11:17 +0800 Subject: update APIs 20260712 --- data/en_us/searchplat/2024-05-29/api-docs.php | 2833 +++++++++++++++++-------- 1 file changed, 1992 insertions(+), 841 deletions(-) (limited to 'data/en_us/searchplat/2024-05-29') diff --git a/data/en_us/searchplat/2024-05-29/api-docs.php b/data/en_us/searchplat/2024-05-29/api-docs.php index 1da81e1..3c56ca1 100644 --- a/data/en_us/searchplat/2024-05-29/api-docs.php +++ b/data/en_us/searchplat/2024-05-29/api-docs.php @@ -1,29 +1,32 @@ '1.0', - 'info' => [ - 'product' => 'Searchplat', - 'version' => '2024-05-29', - ], + 'info' => ['product' => 'Searchplat', 'version' => '2024-05-29'], 'directories' => [ + 'GetTextGeneration', + 'GetDocumentAnalyzeTaskStatus', + 'GetDocumentRank', + 'GetDocumentSplit', + 'CreateDocumentAnalyzeTask', + 'GetTextSparseEmbedding', + 'GetQueryAnalysis', + 'CreateImageAnalyzeTask', + 'GetImageAnalyzeTaskStatus', + 'GetTextEmbedding', + 'GetWebSearch', + 'GetEmbeddingTuning', + 'GetPrediction', + 'CreateAudioAsrTask', + 'CreateVideoSnapshotTask', + 'GetAudioAsrTaskStatus', + 'GetImageObjectDetection', + 'GetMultiModalEmbedding', + 'GetMultiModalReranker', + 'GetVideoSnapshotTaskStatus', [ 'id' => 0, 'title' => '其它', 'type' => 'directory', - 'children' => [ - 'GetTextGeneration', - 'GetDocumentAnalyzeTaskStatus', - 'GetDocumentRank', - 'GetDocumentSplit', - 'CreateDocumentAnalyzeTask', - 'GetTextSparseEmbedding', - 'GetQueryAnalysis', - 'CreateImageAnalyzeTask', - 'GetImageAnalyzeTaskStatus', - 'GetTextEmbedding', - 'GetWebSearch', - 'GetEmbeddingTuning', - 'GetPrediction', - ], + 'children' => ['GetVideoSegmentationTaskStatus', 'GetVideoSummarizationTaskStatus', 'CreateVideoSegmentationTask', 'CreateVideoSummarizationTask', 'UpdateMemorySkill', 'CreateMemorySkill', 'SearchMemory', 'DeleteMemory', 'GetMemory', 'GetMemoryTask', 'GetMemoryHealth', 'CreateMemory', 'UpdateMemory', 'GetMemorySkill', 'DeleteMemorySkill', 'GetJinaAiReader'], ], ], 'components' => [ @@ -33,47 +36,28 @@ 'GetTextGeneration' => [ 'summary' => '大模型问答', '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'], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'none', - 'riskType' => 'none', - 'chargeType' => 'paid', - ], + 'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'paid'], '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', @@ -87,28 +71,16 @@ 'items' => [ 'type' => 'object', 'properties' => [ - 'content' => [ - 'type' => 'string', - ], - 'role' => [ - 'type' => 'string', - ], + 'content' => ['type' => 'string'], + 'role' => ['type' => 'string'], ], ], 'required' => true, ], - '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'], ], ], ], @@ -118,47 +90,27 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'request_id' => [ - 'type' => 'string', - ], - 'latency' => [ - 'type' => 'integer', - 'format' => 'int32', - ], + 'request_id' => ['type' => 'string'], + 'latency' => ['type' => 'integer', 'format' => 'int32'], 'usage' => [ 'type' => 'object', 'properties' => [ - 'output_tokens' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'input_tokens' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'total_tokens' => [ - 'type' => 'integer', - 'format' => 'int64', - ], + 'output_tokens' => ['type' => 'integer', 'format' => 'int64'], + 'input_tokens' => ['type' => 'integer', 'format' => 'int64'], + 'total_tokens' => ['type' => 'integer', 'format' => 'int64'], ], ], 'result' => [ 'type' => 'object', 'properties' => [ - 'text' => [ - 'type' => 'string', - ], + 'text' => ['type' => 'string'], 'search_results' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'title' => [ - 'type' => 'string', - ], - 'url' => [ - 'type' => 'string', - ], + 'title' => ['type' => 'string'], + 'url' => ['type' => 'string'], ], ], ], @@ -173,55 +125,33 @@ 'GetDocumentAnalyzeTaskStatus' => [ 'summary' => '获取文档解析异步提取任务状态', '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'], 'operationType' => 'write', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'none', - 'riskType' => 'none', - 'chargeType' => 'paid', - ], + 'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'paid'], '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], ], ], 'responses' => [ @@ -229,28 +159,15 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'request_id' => [ - 'type' => 'string', - ], - 'latency' => [ - 'type' => 'integer', - 'format' => 'int32', - ], + 'request_id' => ['type' => 'string'], + 'latency' => ['type' => 'integer', 'format' => 'int32'], 'usage' => [ 'type' => 'object', 'properties' => [ - 'image_count' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'table_count' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'token_count' => [ - 'type' => 'integer', - 'format' => 'int64', - ], + 'image_count' => ['type' => 'integer', 'format' => 'int64'], + 'table_count' => ['type' => 'integer', 'format' => 'int64'], + 'token_count' => ['type' => 'integer', 'format' => 'int64'], + 'semantic_token_count' => ['type' => 'integer', 'format' => 'int64'], ], ], 'result' => [ @@ -259,82 +176,52 @@ 'data' => [ 'type' => 'object', 'properties' => [ - 'content' => [ - 'type' => 'string', - ], - 'content_type' => [ - 'type' => 'string', - ], - 'page_num' => [ - 'type' => 'integer', - 'format' => 'int32', + 'content' => ['type' => 'string'], + 'content_type' => ['type' => 'string'], + 'page_num' => ['type' => 'integer', 'format' => 'int32'], + 'pages' => [ + 'type' => 'array', + 'items' => ['type' => 'string'], ], ], ], - 'status' => [ - 'type' => 'string', - ], - 'task_id' => [ - 'type' => 'string', - ], - 'error' => [ - 'type' => 'string', - ], + 'status' => ['type' => 'string'], + 'task_id' => ['type' => 'string'], + 'error' => ['type' => 'string'], ], ], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], + 'staticInfo' => ['returnType' => 'synchronous'], 'responseDemo' => null, ], 'GetDocumentRank' => [ 'summary' => '文档相关性打分', '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'], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'none', - 'riskType' => 'none', - 'chargeType' => 'paid', - ], + 'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'paid'], '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', @@ -345,16 +232,10 @@ 'properties' => [ 'docs' => [ 'type' => 'array', - 'items' => [ - 'type' => 'string', - 'required' => true, - ], - 'required' => true, - ], - 'query' => [ - 'type' => 'string', + 'items' => ['type' => 'string', 'required' => true], 'required' => true, ], + 'query' => ['type' => 'string', 'required' => true], ], ], ], @@ -364,20 +245,12 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'request_id' => [ - 'type' => 'string', - ], - 'latency' => [ - 'type' => 'integer', - 'format' => 'int32', - ], + 'request_id' => ['type' => 'string'], + 'latency' => ['type' => 'integer', 'format' => 'int32'], 'usage' => [ 'type' => 'object', 'properties' => [ - 'doc_count' => [ - 'type' => 'integer', - 'format' => 'int64', - ], + 'doc_count' => ['type' => 'integer', 'format' => 'int64'], ], ], 'result' => [ @@ -388,14 +261,8 @@ 'items' => [ 'type' => 'object', 'properties' => [ - 'index' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'score' => [ - 'type' => 'number', - 'format' => 'double', - ], + 'index' => ['type' => 'integer', 'format' => 'int32'], + 'score' => ['type' => 'number', 'format' => 'double'], ], ], ], @@ -405,54 +272,33 @@ ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], + 'staticInfo' => ['returnType' => 'synchronous'], ], 'GetDocumentSplit' => [ 'summary' => '文档切片', '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'], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'none', - 'riskType' => 'none', - 'chargeType' => 'paid', - ], + 'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'paid'], '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', @@ -464,31 +310,18 @@ 'document' => [ 'type' => 'object', 'properties' => [ - 'content' => [ - 'type' => 'string', - ], - 'content_encoding' => [ - 'type' => 'string', - ], - 'content_type' => [ - 'type' => 'string', - ], + 'content' => ['type' => 'string'], + 'content_encoding' => ['type' => 'string'], + 'content_type' => ['type' => 'string'], ], 'required' => true, ], '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'], ], ], ], @@ -500,20 +333,12 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'request_id' => [ - 'type' => 'string', - ], - 'latency' => [ - 'type' => 'integer', - 'format' => 'int32', - ], + 'request_id' => ['type' => 'string'], + 'latency' => ['type' => 'integer', 'format' => 'int32'], 'usage' => [ 'type' => 'object', 'properties' => [ - 'token_count' => [ - 'type' => 'integer', - 'format' => 'int64', - ], + 'token_count' => ['type' => 'integer', 'format' => 'int64'], ], ], 'result' => [ @@ -524,14 +349,10 @@ 'items' => [ 'type' => 'object', 'properties' => [ - 'content' => [ - 'type' => 'string', - ], + 'content' => ['type' => 'string'], 'meta' => [ 'type' => 'object', - 'additionalProperties' => [ - 'type' => 'string', - ], + 'additionalProperties' => ['type' => 'string'], ], ], ], @@ -541,14 +362,10 @@ 'items' => [ 'type' => 'object', 'properties' => [ - 'content' => [ - 'type' => 'string', - ], + 'content' => ['type' => 'string'], 'meta' => [ 'type' => 'object', - 'additionalProperties' => [ - 'type' => 'string', - ], + 'additionalProperties' => ['type' => 'string'], ], ], ], @@ -557,9 +374,7 @@ 'type' => 'array', 'items' => [ 'type' => 'object', - 'additionalProperties' => [ - 'type' => 'string', - ], + 'additionalProperties' => ['type' => 'string'], ], ], 'sentences' => [ @@ -567,14 +382,10 @@ 'items' => [ 'type' => 'object', 'properties' => [ - 'content' => [ - 'type' => 'string', - ], + 'content' => ['type' => 'string'], 'meta' => [ 'type' => 'object', - 'additionalProperties' => [ - 'type' => 'string', - ], + 'additionalProperties' => ['type' => 'string'], ], ], ], @@ -585,55 +396,34 @@ ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], + 'staticInfo' => ['returnType' => 'synchronous'], 'responseDemo' => null, ], 'CreateDocumentAnalyzeTask' => [ 'summary' => '创建文档解析异步提取任务', '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'], 'operationType' => 'write', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'none', - 'riskType' => 'none', - 'chargeType' => 'paid', - ], + 'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'paid'], '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', @@ -645,26 +435,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'], ], ], ], @@ -676,74 +462,46 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'request_id' => [ - 'type' => 'string', - ], - 'latency' => [ - 'type' => 'integer', - 'format' => 'int32', - ], + 'request_id' => ['type' => 'string'], + 'latency' => ['type' => 'integer', 'format' => 'int32'], 'result' => [ 'type' => 'object', 'properties' => [ - 'task_id' => [ - 'type' => 'string', - ], + 'task_id' => ['type' => 'string'], ], ], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], + 'staticInfo' => ['returnType' => 'synchronous'], 'responseDemo' => null, ], 'GetTextSparseEmbedding' => [ 'summary' => '文本稀疏向量化', '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'], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'none', - 'riskType' => 'none', - 'chargeType' => 'paid', - ], + 'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'paid'], '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', @@ -754,9 +512,7 @@ 'properties' => [ 'input' => [ 'type' => 'array', - 'items' => [ - 'type' => 'string', - ], + 'items' => ['type' => 'string'], 'required' => true, ], 'input_type' => [ @@ -764,14 +520,9 @@ 'required' => false, 'example' => 'document', 'default' => 'document', - 'enum' => [ - 'document', - 'query', - ], - ], - 'return_token' => [ - 'type' => 'boolean', + 'enum' => ['document', 'query'], ], + 'return_token' => ['type' => 'boolean'], ], ], ], @@ -781,20 +532,12 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'request_id' => [ - 'type' => 'string', - ], - 'latency' => [ - 'type' => 'integer', - 'format' => 'int32', - ], + 'request_id' => ['type' => 'string'], + 'latency' => ['type' => 'integer', 'format' => 'int32'], 'usage' => [ 'type' => 'object', 'properties' => [ - 'token_count' => [ - 'type' => 'integer', - 'format' => 'int64', - ], + 'token_count' => ['type' => 'integer', 'format' => 'int64'], ], ], 'result' => [ @@ -810,24 +553,13 @@ 'items' => [ 'type' => 'object', 'properties' => [ - 'token' => [ - 'type' => 'string', - ], - 'token_id' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'weight' => [ - 'type' => 'number', - 'format' => 'float', - ], + 'token' => ['type' => 'string'], + 'token_id' => ['type' => 'integer', 'format' => 'int32'], + 'weight' => ['type' => 'number', 'format' => 'float'], ], ], ], - 'index' => [ - 'type' => 'integer', - 'format' => 'int32', - ], + 'index' => ['type' => 'integer', 'format' => 'int32'], ], ], ], @@ -837,55 +569,34 @@ ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], + 'staticInfo' => ['returnType' => 'synchronous'], 'responseDemo' => null, ], 'GetQueryAnalysis' => [ 'summary' => '获取query分析结果', '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'], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'none', - 'riskType' => 'none', - 'chargeType' => 'paid', - ], + 'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'paid'], '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', @@ -899,31 +610,20 @@ 'items' => [ 'type' => 'object', 'properties' => [ - 'content' => [ - 'type' => 'string', - ], - 'role' => [ - 'type' => 'string', - ], + 'content' => ['type' => 'string'], + 'role' => ['type' => 'string'], ], ], 'required' => false, ], - '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'], ], ], ], @@ -936,102 +636,59 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'request_id' => [ - 'type' => 'string', - ], - 'latency' => [ - 'type' => 'integer', - 'format' => 'int32', - ], + 'request_id' => ['type' => 'string'], + 'latency' => ['type' => 'integer', 'format' => 'int32'], 'usage' => [ 'type' => 'object', 'properties' => [ - 'output_tokens' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'input_tokens' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'total_tokens' => [ - 'type' => 'integer', - 'format' => 'int64', - ], + 'output_tokens' => ['type' => 'integer', 'format' => 'int64'], + 'input_tokens' => ['type' => 'integer', 'format' => 'int64'], + 'total_tokens' => ['type' => 'integer', 'format' => 'int64'], ], ], 'result' => [ 'type' => 'object', 'properties' => [ - 'query' => [ - 'type' => 'string', - ], + 'query' => ['type' => 'string'], 'queries' => [ 'type' => 'array', - 'items' => [ - 'type' => 'string', - ], - ], - 'intent' => [ - 'type' => 'string', - ], - 'sql' => [ - 'type' => 'object', + 'items' => ['type' => 'string'], ], + 'intent' => ['type' => 'string'], + 'sql' => ['type' => 'object'], ], ], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], + 'staticInfo' => ['returnType' => 'synchronous'], ], 'CreateImageAnalyzeTask' => [ 'summary' => '创建图片解析异步提取任务', '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'], 'operationType' => 'write', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'none', - 'riskType' => 'none', - 'chargeType' => 'paid', - ], + 'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'paid'], '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', @@ -1043,18 +700,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'], ], ], ], @@ -1066,81 +715,50 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'request_id' => [ - 'type' => 'string', - ], - 'latency' => [ - 'type' => 'integer', - 'format' => 'int32', - ], + 'request_id' => ['type' => 'string'], + 'latency' => ['type' => 'integer', 'format' => 'int32'], 'result' => [ 'type' => 'object', 'properties' => [ - 'task_id' => [ - 'type' => 'string', - ], + 'task_id' => ['type' => 'string'], ], ], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], + 'staticInfo' => ['returnType' => 'synchronous'], ], 'GetImageAnalyzeTaskStatus' => [ 'summary' => '获取图片解析异步提取任务状态', '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'], 'operationType' => 'write', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'none', - 'riskType' => 'none', - 'chargeType' => 'paid', - ], + 'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'paid'], '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], ], ], 'responses' => [ @@ -1148,24 +766,13 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'request_id' => [ - 'type' => 'string', - ], - 'latency' => [ - 'type' => 'integer', - 'format' => 'int32', - ], + 'request_id' => ['type' => 'string'], + 'latency' => ['type' => 'integer', 'format' => 'int32'], 'usage' => [ 'type' => 'object', 'properties' => [ - 'pv_count' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'token_count' => [ - 'type' => 'integer', - 'format' => 'int64', - ], + 'pv_count' => ['type' => 'integer', 'format' => 'int64'], + 'token_count' => ['type' => 'integer', 'format' => 'int64'], ], ], 'result' => [ @@ -1174,81 +781,47 @@ 'data' => [ 'type' => 'object', 'properties' => [ - 'content' => [ - 'type' => 'string', - ], - 'content_type' => [ - 'type' => 'string', - ], - 'page_num' => [ - 'type' => 'integer', - 'format' => 'int32', - ], + 'content' => ['type' => 'string'], + 'content_type' => ['type' => 'string'], + 'page_num' => ['type' => 'integer', 'format' => 'int32'], ], ], - 'status' => [ - 'type' => 'string', - ], - 'task_id' => [ - 'type' => 'string', - ], - 'error' => [ - 'type' => 'string', - ], + 'status' => ['type' => 'string'], + 'task_id' => ['type' => 'string'], + 'error' => ['type' => 'string'], ], ], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], + 'staticInfo' => ['returnType' => 'synchronous'], ], 'GetTextEmbedding' => [ 'summary' => '文本向量化', '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'], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'none', - 'riskType' => 'none', - 'chargeType' => 'paid', - ], + 'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'paid'], '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', @@ -1259,9 +832,7 @@ 'properties' => [ 'input' => [ 'type' => 'array', - 'items' => [ - 'type' => 'string', - ], + 'items' => ['type' => 'string'], 'required' => true, ], 'input_type' => [ @@ -1269,10 +840,7 @@ 'required' => false, 'example' => 'document', 'default' => 'document', - 'enum' => [ - 'document', - 'query', - ], + 'enum' => ['document', 'query'], ], ], ], @@ -1283,20 +851,12 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'request_id' => [ - 'type' => 'string', - ], - 'latency' => [ - 'type' => 'integer', - 'format' => 'int32', - ], + 'request_id' => ['type' => 'string'], + 'latency' => ['type' => 'integer', 'format' => 'int32'], 'usage' => [ 'type' => 'object', 'properties' => [ - 'token_count' => [ - 'type' => 'integer', - 'format' => 'int64', - ], + 'token_count' => ['type' => 'integer', 'format' => 'int64'], ], ], 'result' => [ @@ -1307,16 +867,10 @@ 'items' => [ 'type' => 'object', 'properties' => [ - 'index' => [ - 'type' => 'integer', - 'format' => 'int32', - ], + 'index' => ['type' => 'integer', 'format' => 'int32'], 'embedding' => [ 'type' => 'array', - 'items' => [ - 'type' => 'number', - 'format' => 'double', - ], + 'items' => ['type' => 'number', 'format' => 'double'], ], ], ], @@ -1327,54 +881,33 @@ ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], + 'staticInfo' => ['returnType' => 'synchronous'], ], 'GetWebSearch' => [ 'summary' => '联网搜索', 'path' => '/v3/openapi/workspaces/{workspace_name}/web-search/{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'], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'none', - 'riskType' => 'none', - 'chargeType' => 'paid', - ], + 'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'paid'], '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', @@ -1383,19 +916,23 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'query' => [ - 'type' => 'string', - 'required' => true, - ], - 'way' => [ - 'type' => 'string', - ], - 'top_k' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - ], - ], + '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'], + ], + ], + ], + ], + ], ], ], 'responses' => [ @@ -1403,44 +940,18 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'request_id' => [ - 'type' => 'string', - ], - 'latency' => [ - 'type' => 'integer', - 'format' => 'int32', - ], + 'request_id' => ['type' => 'string'], + 'latency' => ['type' => 'integer', 'format' => 'int32'], 'usage' => [ 'type' => 'object', 'properties' => [ - 'search_count' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'rewrite_model.input_tokens' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'rewrite_model.output_tokens' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'rewrite_model.total_tokens' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'filter_model.input_tokens' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'filter_model.output_tokens' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'filter_model.total_tokens' => [ - 'type' => 'integer', - 'format' => 'int64', - ], + 'search_count' => ['type' => 'integer', 'format' => 'int64'], + 'rewrite_model.input_tokens' => ['type' => 'integer', 'format' => 'int64'], + 'rewrite_model.output_tokens' => ['type' => 'integer', 'format' => 'int64'], + 'rewrite_model.total_tokens' => ['type' => 'integer', 'format' => 'int64'], + 'filter_model.input_tokens' => ['type' => 'integer', 'format' => 'int64'], + 'filter_model.output_tokens' => ['type' => 'integer', 'format' => 'int64'], + 'filter_model.total_tokens' => ['type' => 'integer', 'format' => 'int64'], ], ], 'result' => [ @@ -1451,22 +962,12 @@ 'items' => [ 'type' => 'object', 'properties' => [ - 'tilte' => [ - 'type' => 'string', - ], - 'link' => [ - 'type' => 'string', - ], - 'snippet' => [ - 'type' => 'string', - ], - 'content' => [ - 'type' => 'string', - ], - 'position' => [ - 'type' => 'integer', - 'format' => 'int64', - ], + 'tilte' => ['type' => 'string'], + 'link' => ['type' => 'string'], + 'snippet' => ['type' => 'string'], + 'content' => ['type' => 'string'], + 'position' => ['type' => 'integer', 'format' => 'int64'], + 'meta_info' => ['type' => 'object'], ], ], ], @@ -1480,46 +981,28 @@ 'GetEmbeddingTuning' => [ 'summary' => '向量微调', 'path' => '/v3/openapi/workspaces/{workspace_name}/embedding-tuning/{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'], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'none', - 'riskType' => 'none', - 'chargeType' => 'paid', - ], + 'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'paid'], 'parameters' => [ [ 'name' => 'workspace_name', 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'type' => 'string', - ], + 'schema' => ['title' => 'A short description of struct', 'type' => 'string'], ], [ 'name' => 'service_id', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - ], + 'schema' => ['type' => 'string'], ], [ 'name' => 'body', @@ -1532,15 +1015,10 @@ 'type' => 'array', 'items' => [ 'type' => 'array', - 'items' => [ - 'type' => 'number', - 'format' => 'float', - ], + 'items' => ['type' => 'number', 'format' => 'float'], ], ], - 'parameters' => [ - 'type' => 'object', - ], + 'parameters' => ['type' => 'object'], ], ], ], @@ -1551,21 +1029,12 @@ 'title' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'request_id' => [ - 'title' => 'Id of the request', - 'type' => 'string', - ], - 'latency' => [ - 'type' => 'integer', - 'format' => 'int32', - ], + 'request_id' => ['title' => 'Id of the request', 'type' => 'string'], + 'latency' => ['type' => 'integer', 'format' => 'int32'], 'usage' => [ 'type' => 'object', 'properties' => [ - 'doc_count' => [ - 'type' => 'integer', - 'format' => 'int32', - ], + 'doc_count' => ['type' => 'integer', 'format' => 'int32'], ], ], 'result' => [ @@ -1575,10 +1044,7 @@ 'type' => 'array', 'items' => [ 'type' => 'array', - 'items' => [ - 'type' => 'number', - 'format' => 'float', - ], + 'items' => ['type' => 'number', 'format' => 'float'], ], ], ], @@ -1587,9 +1053,7 @@ ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], + 'staticInfo' => ['returnType' => 'synchronous'], 'eventInfo' => [ 'enable' => false, 'eventNames' => [], @@ -1598,73 +1062,1760 @@ 'GetPrediction' => [ 'summary' => '获取推理结果', 'path' => '/v3/openapi/deployments/{deployment_id}/predict', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'BearerToken' => [], ], ], - 'consumes' => [ - 'application/json', - ], + 'consumes' => ['application/json'], 'produces' => [], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'none', - 'riskType' => 'none', - 'chargeType' => 'paid', - ], + 'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'paid'], 'parameters' => [ [ 'name' => 'deployment_id', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'body', 'in' => 'body', - 'schema' => [ - 'type' => 'string', - ], + 'schema' => ['type' => 'string'], ], [ 'name' => 'Token', 'in' => 'header', + 'schema' => ['type' => 'string'], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => ['type' => 'string'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + ], + 'CreateAudioAsrTask' => [ + 'summary' => '创建语音转录异步任务', + 'path' => '/v3/openapi/workspaces/{workspace_name}/audio-asr/{service_id}/async', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'BearerToken' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'paid'], + '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', + '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'], + ], ], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'type' => 'string', + 'type' => 'object', + 'properties' => [ + 'request_id' => ['type' => 'string'], + 'latency' => ['type' => 'integer', 'format' => 'int32'], + 'result' => [ + 'type' => 'object', + 'properties' => [ + 'task_id' => ['type' => 'string'], + ], + ], + ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], + 'staticInfo' => ['returnType' => 'synchronous'], ], - ], - 'endpoints' => [ - [ - 'regionId' => 'cn-shanghai', - 'endpoint' => 'searchplat.cn-shanghai.aliyuncs.com', + 'CreateVideoSnapshotTask' => [ + 'summary' => '创建语音转录异步任务', + 'path' => '/v3/openapi/workspaces/{workspace_name}/video-snapshot/{service_id}/async', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'BearerToken' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'paid'], + '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'], + ], + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'request_id' => ['type' => 'string'], + 'latency' => ['type' => 'integer', 'format' => 'int32'], + 'result' => [ + 'type' => 'object', + 'properties' => [ + 'task_id' => ['type' => 'string'], + ], + ], + ], + ], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], ], - [ - 'regionId' => 'eu-central-1', - 'endpoint' => 'searchplat.eu-central-1.aliyuncs.com', + 'GetAudioAsrTaskStatus' => [ + 'summary' => '获取视频截帧异步提取任务状态', + 'path' => '/v3/openapi/workspaces/{workspace_name}/audio-asr/{service_id}/async/task-status', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'BearerToken' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'paid'], + '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], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'request_id' => ['type' => 'string'], + 'latency' => ['type' => 'integer', 'format' => 'int32'], + 'usage' => [ + 'type' => 'object', + 'properties' => [ + 'duration' => ['type' => 'number', 'format' => 'float'], + ], + ], + 'result' => [ + 'type' => 'object', + 'properties' => [ + 'status' => ['type' => 'string'], + 'task_id' => ['type' => 'string'], + 'error' => ['type' => 'string'], + 'data' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'text' => ['type' => 'string'], + 'start' => ['type' => 'number', 'format' => 'float'], + 'end' => ['type' => 'number', 'format' => 'float'], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], ], + 'GetImageObjectDetection' => [ + 'summary' => '图片主体检测', + 'path' => '/v3/openapi/workspaces/{workspace_name}/image-object-detection/{service_id}', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'BearerToken' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'paid', 'tenantRelevance' => 'tenant'], + 'parameters' => [ + [ + 'name' => 'workspace_name', + 'in' => 'path', + 'schema' => ['title' => 'A short description of struct', 'type' => 'string'], + ], + [ + 'name' => 'service_id', + 'in' => 'path', + 'schema' => ['type' => 'string'], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'image' => [ + 'type' => 'object', + 'properties' => [ + 'url' => ['type' => 'string'], + 'content' => ['type' => 'string'], + ], + ], + 'options' => ['type' => 'object'], + ], + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'request_id' => ['type' => 'string'], + 'latency' => ['type' => 'integer', 'format' => 'int32'], + 'usage' => [ + 'type' => 'object', + 'properties' => [ + 'image' => ['type' => 'integer', 'format' => 'int64'], + ], + ], + 'result' => [ + 'type' => 'object', + 'properties' => [ + 'objects' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'confidence' => ['type' => 'string'], + 'location' => [ + 'type' => 'object', + 'properties' => [ + 'height' => ['type' => 'integer', 'format' => 'int32'], + 'width' => ['type' => 'integer', 'format' => 'int32'], + 'Y' => ['type' => 'integer', 'format' => 'int32'], + 'X' => ['type' => 'integer', 'format' => 'int32'], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + ], + 'GetMultiModalEmbedding' => [ + 'summary' => '多模态向量化', + 'path' => '/v3/openapi/workspaces/{workspace_name}/multi-modal-embedding/{service_id}', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'BearerToken' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'paid', 'tenantRelevance' => 'tenant'], + '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' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'text' => ['type' => 'string'], + 'image' => ['type' => 'string'], + ], + ], + ], + 'options' => ['type' => 'object'], + ], + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'request_id' => ['type' => 'string'], + 'latency' => ['type' => 'integer', 'format' => 'int32'], + 'usage' => [ + 'type' => 'object', + 'properties' => [ + 'token_count' => ['type' => 'integer', 'format' => 'int64'], + 'image' => ['type' => 'integer', 'format' => 'int64'], + 'text_token' => ['type' => 'integer', 'format' => 'int64'], + 'image_token' => ['type' => 'integer', 'format' => 'int64'], + ], + ], + 'result' => [ + 'type' => 'object', + 'properties' => [ + 'embeddings' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'index' => ['type' => 'integer', 'format' => 'int64'], + 'embedding' => [ + 'type' => 'array', + 'items' => ['type' => 'number', 'format' => 'double'], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + ], + 'GetMultiModalReranker' => [ + 'summary' => '多模态 Reranker', + 'path' => '/v3/openapi/workspaces/{workspace_name}/multi-modal-reranker/{service_id}', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'BearerToken' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'paid', 'tenantRelevance' => 'tenant'], + 'parameters' => [ + [ + 'name' => 'workspace_name', + 'in' => 'path', + 'schema' => ['title' => 'A short description of struct', 'type' => 'string'], + ], + [ + 'name' => 'service_id', + 'in' => 'path', + 'schema' => ['type' => 'string'], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'query' => [ + 'type' => 'object', + 'properties' => [ + 'text' => ['type' => 'string'], + 'image' => ['type' => 'string'], + ], + ], + 'docs' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'text' => ['type' => 'string'], + 'image' => ['type' => 'string'], + ], + ], + ], + 'options' => ['type' => 'object'], + ], + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'request_id' => ['type' => 'string'], + 'latency' => ['type' => 'integer', 'format' => 'int32'], + 'usage' => [ + 'type' => 'object', + 'properties' => [ + 'text_token' => ['type' => 'integer', 'format' => 'int64'], + 'image_token' => ['type' => 'integer', 'format' => 'int64'], + ], + ], + 'result' => [ + 'type' => 'object', + 'properties' => [ + 'scores' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'index' => ['type' => 'integer', 'format' => 'int32'], + 'score' => ['type' => 'number', 'format' => 'double'], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + ], + 'GetVideoSnapshotTaskStatus' => [ + 'summary' => '获取视频截帧异步提取任务状态', + 'path' => '/v3/openapi/workspaces/{workspace_name}/video-snapshot/{service_id}/async/task-status', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'BearerToken' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'paid'], + '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], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'request_id' => ['type' => 'string'], + 'latency' => ['type' => 'integer', 'format' => 'int32'], + 'usage' => [ + 'type' => 'object', + 'properties' => [ + 'image_count' => ['type' => 'integer', 'format' => 'int64'], + ], + ], + 'result' => [ + 'type' => 'object', + 'properties' => [ + 'status' => ['type' => 'string'], + 'task_id' => ['type' => 'string'], + 'error' => ['type' => 'string'], + 'data' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'frame_index' => ['type' => 'integer', 'format' => 'int64'], + 'path' => ['type' => 'string'], + 'frame_time' => ['type' => 'number', 'format' => 'float'], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + ], + 'GetVideoSegmentationTaskStatus' => [ + 'summary' => '获取视频切割异步任务状态', + 'path' => '/v3/openapi/workspaces/{workspace_name}/video-segmentation/{service_id}/async/task-status', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'BearerToken' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'paid'], + '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], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'request_id' => ['type' => 'string'], + 'latency' => ['type' => 'integer', 'format' => 'int32'], + 'usage' => [ + 'type' => 'object', + 'properties' => [ + 'image_token' => ['type' => 'integer', 'format' => 'int64'], + 'audio_token' => ['type' => 'integer', 'format' => 'int64'], + ], + ], + 'result' => [ + 'type' => 'object', + 'properties' => [ + 'status' => ['type' => 'string'], + 'task_id' => ['type' => 'string'], + 'error' => ['type' => 'string'], + 'data' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'chunk_index' => ['type' => 'integer', 'format' => 'int32'], + 'start_time' => ['type' => 'number', 'format' => 'float'], + 'end_time' => ['type' => 'number', 'format' => 'float'], + 'snapshots' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'frame_index' => ['type' => 'integer', 'format' => 'int32'], + 'path' => ['type' => 'string'], + 'frame_time' => ['type' => 'number', 'format' => 'float'], + ], + ], + ], + 'transcript' => ['type' => 'string'], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"request_id\\": \\"\\",\\n \\"latency\\": 0,\\n \\"usage\\": {\\n \\"image_token\\": 0,\\n \\"audio_token\\": 0\\n },\\n \\"result\\": {\\n \\"status\\": \\"\\",\\n \\"task_id\\": \\"\\",\\n \\"error\\": \\"\\",\\n \\"data\\": [\\n {\\n \\"chunk_index\\": 0,\\n \\"start_time\\": 0,\\n \\"end_time\\": 0,\\n \\"snapshots\\": [\\n {\\n \\"frame_index\\": 0,\\n \\"path\\": \\"\\",\\n \\"frame_time\\": 0\\n }\\n ],\\n \\"transcript\\": \\"\\"\\n }\\n ]\\n }\\n}","type":"json"}]', + ], + 'GetVideoSummarizationTaskStatus' => [ + 'summary' => '获取视频总结异步任务状态', + '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'], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'paid'], + '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], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'request_id' => ['type' => 'string'], + 'latency' => ['type' => 'integer', 'format' => 'int32'], + 'usage' => [ + 'type' => 'object', + 'properties' => [ + 'image_token' => ['type' => 'integer', 'format' => 'int64'], + 'audio_token' => ['type' => 'integer', 'format' => 'int64'], + 'input_token' => ['type' => 'integer', 'format' => 'int64'], + 'output_token' => ['type' => 'integer', 'format' => 'int64'], + ], + ], + 'result' => [ + 'type' => 'object', + 'properties' => [ + 'status' => ['type' => 'string'], + 'task_id' => ['type' => 'string'], + 'error' => ['type' => 'string'], + 'data' => [ + 'type' => 'object', + 'properties' => [ + 'video_metadata' => [ + 'type' => 'object', + 'properties' => [ + 'title' => ['type' => 'string'], + 'summary' => ['type' => 'string'], + 'tags' => [ + 'type' => 'array', + 'items' => ['type' => 'string'], + ], + ], + ], + 'chunks' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'index' => ['type' => 'integer', 'format' => 'int32'], + 'enhanced_transcript' => ['type' => 'string'], + 'metadata' => [ + 'type' => 'object', + 'properties' => [ + 'title' => ['type' => 'string'], + 'summary' => ['type' => 'string'], + 'tags' => [ + 'type' => 'array', + 'items' => ['type' => 'string'], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"request_id\\": \\"\\",\\n \\"latency\\": 0,\\n \\"usage\\": {\\n \\"image_token\\": 0,\\n \\"audio_token\\": 0,\\n \\"input_token\\": 0,\\n \\"output_token\\": 0\\n },\\n \\"result\\": {\\n \\"status\\": \\"\\",\\n \\"task_id\\": \\"\\",\\n \\"error\\": \\"\\",\\n \\"data\\": {\\n \\"video_metadata\\": {\\n \\"title\\": \\"\\",\\n \\"summary\\": \\"\\",\\n \\"tags\\": [\\n \\"\\"\\n ]\\n },\\n \\"chunks\\": [\\n {\\n \\"index\\": 0,\\n \\"enhanced_transcript\\": \\"\\",\\n \\"metadata\\": {\\n \\"title\\": \\"\\",\\n \\"summary\\": \\"\\",\\n \\"tags\\": [\\n \\"\\"\\n ]\\n }\\n }\\n ]\\n }\\n }\\n}","type":"json"}]', + ], + 'CreateVideoSegmentationTask' => [ + 'summary' => '创建视频切割异步任务', + 'path' => '/v3/openapi/workspaces/{workspace_name}/video-segmentation/{service_id}/async', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'BearerToken' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'paid'], + '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' => [ + 'file_name' => ['type' => 'string', 'required' => false], + 'oss' => ['type' => 'string', 'required' => false], + 'url' => ['type' => 'string'], + ], + 'required' => false, + ], + 'output' => [ + 'type' => 'object', + 'properties' => [ + 'type' => ['type' => 'string', 'required' => false], + 'oss' => ['type' => 'string', 'required' => false], + ], + 'required' => false, + ], + 'parameters' => ['type' => 'object', 'required' => false], + ], + 'required' => false, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'request_id' => ['type' => 'string'], + 'latency' => ['type' => 'integer', 'format' => 'int32'], + 'result' => [ + 'type' => 'object', + 'properties' => [ + 'task_id' => ['type' => 'string'], + ], + ], + ], + ], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"request_id\\": \\"\\",\\n \\"latency\\": 0,\\n \\"result\\": {\\n \\"task_id\\": \\"\\"\\n }\\n}","type":"json"}]', + ], + 'CreateVideoSummarizationTask' => [ + 'summary' => '创建视频总结异步任务', + 'path' => '/v3/openapi/workspaces/{workspace_name}/video-summarization/{service_id}/async', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'BearerToken' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'paid'], + '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' => [ + 'file_name' => ['type' => 'string', 'required' => false], + 'oss' => ['type' => 'string', 'required' => false], + 'url' => ['type' => 'string'], + 'chunks' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'object', + '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', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'frame_index' => ['type' => 'integer', 'format' => 'int32', 'required' => false], + 'path' => ['type' => 'string', 'required' => false], + 'frame_time' => ['type' => 'number', 'format' => 'float', 'required' => false], + ], + 'required' => false, + ], + 'required' => false, + ], + ], + 'required' => false, + ], + 'required' => false, + ], + ], + 'required' => false, + ], + 'output' => [ + 'type' => 'object', + 'properties' => [ + 'type' => ['type' => 'string', 'required' => false], + 'oss' => ['type' => 'string', 'required' => false], + ], + 'required' => false, + ], + 'parameters' => ['type' => 'object', 'required' => false], + ], + 'required' => false, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'request_id' => ['type' => 'string'], + 'latency' => ['type' => 'integer', 'format' => 'int32'], + 'result' => [ + 'type' => 'object', + 'properties' => [ + 'task_id' => ['type' => 'string'], + ], + ], + ], + ], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"request_id\\": \\"\\",\\n \\"latency\\": 0,\\n \\"result\\": {\\n \\"task_id\\": \\"\\"\\n }\\n}","type":"json"}]', + ], + 'UpdateMemorySkill' => [ + 'summary' => '更新 Skill', + 'path' => '/v3/openapi/workspaces/{workspace_name}/memory/{service_id}/skills/{skill_id}', + 'methods' => ['put'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'BearerToken' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'paid'], + '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'], + ], + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'request_id' => ['type' => 'string'], + 'latency' => ['type' => 'integer', 'format' => 'int32'], + 'status' => ['type' => 'string'], + 'result' => [ + 'type' => 'object', + 'properties' => [ + 'name' => ['type' => 'string'], + 'version' => ['type' => 'string'], + 'files' => [ + 'type' => 'object', + 'additionalProperties' => ['type' => 'string'], + ], + ], + ], + ], + ], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + ], + 'CreateMemorySkill' => [ + 'summary' => '上传skill', + 'path' => '/v3/openapi/workspaces/{workspace_name}/memory/{service_id}/skills', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'BearerToken' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'paid'], + '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'], + ], + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'request_id' => ['type' => 'string'], + 'latency' => ['type' => 'integer', 'format' => 'int32'], + 'status' => ['type' => 'string'], + 'result' => [ + 'type' => 'object', + 'properties' => [ + 'imported_count' => ['type' => 'integer', 'format' => 'int32'], + 'data' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'id' => ['type' => 'string'], + 'name' => ['type' => 'string'], + 'description' => ['type' => 'string'], + 'version' => ['type' => 'string'], + 'owner' => ['type' => 'string'], + 'tags' => [ + 'type' => 'array', + 'items' => ['type' => 'string'], + ], + 'triggers' => [ + 'type' => 'array', + 'items' => ['type' => 'string'], + ], + 'resource_paths' => [ + 'type' => 'array', + 'items' => ['type' => 'string'], + ], + 'updated_at' => ['type' => 'string'], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + ], + 'SearchMemory' => [ + 'summary' => '根据查询条件搜索 Memory', + 'path' => '/v3/openapi/workspaces/{workspace_name}/memory/{service_id}/search', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'BearerToken' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'paid'], + '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' => [ + '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'], + ], + ], + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'request_id' => ['type' => 'string'], + 'latency' => ['type' => 'integer', 'format' => 'int32'], + 'status' => ['type' => 'string'], + 'result' => [ + 'type' => 'object', + 'properties' => [ + 'memory' => [ + 'type' => 'object', + 'properties' => [ + 'total' => ['type' => 'integer', 'format' => 'int32'], + 'results' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'memory_id' => ['type' => 'string'], + 'memory' => ['type' => 'string'], + 'user_id' => ['type' => 'string'], + 'agent_id' => ['type' => 'string'], + ], + ], + ], + ], + ], + 'skill' => [ + 'type' => 'object', + 'properties' => [ + 'total' => ['type' => 'integer', 'format' => 'int32'], + 'results' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'skill_id' => ['type' => 'string'], + 'name' => ['type' => 'string'], + 'description' => ['type' => 'string'], + 'version' => ['type' => 'string'], + 'user_id' => ['type' => 'string'], + 'agent_id' => ['type' => 'string'], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'DeleteMemory' => [ + 'summary' => '删除一条 Memory', + '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'], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'paid'], + '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], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'request_id' => ['type' => 'string'], + 'latency' => ['type' => 'integer', 'format' => 'int32'], + 'status' => ['type' => 'string'], + 'result' => [ + 'type' => 'object', + 'properties' => [ + 'status' => ['type' => 'string'], + 'memory_id' => ['type' => 'string'], + 'message' => ['type' => 'string'], + ], + ], + ], + ], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + ], + 'GetMemory' => [ + 'summary' => '查看memory详情', + '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'], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'paid'], + '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], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'request_id' => ['type' => 'string'], + 'latency' => ['type' => 'integer', 'format' => 'int32'], + 'status' => ['type' => 'string'], + 'result' => [ + 'type' => 'object', + 'properties' => [ + 'memory_id' => ['type' => 'string'], + 'memory' => ['type' => 'string'], + 'user_id' => ['type' => 'string'], + 'agent_id' => ['type' => 'string'], + ], + ], + ], + ], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + ], + 'GetMemoryTask' => [ + 'summary' => '查询memory异步任务的处理状态', + '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'], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'paid'], + '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], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'request_id' => ['type' => 'string'], + 'latency' => ['type' => 'integer', 'format' => 'int32'], + 'status' => ['type' => 'string'], + 'result' => [ + 'type' => 'object', + 'properties' => [ + 'task_id' => ['type' => 'string'], + 'status' => ['type' => 'string'], + 'memory_ids' => [ + 'type' => 'array', + 'items' => ['type' => 'string'], + ], + 'skill_ids' => [ + 'type' => 'array', + 'items' => ['type' => 'string'], + ], + 'error_message' => ['type' => 'string'], + ], + ], + ], + ], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + ], + 'GetMemoryHealth' => [ + 'summary' => '检查 Memory 服务健康状态', + 'path' => '/v3/openapi/workspaces/{workspace_name}/memory/{service_id}/health', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'BearerToken' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'paid'], + 'parameters' => [ + [ + 'name' => 'workspace_name', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'service_id', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'request_id' => ['type' => 'string'], + 'latency' => ['type' => 'integer', 'format' => 'int32'], + 'result' => [ + 'type' => 'object', + 'properties' => [ + 'status' => ['type' => 'string'], + ], + ], + 'status' => ['type' => 'string'], + ], + ], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + ], + 'CreateMemory' => [ + 'summary' => '存储 Memory 内容', + 'path' => '/v3/openapi/workspaces/{workspace_name}/memory/{service_id}/memories', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'BearerToken' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'paid'], + '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'], + ], + ], + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'request_id' => ['type' => 'string'], + 'latency' => ['type' => 'integer', 'format' => 'int32'], + 'status' => ['type' => 'string'], + 'result' => [ + 'type' => 'object', + 'properties' => [ + 'memory' => [ + 'type' => 'object', + 'properties' => [ + 'task_id' => ['type' => 'string'], + ], + ], + 'skill' => [ + 'type' => 'object', + 'properties' => [ + 'task_id' => ['type' => 'string'], + ], + ], + ], + ], + ], + ], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + ], + 'UpdateMemory' => [ + 'summary' => '更新 Memory', + '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'], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'paid'], + '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' => 'object', + 'properties' => [ + 'memory' => ['type' => 'string'], + ], + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'request_id' => ['type' => 'string'], + 'latency' => ['type' => 'integer', 'format' => 'int32'], + 'status' => ['type' => 'string'], + 'result' => [ + 'type' => 'object', + 'properties' => [ + 'memory_id' => ['type' => 'string'], + 'memory' => ['type' => 'string'], + 'message' => ['type' => 'string'], + ], + ], + ], + ], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + ], + 'GetMemorySkill' => [ + 'summary' => '查看skill详情', + 'path' => '/v3/openapi/workspaces/{workspace_name}/memory/{service_id}/skills/{skill_id}', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'BearerToken' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'paid'], + '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], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'request_id' => ['type' => 'string'], + 'latency' => ['type' => 'integer', 'format' => 'int32'], + 'status' => ['type' => 'string'], + 'result' => [ + 'type' => 'object', + 'properties' => [ + 'skill_id' => ['type' => 'string'], + 'name' => ['type' => 'string'], + 'files' => ['type' => 'string'], + 'agent_id' => ['type' => 'string'], + 'user_id' => ['type' => 'string'], + ], + ], + ], + ], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + ], + 'DeleteMemorySkill' => [ + 'summary' => '删除skill', + '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'], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'paid'], + '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'], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'request_id' => ['type' => 'string'], + 'latency' => ['type' => 'integer', 'format' => 'int32'], + 'status' => ['type' => 'string'], + 'result' => [ + 'type' => 'object', + 'properties' => [ + 'status' => ['type' => 'string'], + 'skill_id' => ['type' => 'string'], + 'message' => ['type' => 'string'], + ], + ], + ], + ], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + ], + 'GetJinaAiReader' => [ + 'summary' => '获取JinaAiReader解析结果', + 'path' => '/v3/openapi/workspaces/{workspace_name}/jina-ai-reader/{service_id}', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'BearerToken' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'paid'], + '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' => 'object', + 'properties' => [ + 'url' => ['type' => 'string'], + ], + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'request_id' => ['title' => 'Id of the request', 'type' => 'string'], + 'latency' => ['type' => 'integer', 'format' => 'int32'], + 'result' => [ + 'type' => 'object', + 'properties' => [ + 'content' => ['type' => 'string'], + 'meta' => [ + 'type' => 'object', + 'additionalProperties' => ['type' => 'string'], + ], + ], + ], + 'usage' => [ + 'type' => 'object', + 'properties' => [ + 'token_count' => ['type' => 'integer', 'format' => 'int32'], + ], + ], + ], + ], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + ], + ], + 'endpoints' => [ + ['regionId' => 'cn-shanghai', 'endpoint' => 'searchplat.cn-shanghai.aliyuncs.com'], + ['regionId' => 'eu-central-1', 'endpoint' => 'searchplat.eu-central-1.aliyuncs.com'], ], ]; -- cgit v1.2.3