summaryrefslogtreecommitdiff
path: root/data/zh_cn/green/2022-03-02
diff options
context:
space:
mode:
authorZhineng Li <im@zhineng.li>2026-07-12 17:11:17 +0800
committerZhineng Li <im@zhineng.li>2026-07-12 17:11:17 +0800
commit1c7f908ce09f98fdcbf79ed2a8ae21be60eaa634 (patch)
tree5f0857666365b7e40cdaa3733ebe1f3ba9e13c67 /data/zh_cn/green/2022-03-02
parent7347bac4ab7e136157fc94777e6cf87ef9e08599 (diff)
downloadafterglow-metadata-full-1c7f908ce09f98fdcbf79ed2a8ae21be60eaa634.tar.gz
afterglow-metadata-full-1c7f908ce09f98fdcbf79ed2a8ae21be60eaa634.zip
update APIs 20260712
Diffstat (limited to 'data/zh_cn/green/2022-03-02')
-rw-r--r--data/zh_cn/green/2022-03-02/api-docs.php7062
1 files changed, 3437 insertions, 3625 deletions
diff --git a/data/zh_cn/green/2022-03-02/api-docs.php b/data/zh_cn/green/2022-03-02/api-docs.php
index 2691a0f..ac1ced1 100644
--- a/data/zh_cn/green/2022-03-02/api-docs.php
+++ b/data/zh_cn/green/2022-03-02/api-docs.php
@@ -1,10 +1,6 @@
<?php return [
'version' => '1.0',
- 'info' => [
- 'style' => 'RPC',
- 'product' => 'Green',
- 'version' => '2022-03-02',
- ],
+ 'info' => ['style' => 'RPC', 'product' => 'Green', 'version' => '2022-03-02'],
'directories' => [
'TextModerationPlus',
'TextModeration',
@@ -20,90 +16,45 @@
'FileModeration',
'DescribeFileModerationResult',
[
- 'id' => 188835,
- 'title' => '其他',
- 'type' => 'directory',
- 'children' => [
- 'DescribeImageResultExt',
- 'UrlAsyncModeration',
- 'DescribeUrlModerationResult',
- 'DescribeUploadToken',
- 'ImageBatchModeration',
- 'ManualCallback',
- 'ManualModeration',
- 'ManualModerationResult',
- ],
- ],
- [
- 'id' => 0,
- 'title' => '其它',
+ 'children' => ['DescribeImageResultExt', 'UrlAsyncModeration', 'DescribeUrlModerationResult', 'DescribeUploadToken', 'ImageBatchModeration', 'ManualCallback', 'ManualModeration', 'ManualModerationResult', 'DescribeMultimodalModerationResult', 'MultiModalAgent', 'MultiModalGuard', 'MultiModalGuardAsync', 'MultiModalGuardAsyncResult', 'MultiModalGuardForBase64', 'MultiModalGuardWs', 'MultimodalAsyncModeration'],
'type' => 'directory',
- 'children' => [
- 'MultiModalGuard',
- 'MultiModalAgent',
- ],
+ 'title' => '其他',
+ 'id' => 35011,
],
],
'components' => [
'schemas' => [],
],
'apis' => [
- 'TextModerationPlus' => [
- 'summary' => '文本审核增强版升级PLUS服务,面向大语言模型的输入指令和生成文字分别提供审核服务,特定的模型输入指令支持检索标准回答,同时开放审核标签的开启和关闭功能。',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'DescribeFileModerationResult' => [
+ 'summary' => '文档审核结果',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'readAndWrite',
+ 'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
- 'chargeType' => 'paid',
- 'abilityTreeCode' => '207632',
- 'abilityTreeNodes' => [
- 'FEATURElvwangXYAQ5C',
- ],
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '205895',
+ 'abilityTreeNodes' => ['FEATURElvwang6CEZ66'],
],
'parameters' => [
[
'name' => 'Service',
'in' => 'formData',
- 'schema' => [
- 'description' => '审核服务类型',
- 'type' => 'string',
- 'required' => false,
- 'enumValueTitles' => [
- 'chat_detection_pro' => '私聊互动内容检测_专业版',
- 'llm_response_moderation' => '大语言模型生成文字检测',
- 'llm_query_moderation' => '大语言模型输入文字检测',
- 'aigc_moderation_byllm' => 'AIGC场景文本审核大模型服务',
- 'nickname_detection_pro' => '用户昵称检测_专业版',
- 'comment_detection_pro' => '公聊评论内容检测_专业版',
- 'ugc_moderation_byllm' => 'UGC场景文本审核大模型服务',
- 'ad_compliance_detection_pro' => '广告法合规检测_专业版',
- ],
- 'example' => 'ugc_moderation_byllm',
- ],
+ 'schema' => ['description' => '文件检测增强版支持的服务', 'type' => 'string', 'required' => false, 'example' => 'document_detection'],
],
[
'name' => 'ServiceParameters',
'in' => 'formData',
- 'schema' => [
- 'description' => '审核服务需要的参数集。JSON字符串格式',
- 'type' => 'string',
- 'required' => false,
- 'example' => '{'."\n"
- .' "content": "测试内容"'."\n"
- .' }',
- ],
+ 'schema' => ['description' => '审核服务需要的参数集,JSON字符串格式。'."\n"
+ .'- taskId:必填,待检测对象的URL,请确保该URL能通过公网访问到。', 'type' => 'string', 'required' => false, 'example' => '{\\"taskId\\":\\"vi_f_hPgx9PFIQISdlfA888hOFG-1yJq8v\\"}'],
],
],
'responses' => [
@@ -113,98 +64,124 @@
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => 'Id of the request',
- 'type' => 'string',
- 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****',
- ],
- 'Code' => [
- 'description' => '返回码。返回200代表成功。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '200',
- ],
- 'Message' => [
- 'description' => '错误信息',
- 'type' => 'string',
- 'example' => 'OK',
- ],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '6CF2815C-C8C7-4A01-B52E-FF6E24F53492'],
+ 'Code' => ['description' => '返回码。返回200代表成功。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
+ 'Message' => ['description' => '错误信息', 'type' => 'string', 'example' => 'OK'],
'Data' => [
- 'description' => '审核结果数据。',
+ 'description' => '返回数据。',
'type' => 'object',
'properties' => [
- 'Result' => [
- 'description' => '结果',
+ 'DataId' => ['description' => '数据ID。', 'type' => 'string', 'example' => '26769ada6e264e7ba9aa048241e12be9'],
+ 'Url' => ['description' => '文件下载URL路径。', 'type' => 'string', 'example' => 'https://detect-obj.oss-cn-hangzhou.aliyuncs.com/sample/xxxx.pdf'],
+ 'DocType' => ['description' => '可选,文档类型', 'type' => 'string', 'example' => 'doc'],
+ 'PageResult' => [
+ 'description' => '检测结果列表',
'type' => 'array',
'items' => [
- 'description' => '返回集合。',
+ 'description' => '结果内容',
'type' => 'object',
'properties' => [
- 'Label' => [
- 'description' => '标签',
- 'type' => 'string',
- 'example' => 'porn',
- ],
- 'Confidence' => [
- 'description' => '置信分值,0到100分,保留到小数点后2位。',
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '81.22',
- ],
- 'RiskWords' => [
- 'description' => '命中风险关键词',
- 'type' => 'string',
- 'example' => 'XXX',
- ],
- 'CustomizedHit' => [
- 'description' => '自定义关键词命中',
+ 'PageNum' => ['description' => '页码。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ 'ImageUrl' => ['description' => '图片地址', 'type' => 'string', 'example' => 'https://detect-obj.oss-cn-hangzhou.aliyuncs.com/sample/xxxx.jpg'],
+ 'TextUrl' => ['description' => '文本内容保存地址', 'type' => 'string', 'example' => 'https://detect-obj.oss-cn-hangzhou.aliyuncs.com/sample/xxxx.txt'],
+ 'ImageResult' => [
+ 'description' => '图片检测结果',
'type' => 'array',
'items' => [
- 'description' => '自定义命中',
+ 'description' => '结果内容',
'type' => 'object',
'properties' => [
- 'LibName' => [
- 'description' => '库名称',
- 'type' => 'string',
- 'example' => '测试词库',
+ 'Description' => ['description' => '描述', 'type' => 'string', 'example' => '这个是标题'],
+ 'Service' => ['description' => '调用的服务', 'type' => 'string', 'example' => 'baselineCheck'],
+ 'Location' => [
+ 'description' => '位置信息',
+ 'type' => 'object',
+ 'properties' => [
+ 'X' => ['description' => '坐标点的X值。', 'type' => 'integer', 'format' => 'int32', 'example' => '11'],
+ 'Y' => ['description' => '坐标点的Y值。', 'type' => 'integer', 'format' => 'int32', 'example' => '22'],
+ 'W' => ['description' => '坐标点的W值。', 'type' => 'integer', 'format' => 'int32', 'example' => '33'],
+ 'H' => ['description' => '坐标点的H值。', 'type' => 'integer', 'format' => 'int32', 'example' => '44'],
+ ],
],
- 'KeyWords' => [
- 'description' => '命中的关键词,逗号分隔',
- 'type' => 'string',
- 'example' => 'xxx',
+ 'LabelResult' => [
+ 'description' => '标签信息',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '标签信息',
+ 'type' => 'object',
+ 'properties' => [
+ 'Label' => ['description' => '标签', 'type' => 'string', 'example' => 'nonlabel'],
+ 'Confidence' => ['description' => '分险分', 'type' => 'number', 'format' => 'float', 'example' => '25.0'],
+ 'Description' => ['description' => '描述', 'type' => 'string', 'example' => '这个是标题'."\n"],
+ ],
+ ],
],
+ 'RiskLevel' => ['description' => '风险等级', 'type' => 'string', 'example' => 'high'],
],
],
],
- 'Description' => [
- 'description' => '标签描述',
- 'type' => 'string',
- 'example' => '未检测出风险',
- ],
- 'RiskPositions' => [
- 'description' => '风险词位置信息。',
+ 'TextResult' => [
+ 'description' => '文本审核结果。',
'type' => 'array',
'items' => [
- 'description' => '风险词位置信息。',
+ 'description' => '结果内容',
'type' => 'object',
'properties' => [
- 'RiskWord' => [
- 'description' => '违规关键词。',
- 'type' => 'string',
- 'example' => '词A',
- ],
- 'StartPos' => [
- 'description' => '敏感词的开始位置。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '4',
+ 'Description' => ['description' => '描述', 'type' => 'string', 'example' => '这是一个标题'],
+ 'Service' => ['description' => '服务', 'type' => 'string', 'example' => 'chat_detection'],
+ 'Text' => ['description' => '文本内容', 'type' => 'string', 'example' => '吧啦吧啦'],
+ 'TextSegment' => ['description' => '文本分段信息', 'type' => 'string', 'example' => '[0,999]'],
+ 'Labels' => ['description' => '标签的值。', 'type' => 'string', 'example' => 'porn'],
+ 'Descriptions' => ['description' => '标签描述。', 'type' => 'string', 'example' => '疑似广告内容'],
+ 'RiskWords' => ['description' => '命中风险关键词', 'type' => 'string', 'example' => 'xxx'],
+ 'RiskTips' => ['description' => '命中风险详情', 'type' => 'string', 'example' => 'xxx'],
+ 'RiskLevel' => ['description' => '风险等级', 'type' => 'string', 'example' => 'high'],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'PageSummary' => [
+ 'description' => '汇总信息',
+ 'type' => 'object',
+ 'properties' => [
+ 'PageSum' => ['description' => '总页数', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ 'ImageSummary' => [
+ 'description' => '图片汇总信息',
+ 'type' => 'object',
+ 'properties' => [
+ 'RiskLevel' => ['description' => '风险等级', 'type' => 'string', 'example' => 'high'],
+ 'ImageLabels' => [
+ 'description' => '图片标签。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '图片标签。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Label' => ['description' => '标签。', 'type' => 'string', 'example' => 'contraband'],
+ 'LabelSum' => ['description' => '标签出现次数。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ 'Description' => ['description' => '标签描述', 'type' => 'string', 'example' => 'test'],
],
- 'EndPos' => [
- 'description' => '敏感词的结束位置。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '6',
+ ],
+ ],
+ ],
+ ],
+ 'TextSummary' => [
+ 'description' => '文本汇总信息',
+ 'type' => 'object',
+ 'properties' => [
+ 'RiskLevel' => ['description' => '风险等级', 'type' => 'string', 'example' => 'high'],
+ 'TextLabels' => [
+ 'description' => '文本标签。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '文本标签。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Label' => ['description' => '标签。', 'type' => 'string', 'example' => 'contraband'],
+ 'LabelSum' => ['description' => '标签出现次数。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ 'Description' => ['description' => '标签描述。', 'type' => 'string', 'example' => '未检测出风险'],
],
],
],
@@ -212,158 +189,529 @@
],
],
],
- 'Advice' => [
- 'description' => '建议',
+ 'RiskLevel' => ['description' => '风险等级', 'type' => 'string', 'example' => 'high'],
+ 'AccountId' => ['description' => '客户入参AccountId', 'type' => 'string', 'example' => 'accountIdtest123'],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"6CF2815C-C8C7-4A01-B52E-FF6E24F53492\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"OK\\",\\n \\"Data\\": {\\n \\"DataId\\": \\"26769ada6e264e7ba9aa048241e12be9\\",\\n \\"Url\\": \\"https://detect-obj.oss-cn-hangzhou.aliyuncs.com/sample/xxxx.pdf\\",\\n \\"DocType\\": \\"doc\\",\\n \\"PageResult\\": [\\n {\\n \\"PageNum\\": 1,\\n \\"ImageUrl\\": \\"https://detect-obj.oss-cn-hangzhou.aliyuncs.com/sample/xxxx.jpg\\",\\n \\"TextUrl\\": \\"https://detect-obj.oss-cn-hangzhou.aliyuncs.com/sample/xxxx.txt\\",\\n \\"ImageResult\\": [\\n {\\n \\"Description\\": \\"这个是标题\\",\\n \\"Service\\": \\"baselineCheck\\",\\n \\"Location\\": {\\n \\"X\\": 11,\\n \\"Y\\": 22,\\n \\"W\\": 33,\\n \\"H\\": 44\\n },\\n \\"LabelResult\\": [\\n {\\n \\"Label\\": \\"nonlabel\\",\\n \\"Confidence\\": 25,\\n \\"Description\\": \\"这个是标题\\\\n\\"\\n }\\n ],\\n \\"RiskLevel\\": \\"high\\"\\n }\\n ],\\n \\"TextResult\\": [\\n {\\n \\"Description\\": \\"这是一个标题\\",\\n \\"Service\\": \\"chat_detection\\",\\n \\"Text\\": \\"吧啦吧啦\\",\\n \\"TextSegment\\": \\"[0,999]\\",\\n \\"Labels\\": \\"porn\\",\\n \\"Descriptions\\": \\"疑似广告内容\\",\\n \\"RiskWords\\": \\"xxx\\",\\n \\"RiskTips\\": \\"xxx\\",\\n \\"RiskLevel\\": \\"high\\"\\n }\\n ]\\n }\\n ],\\n \\"PageSummary\\": {\\n \\"PageSum\\": 1,\\n \\"ImageSummary\\": {\\n \\"RiskLevel\\": \\"high\\",\\n \\"ImageLabels\\": [\\n {\\n \\"Label\\": \\"contraband\\",\\n \\"LabelSum\\": 1,\\n \\"Description\\": \\"test\\"\\n }\\n ]\\n },\\n \\"TextSummary\\": {\\n \\"RiskLevel\\": \\"high\\",\\n \\"TextLabels\\": [\\n {\\n \\"Label\\": \\"contraband\\",\\n \\"LabelSum\\": 1,\\n \\"Description\\": \\"未检测出风险\\"\\n }\\n ]\\n }\\n },\\n \\"RiskLevel\\": \\"high\\",\\n \\"AccountId\\": \\"accountIdtest123\\"\\n }\\n}","type":"json"}]',
+ 'title' => '查询文档检测结果',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeFileModerationResult'],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'yundun-greenweb:DescribeFileModerationResult',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'DescribeImageModerationResult' => [
+ 'summary' => '获取图片审核增强版审核任务结果。',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'none',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '198839',
+ 'abilityTreeNodes' => ['FEATURElvwangLRLIH6'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ReqId',
+ 'in' => 'query',
+ 'schema' => ['description' => '图片异步审核增强版API返回的ReqId字段', 'type' => 'string', 'required' => false, 'example' => 'B0963D30-BAB4-562F-9ED0-7A23AEC51C7C'],
+ ],
+ ],
+ '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' => '2881AD4F-638B-52A3-BA20-F74C5B1CEAE3'],
+ 'Code' => ['description' => '错误码,和HTTP状态码一致。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
+ 'Msg' => ['description' => '本次请求的响应消息。', 'type' => 'string', 'example' => 'success'],
+ 'Data' => [
+ 'description' => '图片内容检测后的结果。',
+ 'type' => 'object',
+ 'properties' => [
+ 'DataId' => ['description' => 'API请求时传入的dataId 的值,如请求时未传入,则没有该字段。', 'type' => 'string', 'example' => '2a5389eb-4ff8-4584-ac99-644e2a539aa1'],
+ 'Result' => [
+ 'description' => '图片检测的风险标签、置信分等参数结果。',
'type' => 'array',
'items' => [
- 'description' => '代答内容',
+ 'description' => '返回集合。',
'type' => 'object',
'properties' => [
- 'Answer' => [
- 'description' => '回答',
- 'type' => 'string',
- 'example' => 'XXX',
- ],
- 'HitLabel' => [
- 'description' => '命中标签',
- 'type' => 'string',
- 'example' => 'XXX',
- ],
- 'HitLibName' => [
- 'description' => '命中库名称',
- 'type' => 'string',
- 'example' => 'XXX',
- ],
+ 'Label' => ['description' => '图片内容检测运算后返回的标签。', 'type' => 'string', 'example' => 'violent_explosion'],
+ 'Confidence' => ['description' => '置信分值,0到100分,保留到小数点后2位。', 'type' => 'number', 'format' => 'float', 'example' => '81.22'],
+ 'Description' => ['description' => '描述', 'type' => 'string', 'example' => '未检测出风险'],
+ 'RiskLevel' => ['description' => '风险等级。', 'type' => 'string', 'example' => 'high'],
],
],
],
- 'Score' => [
- 'description' => '分数。',
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '1',
+ 'FrameNum' => ['description' => '结果帧数量', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ 'Frame' => ['description' => '图片截帧信息。', 'type' => 'string', 'example' => '[{"result":[{"confidence":81.22,"label":"violent_explosion"}]}]'],
+ 'ReqId' => ['description' => '图片异步审核增强版API返回的reqId字段。', 'type' => 'string', 'example' => 'B0963D30-BAB4-562F-9ED0-7A23AEC51C7C'."\n"],
+ 'RiskLevel' => ['description' => '风险等级', 'type' => 'string', 'example' => 'high'],
+ 'ManualTaskId' => ['description' => '人审任务ID', 'type' => 'string', 'example' => 'xxxxx-xxxxx'],
+ 'AccountId' => ['description' => '客户入参AccountId', 'type' => 'string', 'example' => '123456789'],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"2881AD4F-638B-52A3-BA20-F74C5B1CEAE3\\",\\n \\"Code\\": 200,\\n \\"Msg\\": \\"success\\",\\n \\"Data\\": {\\n \\"DataId\\": \\"2a5389eb-4ff8-4584-ac99-644e2a539aa1\\",\\n \\"Result\\": [\\n {\\n \\"Label\\": \\"violent_explosion\\",\\n \\"Confidence\\": 81.22,\\n \\"Description\\": \\"未检测出风险\\",\\n \\"RiskLevel\\": \\"high\\"\\n }\\n ],\\n \\"FrameNum\\": 1,\\n \\"Frame\\": \\"[{\\\\\\"result\\\\\\":[{\\\\\\"confidence\\\\\\":81.22,\\\\\\"label\\\\\\":\\\\\\"violent_explosion\\\\\\"}]}]\\",\\n \\"ReqId\\": \\"B0963D30-BAB4-562F-9ED0-7A23AEC51C7C\\\\n\\",\\n \\"RiskLevel\\": \\"high\\",\\n \\"ManualTaskId\\": \\"xxxxx-xxxxx\\",\\n \\"AccountId\\": \\"123456789\\"\\n }\\n}","type":"json"}]',
+ 'title' => '查询图片异步检测结果',
+ 'description' => '- 计费信息:该接口不计费。'."\n"
+ .'- QPS限流:本接口的单用户QPS限制为100次/秒。超过限制,API调用会被限流,这可能会影响您的业务,请合理调用。',
+ 'responseParamsDescription' => '以下为接口返回code的含义说明,系统仅对code返回为200的请求计量计费,其他code不会计费。'."\n"
+ ."\n"
+ .'| **Code** | **说明** |'."\n"
+ .'| --- | --- |'."\n"
+ .'| 200 | 请求正常。 |'."\n"
+ .'| 280 | 检测中。 |'."\n"
+ .'| 400 | 请求参数为空。 |'."\n"
+ .'| 401 | 请求参数错误。 |'."\n"
+ .'| 402 | 请求参数长度不符合接口规定,请检查并修改。 |'."\n"
+ .'| 403 | 请求超过QPS限制,请检查并调整并发。 |'."\n"
+ .'| 404 | 传入的图片下载遇到错误,请检查或重试。 |'."\n"
+ .'| 405 | 传入的图片下载超时,可能是因为图片无法访问,请检查调整后重试。 |'."\n"
+ .'| 406 | 传入的图片过大,请检查调整图片大小后再重试。 |'."\n"
+ .'| 407 | 传入的图片格式暂不支持,请检查调整后重试。 |'."\n"
+ .'| 408 | 该账号无权限调用该接口,可能是账号未开通或者已欠费,或者调用账号未被授权访问。 |'."\n"
+ .'| 409 | 传入的reqId不存在,可能是查询间隔过快,或者已经超过30天有效期。 |'."\n"
+ .'| 500 | 系统异常。 |',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeImageModerationResult'],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'yundun-greenweb:DescribeImageModerationResult',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'DescribeImageResultExt' => [
+ 'summary' => '图片审核增强版辅助信息API用于获取图片审核增强版API接口识别的更多辅助信息,包含图片文字识别结果、自定义图库命中信息等。',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '178655',
+ 'abilityTreeNodes' => ['FEATURElvwangLRLIH6'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ReqId',
+ 'in' => 'formData',
+ 'schema' => ['description' => '图片审核增强版API返回的requestId字段', 'type' => 'string', 'required' => false, 'example' => '638EDDC65C82AB39319A9F60'],
+ ],
+ [
+ 'name' => 'InfoType',
+ 'in' => 'formData',
+ 'schema' => ['description' => '需要获取的信息内容,多个值使用英文逗号隔开,取值:'."\n"
+ .'- customImage:自定义图库命中信息'."\n"
+ .'- textInImage:图片中文字信息', 'type' => 'string', 'required' => false, 'example' => 'customImage,textInImage'],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '返回对象。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '6CF2815C-C8C7-4A01-B52E-FF6E24F53492'],
+ 'Code' => ['description' => '状态码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
+ 'Msg' => ['description' => '请求信息的响应信息。', 'type' => 'string', 'example' => 'success'],
+ 'Data' => [
+ 'description' => '返回数据。',
+ 'type' => 'object',
+ 'properties' => [
+ 'CustomImage' => [
+ 'description' => '自定义图库命中信息列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '自定义图库命中信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'ImageId' => ['description' => '图片ID。', 'type' => 'string', 'example' => '123456'],
+ 'LibName' => ['description' => '图库名。', 'type' => 'string', 'example' => '图库123'],
+ 'LibId' => ['description' => '图库ID。', 'type' => 'string', 'example' => '123456'],
+ ],
+ ],
],
- 'RiskLevel' => [
- 'description' => '风险等级',
- 'type' => 'string',
- 'example' => 'high',
+ 'TextInImage' => [
+ 'description' => '返回命中的图片中文字信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'OcrDatas' => [
+ 'description' => '返回识别到的图片中的文字信息。',
+ 'type' => 'array',
+ 'items' => ['description' => '文字信息。', 'type' => 'string', 'example' => 'abcd'],
+ ],
+ 'RiskWords' => [
+ 'description' => '命中风险关键词',
+ 'type' => 'array',
+ 'items' => ['description' => '文字信息。', 'type' => 'string', 'example' => 'abcd'],
+ ],
+ 'CustomTexts' => [
+ 'description' => '当命中自定义文本库时,返回自定义库ID、自定义库名称和自定义词。',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'LibId' => ['description' => '自定义库ID', 'type' => 'string', 'example' => '123456'],
+ 'LibName' => ['description' => '自定义库名称。', 'type' => 'string', 'example' => '自定义库1'],
+ 'KeyWords' => ['description' => '自定义词,多个词用逗号分隔。', 'type' => 'string', 'example' => '自定义词1,自定义词2'],
+ ],
+ ],
+ ],
+ ],
],
- 'DataId' => [
- 'description' => '检测对象对应的数据ID。'."\n"
- .'> 如果在检测请求参数中传入了dataId,则此处返回对应的dataId。',
- 'type' => 'string',
- 'example' => 'text1234',
+ 'PublicFigure' => [
+ 'description' => '人物信息列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '人物信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'FigureId' => ['description' => '人物ID。', 'type' => 'string', 'example' => 'yzazhzou'],
+ ],
+ ],
],
- 'SensitiveResult' => [
- 'description' => '敏感数据检测结果',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '图片辅助信息获取接口',
+ 'description' => '本接口需要配合图片审核增强版API使用,在调用图片审核增强版API接口之后,可以调用本接口,获取更多的接口检测信息。此接口免费。',
+ 'requestParamsDescription' => '建议调用图片审核增强版接口5秒钟之后查询,辅助信息存储最长时间为30天,建议您需要时及时获取辅助信息,并做好日志存储。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeImageResultExt'],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'yundun-greenweb:DescribeImageResultExt',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"6CF2815C-C8C7-4A01-B52E-FF6E24F53492\\",\\n \\"Code\\": 200,\\n \\"Msg\\": \\"success\\",\\n \\"Data\\": {\\n \\"CustomImage\\": [\\n {\\n \\"ImageId\\": \\"123456\\",\\n \\"LibName\\": \\"图库123\\",\\n \\"LibId\\": \\"123456\\"\\n }\\n ],\\n \\"TextInImage\\": {\\n \\"OcrDatas\\": [\\n \\"abcd\\"\\n ],\\n \\"RiskWords\\": [\\n \\"abcd\\"\\n ],\\n \\"CustomTexts\\": [\\n {\\n \\"LibId\\": \\"123456\\",\\n \\"LibName\\": \\"自定义库1\\",\\n \\"KeyWords\\": \\"自定义词1,自定义词2\\"\\n }\\n ]\\n },\\n \\"PublicFigure\\": [\\n {\\n \\"FigureId\\": \\"yzazhzou\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
+ ],
+ 'DescribeMultimodalModerationResult' => [
+ 'summary' => '查询异步多模态检测结果',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'none',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '198839',
+ 'abilityTreeNodes' => ['FEATURElvwangLRLIH6'],
+ 'autoTest' => true,
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ReqId',
+ 'in' => 'query',
+ 'schema' => ['description' => '异步检测接口返回的ReqId字段', 'type' => 'string', 'required' => false, 'example' => 'AAAAA-BBBBB-AIXI-1314-CCCCC'],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****'],
+ 'Code' => ['description' => '错误码,和HTTP状态码一致。', 'type' => 'integer', 'format' => 'int64', 'example' => '200'],
+ 'Msg' => ['description' => '本次请求的响应消息。', 'type' => 'string', 'example' => 'OK'],
+ 'Data' => [
+ 'description' => '返回数据。',
+ 'type' => 'object',
+ 'properties' => [
+ 'CommentDatas' => [
+ 'description' => '评论检测结果。',
'type' => 'array',
'items' => [
- 'description' => '敏感数据检测结果',
'type' => 'object',
'properties' => [
- 'Label' => [
- 'description' => '标签。',
- 'type' => 'string',
- 'example' => '1234',
- ],
- 'SensitiveLevel' => [
- 'description' => '敏感等级',
- 'type' => 'string',
- 'example' => 'S1',
+ 'CommentDatas' => [
+ 'description' => '检测结果。',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Results' => [
+ 'description' => '评论检测结果。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '检测结果',
+ 'type' => 'object',
+ 'properties' => [
+ 'Description' => ['description' => '对 Labal 字段的说明。', 'type' => 'string', 'example' => '疑似含有烟火类内容元素'],
+ 'Label' => ['description' => '风险标签。'."\n"
+ ."\n", 'type' => 'string', 'example' => 'violent_explosion'],
+ ],
+ ],
+ ],
+ ],
+ 'description' => '',
+ ],
],
- 'SensitiveData' => [
- 'description' => '敏感数据列表',
+ 'Results' => [
+ 'description' => '评论检测结果。',
'type' => 'array',
'items' => [
- 'description' => '敏感数据',
- 'type' => 'string',
- 'example' => '上海',
+ 'description' => '图片审核服务类型',
+ 'type' => 'object',
+ 'properties' => [
+ 'Description' => ['description' => '对Labal字段的说明。', 'type' => 'string', 'example' => '疑似含有烟火类内容元素'],
+ 'Label' => ['description' => '风险标签。'."\n"
+ ."\n", 'type' => 'string', 'example' => 'violent_explosion'],
+ ],
],
],
- 'Description' => [
- 'description' => '描述',
- 'type' => 'string',
- 'example' => '省份',
+ ],
+ 'description' => '',
+ ],
+ ],
+ 'MainData' => [
+ 'description' => '主帖检测结果。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Results' => [
+ 'description' => '主帖检测结果。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '检测结果',
+ 'type' => 'object',
+ 'properties' => [
+ 'Description' => ['description' => '对 Labal 字段的说明。', 'type' => 'string', 'example' => '疑似含有烟火类内容元素'],
+ 'Label' => ['description' => '风险标签。', 'type' => 'string', 'example' => 'violent_explosion'],
+ ],
],
],
],
],
- 'AttackResult' => [
- 'description' => '提示词攻击检测结果',
+ 'ReqId' => ['description' => '异步检测接口返回的ReqId字段', 'type' => 'string', 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****'],
+ 'RiskLevel' => ['description' => '风险等级', 'type' => 'string', 'example' => 'high'],
+ 'DataId' => ['description' => 'API请求时传入的dataId 的值,如请求时未传入,则没有该字段。', 'type' => 'string', 'example' => 'data1234'],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '查询异步多模态检测结果',
+ 'description' => '- 计费信息:该接口不计费。'."\n"
+ .'- 查询超时:建议您将查询间隔设置为30秒(即在提交异步检测任务30秒后查询结果),最长不能超出24小时,否则结果将会自动删除。'."\n"
+ .'- 本接口的单用户QPS限制为10次/秒。超过限制,API调用会被限流,这可能会影响您的业务,请合理调用。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Code\\": 200,\\n \\"Msg\\": \\"OK\\",\\n \\"Data\\": {\\n \\"CommentDatas\\": [\\n {\\n \\"CommentDatas\\": [\\n {\\n \\"Results\\": [\\n {\\n \\"Description\\": \\"疑似含有烟火类内容元素\\",\\n \\"Label\\": \\"violent_explosion\\"\\n }\\n ]\\n }\\n ],\\n \\"Results\\": [\\n {\\n \\"Description\\": \\"疑似含有烟火类内容元素\\",\\n \\"Label\\": \\"violent_explosion\\"\\n }\\n ]\\n }\\n ],\\n \\"MainData\\": {\\n \\"Results\\": [\\n {\\n \\"Description\\": \\"疑似含有烟火类内容元素\\",\\n \\"Label\\": \\"violent_explosion\\"\\n }\\n ]\\n },\\n \\"ReqId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"RiskLevel\\": \\"high\\",\\n \\"DataId\\": \\"data1234\\"\\n }\\n}","type":"json"}]',
+ ],
+ 'DescribeUploadToken' => [
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'none',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '186981',
+ 'abilityTreeNodes' => ['FEATURElvwang78REFZ'],
+ ],
+ 'parameters' => [],
+ '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' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****'],
+ 'Code' => ['description' => '返回码。返回200代表成功。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
+ 'Msg' => ['description' => '本次请求的响应消息。', 'type' => 'string', 'example' => 'OK'],
+ 'Data' => [
+ 'description' => '返回数据。',
+ 'type' => 'object',
+ 'properties' => [
+ 'AccessKeyId' => ['description' => '文件上传临时凭证的AccessKeyId。', 'type' => 'string', 'example' => 'STS.NUEUjvDqMuvH6oQA1TXxxH4wVR'],
+ 'AccessKeySecret' => ['description' => '临时授权secret。', 'type' => 'string', 'example' => 'xxxx'],
+ 'SecurityToken' => ['description' => '文件上传临时凭证的安全令牌。', 'type' => 'string', 'example' => 'xxxx'],
+ 'FileNamePrefix' => ['description' => '文件前缀。', 'type' => 'string', 'example' => 'upload/1xxb89/'],
+ 'OssInternalEndPoint' => ['description' => 'oss内网地址。', 'type' => 'string', 'example' => 'https://oss-cn-shanghai-internal.aliyuncs.com'],
+ 'OssInternetEndPoint' => ['description' => 'oss公网地址。', 'type' => 'string', 'example' => 'https://oss-cn-shanghai.aliyuncs.com'],
+ 'BucketName' => ['description' => '存储空间名称。', 'type' => 'string', 'example' => 'oss-cip-shanghai'],
+ 'Expiration' => ['description' => '失效时间点。', 'type' => 'integer', 'format' => 'int32', 'example' => '1720577200'],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '查询上传token',
+ 'summary' => '查询上传token',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeUploadToken'],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'yundun-greenweb:DescribeUploadToken',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Code\\": 200,\\n \\"Msg\\": \\"OK\\",\\n \\"Data\\": {\\n \\"AccessKeyId\\": \\"STS.NUEUjvDqMuvH6oQA1TXxxH4wVR\\",\\n \\"AccessKeySecret\\": \\"xxxx\\",\\n \\"SecurityToken\\": \\"xxxx\\",\\n \\"FileNamePrefix\\": \\"upload/1xxb89/\\",\\n \\"OssInternalEndPoint\\": \\"https://oss-cn-shanghai-internal.aliyuncs.com\\",\\n \\"OssInternetEndPoint\\": \\"https://oss-cn-shanghai.aliyuncs.com\\",\\n \\"BucketName\\": \\"oss-cip-shanghai\\",\\n \\"Expiration\\": 1720577200\\n }\\n}","type":"json"}]',
+ ],
+ 'DescribeUrlModerationResult' => [
+ 'summary' => '根据 URL 异步检测返回的 ReqId查询检测结果。',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'none',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '211720',
+ 'abilityTreeNodes' => ['FEATURElvwang7UL554'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ReqId',
+ 'in' => 'formData',
+ 'schema' => ['description' => 'URL异步检测接口返回的ReqId字段', 'type' => 'string', 'required' => false, 'example' => 'B0963D30-BAB4-562F-9ED0-7A23AEC51C7C'],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => ['description' => '本次请求的ID。', 'type' => 'string', 'example' => '01F9144A-2088-5D87-935B-2DB865284B1A'],
+ 'Code' => ['description' => '返回码。返回200代表成功。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
+ 'Msg' => ['description' => '本次请求的响应消息。', 'type' => 'string', 'example' => 'success'],
+ 'Data' => [
+ 'description' => '返回数据。',
+ 'type' => 'object',
+ 'properties' => [
+ 'DataId' => ['description' => 'API请求时传入的dataId 的值,如请求时未传入,则没有该字段。', 'type' => 'string', 'example' => '26769ada6e264e7ba9aa048241e12be9'],
+ 'ReqId' => ['description' => 'URL异步检测接口返回的ReqId字段', 'type' => 'string', 'example' => 'B0963D30-BAB4-562F-9ED0-7A23AEC51C7C'."\n"],
+ 'Result' => [
+ 'description' => '返回集合。',
'type' => 'array',
'items' => [
- 'description' => '提示词攻击检测结果',
+ 'description' => '返回集合。',
'type' => 'object',
'properties' => [
- 'Label' => [
- 'description' => '标签',
- 'type' => 'string',
- 'example' => 'safe',
- ],
- 'Confidence' => [
- 'description' => '置信分',
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '0',
- ],
- 'AttackLevel' => [
- 'description' => '攻击等级',
- 'type' => 'string',
- 'example' => 'none',
- ],
- 'Description' => [
- 'description' => '描述',
- 'type' => 'string',
- 'example' => 'safe',
- ],
+ 'Label' => ['description' => 'URL检测运算后返回的标签。', 'type' => 'string', 'example' => 'sexual_url'],
+ 'Confidence' => ['description' => '置信分值,0到100分,保留到小数点后2位。', 'type' => 'number', 'format' => 'float', 'example' => '81.22'],
],
],
],
- 'SensitiveLevel' => [
- 'description' => '敏感等级',
- 'type' => 'string',
- 'example' => 'S0',
- ],
- 'AttackLevel' => [
- 'description' => '攻击等级',
- 'type' => 'string',
- 'example' => 'none',
- ],
- 'ManualTaskId' => [
- 'description' => '人审任务ID',
- 'type' => 'string',
- 'example' => 'xxxxx-xxxxx',
- ],
- 'DetectedLanguage' => [
- 'description' => '识别语种',
- 'type' => 'string',
- 'example' => 'en',
- ],
- 'TranslatedContent' => [
- 'description' => '翻译后内容',
- 'type' => 'string',
- 'example' => 'hello',
- ],
- 'AccountId' => [
- 'description' => '客户入参AccountId',
- 'type' => 'string',
- 'example' => '123456789',
- ],
- 'Ext' => [
- 'description' => '文本辅助参考信息。',
+ 'ExtraInfo' => [
+ 'description' => '补充信息。',
'type' => 'object',
'properties' => [
- 'LlmContent' => [
- 'description' => '大模型输出内容',
- 'type' => 'object',
- 'properties' => [
- 'OutputText' => [
- 'description' => '输出内容。',
- 'type' => 'string',
- 'example' => '正常。文本中无风险内容。',
- ],
- ],
- ],
+ 'IcpType' => ['description' => 'ICP备案类型。', 'type' => 'string', 'example' => '企业'],
+ 'IcpNo' => ['description' => 'ICP备案号。', 'type' => 'string', 'example' => 'ICP备123456789'],
+ 'SiteType' => ['description' => '网站类型', 'type' => 'string', 'example' => 'game'],
],
],
],
@@ -372,19 +720,36 @@
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"OK\\",\\n \\"Data\\": {\\n \\"Result\\": [\\n {\\n \\"Label\\": \\"porn\\",\\n \\"Confidence\\": 81.22,\\n \\"RiskWords\\": \\"XXX\\",\\n \\"CustomizedHit\\": [\\n {\\n \\"LibName\\": \\"测试词库\\",\\n \\"KeyWords\\": \\"xxx\\"\\n }\\n ],\\n \\"Description\\": \\"未检测出风险\\",\\n \\"RiskPositions\\": [\\n {\\n \\"RiskWord\\": \\"词A\\",\\n \\"StartPos\\": 4,\\n \\"EndPos\\": 6\\n }\\n ]\\n }\\n ],\\n \\"Advice\\": [\\n {\\n \\"Answer\\": \\"XXX\\",\\n \\"HitLabel\\": \\"XXX\\",\\n \\"HitLibName\\": \\"XXX\\"\\n }\\n ],\\n \\"Score\\": 1,\\n \\"RiskLevel\\": \\"high\\",\\n \\"DataId\\": \\"text1234\\",\\n \\"SensitiveResult\\": [\\n {\\n \\"Label\\": \\"1234\\",\\n \\"SensitiveLevel\\": \\"S1\\",\\n \\"SensitiveData\\": [\\n \\"上海\\"\\n ],\\n \\"Description\\": \\"省份\\"\\n }\\n ],\\n \\"AttackResult\\": [\\n {\\n \\"Label\\": \\"safe\\",\\n \\"Confidence\\": 0,\\n \\"AttackLevel\\": \\"none\\",\\n \\"Description\\": \\"safe\\"\\n }\\n ],\\n \\"SensitiveLevel\\": \\"S0\\",\\n \\"AttackLevel\\": \\"none\\",\\n \\"ManualTaskId\\": \\"xxxxx-xxxxx\\",\\n \\"DetectedLanguage\\": \\"en\\",\\n \\"TranslatedContent\\": \\"hello\\",\\n \\"AccountId\\": \\"123456789\\",\\n \\"Ext\\": {\\n \\"LlmContent\\": {\\n \\"OutputText\\": \\"正常。文本中无风险内容。\\"\\n }\\n }\\n }\\n}","type":"json"}]',
- 'title' => '文本审核Plus版',
- 'description' => '请确保在使用该接口前,已[开通内容安全增强版服务](https://common-buy.aliyun.com/?commodityCode=lvwang_cip_public_cn)且充分了解文本审核增强PLUS版产品的[收费方式和价格](https://help.aliyun.com/document_detail/2671445.html?#section-6od-32j-99n)。',
- ],
- 'TextModeration' => [
- 'summary' => '采用动态策略和模型强化变异对抗性,提供多种业务场景的审核服务,识别出多种违规风险。',
- 'methods' => [
- 'post',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '查询URL异步检测结果',
+ 'description' => '- 计费信息:该接口不计费。'."\n"
+ .'- 查询超时:建议您将查询间隔设置为480秒(即在提交异步检测任务480秒之后查询结果),最长不能超出3天,否则结果将会自动删除。'."\n"
+ .'- 本接口的单用户QPS限制为100次/秒。超过限制,API调用会被限流,这可能会影响您的业务,请合理调用。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeUrlModerationResult'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'yundun-greenweb:DescribeUrlModerationResult',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"01F9144A-2088-5D87-935B-2DB865284B1A\\",\\n \\"Code\\": 200,\\n \\"Msg\\": \\"success\\",\\n \\"Data\\": {\\n \\"DataId\\": \\"26769ada6e264e7ba9aa048241e12be9\\",\\n \\"ReqId\\": \\"B0963D30-BAB4-562F-9ED0-7A23AEC51C7C\\\\n\\",\\n \\"Result\\": [\\n {\\n \\"Label\\": \\"sexual_url\\",\\n \\"Confidence\\": 81.22\\n }\\n ],\\n \\"ExtraInfo\\": {\\n \\"IcpType\\": \\"企业\\",\\n \\"IcpNo\\": \\"ICP备123456789\\",\\n \\"SiteType\\": \\"game\\"\\n }\\n }\\n}","type":"json"}]',
+ ],
+ 'FileModeration' => [
+ 'summary' => '文档检测',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
@@ -393,169 +758,471 @@
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'get',
+ 'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'paid',
- 'abilityTreeCode' => '128601',
- 'abilityTreeNodes' => [
- 'FEATURElvwang8G4HBD',
- ],
+ 'abilityTreeCode' => '204033',
+ 'abilityTreeNodes' => ['FEATURElvwangCXKRID'],
],
'parameters' => [
[
'name' => 'Service',
'in' => 'formData',
+ 'schema' => ['description' => '文件检测增强版支持的服务', 'type' => 'string', 'required' => false, 'example' => 'document_detection'],
+ ],
+ [
+ 'name' => 'ServiceParameters',
+ 'in' => 'formData',
+ 'schema' => ['description' => '审核服务需要的参数集,JSON字符串格式。'."\n"
+ .'- url:必填,待检测对象的URL,请确保该URL能通过公网访问到。'."\n"
+ .'- dataId:选填,检测对象对应的数据ID。', 'type' => 'string', 'required' => false, 'example' => '{"url":"https://detect-obj.oss-cn-hangzhou.aliyuncs.com/sample/xxxx.pdf"}'],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
'schema' => [
- 'description' => '审核服务类型,包括:'."\n"
- .'nickname_detection:用户昵称'."\n"
- .'chat_detection:聊天互动'."\n"
- .'comment_detection:动态评论'."\n"
- .'pgc_detection:教学物料PGC',
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'enumValueTitles' => [
- 'pgc_detection' => 'PGC通用物料检测',
- 'nickname_detection' => '用户昵称检测',
- 'comment_multilingual_pro' => '国际业务多语言检测',
- 'chat_detection' => '私聊互动内容检测',
- 'ad_compliance_detection' => '广告法合规检测',
- 'comment_detection' => '公聊评论内容检测',
- 'ai_art_detection' => 'AIGC类文字检测',
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****'],
+ 'Message' => ['description' => '错误信息', 'type' => 'string', 'example' => 'SUCCESS'],
+ 'Code' => ['description' => '错误码,和HTTP状态码一致。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
+ 'Data' => [
+ 'description' => '返回数据。',
+ 'type' => 'object',
+ 'properties' => [
+ 'TaskId' => ['description' => '任务ID', 'type' => 'string', 'example' => 'xxxxx-xxxxx'],
+ ],
+ ],
],
- 'example' => 'nickname_detection',
],
],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '文档检测任务提交',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'FileModeration'],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'yundun-greenweb:FileModeration',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Message\\": \\"SUCCESS\\",\\n \\"Code\\": 200,\\n \\"Data\\": {\\n \\"TaskId\\": \\"xxxxx-xxxxx\\"\\n }\\n}","type":"json"}]',
+ ],
+ 'ImageAsyncModeration' => [
+ 'summary' => '图片异步检测接口,异步检测任务不会实时返回检测结果,您需要通过callback或者轮询的方式获取检测结果。检测结果最长保留3天。',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'none',
+ 'riskType' => 'none',
+ 'chargeType' => 'paid',
+ 'abilityTreeCode' => '197491',
+ 'abilityTreeNodes' => ['FEATURElvwang78REFZ'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Service',
+ 'in' => 'query',
+ 'schema' => ['description' => '图片检测增强版支持的检测服务。取值:'."\n"
+ .'- baselineCheck:通用基线检测'."\n"
+ .'- baselineCheck_pro:通用基线检测_专业版'."\n"
+ .'- baselineCheck_cb:通用基线检测_海外版'."\n"
+ .'- tonalityImprove:内容治理检测'."\n"
+ .'- aigcCheck:AIGC图片检测'."\n"
+ .'- profilePhotoCheck:头像图片检测'."\n"
+ .'- advertisingCheck:营销素材检测'."\n"
+ .'- liveStreamCheck:视频\\直播截图检测', 'type' => 'string', 'required' => false, 'example' => 'baselineCheck'],
+ ],
[
'name' => 'ServiceParameters',
- 'in' => 'formData',
+ 'in' => 'query',
+ 'schema' => ['description' => '内容检测对象的相关参数集。JSON字符串格式。', 'type' => 'string', 'required' => false, 'example' => '{"imageUrl":"https://img.alicdn.com/tfs/TB1U4r9AeH2gK0jSZJnXXaT1FXa-2880-480.png","dataId":"img123****"}'],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
'schema' => [
- 'description' => '审核服务需要的参数集。JSON字符串格式,关于每个字符串的描述',
- 'type' => 'string',
- 'required' => false,
- 'example' => '{"content":"地图还是黑的"}',
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => ['title' => 'Id of the request', 'description' => '本次调用请求的ID,是由阿里云为该请求生成的唯一标识符,可用于排查和定位问题。', 'type' => 'string', 'example' => '4A926AE2-4C96-573F-824F-0532960799F8'],
+ 'Code' => ['description' => '返回码。返回200代表成功。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
+ 'Msg' => ['description' => '本次请求的响应消息。', 'type' => 'string', 'example' => 'success'],
+ 'Data' => [
+ 'description' => '图片异步检测后的结果。',
+ 'type' => 'object',
+ 'properties' => [
+ 'ReqId' => ['description' => '图片异步审核增强版API返回的reqId字段,可用此字段查询检测结果。', 'type' => 'string', 'example' => 'A07B3DB9-D762-5C56-95B1-8EC55CF176D2'],
+ 'DataId' => ['description' => 'API请求时传入的dataId 的值,如请求时未传入,则没有该字段。', 'type' => 'string', 'example' => 'fb5ffab1-993b-449f-b8d6-b97d5e3331f2'],
+ ],
+ ],
+ ],
],
],
],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '图片异步检测',
+ 'description' => '- 图片支持以下格式:PNG、JPG、JPEG、BMP、WEBP、TIFF、ICO、HEIC、SVG。'."\n"
+ ."\n"
+ .' - 图片大小限制在10MB以内,像素建议大于200*200(px),像素过低会影响内容安全检测算法的效果。'."\n"
+ ."\n"
+ .'- 图片下载时间限制为3秒内,如果下载时间超过3秒,返回下载超时。',
+ 'responseParamsDescription' => '以下为接口返回code的含义说明。'."\n"
+ ."\n"
+ .'| **Code** | **说明** |'."\n"
+ .'| --- | --- |'."\n"
+ .'| 200 | 请求正常。 |'."\n"
+ .'| 400 | 请求参数为空。 |'."\n"
+ .'| 401 | 请求参数错误。 |'."\n"
+ .'| 402 | 请求参数长度不符合接口规定,请检查并修改。 |'."\n"
+ .'| 403 | 请求超过QPS限制,请检查并调整并发。 |'."\n"
+ .'| 408 | 该账号无权限调用该接口,可能是账号未开通或者已欠费,或者调用账号未被授权访问。 |'."\n"
+ .'| 500 | 系统异常。 |',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ImageAsyncModeration'],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'yundun-greenweb:ImageAsyncModeration',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"4A926AE2-4C96-573F-824F-0532960799F8\\",\\n \\"Code\\": 200,\\n \\"Msg\\": \\"success\\",\\n \\"Data\\": {\\n \\"ReqId\\": \\"A07B3DB9-D762-5C56-95B1-8EC55CF176D2\\",\\n \\"DataId\\": \\"fb5ffab1-993b-449f-b8d6-b97d5e3331f2\\"\\n }\\n}","type":"json"}]',
+ ],
+ 'ImageBatchModeration' => [
+ 'summary' => '图片批量调用',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'none',
+ 'riskType' => 'none',
+ 'chargeType' => 'paid',
+ 'abilityTreeCode' => '214644',
+ 'abilityTreeNodes' => ['FEATURElvwang78REFZ', 'FEATURElvwangRPPHPG', 'FEATURElvwangRBUEEU', 'FEATURElvwang7UTKSK', 'FEATURElvwangYHRCHH', 'FEATURElvwang8B97ZG', 'FEATURElvwangT9BDZM'],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Service',
+ 'in' => 'query',
+ 'schema' => ['description' => '图片审核增强版支持的检测类型,多个使用英文逗号隔开。取值:'."\n"
+ ."\n"
+ .'- baselineCheck:通用基线检测'."\n"
+ .'- baselineCheck_pro:通用基线检测_专业版'."\n"
+ .'- tonalityImprove:内容治理检测'."\n"
+ .'- aigcCheck:AIGC图片检测', 'type' => 'string', 'required' => false, 'example' => 'baselineCheck,tonalityImprove'],
+ ],
+ [
+ 'name' => 'ServiceParameters',
+ 'in' => 'query',
+ 'schema' => ['description' => '内容检测对象的相关参数集。', 'type' => 'string', 'required' => false, 'example' => '{'."\n"
+ .' "imageUrl": "https://img.alicdn.com/tfs/TB1U4r9AeH2gK0jSZJnXXaT1FXa-2880-480.png",'."\n"
+ .' "dataId": "img123****"'."\n"
+ .' }'],
+ ],
+ ],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
- 'description' => '响应体',
+ 'description' => 'Body返回值',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****',
- ],
- 'Code' => [
- 'description' => '错误码。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '200',
- ],
- 'Message' => [
- 'description' => '请求消息的响应消息。',
- 'type' => 'string',
- 'example' => 'OK',
- ],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => '本次调用请求的ID,是由阿里云为该请求生成的唯一标识符,可用于排查和定位问题。', 'type' => 'string', 'example' => '6CF2815C-C8C7-4A01-B52E-FF6E24F53492'."\n"],
+ 'Code' => ['description' => '返回码。返回200代表成功。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
+ 'Msg' => ['description' => '本次请求的响应消息。', 'type' => 'string', 'example' => 'success'],
'Data' => [
- 'description' => '审核结果数据。',
+ 'description' => '图片内容检测后的结果。',
'type' => 'object',
'properties' => [
- 'labels' => [
- 'description' => '标签,多个用英文逗号分隔。包括:'."\n"
- .'ad:广告'."\n"
- .'profanity:辱骂'."\n"
- .'contraband:违禁品'."\n"
- .'sexual_content:色情'."\n"
- .'violence:暴恐'."\n"
- .'nonsense:灌水'."\n"
- .'spam:垃圾信息'."\n"
- .'negative_content:不良场景'."\n"
- .'cyberbullying:网络暴力'."\n"
- .'C_customized:用户库命中',
- 'type' => 'string',
- 'example' => 'porn',
- ],
- 'reason' => [
- 'description' => '原因定位的JSON字符串,包含以下字段:'."\n"
- .'1. riskTips:细分标签'."\n"
- .'2. riskWords:命中风险词'."\n"
- .'3. adNums:命中广告号'."\n"
- .'4. customizedWords:命中用户词'."\n"
- .'5. customizedLibs:命中用户词库名'."\n"
- .'6. riskLevel:风险等级,根据系统推荐的风险等级返回,返回值包括:'."\n"
- .'- high:高风险'."\n"
- .'- medium:中风险'."\n"
- .'- low:低风险',
- 'type' => 'string',
- 'example' => '{\\"riskLevel\\":\\"high\\",\\"riskTips\\":\\"色情_低俗词\\",\\"riskWords\\":\\"色情服务\\"}',
- ],
- 'accountId' => [
- 'description' => '客户入参传入的accountId',
- 'type' => 'string',
- 'example' => '123456',
- ],
- 'deviceId' => [
- 'description' => '客户入参传入的deviceId',
- 'type' => 'string',
- 'example' => 'xxxxxx',
- ],
- 'dataId' => [
- 'description' => '检测对象对应的数据ID。'."\n"
- .'> 如果在检测请求参数中传入了dataId,则此处返回对应的dataId。',
- 'type' => 'string',
- 'example' => 'text1234',
- ],
- 'descriptions' => [
- 'description' => '标签描述。',
- 'type' => 'string',
- 'example' => '疑似广告内容',
- ],
- 'manualTaskId' => [
- 'description' => '人审任务ID',
- 'type' => 'string',
- 'example' => 'xxxxx-xxxxx',
- ],
- 'ext' => [
- 'description' => '文本辅助参考信息。',
- 'type' => 'object',
- 'properties' => [
- 'llmContent' => [
- 'description' => '大模型输出内容。',
- 'type' => 'object',
- 'properties' => [
- 'outputText' => [
- 'description' => '输出内容。',
- 'type' => 'string',
- 'example' => '正常。文本中无风险内容。',
+ 'DataId' => ['description' => '检测对象对应的数据ID。', 'type' => 'string', 'example' => '26769ada6e264e7ba9aa048241e12be9'],
+ 'Results' => [
+ 'description' => '每个Service图片检测的风险标签、置信分等参数结果,数组结构。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Service' => ['description' => '图片检测增强版支持的检测服务。', 'type' => 'string', 'example' => 'baselineCheck'],
+ 'Result' => [
+ 'description' => '图片检测的风险标签、置信分等参数结果,数组结构。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Label' => ['description' => '图片内容检测运算后返回的标签。同一张图片可能会检出多个标签和分值。', 'type' => 'string', 'example' => 'violent_explosion'],
+ 'Confidence' => ['description' => '置信分值,0到100分,保留到小数点后2位。部分标签无置信分。', 'type' => 'number', 'format' => 'float', 'example' => '81.22'],
+ 'Description' => ['description' => '描述。', 'type' => 'string', 'example' => '未检测出风险'],
+ ],
+ ],
+ ],
+ 'Ext' => [
+ 'description' => '图片辅助参考信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'TextInImage' => [
+ 'description' => '返回命中的图片中文字信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'OcrResult' => [
+ 'description' => '返回识别到的图片中的每行文字信息。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '数据结构',
+ 'type' => 'object',
+ 'properties' => [
+ 'Text' => ['description' => '文字信息。', 'type' => 'string', 'example' => 'abcd'],
+ 'Location' => [
+ 'description' => '文字行坐标信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'X' => ['description' => '以图片左上角为坐标原点,文字区域左上角到y轴的距离,单位:像素。', 'type' => 'integer', 'format' => 'int32', 'example' => '11'],
+ 'Y' => ['description' => '以图片左上角为坐标原点,文字区域左上角到x轴的距离,单位:像素。', 'type' => 'integer', 'format' => 'int32', 'example' => '22'],
+ 'H' => ['description' => '文字区域的高度,单位:像素。', 'type' => 'integer', 'format' => 'int32', 'example' => '33'],
+ 'W' => ['description' => '文字区域的宽度,单位:像素。', 'type' => 'integer', 'format' => 'int32', 'example' => '44'],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'RiskWord' => [
+ 'description' => '命中风险关键词。',
+ 'type' => 'array',
+ 'items' => ['description' => '文字信息。', 'type' => 'string', 'example' => '火箭'],
+ ],
+ 'CustomText' => [
+ 'description' => '当命中自定义文本库时,返回自定义库ID、自定义库名称和自定义词。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'LibId' => ['description' => '自定义库ID。', 'type' => 'string', 'example' => '123456'],
+ 'LibName' => ['description' => '自定义库名称。', 'type' => 'string', 'example' => '自定义库1'],
+ 'KeyWords' => ['description' => '自定义词,多个词用逗号分隔。', 'type' => 'string', 'example' => '自定义词1,自定义词2'],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'CustomImage' => [
+ 'description' => '自定义图库命中信息列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'LibId' => ['description' => '自定义库ID', 'type' => 'string', 'example' => '1965304870002'],
+ 'ImageId' => ['description' => '命中的自定义图片ID。', 'type' => 'string', 'example' => '1965304870002'],
+ 'LibName' => ['description' => '命中的自定义图库名。', 'type' => 'string', 'example' => '白名单'],
+ ],
+ ],
+ ],
+ 'PublicFigure' => [
+ 'description' => '人物信息列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'FigureName' => ['description' => '识别出的人物名称信息。', 'type' => 'string', 'example' => 'xxxxx'],
+ 'FigureId' => ['description' => '识别出的人物编码信息。', 'type' => 'string', 'example' => '12324222'],
+ 'Location' => [
+ 'description' => '标识的位置信息。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'X' => ['description' => '以图片左上角为坐标原点,文字区域左上角到y轴的距离,单位:像素。', 'type' => 'integer', 'format' => 'int32', 'example' => '11'],
+ 'Y' => ['description' => '以图片左上角为坐标原点,文字区域左上角到x轴的距离,单位:像素。', 'type' => 'integer', 'format' => 'int32', 'example' => '22'],
+ 'W' => ['description' => '文字区域的宽度,单位:像素。', 'type' => 'integer', 'format' => 'int32', 'example' => '330'],
+ 'H' => ['description' => '文字区域的高度,单位:像素。', 'type' => 'integer', 'format' => 'int32', 'example' => '440'],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'LogoData' => [
+ 'description' => 'Logo标识信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Location' => [
+ 'description' => '标识的位置信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'X' => ['description' => '以图片左上角为坐标原点,文字区域左上角到y轴的距离,单位:像素。', 'type' => 'integer', 'format' => 'int32', 'example' => '11'],
+ 'Y' => ['description' => '以图片左上角为坐标原点,文字区域左上角到x轴的距离,单位:像素。', 'type' => 'integer', 'format' => 'int32', 'example' => '22'],
+ 'W' => ['description' => 'Logo区域的宽度,单位:像素。', 'type' => 'integer', 'format' => 'int32', 'example' => '330'],
+ 'H' => ['description' => 'Logo区域的高度,单位:像素。', 'type' => 'integer', 'format' => 'int32', 'example' => '440'],
+ ],
+ ],
+ 'Logo' => [
+ 'description' => '标识信息。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Label' => ['description' => '标识类别。', 'type' => 'string', 'example' => 'logo_sns'],
+ 'Name' => ['description' => '标识名。', 'type' => 'string', 'example' => '阿里云'],
+ 'Confidence' => ['description' => '置信分值,0到100分,保留到小数点后2位。', 'type' => 'number', 'format' => 'float', 'example' => '99.1'],
+ ],
+ ],
+ ],
+ ],
+ ],
],
],
+ 'RiskLevel' => ['description' => '风险等级。', 'type' => 'string', 'example' => 'high'],
+ ],
+ ],
+ ],
+ 'Result' => [
+ 'description' => '图片检测的风险标签、置信分等参数结果,数组结构。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '数据结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Label' => ['description' => '图片内容检测运算后返回的标签。同一张图片可能会检出多个标签和分值。', 'type' => 'string', 'example' => 'violent_explosion'],
+ 'Confidence' => ['description' => '置信分值,0到100分,保留到小数点后2位。部分标签无置信分。', 'type' => 'number', 'format' => 'float', 'example' => '81.22'],
+ 'Description' => ['description' => '描述。', 'type' => 'string', 'example' => '未检测出风险'],
],
],
],
+ 'RiskLevel' => ['description' => '风险等级。', 'type' => 'string', 'example' => 'high'],
+ 'ManualTaskId' => ['description' => '人审任务ID', 'type' => 'string', 'example' => 'xxxxx-xxxxx'],
],
],
],
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"OK\\",\\n \\"Data\\": {\\n \\"labels\\": \\"porn\\",\\n \\"reason\\": \\"{\\\\\\\\\\\\\\"riskLevel\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"high\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"riskTips\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"色情_低俗词\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"riskWords\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"色情服务\\\\\\\\\\\\\\"}\\",\\n \\"accountId\\": \\"123456\\",\\n \\"deviceId\\": \\"xxxxxx\\",\\n \\"dataId\\": \\"text1234\\",\\n \\"descriptions\\": \\"疑似广告内容\\",\\n \\"manualTaskId\\": \\"xxxxx-xxxxx\\",\\n \\"ext\\": {\\n \\"llmContent\\": {\\n \\"outputText\\": \\"正常。文本中无风险内容。\\"\\n }\\n }\\n }\\n}","type":"json"}]',
- 'title' => '文本审核增强版',
- 'description' => '请确保在使用该接口前,已充分了解文本审核增强版产品的[收费方式和价格](https://help.aliyun.com/document_detail/464388.html?#section-itm-m2s-ugq)。',
- ],
- 'ImageModeration' => [
- 'summary' => '图片审核。',
- 'methods' => [
- 'post',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '图片多Service同步检测',
+ 'requestParamsDescription' => '```'."\n"
+ .'{'."\n"
+ .' "Service": "baselineCheck,tonalityImprove",'."\n"
+ .' "ServiceParameters": {'."\n"
+ .' "imageUrl": "https://img.alicdn.com/tfs/TB1U4r9AeH2gK0jSZJnXXaT1FXa-2880-480.png",'."\n"
+ .' "dataId": "img123****"'."\n"
+ .' }'."\n"
+ .'}'."\n"
+ ."\n"
+ .'```',
+ 'responseParamsDescription' => '```'."\n"
+ .'{'."\n"
+ .' "Msg": "success",'."\n"
+ .' "Code": 200,'."\n"
+ .' "Data": {'."\n"
+ .' "DataId": "img123****",'."\n"
+ .' "Result": ['."\n"
+ .' {'."\n"
+ .' "Label": "violent_explosion",'."\n"
+ .' "Confidence": 70,'."\n"
+ .' "Description": "烟火类内容"'."\n"
+ .' },'."\n"
+ .' {'."\n"
+ .' "Label": "violent_explosion_lib",'."\n"
+ .' "Confidence": 81,'."\n"
+ .' "Description": "烟火类内容_命中自定义库"'."\n"
+ .' }'."\n"
+ .' ],'."\n"
+ .' "RiskLevel": "high",'."\n"
+ .' "Results": ['."\n"
+ .' {'."\n"
+ .' "Result": ['."\n"
+ .' {'."\n"
+ .' "Label": "violent_explosion",'."\n"
+ .' "Confidence": 70,'."\n"
+ .' "Description": "烟火类内容"'."\n"
+ .' }'."\n"
+ .' ],'."\n"
+ .' "RiskLevel": "high",'."\n"
+ .' "Service": "baselineCheck_pro"'."\n"
+ .' },'."\n"
+ .' {'."\n"
+ .' "Result": ['."\n"
+ .' {'."\n"
+ .' "Label": "violent_explosion_lib",'."\n"
+ .' "Confidence": 81,'."\n"
+ .' "Description": "烟火类内容_命中自定义库"'."\n"
+ .' }'."\n"
+ .' ],'."\n"
+ .' "RiskLevel": "high",'."\n"
+ .' "Service": "baselineCheck"'."\n"
+ .' }'."\n"
+ .' ]'."\n"
+ .' },'."\n"
+ .' "RequestId": "ABCD1234-1234-1234-1234-1234XYZ"'."\n"
+ .'}'."\n"
+ .'```',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ImageBatchModeration'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'yundun-greenweb:ImageBatchModeration',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"6CF2815C-C8C7-4A01-B52E-FF6E24F53492\\\\n\\",\\n \\"Code\\": 200,\\n \\"Msg\\": \\"success\\",\\n \\"Data\\": {\\n \\"DataId\\": \\"26769ada6e264e7ba9aa048241e12be9\\",\\n \\"Results\\": [\\n {\\n \\"Service\\": \\"baselineCheck\\",\\n \\"Result\\": [\\n {\\n \\"Label\\": \\"violent_explosion\\",\\n \\"Confidence\\": 81.22,\\n \\"Description\\": \\"未检测出风险\\"\\n }\\n ],\\n \\"Ext\\": {\\n \\"TextInImage\\": {\\n \\"OcrResult\\": [\\n {\\n \\"Text\\": \\"abcd\\",\\n \\"Location\\": {\\n \\"X\\": 11,\\n \\"Y\\": 22,\\n \\"H\\": 33,\\n \\"W\\": 44\\n }\\n }\\n ],\\n \\"RiskWord\\": [\\n \\"火箭\\"\\n ],\\n \\"CustomText\\": [\\n {\\n \\"LibId\\": \\"123456\\",\\n \\"LibName\\": \\"自定义库1\\",\\n \\"KeyWords\\": \\"自定义词1,自定义词2\\"\\n }\\n ]\\n },\\n \\"CustomImage\\": [\\n {\\n \\"LibId\\": \\"1965304870002\\",\\n \\"ImageId\\": \\"1965304870002\\",\\n \\"LibName\\": \\"白名单\\"\\n }\\n ],\\n \\"PublicFigure\\": [\\n {\\n \\"FigureName\\": \\"xxxxx\\",\\n \\"FigureId\\": \\"12324222\\",\\n \\"Location\\": [\\n {\\n \\"X\\": 11,\\n \\"Y\\": 22,\\n \\"W\\": 330,\\n \\"H\\": 440\\n }\\n ]\\n }\\n ],\\n \\"LogoData\\": {\\n \\"Location\\": {\\n \\"X\\": 11,\\n \\"Y\\": 22,\\n \\"W\\": 330,\\n \\"H\\": 440\\n },\\n \\"Logo\\": [\\n {\\n \\"Label\\": \\"logo_sns\\",\\n \\"Name\\": \\"阿里云\\",\\n \\"Confidence\\": 99.1\\n }\\n ]\\n }\\n },\\n \\"RiskLevel\\": \\"high\\"\\n }\\n ],\\n \\"Result\\": [\\n {\\n \\"Label\\": \\"violent_explosion\\",\\n \\"Confidence\\": 81.22,\\n \\"Description\\": \\"未检测出风险\\"\\n }\\n ],\\n \\"RiskLevel\\": \\"high\\",\\n \\"ManualTaskId\\": \\"xxxxx-xxxxx\\"\\n }\\n}","type":"json"}]',
+ ],
+ 'ImageModeration' => [
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -568,9 +1235,7 @@
'riskType' => 'none',
'chargeType' => 'paid',
'abilityTreeCode' => '142557',
- 'abilityTreeNodes' => [
- 'FEATURElvwang78REFZ',
- ],
+ 'abilityTreeNodes' => ['FEATURElvwang78REFZ'],
],
'parameters' => [
[
@@ -597,22 +1262,8 @@
'type' => 'string',
'required' => false,
'enumValueTitles' => [
- 'liveStreamCheck' => '视频截图检测',
- 'generalOcr' => '通用图文OCR',
- 'postImageCheck' => '帖子评论图片检测',
- 'postImageCheckByVL_cb' => '大小模型融合图片审核服务_出海版',
- 'baselineCheck_pro' => '通用基线检测_专业版',
- 'advertisingCheck' => '营销素材检测',
- 'baselineCheck_cb' => '通用基线检测_出海版',
- 'tonalityImprove' => '内容治理检测',
- 'profilePhotoCheck' => '头像图片检测',
- 'baselineCheck' => '通用基线检测',
- 'postImageCheckByVL' => '大小模型融合图片审核服务',
- 'generalRecognition' => '图片万物识别',
- 'aigcCheck' => 'AIGC图片检测',
- 'aigcViolationDetection' => 'AIGC图片侵权检测',
- 'baselineCheckByVL' => '通用图片审核大模型服务',
- 'aigcDetector' => '图片是否AIGC生成判定',
+ 'liveStreamCheck' => '视频截图检测', 'generalOcr' => '通用图文OCR', 'postImageCheck' => '帖子评论图片检测', 'postImageCheckByVL_cb' => '大小模型融合图片审核服务_出海版', 'baselineCheck_pro' => '通用基线检测_专业版', 'advertisingCheck' => '营销素材检测', 'baselineCheck_cb' => '通用基线检测_出海版', 'tonalityImprove' => '内容治理检测', 'profilePhotoCheck' => '头像图片检测', 'baselineCheck' => '通用基线检测',
+ 'postImageCheckByVL' => '大小模型融合图片审核服务', 'generalRecognition' => '图片万物识别', 'aigcCheck' => 'AIGC图片检测', 'aigcViolationDetection' => 'AIGC图片侵权检测', 'baselineCheckByVL' => '通用图片审核大模型服务', 'aigcDetector' => '图片是否AIGC生成判定',
],
'example' => 'baselineCheck',
],
@@ -620,15 +1271,10 @@
[
'name' => 'ServiceParameters',
'in' => 'formData',
- 'schema' => [
- 'description' => '内容检测对象的相关参数集。JSON字符串格式。'."\n"
- .'- imageUrl:待检测对象的URL,必填。'."\n"
- .'- dataId:检测对象对应的数据ID,可选。'."\n"
- .'- referer:referer请求头,用于防盗链等场景,可选。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '{"imageUrl":"https://img.alicdn.com/tfs/TB1U4r9AeH2gK0jSZJnXXaT1FXa-2880-480.png","dataId":"img1234567"}',
- ],
+ 'schema' => ['description' => '内容检测对象的相关参数集。JSON字符串格式。'."\n"
+ .'- imageUrl:待检测对象的URL,必填。'."\n"
+ .'- dataId:检测对象对应的数据ID,可选。'."\n"
+ .'- referer:referer请求头,用于防盗链等场景,可选。', 'type' => 'string', 'required' => false, 'example' => '{"imageUrl":"https://img.alicdn.com/tfs/TB1U4r9AeH2gK0jSZJnXXaT1FXa-2880-480.png","dataId":"img1234567"}'],
],
],
'responses' => [
@@ -637,33 +1283,16 @@
'description' => 'Body返回值。',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'description' => '本次调用请求的ID,是由阿里云为该请求生成的唯一标识符,可用于排查和定位问题。',
- 'type' => 'string',
- 'example' => '6CF2815C-C8C7-4A01-B52E-FF6E24F53492',
- ],
- 'Code' => [
- 'description' => '返回码。返回200代表成功。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '200',
- ],
- 'Msg' => [
- 'description' => '本次请求的响应消息。',
- 'type' => 'string',
- 'example' => 'OK',
- ],
+ 'RequestId' => ['description' => '本次调用请求的ID,是由阿里云为该请求生成的唯一标识符,可用于排查和定位问题。', 'type' => 'string', 'example' => '6CF2815C-C8C7-4A01-B52E-FF6E24F53492'],
+ 'Code' => ['description' => '返回码。返回200代表成功。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
+ 'Msg' => ['description' => '本次请求的响应消息。', 'type' => 'string', 'example' => 'OK'],
'Data' => [
'description' => '图片内容检测后的结果。',
'type' => 'object',
'properties' => [
- 'DataId' => [
- 'description' => '检测对象对应的数据ID。'."\n"
- ."\n"
- .'> 如果在检测请求参数中传入了dataId,则此处返回对应的dataId。',
- 'type' => 'string',
- 'example' => 'fb5ffab1-993b-449f-b8d6-b97d5e3331f2',
- ],
+ 'DataId' => ['description' => '检测对象对应的数据ID。'."\n"
+ ."\n"
+ .'> 如果在检测请求参数中传入了dataId,则此处返回对应的dataId。', 'type' => 'string', 'example' => 'fb5ffab1-993b-449f-b8d6-b97d5e3331f2'],
'Result' => [
'description' => '图片检测的风险标签、置信分等参数结果,数组结构。',
'type' => 'array',
@@ -671,27 +1300,10 @@
'description' => '数据结构。',
'type' => 'object',
'properties' => [
- 'Label' => [
- 'description' => '图片内容检测运算后返回的标签。同一张图片可能会检出多个标签和分值。',
- 'type' => 'string',
- 'example' => 'violent_explosion',
- ],
- 'Confidence' => [
- 'description' => '置信分值,0到100分,保留到小数点后2位。部分标签无置信分。',
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '81.22',
- ],
- 'Description' => [
- 'description' => '描述。',
- 'type' => 'string',
- 'example' => '未检测出风险',
- ],
- 'RiskLevel' => [
- 'description' => '风险等级。',
- 'type' => 'string',
- 'example' => 'high',
- ],
+ 'Label' => ['description' => '图片内容检测运算后返回的标签。同一张图片可能会检出多个标签和分值。', 'type' => 'string', 'example' => 'violent_explosion'],
+ 'Confidence' => ['description' => '置信分值,0到100分,保留到小数点后2位。部分标签无置信分。', 'type' => 'number', 'format' => 'float', 'example' => '81.22'],
+ 'Description' => ['description' => '描述。', 'type' => 'string', 'example' => '未检测出风险'],
+ 'RiskLevel' => ['description' => '风险等级。', 'type' => 'string', 'example' => 'high'],
],
],
],
@@ -705,19 +1317,11 @@
'items' => [
'type' => 'object',
'properties' => [
- 'Classification' => [
- 'description' => '图片万物识别的类别。',
- 'type' => 'string',
- 'example' => '办公大楼'."\n",
- ],
- 'Confidence' => [
- 'description' => '置信分值,0到100分,保留到小数点后2位。返回nonLabel时无置信分。',
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '81.22'."\n"
- ."\n",
- ],
+ 'Classification' => ['description' => '图片万物识别的类别。', 'type' => 'string', 'example' => '办公大楼'."\n"],
+ 'Confidence' => ['description' => '置信分值,0到100分,保留到小数点后2位。返回nonLabel时无置信分。', 'type' => 'number', 'format' => 'float', 'example' => '81.22'."\n"
+ ."\n"],
],
+ 'description' => '',
],
],
'OcrResult' => [
@@ -726,42 +1330,19 @@
'items' => [
'type' => 'object',
'properties' => [
- 'Text' => [
- 'description' => '识别出来的单条文本信息。',
- 'type' => 'string',
- 'example' => 'abcd',
- ],
+ 'Text' => ['description' => '识别出来的单条文本信息。', 'type' => 'string', 'example' => 'abcd'],
'Location' => [
'description' => '文字行及坐标信息。',
'type' => 'object',
'properties' => [
- 'X' => [
- 'description' => '以图片左上角为坐标原点,文字区域左上角到y轴的距离,单位:像素。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '11',
- ],
- 'Y' => [
- 'description' => '以图片左上角为坐标原点,文字区域左上角到x轴的距离,单位:像素。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '22',
- ],
- 'W' => [
- 'description' => '文字区域的宽度,单位:像素。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '33',
- ],
- 'H' => [
- 'description' => '文字区域的高度,单位:像素。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '44',
- ],
+ 'X' => ['description' => '以图片左上角为坐标原点,文字区域左上角到y轴的距离,单位:像素。', 'type' => 'integer', 'format' => 'int32', 'example' => '11'],
+ 'Y' => ['description' => '以图片左上角为坐标原点,文字区域左上角到x轴的距离,单位:像素。', 'type' => 'integer', 'format' => 'int32', 'example' => '22'],
+ 'W' => ['description' => '文字区域的宽度,单位:像素。', 'type' => 'integer', 'format' => 'int32', 'example' => '33'],
+ 'H' => ['description' => '文字区域的高度,单位:像素。', 'type' => 'integer', 'format' => 'int32', 'example' => '44'],
],
],
],
+ 'description' => '',
],
],
'TextInImage' => [
@@ -774,52 +1355,25 @@
'items' => [
'type' => 'object',
'properties' => [
- 'Text' => [
- 'description' => '文字信息。',
- 'type' => 'string',
- 'example' => 'abcd',
- ],
+ 'Text' => ['description' => '文字信息。', 'type' => 'string', 'example' => 'abcd'],
'Location' => [
'description' => '文字行及坐标信息。',
'type' => 'object',
'properties' => [
- 'X' => [
- 'description' => '以图片左上角为坐标原点,文字区域左上角到y轴的距离,单位:像素。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '11',
- ],
- 'Y' => [
- 'description' => '以图片左上角为坐标原点,文字区域左上角到x轴的距离,单位:像素。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '22',
- ],
- 'H' => [
- 'description' => '文字区域的高度,单位:像素。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '33',
- ],
- 'W' => [
- 'description' => '文字区域的宽度,单位:像素。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '44',
- ],
+ 'X' => ['description' => '以图片左上角为坐标原点,文字区域左上角到y轴的距离,单位:像素。', 'type' => 'integer', 'format' => 'int32', 'example' => '11'],
+ 'Y' => ['description' => '以图片左上角为坐标原点,文字区域左上角到x轴的距离,单位:像素。', 'type' => 'integer', 'format' => 'int32', 'example' => '22'],
+ 'H' => ['description' => '文字区域的高度,单位:像素。', 'type' => 'integer', 'format' => 'int32', 'example' => '33'],
+ 'W' => ['description' => '文字区域的宽度,单位:像素。', 'type' => 'integer', 'format' => 'int32', 'example' => '44'],
],
],
],
+ 'description' => '',
],
],
'RiskWord' => [
'description' => '命中风险关键词',
'type' => 'array',
- 'items' => [
- 'description' => '文字信息。',
- 'type' => 'string',
- 'example' => 'abcd',
- ],
+ 'items' => ['description' => '文字信息。', 'type' => 'string', 'example' => 'abcd'],
],
'CustomText' => [
'description' => '当命中自定义文本库时,返回自定义库ID、自定义库名称和自定义词。',
@@ -827,22 +1381,11 @@
'items' => [
'type' => 'object',
'properties' => [
- 'LibId' => [
- 'description' => '自定义库ID',
- 'type' => 'string',
- 'example' => '123456'."\n",
- ],
- 'LibName' => [
- 'description' => '自定义库名称。',
- 'type' => 'string',
- 'example' => '自定义库1'."\n",
- ],
- 'KeyWords' => [
- 'description' => '自定义词,多个词用逗号分隔。',
- 'type' => 'string',
- 'example' => '自定义词1,自定义词2'."\n",
- ],
+ 'LibId' => ['description' => '自定义库ID', 'type' => 'string', 'example' => '123456'."\n"],
+ 'LibName' => ['description' => '自定义库名称。', 'type' => 'string', 'example' => '自定义库1'."\n"],
+ 'KeyWords' => ['description' => '自定义词,多个词用逗号分隔。', 'type' => 'string', 'example' => '自定义词1,自定义词2'."\n"],
],
+ 'description' => '',
],
],
],
@@ -853,22 +1396,11 @@
'items' => [
'type' => 'object',
'properties' => [
- 'LibId' => [
- 'description' => '命中的自定义图库ID。',
- 'type' => 'string',
- 'example' => '图库123'."\n",
- ],
- 'ImageId' => [
- 'description' => '命中的自定义图片ID。',
- 'type' => 'string',
- 'example' => '123456',
- ],
- 'LibName' => [
- 'description' => '命中的自定义图库名。',
- 'type' => 'string',
- 'example' => '图库123'."\n",
- ],
+ 'LibId' => ['description' => '命中的自定义图库ID。', 'type' => 'string', 'example' => '图库123'."\n"],
+ 'ImageId' => ['description' => '命中的自定义图片ID。', 'type' => 'string', 'example' => '123456'],
+ 'LibName' => ['description' => '命中的自定义图库名。', 'type' => 'string', 'example' => '图库123'."\n"],
],
+ 'description' => '',
],
],
'PublicFigure' => [
@@ -877,50 +1409,24 @@
'items' => [
'type' => 'object',
'properties' => [
- 'FigureName' => [
- 'description' => '识别出的人物名称信息。',
- 'type' => 'string',
- 'example' => 'yzazhzou',
- ],
- 'FigureId' => [
- 'description' => '识别出的人物编码信息。',
- 'type' => 'string',
- 'example' => 'xxx001',
- ],
+ 'FigureName' => ['description' => '识别出的人物名称信息。', 'type' => 'string', 'example' => 'yzazhzou'],
+ 'FigureId' => ['description' => '识别出的人物编码信息。', 'type' => 'string', 'example' => 'xxx001'],
'Location' => [
'description' => '标识的位置信息。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
- 'X' => [
- 'description' => '以图片左上角为坐标原点,识别区域左上角到y轴的距离,单位:像素。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '11',
- ],
- 'Y' => [
- 'description' => '以图片左上角为坐标原点,识别区域左上角到x轴的距离,单位:像素。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '22',
- ],
- 'W' => [
- 'description' => '识别区域的宽度,单位:像素。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '330',
- ],
- 'H' => [
- 'description' => '识别区域的高度,单位:像素。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '440',
- ],
+ 'X' => ['description' => '以图片左上角为坐标原点,识别区域左上角到y轴的距离,单位:像素。', 'type' => 'integer', 'format' => 'int32', 'example' => '11'],
+ 'Y' => ['description' => '以图片左上角为坐标原点,识别区域左上角到x轴的距离,单位:像素。', 'type' => 'integer', 'format' => 'int32', 'example' => '22'],
+ 'W' => ['description' => '识别区域的宽度,单位:像素。', 'type' => 'integer', 'format' => 'int32', 'example' => '330'],
+ 'H' => ['description' => '识别区域的高度,单位:像素。', 'type' => 'integer', 'format' => 'int32', 'example' => '440'],
],
+ 'description' => '',
],
],
],
+ 'description' => '',
],
],
'LogoData' => [
@@ -933,30 +1439,10 @@
'description' => '标识的位置信息。',
'type' => 'object',
'properties' => [
- 'X' => [
- 'description' => '以图片左上角为坐标原点,识别区域左上角到y轴的距离,单位:像素。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '11',
- ],
- 'Y' => [
- 'description' => '以图片左上角为坐标原点,识别区域左上角到x轴的距离,单位:像素。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '22',
- ],
- 'W' => [
- 'description' => '识别区域的宽度,单位:像素。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '330',
- ],
- 'H' => [
- 'description' => '识别区域的高度,单位:像素。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '440',
- ],
+ 'X' => ['description' => '以图片左上角为坐标原点,识别区域左上角到y轴的距离,单位:像素。', 'type' => 'integer', 'format' => 'int32', 'example' => '11'],
+ 'Y' => ['description' => '以图片左上角为坐标原点,识别区域左上角到x轴的距离,单位:像素。', 'type' => 'integer', 'format' => 'int32', 'example' => '22'],
+ 'W' => ['description' => '识别区域的宽度,单位:像素。', 'type' => 'integer', 'format' => 'int32', 'example' => '330'],
+ 'H' => ['description' => '识别区域的高度,单位:像素。', 'type' => 'integer', 'format' => 'int32', 'example' => '440'],
],
],
'Logo' => [
@@ -965,26 +1451,15 @@
'items' => [
'type' => 'object',
'properties' => [
- 'Label' => [
- 'description' => '标识类别。',
- 'type' => 'string',
- 'example' => 'logo_sns',
- ],
- 'Name' => [
- 'description' => '标识名。',
- 'type' => 'string',
- 'example' => '钉钉',
- ],
- 'Confidence' => [
- 'description' => '置信分值,0到100分,保留到小数点后2位。',
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '99.1',
- ],
+ 'Label' => ['description' => '标识类别。', 'type' => 'string', 'example' => 'logo_sns'],
+ 'Name' => ['description' => '标识名。', 'type' => 'string', 'example' => '钉钉'],
+ 'Confidence' => ['description' => '置信分值,0到100分,保留到小数点后2位。', 'type' => 'number', 'format' => 'float', 'example' => '99.1'],
],
+ 'description' => '',
],
],
],
+ 'description' => '',
],
],
'FaceData' => [
@@ -993,248 +1468,132 @@
'items' => [
'type' => 'object',
'properties' => [
- 'Age' => [
- 'description' => '年龄识别结果。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '18',
- ],
+ 'Age' => ['description' => '年龄识别结果。', 'type' => 'integer', 'format' => 'int32', 'example' => '18'],
'Bang' => [
'description' => '是否有刘海的识别结果。',
'type' => 'object',
'properties' => [
- 'Value' => [
- 'description' => '是否有刘海的识别结果,取值:'."\n"
- .'- Has:有刘海。'."\n"
- .'- None:无刘海。',
- 'type' => 'string',
- 'example' => 'Has',
- ],
- 'Confidence' => [
- 'description' => '刘海识别结果的置信度,取值范围:0~100。取值越高表示结果越可信。',
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '81.88'."\n",
- ],
+ 'Value' => ['description' => '是否有刘海的识别结果,取值:'."\n"
+ .'- Has:有刘海。'."\n"
+ .'- None:无刘海。', 'type' => 'string', 'example' => 'Has'],
+ 'Confidence' => ['description' => '刘海识别结果的置信度,取值范围:0~100。取值越高表示结果越可信。', 'type' => 'number', 'format' => 'float', 'example' => '81.88'."\n"],
],
],
'Gender' => [
'description' => '性别识别结果。',
'type' => 'object',
'properties' => [
- 'Value' => [
- 'description' => '性别识别结果,取值:'."\n"
- ."\n"
- .'- Male:男性。'."\n"
- ."\n"
- .'- FeMale:女性。',
- 'type' => 'string',
- 'example' => 'FeMale',
- ],
- 'Confidence' => [
- 'description' => '性别识别结果的置信度,取值范围:0~100。取值越高表示结果越可信。',
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '81.88',
- ],
+ 'Value' => ['description' => '性别识别结果,取值:'."\n"
+ ."\n"
+ .'- Male:男性。'."\n"
+ ."\n"
+ .'- FeMale:女性。', 'type' => 'string', 'example' => 'FeMale'],
+ 'Confidence' => ['description' => '性别识别结果的置信度,取值范围:0~100。取值越高表示结果越可信。', 'type' => 'number', 'format' => 'float', 'example' => '81.88'],
],
],
- 'Glasses' => [
- 'description' => '是否佩戴眼镜的识别结果,取值:'."\n"
- ."\n"
- .'- None:未佩戴眼镜。'."\n"
- ."\n"
- .'- Common:佩戴普通眼镜。'."\n"
- ."\n"
- .'- Sunglass:佩戴太阳镜。',
- 'type' => 'string',
- 'example' => 'Common',
- ],
+ 'Glasses' => ['description' => '是否佩戴眼镜的识别结果,取值:'."\n"
+ ."\n"
+ .'- None:未佩戴眼镜。'."\n"
+ ."\n"
+ .'- Common:佩戴普通眼镜。'."\n"
+ ."\n"
+ .'- Sunglass:佩戴太阳镜。', 'type' => 'string', 'example' => 'Common'],
'Hairstyle' => [
'description' => '发型识别结果。',
'type' => 'object',
'properties' => [
- 'Value' => [
- 'description' => '发型识别结果,取值:'."\n"
- ."\n"
- .'- Bald:光头。'."\n"
- ."\n"
- .'- Long:长发。'."\n"
- ."\n"
- .'- Short:短发。',
- 'type' => 'string',
- 'example' => 'Short',
- ],
- 'Confidence' => [
- 'description' => '发型识别结果的置信度,取值范围:0~100。取值越高表示结果越可信。',
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '81.88'."\n"
- ."\n",
- ],
+ 'Value' => ['description' => '发型识别结果,取值:'."\n"
+ ."\n"
+ .'- Bald:光头。'."\n"
+ ."\n"
+ .'- Long:长发。'."\n"
+ ."\n"
+ .'- Short:短发。', 'type' => 'string', 'example' => 'Short'],
+ 'Confidence' => ['description' => '发型识别结果的置信度,取值范围:0~100。取值越高表示结果越可信。', 'type' => 'number', 'format' => 'float', 'example' => '81.88'."\n"
+ ."\n"],
],
],
'Hat' => [
'description' => '是否佩戴帽子的识别结果。',
'type' => 'object',
'properties' => [
- 'Value' => [
- 'description' => '是否佩戴帽子的识别结果,取值:'."\n"
- ."\n"
- .'- Wear:佩戴帽子。'."\n"
- ."\n"
- .'- None:未佩戴帽子。',
- 'type' => 'string',
- 'example' => 'Wear',
- ],
- 'Confidence' => [
- 'description' => '佩戴帽子结果的置信度,取值范围:0~100。取值越高表示结果越可信。',
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '88.88'."\n"
- ."\n",
- ],
+ 'Value' => ['description' => '是否佩戴帽子的识别结果,取值:'."\n"
+ ."\n"
+ .'- Wear:佩戴帽子。'."\n"
+ ."\n"
+ .'- None:未佩戴帽子。', 'type' => 'string', 'example' => 'Wear'],
+ 'Confidence' => ['description' => '佩戴帽子结果的置信度,取值范围:0~100。取值越高表示结果越可信。', 'type' => 'number', 'format' => 'float', 'example' => '88.88'."\n"
+ ."\n"],
],
],
'Location' => [
'description' => '人脸位置信息。',
'type' => 'object',
'properties' => [
- 'X' => [
- 'description' => '以图片左上角为坐标原点,人脸区域左上角到y轴的距离,单位:像素。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '41'."\n"
- ."\n",
- ],
- 'Y' => [
- 'description' => '以图片左上角为坐标原点,人脸区域左上角到x轴的距离,单位:像素。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '84',
- ],
- 'W' => [
- 'description' => '人脸区域的宽度,单位:像素。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '83',
- ],
- 'H' => [
- 'description' => '人脸区域的高度,单位:像素。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '26',
- ],
+ 'X' => ['description' => '以图片左上角为坐标原点,人脸区域左上角到y轴的距离,单位:像素。', 'type' => 'integer', 'format' => 'int32', 'example' => '41'."\n"
+ ."\n"],
+ 'Y' => ['description' => '以图片左上角为坐标原点,人脸区域左上角到x轴的距离,单位:像素。', 'type' => 'integer', 'format' => 'int32', 'example' => '84'],
+ 'W' => ['description' => '人脸区域的宽度,单位:像素。', 'type' => 'integer', 'format' => 'int32', 'example' => '83'],
+ 'H' => ['description' => '人脸区域的高度,单位:像素。', 'type' => 'integer', 'format' => 'int32', 'example' => '26'],
],
],
'Mask' => [
'description' => '是否佩戴口罩的识别结果。',
'type' => 'object',
'properties' => [
- 'Value' => [
- 'description' => '是否佩戴口罩的识别结果,取值:'."\n"
- ."\n"
- .'- Wear:佩戴口罩。'."\n"
- ."\n"
- .'- None:未佩戴口罩。',
- 'type' => 'string',
- 'example' => 'Wear',
- ],
- 'Confidence' => [
- 'description' => '佩戴口罩结果的置信度,取值范围:0~100。取值越高表示结果越可信。',
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '99.99',
- ],
+ 'Value' => ['description' => '是否佩戴口罩的识别结果,取值:'."\n"
+ ."\n"
+ .'- Wear:佩戴口罩。'."\n"
+ ."\n"
+ .'- None:未佩戴口罩。', 'type' => 'string', 'example' => 'Wear'],
+ 'Confidence' => ['description' => '佩戴口罩结果的置信度,取值范围:0~100。取值越高表示结果越可信。', 'type' => 'number', 'format' => 'float', 'example' => '99.99'],
],
],
'Mustache' => [
'description' => '是否有胡须的识别结果。',
'type' => 'object',
'properties' => [
- 'Value' => [
- 'description' => '是否有胡须的识别结果,取值:'."\n"
- ."\n"
- .'- Has:有胡须。'."\n"
- ."\n"
- .'- None:无胡须。',
- 'type' => 'string',
- 'example' => 'Has',
- ],
- 'Confidence' => [
- 'description' => '胡须识别结果的置信度,取值范围:0~100。取值越高表示结果越可信。',
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '99.99',
- ],
+ 'Value' => ['description' => '是否有胡须的识别结果,取值:'."\n"
+ ."\n"
+ .'- Has:有胡须。'."\n"
+ ."\n"
+ .'- None:无胡须。', 'type' => 'string', 'example' => 'Has'],
+ 'Confidence' => ['description' => '胡须识别结果的置信度,取值范围:0~100。取值越高表示结果越可信。', 'type' => 'number', 'format' => 'float', 'example' => '99.99'],
],
],
'Quality' => [
'description' => '人脸图片的质量信息。',
'type' => 'object',
'properties' => [
- 'Blur' => [
- 'description' => '人脸图片的模糊度,取值范围:0~100。分数越高表示越模糊。'."\n"
- ."\n"
- .'建议取值范围:0~25。',
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '5.88'."\n"
- ."\n",
- ],
- 'Integrity' => [
- 'description' => '人脸的完整度,取值范围:0~100。分数越高表示越完整。'."\n"
- ."\n"
- .'建议取值范围:80~100。',
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '100.0',
- ],
- 'Pitch' => [
- 'description' => '人脸的抬头或低头角度。'."\n"
- ."\n"
- .'建议取值范围:-30~30。',
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '5.88',
- ],
- 'Roll' => [
- 'description' => '人脸的平面旋转角度。'."\n"
- ."\n"
- .'建议取值范围:-30~30。',
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '5.18',
- ],
- 'Yaw' => [
- 'description' => '人脸的左右摇头角度。'."\n"
- ."\n"
- .'建议取值范围:-30~30。',
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '5.18',
- ],
+ 'Blur' => ['description' => '人脸图片的模糊度,取值范围:0~100。分数越高表示越模糊。'."\n"
+ ."\n"
+ .'建议取值范围:0~25。', 'type' => 'number', 'format' => 'float', 'example' => '5.88'."\n"
+ ."\n"],
+ 'Integrity' => ['description' => '人脸的完整度,取值范围:0~100。分数越高表示越完整。'."\n"
+ ."\n"
+ .'建议取值范围:80~100。', 'type' => 'number', 'format' => 'float', 'example' => '100.0'],
+ 'Pitch' => ['description' => '人脸的抬头或低头角度。'."\n"
+ ."\n"
+ .'建议取值范围:-30~30。', 'type' => 'number', 'format' => 'float', 'example' => '5.88'],
+ 'Roll' => ['description' => '人脸的平面旋转角度。'."\n"
+ ."\n"
+ .'建议取值范围:-30~30。', 'type' => 'number', 'format' => 'float', 'example' => '5.18'],
+ 'Yaw' => ['description' => '人脸的左右摇头角度。'."\n"
+ ."\n"
+ .'建议取值范围:-30~30。', 'type' => 'number', 'format' => 'float', 'example' => '5.18'],
],
],
- 'Smile' => [
- 'description' => '人脸的微笑程度。取值范围:0~100。分数越高表示微笑程度越大。',
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '85.88'."\n"
- ."\n",
- ],
+ 'Smile' => ['description' => '人脸的微笑程度。取值范围:0~100。分数越高表示微笑程度越大。', 'type' => 'number', 'format' => 'float', 'example' => '85.88'."\n"
+ ."\n"],
],
+ 'description' => '',
],
],
'VlContent' => [
'description' => '输出内容。',
'type' => 'object',
'properties' => [
- 'OutputText' => [
- 'description' => '输出内容。',
- 'type' => 'string',
- 'example' => '这是一段描述',
- ],
+ 'OutputText' => ['description' => '输出内容。', 'type' => 'string', 'example' => '这是一段描述'],
],
],
'AigcData' => [
@@ -1245,81 +1604,41 @@
'description' => 'AIGC隐式标识检测信息。',
'type' => 'object',
'properties' => [
- 'Label' => [
- 'description' => '表示内容是否由AI生成,取值:'."\n"
- ."\n"
- .'- 1:属于人工智能内容生成合成的。'."\n"
- ."\n"
- .'- 2:(仅传播平台)可能为人工智能生成合成内容的。'."\n"
- ."\n"
- .'- 3:(仅传播平台)疑似人工智能内容生成合成的。',
- 'type' => 'string',
- 'example' => '1',
- ],
- 'ContentProducer' => [
- 'description' => '服务提供者的编码或名称,用于标识内容的生产者。',
- 'type' => 'string',
- 'example' => '001191******M000100Y43',
- ],
- 'ProduceID' => [
- 'description' => '内容制作编号,用于制作平台溯源合成内容的唯一识别编号。',
- 'type' => 'string',
- 'example' => '123******456'."\n"
- ."\n",
- ],
- 'ReservedCode1' => [
- 'description' => '预留字段。'."\n"
- ."\n"
- .'可存储用于生成合成服务提供者自主开展安全防护,保护内容、标识完整性的信息,可通过基于 ContentProducer 与 ProduceID 的哈希机制,实现关键信息的安全存储与校验。',
- 'type' => 'string',
- 'example' => 'd41d**********427e'."\n",
- ],
- 'ContentPropagator' => [
- 'description' => '传播平台名称,编号或代码,针对提供人工智能生成合成内容服务,可保持与ContentProducer一致。',
- 'type' => 'string',
- 'example' => '001191******M000100Y43',
- ],
- 'PropagateID' => [
- 'description' => '内容传播编号,是传播平台对所传播生成合成内容的唯一编号。',
- 'type' => 'string',
- 'example' => '123******456'."\n",
- ],
- 'ReservedCode2' => [
- 'description' => '预留字段。'."\n"
- ."\n"
- .'可用于内容传播服务提供者企业自主开展安全防护,保护内容、标识完整性的信息,可通过基于 ContentProducer 与 ProduceID 的哈希机制,实现关键信息的安全存储与校验。',
- 'type' => 'string',
- 'example' => 'd41d**********427e',
- ],
+ 'Label' => ['description' => '表示内容是否由AI生成,取值:'."\n"
+ ."\n"
+ .'- 1:属于人工智能内容生成合成的。'."\n"
+ ."\n"
+ .'- 2:(仅传播平台)可能为人工智能生成合成内容的。'."\n"
+ ."\n"
+ .'- 3:(仅传播平台)疑似人工智能内容生成合成的。', 'type' => 'string', 'example' => '1'],
+ 'ContentProducer' => ['description' => '服务提供者的编码或名称,用于标识内容的生产者。', 'type' => 'string', 'example' => '001191******M000100Y43'],
+ 'ProduceID' => ['description' => '内容制作编号,用于制作平台溯源合成内容的唯一识别编号。', 'type' => 'string', 'example' => '123******456'."\n"
+ ."\n"],
+ 'ReservedCode1' => ['description' => '预留字段。'."\n"
+ ."\n"
+ .'可存储用于生成合成服务提供者自主开展安全防护,保护内容、标识完整性的信息,可通过基于 ContentProducer 与 ProduceID 的哈希机制,实现关键信息的安全存储与校验。', 'type' => 'string', 'example' => 'd41d**********427e'."\n"],
+ 'ContentPropagator' => ['description' => '传播平台名称,编号或代码,针对提供人工智能生成合成内容服务,可保持与ContentProducer一致。', 'type' => 'string', 'example' => '001191******M000100Y43'],
+ 'PropagateID' => ['description' => '内容传播编号,是传播平台对所传播生成合成内容的唯一编号。', 'type' => 'string', 'example' => '123******456'."\n"],
+ 'ReservedCode2' => ['description' => '预留字段。'."\n"
+ ."\n"
+ .'可用于内容传播服务提供者企业自主开展安全防护,保护内容、标识完整性的信息,可通过基于 ContentProducer 与 ProduceID 的哈希机制,实现关键信息的安全存储与校验。', 'type' => 'string', 'example' => 'd41d**********427e'],
],
],
],
],
],
],
- 'RiskLevel' => [
- 'description' => '风险等级。',
- 'type' => 'string',
- 'example' => 'high',
- ],
- 'ManualTaskId' => [
- 'description' => '人审任务ID',
- 'type' => 'string',
- 'example' => 'xxxxx-xxxxx',
- ],
- 'AccountId' => [
- 'description' => '客户入参AccountId',
- 'type' => 'string',
- 'example' => 'testaccountid123',
- ],
+ 'RiskLevel' => ['description' => '风险等级。', 'type' => 'string', 'example' => 'high'],
+ 'ManualTaskId' => ['description' => '人审任务ID', 'type' => 'string', 'example' => 'xxxxx-xxxxx'],
+ 'AccountId' => ['description' => '客户入参AccountId', 'type' => 'string', 'example' => 'testaccountid123'],
],
],
],
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"6CF2815C-C8C7-4A01-B52E-FF6E24F53492\\",\\n \\"Code\\": 200,\\n \\"Msg\\": \\"OK\\",\\n \\"Data\\": {\\n \\"DataId\\": \\"fb5ffab1-993b-449f-b8d6-b97d5e3331f2\\",\\n \\"Result\\": [\\n {\\n \\"Label\\": \\"violent_explosion\\",\\n \\"Confidence\\": 81.22,\\n \\"Description\\": \\"未检测出风险\\",\\n \\"RiskLevel\\": \\"high\\"\\n }\\n ],\\n \\"Ext\\": {\\n \\"Recognition\\": [\\n {\\n \\"Classification\\": \\"办公大楼\\\\n\\",\\n \\"Confidence\\": 81.22\\n }\\n ],\\n \\"OcrResult\\": [\\n {\\n \\"Text\\": \\"abcd\\",\\n \\"Location\\": {\\n \\"X\\": 11,\\n \\"Y\\": 22,\\n \\"W\\": 33,\\n \\"H\\": 44\\n }\\n }\\n ],\\n \\"TextInImage\\": {\\n \\"OcrResult\\": [\\n {\\n \\"Text\\": \\"abcd\\",\\n \\"Location\\": {\\n \\"X\\": 11,\\n \\"Y\\": 22,\\n \\"H\\": 33,\\n \\"W\\": 44\\n }\\n }\\n ],\\n \\"RiskWord\\": [\\n \\"abcd\\"\\n ],\\n \\"CustomText\\": [\\n {\\n \\"LibId\\": \\"123456\\\\n\\",\\n \\"LibName\\": \\"自定义库1\\\\n\\",\\n \\"KeyWords\\": \\"自定义词1,自定义词2\\\\n\\"\\n }\\n ]\\n },\\n \\"CustomImage\\": [\\n {\\n \\"LibId\\": \\"图库123\\\\n\\",\\n \\"ImageId\\": \\"123456\\",\\n \\"LibName\\": \\"图库123\\\\n\\"\\n }\\n ],\\n \\"PublicFigure\\": [\\n {\\n \\"FigureName\\": \\"yzazhzou\\",\\n \\"FigureId\\": \\"xxx001\\",\\n \\"Location\\": [\\n {\\n \\"X\\": 11,\\n \\"Y\\": 22,\\n \\"W\\": 330,\\n \\"H\\": 440\\n }\\n ]\\n }\\n ],\\n \\"LogoData\\": [\\n {\\n \\"Location\\": {\\n \\"X\\": 11,\\n \\"Y\\": 22,\\n \\"W\\": 330,\\n \\"H\\": 440\\n },\\n \\"Logo\\": [\\n {\\n \\"Label\\": \\"logo_sns\\",\\n \\"Name\\": \\"钉钉\\",\\n \\"Confidence\\": 99.1\\n }\\n ]\\n }\\n ],\\n \\"FaceData\\": [\\n {\\n \\"Age\\": 18,\\n \\"Bang\\": {\\n \\"Value\\": \\"Has\\",\\n \\"Confidence\\": 81.88\\n },\\n \\"Gender\\": {\\n \\"Value\\": \\"FeMale\\",\\n \\"Confidence\\": 81.88\\n },\\n \\"Glasses\\": \\"Common\\",\\n \\"Hairstyle\\": {\\n \\"Value\\": \\"Short\\",\\n \\"Confidence\\": 81.88\\n },\\n \\"Hat\\": {\\n \\"Value\\": \\"Wear\\",\\n \\"Confidence\\": 88.88\\n },\\n \\"Location\\": {\\n \\"X\\": 41,\\n \\"Y\\": 84,\\n \\"W\\": 83,\\n \\"H\\": 26\\n },\\n \\"Mask\\": {\\n \\"Value\\": \\"Wear\\",\\n \\"Confidence\\": 99.99\\n },\\n \\"Mustache\\": {\\n \\"Value\\": \\"Has\\",\\n \\"Confidence\\": 99.99\\n },\\n \\"Quality\\": {\\n \\"Blur\\": 5.88,\\n \\"Integrity\\": 100,\\n \\"Pitch\\": 5.88,\\n \\"Roll\\": 5.18,\\n \\"Yaw\\": 5.18\\n },\\n \\"Smile\\": 85.88\\n }\\n ],\\n \\"VlContent\\": {\\n \\"OutputText\\": \\"这是一段描述\\"\\n },\\n \\"AigcData\\": {\\n \\"AIGC\\": {\\n \\"Label\\": \\"1\\",\\n \\"ContentProducer\\": \\"001191******M000100Y43\\",\\n \\"ProduceID\\": \\"123******456\\\\n\\\\n\\",\\n \\"ReservedCode1\\": \\"d41d**********427e\\\\n\\",\\n \\"ContentPropagator\\": \\"001191******M000100Y43\\",\\n \\"PropagateID\\": \\"123******456\\\\n\\",\\n \\"ReservedCode2\\": \\"d41d**********427e\\"\\n }\\n }\\n },\\n \\"RiskLevel\\": \\"high\\",\\n \\"ManualTaskId\\": \\"xxxxx-xxxxx\\",\\n \\"AccountId\\": \\"testaccountid123\\"\\n }\\n}","type":"json"}]',
'title' => '图片审核增强版',
+ 'summary' => '图片审核',
'description' => '请确保在使用该接口前完成以下操作:'."\n"
.'1. 已[开通内容安全增强版](https://common-buy.aliyun.com/?commodityCode=lvwang_cip_public_cn)。'."\n"
.'2. 充分了解图片审核增强版产品的[收费方式和价格](https://help.aliyun.com/document_detail/467826.html?#section-h06-qz6-1pt)。'."\n"
@@ -1370,58 +1689,80 @@
.'}'."\n"
.'```',
'extraInfo' => '无',
- ],
- 'ImageAsyncModeration' => [
- 'summary' => '图片异步检测接口,异步检测任务不会实时返回检测结果,您需要通过callback或者轮询的方式获取检测结果。检测结果最长保留3天。',
- 'methods' => [
- 'post',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ImageModeration'],
+ ],
],
- 'schemes' => [
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'yundun-greenweb:ImageModeration',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"6CF2815C-C8C7-4A01-B52E-FF6E24F53492\\",\\n \\"Code\\": 200,\\n \\"Msg\\": \\"OK\\",\\n \\"Data\\": {\\n \\"DataId\\": \\"fb5ffab1-993b-449f-b8d6-b97d5e3331f2\\",\\n \\"Result\\": [\\n {\\n \\"Label\\": \\"violent_explosion\\",\\n \\"Confidence\\": 81.22,\\n \\"Description\\": \\"未检测出风险\\",\\n \\"RiskLevel\\": \\"high\\"\\n }\\n ],\\n \\"Ext\\": {\\n \\"Recognition\\": [\\n {\\n \\"Classification\\": \\"办公大楼\\\\n\\",\\n \\"Confidence\\": 81.22\\n }\\n ],\\n \\"OcrResult\\": [\\n {\\n \\"Text\\": \\"abcd\\",\\n \\"Location\\": {\\n \\"X\\": 11,\\n \\"Y\\": 22,\\n \\"W\\": 33,\\n \\"H\\": 44\\n }\\n }\\n ],\\n \\"TextInImage\\": {\\n \\"OcrResult\\": [\\n {\\n \\"Text\\": \\"abcd\\",\\n \\"Location\\": {\\n \\"X\\": 11,\\n \\"Y\\": 22,\\n \\"H\\": 33,\\n \\"W\\": 44\\n }\\n }\\n ],\\n \\"RiskWord\\": [\\n \\"abcd\\"\\n ],\\n \\"CustomText\\": [\\n {\\n \\"LibId\\": \\"123456\\\\n\\",\\n \\"LibName\\": \\"自定义库1\\\\n\\",\\n \\"KeyWords\\": \\"自定义词1,自定义词2\\\\n\\"\\n }\\n ]\\n },\\n \\"CustomImage\\": [\\n {\\n \\"LibId\\": \\"图库123\\\\n\\",\\n \\"ImageId\\": \\"123456\\",\\n \\"LibName\\": \\"图库123\\\\n\\"\\n }\\n ],\\n \\"PublicFigure\\": [\\n {\\n \\"FigureName\\": \\"yzazhzou\\",\\n \\"FigureId\\": \\"xxx001\\",\\n \\"Location\\": [\\n {\\n \\"X\\": 11,\\n \\"Y\\": 22,\\n \\"W\\": 330,\\n \\"H\\": 440\\n }\\n ]\\n }\\n ],\\n \\"LogoData\\": [\\n {\\n \\"Location\\": {\\n \\"X\\": 11,\\n \\"Y\\": 22,\\n \\"W\\": 330,\\n \\"H\\": 440\\n },\\n \\"Logo\\": [\\n {\\n \\"Label\\": \\"logo_sns\\",\\n \\"Name\\": \\"钉钉\\",\\n \\"Confidence\\": 99.1\\n }\\n ]\\n }\\n ],\\n \\"FaceData\\": [\\n {\\n \\"Age\\": 18,\\n \\"Bang\\": {\\n \\"Value\\": \\"Has\\",\\n \\"Confidence\\": 81.88\\n },\\n \\"Gender\\": {\\n \\"Value\\": \\"FeMale\\",\\n \\"Confidence\\": 81.88\\n },\\n \\"Glasses\\": \\"Common\\",\\n \\"Hairstyle\\": {\\n \\"Value\\": \\"Short\\",\\n \\"Confidence\\": 81.88\\n },\\n \\"Hat\\": {\\n \\"Value\\": \\"Wear\\",\\n \\"Confidence\\": 88.88\\n },\\n \\"Location\\": {\\n \\"X\\": 41,\\n \\"Y\\": 84,\\n \\"W\\": 83,\\n \\"H\\": 26\\n },\\n \\"Mask\\": {\\n \\"Value\\": \\"Wear\\",\\n \\"Confidence\\": 99.99\\n },\\n \\"Mustache\\": {\\n \\"Value\\": \\"Has\\",\\n \\"Confidence\\": 99.99\\n },\\n \\"Quality\\": {\\n \\"Blur\\": 5.88,\\n \\"Integrity\\": 100,\\n \\"Pitch\\": 5.88,\\n \\"Roll\\": 5.18,\\n \\"Yaw\\": 5.18\\n },\\n \\"Smile\\": 85.88\\n }\\n ],\\n \\"VlContent\\": {\\n \\"OutputText\\": \\"这是一段描述\\"\\n },\\n \\"AigcData\\": {\\n \\"AIGC\\": {\\n \\"Label\\": \\"1\\",\\n \\"ContentProducer\\": \\"001191******M000100Y43\\",\\n \\"ProduceID\\": \\"123******456\\\\n\\\\n\\",\\n \\"ReservedCode1\\": \\"d41d**********427e\\\\n\\",\\n \\"ContentPropagator\\": \\"001191******M000100Y43\\",\\n \\"PropagateID\\": \\"123******456\\\\n\\",\\n \\"ReservedCode2\\": \\"d41d**********427e\\"\\n }\\n }\\n },\\n \\"RiskLevel\\": \\"high\\",\\n \\"ManualTaskId\\": \\"xxxxx-xxxxx\\",\\n \\"AccountId\\": \\"testaccountid123\\"\\n }\\n}","type":"json"}]',
+ ],
+ 'ManualCallback' => [
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'readAndWrite',
+ 'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
- 'chargeType' => 'paid',
- 'abilityTreeCode' => '197491',
- 'abilityTreeNodes' => [
- 'FEATURElvwang78REFZ',
- ],
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '264346',
+ 'abilityTreeNodes' => ['FEATURElvwangIBEW89', 'FEATURElvwangU90H4V', 'FEATURElvwangBBY7QM', 'FEATURElvwang870NMI'],
+ 'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'Service',
- 'in' => 'query',
- 'schema' => [
- 'description' => '图片检测增强版支持的检测服务。取值:'."\n"
- .'- baselineCheck:通用基线检测'."\n"
- .'- baselineCheck_pro:通用基线检测_专业版'."\n"
- .'- baselineCheck_cb:通用基线检测_海外版'."\n"
- .'- tonalityImprove:内容治理检测'."\n"
- .'- aigcCheck:AIGC图片检测'."\n"
- .'- profilePhotoCheck:头像图片检测'."\n"
- .'- advertisingCheck:营销素材检测'."\n"
- .'- liveStreamCheck:视频\\直播截图检测',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'baselineCheck',
- ],
+ 'name' => 'Code',
+ 'in' => 'formData',
+ 'schema' => ['description' => 'code码', 'type' => 'string', 'required' => false, 'example' => '200'],
],
[
- 'name' => 'ServiceParameters',
- 'in' => 'query',
+ 'name' => 'Msg',
+ 'in' => 'formData',
+ 'schema' => ['description' => '提示信息', 'type' => 'string', 'required' => false, 'example' => 'OK'],
+ ],
+ [
+ 'name' => 'Checksum',
+ 'in' => 'formData',
+ 'schema' => ['description' => '校验码。', 'type' => 'string', 'required' => false, 'example' => 'abc'],
+ ],
+ [
+ 'name' => 'ReqId',
+ 'in' => 'formData',
+ 'schema' => ['description' => '平台请求id,用于辅助排查问题', 'type' => 'string', 'required' => false, 'example' => 'B0963D30-BAB4-562F-9ED0-7A23AEC51C7C'],
+ ],
+ [
+ 'name' => 'Data',
+ 'in' => 'formData',
+ 'schema' => ['description' => '返回数据。', 'type' => 'string', 'required' => false, 'example' => '{\'Result\': [{\'Confidence\': 100.0, \'CustomizedHit\': [{\'KeyWords\': u\'\\u4fdd\\u969c,\\u6700\\u5927,\\u9ad8\\u7ea7\', \'LibName\': u\'\\u4f18\\u8def\\u654f\\u611f\\u8bcd\'}], \'Label\': \'customized\'}]}'],
+ ],
+ [
+ 'name' => 'Channel',
+ 'in' => 'formData',
'schema' => [
- 'description' => '内容检测对象的相关参数集。JSON字符串格式。',
+ 'description' => '渠道字段',
'type' => 'string',
'required' => false,
- 'example' => '{"imageUrl":"https://img.alicdn.com/tfs/TB1U4r9AeH2gK0jSZJnXXaT1FXa-2880-480.png","dataId":"img123****"}',
+ 'enumValueTitles' => ['ant' => 'ant'],
+ 'example' => 'ant',
],
],
],
@@ -1432,99 +1773,67 @@
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => '本次调用请求的ID,是由阿里云为该请求生成的唯一标识符,可用于排查和定位问题。',
- 'type' => 'string',
- 'example' => '4A926AE2-4C96-573F-824F-0532960799F8',
- ],
- 'Code' => [
- 'description' => '返回码。返回200代表成功。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '200',
- ],
- 'Msg' => [
- 'description' => '本次请求的响应消息。',
- 'type' => 'string',
- 'example' => 'success',
- ],
- 'Data' => [
- 'description' => '图片异步检测后的结果。',
- 'type' => 'object',
- 'properties' => [
- 'ReqId' => [
- 'description' => '图片异步审核增强版API返回的reqId字段,可用此字段查询检测结果。',
- 'type' => 'string',
- 'example' => 'A07B3DB9-D762-5C56-95B1-8EC55CF176D2',
- ],
- 'DataId' => [
- 'description' => 'API请求时传入的dataId 的值,如请求时未传入,则没有该字段。',
- 'type' => 'string',
- 'example' => 'fb5ffab1-993b-449f-b8d6-b97d5e3331f2',
- ],
- ],
- ],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****'."\n"],
+ 'Message' => ['description' => 'message信息', 'type' => 'string', 'example' => 'SUCCESS'],
+ 'Code' => ['description' => '错误码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
],
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"4A926AE2-4C96-573F-824F-0532960799F8\\",\\n \\"Code\\": 200,\\n \\"Msg\\": \\"success\\",\\n \\"Data\\": {\\n \\"ReqId\\": \\"A07B3DB9-D762-5C56-95B1-8EC55CF176D2\\",\\n \\"DataId\\": \\"fb5ffab1-993b-449f-b8d6-b97d5e3331f2\\"\\n }\\n}","type":"json"}]',
- 'title' => '图片异步检测',
- 'description' => '- 图片支持以下格式:PNG、JPG、JPEG、BMP、WEBP、TIFF、ICO、HEIC、SVG。'."\n"
- ."\n"
- .' - 图片大小限制在10MB以内,像素建议大于200*200(px),像素过低会影响内容安全检测算法的效果。'."\n"
- ."\n"
- .'- 图片下载时间限制为3秒内,如果下载时间超过3秒,返回下载超时。',
- 'responseParamsDescription' => '以下为接口返回code的含义说明。'."\n"
- ."\n"
- .'| **Code** | **说明** |'."\n"
- .'| --- | --- |'."\n"
- .'| 200 | 请求正常。 |'."\n"
- .'| 400 | 请求参数为空。 |'."\n"
- .'| 401 | 请求参数错误。 |'."\n"
- .'| 402 | 请求参数长度不符合接口规定,请检查并修改。 |'."\n"
- .'| 403 | 请求超过QPS限制,请检查并调整并发。 |'."\n"
- .'| 408 | 该账号无权限调用该接口,可能是账号未开通或者已欠费,或者调用账号未被授权访问。 |'."\n"
- .'| 500 | 系统异常。 |',
- ],
- 'DescribeImageModerationResult' => [
- 'summary' => '获取图片审核增强版审核任务结果。',
- 'methods' => [
- 'post',
+ 'title' => '人审渠道回调接口',
+ 'summary' => '内容安全人审结果渠道回调接口',
+ 'extraInfo' => '无',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '200', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ManualCallback'],
+ ],
],
- 'schemes' => [
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'yundun-greenweb:ManualCallback',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\\\n\\",\\n \\"Message\\": \\"SUCCESS\\",\\n \\"Code\\": 200\\n}","type":"json"}]',
+ ],
+ 'ManualModeration' => [
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'read',
+ 'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeCode' => '198839',
- 'abilityTreeNodes' => [
- 'FEATURElvwangLRLIH6',
- ],
+ 'chargeType' => 'paid',
+ 'abilityTreeCode' => '264342',
+ 'abilityTreeNodes' => ['FEATURElvwangIBEW89', 'FEATURElvwangU90H4V', 'FEATURElvwangBBY7QM', 'FEATURElvwang870NMI'],
+ 'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'ReqId',
- 'in' => 'query',
- 'schema' => [
- 'description' => '图片异步审核增强版API返回的ReqId字段',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'B0963D30-BAB4-562F-9ED0-7A23AEC51C7C',
- ],
+ 'name' => 'Service',
+ 'in' => 'formData',
+ 'schema' => ['description' => '服务。', 'type' => 'string', 'required' => false, 'example' => 'imageManualCheck'],
+ ],
+ [
+ 'name' => 'ServiceParameters',
+ 'in' => 'formData',
+ 'schema' => ['description' => '审核服务需要的参数集,JSON字符串格式。'."\n"
+ .'- url:待检测对象的URL,请确保该URL能通过公网访问到。'."\n"
+ .'- dataId:选填,检测对象对应的数据ID。', 'type' => 'string', 'required' => false, 'example' => '{"url": "https://talesofai.oss-cn-shanghai.aliyuncs.com/xxx.mp4", "dataId": "data1234"}'],
],
],
'responses' => [
@@ -1534,173 +1843,70 @@
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => '本次调用请求的ID,是由阿里云为该请求生成的唯一标识符,可用于排查和定位问题。',
- 'type' => 'string',
- 'example' => '2881AD4F-638B-52A3-BA20-F74C5B1CEAE3',
- ],
- 'Code' => [
- 'description' => '错误码,和HTTP状态码一致。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '200',
- ],
- 'Msg' => [
- 'description' => '本次请求的响应消息。',
- 'type' => 'string',
- 'example' => 'success',
- ],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****'],
+ 'Message' => ['description' => '错误信息', 'type' => 'string', 'example' => 'SUCCESS'],
+ 'Code' => ['description' => '状态码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Data' => [
- 'description' => '图片内容检测后的结果。',
+ 'description' => '返回数据。',
'type' => 'object',
'properties' => [
- 'DataId' => [
- 'description' => 'API请求时传入的dataId 的值,如请求时未传入,则没有该字段。',
- 'type' => 'string',
- 'example' => '2a5389eb-4ff8-4584-ac99-644e2a539aa1',
- ],
- 'Result' => [
- 'description' => '图片检测的风险标签、置信分等参数结果。',
- 'type' => 'array',
- 'items' => [
- 'description' => '返回集合。',
- 'type' => 'object',
- 'properties' => [
- 'Label' => [
- 'description' => '图片内容检测运算后返回的标签。',
- 'type' => 'string',
- 'example' => 'violent_explosion',
- ],
- 'Confidence' => [
- 'description' => '置信分值,0到100分,保留到小数点后2位。',
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '81.22',
- ],
- 'Description' => [
- 'description' => '描述',
- 'type' => 'string',
- 'example' => '未检测出风险',
- ],
- 'RiskLevel' => [
- 'description' => '风险等级。',
- 'type' => 'string',
- 'example' => 'high',
- ],
- ],
- ],
- ],
- 'FrameNum' => [
- 'description' => '结果帧数量',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- 'Frame' => [
- 'description' => '图片截帧信息。',
- 'type' => 'string',
- 'example' => '[{"result":[{"confidence":81.22,"label":"violent_explosion"}]}]',
- ],
- 'ReqId' => [
- 'description' => '图片异步审核增强版API返回的reqId字段。',
- 'type' => 'string',
- 'example' => 'B0963D30-BAB4-562F-9ED0-7A23AEC51C7C'."\n",
- ],
- 'RiskLevel' => [
- 'description' => '风险等级',
- 'type' => 'string',
- 'example' => 'high',
- ],
- 'ManualTaskId' => [
- 'description' => '人审任务ID',
- 'type' => 'string',
- 'example' => 'xxxxx-xxxxx',
- ],
- 'AccountId' => [
- 'description' => '客户入参AccountId',
- 'type' => 'string',
- 'example' => '123456789',
- ],
+ 'DataId' => ['description' => 'API请求时传入的dataId 的值,如请求时未传入,则没有该字段。', 'type' => 'string', 'example' => '2a5389eb-4ff8-4584-ac99-644e2a539aa1'],
+ 'TaskId' => ['description' => '任务Id', 'type' => 'string', 'example' => 'xxxxx-xxxxx'],
],
],
],
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"2881AD4F-638B-52A3-BA20-F74C5B1CEAE3\\",\\n \\"Code\\": 200,\\n \\"Msg\\": \\"success\\",\\n \\"Data\\": {\\n \\"DataId\\": \\"2a5389eb-4ff8-4584-ac99-644e2a539aa1\\",\\n \\"Result\\": [\\n {\\n \\"Label\\": \\"violent_explosion\\",\\n \\"Confidence\\": 81.22,\\n \\"Description\\": \\"未检测出风险\\",\\n \\"RiskLevel\\": \\"high\\"\\n }\\n ],\\n \\"FrameNum\\": 1,\\n \\"Frame\\": \\"[{\\\\\\"result\\\\\\":[{\\\\\\"confidence\\\\\\":81.22,\\\\\\"label\\\\\\":\\\\\\"violent_explosion\\\\\\"}]}]\\",\\n \\"ReqId\\": \\"B0963D30-BAB4-562F-9ED0-7A23AEC51C7C\\\\n\\",\\n \\"RiskLevel\\": \\"high\\",\\n \\"ManualTaskId\\": \\"xxxxx-xxxxx\\",\\n \\"AccountId\\": \\"123456789\\"\\n }\\n}","type":"json"}]',
- 'title' => '查询图片异步检测结果',
- 'description' => '- 计费信息:该接口不计费。'."\n"
- .'- QPS限流:本接口的单用户QPS限制为100次/秒。超过限制,API调用会被限流,这可能会影响您的业务,请合理调用。',
- 'responseParamsDescription' => '以下为接口返回code的含义说明,系统仅对code返回为200的请求计量计费,其他code不会计费。'."\n"
- ."\n"
- .'| **Code** | **说明** |'."\n"
- .'| --- | --- |'."\n"
- .'| 200 | 请求正常。 |'."\n"
- .'| 280 | 检测中。 |'."\n"
- .'| 400 | 请求参数为空。 |'."\n"
- .'| 401 | 请求参数错误。 |'."\n"
- .'| 402 | 请求参数长度不符合接口规定,请检查并修改。 |'."\n"
- .'| 403 | 请求超过QPS限制,请检查并调整并发。 |'."\n"
- .'| 404 | 传入的图片下载遇到错误,请检查或重试。 |'."\n"
- .'| 405 | 传入的图片下载超时,可能是因为图片无法访问,请检查调整后重试。 |'."\n"
- .'| 406 | 传入的图片过大,请检查调整图片大小后再重试。 |'."\n"
- .'| 407 | 传入的图片格式暂不支持,请检查调整后重试。 |'."\n"
- .'| 408 | 该账号无权限调用该接口,可能是账号未开通或者已欠费,或者调用账号未被授权访问。 |'."\n"
- .'| 409 | 传入的reqId不存在,可能是查询间隔过快,或者已经超过30天有效期。 |'."\n"
- .'| 500 | 系统异常。 |',
- ],
- 'VoiceModeration' => [
- 'summary' => '提交语音审核增强版检测任务。',
- 'methods' => [
- 'post',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '内容安全人审提交任务',
+ 'summary' => '内容安全人审提交请求接口',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ManualModeration'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'yundun-greenweb:ManualModeration',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Message\\": \\"SUCCESS\\",\\n \\"Code\\": 200,\\n \\"Data\\": {\\n \\"DataId\\": \\"2a5389eb-4ff8-4584-ac99-644e2a539aa1\\",\\n \\"TaskId\\": \\"xxxxx-xxxxx\\"\\n }\\n}","type":"json"}]',
+ ],
+ 'ManualModerationResult' => [
+ 'summary' => '获取人审结果',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'readAndWrite',
+ 'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'get',
+ 'operationType' => 'none',
'riskType' => 'none',
- 'chargeType' => 'paid',
- 'abilityTreeCode' => '162159',
- 'abilityTreeNodes' => [
- 'FEATURElvwang6QCU1H',
- 'FEATURElvwangPAXR7J',
- ],
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '264414',
+ 'abilityTreeNodes' => ['FEATURElvwangIBEW89', 'FEATURElvwangU90H4V', 'FEATURElvwangBBY7QM', 'FEATURElvwang870NMI'],
+ 'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'Service',
- 'in' => 'formData',
- 'schema' => [
- 'description' => '语音审核ServiceCode',
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'audio_media_detection',
- ],
- ],
- [
'name' => 'ServiceParameters',
'in' => 'formData',
- 'schema' => [
- 'description' => '审核服务需要的参数集,JSON字符串格式。'."\n"
- ."\n"
- .'url:必填,待检测对象的URL,请确保该URL能通过公网访问到。'."\n"
- .'dataId:选填,检测对象对应的数据ID。'."\n"
- .'更多信息,请参见ServiceParameter。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '{"url": "http://aliyundoc.com/test.flv", "dataId": "data1234"}',
- ],
+ 'schema' => ['description' => '服务需要的参数集,JSON字符串格式。'."\n"
+ .'- TaskId:提交任务时返回的任务id', 'type' => 'string', 'required' => false, 'example' => '{\\"TaskId\\":\\"e5f2d886-4c23-440d-999c-bd98acde11b6\\"}'],
],
],
'responses' => [
@@ -1710,36 +1916,34 @@
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => 'Id of the request',
- 'type' => 'string',
- 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****',
- ],
- 'Code' => [
- 'description' => '错误代码',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '200',
- ],
- 'Message' => [
- 'description' => '错误信息',
- 'type' => 'string',
- 'example' => 'SUCCESS',
- ],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****'],
+ 'Message' => ['description' => '错误信息', 'type' => 'string', 'example' => 'SUCCESS'],
+ 'Code' => ['description' => '错误码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Data' => [
- 'description' => '返回任务信息数据结构',
+ 'description' => '返回数据。',
'type' => 'object',
'properties' => [
- 'TaskId' => [
- 'description' => '任务Id',
- 'type' => 'string',
- 'example' => 'xxxxx-xxxxx',
- ],
- 'DataId' => [
- 'description' => 'API请求时传入的dataId 的值,如请求时未传入,则没有该字段。',
- 'type' => 'string',
- 'example' => 'data1234',
+ 'RiskLevel' => ['description' => '风险等级,根据设置的高低风险分返回,返回值包括:'."\n"
+ ."\n"
+ .'- high:高风险'."\n"
+ .' '."\n"
+ .'- low:低风险'."\n"
+ ."\n"
+ .' - none:未检测到风险', 'type' => 'string', 'example' => 'high'],
+ 'DataId' => ['description' => 'API请求时传入的dataId 的值,如请求时未传入,则没有该字段。', 'type' => 'string', 'example' => 'data1234'],
+ 'TaskId' => ['description' => '任务Id', 'type' => 'string', 'example' => 'xxxxx-xxxxx'],
+ 'ReviewCount' => ['title' => '审核次数', 'description' => '审核次数', 'type' => 'string', 'example' => '1'],
+ 'Result' => [
+ 'description' => '返回详细标签结果。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '标签项结构。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Label' => ['description' => '风险标签', 'type' => 'string', 'example' => 'violent_explosion'],
+ 'Description' => ['description' => '标签描述', 'type' => 'string', 'example' => '未检测出风险'],
+ ],
+ ],
],
],
],
@@ -1747,63 +1951,57 @@
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"SUCCESS\\",\\n \\"Data\\": {\\n \\"TaskId\\": \\"xxxxx-xxxxx\\",\\n \\"DataId\\": \\"data1234\\"\\n }\\n}","type":"json"}]',
- 'title' => '语音审核增强版任务提交',
- ],
- 'VoiceModerationResult' => [
- 'summary' => '语音审核增强版检测结果获取接口。',
- 'methods' => [
- 'post',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Message\\": \\"SUCCESS\\",\\n \\"Code\\": 200,\\n \\"Data\\": {\\n \\"RiskLevel\\": \\"high\\",\\n \\"DataId\\": \\"data1234\\",\\n \\"TaskId\\": \\"xxxxx-xxxxx\\",\\n \\"ReviewCount\\": \\"1\\",\\n \\"Result\\": [\\n {\\n \\"Label\\": \\"violent_explosion\\",\\n \\"Description\\": \\"未检测出风险\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
+ 'title' => '内容安全人审结果获取接口',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ManualModerationResult'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'yundun-greenweb:ManualModerationResult',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ ],
+ 'MultiModalAgent' => [
+ 'summary' => '多模态AgentAPI同步检测接口',
+ 'path' => '',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'read',
+ 'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'get',
+ 'operationType' => 'none',
'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeCode' => '162180',
- 'abilityTreeNodes' => [
- 'FEATURElvwang6QCU1H',
- 'FEATURElvwangPAXR7J',
- ],
+ 'chargeType' => 'paid',
+ 'abilityTreeNodes' => ['FEATURElvwang828K27'],
],
'parameters' => [
[
- 'name' => 'Service',
+ 'name' => 'ServiceParameters',
'in' => 'formData',
- 'schema' => [
- 'description' => '审核服务类型,包括:'."\n"
- .'nickname_detection:用户昵称'."\n"
- .'待定',
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'nickname_detection',
- ],
+ 'schema' => ['description' => '审核服务需要的参数集。taskId,即要查询的检测任务的taskId,每次支持输入一个taskId。', 'type' => 'string', 'required' => false, 'example' => '{"content":"测试文本","dataId":"img1234567"}'],
],
[
- 'name' => 'ServiceParameters',
+ 'name' => 'AppID',
'in' => 'formData',
- 'schema' => [
- 'description' => '网关向后端服务发送API请求的参数描述。'."\n"
- ."\n"
- .'更多信息,请参见[ServiceParameter](~~43988~~)。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '暂无',
- ],
+ 'schema' => ['description' => '白板应用唯一标识符。获取白板应用ID,请参见[CreateApp](~~204234~~)。', 'type' => 'string', 'required' => false, 'example' => 'txt_check_agent_01'],
],
],
'responses' => [
@@ -1813,156 +2011,52 @@
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => 'Id of the request',
- 'type' => 'string',
- 'example' => '2881AD4F-638B-52A3-BA20-F74C5B1CEAE3',
- ],
- 'Code' => [
- 'description' => '错误码。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '200',
- ],
- 'Message' => [
- 'description' => '请求消息的响应消息。',
- 'type' => 'string',
- 'example' => 'SUCCESS',
- ],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****'],
+ 'Code' => ['description' => '返回码。返回200代表成功。', 'type' => 'string', 'example' => '200'],
+ 'Message' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'SUCCESS'],
'Data' => [
- 'description' => '返回数据。',
+ 'description' => '图片内容检测后的结果。',
'type' => 'object',
'properties' => [
- 'Url' => [
- 'description' => '任务URL',
- 'type' => 'string',
- 'example' => '暂无',
- ],
- 'LiveId' => [
- 'description' => '直播的唯一标识ID。',
- 'type' => 'string',
- 'example' => 'liveId',
- ],
- 'TaskId' => [
- 'description' => '任务ID',
- 'type' => 'string',
- 'example' => 'kw24ihd0WGkdi5nniVZM@qOj-1x5Ibb',
- ],
- 'SliceDetails' => [
- 'description' => '分段结果',
+ 'DataId' => ['description' => '数据ID', 'type' => 'string', 'example' => '26769ada6e264e7ba9aa048241e12be9'],
+ 'RiskLevel' => ['description' => '风险等级,根据设置的高低风险分返回,返回值包括:'."\n"
+ ."\n"
+ .'- high:高风险'."\n"
+ ."\n"
+ .'- medium:中风险'."\n"
+ .' '."\n"
+ .'- low:低风险'."\n"
+ ."\n"
+ .' - none:未检测到风险', 'type' => 'string', 'example' => 'high'],
+ 'Result' => [
+ 'description' => '标签项结构。',
'type' => 'array',
'items' => [
- 'description' => '分段结果条目',
+ 'description' => '返回集合。',
'type' => 'object',
'properties' => [
- 'StartTime' => [
- 'description' => '分段开始时间(秒)',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '0',
- ],
- 'EndTime' => [
- 'description' => '分段结束时间(秒)',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '10',
- ],
- 'StartTimestamp' => [
- 'description' => '切片开始时间戳,单位:毫秒。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1678854649720',
- ],
- 'EndTimestamp' => [
- 'description' => '切片结束时间戳,单位:毫秒。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1678854649720',
- ],
- 'Url' => [
- 'description' => '分段语音文件临时地址',
- 'type' => 'string',
- 'example' => '暂无',
- ],
- 'Text' => [
- 'description' => '分段语音转写文本',
- 'type' => 'string',
- 'example' => '今天天气真不错',
- ],
- 'Labels' => [
- 'description' => '命中违规标签',
- 'type' => 'string',
- 'example' => 'sexual_sounds',
- ],
- 'Score' => [
- 'description' => '风险分数,默认范围 0-99',
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '87.01',
- ],
- 'Extend' => [
- 'description' => '扩展字段',
- 'type' => 'string',
- 'example' => '{\\"riskWords\\":\\"色情服务\\","adNums":"\\","riskTips":"涉政_人物,涉政_红歌"}',
- ],
- 'RiskTips' => [
- 'description' => '命中风险详情',
- 'type' => 'string',
- 'example' => '涉政_人物',
- ],
- 'RiskWords' => [
- 'description' => '命中风险关键词',
- 'type' => 'string',
- 'example' => '色情服务',
- ],
- 'OriginAlgoResult' => [
- 'description' => '保留字段',
- 'type' => 'object',
- ],
- 'RiskLevel' => [
- 'description' => '风险等级,根据设置的高低风险分返回,返回值包括:'."\n"
- ."\n"
- .'- high:高风险'."\n"
- ."\n"
- .'- medium:中风险'."\n"
- .' '."\n"
- .'- low:低风险'."\n"
- ."\n"
- .' - none:未检测到风险',
- 'type' => 'string',
- 'example' => 'high',
- ],
- 'Descriptions' => [
- 'description' => '标签描述。',
- 'type' => 'string',
- 'example' => '疑似违禁内容',
- ],
+ 'Label' => ['description' => '风险标签', 'type' => 'string', 'example' => 'violent_explosion'],
+ 'Description' => ['description' => '标签描述', 'type' => 'string', 'example' => '未检测出风险'],
+ 'Reason' => ['description' => '结束该会话时的结果描述。'."\n"
+ .'- **SESSION_KILLED**:结束会话成功。'."\n"
+ .'- **SESSION_EXPIRED**:会话已过期。'."\n"
+ .'- **SESSION\\_NO\\_PERMISSION**:用于结束会话的账号权限不足。'."\n"
+ .'- **SESSION\\_ACCOUNT\\_ERROR**:用于结束会话的账号或密码错误。'."\n"
+ .'- **SESSION\\_IGNORED\\_USER**:不需要结束的账号的会话。'."\n"
+ .'- **SESSION\\_INTERNAL\\_USER\\_OR\\_COMMAND**:阿里云运维账号的会话或者命令。'."\n"
+ .'- **SESSION\\_KILL\\_TASK\\_TIMEOUT**:结束会话超时。'."\n"
+ .'- **SESSION\\_OTHER\\_ERROR**:其他错误。', 'type' => 'string', 'example' => 'TRACER_SLB_ALL_DEST_WEIGHT_0'],
],
],
],
- 'DataId' => [
- 'description' => 'API请求时传入的dataId 的值,如请求时未传入,则没有该字段。',
- 'type' => 'string',
- 'example' => 'data1234',
- ],
- 'RiskLevel' => [
- 'description' => '风险等级,根据设置的高低风险分返回,返回值包括:'."\n"
- ."\n"
- .'- high:高风险'."\n"
- ."\n"
- .'- medium:中风险'."\n"
- .' '."\n"
- .'- low:低风险'."\n"
- ."\n"
- .' - none:未检测到风险',
- 'type' => 'string',
- 'example' => 'high',
- ],
- 'ManualTaskId' => [
- 'description' => '人审任务ID',
- 'type' => 'string',
- 'example' => 'xxxxx-xxxxx',
+ 'Usage' => [
+ 'description' => 'Token使用情况',
+ 'type' => 'object',
+ 'properties' => [
+ 'PromptLength' => ['description' => '提示词长度。', 'type' => 'integer', 'format' => 'int64', 'example' => '100'],
+ 'ContentLength' => ['description' => '内容长度。', 'type' => 'integer', 'format' => 'int64', 'example' => '10'],
+ 'AgentDetail' => ['description' => '智能体详细', 'type' => 'object'],
+ ],
],
],
],
@@ -1970,63 +2064,81 @@
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ 'errorCodes' => [
+ 403 => [
+ ['errorCode' => 'NoPermission', 'errorMessage' => 'You don\'t have permission.', 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作。'],
+ ],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"2881AD4F-638B-52A3-BA20-F74C5B1CEAE3\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"SUCCESS\\",\\n \\"Data\\": {\\n \\"Url\\": \\"暂无\\",\\n \\"LiveId\\": \\"liveId\\",\\n \\"TaskId\\": \\"kw24ihd0WGkdi5nniVZM@qOj-1x5Ibb\\",\\n \\"SliceDetails\\": [\\n {\\n \\"StartTime\\": 0,\\n \\"EndTime\\": 10,\\n \\"StartTimestamp\\": 1678854649720,\\n \\"EndTimestamp\\": 1678854649720,\\n \\"Url\\": \\"暂无\\",\\n \\"Text\\": \\"今天天气真不错\\",\\n \\"Labels\\": \\"sexual_sounds\\",\\n \\"Score\\": 87.01,\\n \\"Extend\\": \\"{\\\\\\\\\\\\\\"riskWords\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"色情服务\\\\\\\\\\\\\\",\\\\\\"adNums\\\\\\":\\\\\\"\\\\\\\\\\\\\\",\\\\\\"riskTips\\\\\\":\\\\\\"涉政_人物,涉政_红歌\\\\\\"}\\",\\n \\"RiskTips\\": \\"涉政_人物\\",\\n \\"RiskWords\\": \\"色情服务\\",\\n \\"OriginAlgoResult\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"RiskLevel\\": \\"high\\",\\n \\"Descriptions\\": \\"疑似违禁内容\\"\\n }\\n ],\\n \\"DataId\\": \\"data1234\\",\\n \\"RiskLevel\\": \\"high\\",\\n \\"ManualTaskId\\": \\"xxxxx-xxxxx\\"\\n }\\n}","type":"json"}]',
- 'title' => '查询语音审核结果',
- ],
- 'VoiceModerationCancel' => [
- 'summary' => '语音审核增强版取消任务接口。',
- 'methods' => [
- 'post',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '内容审核Agent',
+ 'description' => '内容安全审核Agent。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'yundun-greenweb:MultiModalAgent',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"SUCCESS\\",\\n \\"Data\\": {\\n \\"DataId\\": \\"26769ada6e264e7ba9aa048241e12be9\\",\\n \\"RiskLevel\\": \\"high\\",\\n \\"Result\\": [\\n {\\n \\"Label\\": \\"violent_explosion\\",\\n \\"Description\\": \\"未检测出风险\\",\\n \\"Reason\\": \\"TRACER_SLB_ALL_DEST_WEIGHT_0\\"\\n }\\n ],\\n \\"Usage\\": {\\n \\"PromptLength\\": 100,\\n \\"ContentLength\\": 10,\\n \\"AgentDetail\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n }\\n }\\n}","type":"json"}]',
+ ],
+ 'MultiModalGuard' => [
+ 'path' => '',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'write',
+ 'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'none',
+ 'operationType' => 'get',
'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeCode' => '164076',
- 'abilityTreeNodes' => [
- 'FEATURElvwang6QCU1H',
- 'FEATURElvwangPAXR7J',
- ],
+ 'chargeType' => 'paid',
+ 'abilityTreeNodes' => ['FEATURElvwang828K27'],
],
'parameters' => [
[
'name' => 'Service',
'in' => 'formData',
- 'schema' => [
- 'description' => '审核服务类型,包括:'."\n"
- .'nickname_detection:用户昵称'."\n"
- .'待定',
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'nickname_detection',
- ],
+ 'schema' => ['description' => '审核服务分类,包括:'."\n"
+ ."\n"
+ .'- query_security_check_pro:AI输入内容安全检测_pro版'."\n"
+ .'- response_security_check_pro:AI生成内容安全检测_pro版'."\n"
+ .'- img_query_security_check:AIGC输入图片安全检测'."\n"
+ .'- img_response_security_check:AIGC输出图片安全检测'."\n"
+ .'- text_img_mix_guard:多模态(文本+图片)混合安全检测'."\n"
+ .'- file_security_sync_check:AIGC输入或输出文件安全检测'."\n"
+ .'- text_file_sec_sync_check:多模态(文本+文件)实时安全检测', 'type' => 'string', 'required' => false, 'example' => 'query_security_check_pro'],
],
[
'name' => 'ServiceParameters',
'in' => 'formData',
- 'schema' => [
- 'description' => '待取消任务TaskId',
- 'type' => 'string',
- 'required' => false,
- 'example' => '{'."\n"
- .' "taskId": "xxxxx-xxxx"'."\n"
- .' }',
- ],
+ 'schema' => ['description' => '审核服务需要的参数集,JSON字符串格式。文本内容入参是content(String),图片内容入参是imageUrls(JSONArray),文件内容入参是fileUrls(JSONArray),', 'type' => 'string', 'required' => false, 'example' => '- 文本:'."\n"
+ .'{'."\n"
+ .' "content": "test"'."\n"
+ .'}'."\n"
+ ."\n"
+ .'- 图片:'."\n"
+ .'{'."\n"
+ .' "imageUrls": ["https://example.com/image.png"]'."\n"
+ .'}'."\n"
+ ."\n"
+ .'- 文件:'."\n"
+ .'{'."\n"
+ .' "fileUrls": ["https://example.com/file.pdf"]'."\n"
+ .'}'],
],
],
'responses' => [
@@ -2036,41 +2148,106 @@
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => 'Id of the request',
- 'type' => 'string',
- 'example' => '4A926AE2-4C96-573F-824F-0532960799F8',
- ],
- 'Code' => [
- 'description' => '返回码。返回200代表成功。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '200',
- ],
- 'Message' => [
- 'description' => '请求消息的响应消息。',
- 'type' => 'string',
- 'example' => 'SUCCESS',
+ 'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****'],
+ 'Code' => ['description' => '错误码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
+ 'Message' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'OK'],
+ 'Data' => [
+ 'description' => '返回的数据内容。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Detail' => [
+ 'description' => '检测详情。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '检测详情。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Result' => [
+ 'description' => '检测结果。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '检测结果。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Label' => ['description' => '标签。', 'type' => 'string', 'example' => 'contraband_act'],
+ 'Description' => ['description' => '标签描述。', 'type' => 'string', 'example' => '疑似违禁行为'],
+ 'Confidence' => ['description' => '置信分值,0到100分,保留到小数点后2位。', 'type' => 'number', 'format' => 'float', 'example' => '100'],
+ 'Level' => ['description' => '风险等级。包含:'."\n"
+ .'- high:高风险(若命中自定义词库,风险等级默认为高风险)'."\n"
+ .'- medium:中风险'."\n"
+ .'- low:低风险'."\n"
+ .'- none:未检测到风险', 'type' => 'string', 'example' => 'none'],
+ 'Ext' => ['description' => '检测结果扩展信息。', 'type' => 'any', 'example' => '{}'],
+ ],
+ ],
+ ],
+ 'Type' => ['description' => '检测类型。包含:'."\n"
+ .'- contentModeration 内容合规检测'."\n"
+ .'- promptAttack 提示词攻击检测'."\n"
+ .'- sensitiveData 敏感内容检测'."\n"
+ .'- modelHallucination 模型幻觉'."\n"
+ .'- maliciousFile 恶意文件检测'."\n"
+ .'- maliciousUrl 恶意URL检测'."\n"
+ .'- waterMark 数字水印标识'."\n"
+ .'- customLabel 自定义检测Agent', 'type' => 'string', 'example' => 'contentModeration'],
+ 'Level' => ['description' => '风险等级。包含:'."\n"
+ .'- high:高风险(若命中自定义词库,风险等级默认为高风险)'."\n"
+ .'- medium:中风险'."\n"
+ .'- low:低风险'."\n"
+ .'- none:未检测到风险', 'type' => 'string', 'example' => 'none'],
+ 'Suggestion' => ['description' => '审核建议'."\n"
+ ."\n"
+ .'- block:建议阻断'."\n"
+ .'- pass:建议通过'."\n"
+ .'- watch:建议观察'."\n"
+ .'- mask:建议脱敏', 'type' => 'string', 'example' => 'pass'],
+ ],
+ ],
+ ],
+ 'Suggestion' => ['description' => '审核建议'."\n"
+ ."\n"
+ .'- block:建议阻断'."\n"
+ .'- pass:建议通过'."\n"
+ .'- watch:建议观察'."\n"
+ .'- mask:建议脱敏', 'type' => 'string', 'example' => 'pass'],
+ 'DataId' => ['description' => '检测对象对应的数据ID。', 'type' => 'string', 'example' => 'data1234'],
+ ],
],
],
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ 'errorCodes' => [
+ 403 => [
+ ['errorCode' => 'NoPermission', 'errorMessage' => 'You don\'t have permission.', 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作。'],
+ ],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"4A926AE2-4C96-573F-824F-0532960799F8\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"SUCCESS\\"\\n}","type":"json"}]',
- 'title' => '取消语音流审核任务',
- ],
- 'VideoModeration' => [
- 'summary' => '内容安全视频审核增强版,帮助您检测视频文件中的风险或违规内容。本接口为检测任务提交接口。',
- 'methods' => [
- 'post',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => 'AI安全护栏多模态同步检测接口',
+ 'summary' => 'AI安全护栏多模态同步检测接口,包括内容合规检测、敏感内容检测、提示词攻击检测、恶意文件检测、恶意URL检测等全方位检测能力。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
],
- 'schemes' => [
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'yundun-greenweb:MultiModalGuard',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"OK\\",\\n \\"Data\\": {\\n \\"Detail\\": [\\n {\\n \\"Result\\": [\\n {\\n \\"Label\\": \\"contraband_act\\",\\n \\"Description\\": \\"疑似违禁行为\\",\\n \\"Confidence\\": 100,\\n \\"Level\\": \\"none\\",\\n \\"Ext\\": \\"{}\\"\\n }\\n ],\\n \\"Type\\": \\"contentModeration\\",\\n \\"Level\\": \\"none\\",\\n \\"Suggestion\\": \\"pass\\"\\n }\\n ],\\n \\"Suggestion\\": \\"pass\\",\\n \\"DataId\\": \\"data1234\\"\\n }\\n}","type":"json"}]',
+ ],
+ 'MultiModalGuardAsync' => [
+ 'summary' => 'AI安全护栏多模态异步检测接口,支持音频、视频模态,包括内容合规检测、敏感内容检测、提示词攻击检测、恶意文件检测、恶意URL检测等全方位检测能力。',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
@@ -2083,40 +2260,21 @@
'riskType' => 'none',
'chargeType' => 'paid',
'abilityTreeCode' => '187556',
- 'abilityTreeNodes' => [
- 'FEATURElvwang53TCRC',
- ],
+ 'abilityTreeNodes' => ['FEATURElvwang53TCRC'],
+ 'tenantRelevance' => 'tenant',
],
'parameters' => [
[
'name' => 'Service',
'in' => 'formData',
- 'schema' => [
- 'description' => '视频审核ServiceCode',
- 'type' => 'string',
- 'required' => false,
- 'enumValueTitles' => [
- 'liveStreamDetection' => '视频直播流审核',
- 'videoDetection' => '视频文件审核',
- 'liveStreamDetection_cb' => '视频直播流审核_海外版',
- 'videoDetection_cb' => '视频文件审核_海外版',
- ],
- 'example' => 'videoDetection',
- ],
+ 'schema' => ['title' => '审核服务类型,包括:'."\n"
+ .'nickname_detection:用户昵称'."\n"
+ .'待定', 'description' => '审核服务类型,包括:audio_security_check、video_security_check', 'type' => 'string', 'required' => false, 'example' => 'audio_security_check'],
],
[
'name' => 'ServiceParameters',
'in' => 'formData',
- 'schema' => [
- 'description' => '审核服务需要的参数集,JSON字符串格式。'."\n"
- .'- url:必填,待检测对象的URL,请确保该URL能通过公网访问到。'."\n"
- .'- dataId:选填,检测对象对应的数据ID。'."\n"
- ."\n"
- .'更多信息,请参见[ServiceParameter](https://help.aliyun.com/document_detail/2505810.html)。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '{"url": "https://talesofai.oss-cn-shanghai.aliyuncs.com/xxx.mp4", "dataId": "data1234"}',
- ],
+ 'schema' => ['title' => '审核服务需要的参数集', 'description' => '审核服务需要的参数集', 'type' => 'string', 'required' => false, 'example' => '{"url": "https://testxxx.oss-cn-shanghai.aliyuncs.com/xxx.mp4", "dataId": "data1234"}'],
],
],
'responses' => [
@@ -2126,58 +2284,41 @@
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => 'Id of the request',
- 'type' => 'string',
- 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****',
- ],
- 'Message' => [
- 'description' => '请求消息的响应消息。',
- 'type' => 'string',
- 'example' => 'SUCCESS',
- ],
- 'Code' => [
- 'description' => '返回码。返回200代表成功。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '200',
- ],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****'],
+ 'Message' => ['title' => '返回信息', 'description' => '返回信息', 'type' => 'string', 'example' => 'OK'],
+ 'Code' => ['title' => '返回码。返回200代表成功。', 'description' => '返回码。返回200代表成功。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Data' => [
+ 'title' => '返回数据。',
'description' => '返回数据。',
'type' => 'object',
'properties' => [
- 'TaskId' => [
- 'description' => '任务ID',
- 'type' => 'string',
- 'example' => 'xxxxx-xxxxx',
- ],
- 'DataId' => [
- 'description' => 'API请求时传入的dataId 的值,如请求时未传入,则没有该字段。',
- 'type' => 'string',
- 'example' => 'data1234',
- ],
+ 'TaskId' => ['title' => '任务Id', 'description' => '任务ID,标识异步任务的ID', 'type' => 'string', 'example' => 'au_f_xxxxx'],
+ 'DataId' => ['title' => '数据ID', 'description' => '数据ID,自定义', 'type' => 'string', 'example' => 'dataIdxxx'],
],
],
],
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Message\\": \\"SUCCESS\\",\\n \\"Code\\": 200,\\n \\"Data\\": {\\n \\"TaskId\\": \\"xxxxx-xxxxx\\",\\n \\"DataId\\": \\"data1234\\"\\n }\\n}","type":"json"}]',
- 'title' => '视频审核增强版任务提交',
- 'description' => '请确保在使用该接口前,已[开通内容安全增强版](https://common-buy.aliyun.com/?commodityCode=lvwang_cip_public_cn)服务,并充分了解视频审核增强版产品的[收费方式](https://help.aliyun.com/document_detail/2505807.html)和[价格](https://www.aliyun.com/price/product?#/lvwang/detail/cdibag)。',
- ],
- 'VideoModerationResult' => [
- 'summary' => '获取视频审核增强版审核任务结果。',
- 'methods' => [
- 'post',
+ 'errorCodes' => [
+ 403 => [
+ ['errorCode' => 'NoPermission', 'errorMessage' => 'You don\'t have permission.', 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作。'],
+ ],
],
- 'schemes' => [
- 'https',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => 'AI安全护栏多模态异步检测接口',
+ 'description' => '如有涉及到收费的 API,请在第一句加上粗体的"请确保在使用该接口前,已充分了解XXX产品的收费方式和价格。"其中价格是个超链,链接为:https://www.aliyun.com/price/product#/ecs/detail',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Message\\": \\"OK\\",\\n \\"Code\\": 200,\\n \\"Data\\": {\\n \\"TaskId\\": \\"au_f_xxxxx\\",\\n \\"DataId\\": \\"dataIdxxx\\"\\n }\\n}","type":"json"}]',
+ ],
+ 'MultiModalGuardAsyncResult' => [
+ 'summary' => 'AI安全护栏多模态异步结果查询接口,支持音频、视频模态',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
@@ -2190,36 +2331,20 @@
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '187919',
- 'abilityTreeNodes' => [
- 'FEATURElvwang53TCRC',
- ],
+ 'abilityTreeNodes' => ['FEATURElvwang53TCRC'],
],
'parameters' => [
[
'name' => 'Service',
'in' => 'formData',
- 'schema' => [
- 'description' => '视频审核ServiceCode',
- 'type' => 'string',
- 'required' => false,
- 'enumValueTitles' => [
- 'liveStreamDetection' => '视频直播流审核',
- 'videoDetection' => '视频文件审核',
- 'liveStreamDetection_cb' => '视频直播流审核_海外版',
- 'videoDetection_cb' => '视频文件审核_海外版',
- ],
- 'example' => 'videoDetection',
- ],
+ 'schema' => ['description' => '审核服务service', 'type' => 'string', 'required' => false, 'example' => 'audio_security_check'],
],
[
'name' => 'ServiceParameters',
'in' => 'formData',
- 'schema' => [
- 'description' => '审核服务需要的参数集。taskId,即要查询的检测任务的taskId,每次支持输入一个taskId。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '{"taskId":"au_f_8PoWiZKoLbczp5HRn69VdT-1y8@U5"}',
- ],
+ 'schema' => ['description' => '审核服务需要的参数集。JSON字符串格式', 'type' => 'string', 'required' => false, 'example' => '{'."\n"
+ .' "taskId": "au_f_xxxxx"'."\n"
+ .'}'],
],
],
'responses' => [
@@ -2229,529 +2354,229 @@
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => 'Id of the request',
- 'type' => 'string',
- 'example' => '6CF2815C-C8C7-4A01-B52E-FF6E24F53492',
- ],
- 'Code' => [
- 'description' => '返回码。返回200代表成功。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '200',
- ],
- 'Message' => [
- 'description' => '返回信息。',
- 'type' => 'string',
- 'example' => 'success finished',
- ],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****'."\n"],
+ 'Code' => ['description' => '错误码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
+ 'Message' => ['description' => '错误信息', 'type' => 'string', 'example' => 'SUCCESS'],
'Data' => [
- 'description' => '审核结果数据。',
+ 'description' => '返回数据。',
'type' => 'object',
'properties' => [
- 'LiveId' => [
- 'description' => '直播的唯一标识ID。',
- 'type' => 'string',
- 'example' => 'liveId',
- ],
- 'DataId' => [
- 'description' => 'API请求时传入的dataId 的值,如请求时未传入,则没有该字段。',
- 'type' => 'string',
- 'example' => 'product_content-2055763',
- ],
+ 'LiveId' => ['description' => '直播的唯一标识ID。', 'type' => 'string', 'example' => 'liveId'],
+ 'DataId' => ['description' => 'API请求时传入的dataId 的值,如请求时未传入,则没有该字段。', 'type' => 'string', 'example' => 'data1234'],
+ 'TaskId' => ['description' => '任务Id', 'type' => 'string', 'example' => 'vi_f_xxx'],
+ 'Suggestion' => ['description' => '建议'."\n"
+ ."\n"
+ .'- block:建议阻断'."\n"
+ .'- pass:建议通过'."\n"
+ .'- watch:建议观察'."\n"
+ .'- mask:建议脱敏', 'type' => 'string', 'example' => 'pass'],
'AudioResult' => [
- 'description' => '视频语音审核分段结果。',
+ 'description' => '语音审核分段结果。',
'type' => 'object',
'properties' => [
+ 'Suggestion' => ['description' => '建议', 'type' => 'string', 'example' => 'pass'],
+ 'SliceNum' => ['description' => '分段数', 'type' => 'integer', 'format' => 'int32', 'example' => '2'],
'SliceDetails' => [
- 'description' => '语音分段列表',
+ 'description' => '分段详情',
'type' => 'array',
'items' => [
'description' => '分段详情',
'type' => 'object',
'properties' => [
- 'StartTime' => [
- 'description' => '分段开始时间(秒)',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '0',
- ],
- 'EndTime' => [
- 'description' => '分段结束时间(秒)',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '30',
- ],
- 'StartTimestamp' => [
- 'description' => '开始时间戳,精确到毫秒',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1659935002123',
- ],
- 'EndTimestamp' => [
- 'description' => '结束时间戳',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1685245261939',
- ],
- 'Url' => [
- 'description' => '分段语音文件临时地址',
- 'type' => 'string',
- 'example' => 'http://xxxx.abc.img',
- ],
- 'Text' => [
- 'description' => '分段语音转写文本',
- 'type' => 'string',
- 'example' => '今天天气真不错',
- ],
- 'Labels' => [
- 'description' => '命中违规标签',
- 'type' => 'string',
- 'example' => 'porn',
- ],
- 'Score' => [
- 'description' => '风险分数,默认范围 0-99',
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '5',
- ],
- 'Extend' => [
- 'description' => '扩展字段',
- 'type' => 'string',
- 'example' => '{\\"consoleProduct\\":\\"slbnext\\"}',
- ],
- 'RiskTips' => [
- 'description' => '命中风险详情',
- 'type' => 'string',
- 'example' => '""',
- ],
- 'RiskWords' => [
- 'description' => '命中风险关键词',
- 'type' => 'string',
- 'example' => '""',
- ],
- 'RiskLevel' => [
- 'description' => '风险等级,根据设置的高低风险分返回,返回值包括:'."\n"
- ."\n"
- .'- high:高风险'."\n"
- ."\n"
- .'- medium:中风险'."\n"
- .' '."\n"
- .'- low:低风险'."\n"
- ."\n"
- .' - none:未检测到风险',
- 'type' => 'string',
- 'example' => 'high',
- ],
- 'Descriptions' => [
- 'description' => '标签描述。',
- 'type' => 'string',
- 'example' => '疑似违禁内容',
- ],
- ],
- ],
- ],
- 'AudioSummarys' => [
- 'description' => '语音标签汇总。',
- 'type' => 'array',
- 'items' => [
- 'description' => '对象',
- 'type' => 'object',
- 'properties' => [
- 'Label' => [
- 'description' => '视频语音标签。',
- 'type' => 'string',
- 'example' => 'profanity',
- ],
- 'LabelSum' => [
- 'description' => '标签出现次数。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '8',
- ],
- 'Description' => [
- 'description' => '标签描述。',
- 'type' => 'string',
- 'example' => '疑似违禁内容',
+ 'StartTime' => ['description' => '分段开始时间(秒)', 'type' => 'integer', 'format' => 'int64', 'example' => '0'],
+ 'EndTime' => ['description' => '分段结束时间(秒)', 'type' => 'integer', 'format' => 'int64', 'example' => '20'],
+ 'Url' => ['description' => '分段语音文件临时地址', 'type' => 'string', 'example' => 'http://xxxx.abc.wav'],
+ 'Text' => ['description' => '分段语音转写文本', 'type' => 'string', 'example' => '今天天气真不错'],
+ 'Suggestion' => ['description' => '审核建议'."\n"
+ ."\n"
+ .'- block:建议阻断'."\n"
+ .'- pass:建议通过'."\n"
+ .'- watch:建议观察'."\n"
+ .'- mask:建议脱敏', 'type' => 'string', 'example' => 'block'],
+ 'Detail' => [
+ 'description' => '检测详情。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '检测详情。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Result' => [
+ 'description' => '检测结果列表',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '检测结果',
+ 'type' => 'object',
+ 'properties' => [
+ 'Label' => ['description' => '标签', 'type' => 'string', 'example' => 'drug'],
+ 'Description' => ['description' => '标签描述。', 'type' => 'string', 'example' => '毒品'],
+ 'Confidence' => ['description' => '置信分值,0到100分,保留到小数点后2位。', 'type' => 'number', 'format' => 'float', 'example' => '90'],
+ 'Level' => ['description' => '风险等级。包含:'."\n"
+ .'- high:高风险(若命中自定义词库,风险等级默认为高风险)'."\n"
+ .'- medium:中风险'."\n"
+ .'- low:低风险'."\n"
+ .'- none:未检测到风险', 'type' => 'string', 'example' => 'high'],
+ 'Ext' => ['description' => '检测结果扩展信息。', 'type' => 'any', 'example' => '{}'],
+ ],
+ ],
+ ],
+ 'Type' => ['description' => '检测类型。包含:'."\n"
+ .'- contentModeration 内容合规检测'."\n"
+ .'- promptAttack 提示词攻击检测'."\n"
+ .'- sensitiveData 敏感内容检测'."\n"
+ .'- modelHallucination 模型幻觉'."\n"
+ .'- maliciousFile 恶意文件检测', 'type' => 'string', 'example' => 'contentModeration'],
+ 'Level' => ['description' => '风险等级。包含:'."\n"
+ .'- high:高风险(若命中自定义词库,风险等级默认为高风险)'."\n"
+ .'- medium:中风险'."\n"
+ .'- low:低风险'."\n"
+ .'- none:未检测到风险', 'type' => 'string', 'example' => 'high'],
+ 'Suggestion' => ['description' => '审核建议'."\n"
+ ."\n"
+ .'- block:建议阻断'."\n"
+ .'- pass:建议通过'."\n"
+ .'- watch:建议观察'."\n"
+ .'- mask:建议脱敏', 'type' => 'string', 'example' => 'block'],
+ ],
+ ],
],
],
],
],
- 'RiskLevel' => [
- 'description' => '风险等级,根据设置的高低风险分返回,返回值包括:'."\n"
- ."\n"
- .'- high:高风险'."\n"
- ."\n"
- .'- medium:中风险'."\n"
- .' '."\n"
- .'- low:低风险'."\n"
- ."\n"
- .' - none:未检测到风险',
- 'type' => 'string',
- 'example' => 'high',
- ],
],
],
'FrameResult' => [
'description' => '视频截帧结果列表',
'type' => 'object',
'properties' => [
- 'FrameNum' => [
- 'description' => '结果帧数量',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '10',
- ],
+ 'SliceNum' => ['description' => '分段数量', 'type' => 'integer', 'format' => 'int32', 'example' => '2'],
+ 'Suggestion' => ['description' => '审核建议'."\n"
+ ."\n"
+ .'- block:建议阻断'."\n"
+ .'- pass:建议通过'."\n"
+ .'- watch:建议观察'."\n"
+ .'- mask:建议脱敏', 'type' => 'string', 'example' => 'pass'],
'Frames' => [
- 'description' => '包含命中标签的视频截帧的信息。',
+ 'description' => '画面检测结果',
'type' => 'array',
'items' => [
- 'description' => '对象',
+ 'description' => '检测结果',
'type' => 'object',
'properties' => [
- 'TempUrl' => [
- 'description' => '截帧图片临时访问地址',
- 'type' => 'string',
- 'example' => 'http://xxxx.abc.jpg',
- ],
- 'Offset' => [
- 'description' => '截帧偏移值。',
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '338',
- ],
- 'Results' => [
- 'description' => '帧检测结果详情',
+ 'Url' => ['description' => '片段临时url', 'type' => 'string', 'example' => 'https://xxx.jpeg'],
+ 'Offset' => ['description' => '截帧位置', 'type' => 'number', 'format' => 'float', 'example' => '1.5'],
+ 'Suggestion' => ['description' => '审核建议'."\n"
+ ."\n"
+ .'- block:建议阻断'."\n"
+ .'- pass:建议通过'."\n"
+ .'- watch:建议观察'."\n"
+ .'- mask:建议脱敏', 'type' => 'string', 'example' => 'block'],
+ 'Timestamp' => ['description' => '绝对时间戳,单位:毫秒。', 'type' => 'integer', 'format' => 'int64', 'example' => '1684559739000'],
+ 'Detail' => [
+ 'description' => '检测结果列表',
'type' => 'array',
'items' => [
- 'description' => '对象',
+ 'description' => '检测结果',
'type' => 'object',
'properties' => [
- 'Service' => [
- 'description' => '图片审核服务类型',
- 'type' => 'string',
- 'example' => 'tonalityImprove',
- ],
'Result' => [
- 'description' => '命中结果详情',
- 'type' => 'array',
- 'items' => [
- 'description' => '对象',
- 'type' => 'object',
- 'properties' => [
- 'Confidence' => [
- 'description' => '置信分值,0到100分,保留到小数点后2位。',
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '50',
- ],
- 'Label' => [
- 'description' => '检测结果的分类',
- 'type' => 'string',
- 'example' => 'bloody',
- ],
- 'Description' => [
- 'description' => '对Labal字段的说明。',
- 'type' => 'string',
- 'example' => '未检测出风险',
- ],
- ],
- ],
- ],
- 'TextInImage' => [
- 'description' => '返回命中的图片中文字信息。',
- 'type' => 'object',
- ],
- 'CustomImage' => [
- 'description' => '如果命中自定义图库,返回命中的自定义图库信息。',
+ 'description' => '检测结果',
'type' => 'array',
'items' => [
- 'description' => '对象',
+ 'description' => '检测结果',
'type' => 'object',
'properties' => [
- 'LibId' => [
- 'description' => '命中的自定义图库ID。',
- 'type' => 'string',
- 'example' => '12345678',
- ],
- 'ImageId' => [
- 'description' => '命中的自定义图片ID。',
- 'type' => 'string',
- 'example' => '1234',
- ],
- ],
- ],
- ],
- 'PublicFigure' => [
- 'description' => '视频中包含特定人物时,返回识别出来的人物编码。',
- 'type' => 'array',
- 'items' => [
- 'description' => '对象',
- 'type' => 'object',
- 'properties' => [
- 'FigureId' => [
- 'description' => '识别出的人物编码信息。',
- 'type' => 'string',
- 'example' => 'xxx001',
- ],
- 'FigureName' => [
- 'description' => '识别出的人物名称',
- 'type' => 'string',
- 'example' => '张三',
- ],
- 'Location' => [
- 'description' => '识别出的人物的位置',
- 'type' => 'array',
- 'items' => [
- 'description' => '位置对象',
- 'type' => 'object',
- 'properties' => [
- 'W' => [
- 'description' => '宽',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '111',
- ],
- 'H' => [
- 'description' => '高',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '222',
- ],
- 'X' => [
- 'description' => '起始点横坐标',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '111',
- ],
- 'Y' => [
- 'description' => '起始点纵坐标',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '222',
- ],
- ],
- ],
- ],
- ],
- ],
- ],
- 'LogoData' => [
- 'description' => '视频中包含logo时,返回的logo信息',
- 'type' => 'array',
- 'items' => [
- 'description' => 'logo信息对象',
- 'type' => 'object',
- 'properties' => [
- 'Location' => [
- 'description' => '文字行及坐标信息。',
- 'type' => 'object',
- 'properties' => [
- 'X' => [
- 'description' => '以图片左上角为坐标原点,文字区域左上角到y轴的距离,单位:像素。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '111',
- ],
- 'Y' => [
- 'description' => '以图片左上角为坐标原点,文字区域左上角到x轴的距离,单位:像素。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '222',
- ],
- 'W' => [
- 'description' => '文字区域的宽度,单位:像素。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '111',
- ],
- 'H' => [
- 'description' => '文字区域的高度,单位:像素。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '111',
- ],
- ],
- ],
- 'Logo' => [
- 'description' => '标识信息。',
- 'type' => 'array',
- 'items' => [
- 'description' => 'logo对象',
- 'type' => 'object',
- 'properties' => [
- 'label' => [
- 'description' => '命中标签',
- 'type' => 'string',
- 'example' => 'pt_logotoSocialNetwork',
- ],
- 'name' => [
- 'description' => '标识名。',
- 'type' => 'string',
- 'example' => '**卫视',
- ],
- 'confidence' => [
- 'description' => '置信分值,0到100分,保留到小数点后2位。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '99.1',
- ],
- ],
- ],
- ],
+ 'Label' => ['description' => '标签', 'type' => 'string', 'example' => 'ad'],
+ 'Description' => ['description' => '标签描述。', 'type' => 'string', 'example' => '广告'],
+ 'Confidence' => ['description' => '置信分值,0到100分,保留到小数点后2位。', 'type' => 'number', 'format' => 'float', 'example' => '80'],
+ 'Level' => ['description' => '风险等级。包含:'."\n"
+ .'- high:高风险(若命中自定义词库,风险等级默认为高风险)'."\n"
+ .'- medium:中风险'."\n"
+ .'- low:低风险'."\n"
+ .'- none:未检测到风险', 'type' => 'string', 'example' => 'loose'],
+ 'Ext' => ['description' => '检测结果扩展信息。', 'type' => 'any', 'example' => '{}'],
],
],
],
+ 'Type' => ['description' => '检测类型。包含:'."\n"
+ .'- contentModeration 内容合规检测'."\n"
+ .'- promptAttack 提示词攻击检测'."\n"
+ .'- sensitiveData 敏感内容检测'."\n"
+ .'- modelHallucination 模型幻觉'."\n"
+ .'- maliciousFile 恶意文件检测', 'type' => 'string', 'example' => 'contentModeration'],
+ 'Level' => ['description' => '风险等级。包含:'."\n"
+ .'- high:高风险(若命中自定义词库,风险等级默认为高风险)'."\n"
+ .'- medium:中风险'."\n"
+ .'- low:低风险'."\n"
+ .'- none:未检测到风险', 'type' => 'string', 'example' => 'low'],
+ 'Suggestion' => ['description' => '审核建议'."\n"
+ ."\n"
+ .'- block:建议阻断'."\n"
+ .'- pass:建议通过'."\n"
+ .'- watch:建议观察'."\n"
+ .'- mask:建议脱敏', 'type' => 'string', 'example' => 'watch'],
],
],
],
- 'Timestamp' => [
- 'description' => '绝对时间戳,单位:毫秒。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1684559739000',
- ],
- 'RiskLevel' => [
- 'description' => '风险等级,根据设置的高低风险分返回,返回值包括:'."\n"
- ."\n"
- .'- high:高风险'."\n"
- ."\n"
- .'- medium:中风险'."\n"
- .' '."\n"
- .'- low:低风险'."\n"
- ."\n"
- .' - none:未检测到风险',
- 'type' => 'string',
- 'example' => 'high',
- ],
- ],
- ],
- ],
- 'FrameSummarys' => [
- 'description' => '视频截帧标签汇总。',
- 'type' => 'array',
- 'items' => [
- 'description' => '视频截帧标签对象',
- 'type' => 'object',
- 'properties' => [
- 'Label' => [
- 'description' => '视频截帧标签。',
- 'type' => 'string',
- 'example' => 'violent_armedForces',
- ],
- 'LabelSum' => [
- 'description' => '标签出现次数。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '8',
- ],
- 'Description' => [
- 'description' => '对Labal字段的说明。',
- 'type' => 'string',
- 'example' => '未检测出风险',
- ],
],
],
],
- 'RiskLevel' => [
- 'description' => '风险等级,根据设置的高低风险分返回,返回值包括:'."\n"
- ."\n"
- .'- high:高风险'."\n"
- ."\n"
- .'- medium:中风险'."\n"
- .' '."\n"
- .'- low:低风险'."\n"
- ."\n"
- .' - none:未检测到风险',
- 'type' => 'string',
- 'example' => 'high',
- ],
],
],
- 'TaskId' => [
- 'description' => '任务ID',
- 'type' => 'string',
- 'example' => 'xxxxx-xxxxx',
- ],
- 'RiskLevel' => [
- 'description' => '风险等级,根据设置的高低风险分返回,返回值包括:'."\n"
- ."\n"
- .'- high:高风险'."\n"
- ."\n"
- .'- medium:中风险'."\n"
- .' '."\n"
- .'- low:低风险'."\n"
- ."\n"
- .' - none:未检测到风险',
- 'type' => 'string',
- 'example' => 'high',
- ],
- 'ManualTaskId' => [
- 'description' => '人审任务ID',
- 'type' => 'string',
- 'example' => 'xxxxx-xxxxx',
- ],
],
],
],
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"6CF2815C-C8C7-4A01-B52E-FF6E24F53492\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"success finished\\",\\n \\"Data\\": {\\n \\"LiveId\\": \\"liveId\\",\\n \\"DataId\\": \\"product_content-2055763\\",\\n \\"AudioResult\\": {\\n \\"SliceDetails\\": [\\n {\\n \\"StartTime\\": 0,\\n \\"EndTime\\": 30,\\n \\"StartTimestamp\\": 1659935002123,\\n \\"EndTimestamp\\": 1685245261939,\\n \\"Url\\": \\"http://xxxx.abc.img\\",\\n \\"Text\\": \\"今天天气真不错\\",\\n \\"Labels\\": \\"porn\\",\\n \\"Score\\": 5,\\n \\"Extend\\": \\"{\\\\\\\\\\\\\\"consoleProduct\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"slbnext\\\\\\\\\\\\\\"}\\",\\n \\"RiskTips\\": \\"\\\\\\"\\\\\\"\\",\\n \\"RiskWords\\": \\"\\\\\\"\\\\\\"\\",\\n \\"RiskLevel\\": \\"high\\",\\n \\"Descriptions\\": \\"疑似违禁内容\\"\\n }\\n ],\\n \\"AudioSummarys\\": [\\n {\\n \\"Label\\": \\"profanity\\",\\n \\"LabelSum\\": 8,\\n \\"Description\\": \\"疑似违禁内容\\"\\n }\\n ],\\n \\"RiskLevel\\": \\"high\\"\\n },\\n \\"FrameResult\\": {\\n \\"FrameNum\\": 10,\\n \\"Frames\\": [\\n {\\n \\"TempUrl\\": \\"http://xxxx.abc.jpg\\",\\n \\"Offset\\": 338,\\n \\"Results\\": [\\n {\\n \\"Service\\": \\"tonalityImprove\\",\\n \\"Result\\": [\\n {\\n \\"Confidence\\": 50,\\n \\"Label\\": \\"bloody\\",\\n \\"Description\\": \\"未检测出风险\\"\\n }\\n ],\\n \\"TextInImage\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"CustomImage\\": [\\n {\\n \\"LibId\\": \\"12345678\\",\\n \\"ImageId\\": \\"1234\\"\\n }\\n ],\\n \\"PublicFigure\\": [\\n {\\n \\"FigureId\\": \\"xxx001\\",\\n \\"FigureName\\": \\"张三\\",\\n \\"Location\\": [\\n {\\n \\"W\\": 111,\\n \\"H\\": 222,\\n \\"X\\": 111,\\n \\"Y\\": 222\\n }\\n ]\\n }\\n ],\\n \\"LogoData\\": [\\n {\\n \\"Location\\": {\\n \\"X\\": 111,\\n \\"Y\\": 222,\\n \\"W\\": 111,\\n \\"H\\": 111\\n },\\n \\"Logo\\": [\\n {\\n \\"label\\": \\"pt_logotoSocialNetwork\\",\\n \\"name\\": \\"**卫视\\",\\n \\"confidence\\": 99.1\\n }\\n ]\\n }\\n ]\\n }\\n ],\\n \\"Timestamp\\": 1684559739000,\\n \\"RiskLevel\\": \\"high\\"\\n }\\n ],\\n \\"FrameSummarys\\": [\\n {\\n \\"Label\\": \\"violent_armedForces\\",\\n \\"LabelSum\\": 8,\\n \\"Description\\": \\"未检测出风险\\"\\n }\\n ],\\n \\"RiskLevel\\": \\"high\\"\\n },\\n \\"TaskId\\": \\"xxxxx-xxxxx\\",\\n \\"RiskLevel\\": \\"high\\",\\n \\"ManualTaskId\\": \\"xxxxx-xxxxx\\"\\n }\\n}","type":"json"}]',
- 'title' => '查询视频审核任务结果',
- 'description' => '该接口不计费,建议您将查询间隔设置为30秒(即在提交异步检测任务30秒后查询结果),最长不能超出24小时,否则结果将会自动删除。',
- ],
- 'VideoModerationCancel' => [
- 'summary' => '取消视频直播审核任务。',
- 'methods' => [
- 'post',
+ 'errorCodes' => [
+ 403 => [
+ ['errorCode' => 'NoPermission', 'errorMessage' => 'You don\'t have permission.', 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作。'],
+ ],
],
- 'schemes' => [
- 'https',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => 'AI安全护栏多模态异步检测结果查询接口',
+ 'description' => '如有涉及到收费的 API,请在第一句加上粗体的"请确保在使用该接口前,已充分了解XXX产品的收费方式和价格。"其中价格是个超链,链接为:https://www.aliyun.com/price/product#/ecs/detail',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\\\n\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"SUCCESS\\",\\n \\"Data\\": {\\n \\"LiveId\\": \\"liveId\\",\\n \\"DataId\\": \\"data1234\\",\\n \\"TaskId\\": \\"vi_f_xxx\\",\\n \\"Suggestion\\": \\"pass\\",\\n \\"AudioResult\\": {\\n \\"Suggestion\\": \\"pass\\",\\n \\"SliceNum\\": 2,\\n \\"SliceDetails\\": [\\n {\\n \\"StartTime\\": 0,\\n \\"EndTime\\": 20,\\n \\"Url\\": \\"http://xxxx.abc.wav\\",\\n \\"Text\\": \\"今天天气真不错\\",\\n \\"Suggestion\\": \\"block\\",\\n \\"Detail\\": [\\n {\\n \\"Result\\": [\\n {\\n \\"Label\\": \\"drug\\",\\n \\"Description\\": \\"毒品\\",\\n \\"Confidence\\": 90,\\n \\"Level\\": \\"high\\",\\n \\"Ext\\": \\"{}\\"\\n }\\n ],\\n \\"Type\\": \\"contentModeration\\",\\n \\"Level\\": \\"high\\",\\n \\"Suggestion\\": \\"block\\"\\n }\\n ]\\n }\\n ]\\n },\\n \\"FrameResult\\": {\\n \\"SliceNum\\": 2,\\n \\"Suggestion\\": \\"pass\\",\\n \\"Frames\\": [\\n {\\n \\"Url\\": \\"https://xxx.jpeg\\",\\n \\"Offset\\": 1.5,\\n \\"Suggestion\\": \\"block\\",\\n \\"Timestamp\\": 1684559739000,\\n \\"Detail\\": [\\n {\\n \\"Result\\": [\\n {\\n \\"Label\\": \\"ad\\",\\n \\"Description\\": \\"广告\\",\\n \\"Confidence\\": 80,\\n \\"Level\\": \\"loose\\",\\n \\"Ext\\": \\"{}\\"\\n }\\n ],\\n \\"Type\\": \\"contentModeration\\",\\n \\"Level\\": \\"low\\",\\n \\"Suggestion\\": \\"watch\\"\\n }\\n ]\\n }\\n ]\\n }\\n }\\n}","type":"json"}]',
+ ],
+ 'MultiModalGuardForBase64' => [
+ 'path' => '',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'write',
+ 'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeCode' => '201471',
- 'abilityTreeNodes' => [
- 'FEATURElvwang53TCRC',
- ],
+ 'chargeType' => 'paid',
+ 'abilityTreeNodes' => ['FEATURElvwangTHWXLK', 'FEATURElvwang4DJRB7', 'FEATURElvwang5OIOPT', 'FEATURElvwangCXOBXW', 'FEATURElvwang08CDRQ', 'FEATURElvwang2AB5DH', 'FEATURElvwangZUTYIL', 'FEATURElvwangEZQESQ'],
+ 'autoTest' => true,
+ 'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'Service',
- 'in' => 'formData',
- 'schema' => [
- 'description' => '审核服务类型',
- 'type' => 'string',
- 'required' => false,
- 'enumValueTitles' => [
- 'liveStreamDetection' => '视频直播流检测',
- 'videoDetection' => '视频文件检测',
- 'liveStreamDetection_cb' => '视频直播流审核_海外版',
- 'videoDetection_cb' => '视频文件审核_海外版',
- ],
- 'example' => 'videoDetection',
- ],
+ 'in' => 'query',
+ 'schema' => ['title' => 'Service', 'description' => 'Service', 'type' => 'string', 'required' => false, 'example' => 'query_security_check'],
],
[
'name' => 'ServiceParameters',
'in' => 'formData',
- 'schema' => [
- 'description' => '待取消任务TaskId',
- 'type' => 'string',
- 'required' => false,
- 'example' => '{\\"taskId\\":\\"vi_s_4O9gp7GfNQdx9GOqdekFmk-1z2RJT\\"}',
- ],
+ 'schema' => ['title' => 'Service参数', 'description' => 'Service参数', 'type' => 'string', 'required' => false, 'example' => '{"content":"test"}'],
+ ],
+ [
+ 'name' => 'ImageBase64Str',
+ 'in' => 'formData',
+ 'schema' => ['title' => '图片的base64字符串', 'description' => '图片的base64字符串', 'type' => 'string', 'required' => false, 'example' => '{base64}'],
],
],
'responses' => [
@@ -2761,41 +2586,76 @@
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => 'Id of the request',
- 'type' => 'string',
- 'example' => '6CF2815C-****-****-B52E-FF6E2****492',
- ],
- 'Code' => [
- 'description' => '返回码。返回200代表成功。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '200',
- ],
- 'Message' => [
- 'description' => '返回信息。',
- 'type' => 'string',
- 'example' => 'OK',
+ 'RequestId' => ['title' => 'Id of the request'."\n"
+ .'请求的唯一标识符', 'description' => 'Id of the request'."\n"
+ .'请求的唯一标识符', 'type' => 'string', 'example' => 'XXXX'],
+ 'Code' => ['title' => '错误码', 'description' => '错误码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
+ 'Message' => ['title' => '错误信息', 'description' => '错误信息', 'type' => 'string', 'example' => 'OK'],
+ 'Data' => [
+ 'title' => '数据',
+ 'description' => '数据',
+ 'type' => 'object',
+ 'properties' => [
+ 'Detail' => [
+ 'title' => '详情',
+ 'description' => '详情',
+ 'type' => 'array',
+ 'items' => [
+ 'title' => '详情对象',
+ 'description' => '详情对象',
+ 'type' => 'object',
+ 'properties' => [
+ 'Result' => [
+ 'title' => '结果',
+ 'description' => '结果',
+ 'type' => 'array',
+ 'items' => [
+ 'title' => '数据详情中的第一个结果',
+ 'description' => '数据详情中的第一个结果',
+ 'type' => 'object',
+ 'properties' => [
+ 'Label' => ['title' => '标签', 'description' => '标签', 'type' => 'string', 'example' => 'nonLable'],
+ 'Description' => ['title' => '描述', 'description' => '描述', 'type' => 'string', 'example' => '未检测出风险'],
+ 'Confidence' => ['title' => '置信度', 'description' => '置信度', 'type' => 'number', 'format' => 'float', 'example' => '100'],
+ 'Level' => ['title' => '风险等级', 'description' => '风险等级', 'type' => 'string', 'example' => 'low'],
+ 'Ext' => ['title' => '扩展信息', 'description' => '扩展信息', 'type' => 'any', 'example' => 'json格式数据'],
+ ],
+ ],
+ ],
+ 'Type' => ['title' => '分类', 'description' => '分类', 'type' => 'string', 'example' => 'contentModeration'],
+ 'Level' => ['title' => '风险等级', 'description' => '风险等级', 'type' => 'string', 'example' => 'low'],
+ 'Suggestion' => ['title' => '处置建议', 'description' => '处置建议', 'type' => 'string', 'example' => 'pass'],
+ ],
+ ],
+ ],
+ 'Suggestion' => ['title' => '处置建议', 'description' => '处置建议', 'type' => 'string', 'example' => 'pass'],
+ 'DataId' => ['title' => '数据ID', 'description' => '数据ID', 'type' => 'string', 'example' => 'xxx'],
+ ],
+ 'enumValueTitles' => [],
],
],
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"6CF2815C-****-****-B52E-FF6E2****492\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"OK\\"\\n}","type":"json"}]',
- 'title' => '取消视频直播审核任务',
- ],
- 'FileModeration' => [
- 'summary' => '文档检测',
- 'methods' => [
- 'post',
+ 'errorCodes' => [
+ 403 => [
+ ['errorCode' => 'NoPermission', 'errorMessage' => 'You don\'t have permission.', 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作。'],
+ ],
],
- 'schemes' => [
- 'https',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '多模态防护接口(Base64专用)',
+ 'summary' => '多模态同步检测接口,支持图片base64字符串',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"XXXX\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"OK\\",\\n \\"Data\\": {\\n \\"Detail\\": [\\n {\\n \\"Result\\": [\\n {\\n \\"Label\\": \\"nonLable\\",\\n \\"Description\\": \\"未检测出风险\\",\\n \\"Confidence\\": 100,\\n \\"Level\\": \\"low\\",\\n \\"Ext\\": \\"json格式数据\\"\\n }\\n ],\\n \\"Type\\": \\"contentModeration\\",\\n \\"Level\\": \\"low\\",\\n \\"Suggestion\\": \\"pass\\"\\n }\\n ],\\n \\"Suggestion\\": \\"pass\\",\\n \\"DataId\\": \\"xxx\\"\\n }\\n}","type":"json"}]',
+ ],
+ 'MultiModalGuardWs' => [
+ 'path' => '',
+ 'methods' => ['get'],
+ 'schemes' => ['https', 'websocket'],
'security' => [
[
'AK' => [],
@@ -2807,35 +2667,114 @@
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'paid',
- 'abilityTreeCode' => '204033',
- 'abilityTreeNodes' => [
- 'FEATURElvwangCXKRID',
- ],
+ 'abilityTreeNodes' => ['FEATURElvwangTHWXLK', 'FEATURElvwang4DJRB7', 'FEATURElvwang5OIOPT', 'FEATURElvwangCXOBXW', 'FEATURElvwang08CDRQ', 'FEATURElvwangDTK4CB', 'FEATURElvwangE9ZR0N', 'FEATURElvwang2AB5DH', 'FEATURElvwangZUTYIL', 'FEATURElvwangEZQESQ', 'FEATURElvwangPB269G'],
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => 'websocket协议当前平台不支持自动化测试',
+ 'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'Service',
- 'in' => 'formData',
- 'schema' => [
- 'description' => '文件检测增强版支持的服务',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'document_detection',
- ],
+ 'in' => 'query',
+ 'schema' => ['description' => '审核服务分类,包括:'."\n"
+ ."\n"
+ .'- query_security_check_pro:AI输入内容安全检测_pro版'."\n"
+ .'- response_security_check_pro:AI生成内容安全检测_pro版'."\n"
+ .'- img_query_security_check:AIGC输入图片安全检测'."\n"
+ .'- img_response_security_check:AIGC输出图片安全检测'."\n"
+ .'- text_img_mix_guard:多模态(文本+图片)混合安全检测'."\n"
+ .'- file_security_sync_check:AIGC输入或输出文件安全检测'."\n"
+ .'- text_file_sec_sync_check:多模态(文本+文件)实时安全检测', 'type' => 'string', 'required' => false, 'example' => 'query_security_check_pro'],
],
[
'name' => 'ServiceParameters',
- 'in' => 'formData',
+ 'in' => 'query',
+ 'schema' => ['description' => '审核服务需要的参数集,JSON字符串格式。文本内容入参是content(String),图片内容入参是imageUrls(JSONArray),文件内容入参是fileUrls(JSONArray),', 'type' => 'string', 'required' => false, 'example' => '- 文本:'."\n"
+ .'{'."\n"
+ .' "content": "test"'."\n"
+ .'}'."\n"
+ ."\n"
+ .'- 图片:'."\n"
+ .'{'."\n"
+ .' "imageUrls": ["https://example.com/image.png"]'."\n"
+ .'}'."\n"
+ ."\n"
+ .'- 文件:'."\n"
+ .'{'."\n"
+ .' "fileUrls": ["https://example.com/file.pdf"]'."\n"
+ .'}'],
+ ],
+ [
+ 'name' => 'ProtocolType',
+ 'in' => 'query',
+ 'schema' => ['description' => '协议类型'."\n"
+ ."\n"
+ .'- OpenAI'."\n"
+ .'- DashScope'."\n"
+ .'- Anthropic', 'type' => 'string', 'required' => false, 'example' => 'DashScope'],
+ ],
+ [
+ 'name' => 'ModelType',
+ 'in' => 'query',
+ 'schema' => ['description' => '模型类型'."\n"
+ ."\n"
+ .'- LLM', 'type' => 'string', 'required' => false, 'example' => 'LLM'],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
'schema' => [
- 'description' => '审核服务需要的参数集,JSON字符串格式。'."\n"
- .'- url:必填,待检测对象的URL,请确保该URL能通过公网访问到。'."\n"
- .'- dataId:选填,检测对象对应的数据ID。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '{"url":"https://detect-obj.oss-cn-hangzhou.aliyuncs.com/sample/xxxx.pdf"}',
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '552F83A7-80C9-17ED-B344-0E13F7D3BF00'],
+ ],
],
],
],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => 'AI安全护栏多模态检测WebSocket接口',
+ 'summary' => '支持websocket协议的AI安全护栏多模态检测接口,包括内容合规检测、敏感内容检测、提示词攻击检测、恶意文件检测、恶意URL检测等全方位检测能力。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"552F83A7-80C9-17ED-B344-0E13F7D3BF00\\"\\n}","type":"json"}]',
+ ],
+ 'MultimodalAsyncModeration' => [
+ 'summary' => '多模态-异步检测',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'none',
+ 'riskType' => 'none',
+ 'chargeType' => 'paid',
+ 'abilityTreeCode' => '211718',
+ 'abilityTreeNodes' => ['FEATURElvwang7UL554'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Service',
+ 'in' => 'query',
+ 'schema' => ['description' => '审核服务类型。取值:'."\n"
+ .'- post_text_image_detection:帖子图文多模态检测'."\n"
+ .'- profile_text_image_detection:头像昵称图文多模态检测'."\n", 'type' => 'string', 'required' => false, 'example' => 'post_text_image_detection'],
+ ],
+ [
+ 'name' => 'ServiceParameters',
+ 'in' => 'query',
+ 'schema' => ['description' => '审核服务需要的参数集。JSON字符串格式。', 'type' => 'string', 'required' => false, 'example' => '{"mainData":{"mainContent":"testMainContent","mainTitle":"testMainTitle","mainImages":[{"imageUrl":"https://xxxx.com/001.jpg"}]}}'],
+ ],
+ ],
'responses' => [
200 => [
'schema' => [
@@ -2843,566 +2782,324 @@
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => 'Id of the request',
- 'type' => 'string',
- 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****',
- ],
- 'Message' => [
- 'description' => '错误信息',
- 'type' => 'string',
- 'example' => 'SUCCESS',
- ],
- 'Code' => [
- 'description' => '错误码,和HTTP状态码一致。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '200',
- ],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****'],
+ 'Code' => ['description' => '返回码。返回200代表成功。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
+ 'Msg' => ['description' => '本次请求的响应消息。', 'type' => 'string', 'example' => 'OK'],
'Data' => [
'description' => '返回数据。',
'type' => 'object',
'properties' => [
- 'TaskId' => [
- 'description' => '任务ID',
- 'type' => 'string',
- 'example' => 'xxxxx-xxxxx',
- ],
+ 'ReqId' => ['description' => 'URL 异步审核增强版API返回的ReqId字段,可用此字段查询检测结果。', 'type' => 'string', 'example' => 'A07B3DB9-D762-5C56-95B1-8EC55CF176D2'],
+ 'DataId' => ['description' => 'API请求时传入的dataId 的值,如请求时未传入,则没有该字段。', 'type' => 'string', 'example' => '26769ada6e264e7ba9aa048241e12be9'],
],
],
],
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Message\\": \\"SUCCESS\\",\\n \\"Code\\": 200,\\n \\"Data\\": {\\n \\"TaskId\\": \\"xxxxx-xxxxx\\"\\n }\\n}","type":"json"}]',
- 'title' => '文档检测任务提交',
- ],
- 'DescribeFileModerationResult' => [
- 'summary' => '文档审核结果',
- 'methods' => [
- 'post',
- 'get',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '多模态异步检测',
+ 'description' => 'URL 异步检测服务支持按量后付费和资源包抵扣两种付费方式。'."\n"
+ ."\n"
+ .'- 当您开通文本审核增强版服务后,默认付费方式是按量后付费,且按照实际用量结算当日费用,不调用服务不收费。'."\n"
+ ."\n"
+ .'- 如果您的审核量较大,或有相对固定的审核需求,建议预先购买资源包的方式。购买资源包规格越大,享受的折扣越大,支持叠加购买和使用。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
],
- 'schemes' => [
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'yundun-greenweb:MultimodalAsyncModeration',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Code\\": 200,\\n \\"Msg\\": \\"OK\\",\\n \\"Data\\": {\\n \\"ReqId\\": \\"A07B3DB9-D762-5C56-95B1-8EC55CF176D2\\",\\n \\"DataId\\": \\"26769ada6e264e7ba9aa048241e12be9\\"\\n }\\n}","type":"json"}]',
+ ],
+ 'TextModeration' => [
+ 'summary' => '采用动态策略和模型强化变异对抗性,提供多种业务场景的审核服务,识别出多种违规风险。',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'read',
+ 'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'none',
+ 'operationType' => 'get',
'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeCode' => '205895',
- 'abilityTreeNodes' => [
- 'FEATURElvwang6CEZ66',
- ],
+ 'chargeType' => 'paid',
+ 'abilityTreeCode' => '128601',
+ 'abilityTreeNodes' => ['FEATURElvwang8G4HBD'],
],
'parameters' => [
[
'name' => 'Service',
'in' => 'formData',
'schema' => [
- 'description' => '文件检测增强版支持的服务',
+ 'description' => '审核服务类型,包括:'."\n"
+ .'nickname_detection:用户昵称'."\n"
+ .'chat_detection:聊天互动'."\n"
+ .'comment_detection:动态评论'."\n"
+ .'pgc_detection:教学物料PGC',
'type' => 'string',
- 'required' => false,
- 'example' => 'document_detection',
+ 'required' => true,
+ 'docRequired' => true,
+ 'enumValueTitles' => ['pgc_detection' => 'PGC通用物料检测', 'nickname_detection' => '用户昵称检测', 'comment_multilingual_pro' => '国际业务多语言检测', 'chat_detection' => '私聊互动内容检测', 'ad_compliance_detection' => '广告法合规检测', 'comment_detection' => '公聊评论内容检测', 'ai_art_detection' => 'AIGC类文字检测'],
+ 'example' => 'nickname_detection',
],
],
[
'name' => 'ServiceParameters',
'in' => 'formData',
- 'schema' => [
- 'description' => '审核服务需要的参数集,JSON字符串格式。'."\n"
- .'- taskId:必填,待检测对象的URL,请确保该URL能通过公网访问到。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '{\\"taskId\\":\\"vi_f_hPgx9PFIQISdlfA888hOFG-1yJq8v\\"}',
- ],
+ 'schema' => ['description' => '审核服务需要的参数集。JSON字符串格式,关于每个字符串的描述', 'type' => 'string', 'required' => false, 'example' => '{"content":"The map is still black"}'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
- 'description' => 'Schema of Response',
+ 'description' => '响应体',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => 'Id of the request',
- 'type' => 'string',
- 'example' => '6CF2815C-C8C7-4A01-B52E-FF6E24F53492',
- ],
- 'Code' => [
- 'description' => '返回码。返回200代表成功。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '200',
- ],
- 'Message' => [
- 'description' => '错误信息',
- 'type' => 'string',
- 'example' => 'OK',
- ],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****'],
+ 'Code' => ['description' => '错误码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
+ 'Message' => ['description' => '请求消息的响应消息。', 'type' => 'string', 'example' => 'OK'],
'Data' => [
- 'description' => '返回数据。',
+ 'description' => '审核结果数据。',
'type' => 'object',
'properties' => [
- 'DataId' => [
- 'description' => '数据ID。',
- 'type' => 'string',
- 'example' => '26769ada6e264e7ba9aa048241e12be9',
- ],
- 'Url' => [
- 'description' => '文件下载URL路径。',
- 'type' => 'string',
- 'example' => 'https://detect-obj.oss-cn-hangzhou.aliyuncs.com/sample/xxxx.pdf',
- ],
- 'DocType' => [
- 'description' => '可选,文档类型',
- 'type' => 'string',
- 'example' => 'doc',
- ],
- 'PageResult' => [
- 'description' => '检测结果列表',
- 'type' => 'array',
- 'items' => [
- 'description' => '结果内容',
- 'type' => 'object',
- 'properties' => [
- 'PageNum' => [
- 'description' => '页码。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- 'ImageUrl' => [
- 'description' => '图片地址',
- 'type' => 'string',
- 'example' => 'https://detect-obj.oss-cn-hangzhou.aliyuncs.com/sample/xxxx.jpg',
- ],
- 'TextUrl' => [
- 'description' => '文本内容保存地址',
- 'type' => 'string',
- 'example' => 'https://detect-obj.oss-cn-hangzhou.aliyuncs.com/sample/xxxx.txt',
- ],
- 'ImageResult' => [
- 'description' => '图片检测结果',
- 'type' => 'array',
- 'items' => [
- 'description' => '结果内容',
- 'type' => 'object',
- 'properties' => [
- 'Description' => [
- 'description' => '描述',
- 'type' => 'string',
- 'example' => '这个是标题',
- ],
- 'Service' => [
- 'description' => '调用的服务',
- 'type' => 'string',
- 'example' => 'baselineCheck',
- ],
- 'Location' => [
- 'description' => '位置信息',
- 'type' => 'object',
- 'properties' => [
- 'X' => [
- 'description' => '坐标点的X值。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '11',
- ],
- 'Y' => [
- 'description' => '坐标点的Y值。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '22',
- ],
- 'W' => [
- 'description' => '坐标点的W值。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '33',
- ],
- 'H' => [
- 'description' => '坐标点的H值。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '44',
- ],
- ],
- ],
- 'LabelResult' => [
- 'description' => '标签信息',
- 'type' => 'array',
- 'items' => [
- 'description' => '标签信息',
- 'type' => 'object',
- 'properties' => [
- 'Label' => [
- 'description' => '标签',
- 'type' => 'string',
- 'example' => 'nonlabel',
- ],
- 'Confidence' => [
- 'description' => '分险分',
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '25.0',
- ],
- 'Description' => [
- 'description' => '描述',
- 'type' => 'string',
- 'example' => '这个是标题'."\n",
- ],
- ],
- ],
- ],
- 'RiskLevel' => [
- 'description' => '风险等级',
- 'type' => 'string',
- 'example' => 'high',
- ],
- ],
- ],
- ],
- 'TextResult' => [
- 'description' => '文本审核结果。',
- 'type' => 'array',
- 'items' => [
- 'description' => '结果内容',
- 'type' => 'object',
- 'properties' => [
- 'Description' => [
- 'description' => '描述',
- 'type' => 'string',
- 'example' => '这是一个标题',
- ],
- 'Service' => [
- 'description' => '服务',
- 'type' => 'string',
- 'example' => 'chat_detection',
- ],
- 'Text' => [
- 'description' => '文本内容',
- 'type' => 'string',
- 'example' => '吧啦吧啦',
- ],
- 'TextSegment' => [
- 'description' => '文本分段信息',
- 'type' => 'string',
- 'example' => '[0,999]',
- ],
- 'Labels' => [
- 'description' => '标签的值。',
- 'type' => 'string',
- 'example' => 'porn',
- ],
- 'Descriptions' => [
- 'description' => '标签描述。',
- 'type' => 'string',
- 'example' => '疑似广告内容',
- ],
- 'RiskWords' => [
- 'description' => '命中风险关键词',
- 'type' => 'string',
- 'example' => 'xxx',
- ],
- 'RiskTips' => [
- 'description' => '命中风险详情',
- 'type' => 'string',
- 'example' => 'xxx',
- ],
- 'RiskLevel' => [
- 'description' => '风险等级',
- 'type' => 'string',
- 'example' => 'high',
- ],
- ],
- ],
- ],
- ],
- ],
- ],
- 'PageSummary' => [
- 'description' => '汇总信息',
+ 'labels' => ['description' => '标签,多个用英文逗号分隔。包括:'."\n"
+ .'ad:广告'."\n"
+ .'profanity:辱骂'."\n"
+ .'contraband:违禁品'."\n"
+ .'sexual_content:色情'."\n"
+ .'violence:暴恐'."\n"
+ .'nonsense:灌水'."\n"
+ .'spam:垃圾信息'."\n"
+ .'negative_content:不良场景'."\n"
+ .'cyberbullying:网络暴力'."\n"
+ .'C_customized:用户库命中', 'type' => 'string', 'example' => 'porn'],
+ 'reason' => ['description' => '原因定位的JSON字符串,包含以下字段:'."\n"
+ .'1. riskTips:细分标签'."\n"
+ .'2. riskWords:命中风险词'."\n"
+ .'3. adNums:命中广告号'."\n"
+ .'4. customizedWords:命中用户词'."\n"
+ .'5. customizedLibs:命中用户词库名'."\n"
+ .'6. riskLevel:风险等级,根据系统推荐的风险等级返回,返回值包括:'."\n"
+ .'- high:高风险'."\n"
+ .'- medium:中风险'."\n"
+ .'- low:低风险', 'type' => 'string', 'example' => '{\\"riskLevel\\":\\"high\\",\\"riskTips\\":\\"色情_低俗词\\",\\"riskWords\\":\\"色情服务\\"}'],
+ 'accountId' => ['description' => '客户入参传入的accountId', 'type' => 'string', 'example' => '123456'],
+ 'deviceId' => ['description' => '客户入参传入的deviceId', 'type' => 'string', 'example' => 'xxxxxx'],
+ 'dataId' => ['description' => '检测对象对应的数据ID。'."\n"
+ .'> 如果在检测请求参数中传入了dataId,则此处返回对应的dataId。', 'type' => 'string', 'example' => 'text1234'],
+ 'descriptions' => ['description' => '标签描述。', 'type' => 'string', 'example' => '疑似广告内容'],
+ 'manualTaskId' => ['description' => '人审任务ID', 'type' => 'string', 'example' => 'xxxxx-xxxxx'],
+ 'ext' => [
+ 'description' => '文本辅助参考信息。',
'type' => 'object',
'properties' => [
- 'PageSum' => [
- 'description' => '总页数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- 'ImageSummary' => [
- 'description' => '图片汇总信息',
- 'type' => 'object',
- 'properties' => [
- 'RiskLevel' => [
- 'description' => '风险等级',
- 'type' => 'string',
- 'example' => 'high',
- ],
- 'ImageLabels' => [
- 'description' => '图片标签。',
- 'type' => 'array',
- 'items' => [
- 'description' => '图片标签。',
- 'type' => 'object',
- 'properties' => [
- 'Label' => [
- 'description' => '标签。',
- 'type' => 'string',
- 'example' => 'contraband',
- ],
- 'LabelSum' => [
- 'description' => '标签出现次数。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- 'Description' => [
- 'description' => '标签描述',
- 'type' => 'string',
- 'example' => 'test',
- ],
- ],
- ],
- ],
- ],
- ],
- 'TextSummary' => [
- 'description' => '文本汇总信息',
+ 'llmContent' => [
+ 'description' => '大模型输出内容。',
'type' => 'object',
'properties' => [
- 'RiskLevel' => [
- 'description' => '风险等级',
- 'type' => 'string',
- 'example' => 'high',
- ],
- 'TextLabels' => [
- 'description' => '文本标签。',
- 'type' => 'array',
- 'items' => [
- 'description' => '文本标签。',
- 'type' => 'object',
- 'properties' => [
- 'Label' => [
- 'description' => '标签。',
- 'type' => 'string',
- 'example' => 'contraband',
- ],
- 'LabelSum' => [
- 'description' => '标签出现次数。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- 'Description' => [
- 'description' => '标签描述。',
- 'type' => 'string',
- 'example' => '未检测出风险',
- ],
- ],
- ],
- ],
+ 'outputText' => ['description' => '输出内容。', 'type' => 'string', 'example' => '正常。文本中无风险内容。'],
],
],
],
],
- 'RiskLevel' => [
- 'description' => '风险等级',
- 'type' => 'string',
- 'example' => 'high',
- ],
- 'AccountId' => [
- 'description' => '客户入参AccountId',
- 'type' => 'string',
- 'example' => 'accountIdtest123',
- ],
],
],
],
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"6CF2815C-C8C7-4A01-B52E-FF6E24F53492\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"OK\\",\\n \\"Data\\": {\\n \\"DataId\\": \\"26769ada6e264e7ba9aa048241e12be9\\",\\n \\"Url\\": \\"https://detect-obj.oss-cn-hangzhou.aliyuncs.com/sample/xxxx.pdf\\",\\n \\"DocType\\": \\"doc\\",\\n \\"PageResult\\": [\\n {\\n \\"PageNum\\": 1,\\n \\"ImageUrl\\": \\"https://detect-obj.oss-cn-hangzhou.aliyuncs.com/sample/xxxx.jpg\\",\\n \\"TextUrl\\": \\"https://detect-obj.oss-cn-hangzhou.aliyuncs.com/sample/xxxx.txt\\",\\n \\"ImageResult\\": [\\n {\\n \\"Description\\": \\"这个是标题\\",\\n \\"Service\\": \\"baselineCheck\\",\\n \\"Location\\": {\\n \\"X\\": 11,\\n \\"Y\\": 22,\\n \\"W\\": 33,\\n \\"H\\": 44\\n },\\n \\"LabelResult\\": [\\n {\\n \\"Label\\": \\"nonlabel\\",\\n \\"Confidence\\": 25,\\n \\"Description\\": \\"这个是标题\\\\n\\"\\n }\\n ],\\n \\"RiskLevel\\": \\"high\\"\\n }\\n ],\\n \\"TextResult\\": [\\n {\\n \\"Description\\": \\"这是一个标题\\",\\n \\"Service\\": \\"chat_detection\\",\\n \\"Text\\": \\"吧啦吧啦\\",\\n \\"TextSegment\\": \\"[0,999]\\",\\n \\"Labels\\": \\"porn\\",\\n \\"Descriptions\\": \\"疑似广告内容\\",\\n \\"RiskWords\\": \\"xxx\\",\\n \\"RiskTips\\": \\"xxx\\",\\n \\"RiskLevel\\": \\"high\\"\\n }\\n ]\\n }\\n ],\\n \\"PageSummary\\": {\\n \\"PageSum\\": 1,\\n \\"ImageSummary\\": {\\n \\"RiskLevel\\": \\"high\\",\\n \\"ImageLabels\\": [\\n {\\n \\"Label\\": \\"contraband\\",\\n \\"LabelSum\\": 1,\\n \\"Description\\": \\"test\\"\\n }\\n ]\\n },\\n \\"TextSummary\\": {\\n \\"RiskLevel\\": \\"high\\",\\n \\"TextLabels\\": [\\n {\\n \\"Label\\": \\"contraband\\",\\n \\"LabelSum\\": 1,\\n \\"Description\\": \\"未检测出风险\\"\\n }\\n ]\\n }\\n },\\n \\"RiskLevel\\": \\"high\\",\\n \\"AccountId\\": \\"accountIdtest123\\"\\n }\\n}","type":"json"}]',
- 'title' => '查询文档检测结果',
- ],
- 'DescribeImageResultExt' => [
- 'summary' => '图片审核增强版辅助信息API用于获取图片审核增强版API接口识别的更多辅助信息,包含图片文字识别结果、自定义图库命中信息等。',
- 'methods' => [
- 'post',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"OK\\",\\n \\"Data\\": {\\n \\"labels\\": \\"porn\\",\\n \\"reason\\": \\"{\\\\\\\\\\\\\\"riskLevel\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"high\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"riskTips\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"色情_低俗词\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"riskWords\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"色情服务\\\\\\\\\\\\\\"}\\",\\n \\"accountId\\": \\"123456\\",\\n \\"deviceId\\": \\"xxxxxx\\",\\n \\"dataId\\": \\"text1234\\",\\n \\"descriptions\\": \\"疑似广告内容\\",\\n \\"manualTaskId\\": \\"xxxxx-xxxxx\\",\\n \\"ext\\": {\\n \\"llmContent\\": {\\n \\"outputText\\": \\"正常。文本中无风险内容。\\"\\n }\\n }\\n }\\n}","type":"json"}]',
+ 'title' => '文本审核增强版',
+ 'description' => '请确保在使用该接口前,已充分了解文本审核增强版产品的[收费方式和价格](https://help.aliyun.com/document_detail/464388.html?#section-itm-m2s-ugq)。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'TextModeration'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'yundun-greenweb:TextModeration',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ ],
+ 'TextModerationPlus' => [
+ 'summary' => '文本审核增强版升级PLUS服务,面向大语言模型的输入指令和生成文字分别提供审核服务,特定的模型输入指令支持检索标准回答,同时开放审核标签的开启和关闭功能。',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'read',
+ 'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'get',
+ 'operationType' => 'none',
'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeCode' => '178655',
- 'abilityTreeNodes' => [
- 'FEATURElvwangLRLIH6',
- ],
+ 'chargeType' => 'paid',
+ 'abilityTreeCode' => '207632',
+ 'abilityTreeNodes' => ['FEATURElvwangXYAQ5C'],
],
'parameters' => [
[
- 'name' => 'ReqId',
+ 'name' => 'Service',
'in' => 'formData',
'schema' => [
- 'description' => '图片审核增强版API返回的requestId字段',
+ 'description' => '审核服务类型',
'type' => 'string',
'required' => false,
- 'example' => '638EDDC65C82AB39319A9F60',
+ 'enumValueTitles' => ['chat_detection_pro' => '私聊互动内容检测_专业版', 'llm_response_moderation' => '大语言模型生成文字检测', 'llm_query_moderation' => '大语言模型输入文字检测', 'aigc_moderation_byllm' => 'AIGC场景文本审核大模型服务', 'nickname_detection_pro' => '用户昵称检测_专业版', 'comment_detection_pro' => '公聊评论内容检测_专业版', 'ugc_moderation_byllm' => 'UGC场景文本审核大模型服务', 'ad_compliance_detection_pro' => '广告法合规检测_专业版'],
+ 'example' => 'ugc_moderation_byllm',
],
],
[
- 'name' => 'InfoType',
+ 'name' => 'ServiceParameters',
'in' => 'formData',
- 'schema' => [
- 'description' => '需要获取的信息内容,多个值使用英文逗号隔开,取值:'."\n"
- .'- customImage:自定义图库命中信息'."\n"
- .'- textInImage:图片中文字信息',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'customImage,textInImage',
- ],
+ 'schema' => ['description' => '审核服务需要的参数集。JSON字符串格式', 'type' => 'string', 'required' => false, 'example' => '{"content":"Test content"}'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
- 'description' => '返回对象。',
+ 'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '6CF2815C-C8C7-4A01-B52E-FF6E24F53492',
- ],
- 'Code' => [
- 'description' => '状态码。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '200',
- ],
- 'Msg' => [
- 'description' => '请求信息的响应信息。',
- 'type' => 'string',
- 'example' => 'success',
- ],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****'],
+ 'Code' => ['description' => '返回码。返回200代表成功。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
+ 'Message' => ['description' => '错误信息', 'type' => 'string', 'example' => 'OK'],
'Data' => [
- 'description' => '返回数据。',
+ 'description' => '审核结果数据。',
'type' => 'object',
'properties' => [
- 'CustomImage' => [
- 'description' => '自定义图库命中信息列表。',
+ 'Result' => [
+ 'description' => '结果',
'type' => 'array',
'items' => [
- 'description' => '自定义图库命中信息。',
+ 'description' => '返回集合。',
'type' => 'object',
'properties' => [
- 'ImageId' => [
- 'description' => '图片ID。',
- 'type' => 'string',
- 'example' => '123456',
- ],
- 'LibName' => [
- 'description' => '图库名。',
- 'type' => 'string',
- 'example' => '图库123',
+ 'Label' => ['description' => '标签', 'type' => 'string', 'example' => 'porn'],
+ 'Confidence' => ['description' => '置信分值,0到100分,保留到小数点后2位。', 'type' => 'number', 'format' => 'float', 'example' => '81.22'],
+ 'RiskWords' => ['description' => '命中风险关键词', 'type' => 'string', 'example' => 'XXX'],
+ 'CustomizedHit' => [
+ 'description' => '自定义关键词命中',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '自定义命中',
+ 'type' => 'object',
+ 'properties' => [
+ 'LibName' => ['description' => '库名称', 'type' => 'string', 'example' => '测试词库'],
+ 'KeyWords' => ['description' => '命中的关键词,逗号分隔', 'type' => 'string', 'example' => 'xxx'],
+ ],
+ ],
],
- 'LibId' => [
- 'description' => '图库ID。',
- 'type' => 'string',
- 'example' => '123456',
+ 'Description' => ['description' => '标签描述', 'type' => 'string', 'example' => '未检测出风险'],
+ 'RiskPositions' => [
+ 'description' => '风险词位置信息。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '风险词位置信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RiskWord' => ['description' => '违规关键词。', 'type' => 'string', 'example' => '词A'],
+ 'StartPos' => ['description' => '敏感词的开始位置。', 'type' => 'integer', 'format' => 'int32', 'example' => '4'],
+ 'EndPos' => ['description' => '敏感词的结束位置。', 'type' => 'integer', 'format' => 'int32', 'example' => '6'],
+ ],
+ ],
],
],
],
],
- 'TextInImage' => [
- 'description' => '返回命中的图片中文字信息。',
- 'type' => 'object',
- 'properties' => [
- 'OcrDatas' => [
- 'description' => '返回识别到的图片中的文字信息。',
- 'type' => 'array',
- 'items' => [
- 'description' => '文字信息。',
- 'type' => 'string',
- 'example' => 'abcd',
- ],
- ],
- 'RiskWords' => [
- 'description' => '命中风险关键词',
- 'type' => 'array',
- 'items' => [
- 'description' => '文字信息。',
- 'type' => 'string',
- 'example' => 'abcd',
- ],
+ 'Advice' => [
+ 'description' => '建议',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '代答内容',
+ 'type' => 'object',
+ 'properties' => [
+ 'Answer' => ['description' => '回答', 'type' => 'string', 'example' => 'XXX'],
+ 'HitLabel' => ['description' => '命中标签', 'type' => 'string', 'example' => 'XXX'],
+ 'HitLibName' => ['description' => '命中库名称', 'type' => 'string', 'example' => 'XXX'],
],
- 'CustomTexts' => [
- 'description' => '当命中自定义文本库时,返回自定义库ID、自定义库名称和自定义词。',
- 'type' => 'array',
- 'items' => [
- 'type' => 'object',
- 'properties' => [
- 'LibId' => [
- 'description' => '自定义库ID',
- 'type' => 'string',
- 'example' => '123456',
- ],
- 'LibName' => [
- 'description' => '自定义库名称。',
- 'type' => 'string',
- 'example' => '自定义库1',
- ],
- 'KeyWords' => [
- 'description' => '自定义词,多个词用逗号分隔。',
- 'type' => 'string',
- 'example' => '自定义词1,自定义词2',
- ],
- ],
+ ],
+ ],
+ 'Score' => ['description' => '分数。', 'type' => 'number', 'format' => 'float', 'example' => '1'],
+ 'RiskLevel' => ['description' => '风险等级', 'type' => 'string', 'example' => 'high'],
+ 'DataId' => ['description' => '检测对象对应的数据ID。'."\n"
+ .'> 如果在检测请求参数中传入了dataId,则此处返回对应的dataId。', 'type' => 'string', 'example' => 'text1234'],
+ 'SensitiveResult' => [
+ 'description' => '敏感数据检测结果',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '敏感数据检测结果',
+ 'type' => 'object',
+ 'properties' => [
+ 'Label' => ['description' => '标签。', 'type' => 'string', 'example' => '1234'],
+ 'SensitiveLevel' => ['description' => '敏感等级', 'type' => 'string', 'example' => 'S1'],
+ 'SensitiveData' => [
+ 'description' => '敏感数据列表',
+ 'type' => 'array',
+ 'items' => ['description' => '敏感数据', 'type' => 'string', 'example' => '上海'],
],
+ 'Description' => ['description' => '描述', 'type' => 'string', 'example' => '省份'],
],
],
],
- 'PublicFigure' => [
- 'description' => '人物信息列表。',
+ 'AttackResult' => [
+ 'description' => '提示词攻击检测结果',
'type' => 'array',
'items' => [
- 'description' => '人物信息。',
+ 'description' => '提示词攻击检测结果',
'type' => 'object',
'properties' => [
- 'FigureId' => [
- 'description' => '人物ID。',
- 'type' => 'string',
- 'example' => 'yzazhzou',
+ 'Label' => ['description' => '标签', 'type' => 'string', 'example' => 'safe'],
+ 'Confidence' => ['description' => '置信分', 'type' => 'number', 'format' => 'float', 'example' => '0'],
+ 'AttackLevel' => ['description' => '攻击等级', 'type' => 'string', 'example' => 'none'],
+ 'Description' => ['description' => '描述', 'type' => 'string', 'example' => 'safe'],
+ ],
+ ],
+ ],
+ 'SensitiveLevel' => ['description' => '敏感等级', 'type' => 'string', 'example' => 'S0'],
+ 'AttackLevel' => ['description' => '攻击等级', 'type' => 'string', 'example' => 'none'],
+ 'ManualTaskId' => ['description' => '人审任务ID', 'type' => 'string', 'example' => 'xxxxx-xxxxx'],
+ 'DetectedLanguage' => ['description' => '识别语种', 'type' => 'string', 'example' => 'en'],
+ 'TranslatedContent' => ['description' => '翻译后内容', 'type' => 'string', 'example' => 'hello'],
+ 'AccountId' => ['description' => '客户入参AccountId', 'type' => 'string', 'example' => '123456789'],
+ 'Ext' => [
+ 'description' => '文本辅助参考信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'LlmContent' => [
+ 'description' => '大模型输出内容',
+ 'type' => 'object',
+ 'properties' => [
+ 'OutputText' => ['description' => '输出内容。', 'type' => 'string', 'example' => '正常。文本中无风险内容。'],
],
],
],
@@ -3413,22 +3110,33 @@
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"OK\\",\\n \\"Data\\": {\\n \\"Result\\": [\\n {\\n \\"Label\\": \\"porn\\",\\n \\"Confidence\\": 81.22,\\n \\"RiskWords\\": \\"XXX\\",\\n \\"CustomizedHit\\": [\\n {\\n \\"LibName\\": \\"测试词库\\",\\n \\"KeyWords\\": \\"xxx\\"\\n }\\n ],\\n \\"Description\\": \\"未检测出风险\\",\\n \\"RiskPositions\\": [\\n {\\n \\"RiskWord\\": \\"词A\\",\\n \\"StartPos\\": 4,\\n \\"EndPos\\": 6\\n }\\n ]\\n }\\n ],\\n \\"Advice\\": [\\n {\\n \\"Answer\\": \\"XXX\\",\\n \\"HitLabel\\": \\"XXX\\",\\n \\"HitLibName\\": \\"XXX\\"\\n }\\n ],\\n \\"Score\\": 1,\\n \\"RiskLevel\\": \\"high\\",\\n \\"DataId\\": \\"text1234\\",\\n \\"SensitiveResult\\": [\\n {\\n \\"Label\\": \\"1234\\",\\n \\"SensitiveLevel\\": \\"S1\\",\\n \\"SensitiveData\\": [\\n \\"上海\\"\\n ],\\n \\"Description\\": \\"省份\\"\\n }\\n ],\\n \\"AttackResult\\": [\\n {\\n \\"Label\\": \\"safe\\",\\n \\"Confidence\\": 0,\\n \\"AttackLevel\\": \\"none\\",\\n \\"Description\\": \\"safe\\"\\n }\\n ],\\n \\"SensitiveLevel\\": \\"S0\\",\\n \\"AttackLevel\\": \\"none\\",\\n \\"ManualTaskId\\": \\"xxxxx-xxxxx\\",\\n \\"DetectedLanguage\\": \\"en\\",\\n \\"TranslatedContent\\": \\"hello\\",\\n \\"AccountId\\": \\"123456789\\",\\n \\"Ext\\": {\\n \\"LlmContent\\": {\\n \\"OutputText\\": \\"正常。文本中无风险内容。\\"\\n }\\n }\\n }\\n}","type":"json"}]',
+ 'title' => '文本审核Plus版',
+ 'description' => '请确保在使用该接口前,已[开通内容安全增强版服务](https://common-buy.aliyun.com/?commodityCode=lvwang_cip_public_cn)且充分了解文本审核增强PLUS版产品的[收费方式和价格](https://help.aliyun.com/document_detail/2671445.html?#section-6od-32j-99n)。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'TextModerationPlus'],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'yundun-greenweb:TextModerationPlus',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"6CF2815C-C8C7-4A01-B52E-FF6E24F53492\\",\\n \\"Code\\": 200,\\n \\"Msg\\": \\"success\\",\\n \\"Data\\": {\\n \\"CustomImage\\": [\\n {\\n \\"ImageId\\": \\"123456\\",\\n \\"LibName\\": \\"图库123\\",\\n \\"LibId\\": \\"123456\\"\\n }\\n ],\\n \\"TextInImage\\": {\\n \\"OcrDatas\\": [\\n \\"abcd\\"\\n ],\\n \\"RiskWords\\": [\\n \\"abcd\\"\\n ],\\n \\"CustomTexts\\": [\\n {\\n \\"LibId\\": \\"123456\\",\\n \\"LibName\\": \\"自定义库1\\",\\n \\"KeyWords\\": \\"自定义词1,自定义词2\\"\\n }\\n ]\\n },\\n \\"PublicFigure\\": [\\n {\\n \\"FigureId\\": \\"yzazhzou\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
- 'title' => '图片辅助信息获取接口',
- 'description' => '本接口需要配合图片审核增强版API使用,在调用图片审核增强版API接口之后,可以调用本接口,获取更多的接口检测信息。此接口免费。',
- 'requestParamsDescription' => '建议调用图片审核增强版接口5秒钟之后查询,辅助信息存储最长时间为30天,建议您需要时及时获取辅助信息,并做好日志存储。',
],
'UrlAsyncModeration' => [
'summary' => 'URL异步检测服务,识别URL链接是否存在欺诈、色情、赌博等风险,守护平台内容生态。',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
@@ -3441,33 +3149,21 @@
'riskType' => 'none',
'chargeType' => 'paid',
'abilityTreeCode' => '211718',
- 'abilityTreeNodes' => [
- 'FEATURElvwang7UL554',
- ],
+ 'abilityTreeNodes' => ['FEATURElvwang7UL554'],
],
'parameters' => [
[
'name' => 'Service',
'in' => 'query',
- 'schema' => [
- 'description' => '服务名称:URL风险链接检测',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'URL风险链接检测:url_detection_pro',
- ],
+ 'schema' => ['description' => '服务名称:URL风险链接检测', 'type' => 'string', 'required' => false, 'example' => 'url_detection_pro'],
],
[
'name' => 'ServiceParameters',
'in' => 'query',
- 'schema' => [
- 'description' => '内容检测对象的相关参数集,JSON字符串格式,请参见ServiceParameters说明。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '{'."\n"
- .' "url": "https://help.aliyun.com/",'."\n"
- .' "dataId": "url123******"'."\n"
- .'}',
- ],
+ 'schema' => ['description' => '内容检测对象的相关参数集,JSON字符串格式,请参见ServiceParameters说明。', 'type' => 'string', 'required' => false, 'example' => '{'."\n"
+ .' "url": "https://help.aliyun.com/",'."\n"
+ .' "dataId": "url123******"'."\n"
+ .'}'],
],
],
'responses' => [
@@ -3477,46 +3173,22 @@
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => 'Id of the request',
- 'type' => 'string',
- 'example' => '6CF2815C-****-****-B52E-FF6E2****492',
- ],
- 'Code' => [
- 'description' => '返回码。返回200代表成功。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '200',
- ],
- 'Msg' => [
- 'description' => '本次请求的响应消息。',
- 'type' => 'string',
- 'example' => 'success',
- ],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '6CF2815C-****-****-B52E-FF6E2****492'],
+ 'Code' => ['description' => '返回码。返回200代表成功。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
+ 'Msg' => ['description' => '本次请求的响应消息。', 'type' => 'string', 'example' => 'success'],
'Data' => [
'description' => '返回数据。',
'type' => 'object',
'properties' => [
- 'ReqId' => [
- 'description' => 'URL 异步审核增强版API返回的ReqId字段,可用此字段查询检测结果。',
- 'type' => 'string',
- 'example' => 'A07B3DB9-D762-5C56-95B1-8EC55CF176D2',
- ],
- 'DataId' => [
- 'description' => 'API请求时传入的dataId 的值,如请求时未传入,则没有该字段。',
- 'type' => 'string',
- 'example' => '26769ada6e264e7ba9aa048241e12be9',
- ],
+ 'ReqId' => ['description' => 'URL 异步审核增强版API返回的ReqId字段,可用此字段查询检测结果。', 'type' => 'string', 'example' => 'A07B3DB9-D762-5C56-95B1-8EC55CF176D2'],
+ 'DataId' => ['description' => 'API请求时传入的dataId 的值,如请求时未传入,则没有该字段。', 'type' => 'string', 'example' => '26769ada6e264e7ba9aa048241e12be9'],
],
],
],
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"6CF2815C-****-****-B52E-FF6E2****492\\",\\n \\"Code\\": 200,\\n \\"Msg\\": \\"success\\",\\n \\"Data\\": {\\n \\"ReqId\\": \\"A07B3DB9-D762-5C56-95B1-8EC55CF176D2\\",\\n \\"DataId\\": \\"26769ada6e264e7ba9aa048241e12be9\\"\\n }\\n}","type":"json"}]',
'title' => 'URL风险异步检测',
'description' => 'URL 异步检测服务支持按量后付费和资源包抵扣两种付费方式。'."\n"
@@ -3532,42 +3204,64 @@
.'| **callback** | String | 否 | http://www.aliyun.com | 检测结果回调通知您的URL,支持使用HTTP和HTTPS协议的地址。该字段为空时,您必须定时轮询检测结果。callback接口必须支持POST方法、UTF-8编码的传输数据,以及表单参数**ReqId**,**Checksum**和**Content**。内容安全按照以下规则和格式设置**ReqId**,**Checksum**和**Content**,调用您的callback接口返回检测结果。- **ReqId**:提交异步检测任务返回的请求ID。- **Checksum**:字符串格式,由用户uid + seed + content拼成字符串,通过SHA256算法生成。用户UID即阿里云账号ID,可以在[阿里云控制台](https://account.console.aliyun.com/#/secure)查询。为防篡改,您可以在获取到推送结果时,按上述算法生成字符串,与**Checksum**做一次校验。**说明**用户UID必须是阿里云账号的UID,而不是RAM用户的UID。- **Content**:JSON字符串格式,请自行解析反转成JSON对象。关于**Content**结果的示例,请参见查询检测结果的返回示例。**说明** 您的服务端callback接口收到内容安全推送的结果后,如果返回的HTTP状态码为200,则表示接收成功,其他的HTTP状态码均视为接收失败。接收失败时,内容安全将最多重复推送16次检测结果,直到接收成功。重复推送16次后仍未接收成功,则不再推送,建议您检查callback接口的状态。 |'."\n"
.'| **seed** | String | 否 | abc**** | 随机字符串,该值用于回调通知请求中的签名。由英文字母、数字、下划线(_)组成,不超过64个字符。由您自定义,用于在接收到内容安全的回调通知时校验请求由阿里云内容安全服务发起。**说明** 当使用callback时,该字段必须提供。 |'."\n"
.'| **cryptType** | String | 否 | SHA256 | 使用回调通知时(callback),设置对回调通知内容进行加密的算法。内容安全会将返回结果(由**用户uid + seed + content**拼接的字符串)按照您设置的加密算法加密后,再发送到您的回调通知地址。取值:●**SHA256**(默认):使用SHA256加密算法。●**SM3**:使用国密HMAC-SM3加密算法,返回十六进制的字符串,且字符串由小写字母和数字组成。例如,abc经国密SM3加密后返回。 |',
- ],
- 'DescribeUrlModerationResult' => [
- 'summary' => '根据 URL 异步检测返回的 ReqId查询检测结果。',
- 'methods' => [
- 'post',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UrlAsyncModeration'],
+ ],
],
- 'schemes' => [
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'yundun-greenweb:UrlAsyncModeration',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ ],
+ 'VideoModeration' => [
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'read',
+ 'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeCode' => '211720',
- 'abilityTreeNodes' => [
- 'FEATURElvwang7UL554',
- ],
+ 'chargeType' => 'paid',
+ 'abilityTreeCode' => '187556',
+ 'abilityTreeNodes' => ['FEATURElvwang53TCRC'],
],
'parameters' => [
[
- 'name' => 'ReqId',
+ 'name' => 'Service',
'in' => 'formData',
'schema' => [
- 'description' => 'URL异步检测接口返回的ReqId字段',
+ 'description' => '视频审核ServiceCode',
'type' => 'string',
'required' => false,
- 'example' => 'B0963D30-BAB4-562F-9ED0-7A23AEC51C7C',
+ 'enumValueTitles' => ['liveStreamDetection' => '视频直播流审核', 'videoDetection' => '视频文件审核', 'liveStreamDetection_cb' => '视频直播流审核_海外版', 'videoDetection_cb' => '视频文件审核_海外版'],
+ 'example' => 'videoDetection',
],
],
+ [
+ 'name' => 'ServiceParameters',
+ 'in' => 'formData',
+ 'schema' => ['description' => '审核服务需要的参数集,JSON字符串格式。'."\n"
+ .'- url:必填,待检测对象的URL,请确保该URL能通过公网访问到。'."\n"
+ .'- dataId:选填,检测对象对应的数据ID。'."\n"
+ ."\n"
+ .'更多信息,请参见[ServiceParameter](https://help.aliyun.com/document_detail/2505810.html)。', 'type' => 'string', 'required' => false, 'example' => '{"url": "https://talesofai.oss-cn-shanghai.aliyuncs.com/xxx.mp4", "dataId": "data1234"}'],
+ ],
],
'responses' => [
200 => [
@@ -3576,118 +3270,82 @@
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'description' => '本次请求的ID。',
- 'type' => 'string',
- 'example' => '01F9144A-2088-5D87-935B-2DB865284B1A',
- ],
- 'Code' => [
- 'description' => '返回码。返回200代表成功。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '200',
- ],
- 'Msg' => [
- 'description' => '本次请求的响应消息。',
- 'type' => 'string',
- 'example' => 'success',
- ],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****'],
+ 'Message' => ['description' => '请求消息的响应消息。', 'type' => 'string', 'example' => 'SUCCESS'],
+ 'Code' => ['description' => '返回码。返回200代表成功。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Data' => [
'description' => '返回数据。',
'type' => 'object',
'properties' => [
- 'DataId' => [
- 'description' => 'API请求时传入的dataId 的值,如请求时未传入,则没有该字段。',
- 'type' => 'string',
- 'example' => '26769ada6e264e7ba9aa048241e12be9',
- ],
- 'ReqId' => [
- 'description' => 'URL异步检测接口返回的ReqId字段',
- 'type' => 'string',
- 'example' => 'B0963D30-BAB4-562F-9ED0-7A23AEC51C7C'."\n",
- ],
- 'Result' => [
- 'description' => '返回集合。',
- 'type' => 'array',
- 'items' => [
- 'description' => '返回集合。',
- 'type' => 'object',
- 'properties' => [
- 'Label' => [
- 'description' => 'URL检测运算后返回的标签。',
- 'type' => 'string',
- 'example' => 'sexual_url',
- ],
- 'Confidence' => [
- 'description' => '置信分值,0到100分,保留到小数点后2位。',
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '81.22',
- ],
- ],
- ],
- ],
- 'ExtraInfo' => [
- 'description' => '补充信息。',
- 'type' => 'object',
- 'properties' => [
- 'IcpType' => [
- 'description' => 'ICP备案类型。',
- 'type' => 'string',
- 'example' => '企业',
- ],
- 'IcpNo' => [
- 'description' => 'ICP备案号。',
- 'type' => 'string',
- 'example' => 'ICP备123456789',
- ],
- 'SiteType' => [
- 'description' => '网站类型',
- 'type' => 'string',
- 'example' => 'game',
- ],
- ],
- ],
+ 'TaskId' => ['description' => '任务ID', 'type' => 'string', 'example' => 'xxxxx-xxxxx'],
+ 'DataId' => ['description' => 'API请求时传入的dataId 的值,如请求时未传入,则没有该字段。', 'type' => 'string', 'example' => 'data1234'],
],
],
],
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"01F9144A-2088-5D87-935B-2DB865284B1A\\",\\n \\"Code\\": 200,\\n \\"Msg\\": \\"success\\",\\n \\"Data\\": {\\n \\"DataId\\": \\"26769ada6e264e7ba9aa048241e12be9\\",\\n \\"ReqId\\": \\"B0963D30-BAB4-562F-9ED0-7A23AEC51C7C\\\\n\\",\\n \\"Result\\": [\\n {\\n \\"Label\\": \\"sexual_url\\",\\n \\"Confidence\\": 81.22\\n }\\n ],\\n \\"ExtraInfo\\": {\\n \\"IcpType\\": \\"企业\\",\\n \\"IcpNo\\": \\"ICP备123456789\\",\\n \\"SiteType\\": \\"game\\"\\n }\\n }\\n}","type":"json"}]',
- 'title' => '查询URL异步检测结果',
- 'description' => '- 计费信息:该接口不计费。'."\n"
- .'- 查询超时:建议您将查询间隔设置为480秒(即在提交异步检测任务480秒之后查询结果),最长不能超出3天,否则结果将会自动删除。'."\n"
- .'- 本接口的单用户QPS限制为100次/秒。超过限制,API调用会被限流,这可能会影响您的业务,请合理调用。',
- ],
- 'DescribeUploadToken' => [
- 'summary' => '查询上传token',
- 'methods' => [
- 'post',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '视频审核增强版任务提交',
+ 'summary' => '内容安全视频审核增强版,帮助您检测视频文件中的风险或违规内容。本接口为检测任务提交接口。',
+ 'description' => '请确保在使用该接口前,已[开通内容安全增强版](https://common-buy.aliyun.com/?commodityCode=lvwang_cip_public_cn)服务,并充分了解视频审核增强版产品的[收费方式](https://help.aliyun.com/document_detail/2505807.html)和[价格](https://www.aliyun.com/price/product?#/lvwang/detail/cdibag)。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'VideoModeration'],
+ ],
],
- 'schemes' => [
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'yundun-greenweb:VideoModeration',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Message\\": \\"SUCCESS\\",\\n \\"Code\\": 200,\\n \\"Data\\": {\\n \\"TaskId\\": \\"xxxxx-xxxxx\\",\\n \\"DataId\\": \\"data1234\\"\\n }\\n}","type":"json"}]',
+ ],
+ 'VideoModerationCancel' => [
+ 'summary' => '取消视频直播审核任务。',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'read',
+ 'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeCode' => '186981',
- 'abilityTreeNodes' => [
- 'FEATURElvwang78REFZ',
+ 'abilityTreeCode' => '201471',
+ 'abilityTreeNodes' => ['FEATURElvwang53TCRC'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Service',
+ 'in' => 'formData',
+ 'schema' => [
+ 'description' => '审核服务类型',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => ['liveStreamDetection' => '视频直播流检测', 'videoDetection' => '视频文件检测', 'liveStreamDetection_cb' => '视频直播流审核_海外版', 'videoDetection_cb' => '视频文件审核_海外版'],
+ 'example' => 'videoDetection',
+ ],
+ ],
+ [
+ 'name' => 'ServiceParameters',
+ 'in' => 'formData',
+ 'schema' => ['description' => '待取消任务TaskId', 'type' => 'string', 'required' => false, 'example' => '{\\"taskId\\":\\"vi_s_4O9gp7GfNQdx9GOqdekFmk-1z2RJT\\"}'],
],
],
- 'parameters' => [],
'responses' => [
200 => [
'schema' => [
@@ -3695,88 +3353,40 @@
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****',
- ],
- 'Code' => [
- 'description' => '返回码。返回200代表成功。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '200',
- ],
- 'Msg' => [
- 'description' => '本次请求的响应消息。',
- 'type' => 'string',
- 'example' => 'OK',
- ],
- 'Data' => [
- 'description' => '返回数据。',
- 'type' => 'object',
- 'properties' => [
- 'AccessKeyId' => [
- 'description' => '文件上传临时凭证的AccessKeyId。',
- 'type' => 'string',
- 'example' => 'STS.NUEUjvDqMuvH6oQA1TXxxH4wVR',
- ],
- 'AccessKeySecret' => [
- 'description' => '临时授权secret。',
- 'type' => 'string',
- 'example' => 'xxxx',
- ],
- 'SecurityToken' => [
- 'description' => '文件上传临时凭证的安全令牌。',
- 'type' => 'string',
- 'example' => 'xxxx',
- ],
- 'FileNamePrefix' => [
- 'description' => '文件前缀。',
- 'type' => 'string',
- 'example' => 'upload/1xxb89/',
- ],
- 'OssInternalEndPoint' => [
- 'description' => 'oss内网地址。',
- 'type' => 'string',
- 'example' => 'https://oss-cn-shanghai-internal.aliyuncs.com',
- ],
- 'OssInternetEndPoint' => [
- 'description' => 'oss公网地址。',
- 'type' => 'string',
- 'example' => 'https://oss-cn-shanghai.aliyuncs.com',
- ],
- 'BucketName' => [
- 'description' => '存储空间名称。',
- 'type' => 'string',
- 'example' => 'oss-cip-shanghai',
- ],
- 'Expiration' => [
- 'description' => '失效时间点。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1720577200',
- ],
- ],
- ],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '6CF2815C-****-****-B52E-FF6E2****492'],
+ 'Code' => ['description' => '返回码。返回200代表成功。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
+ 'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'OK'],
],
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Code\\": 200,\\n \\"Msg\\": \\"OK\\",\\n \\"Data\\": {\\n \\"AccessKeyId\\": \\"STS.NUEUjvDqMuvH6oQA1TXxxH4wVR\\",\\n \\"AccessKeySecret\\": \\"xxxx\\",\\n \\"SecurityToken\\": \\"xxxx\\",\\n \\"FileNamePrefix\\": \\"upload/1xxb89/\\",\\n \\"OssInternalEndPoint\\": \\"https://oss-cn-shanghai-internal.aliyuncs.com\\",\\n \\"OssInternetEndPoint\\": \\"https://oss-cn-shanghai.aliyuncs.com\\",\\n \\"BucketName\\": \\"oss-cip-shanghai\\",\\n \\"Expiration\\": 1720577200\\n }\\n}","type":"json"}]',
- 'title' => '查询上传token',
- ],
- 'ImageBatchModeration' => [
- 'summary' => '图片批量调用',
- 'methods' => [
- 'post',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '取消视频直播审核任务',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'VideoModerationCancel'],
+ ],
],
- 'schemes' => [
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'yundun-greenweb:VideoModerationCancel',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"6CF2815C-****-****-B52E-FF6E2****492\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"OK\\"\\n}","type":"json"}]',
+ ],
+ 'VideoModerationResult' => [
+ 'summary' => '获取视频审核增强版审核任务结果。',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
@@ -3787,598 +3397,385 @@
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
- 'chargeType' => 'paid',
- 'abilityTreeCode' => '214644',
- 'abilityTreeNodes' => [
- 'FEATURElvwang78REFZ',
- 'FEATURElvwangRPPHPG',
- 'FEATURElvwangRBUEEU',
- 'FEATURElvwang7UTKSK',
- 'FEATURElvwangYHRCHH',
- 'FEATURElvwang8B97ZG',
- 'FEATURElvwangT9BDZM',
- ],
- 'tenantRelevance' => 'publicInformation',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '187919',
+ 'abilityTreeNodes' => ['FEATURElvwang53TCRC'],
],
'parameters' => [
[
'name' => 'Service',
- 'in' => 'query',
+ 'in' => 'formData',
'schema' => [
- 'description' => '图片审核增强版支持的检测类型,多个使用英文逗号隔开。取值:'."\n"
- ."\n"
- .'- baselineCheck:通用基线检测'."\n"
- .'- baselineCheck_pro:通用基线检测_专业版'."\n"
- .'- tonalityImprove:内容治理检测'."\n"
- .'- aigcCheck:AIGC图片检测',
+ 'description' => '视频审核ServiceCode',
'type' => 'string',
'required' => false,
- 'example' => 'baselineCheck,tonalityImprove',
+ 'enumValueTitles' => ['liveStreamDetection' => '视频直播流审核', 'videoDetection' => '视频文件审核', 'liveStreamDetection_cb' => '视频直播流审核_海外版', 'videoDetection_cb' => '视频文件审核_海外版'],
+ 'example' => 'videoDetection',
],
],
[
'name' => 'ServiceParameters',
- 'in' => 'query',
- 'schema' => [
- 'description' => '内容检测对象的相关参数集。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '{'."\n"
- .' "imageUrl": "https://img.alicdn.com/tfs/TB1U4r9AeH2gK0jSZJnXXaT1FXa-2880-480.png",'."\n"
- .' "dataId": "img123****"'."\n"
- .' }',
- ],
+ 'in' => 'formData',
+ 'schema' => ['description' => '审核服务需要的参数集。taskId,即要查询的检测任务的taskId,每次支持输入一个taskId。', 'type' => 'string', 'required' => false, 'example' => '{"taskId":"au_f_8PoWiZKoLbczp5HRn69VdT-1y8@U5"}'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
- 'description' => 'Body返回值',
+ 'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => '本次调用请求的ID,是由阿里云为该请求生成的唯一标识符,可用于排查和定位问题。',
- 'type' => 'string',
- 'example' => '6CF2815C-C8C7-4A01-B52E-FF6E24F53492'."\n",
- ],
- 'Code' => [
- 'description' => '返回码。返回200代表成功。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '200',
- ],
- 'Msg' => [
- 'description' => '本次请求的响应消息。',
- 'type' => 'string',
- 'example' => 'success',
- ],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '6CF2815C-C8C7-4A01-B52E-FF6E24F53492'],
+ 'Code' => ['description' => '返回码。返回200代表成功。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
+ 'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'success finished'],
'Data' => [
- 'description' => '图片内容检测后的结果。',
+ 'description' => '审核结果数据。',
'type' => 'object',
'properties' => [
- 'DataId' => [
- 'description' => '检测对象对应的数据ID。',
- 'type' => 'string',
- 'example' => '26769ada6e264e7ba9aa048241e12be9',
- ],
- 'Results' => [
- 'description' => '每个Service图片检测的风险标签、置信分等参数结果,数组结构。',
- 'type' => 'array',
- 'items' => [
- 'description' => '数据结构。',
- 'type' => 'object',
- 'properties' => [
- 'Service' => [
- 'description' => '图片检测增强版支持的检测服务。',
- 'type' => 'string',
- 'example' => 'baselineCheck',
- ],
- 'Result' => [
- 'description' => '图片检测的风险标签、置信分等参数结果,数组结构。',
- 'type' => 'array',
- 'items' => [
- 'description' => '数据结构。',
- 'type' => 'object',
- 'properties' => [
- 'Label' => [
- 'description' => '图片内容检测运算后返回的标签。同一张图片可能会检出多个标签和分值。',
- 'type' => 'string',
- 'example' => 'violent_explosion',
- ],
- 'Confidence' => [
- 'description' => '置信分值,0到100分,保留到小数点后2位。部分标签无置信分。',
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '81.22',
- ],
- 'Description' => [
- 'description' => '描述。',
- 'type' => 'string',
- 'example' => '未检测出风险',
- ],
- ],
- ],
- ],
- 'Ext' => [
- 'description' => '图片辅助参考信息。',
+ 'LiveId' => ['description' => '直播的唯一标识ID。', 'type' => 'string', 'example' => 'liveId'],
+ 'DataId' => ['description' => 'API请求时传入的dataId 的值,如请求时未传入,则没有该字段。', 'type' => 'string', 'example' => 'product_content-2055763'],
+ 'AudioResult' => [
+ 'description' => '视频语音审核分段结果。',
+ 'type' => 'object',
+ 'properties' => [
+ 'SliceDetails' => [
+ 'description' => '语音分段列表',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '分段详情',
'type' => 'object',
'properties' => [
- 'TextInImage' => [
- 'description' => '返回命中的图片中文字信息。',
- 'type' => 'object',
- 'properties' => [
- 'OcrResult' => [
- 'description' => '返回识别到的图片中的每行文字信息。',
- 'type' => 'array',
- 'items' => [
- 'description' => '数据结构',
- 'type' => 'object',
- 'properties' => [
- 'Text' => [
- 'description' => '文字信息。',
- 'type' => 'string',
- 'example' => 'abcd',
- ],
- 'Location' => [
- 'description' => '文字行坐标信息。',
- 'type' => 'object',
- 'properties' => [
- 'X' => [
- 'description' => '以图片左上角为坐标原点,文字区域左上角到y轴的距离,单位:像素。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '11',
- ],
- 'Y' => [
- 'description' => '以图片左上角为坐标原点,文字区域左上角到x轴的距离,单位:像素。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '22',
- ],
- 'H' => [
- 'description' => '文字区域的高度,单位:像素。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '33',
- ],
- 'W' => [
- 'description' => '文字区域的宽度,单位:像素。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '44',
- ],
- ],
- ],
- ],
- ],
- ],
- 'RiskWord' => [
- 'description' => '命中风险关键词。',
- 'type' => 'array',
- 'items' => [
- 'description' => '文字信息。',
- 'type' => 'string',
- 'example' => '火箭',
- ],
- ],
- 'CustomText' => [
- 'description' => '当命中自定义文本库时,返回自定义库ID、自定义库名称和自定义词。',
- 'type' => 'array',
- 'items' => [
- 'description' => '数据结构。',
- 'type' => 'object',
- 'properties' => [
- 'LibId' => [
- 'description' => '自定义库ID。',
- 'type' => 'string',
- 'example' => '123456',
- ],
- 'LibName' => [
- 'description' => '自定义库名称。',
- 'type' => 'string',
- 'example' => '自定义库1',
- ],
- 'KeyWords' => [
- 'description' => '自定义词,多个词用逗号分隔。',
- 'type' => 'string',
- 'example' => '自定义词1,自定义词2',
- ],
- ],
- ],
- ],
- ],
- ],
- 'CustomImage' => [
- 'description' => '自定义图库命中信息列表。',
+ 'StartTime' => ['description' => '分段开始时间(秒)', 'type' => 'integer', 'format' => 'int64', 'example' => '0'],
+ 'EndTime' => ['description' => '分段结束时间(秒)', 'type' => 'integer', 'format' => 'int64', 'example' => '30'],
+ 'StartTimestamp' => ['description' => '开始时间戳,精确到毫秒', 'type' => 'integer', 'format' => 'int64', 'example' => '1659935002123'],
+ 'EndTimestamp' => ['description' => '结束时间戳', 'type' => 'integer', 'format' => 'int64', 'example' => '1685245261939'],
+ 'Url' => ['description' => '分段语音文件临时地址', 'type' => 'string', 'example' => 'http://xxxx.abc.img'],
+ 'Text' => ['description' => '分段语音转写文本', 'type' => 'string', 'example' => '今天天气真不错'],
+ 'Labels' => ['description' => '命中违规标签', 'type' => 'string', 'example' => 'porn'],
+ 'Score' => ['description' => '风险分数,默认范围 0-99', 'type' => 'number', 'format' => 'float', 'example' => '5'],
+ 'Extend' => ['description' => '扩展字段', 'type' => 'string', 'example' => '{\\"consoleProduct\\":\\"slbnext\\"}'],
+ 'RiskTips' => ['description' => '命中风险详情', 'type' => 'string', 'example' => '""'],
+ 'RiskWords' => ['description' => '命中风险关键词', 'type' => 'string', 'example' => '""'],
+ 'RiskLevel' => ['description' => '风险等级,根据设置的高低风险分返回,返回值包括:'."\n"
+ ."\n"
+ .'- high:高风险'."\n"
+ ."\n"
+ .'- medium:中风险'."\n"
+ .' '."\n"
+ .'- low:低风险'."\n"
+ ."\n"
+ .' - none:未检测到风险', 'type' => 'string', 'example' => 'high'],
+ 'Descriptions' => ['description' => '标签描述。', 'type' => 'string', 'example' => '疑似违禁内容'],
+ 'Result' => [
+ 'title' => '文本检测结果',
+ 'description' => '文本检测结果',
'type' => 'array',
'items' => [
- 'description' => '数据结构。',
+ 'title' => '单个结果',
+ 'description' => '单个结果',
'type' => 'object',
'properties' => [
- 'LibId' => [
- 'description' => '自定义库ID',
- 'type' => 'string',
- 'example' => '1965304870002',
- ],
- 'ImageId' => [
- 'description' => '命中的自定义图片ID。',
- 'type' => 'string',
- 'example' => '1965304870002',
+ 'Label' => ['title' => '标签', 'description' => '标签', 'type' => 'string', 'example' => 'profanity'],
+ 'Confidence' => ['title' => '置信度', 'description' => '置信度', 'type' => 'number', 'format' => 'float', 'example' => '99.9'],
+ 'RiskWords' => ['title' => '命中风险内容', 'description' => '命中风险内容', 'type' => 'string', 'example' => 'fxxk'],
+ 'RiskLevel' => ['title' => '风险等级', 'description' => '风险等级', 'type' => 'string', 'example' => 'high'],
+ 'CustomizedHit' => [
+ 'title' => '命中自定义库列表',
+ 'description' => '命中自定义库列表',
+ 'type' => 'array',
+ 'items' => [
+ 'title' => '命中自定义库',
+ 'description' => '命中自定义库',
+ 'type' => 'object',
+ 'properties' => [
+ 'LibName' => ['title' => '自定义库名称', 'description' => '自定义库名称', 'type' => 'string', 'example' => '备用词库02'],
+ 'KeyWords' => ['title' => '自定义词', 'description' => '自定义词', 'type' => 'string', 'example' => 'fxxk'],
+ ],
+ ],
],
- 'LibName' => [
- 'description' => '命中的自定义图库名。',
- 'type' => 'string',
- 'example' => '白名单',
+ 'Description' => ['title' => '描述', 'description' => '描述', 'type' => 'string', 'example' => '疑似违禁内容'],
+ 'RiskPositions' => [
+ 'title' => '风险位置列表',
+ 'description' => '风险位置列表',
+ 'type' => 'array',
+ 'items' => [
+ 'title' => '风险位置',
+ 'description' => '风险位置',
+ 'type' => 'object',
+ 'properties' => [
+ 'RiskWord' => ['title' => '检测到的敏感词', 'description' => '检测到的敏感词', 'type' => 'string', 'example' => 'fxxk'],
+ 'StartPos' => ['title' => '起始位置', 'description' => '起始位置', 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
+ 'EndPos' => ['title' => '结束位置', 'description' => '结束位置', 'type' => 'integer', 'format' => 'int32', 'example' => '3'],
+ ],
+ ],
],
],
],
],
- 'PublicFigure' => [
- 'description' => '人物信息列表。',
+ ],
+ ],
+ ],
+ 'AudioSummarys' => [
+ 'description' => '语音标签汇总。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '对象',
+ 'type' => 'object',
+ 'properties' => [
+ 'Label' => ['description' => '视频语音标签。', 'type' => 'string', 'example' => 'profanity'],
+ 'LabelSum' => ['description' => '标签出现次数。', 'type' => 'integer', 'format' => 'int32', 'example' => '8'],
+ 'Description' => ['description' => '标签描述。', 'type' => 'string', 'example' => '疑似违禁内容'],
+ ],
+ ],
+ ],
+ 'RiskLevel' => ['description' => '风险等级,根据设置的高低风险分返回,返回值包括:'."\n"
+ ."\n"
+ .'- high:高风险'."\n"
+ ."\n"
+ .'- medium:中风险'."\n"
+ .' '."\n"
+ .'- low:低风险'."\n"
+ ."\n"
+ .' - none:未检测到风险', 'type' => 'string', 'example' => 'high'],
+ ],
+ ],
+ 'FrameResult' => [
+ 'description' => '视频截帧结果列表',
+ 'type' => 'object',
+ 'properties' => [
+ 'FrameNum' => ['description' => '结果帧数量', 'type' => 'integer', 'format' => 'int32', 'example' => '10'],
+ 'Frames' => [
+ 'description' => '包含命中标签的视频截帧的信息。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '对象',
+ 'type' => 'object',
+ 'properties' => [
+ 'TempUrl' => ['description' => '截帧图片临时访问地址', 'type' => 'string', 'example' => 'http://xxxx.abc.jpg'],
+ 'Offset' => ['description' => '截帧偏移值。', 'type' => 'number', 'format' => 'float', 'example' => '338'],
+ 'Results' => [
+ 'description' => '帧检测结果详情',
'type' => 'array',
'items' => [
- 'description' => '数据结构。',
+ 'description' => '对象',
'type' => 'object',
'properties' => [
- 'FigureName' => [
- 'description' => '识别出的人物名称信息。',
- 'type' => 'string',
- 'example' => 'xxxxx',
+ 'Service' => ['description' => '图片审核服务类型', 'type' => 'string', 'example' => 'tonalityImprove'],
+ 'Result' => [
+ 'description' => '命中结果详情',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '对象',
+ 'type' => 'object',
+ 'properties' => [
+ 'Confidence' => ['description' => '置信分值,0到100分,保留到小数点后2位。', 'type' => 'number', 'format' => 'float', 'example' => '50'],
+ 'Label' => ['description' => '检测结果的分类', 'type' => 'string', 'example' => 'bloody'],
+ 'Description' => ['description' => '对Labal字段的说明。', 'type' => 'string', 'example' => '未检测出风险'],
+ ],
+ ],
],
- 'FigureId' => [
- 'description' => '识别出的人物编码信息。',
- 'type' => 'string',
- 'example' => '12324222',
+ 'TextInImage' => ['description' => '返回命中的图片中文字信息。', 'type' => 'object'],
+ 'CustomImage' => [
+ 'description' => '如果命中自定义图库,返回命中的自定义图库信息。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '对象',
+ 'type' => 'object',
+ 'properties' => [
+ 'LibId' => ['description' => '命中的自定义图库ID。', 'type' => 'string', 'example' => '12345678'],
+ 'ImageId' => ['description' => '命中的自定义图片ID。', 'type' => 'string', 'example' => '1234'],
+ ],
+ ],
],
- 'Location' => [
- 'description' => '标识的位置信息。',
+ 'PublicFigure' => [
+ 'description' => '视频中包含特定人物时,返回识别出来的人物编码。',
'type' => 'array',
'items' => [
- 'description' => '数据结构。',
+ 'description' => '对象',
'type' => 'object',
'properties' => [
- 'X' => [
- 'description' => '以图片左上角为坐标原点,文字区域左上角到y轴的距离,单位:像素。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '11',
- ],
- 'Y' => [
- 'description' => '以图片左上角为坐标原点,文字区域左上角到x轴的距离,单位:像素。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '22',
- ],
- 'W' => [
- 'description' => '文字区域的宽度,单位:像素。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '330',
- ],
- 'H' => [
- 'description' => '文字区域的高度,单位:像素。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '440',
+ 'FigureId' => ['description' => '识别出的人物编码信息。', 'type' => 'string', 'example' => 'xxx001'],
+ 'FigureName' => ['description' => '识别出的人物名称', 'type' => 'string', 'example' => '张三'],
+ 'Location' => [
+ 'description' => '识别出的人物的位置',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '位置对象',
+ 'type' => 'object',
+ 'properties' => [
+ 'H' => ['description' => '高', 'type' => 'integer', 'format' => 'int32', 'example' => '222'],
+ 'W' => ['description' => '宽', 'type' => 'integer', 'format' => 'int32', 'example' => '111'],
+ 'X' => ['description' => '起始点横坐标', 'type' => 'integer', 'format' => 'int32', 'example' => '111'],
+ 'Y' => ['description' => '起始点纵坐标', 'type' => 'integer', 'format' => 'int32', 'example' => '222'],
+ ],
+ ],
],
],
],
],
- ],
- ],
- ],
- 'LogoData' => [
- 'description' => 'Logo标识信息。',
- 'type' => 'object',
- 'properties' => [
- 'Location' => [
- 'description' => '标识的位置信息。',
- 'type' => 'object',
- 'properties' => [
- 'X' => [
- 'description' => '以图片左上角为坐标原点,文字区域左上角到y轴的距离,单位:像素。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '11',
- ],
- 'Y' => [
- 'description' => '以图片左上角为坐标原点,文字区域左上角到x轴的距离,单位:像素。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '22',
- ],
- 'W' => [
- 'description' => 'Logo区域的宽度,单位:像素。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '330',
- ],
- 'H' => [
- 'description' => 'Logo区域的高度,单位:像素。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '440',
+ 'LogoData' => [
+ 'description' => '视频中包含logo时,返回的logo信息',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'logo信息对象',
+ 'type' => 'object',
+ 'properties' => [
+ 'Location' => [
+ 'description' => '文字行及坐标信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'X' => ['description' => '以图片左上角为坐标原点,文字区域左上角到y轴的距离,单位:像素。', 'type' => 'integer', 'format' => 'int32', 'example' => '111'],
+ 'Y' => ['description' => '以图片左上角为坐标原点,文字区域左上角到x轴的距离,单位:像素。', 'type' => 'integer', 'format' => 'int32', 'example' => '222'],
+ 'W' => ['description' => '文字区域的宽度,单位:像素。', 'type' => 'integer', 'format' => 'int32', 'example' => '111'],
+ 'H' => ['description' => '文字区域的高度,单位:像素。', 'type' => 'integer', 'format' => 'int32', 'example' => '111'],
+ ],
+ ],
+ 'Logo' => [
+ 'description' => '标识信息。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'logo对象',
+ 'type' => 'object',
+ 'properties' => [
+ 'label' => ['description' => '命中标签', 'type' => 'string', 'example' => 'pt_logotoSocialNetwork'],
+ 'name' => ['description' => '标识名。', 'type' => 'string', 'example' => '**卫视'],
+ 'confidence' => ['description' => '置信分值,0到100分,保留到小数点后2位。', 'type' => 'integer', 'format' => 'int64', 'example' => '99.1'],
+ ],
+ ],
+ ],
+ ],
],
],
- ],
- 'Logo' => [
- 'description' => '标识信息。',
- 'type' => 'array',
- 'items' => [
- 'description' => '数据结构。',
+ 'VlContent' => [
+ 'title' => '大模型结果',
+ 'description' => '大模型结果',
'type' => 'object',
'properties' => [
- 'Label' => [
- 'description' => '标识类别。',
- 'type' => 'string',
- 'example' => 'logo_sns',
- ],
- 'Name' => [
- 'description' => '标识名。',
- 'type' => 'string',
- 'example' => '阿里云',
- ],
- 'Confidence' => [
- 'description' => '置信分值,0到100分,保留到小数点后2位。',
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '99.1',
- ],
+ 'OutputText' => ['title' => '大模型输出文本', 'description' => '大模型输出文本', 'type' => 'string', 'example' => 'in the picture XXX'],
],
],
],
],
],
+ 'Timestamp' => ['description' => '绝对时间戳,单位:毫秒。', 'type' => 'integer', 'format' => 'int64', 'example' => '1684559739000'],
+ 'RiskLevel' => ['description' => '风险等级,根据设置的高低风险分返回,返回值包括:'."\n"
+ ."\n"
+ .'- high:高风险'."\n"
+ ."\n"
+ .'- medium:中风险'."\n"
+ .' '."\n"
+ .'- low:低风险'."\n"
+ ."\n"
+ .' - none:未检测到风险', 'type' => 'string', 'example' => 'high'],
],
],
- 'RiskLevel' => [
- 'description' => '风险等级。',
- 'type' => 'string',
- 'example' => 'high',
+ ],
+ 'FrameSummarys' => [
+ 'description' => '视频截帧标签汇总。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '视频截帧标签对象',
+ 'type' => 'object',
+ 'properties' => [
+ 'Label' => ['description' => '视频截帧标签。', 'type' => 'string', 'example' => 'violent_armedForces'],
+ 'LabelSum' => ['description' => '标签出现次数。', 'type' => 'integer', 'format' => 'int32', 'example' => '8'],
+ 'Description' => ['description' => '对Labal字段的说明。', 'type' => 'string', 'example' => '未检测出风险'],
+ ],
],
],
+ 'RiskLevel' => ['description' => '风险等级,根据设置的高低风险分返回,返回值包括:'."\n"
+ ."\n"
+ .'- high:高风险'."\n"
+ ."\n"
+ .'- medium:中风险'."\n"
+ .' '."\n"
+ .'- low:低风险'."\n"
+ ."\n"
+ .' - none:未检测到风险', 'type' => 'string', 'example' => 'high'],
],
],
- 'Result' => [
- 'description' => '图片检测的风险标签、置信分等参数结果,数组结构。',
- 'type' => 'array',
- 'items' => [
- 'description' => '数据结构。',
- 'type' => 'object',
- 'properties' => [
- 'Label' => [
- 'description' => '图片内容检测运算后返回的标签。同一张图片可能会检出多个标签和分值。',
- 'type' => 'string',
- 'example' => 'violent_explosion',
- ],
- 'Confidence' => [
- 'description' => '置信分值,0到100分,保留到小数点后2位。部分标签无置信分。',
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '81.22',
- ],
- 'Description' => [
- 'description' => '描述。',
- 'type' => 'string',
- 'example' => '未检测出风险',
+ 'TaskId' => ['description' => '任务ID', 'type' => 'string', 'example' => 'xxxxx-xxxxx'],
+ 'RiskLevel' => ['description' => '风险等级,根据设置的高低风险分返回,返回值包括:'."\n"
+ ."\n"
+ .'- high:高风险'."\n"
+ ."\n"
+ .'- medium:中风险'."\n"
+ .' '."\n"
+ .'- low:低风险'."\n"
+ ."\n"
+ .' - none:未检测到风险', 'type' => 'string', 'example' => 'high'],
+ 'ManualTaskId' => ['description' => '人审任务ID', 'type' => 'string', 'example' => 'xxxxx-xxxxx'],
+ 'Ext' => [
+ 'title' => '扩展信息',
+ 'description' => '扩展信息',
+ 'type' => 'object',
+ 'properties' => [
+ 'AigcData' => [
+ 'description' => 'AIGC元数据检测结果',
+ 'type' => 'object',
+ 'properties' => [
+ 'AIGC' => [
+ 'description' => 'AIGC元数据',
+ 'type' => 'object',
+ 'properties' => [
+ 'Label' => ['description' => '表示内容是否由AI生成,取值:'."\n"
+ ."\n"
+ .'- 1:属于人工智能内容生成合成的。'."\n"
+ ."\n"
+ .'- 2:(仅传播平台)可能为人工智能生成合成内容的。'."\n"
+ ."\n"
+ .'- 3:(仅传播平台)疑似人工智能内容生成合成的。', 'type' => 'string', 'example' => '1'],
+ 'ProduceID' => ['description' => '内容制作编号,用于制作平台溯源合成内容的唯一识别编号。', 'type' => 'string', 'example' => '123******456'."\n"
+ ."\n"],
+ 'ContentProducer' => ['description' => '服务提供者的编码或名称,用于标识内容的生产者。', 'type' => 'string', 'example' => '001191******M000100Y43'],
+ 'PropagateID' => ['description' => '内容传播编号,是传播平台对所传播生成合成内容的唯一编号。', 'type' => 'string', 'example' => '123******456'."\n"],
+ 'ContentPropagator' => ['description' => '传播平台名称,编号或代码,针对提供人工智能生成合成内容服务,可保持与ContentProducer一致。', 'type' => 'string', 'example' => '001191******M000100Y43'],
+ 'ReservedCode1' => ['description' => '预留字段。'."\n"
+ ."\n"
+ .'可存储用于生成合成服务提供者自主开展安全防护,保护内容、标识完整性的信息,可通过基于 ContentProducer 与 ProduceID 的哈希机制,实现关键信息的安全存储与校验。', 'type' => 'string', 'example' => 'd41d**********427e'."\n"],
+ 'ReservedCode2' => ['description' => '预留字段。'."\n"
+ ."\n"
+ .'可用于内容传播服务提供者企业自主开展安全防护,保护内容、标识完整性的信息,可通过基于 ContentProducer 与 ProduceID 的哈希机制,实现关键信息的安全存储与校验。', 'type' => 'string', 'example' => 'd41d**********427e'],
+ ],
+ ],
+ 'Result' => ['description' => '检测结果', 'type' => 'string', 'example' => 'None'],
],
],
],
],
- 'RiskLevel' => [
- 'description' => '风险等级。',
- 'type' => 'string',
- 'example' => 'high',
- ],
- 'ManualTaskId' => [
- 'description' => '人审任务ID',
- 'type' => 'string',
- 'example' => 'xxxxx-xxxxx',
- ],
],
],
],
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"6CF2815C-C8C7-4A01-B52E-FF6E24F53492\\\\n\\",\\n \\"Code\\": 200,\\n \\"Msg\\": \\"success\\",\\n \\"Data\\": {\\n \\"DataId\\": \\"26769ada6e264e7ba9aa048241e12be9\\",\\n \\"Results\\": [\\n {\\n \\"Service\\": \\"baselineCheck\\",\\n \\"Result\\": [\\n {\\n \\"Label\\": \\"violent_explosion\\",\\n \\"Confidence\\": 81.22,\\n \\"Description\\": \\"未检测出风险\\"\\n }\\n ],\\n \\"Ext\\": {\\n \\"TextInImage\\": {\\n \\"OcrResult\\": [\\n {\\n \\"Text\\": \\"abcd\\",\\n \\"Location\\": {\\n \\"X\\": 11,\\n \\"Y\\": 22,\\n \\"H\\": 33,\\n \\"W\\": 44\\n }\\n }\\n ],\\n \\"RiskWord\\": [\\n \\"火箭\\"\\n ],\\n \\"CustomText\\": [\\n {\\n \\"LibId\\": \\"123456\\",\\n \\"LibName\\": \\"自定义库1\\",\\n \\"KeyWords\\": \\"自定义词1,自定义词2\\"\\n }\\n ]\\n },\\n \\"CustomImage\\": [\\n {\\n \\"LibId\\": \\"1965304870002\\",\\n \\"ImageId\\": \\"1965304870002\\",\\n \\"LibName\\": \\"白名单\\"\\n }\\n ],\\n \\"PublicFigure\\": [\\n {\\n \\"FigureName\\": \\"xxxxx\\",\\n \\"FigureId\\": \\"12324222\\",\\n \\"Location\\": [\\n {\\n \\"X\\": 11,\\n \\"Y\\": 22,\\n \\"W\\": 330,\\n \\"H\\": 440\\n }\\n ]\\n }\\n ],\\n \\"LogoData\\": {\\n \\"Location\\": {\\n \\"X\\": 11,\\n \\"Y\\": 22,\\n \\"W\\": 330,\\n \\"H\\": 440\\n },\\n \\"Logo\\": [\\n {\\n \\"Label\\": \\"logo_sns\\",\\n \\"Name\\": \\"阿里云\\",\\n \\"Confidence\\": 99.1\\n }\\n ]\\n }\\n },\\n \\"RiskLevel\\": \\"high\\"\\n }\\n ],\\n \\"Result\\": [\\n {\\n \\"Label\\": \\"violent_explosion\\",\\n \\"Confidence\\": 81.22,\\n \\"Description\\": \\"未检测出风险\\"\\n }\\n ],\\n \\"RiskLevel\\": \\"high\\",\\n \\"ManualTaskId\\": \\"xxxxx-xxxxx\\"\\n }\\n}","type":"json"}]',
- 'title' => '图片多Service同步检测',
- 'requestParamsDescription' => '```'."\n"
- .'{'."\n"
- .' "Service": "baselineCheck,tonalityImprove",'."\n"
- .' "ServiceParameters": {'."\n"
- .' "imageUrl": "https://img.alicdn.com/tfs/TB1U4r9AeH2gK0jSZJnXXaT1FXa-2880-480.png",'."\n"
- .' "dataId": "img123****"'."\n"
- .' }'."\n"
- .'}'."\n"
- ."\n"
- .'```',
- 'responseParamsDescription' => '```'."\n"
- .'{'."\n"
- .' "Msg": "success",'."\n"
- .' "Code": 200,'."\n"
- .' "Data": {'."\n"
- .' "DataId": "img123****",'."\n"
- .' "Result": ['."\n"
- .' {'."\n"
- .' "Label": "violent_explosion",'."\n"
- .' "Confidence": 70,'."\n"
- .' "Description": "烟火类内容"'."\n"
- .' },'."\n"
- .' {'."\n"
- .' "Label": "violent_explosion_lib",'."\n"
- .' "Confidence": 81,'."\n"
- .' "Description": "烟火类内容_命中自定义库"'."\n"
- .' }'."\n"
- .' ],'."\n"
- .' "RiskLevel": "high",'."\n"
- .' "Results": ['."\n"
- .' {'."\n"
- .' "Result": ['."\n"
- .' {'."\n"
- .' "Label": "violent_explosion",'."\n"
- .' "Confidence": 70,'."\n"
- .' "Description": "烟火类内容"'."\n"
- .' }'."\n"
- .' ],'."\n"
- .' "RiskLevel": "high",'."\n"
- .' "Service": "baselineCheck_pro"'."\n"
- .' },'."\n"
- .' {'."\n"
- .' "Result": ['."\n"
- .' {'."\n"
- .' "Label": "violent_explosion_lib",'."\n"
- .' "Confidence": 81,'."\n"
- .' "Description": "烟火类内容_命中自定义库"'."\n"
- .' }'."\n"
- .' ],'."\n"
- .' "RiskLevel": "high",'."\n"
- .' "Service": "baselineCheck"'."\n"
- .' }'."\n"
- .' ]'."\n"
- .' },'."\n"
- .' "RequestId": "ABCD1234-1234-1234-1234-1234XYZ"'."\n"
- .'}'."\n"
- .'```',
- ],
- 'ManualCallback' => [
- 'summary' => '内容安全人审结果渠道回调接口',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'https',
- ],
- 'security' => [
- [
- 'AK' => [],
- ],
- ],
- 'operationType' => 'write',
- 'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'none',
- 'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeCode' => '264346',
- 'abilityTreeNodes' => [
- 'FEATURElvwangIBEW89',
- 'FEATURElvwangU90H4V',
- 'FEATURElvwangBBY7QM',
- 'FEATURElvwang870NMI',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"6CF2815C-C8C7-4A01-B52E-FF6E24F53492\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"success finished\\",\\n \\"Data\\": {\\n \\"LiveId\\": \\"liveId\\",\\n \\"DataId\\": \\"product_content-2055763\\",\\n \\"AudioResult\\": {\\n \\"SliceDetails\\": [\\n {\\n \\"StartTime\\": 0,\\n \\"EndTime\\": 30,\\n \\"StartTimestamp\\": 1659935002123,\\n \\"EndTimestamp\\": 1685245261939,\\n \\"Url\\": \\"http://xxxx.abc.img\\",\\n \\"Text\\": \\"今天天气真不错\\",\\n \\"Labels\\": \\"porn\\",\\n \\"Score\\": 5,\\n \\"Extend\\": \\"{\\\\\\\\\\\\\\"consoleProduct\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"slbnext\\\\\\\\\\\\\\"}\\",\\n \\"RiskTips\\": \\"\\\\\\"\\\\\\"\\",\\n \\"RiskWords\\": \\"\\\\\\"\\\\\\"\\",\\n \\"RiskLevel\\": \\"high\\",\\n \\"Descriptions\\": \\"疑似违禁内容\\",\\n \\"Result\\": [\\n {\\n \\"Label\\": \\"profanity\\",\\n \\"Confidence\\": 99.9,\\n \\"RiskWords\\": \\"fxxk\\",\\n \\"RiskLevel\\": \\"high\\",\\n \\"CustomizedHit\\": [\\n {\\n \\"LibName\\": \\"备用词库02\\",\\n \\"KeyWords\\": \\"fxxk\\"\\n }\\n ],\\n \\"Description\\": \\"疑似违禁内容\\",\\n \\"RiskPositions\\": [\\n {\\n \\"RiskWord\\": \\"fxxk\\",\\n \\"StartPos\\": 0,\\n \\"EndPos\\": 3\\n }\\n ]\\n }\\n ]\\n }\\n ],\\n \\"AudioSummarys\\": [\\n {\\n \\"Label\\": \\"profanity\\",\\n \\"LabelSum\\": 8,\\n \\"Description\\": \\"疑似违禁内容\\"\\n }\\n ],\\n \\"RiskLevel\\": \\"high\\"\\n },\\n \\"FrameResult\\": {\\n \\"FrameNum\\": 10,\\n \\"Frames\\": [\\n {\\n \\"TempUrl\\": \\"http://xxxx.abc.jpg\\",\\n \\"Offset\\": 338,\\n \\"Results\\": [\\n {\\n \\"Service\\": \\"tonalityImprove\\",\\n \\"Result\\": [\\n {\\n \\"Confidence\\": 50,\\n \\"Label\\": \\"bloody\\",\\n \\"Description\\": \\"未检测出风险\\"\\n }\\n ],\\n \\"TextInImage\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"CustomImage\\": [\\n {\\n \\"LibId\\": \\"12345678\\",\\n \\"ImageId\\": \\"1234\\"\\n }\\n ],\\n \\"PublicFigure\\": [\\n {\\n \\"FigureId\\": \\"xxx001\\",\\n \\"FigureName\\": \\"张三\\",\\n \\"Location\\": [\\n {\\n \\"H\\": 222,\\n \\"W\\": 111,\\n \\"X\\": 111,\\n \\"Y\\": 222\\n }\\n ]\\n }\\n ],\\n \\"LogoData\\": [\\n {\\n \\"Location\\": {\\n \\"X\\": 111,\\n \\"Y\\": 222,\\n \\"W\\": 111,\\n \\"H\\": 111\\n },\\n \\"Logo\\": [\\n {\\n \\"label\\": \\"pt_logotoSocialNetwork\\",\\n \\"name\\": \\"**卫视\\",\\n \\"confidence\\": 99.1\\n }\\n ]\\n }\\n ],\\n \\"VlContent\\": {\\n \\"OutputText\\": \\"in the picture XXX\\"\\n }\\n }\\n ],\\n \\"Timestamp\\": 1684559739000,\\n \\"RiskLevel\\": \\"high\\"\\n }\\n ],\\n \\"FrameSummarys\\": [\\n {\\n \\"Label\\": \\"violent_armedForces\\",\\n \\"LabelSum\\": 8,\\n \\"Description\\": \\"未检测出风险\\"\\n }\\n ],\\n \\"RiskLevel\\": \\"high\\"\\n },\\n \\"TaskId\\": \\"xxxxx-xxxxx\\",\\n \\"RiskLevel\\": \\"high\\",\\n \\"ManualTaskId\\": \\"xxxxx-xxxxx\\",\\n \\"Ext\\": {\\n \\"AigcData\\": {\\n \\"AIGC\\": {\\n \\"Label\\": \\"1\\",\\n \\"ProduceID\\": \\"123******456\\\\n\\\\n\\",\\n \\"ContentProducer\\": \\"001191******M000100Y43\\",\\n \\"PropagateID\\": \\"123******456\\\\n\\",\\n \\"ContentPropagator\\": \\"001191******M000100Y43\\",\\n \\"ReservedCode1\\": \\"d41d**********427e\\\\n\\",\\n \\"ReservedCode2\\": \\"d41d**********427e\\"\\n },\\n \\"Result\\": \\"None\\"\\n }\\n }\\n }\\n}","type":"json"}]',
+ 'title' => '查询视频审核任务结果',
+ 'description' => '该接口不计费,建议您将查询间隔设置为30秒(即在提交异步检测任务30秒后查询结果),最长不能超出24小时,否则结果将会自动删除。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'VideoModerationResult'],
],
- 'tenantRelevance' => 'publicInformation',
],
- 'parameters' => [
- [
- 'name' => 'Code',
- 'in' => 'formData',
- 'schema' => [
- 'description' => 'code码',
- 'type' => 'string',
- 'required' => false,
- 'example' => '200',
- ],
- ],
- [
- 'name' => 'Msg',
- 'in' => 'formData',
- 'schema' => [
- 'description' => '提示信息',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'OK',
- ],
- ],
- [
- 'name' => 'Checksum',
- 'in' => 'formData',
- 'schema' => [
- 'description' => '校验码。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'abc',
- ],
- ],
- [
- 'name' => 'ReqId',
- 'in' => 'formData',
- 'schema' => [
- 'description' => '平台请求id,用于辅助排查问题',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'B0963D30-BAB4-562F-9ED0-7A23AEC51C7C',
- ],
- ],
- [
- 'name' => 'Data',
- 'in' => 'formData',
- 'schema' => [
- 'description' => '返回数据。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '{\'Result\': [{\'Confidence\': 100.0, \'CustomizedHit\': [{\'KeyWords\': u\'\\u4fdd\\u969c,\\u6700\\u5927,\\u9ad8\\u7ea7\', \'LibName\': u\'\\u4f18\\u8def\\u654f\\u611f\\u8bcd\'}], \'Label\': \'customized\'}]}',
- ],
- ],
+ 'ramActions' => [
[
- 'name' => 'Channel',
- 'in' => 'formData',
- 'schema' => [
- 'description' => '渠道字段',
- 'type' => 'string',
- 'required' => false,
- 'enumValueTitles' => [
- 'ant' => 'ant',
- ],
- 'example' => 'ant',
- ],
- ],
- ],
- 'responses' => [
- 200 => [
- 'schema' => [
- 'title' => 'Schema of Response',
- 'description' => 'Schema of Response',
- 'type' => 'object',
- 'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => 'Id of the request',
- 'type' => 'string',
- 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****'."\n",
- ],
- 'Message' => [
- 'description' => 'message信息',
- 'type' => 'string',
- 'example' => 'SUCCESS',
- ],
- 'Code' => [
- 'description' => '错误码',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '200',
- ],
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'yundun-greenweb:VideoModerationResult',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\\\n\\",\\n \\"Message\\": \\"SUCCESS\\",\\n \\"Code\\": 200\\n}","type":"json"}]',
- 'title' => '人审渠道回调接口',
- 'extraInfo' => '无',
],
- 'ManualModeration' => [
- 'summary' => '内容安全人审提交请求接口',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'VoiceModeration' => [
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -4387,40 +3784,26 @@
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'none',
+ 'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'paid',
- 'abilityTreeCode' => '264342',
- 'abilityTreeNodes' => [
- 'FEATURElvwangIBEW89',
- 'FEATURElvwangU90H4V',
- 'FEATURElvwangBBY7QM',
- 'FEATURElvwang870NMI',
- ],
- 'tenantRelevance' => 'publicInformation',
+ 'abilityTreeCode' => '162159',
+ 'abilityTreeNodes' => ['FEATURElvwang6QCU1H', 'FEATURElvwangPAXR7J'],
],
'parameters' => [
[
'name' => 'Service',
'in' => 'formData',
- 'schema' => [
- 'description' => '服务。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'imageManualCheck',
- ],
+ 'schema' => ['description' => '语音审核ServiceCode', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'audio_media_detection'],
],
[
'name' => 'ServiceParameters',
'in' => 'formData',
- 'schema' => [
- 'description' => '审核服务需要的参数集,JSON字符串格式。'."\n"
- .'- url:待检测对象的URL,请确保该URL能通过公网访问到。'."\n"
- .'- dataId:选填,检测对象对应的数据ID。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '{"url": "https://talesofai.oss-cn-shanghai.aliyuncs.com/xxx.mp4", "dataId": "data1234"}',
- ],
+ 'schema' => ['description' => '审核服务需要的参数集,JSON字符串格式。'."\n"
+ ."\n"
+ .'url:必填,待检测对象的URL,请确保该URL能通过公网访问到。'."\n"
+ .'dataId:选填,检测对象对应的数据ID。'."\n"
+ .'更多信息,请参见ServiceParameter。', 'type' => 'string', 'required' => false, 'example' => '{"url": "http://aliyundoc.com/test.flv", "dataId": "data1234"}'],
],
],
'responses' => [
@@ -4430,88 +3813,76 @@
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => 'Id of the request',
- 'type' => 'string',
- 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****',
- ],
- 'Message' => [
- 'description' => '错误信息',
- 'type' => 'string',
- 'example' => 'SUCCESS',
- ],
- 'Code' => [
- 'description' => '状态码',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '200',
- ],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****'],
+ 'Code' => ['description' => '错误代码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
+ 'Message' => ['description' => '错误信息', 'type' => 'string', 'example' => 'SUCCESS'],
'Data' => [
- 'description' => '返回数据。',
+ 'description' => '返回任务信息数据结构',
'type' => 'object',
'properties' => [
- 'DataId' => [
- 'description' => 'API请求时传入的dataId 的值,如请求时未传入,则没有该字段。',
- 'type' => 'string',
- 'example' => '2a5389eb-4ff8-4584-ac99-644e2a539aa1',
- ],
- 'TaskId' => [
- 'description' => '任务Id',
- 'type' => 'string',
- 'example' => 'xxxxx-xxxxx',
- ],
+ 'TaskId' => ['description' => '任务Id', 'type' => 'string', 'example' => 'xxxxx-xxxxx'],
+ 'DataId' => ['description' => 'API请求时传入的dataId 的值,如请求时未传入,则没有该字段。', 'type' => 'string', 'example' => 'data1234'],
],
],
],
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Message\\": \\"SUCCESS\\",\\n \\"Code\\": 200,\\n \\"Data\\": {\\n \\"DataId\\": \\"2a5389eb-4ff8-4584-ac99-644e2a539aa1\\",\\n \\"TaskId\\": \\"xxxxx-xxxxx\\"\\n }\\n}","type":"json"}]',
- 'title' => '内容安全人审提交任务',
- ],
- 'ManualModerationResult' => [
- 'summary' => '获取人审结果',
- 'methods' => [
- 'post',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '语音审核增强版任务提交',
+ 'summary' => '提交语音审核增强版检测任务。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'VoiceModeration'],
+ ],
],
- 'schemes' => [
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'yundun-greenweb:VoiceModeration',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"SUCCESS\\",\\n \\"Data\\": {\\n \\"TaskId\\": \\"xxxxx-xxxxx\\",\\n \\"DataId\\": \\"data1234\\"\\n }\\n}","type":"json"}]',
+ ],
+ 'VoiceModerationCancel' => [
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'read',
+ 'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeCode' => '264414',
- 'abilityTreeNodes' => [
- 'FEATURElvwangIBEW89',
- 'FEATURElvwangU90H4V',
- 'FEATURElvwangBBY7QM',
- 'FEATURElvwang870NMI',
- ],
- 'tenantRelevance' => 'publicInformation',
+ 'abilityTreeCode' => '164076',
+ 'abilityTreeNodes' => ['FEATURElvwang6QCU1H', 'FEATURElvwangPAXR7J'],
],
'parameters' => [
[
+ 'name' => 'Service',
+ 'in' => 'formData',
+ 'schema' => ['description' => '审核服务类型,包括:'."\n"
+ .'nickname_detection:用户昵称'."\n"
+ .'待定', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'nickname_detection'],
+ ],
+ [
'name' => 'ServiceParameters',
'in' => 'formData',
- 'schema' => [
- 'description' => '服务需要的参数集,JSON字符串格式。'."\n"
- .'- TaskId:提交任务时返回的任务id',
- 'type' => 'string',
- 'required' => false,
- 'example' => '{\\"TaskId\\":\\"e5f2d886-4c23-440d-999c-bd98acde11b6\\"}',
- ],
+ 'schema' => ['description' => '待取消任务TaskId', 'type' => 'string', 'required' => false, 'example' => '{'."\n"
+ .' "taskId": "xxxxx-xxxx"'."\n"
+ .' }'],
],
],
'responses' => [
@@ -4521,130 +3892,69 @@
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => 'Id of the request',
- 'type' => 'string',
- 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****',
- ],
- 'Message' => [
- 'description' => '错误信息',
- 'type' => 'string',
- 'example' => 'SUCCESS',
- ],
- 'Code' => [
- 'description' => '错误码。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '200',
- ],
- 'Data' => [
- 'description' => '返回数据。',
- 'type' => 'object',
- 'properties' => [
- 'RiskLevel' => [
- 'description' => '风险等级,根据设置的高低风险分返回,返回值包括:'."\n"
- ."\n"
- .'- high:高风险'."\n"
- .' '."\n"
- .'- low:低风险'."\n"
- ."\n"
- .' - none:未检测到风险',
- 'type' => 'string',
- 'example' => 'high',
- ],
- 'DataId' => [
- 'description' => 'API请求时传入的dataId 的值,如请求时未传入,则没有该字段。',
- 'type' => 'string',
- 'example' => 'data1234',
- ],
- 'TaskId' => [
- 'description' => '任务Id',
- 'type' => 'string',
- 'example' => 'xxxxx-xxxxx',
- ],
- 'Result' => [
- 'description' => '返回详细标签结果。',
- 'type' => 'array',
- 'items' => [
- 'description' => '标签项结构。',
- 'type' => 'object',
- 'properties' => [
- 'Label' => [
- 'description' => '风险标签',
- 'type' => 'string',
- 'example' => 'violent_explosion',
- ],
- 'Description' => [
- 'description' => '标签描述',
- 'type' => 'string',
- 'example' => '未检测出风险',
- ],
- ],
- ],
- ],
- ],
- ],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '4A926AE2-4C96-573F-824F-0532960799F8'],
+ 'Code' => ['description' => '返回码。返回200代表成功。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
+ 'Message' => ['description' => '请求消息的响应消息。', 'type' => 'string', 'example' => 'SUCCESS'],
],
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Message\\": \\"SUCCESS\\",\\n \\"Code\\": 200,\\n \\"Data\\": {\\n \\"RiskLevel\\": \\"high\\",\\n \\"DataId\\": \\"data1234\\",\\n \\"TaskId\\": \\"xxxxx-xxxxx\\",\\n \\"Result\\": [\\n {\\n \\"Label\\": \\"violent_explosion\\",\\n \\"Description\\": \\"未检测出风险\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
- 'title' => '内容安全人审结果获取接口',
- ],
- 'MultiModalGuard' => [
- 'summary' => '同步检测接口',
- 'path' => '',
- 'methods' => [
- 'post',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '取消语音流审核任务',
+ 'summary' => '语音审核增强版取消任务接口。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'VoiceModerationCancel'],
+ ],
],
- 'schemes' => [
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'yundun-greenweb:VoiceModerationCancel',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"4A926AE2-4C96-573F-824F-0532960799F8\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"SUCCESS\\"\\n}","type":"json"}]',
+ ],
+ 'VoiceModerationResult' => [
+ 'summary' => '语音审核增强版检测结果获取接口。',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'readAndWrite',
+ 'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
- 'chargeType' => 'paid',
- 'abilityTreeNodes' => [
- 'FEATURElvwang828K27',
- ],
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '162180',
+ 'abilityTreeNodes' => ['FEATURElvwang6QCU1H', 'FEATURElvwangPAXR7J'],
],
'parameters' => [
[
'name' => 'Service',
'in' => 'formData',
- 'schema' => [
- 'description' => '审核服务类型,包括:'."\n"
- ."\n"
- .'- query_security_check:AI输入内容安全检测'."\n"
- ."\n"
- .'- response_security_check:AI生成内容安全检测',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'query_security_check',
- ],
+ 'schema' => ['title' => '服务', 'description' => '审核服务类型,包括:'."\n"
+ .'nickname_detection:用户昵称'."\n"
+ .'待定', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'nickname_detection'],
],
[
'name' => 'ServiceParameters',
'in' => 'formData',
- 'schema' => [
- 'description' => '审核服务需要的参数集。JSON字符串格式',
- 'type' => 'string',
- 'required' => false,
- 'example' => '{'."\n"
- .' "content": "测试内容"'."\n"
- .' }',
- ],
+ 'schema' => ['title' => '服务参数', 'description' => '网关向后端服务发送API请求的参数描述。'."\n"
+ ."\n"
+ .'更多信息,请参见[ServiceParameter](~~43988~~)。', 'type' => 'string', 'required' => false, 'example' => '暂无'],
],
],
'responses' => [
@@ -4654,81 +3964,87 @@
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****',
- ],
- 'Code' => [
- 'description' => '错误码。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '200',
- ],
- 'Message' => [
- 'description' => '错误信息。',
- 'type' => 'string',
- 'example' => 'OK',
- ],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '2881AD4F-638B-52A3-BA20-F74C5B1CEAE3'],
+ 'Code' => ['description' => '错误码。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
+ 'Message' => ['description' => '请求消息的响应消息。', 'type' => 'string', 'example' => 'SUCCESS'],
'Data' => [
- 'description' => '返回的数据内容。',
+ 'description' => '返回数据。',
'type' => 'object',
'properties' => [
- 'Detail' => [
- 'description' => '检测详情。',
+ 'Url' => ['description' => '任务URL', 'type' => 'string', 'example' => '暂无'],
+ 'LiveId' => ['description' => '直播的唯一标识ID。', 'type' => 'string', 'example' => 'liveId'],
+ 'TaskId' => ['description' => '任务ID', 'type' => 'string', 'example' => 'kw24ihd0WGkdi5nniVZM@qOj-1x5Ibb'],
+ 'SliceDetails' => [
+ 'description' => '分段结果',
'type' => 'array',
'items' => [
- 'description' => '检测详情。',
+ 'description' => '分段结果条目',
'type' => 'object',
'properties' => [
- 'Suggestion' => [
- 'description' => '审核建议。取值:-**block**:违规。-**pass**:通过。',
- 'type' => 'string',
- 'example' => 'pass',
- ],
- 'Type' => [
- 'description' => '类型。',
- 'type' => 'string',
- 'example' => 'contentModeration',
- ],
- 'Level' => [
- 'description' => '风险等级。',
- 'type' => 'string',
- 'example' => 'none',
- ],
+ 'StartTime' => ['description' => '分段开始时间(秒)', 'type' => 'integer', 'format' => 'int64', 'example' => '0'],
+ 'EndTime' => ['description' => '分段结束时间(秒)', 'type' => 'integer', 'format' => 'int64', 'example' => '10'],
+ 'StartTimestamp' => ['description' => '切片开始时间戳,单位:毫秒。', 'type' => 'integer', 'format' => 'int64', 'example' => '1678854649720'],
+ 'EndTimestamp' => ['description' => '切片结束时间戳,单位:毫秒。', 'type' => 'integer', 'format' => 'int64', 'example' => '1678854649720'],
+ 'Url' => ['description' => '分段语音文件临时地址', 'type' => 'string', 'example' => '暂无'],
+ 'Text' => ['description' => '分段语音转写文本', 'type' => 'string', 'example' => '今天天气真不错'],
+ 'Labels' => ['description' => '命中违规标签', 'type' => 'string', 'example' => 'sexual_sounds'],
+ 'Score' => ['description' => '风险分数,默认范围 0-99', 'type' => 'number', 'format' => 'float', 'example' => '87.01'],
+ 'Extend' => ['description' => '扩展字段', 'type' => 'string', 'example' => '{\\"riskWords\\":\\"色情服务\\","adNums":"\\","riskTips":"涉政_人物,涉政_红歌"}'],
+ 'RiskTips' => ['description' => '命中风险详情', 'type' => 'string', 'example' => '涉政_人物'],
+ 'RiskWords' => ['description' => '命中风险关键词', 'type' => 'string', 'example' => '色情服务'],
+ 'OriginAlgoResult' => ['description' => '保留字段', 'type' => 'object'],
+ 'RiskLevel' => ['description' => '风险等级,根据设置的高低风险分返回,返回值包括:'."\n"
+ ."\n"
+ .'- high:高风险'."\n"
+ ."\n"
+ .'- medium:中风险'."\n"
+ .' '."\n"
+ .'- low:低风险'."\n"
+ ."\n"
+ .' - none:未检测到风险', 'type' => 'string', 'example' => 'high'],
+ 'Descriptions' => ['description' => '标签描述。', 'type' => 'string', 'example' => '疑似违禁内容'],
'Result' => [
- 'description' => '检测结果。',
+ 'title' => '文本检测结果',
+ 'description' => '文本检测结果',
'type' => 'array',
'items' => [
- 'description' => '检测结果。',
+ 'title' => '单个结果',
+ 'description' => '单个结果',
'type' => 'object',
'properties' => [
- 'Ext' => [
- 'description' => '检测结果扩展信息。',
- 'type' => 'any',
- 'example' => '{}',
- ],
- 'Description' => [
- 'description' => '标签描述。',
- 'type' => 'string',
- 'example' => '疑似违禁行为',
- ],
- 'Confidence' => [
- 'description' => '置信分值,0到100分,保留到小数点后2位。',
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '0',
- ],
- 'Label' => [
- 'description' => '标签。',
- 'type' => 'string',
- 'example' => 'contraband_act',
+ 'Label' => ['title' => '标签', 'description' => '标签', 'type' => 'string', 'example' => 'ad'],
+ 'Confidence' => ['title' => '置信度', 'description' => '置信度', 'type' => 'number', 'format' => 'float', 'example' => '100.00'],
+ 'RiskWords' => ['title' => '命中风险内容', 'description' => '命中风险内容', 'type' => 'string', 'example' => 'XX'],
+ 'RiskLevel' => ['title' => '风险等级', 'description' => '风险等级', 'type' => 'string', 'example' => 'high'],
+ 'CustomizedHit' => [
+ 'title' => '命中自定义库列表',
+ 'description' => '命中自定义库列表',
+ 'type' => 'array',
+ 'items' => [
+ 'title' => '命中自定义库',
+ 'description' => '命中自定义库',
+ 'type' => 'object',
+ 'properties' => [
+ 'LibName' => ['title' => '自定义库名称', 'description' => '自定义库名称', 'type' => 'string', 'example' => 'insultLib'],
+ 'KeyWords' => ['title' => '自定义词', 'description' => '自定义词', 'type' => 'string', 'example' => 'fxxk'],
+ ],
+ ],
],
- 'Level' => [
- 'description' => '风险等级。',
- 'type' => 'string',
- 'example' => 'none',
+ 'Description' => ['title' => '描述', 'description' => '描述', 'type' => 'string', 'example' => 'profanity'],
+ 'RiskPositions' => [
+ 'title' => '风险位置列表',
+ 'description' => '风险位置列表',
+ 'type' => 'array',
+ 'items' => [
+ 'title' => '风险位置',
+ 'description' => '风险位置',
+ 'type' => 'object',
+ 'properties' => [
+ 'RiskWord' => ['title' => '检测到的敏感词', 'description' => '检测到的敏感词', 'type' => 'string', 'example' => 'fxxk'],
+ 'StartPos' => ['title' => '起始位置', 'description' => '起始位置', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ 'EndPos' => ['title' => '结束位置', 'description' => '结束位置', 'type' => 'integer', 'format' => 'int32', 'example' => '4'],
+ ],
+ ],
],
],
],
@@ -4736,220 +4052,716 @@
],
],
],
- 'Suggestion' => [
- 'description' => '审核建议。取值:-block:违规。-pass:通过。',
- 'type' => 'string',
- 'example' => 'pass',
- ],
- 'DataId' => [
- 'description' => '检测对象对应的数据ID。',
- 'type' => 'string',
- 'example' => 'data1234',
- ],
+ 'DataId' => ['description' => 'API请求时传入的dataId 的值,如请求时未传入,则没有该字段。', 'type' => 'string', 'example' => 'data1234'],
+ 'RiskLevel' => ['description' => '风险等级,根据设置的高低风险分返回,返回值包括:'."\n"
+ ."\n"
+ .'- high:高风险'."\n"
+ ."\n"
+ .'- medium:中风险'."\n"
+ .' '."\n"
+ .'- low:低风险'."\n"
+ ."\n"
+ .' - none:未检测到风险', 'type' => 'string', 'example' => 'high'],
+ 'ManualTaskId' => ['description' => '人审任务ID', 'type' => 'string', 'example' => 'xxxxx-xxxxx'],
],
],
],
],
],
],
- 'errorCodes' => [
- 403 => [
- [
- 'errorCode' => 'NoPermission',
- 'errorMessage' => 'You don\'t have permission.',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"2881AD4F-638B-52A3-BA20-F74C5B1CEAE3\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"SUCCESS\\",\\n \\"Data\\": {\\n \\"Url\\": \\"暂无\\",\\n \\"LiveId\\": \\"liveId\\",\\n \\"TaskId\\": \\"kw24ihd0WGkdi5nniVZM@qOj-1x5Ibb\\",\\n \\"SliceDetails\\": [\\n {\\n \\"StartTime\\": 0,\\n \\"EndTime\\": 10,\\n \\"StartTimestamp\\": 1678854649720,\\n \\"EndTimestamp\\": 1678854649720,\\n \\"Url\\": \\"暂无\\",\\n \\"Text\\": \\"今天天气真不错\\",\\n \\"Labels\\": \\"sexual_sounds\\",\\n \\"Score\\": 87.01,\\n \\"Extend\\": \\"{\\\\\\\\\\\\\\"riskWords\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"色情服务\\\\\\\\\\\\\\",\\\\\\"adNums\\\\\\":\\\\\\"\\\\\\\\\\\\\\",\\\\\\"riskTips\\\\\\":\\\\\\"涉政_人物,涉政_红歌\\\\\\"}\\",\\n \\"RiskTips\\": \\"涉政_人物\\",\\n \\"RiskWords\\": \\"色情服务\\",\\n \\"OriginAlgoResult\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"RiskLevel\\": \\"high\\",\\n \\"Descriptions\\": \\"疑似违禁内容\\",\\n \\"Result\\": [\\n {\\n \\"Label\\": \\"ad\\",\\n \\"Confidence\\": 100,\\n \\"RiskWords\\": \\"XX\\",\\n \\"RiskLevel\\": \\"high\\",\\n \\"CustomizedHit\\": [\\n {\\n \\"LibName\\": \\"insultLib\\",\\n \\"KeyWords\\": \\"fxxk\\"\\n }\\n ],\\n \\"Description\\": \\"profanity\\",\\n \\"RiskPositions\\": [\\n {\\n \\"RiskWord\\": \\"fxxk\\",\\n \\"StartPos\\": 1,\\n \\"EndPos\\": 4\\n }\\n ]\\n }\\n ]\\n }\\n ],\\n \\"DataId\\": \\"data1234\\",\\n \\"RiskLevel\\": \\"high\\",\\n \\"ManualTaskId\\": \\"xxxxx-xxxxx\\"\\n }\\n}","type":"json"}]',
+ 'title' => '查询语音审核结果',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'VoiceModerationResult'],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'yundun-greenweb:VoiceModerationResult',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ ],
+ ],
+ 'endpoints' => [
+ ['regionId' => 'cn-shenzhen', 'regionName' => '华南1(深圳)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'green-cip.cn-shenzhen.aliyuncs.com', 'endpoint' => 'green-cip.cn-shenzhen.aliyuncs.com', 'vpc' => 'green-cip-vpc.cn-shenzhen.aliyuncs.com'],
+ ['regionId' => 'cn-beijing', 'regionName' => '华北2(北京)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'green-cip.cn-beijing.aliyuncs.com', 'endpoint' => 'green-cip.cn-beijing.aliyuncs.com', 'vpc' => 'green-cip-vpc.cn-beijing.aliyuncs.com'],
+ ['regionId' => 'cn-shanghai', 'regionName' => '华东2(上海)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'green-cip.cn-shanghai.aliyuncs.com', 'endpoint' => 'green-cip.cn-shanghai.aliyuncs.com', 'vpc' => 'green-cip-vpc.cn-shanghai.aliyuncs.com'],
+ ['regionId' => 'cn-hongkong', 'regionName' => '中国香港', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'green-cip.cn-hongkong.aliyuncs.com', 'endpoint' => 'green-cip.cn-hongkong.aliyuncs.com', 'vpc' => 'green-cip-vpc.cn-hongkong.aliyuncs.com'],
+ ['regionId' => 'ap-southeast-1', 'regionName' => '新加坡', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'green-cip.ap-southeast-1.aliyuncs.com', 'endpoint' => 'green-cip.ap-southeast-1.aliyuncs.com', 'vpc' => 'green-cip-vpc.ap-southeast-1.aliyuncs.com'],
+ ['regionId' => 'cn-hangzhou', 'regionName' => '华东1(杭州)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'green-cip.cn-hangzhou.aliyuncs.com', 'endpoint' => 'green-cip.cn-hangzhou.aliyuncs.com', 'vpc' => 'green-cip-vpc.cn-hangzhou.aliyuncs.com'],
+ ['regionId' => 'us-east-1', 'regionName' => '美国(弗吉尼亚)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'green-cip.us-east-1.aliyuncs.com', 'endpoint' => 'green-cip.us-east-1.aliyuncs.com', 'vpc' => 'green-cip-vpc.us-east-1.aliyuncs.com'],
+ ['regionId' => 'eu-central-1', 'regionName' => '德国(法兰克福)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'green-cip.eu-central-1.aliyuncs.com', 'endpoint' => 'green-cip.eu-central-1.aliyuncs.com', 'vpc' => 'green-cip-vpc.eu-central-1.aliyuncs.com'],
+ ],
+ 'errorCodes' => [
+ ['code' => '408', 'message' => 'No permissions.', 'http_code' => 200, 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作。'],
+ ['code' => '411', 'message' => 'You don\'t have permission.', 'http_code' => 403, 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作。'],
+ ['code' => 'CustomServiceConfigServicesRequired', 'message' => 'Select at least one instrumentation configuration service when saving a multimodal service configuration.', 'http_code' => 400, 'description' => '保存多模态服务配置时至少选择一个检测配置服务'],
+ ['code' => 'NoPermission', 'message' => 'No permissions.', 'http_code' => 200, 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作。'],
+ ['code' => 'NoPermission', 'message' => 'you don\'t have permission.', 'http_code' => 200, 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作。'."\n"],
+ ['code' => 'NoPermission', 'message' => 'You don\'t have permission.', 'http_code' => 403, 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作。'],
+ ['code' => 'NoPermission', 'message' => 'You don\'t have permission.', 'http_code' => 403, 'description' => '当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作。'],
+ ['code' => 'OneFeatureRequired', 'message' => 'Keep at least one switch item when detecting an item configuration to turn off the switch item.', 'http_code' => 400, 'description' => '检测项配置关闭开关项时,请至少保留一个开关项'."\n"
+ ."\n"],
+ ['code' => 'ScanResultQueryFailed', 'message' => 'Data query failed.', 'http_code' => 200, 'description' => '数据查询失败'],
+ ['code' => 'UserNotOwner', 'message' => 'No permission.', 'http_code' => 401, 'description' => '无权限'],
+ ['code' => 'USER_NOT_OWNER', 'message' => 'No permission.', 'http_code' => 401, 'description' => '无权限'],
+ ['code' => 'LibCountOverLimit', 'message' => 'The number of libraries has exceeded the limit.', 'http_code' => 400, 'description' => '库数量已超出限制'],
+ ['code' => 'InvalidRequestParameters', 'message' => 'Invalid request parameters.', 'http_code' => 400, 'description' => '请求参数有误'],
+ ['code' => 'SampleCountOverLimit', 'message' => 'The number of samples has exceeded the limit.', 'http_code' => 400, 'description' => '样本数量超过限制'],
+ ],
+ 'changeSet' => [
+ [
+ 'apis' => [
+ ['description' => 'Response parameters changed', 'api' => 'TextModerationPlus'],
+ ],
+ 'createdAt' => '2025-03-19T07:10:51.000Z',
+ 'description' => '',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Response parameters changed', 'api' => 'DescribeImageModerationResult'],
+ ['description' => 'Response parameters changed', 'api' => 'ImageModeration'],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"OK\\",\\n \\"Data\\": {\\n \\"Detail\\": [\\n {\\n \\"Suggestion\\": \\"pass\\",\\n \\"Type\\": \\"contentModeration\\",\\n \\"Level\\": \\"none\\",\\n \\"Result\\": [\\n {\\n \\"Ext\\": \\"{}\\",\\n \\"Description\\": \\"疑似违禁行为\\",\\n \\"Confidence\\": 0,\\n \\"Label\\": \\"contraband_act\\",\\n \\"Level\\": \\"none\\"\\n }\\n ]\\n }\\n ],\\n \\"Suggestion\\": \\"pass\\",\\n \\"DataId\\": \\"data1234\\"\\n }\\n}","type":"json"}]',
- 'title' => 'AI安全护栏同步检测',
+ 'createdAt' => '2025-03-17T05:57:01.000Z',
+ 'description' => '',
],
- 'MultiModalAgent' => [
- 'summary' => '多模态AgentAPI同步检测接口',
- 'path' => '',
- 'methods' => [
- 'post',
+ [
+ 'apis' => [
+ ['description' => 'Response parameters changed', 'api' => 'VideoModerationResult'],
],
- 'schemes' => [
- 'https',
+ 'createdAt' => '2025-03-13T01:43:10.000Z',
+ 'description' => '',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Response parameters changed', 'api' => 'DescribeFileModerationResult'],
],
- 'security' => [
- [
- 'AK' => [],
+ 'createdAt' => '2025-01-09T12:55:00.000Z',
+ 'description' => '',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Response parameters changed', 'api' => 'VideoModerationResult'],
+ ['description' => 'Response parameters changed', 'api' => 'VoiceModerationResult'],
+ ],
+ 'createdAt' => '2025-01-09T12:40:18.000Z',
+ 'description' => '',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Response parameters changed', 'api' => 'TextModeration'],
+ ['description' => 'Response parameters changed', 'api' => 'TextModerationPlus'],
+ ],
+ 'createdAt' => '2025-01-06T10:54:50.000Z',
+ 'description' => '',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Request parameters changed', 'api' => 'ImageBatchModeration'],
+ ],
+ 'createdAt' => '2024-11-28T07:35:15.000Z',
+ 'description' => '',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Response parameters changed', 'api' => 'ImageModeration'],
+ ],
+ 'createdAt' => '2024-11-07T13:31:25.000Z',
+ 'description' => '',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Response parameters changed', 'api' => 'VoiceModerationResult'],
+ ],
+ 'createdAt' => '2024-10-14T10:21:11.000Z',
+ 'description' => '',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Response parameters changed', 'api' => 'VideoModerationResult'],
+ ],
+ 'createdAt' => '2024-09-23T13:29:06.000Z',
+ 'description' => '',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Response parameters changed', 'api' => 'DescribeFileModerationResult'],
+ ],
+ 'createdAt' => '2024-09-13T08:40:18.000Z',
+ 'description' => '',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Response parameters changed', 'api' => 'TextModerationPlus'],
+ ],
+ 'createdAt' => '2024-09-06T02:38:08.000Z',
+ 'description' => '',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Response parameters changed', 'api' => 'DescribeImageModerationResult'],
+ ['description' => 'Response parameters changed', 'api' => 'ImageModeration'],
+ ],
+ 'createdAt' => '2024-08-20T09:56:06.000Z',
+ 'description' => '',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Response parameters changed', 'api' => 'DescribeUrlModerationResult'],
+ ['description' => 'Response parameters changed', 'api' => 'ImageModeration'],
+ ],
+ 'createdAt' => '2024-07-25T09:35:00.000Z',
+ 'description' => '',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Response parameters changed', 'api' => 'TextModerationPlus'],
+ ],
+ 'createdAt' => '2024-07-03T11:18:54.000Z',
+ 'description' => '',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Response parameters changed', 'api' => 'DescribeImageModerationResult'],
+ ['description' => 'Response parameters changed', 'api' => 'ImageModeration'],
+ ],
+ 'createdAt' => '2024-07-03T11:04:30.000Z',
+ 'description' => '',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Response parameters changed', 'api' => 'ImageModeration'],
+ ],
+ 'createdAt' => '2024-05-30T09:10:09.000Z',
+ 'description' => '',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Response parameters changed', 'api' => 'TextModerationPlus'],
+ ],
+ 'createdAt' => '2024-05-27T07:14:34.000Z',
+ 'description' => '',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Response parameters changed', 'api' => 'ImageModeration'],
+ ],
+ 'createdAt' => '2024-05-11T05:53:39.000Z',
+ 'description' => '',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Response parameters changed', 'api' => 'ImageModeration'],
+ ],
+ 'createdAt' => '2024-04-19T03:30:20.000Z',
+ 'description' => '',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Response parameters changed', 'api' => 'DescribeImageResultExt'],
+ ],
+ 'createdAt' => '2024-04-11T11:01:03.000Z',
+ 'description' => '',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Response parameters changed', 'api' => 'VideoModeration'],
+ ['description' => 'Response parameters changed', 'api' => 'VideoModerationResult'],
+ ['description' => 'Response parameters changed', 'api' => 'VoiceModeration'],
+ ['description' => 'Response parameters changed', 'api' => 'VoiceModerationResult'],
+ ],
+ 'createdAt' => '2024-03-26T02:18:07.000Z',
+ 'description' => '',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Response parameters changed', 'api' => 'DescribeImageModerationResult'],
+ ],
+ 'createdAt' => '2024-01-03T11:20:11.000Z',
+ 'description' => '',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Response parameters changed', 'api' => 'VideoModerationResult'],
+ ],
+ 'createdAt' => '2023-12-27T10:12:24.000Z',
+ 'description' => '',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Response parameters changed', 'api' => 'DescribeImageModerationResult'],
+ ],
+ 'createdAt' => '2023-11-09T03:38:43.000Z',
+ 'description' => '',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Response parameters changed', 'api' => 'DescribeImageResultExt'],
+ ],
+ 'createdAt' => '2023-06-20T05:54:26.000Z',
+ 'description' => '',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Response parameters changed', 'api' => 'ImageModeration'],
+ ['description' => 'Response parameters changed', 'api' => 'TextModeration'],
+ ],
+ 'createdAt' => '2023-05-08T03:59:34.000Z',
+ 'description' => '',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Response parameters changed', 'api' => 'VoiceModeration'],
+ ['description' => 'Response parameters changed', 'api' => 'VoiceModerationCancel'],
+ ],
+ 'createdAt' => '2023-04-04T03:41:34.000Z',
+ 'description' => '',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Response parameters changed, Response parameters changed', 'api' => 'VoiceModerationResult'],
+ ],
+ 'createdAt' => '2023-03-24T08:22:10.000Z',
+ 'description' => '',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Response parameters changed, Response parameters changed', 'api' => 'TextModeration'],
+ ],
+ 'createdAt' => '2023-01-03T02:55:48.000Z',
+ 'description' => '接口返回更新',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Response parameters changed', 'api' => 'TextModeration'],
+ ],
+ 'createdAt' => '2022-11-30T02:29:17.000Z',
+ 'description' => '日常稳定性更新',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Response parameters changed', 'api' => 'TextModeration'],
+ ],
+ 'createdAt' => '2022-08-02T11:31:16.000Z',
+ 'description' => '接口更新',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Response parameters changed', 'api' => 'TextModeration'],
+ ],
+ 'createdAt' => '2022-06-02T01:47:32.000Z',
+ 'description' => '接口更新',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Request parameters changed', 'api' => 'TextModeration'],
+ ],
+ 'createdAt' => '2022-05-18T03:45:12.000Z',
+ 'description' => '接口更新',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Response parameters changed', 'api' => 'TextModeration'],
+ ],
+ 'createdAt' => '2022-04-26T06:34:52.000Z',
+ 'description' => '新版本接口发布',
+ ],
+ ],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'VoiceModerationResult'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'VideoModerationResult'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeFileModerationResult'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeImageResultExt'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'TextModerationPlus'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ImageAsyncModeration'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ManualModeration'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'FileModeration'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'TextModeration'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'VideoModerationCancel'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ImageBatchModeration'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'VoiceModerationCancel'],
+ ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeUrlModerationResult'],
+ ['threshold' => '200', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ManualCallback'],
+ ['threshold' => '20', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ManualModerationResult'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeUploadToken'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'VoiceModeration'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ImageModeration'],
+ ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UrlAsyncModeration'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeImageModerationResult'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'VideoModeration'],
+ ],
+ ],
+ 'ram' => [
+ 'productCode' => 'Aligreen',
+ 'productName' => 'AI 安全护栏',
+ 'ramCodes' => ['yundun-greenweb'],
+ 'ramLevel' => '操作级',
+ 'ramConditions' => [],
+ 'ramActions' => [
+ [
+ 'apiName' => 'VideoModerationResult',
+ 'description' => '查询视频审核任务结果',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'yundun-greenweb:VideoModerationResult',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
],
],
- 'operationType' => 'readAndWrite',
- 'deprecated' => false,
- 'systemTags' => [
+ [
+ 'apiName' => 'FileModeration',
+ 'description' => '文档检测任务提交',
'operationType' => 'none',
- 'riskType' => 'none',
- 'chargeType' => 'paid',
- 'abilityTreeNodes' => [
- 'FEATURElvwang828K27',
+ 'ramAction' => [
+ 'action' => 'yundun-greenweb:FileModeration',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
],
],
- 'parameters' => [
- [
- 'name' => 'ServiceParameters',
- 'in' => 'formData',
- 'schema' => [
- 'description' => '审核服务需要的参数集。taskId,即要查询的检测任务的taskId,每次支持输入一个taskId。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '{"content":"测试文本","dataId":"img1234567"}',
+ [
+ 'apiName' => 'ImageAsyncModeration',
+ 'description' => '图片异步检测',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'yundun-greenweb:ImageAsyncModeration',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
- [
- 'name' => 'AppID',
- 'in' => 'formData',
- 'schema' => [
- 'description' => '白板应用唯一标识符。获取白板应用ID,请参见[CreateApp](~~204234~~)。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'txt_check_agent_01',
+ ],
+ [
+ 'apiName' => 'MultiModalGuardAsyncResult',
+ 'description' => 'AI安全护栏多模态异步检测结果查询接口',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'yundun-greenweb:MultiModalGuardAsyncResult',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
- 'responses' => [
- 200 => [
- 'schema' => [
- 'title' => 'Schema of Response',
- 'description' => 'Schema of Response',
- 'type' => 'object',
- 'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => 'Id of the request',
- 'type' => 'string',
- 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****',
- ],
- 'Code' => [
- 'description' => '返回码。返回200代表成功。',
- 'type' => 'string',
- 'example' => '200',
- ],
- 'Message' => [
- 'description' => '错误信息。',
- 'type' => 'string',
- 'example' => 'SUCCESS',
- ],
- 'Data' => [
- 'description' => '图片内容检测后的结果。',
- 'type' => 'object',
- 'properties' => [
- 'DataId' => [
- 'description' => '数据ID',
- 'type' => 'string',
- 'example' => '26769ada6e264e7ba9aa048241e12be9',
- ],
- 'RiskLevel' => [
- 'description' => '风险等级,根据设置的高低风险分返回,返回值包括:'."\n"
- ."\n"
- .'- high:高风险'."\n"
- ."\n"
- .'- medium:中风险'."\n"
- .' '."\n"
- .'- low:低风险'."\n"
- ."\n"
- .' - none:未检测到风险',
- 'type' => 'string',
- 'example' => 'high',
- ],
- 'Result' => [
- 'description' => '标签项结构。',
- 'type' => 'array',
- 'items' => [
- 'description' => '返回集合。',
- 'type' => 'object',
- 'properties' => [
- 'Label' => [
- 'description' => '风险标签',
- 'type' => 'string',
- 'example' => 'violent_explosion',
- ],
- 'Description' => [
- 'description' => '标签描述',
- 'type' => 'string',
- 'example' => '未检测出风险',
- ],
- 'Reason' => [
- 'description' => '结束该会话时的结果描述。'."\n"
- .'- **SESSION_KILLED**:结束会话成功。'."\n"
- .'- **SESSION_EXPIRED**:会话已过期。'."\n"
- .'- **SESSION\\_NO\\_PERMISSION**:用于结束会话的账号权限不足。'."\n"
- .'- **SESSION\\_ACCOUNT\\_ERROR**:用于结束会话的账号或密码错误。'."\n"
- .'- **SESSION\\_IGNORED\\_USER**:不需要结束的账号的会话。'."\n"
- .'- **SESSION\\_INTERNAL\\_USER\\_OR\\_COMMAND**:阿里云运维账号的会话或者命令。'."\n"
- .'- **SESSION\\_KILL\\_TASK\\_TIMEOUT**:结束会话超时。'."\n"
- .'- **SESSION\\_OTHER\\_ERROR**:其他错误。',
- 'type' => 'string',
- 'example' => 'TRACER_SLB_ALL_DEST_WEIGHT_0',
- ],
- ],
- ],
- ],
- 'Usage' => [
- 'description' => 'Token使用情况',
- 'type' => 'object',
- 'properties' => [
- 'PromptLength' => [
- 'description' => '提示词长度。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '100',
- ],
- 'ContentLength' => [
- 'description' => '内容长度。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '10',
- ],
- 'AgentDetail' => [
- 'description' => '智能体详细',
- 'type' => 'object',
- ],
- ],
- ],
- ],
- ],
- ],
+ [
+ 'apiName' => 'ImageModeration',
+ 'description' => '图片审核增强版',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'yundun-greenweb:ImageModeration',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
- 'errorCodes' => [
- 403 => [
- [
- 'errorCode' => 'NoPermission',
- 'errorMessage' => 'You don\'t have permission.',
+ [
+ 'apiName' => 'DescribeMultimodalModerationResult',
+ 'description' => '查询异步多模态检测结果',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'yundun-greenweb:DescribeMultimodalModerationResult',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'MultimodalAsyncModeration',
+ 'description' => '多模态异步检测',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'yundun-greenweb:MultimodalAsyncModeration',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ [
+ 'apiName' => 'DescribeImageModerationResult',
+ 'description' => '查询图片异步检测结果',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'yundun-greenweb:DescribeImageModerationResult',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DescribeImageResultExt',
+ 'description' => '图片辅助信息获取接口',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'yundun-greenweb:DescribeImageResultExt',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'VoiceModerationCancel',
+ 'description' => '取消语音流审核任务',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'yundun-greenweb:VoiceModerationCancel',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'VoiceModeration',
+ 'description' => '语音审核增强版任务提交',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'yundun-greenweb:VoiceModeration',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DescribeUploadToken',
+ 'description' => '查询上传token',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'yundun-greenweb:DescribeUploadToken',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'MultiModalGuardAsync',
+ 'description' => 'AI安全护栏多模态异步检测接口',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'yundun-greenweb:MultiModalGuardAsync',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ImageBatchModeration',
+ 'description' => '图片多Service同步检测',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'yundun-greenweb:ImageBatchModeration',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'TextModeration',
+ 'description' => '文本审核增强版',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'yundun-greenweb:TextModeration',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DescribeFileModerationResult',
+ 'description' => '查询文档检测结果',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'yundun-greenweb:DescribeFileModerationResult',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'VoiceModerationResult',
+ 'description' => '查询语音审核结果',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'yundun-greenweb:VoiceModerationResult',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DescribeUrlModerationResult',
+ 'description' => '查询URL异步检测结果',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'yundun-greenweb:DescribeUrlModerationResult',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ManualModeration',
+ 'description' => '内容安全人审提交任务',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'yundun-greenweb:ManualModeration',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ManualModerationResult',
+ 'description' => '内容安全人审结果获取接口',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'yundun-greenweb:ManualModerationResult',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'MultiModalGuard',
+ 'description' => 'AI安全护栏多模态同步检测接口',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'yundun-greenweb:MultiModalGuard',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'TextModerationPlus',
+ 'description' => '文本审核Plus版',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'yundun-greenweb:TextModerationPlus',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'MultiModalAgent',
+ 'description' => '内容审核Agent',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'yundun-greenweb:MultiModalAgent',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'VideoModerationCancel',
+ 'description' => '取消视频直播审核任务',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'yundun-greenweb:VideoModerationCancel',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'VideoModeration',
+ 'description' => '视频审核增强版任务提交',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'yundun-greenweb:VideoModeration',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ManualCallback',
+ 'description' => '人审渠道回调接口',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'yundun-greenweb:ManualCallback',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'UrlAsyncModeration',
+ 'description' => 'URL风险异步检测',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'yundun-greenweb:UrlAsyncModeration',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Aligreen', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"SUCCESS\\",\\n \\"Data\\": {\\n \\"DataId\\": \\"26769ada6e264e7ba9aa048241e12be9\\",\\n \\"RiskLevel\\": \\"high\\",\\n \\"Result\\": [\\n {\\n \\"Label\\": \\"violent_explosion\\",\\n \\"Description\\": \\"未检测出风险\\",\\n \\"Reason\\": \\"TRACER_SLB_ALL_DEST_WEIGHT_0\\"\\n }\\n ],\\n \\"Usage\\": {\\n \\"PromptLength\\": 100,\\n \\"ContentLength\\": 10,\\n \\"AgentDetail\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n }\\n }\\n}","type":"json"}]',
- 'title' => '内容审核Agent',
- 'description' => '内容安全审核Agent。',
- ],
- ],
- 'endpoints' => [
- [
- 'regionId' => 'cn-shenzhen',
- 'endpoint' => 'green-cip.cn-shenzhen.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-beijing',
- 'endpoint' => 'green-cip.cn-beijing.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-shanghai',
- 'endpoint' => 'green-cip.cn-shanghai.aliyuncs.com',
- ],
- [
- 'regionId' => 'ap-southeast-1',
- 'endpoint' => 'green-cip.ap-southeast-1.aliyuncs.com',
],
+ 'resourceTypes' => [],
],
];