From 1c7f908ce09f98fdcbf79ed2a8ae21be60eaa634 Mon Sep 17 00:00:00 2001 From: Zhineng Li Date: Sun, 12 Jul 2026 17:11:17 +0800 Subject: update APIs 20260712 --- data/en_us/alimt/2018-10-12/api-docs.php | 6203 +++++++++++++----------------- 1 file changed, 2729 insertions(+), 3474 deletions(-) (limited to 'data/en_us/alimt/2018-10-12/api-docs.php') diff --git a/data/en_us/alimt/2018-10-12/api-docs.php b/data/en_us/alimt/2018-10-12/api-docs.php index 9a54c4d..4212ec3 100644 --- a/data/en_us/alimt/2018-10-12/api-docs.php +++ b/data/en_us/alimt/2018-10-12/api-docs.php @@ -1,98 +1,53 @@ '1.0', - 'info' => [ - 'style' => 'RPC', - 'product' => 'alimt', - 'version' => '2018-10-12', - ], + 'info' => ['style' => 'RPC', 'product' => 'alimt', 'version' => '2018-10-12'], 'directories' => [ [ - 'id' => 87656, - 'title' => null, + 'children' => ['GetBatchTranslate', 'CreateAsyncTranslate', 'GetAsyncTranslate', 'GetDetectLanguage'], 'type' => 'directory', - 'children' => [ - 'TranslateGeneral', - 'Translate', - 'TranslateECommerce', - 'GetBatchTranslate', - 'CreateAsyncTranslate', - 'GetAsyncTranslate', - 'GetDetectLanguage', - ], + 'title' => 'Text translation', ], [ - 'id' => 87669, - 'title' => null, - 'type' => 'directory', 'children' => [ [ - 'id' => 184530, - 'title' => null, + 'children' => ['TranslateImage', 'TranslateImageBatch', 'GetTranslateImageBatchResult'], 'type' => 'directory', - 'children' => [ - 'TranslateImage', - 'TranslateImageBatch', - 'GetTranslateImageBatchResult', - ], + 'title' => 'Image translation', ], [ - 'id' => 184531, - 'title' => null, + 'children' => ['CreateDocTranslateTask', 'GetDocTranslateTask'], 'type' => 'directory', - 'children' => [ - 'CreateDocTranslateTask', - 'GetDocTranslateTask', - ], + 'title' => 'Document translation', ], 'TranslateCertificate', ], + 'type' => 'directory', + 'title' => 'Multimodal translation', ], [ - 'id' => 87651, - 'title' => null, + 'children' => ['GetImageTranslate', 'CreateImageTranslateTask', 'GetImageTranslateTask', 'GetImageDiagnose', 'GetTitleDiagnose', 'GetTitleGenerate', 'GetTitleIntelligence'], 'type' => 'directory', - 'children' => [ - 'GetImageTranslate', - 'CreateImageTranslateTask', - 'GetImageTranslateTask', - 'GetImageDiagnose', - 'GetTitleDiagnose', - 'GetTitleGenerate', - 'GetTitleIntelligence', - ], + 'title' => 'Cross-border e-commerce language tools', ], [ - 'id' => 87654, - 'title' => null, + 'children' => ['OpenAlimtService', 'GetTranslateReport'], 'type' => 'directory', - 'children' => [ - 'OpenAlimtService', - 'GetTranslateReport', - ], + 'title' => 'Management', ], [ - 'id' => 221262, - 'title' => null, + 'children' => ['TranslateSearch', 'Translate', 'TranslateECommerce', 'TranslateGeneral'], 'type' => 'directory', - 'children' => [ - 'TranslateSearch', - ], + 'title' => 'Others', ], ], 'components' => [ 'schemas' => [], ], 'apis' => [ - 'TranslateGeneral' => [ - 'summary' => '文本通用翻译', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'CreateAsyncTranslate' => [ + 'summary' => 'The machine asynchronous translation job creation API supports translation of up to 1 million characters. ', + 'methods' => ['post', 'get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -101,311 +56,393 @@ 'BearerToken' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'none', - 'riskType' => 'none', - 'chargeType' => 'free', - 'tenantRelevance' => 'publicInformation', - ], + 'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'], 'parameters' => [ - [ - 'name' => 'FormatType', - 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'text', - ], - ], [ 'name' => 'SourceLanguage', 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'zh', - ], + 'schema' => ['description' => 'Source language. For language codes, see [Language Code Reference](https://help.aliyun.com/document_detail/158269.html?spm=a2c4g.11186623.6.542.7da22b9fayuNoj). ', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'en', 'title' => ''], ], [ 'name' => 'TargetLanguage', 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'en', - ], + 'schema' => ['description' => 'Target language. For language codes, see the reference.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'zh', 'title' => ''], ], [ 'name' => 'SourceText', 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '', - ], + 'schema' => ['description' => 'Content to be translated ', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'Opinion: We have finally gotten some relief at the pump. But it may not last long', 'title' => ''], ], [ 'name' => 'Scene', 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'docRequired' => true, - 'example' => 'general', - 'default' => 'general', - ], + 'schema' => ['description' => 'Scenario. Supported values include: general, title (product title), description (product description), message (buyer-seller communication), medical, social, and tech. ', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'general', 'title' => ''], ], [ - 'name' => 'Context', - 'in' => 'query', - 'schema' => [ - 'title' => 'context信息', - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => '{\\"appName\\":\\"alynx\\"}', - ], + 'name' => 'FormatType', + 'in' => 'formData', + 'schema' => ['description' => 'The format of the text to translate: **html** (web page format; when this parameter is set, both the source text and the translated text are processed as HTML) or **text** (plain text format; when this parameter is set, neither the source text nor the translation result undergoes any formatting treatment and is uniformly handled as plain text).', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'text', 'title' => ''], + ], + [ + 'name' => 'ApiType', + 'in' => 'formData', + 'schema' => ['description' => '- Version type. You must select one version: '."\n" + ."\n" + .'- General-purpose Edition: translate_standard '."\n" + ."\n" + .'- Professional Edition: translate_ecommerce ', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'translate_standard', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'Code' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Message' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'success', - ], - 'RequestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '86D18195-D89C-4C8C-9DC4-5FCE789CE6D5', - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'The unique ID of the request, used for troubleshooting. ', 'type' => 'string', 'example' => 'DC2DCCC9-C3DF-4F59-8D8E-78185729F16D'], + 'Code' => ['description' => 'Error code ', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''], + 'Message' => ['description' => 'Response message ', 'type' => 'string', 'example' => 'success', 'title' => ''], 'Data' => [ - 'description' => '', 'type' => 'object', 'properties' => [ - 'Translated' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'Hello', - ], - 'WordCount' => [ - 'description' => '', - 'type' => 'string', - 'example' => '10', - ], - 'DetectedLanguage' => [ - 'type' => 'string', - ], + 'JobId' => ['description' => 'Asynchronous task ID. ', 'type' => 'string', 'required' => true, 'example' => '98bbb007-71bb-448b-bab0-2695ce8f8599', 'title' => ''], + 'Status' => ['description' => 'Task Status ', 'type' => 'string', 'required' => true, 'example' => 'ready', 'title' => ''], ], + 'description' => 'Response data ', + 'title' => '', + 'example' => '', ], ], + 'example' => '', ], ], ], 'errorCodes' => [ 101 => [ - [ - 'errorCode' => '10001', - 'errorMessage' => 'The request has timed out.', - ], + ['errorCode' => '10001', 'errorMessage' => 'The request has timed out.', 'description' => ''], + ], + 103 => [ + ['errorCode' => '10003', 'errorMessage' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.', 'description' => ''], ], [ - [ - 'errorCode' => '10002', - 'errorMessage' => 'A system error occurred.', - ], + ['errorCode' => '10004', 'errorMessage' => 'Some required parameters are missing.', 'description' => ''], ], [ - [ - 'errorCode' => '10003', - 'errorMessage' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.', - ], + ['errorCode' => '10005', 'errorMessage' => 'The specified language pair is not supported.', 'description' => ''], ], [ - [ - 'errorCode' => '10004', - 'errorMessage' => 'Some required parameters are missing.', - ], + ['errorCode' => '10006', 'errorMessage' => 'An error occurred while detecting the language.', 'description' => ''], ], [ - [ - 'errorCode' => '10005', - 'errorMessage' => 'The specified language pair is not supported.', - ], + ['errorCode' => '10007', 'errorMessage' => 'An error occurred while translating.', 'description' => ''], ], [ - [ - 'errorCode' => '10006', - 'errorMessage' => 'An error occurred while detecting the language.', - ], + ['errorCode' => '10008', 'errorMessage' => 'The specified string is too long.', 'description' => ''], + ], + 400 => [ + ['errorCode' => '10010', 'errorMessage' => 'You have not activated this service.', 'description' => 'You have not activated this service.'], + ['errorCode' => '10013', 'errorMessage' => 'You have not activated the account service or the account service has overdue bills.', 'description' => 'You have not activated the account service or the account service has overdue bills.'], + ['errorCode' => '10021', 'errorMessage' => 'The parameter is invalid.', 'description' => ''], + ['errorCode' => '10026', 'errorMessage' => 'Failed to translate the certificate. Please check the parameters.', 'description' => ''], + ], + 403 => [ + ['errorCode' => '10009', 'errorMessage' => 'The RAM user is not authorized to perform this operation.', 'description' => 'The RAM user is not authorized to perform this operation.'], ], [ - [ - 'errorCode' => '10007', - 'errorMessage' => 'An error occurred while translating.', + ['errorCode' => '10025', 'errorMessage' => 'The specified task does not exist.', 'description' => 'The specified task does not exist.'], + ], + 500 => [ + ['errorCode' => '10002', 'errorMessage' => 'A system error occurred.', 'description' => ''], + ['errorCode' => '10011', 'errorMessage' => 'An error occurred while invoking the RAM user service.', 'description' => 'An error occurred while invoking the RAM user service.'], + ['errorCode' => '10012', 'errorMessage' => 'An error occurred while calling the translation service.', 'description' => 'An error occurred while calling the translation service.'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"DC2DCCC9-C3DF-4F59-8D8E-78185729F16D\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"Data\\": {\\n \\"JobId\\": \\"98bbb007-71bb-448b-bab0-2695ce8f8599\\",\\n \\"Status\\": \\"ready\\"\\n }\\n}","type":"json"}]', + 'title' => 'Create a text asynchronous translation job ', + 'description' => '1. The maximum character length for machine asynchronous translation is 1 million characters. 2. For the text asynchronous translation job creation API, refer to the Alibaba Cloud OpenAPI Developer Portal to debug and invoke the API. ', + 'responseParamsDescription' => 'Sample '."\n" + .'Normal response example '."\n" + ."\n" + .'JSON format '."\n" + ."\n" + .'{'."\n" + .' "RequestId": "3AD51F66-4829-1E47-93F7-03BE3C0428F3",'."\n" + .' "Data": {'."\n" + .' "Status": "ready",'."\n" + .' "JobId": "2ff1e8b1-3842-4f1a-9bba-b8eea6b9720b"'."\n" + .' },'."\n" + .' "Code": "200"'."\n" + .'}', + 'changeSet' => [], + 'ramActions' => [ + [ + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'alimt:CreateAsyncTranslate', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], + ], ], ], + ], + ], + 'CreateDocTranslateTask' => [ + 'summary' => 'Creates a document translation task.', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], + 'security' => [ [ - [ - 'errorCode' => '10008', - 'errorMessage' => 'The specified string is too long.', - ], + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'], + 'parameters' => [ + [ + 'name' => 'SourceLanguage', + 'in' => 'formData', + 'schema' => ['description' => 'The source language. For more information, see [Language codes](https://help.aliyun.com/document_detail/158269.html?spm=a2c4g.11186623.6.542.7da22b9fayuNoj).', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'en', 'title' => ''], ], [ - [ - 'errorCode' => '10009', - 'errorMessage' => '子账号没有权限', - ], + 'name' => 'TargetLanguage', + 'in' => 'formData', + 'schema' => ['description' => 'The target language. For more information, see [Language codes](https://help.aliyun.com/document_detail/158269.html?spm=a2c4g.11186623.6.542.7da22b9fayuNoj).', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'zh', 'title' => ''], ], [ - [ - 'errorCode' => '10010', - 'errorMessage' => '账号没有开通服务', - ], + 'name' => 'FileUrl', + 'in' => 'formData', + 'schema' => ['description' => 'The URL of the document.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'isFileTransferUrl' => true, 'example' => 'http://fileUrl', 'title' => ''], ], [ - [ - 'errorCode' => '10011', - 'errorMessage' => '子账号服务失败', - ], + 'name' => 'Scene', + 'in' => 'formData', + 'schema' => ['description' => 'The scenario. Valid values: \\`general\\`, \\`title\\` (product titles), \\`description\\` (product descriptions), \\`message\\` (buyer-seller communication), \\`medical\\`, \\`social\\`, and \\`tech\\`.', 'type' => 'string', 'required' => false, 'docRequired' => false, 'default' => 'general', 'example' => 'general', 'title' => ''], ], [ - [ - 'errorCode' => '10012', - 'errorMessage' => '翻译服务调用失败', - ], + 'name' => 'CallbackUrl', + 'in' => 'formData', + 'schema' => ['description' => 'The webhook address for the translation result. The server sends a POST request to this address.'."\n" + ."\n" + .'Request body'."\n" + ."\n" + .'Raw JSON'."\n" + ."\n" + .'- Parameter Description'."\n" + ."\n" + .'- task\\_id: The task ID.'."\n" + ."\n" + .'- status: The task status.'."\n" + ."\n" + .'- errCode: The error code.'."\n" + ."\n" + .'- errMsg: The error message.'."\n" + ."\n" + .'- translateFileUrl: The URL to download the translated file. The URL is valid for 1 hour.'."\n" + ."\n" + .'IP address whitelist'."\n" + ."\n" + .'59.82.61.52'."\n" + ."\n" + .'203.119.241.30'."\n" + ."\n" + .'203.119.241.98'."\n" + ."\n" + .'59.82.84.90'."\n" + ."\n" + .'203.119.241.56'."\n" + ."\n" + .'59.82.61.75'."\n" + ."\n" + .'Sample callback service: This service is used to receive the translation result through a callback.'."\n" + ."\n" + .'```'."\n" + .'import com.alibaba.fastjson.JSON;'."\n" + ."\n" + .'import com.alibaba.fastjson.JSONObject;'."\n" + ."\n" + .'import org.springframework.web.bind.annotation.RequestBody;'."\n" + ."\n" + .'import org.springframework.web.bind.annotation.RequestMapping;'."\n" + ."\n" + .'import org.springframework.web.bind.annotation.RequestMethod;'."\n" + ."\n" + .'import org.springframework.web.bind.annotation.RestController;'."\n" + ."\n" + .'@RestController'."\n" + ."\n" + .'public class CallbackController {'."\n" + ."\n" + .' @RequestMapping(value = "callback", method = RequestMethod.POST)'."\n" + ."\n" + .' public void callback(@RequestBody String body) {'."\n" + ."\n" + .' try {'."\n" + ."\n" + .' JSONObject result = JSON.parseObject(body);'."\n" + ."\n" + .' if (200 != result.getInteger("errCode")) {'."\n" + ."\n" + .' System.out.println("fail " + result.getString("errMsg"));'."\n" + ."\n" + .' return;'."\n" + ."\n" + .' }'."\n" + ."\n" + .' System.out.println("task_id:" + result.getString("task_id"));'."\n" + ."\n" + .' System.out.println("status:" + result.getString("status"));'."\n" + ."\n" + .' System.out.println("translateFileUrl:" + result.getString("translateFileUrl"));'."\n" + ."\n" + .' } catch (Exception e) {'."\n" + ."\n" + .' e.printStackTrace();'."\n" + ."\n" + .' }'."\n" + ."\n" + .' }'."\n" + ."\n" + .'}'."\n" + .'```', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => 'http://callbackUrl', 'title' => ''], ], [ - [ - 'errorCode' => '10013', - 'errorMessage' => '账号服务没有开通或者欠费', + 'name' => 'ClientToken', + 'in' => 'formData', + 'schema' => ['description' => 'Ensures idempotence. A request with the same client token is processed only once within 3 minutes.', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => 'token', 'title' => ''], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'Status' => ['description' => 'The status of the task.', 'type' => 'string', 'example' => 'ready', 'title' => ''], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'D3920BC3-A395-4CAD-9E84-7C39EB07507B', 'title' => ''], + 'TaskId' => ['description' => 'The task ID.', 'type' => 'string', 'example' => '0586df512c8b4bb382d7d9a6a01b5854', 'title' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], + ], + 'errorCodes' => [ + 109 => [ + ['errorCode' => '10009', 'errorMessage' => '子账号没有权限', 'description' => ''], + ], + [ + ['errorCode' => '10010', 'errorMessage' => '账号没有开通服务', 'description' => ''], + ], + [ + ['errorCode' => '10011', 'errorMessage' => '子账号服务失败', 'description' => ''], + ], + [ + ['errorCode' => '10012', 'errorMessage' => '翻译服务调用失败', 'description' => ''], + ], + [ + ['errorCode' => '10013', 'errorMessage' => '账号服务没有开通或者欠费', 'description' => ''], + ], 199 => [ - [ - 'errorCode' => '19999', - 'errorMessage' => 'An unknown error occurred.', - ], + ['errorCode' => '19999', 'errorMessage' => 'An unknown error occurred.', 'description' => ''], + ], + 400 => [ + ['errorCode' => '10021', 'errorMessage' => 'The parameter is invalid.', 'description' => ''], + ['errorCode' => '10022', 'errorMessage' => 'The parameter fileUrl is invalid.', 'description' => ''], + ['errorCode' => '10023', 'errorMessage' => 'The parameter fileUrl is not accessible.', 'description' => ''], + ['errorCode' => '10024', 'errorMessage' => 'The parameter callbackUrl is invalid.', 'description' => 'The parameter callbackUrl is invalid.'], + ['errorCode' => '10031', 'errorMessage' => 'The specified file type is invalid.', 'description' => 'The type of file is not valid.'], + ['errorCode' => 'InvalidAccountStatus', 'errorMessage' => 'The Machine Translation service has not been activated.', 'description' => 'The Machine Translation service has not been activated.'], + ['errorCode' => 'RepeatInvoke', 'errorMessage' => 'Repeated calls.', 'description' => 'Repeated calls'], + ], + 403 => [ + ['errorCode' => '10029', 'errorMessage' => 'The number of calls per day exceeds the limit.', 'description' => 'The number of calls per day limit exceeded.'], + ], + 429 => [ + ['errorCode' => 'REQUESTS.OVER.LIMIT', 'errorMessage' => 'The request is too frequent, please try again later.', 'description' => 'Request too frequent, please try again later'], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"86D18195-D89C-4C8C-9DC4-5FCE789CE6D5\\",\\n \\"Data\\": {\\n \\"Translated\\": \\"Hello\\",\\n \\"WordCount\\": \\"10\\",\\n \\"DetectedLanguage\\": \\"zh\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 14E447CA-B93B-4526-ACD7-42AE13CC2AF6\\n \\n Hello\\n \\n 200\\n","errorExample":""}]', + 'title' => 'CreateDocTranslateTask', + 'description' => '> This operation supports only POST requests.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'Translate' => [ - 'summary' => '专业文本翻译', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'changeSet' => [ + ['createdAt' => '2024-07-29T03:16:52.000Z', 'description' => 'Error codes changed'], + ['createdAt' => '2024-05-09T02:35:40.000Z', 'description' => 'Error codes changed'], + ['createdAt' => '2022-11-11T08:44:01.000Z', 'description' => 'Error codes changed'], + ], + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'alimt:CreateDocTranslateTask', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Status\\": \\"ready\\",\\n \\"RequestId\\": \\"D3920BC3-A395-4CAD-9E84-7C39EB07507B\\",\\n \\"TaskId\\": \\"0586df512c8b4bb382d7d9a6a01b5854\\"\\n}","type":"json"}]', + ], + 'CreateImageTranslateTask' => [ + 'summary' => 'Create an asynchronous image translation job. Image translation includes capabilities such as OCR, text translation, and text backfill.', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], - [ - 'BearerToken' => [], - ], ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'none', - 'riskType' => 'none', - 'chargeType' => 'free', - 'tenantRelevance' => 'publicInformation', - ], + 'systemTags' => ['operationType' => 'create', 'riskType' => 'high', 'chargeType' => 'paid', 'tenantRelevance' => 'publicInformation'], 'parameters' => [ [ - 'name' => 'FormatType', - 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'text', - ], - ], - [ - 'name' => 'TargetLanguage', + 'name' => 'UrlList', 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'en', - ], + 'schema' => ['description' => 'The URLs of images for translation. Separate multiple image URLs with commas. The number of images cannot exceed 20.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'http://xxx,http://yyy', 'title' => ''], ], [ 'name' => 'SourceLanguage', 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'zh', - ], + 'schema' => ['description' => 'The source language of the image', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'zh', 'title' => ''], ], [ - 'name' => 'SourceText', + 'name' => 'TargetLanguage', 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '', - 'maxLength' => 256000, - ], + 'schema' => ['description' => 'The target language for image translation', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'en', 'title' => ''], ], [ - 'name' => 'Scene', + 'name' => 'Extra', 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'title', - ], + 'schema' => ['description' => '- The following JSON format content contains optional parameters. You can omit any parameters you do not need.'."\n" + .'- Example JSON format:'."\n" + .'```'."\n" + .'{'."\n" + .' "have_ocr": "false",'."\n" + .' "without_text": "false",'."\n" + .' "have_psd": "true",'."\n" + .' "ignore_entity": "false"'."\n" + .'}'."\n" + .'```'."\n" + .'- `have_ocr`: Controls whether to return OCR results. true: required, false: not required '."\n" + .'- `without_text`: Controls whether to erase text from the image. true: required, false: not required '."\n" + .'- `have_psd`: Controls whether to return editor data for rendering in the editor. true: required, false: not required '."\n" + .'- `ignore_entity`: Specifies whether to ignore Named Entity Recognition. true: ignore, false: do not ignore', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => '{"have_ocr":"false","without_text":"false","have_psd":"true","ignore_entity":"false"}', 'title' => ''], ], [ - 'name' => 'Context', - 'in' => 'query', - 'schema' => [ - 'title' => '新增context', - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => '{\\"appName\\":\\"alynx\\"}', - ], + 'name' => 'ClientToken', + 'in' => 'formData', + 'schema' => ['description' => 'Provides idempotency. Within 3 minutes, requests with the same value will take effect only once.', 'type' => 'string', 'required' => false, 'example' => '1', 'title' => ''], ], ], 'responses' => [ @@ -413,244 +450,232 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Message' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'success', - ], - 'RequestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '86D18195-D89C-4C8C-9DC4-5FCE789CE6D5', - ], + 'Code' => ['description' => 'The status code. A value of 200 indicates Normal.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''], + 'Message' => ['description' => 'The error message returned when a fault occurs'."\n", 'type' => 'string', 'example' => 'ok', 'title' => ''], + 'RequestId' => ['description' => 'The unique string of the request'."\n", 'type' => 'string', 'example' => 'A41F6E25-8520-4AF0-90EF-AF7E32840108', 'title' => ''], 'Data' => [ - 'description' => '', + 'description' => 'The returned data content'."\n", 'type' => 'object', 'properties' => [ - 'Translated' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'Hello', - ], - 'WordCount' => [ - 'description' => '', - 'type' => 'string', - 'example' => '10', - ], - 'DetectedLanguage' => [ - 'type' => 'string', - ], + 'TaskId' => ['description' => 'The job ID returned by the asynchronous image translation. You can use this ID later to retrieve the translation result.', 'type' => 'string', 'example' => 'A41F6E25-8520-4AF0-90EF-111111', 'title' => ''], ], + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 101 => [ - [ - 'errorCode' => '10001', - 'errorMessage' => 'The request has timed out.', - ], + ['errorCode' => 'System.RequestTimeOut', 'errorMessage' => 'The request has timed out.', 'description' => ''], ], [ - [ - 'errorCode' => '10002', - 'errorMessage' => 'A system error occurred.', - ], + ['errorCode' => 'System.Error', 'errorMessage' => 'A system error occurred.', 'description' => ''], ], [ - [ - 'errorCode' => '10003', - 'errorMessage' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.', - ], + ['errorCode' => 'System.UrlDecodingError', 'errorMessage' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.', 'description' => ''], ], [ - [ - 'errorCode' => '10004', - 'errorMessage' => 'Some required parameters are missing.', - ], + ['errorCode' => 'System.ParameterError', 'errorMessage' => 'Some required parameters are missing.', 'description' => ''], ], [ - [ - 'errorCode' => '10005', - 'errorMessage' => 'The specified language pair is not supported.', - ], + ['errorCode' => 'System.LanguageNotSupported', 'errorMessage' => 'The specified language pair is not supported.', 'description' => ''], ], [ - [ - 'errorCode' => '10006', - 'errorMessage' => 'An error occurred while detecting the language.', - ], + ['errorCode' => 'System.LanguageDetectError', 'errorMessage' => 'An error occurred while detecting the language.', 'description' => ''], ], [ - [ - 'errorCode' => '10007', - 'errorMessage' => 'An error occurred while translating.', - ], + ['errorCode' => 'System.TranslateError', 'errorMessage' => 'An error occurred while translating.', 'description' => ''], ], [ - [ - 'errorCode' => '10008', - 'errorMessage' => 'The specified string is too long.', - ], + ['errorCode' => 'System.StringTooLong', 'errorMessage' => 'The maximum length of the specified string is exceeded.', 'description' => ''], ], - [ - [ - 'errorCode' => '10009', - 'errorMessage' => '子账号没有权限', - ], + 110 => [ + ['errorCode' => 'System.AccountNotActivated', 'errorMessage' => 'The account has not activated the service.', 'description' => ''], ], [ - [ - 'errorCode' => '10010', - 'errorMessage' => '账号没有开通服务', - ], + ['errorCode' => 'System.SubServiceFailed', 'errorMessage' => 'Sub-account service failed.', 'description' => ''], ], [ - [ - 'errorCode' => '10011', - 'errorMessage' => '子账号服务失败', - ], + ['errorCode' => 'System.TranslateServiceCallFailed', 'errorMessage' => 'Failed to call the translation service.', 'description' => ''], ], [ - [ - 'errorCode' => '10012', - 'errorMessage' => '翻译服务调用失败', - ], + ['errorCode' => 'System.AccountNotActivatedOrInArrears', 'errorMessage' => 'The service is not activated or the account has an outstanding balance.', 'description' => ''], ], - [ - [ - 'errorCode' => '10013', - 'errorMessage' => '账号服务没有开通或者欠费', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"ok\\",\\n \\"RequestId\\": \\"A41F6E25-8520-4AF0-90EF-AF7E32840108\\",\\n \\"Data\\": {\\n \\"TaskId\\": \\"A41F6E25-8520-4AF0-90EF-111111\\"\\n }\\n}","type":"json"}]', + 'title' => 'Guide for invoking the asynchronous image translation creation API', + 'description' => '>This API is scheduled for unpublishing and is not recommended for continued use.>', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [], + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'alimt:CreateImageTranslateTask', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], + ], ], ], - 199 => [ - [ - 'errorCode' => '19999', - 'errorMessage' => 'An unknown error occurred.', - ], + ], + ], + 'GetAsyncTranslate' => [ + 'summary' => 'Retrieve the content of an asynchronous text translation job.', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], ], ], - 'eventInfo' => [ - 'enable' => false, - 'eventNames' => [], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'none'], + 'parameters' => [ + [ + 'name' => 'JobId', + 'in' => 'formData', + 'schema' => ['description' => 'Asynchronous job ID. This is the JobId returned when you invoke CreateAsyncTranslate to create an asynchronous job.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '77056ab7-7be1-4c2a-91a1-f20f63894048', 'title' => ''], + ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"86D18195-D89C-4C8C-9DC4-5FCE789CE6D5\\",\\n \\"Data\\": {\\n \\"Translated\\": \\"Hello\\",\\n \\"WordCount\\": \\"10\\",\\n \\"DetectedLanguage\\": \\"zh\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"success\\n86D18195-D89C-4C8C-9DC4-5FCE789CE6D5\\n\\n Hello\\n\\n200","errorExample":""}]', - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', - ], - 'TranslateECommerce' => [ - 'summary' => 'TranslateECommerce', - 'methods' => [ - 'post', - 'get', + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['title' => 'Id of the request', 'description' => 'The unique ID of the request, used for troubleshooting purposes.', 'type' => 'string', 'example' => 'DC2DCCC9-C3DF-4F59-8D8E-78185729F16D'], + 'Code' => ['description' => 'Status code', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''], + 'Message' => ['description' => 'Response message.', 'type' => 'string', 'example' => 'ok', 'title' => ''], + 'Data' => [ + 'description' => 'Data content', + 'type' => 'object', + 'properties' => [ + 'Status' => ['description' => 'Task Status', 'type' => 'string', 'example' => 'ready', 'title' => ''], + 'TranslatedText' => ['description' => 'Translated Content', 'type' => 'string', 'example' => 'hello', 'title' => ''], + 'WordCount' => ['description' => 'Number of characters in the source text', 'type' => 'string', 'example' => '2', 'title' => ''], + 'DetectedLanguage' => ['description' => 'Source language code detected when the source language is set to auto', 'type' => 'string', 'example' => 'zh', 'title' => ''], + ], + 'title' => '', + 'example' => '', + ], + ], + 'example' => '', + ], + ], + ], + 'errorCodes' => [ + 109 => [ + ['errorCode' => 'System.SubNotPermission', 'errorMessage' => 'The sub account is not authorized to perform the operation.', 'description' => ''], + ], + 400 => [ + ['errorCode' => 'Parameter.SourceLangError', 'errorMessage' => 'Source languages are not supported.', 'description' => 'Source languages are not supported.'], + ['errorCode' => 'Parameter.TargetLangError', 'errorMessage' => 'Target languages are not supported.', 'description' => 'Target languages are not supported.'], + ['errorCode' => 'System.AccountNotActivated', 'errorMessage' => 'The account has not activated the service.', 'description' => 'Account is not activated'], + ['errorCode' => 'System.AccountNotActivatedOrInArrears', 'errorMessage' => 'The service is not activated or the account has an outstanding balance.', 'description' => 'Account service is not activated or in arrears'], + ['errorCode' => 'System.LanguageNotSupported', 'errorMessage' => 'The specified language pair is not supported.', 'description' => 'The specified language pair is not supported.'], + ['errorCode' => 'System.ParameterError', 'errorMessage' => 'Some required parameters are missing.', 'description' => 'Some required parameters are missing.'], + ['errorCode' => 'System.StringTooLong', 'errorMessage' => 'The maximum length of the specified string is exceeded.', 'description' => 'The specified string is too long.'], + ], + 403 => [ + ['errorCode' => 'System.subNotPermission', 'errorMessage' => 'The sub-account is not authorized to perform the operation.', 'description' => 'The sub account does not have permission'], + ], + 500 => [ + ['errorCode' => 'System.Error', 'errorMessage' => 'A system error occurred.', 'description' => 'A system error occurred.'], + ['errorCode' => 'System.LanguageDetectError', 'errorMessage' => 'An error occurred while detecting the language.', 'description' => 'An error occurred while detecting the language.'], + ['errorCode' => 'System.RequestTimeOut', 'errorMessage' => 'The request has timed out.', 'description' => 'The request has timed out.'], + ['errorCode' => 'System.SubServiceFailed', 'errorMessage' => 'Sub-account service failed.', 'description' => 'Sub-account service failed'], + ['errorCode' => 'System.TranslateError', 'errorMessage' => 'An error occurred while translating.', 'description' => 'An error occurred while translating.'], + ['errorCode' => 'System.TranslateServiceCallFailed', 'errorMessage' => 'Failed to call the translation service.', 'description' => 'Translation service call failed'], + ['errorCode' => 'System.unknownError', 'errorMessage' => 'An unknown error occurred.', 'description' => 'An unknown error occurred.'], + ['errorCode' => 'System.UrlDecodingError', 'errorMessage' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.', 'description' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"DC2DCCC9-C3DF-4F59-8D8E-78185729F16D\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"ok\\",\\n \\"Data\\": {\\n \\"Status\\": \\"ready\\",\\n \\"TranslatedText\\": \\"hello\\",\\n \\"WordCount\\": \\"2\\",\\n \\"DetectedLanguage\\": \\"zh\\"\\n }\\n}","type":"json"}]', + 'title' => 'Retrieve Text Asynchronous Translation Job', + 'description' => 'Obtain the translation content of the corresponding asynchronous job by using the job ID.', + 'changeSet' => [], + 'ramActions' => [ + [ + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'alimt:GetAsyncTranslate', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + ], + 'GetBatchTranslate' => [ + 'summary' => 'Translates multiple text segments in a batch.', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], - [ - 'BearerToken' => [], - ], ], 'operationType' => 'read', - 'deprecated' => true, - 'systemTags' => [ - 'operationType' => 'none', - 'riskType' => 'none', - 'chargeType' => 'free', - 'tenantRelevance' => 'publicInformation', - ], + 'deprecated' => false, + 'systemTags' => ['operationType' => 'get', 'riskType' => 'high', 'chargeType' => 'paid', 'tenantRelevance' => 'publicInformation'], 'parameters' => [ [ 'name' => 'FormatType', 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'enumValueTitles' => [ - 'html' => 'html', - 'text' => 'text', - ], - 'example' => 'text', - ], + 'schema' => ['description' => 'The format of the text to translate. \\`html\\`: The source and translated text are processed as HTML. \\`text\\`: The source and translated text are processed as plain text.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'text ', 'title' => ''], ], [ 'name' => 'TargetLanguage', 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'zh', - ], + 'schema' => ['description' => 'The target language. For more information, see [Language codes](https://help.aliyun.com/document_detail/158269.html?spm=a2c4g.11186623.2.8.53746614hvrF2G). For more information, see [Language codes](https://www.alibabacloud.com/help/zh/doc-detail/158269.html).', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'zh', 'title' => ''], ], [ 'name' => 'SourceLanguage', 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'en', - ], + 'schema' => ['description' => 'The source language. For more information, see [Language codes](https://help.aliyun.com/document_detail/158269.html?spm=a2c4g.11186623.2.8.53746614hvrF2G). For more information, see [Language codes](https://www.alibabacloud.com/help/zh/doc-detail/158269.html).', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'en', 'title' => ''], ], [ - 'name' => 'SourceText', + 'name' => 'Scene', 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'Hello', - ], + 'schema' => ['description' => '- Scenarios supported by the Professional Edition: product titles (\\`title\\`), product descriptions (\\`description\\`), customer communication (\\`communication\\`), medical (\\`medical\\`), and social (\\`social\\`).'."\n" + ."\n" + .'- Scenario supported by the General-purpose Edition: \\`general\\`.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'general', 'title' => ''], ], [ - 'name' => 'Scene', + 'name' => 'ApiType', 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'enumValueTitles' => [ - 'medical' => 'medical', - 'social' => 'social', - 'description' => 'description', - 'communication' => 'communication', - 'title' => 'title', - 'finance' => 'finance', - ], - 'example' => 'social', - ], + 'schema' => ['description' => '- The edition type. You must specify an edition.'."\n" + ."\n" + .'- General-purpose Edition: \\`translate\\_standard\\`'."\n" + ."\n" + .'- Professional Edition: \\`translate\\_ecommerce\\`', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'translate_standard', 'title' => ''], ], [ - 'name' => 'Context', - 'in' => 'query', - 'schema' => [ - 'title' => 'context信息', - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'context信息', - ], + 'name' => 'SourceText', + 'in' => 'formData', + 'schema' => ['description' => 'The source text to translate, in JSON format.'."\n" + ."\n" + .'key: A unique ID to map the translation result to the source text.'."\n" + ."\n" + .'value: The content to translate.'."\n" + ."\n" + .'The format is as follows: `{ "11": "hello boy", "12": "go home", "13": "we can" }`'."\n" + ."\n" + .'> The number of text segments cannot exceed 50. The length of a single text segment cannot exceed 1,000 characters. The total number of characters cannot exceed 8,000. The key is not included in the character count. Punctuation, spaces, and HTML tags in the content are included in the character count.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'isFileTransferUrl' => false, 'example' => '{"11":"hello boy","12":"go home","13":"we can"}', 'title' => ''], ], ], 'responses' => [ @@ -658,228 +683,141 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Message' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'An error occurred while translating.', - ], - 'RequestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'CC93BB5C-EAB5-579B-AA44-F61528F48FF8', - ], - 'Data' => [ - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'Translated' => [ - 'description' => '', - 'type' => 'string', - 'example' => '', - ], - 'WordCount' => [ - 'description' => '', - 'type' => 'string', - 'example' => '10', - ], - 'DetectedLanguage' => [ - 'type' => 'string', - ], - ], + 'Code' => ['description' => 'The error code.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''], + 'Message' => ['description' => 'The message returned.', 'type' => 'string', 'example' => 'success', 'title' => ''], + 'RequestId' => ['description' => 'The unique ID of the request. Use this ID for troubleshooting.', 'type' => 'string', 'example' => '86D18195-D89C-4C8C-9DC4-5FCE789CE6D5', 'title' => ''], + 'TranslatedList' => [ + 'type' => 'array', + 'items' => ['description' => 'The result, in JSON format.'."\n" + ."\n" + .'code: The status code for the translation of a single segment.'."\n" + ."\n" + .'wordCount: The number of characters in the source text.'."\n" + ."\n" + .'detectedLanguage: The language code of the source language detected when SourceLanguage is set to \\`auto\\`.'."\n" + ."\n" + .'index: The key from the input parameters. This unique ID maps the result to the source text.'."\n" + ."\n" + .'translated: The translation result.', 'type' => 'object', 'example' => '['."\n" + .' {'."\n" + .' "code": "200",'."\n" + .' "wordCount": "9",'."\n" + .' "detectedLanguage": "en"'."\n" + .' "index": "11",'."\n" + .' "translated": "你好男孩"'."\n" + .' },'."\n" + .' {'."\n" + .' "code": "200",'."\n" + .' "wordCount": "7",'."\n" + .' "detectedLanguage": "en"'."\n" + .' "index": "12",'."\n" + .' "translated": "回家"'."\n" + .' },'."\n" + .' {'."\n" + .' "code": "200",'."\n" + .' "wordCount": "6",'."\n" + .' "detectedLanguage": "en"'."\n" + .' "index": "13",'."\n" + .' "translated": "我们可以"'."\n" + .' }'."\n" + .']', 'title' => ''], + 'description' => '', + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 101 => [ - [ - 'errorCode' => '10001', - 'errorMessage' => 'The request has timed out.', - ], + ['errorCode' => 'System.RequestTimeOut', 'errorMessage' => 'The request has timed out.', 'description' => ''], ], [ - [ - 'errorCode' => '10002', - 'errorMessage' => 'A system error occurred.', - ], + ['errorCode' => 'System.Error', 'errorMessage' => 'A system error occurred.', 'description' => ''], ], [ - [ - 'errorCode' => '10003', - 'errorMessage' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.', - ], + ['errorCode' => 'System.UrlDecodingError', 'errorMessage' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.', 'description' => ''], ], [ - [ - 'errorCode' => '10004', - 'errorMessage' => 'Some required parameters are missing.', - ], + ['errorCode' => 'System.ParameterError', 'errorMessage' => 'Some required parameters are missing.', 'description' => ''], ], [ - [ - 'errorCode' => '10005', - 'errorMessage' => 'The specified language pair is not supported.', - ], + ['errorCode' => 'System.LanguageNotSupported', 'errorMessage' => 'The specified language pair is not supported.', 'description' => ''], ], [ - [ - 'errorCode' => '10006', - 'errorMessage' => 'An error occurred while detecting the language.', - ], + ['errorCode' => 'System.LanguageDetectError', 'errorMessage' => 'An error occurred while detecting the language.', 'description' => ''], ], [ - [ - 'errorCode' => '10007', - 'errorMessage' => 'An error occurred while translating.', - ], + ['errorCode' => 'System.TranslateError', 'errorMessage' => 'An error occurred while translating.', 'description' => ''], ], [ - [ - 'errorCode' => '10008', - 'errorMessage' => 'The specified string is too long.', - ], + ['errorCode' => 'System.StringTooLong', 'errorMessage' => 'The maximum length of the specified string is exceeded.', 'description' => ''], ], [ - [ - 'errorCode' => '10009', - 'errorMessage' => '子账号没有权限', - ], + ['errorCode' => 'System.SubNotPermission', 'errorMessage' => 'The sub account is not authorized to perform the operation.', 'description' => ''], + ['errorCode' => 'System.subNotPermission', 'errorMessage' => 'The sub-account is not authorized to perform the operation.', 'description' => ''], ], [ - [ - 'errorCode' => '10010', - 'errorMessage' => '账号没有开通服务', - ], + ['errorCode' => 'System.AccountNotActivated', 'errorMessage' => 'The account has not activated the service.', 'description' => ''], ], [ - [ - 'errorCode' => '10011', - 'errorMessage' => '子账号服务失败', - ], + ['errorCode' => 'System.SubServiceFailed', 'errorMessage' => 'Sub-account service failed.', 'description' => ''], ], [ - [ - 'errorCode' => '10012', - 'errorMessage' => '翻译服务调用失败', - ], + ['errorCode' => 'System.TranslateServiceCallFailed', 'errorMessage' => 'Failed to call the translation service.', 'description' => ''], ], [ - [ - 'errorCode' => '10013', - 'errorMessage' => '账号服务没有开通或者欠费', - ], + ['errorCode' => 'System.AccountNotActivatedOrInArrears', 'errorMessage' => 'The service is not activated or the account has an outstanding balance.', 'description' => ''], ], 199 => [ - [ - 'errorCode' => '19999', - 'errorMessage' => 'An unknown error occurred.', - ], + ['errorCode' => 'System.unknownError', 'errorMessage' => 'An unknown error occurred.', 'description' => ''], + ['errorCode' => 'System.UnknownError', 'errorMessage' => 'An unknown system error occurred.', 'description' => ''], ], ], - 'staticInfo' => [ - 'substitutions' => [ - 'alimt::2018-10-12::Translate', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"86D18195-D89C-4C8C-9DC4-5FCE789CE6D5\\",\\n \\"TranslatedList\\": [\\n {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n ]\\n}","type":"json"}]', + 'title' => 'Machine Batch Translation Invocation Guide', + 'description' => '1\\. The queries per second (QPS) limit for this API is 50. To request a limit increase, contact us in DingTalk group 23369411. 2. The maximum length of a single text segment is 1,000 characters. You can translate up to 50 segments in a single request. If your content exceeds these limits, save it to a file and use [Document Translation](https://help.aliyun.com/document_detail/164151.html).'."\n" + .'3. Before you use this API, review the billing methods and pricing for the General-purpose and Professional editions.'."\n" + .'4. You can use the Alibaba Cloud OpenAPI Developer Portal to [test](https://next.api.aliyun.com/api/alimt/2018-10-12/GetBatchTranslate) this API call.'."\n" + .'2. The maximum length of a single text segment is 1,000 characters. You can translate up to 50 segments in a single request. Before you use this API, review the billing methods and pricing for the General-purpose and Professional editions.', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'alimt:GetBatchTranslate', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"An error occurred while translating.\\",\\n \\"RequestId\\": \\"CC93BB5C-EAB5-579B-AA44-F61528F48FF8\\",\\n \\"Data\\": {\\n \\"Translated\\": \\"你好\\",\\n \\"WordCount\\": \\"10\\",\\n \\"DetectedLanguage\\": \\"\\"\\n }\\n}","type":"json"}]', ], - 'GetBatchTranslate' => [ - 'summary' => '批量文本翻译', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'GetDetectLanguage' => [ + 'summary' => 'This document describes the language detection API.', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'read', - 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'high', - 'chargeType' => 'paid', - 'tenantRelevance' => 'publicInformation', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'], 'parameters' => [ - [ - 'name' => 'FormatType', - 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'text ', - ], - ], - [ - 'name' => 'TargetLanguage', - 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'zh', - ], - ], - [ - 'name' => 'SourceLanguage', - 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'en', - ], - ], - [ - 'name' => 'Scene', - 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'general', - ], - ], - [ - 'name' => 'ApiType', - 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'translate_standard', - ], - ], [ 'name' => 'SourceText', 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '{"11":"hello boy","12":"go home","13":"we can"}', - 'isFileTransferUrl' => false, - ], + 'schema' => ['description' => 'The language to be detected.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '你好', 'title' => ''], ], ], 'responses' => [ @@ -887,372 +825,184 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Message' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'success', - ], - 'RequestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '86D18195-D89C-4C8C-9DC4-5FCE789CE6D5', - ], - 'TranslatedList' => [ - 'type' => 'array', - 'items' => [ - 'description' => '', - 'type' => 'object', - 'example' => '', - ], - ], + 'DetectedLanguage' => ['description' => 'The language was detected successfully.', 'type' => 'string', 'example' => 'zh', 'title' => ''], + 'RequestId' => ['description' => 'The unique ID of the request.', 'type' => 'string', 'example' => '0C5EC1EC-1A06-4D60-97E6-4D41350945E4', 'title' => ''], + 'LanguageProbabilities' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 101 => [ - [ - 'errorCode' => 'System.RequestTimeOut', - 'errorMessage' => 'The request has timed out.', - ], + ['errorCode' => '10001', 'errorMessage' => 'The request has timed out.', 'description' => ''], ], [ - [ - 'errorCode' => 'System.Error', - 'errorMessage' => 'A system error occurred.', - ], + ['errorCode' => '10002', 'errorMessage' => 'A system error occurred.', 'description' => ''], ], [ - [ - 'errorCode' => 'System.UrlDecodingError', - 'errorMessage' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.', - ], + ['errorCode' => '10003', 'errorMessage' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.', 'description' => ''], ], [ - [ - 'errorCode' => 'System.ParameterError', - 'errorMessage' => 'Some required parameters are missing.', - ], + ['errorCode' => '10004', 'errorMessage' => 'Some required parameters are missing.', 'description' => ''], ], [ - [ - 'errorCode' => 'System.LanguageNotSupported', - 'errorMessage' => 'The specified language pair is not supported.', - ], + ['errorCode' => '10005', 'errorMessage' => 'The specified language pair is not supported.', 'description' => ''], ], [ - [ - 'errorCode' => 'System.LanguageDetectError', - 'errorMessage' => 'An error occurred while detecting the language.', - ], + ['errorCode' => '10006', 'errorMessage' => 'An error occurred while detecting the language.', 'description' => ''], ], [ - [ - 'errorCode' => 'System.TranslateError', - 'errorMessage' => 'An error occurred while translating.', - ], + ['errorCode' => '10007', 'errorMessage' => 'An error occurred while translating.', 'description' => ''], ], [ - [ - 'errorCode' => 'System.StringTooLong', - 'errorMessage' => 'The maximum length of the specified string is exceeded.', - ], + ['errorCode' => '10008', 'errorMessage' => 'The specified string is too long.', 'description' => ''], ], [ - [ - 'errorCode' => 'System.SubNotPermission', - 'errorMessage' => 'The sub account is not authorized to perform the operation.', - ], - [ - 'errorCode' => 'System.subNotPermission', - 'errorMessage' => 'The sub-account is not authorized to perform the operation.', - ], + ['errorCode' => '10009', 'errorMessage' => '子账号没有权限', 'description' => ''], ], [ - [ - 'errorCode' => 'System.AccountNotActivated', - 'errorMessage' => 'The account has not activated the service.', - ], + ['errorCode' => '10010', 'errorMessage' => '账号没有开通服务', 'description' => ''], ], [ - [ - 'errorCode' => 'System.SubServiceFailed', - 'errorMessage' => 'Sub-account service failed.', - ], + ['errorCode' => '10011', 'errorMessage' => '子账号服务失败', 'description' => ''], ], [ - [ - 'errorCode' => 'System.TranslateServiceCallFailed', - 'errorMessage' => 'Failed to call the translation service.', - ], + ['errorCode' => '10012', 'errorMessage' => '翻译服务调用失败', 'description' => ''], ], [ - [ - 'errorCode' => 'System.AccountNotActivatedOrInArrears', - 'errorMessage' => 'The service is not activated or the account has an outstanding balance.', - ], + ['errorCode' => '10013', 'errorMessage' => '账号服务没有开通或者欠费', 'description' => ''], ], 199 => [ - [ - 'errorCode' => 'System.unknownError', - 'errorMessage' => 'An unknown error occurred.', - ], - [ - 'errorCode' => 'System.UnknownError', - 'errorMessage' => 'An unknown system error occurred.', - ], + ['errorCode' => '19999', 'errorMessage' => 'An unknown error occurred.', 'description' => ''], + ], + 400 => [ + ['errorCode' => 'System.ParameterError', 'errorMessage' => 'Some required parameters are missing.', 'description' => 'Some required parameters are missing.'], + ], + 503 => [ + ['errorCode' => 'System.Error', 'errorMessage' => 'A system error occurred.', 'description' => ''], + ['errorCode' => 'Internal.Error', 'errorMessage' => 'The internal service connection timeout, please try again later.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"86D18195-D89C-4C8C-9DC4-5FCE789CE6D5\\",\\n \\"TranslatedList\\": [\\n {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"success\\n86D18195-D89C-4C8C-9DC4-5FCE789CE6D5\\n[{\\"code\\":\\"200\\",\\"wordCount\\":\\"9\\",\\"index\\":\\"11\\",\\"translated\\":\\"你好男孩\\"},{\\"code\\":\\"200\\",\\"wordCount\\":\\"7\\",\\"index\\":\\"12\\",\\"translated\\":\\"回家\\"},{\\"code\\":\\"200\\",\\"wordCount\\":\\"6\\",\\"index\\":\\"13\\",\\"translated\\":\\"我们可以\\"}]\\n200","errorExample":""}]', + 'title' => 'Language Detection', + 'description' => '1\\. The maximum text length is 5,000 characters. The maximum number of queries per second (QPS) is 50. To request a higher limit, contact us in the DingTalk group 23369411.'."\n" + ."\n" + .'2\\. Before using this API, review the billing methods and pricing for the General-purpose Edition translation service.', 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', + 'responseParamsDescription' => 'For more information about common request parameters, see [RPC invocation mechanism](https://help.aliyun.com/document_detail/315526.html?spm=a2c4g.158244.0.0.34b627b5qv5gmt#sectiondiv-qq5-utu-r7a).', 'extraInfo' => ' ', - ], - 'CreateAsyncTranslate' => [ - 'summary' => '大文本异步翻译,支持5000-50000字翻译', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'https', + 'changeSet' => [ + ['createdAt' => '2024-06-06T08:37:37.000Z', 'description' => 'Response parameters changed'], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'alimt:GetDetectLanguage', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"DetectedLanguage\\": \\"zh\\",\\n \\"RequestId\\": \\"0C5EC1EC-1A06-4D60-97E6-4D41350945E4\\",\\n \\"LanguageProbabilities\\": \\"\\"\\n}","type":"json"}]', + ], + 'GetDocTranslateTask' => [ + 'summary' => 'Query a document translation job.', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], - [ - 'BearerToken' => [], - ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'none', - 'riskType' => 'none', - 'chargeType' => 'free', - 'tenantRelevance' => 'publicInformation', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ - 'name' => 'SourceLanguage', - 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'en', - ], - ], - [ - 'name' => 'TargetLanguage', - 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'zh', - ], - ], - [ - 'name' => 'SourceText', - 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'Opinion: We have finally gotten some relief at the pump. But it may not last long', - ], - ], - [ - 'name' => 'Scene', - 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'general', - ], - ], - [ - 'name' => 'FormatType', - 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'text', - ], - ], - [ - 'name' => 'ApiType', - 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'translate_standard', - ], + 'name' => 'TaskId', + 'in' => 'query', + 'schema' => ['description' => 'Job ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '0586df512c8b4bb382d7d9a6a01b5854', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => '', - 'type' => 'string', - 'example' => 'DC2DCCC9-C3DF-4F59-8D8E-78185729F16D', - ], - 'Code' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Message' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'success', - ], - 'Data' => [ - 'type' => 'object', - 'properties' => [ - 'JobId' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => '98bbb007-71bb-448b-bab0-2695ce8f8599', - ], - 'Status' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => 'ready', - ], - ], - ], + 'Status' => ['description' => 'Task Status.', 'type' => 'string', 'example' => 'translated', 'title' => ''], + 'RequestId' => ['description' => 'Request ID.', 'type' => 'string', 'example' => '12952E92-FDF3-4D3C-88E3-242D72BA7150', 'title' => ''], + 'TranslateFileUrl' => ['description' => 'Download URL of the translated file.', 'type' => 'string', 'example' => 'http://translateFileUrl', 'title' => ''], + 'TranslateErrorCode' => ['description' => 'Error code of the job.', 'type' => 'string', 'example' => 'Error', 'title' => ''], + 'PageCount' => ['description' => 'Number of pages in the document.', 'type' => 'integer', 'format' => 'int32', 'example' => '20', 'title' => ''], + 'TaskId' => ['description' => 'Job ID.', 'type' => 'string', 'example' => '0586df512c8b4bb382d7d9a6a01b5854', 'title' => ''], + 'TranslateErrorMessage' => ['description' => 'Error message of the job.', 'type' => 'string', 'example' => 'Fail to get the page number of document.', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ - 101 => [ - [ - 'errorCode' => '10001', - 'errorMessage' => 'The request has timed out.', - ], - ], - 103 => [ - [ - 'errorCode' => '10003', - 'errorMessage' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.', - ], + 109 => [ + ['errorCode' => '10009', 'errorMessage' => '子账号没有权限', 'description' => ''], ], [ - [ - 'errorCode' => '10004', - 'errorMessage' => 'Some required parameters are missing.', - ], + ['errorCode' => '10010', 'errorMessage' => '账号没有开通服务', 'description' => ''], ], [ - [ - 'errorCode' => '10005', - 'errorMessage' => 'The specified language pair is not supported.', - ], + ['errorCode' => '10011', 'errorMessage' => '子账号服务失败', 'description' => ''], ], [ - [ - 'errorCode' => '10006', - 'errorMessage' => 'An error occurred while detecting the language.', - ], + ['errorCode' => '10012', 'errorMessage' => '翻译服务调用失败', 'description' => ''], ], [ - [ - 'errorCode' => '10007', - 'errorMessage' => 'An error occurred while translating.', - ], + ['errorCode' => '10013', 'errorMessage' => '账号服务没有开通或者欠费', 'description' => ''], ], - [ - [ - 'errorCode' => '10008', - 'errorMessage' => 'The specified string is too long.', - ], + 199 => [ + ['errorCode' => '19999', 'errorMessage' => 'An unknown error occurred.', 'description' => ''], ], 400 => [ - [ - 'errorCode' => '10010', - 'errorMessage' => 'You have not activated this service.', - ], - [ - 'errorCode' => '10013', - 'errorMessage' => 'You have not activated the account service or the account service has overdue bills.', - ], - [ - 'errorCode' => '10021', - 'errorMessage' => 'The parameter is invalid.', - ], - [ - 'errorCode' => '10026', - 'errorMessage' => 'Failed to translate the certificate. Please check the parameters.', - ], - ], - 403 => [ - [ - 'errorCode' => '10009', - 'errorMessage' => 'The RAM user is not authorized to perform this operation.', - ], + ['errorCode' => '10021', 'errorMessage' => 'The parameter is invalid.', 'description' => ''], + ['errorCode' => 'InvalidAccountStatus', 'errorMessage' => 'The Machine Translation service has not been activated.', 'description' => 'The Machine Translation service has not been activated.'], ], - [ - [ - 'errorCode' => '10025', - 'errorMessage' => 'The specified task does not exist.', - ], + 404 => [ + ['errorCode' => '10025', 'errorMessage' => 'The specified task does not exist.', 'description' => 'The specified task does not exist.'], ], - 500 => [ - [ - 'errorCode' => '10002', - 'errorMessage' => 'A system error occurred.', - ], - [ - 'errorCode' => '10011', - 'errorMessage' => 'An error occurred while invoking the RAM user service.', - ], - [ - 'errorCode' => '10012', - 'errorMessage' => 'An error occurred while calling the translation service.', + ], + 'title' => 'Query a document translation job', + 'description' => 'Make sure you fully understand the billing method and pricing of the Document Translation product before using this API. '."\n" + .'> Supports invocation only by using the GET method.', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [ + ['createdAt' => '2022-11-11T08:44:01.000Z', 'description' => 'Error codes changed'], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'alimt:GetDocTranslateTask', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], + ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"DC2DCCC9-C3DF-4F59-8D8E-78185729F16D\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"Data\\": {\\n \\"JobId\\": \\"98bbb007-71bb-448b-bab0-2695ce8f8599\\",\\n \\"Status\\": \\"ready\\"\\n }\\n}","type":"json"}]', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Status\\": \\"translated\\",\\n \\"RequestId\\": \\"12952E92-FDF3-4D3C-88E3-242D72BA7150\\",\\n \\"TranslateFileUrl\\": \\"http://translateFileUrl\\",\\n \\"TranslateErrorCode\\": \\"Error\\",\\n \\"PageCount\\": 20,\\n \\"TaskId\\": \\"0586df512c8b4bb382d7d9a6a01b5854\\",\\n \\"TranslateErrorMessage\\": \\"Fail to get the page number of document.\\"\\n}","type":"json"}]', ], - 'GetAsyncTranslate' => [ - 'summary' => '大文本异步翻译,支持5000-50000字翻译', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'GetImageDiagnose' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -1260,192 +1010,163 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'none', - ], + 'systemTags' => ['operationType' => 'get'], 'parameters' => [ [ - 'name' => 'JobId', + 'name' => 'Url', 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '77056ab7-7be1-4c2a-91a1-f20f63894048', - ], + 'schema' => ['description' => 'Image link.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'http://xxxxx.oss-cn-shenzhen.aliyuncs.com/jd/41209/xxxxx.jpg', 'title' => ''], + ], + [ + 'name' => 'Extra', + 'in' => 'formData', + 'schema' => ['description' => '- Format content: '."\n" + .'{'."\n" + .' "product_id": "1",'."\n" + .' "platform": "ae"'."\n" + .'} '."\n" + .'- product_id: Product ID '."\n" + .'- platform: Platform to which the product belongs. Support includes ae, icbu, and lazada.', 'type' => 'string', 'required' => false, 'example' => '{ "product_id": "1", "platform": "ae" }', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => '', - 'type' => 'string', - 'example' => 'DC2DCCC9-C3DF-4F59-8D8E-78185729F16D', - ], - 'Code' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Message' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'ok', - ], + 'Code' => ['description' => 'Status code. A normal request returns 200.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''], + 'Message' => ['description' => 'Returns an error message when a fault occurs.', 'type' => 'string', 'example' => 'ok', 'title' => ''], + 'RequestId' => ['description' => 'Unique request ID.', 'type' => 'string', 'example' => 'DC2DCCC9-C3DF-4F59-8D8E-78185729F16D', 'title' => ''], 'Data' => [ - 'description' => '', + 'description' => 'Returned result.', 'type' => 'object', 'properties' => [ - 'Status' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'ready', - ], - 'TranslatedText' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'hello', - ], - 'WordCount' => [ - 'description' => '', - 'type' => 'string', - 'example' => '2', - ], - 'DetectedLanguage' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'zh', - ], + 'Language' => ['description' => 'Language of the text detected in the image.', 'type' => 'string', 'example' => 'zh', 'title' => ''], ], + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ - 109 => [ - [ - 'errorCode' => 'System.SubNotPermission', - 'errorMessage' => 'The sub account is not authorized to perform the operation.', - ], + 101 => [ + ['errorCode' => 'System.RequestTimeOut', 'errorMessage' => 'The request has timed out.', 'description' => ''], ], - 400 => [ - [ - 'errorCode' => 'Parameter.SourceLangError', - 'errorMessage' => 'Source languages are not supported.', - ], - [ - 'errorCode' => 'Parameter.TargetLangError', - 'errorMessage' => 'Target languages are not supported.', - ], - [ - 'errorCode' => 'System.AccountNotActivated', - 'errorMessage' => 'The account has not activated the service.', - ], - [ - 'errorCode' => 'System.AccountNotActivatedOrInArrears', - 'errorMessage' => 'The service is not activated or the account has an outstanding balance.', - ], - [ - 'errorCode' => 'System.LanguageNotSupported', - 'errorMessage' => 'The specified language pair is not supported.', - ], - [ - 'errorCode' => 'System.ParameterError', - 'errorMessage' => 'Some required parameters are missing.', - ], - [ - 'errorCode' => 'System.StringTooLong', - 'errorMessage' => 'The maximum length of the specified string is exceeded.', - ], + [ + ['errorCode' => 'System.Error', 'errorMessage' => 'A system error occurred.', 'description' => ''], ], - 403 => [ - [ - 'errorCode' => 'System.subNotPermission', - 'errorMessage' => 'The sub-account is not authorized to perform the operation.', - ], + [ + ['errorCode' => 'System.UrlDecodingError', 'errorMessage' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.', 'description' => ''], ], - 500 => [ - [ - 'errorCode' => 'System.Error', - 'errorMessage' => 'A system error occurred.', - ], - [ - 'errorCode' => 'System.LanguageDetectError', - 'errorMessage' => 'An error occurred while detecting the language.', - ], - [ - 'errorCode' => 'System.RequestTimeOut', - 'errorMessage' => 'The request has timed out.', - ], - [ - 'errorCode' => 'System.SubServiceFailed', - 'errorMessage' => 'Sub-account service failed.', - ], - [ - 'errorCode' => 'System.TranslateError', - 'errorMessage' => 'An error occurred while translating.', - ], - [ - 'errorCode' => 'System.TranslateServiceCallFailed', - 'errorMessage' => 'Failed to call the translation service.', - ], - [ - 'errorCode' => 'System.unknownError', - 'errorMessage' => 'An unknown error occurred.', - ], - [ - 'errorCode' => 'System.UrlDecodingError', - 'errorMessage' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.', - ], + [ + ['errorCode' => 'System.ParameterError', 'errorMessage' => 'Some required parameters are missing.', 'description' => ''], + ], + [ + ['errorCode' => 'System.LanguageNotSupported', 'errorMessage' => 'The specified language pair is not supported.', 'description' => ''], + ], + [ + ['errorCode' => 'System.LanguageDetectError', 'errorMessage' => 'An error occurred while detecting the language.', 'description' => ''], + ], + [ + ['errorCode' => 'System.TranslateError', 'errorMessage' => 'An error occurred while translating.', 'description' => ''], + ], + [ + ['errorCode' => 'System.StringTooLong', 'errorMessage' => 'The maximum length of the specified string is exceeded.', 'description' => ''], + ], + [ + ['errorCode' => 'System.subNotPermission', 'errorMessage' => 'The sub-account is not authorized to perform the operation.', 'description' => ''], + ], + [ + ['errorCode' => 'System.AccountNotActivated', 'errorMessage' => 'The account has not activated the service.', 'description' => ''], + ], + [ + ['errorCode' => 'System.SubServiceFailed', 'errorMessage' => 'Sub-account service failed.', 'description' => ''], + ], + [ + ['errorCode' => 'System.TranslateServiceCallFailed', 'errorMessage' => 'Failed to call the translation service.', 'description' => ''], + ], + [ + ['errorCode' => 'System.AccountNotActivatedOrInArrears', 'errorMessage' => 'The service is not activated or the account has an outstanding balance.', 'description' => ''], + ], + 199 => [ + ['errorCode' => 'System.unknownError', 'errorMessage' => 'An unknown error occurred.', 'description' => ''], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"ok\\",\\n \\"RequestId\\": \\"DC2DCCC9-C3DF-4F59-8D8E-78185729F16D\\",\\n \\"Data\\": {\\n \\"Language\\": \\"zh\\"\\n }\\n}","type":"json"}]', + 'title' => 'Image Diagnosis', + 'summary' => 'Detects the language of text in an image.', + 'description' => '>This API is scheduled to be unpublished and is not recommended for continued use.>', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'alimt:GetImageDiagnose', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"DC2DCCC9-C3DF-4F59-8D8E-78185729F16D\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"ok\\",\\n \\"Data\\": {\\n \\"Status\\": \\"ready\\",\\n \\"TranslatedText\\": \\"hello\\",\\n \\"WordCount\\": \\"2\\",\\n \\"DetectedLanguage\\": \\"zh\\"\\n }\\n}","type":"json"}]', ], - 'GetDetectLanguage' => [ - 'summary' => '语种识别', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'GetImageTranslate' => [ + 'summary' => 'Includes capabilities such as OCR, text translation, and text backfill. ', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'read', - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - 'tenantRelevance' => 'publicInformation', - ], + 'deprecated' => false, + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ - 'name' => 'SourceText', + 'name' => 'Url', 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '', - ], + 'schema' => ['description' => 'The Image Link that requires translation ', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'http://xxxxxxx.oss-cn-shenzhen.aliyuncs.com/xxxxxx.jpg', 'title' => ''], + ], + [ + 'name' => 'SourceLanguage', + 'in' => 'formData', + 'schema' => ['description' => 'The language of the text in the image. [Supported language pairs and language codes](https://www.alibabacloud.com/help/zh/doc-detail/182310.html) '."\n" + .'[Supported language pairs and language codes](https://help.aliyun.com/document_detail/182310.html?spm=a2c4g.11186623.6.543.106340eblV3QUo) ', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'zh', 'title' => ''], + ], + [ + 'name' => 'TargetLanguage', + 'in' => 'formData', + 'schema' => ['description' => 'The language into which the text in the image is translated. [Supported languages and language codes](https://www.alibabacloud.com/help/zh/doc-detail/182310.html) '."\n" + .'[Supported languages and language codes](https://help.aliyun.com/document_detail/182310.html?spm=a2c4g.11186623.6.543.106340eblV3QUo) ', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'en', 'title' => ''], + ], + [ + 'name' => 'Extra', + 'in' => 'formData', + 'schema' => ['description' => '- The following JSON format is used. You can omit any optional parameters you do not need. '."\n" + ."\n" + .'- JSON format: '."\n" + .'``` '."\n" + .'{ '."\n" + .' "have_ocr": "false", '."\n" + .' "without_text":"true", '."\n" + .' "have_psd": "false", '."\n" + .' "ignore_entity": "false" '."\n" + .'} '."\n" + .'``` '."\n" + .'- have_ocr: Controls whether to return OCR results by using true/false. true means required; false means not required. '."\n" + .'- without_text: Controls whether to erase text from the image. true means required; false means not required. '."\n" + .'- have_psd: Provides PSD data for rendering in the image editor. '."\n" + .'- ignore_entity: Specifies whether to ignore Named Entity Recognition. true means ignore; false means do not ignore. ', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => '{"have_ocr": "false", "without_text":"true", "have_psd": "false", "ignore_entity": "false"}', 'title' => ''], ], ], 'responses' => [ @@ -1453,347 +1174,345 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'DetectedLanguage' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'zh', - ], - 'RequestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '0C5EC1EC-1A06-4D60-97E6-4D41350945E4', - ], - 'LanguageProbabilities' => [ - 'type' => 'string', + 'Code' => ['description' => 'Status code. A value of 200 indicates Normal status. ', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''], + 'Message' => ['description' => 'The error message returned when a fault occurs. ', 'type' => 'string', 'example' => 'ok', 'title' => ''], + 'RequestId' => ['description' => 'The unique identifier of the request. ', 'type' => 'string', 'example' => 'A41F6E25-8520-4AF0-90EF-AF7E32840108', 'title' => ''], + 'Data' => [ + 'description' => 'The returned data content. ', + 'type' => 'object', + 'properties' => [ + 'Url' => ['description' => 'Link to the translated image. ', 'type' => 'string', 'example' => 'https://ae01.alicdn.com/kf/xxxxx.jpeg', 'title' => ''], + 'Orc' => ['description' => 'Content after OCR detection. ', 'type' => 'string', 'example' => '{"text":"P翼-至草款","width":750,"wordNum":10}', 'title' => ''], + 'PictureEditor' => ['description' => 'PSD data used for rendering in the image editor. ', 'type' => 'string', 'example' => '{"text":"P翼-至草款","width":750,"wordNum":10}', 'title' => ''], + ], + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 101 => [ - [ - 'errorCode' => '10001', - 'errorMessage' => 'The request has timed out.', - ], + ['errorCode' => 'System.RequestTimeOut', 'errorMessage' => 'The request has timed out.', 'description' => ''], ], [ - [ - 'errorCode' => '10002', - 'errorMessage' => 'A system error occurred.', - ], + ['errorCode' => 'System.Error', 'errorMessage' => 'A system error occurred.', 'description' => ''], ], [ - [ - 'errorCode' => '10003', - 'errorMessage' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.', - ], + ['errorCode' => 'System.UrlDecodingError', 'errorMessage' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.', 'description' => ''], ], [ - [ - 'errorCode' => '10004', - 'errorMessage' => 'Some required parameters are missing.', - ], + ['errorCode' => 'System.ParameterError', 'errorMessage' => 'Some required parameters are missing.', 'description' => ''], ], [ - [ - 'errorCode' => '10005', - 'errorMessage' => 'The specified language pair is not supported.', - ], + ['errorCode' => 'System.LanguageNotSupported', 'errorMessage' => 'The specified language pair is not supported.', 'description' => ''], ], [ - [ - 'errorCode' => '10006', - 'errorMessage' => 'An error occurred while detecting the language.', - ], + ['errorCode' => 'System.LanguageDetectError', 'errorMessage' => 'An error occurred while detecting the language.', 'description' => ''], ], [ - [ - 'errorCode' => '10007', - 'errorMessage' => 'An error occurred while translating.', - ], + ['errorCode' => 'System.TranslateError', 'errorMessage' => 'An error occurred while translating.', 'description' => ''], ], [ - [ - 'errorCode' => '10008', - 'errorMessage' => 'The specified string is too long.', - ], + ['errorCode' => 'System.StringTooLong', 'errorMessage' => 'The maximum length of the specified string is exceeded.', 'description' => ''], ], [ - [ - 'errorCode' => '10009', - 'errorMessage' => '子账号没有权限', - ], + ['errorCode' => 'System.subNotPermission', 'errorMessage' => 'The sub-account is not authorized to perform the operation.', 'description' => ''], ], [ - [ - 'errorCode' => '10010', - 'errorMessage' => '账号没有开通服务', - ], + ['errorCode' => 'System.AccountNotActivated', 'errorMessage' => 'The account has not activated the service.', 'description' => ''], ], [ - [ - 'errorCode' => '10011', - 'errorMessage' => '子账号服务失败', - ], + ['errorCode' => 'System.SubServiceFailed', 'errorMessage' => 'Sub-account service failed.', 'description' => ''], ], [ - [ - 'errorCode' => '10012', - 'errorMessage' => '翻译服务调用失败', - ], + ['errorCode' => 'System.TranslateServiceCallFailed', 'errorMessage' => 'Failed to call the translation service.', 'description' => ''], ], [ - [ - 'errorCode' => '10013', - 'errorMessage' => '账号服务没有开通或者欠费', - ], + ['errorCode' => 'System.AccountNotActivatedOrInArrears', 'errorMessage' => 'The service is not activated or the account has an outstanding balance.', 'description' => ''], ], 199 => [ - [ - 'errorCode' => '19999', - 'errorMessage' => 'An unknown error occurred.', - ], - ], - 400 => [ - [ - 'errorCode' => 'System.ParameterError', - 'errorMessage' => 'Some required parameters are missing.', - ], - ], - 503 => [ - [ - 'errorCode' => 'System.Error', - 'errorMessage' => 'A system error occurred.', - ], - [ - 'errorCode' => 'Internal.Error', - 'errorMessage' => 'The internal service connection timeout, please try again later.', - ], + ['errorCode' => 'System.unknownError', 'errorMessage' => 'An unknown error occurred.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"DetectedLanguage\\": \\"zh\\",\\n \\"RequestId\\": \\"0C5EC1EC-1A06-4D60-97E6-4D41350945E4\\",\\n \\"LanguageProbabilities\\": \\"\\"\\n}","errorExample":""},{"type":"xml","example":"\\n 0C5EC1EC-1A06-4D60-97E6-4D41350945E4\\n zh\\n","errorExample":""}]', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"ok\\",\\n \\"RequestId\\": \\"A41F6E25-8520-4AF0-90EF-AF7E32840108\\",\\n \\"Data\\": {\\n \\"Url\\": \\"https://ae01.alicdn.com/kf/xxxxx.jpeg\\",\\n \\"Orc\\": \\"{\\\\\\"text\\\\\\":\\\\\\"P翼-至草款\\\\\\",\\\\\\"width\\\\\\":750,\\\\\\"wordNum\\\\\\":10}\\",\\n \\"PictureEditor\\": \\"{\\\\\\"text\\\\\\":\\\\\\"P翼-至草款\\\\\\",\\\\\\"width\\\\\\":750,\\\\\\"wordNum\\\\\\":10}\\"\\n }\\n}","type":"json"}]', + 'title' => 'Intelligent Product Image Translation ', + 'description' => '>This API is scheduled for unpublishing and is not recommended for continued use.> '."\n" + .'The replacement API is [Image Translation](https://help.aliyun.com/zh/machine-translation/developer-reference/api-alimt-2018-10-12-translateimage?spm=a2c4g.11186623.0.0.625a288aSx2On0). ', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'TranslateImage' => [ - 'summary' => '公有云图片翻译产品API', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', + 'changeSet' => [], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'alimt:GetImageTranslate', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + ], + 'GetImageTranslateTask' => [ + 'summary' => 'Obtain the asynchronous image translation result by job ID. ', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], - [ - 'BearerToken' => [], - ], ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'none', - 'riskType' => 'none', - 'chargeType' => 'free', - 'tenantRelevance' => 'publicInformation', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ - 'name' => 'ImageUrl', + 'name' => 'TaskId', 'in' => 'formData', + 'schema' => ['description' => 'Job ID of the asynchronous image translation task ', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'xxxxxx', 'title' => ''], + ], + ], + 'responses' => [ + 200 => [ 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'Code' => ['description' => 'Status code. A value of 200 indicates normal status. '."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''], + 'Message' => ['description' => 'The error message returned when a fault occurs. '."\n", 'type' => 'string', 'example' => 'ok', 'title' => ''], + 'RequestId' => ['description' => 'The unique string of the request. '."\n", 'type' => 'string', 'example' => 'xxxxxxx', 'title' => ''], + 'Data' => [ + 'description' => 'The returned data content. '."\n", + 'type' => 'object', + 'properties' => [ + 'ImageData' => ['description' => '- Structured data of the image translation '."\n" + ."\n" + .'```', 'type' => 'string', 'example' => '[{xxxxxx}]', 'title' => ''], + ], + 'title' => '', + 'example' => '', + ], + ], 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'https://example.com/example.jpg', + 'title' => '', + 'example' => '', ], ], + ], + 'errorCodes' => [ + 101 => [ + ['errorCode' => 'System.RequestTimeOut', 'errorMessage' => 'The request has timed out.', 'description' => ''], + ], [ - 'name' => 'ImageBase64', - 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => '/9j/4...H/9k=', + ['errorCode' => 'System.Error', 'errorMessage' => 'A system error occurred.', 'description' => ''], + ], + [ + ['errorCode' => 'System.UrlDecodingError', 'errorMessage' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.', 'description' => ''], + ], + [ + ['errorCode' => 'System.ParameterError', 'errorMessage' => 'Some required parameters are missing.', 'description' => ''], + ], + [ + ['errorCode' => 'System.LanguageNotSupported', 'errorMessage' => 'The specified language pair is not supported.', 'description' => ''], + ], + [ + ['errorCode' => 'System.LanguageDetectError', 'errorMessage' => 'An error occurred while detecting the language.', 'description' => ''], + ], + [ + ['errorCode' => 'System.TranslateError', 'errorMessage' => 'An error occurred while translating.', 'description' => ''], + ], + [ + ['errorCode' => 'System.StringTooLong', 'errorMessage' => 'The maximum length of the specified string is exceeded.', 'description' => ''], + ], + 110 => [ + ['errorCode' => 'System.AccountNotActivated', 'errorMessage' => 'The account has not activated the service.', 'description' => ''], + ], + [ + ['errorCode' => 'System.SubServiceFailed', 'errorMessage' => 'Sub-account service failed.', 'description' => ''], + ], + [ + ['errorCode' => 'System.TranslateServiceCallFailed', 'errorMessage' => 'Failed to call the translation service.', 'description' => ''], + ], + [ + ['errorCode' => 'System.AccountNotActivatedOrInArrears', 'errorMessage' => 'The service is not activated or the account has an outstanding balance.', 'description' => ''], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"ok\\",\\n \\"RequestId\\": \\"xxxxxxx\\",\\n \\"Data\\": {\\n \\"ImageData\\": \\"[{xxxxxx}]\\"\\n }\\n}","type":"json"}]', + 'title' => 'Obtain asynchronous image translation result ', + 'description' => '>This API is scheduled to be unpublished and is not recommended for continued use.> ', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'alimt:GetImageTranslateTask', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], + ], ], ], + ], + ], + 'GetTitleDiagnose' => [ + 'summary' => 'By using the Product title quality Diagnosis service, a visualized title quality score is generated to help sellers gain an intuitive understanding of the quality of their existing product titles. ', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], + 'security' => [ [ - 'name' => 'SourceLanguage', + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], + 'parameters' => [ + [ + 'name' => 'Title', 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'zh', - ], + 'schema' => ['description' => 'Title content ', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'Amroe Japan Comic Theme Uzumaki Naruto Namikaze Minato 3D Visual Cartoon 7 Color USB Touch', 'title' => ''], ], [ - 'name' => 'TargetLanguage', + 'name' => 'Language', 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'en', - ], + 'schema' => ['description' => 'Language of the title text. [Supported language directions and language codes](https://help.aliyun.com/document_detail/182310.html?spm=a2c4g.11186623.6.543.106340eblV3QUo)[Supported language directions and language codes](https://www.alibabacloud.com/help/zh/doc-detail/182310.html) '."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'zh', 'title' => ''], ], [ - 'name' => 'Field', + 'name' => 'Platform', 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'enumValueTitles' => [], - 'example' => 'general', - ], + 'schema' => ['description' => 'Platform to which the product title belongs. Supported platforms are ae, icbu, and lazada. ', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'ae', 'title' => ''], ], [ - 'name' => 'Ext', + 'name' => 'CategoryId', 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => '{"needEditorData": "false", "ignoreEntityRecognize": "true"}', - ], + 'schema' => ['description' => 'Category ID. Pass 0 if no category data is available. ', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '123', 'title' => ''], + ], + [ + 'name' => 'Extra', + 'in' => 'formData', + 'schema' => ['description' => '- Optional field '."\n" + ."\n" + .'- Format: { '."\n" + .' "product_id": "1", '."\n" + .' "platform": "ae" '."\n" + .'} '."\n" + .'- product_id: Product ID '."\n" + .'- platform: Platform to which the product belongs. Supported platforms are ae, icbu, and lazada. ', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => '{ "product_id": "1", "platform": "ae" }', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'description' => '', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'D774D33D-F1CB-5A2C-A787-E0A2179239CE', - ], - 'Code' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Message' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'Error Message', - ], + 'Code' => ['description' => 'Status code. A normal request returns 200. ', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''], + 'Message' => ['description' => 'Status message ', 'type' => 'string', 'example' => 'ok', 'title' => ''], + 'RequestId' => ['description' => 'Request ID ', 'type' => 'string', 'example' => 'DC2DCCC9-C3DF-4F59-8D8E-78185729F16D', 'title' => ''], 'Data' => [ - 'description' => '', + 'description' => 'Specific returned content ', 'type' => 'object', 'properties' => [ - 'InPaintingUrl' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'https://example.com/example.jpg', - ], - 'TemplateJson' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'Editor Template Json String', - ], - 'FinalImageUrl' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'https://example.com/example.jpg', - ], + 'DuplicateWords' => ['description' => 'Duplicate words (including singular and plural forms) ', 'type' => 'string', 'example' => 'hi', 'title' => ''], + 'ContainCoreClasses' => ['description' => 'Whether it contains category core words ', 'type' => 'string', 'example' => 'true', 'title' => ''], + 'WordCount' => ['description' => 'Total word count ', 'type' => 'string', 'example' => '10', 'title' => ''], + 'LanguageQualityScore' => ['description' => 'Language quality score ', 'type' => 'string', 'example' => '2', 'title' => ''], + 'AllUppercaseWords' => ['description' => 'Words in all uppercase ', 'type' => 'string', 'example' => 'Boy', 'title' => ''], + 'OverLengthLimit' => ['description' => 'Length limit ', 'type' => 'string', 'example' => '100', 'title' => ''], + 'DisableWords' => ['description' => 'Sensitive words ', 'type' => 'string', 'example' => 'baba', 'title' => ''], + 'NoFirstUppercaseList' => ['description' => 'Words with first letter not in uppercase ', 'type' => 'string', 'example' => 'no', 'title' => ''], + 'TotalScore' => ['description' => 'Total score ', 'type' => 'string', 'example' => '3', 'title' => ''], + 'WordSpelledCorrectError' => ['description' => 'Words with spelling errors', 'type' => 'string', 'example' => 'ahk', 'title' => ''], ], + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ - 400 => [ - [ - 'errorCode' => 'Parameter.SourceLangError', - 'errorMessage' => 'Source languages are not supported.', - ], - [ - 'errorCode' => 'Parameter.TargetLangError', - 'errorMessage' => 'Target languages are not supported.', - ], + 101 => [ + ['errorCode' => 'System.RequestTimeOut', 'errorMessage' => 'The request has timed out.', 'description' => ''], ], [ - [ - 'errorCode' => 'System.subNotPermission', - 'errorMessage' => 'The sub-account is not authorized to perform the operation.', - ], - [ - 'errorCode' => 'System.AccountNotActivated', - 'errorMessage' => 'The account has not activated the service.', - ], + ['errorCode' => 'System.Error', 'errorMessage' => 'A system error occurred.', 'description' => ''], ], - 406 => [ - [ - 'errorCode' => 'System.ParameterError', - 'errorMessage' => 'Some required parameters are missing.', - ], - [ - 'errorCode' => 'Parameter.ImageUrlError', - 'errorMessage' => 'Failed to obtain the image from the URL.', - ], - [ - 'errorCode' => 'Parameter.ImageSizeError', - 'errorMessage' => 'Image size should be within 15px to 8192px.', - ], - [ - 'errorCode' => 'Parameter.ImageFormatError', - 'errorMessage' => 'The image format is not supported.', - ], - [ - 'errorCode' => 'Parameter.ImageFileSizeError', - 'errorMessage' => 'The image file size should be within 10 MB.', - ], + [ + ['errorCode' => 'System.UrlDecodingError', 'errorMessage' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.', 'description' => ''], ], - 500 => [ - [ - 'errorCode' => 'System.unknownError', - 'errorMessage' => 'An unknown error occurred.', - ], - [ - 'errorCode' => 'ImageTranslate.TranslationError', - 'errorMessage' => 'Image translation error.', - ], - [ - 'errorCode' => 'ImageTranslate.FusionError', - 'errorMessage' => 'Image fusion error.', - ], - [ - 'errorCode' => 'ImageTranslate.EraseError', - 'errorMessage' => 'Image erasing error.', - ], - [ - 'errorCode' => 'ImageTranslate.TextTranslationError', - 'errorMessage' => 'Text translation error.', - ], - [ - 'errorCode' => 'ImageTranslate.TextToParagraphError', - 'errorMessage' => 'Text to paragraph error.', + [ + ['errorCode' => 'System.ParameterError', 'errorMessage' => 'Some required parameters are missing.', 'description' => ''], + ], + [ + ['errorCode' => 'System.LanguageNotSupported', 'errorMessage' => 'The specified language pair is not supported.', 'description' => ''], + ], + [ + ['errorCode' => 'System.LanguageDetectError', 'errorMessage' => 'An error occurred while detecting the language.', 'description' => ''], + ], + [ + ['errorCode' => 'System.TranslateError', 'errorMessage' => 'An error occurred while translating.', 'description' => ''], + ], + [ + ['errorCode' => 'System.StringTooLong', 'errorMessage' => 'The maximum length of the specified string is exceeded.', 'description' => ''], + ], + [ + ['errorCode' => 'System.subNotPermission', 'errorMessage' => 'The sub-account is not authorized to perform the operation.', 'description' => ''], + ], + [ + ['errorCode' => 'System.AccountNotActivated', 'errorMessage' => 'The account has not activated the service.', 'description' => ''], + ], + [ + ['errorCode' => 'System.SubServiceFailed', 'errorMessage' => 'Sub-account service failed.', 'description' => ''], + ], + [ + ['errorCode' => 'System.TranslateServiceCallFailed', 'errorMessage' => 'Failed to call the translation service.', 'description' => ''], + ], + [ + ['errorCode' => 'System.AccountNotActivatedOrInArrears', 'errorMessage' => 'The service is not activated or the account has an outstanding balance.', 'description' => ''], + ], + 199 => [ + ['errorCode' => 'System.unknownError', 'errorMessage' => 'An unknown error occurred.', 'description' => ''], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"ok\\",\\n \\"RequestId\\": \\"DC2DCCC9-C3DF-4F59-8D8E-78185729F16D\\",\\n \\"Data\\": {\\n \\"DuplicateWords\\": \\"hi\\",\\n \\"ContainCoreClasses\\": \\"true\\",\\n \\"WordCount\\": \\"10\\",\\n \\"LanguageQualityScore\\": \\"2\\",\\n \\"AllUppercaseWords\\": \\"Boy\\",\\n \\"OverLengthLimit\\": \\"100\\",\\n \\"DisableWords\\": \\"baba\\",\\n \\"NoFirstUppercaseList\\": \\"no\\",\\n \\"TotalScore\\": \\"3\\",\\n \\"WordSpelledCorrectError\\": \\"ahk\\"\\n }\\n}","type":"json"}]', + 'title' => 'Title Diagnosis Invocation Guide ', + 'description' => '>This API is scheduled to be unpublished and is not recommended for continued invocation.> ', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'alimt:GetTitleDiagnose', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], + ], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"D774D33D-F1CB-5A2C-A787-E0A2179239CE\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"Error Message\\",\\n \\"Data\\": {\\n \\"InPaintingUrl\\": \\"https://example.com/example.jpg\\",\\n \\"TemplateJson\\": \\"Editor Template Json String\\",\\n \\"FinalImageUrl\\": \\"https://example.com/example.jpg\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n \\n https://example.com/example.jpg\\n \\n D774D33D-F1CB-5A2C-A787-E0A2179239CE\\n","errorExample":""}]', ], - 'TranslateImageBatch' => [ - 'summary' => '批量图片翻译接口', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'GetTitleGenerate' => [ + 'summary' => 'Automatically optimize product titles based on e-commerce big data. ', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -1801,202 +1520,143 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'none', - 'riskType' => 'none', - 'chargeType' => 'free', - 'tenantRelevance' => 'publicInformation', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ - 'name' => 'ImageUrls', + 'name' => 'Title', 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => 'https://example.com/1.jpg,https://example.com/2.jpg,https://example.com/3.jpg', - ], + 'schema' => ['description' => 'Title content ', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '10pcs 80ml Kitchen Disposable', 'title' => ''], ], [ - 'name' => 'SourceLanguage', + 'name' => 'Language', 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => 'zh', - ], + 'schema' => ['description' => 'Title language. [Supported languages and language codes](https://help.aliyun.com/document_detail/182310.html)[Supported languages and language codes](https://www.alibabacloud.com/help/zh/doc-detail/182310.html) ', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'en', 'title' => ''], ], [ - 'name' => 'TargetLanguage', + 'name' => 'Platform', 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => 'en', - ], + 'schema' => ['description' => 'Platform to which the product title belongs; supports ae/icbu ', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'ae', 'title' => ''], ], [ - 'name' => 'Ext', + 'name' => 'CategoryId', 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => '{"needEditorData": "false", "ignoreEntityRecognize": "true"}', - ], + 'schema' => ['description' => 'Category ID; pass 0 if no category data is available ', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '127896018', 'title' => ''], ], [ - 'name' => 'CustomTaskId', + 'name' => 'HotWords', 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'my_awesome_task_1', - ], + 'schema' => ['description' => 'Hot words ', 'type' => 'string', 'required' => false, 'example' => 'None,Plastic', 'title' => ''], ], [ - 'name' => 'Field', + 'name' => 'Attributes', 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'general', - ], + 'schema' => ['description' => 'Product properties; pass JSON data as shown in the Sample ', 'type' => 'string', 'required' => false, 'example' => '{2:"None",10:"Plastic"}', 'title' => ''], + ], + [ + 'name' => 'Extra', + 'in' => 'formData', + 'schema' => ['description' => '- Format: '."\n" + .'{ '."\n" + .' "product_id": "1", '."\n" + .' "platform": "ae" '."\n" + .'} '."\n" + .'- product_id: Product ID '."\n" + .'- platform: Platform to which the product belongs ', 'type' => 'string', 'required' => false, 'example' => '{ "product_id": "1", "platform": "ae" }', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => '', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => '', - 'type' => 'string', - 'example' => 'D774D33D-F1CB-5A2C-A787-E0A2179239CE', - ], - 'Message' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'OK', - ], - 'Code' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], + 'Code' => ['description' => 'Status code; returns 200 for Normal status ', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''], + 'Message' => ['description' => 'Returns an error message when a fault occurs. ', 'type' => 'string', 'example' => 'ok', 'title' => ''], + 'RequestId' => ['description' => 'Unique request ID ', 'type' => 'string', 'example' => 'DC2DCCC9-C3DF-4F59-8D8E-78185729F16D', 'title' => ''], 'Data' => [ - 'description' => '', + 'description' => 'Returned content ', 'type' => 'object', 'properties' => [ - 'TaskId' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'EEA28E6D-4828-5031-BD8C-8FF1B3216842', - ], + 'Titles' => ['description' => 'Optimized title content ', 'type' => 'string', 'example' => '10pcs 80ml Kitchen Disposable Plastic Sauce Cup Pot Chutney Container', 'title' => ''], ], + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 101 => [ - [ - 'errorCode' => 'System.RequestTimeOut', - 'errorMessage' => 'The request has timed out.', - ], + ['errorCode' => 'System.RequestTimeOut', 'errorMessage' => 'The request has timed out.', 'description' => ''], ], [ - [ - 'errorCode' => 'System.Error', - 'errorMessage' => 'A system error occurred.', - ], + ['errorCode' => 'System.Error', 'errorMessage' => 'A system error occurred.', 'description' => ''], ], [ - [ - 'errorCode' => 'System.UrlDecodingError', - 'errorMessage' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.', - ], + ['errorCode' => 'System.UrlDecodingError', 'errorMessage' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.', 'description' => ''], ], [ - [ - 'errorCode' => 'System.ParameterError', - 'errorMessage' => 'Some required parameters are missing.', - ], + ['errorCode' => 'System.ParameterError', 'errorMessage' => 'Some required parameters are missing.', 'description' => ''], ], [ - [ - 'errorCode' => 'System.LanguageNotSupported', - 'errorMessage' => 'The specified language pair is not supported.', - ], + ['errorCode' => 'System.LanguageNotSupported', 'errorMessage' => 'The specified language pair is not supported.', 'description' => ''], ], [ - [ - 'errorCode' => 'System.LanguageDetectError', - 'errorMessage' => 'An error occurred while detecting the language.', - ], + ['errorCode' => 'System.LanguageDetectError', 'errorMessage' => 'An error occurred while detecting the language.', 'description' => ''], ], [ - [ - 'errorCode' => 'System.TranslateError', - 'errorMessage' => 'An error occurred while translating.', - ], + ['errorCode' => 'System.TranslateError', 'errorMessage' => 'An error occurred while translating.', 'description' => ''], ], [ - [ - 'errorCode' => 'System.StringTooLong', - 'errorMessage' => 'The maximum length of the specified string is exceeded.', - ], + ['errorCode' => 'System.StringTooLong', 'errorMessage' => 'The maximum length of the specified string is exceeded.', 'description' => ''], ], - 110 => [ - [ - 'errorCode' => 'System.AccountNotActivated', - 'errorMessage' => 'The account has not activated the service.', - ], + [ + ['errorCode' => 'System.subNotPermission', 'errorMessage' => 'The sub-account is not authorized to perform the operation.', 'description' => ''], ], [ - [ - 'errorCode' => 'System.SubServiceFailed', - 'errorMessage' => 'Sub-account service failed.', - ], + ['errorCode' => 'System.AccountNotActivated', 'errorMessage' => 'The account has not activated the service.', 'description' => ''], ], [ - [ - 'errorCode' => 'System.TranslateServiceCallFailed', - 'errorMessage' => 'Failed to call the translation service.', - ], + ['errorCode' => 'System.SubServiceFailed', 'errorMessage' => 'Sub-account service failed.', 'description' => ''], ], [ - [ - 'errorCode' => 'System.AccountNotActivatedOrInArrears', - 'errorMessage' => 'The service is not activated or the account has an outstanding balance.', - ], + ['errorCode' => 'System.TranslateServiceCallFailed', 'errorMessage' => 'Failed to call the translation service.', 'description' => ''], + ], + [ + ['errorCode' => 'System.AccountNotActivatedOrInArrears', 'errorMessage' => 'The service is not activated or the account has an outstanding balance.', 'description' => ''], + ], + 199 => [ + ['errorCode' => 'System.unknownError', 'errorMessage' => 'An unknown error occurred.', 'description' => ''], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"ok\\",\\n \\"RequestId\\": \\"DC2DCCC9-C3DF-4F59-8D8E-78185729F16D\\",\\n \\"Data\\": {\\n \\"Titles\\": \\"10pcs 80ml Kitchen Disposable Plastic Sauce Cup Pot Chutney Container\\"\\n }\\n}","type":"json"}]', + 'title' => 'Title Optimization Invocation Guide ', + 'description' => '>This API is scheduled to be unpublished and is not recommended for continued invocation.> ', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'alimt:GetTitleGenerate', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"D774D33D-F1CB-5A2C-A787-E0A2179239CE\\",\\n \\"Message\\": \\"OK\\",\\n \\"Code\\": 200,\\n \\"Data\\": {\\n \\"TaskId\\": \\"EEA28E6D-4828-5031-BD8C-8FF1B3216842\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n D774D33D-F1CB-5A2C-A787-E0A2179239CE\\n OK\\n 200\\n \\n EEA28E6D-4828-5031-BD8C-8FF1B3216842\\n \\n","errorExample":""}]', ], - 'GetTranslateImageBatchResult' => [ - 'summary' => '获取图片批量翻译结果', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'GetTitleIntelligence' => [ + 'summary' => 'Automatically generate Product titles based on category, platform, and keywords. ', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -2004,416 +1664,294 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'none', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'], 'parameters' => [ [ - 'name' => 'TaskId', + 'name' => 'Platform', 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => 'EEA28E6D-4828-5031-BD8C-8FF1B3216842', - ], + 'schema' => ['description' => 'Platform where the Product is listed: ae, icbu, or lazada ', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'ae', 'title' => ''], + ], + [ + 'name' => 'Extra', + 'in' => 'formData', + 'schema' => ['description' => 'Extension information in JSON data format; optional field ', 'type' => 'string', 'required' => false, 'example' => '{"product_id":"1212"}', 'title' => ''], + ], + [ + 'name' => 'CatLevelThreeId', + 'in' => 'formData', + 'schema' => ['description' => 'Third-level category ID; pass 0 if no category data is available. ', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'maximum' => '99999999999', 'minimum' => '0', 'example' => '111', 'title' => ''], + ], + [ + 'name' => 'CatLevelTwoId', + 'in' => 'formData', + 'schema' => ['description' => 'Second-level category ID; pass 0 if no category data is available. ', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'maximum' => '99999999999', 'minimum' => '0', 'example' => '222', 'title' => ''], + ], + [ + 'name' => 'Keywords', + 'in' => 'formData', + 'schema' => ['description' => 'Keywords, separated by English commas, such as: hello,apple ', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => 'hello,apple', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => '', 'type' => 'object', 'properties' => [ - 'Code' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Message' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'OK', - ], - 'RequestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'DACD263C-C068-5116-83EC-117245AA35CF', - ], + 'Code' => ['description' => 'Status code; 200 indicates Normal status. ', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''], + 'Message' => ['description' => 'If a fault occurs, an error message will be output. ', 'type' => 'string', 'example' => 'success', 'title' => ''], + 'RequestId' => ['description' => 'A Unique request ID to facilitate troubleshooting and issue tracking. ', 'type' => 'string', 'example' => 'D70487B4-8891-4D24-BB64-8788E53671FB', 'title' => ''], 'Data' => [ - 'description' => '', + 'description' => 'Returned Data ', 'type' => 'object', 'properties' => [ - 'Result' => [ - 'description' => '', - 'type' => 'array', - 'items' => [ - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'InPaintingUrl' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'https://example.com/example.jpg', - ], - 'FinalImageUrl' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'https://example.com/example.jpg', - ], - 'TemplateJson' => [ - 'description' => '', - 'type' => 'string', - 'example' => '{"TemplateJson": "Editor Template Json String "}', - ], - 'SourceImageUrl' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'https://example.com/example.jpg', - ], - 'Code' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Message' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'OK', - ], - 'Success' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'true', - ], - ], - ], - ], - 'Status' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'finished', - ], + 'Titles' => ['description' => 'Automatically generated title information ', 'type' => 'string', 'example' => 'Custom Hello Kitty PVC Cartoon Apple for Home Garden Complete Apple Bath Shower', 'title' => ''], ], + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 101 => [ - [ - 'errorCode' => 'System.RequestTimeOut', - 'errorMessage' => 'The request has timed out.', - ], + ['errorCode' => 'System.RequestTimeOut', 'errorMessage' => 'The request has timed out.', 'description' => ''], ], [ - [ - 'errorCode' => 'System.Error', - 'errorMessage' => 'A system error occurred.', - ], + ['errorCode' => 'System.Error', 'errorMessage' => 'A system error occurred.', 'description' => ''], ], [ - [ - 'errorCode' => 'System.UrlDecodingError', - 'errorMessage' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.', - ], + ['errorCode' => 'System.UrlDecodingError', 'errorMessage' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.', 'description' => ''], ], [ - [ - 'errorCode' => 'System.ParameterError', - 'errorMessage' => 'Some required parameters are missing.', - ], + ['errorCode' => 'System.ParameterError', 'errorMessage' => 'Some required parameters are missing.', 'description' => ''], ], [ - [ - 'errorCode' => 'System.LanguageNotSupported', - 'errorMessage' => 'The specified language pair is not supported.', - ], + ['errorCode' => 'System.LanguageNotSupported', 'errorMessage' => 'The specified language pair is not supported.', 'description' => ''], ], [ - [ - 'errorCode' => 'System.LanguageDetectError', - 'errorMessage' => 'An error occurred while detecting the language.', - ], + ['errorCode' => 'System.LanguageDetectError', 'errorMessage' => 'An error occurred while detecting the language.', 'description' => ''], ], [ - [ - 'errorCode' => 'System.TranslateError', - 'errorMessage' => 'An error occurred while translating.', - ], + ['errorCode' => 'System.TranslateError', 'errorMessage' => 'An error occurred while translating.', 'description' => ''], ], [ - [ - 'errorCode' => 'System.StringTooLong', - 'errorMessage' => 'The maximum length of the specified string is exceeded.', - ], + ['errorCode' => 'System.StringTooLong', 'errorMessage' => 'The maximum length of the specified string is exceeded.', 'description' => ''], ], - 110 => [ - [ - 'errorCode' => 'System.AccountNotActivated', - 'errorMessage' => 'The account has not activated the service.', - ], + [ + ['errorCode' => 'System.subNotPermission', 'errorMessage' => 'The sub-account is not authorized to perform the operation.', 'description' => ''], ], [ - [ - 'errorCode' => 'System.SubServiceFailed', - 'errorMessage' => 'Sub-account service failed.', - ], + ['errorCode' => 'System.AccountNotActivated', 'errorMessage' => 'The account has not activated the service.', 'description' => ''], ], [ - [ - 'errorCode' => 'System.TranslateServiceCallFailed', - 'errorMessage' => 'Failed to call the translation service.', - ], + ['errorCode' => 'System.SubServiceFailed', 'errorMessage' => 'Sub-account service failed.', 'description' => ''], ], [ - [ - 'errorCode' => 'System.AccountNotActivatedOrInArrears', - 'errorMessage' => 'The service is not activated or the account has an outstanding balance.', - ], + ['errorCode' => 'System.TranslateServiceCallFailed', 'errorMessage' => 'Failed to call the translation service.', 'description' => ''], + ], + [ + ['errorCode' => 'System.AccountNotActivatedOrInArrears', 'errorMessage' => 'The service is not activated or the account has an outstanding balance.', 'description' => ''], + ], + 199 => [ + ['errorCode' => 'System.unknownError', 'errorMessage' => 'An unknown error occurred.', 'description' => ''], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"D70487B4-8891-4D24-BB64-8788E53671FB\\",\\n \\"Data\\": {\\n \\"Titles\\": \\"Custom Hello Kitty PVC Cartoon Apple for Home Garden Complete Apple Bath Shower\\"\\n }\\n}","type":"json"}]', + 'title' => 'Intelligent Title Generation API Usage Guide ', + 'description' => '>This API is scheduled to be unpublished and is not recommended for continued use.> ', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'alimt:GetTitleIntelligence', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"OK\\",\\n \\"RequestId\\": \\"DACD263C-C068-5116-83EC-117245AA35CF\\",\\n \\"Data\\": {\\n \\"Result\\": [\\n {\\n \\"InPaintingUrl\\": \\"https://example.com/example.jpg\\",\\n \\"FinalImageUrl\\": \\"https://example.com/example.jpg\\",\\n \\"TemplateJson\\": \\"{\\\\\\"TemplateJson\\\\\\": \\\\\\"Editor Template Json String\\\\t\\\\\\"}\\",\\n \\"SourceImageUrl\\": \\"https://example.com/example.jpg\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"OK\\",\\n \\"Success\\": true\\n }\\n ],\\n \\"Status\\": \\"finished\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n OK\\n DACD263C-C068-5116-83EC-117245AA35CF\\n \\n \\n https://example.com/example.jpg\\n https://example.com/example.jpg\\n {\\"TemplateJson\\": \\"Editor Template Json String\\t\\"}\\n https://example.com/example.jpg\\n 200\\n OK\\n true\\n \\n finished\\n \\n","errorExample":""}]', ], - 'CreateDocTranslateTask' => [ - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'GetTranslateImageBatchResult' => [ + 'summary' => 'Retrieve the results of asynchronous batch image translation.', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'create', - ], + 'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ - 'name' => 'SourceLanguage', - 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'en', - ], - ], - [ - 'name' => 'TargetLanguage', - 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'zh', - ], - ], - [ - 'name' => 'FileUrl', - 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'http://fileUrl', - 'isFileTransferUrl' => true, - ], - ], - [ - 'name' => 'Scene', - 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'docRequired' => false, - 'example' => 'general', - 'default' => 'general', - ], - ], - [ - 'name' => 'CallbackUrl', - 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'docRequired' => false, - 'example' => 'http://callbackUrl', - ], - ], - [ - 'name' => 'ClientToken', + 'name' => 'TaskId', 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'docRequired' => false, - 'example' => 'token', - ], + 'schema' => ['description' => 'The task ID obtained by calling the asynchronous batch image translation API.', 'type' => 'string', 'required' => true, 'example' => 'EEA28E6D-4828-5031-BD8C-8FF1B3216842', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'The structure of the request result.', 'type' => 'object', 'properties' => [ - 'Status' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'ready', - ], - 'RequestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'D3920BC3-A395-4CAD-9E84-7C39EB07507B', - ], - 'TaskId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '0586df512c8b4bb382d7d9a6a01b5854', + 'Code' => ['description' => 'The status code of the request result.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''], + 'Message' => ['description' => 'The request message.', 'type' => 'string', 'example' => 'OK', 'title' => ''], + 'RequestId' => ['description' => 'The request identity.', 'type' => 'string', 'example' => 'DACD263C-C068-5116-83EC-117245AA35CF', 'title' => ''], + 'Data' => [ + 'description' => 'The data content.', + 'type' => 'object', + 'properties' => [ + 'Result' => [ + 'description' => 'Translation results. If the batch translation task is not complete, this field is an empty array.', + 'type' => 'array', + 'items' => [ + 'description' => 'The translation result for a single image.', + 'type' => 'object', + 'properties' => [ + 'InPaintingUrl' => ['description' => 'The post-translation Editor background image for a single image.', 'type' => 'string', 'example' => 'https://example.com/example.jpg', 'title' => ''], + 'FinalImageUrl' => ['description' => 'The URL of the translated image for a single image.', 'type' => 'string', 'example' => 'https://example.com/example.jpg', 'title' => ''], + 'TemplateJson' => ['description' => 'The post-translation Editor template data for a single image.', 'type' => 'string', 'example' => '{"TemplateJson": "Editor Template Json String "}', 'title' => ''], + 'SourceImageUrl' => ['description' => 'The URL of the source image for a single image.', 'type' => 'string', 'example' => 'https://example.com/example.jpg', 'title' => ''], + 'Code' => ['description' => 'The translation status code for a single image.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''], + 'Message' => ['description' => 'The translation message for a single image.', 'type' => 'string', 'example' => 'OK', 'title' => ''], + 'Success' => ['description' => 'Indicates whether a single image was translated successfully.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + ], + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', + ], + 'Status' => ['description' => 'Indicates the running status of the current task. Possible values and their meanings are as follows:'."\n" + ."\n" + .'- `created`: The batch translation task was created successfully and is awaiting execution.'."\n" + ."\n" + .'- `running`: The batch translation task is running.'."\n" + ."\n" + .'- `finished`: The batch translation task has finished. All images are translated. The `Result` field contains the translation results for each image.'."\n" + ."\n" + .'- `invalid`: The provided task ID is invalid, or the task\'s translation results have expired and been cleared.', 'type' => 'string', 'example' => 'finished', 'title' => ''], + ], + 'title' => '', + 'example' => '', ], ], + 'example' => '', ], ], ], 'errorCodes' => [ - 109 => [ - [ - 'errorCode' => '10009', - 'errorMessage' => '子账号没有权限', - ], + 101 => [ + ['errorCode' => 'System.RequestTimeOut', 'errorMessage' => 'The request has timed out.', 'description' => ''], ], [ - [ - 'errorCode' => '10010', - 'errorMessage' => '账号没有开通服务', - ], + ['errorCode' => 'System.Error', 'errorMessage' => 'A system error occurred.', 'description' => ''], ], [ - [ - 'errorCode' => '10011', - 'errorMessage' => '子账号服务失败', - ], + ['errorCode' => 'System.UrlDecodingError', 'errorMessage' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.', 'description' => ''], ], [ - [ - 'errorCode' => '10012', - 'errorMessage' => '翻译服务调用失败', - ], + ['errorCode' => 'System.ParameterError', 'errorMessage' => 'Some required parameters are missing.', 'description' => ''], ], [ - [ - 'errorCode' => '10013', - 'errorMessage' => '账号服务没有开通或者欠费', - ], + ['errorCode' => 'System.LanguageNotSupported', 'errorMessage' => 'The specified language pair is not supported.', 'description' => ''], ], - 199 => [ - [ - 'errorCode' => '19999', - 'errorMessage' => 'An unknown error occurred.', - ], + [ + ['errorCode' => 'System.LanguageDetectError', 'errorMessage' => 'An error occurred while detecting the language.', 'description' => ''], ], - 400 => [ - [ - 'errorCode' => '10021', - 'errorMessage' => 'The parameter is invalid.', - ], - [ - 'errorCode' => '10022', - 'errorMessage' => 'The parameter fileUrl is invalid.', - ], - [ - 'errorCode' => '10023', - 'errorMessage' => 'The parameter fileUrl is not accessible.', - ], - [ - 'errorCode' => '10024', - 'errorMessage' => 'The parameter callbackUrl is invalid.', - ], - [ - 'errorCode' => '10031', - 'errorMessage' => 'The specified file type is invalid.', - ], - [ - 'errorCode' => 'InvalidAccountStatus', - 'errorMessage' => 'The Machine Translation service has not been activated.', - ], - [ - 'errorCode' => 'RepeatInvoke', - 'errorMessage' => 'Repeated calls.', - ], + [ + ['errorCode' => 'System.TranslateError', 'errorMessage' => 'An error occurred while translating.', 'description' => ''], ], - 403 => [ - [ - 'errorCode' => '10029', - 'errorMessage' => 'The number of calls per day exceeds the limit.', - ], + [ + ['errorCode' => 'System.StringTooLong', 'errorMessage' => 'The maximum length of the specified string is exceeded.', 'description' => ''], ], - 429 => [ - [ - 'errorCode' => 'REQUESTS.OVER.LIMIT', - 'errorMessage' => 'The request is too frequent, please try again later.', + 110 => [ + ['errorCode' => 'System.AccountNotActivated', 'errorMessage' => 'The account has not activated the service.', 'description' => ''], + ], + [ + ['errorCode' => 'System.SubServiceFailed', 'errorMessage' => 'Sub-account service failed.', 'description' => ''], + ], + [ + ['errorCode' => 'System.TranslateServiceCallFailed', 'errorMessage' => 'Failed to call the translation service.', 'description' => ''], + ], + [ + ['errorCode' => 'System.AccountNotActivatedOrInArrears', 'errorMessage' => 'The service is not activated or the account has an outstanding balance.', 'description' => ''], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"OK\\",\\n \\"RequestId\\": \\"DACD263C-C068-5116-83EC-117245AA35CF\\",\\n \\"Data\\": {\\n \\"Result\\": [\\n {\\n \\"InPaintingUrl\\": \\"https://example.com/example.jpg\\",\\n \\"FinalImageUrl\\": \\"https://example.com/example.jpg\\",\\n \\"TemplateJson\\": \\"{\\\\\\"TemplateJson\\\\\\": \\\\\\"Editor Template Json String\\\\t\\\\\\"}\\",\\n \\"SourceImageUrl\\": \\"https://example.com/example.jpg\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"OK\\",\\n \\"Success\\": true\\n }\\n ],\\n \\"Status\\": \\"finished\\"\\n }\\n}","type":"json"}]', + 'title' => 'Retrieve asynchronous batch image translation results', + 'description' => 'Before using this API, review the image translation product\'s [billing methods and pricing](https://help.aliyun.com/document_detail/163332.html).'."\n" + ."\n" + .'Results of asynchronous batch image translation are saved for 1 hour after translation completes. They are cleared after expiration. Retrieve the results promptly.', + 'changeSet' => [], + 'ramActions' => [ + [ + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'alimt:GetTranslateImageBatchResult', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], + ], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Status\\": \\"ready\\",\\n \\"RequestId\\": \\"D3920BC3-A395-4CAD-9E84-7C39EB07507B\\",\\n \\"TaskId\\": \\"0586df512c8b4bb382d7d9a6a01b5854\\"\\n}","errorExample":""},{"type":"xml","example":"\\n D3920BC3-A395-4CAD-9E84-7C39EB07507B\\n 0586df512c8b4bb382d7d9a6a01b5854\\n ready\\n","errorExample":""}]', - 'title' => 'CreateDocTranslateTask', - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', ], - 'GetDocTranslateTask' => [ - 'summary' => '获取文档翻译任务', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'GetTranslateReport' => [ + 'summary' => 'Obtain the API call report based on the API name and the start and end times, and return the results aggregated by day or hour according to the specified group parameter.', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'read', - 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'], 'parameters' => [ [ - 'name' => 'TaskId', + 'name' => 'BeginTime', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '0586df512c8b4bb382d7d9a6a01b5854', - ], + 'schema' => ['description' => 'Start time.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '2021-03-01 00:00:00', 'title' => ''], + ], + [ + 'name' => 'EndTime', + 'in' => 'query', + 'schema' => ['description' => 'End time', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '2021-03-01 23:59:59', 'title' => ''], + ], + [ + 'name' => 'ApiName', + 'in' => 'query', + 'schema' => ['description' => 'API name'."\n" + ."\n" + .'- Machine Translation General-purpose Edition: translate_standard'."\n" + .'- Machine Translation Professional Edition: translate_ecommerce'."\n" + .'- Language Detection: predict_detect'."\n" + .'- General Image Translation: it_general'."\n" + .'- E-commerce Image Translation: it_ecommerce'."\n" + .'- Document Translation: dt_page'."\n" + .'- ID Card Translation: ct_idcard'."\n" + .'- Driver\'s License Translation: ct_driving', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'translate_standard', 'title' => ''], + ], + [ + 'name' => 'Group', + 'in' => 'query', + 'schema' => ['description' => 'Group.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'hour或者day', 'title' => ''], ], ], 'responses' => [ @@ -2421,115 +1959,135 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Status' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'translated', - ], - 'RequestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '12952E92-FDF3-4D3C-88E3-242D72BA7150', - ], - 'TranslateFileUrl' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'http://translateFileUrl', - ], - 'TranslateErrorCode' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'Error', - ], - 'PageCount' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '20', - ], - 'TaskId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '0586df512c8b4bb382d7d9a6a01b5854', - ], - 'TranslateErrorMessage' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'Fail to get the page number of document.', - ], + 'Code' => ['description' => 'Error code', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''], + 'Message' => ['description' => 'Return message', 'type' => 'string', 'example' => 'success', 'title' => ''], + 'Data' => ['description' => 'Return content', 'type' => 'string', 'example' => '{"result":[{"time":"2021-10-21 00:00:00","total":100}]}', 'title' => ''], + 'RequestId' => ['description' => 'Request ID', 'type' => 'string', 'example' => '86D18195-D89C-4C8C-9DC4-5FCE789CE6D5', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 109 => [ - [ - 'errorCode' => '10009', - 'errorMessage' => '子账号没有权限', - ], + ['errorCode' => '10009', 'errorMessage' => '子账号没有权限', 'description' => ''], ], [ - [ - 'errorCode' => '10010', - 'errorMessage' => '账号没有开通服务', - ], + ['errorCode' => '10010', 'errorMessage' => '账号没有开通服务', 'description' => ''], ], [ - [ - 'errorCode' => '10011', - 'errorMessage' => '子账号服务失败', - ], + ['errorCode' => '10011', 'errorMessage' => '子账号服务失败', 'description' => ''], ], [ - [ - 'errorCode' => '10012', - 'errorMessage' => '翻译服务调用失败', - ], + ['errorCode' => '10012', 'errorMessage' => '翻译服务调用失败', 'description' => ''], ], [ - [ - 'errorCode' => '10013', - 'errorMessage' => '账号服务没有开通或者欠费', - ], + ['errorCode' => '10013', 'errorMessage' => '账号服务没有开通或者欠费', 'description' => ''], ], 199 => [ - [ - 'errorCode' => '19999', - 'errorMessage' => 'An unknown error occurred.', + ['errorCode' => '19999', 'errorMessage' => 'An unknown error occurred.', 'description' => ''], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"Data\\": \\"{\\\\\\"result\\\\\\":[{\\\\\\"time\\\\\\":\\\\\\"2021-10-21 00:00:00\\\\\\",\\\\\\"total\\\\\\":100}]}\\",\\n \\"RequestId\\": \\"86D18195-D89C-4C8C-9DC4-5FCE789CE6D5\\"\\n}","type":"json"}]', + 'title' => 'Obtain API Call Report', + 'description' => 'Before using this API, ensure that you fully understand the billing method of the Machine Translation product and its [pricing](https://help.aliyun.com/document_detail/457279.html).', + 'changeSet' => [], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'alimt:GetTranslateReport', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], + ], ], ], - 400 => [ - [ - 'errorCode' => '10021', - 'errorMessage' => 'The parameter is invalid.', - ], - [ - 'errorCode' => 'InvalidAccountStatus', - 'errorMessage' => 'The Machine Translation service has not been activated.', - ], + ], + ], + 'OpenAlimtService' => [ + 'summary' => 'Activate the Product service.', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'AK' => [], ], - 404 => [ - [ - 'errorCode' => '10025', - 'errorMessage' => 'The specified task does not exist.', + [ + 'APP' => [], + ], + [ + 'PrivateKey' => [], + ], + [ + 'BearerToken' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'], + 'parameters' => [ + [ + 'name' => 'Type', + 'in' => 'query', + 'schema' => ['description' => '- Machine translation: alimt'."\n" + ."\n" + .'- Customized translation service: type = automl'."\n" + ."\n" + .'- Certificate translation: type = ct'."\n" + ."\n" + .'- Document translation: type = dt'."\n" + ."\n" + .'- Language detection: type = id'."\n", 'type' => 'string', 'required' => false, 'example' => 'id', 'title' => ''], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'OrderId' => ['description' => 'Order ID.', 'type' => 'string', 'example' => '123456', 'title' => ''], + 'RequestId' => ['description' => 'Request ID.', 'type' => 'string', 'example' => 'xxxx-xxxxx', 'title' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Status\\": \\"translated\\",\\n \\"RequestId\\": \\"12952E92-FDF3-4D3C-88E3-242D72BA7150\\",\\n \\"TranslateFileUrl\\": \\"http://translateFileUrl\\",\\n \\"TranslateErrorCode\\": \\"Error\\",\\n \\"PageCount\\": 20,\\n \\"TaskId\\": \\"0586df512c8b4bb382d7d9a6a01b5854\\",\\n \\"TranslateErrorMessage\\": \\"Fail to get the page number of document.\\"\\n}","errorExample":""},{"type":"xml","example":"\\n translated\\n Fail to get the page number of document.\\n 0586df512c8b4bb382d7d9a6a01b5854\\n 12952E92-FDF3-4D3C-88E3-242D72BA7150\\n 20\\n http://translateFileUrl\\n Error\\n","errorExample":""}]', - 'title' => 'GetDocTranslateTask', + 'errorCodes' => [ + 400 => [ + ['errorCode' => 'ORDER.OPEND', 'errorMessage' => 'You have already open the service. Go to the console to start using it', 'description' => ''], + ['errorCode' => 'PRICEING.PLAN.RESULT.NOT.FOUND', 'errorMessage' => 'The order is not found', 'description' => ''], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"OrderId\\": \\"123456\\",\\n \\"RequestId\\": \\"xxxx-xxxxx\\"\\n}","type":"json"}]', + 'title' => 'Activate the Product service', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'TranslateCertificate' => [ - 'summary' => 'TranslateCertificate', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', + 'changeSet' => [], + 'ramActions' => [ + [ + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'alimt:OpenAlimtService', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + ], + 'Translate' => [ + 'summary' => 'Invoke Machine Translation Professional Edition to obtain translation results. ', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -2540,67 +2098,189 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'none', - 'riskType' => 'none', - 'chargeType' => 'free', - 'tenantRelevance' => 'publicInformation', - ], + 'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'], 'parameters' => [ + [ + 'name' => 'FormatType', + 'in' => 'formData', + 'schema' => ['description' => 'Format of the text to be translated: **html** (web page format; setting this parameter processes both the source and translated text as HTML) or **text** (plain text format; setting this parameter treats both the input source text and the translation result as plain text without any formatting)', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'text', 'title' => ''], + ], + [ + 'name' => 'TargetLanguage', + 'in' => 'formData', + 'schema' => ['description' => 'Target language. [Refer to language codes](https://help.aliyun.com/document_detail/215387.html)[Refer to language codes](https://www.alibabacloud.com/help/zh/machine-translation/latest/machine-translation-language-code-list)', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'en', 'title' => ''], + ], [ 'name' => 'SourceLanguage', 'in' => 'formData', + 'schema' => ['description' => 'Source language. [Refer to language codes](https://help.aliyun.com/document_detail/215387.html)[Refer to language codes](https://www.alibabacloud.com/help/zh/machine-translation/latest/machine-translation-language-code-list)', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'zh', 'title' => ''], + ], + [ + 'name' => 'SourceText', + 'in' => 'formData', + 'schema' => ['description' => 'Content to be translated', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '你好', 'maxLength' => 256000, 'title' => ''], + ], + [ + 'name' => 'Scene', + 'in' => 'formData', + 'schema' => ['description' => 'Available values for the scenario parameter: Product title (title), Product description (description), Product communication (communication), Medical (medical), Social (social), Finance (finance)', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'title', 'title' => ''], + ], + [ + 'name' => 'Context', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'Context information (optional)', 'type' => 'string', 'required' => false, 'example' => '早上我在家里吃了面包'], + ], + ], + 'responses' => [ + 200 => [ 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'Code' => ['description' => 'Error code ', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''], + 'Message' => ['description' => 'Error message ', 'type' => 'string', 'example' => 'success', 'title' => ''], + 'RequestId' => ['description' => 'Request ID ', 'type' => 'string', 'example' => '86D18195-D89C-4C8C-9DC4-5FCE789CE6D5', 'title' => ''], + 'Data' => [ + 'description' => 'Returned data ', + 'type' => 'object', + 'properties' => [ + 'Translated' => ['description' => 'Translation result ', 'type' => 'string', 'example' => 'Hello', 'title' => ''], + 'WordCount' => ['description' => 'Total word count ', 'type' => 'string', 'example' => '10', 'title' => ''], + 'DetectedLanguage' => ['description' => 'Source language code after language detection when the source language is set to auto ', 'type' => 'string', 'example' => 'zh', 'title' => ''], + ], + 'title' => '', + 'example' => '', + ], + ], 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'zh', + 'title' => '', + 'example' => '', + ], + ], + ], + 'errorCodes' => [ + 101 => [ + ['errorCode' => '10001', 'errorMessage' => 'The request has timed out.', 'description' => ''], + ], + [ + ['errorCode' => '10002', 'errorMessage' => 'A system error occurred.', 'description' => ''], + ], + [ + ['errorCode' => '10003', 'errorMessage' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.', 'description' => ''], + ], + [ + ['errorCode' => '10004', 'errorMessage' => 'Some required parameters are missing.', 'description' => ''], + ], + [ + ['errorCode' => '10005', 'errorMessage' => 'The specified language pair is not supported.', 'description' => ''], + ], + [ + ['errorCode' => '10006', 'errorMessage' => 'An error occurred while detecting the language.', 'description' => ''], + ], + [ + ['errorCode' => '10007', 'errorMessage' => 'An error occurred while translating.', 'description' => ''], + ], + [ + ['errorCode' => '10008', 'errorMessage' => 'The specified string is too long.', 'description' => ''], + ], + [ + ['errorCode' => '10009', 'errorMessage' => '子账号没有权限', 'description' => ''], + ], + [ + ['errorCode' => '10010', 'errorMessage' => '账号没有开通服务', 'description' => ''], + ], + [ + ['errorCode' => '10011', 'errorMessage' => '子账号服务失败', 'description' => ''], + ], + [ + ['errorCode' => '10012', 'errorMessage' => '翻译服务调用失败', 'description' => ''], + ], + [ + ['errorCode' => '10013', 'errorMessage' => '账号服务没有开通或者欠费', 'description' => ''], + ], + 199 => [ + ['errorCode' => '19999', 'errorMessage' => 'An unknown error occurred.', 'description' => ''], + ], + ], + 'eventInfo' => [ + 'enable' => false, + 'eventNames' => [], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"86D18195-D89C-4C8C-9DC4-5FCE789CE6D5\\",\\n \\"Data\\": {\\n \\"Translated\\": \\"Hello\\",\\n \\"WordCount\\": \\"10\\",\\n \\"DetectedLanguage\\": \\"zh\\"\\n }\\n}","type":"json"}]', + 'title' => 'Invoke Machine Translation Professional Edition', + 'description' => 'Notes '."\n" + .'1. The queries per second (QPS) limit is 50. If you require a higher limit, please contact us. DingTalk group number: 23369411. '."\n" + .'2. Before using this API, ensure you fully understand the billing method and pricing of the Professional Edition translation product. '."\n" + .'2. The maximum character length is 5,000 characters. If your input exceeds this limit, save it as a file and use [Document Translation](https://help.aliyun.com/document_detail/164151.html). '."\n" + .'3. Before using this API, ensure you fully understand the billing method and pricing of the Professional Edition translation product. ', + 'requestParamsDescription' => '### Scenario Description '."\n" + .'We provide different engines optimized specifically for various scenarios. You can control which engine to use by specifying the scene parameter. Valid values for the scene parameter include: product title (title), product description (description), product communication (communication), medical (medical), social (social), and finance (finance). '."\n" + ."\n" + .'- **Product Title**: This engine is trained exclusively on Alibaba\'s e-commerce product title data and delivers excellent performance for translating product titles. '."\n" + .'- **Product Description**: Trained specifically on Alibaba\'s detailed product description data, this engine excels at translating comprehensive product descriptions. '."\n" + .'- **Product Communication**: Optimized for buyer-seller communication scenarios in e-commerce, this engine provides high-quality translations for conversational content. '."\n" + .'- **Medical**: This engine is specially trained on medical literature, terminology, and pharmaceutical data, ensuring superior translation quality in medical contexts. '."\n" + .'- **Social**: Designed for colloquial and informal language, this engine produces natural-sounding translations suitable for social interactions. '."\n" + .'- **Finance**: Tailored for the finance domain, this engine delivers accurate translations of financial content. ', + 'responseParamsDescription' => 'For common request parameters, see [Common Request Parameters in "RPC Call Mechanism"](https://help.aliyun.com/document_detail/315526.html?spm=a2c4g.158244.0.0.34b627b5qv5gmt#sectiondiv-qq5-utu-r7a). ', + 'extraInfo' => ' ', + 'changeSet' => [ + ['createdAt' => '2024-10-08T08:21:05.000Z', 'description' => 'Request parameters changed'], + ['createdAt' => '2023-05-25T09:33:06.000Z', 'description' => 'Response parameters changed'], + ], + 'ramActions' => [ + [ + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'alimt:Translate', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], + ], ], ], + ], + ], + 'TranslateCertificate' => [ + 'summary' => 'Translate certificates.', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'AK' => [], + ], + [ + 'BearerToken' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'], + 'parameters' => [ + [ + 'name' => 'SourceLanguage', + 'in' => 'formData', + 'schema' => ['description' => 'Source language of the image', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'zh', 'title' => ''], + ], [ 'name' => 'TargetLanguage', 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'en', - ], + 'schema' => ['description' => 'Target language', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'en', 'title' => ''], ], [ 'name' => 'ImageUrl', 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'http://imageurl', - 'isFileTransferUrl' => true, - ], + 'schema' => ['description' => 'OSS file URL: an HTTP URL that can be accessed without authorization', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'http://imageurl', 'isFileTransferUrl' => true, 'title' => ''], ], [ 'name' => 'CertificateType', 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'driving_license', - ], + 'schema' => ['description' => 'Type of certificate to translate: ID card (idcard), driver\'s license (driving_license)', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'driving_license', 'title' => ''], ], [ 'name' => 'ResultType', 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'text', - ], + 'schema' => ['description' => 'Result Type: text or image. If no value is provided, the default is text.', 'type' => 'string', 'required' => false, 'example' => 'text', 'title' => ''], ], ], 'responses' => [ @@ -2608,357 +2288,289 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '6640DE48-201C-4110-AE87-FB8FA34412B9', - ], + 'RequestId' => ['description' => 'Request ID', 'type' => 'string', 'example' => '6640DE48-201C-4110-AE87-FB8FA34412B9', 'title' => ''], 'Data' => [ - 'description' => '', + 'description' => 'Translation result', 'type' => 'object', 'properties' => [ 'TranslatedValues' => [ - 'description' => '', + 'description' => 'List of translation results', 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'KeyTranslation' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'name', - ], - 'Key' => [ - 'description' => '', - 'type' => 'string', - 'example' => '', - ], - 'Value' => [ - 'description' => '', - 'type' => 'string', - 'example' => '', - ], - 'ValueTranslation' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'Solemn', - ], + 'KeyTranslation' => ['description' => 'Translated text corresponding to the key', 'type' => 'string', 'example' => 'name', 'title' => ''], + 'Key' => ['description' => 'Title of the certificate content, such as Name or Gender on an ID card', 'type' => 'string', 'example' => '姓名', 'title' => ''], + 'Value' => ['description' => 'Original text', 'type' => 'string', 'example' => '庄严', 'title' => ''], + 'ValueTranslation' => ['description' => 'Translated text', 'type' => 'string', 'example' => 'Solemn', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], + 'title' => '', + 'example' => '', ], ], + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => '10026', - 'errorMessage' => 'Failed to translate the certificate. Please check the parameters.', - ], + ['errorCode' => '10026', 'errorMessage' => 'Failed to translate the certificate. Please check the parameters.', 'description' => ''], ], 403 => [ - [ - 'errorCode' => 'InvalidAccountStatus.ServiceUnavailable', - 'errorMessage' => 'The service has not been activated.', - ], + ['errorCode' => 'InvalidAccountStatus.ServiceUnavailable', 'errorMessage' => 'The service has not been activated.', 'description' => 'The service has not been activated.'], ], 503 => [ - [ - 'errorCode' => 'ServiceUnavailable', - 'errorMessage' => 'An error occurred while processing your request.', - ], - ], - ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"6640DE48-201C-4110-AE87-FB8FA34412B9\\",\\n \\"Data\\": {\\n \\"TranslatedValues\\": [\\n {\\n \\"KeyTranslation\\": \\"name\\",\\n \\"Key\\": \\"姓名\\",\\n \\"Value\\": \\"庄严\\",\\n \\"ValueTranslation\\": \\"Solemn\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"\\n BA8DAAE0-1985-4B19-86BA-97C1753FCF3A\\n \\n \\n Huang Jia\\n name\\n 黄佳\\n 姓名\\n \\n \\n 2019-07-05\\n effective start date\\n 2019-07-05\\n 有效起始日期\\n \\n \\n 331021190\\n certificate number\\n 331021190\\n 证号\\n \\n \\n 1999-11-04\\n date of birth\\n 1999-11-04\\n 出生日期\\n \\n \\n No. 3 Damaiyu Street, Yuhuan county, Zhejiang province\\n address\\n 浙江省玉环县大麦屿街道3号\\n 住址\\n \\n \\n Fujian Ningde, traffic police division, public security bureau\\n license issuing unit\\n 福建省宁德市公安局交通警察支队\\n 发证单位\\n \\n \\n Chinese\\n nationality\\n 中国\\n 国籍\\n \\n \\n 2019-07-05\\n date of first issue\\n 2019-07-05\\n 初次领证日期\\n \\n \\n C1\\n class\\n C1\\n 准驾车型\\n \\n \\n Women\'s\\n sex\\n \\n 性别\\n \\n \\n 2019-07-05至2025-07-05\\n validity period\\n 2019-07-05至2025-07-05\\n 有效期限\\n \\n \\n","errorExample":""}]', + ['errorCode' => 'ServiceUnavailable', 'errorMessage' => 'An error occurred while processing your request.', 'description' => 'An error occurred while processing your request.'], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"6640DE48-201C-4110-AE87-FB8FA34412B9\\",\\n \\"Data\\": {\\n \\"TranslatedValues\\": [\\n {\\n \\"KeyTranslation\\": \\"name\\",\\n \\"Key\\": \\"姓名\\",\\n \\"Value\\": \\"庄严\\",\\n \\"ValueTranslation\\": \\"Solemn\\"\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => 'Certificate Translation', + 'description' => 'Before using this API, make sure you fully understand the [pricing and billing method](https://help.aliyun.com/document_detail/163332.html) of the Image Translation product.'."\n" + ."\n" + .'This API is designed for **certificate translation**. For general image translation or e-commerce image translation, refer to the [Image Translation API Guide](https://help.aliyun.com/document_detail/2505940.html).'."\n" + ."\n\n" + ."\n" + .'**Image Requirements** '."\n" + .'File Size limit: 4 MB '."\n" + .'Supported formats: jpg, jpeg, png '."\n" + ."\n" + .'API queries per second (QPS) limit: 40 '."\n" + ."\n" + .'> This API supports invocation only via POST requests.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'GetImageTranslate' => [ - 'summary' => '获取图片翻译结果', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'changeSet' => [ + ['createdAt' => '2022-11-11T08:44:00.000Z', 'description' => 'Error codes changed'], + ], + 'ramActions' => [ + [ + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'alimt:TranslateCertificate', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + ], + 'TranslateECommerce' => [ + 'summary' => 'Calls the Professional Edition of Machine Translation to return translation results.', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], + [ + 'BearerToken' => [], + ], ], 'operationType' => 'read', - 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'deprecated' => true, + 'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'], 'parameters' => [ [ - 'name' => 'Url', + 'name' => 'FormatType', 'in' => 'formData', 'schema' => [ - 'description' => '', + 'description' => 'The format of the text. Valid values: html and text. If you set this parameter to **html**, the source text and the translated text are processed as HTML. If you set this parameter to **text**, the source text and the translated text are processed as plain text.', + 'enumValueTitles' => ['html' => 'html', 'text' => 'text'], 'type' => 'string', 'required' => true, 'docRequired' => true, - 'example' => 'http://xxxxxxx.oss-cn-shenzhen.aliyuncs.com/xxxxxx.jpg', + 'example' => 'text', + 'title' => '', ], ], + [ + 'name' => 'TargetLanguage', + 'in' => 'formData', + 'schema' => ['description' => 'The target language. For more information about the supported languages, see [Language codes](https://help.aliyun.com/document_detail/163584.html).', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'zh', 'title' => ''], + ], [ 'name' => 'SourceLanguage', 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'zh', - ], + 'schema' => ['description' => 'The source language. For more information, see [Language codes](https://help.aliyun.com/document_detail/158269.html?spm=a2c4g.11186623.2.8.53746614hvrF2G)[Language codes](https://www.alibabacloud.com/help/zh/doc-detail/158269.html)', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'en', 'title' => ''], ], [ - 'name' => 'TargetLanguage', + 'name' => 'SourceText', 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'en', - ], + 'schema' => ['description' => 'The content to be translated.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'Hello', 'title' => ''], ], [ - 'name' => 'Extra', + 'name' => 'Scene', 'in' => 'formData', 'schema' => [ - 'description' => '', + 'description' => 'The translation scenario. Valid values: \\`title\\` (product titles), \\`description\\` (product descriptions), \\`communication\\` (product communications), \\`medical\\`, \\`social\\`, and \\`finance\\`.', + 'enumValueTitles' => ['medical' => 'medical', 'social' => 'social', 'description' => 'description', 'communication' => 'communication', 'title' => 'title', 'finance' => 'finance'], 'type' => 'string', - 'required' => false, + 'required' => true, 'docRequired' => true, - 'example' => '{"have_ocr": "false", "without_text":"true", "have_psd": "false", "ignore_entity": "false"}', + 'example' => 'social', + 'title' => '', ], ], + [ + 'name' => 'Context', + 'in' => 'query', + 'schema' => ['description' => 'Context information.', 'type' => 'string', 'example' => 'context信息', 'title' => '', 'required' => false], + ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Message' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'ok', - ], - 'RequestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'A41F6E25-8520-4AF0-90EF-AF7E32840108', - ], + 'Code' => ['description' => 'The status code. A value of 200 indicates that the request was successful.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''], + 'Message' => ['description' => 'The error message returned if the request fails. If the request is successful, this parameter is empty.', 'type' => 'string', 'example' => 'An error occurred while translating.', 'title' => ''], + 'RequestId' => ['description' => 'The unique ID of the request. This is used for troubleshooting.', 'type' => 'string', 'example' => 'CC93BB5C-EAB5-579B-AA44-F61528F48FF8', 'title' => ''], 'Data' => [ - 'description' => '', + 'description' => 'The returned data.', 'type' => 'object', 'properties' => [ - 'Url' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'https://ae01.alicdn.com/kf/xxxxx.jpeg', - ], - 'Orc' => [ - 'description' => '', - 'type' => 'string', - 'example' => '', - ], - 'PictureEditor' => [ - 'description' => '', - 'type' => 'string', - 'example' => '', - ], + 'Translated' => ['description' => 'The translation result.', 'type' => 'string', 'example' => '你好', 'title' => ''], + 'WordCount' => ['description' => 'The number of characters in the source text.', 'type' => 'string', 'example' => '10', 'title' => ''], + 'DetectedLanguage' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], ], + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 101 => [ - [ - 'errorCode' => 'System.RequestTimeOut', - 'errorMessage' => 'The request has timed out.', - ], + ['errorCode' => '10001', 'errorMessage' => 'The request has timed out.', 'description' => ''], ], [ - [ - 'errorCode' => 'System.Error', - 'errorMessage' => 'A system error occurred.', - ], + ['errorCode' => '10002', 'errorMessage' => 'A system error occurred.', 'description' => ''], ], [ - [ - 'errorCode' => 'System.UrlDecodingError', - 'errorMessage' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.', - ], + ['errorCode' => '10003', 'errorMessage' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.', 'description' => ''], ], [ - [ - 'errorCode' => 'System.ParameterError', - 'errorMessage' => 'Some required parameters are missing.', - ], + ['errorCode' => '10004', 'errorMessage' => 'Some required parameters are missing.', 'description' => ''], ], [ - [ - 'errorCode' => 'System.LanguageNotSupported', - 'errorMessage' => 'The specified language pair is not supported.', - ], + ['errorCode' => '10005', 'errorMessage' => 'The specified language pair is not supported.', 'description' => ''], ], [ - [ - 'errorCode' => 'System.LanguageDetectError', - 'errorMessage' => 'An error occurred while detecting the language.', - ], + ['errorCode' => '10006', 'errorMessage' => 'An error occurred while detecting the language.', 'description' => ''], ], [ - [ - 'errorCode' => 'System.TranslateError', - 'errorMessage' => 'An error occurred while translating.', - ], + ['errorCode' => '10007', 'errorMessage' => 'An error occurred while translating.', 'description' => ''], ], [ - [ - 'errorCode' => 'System.StringTooLong', - 'errorMessage' => 'The maximum length of the specified string is exceeded.', - ], + ['errorCode' => '10008', 'errorMessage' => 'The specified string is too long.', 'description' => ''], ], [ - [ - 'errorCode' => 'System.subNotPermission', - 'errorMessage' => 'The sub-account is not authorized to perform the operation.', - ], + ['errorCode' => '10009', 'errorMessage' => '子账号没有权限', 'description' => ''], ], [ - [ - 'errorCode' => 'System.AccountNotActivated', - 'errorMessage' => 'The account has not activated the service.', - ], + ['errorCode' => '10010', 'errorMessage' => '账号没有开通服务', 'description' => ''], ], [ - [ - 'errorCode' => 'System.SubServiceFailed', - 'errorMessage' => 'Sub-account service failed.', - ], + ['errorCode' => '10011', 'errorMessage' => '子账号服务失败', 'description' => ''], ], [ - [ - 'errorCode' => 'System.TranslateServiceCallFailed', - 'errorMessage' => 'Failed to call the translation service.', - ], + ['errorCode' => '10012', 'errorMessage' => '翻译服务调用失败', 'description' => ''], ], [ - [ - 'errorCode' => 'System.AccountNotActivatedOrInArrears', - 'errorMessage' => 'The service is not activated or the account has an outstanding balance.', - ], + ['errorCode' => '10013', 'errorMessage' => '账号服务没有开通或者欠费', 'description' => ''], ], 199 => [ - [ - 'errorCode' => 'System.unknownError', - 'errorMessage' => 'An unknown error occurred.', - ], + ['errorCode' => '19999', 'errorMessage' => 'An unknown error occurred.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"ok\\",\\n \\"RequestId\\": \\"A41F6E25-8520-4AF0-90EF-AF7E32840108\\",\\n \\"Data\\": {\\n \\"Url\\": \\"https://ae01.alicdn.com/kf/xxxxx.jpeg\\",\\n \\"Orc\\": \\"{\\\\\\"text\\\\\\":\\\\\\"P翼-至草款\\\\\\",\\\\\\"width\\\\\\":750,\\\\\\"wordNum\\\\\\":10}\\",\\n \\"PictureEditor\\": \\"{\\\\\\"text\\\\\\":\\\\\\"P翼-至草款\\\\\\",\\\\\\"width\\\\\\":750,\\\\\\"wordNum\\\\\\":10}\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"ok\\nA41F6E25-8520-4AF0-90EF-AF7E32840108\\n\\n {\\"text\\":\\"P翼-至草款\\",\\"width\\":750,\\"wordNum\\":10}\\n {\\"text\\":\\"P翼-至草款\\",\\"width\\":750,\\"wordNum\\":10}\\n https://ae01.alicdn.com/kf/xxxxx.jpeg\\n\\n200","errorExample":""}]', - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', - ], - 'CreateImageTranslateTask' => [ - 'summary' => '创建图片翻译任务', - 'methods' => [ - 'post', - 'get', + 'staticInfo' => [ + 'substitutions' => ['alimt::2018-10-12::Translate'], ], - 'schemes' => [ - 'http', - 'https', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"An error occurred while translating.\\",\\n \\"RequestId\\": \\"CC93BB5C-EAB5-579B-AA44-F61528F48FF8\\",\\n \\"Data\\": {\\n \\"Translated\\": \\"你好\\",\\n \\"WordCount\\": \\"10\\",\\n \\"DetectedLanguage\\": \\"\\"\\n }\\n}","type":"json"}]', + 'title' => 'Invoke Machine Translation for E-commerce ', + 'description' => '1\\. The maximum number of characters is 5,000. The queries per second (QPS) limit for API calls is 50. To increase these limits, contact us in DingTalk group 23369411.'."\n" + ."\n" + .'2\\. Before you use this API, make sure that you understand the billing methods and pricing of the Professional Edition of Machine Translation.', + 'changeSet' => [ + ['createdAt' => '2023-12-06T06:36:04.000Z', 'description' => 'Response parameters changed'], + ['createdAt' => '2022-08-31T05:28:36.000Z', 'description' => 'Request parameters changed'], + ], + 'ramActions' => [ + [ + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'alimt:TranslateECommerce', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + ], + 'TranslateGeneral' => [ + 'summary' => 'General-purpose translation API call instructions.', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], + [ + 'BearerToken' => [], + ], ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'create', - 'riskType' => 'high', - 'chargeType' => 'paid', - 'tenantRelevance' => 'publicInformation', - ], + 'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'], 'parameters' => [ [ - 'name' => 'UrlList', + 'name' => 'FormatType', 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'http://xxx,http://yyy', - ], + 'schema' => ['description' => 'Format of the text to be translated: html (webpage format; setting this parameter processes both the source and translated text as HTML) or text (plain text format; setting this parameter treats both the input source text and the translation result as plain text without any special formatting). ', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'text', 'title' => ''], ], [ 'name' => 'SourceLanguage', 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'zh', - ], + 'schema' => ['description' => 'Source language. [See language codes](https://help.aliyun.com/document_detail/215387.html)[See language codes](https://www.alibabacloud.com/help/zh/machine-translation/latest/machine-translation-language-code-list) ', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'zh', 'title' => ''], ], [ 'name' => 'TargetLanguage', 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'en', - ], + 'schema' => ['description' => 'Target language for translation. [Refer to language codes](https://help.aliyun.com/document_detail/215387.html)[Refer to language codes](https://www.alibabacloud.com/help/zh/machine-translation/latest/machine-translation-language-code-list) ', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'en', 'title' => ''], ], [ - 'name' => 'Extra', + 'name' => 'SourceText', 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'docRequired' => true, - 'example' => '{"have_ocr":"false","without_text":"false","have_psd":"true","ignore_entity":"false"}', - ], + 'schema' => ['description' => 'Content to be translated ', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '你好', 'title' => ''], ], [ - 'name' => 'ClientToken', + 'name' => 'Scene', 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => '1', - ], + 'schema' => ['description' => 'The default value for the General-purpose Edition is: general ', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => 'general', 'default' => 'general', 'title' => ''], + ], + [ + 'name' => 'Context', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'Context information (optional) ', 'type' => 'string', 'required' => false, 'example' => '早上我在家里吃了面包'], ], ], 'responses' => [ @@ -2966,275 +2578,249 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Message' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'ok', - ], - 'RequestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'A41F6E25-8520-4AF0-90EF-AF7E32840108', - ], + 'Code' => ['description' => 'Error code ', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''], + 'Message' => ['description' => 'Return message ', 'type' => 'string', 'example' => 'success', 'title' => ''], + 'RequestId' => ['description' => 'Request ID ', 'type' => 'string', 'example' => '86D18195-D89C-4C8C-9DC4-5FCE789CE6D5', 'title' => ''], 'Data' => [ - 'description' => '', + 'description' => 'Translation result ', 'type' => 'object', 'properties' => [ - 'TaskId' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'A41F6E25-8520-4AF0-90EF-111111', - ], + 'Translated' => ['description' => 'Translated result ', 'type' => 'string', 'example' => 'Hello', 'title' => ''], + 'WordCount' => ['description' => 'Total word count ', 'type' => 'string', 'example' => '10', 'title' => ''], + 'DetectedLanguage' => ['description' => 'Source language code detected when the source language is set to "auto" ', 'type' => 'string', 'example' => 'zh', 'title' => ''], ], + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ 101 => [ - [ - 'errorCode' => 'System.RequestTimeOut', - 'errorMessage' => 'The request has timed out.', - ], + ['errorCode' => '10001', 'errorMessage' => 'The request has timed out.', 'description' => ''], ], [ - [ - 'errorCode' => 'System.Error', - 'errorMessage' => 'A system error occurred.', - ], + ['errorCode' => '10002', 'errorMessage' => 'A system error occurred.', 'description' => ''], ], [ - [ - 'errorCode' => 'System.UrlDecodingError', - 'errorMessage' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.', - ], + ['errorCode' => '10003', 'errorMessage' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.', 'description' => ''], ], [ - [ - 'errorCode' => 'System.ParameterError', - 'errorMessage' => 'Some required parameters are missing.', - ], + ['errorCode' => '10004', 'errorMessage' => 'Some required parameters are missing.', 'description' => ''], ], [ - [ - 'errorCode' => 'System.LanguageNotSupported', - 'errorMessage' => 'The specified language pair is not supported.', - ], + ['errorCode' => '10005', 'errorMessage' => 'The specified language pair is not supported.', 'description' => ''], ], [ - [ - 'errorCode' => 'System.LanguageDetectError', - 'errorMessage' => 'An error occurred while detecting the language.', - ], + ['errorCode' => '10006', 'errorMessage' => 'An error occurred while detecting the language.', 'description' => ''], ], [ - [ - 'errorCode' => 'System.TranslateError', - 'errorMessage' => 'An error occurred while translating.', - ], + ['errorCode' => '10007', 'errorMessage' => 'An error occurred while translating.', 'description' => ''], ], [ - [ - 'errorCode' => 'System.StringTooLong', - 'errorMessage' => 'The maximum length of the specified string is exceeded.', - ], + ['errorCode' => '10008', 'errorMessage' => 'The specified string is too long.', 'description' => ''], ], - 110 => [ - [ - 'errorCode' => 'System.AccountNotActivated', - 'errorMessage' => 'The account has not activated the service.', - ], + [ + ['errorCode' => '10009', 'errorMessage' => '子账号没有权限', 'description' => ''], ], [ - [ - 'errorCode' => 'System.SubServiceFailed', - 'errorMessage' => 'Sub-account service failed.', - ], + ['errorCode' => '10010', 'errorMessage' => '账号没有开通服务', 'description' => ''], ], [ - [ - 'errorCode' => 'System.TranslateServiceCallFailed', - 'errorMessage' => 'Failed to call the translation service.', - ], + ['errorCode' => '10011', 'errorMessage' => '子账号服务失败', 'description' => ''], ], [ - [ - 'errorCode' => 'System.AccountNotActivatedOrInArrears', - 'errorMessage' => 'The service is not activated or the account has an outstanding balance.', - ], + ['errorCode' => '10012', 'errorMessage' => '翻译服务调用失败', 'description' => ''], + ], + [ + ['errorCode' => '10013', 'errorMessage' => '账号服务没有开通或者欠费', 'description' => ''], + ], + 199 => [ + ['errorCode' => '19999', 'errorMessage' => 'An unknown error occurred.', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"ok\\",\\n \\"RequestId\\": \\"A41F6E25-8520-4AF0-90EF-AF7E32840108\\",\\n \\"Data\\": {\\n \\"TaskId\\": \\"A41F6E25-8520-4AF0-90EF-111111\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"ok\\nA41F6E25-8520-4AF0-90EF-AF7E32840108\\n\\n A41F6E25-8520-4AF0-90EF-111111\\n\\n200","errorExample":""}]', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"86D18195-D89C-4C8C-9DC4-5FCE789CE6D5\\",\\n \\"Data\\": {\\n \\"Translated\\": \\"Hello\\",\\n \\"WordCount\\": \\"10\\",\\n \\"DetectedLanguage\\": \\"zh\\"\\n }\\n}","type":"json"}]', + 'title' => 'Invoke General-purpose Edition of Machine Translation ', + 'description' => 'Notes '."\n" + .'1. The queries per second (QPS) limit is 50. If you need to increase this limit, please contact us. DingTalk group number: 23369411 '."\n" + .'2. Ensure that you fully understand the billing method and pricing of the General-purpose Edition translation product before using this API. '."\n" + .'2. The maximum character length is 5,000 characters. If your input exceeds this limit, save it as a file and use [Document Translation](https://help.aliyun.com/document_detail/164151.html). '."\n" + .'3. Ensure that you fully understand the billing method and pricing of the General-purpose Edition translation product before using this API. ', 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', + 'responseParamsDescription' => 'For common request parameters, see the [Common Request Parameters section in "RPC Call Mechanism"](https://help.aliyun.com/document_detail/315526.html?spm=a2c4g.158244.0.0.34b627b5qv5gmt#sectiondiv-qq5-utu-r7a)', 'extraInfo' => ' ', - ], - 'GetImageTranslateTask' => [ - 'summary' => '获取图片翻译任务', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'changeSet' => [ + ['createdAt' => '2023-05-25T09:33:06.000Z', 'description' => 'Response parameters changed'], + ['createdAt' => '2022-08-31T05:28:36.000Z', 'description' => 'Request parameters changed'], + ], + 'ramActions' => [ + [ + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'alimt:TranslateGeneral', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + ], + 'TranslateImage' => [ + 'summary' => 'Translate text in an image from one language to another and output a new image that is as faithful as possible to the original.', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], + [ + 'BearerToken' => [], + ], ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'], 'parameters' => [ [ - 'name' => 'TaskId', + 'name' => 'ImageUrl', + 'in' => 'formData', + 'schema' => ['description' => 'The URL of the source image. This parameter and Base64 cannot both be empty. Base64 takes precedence.', 'type' => 'string', 'required' => false, 'example' => 'https://example.com/example.jpg', 'title' => ''], + ], + [ + 'name' => 'ImageBase64', + 'in' => 'formData', + 'schema' => ['description' => 'The Base64-encoded source image. This parameter and URL cannot both be empty. Base64 takes precedence.', 'type' => 'string', 'required' => false, 'example' => '/9j/4...H/9k=', 'title' => ''], + ], + [ + 'name' => 'SourceLanguage', + 'in' => 'formData', + 'schema' => ['description' => 'Source language. For supported languages, see [Language Reference](https://help.aliyun.com/document_detail/163584.html). This parameter is Required (ignore the "No" listed under "Required" in the table).', 'type' => 'string', 'required' => false, 'example' => 'zh', 'title' => ''], + ], + [ + 'name' => 'TargetLanguage', + 'in' => 'formData', + 'schema' => ['description' => 'The target language. For supported languages, see [Supported Languages](https://help.aliyun.com/document_detail/163584.html). This parameter is Required (ignore the "No" in the "Required" column of the table).', 'type' => 'string', 'required' => false, 'example' => 'en', 'title' => ''], + ], + [ + 'name' => 'Field', 'in' => 'formData', 'schema' => [ - 'description' => '', + 'description' => 'The translation realm. Valid values:'."\n" + .'- `general`: General image translation'."\n" + .'- `e-commerce`: E-commerce image translation'."\n" + ."\n" + .'By default, or if the realm is not detected, the image is processed as a general image translation.', 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'xxxxxx', + 'required' => false, + 'enumValueTitles' => [], + 'example' => 'general', + 'title' => '', ], ], + [ + 'name' => 'Ext', + 'in' => 'formData', + 'schema' => ['description' => 'Extension information, in JSON string format. It may contain the following fields: '."\n" + .'- `needEditorData`: A string value of `true` or `false`, defaulting to `false`. Indicates whether to return post-translation editor data in the response. This is used only when [integrating your own post-translation editor](https://help.aliyun.com/document_detail/2507676.html). '."\n" + .'- `ignoreEntityRecognize`: A string value of `true` or `false`, defaulting to `false`. In e-commerce image translation, the system automatically detects whether text appears on the main product entity in the image and skips translation if it does. This field controls whether to perform this detection. It has no effect on general image translation.', 'type' => 'string', 'required' => false, 'example' => '{"needEditorData": "false", "ignoreEntityRecognize": "true"}', 'title' => ''], + ], ], 'responses' => [ 200 => [ 'schema' => [ + 'description' => 'Result', 'type' => 'object', 'properties' => [ - 'Code' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Message' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'ok', - ], - 'RequestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'xxxxxxx', - ], + 'RequestId' => ['description' => 'Request identity', 'type' => 'string', 'example' => 'D774D33D-F1CB-5A2C-A787-E0A2179239CE', 'title' => ''], + 'Code' => ['description' => 'Status code of the request result', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''], + 'Message' => ['description' => 'Request error message', 'type' => 'string', 'example' => 'Error Message', 'title' => ''], 'Data' => [ - 'description' => '', + 'description' => 'Struct of the image translation result', 'type' => 'object', 'properties' => [ - 'ImageData' => [ - 'description' => '', - 'type' => 'string', - 'example' => '[{xxxxxx}]', - ], + 'InPaintingUrl' => ['description' => 'Background image for the post-translation editor', 'type' => 'string', 'example' => 'https://example.com/example.jpg', 'title' => ''], + 'TemplateJson' => ['description' => 'Template data for the post-translation editor', 'type' => 'string', 'example' => 'Editor Template Json String', 'title' => ''], + 'FinalImageUrl' => ['description' => 'URL of the final translated image', 'type' => 'string', 'example' => 'https://example.com/example.jpg', 'title' => ''], ], + 'title' => '', + 'example' => '', ], ], + 'title' => '', + 'example' => '', ], ], ], 'errorCodes' => [ - 101 => [ - [ - 'errorCode' => 'System.RequestTimeOut', - 'errorMessage' => 'The request has timed out.', - ], - ], - [ - [ - 'errorCode' => 'System.Error', - 'errorMessage' => 'A system error occurred.', - ], - ], - [ - [ - 'errorCode' => 'System.UrlDecodingError', - 'errorMessage' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.', - ], - ], - [ - [ - 'errorCode' => 'System.ParameterError', - 'errorMessage' => 'Some required parameters are missing.', - ], - ], - [ - [ - 'errorCode' => 'System.LanguageNotSupported', - 'errorMessage' => 'The specified language pair is not supported.', - ], - ], - [ - [ - 'errorCode' => 'System.LanguageDetectError', - 'errorMessage' => 'An error occurred while detecting the language.', - ], - ], - [ - [ - 'errorCode' => 'System.TranslateError', - 'errorMessage' => 'An error occurred while translating.', - ], - ], - [ - [ - 'errorCode' => 'System.StringTooLong', - 'errorMessage' => 'The maximum length of the specified string is exceeded.', - ], - ], - 110 => [ - [ - 'errorCode' => 'System.AccountNotActivated', - 'errorMessage' => 'The account has not activated the service.', - ], + 400 => [ + ['errorCode' => 'Parameter.SourceLangError', 'errorMessage' => 'Source languages are not supported.', 'description' => 'Source languages are not supported.'], + ['errorCode' => 'Parameter.TargetLangError', 'errorMessage' => 'Target languages are not supported.', 'description' => 'Target languages are not supported.'], ], [ - [ - 'errorCode' => 'System.SubServiceFailed', - 'errorMessage' => 'Sub-account service failed.', - ], + ['errorCode' => 'System.subNotPermission', 'errorMessage' => 'The sub-account is not authorized to perform the operation.', 'description' => ''], + ['errorCode' => 'System.AccountNotActivated', 'errorMessage' => 'The account has not activated the service.', 'description' => ''], ], - [ - [ - 'errorCode' => 'System.TranslateServiceCallFailed', - 'errorMessage' => 'Failed to call the translation service.', - ], + 406 => [ + ['errorCode' => 'System.ParameterError', 'errorMessage' => 'Some required parameters are missing.', 'description' => ''], + ['errorCode' => 'Parameter.ImageUrlError', 'errorMessage' => 'Failed to obtain the image from the URL.', 'description' => 'Failed to obtain the image from the URL.'], + ['errorCode' => 'Parameter.ImageSizeError', 'errorMessage' => 'Image size should be within 15px to 8192px.', 'description' => 'Image size should be within 15px to 8192px.'], + ['errorCode' => 'Parameter.ImageFormatError', 'errorMessage' => 'The image format is not supported.', 'description' => 'The image format is not supported.'], + ['errorCode' => 'Parameter.ImageFileSizeError', 'errorMessage' => 'The image file size should be within 10 MB.', 'description' => 'The image file size should be within 10 MB.'], ], - [ - [ - 'errorCode' => 'System.AccountNotActivatedOrInArrears', - 'errorMessage' => 'The service is not activated or the account has an outstanding balance.', + 500 => [ + ['errorCode' => 'System.unknownError', 'errorMessage' => 'An unknown error occurred.', 'description' => 'An unknown error occurred.'], + ['errorCode' => 'ImageTranslate.TranslationError', 'errorMessage' => 'Image translation error.', 'description' => 'Image translation error.'], + ['errorCode' => 'ImageTranslate.FusionError', 'errorMessage' => 'Image fusion error.', 'description' => 'Image fusion error.'], + ['errorCode' => 'ImageTranslate.EraseError', 'errorMessage' => 'Image erasing error.', 'description' => 'Image erasing error.'], + ['errorCode' => 'ImageTranslate.TextTranslationError', 'errorMessage' => 'Text translation error.', 'description' => 'Text translation error.'], + ['errorCode' => 'ImageTranslate.TextToParagraphError', 'errorMessage' => 'Text to paragraph error.', 'description' => 'Text to paragraph error.'], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D774D33D-F1CB-5A2C-A787-E0A2179239CE\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"Error Message\\",\\n \\"Data\\": {\\n \\"InPaintingUrl\\": \\"https://example.com/example.jpg\\",\\n \\"TemplateJson\\": \\"Editor Template Json String\\",\\n \\"FinalImageUrl\\": \\"https://example.com/example.jpg\\"\\n }\\n}","type":"json"}]', + 'title' => 'Image Translation', + 'description' => 'Before using this API, ensure you fully understand the [pricing and billing model](https://help.aliyun.com/document_detail/163332.html) of the Image Translation product.'."\n" + ."\n" + .'This API supports **general image translation** and **e-commerce image translation**. '."\n" + .'For certificate translation, refer to the [Certificate Translation Integration Guide](https://help.aliyun.com/document_detail/2505939.html).'."\n" + ."\n" + .'**Image Restrictions**'."\n" + ."\n" + .'- File Size limit: 10 MB '."\n" + .'- Pixel aspect ratio limit: width-to-height ratio < 10:1 '."\n" + .'- Supported formats: jpg, jpeg, png, bmp, gif (only the first frame is translated), webp'."\n" + ."\n" + .'> This API supports invocation only via POST requests.', + 'changeSet' => [ + ['createdAt' => '2024-08-29T08:42:06.000Z', 'description' => 'Response parameters changed'], + ['createdAt' => '2023-01-10T08:01:25.000Z', 'description' => 'Error codes changed'], + ['createdAt' => '2023-01-05T03:37:40.000Z', 'description' => 'Error codes changed, Response parameters changed'], + ['createdAt' => '2021-11-05T06:50:56.000Z', 'description' => 'Error codes changed'], + ['createdAt' => '2021-11-05T06:50:56.000Z', 'description' => 'Error codes changed'], + ], + 'ramActions' => [ + [ + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'alimt:TranslateImage', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], + ], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"ok\\",\\n \\"RequestId\\": \\"xxxxxxx\\",\\n \\"Data\\": {\\n \\"ImageData\\": \\"[{xxxxxx}]\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', ], - 'GetImageDiagnose' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'TranslateImageBatch' => [ + 'summary' => 'Asynchronously translates text in a batch of images from one language to another and returns a new image for each input image.', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -3242,1393 +2828,1062 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - ], + 'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'], 'parameters' => [ [ - 'name' => 'Url', + 'name' => 'ImageUrls', 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'http://xxxxx.oss-cn-shenzhen.aliyuncs.com/jd/41209/xxxxx.jpg', - ], + 'schema' => ['description' => 'URLs of the source images. Separate multiple URLs with commas. A single request can include up to 20 URLs. Duplicate URLs are processed only once.', 'type' => 'string', 'required' => true, 'example' => 'https://example.com/1.jpg,https://example.com/2.jpg,https://example.com/3.jpg', 'title' => ''], ], [ - 'name' => 'Extra', + 'name' => 'SourceLanguage', 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => '{ "product_id": "1", "platform": "ae" }', - ], + 'schema' => ['description' => 'Source language. For supported languages and their codes, see [language codes](https://help.aliyun.com/document_detail/163584.html).', 'type' => 'string', 'required' => true, 'example' => 'zh', 'title' => ''], + ], + [ + 'name' => 'TargetLanguage', + 'in' => 'formData', + 'schema' => ['description' => 'Target language. For supported languages and their codes, see [language codes](https://help.aliyun.com/document_detail/163584.html).', 'type' => 'string', 'required' => true, 'example' => 'en', 'title' => ''], + ], + [ + 'name' => 'Ext', + 'in' => 'formData', + 'schema' => ['description' => 'Extended information in JSON string format. Supported fields include the following.'."\n" + ."\n" + .'- needEditorData: Set to `true` or `false`. Default is `false`. Set to `true` to return editor data in the response. Use this only when you integrate your own [image translation post-editing editor](https://help.aliyun.com/document_detail/2507676.html).'."\n" + ."\n" + .'- ignoreEntityRecognize: Set to `true` or `false`. Default is `false`. For e-commerce image translation, the service automatically detects whether text appears on product entities in the image. If so, it skips translation. Set this field to `true` to disable that detection. This field has no effect on general image translation.', 'type' => 'string', 'required' => false, 'example' => '{"needEditorData": "false", "ignoreEntityRecognize": "true"}', 'title' => ''], + ], + [ + 'name' => 'CustomTaskId', + 'in' => 'formData', + 'schema' => ['description' => 'Custom task ID. Prevent accidental duplicate requests within a short time. Requests with the same custom task ID are processed only once within three minutes.', 'type' => 'string', 'required' => false, 'example' => 'my_awesome_task_1', 'title' => ''], + ], + [ + 'name' => 'Field', + 'in' => 'formData', + 'schema' => ['description' => 'Translation domain. Valid values:'."\n" + ."\n" + .'- `general`: General image translation'."\n" + ."\n" + .'- `e-commerce`: E-commerce image translation'."\n" + ."\n" + .'If not specified or unrecognized, the service uses general image translation.', 'type' => 'string', 'required' => false, 'example' => 'general', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Response structure', 'type' => 'object', 'properties' => [ - 'Code' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Message' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'ok', - ], - 'RequestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'DC2DCCC9-C3DF-4F59-8D8E-78185729F16D', - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Request identifier', 'type' => 'string', 'example' => 'D774D33D-F1CB-5A2C-A787-E0A2179239CE'], + 'Message' => ['description' => 'Information about the request.', 'type' => 'string', 'example' => 'OK', 'title' => ''], + 'Code' => ['description' => 'Status code', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''], 'Data' => [ - 'description' => '', + 'description' => 'Response data', 'type' => 'object', 'properties' => [ - 'Language' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'zh', - ], + 'TaskId' => ['description' => 'Task ID. Use this ID to retrieve translation results later.', 'type' => 'string', 'example' => 'EEA28E6D-4828-5031-BD8C-8FF1B3216842', 'title' => ''], ], + 'title' => '', + 'example' => '', ], ], + 'example' => '', ], ], ], 'errorCodes' => [ 101 => [ - [ - 'errorCode' => 'System.RequestTimeOut', - 'errorMessage' => 'The request has timed out.', - ], + ['errorCode' => 'System.RequestTimeOut', 'errorMessage' => 'The request has timed out.', 'description' => ''], ], [ - [ - 'errorCode' => 'System.Error', - 'errorMessage' => 'A system error occurred.', - ], + ['errorCode' => 'System.Error', 'errorMessage' => 'A system error occurred.', 'description' => ''], ], [ - [ - 'errorCode' => 'System.UrlDecodingError', - 'errorMessage' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.', - ], + ['errorCode' => 'System.UrlDecodingError', 'errorMessage' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.', 'description' => ''], ], [ - [ - 'errorCode' => 'System.ParameterError', - 'errorMessage' => 'Some required parameters are missing.', - ], + ['errorCode' => 'System.ParameterError', 'errorMessage' => 'Some required parameters are missing.', 'description' => ''], ], [ - [ - 'errorCode' => 'System.LanguageNotSupported', - 'errorMessage' => 'The specified language pair is not supported.', - ], + ['errorCode' => 'System.LanguageNotSupported', 'errorMessage' => 'The specified language pair is not supported.', 'description' => ''], ], [ - [ - 'errorCode' => 'System.LanguageDetectError', - 'errorMessage' => 'An error occurred while detecting the language.', - ], + ['errorCode' => 'System.LanguageDetectError', 'errorMessage' => 'An error occurred while detecting the language.', 'description' => ''], ], [ - [ - 'errorCode' => 'System.TranslateError', - 'errorMessage' => 'An error occurred while translating.', - ], + ['errorCode' => 'System.TranslateError', 'errorMessage' => 'An error occurred while translating.', 'description' => ''], ], [ - [ - 'errorCode' => 'System.StringTooLong', - 'errorMessage' => 'The maximum length of the specified string is exceeded.', - ], + ['errorCode' => 'System.StringTooLong', 'errorMessage' => 'The maximum length of the specified string is exceeded.', 'description' => ''], ], - [ - [ - 'errorCode' => 'System.subNotPermission', - 'errorMessage' => 'The sub-account is not authorized to perform the operation.', - ], + 110 => [ + ['errorCode' => 'System.AccountNotActivated', 'errorMessage' => 'The account has not activated the service.', 'description' => ''], ], [ - [ - 'errorCode' => 'System.AccountNotActivated', - 'errorMessage' => 'The account has not activated the service.', - ], + ['errorCode' => 'System.SubServiceFailed', 'errorMessage' => 'Sub-account service failed.', 'description' => ''], ], [ - [ - 'errorCode' => 'System.SubServiceFailed', - 'errorMessage' => 'Sub-account service failed.', - ], + ['errorCode' => 'System.TranslateServiceCallFailed', 'errorMessage' => 'Failed to call the translation service.', 'description' => ''], ], [ - [ - 'errorCode' => 'System.TranslateServiceCallFailed', - 'errorMessage' => 'Failed to call the translation service.', - ], + ['errorCode' => 'System.AccountNotActivatedOrInArrears', 'errorMessage' => 'The service is not activated or the account has an outstanding balance.', 'description' => ''], ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D774D33D-F1CB-5A2C-A787-E0A2179239CE\\",\\n \\"Message\\": \\"OK\\",\\n \\"Code\\": 200,\\n \\"Data\\": {\\n \\"TaskId\\": \\"EEA28E6D-4828-5031-BD8C-8FF1B3216842\\"\\n }\\n}","type":"json"}]', + 'title' => 'Asynchronous Batch Image Translation ', + 'description' => 'Before you use this operation, review the [pricing details](https://help.aliyun.com/document_detail/163332.html) for the Image Translation service.'."\n" + ."\n" + .'This operation supports **general image translation** and **e-commerce image translation**. For ID document translation, see the [ID document translation guide](https://help.aliyun.com/document_detail/163527.html).'."\n" + ."\n" + .'**Image limits**'."\n" + ."\n" + .'- File size: up to 10 MB'."\n" + ."\n" + .'- Aspect ratio: less than 10:1'."\n" + ."\n" + .'- Supported formats: JPG, JPEG, PNG, BMP, GIF (first frame only), and WebP', + 'changeSet' => [], + 'ramActions' => [ [ - [ - 'errorCode' => 'System.AccountNotActivatedOrInArrears', - 'errorMessage' => 'The service is not activated or the account has an outstanding balance.', - ], - ], - 199 => [ - [ - 'errorCode' => 'System.unknownError', - 'errorMessage' => 'An unknown error occurred.', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'alimt:TranslateImageBatch', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], + ], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"ok\\",\\n \\"RequestId\\": \\"DC2DCCC9-C3DF-4F59-8D8E-78185729F16D\\",\\n \\"Data\\": {\\n \\"Language\\": \\"zh\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"DC2DCCC9-C3DF-4F59-8D8E-78185729F16D\\nok\\n\\n zh\\n\\n200","errorExample":""}]', - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', ], - 'GetTitleDiagnose' => [ - 'summary' => 'GetTitleDiagnose', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'TranslateSearch' => [ + 'summary' => 'Translation Search', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'], 'parameters' => [ [ - 'name' => 'Title', + 'name' => 'FormatType', 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'Amroe Japan Comic Theme Uzumaki Naruto Namikaze Minato 3D Visual Cartoon 7 Color USB Touch', - ], + 'allowEmptyValue' => false, + 'schema' => ['title' => 'Idempotent parameter', 'type' => 'string', 'required' => true, 'example' => 'text', 'description' => ''], ], [ - 'name' => 'Language', + 'name' => 'SourceLanguage', 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'zh', - ], + 'schema' => ['type' => 'string', 'required' => true, 'example' => 'zh', 'description' => '', 'title' => ''], ], [ - 'name' => 'Platform', + 'name' => 'TargetLanguage', 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'ae', - ], + 'schema' => ['type' => 'string', 'required' => true, 'example' => 'en', 'description' => '', 'title' => ''], ], [ - 'name' => 'CategoryId', + 'name' => 'Scene', 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '123', - ], + 'schema' => ['type' => 'string', 'required' => true, 'example' => 'query', 'description' => '', 'title' => ''], ], [ - 'name' => 'Extra', + 'name' => 'SourceText', 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'docRequired' => true, - 'example' => '{ "product_id": "1", "platform": "ae" }', - ], + 'schema' => ['type' => 'string', 'required' => true, 'example' => '今天天气不错', 'description' => '', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ + 'title' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'Code' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Message' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'ok', - ], - 'RequestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'DC2DCCC9-C3DF-4F59-8D8E-78185729F16D', - ], + 'RequestId' => ['title' => 'Id of the request', 'type' => 'string', 'description' => '', 'example' => ''], + 'Code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'Message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], 'Data' => [ - 'description' => '', 'type' => 'object', 'properties' => [ - 'DuplicateWords' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'hi', - ], - 'ContainCoreClasses' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'true', - ], - 'WordCount' => [ - 'description' => '', - 'type' => 'string', - 'example' => '10', - ], - 'LanguageQualityScore' => [ - 'description' => '', - 'type' => 'string', - 'example' => '2', - ], - 'AllUppercaseWords' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'Boy', - ], - 'OverLengthLimit' => [ - 'description' => '', - 'type' => 'string', - 'example' => '100', - ], - 'DisableWords' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'baba', - ], - 'NoFirstUppercaseList' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'no', - ], - 'TotalScore' => [ - 'description' => '', - 'type' => 'string', - 'example' => '3', - ], - 'WordSpelledCorrectError' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'ahk', - ], + 'Translated' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'example' => '', ], ], ], 'errorCodes' => [ - 101 => [ - [ - 'errorCode' => 'System.RequestTimeOut', - 'errorMessage' => 'The request has timed out.', - ], + 400 => [ + ['errorCode' => 'IdempotentParameterMismatch', 'errorMessage' => 'The request uses the same client token as a previous, but non-identical request. Do not reuse a client token with different requests, unless the requests are identical.', 'description' => ''], ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'changeSet' => [], + 'ramActions' => [ [ - [ - 'errorCode' => 'System.Error', - 'errorMessage' => 'A system error occurred.', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'alimt:TranslateSearch', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], + ], ], ], - [ - [ - 'errorCode' => 'System.UrlDecodingError', - 'errorMessage' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"\\",\\n \\"Code\\": \\"\\",\\n \\"Message\\": \\"\\",\\n \\"Data\\": {\\n \\"Translated\\": \\"\\"\\n }\\n}","type":"json"}]', + 'title' => 'TranslateSearch', + ], + ], + 'endpoints' => [ + ['regionId' => 'ap-northeast-1', 'regionName' => 'Japan (Tokyo)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'mt.aliyuncs.com', 'endpoint' => 'mt.aliyuncs.com', 'vpc' => ''], + ['regionId' => 'ap-southeast-1', 'regionName' => 'Singapore', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'mt.ap-southeast-1.aliyuncs.com', 'endpoint' => 'mt.ap-southeast-1.aliyuncs.com', 'vpc' => 'mt-vpc.ap-southeast-1.aliyuncs.com'], + ['regionId' => 'ap-southeast-2', 'regionName' => 'Australia (Sydney) Closed', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'mt.aliyuncs.com', 'endpoint' => 'mt.aliyuncs.com', 'vpc' => ''], + ['regionId' => 'ap-southeast-3', 'regionName' => 'Malaysia (Kuala Lumpur)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'mt.aliyuncs.com', 'endpoint' => 'mt.aliyuncs.com', 'vpc' => ''], + ['regionId' => 'cn-beijing', 'regionName' => 'China (Beijing)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'mt.aliyuncs.com', 'endpoint' => 'mt.aliyuncs.com', 'vpc' => 'mt-vpc.cn-beijing.aliyuncs.com'], + ['regionId' => 'cn-chengdu', 'regionName' => 'China (Chengdu)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'mt.aliyuncs.com', 'endpoint' => 'mt.aliyuncs.com', 'vpc' => ''], + ['regionId' => 'cn-hangzhou', 'regionName' => 'China (Hangzhou)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'mt.cn-hangzhou.aliyuncs.com', 'endpoint' => 'mt.cn-hangzhou.aliyuncs.com', 'vpc' => 'mt-inner.vpc-proxy.aliyuncs.com'], + ['regionId' => 'cn-hongkong', 'regionName' => 'China (Hong Kong)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'mt.aliyuncs.com', 'endpoint' => 'mt.aliyuncs.com', 'vpc' => ''], + ['regionId' => 'cn-huhehaote', 'regionName' => 'China (Hohhot)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'mt.aliyuncs.com', 'endpoint' => 'mt.aliyuncs.com', 'vpc' => ''], + ['regionId' => 'cn-qingdao', 'regionName' => 'China (Qingdao)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'mt.aliyuncs.com', 'endpoint' => 'mt.aliyuncs.com', 'vpc' => ''], + ['regionId' => 'cn-shanghai', 'regionName' => 'China (Shanghai)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'mt.aliyuncs.com', 'endpoint' => 'mt.aliyuncs.com', 'vpc' => 'mt-vpc.cn-shanghai.aliyuncs.com'], + ['regionId' => 'cn-shenzhen', 'regionName' => 'China (Shenzhen)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'mt.aliyuncs.com', 'endpoint' => 'mt.aliyuncs.com', 'vpc' => ''], + ['regionId' => 'cn-zhangjiakou', 'regionName' => 'China (Zhangjiakou)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'mt.aliyuncs.com', 'endpoint' => 'mt.aliyuncs.com', 'vpc' => 'mt-inner.vpc-proxy.aliyuncs.com'], + ['regionId' => 'us-west-1', 'regionName' => 'US (Silicon Valley)', 'areaId' => 'europeAmerica', 'areaName' => 'Europe & Americas', 'public' => 'mt.aliyuncs.com', 'endpoint' => 'mt.aliyuncs.com', 'vpc' => ''], + ['regionId' => 'us-east-1', 'regionName' => 'US (Virginia)', 'areaId' => 'europeAmerica', 'areaName' => 'Europe & Americas', 'public' => 'mt.aliyuncs.com', 'endpoint' => 'mt.aliyuncs.com', 'vpc' => ''], + ['regionId' => 'eu-west-1', 'regionName' => 'UK (London)', 'areaId' => 'europeAmerica', 'areaName' => 'Europe & Americas', 'public' => 'mt.aliyuncs.com', 'endpoint' => 'mt.aliyuncs.com', 'vpc' => ''], + ['regionId' => 'eu-central-1', 'regionName' => 'Germany (Frankfurt)', 'areaId' => 'europeAmerica', 'areaName' => 'Europe & Americas', 'public' => 'mt.aliyuncs.com', 'endpoint' => 'mt.aliyuncs.com', 'vpc' => ''], + ['regionId' => 'me-east-1', 'regionName' => 'UAE (Dubai)', 'areaId' => 'middleEast', 'areaName' => 'Middle East', 'public' => 'alimt.me-east-1.aliyuncs.com', 'endpoint' => 'alimt.me-east-1.aliyuncs.com', 'vpc' => ''], + ['regionId' => 'me-central-1', 'regionName' => 'Saudi Arabia (Riyadh)', 'areaId' => 'middleEast', 'areaName' => 'Middle East', 'public' => 'mt.me-central-1.aliyuncs.com', 'endpoint' => 'mt.me-central-1.aliyuncs.com', 'vpc' => 'mt-vpc.me-central-1.aliyuncs.com'], + ['regionId' => 'ap-south-1', 'regionName' => 'India (Mumbai) Closed', 'areaId' => 'middleEast', 'areaName' => 'Middle East', 'public' => 'mt.aliyuncs.com', 'endpoint' => 'mt.aliyuncs.com', 'vpc' => ''], + ['regionId' => 'cn-shenzhen-finance-1', 'regionName' => 'China South 1 Finance', 'areaId' => 'industryCloud', 'areaName' => 'Industry Cloud', 'public' => 'mt.aliyuncs.com', 'endpoint' => 'mt.aliyuncs.com', 'vpc' => ''], + ['regionId' => 'cn-shanghai-finance-1', 'regionName' => 'China East 2 Finance', 'areaId' => 'industryCloud', 'areaName' => 'Industry Cloud', 'public' => 'mt.aliyuncs.com', 'endpoint' => 'mt.aliyuncs.com', 'vpc' => ''], + ['regionId' => 'cn-north-2-gov-1', 'regionName' => 'Beijing Government Cloud', 'areaId' => 'industryCloud', 'areaName' => 'Industry Cloud', 'public' => 'mt.aliyuncs.com', 'endpoint' => 'mt.aliyuncs.com', 'vpc' => ''], + ['regionId' => 'cn-hangzhou-finance', 'regionName' => 'China East 1 Finance', 'areaId' => 'industryCloud', 'areaName' => 'Industry Cloud', 'public' => 'mt.aliyuncs.com', 'endpoint' => 'mt.aliyuncs.com', 'vpc' => ''], + ['regionId' => 'cn-beijing-finance-1', 'regionName' => 'China North 2 Finance (Preview)', 'areaId' => 'industryCloud', 'areaName' => 'Industry Cloud', 'public' => 'mt.aliyuncs.com', 'endpoint' => 'mt.aliyuncs.com', 'vpc' => ''], + ], + 'errorCodes' => [ + ['code' => '10002', 'message' => 'A system error occurred.', 'http_code' => 500, 'description' => ''], + ['code' => '10009', 'message' => 'The RAM user is not authorized to perform this operation.', 'http_code' => 403, 'description' => 'The RAM user is not authorized to perform this operation.'], + ['code' => '10010', 'message' => 'You have not activated this service.', 'http_code' => 400, 'description' => 'You have not activated this service.'], + ['code' => '10011', 'message' => 'An error occurred while invoking the RAM user service.', 'http_code' => 500, 'description' => 'An error occurred while invoking the RAM user service.'], + ['code' => '10012', 'message' => 'An error occurred while calling the translation service.', 'http_code' => 500, 'description' => 'An error occurred while calling the translation service.'], + ['code' => '10013', 'message' => 'You have not activated the account service or the account service has overdue bills.', 'http_code' => 400, 'description' => 'You have not activated the account service or the account service has overdue bills.'], + ['code' => '10021', 'message' => 'The parameter is invalid.', 'http_code' => 400, 'description' => ''], + ['code' => '10022', 'message' => 'The parameter fileUrl is invalid.', 'http_code' => 400, 'description' => ''], + ['code' => '10023', 'message' => 'The parameter fileUrl is not accessible.', 'http_code' => 400, 'description' => ''], + ['code' => '10024', 'message' => 'The parameter callbackUrl is invalid.', 'http_code' => 400, 'description' => 'The parameter callbackUrl is invalid.'], + ['code' => '10025', 'message' => 'The specified task does not exist.', 'http_code' => 404, 'description' => 'The specified task does not exist.'], + ['code' => '10026', 'message' => 'Failed to translate the certificate. Please check the parameters.', 'http_code' => 400, 'description' => ''], + ['code' => '10027', 'message' => 'The parameter imageUrl is not accessible.', 'http_code' => 400, 'description' => ''], + ['code' => '10028', 'message' => 'The QPS of the API operation exceeds limit.', 'http_code' => 400, 'description' => 'Api qps limit.'], + ['code' => '10029', 'message' => 'The number of calls per day exceeds the limit.', 'http_code' => 403, 'description' => 'The number of calls per day limit exceeded.'], + ['code' => '10030', 'message' => 'The file size exceeds the limit.', 'http_code' => 400, 'description' => 'The file size exceeds the limit.'], + ['code' => '10031', 'message' => 'The specified file type is invalid.', 'http_code' => 400, 'description' => 'The type of file is not valid.'], + ['code' => 'CidDebtOverQuota', 'message' => 'Your bill is overdue. Please check your bill.', 'http_code' => 400, 'description' => 'Overdue payments exist in your account.'], + ['code' => 'Forbbiden', 'message' => 'You are not authorized to operate on the specified resource.', 'http_code' => 403, 'description' => 'You are not authorized to operate on the specified resource.'], + ['code' => 'ImageTranslate.EraseError', 'message' => 'Image erasing error.', 'http_code' => 500, 'description' => 'Image erasing error.'], + ['code' => 'ImageTranslate.FusionError', 'message' => 'Image fusion error.', 'http_code' => 500, 'description' => 'Image fusion error.'], + ['code' => 'ImageTranslate.TextToParagraphError', 'message' => 'Text to paragraph error.', 'http_code' => 500, 'description' => 'Text to paragraph error.'], + ['code' => 'ImageTranslate.TextTranslationError', 'message' => 'Text translation error.', 'http_code' => 500, 'description' => 'Text translation error.'], + ['code' => 'ImageTranslate.TranslationError', 'message' => 'Image translation error.', 'http_code' => 500, 'description' => 'Image translation error.'], + ['code' => 'ImageTranslateParamsInvalid', 'message' => 'Picture translation parameter error.', 'http_code' => 400, 'description' => 'An invalid parameter for image translation.'], + ['code' => 'Internal.Error', 'message' => 'The internal service connection timeout, please try again later.', 'http_code' => 503, 'description' => ''], + ['code' => 'InternalError', 'message' => 'An error occurred while processing your request.', 'http_code' => 500, 'description' => 'An unknown error occurred.'], + ['code' => 'InvalidAccountStatus', 'message' => 'The Machine Translation service has not been activated.', 'http_code' => 400, 'description' => 'The Machine Translation service has not been activated.'], + ['code' => 'InvalidAccountStatus.ServiceUnavailable', 'message' => 'The service has not been activated.', 'http_code' => 403, 'description' => 'The service has not been activated.'], + ['code' => 'LanguageSpellingError', 'message' => 'Language spelling error.', 'http_code' => 400, 'description' => 'The language is invalid.'], + ['code' => 'Limitexceeded', 'message' => 'Limit exceeded.', 'http_code' => 400, 'description' => 'The number exceeds the maximum limit.'], + ['code' => 'NewUserQuotaExceed', 'message' => 'One-day temporary limit for new users exceeded.', 'http_code' => 400, 'description' => 'The daily quota for a new user is exceeded.'], + ['code' => 'ORDER.OPEND', 'message' => 'You have already open the service. Go to the console to start using it', 'http_code' => 400, 'description' => ''], + ['code' => 'Parameter.ImageFileSizeError', 'message' => 'The image file size should be within 10 MB.', 'http_code' => 406, 'description' => 'The image file size should be within 10 MB.'], + ['code' => 'Parameter.ImageFormatError', 'message' => 'The image format is not supported.', 'http_code' => 406, 'description' => 'The image format is not supported.'], + ['code' => 'Parameter.ImageSizeError', 'message' => 'Image size should be within 15px to 8192px.', 'http_code' => 406, 'description' => 'Image size should be within 15px to 8192px.'], + ['code' => 'Parameter.ImageUrlError', 'message' => 'Failed to obtain the image from the URL.', 'http_code' => 406, 'description' => 'Failed to obtain the image from the URL.'], + ['code' => 'Parameter.SourceLangError', 'message' => 'Source languages are not supported.', 'http_code' => 400, 'description' => 'Source languages are not supported.'], + ['code' => 'Parameter.TargetLangError', 'message' => 'Target languages are not supported.', 'http_code' => 400, 'description' => 'Target languages are not supported.'], + ['code' => 'RepeatInvoke', 'message' => 'Repeated calls.', 'http_code' => 400, 'description' => 'Repeated calls'], + ['code' => 'RepeatInvoke', 'message' => 'repeat invoke.', 'http_code' => 400, 'description' => 'Repeated calls'], + ['code' => 'REQUESTS.OVER.LIMIT', 'message' => 'The request is too frequent, please try again later.', 'http_code' => 429, 'description' => 'Request too frequent, please try again later'], + ['code' => 'ServiceUnavailable', 'message' => 'An error occurred while processing your request.', 'http_code' => 503, 'description' => 'An error occurred while processing your request.'], + ['code' => 'SourceTextEmpty', 'message' => 'Originalempty.', 'http_code' => 400, 'description' => 'The request is empty.'], + ['code' => 'Sub account service failed', 'message' => 'Subaccountservicefailed.', 'http_code' => 111, 'description' => 'The sub-account service failed.'], + ['code' => 'System.AccountNotActivated', 'message' => 'The account has not activated the service.', 'http_code' => 400, 'description' => 'Account is not activated'], + ['code' => 'System.AccountNotActivatedOrInArrears', 'message' => 'The service is not activated or the account has an outstanding balance.', 'http_code' => 400, 'description' => 'Account service is not activated or in arrears'], + ['code' => 'System.Error', 'message' => 'A system error occurred.', 'http_code' => 500, 'description' => 'A system error occurred.'], + ['code' => 'System.LanguageDetectError', 'message' => 'An error occurred while detecting the language.', 'http_code' => 500, 'description' => 'An error occurred while detecting the language.'], + ['code' => 'System.LanguageNotSupported', 'message' => 'The specified language pair is not supported.', 'http_code' => 400, 'description' => 'The specified language pair is not supported.'], + ['code' => 'System.ParameterError', 'message' => 'Some required parameters are missing.', 'http_code' => 400, 'description' => 'Some required parameters are missing.'], + ['code' => 'System.RequestTimeOut', 'message' => 'The request has timed out.', 'http_code' => 500, 'description' => 'The request has timed out.'], + ['code' => 'System.StringTooLong', 'message' => 'The maximum length of the specified string is exceeded.', 'http_code' => 400, 'description' => 'The specified string is too long.'], + ['code' => 'System.subNotPermission', 'message' => 'The sub-account is not authorized to perform the operation.', 'http_code' => 403, 'description' => 'The sub account does not have permission'], + ['code' => 'System.SubServiceFailed', 'message' => 'Sub-account service failed.', 'http_code' => 500, 'description' => 'Sub-account service failed'], + ['code' => 'System.TranslateError', 'message' => 'An error occurred while translating.', 'http_code' => 500, 'description' => 'An error occurred while translating.'], + ['code' => 'System.TranslateServiceCallFailed', 'message' => 'Failed to call the translation service.', 'http_code' => 500, 'description' => 'Translation service call failed'], + ['code' => 'System.unknownError', 'message' => 'An unknown error occurred.', 'http_code' => 500, 'description' => 'An unknown error occurred.'], + ['code' => 'System.UrlDecodingError', 'message' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.', 'http_code' => 500, 'description' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.'], + ['code' => 'Timeout', 'message' => 'Request timeout. Please retry again later.', 'http_code' => 500, 'description' => 'The request timed out.'], + ], + 'changeSet' => [], + 'ram' => [ + 'productCode' => 'Alimt', + 'productName' => 'Machine Translation', + 'ramCodes' => ['alimtautoml', 'alimt'], + 'ramLevel' => 'OPERATION', + 'ramConditions' => [], + 'ramActions' => [ + [ + 'apiName' => 'QueryResourcePackage', + 'description' => '', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'alimt:QueryResourcePackage', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], - [ - [ - 'errorCode' => 'System.ParameterError', - 'errorMessage' => 'Some required parameters are missing.', + ], + [ + 'apiName' => 'CreateImageTranslateTask', + 'description' => '', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'alimt:CreateImageTranslateTask', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], - [ - [ - 'errorCode' => 'System.LanguageNotSupported', - 'errorMessage' => 'The specified language pair is not supported.', + ], + [ + 'apiName' => 'GetTranslateReport', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'alimt:GetTranslateReport', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], - [ - [ - 'errorCode' => 'System.LanguageDetectError', - 'errorMessage' => 'An error occurred while detecting the language.', + ], + [ + 'apiName' => 'GetDocTranslateTask', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'alimt:GetDocTranslateTask', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], - [ - [ - 'errorCode' => 'System.TranslateError', - 'errorMessage' => 'An error occurred while translating.', + ], + [ + 'apiName' => 'GetCertificateUserStatus', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'alimt:GetCertificateUserStatus', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], - [ - [ - 'errorCode' => 'System.StringTooLong', - 'errorMessage' => 'The maximum length of the specified string is exceeded.', + ], + [ + 'apiName' => 'GetMtUserStatus', + 'description' => '', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'alimt:GetMtUserStatus', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], - [ - [ - 'errorCode' => 'System.subNotPermission', - 'errorMessage' => 'The sub-account is not authorized to perform the operation.', + ], + [ + 'apiName' => 'OcrPluginService', + 'description' => '', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'alimt:OcrPluginService', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], - [ - [ - 'errorCode' => 'System.AccountNotActivated', - 'errorMessage' => 'The account has not activated the service.', + ], + [ + 'apiName' => 'DoCheckResource', + 'description' => '', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'alimt:DoCheckResource', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], - [ - [ - 'errorCode' => 'System.SubServiceFailed', - 'errorMessage' => 'Sub-account service failed.', + ], + [ + 'apiName' => 'DeleteIntervention', + 'description' => '', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'alimt:DeleteIntervention', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], - [ - [ - 'errorCode' => 'System.TranslateServiceCallFailed', - 'errorMessage' => 'Failed to call the translation service.', + ], + [ + 'apiName' => 'GetAsyncTranslate', + 'description' => '', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'alimt:GetAsyncTranslate', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], - [ - [ - 'errorCode' => 'System.AccountNotActivatedOrInArrears', - 'errorMessage' => 'The service is not activated or the account has an outstanding balance.', + ], + [ + 'apiName' => 'GetOssInfo', + 'description' => '', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'alimt:GetOssInfo', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], - 199 => [ - [ - 'errorCode' => 'System.unknownError', - 'errorMessage' => 'An unknown error occurred.', + ], + [ + 'apiName' => 'GetImageTranslate', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'alimt:GetImageTranslate', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"ok\\",\\n \\"RequestId\\": \\"DC2DCCC9-C3DF-4F59-8D8E-78185729F16D\\",\\n \\"Data\\": {\\n \\"DuplicateWords\\": \\"hi\\",\\n \\"ContainCoreClasses\\": \\"true\\",\\n \\"WordCount\\": \\"10\\",\\n \\"LanguageQualityScore\\": \\"2\\",\\n \\"AllUppercaseWords\\": \\"Boy\\",\\n \\"OverLengthLimit\\": \\"100\\",\\n \\"DisableWords\\": \\"baba\\",\\n \\"NoFirstUppercaseList\\": \\"no\\",\\n \\"TotalScore\\": \\"3\\",\\n \\"WordSpelledCorrectError\\": \\"ahk\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"DC2DCCC9-C3DF-4F59-8D8E-78185729F16D\\nok\\n\\n no\\n true\\n baba\\n 10\\n 100\\n 3\\n hi\\n ahk\\n Boy\\n 2\\n\\n200","errorExample":""}]', - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', - ], - 'GetTitleGenerate' => [ - 'summary' => 'GetTitleGenerate', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ - [ - 'AK' => [], + [ + 'apiName' => 'GetBatchTranslate', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'alimt:GetBatchTranslate', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], + ], ], ], - 'operationType' => 'read', - 'deprecated' => false, - 'systemTags' => [ + [ + 'apiName' => 'GetDetectLanguage', + 'description' => '', 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', + 'ramAction' => [ + 'action' => 'alimt:GetDetectLanguage', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], ], - 'parameters' => [ - [ - 'name' => 'Title', - 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '10pcs 80ml Kitchen Disposable', + [ + 'apiName' => 'UpdateInterventionData', + 'description' => '', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'alimt:UpdateInterventionData', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], - [ - 'name' => 'Language', - 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'en', + ], + [ + 'apiName' => 'TranslateECommerce', + 'description' => '', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'alimt:TranslateECommerce', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], - [ - 'name' => 'Platform', - 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'ae', + ], + [ + 'apiName' => 'DeleteInterventionData', + 'description' => '', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'alimt:DeleteInterventionData', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], - [ - 'name' => 'CategoryId', - 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '127896018', + ], + [ + 'apiName' => 'Translate', + 'description' => '', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'alimt:Translate', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], - [ - 'name' => 'HotWords', - 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'None,Plastic', + ], + [ + 'apiName' => 'FindInterventionData', + 'description' => '', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'alimt:FindInterventionData', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], - [ - 'name' => 'Attributes', - 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => '{2:"None",10:"Plastic"}', + ], + [ + 'apiName' => 'OpenAlimtService', + 'description' => '', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'alimt:OpenAlimtService', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], - [ - 'name' => 'Extra', - 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => '{ "product_id": "1", "platform": "ae" }', + ], + [ + 'apiName' => 'GetImageDiagnose', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'alimt:GetImageDiagnose', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'Code' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Message' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'ok', - ], - 'RequestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'DC2DCCC9-C3DF-4F59-8D8E-78185729F16D', - ], - 'Data' => [ - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'Titles' => [ - 'description' => '', - 'type' => 'string', - 'example' => '10pcs 80ml Kitchen Disposable Plastic Sauce Cup Pot Chutney Container', - ], - ], - ], - ], + [ + 'apiName' => 'GetImageTranslateTask', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'alimt:GetImageTranslateTask', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], - 'errorCodes' => [ - 101 => [ - [ - 'errorCode' => 'System.RequestTimeOut', - 'errorMessage' => 'The request has timed out.', + [ + 'apiName' => 'TranslateBatchProduct', + 'description' => '', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'alimt:TranslateBatchProduct', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], - [ - [ - 'errorCode' => 'System.Error', - 'errorMessage' => 'A system error occurred.', + ], + [ + 'apiName' => 'DomainSearch', + 'description' => '', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'alimt:DomainSearch', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], - [ - [ - 'errorCode' => 'System.UrlDecodingError', - 'errorMessage' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.', + ], + [ + 'apiName' => 'TranslateBySPInner', + 'description' => '', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'alimt:TranslateBySPInner', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], - [ - [ - 'errorCode' => 'System.ParameterError', - 'errorMessage' => 'Some required parameters are missing.', + ], + [ + 'apiName' => 'TranslateProduct', + 'description' => '', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'alimt:TranslateProduct', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], - [ - [ - 'errorCode' => 'System.LanguageNotSupported', - 'errorMessage' => 'The specified language pair is not supported.', + ], + [ + 'apiName' => 'GetDetectLanguageVpc', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'alimt:GetDetectLanguageVpc', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], - [ - [ - 'errorCode' => 'System.LanguageDetectError', - 'errorMessage' => 'An error occurred while detecting the language.', + ], + [ + 'apiName' => 'FindInterventionTask', + 'description' => '', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'alimt:FindInterventionTask', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], - [ - [ - 'errorCode' => 'System.TranslateError', - 'errorMessage' => 'An error occurred while translating.', + ], + [ + 'apiName' => 'QueryOpenStatusLingjie', + 'description' => '', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'alimt:QueryOpenStatusLingjie', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], - [ - [ - 'errorCode' => 'System.StringTooLong', - 'errorMessage' => 'The maximum length of the specified string is exceeded.', + ], + [ + 'apiName' => 'TranslateImageBatch', + 'description' => '', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'alimt:TranslateImageBatch', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], - [ - [ - 'errorCode' => 'System.subNotPermission', - 'errorMessage' => 'The sub-account is not authorized to perform the operation.', + ], + [ + 'apiName' => 'SaveInterventionData', + 'description' => '', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'alimt:SaveInterventionData', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], - [ - [ - 'errorCode' => 'System.AccountNotActivated', - 'errorMessage' => 'The account has not activated the service.', + ], + [ + 'apiName' => 'TranslateImage', + 'description' => '', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'alimt:TranslateImage', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], - [ - [ - 'errorCode' => 'System.SubServiceFailed', - 'errorMessage' => 'Sub-account service failed.', + ], + [ + 'apiName' => 'TranslateSearch', + 'description' => '', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'alimt:TranslateSearch', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], - [ - [ - 'errorCode' => 'System.TranslateServiceCallFailed', - 'errorMessage' => 'Failed to call the translation service.', + ], + [ + 'apiName' => 'QueryApiInvokeCountLingjie', + 'description' => '', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'alimt:QueryApiInvokeCountLingjie', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], - [ - [ - 'errorCode' => 'System.AccountNotActivatedOrInArrears', - 'errorMessage' => 'The service is not activated or the account has an outstanding balance.', + ], + [ + 'apiName' => 'GetTranslateImageBatchResult', + 'description' => '', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'alimt:GetTranslateImageBatchResult', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], - 199 => [ - [ - 'errorCode' => 'System.unknownError', - 'errorMessage' => 'An unknown error occurred.', + ], + [ + 'apiName' => 'GetUser', + 'description' => '', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'alimt:GetUser', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"ok\\",\\n \\"RequestId\\": \\"DC2DCCC9-C3DF-4F59-8D8E-78185729F16D\\",\\n \\"Data\\": {\\n \\"Titles\\": \\"10pcs 80ml Kitchen Disposable Plastic Sauce Cup Pot Chutney Container\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"DC2DCCC9-C3DF-4F59-8D8E-78185729F16D\\nok\\n\\n 10pcs 80ml Kitchen Disposable Plastic Sauce Cup Pot Chutney Container\\n\\n200","errorExample":""}]', - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', - ], - 'GetTitleIntelligence' => [ - 'summary' => 'GetTitleIntelligence', - 'methods' => [ - 'post', - 'get', + [ + 'apiName' => 'QueryOpenStatusDetailLingjie', + 'description' => '', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'alimt:QueryOpenStatusDetailLingjie', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], ], - 'schemes' => [ - 'http', - 'https', + [ + 'apiName' => 'RecommendProject', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'alimt:RecommendProject', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], ], - 'security' => [ - [ - 'AK' => [], - ], - ], - 'operationType' => 'read', - 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - 'tenantRelevance' => 'publicInformation', - ], - 'parameters' => [ - [ - 'name' => 'Platform', - 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'ae', - ], - ], - [ - 'name' => 'Extra', - 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => '{"product_id":"1212"}', - ], - ], - [ - 'name' => 'CatLevelThreeId', - 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - 'maximum' => '99999999999', - 'minimum' => '0', - 'example' => '111', - ], - ], - [ - 'name' => 'CatLevelTwoId', - 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - 'maximum' => '99999999999', - 'minimum' => '0', - 'example' => '222', - ], - ], - [ - 'name' => 'Keywords', - 'in' => 'formData', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'docRequired' => true, - 'example' => 'hello,apple', - ], - ], - ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'Code' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Message' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'success', - ], - 'RequestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'D70487B4-8891-4D24-BB64-8788E53671FB', - ], - 'Data' => [ - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'Titles' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'Custom Hello Kitty PVC Cartoon Apple for Home Garden Complete Apple Bath Shower', - ], - ], - ], - ], + [ + 'apiName' => 'TranslateInterventionDataReview', + 'description' => '', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'alimt:TranslateInterventionDataReview', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], - 'errorCodes' => [ - 101 => [ - [ - 'errorCode' => 'System.RequestTimeOut', - 'errorMessage' => 'The request has timed out.', - ], - ], - [ - [ - 'errorCode' => 'System.Error', - 'errorMessage' => 'A system error occurred.', - ], - ], - [ - [ - 'errorCode' => 'System.UrlDecodingError', - 'errorMessage' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.', - ], - ], - [ - [ - 'errorCode' => 'System.ParameterError', - 'errorMessage' => 'Some required parameters are missing.', - ], - ], - [ - [ - 'errorCode' => 'System.LanguageNotSupported', - 'errorMessage' => 'The specified language pair is not supported.', - ], - ], - [ - [ - 'errorCode' => 'System.LanguageDetectError', - 'errorMessage' => 'An error occurred while detecting the language.', - ], - ], - [ - [ - 'errorCode' => 'System.TranslateError', - 'errorMessage' => 'An error occurred while translating.', - ], - ], - [ - [ - 'errorCode' => 'System.StringTooLong', - 'errorMessage' => 'The maximum length of the specified string is exceeded.', - ], - ], - [ - [ - 'errorCode' => 'System.subNotPermission', - 'errorMessage' => 'The sub-account is not authorized to perform the operation.', - ], - ], - [ - [ - 'errorCode' => 'System.AccountNotActivated', - 'errorMessage' => 'The account has not activated the service.', - ], - ], - [ - [ - 'errorCode' => 'System.SubServiceFailed', - 'errorMessage' => 'Sub-account service failed.', - ], - ], - [ - [ - 'errorCode' => 'System.TranslateServiceCallFailed', - 'errorMessage' => 'Failed to call the translation service.', - ], - ], - [ - [ - 'errorCode' => 'System.AccountNotActivatedOrInArrears', - 'errorMessage' => 'The service is not activated or the account has an outstanding balance.', - ], - ], - 199 => [ - [ - 'errorCode' => 'System.unknownError', - 'errorMessage' => 'An unknown error occurred.', + [ + 'apiName' => 'CreateInterventionTask', + 'description' => '', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'alimt:CreateInterventionTask', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"D70487B4-8891-4D24-BB64-8788E53671FB\\",\\n \\"Data\\": {\\n \\"Titles\\": \\"Custom Hello Kitty PVC Cartoon Apple for Home Garden Complete Apple Bath Shower\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"D70487B4-8891-4D24-BB64-8788E53671FB\\nsuccess\\n\\n Custom Hello Kitty PVC Cartoon Apple for Home Garden Complete Apple Bath Shower\\n\\n200","errorExample":""}]', - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', - ], - 'OpenAlimtService' => [ - 'summary' => '开通服务', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ - [ - 'AK' => [], - ], - [ - 'APP' => [], - ], - [ - 'PrivateKey' => [], - ], - [ - 'BearerToken' => [], - ], - ], - 'operationType' => 'readAndWrite', - 'deprecated' => false, - 'systemTags' => [ + [ + 'apiName' => 'GetTranslatedFile', + 'description' => '', 'operationType' => 'none', - 'riskType' => 'none', - 'chargeType' => 'free', - 'tenantRelevance' => 'publicInformation', - ], - 'parameters' => [ - [ - 'name' => 'Type', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'id', + 'ramAction' => [ + 'action' => 'alimt:GetTranslatedFile', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'OrderId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '123456', - ], - 'RequestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'xxxx-xxxxx', - ], - ], + [ + 'apiName' => 'GetTitleDiagnose', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'alimt:GetTitleDiagnose', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], - 'errorCodes' => [ - 400 => [ - [ - 'errorCode' => 'ORDER.OPEND', - 'errorMessage' => 'You have already open the service. Go to the console to start using it', - ], - [ - 'errorCode' => 'PRICEING.PLAN.RESULT.NOT.FOUND', - 'errorMessage' => 'The order is not found', + [ + 'apiName' => 'SubmitTranslateFile', + 'description' => '', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'alimt:SubmitTranslateFile', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"OrderId\\": \\"123456\\",\\n \\"RequestId\\": \\"xxxx-xxxxx\\"\\n}","errorExample":""}]', - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', - ], - 'GetTranslateReport' => [ - 'summary' => 'GetTranslateReport', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ - [ - 'AK' => [], + [ + 'apiName' => 'TranslateBySP', + 'description' => '', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'alimt:TranslateBySP', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], + ], ], ], - 'operationType' => 'read', - 'systemTags' => [ + [ + 'apiName' => 'GetTitleIntelligence', + 'description' => '', 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - 'tenantRelevance' => 'publicInformation', - ], - 'parameters' => [ - [ - 'name' => 'BeginTime', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '2021-03-01 00:00:00', - ], - ], - [ - 'name' => 'EndTime', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '2021-03-01 23:59:59', - ], - ], - [ - 'name' => 'ApiName', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '', - ], - ], - [ - 'name' => 'Group', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '', + 'ramAction' => [ + 'action' => 'alimt:GetTitleIntelligence', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'Code' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Message' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'success', - ], - 'Data' => [ - 'description' => '', - 'type' => 'string', - 'example' => '{"result":[{"time":"2021-10-21 00:00:00","total":100}]}', - ], - 'RequestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '86D18195-D89C-4C8C-9DC4-5FCE789CE6D5', - ], - ], + [ + 'apiName' => 'TranslateGeneral', + 'description' => '', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'alimt:TranslateGeneral', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], - 'errorCodes' => [ - 109 => [ - [ - 'errorCode' => '10009', - 'errorMessage' => '子账号没有权限', - ], - ], - [ - [ - 'errorCode' => '10010', - 'errorMessage' => '账号没有开通服务', - ], - ], - [ - [ - 'errorCode' => '10011', - 'errorMessage' => '子账号服务失败', - ], - ], - [ - [ - 'errorCode' => '10012', - 'errorMessage' => '翻译服务调用失败', - ], - ], - [ - [ - 'errorCode' => '10013', - 'errorMessage' => '账号服务没有开通或者欠费', - ], - ], - 199 => [ - [ - 'errorCode' => '19999', - 'errorMessage' => 'An unknown error occurred.', + [ + 'apiName' => 'TranslateGeneralVpc', + 'description' => '', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'alimt:TranslateGeneralVpc', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"Data\\": \\"{\\\\\\"result\\\\\\":[{\\\\\\"time\\\\\\":\\\\\\"2021-10-21 00:00:00\\\\\\",\\\\\\"total\\\\\\":100}]}\\",\\n \\"RequestId\\": \\"86D18195-D89C-4C8C-9DC4-5FCE789CE6D5\\"\\n}","errorExample":""},{"type":"xml","example":"\\n 200\\n success\\n {\\"result\\":[{\\"time\\":\\"2021-10-21 00:00:00\\",\\"total\\":100}]}\\n 86D18195-D89C-4C8C-9DC4-5FCE789CE6D5\\n","errorExample":""}]', - ], - 'TranslateSearch' => [ - 'summary' => '搜索翻译', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], - 'security' => [ - [ - 'AK' => [], - ], - ], - 'operationType' => 'readAndWrite', - 'deprecated' => false, - 'systemTags' => [ + [ + 'apiName' => 'DolphinDomainSearch', + 'description' => '', 'operationType' => 'none', - 'riskType' => 'none', - 'chargeType' => 'free', - 'tenantRelevance' => 'publicInformation', - ], - 'parameters' => [ - [ - 'name' => 'FormatType', - 'in' => 'formData', - 'allowEmptyValue' => false, - 'schema' => [ - 'title' => '幂等参数', - 'type' => 'string', - 'required' => true, - 'example' => 'text', + 'ramAction' => [ + 'action' => 'alimt:DolphinDomainSearch', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], - [ - 'name' => 'SourceLanguage', - 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'example' => 'zh', + ], + [ + 'apiName' => 'RecommendCompany', + 'description' => '', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'alimt:RecommendCompany', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], - [ - 'name' => 'TargetLanguage', - 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'example' => 'en', + ], + [ + 'apiName' => 'CreateAsyncTranslate', + 'description' => '', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'alimt:CreateAsyncTranslate', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], - [ - 'name' => 'Scene', - 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'example' => 'query', + ], + [ + 'apiName' => 'TranslateCertificate', + 'description' => '', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'alimt:TranslateCertificate', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], - [ - 'name' => 'SourceText', - 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'example' => '今天天气不错', + ], + [ + 'apiName' => 'GetTitleGenerate', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'alimt:GetTitleGenerate', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'title' => 'Schema of Response', - 'type' => 'object', - 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'type' => 'string', - ], - 'Code' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], - 'Data' => [ - 'type' => 'object', - 'properties' => [ - 'Translated' => [ - 'type' => 'string', - ], - ], - ], - ], + [ + 'apiName' => 'CreateDocTranslateTask', + 'description' => '', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'alimt:CreateDocTranslateTask', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], - 'errorCodes' => [ - 400 => [ - [ - 'errorCode' => 'IdempotentParameterMismatch', - 'errorMessage' => 'The request uses the same client token as a previous, but non-identical request. Do not reuse a client token with different requests, unless the requests are identical.', + [ + 'apiName' => 'GetBatchTranslateByVPC', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'alimt:GetBatchTranslateByVPC', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => null, - ], - ], - 'endpoints' => [ - [ - 'regionId' => 'me-central-1', - 'endpoint' => 'mt.me-central-1.aliyuncs.com', - ], - [ - 'regionId' => 'ap-southeast-1', - 'endpoint' => 'mt.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou', - 'endpoint' => 'mt.cn-hangzhou.aliyuncs.com', - ], - [ - 'regionId' => 'ap-northeast-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'ap-northeast-2-pop', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'ap-south-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'ap-southeast-2', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'ap-southeast-3', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-beijing', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-beijing-finance-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-beijing-finance-pop', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-beijing-gov-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-beijing-nu16-b01', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-chengdu', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-edge-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-fujian', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-haidian-cm12-c01', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou-bj-b01', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou-finance', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou-internal-prod-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou-internal-test-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou-internal-test-2', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou-internal-test-3', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou-test-306', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hongkong', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hongkong-finance-pop', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-huhehaote', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-north-2-gov-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-qingdao', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-qingdao-nebula', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shanghai', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shanghai-et15-b01', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shanghai-et2-b01', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shanghai-finance-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shanghai-inner', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shanghai-internal-test-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shenzhen', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shenzhen-finance-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shenzhen-inner', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shenzhen-st4-d01', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shenzhen-su18-b01', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-wuhan', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-yushanfang', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-zhangbei-na61-b01', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-zhangjiakou', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-zhangjiakou-na62-a01', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'cn-zhengzhou-nebula-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'eu-central-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'eu-west-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'eu-west-1-oxs', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'me-east-1', - 'endpoint' => 'alimt.me-east-1.aliyuncs.com', - ], - [ - 'regionId' => 'rus-west-1-pop', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'us-east-1', - 'endpoint' => 'mt.aliyuncs.com', - ], - [ - 'regionId' => 'us-west-1', - 'endpoint' => 'mt.aliyuncs.com', + [ + 'apiName' => 'QueryApiInvokeQpsLingjie', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'alimt:QueryApiInvokeQpsLingjie', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], + ], + 'resourceTypes' => [ + ['validationType' => 'always', 'resourceType' => 'QueryResourcePackage', 'arn' => 'acs:alimt::{#accountId}:queryresourcepackage/*'], + ['validationType' => 'always', 'resourceType' => 'CreateImageTranslateTask', 'arn' => 'acs:alimt:*:{#accountId}:*'], + ['validationType' => 'always', 'resourceType' => 'GetTranslateReport', 'arn' => 'acs:alimt:*:{#accountId}:*'], + ['validationType' => 'always', 'resourceType' => 'GetImageTranslate', 'arn' => 'acs:alimt:*:{#accountId}:*'], + ['validationType' => 'always', 'resourceType' => 'UpdateInterventionData', 'arn' => 'acs:alimt::{#accountId}:updateinterventiondata/*'], + ['validationType' => 'always', 'resourceType' => 'DeleteInterventionData', 'arn' => 'acs:alimt::{#accountId}:deleteinterventiondata/*'], + ['validationType' => 'always', 'resourceType' => 'OpenAlimtService', 'arn' => 'acs:alimt:*:{#accountId}:*'], + ['validationType' => 'always', 'resourceType' => 'GetImageDiagnose', 'arn' => 'acs:alimt::{#accountId}:getimagediagnose/*'], + ['validationType' => 'always', 'resourceType' => 'GetImageTranslateTask', 'arn' => 'acs:alimt:*:{#accountId}:*'], + ['validationType' => 'always', 'resourceType' => 'TranslateBatchProduct', 'arn' => 'acs:alimt::{#accountId}:translatebatchproduct/*'], + ['validationType' => 'always', 'resourceType' => 'FindInterventionTask', 'arn' => 'acs:alimt::{#accountId}:findinterventiontask/*'], + ['validationType' => 'always', 'resourceType' => 'TranslateImageBatch', 'arn' => 'acs:alimt:*:{#accountId}:*'], + ['validationType' => 'always', 'resourceType' => 'SaveInterventionData', 'arn' => 'acs:alimt::{#accountId}:saveinterventiondata/*'], + ['validationType' => 'always', 'resourceType' => 'GetTranslateImageBatchResult', 'arn' => 'acs:alimt:*:{#accountId}:*'], + ['validationType' => 'always', 'resourceType' => 'GetUser', 'arn' => 'acs:alimt:*:{#accountId}:*'], + ['validationType' => 'always', 'resourceType' => 'TranslateInterventionDataReview', 'arn' => 'acs:alimt:{#regionId}:{#accountId}:translateinterventiondatareview/*'], + ['validationType' => 'always', 'resourceType' => 'GetTitleDiagnose', 'arn' => 'acs:alimt:*:{#accountId}:*'], + ['validationType' => 'always', 'resourceType' => 'GetTitleIntelligence', 'arn' => 'acs:alimt:*:{#accountId}:*'], + ['validationType' => 'always', 'resourceType' => 'Unrestricted', 'arn' => 'acs:alimt:*:{#accountid}:*'], + ['validationType' => 'always', 'resourceType' => 'GetTitleGenerate', 'arn' => 'acs:alimt:*:{#accountId}:*'], ], ], ]; -- cgit v1.2.3