@alicloud/aidge20260428 5.12.2 → 5.13.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 +153 -94
- package/dist/client.js +212 -94
- package/dist/client.js.map +1 -1
- package/dist/models/AiTryOnRequest.d.ts +43 -5
- package/dist/models/AiTryOnRequest.js +10 -0
- package/dist/models/AiTryOnRequest.js.map +1 -1
- package/dist/models/AiTryOnResponseBody.d.ts +4 -2
- package/dist/models/AiTryOnResponseBody.js.map +1 -1
- package/dist/models/DocumentTranslateRequest.d.ts +10 -7
- package/dist/models/DocumentTranslateRequest.js.map +1 -1
- package/dist/models/DocumentTranslateResponseBody.d.ts +3 -3
- package/dist/models/ProductVideoGenerationRequest.d.ts +62 -0
- package/dist/models/ProductVideoGenerationRequest.js +71 -0
- package/dist/models/ProductVideoGenerationRequest.js.map +1 -0
- package/dist/models/ProductVideoGenerationResponse.d.ts +19 -0
- package/dist/models/ProductVideoGenerationResponse.js +69 -0
- package/dist/models/ProductVideoGenerationResponse.js.map +1 -0
- package/dist/models/ProductVideoGenerationResponseBody.d.ts +86 -0
- package/dist/models/ProductVideoGenerationResponseBody.js +92 -0
- package/dist/models/ProductVideoGenerationResponseBody.js.map +1 -0
- package/dist/models/ProductVideoGenerationShrinkRequest.d.ts +62 -0
- package/dist/models/ProductVideoGenerationShrinkRequest.js +68 -0
- package/dist/models/ProductVideoGenerationShrinkRequest.js.map +1 -0
- package/dist/models/VirtualTryOnRequest.d.ts +2 -2
- package/dist/models/VirtualTryOnResponseBody.d.ts +8 -7
- package/dist/models/VirtualTryOnResponseBody.js.map +1 -1
- package/dist/models/model.d.ts +5 -0
- package/dist/models/model.js +15 -5
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +228 -96
- package/src/models/AiTryOnRequest.ts +53 -5
- package/src/models/AiTryOnResponseBody.ts +4 -2
- package/src/models/DocumentTranslateRequest.ts +10 -7
- package/src/models/DocumentTranslateResponseBody.ts +3 -3
- package/src/models/ProductVideoGenerationRequest.ts +88 -0
- package/src/models/ProductVideoGenerationResponse.ts +40 -0
- package/src/models/ProductVideoGenerationResponseBody.ts +124 -0
- package/src/models/ProductVideoGenerationShrinkRequest.ts +85 -0
- package/src/models/VirtualTryOnRequest.ts +2 -2
- package/src/models/VirtualTryOnResponseBody.ts +8 -7
- package/src/models/model.ts +5 -0
|
@@ -5,9 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class AiTryOnRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The URL of the
|
|
9
|
-
*
|
|
10
|
-
* This parameter is required.
|
|
8
|
+
* The URL of the garment image. Only one image is supported. The URL must be a publicly accessible `http` or `https` address. The image must be in JPG, JPEG, PNG, BMP, or WEBP format. The resolution must be between 256×256 and 2049×2049 pixels, and the file size cannot exceed 10 MB.<br>
|
|
11
9
|
*
|
|
12
10
|
* @example
|
|
13
11
|
* https://ae01.alicdn.com/kf/S342f0070dc9f4be09a6cbed34e90dc8fs.jpg
|
|
@@ -15,7 +13,7 @@ export class AiTryOnRequest extends $dara.Model {
|
|
|
15
13
|
clothImageUrl?: string;
|
|
16
14
|
/**
|
|
17
15
|
* @remarks
|
|
18
|
-
* The type
|
|
16
|
+
* The clothing type. If specified, valid values are tops, bottoms, dresses, tops_and_bottoms, shoes, and hats. If this parameter is not specified, the clothing type is automatically identified.
|
|
19
17
|
*
|
|
20
18
|
* @example
|
|
21
19
|
* tops
|
|
@@ -23,7 +21,15 @@ export class AiTryOnRequest extends $dara.Model {
|
|
|
23
21
|
clothType?: string;
|
|
24
22
|
/**
|
|
25
23
|
* @remarks
|
|
26
|
-
* The
|
|
24
|
+
* The model tier. Set the value to lite. This parameter is required.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* lite
|
|
28
|
+
*/
|
|
29
|
+
mode?: string;
|
|
30
|
+
/**
|
|
31
|
+
* @remarks
|
|
32
|
+
* The URL of the model image. Only one image is supported. The URL must be a publicly accessible `http` or `https` address. The image must be in JPG, JPEG, PNG, BMP, or WEBP format. The resolution must be between 256×256 and 2049×2049 pixels, and the file size cannot exceed 10 MB.<br>
|
|
27
33
|
*
|
|
28
34
|
* This parameter is required.
|
|
29
35
|
*
|
|
@@ -31,6 +37,30 @@ export class AiTryOnRequest extends $dara.Model {
|
|
|
31
37
|
* https://ae01.alicdn.com/kf/S342f0070dc9f4be09a6cbed34e90dc8fs.jpg
|
|
32
38
|
*/
|
|
33
39
|
modelImageUrl?: string;
|
|
40
|
+
/**
|
|
41
|
+
* @remarks
|
|
42
|
+
* The URL of the identity template image. Only one image is supported. This parameter is mutually exclusive with PoseTemplateUrl.
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* https://xxxx
|
|
46
|
+
*/
|
|
47
|
+
modelTemplateUrl?: string;
|
|
48
|
+
/**
|
|
49
|
+
* @remarks
|
|
50
|
+
* The URL of the pose template image. Only one image is supported. This parameter is mutually exclusive with ModelTemplateUrl.
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* https://xxxx
|
|
54
|
+
*/
|
|
55
|
+
poseTemplateUrl?: string;
|
|
56
|
+
/**
|
|
57
|
+
* @remarks
|
|
58
|
+
* The aspect ratio of the output image. Valid values: 1:1, 2:3, 3:4, and 9:16. This parameter is optional. If this parameter is not specified, the aspect ratio of the original model image is used.
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* 1:1
|
|
62
|
+
*/
|
|
63
|
+
ratio?: string;
|
|
34
64
|
/**
|
|
35
65
|
* @remarks
|
|
36
66
|
* The resolution of the output image. Synchronous API operations only support 1K resolution.
|
|
@@ -41,12 +71,25 @@ export class AiTryOnRequest extends $dara.Model {
|
|
|
41
71
|
* 1K
|
|
42
72
|
*/
|
|
43
73
|
resolution?: string;
|
|
74
|
+
/**
|
|
75
|
+
* @remarks
|
|
76
|
+
* The try-on type. Valid values: singletryon and multitryon. This parameter is optional. If this parameter is not specified, the workflow defaults to singletryon based on whether a product image is provided.
|
|
77
|
+
*
|
|
78
|
+
* @example
|
|
79
|
+
* singletryon
|
|
80
|
+
*/
|
|
81
|
+
tryonType?: string;
|
|
44
82
|
static names(): { [key: string]: string } {
|
|
45
83
|
return {
|
|
46
84
|
clothImageUrl: 'ClothImageUrl',
|
|
47
85
|
clothType: 'ClothType',
|
|
86
|
+
mode: 'Mode',
|
|
48
87
|
modelImageUrl: 'ModelImageUrl',
|
|
88
|
+
modelTemplateUrl: 'ModelTemplateUrl',
|
|
89
|
+
poseTemplateUrl: 'PoseTemplateUrl',
|
|
90
|
+
ratio: 'Ratio',
|
|
49
91
|
resolution: 'Resolution',
|
|
92
|
+
tryonType: 'TryonType',
|
|
50
93
|
};
|
|
51
94
|
}
|
|
52
95
|
|
|
@@ -54,8 +97,13 @@ export class AiTryOnRequest extends $dara.Model {
|
|
|
54
97
|
return {
|
|
55
98
|
clothImageUrl: 'string',
|
|
56
99
|
clothType: 'string',
|
|
100
|
+
mode: 'string',
|
|
57
101
|
modelImageUrl: 'string',
|
|
102
|
+
modelTemplateUrl: 'string',
|
|
103
|
+
poseTemplateUrl: 'string',
|
|
104
|
+
ratio: 'string',
|
|
58
105
|
resolution: 'string',
|
|
106
|
+
tryonType: 'string',
|
|
59
107
|
};
|
|
60
108
|
}
|
|
61
109
|
|
|
@@ -129,7 +129,7 @@ export class AiTryOnResponseBody extends $dara.Model {
|
|
|
129
129
|
message?: string;
|
|
130
130
|
/**
|
|
131
131
|
* @remarks
|
|
132
|
-
* The ID of the request.
|
|
132
|
+
* The ID of the request.
|
|
133
133
|
*
|
|
134
134
|
* @example
|
|
135
135
|
* E1AD60F1-BAC7-546B-9533-E7AD02B16E3F
|
|
@@ -137,7 +137,9 @@ export class AiTryOnResponseBody extends $dara.Model {
|
|
|
137
137
|
requestId?: string;
|
|
138
138
|
/**
|
|
139
139
|
* @remarks
|
|
140
|
-
* Indicates whether the call
|
|
140
|
+
* Indicates whether the call was successful. Valid values:
|
|
141
|
+
* - true: The call was successful.
|
|
142
|
+
* - false: The call failed.
|
|
141
143
|
*
|
|
142
144
|
* @example
|
|
143
145
|
* True
|
|
@@ -5,10 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class DocumentTranslateRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
*
|
|
9
|
-
* - Word: 200 MB or 100 pages.
|
|
10
|
-
* - PDF: 200 MB or 100 pages.
|
|
11
|
-
* - Maximum size of a single file: 200 MB.
|
|
8
|
+
* Supports PDF, WORD, and EXCEL formats. Use uppercase letters when specifying this parameter.
|
|
12
9
|
*
|
|
13
10
|
* This parameter is required.
|
|
14
11
|
*
|
|
@@ -18,7 +15,13 @@ export class DocumentTranslateRequest extends $dara.Model {
|
|
|
18
15
|
fileType?: string;
|
|
19
16
|
/**
|
|
20
17
|
* @remarks
|
|
21
|
-
*
|
|
18
|
+
* ● Specify the intervention glossary ID when the intervention feature is required.
|
|
19
|
+
* ● Supports custom translation results, including:
|
|
20
|
+
* ○ Do-not-translate (ABC-ABC).
|
|
21
|
+
* ○ Specified translation (ABC-DEF).
|
|
22
|
+
* ○ Translation omission (ABC-null value).
|
|
23
|
+
* This is commonly used in scenarios such as brand word protection.
|
|
24
|
+
* Example value: "glossary_1"
|
|
22
25
|
*
|
|
23
26
|
* @example
|
|
24
27
|
* glossary_1
|
|
@@ -26,7 +29,7 @@ export class DocumentTranslateRequest extends $dara.Model {
|
|
|
26
29
|
glossary?: string;
|
|
27
30
|
/**
|
|
28
31
|
* @remarks
|
|
29
|
-
* The target language.
|
|
32
|
+
* The target language.
|
|
30
33
|
*
|
|
31
34
|
* This parameter is required.
|
|
32
35
|
*
|
|
@@ -36,7 +39,7 @@ export class DocumentTranslateRequest extends $dara.Model {
|
|
|
36
39
|
targetLanguage?: string;
|
|
37
40
|
/**
|
|
38
41
|
* @remarks
|
|
39
|
-
* The OSS URL of the document to be translated.
|
|
42
|
+
* The OSS URL path of the document to be translated.
|
|
40
43
|
*
|
|
41
44
|
* This parameter is required.
|
|
42
45
|
*
|
|
@@ -35,7 +35,7 @@ export class DocumentTranslateResponseBodyData extends $dara.Model {
|
|
|
35
35
|
export class DocumentTranslateResponseBody extends $dara.Model {
|
|
36
36
|
/**
|
|
37
37
|
* @remarks
|
|
38
|
-
* The response code.
|
|
38
|
+
* The response code.
|
|
39
39
|
*
|
|
40
40
|
* @example
|
|
41
41
|
* success
|
|
@@ -48,7 +48,7 @@ export class DocumentTranslateResponseBody extends $dara.Model {
|
|
|
48
48
|
data?: DocumentTranslateResponseBodyData;
|
|
49
49
|
/**
|
|
50
50
|
* @remarks
|
|
51
|
-
* The error message, such as "The
|
|
51
|
+
* The error message, such as "The parameters contain sensitive information. Try other inputs."
|
|
52
52
|
* This parameter is not returned when the call is successful.
|
|
53
53
|
*
|
|
54
54
|
* @example
|
|
@@ -57,7 +57,7 @@ export class DocumentTranslateResponseBody extends $dara.Model {
|
|
|
57
57
|
message?: string;
|
|
58
58
|
/**
|
|
59
59
|
* @remarks
|
|
60
|
-
* The unique
|
|
60
|
+
* The unique identity of the request, which is used for troubleshooting and Tracing Analysis.
|
|
61
61
|
*
|
|
62
62
|
* @example
|
|
63
63
|
* 39E8A74B-F99E-1195-A5FF-3ECC5F94F304
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class ProductVideoGenerationRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The aspect ratio. Default value: 9:16. Valid values: 16:9, 1:1, 3:4, and 9:16.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* 9:16
|
|
12
|
+
*/
|
|
13
|
+
aspectRatio?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The video duration in seconds. Default value: 15. If no script is provided, the value must be an integer from 5 to 15. If a script is provided, the value must be an integer from 5 to 30. A value of 15.0 is treated as 15.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* 15
|
|
20
|
+
*/
|
|
21
|
+
duration?: number;
|
|
22
|
+
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* The public image URLs. At least one image URL is required. Each URL must start with http:// or https:// after leading and trailing whitespaces are removed.
|
|
25
|
+
*
|
|
26
|
+
* This parameter is required.
|
|
27
|
+
*/
|
|
28
|
+
productImages?: string[];
|
|
29
|
+
/**
|
|
30
|
+
* @remarks
|
|
31
|
+
* The product title. This parameter is required.
|
|
32
|
+
*
|
|
33
|
+
* This parameter is required.
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* White minimalist ceramic mug
|
|
37
|
+
*/
|
|
38
|
+
productTitle?: string;
|
|
39
|
+
/**
|
|
40
|
+
* @remarks
|
|
41
|
+
* The resolution. Default value: 720P. Valid values: 720P and 1080P. The value is case-insensitive and is automatically converted to uppercase by the service.
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* 720P
|
|
45
|
+
*/
|
|
46
|
+
resolution?: string;
|
|
47
|
+
/**
|
|
48
|
+
* @remarks
|
|
49
|
+
* The existing storyboard script. If this parameter is not provided or is left blank, automatic planning is used.
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* create a dog
|
|
53
|
+
*/
|
|
54
|
+
script?: string;
|
|
55
|
+
static names(): { [key: string]: string } {
|
|
56
|
+
return {
|
|
57
|
+
aspectRatio: 'aspect_ratio',
|
|
58
|
+
duration: 'duration',
|
|
59
|
+
productImages: 'product_images',
|
|
60
|
+
productTitle: 'product_title',
|
|
61
|
+
resolution: 'resolution',
|
|
62
|
+
script: 'script',
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
static types(): { [key: string]: any } {
|
|
67
|
+
return {
|
|
68
|
+
aspectRatio: 'string',
|
|
69
|
+
duration: 'number',
|
|
70
|
+
productImages: { 'type': 'array', 'itemType': 'string' },
|
|
71
|
+
productTitle: 'string',
|
|
72
|
+
resolution: 'string',
|
|
73
|
+
script: 'string',
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
validate() {
|
|
78
|
+
if(Array.isArray(this.productImages)) {
|
|
79
|
+
$dara.Model.validateArray(this.productImages);
|
|
80
|
+
}
|
|
81
|
+
super.validate();
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
constructor(map?: { [key: string]: any }) {
|
|
85
|
+
super(map);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { ProductVideoGenerationResponseBody } from "./ProductVideoGenerationResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class ProductVideoGenerationResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: ProductVideoGenerationResponseBody;
|
|
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: ProductVideoGenerationResponseBody,
|
|
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,124 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class ProductVideoGenerationResponseBodyData extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The planning route written upon acceptance. Valid values: DIRECT (with script) and AUTO_PLAN (automatic planning).
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* AUTO_PLAN
|
|
12
|
+
*/
|
|
13
|
+
route?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The current status.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* PENDING
|
|
20
|
+
*/
|
|
21
|
+
status?: string;
|
|
22
|
+
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* The task ID of this service.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* task_778fa8bd21804828a5d147050e30edac
|
|
28
|
+
*/
|
|
29
|
+
taskId?: string;
|
|
30
|
+
static names(): { [key: string]: string } {
|
|
31
|
+
return {
|
|
32
|
+
route: 'route',
|
|
33
|
+
status: 'status',
|
|
34
|
+
taskId: 'task_id',
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
static types(): { [key: string]: any } {
|
|
39
|
+
return {
|
|
40
|
+
route: 'string',
|
|
41
|
+
status: 'string',
|
|
42
|
+
taskId: 'string',
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
validate() {
|
|
47
|
+
super.validate();
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
constructor(map?: { [key: string]: any }) {
|
|
51
|
+
super(map);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export class ProductVideoGenerationResponseBody extends $dara.Model {
|
|
56
|
+
/**
|
|
57
|
+
* @remarks
|
|
58
|
+
* The error code.
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* success
|
|
62
|
+
*/
|
|
63
|
+
code?: string;
|
|
64
|
+
/**
|
|
65
|
+
* @remarks
|
|
66
|
+
* The task acceptance result.
|
|
67
|
+
*/
|
|
68
|
+
data?: ProductVideoGenerationResponseBodyData;
|
|
69
|
+
/**
|
|
70
|
+
* @remarks
|
|
71
|
+
* The returned message or failure description.
|
|
72
|
+
*
|
|
73
|
+
* @example
|
|
74
|
+
* Task submitted
|
|
75
|
+
*/
|
|
76
|
+
message?: string;
|
|
77
|
+
/**
|
|
78
|
+
* @remarks
|
|
79
|
+
* Id of the request
|
|
80
|
+
*
|
|
81
|
+
* @example
|
|
82
|
+
* 70CBEFDF-BB17-1EB3-8A21-569F3124738F
|
|
83
|
+
*/
|
|
84
|
+
requestId?: string;
|
|
85
|
+
/**
|
|
86
|
+
* @remarks
|
|
87
|
+
* Indicates whether the call was successful.
|
|
88
|
+
*
|
|
89
|
+
* @example
|
|
90
|
+
* True
|
|
91
|
+
*/
|
|
92
|
+
success?: boolean;
|
|
93
|
+
static names(): { [key: string]: string } {
|
|
94
|
+
return {
|
|
95
|
+
code: 'Code',
|
|
96
|
+
data: 'Data',
|
|
97
|
+
message: 'Message',
|
|
98
|
+
requestId: 'RequestId',
|
|
99
|
+
success: 'Success',
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
static types(): { [key: string]: any } {
|
|
104
|
+
return {
|
|
105
|
+
code: 'string',
|
|
106
|
+
data: ProductVideoGenerationResponseBodyData,
|
|
107
|
+
message: 'string',
|
|
108
|
+
requestId: 'string',
|
|
109
|
+
success: 'boolean',
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
validate() {
|
|
114
|
+
if(this.data && typeof (this.data as any).validate === 'function') {
|
|
115
|
+
(this.data as any).validate();
|
|
116
|
+
}
|
|
117
|
+
super.validate();
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
constructor(map?: { [key: string]: any }) {
|
|
121
|
+
super(map);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class ProductVideoGenerationShrinkRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The aspect ratio. Default value: 9:16. Valid values: 16:9, 1:1, 3:4, and 9:16.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* 9:16
|
|
12
|
+
*/
|
|
13
|
+
aspectRatio?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The video duration in seconds. Default value: 15. If no script is provided, the value must be an integer from 5 to 15. If a script is provided, the value must be an integer from 5 to 30. A value of 15.0 is treated as 15.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* 15
|
|
20
|
+
*/
|
|
21
|
+
duration?: number;
|
|
22
|
+
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* The public image URLs. At least one image URL is required. Each URL must start with http:// or https:// after leading and trailing whitespaces are removed.
|
|
25
|
+
*
|
|
26
|
+
* This parameter is required.
|
|
27
|
+
*/
|
|
28
|
+
productImagesShrink?: string;
|
|
29
|
+
/**
|
|
30
|
+
* @remarks
|
|
31
|
+
* The product title. This parameter is required.
|
|
32
|
+
*
|
|
33
|
+
* This parameter is required.
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* White minimalist ceramic mug
|
|
37
|
+
*/
|
|
38
|
+
productTitle?: string;
|
|
39
|
+
/**
|
|
40
|
+
* @remarks
|
|
41
|
+
* The resolution. Default value: 720P. Valid values: 720P and 1080P. The value is case-insensitive and is automatically converted to uppercase by the service.
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* 720P
|
|
45
|
+
*/
|
|
46
|
+
resolution?: string;
|
|
47
|
+
/**
|
|
48
|
+
* @remarks
|
|
49
|
+
* The existing storyboard script. If this parameter is not provided or is left blank, automatic planning is used.
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* create a dog
|
|
53
|
+
*/
|
|
54
|
+
script?: string;
|
|
55
|
+
static names(): { [key: string]: string } {
|
|
56
|
+
return {
|
|
57
|
+
aspectRatio: 'aspect_ratio',
|
|
58
|
+
duration: 'duration',
|
|
59
|
+
productImagesShrink: 'product_images',
|
|
60
|
+
productTitle: 'product_title',
|
|
61
|
+
resolution: 'resolution',
|
|
62
|
+
script: 'script',
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
static types(): { [key: string]: any } {
|
|
67
|
+
return {
|
|
68
|
+
aspectRatio: 'string',
|
|
69
|
+
duration: 'number',
|
|
70
|
+
productImagesShrink: 'string',
|
|
71
|
+
productTitle: 'string',
|
|
72
|
+
resolution: 'string',
|
|
73
|
+
script: 'string',
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
validate() {
|
|
78
|
+
super.validate();
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
constructor(map?: { [key: string]: any }) {
|
|
82
|
+
super(map);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
@@ -15,7 +15,7 @@ export class VirtualTryOnRequest extends $dara.Model {
|
|
|
15
15
|
clothImageUrl?: string;
|
|
16
16
|
/**
|
|
17
17
|
* @remarks
|
|
18
|
-
* The garment
|
|
18
|
+
* The type of the garment. Valid values: tops, bottoms, dresses, tops_and_bottoms, shoes, and hats. If this parameter is not specified, the system automatically recognizes the garment type.
|
|
19
19
|
*
|
|
20
20
|
* @example
|
|
21
21
|
* tops
|
|
@@ -33,7 +33,7 @@ export class VirtualTryOnRequest extends $dara.Model {
|
|
|
33
33
|
modelImageUrl?: string;
|
|
34
34
|
/**
|
|
35
35
|
* @remarks
|
|
36
|
-
* Required. The image
|
|
36
|
+
* Required. The resolution of the generated image. Valid values: 1K and 2K.
|
|
37
37
|
*
|
|
38
38
|
* This parameter is required.
|
|
39
39
|
*
|
|
@@ -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 ID of the asynchronous task
|
|
8
|
+
* The ID of the asynchronous task. It is used to query the task result later.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* task-xxxx-xxxx-xxxx
|
|
@@ -14,6 +14,9 @@ export class VirtualTryOnResponseBodyData extends $dara.Model {
|
|
|
14
14
|
/**
|
|
15
15
|
* @remarks
|
|
16
16
|
* The usage details.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* {"ProcessingCount":1}
|
|
17
20
|
*/
|
|
18
21
|
usageMap?: { [key: string]: any };
|
|
19
22
|
static names(): { [key: string]: string } {
|
|
@@ -45,7 +48,7 @@ export class VirtualTryOnResponseBodyData extends $dara.Model {
|
|
|
45
48
|
export class VirtualTryOnResponseBody extends $dara.Model {
|
|
46
49
|
/**
|
|
47
50
|
* @remarks
|
|
48
|
-
* The error code. This parameter is not returned
|
|
51
|
+
* The error code. This parameter is not returned for successful calls.
|
|
49
52
|
*
|
|
50
53
|
* @example
|
|
51
54
|
* 200
|
|
@@ -58,7 +61,7 @@ export class VirtualTryOnResponseBody extends $dara.Model {
|
|
|
58
61
|
data?: VirtualTryOnResponseBodyData;
|
|
59
62
|
/**
|
|
60
63
|
* @remarks
|
|
61
|
-
* The error message. This parameter is not returned
|
|
64
|
+
* The error message. This parameter is not returned for successful calls.
|
|
62
65
|
*
|
|
63
66
|
* @example
|
|
64
67
|
* OK
|
|
@@ -66,7 +69,7 @@ export class VirtualTryOnResponseBody extends $dara.Model {
|
|
|
66
69
|
message?: string;
|
|
67
70
|
/**
|
|
68
71
|
* @remarks
|
|
69
|
-
* The request
|
|
72
|
+
* The ID of the request. It is used to identify a unique request.
|
|
70
73
|
*
|
|
71
74
|
* @example
|
|
72
75
|
* E1AD60F1-BAC7-546B-9533-E7AD02B16E3F
|
|
@@ -74,9 +77,7 @@ export class VirtualTryOnResponseBody extends $dara.Model {
|
|
|
74
77
|
requestId?: string;
|
|
75
78
|
/**
|
|
76
79
|
* @remarks
|
|
77
|
-
* Indicates whether the call is successful.
|
|
78
|
-
* - true: The call is successful.
|
|
79
|
-
* - false: The call fails.
|
|
80
|
+
* Indicates whether the call is successful. A value of true indicates success, and a value of false indicates failure.
|
|
80
81
|
*
|
|
81
82
|
* @example
|
|
82
83
|
* True
|
package/src/models/model.ts
CHANGED
|
@@ -103,6 +103,7 @@ export { PrepaidTextTranslateResponseBodyData } from './PrepaidTextTranslateResp
|
|
|
103
103
|
export { ProductHotspotDetectionResponseBodyDataProductsBoxes } from './ProductHotspotDetectionResponseBody';
|
|
104
104
|
export { ProductHotspotDetectionResponseBodyDataProducts } from './ProductHotspotDetectionResponseBody';
|
|
105
105
|
export { ProductHotspotDetectionResponseBodyData } from './ProductHotspotDetectionResponseBody';
|
|
106
|
+
export { ProductVideoGenerationResponseBodyData } from './ProductVideoGenerationResponseBody';
|
|
106
107
|
export { QueryAsyncTaskResultResponseBodyData } from './QueryAsyncTaskResultResponseBody';
|
|
107
108
|
export { QueryDisplayKnowledgeResponseBodyDataRecords } from './QueryDisplayKnowledgeResponseBody';
|
|
108
109
|
export { QueryDisplayKnowledgeResponseBodyData } from './QueryDisplayKnowledgeResponseBody';
|
|
@@ -269,6 +270,10 @@ export { ProductHotspotDetectionRequest } from './ProductHotspotDetectionRequest
|
|
|
269
270
|
export { ProductHotspotDetectionShrinkRequest } from './ProductHotspotDetectionShrinkRequest';
|
|
270
271
|
export { ProductHotspotDetectionResponseBody } from './ProductHotspotDetectionResponseBody';
|
|
271
272
|
export { ProductHotspotDetectionResponse } from './ProductHotspotDetectionResponse';
|
|
273
|
+
export { ProductVideoGenerationRequest } from './ProductVideoGenerationRequest';
|
|
274
|
+
export { ProductVideoGenerationShrinkRequest } from './ProductVideoGenerationShrinkRequest';
|
|
275
|
+
export { ProductVideoGenerationResponseBody } from './ProductVideoGenerationResponseBody';
|
|
276
|
+
export { ProductVideoGenerationResponse } from './ProductVideoGenerationResponse';
|
|
272
277
|
export { QueryAsyncTaskResultRequest } from './QueryAsyncTaskResultRequest';
|
|
273
278
|
export { QueryAsyncTaskResultResponseBody } from './QueryAsyncTaskResultResponseBody';
|
|
274
279
|
export { QueryAsyncTaskResultResponse } from './QueryAsyncTaskResultResponse';
|