@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
@@ -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
+ * 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.
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
  }
@@ -48,7 +48,7 @@ export class LanguageDetectResponseBodyData extends $dara.Model {
48
48
  export class LanguageDetectResponseBody extends $dara.Model {
49
49
  /**
50
50
  * @remarks
51
- * The response code. A value of 200 indicates success. For other response codes, refer to the error code documentation.
51
+ * The response code. A value of 200 indicates a successful call. For other response codes, refer to the error code information.
52
52
  *
53
53
  * @example
54
54
  * 200
@@ -56,12 +56,12 @@ export class LanguageDetectResponseBody extends $dara.Model {
56
56
  code?: string;
57
57
  /**
58
58
  * @remarks
59
- * The language detection result data, including the detected language and usage information.
59
+ * The language identification result data, including the detected language and usage information.
60
60
  */
61
61
  data?: LanguageDetectResponseBodyData;
62
62
  /**
63
63
  * @remarks
64
- * The error message. Returns "Success" for successful calls. Returns a specific error message for failed calls, such as "The parameters contain sensitive information. Try other input.".
64
+ * The error message. "Success" is returned for a successful call. A specific error message is returned for a failed call, such as "The parameters contain sensitive information. Try other input."
65
65
  *
66
66
  * @example
67
67
  * Success
@@ -77,9 +77,7 @@ export class LanguageDetectResponseBody extends $dara.Model {
77
77
  requestId?: string;
78
78
  /**
79
79
  * @remarks
80
- * Indicates whether the call was successful. Valid values:
81
- * - true: Successful.
82
- * - false: Failed.
80
+ * Indicates whether the call is successful. A value of true indicates success. A value of false indicates failure.
83
81
  *
84
82
  * @example
85
83
  * true
@@ -13,7 +13,7 @@ export class MaterialInspectionRequest extends $dara.Model {
13
13
  apiId?: string;
14
14
  /**
15
15
  * @remarks
16
- * The URL of the reference image. When this parameter is not empty, multi-image comparison mode is used.
16
+ * The URL of the reference image. Optional. When this parameter is not empty, the system performs multi-image differential comparison.
17
17
  *
18
18
  * @example
19
19
  * https://example.com/reference.jpg
@@ -21,7 +21,7 @@ export class MaterialInspectionRequest extends $dara.Model {
21
21
  imageRefer?: string;
22
22
  /**
23
23
  * @remarks
24
- * The URL of the target image to inspect.
24
+ * The URL of the target image to be inspected.
25
25
  *
26
26
  * This parameter is required.
27
27
  *
@@ -31,7 +31,7 @@ export class MaterialInspectionRequest extends $dara.Model {
31
31
  imageUrl?: string;
32
32
  /**
33
33
  * @remarks
34
- * The business request identity. This value is returned as-is in the response for Tracing Analysis purposes.
34
+ * The business request identity. Optional. This value is returned as-is in the response for Tracing Analysis purposes.
35
35
  *
36
36
  * @example
37
37
  * req-2026-06-04-001
@@ -39,10 +39,10 @@ export class MaterialInspectionRequest extends $dara.Model {
39
39
  reqId?: string;
40
40
  /**
41
41
  * @remarks
42
- * The rule prompt in natural language that defines the inspection criteria.
42
+ * The rule prompt in natural language that describes the inspection criteria.
43
43
  *
44
44
  * @example
45
- * 门型展架必须摆放在入口区域;功能台卡必须摆放在中柜台面
45
+ * The door-shaped display stand must be placed in the entrance area; the functional display card must be placed on the counter surface
46
46
  */
47
47
  rules?: string;
48
48
  static names(): { [key: string]: string } {
@@ -5,7 +5,10 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class MaterialInspectionResponseBodyDataResultSteps extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The step result. Valid values: PASS, FAIL, and UNABLE_TO_JUDGE.
8
+ * The determination result of the step. Valid values:
9
+ * - PASS: The step is compliant.
10
+ * - FAIL: The step is non-compliant.
11
+ * - UNABLE_TO_JUDGE: The system cannot determine the result.
9
12
  *
10
13
  * @example
11
14
  * PASS
@@ -45,7 +48,7 @@ export class MaterialInspectionResponseBodyDataResultSteps extends $dara.Model {
45
48
  export class MaterialInspectionResponseBodyDataResult extends $dara.Model {
46
49
  /**
47
50
  * @remarks
48
- * The natural language summary, such as "1 rule: 1 PASS, all inspection items are compliant."
51
+ * The natural language summary of the inspection result, such as "1 rule: 1 PASS, all inspection items are compliant."
49
52
  *
50
53
  * @example
51
54
  * 1项规则:1 PASS,所有检测项合规
@@ -53,7 +56,9 @@ export class MaterialInspectionResponseBodyDataResult extends $dara.Model {
53
56
  evidence?: string;
54
57
  /**
55
58
  * @remarks
56
- * The overall result. Valid values: PASS and FAIL.
59
+ * The overall determination result. Valid values:
60
+ * - PASS: All inspection items are compliant.
61
+ * - FAIL: One or more inspection items are non-compliant.
57
62
  *
58
63
  * @example
59
64
  * PASS
@@ -74,7 +79,7 @@ export class MaterialInspectionResponseBodyDataResult extends $dara.Model {
74
79
  steps?: MaterialInspectionResponseBodyDataResultSteps[];
75
80
  /**
76
81
  * @remarks
77
- * The detection type.
82
+ * The detection type that indicates the identified material category.
78
83
  *
79
84
  * @example
80
85
  * Stamp
@@ -158,7 +163,7 @@ export class MaterialInspectionResponseBodyData extends $dara.Model {
158
163
  export class MaterialInspectionResponseBody extends $dara.Model {
159
164
  /**
160
165
  * @remarks
161
- * The error code. This parameter is not returned for successful calls.
166
+ * The error code. This parameter is not returned if the call is successful.
162
167
  *
163
168
  * @example
164
169
  * 200
@@ -171,7 +176,7 @@ export class MaterialInspectionResponseBody extends $dara.Model {
171
176
  data?: MaterialInspectionResponseBodyData;
172
177
  /**
173
178
  * @remarks
174
- * The error message. This parameter is not returned for successful calls.
179
+ * The error message. This parameter is not returned if the call is successful.
175
180
  *
176
181
  * @example
177
182
  * OK
@@ -187,7 +192,9 @@ export class MaterialInspectionResponseBody extends $dara.Model {
187
192
  requestId?: string;
188
193
  /**
189
194
  * @remarks
190
- * Indicates whether the call was successful. Valid values: true: The call was successful. false: The call failed.
195
+ * Indicates whether the call is successful. Valid values:
196
+ * - true: The call is successful.
197
+ * - false: The call failed.
191
198
  *
192
199
  * @example
193
200
  * True
@@ -13,7 +13,7 @@ export class MerchandisePlacementDetectionRequest extends $dara.Model {
13
13
  apiId?: string;
14
14
  /**
15
15
  * @remarks
16
- * The URL of the shelf or floor-stack image to be recognized (accessible via the public network or OSS).
16
+ * The URL of the shelf or floor-stack image to be recognized (accessible over the public network or from OSS).
17
17
  *
18
18
  * This parameter is required.
19
19
  *
@@ -23,7 +23,7 @@ export class MerchandisePlacementDetectionRequest extends $dara.Model {
23
23
  imageUrl?: string;
24
24
  /**
25
25
  * @remarks
26
- * The customer-specific SKU vector library ID that determines which library to retrieve from. The library must be created in advance through the library creation process.
26
+ * The ID of the customer\\"s dedicated SKU vector library, which determines which library is used for retrieval. The library must be created in advance through the library creation process.
27
27
  *
28
28
  * @example
29
29
  * rag_xxx
@@ -31,10 +31,10 @@ export class MerchandisePlacementDetectionRequest extends $dara.Model {
31
31
  ragId?: string;
32
32
  /**
33
33
  * @remarks
34
- * The business type (reserved for future routing by business line). The current release supports skincare & lotion.
34
+ * The business type (reserved for future routing by business line). The current phase supports skincare & lotion.
35
35
  *
36
36
  * @example
37
- * Lotion.
37
+ * 水乳
38
38
  */
39
39
  type?: string;
40
40
  static names(): { [key: string]: string } {
@@ -24,7 +24,7 @@ export class MerchandisePlacementDetectionResponseBodyDataDataTop1 extends $dara
24
24
  * The name of the recalled product.
25
25
  *
26
26
  * @example
27
- * Bright Milk 500ml.
27
+ * 光明牛奶500ml
28
28
  */
29
29
  skuName?: string;
30
30
  static names(): { [key: string]: string } {
@@ -82,7 +82,7 @@ export class MerchandisePlacementDetectionResponseBodyDataDataTopk extends $dara
82
82
  * The name of the recalled product.
83
83
  *
84
84
  * @example
85
- * Bright Milk 500ml.
85
+ * 光明牛奶500ml
86
86
  */
87
87
  skuName?: string;
88
88
  static names(): { [key: string]: string } {
@@ -115,7 +115,7 @@ export class MerchandisePlacementDetectionResponseBodyDataDataTopk extends $dara
115
115
  export class MerchandisePlacementDetectionResponseBodyDataData extends $dara.Model {
116
116
  /**
117
117
  * @remarks
118
- * The position coordinates of the detection box in the format [x1,y1,x2,y2].
118
+ * The position coordinates of the detection box in the format [x1, y1, x2, y2].
119
119
  */
120
120
  bbox?: number[];
121
121
  /**
@@ -198,7 +198,7 @@ export class MerchandisePlacementDetectionResponseBodyData extends $dara.Model {
198
198
  data?: MerchandisePlacementDetectionResponseBodyDataData[];
199
199
  /**
200
200
  * @remarks
201
- * The usage information. The key is the usage metric name, and the value is the count.
201
+ * The usage information. The key is the usage name and the value is the count.
202
202
  *
203
203
  * @example
204
204
  * {"ProcessingCount":1}
@@ -238,7 +238,7 @@ export class MerchandisePlacementDetectionResponseBodyData extends $dara.Model {
238
238
  export class MerchandisePlacementDetectionResponseBody extends $dara.Model {
239
239
  /**
240
240
  * @remarks
241
- * The error code. This parameter is not returned if the call is successful.
241
+ * The error code. This parameter is not returned for successful calls.
242
242
  *
243
243
  * @example
244
244
  * 200
@@ -251,7 +251,7 @@ export class MerchandisePlacementDetectionResponseBody extends $dara.Model {
251
251
  data?: MerchandisePlacementDetectionResponseBodyData;
252
252
  /**
253
253
  * @remarks
254
- * The error message. This parameter is not returned if the call is successful.
254
+ * The error message. This parameter is not returned for successful calls.
255
255
  *
256
256
  * @example
257
257
  * OK
@@ -267,8 +267,8 @@ export class MerchandisePlacementDetectionResponseBody extends $dara.Model {
267
267
  requestId?: string;
268
268
  /**
269
269
  * @remarks
270
- * Indicates whether the call is successful. Valid values:
271
- * - true: The call is successful.
270
+ * Indicates whether the call was successful. Valid values:
271
+ * - true: The call was successful.
272
272
  * - false: The call failed.
273
273
  *
274
274
  * @example
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class PackageWeightSizeCheckRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The URL of the annotated image, i.e., the image with blue/red rectangular bounding box lines overlaid on the original image by an operator. The URL must be publicly accessible. The image dimensions must not exceed 4000×4000 pixels, the file size must not exceed 10 MB, and the supported formats are PNG, JPEG, and JPG.
8
+ * The URL of the annotated image with manual bounding box markings, which is the original image overlaid with blue or red rectangular bounding box lines. The URL must be publicly accessible. The image must not exceed 4000 × 4000 pixels or 10 MB in size. Supported formats: png, jpeg, and jpg.
9
9
  *
10
10
  * This parameter is required.
11
11
  *
@@ -15,7 +15,7 @@ export class PackageWeightSizeCheckRequest extends $dara.Model {
15
15
  annotatedImageUrl?: string;
16
16
  /**
17
17
  * @remarks
18
- * The URL of the raw image, i.e., the unannotated photo of the parcel on the scanning platform. The URL must be publicly accessible. The image dimensions must not exceed 4000×4000 pixels, the file size must not exceed 10 MB, and the supported formats are PNG, JPEG, and JPG.
18
+ * The URL of the raw image, which is the unannotated photo of the parcel on the scanning platform. The URL must be publicly accessible. The image must not exceed 4000 × 4000 pixels or 10 MB in size. Supported formats: png, jpeg, and jpg.
19
19
  *
20
20
  * This parameter is required.
21
21
  *
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class PackageWeightSizeCheckResponseBodyData extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The asynchronous task ID, used to query the audit result later through QueryAsyncTaskResult.
8
+ * The asynchronous task ID, which is used to query the review result by calling QueryAsyncTaskResult.
9
9
  *
10
10
  * @example
11
11
  * a8323ada-a196-9061-976f-90e38b27323a
@@ -35,7 +35,7 @@ export class PackageWeightSizeCheckResponseBodyData extends $dara.Model {
35
35
  export class PackageWeightSizeCheckResponseBody extends $dara.Model {
36
36
  /**
37
37
  * @remarks
38
- * The response code. 200 indicates a successful call. For other response codes, refer to the error code information.
38
+ * The response code. A value of 200 indicates a successful call. For other response codes, refer to the error code information.
39
39
  *
40
40
  * @example
41
41
  * 200
@@ -43,12 +43,12 @@ export class PackageWeightSizeCheckResponseBody extends $dara.Model {
43
43
  code?: string;
44
44
  /**
45
45
  * @remarks
46
- * The asynchronous submission result data, which contains the asynchronous task ID.
46
+ * The submit status result data, which contains the asynchronous task ID.
47
47
  */
48
48
  data?: PackageWeightSizeCheckResponseBodyData;
49
49
  /**
50
50
  * @remarks
51
- * The error message. "Success" is returned for normal calls, and specific error information is returned for exceptions.
51
+ * The error message. "Success" is returned for a successful call. A specific error message is returned for a failed call.
52
52
  *
53
53
  * @example
54
54
  * Success
@@ -56,7 +56,7 @@ export class PackageWeightSizeCheckResponseBody extends $dara.Model {
56
56
  message?: string;
57
57
  /**
58
58
  * @remarks
59
- * The request ID, used to identify a unique request call.
59
+ * The request ID, which uniquely identifies the API call.
60
60
  *
61
61
  * @example
62
62
  * F93D82E4-D0B6-1043-AC58-282597BC3C10
@@ -64,7 +64,7 @@ export class PackageWeightSizeCheckResponseBody extends $dara.Model {
64
64
  requestId?: string;
65
65
  /**
66
66
  * @remarks
67
- * Whether the call was successful. true indicates success, and false indicates failure.
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