@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
@@ -2,7 +2,7 @@ import * as $dara from '@darabonba/typescript';
2
2
  export declare class ImageRemoveResponseBodyData extends $dara.Model {
3
3
  /**
4
4
  * @remarks
5
- * The height of the result image, in pixels.
5
+ * The height of the result image in pixels.
6
6
  *
7
7
  * @example
8
8
  * 800
@@ -10,10 +10,11 @@ export declare class ImageRemoveResponseBodyData extends $dara.Model {
10
10
  height?: number;
11
11
  /**
12
12
  * @remarks
13
- * The URL of the result image after erasure.
13
+ * The URL of the result image after removal.
14
14
  *
15
15
  * @example
16
- * http://dashscope-7c2c.oss-cn-shanghai.aliyuncs.com/xxx.jpg
16
+ * “http://dashscope-7c2c.oss-cn-shanghai.aliyuncs.com/xxx.jpg
17
+ * ”
17
18
  */
18
19
  imageUrl?: string;
19
20
  /**
@@ -28,7 +29,7 @@ export declare class ImageRemoveResponseBodyData extends $dara.Model {
28
29
  };
29
30
  /**
30
31
  * @remarks
31
- * The width of the result image, in pixels.
32
+ * The width of the result image in pixels.
32
33
  *
33
34
  * @example
34
35
  * 800
@@ -48,15 +49,15 @@ export declare class ImageRemoveResponseBodyData extends $dara.Model {
48
49
  export declare class ImageRemoveResponseBody extends $dara.Model {
49
50
  /**
50
51
  * @remarks
51
- * The error code.
52
+ * The status code.
52
53
  *
53
54
  * @example
54
- * 200
55
+ * "success"
55
56
  */
56
57
  code?: string;
57
58
  /**
58
59
  * @remarks
59
- * The intelligent erasure result.
60
+ * The intelligent removal result.
60
61
  */
61
62
  data?: ImageRemoveResponseBodyData;
62
63
  /**
@@ -64,7 +65,7 @@ export declare class ImageRemoveResponseBody extends $dara.Model {
64
65
  * The error message.
65
66
  *
66
67
  * @example
67
- * OK
68
+ * “The parameters contain sensitive information, please try other inputs”
68
69
  */
69
70
  message?: string;
70
71
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"ImageRemoveResponseBody.js","sourceRoot":"","sources":["../../src/models/ImageRemoveResponse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QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,2BAA2B;YACjC,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AApED,0DAoEC"}
@@ -2,7 +2,7 @@ import * as $dara from '@darabonba/typescript';
2
2
  export declare class ImageRemoveShrinkRequest extends $dara.Model {
3
3
  /**
4
4
  * @remarks
5
- * The URL of the image to process. This parameter is mutually exclusive with ImageBase64. You must specify one of them.
5
+ * 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.
6
6
  *
7
7
  * This parameter is required.
8
8
  *
@@ -12,21 +12,19 @@ export declare class ImageRemoveShrinkRequest extends $dara.Model {
12
12
  imageUrl?: string;
13
13
  /**
14
14
  * @remarks
15
- * The specific erasure region in RLE format. If this parameter is specified, it takes priority and the remove parameters are ignored.
15
+ * The specific removal area. This parameter must be used with the editor. The input format is RLE.
16
+ * 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.
17
+ * When multiple parameters are specified, the priority order is: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
16
18
  *
17
19
  * @example
18
- * null
20
+ * "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"
19
21
  */
20
22
  mask?: string;
21
23
  /**
22
24
  * @remarks
23
- * The elements to remove from the non-subject area of the image. Valid values:
24
- * - 1: transparent text block
25
- * - 2: specific name
26
- * - 3: text
27
- * - 4: image blemish
28
- *
29
- * You can specify multiple values.
25
+ * 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.
26
+ * When multiple parameters are specified, the priority order is: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
27
+ * Refer to the product description for details on each type.
30
28
  *
31
29
  * @example
32
30
  * [1,2]
@@ -34,29 +32,38 @@ export declare class ImageRemoveShrinkRequest extends $dara.Model {
34
32
  nonObjectRemoveElementsShrink?: string;
35
33
  /**
36
34
  * @remarks
37
- * The elements to remove from the image subject area. Valid values:
38
- * - 1: transparent text block
39
- * - 2: specific name
40
- * - 3: text
41
- * - 4: image blemish
42
- *
43
- * You can specify multiple values.
35
+ * 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.
36
+ * When multiple parameters are specified, the priority order is: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
37
+ * Refer to the product description for details on each type.
38
+ * Image subject: The core product area in the image.
44
39
  *
45
40
  * @example
46
41
  * [1,2]
47
42
  */
48
43
  objectRemoveElementsShrink?: string;
49
44
  /**
45
+ * @remarks
46
+ * 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.
47
+ * When multiple parameters are specified, the priority order is: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
48
+ *
50
49
  * @example
51
50
  * [10,10,100,100]
52
51
  */
53
52
  position?: string;
54
53
  /**
54
+ * @remarks
55
+ * 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.
56
+ * When multiple parameters are specified, the priority order is: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
57
+ *
55
58
  * @example
56
59
  * ["https://img.alicdn.com/bao/uploaded/i2/xxx.jpg"]
57
60
  */
58
61
  userImageShrink?: string;
59
62
  /**
63
+ * @remarks
64
+ * 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.
65
+ * When multiple parameters are specified, the priority order is: UserImage > UserText > Position > Mask > ObjectRemoveElements = NonObjectRemoveElements.
66
+ *
60
67
  * @example
61
68
  * ["xx","yy"]
62
69
  */
@@ -1 +1 @@
1
- {"version":3,"file":"ImageRemoveShrinkRequest.js","sourceRoot":"","sources":["../../src/models/ImageRemoveShrinkRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,wBAAyB,SAAQ,KAAK,CAAC,K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YACpC,QAAQ,EAAE,QAAQ;YAClB,eAAe,EAAE,QAAQ;YACzB,cAAc,EAAE,QAAQ;SACzB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AApGD,4DAoGC"}
@@ -51,7 +51,9 @@ export declare class ImageTranslationPlusResponseBody extends $dara.Model {
51
51
  requestId?: string;
52
52
  /**
53
53
  * @remarks
54
- * Indicates whether the call is successful. Valid values: true: successful. false: failed.
54
+ * Indicates whether the call is successful. Valid values:
55
+ * - true: The call is successful.
56
+ * - false: The call failed.
55
57
  *
56
58
  * @example
57
59
  * True
@@ -1 +1 @@
1
- {"version":3,"file":"ImageTranslationPlusResponseBody.js","sourceRoot":"","sources":["../../src/models/ImageTranslationPlusResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,oCAAqC,SAAQ,KAAK,CAAC,KAAK;IASnE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA5BD,oFA4BC;AAED,MAAa,gCAAiC,SAAQ,KAAK,CAAC,KAAK;IAsC/D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,oCAAoC;YAC1C,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AApED,4EAoEC"}
1
+ {"version":3,"file":"ImageTranslationPlusResponseBody.js","sourceRoot":"","sources":["../../src/models/ImageTranslationPlusResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,oCAAqC,SAAQ,KAAK,CAAC,KAAK;IASnE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA5BD,oFA4BC;AAED,MAAa,gCAAiC,SAAQ,KAAK,CAAC,KAAK;IAwC/D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,oCAAoC;YAC1C,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAtED,4EAsEC"}
@@ -2,7 +2,7 @@ import * as $dara from '@darabonba/typescript';
2
2
  export declare class ImageTranslationProRequest extends $dara.Model {
3
3
  /**
4
4
  * @remarks
5
- * 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.
5
+ * 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.
6
6
  *
7
7
  * @example
8
8
  * true
@@ -10,7 +10,7 @@ export declare class ImageTranslationProRequest extends $dara.Model {
10
10
  async?: boolean;
11
11
  /**
12
12
  * @remarks
13
- * 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.
13
+ * 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.
14
14
  *
15
15
  * @example
16
16
  * glossary_1
@@ -18,7 +18,13 @@ export declare class ImageTranslationProRequest extends $dara.Model {
18
18
  glossary?: string;
19
19
  /**
20
20
  * @remarks
21
- * 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.
21
+ * The URL of the original image. Required.
22
+ *
23
+ * Image requirements:
24
+ * - Image URL: Must be publicly accessible.
25
+ * - Format: png, jpeg, jpg, bmp, or webp.
26
+ * - Pixels: Width and height must not exceed 4000 each.
27
+ * - File size: Original file ≤ 10 MB.
22
28
  *
23
29
  * This parameter is required.
24
30
  *
@@ -28,7 +34,7 @@ export declare class ImageTranslationProRequest extends $dara.Model {
28
34
  imageUrl?: string;
29
35
  /**
30
36
  * @remarks
31
- * 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.
37
+ * 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.
32
38
  *
33
39
  * @example
34
40
  * false
@@ -36,7 +42,7 @@ export declare class ImageTranslationProRequest extends $dara.Model {
36
42
  includingProductArea?: boolean;
37
43
  /**
38
44
  * @remarks
39
- * The source language code. Required. For supported language pairs, see the supported language pair list.
45
+ * The source language code. Required. For supported language directions, see [Language Direction Mapping Table](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
40
46
  *
41
47
  * This parameter is required.
42
48
  *
@@ -46,7 +52,7 @@ export declare class ImageTranslationProRequest extends $dara.Model {
46
52
  sourceLanguage?: string;
47
53
  /**
48
54
  * @remarks
49
- * The target language code. Required. For supported language pairs, see the supported language pair list.
55
+ * The target language code. Required. For supported language directions, see [Language Direction Mapping Table](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
50
56
  *
51
57
  * This parameter is required.
52
58
  *
@@ -56,7 +62,7 @@ export declare class ImageTranslationProRequest extends $dara.Model {
56
62
  targetLanguage?: string;
57
63
  /**
58
64
  * @remarks
59
- * Specifies whether to translate brand names on the image. Optional. Default value: false. This helps you protect brand name information and avoid unintended translation.
65
+ * Specifies whether to translate brand names on images. Optional. Default value: false. This helps you protect brand name information from being translated.
60
66
  *
61
67
  * @example
62
68
  * false
@@ -64,7 +70,7 @@ export declare class ImageTranslationProRequest extends $dara.Model {
64
70
  translatingBrandInTheProduct?: boolean;
65
71
  /**
66
72
  * @remarks
67
- * 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.
73
+ * 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.
68
74
  *
69
75
  * @example
70
76
  * false
@@ -1 +1 @@
1
- {"version":3,"file":"ImageTranslationProRequest.js","sourceRoot":"","sources":["../../src/models/ImageTranslationProRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,0BAA2B,SAAQ,KAAK,CAAC,KAAK;IAuEzD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,OAAO;YACd,QAAQ,EAAE,UAAU;YACpB,QAAQ,EAAE,UAAU;YACpB,oBAAoB,EAAE,sBAAsB;YAC5C,cAAc,EAAE,gBAAgB;YAChC,cAAc,EAAE,gBAAgB;YAChC,4BAA4B,EAAE,8BAA8B;YAC5D,cAAc,EAAE,gBAAgB;SACjC,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,SAAS;YAChB,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,QAAQ;YAClB,oBAAoB,EAAE,SAAS;YAC/B,cAAc,EAAE,QAAQ;YACxB,cAAc,EAAE,QAAQ;YACxB,4BAA4B,EAAE,SAAS;YACvC,cAAc,EAAE,SAAS;SAC1B,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAxGD,gEAwGC"}
1
+ {"version":3,"file":"ImageTranslationProRequest.js","sourceRoot":"","sources":["../../src/models/ImageTranslationProRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,0BAA2B,SAAQ,KAAK,CAAC,KAAK;IA6EzD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,OAAO;YACd,QAAQ,EAAE,UAAU;YACpB,QAAQ,EAAE,UAAU;YACpB,oBAAoB,EAAE,sBAAsB;YAC5C,cAAc,EAAE,gBAAgB;YAChC,cAAc,EAAE,gBAAgB;YAChC,4BAA4B,EAAE,8BAA8B;YAC5D,cAAc,EAAE,gBAAgB;SACjC,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,SAAS;YAChB,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,QAAQ;YAClB,oBAAoB,EAAE,SAAS;YAC/B,cAAc,EAAE,QAAQ;YACxB,cAAc,EAAE,QAAQ;YACxB,4BAA4B,EAAE,SAAS;YACvC,cAAc,EAAE,SAAS;SAC1B,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA9GD,gEA8GC"}
@@ -2,7 +2,7 @@ import * as $dara from '@darabonba/typescript';
2
2
  export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoGoodsRects extends $dara.Model {
3
3
  /**
4
4
  * @remarks
5
- * The rotation angle of the text box in degrees. A value less than 1 indicates a horizontal text box.
5
+ * The rotation angle of the text box, in degrees. A value less than 1 indicates a horizontal text box.
6
6
  *
7
7
  * @example
8
8
  * 0
@@ -54,7 +54,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoGoodsRec
54
54
  export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTextsImageRect extends $dara.Model {
55
55
  /**
56
56
  * @remarks
57
- * The rotation angle of the text box in degrees. A value less than 1 indicates a horizontal text box.
57
+ * The rotation angle of the text box, in degrees. A value less than 1 indicates a horizontal text box.
58
58
  *
59
59
  * @example
60
60
  * 0
@@ -106,7 +106,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextArea
106
106
  export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTextsTextRect extends $dara.Model {
107
107
  /**
108
108
  * @remarks
109
- * The rotation angle of the text box in degrees. A value less than 1 indicates a horizontal text box.
109
+ * The rotation angle of the text box, in degrees. A value less than 1 indicates a horizontal text box.
110
110
  *
111
111
  * @example
112
112
  * 0
@@ -158,7 +158,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextArea
158
158
  export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTexts extends $dara.Model {
159
159
  /**
160
160
  * @remarks
161
- * The text color after translation.
161
+ * The color of the translated text.
162
162
  *
163
163
  * @example
164
164
  * #515151
@@ -174,7 +174,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextArea
174
174
  fontsize?: number;
175
175
  /**
176
176
  * @remarks
177
- * The horizontal layout mode. Valid values: center, left, right.
177
+ * The horizontal layout. Valid values: center, left, right.
178
178
  *
179
179
  * @example
180
180
  * center
@@ -208,7 +208,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextArea
208
208
  textRect?: ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTextsTextRect;
209
209
  /**
210
210
  * @remarks
211
- * Indicates whether the TextItem is valid. The item is invalid when this value does not exist or is false.
211
+ * Indicates whether the TextItem is valid. The item is invalid if this value does not exist or is false.
212
212
  *
213
213
  * @example
214
214
  * true
@@ -224,7 +224,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextArea
224
224
  value?: string;
225
225
  /**
226
226
  * @remarks
227
- * The vertical layout mode. Valid values: center, top, down.
227
+ * The vertical layout. Valid values: center, top, down.
228
228
  *
229
229
  * @example
230
230
  * center
@@ -255,7 +255,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextArea
255
255
  * The original text before translation.
256
256
  *
257
257
  * @example
258
- * Cute Shape · Crisp Bell.
258
+ * 萌趣造型·清脆响铃
259
259
  */
260
260
  content?: string;
261
261
  /**
@@ -268,7 +268,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextArea
268
268
  fontsize?: number;
269
269
  /**
270
270
  * @remarks
271
- * The horizontal layout mode. Valid values: center, left, right.
271
+ * The horizontal layout. Valid values: center, left, right.
272
272
  *
273
273
  * @example
274
274
  * left
@@ -289,7 +289,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextArea
289
289
  texts?: ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTexts[];
290
290
  /**
291
291
  * @remarks
292
- * The vertical layout mode. Valid values: center, top, down.
292
+ * The vertical layout. Valid values: center, top, down.
293
293
  *
294
294
  * @example
295
295
  * center
@@ -324,7 +324,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfo extends
324
324
  languages?: string[];
325
325
  /**
326
326
  * @remarks
327
- * The URL of the image after all text has been erased.
327
+ * The URL of the image after all text has been inpainted.
328
328
  *
329
329
  * @example
330
330
  * http://dashscope-a717.oss-cn-beijing.aliyuncs.com/repaired.png
@@ -382,7 +382,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesResultList exten
382
382
  export declare class ImageTranslationProResponseBodyDataGenFiles extends $dara.Model {
383
383
  /**
384
384
  * @remarks
385
- * The editor information, which contains recognition information such as text areas, product areas, and fonts.
385
+ * The editor information, which contains recognized information such as text areas, product areas, and fonts.
386
386
  */
387
387
  editInfo?: ImageTranslationProResponseBodyDataGenFilesEditInfo;
388
388
  /**
@@ -412,7 +412,7 @@ export declare class ImageTranslationProResponseBodyDataGenFiles extends $dara.M
412
412
  export declare class ImageTranslationProResponseBodyDataResultList extends $dara.Model {
413
413
  /**
414
414
  * @remarks
415
- * The URL of the image translation result.
415
+ * The URL of the translated result image.
416
416
  *
417
417
  * @example
418
418
  * http://dashscope-a717.oss-cn-beijing.aliyuncs.com/xxx.jpg
@@ -458,7 +458,7 @@ export declare class ImageTranslationProResponseBodyData extends $dara.Model {
458
458
  taskId?: string;
459
459
  /**
460
460
  * @remarks
461
- * The usage information, which contains the number of processed images.
461
+ * The usage information, including the number of processed images.
462
462
  */
463
463
  usageMap?: {
464
464
  [key: string]: number;
@@ -477,7 +477,7 @@ export declare class ImageTranslationProResponseBodyData extends $dara.Model {
477
477
  export declare class ImageTranslationProResponseBody extends $dara.Model {
478
478
  /**
479
479
  * @remarks
480
- * The response code. 200 indicates a successful call. For other response codes, refer to the error code information.
480
+ * The response code. A value of 200 indicates a successful call. For other response codes, refer to the error code information.
481
481
  *
482
482
  * @example
483
483
  * 200
@@ -485,12 +485,12 @@ export declare class ImageTranslationProResponseBody extends $dara.Model {
485
485
  code?: string;
486
486
  /**
487
487
  * @remarks
488
- * The translation result data. ResultList contains the URLs of translation results, and GenFiles contains EditInfo with the recognized text information.
488
+ * The translation result data. ResultList contains the URL of the translation result. EditInfo in GenFiles contains the recognized text information.
489
489
  */
490
490
  data?: ImageTranslationProResponseBodyData;
491
491
  /**
492
492
  * @remarks
493
- * 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."
493
+ * 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."
494
494
  *
495
495
  * @example
496
496
  * Success
@@ -498,7 +498,7 @@ export declare class ImageTranslationProResponseBody extends $dara.Model {
498
498
  message?: string;
499
499
  /**
500
500
  * @remarks
501
- * The request ID, used to identify a unique request call.
501
+ * The request ID, which uniquely identifies the request.
502
502
  *
503
503
  * @example
504
504
  * 61785C32-80C2-19A3-9E55-2C3702C84B40
@@ -506,7 +506,7 @@ export declare class ImageTranslationProResponseBody extends $dara.Model {
506
506
  requestId?: string;
507
507
  /**
508
508
  * @remarks
509
- * Indicates whether the call is successful. true indicates success, and false indicates failure.
509
+ * Indicates whether the call is successful. A value of true indicates success. A value of false indicates failure.
510
510
  *
511
511
  * @example
512
512
  * true
@@ -2,7 +2,7 @@ import * as $dara from '@darabonba/typescript';
2
2
  export declare class ImageTranslationStandardRequest extends $dara.Model {
3
3
  /**
4
4
  * @remarks
5
- * 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.
5
+ * 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.
6
6
  *
7
7
  * @example
8
8
  * glossary_1
@@ -11,6 +11,9 @@ export declare class ImageTranslationStandardRequest extends $dara.Model {
11
11
  /**
12
12
  * @remarks
13
13
  * - Image URL: Must be publicly accessible.
14
+ * - Format: png, jpeg, jpg, bmp, webp
15
+ * - Pixels: Width and height must not exceed 4000
16
+ * - File size: Original file ≤ 10 MB
14
17
  *
15
18
  * This parameter is required.
16
19
  *
@@ -20,7 +23,7 @@ export declare class ImageTranslationStandardRequest extends $dara.Model {
20
23
  imageUrl?: string;
21
24
  /**
22
25
  * @remarks
23
- * 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.
26
+ * 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.
24
27
  *
25
28
  * @example
26
29
  * false
@@ -28,7 +31,7 @@ export declare class ImageTranslationStandardRequest extends $dara.Model {
28
31
  includingProductArea?: boolean;
29
32
  /**
30
33
  * @remarks
31
- * The source language code. Required. For supported language pairs, see the supported language pair list.
34
+ * The source language code. Required. For supported language directions, see [Language direction mapping table](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
32
35
  *
33
36
  * This parameter is required.
34
37
  *
@@ -38,7 +41,7 @@ export declare class ImageTranslationStandardRequest extends $dara.Model {
38
41
  sourceLanguage?: string;
39
42
  /**
40
43
  * @remarks
41
- * The target language code. Required. For supported language pairs, see the supported language pair list.
44
+ * The target language code. Required. For supported language directions, see [Language direction mapping table](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
42
45
  *
43
46
  * This parameter is required.
44
47
  *
@@ -48,7 +51,7 @@ export declare class ImageTranslationStandardRequest extends $dara.Model {
48
51
  targetLanguage?: string;
49
52
  /**
50
53
  * @remarks
51
- * Specifies whether to translate brand names on the image. Optional. Default value: false. This helps you protect brand name information from being translated.
54
+ * Specifies whether to translate brand names on images. Optional. Default value: false. This helps protect brand name information from being translated.
52
55
  *
53
56
  * @example
54
57
  * false
@@ -56,7 +59,7 @@ export declare class ImageTranslationStandardRequest extends $dara.Model {
56
59
  translatingBrandInTheProduct?: boolean;
57
60
  /**
58
61
  * @remarks
59
- * 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.
62
+ * 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.
60
63
  *
61
64
  * @example
62
65
  * false
@@ -1 +1 @@
1
- {"version":3,"file":"ImageTranslationStandardRequest.js","sourceRoot":"","sources":["../../src/models/ImageTranslationStandardRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,+BAAgC,SAAQ,KAAK,CAAC,KAAK;IA+D9D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,UAAU;YACpB,QAAQ,EAAE,UAAU;YACpB,oBAAoB,EAAE,sBAAsB;YAC5C,cAAc,EAAE,gBAAgB;YAChC,cAAc,EAAE,gBAAgB;YAChC,4BAA4B,EAAE,8BAA8B;YAC5D,cAAc,EAAE,gBAAgB;SACjC,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,QAAQ;YAClB,oBAAoB,EAAE,SAAS;YAC/B,cAAc,EAAE,QAAQ;YACxB,cAAc,EAAE,QAAQ;YACxB,4BAA4B,EAAE,SAAS;YACvC,cAAc,EAAE,SAAS;SAC1B,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA9FD,0EA8FC"}
1
+ {"version":3,"file":"ImageTranslationStandardRequest.js","sourceRoot":"","sources":["../../src/models/ImageTranslationStandardRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,+BAAgC,SAAQ,KAAK,CAAC,KAAK;IAkE9D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,UAAU;YACpB,QAAQ,EAAE,UAAU;YACpB,oBAAoB,EAAE,sBAAsB;YAC5C,cAAc,EAAE,gBAAgB;YAChC,cAAc,EAAE,gBAAgB;YAChC,4BAA4B,EAAE,8BAA8B;YAC5D,cAAc,EAAE,gBAAgB;SACjC,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,QAAQ;YAClB,oBAAoB,EAAE,SAAS;YAC/B,cAAc,EAAE,QAAQ;YACxB,cAAc,EAAE,QAAQ;YACxB,4BAA4B,EAAE,SAAS;YACvC,cAAc,EAAE,SAAS;SAC1B,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjGD,0EAiGC"}
@@ -174,7 +174,7 @@ export declare class ImageTranslationStandardResponseBodyDataEditInfoTextAreasTe
174
174
  * The text value.
175
175
  *
176
176
  * @example
177
- * Solid Wood Wardrobe.
177
+ * Solid Wood Wardrobe
178
178
  */
179
179
  value?: string;
180
180
  /**
@@ -272,7 +272,7 @@ export declare class ImageTranslationStandardResponseBodyDataEditInfo extends $d
272
272
  font?: string[];
273
273
  /**
274
274
  * @remarks
275
- * The product area rectangles.
275
+ * The product area rectangle.
276
276
  */
277
277
  goodsRects?: ImageTranslationStandardResponseBodyDataEditInfoGoodsRects;
278
278
  /**
@@ -293,7 +293,7 @@ export declare class ImageTranslationStandardResponseBodyDataEditInfo extends $d
293
293
  languages?: string[];
294
294
  /**
295
295
  * @remarks
296
- * The original image URL.
296
+ * The URL of the original image.
297
297
  *
298
298
  * @example
299
299
  * https://xiuxiu-pro.meitudata.com/posters/34d78f9157e5560a4d612949ca6f6485.jpg
@@ -301,7 +301,7 @@ export declare class ImageTranslationStandardResponseBodyDataEditInfo extends $d
301
301
  pictUrl?: string;
302
302
  /**
303
303
  * @remarks
304
- * The repaired image URL.
304
+ * The URL of the repaired image.
305
305
  *
306
306
  * @example
307
307
  * http://dashscope-a717.oss-cn-beijing.aliyuncs.com/xxx.png
@@ -355,7 +355,7 @@ export declare class ImageTranslationStandardResponseBodyData extends $dara.Mode
355
355
  editInfo?: ImageTranslationStandardResponseBodyDataEditInfo;
356
356
  /**
357
357
  * @remarks
358
- * The URL of the image generated after image translation.
358
+ * The URL of the image generated from the image translation result.
359
359
  *
360
360
  * @example
361
361
  * http://dashscope-a717.oss-cn-beijing.aliyuncs.com/xxx.jpg
@@ -363,7 +363,7 @@ export declare class ImageTranslationStandardResponseBodyData extends $dara.Mode
363
363
  imageUrl?: string;
364
364
  /**
365
365
  * @remarks
366
- * The usage information, including the number of images processed.
366
+ * The usage information, including the number of processed images.
367
367
  *
368
368
  * @example
369
369
  * {"ProcessedImageCount":1}
@@ -398,7 +398,7 @@ export declare class ImageTranslationStandardResponseBody extends $dara.Model {
398
398
  data?: ImageTranslationStandardResponseBodyData;
399
399
  /**
400
400
  * @remarks
401
- * The error message. Returns "Success" for successful calls, and returns specific error information for failed calls.
401
+ * The error message. "Success" is returned for successful calls, and a specific error message is returned for failed calls.
402
402
  *
403
403
  * @example
404
404
  * Success
@@ -406,7 +406,7 @@ export declare class ImageTranslationStandardResponseBody extends $dara.Model {
406
406
  message?: string;
407
407
  /**
408
408
  * @remarks
409
- * The request ID, which uniquely identifies the request.
409
+ * The request ID, used to uniquely identify a request.
410
410
  *
411
411
  * @example
412
412
  * 1CEC4D94-905A-1ED1-A7B4-1BFEFFB3D850
@@ -2,12 +2,20 @@ import * as $dara from '@darabonba/typescript';
2
2
  export declare class LanguageDetectRequest extends $dara.Model {
3
3
  /**
4
4
  * @remarks
5
- * The source text for language detection. This parameter is required.
5
+ * Optional. Set this parameter to query (case-insensitive) to use the new model. If this parameter is not specified or an invalid value is passed, the default value common (general language detection) is used.
6
+ *
7
+ * @example
8
+ * query
9
+ */
10
+ scene?: string;
11
+ /**
12
+ * @remarks
13
+ * The source text to be identified. This parameter is required.
6
14
  *
7
15
  * This parameter is required.
8
16
  *
9
17
  * @example
10
- * 测试文本
18
+ * Sample text
11
19
  */
12
20
  sourceText?: string;
13
21
  static names(): {
@@ -39,11 +39,13 @@ const $dara = __importStar(require("@darabonba/typescript"));
39
39
  class LanguageDetectRequest extends $dara.Model {
40
40
  static names() {
41
41
  return {
42
+ scene: 'Scene',
42
43
  sourceText: 'SourceText',
43
44
  };
44
45
  }
45
46
  static types() {
46
47
  return {
48
+ scene: 'string',
47
49
  sourceText: 'string',
48
50
  };
49
51
  }
@@ -1 +1 @@
1
- {"version":3,"file":"LanguageDetectRequest.js","sourceRoot":"","sources":["../../src/models/LanguageDetectRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,qBAAsB,SAAQ,KAAK,CAAC,KAAK;IAWpD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,YAAY;SACzB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,QAAQ;SACrB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA9BD,sDA8BC"}
1
+ {"version":3,"file":"LanguageDetectRequest.js","sourceRoot":"","sources":["../../src/models/LanguageDetectRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,qBAAsB,SAAQ,KAAK,CAAC,KAAK;IAmBpD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,OAAO;YACd,UAAU,EAAE,YAAY;SACzB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,QAAQ;YACf,UAAU,EAAE,QAAQ;SACrB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAxCD,sDAwCC"}