@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/src/client.ts CHANGED
@@ -180,39 +180,95 @@ export class Config extends $tea.Model {
180
180
  }
181
181
  }
182
182
 
183
- // 附加信息
184
- export class ExtraInfo extends $tea.Model {
185
- // 原厂任务ID
183
+ // 只计一次的请求级费用明细
184
+ export class RequestItems extends $tea.Model {
185
+ // 规则编码
186
186
  /**
187
187
  * @example
188
- * xxx-xxx-xxx
188
+ * 规则编码
189
189
  */
190
- originalTaskId?: string;
191
- // 原厂视频输出URL
190
+ priceRuleCode?: string;
191
+ // 收费项编码
192
192
  /**
193
193
  * @example
194
- * https://xxx
194
+ * 收费项编码
195
195
  */
196
- originalVideoUrl?: string;
197
- // 原厂响应体快照
196
+ chargeItemCode?: string;
197
+ // 计量指标类型
198
198
  /**
199
199
  * @example
200
- * "{"task_id":"csg-xxx-xx"...}"
200
+ * 计量指标类型
201
201
  */
202
- originalResponseSnapshot?: string;
202
+ metricType?: string;
203
+ // 原始计量数量
204
+ /**
205
+ * @example
206
+ * 原始计量数量
207
+ */
208
+ quantity?: string;
209
+ // 免费额度
210
+ /**
211
+ * @example
212
+ * 免费额度
213
+ */
214
+ freeQuota?: string;
215
+ // 计费数量(扣除免费额度后的值)
216
+ /**
217
+ * @example
218
+ * 计费数量(扣除免费额度后的值)
219
+ */
220
+ billableQuantity?: string;
221
+ // 计费单位大小
222
+ /**
223
+ * @example
224
+ * 计费单位大小
225
+ */
226
+ unitSize?: string;
227
+ // 单价
228
+ /**
229
+ * @example
230
+ * 单价
231
+ */
232
+ unitPrice?: string;
233
+ // 币种
234
+ /**
235
+ * @example
236
+ * 币种
237
+ */
238
+ currency?: string;
239
+ // 单项金额
240
+ /**
241
+ * @example
242
+ * 单项金额
243
+ */
244
+ amount?: string;
203
245
  static names(): { [key: string]: string } {
204
246
  return {
205
- originalTaskId: 'original_task_id',
206
- originalVideoUrl: 'original_video_url',
207
- originalResponseSnapshot: 'original_response_snapshot',
247
+ priceRuleCode: 'price_rule_code',
248
+ chargeItemCode: 'charge_item_code',
249
+ metricType: 'metric_type',
250
+ quantity: 'quantity',
251
+ freeQuota: 'free_quota',
252
+ billableQuantity: 'billable_quantity',
253
+ unitSize: 'unit_size',
254
+ unitPrice: 'unit_price',
255
+ currency: 'currency',
256
+ amount: 'amount',
208
257
  };
209
258
  }
210
259
 
211
260
  static types(): { [key: string]: any } {
212
261
  return {
213
- originalTaskId: 'string',
214
- originalVideoUrl: 'string',
215
- originalResponseSnapshot: 'string',
262
+ priceRuleCode: 'string',
263
+ chargeItemCode: 'string',
264
+ metricType: 'string',
265
+ quantity: 'string',
266
+ freeQuota: 'string',
267
+ billableQuantity: 'string',
268
+ unitSize: 'string',
269
+ unitPrice: 'string',
270
+ currency: 'string',
271
+ amount: 'string',
216
272
  };
217
273
  }
218
274
 
@@ -221,55 +277,101 @@ export class ExtraInfo extends $tea.Model {
221
277
  }
222
278
  }
223
279
 
224
- // 用量信息
225
- export class Usage extends $tea.Model {
226
- // 分辨率
280
+ // content 内 type 为 image_url、audio_url、video_url 所需要的 url
281
+ export class ContentUrl extends $tea.Model {
282
+ // url
227
283
  /**
228
284
  * @example
229
- * 720p,1080p
285
+ * www.test.com/123
230
286
  */
231
- resolution?: string;
232
- // 视频时长(单位:秒)
287
+ url?: string;
288
+ static names(): { [key: string]: string } {
289
+ return {
290
+ url: 'url',
291
+ };
292
+ }
293
+
294
+ static types(): { [key: string]: any } {
295
+ return {
296
+ url: 'string',
297
+ };
298
+ }
299
+
300
+ constructor(map?: { [key: string]: any }) {
301
+ super(map);
302
+ }
303
+ }
304
+
305
+ // 生图任务, 图片 URL 列表
306
+ export class ImageUrlsList extends $tea.Model {
307
+ // 图片 URL 列表
308
+ imageUrls?: string[];
309
+ static names(): { [key: string]: string } {
310
+ return {
311
+ imageUrls: 'image_urls',
312
+ };
313
+ }
314
+
315
+ static types(): { [key: string]: any } {
316
+ return {
317
+ imageUrls: { 'type': 'array', 'itemType': 'string' },
318
+ };
319
+ }
320
+
321
+ constructor(map?: { [key: string]: any }) {
322
+ super(map);
323
+ }
324
+ }
325
+
326
+ // 消耗
327
+ export class ChatUsage extends $tea.Model {
328
+ // 输入 token 数
233
329
  /**
234
330
  * @example
235
- * 15
331
+ * 121212
236
332
  */
237
- duration?: number;
238
- // 视频比例
333
+ promptTokens?: string;
334
+ // 输出 token 数
239
335
  /**
240
336
  * @example
241
- * 16:9
337
+ * 1111
242
338
  */
243
- ratio?: string;
244
- // 消耗 token 数
339
+ completionTokens?: string;
340
+ // 总 token 数
245
341
  /**
246
342
  * @example
247
- * 10800
343
+ * 121212
248
344
  */
249
- completionTokens?: number;
250
- // 消耗credit数
345
+ totalTokens?: string;
346
+ // 本次调用实际消耗金额
251
347
  /**
252
348
  * @example
253
- * 7
349
+ * 11.01
254
350
  */
255
- completionCredits?: number;
351
+ originalPrice?: string;
352
+ // 币种
353
+ /**
354
+ * @example
355
+ * CNY
356
+ */
357
+ currency?: string;
256
358
  static names(): { [key: string]: string } {
257
359
  return {
258
- resolution: 'resolution',
259
- duration: 'duration',
260
- ratio: 'ratio',
360
+ promptTokens: 'prompt_tokens',
261
361
  completionTokens: 'completion_tokens',
262
- completionCredits: 'completion_credits',
362
+ totalTokens: 'total_tokens',
363
+ originalPrice: 'original_price',
364
+ currency: 'currency',
263
365
  };
264
366
  }
265
367
 
266
368
  static types(): { [key: string]: any } {
267
369
  return {
268
- resolution: 'string',
269
- duration: 'number',
270
- ratio: 'string',
271
- completionTokens: 'number',
272
- completionCredits: 'number',
370
+ promptTokens: 'string',
371
+ completionTokens: 'string',
372
+ totalTokens: 'string',
373
+ originalPrice: 'string',
374
+ currency: 'string',
273
375
  };
274
376
  }
275
377
 
@@ -278,41 +380,1585 @@ export class Usage extends $tea.Model {
278
380
  }
279
381
  }
280
382
 
281
- export class PushVideogenerationRequest extends $tea.Model {
282
- // OAuth模式下的授权token
283
- authToken?: string;
284
- productInstanceId?: string;
285
- // 模型标识,如 :doubao-seedance-2-0-260128
286
- model: string;
287
- // 文本提示词
288
- prompt: string;
289
- // 图生视频参考图片 URL
290
- imageUrl?: string[];
291
- // 视频参考/续写时传入视频 URL
292
- videoUrl?: string[];
293
- // 参考音频URL列表
294
- audioUrl?: string[];
295
- // 比例
296
- ratio?: string;
383
+ // 各输出单元的试算明细
384
+ export class UnitEstimates extends $tea.Model {
385
+ // 从 0 开始,与请求的 units[] 顺序一致
386
+ /**
387
+ * @example
388
+ * 1
389
+ */
390
+ unitIndex?: number;
391
+ // 当前单元是否命中
392
+ /**
393
+ * @example
394
+ * true
395
+ */
396
+ matched?: boolean;
397
+ // 当前单元是否命中兜底规则
398
+ /**
399
+ * @example
400
+ * true
401
+ */
402
+ fallback?: boolean;
403
+ // 规则编码
404
+ /**
405
+ * @example
406
+ * 规则编码
407
+ */
408
+ priceRuleCode?: string;
409
+ // 规则版本
410
+ /**
411
+ * @example
412
+ * 1
413
+ */
414
+ matchedRuleVersion?: number;
415
+ // 规则名称
416
+ /**
417
+ * @example
418
+ * 规则名称
419
+ */
420
+ ruleName?: string;
421
+ // 规则优先级
422
+ /**
423
+ * @example
424
+ * 1
425
+ */
426
+ priority?: number;
427
+ // 费用明细
428
+ /**
429
+ * @example
430
+ * undefined
431
+ */
432
+ items?: RequestItems[];
433
+ // 当前单元金额
434
+ /**
435
+ * @example
436
+ * 当前单元金额
437
+ */
438
+ amount?: string;
439
+ // 未命中或部分命中时的提示
440
+ /**
441
+ * @example
442
+ * 未命中或部分命中时的提示
443
+ */
444
+ message?: string;
445
+ static names(): { [key: string]: string } {
446
+ return {
447
+ unitIndex: 'unit_index',
448
+ matched: 'matched',
449
+ fallback: 'fallback',
450
+ priceRuleCode: 'price_rule_code',
451
+ matchedRuleVersion: 'matched_rule_version',
452
+ ruleName: 'rule_name',
453
+ priority: 'priority',
454
+ items: 'items',
455
+ amount: 'amount',
456
+ message: 'message',
457
+ };
458
+ }
459
+
460
+ static types(): { [key: string]: any } {
461
+ return {
462
+ unitIndex: 'number',
463
+ matched: 'boolean',
464
+ fallback: 'boolean',
465
+ priceRuleCode: 'string',
466
+ matchedRuleVersion: 'number',
467
+ ruleName: 'string',
468
+ priority: 'number',
469
+ items: { 'type': 'array', 'itemType': RequestItems },
470
+ amount: 'string',
471
+ message: 'string',
472
+ };
473
+ }
474
+
475
+ constructor(map?: { [key: string]: any }) {
476
+ super(map);
477
+ }
478
+ }
479
+
480
+ // 音频消耗
481
+ export class AudioUsage extends $tea.Model {
482
+ // 用量类型
483
+ /**
484
+ * @example
485
+ * AUDIO_GENERATION
486
+ */
487
+ usageType?: string;
488
+ // 计量单位
489
+ /**
490
+ * @example
491
+ * SECOND
492
+ */
493
+ unit?: string;
494
+ // 音频时长(秒)
495
+ /**
496
+ * @example
497
+ * 10.6
498
+ */
499
+ durationSeconds?: string;
500
+ // 音频数量
501
+ /**
502
+ * @example
503
+ * 1
504
+ */
505
+ count?: number;
506
+ // 本次音频生成的实际消耗金额(必返)
507
+ /**
508
+ * @example
509
+ * 10.11
510
+ */
511
+ originalPrice?: string;
512
+ // 币种
513
+ /**
514
+ * @example
515
+ * CNY
516
+ */
517
+ currency?: string;
518
+ static names(): { [key: string]: string } {
519
+ return {
520
+ usageType: 'usage_type',
521
+ unit: 'unit',
522
+ durationSeconds: 'duration_seconds',
523
+ count: 'count',
524
+ originalPrice: 'original_price',
525
+ currency: 'currency',
526
+ };
527
+ }
528
+
529
+ static types(): { [key: string]: any } {
530
+ return {
531
+ usageType: 'string',
532
+ unit: 'string',
533
+ durationSeconds: 'string',
534
+ count: 'number',
535
+ originalPrice: 'string',
536
+ currency: 'string',
537
+ };
538
+ }
539
+
540
+ constructor(map?: { [key: string]: any }) {
541
+ super(map);
542
+ }
543
+ }
544
+
545
+ // 非空内容列表,至少含文本或素材
546
+ export class ContentInfo extends $tea.Model {
547
+ // 类型
548
+ /**
549
+ * @example
550
+ * text
551
+ */
552
+ type: string;
553
+ // type=text 时提供,文本
554
+ /**
555
+ * @example
556
+ * 生成一只猫
557
+ */
558
+ text?: string;
559
+ // type=image_url 时提供
560
+ /**
561
+ * @example
562
+ * www.test.com/123
563
+ */
564
+ imageUrl?: ContentUrl;
565
+ // type=audio_url 时提供
566
+ /**
567
+ * @example
568
+ * www.test.com/123
569
+ */
570
+ audioUrl?: ContentUrl;
571
+ // type=video_url 时提供
572
+ /**
573
+ * @example
574
+ * www.test.com/123
575
+ */
576
+ videoUrl?: ContentUrl;
577
+ // 角色
578
+ /**
579
+ * @example
580
+ * reference_image
581
+ */
582
+ role?: string;
583
+ static names(): { [key: string]: string } {
584
+ return {
585
+ type: 'type',
586
+ text: 'text',
587
+ imageUrl: 'image_url',
588
+ audioUrl: 'audio_url',
589
+ videoUrl: 'video_url',
590
+ role: 'role',
591
+ };
592
+ }
593
+
594
+ static types(): { [key: string]: any } {
595
+ return {
596
+ type: 'string',
597
+ text: 'string',
598
+ imageUrl: ContentUrl,
599
+ audioUrl: ContentUrl,
600
+ videoUrl: ContentUrl,
601
+ role: 'string',
602
+ };
603
+ }
604
+
605
+ constructor(map?: { [key: string]: any }) {
606
+ super(map);
607
+ }
608
+ }
609
+
610
+ // 视频生成返回
611
+ export class VideoUsage extends $tea.Model {
612
+ // 用量类型
613
+ /**
614
+ * @example
615
+ * VIDEO_GENERATION
616
+ */
617
+ usageType?: string;
618
+ // 计量单位
619
+ /**
620
+ * @example
621
+ * SECOND
622
+ */
623
+ unit?: string;
297
624
  // 视频时长(秒)
298
- duration?: number;
299
- // 请求追踪 ID,用于幂等去重
300
- requestId?: string;
301
- // 扩展JSON
302
- ext?: string;
625
+ /**
626
+ * @example
627
+ * 10
628
+ */
629
+ durationSeconds?: string;
630
+ // 本次视频生成的实际消耗金额
631
+ /**
632
+ * @example
633
+ * 0.11
634
+ */
635
+ originalPrice?: string;
636
+ // 币种
637
+ /**
638
+ * @example
639
+ * CNY
640
+ */
641
+ currency?: string;
642
+ static names(): { [key: string]: string } {
643
+ return {
644
+ usageType: 'usage_type',
645
+ unit: 'unit',
646
+ durationSeconds: 'duration_seconds',
647
+ originalPrice: 'original_price',
648
+ currency: 'currency',
649
+ };
650
+ }
651
+
652
+ static types(): { [key: string]: any } {
653
+ return {
654
+ usageType: 'string',
655
+ unit: 'string',
656
+ durationSeconds: 'string',
657
+ originalPrice: 'string',
658
+ currency: 'string',
659
+ };
660
+ }
661
+
662
+ constructor(map?: { [key: string]: any }) {
663
+ super(map);
664
+ }
665
+ }
666
+
667
+ // 音频信息
668
+ export class AudioList extends $tea.Model {
669
+ // 音频 URL 列表
670
+ /**
671
+ * @example
672
+ * www.test.com/123
673
+ */
674
+ audioUrl?: string;
675
+ // 音频格式
676
+ /**
677
+ * @example
678
+ * wav
679
+ */
680
+ audioFormat?: string;
681
+ // 处理后播放时长(秒)
682
+ /**
683
+ * @example
684
+ * 10.6
685
+ */
686
+ durationSeconds?: string;
687
+ static names(): { [key: string]: string } {
688
+ return {
689
+ audioUrl: 'audio_url',
690
+ audioFormat: 'audio_format',
691
+ durationSeconds: 'duration_seconds',
692
+ };
693
+ }
694
+
695
+ static types(): { [key: string]: any } {
696
+ return {
697
+ audioUrl: 'string',
698
+ audioFormat: 'string',
699
+ durationSeconds: 'string',
700
+ };
701
+ }
702
+
703
+ constructor(map?: { [key: string]: any }) {
704
+ super(map);
705
+ }
706
+ }
707
+
708
+ // 视频 URL(成功时返回)
709
+ export class VideoUrl extends $tea.Model {
710
+ // 视频 URL(成功时返回)
711
+ /**
712
+ * @example
713
+ * https://example.com/output.mp4
714
+ */
715
+ videoUrl?: string;
716
+ static names(): { [key: string]: string } {
717
+ return {
718
+ videoUrl: 'video_url',
719
+ };
720
+ }
721
+
722
+ static types(): { [key: string]: any } {
723
+ return {
724
+ videoUrl: 'string',
725
+ };
726
+ }
727
+
728
+ constructor(map?: { [key: string]: any }) {
729
+ super(map);
730
+ }
731
+ }
732
+
733
+ // 输出单元列表
734
+ export class PriceUnits extends $tea.Model {
735
+ // 当前输出单元定价维度
736
+ /**
737
+ * @example
738
+ * {"test":"1"}
739
+ */
740
+ dimensions?: string;
741
+ // 当前输出单元计量指标
742
+ /**
743
+ * @example
744
+ * {"test":"1"}
745
+ */
746
+ metrics?: string;
747
+ static names(): { [key: string]: string } {
748
+ return {
749
+ dimensions: 'dimensions',
750
+ metrics: 'metrics',
751
+ };
752
+ }
753
+
754
+ static types(): { [key: string]: any } {
755
+ return {
756
+ dimensions: 'string',
757
+ metrics: 'string',
758
+ };
759
+ }
760
+
761
+ constructor(map?: { [key: string]: any }) {
762
+ super(map);
763
+ }
764
+ }
765
+
766
+ // 附加信息
767
+ export class ExtraInfo extends $tea.Model {
768
+ // 原厂任务ID
769
+ /**
770
+ * @example
771
+ * xxx-xxx-xxx
772
+ */
773
+ originalTaskId?: string;
774
+ // 原厂视频输出URL
775
+ /**
776
+ * @example
777
+ * https://xxx
778
+ */
779
+ originalVideoUrl?: string;
780
+ // 原厂响应体快照
781
+ /**
782
+ * @example
783
+ * "{"task_id":"csg-xxx-xx"...}"
784
+ */
785
+ originalResponseSnapshot?: string;
786
+ static names(): { [key: string]: string } {
787
+ return {
788
+ originalTaskId: 'original_task_id',
789
+ originalVideoUrl: 'original_video_url',
790
+ originalResponseSnapshot: 'original_response_snapshot',
791
+ };
792
+ }
793
+
794
+ static types(): { [key: string]: any } {
795
+ return {
796
+ originalTaskId: 'string',
797
+ originalVideoUrl: 'string',
798
+ originalResponseSnapshot: 'string',
799
+ };
800
+ }
801
+
802
+ constructor(map?: { [key: string]: any }) {
803
+ super(map);
804
+ }
805
+ }
806
+
807
+ // 处理失败时返回,包含 code / message
808
+ export class Error extends $tea.Model {
809
+ // 错误码
810
+ /**
811
+ * @example
812
+ * INVALID_PARAMETER
813
+ */
814
+ code?: string;
815
+ // 错误信息
816
+ /**
817
+ * @example
818
+ * 参数无效
819
+ */
820
+ message?: string;
821
+ static names(): { [key: string]: string } {
822
+ return {
823
+ code: 'code',
824
+ message: 'message',
825
+ };
826
+ }
827
+
828
+ static types(): { [key: string]: any } {
829
+ return {
830
+ code: 'string',
831
+ message: 'string',
832
+ };
833
+ }
834
+
835
+ constructor(map?: { [key: string]: any }) {
836
+ super(map);
837
+ }
838
+ }
839
+
840
+ // 1
841
+ export class ImageUrl extends $tea.Model {
842
+ // test
843
+ /**
844
+ * @example
845
+ * undefined
846
+ */
847
+ imageUrl?: ContentUrl;
848
+ static names(): { [key: string]: string } {
849
+ return {
850
+ imageUrl: 'image_url',
851
+ };
852
+ }
853
+
854
+ static types(): { [key: string]: any } {
855
+ return {
856
+ imageUrl: ContentUrl,
857
+ };
858
+ }
859
+
860
+ constructor(map?: { [key: string]: any }) {
861
+ super(map);
862
+ }
863
+ }
864
+
865
+ // 非空消息列表
866
+ export class ChatMessages extends $tea.Model {
867
+ // 角色
868
+ /**
869
+ * @example
870
+ * user
871
+ */
872
+ role: string;
873
+ // 文本内容
874
+ /**
875
+ * @example
876
+ * 文本内容
877
+ */
878
+ content: string;
879
+ static names(): { [key: string]: string } {
880
+ return {
881
+ role: 'role',
882
+ content: 'content',
883
+ };
884
+ }
885
+
886
+ static types(): { [key: string]: any } {
887
+ return {
888
+ role: 'string',
889
+ content: 'string',
890
+ };
891
+ }
892
+
893
+ constructor(map?: { [key: string]: any }) {
894
+ super(map);
895
+ }
896
+ }
897
+
898
+ // 用量数组
899
+ export class ImageUsage extends $tea.Model {
900
+ // 用量类型
901
+ /**
902
+ * @example
903
+ * IMAGE_GENERATION
904
+ */
905
+ usageType?: string;
906
+ // 计量单位
907
+ /**
908
+ * @example
909
+ * IMAGE_COUNT
910
+ */
911
+ unit?: string;
912
+ // 图片张数
913
+ /**
914
+ * @example
915
+ * 1
916
+ */
917
+ imageCount?: number;
918
+ // 本次图片生成的实际消耗金额
919
+ /**
920
+ * @example
921
+ * 10.11
922
+ */
923
+ originalPrice?: string;
924
+ // 币种
925
+ /**
926
+ * @example
927
+ * CNY
928
+ */
929
+ currency?: string;
930
+ static names(): { [key: string]: string } {
931
+ return {
932
+ usageType: 'usage_type',
933
+ unit: 'unit',
934
+ imageCount: 'image_count',
935
+ originalPrice: 'original_price',
936
+ currency: 'currency',
937
+ };
938
+ }
939
+
940
+ static types(): { [key: string]: any } {
941
+ return {
942
+ usageType: 'string',
943
+ unit: 'string',
944
+ imageCount: 'number',
945
+ originalPrice: 'string',
946
+ currency: 'string',
947
+ };
948
+ }
949
+
950
+ constructor(map?: { [key: string]: any }) {
951
+ super(map);
952
+ }
953
+ }
954
+
955
+ // 用量信息
956
+ export class Usage extends $tea.Model {
957
+ // 分辨率
958
+ /**
959
+ * @example
960
+ * 720p,1080p
961
+ */
962
+ resolution?: string;
963
+ // 视频时长(单位:秒)
964
+ /**
965
+ * @example
966
+ * 15
967
+ */
968
+ duration?: number;
969
+ // 视频比例
970
+ /**
971
+ * @example
972
+ * 16:9
973
+ */
974
+ ratio?: string;
975
+ // 消耗 token 数
976
+ /**
977
+ * @example
978
+ * 10800
979
+ */
980
+ completionTokens?: number;
981
+ // 消耗credit数
982
+ /**
983
+ * @example
984
+ * 7
985
+ */
986
+ completionCredits?: number;
987
+ static names(): { [key: string]: string } {
988
+ return {
989
+ resolution: 'resolution',
990
+ duration: 'duration',
991
+ ratio: 'ratio',
992
+ completionTokens: 'completion_tokens',
993
+ completionCredits: 'completion_credits',
994
+ };
995
+ }
996
+
997
+ static types(): { [key: string]: any } {
998
+ return {
999
+ resolution: 'string',
1000
+ duration: 'number',
1001
+ ratio: 'string',
1002
+ completionTokens: 'number',
1003
+ completionCredits: 'number',
1004
+ };
1005
+ }
1006
+
1007
+ constructor(map?: { [key: string]: any }) {
1008
+ super(map);
1009
+ }
1010
+ }
1011
+
1012
+ export class PushVideogenerationRequest extends $tea.Model {
1013
+ // OAuth模式下的授权token
1014
+ authToken?: string;
1015
+ productInstanceId?: string;
1016
+ // 模型标识,如 :doubao-seedance-2-0-260128
1017
+ model: string;
1018
+ // 文本提示词
1019
+ prompt?: string;
1020
+ // 图生视频参考图片 URL
1021
+ imageUrl?: string[];
1022
+ // 视频参考/续写时传入视频 URL
1023
+ videoUrl?: string[];
1024
+ // 参考音频URL列表
1025
+ audioUrl?: string[];
1026
+ // 比例
1027
+ ratio?: string;
1028
+ // 视频时长(秒)
1029
+ duration?: number;
1030
+ // 请求追踪 ID,用于幂等去重
1031
+ requestId?: string;
1032
+ // 扩展JSON
1033
+ ext?: string;
1034
+ static names(): { [key: string]: string } {
1035
+ return {
1036
+ authToken: 'auth_token',
1037
+ productInstanceId: 'product_instance_id',
1038
+ model: 'model',
1039
+ prompt: 'prompt',
1040
+ imageUrl: 'image_url',
1041
+ videoUrl: 'video_url',
1042
+ audioUrl: 'audio_url',
1043
+ ratio: 'ratio',
1044
+ duration: 'duration',
1045
+ requestId: 'request_id',
1046
+ ext: 'ext',
1047
+ };
1048
+ }
1049
+
1050
+ static types(): { [key: string]: any } {
1051
+ return {
1052
+ authToken: 'string',
1053
+ productInstanceId: 'string',
1054
+ model: 'string',
1055
+ prompt: 'string',
1056
+ imageUrl: { 'type': 'array', 'itemType': 'string' },
1057
+ videoUrl: { 'type': 'array', 'itemType': 'string' },
1058
+ audioUrl: { 'type': 'array', 'itemType': 'string' },
1059
+ ratio: 'string',
1060
+ duration: 'number',
1061
+ requestId: 'string',
1062
+ ext: 'string',
1063
+ };
1064
+ }
1065
+
1066
+ constructor(map?: { [key: string]: any }) {
1067
+ super(map);
1068
+ }
1069
+ }
1070
+
1071
+ export class PushVideogenerationResponse extends $tea.Model {
1072
+ // 请求唯一ID,用于链路跟踪和问题排查
1073
+ reqMsgId?: string;
1074
+ // 结果码,一般OK表示调用成功
1075
+ resultCode?: string;
1076
+ // 异常信息的文本描述
1077
+ resultMsg?: string;
1078
+ // 任务 ID,后续查询结果通过此参数获取
1079
+ taskId?: string;
1080
+ // 任务状态:pending(等待中)、processing(处理中)、succeeded(已成功)、failed(已失败)
1081
+ status?: string;
1082
+ // 模型名称
1083
+ model?: string;
1084
+ // 扩展JSON
1085
+ ext?: string;
1086
+ static names(): { [key: string]: string } {
1087
+ return {
1088
+ reqMsgId: 'req_msg_id',
1089
+ resultCode: 'result_code',
1090
+ resultMsg: 'result_msg',
1091
+ taskId: 'task_id',
1092
+ status: 'status',
1093
+ model: 'model',
1094
+ ext: 'ext',
1095
+ };
1096
+ }
1097
+
1098
+ static types(): { [key: string]: any } {
1099
+ return {
1100
+ reqMsgId: 'string',
1101
+ resultCode: 'string',
1102
+ resultMsg: 'string',
1103
+ taskId: 'string',
1104
+ status: 'string',
1105
+ model: 'string',
1106
+ ext: 'string',
1107
+ };
1108
+ }
1109
+
1110
+ constructor(map?: { [key: string]: any }) {
1111
+ super(map);
1112
+ }
1113
+ }
1114
+
1115
+ export class QueryVideogenerationRequest extends $tea.Model {
1116
+ // OAuth模式下的授权token
1117
+ authToken?: string;
1118
+ productInstanceId?: string;
1119
+ // 查询的任务ID
1120
+ taskId: string;
1121
+ static names(): { [key: string]: string } {
1122
+ return {
1123
+ authToken: 'auth_token',
1124
+ productInstanceId: 'product_instance_id',
1125
+ taskId: 'task_id',
1126
+ };
1127
+ }
1128
+
1129
+ static types(): { [key: string]: any } {
1130
+ return {
1131
+ authToken: 'string',
1132
+ productInstanceId: 'string',
1133
+ taskId: 'string',
1134
+ };
1135
+ }
1136
+
1137
+ constructor(map?: { [key: string]: any }) {
1138
+ super(map);
1139
+ }
1140
+ }
1141
+
1142
+ export class QueryVideogenerationResponse extends $tea.Model {
1143
+ // 请求唯一ID,用于链路跟踪和问题排查
1144
+ reqMsgId?: string;
1145
+ // 结果码,一般OK表示调用成功
1146
+ resultCode?: string;
1147
+ // 异常信息的文本描述
1148
+ resultMsg?: string;
1149
+ // 任务ID
1150
+ taskId?: string;
1151
+ // 任务状态
1152
+ status?: string;
1153
+ // 视频输出URL
1154
+ videoUrl?: string;
1155
+ // 错误码
1156
+ errorCode?: string;
1157
+ // 错误信息
1158
+ errorMessage?: string;
1159
+ // 用量信息
1160
+ usage?: Usage;
1161
+ // 附加信息
1162
+ extraInfo?: ExtraInfo;
1163
+ static names(): { [key: string]: string } {
1164
+ return {
1165
+ reqMsgId: 'req_msg_id',
1166
+ resultCode: 'result_code',
1167
+ resultMsg: 'result_msg',
1168
+ taskId: 'task_id',
1169
+ status: 'status',
1170
+ videoUrl: 'video_url',
1171
+ errorCode: 'error_code',
1172
+ errorMessage: 'error_message',
1173
+ usage: 'usage',
1174
+ extraInfo: 'extra_info',
1175
+ };
1176
+ }
1177
+
1178
+ static types(): { [key: string]: any } {
1179
+ return {
1180
+ reqMsgId: 'string',
1181
+ resultCode: 'string',
1182
+ resultMsg: 'string',
1183
+ taskId: 'string',
1184
+ status: 'string',
1185
+ videoUrl: 'string',
1186
+ errorCode: 'string',
1187
+ errorMessage: 'string',
1188
+ usage: Usage,
1189
+ extraInfo: ExtraInfo,
1190
+ };
1191
+ }
1192
+
1193
+ constructor(map?: { [key: string]: any }) {
1194
+ super(map);
1195
+ }
1196
+ }
1197
+
1198
+ export class UploadAssetRequest extends $tea.Model {
1199
+ // OAuth模式下的授权token
1200
+ authToken?: string;
1201
+ productInstanceId?: string;
1202
+ // 资产类型
1203
+ assetType: string;
1204
+ // 公网可访问的文件URL
1205
+ fileUrl: string;
1206
+ // 资产名称
1207
+ assetName: string;
1208
+ static names(): { [key: string]: string } {
1209
+ return {
1210
+ authToken: 'auth_token',
1211
+ productInstanceId: 'product_instance_id',
1212
+ assetType: 'asset_type',
1213
+ fileUrl: 'file_url',
1214
+ assetName: 'asset_name',
1215
+ };
1216
+ }
1217
+
1218
+ static types(): { [key: string]: any } {
1219
+ return {
1220
+ authToken: 'string',
1221
+ productInstanceId: 'string',
1222
+ assetType: 'string',
1223
+ fileUrl: 'string',
1224
+ assetName: 'string',
1225
+ };
1226
+ }
1227
+
1228
+ constructor(map?: { [key: string]: any }) {
1229
+ super(map);
1230
+ }
1231
+ }
1232
+
1233
+ export class UploadAssetResponse extends $tea.Model {
1234
+ // 请求唯一ID,用于链路跟踪和问题排查
1235
+ reqMsgId?: string;
1236
+ // 结果码,一般OK表示调用成功
1237
+ resultCode?: string;
1238
+ // 异常信息的文本描述
1239
+ resultMsg?: string;
1240
+ // 资产ID
1241
+ assetId?: string;
1242
+ // 资产状态
1243
+ status?: string;
1244
+ // 资产类型
1245
+ assetType?: string;
1246
+ static names(): { [key: string]: string } {
1247
+ return {
1248
+ reqMsgId: 'req_msg_id',
1249
+ resultCode: 'result_code',
1250
+ resultMsg: 'result_msg',
1251
+ assetId: 'asset_id',
1252
+ status: 'status',
1253
+ assetType: 'asset_type',
1254
+ };
1255
+ }
1256
+
1257
+ static types(): { [key: string]: any } {
1258
+ return {
1259
+ reqMsgId: 'string',
1260
+ resultCode: 'string',
1261
+ resultMsg: 'string',
1262
+ assetId: 'string',
1263
+ status: 'string',
1264
+ assetType: 'string',
1265
+ };
1266
+ }
1267
+
1268
+ constructor(map?: { [key: string]: any }) {
1269
+ super(map);
1270
+ }
1271
+ }
1272
+
1273
+ export class QueryAssetRequest extends $tea.Model {
1274
+ // OAuth模式下的授权token
1275
+ authToken?: string;
1276
+ productInstanceId?: string;
1277
+ // 资产ID
1278
+ assetId: string;
1279
+ static names(): { [key: string]: string } {
1280
+ return {
1281
+ authToken: 'auth_token',
1282
+ productInstanceId: 'product_instance_id',
1283
+ assetId: 'asset_id',
1284
+ };
1285
+ }
1286
+
1287
+ static types(): { [key: string]: any } {
1288
+ return {
1289
+ authToken: 'string',
1290
+ productInstanceId: 'string',
1291
+ assetId: 'string',
1292
+ };
1293
+ }
1294
+
1295
+ constructor(map?: { [key: string]: any }) {
1296
+ super(map);
1297
+ }
1298
+ }
1299
+
1300
+ export class QueryAssetResponse extends $tea.Model {
1301
+ // 请求唯一ID,用于链路跟踪和问题排查
1302
+ reqMsgId?: string;
1303
+ // 结果码,一般OK表示调用成功
1304
+ resultCode?: string;
1305
+ // 异常信息的文本描述
1306
+ resultMsg?: string;
1307
+ // 资产ID
1308
+ assetId?: string;
1309
+ // 资产状态
1310
+ status?: string;
1311
+ // 资产类型
1312
+ assetType?: string;
1313
+ // 资产类型
1314
+ assetUrl?: string;
1315
+ // 错误信息
1316
+ errorMessage?: string;
1317
+ // 错误码
1318
+ errorCode?: string;
1319
+ static names(): { [key: string]: string } {
1320
+ return {
1321
+ reqMsgId: 'req_msg_id',
1322
+ resultCode: 'result_code',
1323
+ resultMsg: 'result_msg',
1324
+ assetId: 'asset_id',
1325
+ status: 'status',
1326
+ assetType: 'asset_type',
1327
+ assetUrl: 'asset_url',
1328
+ errorMessage: 'error_message',
1329
+ errorCode: 'error_code',
1330
+ };
1331
+ }
1332
+
1333
+ static types(): { [key: string]: any } {
1334
+ return {
1335
+ reqMsgId: 'string',
1336
+ resultCode: 'string',
1337
+ resultMsg: 'string',
1338
+ assetId: 'string',
1339
+ status: 'string',
1340
+ assetType: 'string',
1341
+ assetUrl: 'string',
1342
+ errorMessage: 'string',
1343
+ errorCode: 'string',
1344
+ };
1345
+ }
1346
+
1347
+ constructor(map?: { [key: string]: any }) {
1348
+ super(map);
1349
+ }
1350
+ }
1351
+
1352
+ export class UploadMaasAssetRequest extends $tea.Model {
1353
+ // OAuth模式下的授权token
1354
+ authToken?: string;
1355
+ productInstanceId?: string;
1356
+ // 幂等标识,由客户端生成
1357
+ requestId: string;
1358
+ // 文件公网可访问 URL
1359
+ fileUrl: string;
1360
+ // 资产类型
1361
+ assetType: string;
1362
+ // 资产名称
1363
+ assetName: string;
1364
+ static names(): { [key: string]: string } {
1365
+ return {
1366
+ authToken: 'auth_token',
1367
+ productInstanceId: 'product_instance_id',
1368
+ requestId: 'request_id',
1369
+ fileUrl: 'file_url',
1370
+ assetType: 'asset_type',
1371
+ assetName: 'asset_name',
1372
+ };
1373
+ }
1374
+
1375
+ static types(): { [key: string]: any } {
1376
+ return {
1377
+ authToken: 'string',
1378
+ productInstanceId: 'string',
1379
+ requestId: 'string',
1380
+ fileUrl: 'string',
1381
+ assetType: 'string',
1382
+ assetName: 'string',
1383
+ };
1384
+ }
1385
+
1386
+ constructor(map?: { [key: string]: any }) {
1387
+ super(map);
1388
+ }
1389
+ }
1390
+
1391
+ export class UploadMaasAssetResponse extends $tea.Model {
1392
+ // 请求唯一ID,用于链路跟踪和问题排查
1393
+ reqMsgId?: string;
1394
+ // 结果码,一般OK表示调用成功
1395
+ resultCode?: string;
1396
+ // 异常信息的文本描述
1397
+ resultMsg?: string;
1398
+ // 平台素材 ID
1399
+ assetId?: string;
1400
+ // 状态
1401
+ status?: string;
1402
+ // 资产类型
1403
+ assetType?: string;
1404
+ static names(): { [key: string]: string } {
1405
+ return {
1406
+ reqMsgId: 'req_msg_id',
1407
+ resultCode: 'result_code',
1408
+ resultMsg: 'result_msg',
1409
+ assetId: 'asset_id',
1410
+ status: 'status',
1411
+ assetType: 'asset_type',
1412
+ };
1413
+ }
1414
+
1415
+ static types(): { [key: string]: any } {
1416
+ return {
1417
+ reqMsgId: 'string',
1418
+ resultCode: 'string',
1419
+ resultMsg: 'string',
1420
+ assetId: 'string',
1421
+ status: 'string',
1422
+ assetType: 'string',
1423
+ };
1424
+ }
1425
+
1426
+ constructor(map?: { [key: string]: any }) {
1427
+ super(map);
1428
+ }
1429
+ }
1430
+
1431
+ export class QueryMaasAssetRequest extends $tea.Model {
1432
+ // OAuth模式下的授权token
1433
+ authToken?: string;
1434
+ productInstanceId?: string;
1435
+ // 资产 ID
1436
+ assetId: string;
1437
+ static names(): { [key: string]: string } {
1438
+ return {
1439
+ authToken: 'auth_token',
1440
+ productInstanceId: 'product_instance_id',
1441
+ assetId: 'asset_id',
1442
+ };
1443
+ }
1444
+
1445
+ static types(): { [key: string]: any } {
1446
+ return {
1447
+ authToken: 'string',
1448
+ productInstanceId: 'string',
1449
+ assetId: 'string',
1450
+ };
1451
+ }
1452
+
1453
+ constructor(map?: { [key: string]: any }) {
1454
+ super(map);
1455
+ }
1456
+ }
1457
+
1458
+ export class QueryMaasAssetResponse extends $tea.Model {
1459
+ // 请求唯一ID,用于链路跟踪和问题排查
1460
+ reqMsgId?: string;
1461
+ // 结果码,一般OK表示调用成功
1462
+ resultCode?: string;
1463
+ // 异常信息的文本描述
1464
+ resultMsg?: string;
1465
+ // 资产 ID
1466
+ assetId?: string;
1467
+ // 状态
1468
+ status?: string;
1469
+ // 资产类型
1470
+ assetType?: string;
1471
+ // 资产访问 URL,仅在已取得可访问地址时返回
1472
+ url?: string;
1473
+ // 素材名称,可选
1474
+ name?: string;
1475
+ // 创建时间,Unix 秒级时间戳,可选
1476
+ createdAt?: string;
1477
+ // 更新时间,Unix 秒级时间戳,可选
1478
+ updatedAt?: string;
1479
+ // 处理失败时返回,包含 code / message
1480
+ error?: Error;
1481
+ static names(): { [key: string]: string } {
1482
+ return {
1483
+ reqMsgId: 'req_msg_id',
1484
+ resultCode: 'result_code',
1485
+ resultMsg: 'result_msg',
1486
+ assetId: 'asset_id',
1487
+ status: 'status',
1488
+ assetType: 'asset_type',
1489
+ url: 'url',
1490
+ name: 'name',
1491
+ createdAt: 'created_at',
1492
+ updatedAt: 'updated_at',
1493
+ error: 'error',
1494
+ };
1495
+ }
1496
+
1497
+ static types(): { [key: string]: any } {
1498
+ return {
1499
+ reqMsgId: 'string',
1500
+ resultCode: 'string',
1501
+ resultMsg: 'string',
1502
+ assetId: 'string',
1503
+ status: 'string',
1504
+ assetType: 'string',
1505
+ url: 'string',
1506
+ name: 'string',
1507
+ createdAt: 'string',
1508
+ updatedAt: 'string',
1509
+ error: Error,
1510
+ };
1511
+ }
1512
+
1513
+ constructor(map?: { [key: string]: any }) {
1514
+ super(map);
1515
+ }
1516
+ }
1517
+
1518
+ export class PushMaasVideoRequest extends $tea.Model {
1519
+ // OAuth模式下的授权token
1520
+ authToken?: string;
1521
+ productInstanceId?: string;
1522
+ // 幂等标识,由客户端生成
1523
+ requestId: string;
1524
+ // 视频模型编码
1525
+ model: string;
1526
+ // 类型
1527
+ capabilityType: string;
1528
+ // 非空内容列表,至少含文本或素材
1529
+ content: ContentInfo[];
1530
+ // 视频时长(秒)
1531
+ duration?: string;
1532
+ // 宽高比,如 16:9、9:16
1533
+ ratio?: string;
1534
+ // 分辨率,如 720P、1080P
1535
+ resolution?: string;
1536
+ // 是否生成音轨,默认 false
1537
+ generateAudio?: boolean;
1538
+ // 是否添加水印
1539
+ watermark?: boolean;
1540
+ // 扩展参数 JSON 字符串
1541
+ extParams?: string;
1542
+ static names(): { [key: string]: string } {
1543
+ return {
1544
+ authToken: 'auth_token',
1545
+ productInstanceId: 'product_instance_id',
1546
+ requestId: 'request_id',
1547
+ model: 'model',
1548
+ capabilityType: 'capability_type',
1549
+ content: 'content',
1550
+ duration: 'duration',
1551
+ ratio: 'ratio',
1552
+ resolution: 'resolution',
1553
+ generateAudio: 'generate_audio',
1554
+ watermark: 'watermark',
1555
+ extParams: 'ext_params',
1556
+ };
1557
+ }
1558
+
1559
+ static types(): { [key: string]: any } {
1560
+ return {
1561
+ authToken: 'string',
1562
+ productInstanceId: 'string',
1563
+ requestId: 'string',
1564
+ model: 'string',
1565
+ capabilityType: 'string',
1566
+ content: { 'type': 'array', 'itemType': ContentInfo },
1567
+ duration: 'string',
1568
+ ratio: 'string',
1569
+ resolution: 'string',
1570
+ generateAudio: 'boolean',
1571
+ watermark: 'boolean',
1572
+ extParams: 'string',
1573
+ };
1574
+ }
1575
+
1576
+ constructor(map?: { [key: string]: any }) {
1577
+ super(map);
1578
+ }
1579
+ }
1580
+
1581
+ export class PushMaasVideoResponse extends $tea.Model {
1582
+ // 请求唯一ID,用于链路跟踪和问题排查
1583
+ reqMsgId?: string;
1584
+ // 结果码,一般OK表示调用成功
1585
+ resultCode?: string;
1586
+ // 异常信息的文本描述
1587
+ resultMsg?: string;
1588
+ // 视频任务 ID
1589
+ taskId?: string;
1590
+ // 任务状态
1591
+ status?: string;
1592
+ // 实际使用的模型
1593
+ model?: string;
1594
+ static names(): { [key: string]: string } {
1595
+ return {
1596
+ reqMsgId: 'req_msg_id',
1597
+ resultCode: 'result_code',
1598
+ resultMsg: 'result_msg',
1599
+ taskId: 'task_id',
1600
+ status: 'status',
1601
+ model: 'model',
1602
+ };
1603
+ }
1604
+
1605
+ static types(): { [key: string]: any } {
1606
+ return {
1607
+ reqMsgId: 'string',
1608
+ resultCode: 'string',
1609
+ resultMsg: 'string',
1610
+ taskId: 'string',
1611
+ status: 'string',
1612
+ model: 'string',
1613
+ };
1614
+ }
1615
+
1616
+ constructor(map?: { [key: string]: any }) {
1617
+ super(map);
1618
+ }
1619
+ }
1620
+
1621
+ export class QueryMaasVideoRequest extends $tea.Model {
1622
+ // OAuth模式下的授权token
1623
+ authToken?: string;
1624
+ productInstanceId?: string;
1625
+ // 视频任务 ID
1626
+ taskId: string;
1627
+ static names(): { [key: string]: string } {
1628
+ return {
1629
+ authToken: 'auth_token',
1630
+ productInstanceId: 'product_instance_id',
1631
+ taskId: 'task_id',
1632
+ };
1633
+ }
1634
+
1635
+ static types(): { [key: string]: any } {
1636
+ return {
1637
+ authToken: 'string',
1638
+ productInstanceId: 'string',
1639
+ taskId: 'string',
1640
+ };
1641
+ }
1642
+
1643
+ constructor(map?: { [key: string]: any }) {
1644
+ super(map);
1645
+ }
1646
+ }
1647
+
1648
+ export class QueryMaasVideoResponse extends $tea.Model {
1649
+ // 请求唯一ID,用于链路跟踪和问题排查
1650
+ reqMsgId?: string;
1651
+ // 结果码,一般OK表示调用成功
1652
+ resultCode?: string;
1653
+ // 异常信息的文本描述
1654
+ resultMsg?: string;
1655
+ // 视频任务 ID
1656
+ taskId?: string;
1657
+ // 任务状态
1658
+ status?: string;
1659
+ // 实际使用的模型
1660
+ model?: string;
1661
+ // 创建时间,Unix 秒级时间戳
1662
+ createdAt?: string;
1663
+ // 更新时间,Unix 秒级时间戳
1664
+ updatedAt?: string;
1665
+ // 视频 URL(成功时返回)
1666
+ content?: VideoUrl;
1667
+ // 视频时长(秒
1668
+ duration?: string;
1669
+ // 宽高比
1670
+ ratio?: string;
1671
+ // 分辨率
1672
+ resolution?: string;
1673
+ // 是否生成音轨
1674
+ generateAudio?: boolean;
1675
+ // 用量数组
1676
+ usage?: VideoUsage[];
1677
+ // 非标准化补充信息,JSON 字符串
1678
+ extraInfo?: string;
1679
+ // 失败时返回
1680
+ error?: Error;
1681
+ static names(): { [key: string]: string } {
1682
+ return {
1683
+ reqMsgId: 'req_msg_id',
1684
+ resultCode: 'result_code',
1685
+ resultMsg: 'result_msg',
1686
+ taskId: 'task_id',
1687
+ status: 'status',
1688
+ model: 'model',
1689
+ createdAt: 'created_at',
1690
+ updatedAt: 'updated_at',
1691
+ content: 'content',
1692
+ duration: 'duration',
1693
+ ratio: 'ratio',
1694
+ resolution: 'resolution',
1695
+ generateAudio: 'generate_audio',
1696
+ usage: 'usage',
1697
+ extraInfo: 'extra_info',
1698
+ error: 'error',
1699
+ };
1700
+ }
1701
+
1702
+ static types(): { [key: string]: any } {
1703
+ return {
1704
+ reqMsgId: 'string',
1705
+ resultCode: 'string',
1706
+ resultMsg: 'string',
1707
+ taskId: 'string',
1708
+ status: 'string',
1709
+ model: 'string',
1710
+ createdAt: 'string',
1711
+ updatedAt: 'string',
1712
+ content: VideoUrl,
1713
+ duration: 'string',
1714
+ ratio: 'string',
1715
+ resolution: 'string',
1716
+ generateAudio: 'boolean',
1717
+ usage: { 'type': 'array', 'itemType': VideoUsage },
1718
+ extraInfo: 'string',
1719
+ error: Error,
1720
+ };
1721
+ }
1722
+
1723
+ constructor(map?: { [key: string]: any }) {
1724
+ super(map);
1725
+ }
1726
+ }
1727
+
1728
+ export class PushMaasImageRequest extends $tea.Model {
1729
+ // OAuth模式下的授权token
1730
+ authToken?: string;
1731
+ productInstanceId?: string;
1732
+ // 幂等标识,由客户端生成
1733
+ requestId: string;
1734
+ // 图片模型编码
1735
+ model: string;
1736
+ // 类型
1737
+ capabilityType: string;
1738
+ // 生成模式
1739
+ generateMode?: string;
1740
+ // 图片生成或编辑提示词
1741
+ prompt: string;
1742
+ // 图片地址
1743
+ imageUrls?: string[];
1744
+ // 图片尺寸
1745
+ size?: string;
1746
+ // 图片张数
1747
+ n?: number;
1748
+ // 扩展参数 JSON 字符串
1749
+ extParams?: string;
1750
+ static names(): { [key: string]: string } {
1751
+ return {
1752
+ authToken: 'auth_token',
1753
+ productInstanceId: 'product_instance_id',
1754
+ requestId: 'request_id',
1755
+ model: 'model',
1756
+ capabilityType: 'capability_type',
1757
+ generateMode: 'generate_mode',
1758
+ prompt: 'prompt',
1759
+ imageUrls: 'image_urls',
1760
+ size: 'size',
1761
+ n: 'n',
1762
+ extParams: 'ext_params',
1763
+ };
1764
+ }
1765
+
1766
+ static types(): { [key: string]: any } {
1767
+ return {
1768
+ authToken: 'string',
1769
+ productInstanceId: 'string',
1770
+ requestId: 'string',
1771
+ model: 'string',
1772
+ capabilityType: 'string',
1773
+ generateMode: 'string',
1774
+ prompt: 'string',
1775
+ imageUrls: { 'type': 'array', 'itemType': 'string' },
1776
+ size: 'string',
1777
+ n: 'number',
1778
+ extParams: 'string',
1779
+ };
1780
+ }
1781
+
1782
+ constructor(map?: { [key: string]: any }) {
1783
+ super(map);
1784
+ }
1785
+ }
1786
+
1787
+ export class PushMaasImageResponse extends $tea.Model {
1788
+ // 请求唯一ID,用于链路跟踪和问题排查
1789
+ reqMsgId?: string;
1790
+ // 结果码,一般OK表示调用成功
1791
+ resultCode?: string;
1792
+ // 异常信息的文本描述
1793
+ resultMsg?: string;
1794
+ // 图片任务 ID
1795
+ taskId?: string;
1796
+ // 任务状态
1797
+ status?: string;
1798
+ // 实际使用的模型
1799
+ model?: string;
1800
+ // 图片 URL 列表
1801
+ content?: ImageUrlsList;
1802
+ // 用量数组
1803
+ usage?: ImageUsage[];
1804
+ // 失败时返回
1805
+ error?: Error;
1806
+ // 非标准化补充信息,JSON 字符串
1807
+ extraInfo?: string;
1808
+ static names(): { [key: string]: string } {
1809
+ return {
1810
+ reqMsgId: 'req_msg_id',
1811
+ resultCode: 'result_code',
1812
+ resultMsg: 'result_msg',
1813
+ taskId: 'task_id',
1814
+ status: 'status',
1815
+ model: 'model',
1816
+ content: 'content',
1817
+ usage: 'usage',
1818
+ error: 'error',
1819
+ extraInfo: 'extra_info',
1820
+ };
1821
+ }
1822
+
1823
+ static types(): { [key: string]: any } {
1824
+ return {
1825
+ reqMsgId: 'string',
1826
+ resultCode: 'string',
1827
+ resultMsg: 'string',
1828
+ taskId: 'string',
1829
+ status: 'string',
1830
+ model: 'string',
1831
+ content: ImageUrlsList,
1832
+ usage: { 'type': 'array', 'itemType': ImageUsage },
1833
+ error: Error,
1834
+ extraInfo: 'string',
1835
+ };
1836
+ }
1837
+
1838
+ constructor(map?: { [key: string]: any }) {
1839
+ super(map);
1840
+ }
1841
+ }
1842
+
1843
+ export class QueryMaasImageRequest extends $tea.Model {
1844
+ // OAuth模式下的授权token
1845
+ authToken?: string;
1846
+ productInstanceId?: string;
1847
+ // 图片任务 ID
1848
+ taskId: string;
1849
+ static names(): { [key: string]: string } {
1850
+ return {
1851
+ authToken: 'auth_token',
1852
+ productInstanceId: 'product_instance_id',
1853
+ taskId: 'task_id',
1854
+ };
1855
+ }
1856
+
1857
+ static types(): { [key: string]: any } {
1858
+ return {
1859
+ authToken: 'string',
1860
+ productInstanceId: 'string',
1861
+ taskId: 'string',
1862
+ };
1863
+ }
1864
+
1865
+ constructor(map?: { [key: string]: any }) {
1866
+ super(map);
1867
+ }
1868
+ }
1869
+
1870
+ export class QueryMaasImageResponse extends $tea.Model {
1871
+ // 请求唯一ID,用于链路跟踪和问题排查
1872
+ reqMsgId?: string;
1873
+ // 结果码,一般OK表示调用成功
1874
+ resultCode?: string;
1875
+ // 异常信息的文本描述
1876
+ resultMsg?: string;
1877
+ // 图片任务 ID
1878
+ taskId?: string;
1879
+ // 任务状态
1880
+ status?: string;
1881
+ // 实际使用的模型
1882
+ model?: string;
1883
+ // 创建时间,Unix 秒级时间戳
1884
+ createdAt?: string;
1885
+ // 图片 URL 列表(成功时返回)
1886
+ content?: ImageUrlsList;
1887
+ // 用量数组
1888
+ usage?: ImageUsage[];
1889
+ // 非标准化补充信息,JSON 字符串
1890
+ extraInfo?: string;
1891
+ // 失败时返回
1892
+ error?: Error;
1893
+ static names(): { [key: string]: string } {
1894
+ return {
1895
+ reqMsgId: 'req_msg_id',
1896
+ resultCode: 'result_code',
1897
+ resultMsg: 'result_msg',
1898
+ taskId: 'task_id',
1899
+ status: 'status',
1900
+ model: 'model',
1901
+ createdAt: 'created_at',
1902
+ content: 'content',
1903
+ usage: 'usage',
1904
+ extraInfo: 'extra_info',
1905
+ error: 'error',
1906
+ };
1907
+ }
1908
+
1909
+ static types(): { [key: string]: any } {
1910
+ return {
1911
+ reqMsgId: 'string',
1912
+ resultCode: 'string',
1913
+ resultMsg: 'string',
1914
+ taskId: 'string',
1915
+ status: 'string',
1916
+ model: 'string',
1917
+ createdAt: 'string',
1918
+ content: ImageUrlsList,
1919
+ usage: { 'type': 'array', 'itemType': ImageUsage },
1920
+ extraInfo: 'string',
1921
+ error: Error,
1922
+ };
1923
+ }
1924
+
1925
+ constructor(map?: { [key: string]: any }) {
1926
+ super(map);
1927
+ }
1928
+ }
1929
+
1930
+ export class PushMaasAudioRequest extends $tea.Model {
1931
+ // OAuth模式下的授权token
1932
+ authToken?: string;
1933
+ productInstanceId?: string;
1934
+ // 幂等标识,由客户端生成
1935
+ requestId: string;
1936
+ // 音频模型编码
1937
+ model: string;
1938
+ // 类型
1939
+ capabilityType: string;
1940
+ // 音频生成提示词
1941
+ prompt: string;
1942
+ // 需要朗读的文本,仅支持该参数的模型使用
1943
+ text?: string;
1944
+ // 音频链接,REFERENCE_TO_AUDIO 时非空
1945
+ audioUrls?: string[];
1946
+ // 图片链接,IMAGE_TO_AUDIO 时非空
1947
+ imageUrls?: string[];
1948
+ // 扩展参数 JSON 字符串,内容按模型扩展参数对象组织
1949
+ extParams?: string;
303
1950
  static names(): { [key: string]: string } {
304
1951
  return {
305
1952
  authToken: 'auth_token',
306
1953
  productInstanceId: 'product_instance_id',
1954
+ requestId: 'request_id',
307
1955
  model: 'model',
1956
+ capabilityType: 'capability_type',
308
1957
  prompt: 'prompt',
309
- imageUrl: 'image_url',
310
- videoUrl: 'video_url',
311
- audioUrl: 'audio_url',
312
- ratio: 'ratio',
313
- duration: 'duration',
314
- requestId: 'request_id',
315
- ext: 'ext',
1958
+ text: 'text',
1959
+ audioUrls: 'audio_urls',
1960
+ imageUrls: 'image_urls',
1961
+ extParams: 'ext_params',
316
1962
  };
317
1963
  }
318
1964
 
@@ -320,15 +1966,14 @@ export class PushVideogenerationRequest extends $tea.Model {
320
1966
  return {
321
1967
  authToken: 'string',
322
1968
  productInstanceId: 'string',
1969
+ requestId: 'string',
323
1970
  model: 'string',
1971
+ capabilityType: 'string',
324
1972
  prompt: 'string',
325
- imageUrl: { 'type': 'array', 'itemType': 'string' },
326
- videoUrl: { 'type': 'array', 'itemType': 'string' },
327
- audioUrl: { 'type': 'array', 'itemType': 'string' },
328
- ratio: 'string',
329
- duration: 'number',
330
- requestId: 'string',
331
- ext: 'string',
1973
+ text: 'string',
1974
+ audioUrls: { 'type': 'array', 'itemType': 'string' },
1975
+ imageUrls: { 'type': 'array', 'itemType': 'string' },
1976
+ extParams: 'string',
332
1977
  };
333
1978
  }
334
1979
 
@@ -337,21 +1982,19 @@ export class PushVideogenerationRequest extends $tea.Model {
337
1982
  }
338
1983
  }
339
1984
 
340
- export class PushVideogenerationResponse extends $tea.Model {
1985
+ export class PushMaasAudioResponse extends $tea.Model {
341
1986
  // 请求唯一ID,用于链路跟踪和问题排查
342
1987
  reqMsgId?: string;
343
1988
  // 结果码,一般OK表示调用成功
344
1989
  resultCode?: string;
345
1990
  // 异常信息的文本描述
346
1991
  resultMsg?: string;
347
- // 任务 ID,后续查询结果通过此参数获取
1992
+ // 音频任务 ID
348
1993
  taskId?: string;
349
- // 任务状态:pending(等待中)、processing(处理中)、succeeded(已成功)、failed(已失败)
1994
+ // 任务状态
350
1995
  status?: string;
351
- // 模型名称
1996
+ // 实际使用的模型
352
1997
  model?: string;
353
- // 扩展JSON
354
- ext?: string;
355
1998
  static names(): { [key: string]: string } {
356
1999
  return {
357
2000
  reqMsgId: 'req_msg_id',
@@ -360,7 +2003,6 @@ export class PushVideogenerationResponse extends $tea.Model {
360
2003
  taskId: 'task_id',
361
2004
  status: 'status',
362
2005
  model: 'model',
363
- ext: 'ext',
364
2006
  };
365
2007
  }
366
2008
 
@@ -372,7 +2014,6 @@ export class PushVideogenerationResponse extends $tea.Model {
372
2014
  taskId: 'string',
373
2015
  status: 'string',
374
2016
  model: 'string',
375
- ext: 'string',
376
2017
  };
377
2018
  }
378
2019
 
@@ -381,12 +2022,12 @@ export class PushVideogenerationResponse extends $tea.Model {
381
2022
  }
382
2023
  }
383
2024
 
384
- export class QueryVideogenerationRequest extends $tea.Model {
2025
+ export class QueryMaasAudioRequest extends $tea.Model {
385
2026
  // OAuth模式下的授权token
386
2027
  authToken?: string;
387
2028
  productInstanceId?: string;
388
- // 查询的任务ID
389
- taskId: string;
2029
+ // 音频任务 ID
2030
+ taskId?: string;
390
2031
  static names(): { [key: string]: string } {
391
2032
  return {
392
2033
  authToken: 'auth_token',
@@ -408,27 +2049,29 @@ export class QueryVideogenerationRequest extends $tea.Model {
408
2049
  }
409
2050
  }
410
2051
 
411
- export class QueryVideogenerationResponse extends $tea.Model {
2052
+ export class QueryMaasAudioResponse extends $tea.Model {
412
2053
  // 请求唯一ID,用于链路跟踪和问题排查
413
2054
  reqMsgId?: string;
414
2055
  // 结果码,一般OK表示调用成功
415
2056
  resultCode?: string;
416
2057
  // 异常信息的文本描述
417
2058
  resultMsg?: string;
418
- // 任务ID
2059
+ // 音频任务 ID
419
2060
  taskId?: string;
420
2061
  // 任务状态
421
2062
  status?: string;
422
- // 视频输出URL
423
- videoUrl?: string;
424
- // 错误码
425
- errorCode?: string;
426
- // 错误信息
427
- errorMessage?: string;
428
- // 用量信息
429
- usage?: Usage;
430
- // 附加信息
431
- extraInfo?: ExtraInfo;
2063
+ // 实际使用的模型
2064
+ model?: string;
2065
+ // 创建时间,Unix 秒级时间戳
2066
+ createdAt?: string;
2067
+ // 音频信息
2068
+ content?: AudioList[];
2069
+ // 用量
2070
+ usage?: AudioUsage[];
2071
+ // 非标准化补充信息,JSON 字符串
2072
+ extraInfo?: string;
2073
+ // 失败时返回
2074
+ error?: Error;
432
2075
  static names(): { [key: string]: string } {
433
2076
  return {
434
2077
  reqMsgId: 'req_msg_id',
@@ -436,11 +2079,12 @@ export class QueryVideogenerationResponse extends $tea.Model {
436
2079
  resultMsg: 'result_msg',
437
2080
  taskId: 'task_id',
438
2081
  status: 'status',
439
- videoUrl: 'video_url',
440
- errorCode: 'error_code',
441
- errorMessage: 'error_message',
2082
+ model: 'model',
2083
+ createdAt: 'created_at',
2084
+ content: 'content',
442
2085
  usage: 'usage',
443
2086
  extraInfo: 'extra_info',
2087
+ error: 'error',
444
2088
  };
445
2089
  }
446
2090
 
@@ -451,11 +2095,12 @@ export class QueryVideogenerationResponse extends $tea.Model {
451
2095
  resultMsg: 'string',
452
2096
  taskId: 'string',
453
2097
  status: 'string',
454
- videoUrl: 'string',
455
- errorCode: 'string',
456
- errorMessage: 'string',
457
- usage: Usage,
458
- extraInfo: ExtraInfo,
2098
+ model: 'string',
2099
+ createdAt: 'string',
2100
+ content: { 'type': 'array', 'itemType': AudioList },
2101
+ usage: { 'type': 'array', 'itemType': AudioUsage },
2102
+ extraInfo: 'string',
2103
+ error: Error,
459
2104
  };
460
2105
  }
461
2106
 
@@ -464,23 +2109,26 @@ export class QueryVideogenerationResponse extends $tea.Model {
464
2109
  }
465
2110
  }
466
2111
 
467
- export class UploadAssetRequest extends $tea.Model {
2112
+ export class ExecMaasChatsyncRequest extends $tea.Model {
468
2113
  // OAuth模式下的授权token
469
2114
  authToken?: string;
470
2115
  productInstanceId?: string;
471
- // 资产类型
472
- assetType: string;
473
- // 公网可访问的文件URL
474
- fileUrl: string;
475
- // 资产名称
476
- assetName: string;
2116
+ // 幂等标识,由客户端生成
2117
+ requestId: string;
2118
+ // 文本模型编码
2119
+ model: string;
2120
+ // 非空消息列表
2121
+ messages: ChatMessages[];
2122
+ // 模型参数 JSON 字符串
2123
+ extParams?: string;
477
2124
  static names(): { [key: string]: string } {
478
2125
  return {
479
2126
  authToken: 'auth_token',
480
2127
  productInstanceId: 'product_instance_id',
481
- assetType: 'asset_type',
482
- fileUrl: 'file_url',
483
- assetName: 'asset_name',
2128
+ requestId: 'request_id',
2129
+ model: 'model',
2130
+ messages: 'messages',
2131
+ extParams: 'ext_params',
484
2132
  };
485
2133
  }
486
2134
 
@@ -488,9 +2136,10 @@ export class UploadAssetRequest extends $tea.Model {
488
2136
  return {
489
2137
  authToken: 'string',
490
2138
  productInstanceId: 'string',
491
- assetType: 'string',
492
- fileUrl: 'string',
493
- assetName: 'string',
2139
+ requestId: 'string',
2140
+ model: 'string',
2141
+ messages: { 'type': 'array', 'itemType': ChatMessages },
2142
+ extParams: 'string',
494
2143
  };
495
2144
  }
496
2145
 
@@ -499,27 +2148,33 @@ export class UploadAssetRequest extends $tea.Model {
499
2148
  }
500
2149
  }
501
2150
 
502
- export class UploadAssetResponse extends $tea.Model {
2151
+ export class ExecMaasChatsyncResponse extends $tea.Model {
503
2152
  // 请求唯一ID,用于链路跟踪和问题排查
504
2153
  reqMsgId?: string;
505
2154
  // 结果码,一般OK表示调用成功
506
2155
  resultCode?: string;
507
2156
  // 异常信息的文本描述
508
2157
  resultMsg?: string;
509
- // 资产ID
510
- assetId?: string;
511
- // 资产状态
512
- status?: string;
513
- // 资产类型
514
- assetType?: string;
2158
+ // 本次模型调用 ID
2159
+ id?: string;
2160
+ // 实际使用的模型
2161
+ model?: string;
2162
+ // 完整文本
2163
+ content?: string;
2164
+ // 结束原因
2165
+ finishReason?: string;
2166
+ // 用量
2167
+ usage?: ChatUsage;
515
2168
  static names(): { [key: string]: string } {
516
2169
  return {
517
2170
  reqMsgId: 'req_msg_id',
518
2171
  resultCode: 'result_code',
519
2172
  resultMsg: 'result_msg',
520
- assetId: 'asset_id',
521
- status: 'status',
522
- assetType: 'asset_type',
2173
+ id: 'id',
2174
+ model: 'model',
2175
+ content: 'content',
2176
+ finishReason: 'finish_reason',
2177
+ usage: 'usage',
523
2178
  };
524
2179
  }
525
2180
 
@@ -528,9 +2183,11 @@ export class UploadAssetResponse extends $tea.Model {
528
2183
  reqMsgId: 'string',
529
2184
  resultCode: 'string',
530
2185
  resultMsg: 'string',
531
- assetId: 'string',
532
- status: 'string',
533
- assetType: 'string',
2186
+ id: 'string',
2187
+ model: 'string',
2188
+ content: 'string',
2189
+ finishReason: 'string',
2190
+ usage: ChatUsage,
534
2191
  };
535
2192
  }
536
2193
 
@@ -539,17 +2196,26 @@ export class UploadAssetResponse extends $tea.Model {
539
2196
  }
540
2197
  }
541
2198
 
542
- export class QueryAssetRequest extends $tea.Model {
2199
+ export class ExecMaasPriceRequest extends $tea.Model {
543
2200
  // OAuth模式下的授权token
544
2201
  authToken?: string;
545
2202
  productInstanceId?: string;
546
- // 资产ID
547
- assetId: string;
2203
+ // 模型名称
2204
+ modelName: string;
2205
+ // 请求级定价维度
2206
+ requestDimensions?: string;
2207
+ // 请求级计量指标
2208
+ requestMetrics?: string;
2209
+ // 输出单元列表
2210
+ units?: PriceUnits[];
548
2211
  static names(): { [key: string]: string } {
549
2212
  return {
550
2213
  authToken: 'auth_token',
551
2214
  productInstanceId: 'product_instance_id',
552
- assetId: 'asset_id',
2215
+ modelName: 'model_name',
2216
+ requestDimensions: 'request_dimensions',
2217
+ requestMetrics: 'request_metrics',
2218
+ units: 'units',
553
2219
  };
554
2220
  }
555
2221
 
@@ -557,7 +2223,10 @@ export class QueryAssetRequest extends $tea.Model {
557
2223
  return {
558
2224
  authToken: 'string',
559
2225
  productInstanceId: 'string',
560
- assetId: 'string',
2226
+ modelName: 'string',
2227
+ requestDimensions: 'string',
2228
+ requestMetrics: 'string',
2229
+ units: { 'type': 'array', 'itemType': PriceUnits },
561
2230
  };
562
2231
  }
563
2232
 
@@ -566,36 +2235,51 @@ export class QueryAssetRequest extends $tea.Model {
566
2235
  }
567
2236
  }
568
2237
 
569
- export class QueryAssetResponse extends $tea.Model {
2238
+ export class ExecMaasPriceResponse extends $tea.Model {
570
2239
  // 请求唯一ID,用于链路跟踪和问题排查
571
2240
  reqMsgId?: string;
572
2241
  // 结果码,一般OK表示调用成功
573
2242
  resultCode?: string;
574
2243
  // 异常信息的文本描述
575
2244
  resultMsg?: string;
576
- // 资产ID
577
- assetId?: string;
578
- // 资产状态
579
- status?: string;
580
- // 资产类型
581
- assetType?: string;
582
- // 资产类型
583
- assetUrl?: string;
584
- // 错误信息
585
- errorMessage?: string;
586
- // 错误码
587
- errorCode?: string;
2245
+ // 至少一个输出单元命中
2246
+ matched?: boolean;
2247
+ // 首个输出单元是否命中兜底规则
2248
+ fallback?: boolean;
2249
+ // 命中规则编码
2250
+ priceRuleCode?: string;
2251
+ // 规则版本
2252
+ matchedRuleVersion?: number;
2253
+ // 规则名称
2254
+ ruleName?: string;
2255
+ // 规则优先级
2256
+ priority?: number;
2257
+ // 只计一次的请求级费用明细
2258
+ requestItems?: RequestItems[];
2259
+ // 各输出单元的试算明细
2260
+ unitEstimates?: UnitEstimates[];
2261
+ // 试算总金额
2262
+ totalAmount?: string;
2263
+ // 币种
2264
+ currency?: string;
2265
+ // 未命中或部分命中时的提示
2266
+ message?: string;
588
2267
  static names(): { [key: string]: string } {
589
2268
  return {
590
2269
  reqMsgId: 'req_msg_id',
591
2270
  resultCode: 'result_code',
592
2271
  resultMsg: 'result_msg',
593
- assetId: 'asset_id',
594
- status: 'status',
595
- assetType: 'asset_type',
596
- assetUrl: 'asset_url',
597
- errorMessage: 'error_message',
598
- errorCode: 'error_code',
2272
+ matched: 'matched',
2273
+ fallback: 'fallback',
2274
+ priceRuleCode: 'price_rule_code',
2275
+ matchedRuleVersion: 'matched_rule_version',
2276
+ ruleName: 'rule_name',
2277
+ priority: 'priority',
2278
+ requestItems: 'request_items',
2279
+ unitEstimates: 'unit_estimates',
2280
+ totalAmount: 'total_amount',
2281
+ currency: 'currency',
2282
+ message: 'message',
599
2283
  };
600
2284
  }
601
2285
 
@@ -604,12 +2288,17 @@ export class QueryAssetResponse extends $tea.Model {
604
2288
  reqMsgId: 'string',
605
2289
  resultCode: 'string',
606
2290
  resultMsg: 'string',
607
- assetId: 'string',
608
- status: 'string',
609
- assetType: 'string',
610
- assetUrl: 'string',
611
- errorMessage: 'string',
612
- errorCode: 'string',
2291
+ matched: 'boolean',
2292
+ fallback: 'boolean',
2293
+ priceRuleCode: 'string',
2294
+ matchedRuleVersion: 'number',
2295
+ ruleName: 'string',
2296
+ priority: 'number',
2297
+ requestItems: { 'type': 'array', 'itemType': RequestItems },
2298
+ unitEstimates: { 'type': 'array', 'itemType': UnitEstimates },
2299
+ totalAmount: 'string',
2300
+ currency: 'string',
2301
+ message: 'string',
613
2302
  };
614
2303
  }
615
2304
 
@@ -735,7 +2424,7 @@ export default class Client {
735
2424
  req_msg_id: AntchainUtil.getNonce(),
736
2425
  access_key: this._accessKeyId,
737
2426
  base_sdk_version: "TeaSDK-2.0",
738
- sdk_version: "1.0.7",
2427
+ sdk_version: "1.1.0",
739
2428
  _prod_code: "CREATIVE",
740
2429
  _prod_channel: "default",
741
2430
  };
@@ -867,4 +2556,214 @@ export default class Client {
867
2556
  return $tea.cast<QueryAssetResponse>(await this.doRequest("1.0", "antdigital.creative.asset.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryAssetResponse({}));
868
2557
  }
869
2558
 
2559
+ /**
2560
+ * @remarks
2561
+ * Description: 上传资产
2562
+ * Summary: 上传资产
2563
+ */
2564
+ async uploadMaasAsset(request: UploadMaasAssetRequest): Promise<UploadMaasAssetResponse> {
2565
+ let runtime = new $Util.RuntimeOptions({ });
2566
+ let headers : {[key: string ]: string} = { };
2567
+ return await this.uploadMaasAssetEx(request, headers, runtime);
2568
+ }
2569
+
2570
+ /**
2571
+ * @remarks
2572
+ * Description: 上传资产
2573
+ * Summary: 上传资产
2574
+ */
2575
+ async uploadMaasAssetEx(request: UploadMaasAssetRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UploadMaasAssetResponse> {
2576
+ Util.validateModel(request);
2577
+ return $tea.cast<UploadMaasAssetResponse>(await this.doRequest("1.0", "antdigital.creative.maas.asset.upload", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new UploadMaasAssetResponse({}));
2578
+ }
2579
+
2580
+ /**
2581
+ * @remarks
2582
+ * Description: 查询资产
2583
+ * Summary: 查询资产
2584
+ */
2585
+ async queryMaasAsset(request: QueryMaasAssetRequest): Promise<QueryMaasAssetResponse> {
2586
+ let runtime = new $Util.RuntimeOptions({ });
2587
+ let headers : {[key: string ]: string} = { };
2588
+ return await this.queryMaasAssetEx(request, headers, runtime);
2589
+ }
2590
+
2591
+ /**
2592
+ * @remarks
2593
+ * Description: 查询资产
2594
+ * Summary: 查询资产
2595
+ */
2596
+ async queryMaasAssetEx(request: QueryMaasAssetRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<QueryMaasAssetResponse> {
2597
+ Util.validateModel(request);
2598
+ return $tea.cast<QueryMaasAssetResponse>(await this.doRequest("1.0", "antdigital.creative.maas.asset.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryMaasAssetResponse({}));
2599
+ }
2600
+
2601
+ /**
2602
+ * @remarks
2603
+ * Description: 创建视频任务
2604
+ * Summary: 创建视频任务
2605
+ */
2606
+ async pushMaasVideo(request: PushMaasVideoRequest): Promise<PushMaasVideoResponse> {
2607
+ let runtime = new $Util.RuntimeOptions({ });
2608
+ let headers : {[key: string ]: string} = { };
2609
+ return await this.pushMaasVideoEx(request, headers, runtime);
2610
+ }
2611
+
2612
+ /**
2613
+ * @remarks
2614
+ * Description: 创建视频任务
2615
+ * Summary: 创建视频任务
2616
+ */
2617
+ async pushMaasVideoEx(request: PushMaasVideoRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<PushMaasVideoResponse> {
2618
+ Util.validateModel(request);
2619
+ return $tea.cast<PushMaasVideoResponse>(await this.doRequest("1.0", "antdigital.creative.maas.video.push", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new PushMaasVideoResponse({}));
2620
+ }
2621
+
2622
+ /**
2623
+ * @remarks
2624
+ * Description: 查询视频任务
2625
+ * Summary: 查询视频任务
2626
+ */
2627
+ async queryMaasVideo(request: QueryMaasVideoRequest): Promise<QueryMaasVideoResponse> {
2628
+ let runtime = new $Util.RuntimeOptions({ });
2629
+ let headers : {[key: string ]: string} = { };
2630
+ return await this.queryMaasVideoEx(request, headers, runtime);
2631
+ }
2632
+
2633
+ /**
2634
+ * @remarks
2635
+ * Description: 查询视频任务
2636
+ * Summary: 查询视频任务
2637
+ */
2638
+ async queryMaasVideoEx(request: QueryMaasVideoRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<QueryMaasVideoResponse> {
2639
+ Util.validateModel(request);
2640
+ return $tea.cast<QueryMaasVideoResponse>(await this.doRequest("1.0", "antdigital.creative.maas.video.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryMaasVideoResponse({}));
2641
+ }
2642
+
2643
+ /**
2644
+ * @remarks
2645
+ * Description: 生成图片
2646
+ * Summary: 生成图片
2647
+ */
2648
+ async pushMaasImage(request: PushMaasImageRequest): Promise<PushMaasImageResponse> {
2649
+ let runtime = new $Util.RuntimeOptions({ });
2650
+ let headers : {[key: string ]: string} = { };
2651
+ return await this.pushMaasImageEx(request, headers, runtime);
2652
+ }
2653
+
2654
+ /**
2655
+ * @remarks
2656
+ * Description: 生成图片
2657
+ * Summary: 生成图片
2658
+ */
2659
+ async pushMaasImageEx(request: PushMaasImageRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<PushMaasImageResponse> {
2660
+ Util.validateModel(request);
2661
+ return $tea.cast<PushMaasImageResponse>(await this.doRequest("1.0", "antdigital.creative.maas.image.push", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new PushMaasImageResponse({}));
2662
+ }
2663
+
2664
+ /**
2665
+ * @remarks
2666
+ * Description: 查询图片任务
2667
+ * Summary: 查询图片任务
2668
+ */
2669
+ async queryMaasImage(request: QueryMaasImageRequest): Promise<QueryMaasImageResponse> {
2670
+ let runtime = new $Util.RuntimeOptions({ });
2671
+ let headers : {[key: string ]: string} = { };
2672
+ return await this.queryMaasImageEx(request, headers, runtime);
2673
+ }
2674
+
2675
+ /**
2676
+ * @remarks
2677
+ * Description: 查询图片任务
2678
+ * Summary: 查询图片任务
2679
+ */
2680
+ async queryMaasImageEx(request: QueryMaasImageRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<QueryMaasImageResponse> {
2681
+ Util.validateModel(request);
2682
+ return $tea.cast<QueryMaasImageResponse>(await this.doRequest("1.0", "antdigital.creative.maas.image.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryMaasImageResponse({}));
2683
+ }
2684
+
2685
+ /**
2686
+ * @remarks
2687
+ * Description: 创建音频任务
2688
+ * Summary: 创建音频任务
2689
+ */
2690
+ async pushMaasAudio(request: PushMaasAudioRequest): Promise<PushMaasAudioResponse> {
2691
+ let runtime = new $Util.RuntimeOptions({ });
2692
+ let headers : {[key: string ]: string} = { };
2693
+ return await this.pushMaasAudioEx(request, headers, runtime);
2694
+ }
2695
+
2696
+ /**
2697
+ * @remarks
2698
+ * Description: 创建音频任务
2699
+ * Summary: 创建音频任务
2700
+ */
2701
+ async pushMaasAudioEx(request: PushMaasAudioRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<PushMaasAudioResponse> {
2702
+ Util.validateModel(request);
2703
+ return $tea.cast<PushMaasAudioResponse>(await this.doRequest("1.0", "antdigital.creative.maas.audio.push", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new PushMaasAudioResponse({}));
2704
+ }
2705
+
2706
+ /**
2707
+ * @remarks
2708
+ * Description: 查询音频任务
2709
+ * Summary: 查询音频任务
2710
+ */
2711
+ async queryMaasAudio(request: QueryMaasAudioRequest): Promise<QueryMaasAudioResponse> {
2712
+ let runtime = new $Util.RuntimeOptions({ });
2713
+ let headers : {[key: string ]: string} = { };
2714
+ return await this.queryMaasAudioEx(request, headers, runtime);
2715
+ }
2716
+
2717
+ /**
2718
+ * @remarks
2719
+ * Description: 查询音频任务
2720
+ * Summary: 查询音频任务
2721
+ */
2722
+ async queryMaasAudioEx(request: QueryMaasAudioRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<QueryMaasAudioResponse> {
2723
+ Util.validateModel(request);
2724
+ return $tea.cast<QueryMaasAudioResponse>(await this.doRequest("1.0", "antdigital.creative.maas.audio.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryMaasAudioResponse({}));
2725
+ }
2726
+
2727
+ /**
2728
+ * @remarks
2729
+ * Description: 文本同步调用
2730
+ * Summary: 文本同步调用
2731
+ */
2732
+ async execMaasChatsync(request: ExecMaasChatsyncRequest): Promise<ExecMaasChatsyncResponse> {
2733
+ let runtime = new $Util.RuntimeOptions({ });
2734
+ let headers : {[key: string ]: string} = { };
2735
+ return await this.execMaasChatsyncEx(request, headers, runtime);
2736
+ }
2737
+
2738
+ /**
2739
+ * @remarks
2740
+ * Description: 文本同步调用
2741
+ * Summary: 文本同步调用
2742
+ */
2743
+ async execMaasChatsyncEx(request: ExecMaasChatsyncRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ExecMaasChatsyncResponse> {
2744
+ Util.validateModel(request);
2745
+ return $tea.cast<ExecMaasChatsyncResponse>(await this.doRequest("1.0", "antdigital.creative.maas.chatsync.exec", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new ExecMaasChatsyncResponse({}));
2746
+ }
2747
+
2748
+ /**
2749
+ * @remarks
2750
+ * Description: 价格试算
2751
+ * Summary: 价格试算
2752
+ */
2753
+ async execMaasPrice(request: ExecMaasPriceRequest): Promise<ExecMaasPriceResponse> {
2754
+ let runtime = new $Util.RuntimeOptions({ });
2755
+ let headers : {[key: string ]: string} = { };
2756
+ return await this.execMaasPriceEx(request, headers, runtime);
2757
+ }
2758
+
2759
+ /**
2760
+ * @remarks
2761
+ * Description: 价格试算
2762
+ * Summary: 价格试算
2763
+ */
2764
+ async execMaasPriceEx(request: ExecMaasPriceRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ExecMaasPriceResponse> {
2765
+ Util.validateModel(request);
2766
+ return $tea.cast<ExecMaasPriceResponse>(await this.doRequest("1.0", "antdigital.creative.maas.price.exec", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new ExecMaasPriceResponse({}));
2767
+ }
2768
+
870
2769
  }