@alicloud/aidge20260428 2.0.0 → 3.0.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.
- package/dist/client.d.ts +230 -246
- package/dist/client.js +263 -288
- package/dist/client.js.map +1 -1
- package/dist/models/DocumentTranslateRequest.d.ts +3 -3
- package/dist/models/DocumentTranslateResponseBody.d.ts +3 -5
- package/dist/models/DocumentTranslateResponseBody.js.map +1 -1
- package/dist/models/ImageMattingRequest.d.ts +7 -7
- package/dist/models/ImageMattingResponseBody.d.ts +2 -2
- package/dist/models/ImageRemovalProRequest.d.ts +35 -0
- package/dist/models/{ImageTranslationPlusRequest.js → ImageRemovalProRequest.js} +6 -16
- package/dist/models/ImageRemovalProRequest.js.map +1 -0
- package/dist/models/{ImageTranslationPlusResponse.d.ts → ImageRemovalProResponse.d.ts} +3 -3
- package/dist/models/{ImageTranslationPlusResponse.js → ImageRemovalProResponse.js} +6 -6
- package/dist/models/ImageRemovalProResponse.js.map +1 -0
- package/dist/models/{ImageTranslationPlusResponseBody.d.ts → ImageRemovalProResponseBody.d.ts} +21 -6
- package/dist/models/{ImageTranslationPlusResponseBody.js → ImageRemovalProResponseBody.js} +14 -7
- package/dist/models/ImageRemovalProResponseBody.js.map +1 -0
- package/dist/models/ImageRemoveRequest.d.ts +15 -5
- package/dist/models/ImageRemoveRequest.js.map +1 -1
- package/dist/models/ImageRemoveResponseBody.d.ts +8 -8
- package/dist/models/ImageRemoveShrinkRequest.d.ts +15 -5
- package/dist/models/ImageRemoveShrinkRequest.js.map +1 -1
- package/dist/models/ImageTranslationProRequest.d.ts +11 -7
- package/dist/models/ImageTranslationProRequest.js.map +1 -1
- package/dist/models/ImageTranslationProResponseBody.d.ts +55 -55
- package/dist/models/MaterialInspectionRequest.d.ts +14 -0
- package/dist/models/MaterialInspectionRequest.js.map +1 -1
- package/dist/models/MaterialInspectionResponseBody.d.ts +45 -0
- package/dist/models/MaterialInspectionResponseBody.js.map +1 -1
- package/dist/models/TextTranslateRequest.d.ts +15 -5
- package/dist/models/TextTranslateRequest.js +4 -0
- package/dist/models/TextTranslateRequest.js.map +1 -1
- package/dist/models/TextTranslateResponseBody.d.ts +7 -7
- package/dist/models/TextTranslateShrinkRequest.d.ts +15 -5
- package/dist/models/TextTranslateShrinkRequest.js +4 -0
- package/dist/models/TextTranslateShrinkRequest.js.map +1 -1
- package/dist/models/model.d.ts +4 -4
- package/dist/models/model.js +10 -10
- package/dist/models/model.js.map +1 -1
- package/package.json +2 -2
- package/src/client.ts +269 -297
- package/src/models/DocumentTranslateRequest.ts +3 -3
- package/src/models/DocumentTranslateResponseBody.ts +3 -5
- package/src/models/ImageMattingRequest.ts +7 -7
- package/src/models/ImageMattingResponseBody.ts +2 -2
- package/src/models/ImageRemovalProRequest.ts +50 -0
- package/src/models/{ImageTranslationPlusResponse.ts → ImageRemovalProResponse.ts} +4 -4
- package/src/models/{ImageTranslationPlusResponseBody.ts → ImageRemovalProResponseBody.ts} +27 -7
- package/src/models/ImageRemoveRequest.ts +15 -5
- package/src/models/ImageRemoveResponseBody.ts +8 -8
- package/src/models/ImageRemoveShrinkRequest.ts +15 -5
- package/src/models/ImageTranslationProRequest.ts +11 -7
- package/src/models/ImageTranslationProResponseBody.ts +55 -55
- package/src/models/MaterialInspectionRequest.ts +14 -0
- package/src/models/MaterialInspectionResponseBody.ts +45 -0
- package/src/models/TextTranslateRequest.ts +19 -5
- package/src/models/TextTranslateResponseBody.ts +7 -7
- package/src/models/TextTranslateShrinkRequest.ts +19 -5
- package/src/models/model.ts +4 -4
- package/dist/models/ImageTranslationPlusRequest.d.ts +0 -75
- package/dist/models/ImageTranslationPlusRequest.js.map +0 -1
- package/dist/models/ImageTranslationPlusResponse.js.map +0 -1
- package/dist/models/ImageTranslationPlusResponseBody.js.map +0 -1
- package/src/models/ImageTranslationPlusRequest.ts +0 -100
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class ImageTranslationProResponseBodyDataGenFilesEditInfoGoodsRects extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
*
|
|
8
|
+
* The rotation angle of the text box in degrees. A value less than 1 indicates a horizontal text box.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* 0
|
|
@@ -13,7 +13,7 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoGoodsRects exten
|
|
|
13
13
|
degree?: number;
|
|
14
14
|
/**
|
|
15
15
|
* @remarks
|
|
16
|
-
*
|
|
16
|
+
* The height.
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
19
|
* 0
|
|
@@ -21,7 +21,7 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoGoodsRects exten
|
|
|
21
21
|
height?: number;
|
|
22
22
|
/**
|
|
23
23
|
* @remarks
|
|
24
|
-
*
|
|
24
|
+
* The left coordinate.
|
|
25
25
|
*
|
|
26
26
|
* @example
|
|
27
27
|
* 0
|
|
@@ -29,7 +29,7 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoGoodsRects exten
|
|
|
29
29
|
left?: number;
|
|
30
30
|
/**
|
|
31
31
|
* @remarks
|
|
32
|
-
*
|
|
32
|
+
* The top coordinate.
|
|
33
33
|
*
|
|
34
34
|
* @example
|
|
35
35
|
* 0
|
|
@@ -37,7 +37,7 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoGoodsRects exten
|
|
|
37
37
|
top?: number;
|
|
38
38
|
/**
|
|
39
39
|
* @remarks
|
|
40
|
-
*
|
|
40
|
+
* The width.
|
|
41
41
|
*
|
|
42
42
|
* @example
|
|
43
43
|
* 0
|
|
@@ -75,7 +75,7 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoGoodsRects exten
|
|
|
75
75
|
export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTextsImageRect extends $dara.Model {
|
|
76
76
|
/**
|
|
77
77
|
* @remarks
|
|
78
|
-
*
|
|
78
|
+
* The rotation angle of the text box in degrees. A value less than 1 indicates a horizontal text box.
|
|
79
79
|
*
|
|
80
80
|
* @example
|
|
81
81
|
* 0
|
|
@@ -83,7 +83,7 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTextsIm
|
|
|
83
83
|
degree?: number;
|
|
84
84
|
/**
|
|
85
85
|
* @remarks
|
|
86
|
-
*
|
|
86
|
+
* The height.
|
|
87
87
|
*
|
|
88
88
|
* @example
|
|
89
89
|
* 54
|
|
@@ -91,7 +91,7 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTextsIm
|
|
|
91
91
|
height?: number;
|
|
92
92
|
/**
|
|
93
93
|
* @remarks
|
|
94
|
-
*
|
|
94
|
+
* The left coordinate.
|
|
95
95
|
*
|
|
96
96
|
* @example
|
|
97
97
|
* 43
|
|
@@ -99,7 +99,7 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTextsIm
|
|
|
99
99
|
left?: number;
|
|
100
100
|
/**
|
|
101
101
|
* @remarks
|
|
102
|
-
*
|
|
102
|
+
* The top coordinate.
|
|
103
103
|
*
|
|
104
104
|
* @example
|
|
105
105
|
* 83
|
|
@@ -107,7 +107,7 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTextsIm
|
|
|
107
107
|
top?: number;
|
|
108
108
|
/**
|
|
109
109
|
* @remarks
|
|
110
|
-
*
|
|
110
|
+
* The width.
|
|
111
111
|
*
|
|
112
112
|
* @example
|
|
113
113
|
* 418
|
|
@@ -145,7 +145,7 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTextsIm
|
|
|
145
145
|
export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTextsTextRect extends $dara.Model {
|
|
146
146
|
/**
|
|
147
147
|
* @remarks
|
|
148
|
-
*
|
|
148
|
+
* The rotation angle of the text box in degrees. A value less than 1 indicates a horizontal text box.
|
|
149
149
|
*
|
|
150
150
|
* @example
|
|
151
151
|
* 0
|
|
@@ -153,7 +153,7 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTextsTe
|
|
|
153
153
|
degree?: number;
|
|
154
154
|
/**
|
|
155
155
|
* @remarks
|
|
156
|
-
*
|
|
156
|
+
* The height.
|
|
157
157
|
*
|
|
158
158
|
* @example
|
|
159
159
|
* 30
|
|
@@ -161,7 +161,7 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTextsTe
|
|
|
161
161
|
height?: number;
|
|
162
162
|
/**
|
|
163
163
|
* @remarks
|
|
164
|
-
*
|
|
164
|
+
* The left coordinate.
|
|
165
165
|
*
|
|
166
166
|
* @example
|
|
167
167
|
* 8
|
|
@@ -169,7 +169,7 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTextsTe
|
|
|
169
169
|
left?: number;
|
|
170
170
|
/**
|
|
171
171
|
* @remarks
|
|
172
|
-
*
|
|
172
|
+
* The top coordinate.
|
|
173
173
|
*
|
|
174
174
|
* @example
|
|
175
175
|
* 95
|
|
@@ -177,7 +177,7 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTextsTe
|
|
|
177
177
|
top?: number;
|
|
178
178
|
/**
|
|
179
179
|
* @remarks
|
|
180
|
-
*
|
|
180
|
+
* The width.
|
|
181
181
|
*
|
|
182
182
|
* @example
|
|
183
183
|
* 488
|
|
@@ -215,7 +215,7 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTextsTe
|
|
|
215
215
|
export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTexts extends $dara.Model {
|
|
216
216
|
/**
|
|
217
217
|
* @remarks
|
|
218
|
-
*
|
|
218
|
+
* The color of the translated text.
|
|
219
219
|
*
|
|
220
220
|
* @example
|
|
221
221
|
* #515151
|
|
@@ -223,7 +223,7 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTexts e
|
|
|
223
223
|
color?: string;
|
|
224
224
|
/**
|
|
225
225
|
* @remarks
|
|
226
|
-
*
|
|
226
|
+
* The font size of the translated text.
|
|
227
227
|
*
|
|
228
228
|
* @example
|
|
229
229
|
* 29
|
|
@@ -231,7 +231,7 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTexts e
|
|
|
231
231
|
fontsize?: number;
|
|
232
232
|
/**
|
|
233
233
|
* @remarks
|
|
234
|
-
*
|
|
234
|
+
* The horizontal layout mode. Valid values: center, left, right.
|
|
235
235
|
*
|
|
236
236
|
* @example
|
|
237
237
|
* center
|
|
@@ -239,12 +239,12 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTexts e
|
|
|
239
239
|
horizontalLayout?: string;
|
|
240
240
|
/**
|
|
241
241
|
* @remarks
|
|
242
|
-
*
|
|
242
|
+
* The coordinates of the image inpainting area.
|
|
243
243
|
*/
|
|
244
244
|
imageRect?: ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTextsImageRect;
|
|
245
245
|
/**
|
|
246
246
|
* @remarks
|
|
247
|
-
*
|
|
247
|
+
* The target language code for translation.
|
|
248
248
|
*
|
|
249
249
|
* @example
|
|
250
250
|
* en
|
|
@@ -252,7 +252,7 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTexts e
|
|
|
252
252
|
language?: string;
|
|
253
253
|
/**
|
|
254
254
|
* @remarks
|
|
255
|
-
*
|
|
255
|
+
* The number of lines in the text box.
|
|
256
256
|
*
|
|
257
257
|
* @example
|
|
258
258
|
* 1
|
|
@@ -260,7 +260,7 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTexts e
|
|
|
260
260
|
lineCount?: number;
|
|
261
261
|
/**
|
|
262
262
|
* @remarks
|
|
263
|
-
* Ovis model error message and execution time
|
|
263
|
+
* The Ovis model error message and execution time.
|
|
264
264
|
*
|
|
265
265
|
* @example
|
|
266
266
|
* | ovis time: 0.748
|
|
@@ -268,12 +268,12 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTexts e
|
|
|
268
268
|
ovisErrMsg?: string;
|
|
269
269
|
/**
|
|
270
270
|
* @remarks
|
|
271
|
-
*
|
|
271
|
+
* The coordinates of the text box area.
|
|
272
272
|
*/
|
|
273
273
|
textRect?: ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTextsTextRect;
|
|
274
274
|
/**
|
|
275
275
|
* @remarks
|
|
276
|
-
*
|
|
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
|
|
@@ -281,7 +281,7 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTexts e
|
|
|
281
281
|
valid?: boolean;
|
|
282
282
|
/**
|
|
283
283
|
* @remarks
|
|
284
|
-
*
|
|
284
|
+
* The translated text content.
|
|
285
285
|
*
|
|
286
286
|
* @example
|
|
287
287
|
* Adorable Design · Crisp Bell Sound
|
|
@@ -289,7 +289,7 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTexts e
|
|
|
289
289
|
value?: string;
|
|
290
290
|
/**
|
|
291
291
|
* @remarks
|
|
292
|
-
*
|
|
292
|
+
* The vertical layout mode. Valid values: center, top, down.
|
|
293
293
|
*
|
|
294
294
|
* @example
|
|
295
295
|
* center
|
|
@@ -345,7 +345,7 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTexts e
|
|
|
345
345
|
export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreas extends $dara.Model {
|
|
346
346
|
/**
|
|
347
347
|
* @remarks
|
|
348
|
-
*
|
|
348
|
+
* The text color, such as #ffffff.
|
|
349
349
|
*
|
|
350
350
|
* @example
|
|
351
351
|
* #515151
|
|
@@ -353,7 +353,7 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreas extend
|
|
|
353
353
|
color?: string;
|
|
354
354
|
/**
|
|
355
355
|
* @remarks
|
|
356
|
-
*
|
|
356
|
+
* The original text before translation.
|
|
357
357
|
*
|
|
358
358
|
* @example
|
|
359
359
|
* 萌趣造型·清脆响铃
|
|
@@ -361,7 +361,7 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreas extend
|
|
|
361
361
|
content?: string;
|
|
362
362
|
/**
|
|
363
363
|
* @remarks
|
|
364
|
-
*
|
|
364
|
+
* The font size.
|
|
365
365
|
*
|
|
366
366
|
* @example
|
|
367
367
|
* 32
|
|
@@ -369,7 +369,7 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreas extend
|
|
|
369
369
|
fontsize?: number;
|
|
370
370
|
/**
|
|
371
371
|
* @remarks
|
|
372
|
-
*
|
|
372
|
+
* The horizontal layout mode. Valid values: center, left, right.
|
|
373
373
|
*
|
|
374
374
|
* @example
|
|
375
375
|
* left
|
|
@@ -377,7 +377,7 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreas extend
|
|
|
377
377
|
horizontalLayout?: string;
|
|
378
378
|
/**
|
|
379
379
|
* @remarks
|
|
380
|
-
*
|
|
380
|
+
* The number of lines in the text box.
|
|
381
381
|
*
|
|
382
382
|
* @example
|
|
383
383
|
* 1
|
|
@@ -385,12 +385,12 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreas extend
|
|
|
385
385
|
lineCount?: number;
|
|
386
386
|
/**
|
|
387
387
|
* @remarks
|
|
388
|
-
*
|
|
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
|
-
*
|
|
393
|
+
* The vertical layout mode. Valid values: center, top, down.
|
|
394
394
|
*
|
|
395
395
|
* @example
|
|
396
396
|
* center
|
|
@@ -435,22 +435,22 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreas extend
|
|
|
435
435
|
export class ImageTranslationProResponseBodyDataGenFilesEditInfo extends $dara.Model {
|
|
436
436
|
/**
|
|
437
437
|
* @remarks
|
|
438
|
-
*
|
|
438
|
+
* The list of font types.
|
|
439
439
|
*/
|
|
440
440
|
font?: string[];
|
|
441
441
|
/**
|
|
442
442
|
* @remarks
|
|
443
|
-
*
|
|
443
|
+
* The coordinate information of the product bounding box area.
|
|
444
444
|
*/
|
|
445
445
|
goodsRects?: ImageTranslationProResponseBodyDataGenFilesEditInfoGoodsRects;
|
|
446
446
|
/**
|
|
447
447
|
* @remarks
|
|
448
|
-
*
|
|
448
|
+
* The list of translation target languages.
|
|
449
449
|
*/
|
|
450
450
|
languages?: string[];
|
|
451
451
|
/**
|
|
452
452
|
* @remarks
|
|
453
|
-
*
|
|
453
|
+
* The URL of the image with all text removed.
|
|
454
454
|
*
|
|
455
455
|
* @example
|
|
456
456
|
* http://dashscope-a717.oss-cn-beijing.aliyuncs.com/repaired.png
|
|
@@ -458,12 +458,12 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfo extends $dara.M
|
|
|
458
458
|
repairedUrl?: string;
|
|
459
459
|
/**
|
|
460
460
|
* @remarks
|
|
461
|
-
*
|
|
461
|
+
* The collection of global IDs of translated images.
|
|
462
462
|
*/
|
|
463
463
|
resultImageIds?: string[];
|
|
464
464
|
/**
|
|
465
465
|
* @remarks
|
|
466
|
-
*
|
|
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 } {
|
|
@@ -515,7 +515,7 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfo extends $dara.M
|
|
|
515
515
|
export class ImageTranslationProResponseBodyDataGenFilesResultList extends $dara.Model {
|
|
516
516
|
/**
|
|
517
517
|
* @remarks
|
|
518
|
-
*
|
|
518
|
+
* The URL of the translated image file.
|
|
519
519
|
*
|
|
520
520
|
* @example
|
|
521
521
|
* http://dashscope-a717.oss-cn-beijing.aliyuncs.com/xxx.jpg
|
|
@@ -523,7 +523,7 @@ export class ImageTranslationProResponseBodyDataGenFilesResultList extends $dara
|
|
|
523
523
|
fileUrl?: string;
|
|
524
524
|
/**
|
|
525
525
|
* @remarks
|
|
526
|
-
*
|
|
526
|
+
* The translation target language.
|
|
527
527
|
*
|
|
528
528
|
* @example
|
|
529
529
|
* en
|
|
@@ -555,17 +555,17 @@ export class ImageTranslationProResponseBodyDataGenFilesResultList extends $dara
|
|
|
555
555
|
export class ImageTranslationProResponseBodyDataGenFiles extends $dara.Model {
|
|
556
556
|
/**
|
|
557
557
|
* @remarks
|
|
558
|
-
*
|
|
558
|
+
* The editor information, including recognized text areas, product areas, fonts, and other information.
|
|
559
559
|
*/
|
|
560
560
|
editInfo?: ImageTranslationProResponseBodyDataGenFilesEditInfo;
|
|
561
561
|
/**
|
|
562
562
|
* @remarks
|
|
563
|
-
*
|
|
563
|
+
* The collection of translation results.
|
|
564
564
|
*/
|
|
565
565
|
resultList?: ImageTranslationProResponseBodyDataGenFilesResultList[];
|
|
566
566
|
/**
|
|
567
567
|
* @remarks
|
|
568
|
-
*
|
|
568
|
+
* The URL of the original image.
|
|
569
569
|
*
|
|
570
570
|
* @example
|
|
571
571
|
* https://img.alicdn.com/imgextra/i3/O1CN01HTDhDi28Fd85ZYs7H_!!6000000007903-0-tps-800-800.jpg
|
|
@@ -605,7 +605,7 @@ export class ImageTranslationProResponseBodyDataGenFiles extends $dara.Model {
|
|
|
605
605
|
export class ImageTranslationProResponseBodyDataResultList extends $dara.Model {
|
|
606
606
|
/**
|
|
607
607
|
* @remarks
|
|
608
|
-
*
|
|
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
|
-
*
|
|
616
|
+
* The target language of the image translation.
|
|
617
617
|
*
|
|
618
618
|
* @example
|
|
619
619
|
* en
|
|
@@ -645,17 +645,17 @@ export class ImageTranslationProResponseBodyDataResultList extends $dara.Model {
|
|
|
645
645
|
export class ImageTranslationProResponseBodyData extends $dara.Model {
|
|
646
646
|
/**
|
|
647
647
|
* @remarks
|
|
648
|
-
*
|
|
648
|
+
* The editor protocol, including translation result files and editing information.
|
|
649
649
|
*/
|
|
650
650
|
genFiles?: ImageTranslationProResponseBodyDataGenFiles[];
|
|
651
651
|
/**
|
|
652
652
|
* @remarks
|
|
653
|
-
*
|
|
653
|
+
* The list of image translation results.
|
|
654
654
|
*/
|
|
655
655
|
resultList?: ImageTranslationProResponseBodyDataResultList[];
|
|
656
656
|
/**
|
|
657
657
|
* @remarks
|
|
658
|
-
*
|
|
658
|
+
* The asynchronous task ID. Not returned for synchronous calls.
|
|
659
659
|
*
|
|
660
660
|
* @example
|
|
661
661
|
* abc123-task-id
|
|
@@ -663,7 +663,7 @@ export class ImageTranslationProResponseBodyData extends $dara.Model {
|
|
|
663
663
|
taskId?: string;
|
|
664
664
|
/**
|
|
665
665
|
* @remarks
|
|
666
|
-
*
|
|
666
|
+
* The usage information, including the number of processed images.
|
|
667
667
|
*/
|
|
668
668
|
usageMap?: { [key: string]: number };
|
|
669
669
|
static names(): { [key: string]: string } {
|
|
@@ -705,7 +705,7 @@ export class ImageTranslationProResponseBodyData extends $dara.Model {
|
|
|
705
705
|
export class ImageTranslationProResponseBody extends $dara.Model {
|
|
706
706
|
/**
|
|
707
707
|
* @remarks
|
|
708
|
-
*
|
|
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
|
|
@@ -713,12 +713,12 @@ export class ImageTranslationProResponseBody extends $dara.Model {
|
|
|
713
713
|
code?: string;
|
|
714
714
|
/**
|
|
715
715
|
* @remarks
|
|
716
|
-
*
|
|
716
|
+
* The translation result data. ResultList contains the URL of the translation result. GenFiles contains EditInfo with the recognized text information.
|
|
717
717
|
*/
|
|
718
718
|
data?: ImageTranslationProResponseBodyData;
|
|
719
719
|
/**
|
|
720
720
|
* @remarks
|
|
721
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
737
|
+
* Indicates whether the call was successful. true indicates success. false indicates failure.
|
|
738
738
|
*
|
|
739
739
|
* @example
|
|
740
740
|
* true
|
|
@@ -4,17 +4,25 @@ import * as $dara from '@darabonba/typescript';
|
|
|
4
4
|
|
|
5
5
|
export class MaterialInspectionRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* apiId
|
|
9
|
+
*
|
|
7
10
|
* @example
|
|
8
11
|
* fb0012f49b004f889207a3c5e6ef8da9
|
|
9
12
|
*/
|
|
10
13
|
apiId?: string;
|
|
11
14
|
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The URL of the reference image. When this parameter is not empty, multi-image comparison mode is used.
|
|
17
|
+
*
|
|
12
18
|
* @example
|
|
13
19
|
* https://example.com/reference.jpg
|
|
14
20
|
*/
|
|
15
21
|
imageRefer?: string;
|
|
16
22
|
/**
|
|
17
23
|
* @remarks
|
|
24
|
+
* The URL of the target image to inspect.
|
|
25
|
+
*
|
|
18
26
|
* This parameter is required.
|
|
19
27
|
*
|
|
20
28
|
* @example
|
|
@@ -22,11 +30,17 @@ export class MaterialInspectionRequest extends $dara.Model {
|
|
|
22
30
|
*/
|
|
23
31
|
imageUrl?: string;
|
|
24
32
|
/**
|
|
33
|
+
* @remarks
|
|
34
|
+
* The business request identity. This value is returned as-is in the response for Tracing Analysis purposes.
|
|
35
|
+
*
|
|
25
36
|
* @example
|
|
26
37
|
* req-2026-06-04-001
|
|
27
38
|
*/
|
|
28
39
|
reqId?: string;
|
|
29
40
|
/**
|
|
41
|
+
* @remarks
|
|
42
|
+
* The rule prompt in natural language that defines the inspection criteria.
|
|
43
|
+
*
|
|
30
44
|
* @example
|
|
31
45
|
* 门型展架必须摆放在入口区域;功能台卡必须摆放在中柜台面
|
|
32
46
|
*/
|
|
@@ -4,11 +4,17 @@ import * as $dara from '@darabonba/typescript';
|
|
|
4
4
|
|
|
5
5
|
export class MaterialInspectionResponseBodyDataResultSteps extends $dara.Model {
|
|
6
6
|
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The step result. Valid values: PASS, FAIL, and UNABLE_TO_JUDGE.
|
|
9
|
+
*
|
|
7
10
|
* @example
|
|
8
11
|
* PASS
|
|
9
12
|
*/
|
|
10
13
|
result?: string;
|
|
11
14
|
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The step ID.
|
|
17
|
+
*
|
|
12
18
|
* @example
|
|
13
19
|
* XXX
|
|
14
20
|
*/
|
|
@@ -38,22 +44,38 @@ export class MaterialInspectionResponseBodyDataResultSteps extends $dara.Model {
|
|
|
38
44
|
|
|
39
45
|
export class MaterialInspectionResponseBodyDataResult extends $dara.Model {
|
|
40
46
|
/**
|
|
47
|
+
* @remarks
|
|
48
|
+
* The natural language summary, such as "1 rule: 1 PASS, all inspection items are compliant."
|
|
49
|
+
*
|
|
41
50
|
* @example
|
|
42
51
|
* 1项规则:1 PASS,所有检测项合规
|
|
43
52
|
*/
|
|
44
53
|
evidence?: string;
|
|
45
54
|
/**
|
|
55
|
+
* @remarks
|
|
56
|
+
* The overall result. Valid values: PASS and FAIL.
|
|
57
|
+
*
|
|
46
58
|
* @example
|
|
47
59
|
* PASS
|
|
48
60
|
*/
|
|
49
61
|
overallResult?: string;
|
|
50
62
|
/**
|
|
63
|
+
* @remarks
|
|
64
|
+
* The request ID returned as-is from the input.
|
|
65
|
+
*
|
|
51
66
|
* @example
|
|
52
67
|
* req-001
|
|
53
68
|
*/
|
|
54
69
|
reqId?: string;
|
|
70
|
+
/**
|
|
71
|
+
* @remarks
|
|
72
|
+
* The list of detection steps.
|
|
73
|
+
*/
|
|
55
74
|
steps?: MaterialInspectionResponseBodyDataResultSteps[];
|
|
56
75
|
/**
|
|
76
|
+
* @remarks
|
|
77
|
+
* The detection type.
|
|
78
|
+
*
|
|
57
79
|
* @example
|
|
58
80
|
* Stamp
|
|
59
81
|
*/
|
|
@@ -91,8 +113,15 @@ export class MaterialInspectionResponseBodyDataResult extends $dara.Model {
|
|
|
91
113
|
}
|
|
92
114
|
|
|
93
115
|
export class MaterialInspectionResponseBodyData extends $dara.Model {
|
|
116
|
+
/**
|
|
117
|
+
* @remarks
|
|
118
|
+
* The inspection result.
|
|
119
|
+
*/
|
|
94
120
|
result?: MaterialInspectionResponseBodyDataResult;
|
|
95
121
|
/**
|
|
122
|
+
* @remarks
|
|
123
|
+
* The usage information. The key is the usage metric name and the value is the count.
|
|
124
|
+
*
|
|
96
125
|
* @example
|
|
97
126
|
* {"ProcessingCount":1}
|
|
98
127
|
*/
|
|
@@ -128,22 +157,38 @@ export class MaterialInspectionResponseBodyData extends $dara.Model {
|
|
|
128
157
|
|
|
129
158
|
export class MaterialInspectionResponseBody extends $dara.Model {
|
|
130
159
|
/**
|
|
160
|
+
* @remarks
|
|
161
|
+
* The error code. This parameter is not returned for successful calls.
|
|
162
|
+
*
|
|
131
163
|
* @example
|
|
132
164
|
* 200
|
|
133
165
|
*/
|
|
134
166
|
code?: string;
|
|
167
|
+
/**
|
|
168
|
+
* @remarks
|
|
169
|
+
* The material display detection result.
|
|
170
|
+
*/
|
|
135
171
|
data?: MaterialInspectionResponseBodyData;
|
|
136
172
|
/**
|
|
173
|
+
* @remarks
|
|
174
|
+
* The error message. This parameter is not returned for successful calls.
|
|
175
|
+
*
|
|
137
176
|
* @example
|
|
138
177
|
* OK
|
|
139
178
|
*/
|
|
140
179
|
message?: string;
|
|
141
180
|
/**
|
|
181
|
+
* @remarks
|
|
182
|
+
* Id of the request
|
|
183
|
+
*
|
|
142
184
|
* @example
|
|
143
185
|
* E1AD60F1-BAC7-546B-9533-E7AD02B16E3F
|
|
144
186
|
*/
|
|
145
187
|
requestId?: string;
|
|
146
188
|
/**
|
|
189
|
+
* @remarks
|
|
190
|
+
* Indicates whether the call was successful. Valid values: true: The call was successful. false: The call failed.
|
|
191
|
+
*
|
|
147
192
|
* @example
|
|
148
193
|
* True
|
|
149
194
|
*/
|
|
@@ -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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
|