@alicloud/aidge20260428 4.0.0 → 5.1.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.
Files changed (54) hide show
  1. package/dist/client.d.ts +165 -49
  2. package/dist/client.js +248 -49
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/DocumentTranslateRequest.d.ts +2 -2
  5. package/dist/models/DocumentTranslateResponseBody.d.ts +1 -1
  6. package/dist/models/ImageTranslationPlusRequest.d.ts +75 -0
  7. package/dist/models/ImageTranslationPlusRequest.js +70 -0
  8. package/dist/models/ImageTranslationPlusRequest.js.map +1 -0
  9. package/dist/models/ImageTranslationPlusResponse.d.ts +19 -0
  10. package/dist/models/ImageTranslationPlusResponse.js +69 -0
  11. package/dist/models/ImageTranslationPlusResponse.js.map +1 -0
  12. package/dist/models/ImageTranslationPlusResponseBody.d.ts +72 -0
  13. package/dist/models/ImageTranslationPlusResponseBody.js +88 -0
  14. package/dist/models/ImageTranslationPlusResponseBody.js.map +1 -0
  15. package/dist/models/QueryAsyncTaskResultResponseBody.d.ts +1 -1
  16. package/dist/models/QueryAsyncTaskResultResponseBody.js +1 -1
  17. package/dist/models/QueryAsyncTaskResultResponseBody.js.map +1 -1
  18. package/dist/models/VideoGenerationRequest.d.ts +107 -0
  19. package/dist/models/VideoGenerationRequest.js +144 -0
  20. package/dist/models/VideoGenerationRequest.js.map +1 -0
  21. package/dist/models/VideoGenerationResponse.d.ts +19 -0
  22. package/dist/models/VideoGenerationResponse.js +69 -0
  23. package/dist/models/VideoGenerationResponse.js.map +1 -0
  24. package/dist/models/VideoGenerationResponseBody.d.ts +54 -0
  25. package/dist/models/VideoGenerationResponseBody.js +93 -0
  26. package/dist/models/VideoGenerationResponseBody.js.map +1 -0
  27. package/dist/models/VideoGenerationShrinkRequest.d.ts +24 -0
  28. package/dist/models/VideoGenerationShrinkRequest.js +62 -0
  29. package/dist/models/VideoGenerationShrinkRequest.js.map +1 -0
  30. package/dist/models/VideoTranslationRequest.d.ts +9 -0
  31. package/dist/models/VideoTranslationRequest.js.map +1 -1
  32. package/dist/models/VideoTranslationResponseBody.d.ts +19 -0
  33. package/dist/models/VideoTranslationResponseBody.js.map +1 -1
  34. package/dist/models/VideoTranslationShrinkRequest.d.ts +9 -0
  35. package/dist/models/VideoTranslationShrinkRequest.js.map +1 -1
  36. package/dist/models/model.d.ts +12 -0
  37. package/dist/models/model.js +27 -3
  38. package/dist/models/model.js.map +1 -1
  39. package/package.json +1 -1
  40. package/src/client.ts +266 -50
  41. package/src/models/DocumentTranslateRequest.ts +2 -2
  42. package/src/models/DocumentTranslateResponseBody.ts +1 -1
  43. package/src/models/ImageTranslationPlusRequest.ts +100 -0
  44. package/src/models/ImageTranslationPlusResponse.ts +40 -0
  45. package/src/models/ImageTranslationPlusResponseBody.ts +106 -0
  46. package/src/models/QueryAsyncTaskResultResponseBody.ts +2 -2
  47. package/src/models/VideoGenerationRequest.ts +177 -0
  48. package/src/models/VideoGenerationResponse.ts +40 -0
  49. package/src/models/VideoGenerationResponseBody.ts +91 -0
  50. package/src/models/VideoGenerationShrinkRequest.ts +41 -0
  51. package/src/models/VideoTranslationRequest.ts +9 -0
  52. package/src/models/VideoTranslationResponseBody.ts +19 -0
  53. package/src/models/VideoTranslationShrinkRequest.ts +9 -0
  54. package/src/models/model.ts +12 -0
@@ -0,0 +1,75 @@
1
+ import * as $dara from '@darabonba/typescript';
2
+ export declare class ImageTranslationPlusRequest extends $dara.Model {
3
+ /**
4
+ * @remarks
5
+ * The ID of the intervention glossary. This parameter is optional.
6
+ *
7
+ * @example
8
+ * glossary-001
9
+ */
10
+ glossary?: string;
11
+ /**
12
+ * @remarks
13
+ * The URL of the original image. This parameter is required.
14
+ *
15
+ * This parameter is required.
16
+ *
17
+ * @example
18
+ * https://img.alicdn.com/example.png
19
+ */
20
+ imageUrl?: string;
21
+ /**
22
+ * @remarks
23
+ * Specifies whether to translate text on the product body. This parameter is optional. Default value: false.
24
+ *
25
+ * @example
26
+ * false
27
+ */
28
+ includingProductArea?: boolean;
29
+ /**
30
+ * @remarks
31
+ * The source language. This parameter is required.
32
+ *
33
+ * This parameter is required.
34
+ *
35
+ * @example
36
+ * zh
37
+ */
38
+ sourceLanguage?: string;
39
+ /**
40
+ * @remarks
41
+ * The target language. This parameter is required.
42
+ *
43
+ * This parameter is required.
44
+ *
45
+ * @example
46
+ * en
47
+ */
48
+ targetLanguage?: string;
49
+ /**
50
+ * @remarks
51
+ * Specifies whether to translate brand text on the product. This parameter is optional. Default value: false.
52
+ *
53
+ * @example
54
+ * false
55
+ */
56
+ translatingBrandInTheProduct?: boolean;
57
+ /**
58
+ * @remarks
59
+ * Specifies whether to use the image translation editor protocol. This parameter is optional.
60
+ *
61
+ * @example
62
+ * false
63
+ */
64
+ useImageEditor?: boolean;
65
+ static names(): {
66
+ [key: string]: string;
67
+ };
68
+ static types(): {
69
+ [key: string]: any;
70
+ };
71
+ validate(): void;
72
+ constructor(map?: {
73
+ [key: string]: any;
74
+ });
75
+ }
@@ -0,0 +1,70 @@
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.ImageTranslationPlusRequest = void 0;
37
+ // This file is auto-generated, don't edit it
38
+ const $dara = __importStar(require("@darabonba/typescript"));
39
+ class ImageTranslationPlusRequest extends $dara.Model {
40
+ static names() {
41
+ return {
42
+ glossary: 'Glossary',
43
+ imageUrl: 'ImageUrl',
44
+ includingProductArea: 'IncludingProductArea',
45
+ sourceLanguage: 'SourceLanguage',
46
+ targetLanguage: 'TargetLanguage',
47
+ translatingBrandInTheProduct: 'TranslatingBrandInTheProduct',
48
+ useImageEditor: 'UseImageEditor',
49
+ };
50
+ }
51
+ static types() {
52
+ return {
53
+ glossary: 'string',
54
+ imageUrl: 'string',
55
+ includingProductArea: 'boolean',
56
+ sourceLanguage: 'string',
57
+ targetLanguage: 'string',
58
+ translatingBrandInTheProduct: 'boolean',
59
+ useImageEditor: 'boolean',
60
+ };
61
+ }
62
+ validate() {
63
+ super.validate();
64
+ }
65
+ constructor(map) {
66
+ super(map);
67
+ }
68
+ }
69
+ exports.ImageTranslationPlusRequest = ImageTranslationPlusRequest;
70
+ //# sourceMappingURL=ImageTranslationPlusRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ImageTranslationPlusRequest.js","sourceRoot":"","sources":["../../src/models/ImageTranslationPlusRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,2BAA4B,SAAQ,KAAK,CAAC,KAAK;IA+D1D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,UAAU;YACpB,QAAQ,EAAE,UAAU;YACpB,oBAAoB,EAAE,sBAAsB;YAC5C,cAAc,EAAE,gBAAgB;YAChC,cAAc,EAAE,gBAAgB;YAChC,4BAA4B,EAAE,8BAA8B;YAC5D,cAAc,EAAE,gBAAgB;SACjC,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,QAAQ;YAClB,oBAAoB,EAAE,SAAS;YAC/B,cAAc,EAAE,QAAQ;YACxB,cAAc,EAAE,QAAQ;YACxB,4BAA4B,EAAE,SAAS;YACvC,cAAc,EAAE,SAAS;SAC1B,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;AA9FD,kEA8FC"}
@@ -0,0 +1,19 @@
1
+ import * as $dara from '@darabonba/typescript';
2
+ import { ImageTranslationPlusResponseBody } from "./ImageTranslationPlusResponseBody";
3
+ export declare class ImageTranslationPlusResponse extends $dara.Model {
4
+ headers?: {
5
+ [key: string]: string;
6
+ };
7
+ statusCode?: number;
8
+ body?: ImageTranslationPlusResponseBody;
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.ImageTranslationPlusResponse = void 0;
37
+ // This file is auto-generated, don't edit it
38
+ const $dara = __importStar(require("@darabonba/typescript"));
39
+ const ImageTranslationPlusResponseBody_1 = require("./ImageTranslationPlusResponseBody");
40
+ class ImageTranslationPlusResponse 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: ImageTranslationPlusResponseBody_1.ImageTranslationPlusResponseBody,
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.ImageTranslationPlusResponse = ImageTranslationPlusResponse;
69
+ //# sourceMappingURL=ImageTranslationPlusResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ImageTranslationPlusResponse.js","sourceRoot":"","sources":["../../src/models/ImageTranslationPlusResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,yFAAsF;AAGtF,MAAa,4BAA6B,SAAQ,KAAK,CAAC,KAAK;IAI3D,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,mEAAgC;SACvC,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,oEAiCC"}
@@ -0,0 +1,72 @@
1
+ import * as $dara from '@darabonba/typescript';
2
+ export declare class ImageTranslationPlusResponseBodyData extends $dara.Model {
3
+ /**
4
+ * @remarks
5
+ * The asynchronous task ID. Use the queryTaskResult API to poll for results.
6
+ *
7
+ * @example
8
+ * task-abc123
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 ImageTranslationPlusResponseBody extends $dara.Model {
23
+ /**
24
+ * @remarks
25
+ * The error code. This parameter is not returned if the call is successful.
26
+ *
27
+ * @example
28
+ * 200
29
+ */
30
+ code?: string;
31
+ /**
32
+ * @remarks
33
+ * The submit status of the asynchronous task.
34
+ */
35
+ data?: ImageTranslationPlusResponseBodyData;
36
+ /**
37
+ * @remarks
38
+ * The error message. This parameter is not returned if the call is successful.
39
+ *
40
+ * @example
41
+ * OK
42
+ */
43
+ message?: string;
44
+ /**
45
+ * @remarks
46
+ * Id of the request
47
+ *
48
+ * @example
49
+ * E1AD60F1-BAC7-546B-9533-E7AD02B16E3F
50
+ */
51
+ requestId?: string;
52
+ /**
53
+ * @remarks
54
+ * Indicates whether the call is successful. Valid values:
55
+ * - true: The call is successful.
56
+ * - false: The call failed.
57
+ *
58
+ * @example
59
+ * True
60
+ */
61
+ success?: boolean;
62
+ static names(): {
63
+ [key: string]: string;
64
+ };
65
+ static types(): {
66
+ [key: string]: any;
67
+ };
68
+ validate(): void;
69
+ constructor(map?: {
70
+ [key: string]: any;
71
+ });
72
+ }
@@ -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.ImageTranslationPlusResponseBody = exports.ImageTranslationPlusResponseBodyData = void 0;
37
+ // This file is auto-generated, don't edit it
38
+ const $dara = __importStar(require("@darabonba/typescript"));
39
+ class ImageTranslationPlusResponseBodyData 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.ImageTranslationPlusResponseBodyData = ImageTranslationPlusResponseBodyData;
58
+ class ImageTranslationPlusResponseBody 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: ImageTranslationPlusResponseBodyData,
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.ImageTranslationPlusResponseBody = ImageTranslationPlusResponseBody;
88
+ //# sourceMappingURL=ImageTranslationPlusResponseBody.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ImageTranslationPlusResponseBody.js","sourceRoot":"","sources":["../../src/models/ImageTranslationPlusResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,oCAAqC,SAAQ,KAAK,CAAC,KAAK;IASnE,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,oFA4BC;AAED,MAAa,gCAAiC,SAAQ,KAAK,CAAC,KAAK;IAwC/D,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,oCAAoC;YAC1C,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;AAtED,4EAsEC"}
@@ -29,7 +29,7 @@ export declare class QueryAsyncTaskResultResponseBodyData extends $dara.Model {
29
29
  * The usage information.
30
30
  */
31
31
  usageMap?: {
32
- [key: string]: number;
32
+ [key: string]: any;
33
33
  };
34
34
  static names(): {
35
35
  [key: string]: string;
@@ -50,7 +50,7 @@ class QueryAsyncTaskResultResponseBodyData extends $dara.Model {
50
50
  result: 'string',
51
51
  status: 'string',
52
52
  taskId: 'string',
53
- usageMap: { 'type': 'map', 'keyType': 'string', 'valueType': 'number' },
53
+ usageMap: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
54
54
  };
55
55
  }
56
56
  validate() {
@@ -1 +1 @@
1
- {"version":3,"file":"QueryAsyncTaskResultResponseBody.js","sourceRoot":"","sources":["../../src/models/QueryAsyncTaskResultResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,oCAAqC,SAAQ,KAAK,CAAC,KAAK;IA8BnE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;SACxE,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,QAAQ,EAAE,CAAC;YACjB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACzC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA1DD,oFA0DC;AAED,MAAa,gCAAiC,SAAQ,KAAK,CAAC,KAAK;IAwC/D,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,oCAAoC;YAC1C,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;AAtED,4EAsEC"}
1
+ {"version":3,"file":"QueryAsyncTaskResultResponseBody.js","sourceRoot":"","sources":["../../src/models/QueryAsyncTaskResultResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,oCAAqC,SAAQ,KAAK,CAAC,KAAK;IA8BnE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,KAAK,EAAE;SACrE,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,QAAQ,EAAE,CAAC;YACjB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACzC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA1DD,oFA0DC;AAED,MAAa,gCAAiC,SAAQ,KAAK,CAAC,KAAK;IAwC/D,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,oCAAoC;YAC1C,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;AAtED,4EAsEC"}
@@ -0,0 +1,107 @@
1
+ import * as $dara from '@darabonba/typescript';
2
+ export declare class VideoGenerationRequestInput extends $dara.Model {
3
+ extra?: {
4
+ [key: string]: any;
5
+ };
6
+ /**
7
+ * @remarks
8
+ * This parameter is required.
9
+ */
10
+ images?: string[];
11
+ /**
12
+ * @remarks
13
+ * This parameter is required.
14
+ *
15
+ * @example
16
+ * 2026 New Slimming Women\\"s Summer Dress with Mid-Length Design, High-Quality Waist Definition for a Slender Look
17
+ */
18
+ title?: string;
19
+ static names(): {
20
+ [key: string]: string;
21
+ };
22
+ static types(): {
23
+ [key: string]: any;
24
+ };
25
+ validate(): void;
26
+ constructor(map?: {
27
+ [key: string]: any;
28
+ });
29
+ }
30
+ export declare class VideoGenerationRequestIntent extends $dara.Model {
31
+ /**
32
+ * @example
33
+ * -
34
+ */
35
+ channel?: string;
36
+ /**
37
+ * @example
38
+ * -
39
+ */
40
+ goal?: string;
41
+ static names(): {
42
+ [key: string]: string;
43
+ };
44
+ static types(): {
45
+ [key: string]: any;
46
+ };
47
+ validate(): void;
48
+ constructor(map?: {
49
+ [key: string]: any;
50
+ });
51
+ }
52
+ export declare class VideoGenerationRequestOutput extends $dara.Model {
53
+ /**
54
+ * @remarks
55
+ * This parameter is required.
56
+ *
57
+ * @example
58
+ * 10
59
+ */
60
+ duration?: number;
61
+ /**
62
+ * @remarks
63
+ * This parameter is required.
64
+ *
65
+ * @example
66
+ * 1080p
67
+ */
68
+ quality?: string;
69
+ /**
70
+ * @example
71
+ * 9:16
72
+ */
73
+ ratio?: string;
74
+ static names(): {
75
+ [key: string]: string;
76
+ };
77
+ static types(): {
78
+ [key: string]: any;
79
+ };
80
+ validate(): void;
81
+ constructor(map?: {
82
+ [key: string]: any;
83
+ });
84
+ }
85
+ export declare class VideoGenerationRequest extends $dara.Model {
86
+ /**
87
+ * @remarks
88
+ * This parameter is required.
89
+ */
90
+ input?: VideoGenerationRequestInput;
91
+ intent?: VideoGenerationRequestIntent;
92
+ /**
93
+ * @remarks
94
+ * This parameter is required.
95
+ */
96
+ output?: VideoGenerationRequestOutput;
97
+ static names(): {
98
+ [key: string]: string;
99
+ };
100
+ static types(): {
101
+ [key: string]: any;
102
+ };
103
+ validate(): void;
104
+ constructor(map?: {
105
+ [key: string]: any;
106
+ });
107
+ }
@@ -0,0 +1,144 @@
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.VideoGenerationRequest = exports.VideoGenerationRequestOutput = exports.VideoGenerationRequestIntent = exports.VideoGenerationRequestInput = void 0;
37
+ // This file is auto-generated, don't edit it
38
+ const $dara = __importStar(require("@darabonba/typescript"));
39
+ class VideoGenerationRequestInput extends $dara.Model {
40
+ static names() {
41
+ return {
42
+ extra: 'Extra',
43
+ images: 'Images',
44
+ title: 'Title',
45
+ };
46
+ }
47
+ static types() {
48
+ return {
49
+ extra: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
50
+ images: { 'type': 'array', 'itemType': 'string' },
51
+ title: 'string',
52
+ };
53
+ }
54
+ validate() {
55
+ if (this.extra) {
56
+ $dara.Model.validateMap(this.extra);
57
+ }
58
+ if (Array.isArray(this.images)) {
59
+ $dara.Model.validateArray(this.images);
60
+ }
61
+ super.validate();
62
+ }
63
+ constructor(map) {
64
+ super(map);
65
+ }
66
+ }
67
+ exports.VideoGenerationRequestInput = VideoGenerationRequestInput;
68
+ class VideoGenerationRequestIntent extends $dara.Model {
69
+ static names() {
70
+ return {
71
+ channel: 'Channel',
72
+ goal: 'Goal',
73
+ };
74
+ }
75
+ static types() {
76
+ return {
77
+ channel: 'string',
78
+ goal: 'string',
79
+ };
80
+ }
81
+ validate() {
82
+ super.validate();
83
+ }
84
+ constructor(map) {
85
+ super(map);
86
+ }
87
+ }
88
+ exports.VideoGenerationRequestIntent = VideoGenerationRequestIntent;
89
+ class VideoGenerationRequestOutput extends $dara.Model {
90
+ static names() {
91
+ return {
92
+ duration: 'Duration',
93
+ quality: 'Quality',
94
+ ratio: 'Ratio',
95
+ };
96
+ }
97
+ static types() {
98
+ return {
99
+ duration: 'number',
100
+ quality: 'string',
101
+ ratio: 'string',
102
+ };
103
+ }
104
+ validate() {
105
+ super.validate();
106
+ }
107
+ constructor(map) {
108
+ super(map);
109
+ }
110
+ }
111
+ exports.VideoGenerationRequestOutput = VideoGenerationRequestOutput;
112
+ class VideoGenerationRequest extends $dara.Model {
113
+ static names() {
114
+ return {
115
+ input: 'Input',
116
+ intent: 'Intent',
117
+ output: 'Output',
118
+ };
119
+ }
120
+ static types() {
121
+ return {
122
+ input: VideoGenerationRequestInput,
123
+ intent: VideoGenerationRequestIntent,
124
+ output: VideoGenerationRequestOutput,
125
+ };
126
+ }
127
+ validate() {
128
+ if (this.input && typeof this.input.validate === 'function') {
129
+ this.input.validate();
130
+ }
131
+ if (this.intent && typeof this.intent.validate === 'function') {
132
+ this.intent.validate();
133
+ }
134
+ if (this.output && typeof this.output.validate === 'function') {
135
+ this.output.validate();
136
+ }
137
+ super.validate();
138
+ }
139
+ constructor(map) {
140
+ super(map);
141
+ }
142
+ }
143
+ exports.VideoGenerationRequest = VideoGenerationRequest;
144
+ //# sourceMappingURL=VideoGenerationRequest.js.map