@alicloud/aidge20260428 5.6.0 → 5.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/dist/client.d.ts +199 -122
  2. package/dist/client.js +235 -122
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/AiTryOnRequest.d.ts +51 -0
  5. package/dist/models/AiTryOnRequest.js +64 -0
  6. package/dist/models/AiTryOnRequest.js.map +1 -0
  7. package/dist/models/AiTryOnResponse.d.ts +19 -0
  8. package/dist/models/AiTryOnResponse.js +69 -0
  9. package/dist/models/AiTryOnResponse.js.map +1 -0
  10. package/dist/models/AiTryOnResponseBody.d.ts +124 -0
  11. package/dist/models/AiTryOnResponseBody.js +120 -0
  12. package/dist/models/AiTryOnResponseBody.js.map +1 -0
  13. package/dist/models/AssetOptimizeLiteResponseBody.d.ts +0 -2
  14. package/dist/models/AssetOptimizeLiteResponseBody.js +0 -2
  15. package/dist/models/AssetOptimizeLiteResponseBody.js.map +1 -1
  16. package/dist/models/DocumentTranslateRequest.d.ts +1 -1
  17. package/dist/models/DocumentTranslateResponseBody.d.ts +2 -2
  18. package/dist/models/ImageRecognitionRequest.d.ts +4 -4
  19. package/dist/models/ImageRecognitionResponseBody.d.ts +2 -2
  20. package/dist/models/ImageRecognitionShrinkRequest.d.ts +4 -4
  21. package/dist/models/ImageTranslationProRequest.d.ts +8 -8
  22. package/dist/models/MerchandisePlacementDetectionRequest.d.ts +1 -0
  23. package/dist/models/MerchandisePlacementDetectionRequest.js +2 -0
  24. package/dist/models/MerchandisePlacementDetectionRequest.js.map +1 -1
  25. package/dist/models/PrepaidTextTranslateRequest.d.ts +1 -1
  26. package/dist/models/PrepaidTextTranslateResponseBody.d.ts +2 -2
  27. package/dist/models/PrepaidTextTranslateShrinkRequest.d.ts +1 -1
  28. package/dist/models/SizeChartExtractRequest.d.ts +2 -2
  29. package/dist/models/SizeChartExtractResponseBody.d.ts +1 -1
  30. package/dist/models/SizeChartExtractShrinkRequest.d.ts +2 -2
  31. package/dist/models/TextCorrectResponseBody.d.ts +1 -1
  32. package/dist/models/TextTranslateRequest.d.ts +11 -5
  33. package/dist/models/TextTranslateRequest.js.map +1 -1
  34. package/dist/models/TextTranslateResponseBody.d.ts +1 -1
  35. package/dist/models/TextTranslateShrinkRequest.d.ts +11 -5
  36. package/dist/models/TextTranslateShrinkRequest.js.map +1 -1
  37. package/dist/models/VideoTranslationRequest.d.ts +1 -1
  38. package/dist/models/VideoTranslationResponseBody.d.ts +1 -1
  39. package/dist/models/VideoTranslationShrinkRequest.d.ts +1 -1
  40. package/dist/models/VirtualTryOnResponseBody.d.ts +3 -3
  41. package/dist/models/model.d.ts +5 -0
  42. package/dist/models/model.js +14 -4
  43. package/dist/models/model.js.map +1 -1
  44. package/package.json +1 -1
  45. package/src/client.ts +242 -122
  46. package/src/models/AiTryOnRequest.ts +70 -0
  47. package/src/models/AiTryOnResponse.ts +40 -0
  48. package/src/models/AiTryOnResponseBody.ts +179 -0
  49. package/src/models/AssetOptimizeLiteResponseBody.ts +0 -2
  50. package/src/models/DocumentTranslateRequest.ts +1 -1
  51. package/src/models/DocumentTranslateResponseBody.ts +2 -2
  52. package/src/models/ImageRecognitionRequest.ts +4 -4
  53. package/src/models/ImageRecognitionResponseBody.ts +2 -2
  54. package/src/models/ImageRecognitionShrinkRequest.ts +4 -4
  55. package/src/models/ImageTranslationProRequest.ts +8 -8
  56. package/src/models/MerchandisePlacementDetectionRequest.ts +3 -0
  57. package/src/models/PrepaidTextTranslateRequest.ts +1 -1
  58. package/src/models/PrepaidTextTranslateResponseBody.ts +2 -2
  59. package/src/models/PrepaidTextTranslateShrinkRequest.ts +1 -1
  60. package/src/models/SizeChartExtractRequest.ts +2 -2
  61. package/src/models/SizeChartExtractResponseBody.ts +1 -1
  62. package/src/models/SizeChartExtractShrinkRequest.ts +2 -2
  63. package/src/models/TextCorrectResponseBody.ts +1 -1
  64. package/src/models/TextTranslateRequest.ts +11 -5
  65. package/src/models/TextTranslateResponseBody.ts +1 -1
  66. package/src/models/TextTranslateShrinkRequest.ts +11 -5
  67. package/src/models/VideoTranslationRequest.ts +1 -1
  68. package/src/models/VideoTranslationResponseBody.ts +1 -1
  69. package/src/models/VideoTranslationShrinkRequest.ts +1 -1
  70. package/src/models/VirtualTryOnResponseBody.ts +3 -3
  71. package/src/models/model.ts +5 -0
@@ -119,7 +119,7 @@ export class TextTranslateResponseBody extends $dara.Model {
119
119
  message?: string;
120
120
  /**
121
121
  * @remarks
122
- * The request ID, which uniquely identifies a single API call.
122
+ * The request ID, used to uniquely identify a request.
123
123
  *
124
124
  * @example
125
125
  * 922E43BB-EE0E-1A29-B143-BB91BB3EA6AB
@@ -13,7 +13,7 @@ export class TextTranslateShrinkRequest extends $dara.Model {
13
13
  bizName?: string;
14
14
  /**
15
15
  * @remarks
16
- * The format type of the source text. This parameter is optional. Valid values: text (plain text format) and html (web page format, which preserves HTML tags).
16
+ * The format type of the source text. This parameter is optional. Valid values: text (plain text format) and html (web page format that preserves HTML tags).
17
17
  *
18
18
  * @example
19
19
  * text
@@ -21,7 +21,7 @@ export class TextTranslateShrinkRequest extends $dara.Model {
21
21
  formatType?: string;
22
22
  /**
23
23
  * @remarks
24
- * The intervention glossary ID. This parameter is optional. The glossary must be created separately in the console, and its ID must be provided. If the glossary ID is empty, the translation results are not modified.
24
+ * The intervention glossary ID. This parameter is optional. You must create the glossary separately in the console and provide its ID. If the glossary ID is empty, the translation results are not modified.
25
25
  *
26
26
  * @example
27
27
  * glossary_1
@@ -29,7 +29,7 @@ export class TextTranslateShrinkRequest extends $dara.Model {
29
29
  glossary?: string;
30
30
  /**
31
31
  * @remarks
32
- * The source language code. This parameter is optional. If not specified, the language is automatically detected. You can set this parameter to auto for language detection. For supported language directions, see [Language direction mapping table](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
32
+ * The source language code. If not specified, the language is automatically detected. This parameter is optional. You can set it to auto for language detection. For supported language directions, see [Language direction mapping table](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
33
33
  *
34
34
  * @example
35
35
  * auto
@@ -37,7 +37,7 @@ export class TextTranslateShrinkRequest extends $dara.Model {
37
37
  sourceLanguage?: string;
38
38
  /**
39
39
  * @remarks
40
- * The list of texts to translate. This parameter is required. The total character length cannot exceed 50,000, and the list length cannot exceed 50.
40
+ * The list of texts to be translated. This parameter is required. The total character length cannot exceed 50,000, and the list length cannot exceed 50.
41
41
  *
42
42
  * This parameter is required.
43
43
  *
@@ -57,7 +57,13 @@ export class TextTranslateShrinkRequest extends $dara.Model {
57
57
  targetLanguage?: string;
58
58
  /**
59
59
  * @remarks
60
- * The business scenario identifier. You can pass in only one of the following values. When specified, the translation engine invokes the corresponding industry terminology library and style strategy to produce translations that better fit the industry. If this field is not specified or an invalid value is passed, the general translation strategy is used. Valid values: e-commerce-title (cross-border e-commerce product title translation), e-commerce-description (cross-border e-commerce product description translation), e-commerce-chat (cross-border e-commerce conversation translation), e-commerce-cpv (cross-border e-commerce product CPV attribute translation), novel (novel translation), game (game translation).
60
+ * The business scenario identifier. You can pass in only one of the following values. When specified, the translation engine invokes the corresponding industry terminology library and style strategy to produce translations that better fit the industry. If this field is not specified or an invalid value is passed, the general translation strategy is used. Valid values:
61
+ * - e-commerce-title: cross-border e-commerce product title translation.
62
+ * - e-commerce-description: cross-border e-commerce product description translation.
63
+ * - e-commerce-chat: cross-border e-commerce conversation translation.
64
+ * - e-commerce-cpv: cross-border e-commerce product CPV attribute translation.
65
+ * - novel: novel translation.
66
+ * - game: game translation.
61
67
  *
62
68
  * @example
63
69
  * e-commerce-title
@@ -12,7 +12,7 @@ export class VideoTranslationRequest extends $dara.Model {
12
12
  capabilities?: string[];
13
13
  /**
14
14
  * @remarks
15
- * The source language. This parameter is optional. Default value: auto (automatic detection).
15
+ * The source language. This parameter is optional. Default value: auto, which indicates automatic detection.
16
16
  *
17
17
  * @example
18
18
  * zh
@@ -43,7 +43,7 @@ export class VideoTranslationResponseBody extends $dara.Model {
43
43
  code?: string;
44
44
  /**
45
45
  * @remarks
46
- * The asynchronous task submit result.
46
+ * The submit status of the asynchronous task.
47
47
  */
48
48
  data?: VideoTranslationResponseBodyData;
49
49
  /**
@@ -12,7 +12,7 @@ export class VideoTranslationShrinkRequest extends $dara.Model {
12
12
  capabilitiesShrink?: string;
13
13
  /**
14
14
  * @remarks
15
- * The source language. This parameter is optional. Default value: auto (automatic detection).
15
+ * The source language. This parameter is optional. Default value: auto, which indicates automatic detection.
16
16
  *
17
17
  * @example
18
18
  * zh
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class VirtualTryOnResponseBodyData extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The asynchronous task ID. Used to query the task result later.
8
+ * The asynchronous task ID, which is used to query the task result later.
9
9
  *
10
10
  * @example
11
11
  * task-xxxx-xxxx-xxxx
@@ -66,7 +66,7 @@ export class VirtualTryOnResponseBody extends $dara.Model {
66
66
  message?: string;
67
67
  /**
68
68
  * @remarks
69
- * The request ID. Used to uniquely identify a single API call.
69
+ * The request ID, which uniquely identifies the request.
70
70
  *
71
71
  * @example
72
72
  * E1AD60F1-BAC7-546B-9533-E7AD02B16E3F
@@ -74,7 +74,7 @@ export class VirtualTryOnResponseBody extends $dara.Model {
74
74
  requestId?: string;
75
75
  /**
76
76
  * @remarks
77
- * Indicates whether the call is successful. A value of true indicates success. A value of false indicates failure.
77
+ * Indicates whether the call is successful. Valid values: true: The call is successful. false: The call failed.
78
78
  *
79
79
  * @example
80
80
  * True
@@ -1,3 +1,5 @@
1
+ export { AiTryOnResponseBodyDataUsageMap } from './AiTryOnResponseBody';
2
+ export { AiTryOnResponseBodyData } from './AiTryOnResponseBody';
1
3
  export { AssetOptimizeLiteResponseBodyData } from './AssetOptimizeLiteResponseBody';
2
4
  export { AssetOptimizeProResponseBodyData } from './AssetOptimizeProResponseBody';
3
5
  export { CategoryAttributeMatchResponseBodyDataAttributes } from './CategoryAttributeMatchResponseBody';
@@ -66,6 +68,9 @@ export { VideoGenerationResponseBodyData } from './VideoGenerationResponseBody';
66
68
  export { VideoTranslationResponseBodyData } from './VideoTranslationResponseBody';
67
69
  export { VirtualTryOnResponseBodyData } from './VirtualTryOnResponseBody';
68
70
  export { VisionFlowResponseBodyData } from './VisionFlowResponseBody';
71
+ export { AiTryOnRequest } from './AiTryOnRequest';
72
+ export { AiTryOnResponseBody } from './AiTryOnResponseBody';
73
+ export { AiTryOnResponse } from './AiTryOnResponse';
69
74
  export { AssetOptimizeLiteRequest } from './AssetOptimizeLiteRequest';
70
75
  export { AssetOptimizeLiteResponseBody } from './AssetOptimizeLiteResponseBody';
71
76
  export { AssetOptimizeLiteResponse } from './AssetOptimizeLiteResponse';