@alicloud/aidge20260428 3.1.1 → 5.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 (72) hide show
  1. package/dist/client.d.ts +148 -118
  2. package/dist/client.js +222 -118
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/DocumentTranslateRequest.d.ts +2 -2
  5. package/dist/models/DocumentTranslateResponseBody.d.ts +1 -1
  6. package/dist/models/ImageTranslationProRequest.d.ts +11 -8
  7. package/dist/models/ImageTranslationProRequest.js.map +1 -1
  8. package/dist/models/ImageTranslationProResponseBody.d.ts +16 -24
  9. package/dist/models/ImageTranslationProResponseBody.js +0 -2
  10. package/dist/models/ImageTranslationProResponseBody.js.map +1 -1
  11. package/dist/models/ImageTranslationStandardRequest.d.ts +6 -9
  12. package/dist/models/ImageTranslationStandardRequest.js.map +1 -1
  13. package/dist/models/ImageTranslationStandardResponseBody.d.ts +6 -14
  14. package/dist/models/ImageTranslationStandardResponseBody.js +0 -2
  15. package/dist/models/ImageTranslationStandardResponseBody.js.map +1 -1
  16. package/dist/models/MerchandisePlacementDetectionRequest.d.ts +47 -0
  17. package/dist/models/MerchandisePlacementDetectionRequest.js +64 -0
  18. package/dist/models/MerchandisePlacementDetectionRequest.js.map +1 -0
  19. package/dist/models/MerchandisePlacementDetectionResponse.d.ts +19 -0
  20. package/dist/models/MerchandisePlacementDetectionResponse.js +69 -0
  21. package/dist/models/MerchandisePlacementDetectionResponse.js.map +1 -0
  22. package/dist/models/MerchandisePlacementDetectionResponseBody.d.ts +210 -0
  23. package/dist/models/MerchandisePlacementDetectionResponseBody.js +182 -0
  24. package/dist/models/MerchandisePlacementDetectionResponseBody.js.map +1 -0
  25. package/dist/models/QueryAsyncTaskResultResponseBody.d.ts +4 -4
  26. package/dist/models/QueryAsyncTaskResultResponseBody.js +1 -1
  27. package/dist/models/QueryAsyncTaskResultResponseBody.js.map +1 -1
  28. package/dist/models/TextTranslateRequest.d.ts +7 -7
  29. package/dist/models/TextTranslateShrinkRequest.d.ts +7 -7
  30. package/dist/models/VideoGenerationRequest.d.ts +86 -0
  31. package/dist/models/VideoGenerationRequest.js +144 -0
  32. package/dist/models/VideoGenerationRequest.js.map +1 -0
  33. package/dist/models/VideoGenerationResponse.d.ts +19 -0
  34. package/dist/models/VideoGenerationResponse.js +69 -0
  35. package/dist/models/VideoGenerationResponse.js.map +1 -0
  36. package/dist/models/VideoGenerationResponseBody.d.ts +50 -0
  37. package/dist/models/VideoGenerationResponseBody.js +93 -0
  38. package/dist/models/VideoGenerationResponseBody.js.map +1 -0
  39. package/dist/models/VideoGenerationShrinkRequest.d.ts +24 -0
  40. package/dist/models/VideoGenerationShrinkRequest.js +62 -0
  41. package/dist/models/VideoGenerationShrinkRequest.js.map +1 -0
  42. package/dist/models/VideoTranslationRequest.d.ts +9 -0
  43. package/dist/models/VideoTranslationRequest.js.map +1 -1
  44. package/dist/models/VideoTranslationResponseBody.d.ts +19 -0
  45. package/dist/models/VideoTranslationResponseBody.js.map +1 -1
  46. package/dist/models/VideoTranslationShrinkRequest.d.ts +9 -0
  47. package/dist/models/VideoTranslationShrinkRequest.js.map +1 -1
  48. package/dist/models/model.d.ts +15 -0
  49. package/dist/models/model.js +33 -3
  50. package/dist/models/model.js.map +1 -1
  51. package/package.json +1 -1
  52. package/src/client.ts +236 -118
  53. package/src/models/DocumentTranslateRequest.ts +2 -2
  54. package/src/models/DocumentTranslateResponseBody.ts +1 -1
  55. package/src/models/ImageTranslationProRequest.ts +11 -8
  56. package/src/models/ImageTranslationProResponseBody.ts +16 -26
  57. package/src/models/ImageTranslationStandardRequest.ts +6 -9
  58. package/src/models/ImageTranslationStandardResponseBody.ts +6 -16
  59. package/src/models/MerchandisePlacementDetectionRequest.ts +66 -0
  60. package/src/models/MerchandisePlacementDetectionResponse.ts +40 -0
  61. package/src/models/MerchandisePlacementDetectionResponseBody.ts +309 -0
  62. package/src/models/QueryAsyncTaskResultResponseBody.ts +5 -5
  63. package/src/models/TextTranslateRequest.ts +7 -7
  64. package/src/models/TextTranslateShrinkRequest.ts +7 -7
  65. package/src/models/VideoGenerationRequest.ts +156 -0
  66. package/src/models/VideoGenerationResponse.ts +40 -0
  67. package/src/models/VideoGenerationResponseBody.ts +87 -0
  68. package/src/models/VideoGenerationShrinkRequest.ts +41 -0
  69. package/src/models/VideoTranslationRequest.ts +9 -0
  70. package/src/models/VideoTranslationResponseBody.ts +19 -0
  71. package/src/models/VideoTranslationShrinkRequest.ts +9 -0
  72. package/src/models/model.ts +15 -0
@@ -5,12 +5,15 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class ImageTranslationProRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * Specifies whether to call the operation asynchronously.
8
+ * Specifies whether to use asynchronous mode. Default value: false (synchronous mode). When set to true, the operation immediately returns a TaskId, and you must call the query translation result operation to obtain the final result.
9
+ *
10
+ * @example
11
+ * true
9
12
  */
10
13
  async?: boolean;
11
14
  /**
12
15
  * @remarks
13
- * The intervention glossary ID. Optional. Create the glossary separately in the console and provide its ID. If the glossary ID is empty, the translation results are not modified.
16
+ * The glossary ID. Optional. Create a glossary separately in the console and provide its ID. If the glossary ID is empty, the translation results are not modified.
14
17
  *
15
18
  * @example
16
19
  * glossary_1
@@ -18,7 +21,7 @@ export class ImageTranslationProRequest extends $dara.Model {
18
21
  glossary?: string;
19
22
  /**
20
23
  * @remarks
21
- * The URL of the original image. Required. Image requirements: width and height must not exceed 4000 × 4000. Size must not exceed 10 MB. Supported formats: png, jpeg, jpg, bmp, and webp.
24
+ * The URL of the original image. Required. Image requirements: width and height cannot exceed 4000 × 4000 pixels, size cannot exceed 10 MB, and supported formats include png, jpeg, jpg, bmp, and webp.
22
25
  *
23
26
  * This parameter is required.
24
27
  *
@@ -28,7 +31,7 @@ export class ImageTranslationProRequest extends $dara.Model {
28
31
  imageUrl?: string;
29
32
  /**
30
33
  * @remarks
31
- * Specifies whether to translate text on the image subject. Optional. Default value: false. This helps you protect information and avoid translating embedded information such as product names.
34
+ * Specifies whether to translate text on the image subject body. Optional. Default value: false. This helps you protect information and avoid translating embedded information such as product names.
32
35
  *
33
36
  * @example
34
37
  * false
@@ -36,7 +39,7 @@ export class ImageTranslationProRequest extends $dara.Model {
36
39
  includingProductArea?: boolean;
37
40
  /**
38
41
  * @remarks
39
- * The source language code. Required. For supported language directions, see the supported language direction list.
42
+ * The source language code. Required. For supported language pairs, see the supported language pair list.
40
43
  *
41
44
  * This parameter is required.
42
45
  *
@@ -46,7 +49,7 @@ export class ImageTranslationProRequest extends $dara.Model {
46
49
  sourceLanguage?: string;
47
50
  /**
48
51
  * @remarks
49
- * The target language code. Required. For supported language directions, see the supported language direction list.
52
+ * The target language code. Required. For supported language pairs, see the supported language pair list.
50
53
  *
51
54
  * This parameter is required.
52
55
  *
@@ -56,7 +59,7 @@ export class ImageTranslationProRequest extends $dara.Model {
56
59
  targetLanguage?: string;
57
60
  /**
58
61
  * @remarks
59
- * Specifies whether to translate brand names on the image. Optional. Default value: false. This helps you protect brand name information from being translated.
62
+ * Specifies whether to translate brand names on the image. Optional. Default value: false. This helps you protect brand name information and avoid unintended translation.
60
63
  *
61
64
  * @example
62
65
  * false
@@ -64,7 +67,7 @@ export class ImageTranslationProRequest extends $dara.Model {
64
67
  translatingBrandInTheProduct?: boolean;
65
68
  /**
66
69
  * @remarks
67
- * 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.
70
+ * Specifies whether to return layout information such as text position, font, and color. When set to true, layer information is returned, which can be used with an image editor for secondary editing. Default value: false.
68
71
  *
69
72
  * @example
70
73
  * false
@@ -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
+ * The text color after translation.
219
219
  *
220
220
  * @example
221
221
  * #515151
@@ -258,14 +258,6 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTexts e
258
258
  * 1
259
259
  */
260
260
  lineCount?: number;
261
- /**
262
- * @remarks
263
- * The Ovis model error message and execution time.
264
- *
265
- * @example
266
- * | ovis time: 0.748
267
- */
268
- ovisErrMsg?: string;
269
261
  /**
270
262
  * @remarks
271
263
  * The coordinates of the text box area.
@@ -303,7 +295,6 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTexts e
303
295
  imageRect: 'ImageRect',
304
296
  language: 'Language',
305
297
  lineCount: 'LineCount',
306
- ovisErrMsg: 'OvisErrMsg',
307
298
  textRect: 'TextRect',
308
299
  valid: 'Valid',
309
300
  value: 'Value',
@@ -319,7 +310,6 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTexts e
319
310
  imageRect: ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTextsImageRect,
320
311
  language: 'string',
321
312
  lineCount: 'number',
322
- ovisErrMsg: 'string',
323
313
  textRect: ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTextsTextRect,
324
314
  valid: 'boolean',
325
315
  value: 'string',
@@ -356,7 +346,7 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreas extend
356
346
  * The original text before translation.
357
347
  *
358
348
  * @example
359
- * 萌趣造型·清脆响铃
349
+ * Cute Shape · Crisp Bell.
360
350
  */
361
351
  content?: string;
362
352
  /**
@@ -385,7 +375,7 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreas extend
385
375
  lineCount?: number;
386
376
  /**
387
377
  * @remarks
388
- * The list of translated texts. Each element corresponds to the translation result for one target language.
378
+ * The list of translated texts. Each element corresponds to the translation result for a target language.
389
379
  */
390
380
  texts?: ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTexts[];
391
381
  /**
@@ -445,12 +435,12 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfo extends $dara.M
445
435
  goodsRects?: ImageTranslationProResponseBodyDataGenFilesEditInfoGoodsRects;
446
436
  /**
447
437
  * @remarks
448
- * The list of translation target languages.
438
+ * The list of target languages for translation.
449
439
  */
450
440
  languages?: string[];
451
441
  /**
452
442
  * @remarks
453
- * The URL of the image with all text removed.
443
+ * The URL of the image after all text has been erased.
454
444
  *
455
445
  * @example
456
446
  * http://dashscope-a717.oss-cn-beijing.aliyuncs.com/repaired.png
@@ -463,7 +453,7 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfo extends $dara.M
463
453
  resultImageIds?: string[];
464
454
  /**
465
455
  * @remarks
466
- * The list of text boxes, including all recognized text area information.
456
+ * The list of text boxes, which contains information about all recognized text areas.
467
457
  */
468
458
  textAreas?: ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreas[];
469
459
  static names(): { [key: string]: string } {
@@ -523,7 +513,7 @@ export class ImageTranslationProResponseBodyDataGenFilesResultList extends $dara
523
513
  fileUrl?: string;
524
514
  /**
525
515
  * @remarks
526
- * The translation target language.
516
+ * The target language for translation.
527
517
  *
528
518
  * @example
529
519
  * en
@@ -555,7 +545,7 @@ export class ImageTranslationProResponseBodyDataGenFilesResultList extends $dara
555
545
  export class ImageTranslationProResponseBodyDataGenFiles extends $dara.Model {
556
546
  /**
557
547
  * @remarks
558
- * The editor information, including recognized text areas, product areas, fonts, and other information.
548
+ * The editor information, which contains recognition information such as text areas, product areas, and fonts.
559
549
  */
560
550
  editInfo?: ImageTranslationProResponseBodyDataGenFilesEditInfo;
561
551
  /**
@@ -613,7 +603,7 @@ export class ImageTranslationProResponseBodyDataResultList extends $dara.Model {
613
603
  fileUrl?: string;
614
604
  /**
615
605
  * @remarks
616
- * The target language of the image translation.
606
+ * The target language for image translation.
617
607
  *
618
608
  * @example
619
609
  * en
@@ -645,7 +635,7 @@ export class ImageTranslationProResponseBodyDataResultList extends $dara.Model {
645
635
  export class ImageTranslationProResponseBodyData extends $dara.Model {
646
636
  /**
647
637
  * @remarks
648
- * The editor protocol, including translation result files and editing information.
638
+ * The editor protocol, which contains translation result files and editing information.
649
639
  */
650
640
  genFiles?: ImageTranslationProResponseBodyDataGenFiles[];
651
641
  /**
@@ -655,7 +645,7 @@ export class ImageTranslationProResponseBodyData extends $dara.Model {
655
645
  resultList?: ImageTranslationProResponseBodyDataResultList[];
656
646
  /**
657
647
  * @remarks
658
- * The asynchronous task ID. Not returned for synchronous calls.
648
+ * The asynchronous task ID. This parameter is not returned for synchronous calls.
659
649
  *
660
650
  * @example
661
651
  * abc123-task-id
@@ -663,7 +653,7 @@ export class ImageTranslationProResponseBodyData extends $dara.Model {
663
653
  taskId?: string;
664
654
  /**
665
655
  * @remarks
666
- * The usage information, including the number of processed images.
656
+ * The usage information, which contains the number of processed images.
667
657
  */
668
658
  usageMap?: { [key: string]: number };
669
659
  static names(): { [key: string]: string } {
@@ -705,7 +695,7 @@ export class ImageTranslationProResponseBodyData extends $dara.Model {
705
695
  export class ImageTranslationProResponseBody extends $dara.Model {
706
696
  /**
707
697
  * @remarks
708
- * The response code. 200 indicates a successful call. For other response codes, see the error code information.
698
+ * The response code. 200 indicates a successful call. For other response codes, refer to the error code information.
709
699
  *
710
700
  * @example
711
701
  * 200
@@ -713,12 +703,12 @@ export class ImageTranslationProResponseBody extends $dara.Model {
713
703
  code?: string;
714
704
  /**
715
705
  * @remarks
716
- * The translation result data. ResultList contains the URL of the translation result. GenFiles contains EditInfo with the recognized text information.
706
+ * The translation result data. ResultList contains the URLs of translation results, and GenFiles contains EditInfo with the recognized text information.
717
707
  */
718
708
  data?: ImageTranslationProResponseBodyData;
719
709
  /**
720
710
  * @remarks
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."
711
+ * The error message. "Success" is returned for successful calls. Specific error information is returned for failed calls, such as "The content contains sensitive data. Try other input."
722
712
  *
723
713
  * @example
724
714
  * Success
@@ -734,7 +724,7 @@ export class ImageTranslationProResponseBody extends $dara.Model {
734
724
  requestId?: string;
735
725
  /**
736
726
  * @remarks
737
- * Indicates whether the call was successful. true indicates success. false indicates failure.
727
+ * Indicates whether the call is successful. true indicates success, and false indicates failure.
738
728
  *
739
729
  * @example
740
730
  * true
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class ImageTranslationStandardRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The intervention glossary ID. Optional. You must create the glossary separately in the console and provide its ID. If the provided glossary ID is empty, the translation results will not be modified.
8
+ * The glossary ID. Optional. Create a glossary in the console and provide its ID. If the glossary ID is empty, the translation results are not modified.
9
9
  *
10
10
  * @example
11
11
  * glossary_1
@@ -14,9 +14,6 @@ export class ImageTranslationStandardRequest extends $dara.Model {
14
14
  /**
15
15
  * @remarks
16
16
  * - Image URL: Must be publicly accessible.
17
- * - Format: png, jpeg, jpg, bmp, webp
18
- * - Pixels: Width and height must not exceed 4000
19
- * - File size: Original file ≤ 10 MB
20
17
  *
21
18
  * This parameter is required.
22
19
  *
@@ -26,7 +23,7 @@ export class ImageTranslationStandardRequest extends $dara.Model {
26
23
  imageUrl?: string;
27
24
  /**
28
25
  * @remarks
29
- * Specifies whether to translate text on the image subject. Optional. Default value: false. This helps protect information and avoids translating embedded information such as product names.
26
+ * Specifies whether to translate text on the main subject of the image. Optional. Default value: false. This helps you protect information by avoiding translation of embedded information such as product names.
30
27
  *
31
28
  * @example
32
29
  * false
@@ -34,7 +31,7 @@ export class ImageTranslationStandardRequest extends $dara.Model {
34
31
  includingProductArea?: boolean;
35
32
  /**
36
33
  * @remarks
37
- * The source language code. Required. For supported language directions, see the supported language direction list.
34
+ * The source language code. Required. For supported language pairs, see the supported language pair list.
38
35
  *
39
36
  * This parameter is required.
40
37
  *
@@ -44,7 +41,7 @@ export class ImageTranslationStandardRequest extends $dara.Model {
44
41
  sourceLanguage?: string;
45
42
  /**
46
43
  * @remarks
47
- * The target language code. Required. For supported language directions, see the supported language direction list.
44
+ * The target language code. Required. For supported language pairs, see the supported language pair list.
48
45
  *
49
46
  * This parameter is required.
50
47
  *
@@ -54,7 +51,7 @@ export class ImageTranslationStandardRequest extends $dara.Model {
54
51
  targetLanguage?: string;
55
52
  /**
56
53
  * @remarks
57
- * Specifies whether to translate brand names on the image. Optional. Default value: false. This helps protect brand name information from being translated.
54
+ * Specifies whether to translate brand names on the image. Optional. Default value: false. This helps you protect brand name information from being translated.
58
55
  *
59
56
  * @example
60
57
  * false
@@ -62,7 +59,7 @@ export class ImageTranslationStandardRequest extends $dara.Model {
62
59
  translatingBrandInTheProduct?: boolean;
63
60
  /**
64
61
  * @remarks
65
- * Specifies whether to return layer information such as text position, font, and color. When set to true, layer information is returned for secondary editing through an image editor. Default value: false.
62
+ * Specifies whether to return layer information such as text position, font, and color. When set to true, layer information is returned for integration with image editors for secondary editing. Default value: false.
66
63
  *
67
64
  * @example
68
65
  * false
@@ -213,14 +213,6 @@ export class ImageTranslationStandardResponseBodyDataEditInfoTextAreasTexts exte
213
213
  * 1
214
214
  */
215
215
  lineCount?: number;
216
- /**
217
- * @remarks
218
- * The OVIS error message.
219
- *
220
- * @example
221
- * desc
222
- */
223
- ovisErrMsg?: string;
224
216
  /**
225
217
  * @remarks
226
218
  * The text area.
@@ -239,7 +231,7 @@ export class ImageTranslationStandardResponseBodyDataEditInfoTextAreasTexts exte
239
231
  * The text value.
240
232
  *
241
233
  * @example
242
- * Solid wood wardrobe.
234
+ * Solid Wood Wardrobe.
243
235
  */
244
236
  value?: string;
245
237
  /**
@@ -258,7 +250,6 @@ export class ImageTranslationStandardResponseBodyDataEditInfoTextAreasTexts exte
258
250
  imageRect: 'ImageRect',
259
251
  language: 'Language',
260
252
  lineCount: 'LineCount',
261
- ovisErrMsg: 'OvisErrMsg',
262
253
  textRect: 'TextRect',
263
254
  valid: 'Valid',
264
255
  value: 'Value',
@@ -274,7 +265,6 @@ export class ImageTranslationStandardResponseBodyDataEditInfoTextAreasTexts exte
274
265
  imageRect: ImageTranslationStandardResponseBodyDataEditInfoTextAreasTextsImageRect,
275
266
  language: 'string',
276
267
  lineCount: 'number',
277
- ovisErrMsg: 'string',
278
268
  textRect: ImageTranslationStandardResponseBodyDataEditInfoTextAreasTextsTextRect,
279
269
  valid: 'boolean',
280
270
  value: 'string',
@@ -398,7 +388,7 @@ export class ImageTranslationStandardResponseBodyDataEditInfo extends $dara.Mode
398
388
  font?: string[];
399
389
  /**
400
390
  * @remarks
401
- * The product area rectangle.
391
+ * The product area rectangles.
402
392
  */
403
393
  goodsRects?: ImageTranslationStandardResponseBodyDataEditInfoGoodsRects;
404
394
  /**
@@ -538,7 +528,7 @@ export class ImageTranslationStandardResponseBodyData extends $dara.Model {
538
528
  imageUrl?: string;
539
529
  /**
540
530
  * @remarks
541
- * The usage information, including the number of processed images.
531
+ * The usage information, including the number of images processed.
542
532
  *
543
533
  * @example
544
534
  * {"ProcessedImageCount":1}
@@ -591,7 +581,7 @@ export class ImageTranslationStandardResponseBody extends $dara.Model {
591
581
  data?: ImageTranslationStandardResponseBodyData;
592
582
  /**
593
583
  * @remarks
594
- * The error message. Returns "Success" for successful calls and specific error information for exceptions.
584
+ * The error message. Returns "Success" for successful calls, and returns specific error information for failed calls.
595
585
  *
596
586
  * @example
597
587
  * Success
@@ -599,7 +589,7 @@ export class ImageTranslationStandardResponseBody extends $dara.Model {
599
589
  message?: string;
600
590
  /**
601
591
  * @remarks
602
- * The request ID, used to identify a unique request call.
592
+ * The request ID, which uniquely identifies the request.
603
593
  *
604
594
  * @example
605
595
  * 1CEC4D94-905A-1ED1-A7B4-1BFEFFB3D850
@@ -607,7 +597,7 @@ export class ImageTranslationStandardResponseBody extends $dara.Model {
607
597
  requestId?: string;
608
598
  /**
609
599
  * @remarks
610
- * Indicates whether the call is successful. A value of true indicates success. A value of false indicates failure.
600
+ * Indicates whether the call is successful. A value of true indicates success, and a value of false indicates failure.
611
601
  *
612
602
  * @example
613
603
  * true
@@ -0,0 +1,66 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class MerchandisePlacementDetectionRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * Specifies a custom API version. If you created a "My API" during the trial phase, you can find the corresponding ApiId in the product console under "Intelligent Inspection > API Management > My API".
9
+ *
10
+ * @example
11
+ * api_xxx
12
+ */
13
+ apiId?: string;
14
+ /**
15
+ * @remarks
16
+ * The URL of the shelf or floor-stack image to be recognized (accessible via the public network or OSS).
17
+ *
18
+ * This parameter is required.
19
+ *
20
+ * @example
21
+ * https://example.com/shelf.jpg
22
+ */
23
+ imageUrl?: string;
24
+ /**
25
+ * @remarks
26
+ * The customer-specific SKU vector library ID that determines which library to retrieve from. The library must be created in advance through the library creation process.
27
+ *
28
+ * @example
29
+ * rag_xxx
30
+ */
31
+ ragId?: string;
32
+ /**
33
+ * @remarks
34
+ * The business type (reserved for future routing by business line). The current release supports skincare & lotion.
35
+ *
36
+ * @example
37
+ * Lotion.
38
+ */
39
+ type?: string;
40
+ static names(): { [key: string]: string } {
41
+ return {
42
+ apiId: 'ApiId',
43
+ imageUrl: 'ImageUrl',
44
+ ragId: 'RagId',
45
+ type: 'Type',
46
+ };
47
+ }
48
+
49
+ static types(): { [key: string]: any } {
50
+ return {
51
+ apiId: 'string',
52
+ imageUrl: 'string',
53
+ ragId: 'string',
54
+ type: 'string',
55
+ };
56
+ }
57
+
58
+ validate() {
59
+ super.validate();
60
+ }
61
+
62
+ constructor(map?: { [key: string]: any }) {
63
+ super(map);
64
+ }
65
+ }
66
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { MerchandisePlacementDetectionResponseBody } from "./MerchandisePlacementDetectionResponseBody";
4
+
5
+
6
+ export class MerchandisePlacementDetectionResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: MerchandisePlacementDetectionResponseBody;
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: MerchandisePlacementDetectionResponseBody,
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
+