@antchain/antdigital-creative 1.0.6 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/client.d.ts CHANGED
@@ -135,17 +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 {
590
+ /**
591
+ * @example
592
+ * IMAGE_GENERATION
593
+ */
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;
149
841
  static names(): {
150
842
  [key: string]: string;
151
843
  };
@@ -156,32 +848,99 @@ export declare class ExtraInfo extends $tea.Model {
156
848
  [key: string]: any;
157
849
  });
158
850
  }
159
- export declare class Usage extends $tea.Model {
160
- /**
161
- * @example
162
- * 720p,1080p
163
- */
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;
164
882
  resolution?: string;
165
- /**
166
- * @example
167
- * 15
168
- */
169
- duration?: number;
170
- /**
171
- * @example
172
- * 16:9
173
- */
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;
174
938
  ratio?: string;
175
- /**
176
- * @example
177
- * 10800
178
- */
179
- completionTokens?: number;
180
- /**
181
- * @example
182
- * 7
183
- */
184
- completionCredits?: number;
939
+ resolution?: string;
940
+ generateAudio?: boolean;
941
+ usage?: VideoUsage[];
942
+ extraInfo?: string;
943
+ error?: Error;
185
944
  static names(): {
186
945
  [key: string]: string;
187
946
  };
@@ -192,18 +951,18 @@ export declare class Usage extends $tea.Model {
192
951
  [key: string]: any;
193
952
  });
194
953
  }
195
- export declare class PushVideogenerationRequest extends $tea.Model {
954
+ export declare class PushMaasImageRequest extends $tea.Model {
196
955
  authToken?: string;
197
956
  productInstanceId?: string;
957
+ requestId: string;
198
958
  model: string;
959
+ capabilityType: string;
960
+ generateMode?: string;
199
961
  prompt: string;
200
- imageUrl?: string[];
201
- videoUrl?: string[];
202
- audioUrl?: string[];
203
- ratio?: string;
204
- duration?: number;
205
- requestId?: string;
206
- ext?: string;
962
+ imageUrls?: string[];
963
+ size?: string;
964
+ n?: number;
965
+ extParams?: string;
207
966
  static names(): {
208
967
  [key: string]: string;
209
968
  };
@@ -214,14 +973,17 @@ export declare class PushVideogenerationRequest extends $tea.Model {
214
973
  [key: string]: any;
215
974
  });
216
975
  }
217
- export declare class PushVideogenerationResponse extends $tea.Model {
976
+ export declare class PushMaasImageResponse extends $tea.Model {
218
977
  reqMsgId?: string;
219
978
  resultCode?: string;
220
979
  resultMsg?: string;
221
980
  taskId?: string;
222
981
  status?: string;
223
982
  model?: string;
224
- ext?: string;
983
+ content?: ImageUrlsList;
984
+ usage?: ImageUsage[];
985
+ error?: Error;
986
+ extraInfo?: string;
225
987
  static names(): {
226
988
  [key: string]: string;
227
989
  };
@@ -232,7 +994,7 @@ export declare class PushVideogenerationResponse extends $tea.Model {
232
994
  [key: string]: any;
233
995
  });
234
996
  }
235
- export declare class QueryVideogenerationRequest extends $tea.Model {
997
+ export declare class QueryMaasImageRequest extends $tea.Model {
236
998
  authToken?: string;
237
999
  productInstanceId?: string;
238
1000
  taskId: string;
@@ -246,17 +1008,18 @@ export declare class QueryVideogenerationRequest extends $tea.Model {
246
1008
  [key: string]: any;
247
1009
  });
248
1010
  }
249
- export declare class QueryVideogenerationResponse extends $tea.Model {
1011
+ export declare class QueryMaasImageResponse extends $tea.Model {
250
1012
  reqMsgId?: string;
251
1013
  resultCode?: string;
252
1014
  resultMsg?: string;
253
1015
  taskId?: string;
254
1016
  status?: string;
255
- videoUrl?: string;
256
- errorCode?: string;
257
- errorMessage?: string;
258
- usage?: Usage;
259
- extraInfo?: ExtraInfo;
1017
+ model?: string;
1018
+ createdAt?: string;
1019
+ content?: ImageUrlsList;
1020
+ usage?: ImageUsage[];
1021
+ extraInfo?: string;
1022
+ error?: Error;
260
1023
  static names(): {
261
1024
  [key: string]: string;
262
1025
  };
@@ -267,12 +1030,17 @@ export declare class QueryVideogenerationResponse extends $tea.Model {
267
1030
  [key: string]: any;
268
1031
  });
269
1032
  }
270
- export declare class UploadAssetRequest extends $tea.Model {
1033
+ export declare class PushMaasAudioRequest extends $tea.Model {
271
1034
  authToken?: string;
272
1035
  productInstanceId?: string;
273
- assetType: string;
274
- fileUrl: string;
275
- 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;
276
1044
  static names(): {
277
1045
  [key: string]: string;
278
1046
  };
@@ -283,13 +1051,13 @@ export declare class UploadAssetRequest extends $tea.Model {
283
1051
  [key: string]: any;
284
1052
  });
285
1053
  }
286
- export declare class UploadAssetResponse extends $tea.Model {
1054
+ export declare class PushMaasAudioResponse extends $tea.Model {
287
1055
  reqMsgId?: string;
288
1056
  resultCode?: string;
289
1057
  resultMsg?: string;
290
- assetId?: string;
1058
+ taskId?: string;
291
1059
  status?: string;
292
- assetType?: string;
1060
+ model?: string;
293
1061
  static names(): {
294
1062
  [key: string]: string;
295
1063
  };
@@ -300,10 +1068,10 @@ export declare class UploadAssetResponse extends $tea.Model {
300
1068
  [key: string]: any;
301
1069
  });
302
1070
  }
303
- export declare class QueryAssetRequest extends $tea.Model {
1071
+ export declare class QueryMaasAudioRequest extends $tea.Model {
304
1072
  authToken?: string;
305
1073
  productInstanceId?: string;
306
- assetId: string;
1074
+ taskId?: string;
307
1075
  static names(): {
308
1076
  [key: string]: string;
309
1077
  };
@@ -314,16 +1082,96 @@ export declare class QueryAssetRequest extends $tea.Model {
314
1082
  [key: string]: any;
315
1083
  });
316
1084
  }
317
- export declare class QueryAssetResponse extends $tea.Model {
1085
+ export declare class QueryMaasAudioResponse extends $tea.Model {
318
1086
  reqMsgId?: string;
319
1087
  resultCode?: string;
320
1088
  resultMsg?: string;
321
- assetId?: string;
1089
+ taskId?: string;
322
1090
  status?: string;
323
- assetType?: string;
324
- assetUrl?: string;
325
- errorMessage?: string;
326
- 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;
327
1175
  static names(): {
328
1176
  [key: string]: string;
329
1177
  };
@@ -436,4 +1284,144 @@ export default class Client {
436
1284
  queryAssetEx(request: QueryAssetRequest, headers: {
437
1285
  [key: string]: string;
438
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>;
439
1427
  }