@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 CHANGED
@@ -135,22 +135,709 @@ export declare class Config extends $tea.Model {
135
135
  [key: string]: any;
136
136
  });
137
137
  }
138
+ export declare class RequestItems extends $tea.Model {
139
+ /**
140
+ * @example
141
+ * 规则编码
142
+ */
143
+ priceRuleCode?: string;
144
+ /**
145
+ * @example
146
+ * 收费项编码
147
+ */
148
+ chargeItemCode?: string;
149
+ /**
150
+ * @example
151
+ * 计量指标类型
152
+ */
153
+ metricType?: string;
154
+ /**
155
+ * @example
156
+ * 原始计量数量
157
+ */
158
+ quantity?: string;
159
+ /**
160
+ * @example
161
+ * 免费额度
162
+ */
163
+ freeQuota?: string;
164
+ /**
165
+ * @example
166
+ * 计费数量(扣除免费额度后的值)
167
+ */
168
+ billableQuantity?: string;
169
+ /**
170
+ * @example
171
+ * 计费单位大小
172
+ */
173
+ unitSize?: string;
174
+ /**
175
+ * @example
176
+ * 单价
177
+ */
178
+ unitPrice?: string;
179
+ /**
180
+ * @example
181
+ * 币种
182
+ */
183
+ currency?: string;
184
+ /**
185
+ * @example
186
+ * 单项金额
187
+ */
188
+ amount?: string;
189
+ static names(): {
190
+ [key: string]: string;
191
+ };
192
+ static types(): {
193
+ [key: string]: any;
194
+ };
195
+ constructor(map?: {
196
+ [key: string]: any;
197
+ });
198
+ }
199
+ export declare class ContentUrl extends $tea.Model {
200
+ /**
201
+ * @example
202
+ * www.test.com/123
203
+ */
204
+ url?: string;
205
+ static names(): {
206
+ [key: string]: string;
207
+ };
208
+ static types(): {
209
+ [key: string]: any;
210
+ };
211
+ constructor(map?: {
212
+ [key: string]: any;
213
+ });
214
+ }
215
+ export declare class ImageUrlsList extends $tea.Model {
216
+ imageUrls?: string[];
217
+ static names(): {
218
+ [key: string]: string;
219
+ };
220
+ static types(): {
221
+ [key: string]: any;
222
+ };
223
+ constructor(map?: {
224
+ [key: string]: any;
225
+ });
226
+ }
227
+ export declare class ChatUsage extends $tea.Model {
228
+ /**
229
+ * @example
230
+ * 121212
231
+ */
232
+ promptTokens?: string;
233
+ /**
234
+ * @example
235
+ * 1111
236
+ */
237
+ completionTokens?: string;
238
+ /**
239
+ * @example
240
+ * 121212
241
+ */
242
+ totalTokens?: string;
243
+ /**
244
+ * @example
245
+ * 11.01
246
+ */
247
+ originalPrice?: string;
248
+ /**
249
+ * @example
250
+ * CNY
251
+ */
252
+ currency?: string;
253
+ static names(): {
254
+ [key: string]: string;
255
+ };
256
+ static types(): {
257
+ [key: string]: any;
258
+ };
259
+ constructor(map?: {
260
+ [key: string]: any;
261
+ });
262
+ }
263
+ export declare class UnitEstimates extends $tea.Model {
264
+ /**
265
+ * @example
266
+ * 1
267
+ */
268
+ unitIndex?: number;
269
+ /**
270
+ * @example
271
+ * true
272
+ */
273
+ matched?: boolean;
274
+ /**
275
+ * @example
276
+ * true
277
+ */
278
+ fallback?: boolean;
279
+ /**
280
+ * @example
281
+ * 规则编码
282
+ */
283
+ priceRuleCode?: string;
284
+ /**
285
+ * @example
286
+ * 1
287
+ */
288
+ matchedRuleVersion?: number;
289
+ /**
290
+ * @example
291
+ * 规则名称
292
+ */
293
+ ruleName?: string;
294
+ /**
295
+ * @example
296
+ * 1
297
+ */
298
+ priority?: number;
299
+ /**
300
+ * @example
301
+ * undefined
302
+ */
303
+ items?: RequestItems[];
304
+ /**
305
+ * @example
306
+ * 当前单元金额
307
+ */
308
+ amount?: string;
309
+ /**
310
+ * @example
311
+ * 未命中或部分命中时的提示
312
+ */
313
+ message?: string;
314
+ static names(): {
315
+ [key: string]: string;
316
+ };
317
+ static types(): {
318
+ [key: string]: any;
319
+ };
320
+ constructor(map?: {
321
+ [key: string]: any;
322
+ });
323
+ }
324
+ export declare class AudioUsage extends $tea.Model {
325
+ /**
326
+ * @example
327
+ * AUDIO_GENERATION
328
+ */
329
+ usageType?: string;
330
+ /**
331
+ * @example
332
+ * SECOND
333
+ */
334
+ unit?: string;
335
+ /**
336
+ * @example
337
+ * 10.6
338
+ */
339
+ durationSeconds?: string;
340
+ /**
341
+ * @example
342
+ * 1
343
+ */
344
+ count?: number;
345
+ /**
346
+ * @example
347
+ * 10.11
348
+ */
349
+ originalPrice?: string;
350
+ /**
351
+ * @example
352
+ * CNY
353
+ */
354
+ currency?: string;
355
+ static names(): {
356
+ [key: string]: string;
357
+ };
358
+ static types(): {
359
+ [key: string]: any;
360
+ };
361
+ constructor(map?: {
362
+ [key: string]: any;
363
+ });
364
+ }
365
+ export declare class ContentInfo extends $tea.Model {
366
+ /**
367
+ * @example
368
+ * text
369
+ */
370
+ type: string;
371
+ /**
372
+ * @example
373
+ * 生成一只猫
374
+ */
375
+ text?: string;
376
+ /**
377
+ * @example
378
+ * www.test.com/123
379
+ */
380
+ imageUrl?: ContentUrl;
381
+ /**
382
+ * @example
383
+ * www.test.com/123
384
+ */
385
+ audioUrl?: ContentUrl;
386
+ /**
387
+ * @example
388
+ * www.test.com/123
389
+ */
390
+ videoUrl?: ContentUrl;
391
+ /**
392
+ * @example
393
+ * reference_image
394
+ */
395
+ role?: string;
396
+ static names(): {
397
+ [key: string]: string;
398
+ };
399
+ static types(): {
400
+ [key: string]: any;
401
+ };
402
+ constructor(map?: {
403
+ [key: string]: any;
404
+ });
405
+ }
406
+ export declare class VideoUsage extends $tea.Model {
407
+ /**
408
+ * @example
409
+ * VIDEO_GENERATION
410
+ */
411
+ usageType?: string;
412
+ /**
413
+ * @example
414
+ * SECOND
415
+ */
416
+ unit?: string;
417
+ /**
418
+ * @example
419
+ * 10
420
+ */
421
+ durationSeconds?: string;
422
+ /**
423
+ * @example
424
+ * 0.11
425
+ */
426
+ originalPrice?: string;
427
+ /**
428
+ * @example
429
+ * CNY
430
+ */
431
+ currency?: string;
432
+ static names(): {
433
+ [key: string]: string;
434
+ };
435
+ static types(): {
436
+ [key: string]: any;
437
+ };
438
+ constructor(map?: {
439
+ [key: string]: any;
440
+ });
441
+ }
442
+ export declare class AudioList extends $tea.Model {
443
+ /**
444
+ * @example
445
+ * www.test.com/123
446
+ */
447
+ audioUrl?: string;
448
+ /**
449
+ * @example
450
+ * wav
451
+ */
452
+ audioFormat?: string;
453
+ /**
454
+ * @example
455
+ * 10.6
456
+ */
457
+ durationSeconds?: string;
458
+ static names(): {
459
+ [key: string]: string;
460
+ };
461
+ static types(): {
462
+ [key: string]: any;
463
+ };
464
+ constructor(map?: {
465
+ [key: string]: any;
466
+ });
467
+ }
468
+ export declare class VideoUrl extends $tea.Model {
469
+ /**
470
+ * @example
471
+ * https://example.com/output.mp4
472
+ */
473
+ videoUrl?: string;
474
+ static names(): {
475
+ [key: string]: string;
476
+ };
477
+ static types(): {
478
+ [key: string]: any;
479
+ };
480
+ constructor(map?: {
481
+ [key: string]: any;
482
+ });
483
+ }
484
+ export declare class PriceUnits extends $tea.Model {
485
+ /**
486
+ * @example
487
+ * {"test":"1"}
488
+ */
489
+ dimensions?: string;
490
+ /**
491
+ * @example
492
+ * {"test":"1"}
493
+ */
494
+ metrics?: string;
495
+ static names(): {
496
+ [key: string]: string;
497
+ };
498
+ static types(): {
499
+ [key: string]: any;
500
+ };
501
+ constructor(map?: {
502
+ [key: string]: any;
503
+ });
504
+ }
138
505
  export declare class ExtraInfo extends $tea.Model {
139
506
  /**
140
507
  * @example
141
- * xxx-xxx-xxx
508
+ * xxx-xxx-xxx
509
+ */
510
+ originalTaskId?: string;
511
+ /**
512
+ * @example
513
+ * https://xxx
514
+ */
515
+ originalVideoUrl?: string;
516
+ /**
517
+ * @example
518
+ * "{"task_id":"csg-xxx-xx"...}"
519
+ */
520
+ originalResponseSnapshot?: string;
521
+ static names(): {
522
+ [key: string]: string;
523
+ };
524
+ static types(): {
525
+ [key: string]: any;
526
+ };
527
+ constructor(map?: {
528
+ [key: string]: any;
529
+ });
530
+ }
531
+ export declare class Error extends $tea.Model {
532
+ /**
533
+ * @example
534
+ * INVALID_PARAMETER
535
+ */
536
+ code?: string;
537
+ /**
538
+ * @example
539
+ * 参数无效
540
+ */
541
+ message?: string;
542
+ static names(): {
543
+ [key: string]: string;
544
+ };
545
+ static types(): {
546
+ [key: string]: any;
547
+ };
548
+ constructor(map?: {
549
+ [key: string]: any;
550
+ });
551
+ }
552
+ export declare class ImageUrl extends $tea.Model {
553
+ /**
554
+ * @example
555
+ * undefined
556
+ */
557
+ imageUrl?: ContentUrl;
558
+ static names(): {
559
+ [key: string]: string;
560
+ };
561
+ static types(): {
562
+ [key: string]: any;
563
+ };
564
+ constructor(map?: {
565
+ [key: string]: any;
566
+ });
567
+ }
568
+ export declare class ChatMessages extends $tea.Model {
569
+ /**
570
+ * @example
571
+ * user
142
572
  */
143
- originalTaskId?: string;
573
+ role: string;
144
574
  /**
145
575
  * @example
146
- * https://xxx
576
+ * 文本内容
147
577
  */
148
- originalVideoUrl?: string;
578
+ content: string;
579
+ static names(): {
580
+ [key: string]: string;
581
+ };
582
+ static types(): {
583
+ [key: string]: any;
584
+ };
585
+ constructor(map?: {
586
+ [key: string]: any;
587
+ });
588
+ }
589
+ export declare class ImageUsage extends $tea.Model {
149
590
  /**
150
591
  * @example
151
- * "{"task_id":"csg-xxx-xx"...}"
592
+ * IMAGE_GENERATION
152
593
  */
153
- originalResponseSnapshot?: string;
594
+ usageType?: string;
595
+ /**
596
+ * @example
597
+ * IMAGE_COUNT
598
+ */
599
+ unit?: string;
600
+ /**
601
+ * @example
602
+ * 1
603
+ */
604
+ imageCount?: number;
605
+ /**
606
+ * @example
607
+ * 10.11
608
+ */
609
+ originalPrice?: string;
610
+ /**
611
+ * @example
612
+ * CNY
613
+ */
614
+ currency?: string;
615
+ static names(): {
616
+ [key: string]: string;
617
+ };
618
+ static types(): {
619
+ [key: string]: any;
620
+ };
621
+ constructor(map?: {
622
+ [key: string]: any;
623
+ });
624
+ }
625
+ export declare class Usage extends $tea.Model {
626
+ /**
627
+ * @example
628
+ * 720p,1080p
629
+ */
630
+ resolution?: string;
631
+ /**
632
+ * @example
633
+ * 15
634
+ */
635
+ duration?: number;
636
+ /**
637
+ * @example
638
+ * 16:9
639
+ */
640
+ ratio?: string;
641
+ /**
642
+ * @example
643
+ * 10800
644
+ */
645
+ completionTokens?: number;
646
+ /**
647
+ * @example
648
+ * 7
649
+ */
650
+ completionCredits?: number;
651
+ static names(): {
652
+ [key: string]: string;
653
+ };
654
+ static types(): {
655
+ [key: string]: any;
656
+ };
657
+ constructor(map?: {
658
+ [key: string]: any;
659
+ });
660
+ }
661
+ export declare class PushVideogenerationRequest extends $tea.Model {
662
+ authToken?: string;
663
+ productInstanceId?: string;
664
+ model: string;
665
+ prompt?: string;
666
+ imageUrl?: string[];
667
+ videoUrl?: string[];
668
+ audioUrl?: string[];
669
+ ratio?: string;
670
+ duration?: number;
671
+ requestId?: string;
672
+ ext?: string;
673
+ static names(): {
674
+ [key: string]: string;
675
+ };
676
+ static types(): {
677
+ [key: string]: any;
678
+ };
679
+ constructor(map?: {
680
+ [key: string]: any;
681
+ });
682
+ }
683
+ export declare class PushVideogenerationResponse extends $tea.Model {
684
+ reqMsgId?: string;
685
+ resultCode?: string;
686
+ resultMsg?: string;
687
+ taskId?: string;
688
+ status?: string;
689
+ model?: string;
690
+ ext?: string;
691
+ static names(): {
692
+ [key: string]: string;
693
+ };
694
+ static types(): {
695
+ [key: string]: any;
696
+ };
697
+ constructor(map?: {
698
+ [key: string]: any;
699
+ });
700
+ }
701
+ export declare class QueryVideogenerationRequest extends $tea.Model {
702
+ authToken?: string;
703
+ productInstanceId?: string;
704
+ taskId: string;
705
+ static names(): {
706
+ [key: string]: string;
707
+ };
708
+ static types(): {
709
+ [key: string]: any;
710
+ };
711
+ constructor(map?: {
712
+ [key: string]: any;
713
+ });
714
+ }
715
+ export declare class QueryVideogenerationResponse extends $tea.Model {
716
+ reqMsgId?: string;
717
+ resultCode?: string;
718
+ resultMsg?: string;
719
+ taskId?: string;
720
+ status?: string;
721
+ videoUrl?: string;
722
+ errorCode?: string;
723
+ errorMessage?: string;
724
+ usage?: Usage;
725
+ extraInfo?: ExtraInfo;
726
+ static names(): {
727
+ [key: string]: string;
728
+ };
729
+ static types(): {
730
+ [key: string]: any;
731
+ };
732
+ constructor(map?: {
733
+ [key: string]: any;
734
+ });
735
+ }
736
+ export declare class UploadAssetRequest extends $tea.Model {
737
+ authToken?: string;
738
+ productInstanceId?: string;
739
+ assetType: string;
740
+ fileUrl: string;
741
+ assetName: string;
742
+ static names(): {
743
+ [key: string]: string;
744
+ };
745
+ static types(): {
746
+ [key: string]: any;
747
+ };
748
+ constructor(map?: {
749
+ [key: string]: any;
750
+ });
751
+ }
752
+ export declare class UploadAssetResponse extends $tea.Model {
753
+ reqMsgId?: string;
754
+ resultCode?: string;
755
+ resultMsg?: string;
756
+ assetId?: string;
757
+ status?: string;
758
+ assetType?: string;
759
+ static names(): {
760
+ [key: string]: string;
761
+ };
762
+ static types(): {
763
+ [key: string]: any;
764
+ };
765
+ constructor(map?: {
766
+ [key: string]: any;
767
+ });
768
+ }
769
+ export declare class QueryAssetRequest extends $tea.Model {
770
+ authToken?: string;
771
+ productInstanceId?: string;
772
+ assetId: string;
773
+ static names(): {
774
+ [key: string]: string;
775
+ };
776
+ static types(): {
777
+ [key: string]: any;
778
+ };
779
+ constructor(map?: {
780
+ [key: string]: any;
781
+ });
782
+ }
783
+ export declare class QueryAssetResponse extends $tea.Model {
784
+ reqMsgId?: string;
785
+ resultCode?: string;
786
+ resultMsg?: string;
787
+ assetId?: string;
788
+ status?: string;
789
+ assetType?: string;
790
+ assetUrl?: string;
791
+ errorMessage?: string;
792
+ errorCode?: string;
793
+ static names(): {
794
+ [key: string]: string;
795
+ };
796
+ static types(): {
797
+ [key: string]: any;
798
+ };
799
+ constructor(map?: {
800
+ [key: string]: any;
801
+ });
802
+ }
803
+ export declare class UploadMaasAssetRequest extends $tea.Model {
804
+ authToken?: string;
805
+ productInstanceId?: string;
806
+ requestId: string;
807
+ fileUrl: string;
808
+ assetType: string;
809
+ assetName: string;
810
+ static names(): {
811
+ [key: string]: string;
812
+ };
813
+ static types(): {
814
+ [key: string]: any;
815
+ };
816
+ constructor(map?: {
817
+ [key: string]: any;
818
+ });
819
+ }
820
+ export declare class UploadMaasAssetResponse extends $tea.Model {
821
+ reqMsgId?: string;
822
+ resultCode?: string;
823
+ resultMsg?: string;
824
+ assetId?: string;
825
+ status?: string;
826
+ assetType?: string;
827
+ static names(): {
828
+ [key: string]: string;
829
+ };
830
+ static types(): {
831
+ [key: string]: any;
832
+ };
833
+ constructor(map?: {
834
+ [key: string]: any;
835
+ });
836
+ }
837
+ export declare class QueryMaasAssetRequest extends $tea.Model {
838
+ authToken?: string;
839
+ productInstanceId?: string;
840
+ assetId: string;
154
841
  static names(): {
155
842
  [key: string]: string;
156
843
  };
@@ -161,32 +848,99 @@ export declare class ExtraInfo extends $tea.Model {
161
848
  [key: string]: any;
162
849
  });
163
850
  }
164
- export declare class Usage extends $tea.Model {
165
- /**
166
- * @example
167
- * 720p,1080p
168
- */
851
+ export declare class QueryMaasAssetResponse extends $tea.Model {
852
+ reqMsgId?: string;
853
+ resultCode?: string;
854
+ resultMsg?: string;
855
+ assetId?: string;
856
+ status?: string;
857
+ assetType?: string;
858
+ url?: string;
859
+ name?: string;
860
+ createdAt?: string;
861
+ updatedAt?: string;
862
+ error?: Error;
863
+ static names(): {
864
+ [key: string]: string;
865
+ };
866
+ static types(): {
867
+ [key: string]: any;
868
+ };
869
+ constructor(map?: {
870
+ [key: string]: any;
871
+ });
872
+ }
873
+ export declare class PushMaasVideoRequest extends $tea.Model {
874
+ authToken?: string;
875
+ productInstanceId?: string;
876
+ requestId: string;
877
+ model: string;
878
+ capabilityType: string;
879
+ content: ContentInfo[];
880
+ duration?: string;
881
+ ratio?: string;
169
882
  resolution?: string;
170
- /**
171
- * @example
172
- * 15
173
- */
174
- duration?: number;
175
- /**
176
- * @example
177
- * 16:9
178
- */
883
+ generateAudio?: boolean;
884
+ watermark?: boolean;
885
+ extParams?: string;
886
+ static names(): {
887
+ [key: string]: string;
888
+ };
889
+ static types(): {
890
+ [key: string]: any;
891
+ };
892
+ constructor(map?: {
893
+ [key: string]: any;
894
+ });
895
+ }
896
+ export declare class PushMaasVideoResponse extends $tea.Model {
897
+ reqMsgId?: string;
898
+ resultCode?: string;
899
+ resultMsg?: string;
900
+ taskId?: string;
901
+ status?: string;
902
+ model?: string;
903
+ static names(): {
904
+ [key: string]: string;
905
+ };
906
+ static types(): {
907
+ [key: string]: any;
908
+ };
909
+ constructor(map?: {
910
+ [key: string]: any;
911
+ });
912
+ }
913
+ export declare class QueryMaasVideoRequest extends $tea.Model {
914
+ authToken?: string;
915
+ productInstanceId?: string;
916
+ taskId: string;
917
+ static names(): {
918
+ [key: string]: string;
919
+ };
920
+ static types(): {
921
+ [key: string]: any;
922
+ };
923
+ constructor(map?: {
924
+ [key: string]: any;
925
+ });
926
+ }
927
+ export declare class QueryMaasVideoResponse extends $tea.Model {
928
+ reqMsgId?: string;
929
+ resultCode?: string;
930
+ resultMsg?: string;
931
+ taskId?: string;
932
+ status?: string;
933
+ model?: string;
934
+ createdAt?: string;
935
+ updatedAt?: string;
936
+ content?: VideoUrl;
937
+ duration?: string;
179
938
  ratio?: string;
180
- /**
181
- * @example
182
- * 10800
183
- */
184
- completionTokens?: number;
185
- /**
186
- * @example
187
- * 7
188
- */
189
- completionCredits?: number;
939
+ resolution?: string;
940
+ generateAudio?: boolean;
941
+ usage?: VideoUsage[];
942
+ extraInfo?: string;
943
+ error?: Error;
190
944
  static names(): {
191
945
  [key: string]: string;
192
946
  };
@@ -197,18 +951,18 @@ export declare class Usage extends $tea.Model {
197
951
  [key: string]: any;
198
952
  });
199
953
  }
200
- export declare class PushVideogenerationRequest extends $tea.Model {
954
+ export declare class PushMaasImageRequest extends $tea.Model {
201
955
  authToken?: string;
202
956
  productInstanceId?: string;
957
+ requestId: string;
203
958
  model: string;
959
+ capabilityType: string;
960
+ generateMode?: string;
204
961
  prompt: string;
205
- imageUrl?: string[];
206
- videoUrl?: string[];
207
- audioUrl?: string[];
208
- ratio?: string;
209
- duration?: number;
210
- requestId?: string;
211
- ext?: string;
962
+ imageUrls?: string[];
963
+ size?: string;
964
+ n?: number;
965
+ extParams?: string;
212
966
  static names(): {
213
967
  [key: string]: string;
214
968
  };
@@ -219,14 +973,17 @@ export declare class PushVideogenerationRequest extends $tea.Model {
219
973
  [key: string]: any;
220
974
  });
221
975
  }
222
- export declare class PushVideogenerationResponse extends $tea.Model {
976
+ export declare class PushMaasImageResponse extends $tea.Model {
223
977
  reqMsgId?: string;
224
978
  resultCode?: string;
225
979
  resultMsg?: string;
226
980
  taskId?: string;
227
981
  status?: string;
228
982
  model?: string;
229
- ext?: string;
983
+ content?: ImageUrlsList;
984
+ usage?: ImageUsage[];
985
+ error?: Error;
986
+ extraInfo?: string;
230
987
  static names(): {
231
988
  [key: string]: string;
232
989
  };
@@ -237,7 +994,7 @@ export declare class PushVideogenerationResponse extends $tea.Model {
237
994
  [key: string]: any;
238
995
  });
239
996
  }
240
- export declare class QueryVideogenerationRequest extends $tea.Model {
997
+ export declare class QueryMaasImageRequest extends $tea.Model {
241
998
  authToken?: string;
242
999
  productInstanceId?: string;
243
1000
  taskId: string;
@@ -251,17 +1008,18 @@ export declare class QueryVideogenerationRequest extends $tea.Model {
251
1008
  [key: string]: any;
252
1009
  });
253
1010
  }
254
- export declare class QueryVideogenerationResponse extends $tea.Model {
1011
+ export declare class QueryMaasImageResponse extends $tea.Model {
255
1012
  reqMsgId?: string;
256
1013
  resultCode?: string;
257
1014
  resultMsg?: string;
258
1015
  taskId?: string;
259
1016
  status?: string;
260
- videoUrl?: string;
261
- errorCode?: string;
262
- errorMessage?: string;
263
- usage?: Usage;
264
- extraInfo?: ExtraInfo;
1017
+ model?: string;
1018
+ createdAt?: string;
1019
+ content?: ImageUrlsList;
1020
+ usage?: ImageUsage[];
1021
+ extraInfo?: string;
1022
+ error?: Error;
265
1023
  static names(): {
266
1024
  [key: string]: string;
267
1025
  };
@@ -272,12 +1030,17 @@ export declare class QueryVideogenerationResponse extends $tea.Model {
272
1030
  [key: string]: any;
273
1031
  });
274
1032
  }
275
- export declare class UploadAssetRequest extends $tea.Model {
1033
+ export declare class PushMaasAudioRequest extends $tea.Model {
276
1034
  authToken?: string;
277
1035
  productInstanceId?: string;
278
- assetType: string;
279
- fileUrl: string;
280
- assetName: string;
1036
+ requestId: string;
1037
+ model: string;
1038
+ capabilityType: string;
1039
+ prompt: string;
1040
+ text?: string;
1041
+ audioUrls?: string[];
1042
+ imageUrls?: string[];
1043
+ extParams?: string;
281
1044
  static names(): {
282
1045
  [key: string]: string;
283
1046
  };
@@ -288,13 +1051,13 @@ export declare class UploadAssetRequest extends $tea.Model {
288
1051
  [key: string]: any;
289
1052
  });
290
1053
  }
291
- export declare class UploadAssetResponse extends $tea.Model {
1054
+ export declare class PushMaasAudioResponse extends $tea.Model {
292
1055
  reqMsgId?: string;
293
1056
  resultCode?: string;
294
1057
  resultMsg?: string;
295
- assetId?: string;
1058
+ taskId?: string;
296
1059
  status?: string;
297
- assetType?: string;
1060
+ model?: string;
298
1061
  static names(): {
299
1062
  [key: string]: string;
300
1063
  };
@@ -305,10 +1068,10 @@ export declare class UploadAssetResponse extends $tea.Model {
305
1068
  [key: string]: any;
306
1069
  });
307
1070
  }
308
- export declare class QueryAssetRequest extends $tea.Model {
1071
+ export declare class QueryMaasAudioRequest extends $tea.Model {
309
1072
  authToken?: string;
310
1073
  productInstanceId?: string;
311
- assetId: string;
1074
+ taskId?: string;
312
1075
  static names(): {
313
1076
  [key: string]: string;
314
1077
  };
@@ -319,16 +1082,96 @@ export declare class QueryAssetRequest extends $tea.Model {
319
1082
  [key: string]: any;
320
1083
  });
321
1084
  }
322
- export declare class QueryAssetResponse extends $tea.Model {
1085
+ export declare class QueryMaasAudioResponse extends $tea.Model {
323
1086
  reqMsgId?: string;
324
1087
  resultCode?: string;
325
1088
  resultMsg?: string;
326
- assetId?: string;
1089
+ taskId?: string;
327
1090
  status?: string;
328
- assetType?: string;
329
- assetUrl?: string;
330
- errorMessage?: string;
331
- errorCode?: string;
1091
+ model?: string;
1092
+ createdAt?: string;
1093
+ content?: AudioList[];
1094
+ usage?: AudioUsage[];
1095
+ extraInfo?: string;
1096
+ error?: Error;
1097
+ static names(): {
1098
+ [key: string]: string;
1099
+ };
1100
+ static types(): {
1101
+ [key: string]: any;
1102
+ };
1103
+ constructor(map?: {
1104
+ [key: string]: any;
1105
+ });
1106
+ }
1107
+ export declare class ExecMaasChatsyncRequest extends $tea.Model {
1108
+ authToken?: string;
1109
+ productInstanceId?: string;
1110
+ requestId: string;
1111
+ model: string;
1112
+ messages: ChatMessages[];
1113
+ extParams?: string;
1114
+ static names(): {
1115
+ [key: string]: string;
1116
+ };
1117
+ static types(): {
1118
+ [key: string]: any;
1119
+ };
1120
+ constructor(map?: {
1121
+ [key: string]: any;
1122
+ });
1123
+ }
1124
+ export declare class ExecMaasChatsyncResponse extends $tea.Model {
1125
+ reqMsgId?: string;
1126
+ resultCode?: string;
1127
+ resultMsg?: string;
1128
+ id?: string;
1129
+ model?: string;
1130
+ content?: string;
1131
+ finishReason?: string;
1132
+ usage?: ChatUsage;
1133
+ static names(): {
1134
+ [key: string]: string;
1135
+ };
1136
+ static types(): {
1137
+ [key: string]: any;
1138
+ };
1139
+ constructor(map?: {
1140
+ [key: string]: any;
1141
+ });
1142
+ }
1143
+ export declare class ExecMaasPriceRequest extends $tea.Model {
1144
+ authToken?: string;
1145
+ productInstanceId?: string;
1146
+ modelName: string;
1147
+ requestDimensions?: string;
1148
+ requestMetrics?: string;
1149
+ units?: PriceUnits[];
1150
+ static names(): {
1151
+ [key: string]: string;
1152
+ };
1153
+ static types(): {
1154
+ [key: string]: any;
1155
+ };
1156
+ constructor(map?: {
1157
+ [key: string]: any;
1158
+ });
1159
+ }
1160
+ export declare class ExecMaasPriceResponse extends $tea.Model {
1161
+ reqMsgId?: string;
1162
+ resultCode?: string;
1163
+ resultMsg?: string;
1164
+ matched?: boolean;
1165
+ fallback?: boolean;
1166
+ priceRuleCode?: string;
1167
+ matchedRuleVersion?: number;
1168
+ ruleName?: string;
1169
+ priority?: number;
1170
+ requestItems?: RequestItems[];
1171
+ unitEstimates?: UnitEstimates[];
1172
+ totalAmount?: string;
1173
+ currency?: string;
1174
+ message?: string;
332
1175
  static names(): {
333
1176
  [key: string]: string;
334
1177
  };
@@ -441,4 +1284,144 @@ export default class Client {
441
1284
  queryAssetEx(request: QueryAssetRequest, headers: {
442
1285
  [key: string]: string;
443
1286
  }, runtime: $Util.RuntimeOptions): Promise<QueryAssetResponse>;
1287
+ /**
1288
+ * @remarks
1289
+ * Description: 上传资产
1290
+ * Summary: 上传资产
1291
+ */
1292
+ uploadMaasAsset(request: UploadMaasAssetRequest): Promise<UploadMaasAssetResponse>;
1293
+ /**
1294
+ * @remarks
1295
+ * Description: 上传资产
1296
+ * Summary: 上传资产
1297
+ */
1298
+ uploadMaasAssetEx(request: UploadMaasAssetRequest, headers: {
1299
+ [key: string]: string;
1300
+ }, runtime: $Util.RuntimeOptions): Promise<UploadMaasAssetResponse>;
1301
+ /**
1302
+ * @remarks
1303
+ * Description: 查询资产
1304
+ * Summary: 查询资产
1305
+ */
1306
+ queryMaasAsset(request: QueryMaasAssetRequest): Promise<QueryMaasAssetResponse>;
1307
+ /**
1308
+ * @remarks
1309
+ * Description: 查询资产
1310
+ * Summary: 查询资产
1311
+ */
1312
+ queryMaasAssetEx(request: QueryMaasAssetRequest, headers: {
1313
+ [key: string]: string;
1314
+ }, runtime: $Util.RuntimeOptions): Promise<QueryMaasAssetResponse>;
1315
+ /**
1316
+ * @remarks
1317
+ * Description: 创建视频任务
1318
+ * Summary: 创建视频任务
1319
+ */
1320
+ pushMaasVideo(request: PushMaasVideoRequest): Promise<PushMaasVideoResponse>;
1321
+ /**
1322
+ * @remarks
1323
+ * Description: 创建视频任务
1324
+ * Summary: 创建视频任务
1325
+ */
1326
+ pushMaasVideoEx(request: PushMaasVideoRequest, headers: {
1327
+ [key: string]: string;
1328
+ }, runtime: $Util.RuntimeOptions): Promise<PushMaasVideoResponse>;
1329
+ /**
1330
+ * @remarks
1331
+ * Description: 查询视频任务
1332
+ * Summary: 查询视频任务
1333
+ */
1334
+ queryMaasVideo(request: QueryMaasVideoRequest): Promise<QueryMaasVideoResponse>;
1335
+ /**
1336
+ * @remarks
1337
+ * Description: 查询视频任务
1338
+ * Summary: 查询视频任务
1339
+ */
1340
+ queryMaasVideoEx(request: QueryMaasVideoRequest, headers: {
1341
+ [key: string]: string;
1342
+ }, runtime: $Util.RuntimeOptions): Promise<QueryMaasVideoResponse>;
1343
+ /**
1344
+ * @remarks
1345
+ * Description: 生成图片
1346
+ * Summary: 生成图片
1347
+ */
1348
+ pushMaasImage(request: PushMaasImageRequest): Promise<PushMaasImageResponse>;
1349
+ /**
1350
+ * @remarks
1351
+ * Description: 生成图片
1352
+ * Summary: 生成图片
1353
+ */
1354
+ pushMaasImageEx(request: PushMaasImageRequest, headers: {
1355
+ [key: string]: string;
1356
+ }, runtime: $Util.RuntimeOptions): Promise<PushMaasImageResponse>;
1357
+ /**
1358
+ * @remarks
1359
+ * Description: 查询图片任务
1360
+ * Summary: 查询图片任务
1361
+ */
1362
+ queryMaasImage(request: QueryMaasImageRequest): Promise<QueryMaasImageResponse>;
1363
+ /**
1364
+ * @remarks
1365
+ * Description: 查询图片任务
1366
+ * Summary: 查询图片任务
1367
+ */
1368
+ queryMaasImageEx(request: QueryMaasImageRequest, headers: {
1369
+ [key: string]: string;
1370
+ }, runtime: $Util.RuntimeOptions): Promise<QueryMaasImageResponse>;
1371
+ /**
1372
+ * @remarks
1373
+ * Description: 创建音频任务
1374
+ * Summary: 创建音频任务
1375
+ */
1376
+ pushMaasAudio(request: PushMaasAudioRequest): Promise<PushMaasAudioResponse>;
1377
+ /**
1378
+ * @remarks
1379
+ * Description: 创建音频任务
1380
+ * Summary: 创建音频任务
1381
+ */
1382
+ pushMaasAudioEx(request: PushMaasAudioRequest, headers: {
1383
+ [key: string]: string;
1384
+ }, runtime: $Util.RuntimeOptions): Promise<PushMaasAudioResponse>;
1385
+ /**
1386
+ * @remarks
1387
+ * Description: 查询音频任务
1388
+ * Summary: 查询音频任务
1389
+ */
1390
+ queryMaasAudio(request: QueryMaasAudioRequest): Promise<QueryMaasAudioResponse>;
1391
+ /**
1392
+ * @remarks
1393
+ * Description: 查询音频任务
1394
+ * Summary: 查询音频任务
1395
+ */
1396
+ queryMaasAudioEx(request: QueryMaasAudioRequest, headers: {
1397
+ [key: string]: string;
1398
+ }, runtime: $Util.RuntimeOptions): Promise<QueryMaasAudioResponse>;
1399
+ /**
1400
+ * @remarks
1401
+ * Description: 文本同步调用
1402
+ * Summary: 文本同步调用
1403
+ */
1404
+ execMaasChatsync(request: ExecMaasChatsyncRequest): Promise<ExecMaasChatsyncResponse>;
1405
+ /**
1406
+ * @remarks
1407
+ * Description: 文本同步调用
1408
+ * Summary: 文本同步调用
1409
+ */
1410
+ execMaasChatsyncEx(request: ExecMaasChatsyncRequest, headers: {
1411
+ [key: string]: string;
1412
+ }, runtime: $Util.RuntimeOptions): Promise<ExecMaasChatsyncResponse>;
1413
+ /**
1414
+ * @remarks
1415
+ * Description: 价格试算
1416
+ * Summary: 价格试算
1417
+ */
1418
+ execMaasPrice(request: ExecMaasPriceRequest): Promise<ExecMaasPriceResponse>;
1419
+ /**
1420
+ * @remarks
1421
+ * Description: 价格试算
1422
+ * Summary: 价格试算
1423
+ */
1424
+ execMaasPriceEx(request: ExecMaasPriceRequest, headers: {
1425
+ [key: string]: string;
1426
+ }, runtime: $Util.RuntimeOptions): Promise<ExecMaasPriceResponse>;
444
1427
  }