@alicloud/aidge20260428 5.6.0 → 5.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/dist/client.d.ts +137 -122
  2. package/dist/client.js +170 -122
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/AiTryOnRequest.d.ts +42 -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 +90 -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/PrepaidTextTranslateRequest.d.ts +1 -1
  23. package/dist/models/PrepaidTextTranslateResponseBody.d.ts +2 -2
  24. package/dist/models/PrepaidTextTranslateShrinkRequest.d.ts +1 -1
  25. package/dist/models/SizeChartExtractRequest.d.ts +2 -2
  26. package/dist/models/SizeChartExtractResponseBody.d.ts +1 -1
  27. package/dist/models/SizeChartExtractShrinkRequest.d.ts +2 -2
  28. package/dist/models/TextCorrectResponseBody.d.ts +1 -1
  29. package/dist/models/TextTranslateRequest.d.ts +11 -5
  30. package/dist/models/TextTranslateRequest.js.map +1 -1
  31. package/dist/models/TextTranslateResponseBody.d.ts +1 -1
  32. package/dist/models/TextTranslateShrinkRequest.d.ts +11 -5
  33. package/dist/models/TextTranslateShrinkRequest.js.map +1 -1
  34. package/dist/models/VideoTranslationRequest.d.ts +1 -1
  35. package/dist/models/VideoTranslationResponseBody.d.ts +1 -1
  36. package/dist/models/VideoTranslationShrinkRequest.d.ts +1 -1
  37. package/dist/models/VirtualTryOnResponseBody.d.ts +3 -3
  38. package/dist/models/model.d.ts +5 -0
  39. package/dist/models/model.js +14 -4
  40. package/dist/models/model.js.map +1 -1
  41. package/package.json +1 -1
  42. package/src/client.ts +176 -122
  43. package/src/models/AiTryOnRequest.ts +61 -0
  44. package/src/models/AiTryOnResponse.ts +40 -0
  45. package/src/models/AiTryOnResponseBody.ts +145 -0
  46. package/src/models/AssetOptimizeLiteResponseBody.ts +0 -2
  47. package/src/models/DocumentTranslateRequest.ts +1 -1
  48. package/src/models/DocumentTranslateResponseBody.ts +2 -2
  49. package/src/models/ImageRecognitionRequest.ts +4 -4
  50. package/src/models/ImageRecognitionResponseBody.ts +2 -2
  51. package/src/models/ImageRecognitionShrinkRequest.ts +4 -4
  52. package/src/models/ImageTranslationProRequest.ts +8 -8
  53. package/src/models/PrepaidTextTranslateRequest.ts +1 -1
  54. package/src/models/PrepaidTextTranslateResponseBody.ts +2 -2
  55. package/src/models/PrepaidTextTranslateShrinkRequest.ts +1 -1
  56. package/src/models/SizeChartExtractRequest.ts +2 -2
  57. package/src/models/SizeChartExtractResponseBody.ts +1 -1
  58. package/src/models/SizeChartExtractShrinkRequest.ts +2 -2
  59. package/src/models/TextCorrectResponseBody.ts +1 -1
  60. package/src/models/TextTranslateRequest.ts +11 -5
  61. package/src/models/TextTranslateResponseBody.ts +1 -1
  62. package/src/models/TextTranslateShrinkRequest.ts +11 -5
  63. package/src/models/VideoTranslationRequest.ts +1 -1
  64. package/src/models/VideoTranslationResponseBody.ts +1 -1
  65. package/src/models/VideoTranslationShrinkRequest.ts +1 -1
  66. package/src/models/VirtualTryOnResponseBody.ts +3 -3
  67. package/src/models/model.ts +5 -0
@@ -0,0 +1,61 @@
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
+ * This parameter is required.
9
+ *
10
+ * @example
11
+ * https://example.com/cloth.png
12
+ */
13
+ clothImageUrl?: string;
14
+ /**
15
+ * @example
16
+ * tops
17
+ */
18
+ clothType?: string;
19
+ /**
20
+ * @remarks
21
+ * This parameter is required.
22
+ *
23
+ * @example
24
+ * https://example.com/model.png
25
+ */
26
+ modelImageUrl?: string;
27
+ /**
28
+ * @remarks
29
+ * This parameter is required.
30
+ *
31
+ * @example
32
+ * 1K
33
+ */
34
+ resolution?: string;
35
+ static names(): { [key: string]: string } {
36
+ return {
37
+ clothImageUrl: 'ClothImageUrl',
38
+ clothType: 'ClothType',
39
+ modelImageUrl: 'ModelImageUrl',
40
+ resolution: 'Resolution',
41
+ };
42
+ }
43
+
44
+ static types(): { [key: string]: any } {
45
+ return {
46
+ clothImageUrl: 'string',
47
+ clothType: 'string',
48
+ modelImageUrl: 'string',
49
+ resolution: 'string',
50
+ };
51
+ }
52
+
53
+ validate() {
54
+ super.validate();
55
+ }
56
+
57
+ constructor(map?: { [key: string]: any }) {
58
+ super(map);
59
+ }
60
+ }
61
+
@@ -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,145 @@
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
+ * @example
10
+ * 1
11
+ */
12
+ processedImageCount?: number;
13
+ /**
14
+ * @example
15
+ * 1K
16
+ */
17
+ resolution?: string;
18
+ static names(): { [key: string]: string } {
19
+ return {
20
+ processedImageCount: 'ProcessedImageCount',
21
+ resolution: 'Resolution',
22
+ };
23
+ }
24
+
25
+ static types(): { [key: string]: any } {
26
+ return {
27
+ processedImageCount: 'number',
28
+ resolution: 'string',
29
+ };
30
+ }
31
+
32
+ validate() {
33
+ super.validate();
34
+ }
35
+
36
+ constructor(map?: { [key: string]: any }) {
37
+ super(map);
38
+ }
39
+ }
40
+
41
+ export class AiTryOnResponseBodyData extends $dara.Model {
42
+ /**
43
+ * @example
44
+ * 1360
45
+ */
46
+ imageHeight?: string;
47
+ /**
48
+ * @example
49
+ * https://example.com/virtual-try-on-result.png
50
+ */
51
+ imageUrl?: string;
52
+ /**
53
+ * @example
54
+ * 768
55
+ */
56
+ imageWidth?: string;
57
+ /**
58
+ * @example
59
+ * {"ProcessedImageCount":1,"Resolution":"1K"}
60
+ */
61
+ usageMap?: AiTryOnResponseBodyDataUsageMap;
62
+ static names(): { [key: string]: string } {
63
+ return {
64
+ imageHeight: 'ImageHeight',
65
+ imageUrl: 'ImageUrl',
66
+ imageWidth: 'ImageWidth',
67
+ usageMap: 'UsageMap',
68
+ };
69
+ }
70
+
71
+ static types(): { [key: string]: any } {
72
+ return {
73
+ imageHeight: 'string',
74
+ imageUrl: 'string',
75
+ imageWidth: 'string',
76
+ usageMap: AiTryOnResponseBodyDataUsageMap,
77
+ };
78
+ }
79
+
80
+ validate() {
81
+ if(this.usageMap && typeof (this.usageMap as any).validate === 'function') {
82
+ (this.usageMap as any).validate();
83
+ }
84
+ super.validate();
85
+ }
86
+
87
+ constructor(map?: { [key: string]: any }) {
88
+ super(map);
89
+ }
90
+ }
91
+
92
+ export class AiTryOnResponseBody extends $dara.Model {
93
+ /**
94
+ * @example
95
+ * 200
96
+ */
97
+ code?: string;
98
+ data?: AiTryOnResponseBodyData;
99
+ /**
100
+ * @example
101
+ * OK
102
+ */
103
+ message?: string;
104
+ /**
105
+ * @example
106
+ * 2728332e-72c1-9c0d-8869-5781b2cd25d4
107
+ */
108
+ requestId?: string;
109
+ /**
110
+ * @example
111
+ * True
112
+ */
113
+ success?: boolean;
114
+ static names(): { [key: string]: string } {
115
+ return {
116
+ code: 'Code',
117
+ data: 'Data',
118
+ message: 'Message',
119
+ requestId: 'RequestId',
120
+ success: 'Success',
121
+ };
122
+ }
123
+
124
+ static types(): { [key: string]: any } {
125
+ return {
126
+ code: 'string',
127
+ data: AiTryOnResponseBodyData,
128
+ message: 'string',
129
+ requestId: 'string',
130
+ success: 'boolean',
131
+ };
132
+ }
133
+
134
+ validate() {
135
+ if(this.data && typeof (this.data as any).validate === 'function') {
136
+ (this.data as any).validate();
137
+ }
138
+ super.validate();
139
+ }
140
+
141
+ constructor(map?: { [key: string]: any }) {
142
+ super(map);
143
+ }
144
+ }
145
+
@@ -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
@@ -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
@@ -119,7 +119,7 @@ export class TextTranslateResponseBody extends $dara.Model {
119
119
  message?: string;
120
120
  /**
121
121
  * @remarks
122
- * The request ID, which uniquely identifies a single API call.
122
+ * The request ID, used to uniquely identify a request.
123
123
  *
124
124
  * @example
125
125
  * 922E43BB-EE0E-1A29-B143-BB91BB3EA6AB
@@ -13,7 +13,7 @@ export class TextTranslateShrinkRequest 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 TextTranslateShrinkRequest 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 TextTranslateShrinkRequest 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 TextTranslateShrinkRequest 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 TextTranslateShrinkRequest 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