summaryrefslogtreecommitdiff
path: root/data/farui/2024-06-28
diff options
context:
space:
mode:
authorZhineng Li <[email protected]>2026-02-14 10:08:30 +0800
committerZhineng Li <[email protected]>2026-02-14 10:08:30 +0800
commiteccd5cd5a067f5659982685afdeea209b1888efb (patch)
tree1626c903b854317be1708ce3ccd3b4f4e6e0fc97 /data/farui/2024-06-28
downloadacs-metadata-eccd5cd5a067f5659982685afdeea209b1888efb.tar.gz
acs-metadata-eccd5cd5a067f5659982685afdeea209b1888efb.zip
Diffstat (limited to 'data/farui/2024-06-28')
-rw-r--r--data/farui/2024-06-28/api-docs.php792
1 files changed, 792 insertions, 0 deletions
diff --git a/data/farui/2024-06-28/api-docs.php b/data/farui/2024-06-28/api-docs.php
new file mode 100644
index 0000000..8c90d4c
--- /dev/null
+++ b/data/farui/2024-06-28/api-docs.php
@@ -0,0 +1,792 @@
+<?php return [
+ 'version' => '1.0',
+ 'info' => [
+ 'style' => 'V3',
+ 'product' => 'FaRui',
+ 'version' => '2024-06-28',
+ ],
+ 'components' => [
+ 'schemas' => [],
+ ],
+ 'apis' => [
+ 'RunLegalAdviceConsultation' => [
+ 'path' => '/{workspaceId}/farui/legalAdvice/consult',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'https',
+ 'sse',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'appId',
+ 'in' => 'formData',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'stream',
+ 'in' => 'formData',
+ 'schema' => [
+ 'type' => 'boolean',
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'workspaceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'assistant',
+ 'in' => 'formData',
+ 'style' => 'json',
+ 'schema' => [
+ 'type' => 'object',
+ 'required' => false,
+ 'properties' => [
+ 'id' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ 'metaData' => [
+ 'type' => 'object',
+ 'required' => false,
+ 'additionalProperties' => [
+ 'type' => 'string',
+ ],
+ ],
+ 'type' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ 'version' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ ],
+ ],
+ [
+ 'name' => 'thread',
+ 'in' => 'formData',
+ 'style' => 'json',
+ 'schema' => [
+ 'type' => 'object',
+ 'required' => false,
+ 'properties' => [
+ 'messages' => [
+ 'type' => 'array',
+ 'required' => false,
+ 'items' => [
+ 'type' => 'object',
+ 'required' => false,
+ 'properties' => [
+ 'content' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ 'role' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ [
+ 'name' => 'extra',
+ 'in' => 'formData',
+ 'style' => 'json',
+ 'schema' => [
+ 'type' => 'object',
+ 'required' => false,
+ 'properties' => [
+ 'deepThink' => [
+ 'type' => 'boolean',
+ 'required' => false,
+ ],
+ 'onlineSearch' => [
+ 'type' => 'boolean',
+ 'required' => false,
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'CreateTextFile' => [
+ 'path' => '/{WorkspaceId}/data/textFile',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'WorkspaceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'ClientToken',
+ 'in' => 'formData',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'CreateTime',
+ 'in' => 'formData',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'TextFileName',
+ 'in' => 'formData',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'TextFileUrl',
+ 'in' => 'formData',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'ContractId',
+ 'in' => 'formData',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ ],
+ ],
+ 'RunContractRuleGeneration' => [
+ 'path' => '/{workspaceId}/farui/contract/rule/genarate',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'https',
+ 'sse',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'appId',
+ 'in' => 'formData',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'stream',
+ 'in' => 'formData',
+ 'schema' => [
+ 'type' => 'boolean',
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'workspaceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'assistant',
+ 'in' => 'formData',
+ 'style' => 'json',
+ 'schema' => [
+ 'type' => 'object',
+ 'required' => false,
+ 'properties' => [
+ 'metaData' => [
+ 'type' => 'object',
+ 'required' => false,
+ 'properties' => [
+ 'fileId' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ 'position' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'type' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ 'version' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'RunContractResultGeneration' => [
+ 'path' => '/{workspaceId}/farui/contract/result/genarate',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'https',
+ 'sse',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'appId',
+ 'in' => 'formData',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'stream',
+ 'in' => 'formData',
+ 'schema' => [
+ 'type' => 'boolean',
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'workspaceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => true,
+ ],
+ ],
+ [
+ 'name' => 'assistant',
+ 'in' => 'formData',
+ 'style' => 'json',
+ 'schema' => [
+ 'type' => 'object',
+ 'required' => false,
+ 'properties' => [
+ 'metaData' => [
+ 'type' => 'object',
+ 'required' => false,
+ 'properties' => [
+ 'customRuleConfig' => [
+ 'type' => 'object',
+ 'required' => false,
+ 'properties' => [
+ 'customRules' => [
+ 'type' => 'array',
+ 'required' => false,
+ 'items' => [
+ 'type' => 'object',
+ 'required' => false,
+ 'properties' => [
+ 'riskLevel' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ 'ruleDesc' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ 'ruleTitle' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'fileId' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ 'position' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ 'ruleTaskId' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ 'rules' => [
+ 'type' => 'array',
+ 'required' => false,
+ 'items' => [
+ 'type' => 'object',
+ 'required' => false,
+ 'properties' => [
+ 'riskLevel' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ 'ruleSequence' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ 'ruleTag' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ 'ruleTitle' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'type' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ 'version' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'RunSearchLawQuery' => [
+ 'path' => '/{workspaceId}/farui/search/law/query',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'deprecated' => false,
+ 'parameters' => [
+ [
+ 'name' => 'workspaceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'appId',
+ 'in' => 'formData',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'thread',
+ 'in' => 'formData',
+ 'style' => 'json',
+ 'schema' => [
+ 'type' => 'object',
+ 'required' => false,
+ 'properties' => [
+ 'messages' => [
+ 'type' => 'array',
+ 'required' => false,
+ 'items' => [
+ 'type' => 'object',
+ 'required' => false,
+ 'properties' => [
+ 'content' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ 'role' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ [
+ 'name' => 'query',
+ 'in' => 'formData',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => true,
+ ],
+ ],
+ [
+ 'name' => 'queryKeywords',
+ 'in' => 'formData',
+ 'style' => 'json',
+ 'schema' => [
+ 'type' => 'array',
+ 'required' => false,
+ 'items' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ ],
+ [
+ 'name' => 'pageParam',
+ 'in' => 'formData',
+ 'style' => 'json',
+ 'schema' => [
+ 'type' => 'object',
+ 'required' => false,
+ 'properties' => [
+ 'pageNumber' => [
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ ],
+ 'pageSize' => [
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ ],
+ ],
+ ],
+ ],
+ [
+ 'name' => 'filterCondition',
+ 'in' => 'formData',
+ 'style' => 'json',
+ 'schema' => [
+ 'type' => 'object',
+ 'required' => false,
+ 'properties' => [
+ 'lawName' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'RunSearchCaseFullText' => [
+ 'path' => '/{workspaceId}/farui/search/case/fulltext',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'deprecated' => false,
+ 'parameters' => [
+ [
+ 'name' => 'workspaceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'appId',
+ 'in' => 'formData',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'thread',
+ 'in' => 'formData',
+ 'style' => 'json',
+ 'schema' => [
+ 'type' => 'object',
+ 'required' => false,
+ 'properties' => [
+ 'messages' => [
+ 'type' => 'array',
+ 'required' => false,
+ 'items' => [
+ 'type' => 'object',
+ 'required' => false,
+ 'properties' => [
+ 'content' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ 'role' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ [
+ 'name' => 'query',
+ 'in' => 'formData',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => true,
+ ],
+ ],
+ [
+ 'name' => 'queryKeywords',
+ 'in' => 'formData',
+ 'style' => 'json',
+ 'schema' => [
+ 'type' => 'array',
+ 'required' => false,
+ 'items' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ ],
+ [
+ 'name' => 'pageParam',
+ 'in' => 'formData',
+ 'style' => 'json',
+ 'schema' => [
+ 'type' => 'object',
+ 'required' => true,
+ 'properties' => [
+ 'pageNumber' => [
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ ],
+ 'pageSize' => [
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ ],
+ ],
+ ],
+ ],
+ [
+ 'name' => 'sortKeyAndDirection',
+ 'in' => 'formData',
+ 'style' => 'json',
+ 'schema' => [
+ 'type' => 'object',
+ 'required' => false,
+ 'additionalProperties' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ [
+ 'name' => 'filterCondition',
+ 'in' => 'formData',
+ 'style' => 'json',
+ 'schema' => [
+ 'type' => 'object',
+ 'required' => false,
+ 'properties' => [
+ 'caseTitle' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ 'caseNo' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ ],
+ ],
+ [
+ 'name' => 'referLevel',
+ 'in' => 'formData',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ ],
+ ],
+ 'RunContractExtract' => [
+ 'path' => '/{workspaceId}/pop/contract/extraction',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'deprecated' => false,
+ 'parameters' => [
+ [
+ 'name' => 'workspaceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'appId',
+ 'in' => 'formData',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'regionId',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'fileOssUrl',
+ 'in' => 'formData',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => true,
+ ],
+ ],
+ [
+ 'name' => 'fieldsToExtract',
+ 'in' => 'formData',
+ 'style' => 'json',
+ 'schema' => [
+ 'type' => 'array',
+ 'required' => false,
+ 'items' => [
+ 'type' => 'object',
+ 'required' => false,
+ 'properties' => [
+ 'extractItem' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ 'option' => [
+ 'type' => 'array',
+ 'required' => false,
+ 'items' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ 'desc' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'endpoints' => [
+ [
+ 'regionId' => 'cn-beijing',
+ 'endpoint' => 'farui.cn-beijing.aliyuncs.com',
+ ],
+ ],
+];