@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
|
@@ -2,10 +2,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
2
2
|
export declare class DocumentTranslateRequest extends $dara.Model {
|
|
3
3
|
/**
|
|
4
4
|
* @remarks
|
|
5
|
-
*
|
|
6
|
-
* - Word: 200 MB or 100 pages.
|
|
7
|
-
* - PDF: 200 MB or 100 pages.
|
|
8
|
-
* - Maximum size of a single file: 200 MB.
|
|
5
|
+
* Supports PDF, WORD, and EXCEL formats. Use uppercase letters when specifying this parameter.
|
|
9
6
|
*
|
|
10
7
|
* This parameter is required.
|
|
11
8
|
*
|
|
@@ -15,7 +12,13 @@ export declare class DocumentTranslateRequest extends $dara.Model {
|
|
|
15
12
|
fileType?: string;
|
|
16
13
|
/**
|
|
17
14
|
* @remarks
|
|
18
|
-
*
|
|
15
|
+
* ● Specify the intervention glossary ID when the intervention feature is required.
|
|
16
|
+
* ● Supports custom translation results, including:
|
|
17
|
+
* ○ Do-not-translate (ABC-ABC).
|
|
18
|
+
* ○ Specified translation (ABC-DEF).
|
|
19
|
+
* ○ Translation omission (ABC-null value).
|
|
20
|
+
* This is commonly used in scenarios such as brand word protection.
|
|
21
|
+
* Example value: "glossary_1"
|
|
19
22
|
*
|
|
20
23
|
* @example
|
|
21
24
|
* glossary_1
|
|
@@ -23,7 +26,7 @@ export declare class DocumentTranslateRequest extends $dara.Model {
|
|
|
23
26
|
glossary?: string;
|
|
24
27
|
/**
|
|
25
28
|
* @remarks
|
|
26
|
-
* The target language.
|
|
29
|
+
* The target language.
|
|
27
30
|
*
|
|
28
31
|
* This parameter is required.
|
|
29
32
|
*
|
|
@@ -33,7 +36,7 @@ export declare class DocumentTranslateRequest extends $dara.Model {
|
|
|
33
36
|
targetLanguage?: string;
|
|
34
37
|
/**
|
|
35
38
|
* @remarks
|
|
36
|
-
* The OSS URL of the document to be translated.
|
|
39
|
+
* The OSS URL path of the document to be translated.
|
|
37
40
|
*
|
|
38
41
|
* This parameter is required.
|
|
39
42
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DocumentTranslateRequest.js","sourceRoot":"","sources":["../../src/models/DocumentTranslateRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,wBAAyB,SAAQ,KAAK,CAAC,KAAK;
|
|
1
|
+
{"version":3,"file":"DocumentTranslateRequest.js","sourceRoot":"","sources":["../../src/models/DocumentTranslateRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,wBAAyB,SAAQ,KAAK,CAAC,KAAK;IA6CvD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,UAAU;YACpB,QAAQ,EAAE,UAAU;YACpB,cAAc,EAAE,gBAAgB;YAChC,GAAG,EAAE,KAAK;SACX,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,QAAQ;YAClB,cAAc,EAAE,QAAQ;YACxB,GAAG,EAAE,QAAQ;SACd,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAtED,4DAsEC"}
|
|
@@ -22,7 +22,7 @@ export declare class DocumentTranslateResponseBodyData extends $dara.Model {
|
|
|
22
22
|
export declare class DocumentTranslateResponseBody extends $dara.Model {
|
|
23
23
|
/**
|
|
24
24
|
* @remarks
|
|
25
|
-
* The response code.
|
|
25
|
+
* The response code.
|
|
26
26
|
*
|
|
27
27
|
* @example
|
|
28
28
|
* success
|
|
@@ -35,7 +35,7 @@ export declare class DocumentTranslateResponseBody extends $dara.Model {
|
|
|
35
35
|
data?: DocumentTranslateResponseBodyData;
|
|
36
36
|
/**
|
|
37
37
|
* @remarks
|
|
38
|
-
* The error message, such as "The
|
|
38
|
+
* The error message, such as "The parameters contain sensitive information. Try other inputs."
|
|
39
39
|
* This parameter is not returned when the call is successful.
|
|
40
40
|
*
|
|
41
41
|
* @example
|
|
@@ -44,7 +44,7 @@ export declare class DocumentTranslateResponseBody extends $dara.Model {
|
|
|
44
44
|
message?: string;
|
|
45
45
|
/**
|
|
46
46
|
* @remarks
|
|
47
|
-
* The unique
|
|
47
|
+
* The unique identity of the request, which is used for troubleshooting and Tracing Analysis.
|
|
48
48
|
*
|
|
49
49
|
* @example
|
|
50
50
|
* 39E8A74B-F99E-1195-A5FF-3ECC5F94F304
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import * as $dara from '@darabonba/typescript';
|
|
2
|
+
export declare class ProductVideoGenerationRequest extends $dara.Model {
|
|
3
|
+
/**
|
|
4
|
+
* @remarks
|
|
5
|
+
* The aspect ratio. Default value: 9:16. Valid values: 16:9, 1:1, 3:4, and 9:16.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* 9:16
|
|
9
|
+
*/
|
|
10
|
+
aspectRatio?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @remarks
|
|
13
|
+
* 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.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* 15
|
|
17
|
+
*/
|
|
18
|
+
duration?: number;
|
|
19
|
+
/**
|
|
20
|
+
* @remarks
|
|
21
|
+
* 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.
|
|
22
|
+
*
|
|
23
|
+
* This parameter is required.
|
|
24
|
+
*/
|
|
25
|
+
productImages?: string[];
|
|
26
|
+
/**
|
|
27
|
+
* @remarks
|
|
28
|
+
* The product title. This parameter is required.
|
|
29
|
+
*
|
|
30
|
+
* This parameter is required.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* White minimalist ceramic mug
|
|
34
|
+
*/
|
|
35
|
+
productTitle?: string;
|
|
36
|
+
/**
|
|
37
|
+
* @remarks
|
|
38
|
+
* The resolution. Default value: 720P. Valid values: 720P and 1080P. The value is case-insensitive and is automatically converted to uppercase by the service.
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* 720P
|
|
42
|
+
*/
|
|
43
|
+
resolution?: string;
|
|
44
|
+
/**
|
|
45
|
+
* @remarks
|
|
46
|
+
* The existing storyboard script. If this parameter is not provided or is left blank, automatic planning is used.
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* create a dog
|
|
50
|
+
*/
|
|
51
|
+
script?: string;
|
|
52
|
+
static names(): {
|
|
53
|
+
[key: string]: string;
|
|
54
|
+
};
|
|
55
|
+
static types(): {
|
|
56
|
+
[key: string]: any;
|
|
57
|
+
};
|
|
58
|
+
validate(): void;
|
|
59
|
+
constructor(map?: {
|
|
60
|
+
[key: string]: any;
|
|
61
|
+
});
|
|
62
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.ProductVideoGenerationRequest = void 0;
|
|
37
|
+
// This file is auto-generated, don't edit it
|
|
38
|
+
const $dara = __importStar(require("@darabonba/typescript"));
|
|
39
|
+
class ProductVideoGenerationRequest extends $dara.Model {
|
|
40
|
+
static names() {
|
|
41
|
+
return {
|
|
42
|
+
aspectRatio: 'aspect_ratio',
|
|
43
|
+
duration: 'duration',
|
|
44
|
+
productImages: 'product_images',
|
|
45
|
+
productTitle: 'product_title',
|
|
46
|
+
resolution: 'resolution',
|
|
47
|
+
script: 'script',
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
static types() {
|
|
51
|
+
return {
|
|
52
|
+
aspectRatio: 'string',
|
|
53
|
+
duration: 'number',
|
|
54
|
+
productImages: { 'type': 'array', 'itemType': 'string' },
|
|
55
|
+
productTitle: 'string',
|
|
56
|
+
resolution: 'string',
|
|
57
|
+
script: 'string',
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
validate() {
|
|
61
|
+
if (Array.isArray(this.productImages)) {
|
|
62
|
+
$dara.Model.validateArray(this.productImages);
|
|
63
|
+
}
|
|
64
|
+
super.validate();
|
|
65
|
+
}
|
|
66
|
+
constructor(map) {
|
|
67
|
+
super(map);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
exports.ProductVideoGenerationRequest = ProductVideoGenerationRequest;
|
|
71
|
+
//# sourceMappingURL=ProductVideoGenerationRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductVideoGenerationRequest.js","sourceRoot":"","sources":["../../src/models/ProductVideoGenerationRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,6BAA8B,SAAQ,KAAK,CAAC,KAAK;IAkD5D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,cAAc;YAC3B,QAAQ,EAAE,UAAU;YACpB,aAAa,EAAE,gBAAgB;YAC/B,YAAY,EAAE,eAAe;YAC7B,UAAU,EAAE,YAAY;YACxB,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,QAAQ;YACrB,QAAQ,EAAE,QAAQ;YAClB,aAAa,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE;YACxD,YAAY,EAAE,QAAQ;YACtB,UAAU,EAAE,QAAQ;YACpB,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC,EAAE,CAAC;YACrC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAChD,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAlFD,sEAkFC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as $dara from '@darabonba/typescript';
|
|
2
|
+
import { ProductVideoGenerationResponseBody } from "./ProductVideoGenerationResponseBody";
|
|
3
|
+
export declare class ProductVideoGenerationResponse extends $dara.Model {
|
|
4
|
+
headers?: {
|
|
5
|
+
[key: string]: string;
|
|
6
|
+
};
|
|
7
|
+
statusCode?: number;
|
|
8
|
+
body?: ProductVideoGenerationResponseBody;
|
|
9
|
+
static names(): {
|
|
10
|
+
[key: string]: string;
|
|
11
|
+
};
|
|
12
|
+
static types(): {
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
};
|
|
15
|
+
validate(): void;
|
|
16
|
+
constructor(map?: {
|
|
17
|
+
[key: string]: any;
|
|
18
|
+
});
|
|
19
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.ProductVideoGenerationResponse = void 0;
|
|
37
|
+
// This file is auto-generated, don't edit it
|
|
38
|
+
const $dara = __importStar(require("@darabonba/typescript"));
|
|
39
|
+
const ProductVideoGenerationResponseBody_1 = require("./ProductVideoGenerationResponseBody");
|
|
40
|
+
class ProductVideoGenerationResponse extends $dara.Model {
|
|
41
|
+
static names() {
|
|
42
|
+
return {
|
|
43
|
+
headers: 'headers',
|
|
44
|
+
statusCode: 'statusCode',
|
|
45
|
+
body: 'body',
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
static types() {
|
|
49
|
+
return {
|
|
50
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
51
|
+
statusCode: 'number',
|
|
52
|
+
body: ProductVideoGenerationResponseBody_1.ProductVideoGenerationResponseBody,
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
validate() {
|
|
56
|
+
if (this.headers) {
|
|
57
|
+
$dara.Model.validateMap(this.headers);
|
|
58
|
+
}
|
|
59
|
+
if (this.body && typeof this.body.validate === 'function') {
|
|
60
|
+
this.body.validate();
|
|
61
|
+
}
|
|
62
|
+
super.validate();
|
|
63
|
+
}
|
|
64
|
+
constructor(map) {
|
|
65
|
+
super(map);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
exports.ProductVideoGenerationResponse = ProductVideoGenerationResponse;
|
|
69
|
+
//# sourceMappingURL=ProductVideoGenerationResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductVideoGenerationResponse.js","sourceRoot":"","sources":["../../src/models/ProductVideoGenerationResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,6FAA0F;AAG1F,MAAa,8BAA+B,SAAQ,KAAK,CAAC,KAAK;IAI7D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,uEAAkC;SACzC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,wEAiCC"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import * as $dara from '@darabonba/typescript';
|
|
2
|
+
export declare class ProductVideoGenerationResponseBodyData extends $dara.Model {
|
|
3
|
+
/**
|
|
4
|
+
* @remarks
|
|
5
|
+
* The planning route written upon acceptance. Valid values: DIRECT (with script) and AUTO_PLAN (automatic planning).
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* AUTO_PLAN
|
|
9
|
+
*/
|
|
10
|
+
route?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @remarks
|
|
13
|
+
* The current status.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* PENDING
|
|
17
|
+
*/
|
|
18
|
+
status?: string;
|
|
19
|
+
/**
|
|
20
|
+
* @remarks
|
|
21
|
+
* The task ID of this service.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* task_778fa8bd21804828a5d147050e30edac
|
|
25
|
+
*/
|
|
26
|
+
taskId?: string;
|
|
27
|
+
static names(): {
|
|
28
|
+
[key: string]: string;
|
|
29
|
+
};
|
|
30
|
+
static types(): {
|
|
31
|
+
[key: string]: any;
|
|
32
|
+
};
|
|
33
|
+
validate(): void;
|
|
34
|
+
constructor(map?: {
|
|
35
|
+
[key: string]: any;
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
export declare class ProductVideoGenerationResponseBody extends $dara.Model {
|
|
39
|
+
/**
|
|
40
|
+
* @remarks
|
|
41
|
+
* The error code.
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* success
|
|
45
|
+
*/
|
|
46
|
+
code?: string;
|
|
47
|
+
/**
|
|
48
|
+
* @remarks
|
|
49
|
+
* The task acceptance result.
|
|
50
|
+
*/
|
|
51
|
+
data?: ProductVideoGenerationResponseBodyData;
|
|
52
|
+
/**
|
|
53
|
+
* @remarks
|
|
54
|
+
* The returned message or failure description.
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* Task submitted
|
|
58
|
+
*/
|
|
59
|
+
message?: string;
|
|
60
|
+
/**
|
|
61
|
+
* @remarks
|
|
62
|
+
* Id of the request
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* 70CBEFDF-BB17-1EB3-8A21-569F3124738F
|
|
66
|
+
*/
|
|
67
|
+
requestId?: string;
|
|
68
|
+
/**
|
|
69
|
+
* @remarks
|
|
70
|
+
* Indicates whether the call was successful.
|
|
71
|
+
*
|
|
72
|
+
* @example
|
|
73
|
+
* True
|
|
74
|
+
*/
|
|
75
|
+
success?: boolean;
|
|
76
|
+
static names(): {
|
|
77
|
+
[key: string]: string;
|
|
78
|
+
};
|
|
79
|
+
static types(): {
|
|
80
|
+
[key: string]: any;
|
|
81
|
+
};
|
|
82
|
+
validate(): void;
|
|
83
|
+
constructor(map?: {
|
|
84
|
+
[key: string]: any;
|
|
85
|
+
});
|
|
86
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.ProductVideoGenerationResponseBody = exports.ProductVideoGenerationResponseBodyData = void 0;
|
|
37
|
+
// This file is auto-generated, don't edit it
|
|
38
|
+
const $dara = __importStar(require("@darabonba/typescript"));
|
|
39
|
+
class ProductVideoGenerationResponseBodyData extends $dara.Model {
|
|
40
|
+
static names() {
|
|
41
|
+
return {
|
|
42
|
+
route: 'route',
|
|
43
|
+
status: 'status',
|
|
44
|
+
taskId: 'task_id',
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
static types() {
|
|
48
|
+
return {
|
|
49
|
+
route: 'string',
|
|
50
|
+
status: 'string',
|
|
51
|
+
taskId: 'string',
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
validate() {
|
|
55
|
+
super.validate();
|
|
56
|
+
}
|
|
57
|
+
constructor(map) {
|
|
58
|
+
super(map);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
exports.ProductVideoGenerationResponseBodyData = ProductVideoGenerationResponseBodyData;
|
|
62
|
+
class ProductVideoGenerationResponseBody extends $dara.Model {
|
|
63
|
+
static names() {
|
|
64
|
+
return {
|
|
65
|
+
code: 'Code',
|
|
66
|
+
data: 'Data',
|
|
67
|
+
message: 'Message',
|
|
68
|
+
requestId: 'RequestId',
|
|
69
|
+
success: 'Success',
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
static types() {
|
|
73
|
+
return {
|
|
74
|
+
code: 'string',
|
|
75
|
+
data: ProductVideoGenerationResponseBodyData,
|
|
76
|
+
message: 'string',
|
|
77
|
+
requestId: 'string',
|
|
78
|
+
success: 'boolean',
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
validate() {
|
|
82
|
+
if (this.data && typeof this.data.validate === 'function') {
|
|
83
|
+
this.data.validate();
|
|
84
|
+
}
|
|
85
|
+
super.validate();
|
|
86
|
+
}
|
|
87
|
+
constructor(map) {
|
|
88
|
+
super(map);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
exports.ProductVideoGenerationResponseBody = ProductVideoGenerationResponseBody;
|
|
92
|
+
//# sourceMappingURL=ProductVideoGenerationResponseBody.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductVideoGenerationResponseBody.js","sourceRoot":"","sources":["../../src/models/ProductVideoGenerationResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,sCAAuC,SAAQ,KAAK,CAAC,KAAK;IAyBrE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,OAAO;YACd,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE,SAAS;SAClB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,QAAQ;YACf,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAhDD,wFAgDC;AAED,MAAa,kCAAmC,SAAQ,KAAK,CAAC,KAAK;IAsCjE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,sCAAsC;YAC5C,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AApED,gFAoEC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import * as $dara from '@darabonba/typescript';
|
|
2
|
+
export declare class ProductVideoGenerationShrinkRequest extends $dara.Model {
|
|
3
|
+
/**
|
|
4
|
+
* @remarks
|
|
5
|
+
* The aspect ratio. Default value: 9:16. Valid values: 16:9, 1:1, 3:4, and 9:16.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* 9:16
|
|
9
|
+
*/
|
|
10
|
+
aspectRatio?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @remarks
|
|
13
|
+
* 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.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* 15
|
|
17
|
+
*/
|
|
18
|
+
duration?: number;
|
|
19
|
+
/**
|
|
20
|
+
* @remarks
|
|
21
|
+
* 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.
|
|
22
|
+
*
|
|
23
|
+
* This parameter is required.
|
|
24
|
+
*/
|
|
25
|
+
productImagesShrink?: string;
|
|
26
|
+
/**
|
|
27
|
+
* @remarks
|
|
28
|
+
* The product title. This parameter is required.
|
|
29
|
+
*
|
|
30
|
+
* This parameter is required.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* White minimalist ceramic mug
|
|
34
|
+
*/
|
|
35
|
+
productTitle?: string;
|
|
36
|
+
/**
|
|
37
|
+
* @remarks
|
|
38
|
+
* The resolution. Default value: 720P. Valid values: 720P and 1080P. The value is case-insensitive and is automatically converted to uppercase by the service.
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* 720P
|
|
42
|
+
*/
|
|
43
|
+
resolution?: string;
|
|
44
|
+
/**
|
|
45
|
+
* @remarks
|
|
46
|
+
* The existing storyboard script. If this parameter is not provided or is left blank, automatic planning is used.
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* create a dog
|
|
50
|
+
*/
|
|
51
|
+
script?: string;
|
|
52
|
+
static names(): {
|
|
53
|
+
[key: string]: string;
|
|
54
|
+
};
|
|
55
|
+
static types(): {
|
|
56
|
+
[key: string]: any;
|
|
57
|
+
};
|
|
58
|
+
validate(): void;
|
|
59
|
+
constructor(map?: {
|
|
60
|
+
[key: string]: any;
|
|
61
|
+
});
|
|
62
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.ProductVideoGenerationShrinkRequest = void 0;
|
|
37
|
+
// This file is auto-generated, don't edit it
|
|
38
|
+
const $dara = __importStar(require("@darabonba/typescript"));
|
|
39
|
+
class ProductVideoGenerationShrinkRequest extends $dara.Model {
|
|
40
|
+
static names() {
|
|
41
|
+
return {
|
|
42
|
+
aspectRatio: 'aspect_ratio',
|
|
43
|
+
duration: 'duration',
|
|
44
|
+
productImagesShrink: 'product_images',
|
|
45
|
+
productTitle: 'product_title',
|
|
46
|
+
resolution: 'resolution',
|
|
47
|
+
script: 'script',
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
static types() {
|
|
51
|
+
return {
|
|
52
|
+
aspectRatio: 'string',
|
|
53
|
+
duration: 'number',
|
|
54
|
+
productImagesShrink: 'string',
|
|
55
|
+
productTitle: 'string',
|
|
56
|
+
resolution: 'string',
|
|
57
|
+
script: 'string',
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
validate() {
|
|
61
|
+
super.validate();
|
|
62
|
+
}
|
|
63
|
+
constructor(map) {
|
|
64
|
+
super(map);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
exports.ProductVideoGenerationShrinkRequest = ProductVideoGenerationShrinkRequest;
|
|
68
|
+
//# sourceMappingURL=ProductVideoGenerationShrinkRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductVideoGenerationShrinkRequest.js","sourceRoot":"","sources":["../../src/models/ProductVideoGenerationShrinkRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,mCAAoC,SAAQ,KAAK,CAAC,KAAK;IAkDlE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,cAAc;YAC3B,QAAQ,EAAE,UAAU;YACpB,mBAAmB,EAAE,gBAAgB;YACrC,YAAY,EAAE,eAAe;YAC7B,UAAU,EAAE,YAAY;YACxB,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,QAAQ;YACrB,QAAQ,EAAE,QAAQ;YAClB,mBAAmB,EAAE,QAAQ;YAC7B,YAAY,EAAE,QAAQ;YACtB,UAAU,EAAE,QAAQ;YACpB,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA/ED,kFA+EC"}
|
|
@@ -12,7 +12,7 @@ export declare class VirtualTryOnRequest extends $dara.Model {
|
|
|
12
12
|
clothImageUrl?: string;
|
|
13
13
|
/**
|
|
14
14
|
* @remarks
|
|
15
|
-
* The garment
|
|
15
|
+
* 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.
|
|
16
16
|
*
|
|
17
17
|
* @example
|
|
18
18
|
* tops
|
|
@@ -30,7 +30,7 @@ export declare class VirtualTryOnRequest extends $dara.Model {
|
|
|
30
30
|
modelImageUrl?: string;
|
|
31
31
|
/**
|
|
32
32
|
* @remarks
|
|
33
|
-
* Required. The image
|
|
33
|
+
* Required. The resolution of the generated image. Valid values: 1K and 2K.
|
|
34
34
|
*
|
|
35
35
|
* This parameter is required.
|
|
36
36
|
*
|