@antchain/antdigital-creative 1.0.7 → 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 +1045 -62
- package/dist/client.js +1227 -88
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +2065 -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,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',
|
|
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
|
+
};
|
|
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',
|
|
95
986
|
};
|
|
96
987
|
}
|
|
97
988
|
static types() {
|
|
98
989
|
return {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
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',
|
|
102
1000
|
};
|
|
103
1001
|
}
|
|
104
1002
|
}
|
|
105
|
-
exports.
|
|
106
|
-
|
|
107
|
-
class Usage extends $tea.Model {
|
|
1003
|
+
exports.PushMaasImageResponse = PushMaasImageResponse;
|
|
1004
|
+
class QueryMaasImageRequest extends $tea.Model {
|
|
108
1005
|
constructor(map) {
|
|
109
1006
|
super(map);
|
|
110
1007
|
}
|
|
111
1008
|
static names() {
|
|
112
1009
|
return {
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
completionTokens: 'completion_tokens',
|
|
117
|
-
completionCredits: 'completion_credits',
|
|
1010
|
+
authToken: 'auth_token',
|
|
1011
|
+
productInstanceId: 'product_instance_id',
|
|
1012
|
+
taskId: 'task_id',
|
|
118
1013
|
};
|
|
119
1014
|
}
|
|
120
1015
|
static types() {
|
|
121
1016
|
return {
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
completionTokens: 'number',
|
|
126
|
-
completionCredits: 'number',
|
|
1017
|
+
authToken: 'string',
|
|
1018
|
+
productInstanceId: 'string',
|
|
1019
|
+
taskId: 'string',
|
|
127
1020
|
};
|
|
128
1021
|
}
|
|
129
1022
|
}
|
|
130
|
-
exports.
|
|
131
|
-
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 {
|
|
132
1061
|
constructor(map) {
|
|
133
1062
|
super(map);
|
|
134
1063
|
}
|
|
@@ -136,35 +1065,33 @@ class PushVideogenerationRequest extends $tea.Model {
|
|
|
136
1065
|
return {
|
|
137
1066
|
authToken: 'auth_token',
|
|
138
1067
|
productInstanceId: 'product_instance_id',
|
|
1068
|
+
requestId: 'request_id',
|
|
139
1069
|
model: 'model',
|
|
1070
|
+
capabilityType: 'capability_type',
|
|
140
1071
|
prompt: 'prompt',
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
duration: 'duration',
|
|
146
|
-
requestId: 'request_id',
|
|
147
|
-
ext: 'ext',
|
|
1072
|
+
text: 'text',
|
|
1073
|
+
audioUrls: 'audio_urls',
|
|
1074
|
+
imageUrls: 'image_urls',
|
|
1075
|
+
extParams: 'ext_params',
|
|
148
1076
|
};
|
|
149
1077
|
}
|
|
150
1078
|
static types() {
|
|
151
1079
|
return {
|
|
152
1080
|
authToken: 'string',
|
|
153
1081
|
productInstanceId: 'string',
|
|
1082
|
+
requestId: 'string',
|
|
154
1083
|
model: 'string',
|
|
1084
|
+
capabilityType: 'string',
|
|
155
1085
|
prompt: 'string',
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
duration: 'number',
|
|
161
|
-
requestId: 'string',
|
|
162
|
-
ext: 'string',
|
|
1086
|
+
text: 'string',
|
|
1087
|
+
audioUrls: { 'type': 'array', 'itemType': 'string' },
|
|
1088
|
+
imageUrls: { 'type': 'array', 'itemType': 'string' },
|
|
1089
|
+
extParams: 'string',
|
|
163
1090
|
};
|
|
164
1091
|
}
|
|
165
1092
|
}
|
|
166
|
-
exports.
|
|
167
|
-
class
|
|
1093
|
+
exports.PushMaasAudioRequest = PushMaasAudioRequest;
|
|
1094
|
+
class PushMaasAudioResponse extends $tea.Model {
|
|
168
1095
|
constructor(map) {
|
|
169
1096
|
super(map);
|
|
170
1097
|
}
|
|
@@ -176,7 +1103,6 @@ class PushVideogenerationResponse extends $tea.Model {
|
|
|
176
1103
|
taskId: 'task_id',
|
|
177
1104
|
status: 'status',
|
|
178
1105
|
model: 'model',
|
|
179
|
-
ext: 'ext',
|
|
180
1106
|
};
|
|
181
1107
|
}
|
|
182
1108
|
static types() {
|
|
@@ -187,12 +1113,11 @@ class PushVideogenerationResponse extends $tea.Model {
|
|
|
187
1113
|
taskId: 'string',
|
|
188
1114
|
status: 'string',
|
|
189
1115
|
model: 'string',
|
|
190
|
-
ext: 'string',
|
|
191
1116
|
};
|
|
192
1117
|
}
|
|
193
1118
|
}
|
|
194
|
-
exports.
|
|
195
|
-
class
|
|
1119
|
+
exports.PushMaasAudioResponse = PushMaasAudioResponse;
|
|
1120
|
+
class QueryMaasAudioRequest extends $tea.Model {
|
|
196
1121
|
constructor(map) {
|
|
197
1122
|
super(map);
|
|
198
1123
|
}
|
|
@@ -211,8 +1136,8 @@ class QueryVideogenerationRequest extends $tea.Model {
|
|
|
211
1136
|
};
|
|
212
1137
|
}
|
|
213
1138
|
}
|
|
214
|
-
exports.
|
|
215
|
-
class
|
|
1139
|
+
exports.QueryMaasAudioRequest = QueryMaasAudioRequest;
|
|
1140
|
+
class QueryMaasAudioResponse extends $tea.Model {
|
|
216
1141
|
constructor(map) {
|
|
217
1142
|
super(map);
|
|
218
1143
|
}
|
|
@@ -223,11 +1148,12 @@ class QueryVideogenerationResponse extends $tea.Model {
|
|
|
223
1148
|
resultMsg: 'result_msg',
|
|
224
1149
|
taskId: 'task_id',
|
|
225
1150
|
status: 'status',
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
1151
|
+
model: 'model',
|
|
1152
|
+
createdAt: 'created_at',
|
|
1153
|
+
content: 'content',
|
|
229
1154
|
usage: 'usage',
|
|
230
1155
|
extraInfo: 'extra_info',
|
|
1156
|
+
error: 'error',
|
|
231
1157
|
};
|
|
232
1158
|
}
|
|
233
1159
|
static types() {
|
|
@@ -237,16 +1163,17 @@ class QueryVideogenerationResponse extends $tea.Model {
|
|
|
237
1163
|
resultMsg: 'string',
|
|
238
1164
|
taskId: 'string',
|
|
239
1165
|
status: 'string',
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
usage:
|
|
244
|
-
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,
|
|
245
1172
|
};
|
|
246
1173
|
}
|
|
247
1174
|
}
|
|
248
|
-
exports.
|
|
249
|
-
class
|
|
1175
|
+
exports.QueryMaasAudioResponse = QueryMaasAudioResponse;
|
|
1176
|
+
class ExecMaasChatsyncRequest extends $tea.Model {
|
|
250
1177
|
constructor(map) {
|
|
251
1178
|
super(map);
|
|
252
1179
|
}
|
|
@@ -254,23 +1181,25 @@ class UploadAssetRequest extends $tea.Model {
|
|
|
254
1181
|
return {
|
|
255
1182
|
authToken: 'auth_token',
|
|
256
1183
|
productInstanceId: 'product_instance_id',
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
1184
|
+
requestId: 'request_id',
|
|
1185
|
+
model: 'model',
|
|
1186
|
+
messages: 'messages',
|
|
1187
|
+
extParams: 'ext_params',
|
|
260
1188
|
};
|
|
261
1189
|
}
|
|
262
1190
|
static types() {
|
|
263
1191
|
return {
|
|
264
1192
|
authToken: 'string',
|
|
265
1193
|
productInstanceId: 'string',
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
1194
|
+
requestId: 'string',
|
|
1195
|
+
model: 'string',
|
|
1196
|
+
messages: { 'type': 'array', 'itemType': ChatMessages },
|
|
1197
|
+
extParams: 'string',
|
|
269
1198
|
};
|
|
270
1199
|
}
|
|
271
1200
|
}
|
|
272
|
-
exports.
|
|
273
|
-
class
|
|
1201
|
+
exports.ExecMaasChatsyncRequest = ExecMaasChatsyncRequest;
|
|
1202
|
+
class ExecMaasChatsyncResponse extends $tea.Model {
|
|
274
1203
|
constructor(map) {
|
|
275
1204
|
super(map);
|
|
276
1205
|
}
|
|
@@ -279,9 +1208,11 @@ class UploadAssetResponse extends $tea.Model {
|
|
|
279
1208
|
reqMsgId: 'req_msg_id',
|
|
280
1209
|
resultCode: 'result_code',
|
|
281
1210
|
resultMsg: 'result_msg',
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
1211
|
+
id: 'id',
|
|
1212
|
+
model: 'model',
|
|
1213
|
+
content: 'content',
|
|
1214
|
+
finishReason: 'finish_reason',
|
|
1215
|
+
usage: 'usage',
|
|
285
1216
|
};
|
|
286
1217
|
}
|
|
287
1218
|
static types() {
|
|
@@ -289,14 +1220,16 @@ class UploadAssetResponse extends $tea.Model {
|
|
|
289
1220
|
reqMsgId: 'string',
|
|
290
1221
|
resultCode: 'string',
|
|
291
1222
|
resultMsg: 'string',
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
1223
|
+
id: 'string',
|
|
1224
|
+
model: 'string',
|
|
1225
|
+
content: 'string',
|
|
1226
|
+
finishReason: 'string',
|
|
1227
|
+
usage: ChatUsage,
|
|
295
1228
|
};
|
|
296
1229
|
}
|
|
297
1230
|
}
|
|
298
|
-
exports.
|
|
299
|
-
class
|
|
1231
|
+
exports.ExecMaasChatsyncResponse = ExecMaasChatsyncResponse;
|
|
1232
|
+
class ExecMaasPriceRequest extends $tea.Model {
|
|
300
1233
|
constructor(map) {
|
|
301
1234
|
super(map);
|
|
302
1235
|
}
|
|
@@ -304,19 +1237,25 @@ class QueryAssetRequest extends $tea.Model {
|
|
|
304
1237
|
return {
|
|
305
1238
|
authToken: 'auth_token',
|
|
306
1239
|
productInstanceId: 'product_instance_id',
|
|
307
|
-
|
|
1240
|
+
modelName: 'model_name',
|
|
1241
|
+
requestDimensions: 'request_dimensions',
|
|
1242
|
+
requestMetrics: 'request_metrics',
|
|
1243
|
+
units: 'units',
|
|
308
1244
|
};
|
|
309
1245
|
}
|
|
310
1246
|
static types() {
|
|
311
1247
|
return {
|
|
312
1248
|
authToken: 'string',
|
|
313
1249
|
productInstanceId: 'string',
|
|
314
|
-
|
|
1250
|
+
modelName: 'string',
|
|
1251
|
+
requestDimensions: 'string',
|
|
1252
|
+
requestMetrics: 'string',
|
|
1253
|
+
units: { 'type': 'array', 'itemType': PriceUnits },
|
|
315
1254
|
};
|
|
316
1255
|
}
|
|
317
1256
|
}
|
|
318
|
-
exports.
|
|
319
|
-
class
|
|
1257
|
+
exports.ExecMaasPriceRequest = ExecMaasPriceRequest;
|
|
1258
|
+
class ExecMaasPriceResponse extends $tea.Model {
|
|
320
1259
|
constructor(map) {
|
|
321
1260
|
super(map);
|
|
322
1261
|
}
|
|
@@ -325,12 +1264,17 @@ class QueryAssetResponse extends $tea.Model {
|
|
|
325
1264
|
reqMsgId: 'req_msg_id',
|
|
326
1265
|
resultCode: 'result_code',
|
|
327
1266
|
resultMsg: 'result_msg',
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
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',
|
|
334
1278
|
};
|
|
335
1279
|
}
|
|
336
1280
|
static types() {
|
|
@@ -338,16 +1282,21 @@ class QueryAssetResponse extends $tea.Model {
|
|
|
338
1282
|
reqMsgId: 'string',
|
|
339
1283
|
resultCode: 'string',
|
|
340
1284
|
resultMsg: 'string',
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
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',
|
|
347
1296
|
};
|
|
348
1297
|
}
|
|
349
1298
|
}
|
|
350
|
-
exports.
|
|
1299
|
+
exports.ExecMaasPriceResponse = ExecMaasPriceResponse;
|
|
351
1300
|
class Client {
|
|
352
1301
|
/**
|
|
353
1302
|
* @remarks
|
|
@@ -440,7 +1389,7 @@ class Client {
|
|
|
440
1389
|
req_msg_id: alipay_util_1.default.getNonce(),
|
|
441
1390
|
access_key: this._accessKeyId,
|
|
442
1391
|
base_sdk_version: "TeaSDK-2.0",
|
|
443
|
-
sdk_version: "1.0
|
|
1392
|
+
sdk_version: "1.1.0",
|
|
444
1393
|
_prod_code: "CREATIVE",
|
|
445
1394
|
_prod_channel: "default",
|
|
446
1395
|
};
|
|
@@ -553,6 +1502,196 @@ class Client {
|
|
|
553
1502
|
tea_util_1.default.validateModel(request);
|
|
554
1503
|
return $tea.cast(await this.doRequest("1.0", "antdigital.creative.asset.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryAssetResponse({}));
|
|
555
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
|
+
}
|
|
556
1695
|
}
|
|
557
1696
|
exports.default = Client;
|
|
558
1697
|
//# sourceMappingURL=client.js.map
|