@antchain/antdigital-creative 1.0.7 → 1.1.1
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 +1046 -62
- package/dist/client.js +1229 -88
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +2069 -166
package/dist/client.js
CHANGED
|
@@ -22,7 +22,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
22
22
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.QueryAssetResponse = exports.QueryAssetRequest = exports.UploadAssetResponse = exports.UploadAssetRequest = exports.QueryVideogenerationResponse = exports.QueryVideogenerationRequest = exports.PushVideogenerationResponse = exports.PushVideogenerationRequest = exports.Usage = exports.ExtraInfo = exports.Config = void 0;
|
|
25
|
+
exports.ExecMaasPriceResponse = exports.ExecMaasPriceRequest = exports.ExecMaasChatsyncResponse = exports.ExecMaasChatsyncRequest = exports.QueryMaasAudioResponse = exports.QueryMaasAudioRequest = exports.PushMaasAudioResponse = exports.PushMaasAudioRequest = exports.QueryMaasImageResponse = exports.QueryMaasImageRequest = exports.PushMaasImageResponse = exports.PushMaasImageRequest = exports.QueryMaasVideoResponse = exports.QueryMaasVideoRequest = exports.PushMaasVideoResponse = exports.PushMaasVideoRequest = exports.QueryMaasAssetResponse = exports.QueryMaasAssetRequest = exports.UploadMaasAssetResponse = exports.UploadMaasAssetRequest = exports.QueryAssetResponse = exports.QueryAssetRequest = exports.UploadAssetResponse = exports.UploadAssetRequest = exports.QueryVideogenerationResponse = exports.QueryVideogenerationRequest = exports.PushVideogenerationResponse = exports.PushVideogenerationRequest = exports.Usage = exports.ImageUsage = exports.ChatMessages = exports.ImageUrl = exports.Error = exports.ExtraInfo = exports.PriceUnits = exports.VideoUrl = exports.AudioList = exports.VideoUsage = exports.ContentInfo = exports.AudioUsage = exports.UnitEstimates = exports.ChatUsage = exports.ImageUrlsList = exports.ContentUrl = exports.RequestItems = exports.Config = void 0;
|
|
26
26
|
// This file is auto-generated, don't edit it
|
|
27
27
|
const alipay_util_1 = __importDefault(require("@antchain/alipay-util"));
|
|
28
28
|
const tea_util_1 = __importStar(require("@alicloud/tea-util")), $Util = tea_util_1;
|
|
@@ -82,6 +82,271 @@ class Config extends $tea.Model {
|
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
exports.Config = Config;
|
|
85
|
+
// 只计一次的请求级费用明细
|
|
86
|
+
class RequestItems extends $tea.Model {
|
|
87
|
+
constructor(map) {
|
|
88
|
+
super(map);
|
|
89
|
+
}
|
|
90
|
+
static names() {
|
|
91
|
+
return {
|
|
92
|
+
priceRuleCode: 'price_rule_code',
|
|
93
|
+
chargeItemCode: 'charge_item_code',
|
|
94
|
+
metricType: 'metric_type',
|
|
95
|
+
quantity: 'quantity',
|
|
96
|
+
freeQuota: 'free_quota',
|
|
97
|
+
billableQuantity: 'billable_quantity',
|
|
98
|
+
unitSize: 'unit_size',
|
|
99
|
+
unitPrice: 'unit_price',
|
|
100
|
+
currency: 'currency',
|
|
101
|
+
amount: 'amount',
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
static types() {
|
|
105
|
+
return {
|
|
106
|
+
priceRuleCode: 'string',
|
|
107
|
+
chargeItemCode: 'string',
|
|
108
|
+
metricType: 'string',
|
|
109
|
+
quantity: 'string',
|
|
110
|
+
freeQuota: 'string',
|
|
111
|
+
billableQuantity: 'string',
|
|
112
|
+
unitSize: 'string',
|
|
113
|
+
unitPrice: 'string',
|
|
114
|
+
currency: 'string',
|
|
115
|
+
amount: 'string',
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
exports.RequestItems = RequestItems;
|
|
120
|
+
// content 内 type 为 image_url、audio_url、video_url 所需要的 url
|
|
121
|
+
class ContentUrl extends $tea.Model {
|
|
122
|
+
constructor(map) {
|
|
123
|
+
super(map);
|
|
124
|
+
}
|
|
125
|
+
static names() {
|
|
126
|
+
return {
|
|
127
|
+
url: 'url',
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
static types() {
|
|
131
|
+
return {
|
|
132
|
+
url: 'string',
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
exports.ContentUrl = ContentUrl;
|
|
137
|
+
// 生图任务, 图片 URL 列表
|
|
138
|
+
class ImageUrlsList extends $tea.Model {
|
|
139
|
+
constructor(map) {
|
|
140
|
+
super(map);
|
|
141
|
+
}
|
|
142
|
+
static names() {
|
|
143
|
+
return {
|
|
144
|
+
imageUrls: 'image_urls',
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
static types() {
|
|
148
|
+
return {
|
|
149
|
+
imageUrls: { 'type': 'array', 'itemType': 'string' },
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
exports.ImageUrlsList = ImageUrlsList;
|
|
154
|
+
// 消耗
|
|
155
|
+
class ChatUsage extends $tea.Model {
|
|
156
|
+
constructor(map) {
|
|
157
|
+
super(map);
|
|
158
|
+
}
|
|
159
|
+
static names() {
|
|
160
|
+
return {
|
|
161
|
+
promptTokens: 'prompt_tokens',
|
|
162
|
+
completionTokens: 'completion_tokens',
|
|
163
|
+
totalTokens: 'total_tokens',
|
|
164
|
+
originalPrice: 'original_price',
|
|
165
|
+
currency: 'currency',
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
static types() {
|
|
169
|
+
return {
|
|
170
|
+
promptTokens: 'string',
|
|
171
|
+
completionTokens: 'string',
|
|
172
|
+
totalTokens: 'string',
|
|
173
|
+
originalPrice: 'string',
|
|
174
|
+
currency: 'string',
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
exports.ChatUsage = ChatUsage;
|
|
179
|
+
// 各输出单元的试算明细
|
|
180
|
+
class UnitEstimates extends $tea.Model {
|
|
181
|
+
constructor(map) {
|
|
182
|
+
super(map);
|
|
183
|
+
}
|
|
184
|
+
static names() {
|
|
185
|
+
return {
|
|
186
|
+
unitIndex: 'unit_index',
|
|
187
|
+
matched: 'matched',
|
|
188
|
+
fallback: 'fallback',
|
|
189
|
+
priceRuleCode: 'price_rule_code',
|
|
190
|
+
matchedRuleVersion: 'matched_rule_version',
|
|
191
|
+
ruleName: 'rule_name',
|
|
192
|
+
priority: 'priority',
|
|
193
|
+
items: 'items',
|
|
194
|
+
amount: 'amount',
|
|
195
|
+
message: 'message',
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
static types() {
|
|
199
|
+
return {
|
|
200
|
+
unitIndex: 'number',
|
|
201
|
+
matched: 'boolean',
|
|
202
|
+
fallback: 'boolean',
|
|
203
|
+
priceRuleCode: 'string',
|
|
204
|
+
matchedRuleVersion: 'number',
|
|
205
|
+
ruleName: 'string',
|
|
206
|
+
priority: 'number',
|
|
207
|
+
items: { 'type': 'array', 'itemType': RequestItems },
|
|
208
|
+
amount: 'string',
|
|
209
|
+
message: 'string',
|
|
210
|
+
};
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
exports.UnitEstimates = UnitEstimates;
|
|
214
|
+
// 音频消耗
|
|
215
|
+
class AudioUsage extends $tea.Model {
|
|
216
|
+
constructor(map) {
|
|
217
|
+
super(map);
|
|
218
|
+
}
|
|
219
|
+
static names() {
|
|
220
|
+
return {
|
|
221
|
+
usageType: 'usage_type',
|
|
222
|
+
unit: 'unit',
|
|
223
|
+
durationSeconds: 'duration_seconds',
|
|
224
|
+
count: 'count',
|
|
225
|
+
originalPrice: 'original_price',
|
|
226
|
+
currency: 'currency',
|
|
227
|
+
};
|
|
228
|
+
}
|
|
229
|
+
static types() {
|
|
230
|
+
return {
|
|
231
|
+
usageType: 'string',
|
|
232
|
+
unit: 'string',
|
|
233
|
+
durationSeconds: 'string',
|
|
234
|
+
count: 'number',
|
|
235
|
+
originalPrice: 'string',
|
|
236
|
+
currency: 'string',
|
|
237
|
+
};
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
exports.AudioUsage = AudioUsage;
|
|
241
|
+
// 非空内容列表,至少含文本或素材
|
|
242
|
+
class ContentInfo extends $tea.Model {
|
|
243
|
+
constructor(map) {
|
|
244
|
+
super(map);
|
|
245
|
+
}
|
|
246
|
+
static names() {
|
|
247
|
+
return {
|
|
248
|
+
type: 'type',
|
|
249
|
+
text: 'text',
|
|
250
|
+
imageUrl: 'image_url',
|
|
251
|
+
audioUrl: 'audio_url',
|
|
252
|
+
videoUrl: 'video_url',
|
|
253
|
+
role: 'role',
|
|
254
|
+
};
|
|
255
|
+
}
|
|
256
|
+
static types() {
|
|
257
|
+
return {
|
|
258
|
+
type: 'string',
|
|
259
|
+
text: 'string',
|
|
260
|
+
imageUrl: ContentUrl,
|
|
261
|
+
audioUrl: ContentUrl,
|
|
262
|
+
videoUrl: ContentUrl,
|
|
263
|
+
role: 'string',
|
|
264
|
+
};
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
exports.ContentInfo = ContentInfo;
|
|
268
|
+
// 视频生成返回
|
|
269
|
+
class VideoUsage extends $tea.Model {
|
|
270
|
+
constructor(map) {
|
|
271
|
+
super(map);
|
|
272
|
+
}
|
|
273
|
+
static names() {
|
|
274
|
+
return {
|
|
275
|
+
usageType: 'usage_type',
|
|
276
|
+
unit: 'unit',
|
|
277
|
+
durationSeconds: 'duration_seconds',
|
|
278
|
+
originalPrice: 'original_price',
|
|
279
|
+
currency: 'currency',
|
|
280
|
+
};
|
|
281
|
+
}
|
|
282
|
+
static types() {
|
|
283
|
+
return {
|
|
284
|
+
usageType: 'string',
|
|
285
|
+
unit: 'string',
|
|
286
|
+
durationSeconds: 'string',
|
|
287
|
+
originalPrice: 'string',
|
|
288
|
+
currency: 'string',
|
|
289
|
+
};
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
exports.VideoUsage = VideoUsage;
|
|
293
|
+
// 音频信息
|
|
294
|
+
class AudioList extends $tea.Model {
|
|
295
|
+
constructor(map) {
|
|
296
|
+
super(map);
|
|
297
|
+
}
|
|
298
|
+
static names() {
|
|
299
|
+
return {
|
|
300
|
+
audioUrl: 'audio_url',
|
|
301
|
+
audioFormat: 'audio_format',
|
|
302
|
+
durationSeconds: 'duration_seconds',
|
|
303
|
+
};
|
|
304
|
+
}
|
|
305
|
+
static types() {
|
|
306
|
+
return {
|
|
307
|
+
audioUrl: 'string',
|
|
308
|
+
audioFormat: 'string',
|
|
309
|
+
durationSeconds: 'string',
|
|
310
|
+
};
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
exports.AudioList = AudioList;
|
|
314
|
+
// 视频 URL(成功时返回)
|
|
315
|
+
class VideoUrl extends $tea.Model {
|
|
316
|
+
constructor(map) {
|
|
317
|
+
super(map);
|
|
318
|
+
}
|
|
319
|
+
static names() {
|
|
320
|
+
return {
|
|
321
|
+
videoUrl: 'video_url',
|
|
322
|
+
};
|
|
323
|
+
}
|
|
324
|
+
static types() {
|
|
325
|
+
return {
|
|
326
|
+
videoUrl: 'string',
|
|
327
|
+
};
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
exports.VideoUrl = VideoUrl;
|
|
331
|
+
// 输出单元列表
|
|
332
|
+
class PriceUnits extends $tea.Model {
|
|
333
|
+
constructor(map) {
|
|
334
|
+
super(map);
|
|
335
|
+
}
|
|
336
|
+
static names() {
|
|
337
|
+
return {
|
|
338
|
+
dimensions: 'dimensions',
|
|
339
|
+
metrics: 'metrics',
|
|
340
|
+
};
|
|
341
|
+
}
|
|
342
|
+
static types() {
|
|
343
|
+
return {
|
|
344
|
+
dimensions: 'string',
|
|
345
|
+
metrics: 'string',
|
|
346
|
+
};
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
exports.PriceUnits = PriceUnits;
|
|
85
350
|
// 附加信息
|
|
86
351
|
class ExtraInfo extends $tea.Model {
|
|
87
352
|
constructor(map) {
|
|
@@ -89,46 +354,712 @@ class ExtraInfo extends $tea.Model {
|
|
|
89
354
|
}
|
|
90
355
|
static names() {
|
|
91
356
|
return {
|
|
92
|
-
originalTaskId: 'original_task_id',
|
|
93
|
-
originalVideoUrl: 'original_video_url',
|
|
94
|
-
originalResponseSnapshot: 'original_response_snapshot',
|
|
357
|
+
originalTaskId: 'original_task_id',
|
|
358
|
+
originalVideoUrl: 'original_video_url',
|
|
359
|
+
originalResponseSnapshot: 'original_response_snapshot',
|
|
360
|
+
};
|
|
361
|
+
}
|
|
362
|
+
static types() {
|
|
363
|
+
return {
|
|
364
|
+
originalTaskId: 'string',
|
|
365
|
+
originalVideoUrl: 'string',
|
|
366
|
+
originalResponseSnapshot: 'string',
|
|
367
|
+
};
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
exports.ExtraInfo = ExtraInfo;
|
|
371
|
+
// 处理失败时返回,包含 code / message
|
|
372
|
+
class Error extends $tea.Model {
|
|
373
|
+
constructor(map) {
|
|
374
|
+
super(map);
|
|
375
|
+
}
|
|
376
|
+
static names() {
|
|
377
|
+
return {
|
|
378
|
+
code: 'code',
|
|
379
|
+
message: 'message',
|
|
380
|
+
};
|
|
381
|
+
}
|
|
382
|
+
static types() {
|
|
383
|
+
return {
|
|
384
|
+
code: 'string',
|
|
385
|
+
message: 'string',
|
|
386
|
+
};
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
exports.Error = Error;
|
|
390
|
+
// 1
|
|
391
|
+
class ImageUrl extends $tea.Model {
|
|
392
|
+
constructor(map) {
|
|
393
|
+
super(map);
|
|
394
|
+
}
|
|
395
|
+
static names() {
|
|
396
|
+
return {
|
|
397
|
+
imageUrl: 'image_url',
|
|
398
|
+
};
|
|
399
|
+
}
|
|
400
|
+
static types() {
|
|
401
|
+
return {
|
|
402
|
+
imageUrl: ContentUrl,
|
|
403
|
+
};
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
exports.ImageUrl = ImageUrl;
|
|
407
|
+
// 非空消息列表
|
|
408
|
+
class ChatMessages extends $tea.Model {
|
|
409
|
+
constructor(map) {
|
|
410
|
+
super(map);
|
|
411
|
+
}
|
|
412
|
+
static names() {
|
|
413
|
+
return {
|
|
414
|
+
role: 'role',
|
|
415
|
+
content: 'content',
|
|
416
|
+
};
|
|
417
|
+
}
|
|
418
|
+
static types() {
|
|
419
|
+
return {
|
|
420
|
+
role: 'string',
|
|
421
|
+
content: 'string',
|
|
422
|
+
};
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
exports.ChatMessages = ChatMessages;
|
|
426
|
+
// 用量数组
|
|
427
|
+
class ImageUsage extends $tea.Model {
|
|
428
|
+
constructor(map) {
|
|
429
|
+
super(map);
|
|
430
|
+
}
|
|
431
|
+
static names() {
|
|
432
|
+
return {
|
|
433
|
+
usageType: 'usage_type',
|
|
434
|
+
unit: 'unit',
|
|
435
|
+
imageCount: 'image_count',
|
|
436
|
+
originalPrice: 'original_price',
|
|
437
|
+
currency: 'currency',
|
|
438
|
+
};
|
|
439
|
+
}
|
|
440
|
+
static types() {
|
|
441
|
+
return {
|
|
442
|
+
usageType: 'string',
|
|
443
|
+
unit: 'string',
|
|
444
|
+
imageCount: 'number',
|
|
445
|
+
originalPrice: 'string',
|
|
446
|
+
currency: 'string',
|
|
447
|
+
};
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
exports.ImageUsage = ImageUsage;
|
|
451
|
+
// 用量信息
|
|
452
|
+
class Usage extends $tea.Model {
|
|
453
|
+
constructor(map) {
|
|
454
|
+
super(map);
|
|
455
|
+
}
|
|
456
|
+
static names() {
|
|
457
|
+
return {
|
|
458
|
+
resolution: 'resolution',
|
|
459
|
+
duration: 'duration',
|
|
460
|
+
ratio: 'ratio',
|
|
461
|
+
completionTokens: 'completion_tokens',
|
|
462
|
+
completionCredits: 'completion_credits',
|
|
463
|
+
};
|
|
464
|
+
}
|
|
465
|
+
static types() {
|
|
466
|
+
return {
|
|
467
|
+
resolution: 'string',
|
|
468
|
+
duration: 'number',
|
|
469
|
+
ratio: 'string',
|
|
470
|
+
completionTokens: 'number',
|
|
471
|
+
completionCredits: 'number',
|
|
472
|
+
};
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
exports.Usage = Usage;
|
|
476
|
+
class PushVideogenerationRequest extends $tea.Model {
|
|
477
|
+
constructor(map) {
|
|
478
|
+
super(map);
|
|
479
|
+
}
|
|
480
|
+
static names() {
|
|
481
|
+
return {
|
|
482
|
+
authToken: 'auth_token',
|
|
483
|
+
productInstanceId: 'product_instance_id',
|
|
484
|
+
model: 'model',
|
|
485
|
+
prompt: 'prompt',
|
|
486
|
+
imageUrl: 'image_url',
|
|
487
|
+
videoUrl: 'video_url',
|
|
488
|
+
audioUrl: 'audio_url',
|
|
489
|
+
ratio: 'ratio',
|
|
490
|
+
duration: 'duration',
|
|
491
|
+
requestId: 'request_id',
|
|
492
|
+
ext: 'ext',
|
|
493
|
+
};
|
|
494
|
+
}
|
|
495
|
+
static types() {
|
|
496
|
+
return {
|
|
497
|
+
authToken: 'string',
|
|
498
|
+
productInstanceId: 'string',
|
|
499
|
+
model: 'string',
|
|
500
|
+
prompt: 'string',
|
|
501
|
+
imageUrl: { 'type': 'array', 'itemType': 'string' },
|
|
502
|
+
videoUrl: { 'type': 'array', 'itemType': 'string' },
|
|
503
|
+
audioUrl: { 'type': 'array', 'itemType': 'string' },
|
|
504
|
+
ratio: 'string',
|
|
505
|
+
duration: 'number',
|
|
506
|
+
requestId: 'string',
|
|
507
|
+
ext: 'string',
|
|
508
|
+
};
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
exports.PushVideogenerationRequest = PushVideogenerationRequest;
|
|
512
|
+
class PushVideogenerationResponse extends $tea.Model {
|
|
513
|
+
constructor(map) {
|
|
514
|
+
super(map);
|
|
515
|
+
}
|
|
516
|
+
static names() {
|
|
517
|
+
return {
|
|
518
|
+
reqMsgId: 'req_msg_id',
|
|
519
|
+
resultCode: 'result_code',
|
|
520
|
+
resultMsg: 'result_msg',
|
|
521
|
+
taskId: 'task_id',
|
|
522
|
+
status: 'status',
|
|
523
|
+
model: 'model',
|
|
524
|
+
ext: 'ext',
|
|
525
|
+
};
|
|
526
|
+
}
|
|
527
|
+
static types() {
|
|
528
|
+
return {
|
|
529
|
+
reqMsgId: 'string',
|
|
530
|
+
resultCode: 'string',
|
|
531
|
+
resultMsg: 'string',
|
|
532
|
+
taskId: 'string',
|
|
533
|
+
status: 'string',
|
|
534
|
+
model: 'string',
|
|
535
|
+
ext: 'string',
|
|
536
|
+
};
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
exports.PushVideogenerationResponse = PushVideogenerationResponse;
|
|
540
|
+
class QueryVideogenerationRequest extends $tea.Model {
|
|
541
|
+
constructor(map) {
|
|
542
|
+
super(map);
|
|
543
|
+
}
|
|
544
|
+
static names() {
|
|
545
|
+
return {
|
|
546
|
+
authToken: 'auth_token',
|
|
547
|
+
productInstanceId: 'product_instance_id',
|
|
548
|
+
taskId: 'task_id',
|
|
549
|
+
};
|
|
550
|
+
}
|
|
551
|
+
static types() {
|
|
552
|
+
return {
|
|
553
|
+
authToken: 'string',
|
|
554
|
+
productInstanceId: 'string',
|
|
555
|
+
taskId: 'string',
|
|
556
|
+
};
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
exports.QueryVideogenerationRequest = QueryVideogenerationRequest;
|
|
560
|
+
class QueryVideogenerationResponse extends $tea.Model {
|
|
561
|
+
constructor(map) {
|
|
562
|
+
super(map);
|
|
563
|
+
}
|
|
564
|
+
static names() {
|
|
565
|
+
return {
|
|
566
|
+
reqMsgId: 'req_msg_id',
|
|
567
|
+
resultCode: 'result_code',
|
|
568
|
+
resultMsg: 'result_msg',
|
|
569
|
+
taskId: 'task_id',
|
|
570
|
+
status: 'status',
|
|
571
|
+
videoUrl: 'video_url',
|
|
572
|
+
errorCode: 'error_code',
|
|
573
|
+
errorMessage: 'error_message',
|
|
574
|
+
usage: 'usage',
|
|
575
|
+
extraInfo: 'extra_info',
|
|
576
|
+
};
|
|
577
|
+
}
|
|
578
|
+
static types() {
|
|
579
|
+
return {
|
|
580
|
+
reqMsgId: 'string',
|
|
581
|
+
resultCode: 'string',
|
|
582
|
+
resultMsg: 'string',
|
|
583
|
+
taskId: 'string',
|
|
584
|
+
status: 'string',
|
|
585
|
+
videoUrl: 'string',
|
|
586
|
+
errorCode: 'string',
|
|
587
|
+
errorMessage: 'string',
|
|
588
|
+
usage: Usage,
|
|
589
|
+
extraInfo: ExtraInfo,
|
|
590
|
+
};
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
exports.QueryVideogenerationResponse = QueryVideogenerationResponse;
|
|
594
|
+
class UploadAssetRequest extends $tea.Model {
|
|
595
|
+
constructor(map) {
|
|
596
|
+
super(map);
|
|
597
|
+
}
|
|
598
|
+
static names() {
|
|
599
|
+
return {
|
|
600
|
+
authToken: 'auth_token',
|
|
601
|
+
productInstanceId: 'product_instance_id',
|
|
602
|
+
assetType: 'asset_type',
|
|
603
|
+
fileUrl: 'file_url',
|
|
604
|
+
assetName: 'asset_name',
|
|
605
|
+
useModel: 'use_model',
|
|
606
|
+
};
|
|
607
|
+
}
|
|
608
|
+
static types() {
|
|
609
|
+
return {
|
|
610
|
+
authToken: 'string',
|
|
611
|
+
productInstanceId: 'string',
|
|
612
|
+
assetType: 'string',
|
|
613
|
+
fileUrl: 'string',
|
|
614
|
+
assetName: 'string',
|
|
615
|
+
useModel: 'string',
|
|
616
|
+
};
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
exports.UploadAssetRequest = UploadAssetRequest;
|
|
620
|
+
class UploadAssetResponse extends $tea.Model {
|
|
621
|
+
constructor(map) {
|
|
622
|
+
super(map);
|
|
623
|
+
}
|
|
624
|
+
static names() {
|
|
625
|
+
return {
|
|
626
|
+
reqMsgId: 'req_msg_id',
|
|
627
|
+
resultCode: 'result_code',
|
|
628
|
+
resultMsg: 'result_msg',
|
|
629
|
+
assetId: 'asset_id',
|
|
630
|
+
status: 'status',
|
|
631
|
+
assetType: 'asset_type',
|
|
632
|
+
};
|
|
633
|
+
}
|
|
634
|
+
static types() {
|
|
635
|
+
return {
|
|
636
|
+
reqMsgId: 'string',
|
|
637
|
+
resultCode: 'string',
|
|
638
|
+
resultMsg: 'string',
|
|
639
|
+
assetId: 'string',
|
|
640
|
+
status: 'string',
|
|
641
|
+
assetType: 'string',
|
|
642
|
+
};
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
exports.UploadAssetResponse = UploadAssetResponse;
|
|
646
|
+
class QueryAssetRequest extends $tea.Model {
|
|
647
|
+
constructor(map) {
|
|
648
|
+
super(map);
|
|
649
|
+
}
|
|
650
|
+
static names() {
|
|
651
|
+
return {
|
|
652
|
+
authToken: 'auth_token',
|
|
653
|
+
productInstanceId: 'product_instance_id',
|
|
654
|
+
assetId: 'asset_id',
|
|
655
|
+
};
|
|
656
|
+
}
|
|
657
|
+
static types() {
|
|
658
|
+
return {
|
|
659
|
+
authToken: 'string',
|
|
660
|
+
productInstanceId: 'string',
|
|
661
|
+
assetId: 'string',
|
|
662
|
+
};
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
exports.QueryAssetRequest = QueryAssetRequest;
|
|
666
|
+
class QueryAssetResponse extends $tea.Model {
|
|
667
|
+
constructor(map) {
|
|
668
|
+
super(map);
|
|
669
|
+
}
|
|
670
|
+
static names() {
|
|
671
|
+
return {
|
|
672
|
+
reqMsgId: 'req_msg_id',
|
|
673
|
+
resultCode: 'result_code',
|
|
674
|
+
resultMsg: 'result_msg',
|
|
675
|
+
assetId: 'asset_id',
|
|
676
|
+
status: 'status',
|
|
677
|
+
assetType: 'asset_type',
|
|
678
|
+
assetUrl: 'asset_url',
|
|
679
|
+
errorMessage: 'error_message',
|
|
680
|
+
errorCode: 'error_code',
|
|
681
|
+
};
|
|
682
|
+
}
|
|
683
|
+
static types() {
|
|
684
|
+
return {
|
|
685
|
+
reqMsgId: 'string',
|
|
686
|
+
resultCode: 'string',
|
|
687
|
+
resultMsg: 'string',
|
|
688
|
+
assetId: 'string',
|
|
689
|
+
status: 'string',
|
|
690
|
+
assetType: 'string',
|
|
691
|
+
assetUrl: 'string',
|
|
692
|
+
errorMessage: 'string',
|
|
693
|
+
errorCode: 'string',
|
|
694
|
+
};
|
|
695
|
+
}
|
|
696
|
+
}
|
|
697
|
+
exports.QueryAssetResponse = QueryAssetResponse;
|
|
698
|
+
class UploadMaasAssetRequest extends $tea.Model {
|
|
699
|
+
constructor(map) {
|
|
700
|
+
super(map);
|
|
701
|
+
}
|
|
702
|
+
static names() {
|
|
703
|
+
return {
|
|
704
|
+
authToken: 'auth_token',
|
|
705
|
+
productInstanceId: 'product_instance_id',
|
|
706
|
+
requestId: 'request_id',
|
|
707
|
+
fileUrl: 'file_url',
|
|
708
|
+
assetType: 'asset_type',
|
|
709
|
+
assetName: 'asset_name',
|
|
710
|
+
};
|
|
711
|
+
}
|
|
712
|
+
static types() {
|
|
713
|
+
return {
|
|
714
|
+
authToken: 'string',
|
|
715
|
+
productInstanceId: 'string',
|
|
716
|
+
requestId: 'string',
|
|
717
|
+
fileUrl: 'string',
|
|
718
|
+
assetType: 'string',
|
|
719
|
+
assetName: 'string',
|
|
720
|
+
};
|
|
721
|
+
}
|
|
722
|
+
}
|
|
723
|
+
exports.UploadMaasAssetRequest = UploadMaasAssetRequest;
|
|
724
|
+
class UploadMaasAssetResponse extends $tea.Model {
|
|
725
|
+
constructor(map) {
|
|
726
|
+
super(map);
|
|
727
|
+
}
|
|
728
|
+
static names() {
|
|
729
|
+
return {
|
|
730
|
+
reqMsgId: 'req_msg_id',
|
|
731
|
+
resultCode: 'result_code',
|
|
732
|
+
resultMsg: 'result_msg',
|
|
733
|
+
assetId: 'asset_id',
|
|
734
|
+
status: 'status',
|
|
735
|
+
assetType: 'asset_type',
|
|
736
|
+
};
|
|
737
|
+
}
|
|
738
|
+
static types() {
|
|
739
|
+
return {
|
|
740
|
+
reqMsgId: 'string',
|
|
741
|
+
resultCode: 'string',
|
|
742
|
+
resultMsg: 'string',
|
|
743
|
+
assetId: 'string',
|
|
744
|
+
status: 'string',
|
|
745
|
+
assetType: 'string',
|
|
746
|
+
};
|
|
747
|
+
}
|
|
748
|
+
}
|
|
749
|
+
exports.UploadMaasAssetResponse = UploadMaasAssetResponse;
|
|
750
|
+
class QueryMaasAssetRequest extends $tea.Model {
|
|
751
|
+
constructor(map) {
|
|
752
|
+
super(map);
|
|
753
|
+
}
|
|
754
|
+
static names() {
|
|
755
|
+
return {
|
|
756
|
+
authToken: 'auth_token',
|
|
757
|
+
productInstanceId: 'product_instance_id',
|
|
758
|
+
assetId: 'asset_id',
|
|
759
|
+
};
|
|
760
|
+
}
|
|
761
|
+
static types() {
|
|
762
|
+
return {
|
|
763
|
+
authToken: 'string',
|
|
764
|
+
productInstanceId: 'string',
|
|
765
|
+
assetId: 'string',
|
|
766
|
+
};
|
|
767
|
+
}
|
|
768
|
+
}
|
|
769
|
+
exports.QueryMaasAssetRequest = QueryMaasAssetRequest;
|
|
770
|
+
class QueryMaasAssetResponse extends $tea.Model {
|
|
771
|
+
constructor(map) {
|
|
772
|
+
super(map);
|
|
773
|
+
}
|
|
774
|
+
static names() {
|
|
775
|
+
return {
|
|
776
|
+
reqMsgId: 'req_msg_id',
|
|
777
|
+
resultCode: 'result_code',
|
|
778
|
+
resultMsg: 'result_msg',
|
|
779
|
+
assetId: 'asset_id',
|
|
780
|
+
status: 'status',
|
|
781
|
+
assetType: 'asset_type',
|
|
782
|
+
url: 'url',
|
|
783
|
+
name: 'name',
|
|
784
|
+
createdAt: 'created_at',
|
|
785
|
+
updatedAt: 'updated_at',
|
|
786
|
+
error: 'error',
|
|
787
|
+
};
|
|
788
|
+
}
|
|
789
|
+
static types() {
|
|
790
|
+
return {
|
|
791
|
+
reqMsgId: 'string',
|
|
792
|
+
resultCode: 'string',
|
|
793
|
+
resultMsg: 'string',
|
|
794
|
+
assetId: 'string',
|
|
795
|
+
status: 'string',
|
|
796
|
+
assetType: 'string',
|
|
797
|
+
url: 'string',
|
|
798
|
+
name: 'string',
|
|
799
|
+
createdAt: 'string',
|
|
800
|
+
updatedAt: 'string',
|
|
801
|
+
error: Error,
|
|
802
|
+
};
|
|
803
|
+
}
|
|
804
|
+
}
|
|
805
|
+
exports.QueryMaasAssetResponse = QueryMaasAssetResponse;
|
|
806
|
+
class PushMaasVideoRequest extends $tea.Model {
|
|
807
|
+
constructor(map) {
|
|
808
|
+
super(map);
|
|
809
|
+
}
|
|
810
|
+
static names() {
|
|
811
|
+
return {
|
|
812
|
+
authToken: 'auth_token',
|
|
813
|
+
productInstanceId: 'product_instance_id',
|
|
814
|
+
requestId: 'request_id',
|
|
815
|
+
model: 'model',
|
|
816
|
+
capabilityType: 'capability_type',
|
|
817
|
+
content: 'content',
|
|
818
|
+
duration: 'duration',
|
|
819
|
+
ratio: 'ratio',
|
|
820
|
+
resolution: 'resolution',
|
|
821
|
+
generateAudio: 'generate_audio',
|
|
822
|
+
watermark: 'watermark',
|
|
823
|
+
extParams: 'ext_params',
|
|
824
|
+
};
|
|
825
|
+
}
|
|
826
|
+
static types() {
|
|
827
|
+
return {
|
|
828
|
+
authToken: 'string',
|
|
829
|
+
productInstanceId: 'string',
|
|
830
|
+
requestId: 'string',
|
|
831
|
+
model: 'string',
|
|
832
|
+
capabilityType: 'string',
|
|
833
|
+
content: { 'type': 'array', 'itemType': ContentInfo },
|
|
834
|
+
duration: 'string',
|
|
835
|
+
ratio: 'string',
|
|
836
|
+
resolution: 'string',
|
|
837
|
+
generateAudio: 'boolean',
|
|
838
|
+
watermark: 'boolean',
|
|
839
|
+
extParams: 'string',
|
|
840
|
+
};
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
exports.PushMaasVideoRequest = PushMaasVideoRequest;
|
|
844
|
+
class PushMaasVideoResponse extends $tea.Model {
|
|
845
|
+
constructor(map) {
|
|
846
|
+
super(map);
|
|
847
|
+
}
|
|
848
|
+
static names() {
|
|
849
|
+
return {
|
|
850
|
+
reqMsgId: 'req_msg_id',
|
|
851
|
+
resultCode: 'result_code',
|
|
852
|
+
resultMsg: 'result_msg',
|
|
853
|
+
taskId: 'task_id',
|
|
854
|
+
status: 'status',
|
|
855
|
+
model: 'model',
|
|
856
|
+
};
|
|
857
|
+
}
|
|
858
|
+
static types() {
|
|
859
|
+
return {
|
|
860
|
+
reqMsgId: 'string',
|
|
861
|
+
resultCode: 'string',
|
|
862
|
+
resultMsg: 'string',
|
|
863
|
+
taskId: 'string',
|
|
864
|
+
status: 'string',
|
|
865
|
+
model: 'string',
|
|
866
|
+
};
|
|
867
|
+
}
|
|
868
|
+
}
|
|
869
|
+
exports.PushMaasVideoResponse = PushMaasVideoResponse;
|
|
870
|
+
class QueryMaasVideoRequest extends $tea.Model {
|
|
871
|
+
constructor(map) {
|
|
872
|
+
super(map);
|
|
873
|
+
}
|
|
874
|
+
static names() {
|
|
875
|
+
return {
|
|
876
|
+
authToken: 'auth_token',
|
|
877
|
+
productInstanceId: 'product_instance_id',
|
|
878
|
+
taskId: 'task_id',
|
|
879
|
+
};
|
|
880
|
+
}
|
|
881
|
+
static types() {
|
|
882
|
+
return {
|
|
883
|
+
authToken: 'string',
|
|
884
|
+
productInstanceId: 'string',
|
|
885
|
+
taskId: 'string',
|
|
886
|
+
};
|
|
887
|
+
}
|
|
888
|
+
}
|
|
889
|
+
exports.QueryMaasVideoRequest = QueryMaasVideoRequest;
|
|
890
|
+
class QueryMaasVideoResponse extends $tea.Model {
|
|
891
|
+
constructor(map) {
|
|
892
|
+
super(map);
|
|
893
|
+
}
|
|
894
|
+
static names() {
|
|
895
|
+
return {
|
|
896
|
+
reqMsgId: 'req_msg_id',
|
|
897
|
+
resultCode: 'result_code',
|
|
898
|
+
resultMsg: 'result_msg',
|
|
899
|
+
taskId: 'task_id',
|
|
900
|
+
status: 'status',
|
|
901
|
+
model: 'model',
|
|
902
|
+
createdAt: 'created_at',
|
|
903
|
+
updatedAt: 'updated_at',
|
|
904
|
+
content: 'content',
|
|
905
|
+
duration: 'duration',
|
|
906
|
+
ratio: 'ratio',
|
|
907
|
+
resolution: 'resolution',
|
|
908
|
+
generateAudio: 'generate_audio',
|
|
909
|
+
usage: 'usage',
|
|
910
|
+
extraInfo: 'extra_info',
|
|
911
|
+
error: 'error',
|
|
912
|
+
};
|
|
913
|
+
}
|
|
914
|
+
static types() {
|
|
915
|
+
return {
|
|
916
|
+
reqMsgId: 'string',
|
|
917
|
+
resultCode: 'string',
|
|
918
|
+
resultMsg: 'string',
|
|
919
|
+
taskId: 'string',
|
|
920
|
+
status: 'string',
|
|
921
|
+
model: 'string',
|
|
922
|
+
createdAt: 'string',
|
|
923
|
+
updatedAt: 'string',
|
|
924
|
+
content: VideoUrl,
|
|
925
|
+
duration: 'string',
|
|
926
|
+
ratio: 'string',
|
|
927
|
+
resolution: 'string',
|
|
928
|
+
generateAudio: 'boolean',
|
|
929
|
+
usage: { 'type': 'array', 'itemType': VideoUsage },
|
|
930
|
+
extraInfo: 'string',
|
|
931
|
+
error: Error,
|
|
932
|
+
};
|
|
933
|
+
}
|
|
934
|
+
}
|
|
935
|
+
exports.QueryMaasVideoResponse = QueryMaasVideoResponse;
|
|
936
|
+
class PushMaasImageRequest extends $tea.Model {
|
|
937
|
+
constructor(map) {
|
|
938
|
+
super(map);
|
|
939
|
+
}
|
|
940
|
+
static names() {
|
|
941
|
+
return {
|
|
942
|
+
authToken: 'auth_token',
|
|
943
|
+
productInstanceId: 'product_instance_id',
|
|
944
|
+
requestId: 'request_id',
|
|
945
|
+
model: 'model',
|
|
946
|
+
capabilityType: 'capability_type',
|
|
947
|
+
generateMode: 'generate_mode',
|
|
948
|
+
prompt: 'prompt',
|
|
949
|
+
imageUrls: 'image_urls',
|
|
950
|
+
size: 'size',
|
|
951
|
+
n: 'n',
|
|
952
|
+
extParams: 'ext_params',
|
|
953
|
+
};
|
|
954
|
+
}
|
|
955
|
+
static types() {
|
|
956
|
+
return {
|
|
957
|
+
authToken: 'string',
|
|
958
|
+
productInstanceId: 'string',
|
|
959
|
+
requestId: 'string',
|
|
960
|
+
model: 'string',
|
|
961
|
+
capabilityType: 'string',
|
|
962
|
+
generateMode: 'string',
|
|
963
|
+
prompt: 'string',
|
|
964
|
+
imageUrls: { 'type': 'array', 'itemType': 'string' },
|
|
965
|
+
size: 'string',
|
|
966
|
+
n: 'number',
|
|
967
|
+
extParams: 'string',
|
|
968
|
+
};
|
|
969
|
+
}
|
|
970
|
+
}
|
|
971
|
+
exports.PushMaasImageRequest = PushMaasImageRequest;
|
|
972
|
+
class PushMaasImageResponse extends $tea.Model {
|
|
973
|
+
constructor(map) {
|
|
974
|
+
super(map);
|
|
975
|
+
}
|
|
976
|
+
static names() {
|
|
977
|
+
return {
|
|
978
|
+
reqMsgId: 'req_msg_id',
|
|
979
|
+
resultCode: 'result_code',
|
|
980
|
+
resultMsg: 'result_msg',
|
|
981
|
+
taskId: 'task_id',
|
|
982
|
+
status: 'status',
|
|
983
|
+
model: 'model',
|
|
984
|
+
content: 'content',
|
|
985
|
+
usage: 'usage',
|
|
986
|
+
error: 'error',
|
|
987
|
+
extraInfo: 'extra_info',
|
|
95
988
|
};
|
|
96
989
|
}
|
|
97
990
|
static types() {
|
|
98
991
|
return {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
992
|
+
reqMsgId: 'string',
|
|
993
|
+
resultCode: 'string',
|
|
994
|
+
resultMsg: 'string',
|
|
995
|
+
taskId: 'string',
|
|
996
|
+
status: 'string',
|
|
997
|
+
model: 'string',
|
|
998
|
+
content: ImageUrlsList,
|
|
999
|
+
usage: { 'type': 'array', 'itemType': ImageUsage },
|
|
1000
|
+
error: Error,
|
|
1001
|
+
extraInfo: 'string',
|
|
102
1002
|
};
|
|
103
1003
|
}
|
|
104
1004
|
}
|
|
105
|
-
exports.
|
|
106
|
-
|
|
107
|
-
class Usage extends $tea.Model {
|
|
1005
|
+
exports.PushMaasImageResponse = PushMaasImageResponse;
|
|
1006
|
+
class QueryMaasImageRequest extends $tea.Model {
|
|
108
1007
|
constructor(map) {
|
|
109
1008
|
super(map);
|
|
110
1009
|
}
|
|
111
1010
|
static names() {
|
|
112
1011
|
return {
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
completionTokens: 'completion_tokens',
|
|
117
|
-
completionCredits: 'completion_credits',
|
|
1012
|
+
authToken: 'auth_token',
|
|
1013
|
+
productInstanceId: 'product_instance_id',
|
|
1014
|
+
taskId: 'task_id',
|
|
118
1015
|
};
|
|
119
1016
|
}
|
|
120
1017
|
static types() {
|
|
121
1018
|
return {
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
completionTokens: 'number',
|
|
126
|
-
completionCredits: 'number',
|
|
1019
|
+
authToken: 'string',
|
|
1020
|
+
productInstanceId: 'string',
|
|
1021
|
+
taskId: 'string',
|
|
127
1022
|
};
|
|
128
1023
|
}
|
|
129
1024
|
}
|
|
130
|
-
exports.
|
|
131
|
-
class
|
|
1025
|
+
exports.QueryMaasImageRequest = QueryMaasImageRequest;
|
|
1026
|
+
class QueryMaasImageResponse extends $tea.Model {
|
|
1027
|
+
constructor(map) {
|
|
1028
|
+
super(map);
|
|
1029
|
+
}
|
|
1030
|
+
static names() {
|
|
1031
|
+
return {
|
|
1032
|
+
reqMsgId: 'req_msg_id',
|
|
1033
|
+
resultCode: 'result_code',
|
|
1034
|
+
resultMsg: 'result_msg',
|
|
1035
|
+
taskId: 'task_id',
|
|
1036
|
+
status: 'status',
|
|
1037
|
+
model: 'model',
|
|
1038
|
+
createdAt: 'created_at',
|
|
1039
|
+
content: 'content',
|
|
1040
|
+
usage: 'usage',
|
|
1041
|
+
extraInfo: 'extra_info',
|
|
1042
|
+
error: 'error',
|
|
1043
|
+
};
|
|
1044
|
+
}
|
|
1045
|
+
static types() {
|
|
1046
|
+
return {
|
|
1047
|
+
reqMsgId: 'string',
|
|
1048
|
+
resultCode: 'string',
|
|
1049
|
+
resultMsg: 'string',
|
|
1050
|
+
taskId: 'string',
|
|
1051
|
+
status: 'string',
|
|
1052
|
+
model: 'string',
|
|
1053
|
+
createdAt: 'string',
|
|
1054
|
+
content: ImageUrlsList,
|
|
1055
|
+
usage: { 'type': 'array', 'itemType': ImageUsage },
|
|
1056
|
+
extraInfo: 'string',
|
|
1057
|
+
error: Error,
|
|
1058
|
+
};
|
|
1059
|
+
}
|
|
1060
|
+
}
|
|
1061
|
+
exports.QueryMaasImageResponse = QueryMaasImageResponse;
|
|
1062
|
+
class PushMaasAudioRequest extends $tea.Model {
|
|
132
1063
|
constructor(map) {
|
|
133
1064
|
super(map);
|
|
134
1065
|
}
|
|
@@ -136,35 +1067,33 @@ class PushVideogenerationRequest extends $tea.Model {
|
|
|
136
1067
|
return {
|
|
137
1068
|
authToken: 'auth_token',
|
|
138
1069
|
productInstanceId: 'product_instance_id',
|
|
1070
|
+
requestId: 'request_id',
|
|
139
1071
|
model: 'model',
|
|
1072
|
+
capabilityType: 'capability_type',
|
|
140
1073
|
prompt: 'prompt',
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
duration: 'duration',
|
|
146
|
-
requestId: 'request_id',
|
|
147
|
-
ext: 'ext',
|
|
1074
|
+
text: 'text',
|
|
1075
|
+
audioUrls: 'audio_urls',
|
|
1076
|
+
imageUrls: 'image_urls',
|
|
1077
|
+
extParams: 'ext_params',
|
|
148
1078
|
};
|
|
149
1079
|
}
|
|
150
1080
|
static types() {
|
|
151
1081
|
return {
|
|
152
1082
|
authToken: 'string',
|
|
153
1083
|
productInstanceId: 'string',
|
|
1084
|
+
requestId: 'string',
|
|
154
1085
|
model: 'string',
|
|
1086
|
+
capabilityType: 'string',
|
|
155
1087
|
prompt: 'string',
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
duration: 'number',
|
|
161
|
-
requestId: 'string',
|
|
162
|
-
ext: 'string',
|
|
1088
|
+
text: 'string',
|
|
1089
|
+
audioUrls: { 'type': 'array', 'itemType': 'string' },
|
|
1090
|
+
imageUrls: { 'type': 'array', 'itemType': 'string' },
|
|
1091
|
+
extParams: 'string',
|
|
163
1092
|
};
|
|
164
1093
|
}
|
|
165
1094
|
}
|
|
166
|
-
exports.
|
|
167
|
-
class
|
|
1095
|
+
exports.PushMaasAudioRequest = PushMaasAudioRequest;
|
|
1096
|
+
class PushMaasAudioResponse extends $tea.Model {
|
|
168
1097
|
constructor(map) {
|
|
169
1098
|
super(map);
|
|
170
1099
|
}
|
|
@@ -176,7 +1105,6 @@ class PushVideogenerationResponse extends $tea.Model {
|
|
|
176
1105
|
taskId: 'task_id',
|
|
177
1106
|
status: 'status',
|
|
178
1107
|
model: 'model',
|
|
179
|
-
ext: 'ext',
|
|
180
1108
|
};
|
|
181
1109
|
}
|
|
182
1110
|
static types() {
|
|
@@ -187,12 +1115,11 @@ class PushVideogenerationResponse extends $tea.Model {
|
|
|
187
1115
|
taskId: 'string',
|
|
188
1116
|
status: 'string',
|
|
189
1117
|
model: 'string',
|
|
190
|
-
ext: 'string',
|
|
191
1118
|
};
|
|
192
1119
|
}
|
|
193
1120
|
}
|
|
194
|
-
exports.
|
|
195
|
-
class
|
|
1121
|
+
exports.PushMaasAudioResponse = PushMaasAudioResponse;
|
|
1122
|
+
class QueryMaasAudioRequest extends $tea.Model {
|
|
196
1123
|
constructor(map) {
|
|
197
1124
|
super(map);
|
|
198
1125
|
}
|
|
@@ -211,8 +1138,8 @@ class QueryVideogenerationRequest extends $tea.Model {
|
|
|
211
1138
|
};
|
|
212
1139
|
}
|
|
213
1140
|
}
|
|
214
|
-
exports.
|
|
215
|
-
class
|
|
1141
|
+
exports.QueryMaasAudioRequest = QueryMaasAudioRequest;
|
|
1142
|
+
class QueryMaasAudioResponse extends $tea.Model {
|
|
216
1143
|
constructor(map) {
|
|
217
1144
|
super(map);
|
|
218
1145
|
}
|
|
@@ -223,11 +1150,12 @@ class QueryVideogenerationResponse extends $tea.Model {
|
|
|
223
1150
|
resultMsg: 'result_msg',
|
|
224
1151
|
taskId: 'task_id',
|
|
225
1152
|
status: 'status',
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
1153
|
+
model: 'model',
|
|
1154
|
+
createdAt: 'created_at',
|
|
1155
|
+
content: 'content',
|
|
229
1156
|
usage: 'usage',
|
|
230
1157
|
extraInfo: 'extra_info',
|
|
1158
|
+
error: 'error',
|
|
231
1159
|
};
|
|
232
1160
|
}
|
|
233
1161
|
static types() {
|
|
@@ -237,16 +1165,17 @@ class QueryVideogenerationResponse extends $tea.Model {
|
|
|
237
1165
|
resultMsg: 'string',
|
|
238
1166
|
taskId: 'string',
|
|
239
1167
|
status: 'string',
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
usage:
|
|
244
|
-
extraInfo:
|
|
1168
|
+
model: 'string',
|
|
1169
|
+
createdAt: 'string',
|
|
1170
|
+
content: { 'type': 'array', 'itemType': AudioList },
|
|
1171
|
+
usage: { 'type': 'array', 'itemType': AudioUsage },
|
|
1172
|
+
extraInfo: 'string',
|
|
1173
|
+
error: Error,
|
|
245
1174
|
};
|
|
246
1175
|
}
|
|
247
1176
|
}
|
|
248
|
-
exports.
|
|
249
|
-
class
|
|
1177
|
+
exports.QueryMaasAudioResponse = QueryMaasAudioResponse;
|
|
1178
|
+
class ExecMaasChatsyncRequest extends $tea.Model {
|
|
250
1179
|
constructor(map) {
|
|
251
1180
|
super(map);
|
|
252
1181
|
}
|
|
@@ -254,23 +1183,25 @@ class UploadAssetRequest extends $tea.Model {
|
|
|
254
1183
|
return {
|
|
255
1184
|
authToken: 'auth_token',
|
|
256
1185
|
productInstanceId: 'product_instance_id',
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
1186
|
+
requestId: 'request_id',
|
|
1187
|
+
model: 'model',
|
|
1188
|
+
messages: 'messages',
|
|
1189
|
+
extParams: 'ext_params',
|
|
260
1190
|
};
|
|
261
1191
|
}
|
|
262
1192
|
static types() {
|
|
263
1193
|
return {
|
|
264
1194
|
authToken: 'string',
|
|
265
1195
|
productInstanceId: 'string',
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
1196
|
+
requestId: 'string',
|
|
1197
|
+
model: 'string',
|
|
1198
|
+
messages: { 'type': 'array', 'itemType': ChatMessages },
|
|
1199
|
+
extParams: 'string',
|
|
269
1200
|
};
|
|
270
1201
|
}
|
|
271
1202
|
}
|
|
272
|
-
exports.
|
|
273
|
-
class
|
|
1203
|
+
exports.ExecMaasChatsyncRequest = ExecMaasChatsyncRequest;
|
|
1204
|
+
class ExecMaasChatsyncResponse extends $tea.Model {
|
|
274
1205
|
constructor(map) {
|
|
275
1206
|
super(map);
|
|
276
1207
|
}
|
|
@@ -279,9 +1210,11 @@ class UploadAssetResponse extends $tea.Model {
|
|
|
279
1210
|
reqMsgId: 'req_msg_id',
|
|
280
1211
|
resultCode: 'result_code',
|
|
281
1212
|
resultMsg: 'result_msg',
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
1213
|
+
id: 'id',
|
|
1214
|
+
model: 'model',
|
|
1215
|
+
content: 'content',
|
|
1216
|
+
finishReason: 'finish_reason',
|
|
1217
|
+
usage: 'usage',
|
|
285
1218
|
};
|
|
286
1219
|
}
|
|
287
1220
|
static types() {
|
|
@@ -289,14 +1222,16 @@ class UploadAssetResponse extends $tea.Model {
|
|
|
289
1222
|
reqMsgId: 'string',
|
|
290
1223
|
resultCode: 'string',
|
|
291
1224
|
resultMsg: 'string',
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
1225
|
+
id: 'string',
|
|
1226
|
+
model: 'string',
|
|
1227
|
+
content: 'string',
|
|
1228
|
+
finishReason: 'string',
|
|
1229
|
+
usage: ChatUsage,
|
|
295
1230
|
};
|
|
296
1231
|
}
|
|
297
1232
|
}
|
|
298
|
-
exports.
|
|
299
|
-
class
|
|
1233
|
+
exports.ExecMaasChatsyncResponse = ExecMaasChatsyncResponse;
|
|
1234
|
+
class ExecMaasPriceRequest extends $tea.Model {
|
|
300
1235
|
constructor(map) {
|
|
301
1236
|
super(map);
|
|
302
1237
|
}
|
|
@@ -304,19 +1239,25 @@ class QueryAssetRequest extends $tea.Model {
|
|
|
304
1239
|
return {
|
|
305
1240
|
authToken: 'auth_token',
|
|
306
1241
|
productInstanceId: 'product_instance_id',
|
|
307
|
-
|
|
1242
|
+
modelName: 'model_name',
|
|
1243
|
+
requestDimensions: 'request_dimensions',
|
|
1244
|
+
requestMetrics: 'request_metrics',
|
|
1245
|
+
units: 'units',
|
|
308
1246
|
};
|
|
309
1247
|
}
|
|
310
1248
|
static types() {
|
|
311
1249
|
return {
|
|
312
1250
|
authToken: 'string',
|
|
313
1251
|
productInstanceId: 'string',
|
|
314
|
-
|
|
1252
|
+
modelName: 'string',
|
|
1253
|
+
requestDimensions: 'string',
|
|
1254
|
+
requestMetrics: 'string',
|
|
1255
|
+
units: { 'type': 'array', 'itemType': PriceUnits },
|
|
315
1256
|
};
|
|
316
1257
|
}
|
|
317
1258
|
}
|
|
318
|
-
exports.
|
|
319
|
-
class
|
|
1259
|
+
exports.ExecMaasPriceRequest = ExecMaasPriceRequest;
|
|
1260
|
+
class ExecMaasPriceResponse extends $tea.Model {
|
|
320
1261
|
constructor(map) {
|
|
321
1262
|
super(map);
|
|
322
1263
|
}
|
|
@@ -325,12 +1266,17 @@ class QueryAssetResponse extends $tea.Model {
|
|
|
325
1266
|
reqMsgId: 'req_msg_id',
|
|
326
1267
|
resultCode: 'result_code',
|
|
327
1268
|
resultMsg: 'result_msg',
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
1269
|
+
matched: 'matched',
|
|
1270
|
+
fallback: 'fallback',
|
|
1271
|
+
priceRuleCode: 'price_rule_code',
|
|
1272
|
+
matchedRuleVersion: 'matched_rule_version',
|
|
1273
|
+
ruleName: 'rule_name',
|
|
1274
|
+
priority: 'priority',
|
|
1275
|
+
requestItems: 'request_items',
|
|
1276
|
+
unitEstimates: 'unit_estimates',
|
|
1277
|
+
totalAmount: 'total_amount',
|
|
1278
|
+
currency: 'currency',
|
|
1279
|
+
message: 'message',
|
|
334
1280
|
};
|
|
335
1281
|
}
|
|
336
1282
|
static types() {
|
|
@@ -338,16 +1284,21 @@ class QueryAssetResponse extends $tea.Model {
|
|
|
338
1284
|
reqMsgId: 'string',
|
|
339
1285
|
resultCode: 'string',
|
|
340
1286
|
resultMsg: 'string',
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
1287
|
+
matched: 'boolean',
|
|
1288
|
+
fallback: 'boolean',
|
|
1289
|
+
priceRuleCode: 'string',
|
|
1290
|
+
matchedRuleVersion: 'number',
|
|
1291
|
+
ruleName: 'string',
|
|
1292
|
+
priority: 'number',
|
|
1293
|
+
requestItems: { 'type': 'array', 'itemType': RequestItems },
|
|
1294
|
+
unitEstimates: { 'type': 'array', 'itemType': UnitEstimates },
|
|
1295
|
+
totalAmount: 'string',
|
|
1296
|
+
currency: 'string',
|
|
1297
|
+
message: 'string',
|
|
347
1298
|
};
|
|
348
1299
|
}
|
|
349
1300
|
}
|
|
350
|
-
exports.
|
|
1301
|
+
exports.ExecMaasPriceResponse = ExecMaasPriceResponse;
|
|
351
1302
|
class Client {
|
|
352
1303
|
/**
|
|
353
1304
|
* @remarks
|
|
@@ -440,7 +1391,7 @@ class Client {
|
|
|
440
1391
|
req_msg_id: alipay_util_1.default.getNonce(),
|
|
441
1392
|
access_key: this._accessKeyId,
|
|
442
1393
|
base_sdk_version: "TeaSDK-2.0",
|
|
443
|
-
sdk_version: "1.
|
|
1394
|
+
sdk_version: "1.1.1",
|
|
444
1395
|
_prod_code: "CREATIVE",
|
|
445
1396
|
_prod_channel: "default",
|
|
446
1397
|
};
|
|
@@ -553,6 +1504,196 @@ class Client {
|
|
|
553
1504
|
tea_util_1.default.validateModel(request);
|
|
554
1505
|
return $tea.cast(await this.doRequest("1.0", "antdigital.creative.asset.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryAssetResponse({}));
|
|
555
1506
|
}
|
|
1507
|
+
/**
|
|
1508
|
+
* @remarks
|
|
1509
|
+
* Description: 上传资产
|
|
1510
|
+
* Summary: 上传资产
|
|
1511
|
+
*/
|
|
1512
|
+
async uploadMaasAsset(request) {
|
|
1513
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1514
|
+
let headers = {};
|
|
1515
|
+
return await this.uploadMaasAssetEx(request, headers, runtime);
|
|
1516
|
+
}
|
|
1517
|
+
/**
|
|
1518
|
+
* @remarks
|
|
1519
|
+
* Description: 上传资产
|
|
1520
|
+
* Summary: 上传资产
|
|
1521
|
+
*/
|
|
1522
|
+
async uploadMaasAssetEx(request, headers, runtime) {
|
|
1523
|
+
tea_util_1.default.validateModel(request);
|
|
1524
|
+
return $tea.cast(await this.doRequest("1.0", "antdigital.creative.maas.asset.upload", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new UploadMaasAssetResponse({}));
|
|
1525
|
+
}
|
|
1526
|
+
/**
|
|
1527
|
+
* @remarks
|
|
1528
|
+
* Description: 查询资产
|
|
1529
|
+
* Summary: 查询资产
|
|
1530
|
+
*/
|
|
1531
|
+
async queryMaasAsset(request) {
|
|
1532
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1533
|
+
let headers = {};
|
|
1534
|
+
return await this.queryMaasAssetEx(request, headers, runtime);
|
|
1535
|
+
}
|
|
1536
|
+
/**
|
|
1537
|
+
* @remarks
|
|
1538
|
+
* Description: 查询资产
|
|
1539
|
+
* Summary: 查询资产
|
|
1540
|
+
*/
|
|
1541
|
+
async queryMaasAssetEx(request, headers, runtime) {
|
|
1542
|
+
tea_util_1.default.validateModel(request);
|
|
1543
|
+
return $tea.cast(await this.doRequest("1.0", "antdigital.creative.maas.asset.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryMaasAssetResponse({}));
|
|
1544
|
+
}
|
|
1545
|
+
/**
|
|
1546
|
+
* @remarks
|
|
1547
|
+
* Description: 创建视频任务
|
|
1548
|
+
* Summary: 创建视频任务
|
|
1549
|
+
*/
|
|
1550
|
+
async pushMaasVideo(request) {
|
|
1551
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1552
|
+
let headers = {};
|
|
1553
|
+
return await this.pushMaasVideoEx(request, headers, runtime);
|
|
1554
|
+
}
|
|
1555
|
+
/**
|
|
1556
|
+
* @remarks
|
|
1557
|
+
* Description: 创建视频任务
|
|
1558
|
+
* Summary: 创建视频任务
|
|
1559
|
+
*/
|
|
1560
|
+
async pushMaasVideoEx(request, headers, runtime) {
|
|
1561
|
+
tea_util_1.default.validateModel(request);
|
|
1562
|
+
return $tea.cast(await this.doRequest("1.0", "antdigital.creative.maas.video.push", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new PushMaasVideoResponse({}));
|
|
1563
|
+
}
|
|
1564
|
+
/**
|
|
1565
|
+
* @remarks
|
|
1566
|
+
* Description: 查询视频任务
|
|
1567
|
+
* Summary: 查询视频任务
|
|
1568
|
+
*/
|
|
1569
|
+
async queryMaasVideo(request) {
|
|
1570
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1571
|
+
let headers = {};
|
|
1572
|
+
return await this.queryMaasVideoEx(request, headers, runtime);
|
|
1573
|
+
}
|
|
1574
|
+
/**
|
|
1575
|
+
* @remarks
|
|
1576
|
+
* Description: 查询视频任务
|
|
1577
|
+
* Summary: 查询视频任务
|
|
1578
|
+
*/
|
|
1579
|
+
async queryMaasVideoEx(request, headers, runtime) {
|
|
1580
|
+
tea_util_1.default.validateModel(request);
|
|
1581
|
+
return $tea.cast(await this.doRequest("1.0", "antdigital.creative.maas.video.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryMaasVideoResponse({}));
|
|
1582
|
+
}
|
|
1583
|
+
/**
|
|
1584
|
+
* @remarks
|
|
1585
|
+
* Description: 生成图片
|
|
1586
|
+
* Summary: 生成图片
|
|
1587
|
+
*/
|
|
1588
|
+
async pushMaasImage(request) {
|
|
1589
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1590
|
+
let headers = {};
|
|
1591
|
+
return await this.pushMaasImageEx(request, headers, runtime);
|
|
1592
|
+
}
|
|
1593
|
+
/**
|
|
1594
|
+
* @remarks
|
|
1595
|
+
* Description: 生成图片
|
|
1596
|
+
* Summary: 生成图片
|
|
1597
|
+
*/
|
|
1598
|
+
async pushMaasImageEx(request, headers, runtime) {
|
|
1599
|
+
tea_util_1.default.validateModel(request);
|
|
1600
|
+
return $tea.cast(await this.doRequest("1.0", "antdigital.creative.maas.image.push", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new PushMaasImageResponse({}));
|
|
1601
|
+
}
|
|
1602
|
+
/**
|
|
1603
|
+
* @remarks
|
|
1604
|
+
* Description: 查询图片任务
|
|
1605
|
+
* Summary: 查询图片任务
|
|
1606
|
+
*/
|
|
1607
|
+
async queryMaasImage(request) {
|
|
1608
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1609
|
+
let headers = {};
|
|
1610
|
+
return await this.queryMaasImageEx(request, headers, runtime);
|
|
1611
|
+
}
|
|
1612
|
+
/**
|
|
1613
|
+
* @remarks
|
|
1614
|
+
* Description: 查询图片任务
|
|
1615
|
+
* Summary: 查询图片任务
|
|
1616
|
+
*/
|
|
1617
|
+
async queryMaasImageEx(request, headers, runtime) {
|
|
1618
|
+
tea_util_1.default.validateModel(request);
|
|
1619
|
+
return $tea.cast(await this.doRequest("1.0", "antdigital.creative.maas.image.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryMaasImageResponse({}));
|
|
1620
|
+
}
|
|
1621
|
+
/**
|
|
1622
|
+
* @remarks
|
|
1623
|
+
* Description: 创建音频任务
|
|
1624
|
+
* Summary: 创建音频任务
|
|
1625
|
+
*/
|
|
1626
|
+
async pushMaasAudio(request) {
|
|
1627
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1628
|
+
let headers = {};
|
|
1629
|
+
return await this.pushMaasAudioEx(request, headers, runtime);
|
|
1630
|
+
}
|
|
1631
|
+
/**
|
|
1632
|
+
* @remarks
|
|
1633
|
+
* Description: 创建音频任务
|
|
1634
|
+
* Summary: 创建音频任务
|
|
1635
|
+
*/
|
|
1636
|
+
async pushMaasAudioEx(request, headers, runtime) {
|
|
1637
|
+
tea_util_1.default.validateModel(request);
|
|
1638
|
+
return $tea.cast(await this.doRequest("1.0", "antdigital.creative.maas.audio.push", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new PushMaasAudioResponse({}));
|
|
1639
|
+
}
|
|
1640
|
+
/**
|
|
1641
|
+
* @remarks
|
|
1642
|
+
* Description: 查询音频任务
|
|
1643
|
+
* Summary: 查询音频任务
|
|
1644
|
+
*/
|
|
1645
|
+
async queryMaasAudio(request) {
|
|
1646
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1647
|
+
let headers = {};
|
|
1648
|
+
return await this.queryMaasAudioEx(request, headers, runtime);
|
|
1649
|
+
}
|
|
1650
|
+
/**
|
|
1651
|
+
* @remarks
|
|
1652
|
+
* Description: 查询音频任务
|
|
1653
|
+
* Summary: 查询音频任务
|
|
1654
|
+
*/
|
|
1655
|
+
async queryMaasAudioEx(request, headers, runtime) {
|
|
1656
|
+
tea_util_1.default.validateModel(request);
|
|
1657
|
+
return $tea.cast(await this.doRequest("1.0", "antdigital.creative.maas.audio.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryMaasAudioResponse({}));
|
|
1658
|
+
}
|
|
1659
|
+
/**
|
|
1660
|
+
* @remarks
|
|
1661
|
+
* Description: 文本同步调用
|
|
1662
|
+
* Summary: 文本同步调用
|
|
1663
|
+
*/
|
|
1664
|
+
async execMaasChatsync(request) {
|
|
1665
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1666
|
+
let headers = {};
|
|
1667
|
+
return await this.execMaasChatsyncEx(request, headers, runtime);
|
|
1668
|
+
}
|
|
1669
|
+
/**
|
|
1670
|
+
* @remarks
|
|
1671
|
+
* Description: 文本同步调用
|
|
1672
|
+
* Summary: 文本同步调用
|
|
1673
|
+
*/
|
|
1674
|
+
async execMaasChatsyncEx(request, headers, runtime) {
|
|
1675
|
+
tea_util_1.default.validateModel(request);
|
|
1676
|
+
return $tea.cast(await this.doRequest("1.0", "antdigital.creative.maas.chatsync.exec", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new ExecMaasChatsyncResponse({}));
|
|
1677
|
+
}
|
|
1678
|
+
/**
|
|
1679
|
+
* @remarks
|
|
1680
|
+
* Description: 价格试算
|
|
1681
|
+
* Summary: 价格试算
|
|
1682
|
+
*/
|
|
1683
|
+
async execMaasPrice(request) {
|
|
1684
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1685
|
+
let headers = {};
|
|
1686
|
+
return await this.execMaasPriceEx(request, headers, runtime);
|
|
1687
|
+
}
|
|
1688
|
+
/**
|
|
1689
|
+
* @remarks
|
|
1690
|
+
* Description: 价格试算
|
|
1691
|
+
* Summary: 价格试算
|
|
1692
|
+
*/
|
|
1693
|
+
async execMaasPriceEx(request, headers, runtime) {
|
|
1694
|
+
tea_util_1.default.validateModel(request);
|
|
1695
|
+
return $tea.cast(await this.doRequest("1.0", "antdigital.creative.maas.price.exec", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new ExecMaasPriceResponse({}));
|
|
1696
|
+
}
|
|
556
1697
|
}
|
|
557
1698
|
exports.default = Client;
|
|
558
1699
|
//# sourceMappingURL=client.js.map
|