summaryrefslogtreecommitdiff
path: root/data/en_us/rai
diff options
context:
space:
mode:
Diffstat (limited to 'data/en_us/rai')
-rw-r--r--data/en_us/rai/2024-07-01/api-docs.php5693
1 files changed, 5691 insertions, 2 deletions
diff --git a/data/en_us/rai/2024-07-01/api-docs.php b/data/en_us/rai/2024-07-01/api-docs.php
index 19d0733..13fd555 100644
--- a/data/en_us/rai/2024-07-01/api-docs.php
+++ b/data/en_us/rai/2024-07-01/api-docs.php
@@ -1,4 +1,5693 @@
<?php return [
- 'code' => 500,
- 'message' => 'server error',
+ 'version' => '1.0',
+ 'info' => ['style' => 'RPC', 'product' => 'RAI', 'version' => '2024-07-01'],
+ 'directories' => [
+ [
+ 'children' => ['ListModelCategory', 'CreateModelInstance', 'UpdateModelInstance', 'ListModelInstance', 'GetModelInstanceInfo', 'DeleteModelInstance'],
+ 'type' => 'directory',
+ 'title' => 'Security expert model management',
+ ],
+ [
+ 'children' => ['ModelInputContentSyncDetect', 'ModelOutputContentSyncDetect', 'ModelInputContentAsyncDetect', 'ModelOutputContentAsyncDetect', 'GetModelInputContentDetectResult', 'GetModelOutputContentDetectResult'],
+ 'type' => 'directory',
+ 'title' => 'Online data toxicity detection',
+ ],
+ [
+ 'children' => ['GetPolicyDefaultOptions', 'ListPolicy', 'GetPolicyInfo'],
+ 'type' => 'directory',
+ 'title' => 'Online detection policy management',
+ ],
+ [
+ 'children' => ['CreateWordGroup', 'UpdateWordGroup', 'ListWordGroup', 'GetWordGroup', 'DeleteWordGroup'],
+ 'type' => 'directory',
+ 'title' => 'Online keyword management',
+ ],
+ [
+ 'children' => ['CreateTopic', 'UpdateTopic', 'ListTopic', 'DeleteTopic'],
+ 'type' => 'directory',
+ 'title' => 'Sensitive topic management',
+ ],
+ [
+ 'children' => ['ContentSyncDetect', 'ContentAsyncDetect', 'GetContentDetectResult', 'BatchContentSyncDetect', 'BatchContentAsyncDetect'],
+ 'type' => 'directory',
+ 'title' => 'Offline data toxicity detection',
+ ],
+ [
+ 'children' => ['RegisterAccount', 'CheckAccount'],
+ 'type' => 'directory',
+ 'title' => 'Service activation',
+ ],
+ [
+ 'children' => ['CreatePolicy', 'DeletePolicy', 'GetTopic', 'UpdatePolicy'],
+ 'title' => 'Others',
+ 'type' => 'directory',
+ ],
+ ],
+ 'components' => [
+ 'schemas' => [],
+ ],
+ 'apis' => [
+ 'BatchContentAsyncDetect' => [
+ 'summary' => 'Detects content in batches asynchronously.',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'paid',
+ 'abilityTreeNodes' => ['FEATURElearnFME3AK'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-shanghai', 'title' => ''],
+ ],
+ [
+ 'name' => 'SceneName',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The scenario name.', 'type' => 'string', 'required' => false, 'example' => '""', 'title' => ''],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The service name.', 'type' => 'string', 'required' => false, 'example' => 'textDetection', 'title' => ''],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'The content to detect.',
+ 'type' => 'object',
+ 'properties' => [
+ 'serviceParameterList' => [
+ 'description' => 'The list of objects to detect.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The object to detect.',
+ 'type' => 'object',
+ 'properties' => [
+ 'content' => ['description' => '1. The text content to review. The maximum length is 10,000 characters, including both English and Chinese characters.'."\n"
+ ."\n"
+ .'2. Alternatively, the URL of an image.', 'type' => 'string', 'required' => false, 'example' => '"XXXXXXXX"', 'title' => ''],
+ ],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response.',
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => ['description' => 'The error code returned if the call fails. For more information, see Error codes.', 'type' => 'string', 'example' => '00000', 'title' => ''],
+ 'Data' => [
+ 'description' => 'The returned data.',
+ 'type' => 'object',
+ 'properties' => [
+ 'TaskId' => ['description' => 'The task ID.', 'type' => 'string', 'example' => '19657954336', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'HttpStatusCode' => ['description' => 'The HTTP status code.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
+ 'Message' => ['description' => 'The error message returned if an error occurs.', 'type' => 'string', 'example' => '""', 'title' => ''],
+ 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****F68692', 'title' => ''],
+ 'Success' => ['description' => 'Indicates whether the operation was successful. A value of \\`true\\` indicates success. A value of \\`false\\` indicates failure.', 'type' => 'boolean', 'example' => 'True', 'title' => ''],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'errorCodes' => [],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"00000\\",\\n \\"Data\\": {\\n \\"TaskId\\": \\"19657954336\\"\\n },\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"\\\\\\"\\\\\\"\\",\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****F68692\\",\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => 'Asynchronous batch content detection',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'rai:BatchContentAsyncDetect',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'RAI', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ 'additionalActions' => [],
+ ],
+ ],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ ],
+ 'BatchContentSyncDetect' => [
+ 'summary' => 'Batch content sync detection.',
+ 'methods' => ['get', 'post'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'paid',
+ 'abilityTreeNodes' => ['FEATURElearnFME3AK'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-shanghai', 'title' => ''],
+ ],
+ [
+ 'name' => 'SceneName',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Scenario name.', 'type' => 'string', 'required' => false, 'example' => '""', 'title' => ''],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Service name.', 'type' => 'string', 'required' => false, 'example' => 'textDetection', 'title' => ''],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'Request body.',
+ 'type' => 'object',
+ 'properties' => [
+ 'serviceParameterList' => [
+ 'description' => 'List of batch Content Moderation detection items. The maximum number of items is 20.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'List of batch Content Moderation detection items. The maximum number of items is 20.',
+ 'type' => 'object',
+ 'properties' => [
+ 'content' => ['description' => 'The text content to be reviewed. The maximum limit is 10,000 characters (including English and Chinese).', 'type' => 'string', 'required' => false, 'example' => '"要检测的内容"', 'title' => ''],
+ ],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => ['description' => 'Status code. 00000 indicates success. Other values indicate failure.', 'type' => 'string', 'example' => '00000', 'title' => ''],
+ 'Data' => [
+ 'description' => 'Response data',
+ 'type' => 'object',
+ 'properties' => [
+ 'DetectResultList' => [
+ 'description' => 'List of detection result objects',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'Detection result object',
+ 'type' => 'object',
+ 'properties' => [
+ 'RiskInfo' => ['description' => 'Risk labels. Multiple labels are separated by commas.', 'type' => 'string', 'example' => '色情', 'title' => ''],
+ 'RiskResult' => ['description' => '0: No risk'."\n"
+ .'1: Risk exists', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'HttpStatusCode' => ['description' => 'Error code description', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
+ 'Message' => ['description' => 'If an error occurs, the error message is returned.', 'type' => 'string', 'example' => '""', 'title' => ''],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Request ID', 'type' => 'string', 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****'],
+ 'Success' => ['description' => 'Indicates whether the operation was successful. True indicates success, and false indicates failure.', 'type' => 'boolean', 'example' => 'True', 'title' => ''],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'errorCodes' => [],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"00000\\",\\n \\"Data\\": {\\n \\"DetectResultList\\": [\\n {\\n \\"RiskInfo\\": \\"色情\\",\\n \\"RiskResult\\": 1\\n }\\n ]\\n },\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"\\\\\\"\\\\\\"\\",\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => 'Batch content synchronization detection',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'rai:BatchContentSyncDetect',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'RAI', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ 'additionalActions' => [],
+ ],
+ ],
+ ],
+ 'CheckAccount' => [
+ 'summary' => 'Checks whether a user has activated the service and returns the account status.',
+ 'path' => '',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATURElearnFME3AK'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-shanghai', 'title' => ''],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response.',
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => ['description' => 'The status code. 00000 indicates success. Any other value indicates failure.', 'type' => 'string', 'example' => '00000', 'title' => ''],
+ 'Data' => [
+ 'description' => 'The response data.',
+ 'type' => 'object',
+ 'properties' => [
+ 'CheckResult' => ['description' => '- -1: The account is not registered.'."\n"
+ ."\n"
+ .'- 0: The account is in use and functioning normally.'."\n"
+ ."\n"
+ .'- 1: The account is frozen and cannot use RAI services.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'HttpStatusCode' => ['description' => 'The error code description.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
+ 'Message' => ['description' => 'If an error occurs, this field returns the error message.', 'type' => 'string', 'example' => '""', 'title' => ''],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'The request ID.', 'type' => 'string', 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****'],
+ 'Success' => ['description' => 'Possible values: true or false. This indicates whether the API call itself succeeded. It does not reflect the success of any subsequent business operation.', 'type' => 'boolean', 'example' => 'True', 'title' => ''],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"00000\\",\\n \\"Data\\": {\\n \\"CheckResult\\": 1\\n },\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"\\\\\\"\\\\\\"\\",\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => 'Check Account Status ',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'rai:CheckAccount',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'RAI', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'ContentAsyncDetect' => [
+ 'summary' => 'Asynchronously detect a single piece of content.',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'paid',
+ 'abilityTreeNodes' => ['FEATURElearnFME3AK'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-shanghai', 'title' => ''],
+ ],
+ [
+ 'name' => 'SceneName',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Scenario name.', 'type' => 'string', 'required' => false, 'example' => '""', 'title' => ''],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Service name.', 'type' => 'string', 'required' => false, 'example' => 'textDetection'."\n"
+ .'imageDetection', 'title' => ''],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'Content to detect.',
+ 'type' => 'object',
+ 'properties' => [
+ 'serviceParameter' => [
+ 'description' => 'Detection parameter object.',
+ 'type' => 'object',
+ 'properties' => [
+ 'content' => ['description' => '1. The text content to review. The maximum limit is 10,000 characters (including English and Chinese).'."\n"
+ ."\n"
+ .'2. Or the URL of the image to review.', 'type' => 'string', 'required' => false, 'example' => '"要检测的内容"', 'title' => ''],
+ ],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => ['description' => 'Status code. 00000 indicates success; other values indicate failure.', 'type' => 'string', 'example' => '00000', 'title' => ''],
+ 'Data' => [
+ 'description' => 'Response data.',
+ 'type' => 'object',
+ 'properties' => [
+ 'TaskId' => ['description' => 'Task ID.', 'type' => 'string', 'example' => '5d85cd38-03b2-49fd-86b2-be85c4b13215', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'HttpStatusCode' => ['description' => 'Error code description.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
+ 'Message' => ['description' => 'If an error occurs, the error message is returned.', 'type' => 'string', 'example' => '""', 'title' => ''],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Request ID.', 'type' => 'string', 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****'],
+ 'Success' => ['description' => 'Request successful.', 'type' => 'boolean', 'example' => 'True', 'title' => ''],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'errorCodes' => [],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"00000\\",\\n \\"Data\\": {\\n \\"TaskId\\": \\"5d85cd38-03b2-49fd-86b2-be85c4b13215\\"\\n },\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"\\\\\\"\\\\\\"\\",\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => 'Asynchronous detection of a single piece of content',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'rai:ContentAsyncDetect',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'RAI', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ 'additionalActions' => [],
+ ],
+ ],
+ ],
+ 'ContentSyncDetect' => [
+ 'summary' => 'Detects a single content synchronization.',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'paid',
+ 'abilityTreeNodes' => ['FEATURElearnFME3AK'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-shanghai', 'title' => ''],
+ ],
+ [
+ 'name' => 'SceneName',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Scenario name.', 'type' => 'string', 'required' => false, 'example' => '""', 'title' => ''],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Service name.', 'type' => 'string', 'required' => false, 'example' => 'textDetection', 'title' => ''],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'Content to detect.',
+ 'type' => 'object',
+ 'properties' => [
+ 'serviceParameter' => [
+ 'description' => 'Detection object.',
+ 'type' => 'object',
+ 'properties' => [
+ 'content' => ['description' => 'Text content to review. Maximum 10,000 characters (including English and Chinese).', 'type' => 'string', 'required' => false, 'example' => '"要检测的内容"', 'title' => ''],
+ ],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => ['description' => 'Result code. 200 for success; others for failure.', 'type' => 'string', 'example' => '00000', 'title' => ''],
+ 'Data' => [
+ 'description' => 'Returns the number of affected rows.',
+ 'type' => 'object',
+ 'properties' => [
+ 'RiskInfo' => ['description' => 'Risk tags. Separate multiple tags with commas.', 'type' => 'string', 'example' => '色情', 'title' => ''],
+ 'RiskResult' => ['description' => '0: No risk1: Risk present', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'HttpStatusCode' => ['description' => 'HTTP status code.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
+ 'Message' => ['description' => 'Return message.', 'type' => 'string', 'example' => '""', 'title' => ''],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Request ID.', 'type' => 'string', 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****'],
+ 'Success' => ['description' => 'Operation success status. True for success, false for failure.', 'type' => 'boolean', 'example' => 'True', 'title' => ''],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'errorCodes' => [],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"00000\\",\\n \\"Data\\": {\\n \\"RiskInfo\\": \\"色情\\",\\n \\"RiskResult\\": 1\\n },\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"\\\\\\"\\\\\\"\\",\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => 'Synchronize detection for a single piece of content.',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'rai:ContentSyncDetect',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'RAI', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ 'additionalActions' => [],
+ ],
+ ],
+ ],
+ 'CreateModelInstance' => [
+ 'summary' => 'Creates a model instance.',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'paid',
+ 'abilityTreeNodes' => ['FEATURElearnFME3AK'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ModelCategoryId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Model category ID.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1', 'title' => ''],
+ ],
+ [
+ 'name' => 'EasServiceName',
+ 'in' => 'query',
+ 'schema' => ['description' => 'EAS service name.', 'type' => 'string', 'required' => false, 'example' => 'demo', 'title' => ''],
+ ],
+ [
+ 'name' => 'EasServiceId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'EAS service ID.', 'type' => 'string', 'required' => false, 'example' => 'eas-m-12345678', 'title' => ''],
+ ],
+ [
+ 'name' => 'ModelUrl',
+ 'in' => 'query',
+ 'schema' => ['description' => 'EAS Internet Endpoint.', 'type' => 'string', 'required' => false, 'example' => 'http://12345*****.cn-shanghai.aliyuncs.com/api/predict/demo', 'title' => ''],
+ ],
+ [
+ 'name' => 'ModelVpcUrl',
+ 'in' => 'query',
+ 'schema' => ['description' => 'EAS VPC Endpoint.', 'type' => 'string', 'required' => false, 'example' => 'http://12345*****.vpc.cn-shanghai.aliyuncs.com/api/predict/demo', 'title' => ''],
+ ],
+ [
+ 'name' => 'ModelToken',
+ 'in' => 'query',
+ 'schema' => ['description' => 'EAS Token.', 'type' => 'string', 'required' => false, 'example' => 'MzJiMDI5MDliODc0MTlkYmI0ZDhlYmExYjczYTIyZTE3Zm********', 'title' => ''],
+ ],
+ [
+ 'name' => 'ModelCallName',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Model name parameter in OpenAI API.', 'type' => 'string', 'required' => false, 'example' => 'demo', 'title' => ''],
+ ],
+ [
+ 'name' => 'WorkspaceId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Workspace ID.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '643168', 'title' => ''],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => ['description' => 'Status code. 00000 indicates success; other values indicate failure.', 'type' => 'string', 'example' => '00000', 'title' => ''],
+ 'HttpStatusCode' => ['description' => 'HTTP status code.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
+ 'Message' => ['description' => 'Returns an error message if an error occurs.', 'type' => 'string', 'example' => '""', 'title' => ''],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****F68692'],
+ 'Success' => ['description' => 'Indicates whether the operation was successful. True indicates success, false indicates failure.', 'type' => 'boolean', 'example' => 'True', 'title' => ''],
+ 'ModelInstanceId' => ['description' => 'Model instance ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '1', 'title' => ''],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"00000\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"\\\\\\"\\\\\\"\\",\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****F68692\\",\\n \\"Success\\": true,\\n \\"ModelInstanceId\\": 1\\n}","type":"json"}]',
+ 'title' => 'Create a model instance',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'rai:CreateModelInstance',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'RAI', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'CreatePolicy' => [
+ 'summary' => 'Creates a detection policy.',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'paid',
+ 'abilityTreeNodes' => ['FEATURElearnFME3AK'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-shanghai', 'title' => ''],
+ ],
+ [
+ 'name' => 'PolicyName',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Detection policy name.', 'type' => 'string', 'required' => false, 'example' => '测试策略', 'title' => ''],
+ ],
+ [
+ 'name' => 'HarmfulCategoryConfigInfoList',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'List of harmful category configurations.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'Harmful category configuration object.',
+ 'type' => 'object',
+ 'properties' => [
+ 'CategoryId' => ['description' => 'Harmful category ID.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1', 'title' => ''],
+ 'InputOutputType' => ['description' => 'Model input or output type. Valid values: 0 (input) and 1 (output).', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '0', 'title' => ''],
+ 'CategoryType' => ['description' => 'Content type. Valid values: 0 (text) and 1 (image).', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '0', 'title' => ''],
+ 'CategoryLabel' => ['description' => 'Category name.', 'type' => 'string', 'required' => false, 'example' => '伦理道德', 'title' => ''],
+ 'IsEnabled' => ['description' => 'Whether the category is enabled. Valid values: 0 (disabled) and 1 (enabled).', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
+ 'SecurityLevel' => ['description' => 'Security level. Valid values: 0 (low), 1 (medium), and 2 (high).', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '0', 'title' => ''],
+ ],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ [
+ 'name' => 'WordGroupInfoList',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'List of keyword group objects.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'Keyword group object.',
+ 'type' => 'object',
+ 'properties' => [
+ 'GroupId' => ['description' => 'Keyword group ID.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1', 'title' => ''],
+ 'InputOutputType' => ['description' => 'Model input or output type. Valid values: 0 (input) and 1 (output).', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '0', 'title' => ''],
+ 'GroupName' => ['description' => 'Keyword group name.', 'type' => 'string', 'required' => false, 'example' => '测试分组', 'title' => ''],
+ ],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ [
+ 'name' => 'PromptAttackInfo',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'Prompt injection detection result object.',
+ 'type' => 'object',
+ 'properties' => [
+ 'IsEnabled' => ['description' => 'Whether prompt injection detection is enabled. Valid values: 0 (disabled) and 1 (enabled).', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
+ 'SecurityLevel' => ['description' => 'Security level. Valid values: 0 (low), 1 (medium), and 2 (high).', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
+ ],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ [
+ 'name' => 'PromptAttackInfoList',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'List of prompt injection detections.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'List of attack prompts',
+ 'type' => 'object',
+ 'properties' => [
+ 'CategoryId' => ['description' => 'Harmful category ID.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1', 'title' => ''],
+ 'CategoryLabel' => ['description' => 'Category name.', 'type' => 'string', 'required' => false, 'example' => '角色扮演', 'title' => ''],
+ 'IsEnabled' => ['description' => 'Whether prompt injection detection is enabled. Valid values: 0 (disabled) and 1 (enabled).', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
+ 'SecurityLevel' => ['description' => 'Security level. Valid values: 0 (low), 1 (medium), and 2 (high).', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
+ ],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ [
+ 'name' => 'TopicConfigInfoList',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'List of sensitive topics.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'List of sensitive subjects',
+ 'type' => 'object',
+ 'properties' => [
+ 'TopicId' => ['description' => 'Sensitive topic ID.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '4', 'title' => ''],
+ 'InputOutputType' => ['description' => 'Model input or output type. Valid values: 0 (input) and 1 (output).', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '0', 'title' => ''],
+ 'CategoryType' => ['description' => 'Content type. Valid values: 0 (text) and 1 (image).', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '0', 'title' => ''],
+ 'TopicName' => ['description' => 'Topic name.', 'type' => 'string', 'required' => false, 'example' => '业务敏感', 'title' => ''],
+ 'SecurityLevel' => ['description' => 'Security level. Valid values: 0 (low), 1 (medium), and 2 (high).', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
+ ],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ [
+ 'name' => 'WorkspaceId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Workspace ID.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '608226', 'title' => ''],
+ ],
+ [
+ 'name' => 'EnableSensitiveInputCheck',
+ 'in' => 'query',
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
+ ],
+ [
+ 'name' => 'EnableSensitiveOutputCheck',
+ 'in' => 'query',
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
+ ],
+ [
+ 'name' => 'SceneType',
+ 'in' => 'query',
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
+ ],
+ [
+ 'name' => 'InputSafeAnswer',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
+ ],
+ [
+ 'name' => 'OutputSafeAnswer',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
+ ],
+ [
+ 'name' => 'InputSafeAnswerSwitch',
+ 'in' => 'query',
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
+ ],
+ [
+ 'name' => 'OutputSafeAnswerSwitch',
+ 'in' => 'query',
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
+ ],
+ [
+ 'name' => 'IsSidecarPolicy',
+ 'in' => 'query',
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
+ ],
+ [
+ 'name' => 'ContentSafeModelInstanceId',
+ 'in' => 'query',
+ 'schema' => ['type' => 'integer', 'format' => 'int64', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
+ ],
+ [
+ 'name' => 'PromptAttackModelInstanceId',
+ 'in' => 'query',
+ 'schema' => ['type' => 'integer', 'format' => 'int64', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
+ ],
+ [
+ 'name' => 'SensitiveTopicModelInstanceId',
+ 'in' => 'query',
+ 'schema' => ['type' => 'integer', 'format' => 'int64', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
+ ],
+ [
+ 'name' => 'SensitiveWordList',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Word' => ['type' => 'string', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
+ 'Label' => ['type' => 'string', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ 'required' => false,
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'SensitiveConfigList',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'SensitiveConfigId' => ['type' => 'integer', 'format' => 'int64', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
+ 'ActionType' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
+ 'IsEnabled' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ 'required' => false,
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'RegularExpressList',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RegularExpressName' => ['type' => 'string', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
+ 'RegularExpress' => ['type' => 'string', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
+ 'ActionType' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ 'required' => false,
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'SensitiveTopicList',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'TopicName' => ['type' => 'string', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
+ 'TopicDefinition' => ['type' => 'string', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
+ 'TopicExampleInfoList' => [
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Content' => ['type' => 'string', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
+ 'ExampleType' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ 'required' => false,
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ 'required' => false,
+ ],
+ 'SecurityLevel' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
+ 'CategoryType' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ 'required' => false,
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Response.',
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => ['description' => 'Status code. A value of 00000 indicates success. Other values indicate failure.', 'type' => 'string', 'example' => '00000', 'title' => ''],
+ 'PolicyId' => ['description' => 'Policy ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '16', 'title' => ''],
+ 'PolicyIdentifier' => ['description' => 'Policy identifier.', 'type' => 'string', 'example' => '2tehcwesh4xx', 'title' => ''],
+ 'HttpStatusCode' => ['description' => 'HTTP status code.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
+ 'Message' => ['description' => 'Error message, if any.', 'type' => 'string', 'example' => '""', 'title' => ''],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Request ID.', 'type' => 'string', 'example' => '74D2A967-2CE0-519B-B623-38D851734EC5'],
+ 'Success' => ['description' => 'Indicates whether the operation succeeded. A value of true indicates success. A value of false indicates failure.', 'type' => 'boolean', 'example' => 'True', 'title' => ''],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"00000\\",\\n \\"PolicyId\\": 16,\\n \\"PolicyIdentifier\\": \\"2tehcwesh4xx\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"\\\\\\"\\\\\\"\\",\\n \\"RequestId\\": \\"74D2A967-2CE0-519B-B623-38D851734EC5\\",\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => 'Create Detection Policy',
+ 'changeSet' => [
+ ['createdAt' => '2025-10-16T03:11:06.000Z', 'description' => 'Request parameters changed'],
+ ['createdAt' => '2025-08-06T10:35:02.000Z', 'description' => 'Request parameters changed'],
+ ['createdAt' => '2025-06-12T08:56:27.000Z', 'description' => 'Request parameters changed'],
+ ],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'rai:CreatePolicy',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'RAI', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'CreateTopic' => [
+ 'summary' => 'Creates a sensitive topic.',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'paid',
+ 'abilityTreeNodes' => ['FEATURElearnFME3AK'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-shanghai', 'title' => ''],
+ ],
+ [
+ 'name' => 'TopicName',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The name of the topic to create.', 'type' => 'string', 'required' => false, 'example' => '业务敏感', 'title' => ''],
+ ],
+ [
+ 'name' => 'TopicDefinition',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The definition of the topic.', 'type' => 'string', 'required' => false, 'example' => '主题的定义描述', 'title' => ''],
+ ],
+ [
+ 'name' => 'WorkspaceId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The workspace ID.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '643168', 'title' => ''],
+ ],
+ [
+ 'name' => 'BodyData',
+ 'in' => 'formData',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'The request object.',
+ 'type' => 'object',
+ 'properties' => [
+ 'TopicExampleInfoList' => [
+ 'description' => 'The list of sample examples.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The sample example object.',
+ 'type' => 'object',
+ 'properties' => [
+ 'Content' => ['description' => 'The description of a positive or negative sample example.', 'type' => 'string', 'required' => false, 'example' => '食品安全要重视', 'title' => ''],
+ 'ExampleType' => ['description' => 'The type of the sample example.'."\n"
+ .'0: Positive sample.'."\n"
+ .'1: Negative sample.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
+ ],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response object.',
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => ['description' => 'The status code. A value of 00000 indicates success. Other values indicate failure.', 'type' => 'string', 'example' => '00000', 'title' => ''],
+ 'HttpStatusCode' => ['description' => 'The HTTP status code.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
+ 'Message' => ['description' => 'If an error occurs, an error message is returned.', 'type' => 'string', 'example' => '""', 'title' => ''],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'The request ID.', 'type' => 'string', 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****'],
+ 'Success' => ['description' => 'Indicates whether the operation was successful. A value of true indicates success. A value of false indicates failure.', 'type' => 'boolean', 'example' => 'True', 'title' => ''],
+ 'TopicId' => ['description' => 'If the call is successful, the ID of the newly created sensitive topic is returned.', 'type' => 'integer', 'format' => 'int64', 'example' => '217', 'title' => ''],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"00000\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"\\\\\\"\\\\\\"\\",\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Success\\": true,\\n \\"TopicId\\": 217\\n}","type":"json"}]',
+ 'title' => 'Create a sensitive topic ',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'rai:CreateTopic',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'RAI', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'CreateWordGroup' => [
+ 'summary' => 'CreateWordGroup',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'paid',
+ 'abilityTreeNodes' => ['FEATURElearnFME3AK'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-shanghai', 'title' => ''],
+ ],
+ [
+ 'name' => 'GroupName',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Keyword group name', 'type' => 'string', 'required' => false, 'example' => '测试分组', 'title' => ''],
+ ],
+ [
+ 'name' => 'Commit',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Whether to commit.'."\n"
+ .'false: Not actually saved, only checked'."\n"
+ .'true: Commit and save', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'title' => ''],
+ ],
+ [
+ 'name' => 'WorkspaceId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Workspace ID', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '643168', 'title' => ''],
+ ],
+ [
+ 'name' => 'BodyData',
+ 'in' => 'formData',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'Request object',
+ 'type' => 'object',
+ 'properties' => [
+ 'WordInfoList' => [
+ 'description' => 'Keyword group list',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'Keyword object',
+ 'type' => 'object',
+ 'properties' => [
+ 'Word' => ['description' => 'Keyword', 'type' => 'string', 'required' => false, 'example' => '投资', 'title' => ''],
+ 'Label' => ['description' => 'Label', 'type' => 'string', 'required' => false, 'example' => '业务敏感', 'title' => ''],
+ ],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => ['description' => 'Status code, 00000 indicates success; others indicate failure.', 'type' => 'string', 'example' => '00000', 'title' => ''],
+ 'WordErrorInfoList' => [
+ 'description' => 'Error information list',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'Error information',
+ 'type' => 'object',
+ 'properties' => [
+ 'Index' => ['description' => 'Position of the error information in the array.', 'type' => 'integer', 'format' => 'int64', 'example' => '1', 'title' => ''],
+ 'Word' => ['description' => 'Keyword', 'type' => 'string', 'example' => '投资', 'title' => ''],
+ 'Label' => ['description' => 'Label', 'type' => 'string', 'example' => '业务敏感', 'title' => ''],
+ 'ErrorStatus' => ['description' => 'Error status information.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ 'ErrorMessage' => ['description' => 'Error message description', 'type' => 'string', 'example' => '关键词不能为空', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'HttpStatusCode' => ['description' => 'HTTP status code', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
+ 'Message' => ['description' => 'If there is an error, returns the error message.', 'type' => 'string', 'example' => '""', 'title' => ''],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Request ID', 'type' => 'string', 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****'],
+ 'Success' => ['description' => 'Indicates whether the call was successful. true: Call succeeded. false: Call failed.', 'type' => 'boolean', 'example' => 'True', 'title' => ''],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"00000\\",\\n \\"WordErrorInfoList\\": [\\n {\\n \\"Index\\": 1,\\n \\"Word\\": \\"投资\\",\\n \\"Label\\": \\"业务敏感\\",\\n \\"ErrorStatus\\": 1,\\n \\"ErrorMessage\\": \\"关键词不能为空\\"\\n }\\n ],\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"\\\\\\"\\\\\\"\\",\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => 'Create Keyword Strategy',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'rai:CreateWordGroup',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'RAI', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ 'translator' => 'machine',
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ ],
+ 'DeleteModelInstance' => [
+ 'summary' => 'Delete a model instance.',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'paid',
+ 'abilityTreeNodes' => ['FEATURElearnFME3AK'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ModelInstanceIdList',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'List of instance IDs to delete',
+ 'type' => 'array',
+ 'items' => ['description' => 'Instance ID', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '123', 'title' => ''],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => ['description' => 'Result code. 200 indicates success. Any other value indicates failure.', 'type' => 'string', 'example' => '00000', 'title' => ''],
+ 'HttpStatusCode' => ['description' => 'HTTP status code', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
+ 'Message' => ['description' => 'Error message.', 'type' => 'string', 'example' => '""', 'title' => ''],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'ID of the request', 'type' => 'string', 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****'],
+ 'Success' => ['description' => 'Indicates whether the operation succeeded. true means success. false means failure.', 'type' => 'boolean', 'example' => 'True', 'title' => ''],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"00000\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"\\\\\\"\\\\\\"\\",\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => 'Delete a model instance',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'rai:DeleteModelInstance',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'RAI', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'DeletePolicy' => [
+ 'summary' => 'DeletePolicy',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'paid',
+ 'abilityTreeNodes' => ['FEATURElearnFME3AK'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-shanghai', 'title' => ''],
+ ],
+ [
+ 'name' => 'PolicyIdList',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'List of detection policy IDs',
+ 'type' => 'array',
+ 'items' => ['description' => 'Detection policy ID', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1', 'title' => ''],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => ['description' => 'Status code, 00000 indicates success; others indicate failure.', 'type' => 'string', 'example' => '00000', 'title' => ''],
+ 'HttpStatusCode' => ['description' => 'HTTP status code description', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
+ 'Message' => ['description' => 'Error message', 'type' => 'string', 'example' => '""', 'title' => ''],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Request ID', 'type' => 'string', 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****'],
+ 'Success' => ['description' => 'Indicates whether the operation was successful. true means success, false means failure.', 'type' => 'boolean', 'example' => 'True', 'title' => ''],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"00000\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"\\\\\\"\\\\\\"\\",\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => 'Delete Detection Policy',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'rai:DeletePolicy',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'RAI', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ 'translator' => 'machine',
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ ],
+ 'DeleteTopic' => [
+ 'summary' => 'Deletes sensitive topics.',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'paid',
+ 'abilityTreeNodes' => ['FEATURElearnFME3AK'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-shanghai', 'title' => ''],
+ ],
+ [
+ 'name' => 'TopicIdList',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'A list of IDs of the sensitive topics to delete.',
+ 'type' => 'array',
+ 'items' => ['description' => 'The ID of a sensitive topic.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '216', 'title' => ''],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response object.',
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => ['description' => 'The status code. A value of 00000 indicates success. Other values indicate failure.', 'type' => 'string', 'example' => '00000', 'title' => ''],
+ 'HttpStatusCode' => ['description' => 'The HTTP status code.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
+ 'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => '""', 'title' => ''],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'The request ID.', 'type' => 'string', 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****'],
+ 'Success' => ['description' => 'Indicates whether the operation was successful. A value of true indicates success. A value of false indicates failure.', 'type' => 'boolean', 'example' => 'True', 'title' => ''],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"00000\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"\\\\\\"\\\\\\"\\",\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => 'Delete sensitive topics ',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'rai:DeleteTopic',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'RAI', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'DeleteWordGroup' => [
+ 'summary' => 'DeleteWordGroup',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'paid',
+ 'abilityTreeNodes' => ['FEATURElearnFME3AK'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-shanghai', 'title' => ''],
+ ],
+ [
+ 'name' => 'GroupIdList',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'List of keyword strategy IDs.',
+ 'type' => 'array',
+ 'items' => ['description' => 'Keyword strategy ID.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1', 'title' => ''],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Response.',
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => ['description' => 'Result code, 200 indicates success; others indicate failure.', 'type' => 'string', 'example' => '00000', 'title' => ''],
+ 'HttpStatusCode' => ['description' => 'HTTP status code.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
+ 'Message' => ['description' => 'If an error occurs, returns the error message.', 'type' => 'string', 'example' => '""', 'title' => ''],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Request ID.', 'type' => 'string', 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****'],
+ 'Success' => ['description' => 'Indicates whether the operation was successful. Possible values:'."\n"
+ .'- True indicates success.'."\n"
+ .'- False indicates failure.', 'type' => 'boolean', 'example' => 'True', 'title' => ''],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"00000\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"\\\\\\"\\\\\\"\\",\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => 'Delete Keyword Strategy',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'rai:DeleteWordGroup',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'RAI', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ 'translator' => 'machine',
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ ],
+ 'GetContentDetectResult' => [
+ 'summary' => 'Query the results of an asynchronous content detection task.',
+ 'methods' => ['get', 'post'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'paid',
+ 'abilityTreeNodes' => ['FEATURElearnFME3AK'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-shanghai', 'title' => ''],
+ ],
+ [
+ 'name' => 'TaskId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Task ID.', 'type' => 'string', 'required' => false, 'example' => '5d85cd38-03b2-49fd-86b2-be85c4b13215', 'title' => ''],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => ['description' => 'Status code. 00000 indicates success; others indicate failure.', 'type' => 'string', 'example' => '00000', 'title' => ''],
+ 'Data' => [
+ 'description' => 'Response data',
+ 'type' => 'object',
+ 'properties' => [
+ 'DetectResultList' => [
+ 'description' => 'Detection result list',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'Detection result object',
+ 'type' => 'object',
+ 'properties' => [
+ 'RiskInfo' => ['description' => 'Risk tags, separated by commas if multiple.', 'type' => 'string', 'example' => '色情', 'title' => ''],
+ 'RiskResult' => ['description' => '0: No risk'."\n"
+ .'1: Risk exists', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ 'Status' => ['description' => '0: Queued'."\n"
+ .'1: Processing'."\n"
+ .'2: Processed'."\n"
+ .'3: Failed', 'type' => 'integer', 'format' => 'int32', 'example' => '2', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'ProcessedCount' => ['description' => 'Number of tasks processed.', 'type' => 'integer', 'format' => 'int32', 'example' => '10', 'title' => ''],
+ 'TaskId' => ['description' => 'Asynchronous task ID', 'type' => 'string', 'example' => '任务ID', 'title' => ''],
+ 'TaskStatus' => ['description' => 'Task processing status:'."\n"
+ .'0: Queued'."\n"
+ .'1: Processing'."\n"
+ .'2: Processed'."\n"
+ .'3: Failed', 'type' => 'integer', 'format' => 'int32', 'example' => '2', 'title' => ''],
+ 'TotalCount' => ['description' => 'Total number of tasks.', 'type' => 'integer', 'format' => 'int32', 'example' => '10', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'HttpStatusCode' => ['description' => 'HTTP status code', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
+ 'Message' => ['description' => 'Returns an error message if an error occurs.', 'type' => 'string', 'example' => '""', 'title' => ''],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Request ID', 'type' => 'string', 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****'],
+ 'Success' => ['description' => 'Operation success status. True indicates success, false indicates failure.', 'type' => 'boolean', 'example' => 'True', 'title' => ''],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"00000\\",\\n \\"Data\\": {\\n \\"DetectResultList\\": [\\n {\\n \\"RiskInfo\\": \\"色情\\",\\n \\"RiskResult\\": 1,\\n \\"Status\\": 2\\n }\\n ],\\n \\"ProcessedCount\\": 10,\\n \\"TaskId\\": \\"任务ID\\",\\n \\"TaskStatus\\": 2,\\n \\"TotalCount\\": 10\\n },\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"\\\\\\"\\\\\\"\\",\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => 'Query asynchronous detection result ',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'rai:GetContentDetectResult',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'RAI', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'GetModelInputContentDetectResult' => [
+ 'summary' => 'GetModelInputContentDetectResult',
+ 'methods' => ['get', 'post'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'paid',
+ 'abilityTreeNodes' => ['FEATURElearnFME3AK'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-shanghai', 'title' => ''],
+ ],
+ [
+ 'name' => 'TaskId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Task ID.', 'type' => 'string', 'required' => false, 'example' => '5d85cd38-03b2-49fd-86b2-be85c4b13215', 'title' => ''],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => ['description' => 'Status code, 00000 indicates success; others indicate failure.', 'type' => 'string', 'example' => '00000', 'title' => ''],
+ 'DetectResultList' => [
+ 'description' => 'Detection result object',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'Detection result object',
+ 'type' => 'object',
+ 'properties' => [
+ 'RiskResult' => ['description' => '0: No risk'."\n"
+ .'1: Risk exists', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
+ 'Status' => ['description' => '0: Queued'."\n"
+ .'1: Processing'."\n"
+ .'2: Completed'."\n"
+ .'3: Failed', 'type' => 'integer', 'format' => 'int32', 'example' => '2', 'title' => ''],
+ 'TraceInfo' => [
+ 'description' => 'Inspection result',
+ 'type' => 'object',
+ 'properties' => [
+ 'BlockWord' => [
+ 'description' => 'Detected keywords',
+ 'type' => 'object',
+ 'properties' => [
+ 'RiskResult' => ['description' => '0: No risk'."\n"
+ .'1: Risk exists', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
+ 'BlockWordGroupInfoList' => [
+ 'description' => 'Keyword detection result object list',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'Keyword detection result object',
+ 'type' => 'object',
+ 'properties' => [
+ 'GroupName' => ['description' => 'Keyword group name', 'type' => 'string', 'example' => '测试分组', 'title' => ''],
+ 'BlockWordList' => [
+ 'description' => 'Keyword detection result object list',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'Keyword detection result list',
+ 'type' => 'object',
+ 'properties' => [
+ 'Word' => ['description' => 'Word', 'type' => 'string', 'example' => '测试关键词', 'title' => ''],
+ 'WordLabel' => ['description' => 'Label', 'type' => 'string', 'example' => '测试标签', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'HarmfulCategories' => [
+ 'description' => 'List of harmful category result objects',
+ 'type' => 'object',
+ 'properties' => [
+ 'RiskResult' => ['description' => '0: No risk'."\n"
+ .'1: Risk exists', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
+ 'ConfidenceScore' => ['description' => 'Confidence score', 'type' => 'number', 'format' => 'double', 'example' => '0.0', 'title' => ''],
+ 'HarmfulCategoryInfoList' => [
+ 'description' => 'List of harmful category objects',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'List of harmful category objects',
+ 'type' => 'object',
+ 'properties' => [
+ 'CategoryType' => ['description' => '0: Text'."\n"
+ .'1: Image', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
+ 'CategoryLabel' => ['description' => 'Category name', 'type' => 'string', 'example' => '伦理道德', 'title' => ''],
+ 'SubCategoryLabel' => ['description' => 'Sub-category label', 'type' => 'string', 'example' => '不良行为', 'title' => ''],
+ 'SecurityLevel' => ['description' => 'Security level'."\n"
+ .'0: Low'."\n"
+ .'1: Medium'."\n"
+ .'2: High', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
+ 'RiskResult' => ['description' => '0: No risk'."\n"
+ .'1: Risk exists', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'PromptAttack' => [
+ 'description' => 'Prompt attack information',
+ 'type' => 'object',
+ 'properties' => [
+ 'RiskResult' => ['description' => '0: No risk'."\n"
+ .'1: Risk exists', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
+ 'PromptAttackInfo' => ['description' => 'Prompt attack detection result object', 'type' => 'string', 'example' => '角色扮演', 'title' => ''],
+ 'SecurityLevel' => ['description' => 'Security level'."\n"
+ .'0: Low'."\n"
+ .'1: Medium'."\n"
+ .'2: High', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
+ 'ConfidenceScore' => ['description' => 'Confidence score', 'type' => 'number', 'format' => 'double', 'example' => '0.0', 'title' => ''],
+ 'PromptAttackInfoList' => [
+ 'description' => 'Prompt attack list',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'Prompt attack list',
+ 'type' => 'object',
+ 'properties' => [
+ 'CategoryType' => ['description' => '0: Text'."\n"
+ .'1: Image', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
+ 'CategoryLabel' => ['description' => 'Category name', 'type' => 'string', 'example' => '角色扮演', 'title' => ''],
+ 'SecurityLevel' => ['description' => 'Security level'."\n"
+ .'0: Low'."\n"
+ .'1: Medium'."\n"
+ .'2: High', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
+ 'RiskResult' => ['description' => '0: No risk'."\n"
+ .'1: Risk exists', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'DenyTopics' => [
+ 'description' => 'Sensitive topic object list',
+ 'type' => 'object',
+ 'properties' => [
+ 'RiskResult' => ['description' => '0: No risk'."\n"
+ .'1: Risk exists', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ 'ConfidenceScore' => ['description' => 'ConfidenceScore', 'type' => 'number', 'format' => 'double', 'example' => '0.0', 'title' => ''],
+ 'TopicInfoList' => [
+ 'description' => 'List of sensitive topics',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'List of sensitive topics',
+ 'type' => 'object',
+ 'properties' => [
+ 'CategoryType' => ['description' => '0: Text'."\n"
+ .'1: Image', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
+ 'TopicName' => ['description' => 'Topic name', 'type' => 'string', 'example' => '业务敏感', 'title' => ''],
+ 'SecurityLevel' => ['description' => 'Security level'."\n"
+ .'0: Low'."\n"
+ .'1: Medium'."\n"
+ .'2: High', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
+ 'RiskResult' => ['description' => '0: No risk'."\n"
+ .'1: Risk exists', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'ProcessedCount' => ['description' => 'Number of processed items in the task.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ 'TaskId' => ['description' => 'Task ID.', 'type' => 'string', 'example' => '5d85cd38-03b2-49fd-86b2-be85c4b13215', 'title' => ''],
+ 'TaskStatus' => ['description' => 'Task processing status:'."\n"
+ .'0: Queued'."\n"
+ .'1: Processing'."\n"
+ .'2: Completed'."\n"
+ .'3: Failed', 'type' => 'integer', 'format' => 'int32', 'example' => '2', 'title' => ''],
+ 'TotalCount' => ['description' => 'Total number of items', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ 'HttpStatusCode' => ['description' => 'HTTP status code', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
+ 'Message' => ['description' => 'Error message.', 'type' => 'string', 'example' => '""', 'title' => ''],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Request ID', 'type' => 'string', 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****'],
+ 'Success' => ['description' => 'Indicates whether the operation was successful. true means success, false means failure.', 'type' => 'boolean', 'example' => 'True', 'title' => ''],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"00000\\",\\n \\"DetectResultList\\": [\\n {\\n \\"RiskResult\\": 0,\\n \\"Status\\": 2,\\n \\"TraceInfo\\": {\\n \\"BlockWord\\": {\\n \\"RiskResult\\": 0,\\n \\"BlockWordGroupInfoList\\": [\\n {\\n \\"GroupName\\": \\"测试分组\\",\\n \\"BlockWordList\\": [\\n {\\n \\"Word\\": \\"测试关键词\\",\\n \\"WordLabel\\": \\"测试标签\\"\\n }\\n ]\\n }\\n ]\\n },\\n \\"HarmfulCategories\\": {\\n \\"RiskResult\\": 0,\\n \\"ConfidenceScore\\": 0,\\n \\"HarmfulCategoryInfoList\\": [\\n {\\n \\"CategoryType\\": 0,\\n \\"CategoryLabel\\": \\"伦理道德\\",\\n \\"SubCategoryLabel\\": \\"不良行为\\",\\n \\"SecurityLevel\\": 0,\\n \\"RiskResult\\": 0\\n }\\n ]\\n },\\n \\"PromptAttack\\": {\\n \\"RiskResult\\": 0,\\n \\"PromptAttackInfo\\": \\"角色扮演\\",\\n \\"SecurityLevel\\": 0,\\n \\"ConfidenceScore\\": 0,\\n \\"PromptAttackInfoList\\": [\\n {\\n \\"CategoryType\\": 0,\\n \\"CategoryLabel\\": \\"角色扮演\\",\\n \\"SecurityLevel\\": 0,\\n \\"RiskResult\\": 0\\n }\\n ]\\n },\\n \\"DenyTopics\\": {\\n \\"RiskResult\\": 1,\\n \\"ConfidenceScore\\": 0,\\n \\"TopicInfoList\\": [\\n {\\n \\"CategoryType\\": 0,\\n \\"TopicName\\": \\"业务敏感\\",\\n \\"SecurityLevel\\": 0,\\n \\"RiskResult\\": 1\\n }\\n ]\\n }\\n }\\n }\\n ],\\n \\"ProcessedCount\\": 1,\\n \\"TaskId\\": \\"5d85cd38-03b2-49fd-86b2-be85c4b13215\\",\\n \\"TaskStatus\\": 2,\\n \\"TotalCount\\": 1,\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"\\\\\\"\\\\\\"\\",\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => 'Get Model Input Content Detection Result',
+ 'changeSet' => [
+ ['createdAt' => '2025-06-12T08:56:27.000Z', 'description' => 'Response parameters changed'],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'rai:GetModelInputContentDetectResult',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'RAI', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ 'translator' => 'machine',
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ ],
+ 'GetModelInstanceInfo' => [
+ 'summary' => 'Retrieves information about a model instance.',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'paid',
+ 'abilityTreeNodes' => ['FEATURElearnFME3AK'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ModelInstanceId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Model instance ID.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '123', 'title' => ''],
+ ],
+ [
+ 'name' => 'SceneType',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Scenario type. Valid values: 0 (input), 1 (output), or 2 (input and output).', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '2', 'title' => ''],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Response schema.',
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => ['description' => 'Status code. 00000 indicates success. Other values indicate failure.', 'type' => 'string', 'example' => '00000', 'title' => ''],
+ 'HarmfulCategoryConfigInfoList' => [
+ 'description' => 'List of harmful category configurations.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'Harmful category configuration.',
+ 'type' => 'object',
+ 'properties' => [
+ 'CategoryId' => ['description' => 'Harmful category ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '1', 'title' => ''],
+ 'InputOutputType' => ['description' => 'Model input or output type. Valid values: 0 (input) or 1 (output).', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
+ 'CategoryType' => ['description' => 'Category type. Valid values: 0 (text) or 1 (image).', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
+ 'CategoryLabel' => ['description' => 'Category name.', 'type' => 'string', 'example' => '伦理道德', 'title' => ''],
+ 'SecurityLevel' => ['description' => 'Security level. Valid values: 0 (low), 1 (medium), or 2 (high).', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'HttpStatusCode' => ['description' => 'HTTP status code.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
+ 'Message' => ['description' => 'Error message.', 'type' => 'string', 'example' => '""', 'title' => ''],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Request ID.', 'type' => 'string', 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****'],
+ 'Success' => ['description' => 'Indicates whether the operation succeeded. true indicates success. false indicates failure.', 'type' => 'boolean', 'example' => 'True', 'title' => ''],
+ 'GmtModified' => ['description' => 'Time when the policy was modified.', 'type' => 'integer', 'format' => 'int64', 'example' => '1634122349000', 'title' => ''],
+ 'PromptAttackInfoList' => [
+ 'description' => 'List of prompt attack objects.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'Prompt attack object.',
+ 'type' => 'object',
+ 'properties' => [
+ 'CategoryId' => ['description' => 'Harmful category ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '1', 'title' => ''],
+ 'CategoryLabel' => ['description' => 'Category name.', 'type' => 'string', 'example' => '角色扮演', 'title' => ''],
+ 'SecurityLevel' => ['description' => 'Security level. Valid values: 0 (low), 1 (medium), or 2 (high).', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'ModelInstanceId' => ['description' => 'Model instance ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '123', 'title' => ''],
+ 'EasServiceName' => ['description' => 'EAS service name.', 'type' => 'string', 'example' => 'rai_content_detection_model', 'title' => ''],
+ 'EasServiceId' => ['description' => 'EAS service ID.', 'type' => 'string', 'example' => 'eas-m-12345678', 'title' => ''],
+ 'ModelSource' => ['description' => 'Model source. Valid values: 1 (PAI) or 2 (other).', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ 'IsSupportText' => ['description' => 'Indicates whether text is supported.', 'type' => 'boolean', 'example' => 'True', 'title' => ''],
+ 'IsSupportImage' => ['description' => 'Indicates whether images are supported.', 'type' => 'boolean', 'example' => 'False', 'title' => ''],
+ 'ModelUrl' => ['description' => 'Internet endpoint for EAS.', 'type' => 'string', 'example' => 'http://12345*****.cn-shanghai.aliyuncs.com/api/predict/echo', 'title' => ''],
+ 'ModelVpcUrl' => ['description' => 'VPC endpoint for EAS.', 'type' => 'string', 'example' => 'http://12345*****.vpc.cn-shanghai.aliyuncs.com/api/predict/demo', 'title' => ''],
+ 'ModelToken' => ['description' => 'Model token.', 'type' => 'string', 'example' => 'MzJiMDI5MDliODc0MTlkYmI0ZDhlYmExYjczYTIyZTE3Zm********', 'title' => ''],
+ 'ModelCallName' => ['description' => 'Model name parameter in the OpenAI API.', 'type' => 'string', 'example' => 'demo', 'title' => ''],
+ 'Description' => ['description' => 'Instance description.', 'type' => 'string', 'example' => 'opencompass-vllm07-acc', 'title' => ''],
+ 'ModelCategoryId' => ['description' => 'Model category ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '1', 'title' => ''],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"00000\\",\\n \\"HarmfulCategoryConfigInfoList\\": [\\n {\\n \\"CategoryId\\": 1,\\n \\"InputOutputType\\": 0,\\n \\"CategoryType\\": 0,\\n \\"CategoryLabel\\": \\"伦理道德\\",\\n \\"SecurityLevel\\": 1\\n }\\n ],\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"\\\\\\"\\\\\\"\\",\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Success\\": true,\\n \\"GmtModified\\": 1634122349000,\\n \\"PromptAttackInfoList\\": [\\n {\\n \\"CategoryId\\": 1,\\n \\"CategoryLabel\\": \\"角色扮演\\",\\n \\"SecurityLevel\\": 1\\n }\\n ],\\n \\"ModelInstanceId\\": 123,\\n \\"EasServiceName\\": \\"rai_content_detection_model\\",\\n \\"EasServiceId\\": \\"eas-m-12345678\\",\\n \\"ModelSource\\": 1,\\n \\"IsSupportText\\": true,\\n \\"IsSupportImage\\": true,\\n \\"ModelUrl\\": \\"http://12345*****.cn-shanghai.aliyuncs.com/api/predict/echo\\",\\n \\"ModelVpcUrl\\": \\"http://12345*****.vpc.cn-shanghai.aliyuncs.com/api/predict/demo\\",\\n \\"ModelToken\\": \\"MzJiMDI5MDliODc0MTlkYmI0ZDhlYmExYjczYTIyZTE3Zm********\\",\\n \\"ModelCallName\\": \\"demo\\",\\n \\"Description\\": \\"opencompass-vllm07-acc\\",\\n \\"ModelCategoryId\\": 1\\n}","type":"json"}]',
+ 'title' => 'Obtain model instance information',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'rai:GetModelInstanceInfo',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'RAI', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'GetModelOutputContentDetectResult' => [
+ 'summary' => 'GetModelOutputContentDetectResult',
+ 'methods' => ['get', 'post'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'paid',
+ 'abilityTreeNodes' => ['FEATURElearnFME3AK'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-shanghai', 'title' => ''],
+ ],
+ [
+ 'name' => 'TaskId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Task ID.', 'type' => 'string', 'required' => false, 'example' => '5d85cd38-03b2-49fd-86b2-be85c4b13215', 'title' => ''],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => ['description' => 'Status code, 00000 indicates success; others indicate failure.', 'type' => 'string', 'example' => '00000', 'title' => ''],
+ 'DetectResultList' => [
+ 'description' => 'List of detection result objects',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'Detection result object',
+ 'type' => 'object',
+ 'properties' => [
+ 'RiskResult' => ['description' => '0: No risk'."\n"
+ .'1: Risk exists', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
+ 'Status' => ['description' => '0: Queued'."\n"
+ .'1: Processing'."\n"
+ .'2: Completed'."\n"
+ .'3: Failed', 'type' => 'integer', 'format' => 'int32', 'example' => '2', 'title' => ''],
+ 'TraceInfo' => [
+ 'description' => 'Inspection results',
+ 'type' => 'object',
+ 'properties' => [
+ 'BlockWord' => [
+ 'description' => 'Detected keywords',
+ 'type' => 'object',
+ 'properties' => [
+ 'RiskResult' => ['description' => '0: No risk'."\n"
+ .'1: Risk exists', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
+ 'BlockWordGroupInfoList' => [
+ 'description' => 'List of keyword detection result objects',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'Keyword detection result object',
+ 'type' => 'object',
+ 'properties' => [
+ 'GroupName' => ['description' => 'Keyword group name', 'type' => 'string', 'example' => '测试分组', 'title' => ''],
+ 'BlockWordList' => [
+ 'description' => 'List of keyword detection results',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'Keyword detection result',
+ 'type' => 'object',
+ 'properties' => [
+ 'Word' => ['description' => 'Word', 'type' => 'string', 'example' => '测试关键词', 'title' => ''],
+ 'WordLabel' => ['description' => 'Label', 'type' => 'string', 'example' => '测试标签', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'HarmfulCategories' => [
+ 'description' => 'List of harmful category result objects',
+ 'type' => 'object',
+ 'properties' => [
+ 'RiskResult' => ['description' => '0: No risk'."\n"
+ .'1: Risk exists', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
+ 'ConfidenceScore' => ['description' => 'Confidence score', 'type' => 'number', 'format' => 'double', 'example' => '0.0', 'title' => ''],
+ 'HarmfulCategoryInfoList' => [
+ 'description' => 'List of harmful category objects',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'Harmful category object',
+ 'type' => 'object',
+ 'properties' => [
+ 'CategoryType' => ['description' => '0: Text'."\n"
+ .'1: Image', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
+ 'CategoryLabel' => ['description' => 'Category name', 'type' => 'string', 'example' => '伦理道德', 'title' => ''],
+ 'SubCategoryLabel' => ['description' => 'Sub-category label', 'type' => 'string', 'example' => '不良行为', 'title' => ''],
+ 'SecurityLevel' => ['description' => 'Security level'."\n"
+ .'0: Low'."\n"
+ .'1: Medium'."\n"
+ .'2: High', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ 'RiskResult' => ['description' => '0: No risk'."\n"
+ .'1: Risk exists', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'PromptAttack' => [
+ 'description' => 'PromptAttack',
+ 'type' => 'object',
+ 'properties' => [
+ 'RiskResult' => ['description' => '0: No risk'."\n"
+ .'1: Risk exists', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
+ 'PromptAttackInfo' => ['description' => 'Prompt attack detection result object', 'type' => 'string', 'example' => '角色扮演', 'title' => ''],
+ 'SecurityLevel' => ['description' => 'Security level'."\n"
+ .'0: Low'."\n"
+ .'1: Medium'."\n"
+ .'2: High', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ 'ConfidenceScore' => ['description' => 'Confidence score', 'type' => 'number', 'format' => 'double', 'example' => '0.0', 'title' => ''],
+ 'PromptAttackInfoList' => [
+ 'description' => 'Prompt attack list',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'Prompt attack list',
+ 'type' => 'object',
+ 'properties' => [
+ 'CategoryType' => ['description' => '0: Text'."\n"
+ .'1: Image', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
+ 'CategoryLabel' => ['description' => 'Category name', 'type' => 'string', 'example' => '角色扮演', 'title' => ''],
+ 'SecurityLevel' => ['description' => 'Security level'."\n"
+ .'0: Low'."\n"
+ .'1: Medium'."\n"
+ .'2: High', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
+ 'RiskResult' => ['description' => '0: No risk'."\n"
+ .'1: Risk exists', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'DenyTopics' => [
+ 'description' => 'Sensitive topic object list',
+ 'type' => 'object',
+ 'properties' => [
+ 'RiskResult' => ['description' => '0: No risk'."\n"
+ .'1: Risk exists', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
+ 'ConfidenceScore' => ['description' => 'Confidence score', 'type' => 'number', 'format' => 'double', 'example' => '0.0', 'title' => ''],
+ 'TopicInfoList' => [
+ 'description' => 'List of sensitive topics',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'Sensitive topic list',
+ 'type' => 'object',
+ 'properties' => [
+ 'CategoryType' => ['description' => '0: Text'."\n"
+ .'1: Image', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
+ 'TopicName' => ['description' => 'Topic name', 'type' => 'string', 'example' => '业务敏感', 'title' => ''],
+ 'SecurityLevel' => ['description' => 'Security level'."\n"
+ .'0: Low'."\n"
+ .'1: Medium'."\n"
+ .'2: High', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
+ 'RiskResult' => ['description' => '0: No risk'."\n"
+ .'1: Risk exists', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'ProcessedCount' => ['description' => 'Number of processed items in the task.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ 'TaskId' => ['description' => 'Task ID.', 'type' => 'string', 'example' => '5d85cd38-03b2-49fd-86b2-be85c4b13215', 'title' => ''],
+ 'TaskStatus' => ['description' => 'Task processing status:'."\n"
+ .'0: Queued'."\n"
+ .'1: Processing'."\n"
+ .'2: Completed'."\n"
+ .'3: Failed', 'type' => 'integer', 'format' => 'int32', 'example' => '2', 'title' => ''],
+ 'TotalCount' => ['description' => 'Total number of items', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ 'HttpStatusCode' => ['description' => 'HTTP status code', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
+ 'Message' => ['description' => 'Error message.', 'type' => 'string', 'example' => '""', 'title' => ''],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Request ID', 'type' => 'string', 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****'],
+ 'Success' => ['description' => 'Whether the operation was successful. true indicates success, false indicates failure.', 'type' => 'boolean', 'example' => 'True', 'title' => ''],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"00000\\",\\n \\"DetectResultList\\": [\\n {\\n \\"RiskResult\\": 0,\\n \\"Status\\": 2,\\n \\"TraceInfo\\": {\\n \\"BlockWord\\": {\\n \\"RiskResult\\": 0,\\n \\"BlockWordGroupInfoList\\": [\\n {\\n \\"GroupName\\": \\"测试分组\\",\\n \\"BlockWordList\\": [\\n {\\n \\"Word\\": \\"测试关键词\\",\\n \\"WordLabel\\": \\"测试标签\\"\\n }\\n ]\\n }\\n ]\\n },\\n \\"HarmfulCategories\\": {\\n \\"RiskResult\\": 0,\\n \\"ConfidenceScore\\": 0,\\n \\"HarmfulCategoryInfoList\\": [\\n {\\n \\"CategoryType\\": 0,\\n \\"CategoryLabel\\": \\"伦理道德\\",\\n \\"SubCategoryLabel\\": \\"不良行为\\",\\n \\"SecurityLevel\\": 1,\\n \\"RiskResult\\": 0\\n }\\n ]\\n },\\n \\"PromptAttack\\": {\\n \\"RiskResult\\": 0,\\n \\"PromptAttackInfo\\": \\"角色扮演\\",\\n \\"SecurityLevel\\": 1,\\n \\"ConfidenceScore\\": 0,\\n \\"PromptAttackInfoList\\": [\\n {\\n \\"CategoryType\\": 0,\\n \\"CategoryLabel\\": \\"角色扮演\\",\\n \\"SecurityLevel\\": 0,\\n \\"RiskResult\\": 1\\n }\\n ]\\n },\\n \\"DenyTopics\\": {\\n \\"RiskResult\\": 0,\\n \\"ConfidenceScore\\": 0,\\n \\"TopicInfoList\\": [\\n {\\n \\"CategoryType\\": 0,\\n \\"TopicName\\": \\"业务敏感\\",\\n \\"SecurityLevel\\": 0,\\n \\"RiskResult\\": 0\\n }\\n ]\\n }\\n }\\n }\\n ],\\n \\"ProcessedCount\\": 1,\\n \\"TaskId\\": \\"5d85cd38-03b2-49fd-86b2-be85c4b13215\\",\\n \\"TaskStatus\\": 2,\\n \\"TotalCount\\": 1,\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"\\\\\\"\\\\\\"\\",\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => 'Get Model Output Content Detection Result',
+ 'changeSet' => [
+ ['createdAt' => '2025-06-12T08:56:27.000Z', 'description' => 'Response parameters changed'],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'rai:GetModelOutputContentDetectResult',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'RAI', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ 'translator' => 'machine',
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ ],
+ 'GetPolicyDefaultOptions' => [
+ 'summary' => 'GetPolicyDefaultOptions',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'paid',
+ 'abilityTreeNodes' => ['FEATURElearnFME3AK'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-shanghai', 'title' => ''],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => ['description' => 'Status code, 00000 indicates success; others indicate failure.', 'type' => 'string', 'example' => '00000', 'title' => ''],
+ 'WordGroupInfoList' => [
+ 'description' => 'List of keyword group objects',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'Keyword group object',
+ 'type' => 'object',
+ 'properties' => [
+ 'GroupId' => ['description' => 'Keyword group ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '1', 'title' => ''],
+ 'InputOutputType' => ['description' => 'Model input/output type'."\n"
+ .'0: Input'."\n"
+ .'1: Output', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
+ 'GroupName' => ['description' => 'Keyword group name', 'type' => 'string', 'example' => '测试分组', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'HarmfulCategoryInfoList' => [
+ 'description' => 'List of harmful category objects',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'Harmful category object',
+ 'type' => 'object',
+ 'properties' => [
+ 'CategoryId' => ['description' => 'Harmful category ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1', 'title' => ''],
+ 'InputOutputType' => ['description' => 'Model input/output type'."\n"
+ .'0: Input'."\n"
+ .'1: Output', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
+ 'CategoryType' => ['description' => '0: Text'."\n"
+ .'1: Image', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
+ 'CategoryLabel' => ['description' => 'Category name', 'type' => 'string', 'example' => '伦理道德', 'title' => ''],
+ 'IsEnabled' => ['description' => 'Harmful category configuration switch'."\n"
+ .'0: Off'."\n"
+ .'1: On', 'type' => 'integer', 'format' => 'int32', 'example' => 'True', 'title' => ''],
+ 'SecurityLevel' => ['description' => 'Security level'."\n"
+ .'0: Low'."\n"
+ .'1: Medium'."\n"
+ .'2: High', 'type' => 'integer', 'format' => 'int32', 'example' => '2', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'PromptAttackInfo' => [
+ 'description' => 'Prompt attack detection result object',
+ 'type' => 'object',
+ 'properties' => [
+ 'IsEnabled' => ['description' => 'Harmful category configuration switch'."\n"
+ .'0: Off'."\n"
+ .'1: On', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ 'SecurityLevel' => ['description' => 'Security level'."\n"
+ .'0: Low'."\n"
+ .'1: Medium'."\n"
+ .'2: High', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'HttpStatusCode' => ['description' => 'HTTP status code', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
+ 'Message' => ['description' => 'Return message.', 'type' => 'string', 'example' => '""', 'title' => ''],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Request ID', 'type' => 'string', 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****'],
+ 'Success' => ['description' => 'Indicates whether the operation was successful. `true` means success, `false` means failure.', 'type' => 'boolean', 'example' => 'True', 'title' => ''],
+ 'PromptAttackInfoList' => [
+ 'description' => 'Prompt attack list',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'Prompt attack list',
+ 'type' => 'object',
+ 'properties' => [
+ 'CategoryId' => ['description' => 'Harmful category ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1', 'title' => ''],
+ 'CategoryLabel' => ['description' => 'Category name', 'type' => 'string', 'example' => '角色扮演', 'title' => ''],
+ 'IsEnabled' => ['description' => 'Prompt attack configuration switch'."\n"
+ .'0: Off'."\n"
+ .'1: On', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ 'SecurityLevel' => ['description' => 'Security level'."\n"
+ .'0: Low'."\n"
+ .'1: Medium'."\n"
+ .'2: High', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'TopicConfigInfoList' => [
+ 'description' => 'Sensitive topic list',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'Sensitive topic object',
+ 'type' => 'object',
+ 'properties' => [
+ 'TopicId' => ['description' => 'Sensitive topic ID', 'type' => 'integer', 'format' => 'int64', 'example' => '4', 'title' => ''],
+ 'InputOutputType' => ['description' => 'Model input/output type'."\n"
+ .'0: Input'."\n"
+ .'1: Output', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
+ 'CategoryType' => ['description' => '0: Text'."\n"
+ .'1: Image', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
+ 'TopicName' => ['description' => 'Topic name', 'type' => 'string', 'example' => '业务敏感', 'title' => ''],
+ 'SecurityLevel' => ['description' => 'Security level'."\n"
+ .'0: Low'."\n"
+ .'1: Medium'."\n"
+ .'2: High', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'EnableSensitiveInputCheck' => ['description' => 'Indicates whether sensitive protection input check is enabled ', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ 'EnableSensitiveOutputCheck' => ['description' => 'Whether to enable sensitive output protection check ', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ 'InputSafeAnswer' => ['description' => 'Prompt input safe response', 'type' => 'string', 'example' => 'Sorry, I cannot answer this question.', 'title' => ''],
+ 'OutputSafeAnswer' => ['description' => 'Model output safe response ', 'type' => 'string', 'example' => 'Sorry, I cannot answer this question.', 'title' => ''],
+ 'InputSafeAnswerSwitch' => ['description' => 'Prompt input safety response toggle. 0 indicates shutdown; 1 indicates Enabled. ', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ 'OutputSafeAnswerSwitch' => ['description' => 'Model output safety fallback response toggle. 0 indicates disabled; 1 indicates enabled. ', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ 'SensitiveDataTypeList' => [
+ 'description' => 'sensitive data List ',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'sensitive data object ',
+ 'type' => 'object',
+ 'properties' => [
+ 'SensitiveConfigId' => ['description' => 'sensitive category configuration Id ', 'type' => 'integer', 'format' => 'int64', 'example' => '123', 'title' => ''],
+ 'SensitiveName' => ['description' => 'Category name ', 'type' => 'string', 'example' => '出生日期', 'title' => ''],
+ 'DataType' => ['description' => 'class ', 'type' => 'string', 'example' => '个人信息', 'title' => ''],
+ 'Example' => ['description' => 'Sample Content ', 'type' => 'string', 'example' => 'my birthday is 20000101', 'title' => ''],
+ 'ExampleProcessed' => ['description' => 'masking effect ', 'type' => 'string', 'example' => 'my birthday is ********', 'title' => ''],
+ 'MatchAndReplace' => ['description' => 'masking method ', 'type' => 'string', 'example' => '字符转换', 'title' => ''],
+ 'ActionType' => ['description' => 'response method. 0: Detection only, 1: masking, 2: refusal to answer ', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ 'IsEnabled' => ['description' => 'is enabled. 0: No, 1: Yes ', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"00000\\",\\n \\"WordGroupInfoList\\": [\\n {\\n \\"GroupId\\": 1,\\n \\"InputOutputType\\": 0,\\n \\"GroupName\\": \\"测试分组\\"\\n }\\n ],\\n \\"HarmfulCategoryInfoList\\": [\\n {\\n \\"CategoryId\\": 1,\\n \\"InputOutputType\\": 0,\\n \\"CategoryType\\": 0,\\n \\"CategoryLabel\\": \\"伦理道德\\",\\n \\"IsEnabled\\": 0,\\n \\"SecurityLevel\\": 2\\n }\\n ],\\n \\"PromptAttackInfo\\": {\\n \\"IsEnabled\\": 1,\\n \\"SecurityLevel\\": 1\\n },\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"\\\\\\"\\\\\\"\\",\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Success\\": true,\\n \\"PromptAttackInfoList\\": [\\n {\\n \\"CategoryId\\": 1,\\n \\"CategoryLabel\\": \\"角色扮演\\",\\n \\"IsEnabled\\": 1,\\n \\"SecurityLevel\\": 0\\n }\\n ],\\n \\"TopicConfigInfoList\\": [\\n {\\n \\"TopicId\\": 4,\\n \\"InputOutputType\\": 0,\\n \\"CategoryType\\": 0,\\n \\"TopicName\\": \\"业务敏感\\",\\n \\"SecurityLevel\\": 0\\n }\\n ],\\n \\"EnableSensitiveInputCheck\\": 1,\\n \\"EnableSensitiveOutputCheck\\": 1,\\n \\"InputSafeAnswer\\": \\"Sorry, I cannot answer this question.\\",\\n \\"OutputSafeAnswer\\": \\"Sorry, I cannot answer this question.\\",\\n \\"InputSafeAnswerSwitch\\": 1,\\n \\"OutputSafeAnswerSwitch\\": 1,\\n \\"SensitiveDataTypeList\\": [\\n {\\n \\"SensitiveConfigId\\": 123,\\n \\"SensitiveName\\": \\"出生日期\\",\\n \\"DataType\\": \\"个人信息\\",\\n \\"Example\\": \\"my birthday is 20000101\\",\\n \\"ExampleProcessed\\": \\"my birthday is ********\\",\\n \\"MatchAndReplace\\": \\"字符转换\\",\\n \\"ActionType\\": 1,\\n \\"IsEnabled\\": 1\\n }\\n ]\\n}","type":"json"}]',
+ 'title' => 'Query Detection Policy Default Options',
+ 'changeSet' => [
+ ['createdAt' => '2025-10-16T03:11:06.000Z', 'description' => 'Response parameters changed'],
+ ['createdAt' => '2025-08-06T10:35:02.000Z', 'description' => 'Response parameters changed'],
+ ['createdAt' => '2025-06-12T08:56:27.000Z', 'description' => 'Response parameters changed'],
+ ],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'rai:GetPolicyDefaultOptions',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'RAI', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'GetPolicyInfo' => [
+ 'summary' => 'Queries the details of a detection policy.',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'paid',
+ 'abilityTreeNodes' => ['FEATURElearnFME3AK'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-shanghai', 'title' => ''],
+ ],
+ [
+ 'name' => 'PolicyId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Detection policy ID.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '16', 'title' => ''],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Response.',
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => ['description' => 'Result code. 00000 means success. Any other value means failure.', 'type' => 'string', 'example' => '00000', 'title' => ''],
+ 'PolicyIdentifier' => ['description' => 'Policy identifier.', 'type' => 'string', 'example' => 'x1bc5xgs4uhx', 'title' => ''],
+ 'PolicyName' => ['description' => 'Detection policy name.', 'type' => 'string', 'example' => '测试策略', 'title' => ''],
+ 'WordGroupInfoList' => [
+ 'description' => 'List of keyword group objects.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'Keyword group object.',
+ 'type' => 'object',
+ 'properties' => [
+ 'GroupId' => ['description' => 'Keyword group ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '1', 'title' => ''],
+ 'InputOutputType' => ['description' => 'Model input or output type.0: Input.1: Output.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
+ 'GroupName' => ['description' => 'Keyword group name.', 'type' => 'string', 'example' => '测试分组', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'HarmfulCategoryConfigInfoList' => [
+ 'description' => 'List of harmful category configurations.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'Harmful category configuration.',
+ 'type' => 'object',
+ 'properties' => [
+ 'CategoryConfigId' => ['description' => 'Harmful category configuration ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '1', 'title' => ''],
+ 'InputOutputType' => ['description' => 'Model input or output type.0: Input.1: Output.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
+ 'CategoryType' => ['description' => '0: Text.1: Image.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
+ 'CategoryLabel' => ['description' => 'Category name.', 'type' => 'string', 'example' => '伦理道德', 'title' => ''],
+ 'IsEnabled' => ['description' => 'Harmful category configuration status.0: Disabled.1: Enabled.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ 'SecurityLevel' => ['description' => 'Security level.0: Low\\.1: Medium.2: High.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ 'CategoryId' => ['type' => 'integer', 'format' => 'int64', 'description' => '', 'title' => '', 'example' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'PromptAttackInfo' => [
+ 'description' => 'Prompt injection detection result object.',
+ 'type' => 'object',
+ 'properties' => [
+ 'IsEnabled' => ['description' => 'Prompt injection configuration status.0: Disabled.1: Enabled.', 'type' => 'integer', 'format' => 'int32', 'example' => 'true', 'title' => ''],
+ 'SecurityLevel' => ['description' => 'Security level.0: Low\\.1: Medium.2: High.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'HttpStatusCode' => ['description' => 'HTTP status code.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
+ 'Message' => ['description' => 'Error message.', 'type' => 'string', 'example' => '""', 'title' => ''],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Request ID.', 'type' => 'string', 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****'],
+ 'Success' => ['description' => 'Whether the operation succeeded. true means success. false means failure.', 'type' => 'boolean', 'example' => 'True', 'title' => ''],
+ 'GmtModified' => ['description' => 'Time when the policy was last modified.', 'type' => 'integer', 'format' => 'int64', 'example' => '1634122349000', 'title' => ''],
+ 'PromptAttackInfoList' => [
+ 'description' => 'List of prompt injection detections.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'A list of Prompt Attacks.',
+ 'type' => 'object',
+ 'properties' => [
+ 'CategoryConfigId' => ['description' => 'Harmful category configuration ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '1', 'title' => ''],
+ 'CategoryLabel' => ['description' => 'Category name.', 'type' => 'string', 'example' => '角色扮演', 'title' => ''],
+ 'IsEnabled' => ['description' => 'Harmful category configuration status.0: Disabled.1: Enabled.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ 'SecurityLevel' => ['description' => 'Security level.0: Low\\.1: Medium.2: High.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ 'CategoryId' => ['type' => 'integer', 'format' => 'int64', 'description' => '', 'title' => '', 'example' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'TopicConfigInfoList' => [
+ 'description' => 'List of sensitive topics.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'A list of sensitive topics.',
+ 'type' => 'object',
+ 'properties' => [
+ 'TopicId' => ['description' => 'Sensitive topic ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '3', 'title' => ''],
+ 'InputOutputType' => ['description' => 'Model input or output type.0: Input.1: Output.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
+ 'CategoryType' => ['description' => '0: Text.1: Image.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
+ 'TopicName' => ['description' => 'Topic name.', 'type' => 'string', 'example' => '业务敏感', 'title' => ''],
+ 'SecurityLevel' => ['description' => 'Security level.0: Low\\.1: Medium.2: High.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'EnableSensitiveInputCheck' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
+ 'EnableSensitiveOutputCheck' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
+ 'SceneType' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
+ 'InputSafeAnswer' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'OutputSafeAnswer' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'InputSafeAnswerSwitch' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
+ 'OutputSafeAnswerSwitch' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
+ 'IsSidecarPolicy' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
+ 'ContentSafeModelInfo' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'ModelInstanceId' => ['type' => 'integer', 'format' => 'int64', 'description' => '', 'title' => '', 'example' => ''],
+ 'EasServiceName' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'PromptAttackModelInfo' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'ModelInstanceId' => ['type' => 'integer', 'format' => 'int64', 'description' => '', 'title' => '', 'example' => ''],
+ 'EasServiceName' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'SensitiveTopicModelInfo' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'ModelInstanceId' => ['type' => 'integer', 'format' => 'int64', 'description' => '', 'title' => '', 'example' => ''],
+ 'EasServiceName' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'SensitiveWordList' => [
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Word' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'Label' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'InputOutputType' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'SensitiveConfigList' => [
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'SensitiveConfigId' => ['type' => 'integer', 'format' => 'int64', 'description' => '', 'title' => '', 'example' => ''],
+ 'SensitiveName' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'ActionType' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
+ 'MatchAndReplace' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'IsEnabled' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
+ 'InputOutputType' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'RegularExpressList' => [
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RegularExpressId' => ['type' => 'integer', 'format' => 'int64', 'description' => '', 'title' => '', 'example' => ''],
+ 'RegularExpressName' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'RegularExpress' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'ActionType' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
+ 'MatchAndReplace' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'InputOutputType' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
+ 'IsEnabled' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'SensitiveTopicList' => [
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'TopicId' => ['type' => 'integer', 'format' => 'int64', 'description' => '', 'title' => '', 'example' => ''],
+ 'TopicName' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'TopicDefinition' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'TopicExampleInfoList' => [
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Content' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'ExampleType' => ['type' => 'integer', 'format' => 'int64', 'description' => '', 'title' => '', 'example' => ''],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'InputOutputType' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
+ 'SecurityLevel' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
+ 'CategoryType' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"00000\\",\\n \\"PolicyIdentifier\\": \\"x1bc5xgs4uhx\\",\\n \\"PolicyName\\": \\"测试策略\\",\\n \\"WordGroupInfoList\\": [\\n {\\n \\"GroupId\\": 1,\\n \\"InputOutputType\\": 0,\\n \\"GroupName\\": \\"测试分组\\"\\n }\\n ],\\n \\"HarmfulCategoryConfigInfoList\\": [\\n {\\n \\"CategoryConfigId\\": 1,\\n \\"InputOutputType\\": 0,\\n \\"CategoryType\\": 0,\\n \\"CategoryLabel\\": \\"伦理道德\\",\\n \\"IsEnabled\\": 1,\\n \\"SecurityLevel\\": 1,\\n \\"CategoryId\\": 0\\n }\\n ],\\n \\"PromptAttackInfo\\": {\\n \\"IsEnabled\\": 0,\\n \\"SecurityLevel\\": 1\\n },\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"\\\\\\"\\\\\\"\\",\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Success\\": true,\\n \\"GmtModified\\": 1634122349000,\\n \\"PromptAttackInfoList\\": [\\n {\\n \\"CategoryConfigId\\": 1,\\n \\"CategoryLabel\\": \\"角色扮演\\",\\n \\"IsEnabled\\": 1,\\n \\"SecurityLevel\\": 1,\\n \\"CategoryId\\": 0\\n }\\n ],\\n \\"TopicConfigInfoList\\": [\\n {\\n \\"TopicId\\": 3,\\n \\"InputOutputType\\": 0,\\n \\"CategoryType\\": 0,\\n \\"TopicName\\": \\"业务敏感\\",\\n \\"SecurityLevel\\": 1\\n }\\n ],\\n \\"EnableSensitiveInputCheck\\": 0,\\n \\"EnableSensitiveOutputCheck\\": 0,\\n \\"SceneType\\": 0,\\n \\"InputSafeAnswer\\": \\"\\",\\n \\"OutputSafeAnswer\\": \\"\\",\\n \\"InputSafeAnswerSwitch\\": 0,\\n \\"OutputSafeAnswerSwitch\\": 0,\\n \\"IsSidecarPolicy\\": 0,\\n \\"ContentSafeModelInfo\\": {\\n \\"ModelInstanceId\\": 0,\\n \\"EasServiceName\\": \\"\\"\\n },\\n \\"PromptAttackModelInfo\\": {\\n \\"ModelInstanceId\\": 0,\\n \\"EasServiceName\\": \\"\\"\\n },\\n \\"SensitiveTopicModelInfo\\": {\\n \\"ModelInstanceId\\": 0,\\n \\"EasServiceName\\": \\"\\"\\n },\\n \\"SensitiveWordList\\": [\\n {\\n \\"Word\\": \\"\\",\\n \\"Label\\": \\"\\",\\n \\"InputOutputType\\": 0\\n }\\n ],\\n \\"SensitiveConfigList\\": [\\n {\\n \\"SensitiveConfigId\\": 0,\\n \\"SensitiveName\\": \\"\\",\\n \\"ActionType\\": 0,\\n \\"MatchAndReplace\\": \\"\\",\\n \\"IsEnabled\\": 0,\\n \\"InputOutputType\\": 0\\n }\\n ],\\n \\"RegularExpressList\\": [\\n {\\n \\"RegularExpressId\\": 0,\\n \\"RegularExpressName\\": \\"\\",\\n \\"RegularExpress\\": \\"\\",\\n \\"ActionType\\": 0,\\n \\"MatchAndReplace\\": \\"\\",\\n \\"InputOutputType\\": 0,\\n \\"IsEnabled\\": 0\\n }\\n ],\\n \\"SensitiveTopicList\\": [\\n {\\n \\"TopicId\\": 0,\\n \\"TopicName\\": \\"\\",\\n \\"TopicDefinition\\": \\"\\",\\n \\"TopicExampleInfoList\\": [\\n {\\n \\"Content\\": \\"\\",\\n \\"ExampleType\\": 0\\n }\\n ],\\n \\"InputOutputType\\": 0,\\n \\"SecurityLevel\\": 0,\\n \\"CategoryType\\": 0\\n }\\n ]\\n}","type":"json"}]',
+ 'title' => 'Query Detection Policy Details',
+ 'changeSet' => [
+ ['createdAt' => '2025-10-16T03:11:06.000Z', 'description' => 'Response parameters changed'],
+ ['createdAt' => '2025-08-06T10:35:02.000Z', 'description' => 'Response parameters changed'],
+ ['createdAt' => '2025-06-12T08:56:27.000Z', 'description' => 'Response parameters changed'],
+ ],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'rai:GetPolicyInfo',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'RAI', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'GetTopic' => [
+ 'summary' => 'Queries information about a sensitive topic.',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'paid',
+ 'abilityTreeNodes' => ['FEATURElearnFME3AK'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-shanghai', 'title' => ''],
+ ],
+ [
+ 'name' => 'TopicId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The ID of the sensitive topic.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '216', 'title' => ''],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response object.',
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => ['description' => 'The status code. A value of 00000 indicates success. Other values indicate failure.', 'type' => 'string', 'example' => '00000', 'title' => ''],
+ 'TopicName' => ['description' => 'The name of the topic.', 'type' => 'string', 'example' => 'test_topic', 'title' => ''],
+ 'TopicExampleInfoList' => [
+ 'description' => 'The list of sample examples.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The list of sample examples.',
+ 'type' => 'object',
+ 'properties' => [
+ 'ExampleId' => ['description' => 'The ID of the sample example.', 'type' => 'integer', 'format' => 'int64', 'example' => '2', 'title' => ''],
+ 'Content' => ['description' => 'The description of the sample example.', 'type' => 'string', 'example' => '食品安全很重要', 'title' => ''],
+ 'ExampleType' => ['description' => 'The type of the sample example.'."\n"
+ .'0: positive sample'."\n"
+ .'1: negative sample', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'HttpStatusCode' => ['description' => 'The error code description.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
+ 'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => '""', 'title' => ''],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'The request ID.', 'type' => 'string', 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****'],
+ 'Success' => ['description' => 'Indicates whether the call was successful. Possible values:'."\n"
+ ."\n"
+ .'- True: The call was successful.'."\n"
+ ."\n"
+ .'- False: The call failed.', 'type' => 'boolean', 'example' => 'True', 'title' => ''],
+ 'TopicDefinition' => ['description' => 'The definition of the sensitive topic.', 'type' => 'string', 'example' => '这里是敏感主题的描述', 'title' => ''],
+ 'GmtModified' => ['description' => 'The time when the policy was last modified.', 'type' => 'integer', 'format' => 'int64', 'example' => '1634122349000', 'title' => ''],
+ 'PolicyInfoList' => [
+ 'description' => 'The list of associated policy objects.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The list of policy objects.',
+ 'type' => 'object',
+ 'properties' => [
+ 'PolicyId' => ['description' => 'The policy ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '16', 'title' => ''],
+ 'PolicyIdentifier' => ['description' => 'The policy identifier.', 'type' => 'string', 'example' => 'x1bc5xgs4uhx', 'title' => ''],
+ 'PolicyName' => ['description' => 'The policy name.', 'type' => 'string', 'example' => '测试策略', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"00000\\",\\n \\"TopicName\\": \\"test_topic\\",\\n \\"TopicExampleInfoList\\": [\\n {\\n \\"ExampleId\\": 2,\\n \\"Content\\": \\"食品安全很重要\\",\\n \\"ExampleType\\": 0\\n }\\n ],\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"\\\\\\"\\\\\\"\\",\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Success\\": true,\\n \\"TopicDefinition\\": \\"这里是敏感主题的描述\\",\\n \\"GmtModified\\": 1634122349000,\\n \\"PolicyInfoList\\": [\\n {\\n \\"PolicyId\\": 16,\\n \\"PolicyIdentifier\\": \\"x1bc5xgs4uhx\\",\\n \\"PolicyName\\": \\"测试策略\\"\\n }\\n ]\\n}","type":"json"}]',
+ 'title' => 'Query sensitive topic information ',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'rai:GetTopic',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'RAI', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'GetWordGroup' => [
+ 'summary' => 'GetWordGroup',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'paid',
+ 'abilityTreeNodes' => ['FEATURElearnFME3AK'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-shanghai', 'title' => ''],
+ ],
+ [
+ 'name' => 'GroupId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Keyword group ID.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1', 'title' => ''],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Response.',
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => ['description' => 'Status code, 00000 indicates success; others indicate failure.', 'type' => 'string', 'example' => '00000', 'title' => ''],
+ 'GroupName' => ['description' => 'Keyword group name.', 'type' => 'string', 'example' => '测试分组', 'title' => ''],
+ 'TotalCount' => ['description' => 'Total count.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ 'WordInfoList' => [
+ 'description' => 'Keyword group list.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'Keyword group.',
+ 'type' => 'object',
+ 'properties' => [
+ 'WordId' => ['description' => 'ID of the successfully added word.', 'type' => 'integer', 'format' => 'int64', 'example' => '1', 'title' => ''],
+ 'Word' => ['description' => 'Keyword.', 'type' => 'string', 'example' => '投资', 'title' => ''],
+ 'Label' => ['description' => 'Label.', 'type' => 'string', 'example' => '业务敏感', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'HttpStatusCode' => ['description' => 'HTTP status code.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
+ 'Message' => ['description' => 'If there is an error, returns the error message.', 'type' => 'string', 'example' => '""', 'title' => ''],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Request ID.', 'type' => 'string', 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****'],
+ 'Success' => ['description' => 'Indicates whether the operation was successful.', 'type' => 'boolean', 'example' => 'True', 'title' => ''],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"00000\\",\\n \\"GroupName\\": \\"测试分组\\",\\n \\"TotalCount\\": 1,\\n \\"WordInfoList\\": [\\n {\\n \\"WordId\\": 1,\\n \\"Word\\": \\"投资\\",\\n \\"Label\\": \\"业务敏感\\"\\n }\\n ],\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"\\\\\\"\\\\\\"\\",\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => 'Query Keyword Strategy Details',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'rai:GetWordGroup',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'RAI', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ 'translator' => 'machine',
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ ],
+ 'ListModelCategory' => [
+ 'summary' => 'Lists model categories.',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'paid',
+ 'abilityTreeNodes' => ['FEATURElearnFME3AK'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ModelSource',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Model source. Valid values: 1 for PAI, 2 for other sources.', 'type' => 'string', 'required' => false, 'example' => '1', 'title' => ''],
+ ],
+ [
+ 'name' => 'ContentSafeTextSupported',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Indicates whether text content safety detection is supported.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => 'True', 'title' => ''],
+ ],
+ [
+ 'name' => 'ContentSafeImageSupported',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Indicates whether image content safety detection is supported.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => 'False', 'title' => ''],
+ ],
+ [
+ 'name' => 'PromptAttackTextSupported',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Indicates whether prompt injection detection for text is supported.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => 'False', 'title' => ''],
+ ],
+ [
+ 'name' => 'SensitiveTopicTextSupported',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Indicates whether sensitive topic detection for text is supported.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => 'False', 'title' => ''],
+ ],
+ [
+ 'name' => 'ModelCategoryName',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Model category name.', 'type' => 'string', 'required' => false, 'example' => 'demo', 'title' => ''],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Response schema.',
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => ['description' => 'Status code. 00000 indicates success. Other values indicate failure.', 'type' => 'string', 'example' => '00000', 'title' => ''],
+ 'ModelCategoryInfoList' => [
+ 'description' => 'List of model category objects.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'Model category object.',
+ 'type' => 'object',
+ 'properties' => [
+ 'ModelCategoryId' => ['description' => 'Model category ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '2', 'title' => ''],
+ 'ModelCategoryName' => ['description' => 'Model category name.', 'type' => 'string', 'example' => 'Qwen2.5-3B-Intruct-PAI-Guard', 'title' => ''],
+ 'ModelSource' => ['description' => 'Model source. Valid values: 1 for PAI, 2 for other sources.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ 'ContentSafeTextSupported' => ['description' => 'Indicates whether text content safety detection is supported.', 'type' => 'integer', 'format' => 'int32', 'example' => 'True', 'title' => ''],
+ 'ContentSafeImageSupported' => ['description' => 'Indicates whether image content safety detection is supported.', 'type' => 'integer', 'format' => 'int32', 'example' => 'False', 'title' => ''],
+ 'PromptAttackTextSupported' => ['description' => 'Indicates whether prompt injection detection for text is supported.', 'type' => 'integer', 'format' => 'int32', 'example' => 'False', 'title' => ''],
+ 'SensitiveTopicTextSupported' => ['description' => 'Indicates whether sensitive topic detection for text is supported.', 'type' => 'integer', 'format' => 'int32', 'example' => 'True', 'title' => ''],
+ 'Priority' => ['description' => 'Outbound rule priority. A smaller number means higher priority.', 'type' => 'integer', 'format' => 'int32', 'example' => '12', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'HttpStatusCode' => ['description' => 'HTTP status code.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
+ 'Message' => ['description' => 'Error message returned if the call fails.', 'type' => 'string', 'example' => '""', 'title' => ''],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'ID of the request.', 'type' => 'string', 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****'],
+ 'Success' => ['description' => 'Indicates whether the call succeeded. true indicates success. false indicates failure.', 'type' => 'boolean', 'example' => 'True', 'title' => ''],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"00000\\",\\n \\"ModelCategoryInfoList\\": [\\n {\\n \\"ModelCategoryId\\": 2,\\n \\"ModelCategoryName\\": \\"Qwen2.5-3B-Intruct-PAI-Guard\\",\\n \\"ModelSource\\": 1,\\n \\"ContentSafeTextSupported\\": 0,\\n \\"ContentSafeImageSupported\\": 0,\\n \\"PromptAttackTextSupported\\": 0,\\n \\"SensitiveTopicTextSupported\\": 0,\\n \\"Priority\\": 12\\n }\\n ],\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"\\\\\\"\\\\\\"\\",\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => 'Query model category list',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'rai:ListModelCategory',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'RAI', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'ListModelInstance' => [
+ 'summary' => 'Lists model instances.',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'paid',
+ 'abilityTreeNodes' => ['FEATURElearnFME3AK'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-shanghai', 'title' => ''],
+ ],
+ [
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Page number. This value matches the PageNumber parameter in your request.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Page size. Maximum number of results to return per page.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', 'title' => ''],
+ ],
+ [
+ 'name' => 'EasServiceName',
+ 'in' => 'query',
+ 'schema' => ['description' => 'EAS service name.', 'type' => 'string', 'required' => false, 'example' => 'rai_content_detection_model', 'title' => ''],
+ ],
+ [
+ 'name' => 'ModelSource',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Model source. Valid values: 1 (PAI), 2 (other).', 'type' => 'string', 'required' => false, 'example' => '1', 'title' => ''],
+ ],
+ [
+ 'name' => 'IsSupportContentSafe',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Indicates whether content moderation is supported.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => 'True', 'title' => ''],
+ ],
+ [
+ 'name' => 'IsSupportPromptAttack',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Indicates whether prompt injection detection is supported.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => 'False', 'title' => ''],
+ ],
+ [
+ 'name' => 'IsSupportSensitiveTopic',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Indicates whether sensitive topic detection is supported.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => 'True', 'title' => ''],
+ ],
+ [
+ 'name' => 'IsSidecarPolicy',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Policy type. Valid values: 0 (public cloud policy), 1 (sidecar policy).', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
+ ],
+ [
+ 'name' => 'Order',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Sort order. Valid values:'."\n"
+ ."\n"
+ .'- asc (default): ascending'."\n"
+ ."\n"
+ .'- desc: descending', 'type' => 'string', 'required' => false, 'example' => 'asc', 'title' => ''],
+ ],
+ [
+ 'name' => 'SortBy',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Field to sort by.', 'type' => 'string', 'required' => false, 'example' => 'GmtModified', 'title' => ''],
+ ],
+ [
+ 'name' => 'WorkspaceId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Workspace ID.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '643168', 'title' => ''],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Response schema.',
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => ['description' => 'Result code. 00000 indicates success. Other values indicate failure.', 'type' => 'string', 'example' => '00000', 'title' => ''],
+ 'PageNumber' => ['description' => 'Page number. This value matches the PageNumber parameter in your request.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ 'PageSize' => ['description' => 'Page size. Maximum number of results to return per page.', 'type' => 'integer', 'format' => 'int32', 'example' => '10', 'title' => ''],
+ 'TotalCount' => ['description' => 'Total count.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ 'ModelInstanceInfoList' => [
+ 'description' => 'List of model instance objects.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'Model instance object.',
+ 'type' => 'object',
+ 'properties' => [
+ 'ModelInstanceId' => ['description' => 'Model instance ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '123', 'title' => ''],
+ 'EasServiceName' => ['description' => 'EAS service name.', 'type' => 'string', 'example' => 'torch_rank_v1', 'title' => ''],
+ 'ModelSource' => ['description' => 'Model source. Valid values: 1 (PAI), 2 (other).', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ 'GmtModified' => ['description' => 'Modification time.', 'type' => 'integer', 'format' => 'int64', 'example' => '1749450490000', 'title' => ''],
+ 'IsSupportText' => ['description' => 'Indicates whether text is supported.', 'type' => 'boolean', 'example' => 'True', 'title' => ''],
+ 'IsSupportImage' => ['description' => 'Indicates whether images are supported.', 'type' => 'boolean', 'example' => 'False', 'title' => ''],
+ 'IsSupportContentSafe' => ['description' => 'Indicates whether content moderation is supported.', 'type' => 'integer', 'format' => 'int32', 'example' => 'True', 'title' => ''],
+ 'IsSupportPromptAttack' => ['description' => 'Indicates whether prompt injection detection is supported.', 'type' => 'integer', 'format' => 'int32', 'example' => 'False', 'title' => ''],
+ 'IsSupportSensitiveTopic' => ['description' => 'Indicates whether sensitive topic detection is supported.', 'type' => 'integer', 'format' => 'int32', 'example' => 'True', 'title' => ''],
+ 'WorkspaceId' => ['description' => 'Workspace ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '608226', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'HttpStatusCode' => ['description' => 'HTTP status code.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
+ 'Message' => ['description' => 'Error message, if any.', 'type' => 'string', 'example' => '""', 'title' => ''],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Request ID.', 'type' => 'string', 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****'],
+ 'Success' => ['description' => 'Indicates whether the operation succeeded. true indicates success. false indicates failure.', 'type' => 'boolean', 'example' => 'True', 'title' => ''],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'errorCodes' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"00000\\",\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10,\\n \\"TotalCount\\": 1,\\n \\"ModelInstanceInfoList\\": [\\n {\\n \\"ModelInstanceId\\": 123,\\n \\"EasServiceName\\": \\"torch_rank_v1\\",\\n \\"ModelSource\\": 1,\\n \\"GmtModified\\": 1749450490000,\\n \\"IsSupportText\\": true,\\n \\"IsSupportImage\\": true,\\n \\"IsSupportContentSafe\\": 0,\\n \\"IsSupportPromptAttack\\": 0,\\n \\"IsSupportSensitiveTopic\\": 0,\\n \\"WorkspaceId\\": 608226\\n }\\n ],\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"\\\\\\"\\\\\\"\\",\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => 'Query Model Instance List',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'rai:ListModelInstance',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'RAI', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'ListPolicy' => [
+ 'summary' => 'Query the list of detection policies.',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'paid',
+ 'abilityTreeNodes' => ['FEATURElearnFME3AK'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-shanghai', 'title' => ''],
+ ],
+ [
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Page number.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Page size. The maximum number of results displayed per page.Maximum limit: 100.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', 'title' => ''],
+ ],
+ [
+ 'name' => 'PolicyName',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Policy Name.', 'type' => 'string', 'required' => false, 'example' => '测试策略', 'title' => ''],
+ ],
+ [
+ 'name' => 'PolicyIdentifier',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Policy Identifier.', 'type' => 'string', 'required' => false, 'example' => 'x1bc5xgs4uhx', 'title' => ''],
+ ],
+ [
+ 'name' => 'WorkspaceId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Workspace ID.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '62****', 'title' => ''],
+ ],
+ [
+ 'name' => 'SortBy',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Sorting field.', 'type' => 'string', 'required' => false, 'example' => 'GmtModified', 'title' => ''],
+ ],
+ [
+ 'name' => 'Order',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Sorting method. Valid values:'."\n"
+ ."\n"
+ .'- asc (default): Ascending order.'."\n"
+ ."\n"
+ .'- desc: Descending order.', 'type' => 'string', 'required' => false, 'example' => 'asc', 'title' => ''],
+ ],
+ [
+ 'name' => 'IsSidecarPolicy',
+ 'in' => 'query',
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
+ ],
+ [
+ 'name' => 'SceneType',
+ 'in' => 'query',
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Response.',
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => ['description' => 'Status code. 00000 indicates success; other values indicate failure.', 'type' => 'string', 'example' => '00000', 'title' => ''],
+ 'PageNumber' => ['description' => 'Page number, consistent with PageNumber in the request.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ 'PageSize' => ['description' => 'Page size. The maximum number of results displayed per page.', 'type' => 'integer', 'format' => 'int32', 'example' => '10', 'title' => ''],
+ 'TotalCount' => ['description' => 'Total count.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ 'PolicyInfoList' => [
+ 'description' => 'Policy object list.',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'PolicyId' => ['description' => 'Policy ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '16', 'title' => ''],
+ 'PolicyIdentifier' => ['description' => 'Policy Identifier.', 'type' => 'string', 'example' => 'x1bc5xgs4uhx', 'title' => ''],
+ 'PolicyName' => ['description' => 'Policy Name.', 'type' => 'string', 'example' => '测试策略', 'title' => ''],
+ 'GmtModified' => ['description' => 'Modification time.', 'type' => 'integer', 'format' => 'int64', 'example' => '1731204769000', 'title' => ''],
+ 'IsSidecarPolicy' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
+ 'SceneType' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'HttpStatusCode' => ['description' => 'Error code description.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
+ 'Message' => ['description' => 'If an error occurs, an error message is returned.', 'type' => 'string', 'example' => '""', 'title' => ''],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Request ID.', 'type' => 'string', 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****'],
+ 'Success' => ['description' => 'Indicates whether the call was successful. Possible values:'."\n"
+ ."\n"
+ .'- True: The call was successful.'."\n"
+ ."\n"
+ .'- False: The call failed.', 'type' => 'boolean', 'example' => 'True', 'title' => ''],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'errorCodes' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"00000\\",\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10,\\n \\"TotalCount\\": 1,\\n \\"PolicyInfoList\\": [\\n {\\n \\"PolicyId\\": 16,\\n \\"PolicyIdentifier\\": \\"x1bc5xgs4uhx\\",\\n \\"PolicyName\\": \\"测试策略\\",\\n \\"GmtModified\\": 1731204769000,\\n \\"IsSidecarPolicy\\": 0,\\n \\"SceneType\\": 0\\n }\\n ],\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"\\\\\\"\\\\\\"\\",\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => 'Query Detection Policy List',
+ 'changeSet' => [
+ ['createdAt' => '2025-10-16T03:11:06.000Z', 'description' => 'Request parameters changed, Response parameters changed'],
+ ],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'rai:ListPolicy',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'RAI', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'ListTopic' => [
+ 'summary' => 'Lists sensitive topics.',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'paid',
+ 'abilityTreeNodes' => ['FEATURElearnFME3AK'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-shanghai', 'title' => ''],
+ ],
+ [
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Page number. Matches the PageNumber in the request.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Page size. Maximum number of results to return per page.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', 'title' => ''],
+ ],
+ [
+ 'name' => 'TopicName',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Topic name.', 'type' => 'string', 'required' => false, 'example' => 'client_exposure_logs', 'title' => ''],
+ ],
+ [
+ 'name' => 'WorkspaceId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Workspace ID.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '643168', 'title' => ''],
+ ],
+ [
+ 'name' => 'SortBy',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Sort field.', 'type' => 'string', 'required' => false, 'example' => 'GmtModified', 'title' => ''],
+ ],
+ [
+ 'name' => 'Order',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Sort order. Valid values:'."\n"
+ ."\n"
+ .'- asc (default): ascending'."\n"
+ ."\n"
+ .'- desc: descending', 'type' => 'string', 'required' => false, 'example' => 'asc', 'title' => ''],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Response object.',
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => ['description' => 'Status code. 00000 indicates success. Other values indicate failure.', 'type' => 'string', 'example' => '00000', 'title' => ''],
+ 'PageNumber' => ['description' => 'Page number. Matches the PageNumber in the request.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ 'PageSize' => ['description' => 'Page size. Maximum number of results to return per page.', 'type' => 'integer', 'format' => 'int32', 'example' => '10', 'title' => ''],
+ 'TotalCount' => ['description' => 'Total count.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ 'TopicInfoList' => [
+ 'description' => 'List of sensitive topics.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'Sensitive topic object.',
+ 'type' => 'object',
+ 'properties' => [
+ 'TopicId' => ['description' => 'Sensitive topic ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '216', 'title' => ''],
+ 'TopicName' => ['description' => 'Topic name.', 'type' => 'string', 'example' => '业务敏感', 'title' => ''],
+ 'TopicDefinition' => ['description' => 'Sensitive topic definition.', 'type' => 'string', 'example' => '这里敏感主题描述', 'title' => ''],
+ 'GmtModified' => ['description' => 'Modification time.', 'type' => 'integer', 'format' => 'int64', 'example' => '1597738932000', 'title' => ''],
+ 'PolicyInfoList' => [
+ 'description' => 'List of associated policy objects.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'List of associated policy objects.',
+ 'type' => 'object',
+ 'properties' => [
+ 'PolicyId' => ['description' => 'Policy ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '412', 'title' => ''],
+ 'PolicyIdentifier' => ['description' => 'Policy identifier.', 'type' => 'string', 'example' => 'bqi1c3s99qx3', 'title' => ''],
+ 'PolicyName' => ['description' => 'Policy name.', 'type' => 'string', 'example' => '业务敏感策略', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'HttpStatusCode' => ['description' => 'The description of the error code.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
+ 'Message' => ['description' => 'Error message, if any.', 'type' => 'string', 'example' => '""', 'title' => ''],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Request ID.', 'type' => 'string', 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****'],
+ 'Success' => ['description' => 'Indicates whether the call succeeded. true: succeeded. false: failed.', 'type' => 'boolean', 'example' => 'True', 'title' => ''],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"00000\\",\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10,\\n \\"TotalCount\\": 1,\\n \\"TopicInfoList\\": [\\n {\\n \\"TopicId\\": 216,\\n \\"TopicName\\": \\"业务敏感\\",\\n \\"TopicDefinition\\": \\"这里敏感主题描述\\",\\n \\"GmtModified\\": 1597738932000,\\n \\"PolicyInfoList\\": [\\n {\\n \\"PolicyId\\": 412,\\n \\"PolicyIdentifier\\": \\"bqi1c3s99qx3\\",\\n \\"PolicyName\\": \\"业务敏感策略\\"\\n }\\n ]\\n }\\n ],\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"\\\\\\"\\\\\\"\\",\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => 'Query the list of sensitive topics',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'rai:ListTopic',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'RAI', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'ListWordGroup' => [
+ 'summary' => 'ListWordGroup',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'paid',
+ 'abilityTreeNodes' => ['FEATURElearnFME3AK'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-shanghai', 'title' => ''],
+ ],
+ [
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Page number.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Page size, the maximum number of results returned per page.'."\n"
+ .'Maximum limit: 100.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', 'title' => ''],
+ ],
+ [
+ 'name' => 'GroupName',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Keyword group name.', 'type' => 'string', 'required' => false, 'example' => '测试分组', 'title' => ''],
+ ],
+ [
+ 'name' => 'WorkspaceId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Workspace ID.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '620***', 'title' => ''],
+ ],
+ [
+ 'name' => 'SortBy',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Sort field.', 'type' => 'string', 'required' => false, 'example' => 'GmtModified', 'title' => ''],
+ ],
+ [
+ 'name' => 'Order',
+ 'in' => 'query',
+ 'schema' => ['description' => 'When performing a paginated query, sort the specified field in ascending or descending order. Values are as follows:'."\n"
+ .'* asc: Ascending.'."\n"
+ .'* desc: Descending.', 'type' => 'string', 'required' => false, 'example' => 'asc', 'title' => ''],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Response.',
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => ['description' => 'Status code, 00000 indicates success; other values indicate failure.', 'type' => 'string', 'example' => '00000', 'title' => ''],
+ 'PageNumber' => ['description' => 'Page number.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ 'PageSize' => ['description' => 'Page size, the maximum number of results returned per page.'."\n"
+ .'Maximum limit: 100.', 'type' => 'integer', 'format' => 'int32', 'example' => '10', 'title' => ''],
+ 'TotalCount' => ['description' => 'Total count.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ 'WordGroupInfoList' => [
+ 'description' => 'List of keyword group objects.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'Keyword group object.',
+ 'type' => 'object',
+ 'properties' => [
+ 'GroupId' => ['description' => 'Keyword group ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '16', 'title' => ''],
+ 'GroupName' => ['description' => 'Keyword group name.', 'type' => 'string', 'example' => '测试分组', 'title' => ''],
+ 'GmtModified' => ['description' => 'Policy modification time.', 'type' => 'integer', 'format' => 'int64', 'example' => '1673578650000', 'title' => ''],
+ 'PolicyInfoList' => [
+ 'description' => 'List of associated policy objects.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'Associated policy object.',
+ 'type' => 'object',
+ 'properties' => [
+ 'PolicyId' => ['description' => 'Detection policy ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '16', 'title' => ''],
+ 'PolicyIdentifier' => ['description' => 'Policy identifier.', 'type' => 'string', 'example' => 'mai934jhuekf', 'title' => ''],
+ 'PolicyName' => ['description' => 'Detection policy name.', 'type' => 'string', 'example' => '测试策略', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'HttpStatusCode' => ['description' => 'HTTP status code.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
+ 'Message' => ['description' => 'If an error occurs, returns the error message.', 'type' => 'string', 'example' => '""', 'title' => ''],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Request ID.', 'type' => 'string', 'example' => 'BE2558EC-A9EA-5276-ADB5-107B09CF3D11'],
+ 'Success' => ['description' => 'Indicates whether the call was successful: true means the call was successful; false means the call failed.', 'type' => 'boolean', 'example' => 'True', 'title' => ''],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"00000\\",\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10,\\n \\"TotalCount\\": 1,\\n \\"WordGroupInfoList\\": [\\n {\\n \\"GroupId\\": 16,\\n \\"GroupName\\": \\"测试分组\\",\\n \\"GmtModified\\": 1673578650000,\\n \\"PolicyInfoList\\": [\\n {\\n \\"PolicyId\\": 16,\\n \\"PolicyIdentifier\\": \\"mai934jhuekf\\",\\n \\"PolicyName\\": \\"测试策略\\"\\n }\\n ]\\n }\\n ],\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"\\\\\\"\\\\\\"\\",\\n \\"RequestId\\": \\"BE2558EC-A9EA-5276-ADB5-107B09CF3D11\\",\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => 'Query Keyword Strategy List',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'rai:ListWordGroup',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'RAI', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ 'translator' => 'machine',
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ ],
+ 'ModelInputContentAsyncDetect' => [
+ 'summary' => 'ModelInputContentAsyncDetect',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'paid',
+ 'abilityTreeNodes' => ['FEATURElearnFME3AK'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-shanghai', 'title' => ''],
+ ],
+ [
+ 'name' => 'SceneName',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Scene name.', 'type' => 'string', 'required' => false, 'example' => '""', 'title' => ''],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Service name', 'type' => 'string', 'required' => false, 'example' => 'textDetection'."\n"
+ .'imageDetection', 'title' => ''],
+ ],
+ [
+ 'name' => 'PolicyIdentifier',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Policy ID', 'type' => 'string', 'required' => false, 'example' => 'x1bc5xgs4uhx', 'title' => ''],
+ ],
+ [
+ 'name' => 'BodyData',
+ 'in' => 'formData',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'Request object',
+ 'type' => 'object',
+ 'properties' => [
+ 'Content' => ['description' => '1. The text content to be reviewed, with a maximum limit of 10000 characters (including English and Chinese).'."\n"
+ .'2. Or the URL address of the image to be reviewed.', 'type' => 'string', 'required' => false, 'example' => '要检测的内容', 'title' => ''],
+ ],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => ['description' => 'Result code, 00000 indicates success; others indicate failure.', 'type' => 'string', 'example' => '00000', 'title' => ''],
+ 'TaskId' => ['description' => 'Task ID.', 'type' => 'string', 'example' => '5d85cd38-03b2-49fd-86b2-be85c4b13215', 'title' => ''],
+ 'HttpStatusCode' => ['description' => 'HTTP status code', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
+ 'Message' => ['description' => 'Error message', 'type' => 'string', 'example' => '""', 'title' => ''],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Request ID', 'type' => 'string', 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****'],
+ 'Success' => ['description' => '操作是否成功。true表示成功,false表示失败。', 'type' => 'boolean', 'example' => 'True', 'title' => ''],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"00000\\",\\n \\"TaskId\\": \\"5d85cd38-03b2-49fd-86b2-be85c4b13215\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"\\\\\\"\\\\\\"\\",\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => 'Asynchronous Detection of Model Input Content',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'rai:ModelInputContentAsyncDetect',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'RAI', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ 'translator' => 'machine',
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ ],
+ 'ModelInputContentSyncDetect' => [
+ 'summary' => 'Synchronously detects model input content and returns the results.',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'paid',
+ 'abilityTreeNodes' => ['FEATURElearnFME3AK'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-shanghai', 'title' => ''],
+ ],
+ [
+ 'name' => 'SceneName',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The scenario name.', 'type' => 'string', 'required' => false, 'example' => '""', 'title' => ''],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The service name.', 'type' => 'string', 'required' => false, 'example' => 'textDetection'."\n"
+ .'imageDetection', 'title' => ''],
+ ],
+ [
+ 'name' => 'PolicyIdentifier',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The policy ID.', 'type' => 'string', 'required' => false, 'example' => 'x1bc5xgs4uhx', 'title' => ''],
+ ],
+ [
+ 'name' => 'BodyData',
+ 'in' => 'formData',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'The request object.',
+ 'type' => 'object',
+ 'properties' => [
+ 'Content' => ['description' => '1. The text content to review. The maximum length is 10,000 characters.'."\n"
+ ."\n"
+ .'2. The URL of the image to review.', 'type' => 'string', 'required' => false, 'example' => '要检测的内容'."\n", 'title' => ''],
+ ],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response.',
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => ['description' => 'The result code. A value of \\`00000\\` indicates success. Other values indicate failure.', 'type' => 'string', 'example' => '00000', 'title' => ''],
+ 'RiskResult' => ['description' => '0: No risk.'."\n"
+ .'1: Risk detected.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
+ 'TraceInfo' => [
+ 'description' => 'The check results.',
+ 'type' => 'object',
+ 'properties' => [
+ 'BlockWord' => [
+ 'description' => 'The detected keywords.',
+ 'type' => 'object',
+ 'properties' => [
+ 'RiskResult' => ['description' => '0: No risk.'."\n"
+ .'1: Risk detected.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
+ 'BlockWordGroupInfoList' => [
+ 'description' => 'A list of keyword detection result objects.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'A keyword detection result object.',
+ 'type' => 'object',
+ 'properties' => [
+ 'GroupName' => ['description' => 'The name of the keyword group.', 'type' => 'string', 'example' => '测试分组', 'title' => ''],
+ 'BlockWordList' => [
+ 'description' => 'A list of keyword detection results.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'A keyword detection result.',
+ 'type' => 'object',
+ 'properties' => [
+ 'Word' => ['description' => 'The keyword.', 'type' => 'string', 'example' => '测试关键词', 'title' => ''],
+ 'WordLabel' => ['description' => 'The label.', 'type' => 'string', 'example' => '测试标签', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'HarmfulCategories' => [
+ 'description' => 'A list of harmful classification result objects.',
+ 'type' => 'object',
+ 'properties' => [
+ 'RiskResult' => ['description' => '0: No risk.'."\n"
+ .'1: Risk detected.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
+ 'ConfidenceScore' => ['description' => 'The confidence level.', 'type' => 'number', 'format' => 'double', 'example' => '0.0', 'title' => ''],
+ 'HarmfulCategoryInfoList' => [
+ 'description' => 'A list of harmful classification objects.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'A harmful classification detection result object.',
+ 'type' => 'object',
+ 'properties' => [
+ 'CategoryType' => ['description' => '0: Text.'."\n"
+ .'1: Image.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
+ 'CategoryLabel' => ['description' => 'The classification name.', 'type' => 'string', 'example' => '伦理道德', 'title' => ''],
+ 'SubCategoryLabel' => ['description' => 'The sub-classification label.', 'type' => 'string', 'example' => '不良行为', 'title' => ''],
+ 'SecurityLevel' => ['description' => 'The security level.'."\n"
+ .'0: Low.'."\n"
+ .'1: Medium.'."\n"
+ .'2: High.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ 'RiskResult' => ['description' => '0: No risk.'."\n"
+ .'1: Risk detected.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'PromptAttack' => [
+ 'description' => 'Information about the prompt injection attack.',
+ 'type' => 'object',
+ 'properties' => [
+ 'RiskResult' => ['description' => '0: No risk.'."\n"
+ .'1: Risk detected.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
+ 'PromptAttackInfo' => ['description' => 'The prompt injection detection result object.', 'type' => 'string', 'example' => '角色扮演', 'title' => ''],
+ 'SecurityLevel' => ['description' => 'The security level.'."\n"
+ .'0: Low.'."\n"
+ .'1: Medium.'."\n"
+ .'2: High.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ 'ConfidenceScore' => ['description' => 'The confidence level.', 'type' => 'number', 'format' => 'double', 'example' => '0.0', 'title' => ''],
+ 'PromptAttackInfoList' => [
+ 'description' => 'A list of prompt injection attacks.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'A prompt injection attack object.',
+ 'type' => 'object',
+ 'properties' => [
+ 'CategoryType' => ['description' => '0: Text.'."\n"
+ .'1: Image.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
+ 'CategoryLabel' => ['description' => 'The classification name.', 'type' => 'string', 'example' => '角色扮演', 'title' => ''],
+ 'SecurityLevel' => ['description' => 'The security level.'."\n"
+ .'0: Low.'."\n"
+ .'1: Medium.'."\n"
+ .'2: High.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ 'RiskResult' => ['description' => '0: No risk.'."\n"
+ .'1: Risk detected.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'DenyTopics' => [
+ 'description' => 'A list of sensitive topic objects.',
+ 'type' => 'object',
+ 'properties' => [
+ 'RiskResult' => ['description' => '0: No risk.'."\n"
+ .'1: Risk detected.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ 'ConfidenceScore' => ['description' => 'The confidence level.', 'type' => 'number', 'format' => 'double', 'example' => '0.0', 'title' => ''],
+ 'TopicInfoList' => [
+ 'description' => 'A list of sensitive topics.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'A list of sensitive topics.',
+ 'type' => 'object',
+ 'properties' => [
+ 'CategoryType' => ['description' => '0: Text.'."\n"
+ .'1: Image.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
+ 'TopicName' => ['description' => 'The topic name.', 'type' => 'string', 'example' => '业务敏感', 'title' => ''],
+ 'SecurityLevel' => ['description' => 'The security level.'."\n"
+ .'0: Low.'."\n"
+ .'1: Medium.'."\n"
+ .'2: High.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
+ 'RiskResult' => ['description' => '0: No risk.'."\n"
+ .'1: Risk detected.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'SensitiveType' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RiskResult' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
+ 'MaskedContent' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'SensitiveTypeInfoList' => [
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'SensitiveTypeName' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'SensitiveCategory' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
+ 'SensitiveContent' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'MaskedContent' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'ActionType' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'HttpStatusCode' => ['description' => 'The HTTP status code.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
+ 'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => '""', 'title' => ''],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'The request ID.', 'type' => 'string', 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****'],
+ 'Success' => ['description' => 'Indicates whether the operation was successful. \\`true\\` indicates success and \\`false\\` indicates failure.', 'type' => 'boolean', 'example' => 'True', 'title' => ''],
+ 'SafeAnswer' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"00000\\",\\n \\"RiskResult\\": 0,\\n \\"TraceInfo\\": {\\n \\"BlockWord\\": {\\n \\"RiskResult\\": 0,\\n \\"BlockWordGroupInfoList\\": [\\n {\\n \\"GroupName\\": \\"测试分组\\",\\n \\"BlockWordList\\": [\\n {\\n \\"Word\\": \\"测试关键词\\",\\n \\"WordLabel\\": \\"测试标签\\"\\n }\\n ]\\n }\\n ]\\n },\\n \\"HarmfulCategories\\": {\\n \\"RiskResult\\": 0,\\n \\"ConfidenceScore\\": 0,\\n \\"HarmfulCategoryInfoList\\": [\\n {\\n \\"CategoryType\\": 0,\\n \\"CategoryLabel\\": \\"伦理道德\\",\\n \\"SubCategoryLabel\\": \\"不良行为\\",\\n \\"SecurityLevel\\": 1,\\n \\"RiskResult\\": 0\\n }\\n ]\\n },\\n \\"PromptAttack\\": {\\n \\"RiskResult\\": 0,\\n \\"PromptAttackInfo\\": \\"角色扮演\\",\\n \\"SecurityLevel\\": 1,\\n \\"ConfidenceScore\\": 0,\\n \\"PromptAttackInfoList\\": [\\n {\\n \\"CategoryType\\": 0,\\n \\"CategoryLabel\\": \\"角色扮演\\",\\n \\"SecurityLevel\\": 1,\\n \\"RiskResult\\": 0\\n }\\n ]\\n },\\n \\"DenyTopics\\": {\\n \\"RiskResult\\": 1,\\n \\"ConfidenceScore\\": 0,\\n \\"TopicInfoList\\": [\\n {\\n \\"CategoryType\\": 0,\\n \\"TopicName\\": \\"业务敏感\\",\\n \\"SecurityLevel\\": 0,\\n \\"RiskResult\\": 0\\n }\\n ]\\n },\\n \\"SensitiveType\\": {\\n \\"RiskResult\\": 0,\\n \\"MaskedContent\\": \\"\\",\\n \\"SensitiveTypeInfoList\\": [\\n {\\n \\"SensitiveTypeName\\": \\"\\",\\n \\"SensitiveCategory\\": 0,\\n \\"SensitiveContent\\": \\"\\",\\n \\"MaskedContent\\": \\"\\",\\n \\"ActionType\\": 0\\n }\\n ]\\n }\\n },\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"\\\\\\"\\\\\\"\\",\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Success\\": true,\\n \\"SafeAnswer\\": \\"\\"\\n}","type":"json"}]',
+ 'title' => 'Synchronous Detection of Model Input Content',
+ 'changeSet' => [
+ ['createdAt' => '2025-10-16T03:11:06.000Z', 'description' => 'Response parameters changed'],
+ ['createdAt' => '2025-08-06T10:35:02.000Z', 'description' => 'Response parameters changed'],
+ ['createdAt' => '2025-06-12T08:56:27.000Z', 'description' => 'Response parameters changed'],
+ ],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'rai:ModelInputContentSyncDetect',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'RAI', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'ModelOutputContentAsyncDetect' => [
+ 'summary' => 'ModelOutputContentAsyncDetect',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'paid',
+ 'abilityTreeNodes' => ['FEATURElearnFME3AK'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-shanghai', 'title' => ''],
+ ],
+ [
+ 'name' => 'SceneName',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Scene name.', 'type' => 'string', 'required' => false, 'example' => '""', 'title' => ''],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Service name', 'type' => 'string', 'required' => false, 'example' => 'textDetection'."\n"
+ .'imageDetection', 'title' => ''],
+ ],
+ [
+ 'name' => 'PolicyIdentifier',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Policy ID', 'type' => 'string', 'required' => false, 'example' => 'x1bc5xgs4uhx', 'title' => ''],
+ ],
+ [
+ 'name' => 'BodyData',
+ 'in' => 'formData',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'Request object',
+ 'type' => 'object',
+ 'properties' => [
+ 'Content' => ['description' => '1. The text content to be reviewed, with a maximum limit of 10000 characters (including English and Chinese).'."\n"
+ .'2. Or the URL address of the image to be reviewed.', 'type' => 'string', 'required' => false, 'example' => '要检测的内容', 'title' => ''],
+ ],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => ['description' => 'Status code, 00000 indicates success; others indicate failure.', 'type' => 'string', 'example' => '00000', 'title' => ''],
+ 'TaskId' => ['description' => 'Task ID.', 'type' => 'string', 'example' => '5d85cd38-03b2-49fd-86b2-be85c4b13215', 'title' => ''],
+ 'HttpStatusCode' => ['description' => 'HTTP status code', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
+ 'Message' => ['description' => 'Error message', 'type' => 'string', 'example' => '""', 'title' => ''],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Request ID', 'type' => 'string', 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****'],
+ 'Success' => ['description' => '操作是否成功。true表示成功,false表示失败。', 'type' => 'boolean', 'example' => 'True', 'title' => ''],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"00000\\",\\n \\"TaskId\\": \\"5d85cd38-03b2-49fd-86b2-be85c4b13215\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"\\\\\\"\\\\\\"\\",\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => 'Asynchronous Detection of Model Output Content',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'rai:ModelOutputContentAsyncDetect',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'RAI', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ 'translator' => 'machine',
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ ],
+ 'ModelOutputContentSyncDetect' => [
+ 'summary' => 'Synchronously detects model output content and immediately returns the results.',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'paid',
+ 'abilityTreeNodes' => ['FEATURElearnFME3AK'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-shanghai', 'title' => ''],
+ ],
+ [
+ 'name' => 'SceneName',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Scenario name.', 'type' => 'string', 'required' => false, 'example' => '""', 'title' => ''],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Service name.', 'type' => 'string', 'required' => false, 'example' => 'textDetection'."\n"
+ .'imageDetection', 'title' => ''],
+ ],
+ [
+ 'name' => 'PolicyIdentifier',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Policy ID.', 'type' => 'string', 'required' => false, 'example' => 'x1bc5xgs4uhx', 'title' => ''],
+ ],
+ [
+ 'name' => 'BodyData',
+ 'in' => 'formData',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'Request object.',
+ 'type' => 'object',
+ 'properties' => [
+ 'Content' => ['description' => '1. Text to scan. Maximum length is 10,000 characters, including English and Chinese.'."\n"
+ ."\n"
+ .'2. Or a URL pointing to an image to scan.', 'type' => 'string', 'required' => false, 'example' => '要检测的内容', 'title' => ''],
+ ],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Response.',
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => ['description' => 'Status code. 00000 means success. Any other value means failure.', 'type' => 'string', 'example' => '00000', 'title' => ''],
+ 'RiskInfo' => ['description' => 'Risk labels, comma-separated if multiple.', 'type' => 'string', 'example' => '“”', 'title' => ''],
+ 'RiskResult' => ['description' => '0: No risk.'."\n"
+ .'1: Risk detected.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
+ 'TraceInfo' => [
+ 'description' => 'Detection result.',
+ 'type' => 'object',
+ 'properties' => [
+ 'BlockWord' => [
+ 'description' => 'Blocked keyword detection result.',
+ 'type' => 'object',
+ 'properties' => [
+ 'RiskResult' => ['description' => '0: No risk.'."\n"
+ .'1: Risk detected.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
+ 'BlockWordGroupInfoList' => [
+ 'description' => 'List of blocked keyword detection result objects.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'Blocked keyword detection result object.',
+ 'type' => 'object',
+ 'properties' => [
+ 'GroupName' => ['description' => 'Keyword group name.', 'type' => 'string', 'example' => '测试分组', 'title' => ''],
+ 'BlockWordList' => [
+ 'description' => 'List of blocked keyword detection result objects.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'List of blocked keyword detection results.',
+ 'type' => 'object',
+ 'properties' => [
+ 'Word' => ['description' => 'Keyword.', 'type' => 'string', 'example' => '测试关键词', 'title' => ''],
+ 'WordLabel' => ['description' => 'Label.', 'type' => 'string', 'example' => '测试标签', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'HarmfulCategories' => [
+ 'description' => 'List of harmful classification result objects.',
+ 'type' => 'object',
+ 'properties' => [
+ 'RiskResult' => ['description' => '0: No risk.'."\n"
+ .'1: Risk detected.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
+ 'ConfidenceScore' => ['description' => 'Confidence level.', 'type' => 'number', 'format' => 'double', 'example' => '0.0', 'title' => ''],
+ 'HarmfulCategoryInfoList' => [
+ 'description' => 'List of harmful classification objects.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'List of harmful classification objects.',
+ 'type' => 'object',
+ 'properties' => [
+ 'CategoryType' => ['description' => '0: Text.'."\n"
+ .'1: Image.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
+ 'CategoryLabel' => ['description' => 'Classification name.', 'type' => 'string', 'example' => '伦理道德', 'title' => ''],
+ 'SubCategoryLabel' => ['description' => 'Subcategory label.', 'type' => 'string', 'example' => '不良行为', 'title' => ''],
+ 'SecurityLevel' => ['description' => 'Security level.'."\n"
+ .'0: Low.'."\n"
+ .'1: Medium.'."\n"
+ .'2: High.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ 'RiskResult' => ['description' => '0: No risk.'."\n"
+ .'1: Risk detected.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'PromptAttack' => [
+ 'description' => 'Prompt (Attack) information',
+ 'type' => 'object',
+ 'properties' => [
+ 'RiskResult' => ['description' => '0: No risk.'."\n"
+ .'1: Risk detected.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
+ 'PromptAttackInfo' => ['description' => 'Prompt injection detection result object.', 'type' => 'string', 'example' => '角色扮演', 'title' => ''],
+ 'SecurityLevel' => ['description' => 'Security level.'."\n"
+ .'0: Low.'."\n"
+ .'1: Medium.'."\n"
+ .'2: High.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
+ 'ConfidenceScore' => ['description' => 'Confidence level.', 'type' => 'number', 'format' => 'double', 'example' => '0.0', 'title' => ''],
+ 'PromptAttackInfoList' => [
+ 'description' => 'List of prompt injection detections.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'List of prompt injection detections.',
+ 'type' => 'object',
+ 'properties' => [
+ 'CategoryType' => ['description' => '0: Text.'."\n"
+ .'1: Image.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
+ 'CategoryLabel' => ['description' => 'Classification name.', 'type' => 'string', 'example' => '角色扮演', 'title' => ''],
+ 'SecurityLevel' => ['description' => 'Security level.'."\n"
+ .'0: Low.'."\n"
+ .'1: Medium.'."\n"
+ .'2: High.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
+ 'RiskResult' => ['description' => '0: No risk.'."\n"
+ .'1: Risk detected.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'DenyTopics' => [
+ 'description' => 'List of sensitive topic objects.',
+ 'type' => 'object',
+ 'properties' => [
+ 'RiskResult' => ['description' => '0: No risk.'."\n"
+ .'1: Risk detected.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
+ 'ConfidenceScore' => ['description' => 'Confidence level.', 'type' => 'number', 'format' => 'double', 'example' => '0.0', 'title' => ''],
+ 'TopicInfoList' => [
+ 'description' => 'List of sensitive topics.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'List of sensitive topics.',
+ 'type' => 'object',
+ 'properties' => [
+ 'CategoryType' => ['description' => '0: Text.'."\n"
+ .'1: Image.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
+ 'TopicName' => ['description' => 'Topic name.', 'type' => 'string', 'example' => '业务敏感', 'title' => ''],
+ 'SecurityLevel' => ['description' => 'Security level.'."\n"
+ .'0: Low.'."\n"
+ .'1: Medium.'."\n"
+ .'2: High.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
+ 'RiskResult' => ['description' => '0: No risk.'."\n"
+ .'1: Risk detected.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'SensitiveType' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RiskResult' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
+ 'MaskedContent' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'SensitiveTypeInfoList' => [
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'SensitiveTypeName' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'SensitiveCategory' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
+ 'SensitiveContent' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'MaskedContent' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'ActionType' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'HttpStatusCode' => ['description' => 'HTTP status code.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
+ 'Message' => ['description' => 'Error message.', 'type' => 'string', 'example' => '""', 'title' => ''],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Request ID.', 'type' => 'string', 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****'],
+ 'Success' => ['description' => 'Operation success status. true means success. false means failure.', 'type' => 'boolean', 'example' => 'True', 'title' => ''],
+ 'SafeAnswer' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"00000\\",\\n \\"RiskInfo\\": \\"“”\\",\\n \\"RiskResult\\": 0,\\n \\"TraceInfo\\": {\\n \\"BlockWord\\": {\\n \\"RiskResult\\": 0,\\n \\"BlockWordGroupInfoList\\": [\\n {\\n \\"GroupName\\": \\"测试分组\\",\\n \\"BlockWordList\\": [\\n {\\n \\"Word\\": \\"测试关键词\\",\\n \\"WordLabel\\": \\"测试标签\\"\\n }\\n ]\\n }\\n ]\\n },\\n \\"HarmfulCategories\\": {\\n \\"RiskResult\\": 0,\\n \\"ConfidenceScore\\": 0,\\n \\"HarmfulCategoryInfoList\\": [\\n {\\n \\"CategoryType\\": 0,\\n \\"CategoryLabel\\": \\"伦理道德\\",\\n \\"SubCategoryLabel\\": \\"不良行为\\",\\n \\"SecurityLevel\\": 1,\\n \\"RiskResult\\": 0\\n }\\n ]\\n },\\n \\"PromptAttack\\": {\\n \\"RiskResult\\": 0,\\n \\"PromptAttackInfo\\": \\"角色扮演\\",\\n \\"SecurityLevel\\": 0,\\n \\"ConfidenceScore\\": 0,\\n \\"PromptAttackInfoList\\": [\\n {\\n \\"CategoryType\\": 0,\\n \\"CategoryLabel\\": \\"角色扮演\\",\\n \\"SecurityLevel\\": 0,\\n \\"RiskResult\\": 1\\n }\\n ]\\n },\\n \\"DenyTopics\\": {\\n \\"RiskResult\\": 0,\\n \\"ConfidenceScore\\": 0,\\n \\"TopicInfoList\\": [\\n {\\n \\"CategoryType\\": 0,\\n \\"TopicName\\": \\"业务敏感\\",\\n \\"SecurityLevel\\": 0,\\n \\"RiskResult\\": 1\\n }\\n ]\\n },\\n \\"SensitiveType\\": {\\n \\"RiskResult\\": 0,\\n \\"MaskedContent\\": \\"\\",\\n \\"SensitiveTypeInfoList\\": [\\n {\\n \\"SensitiveTypeName\\": \\"\\",\\n \\"SensitiveCategory\\": 0,\\n \\"SensitiveContent\\": \\"\\",\\n \\"MaskedContent\\": \\"\\",\\n \\"ActionType\\": 0\\n }\\n ]\\n }\\n },\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"\\\\\\"\\\\\\"\\",\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Success\\": true,\\n \\"SafeAnswer\\": \\"\\"\\n}","type":"json"}]',
+ 'title' => 'Synchronous Detection of Model Output Content',
+ 'changeSet' => [
+ ['createdAt' => '2025-10-16T03:11:06.000Z', 'description' => 'Response parameters changed'],
+ ['createdAt' => '2025-08-06T10:35:02.000Z', 'description' => 'Response parameters changed'],
+ ['createdAt' => '2025-06-12T08:56:27.000Z', 'description' => 'Response parameters changed'],
+ ],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'rai:ModelOutputContentSyncDetect',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'RAI', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'RegisterAccount' => [
+ 'summary' => 'Registers a new user for the service. This operation registers users who are not yet registered.',
+ 'path' => '',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATURElearnFME3AK'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The ID of the region.', 'type' => 'string', 'required' => false, 'example' => 'cn-shanghai', 'title' => ''],
+ ],
+ [
+ 'name' => 'Memo',
+ 'in' => 'query',
+ 'schema' => ['description' => 'A note about the user.', 'type' => 'string', 'required' => false, 'example' => '"user api register"', 'title' => ''],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response.',
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => ['description' => 'The status code. A value of 00000 means success. Any other value means failure.', 'type' => 'string', 'example' => '00000', 'title' => ''],
+ 'HttpStatusCode' => ['description' => 'The HTTP status code.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
+ 'Message' => ['description' => 'The error message, if an error occurs.', 'type' => 'string', 'example' => '""', 'title' => ''],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'The request ID.', 'type' => 'string', 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****'],
+ 'Success' => ['description' => 'Indicates whether the call succeeded. true means success. false means failure.', 'type' => 'boolean', 'example' => 'True', 'title' => ''],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"00000\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"\\\\\\"\\\\\\"\\",\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => 'Account Activation',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'rai:RegisterAccount',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'RAI', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'UpdateModelInstance' => [
+ 'summary' => 'Updates a model instance.',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'paid',
+ 'abilityTreeNodes' => ['FEATURElearnFME3AK'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ModelCategoryId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The ID of the model category.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1', 'title' => ''],
+ ],
+ [
+ 'name' => 'EasServiceName',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The name of the Elastic Algorithm Service (EAS) service.', 'type' => 'string', 'required' => false, 'example' => 'rai_content_detection_model', 'title' => ''],
+ ],
+ [
+ 'name' => 'EasServiceId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The ID of the EAS service.', 'type' => 'string', 'required' => false, 'example' => 'eas-m-12345678', 'title' => ''],
+ ],
+ [
+ 'name' => 'ModelUrl',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The Internet endpoint of the EAS service.', 'type' => 'string', 'required' => false, 'example' => 'http://12345*****.cn-shanghai.aliyuncs.com/api/predict/echo', 'title' => ''],
+ ],
+ [
+ 'name' => 'ModelVpcUrl',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The Virtual Private Cloud (VPC) endpoint of the EAS service.', 'type' => 'string', 'required' => false, 'example' => 'http://12345*****.vpc.cn-shanghai.aliyuncs.com/api/predict/demo', 'title' => ''],
+ ],
+ [
+ 'name' => 'ModelToken',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The token of the model.', 'type' => 'string', 'required' => false, 'example' => 'MzJiMDI5MDliODc0MTlkYmI0ZDhlYmExYjczYTIyZTE3Zm********', 'title' => ''],
+ ],
+ [
+ 'name' => 'ModelCallName',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The model name parameter in the OpenAI API.', 'type' => 'string', 'required' => false, 'example' => 'demo', 'title' => ''],
+ ],
+ [
+ 'name' => 'Description',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The description of the model.', 'type' => 'string', 'required' => false, 'example' => 'vllm==0.9.0', 'title' => ''],
+ ],
+ [
+ 'name' => 'ModelInstanceId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The ID of the model instance.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '123', 'title' => ''],
+ ],
+ [
+ 'name' => 'WorkspaceId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The ID of the workspace.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '608226', 'title' => ''],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => ['description' => 'The result code. A value of 00000 indicates that the request was successful. Other values indicate that the request failed.', 'type' => 'string', 'example' => '00000', 'title' => ''],
+ 'HttpStatusCode' => ['description' => 'The HTTP status code.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
+ 'Message' => ['description' => 'The error message returned if the request fails.', 'type' => 'string', 'example' => '""', 'title' => ''],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****'],
+ 'Success' => ['description' => 'Indicates whether the operation was successful. A value of true indicates that the operation was successful. A value of false indicates that the operation failed.', 'type' => 'boolean', 'example' => 'True', 'title' => ''],
+ 'ModelInstanceId' => ['description' => 'The ID of the model instance.', 'type' => 'integer', 'format' => 'int64', 'example' => '1', 'title' => ''],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"00000\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"\\\\\\"\\\\\\"\\",\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Success\\": true,\\n \\"ModelInstanceId\\": 1\\n}","type":"json"}]',
+ 'title' => 'Update a model instance',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'rai:UpdateModelInstance',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'RAI', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'UpdatePolicy' => [
+ 'summary' => 'Updates a detection policy.',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'paid',
+ 'abilityTreeNodes' => ['FEATURElearnFME3AK'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-shanghai', 'title' => ''],
+ ],
+ [
+ 'name' => 'PolicyId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The detection policy ID.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '16', 'title' => ''],
+ ],
+ [
+ 'name' => 'PolicyName',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The name of the detection policy.', 'type' => 'string', 'required' => false, 'example' => '测试策略', 'title' => ''],
+ ],
+ [
+ 'name' => 'HarmfulCategoryConfigInfoList',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'A list of harmful content classification configurations.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'A harmful content classification configuration object.',
+ 'type' => 'object',
+ 'properties' => [
+ 'CategoryConfigId' => ['description' => 'The ID of the harmful content classification configuration.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1', 'title' => ''],
+ 'InputOutputType' => ['description' => 'The type of model content. Valid values:'."\n"
+ .'0: input'."\n"
+ .'1: output', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '0', 'title' => ''],
+ 'CategoryType' => ['description' => 'The content type. Valid values:'."\n"
+ .'0: text'."\n"
+ .'1: image', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '0', 'title' => ''],
+ 'CategoryLabel' => ['description' => 'The name of the classification.', 'type' => 'string', 'required' => false, 'example' => '伦理道德', 'title' => ''],
+ 'IsEnabled' => ['description' => 'Specifies whether to enable the prompt attack configuration.'."\n"
+ .'0: Off'."\n"
+ .'1: On', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
+ 'SecurityLevel' => ['description' => 'The security level. Valid values:'."\n"
+ .'0: low'."\n"
+ .'1: medium'."\n"
+ .'2: high', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '2', 'title' => ''],
+ 'CategoryId' => ['type' => 'integer', 'format' => 'int64', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
+ ],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ [
+ 'name' => 'WordGroupInfoList',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'A list of keyword group objects.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'A keyword group object.',
+ 'type' => 'object',
+ 'properties' => [
+ 'GroupId' => ['description' => 'The ID of the keyword group.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '5fa285a60a9342e097cb7a3491ec00cc', 'title' => ''],
+ 'InputOutputType' => ['description' => 'The type of model content. Valid values:'."\n"
+ .'0: input'."\n"
+ .'1: output', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '0', 'title' => ''],
+ 'GroupName' => ['description' => 'The name of the keyword group.', 'type' => 'string', 'required' => false, 'example' => '测试分组', 'title' => ''],
+ ],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ [
+ 'name' => 'PromptAttackInfo',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'The object that contains the prompt injection detection results.',
+ 'type' => 'object',
+ 'properties' => [
+ 'IsEnabled' => ['description' => 'Indicates whether to enable prompt injection detection. Valid values:'."\n"
+ .'0: disabled'."\n"
+ .'1: enabled', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
+ 'SecurityLevel' => ['description' => 'The security level. Valid values:'."\n"
+ .'0: low'."\n"
+ .'1: medium'."\n"
+ .'2: high', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '2', 'title' => ''],
+ ],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ [
+ 'name' => 'PromptAttackInfoList',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'A list of prompt injection attack configurations.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'Prompt Attack List',
+ 'type' => 'object',
+ 'properties' => [
+ 'CategoryConfigId' => ['description' => 'The ID of the harmful content classification configuration.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1', 'title' => ''],
+ 'CategoryLabel' => ['description' => 'The name of the classification.', 'type' => 'string', 'required' => false, 'example' => '角色扮演', 'title' => ''],
+ 'IsEnabled' => ['description' => 'Indicates whether the configuration is enabled. Valid values:'."\n"
+ .'0: disabled'."\n"
+ .'1: enabled', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
+ 'SecurityLevel' => ['description' => 'The security level. Valid values:'."\n"
+ .'0: low'."\n"
+ .'1: medium'."\n"
+ .'2: high', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
+ 'CategoryId' => ['type' => 'integer', 'format' => 'int64', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
+ ],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ [
+ 'name' => 'TopicConfigInfoList',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'A list of sensitive topic configurations.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'A list of sensitive subjects.',
+ 'type' => 'object',
+ 'properties' => [
+ 'TopicId' => ['description' => 'The ID of the sensitive topic.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '3', 'title' => ''],
+ 'InputOutputType' => ['description' => 'The type of model content. Valid values:'."\n"
+ .'0: input'."\n"
+ .'1: output', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '0', 'title' => ''],
+ 'CategoryType' => ['description' => 'The content type. Valid values:'."\n"
+ .'0: text'."\n"
+ .'1: image', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '0', 'title' => ''],
+ 'TopicName' => ['description' => 'The name of the topic.', 'type' => 'string', 'required' => false, 'example' => '业务敏感', 'title' => ''],
+ 'SecurityLevel' => ['description' => 'The security level. Valid values:'."\n"
+ .'0: low'."\n"
+ .'1: medium'."\n"
+ .'2: high', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
+ ],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ [
+ 'name' => 'EnableSensitiveInputCheck',
+ 'in' => 'query',
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
+ ],
+ [
+ 'name' => 'EnableSensitiveOutputCheck',
+ 'in' => 'query',
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
+ ],
+ [
+ 'name' => 'InputSafeAnswer',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
+ ],
+ [
+ 'name' => 'InputSafeAnswerSwitch',
+ 'in' => 'query',
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
+ ],
+ [
+ 'name' => 'OutputSafeAnswer',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
+ ],
+ [
+ 'name' => 'OutputSafeAnswerSwitch',
+ 'in' => 'query',
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
+ ],
+ [
+ 'name' => 'IsSidecarPolicy',
+ 'in' => 'query',
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
+ ],
+ [
+ 'name' => 'ContentSafeModelInstanceId',
+ 'in' => 'query',
+ 'schema' => ['type' => 'integer', 'format' => 'int64', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
+ ],
+ [
+ 'name' => 'PromptAttackModelInstanceId',
+ 'in' => 'query',
+ 'schema' => ['type' => 'integer', 'format' => 'int64', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
+ ],
+ [
+ 'name' => 'SensitiveTopicModelInstanceId',
+ 'in' => 'query',
+ 'schema' => ['type' => 'integer', 'format' => 'int64', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
+ ],
+ [
+ 'name' => 'WorkspaceId',
+ 'in' => 'query',
+ 'schema' => ['type' => 'integer', 'format' => 'int64', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
+ ],
+ [
+ 'name' => 'SensitiveWordList',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Word' => ['type' => 'string', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
+ 'Label' => ['type' => 'string', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ 'required' => false,
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'SensitiveConfigList',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'SensitiveConfigId' => ['type' => 'integer', 'format' => 'int64', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
+ 'ActionType' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
+ 'IsEnabled' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ 'required' => false,
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'RegularExpressList',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RegularExpressName' => ['type' => 'string', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
+ 'RegularExpress' => ['type' => 'string', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
+ 'ActionType' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ 'required' => false,
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'SensitiveTopicList',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'TopicName' => ['type' => 'string', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
+ 'TopicDefinition' => ['type' => 'string', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
+ 'SecurityLevel' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
+ 'CategoryType' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
+ 'TopicExampleInfoList' => [
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Content' => ['type' => 'string', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
+ 'ExampleType' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ 'required' => false,
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ 'required' => false,
+ ],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ 'required' => false,
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'SceneType',
+ 'in' => 'query',
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response.',
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => ['description' => 'The status code. A value of \\`00000\\` indicates that the request was successful. Other values indicate that the request failed.', 'type' => 'string', 'example' => '00000', 'title' => ''],
+ 'HttpStatusCode' => ['description' => 'The HTTP status code.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
+ 'Message' => ['description' => 'The message returned.', 'type' => 'string', 'example' => '""', 'title' => ''],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'The ID of the request.', 'type' => 'string', 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****'],
+ 'Success' => ['description' => 'Indicates whether the operation was successful. Valid values: \\`true\\`: The operation was successful. \\`false\\`: The operation failed.', 'type' => 'boolean', 'example' => 'True', 'title' => ''],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"00000\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"\\\\\\"\\\\\\"\\",\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => 'Update Detection Policy',
+ 'changeSet' => [
+ ['createdAt' => '2025-10-16T03:11:06.000Z', 'description' => 'Request parameters changed'],
+ ['createdAt' => '2025-08-06T10:35:02.000Z', 'description' => 'Request parameters changed'],
+ ['createdAt' => '2025-06-12T08:56:27.000Z', 'description' => 'Request parameters changed'],
+ ],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'rai:UpdatePolicy',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'RAI', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'UpdateTopic' => [
+ 'summary' => 'Updates a sensitive topic.',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'paid',
+ 'abilityTreeNodes' => ['FEATURElearnFME3AK'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-shanghai', 'title' => ''],
+ ],
+ [
+ 'name' => 'TopicId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The ID of the sensitive topic returned after a successful call.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '216', 'title' => ''],
+ ],
+ [
+ 'name' => 'TopicName',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The name of the topic to create.', 'type' => 'string', 'required' => false, 'example' => '业务敏感', 'title' => ''],
+ ],
+ [
+ 'name' => 'TopicDefinition',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The definition of the sensitive topic.', 'type' => 'string', 'required' => false, 'example' => '这里敏感主题描述', 'title' => ''],
+ ],
+ [
+ 'name' => 'BodyData',
+ 'in' => 'formData',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'The request object.',
+ 'type' => 'object',
+ 'properties' => [
+ 'TopicExampleInfoList' => [
+ 'description' => 'A list of sample examples.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'A list of examples.',
+ 'type' => 'object',
+ 'properties' => [
+ 'Content' => ['description' => 'The description of the sample example.', 'type' => 'string', 'required' => false, 'example' => '食品安全很重要', 'title' => ''],
+ 'ExampleType' => ['description' => 'The type of the sample example. Valid values: 0 (positive sample) and 1 (negative sample).', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '0', 'title' => ''],
+ ],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Request object',
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => ['description' => 'The status code. A value of 00000 indicates success. Other values indicate failure.', 'type' => 'string', 'example' => '00000', 'title' => ''],
+ 'HttpStatusCode' => ['description' => 'The HTTP status code.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
+ 'Message' => ['description' => 'The response message.', 'type' => 'string', 'example' => '""', 'title' => ''],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'The request ID.', 'type' => 'string', 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****F68692'],
+ 'Success' => ['description' => 'Indicates whether the operation succeeded. A value of true indicates success. A value of false indicates failure.', 'type' => 'boolean', 'example' => 'True', 'title' => ''],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"00000\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"\\\\\\"\\\\\\"\\",\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****F68692\\",\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => 'Update a sensitive topic ',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'rai:UpdateTopic',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'RAI', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'UpdateWordGroup' => [
+ 'summary' => 'UpdateWordGroup',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'paid',
+ 'abilityTreeNodes' => ['FEATURElearnFME3AK'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Region ID.', 'type' => 'string', 'required' => false, 'example' => 'cn-shanghai', 'title' => ''],
+ ],
+ [
+ 'name' => 'GroupId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Keyword group ID.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1', 'title' => ''],
+ ],
+ [
+ 'name' => 'GroupName',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Keyword group name.', 'type' => 'string', 'required' => false, 'example' => '测试分组', 'title' => ''],
+ ],
+ [
+ 'name' => 'WordInfoListModified',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Whether the keyword information has been modified.', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'title' => ''],
+ ],
+ [
+ 'name' => 'Commit',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Whether to commit.'."\n"
+ .'false: Not actually saved, only checked'."\n"
+ .'true: Commit and save', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'title' => ''],
+ ],
+ [
+ 'name' => 'BodyData',
+ 'in' => 'formData',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'Request object.',
+ 'type' => 'object',
+ 'properties' => [
+ 'WordInfoList' => [
+ 'description' => 'List of keyword groups.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'Keyword group.',
+ 'type' => 'object',
+ 'properties' => [
+ 'Word' => ['description' => 'Keyword.', 'type' => 'string', 'required' => false, 'example' => '投资', 'title' => ''],
+ 'Label' => ['description' => 'Label.', 'type' => 'string', 'required' => false, 'example' => '业务敏感', 'title' => ''],
+ ],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Return result.',
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => ['description' => 'Status code, 00000 indicates success; others indicate failure.', 'type' => 'string', 'example' => '00000', 'title' => ''],
+ 'WordErrorInfoList' => [
+ 'description' => 'List of error information.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'List of error information.',
+ 'type' => 'object',
+ 'properties' => [
+ 'Index' => ['description' => 'Position of the error information in the array.', 'type' => 'integer', 'format' => 'int64', 'example' => '1', 'title' => ''],
+ 'Word' => ['description' => 'Keyword.', 'type' => 'string', 'example' => '投资', 'title' => ''],
+ 'Label' => ['description' => 'Label.', 'type' => 'string', 'example' => '业务敏感', 'title' => ''],
+ 'ErrorStatus' => ['description' => 'Error status information.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ 'ErrorMessage' => ['description' => 'Error message description.', 'type' => 'string', 'example' => '关键词冲突', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'HttpStatusCode' => ['description' => 'HTTP status code.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
+ 'Message' => ['description' => 'If there is an error, return the error message.', 'type' => 'string', 'example' => '""', 'title' => ''],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Request ID.', 'type' => 'string', 'example' => 'AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****'],
+ 'Success' => ['description' => 'Whether it was successful.', 'type' => 'boolean', 'example' => 'True', 'title' => ''],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"00000\\",\\n \\"WordErrorInfoList\\": [\\n {\\n \\"Index\\": 1,\\n \\"Word\\": \\"投资\\",\\n \\"Label\\": \\"业务敏感\\",\\n \\"ErrorStatus\\": 1,\\n \\"ErrorMessage\\": \\"关键词冲突\\"\\n }\\n ],\\n \\"HttpStatusCode\\": 200,\\n \\"Message\\": \\"\\\\\\"\\\\\\"\\",\\n \\"RequestId\\": \\"AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\\",\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => 'Update Keyword Strategy',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'rai:UpdateWordGroup',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'RAI', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ 'translator' => 'machine',
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ ],
+ ],
+ 'endpoints' => [
+ ['regionId' => 'cn-shanghai', 'regionName' => 'China (Shanghai)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'rai.cn-shanghai.aliyuncs.com', 'endpoint' => 'rai.cn-shanghai.aliyuncs.com', 'vpc' => 'rai-vpc.cn-shanghai.aliyuncs.com'],
+ ],
+ 'errorCodes' => [],
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ram' => [
+ 'productCode' => 'RAI',
+ 'productName' => 'Platform for AI',
+ 'ramCodes' => ['rai'],
+ 'ramLevel' => 'OPERATION',
+ 'ramConditions' => [],
+ 'ramActions' => [
+ [
+ 'apiName' => 'CreateModelInstance',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'rai:CreateModelInstance',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'RAI', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DeletePolicy',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'rai:DeletePolicy',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'RAI', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetModelOutputContentDetectResult',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'rai:GetModelOutputContentDetectResult',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'RAI', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ModelInputContentAsyncDetect',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'rai:ModelInputContentAsyncDetect',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'RAI', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListModelInstance',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'rai:ListModelInstance',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'RAI', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ModelOutputContentAsyncDetect',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'rai:ModelOutputContentAsyncDetect',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'RAI', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ModelInputContentSyncDetect',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'rai:ModelInputContentSyncDetect',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'RAI', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'BatchContentSyncDetect',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'additionalActions' => [],
+ 'ramAction' => [
+ 'action' => 'rai:BatchContentSyncDetect',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'RAI', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DeleteModelInstance',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'rai:DeleteModelInstance',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'RAI', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'UpdateTopic',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'rai:UpdateTopic',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'RAI', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CheckAccount',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'rai:CheckAccount',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'RAI', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetModelInstanceInfo',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'rai:GetModelInstanceInfo',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'RAI', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'UpdatePolicy',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'rai:UpdatePolicy',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'RAI', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'UpdateWordGroup',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'rai:UpdateWordGroup',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'RAI', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListWordGroup',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'rai:ListWordGroup',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'RAI', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetWordGroup',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'rai:GetWordGroup',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'RAI', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CreateTopic',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'rai:CreateTopic',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'RAI', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListModelCategory',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'rai:ListModelCategory',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'RAI', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DeleteTopic',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'rai:DeleteTopic',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'RAI', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListTopic',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'rai:ListTopic',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'RAI', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetPolicyDefaultOptions',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'rai:GetPolicyDefaultOptions',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'RAI', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetModelInputContentDetectResult',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'rai:GetModelInputContentDetectResult',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'RAI', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'UpdateModelInstance',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'rai:UpdateModelInstance',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'RAI', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'RegisterAccount',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'rai:RegisterAccount',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'RAI', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ContentSyncDetect',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'additionalActions' => [],
+ 'ramAction' => [
+ 'action' => 'rai:ContentSyncDetect',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'RAI', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ModelOutputContentSyncDetect',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'rai:ModelOutputContentSyncDetect',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'RAI', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetTopic',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'rai:GetTopic',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'RAI', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetPolicyInfo',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'rai:GetPolicyInfo',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'RAI', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CreatePolicy',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'rai:CreatePolicy',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'RAI', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ContentAsyncDetect',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'additionalActions' => [],
+ 'ramAction' => [
+ 'action' => 'rai:ContentAsyncDetect',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'RAI', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetContentDetectResult',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'rai:GetContentDetectResult',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'RAI', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DeleteWordGroup',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'rai:DeleteWordGroup',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'RAI', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'BatchContentAsyncDetect',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'additionalActions' => [],
+ 'ramAction' => [
+ 'action' => 'rai:BatchContentAsyncDetect',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'RAI', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CreateWordGroup',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'rai:CreateWordGroup',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'RAI', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListPolicy',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'rai:ListPolicy',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'RAI', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ 'resourceTypes' => [],
+ ],
];