@antchain/antdigital-creative 1.0.6 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +1048 -60
- package/dist/client.js +1227 -86
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +2068 -161
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,44 +354,710 @@ class ExtraInfo extends $tea.Model {
|
|
|
89
354
|
}
|
|
90
355
|
static names() {
|
|
91
356
|
return {
|
|
92
|
-
originalTaskId: 'original_task_id',
|
|
93
|
-
originalVideoUrl: 'original_video_url',
|
|
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
|
+
};
|
|
606
|
+
}
|
|
607
|
+
static types() {
|
|
608
|
+
return {
|
|
609
|
+
authToken: 'string',
|
|
610
|
+
productInstanceId: 'string',
|
|
611
|
+
assetType: 'string',
|
|
612
|
+
fileUrl: 'string',
|
|
613
|
+
assetName: 'string',
|
|
614
|
+
};
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
exports.UploadAssetRequest = UploadAssetRequest;
|
|
618
|
+
class UploadAssetResponse extends $tea.Model {
|
|
619
|
+
constructor(map) {
|
|
620
|
+
super(map);
|
|
621
|
+
}
|
|
622
|
+
static names() {
|
|
623
|
+
return {
|
|
624
|
+
reqMsgId: 'req_msg_id',
|
|
625
|
+
resultCode: 'result_code',
|
|
626
|
+
resultMsg: 'result_msg',
|
|
627
|
+
assetId: 'asset_id',
|
|
628
|
+
status: 'status',
|
|
629
|
+
assetType: 'asset_type',
|
|
630
|
+
};
|
|
631
|
+
}
|
|
632
|
+
static types() {
|
|
633
|
+
return {
|
|
634
|
+
reqMsgId: 'string',
|
|
635
|
+
resultCode: 'string',
|
|
636
|
+
resultMsg: 'string',
|
|
637
|
+
assetId: 'string',
|
|
638
|
+
status: 'string',
|
|
639
|
+
assetType: 'string',
|
|
640
|
+
};
|
|
641
|
+
}
|
|
642
|
+
}
|
|
643
|
+
exports.UploadAssetResponse = UploadAssetResponse;
|
|
644
|
+
class QueryAssetRequest extends $tea.Model {
|
|
645
|
+
constructor(map) {
|
|
646
|
+
super(map);
|
|
647
|
+
}
|
|
648
|
+
static names() {
|
|
649
|
+
return {
|
|
650
|
+
authToken: 'auth_token',
|
|
651
|
+
productInstanceId: 'product_instance_id',
|
|
652
|
+
assetId: 'asset_id',
|
|
653
|
+
};
|
|
654
|
+
}
|
|
655
|
+
static types() {
|
|
656
|
+
return {
|
|
657
|
+
authToken: 'string',
|
|
658
|
+
productInstanceId: 'string',
|
|
659
|
+
assetId: 'string',
|
|
660
|
+
};
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
exports.QueryAssetRequest = QueryAssetRequest;
|
|
664
|
+
class QueryAssetResponse extends $tea.Model {
|
|
665
|
+
constructor(map) {
|
|
666
|
+
super(map);
|
|
667
|
+
}
|
|
668
|
+
static names() {
|
|
669
|
+
return {
|
|
670
|
+
reqMsgId: 'req_msg_id',
|
|
671
|
+
resultCode: 'result_code',
|
|
672
|
+
resultMsg: 'result_msg',
|
|
673
|
+
assetId: 'asset_id',
|
|
674
|
+
status: 'status',
|
|
675
|
+
assetType: 'asset_type',
|
|
676
|
+
assetUrl: 'asset_url',
|
|
677
|
+
errorMessage: 'error_message',
|
|
678
|
+
errorCode: 'error_code',
|
|
679
|
+
};
|
|
680
|
+
}
|
|
681
|
+
static types() {
|
|
682
|
+
return {
|
|
683
|
+
reqMsgId: 'string',
|
|
684
|
+
resultCode: 'string',
|
|
685
|
+
resultMsg: 'string',
|
|
686
|
+
assetId: 'string',
|
|
687
|
+
status: 'string',
|
|
688
|
+
assetType: 'string',
|
|
689
|
+
assetUrl: 'string',
|
|
690
|
+
errorMessage: 'string',
|
|
691
|
+
errorCode: 'string',
|
|
692
|
+
};
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
exports.QueryAssetResponse = QueryAssetResponse;
|
|
696
|
+
class UploadMaasAssetRequest extends $tea.Model {
|
|
697
|
+
constructor(map) {
|
|
698
|
+
super(map);
|
|
699
|
+
}
|
|
700
|
+
static names() {
|
|
701
|
+
return {
|
|
702
|
+
authToken: 'auth_token',
|
|
703
|
+
productInstanceId: 'product_instance_id',
|
|
704
|
+
requestId: 'request_id',
|
|
705
|
+
fileUrl: 'file_url',
|
|
706
|
+
assetType: 'asset_type',
|
|
707
|
+
assetName: 'asset_name',
|
|
708
|
+
};
|
|
709
|
+
}
|
|
710
|
+
static types() {
|
|
711
|
+
return {
|
|
712
|
+
authToken: 'string',
|
|
713
|
+
productInstanceId: 'string',
|
|
714
|
+
requestId: 'string',
|
|
715
|
+
fileUrl: 'string',
|
|
716
|
+
assetType: 'string',
|
|
717
|
+
assetName: 'string',
|
|
718
|
+
};
|
|
719
|
+
}
|
|
720
|
+
}
|
|
721
|
+
exports.UploadMaasAssetRequest = UploadMaasAssetRequest;
|
|
722
|
+
class UploadMaasAssetResponse extends $tea.Model {
|
|
723
|
+
constructor(map) {
|
|
724
|
+
super(map);
|
|
725
|
+
}
|
|
726
|
+
static names() {
|
|
727
|
+
return {
|
|
728
|
+
reqMsgId: 'req_msg_id',
|
|
729
|
+
resultCode: 'result_code',
|
|
730
|
+
resultMsg: 'result_msg',
|
|
731
|
+
assetId: 'asset_id',
|
|
732
|
+
status: 'status',
|
|
733
|
+
assetType: 'asset_type',
|
|
734
|
+
};
|
|
735
|
+
}
|
|
736
|
+
static types() {
|
|
737
|
+
return {
|
|
738
|
+
reqMsgId: 'string',
|
|
739
|
+
resultCode: 'string',
|
|
740
|
+
resultMsg: 'string',
|
|
741
|
+
assetId: 'string',
|
|
742
|
+
status: 'string',
|
|
743
|
+
assetType: 'string',
|
|
744
|
+
};
|
|
745
|
+
}
|
|
746
|
+
}
|
|
747
|
+
exports.UploadMaasAssetResponse = UploadMaasAssetResponse;
|
|
748
|
+
class QueryMaasAssetRequest extends $tea.Model {
|
|
749
|
+
constructor(map) {
|
|
750
|
+
super(map);
|
|
751
|
+
}
|
|
752
|
+
static names() {
|
|
753
|
+
return {
|
|
754
|
+
authToken: 'auth_token',
|
|
755
|
+
productInstanceId: 'product_instance_id',
|
|
756
|
+
assetId: 'asset_id',
|
|
757
|
+
};
|
|
758
|
+
}
|
|
759
|
+
static types() {
|
|
760
|
+
return {
|
|
761
|
+
authToken: 'string',
|
|
762
|
+
productInstanceId: 'string',
|
|
763
|
+
assetId: 'string',
|
|
764
|
+
};
|
|
765
|
+
}
|
|
766
|
+
}
|
|
767
|
+
exports.QueryMaasAssetRequest = QueryMaasAssetRequest;
|
|
768
|
+
class QueryMaasAssetResponse extends $tea.Model {
|
|
769
|
+
constructor(map) {
|
|
770
|
+
super(map);
|
|
771
|
+
}
|
|
772
|
+
static names() {
|
|
773
|
+
return {
|
|
774
|
+
reqMsgId: 'req_msg_id',
|
|
775
|
+
resultCode: 'result_code',
|
|
776
|
+
resultMsg: 'result_msg',
|
|
777
|
+
assetId: 'asset_id',
|
|
778
|
+
status: 'status',
|
|
779
|
+
assetType: 'asset_type',
|
|
780
|
+
url: 'url',
|
|
781
|
+
name: 'name',
|
|
782
|
+
createdAt: 'created_at',
|
|
783
|
+
updatedAt: 'updated_at',
|
|
784
|
+
error: 'error',
|
|
785
|
+
};
|
|
786
|
+
}
|
|
787
|
+
static types() {
|
|
788
|
+
return {
|
|
789
|
+
reqMsgId: 'string',
|
|
790
|
+
resultCode: 'string',
|
|
791
|
+
resultMsg: 'string',
|
|
792
|
+
assetId: 'string',
|
|
793
|
+
status: 'string',
|
|
794
|
+
assetType: 'string',
|
|
795
|
+
url: 'string',
|
|
796
|
+
name: 'string',
|
|
797
|
+
createdAt: 'string',
|
|
798
|
+
updatedAt: 'string',
|
|
799
|
+
error: Error,
|
|
800
|
+
};
|
|
801
|
+
}
|
|
802
|
+
}
|
|
803
|
+
exports.QueryMaasAssetResponse = QueryMaasAssetResponse;
|
|
804
|
+
class PushMaasVideoRequest extends $tea.Model {
|
|
805
|
+
constructor(map) {
|
|
806
|
+
super(map);
|
|
807
|
+
}
|
|
808
|
+
static names() {
|
|
809
|
+
return {
|
|
810
|
+
authToken: 'auth_token',
|
|
811
|
+
productInstanceId: 'product_instance_id',
|
|
812
|
+
requestId: 'request_id',
|
|
813
|
+
model: 'model',
|
|
814
|
+
capabilityType: 'capability_type',
|
|
815
|
+
content: 'content',
|
|
816
|
+
duration: 'duration',
|
|
817
|
+
ratio: 'ratio',
|
|
818
|
+
resolution: 'resolution',
|
|
819
|
+
generateAudio: 'generate_audio',
|
|
820
|
+
watermark: 'watermark',
|
|
821
|
+
extParams: 'ext_params',
|
|
822
|
+
};
|
|
823
|
+
}
|
|
824
|
+
static types() {
|
|
825
|
+
return {
|
|
826
|
+
authToken: 'string',
|
|
827
|
+
productInstanceId: 'string',
|
|
828
|
+
requestId: 'string',
|
|
829
|
+
model: 'string',
|
|
830
|
+
capabilityType: 'string',
|
|
831
|
+
content: { 'type': 'array', 'itemType': ContentInfo },
|
|
832
|
+
duration: 'string',
|
|
833
|
+
ratio: 'string',
|
|
834
|
+
resolution: 'string',
|
|
835
|
+
generateAudio: 'boolean',
|
|
836
|
+
watermark: 'boolean',
|
|
837
|
+
extParams: 'string',
|
|
838
|
+
};
|
|
839
|
+
}
|
|
840
|
+
}
|
|
841
|
+
exports.PushMaasVideoRequest = PushMaasVideoRequest;
|
|
842
|
+
class PushMaasVideoResponse extends $tea.Model {
|
|
843
|
+
constructor(map) {
|
|
844
|
+
super(map);
|
|
845
|
+
}
|
|
846
|
+
static names() {
|
|
847
|
+
return {
|
|
848
|
+
reqMsgId: 'req_msg_id',
|
|
849
|
+
resultCode: 'result_code',
|
|
850
|
+
resultMsg: 'result_msg',
|
|
851
|
+
taskId: 'task_id',
|
|
852
|
+
status: 'status',
|
|
853
|
+
model: 'model',
|
|
854
|
+
};
|
|
855
|
+
}
|
|
856
|
+
static types() {
|
|
857
|
+
return {
|
|
858
|
+
reqMsgId: 'string',
|
|
859
|
+
resultCode: 'string',
|
|
860
|
+
resultMsg: 'string',
|
|
861
|
+
taskId: 'string',
|
|
862
|
+
status: 'string',
|
|
863
|
+
model: 'string',
|
|
864
|
+
};
|
|
865
|
+
}
|
|
866
|
+
}
|
|
867
|
+
exports.PushMaasVideoResponse = PushMaasVideoResponse;
|
|
868
|
+
class QueryMaasVideoRequest extends $tea.Model {
|
|
869
|
+
constructor(map) {
|
|
870
|
+
super(map);
|
|
871
|
+
}
|
|
872
|
+
static names() {
|
|
873
|
+
return {
|
|
874
|
+
authToken: 'auth_token',
|
|
875
|
+
productInstanceId: 'product_instance_id',
|
|
876
|
+
taskId: 'task_id',
|
|
877
|
+
};
|
|
878
|
+
}
|
|
879
|
+
static types() {
|
|
880
|
+
return {
|
|
881
|
+
authToken: 'string',
|
|
882
|
+
productInstanceId: 'string',
|
|
883
|
+
taskId: 'string',
|
|
884
|
+
};
|
|
885
|
+
}
|
|
886
|
+
}
|
|
887
|
+
exports.QueryMaasVideoRequest = QueryMaasVideoRequest;
|
|
888
|
+
class QueryMaasVideoResponse extends $tea.Model {
|
|
889
|
+
constructor(map) {
|
|
890
|
+
super(map);
|
|
891
|
+
}
|
|
892
|
+
static names() {
|
|
893
|
+
return {
|
|
894
|
+
reqMsgId: 'req_msg_id',
|
|
895
|
+
resultCode: 'result_code',
|
|
896
|
+
resultMsg: 'result_msg',
|
|
897
|
+
taskId: 'task_id',
|
|
898
|
+
status: 'status',
|
|
899
|
+
model: 'model',
|
|
900
|
+
createdAt: 'created_at',
|
|
901
|
+
updatedAt: 'updated_at',
|
|
902
|
+
content: 'content',
|
|
903
|
+
duration: 'duration',
|
|
904
|
+
ratio: 'ratio',
|
|
905
|
+
resolution: 'resolution',
|
|
906
|
+
generateAudio: 'generate_audio',
|
|
907
|
+
usage: 'usage',
|
|
908
|
+
extraInfo: 'extra_info',
|
|
909
|
+
error: 'error',
|
|
910
|
+
};
|
|
911
|
+
}
|
|
912
|
+
static types() {
|
|
913
|
+
return {
|
|
914
|
+
reqMsgId: 'string',
|
|
915
|
+
resultCode: 'string',
|
|
916
|
+
resultMsg: 'string',
|
|
917
|
+
taskId: 'string',
|
|
918
|
+
status: 'string',
|
|
919
|
+
model: 'string',
|
|
920
|
+
createdAt: 'string',
|
|
921
|
+
updatedAt: 'string',
|
|
922
|
+
content: VideoUrl,
|
|
923
|
+
duration: 'string',
|
|
924
|
+
ratio: 'string',
|
|
925
|
+
resolution: 'string',
|
|
926
|
+
generateAudio: 'boolean',
|
|
927
|
+
usage: { 'type': 'array', 'itemType': VideoUsage },
|
|
928
|
+
extraInfo: 'string',
|
|
929
|
+
error: Error,
|
|
930
|
+
};
|
|
931
|
+
}
|
|
932
|
+
}
|
|
933
|
+
exports.QueryMaasVideoResponse = QueryMaasVideoResponse;
|
|
934
|
+
class PushMaasImageRequest extends $tea.Model {
|
|
935
|
+
constructor(map) {
|
|
936
|
+
super(map);
|
|
937
|
+
}
|
|
938
|
+
static names() {
|
|
939
|
+
return {
|
|
940
|
+
authToken: 'auth_token',
|
|
941
|
+
productInstanceId: 'product_instance_id',
|
|
942
|
+
requestId: 'request_id',
|
|
943
|
+
model: 'model',
|
|
944
|
+
capabilityType: 'capability_type',
|
|
945
|
+
generateMode: 'generate_mode',
|
|
946
|
+
prompt: 'prompt',
|
|
947
|
+
imageUrls: 'image_urls',
|
|
948
|
+
size: 'size',
|
|
949
|
+
n: 'n',
|
|
950
|
+
extParams: 'ext_params',
|
|
951
|
+
};
|
|
952
|
+
}
|
|
953
|
+
static types() {
|
|
954
|
+
return {
|
|
955
|
+
authToken: 'string',
|
|
956
|
+
productInstanceId: 'string',
|
|
957
|
+
requestId: 'string',
|
|
958
|
+
model: 'string',
|
|
959
|
+
capabilityType: 'string',
|
|
960
|
+
generateMode: 'string',
|
|
961
|
+
prompt: 'string',
|
|
962
|
+
imageUrls: { 'type': 'array', 'itemType': 'string' },
|
|
963
|
+
size: 'string',
|
|
964
|
+
n: 'number',
|
|
965
|
+
extParams: 'string',
|
|
966
|
+
};
|
|
967
|
+
}
|
|
968
|
+
}
|
|
969
|
+
exports.PushMaasImageRequest = PushMaasImageRequest;
|
|
970
|
+
class PushMaasImageResponse extends $tea.Model {
|
|
971
|
+
constructor(map) {
|
|
972
|
+
super(map);
|
|
973
|
+
}
|
|
974
|
+
static names() {
|
|
975
|
+
return {
|
|
976
|
+
reqMsgId: 'req_msg_id',
|
|
977
|
+
resultCode: 'result_code',
|
|
978
|
+
resultMsg: 'result_msg',
|
|
979
|
+
taskId: 'task_id',
|
|
980
|
+
status: 'status',
|
|
981
|
+
model: 'model',
|
|
982
|
+
content: 'content',
|
|
983
|
+
usage: 'usage',
|
|
984
|
+
error: 'error',
|
|
985
|
+
extraInfo: 'extra_info',
|
|
94
986
|
};
|
|
95
987
|
}
|
|
96
988
|
static types() {
|
|
97
989
|
return {
|
|
98
|
-
|
|
99
|
-
|
|
990
|
+
reqMsgId: 'string',
|
|
991
|
+
resultCode: 'string',
|
|
992
|
+
resultMsg: 'string',
|
|
993
|
+
taskId: 'string',
|
|
994
|
+
status: 'string',
|
|
995
|
+
model: 'string',
|
|
996
|
+
content: ImageUrlsList,
|
|
997
|
+
usage: { 'type': 'array', 'itemType': ImageUsage },
|
|
998
|
+
error: Error,
|
|
999
|
+
extraInfo: 'string',
|
|
100
1000
|
};
|
|
101
1001
|
}
|
|
102
1002
|
}
|
|
103
|
-
exports.
|
|
104
|
-
|
|
105
|
-
class Usage extends $tea.Model {
|
|
1003
|
+
exports.PushMaasImageResponse = PushMaasImageResponse;
|
|
1004
|
+
class QueryMaasImageRequest extends $tea.Model {
|
|
106
1005
|
constructor(map) {
|
|
107
1006
|
super(map);
|
|
108
1007
|
}
|
|
109
1008
|
static names() {
|
|
110
1009
|
return {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
completionTokens: 'completion_tokens',
|
|
115
|
-
completionCredits: 'completion_credits',
|
|
1010
|
+
authToken: 'auth_token',
|
|
1011
|
+
productInstanceId: 'product_instance_id',
|
|
1012
|
+
taskId: 'task_id',
|
|
116
1013
|
};
|
|
117
1014
|
}
|
|
118
1015
|
static types() {
|
|
119
1016
|
return {
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
completionTokens: 'number',
|
|
124
|
-
completionCredits: 'number',
|
|
1017
|
+
authToken: 'string',
|
|
1018
|
+
productInstanceId: 'string',
|
|
1019
|
+
taskId: 'string',
|
|
125
1020
|
};
|
|
126
1021
|
}
|
|
127
1022
|
}
|
|
128
|
-
exports.
|
|
129
|
-
class
|
|
1023
|
+
exports.QueryMaasImageRequest = QueryMaasImageRequest;
|
|
1024
|
+
class QueryMaasImageResponse extends $tea.Model {
|
|
1025
|
+
constructor(map) {
|
|
1026
|
+
super(map);
|
|
1027
|
+
}
|
|
1028
|
+
static names() {
|
|
1029
|
+
return {
|
|
1030
|
+
reqMsgId: 'req_msg_id',
|
|
1031
|
+
resultCode: 'result_code',
|
|
1032
|
+
resultMsg: 'result_msg',
|
|
1033
|
+
taskId: 'task_id',
|
|
1034
|
+
status: 'status',
|
|
1035
|
+
model: 'model',
|
|
1036
|
+
createdAt: 'created_at',
|
|
1037
|
+
content: 'content',
|
|
1038
|
+
usage: 'usage',
|
|
1039
|
+
extraInfo: 'extra_info',
|
|
1040
|
+
error: 'error',
|
|
1041
|
+
};
|
|
1042
|
+
}
|
|
1043
|
+
static types() {
|
|
1044
|
+
return {
|
|
1045
|
+
reqMsgId: 'string',
|
|
1046
|
+
resultCode: 'string',
|
|
1047
|
+
resultMsg: 'string',
|
|
1048
|
+
taskId: 'string',
|
|
1049
|
+
status: 'string',
|
|
1050
|
+
model: 'string',
|
|
1051
|
+
createdAt: 'string',
|
|
1052
|
+
content: ImageUrlsList,
|
|
1053
|
+
usage: { 'type': 'array', 'itemType': ImageUsage },
|
|
1054
|
+
extraInfo: 'string',
|
|
1055
|
+
error: Error,
|
|
1056
|
+
};
|
|
1057
|
+
}
|
|
1058
|
+
}
|
|
1059
|
+
exports.QueryMaasImageResponse = QueryMaasImageResponse;
|
|
1060
|
+
class PushMaasAudioRequest extends $tea.Model {
|
|
130
1061
|
constructor(map) {
|
|
131
1062
|
super(map);
|
|
132
1063
|
}
|
|
@@ -134,35 +1065,33 @@ class PushVideogenerationRequest extends $tea.Model {
|
|
|
134
1065
|
return {
|
|
135
1066
|
authToken: 'auth_token',
|
|
136
1067
|
productInstanceId: 'product_instance_id',
|
|
1068
|
+
requestId: 'request_id',
|
|
137
1069
|
model: 'model',
|
|
1070
|
+
capabilityType: 'capability_type',
|
|
138
1071
|
prompt: 'prompt',
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
duration: 'duration',
|
|
144
|
-
requestId: 'request_id',
|
|
145
|
-
ext: 'ext',
|
|
1072
|
+
text: 'text',
|
|
1073
|
+
audioUrls: 'audio_urls',
|
|
1074
|
+
imageUrls: 'image_urls',
|
|
1075
|
+
extParams: 'ext_params',
|
|
146
1076
|
};
|
|
147
1077
|
}
|
|
148
1078
|
static types() {
|
|
149
1079
|
return {
|
|
150
1080
|
authToken: 'string',
|
|
151
1081
|
productInstanceId: 'string',
|
|
1082
|
+
requestId: 'string',
|
|
152
1083
|
model: 'string',
|
|
1084
|
+
capabilityType: 'string',
|
|
153
1085
|
prompt: 'string',
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
duration: 'number',
|
|
159
|
-
requestId: 'string',
|
|
160
|
-
ext: 'string',
|
|
1086
|
+
text: 'string',
|
|
1087
|
+
audioUrls: { 'type': 'array', 'itemType': 'string' },
|
|
1088
|
+
imageUrls: { 'type': 'array', 'itemType': 'string' },
|
|
1089
|
+
extParams: 'string',
|
|
161
1090
|
};
|
|
162
1091
|
}
|
|
163
1092
|
}
|
|
164
|
-
exports.
|
|
165
|
-
class
|
|
1093
|
+
exports.PushMaasAudioRequest = PushMaasAudioRequest;
|
|
1094
|
+
class PushMaasAudioResponse extends $tea.Model {
|
|
166
1095
|
constructor(map) {
|
|
167
1096
|
super(map);
|
|
168
1097
|
}
|
|
@@ -174,7 +1103,6 @@ class PushVideogenerationResponse extends $tea.Model {
|
|
|
174
1103
|
taskId: 'task_id',
|
|
175
1104
|
status: 'status',
|
|
176
1105
|
model: 'model',
|
|
177
|
-
ext: 'ext',
|
|
178
1106
|
};
|
|
179
1107
|
}
|
|
180
1108
|
static types() {
|
|
@@ -185,12 +1113,11 @@ class PushVideogenerationResponse extends $tea.Model {
|
|
|
185
1113
|
taskId: 'string',
|
|
186
1114
|
status: 'string',
|
|
187
1115
|
model: 'string',
|
|
188
|
-
ext: 'string',
|
|
189
1116
|
};
|
|
190
1117
|
}
|
|
191
1118
|
}
|
|
192
|
-
exports.
|
|
193
|
-
class
|
|
1119
|
+
exports.PushMaasAudioResponse = PushMaasAudioResponse;
|
|
1120
|
+
class QueryMaasAudioRequest extends $tea.Model {
|
|
194
1121
|
constructor(map) {
|
|
195
1122
|
super(map);
|
|
196
1123
|
}
|
|
@@ -209,8 +1136,8 @@ class QueryVideogenerationRequest extends $tea.Model {
|
|
|
209
1136
|
};
|
|
210
1137
|
}
|
|
211
1138
|
}
|
|
212
|
-
exports.
|
|
213
|
-
class
|
|
1139
|
+
exports.QueryMaasAudioRequest = QueryMaasAudioRequest;
|
|
1140
|
+
class QueryMaasAudioResponse extends $tea.Model {
|
|
214
1141
|
constructor(map) {
|
|
215
1142
|
super(map);
|
|
216
1143
|
}
|
|
@@ -221,11 +1148,12 @@ class QueryVideogenerationResponse extends $tea.Model {
|
|
|
221
1148
|
resultMsg: 'result_msg',
|
|
222
1149
|
taskId: 'task_id',
|
|
223
1150
|
status: 'status',
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
1151
|
+
model: 'model',
|
|
1152
|
+
createdAt: 'created_at',
|
|
1153
|
+
content: 'content',
|
|
227
1154
|
usage: 'usage',
|
|
228
1155
|
extraInfo: 'extra_info',
|
|
1156
|
+
error: 'error',
|
|
229
1157
|
};
|
|
230
1158
|
}
|
|
231
1159
|
static types() {
|
|
@@ -235,16 +1163,17 @@ class QueryVideogenerationResponse extends $tea.Model {
|
|
|
235
1163
|
resultMsg: 'string',
|
|
236
1164
|
taskId: 'string',
|
|
237
1165
|
status: 'string',
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
usage:
|
|
242
|
-
extraInfo:
|
|
1166
|
+
model: 'string',
|
|
1167
|
+
createdAt: 'string',
|
|
1168
|
+
content: { 'type': 'array', 'itemType': AudioList },
|
|
1169
|
+
usage: { 'type': 'array', 'itemType': AudioUsage },
|
|
1170
|
+
extraInfo: 'string',
|
|
1171
|
+
error: Error,
|
|
243
1172
|
};
|
|
244
1173
|
}
|
|
245
1174
|
}
|
|
246
|
-
exports.
|
|
247
|
-
class
|
|
1175
|
+
exports.QueryMaasAudioResponse = QueryMaasAudioResponse;
|
|
1176
|
+
class ExecMaasChatsyncRequest extends $tea.Model {
|
|
248
1177
|
constructor(map) {
|
|
249
1178
|
super(map);
|
|
250
1179
|
}
|
|
@@ -252,23 +1181,25 @@ class UploadAssetRequest extends $tea.Model {
|
|
|
252
1181
|
return {
|
|
253
1182
|
authToken: 'auth_token',
|
|
254
1183
|
productInstanceId: 'product_instance_id',
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
1184
|
+
requestId: 'request_id',
|
|
1185
|
+
model: 'model',
|
|
1186
|
+
messages: 'messages',
|
|
1187
|
+
extParams: 'ext_params',
|
|
258
1188
|
};
|
|
259
1189
|
}
|
|
260
1190
|
static types() {
|
|
261
1191
|
return {
|
|
262
1192
|
authToken: 'string',
|
|
263
1193
|
productInstanceId: 'string',
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
1194
|
+
requestId: 'string',
|
|
1195
|
+
model: 'string',
|
|
1196
|
+
messages: { 'type': 'array', 'itemType': ChatMessages },
|
|
1197
|
+
extParams: 'string',
|
|
267
1198
|
};
|
|
268
1199
|
}
|
|
269
1200
|
}
|
|
270
|
-
exports.
|
|
271
|
-
class
|
|
1201
|
+
exports.ExecMaasChatsyncRequest = ExecMaasChatsyncRequest;
|
|
1202
|
+
class ExecMaasChatsyncResponse extends $tea.Model {
|
|
272
1203
|
constructor(map) {
|
|
273
1204
|
super(map);
|
|
274
1205
|
}
|
|
@@ -277,9 +1208,11 @@ class UploadAssetResponse extends $tea.Model {
|
|
|
277
1208
|
reqMsgId: 'req_msg_id',
|
|
278
1209
|
resultCode: 'result_code',
|
|
279
1210
|
resultMsg: 'result_msg',
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
1211
|
+
id: 'id',
|
|
1212
|
+
model: 'model',
|
|
1213
|
+
content: 'content',
|
|
1214
|
+
finishReason: 'finish_reason',
|
|
1215
|
+
usage: 'usage',
|
|
283
1216
|
};
|
|
284
1217
|
}
|
|
285
1218
|
static types() {
|
|
@@ -287,14 +1220,16 @@ class UploadAssetResponse extends $tea.Model {
|
|
|
287
1220
|
reqMsgId: 'string',
|
|
288
1221
|
resultCode: 'string',
|
|
289
1222
|
resultMsg: 'string',
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
1223
|
+
id: 'string',
|
|
1224
|
+
model: 'string',
|
|
1225
|
+
content: 'string',
|
|
1226
|
+
finishReason: 'string',
|
|
1227
|
+
usage: ChatUsage,
|
|
293
1228
|
};
|
|
294
1229
|
}
|
|
295
1230
|
}
|
|
296
|
-
exports.
|
|
297
|
-
class
|
|
1231
|
+
exports.ExecMaasChatsyncResponse = ExecMaasChatsyncResponse;
|
|
1232
|
+
class ExecMaasPriceRequest extends $tea.Model {
|
|
298
1233
|
constructor(map) {
|
|
299
1234
|
super(map);
|
|
300
1235
|
}
|
|
@@ -302,19 +1237,25 @@ class QueryAssetRequest extends $tea.Model {
|
|
|
302
1237
|
return {
|
|
303
1238
|
authToken: 'auth_token',
|
|
304
1239
|
productInstanceId: 'product_instance_id',
|
|
305
|
-
|
|
1240
|
+
modelName: 'model_name',
|
|
1241
|
+
requestDimensions: 'request_dimensions',
|
|
1242
|
+
requestMetrics: 'request_metrics',
|
|
1243
|
+
units: 'units',
|
|
306
1244
|
};
|
|
307
1245
|
}
|
|
308
1246
|
static types() {
|
|
309
1247
|
return {
|
|
310
1248
|
authToken: 'string',
|
|
311
1249
|
productInstanceId: 'string',
|
|
312
|
-
|
|
1250
|
+
modelName: 'string',
|
|
1251
|
+
requestDimensions: 'string',
|
|
1252
|
+
requestMetrics: 'string',
|
|
1253
|
+
units: { 'type': 'array', 'itemType': PriceUnits },
|
|
313
1254
|
};
|
|
314
1255
|
}
|
|
315
1256
|
}
|
|
316
|
-
exports.
|
|
317
|
-
class
|
|
1257
|
+
exports.ExecMaasPriceRequest = ExecMaasPriceRequest;
|
|
1258
|
+
class ExecMaasPriceResponse extends $tea.Model {
|
|
318
1259
|
constructor(map) {
|
|
319
1260
|
super(map);
|
|
320
1261
|
}
|
|
@@ -323,12 +1264,17 @@ class QueryAssetResponse extends $tea.Model {
|
|
|
323
1264
|
reqMsgId: 'req_msg_id',
|
|
324
1265
|
resultCode: 'result_code',
|
|
325
1266
|
resultMsg: 'result_msg',
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
1267
|
+
matched: 'matched',
|
|
1268
|
+
fallback: 'fallback',
|
|
1269
|
+
priceRuleCode: 'price_rule_code',
|
|
1270
|
+
matchedRuleVersion: 'matched_rule_version',
|
|
1271
|
+
ruleName: 'rule_name',
|
|
1272
|
+
priority: 'priority',
|
|
1273
|
+
requestItems: 'request_items',
|
|
1274
|
+
unitEstimates: 'unit_estimates',
|
|
1275
|
+
totalAmount: 'total_amount',
|
|
1276
|
+
currency: 'currency',
|
|
1277
|
+
message: 'message',
|
|
332
1278
|
};
|
|
333
1279
|
}
|
|
334
1280
|
static types() {
|
|
@@ -336,16 +1282,21 @@ class QueryAssetResponse extends $tea.Model {
|
|
|
336
1282
|
reqMsgId: 'string',
|
|
337
1283
|
resultCode: 'string',
|
|
338
1284
|
resultMsg: 'string',
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
1285
|
+
matched: 'boolean',
|
|
1286
|
+
fallback: 'boolean',
|
|
1287
|
+
priceRuleCode: 'string',
|
|
1288
|
+
matchedRuleVersion: 'number',
|
|
1289
|
+
ruleName: 'string',
|
|
1290
|
+
priority: 'number',
|
|
1291
|
+
requestItems: { 'type': 'array', 'itemType': RequestItems },
|
|
1292
|
+
unitEstimates: { 'type': 'array', 'itemType': UnitEstimates },
|
|
1293
|
+
totalAmount: 'string',
|
|
1294
|
+
currency: 'string',
|
|
1295
|
+
message: 'string',
|
|
345
1296
|
};
|
|
346
1297
|
}
|
|
347
1298
|
}
|
|
348
|
-
exports.
|
|
1299
|
+
exports.ExecMaasPriceResponse = ExecMaasPriceResponse;
|
|
349
1300
|
class Client {
|
|
350
1301
|
/**
|
|
351
1302
|
* @remarks
|
|
@@ -438,7 +1389,7 @@ class Client {
|
|
|
438
1389
|
req_msg_id: alipay_util_1.default.getNonce(),
|
|
439
1390
|
access_key: this._accessKeyId,
|
|
440
1391
|
base_sdk_version: "TeaSDK-2.0",
|
|
441
|
-
sdk_version: "1.0
|
|
1392
|
+
sdk_version: "1.1.0",
|
|
442
1393
|
_prod_code: "CREATIVE",
|
|
443
1394
|
_prod_channel: "default",
|
|
444
1395
|
};
|
|
@@ -551,6 +1502,196 @@ class Client {
|
|
|
551
1502
|
tea_util_1.default.validateModel(request);
|
|
552
1503
|
return $tea.cast(await this.doRequest("1.0", "antdigital.creative.asset.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryAssetResponse({}));
|
|
553
1504
|
}
|
|
1505
|
+
/**
|
|
1506
|
+
* @remarks
|
|
1507
|
+
* Description: 上传资产
|
|
1508
|
+
* Summary: 上传资产
|
|
1509
|
+
*/
|
|
1510
|
+
async uploadMaasAsset(request) {
|
|
1511
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1512
|
+
let headers = {};
|
|
1513
|
+
return await this.uploadMaasAssetEx(request, headers, runtime);
|
|
1514
|
+
}
|
|
1515
|
+
/**
|
|
1516
|
+
* @remarks
|
|
1517
|
+
* Description: 上传资产
|
|
1518
|
+
* Summary: 上传资产
|
|
1519
|
+
*/
|
|
1520
|
+
async uploadMaasAssetEx(request, headers, runtime) {
|
|
1521
|
+
tea_util_1.default.validateModel(request);
|
|
1522
|
+
return $tea.cast(await this.doRequest("1.0", "antdigital.creative.maas.asset.upload", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new UploadMaasAssetResponse({}));
|
|
1523
|
+
}
|
|
1524
|
+
/**
|
|
1525
|
+
* @remarks
|
|
1526
|
+
* Description: 查询资产
|
|
1527
|
+
* Summary: 查询资产
|
|
1528
|
+
*/
|
|
1529
|
+
async queryMaasAsset(request) {
|
|
1530
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1531
|
+
let headers = {};
|
|
1532
|
+
return await this.queryMaasAssetEx(request, headers, runtime);
|
|
1533
|
+
}
|
|
1534
|
+
/**
|
|
1535
|
+
* @remarks
|
|
1536
|
+
* Description: 查询资产
|
|
1537
|
+
* Summary: 查询资产
|
|
1538
|
+
*/
|
|
1539
|
+
async queryMaasAssetEx(request, headers, runtime) {
|
|
1540
|
+
tea_util_1.default.validateModel(request);
|
|
1541
|
+
return $tea.cast(await this.doRequest("1.0", "antdigital.creative.maas.asset.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryMaasAssetResponse({}));
|
|
1542
|
+
}
|
|
1543
|
+
/**
|
|
1544
|
+
* @remarks
|
|
1545
|
+
* Description: 创建视频任务
|
|
1546
|
+
* Summary: 创建视频任务
|
|
1547
|
+
*/
|
|
1548
|
+
async pushMaasVideo(request) {
|
|
1549
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1550
|
+
let headers = {};
|
|
1551
|
+
return await this.pushMaasVideoEx(request, headers, runtime);
|
|
1552
|
+
}
|
|
1553
|
+
/**
|
|
1554
|
+
* @remarks
|
|
1555
|
+
* Description: 创建视频任务
|
|
1556
|
+
* Summary: 创建视频任务
|
|
1557
|
+
*/
|
|
1558
|
+
async pushMaasVideoEx(request, headers, runtime) {
|
|
1559
|
+
tea_util_1.default.validateModel(request);
|
|
1560
|
+
return $tea.cast(await this.doRequest("1.0", "antdigital.creative.maas.video.push", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new PushMaasVideoResponse({}));
|
|
1561
|
+
}
|
|
1562
|
+
/**
|
|
1563
|
+
* @remarks
|
|
1564
|
+
* Description: 查询视频任务
|
|
1565
|
+
* Summary: 查询视频任务
|
|
1566
|
+
*/
|
|
1567
|
+
async queryMaasVideo(request) {
|
|
1568
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1569
|
+
let headers = {};
|
|
1570
|
+
return await this.queryMaasVideoEx(request, headers, runtime);
|
|
1571
|
+
}
|
|
1572
|
+
/**
|
|
1573
|
+
* @remarks
|
|
1574
|
+
* Description: 查询视频任务
|
|
1575
|
+
* Summary: 查询视频任务
|
|
1576
|
+
*/
|
|
1577
|
+
async queryMaasVideoEx(request, headers, runtime) {
|
|
1578
|
+
tea_util_1.default.validateModel(request);
|
|
1579
|
+
return $tea.cast(await this.doRequest("1.0", "antdigital.creative.maas.video.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryMaasVideoResponse({}));
|
|
1580
|
+
}
|
|
1581
|
+
/**
|
|
1582
|
+
* @remarks
|
|
1583
|
+
* Description: 生成图片
|
|
1584
|
+
* Summary: 生成图片
|
|
1585
|
+
*/
|
|
1586
|
+
async pushMaasImage(request) {
|
|
1587
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1588
|
+
let headers = {};
|
|
1589
|
+
return await this.pushMaasImageEx(request, headers, runtime);
|
|
1590
|
+
}
|
|
1591
|
+
/**
|
|
1592
|
+
* @remarks
|
|
1593
|
+
* Description: 生成图片
|
|
1594
|
+
* Summary: 生成图片
|
|
1595
|
+
*/
|
|
1596
|
+
async pushMaasImageEx(request, headers, runtime) {
|
|
1597
|
+
tea_util_1.default.validateModel(request);
|
|
1598
|
+
return $tea.cast(await this.doRequest("1.0", "antdigital.creative.maas.image.push", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new PushMaasImageResponse({}));
|
|
1599
|
+
}
|
|
1600
|
+
/**
|
|
1601
|
+
* @remarks
|
|
1602
|
+
* Description: 查询图片任务
|
|
1603
|
+
* Summary: 查询图片任务
|
|
1604
|
+
*/
|
|
1605
|
+
async queryMaasImage(request) {
|
|
1606
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1607
|
+
let headers = {};
|
|
1608
|
+
return await this.queryMaasImageEx(request, headers, runtime);
|
|
1609
|
+
}
|
|
1610
|
+
/**
|
|
1611
|
+
* @remarks
|
|
1612
|
+
* Description: 查询图片任务
|
|
1613
|
+
* Summary: 查询图片任务
|
|
1614
|
+
*/
|
|
1615
|
+
async queryMaasImageEx(request, headers, runtime) {
|
|
1616
|
+
tea_util_1.default.validateModel(request);
|
|
1617
|
+
return $tea.cast(await this.doRequest("1.0", "antdigital.creative.maas.image.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryMaasImageResponse({}));
|
|
1618
|
+
}
|
|
1619
|
+
/**
|
|
1620
|
+
* @remarks
|
|
1621
|
+
* Description: 创建音频任务
|
|
1622
|
+
* Summary: 创建音频任务
|
|
1623
|
+
*/
|
|
1624
|
+
async pushMaasAudio(request) {
|
|
1625
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1626
|
+
let headers = {};
|
|
1627
|
+
return await this.pushMaasAudioEx(request, headers, runtime);
|
|
1628
|
+
}
|
|
1629
|
+
/**
|
|
1630
|
+
* @remarks
|
|
1631
|
+
* Description: 创建音频任务
|
|
1632
|
+
* Summary: 创建音频任务
|
|
1633
|
+
*/
|
|
1634
|
+
async pushMaasAudioEx(request, headers, runtime) {
|
|
1635
|
+
tea_util_1.default.validateModel(request);
|
|
1636
|
+
return $tea.cast(await this.doRequest("1.0", "antdigital.creative.maas.audio.push", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new PushMaasAudioResponse({}));
|
|
1637
|
+
}
|
|
1638
|
+
/**
|
|
1639
|
+
* @remarks
|
|
1640
|
+
* Description: 查询音频任务
|
|
1641
|
+
* Summary: 查询音频任务
|
|
1642
|
+
*/
|
|
1643
|
+
async queryMaasAudio(request) {
|
|
1644
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1645
|
+
let headers = {};
|
|
1646
|
+
return await this.queryMaasAudioEx(request, headers, runtime);
|
|
1647
|
+
}
|
|
1648
|
+
/**
|
|
1649
|
+
* @remarks
|
|
1650
|
+
* Description: 查询音频任务
|
|
1651
|
+
* Summary: 查询音频任务
|
|
1652
|
+
*/
|
|
1653
|
+
async queryMaasAudioEx(request, headers, runtime) {
|
|
1654
|
+
tea_util_1.default.validateModel(request);
|
|
1655
|
+
return $tea.cast(await this.doRequest("1.0", "antdigital.creative.maas.audio.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryMaasAudioResponse({}));
|
|
1656
|
+
}
|
|
1657
|
+
/**
|
|
1658
|
+
* @remarks
|
|
1659
|
+
* Description: 文本同步调用
|
|
1660
|
+
* Summary: 文本同步调用
|
|
1661
|
+
*/
|
|
1662
|
+
async execMaasChatsync(request) {
|
|
1663
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1664
|
+
let headers = {};
|
|
1665
|
+
return await this.execMaasChatsyncEx(request, headers, runtime);
|
|
1666
|
+
}
|
|
1667
|
+
/**
|
|
1668
|
+
* @remarks
|
|
1669
|
+
* Description: 文本同步调用
|
|
1670
|
+
* Summary: 文本同步调用
|
|
1671
|
+
*/
|
|
1672
|
+
async execMaasChatsyncEx(request, headers, runtime) {
|
|
1673
|
+
tea_util_1.default.validateModel(request);
|
|
1674
|
+
return $tea.cast(await this.doRequest("1.0", "antdigital.creative.maas.chatsync.exec", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new ExecMaasChatsyncResponse({}));
|
|
1675
|
+
}
|
|
1676
|
+
/**
|
|
1677
|
+
* @remarks
|
|
1678
|
+
* Description: 价格试算
|
|
1679
|
+
* Summary: 价格试算
|
|
1680
|
+
*/
|
|
1681
|
+
async execMaasPrice(request) {
|
|
1682
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1683
|
+
let headers = {};
|
|
1684
|
+
return await this.execMaasPriceEx(request, headers, runtime);
|
|
1685
|
+
}
|
|
1686
|
+
/**
|
|
1687
|
+
* @remarks
|
|
1688
|
+
* Description: 价格试算
|
|
1689
|
+
* Summary: 价格试算
|
|
1690
|
+
*/
|
|
1691
|
+
async execMaasPriceEx(request, headers, runtime) {
|
|
1692
|
+
tea_util_1.default.validateModel(request);
|
|
1693
|
+
return $tea.cast(await this.doRequest("1.0", "antdigital.creative.maas.price.exec", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new ExecMaasPriceResponse({}));
|
|
1694
|
+
}
|
|
554
1695
|
}
|
|
555
1696
|
exports.default = Client;
|
|
556
1697
|
//# sourceMappingURL=client.js.map
|