@alicloud/aidge20260428 5.3.1 → 5.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (127) hide show
  1. package/dist/client.d.ts +584 -520
  2. package/dist/client.js +587 -520
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/AssetOptimizeLiteRequest.d.ts +10 -10
  5. package/dist/models/AssetOptimizeLiteResponseBody.d.ts +5 -5
  6. package/dist/models/AssetOptimizeProRequest.d.ts +6 -6
  7. package/dist/models/AssetOptimizeProResponseBody.d.ts +4 -4
  8. package/dist/models/AssetOptimizeProShrinkRequest.d.ts +6 -6
  9. package/dist/models/CategoryAttributeMatchRequest.d.ts +7 -7
  10. package/dist/models/CategoryAttributeMatchResponseBody.d.ts +7 -7
  11. package/dist/models/CategoryAttributeMatchShrinkRequest.d.ts +7 -7
  12. package/dist/models/CategoryMatchRequest.d.ts +8 -8
  13. package/dist/models/CategoryMatchResponseBody.d.ts +10 -10
  14. package/dist/models/DiduiAreaDeductionRequest.d.ts +1 -1
  15. package/dist/models/DiduiAreaDeductionResponseBody.d.ts +1 -1
  16. package/dist/models/DiduiAreaDeductionShrinkRequest.d.ts +1 -1
  17. package/dist/models/DocumentTranslateRequest.d.ts +6 -2
  18. package/dist/models/DocumentTranslateRequest.js.map +1 -1
  19. package/dist/models/DocumentTranslateResponseBody.d.ts +4 -3
  20. package/dist/models/DocumentTranslateResponseBody.js.map +1 -1
  21. package/dist/models/ImageCroppingRequest.d.ts +3 -3
  22. package/dist/models/ImageCroppingResponseBody.d.ts +10 -8
  23. package/dist/models/ImageCroppingResponseBody.js.map +1 -1
  24. package/dist/models/ImageMattingRequest.d.ts +4 -3
  25. package/dist/models/ImageMattingRequest.js.map +1 -1
  26. package/dist/models/ImageMattingResponseBody.d.ts +1 -0
  27. package/dist/models/ImageMattingResponseBody.js.map +1 -1
  28. package/dist/models/ImageRecognitionRequest.d.ts +4 -4
  29. package/dist/models/ImageRecognitionResponseBody.d.ts +2 -2
  30. package/dist/models/ImageRecognitionShrinkRequest.d.ts +4 -4
  31. package/dist/models/ImageRemoveRequest.d.ts +24 -17
  32. package/dist/models/ImageRemoveRequest.js.map +1 -1
  33. package/dist/models/ImageRemoveResponseBody.d.ts +9 -8
  34. package/dist/models/ImageRemoveResponseBody.js.map +1 -1
  35. package/dist/models/ImageRemoveShrinkRequest.d.ts +24 -17
  36. package/dist/models/ImageRemoveShrinkRequest.js.map +1 -1
  37. package/dist/models/ImageTranslationPlusResponseBody.d.ts +3 -1
  38. package/dist/models/ImageTranslationPlusResponseBody.js.map +1 -1
  39. package/dist/models/ImageTranslationProRequest.d.ts +14 -8
  40. package/dist/models/ImageTranslationProRequest.js.map +1 -1
  41. package/dist/models/ImageTranslationProResponseBody.d.ts +19 -19
  42. package/dist/models/ImageTranslationStandardRequest.d.ts +9 -6
  43. package/dist/models/ImageTranslationStandardRequest.js.map +1 -1
  44. package/dist/models/ImageTranslationStandardResponseBody.d.ts +8 -8
  45. package/dist/models/LanguageDetectRequest.d.ts +10 -2
  46. package/dist/models/LanguageDetectRequest.js +2 -0
  47. package/dist/models/LanguageDetectRequest.js.map +1 -1
  48. package/dist/models/LanguageDetectResponseBody.d.ts +4 -6
  49. package/dist/models/LanguageDetectResponseBody.js.map +1 -1
  50. package/dist/models/MaterialInspectionRequest.d.ts +5 -5
  51. package/dist/models/MaterialInspectionResponseBody.d.ts +14 -7
  52. package/dist/models/MaterialInspectionResponseBody.js.map +1 -1
  53. package/dist/models/MerchandisePlacementDetectionRequest.d.ts +4 -4
  54. package/dist/models/MerchandisePlacementDetectionResponseBody.d.ts +8 -8
  55. package/dist/models/PackageWeightSizeCheckRequest.d.ts +2 -2
  56. package/dist/models/PackageWeightSizeCheckResponseBody.d.ts +6 -6
  57. package/dist/models/QueryAsyncTaskResultResponseBody.d.ts +5 -5
  58. package/dist/models/SizeChartDetectResponseBody.d.ts +1 -0
  59. package/dist/models/SizeChartDetectResponseBody.js.map +1 -1
  60. package/dist/models/SizeChartExtractRequest.d.ts +2 -2
  61. package/dist/models/SizeChartExtractResponseBody.d.ts +1 -1
  62. package/dist/models/SizeChartExtractShrinkRequest.d.ts +2 -2
  63. package/dist/models/TextCorrectRequest.d.ts +2 -2
  64. package/dist/models/TextCorrectResponseBody.d.ts +6 -6
  65. package/dist/models/TextTranslateRequest.d.ts +15 -6
  66. package/dist/models/TextTranslateRequest.js.map +1 -1
  67. package/dist/models/TextTranslateResponseBody.d.ts +4 -4
  68. package/dist/models/TextTranslateShrinkRequest.d.ts +15 -6
  69. package/dist/models/TextTranslateShrinkRequest.js.map +1 -1
  70. package/dist/models/VideoTranslationResponseBody.d.ts +3 -3
  71. package/dist/models/VisionFlowRequest.d.ts +16 -16
  72. package/dist/models/VisionFlowResponseBody.d.ts +4 -4
  73. package/dist/models/VisionFlowShrinkRequest.d.ts +16 -16
  74. package/package.json +1 -1
  75. package/src/client.ts +588 -520
  76. package/src/models/AssetOptimizeLiteRequest.ts +10 -10
  77. package/src/models/AssetOptimizeLiteResponseBody.ts +5 -5
  78. package/src/models/AssetOptimizeProRequest.ts +6 -6
  79. package/src/models/AssetOptimizeProResponseBody.ts +4 -4
  80. package/src/models/AssetOptimizeProShrinkRequest.ts +6 -6
  81. package/src/models/CategoryAttributeMatchRequest.ts +7 -7
  82. package/src/models/CategoryAttributeMatchResponseBody.ts +7 -7
  83. package/src/models/CategoryAttributeMatchShrinkRequest.ts +7 -7
  84. package/src/models/CategoryMatchRequest.ts +8 -8
  85. package/src/models/CategoryMatchResponseBody.ts +10 -10
  86. package/src/models/DiduiAreaDeductionRequest.ts +1 -1
  87. package/src/models/DiduiAreaDeductionResponseBody.ts +1 -1
  88. package/src/models/DiduiAreaDeductionShrinkRequest.ts +1 -1
  89. package/src/models/DocumentTranslateRequest.ts +6 -2
  90. package/src/models/DocumentTranslateResponseBody.ts +4 -3
  91. package/src/models/ImageCroppingRequest.ts +3 -3
  92. package/src/models/ImageCroppingResponseBody.ts +10 -8
  93. package/src/models/ImageMattingRequest.ts +4 -3
  94. package/src/models/ImageMattingResponseBody.ts +1 -0
  95. package/src/models/ImageRecognitionRequest.ts +4 -4
  96. package/src/models/ImageRecognitionResponseBody.ts +2 -2
  97. package/src/models/ImageRecognitionShrinkRequest.ts +4 -4
  98. package/src/models/ImageRemoveRequest.ts +24 -17
  99. package/src/models/ImageRemoveResponseBody.ts +9 -8
  100. package/src/models/ImageRemoveShrinkRequest.ts +24 -17
  101. package/src/models/ImageTranslationPlusResponseBody.ts +3 -1
  102. package/src/models/ImageTranslationProRequest.ts +14 -8
  103. package/src/models/ImageTranslationProResponseBody.ts +19 -19
  104. package/src/models/ImageTranslationStandardRequest.ts +9 -6
  105. package/src/models/ImageTranslationStandardResponseBody.ts +8 -8
  106. package/src/models/LanguageDetectRequest.ts +12 -2
  107. package/src/models/LanguageDetectResponseBody.ts +4 -6
  108. package/src/models/MaterialInspectionRequest.ts +5 -5
  109. package/src/models/MaterialInspectionResponseBody.ts +14 -7
  110. package/src/models/MerchandisePlacementDetectionRequest.ts +4 -4
  111. package/src/models/MerchandisePlacementDetectionResponseBody.ts +8 -8
  112. package/src/models/PackageWeightSizeCheckRequest.ts +2 -2
  113. package/src/models/PackageWeightSizeCheckResponseBody.ts +6 -6
  114. package/src/models/QueryAsyncTaskResultResponseBody.ts +5 -5
  115. package/src/models/SizeChartDetectResponseBody.ts +1 -0
  116. package/src/models/SizeChartExtractRequest.ts +2 -2
  117. package/src/models/SizeChartExtractResponseBody.ts +1 -1
  118. package/src/models/SizeChartExtractShrinkRequest.ts +2 -2
  119. package/src/models/TextCorrectRequest.ts +2 -2
  120. package/src/models/TextCorrectResponseBody.ts +6 -6
  121. package/src/models/TextTranslateRequest.ts +15 -6
  122. package/src/models/TextTranslateResponseBody.ts +4 -4
  123. package/src/models/TextTranslateShrinkRequest.ts +15 -6
  124. package/src/models/VideoTranslationResponseBody.ts +3 -3
  125. package/src/models/VisionFlowRequest.ts +16 -16
  126. package/src/models/VisionFlowResponseBody.ts +4 -4
  127. package/src/models/VisionFlowShrinkRequest.ts +16 -16
@@ -13,7 +13,7 @@ export class QueryAsyncTaskResultResponseBodyData extends $dara.Model {
13
13
  result?: string;
14
14
  /**
15
15
  * @remarks
16
- * The status of the task.
16
+ * The task status.
17
17
  *
18
18
  * @example
19
19
  * COMPLETED
@@ -21,7 +21,7 @@ export class QueryAsyncTaskResultResponseBodyData extends $dara.Model {
21
21
  status?: string;
22
22
  /**
23
23
  * @remarks
24
- * The ID of the downstream task.
24
+ * The downstream task ID.
25
25
  *
26
26
  * @example
27
27
  * task-xxxxx
@@ -73,7 +73,7 @@ export class QueryAsyncTaskResultResponseBody extends $dara.Model {
73
73
  code?: string;
74
74
  /**
75
75
  * @remarks
76
- * The asynchronous node result.
76
+ * The asynchronous task result.
77
77
  */
78
78
  data?: QueryAsyncTaskResultResponseBodyData;
79
79
  /**
@@ -94,8 +94,8 @@ export class QueryAsyncTaskResultResponseBody extends $dara.Model {
94
94
  requestId?: string;
95
95
  /**
96
96
  * @remarks
97
- * Indicates whether the call was successful. Valid values:
98
- * - true: The call was successful.
97
+ * Indicates whether the call is successful. Valid values:
98
+ * - true: The call is successful.
99
99
  * - false: The call failed.
100
100
  *
101
101
  * @example
@@ -78,6 +78,7 @@ export class SizeChartDetectResponseBody extends $dara.Model {
78
78
  /**
79
79
  * @remarks
80
80
  * Indicates whether the call is successful. Valid values:
81
+ *
81
82
  * - true: The call is successful.
82
83
  * - false: The call failed.
83
84
  *
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class SizeChartExtractRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The list of column names to extract, such as Size, Bust, and Length.
8
+ * The list of column names (such as Size, Bust, Length).
9
9
  *
10
10
  * @example
11
11
  * ["Size","Bust","Length"]
@@ -23,7 +23,7 @@ export class SizeChartExtractRequest extends $dara.Model {
23
23
  imageUrl?: string;
24
24
  /**
25
25
  * @remarks
26
- * The language model that controls the output language, such as en and cn.
26
+ * The language model for output (such as en, cn). Set this parameter to cn for Chinese or en for English. If not specified, the original language is preserved.
27
27
  *
28
28
  * @example
29
29
  * en
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class SizeChartExtractResponseBodyData extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The asynchronous task ID, which is used to query the result later.
8
+ * The asynchronous task ID, used to query the result later.
9
9
  *
10
10
  * @example
11
11
  * task-xxxxx
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class SizeChartExtractShrinkRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The list of column names to extract, such as Size, Bust, and Length.
8
+ * The list of column names (such as Size, Bust, Length).
9
9
  *
10
10
  * @example
11
11
  * ["Size","Bust","Length"]
@@ -23,7 +23,7 @@ export class SizeChartExtractShrinkRequest extends $dara.Model {
23
23
  imageUrl?: string;
24
24
  /**
25
25
  * @remarks
26
- * The language model that controls the output language, such as en and cn.
26
+ * The language model for output (such as en, cn). Set this parameter to cn for Chinese or en for English. If not specified, the original language is preserved.
27
27
  *
28
28
  * @example
29
29
  * en
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class TextCorrectRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * Source language code. Required. You can pass "auto" for automatic language detection. Supports 14 languages.
8
+ * The source language code. This parameter is required. You can set this parameter to auto for automatic language detection. 14 languages are supported.
9
9
  *
10
10
  * This parameter is required.
11
11
  *
@@ -15,7 +15,7 @@ export class TextCorrectRequest extends $dara.Model {
15
15
  sourceLanguage?: string;
16
16
  /**
17
17
  * @remarks
18
- * Text to be corrected. Required.
18
+ * The text to correct. This parameter is required.
19
19
  *
20
20
  * This parameter is required.
21
21
  *
@@ -13,7 +13,7 @@ export class TextCorrectResponseBodyData extends $dara.Model {
13
13
  correctedText?: string;
14
14
  /**
15
15
  * @remarks
16
- * Usage information, including the number of input characters.
16
+ * The usage information, including the number of input characters.
17
17
  *
18
18
  * @example
19
19
  * {"InputCharacterCount":9}
@@ -48,7 +48,7 @@ export class TextCorrectResponseBodyData extends $dara.Model {
48
48
  export class TextCorrectResponseBody extends $dara.Model {
49
49
  /**
50
50
  * @remarks
51
- * Response code. Returns "success" during normal calls.
51
+ * The response code. The value "success" is returned if the call is successful.
52
52
  *
53
53
  * @example
54
54
  * success
@@ -56,12 +56,12 @@ export class TextCorrectResponseBody extends $dara.Model {
56
56
  code?: string;
57
57
  /**
58
58
  * @remarks
59
- * Intelligent error correction result data.
59
+ * The intelligent correction result data.
60
60
  */
61
61
  data?: TextCorrectResponseBodyData;
62
62
  /**
63
63
  * @remarks
64
- * Error message. Returns "Success" during normal calls. Returns specific error information during exceptions, such as "The parameters contain sensitive information. Please try a different input."
64
+ * The error message. The value "Success" is returned if the call is successful. A specific error message is returned if an exception occurs, such as "The parameters contain sensitive information. Try other input."
65
65
  *
66
66
  * @example
67
67
  * Success
@@ -69,7 +69,7 @@ export class TextCorrectResponseBody extends $dara.Model {
69
69
  message?: string;
70
70
  /**
71
71
  * @remarks
72
- * Request ID, used to identify a unique request call.
72
+ * The request ID, which uniquely identifies the request.
73
73
  *
74
74
  * @example
75
75
  * 32882AD0-50D1-1D90-A221-3987325EC03E
@@ -77,7 +77,7 @@ export class TextCorrectResponseBody extends $dara.Model {
77
77
  requestId?: string;
78
78
  /**
79
79
  * @remarks
80
- * Whether the call was successful. true indicates success, false indicates failure.
80
+ * Indicates whether the call is successful. A value of true indicates success. A value of false indicates failure.
81
81
  *
82
82
  * @example
83
83
  * true
@@ -5,7 +5,9 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class TextTranslateRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The business scenario identifier. This parameter is optional. Valid values: e-commerce-title, e-commerce-description, e-commerce-chat, e-commerce-cpv, novel, game. If not specified or invalid, the general translation strategy is used by default.
8
+ * This field represents your identity and facilitates communication for various issues.
9
+ * ● If you are an internal Alibaba organization, pass a value based on your actual scenario, such as BU name-product or BU name-chat.
10
+ * ● If you are an external Alibaba partner, pass the full name of your company. This company name must be consistent with the company name used when you registered your Alibaba Cloud account.
9
11
  *
10
12
  * @example
11
13
  * MyCompany-Chat
@@ -21,7 +23,7 @@ export class TextTranslateRequest extends $dara.Model {
21
23
  formatType?: string;
22
24
  /**
23
25
  * @remarks
24
- * The intervention glossary ID. This parameter is optional. The glossary must be created separately in the console, and its ID must be provided. If the glossary ID is empty, the translation result is not modified.
26
+ * The intervention glossary ID. This parameter is optional. The glossary must be created separately in the console, and its ID must be provided. If the glossary ID is empty, the translation results are not modified.
25
27
  *
26
28
  * @example
27
29
  * glossary_1
@@ -29,7 +31,7 @@ export class TextTranslateRequest extends $dara.Model {
29
31
  glossary?: string;
30
32
  /**
31
33
  * @remarks
32
- * The source language code. This parameter is optional. If not specified, the language is automatically detected. You can pass auto for language detection.
34
+ * The source language code. If not specified, the language is automatically detected. This parameter is optional. You can pass auto for language detection. For supported language pairs, see [Language pair mapping table](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
33
35
  *
34
36
  * @example
35
37
  * auto
@@ -37,7 +39,7 @@ export class TextTranslateRequest extends $dara.Model {
37
39
  sourceLanguage?: string;
38
40
  /**
39
41
  * @remarks
40
- * The list of texts to translate. This parameter is required. The total character length cannot exceed 50,000, and the list length cannot exceed 50.
42
+ * The list of texts to be translated. This parameter is required. The total character length cannot exceed 50,000, and the list length cannot exceed 50.
41
43
  *
42
44
  * This parameter is required.
43
45
  *
@@ -47,7 +49,7 @@ export class TextTranslateRequest extends $dara.Model {
47
49
  sourceTextList?: string[];
48
50
  /**
49
51
  * @remarks
50
- * The target language code. This parameter is required. More than 100 language directions are supported. For details, refer to the supported language directions list.
52
+ * The target language code. This parameter is required. For supported language pairs, see [Language pair mapping table](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
51
53
  *
52
54
  * This parameter is required.
53
55
  *
@@ -57,7 +59,14 @@ export class TextTranslateRequest extends $dara.Model {
57
59
  targetLanguage?: string;
58
60
  /**
59
61
  * @remarks
60
- * The format of the translation text. **html** (web page format. This setting processes both the source text and translated text in HTML format) or **text** (text format. This setting processes both the source text and translated result as plain text without format processing).
62
+ * The business scenario identifier. You can pass only one of the following values. When specified, the translation engine invokes the corresponding industry terminology library and style strategy to produce translations that better fit the industry. If this field is not specified or an invalid value is passed, the general translation strategy is used.
63
+ * Valid values:
64
+ * ● e-commerce-title: cross-border e-commerce product title translation
65
+ * ● e-commerce-description: cross-border e-commerce product description translation
66
+ * ● e-commerce-chat: cross-border e-commerce conversation translation
67
+ * ● e-commerce-cpv: cross-border e-commerce product CPV attribute translation
68
+ * ● novel: novel translation
69
+ * ● game: game translation
61
70
  *
62
71
  * @example
63
72
  * e-commerce-title
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class TextTranslateResponseBodyDataTranslations extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The source text character count.
8
+ * The number of characters in the source text.
9
9
  *
10
10
  * @example
11
11
  * 11
@@ -24,7 +24,7 @@ export class TextTranslateResponseBodyDataTranslations extends $dara.Model {
24
24
  * The translated text.
25
25
  *
26
26
  * @example
27
- * Hello World.
27
+ * Hello World
28
28
  */
29
29
  translatedText?: string;
30
30
  static names(): { [key: string]: string } {
@@ -98,7 +98,7 @@ export class TextTranslateResponseBodyData extends $dara.Model {
98
98
  export class TextTranslateResponseBody extends $dara.Model {
99
99
  /**
100
100
  * @remarks
101
- * The response code. Returns "success" for normal calls.
101
+ * The response code. Returns "success" for successful calls.
102
102
  *
103
103
  * @example
104
104
  * success
@@ -111,7 +111,7 @@ export class TextTranslateResponseBody extends $dara.Model {
111
111
  data?: TextTranslateResponseBodyData;
112
112
  /**
113
113
  * @remarks
114
- * The error message. Returns "Success" for normal calls. Returns specific error information for exceptions, such as "The parameters contain sensitive information. Try other input."
114
+ * The error message. Returns "Success" for successful calls. Returns specific error information for exceptions, such as "The parameters contain sensitive information. Try other input."
115
115
  *
116
116
  * @example
117
117
  * Success
@@ -5,7 +5,9 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class TextTranslateShrinkRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The business scenario identifier. This parameter is optional. Valid values: e-commerce-title, e-commerce-description, e-commerce-chat, e-commerce-cpv, novel, game. If not specified or invalid, the general translation strategy is used by default.
8
+ * This field represents your identity and facilitates communication for various issues.
9
+ * ● If you are an internal Alibaba organization, pass a value based on your actual scenario, such as BU name-product or BU name-chat.
10
+ * ● If you are an external Alibaba partner, pass the full name of your company. This company name must be consistent with the company name used when you registered your Alibaba Cloud account.
9
11
  *
10
12
  * @example
11
13
  * MyCompany-Chat
@@ -21,7 +23,7 @@ export class TextTranslateShrinkRequest extends $dara.Model {
21
23
  formatType?: string;
22
24
  /**
23
25
  * @remarks
24
- * The intervention glossary ID. This parameter is optional. The glossary must be created separately in the console, and its ID must be provided. If the glossary ID is empty, the translation result is not modified.
26
+ * The intervention glossary ID. This parameter is optional. The glossary must be created separately in the console, and its ID must be provided. If the glossary ID is empty, the translation results are not modified.
25
27
  *
26
28
  * @example
27
29
  * glossary_1
@@ -29,7 +31,7 @@ export class TextTranslateShrinkRequest extends $dara.Model {
29
31
  glossary?: string;
30
32
  /**
31
33
  * @remarks
32
- * The source language code. This parameter is optional. If not specified, the language is automatically detected. You can pass auto for language detection.
34
+ * The source language code. If not specified, the language is automatically detected. This parameter is optional. You can pass auto for language detection. For supported language pairs, see [Language pair mapping table](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
33
35
  *
34
36
  * @example
35
37
  * auto
@@ -37,7 +39,7 @@ export class TextTranslateShrinkRequest extends $dara.Model {
37
39
  sourceLanguage?: string;
38
40
  /**
39
41
  * @remarks
40
- * The list of texts to translate. This parameter is required. The total character length cannot exceed 50,000, and the list length cannot exceed 50.
42
+ * The list of texts to be translated. This parameter is required. The total character length cannot exceed 50,000, and the list length cannot exceed 50.
41
43
  *
42
44
  * This parameter is required.
43
45
  *
@@ -47,7 +49,7 @@ export class TextTranslateShrinkRequest extends $dara.Model {
47
49
  sourceTextListShrink?: string;
48
50
  /**
49
51
  * @remarks
50
- * The target language code. This parameter is required. More than 100 language directions are supported. For details, refer to the supported language directions list.
52
+ * The target language code. This parameter is required. For supported language pairs, see [Language pair mapping table](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
51
53
  *
52
54
  * This parameter is required.
53
55
  *
@@ -57,7 +59,14 @@ export class TextTranslateShrinkRequest extends $dara.Model {
57
59
  targetLanguage?: string;
58
60
  /**
59
61
  * @remarks
60
- * The format of the translation text. **html** (web page format. This setting processes both the source text and translated text in HTML format) or **text** (text format. This setting processes both the source text and translated result as plain text without format processing).
62
+ * The business scenario identifier. You can pass only one of the following values. When specified, the translation engine invokes the corresponding industry terminology library and style strategy to produce translations that better fit the industry. If this field is not specified or an invalid value is passed, the general translation strategy is used.
63
+ * Valid values:
64
+ * ● e-commerce-title: cross-border e-commerce product title translation
65
+ * ● e-commerce-description: cross-border e-commerce product description translation
66
+ * ● e-commerce-chat: cross-border e-commerce conversation translation
67
+ * ● e-commerce-cpv: cross-border e-commerce product CPV attribute translation
68
+ * ● novel: novel translation
69
+ * ● game: game translation
61
70
  *
62
71
  * @example
63
72
  * e-commerce-title
@@ -43,12 +43,12 @@ export class VideoTranslationResponseBody extends $dara.Model {
43
43
  code?: string;
44
44
  /**
45
45
  * @remarks
46
- * The asynchronous task submit status.
46
+ * The asynchronous task submit result.
47
47
  */
48
48
  data?: VideoTranslationResponseBodyData;
49
49
  /**
50
50
  * @remarks
51
- * The description message.
51
+ * The description.
52
52
  *
53
53
  * @example
54
54
  * Translation processing
@@ -64,7 +64,7 @@ export class VideoTranslationResponseBody extends $dara.Model {
64
64
  requestId?: string;
65
65
  /**
66
66
  * @remarks
67
- * Indicates whether the call is successful. Valid values: true: The call is successful. false: The call failed.
67
+ * Indicates whether the call is successful. Valid values: true: The call is successful. false: The call fails.
68
68
  *
69
69
  * @example
70
70
  * True
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class VisionFlowRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The AI capabilities to apply (1 = intelligent element detection, 2 = intelligent matting, 3 = intelligent removal, 4 = Image Translation Pro, 5 = intelligent cropping, 6 = HD upscaling). Multiple selections allowed.
8
+ * The AI capabilities to apply (1=Intelligent Element Detection, 2=Intelligent Matting, 3=Intelligent Removal, 4=Image Translation Pro, 5=Intelligent Cropping, 6=HD Upscaling). Multiple selections allowed.
9
9
  *
10
10
  * This parameter is required.
11
11
  *
@@ -15,7 +15,7 @@ export class VisionFlowRequest extends $dara.Model {
15
15
  ability?: number[];
16
16
  /**
17
17
  * @remarks
18
- * The background type of the returned image. Valid values: WHITE_BACKGROUND (white background) and TRANSPARENT (transparent background). Required when the intelligent matting capability is selected.
18
+ * The background type of the output image. Valid values: WHITE_BACKGROUND (white background) and TRANSPARENT (transparent background). Required when the Intelligent Matting capability is selected.
19
19
  *
20
20
  * @example
21
21
  * WHITE_BACKGROUND
@@ -23,7 +23,7 @@ export class VisionFlowRequest extends $dara.Model {
23
23
  backGroundType?: string;
24
24
  /**
25
25
  * @remarks
26
- * The intervention glossary ID. Optional. Create a glossary separately in the console and provide its ID. If left empty, translation results are not modified.
26
+ * The glossary ID. Optional. Create the glossary separately in the console and provide its ID. If empty, translation results are not modified.
27
27
  *
28
28
  * @example
29
29
  * glossary_1
@@ -31,7 +31,7 @@ export class VisionFlowRequest extends $dara.Model {
31
31
  glossary?: string;
32
32
  /**
33
33
  * @remarks
34
- * The URL of the image to process. Required. The resolution must be greater than 256 × 256, the long side must not exceed 1920 pixels, and the short side must not exceed 1080 pixels. The file size must not exceed 5 MB. Supported formats: png, jpeg, jpg, bmp, and webp.
34
+ * The URL of the image to process. Required. Resolution must be greater than 256×256, long side no greater than 1920 pixels, short side no greater than 1080 pixels. File size must not exceed 5 MB. Supported formats: png, jpeg, jpg, bmp, webp.
35
35
  *
36
36
  * This parameter is required.
37
37
  *
@@ -49,7 +49,7 @@ export class VisionFlowRequest extends $dara.Model {
49
49
  includingProductArea?: boolean;
50
50
  /**
51
51
  * @remarks
52
- * Specifies whether images with the detected elements proceed to subsequent processing. A value of true indicates that images containing the elements proceed to subsequent processing. A value of false indicates that they do not. Required when the intelligent element detection capability is selected.
52
+ * Specifies whether images containing the specified elements proceed to subsequent processing. A value of true indicates that images with the specified elements proceed to subsequent processing. A value of false indicates that images without the specified elements proceed. Required when the Intelligent Element Detection capability is selected.
53
53
  *
54
54
  * @example
55
55
  * true
@@ -57,7 +57,7 @@ export class VisionFlowRequest extends $dara.Model {
57
57
  isFilter?: boolean;
58
58
  /**
59
59
  * @remarks
60
- * The specific removal area in RLE format. Optional. If provided, this parameter takes priority and the ObjectRemoveElements and NonobjectRemoveElements parameters are ignored.
60
+ * The specific removal area in RLE format. Optional. If provided, this takes priority and the ObjectRemoveElements and NonobjectRemoveElements parameters are ignored.
61
61
  *
62
62
  * @example
63
63
  * 474556 160 475356 160
@@ -65,7 +65,7 @@ export class VisionFlowRequest extends $dara.Model {
65
65
  mask?: string;
66
66
  /**
67
67
  * @remarks
68
- * The elements to detect on the non-subject area of the image (1 = watermark, 2 = logo, 3 = text, 4 = text-bearing color block). Multiple selections allowed. When the intelligent element detection capability is selected, at least one of NonobjectDetectElements and ObjectDetectElements is required.
68
+ * The elements to detect on the non-subject area of the image (1=Watermark, 2=Logo, 3=Text, 4=Text-bearing color block). Multiple selections allowed. When the Intelligent Element Detection capability is selected, at least one of NonobjectDetectElements or ObjectDetectElements is required.
69
69
  *
70
70
  * @example
71
71
  * [1,2,3]
@@ -73,7 +73,7 @@ export class VisionFlowRequest extends $dara.Model {
73
73
  nonobjectDetectElements?: number[];
74
74
  /**
75
75
  * @remarks
76
- * The elements to remove from the non-subject area of the image (1 = transparent text block, 2 = specific name, 3 = text, 4 = overlay patch). Multiple selections allowed. When the intelligent removal capability is selected, at least one of NonobjectRemoveElements and ObjectRemoveElements is required.
76
+ * The elements to remove from the non-subject area of the image (1=Transparent text block, 2=Specific name, 3=Text, 4=Ad patch). Multiple selections allowed. When the Intelligent Removal capability is selected, at least one of NonobjectRemoveElements or ObjectRemoveElements is required.
77
77
  *
78
78
  * @example
79
79
  * [1,2,4]
@@ -81,7 +81,7 @@ export class VisionFlowRequest extends $dara.Model {
81
81
  nonobjectRemoveElements?: number[];
82
82
  /**
83
83
  * @remarks
84
- * The elements to detect on the image subject (1 = watermark, 2 = logo, 3 = text, 4 = text-bearing color block). Multiple selections allowed. When the intelligent element detection capability is selected, at least one of ObjectDetectElements and NonobjectDetectElements is required.
84
+ * The elements to detect on the image subject (1=Watermark, 2=Logo, 3=Text, 4=Text-bearing color block). Multiple selections allowed. When the Intelligent Element Detection capability is selected, at least one of ObjectDetectElements or NonobjectDetectElements is required.
85
85
  *
86
86
  * @example
87
87
  * [1,2,3,4]
@@ -89,7 +89,7 @@ export class VisionFlowRequest extends $dara.Model {
89
89
  objectDetectElements?: number[];
90
90
  /**
91
91
  * @remarks
92
- * The elements to remove from the image subject (1 = transparent text block, 2 = specific name, 3 = text, 4 = overlay patch). Multiple selections allowed. When the intelligent removal capability is selected, at least one of ObjectRemoveElements and NonobjectRemoveElements is required.
92
+ * The elements to remove from the image subject (1=Transparent text block, 2=Specific name, 3=Text, 4=Ad patch). Multiple selections allowed. When the Intelligent Removal capability is selected, at least one of ObjectRemoveElements or NonobjectRemoveElements is required.
93
93
  *
94
94
  * @example
95
95
  * [1,2,4]
@@ -97,7 +97,7 @@ export class VisionFlowRequest extends $dara.Model {
97
97
  objectRemoveElements?: number[];
98
98
  /**
99
99
  * @remarks
100
- * The source language code. Optional. For supported language pairs, see the supported translation language pairs list.
100
+ * The source language code. Optional. Refer to the supported language pairs list for available language directions.
101
101
  *
102
102
  * @example
103
103
  * zh
@@ -105,7 +105,7 @@ export class VisionFlowRequest extends $dara.Model {
105
105
  sourceLanguage?: string;
106
106
  /**
107
107
  * @remarks
108
- * The desired height of the cropped image, in pixels. Valid values: 100 to 5000. Required when the intelligent cropping capability is selected.
108
+ * The desired height of the cropped image, in pixels. Valid values: 100 to 5000. Required when the Intelligent Cropping capability is selected.
109
109
  *
110
110
  * @example
111
111
  * 800
@@ -113,7 +113,7 @@ export class VisionFlowRequest extends $dara.Model {
113
113
  targetHeight?: number;
114
114
  /**
115
115
  * @remarks
116
- * The target language code. Optional. For supported language pairs, see the supported translation language pairs list.
116
+ * The target language code. Optional. Refer to the supported language pairs list for available language directions.
117
117
  *
118
118
  * @example
119
119
  * en
@@ -121,7 +121,7 @@ export class VisionFlowRequest extends $dara.Model {
121
121
  targetLanguage?: string;
122
122
  /**
123
123
  * @remarks
124
- * The desired width of the cropped image, in pixels. Valid values: 100 to 5000. Required when the intelligent cropping capability is selected.
124
+ * The desired width of the cropped image, in pixels. Valid values: 100 to 5000. Required when the Intelligent Cropping capability is selected.
125
125
  *
126
126
  * @example
127
127
  * 800
@@ -129,7 +129,7 @@ export class VisionFlowRequest extends $dara.Model {
129
129
  targetWidth?: number;
130
130
  /**
131
131
  * @remarks
132
- * Specifies whether to translate brand names on the image. Optional. Default value: false. Helps protect brand name information from being translated.
132
+ * Specifies whether to translate brand names in the image. Optional. Default value: false. Helps protect brand name information from being translated.
133
133
  *
134
134
  * @example
135
135
  * false
@@ -137,7 +137,7 @@ export class VisionFlowRequest extends $dara.Model {
137
137
  translatingBrandInTheProduct?: boolean;
138
138
  /**
139
139
  * @remarks
140
- * The image upscaling factor. Optional. Default value: 2. Valid values: 2 to 4. Required when the HD upscaling capability is selected.
140
+ * The image upscaling factor. Optional. Default value: 2. Valid values: 2 to 4. Required when the HD Upscaling capability is selected.
141
141
  *
142
142
  * @example
143
143
  * 2
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class VisionFlowResponseBodyData extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The asynchronous task ID. Use this ID to query the processing result through QueryAsyncTaskResult.
8
+ * The asynchronous task ID, used to query processing results later through QueryAsyncTaskResult.
9
9
  *
10
10
  * @example
11
11
  * e4c48e88-3c34-91e3-ab8a-08484dc4d402
@@ -43,7 +43,7 @@ export class VisionFlowResponseBody extends $dara.Model {
43
43
  code?: string;
44
44
  /**
45
45
  * @remarks
46
- * The submit status data of the asynchronous task, which contains the asynchronous task ID.
46
+ * The asynchronous task submit status data, which contains the asynchronous task ID.
47
47
  */
48
48
  data?: VisionFlowResponseBodyData;
49
49
  /**
@@ -56,7 +56,7 @@ export class VisionFlowResponseBody extends $dara.Model {
56
56
  message?: string;
57
57
  /**
58
58
  * @remarks
59
- * The request ID, which uniquely identifies the API call.
59
+ * The request ID, used to uniquely identify a single API call.
60
60
  *
61
61
  * @example
62
62
  * F3E65785-0180-1227-91B0-2F5F52F679FB
@@ -64,7 +64,7 @@ export class VisionFlowResponseBody extends $dara.Model {
64
64
  requestId?: string;
65
65
  /**
66
66
  * @remarks
67
- * Indicates whether the call is successful. Valid values: true and false.
67
+ * Indicates whether the call is successful. A value of true indicates success. A value of false indicates failure.
68
68
  *
69
69
  * @example
70
70
  * true