@alicloud/aidge20260428 1.0.0 → 3.0.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 (66) hide show
  1. package/dist/client.d.ts +257 -139
  2. package/dist/client.js +333 -143
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/DocumentTranslateRequest.d.ts +3 -3
  5. package/dist/models/DocumentTranslateResponseBody.d.ts +3 -5
  6. package/dist/models/DocumentTranslateResponseBody.js.map +1 -1
  7. package/dist/models/ImageMattingRequest.d.ts +7 -7
  8. package/dist/models/ImageMattingResponseBody.d.ts +2 -2
  9. package/dist/models/ImageRemovalProRequest.d.ts +35 -0
  10. package/dist/models/ImageRemovalProRequest.js +60 -0
  11. package/dist/models/ImageRemovalProRequest.js.map +1 -0
  12. package/dist/models/ImageRemovalProResponse.d.ts +19 -0
  13. package/dist/models/ImageRemovalProResponse.js +69 -0
  14. package/dist/models/ImageRemovalProResponse.js.map +1 -0
  15. package/dist/models/ImageRemovalProResponseBody.d.ts +87 -0
  16. package/dist/models/ImageRemovalProResponseBody.js +95 -0
  17. package/dist/models/ImageRemovalProResponseBody.js.map +1 -0
  18. package/dist/models/ImageRemoveRequest.d.ts +15 -5
  19. package/dist/models/ImageRemoveRequest.js.map +1 -1
  20. package/dist/models/ImageRemoveResponseBody.d.ts +8 -8
  21. package/dist/models/ImageRemoveShrinkRequest.d.ts +15 -5
  22. package/dist/models/ImageRemoveShrinkRequest.js.map +1 -1
  23. package/dist/models/ImageTranslationProRequest.d.ts +9 -12
  24. package/dist/models/ImageTranslationProRequest.js +2 -2
  25. package/dist/models/ImageTranslationProRequest.js.map +1 -1
  26. package/dist/models/ImageTranslationProResponseBody.d.ts +19 -19
  27. package/dist/models/MaterialInspectionRequest.d.ts +55 -0
  28. package/dist/models/MaterialInspectionRequest.js +66 -0
  29. package/dist/models/MaterialInspectionRequest.js.map +1 -0
  30. package/dist/models/MaterialInspectionResponse.d.ts +19 -0
  31. package/dist/models/MaterialInspectionResponse.js +69 -0
  32. package/dist/models/MaterialInspectionResponse.js.map +1 -0
  33. package/dist/models/MaterialInspectionResponseBody.d.ts +154 -0
  34. package/dist/models/MaterialInspectionResponseBody.js +147 -0
  35. package/dist/models/MaterialInspectionResponseBody.js.map +1 -0
  36. package/dist/models/TextTranslateRequest.d.ts +15 -5
  37. package/dist/models/TextTranslateRequest.js +4 -0
  38. package/dist/models/TextTranslateRequest.js.map +1 -1
  39. package/dist/models/TextTranslateResponseBody.d.ts +7 -7
  40. package/dist/models/TextTranslateShrinkRequest.d.ts +15 -5
  41. package/dist/models/TextTranslateShrinkRequest.js +4 -0
  42. package/dist/models/TextTranslateShrinkRequest.js.map +1 -1
  43. package/dist/models/model.d.ts +10 -0
  44. package/dist/models/model.js +23 -2
  45. package/dist/models/model.js.map +1 -1
  46. package/package.json +1 -1
  47. package/src/client.ts +347 -144
  48. package/src/models/DocumentTranslateRequest.ts +3 -3
  49. package/src/models/DocumentTranslateResponseBody.ts +3 -5
  50. package/src/models/ImageMattingRequest.ts +7 -7
  51. package/src/models/ImageMattingResponseBody.ts +2 -2
  52. package/src/models/ImageRemovalProRequest.ts +50 -0
  53. package/src/models/ImageRemovalProResponse.ts +40 -0
  54. package/src/models/ImageRemovalProResponseBody.ts +126 -0
  55. package/src/models/ImageRemoveRequest.ts +15 -5
  56. package/src/models/ImageRemoveResponseBody.ts +8 -8
  57. package/src/models/ImageRemoveShrinkRequest.ts +15 -5
  58. package/src/models/ImageTranslationProRequest.ts +11 -14
  59. package/src/models/ImageTranslationProResponseBody.ts +19 -19
  60. package/src/models/MaterialInspectionRequest.ts +76 -0
  61. package/src/models/MaterialInspectionResponse.ts +40 -0
  62. package/src/models/MaterialInspectionResponseBody.ts +227 -0
  63. package/src/models/TextTranslateRequest.ts +19 -5
  64. package/src/models/TextTranslateResponseBody.ts +7 -7
  65. package/src/models/TextTranslateShrinkRequest.ts +19 -5
  66. package/src/models/model.ts +10 -0
@@ -231,7 +231,7 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTexts e
231
231
  fontsize?: number;
232
232
  /**
233
233
  * @remarks
234
- * The horizontal layout. Valid values: center, left, right.
234
+ * The horizontal layout mode. Valid values: center, left, right.
235
235
  *
236
236
  * @example
237
237
  * center
@@ -239,7 +239,7 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTexts e
239
239
  horizontalLayout?: string;
240
240
  /**
241
241
  * @remarks
242
- * The coordinates of the image repair area.
242
+ * The coordinates of the image inpainting area.
243
243
  */
244
244
  imageRect?: ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTextsImageRect;
245
245
  /**
@@ -273,7 +273,7 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTexts e
273
273
  textRect?: ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTextsTextRect;
274
274
  /**
275
275
  * @remarks
276
- * Indicates whether the TextItem is valid. The item is invalid if this value does not exist or is false.
276
+ * Indicates whether the TextItem is valid. The item is invalid when this value does not exist or is false.
277
277
  *
278
278
  * @example
279
279
  * true
@@ -289,7 +289,7 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTexts e
289
289
  value?: string;
290
290
  /**
291
291
  * @remarks
292
- * The vertical layout. Valid values: center, top, down.
292
+ * The vertical layout mode. Valid values: center, top, down.
293
293
  *
294
294
  * @example
295
295
  * center
@@ -369,7 +369,7 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreas extend
369
369
  fontsize?: number;
370
370
  /**
371
371
  * @remarks
372
- * The horizontal layout. Valid values: center, left, right.
372
+ * The horizontal layout mode. Valid values: center, left, right.
373
373
  *
374
374
  * @example
375
375
  * left
@@ -385,12 +385,12 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreas extend
385
385
  lineCount?: number;
386
386
  /**
387
387
  * @remarks
388
- * The list of translated texts. Each element corresponds to the translation result for a target language.
388
+ * The list of translated texts. Each element corresponds to the translation result for one target language.
389
389
  */
390
390
  texts?: ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTexts[];
391
391
  /**
392
392
  * @remarks
393
- * The vertical layout. Valid values: center, top, down.
393
+ * The vertical layout mode. Valid values: center, top, down.
394
394
  *
395
395
  * @example
396
396
  * center
@@ -445,7 +445,7 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfo extends $dara.M
445
445
  goodsRects?: ImageTranslationProResponseBodyDataGenFilesEditInfoGoodsRects;
446
446
  /**
447
447
  * @remarks
448
- * The list of target languages for translation.
448
+ * The list of translation target languages.
449
449
  */
450
450
  languages?: string[];
451
451
  /**
@@ -463,7 +463,7 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfo extends $dara.M
463
463
  resultImageIds?: string[];
464
464
  /**
465
465
  * @remarks
466
- * The list of text boxes, which contains information about all recognized text areas.
466
+ * The list of text boxes, including all recognized text area information.
467
467
  */
468
468
  textAreas?: ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreas[];
469
469
  static names(): { [key: string]: string } {
@@ -523,7 +523,7 @@ export class ImageTranslationProResponseBodyDataGenFilesResultList extends $dara
523
523
  fileUrl?: string;
524
524
  /**
525
525
  * @remarks
526
- * The target language for translation.
526
+ * The translation target language.
527
527
  *
528
528
  * @example
529
529
  * en
@@ -555,7 +555,7 @@ export class ImageTranslationProResponseBodyDataGenFilesResultList extends $dara
555
555
  export class ImageTranslationProResponseBodyDataGenFiles extends $dara.Model {
556
556
  /**
557
557
  * @remarks
558
- * The editor information, which contains recognized information such as text areas, product areas, and fonts.
558
+ * The editor information, including recognized text areas, product areas, fonts, and other information.
559
559
  */
560
560
  editInfo?: ImageTranslationProResponseBodyDataGenFilesEditInfo;
561
561
  /**
@@ -605,7 +605,7 @@ export class ImageTranslationProResponseBodyDataGenFiles extends $dara.Model {
605
605
  export class ImageTranslationProResponseBodyDataResultList extends $dara.Model {
606
606
  /**
607
607
  * @remarks
608
- * The URL of the image translation result image.
608
+ * The URL of the image translation result.
609
609
  *
610
610
  * @example
611
611
  * http://dashscope-a717.oss-cn-beijing.aliyuncs.com/xxx.jpg
@@ -613,7 +613,7 @@ export class ImageTranslationProResponseBodyDataResultList extends $dara.Model {
613
613
  fileUrl?: string;
614
614
  /**
615
615
  * @remarks
616
- * The target language for image translation.
616
+ * The target language of the image translation.
617
617
  *
618
618
  * @example
619
619
  * en
@@ -645,7 +645,7 @@ export class ImageTranslationProResponseBodyDataResultList extends $dara.Model {
645
645
  export class ImageTranslationProResponseBodyData extends $dara.Model {
646
646
  /**
647
647
  * @remarks
648
- * The editor protocol, which contains the translation result files and editing information.
648
+ * The editor protocol, including translation result files and editing information.
649
649
  */
650
650
  genFiles?: ImageTranslationProResponseBodyDataGenFiles[];
651
651
  /**
@@ -655,7 +655,7 @@ export class ImageTranslationProResponseBodyData extends $dara.Model {
655
655
  resultList?: ImageTranslationProResponseBodyDataResultList[];
656
656
  /**
657
657
  * @remarks
658
- * The asynchronous task ID. This is not returned for synchronous calls.
658
+ * The asynchronous task ID. Not returned for synchronous calls.
659
659
  *
660
660
  * @example
661
661
  * abc123-task-id
@@ -705,7 +705,7 @@ export class ImageTranslationProResponseBodyData extends $dara.Model {
705
705
  export class ImageTranslationProResponseBody extends $dara.Model {
706
706
  /**
707
707
  * @remarks
708
- * The response code. A value of 200 indicates success. For other response codes, see the error codes.
708
+ * The response code. 200 indicates a successful call. For other response codes, see the error code information.
709
709
  *
710
710
  * @example
711
711
  * 200
@@ -718,7 +718,7 @@ export class ImageTranslationProResponseBody extends $dara.Model {
718
718
  data?: ImageTranslationProResponseBodyData;
719
719
  /**
720
720
  * @remarks
721
- * The error message. "Success" is returned for successful calls. A specific error message is returned for failed calls, such as "The content contains sensitive data. Try other input.".
721
+ * The error message. Returns "Success" for successful calls. Returns specific error information for exceptions, such as "The content contains sensitive data. Try other input."
722
722
  *
723
723
  * @example
724
724
  * Success
@@ -726,7 +726,7 @@ export class ImageTranslationProResponseBody extends $dara.Model {
726
726
  message?: string;
727
727
  /**
728
728
  * @remarks
729
- * The request ID, which uniquely identifies the request.
729
+ * The request ID, used to identify a unique request call.
730
730
  *
731
731
  * @example
732
732
  * 61785C32-80C2-19A3-9E55-2C3702C84B40
@@ -734,7 +734,7 @@ export class ImageTranslationProResponseBody extends $dara.Model {
734
734
  requestId?: string;
735
735
  /**
736
736
  * @remarks
737
- * Indicates whether the call is successful. A value of true indicates success. A value of false indicates failure.
737
+ * Indicates whether the call was successful. true indicates success. false indicates failure.
738
738
  *
739
739
  * @example
740
740
  * true
@@ -0,0 +1,76 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class MaterialInspectionRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * apiId
9
+ *
10
+ * @example
11
+ * fb0012f49b004f889207a3c5e6ef8da9
12
+ */
13
+ apiId?: string;
14
+ /**
15
+ * @remarks
16
+ * The URL of the reference image. When this parameter is not empty, multi-image comparison mode is used.
17
+ *
18
+ * @example
19
+ * https://example.com/reference.jpg
20
+ */
21
+ imageRefer?: string;
22
+ /**
23
+ * @remarks
24
+ * The URL of the target image to inspect.
25
+ *
26
+ * This parameter is required.
27
+ *
28
+ * @example
29
+ * https://example.com/store.jpg
30
+ */
31
+ imageUrl?: string;
32
+ /**
33
+ * @remarks
34
+ * The business request identity. This value is returned as-is in the response for Tracing Analysis purposes.
35
+ *
36
+ * @example
37
+ * req-2026-06-04-001
38
+ */
39
+ reqId?: string;
40
+ /**
41
+ * @remarks
42
+ * The rule prompt in natural language that defines the inspection criteria.
43
+ *
44
+ * @example
45
+ * 门型展架必须摆放在入口区域;功能台卡必须摆放在中柜台面
46
+ */
47
+ rules?: string;
48
+ static names(): { [key: string]: string } {
49
+ return {
50
+ apiId: 'ApiId',
51
+ imageRefer: 'ImageRefer',
52
+ imageUrl: 'ImageUrl',
53
+ reqId: 'ReqId',
54
+ rules: 'Rules',
55
+ };
56
+ }
57
+
58
+ static types(): { [key: string]: any } {
59
+ return {
60
+ apiId: 'string',
61
+ imageRefer: 'string',
62
+ imageUrl: 'string',
63
+ reqId: 'string',
64
+ rules: 'string',
65
+ };
66
+ }
67
+
68
+ validate() {
69
+ super.validate();
70
+ }
71
+
72
+ constructor(map?: { [key: string]: any }) {
73
+ super(map);
74
+ }
75
+ }
76
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { MaterialInspectionResponseBody } from "./MaterialInspectionResponseBody";
4
+
5
+
6
+ export class MaterialInspectionResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: MaterialInspectionResponseBody;
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: MaterialInspectionResponseBody,
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,227 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class MaterialInspectionResponseBodyDataResultSteps extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The step result. Valid values: PASS, FAIL, and UNABLE_TO_JUDGE.
9
+ *
10
+ * @example
11
+ * PASS
12
+ */
13
+ result?: string;
14
+ /**
15
+ * @remarks
16
+ * The step ID.
17
+ *
18
+ * @example
19
+ * XXX
20
+ */
21
+ stepId?: string;
22
+ static names(): { [key: string]: string } {
23
+ return {
24
+ result: 'Result',
25
+ stepId: 'StepId',
26
+ };
27
+ }
28
+
29
+ static types(): { [key: string]: any } {
30
+ return {
31
+ result: 'string',
32
+ stepId: 'string',
33
+ };
34
+ }
35
+
36
+ validate() {
37
+ super.validate();
38
+ }
39
+
40
+ constructor(map?: { [key: string]: any }) {
41
+ super(map);
42
+ }
43
+ }
44
+
45
+ export class MaterialInspectionResponseBodyDataResult extends $dara.Model {
46
+ /**
47
+ * @remarks
48
+ * The natural language summary, such as "1 rule: 1 PASS, all inspection items are compliant."
49
+ *
50
+ * @example
51
+ * 1项规则:1 PASS,所有检测项合规
52
+ */
53
+ evidence?: string;
54
+ /**
55
+ * @remarks
56
+ * The overall result. Valid values: PASS and FAIL.
57
+ *
58
+ * @example
59
+ * PASS
60
+ */
61
+ overallResult?: string;
62
+ /**
63
+ * @remarks
64
+ * The request ID returned as-is from the input.
65
+ *
66
+ * @example
67
+ * req-001
68
+ */
69
+ reqId?: string;
70
+ /**
71
+ * @remarks
72
+ * The list of detection steps.
73
+ */
74
+ steps?: MaterialInspectionResponseBodyDataResultSteps[];
75
+ /**
76
+ * @remarks
77
+ * The detection type.
78
+ *
79
+ * @example
80
+ * Stamp
81
+ */
82
+ type?: string;
83
+ static names(): { [key: string]: string } {
84
+ return {
85
+ evidence: 'Evidence',
86
+ overallResult: 'OverallResult',
87
+ reqId: 'ReqId',
88
+ steps: 'Steps',
89
+ type: 'Type',
90
+ };
91
+ }
92
+
93
+ static types(): { [key: string]: any } {
94
+ return {
95
+ evidence: 'string',
96
+ overallResult: 'string',
97
+ reqId: 'string',
98
+ steps: { 'type': 'array', 'itemType': MaterialInspectionResponseBodyDataResultSteps },
99
+ type: 'string',
100
+ };
101
+ }
102
+
103
+ validate() {
104
+ if(Array.isArray(this.steps)) {
105
+ $dara.Model.validateArray(this.steps);
106
+ }
107
+ super.validate();
108
+ }
109
+
110
+ constructor(map?: { [key: string]: any }) {
111
+ super(map);
112
+ }
113
+ }
114
+
115
+ export class MaterialInspectionResponseBodyData extends $dara.Model {
116
+ /**
117
+ * @remarks
118
+ * The inspection result.
119
+ */
120
+ result?: MaterialInspectionResponseBodyDataResult;
121
+ /**
122
+ * @remarks
123
+ * The usage information. The key is the usage metric name and the value is the count.
124
+ *
125
+ * @example
126
+ * {"ProcessingCount":1}
127
+ */
128
+ usageMap?: { [key: string]: number };
129
+ static names(): { [key: string]: string } {
130
+ return {
131
+ result: 'Result',
132
+ usageMap: 'UsageMap',
133
+ };
134
+ }
135
+
136
+ static types(): { [key: string]: any } {
137
+ return {
138
+ result: MaterialInspectionResponseBodyDataResult,
139
+ usageMap: { 'type': 'map', 'keyType': 'string', 'valueType': 'number' },
140
+ };
141
+ }
142
+
143
+ validate() {
144
+ if(this.result && typeof (this.result as any).validate === 'function') {
145
+ (this.result as any).validate();
146
+ }
147
+ if(this.usageMap) {
148
+ $dara.Model.validateMap(this.usageMap);
149
+ }
150
+ super.validate();
151
+ }
152
+
153
+ constructor(map?: { [key: string]: any }) {
154
+ super(map);
155
+ }
156
+ }
157
+
158
+ export class MaterialInspectionResponseBody extends $dara.Model {
159
+ /**
160
+ * @remarks
161
+ * The error code. This parameter is not returned for successful calls.
162
+ *
163
+ * @example
164
+ * 200
165
+ */
166
+ code?: string;
167
+ /**
168
+ * @remarks
169
+ * The material display detection result.
170
+ */
171
+ data?: MaterialInspectionResponseBodyData;
172
+ /**
173
+ * @remarks
174
+ * The error message. This parameter is not returned for successful calls.
175
+ *
176
+ * @example
177
+ * OK
178
+ */
179
+ message?: string;
180
+ /**
181
+ * @remarks
182
+ * Id of the request
183
+ *
184
+ * @example
185
+ * E1AD60F1-BAC7-546B-9533-E7AD02B16E3F
186
+ */
187
+ requestId?: string;
188
+ /**
189
+ * @remarks
190
+ * Indicates whether the call was successful. Valid values: true: The call was successful. false: The call failed.
191
+ *
192
+ * @example
193
+ * True
194
+ */
195
+ success?: boolean;
196
+ static names(): { [key: string]: string } {
197
+ return {
198
+ code: 'Code',
199
+ data: 'Data',
200
+ message: 'Message',
201
+ requestId: 'RequestId',
202
+ success: 'Success',
203
+ };
204
+ }
205
+
206
+ static types(): { [key: string]: any } {
207
+ return {
208
+ code: 'string',
209
+ data: MaterialInspectionResponseBodyData,
210
+ message: 'string',
211
+ requestId: 'string',
212
+ success: 'boolean',
213
+ };
214
+ }
215
+
216
+ validate() {
217
+ if(this.data && typeof (this.data as any).validate === 'function') {
218
+ (this.data as any).validate();
219
+ }
220
+ super.validate();
221
+ }
222
+
223
+ constructor(map?: { [key: string]: any }) {
224
+ super(map);
225
+ }
226
+ }
227
+
@@ -3,9 +3,14 @@ import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
5
  export class TextTranslateRequest extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * MyCompany-Chat
9
+ */
10
+ bizName?: string;
6
11
  /**
7
12
  * @remarks
8
- * The format type of the source text. Optional. Valid values: text (plain text format) and html (web page format that preserves HTML tags).
13
+ * 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).
9
14
  *
10
15
  * @example
11
16
  * text
@@ -13,7 +18,7 @@ export class TextTranslateRequest extends $dara.Model {
13
18
  formatType?: string;
14
19
  /**
15
20
  * @remarks
16
- * The intervention glossary ID. Optional. Create the glossary in the console and provide its ID. If the glossary ID is empty, the translation results are not modified.
21
+ * The intervention glossary ID. This parameter is optional. The glossary must be created separately in the console and its ID provided here. If the glossary ID is empty, the translation result is not modified.
17
22
  *
18
23
  * @example
19
24
  * glossary_1
@@ -21,7 +26,7 @@ export class TextTranslateRequest extends $dara.Model {
21
26
  glossary?: string;
22
27
  /**
23
28
  * @remarks
24
- * The source language code. Optional. If not specified, the language is automatically detected. Set to auto for automatic language detection.
29
+ * The source language code. This parameter is optional. If not specified, the language is automatically detected. You can pass auto for language detection.
25
30
  *
26
31
  * @example
27
32
  * auto
@@ -29,7 +34,7 @@ export class TextTranslateRequest extends $dara.Model {
29
34
  sourceLanguage?: string;
30
35
  /**
31
36
  * @remarks
32
- * The list of texts to translate. Required. The total character length cannot exceed 50,000, and the list length cannot exceed 50.
37
+ * 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.
33
38
  *
34
39
  * This parameter is required.
35
40
  *
@@ -39,7 +44,7 @@ export class TextTranslateRequest extends $dara.Model {
39
44
  sourceTextList?: string[];
40
45
  /**
41
46
  * @remarks
42
- * The target language code. Required. More than 100 language directions are supported. For details, refer to the supported language directions list.
47
+ * The target language code. This parameter is required. More than 100 language directions are supported. For details, refer to the supported language directions list.
43
48
  *
44
49
  * This parameter is required.
45
50
  *
@@ -47,23 +52,32 @@ export class TextTranslateRequest extends $dara.Model {
47
52
  * ko
48
53
  */
49
54
  targetLanguage?: string;
55
+ /**
56
+ * @example
57
+ * e-commerce-title
58
+ */
59
+ translateScene?: string;
50
60
  static names(): { [key: string]: string } {
51
61
  return {
62
+ bizName: 'BizName',
52
63
  formatType: 'FormatType',
53
64
  glossary: 'Glossary',
54
65
  sourceLanguage: 'SourceLanguage',
55
66
  sourceTextList: 'SourceTextList',
56
67
  targetLanguage: 'TargetLanguage',
68
+ translateScene: 'TranslateScene',
57
69
  };
58
70
  }
59
71
 
60
72
  static types(): { [key: string]: any } {
61
73
  return {
74
+ bizName: 'string',
62
75
  formatType: 'string',
63
76
  glossary: 'string',
64
77
  sourceLanguage: 'string',
65
78
  sourceTextList: { 'type': 'array', 'itemType': 'string' },
66
79
  targetLanguage: 'string',
80
+ translateScene: 'string',
67
81
  };
68
82
  }
69
83
 
@@ -55,12 +55,12 @@ export class TextTranslateResponseBodyDataTranslations extends $dara.Model {
55
55
  export class TextTranslateResponseBodyData extends $dara.Model {
56
56
  /**
57
57
  * @remarks
58
- * The list of translation results. Each element corresponds to a translation result for an entry in the input text list.
58
+ * The translation result list. Each element corresponds to a translation result for an entry in the input text list.
59
59
  */
60
60
  translations?: TextTranslateResponseBodyDataTranslations[];
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
  * @example
66
66
  * {"InputCharacterCount":5}
@@ -98,7 +98,7 @@ export class TextTranslateResponseBodyData extends $dara.Model {
98
98
  export class TextTranslateResponseBody extends $dara.Model {
99
99
  /**
100
100
  * @remarks
101
- * The response code. The value "success" is returned for a successful call.
101
+ * The response code. Returns "success" for successful calls.
102
102
  *
103
103
  * @example
104
104
  * success
@@ -106,12 +106,12 @@ export class TextTranslateResponseBody extends $dara.Model {
106
106
  code?: string;
107
107
  /**
108
108
  * @remarks
109
- * The translation result data, which contains the translation list and usage information.
109
+ * The translation result data, including the translation list and usage information.
110
110
  */
111
111
  data?: TextTranslateResponseBodyData;
112
112
  /**
113
113
  * @remarks
114
- * The error message. The value "Success" is returned for a successful call. For a failed call, a specific error message is returned, such as "The parameters contain sensitive information. Try other input.".
114
+ * The error message. Returns "Success" for successful calls. Returns specific error information for exceptions, such as "The parameters contain sensitive information. Try other input."
115
115
  *
116
116
  * @example
117
117
  * Success
@@ -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 the request.
122
+ * The request ID, used to identify a unique request call.
123
123
  *
124
124
  * @example
125
125
  * 922E43BB-EE0E-1A29-B143-BB91BB3EA6AB
@@ -127,7 +127,7 @@ export class TextTranslateResponseBody extends $dara.Model {
127
127
  requestId?: string;
128
128
  /**
129
129
  * @remarks
130
- * Indicates whether the call is successful. Valid values: true and false.
130
+ * Indicates whether the call is successful. true indicates success. false indicates failure.
131
131
  *
132
132
  * @example
133
133
  * true