@alicloud/aidge20260428 5.3.1 → 5.4.0

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 (152) hide show
  1. package/dist/client.d.ts +651 -526
  2. package/dist/client.js +689 -529
  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/EcomVideoRecreationRequest.d.ts +156 -0
  22. package/dist/models/EcomVideoRecreationRequest.js +150 -0
  23. package/dist/models/EcomVideoRecreationRequest.js.map +1 -0
  24. package/dist/models/EcomVideoRecreationResponse.d.ts +19 -0
  25. package/dist/models/EcomVideoRecreationResponse.js +69 -0
  26. package/dist/models/EcomVideoRecreationResponse.js.map +1 -0
  27. package/dist/models/EcomVideoRecreationResponseBody.d.ts +70 -0
  28. package/dist/models/EcomVideoRecreationResponseBody.js +88 -0
  29. package/dist/models/EcomVideoRecreationResponseBody.js.map +1 -0
  30. package/dist/models/EcomVideoRecreationShrinkRequest.d.ts +25 -0
  31. package/dist/models/EcomVideoRecreationShrinkRequest.js +60 -0
  32. package/dist/models/EcomVideoRecreationShrinkRequest.js.map +1 -0
  33. package/dist/models/ImageCroppingRequest.d.ts +3 -3
  34. package/dist/models/ImageCroppingResponseBody.d.ts +10 -8
  35. package/dist/models/ImageCroppingResponseBody.js.map +1 -1
  36. package/dist/models/ImageMattingRequest.d.ts +4 -3
  37. package/dist/models/ImageMattingRequest.js.map +1 -1
  38. package/dist/models/ImageMattingResponseBody.d.ts +1 -0
  39. package/dist/models/ImageMattingResponseBody.js.map +1 -1
  40. package/dist/models/ImageRecognitionRequest.d.ts +4 -4
  41. package/dist/models/ImageRecognitionResponseBody.d.ts +2 -2
  42. package/dist/models/ImageRecognitionShrinkRequest.d.ts +4 -4
  43. package/dist/models/ImageRemoveRequest.d.ts +24 -17
  44. package/dist/models/ImageRemoveRequest.js.map +1 -1
  45. package/dist/models/ImageRemoveResponseBody.d.ts +9 -8
  46. package/dist/models/ImageRemoveResponseBody.js.map +1 -1
  47. package/dist/models/ImageRemoveShrinkRequest.d.ts +24 -17
  48. package/dist/models/ImageRemoveShrinkRequest.js.map +1 -1
  49. package/dist/models/ImageTranslationPlusResponseBody.d.ts +3 -1
  50. package/dist/models/ImageTranslationPlusResponseBody.js.map +1 -1
  51. package/dist/models/ImageTranslationProRequest.d.ts +14 -8
  52. package/dist/models/ImageTranslationProRequest.js.map +1 -1
  53. package/dist/models/ImageTranslationProResponseBody.d.ts +19 -19
  54. package/dist/models/ImageTranslationStandardRequest.d.ts +9 -6
  55. package/dist/models/ImageTranslationStandardRequest.js.map +1 -1
  56. package/dist/models/ImageTranslationStandardResponseBody.d.ts +8 -8
  57. package/dist/models/LanguageDetectRequest.d.ts +10 -2
  58. package/dist/models/LanguageDetectRequest.js +2 -0
  59. package/dist/models/LanguageDetectRequest.js.map +1 -1
  60. package/dist/models/LanguageDetectResponseBody.d.ts +5 -7
  61. package/dist/models/LanguageDetectResponseBody.js.map +1 -1
  62. package/dist/models/MaterialInspectionRequest.d.ts +5 -5
  63. package/dist/models/MaterialInspectionResponseBody.d.ts +14 -7
  64. package/dist/models/MaterialInspectionResponseBody.js.map +1 -1
  65. package/dist/models/MerchandisePlacementDetectionRequest.d.ts +4 -4
  66. package/dist/models/MerchandisePlacementDetectionResponseBody.d.ts +8 -8
  67. package/dist/models/PackageWeightSizeCheckRequest.d.ts +2 -2
  68. package/dist/models/PackageWeightSizeCheckResponseBody.d.ts +6 -6
  69. package/dist/models/QueryAsyncTaskResultResponseBody.d.ts +5 -5
  70. package/dist/models/SizeChartDetectResponseBody.d.ts +1 -0
  71. package/dist/models/SizeChartDetectResponseBody.js.map +1 -1
  72. package/dist/models/SizeChartExtractRequest.d.ts +2 -2
  73. package/dist/models/SizeChartExtractResponseBody.d.ts +1 -1
  74. package/dist/models/SizeChartExtractShrinkRequest.d.ts +2 -2
  75. package/dist/models/TextCorrectRequest.d.ts +2 -2
  76. package/dist/models/TextCorrectResponseBody.d.ts +6 -6
  77. package/dist/models/TextTranslateRequest.d.ts +15 -6
  78. package/dist/models/TextTranslateRequest.js.map +1 -1
  79. package/dist/models/TextTranslateResponseBody.d.ts +4 -4
  80. package/dist/models/TextTranslateShrinkRequest.d.ts +15 -6
  81. package/dist/models/TextTranslateShrinkRequest.js.map +1 -1
  82. package/dist/models/VideoGenerationRequest.d.ts +45 -8
  83. package/dist/models/VideoGenerationRequest.js.map +1 -1
  84. package/dist/models/VideoGenerationResponseBody.d.ts +5 -5
  85. package/dist/models/VideoTranslationResponseBody.d.ts +3 -3
  86. package/dist/models/VisionFlowRequest.d.ts +16 -16
  87. package/dist/models/VisionFlowResponseBody.d.ts +4 -4
  88. package/dist/models/VisionFlowShrinkRequest.d.ts +16 -16
  89. package/dist/models/model.d.ts +8 -0
  90. package/dist/models/model.js +20 -4
  91. package/dist/models/model.js.map +1 -1
  92. package/package.json +1 -1
  93. package/src/client.ts +698 -531
  94. package/src/models/AssetOptimizeLiteRequest.ts +10 -10
  95. package/src/models/AssetOptimizeLiteResponseBody.ts +5 -5
  96. package/src/models/AssetOptimizeProRequest.ts +6 -6
  97. package/src/models/AssetOptimizeProResponseBody.ts +4 -4
  98. package/src/models/AssetOptimizeProShrinkRequest.ts +6 -6
  99. package/src/models/CategoryAttributeMatchRequest.ts +7 -7
  100. package/src/models/CategoryAttributeMatchResponseBody.ts +7 -7
  101. package/src/models/CategoryAttributeMatchShrinkRequest.ts +7 -7
  102. package/src/models/CategoryMatchRequest.ts +8 -8
  103. package/src/models/CategoryMatchResponseBody.ts +10 -10
  104. package/src/models/DiduiAreaDeductionRequest.ts +1 -1
  105. package/src/models/DiduiAreaDeductionResponseBody.ts +1 -1
  106. package/src/models/DiduiAreaDeductionShrinkRequest.ts +1 -1
  107. package/src/models/DocumentTranslateRequest.ts +6 -2
  108. package/src/models/DocumentTranslateResponseBody.ts +4 -3
  109. package/src/models/EcomVideoRecreationRequest.ts +234 -0
  110. package/src/models/EcomVideoRecreationResponse.ts +40 -0
  111. package/src/models/EcomVideoRecreationResponseBody.ts +104 -0
  112. package/src/models/EcomVideoRecreationShrinkRequest.ts +40 -0
  113. package/src/models/ImageCroppingRequest.ts +3 -3
  114. package/src/models/ImageCroppingResponseBody.ts +10 -8
  115. package/src/models/ImageMattingRequest.ts +4 -3
  116. package/src/models/ImageMattingResponseBody.ts +1 -0
  117. package/src/models/ImageRecognitionRequest.ts +4 -4
  118. package/src/models/ImageRecognitionResponseBody.ts +2 -2
  119. package/src/models/ImageRecognitionShrinkRequest.ts +4 -4
  120. package/src/models/ImageRemoveRequest.ts +24 -17
  121. package/src/models/ImageRemoveResponseBody.ts +9 -8
  122. package/src/models/ImageRemoveShrinkRequest.ts +24 -17
  123. package/src/models/ImageTranslationPlusResponseBody.ts +3 -1
  124. package/src/models/ImageTranslationProRequest.ts +14 -8
  125. package/src/models/ImageTranslationProResponseBody.ts +19 -19
  126. package/src/models/ImageTranslationStandardRequest.ts +9 -6
  127. package/src/models/ImageTranslationStandardResponseBody.ts +8 -8
  128. package/src/models/LanguageDetectRequest.ts +12 -2
  129. package/src/models/LanguageDetectResponseBody.ts +5 -7
  130. package/src/models/MaterialInspectionRequest.ts +5 -5
  131. package/src/models/MaterialInspectionResponseBody.ts +14 -7
  132. package/src/models/MerchandisePlacementDetectionRequest.ts +4 -4
  133. package/src/models/MerchandisePlacementDetectionResponseBody.ts +8 -8
  134. package/src/models/PackageWeightSizeCheckRequest.ts +2 -2
  135. package/src/models/PackageWeightSizeCheckResponseBody.ts +6 -6
  136. package/src/models/QueryAsyncTaskResultResponseBody.ts +5 -5
  137. package/src/models/SizeChartDetectResponseBody.ts +1 -0
  138. package/src/models/SizeChartExtractRequest.ts +2 -2
  139. package/src/models/SizeChartExtractResponseBody.ts +1 -1
  140. package/src/models/SizeChartExtractShrinkRequest.ts +2 -2
  141. package/src/models/TextCorrectRequest.ts +2 -2
  142. package/src/models/TextCorrectResponseBody.ts +6 -6
  143. package/src/models/TextTranslateRequest.ts +15 -6
  144. package/src/models/TextTranslateResponseBody.ts +4 -4
  145. package/src/models/TextTranslateShrinkRequest.ts +15 -6
  146. package/src/models/VideoGenerationRequest.ts +45 -8
  147. package/src/models/VideoGenerationResponseBody.ts +5 -5
  148. package/src/models/VideoTranslationResponseBody.ts +3 -3
  149. package/src/models/VisionFlowRequest.ts +16 -16
  150. package/src/models/VisionFlowResponseBody.ts +4 -4
  151. package/src/models/VisionFlowShrinkRequest.ts +16 -16
  152. package/src/models/model.ts +8 -0
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class ImageRemoveRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The URL of the image to process. This parameter is mutually exclusive with ImageBase64. You must specify one of them.
8
+ * The URL of the original image. The image must be in JPG, JPEG, PNG, BMP, or WEBP format, with a resolution between 256 × 256 and 3000 × 3000 pixels, and a file size no larger than 10 MB.
9
9
  *
10
10
  * This parameter is required.
11
11
  *
@@ -15,21 +15,19 @@ export class ImageRemoveRequest extends $dara.Model {
15
15
  imageUrl?: string;
16
16
  /**
17
17
  * @remarks
18
- * The specific erasure region in RLE format. If this parameter is specified, it takes priority and the remove parameters are ignored.
18
+ * The specific removal area. This parameter must be used with the editor. The input format is RLE.
19
+ * If provided, this takes priority and the remove_non_product_area_elements and remove_product_area_elements parameters are ignored. This parameter is not required, but at least one of the following parameters must be specified: ObjectRemoveElements, NonObjectRemoveElements, Mask, Position, UserText, or UserImage.
20
+ * When multiple parameters are specified, the priority order is: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
19
21
  *
20
22
  * @example
21
- * null
23
+ * "474556 160 475356 160 476156 160 476956 160 477756 160 478556 160 479356 160 480156 160 480956 160 481756 160 482556 160 483356 160 484156 160 484956 160 485756 160 486556 160 487356 160 488156 160 488956 160 489756 160 490556 160 491356 160 492156 160"
22
24
  */
23
25
  mask?: string;
24
26
  /**
25
27
  * @remarks
26
- * The elements to remove from the non-subject area of the image. Valid values:
27
- * - 1: transparent text block
28
- * - 2: specific name
29
- * - 3: text
30
- * - 4: image blemish
31
- *
32
- * You can specify multiple values.
28
+ * The elements to remove from the non-subject area of the image (1=transparent text blocks, 2=specific names, 3=text, 4=visual clutter). Multiple element types can be selected. This parameter is not required, but at least one of the following parameters must be specified: ObjectRemoveElements, NonObjectRemoveElements, Mask, Position, UserText, or UserImage.
29
+ * When multiple parameters are specified, the priority order is: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
30
+ * Refer to the product description for details on each type.
33
31
  *
34
32
  * @example
35
33
  * [1,2]
@@ -37,29 +35,38 @@ export class ImageRemoveRequest extends $dara.Model {
37
35
  nonObjectRemoveElements?: number[];
38
36
  /**
39
37
  * @remarks
40
- * The elements to remove from the image subject area. Valid values:
41
- * - 1: transparent text block
42
- * - 2: specific name
43
- * - 3: text
44
- * - 4: image blemish
45
- *
46
- * You can specify multiple values.
38
+ * The elements to remove from the image subject (1=transparent text blocks, 2=specific names, 3=text, 4=visual clutter). Multiple element types can be selected. This parameter is not required, but at least one of the following parameters must be specified: ObjectRemoveElements, NonObjectRemoveElements, Mask, Position, UserText, or UserImage.
39
+ * When multiple parameters are specified, the priority order is: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
40
+ * Refer to the product description for details on each type.
41
+ * Image subject: The core product area in the image.
47
42
  *
48
43
  * @example
49
44
  * [1,2]
50
45
  */
51
46
  objectRemoveElements?: number[];
52
47
  /**
48
+ * @remarks
49
+ * The specific removal area. This parameter must be used with the editor. The input format is four-point coordinates [xx,yy,zz,dd]. This parameter is not required, but at least one of the following parameters must be specified: ObjectRemoveElements, NonObjectRemoveElements, Mask, Position, UserText, or UserImage.
50
+ * When multiple parameters are specified, the priority order is: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
51
+ *
53
52
  * @example
54
53
  * [10,10,100,100]
55
54
  */
56
55
  position?: string;
57
56
  /**
57
+ * @remarks
58
+ * The user-specified image element links to remove. Multiple image links are supported. The input format is ["https://ae01.alicdn.com/kf/S342f0070dc9f4be09a6cbed34e90dc8fs.jpg","https://ae01.alicdn.com/kf/S342f0070dc9f4be09a6cbed34e90dc8fs.jpg"]. This parameter is not required, but at least one of the following parameters must be specified: ObjectRemoveElements, NonObjectRemoveElements, Mask, Position, UserText, or UserImage.
59
+ * When multiple parameters are specified, the priority order is: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
60
+ *
58
61
  * @example
59
62
  * ["https://img.alicdn.com/bao/uploaded/i2/xxx.jpg"]
60
63
  */
61
64
  userImage?: string[];
62
65
  /**
66
+ * @remarks
67
+ * The user-specified text to remove. Multiple text inputs are supported. The input format is ["xx","yy"]. This parameter is not required, but at least one of the following parameters must be specified: ObjectRemoveElements, NonObjectRemoveElements, Mask, Position, UserText, or UserImage.
68
+ * When multiple parameters are specified, the priority order is: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
69
+ *
63
70
  * @example
64
71
  * ["xx","yy"]
65
72
  */
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class ImageRemoveResponseBodyData extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The height of the result image, in pixels.
8
+ * The height of the result image in pixels.
9
9
  *
10
10
  * @example
11
11
  * 800
@@ -13,10 +13,11 @@ export class ImageRemoveResponseBodyData extends $dara.Model {
13
13
  height?: number;
14
14
  /**
15
15
  * @remarks
16
- * The URL of the result image after erasure.
16
+ * The URL of the result image after removal.
17
17
  *
18
18
  * @example
19
- * http://dashscope-7c2c.oss-cn-shanghai.aliyuncs.com/xxx.jpg
19
+ * “http://dashscope-7c2c.oss-cn-shanghai.aliyuncs.com/xxx.jpg
20
+ * ”
20
21
  */
21
22
  imageUrl?: string;
22
23
  /**
@@ -29,7 +30,7 @@ export class ImageRemoveResponseBodyData extends $dara.Model {
29
30
  usageMap?: { [key: string]: number };
30
31
  /**
31
32
  * @remarks
32
- * The width of the result image, in pixels.
33
+ * The width of the result image in pixels.
33
34
  *
34
35
  * @example
35
36
  * 800
@@ -68,15 +69,15 @@ export class ImageRemoveResponseBodyData extends $dara.Model {
68
69
  export class ImageRemoveResponseBody extends $dara.Model {
69
70
  /**
70
71
  * @remarks
71
- * The error code.
72
+ * The status code.
72
73
  *
73
74
  * @example
74
- * 200
75
+ * "success"
75
76
  */
76
77
  code?: string;
77
78
  /**
78
79
  * @remarks
79
- * The intelligent erasure result.
80
+ * The intelligent removal result.
80
81
  */
81
82
  data?: ImageRemoveResponseBodyData;
82
83
  /**
@@ -84,7 +85,7 @@ export class ImageRemoveResponseBody extends $dara.Model {
84
85
  * The error message.
85
86
  *
86
87
  * @example
87
- * OK
88
+ * “The parameters contain sensitive information, please try other inputs”
88
89
  */
89
90
  message?: string;
90
91
  /**
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class ImageRemoveShrinkRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The URL of the image to process. This parameter is mutually exclusive with ImageBase64. You must specify one of them.
8
+ * The URL of the original image. The image must be in JPG, JPEG, PNG, BMP, or WEBP format, with a resolution between 256 × 256 and 3000 × 3000 pixels, and a file size no larger than 10 MB.
9
9
  *
10
10
  * This parameter is required.
11
11
  *
@@ -15,21 +15,19 @@ export class ImageRemoveShrinkRequest extends $dara.Model {
15
15
  imageUrl?: string;
16
16
  /**
17
17
  * @remarks
18
- * The specific erasure region in RLE format. If this parameter is specified, it takes priority and the remove parameters are ignored.
18
+ * The specific removal area. This parameter must be used with the editor. The input format is RLE.
19
+ * If provided, this takes priority and the remove_non_product_area_elements and remove_product_area_elements parameters are ignored. This parameter is not required, but at least one of the following parameters must be specified: ObjectRemoveElements, NonObjectRemoveElements, Mask, Position, UserText, or UserImage.
20
+ * When multiple parameters are specified, the priority order is: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
19
21
  *
20
22
  * @example
21
- * null
23
+ * "474556 160 475356 160 476156 160 476956 160 477756 160 478556 160 479356 160 480156 160 480956 160 481756 160 482556 160 483356 160 484156 160 484956 160 485756 160 486556 160 487356 160 488156 160 488956 160 489756 160 490556 160 491356 160 492156 160"
22
24
  */
23
25
  mask?: string;
24
26
  /**
25
27
  * @remarks
26
- * The elements to remove from the non-subject area of the image. Valid values:
27
- * - 1: transparent text block
28
- * - 2: specific name
29
- * - 3: text
30
- * - 4: image blemish
31
- *
32
- * You can specify multiple values.
28
+ * The elements to remove from the non-subject area of the image (1=transparent text blocks, 2=specific names, 3=text, 4=visual clutter). Multiple element types can be selected. This parameter is not required, but at least one of the following parameters must be specified: ObjectRemoveElements, NonObjectRemoveElements, Mask, Position, UserText, or UserImage.
29
+ * When multiple parameters are specified, the priority order is: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
30
+ * Refer to the product description for details on each type.
33
31
  *
34
32
  * @example
35
33
  * [1,2]
@@ -37,29 +35,38 @@ export class ImageRemoveShrinkRequest extends $dara.Model {
37
35
  nonObjectRemoveElementsShrink?: string;
38
36
  /**
39
37
  * @remarks
40
- * The elements to remove from the image subject area. Valid values:
41
- * - 1: transparent text block
42
- * - 2: specific name
43
- * - 3: text
44
- * - 4: image blemish
45
- *
46
- * You can specify multiple values.
38
+ * The elements to remove from the image subject (1=transparent text blocks, 2=specific names, 3=text, 4=visual clutter). Multiple element types can be selected. This parameter is not required, but at least one of the following parameters must be specified: ObjectRemoveElements, NonObjectRemoveElements, Mask, Position, UserText, or UserImage.
39
+ * When multiple parameters are specified, the priority order is: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
40
+ * Refer to the product description for details on each type.
41
+ * Image subject: The core product area in the image.
47
42
  *
48
43
  * @example
49
44
  * [1,2]
50
45
  */
51
46
  objectRemoveElementsShrink?: string;
52
47
  /**
48
+ * @remarks
49
+ * The specific removal area. This parameter must be used with the editor. The input format is four-point coordinates [xx,yy,zz,dd]. This parameter is not required, but at least one of the following parameters must be specified: ObjectRemoveElements, NonObjectRemoveElements, Mask, Position, UserText, or UserImage.
50
+ * When multiple parameters are specified, the priority order is: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
51
+ *
53
52
  * @example
54
53
  * [10,10,100,100]
55
54
  */
56
55
  position?: string;
57
56
  /**
57
+ * @remarks
58
+ * The user-specified image element links to remove. Multiple image links are supported. The input format is ["https://ae01.alicdn.com/kf/S342f0070dc9f4be09a6cbed34e90dc8fs.jpg","https://ae01.alicdn.com/kf/S342f0070dc9f4be09a6cbed34e90dc8fs.jpg"]. This parameter is not required, but at least one of the following parameters must be specified: ObjectRemoveElements, NonObjectRemoveElements, Mask, Position, UserText, or UserImage.
59
+ * When multiple parameters are specified, the priority order is: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
60
+ *
58
61
  * @example
59
62
  * ["https://img.alicdn.com/bao/uploaded/i2/xxx.jpg"]
60
63
  */
61
64
  userImageShrink?: string;
62
65
  /**
66
+ * @remarks
67
+ * The user-specified text to remove. Multiple text inputs are supported. The input format is ["xx","yy"]. This parameter is not required, but at least one of the following parameters must be specified: ObjectRemoveElements, NonObjectRemoveElements, Mask, Position, UserText, or UserImage.
68
+ * When multiple parameters are specified, the priority order is: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
69
+ *
63
70
  * @example
64
71
  * ["xx","yy"]
65
72
  */
@@ -64,7 +64,9 @@ export class ImageTranslationPlusResponseBody extends $dara.Model {
64
64
  requestId?: string;
65
65
  /**
66
66
  * @remarks
67
- * Indicates whether the call is successful. Valid values: true: successful. false: failed.
67
+ * Indicates whether the call is successful. Valid values:
68
+ * - true: The call is successful.
69
+ * - false: The call failed.
68
70
  *
69
71
  * @example
70
72
  * True
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class ImageTranslationProRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * Specifies whether to use asynchronous mode. Default value: false (synchronous mode). When set to true, the operation immediately returns a TaskId, and you must call the query translation result operation to obtain the final result.
8
+ * Specifies whether to use asynchronous mode. Default value: false (synchronous mode). When set to true, the API immediately returns a TaskId, and you must use the query translation result API to obtain the final result.
9
9
  *
10
10
  * @example
11
11
  * true
@@ -13,7 +13,7 @@ export class ImageTranslationProRequest extends $dara.Model {
13
13
  async?: boolean;
14
14
  /**
15
15
  * @remarks
16
- * The glossary ID. Optional. Create a glossary separately in the console and provide its ID. If the glossary ID is empty, the translation results are not modified.
16
+ * The intervention glossary ID. Optional. You must create the glossary separately in the console and provide its ID. If the glossary ID is empty, the translation results are not modified.
17
17
  *
18
18
  * @example
19
19
  * glossary_1
@@ -21,7 +21,13 @@ export class ImageTranslationProRequest extends $dara.Model {
21
21
  glossary?: string;
22
22
  /**
23
23
  * @remarks
24
- * The URL of the original image. Required. Image requirements: width and height cannot exceed 4000 × 4000 pixels, size cannot exceed 10 MB, and supported formats include png, jpeg, jpg, bmp, and webp.
24
+ * The URL of the original image. Required.
25
+ *
26
+ * Image requirements:
27
+ * - Image URL: Must be publicly accessible.
28
+ * - Format: png, jpeg, jpg, bmp, or webp.
29
+ * - Pixels: Width and height must not exceed 4000 each.
30
+ * - File size: Original file ≤ 10 MB.
25
31
  *
26
32
  * This parameter is required.
27
33
  *
@@ -31,7 +37,7 @@ export class ImageTranslationProRequest extends $dara.Model {
31
37
  imageUrl?: string;
32
38
  /**
33
39
  * @remarks
34
- * Specifies whether to translate text on the image subject body. Optional. Default value: false. This helps you protect information and avoid translating embedded information such as product names.
40
+ * Specifies whether to translate text on the image subject. Optional. Default value: false. This helps you protect information and avoid translating embedded information such as product names.
35
41
  *
36
42
  * @example
37
43
  * false
@@ -39,7 +45,7 @@ export class ImageTranslationProRequest extends $dara.Model {
39
45
  includingProductArea?: boolean;
40
46
  /**
41
47
  * @remarks
42
- * The source language code. Required. For supported language pairs, see the supported language pair list.
48
+ * The source language code. Required. For supported language directions, see [Language Direction Mapping Table](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
43
49
  *
44
50
  * This parameter is required.
45
51
  *
@@ -49,7 +55,7 @@ export class ImageTranslationProRequest extends $dara.Model {
49
55
  sourceLanguage?: string;
50
56
  /**
51
57
  * @remarks
52
- * The target language code. Required. For supported language pairs, see the supported language pair list.
58
+ * The target language code. Required. For supported language directions, see [Language Direction Mapping Table](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
53
59
  *
54
60
  * This parameter is required.
55
61
  *
@@ -59,7 +65,7 @@ export class ImageTranslationProRequest extends $dara.Model {
59
65
  targetLanguage?: string;
60
66
  /**
61
67
  * @remarks
62
- * Specifies whether to translate brand names on the image. Optional. Default value: false. This helps you protect brand name information and avoid unintended translation.
68
+ * Specifies whether to translate brand names on images. Optional. Default value: false. This helps you protect brand name information from being translated.
63
69
  *
64
70
  * @example
65
71
  * false
@@ -67,7 +73,7 @@ export class ImageTranslationProRequest extends $dara.Model {
67
73
  translatingBrandInTheProduct?: boolean;
68
74
  /**
69
75
  * @remarks
70
- * Specifies whether to return layout information such as text position, font, and color. When set to true, layer information is returned, which can be used with an image editor for secondary editing. Default value: false.
76
+ * Specifies whether to return layout information such as text position, font, and color. When set to true, layer information is returned for secondary editing with an image editor. Default value: false.
71
77
  *
72
78
  * @example
73
79
  * false
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class ImageTranslationProResponseBodyDataGenFilesEditInfoGoodsRects extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The rotation angle of the text box in degrees. A value less than 1 indicates a horizontal text box.
8
+ * The rotation angle of the text box, in degrees. A value less than 1 indicates a horizontal text box.
9
9
  *
10
10
  * @example
11
11
  * 0
@@ -75,7 +75,7 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoGoodsRects exten
75
75
  export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTextsImageRect extends $dara.Model {
76
76
  /**
77
77
  * @remarks
78
- * The rotation angle of the text box in degrees. A value less than 1 indicates a horizontal text box.
78
+ * The rotation angle of the text box, in degrees. A value less than 1 indicates a horizontal text box.
79
79
  *
80
80
  * @example
81
81
  * 0
@@ -145,7 +145,7 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTextsIm
145
145
  export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTextsTextRect extends $dara.Model {
146
146
  /**
147
147
  * @remarks
148
- * The rotation angle of the text box in degrees. A value less than 1 indicates a horizontal text box.
148
+ * The rotation angle of the text box, in degrees. A value less than 1 indicates a horizontal text box.
149
149
  *
150
150
  * @example
151
151
  * 0
@@ -215,7 +215,7 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTextsTe
215
215
  export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTexts extends $dara.Model {
216
216
  /**
217
217
  * @remarks
218
- * The text color after translation.
218
+ * The color of the translated text.
219
219
  *
220
220
  * @example
221
221
  * #515151
@@ -231,7 +231,7 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTexts e
231
231
  fontsize?: number;
232
232
  /**
233
233
  * @remarks
234
- * The horizontal layout mode. Valid values: center, left, right.
234
+ * The horizontal layout. Valid values: center, left, right.
235
235
  *
236
236
  * @example
237
237
  * center
@@ -265,7 +265,7 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTexts e
265
265
  textRect?: ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTextsTextRect;
266
266
  /**
267
267
  * @remarks
268
- * Indicates whether the TextItem is valid. The item is invalid when this value does not exist or is false.
268
+ * Indicates whether the TextItem is valid. The item is invalid if this value does not exist or is false.
269
269
  *
270
270
  * @example
271
271
  * true
@@ -281,7 +281,7 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTexts e
281
281
  value?: string;
282
282
  /**
283
283
  * @remarks
284
- * The vertical layout mode. Valid values: center, top, down.
284
+ * The vertical layout. Valid values: center, top, down.
285
285
  *
286
286
  * @example
287
287
  * center
@@ -346,7 +346,7 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreas extend
346
346
  * The original text before translation.
347
347
  *
348
348
  * @example
349
- * Cute Shape · Crisp Bell.
349
+ * 萌趣造型·清脆响铃
350
350
  */
351
351
  content?: string;
352
352
  /**
@@ -359,7 +359,7 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreas extend
359
359
  fontsize?: number;
360
360
  /**
361
361
  * @remarks
362
- * The horizontal layout mode. Valid values: center, left, right.
362
+ * The horizontal layout. Valid values: center, left, right.
363
363
  *
364
364
  * @example
365
365
  * left
@@ -380,7 +380,7 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreas extend
380
380
  texts?: ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTexts[];
381
381
  /**
382
382
  * @remarks
383
- * The vertical layout mode. Valid values: center, top, down.
383
+ * The vertical layout. Valid values: center, top, down.
384
384
  *
385
385
  * @example
386
386
  * center
@@ -440,7 +440,7 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfo extends $dara.M
440
440
  languages?: string[];
441
441
  /**
442
442
  * @remarks
443
- * The URL of the image after all text has been erased.
443
+ * The URL of the image after all text has been inpainted.
444
444
  *
445
445
  * @example
446
446
  * http://dashscope-a717.oss-cn-beijing.aliyuncs.com/repaired.png
@@ -545,7 +545,7 @@ export class ImageTranslationProResponseBodyDataGenFilesResultList extends $dara
545
545
  export class ImageTranslationProResponseBodyDataGenFiles extends $dara.Model {
546
546
  /**
547
547
  * @remarks
548
- * The editor information, which contains recognition information such as text areas, product areas, and fonts.
548
+ * The editor information, which contains recognized information such as text areas, product areas, and fonts.
549
549
  */
550
550
  editInfo?: ImageTranslationProResponseBodyDataGenFilesEditInfo;
551
551
  /**
@@ -595,7 +595,7 @@ export class ImageTranslationProResponseBodyDataGenFiles extends $dara.Model {
595
595
  export class ImageTranslationProResponseBodyDataResultList extends $dara.Model {
596
596
  /**
597
597
  * @remarks
598
- * The URL of the image translation result.
598
+ * The URL of the translated result image.
599
599
  *
600
600
  * @example
601
601
  * http://dashscope-a717.oss-cn-beijing.aliyuncs.com/xxx.jpg
@@ -653,7 +653,7 @@ export class ImageTranslationProResponseBodyData extends $dara.Model {
653
653
  taskId?: string;
654
654
  /**
655
655
  * @remarks
656
- * The usage information, which contains the number of processed images.
656
+ * The usage information, including the number of processed images.
657
657
  */
658
658
  usageMap?: { [key: string]: number };
659
659
  static names(): { [key: string]: string } {
@@ -695,7 +695,7 @@ export class ImageTranslationProResponseBodyData extends $dara.Model {
695
695
  export class ImageTranslationProResponseBody extends $dara.Model {
696
696
  /**
697
697
  * @remarks
698
- * The response code. 200 indicates a successful call. For other response codes, refer to the error code information.
698
+ * The response code. A value of 200 indicates a successful call. For other response codes, refer to the error code information.
699
699
  *
700
700
  * @example
701
701
  * 200
@@ -703,12 +703,12 @@ export class ImageTranslationProResponseBody extends $dara.Model {
703
703
  code?: string;
704
704
  /**
705
705
  * @remarks
706
- * The translation result data. ResultList contains the URLs of translation results, and GenFiles contains EditInfo with the recognized text information.
706
+ * The translation result data. ResultList contains the URL of the translation result. EditInfo in GenFiles contains the recognized text information.
707
707
  */
708
708
  data?: ImageTranslationProResponseBodyData;
709
709
  /**
710
710
  * @remarks
711
- * The error message. "Success" is returned for successful calls. Specific error information is returned for failed calls, such as "The content contains sensitive data. Try other input."
711
+ * The error message. "Success" is returned for a successful call. A specific error message is returned for a failed call, such as "The content contains sensitive data. Try other input."
712
712
  *
713
713
  * @example
714
714
  * Success
@@ -716,7 +716,7 @@ export class ImageTranslationProResponseBody extends $dara.Model {
716
716
  message?: string;
717
717
  /**
718
718
  * @remarks
719
- * The request ID, used to identify a unique request call.
719
+ * The request ID, which uniquely identifies the request.
720
720
  *
721
721
  * @example
722
722
  * 61785C32-80C2-19A3-9E55-2C3702C84B40
@@ -724,7 +724,7 @@ export class ImageTranslationProResponseBody extends $dara.Model {
724
724
  requestId?: string;
725
725
  /**
726
726
  * @remarks
727
- * Indicates whether the call is successful. true indicates success, and false indicates failure.
727
+ * Indicates whether the call is successful. A value of true indicates success. A value of false indicates failure.
728
728
  *
729
729
  * @example
730
730
  * true
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class ImageTranslationStandardRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The glossary ID. Optional. Create a glossary in the console and provide its ID. If the glossary ID is empty, the translation results are not modified.
8
+ * The intervention glossary ID. Optional. Create the glossary separately in the console and provide its ID. If the glossary ID is empty, translation results are not modified.
9
9
  *
10
10
  * @example
11
11
  * glossary_1
@@ -14,6 +14,9 @@ export class ImageTranslationStandardRequest extends $dara.Model {
14
14
  /**
15
15
  * @remarks
16
16
  * - Image URL: Must be publicly accessible.
17
+ * - Format: png, jpeg, jpg, bmp, webp
18
+ * - Pixels: Width and height must not exceed 4000
19
+ * - File size: Original file ≤ 10 MB
17
20
  *
18
21
  * This parameter is required.
19
22
  *
@@ -23,7 +26,7 @@ export class ImageTranslationStandardRequest extends $dara.Model {
23
26
  imageUrl?: string;
24
27
  /**
25
28
  * @remarks
26
- * Specifies whether to translate text on the main subject of the image. Optional. Default value: false. This helps you protect information by avoiding translation of embedded information such as product names.
29
+ * Specifies whether to translate text on the product area. Optional. Default value: false. This helps protect information by avoiding translation of embedded information such as product names.
27
30
  *
28
31
  * @example
29
32
  * false
@@ -31,7 +34,7 @@ export class ImageTranslationStandardRequest extends $dara.Model {
31
34
  includingProductArea?: boolean;
32
35
  /**
33
36
  * @remarks
34
- * The source language code. Required. For supported language pairs, see the supported language pair list.
37
+ * The source language code. Required. For supported language directions, see [Language direction mapping table](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
35
38
  *
36
39
  * This parameter is required.
37
40
  *
@@ -41,7 +44,7 @@ export class ImageTranslationStandardRequest extends $dara.Model {
41
44
  sourceLanguage?: string;
42
45
  /**
43
46
  * @remarks
44
- * The target language code. Required. For supported language pairs, see the supported language pair list.
47
+ * The target language code. Required. For supported language directions, see [Language direction mapping table](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
45
48
  *
46
49
  * This parameter is required.
47
50
  *
@@ -51,7 +54,7 @@ export class ImageTranslationStandardRequest extends $dara.Model {
51
54
  targetLanguage?: string;
52
55
  /**
53
56
  * @remarks
54
- * Specifies whether to translate brand names on the image. Optional. Default value: false. This helps you protect brand name information from being translated.
57
+ * Specifies whether to translate brand names on images. Optional. Default value: false. This helps protect brand name information from being translated.
55
58
  *
56
59
  * @example
57
60
  * false
@@ -59,7 +62,7 @@ export class ImageTranslationStandardRequest extends $dara.Model {
59
62
  translatingBrandInTheProduct?: boolean;
60
63
  /**
61
64
  * @remarks
62
- * Specifies whether to return layer information such as text position, font, and color. When set to true, layer information is returned for integration with image editors for secondary editing. Default value: false.
65
+ * Specifies whether to return layer information such as text position, font, and color. If set to true, layer information is returned for secondary editing through an image editor. Default value: false.
63
66
  *
64
67
  * @example
65
68
  * false
@@ -231,7 +231,7 @@ export class ImageTranslationStandardResponseBodyDataEditInfoTextAreasTexts exte
231
231
  * The text value.
232
232
  *
233
233
  * @example
234
- * Solid Wood Wardrobe.
234
+ * Solid Wood Wardrobe
235
235
  */
236
236
  value?: string;
237
237
  /**
@@ -388,7 +388,7 @@ export class ImageTranslationStandardResponseBodyDataEditInfo extends $dara.Mode
388
388
  font?: string[];
389
389
  /**
390
390
  * @remarks
391
- * The product area rectangles.
391
+ * The product area rectangle.
392
392
  */
393
393
  goodsRects?: ImageTranslationStandardResponseBodyDataEditInfoGoodsRects;
394
394
  /**
@@ -409,7 +409,7 @@ export class ImageTranslationStandardResponseBodyDataEditInfo extends $dara.Mode
409
409
  languages?: string[];
410
410
  /**
411
411
  * @remarks
412
- * The original image URL.
412
+ * The URL of the original image.
413
413
  *
414
414
  * @example
415
415
  * https://xiuxiu-pro.meitudata.com/posters/34d78f9157e5560a4d612949ca6f6485.jpg
@@ -417,7 +417,7 @@ export class ImageTranslationStandardResponseBodyDataEditInfo extends $dara.Mode
417
417
  pictUrl?: string;
418
418
  /**
419
419
  * @remarks
420
- * The repaired image URL.
420
+ * The URL of the repaired image.
421
421
  *
422
422
  * @example
423
423
  * http://dashscope-a717.oss-cn-beijing.aliyuncs.com/xxx.png
@@ -520,7 +520,7 @@ export class ImageTranslationStandardResponseBodyData extends $dara.Model {
520
520
  editInfo?: ImageTranslationStandardResponseBodyDataEditInfo;
521
521
  /**
522
522
  * @remarks
523
- * The URL of the image generated after image translation.
523
+ * The URL of the image generated from the image translation result.
524
524
  *
525
525
  * @example
526
526
  * http://dashscope-a717.oss-cn-beijing.aliyuncs.com/xxx.jpg
@@ -528,7 +528,7 @@ export class ImageTranslationStandardResponseBodyData extends $dara.Model {
528
528
  imageUrl?: string;
529
529
  /**
530
530
  * @remarks
531
- * The usage information, including the number of images processed.
531
+ * The usage information, including the number of processed images.
532
532
  *
533
533
  * @example
534
534
  * {"ProcessedImageCount":1}
@@ -581,7 +581,7 @@ export class ImageTranslationStandardResponseBody extends $dara.Model {
581
581
  data?: ImageTranslationStandardResponseBodyData;
582
582
  /**
583
583
  * @remarks
584
- * The error message. Returns "Success" for successful calls, and returns specific error information for failed calls.
584
+ * The error message. "Success" is returned for successful calls, and a specific error message is returned for failed calls.
585
585
  *
586
586
  * @example
587
587
  * Success
@@ -589,7 +589,7 @@ export class ImageTranslationStandardResponseBody extends $dara.Model {
589
589
  message?: string;
590
590
  /**
591
591
  * @remarks
592
- * The request ID, which uniquely identifies the request.
592
+ * The request ID, used to uniquely identify a request.
593
593
  *
594
594
  * @example
595
595
  * 1CEC4D94-905A-1ED1-A7B4-1BFEFFB3D850
@@ -5,22 +5,32 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class LanguageDetectRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The source text for language detection. This parameter is required.
8
+ * The detection scenario. Default value: common. If you are using a search phrase scenario, set this parameter to query. If an incorrect value is passed or the parameter is not specified, the common general identification is used. Note: pass query in lowercase.
9
+ *
10
+ * @example
11
+ * query
12
+ */
13
+ scene?: string;
14
+ /**
15
+ * @remarks
16
+ * The source text to be identified. This parameter is required.
9
17
  *
10
18
  * This parameter is required.
11
19
  *
12
20
  * @example
13
- * 测试文本
21
+ * Sample text
14
22
  */
15
23
  sourceText?: string;
16
24
  static names(): { [key: string]: string } {
17
25
  return {
26
+ scene: 'Scene',
18
27
  sourceText: 'SourceText',
19
28
  };
20
29
  }
21
30
 
22
31
  static types(): { [key: string]: any } {
23
32
  return {
33
+ scene: 'string',
24
34
  sourceText: 'string',
25
35
  };
26
36
  }