@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
|
@@ -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.EcomVideoRecreationResponse = void 0;
|
|
37
|
+
// This file is auto-generated, don't edit it
|
|
38
|
+
const $dara = __importStar(require("@darabonba/typescript"));
|
|
39
|
+
const EcomVideoRecreationResponseBody_1 = require("./EcomVideoRecreationResponseBody");
|
|
40
|
+
class EcomVideoRecreationResponse 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: EcomVideoRecreationResponseBody_1.EcomVideoRecreationResponseBody,
|
|
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.EcomVideoRecreationResponse = EcomVideoRecreationResponse;
|
|
69
|
+
//# sourceMappingURL=EcomVideoRecreationResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EcomVideoRecreationResponse.js","sourceRoot":"","sources":["../../src/models/EcomVideoRecreationResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,uFAAoF;AAGpF,MAAa,2BAA4B,SAAQ,KAAK,CAAC,KAAK;IAI1D,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,iEAA+B;SACtC,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,kEAiCC"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import * as $dara from '@darabonba/typescript';
|
|
2
|
+
export declare class EcomVideoRecreationResponseBodyData extends $dara.Model {
|
|
3
|
+
/**
|
|
4
|
+
* @remarks
|
|
5
|
+
* The asynchronous task ID for QueryAsyncTaskResult queries.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* task_778fa8bd21804828a5d147050e30edac
|
|
9
|
+
*/
|
|
10
|
+
taskId?: string;
|
|
11
|
+
static names(): {
|
|
12
|
+
[key: string]: string;
|
|
13
|
+
};
|
|
14
|
+
static types(): {
|
|
15
|
+
[key: string]: any;
|
|
16
|
+
};
|
|
17
|
+
validate(): void;
|
|
18
|
+
constructor(map?: {
|
|
19
|
+
[key: string]: any;
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
export declare class EcomVideoRecreationResponseBody extends $dara.Model {
|
|
23
|
+
/**
|
|
24
|
+
* @remarks
|
|
25
|
+
* The result code. `success` indicates success. An error code is returned upon failure.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* success
|
|
29
|
+
*/
|
|
30
|
+
code?: string;
|
|
31
|
+
/**
|
|
32
|
+
* @remarks
|
|
33
|
+
* The asynchronous task submit status.
|
|
34
|
+
*/
|
|
35
|
+
data?: EcomVideoRecreationResponseBodyData;
|
|
36
|
+
/**
|
|
37
|
+
* @remarks
|
|
38
|
+
* The response message. An error description is returned upon failure.
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* Task submitted
|
|
42
|
+
*/
|
|
43
|
+
message?: string;
|
|
44
|
+
/**
|
|
45
|
+
* @remarks
|
|
46
|
+
* The request ID, used to identify a unique call.
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* 70CBEFDF-BB17-1EB3-8A21-569F3124738F
|
|
50
|
+
*/
|
|
51
|
+
requestId?: string;
|
|
52
|
+
/**
|
|
53
|
+
* @remarks
|
|
54
|
+
* Indicates whether the submission is successful.
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* true
|
|
58
|
+
*/
|
|
59
|
+
success?: boolean;
|
|
60
|
+
static names(): {
|
|
61
|
+
[key: string]: string;
|
|
62
|
+
};
|
|
63
|
+
static types(): {
|
|
64
|
+
[key: string]: any;
|
|
65
|
+
};
|
|
66
|
+
validate(): void;
|
|
67
|
+
constructor(map?: {
|
|
68
|
+
[key: string]: any;
|
|
69
|
+
});
|
|
70
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
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.EcomVideoRecreationResponseBody = exports.EcomVideoRecreationResponseBodyData = void 0;
|
|
37
|
+
// This file is auto-generated, don't edit it
|
|
38
|
+
const $dara = __importStar(require("@darabonba/typescript"));
|
|
39
|
+
class EcomVideoRecreationResponseBodyData extends $dara.Model {
|
|
40
|
+
static names() {
|
|
41
|
+
return {
|
|
42
|
+
taskId: 'TaskId',
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
static types() {
|
|
46
|
+
return {
|
|
47
|
+
taskId: 'string',
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
validate() {
|
|
51
|
+
super.validate();
|
|
52
|
+
}
|
|
53
|
+
constructor(map) {
|
|
54
|
+
super(map);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
exports.EcomVideoRecreationResponseBodyData = EcomVideoRecreationResponseBodyData;
|
|
58
|
+
class EcomVideoRecreationResponseBody extends $dara.Model {
|
|
59
|
+
static names() {
|
|
60
|
+
return {
|
|
61
|
+
code: 'Code',
|
|
62
|
+
data: 'Data',
|
|
63
|
+
message: 'Message',
|
|
64
|
+
requestId: 'RequestId',
|
|
65
|
+
success: 'Success',
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
static types() {
|
|
69
|
+
return {
|
|
70
|
+
code: 'string',
|
|
71
|
+
data: EcomVideoRecreationResponseBodyData,
|
|
72
|
+
message: 'string',
|
|
73
|
+
requestId: 'string',
|
|
74
|
+
success: 'boolean',
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
validate() {
|
|
78
|
+
if (this.data && typeof this.data.validate === 'function') {
|
|
79
|
+
this.data.validate();
|
|
80
|
+
}
|
|
81
|
+
super.validate();
|
|
82
|
+
}
|
|
83
|
+
constructor(map) {
|
|
84
|
+
super(map);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
exports.EcomVideoRecreationResponseBody = EcomVideoRecreationResponseBody;
|
|
88
|
+
//# sourceMappingURL=EcomVideoRecreationResponseBody.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EcomVideoRecreationResponseBody.js","sourceRoot":"","sources":["../../src/models/EcomVideoRecreationResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,mCAAoC,SAAQ,KAAK,CAAC,KAAK;IASlE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,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;AA5BD,kFA4BC;AAED,MAAa,+BAAgC,SAAQ,KAAK,CAAC,KAAK;IAsC9D,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,mCAAmC;YACzC,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,0EAoEC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as $dara from '@darabonba/typescript';
|
|
2
|
+
export declare class EcomVideoRecreationShrinkRequest extends $dara.Model {
|
|
3
|
+
/**
|
|
4
|
+
* @remarks
|
|
5
|
+
* The input parameters for video remix.
|
|
6
|
+
*
|
|
7
|
+
* This parameter is required.
|
|
8
|
+
*/
|
|
9
|
+
inputShrink?: string;
|
|
10
|
+
/**
|
|
11
|
+
* @remarks
|
|
12
|
+
* The output specifications for the final video.
|
|
13
|
+
*/
|
|
14
|
+
outputShrink?: string;
|
|
15
|
+
static names(): {
|
|
16
|
+
[key: string]: string;
|
|
17
|
+
};
|
|
18
|
+
static types(): {
|
|
19
|
+
[key: string]: any;
|
|
20
|
+
};
|
|
21
|
+
validate(): void;
|
|
22
|
+
constructor(map?: {
|
|
23
|
+
[key: string]: any;
|
|
24
|
+
});
|
|
25
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
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.EcomVideoRecreationShrinkRequest = void 0;
|
|
37
|
+
// This file is auto-generated, don't edit it
|
|
38
|
+
const $dara = __importStar(require("@darabonba/typescript"));
|
|
39
|
+
class EcomVideoRecreationShrinkRequest extends $dara.Model {
|
|
40
|
+
static names() {
|
|
41
|
+
return {
|
|
42
|
+
inputShrink: 'Input',
|
|
43
|
+
outputShrink: 'Output',
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
static types() {
|
|
47
|
+
return {
|
|
48
|
+
inputShrink: 'string',
|
|
49
|
+
outputShrink: 'string',
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
validate() {
|
|
53
|
+
super.validate();
|
|
54
|
+
}
|
|
55
|
+
constructor(map) {
|
|
56
|
+
super(map);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
exports.EcomVideoRecreationShrinkRequest = EcomVideoRecreationShrinkRequest;
|
|
60
|
+
//# sourceMappingURL=EcomVideoRecreationShrinkRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EcomVideoRecreationShrinkRequest.js","sourceRoot":"","sources":["../../src/models/EcomVideoRecreationShrinkRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,gCAAiC,SAAQ,KAAK,CAAC,KAAK;IAa/D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,OAAO;YACpB,YAAY,EAAE,QAAQ;SACvB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,QAAQ;YACrB,YAAY,EAAE,QAAQ;SACvB,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;AAlCD,4EAkCC"}
|
|
@@ -2,7 +2,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
2
2
|
export declare class ImageTranslationProRequest extends $dara.Model {
|
|
3
3
|
/**
|
|
4
4
|
* @remarks
|
|
5
|
-
* Specifies whether to use asynchronous mode. Default value: false (synchronous mode). When set to true, the API immediately returns a TaskId
|
|
5
|
+
* 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.
|
|
6
6
|
*
|
|
7
7
|
* @example
|
|
8
8
|
* true
|
|
@@ -10,7 +10,7 @@ export declare class ImageTranslationProRequest extends $dara.Model {
|
|
|
10
10
|
async?: boolean;
|
|
11
11
|
/**
|
|
12
12
|
* @remarks
|
|
13
|
-
* The intervention glossary
|
|
13
|
+
* 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.
|
|
14
14
|
*
|
|
15
15
|
* @example
|
|
16
16
|
* glossary_1
|
|
@@ -18,13 +18,13 @@ export declare class ImageTranslationProRequest extends $dara.Model {
|
|
|
18
18
|
glossary?: string;
|
|
19
19
|
/**
|
|
20
20
|
* @remarks
|
|
21
|
-
* The URL of the original image.
|
|
21
|
+
* The URL of the original image. This parameter is required.
|
|
22
22
|
*
|
|
23
23
|
* Image requirements:
|
|
24
24
|
* - Image URL: Must be publicly accessible.
|
|
25
25
|
* - Format: png, jpeg, jpg, bmp, or webp.
|
|
26
|
-
* - Pixels:
|
|
27
|
-
* - File size:
|
|
26
|
+
* - Pixels: The width and height must not exceed 4000 pixels each.
|
|
27
|
+
* - File size: The original file must be 10 MB or smaller.
|
|
28
28
|
*
|
|
29
29
|
* This parameter is required.
|
|
30
30
|
*
|
|
@@ -34,7 +34,7 @@ export declare class ImageTranslationProRequest extends $dara.Model {
|
|
|
34
34
|
imageUrl?: string;
|
|
35
35
|
/**
|
|
36
36
|
* @remarks
|
|
37
|
-
* Specifies whether to translate text on the image subject.
|
|
37
|
+
* 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.
|
|
38
38
|
*
|
|
39
39
|
* @example
|
|
40
40
|
* false
|
|
@@ -42,7 +42,7 @@ export declare class ImageTranslationProRequest extends $dara.Model {
|
|
|
42
42
|
includingProductArea?: boolean;
|
|
43
43
|
/**
|
|
44
44
|
* @remarks
|
|
45
|
-
* The source language code.
|
|
45
|
+
* 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).
|
|
46
46
|
*
|
|
47
47
|
* This parameter is required.
|
|
48
48
|
*
|
|
@@ -52,7 +52,7 @@ export declare class ImageTranslationProRequest extends $dara.Model {
|
|
|
52
52
|
sourceLanguage?: string;
|
|
53
53
|
/**
|
|
54
54
|
* @remarks
|
|
55
|
-
* The target language code.
|
|
55
|
+
* 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).
|
|
56
56
|
*
|
|
57
57
|
* This parameter is required.
|
|
58
58
|
*
|
|
@@ -62,7 +62,7 @@ export declare class ImageTranslationProRequest extends $dara.Model {
|
|
|
62
62
|
targetLanguage?: string;
|
|
63
63
|
/**
|
|
64
64
|
* @remarks
|
|
65
|
-
* Specifies whether to translate brand names on
|
|
65
|
+
* 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.
|
|
66
66
|
*
|
|
67
67
|
* @example
|
|
68
68
|
* false
|
|
@@ -208,7 +208,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextArea
|
|
|
208
208
|
textRect?: ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTextsTextRect;
|
|
209
209
|
/**
|
|
210
210
|
* @remarks
|
|
211
|
-
* Indicates whether the TextItem is valid. The item is invalid if this value does not exist or is false.
|
|
211
|
+
* Indicates whether the TextItem is valid. The item is invalid if this value does not exist or is set to false.
|
|
212
212
|
*
|
|
213
213
|
* @example
|
|
214
214
|
* true
|
|
@@ -255,7 +255,7 @@ export declare class ImageTranslationProResponseBodyDataGenFilesEditInfoTextArea
|
|
|
255
255
|
* The original text before translation.
|
|
256
256
|
*
|
|
257
257
|
* @example
|
|
258
|
-
*
|
|
258
|
+
* Cute Design · Crisp Bell
|
|
259
259
|
*/
|
|
260
260
|
content?: string;
|
|
261
261
|
/**
|
|
@@ -412,7 +412,7 @@ export declare class ImageTranslationProResponseBodyDataGenFiles extends $dara.M
|
|
|
412
412
|
export declare class ImageTranslationProResponseBodyDataResultList extends $dara.Model {
|
|
413
413
|
/**
|
|
414
414
|
* @remarks
|
|
415
|
-
* The URL of the
|
|
415
|
+
* The URL of the image translation result image.
|
|
416
416
|
*
|
|
417
417
|
* @example
|
|
418
418
|
* http://dashscope-a717.oss-cn-beijing.aliyuncs.com/xxx.jpg
|
|
@@ -490,7 +490,7 @@ export declare class ImageTranslationProResponseBody extends $dara.Model {
|
|
|
490
490
|
data?: ImageTranslationProResponseBodyData;
|
|
491
491
|
/**
|
|
492
492
|
* @remarks
|
|
493
|
-
* The error message. "Success"
|
|
493
|
+
* 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."
|
|
494
494
|
*
|
|
495
495
|
* @example
|
|
496
496
|
* Success
|
|
@@ -498,7 +498,7 @@ export declare class ImageTranslationProResponseBody extends $dara.Model {
|
|
|
498
498
|
message?: string;
|
|
499
499
|
/**
|
|
500
500
|
* @remarks
|
|
501
|
-
* The request ID
|
|
501
|
+
* The request ID. Used to uniquely identify a request.
|
|
502
502
|
*
|
|
503
503
|
* @example
|
|
504
504
|
* 61785C32-80C2-19A3-9E55-2C3702C84B40
|
|
@@ -2,7 +2,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
2
2
|
export declare class ImageTranslationStandardRequest extends $dara.Model {
|
|
3
3
|
/**
|
|
4
4
|
* @remarks
|
|
5
|
-
* 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.
|
|
5
|
+
* 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.
|
|
6
6
|
*
|
|
7
7
|
* @example
|
|
8
8
|
* glossary_1
|
|
@@ -12,7 +12,7 @@ export declare class ImageTranslationStandardRequest extends $dara.Model {
|
|
|
12
12
|
* @remarks
|
|
13
13
|
* - Image URL: Must be publicly accessible.
|
|
14
14
|
* - Format: png, jpeg, jpg, bmp, webp
|
|
15
|
-
* - Pixels:
|
|
15
|
+
* - Pixels: Both width and height must not exceed 4000
|
|
16
16
|
* - File size: Original file ≤ 10 MB
|
|
17
17
|
*
|
|
18
18
|
* This parameter is required.
|
|
@@ -23,7 +23,7 @@ export declare class ImageTranslationStandardRequest extends $dara.Model {
|
|
|
23
23
|
imageUrl?: string;
|
|
24
24
|
/**
|
|
25
25
|
* @remarks
|
|
26
|
-
* Specifies whether to translate text on the
|
|
26
|
+
* 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.
|
|
27
27
|
*
|
|
28
28
|
* @example
|
|
29
29
|
* false
|
|
@@ -59,7 +59,7 @@ export declare class ImageTranslationStandardRequest extends $dara.Model {
|
|
|
59
59
|
translatingBrandInTheProduct?: boolean;
|
|
60
60
|
/**
|
|
61
61
|
* @remarks
|
|
62
|
-
* Specifies whether to return layer information such as text position, font, and color. If set to true, layer information is returned
|
|
62
|
+
* 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.
|
|
63
63
|
*
|
|
64
64
|
* @example
|
|
65
65
|
* false
|
|
@@ -385,7 +385,7 @@ export declare class ImageTranslationStandardResponseBodyData extends $dara.Mode
|
|
|
385
385
|
export declare class ImageTranslationStandardResponseBody extends $dara.Model {
|
|
386
386
|
/**
|
|
387
387
|
* @remarks
|
|
388
|
-
* The response code.
|
|
388
|
+
* The response code. 200 indicates success. For other response codes, refer to the error code information.
|
|
389
389
|
*
|
|
390
390
|
* @example
|
|
391
391
|
* 200
|
|
@@ -398,7 +398,7 @@ export declare class ImageTranslationStandardResponseBody extends $dara.Model {
|
|
|
398
398
|
data?: ImageTranslationStandardResponseBodyData;
|
|
399
399
|
/**
|
|
400
400
|
* @remarks
|
|
401
|
-
* The error message. "Success" is returned for successful
|
|
401
|
+
* The error message. "Success" is returned for a successful call. A specific error message is returned for a failed call.
|
|
402
402
|
*
|
|
403
403
|
* @example
|
|
404
404
|
* Success
|
|
@@ -414,7 +414,7 @@ export declare class ImageTranslationStandardResponseBody extends $dara.Model {
|
|
|
414
414
|
requestId?: string;
|
|
415
415
|
/**
|
|
416
416
|
* @remarks
|
|
417
|
-
* Indicates whether the call is successful.
|
|
417
|
+
* Indicates whether the call is successful. true indicates success. false indicates failure.
|
|
418
418
|
*
|
|
419
419
|
* @example
|
|
420
420
|
* true
|
|
@@ -2,7 +2,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
2
2
|
export declare class LanguageDetectRequest extends $dara.Model {
|
|
3
3
|
/**
|
|
4
4
|
* @remarks
|
|
5
|
-
*
|
|
5
|
+
* 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.
|
|
6
6
|
*
|
|
7
7
|
* @example
|
|
8
8
|
* query
|
|
@@ -45,7 +45,7 @@ export declare class LanguageDetectResponseBody extends $dara.Model {
|
|
|
45
45
|
data?: LanguageDetectResponseBodyData;
|
|
46
46
|
/**
|
|
47
47
|
* @remarks
|
|
48
|
-
* The error message. "Success" is returned for a successful call. A specific error message is returned for
|
|
48
|
+
* 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."
|
|
49
49
|
*
|
|
50
50
|
* @example
|
|
51
51
|
* Success
|
|
@@ -53,7 +53,7 @@ export declare class LanguageDetectResponseBody extends $dara.Model {
|
|
|
53
53
|
message?: string;
|
|
54
54
|
/**
|
|
55
55
|
* @remarks
|
|
56
|
-
* The request ID,
|
|
56
|
+
* The request ID, used to uniquely identify a request.
|
|
57
57
|
*
|
|
58
58
|
* @example
|
|
59
59
|
* 42542C6C-F2A4-1B2B-8EFF-130C8FD06F54
|
|
@@ -3,8 +3,8 @@ export declare class TextTranslateRequest extends $dara.Model {
|
|
|
3
3
|
/**
|
|
4
4
|
* @remarks
|
|
5
5
|
* This field represents your identity and facilitates communication for various issues.
|
|
6
|
-
* ● If you are an internal
|
|
7
|
-
* ● If you are an external Alibaba partner,
|
|
6
|
+
* ● If you are an Alibaba internal organization, specify a value based on your actual scenario, such as BU name-product or BU name-chat.
|
|
7
|
+
* ● 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.
|
|
8
8
|
*
|
|
9
9
|
* @example
|
|
10
10
|
* MyCompany-Chat
|
|
@@ -12,7 +12,7 @@ export declare class TextTranslateRequest extends $dara.Model {
|
|
|
12
12
|
bizName?: string;
|
|
13
13
|
/**
|
|
14
14
|
* @remarks
|
|
15
|
-
* The format type of the source text. This parameter is optional. Valid values: text (plain text format) and html (web page format
|
|
15
|
+
* 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).
|
|
16
16
|
*
|
|
17
17
|
* @example
|
|
18
18
|
* text
|
|
@@ -28,7 +28,7 @@ export declare class TextTranslateRequest extends $dara.Model {
|
|
|
28
28
|
glossary?: string;
|
|
29
29
|
/**
|
|
30
30
|
* @remarks
|
|
31
|
-
* The source language code. If not specified, the language is automatically detected.
|
|
31
|
+
* 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 pairs, see [Language pair mapping table](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
|
|
32
32
|
*
|
|
33
33
|
* @example
|
|
34
34
|
* auto
|
|
@@ -36,7 +36,7 @@ export declare class TextTranslateRequest extends $dara.Model {
|
|
|
36
36
|
sourceLanguage?: string;
|
|
37
37
|
/**
|
|
38
38
|
* @remarks
|
|
39
|
-
* The list of texts to
|
|
39
|
+
* 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.
|
|
40
40
|
*
|
|
41
41
|
* This parameter is required.
|
|
42
42
|
*
|
|
@@ -56,7 +56,7 @@ export declare class TextTranslateRequest extends $dara.Model {
|
|
|
56
56
|
targetLanguage?: string;
|
|
57
57
|
/**
|
|
58
58
|
* @remarks
|
|
59
|
-
* 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.
|
|
59
|
+
* 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.
|
|
60
60
|
* Valid values:
|
|
61
61
|
* ● e-commerce-title: cross-border e-commerce product title translation
|
|
62
62
|
* ● e-commerce-description: cross-border e-commerce product description translation
|
|
@@ -43,7 +43,7 @@ export declare class TextTranslateResponseBodyData extends $dara.Model {
|
|
|
43
43
|
translations?: TextTranslateResponseBodyDataTranslations[];
|
|
44
44
|
/**
|
|
45
45
|
* @remarks
|
|
46
|
-
* The usage information, including the input
|
|
46
|
+
* The usage information, including the number of input characters.
|
|
47
47
|
*
|
|
48
48
|
* @example
|
|
49
49
|
* {"InputCharacterCount":5}
|
|
@@ -65,7 +65,7 @@ export declare class TextTranslateResponseBodyData extends $dara.Model {
|
|
|
65
65
|
export declare class TextTranslateResponseBody extends $dara.Model {
|
|
66
66
|
/**
|
|
67
67
|
* @remarks
|
|
68
|
-
* The response code.
|
|
68
|
+
* The response code. The value "success" is returned for successful calls.
|
|
69
69
|
*
|
|
70
70
|
* @example
|
|
71
71
|
* success
|
|
@@ -78,7 +78,7 @@ export declare class TextTranslateResponseBody extends $dara.Model {
|
|
|
78
78
|
data?: TextTranslateResponseBodyData;
|
|
79
79
|
/**
|
|
80
80
|
* @remarks
|
|
81
|
-
* The error message.
|
|
81
|
+
* The error message. The value "Success" is returned for successful calls. For exceptions, a specific error message is returned, such as "The parameters contain sensitive information. Try other input."
|
|
82
82
|
*
|
|
83
83
|
* @example
|
|
84
84
|
* Success
|
|
@@ -86,7 +86,7 @@ export declare class TextTranslateResponseBody extends $dara.Model {
|
|
|
86
86
|
message?: string;
|
|
87
87
|
/**
|
|
88
88
|
* @remarks
|
|
89
|
-
* The request ID,
|
|
89
|
+
* The request ID, which uniquely identifies a single API call.
|
|
90
90
|
*
|
|
91
91
|
* @example
|
|
92
92
|
* 922E43BB-EE0E-1A29-B143-BB91BB3EA6AB
|
|
@@ -94,7 +94,7 @@ export declare class TextTranslateResponseBody extends $dara.Model {
|
|
|
94
94
|
requestId?: string;
|
|
95
95
|
/**
|
|
96
96
|
* @remarks
|
|
97
|
-
* Indicates whether the call is successful. true indicates success. false indicates failure.
|
|
97
|
+
* Indicates whether the call is successful. A value of true indicates success. A value of false indicates failure.
|
|
98
98
|
*
|
|
99
99
|
* @example
|
|
100
100
|
* true
|