@alicloud/aidge20260428 3.1.1 → 5.0.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 (72) hide show
  1. package/dist/client.d.ts +148 -118
  2. package/dist/client.js +222 -118
  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/ImageTranslationProRequest.d.ts +11 -8
  7. package/dist/models/ImageTranslationProRequest.js.map +1 -1
  8. package/dist/models/ImageTranslationProResponseBody.d.ts +16 -24
  9. package/dist/models/ImageTranslationProResponseBody.js +0 -2
  10. package/dist/models/ImageTranslationProResponseBody.js.map +1 -1
  11. package/dist/models/ImageTranslationStandardRequest.d.ts +6 -9
  12. package/dist/models/ImageTranslationStandardRequest.js.map +1 -1
  13. package/dist/models/ImageTranslationStandardResponseBody.d.ts +6 -14
  14. package/dist/models/ImageTranslationStandardResponseBody.js +0 -2
  15. package/dist/models/ImageTranslationStandardResponseBody.js.map +1 -1
  16. package/dist/models/MerchandisePlacementDetectionRequest.d.ts +47 -0
  17. package/dist/models/MerchandisePlacementDetectionRequest.js +64 -0
  18. package/dist/models/MerchandisePlacementDetectionRequest.js.map +1 -0
  19. package/dist/models/MerchandisePlacementDetectionResponse.d.ts +19 -0
  20. package/dist/models/MerchandisePlacementDetectionResponse.js +69 -0
  21. package/dist/models/MerchandisePlacementDetectionResponse.js.map +1 -0
  22. package/dist/models/MerchandisePlacementDetectionResponseBody.d.ts +210 -0
  23. package/dist/models/MerchandisePlacementDetectionResponseBody.js +182 -0
  24. package/dist/models/MerchandisePlacementDetectionResponseBody.js.map +1 -0
  25. package/dist/models/QueryAsyncTaskResultResponseBody.d.ts +4 -4
  26. package/dist/models/QueryAsyncTaskResultResponseBody.js +1 -1
  27. package/dist/models/QueryAsyncTaskResultResponseBody.js.map +1 -1
  28. package/dist/models/TextTranslateRequest.d.ts +7 -7
  29. package/dist/models/TextTranslateShrinkRequest.d.ts +7 -7
  30. package/dist/models/VideoGenerationRequest.d.ts +86 -0
  31. package/dist/models/VideoGenerationRequest.js +144 -0
  32. package/dist/models/VideoGenerationRequest.js.map +1 -0
  33. package/dist/models/VideoGenerationResponse.d.ts +19 -0
  34. package/dist/models/VideoGenerationResponse.js +69 -0
  35. package/dist/models/VideoGenerationResponse.js.map +1 -0
  36. package/dist/models/VideoGenerationResponseBody.d.ts +50 -0
  37. package/dist/models/VideoGenerationResponseBody.js +93 -0
  38. package/dist/models/VideoGenerationResponseBody.js.map +1 -0
  39. package/dist/models/VideoGenerationShrinkRequest.d.ts +24 -0
  40. package/dist/models/VideoGenerationShrinkRequest.js +62 -0
  41. package/dist/models/VideoGenerationShrinkRequest.js.map +1 -0
  42. package/dist/models/VideoTranslationRequest.d.ts +9 -0
  43. package/dist/models/VideoTranslationRequest.js.map +1 -1
  44. package/dist/models/VideoTranslationResponseBody.d.ts +19 -0
  45. package/dist/models/VideoTranslationResponseBody.js.map +1 -1
  46. package/dist/models/VideoTranslationShrinkRequest.d.ts +9 -0
  47. package/dist/models/VideoTranslationShrinkRequest.js.map +1 -1
  48. package/dist/models/model.d.ts +15 -0
  49. package/dist/models/model.js +33 -3
  50. package/dist/models/model.js.map +1 -1
  51. package/package.json +1 -1
  52. package/src/client.ts +236 -118
  53. package/src/models/DocumentTranslateRequest.ts +2 -2
  54. package/src/models/DocumentTranslateResponseBody.ts +1 -1
  55. package/src/models/ImageTranslationProRequest.ts +11 -8
  56. package/src/models/ImageTranslationProResponseBody.ts +16 -26
  57. package/src/models/ImageTranslationStandardRequest.ts +6 -9
  58. package/src/models/ImageTranslationStandardResponseBody.ts +6 -16
  59. package/src/models/MerchandisePlacementDetectionRequest.ts +66 -0
  60. package/src/models/MerchandisePlacementDetectionResponse.ts +40 -0
  61. package/src/models/MerchandisePlacementDetectionResponseBody.ts +309 -0
  62. package/src/models/QueryAsyncTaskResultResponseBody.ts +5 -5
  63. package/src/models/TextTranslateRequest.ts +7 -7
  64. package/src/models/TextTranslateShrinkRequest.ts +7 -7
  65. package/src/models/VideoGenerationRequest.ts +156 -0
  66. package/src/models/VideoGenerationResponse.ts +40 -0
  67. package/src/models/VideoGenerationResponseBody.ts +87 -0
  68. package/src/models/VideoGenerationShrinkRequest.ts +41 -0
  69. package/src/models/VideoTranslationRequest.ts +9 -0
  70. package/src/models/VideoTranslationResponseBody.ts +19 -0
  71. package/src/models/VideoTranslationShrinkRequest.ts +9 -0
  72. package/src/models/model.ts +15 -0
@@ -0,0 +1,309 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class MerchandisePlacementDetectionResponseBodyDataDataTop1 extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The similarity score, ranging from 0 to 1.
9
+ *
10
+ * @example
11
+ * 0.53
12
+ */
13
+ score?: number;
14
+ /**
15
+ * @remarks
16
+ * The ID of the recalled product.
17
+ *
18
+ * @example
19
+ * 123
20
+ */
21
+ skuId?: string;
22
+ /**
23
+ * @remarks
24
+ * The name of the recalled product.
25
+ *
26
+ * @example
27
+ * Bright Milk 500ml.
28
+ */
29
+ skuName?: string;
30
+ static names(): { [key: string]: string } {
31
+ return {
32
+ score: 'Score',
33
+ skuId: 'SkuId',
34
+ skuName: 'SkuName',
35
+ };
36
+ }
37
+
38
+ static types(): { [key: string]: any } {
39
+ return {
40
+ score: 'number',
41
+ skuId: 'string',
42
+ skuName: 'string',
43
+ };
44
+ }
45
+
46
+ validate() {
47
+ super.validate();
48
+ }
49
+
50
+ constructor(map?: { [key: string]: any }) {
51
+ super(map);
52
+ }
53
+ }
54
+
55
+ export class MerchandisePlacementDetectionResponseBodyDataDataTopk extends $dara.Model {
56
+ /**
57
+ * @remarks
58
+ * The recall rank.
59
+ *
60
+ * @example
61
+ * 1
62
+ */
63
+ rank?: number;
64
+ /**
65
+ * @remarks
66
+ * The similarity score, ranging from 0 to 1.
67
+ *
68
+ * @example
69
+ * 0.82
70
+ */
71
+ score?: number;
72
+ /**
73
+ * @remarks
74
+ * The ID of the recalled product.
75
+ *
76
+ * @example
77
+ * 123
78
+ */
79
+ skuId?: string;
80
+ /**
81
+ * @remarks
82
+ * The name of the recalled product.
83
+ *
84
+ * @example
85
+ * Bright Milk 500ml.
86
+ */
87
+ skuName?: string;
88
+ static names(): { [key: string]: string } {
89
+ return {
90
+ rank: 'Rank',
91
+ score: 'Score',
92
+ skuId: 'SkuId',
93
+ skuName: 'SkuName',
94
+ };
95
+ }
96
+
97
+ static types(): { [key: string]: any } {
98
+ return {
99
+ rank: 'number',
100
+ score: 'number',
101
+ skuId: 'string',
102
+ skuName: 'string',
103
+ };
104
+ }
105
+
106
+ validate() {
107
+ super.validate();
108
+ }
109
+
110
+ constructor(map?: { [key: string]: any }) {
111
+ super(map);
112
+ }
113
+ }
114
+
115
+ export class MerchandisePlacementDetectionResponseBodyDataData extends $dara.Model {
116
+ /**
117
+ * @remarks
118
+ * The position coordinates of the detection box in the format [x1,y1,x2,y2].
119
+ */
120
+ bbox?: number[];
121
+ /**
122
+ * @remarks
123
+ * The failure reason for the detection box. The value is null if the detection is successful.
124
+ *
125
+ * @example
126
+ * "embedding failed"
127
+ */
128
+ error?: string;
129
+ /**
130
+ * @remarks
131
+ * The index of the detection box.
132
+ *
133
+ * @example
134
+ * 1
135
+ */
136
+ idx?: number;
137
+ /**
138
+ * @remarks
139
+ * The top-1 recalled product for the detection box.
140
+ */
141
+ top1?: MerchandisePlacementDetectionResponseBodyDataDataTop1;
142
+ /**
143
+ * @remarks
144
+ * The list of top-K recalled products for the detection box.
145
+ */
146
+ topk?: MerchandisePlacementDetectionResponseBodyDataDataTopk[];
147
+ static names(): { [key: string]: string } {
148
+ return {
149
+ bbox: 'Bbox',
150
+ error: 'Error',
151
+ idx: 'Idx',
152
+ top1: 'Top1',
153
+ topk: 'Topk',
154
+ };
155
+ }
156
+
157
+ static types(): { [key: string]: any } {
158
+ return {
159
+ bbox: { 'type': 'array', 'itemType': 'number' },
160
+ error: 'string',
161
+ idx: 'number',
162
+ top1: MerchandisePlacementDetectionResponseBodyDataDataTop1,
163
+ topk: { 'type': 'array', 'itemType': MerchandisePlacementDetectionResponseBodyDataDataTopk },
164
+ };
165
+ }
166
+
167
+ validate() {
168
+ if(Array.isArray(this.bbox)) {
169
+ $dara.Model.validateArray(this.bbox);
170
+ }
171
+ if(this.top1 && typeof (this.top1 as any).validate === 'function') {
172
+ (this.top1 as any).validate();
173
+ }
174
+ if(Array.isArray(this.topk)) {
175
+ $dara.Model.validateArray(this.topk);
176
+ }
177
+ super.validate();
178
+ }
179
+
180
+ constructor(map?: { [key: string]: any }) {
181
+ super(map);
182
+ }
183
+ }
184
+
185
+ export class MerchandisePlacementDetectionResponseBodyData extends $dara.Model {
186
+ /**
187
+ * @remarks
188
+ * The number of valid detection boxes.
189
+ *
190
+ * @example
191
+ * 100
192
+ */
193
+ boxCount?: number;
194
+ /**
195
+ * @remarks
196
+ * The list of retrieval details for each detection box.
197
+ */
198
+ data?: MerchandisePlacementDetectionResponseBodyDataData[];
199
+ /**
200
+ * @remarks
201
+ * The usage information. The key is the usage metric name, and the value is the count.
202
+ *
203
+ * @example
204
+ * {"ProcessingCount":1}
205
+ */
206
+ usageMap?: { [key: string]: number };
207
+ static names(): { [key: string]: string } {
208
+ return {
209
+ boxCount: 'BoxCount',
210
+ data: 'Data',
211
+ usageMap: 'UsageMap',
212
+ };
213
+ }
214
+
215
+ static types(): { [key: string]: any } {
216
+ return {
217
+ boxCount: 'number',
218
+ data: { 'type': 'array', 'itemType': MerchandisePlacementDetectionResponseBodyDataData },
219
+ usageMap: { 'type': 'map', 'keyType': 'string', 'valueType': 'number' },
220
+ };
221
+ }
222
+
223
+ validate() {
224
+ if(Array.isArray(this.data)) {
225
+ $dara.Model.validateArray(this.data);
226
+ }
227
+ if(this.usageMap) {
228
+ $dara.Model.validateMap(this.usageMap);
229
+ }
230
+ super.validate();
231
+ }
232
+
233
+ constructor(map?: { [key: string]: any }) {
234
+ super(map);
235
+ }
236
+ }
237
+
238
+ export class MerchandisePlacementDetectionResponseBody extends $dara.Model {
239
+ /**
240
+ * @remarks
241
+ * The error code. This parameter is not returned if the call is successful.
242
+ *
243
+ * @example
244
+ * 200
245
+ */
246
+ code?: string;
247
+ /**
248
+ * @remarks
249
+ * The display detection result.
250
+ */
251
+ data?: MerchandisePlacementDetectionResponseBodyData;
252
+ /**
253
+ * @remarks
254
+ * The error message. This parameter is not returned if the call is successful.
255
+ *
256
+ * @example
257
+ * OK
258
+ */
259
+ message?: string;
260
+ /**
261
+ * @remarks
262
+ * Id of the request
263
+ *
264
+ * @example
265
+ * E1AD60F1-BAC7-546B-9533-E7AD02B16E3F
266
+ */
267
+ requestId?: string;
268
+ /**
269
+ * @remarks
270
+ * Indicates whether the call is successful. Valid values:
271
+ * - true: The call is successful.
272
+ * - false: The call failed.
273
+ *
274
+ * @example
275
+ * True
276
+ */
277
+ success?: boolean;
278
+ static names(): { [key: string]: string } {
279
+ return {
280
+ code: 'Code',
281
+ data: 'Data',
282
+ message: 'Message',
283
+ requestId: 'RequestId',
284
+ success: 'Success',
285
+ };
286
+ }
287
+
288
+ static types(): { [key: string]: any } {
289
+ return {
290
+ code: 'string',
291
+ data: MerchandisePlacementDetectionResponseBodyData,
292
+ message: 'string',
293
+ requestId: 'string',
294
+ success: 'boolean',
295
+ };
296
+ }
297
+
298
+ validate() {
299
+ if(this.data && typeof (this.data as any).validate === 'function') {
300
+ (this.data as any).validate();
301
+ }
302
+ super.validate();
303
+ }
304
+
305
+ constructor(map?: { [key: string]: any }) {
306
+ super(map);
307
+ }
308
+ }
309
+
@@ -13,7 +13,7 @@ export class QueryAsyncTaskResultResponseBodyData extends $dara.Model {
13
13
  result?: string;
14
14
  /**
15
15
  * @remarks
16
- * The task status.
16
+ * The status of the task.
17
17
  *
18
18
  * @example
19
19
  * COMPLETED
@@ -21,7 +21,7 @@ export class QueryAsyncTaskResultResponseBodyData extends $dara.Model {
21
21
  status?: string;
22
22
  /**
23
23
  * @remarks
24
- * The downstream task ID.
24
+ * The ID of the downstream task.
25
25
  *
26
26
  * @example
27
27
  * task-xxxxx
@@ -31,7 +31,7 @@ export class QueryAsyncTaskResultResponseBodyData extends $dara.Model {
31
31
  * @remarks
32
32
  * The usage information.
33
33
  */
34
- usageMap?: { [key: string]: number };
34
+ usageMap?: { [key: string]: any };
35
35
  static names(): { [key: string]: string } {
36
36
  return {
37
37
  result: 'Result',
@@ -46,7 +46,7 @@ export class QueryAsyncTaskResultResponseBodyData extends $dara.Model {
46
46
  result: 'string',
47
47
  status: 'string',
48
48
  taskId: 'string',
49
- usageMap: { 'type': 'map', 'keyType': 'string', 'valueType': 'number' },
49
+ usageMap: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
50
50
  };
51
51
  }
52
52
 
@@ -73,7 +73,7 @@ export class QueryAsyncTaskResultResponseBody extends $dara.Model {
73
73
  code?: string;
74
74
  /**
75
75
  * @remarks
76
- * The asynchronous task result.
76
+ * The asynchronous node result.
77
77
  */
78
78
  data?: QueryAsyncTaskResultResponseBodyData;
79
79
  /**
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class TextTranslateRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The business scenario identifier. Optional. Valid values: e-commerce-title, e-commerce-description, e-commerce-chat, e-commerce-cpv, novel, game. If not specified or invalid, the general translation strategy is used by default.
8
+ * The business scenario identifier. This parameter is optional. Valid values: e-commerce-title, e-commerce-description, e-commerce-chat, e-commerce-cpv, novel, game. If not specified or invalid, the general translation strategy is used by default.
9
9
  *
10
10
  * @example
11
11
  * MyCompany-Chat
@@ -13,7 +13,7 @@ export class TextTranslateRequest extends $dara.Model {
13
13
  bizName?: string;
14
14
  /**
15
15
  * @remarks
16
- * The format type of the source text. Optional. Supports text (plain text format) and html (web page format, preserving HTML tags).
16
+ * The format type of the source text. This parameter is optional. Valid values: text (plain text format) and html (web page format that preserves HTML tags).
17
17
  *
18
18
  * @example
19
19
  * text
@@ -21,7 +21,7 @@ export class TextTranslateRequest extends $dara.Model {
21
21
  formatType?: string;
22
22
  /**
23
23
  * @remarks
24
- * The intervention glossary ID. Optional. The glossary must be created separately in the console and its ID provided. If the glossary ID is empty, the translation result is not modified.
24
+ * The intervention glossary ID. This parameter is optional. The glossary must be created separately in the console, and its ID must be provided. If the glossary ID is empty, the translation result is not modified.
25
25
  *
26
26
  * @example
27
27
  * glossary_1
@@ -29,7 +29,7 @@ export class TextTranslateRequest extends $dara.Model {
29
29
  glossary?: string;
30
30
  /**
31
31
  * @remarks
32
- * The source language code. Optional. If not specified, the language is automatically detected. You can pass auto for language detection.
32
+ * The source language code. This parameter is optional. If not specified, the language is automatically detected. You can pass auto for language detection.
33
33
  *
34
34
  * @example
35
35
  * auto
@@ -37,7 +37,7 @@ export class TextTranslateRequest extends $dara.Model {
37
37
  sourceLanguage?: string;
38
38
  /**
39
39
  * @remarks
40
- * The list of texts to translate. Required. The total character length cannot exceed 50,000, and the list length cannot exceed 50.
40
+ * 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.
41
41
  *
42
42
  * This parameter is required.
43
43
  *
@@ -47,7 +47,7 @@ export class TextTranslateRequest extends $dara.Model {
47
47
  sourceTextList?: string[];
48
48
  /**
49
49
  * @remarks
50
- * The target language code. Required. Supports more than 100 language directions. For details, refer to the supported language directions list.
50
+ * The target language code. This parameter is required. More than 100 language directions are supported. For details, refer to the supported language directions list.
51
51
  *
52
52
  * This parameter is required.
53
53
  *
@@ -57,7 +57,7 @@ export class TextTranslateRequest extends $dara.Model {
57
57
  targetLanguage?: string;
58
58
  /**
59
59
  * @remarks
60
- * The format of the translation text. **html** (web page format. This setting processes both the source text and translated text in HTML format). **text** (text format. This setting processes both the source text and translated result as plain text without format processing).
60
+ * The format of the translation text. **html** (web page format. This setting processes both the source text and translated text in HTML format) or **text** (text format. This setting processes both the source text and translated result as plain text without format processing).
61
61
  *
62
62
  * @example
63
63
  * e-commerce-title
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class TextTranslateShrinkRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The business scenario identifier. Optional. Valid values: e-commerce-title, e-commerce-description, e-commerce-chat, e-commerce-cpv, novel, game. If not specified or invalid, the general translation strategy is used by default.
8
+ * The business scenario identifier. This parameter is optional. Valid values: e-commerce-title, e-commerce-description, e-commerce-chat, e-commerce-cpv, novel, game. If not specified or invalid, the general translation strategy is used by default.
9
9
  *
10
10
  * @example
11
11
  * MyCompany-Chat
@@ -13,7 +13,7 @@ export class TextTranslateShrinkRequest extends $dara.Model {
13
13
  bizName?: string;
14
14
  /**
15
15
  * @remarks
16
- * The format type of the source text. Optional. Supports text (plain text format) and html (web page format, preserving HTML tags).
16
+ * The format type of the source text. This parameter is optional. Valid values: text (plain text format) and html (web page format that preserves HTML tags).
17
17
  *
18
18
  * @example
19
19
  * text
@@ -21,7 +21,7 @@ export class TextTranslateShrinkRequest extends $dara.Model {
21
21
  formatType?: string;
22
22
  /**
23
23
  * @remarks
24
- * The intervention glossary ID. Optional. The glossary must be created separately in the console and its ID provided. If the glossary ID is empty, the translation result is not modified.
24
+ * The intervention glossary ID. This parameter is optional. The glossary must be created separately in the console, and its ID must be provided. If the glossary ID is empty, the translation result is not modified.
25
25
  *
26
26
  * @example
27
27
  * glossary_1
@@ -29,7 +29,7 @@ export class TextTranslateShrinkRequest extends $dara.Model {
29
29
  glossary?: string;
30
30
  /**
31
31
  * @remarks
32
- * The source language code. Optional. If not specified, the language is automatically detected. You can pass auto for language detection.
32
+ * The source language code. This parameter is optional. If not specified, the language is automatically detected. You can pass auto for language detection.
33
33
  *
34
34
  * @example
35
35
  * auto
@@ -37,7 +37,7 @@ export class TextTranslateShrinkRequest extends $dara.Model {
37
37
  sourceLanguage?: string;
38
38
  /**
39
39
  * @remarks
40
- * The list of texts to translate. Required. The total character length cannot exceed 50,000, and the list length cannot exceed 50.
40
+ * 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.
41
41
  *
42
42
  * This parameter is required.
43
43
  *
@@ -47,7 +47,7 @@ export class TextTranslateShrinkRequest extends $dara.Model {
47
47
  sourceTextListShrink?: string;
48
48
  /**
49
49
  * @remarks
50
- * The target language code. Required. Supports more than 100 language directions. For details, refer to the supported language directions list.
50
+ * The target language code. This parameter is required. More than 100 language directions are supported. For details, refer to the supported language directions list.
51
51
  *
52
52
  * This parameter is required.
53
53
  *
@@ -57,7 +57,7 @@ export class TextTranslateShrinkRequest extends $dara.Model {
57
57
  targetLanguage?: string;
58
58
  /**
59
59
  * @remarks
60
- * The format of the translation text. **html** (web page format. This setting processes both the source text and translated text in HTML format). **text** (text format. This setting processes both the source text and translated result as plain text without format processing).
60
+ * The format of the translation text. **html** (web page format. This setting processes both the source text and translated text in HTML format) or **text** (text format. This setting processes both the source text and translated result as plain text without format processing).
61
61
  *
62
62
  * @example
63
63
  * e-commerce-title
@@ -0,0 +1,156 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class VideoGenerationRequestInput extends $dara.Model {
6
+ extra?: { [key: string]: any };
7
+ /**
8
+ * @remarks
9
+ * This parameter is required.
10
+ */
11
+ images?: string[];
12
+ /**
13
+ * @remarks
14
+ * This parameter is required.
15
+ */
16
+ title?: string;
17
+ static names(): { [key: string]: string } {
18
+ return {
19
+ extra: 'Extra',
20
+ images: 'Images',
21
+ title: 'Title',
22
+ };
23
+ }
24
+
25
+ static types(): { [key: string]: any } {
26
+ return {
27
+ extra: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
28
+ images: { 'type': 'array', 'itemType': 'string' },
29
+ title: 'string',
30
+ };
31
+ }
32
+
33
+ validate() {
34
+ if(this.extra) {
35
+ $dara.Model.validateMap(this.extra);
36
+ }
37
+ if(Array.isArray(this.images)) {
38
+ $dara.Model.validateArray(this.images);
39
+ }
40
+ super.validate();
41
+ }
42
+
43
+ constructor(map?: { [key: string]: any }) {
44
+ super(map);
45
+ }
46
+ }
47
+
48
+ export class VideoGenerationRequestIntent extends $dara.Model {
49
+ channel?: string;
50
+ goal?: string;
51
+ static names(): { [key: string]: string } {
52
+ return {
53
+ channel: 'Channel',
54
+ goal: 'Goal',
55
+ };
56
+ }
57
+
58
+ static types(): { [key: string]: any } {
59
+ return {
60
+ channel: 'string',
61
+ goal: 'string',
62
+ };
63
+ }
64
+
65
+ validate() {
66
+ super.validate();
67
+ }
68
+
69
+ constructor(map?: { [key: string]: any }) {
70
+ super(map);
71
+ }
72
+ }
73
+
74
+ export class VideoGenerationRequestOutput extends $dara.Model {
75
+ /**
76
+ * @remarks
77
+ * This parameter is required.
78
+ */
79
+ duration?: number;
80
+ /**
81
+ * @remarks
82
+ * This parameter is required.
83
+ */
84
+ quality?: string;
85
+ ratio?: string;
86
+ static names(): { [key: string]: string } {
87
+ return {
88
+ duration: 'Duration',
89
+ quality: 'Quality',
90
+ ratio: 'Ratio',
91
+ };
92
+ }
93
+
94
+ static types(): { [key: string]: any } {
95
+ return {
96
+ duration: 'number',
97
+ quality: 'string',
98
+ ratio: 'string',
99
+ };
100
+ }
101
+
102
+ validate() {
103
+ super.validate();
104
+ }
105
+
106
+ constructor(map?: { [key: string]: any }) {
107
+ super(map);
108
+ }
109
+ }
110
+
111
+ export class VideoGenerationRequest extends $dara.Model {
112
+ /**
113
+ * @remarks
114
+ * This parameter is required.
115
+ */
116
+ input?: VideoGenerationRequestInput;
117
+ intent?: VideoGenerationRequestIntent;
118
+ /**
119
+ * @remarks
120
+ * This parameter is required.
121
+ */
122
+ output?: VideoGenerationRequestOutput;
123
+ static names(): { [key: string]: string } {
124
+ return {
125
+ input: 'Input',
126
+ intent: 'Intent',
127
+ output: 'Output',
128
+ };
129
+ }
130
+
131
+ static types(): { [key: string]: any } {
132
+ return {
133
+ input: VideoGenerationRequestInput,
134
+ intent: VideoGenerationRequestIntent,
135
+ output: VideoGenerationRequestOutput,
136
+ };
137
+ }
138
+
139
+ validate() {
140
+ if(this.input && typeof (this.input as any).validate === 'function') {
141
+ (this.input as any).validate();
142
+ }
143
+ if(this.intent && typeof (this.intent as any).validate === 'function') {
144
+ (this.intent as any).validate();
145
+ }
146
+ if(this.output && typeof (this.output as any).validate === 'function') {
147
+ (this.output as any).validate();
148
+ }
149
+ super.validate();
150
+ }
151
+
152
+ constructor(map?: { [key: string]: any }) {
153
+ super(map);
154
+ }
155
+ }
156
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { VideoGenerationResponseBody } from "./VideoGenerationResponseBody";
4
+
5
+
6
+ export class VideoGenerationResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: VideoGenerationResponseBody;
10
+ static names(): { [key: string]: string } {
11
+ return {
12
+ headers: 'headers',
13
+ statusCode: 'statusCode',
14
+ body: 'body',
15
+ };
16
+ }
17
+
18
+ static types(): { [key: string]: any } {
19
+ return {
20
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
21
+ statusCode: 'number',
22
+ body: VideoGenerationResponseBody,
23
+ };
24
+ }
25
+
26
+ validate() {
27
+ if(this.headers) {
28
+ $dara.Model.validateMap(this.headers);
29
+ }
30
+ if(this.body && typeof (this.body as any).validate === 'function') {
31
+ (this.body as any).validate();
32
+ }
33
+ super.validate();
34
+ }
35
+
36
+ constructor(map?: { [key: string]: any }) {
37
+ super(map);
38
+ }
39
+ }
40
+