@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
@@ -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
- * The ID of the intervention glossary. Optional. Create the glossary in the console and provide its ID. If the glossary ID is empty, the translation results are not modified.
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
- * The URL of the original image. Required. Image requirements: width and height must not exceed 4000 × 4000. File size must not exceed 10 MB. Supported formats: png, jpeg, jpg, bmp, and webp.
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
- * Specifies whether to translate text on the image subject. Optional. Default value: false. This helps protect information such as embedded product names from being translated.
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
- * The source language code. Required. For supported language directions, see the supported language direction list.
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
- * The target language code. Required. For supported language directions, see the supported language direction list.
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
- * Specifies whether to translate brand names on images. Optional. Default value: false. This helps protect brand name information from being translated.
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
- * Specifies whether to return layout information such as text position, font, and color. Optional. Default value: false. This can be used for secondary editing when integrated with an image editor.
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
- * The rotation angle of the text box in degrees. A value less than 1 indicates a horizontal text box.
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
- * The height.
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
- * The left coordinate.
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
- * The top coordinate.
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
- * The width.
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
- * The rotation angle of the text box in degrees. A value less than 1 indicates a horizontal text box.
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
- * The height.
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
- * The left coordinate.
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
- * The top coordinate.
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
- * The width.
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
- * The rotation angle of the text box in degrees. A value less than 1 indicates a horizontal text box.
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
- * The height.
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
- * The left coordinate.
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
- * The top coordinate.
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
- * The width.
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
- * The color of the translated text.
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
- * The font size of the translated text.
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
- * The horizontal layout. Valid values: center, left, right.
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
- * The coordinates of the image repair area.
242
+ * Image repair area coordinates
243
243
  */
244
244
  imageRect?: ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTextsImageRect;
245
245
  /**
246
246
  * @remarks
247
- * The target language code for translation.
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
- * The number of lines in the text box.
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
- * The Ovis model error message and execution time.
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
- * The coordinates of the text box area.
271
+ * Text box area coordinates
272
272
  */
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
+ * 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
- * The translated text content.
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
- * The vertical layout. Valid values: center, top, down.
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
- * The text color, such as #ffffff.
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
- * The original text before translation.
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
- * The font size.
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
- * The horizontal layout. Valid values: center, left, right.
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
- * The number of lines in the text box.
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
- * The list of translated texts. Each element corresponds to the translation result for a target language.
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
- * The vertical layout. Valid values: center, top, down.
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
- * The list of font types.
438
+ * Font type list
439
439
  */
440
440
  font?: string[];
441
441
  /**
442
442
  * @remarks
443
- * The coordinate information of the product bounding box area.
443
+ * Product bounding box area coordinate information
444
444
  */
445
445
  goodsRects?: ImageTranslationProResponseBodyDataGenFilesEditInfoGoodsRects;
446
446
  /**
447
447
  * @remarks
448
- * The list of target languages for translation.
448
+ * Translation target language list
449
449
  */
450
450
  languages?: string[];
451
451
  /**
452
452
  * @remarks
453
- * The URL of the image with all text removed.
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
- * The collection of global IDs of translated images.
461
+ * Collection of translated image global IDs
462
462
  */
463
463
  resultImageIds?: string[];
464
464
  /**
465
465
  * @remarks
466
- * The list of text boxes, which contains information about all recognized text areas.
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
- * The URL of the translated image file.
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
- * The target language for translation.
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
- * The editor information, which contains recognized information such as text areas, product areas, and fonts.
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
- * The collection of translation results.
563
+ * Translation result collection
564
564
  */
565
565
  resultList?: ImageTranslationProResponseBodyDataGenFilesResultList[];
566
566
  /**
567
567
  * @remarks
568
- * The URL of the original image.
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
- * The URL of the image translation result image.
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
- * The target language for image translation.
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
- * The editor protocol, which contains the translation result files and editing information.
648
+ * Editor protocol, containing translation result files and editing information
649
649
  */
650
650
  genFiles?: ImageTranslationProResponseBodyDataGenFiles[];
651
651
  /**
652
652
  * @remarks
653
- * The list of image translation results.
653
+ * Image translation result list
654
654
  */
655
655
  resultList?: ImageTranslationProResponseBodyDataResultList[];
656
656
  /**
657
657
  * @remarks
658
- * The asynchronous task ID. This is not returned for synchronous calls.
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
- * The usage information, including the number of processed images.
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
- * The response code. A value of 200 indicates success. For other response codes, see the error codes.
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
- * The translation result data. ResultList contains the URL of the translation result. GenFiles contains EditInfo with the recognized text information.
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
- * 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
+ * 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
- * The request ID, which uniquely identifies the request.
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
- * Indicates whether the call is successful. A value of true indicates success. A value of false indicates failure.
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
+