@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.
- package/dist/client.d.ts +199 -122
- package/dist/client.js +235 -122
- package/dist/client.js.map +1 -1
- package/dist/models/AiTryOnRequest.d.ts +51 -0
- package/dist/models/AiTryOnRequest.js +64 -0
- package/dist/models/AiTryOnRequest.js.map +1 -0
- package/dist/models/AiTryOnResponse.d.ts +19 -0
- package/dist/models/AiTryOnResponse.js +69 -0
- package/dist/models/AiTryOnResponse.js.map +1 -0
- package/dist/models/AiTryOnResponseBody.d.ts +124 -0
- package/dist/models/AiTryOnResponseBody.js +120 -0
- package/dist/models/AiTryOnResponseBody.js.map +1 -0
- package/dist/models/AssetOptimizeLiteResponseBody.d.ts +0 -2
- package/dist/models/AssetOptimizeLiteResponseBody.js +0 -2
- package/dist/models/AssetOptimizeLiteResponseBody.js.map +1 -1
- package/dist/models/DocumentTranslateRequest.d.ts +1 -1
- package/dist/models/DocumentTranslateResponseBody.d.ts +2 -2
- package/dist/models/ImageRecognitionRequest.d.ts +4 -4
- package/dist/models/ImageRecognitionResponseBody.d.ts +2 -2
- package/dist/models/ImageRecognitionShrinkRequest.d.ts +4 -4
- package/dist/models/ImageTranslationProRequest.d.ts +8 -8
- package/dist/models/MerchandisePlacementDetectionRequest.d.ts +1 -0
- package/dist/models/MerchandisePlacementDetectionRequest.js +2 -0
- package/dist/models/MerchandisePlacementDetectionRequest.js.map +1 -1
- package/dist/models/PrepaidTextTranslateRequest.d.ts +1 -1
- package/dist/models/PrepaidTextTranslateResponseBody.d.ts +2 -2
- package/dist/models/PrepaidTextTranslateShrinkRequest.d.ts +1 -1
- package/dist/models/SizeChartExtractRequest.d.ts +2 -2
- package/dist/models/SizeChartExtractResponseBody.d.ts +1 -1
- package/dist/models/SizeChartExtractShrinkRequest.d.ts +2 -2
- package/dist/models/TextCorrectResponseBody.d.ts +1 -1
- package/dist/models/TextTranslateRequest.d.ts +11 -5
- package/dist/models/TextTranslateRequest.js.map +1 -1
- package/dist/models/TextTranslateResponseBody.d.ts +1 -1
- package/dist/models/TextTranslateShrinkRequest.d.ts +11 -5
- package/dist/models/TextTranslateShrinkRequest.js.map +1 -1
- package/dist/models/VideoTranslationRequest.d.ts +1 -1
- package/dist/models/VideoTranslationResponseBody.d.ts +1 -1
- package/dist/models/VideoTranslationShrinkRequest.d.ts +1 -1
- package/dist/models/VirtualTryOnResponseBody.d.ts +3 -3
- package/dist/models/model.d.ts +5 -0
- package/dist/models/model.js +14 -4
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +242 -122
- package/src/models/AiTryOnRequest.ts +70 -0
- package/src/models/AiTryOnResponse.ts +40 -0
- package/src/models/AiTryOnResponseBody.ts +179 -0
- package/src/models/AssetOptimizeLiteResponseBody.ts +0 -2
- package/src/models/DocumentTranslateRequest.ts +1 -1
- package/src/models/DocumentTranslateResponseBody.ts +2 -2
- package/src/models/ImageRecognitionRequest.ts +4 -4
- package/src/models/ImageRecognitionResponseBody.ts +2 -2
- package/src/models/ImageRecognitionShrinkRequest.ts +4 -4
- package/src/models/ImageTranslationProRequest.ts +8 -8
- package/src/models/MerchandisePlacementDetectionRequest.ts +3 -0
- package/src/models/PrepaidTextTranslateRequest.ts +1 -1
- package/src/models/PrepaidTextTranslateResponseBody.ts +2 -2
- package/src/models/PrepaidTextTranslateShrinkRequest.ts +1 -1
- package/src/models/SizeChartExtractRequest.ts +2 -2
- package/src/models/SizeChartExtractResponseBody.ts +1 -1
- package/src/models/SizeChartExtractShrinkRequest.ts +2 -2
- package/src/models/TextCorrectResponseBody.ts +1 -1
- package/src/models/TextTranslateRequest.ts +11 -5
- package/src/models/TextTranslateResponseBody.ts +1 -1
- package/src/models/TextTranslateShrinkRequest.ts +11 -5
- package/src/models/VideoTranslationRequest.ts +1 -1
- package/src/models/VideoTranslationResponseBody.ts +1 -1
- package/src/models/VideoTranslationShrinkRequest.ts +1 -1
- package/src/models/VirtualTryOnResponseBody.ts +3 -3
- 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,
|
|
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
|
|
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.
|
|
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.
|
|
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
|
|
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:
|
|
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
|
|
15
|
+
* The source language. This parameter is optional. Default value: auto, which indicates automatic detection.
|
|
16
16
|
*
|
|
17
17
|
* @example
|
|
18
18
|
* zh
|
|
@@ -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
|
|
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
|
|
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
|
|
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.
|
|
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
|
package/src/models/model.ts
CHANGED
|
@@ -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';
|