@alicloud/aidge20260428 5.1.0 → 5.3.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 (70) hide show
  1. package/dist/client.d.ts +183 -54
  2. package/dist/client.js +303 -54
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/DiduiAreaDeductionRequest.d.ts +105 -0
  5. package/dist/models/DiduiAreaDeductionRequest.js +116 -0
  6. package/dist/models/DiduiAreaDeductionRequest.js.map +1 -0
  7. package/dist/models/DiduiAreaDeductionResponse.d.ts +19 -0
  8. package/dist/models/DiduiAreaDeductionResponse.js +69 -0
  9. package/dist/models/DiduiAreaDeductionResponse.js.map +1 -0
  10. package/dist/models/DiduiAreaDeductionResponseBody.d.ts +139 -0
  11. package/dist/models/DiduiAreaDeductionResponseBody.js +159 -0
  12. package/dist/models/DiduiAreaDeductionResponseBody.js.map +1 -0
  13. package/dist/models/DiduiAreaDeductionShrinkRequest.d.ts +36 -0
  14. package/dist/models/DiduiAreaDeductionShrinkRequest.js +64 -0
  15. package/dist/models/DiduiAreaDeductionShrinkRequest.js.map +1 -0
  16. package/dist/models/ImageTranslationPlusResponseBody.d.ts +4 -6
  17. package/dist/models/ImageTranslationPlusResponseBody.js.map +1 -1
  18. package/dist/models/PrepaidTextTranslateRequest.d.ts +73 -0
  19. package/dist/models/PrepaidTextTranslateRequest.js +73 -0
  20. package/dist/models/PrepaidTextTranslateRequest.js.map +1 -0
  21. package/dist/models/PrepaidTextTranslateResponse.d.ts +19 -0
  22. package/dist/models/PrepaidTextTranslateResponse.js +69 -0
  23. package/dist/models/PrepaidTextTranslateResponse.js.map +1 -0
  24. package/dist/models/PrepaidTextTranslateResponseBody.d.ts +110 -0
  25. package/dist/models/PrepaidTextTranslateResponseBody.js +119 -0
  26. package/dist/models/PrepaidTextTranslateResponseBody.js.map +1 -0
  27. package/dist/models/PrepaidTextTranslateShrinkRequest.d.ts +73 -0
  28. package/dist/models/PrepaidTextTranslateShrinkRequest.js +70 -0
  29. package/dist/models/PrepaidTextTranslateShrinkRequest.js.map +1 -0
  30. package/dist/models/ProductHotspotDetectionRequest.d.ts +38 -0
  31. package/dist/models/ProductHotspotDetectionRequest.js +65 -0
  32. package/dist/models/ProductHotspotDetectionRequest.js.map +1 -0
  33. package/dist/models/ProductHotspotDetectionResponse.d.ts +19 -0
  34. package/dist/models/ProductHotspotDetectionResponse.js +69 -0
  35. package/dist/models/ProductHotspotDetectionResponse.js.map +1 -0
  36. package/dist/models/ProductHotspotDetectionResponseBody.d.ts +154 -0
  37. package/dist/models/ProductHotspotDetectionResponseBody.js +147 -0
  38. package/dist/models/ProductHotspotDetectionResponseBody.js.map +1 -0
  39. package/dist/models/ProductHotspotDetectionShrinkRequest.d.ts +38 -0
  40. package/dist/models/ProductHotspotDetectionShrinkRequest.js +62 -0
  41. package/dist/models/ProductHotspotDetectionShrinkRequest.js.map +1 -0
  42. package/dist/models/VideoGenerationRequest.d.ts +71 -0
  43. package/dist/models/VideoGenerationRequest.js +31 -1
  44. package/dist/models/VideoGenerationRequest.js.map +1 -1
  45. package/dist/models/VideoGenerationResponseBody.d.ts +23 -0
  46. package/dist/models/VideoGenerationResponseBody.js.map +1 -1
  47. package/dist/models/VideoGenerationShrinkRequest.d.ts +8 -0
  48. package/dist/models/VideoGenerationShrinkRequest.js.map +1 -1
  49. package/dist/models/model.d.ts +23 -0
  50. package/dist/models/model.js +55 -8
  51. package/dist/models/model.js.map +1 -1
  52. package/package.json +1 -1
  53. package/src/client.ts +326 -54
  54. package/src/models/DiduiAreaDeductionRequest.ts +158 -0
  55. package/src/models/DiduiAreaDeductionResponse.ts +40 -0
  56. package/src/models/DiduiAreaDeductionResponseBody.ts +224 -0
  57. package/src/models/DiduiAreaDeductionShrinkRequest.ts +55 -0
  58. package/src/models/ImageTranslationPlusResponseBody.ts +4 -6
  59. package/src/models/PrepaidTextTranslateRequest.ts +101 -0
  60. package/src/models/PrepaidTextTranslateResponse.ts +40 -0
  61. package/src/models/PrepaidTextTranslateResponseBody.ts +164 -0
  62. package/src/models/PrepaidTextTranslateShrinkRequest.ts +98 -0
  63. package/src/models/ProductHotspotDetectionRequest.ts +58 -0
  64. package/src/models/ProductHotspotDetectionResponse.ts +40 -0
  65. package/src/models/ProductHotspotDetectionResponseBody.ts +227 -0
  66. package/src/models/ProductHotspotDetectionShrinkRequest.ts +55 -0
  67. package/src/models/VideoGenerationRequest.ts +92 -0
  68. package/src/models/VideoGenerationResponseBody.ts +23 -0
  69. package/src/models/VideoGenerationShrinkRequest.ts +8 -0
  70. package/src/models/model.ts +23 -0
@@ -0,0 +1,154 @@
1
+ import * as $dara from '@darabonba/typescript';
2
+ export declare class ProductHotspotDetectionResponseBodyDataProductsBoxes extends $dara.Model {
3
+ /**
4
+ * @remarks
5
+ * The bottom boundary of the bounding box.
6
+ *
7
+ * @example
8
+ * 947
9
+ */
10
+ bottom?: number;
11
+ /**
12
+ * @remarks
13
+ * The left boundary of the bounding box.
14
+ *
15
+ * @example
16
+ * 280
17
+ */
18
+ left?: number;
19
+ /**
20
+ * @remarks
21
+ * The right boundary of the bounding box.
22
+ *
23
+ * @example
24
+ * 743
25
+ */
26
+ right?: number;
27
+ /**
28
+ * @remarks
29
+ * The top boundary of the bounding box.
30
+ *
31
+ * @example
32
+ * 965
33
+ */
34
+ top?: number;
35
+ static names(): {
36
+ [key: string]: string;
37
+ };
38
+ static types(): {
39
+ [key: string]: any;
40
+ };
41
+ validate(): void;
42
+ constructor(map?: {
43
+ [key: string]: any;
44
+ });
45
+ }
46
+ export declare class ProductHotspotDetectionResponseBodyDataProducts extends $dara.Model {
47
+ /**
48
+ * @remarks
49
+ * The bounding boxes of the product instances.
50
+ */
51
+ boxes?: ProductHotspotDetectionResponseBodyDataProductsBoxes[];
52
+ /**
53
+ * @remarks
54
+ * The product name.
55
+ *
56
+ * @example
57
+ * Beige metal chain-embellished Mary Jane flats
58
+ */
59
+ label?: string;
60
+ /**
61
+ * @remarks
62
+ * The product ID generated by the workflow.
63
+ *
64
+ * @example
65
+ * product_1
66
+ */
67
+ productId?: string;
68
+ static names(): {
69
+ [key: string]: string;
70
+ };
71
+ static types(): {
72
+ [key: string]: any;
73
+ };
74
+ validate(): void;
75
+ constructor(map?: {
76
+ [key: string]: any;
77
+ });
78
+ }
79
+ export declare class ProductHotspotDetectionResponseBodyData extends $dara.Model {
80
+ /**
81
+ * @remarks
82
+ * The list of recognized products and their bounding boxes.
83
+ */
84
+ products?: ProductHotspotDetectionResponseBodyDataProducts[];
85
+ /**
86
+ * @remarks
87
+ * The usage information.
88
+ *
89
+ * @example
90
+ * {"ProcessingCount":1}
91
+ */
92
+ usageMap?: {
93
+ [key: string]: number;
94
+ };
95
+ static names(): {
96
+ [key: string]: string;
97
+ };
98
+ static types(): {
99
+ [key: string]: any;
100
+ };
101
+ validate(): void;
102
+ constructor(map?: {
103
+ [key: string]: any;
104
+ });
105
+ }
106
+ export declare class ProductHotspotDetectionResponseBody extends $dara.Model {
107
+ /**
108
+ * @remarks
109
+ * The error code.
110
+ *
111
+ * @example
112
+ * success
113
+ */
114
+ code?: string;
115
+ /**
116
+ * @remarks
117
+ * The product hotzone recognition result.
118
+ */
119
+ data?: ProductHotspotDetectionResponseBodyData;
120
+ /**
121
+ * @remarks
122
+ * The error message.
123
+ *
124
+ * @example
125
+ * Success
126
+ */
127
+ message?: string;
128
+ /**
129
+ * @remarks
130
+ * Id of the request
131
+ *
132
+ * @example
133
+ * E1AD60F1-BAC7-546B-9533-E7AD02B16E3F
134
+ */
135
+ requestId?: string;
136
+ /**
137
+ * @remarks
138
+ * Indicates whether the call was successful.
139
+ *
140
+ * @example
141
+ * True
142
+ */
143
+ success?: boolean;
144
+ static names(): {
145
+ [key: string]: string;
146
+ };
147
+ static types(): {
148
+ [key: string]: any;
149
+ };
150
+ validate(): void;
151
+ constructor(map?: {
152
+ [key: string]: any;
153
+ });
154
+ }
@@ -0,0 +1,147 @@
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.ProductHotspotDetectionResponseBody = exports.ProductHotspotDetectionResponseBodyData = exports.ProductHotspotDetectionResponseBodyDataProducts = exports.ProductHotspotDetectionResponseBodyDataProductsBoxes = void 0;
37
+ // This file is auto-generated, don't edit it
38
+ const $dara = __importStar(require("@darabonba/typescript"));
39
+ class ProductHotspotDetectionResponseBodyDataProductsBoxes extends $dara.Model {
40
+ static names() {
41
+ return {
42
+ bottom: 'Bottom',
43
+ left: 'Left',
44
+ right: 'Right',
45
+ top: 'Top',
46
+ };
47
+ }
48
+ static types() {
49
+ return {
50
+ bottom: 'number',
51
+ left: 'number',
52
+ right: 'number',
53
+ top: 'number',
54
+ };
55
+ }
56
+ validate() {
57
+ super.validate();
58
+ }
59
+ constructor(map) {
60
+ super(map);
61
+ }
62
+ }
63
+ exports.ProductHotspotDetectionResponseBodyDataProductsBoxes = ProductHotspotDetectionResponseBodyDataProductsBoxes;
64
+ class ProductHotspotDetectionResponseBodyDataProducts extends $dara.Model {
65
+ static names() {
66
+ return {
67
+ boxes: 'Boxes',
68
+ label: 'Label',
69
+ productId: 'ProductId',
70
+ };
71
+ }
72
+ static types() {
73
+ return {
74
+ boxes: { 'type': 'array', 'itemType': ProductHotspotDetectionResponseBodyDataProductsBoxes },
75
+ label: 'string',
76
+ productId: 'string',
77
+ };
78
+ }
79
+ validate() {
80
+ if (Array.isArray(this.boxes)) {
81
+ $dara.Model.validateArray(this.boxes);
82
+ }
83
+ super.validate();
84
+ }
85
+ constructor(map) {
86
+ super(map);
87
+ }
88
+ }
89
+ exports.ProductHotspotDetectionResponseBodyDataProducts = ProductHotspotDetectionResponseBodyDataProducts;
90
+ class ProductHotspotDetectionResponseBodyData extends $dara.Model {
91
+ static names() {
92
+ return {
93
+ products: 'Products',
94
+ usageMap: 'UsageMap',
95
+ };
96
+ }
97
+ static types() {
98
+ return {
99
+ products: { 'type': 'array', 'itemType': ProductHotspotDetectionResponseBodyDataProducts },
100
+ usageMap: { 'type': 'map', 'keyType': 'string', 'valueType': 'number' },
101
+ };
102
+ }
103
+ validate() {
104
+ if (Array.isArray(this.products)) {
105
+ $dara.Model.validateArray(this.products);
106
+ }
107
+ if (this.usageMap) {
108
+ $dara.Model.validateMap(this.usageMap);
109
+ }
110
+ super.validate();
111
+ }
112
+ constructor(map) {
113
+ super(map);
114
+ }
115
+ }
116
+ exports.ProductHotspotDetectionResponseBodyData = ProductHotspotDetectionResponseBodyData;
117
+ class ProductHotspotDetectionResponseBody extends $dara.Model {
118
+ static names() {
119
+ return {
120
+ code: 'Code',
121
+ data: 'Data',
122
+ message: 'Message',
123
+ requestId: 'RequestId',
124
+ success: 'Success',
125
+ };
126
+ }
127
+ static types() {
128
+ return {
129
+ code: 'string',
130
+ data: ProductHotspotDetectionResponseBodyData,
131
+ message: 'string',
132
+ requestId: 'string',
133
+ success: 'boolean',
134
+ };
135
+ }
136
+ validate() {
137
+ if (this.data && typeof this.data.validate === 'function') {
138
+ this.data.validate();
139
+ }
140
+ super.validate();
141
+ }
142
+ constructor(map) {
143
+ super(map);
144
+ }
145
+ }
146
+ exports.ProductHotspotDetectionResponseBody = ProductHotspotDetectionResponseBody;
147
+ //# sourceMappingURL=ProductHotspotDetectionResponseBody.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProductHotspotDetectionResponseBody.js","sourceRoot":"","sources":["../../src/models/ProductHotspotDetectionResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,oDAAqD,SAAQ,KAAK,CAAC,KAAK;IAiCnF,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;YAChB,IAAI,EAAE,MAAM;YACZ,KAAK,EAAE,OAAO;YACd,GAAG,EAAE,KAAK;SACX,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;YAChB,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,QAAQ;YACf,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;AA1DD,oHA0DC;AAED,MAAa,+CAAgD,SAAQ,KAAK,CAAC,KAAK;IAsB9E,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,OAAO;YACd,KAAK,EAAE,OAAO;YACd,SAAS,EAAE,WAAW;SACvB,CAAC;IACJ,CAAC;IAED,MA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KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAzCD,0FAyCC;AAED,MAAa,mCAAoC,SAAQ,KAAK,CAAC,KAAK;IAsClE,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,uCAAuC;YAC7C,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,kFAoEC"}
@@ -0,0 +1,38 @@
1
+ import * as $dara from '@darabonba/typescript';
2
+ export declare class ProductHotspotDetectionShrinkRequest extends $dara.Model {
3
+ /**
4
+ * @remarks
5
+ * The HTTPS URLs of reference images that define the SKU whitelist. A maximum of 20 images are supported.
6
+ *
7
+ * This parameter is required.
8
+ */
9
+ referenceImageUrlsShrink?: string;
10
+ /**
11
+ * @remarks
12
+ * The unique business ID for this single-scene call.
13
+ *
14
+ * @example
15
+ * hotspot-request-001
16
+ */
17
+ reqId?: string;
18
+ /**
19
+ * @remarks
20
+ * The HTTPS OSS or CDN URL of the target image to be annotated with bounding boxes.
21
+ *
22
+ * This parameter is required.
23
+ *
24
+ * @example
25
+ * https://example.com/scene.jpg
26
+ */
27
+ targetImageUrl?: string;
28
+ static names(): {
29
+ [key: string]: string;
30
+ };
31
+ static types(): {
32
+ [key: string]: any;
33
+ };
34
+ validate(): void;
35
+ constructor(map?: {
36
+ [key: string]: any;
37
+ });
38
+ }
@@ -0,0 +1,62 @@
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.ProductHotspotDetectionShrinkRequest = void 0;
37
+ // This file is auto-generated, don't edit it
38
+ const $dara = __importStar(require("@darabonba/typescript"));
39
+ class ProductHotspotDetectionShrinkRequest extends $dara.Model {
40
+ static names() {
41
+ return {
42
+ referenceImageUrlsShrink: 'ReferenceImageUrls',
43
+ reqId: 'ReqId',
44
+ targetImageUrl: 'TargetImageUrl',
45
+ };
46
+ }
47
+ static types() {
48
+ return {
49
+ referenceImageUrlsShrink: 'string',
50
+ reqId: 'string',
51
+ targetImageUrl: 'string',
52
+ };
53
+ }
54
+ validate() {
55
+ super.validate();
56
+ }
57
+ constructor(map) {
58
+ super(map);
59
+ }
60
+ }
61
+ exports.ProductHotspotDetectionShrinkRequest = ProductHotspotDetectionShrinkRequest;
62
+ //# sourceMappingURL=ProductHotspotDetectionShrinkRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProductHotspotDetectionShrinkRequest.js","sourceRoot":"","sources":["../../src/models/ProductHotspotDetectionShrinkRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,oCAAqC,SAAQ,KAAK,CAAC,KAAK;IA0BnE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,wBAAwB,EAAE,oBAAoB;YAC9C,KAAK,EAAE,OAAO;YACd,cAAc,EAAE,gBAAgB;SACjC,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,wBAAwB,EAAE,QAAQ;YAClC,KAAK,EAAE,QAAQ;YACf,cAAc,EAAE,QAAQ;SACzB,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;AAjDD,oFAiDC"}
@@ -1,15 +1,60 @@
1
1
  import * as $dara from '@darabonba/typescript';
2
+ export declare class VideoGenerationRequestInputAssetBindings extends $dara.Model {
3
+ /**
4
+ * @remarks
5
+ * The asset index.
6
+ *
7
+ * @example
8
+ * 0
9
+ */
10
+ assetIndex?: number;
11
+ /**
12
+ * @remarks
13
+ * The natural language description of the asset.
14
+ */
15
+ description?: string;
16
+ /**
17
+ * @remarks
18
+ * Valid values:
19
+ * - look_reference: appearance reference.
20
+ * - scene_reference: scene reference.
21
+ */
22
+ slot?: string;
23
+ static names(): {
24
+ [key: string]: string;
25
+ };
26
+ static types(): {
27
+ [key: string]: any;
28
+ };
29
+ validate(): void;
30
+ constructor(map?: {
31
+ [key: string]: any;
32
+ });
33
+ }
2
34
  export declare class VideoGenerationRequestInput extends $dara.Model {
35
+ /**
36
+ * @remarks
37
+ * Specifies the purpose and description of images by asset index.
38
+ */
39
+ assetBindings?: VideoGenerationRequestInputAssetBindings[];
40
+ /**
41
+ * @remarks
42
+ * The extended information.
43
+ */
3
44
  extra?: {
4
45
  [key: string]: any;
5
46
  };
6
47
  /**
7
48
  * @remarks
49
+ * The list of product image URLs (1 to 6 images). The URLs must be publicly accessible.
50
+ *
8
51
  * This parameter is required.
9
52
  */
10
53
  images?: string[];
11
54
  /**
12
55
  * @remarks
56
+ * The product title. A maximum of the first 60 characters are used.
57
+ *
13
58
  * This parameter is required.
14
59
  *
15
60
  * @example
@@ -29,15 +74,26 @@ export declare class VideoGenerationRequestInput extends $dara.Model {
29
74
  }
30
75
  export declare class VideoGenerationRequestIntent extends $dara.Model {
31
76
  /**
77
+ * @remarks
78
+ * The distribution channel.
79
+ *
32
80
  * @example
33
81
  * -
34
82
  */
35
83
  channel?: string;
36
84
  /**
85
+ * @remarks
86
+ * The business goal.
87
+ *
37
88
  * @example
38
89
  * -
39
90
  */
40
91
  goal?: string;
92
+ /**
93
+ * @remarks
94
+ * Required when goal is set to scripted_video.
95
+ */
96
+ script?: string;
41
97
  static names(): {
42
98
  [key: string]: string;
43
99
  };
@@ -52,6 +108,8 @@ export declare class VideoGenerationRequestIntent extends $dara.Model {
52
108
  export declare class VideoGenerationRequestOutput extends $dara.Model {
53
109
  /**
54
110
  * @remarks
111
+ * The video duration in seconds. Currently supports integers between 5 and 15. More options will be available in the future.
112
+ *
55
113
  * This parameter is required.
56
114
  *
57
115
  * @example
@@ -60,6 +118,8 @@ export declare class VideoGenerationRequestOutput extends $dara.Model {
60
118
  duration?: number;
61
119
  /**
62
120
  * @remarks
121
+ * The output resolution.
122
+ *
63
123
  * This parameter is required.
64
124
  *
65
125
  * @example
@@ -67,6 +127,9 @@ export declare class VideoGenerationRequestOutput extends $dara.Model {
67
127
  */
68
128
  quality?: string;
69
129
  /**
130
+ * @remarks
131
+ * The video aspect ratio.
132
+ *
70
133
  * @example
71
134
  * 9:16
72
135
  */
@@ -85,12 +148,20 @@ export declare class VideoGenerationRequestOutput extends $dara.Model {
85
148
  export declare class VideoGenerationRequest extends $dara.Model {
86
149
  /**
87
150
  * @remarks
151
+ * The product input.
152
+ *
88
153
  * This parameter is required.
89
154
  */
90
155
  input?: VideoGenerationRequestInput;
156
+ /**
157
+ * @remarks
158
+ * The intent parameters. Currently unavailable.
159
+ */
91
160
  intent?: VideoGenerationRequestIntent;
92
161
  /**
93
162
  * @remarks
163
+ * The output parameters.
164
+ *
94
165
  * This parameter is required.
95
166
  */
96
167
  output?: VideoGenerationRequestOutput;
@@ -33,12 +33,36 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.VideoGenerationRequest = exports.VideoGenerationRequestOutput = exports.VideoGenerationRequestIntent = exports.VideoGenerationRequestInput = void 0;
36
+ exports.VideoGenerationRequest = exports.VideoGenerationRequestOutput = exports.VideoGenerationRequestIntent = exports.VideoGenerationRequestInput = exports.VideoGenerationRequestInputAssetBindings = void 0;
37
37
  // This file is auto-generated, don't edit it
38
38
  const $dara = __importStar(require("@darabonba/typescript"));
39
+ class VideoGenerationRequestInputAssetBindings extends $dara.Model {
40
+ static names() {
41
+ return {
42
+ assetIndex: 'AssetIndex',
43
+ description: 'Description',
44
+ slot: 'Slot',
45
+ };
46
+ }
47
+ static types() {
48
+ return {
49
+ assetIndex: 'number',
50
+ description: 'string',
51
+ slot: 'string',
52
+ };
53
+ }
54
+ validate() {
55
+ super.validate();
56
+ }
57
+ constructor(map) {
58
+ super(map);
59
+ }
60
+ }
61
+ exports.VideoGenerationRequestInputAssetBindings = VideoGenerationRequestInputAssetBindings;
39
62
  class VideoGenerationRequestInput extends $dara.Model {
40
63
  static names() {
41
64
  return {
65
+ assetBindings: 'AssetBindings',
42
66
  extra: 'Extra',
43
67
  images: 'Images',
44
68
  title: 'Title',
@@ -46,12 +70,16 @@ class VideoGenerationRequestInput extends $dara.Model {
46
70
  }
47
71
  static types() {
48
72
  return {
73
+ assetBindings: { 'type': 'array', 'itemType': VideoGenerationRequestInputAssetBindings },
49
74
  extra: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
50
75
  images: { 'type': 'array', 'itemType': 'string' },
51
76
  title: 'string',
52
77
  };
53
78
  }
54
79
  validate() {
80
+ if (Array.isArray(this.assetBindings)) {
81
+ $dara.Model.validateArray(this.assetBindings);
82
+ }
55
83
  if (this.extra) {
56
84
  $dara.Model.validateMap(this.extra);
57
85
  }
@@ -70,12 +98,14 @@ class VideoGenerationRequestIntent extends $dara.Model {
70
98
  return {
71
99
  channel: 'Channel',
72
100
  goal: 'Goal',
101
+ script: 'Script',
73
102
  };
74
103
  }
75
104
  static types() {
76
105
  return {
77
106
  channel: 'string',
78
107
  goal: 'string',
108
+ script: 'string',
79
109
  };
80
110
  }
81
111
  validate() {
@@ -1 +1 @@
1
- {"version":3,"file":"VideoGenerationRequest.js","sourceRoot":"","sources":["../../src/models/VideoGenerationRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,2BAA4B,SAAQ,KAAK,CAAC,KAAK;IAe1D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,OAAO;YACd,MAAM,EAAE,QAAQ;YAChB,KAAK,EAAE,OAAO;SACf,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,EAAE,MAAM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C,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AApDD,oEAoDC;AAED,MAAa,sBAAuB,SAAQ,KAAK,CAAC,KAAK;IAoBrD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,OAAO;YACd,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,KAAK,EAAE,2BAA2B;YAClC,MAAM,EAAE,4BAA4B;YACpC,MAAM,EAAE,4BAA4B;SACrC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,KAAK,IAAI,OAAQ,IAAI,CAAC,KAAa,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACnE,IAAI,CAAC,KAAa,CAAC,QAAQ,EAAE,CAAC;QACjC,CAAC;QACD,IAAG,IAAI,CAAC,MAAM,IAAI,OAAQ,IAAI,CAAC,MAAc,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACrE,IAAI,CAAC,MAAc,CAAC,QAAQ,EAAE,CAAC;QAClC,CAAC;QACD,IAAG,IAAI,CAAC,MAAM,IAAI,OAAQ,IAAI,CAAC,MAAc,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACrE,IAAI,CAAC,MAAc,CAAC,QAAQ,EAAE,CAAC;QAClC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AApDD,wDAoDC"}
@@ -1,10 +1,17 @@
1
1
  import * as $dara from '@darabonba/typescript';
2
2
  export declare class VideoGenerationResponseBodyData extends $dara.Model {
3
3
  /**
4
+ * @remarks
5
+ * The downstream task ID.
6
+ *
4
7
  * @example
5
8
  * 778fa8bd21804828a5d147050e30edac
6
9
  */
7
10
  taskId?: string;
11
+ /**
12
+ * @remarks
13
+ * The metering usage information.
14
+ */
8
15
  usageMap?: {
9
16
  [key: string]: number;
10
17
  };
@@ -21,22 +28,38 @@ export declare class VideoGenerationResponseBodyData extends $dara.Model {
21
28
  }
22
29
  export declare class VideoGenerationResponseBody extends $dara.Model {
23
30
  /**
31
+ * @remarks
32
+ * The response code. A value of success indicates a successful call, and failed indicates a failure.
33
+ *
24
34
  * @example
25
35
  * success
26
36
  */
27
37
  code?: string;
38
+ /**
39
+ * @remarks
40
+ * The struct of the returned result.
41
+ */
28
42
  data?: VideoGenerationResponseBodyData;
29
43
  /**
44
+ * @remarks
45
+ * The returned message. Returns the fault message upon failure.
46
+ *
30
47
  * @example
31
48
  * Success
32
49
  */
33
50
  message?: string;
34
51
  /**
52
+ * @remarks
53
+ * The request ID, used to identify a unique request call.
54
+ *
35
55
  * @example
36
56
  * 70CBEFDF-BB17-1EB3-8A21-569F3124738F
37
57
  */
38
58
  requestId?: string;
39
59
  /**
60
+ * @remarks
61
+ * Indicates whether the call is successful. A value of true indicates success, and false indicates failure.
62
+ *
40
63
  * @example
41
64
  * true
42
65
  */