summaryrefslogtreecommitdiff
path: root/data/anytrans/2025-07-07/api-docs.php
diff options
context:
space:
mode:
Diffstat (limited to 'data/anytrans/2025-07-07/api-docs.php')
-rw-r--r--data/anytrans/2025-07-07/api-docs.php1239
1 files changed, 305 insertions, 934 deletions
diff --git a/data/anytrans/2025-07-07/api-docs.php b/data/anytrans/2025-07-07/api-docs.php
index aad7bc6..0a42065 100644
--- a/data/anytrans/2025-07-07/api-docs.php
+++ b/data/anytrans/2025-07-07/api-docs.php
@@ -1,82 +1,58 @@
<?php return [
'version' => '1.0',
- 'info' => [
- 'style' => 'ROA',
- 'product' => 'AnyTrans',
- 'version' => '2025-07-07',
- ],
+ 'info' => ['style' => 'ROA', 'product' => 'AnyTrans', 'version' => '2025-07-07'],
'components' => [
'schemas' => [],
],
'apis' => [
- 'TextTranslate' => [
- 'path' => '/anytrans/translate/text',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'BatchTranslate' => [
+ 'path' => '/anytrans/translate/batch',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'workspaceId',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
- ],
- [
- 'name' => 'format',
- 'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
'name' => 'sourceLanguage',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
'name' => 'targetLanguage',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
'name' => 'text',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'style' => 'json',
+ 'schema' => ['type' => 'object', 'required' => true],
],
[
'name' => 'scene',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
+ ],
+ [
+ 'name' => 'format',
+ 'in' => 'formData',
+ 'schema' => ['type' => 'string', 'required' => false],
+ ],
+ [
+ 'name' => 'appName',
+ 'in' => 'formData',
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'ext',
@@ -93,32 +69,16 @@
'type' => 'object',
'required' => false,
'properties' => [
- 'src' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'tgt' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'tgt' => ['type' => 'string', 'required' => false],
+ 'src' => ['type' => 'string', 'required' => false],
],
],
],
- 'domainHint' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'agent' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'domainHint' => ['type' => 'string', 'required' => false],
'sensitives' => [
'type' => 'array',
'required' => false,
- 'items' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'items' => ['type' => 'string', 'required' => false],
],
'terminologies' => [
'type' => 'array',
@@ -127,14 +87,8 @@
'type' => 'object',
'required' => false,
'properties' => [
- 'src' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'tgt' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'tgt' => ['type' => 'string', 'required' => false],
+ 'src' => ['type' => 'string', 'required' => false],
],
],
],
@@ -142,282 +96,167 @@
'type' => 'object',
'required' => false,
'properties' => [
- 'toLower' => [
- 'type' => 'boolean',
- 'required' => false,
- ],
- 'toUpper' => [
- 'type' => 'boolean',
- 'required' => false,
- ],
- 'toTitle' => [
- 'type' => 'boolean',
- 'required' => false,
- ],
+ 'toLower' => ['type' => 'boolean', 'required' => false],
+ 'toUpper' => ['type' => 'boolean', 'required' => false],
+ 'toTitle' => ['type' => 'boolean', 'required' => false],
],
],
'config' => [
'type' => 'object',
'required' => false,
'properties' => [
- 'skipCsiCheck' => [
- 'type' => 'boolean',
- 'required' => false,
- ],
+ 'skipCsiCheck' => ['type' => 'boolean', 'required' => false],
],
],
- 'prefix' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'paramMap' => [
- 'type' => 'any',
- 'required' => false,
- ],
+ 'paramMap' => ['type' => 'any', 'required' => false],
+ 'langDetect' => ['type' => 'boolean'],
],
],
],
],
],
- 'BatchTranslate' => [
- 'path' => '/anytrans/translate/batch',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'GetDocTranslateTask' => [
+ 'path' => '/anytrans/translate/doc/get',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'workspaceId',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
- 'name' => 'sourceLanguage',
+ 'name' => 'taskId',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
+ ],
+ ],
+ 'GetHtmlTranslateTask' => [
+ 'path' => '/anytrans/translate/html/get',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
+ 'security' => [
[
- 'name' => 'targetLanguage',
- 'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'AK' => [],
],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'deprecated' => false,
+ 'parameters' => [
[
- 'name' => 'text',
+ 'name' => 'workspaceId',
'in' => 'formData',
- 'style' => 'json',
- 'schema' => [
- 'type' => 'object',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
- 'name' => 'scene',
+ 'name' => 'taskId',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
+ ],
+ ],
+ 'GetImageTranslateTask' => [
+ 'path' => '/anytrans/translate/image/get',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
+ 'security' => [
[
- 'name' => 'format',
- 'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'AK' => [],
],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'deprecated' => false,
+ 'parameters' => [
[
- 'name' => 'appName',
+ 'name' => 'workspaceId',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
- 'name' => 'ext',
+ 'name' => 'taskId',
'in' => 'formData',
- 'style' => 'json',
- 'schema' => [
- 'type' => 'object',
- 'required' => false,
- 'properties' => [
- 'examples' => [
- 'type' => 'array',
- 'required' => false,
- 'items' => [
- 'type' => 'object',
- 'required' => false,
- 'properties' => [
- 'tgt' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'src' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- ],
- ],
- 'domainHint' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'sensitives' => [
- 'type' => 'array',
- 'required' => false,
- 'items' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- 'terminologies' => [
- 'type' => 'array',
- 'required' => false,
- 'items' => [
- 'type' => 'object',
- 'required' => false,
- 'properties' => [
- 'tgt' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'src' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- ],
- ],
- 'textTransform' => [
- 'type' => 'object',
- 'required' => false,
- 'properties' => [
- 'toLower' => [
- 'type' => 'boolean',
- 'required' => false,
- ],
- 'toUpper' => [
- 'type' => 'boolean',
- 'required' => false,
- ],
- 'toTitle' => [
- 'type' => 'boolean',
- 'required' => false,
- ],
- ],
- ],
- 'config' => [
- 'type' => 'object',
- 'required' => false,
- 'properties' => [
- 'skipCsiCheck' => [
- 'type' => 'boolean',
- 'required' => false,
- ],
- ],
- ],
- 'paramMap' => [
- 'type' => 'any',
- 'required' => false,
- ],
- ],
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
],
],
- 'SubmitLongTextTranslateTask' => [
- 'path' => '/anytrans/translate/longText/submit',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'GetLongTextTranslateTask' => [
+ 'path' => '/anytrans/translate/longText/get',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'deprecated' => false,
+ 'parameters' => [
+ [
+ 'name' => 'workspaceId',
+ 'in' => 'formData',
+ 'schema' => ['type' => 'string', 'required' => true],
+ ],
+ [
+ 'name' => 'taskId',
+ 'in' => 'formData',
+ 'schema' => ['type' => 'string', 'required' => false],
+ ],
],
- 'produces' => [
- 'application/json',
+ ],
+ 'SubmitDocTranslateTask' => [
+ 'path' => '/anytrans/translate/doc/submit',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'workspaceId',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
'name' => 'format',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'sourceLanguage',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
'name' => 'targetLanguage',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'text',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
'name' => 'scene',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
'name' => 'ext',
@@ -427,36 +266,7 @@
'type' => 'object',
'required' => false,
'properties' => [
- 'examples' => [
- 'type' => 'array',
- 'required' => false,
- 'items' => [
- 'type' => 'object',
- 'required' => false,
- 'properties' => [
- 'tgt' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'src' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- ],
- ],
- 'domainHint' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'sensitives' => [
- 'type' => 'array',
- 'required' => false,
- 'items' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
+ 'domainHint' => ['type' => 'string', 'required' => false],
'terminologies' => [
'type' => 'array',
'required' => false,
@@ -464,32 +274,8 @@
'type' => 'object',
'required' => false,
'properties' => [
- 'tgt' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'src' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- ],
- ],
- 'textTransform' => [
- 'type' => 'object',
- 'required' => false,
- 'properties' => [
- 'toLower' => [
- 'type' => 'boolean',
- 'required' => false,
- ],
- 'toUpper' => [
- 'type' => 'boolean',
- 'required' => false,
- ],
- 'toTitle' => [
- 'type' => 'boolean',
- 'required' => false,
+ 'tgt' => ['type' => 'string', 'required' => false],
+ 'src' => ['type' => 'string', 'required' => false],
],
],
],
@@ -497,128 +283,59 @@
'type' => 'object',
'required' => false,
'properties' => [
- 'skipCsiCheck' => [
- 'type' => 'boolean',
- 'required' => false,
- ],
+ 'skipImgTrans' => ['type' => 'boolean', 'required' => false],
+ 'isBilingual' => ['type' => 'boolean', 'required' => false],
],
],
- 'paramMap' => [
- 'type' => 'any',
- 'required' => false,
- ],
+ 'paramMap' => ['type' => 'any', 'required' => false],
+ 'trackingData' => ['type' => 'string', 'required' => false],
],
],
],
],
],
- 'GetLongTextTranslateTask' => [
- 'path' => '/anytrans/translate/longText/get',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'https',
- ],
- 'security' => [
- [
- 'AK' => [],
- ],
- ],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'deprecated' => false,
- 'parameters' => [
- [
- 'name' => 'workspaceId',
- 'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
- ],
- [
- 'name' => 'taskId',
- 'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- ],
- ],
'SubmitHtmlTranslateTask' => [
'path' => '/anytrans/translate/html/submit',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'workspaceId',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
'name' => 'format',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'sourceLanguage',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'targetLanguage',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'text',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'scene',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'ext',
@@ -635,28 +352,16 @@
'type' => 'object',
'required' => false,
'properties' => [
- 'tgt' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'src' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'tgt' => ['type' => 'string', 'required' => false],
+ 'src' => ['type' => 'string', 'required' => false],
],
],
],
- 'domainHint' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'domainHint' => ['type' => 'string', 'required' => false],
'sensitives' => [
'type' => 'array',
'required' => false,
- 'items' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'items' => ['type' => 'string', 'required' => false],
],
'terminologies' => [
'type' => 'array',
@@ -665,14 +370,8 @@
'type' => 'object',
'required' => false,
'properties' => [
- 'tgt' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'src' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'tgt' => ['type' => 'string', 'required' => false],
+ 'src' => ['type' => 'string', 'required' => false],
],
],
],
@@ -680,142 +379,73 @@
'type' => 'object',
'required' => false,
'properties' => [
- 'toLower' => [
- 'type' => 'boolean',
- 'required' => false,
- ],
- 'toUpper' => [
- 'type' => 'boolean',
- 'required' => false,
- ],
- 'toTitle' => [
- 'type' => 'boolean',
- 'required' => false,
- ],
+ 'toLower' => ['type' => 'boolean', 'required' => false],
+ 'toUpper' => ['type' => 'boolean', 'required' => false],
+ 'toTitle' => ['type' => 'boolean', 'required' => false],
],
],
'config' => [
'type' => 'object',
'required' => false,
'properties' => [
- 'skipCsiCheck' => [
- 'type' => 'boolean',
- 'required' => false,
- ],
- 'callbackUrl' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'skipCsiCheck' => ['type' => 'boolean', 'required' => false],
+ 'callbackUrl' => ['type' => 'string', 'required' => false],
],
],
- 'paramMap' => [
- 'type' => 'any',
- 'required' => false,
- ],
+ 'paramMap' => ['type' => 'any', 'required' => false],
+ 'trackingData' => ['type' => 'string', 'required' => false],
],
],
],
],
],
- 'GetHtmlTranslateTask' => [
- 'path' => '/anytrans/translate/html/get',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'SubmitImageTranslateTask' => [
+ 'path' => '/anytrans/translate/image/submit',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'workspaceId',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
- ],
- [
- 'name' => 'taskId',
- 'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- ],
- ],
- 'TermEdit' => [
- 'path' => '/anytrans/translate/intervene/edit',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'https',
- ],
- 'security' => [
- [
- 'AK' => [],
+ 'schema' => ['type' => 'string', 'required' => true],
],
- ],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'deprecated' => false,
- 'parameters' => [
[
- 'name' => 'workspaceId',
+ 'name' => 'format',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
- 'name' => 'action',
+ 'name' => 'sourceLanguage',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
- 'name' => 'sourceLanguage',
+ 'name' => 'targetLanguage',
'in' => 'formData',
+ 'style' => 'json',
'schema' => [
- 'type' => 'string',
+ 'type' => 'array',
'required' => true,
+ 'items' => ['type' => 'string', 'required' => false],
],
],
[
- 'name' => 'targetLanguage',
+ 'name' => 'text',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
'name' => 'scene',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
'name' => 'ext',
@@ -823,229 +453,96 @@
'style' => 'json',
'schema' => [
'type' => 'object',
- 'required' => true,
+ 'required' => false,
'properties' => [
- 'terms' => [
+ 'examples' => [
'type' => 'array',
- 'required' => true,
+ 'required' => false,
'items' => [
'type' => 'object',
- 'required' => true,
+ 'required' => false,
'properties' => [
- 'termId' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'src' => [
- 'type' => 'string',
- 'required' => true,
- ],
- 'tgt' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'tgt' => ['type' => 'string', 'required' => false],
+ 'src' => ['type' => 'string', 'required' => false],
],
],
],
- 'paramMap' => [
- 'type' => 'any',
+ 'domainHint' => ['type' => 'string', 'required' => false],
+ 'sensitives' => [
+ 'type' => 'array',
'required' => false,
+ 'items' => ['type' => 'string', 'required' => false],
],
- ],
- ],
- ],
- ],
- ],
- 'TermQuery' => [
- 'path' => '/anytrans/translate/intervene/query',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'https',
- ],
- 'security' => [
- [
- 'AK' => [],
- ],
- ],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'deprecated' => false,
- 'parameters' => [
- [
- 'name' => 'workspaceId',
- 'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
- ],
- [
- 'name' => 'sourceLanguage',
- 'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
- ],
- [
- 'name' => 'targetLanguage',
- 'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
- ],
- [
- 'name' => 'scene',
- 'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
- ],
- [
- 'name' => 'text',
- 'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'ext',
- 'in' => 'formData',
- 'style' => 'json',
- 'schema' => [
- 'type' => 'object',
- 'required' => false,
- 'properties' => [
- 'paramMap' => [
- 'type' => 'any',
+ 'terminologies' => [
+ 'type' => 'array',
+ 'required' => false,
+ 'items' => [
+ 'type' => 'object',
+ 'required' => false,
+ 'properties' => [
+ 'tgt' => ['type' => 'string', 'required' => false],
+ 'src' => ['type' => 'string', 'required' => false],
+ ],
+ ],
+ ],
+ 'textTransform' => [
+ 'type' => 'object',
'required' => false,
+ 'properties' => [
+ 'toLower' => ['type' => 'boolean', 'required' => false],
+ 'toUpper' => ['type' => 'boolean', 'required' => false],
+ 'toTitle' => ['type' => 'boolean', 'required' => false],
+ ],
],
+ 'paramMap' => ['type' => 'any', 'required' => false],
+ 'trackingData' => ['type' => 'string', 'required' => false],
],
],
],
],
],
- 'GetImageTranslateTask' => [
- 'path' => '/anytrans/translate/image/get',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'https',
- ],
- 'security' => [
- [
- 'AK' => [],
- ],
- ],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'deprecated' => false,
- 'parameters' => [
- [
- 'name' => 'workspaceId',
- 'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
- ],
- [
- 'name' => 'taskId',
- 'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
- ],
- ],
- ],
- 'SubmitImageTranslateTask' => [
- 'path' => '/anytrans/translate/image/submit',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'SubmitLongTextTranslateTask' => [
+ 'path' => '/anytrans/translate/longText/submit',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'workspaceId',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
'name' => 'format',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'sourceLanguage',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'targetLanguage',
'in' => 'formData',
- 'style' => 'json',
- 'schema' => [
- 'type' => 'array',
- 'required' => true,
- 'items' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'text',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'scene',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'ext',
@@ -1062,28 +559,16 @@
'type' => 'object',
'required' => false,
'properties' => [
- 'tgt' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'src' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'tgt' => ['type' => 'string', 'required' => false],
+ 'src' => ['type' => 'string', 'required' => false],
],
],
],
- 'domainHint' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'domainHint' => ['type' => 'string', 'required' => false],
'sensitives' => [
'type' => 'array',
'required' => false,
- 'items' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'items' => ['type' => 'string', 'required' => false],
],
'terminologies' => [
'type' => 'array',
@@ -1092,14 +577,8 @@
'type' => 'object',
'required' => false,
'properties' => [
- 'tgt' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'src' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'tgt' => ['type' => 'string', 'required' => false],
+ 'src' => ['type' => 'string', 'required' => false],
],
],
],
@@ -1107,97 +586,62 @@
'type' => 'object',
'required' => false,
'properties' => [
- 'toLower' => [
- 'type' => 'boolean',
- 'required' => false,
- ],
- 'toUpper' => [
- 'type' => 'boolean',
- 'required' => false,
- ],
- 'toTitle' => [
- 'type' => 'boolean',
- 'required' => false,
- ],
+ 'toLower' => ['type' => 'boolean', 'required' => false],
+ 'toUpper' => ['type' => 'boolean', 'required' => false],
+ 'toTitle' => ['type' => 'boolean', 'required' => false],
],
],
- 'paramMap' => [
- 'type' => 'any',
+ 'config' => [
+ 'type' => 'object',
'required' => false,
+ 'properties' => [
+ 'skipCsiCheck' => ['type' => 'boolean', 'required' => false],
+ ],
],
+ 'paramMap' => ['type' => 'any', 'required' => false],
+ 'trackingData' => ['type' => 'string', 'required' => false],
],
],
],
],
],
- 'SubmitDocTranslateTask' => [
- 'path' => '/anytrans/translate/doc/submit',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'TermEdit' => [
+ 'path' => '/anytrans/translate/intervene/edit',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'workspaceId',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
- 'name' => 'format',
+ 'name' => 'action',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
'name' => 'sourceLanguage',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
'name' => 'targetLanguage',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'text',
- 'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
'name' => 'scene',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
'name' => 'ext',
@@ -1205,165 +649,121 @@
'style' => 'json',
'schema' => [
'type' => 'object',
- 'required' => false,
+ 'required' => true,
'properties' => [
- 'domainHint' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'terminologies' => [
+ 'terms' => [
'type' => 'array',
- 'required' => false,
+ 'required' => true,
'items' => [
'type' => 'object',
- 'required' => false,
+ 'required' => true,
'properties' => [
- 'tgt' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'src' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- ],
- ],
- 'config' => [
- 'type' => 'object',
- 'required' => false,
- 'properties' => [
- 'skipImgTrans' => [
- 'type' => 'boolean',
- 'required' => false,
+ 'termId' => ['type' => 'string', 'required' => false],
+ 'src' => ['type' => 'string', 'required' => true],
+ 'tgt' => ['type' => 'string', 'required' => true],
],
],
],
- 'paramMap' => [
- 'type' => 'any',
- 'required' => false,
- ],
+ 'paramMap' => ['type' => 'any', 'required' => false],
],
],
],
],
],
- 'GetDocTranslateTask' => [
- 'path' => '/anytrans/translate/doc/get',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'TermQuery' => [
+ 'path' => '/anytrans/translate/intervene/query',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'workspaceId',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
- 'name' => 'taskId',
+ 'name' => 'sourceLanguage',
'in' => 'formData',
+ 'schema' => ['type' => 'string', 'required' => true],
+ ],
+ [
+ 'name' => 'targetLanguage',
+ 'in' => 'formData',
+ 'schema' => ['type' => 'string', 'required' => true],
+ ],
+ [
+ 'name' => 'scene',
+ 'in' => 'formData',
+ 'schema' => ['type' => 'string', 'required' => true],
+ ],
+ [
+ 'name' => 'text',
+ 'in' => 'formData',
+ 'schema' => ['type' => 'string', 'required' => false],
+ ],
+ [
+ 'name' => 'ext',
+ 'in' => 'formData',
+ 'style' => 'json',
'schema' => [
- 'type' => 'string',
- 'required' => true,
+ 'type' => 'object',
+ 'required' => false,
+ 'properties' => [
+ 'paramMap' => ['type' => 'any', 'required' => false],
+ ],
],
],
],
],
- 'BatchTranslateForHtml' => [
- 'path' => '/anytrans/translate/batchForHtml',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'TextTranslate' => [
+ 'path' => '/anytrans/translate/text',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'workspaceId',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
+ ],
+ [
+ 'name' => 'format',
+ 'in' => 'formData',
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'sourceLanguage',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
'name' => 'targetLanguage',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
'name' => 'text',
'in' => 'formData',
- 'style' => 'json',
- 'schema' => [
- 'type' => 'object',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
'name' => 'scene',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'format',
- 'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'appName',
- 'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'ext',
@@ -1380,28 +780,17 @@
'type' => 'object',
'required' => false,
'properties' => [
- 'tgt' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'src' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'src' => ['type' => 'string', 'required' => false],
+ 'tgt' => ['type' => 'string', 'required' => false],
],
],
],
- 'domainHint' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'domainHint' => ['type' => 'string', 'required' => false],
+ 'agent' => ['type' => 'string', 'required' => false],
'sensitives' => [
'type' => 'array',
'required' => false,
- 'items' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'items' => ['type' => 'string', 'required' => false],
],
'terminologies' => [
'type' => 'array',
@@ -1410,14 +799,8 @@
'type' => 'object',
'required' => false,
'properties' => [
- 'tgt' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'src' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'src' => ['type' => 'string', 'required' => false],
+ 'tgt' => ['type' => 'string', 'required' => false],
],
],
],
@@ -1425,30 +808,21 @@
'type' => 'object',
'required' => false,
'properties' => [
- 'toLower' => [
- 'type' => 'boolean',
- 'required' => false,
- ],
- 'toUpper' => [
- 'type' => 'boolean',
- 'required' => false,
- ],
- 'toTitle' => [
- 'type' => 'boolean',
- 'required' => false,
- ],
+ 'toLower' => ['type' => 'boolean', 'required' => false],
+ 'toUpper' => ['type' => 'boolean', 'required' => false],
+ 'toTitle' => ['type' => 'boolean', 'required' => false],
],
],
'config' => [
'type' => 'object',
'required' => false,
'properties' => [
- 'skipCsiCheck' => [
- 'type' => 'boolean',
- 'required' => false,
- ],
+ 'skipCsiCheck' => ['type' => 'boolean', 'required' => false],
],
],
+ 'prefix' => ['type' => 'string', 'required' => false],
+ 'paramMap' => ['type' => 'any', 'required' => false],
+ 'langDetect' => ['type' => 'boolean'],
],
],
],
@@ -1456,9 +830,6 @@
],
],
'endpoints' => [
- [
- 'regionId' => 'cn-beijing',
- 'endpoint' => 'anytrans.cn-beijing.aliyuncs.com',
- ],
+ ['regionId' => 'cn-beijing', 'regionName' => '华北2(北京)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'anytrans.cn-beijing.aliyuncs.com', 'endpoint' => 'anytrans.cn-beijing.aliyuncs.com', 'vpc' => 'anytrans-vpc.cn-beijing.aliyuncs.com'],
],
];