@alicloud/aidge20260428 5.3.2 → 5.5.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 +248 -110
- package/dist/client.js +316 -113
- package/dist/client.js.map +1 -1
- package/dist/models/DocumentTranslateRequest.d.ts +2 -2
- package/dist/models/DocumentTranslateResponseBody.d.ts +2 -2
- package/dist/models/EcomVideoRecreationRequest.d.ts +156 -0
- package/dist/models/EcomVideoRecreationRequest.js +150 -0
- package/dist/models/EcomVideoRecreationRequest.js.map +1 -0
- package/dist/models/EcomVideoRecreationResponse.d.ts +19 -0
- package/dist/models/EcomVideoRecreationResponse.js +69 -0
- package/dist/models/EcomVideoRecreationResponse.js.map +1 -0
- package/dist/models/EcomVideoRecreationResponseBody.d.ts +70 -0
- package/dist/models/EcomVideoRecreationResponseBody.js +88 -0
- package/dist/models/EcomVideoRecreationResponseBody.js.map +1 -0
- package/dist/models/EcomVideoRecreationShrinkRequest.d.ts +25 -0
- package/dist/models/EcomVideoRecreationShrinkRequest.js +60 -0
- package/dist/models/EcomVideoRecreationShrinkRequest.js.map +1 -0
- package/dist/models/ImageTranslationProRequest.d.ts +9 -9
- package/dist/models/ImageTranslationProResponseBody.d.ts +5 -5
- package/dist/models/ImageTranslationStandardRequest.d.ts +4 -4
- package/dist/models/ImageTranslationStandardResponseBody.d.ts +3 -3
- package/dist/models/LanguageDetectRequest.d.ts +1 -1
- package/dist/models/LanguageDetectResponseBody.d.ts +2 -2
- package/dist/models/TextTranslateRequest.d.ts +6 -6
- package/dist/models/TextTranslateResponseBody.d.ts +5 -5
- package/dist/models/TextTranslateShrinkRequest.d.ts +6 -6
- package/dist/models/VideoGenerationRequest.d.ts +45 -8
- package/dist/models/VideoGenerationRequest.js.map +1 -1
- package/dist/models/VideoGenerationResponseBody.d.ts +5 -5
- 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/model.d.ts +12 -0
- package/dist/models/model.js +28 -4
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +328 -113
- package/src/models/DocumentTranslateRequest.ts +2 -2
- package/src/models/DocumentTranslateResponseBody.ts +2 -2
- package/src/models/EcomVideoRecreationRequest.ts +234 -0
- package/src/models/EcomVideoRecreationResponse.ts +40 -0
- package/src/models/EcomVideoRecreationResponseBody.ts +104 -0
- package/src/models/EcomVideoRecreationShrinkRequest.ts +40 -0
- package/src/models/ImageTranslationProRequest.ts +9 -9
- package/src/models/ImageTranslationProResponseBody.ts +5 -5
- package/src/models/ImageTranslationStandardRequest.ts +4 -4
- package/src/models/ImageTranslationStandardResponseBody.ts +3 -3
- package/src/models/LanguageDetectRequest.ts +1 -1
- package/src/models/LanguageDetectResponseBody.ts +2 -2
- package/src/models/TextTranslateRequest.ts +6 -6
- package/src/models/TextTranslateResponseBody.ts +5 -5
- package/src/models/TextTranslateShrinkRequest.ts +6 -6
- package/src/models/VideoGenerationRequest.ts +45 -8
- package/src/models/VideoGenerationResponseBody.ts +5 -5
- package/src/models/VirtualTryOnRequest.ts +70 -0
- package/src/models/VirtualTryOnResponse.ts +40 -0
- package/src/models/VirtualTryOnResponseBody.ts +114 -0
- package/src/models/model.ts +12 -0
|
@@ -19,7 +19,7 @@ export class DocumentTranslateRequest extends $dara.Model {
|
|
|
19
19
|
fileType?: string;
|
|
20
20
|
/**
|
|
21
21
|
* @remarks
|
|
22
|
-
* The glossary ID. Specify this parameter when you need the glossary feature. Supports custom translation results, including do-not-translate (ABC-ABC), specified translation (ABC-DEF), and skip translation (ABC-empty value).
|
|
22
|
+
* The glossary ID. Specify this parameter when you need the glossary feature. Supports custom translation results, including do-not-translate (ABC-ABC), specified translation (ABC-DEF), and skip translation (ABC-empty value). This is commonly used for scenarios such as brand name protection.
|
|
23
23
|
*
|
|
24
24
|
* @example
|
|
25
25
|
* glossary_1
|
|
@@ -37,7 +37,7 @@ export class DocumentTranslateRequest extends $dara.Model {
|
|
|
37
37
|
targetLanguage?: string;
|
|
38
38
|
/**
|
|
39
39
|
* @remarks
|
|
40
|
-
* The OSS URL
|
|
40
|
+
* The OSS URL of the document to be translated.
|
|
41
41
|
*
|
|
42
42
|
* This parameter is required.
|
|
43
43
|
*
|
|
@@ -57,7 +57,7 @@ export class DocumentTranslateResponseBody extends $dara.Model {
|
|
|
57
57
|
message?: string;
|
|
58
58
|
/**
|
|
59
59
|
* @remarks
|
|
60
|
-
* The unique request
|
|
60
|
+
* The unique identity of this request, used for troubleshooting and Tracing Analysis.
|
|
61
61
|
*
|
|
62
62
|
* @example
|
|
63
63
|
* 39E8A74B-F99E-1195-A5FF-3ECC5F94F304
|
|
@@ -65,7 +65,7 @@ export class DocumentTranslateResponseBody extends $dara.Model {
|
|
|
65
65
|
requestId?: string;
|
|
66
66
|
/**
|
|
67
67
|
* @remarks
|
|
68
|
-
* Indicates whether the call
|
|
68
|
+
* Indicates whether the call is successful. Valid values: true: The call is successful. false: The call failed.
|
|
69
69
|
*
|
|
70
70
|
* @example
|
|
71
71
|
* True
|
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class EcomVideoRecreationRequestInputProductInfo extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The product category.
|
|
9
|
+
* Example: Women\\"s Clothing/Sun Protection Jacket
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* Women\\"s clothing/sun protection clothing
|
|
13
|
+
*/
|
|
14
|
+
category?: string;
|
|
15
|
+
/**
|
|
16
|
+
* @remarks
|
|
17
|
+
* The actual product information (SKU, brand, color, material, size, specifications, logo, and usage), used to constrain voiceover facts.
|
|
18
|
+
* Example: Light moon yellow, cool-touch fabric, sun protection to the back of the hand, UPF50+
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* Light moon yellow, cool-touch fabric, sun protection extending to the back of the hand, UPF50+
|
|
22
|
+
*/
|
|
23
|
+
detail?: string;
|
|
24
|
+
/**
|
|
25
|
+
* @remarks
|
|
26
|
+
* Required for product replacement. The name of the target product. Maximum length: 200 characters.
|
|
27
|
+
* Example: Light Moon Yellow Cool-touch Sun Protection Jacket
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* Light moon yellow cool-touch sun protection clothing
|
|
31
|
+
*/
|
|
32
|
+
title?: string;
|
|
33
|
+
static names(): { [key: string]: string } {
|
|
34
|
+
return {
|
|
35
|
+
category: 'Category',
|
|
36
|
+
detail: 'Detail',
|
|
37
|
+
title: 'Title',
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
static types(): { [key: string]: any } {
|
|
42
|
+
return {
|
|
43
|
+
category: 'string',
|
|
44
|
+
detail: 'string',
|
|
45
|
+
title: 'string',
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
validate() {
|
|
50
|
+
super.validate();
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
constructor(map?: { [key: string]: any }) {
|
|
54
|
+
super(map);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export class EcomVideoRecreationRequestInput extends $dara.Model {
|
|
59
|
+
/**
|
|
60
|
+
* @remarks
|
|
61
|
+
* The description or supplementary constraints for the target person in person replacement mode. 1 to 500 characters. Required when PersonReferenceImageUrls is not provided.
|
|
62
|
+
* Example: The target person is an adult male. Retain the original clothing and actions.
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* The target character is an adult male, with the original costume and movements preserved.
|
|
66
|
+
*/
|
|
67
|
+
changeDescription?: string;
|
|
68
|
+
/**
|
|
69
|
+
* @remarks
|
|
70
|
+
* The replacement mode. Valid values: `product_replacement` (default) and `person_replacement`.
|
|
71
|
+
*
|
|
72
|
+
* @example
|
|
73
|
+
* product_replacement
|
|
74
|
+
*/
|
|
75
|
+
mode?: string;
|
|
76
|
+
/**
|
|
77
|
+
* @remarks
|
|
78
|
+
* The URLs of target person reference images for person replacement. 1 to 5 images of the same person are supported. Arrange images in the following order: face close-up, front view, 45-degree angle, side view, and back view.
|
|
79
|
+
* Example: ["https://example.com/person.jpg"]
|
|
80
|
+
*/
|
|
81
|
+
personReferenceImageUrls?: string[];
|
|
82
|
+
/**
|
|
83
|
+
* @remarks
|
|
84
|
+
* The URL of the target product image. Required for product replacement. Exactly one image must be provided. A clear subject with no occlusion and a clean background is recommended.
|
|
85
|
+
* Example: ["https://example.com/product.png"]
|
|
86
|
+
*/
|
|
87
|
+
productImageUrls?: string[];
|
|
88
|
+
/**
|
|
89
|
+
* @remarks
|
|
90
|
+
* The target product information. Provide this parameter to improve voiceover accuracy.
|
|
91
|
+
*/
|
|
92
|
+
productInfo?: EcomVideoRecreationRequestInputProductInfo;
|
|
93
|
+
/**
|
|
94
|
+
* @remarks
|
|
95
|
+
* The HTTP(S) URL of the reference video. The video duration must be in the range of 2 to 360 seconds. The URL must remain accessible during task execution. Set the URL validity period to at least 24 hours.
|
|
96
|
+
*
|
|
97
|
+
* This parameter is required.
|
|
98
|
+
*
|
|
99
|
+
* @example
|
|
100
|
+
* https://example.com/source.mp4
|
|
101
|
+
*/
|
|
102
|
+
sourceVideoUrl?: string;
|
|
103
|
+
static names(): { [key: string]: string } {
|
|
104
|
+
return {
|
|
105
|
+
changeDescription: 'ChangeDescription',
|
|
106
|
+
mode: 'Mode',
|
|
107
|
+
personReferenceImageUrls: 'PersonReferenceImageUrls',
|
|
108
|
+
productImageUrls: 'ProductImageUrls',
|
|
109
|
+
productInfo: 'ProductInfo',
|
|
110
|
+
sourceVideoUrl: 'SourceVideoUrl',
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
static types(): { [key: string]: any } {
|
|
115
|
+
return {
|
|
116
|
+
changeDescription: 'string',
|
|
117
|
+
mode: 'string',
|
|
118
|
+
personReferenceImageUrls: { 'type': 'array', 'itemType': 'string' },
|
|
119
|
+
productImageUrls: { 'type': 'array', 'itemType': 'string' },
|
|
120
|
+
productInfo: EcomVideoRecreationRequestInputProductInfo,
|
|
121
|
+
sourceVideoUrl: 'string',
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
validate() {
|
|
126
|
+
if(Array.isArray(this.personReferenceImageUrls)) {
|
|
127
|
+
$dara.Model.validateArray(this.personReferenceImageUrls);
|
|
128
|
+
}
|
|
129
|
+
if(Array.isArray(this.productImageUrls)) {
|
|
130
|
+
$dara.Model.validateArray(this.productImageUrls);
|
|
131
|
+
}
|
|
132
|
+
if(this.productInfo && typeof (this.productInfo as any).validate === 'function') {
|
|
133
|
+
(this.productInfo as any).validate();
|
|
134
|
+
}
|
|
135
|
+
super.validate();
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
constructor(map?: { [key: string]: any }) {
|
|
139
|
+
super(map);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export class EcomVideoRecreationRequestOutput extends $dara.Model {
|
|
144
|
+
/**
|
|
145
|
+
* @remarks
|
|
146
|
+
* The target duration in seconds. `"auto"` (default): determined by the system. For product replacement, an integer from 5 to 60 can be specified. For person replacement, only `"auto"` is supported.
|
|
147
|
+
*
|
|
148
|
+
* @example
|
|
149
|
+
* auto
|
|
150
|
+
*/
|
|
151
|
+
duration?: number;
|
|
152
|
+
/**
|
|
153
|
+
* @remarks
|
|
154
|
+
* The output resolution. Default value: `720p`.
|
|
155
|
+
*
|
|
156
|
+
* @example
|
|
157
|
+
* 720p、1080p
|
|
158
|
+
*/
|
|
159
|
+
quality?: string;
|
|
160
|
+
/**
|
|
161
|
+
* @remarks
|
|
162
|
+
* The output aspect ratio. Default value: `auto` (automatically matches the original video).
|
|
163
|
+
*
|
|
164
|
+
* @example
|
|
165
|
+
* auto、9:16、3:4、1:1、4:3、16:9
|
|
166
|
+
*/
|
|
167
|
+
ratio?: string;
|
|
168
|
+
static names(): { [key: string]: string } {
|
|
169
|
+
return {
|
|
170
|
+
duration: 'Duration',
|
|
171
|
+
quality: 'Quality',
|
|
172
|
+
ratio: 'Ratio',
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
static types(): { [key: string]: any } {
|
|
177
|
+
return {
|
|
178
|
+
duration: 'number',
|
|
179
|
+
quality: 'string',
|
|
180
|
+
ratio: 'string',
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
validate() {
|
|
185
|
+
super.validate();
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
constructor(map?: { [key: string]: any }) {
|
|
189
|
+
super(map);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
export class EcomVideoRecreationRequest extends $dara.Model {
|
|
194
|
+
/**
|
|
195
|
+
* @remarks
|
|
196
|
+
* The input parameters for video remix.
|
|
197
|
+
*
|
|
198
|
+
* This parameter is required.
|
|
199
|
+
*/
|
|
200
|
+
input?: EcomVideoRecreationRequestInput;
|
|
201
|
+
/**
|
|
202
|
+
* @remarks
|
|
203
|
+
* The output specifications for the final video.
|
|
204
|
+
*/
|
|
205
|
+
output?: EcomVideoRecreationRequestOutput;
|
|
206
|
+
static names(): { [key: string]: string } {
|
|
207
|
+
return {
|
|
208
|
+
input: 'Input',
|
|
209
|
+
output: 'Output',
|
|
210
|
+
};
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
static types(): { [key: string]: any } {
|
|
214
|
+
return {
|
|
215
|
+
input: EcomVideoRecreationRequestInput,
|
|
216
|
+
output: EcomVideoRecreationRequestOutput,
|
|
217
|
+
};
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
validate() {
|
|
221
|
+
if(this.input && typeof (this.input as any).validate === 'function') {
|
|
222
|
+
(this.input as any).validate();
|
|
223
|
+
}
|
|
224
|
+
if(this.output && typeof (this.output as any).validate === 'function') {
|
|
225
|
+
(this.output as any).validate();
|
|
226
|
+
}
|
|
227
|
+
super.validate();
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
constructor(map?: { [key: string]: any }) {
|
|
231
|
+
super(map);
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { EcomVideoRecreationResponseBody } from "./EcomVideoRecreationResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class EcomVideoRecreationResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: EcomVideoRecreationResponseBody;
|
|
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: EcomVideoRecreationResponseBody,
|
|
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,104 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class EcomVideoRecreationResponseBodyData extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The asynchronous task ID for QueryAsyncTaskResult queries.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* task_778fa8bd21804828a5d147050e30edac
|
|
12
|
+
*/
|
|
13
|
+
taskId?: string;
|
|
14
|
+
static names(): { [key: string]: string } {
|
|
15
|
+
return {
|
|
16
|
+
taskId: 'TaskId',
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
static types(): { [key: string]: any } {
|
|
21
|
+
return {
|
|
22
|
+
taskId: 'string',
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
super.validate();
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
constructor(map?: { [key: string]: any }) {
|
|
31
|
+
super(map);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export class EcomVideoRecreationResponseBody extends $dara.Model {
|
|
36
|
+
/**
|
|
37
|
+
* @remarks
|
|
38
|
+
* The result code. `success` indicates success. An error code is returned upon failure.
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* success
|
|
42
|
+
*/
|
|
43
|
+
code?: string;
|
|
44
|
+
/**
|
|
45
|
+
* @remarks
|
|
46
|
+
* The asynchronous task submit status.
|
|
47
|
+
*/
|
|
48
|
+
data?: EcomVideoRecreationResponseBodyData;
|
|
49
|
+
/**
|
|
50
|
+
* @remarks
|
|
51
|
+
* The response message. An error description is returned upon failure.
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* Task submitted
|
|
55
|
+
*/
|
|
56
|
+
message?: string;
|
|
57
|
+
/**
|
|
58
|
+
* @remarks
|
|
59
|
+
* The request ID, used to identify a unique call.
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* 70CBEFDF-BB17-1EB3-8A21-569F3124738F
|
|
63
|
+
*/
|
|
64
|
+
requestId?: string;
|
|
65
|
+
/**
|
|
66
|
+
* @remarks
|
|
67
|
+
* Indicates whether the submission is successful.
|
|
68
|
+
*
|
|
69
|
+
* @example
|
|
70
|
+
* true
|
|
71
|
+
*/
|
|
72
|
+
success?: boolean;
|
|
73
|
+
static names(): { [key: string]: string } {
|
|
74
|
+
return {
|
|
75
|
+
code: 'Code',
|
|
76
|
+
data: 'Data',
|
|
77
|
+
message: 'Message',
|
|
78
|
+
requestId: 'RequestId',
|
|
79
|
+
success: 'Success',
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
static types(): { [key: string]: any } {
|
|
84
|
+
return {
|
|
85
|
+
code: 'string',
|
|
86
|
+
data: EcomVideoRecreationResponseBodyData,
|
|
87
|
+
message: 'string',
|
|
88
|
+
requestId: 'string',
|
|
89
|
+
success: 'boolean',
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
validate() {
|
|
94
|
+
if(this.data && typeof (this.data as any).validate === 'function') {
|
|
95
|
+
(this.data as any).validate();
|
|
96
|
+
}
|
|
97
|
+
super.validate();
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
constructor(map?: { [key: string]: any }) {
|
|
101
|
+
super(map);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class EcomVideoRecreationShrinkRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The input parameters for video remix.
|
|
9
|
+
*
|
|
10
|
+
* This parameter is required.
|
|
11
|
+
*/
|
|
12
|
+
inputShrink?: string;
|
|
13
|
+
/**
|
|
14
|
+
* @remarks
|
|
15
|
+
* The output specifications for the final video.
|
|
16
|
+
*/
|
|
17
|
+
outputShrink?: string;
|
|
18
|
+
static names(): { [key: string]: string } {
|
|
19
|
+
return {
|
|
20
|
+
inputShrink: 'Input',
|
|
21
|
+
outputShrink: 'Output',
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
static types(): { [key: string]: any } {
|
|
26
|
+
return {
|
|
27
|
+
inputShrink: 'string',
|
|
28
|
+
outputShrink: 'string',
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
validate() {
|
|
33
|
+
super.validate();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
constructor(map?: { [key: string]: any }) {
|
|
37
|
+
super(map);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class ImageTranslationProRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* Specifies whether to use asynchronous mode. Default value: false (synchronous mode). When set to true, the API immediately returns a TaskId
|
|
8
|
+
* Specifies whether to use asynchronous mode. Default value: false (synchronous mode). When set to true, the API immediately returns a TaskId. Use the query translation result API to retrieve the final result.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* true
|
|
@@ -13,7 +13,7 @@ export class ImageTranslationProRequest extends $dara.Model {
|
|
|
13
13
|
async?: boolean;
|
|
14
14
|
/**
|
|
15
15
|
* @remarks
|
|
16
|
-
* The intervention glossary
|
|
16
|
+
* The ID of the intervention glossary. This parameter is optional. Create the glossary separately in the console and provide its ID. If the glossary ID is empty, the translation results are not modified.
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
19
|
* glossary_1
|
|
@@ -21,13 +21,13 @@ export class ImageTranslationProRequest extends $dara.Model {
|
|
|
21
21
|
glossary?: string;
|
|
22
22
|
/**
|
|
23
23
|
* @remarks
|
|
24
|
-
* The URL of the original image.
|
|
24
|
+
* The URL of the original image. This parameter is required.
|
|
25
25
|
*
|
|
26
26
|
* Image requirements:
|
|
27
27
|
* - Image URL: Must be publicly accessible.
|
|
28
28
|
* - Format: png, jpeg, jpg, bmp, or webp.
|
|
29
|
-
* - Pixels:
|
|
30
|
-
* - File size:
|
|
29
|
+
* - Pixels: The width and height must not exceed 4000 pixels each.
|
|
30
|
+
* - File size: The original file must be 10 MB or smaller.
|
|
31
31
|
*
|
|
32
32
|
* This parameter is required.
|
|
33
33
|
*
|
|
@@ -37,7 +37,7 @@ export class ImageTranslationProRequest extends $dara.Model {
|
|
|
37
37
|
imageUrl?: string;
|
|
38
38
|
/**
|
|
39
39
|
* @remarks
|
|
40
|
-
* Specifies whether to translate text on the image subject.
|
|
40
|
+
* Specifies whether to translate text on the image subject. This parameter is optional. Default value: false. Setting this parameter to false helps protect information such as embedded product names from being translated.
|
|
41
41
|
*
|
|
42
42
|
* @example
|
|
43
43
|
* false
|
|
@@ -45,7 +45,7 @@ export class ImageTranslationProRequest extends $dara.Model {
|
|
|
45
45
|
includingProductArea?: boolean;
|
|
46
46
|
/**
|
|
47
47
|
* @remarks
|
|
48
|
-
* The source language code.
|
|
48
|
+
* The source 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).
|
|
49
49
|
*
|
|
50
50
|
* This parameter is required.
|
|
51
51
|
*
|
|
@@ -55,7 +55,7 @@ export class ImageTranslationProRequest extends $dara.Model {
|
|
|
55
55
|
sourceLanguage?: string;
|
|
56
56
|
/**
|
|
57
57
|
* @remarks
|
|
58
|
-
* The target language code.
|
|
58
|
+
* 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).
|
|
59
59
|
*
|
|
60
60
|
* This parameter is required.
|
|
61
61
|
*
|
|
@@ -65,7 +65,7 @@ export class ImageTranslationProRequest extends $dara.Model {
|
|
|
65
65
|
targetLanguage?: string;
|
|
66
66
|
/**
|
|
67
67
|
* @remarks
|
|
68
|
-
* Specifies whether to translate brand names on
|
|
68
|
+
* Specifies whether to translate brand names on the image. This parameter is optional. Default value: false. Setting this parameter to false helps protect brand name information from being translated.
|
|
69
69
|
*
|
|
70
70
|
* @example
|
|
71
71
|
* false
|
|
@@ -265,7 +265,7 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTexts e
|
|
|
265
265
|
textRect?: ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTextsTextRect;
|
|
266
266
|
/**
|
|
267
267
|
* @remarks
|
|
268
|
-
* Indicates whether the TextItem is valid. The item is invalid if this value does not exist or is false.
|
|
268
|
+
* Indicates whether the TextItem is valid. The item is invalid if this value does not exist or is set to false.
|
|
269
269
|
*
|
|
270
270
|
* @example
|
|
271
271
|
* true
|
|
@@ -346,7 +346,7 @@ export class ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreas extend
|
|
|
346
346
|
* The original text before translation.
|
|
347
347
|
*
|
|
348
348
|
* @example
|
|
349
|
-
*
|
|
349
|
+
* Cute Design · Crisp Bell
|
|
350
350
|
*/
|
|
351
351
|
content?: string;
|
|
352
352
|
/**
|
|
@@ -595,7 +595,7 @@ export class ImageTranslationProResponseBodyDataGenFiles extends $dara.Model {
|
|
|
595
595
|
export class ImageTranslationProResponseBodyDataResultList extends $dara.Model {
|
|
596
596
|
/**
|
|
597
597
|
* @remarks
|
|
598
|
-
* The URL of the
|
|
598
|
+
* The URL of the image translation result image.
|
|
599
599
|
*
|
|
600
600
|
* @example
|
|
601
601
|
* http://dashscope-a717.oss-cn-beijing.aliyuncs.com/xxx.jpg
|
|
@@ -708,7 +708,7 @@ export class ImageTranslationProResponseBody extends $dara.Model {
|
|
|
708
708
|
data?: ImageTranslationProResponseBodyData;
|
|
709
709
|
/**
|
|
710
710
|
* @remarks
|
|
711
|
-
* The error message. "Success"
|
|
711
|
+
* The error message. Returns "Success" for a successful call. Returns a specific error message for an exception, such as "The content contains sensitive data. Try other input."
|
|
712
712
|
*
|
|
713
713
|
* @example
|
|
714
714
|
* Success
|
|
@@ -716,7 +716,7 @@ export class ImageTranslationProResponseBody extends $dara.Model {
|
|
|
716
716
|
message?: string;
|
|
717
717
|
/**
|
|
718
718
|
* @remarks
|
|
719
|
-
* The request ID
|
|
719
|
+
* The request ID. Used to uniquely identify a request.
|
|
720
720
|
*
|
|
721
721
|
* @example
|
|
722
722
|
* 61785C32-80C2-19A3-9E55-2C3702C84B40
|
|
@@ -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. Create the glossary separately in the console and provide its ID. If the glossary ID is empty, translation results are not modified.
|
|
8
|
+
* 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.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* glossary_1
|
|
@@ -15,7 +15,7 @@ export class ImageTranslationStandardRequest extends $dara.Model {
|
|
|
15
15
|
* @remarks
|
|
16
16
|
* - Image URL: Must be publicly accessible.
|
|
17
17
|
* - Format: png, jpeg, jpg, bmp, webp
|
|
18
|
-
* - Pixels:
|
|
18
|
+
* - Pixels: Both width and height must not exceed 4000
|
|
19
19
|
* - File size: Original file ≤ 10 MB
|
|
20
20
|
*
|
|
21
21
|
* This parameter is required.
|
|
@@ -26,7 +26,7 @@ export class ImageTranslationStandardRequest extends $dara.Model {
|
|
|
26
26
|
imageUrl?: string;
|
|
27
27
|
/**
|
|
28
28
|
* @remarks
|
|
29
|
-
* Specifies whether to translate text on the
|
|
29
|
+
* Specifies whether to translate text on the image subject. Optional. Default value: false. This helps protect information by avoiding translation of embedded information such as product names.
|
|
30
30
|
*
|
|
31
31
|
* @example
|
|
32
32
|
* false
|
|
@@ -62,7 +62,7 @@ export class ImageTranslationStandardRequest extends $dara.Model {
|
|
|
62
62
|
translatingBrandInTheProduct?: boolean;
|
|
63
63
|
/**
|
|
64
64
|
* @remarks
|
|
65
|
-
* Specifies whether to return layer information such as text position, font, and color. If set to true, layer information is returned
|
|
65
|
+
* Specifies whether to return layer information such as text position, font, and color. If you set this parameter to true, layer information is returned, which can be used to integrate with image editors for secondary editing. Default value: false.
|
|
66
66
|
*
|
|
67
67
|
* @example
|
|
68
68
|
* false
|
|
@@ -568,7 +568,7 @@ export class ImageTranslationStandardResponseBodyData extends $dara.Model {
|
|
|
568
568
|
export class ImageTranslationStandardResponseBody extends $dara.Model {
|
|
569
569
|
/**
|
|
570
570
|
* @remarks
|
|
571
|
-
* The response code.
|
|
571
|
+
* The response code. 200 indicates success. For other response codes, refer to the error code information.
|
|
572
572
|
*
|
|
573
573
|
* @example
|
|
574
574
|
* 200
|
|
@@ -581,7 +581,7 @@ export class ImageTranslationStandardResponseBody extends $dara.Model {
|
|
|
581
581
|
data?: ImageTranslationStandardResponseBodyData;
|
|
582
582
|
/**
|
|
583
583
|
* @remarks
|
|
584
|
-
* The error message. "Success" is returned for successful
|
|
584
|
+
* The error message. "Success" is returned for a successful call. A specific error message is returned for a failed call.
|
|
585
585
|
*
|
|
586
586
|
* @example
|
|
587
587
|
* Success
|
|
@@ -597,7 +597,7 @@ export class ImageTranslationStandardResponseBody extends $dara.Model {
|
|
|
597
597
|
requestId?: string;
|
|
598
598
|
/**
|
|
599
599
|
* @remarks
|
|
600
|
-
* Indicates whether the call is successful.
|
|
600
|
+
* Indicates whether the call is successful. true indicates success. false indicates failure.
|
|
601
601
|
*
|
|
602
602
|
* @example
|
|
603
603
|
* true
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class LanguageDetectRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
*
|
|
8
|
+
* The detection scenario. Default value: common. If you are using a search phrase scenario, set this parameter to query. If an incorrect value is passed or the parameter is not specified, the common general identification is used. Note: pass query in lowercase.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* query
|
|
@@ -61,7 +61,7 @@ export class LanguageDetectResponseBody extends $dara.Model {
|
|
|
61
61
|
data?: LanguageDetectResponseBodyData;
|
|
62
62
|
/**
|
|
63
63
|
* @remarks
|
|
64
|
-
* The error message. "Success" is returned for a successful call. A specific error message is returned for
|
|
64
|
+
* The error message. "Success" is returned for a successful call. A specific error message is returned for an exception, such as "The parameters contain sensitive information. Try other input."
|
|
65
65
|
*
|
|
66
66
|
* @example
|
|
67
67
|
* Success
|
|
@@ -69,7 +69,7 @@ export class LanguageDetectResponseBody extends $dara.Model {
|
|
|
69
69
|
message?: string;
|
|
70
70
|
/**
|
|
71
71
|
* @remarks
|
|
72
|
-
* The request ID,
|
|
72
|
+
* The request ID, used to uniquely identify a request.
|
|
73
73
|
*
|
|
74
74
|
* @example
|
|
75
75
|
* 42542C6C-F2A4-1B2B-8EFF-130C8FD06F54
|