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/zh_cn/dtsai/2026-04-01/api-docs.php | 587 +++++++++++++++++++++++++++++++ 1 file changed, 587 insertions(+) create mode 100644 data/zh_cn/dtsai/2026-04-01/api-docs.php (limited to 'data/zh_cn/dtsai/2026-04-01') diff --git a/data/zh_cn/dtsai/2026-04-01/api-docs.php b/data/zh_cn/dtsai/2026-04-01/api-docs.php new file mode 100644 index 0000000..d75fccc --- /dev/null +++ b/data/zh_cn/dtsai/2026-04-01/api-docs.php @@ -0,0 +1,587 @@ + '1.0', + 'info' => ['style' => 'RPC', 'product' => 'DtsAI', 'version' => '2026-04-01'], + 'directories' => ['CreateDocParserJob', 'DescribeDocParserJobStatus', 'DescribeDocParserJobResult', 'WebSearch', 'WebFetch'], + 'components' => [ + 'schemas' => [], + ], + 'apis' => [ + 'CreateDocParserJob' => [ + 'summary' => '创建文档解析任务。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + [ + 'ApiKey' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + 'riskType' => 'none', + 'chargeType' => 'paid', + 'abilityTreeNodes' => ['FEATUREdtsE4ZR2L'], + 'autoTest' => true, + 'tenantRelevance' => 'publicInformation', + ], + 'parameters' => [ + [ + 'name' => 'RegionId', + 'in' => 'query', + 'schema' => ['description' => '地域ID。', 'type' => 'string', 'required' => true, 'example' => 'cn-beijing'], + ], + [ + 'name' => 'FileUrl', + 'in' => 'query', + 'schema' => ['description' => '待解析文件的HTTP或HTTPS URL地址。'."\n" + .'>各语言SDK额外提供了`CreateDocParserJobAdvance`方法,支持直接传入本地文件流(如Java的InputStream),无需预先将文件上传到OSS并构造FileUrl。使用Advance方法时,用`FileUrlObject`参数(文件流)替代`FileUrl`参数(URL字符串),其余请求参数保持不变。SDK内部自动完成以下操作:'."\n" + .'>1. 获取OSS临时上传凭证。'."\n" + .'>2. 将文件流直传到OSS。'."\n" + .'>3. 使用生成的OSS URL调用CreateDocParserJob接口。', 'type' => 'string', 'required' => false, 'example' => 'https://xxx.oss-cn-beijing.aliyuncs.com/document.pdf?Expires=xxx&OSSAccessKeyId=xxx&Signature=xxx', 'isFileTransferUrl' => true], + ], + [ + 'name' => 'FileName', + 'in' => 'query', + 'schema' => ['description' => '文件名称,需包含文件扩展名。', 'type' => 'string', 'required' => true, 'example' => 'document.pdf'], + ], + [ + 'name' => 'FileFormat', + 'in' => 'query', + 'schema' => ['description' => '输入文件的格式。取值:'."\n" + ."\n" + .'- **pdf**:PDF文件。'."\n" + ."\n" + .'- **docx**:Word文件(docx格式)。'."\n" + ."\n" + .'- **doc**:Word文件(doc格式)。'."\n" + ."\n" + .'- **pptx**:PPT文件(pptx格式)。'."\n" + ."\n" + .'- **ppt**:PPT文件(ppt格式)。'."\n" + ."\n" + .'- **txt**:纯文本文件。'."\n" + ."\n" + .'- **md**:Markdown文件。'."\n" + ."\n" + .'- **png**:PNG图片。'."\n" + ."\n" + .'- **jpg**:JPG图片。'."\n" + ."\n" + .'- **jpeg**:JPEG图片。', 'type' => 'string', 'required' => true, 'example' => 'pdf'], + ], + [ + 'name' => 'OutputFormat', + 'in' => 'query', + 'schema' => ['description' => '解析结果的输出格式。取值:'."\n" + ."\n" + .'- **markdown**:Markdown格式。', 'type' => 'string', 'required' => true, 'example' => 'markdown'], + ], + [ + 'name' => 'OssFileUrl', + 'in' => 'query', + 'schema' => ['title' => 'oss文件url', 'description' => 'oss文件url', 'type' => 'string', 'required' => false], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => 'A30D0930-xxxx-xxxx-xxxx-C2C661CC8B58'], + 'Success' => ['description' => '请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['description' => 'HTTP状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'ErrorCode' => ['description' => '错误码。', 'type' => 'string', 'example' => 'InvalidParameter'], + 'ErrorMessage' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'The parameter is not valid.'], + 'JobId' => ['description' => '文档解析任务ID。', 'type' => 'string', 'example' => 'job_abc123'], + ], + ], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '创建文档解析任务', + 'description' => '- 地域:仅支持华北2(北京)。'."\n" + ."\n" + .'- 费用:公测期间可免费使用,暂不收取相关费用。', + 'changeSet' => [], + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'dtsai:CreateDocParserJob', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DtsAI', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + 'additionalActions' => [ + ['action' => 'dtsai:CallWithBearerToken', 'validationType' => 'conditional'], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"A30D0930-xxxx-xxxx-xxxx-C2C661CC8B58\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"ErrorCode\\": \\"InvalidParameter\\",\\n \\"ErrorMessage\\": \\"The parameter is not valid.\\",\\n \\"JobId\\": \\"job_abc123\\"\\n}","type":"json"}]', + ], + 'DescribeDocParserJobResult' => [ + 'summary' => '获取文档解析任务的结果。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + [ + 'ApiKey' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREdtsE4ZR2L'], + 'autoTest' => true, + 'tenantRelevance' => 'tenant', + ], + 'parameters' => [ + [ + 'name' => 'RegionId', + 'in' => 'query', + 'schema' => ['description' => '地域ID。', 'type' => 'string', 'required' => true, 'example' => 'cn-beijing'], + ], + [ + 'name' => 'JobId', + 'in' => 'query', + 'schema' => ['description' => '文档解析任务ID,通过调用CreateDocParserJob获取。', 'type' => 'string', 'required' => true, 'example' => 'job_abc123'], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => 'A30D0930-xxxx-xxxx-xxxx-C2C661CC8B58'], + 'Success' => ['description' => '请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['description' => 'HTTP状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'ErrorCode' => ['description' => '错误码。', 'type' => 'string', 'example' => 'JobNotFound'], + 'ErrorMessage' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'The specified job does not exist.'], + 'Result' => ['description' => '文档解析结果,格式由CreateDocParserJob请求时的OutputFormat参数决定。', 'type' => 'string', 'example' => '# Document Title'], + ], + ], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '获取文档解析任务的结果', + 'description' => '- 地域:仅支持华北2(北京)。'."\n" + ."\n" + .'- 费用:公测期间可免费使用,暂不收取相关费用。'."\n" + ."\n" + .'- 调用DescribeDocParserJobResult获取文档解析任务的解析结果。请在DescribeDocParserJobStatus返回Status为success后再调用本接口。任务结果保留72小时,过期后将无法获取。', + 'changeSet' => [], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dtsai:DescribeDocParserJobResult', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DtsAI', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + 'additionalActions' => [ + ['action' => 'dtsai:CallWithBearerToken', 'validationType' => 'conditional'], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"A30D0930-xxxx-xxxx-xxxx-C2C661CC8B58\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"ErrorCode\\": \\"JobNotFound\\",\\n \\"ErrorMessage\\": \\"The specified job does not exist.\\",\\n \\"Result\\": \\"# Document Title\\"\\n}","type":"json"}]', + ], + 'DescribeDocParserJobStatus' => [ + 'summary' => '查询文档解析任务的状态。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + [ + 'ApiKey' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREdtsE4ZR2L'], + 'autoTest' => true, + 'tenantRelevance' => 'tenant', + ], + 'parameters' => [ + [ + 'name' => 'RegionId', + 'in' => 'query', + 'schema' => ['description' => '地域ID。', 'type' => 'string', 'required' => true, 'example' => 'cn-beijing'], + ], + [ + 'name' => 'JobId', + 'in' => 'query', + 'schema' => ['description' => '文档解析任务ID,通过调用CreateDocParserJob获取。', 'type' => 'string', 'required' => true, 'example' => 'job_abc123'], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => 'A30D0930-xxxx-xxxx-xxxx-C2C661CC8B58'], + 'Success' => ['description' => '请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['description' => 'HTTP状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'ErrorCode' => ['description' => '错误码。', 'type' => 'string', 'example' => 'JobNotFound'], + 'ErrorMessage' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'The specified job does not exist.'], + 'Status' => ['description' => '任务状态。取值:'."\n" + ."\n" + .'- **init**:已创建,准备中。'."\n" + ."\n" + .'- **pending**:排队中,等待调度执行。'."\n" + ."\n" + .'- **running**:处理中,正在解析。'."\n" + ."\n" + .'- **success**:已完成,可调用DescribeDocParserJobResult获取结果。'."\n" + ."\n" + .'- **failed**:已失败,FailureMessage中有原因。'."\n" + ."\n" + .'- **cancelled**:已取消。', 'type' => 'string', 'example' => 'running'], + 'FailureMessage' => ['description' => '失败原因,仅Status为failed时有值。', 'type' => 'string', 'example' => 'Failed Message'], + ], + ], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '查询文档解析任务的状态', + 'description' => '- 地域:仅支持华北2(北京)。'."\n" + ."\n" + .'- 费用:公测期间可免费使用,暂不收取相关费用。', + 'changeSet' => [], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dtsai:DescribeDocParserJobStatus', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DtsAI', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + 'additionalActions' => [ + ['action' => 'dtsai:CallWithBearerToken', 'validationType' => 'conditional'], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"A30D0930-xxxx-xxxx-xxxx-C2C661CC8B58\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"ErrorCode\\": \\"JobNotFound\\",\\n \\"ErrorMessage\\": \\"The specified job does not exist.\\",\\n \\"Status\\": \\"running\\",\\n \\"FailureMessage\\": \\"Failed Message\\"\\n}","type":"json"}]', + ], + 'WebFetch' => [ + 'summary' => '获取网页内容', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + [ + 'ApiKey' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREdtsE4ZR2L'], + 'autoTest' => true, + 'tenantRelevance' => 'publicInformation', + ], + 'parameters' => [ + [ + 'name' => 'RegionId', + 'in' => 'query', + 'schema' => ['description' => '地域ID。', 'type' => 'string', 'required' => true, 'example' => 'cn-beijing'], + ], + [ + 'name' => 'Url', + 'in' => 'query', + 'schema' => ['description' => '待抓取的目标网页URL地址。', 'type' => 'string', 'required' => true, 'example' => 'https://xxx/projects/spring-boot'], + ], + [ + 'name' => 'OutputFormat', + 'in' => 'query', + 'schema' => ['description' => '输出格式。取值:'."\n" + ."\n" + .'- **markdown**:Markdown格式。'."\n" + ."\n" + .'- **html**:HTML格式。'."\n" + ."\n" + .'- **text**:纯文本格式。', 'type' => 'string', 'required' => false, 'example' => 'markdown'], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => 'A30D0930-xxxx-xxxx-xxxx-C2C661CC8B58'], + 'Success' => ['description' => '请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['description' => 'HTTP状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'ErrorCode' => ['description' => '错误码。', 'type' => 'string', 'example' => 'ErrorMessage Code'], + 'ErrorMessage' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'ErrorMessage Example'], + 'Url' => ['description' => '网页URL地址。', 'type' => 'string', 'example' => 'https://xxxx/projects/spring-boot'], + 'UrlType' => ['description' => 'URL分类结果。取值:'."\n" + .'- **static_html**:静态HTML页面。'."\n" + .'- **dynamic_js**:需JS渲染的SPA页面。'."\n" + .'- **audio**:音频文件。'."\n" + .'- **video**:视频文件。'."\n" + .'- **document**:文档文件(PDF、Word、PPT、Excel)。'."\n" + .'- **unknown**:无法识别。', 'type' => 'string', 'example' => 'static_html'], + 'ContentFormat' => ['description' => '实际输出格式。取值:'."\n" + ."\n" + .'- **markdown**:Markdown格式。'."\n" + ."\n" + .'- **html**:HTML格式。'."\n" + ."\n" + .'- **text**:纯文本格式。', 'type' => 'string', 'example' => 'markdown'], + 'Title' => ['description' => '网页标题。', 'type' => 'string', 'example' => 'Spring Boot'], + 'Content' => ['description' => '网页内容。', 'type' => 'string', 'example' => 'Spring Boot makes it easy to create stand-alone, production-grade Spring based Applications.'], + ], + ], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '获取网页内容', + 'description' => '- 地域:仅支持华北 2(北京)与新加坡地域。'."\n" + .'- 费用:公测期间可免费使用,暂不收取相关费用。', + 'changeSet' => [], + 'ramActions' => [ + [ + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'dtsai:WebFetch', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DtsAI', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + 'additionalActions' => [ + ['action' => 'dtsai:CallWithBearerToken', 'validationType' => 'conditional'], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"A30D0930-xxxx-xxxx-xxxx-C2C661CC8B58\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"ErrorCode\\": \\"ErrorMessage Code\\",\\n \\"ErrorMessage\\": \\"ErrorMessage Example\\",\\n \\"Url\\": \\"https://xxxx/projects/spring-boot\\",\\n \\"UrlType\\": \\"static_html\\",\\n \\"ContentFormat\\": \\"markdown\\",\\n \\"Title\\": \\"Spring Boot\\",\\n \\"Content\\": \\"Spring Boot makes it easy to create stand-alone, production-grade Spring based Applications.\\"\\n}","type":"json"}]', + ], + 'WebSearch' => [ + 'summary' => '网页搜索', + 'path' => '', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + [ + 'ApiKey' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREdtsE4ZR2L'], + 'autoTest' => true, + 'tenantRelevance' => 'publicInformation', + ], + 'parameters' => [ + [ + 'name' => 'RegionId', + 'in' => 'query', + 'schema' => ['description' => '地域ID。', 'type' => 'string', 'required' => true, 'example' => 'cn-beijing'], + ], + [ + 'name' => 'Query', + 'in' => 'query', + 'schema' => ['description' => '搜索查询语句。', 'type' => 'string', 'required' => true, 'example' => 'Spring Boot'], + ], + [ + 'name' => 'MaxResults', + 'in' => 'query', + 'schema' => ['description' => '返回结果的最大条数。默认值为10,取值范围为1~50。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => 'A30D0930-xxxx-xxxx-xxxx-C2C661CC8B58'], + 'Query' => ['description' => '搜索查询语句。', 'type' => 'string', 'example' => 'Spring Boot'], + 'TotalResults' => ['description' => '实际返回的结果总数。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'], + 'SearchResult' => [ + 'description' => '搜索结果列表。', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Title' => ['description' => '网页标题。', 'type' => 'string', 'example' => 'Spring Boot'], + 'Url' => ['description' => '网页URL地址。', 'type' => 'string', 'example' => 'https://xxx/projects/spring-boot'], + 'Snippet' => ['description' => '网页内容摘要。', 'type' => 'string', 'example' => 'Spring Boot makes it easy to create stand-alone, production-grade Spring based Applications.'], + ], + 'description' => '', + ], + ], + 'Success' => ['description' => '请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['description' => 'HTTP状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'ErrorCode' => ['description' => '错误码。', 'type' => 'string', 'example' => 'ErrorMessage Code'], + 'ErrorMessage' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'ErrorMessage Example'], + ], + ], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '网页搜索', + 'description' => '- 地域:仅支持华北2(北京)与新加坡地域。'."\n" + ."\n" + .'- 费用:公测期间可免费使用,暂不收取相关费用。', + 'changeSet' => [], + 'ramActions' => [ + [ + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'dtsai:WebSearch', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DtsAI', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + 'additionalActions' => [ + ['action' => 'dtsai:CallWithBearerToken', 'validationType' => 'conditional'], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"A30D0930-xxxx-xxxx-xxxx-C2C661CC8B58\\",\\n \\"Query\\": \\"Spring Boot\\",\\n \\"TotalResults\\": 10,\\n \\"SearchResult\\": [\\n {\\n \\"Title\\": \\"Spring Boot\\",\\n \\"Url\\": \\"https://xxx/projects/spring-boot\\",\\n \\"Snippet\\": \\"Spring Boot makes it easy to create stand-alone, production-grade Spring based Applications.\\"\\n }\\n ],\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"ErrorCode\\": \\"ErrorMessage Code\\",\\n \\"ErrorMessage\\": \\"ErrorMessage Example\\"\\n}","type":"json"}]', + ], + ], + 'endpoints' => [ + ['regionId' => 'cn-beijing', 'regionName' => '华北2(北京)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'dtsai.cn-beijing.aliyuncs.com', 'endpoint' => 'dtsai.cn-beijing.aliyuncs.com', 'vpc' => 'dtsai-vpc.cn-beijing.aliyuncs.com'], + ], + 'errorCodes' => [], + 'changeSet' => [], + 'ram' => [ + 'productCode' => 'DtsAI', + 'productName' => '数据传输服务', + 'ramCodes' => ['dtsai'], + 'ramLevel' => '操作级', + 'ramConditions' => [], + 'ramActions' => [ + [ + 'apiName' => 'DescribeDocParserJobResult', + 'description' => '获取文档解析任务的结果', + 'operationType' => 'get', + 'additionalActions' => [ + ['action' => 'dtsai:CallWithBearerToken', 'validationType' => 'conditional'], + ], + 'ramAction' => [ + 'action' => 'dtsai:DescribeDocParserJobResult', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DtsAI', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'WebSearch', + 'description' => '网页搜索', + 'operationType' => 'none', + 'additionalActions' => [ + ['action' => 'dtsai:CallWithBearerToken', 'validationType' => 'conditional'], + ], + 'ramAction' => [ + 'action' => 'dtsai:WebSearch', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DtsAI', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'DescribeDocParserJobStatus', + 'description' => '查询文档解析任务的状态', + 'operationType' => 'get', + 'additionalActions' => [ + ['action' => 'dtsai:CallWithBearerToken', 'validationType' => 'conditional'], + ], + 'ramAction' => [ + 'action' => 'dtsai:DescribeDocParserJobStatus', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DtsAI', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'CreateDocParserJob', + 'description' => '创建文档解析任务', + 'operationType' => 'create', + 'additionalActions' => [ + ['action' => 'dtsai:CallWithBearerToken', 'validationType' => 'conditional'], + ], + 'ramAction' => [ + 'action' => 'dtsai:CreateDocParserJob', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DtsAI', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'WebFetch', + 'description' => '获取网页内容', + 'operationType' => 'none', + 'additionalActions' => [ + ['action' => 'dtsai:CallWithBearerToken', 'validationType' => 'conditional'], + ], + 'ramAction' => [ + 'action' => 'dtsai:WebFetch', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'DtsAI', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + ], + 'resourceTypes' => [], + ], +]; -- cgit v1.2.3