@alicloud/aidge20260428 5.4.0 → 5.6.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.
- package/dist/client.d.ts +548 -456
- package/dist/client.js +623 -456
- package/dist/client.js.map +1 -1
- package/dist/models/AssetOptimizeLiteRequest.d.ts +2 -2
- package/dist/models/AssetOptimizeLiteResponseBody.d.ts +1 -1
- package/dist/models/AssetOptimizeProRequest.d.ts +5 -5
- package/dist/models/AssetOptimizeProResponseBody.d.ts +4 -4
- package/dist/models/AssetOptimizeProShrinkRequest.d.ts +5 -5
- package/dist/models/CategoryAttributeMatchRequest.d.ts +5 -5
- package/dist/models/CategoryAttributeMatchResponseBody.d.ts +5 -5
- package/dist/models/CategoryAttributeMatchShrinkRequest.d.ts +5 -5
- package/dist/models/CategoryMatchRequest.d.ts +7 -7
- package/dist/models/CategoryMatchResponseBody.d.ts +8 -8
- package/dist/models/DiduiAreaDeductionRequest.d.ts +2 -2
- package/dist/models/DiduiAreaDeductionResponseBody.d.ts +4 -4
- package/dist/models/DiduiAreaDeductionShrinkRequest.d.ts +1 -1
- package/dist/models/DocumentTranslateRequest.d.ts +2 -2
- package/dist/models/DocumentTranslateResponseBody.d.ts +3 -3
- package/dist/models/EcomVideoRecreationRequest.d.ts +12 -12
- package/dist/models/EcomVideoRecreationResponseBody.d.ts +2 -2
- package/dist/models/EcomVideoRecreationShrinkRequest.d.ts +1 -1
- package/dist/models/ImageMattingRequest.d.ts +1 -1
- package/dist/models/ImageMattingResponseBody.d.ts +2 -3
- package/dist/models/ImageMattingResponseBody.js.map +1 -1
- package/dist/models/ImageRecognitionRequest.d.ts +4 -4
- package/dist/models/ImageRecognitionResponseBody.d.ts +5 -5
- package/dist/models/ImageRecognitionShrinkRequest.d.ts +4 -4
- package/dist/models/ImageRemovalProRequest.d.ts +2 -2
- package/dist/models/ImageRemovalProResponseBody.d.ts +3 -3
- package/dist/models/ImageRemoveRequest.d.ts +9 -9
- package/dist/models/ImageRemoveResponseBody.d.ts +2 -2
- package/dist/models/ImageRemoveShrinkRequest.d.ts +9 -9
- package/dist/models/ImageTranslationPlusResponseBody.d.ts +3 -3
- package/dist/models/ImageTranslationProRequest.d.ts +10 -10
- package/dist/models/ImageTranslationProResponseBody.d.ts +11 -11
- package/dist/models/ImageTranslationStandardRequest.d.ts +4 -4
- package/dist/models/ImageTranslationStandardResponseBody.d.ts +7 -7
- package/dist/models/LanguageDetectRequest.d.ts +2 -2
- package/dist/models/LanguageDetectResponseBody.d.ts +3 -3
- package/dist/models/MaterialInspectionRequest.d.ts +5 -5
- package/dist/models/MaterialInspectionResponseBody.d.ts +6 -11
- package/dist/models/MaterialInspectionResponseBody.js.map +1 -1
- package/dist/models/MerchandisePlacementDetectionRequest.d.ts +5 -5
- package/dist/models/MerchandisePlacementDetectionResponseBody.d.ts +9 -9
- package/dist/models/PackageWeightSizeCheckRequest.d.ts +1 -1
- package/dist/models/PackageWeightSizeCheckResponseBody.d.ts +4 -4
- package/dist/models/PrepaidTextTranslateRequest.d.ts +3 -3
- package/dist/models/PrepaidTextTranslateResponseBody.d.ts +6 -6
- package/dist/models/PrepaidTextTranslateShrinkRequest.d.ts +3 -3
- package/dist/models/ProductHotspotDetectionResponseBody.d.ts +2 -2
- package/dist/models/SizeChartDetectResponseBody.d.ts +3 -4
- package/dist/models/SizeChartDetectResponseBody.js.map +1 -1
- package/dist/models/SubmitProductMatchRequest.d.ts +77 -0
- package/dist/models/SubmitProductMatchRequest.js +70 -0
- package/dist/models/SubmitProductMatchRequest.js.map +1 -0
- package/dist/models/SubmitProductMatchResponse.d.ts +19 -0
- package/dist/models/SubmitProductMatchResponse.js +69 -0
- package/dist/models/SubmitProductMatchResponse.js.map +1 -0
- package/dist/models/SubmitProductMatchResponseBody.d.ts +80 -0
- package/dist/models/SubmitProductMatchResponseBody.js +90 -0
- package/dist/models/SubmitProductMatchResponseBody.js.map +1 -0
- package/dist/models/TextTranslateRequest.d.ts +6 -15
- package/dist/models/TextTranslateRequest.js.map +1 -1
- package/dist/models/TextTranslateResponseBody.d.ts +5 -5
- package/dist/models/TextTranslateShrinkRequest.d.ts +6 -15
- package/dist/models/TextTranslateShrinkRequest.js.map +1 -1
- package/dist/models/VideoTranslationRequest.d.ts +1 -1
- package/dist/models/VideoTranslationShrinkRequest.d.ts +1 -1
- package/dist/models/VirtualTryOnRequest.d.ts +51 -0
- package/dist/models/VirtualTryOnRequest.js +64 -0
- package/dist/models/VirtualTryOnRequest.js.map +1 -0
- package/dist/models/VirtualTryOnResponse.d.ts +19 -0
- package/dist/models/VirtualTryOnResponse.js +69 -0
- package/dist/models/VirtualTryOnResponse.js.map +1 -0
- package/dist/models/VirtualTryOnResponseBody.d.ts +77 -0
- package/dist/models/VirtualTryOnResponseBody.js +93 -0
- package/dist/models/VirtualTryOnResponseBody.js.map +1 -0
- package/dist/models/VisionFlowRequest.d.ts +15 -15
- package/dist/models/VisionFlowResponseBody.d.ts +1 -1
- package/dist/models/VisionFlowShrinkRequest.d.ts +15 -15
- package/dist/models/model.d.ts +8 -0
- package/dist/models/model.js +19 -3
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +638 -456
- package/src/models/AssetOptimizeLiteRequest.ts +2 -2
- package/src/models/AssetOptimizeLiteResponseBody.ts +1 -1
- package/src/models/AssetOptimizeProRequest.ts +5 -5
- package/src/models/AssetOptimizeProResponseBody.ts +4 -4
- package/src/models/AssetOptimizeProShrinkRequest.ts +5 -5
- package/src/models/CategoryAttributeMatchRequest.ts +5 -5
- package/src/models/CategoryAttributeMatchResponseBody.ts +5 -5
- package/src/models/CategoryAttributeMatchShrinkRequest.ts +5 -5
- package/src/models/CategoryMatchRequest.ts +7 -7
- package/src/models/CategoryMatchResponseBody.ts +8 -8
- package/src/models/DiduiAreaDeductionRequest.ts +2 -2
- package/src/models/DiduiAreaDeductionResponseBody.ts +4 -4
- package/src/models/DiduiAreaDeductionShrinkRequest.ts +1 -1
- package/src/models/DocumentTranslateRequest.ts +2 -2
- package/src/models/DocumentTranslateResponseBody.ts +3 -3
- package/src/models/EcomVideoRecreationRequest.ts +12 -12
- package/src/models/EcomVideoRecreationResponseBody.ts +2 -2
- package/src/models/EcomVideoRecreationShrinkRequest.ts +1 -1
- package/src/models/ImageMattingRequest.ts +1 -1
- package/src/models/ImageMattingResponseBody.ts +2 -3
- package/src/models/ImageRecognitionRequest.ts +4 -4
- package/src/models/ImageRecognitionResponseBody.ts +5 -5
- package/src/models/ImageRecognitionShrinkRequest.ts +4 -4
- package/src/models/ImageRemovalProRequest.ts +2 -2
- package/src/models/ImageRemovalProResponseBody.ts +3 -3
- package/src/models/ImageRemoveRequest.ts +9 -9
- package/src/models/ImageRemoveResponseBody.ts +2 -2
- package/src/models/ImageRemoveShrinkRequest.ts +9 -9
- package/src/models/ImageTranslationPlusResponseBody.ts +3 -3
- package/src/models/ImageTranslationProRequest.ts +10 -10
- package/src/models/ImageTranslationProResponseBody.ts +11 -11
- package/src/models/ImageTranslationStandardRequest.ts +4 -4
- package/src/models/ImageTranslationStandardResponseBody.ts +7 -7
- package/src/models/LanguageDetectRequest.ts +2 -2
- package/src/models/LanguageDetectResponseBody.ts +3 -3
- package/src/models/MaterialInspectionRequest.ts +5 -5
- package/src/models/MaterialInspectionResponseBody.ts +6 -11
- package/src/models/MerchandisePlacementDetectionRequest.ts +5 -5
- package/src/models/MerchandisePlacementDetectionResponseBody.ts +9 -9
- package/src/models/PackageWeightSizeCheckRequest.ts +1 -1
- package/src/models/PackageWeightSizeCheckResponseBody.ts +4 -4
- package/src/models/PrepaidTextTranslateRequest.ts +3 -3
- package/src/models/PrepaidTextTranslateResponseBody.ts +6 -6
- package/src/models/PrepaidTextTranslateShrinkRequest.ts +3 -3
- package/src/models/ProductHotspotDetectionResponseBody.ts +2 -2
- package/src/models/SizeChartDetectResponseBody.ts +3 -4
- package/src/models/SubmitProductMatchRequest.ts +102 -0
- package/src/models/SubmitProductMatchResponse.ts +40 -0
- package/src/models/SubmitProductMatchResponseBody.ts +116 -0
- package/src/models/TextTranslateRequest.ts +6 -15
- package/src/models/TextTranslateResponseBody.ts +5 -5
- package/src/models/TextTranslateShrinkRequest.ts +6 -15
- package/src/models/VideoTranslationRequest.ts +1 -1
- package/src/models/VideoTranslationShrinkRequest.ts +1 -1
- package/src/models/VirtualTryOnRequest.ts +70 -0
- package/src/models/VirtualTryOnResponse.ts +40 -0
- package/src/models/VirtualTryOnResponseBody.ts +114 -0
- package/src/models/VisionFlowRequest.ts +15 -15
- package/src/models/VisionFlowResponseBody.ts +1 -1
- package/src/models/VisionFlowShrinkRequest.ts +15 -15
- package/src/models/model.ts +8 -0
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class SubmitProductMatchResponseBodyData extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The task acceptance time in ISO 8601 UTC format.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* 2026-08-20T09:30:00Z
|
|
12
|
+
*/
|
|
13
|
+
submittedAt?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The asynchronous task ID used for QueryAsyncTaskResult queries.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* b7ea15cb609f47b7999d2d68dfbf3c90
|
|
20
|
+
*/
|
|
21
|
+
taskId?: string;
|
|
22
|
+
static names(): { [key: string]: string } {
|
|
23
|
+
return {
|
|
24
|
+
submittedAt: 'SubmittedAt',
|
|
25
|
+
taskId: 'TaskId',
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
static types(): { [key: string]: any } {
|
|
30
|
+
return {
|
|
31
|
+
submittedAt: 'string',
|
|
32
|
+
taskId: 'string',
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
validate() {
|
|
37
|
+
super.validate();
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
constructor(map?: { [key: string]: any }) {
|
|
41
|
+
super(map);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export class SubmitProductMatchResponseBody extends $dara.Model {
|
|
46
|
+
/**
|
|
47
|
+
* @remarks
|
|
48
|
+
* The error code. This parameter is not returned if the call is successful.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* 200
|
|
52
|
+
*/
|
|
53
|
+
code?: string;
|
|
54
|
+
/**
|
|
55
|
+
* @remarks
|
|
56
|
+
* The submit result of the matching product identification asynchronous task.
|
|
57
|
+
*/
|
|
58
|
+
data?: SubmitProductMatchResponseBodyData;
|
|
59
|
+
/**
|
|
60
|
+
* @remarks
|
|
61
|
+
* The error message. This parameter is not returned if the call is successful.
|
|
62
|
+
*
|
|
63
|
+
* @example
|
|
64
|
+
* OK
|
|
65
|
+
*/
|
|
66
|
+
message?: string;
|
|
67
|
+
/**
|
|
68
|
+
* @remarks
|
|
69
|
+
* Id of the request
|
|
70
|
+
*
|
|
71
|
+
* @example
|
|
72
|
+
* E1AD60F1-BAC7-546B-9533-E7AD02B16E3F
|
|
73
|
+
*/
|
|
74
|
+
requestId?: string;
|
|
75
|
+
/**
|
|
76
|
+
* @remarks
|
|
77
|
+
* Indicates whether the call is successful. Valid values:
|
|
78
|
+
* - true: The call is successful.
|
|
79
|
+
* - false: The call failed.
|
|
80
|
+
*
|
|
81
|
+
* @example
|
|
82
|
+
* True
|
|
83
|
+
*/
|
|
84
|
+
success?: boolean;
|
|
85
|
+
static names(): { [key: string]: string } {
|
|
86
|
+
return {
|
|
87
|
+
code: 'Code',
|
|
88
|
+
data: 'Data',
|
|
89
|
+
message: 'Message',
|
|
90
|
+
requestId: 'RequestId',
|
|
91
|
+
success: 'Success',
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
static types(): { [key: string]: any } {
|
|
96
|
+
return {
|
|
97
|
+
code: 'string',
|
|
98
|
+
data: SubmitProductMatchResponseBodyData,
|
|
99
|
+
message: 'string',
|
|
100
|
+
requestId: 'string',
|
|
101
|
+
success: 'boolean',
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
validate() {
|
|
106
|
+
if(this.data && typeof (this.data as any).validate === 'function') {
|
|
107
|
+
(this.data as any).validate();
|
|
108
|
+
}
|
|
109
|
+
super.validate();
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
constructor(map?: { [key: string]: any }) {
|
|
113
|
+
super(map);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
@@ -5,9 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class TextTranslateRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* This field represents your identity and facilitates communication for various issues.
|
|
9
|
-
* ● If you are an internal Alibaba organization, pass a value based on your actual scenario, such as BU name-product or BU name-chat.
|
|
10
|
-
* ● If you are an external Alibaba partner, pass the full name of your company. This company name must be consistent with the company name used when you registered your Alibaba Cloud account.
|
|
8
|
+
* This field represents your identity and facilitates communication for various issues. If you are an Alibaba internal organization, specify a value based on your actual scenario, such as BU name-product or BU name-chat. If you are an external Alibaba partner, specify the full name of your company. This company name must be consistent with the company name used when you registered your Alibaba Cloud account.
|
|
11
9
|
*
|
|
12
10
|
* @example
|
|
13
11
|
* MyCompany-Chat
|
|
@@ -15,7 +13,7 @@ export class TextTranslateRequest extends $dara.Model {
|
|
|
15
13
|
bizName?: string;
|
|
16
14
|
/**
|
|
17
15
|
* @remarks
|
|
18
|
-
* 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, which preserves HTML tags).
|
|
19
17
|
*
|
|
20
18
|
* @example
|
|
21
19
|
* text
|
|
@@ -31,7 +29,7 @@ export class TextTranslateRequest extends $dara.Model {
|
|
|
31
29
|
glossary?: string;
|
|
32
30
|
/**
|
|
33
31
|
* @remarks
|
|
34
|
-
* The source language code. If not specified, the language is automatically detected.
|
|
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).
|
|
35
33
|
*
|
|
36
34
|
* @example
|
|
37
35
|
* auto
|
|
@@ -39,7 +37,7 @@ export class TextTranslateRequest extends $dara.Model {
|
|
|
39
37
|
sourceLanguage?: string;
|
|
40
38
|
/**
|
|
41
39
|
* @remarks
|
|
42
|
-
* The list of texts to
|
|
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.
|
|
43
41
|
*
|
|
44
42
|
* This parameter is required.
|
|
45
43
|
*
|
|
@@ -49,7 +47,7 @@ export class TextTranslateRequest extends $dara.Model {
|
|
|
49
47
|
sourceTextList?: string[];
|
|
50
48
|
/**
|
|
51
49
|
* @remarks
|
|
52
|
-
* The target language code. This parameter is required. For supported language
|
|
50
|
+
* The target language code. This parameter is required. For supported language directions, see [Language direction mapping table](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
|
|
53
51
|
*
|
|
54
52
|
* This parameter is required.
|
|
55
53
|
*
|
|
@@ -59,14 +57,7 @@ export class TextTranslateRequest extends $dara.Model {
|
|
|
59
57
|
targetLanguage?: string;
|
|
60
58
|
/**
|
|
61
59
|
* @remarks
|
|
62
|
-
* The business scenario identifier. You can pass 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.
|
|
63
|
-
* Valid values:
|
|
64
|
-
* ● e-commerce-title: cross-border e-commerce product title translation
|
|
65
|
-
* ● e-commerce-description: cross-border e-commerce product description translation
|
|
66
|
-
* ● e-commerce-chat: cross-border e-commerce conversation translation
|
|
67
|
-
* ● e-commerce-cpv: cross-border e-commerce product CPV attribute translation
|
|
68
|
-
* ● novel: novel translation
|
|
69
|
-
* ● 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: 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).
|
|
70
61
|
*
|
|
71
62
|
* @example
|
|
72
63
|
* e-commerce-title
|
|
@@ -60,7 +60,7 @@ export class TextTranslateResponseBodyData extends $dara.Model {
|
|
|
60
60
|
translations?: TextTranslateResponseBodyDataTranslations[];
|
|
61
61
|
/**
|
|
62
62
|
* @remarks
|
|
63
|
-
* The usage information, including the input
|
|
63
|
+
* The usage information, including the number of input characters.
|
|
64
64
|
*
|
|
65
65
|
* @example
|
|
66
66
|
* {"InputCharacterCount":5}
|
|
@@ -98,7 +98,7 @@ export class TextTranslateResponseBodyData extends $dara.Model {
|
|
|
98
98
|
export class TextTranslateResponseBody extends $dara.Model {
|
|
99
99
|
/**
|
|
100
100
|
* @remarks
|
|
101
|
-
* The response code.
|
|
101
|
+
* The response code. The value "success" is returned for successful calls.
|
|
102
102
|
*
|
|
103
103
|
* @example
|
|
104
104
|
* success
|
|
@@ -111,7 +111,7 @@ export class TextTranslateResponseBody extends $dara.Model {
|
|
|
111
111
|
data?: TextTranslateResponseBodyData;
|
|
112
112
|
/**
|
|
113
113
|
* @remarks
|
|
114
|
-
* The error message.
|
|
114
|
+
* The error message. The value "Success" is returned for successful calls. For failed calls, a specific error message is returned, such as "The parameters contain sensitive information. Try other input."
|
|
115
115
|
*
|
|
116
116
|
* @example
|
|
117
117
|
* Success
|
|
@@ -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, which uniquely identifies a single API call.
|
|
123
123
|
*
|
|
124
124
|
* @example
|
|
125
125
|
* 922E43BB-EE0E-1A29-B143-BB91BB3EA6AB
|
|
@@ -127,7 +127,7 @@ export class TextTranslateResponseBody extends $dara.Model {
|
|
|
127
127
|
requestId?: string;
|
|
128
128
|
/**
|
|
129
129
|
* @remarks
|
|
130
|
-
* Indicates whether the call is successful. true indicates success. false indicates failure.
|
|
130
|
+
* Indicates whether the call is successful. A value of true indicates success. A value of false indicates failure.
|
|
131
131
|
*
|
|
132
132
|
* @example
|
|
133
133
|
* true
|
|
@@ -5,9 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class TextTranslateShrinkRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* This field represents your identity and facilitates communication for various issues.
|
|
9
|
-
* ● If you are an internal Alibaba organization, pass a value based on your actual scenario, such as BU name-product or BU name-chat.
|
|
10
|
-
* ● If you are an external Alibaba partner, pass the full name of your company. This company name must be consistent with the company name used when you registered your Alibaba Cloud account.
|
|
8
|
+
* This field represents your identity and facilitates communication for various issues. If you are an Alibaba internal organization, specify a value based on your actual scenario, such as BU name-product or BU name-chat. If you are an external Alibaba partner, specify the full name of your company. This company name must be consistent with the company name used when you registered your Alibaba Cloud account.
|
|
11
9
|
*
|
|
12
10
|
* @example
|
|
13
11
|
* MyCompany-Chat
|
|
@@ -15,7 +13,7 @@ export class TextTranslateShrinkRequest extends $dara.Model {
|
|
|
15
13
|
bizName?: string;
|
|
16
14
|
/**
|
|
17
15
|
* @remarks
|
|
18
|
-
* 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, which preserves HTML tags).
|
|
19
17
|
*
|
|
20
18
|
* @example
|
|
21
19
|
* text
|
|
@@ -31,7 +29,7 @@ export class TextTranslateShrinkRequest extends $dara.Model {
|
|
|
31
29
|
glossary?: string;
|
|
32
30
|
/**
|
|
33
31
|
* @remarks
|
|
34
|
-
* The source language code. If not specified, the language is automatically detected.
|
|
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).
|
|
35
33
|
*
|
|
36
34
|
* @example
|
|
37
35
|
* auto
|
|
@@ -39,7 +37,7 @@ export class TextTranslateShrinkRequest extends $dara.Model {
|
|
|
39
37
|
sourceLanguage?: string;
|
|
40
38
|
/**
|
|
41
39
|
* @remarks
|
|
42
|
-
* The list of texts to
|
|
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.
|
|
43
41
|
*
|
|
44
42
|
* This parameter is required.
|
|
45
43
|
*
|
|
@@ -49,7 +47,7 @@ export class TextTranslateShrinkRequest extends $dara.Model {
|
|
|
49
47
|
sourceTextListShrink?: string;
|
|
50
48
|
/**
|
|
51
49
|
* @remarks
|
|
52
|
-
* The target language code. This parameter is required. For supported language
|
|
50
|
+
* The target language code. This parameter is required. For supported language directions, see [Language direction mapping table](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
|
|
53
51
|
*
|
|
54
52
|
* This parameter is required.
|
|
55
53
|
*
|
|
@@ -59,14 +57,7 @@ export class TextTranslateShrinkRequest extends $dara.Model {
|
|
|
59
57
|
targetLanguage?: string;
|
|
60
58
|
/**
|
|
61
59
|
* @remarks
|
|
62
|
-
* The business scenario identifier. You can pass 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.
|
|
63
|
-
* Valid values:
|
|
64
|
-
* ● e-commerce-title: cross-border e-commerce product title translation
|
|
65
|
-
* ● e-commerce-description: cross-border e-commerce product description translation
|
|
66
|
-
* ● e-commerce-chat: cross-border e-commerce conversation translation
|
|
67
|
-
* ● e-commerce-cpv: cross-border e-commerce product CPV attribute translation
|
|
68
|
-
* ● novel: novel translation
|
|
69
|
-
* ● 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: 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).
|
|
70
61
|
*
|
|
71
62
|
* @example
|
|
72
63
|
* e-commerce-title
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class VirtualTryOnRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The URL of the garment image. Only one image is supported. The URL must be a publicly accessible `http`/`https` address. The image must be in JPG, JPEG, PNG, BMP, or WEBP format, with a resolution between 256 × 256 and 2049 × 2049 pixels, and a file size of no more than 10 MB.<br>
|
|
9
|
+
*
|
|
10
|
+
* This parameter is required.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* https://ae01.alicdn.com/kf/S342f0070dc9f4be09a6cbed34e90dc8fs.jpg
|
|
14
|
+
*/
|
|
15
|
+
clothImageUrl?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @remarks
|
|
18
|
+
* The garment type. Valid values: tops, bottoms, dresses, tops_and_bottoms, shoes, and hats. If this parameter is not specified, the system automatically identifies the garment type.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* tops
|
|
22
|
+
*/
|
|
23
|
+
clothType?: string;
|
|
24
|
+
/**
|
|
25
|
+
* @remarks
|
|
26
|
+
* The URL of the model image. Only one image is supported. The URL must be a publicly accessible `http`/`https` address. The image must be in JPG, JPEG, PNG, BMP, or WEBP format, with a resolution between 256 × 256 and 2049 × 2049 pixels, and a file size of no more than 10 MB.<br>
|
|
27
|
+
*
|
|
28
|
+
* This parameter is required.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* https://ae01.alicdn.com/kf/S342f0070dc9f4be09a6cbed34e90dc8fs.jpg
|
|
32
|
+
*/
|
|
33
|
+
modelImageUrl?: string;
|
|
34
|
+
/**
|
|
35
|
+
* @remarks
|
|
36
|
+
* Required. The image resolution. Valid values: 1K and 2K.
|
|
37
|
+
*
|
|
38
|
+
* This parameter is required.
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* 1K
|
|
42
|
+
*/
|
|
43
|
+
resolution?: string;
|
|
44
|
+
static names(): { [key: string]: string } {
|
|
45
|
+
return {
|
|
46
|
+
clothImageUrl: 'ClothImageUrl',
|
|
47
|
+
clothType: 'ClothType',
|
|
48
|
+
modelImageUrl: 'ModelImageUrl',
|
|
49
|
+
resolution: 'Resolution',
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
static types(): { [key: string]: any } {
|
|
54
|
+
return {
|
|
55
|
+
clothImageUrl: 'string',
|
|
56
|
+
clothType: 'string',
|
|
57
|
+
modelImageUrl: 'string',
|
|
58
|
+
resolution: 'string',
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
validate() {
|
|
63
|
+
super.validate();
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
constructor(map?: { [key: string]: any }) {
|
|
67
|
+
super(map);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { VirtualTryOnResponseBody } from "./VirtualTryOnResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class VirtualTryOnResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: VirtualTryOnResponseBody;
|
|
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: VirtualTryOnResponseBody,
|
|
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
|
+
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class VirtualTryOnResponseBodyData extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The asynchronous task ID. Used to query the task result later.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* task-xxxx-xxxx-xxxx
|
|
12
|
+
*/
|
|
13
|
+
taskId?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The usage details.
|
|
17
|
+
*/
|
|
18
|
+
usageMap?: { [key: string]: any };
|
|
19
|
+
static names(): { [key: string]: string } {
|
|
20
|
+
return {
|
|
21
|
+
taskId: 'TaskId',
|
|
22
|
+
usageMap: 'UsageMap',
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
static types(): { [key: string]: any } {
|
|
27
|
+
return {
|
|
28
|
+
taskId: 'string',
|
|
29
|
+
usageMap: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
validate() {
|
|
34
|
+
if(this.usageMap) {
|
|
35
|
+
$dara.Model.validateMap(this.usageMap);
|
|
36
|
+
}
|
|
37
|
+
super.validate();
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
constructor(map?: { [key: string]: any }) {
|
|
41
|
+
super(map);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export class VirtualTryOnResponseBody extends $dara.Model {
|
|
46
|
+
/**
|
|
47
|
+
* @remarks
|
|
48
|
+
* The error code. This parameter is not returned if the call is successful.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* 200
|
|
52
|
+
*/
|
|
53
|
+
code?: string;
|
|
54
|
+
/**
|
|
55
|
+
* @remarks
|
|
56
|
+
* The returned result struct.
|
|
57
|
+
*/
|
|
58
|
+
data?: VirtualTryOnResponseBodyData;
|
|
59
|
+
/**
|
|
60
|
+
* @remarks
|
|
61
|
+
* The error message. This parameter is not returned if the call is successful.
|
|
62
|
+
*
|
|
63
|
+
* @example
|
|
64
|
+
* OK
|
|
65
|
+
*/
|
|
66
|
+
message?: string;
|
|
67
|
+
/**
|
|
68
|
+
* @remarks
|
|
69
|
+
* The request ID. Used to uniquely identify a single API call.
|
|
70
|
+
*
|
|
71
|
+
* @example
|
|
72
|
+
* E1AD60F1-BAC7-546B-9533-E7AD02B16E3F
|
|
73
|
+
*/
|
|
74
|
+
requestId?: string;
|
|
75
|
+
/**
|
|
76
|
+
* @remarks
|
|
77
|
+
* Indicates whether the call is successful. A value of true indicates success. A value of false indicates failure.
|
|
78
|
+
*
|
|
79
|
+
* @example
|
|
80
|
+
* True
|
|
81
|
+
*/
|
|
82
|
+
success?: boolean;
|
|
83
|
+
static names(): { [key: string]: string } {
|
|
84
|
+
return {
|
|
85
|
+
code: 'Code',
|
|
86
|
+
data: 'Data',
|
|
87
|
+
message: 'Message',
|
|
88
|
+
requestId: 'RequestId',
|
|
89
|
+
success: 'Success',
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
static types(): { [key: string]: any } {
|
|
94
|
+
return {
|
|
95
|
+
code: 'string',
|
|
96
|
+
data: VirtualTryOnResponseBodyData,
|
|
97
|
+
message: 'string',
|
|
98
|
+
requestId: 'string',
|
|
99
|
+
success: 'boolean',
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
validate() {
|
|
104
|
+
if(this.data && typeof (this.data as any).validate === 'function') {
|
|
105
|
+
(this.data as any).validate();
|
|
106
|
+
}
|
|
107
|
+
super.validate();
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
constructor(map?: { [key: string]: any }) {
|
|
111
|
+
super(map);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class VisionFlowRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The AI capabilities to apply (1=Intelligent Element Detection, 2=Intelligent Matting, 3=Intelligent Removal, 4=Image Translation Pro, 5=Intelligent Cropping, 6=HD Upscaling). Multiple selections allowed.
|
|
8
|
+
* The AI capabilities to apply (1 = Intelligent Element Detection, 2 = Intelligent Matting, 3 = Intelligent Removal, 4 = Image Translation Pro, 5 = Intelligent Cropping, 6 = HD Upscaling). Multiple selections allowed.
|
|
9
9
|
*
|
|
10
10
|
* This parameter is required.
|
|
11
11
|
*
|
|
@@ -15,7 +15,7 @@ export class VisionFlowRequest extends $dara.Model {
|
|
|
15
15
|
ability?: number[];
|
|
16
16
|
/**
|
|
17
17
|
* @remarks
|
|
18
|
-
* The background type of the output image. Valid values: WHITE_BACKGROUND (white background) and TRANSPARENT (transparent background).
|
|
18
|
+
* The background type of the output image. Valid values: WHITE_BACKGROUND (white background) and TRANSPARENT (transparent background). This parameter is required when the Intelligent Matting capability is selected.
|
|
19
19
|
*
|
|
20
20
|
* @example
|
|
21
21
|
* WHITE_BACKGROUND
|
|
@@ -23,7 +23,7 @@ export class VisionFlowRequest extends $dara.Model {
|
|
|
23
23
|
backGroundType?: string;
|
|
24
24
|
/**
|
|
25
25
|
* @remarks
|
|
26
|
-
* The glossary ID. Optional. Create
|
|
26
|
+
* The glossary ID. Optional. Create a glossary separately in the console and provide its ID. If left empty, translation results are not modified.
|
|
27
27
|
*
|
|
28
28
|
* @example
|
|
29
29
|
* glossary_1
|
|
@@ -31,7 +31,7 @@ export class VisionFlowRequest extends $dara.Model {
|
|
|
31
31
|
glossary?: string;
|
|
32
32
|
/**
|
|
33
33
|
* @remarks
|
|
34
|
-
* The URL of the image to process.
|
|
34
|
+
* The URL of the image to process. This parameter is required. Resolution must be greater than 256 × 256, long side no greater than 1920 pixels, short side no greater than 1080 pixels. Maximum size: 5 MB. Supported formats: png, jpeg, jpg, bmp, and webp.
|
|
35
35
|
*
|
|
36
36
|
* This parameter is required.
|
|
37
37
|
*
|
|
@@ -49,7 +49,7 @@ export class VisionFlowRequest extends $dara.Model {
|
|
|
49
49
|
includingProductArea?: boolean;
|
|
50
50
|
/**
|
|
51
51
|
* @remarks
|
|
52
|
-
* Specifies whether images
|
|
52
|
+
* Specifies whether images with the detected elements proceed to subsequent processing. A value of true indicates that images containing the elements proceed to subsequent processing. A value of false indicates that they do not. This parameter is required when the Intelligent Element Detection capability is selected.
|
|
53
53
|
*
|
|
54
54
|
* @example
|
|
55
55
|
* true
|
|
@@ -57,7 +57,7 @@ export class VisionFlowRequest extends $dara.Model {
|
|
|
57
57
|
isFilter?: boolean;
|
|
58
58
|
/**
|
|
59
59
|
* @remarks
|
|
60
|
-
* The specific removal
|
|
60
|
+
* The specific removal region in RLE format. Optional. If provided, this parameter takes priority and the ObjectRemoveElements and NonobjectRemoveElements parameters are ignored.
|
|
61
61
|
*
|
|
62
62
|
* @example
|
|
63
63
|
* 474556 160 475356 160
|
|
@@ -65,7 +65,7 @@ export class VisionFlowRequest extends $dara.Model {
|
|
|
65
65
|
mask?: string;
|
|
66
66
|
/**
|
|
67
67
|
* @remarks
|
|
68
|
-
* The elements to detect on the non-subject area of the image (1=Watermark, 2=Logo, 3=Text, 4=Text-bearing color block). Multiple selections allowed. When the Intelligent Element Detection capability is selected, at least one of NonobjectDetectElements or ObjectDetectElements is required.
|
|
68
|
+
* The elements to detect on the non-subject area of the image (1 = Watermark, 2 = Logo, 3 = Text, 4 = Text-bearing color block). Multiple selections allowed. When the Intelligent Element Detection capability is selected, at least one of NonobjectDetectElements or ObjectDetectElements is required.
|
|
69
69
|
*
|
|
70
70
|
* @example
|
|
71
71
|
* [1,2,3]
|
|
@@ -73,7 +73,7 @@ export class VisionFlowRequest extends $dara.Model {
|
|
|
73
73
|
nonobjectDetectElements?: number[];
|
|
74
74
|
/**
|
|
75
75
|
* @remarks
|
|
76
|
-
* The elements to remove from the non-subject area of the image (1=Transparent text block, 2=Specific name, 3=Text, 4=
|
|
76
|
+
* The elements to remove from the non-subject area of the image (1 = Transparent text block, 2 = Specific name, 3 = Text, 4 = Overlay patch). Multiple selections allowed. When the Intelligent Removal capability is selected, at least one of NonobjectRemoveElements or ObjectRemoveElements is required.
|
|
77
77
|
*
|
|
78
78
|
* @example
|
|
79
79
|
* [1,2,4]
|
|
@@ -81,7 +81,7 @@ export class VisionFlowRequest extends $dara.Model {
|
|
|
81
81
|
nonobjectRemoveElements?: number[];
|
|
82
82
|
/**
|
|
83
83
|
* @remarks
|
|
84
|
-
* The elements to detect on the image subject (1=Watermark, 2=Logo, 3=Text, 4=Text-bearing color block). Multiple selections allowed. When the Intelligent Element Detection capability is selected, at least one of ObjectDetectElements or NonobjectDetectElements is required.
|
|
84
|
+
* The elements to detect on the image subject (1 = Watermark, 2 = Logo, 3 = Text, 4 = Text-bearing color block). Multiple selections allowed. When the Intelligent Element Detection capability is selected, at least one of ObjectDetectElements or NonobjectDetectElements is required.
|
|
85
85
|
*
|
|
86
86
|
* @example
|
|
87
87
|
* [1,2,3,4]
|
|
@@ -89,7 +89,7 @@ export class VisionFlowRequest extends $dara.Model {
|
|
|
89
89
|
objectDetectElements?: number[];
|
|
90
90
|
/**
|
|
91
91
|
* @remarks
|
|
92
|
-
* The elements to remove from the image subject (1=Transparent text block, 2=Specific name, 3=Text, 4=
|
|
92
|
+
* The elements to remove from the image subject (1 = Transparent text block, 2 = Specific name, 3 = Text, 4 = Overlay patch). Multiple selections allowed. When the Intelligent Removal capability is selected, at least one of ObjectRemoveElements or NonobjectRemoveElements is required.
|
|
93
93
|
*
|
|
94
94
|
* @example
|
|
95
95
|
* [1,2,4]
|
|
@@ -97,7 +97,7 @@ export class VisionFlowRequest extends $dara.Model {
|
|
|
97
97
|
objectRemoveElements?: number[];
|
|
98
98
|
/**
|
|
99
99
|
* @remarks
|
|
100
|
-
* The source language code. Optional.
|
|
100
|
+
* The source language code. Optional. For supported language pairs, refer to the supported translation language pairs list.
|
|
101
101
|
*
|
|
102
102
|
* @example
|
|
103
103
|
* zh
|
|
@@ -105,7 +105,7 @@ export class VisionFlowRequest extends $dara.Model {
|
|
|
105
105
|
sourceLanguage?: string;
|
|
106
106
|
/**
|
|
107
107
|
* @remarks
|
|
108
|
-
* The desired height of the cropped image, in pixels. Valid values: 100 to 5000.
|
|
108
|
+
* The desired height of the cropped image, in pixels. Valid values: 100 to 5000. This parameter is required when the Intelligent Cropping capability is selected.
|
|
109
109
|
*
|
|
110
110
|
* @example
|
|
111
111
|
* 800
|
|
@@ -113,7 +113,7 @@ export class VisionFlowRequest extends $dara.Model {
|
|
|
113
113
|
targetHeight?: number;
|
|
114
114
|
/**
|
|
115
115
|
* @remarks
|
|
116
|
-
* The target language code. Optional.
|
|
116
|
+
* The target language code. Optional. For supported language pairs, refer to the supported translation language pairs list.
|
|
117
117
|
*
|
|
118
118
|
* @example
|
|
119
119
|
* en
|
|
@@ -121,7 +121,7 @@ export class VisionFlowRequest extends $dara.Model {
|
|
|
121
121
|
targetLanguage?: string;
|
|
122
122
|
/**
|
|
123
123
|
* @remarks
|
|
124
|
-
* The desired width of the cropped image, in pixels. Valid values: 100 to 5000.
|
|
124
|
+
* The desired width of the cropped image, in pixels. Valid values: 100 to 5000. This parameter is required when the Intelligent Cropping capability is selected.
|
|
125
125
|
*
|
|
126
126
|
* @example
|
|
127
127
|
* 800
|
|
@@ -137,7 +137,7 @@ export class VisionFlowRequest extends $dara.Model {
|
|
|
137
137
|
translatingBrandInTheProduct?: boolean;
|
|
138
138
|
/**
|
|
139
139
|
* @remarks
|
|
140
|
-
* The image upscaling factor. Optional. Default value: 2. Valid values: 2 to 4.
|
|
140
|
+
* The image upscaling factor. Optional. Default value: 2. Valid values: 2 to 4. This parameter is required when the HD Upscaling capability is selected.
|
|
141
141
|
*
|
|
142
142
|
* @example
|
|
143
143
|
* 2
|
|
@@ -56,7 +56,7 @@ export class VisionFlowResponseBody extends $dara.Model {
|
|
|
56
56
|
message?: string;
|
|
57
57
|
/**
|
|
58
58
|
* @remarks
|
|
59
|
-
* The request ID, used to uniquely identify a single
|
|
59
|
+
* The request ID, used to uniquely identify a single request.
|
|
60
60
|
*
|
|
61
61
|
* @example
|
|
62
62
|
* F3E65785-0180-1227-91B0-2F5F52F679FB
|