@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.
Files changed (39) hide show
  1. package/dist/client.d.ts +150 -16
  2. package/dist/client.js +235 -20
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/ImageTranslationPlusRequest.d.ts +75 -0
  5. package/dist/models/ImageTranslationPlusRequest.js +70 -0
  6. package/dist/models/ImageTranslationPlusRequest.js.map +1 -0
  7. package/dist/models/ImageTranslationPlusResponse.d.ts +19 -0
  8. package/dist/models/ImageTranslationPlusResponse.js +69 -0
  9. package/dist/models/ImageTranslationPlusResponse.js.map +1 -0
  10. package/dist/models/ImageTranslationPlusResponseBody.d.ts +72 -0
  11. package/dist/models/ImageTranslationPlusResponseBody.js +88 -0
  12. package/dist/models/ImageTranslationPlusResponseBody.js.map +1 -0
  13. package/dist/models/ImageTranslationProRequest.d.ts +8 -15
  14. package/dist/models/ImageTranslationProRequest.js +2 -2
  15. package/dist/models/ImageTranslationProRequest.js.map +1 -1
  16. package/dist/models/ImageTranslationProResponseBody.d.ts +55 -55
  17. package/dist/models/MaterialInspectionRequest.d.ts +41 -0
  18. package/dist/models/MaterialInspectionRequest.js +66 -0
  19. package/dist/models/MaterialInspectionRequest.js.map +1 -0
  20. package/dist/models/MaterialInspectionResponse.d.ts +19 -0
  21. package/dist/models/MaterialInspectionResponse.js +69 -0
  22. package/dist/models/MaterialInspectionResponse.js.map +1 -0
  23. package/dist/models/MaterialInspectionResponseBody.d.ts +109 -0
  24. package/dist/models/MaterialInspectionResponseBody.js +147 -0
  25. package/dist/models/MaterialInspectionResponseBody.js.map +1 -0
  26. package/dist/models/model.d.ts +10 -0
  27. package/dist/models/model.js +23 -2
  28. package/dist/models/model.js.map +1 -1
  29. package/package.json +1 -1
  30. package/src/client.ts +252 -21
  31. package/src/models/ImageTranslationPlusRequest.ts +100 -0
  32. package/src/models/ImageTranslationPlusResponse.ts +40 -0
  33. package/src/models/ImageTranslationPlusResponseBody.ts +106 -0
  34. package/src/models/ImageTranslationProRequest.ts +10 -17
  35. package/src/models/ImageTranslationProResponseBody.ts +55 -55
  36. package/src/models/MaterialInspectionRequest.ts +62 -0
  37. package/src/models/MaterialInspectionResponse.ts +40 -0
  38. package/src/models/MaterialInspectionResponseBody.ts +182 -0
  39. package/src/models/model.ts +10 -0
@@ -39,6 +39,7 @@ const $dara = __importStar(require("@darabonba/typescript"));
39
39
  class ImageTranslationProRequest extends $dara.Model {
40
40
  static names() {
41
41
  return {
42
+ async: 'Async',
42
43
  glossary: 'Glossary',
43
44
  imageUrl: 'ImageUrl',
44
45
  includingProductArea: 'IncludingProductArea',
@@ -46,11 +47,11 @@ class ImageTranslationProRequest extends $dara.Model {
46
47
  targetLanguage: 'TargetLanguage',
47
48
  translatingBrandInTheProduct: 'TranslatingBrandInTheProduct',
48
49
  useImageEditor: 'UseImageEditor',
49
- callType: 'callType',
50
50
  };
51
51
  }
52
52
  static types() {
53
53
  return {
54
+ async: 'boolean',
54
55
  glossary: 'string',
55
56
  imageUrl: 'string',
56
57
  includingProductArea: 'boolean',
@@ -58,7 +59,6 @@ class ImageTranslationProRequest extends $dara.Model {
58
59
  targetLanguage: 'string',
59
60
  translatingBrandInTheProduct: 'boolean',
60
61
  useImageEditor: 'boolean',
61
- callType: 'string',
62
62
  };
63
63
  }
64
64
  validate() {
@@ -1 +1 @@
1
- {"version":3,"file":"ImageTranslationProRequest.js","sourceRoot":"","sources":["../../src/models/ImageTranslationProRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,0BAA2B,SAAQ,KAAK,CAAC,KAAK;IAuEzD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,UAAU;YACpB,QAAQ,EAAE,UAAU;YACpB,oBAAoB,EAAE,sBAAsB;YAC5C,cAAc,EAAE,gBAAgB;YAChC,cAAc,EAAE,gBAAgB;YAChC,4BAA4B,EAAE,8BAA8B;YAC5D,cAAc,EAAE,gBAAgB;YAChC,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,QAAQ;YAClB,oBAAoB,EAAE,SAAS;YAC/B,cAAc,EAAE,QAAQ;YACxB,cAAc,EAAE,QAAQ;YACxB,4BAA4B,EAAE,SAAS;YACvC,cAAc,EAAE,SAAS;YACzB,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAxGD,gEAwGC"}
1
+ {"version":3,"file":"ImageTranslationProRequest.js","sourceRoot":"","sources":["../../src/models/ImageTranslationProRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,0BAA2B,SAAQ,KAAK,CAAC,KAAK;IAgEzD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,OAAO;YACd,QAAQ,EAAE,UAAU;YACpB,QAAQ,EAAE,UAAU;YACpB,oBAAoB,EAAE,sBAAsB;YAC5C,cAAc,EAAE,gBAAgB;YAChC,cAAc,EAAE,gBAAgB;YAChC,4BAA4B,EAAE,8BAA8B;YAC5D,cAAc,EAAE,gBAAgB;SACjC,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,SAAS;YAChB,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,QAAQ;YAClB,oBAAoB,EAAE,SAAS;YAC/B,cAAc,EAAE,QAAQ;YACxB,cAAc,EAAE,QAAQ;YACxB,4BAA4B,EAAE,SAAS;YACvC,cAAc,EAAE,SAAS;SAC1B,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjGD,gEAiGC"}
@@ -2,7 +2,7 @@ import * as $dara from '@darabonba/typescript';
2
2
  export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoGoodsRects extends $dara.Model {
3
3
  /**
4
4
  * @remarks
5
- * The rotation angle of the text box in degrees. A value less than 1 indicates a horizontal text box.
5
+ * Text box rotation angle in degrees. Values less than 1 indicate a horizontal text box
6
6
  *
7
7
  * @example
8
8
  * 0
@@ -10,7 +10,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoGoodsRec
10
10
  degree?: number;
11
11
  /**
12
12
  * @remarks
13
- * The height.
13
+ * Height
14
14
  *
15
15
  * @example
16
16
  * 0
@@ -18,7 +18,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoGoodsRec
18
18
  height?: number;
19
19
  /**
20
20
  * @remarks
21
- * The left coordinate.
21
+ * Left coordinate
22
22
  *
23
23
  * @example
24
24
  * 0
@@ -26,7 +26,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoGoodsRec
26
26
  left?: number;
27
27
  /**
28
28
  * @remarks
29
- * The top coordinate.
29
+ * Top coordinate
30
30
  *
31
31
  * @example
32
32
  * 0
@@ -34,7 +34,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoGoodsRec
34
34
  top?: number;
35
35
  /**
36
36
  * @remarks
37
- * The width.
37
+ * Width
38
38
  *
39
39
  * @example
40
40
  * 0
@@ -54,7 +54,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoGoodsRec
54
54
  export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTextsImageRect extends $dara.Model {
55
55
  /**
56
56
  * @remarks
57
- * The rotation angle of the text box in degrees. A value less than 1 indicates a horizontal text box.
57
+ * Text box rotation angle in degrees. Values less than 1 indicate a horizontal text box
58
58
  *
59
59
  * @example
60
60
  * 0
@@ -62,7 +62,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextArea
62
62
  degree?: number;
63
63
  /**
64
64
  * @remarks
65
- * The height.
65
+ * Height
66
66
  *
67
67
  * @example
68
68
  * 54
@@ -70,7 +70,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextArea
70
70
  height?: number;
71
71
  /**
72
72
  * @remarks
73
- * The left coordinate.
73
+ * Left coordinate
74
74
  *
75
75
  * @example
76
76
  * 43
@@ -78,7 +78,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextArea
78
78
  left?: number;
79
79
  /**
80
80
  * @remarks
81
- * The top coordinate.
81
+ * Top coordinate
82
82
  *
83
83
  * @example
84
84
  * 83
@@ -86,7 +86,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextArea
86
86
  top?: number;
87
87
  /**
88
88
  * @remarks
89
- * The width.
89
+ * Width
90
90
  *
91
91
  * @example
92
92
  * 418
@@ -106,7 +106,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextArea
106
106
  export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTextsTextRect extends $dara.Model {
107
107
  /**
108
108
  * @remarks
109
- * The rotation angle of the text box in degrees. A value less than 1 indicates a horizontal text box.
109
+ * Text box rotation angle in degrees. Values less than 1 indicate a horizontal text box
110
110
  *
111
111
  * @example
112
112
  * 0
@@ -114,7 +114,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextArea
114
114
  degree?: number;
115
115
  /**
116
116
  * @remarks
117
- * The height.
117
+ * Height
118
118
  *
119
119
  * @example
120
120
  * 30
@@ -122,7 +122,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextArea
122
122
  height?: number;
123
123
  /**
124
124
  * @remarks
125
- * The left coordinate.
125
+ * Left coordinate
126
126
  *
127
127
  * @example
128
128
  * 8
@@ -130,7 +130,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextArea
130
130
  left?: number;
131
131
  /**
132
132
  * @remarks
133
- * The top coordinate.
133
+ * Top coordinate
134
134
  *
135
135
  * @example
136
136
  * 95
@@ -138,7 +138,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextArea
138
138
  top?: number;
139
139
  /**
140
140
  * @remarks
141
- * The width.
141
+ * Width
142
142
  *
143
143
  * @example
144
144
  * 488
@@ -158,7 +158,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextArea
158
158
  export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTexts extends $dara.Model {
159
159
  /**
160
160
  * @remarks
161
- * The color of the translated text.
161
+ * Translated text color
162
162
  *
163
163
  * @example
164
164
  * #515151
@@ -166,7 +166,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextArea
166
166
  color?: string;
167
167
  /**
168
168
  * @remarks
169
- * The font size of the translated text.
169
+ * Font size of the translated text
170
170
  *
171
171
  * @example
172
172
  * 29
@@ -174,7 +174,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextArea
174
174
  fontsize?: number;
175
175
  /**
176
176
  * @remarks
177
- * The horizontal layout. Valid values: center, left, right.
177
+ * Horizontal layout mode. Available values: center, left, right
178
178
  *
179
179
  * @example
180
180
  * center
@@ -182,12 +182,12 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextArea
182
182
  horizontalLayout?: string;
183
183
  /**
184
184
  * @remarks
185
- * The coordinates of the image repair area.
185
+ * Image repair area coordinates
186
186
  */
187
187
  imageRect?: ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTextsImageRect;
188
188
  /**
189
189
  * @remarks
190
- * The target language code for translation.
190
+ * Translation target language code
191
191
  *
192
192
  * @example
193
193
  * en
@@ -195,7 +195,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextArea
195
195
  language?: string;
196
196
  /**
197
197
  * @remarks
198
- * The number of lines in the text box.
198
+ * Number of lines in the text box
199
199
  *
200
200
  * @example
201
201
  * 1
@@ -203,7 +203,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextArea
203
203
  lineCount?: number;
204
204
  /**
205
205
  * @remarks
206
- * The Ovis model error message and execution time.
206
+ * Ovis model error message and execution time
207
207
  *
208
208
  * @example
209
209
  * | ovis time: 0.748
@@ -211,12 +211,12 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextArea
211
211
  ovisErrMsg?: string;
212
212
  /**
213
213
  * @remarks
214
- * The coordinates of the text box area.
214
+ * Text box area coordinates
215
215
  */
216
216
  textRect?: ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTextsTextRect;
217
217
  /**
218
218
  * @remarks
219
- * Indicates whether the TextItem is valid. The item is invalid if this value does not exist or is false.
219
+ * Whether the TextItem is valid. It is invalid when this value does not exist or is false.
220
220
  *
221
221
  * @example
222
222
  * true
@@ -224,7 +224,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextArea
224
224
  valid?: boolean;
225
225
  /**
226
226
  * @remarks
227
- * The translated text content.
227
+ * Translated text content
228
228
  *
229
229
  * @example
230
230
  * Adorable Design · Crisp Bell Sound
@@ -232,7 +232,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextArea
232
232
  value?: string;
233
233
  /**
234
234
  * @remarks
235
- * The vertical layout. Valid values: center, top, down.
235
+ * Vertical layout mode. Available values: center, top, down
236
236
  *
237
237
  * @example
238
238
  * center
@@ -252,7 +252,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextArea
252
252
  export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreas extends $dara.Model {
253
253
  /**
254
254
  * @remarks
255
- * The text color, such as #ffffff.
255
+ * Text color, e.g., #ffffff
256
256
  *
257
257
  * @example
258
258
  * #515151
@@ -260,7 +260,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextArea
260
260
  color?: string;
261
261
  /**
262
262
  * @remarks
263
- * The original text before translation.
263
+ * Original text before translation
264
264
  *
265
265
  * @example
266
266
  * 萌趣造型·清脆响铃
@@ -268,7 +268,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextArea
268
268
  content?: string;
269
269
  /**
270
270
  * @remarks
271
- * The font size.
271
+ * Font size
272
272
  *
273
273
  * @example
274
274
  * 32
@@ -276,7 +276,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextArea
276
276
  fontsize?: number;
277
277
  /**
278
278
  * @remarks
279
- * The horizontal layout. Valid values: center, left, right.
279
+ * Horizontal layout mode. Available values: center, left, right
280
280
  *
281
281
  * @example
282
282
  * left
@@ -284,7 +284,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextArea
284
284
  horizontalLayout?: string;
285
285
  /**
286
286
  * @remarks
287
- * The number of lines in the text box.
287
+ * Number of lines in the text box
288
288
  *
289
289
  * @example
290
290
  * 1
@@ -292,12 +292,12 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextArea
292
292
  lineCount?: number;
293
293
  /**
294
294
  * @remarks
295
- * The list of translated texts. Each element corresponds to the translation result for a target language.
295
+ * Translated text list, where each element corresponds to the translation result for one target language
296
296
  */
297
297
  texts?: ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTexts[];
298
298
  /**
299
299
  * @remarks
300
- * The vertical layout. Valid values: center, top, down.
300
+ * Vertical layout mode. Available values: center, top, down
301
301
  *
302
302
  * @example
303
303
  * center
@@ -317,22 +317,22 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextArea
317
317
  export declare class ImageTranslationProResponseBodyDataGenFilesEditInfo extends $dara.Model {
318
318
  /**
319
319
  * @remarks
320
- * The list of font types.
320
+ * Font type list
321
321
  */
322
322
  font?: string[];
323
323
  /**
324
324
  * @remarks
325
- * The coordinate information of the product bounding box area.
325
+ * Product bounding box area coordinate information
326
326
  */
327
327
  goodsRects?: ImageTranslationProResponseBodyDataGenFilesEditInfoGoodsRects;
328
328
  /**
329
329
  * @remarks
330
- * The list of target languages for translation.
330
+ * Translation target language list
331
331
  */
332
332
  languages?: string[];
333
333
  /**
334
334
  * @remarks
335
- * The URL of the image with all text removed.
335
+ * Image URL after all text has been inpainted
336
336
  *
337
337
  * @example
338
338
  * http://dashscope-a717.oss-cn-beijing.aliyuncs.com/repaired.png
@@ -340,12 +340,12 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfo extends
340
340
  repairedUrl?: string;
341
341
  /**
342
342
  * @remarks
343
- * The collection of global IDs of translated images.
343
+ * Collection of translated image global IDs
344
344
  */
345
345
  resultImageIds?: string[];
346
346
  /**
347
347
  * @remarks
348
- * The list of text boxes, which contains information about all recognized text areas.
348
+ * Text box list, containing information about all recognized text areas
349
349
  */
350
350
  textAreas?: ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreas[];
351
351
  static names(): {
@@ -362,7 +362,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfo extends
362
362
  export declare class ImageTranslationProResponseBodyDataGenFilesResultList extends $dara.Model {
363
363
  /**
364
364
  * @remarks
365
- * The URL of the translated image file.
365
+ * Translated image file URL
366
366
  *
367
367
  * @example
368
368
  * http://dashscope-a717.oss-cn-beijing.aliyuncs.com/xxx.jpg
@@ -370,7 +370,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesResultList exten
370
370
  fileUrl?: string;
371
371
  /**
372
372
  * @remarks
373
- * The target language for translation.
373
+ * Translation target language
374
374
  *
375
375
  * @example
376
376
  * en
@@ -390,17 +390,17 @@ export declare class ImageTranslationProResponseBodyDataGenFilesResultList exten
390
390
  export declare class ImageTranslationProResponseBodyDataGenFiles extends $dara.Model {
391
391
  /**
392
392
  * @remarks
393
- * The editor information, which contains recognized information such as text areas, product areas, and fonts.
393
+ * Editor information, containing recognized information such as text areas, product areas, and fonts
394
394
  */
395
395
  editInfo?: ImageTranslationProResponseBodyDataGenFilesEditInfo;
396
396
  /**
397
397
  * @remarks
398
- * The collection of translation results.
398
+ * Translation result collection
399
399
  */
400
400
  resultList?: ImageTranslationProResponseBodyDataGenFilesResultList[];
401
401
  /**
402
402
  * @remarks
403
- * The URL of the original image.
403
+ * Original image URL
404
404
  *
405
405
  * @example
406
406
  * https://img.alicdn.com/imgextra/i3/O1CN01HTDhDi28Fd85ZYs7H_!!6000000007903-0-tps-800-800.jpg
@@ -420,7 +420,7 @@ export declare class ImageTranslationProResponseBodyDataGenFiles extends $dara.M
420
420
  export declare class ImageTranslationProResponseBodyDataResultList extends $dara.Model {
421
421
  /**
422
422
  * @remarks
423
- * The URL of the image translation result image.
423
+ * Image translation result image URL
424
424
  *
425
425
  * @example
426
426
  * http://dashscope-a717.oss-cn-beijing.aliyuncs.com/xxx.jpg
@@ -428,7 +428,7 @@ export declare class ImageTranslationProResponseBodyDataResultList extends $dara
428
428
  fileUrl?: string;
429
429
  /**
430
430
  * @remarks
431
- * The target language for image translation.
431
+ * Image translation target language
432
432
  *
433
433
  * @example
434
434
  * en
@@ -448,17 +448,17 @@ export declare class ImageTranslationProResponseBodyDataResultList extends $dara
448
448
  export declare class ImageTranslationProResponseBodyData extends $dara.Model {
449
449
  /**
450
450
  * @remarks
451
- * The editor protocol, which contains the translation result files and editing information.
451
+ * Editor protocol, containing translation result files and editing information
452
452
  */
453
453
  genFiles?: ImageTranslationProResponseBodyDataGenFiles[];
454
454
  /**
455
455
  * @remarks
456
- * The list of image translation results.
456
+ * Image translation result list
457
457
  */
458
458
  resultList?: ImageTranslationProResponseBodyDataResultList[];
459
459
  /**
460
460
  * @remarks
461
- * The asynchronous task ID. This is not returned for synchronous calls.
461
+ * Asynchronous task ID, not returned during synchronous calls.
462
462
  *
463
463
  * @example
464
464
  * abc123-task-id
@@ -466,7 +466,7 @@ export declare class ImageTranslationProResponseBodyData extends $dara.Model {
466
466
  taskId?: string;
467
467
  /**
468
468
  * @remarks
469
- * The usage information, including the number of processed images.
469
+ * Usage information, including the number of processed images, etc.
470
470
  */
471
471
  usageMap?: {
472
472
  [key: string]: number;
@@ -485,7 +485,7 @@ export declare class ImageTranslationProResponseBodyData extends $dara.Model {
485
485
  export declare class ImageTranslationProResponseBody extends $dara.Model {
486
486
  /**
487
487
  * @remarks
488
- * The response code. A value of 200 indicates success. For other response codes, see the error codes.
488
+ * Response code. 200 indicates a successful call. For other response codes, refer to the error code documentation.
489
489
  *
490
490
  * @example
491
491
  * 200
@@ -493,12 +493,12 @@ export declare class ImageTranslationProResponseBody extends $dara.Model {
493
493
  code?: string;
494
494
  /**
495
495
  * @remarks
496
- * The translation result data. ResultList contains the URL of the translation result. GenFiles contains EditInfo with the recognized text information.
496
+ * Translation result data. ResultList contains the URL of the translation result, and GenFiles contains EditInfo with recognized text information.
497
497
  */
498
498
  data?: ImageTranslationProResponseBodyData;
499
499
  /**
500
500
  * @remarks
501
- * 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.".
501
+ * Error message. Returns "Success" during normal calls. Returns specific error information during exceptions, such as "Content contains sensitive data, please try other input".
502
502
  *
503
503
  * @example
504
504
  * Success
@@ -506,7 +506,7 @@ export declare class ImageTranslationProResponseBody extends $dara.Model {
506
506
  message?: string;
507
507
  /**
508
508
  * @remarks
509
- * The request ID, which uniquely identifies the request.
509
+ * Request ID, used to identify a unique request call.
510
510
  *
511
511
  * @example
512
512
  * 61785C32-80C2-19A3-9E55-2C3702C84B40
@@ -514,7 +514,7 @@ export declare class ImageTranslationProResponseBody extends $dara.Model {
514
514
  requestId?: string;
515
515
  /**
516
516
  * @remarks
517
- * Indicates whether the call is successful. A value of true indicates success. A value of false indicates failure.
517
+ * Whether the call was successful. true indicates success, false indicates failure.
518
518
  *
519
519
  * @example
520
520
  * true
@@ -0,0 +1,41 @@
1
+ import * as $dara from '@darabonba/typescript';
2
+ export declare class MaterialInspectionRequest extends $dara.Model {
3
+ /**
4
+ * @example
5
+ * fb0012f49b004f889207a3c5e6ef8da9
6
+ */
7
+ apiId?: string;
8
+ /**
9
+ * @example
10
+ * https://example.com/reference.jpg
11
+ */
12
+ imageRefer?: string;
13
+ /**
14
+ * @remarks
15
+ * This parameter is required.
16
+ *
17
+ * @example
18
+ * https://example.com/store.jpg
19
+ */
20
+ imageUrl?: string;
21
+ /**
22
+ * @example
23
+ * req-2026-06-04-001
24
+ */
25
+ reqId?: string;
26
+ /**
27
+ * @example
28
+ * 门型展架必须摆放在入口区域;功能台卡必须摆放在中柜台面
29
+ */
30
+ rules?: string;
31
+ static names(): {
32
+ [key: string]: string;
33
+ };
34
+ static types(): {
35
+ [key: string]: any;
36
+ };
37
+ validate(): void;
38
+ constructor(map?: {
39
+ [key: string]: any;
40
+ });
41
+ }
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.MaterialInspectionRequest = void 0;
37
+ // This file is auto-generated, don't edit it
38
+ const $dara = __importStar(require("@darabonba/typescript"));
39
+ class MaterialInspectionRequest extends $dara.Model {
40
+ static names() {
41
+ return {
42
+ apiId: 'ApiId',
43
+ imageRefer: 'ImageRefer',
44
+ imageUrl: 'ImageUrl',
45
+ reqId: 'ReqId',
46
+ rules: 'Rules',
47
+ };
48
+ }
49
+ static types() {
50
+ return {
51
+ apiId: 'string',
52
+ imageRefer: 'string',
53
+ imageUrl: 'string',
54
+ reqId: 'string',
55
+ rules: 'string',
56
+ };
57
+ }
58
+ validate() {
59
+ super.validate();
60
+ }
61
+ constructor(map) {
62
+ super(map);
63
+ }
64
+ }
65
+ exports.MaterialInspectionRequest = MaterialInspectionRequest;
66
+ //# sourceMappingURL=MaterialInspectionRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MaterialInspectionRequest.js","sourceRoot":"","sources":["../../src/models/MaterialInspectionRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,yBAA0B,SAAQ,KAAK,CAAC,KAAK;IA6BxD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,OAAO;YACd,UAAU,EAAE,YAAY;YACxB,QAAQ,EAAE,UAAU;YACpB,KAAK,EAAE,OAAO;YACd,KAAK,EAAE,OAAO;SACf,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,QAAQ;YACf,UAAU,EAAE,QAAQ;YACpB,QAAQ,EAAE,QAAQ;YAClB,KAAK,EAAE,QAAQ;YACf,KAAK,EAAE,QAAQ;SAChB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAxDD,8DAwDC"}
@@ -0,0 +1,19 @@
1
+ import * as $dara from '@darabonba/typescript';
2
+ import { MaterialInspectionResponseBody } from "./MaterialInspectionResponseBody";
3
+ export declare class MaterialInspectionResponse extends $dara.Model {
4
+ headers?: {
5
+ [key: string]: string;
6
+ };
7
+ statusCode?: number;
8
+ body?: MaterialInspectionResponseBody;
9
+ static names(): {
10
+ [key: string]: string;
11
+ };
12
+ static types(): {
13
+ [key: string]: any;
14
+ };
15
+ validate(): void;
16
+ constructor(map?: {
17
+ [key: string]: any;
18
+ });
19
+ }
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.MaterialInspectionResponse = void 0;
37
+ // This file is auto-generated, don't edit it
38
+ const $dara = __importStar(require("@darabonba/typescript"));
39
+ const MaterialInspectionResponseBody_1 = require("./MaterialInspectionResponseBody");
40
+ class MaterialInspectionResponse extends $dara.Model {
41
+ static names() {
42
+ return {
43
+ headers: 'headers',
44
+ statusCode: 'statusCode',
45
+ body: 'body',
46
+ };
47
+ }
48
+ static types() {
49
+ return {
50
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
51
+ statusCode: 'number',
52
+ body: MaterialInspectionResponseBody_1.MaterialInspectionResponseBody,
53
+ };
54
+ }
55
+ validate() {
56
+ if (this.headers) {
57
+ $dara.Model.validateMap(this.headers);
58
+ }
59
+ if (this.body && typeof this.body.validate === 'function') {
60
+ this.body.validate();
61
+ }
62
+ super.validate();
63
+ }
64
+ constructor(map) {
65
+ super(map);
66
+ }
67
+ }
68
+ exports.MaterialInspectionResponse = MaterialInspectionResponse;
69
+ //# sourceMappingURL=MaterialInspectionResponse.js.map