@antchain/antdigital-creative 1.0.7 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/client.d.ts CHANGED
@@ -135,22 +135,710 @@ 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
+ useModel?: string;
743
+ static names(): {
744
+ [key: string]: string;
745
+ };
746
+ static types(): {
747
+ [key: string]: any;
748
+ };
749
+ constructor(map?: {
750
+ [key: string]: any;
751
+ });
752
+ }
753
+ export declare class UploadAssetResponse extends $tea.Model {
754
+ reqMsgId?: string;
755
+ resultCode?: string;
756
+ resultMsg?: string;
757
+ assetId?: string;
758
+ status?: string;
759
+ assetType?: string;
760
+ static names(): {
761
+ [key: string]: string;
762
+ };
763
+ static types(): {
764
+ [key: string]: any;
765
+ };
766
+ constructor(map?: {
767
+ [key: string]: any;
768
+ });
769
+ }
770
+ export declare class QueryAssetRequest extends $tea.Model {
771
+ authToken?: string;
772
+ productInstanceId?: string;
773
+ assetId: string;
774
+ static names(): {
775
+ [key: string]: string;
776
+ };
777
+ static types(): {
778
+ [key: string]: any;
779
+ };
780
+ constructor(map?: {
781
+ [key: string]: any;
782
+ });
783
+ }
784
+ export declare class QueryAssetResponse extends $tea.Model {
785
+ reqMsgId?: string;
786
+ resultCode?: string;
787
+ resultMsg?: string;
788
+ assetId?: string;
789
+ status?: string;
790
+ assetType?: string;
791
+ assetUrl?: string;
792
+ errorMessage?: string;
793
+ errorCode?: string;
794
+ static names(): {
795
+ [key: string]: string;
796
+ };
797
+ static types(): {
798
+ [key: string]: any;
799
+ };
800
+ constructor(map?: {
801
+ [key: string]: any;
802
+ });
803
+ }
804
+ export declare class UploadMaasAssetRequest extends $tea.Model {
805
+ authToken?: string;
806
+ productInstanceId?: string;
807
+ requestId: string;
808
+ fileUrl: string;
809
+ assetType: string;
810
+ assetName: string;
811
+ static names(): {
812
+ [key: string]: string;
813
+ };
814
+ static types(): {
815
+ [key: string]: any;
816
+ };
817
+ constructor(map?: {
818
+ [key: string]: any;
819
+ });
820
+ }
821
+ export declare class UploadMaasAssetResponse extends $tea.Model {
822
+ reqMsgId?: string;
823
+ resultCode?: string;
824
+ resultMsg?: string;
825
+ assetId?: string;
826
+ status?: string;
827
+ assetType?: string;
828
+ static names(): {
829
+ [key: string]: string;
830
+ };
831
+ static types(): {
832
+ [key: string]: any;
833
+ };
834
+ constructor(map?: {
835
+ [key: string]: any;
836
+ });
837
+ }
838
+ export declare class QueryMaasAssetRequest extends $tea.Model {
839
+ authToken?: string;
840
+ productInstanceId?: string;
841
+ assetId: string;
154
842
  static names(): {
155
843
  [key: string]: string;
156
844
  };
@@ -161,32 +849,99 @@ export declare class ExtraInfo extends $tea.Model {
161
849
  [key: string]: any;
162
850
  });
163
851
  }
164
- export declare class Usage extends $tea.Model {
165
- /**
166
- * @example
167
- * 720p,1080p
168
- */
852
+ export declare class QueryMaasAssetResponse extends $tea.Model {
853
+ reqMsgId?: string;
854
+ resultCode?: string;
855
+ resultMsg?: string;
856
+ assetId?: string;
857
+ status?: string;
858
+ assetType?: string;
859
+ url?: string;
860
+ name?: string;
861
+ createdAt?: string;
862
+ updatedAt?: string;
863
+ error?: Error;
864
+ static names(): {
865
+ [key: string]: string;
866
+ };
867
+ static types(): {
868
+ [key: string]: any;
869
+ };
870
+ constructor(map?: {
871
+ [key: string]: any;
872
+ });
873
+ }
874
+ export declare class PushMaasVideoRequest extends $tea.Model {
875
+ authToken?: string;
876
+ productInstanceId?: string;
877
+ requestId: string;
878
+ model: string;
879
+ capabilityType: string;
880
+ content: ContentInfo[];
881
+ duration?: string;
882
+ ratio?: string;
169
883
  resolution?: string;
170
- /**
171
- * @example
172
- * 15
173
- */
174
- duration?: number;
175
- /**
176
- * @example
177
- * 16:9
178
- */
884
+ generateAudio?: boolean;
885
+ watermark?: boolean;
886
+ extParams?: string;
887
+ static names(): {
888
+ [key: string]: string;
889
+ };
890
+ static types(): {
891
+ [key: string]: any;
892
+ };
893
+ constructor(map?: {
894
+ [key: string]: any;
895
+ });
896
+ }
897
+ export declare class PushMaasVideoResponse extends $tea.Model {
898
+ reqMsgId?: string;
899
+ resultCode?: string;
900
+ resultMsg?: string;
901
+ taskId?: string;
902
+ status?: string;
903
+ model?: string;
904
+ static names(): {
905
+ [key: string]: string;
906
+ };
907
+ static types(): {
908
+ [key: string]: any;
909
+ };
910
+ constructor(map?: {
911
+ [key: string]: any;
912
+ });
913
+ }
914
+ export declare class QueryMaasVideoRequest extends $tea.Model {
915
+ authToken?: string;
916
+ productInstanceId?: string;
917
+ taskId: string;
918
+ static names(): {
919
+ [key: string]: string;
920
+ };
921
+ static types(): {
922
+ [key: string]: any;
923
+ };
924
+ constructor(map?: {
925
+ [key: string]: any;
926
+ });
927
+ }
928
+ export declare class QueryMaasVideoResponse extends $tea.Model {
929
+ reqMsgId?: string;
930
+ resultCode?: string;
931
+ resultMsg?: string;
932
+ taskId?: string;
933
+ status?: string;
934
+ model?: string;
935
+ createdAt?: string;
936
+ updatedAt?: string;
937
+ content?: VideoUrl;
938
+ duration?: string;
179
939
  ratio?: string;
180
- /**
181
- * @example
182
- * 10800
183
- */
184
- completionTokens?: number;
185
- /**
186
- * @example
187
- * 7
188
- */
189
- completionCredits?: number;
940
+ resolution?: string;
941
+ generateAudio?: boolean;
942
+ usage?: VideoUsage[];
943
+ extraInfo?: string;
944
+ error?: Error;
190
945
  static names(): {
191
946
  [key: string]: string;
192
947
  };
@@ -197,18 +952,18 @@ export declare class Usage extends $tea.Model {
197
952
  [key: string]: any;
198
953
  });
199
954
  }
200
- export declare class PushVideogenerationRequest extends $tea.Model {
955
+ export declare class PushMaasImageRequest extends $tea.Model {
201
956
  authToken?: string;
202
957
  productInstanceId?: string;
958
+ requestId: string;
203
959
  model: string;
960
+ capabilityType: string;
961
+ generateMode?: string;
204
962
  prompt: string;
205
- imageUrl?: string[];
206
- videoUrl?: string[];
207
- audioUrl?: string[];
208
- ratio?: string;
209
- duration?: number;
210
- requestId?: string;
211
- ext?: string;
963
+ imageUrls?: string[];
964
+ size?: string;
965
+ n?: number;
966
+ extParams?: string;
212
967
  static names(): {
213
968
  [key: string]: string;
214
969
  };
@@ -219,14 +974,17 @@ export declare class PushVideogenerationRequest extends $tea.Model {
219
974
  [key: string]: any;
220
975
  });
221
976
  }
222
- export declare class PushVideogenerationResponse extends $tea.Model {
977
+ export declare class PushMaasImageResponse extends $tea.Model {
223
978
  reqMsgId?: string;
224
979
  resultCode?: string;
225
980
  resultMsg?: string;
226
981
  taskId?: string;
227
982
  status?: string;
228
983
  model?: string;
229
- ext?: string;
984
+ content?: ImageUrlsList;
985
+ usage?: ImageUsage[];
986
+ error?: Error;
987
+ extraInfo?: string;
230
988
  static names(): {
231
989
  [key: string]: string;
232
990
  };
@@ -237,7 +995,7 @@ export declare class PushVideogenerationResponse extends $tea.Model {
237
995
  [key: string]: any;
238
996
  });
239
997
  }
240
- export declare class QueryVideogenerationRequest extends $tea.Model {
998
+ export declare class QueryMaasImageRequest extends $tea.Model {
241
999
  authToken?: string;
242
1000
  productInstanceId?: string;
243
1001
  taskId: string;
@@ -251,17 +1009,18 @@ export declare class QueryVideogenerationRequest extends $tea.Model {
251
1009
  [key: string]: any;
252
1010
  });
253
1011
  }
254
- export declare class QueryVideogenerationResponse extends $tea.Model {
1012
+ export declare class QueryMaasImageResponse extends $tea.Model {
255
1013
  reqMsgId?: string;
256
1014
  resultCode?: string;
257
1015
  resultMsg?: string;
258
1016
  taskId?: string;
259
1017
  status?: string;
260
- videoUrl?: string;
261
- errorCode?: string;
262
- errorMessage?: string;
263
- usage?: Usage;
264
- extraInfo?: ExtraInfo;
1018
+ model?: string;
1019
+ createdAt?: string;
1020
+ content?: ImageUrlsList;
1021
+ usage?: ImageUsage[];
1022
+ extraInfo?: string;
1023
+ error?: Error;
265
1024
  static names(): {
266
1025
  [key: string]: string;
267
1026
  };
@@ -272,12 +1031,17 @@ export declare class QueryVideogenerationResponse extends $tea.Model {
272
1031
  [key: string]: any;
273
1032
  });
274
1033
  }
275
- export declare class UploadAssetRequest extends $tea.Model {
1034
+ export declare class PushMaasAudioRequest extends $tea.Model {
276
1035
  authToken?: string;
277
1036
  productInstanceId?: string;
278
- assetType: string;
279
- fileUrl: string;
280
- assetName: string;
1037
+ requestId: string;
1038
+ model: string;
1039
+ capabilityType: string;
1040
+ prompt: string;
1041
+ text?: string;
1042
+ audioUrls?: string[];
1043
+ imageUrls?: string[];
1044
+ extParams?: string;
281
1045
  static names(): {
282
1046
  [key: string]: string;
283
1047
  };
@@ -288,13 +1052,13 @@ export declare class UploadAssetRequest extends $tea.Model {
288
1052
  [key: string]: any;
289
1053
  });
290
1054
  }
291
- export declare class UploadAssetResponse extends $tea.Model {
1055
+ export declare class PushMaasAudioResponse extends $tea.Model {
292
1056
  reqMsgId?: string;
293
1057
  resultCode?: string;
294
1058
  resultMsg?: string;
295
- assetId?: string;
1059
+ taskId?: string;
296
1060
  status?: string;
297
- assetType?: string;
1061
+ model?: string;
298
1062
  static names(): {
299
1063
  [key: string]: string;
300
1064
  };
@@ -305,10 +1069,10 @@ export declare class UploadAssetResponse extends $tea.Model {
305
1069
  [key: string]: any;
306
1070
  });
307
1071
  }
308
- export declare class QueryAssetRequest extends $tea.Model {
1072
+ export declare class QueryMaasAudioRequest extends $tea.Model {
309
1073
  authToken?: string;
310
1074
  productInstanceId?: string;
311
- assetId: string;
1075
+ taskId?: string;
312
1076
  static names(): {
313
1077
  [key: string]: string;
314
1078
  };
@@ -319,16 +1083,96 @@ export declare class QueryAssetRequest extends $tea.Model {
319
1083
  [key: string]: any;
320
1084
  });
321
1085
  }
322
- export declare class QueryAssetResponse extends $tea.Model {
1086
+ export declare class QueryMaasAudioResponse extends $tea.Model {
323
1087
  reqMsgId?: string;
324
1088
  resultCode?: string;
325
1089
  resultMsg?: string;
326
- assetId?: string;
1090
+ taskId?: string;
327
1091
  status?: string;
328
- assetType?: string;
329
- assetUrl?: string;
330
- errorMessage?: string;
331
- errorCode?: string;
1092
+ model?: string;
1093
+ createdAt?: string;
1094
+ content?: AudioList[];
1095
+ usage?: AudioUsage[];
1096
+ extraInfo?: string;
1097
+ error?: Error;
1098
+ static names(): {
1099
+ [key: string]: string;
1100
+ };
1101
+ static types(): {
1102
+ [key: string]: any;
1103
+ };
1104
+ constructor(map?: {
1105
+ [key: string]: any;
1106
+ });
1107
+ }
1108
+ export declare class ExecMaasChatsyncRequest extends $tea.Model {
1109
+ authToken?: string;
1110
+ productInstanceId?: string;
1111
+ requestId: string;
1112
+ model: string;
1113
+ messages: ChatMessages[];
1114
+ extParams?: string;
1115
+ static names(): {
1116
+ [key: string]: string;
1117
+ };
1118
+ static types(): {
1119
+ [key: string]: any;
1120
+ };
1121
+ constructor(map?: {
1122
+ [key: string]: any;
1123
+ });
1124
+ }
1125
+ export declare class ExecMaasChatsyncResponse extends $tea.Model {
1126
+ reqMsgId?: string;
1127
+ resultCode?: string;
1128
+ resultMsg?: string;
1129
+ id?: string;
1130
+ model?: string;
1131
+ content?: string;
1132
+ finishReason?: string;
1133
+ usage?: ChatUsage;
1134
+ static names(): {
1135
+ [key: string]: string;
1136
+ };
1137
+ static types(): {
1138
+ [key: string]: any;
1139
+ };
1140
+ constructor(map?: {
1141
+ [key: string]: any;
1142
+ });
1143
+ }
1144
+ export declare class ExecMaasPriceRequest extends $tea.Model {
1145
+ authToken?: string;
1146
+ productInstanceId?: string;
1147
+ modelName: string;
1148
+ requestDimensions?: string;
1149
+ requestMetrics?: string;
1150
+ units?: PriceUnits[];
1151
+ static names(): {
1152
+ [key: string]: string;
1153
+ };
1154
+ static types(): {
1155
+ [key: string]: any;
1156
+ };
1157
+ constructor(map?: {
1158
+ [key: string]: any;
1159
+ });
1160
+ }
1161
+ export declare class ExecMaasPriceResponse extends $tea.Model {
1162
+ reqMsgId?: string;
1163
+ resultCode?: string;
1164
+ resultMsg?: string;
1165
+ matched?: boolean;
1166
+ fallback?: boolean;
1167
+ priceRuleCode?: string;
1168
+ matchedRuleVersion?: number;
1169
+ ruleName?: string;
1170
+ priority?: number;
1171
+ requestItems?: RequestItems[];
1172
+ unitEstimates?: UnitEstimates[];
1173
+ totalAmount?: string;
1174
+ currency?: string;
1175
+ message?: string;
332
1176
  static names(): {
333
1177
  [key: string]: string;
334
1178
  };
@@ -441,4 +1285,144 @@ export default class Client {
441
1285
  queryAssetEx(request: QueryAssetRequest, headers: {
442
1286
  [key: string]: string;
443
1287
  }, runtime: $Util.RuntimeOptions): Promise<QueryAssetResponse>;
1288
+ /**
1289
+ * @remarks
1290
+ * Description: 上传资产
1291
+ * Summary: 上传资产
1292
+ */
1293
+ uploadMaasAsset(request: UploadMaasAssetRequest): Promise<UploadMaasAssetResponse>;
1294
+ /**
1295
+ * @remarks
1296
+ * Description: 上传资产
1297
+ * Summary: 上传资产
1298
+ */
1299
+ uploadMaasAssetEx(request: UploadMaasAssetRequest, headers: {
1300
+ [key: string]: string;
1301
+ }, runtime: $Util.RuntimeOptions): Promise<UploadMaasAssetResponse>;
1302
+ /**
1303
+ * @remarks
1304
+ * Description: 查询资产
1305
+ * Summary: 查询资产
1306
+ */
1307
+ queryMaasAsset(request: QueryMaasAssetRequest): Promise<QueryMaasAssetResponse>;
1308
+ /**
1309
+ * @remarks
1310
+ * Description: 查询资产
1311
+ * Summary: 查询资产
1312
+ */
1313
+ queryMaasAssetEx(request: QueryMaasAssetRequest, headers: {
1314
+ [key: string]: string;
1315
+ }, runtime: $Util.RuntimeOptions): Promise<QueryMaasAssetResponse>;
1316
+ /**
1317
+ * @remarks
1318
+ * Description: 创建视频任务
1319
+ * Summary: 创建视频任务
1320
+ */
1321
+ pushMaasVideo(request: PushMaasVideoRequest): Promise<PushMaasVideoResponse>;
1322
+ /**
1323
+ * @remarks
1324
+ * Description: 创建视频任务
1325
+ * Summary: 创建视频任务
1326
+ */
1327
+ pushMaasVideoEx(request: PushMaasVideoRequest, headers: {
1328
+ [key: string]: string;
1329
+ }, runtime: $Util.RuntimeOptions): Promise<PushMaasVideoResponse>;
1330
+ /**
1331
+ * @remarks
1332
+ * Description: 查询视频任务
1333
+ * Summary: 查询视频任务
1334
+ */
1335
+ queryMaasVideo(request: QueryMaasVideoRequest): Promise<QueryMaasVideoResponse>;
1336
+ /**
1337
+ * @remarks
1338
+ * Description: 查询视频任务
1339
+ * Summary: 查询视频任务
1340
+ */
1341
+ queryMaasVideoEx(request: QueryMaasVideoRequest, headers: {
1342
+ [key: string]: string;
1343
+ }, runtime: $Util.RuntimeOptions): Promise<QueryMaasVideoResponse>;
1344
+ /**
1345
+ * @remarks
1346
+ * Description: 生成图片
1347
+ * Summary: 生成图片
1348
+ */
1349
+ pushMaasImage(request: PushMaasImageRequest): Promise<PushMaasImageResponse>;
1350
+ /**
1351
+ * @remarks
1352
+ * Description: 生成图片
1353
+ * Summary: 生成图片
1354
+ */
1355
+ pushMaasImageEx(request: PushMaasImageRequest, headers: {
1356
+ [key: string]: string;
1357
+ }, runtime: $Util.RuntimeOptions): Promise<PushMaasImageResponse>;
1358
+ /**
1359
+ * @remarks
1360
+ * Description: 查询图片任务
1361
+ * Summary: 查询图片任务
1362
+ */
1363
+ queryMaasImage(request: QueryMaasImageRequest): Promise<QueryMaasImageResponse>;
1364
+ /**
1365
+ * @remarks
1366
+ * Description: 查询图片任务
1367
+ * Summary: 查询图片任务
1368
+ */
1369
+ queryMaasImageEx(request: QueryMaasImageRequest, headers: {
1370
+ [key: string]: string;
1371
+ }, runtime: $Util.RuntimeOptions): Promise<QueryMaasImageResponse>;
1372
+ /**
1373
+ * @remarks
1374
+ * Description: 创建音频任务
1375
+ * Summary: 创建音频任务
1376
+ */
1377
+ pushMaasAudio(request: PushMaasAudioRequest): Promise<PushMaasAudioResponse>;
1378
+ /**
1379
+ * @remarks
1380
+ * Description: 创建音频任务
1381
+ * Summary: 创建音频任务
1382
+ */
1383
+ pushMaasAudioEx(request: PushMaasAudioRequest, headers: {
1384
+ [key: string]: string;
1385
+ }, runtime: $Util.RuntimeOptions): Promise<PushMaasAudioResponse>;
1386
+ /**
1387
+ * @remarks
1388
+ * Description: 查询音频任务
1389
+ * Summary: 查询音频任务
1390
+ */
1391
+ queryMaasAudio(request: QueryMaasAudioRequest): Promise<QueryMaasAudioResponse>;
1392
+ /**
1393
+ * @remarks
1394
+ * Description: 查询音频任务
1395
+ * Summary: 查询音频任务
1396
+ */
1397
+ queryMaasAudioEx(request: QueryMaasAudioRequest, headers: {
1398
+ [key: string]: string;
1399
+ }, runtime: $Util.RuntimeOptions): Promise<QueryMaasAudioResponse>;
1400
+ /**
1401
+ * @remarks
1402
+ * Description: 文本同步调用
1403
+ * Summary: 文本同步调用
1404
+ */
1405
+ execMaasChatsync(request: ExecMaasChatsyncRequest): Promise<ExecMaasChatsyncResponse>;
1406
+ /**
1407
+ * @remarks
1408
+ * Description: 文本同步调用
1409
+ * Summary: 文本同步调用
1410
+ */
1411
+ execMaasChatsyncEx(request: ExecMaasChatsyncRequest, headers: {
1412
+ [key: string]: string;
1413
+ }, runtime: $Util.RuntimeOptions): Promise<ExecMaasChatsyncResponse>;
1414
+ /**
1415
+ * @remarks
1416
+ * Description: 价格试算
1417
+ * Summary: 价格试算
1418
+ */
1419
+ execMaasPrice(request: ExecMaasPriceRequest): Promise<ExecMaasPriceResponse>;
1420
+ /**
1421
+ * @remarks
1422
+ * Description: 价格试算
1423
+ * Summary: 价格试算
1424
+ */
1425
+ execMaasPriceEx(request: ExecMaasPriceRequest, headers: {
1426
+ [key: string]: string;
1427
+ }, runtime: $Util.RuntimeOptions): Promise<ExecMaasPriceResponse>;
444
1428
  }