@alicloud/aidge20260428 5.6.0 → 5.7.1

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 (71) hide show
  1. package/dist/client.d.ts +199 -122
  2. package/dist/client.js +235 -122
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/AiTryOnRequest.d.ts +51 -0
  5. package/dist/models/AiTryOnRequest.js +64 -0
  6. package/dist/models/AiTryOnRequest.js.map +1 -0
  7. package/dist/models/AiTryOnResponse.d.ts +19 -0
  8. package/dist/models/AiTryOnResponse.js +69 -0
  9. package/dist/models/AiTryOnResponse.js.map +1 -0
  10. package/dist/models/AiTryOnResponseBody.d.ts +124 -0
  11. package/dist/models/AiTryOnResponseBody.js +120 -0
  12. package/dist/models/AiTryOnResponseBody.js.map +1 -0
  13. package/dist/models/AssetOptimizeLiteResponseBody.d.ts +0 -2
  14. package/dist/models/AssetOptimizeLiteResponseBody.js +0 -2
  15. package/dist/models/AssetOptimizeLiteResponseBody.js.map +1 -1
  16. package/dist/models/DocumentTranslateRequest.d.ts +1 -1
  17. package/dist/models/DocumentTranslateResponseBody.d.ts +2 -2
  18. package/dist/models/ImageRecognitionRequest.d.ts +4 -4
  19. package/dist/models/ImageRecognitionResponseBody.d.ts +2 -2
  20. package/dist/models/ImageRecognitionShrinkRequest.d.ts +4 -4
  21. package/dist/models/ImageTranslationProRequest.d.ts +8 -8
  22. package/dist/models/MerchandisePlacementDetectionRequest.d.ts +1 -0
  23. package/dist/models/MerchandisePlacementDetectionRequest.js +2 -0
  24. package/dist/models/MerchandisePlacementDetectionRequest.js.map +1 -1
  25. package/dist/models/PrepaidTextTranslateRequest.d.ts +1 -1
  26. package/dist/models/PrepaidTextTranslateResponseBody.d.ts +2 -2
  27. package/dist/models/PrepaidTextTranslateShrinkRequest.d.ts +1 -1
  28. package/dist/models/SizeChartExtractRequest.d.ts +2 -2
  29. package/dist/models/SizeChartExtractResponseBody.d.ts +1 -1
  30. package/dist/models/SizeChartExtractShrinkRequest.d.ts +2 -2
  31. package/dist/models/TextCorrectResponseBody.d.ts +1 -1
  32. package/dist/models/TextTranslateRequest.d.ts +11 -5
  33. package/dist/models/TextTranslateRequest.js.map +1 -1
  34. package/dist/models/TextTranslateResponseBody.d.ts +1 -1
  35. package/dist/models/TextTranslateShrinkRequest.d.ts +11 -5
  36. package/dist/models/TextTranslateShrinkRequest.js.map +1 -1
  37. package/dist/models/VideoTranslationRequest.d.ts +1 -1
  38. package/dist/models/VideoTranslationResponseBody.d.ts +1 -1
  39. package/dist/models/VideoTranslationShrinkRequest.d.ts +1 -1
  40. package/dist/models/VirtualTryOnResponseBody.d.ts +3 -3
  41. package/dist/models/model.d.ts +5 -0
  42. package/dist/models/model.js +14 -4
  43. package/dist/models/model.js.map +1 -1
  44. package/package.json +1 -1
  45. package/src/client.ts +242 -122
  46. package/src/models/AiTryOnRequest.ts +70 -0
  47. package/src/models/AiTryOnResponse.ts +40 -0
  48. package/src/models/AiTryOnResponseBody.ts +179 -0
  49. package/src/models/AssetOptimizeLiteResponseBody.ts +0 -2
  50. package/src/models/DocumentTranslateRequest.ts +1 -1
  51. package/src/models/DocumentTranslateResponseBody.ts +2 -2
  52. package/src/models/ImageRecognitionRequest.ts +4 -4
  53. package/src/models/ImageRecognitionResponseBody.ts +2 -2
  54. package/src/models/ImageRecognitionShrinkRequest.ts +4 -4
  55. package/src/models/ImageTranslationProRequest.ts +8 -8
  56. package/src/models/MerchandisePlacementDetectionRequest.ts +3 -0
  57. package/src/models/PrepaidTextTranslateRequest.ts +1 -1
  58. package/src/models/PrepaidTextTranslateResponseBody.ts +2 -2
  59. package/src/models/PrepaidTextTranslateShrinkRequest.ts +1 -1
  60. package/src/models/SizeChartExtractRequest.ts +2 -2
  61. package/src/models/SizeChartExtractResponseBody.ts +1 -1
  62. package/src/models/SizeChartExtractShrinkRequest.ts +2 -2
  63. package/src/models/TextCorrectResponseBody.ts +1 -1
  64. package/src/models/TextTranslateRequest.ts +11 -5
  65. package/src/models/TextTranslateResponseBody.ts +1 -1
  66. package/src/models/TextTranslateShrinkRequest.ts +11 -5
  67. package/src/models/VideoTranslationRequest.ts +1 -1
  68. package/src/models/VideoTranslationResponseBody.ts +1 -1
  69. package/src/models/VideoTranslationShrinkRequest.ts +1 -1
  70. package/src/models/VirtualTryOnResponseBody.ts +3 -3
  71. package/src/models/model.ts +5 -0
@@ -0,0 +1,70 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class AiTryOnRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The URL of the clothing image. Only one image is supported. The URL must be a publicly accessible `http`/`https` address. The image must be in JPG, JPEG, PNG, BMP, or WEBP format, with a resolution between 256 × 256 and 2049 × 2049 pixels, and a file size of no more than 10 MB.<br>
9
+ *
10
+ * This parameter is required.
11
+ *
12
+ * @example
13
+ * https://ae01.alicdn.com/kf/S342f0070dc9f4be09a6cbed34e90dc8fs.jpg
14
+ */
15
+ clothImageUrl?: string;
16
+ /**
17
+ * @remarks
18
+ * The clothing type. If specified, the value must be one of the following: tops/bottoms/dresses/tops_and_bottoms/shoes/hats. If not specified, the system automatically identifies the type.
19
+ *
20
+ * @example
21
+ * tops
22
+ */
23
+ clothType?: string;
24
+ /**
25
+ * @remarks
26
+ * The URL of the model image. Only one image is supported. The URL must be a publicly accessible `http`/`https` address. The image must be in JPG, JPEG, PNG, BMP, or WEBP format, with a resolution between 256 × 256 and 2049 × 2049 pixels, and a file size of no more than 10 MB.<br>
27
+ *
28
+ * This parameter is required.
29
+ *
30
+ * @example
31
+ * https://ae01.alicdn.com/kf/S342f0070dc9f4be09a6cbed34e90dc8fs.jpg
32
+ */
33
+ modelImageUrl?: string;
34
+ /**
35
+ * @remarks
36
+ * The output image resolution. The synchronous API supports only 1K.
37
+ *
38
+ * This parameter is required.
39
+ *
40
+ * @example
41
+ * 1K
42
+ */
43
+ resolution?: string;
44
+ static names(): { [key: string]: string } {
45
+ return {
46
+ clothImageUrl: 'ClothImageUrl',
47
+ clothType: 'ClothType',
48
+ modelImageUrl: 'ModelImageUrl',
49
+ resolution: 'Resolution',
50
+ };
51
+ }
52
+
53
+ static types(): { [key: string]: any } {
54
+ return {
55
+ clothImageUrl: 'string',
56
+ clothType: 'string',
57
+ modelImageUrl: 'string',
58
+ resolution: 'string',
59
+ };
60
+ }
61
+
62
+ validate() {
63
+ super.validate();
64
+ }
65
+
66
+ constructor(map?: { [key: string]: any }) {
67
+ super(map);
68
+ }
69
+ }
70
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { AiTryOnResponseBody } from "./AiTryOnResponseBody";
4
+
5
+
6
+ export class AiTryOnResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: AiTryOnResponseBody;
10
+ static names(): { [key: string]: string } {
11
+ return {
12
+ headers: 'headers',
13
+ statusCode: 'statusCode',
14
+ body: 'body',
15
+ };
16
+ }
17
+
18
+ static types(): { [key: string]: any } {
19
+ return {
20
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
21
+ statusCode: 'number',
22
+ body: AiTryOnResponseBody,
23
+ };
24
+ }
25
+
26
+ validate() {
27
+ if(this.headers) {
28
+ $dara.Model.validateMap(this.headers);
29
+ }
30
+ if(this.body && typeof (this.body as any).validate === 'function') {
31
+ (this.body as any).validate();
32
+ }
33
+ super.validate();
34
+ }
35
+
36
+ constructor(map?: { [key: string]: any }) {
37
+ super(map);
38
+ }
39
+ }
40
+
@@ -0,0 +1,179 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ /**
6
+ */
7
+ export class AiTryOnResponseBodyDataUsageMap extends $dara.Model {
8
+ /**
9
+ * @remarks
10
+ * The number of processed images.
11
+ *
12
+ * @example
13
+ * 1
14
+ */
15
+ processedImageCount?: number;
16
+ /**
17
+ * @remarks
18
+ * The resolution of the processed image.
19
+ *
20
+ * @example
21
+ * 1K
22
+ */
23
+ resolution?: string;
24
+ static names(): { [key: string]: string } {
25
+ return {
26
+ processedImageCount: 'ProcessedImageCount',
27
+ resolution: 'Resolution',
28
+ };
29
+ }
30
+
31
+ static types(): { [key: string]: any } {
32
+ return {
33
+ processedImageCount: 'number',
34
+ resolution: 'string',
35
+ };
36
+ }
37
+
38
+ validate() {
39
+ super.validate();
40
+ }
41
+
42
+ constructor(map?: { [key: string]: any }) {
43
+ super(map);
44
+ }
45
+ }
46
+
47
+ export class AiTryOnResponseBodyData extends $dara.Model {
48
+ /**
49
+ * @remarks
50
+ * The height of the result image, in pixels.
51
+ *
52
+ * @example
53
+ * 1360
54
+ */
55
+ imageHeight?: string;
56
+ /**
57
+ * @remarks
58
+ * The URL of the virtual try-on result image.
59
+ *
60
+ * @example
61
+ * https://example.com/virtual-try-on-result.png
62
+ */
63
+ imageUrl?: string;
64
+ /**
65
+ * @remarks
66
+ * The width of the result image, in pixels.
67
+ *
68
+ * @example
69
+ * 768
70
+ */
71
+ imageWidth?: string;
72
+ /**
73
+ * @remarks
74
+ * The usage details.
75
+ *
76
+ * @example
77
+ * {"ProcessedImageCount":1,"Resolution":"1K"}
78
+ */
79
+ usageMap?: AiTryOnResponseBodyDataUsageMap;
80
+ static names(): { [key: string]: string } {
81
+ return {
82
+ imageHeight: 'ImageHeight',
83
+ imageUrl: 'ImageUrl',
84
+ imageWidth: 'ImageWidth',
85
+ usageMap: 'UsageMap',
86
+ };
87
+ }
88
+
89
+ static types(): { [key: string]: any } {
90
+ return {
91
+ imageHeight: 'string',
92
+ imageUrl: 'string',
93
+ imageWidth: 'string',
94
+ usageMap: AiTryOnResponseBodyDataUsageMap,
95
+ };
96
+ }
97
+
98
+ validate() {
99
+ if(this.usageMap && typeof (this.usageMap as any).validate === 'function') {
100
+ (this.usageMap as any).validate();
101
+ }
102
+ super.validate();
103
+ }
104
+
105
+ constructor(map?: { [key: string]: any }) {
106
+ super(map);
107
+ }
108
+ }
109
+
110
+ export class AiTryOnResponseBody extends $dara.Model {
111
+ /**
112
+ * @remarks
113
+ * The error code. This parameter is not returned if the call is successful.
114
+ *
115
+ * @example
116
+ * 200
117
+ */
118
+ code?: string;
119
+ /**
120
+ * @remarks
121
+ * The result struct.
122
+ */
123
+ data?: AiTryOnResponseBodyData;
124
+ /**
125
+ * @remarks
126
+ * The error message. This parameter is not returned if the call is successful.
127
+ *
128
+ * @example
129
+ * OK
130
+ */
131
+ message?: string;
132
+ /**
133
+ * @remarks
134
+ * The request ID. Used to uniquely identify a request.
135
+ *
136
+ * @example
137
+ * E1AD60F1-BAC7-546B-9533-E7AD02B16E3F
138
+ */
139
+ requestId?: string;
140
+ /**
141
+ * @remarks
142
+ * Indicates whether the call is successful. Valid values: true and false.
143
+ *
144
+ * @example
145
+ * True
146
+ */
147
+ success?: boolean;
148
+ static names(): { [key: string]: string } {
149
+ return {
150
+ code: 'Code',
151
+ data: 'Data',
152
+ message: 'Message',
153
+ requestId: 'RequestId',
154
+ success: 'Success',
155
+ };
156
+ }
157
+
158
+ static types(): { [key: string]: any } {
159
+ return {
160
+ code: 'string',
161
+ data: AiTryOnResponseBodyData,
162
+ message: 'string',
163
+ requestId: 'string',
164
+ success: 'boolean',
165
+ };
166
+ }
167
+
168
+ validate() {
169
+ if(this.data && typeof (this.data as any).validate === 'function') {
170
+ (this.data as any).validate();
171
+ }
172
+ super.validate();
173
+ }
174
+
175
+ constructor(map?: { [key: string]: any }) {
176
+ super(map);
177
+ }
178
+ }
179
+
@@ -2,8 +2,6 @@
2
2
  import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
- /**
6
- */
7
5
  export class AssetOptimizeLiteResponseBodyData extends $dara.Model {
8
6
  /**
9
7
  * @remarks
@@ -19,7 +19,7 @@ export class DocumentTranslateRequest extends $dara.Model {
19
19
  fileType?: string;
20
20
  /**
21
21
  * @remarks
22
- * The glossary ID. Specify this parameter when you need the glossary feature. Supports custom translation results, including do-not-translate (ABC-ABC), specified translation (ABC-DEF), and skip translation (ABC-empty value). This is commonly used for scenarios such as brand name protection.
22
+ * The intervention glossary ID. Specify this parameter when you need the intervention feature. Supports custom translation results, including do-not-translate (ABC-ABC), specified translation (ABC-DEF), and skip translation (ABC-empty value). This is commonly used for brand name protection and similar scenarios.
23
23
  *
24
24
  * @example
25
25
  * glossary_1
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class DocumentTranslateResponseBodyData extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The unique identifier of the asynchronous task. Use this ID to query the task status and result.
8
+ * The unique identifier of the asynchronous task. Use this ID to query the task status and results.
9
9
  *
10
10
  * @example
11
11
  * 6071a030-5c92-9df1-96d0-44952343439a
@@ -57,7 +57,7 @@ export class DocumentTranslateResponseBody extends $dara.Model {
57
57
  message?: string;
58
58
  /**
59
59
  * @remarks
60
- * The unique request identity, used for troubleshooting and Tracing Analysis.
60
+ * The unique request identity. Use this ID for troubleshooting and Tracing Analysis.
61
61
  *
62
62
  * @example
63
63
  * 39E8A74B-F99E-1195-A5FF-3ECC5F94F304
@@ -15,7 +15,7 @@ export class ImageRecognitionRequest extends $dara.Model {
15
15
  imageUrl?: string;
16
16
  /**
17
17
  * @remarks
18
- * The list of non-subject element types to detect. Valid values: 1 (background), 2 (border), 3 (watermark), and 4 (splice).
18
+ * The element types to detect on the non-subject area of the image (1: watermark, 2: logo, 3: text, 4: text-containing color block). You can select multiple element types. This parameter and ObjectDetectElements cannot both be empty.
19
19
  *
20
20
  * @example
21
21
  * [1,2,3,4]
@@ -23,7 +23,7 @@ export class ImageRecognitionRequest extends $dara.Model {
23
23
  nonObjectDetectElements?: number[];
24
24
  /**
25
25
  * @remarks
26
- * The list of subject element types to detect. Valid values: 1 (product subject), 2 (model), 3 (text), and 4 (logo).
26
+ * The element types to detect on the image subject (1: watermark, 2: logo, 3: text, 4: text-containing color block). You can select multiple element types.
27
27
  *
28
28
  * @example
29
29
  * [1,2,3,4]
@@ -47,7 +47,7 @@ export class ImageRecognitionRequest extends $dara.Model {
47
47
  returnCharacter?: number;
48
48
  /**
49
49
  * @remarks
50
- * Specifies whether to return text property information. Valid values: 1 (return) and 0 (do not return).
50
+ * Specifies whether to return text attribute information. Valid values: 1 (return) and 0 (do not return).
51
51
  *
52
52
  * @example
53
53
  * 1
@@ -63,7 +63,7 @@ export class ImageRecognitionRequest extends $dara.Model {
63
63
  returnProductNum?: number;
64
64
  /**
65
65
  * @remarks
66
- * Specifies whether to return product property information. Valid values: 1 (return) and 0 (do not return).
66
+ * Specifies whether to return product attribute information. Valid values: 1 (return) and 0 (do not return).
67
67
  *
68
68
  * @example
69
69
  * 1
@@ -85,7 +85,7 @@ export class ImageRecognitionResponseBodyData extends $dara.Model {
85
85
  pdNum?: number;
86
86
  /**
87
87
  * @remarks
88
- * The proportion of the product area in the image.
88
+ * The proportion of the product in the image.
89
89
  *
90
90
  * @example
91
91
  * 74.15%
@@ -98,7 +98,7 @@ export class ImageRecognitionResponseBodyData extends $dara.Model {
98
98
  recText?: string[];
99
99
  /**
100
100
  * @remarks
101
- * The proportion of the text area in the image.
101
+ * The proportion of text in the image.
102
102
  *
103
103
  * @example
104
104
  * 7.52%
@@ -15,7 +15,7 @@ export class ImageRecognitionShrinkRequest extends $dara.Model {
15
15
  imageUrl?: string;
16
16
  /**
17
17
  * @remarks
18
- * The list of non-subject element types to detect. Valid values: 1 (background), 2 (border), 3 (watermark), and 4 (splice).
18
+ * The element types to detect on the non-subject area of the image (1: watermark, 2: logo, 3: text, 4: text-containing color block). You can select multiple element types. This parameter and ObjectDetectElements cannot both be empty.
19
19
  *
20
20
  * @example
21
21
  * [1,2,3,4]
@@ -23,7 +23,7 @@ export class ImageRecognitionShrinkRequest extends $dara.Model {
23
23
  nonObjectDetectElementsShrink?: string;
24
24
  /**
25
25
  * @remarks
26
- * The list of subject element types to detect. Valid values: 1 (product subject), 2 (model), 3 (text), and 4 (logo).
26
+ * The element types to detect on the image subject (1: watermark, 2: logo, 3: text, 4: text-containing color block). You can select multiple element types.
27
27
  *
28
28
  * @example
29
29
  * [1,2,3,4]
@@ -47,7 +47,7 @@ export class ImageRecognitionShrinkRequest extends $dara.Model {
47
47
  returnCharacter?: number;
48
48
  /**
49
49
  * @remarks
50
- * Specifies whether to return text property information. Valid values: 1 (return) and 0 (do not return).
50
+ * Specifies whether to return text attribute information. Valid values: 1 (return) and 0 (do not return).
51
51
  *
52
52
  * @example
53
53
  * 1
@@ -63,7 +63,7 @@ export class ImageRecognitionShrinkRequest extends $dara.Model {
63
63
  returnProductNum?: number;
64
64
  /**
65
65
  * @remarks
66
- * Specifies whether to return product property information. Valid values: 1 (return) and 0 (do not return).
66
+ * Specifies whether to return product attribute information. Valid values: 1 (return) and 0 (do not return).
67
67
  *
68
68
  * @example
69
69
  * 1
@@ -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). If you set this parameter to true, the API immediately returns a TaskId. Use the query translation result API to retrieve 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. 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 ID of the intervention glossary. This parameter is optional. Create the glossary in the console and provide its ID. If the glossary ID is empty, the translation results are not modified.
16
+ * The ID of the intervention glossary. This parameter is optional. 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
@@ -26,7 +26,7 @@ export class ImageTranslationProRequest extends $dara.Model {
26
26
  * Image requirements:
27
27
  * - Image URL: Must be publicly accessible.
28
28
  * - Format: png, jpeg, jpg, bmp, or webp.
29
- * - Pixels: Width and height must not exceed 4000 pixels each.
29
+ * - Pixels: Both width and height must not exceed 4000.
30
30
  * - File size: The original file must be 10 MB or smaller.
31
31
  *
32
32
  * This parameter is required.
@@ -37,7 +37,7 @@ export class ImageTranslationProRequest extends $dara.Model {
37
37
  imageUrl?: string;
38
38
  /**
39
39
  * @remarks
40
- * Specifies whether to translate text on the image subject. This parameter is optional. Default value: false. This helps protect information such as embedded product names from being translated.
40
+ * Specifies whether to translate text on the image subject. This parameter is optional. Default value: false. This helps you protect information and avoid translating embedded information such as product names.
41
41
  *
42
42
  * @example
43
43
  * false
@@ -45,7 +45,7 @@ export class ImageTranslationProRequest extends $dara.Model {
45
45
  includingProductArea?: boolean;
46
46
  /**
47
47
  * @remarks
48
- * The source language code. This parameter is required. For supported language directions, see [Language Direction Mapping Table](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
48
+ * The source language code. This parameter is required. For supported language directions, see [Language direction mapping](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
49
49
  *
50
50
  * This parameter is required.
51
51
  *
@@ -55,7 +55,7 @@ export class ImageTranslationProRequest extends $dara.Model {
55
55
  sourceLanguage?: string;
56
56
  /**
57
57
  * @remarks
58
- * The target language code. This parameter is required. For supported language directions, see [Language Direction Mapping Table](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
58
+ * The target language code. This parameter is required. For supported language directions, see [Language direction mapping](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
59
59
  *
60
60
  * This parameter is required.
61
61
  *
@@ -65,7 +65,7 @@ export class ImageTranslationProRequest extends $dara.Model {
65
65
  targetLanguage?: string;
66
66
  /**
67
67
  * @remarks
68
- * Specifies whether to translate brand names on the image. This parameter is optional. Default value: false. This helps protect brand name information from being translated.
68
+ * Specifies whether to translate brand names on images. This parameter is optional. Default value: false. This helps you protect brand name information from being translated.
69
69
  *
70
70
  * @example
71
71
  * false
@@ -73,7 +73,7 @@ export class ImageTranslationProRequest extends $dara.Model {
73
73
  translatingBrandInTheProduct?: boolean;
74
74
  /**
75
75
  * @remarks
76
- * Specifies whether to return layout information such as text position, font, and color. Set this parameter to true to retrieve layer information for secondary editing with an image editor. 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.
77
77
  *
78
78
  * @example
79
79
  * false
@@ -29,6 +29,7 @@ export class MerchandisePlacementDetectionRequest extends $dara.Model {
29
29
  * rag_xxx
30
30
  */
31
31
  ragId?: string;
32
+ rule?: string;
32
33
  /**
33
34
  * @remarks
34
35
  * The business type (reserved for future routing by business line). The current release supports skincare.
@@ -42,6 +43,7 @@ export class MerchandisePlacementDetectionRequest extends $dara.Model {
42
43
  apiId: 'ApiId',
43
44
  imageUrl: 'ImageUrl',
44
45
  ragId: 'RagId',
46
+ rule: 'Rule',
45
47
  type: 'Type',
46
48
  };
47
49
  }
@@ -51,6 +53,7 @@ export class MerchandisePlacementDetectionRequest extends $dara.Model {
51
53
  apiId: 'string',
52
54
  imageUrl: 'string',
53
55
  ragId: 'string',
56
+ rule: 'string',
54
57
  type: 'string',
55
58
  };
56
59
  }
@@ -57,7 +57,7 @@ export class PrepaidTextTranslateRequest extends $dara.Model {
57
57
  targetLanguage?: string;
58
58
  /**
59
59
  * @remarks
60
- * The format of the translation text. html (web page format. This setting processes the source text and translated text in HTML format). text (text format. This setting processes the source text and translated text as plain text without any format processing).
60
+ * The format of the translation text. Valid values: html (web page format. This setting processes both the source text and translated text in HTML format) and text (text format. This setting processes both the source text and translated text as plain text without any format processing).
61
61
  *
62
62
  * @example
63
63
  * e-commerce-title
@@ -24,7 +24,7 @@ export class PrepaidTextTranslateResponseBodyDataTranslations extends $dara.Mode
24
24
  * The translated text.
25
25
  *
26
26
  * @example
27
- * 你好世界
27
+ * Hello World
28
28
  */
29
29
  translatedText?: string;
30
30
  static names(): { [key: string]: string } {
@@ -60,7 +60,7 @@ export class PrepaidTextTranslateResponseBodyData extends $dara.Model {
60
60
  translations?: PrepaidTextTranslateResponseBodyDataTranslations[];
61
61
  /**
62
62
  * @remarks
63
- * The usage information, including the number of input characters.
63
+ * The usage information, including the input character count.
64
64
  */
65
65
  usageMap?: { [key: string]: number };
66
66
  static names(): { [key: string]: string } {
@@ -57,7 +57,7 @@ export class PrepaidTextTranslateShrinkRequest extends $dara.Model {
57
57
  targetLanguage?: string;
58
58
  /**
59
59
  * @remarks
60
- * The format of the translation text. html (web page format. This setting processes the source text and translated text in HTML format). text (text format. This setting processes the source text and translated text as plain text without any format processing).
60
+ * The format of the translation text. Valid values: html (web page format. This setting processes both the source text and translated text in HTML format) and text (text format. This setting processes both the source text and translated text as plain text without any format processing).
61
61
  *
62
62
  * @example
63
63
  * e-commerce-title
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class SizeChartExtractRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The list of column names (such as Size, Bust, Length).
8
+ * The list of column names (such as Size, Bust, and Length).
9
9
  *
10
10
  * @example
11
11
  * ["Size","Bust","Length"]
@@ -23,7 +23,7 @@ export class SizeChartExtractRequest extends $dara.Model {
23
23
  imageUrl?: string;
24
24
  /**
25
25
  * @remarks
26
- * The language model for output (such as en, cn). Set this parameter to cn for Chinese or en for English. If not specified, the original language is preserved.
26
+ * The language model (such as en and cn).
27
27
  *
28
28
  * @example
29
29
  * en
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class SizeChartExtractResponseBodyData extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The asynchronous task ID, used to query the result later.
8
+ * The asynchronous task ID, which is used to query the result later.
9
9
  *
10
10
  * @example
11
11
  * task-xxxxx
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class SizeChartExtractShrinkRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The list of column names (such as Size, Bust, Length).
8
+ * The list of column names (such as Size, Bust, and Length).
9
9
  *
10
10
  * @example
11
11
  * ["Size","Bust","Length"]
@@ -23,7 +23,7 @@ export class SizeChartExtractShrinkRequest extends $dara.Model {
23
23
  imageUrl?: string;
24
24
  /**
25
25
  * @remarks
26
- * The language model for output (such as en, cn). Set this parameter to cn for Chinese or en for English. If not specified, the original language is preserved.
26
+ * The language model (such as en and cn).
27
27
  *
28
28
  * @example
29
29
  * en
@@ -61,7 +61,7 @@ export class TextCorrectResponseBody extends $dara.Model {
61
61
  data?: TextCorrectResponseBodyData;
62
62
  /**
63
63
  * @remarks
64
- * The error message. The value "Success" is returned if the call is successful. A specific error message is returned if an exception occurs, such as "The parameters contain sensitive information. Try other input."
64
+ * The error message. The value "Success" is returned if the call is successful. If an error occurs, a specific error message is returned, such as "The parameters contain sensitive information. Try other input."
65
65
  *
66
66
  * @example
67
67
  * Success
@@ -13,7 +13,7 @@ export class TextTranslateRequest extends $dara.Model {
13
13
  bizName?: string;
14
14
  /**
15
15
  * @remarks
16
- * The format type of the source text. This parameter is optional. Valid values: text (plain text format) and html (web page format, which preserves HTML tags).
16
+ * The format type of the source text. This parameter is optional. Valid values: text (plain text format) and html (web page format that preserves HTML tags).
17
17
  *
18
18
  * @example
19
19
  * text
@@ -21,7 +21,7 @@ export class TextTranslateRequest extends $dara.Model {
21
21
  formatType?: string;
22
22
  /**
23
23
  * @remarks
24
- * The intervention glossary ID. This parameter is optional. The glossary must be created separately in the console, and its ID must be provided. If the glossary ID is empty, the translation results are not modified.
24
+ * The intervention glossary ID. This parameter is 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.
25
25
  *
26
26
  * @example
27
27
  * glossary_1
@@ -29,7 +29,7 @@ export class TextTranslateRequest extends $dara.Model {
29
29
  glossary?: string;
30
30
  /**
31
31
  * @remarks
32
- * The source language code. This parameter is optional. If not specified, the language is automatically detected. You can set this parameter to auto for language detection. For supported language directions, see [Language direction mapping table](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
32
+ * The source language code. If not specified, the language is automatically detected. This parameter is optional. You can set it to auto for language detection. For supported language directions, see [Language direction mapping table](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
33
33
  *
34
34
  * @example
35
35
  * auto
@@ -37,7 +37,7 @@ export class TextTranslateRequest extends $dara.Model {
37
37
  sourceLanguage?: string;
38
38
  /**
39
39
  * @remarks
40
- * The list of texts to translate. This parameter is required. The total character length cannot exceed 50,000, and the list length cannot exceed 50.
40
+ * The list of texts to be translated. This parameter is required. The total character length cannot exceed 50,000, and the list length cannot exceed 50.
41
41
  *
42
42
  * This parameter is required.
43
43
  *
@@ -57,7 +57,13 @@ export class TextTranslateRequest extends $dara.Model {
57
57
  targetLanguage?: string;
58
58
  /**
59
59
  * @remarks
60
- * The business scenario identifier. You can pass in only one of the following values. When specified, the translation engine invokes the corresponding industry terminology library and style strategy to produce translations that better fit the industry. If this field is not specified or an invalid value is passed, the general translation strategy is used. Valid values: e-commerce-title (cross-border e-commerce product title translation), e-commerce-description (cross-border e-commerce product description translation), e-commerce-chat (cross-border e-commerce conversation translation), e-commerce-cpv (cross-border e-commerce product CPV attribute translation), novel (novel translation), game (game translation).
60
+ * The business scenario identifier. You can pass in only one of the following values. When specified, the translation engine invokes the corresponding industry terminology library and style strategy to produce translations that better fit the industry. If this field is not specified or an invalid value is passed, the general translation strategy is used. Valid values:
61
+ * - e-commerce-title: cross-border e-commerce product title translation.
62
+ * - e-commerce-description: cross-border e-commerce product description translation.
63
+ * - e-commerce-chat: cross-border e-commerce conversation translation.
64
+ * - e-commerce-cpv: cross-border e-commerce product CPV attribute translation.
65
+ * - novel: novel translation.
66
+ * - game: game translation.
61
67
  *
62
68
  * @example
63
69
  * e-commerce-title