'1.0', 'info' => ['style' => 'ROA', 'product' => 'FaRui', 'version' => '2024-06-28'], 'components' => [ 'schemas' => [], ], 'apis' => [ '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], ], ], ], '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], ], ], ], ], ], ], '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], ], ], ], ], ], '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], ], ], ], ], ], '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], ], ], ], ], ], '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], ], ], ], '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], ], ], ], ], ], ], 'endpoints' => [ ['regionId' => 'cn-beijing', 'regionName' => '华北2(北京)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'farui.cn-beijing.aliyuncs.com', 'endpoint' => 'farui.cn-beijing.aliyuncs.com', 'vpc' => ''], ], ];