diff options
| author | Zhineng Li <[email protected]> | 2026-02-13 10:54:11 +0800 |
|---|---|---|
| committer | Zhineng Li <[email protected]> | 2026-02-13 10:54:11 +0800 |
| commit | 7347bac4ab7e136157fc94777e6cf87ef9e08599 (patch) | |
| tree | 0dec367dac6e152161a6f7cc0dba6ebbef1f34a2 /data/en_us/green/2022-03-02 | |
| download | acs-metadata-full-7347bac4ab7e136157fc94777e6cf87ef9e08599.tar.gz acs-metadata-full-7347bac4ab7e136157fc94777e6cf87ef9e08599.zip | |
first commitHEADv1.0.0+20260212main
Diffstat (limited to 'data/en_us/green/2022-03-02')
| -rw-r--r-- | data/en_us/green/2022-03-02/api-docs.php | 4674 |
1 files changed, 4674 insertions, 0 deletions
diff --git a/data/en_us/green/2022-03-02/api-docs.php b/data/en_us/green/2022-03-02/api-docs.php new file mode 100644 index 0000000..84dc68e --- /dev/null +++ b/data/en_us/green/2022-03-02/api-docs.php @@ -0,0 +1,4674 @@ +<?php return [ + 'version' => '1.0', + 'info' => [ + 'style' => 'RPC', + 'product' => 'Green', + 'version' => '2022-03-02', + ], + 'directories' => [ + 'TextModerationPlus', + 'TextModeration', + 'ImageModeration', + 'ImageAsyncModeration', + 'DescribeImageModerationResult', + 'VoiceModeration', + 'VoiceModerationResult', + 'VoiceModerationCancel', + 'VideoModeration', + 'VideoModerationResult', + 'VideoModerationCancel', + 'FileModeration', + 'DescribeFileModerationResult', + [ + 'id' => 188835, + 'title' => null, + 'type' => 'directory', + 'children' => [ + 'DescribeImageResultExt', + 'UrlAsyncModeration', + 'DescribeUrlModerationResult', + 'DescribeUploadToken', + 'ImageBatchModeration', + 'ManualCallback', + 'ManualModeration', + 'ManualModerationResult', + ], + ], + [ + 'id' => 0, + 'title' => '其它', + 'type' => 'directory', + 'children' => [ + 'MultiModalGuard', + 'MultiModalAgent', + ], + ], + ], + 'components' => [ + 'schemas' => [], + ], + 'apis' => [ + 'TextModerationPlus' => [ + 'summary' => 'Moderates the input command and generated text of large language models (LLMs). Specific model input commands can be used to retrieve standard answers. The feature of enabling and disabling the moderation labels is also available.', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'paid', + 'abilityTreeCode' => '207632', + 'abilityTreeNodes' => [ + 'FEATURElvwangXYAQ5C', + ], + ], + 'parameters' => [ + [ + 'name' => 'Service', + 'in' => 'formData', + 'schema' => [ + 'description' => 'The moderation service.'."\n" + ."\n" + .'Valid values:'."\n" + ."\n" + .'* chat_detection_pro: moderation of interactive content of private chats_Professional'."\n" + .'* llm_response_moderation: moderation of text generated by LLMs'."\n" + .'* llm_query_moderation: moderation of input text of LLMs'."\n" + .'* nickname_detection_pro: moderation of user nicknames_Professional'."\n" + .'* comment_detection_pro: moderation of comment content of public chats_Professional'."\n", + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [ + 'chat_detection_pro' => '', + 'llm_response_moderation' => '', + 'llm_query_moderation' => '', + 'nickname_detection_pro' => '', + 'comment_detection_pro' => '', + ], + 'example' => 'llm_query_moderation', + ], + ], + [ + 'name' => 'ServiceParameters', + 'in' => 'formData', + 'schema' => [ + 'description' => 'The parameters required by the moderation service. The value is a JSON string.'."\n", + 'type' => 'string', + 'required' => false, + 'example' => '{"content":"Content to be moderated"}'."\n", + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response'."\n", + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => 'Id of the request'."\n", + 'type' => 'string', + 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****', + ], + 'Code' => [ + 'description' => 'The returned HTTP status code. The status code 200 indicates that the request was successful.'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Message' => [ + 'description' => 'The message that is returned in response to the request.'."\n", + 'type' => 'string', + 'example' => 'OK', + ], + 'Data' => [ + 'description' => 'The moderation results.'."\n", + 'type' => 'object', + 'properties' => [ + 'Result' => [ + 'description' => 'The results.'."\n", + 'type' => 'array', + 'items' => [ + 'description' => 'The data returned.'."\n", + 'type' => 'object', + 'properties' => [ + 'Label' => [ + 'description' => 'The label.'."\n", + 'type' => 'string', + 'example' => 'porn', + ], + 'Confidence' => [ + 'description' => 'The score of the confidence level. Valid values: 0 to 100. The value is accurate to two decimal places.'."\n", + 'type' => 'number', + 'format' => 'float', + 'example' => '81.22', + ], + 'RiskWords' => [ + 'description' => 'The term hit by the moderated content.'."\n", + 'type' => 'string', + 'example' => 'XXX', + ], + 'CustomizedHit' => [ + 'description' => 'The custom term hit by the moderated content.'."\n", + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'LibName' => [ + 'description' => 'The library name.'."\n", + 'type' => 'string', + 'example' => 'test', + ], + 'KeyWords' => [ + 'description' => 'The terms that are hit. Multiple terms are separated by commas (,).'."\n", + 'type' => 'string', + 'example' => 'xxx', + ], + ], + ], + ], + 'Description' => [ + 'description' => 'The description of the label.', + 'type' => 'string', + 'example' => 'none', + ], + 'RiskPositions' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'RiskWord' => [ + 'type' => 'string', + ], + 'StartPos' => [ + 'type' => 'integer', + 'format' => 'int32', + ], + 'EndPos' => [ + 'type' => 'integer', + 'format' => 'int32', + ], + ], + ], + ], + ], + ], + ], + 'Advice' => [ + 'description' => 'The suggestion.'."\n", + 'type' => 'array', + 'items' => [ + 'description' => 'The answer content.'."\n", + 'type' => 'object', + 'properties' => [ + 'Answer' => [ + 'description' => 'The answer.'."\n", + 'type' => 'string', + 'example' => 'XXX', + ], + 'HitLabel' => [ + 'description' => 'Hit Label', + 'type' => 'string', + 'example' => 'xxx', + ], + 'HitLibName' => [ + 'description' => 'Hit Library Name', + 'type' => 'string', + 'example' => 'xxx', + ], + ], + ], + ], + 'Score' => [ + 'description' => 'The score.'."\n", + 'type' => 'number', + 'format' => 'float', + 'example' => '1', + ], + 'RiskLevel' => [ + 'description' => 'Risk Level', + 'type' => 'string', + 'example' => 'high', + ], + 'DataId' => [ + 'description' => 'The id of data', + 'type' => 'string', + 'example' => 'text1234', + ], + 'SensitiveResult' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Label' => [ + 'type' => 'string', + 'description' => 'The label', + 'example' => '1234', + ], + 'SensitiveLevel' => [ + 'type' => 'string', + 'description' => 'The level of sensitivity data', + 'example' => 'S1'."\n", + ], + 'SensitiveData' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'string', + 'description' => 'The sensitive data.'."\n", + 'example' => 'xxx', + ], + 'description' => 'The sensitive data.'."\n", + ], + 'Description' => [ + 'type' => 'string', + 'description' => 'Description'."\n", + 'example' => 'xxx', + ], + ], + 'description' => 'The result of sensitivity data detect', + ], + 'description' => 'The result of sensitivity data detect', + ], + 'AttackResult' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Label' => [ + 'type' => 'string', + 'description' => 'The label', + 'example' => 'safe', + ], + 'Confidence' => [ + 'type' => 'number', + 'format' => 'float', + 'description' => 'The confidence', + 'example' => '0', + ], + 'AttackLevel' => [ + 'type' => 'string', + 'description' => 'The level of prompt attack', + 'example' => 'none', + ], + 'Description' => [ + 'type' => 'string', + 'description' => 'Description', + 'example' => 'safe', + ], + ], + 'description' => 'The result of prompt attack detect', + ], + 'description' => 'The result of prompt attack detect', + ], + 'SensitiveLevel' => [ + 'type' => 'string', + 'description' => 'The level of sensitivity data', + 'example' => 'S0', + ], + 'AttackLevel' => [ + 'type' => 'string', + 'description' => 'The level of prompt attack', + 'example' => 'none', + ], + 'ManualTaskId' => [ + 'type' => 'string', + ], + 'DetectedLanguage' => [ + 'type' => 'string', + ], + 'TranslatedContent' => [ + 'type' => 'string', + ], + 'AccountId' => [ + 'type' => 'string', + ], + 'Ext' => [ + 'type' => 'object', + 'properties' => [ + 'LlmContent' => [ + 'type' => 'object', + 'properties' => [ + 'OutputText' => [ + 'type' => 'string', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + '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' => 'TextModerationPlus', + 'description' => 'Before you call this operation, make sure that you have [activated the Content Moderation 2.0 service](https://common-buy.aliyun.com/?commodityCode=lvwang_cip_public_cn) and are familiar with the [billing](https://help.aliyun.com/document_detail/2671445.html?#section-6od-32j-99n) of the Text Moderation 2.0 Plus service.'."\n", + ], + 'TextModeration' => [ + 'summary' => 'Provides moderation services for multiple business scenarios and identifies various violation risks.', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'paid', + 'abilityTreeCode' => '128601', + 'abilityTreeNodes' => [ + 'FEATURElvwang8G4HBD', + ], + ], + 'parameters' => [ + [ + 'name' => 'Service', + 'in' => 'formData', + 'schema' => [ + 'description' => 'The type of the moderation service. Valid values: nickname_detection: user nickname chat_detection: chat interactions comment_detection: dynamic comments pgc_detection: professionally-generated content (PGC) teaching materials'."\n" + ."\n" + .'Valid values:'."\n" + ."\n" + .'* pgc_detection: moderation of PGC teaching materials'."\n" + .'* nickname_detection: user nickname moderation'."\n" + .'* comment_multilingual_pro: multi-language moderation in international business scenarios'."\n" + .'* chat_detection: moderation of interactive content of private chats'."\n" + .'* ad_compliance_detection: advertising law compliance identification'."\n" + .'* comment_detection: moderation of comment content of public chats'."\n" + .'* ai_art_detection: AI-generated text identfication'."\n", + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'enumValueTitles' => [ + 'pgc_detection' => 'pgc_detection', + 'nickname_detection' => 'nickname_detection', + 'comment_multilingual_pro' => 'comment_multilingual_pro', + 'chat_detection' => 'chat_detection', + 'ad_compliance_detection' => 'ad_compliance_detection', + 'comment_detection' => 'comment_detection', + 'ai_art_detection' => 'ai_art_detection', + ], + 'example' => 'nickname_detection', + ], + ], + [ + 'name' => 'ServiceParameters', + 'in' => 'formData', + 'schema' => [ + 'description' => 'The parameters required by the moderation service. The value is a JSON string.'."\n", + 'type' => 'string', + 'required' => false, + 'example' => '{"content":"Content to be moderated"}'."\n", + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'The response parameters.'."\n", + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => 'The request ID.'."\n", + 'type' => 'string', + 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****', + ], + 'Code' => [ + 'description' => 'The returned HTTP status code.'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Message' => [ + 'description' => 'The message that is returned in response to the request.'."\n", + 'type' => 'string', + 'example' => 'OK', + ], + 'Data' => [ + 'description' => 'The moderation results.'."\n", + 'type' => 'object', + 'properties' => [ + 'labels' => [ + 'description' => 'The labels. Multiple labels are separated by commas (,). Valid values: ad: ad violation profanity: abuse contraband: contraband sexual_content: pornography violence: violence nonsense: irrigation spam: spam negative_content: undesirable content cyberbullying: cyberbullying C_customized: custom library that is hit'."\n", + 'type' => 'string', + 'example' => 'porn', + ], + 'reason' => [ + 'description' => 'The JSON string used to locate the cause. Valid values: riskTips: subcategory label riskWords: risk words adNums: hit advertising number customizedWords: customized words customizedLibs: customized libraries'."\n", + 'type' => 'string', + 'example' => '{\\"detectedLanguage\\":\\"ar\\",\\"riskTips\\":\\"sexuality_Suggestive\\",\\"riskWords\\":\\"pxxxxy\\",\\"translatedContent\\":\\"pxxxxy sxxxx\\"}', + ], + 'accountId' => [ + 'description' => 'The ID of the Alibaba Cloud account.'."\n", + 'type' => 'string', + 'example' => '123456', + ], + 'deviceId' => [ + 'description' => 'The device ID.'."\n", + 'type' => 'string', + 'example' => 'xxxxxx', + ], + 'dataId' => [ + 'description' => 'The ID of the moderated object.', + 'type' => 'string', + 'example' => 'text1234', + ], + 'descriptions' => [ + 'description' => 'The description of the labels.', + 'type' => 'string', + 'example' => 'no risk', + ], + 'manualTaskId' => [ + 'type' => 'string', + ], + 'ext' => [ + 'type' => 'object', + 'properties' => [ + 'llmContent' => [ + 'type' => 'object', + 'properties' => [ + 'outputText' => [ + 'type' => 'string', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + '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' => 'TextModeration', + 'description' => 'Before you call this operation, make sure that you are familiar with the [billing](https://help.aliyun.com/document_detail/464388.html?#section-itm-m2s-ugq) of Text Moderation 2.0.'."\n", + ], + 'ImageModeration' => [ + 'summary' => 'Identifies whether an image contains content or elements that violate relevant regulations on network content dissemination, affect the content order of a specific platform, or affect user experience. Image Moderation 2.0 supports over 90 content risk labels and over 100 risk control items. Image Moderation 2.0 of Content Moderation allows you to develop further moderation or governance measures for specific image content based on business scenarios, platform-specific content governance rules, or rich risk labels and scores of confidence levels returned by API calls.', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'paid', + 'abilityTreeCode' => '142557', + 'abilityTreeNodes' => [ + 'FEATURElvwang78REFZ', + ], + ], + 'parameters' => [ + [ + 'name' => 'Service', + 'in' => 'formData', + 'schema' => [ + 'description' => 'The moderation services supported by Image Moderation 2.0. Valid values:'."\n" + ."\n" + .'* baselineCheck: common baseline moderation'."\n" + .'* baselineCheck_pro: common baseline moderation_Professional'."\n" + .'* baselineCheck_cb: common baseline moderation_For regions outside the Chinese mainland'."\n" + .'* tonalityImprove: content governance moderation'."\n" + .'* aigcCheck: AI-generated image identification'."\n" + .'* profilePhotoCheck: avatar image moderation'."\n" + .'* advertisingCheck: marketing material identification'."\n" + .'* liveStreamCheck: moderation of screenshots of videos and live streams'."\n" + ."\n" + .'Valid values:'."\n" + ."\n" + .'* liveStreamCheck: moderation of screenshots of videos and live streams'."\n" + .'* baselineCheck: common baseline moderation'."\n" + .'* aigcCheck: AI-generated image identification'."\n" + .'* baselineCheck_pro: common baseline moderation_Professional'."\n" + .'* advertisingCheck: marketing material identification'."\n" + .'* baselineCheck_cb: common baseline moderation_For regions outside the Chinese mainland'."\n" + .'* tonalityImprove: content governance moderation'."\n" + .'* profilePhotoCheck: avatar image moderation'."\n", + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [ + 'liveStreamCheck' => 'liveStreamCheck', + 'generalOcr' => '', + 'postImageCheck' => '', + 'baselineCheck_pro' => 'baselineCheck_pro', + 'advertisingCheck' => 'advertisingCheck', + 'baselineCheck_cb' => 'baselineCheck_cb', + 'tonalityImprove' => 'tonalityImprove', + 'profilePhotoCheck' => 'profilePhotoCheck', + 'baselineCheck' => 'baselineCheck', + 'generalRecognition' => '', + 'aigcCheck' => 'aigcCheck', + 'aigcViolationDetection' => '', + 'aigcDetector' => '', + ], + 'example' => 'baselineCheck', + ], + ], + [ + 'name' => 'ServiceParameters', + 'in' => 'formData', + 'schema' => [ + 'description' => 'The parameters required by the moderation service. The value is a JSON string.'."\n" + ."\n" + .'* imageUrl: the URL of the object that you want to moderate. This parameter is required.'."\n" + .'* dataId: the ID of the object that you want to moderate. This parameter is optional.'."\n", + 'type' => 'string', + 'required' => false, + 'example' => '{"imageUrl":"https://www.aliyun.com/test.jpg","dataId":"img1234567"}', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => 'The response parameters.'."\n", + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => 'The request ID, which is used to locate and troubleshoot issues.'."\n", + 'type' => 'string', + 'example' => '6CF2815C-C8C7-4A01-B52E-FF6E24F53492', + ], + 'Code' => [ + 'description' => 'The returned HTTP status code. The status code 200 indicates that the request was successful.'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Msg' => [ + 'description' => 'The message that is returned in response to the request.'."\n", + 'type' => 'string', + 'example' => 'OK', + ], + 'Data' => [ + 'description' => 'The moderation results.'."\n", + 'type' => 'object', + 'properties' => [ + 'DataId' => [ + 'description' => 'The ID of the moderated object.'."\n" + ."\n" + .'> If you specify the dataId parameter in the request, the value of the dataId parameter is returned in the response.'."\n", + 'type' => 'string', + 'example' => 'fb5ffab1-993b-449f-b8d6-b97d5e3331f2', + ], + 'Result' => [ + 'description' => 'The results of image moderation parameters such as the label parameter and the confidence parameter, which are an array structure.'."\n", + 'type' => 'array', + 'items' => [ + 'description' => 'The data that is returned.'."\n", + 'type' => 'object', + 'properties' => [ + 'Label' => [ + 'description' => 'The labels returned after the image moderation. Multiple risk labels and the corresponding scores of confidence levels may be returned for an image.'."\n", + 'type' => 'string', + 'example' => 'violent_explosion', + ], + 'Confidence' => [ + 'description' => 'The score of the confidence level. Valid values: 0 to 100. The value is accurate to two decimal places. Some labels do not have scores of confidence levels.'."\n", + 'type' => 'number', + 'format' => 'float', + 'example' => '81.22', + ], + 'Description' => [ + 'description' => 'The description of the result.', + 'type' => 'string', + 'example' => 'no risk', + ], + 'RiskLevel' => [ + 'description' => 'Risk Level', + 'type' => 'string', + 'example' => 'high', + ], + ], + ], + ], + 'Ext' => [ + 'description' => 'Auxiliary reference information.', + 'type' => 'object', + 'properties' => [ + 'Recognition' => [ + 'description' => 'The result of image recognition.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Classification' => [ + 'description' => 'The category of image recognition.', + 'type' => 'string', + 'example' => 'xx', + ], + 'Confidence' => [ + 'description' => 'The score of the confidence level. Valid values: 0 to 100. The value is accurate to two decimal places. Some labels do not have scores of confidence levels.', + 'type' => 'number', + 'format' => 'float', + 'example' => '99.01', + ], + ], + ], + ], + 'OcrResult' => [ + 'description' => 'Returns the text information in the recognized image.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Text' => [ + 'description' => 'The text information in the recognized image.', + 'type' => 'string', + 'example' => 'xx', + ], + 'Location' => [ + 'description' => 'Location information.', + 'type' => 'object', + 'properties' => [ + 'X' => [ + 'description' => 'The distance between the upper-left corner of the text area and the y-axis, using the upper-left corner of the image as the coordinate origin, in pixels.', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '11', + ], + 'Y' => [ + 'description' => 'The distance between the upper left corner of the text area and the x-axis, with the upper left corner of the image as the coordinate origin, in pixels.', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '22', + ], + 'W' => [ + 'description' => 'The width of the text area, in pixels.', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '33', + ], + 'H' => [ + 'description' => 'The height of the text area, in pixels.', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '44', + ], + ], + ], + ], + ], + ], + 'TextInImage' => [ + 'description' => 'Returns the text information in the hit image.', + 'type' => 'object', + 'properties' => [ + 'OcrResult' => [ + 'description' => 'Returns the text information in the recognized image.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Text' => [ + 'description' => 'The text information in the recognized image.', + 'type' => 'string', + 'example' => 'xx', + ], + 'Location' => [ + 'description' => 'Location information.', + 'type' => 'object', + 'properties' => [ + 'X' => [ + 'description' => 'The distance between the upper-left corner of the text area and the y-axis, using the upper-left corner of the image as the coordinate origin, in pixels.', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '11', + ], + 'Y' => [ + 'description' => 'The distance between the upper left corner of the text area and the x-axis, with the upper left corner of the image as the coordinate origin, in pixels.', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '22', + ], + 'H' => [ + 'description' => 'The height of the text area, in pixels.', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '33', + ], + 'W' => [ + 'description' => 'The width of the text area, in pixels.', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '44', + ], + ], + ], + ], + ], + ], + 'RiskWord' => [ + 'description' => 'The risk words that are hit. Multiple words are separated by commas (,).', + 'type' => 'array', + 'items' => [ + 'description' => 'The risk words that are hit. Multiple words are separated by commas (,).', + 'type' => 'string', + 'example' => 'abcd', + ], + ], + 'CustomText' => [ + 'description' => 'When a custom text library is hit, the custom library ID, custom library name, and custom word are returned.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'LibId' => [ + 'description' => 'Custom library ID.', + 'type' => 'string', + 'example' => '123456', + ], + 'LibName' => [ + 'description' => 'Custom library name.', + 'type' => 'string', + 'example' => 'xxxx', + ], + 'KeyWords' => [ + 'description' => 'Custom words, multiple words separated by commas.', + 'type' => 'string', + 'example' => 'aaa,bbb'."\n", + ], + ], + ], + ], + ], + ], + 'CustomImage' => [ + 'description' => 'If a custom image library is hit, information about the hit custom image library is returned.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'LibId' => [ + 'description' => 'The image library ID.', + 'type' => 'string', + 'example' => 'lib_123456', + ], + 'ImageId' => [ + 'description' => 'The image ID.', + 'type' => 'string', + 'example' => '123456', + ], + 'LibName' => [ + 'description' => 'The image library name.', + 'type' => 'string', + 'example' => 'xx', + ], + ], + ], + ], + 'PublicFigure' => [ + 'description' => 'Person information list.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'FigureName' => [ + 'description' => 'Identified person name information.', + 'type' => 'string', + 'example' => 'xx', + ], + 'FigureId' => [ + 'description' => 'Identified person coding information.', + 'type' => 'string', + 'example' => 'xx', + ], + 'Location' => [ + 'description' => 'the data array of location info', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'X' => [ + 'description' => 'X coordinate', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '11', + ], + 'Y' => [ + 'description' => 'Y coordinate', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '22', + ], + 'W' => [ + 'description' => 'The weight', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '33', + ], + 'H' => [ + 'description' => 'The height', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '44', + ], + ], + 'description' => 'the data of location info', + ], + ], + ], + ], + ], + 'LogoData' => [ + 'description' => 'Logo information.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Location' => [ + 'description' => 'Location information.', + 'type' => 'object', + 'properties' => [ + 'X' => [ + 'description' => 'The distance between the upper-left corner of the text area and the y-axis, using the upper-left corner of the image as the coordinate origin, in pixels.', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '11', + ], + 'Y' => [ + 'description' => 'The distance between the upper left corner of the text area and the x-axis, with the upper left corner of the image as the coordinate origin, in pixels.', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '22', + ], + 'W' => [ + 'description' => 'The width of the text area, in pixels.', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '33', + ], + 'H' => [ + 'description' => 'The height of the text area, in pixels.', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '44', + ], + ], + ], + 'Logo' => [ + 'description' => 'Logo information.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Label' => [ + 'description' => 'Logo category.', + 'type' => 'string', + 'example' => 'xx', + ], + 'Name' => [ + 'description' => 'Logo name.', + 'type' => 'string', + 'example' => 'xx', + ], + 'Confidence' => [ + 'description' => 'The score of the confidence level. Valid values: 0 to 100. The value is accurate to two decimal places. Some labels do not have scores of confidence levels.', + 'type' => 'number', + 'format' => 'float', + 'example' => '99.01', + ], + ], + ], + ], + ], + ], + ], + 'FaceData' => [ + 'description' => 'The returned face attribute information', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Age' => [ + 'description' => 'The age recognition result.', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '18', + ], + 'Bang' => [ + 'description' => 'Indicates whether the recognition result of bangs is available.', + 'type' => 'object', + 'properties' => [ + 'Value' => [ + 'description' => 'Indicates whether the recognition result of bangs is available.', + 'type' => 'string', + 'example' => 'Has', + ], + 'Confidence' => [ + 'description' => 'The confidence level of the bang recognition result. Valid values: 0 to 100. A higher value indicates a more credible result.', + 'type' => 'number', + 'format' => 'float', + 'example' => '81.88'."\n", + ], + ], + ], + 'Gender' => [ + 'description' => 'The gender recognition result.', + 'type' => 'object', + 'properties' => [ + 'Value' => [ + 'description' => 'The gender recognition result. Valid values:'."\n" + ."\n" + .'- Male'."\n" + ."\n" + .'- FeMale', + 'type' => 'string', + 'example' => 'FeMale', + ], + 'Confidence' => [ + 'description' => 'The confidence level of the gender recognition result. Valid values: 0 to 100. A higher value indicates a more credible result.', + 'type' => 'number', + 'format' => 'float', + 'example' => '81.88', + ], + ], + ], + 'Glasses' => [ + 'description' => 'The recognition result of whether to wear glasses.'."\n" + ."\n" + .'- None: No glasses.'."\n" + ."\n" + .'- Wear: Wear glasses.'."\n" + ."\n" + .'- Sunglass: Wear sunglasses.', + 'type' => 'string', + 'example' => 'Common', + ], + 'Hairstyle' => [ + 'description' => 'The hairstyle recognition result.', + 'type' => 'object', + 'properties' => [ + 'Value' => [ + 'description' => 'The hairstyle recognition result. Valid values:'."\n" + ."\n" + .'- Bald: bald head.'."\n" + ."\n" + .'- Long: Long hair.'."\n" + ."\n" + .'- Short: Short hair.', + 'type' => 'string', + 'example' => 'Short', + ], + 'Confidence' => [ + 'description' => 'The confidence level of the hairstyle recognition result. Valid values: 0 to 100. A higher value indicates a more credible result.', + 'type' => 'number', + 'format' => 'float', + 'example' => '81.88'."\n" + ."\n", + ], + ], + ], + 'Hat' => [ + 'description' => 'The recognition result of whether to wear a hat.', + 'type' => 'object', + 'properties' => [ + 'Value' => [ + 'description' => 'The recognition result of whether to wear the hat. Valid values:'."\n" + ."\n" + .'- Wear: Wear a hat.'."\n" + ."\n" + .'- None: No hat.', + 'type' => 'string', + 'example' => 'Wear', + ], + 'Confidence' => [ + 'description' => 'The confidence level of the result of wearing the hat. Valid values: 0 to 100. A higher value indicates a more credible result.', + 'type' => 'number', + 'format' => 'float', + 'example' => '88.88'."\n" + ."\n", + ], + ], + ], + 'Location' => [ + 'description' => 'The location of the face.', + 'type' => 'object', + 'properties' => [ + 'X' => [ + 'description' => 'The distance from the upper-left corner of the face area to the y-axis with the upper-left corner of the image as the coordinate origin. Unit: pixels.', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '41'."\n" + ."\n", + ], + 'Y' => [ + 'description' => 'The distance from the upper-left corner of the face area to the x-axis with the upper-left corner of the image as the coordinate origin. Unit: pixels.', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '84', + ], + 'W' => [ + 'description' => 'The width of the face area. Unit: pixels.', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '83', + ], + 'H' => [ + 'description' => 'The height of the face area. Unit: pixels.', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '26', + ], + ], + ], + 'Mask' => [ + 'description' => 'The recognition result of whether to wear a mask.', + 'type' => 'object', + 'properties' => [ + 'Value' => [ + 'description' => 'The recognition result of whether to wear a mask. Valid values:'."\n" + ."\n" + .'- Wear a mask.'."\n" + ."\n" + .' - None: No mask.', + 'type' => 'string', + 'example' => 'Wear', + ], + 'Confidence' => [ + 'description' => 'The confidence level of the result of wearing the mask. Valid values: 0 to 100. A higher value indicates a more credible result.', + 'type' => 'number', + 'format' => 'float', + 'example' => '99.99', + ], + ], + ], + 'Mustache' => [ + 'description' => 'The identification result of whether there is a beard.', + 'type' => 'object', + 'properties' => [ + 'Value' => [ + 'description' => 'The identification result of whether there is a beard.Valid values:'."\n" + ."\n" + .'- Has:have a beard.'."\n" + ."\n" + .'- None:No beard.', + 'type' => 'string', + 'example' => 'Has', + ], + 'Confidence' => [ + 'description' => 'The confidence level of the result of the beard. Valid values: 0 to 100. A higher value indicates a more credible result.', + 'type' => 'number', + 'format' => 'float', + 'example' => '99.99', + ], + ], + ], + 'Quality' => [ + 'description' => 'The quality information of the face image.', + 'type' => 'object', + 'properties' => [ + 'Blur' => [ + 'description' => 'The blur of the face image. Valid values: 0 to 100. The higher the score, the more fuzzy it is.'."\n" + .'Recommended values: 0 to 25.', + 'type' => 'number', + 'format' => 'float', + 'example' => '5.88'."\n" + ."\n", + ], + 'Integrity' => [ + 'description' => 'The integrity of the human face. Recommended values:80 to 100.', + 'type' => 'number', + 'format' => 'float', + 'example' => '100.0', + ], + 'Pitch' => [ + 'description' => 'The head-up or head-down angle of the face.'."\n" + .'Recommended values:-30 to 30.', + 'type' => 'number', + 'format' => 'float', + 'example' => '5.88', + ], + 'Roll' => [ + 'description' => 'The plane rotation angle of the face.'."\n" + .'Recommended values:-30 to 30.', + 'type' => 'number', + 'format' => 'float', + 'example' => '5.18', + ], + 'Yaw' => [ + 'description' => 'The left and right shaking angle of the human face.'."\n" + .'Recommended values:-30 to 30.', + 'type' => 'number', + 'format' => 'float', + 'example' => '5.18', + ], + ], + ], + 'Smile' => [ + 'description' => 'The smiling degree of the face.', + 'type' => 'number', + 'format' => 'float', + 'example' => '85.88'."\n" + ."\n", + ], + ], + ], + ], + 'VlContent' => [ + 'description' => 'the vl output content', + 'type' => 'object', + 'properties' => [ + 'OutputText' => [ + 'description' => 'the vl output content', + 'type' => 'string', + 'example' => 'this is a cat', + ], + ], + ], + 'AigcData' => [ + 'type' => 'object', + 'properties' => [ + 'AIGC' => [ + 'type' => 'object', + 'properties' => [ + 'Label' => [ + 'type' => 'string', + ], + 'ContentProducer' => [ + 'type' => 'string', + ], + 'ProduceID' => [ + 'type' => 'string', + ], + 'ReservedCode1' => [ + 'type' => 'string', + ], + 'ContentPropagator' => [ + 'type' => 'string', + ], + 'PropagateID' => [ + 'type' => 'string', + ], + 'ReservedCode2' => [ + 'type' => 'string', + ], + ], + ], + ], + ], + ], + ], + 'RiskLevel' => [ + 'description' => 'Risk Level.', + 'type' => 'string', + 'example' => 'high', + ], + 'ManualTaskId' => [ + 'type' => 'string', + ], + 'AccountId' => [ + 'type' => 'string', + ], + ], + ], + ], + ], + ], + ], + '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' => 'ImageModeration', + 'description' => '**Before you call this operation, make sure that you are familiar with the [billing](~~467826~~)[](https://www.aliyun.com/price/product?#/lvwang/detail/cdibag) of Image Moderation 2.0.'."\n", + 'requestParamsDescription' => 'Sample request:'."\n" + ."\n" + .'```JSON'."\n" + .'{'."\n" + .' "service": "baselineCheck",'."\n" + .' "serviceParameters": '."\n" + .' {'."\n" + .' "imageUrl": "https://img.alicdn.com/tfs/TB1U4r9AeH2gK0jSZJnXXaT1FXa-2880-480.png",'."\n" + .' "dataId": "img1234567"'."\n" + .' }'."\n" + .'}'."\n" + .'```'."\n", + 'responseParamsDescription' => 'Sample response parameters'."\n" + ."\n" + .' {'."\n" + .' "Msg": "OK",'."\n" + .' "Code": 200,'."\n" + .' "Data": {'."\n" + .' "dataId": "img1234567",'."\n" + .' "result": ['."\n" + .' {'."\n" + .' "label": "pornographic_adultContent",'."\n" + .' "confidence": 81'."\n" + .' },'."\n" + .' {'."\n" + .' "label": "sexual_partialNudity",'."\n" + .' "confidence": 98'."\n" + .' },'."\n" + .' {'."\n" + .' "label": "violent_explosion",'."\n" + .' "confidence": 70'."\n" + .' },'."\n" + .' {'."\n" + .' "label": "violent_explosion_lib",'."\n" + .' "confidence": 81'."\n" + .' }'."\n" + .' ]'."\n" + .' },'."\n" + .' "RequestId": "ABCD1234-1234-1234-1234-1234XYZ"'."\n" + .' }'."\n", + ], + 'ImageAsyncModeration' => [ + 'summary' => 'Moderates images in asynchronous mode. An asynchronous image moderation task does not return the moderation results in real time. To obtain moderation results, you can poll the moderation results periodically or enable callback notification. The moderation results are retained for a maximum of 3 days.', + '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' => 'The type of the moderation service.', + 'type' => 'string', + 'required' => false, + 'example' => 'baselineCheck', + ], + ], + [ + 'name' => 'ServiceParameters', + 'in' => 'query', + 'schema' => [ + 'description' => 'The parameters required by the moderation service. The value is a JSON string.', + 'type' => 'string', + 'required' => false, + 'example' => '{"imageUrl":"https://img.alicdn.com/tfs/TB1U4r9AeH2gK0jSZJnXXaT1FXa-2880-480.png","dataId":"img123****"}', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => 'The request ID.', + 'type' => 'string', + 'example' => '4A926AE2-4C96-573F-824F-0532960799F8', + ], + 'Code' => [ + 'description' => 'The returned HTTP status code.', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Msg' => [ + 'description' => 'The message that is returned in response to the request.', + 'type' => 'string', + 'example' => 'success', + ], + 'Data' => [ + 'description' => 'The data returned.', + 'type' => 'object', + 'properties' => [ + 'ReqId' => [ + 'description' => 'The reqId field returned by the Image Async Moderation API. You can use this field to query the detection results.', + 'type' => 'string', + 'example' => 'A07B3DB9-D762-5C56-95B1-8EC55CF176D2', + ], + 'DataId' => [ + 'description' => 'The ID of the moderated object.', + 'type' => 'string', + 'example' => 'fb5ffab1-993b-449f-b8d6-b97d5e3331f2', + ], + ], + ], + ], + ], + ], + ], + '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' => 'ImageAsyncModeration', + ], + 'DescribeImageModerationResult' => [ + 'summary' => 'Obtains the moderation results of an Image Moderation 2.0 task.', + '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' => 'The ReqId field returned by the asynchronous Image Moderation 2.0 API.'."\n", + 'type' => 'string', + 'required' => false, + 'example' => 'B0963D30-BAB4-562F-9ED0-7A23AEC51C7C', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response'."\n", + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => 'The request ID, which is used to locate and troubleshoot issues.'."\n", + 'type' => 'string', + 'example' => '2881AD4F-638B-52A3-BA20-F74C5B1CEAE3', + ], + 'Code' => [ + 'description' => 'The returned HTTP status code.'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Msg' => [ + 'description' => 'The message that is returned in response to the request.'."\n", + 'type' => 'string', + 'example' => 'success', + ], + 'Data' => [ + 'description' => 'The image moderation results.'."\n", + 'type' => 'object', + 'properties' => [ + 'DataId' => [ + 'description' => 'The value of dataId that is specified in the API request. If this parameter is not specified in the API request, this field is not available in the response.'."\n", + 'type' => 'string', + 'example' => '2a5389eb-4ff8-4584-ac99-644e2a539aa1', + ], + 'Result' => [ + 'description' => 'The results of image moderation parameters such as the label parameter and the confidence parameter.'."\n", + 'type' => 'array', + 'items' => [ + 'description' => 'The data returned.'."\n", + 'type' => 'object', + 'properties' => [ + 'Label' => [ + 'description' => 'The labels returned after the image moderation.'."\n", + 'type' => 'string', + 'example' => 'violent_explosion', + ], + 'Confidence' => [ + 'description' => 'The score of the confidence level. Valid values: 0 to 100. The value is accurate to two decimal places.'."\n", + 'type' => 'number', + 'format' => 'float', + 'example' => '81.22', + ], + 'Description' => [ + 'description' => 'The description of the result.', + 'type' => 'string', + 'example' => 'no risk', + ], + 'RiskLevel' => [ + 'description' => 'Risk Level', + 'type' => 'string', + 'example' => 'high', + ], + ], + ], + ], + 'FrameNum' => [ + 'description' => 'The number of frames.'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'Frame' => [ + 'description' => 'The information about the captured frames.'."\n", + 'type' => 'string', + 'example' => '[{"result":[{"confidence":81.22,"label":"violent_explosion"}]}]', + ], + 'ReqId' => [ + 'description' => 'The reqId field returned by the Image Async Moderation API.', + 'type' => 'string', + 'example' => 'B0963D30-BAB4-562F-9ED0-7A23AEC51C7C'."\n", + ], + 'RiskLevel' => [ + 'description' => 'Risk Level.', + 'type' => 'string', + 'example' => 'high', + ], + 'ManualTaskId' => [ + 'type' => 'string', + ], + 'AccountId' => [ + 'type' => 'string', + ], + ], + ], + ], + ], + ], + ], + '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' => 'DescribeImageModerationResult', + 'description' => '* Billing: This operation is free of charge.'."\n" + .'* QPS limit: You can call this operation up to 100 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.'."\n", + 'responseParamsDescription' => 'The following table describes the response codes. You are charged by using the pay-as-you-go billing method only for requests whose response code is 200.'."\n" + ."\n" + .'|**Code**|**Description**|'."\n" + .'|---|---|'."\n" + .'|200|The request is successful.|'."\n" + .'|280|The moderation is in progress.|'."\n" + .'|400|Not all request parameters are configured.|'."\n" + .'|401|The values specified for one or more request parameters are invalid.|'."\n" + .'|402|Invalid request parameters. Check and modify them and try again.|'."\n" + .'|403|The QPS of requests exceeds the upper limit. Check and modify the number of requests that are sent at a time.|'."\n" + .'|404|The specified image failed to be downloaded. Check the URL of the image or try again.|'."\n" + .'|405|Downloading the specified image timed out. The possible cause is that the image cannot be accessed. Check and adjust the image and try again.|'."\n" + .'|406|The specified image is excessively large. Check and change the image size and try again.|'."\n" + .'|407|The format of the specified image is not supported. Check and change the image format and try again.|'."\n" + .'|408|You do not have the required permissions. The possible cause is that this account is not activated, has overdue payments, or is not authorized to call this API.|'."\n" + .'|409|The specified request ID does not exist. The possible cause is that the query is performed too fast or the moderation results have exceeded the 30-day validity period.|'."\n" + .'|500|A system exception occurred.|', + ], + 'VoiceModeration' => [ + 'summary' => 'Submits a Voice Moderation 2.0 task.', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'paid', + 'abilityTreeCode' => '162159', + 'abilityTreeNodes' => [ + 'FEATURElvwang6QCU1H', + 'FEATURElvwangPAXR7J', + ], + ], + 'parameters' => [ + [ + 'name' => 'Service', + 'in' => 'formData', + 'schema' => [ + 'description' => 'The type of the moderation service.', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'nickname_detection', + ], + ], + [ + 'name' => 'ServiceParameters', + 'in' => 'formData', + 'schema' => [ + 'description' => 'The parameters required by the moderation service. The value is a JSON string.', + 'type' => 'string', + 'required' => false, + 'example' => '{"url": "http://aliyundoc.com/test.flv", "dataId": "data1234"}', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => 'The request ID.', + 'type' => 'string', + 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****', + ], + 'Code' => [ + 'description' => 'The returned HTTP status code.', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Message' => [ + 'description' => 'The message that is returned in response to the request.', + 'type' => 'string', + 'example' => 'SUCCESS', + ], + 'Data' => [ + 'description' => 'The data returned.'."\n", + 'type' => 'object', + 'properties' => [ + 'TaskId' => [ + 'description' => 'The task ID.'."\n", + 'type' => 'string', + 'example' => 'xxxxx-xxxxx', + ], + 'DataId' => [ + 'description' => 'The ID of the moderated object.', + 'type' => 'string', + 'example' => 'data1234', + ], + ], + ], + ], + ], + ], + ], + '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' => 'VoiceModeration', + ], + 'VoiceModerationResult' => [ + 'summary' => 'Obtains the moderation results of a Voice Moderation 2.0 task.', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '162180', + 'abilityTreeNodes' => [ + 'FEATURElvwang6QCU1H', + 'FEATURElvwangPAXR7J', + ], + ], + 'parameters' => [ + [ + 'name' => 'Service', + 'in' => 'formData', + 'schema' => [ + 'description' => 'The type of the moderation service. Valid values: nickname_detection: user nickname'."\n", + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'nickname_detection', + ], + ], + [ + 'name' => 'ServiceParameters', + 'in' => 'formData', + 'schema' => [ + 'description' => 'The parameters of API requests that are sent from API Gateway to the backend service.'."\n" + ."\n" + .'For more information, see [ServiceParameter](~~43988~~).'."\n", + 'type' => 'string', + 'required' => false, + 'example' => '{"taskId":"xxxxx-xxxx"}', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response'."\n", + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => 'Id of the request'."\n", + 'type' => 'string', + 'example' => '2881AD4F-638B-52A3-BA20-F74C5B1CEAE3', + ], + 'Code' => [ + 'description' => 'The returned HTTP status code.'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Message' => [ + 'description' => 'The message that is returned in response to the request.'."\n", + 'type' => 'string', + 'example' => 'SUCCESS', + ], + 'Data' => [ + 'description' => 'The data returned.'."\n", + 'type' => 'object', + 'properties' => [ + 'Url' => [ + 'description' => 'The URL of the moderated content.'."\n", + 'type' => 'string', + 'example' => 'https://aliyundoc.com'."\n" + ."\n", + ], + 'LiveId' => [ + 'description' => 'The unique ID of the live stream.'."\n", + 'type' => 'string', + 'example' => 'liveId', + ], + 'TaskId' => [ + 'description' => 'The task ID.'."\n", + 'type' => 'string', + 'example' => 'kw24ihd0WGkdi5nniVZM@qOj-1x5Ibb', + ], + 'SliceDetails' => [ + 'description' => 'The moderation results of audio segments.'."\n", + 'type' => 'array', + 'items' => [ + 'description' => 'The moderation results of the audio segment.'."\n", + 'type' => 'object', + 'properties' => [ + 'StartTime' => [ + 'description' => 'The start time of the audio segment in seconds.'."\n", + 'type' => 'integer', + 'format' => 'int64', + 'example' => '0', + ], + 'EndTime' => [ + 'description' => 'The end time of the audio segment in seconds.'."\n", + 'type' => 'integer', + 'format' => 'int64', + 'example' => '10', + ], + 'StartTimestamp' => [ + 'description' => 'The start timestamp of the segment. Unit: milliseconds.', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1678854649720', + ], + 'EndTimestamp' => [ + 'description' => 'The end timestamp of the segment. Unit: milliseconds.', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1678854649720', + ], + 'Url' => [ + 'description' => 'The temporary URL of the audio segment.'."\n", + 'type' => 'string', + 'example' => 'https://aliyundoc.com'."\n" + ."\n", + ], + 'Text' => [ + 'description' => 'The text converted from the audio segment.'."\n", + 'type' => 'string', + 'example' => 'Disgusting', + ], + 'Labels' => [ + 'description' => 'The details of the labels.'."\n", + 'type' => 'string', + 'example' => 'sexual_sounds', + ], + 'Score' => [ + 'description' => 'The risk score. Default range: 0 to 99.'."\n", + 'type' => 'number', + 'format' => 'float', + 'example' => '87.01', + ], + 'Extend' => [ + 'description' => 'Extended fields.'."\n", + 'type' => 'string', + 'example' => '{\\"riskTips\\":\\"sexuality_Suggestive\\",\\"riskWords\\":\\"pxxxxy\\"}'."\n" + ."\n", + ], + 'RiskTips' => [ + 'description' => 'The details of the risky content.'."\n", + 'type' => 'string', + 'example' => 'sexuality_Suggestive', + ], + 'RiskWords' => [ + 'description' => 'The term hit by the risky content.'."\n", + 'type' => 'string', + 'example' => 'AAA,BBB,CCC', + ], + 'OriginAlgoResult' => [ + 'description' => 'Reserved parameter.'."\n", + 'type' => 'object', + 'example' => '{}', + ], + 'RiskLevel' => [ + 'description' => 'Risk Level.', + 'type' => 'string', + 'example' => 'high', + ], + 'Descriptions' => [ + 'description' => 'The description of the labels.', + 'type' => 'string', + 'example' => 'no risk', + ], + ], + ], + ], + 'DataId' => [ + 'description' => 'The ID of the moderated object.', + 'type' => 'string', + 'example' => '26769ada6e264e7ba9aa048241e12be9', + ], + 'RiskLevel' => [ + 'description' => 'Risk Level.', + 'type' => 'string', + 'example' => 'high', + ], + 'ManualTaskId' => [ + 'type' => 'string', + ], + ], + ], + ], + ], + ], + ], + '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 }\\n ],\\n \\"DataId\\": \\"data1234\\",\\n \\"RiskLevel\\": \\"high\\",\\n \\"ManualTaskId\\": \\"xxxxx-xxxxx\\"\\n }\\n}","type":"json"}]', + 'title' => 'VoiceModerationResult', + ], + 'VoiceModerationCancel' => [ + 'summary' => 'Cancels a Voice Moderation 2.0 task.', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '164076', + 'abilityTreeNodes' => [ + 'FEATURElvwang6QCU1H', + 'FEATURElvwangPAXR7J', + ], + ], + 'parameters' => [ + [ + 'name' => 'Service', + 'in' => 'formData', + 'schema' => [ + 'description' => 'The type of the moderation service.', + 'type' => 'string', + 'required' => true, + 'docRequired' => true, + 'example' => 'nickname_detection', + ], + ], + [ + 'name' => 'ServiceParameters', + 'in' => 'formData', + 'schema' => [ + 'description' => 'The parameters required by the moderation service. The value is a JSON string.', + 'type' => 'string', + 'required' => false, + 'example' => '{"taskId":"xxxxx-xxxx"}', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => 'The request ID.', + 'type' => 'string', + 'example' => '4A926AE2-4C96-573F-824F-0532960799F8', + ], + 'Code' => [ + 'description' => 'The returned HTTP status code.', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Message' => [ + 'description' => 'The message that is returned in response to the request.', + 'type' => 'string', + 'example' => 'SUCCESS', + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"4A926AE2-4C96-573F-824F-0532960799F8\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"SUCCESS\\"\\n}","type":"json"}]', + 'title' => 'VoiceModerationCancel', + ], + 'VideoModeration' => [ + 'summary' => 'Identifies risky or illegal content in video files. You can call this operation to submit a moderation task.', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'paid', + 'abilityTreeCode' => '187556', + 'abilityTreeNodes' => [ + 'FEATURElvwang53TCRC', + ], + ], + 'parameters' => [ + [ + 'name' => 'Service', + 'in' => 'formData', + 'schema' => [ + 'description' => 'The type of the moderation service.', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [ + 'liveStreamDetection' => 'liveStreamDetection', + 'videoDetection' => 'videoDetection', + 'liveStreamDetection_cb' => 'liveStreamDetection_cb', + 'videoDetection_cb' => 'videoDetection_cb', + ], + 'example' => 'videoDetection', + ], + ], + [ + 'name' => 'ServiceParameters', + 'in' => 'formData', + 'schema' => [ + 'description' => 'The parameters required by the moderation service. The value is a JSON string.', + 'type' => 'string', + 'required' => false, + 'example' => '{\\"url\\": \\"https://talesofai.oss-cn-shanghai.aliyuncs.com/xxx.mp4\\", \\"dataId\\": \\"94db0b88-f521-11ed-806e-fae21c1f239c\\"}', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => 'The request ID.', + 'type' => 'string', + 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****', + ], + 'Message' => [ + 'description' => 'The message that is returned in response to the request.', + 'type' => 'string', + 'example' => 'SUCCESS', + ], + 'Code' => [ + 'description' => 'The returned HTTP status code.', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Data' => [ + 'description' => 'The data returned.'."\n", + 'type' => 'object', + 'properties' => [ + 'TaskId' => [ + 'description' => 'The task ID.'."\n", + 'type' => 'string', + 'example' => 'xxxxx-xxxxx', + ], + 'DataId' => [ + 'description' => 'The ID of the moderated object.', + '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 \\"TaskId\\": \\"xxxxx-xxxxx\\",\\n \\"DataId\\": \\"data1234\\"\\n }\\n}","type":"json"}]', + 'title' => 'VideoModeration', + ], + 'VideoModerationResult' => [ + 'summary' => 'Get Video Detection Results', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '187919', + 'abilityTreeNodes' => [ + 'FEATURElvwang53TCRC', + ], + ], + 'parameters' => [ + [ + 'name' => 'Service', + 'in' => 'formData', + 'schema' => [ + 'description' => 'The type of the moderation service.'."\n" + ."\n" + .'Valid values:'."\n" + ."\n" + .'* liveStreamDetection: live stream moderation'."\n" + .'* videoDetection: video file moderation'."\n" + .'* liveStreamDetection_cb: live stream moderation_For regions outside the Chinese mainland'."\n" + .'* videoDetection_cb: video file moderation_For regions outside the Chinese mainland.'."\n", + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [ + 'liveStreamDetection' => '', + 'videoDetection' => '', + 'liveStreamDetection_cb' => '', + 'videoDetection_cb' => '', + ], + 'example' => 'videoDetection', + ], + ], + [ + 'name' => 'ServiceParameters', + 'in' => 'formData', + 'schema' => [ + 'description' => 'The parameters required by the moderation service. The ID of the task that you want to query. You can specify one task ID at a time.'."\n", + 'type' => 'string', + 'required' => false, + 'example' => '{\\"taskId\\":\\"au_f_8PoWiZKoLbczp5HRn69VdT-1y8@U5\\"}', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response'."\n", + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => 'Id of the request'."\n", + 'type' => 'string', + 'example' => '6CF2815C-C8C7-4A01-B52E-FF6E24F53492', + ], + 'Code' => [ + 'description' => 'The returned HTTP status code. The status code 200 indicates that the request was successful.'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Message' => [ + 'description' => 'The message that is returned in response to the request.'."\n", + 'type' => 'string', + 'example' => 'success finished', + ], + 'Data' => [ + 'description' => 'The moderation results.'."\n", + 'type' => 'object', + 'properties' => [ + 'LiveId' => [ + 'description' => 'The unique ID of the live stream.'."\n", + 'type' => 'string', + 'example' => 'liveId', + ], + 'DataId' => [ + 'description' => 'The value of dataId that is specified in the API request. If this parameter is not specified in the API request, the dataId field is not available in the response.'."\n", + 'type' => 'string', + 'example' => 'product_content-2055763', + ], + 'AudioResult' => [ + 'description' => 'The voice moderation results. The moderation results contain a structure.'."\n", + 'type' => 'object', + 'properties' => [ + 'SliceDetails' => [ + 'description' => 'The details about the text in the moderated voice. The value is a JSON array that contains one or more elements. Each element corresponds to a text entry.'."\n", + 'type' => 'array', + 'items' => [ + 'description' => 'Segment details.'."\n", + 'type' => 'object', + 'properties' => [ + 'StartTime' => [ + 'description' => 'The start time of the text after voice-to-text conversion. Unit: seconds.'."\n", + 'type' => 'integer', + 'format' => 'int64', + 'example' => '0', + ], + 'EndTime' => [ + 'description' => 'The end time of the text after voice-to-text conversion. Unit: seconds.'."\n", + 'type' => 'integer', + 'format' => 'int64', + 'example' => '30', + ], + 'StartTimestamp' => [ + 'description' => 'The start timestamp of the segment. Unit: milliseconds.'."\n", + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1659935002123', + ], + 'EndTimestamp' => [ + 'description' => 'The end timestamp of the segment. Unit: milliseconds.'."\n", + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1685245261939', + ], + 'Url' => [ + 'description' => 'If the moderation object is a voice stream, this parameter indicates the temporary access URL of the voice stream to which the text entry corresponds. The validity period of the URL is 30 minutes. You must prepare another URL to store the voice stream at the earliest opportunity.'."\n", + 'type' => 'string', + 'example' => 'http://xxxx.abc.img', + ], + 'Text' => [ + 'description' => 'The text converted from voice.'."\n", + 'type' => 'string', + 'example' => 'Disgusting', + ], + 'Labels' => [ + 'description' => 'The details of the labels.'."\n", + 'type' => 'string', + 'example' => 'porn', + ], + 'Score' => [ + 'description' => 'The risk score. Default range: 0 to 99.'."\n", + 'type' => 'number', + 'format' => 'float', + 'example' => '5', + ], + 'Extend' => [ + 'description' => 'A reserved parameter.'."\n", + 'type' => 'string', + 'example' => '{\\"consoleProduct\\":\\"slbnext\\"}', + ], + 'RiskTips' => [ + 'description' => 'Subcategory labels. Multiple labels are separated by commas (,).'."\n", + 'type' => 'string', + 'example' => '""', + ], + 'RiskWords' => [ + 'description' => 'The risk words that are hit. Multiple words are separated by commas (,).'."\n", + 'type' => 'string', + 'example' => '""', + ], + 'RiskLevel' => [ + 'description' => 'Risk Level.', + 'type' => 'string', + 'example' => 'high', + ], + 'Descriptions' => [ + 'description' => 'The description of the labels.', + 'type' => 'string', + 'example' => 'no risk', + ], + ], + ], + ], + 'AudioSummarys' => [ + 'description' => 'Summary of voice labels.'."\n", + 'type' => 'array', + 'items' => [ + 'description' => 'Object'."\n", + 'type' => 'object', + 'properties' => [ + 'Label' => [ + 'description' => 'The voice label.'."\n", + 'type' => 'string', + 'example' => 'profanity', + ], + 'LabelSum' => [ + 'description' => 'The number of times that the label is matched.'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '8', + ], + 'Description' => [ + 'description' => 'The description of the labels.', + 'type' => 'string', + 'example' => 'no risk', + ], + ], + ], + ], + 'RiskLevel' => [ + 'description' => 'Risk Level.', + 'type' => 'string', + 'example' => 'high', + ], + ], + ], + 'FrameResult' => [ + 'description' => 'The image moderation results. If the call is successful, the HTTP status code 200 and moderation results are returned. The moderation results contain a structure.'."\n", + 'type' => 'object', + 'properties' => [ + 'FrameNum' => [ + 'description' => 'The number of captured frames that are returned for the video file.'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + ], + 'Frames' => [ + 'description' => 'The information about the frames that match the labels.'."\n", + 'type' => 'array', + 'items' => [ + 'description' => 'Object'."\n", + 'type' => 'object', + 'properties' => [ + 'TempUrl' => [ + 'description' => 'The temporary URL of a captured frame.'."\n", + 'type' => 'string', + 'example' => 'http://xxxx.abc.jpg', + ], + 'Offset' => [ + 'description' => 'The interval between the start of the video file and the captured frame. Unit: seconds.'."\n", + 'type' => 'number', + 'format' => 'float', + 'example' => '338', + ], + 'Results' => [ + 'description' => 'The results of frame moderation parameters such as the label parameter and the confidence parameter.'."\n", + 'type' => 'array', + 'items' => [ + 'description' => 'Object'."\n", + 'type' => 'object', + 'properties' => [ + 'Service' => [ + 'description' => 'The moderation service that is called.'."\n", + 'type' => 'string', + 'example' => 'tonalityImprove', + ], + 'Result' => [ + 'description' => 'The results of frame moderation parameters such as the label parameter and the confidence parameter.'."\n", + 'type' => 'array', + 'items' => [ + 'description' => 'Object'."\n", + 'type' => 'object', + 'properties' => [ + 'Confidence' => [ + 'description' => 'The score of the confidence level. Valid values: 0 to 100. The value is accurate to two decimal places.'."\n", + 'type' => 'number', + 'format' => 'float', + 'example' => '50', + ], + 'Label' => [ + 'description' => 'The label returned after a frame is moderated. Multiple risk labels and the corresponding scores of confidence levels may be returned for a frame.'."\n", + 'type' => 'string', + 'example' => 'bloody', + ], + 'Description' => [ + 'description' => 'The description of the result.', + 'type' => 'string', + 'example' => 'no risk'."\n", + ], + ], + ], + ], + 'TextInImage' => [ + 'description' => 'The information about the text hit in the image is returned.'."\n", + 'type' => 'object', + ], + 'CustomImage' => [ + 'description' => 'If a custom image library is hit, information about the custom image library is returned.'."\n", + 'type' => 'array', + 'items' => [ + 'description' => 'Object'."\n", + 'type' => 'object', + 'properties' => [ + 'LibId' => [ + 'description' => 'The ID of the custom image library that is hit.'."\n", + 'type' => 'string', + 'example' => '12345678', + ], + 'ImageId' => [ + 'description' => 'The ID of the custom image that is hit.'."\n", + 'type' => 'string', + 'example' => '1234', + ], + ], + ], + ], + 'PublicFigure' => [ + 'description' => 'If the video contains a specific figure, the code of the identified figure is returned.'."\n", + 'type' => 'array', + 'items' => [ + 'description' => 'Object'."\n", + 'type' => 'object', + 'properties' => [ + 'FigureId' => [ + 'description' => 'The information about the code of the identified figure.'."\n", + 'type' => 'string', + 'example' => 'xxx001', + ], + 'FigureName' => [ + 'type' => 'string', + ], + 'Location' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'W' => [ + 'type' => 'integer', + 'format' => 'int32', + ], + 'H' => [ + 'type' => 'integer', + 'format' => 'int32', + ], + 'X' => [ + 'type' => 'integer', + 'format' => 'int32', + ], + 'Y' => [ + 'type' => 'integer', + 'format' => 'int32', + ], + ], + ], + ], + ], + ], + ], + 'LogoData' => [ + 'description' => 'Returns logo information when the video contains a logo.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Location' => [ + 'description' => 'The location of the logo.', + 'type' => 'object', + 'properties' => [ + 'X' => [ + 'description' => 'The distance from the top-left corner of the text area to the y-axis, with the top-left corner of the image as the origin. Unit: pixels.', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '111', + ], + 'Y' => [ + 'description' => 'The distance from the top-left corner of the text area to the x-axis, with the top-left corner of the image as the origin. Unit: pixels.', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '222', + ], + 'W' => [ + 'description' => 'The width of the text area. Unit: pixels.', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '111', + ], + 'H' => [ + 'description' => 'The height of the text area. Unit: pixels.', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '111', + ], + ], + ], + 'Logo' => [ + 'description' => 'Logo information.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'label' => [ + 'description' => 'label', + 'type' => 'string', + 'example' => 'pt_logotoSocialNetwork', + ], + 'name' => [ + 'description' => 'Logo name.', + 'type' => 'string', + 'example' => '**logo', + ], + 'confidence' => [ + 'description' => 'Confidence score, ranging from 0 to 100, with two decimal places.', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '99.10', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'Timestamp' => [ + 'description' => 'The absolute timestamp. Unit: milliseconds.'."\n", + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1684559739000', + ], + 'RiskLevel' => [ + 'description' => 'Risk Level.', + 'type' => 'string', + 'example' => 'high', + ], + ], + ], + ], + 'FrameSummarys' => [ + 'description' => 'The summary of the labels against which captured frames are matched.'."\n", + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Label' => [ + 'description' => 'The label against which a captured frame is matched.'."\n", + 'type' => 'string', + 'example' => 'violent_armedForces', + ], + 'LabelSum' => [ + 'description' => 'The number of times that the label is matched.'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '8', + ], + 'Description' => [ + 'description' => 'The description of the result.', + 'type' => 'string', + 'example' => 'no risk'."\n", + ], + ], + 'description' => '', + ], + ], + 'RiskLevel' => [ + 'description' => 'Risk Level.', + 'type' => 'string', + 'example' => 'high', + ], + ], + ], + 'TaskId' => [ + 'description' => 'The task ID.'."\n", + 'type' => 'string', + 'example' => 'xxxxx-xxxxx', + ], + 'RiskLevel' => [ + 'description' => 'Risk Level.', + 'type' => 'string', + 'example' => 'high', + ], + 'ManualTaskId' => [ + 'type' => 'string', + ], + ], + ], + ], + ], + ], + ], + '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' => 'Query Video Moderation Task Results', + 'description' => 'This operation is free of charge. We recommend that you query moderation results at least 30 seconds after you send an asynchronous moderation request. Content Moderation retains moderation results for at most 24 hours. After 24 hours, the results are deleted.', + 'translator' => 'machine', + ], + 'VideoModerationCancel' => [ + 'summary' => 'Cancels a live stream moderation task.', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '201471', + 'abilityTreeNodes' => [ + 'FEATURElvwang53TCRC', + ], + ], + 'parameters' => [ + [ + 'name' => 'Service', + 'in' => 'formData', + 'schema' => [ + 'description' => 'The type of the moderation service.', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [ + 'liveStreamDetection' => '视频直播流检测', + 'videoDetection' => '视频文件检测', + 'liveStreamDetection_cb' => '视频直播流审核_海外版', + 'videoDetection_cb' => '视频文件审核_海外版', + ], + 'example' => 'videoDetection', + ], + ], + [ + 'name' => 'ServiceParameters', + 'in' => 'formData', + 'schema' => [ + 'description' => 'The parameters required by the moderation service. The value is a JSON string.', + 'type' => 'string', + 'required' => false, + 'example' => '{\\"taskId\\":\\"vi_s_4O9gp7GfNQdx9GOqdekFmk-1z2RJT\\"}', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => 'The request ID.', + 'type' => 'string', + 'example' => '6CF2815C-****-****-B52E-FF6E2****492', + ], + 'Code' => [ + 'description' => 'The returned HTTP status code.', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Message' => [ + 'description' => 'The message that is returned in response to the request.', + 'type' => 'string', + 'example' => 'OK', + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"6CF2815C-****-****-B52E-FF6E2****492\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"OK\\"\\n}","type":"json"}]', + 'title' => 'VideoModerationCancel', + ], + 'FileModeration' => [ + 'summary' => 'Moderates files.', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'paid', + 'abilityTreeCode' => '204033', + 'abilityTreeNodes' => [ + 'FEATURElvwangCXKRID', + ], + ], + 'parameters' => [ + [ + 'name' => 'Service', + 'in' => 'formData', + 'schema' => [ + 'description' => 'The type of the moderation service.', + 'type' => 'string', + 'required' => false, + 'example' => 'document_detection', + ], + ], + [ + 'name' => 'ServiceParameters', + 'in' => 'formData', + 'schema' => [ + 'description' => 'The parameters required by the moderation service. The value is a JSON string.', + 'type' => 'string', + 'required' => false, + 'example' => '{"url":"https://detect-obj.oss-cn-hangzhou.aliyuncs.com/sample/xxxx.pdf"}', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => 'The request ID.', + 'type' => 'string', + 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****', + ], + 'Message' => [ + 'description' => 'The message that is returned in response to the request.', + 'type' => 'string', + 'example' => 'SUCCESS', + ], + 'Code' => [ + 'description' => 'The returned HTTP status code.', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Data' => [ + 'description' => 'The data returned.'."\n", + 'type' => 'object', + 'properties' => [ + 'TaskId' => [ + 'description' => 'The task ID.'."\n", + 'type' => 'string', + 'example' => 'xxxxx-xxxxx', + ], + ], + ], + ], + ], + ], + ], + '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' => 'FileModeration', + ], + 'DescribeFileModerationResult' => [ + 'summary' => '文档审核结果', + 'methods' => [ + 'post', + 'get', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '205895', + 'abilityTreeNodes' => [ + 'FEATURElvwang6CEZ66', + ], + ], + 'parameters' => [ + [ + 'name' => 'Service', + 'in' => 'formData', + 'schema' => [ + 'description' => 'The type of the moderation service.'."\n", + 'type' => 'string', + 'required' => false, + 'example' => 'document_detection', + ], + ], + [ + 'name' => 'ServiceParameters', + 'in' => 'formData', + 'schema' => [ + 'description' => 'The parameters required by the moderation service. The value is a JSON string.'."\n" + ."\n" + .'* taskId: required. The URL of the object that you want to moderate. Make sure that the URL can be accessed over the Internet.'."\n", + 'type' => 'string', + 'required' => false, + 'example' => '{\\"taskId\\":\\"vi_f_hPgx9PFIQISdlfA888hOFG-1yJq8v\\"}', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response'."\n", + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => 'Id of the request'."\n", + 'type' => 'string', + 'example' => '6CF2815C-C8C7-4A01-B52E-FF6E24F53492', + ], + 'Code' => [ + 'description' => 'The returned HTTP status code. The status code 200 indicates that the request was successful.'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Message' => [ + 'description' => 'The message that is returned in response to the request.'."\n", + 'type' => 'string', + 'example' => 'OK', + ], + 'Data' => [ + 'description' => 'The data returned.'."\n", + 'type' => 'object', + 'properties' => [ + 'DataId' => [ + 'description' => 'The ID of the moderated object.'."\n", + 'type' => 'string', + 'example' => '26769ada6e264e7ba9aa048241e12be9', + ], + 'Url' => [ + 'description' => 'The URL of the moderated object.'."\n", + 'type' => 'string', + 'example' => 'https://detect-obj.oss-cn-hangzhou.aliyuncs.com/sample/xxxx.pdf', + ], + 'DocType' => [ + 'description' => 'Optional. The document type.'."\n", + 'type' => 'string', + 'example' => 'doc', + ], + 'PageResult' => [ + 'description' => 'An array that consists of the moderation results.'."\n", + 'type' => 'array', + 'items' => [ + 'description' => 'The results.'."\n", + 'type' => 'object', + 'properties' => [ + 'PageNum' => [ + 'description' => 'The page number.'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'ImageUrl' => [ + 'description' => 'The image URL.'."\n", + 'type' => 'string', + 'example' => 'https://detect-obj.oss-cn-hangzhou.aliyuncs.com/sample/xxxx.jpg', + ], + 'TextUrl' => [ + 'description' => 'The text URL.'."\n", + 'type' => 'string', + 'example' => 'https://detect-obj.oss-cn-hangzhou.aliyuncs.com/sample/xxxx.txt', + ], + 'ImageResult' => [ + 'description' => 'The image moderation results.'."\n", + 'type' => 'array', + 'items' => [ + 'description' => 'The results.'."\n", + 'type' => 'object', + 'properties' => [ + 'Description' => [ + 'description' => 'The description.'."\n", + 'type' => 'string', + 'example' => 'This is a title.'."\n", + ], + 'Service' => [ + 'description' => 'The moderation service.'."\n", + 'type' => 'string', + 'example' => 'baselineCheck', + ], + 'Location' => [ + 'description' => 'The location information'."\n", + 'type' => 'object', + 'properties' => [ + 'X' => [ + 'description' => 'The X value of the coordinate point.'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '11', + ], + 'Y' => [ + 'description' => 'The Y value of the coordinate point.'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '22', + ], + 'W' => [ + 'description' => 'The W value of the coordinate point.'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '33', + ], + 'H' => [ + 'description' => 'The H value of the coordinate point.'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '44', + ], + ], + ], + 'LabelResult' => [ + 'description' => 'The label information.'."\n", + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Label' => [ + 'description' => 'The details of the labels.'."\n", + 'type' => 'string', + 'example' => 'nonlabel', + ], + 'Confidence' => [ + 'description' => 'The score of the confidence level. Valid values: 0 to 100. The value is accurate to two decimal places.'."\n", + 'type' => 'number', + 'format' => 'float', + 'example' => '25.0', + ], + 'Description' => [ + 'description' => 'The description.', + 'type' => 'string', + 'example' => 'This is a title.'."\n", + ], + ], + ], + ], + 'RiskLevel' => [ + 'description' => 'Risk Level', + 'type' => 'string', + 'example' => 'high', + ], + ], + ], + ], + 'TextResult' => [ + 'description' => 'The text moderation results.'."\n", + 'type' => 'array', + 'items' => [ + 'description' => 'The results.'."\n", + 'type' => 'object', + 'properties' => [ + 'Description' => [ + 'description' => 'The description.'."\n", + 'type' => 'string', + 'example' => 'This is a title.'."\n", + ], + 'Service' => [ + 'description' => 'The moderation service.'."\n", + 'type' => 'string', + 'example' => 'chat_detection', + ], + 'Text' => [ + 'description' => 'The text content.'."\n", + 'type' => 'string', + 'example' => 'This is a text.'."\n", + ], + 'TextSegment' => [ + 'description' => 'The text segmentation information.'."\n", + 'type' => 'string', + 'example' => '[0,999]', + ], + 'Labels' => [ + 'description' => 'The details of the labels.'."\n", + 'type' => 'string', + 'example' => 'porn', + ], + 'Descriptions' => [ + 'description' => 'The description of the labels.', + 'type' => 'string', + 'example' => 'no risk', + ], + 'RiskWords' => [ + 'description' => 'The risk words that are hit.'."\n", + 'type' => 'string', + 'example' => 'xxx', + ], + 'RiskTips' => [ + 'description' => 'The risk details that are hit.'."\n", + 'type' => 'string', + 'example' => 'xxx', + ], + 'RiskLevel' => [ + 'description' => 'Risk Level', + 'type' => 'string', + 'example' => 'high', + ], + ], + ], + ], + ], + ], + ], + 'PageSummary' => [ + 'description' => 'Summary of results', + 'type' => 'object', + 'properties' => [ + 'PageSum' => [ + 'description' => 'Number of pages', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'ImageSummary' => [ + 'description' => 'Image Results Summary', + 'type' => 'object', + 'properties' => [ + 'RiskLevel' => [ + 'description' => 'Risk Level', + 'type' => 'string', + 'example' => 'high', + ], + 'ImageLabels' => [ + 'description' => 'Image Label', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Label' => [ + 'description' => 'The details of the labels.', + 'type' => 'string', + 'example' => 'contraband', + ], + 'LabelSum' => [ + 'description' => 'The number of times that the label is matched.', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'Description' => [ + 'description' => 'The description.', + 'type' => 'string', + 'example' => 'test', + ], + ], + ], + ], + ], + ], + 'TextSummary' => [ + 'description' => 'Text Results Summary', + 'type' => 'object', + 'properties' => [ + 'RiskLevel' => [ + 'description' => 'Risk Level', + 'type' => 'string', + 'example' => 'high', + ], + 'TextLabels' => [ + 'description' => 'Text Label', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Label' => [ + 'description' => 'The details of the labels.', + 'type' => 'string', + 'example' => 'contraband', + ], + 'LabelSum' => [ + 'description' => 'The number of times that the label is matched.', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'Description' => [ + 'description' => 'The description of the labels.', + 'type' => 'string', + 'example' => 'no risk', + ], + ], + ], + ], + ], + ], + ], + ], + 'RiskLevel' => [ + 'description' => 'Risk Level', + 'type' => 'string', + 'example' => 'high', + ], + 'AccountId' => [ + 'type' => 'string', + ], + ], + ], + ], + ], + ], + ], + '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' => 'Describe File Moderation Result', + ], + 'DescribeImageResultExt' => [ + 'summary' => 'Obtains more auxiliary information that is identified by calling the Image Moderation 2.0 API. The auxiliary information includes the moderation results of images and text and the hit information of custom image libraries.', + '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' => 'The reqId field returned by the Url Async Moderation API.', + 'type' => 'string', + 'required' => false, + 'example' => '638EDDC65C82AB39319A9F60', + ], + ], + [ + 'name' => 'InfoType', + 'in' => 'formData', + 'schema' => [ + 'description' => 'The content of the information to be obtained. Multiple values are separated by commas.', + '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' => 'The request ID.'."\n", + 'type' => 'string', + 'example' => '6CF2815C-C8C7-4A01-B52E-FF6E24F53492', + ], + 'Code' => [ + 'description' => 'The returned HTTP status code.', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Msg' => [ + 'description' => 'The message that is returned in response to the request.', + 'type' => 'string', + 'example' => 'success', + ], + 'Data' => [ + 'description' => 'The data returned.'."\n", + 'type' => 'object', + 'properties' => [ + 'CustomImage' => [ + 'description' => 'If a custom image library is hit, information about the hit custom image library is returned.', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'ImageId' => [ + 'description' => 'The image ID.', + 'type' => 'string', + 'example' => '123456', + ], + 'LibName' => [ + 'description' => 'The image library name.', + 'type' => 'string', + 'example' => '图库123', + ], + 'LibId' => [ + 'description' => 'The image library ID.', + 'type' => 'string', + 'example' => '123456', + ], + ], + ], + ], + 'TextInImage' => [ + 'description' => 'Returns the text information in the hit image.', + 'type' => 'object', + 'properties' => [ + 'OcrDatas' => [ + 'description' => 'Returns the text information in the recognized image.', + 'type' => 'array', + 'items' => [ + 'description' => 'Returns the text information in the recognized image.', + 'type' => 'string', + 'example' => 'abcd', + ], + ], + 'RiskWords' => [ + 'description' => 'The risk words that are hit. Multiple words are separated by commas (,).', + 'type' => 'array', + 'items' => [ + 'description' => 'The risk words that are hit. Multiple words are separated by commas (,).', + 'type' => 'string', + 'example' => 'abcd', + ], + ], + 'CustomTexts' => [ + 'description' => 'When a custom text library is hit, the custom library ID, custom library name, and custom word are returned.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'LibId' => [ + 'description' => 'Custom library ID.', + 'type' => 'string', + 'example' => '123456', + ], + 'LibName' => [ + 'description' => 'Custom library name.', + 'type' => 'string', + 'example' => 'test', + ], + 'KeyWords' => [ + 'description' => 'Custom words, multiple words separated by commas.', + 'type' => 'string', + 'example' => 'aaa,bbb', + ], + ], + ], + ], + ], + ], + 'PublicFigure' => [ + 'description' => 'Person information list.', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'FigureId' => [ + 'description' => 'Identified person coding information.', + 'type' => 'string', + 'example' => 'yzazhzou', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + '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' => 'DescribeImageResultExt', + ], + 'UrlAsyncModeration' => [ + 'summary' => 'Identifies whether URL links contain risks such as fraud, pornographic, and gambling content, to protect the platform content ecosystem.', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'paid', + 'abilityTreeCode' => '211718', + 'abilityTreeNodes' => [ + 'FEATURElvwang7UL554', + ], + ], + 'parameters' => [ + [ + 'name' => 'Service', + 'in' => 'query', + 'schema' => [ + 'description' => 'The type of the moderation service.', + 'type' => 'string', + 'required' => false, + 'example' => 'url_detection', + ], + ], + [ + 'name' => 'ServiceParameters', + 'in' => 'query', + 'schema' => [ + 'description' => 'The parameters required by the moderation service. The value is a JSON string.', + 'type' => 'string', + 'required' => false, + 'example' => '{'."\n" + .' "url": "https://help.aliyun.com/",'."\n" + .' "dataId": "url123******"'."\n" + .'}', + ], + ], + ], + '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' => '6CF2815C-****-****-B52E-FF6E2****492', + ], + 'Code' => [ + 'description' => 'The returned HTTP status code.', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Msg' => [ + 'description' => 'The message that is returned in response to the request.', + 'type' => 'string', + 'example' => 'success', + ], + 'Data' => [ + 'description' => 'The data returned.'."\n", + 'type' => 'object', + 'properties' => [ + 'ReqId' => [ + 'description' => 'The reqId field returned by the Url Async Moderation API.', + 'type' => 'string', + 'example' => 'A07B3DB9-D762-5C56-95B1-8EC55CF176D2', + ], + 'DataId' => [ + 'description' => 'The ID of the moderated object.', + 'type' => 'string', + 'example' => '26769ada6e264e7ba9aa048241e12be9', + ], + ], + ], + ], + ], + ], + ], + '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' => 'UrlAsyncModeration', + ], + 'DescribeUrlModerationResult' => [ + 'summary' => 'Queries the moderation results based on the ReqId returned by asynchronous URL moderation.', + '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' => 'The ReqId field returned by an asynchronous URL moderation operation.'."\n", + 'type' => 'string', + 'required' => false, + 'example' => 'B0963D30-BAB4-562F-9ED0-7A23AEC51C7C', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response'."\n", + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => 'The request ID.'."\n", + 'type' => 'string', + 'example' => '01F9144A-2088-5D87-935B-2DB865284B1A', + ], + 'Code' => [ + 'description' => 'The returned HTTP status code. The status code 200 indicates that the request was successful.'."\n", + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Msg' => [ + 'description' => 'The message that is returned in response to the request.'."\n", + 'type' => 'string', + 'example' => 'success', + ], + 'Data' => [ + 'description' => 'The data returned.'."\n", + 'type' => 'object', + 'properties' => [ + 'DataId' => [ + 'description' => 'The value of dataId that is specified in the API request. If this parameter is not specified in the API request, this field is not available in the response.'."\n", + 'type' => 'string', + 'example' => '26769ada6e264e7ba9aa048241e12be9', + ], + 'ReqId' => [ + 'description' => 'The ReqId field returned by an asynchronous URL moderation operation.'."\n", + 'type' => 'string', + 'example' => 'B0963D30-BAB4-562F-9ED0-7A23AEC51C7C'."\n", + ], + 'Result' => [ + 'description' => 'The returned results.'."\n", + 'type' => 'array', + 'items' => [ + 'description' => 'The returned results.'."\n", + 'type' => 'object', + 'properties' => [ + 'Label' => [ + 'description' => 'The labels returned after the asynchronous URL moderation.'."\n", + 'type' => 'string', + 'example' => 'sexual_url', + ], + 'Confidence' => [ + 'description' => 'The score of the confidence level. Valid values: 0 to 100. The value is accurate to two decimal places.'."\n", + 'type' => 'number', + 'format' => 'float', + 'example' => '81.22', + ], + ], + ], + ], + 'ExtraInfo' => [ + 'description' => 'The supplementary information.'."\n", + 'type' => 'object', + 'properties' => [ + 'IcpType' => [ + 'description' => 'The type of the ICP filing.'."\n", + 'type' => 'string', + 'example' => 'xx', + ], + 'IcpNo' => [ + 'description' => 'The ICP number.'."\n", + 'type' => 'string', + 'example' => 'xx', + ], + 'SiteType' => [ + 'description' => 'The type of site', + 'type' => 'string', + 'example' => 'game', + ], + ], + ], + ], + ], + ], + ], + ], + ], + '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' => 'DescribeUrlModerationResult', + 'description' => '* Billing: This operation is free of charge.'."\n" + .'* Query timeout: We recommend that you query moderation results at least 480 seconds after you send an asynchronous moderation request. Content Moderation retains moderation results for up to 3 days. After 3 days, the results are deleted.'."\n" + .'* You can call this operation up to 100 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.'."\n", + ], + 'DescribeUploadToken' => [ + 'summary' => 'Queries the token for uploading files.', + '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' => 'The request ID.'."\n", + 'type' => 'string', + 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****', + ], + 'Code' => [ + 'description' => 'The returned HTTP status code.', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Msg' => [ + 'description' => 'The message that is returned in response to the request.', + 'type' => 'string', + 'example' => 'OK', + ], + 'Data' => [ + 'description' => 'The data returned.'."\n", + 'type' => 'object', + 'properties' => [ + 'AccessKeyId' => [ + 'description' => 'The AccessKey ID.'."\n", + 'type' => 'string', + 'example' => 'STS.NUEUjvDqMuvH6oQA1TXxxH4wVR', + ], + 'AccessKeySecret' => [ + 'description' => 'The AccessKey secret.'."\n", + 'type' => 'string', + 'example' => 'xxxx', + ], + 'SecurityToken' => [ + 'description' => 'The security token.'."\n", + 'type' => 'string', + 'example' => 'xxxx', + ], + 'FileNamePrefix' => [ + 'description' => 'The file prefix.', + 'type' => 'string', + 'example' => 'upload/1xxb89/', + ], + 'OssInternalEndPoint' => [ + 'description' => 'the oss intranet point.', + 'type' => 'string', + 'example' => 'https://oss-cn-shanghai-internal.aliyuncs.com', + ], + 'OssInternetEndPoint' => [ + 'description' => 'the oss internet point.', + 'type' => 'string', + 'example' => 'https://oss-cn-shanghai.aliyuncs.com', + ], + 'BucketName' => [ + 'description' => 'The bucket name.'."\n", + 'type' => 'string', + 'example' => 'oss-cip-shanghai', + ], + 'Expiration' => [ + 'description' => 'The time when the file sharing link expires.', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1720577200', + ], + ], + ], + ], + ], + ], + ], + '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' => 'DescribeUploadToken', + ], + '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' => 'The types of detection supported by the enhanced image review, separated by English commas. Values:'."\n" + ."\n" + .'- baselineCheck:General Baseline Detection'."\n" + .'- baselineCheck_pro:General Baseline Detection_Pro Edition'."\n" + .'- tonalityImprove:Content governance monitoring'."\n" + .'- aigcCheck:AIGC image detection', + 'type' => 'string', + 'required' => false, + 'example' => 'baselineCheck,tonalityImprove', + ], + ], + [ + 'name' => 'ServiceParameters', + 'in' => 'query', + 'schema' => [ + 'description' => 'The set of relevant parameters for content detection objects.', + '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' => '', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => 'The ID of this invocation request, generated by Alibaba Cloud as a unique identifier for the request, can be used for troubleshooting and pinpointing issues.', + 'type' => 'string', + 'example' => '6CF2815C-C8C7-4A01-B52E-FF6E24F53492'."\n", + ], + 'Code' => [ + 'description' => 'Return code. A return of 200 represents success.', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Msg' => [ + 'description' => 'The response message for this request.', + 'type' => 'string', + 'example' => 'success', + ], + 'Data' => [ + 'description' => 'The result of image content detection.', + 'type' => 'object', + 'properties' => [ + 'DataId' => [ + 'description' => 'To detect the data ID corresponding to the object.', + 'type' => 'string', + 'example' => '26769ada6e264e7ba9aa048241e12be9', + ], + 'Results' => [ + 'description' => 'The risk labels, confidence scores, and other parameters for each service\'s image detection, in an array structure.', + 'type' => 'array', + 'items' => [ + 'description' => 'data structure.', + 'type' => 'object', + 'properties' => [ + 'Service' => [ + 'description' => 'The enhanced image detection service supports various detection services.', + 'type' => 'string', + 'example' => 'baselineCheck', + ], + 'Result' => [ + 'description' => 'The risk labels, confidence scores, and other parameters of image detection results, in an array structure.', + 'type' => 'array', + 'items' => [ + 'description' => 'data structure.', + 'type' => 'object', + 'properties' => [ + 'Label' => [ + 'description' => 'The labels returned after image content detection. A single image may have multiple labels and corresponding scores detected.', + 'type' => 'string', + 'example' => 'violent_explosion', + ], + 'Confidence' => [ + 'description' => 'Confidence score, ranging from 0 to 100, rounded to two decimal places. Some labels do not have a confidence score.', + 'type' => 'number', + 'format' => 'float', + 'example' => '81.22', + ], + 'Description' => [ + 'description' => 'Description.', + 'type' => 'string', + 'example' => 'No risk detected', + ], + ], + ], + ], + 'Ext' => [ + 'description' => 'Image supplementary reference information.', + 'type' => 'object', + 'properties' => [ + 'TextInImage' => [ + 'description' => 'Return the text information from the recognized images.', + 'type' => 'object', + 'properties' => [ + 'OcrResult' => [ + 'description' => 'Return the text information of each line recognized in the image.', + 'type' => 'array', + 'items' => [ + 'description' => 'data structure.', + 'type' => 'object', + 'properties' => [ + 'Text' => [ + 'description' => 'Text information.', + 'type' => 'string', + 'example' => 'abcd', + ], + 'Location' => [ + 'description' => 'Text line coordinate information.', + 'type' => 'object', + 'properties' => [ + 'X' => [ + 'description' => 'The distance from the top-left corner of the text area to the y-axis, with the top-left corner of the image as the origin, in pixels.', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '11', + ], + 'Y' => [ + 'description' => 'The distance from the top-left corner of the text area to the x-axis, with the top-left corner of the image as the origin, in pixels.', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '22', + ], + 'H' => [ + 'description' => 'The height of the text area, in pixels.', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '33', + ], + 'W' => [ + 'description' => 'The width of the text area, in pixels.', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '44', + ], + ], + ], + ], + ], + ], + 'RiskWord' => [ + 'description' => 'hit risk keywords', + 'type' => 'array', + 'items' => [ + 'description' => 'Text information.', + 'type' => 'string', + 'example' => 'Rocket.', + ], + ], + 'CustomText' => [ + 'description' => 'When a custom text library is matched, return the custom library ID, custom library name, and custom words.', + 'type' => 'array', + 'items' => [ + 'description' => 'data structure.', + 'type' => 'object', + 'properties' => [ + 'LibId' => [ + 'description' => 'Custom library ID.', + 'type' => 'string', + 'example' => '123456', + ], + 'LibName' => [ + 'description' => 'Custom library name.', + 'type' => 'string', + 'example' => 'Custom Library 1', + ], + 'KeyWords' => [ + 'description' => 'Custom words, separate multiple words with commas.', + 'type' => 'string', + 'example' => 'Custom Word 1 and Custom Word 2', + ], + ], + ], + ], + ], + ], + 'CustomImage' => [ + 'description' => 'Custom image library hit information list.', + 'type' => 'array', + 'items' => [ + 'description' => 'data structure.', + 'type' => 'object', + 'properties' => [ + 'LibId' => [ + 'description' => 'Custom library ID', + 'type' => 'string', + 'example' => '1965304870002', + ], + 'ImageId' => [ + 'description' => 'The ID of the hit custom image.', + 'type' => 'string', + 'example' => '1965304870002', + ], + 'LibName' => [ + 'description' => 'The name of the hit custom gallery.', + 'type' => 'string', + 'example' => 'Whitelist', + ], + ], + ], + ], + 'PublicFigure' => [ + 'description' => 'List of character information.', + 'type' => 'array', + 'items' => [ + 'description' => 'data structure.', + 'type' => 'object', + 'properties' => [ + 'FigureName' => [ + 'description' => 'The identified person\'s name information.', + 'type' => 'string', + 'example' => 'xxxxx', + ], + 'FigureId' => [ + 'description' => 'Identify the encoded information of the person.', + 'type' => 'string', + 'example' => '12324222', + ], + 'Location' => [ + 'description' => 'The location information of the identifier.', + 'type' => 'array', + 'items' => [ + 'description' => 'data structure.', + 'type' => 'object', + 'properties' => [ + 'X' => [ + 'description' => 'The distance from the top-left corner of the text area to the y-axis, with the top-left corner of the image as the origin, in pixels.', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '11', + ], + 'Y' => [ + 'description' => 'The distance from the top-left corner of the text area to the x-axis, with the top-left corner of the image as the origin, in pixels.', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '22', + ], + 'W' => [ + 'description' => 'The height of the text area, in pixels.', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '330', + ], + 'H' => [ + 'description' => 'The width of the text area, in pixels.', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '440', + ], + ], + ], + ], + ], + ], + ], + 'LogoData' => [ + 'description' => 'Logo identification information.', + 'type' => 'object', + 'properties' => [ + 'Location' => [ + 'description' => 'The location information of the identifier.', + 'type' => 'object', + 'properties' => [ + 'X' => [ + 'description' => 'The distance from the top-left corner of the text area to the y-axis, with the top-left corner of the image as the origin, in pixels.', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '11', + ], + 'Y' => [ + 'description' => 'The distance from the top-left corner of the text area to the x-axis, with the top-left corner of the image as the origin, in pixels.', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '22', + ], + 'W' => [ + 'description' => 'The height of the text area, in pixels.', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '330', + ], + 'H' => [ + 'description' => 'The width of the text area, in pixels.', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '440', + ], + ], + ], + 'Logo' => [ + 'description' => 'identification information', + 'type' => 'array', + 'items' => [ + 'description' => 'data structure.', + 'type' => 'object', + 'properties' => [ + 'Label' => [ + 'description' => 'Identify the category.', + 'type' => 'string', + 'example' => 'logo_sns', + ], + 'Name' => [ + 'description' => 'identifier name.', + 'type' => 'string', + 'example' => 'Alibaba Cloud', + ], + 'Confidence' => [ + 'description' => 'Confidence score, from 0 to 100, rounded to two decimal places.', + 'type' => 'number', + 'format' => 'float', + 'example' => '99.1', + ], + ], + ], + ], + ], + ], + ], + ], + 'RiskLevel' => [ + 'description' => 'Risk level.', + 'type' => 'string', + 'example' => 'high', + ], + ], + ], + ], + 'Result' => [ + 'description' => 'The risk labels, confidence scores, and other parameters of image detection results, in an array structure.', + 'type' => 'array', + 'items' => [ + 'description' => 'data structure.', + 'type' => 'object', + 'properties' => [ + 'Label' => [ + 'description' => 'The labels returned after image content detection. A single image may be associated with multiple labels and corresponding scores.', + 'type' => 'string', + 'example' => 'violent_explosion', + ], + 'Confidence' => [ + 'description' => 'Confidence score, ranging from 0 to 100, retained to two decimal places. Some labels do not have a confidence score.', + 'type' => 'number', + 'format' => 'float', + 'example' => '81.22', + ], + 'Description' => [ + 'description' => 'Description.', + 'type' => 'string', + 'example' => 'No risk detected', + ], + ], + ], + ], + 'RiskLevel' => [ + 'description' => 'Risk level.', + 'type' => 'string', + 'example' => 'high', + ], + 'ManualTaskId' => [ + 'type' => 'string', + ], + ], + ], + ], + ], + ], + ], + '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' => '图片批量检测', + 'requestParamsDescription' => '```'."\n" + .'{'."\n" + .' "Services": "baselineCheck,tonalityImprove",'."\n" + .' "ServiceParameters": {'."\n" + .' "imageUrl": "https://img.alicdn.com/tfs/TB1U4r9AeH2gK0jSZJnXXaT1FXa-2880-480.png",'."\n" + .' "dataId": "img123****"'."\n" + .' }'."\n" + .'}'."\n" + ."\n" + .'```', + ], + 'ManualCallback' => [ + 'summary' => 'Content Security Manual Review Result Callback Interface', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '264346', + 'abilityTreeNodes' => [ + 'FEATURElvwangIBEW89', + 'FEATURElvwangU90H4V', + 'FEATURElvwangBBY7QM', + 'FEATURElvwang870NMI', + ], + 'tenantRelevance' => 'publicInformation', + ], + 'parameters' => [ + [ + 'name' => 'Code', + 'in' => 'formData', + 'schema' => [ + 'description' => 'Code value', + 'type' => 'string', + 'required' => false, + 'example' => '200', + ], + ], + [ + 'name' => 'Msg', + 'in' => 'formData', + 'schema' => [ + 'description' => 'Message information', + 'type' => 'string', + 'required' => false, + 'example' => 'OK', + ], + ], + [ + 'name' => 'Checksum', + 'in' => 'formData', + 'schema' => [ + 'description' => 'Checksum.', + 'type' => 'string', + 'required' => false, + 'example' => 'abc', + ], + ], + [ + 'name' => 'ReqId', + 'in' => 'formData', + 'schema' => [ + 'description' => 'Platform request ID, used for troubleshooting assistance', + 'type' => 'string', + 'required' => false, + 'example' => 'B0963D30-BAB4-562F-9ED0-7A23AEC51C7C', + ], + ], + [ + 'name' => 'Data', + 'in' => 'formData', + 'schema' => [ + 'description' => 'Returned data.', + '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' => 'Channel field', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [ + 'ant' => 'ant', + ], + 'example' => 'ant', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Response Schema', + '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 information', + 'type' => 'string', + 'example' => 'SUCCESS', + ], + 'Code' => [ + 'description' => 'Error code', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\\\n\\",\\n \\"Message\\": \\"SUCCESS\\",\\n \\"Code\\": 200\\n}","type":"json"}]', + 'title' => 'Manual Review Channel Callback Interface', + 'extraInfo' => '无', + 'translator' => 'machine', + ], + 'ManualModeration' => [ + 'summary' => 'Content Security Manual Review Request Interface', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'paid', + 'abilityTreeCode' => '264342', + 'abilityTreeNodes' => [ + 'FEATURElvwangIBEW89', + 'FEATURElvwangU90H4V', + 'FEATURElvwangBBY7QM', + 'FEATURElvwang870NMI', + ], + 'tenantRelevance' => 'publicInformation', + ], + 'parameters' => [ + [ + 'name' => 'Service', + 'in' => 'formData', + 'schema' => [ + 'description' => 'Service.', + 'type' => 'string', + 'required' => false, + 'example' => 'imageManualCheck', + ], + ], + [ + 'name' => 'ServiceParameters', + 'in' => 'formData', + 'schema' => [ + 'description' => 'Parameter set required for the review service, in JSON string format.'."\n" + .'- url: The URL of the object to be checked. Please ensure that this URL is publicly accessible.'."\n" + .'- dataId: Optional, the data ID corresponding to the object being checked.', + 'type' => 'string', + 'required' => false, + 'example' => '{"url": "https://talesofai.oss-cn-shanghai.aliyuncs.com/xxx.mp4", "dataId": "data1234"}', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Response Schema', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => 'ID of the request', + 'type' => 'string', + 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****', + ], + 'Message' => [ + 'description' => 'Error message', + 'type' => 'string', + 'example' => 'SUCCESS', + ], + 'Code' => [ + 'description' => 'Status code', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Data' => [ + 'description' => 'Returned data.', + 'type' => 'object', + 'properties' => [ + 'DataId' => [ + 'description' => 'The value of dataId passed during the API request. This field will not be present if it was not provided during the request.', + 'type' => 'string', + 'example' => '2a5389eb-4ff8-4584-ac99-644e2a539aa1', + ], + 'TaskId' => [ + 'description' => 'Task ID', + 'type' => 'string', + 'example' => 'xxxxx-xxxxx', + ], + ], + ], + ], + ], + ], + ], + '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' => 'ManualModeration', + 'translator' => 'machine', + ], + 'ManualModerationResult' => [ + 'summary' => 'Retrieve manual review results', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '264414', + 'abilityTreeNodes' => [ + 'FEATURElvwangIBEW89', + 'FEATURElvwangU90H4V', + 'FEATURElvwangBBY7QM', + 'FEATURElvwang870NMI', + ], + 'tenantRelevance' => 'publicInformation', + ], + 'parameters' => [ + [ + 'name' => 'ServiceParameters', + 'in' => 'formData', + 'schema' => [ + 'description' => 'Set of parameters required by the service, in JSON string format.'."\n" + .'- TaskId: The task ID returned when the task was submitted.', + 'type' => 'string', + 'required' => false, + 'example' => '{\\"TaskId\\":\\"e5f2d886-4c23-440d-999c-bd98acde11b6\\"}', + ], + ], + ], + '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****', + ], + 'Message' => [ + 'description' => 'Error message', + 'type' => 'string', + 'example' => 'SUCCESS', + ], + 'Code' => [ + 'description' => 'Error code.', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'Data' => [ + 'description' => 'Returned data.', + 'type' => 'object', + 'properties' => [ + 'RiskLevel' => [ + 'description' => 'Risk level, returned based on the set high and low risk scores. Possible values include:'."\n" + ."\n" + .'- high: High risk'."\n" + .' '."\n" + .'- low: Low risk'."\n" + ."\n" + .' - none: No risk detected', + 'type' => 'string', + 'example' => 'high', + ], + 'DataId' => [ + 'description' => 'The value of dataId passed during the API request. This field will not be present if it was not provided during the request.', + 'type' => 'string', + 'example' => 'data1234', + ], + 'TaskId' => [ + 'description' => 'Task ID', + 'type' => 'string', + 'example' => 'xxxxx-xxxxx', + ], + 'Result' => [ + 'description' => 'Detailed label results.', + 'type' => 'array', + 'items' => [ + 'description' => 'Label item structure.', + 'type' => 'object', + 'properties' => [ + 'Label' => [ + 'description' => 'Risk label', + 'type' => 'string', + 'example' => 'violent_explosion', + ], + 'Description' => [ + 'description' => 'Label description', + 'type' => 'string', + 'example' => 'no risk', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + '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' => 'Content Security Manual Review Result Retrieval Interface', + 'translator' => 'machine', + ], + 'MultiModalGuard' => [ + 'summary' => '同步检测接口', + 'path' => '', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'paid', + 'abilityTreeNodes' => [ + 'FEATURElvwang828K27', + ], + ], + 'parameters' => [ + [ + 'name' => 'Service', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'query_security_check', + ], + ], + [ + 'name' => 'ServiceParameters', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '', + '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' => [ + 'Suggestion' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'pass', + ], + 'Type' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'contentModeration', + ], + 'Level' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'none', + ], + 'Result' => [ + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Ext' => [ + 'description' => '', + 'type' => 'any', + 'example' => '{}', + ], + 'Description' => [ + 'description' => '', + 'type' => 'string', + 'example' => '', + ], + 'Confidence' => [ + 'description' => '', + 'type' => 'number', + 'format' => 'float', + 'example' => '0', + ], + 'Label' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'contraband_act', + ], + 'Level' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'none', + ], + ], + ], + ], + ], + ], + ], + 'Suggestion' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'pass', + ], + 'DataId' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'data1234', + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'NoPermission', + 'errorMessage' => 'You don\'t have permission.', + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + '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"}]', + ], + 'MultiModalAgent' => [ + 'summary' => '多模态AgentAPI同步检测接口', + 'path' => '', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'paid', + 'abilityTreeNodes' => [ + 'FEATURElvwang828K27', + ], + ], + 'parameters' => [ + [ + 'name' => 'ServiceParameters', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '', + ], + ], + [ + 'name' => 'AppID', + 'in' => 'formData', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'txt_check_agent_01', + ], + ], + ], + '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' => '', + 'type' => 'string', + 'example' => '200', + ], + 'Message' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'SUCCESS', + ], + 'Data' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'DataId' => [ + 'description' => '', + 'type' => 'string', + 'example' => '26769ada6e264e7ba9aa048241e12be9', + ], + 'RiskLevel' => [ + 'description' => '', + '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' => '', + 'type' => 'string', + 'example' => 'TRACER_SLB_ALL_DEST_WEIGHT_0', + ], + ], + ], + ], + 'Usage' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'PromptLength' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '100', + ], + 'ContentLength' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '10', + ], + 'AgentDetail' => [ + 'description' => '', + 'type' => 'object', + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'NoPermission', + 'errorMessage' => 'You don\'t have permission.', + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + '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"}]', + ], + ], + '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', + ], + ], +]; |
