@alicloud/aidge20260428 1.0.0 → 2.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.
- package/dist/client.d.ts +150 -16
- package/dist/client.js +235 -20
- package/dist/client.js.map +1 -1
- package/dist/models/ImageTranslationPlusRequest.d.ts +75 -0
- package/dist/models/ImageTranslationPlusRequest.js +70 -0
- package/dist/models/ImageTranslationPlusRequest.js.map +1 -0
- package/dist/models/ImageTranslationPlusResponse.d.ts +19 -0
- package/dist/models/ImageTranslationPlusResponse.js +69 -0
- package/dist/models/ImageTranslationPlusResponse.js.map +1 -0
- package/dist/models/ImageTranslationPlusResponseBody.d.ts +72 -0
- package/dist/models/ImageTranslationPlusResponseBody.js +88 -0
- package/dist/models/ImageTranslationPlusResponseBody.js.map +1 -0
- package/dist/models/ImageTranslationProRequest.d.ts +8 -15
- package/dist/models/ImageTranslationProRequest.js +2 -2
- package/dist/models/ImageTranslationProRequest.js.map +1 -1
- package/dist/models/ImageTranslationProResponseBody.d.ts +55 -55
- package/dist/models/MaterialInspectionRequest.d.ts +41 -0
- package/dist/models/MaterialInspectionRequest.js +66 -0
- package/dist/models/MaterialInspectionRequest.js.map +1 -0
- package/dist/models/MaterialInspectionResponse.d.ts +19 -0
- package/dist/models/MaterialInspectionResponse.js +69 -0
- package/dist/models/MaterialInspectionResponse.js.map +1 -0
- package/dist/models/MaterialInspectionResponseBody.d.ts +109 -0
- package/dist/models/MaterialInspectionResponseBody.js +147 -0
- package/dist/models/MaterialInspectionResponseBody.js.map +1 -0
- package/dist/models/model.d.ts +10 -0
- package/dist/models/model.js +23 -2
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +252 -21
- package/src/models/ImageTranslationPlusRequest.ts +100 -0
- package/src/models/ImageTranslationPlusResponse.ts +40 -0
- package/src/models/ImageTranslationPlusResponseBody.ts +106 -0
- package/src/models/ImageTranslationProRequest.ts +10 -17
- package/src/models/ImageTranslationProResponseBody.ts +55 -55
- package/src/models/MaterialInspectionRequest.ts +62 -0
- package/src/models/MaterialInspectionResponse.ts +40 -0
- package/src/models/MaterialInspectionResponseBody.ts +182 -0
- package/src/models/model.ts +10 -0
|
@@ -3,9 +3,10 @@ import * as $dara from '@darabonba/typescript';
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
export class ImageTranslationProRequest extends $dara.Model {
|
|
6
|
+
async?: boolean;
|
|
6
7
|
/**
|
|
7
8
|
* @remarks
|
|
8
|
-
*
|
|
9
|
+
* Glossary ID, optional. You need to create a glossary separately in the console and provide its ID. If the provided glossary ID is empty, the translation results will not be modified.
|
|
9
10
|
*
|
|
10
11
|
* @example
|
|
11
12
|
* glossary_1
|
|
@@ -13,7 +14,7 @@ export class ImageTranslationProRequest extends $dara.Model {
|
|
|
13
14
|
glossary?: string;
|
|
14
15
|
/**
|
|
15
16
|
* @remarks
|
|
16
|
-
*
|
|
17
|
+
* Original image URL, required. Image requirements: width and height must not exceed 4000×4000; size must not exceed 10MB; supported formats include png, jpeg, jpg, bmp, and webp.
|
|
17
18
|
*
|
|
18
19
|
* This parameter is required.
|
|
19
20
|
*
|
|
@@ -23,7 +24,7 @@ export class ImageTranslationProRequest extends $dara.Model {
|
|
|
23
24
|
imageUrl?: string;
|
|
24
25
|
/**
|
|
25
26
|
* @remarks
|
|
26
|
-
*
|
|
27
|
+
* Choose whether to translate text on the image subject, optional, default false. This helps you protect information by avoiding translation of embedded content such as product names.
|
|
27
28
|
*
|
|
28
29
|
* @example
|
|
29
30
|
* false
|
|
@@ -31,7 +32,7 @@ export class ImageTranslationProRequest extends $dara.Model {
|
|
|
31
32
|
includingProductArea?: boolean;
|
|
32
33
|
/**
|
|
33
34
|
* @remarks
|
|
34
|
-
*
|
|
35
|
+
* Source language code, required. See the supported language pairs list for available translation directions.
|
|
35
36
|
*
|
|
36
37
|
* This parameter is required.
|
|
37
38
|
*
|
|
@@ -41,7 +42,7 @@ export class ImageTranslationProRequest extends $dara.Model {
|
|
|
41
42
|
sourceLanguage?: string;
|
|
42
43
|
/**
|
|
43
44
|
* @remarks
|
|
44
|
-
*
|
|
45
|
+
* Target language code, required. See the supported language pairs list for available translation directions.
|
|
45
46
|
*
|
|
46
47
|
* This parameter is required.
|
|
47
48
|
*
|
|
@@ -51,7 +52,7 @@ export class ImageTranslationProRequest extends $dara.Model {
|
|
|
51
52
|
targetLanguage?: string;
|
|
52
53
|
/**
|
|
53
54
|
* @remarks
|
|
54
|
-
*
|
|
55
|
+
* Choose whether to translate brand names on the image, optional, default false. This helps you protect brand name information from being translated.
|
|
55
56
|
*
|
|
56
57
|
* @example
|
|
57
58
|
* false
|
|
@@ -59,22 +60,15 @@ export class ImageTranslationProRequest extends $dara.Model {
|
|
|
59
60
|
translatingBrandInTheProduct?: boolean;
|
|
60
61
|
/**
|
|
61
62
|
* @remarks
|
|
62
|
-
*
|
|
63
|
+
* Whether to return layout information such as text position, font, and color, optional, default false. This can be used for secondary editing when integrating with an image editor.
|
|
63
64
|
*
|
|
64
65
|
* @example
|
|
65
66
|
* false
|
|
66
67
|
*/
|
|
67
68
|
useImageEditor?: boolean;
|
|
68
|
-
/**
|
|
69
|
-
* @remarks
|
|
70
|
-
* The call type. This is an internal system parameter. Optional.
|
|
71
|
-
*
|
|
72
|
-
* @example
|
|
73
|
-
* sync
|
|
74
|
-
*/
|
|
75
|
-
callType?: string;
|
|
76
69
|
static names(): { [key: string]: string } {
|
|
77
70
|
return {
|
|
71
|
+
async: 'Async',
|
|
78
72
|
glossary: 'Glossary',
|
|
79
73
|
imageUrl: 'ImageUrl',
|
|
80
74
|
includingProductArea: 'IncludingProductArea',
|
|
@@ -82,12 +76,12 @@ export class ImageTranslationProRequest extends $dara.Model {
|
|
|
82
76
|
targetLanguage: 'TargetLanguage',
|
|
83
77
|
translatingBrandInTheProduct: 'TranslatingBrandInTheProduct',
|
|
84
78
|
useImageEditor: 'UseImageEditor',
|
|
85
|
-
callType: 'callType',
|
|
86
79
|
};
|
|
87
80
|
}
|
|
88
81
|
|
|
89
82
|
static types(): { [key: string]: any } {
|
|
90
83
|
return {
|
|
84
|
+
async: 'boolean',
|
|
91
85
|
glossary: 'string',
|
|
92
86
|
imageUrl: 'string',
|
|
93
87
|
includingProductArea: 'boolean',
|
|
@@ -95,7 +89,6 @@ export class ImageTranslationProRequest extends $dara.Model {
|
|
|
95
89
|
targetLanguage: 'string',
|
|
96
90
|
translatingBrandInTheProduct: 'boolean',
|
|
97
91
|
useImageEditor: 'boolean',
|
|
98
|
-
callType: 'string',
|
|
99
92
|
};
|
|
100
93
|
}
|
|
101
94
|
|
|
@@ -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
|
+
* Text box rotation angle in degrees. Values less than 1 indicate 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
|
+
* 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
|
+
* 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
|
+
* 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
|
+
* 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
|
+
* Text box rotation angle in degrees. Values less than 1 indicate 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
|
+
* 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
|
+
* 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
|
+
* 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
|
+
* 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
|
+
* Text box rotation angle in degrees. Values less than 1 indicate 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
|
+
* 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
|
+
* 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
|
+
* 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
|
+
* 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
|
+
* Translated text color
|
|
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
|
+
* 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
|
+
* Horizontal layout mode. Available 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
|
+
* Image repair area coordinates
|
|
243
243
|
*/
|
|
244
244
|
imageRect?: ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTextsImageRect;
|
|
245
245
|
/**
|
|
246
246
|
* @remarks
|
|
247
|
-
*
|
|
247
|
+
* Translation target language code
|
|
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
|
+
* 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
|
-
*
|
|
263
|
+
* 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
|
+
* Text box area coordinates
|
|
272
272
|
*/
|
|
273
273
|
textRect?: ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTextsTextRect;
|
|
274
274
|
/**
|
|
275
275
|
* @remarks
|
|
276
|
-
*
|
|
276
|
+
* Whether the TextItem is valid. It 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
|
+
* 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
|
+
* Vertical layout mode. Available 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
|
+
* Text color, e.g., #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
|
+
* 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
|
+
* 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
|
+
* Horizontal layout mode. Available 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
|
+
* 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
|
+
* Translated text list, where each element corresponds to the translation result for one target language
|
|
389
389
|
*/
|
|
390
390
|
texts?: ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTexts[];
|
|
391
391
|
/**
|
|
392
392
|
* @remarks
|
|
393
|
-
*
|
|
393
|
+
* Vertical layout mode. Available 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
|
+
* Font type list
|
|
439
439
|
*/
|
|
440
440
|
font?: string[];
|
|
441
441
|
/**
|
|
442
442
|
* @remarks
|
|
443
|
-
*
|
|
443
|
+
* Product bounding box area coordinate information
|
|
444
444
|
*/
|
|
445
445
|
goodsRects?: ImageTranslationProResponseBodyDataGenFilesEditInfoGoodsRects;
|
|
446
446
|
/**
|
|
447
447
|
* @remarks
|
|
448
|
-
*
|
|
448
|
+
* Translation target language list
|
|
449
449
|
*/
|
|
450
450
|
languages?: string[];
|
|
451
451
|
/**
|
|
452
452
|
* @remarks
|
|
453
|
-
*
|
|
453
|
+
* Image URL after all text has been inpainted
|
|
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
|
+
* Collection of translated image global IDs
|
|
462
462
|
*/
|
|
463
463
|
resultImageIds?: string[];
|
|
464
464
|
/**
|
|
465
465
|
* @remarks
|
|
466
|
-
*
|
|
466
|
+
* Text box list, containing information about all recognized text areas
|
|
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
|
+
* Translated image file URL
|
|
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
|
+
* 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
|
+
* Editor information, containing recognized information such as text areas, product areas, and fonts
|
|
559
559
|
*/
|
|
560
560
|
editInfo?: ImageTranslationProResponseBodyDataGenFilesEditInfo;
|
|
561
561
|
/**
|
|
562
562
|
* @remarks
|
|
563
|
-
*
|
|
563
|
+
* Translation result collection
|
|
564
564
|
*/
|
|
565
565
|
resultList?: ImageTranslationProResponseBodyDataGenFilesResultList[];
|
|
566
566
|
/**
|
|
567
567
|
* @remarks
|
|
568
|
-
*
|
|
568
|
+
* Original image URL
|
|
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
|
+
* Image translation result image URL
|
|
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
|
+
* Image translation target language
|
|
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
|
+
* Editor protocol, containing translation result files and editing information
|
|
649
649
|
*/
|
|
650
650
|
genFiles?: ImageTranslationProResponseBodyDataGenFiles[];
|
|
651
651
|
/**
|
|
652
652
|
* @remarks
|
|
653
|
-
*
|
|
653
|
+
* Image translation result list
|
|
654
654
|
*/
|
|
655
655
|
resultList?: ImageTranslationProResponseBodyDataResultList[];
|
|
656
656
|
/**
|
|
657
657
|
* @remarks
|
|
658
|
-
*
|
|
658
|
+
* Asynchronous task ID, not returned during 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
|
+
* Usage information, including the number of processed images, etc.
|
|
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
|
+
* Response code. 200 indicates a successful call. For other response codes, refer to the error code documentation.
|
|
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
|
+
* Translation result data. ResultList contains the URL of the translation result, and GenFiles contains EditInfo with recognized text information.
|
|
717
717
|
*/
|
|
718
718
|
data?: ImageTranslationProResponseBodyData;
|
|
719
719
|
/**
|
|
720
720
|
* @remarks
|
|
721
|
-
*
|
|
721
|
+
* Error message. Returns "Success" during normal calls. Returns specific error information during exceptions, such as "Content contains sensitive data, please 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
|
+
* 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
|
+
* Whether the call was successful. true indicates success, false indicates failure.
|
|
738
738
|
*
|
|
739
739
|
* @example
|
|
740
740
|
* true
|
|
@@ -0,0 +1,62 @@
|
|
|
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
|
+
* @example
|
|
8
|
+
* fb0012f49b004f889207a3c5e6ef8da9
|
|
9
|
+
*/
|
|
10
|
+
apiId?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* https://example.com/reference.jpg
|
|
14
|
+
*/
|
|
15
|
+
imageRefer?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @remarks
|
|
18
|
+
* This parameter is required.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* https://example.com/store.jpg
|
|
22
|
+
*/
|
|
23
|
+
imageUrl?: string;
|
|
24
|
+
/**
|
|
25
|
+
* @example
|
|
26
|
+
* req-2026-06-04-001
|
|
27
|
+
*/
|
|
28
|
+
reqId?: string;
|
|
29
|
+
/**
|
|
30
|
+
* @example
|
|
31
|
+
* 门型展架必须摆放在入口区域;功能台卡必须摆放在中柜台面
|
|
32
|
+
*/
|
|
33
|
+
rules?: string;
|
|
34
|
+
static names(): { [key: string]: string } {
|
|
35
|
+
return {
|
|
36
|
+
apiId: 'ApiId',
|
|
37
|
+
imageRefer: 'ImageRefer',
|
|
38
|
+
imageUrl: 'ImageUrl',
|
|
39
|
+
reqId: 'ReqId',
|
|
40
|
+
rules: 'Rules',
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
static types(): { [key: string]: any } {
|
|
45
|
+
return {
|
|
46
|
+
apiId: 'string',
|
|
47
|
+
imageRefer: 'string',
|
|
48
|
+
imageUrl: 'string',
|
|
49
|
+
reqId: 'string',
|
|
50
|
+
rules: 'string',
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
validate() {
|
|
55
|
+
super.validate();
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
constructor(map?: { [key: string]: any }) {
|
|
59
|
+
super(map);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
@@ -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
|
+
|