@openloaf-saas/sdk 0.1.11 → 0.1.13

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.
Files changed (4) hide show
  1. package/dist/index.d.ts +1948 -29
  2. package/dist/index.js +1 -1717
  3. package/package.json +14 -32
  4. package/README.md +0 -520
package/dist/index.d.ts CHANGED
@@ -209,6 +209,7 @@ declare class SaaSContract {
209
209
  supportsAudio?: boolean | undefined;
210
210
  } | undefined;
211
211
  } | undefined;
212
+ creditsPerCall?: number | undefined;
212
213
  }[];
213
214
  updatedAt?: string | undefined;
214
215
  };
@@ -260,6 +261,7 @@ declare class SaaSContract {
260
261
  supportsAudio?: boolean | undefined;
261
262
  } | undefined;
262
263
  } | undefined;
264
+ creditsPerCall?: number | undefined;
263
265
  }[];
264
266
  updatedAt?: string | undefined;
265
267
  };
@@ -311,6 +313,7 @@ declare class SaaSContract {
311
313
  supportsAudio?: boolean | undefined;
312
314
  } | undefined;
313
315
  } | undefined;
316
+ creditsPerCall?: number | undefined;
314
317
  }[];
315
318
  updatedAt?: string | undefined;
316
319
  };
@@ -439,6 +442,376 @@ declare class SaaSContract {
439
442
  updatedAt?: string | undefined;
440
443
  };
441
444
  }>;
445
+ readonly mediaGenerate: Endpoint<{
446
+ prompt: string;
447
+ feature: "imageGenerate";
448
+ aspectRatio?: "1:1" | "16:9" | "9:16" | "4:3" | "3:2" | undefined;
449
+ resolution?: "1K" | "2K" | "4K" | undefined;
450
+ mode?: "text" | "reference" | "sketch" | "character" | undefined;
451
+ inputs?: {
452
+ images?: {
453
+ url?: string | undefined;
454
+ base64?: string | undefined;
455
+ mediaType?: string | undefined;
456
+ }[] | undefined;
457
+ isSketch?: boolean | undefined;
458
+ } | undefined;
459
+ count?: 2 | 1 | 4 | undefined;
460
+ quality?: "standard" | "hd" | "draft" | undefined;
461
+ seed?: number | undefined;
462
+ style?: string | undefined;
463
+ negativePrompt?: string | undefined;
464
+ parameters?: Record<string, unknown> | undefined;
465
+ } | {
466
+ title: string;
467
+ prompt: string;
468
+ feature: "poster";
469
+ subTitle?: string | undefined;
470
+ bodyText?: string | undefined;
471
+ aspectRatio?: "1:1" | "16:9" | "9:16" | "4:3" | "3:2" | undefined;
472
+ count?: 2 | 1 | 4 | undefined;
473
+ quality?: "standard" | "hd" | "draft" | undefined;
474
+ seed?: number | undefined;
475
+ style?: string | undefined;
476
+ negativePrompt?: string | undefined;
477
+ parameters?: Record<string, unknown> | undefined;
478
+ } | {
479
+ mode: "instruct" | "stylize" | "colorize" | "inpaint" | "erase" | "eraseWatermark";
480
+ inputs: {
481
+ image: {
482
+ url?: string | undefined;
483
+ base64?: string | undefined;
484
+ mediaType?: string | undefined;
485
+ };
486
+ mask?: {
487
+ url?: string | undefined;
488
+ base64?: string | undefined;
489
+ mediaType?: string | undefined;
490
+ } | undefined;
491
+ };
492
+ feature: "imageEdit";
493
+ prompt?: string | undefined;
494
+ strength?: number | undefined;
495
+ count?: 2 | 1 | 4 | undefined;
496
+ quality?: "standard" | "hd" | "draft" | undefined;
497
+ seed?: number | undefined;
498
+ style?: string | undefined;
499
+ negativePrompt?: string | undefined;
500
+ parameters?: Record<string, unknown> | undefined;
501
+ } | {
502
+ scale: 2 | 4;
503
+ inputs: {
504
+ image: {
505
+ url?: string | undefined;
506
+ base64?: string | undefined;
507
+ mediaType?: string | undefined;
508
+ };
509
+ };
510
+ feature: "upscale";
511
+ count?: 2 | 1 | 4 | undefined;
512
+ quality?: "standard" | "hd" | "draft" | undefined;
513
+ seed?: number | undefined;
514
+ style?: string | undefined;
515
+ negativePrompt?: string | undefined;
516
+ parameters?: Record<string, unknown> | undefined;
517
+ } | {
518
+ inputs: {
519
+ image: {
520
+ url?: string | undefined;
521
+ base64?: string | undefined;
522
+ mediaType?: string | undefined;
523
+ };
524
+ };
525
+ direction: {
526
+ top?: number | undefined;
527
+ bottom?: number | undefined;
528
+ left?: number | undefined;
529
+ right?: number | undefined;
530
+ };
531
+ feature: "outpaint";
532
+ prompt?: string | undefined;
533
+ count?: 2 | 1 | 4 | undefined;
534
+ quality?: "standard" | "hd" | "draft" | undefined;
535
+ seed?: number | undefined;
536
+ style?: string | undefined;
537
+ negativePrompt?: string | undefined;
538
+ parameters?: Record<string, unknown> | undefined;
539
+ } | {
540
+ inputs: {
541
+ image: {
542
+ url?: string | undefined;
543
+ base64?: string | undefined;
544
+ mediaType?: string | undefined;
545
+ };
546
+ };
547
+ feature: "matting";
548
+ count?: 2 | 1 | 4 | undefined;
549
+ quality?: "standard" | "hd" | "draft" | undefined;
550
+ seed?: number | undefined;
551
+ style?: string | undefined;
552
+ negativePrompt?: string | undefined;
553
+ parameters?: Record<string, unknown> | undefined;
554
+ } | {
555
+ prompt: string;
556
+ duration: 5 | 10 | 15;
557
+ feature: "videoGenerate";
558
+ aspectRatio?: "1:1" | "16:9" | "9:16" | "4:3" | "3:2" | undefined;
559
+ mode?: "text" | "withAudio" | "reference" | "firstFrame" | "startEnd" | "storyboard" | "motionControl" | undefined;
560
+ inputs?: {
561
+ startImage?: {
562
+ url?: string | undefined;
563
+ base64?: string | undefined;
564
+ mediaType?: string | undefined;
565
+ } | undefined;
566
+ endImage?: {
567
+ url?: string | undefined;
568
+ base64?: string | undefined;
569
+ mediaType?: string | undefined;
570
+ } | undefined;
571
+ images?: {
572
+ url?: string | undefined;
573
+ base64?: string | undefined;
574
+ mediaType?: string | undefined;
575
+ }[] | undefined;
576
+ scenes?: {
577
+ prompt: string;
578
+ image?: {
579
+ url?: string | undefined;
580
+ base64?: string | undefined;
581
+ mediaType?: string | undefined;
582
+ } | undefined;
583
+ }[] | undefined;
584
+ } | undefined;
585
+ withAudio?: boolean | undefined;
586
+ motionPaths?: {
587
+ startX: number;
588
+ startY: number;
589
+ endX: number;
590
+ endY: number;
591
+ strength?: number | undefined;
592
+ }[] | undefined;
593
+ camera?: {
594
+ type: "pan" | "zoom" | "rotate" | "dolly" | "tilt";
595
+ direction?: string | undefined;
596
+ intensity?: number | undefined;
597
+ } | undefined;
598
+ count?: 2 | 1 | 4 | undefined;
599
+ quality?: "standard" | "hd" | "draft" | undefined;
600
+ seed?: number | undefined;
601
+ style?: string | undefined;
602
+ negativePrompt?: string | undefined;
603
+ parameters?: Record<string, unknown> | undefined;
604
+ } | {
605
+ inputs: {
606
+ video: {
607
+ url?: string | undefined;
608
+ base64?: string | undefined;
609
+ mediaType?: string | undefined;
610
+ };
611
+ };
612
+ feature: "videoEdit";
613
+ prompt?: string | undefined;
614
+ mode?: "stylize" | "extend" | "speedUp" | "slowDown" | undefined;
615
+ duration?: number | undefined;
616
+ count?: 2 | 1 | 4 | undefined;
617
+ quality?: "standard" | "hd" | "draft" | undefined;
618
+ seed?: number | undefined;
619
+ style?: string | undefined;
620
+ negativePrompt?: string | undefined;
621
+ parameters?: Record<string, unknown> | undefined;
622
+ } | {
623
+ mode: "photo2video" | "lipSync";
624
+ inputs: {
625
+ person: {
626
+ url?: string | undefined;
627
+ base64?: string | undefined;
628
+ mediaType?: string | undefined;
629
+ };
630
+ audio: {
631
+ url?: string | undefined;
632
+ base64?: string | undefined;
633
+ mediaType?: string | undefined;
634
+ };
635
+ };
636
+ feature: "digitalHuman";
637
+ count?: 2 | 1 | 4 | undefined;
638
+ quality?: "standard" | "hd" | "draft" | undefined;
639
+ seed?: number | undefined;
640
+ style?: string | undefined;
641
+ negativePrompt?: string | undefined;
642
+ parameters?: Record<string, unknown> | undefined;
643
+ } | {
644
+ inputs: {
645
+ person: {
646
+ url?: string | undefined;
647
+ base64?: string | undefined;
648
+ mediaType?: string | undefined;
649
+ };
650
+ referenceVideo: {
651
+ url?: string | undefined;
652
+ base64?: string | undefined;
653
+ mediaType?: string | undefined;
654
+ };
655
+ };
656
+ feature: "motionTransfer";
657
+ count?: 2 | 1 | 4 | undefined;
658
+ quality?: "standard" | "hd" | "draft" | undefined;
659
+ seed?: number | undefined;
660
+ style?: string | undefined;
661
+ negativePrompt?: string | undefined;
662
+ parameters?: Record<string, unknown> | undefined;
663
+ } | {
664
+ text: string;
665
+ feature: "tts";
666
+ voice?: string | undefined;
667
+ referenceAudio?: {
668
+ url?: string | undefined;
669
+ base64?: string | undefined;
670
+ mediaType?: string | undefined;
671
+ } | undefined;
672
+ output?: {
673
+ format?: "mp3" | "wav" | "opus" | undefined;
674
+ sampleRate?: number | undefined;
675
+ } | undefined;
676
+ count?: 2 | 1 | 4 | undefined;
677
+ quality?: "standard" | "hd" | "draft" | undefined;
678
+ seed?: number | undefined;
679
+ style?: string | undefined;
680
+ negativePrompt?: string | undefined;
681
+ parameters?: Record<string, unknown> | undefined;
682
+ } | {
683
+ prompt: string;
684
+ feature: "music";
685
+ duration?: number | undefined;
686
+ count?: 2 | 1 | 4 | undefined;
687
+ quality?: "standard" | "hd" | "draft" | undefined;
688
+ seed?: number | undefined;
689
+ style?: string | undefined;
690
+ negativePrompt?: string | undefined;
691
+ parameters?: Record<string, unknown> | undefined;
692
+ } | {
693
+ prompt: string;
694
+ feature: "sfx";
695
+ duration?: number | undefined;
696
+ count?: 2 | 1 | 4 | undefined;
697
+ quality?: "standard" | "hd" | "draft" | undefined;
698
+ seed?: number | undefined;
699
+ style?: string | undefined;
700
+ negativePrompt?: string | undefined;
701
+ parameters?: Record<string, unknown> | undefined;
702
+ }, {
703
+ success: false;
704
+ message: string;
705
+ code?: string | undefined;
706
+ } | {
707
+ success: true;
708
+ data: {
709
+ taskId: string;
710
+ };
711
+ }>;
712
+ readonly mediaTask: (taskId: string) => Endpoint<void, {
713
+ success: false;
714
+ message: string;
715
+ code?: string | undefined;
716
+ } | {
717
+ success: true;
718
+ data: {
719
+ status: "queued" | "running" | "succeeded" | "failed" | "canceled";
720
+ progress?: number | undefined;
721
+ resultType?: "image" | "video" | "audio" | undefined;
722
+ resultUrls?: string[] | undefined;
723
+ error?: {
724
+ message: string;
725
+ code?: string | undefined;
726
+ } | undefined;
727
+ creditsConsumed?: number | undefined;
728
+ };
729
+ }>;
730
+ readonly mediaCancelTask: (taskId: string) => Endpoint<void, {
731
+ success: false;
732
+ message: string;
733
+ code?: string | undefined;
734
+ } | {
735
+ success: true;
736
+ data: {
737
+ status: "canceled" | "processing";
738
+ };
739
+ }>;
740
+ readonly mediaTaskGroup: (groupId: string) => Endpoint<void, {
741
+ success: false;
742
+ message: string;
743
+ code?: string | undefined;
744
+ } | {
745
+ success: true;
746
+ data: {
747
+ groupId: string;
748
+ tasks: {
749
+ taskId: string;
750
+ status: "queued" | "running" | "succeeded" | "failed" | "canceled";
751
+ resultUrls?: string[] | undefined;
752
+ error?: {
753
+ message: string;
754
+ code?: string | undefined;
755
+ } | undefined;
756
+ creditsConsumed?: number | undefined;
757
+ }[];
758
+ totalCreditsConsumed?: number | undefined;
759
+ };
760
+ }>;
761
+ readonly mediaModels: Endpoint<{
762
+ feature?: "imageGenerate" | "poster" | "imageEdit" | "upscale" | "outpaint" | "matting" | "videoGenerate" | "videoEdit" | "digitalHuman" | "motionTransfer" | "tts" | "music" | "sfx" | undefined;
763
+ }, {
764
+ success: false;
765
+ message: string;
766
+ code?: string | undefined;
767
+ } | {
768
+ success: true;
769
+ data: {
770
+ data: {
771
+ [x: string]: unknown;
772
+ id: string;
773
+ name?: string | undefined;
774
+ familyId?: string | undefined;
775
+ providerId?: string | undefined;
776
+ tags?: string[] | undefined;
777
+ capabilities?: {
778
+ common?: {
779
+ maxContextK?: number | undefined;
780
+ supportsStructuredOutput?: boolean | undefined;
781
+ supportsWebSearch?: boolean | undefined;
782
+ } | undefined;
783
+ params?: {
784
+ features?: string[] | undefined;
785
+ fields?: {
786
+ key: string;
787
+ title: string;
788
+ type: "number" | "boolean" | "text" | "select";
789
+ request: boolean;
790
+ description?: string | undefined;
791
+ unit?: string | undefined;
792
+ values?: (string | number | boolean)[] | undefined;
793
+ min?: number | undefined;
794
+ max?: number | undefined;
795
+ step?: number | undefined;
796
+ default?: string | number | boolean | undefined;
797
+ }[] | undefined;
798
+ } | undefined;
799
+ input?: {
800
+ maxImages?: number | undefined;
801
+ supportsMask?: boolean | undefined;
802
+ supportsReferenceVideo?: boolean | undefined;
803
+ supportsStartEnd?: boolean | undefined;
804
+ } | undefined;
805
+ output?: {
806
+ supportsMulti?: boolean | undefined;
807
+ supportsAudio?: boolean | undefined;
808
+ } | undefined;
809
+ } | undefined;
810
+ creditsPerCall?: number | undefined;
811
+ }[];
812
+ updatedAt?: string | undefined;
813
+ };
814
+ }>;
442
815
  };
443
816
  /** AI tools endpoints. */
444
817
  readonly aiTools: {
@@ -528,7 +901,7 @@ declare class SaaSContract {
528
901
  /** Feedback endpoints. */
529
902
  readonly feedback: {
530
903
  readonly submit: Endpoint<{
531
- type: "chat" | "ui" | "performance" | "bug" | "feature" | "other";
904
+ type: "feature" | "chat" | "ui" | "performance" | "bug" | "other";
532
905
  content: string;
533
906
  context: Record<string, unknown>;
534
907
  source?: "tenas" | "openloaf" | "openloaf-saas" | undefined;
@@ -539,7 +912,7 @@ declare class SaaSContract {
539
912
  readonly list: Endpoint<{
540
913
  page?: number | undefined;
541
914
  pageSize?: number | undefined;
542
- type?: "chat" | "ui" | "performance" | "bug" | "feature" | "other" | undefined;
915
+ type?: "feature" | "chat" | "ui" | "performance" | "bug" | "other" | undefined;
543
916
  source?: "tenas" | "openloaf" | "openloaf-saas" | undefined;
544
917
  saasStatus?: "unread" | "read" | "resolved" | "ignored" | undefined;
545
918
  keyword?: string | undefined;
@@ -551,7 +924,7 @@ declare class SaaSContract {
551
924
  items: {
552
925
  id: string;
553
926
  source: "tenas" | "openloaf" | "openloaf-saas";
554
- type: "chat" | "ui" | "performance" | "bug" | "feature" | "other";
927
+ type: "feature" | "chat" | "ui" | "performance" | "bug" | "other";
555
928
  saasStatus: "unread" | "read" | "resolved" | "ignored";
556
929
  content: string;
557
930
  context: Record<string, unknown>;
@@ -570,7 +943,7 @@ declare class SaaSContract {
570
943
  feedback: {
571
944
  id: string;
572
945
  source: "tenas" | "openloaf" | "openloaf-saas";
573
- type: "chat" | "ui" | "performance" | "bug" | "feature" | "other";
946
+ type: "feature" | "chat" | "ui" | "performance" | "bug" | "other";
574
947
  saasStatus: "unread" | "read" | "resolved" | "ignored";
575
948
  content: string;
576
949
  context: Record<string, unknown>;
@@ -671,7 +1044,7 @@ declare class SaaSContract {
671
1044
  user: {
672
1045
  id: string;
673
1046
  provider: string;
674
- membershipLevel: "free" | "vip" | "svip" | "infinity";
1047
+ membershipLevel: "free" | "lite" | "pro" | "premium" | "infinity";
675
1048
  creditsBalance: number;
676
1049
  createdAt: string;
677
1050
  updatedAt: string;
@@ -933,6 +1306,7 @@ declare const aiEndpoints: {
933
1306
  supportsAudio?: boolean | undefined;
934
1307
  } | undefined;
935
1308
  } | undefined;
1309
+ creditsPerCall?: number | undefined;
936
1310
  }[];
937
1311
  updatedAt?: string | undefined;
938
1312
  };
@@ -984,6 +1358,7 @@ declare const aiEndpoints: {
984
1358
  supportsAudio?: boolean | undefined;
985
1359
  } | undefined;
986
1360
  } | undefined;
1361
+ creditsPerCall?: number | undefined;
987
1362
  }[];
988
1363
  updatedAt?: string | undefined;
989
1364
  };
@@ -1035,6 +1410,7 @@ declare const aiEndpoints: {
1035
1410
  supportsAudio?: boolean | undefined;
1036
1411
  } | undefined;
1037
1412
  } | undefined;
1413
+ creditsPerCall?: number | undefined;
1038
1414
  }[];
1039
1415
  updatedAt?: string | undefined;
1040
1416
  };
@@ -1163,7 +1539,1375 @@ declare const aiEndpoints: {
1163
1539
  updatedAt?: string | undefined;
1164
1540
  };
1165
1541
  }>;
1166
- };
1542
+ readonly mediaGenerate: Endpoint<{
1543
+ prompt: string;
1544
+ feature: "imageGenerate";
1545
+ aspectRatio?: "1:1" | "16:9" | "9:16" | "4:3" | "3:2" | undefined;
1546
+ resolution?: "1K" | "2K" | "4K" | undefined;
1547
+ mode?: "text" | "reference" | "sketch" | "character" | undefined;
1548
+ inputs?: {
1549
+ images?: {
1550
+ url?: string | undefined;
1551
+ base64?: string | undefined;
1552
+ mediaType?: string | undefined;
1553
+ }[] | undefined;
1554
+ isSketch?: boolean | undefined;
1555
+ } | undefined;
1556
+ count?: 2 | 1 | 4 | undefined;
1557
+ quality?: "standard" | "hd" | "draft" | undefined;
1558
+ seed?: number | undefined;
1559
+ style?: string | undefined;
1560
+ negativePrompt?: string | undefined;
1561
+ parameters?: Record<string, unknown> | undefined;
1562
+ } | {
1563
+ title: string;
1564
+ prompt: string;
1565
+ feature: "poster";
1566
+ subTitle?: string | undefined;
1567
+ bodyText?: string | undefined;
1568
+ aspectRatio?: "1:1" | "16:9" | "9:16" | "4:3" | "3:2" | undefined;
1569
+ count?: 2 | 1 | 4 | undefined;
1570
+ quality?: "standard" | "hd" | "draft" | undefined;
1571
+ seed?: number | undefined;
1572
+ style?: string | undefined;
1573
+ negativePrompt?: string | undefined;
1574
+ parameters?: Record<string, unknown> | undefined;
1575
+ } | {
1576
+ mode: "instruct" | "stylize" | "colorize" | "inpaint" | "erase" | "eraseWatermark";
1577
+ inputs: {
1578
+ image: {
1579
+ url?: string | undefined;
1580
+ base64?: string | undefined;
1581
+ mediaType?: string | undefined;
1582
+ };
1583
+ mask?: {
1584
+ url?: string | undefined;
1585
+ base64?: string | undefined;
1586
+ mediaType?: string | undefined;
1587
+ } | undefined;
1588
+ };
1589
+ feature: "imageEdit";
1590
+ prompt?: string | undefined;
1591
+ strength?: number | undefined;
1592
+ count?: 2 | 1 | 4 | undefined;
1593
+ quality?: "standard" | "hd" | "draft" | undefined;
1594
+ seed?: number | undefined;
1595
+ style?: string | undefined;
1596
+ negativePrompt?: string | undefined;
1597
+ parameters?: Record<string, unknown> | undefined;
1598
+ } | {
1599
+ scale: 2 | 4;
1600
+ inputs: {
1601
+ image: {
1602
+ url?: string | undefined;
1603
+ base64?: string | undefined;
1604
+ mediaType?: string | undefined;
1605
+ };
1606
+ };
1607
+ feature: "upscale";
1608
+ count?: 2 | 1 | 4 | undefined;
1609
+ quality?: "standard" | "hd" | "draft" | undefined;
1610
+ seed?: number | undefined;
1611
+ style?: string | undefined;
1612
+ negativePrompt?: string | undefined;
1613
+ parameters?: Record<string, unknown> | undefined;
1614
+ } | {
1615
+ inputs: {
1616
+ image: {
1617
+ url?: string | undefined;
1618
+ base64?: string | undefined;
1619
+ mediaType?: string | undefined;
1620
+ };
1621
+ };
1622
+ direction: {
1623
+ top?: number | undefined;
1624
+ bottom?: number | undefined;
1625
+ left?: number | undefined;
1626
+ right?: number | undefined;
1627
+ };
1628
+ feature: "outpaint";
1629
+ prompt?: string | undefined;
1630
+ count?: 2 | 1 | 4 | undefined;
1631
+ quality?: "standard" | "hd" | "draft" | undefined;
1632
+ seed?: number | undefined;
1633
+ style?: string | undefined;
1634
+ negativePrompt?: string | undefined;
1635
+ parameters?: Record<string, unknown> | undefined;
1636
+ } | {
1637
+ inputs: {
1638
+ image: {
1639
+ url?: string | undefined;
1640
+ base64?: string | undefined;
1641
+ mediaType?: string | undefined;
1642
+ };
1643
+ };
1644
+ feature: "matting";
1645
+ count?: 2 | 1 | 4 | undefined;
1646
+ quality?: "standard" | "hd" | "draft" | undefined;
1647
+ seed?: number | undefined;
1648
+ style?: string | undefined;
1649
+ negativePrompt?: string | undefined;
1650
+ parameters?: Record<string, unknown> | undefined;
1651
+ } | {
1652
+ prompt: string;
1653
+ duration: 5 | 10 | 15;
1654
+ feature: "videoGenerate";
1655
+ aspectRatio?: "1:1" | "16:9" | "9:16" | "4:3" | "3:2" | undefined;
1656
+ mode?: "text" | "withAudio" | "reference" | "firstFrame" | "startEnd" | "storyboard" | "motionControl" | undefined;
1657
+ inputs?: {
1658
+ startImage?: {
1659
+ url?: string | undefined;
1660
+ base64?: string | undefined;
1661
+ mediaType?: string | undefined;
1662
+ } | undefined;
1663
+ endImage?: {
1664
+ url?: string | undefined;
1665
+ base64?: string | undefined;
1666
+ mediaType?: string | undefined;
1667
+ } | undefined;
1668
+ images?: {
1669
+ url?: string | undefined;
1670
+ base64?: string | undefined;
1671
+ mediaType?: string | undefined;
1672
+ }[] | undefined;
1673
+ scenes?: {
1674
+ prompt: string;
1675
+ image?: {
1676
+ url?: string | undefined;
1677
+ base64?: string | undefined;
1678
+ mediaType?: string | undefined;
1679
+ } | undefined;
1680
+ }[] | undefined;
1681
+ } | undefined;
1682
+ withAudio?: boolean | undefined;
1683
+ motionPaths?: {
1684
+ startX: number;
1685
+ startY: number;
1686
+ endX: number;
1687
+ endY: number;
1688
+ strength?: number | undefined;
1689
+ }[] | undefined;
1690
+ camera?: {
1691
+ type: "pan" | "zoom" | "rotate" | "dolly" | "tilt";
1692
+ direction?: string | undefined;
1693
+ intensity?: number | undefined;
1694
+ } | undefined;
1695
+ count?: 2 | 1 | 4 | undefined;
1696
+ quality?: "standard" | "hd" | "draft" | undefined;
1697
+ seed?: number | undefined;
1698
+ style?: string | undefined;
1699
+ negativePrompt?: string | undefined;
1700
+ parameters?: Record<string, unknown> | undefined;
1701
+ } | {
1702
+ inputs: {
1703
+ video: {
1704
+ url?: string | undefined;
1705
+ base64?: string | undefined;
1706
+ mediaType?: string | undefined;
1707
+ };
1708
+ };
1709
+ feature: "videoEdit";
1710
+ prompt?: string | undefined;
1711
+ mode?: "stylize" | "extend" | "speedUp" | "slowDown" | undefined;
1712
+ duration?: number | undefined;
1713
+ count?: 2 | 1 | 4 | undefined;
1714
+ quality?: "standard" | "hd" | "draft" | undefined;
1715
+ seed?: number | undefined;
1716
+ style?: string | undefined;
1717
+ negativePrompt?: string | undefined;
1718
+ parameters?: Record<string, unknown> | undefined;
1719
+ } | {
1720
+ mode: "photo2video" | "lipSync";
1721
+ inputs: {
1722
+ person: {
1723
+ url?: string | undefined;
1724
+ base64?: string | undefined;
1725
+ mediaType?: string | undefined;
1726
+ };
1727
+ audio: {
1728
+ url?: string | undefined;
1729
+ base64?: string | undefined;
1730
+ mediaType?: string | undefined;
1731
+ };
1732
+ };
1733
+ feature: "digitalHuman";
1734
+ count?: 2 | 1 | 4 | undefined;
1735
+ quality?: "standard" | "hd" | "draft" | undefined;
1736
+ seed?: number | undefined;
1737
+ style?: string | undefined;
1738
+ negativePrompt?: string | undefined;
1739
+ parameters?: Record<string, unknown> | undefined;
1740
+ } | {
1741
+ inputs: {
1742
+ person: {
1743
+ url?: string | undefined;
1744
+ base64?: string | undefined;
1745
+ mediaType?: string | undefined;
1746
+ };
1747
+ referenceVideo: {
1748
+ url?: string | undefined;
1749
+ base64?: string | undefined;
1750
+ mediaType?: string | undefined;
1751
+ };
1752
+ };
1753
+ feature: "motionTransfer";
1754
+ count?: 2 | 1 | 4 | undefined;
1755
+ quality?: "standard" | "hd" | "draft" | undefined;
1756
+ seed?: number | undefined;
1757
+ style?: string | undefined;
1758
+ negativePrompt?: string | undefined;
1759
+ parameters?: Record<string, unknown> | undefined;
1760
+ } | {
1761
+ text: string;
1762
+ feature: "tts";
1763
+ voice?: string | undefined;
1764
+ referenceAudio?: {
1765
+ url?: string | undefined;
1766
+ base64?: string | undefined;
1767
+ mediaType?: string | undefined;
1768
+ } | undefined;
1769
+ output?: {
1770
+ format?: "mp3" | "wav" | "opus" | undefined;
1771
+ sampleRate?: number | undefined;
1772
+ } | undefined;
1773
+ count?: 2 | 1 | 4 | undefined;
1774
+ quality?: "standard" | "hd" | "draft" | undefined;
1775
+ seed?: number | undefined;
1776
+ style?: string | undefined;
1777
+ negativePrompt?: string | undefined;
1778
+ parameters?: Record<string, unknown> | undefined;
1779
+ } | {
1780
+ prompt: string;
1781
+ feature: "music";
1782
+ duration?: number | undefined;
1783
+ count?: 2 | 1 | 4 | undefined;
1784
+ quality?: "standard" | "hd" | "draft" | undefined;
1785
+ seed?: number | undefined;
1786
+ style?: string | undefined;
1787
+ negativePrompt?: string | undefined;
1788
+ parameters?: Record<string, unknown> | undefined;
1789
+ } | {
1790
+ prompt: string;
1791
+ feature: "sfx";
1792
+ duration?: number | undefined;
1793
+ count?: 2 | 1 | 4 | undefined;
1794
+ quality?: "standard" | "hd" | "draft" | undefined;
1795
+ seed?: number | undefined;
1796
+ style?: string | undefined;
1797
+ negativePrompt?: string | undefined;
1798
+ parameters?: Record<string, unknown> | undefined;
1799
+ }, {
1800
+ success: false;
1801
+ message: string;
1802
+ code?: string | undefined;
1803
+ } | {
1804
+ success: true;
1805
+ data: {
1806
+ taskId: string;
1807
+ };
1808
+ }>;
1809
+ readonly mediaTask: (taskId: string) => Endpoint<void, {
1810
+ success: false;
1811
+ message: string;
1812
+ code?: string | undefined;
1813
+ } | {
1814
+ success: true;
1815
+ data: {
1816
+ status: "queued" | "running" | "succeeded" | "failed" | "canceled";
1817
+ progress?: number | undefined;
1818
+ resultType?: "image" | "video" | "audio" | undefined;
1819
+ resultUrls?: string[] | undefined;
1820
+ error?: {
1821
+ message: string;
1822
+ code?: string | undefined;
1823
+ } | undefined;
1824
+ creditsConsumed?: number | undefined;
1825
+ };
1826
+ }>;
1827
+ readonly mediaCancelTask: (taskId: string) => Endpoint<void, {
1828
+ success: false;
1829
+ message: string;
1830
+ code?: string | undefined;
1831
+ } | {
1832
+ success: true;
1833
+ data: {
1834
+ status: "canceled" | "processing";
1835
+ };
1836
+ }>;
1837
+ readonly mediaTaskGroup: (groupId: string) => Endpoint<void, {
1838
+ success: false;
1839
+ message: string;
1840
+ code?: string | undefined;
1841
+ } | {
1842
+ success: true;
1843
+ data: {
1844
+ groupId: string;
1845
+ tasks: {
1846
+ taskId: string;
1847
+ status: "queued" | "running" | "succeeded" | "failed" | "canceled";
1848
+ resultUrls?: string[] | undefined;
1849
+ error?: {
1850
+ message: string;
1851
+ code?: string | undefined;
1852
+ } | undefined;
1853
+ creditsConsumed?: number | undefined;
1854
+ }[];
1855
+ totalCreditsConsumed?: number | undefined;
1856
+ };
1857
+ }>;
1858
+ readonly mediaModels: Endpoint<{
1859
+ feature?: "imageGenerate" | "poster" | "imageEdit" | "upscale" | "outpaint" | "matting" | "videoGenerate" | "videoEdit" | "digitalHuman" | "motionTransfer" | "tts" | "music" | "sfx" | undefined;
1860
+ }, {
1861
+ success: false;
1862
+ message: string;
1863
+ code?: string | undefined;
1864
+ } | {
1865
+ success: true;
1866
+ data: {
1867
+ data: {
1868
+ [x: string]: unknown;
1869
+ id: string;
1870
+ name?: string | undefined;
1871
+ familyId?: string | undefined;
1872
+ providerId?: string | undefined;
1873
+ tags?: string[] | undefined;
1874
+ capabilities?: {
1875
+ common?: {
1876
+ maxContextK?: number | undefined;
1877
+ supportsStructuredOutput?: boolean | undefined;
1878
+ supportsWebSearch?: boolean | undefined;
1879
+ } | undefined;
1880
+ params?: {
1881
+ features?: string[] | undefined;
1882
+ fields?: {
1883
+ key: string;
1884
+ title: string;
1885
+ type: "number" | "boolean" | "text" | "select";
1886
+ request: boolean;
1887
+ description?: string | undefined;
1888
+ unit?: string | undefined;
1889
+ values?: (string | number | boolean)[] | undefined;
1890
+ min?: number | undefined;
1891
+ max?: number | undefined;
1892
+ step?: number | undefined;
1893
+ default?: string | number | boolean | undefined;
1894
+ }[] | undefined;
1895
+ } | undefined;
1896
+ input?: {
1897
+ maxImages?: number | undefined;
1898
+ supportsMask?: boolean | undefined;
1899
+ supportsReferenceVideo?: boolean | undefined;
1900
+ supportsStartEnd?: boolean | undefined;
1901
+ } | undefined;
1902
+ output?: {
1903
+ supportsMulti?: boolean | undefined;
1904
+ supportsAudio?: boolean | undefined;
1905
+ } | undefined;
1906
+ } | undefined;
1907
+ creditsPerCall?: number | undefined;
1908
+ }[];
1909
+ updatedAt?: string | undefined;
1910
+ };
1911
+ }>;
1912
+ };
1913
+
1914
+ /** Supported media generation features. */
1915
+ declare const mediaFeatureSchema: z.ZodEnum<{
1916
+ imageGenerate: "imageGenerate";
1917
+ poster: "poster";
1918
+ imageEdit: "imageEdit";
1919
+ upscale: "upscale";
1920
+ outpaint: "outpaint";
1921
+ matting: "matting";
1922
+ videoGenerate: "videoGenerate";
1923
+ videoEdit: "videoEdit";
1924
+ digitalHuman: "digitalHuman";
1925
+ motionTransfer: "motionTransfer";
1926
+ tts: "tts";
1927
+ music: "music";
1928
+ sfx: "sfx";
1929
+ }>;
1930
+ /** Supported aspect ratios for media output. */
1931
+ declare const mediaAspectRatioSchema: z.ZodEnum<{
1932
+ "1:1": "1:1";
1933
+ "16:9": "16:9";
1934
+ "9:16": "9:16";
1935
+ "4:3": "4:3";
1936
+ "3:2": "3:2";
1937
+ }>;
1938
+ /** Supported output resolutions. */
1939
+ declare const mediaResolutionSchema: z.ZodEnum<{
1940
+ "1K": "1K";
1941
+ "2K": "2K";
1942
+ "4K": "4K";
1943
+ }>;
1944
+ /** Output quality levels. */
1945
+ declare const mediaQualitySchema: z.ZodEnum<{
1946
+ standard: "standard";
1947
+ hd: "hd";
1948
+ draft: "draft";
1949
+ }>;
1950
+ /**
1951
+ * Base media generate request schema (standalone, for reference/docs only).
1952
+ * 不直接用于 discriminatedUnion,仅作为公共字段的 schema 化参考。
1953
+ */
1954
+ declare const mediaGenerateBaseSchema: z.ZodObject<{
1955
+ count: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
1956
+ quality: z.ZodOptional<z.ZodEnum<{
1957
+ standard: "standard";
1958
+ hd: "hd";
1959
+ draft: "draft";
1960
+ }>>;
1961
+ seed: z.ZodOptional<z.ZodNumber>;
1962
+ style: z.ZodOptional<z.ZodString>;
1963
+ negativePrompt: z.ZodOptional<z.ZodString>;
1964
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1965
+ feature: z.ZodEnum<{
1966
+ imageGenerate: "imageGenerate";
1967
+ poster: "poster";
1968
+ imageEdit: "imageEdit";
1969
+ upscale: "upscale";
1970
+ outpaint: "outpaint";
1971
+ matting: "matting";
1972
+ videoGenerate: "videoGenerate";
1973
+ videoEdit: "videoEdit";
1974
+ digitalHuman: "digitalHuman";
1975
+ motionTransfer: "motionTransfer";
1976
+ tts: "tts";
1977
+ music: "music";
1978
+ sfx: "sfx";
1979
+ }>;
1980
+ }, z.core.$strip>;
1981
+ /** F01: Image generation request. */
1982
+ declare const imageGenerateRequestSchema: z.ZodObject<{
1983
+ prompt: z.ZodString;
1984
+ aspectRatio: z.ZodOptional<z.ZodEnum<{
1985
+ "1:1": "1:1";
1986
+ "16:9": "16:9";
1987
+ "9:16": "9:16";
1988
+ "4:3": "4:3";
1989
+ "3:2": "3:2";
1990
+ }>>;
1991
+ resolution: z.ZodOptional<z.ZodEnum<{
1992
+ "1K": "1K";
1993
+ "2K": "2K";
1994
+ "4K": "4K";
1995
+ }>>;
1996
+ mode: z.ZodOptional<z.ZodEnum<{
1997
+ text: "text";
1998
+ reference: "reference";
1999
+ sketch: "sketch";
2000
+ character: "character";
2001
+ }>>;
2002
+ inputs: z.ZodOptional<z.ZodObject<{
2003
+ images: z.ZodOptional<z.ZodArray<z.ZodObject<{
2004
+ url: z.ZodOptional<z.ZodString>;
2005
+ base64: z.ZodOptional<z.ZodString>;
2006
+ mediaType: z.ZodOptional<z.ZodString>;
2007
+ }, z.core.$strip>>>;
2008
+ isSketch: z.ZodOptional<z.ZodBoolean>;
2009
+ }, z.core.$strip>>;
2010
+ count: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
2011
+ quality: z.ZodOptional<z.ZodEnum<{
2012
+ standard: "standard";
2013
+ hd: "hd";
2014
+ draft: "draft";
2015
+ }>>;
2016
+ seed: z.ZodOptional<z.ZodNumber>;
2017
+ style: z.ZodOptional<z.ZodString>;
2018
+ negativePrompt: z.ZodOptional<z.ZodString>;
2019
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2020
+ feature: z.ZodLiteral<"imageGenerate">;
2021
+ }, z.core.$strip>;
2022
+ /** F02: Poster generation request. */
2023
+ declare const posterRequestSchema: z.ZodObject<{
2024
+ title: z.ZodString;
2025
+ subTitle: z.ZodOptional<z.ZodString>;
2026
+ bodyText: z.ZodOptional<z.ZodString>;
2027
+ prompt: z.ZodString;
2028
+ aspectRatio: z.ZodOptional<z.ZodEnum<{
2029
+ "1:1": "1:1";
2030
+ "16:9": "16:9";
2031
+ "9:16": "9:16";
2032
+ "4:3": "4:3";
2033
+ "3:2": "3:2";
2034
+ }>>;
2035
+ count: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
2036
+ quality: z.ZodOptional<z.ZodEnum<{
2037
+ standard: "standard";
2038
+ hd: "hd";
2039
+ draft: "draft";
2040
+ }>>;
2041
+ seed: z.ZodOptional<z.ZodNumber>;
2042
+ style: z.ZodOptional<z.ZodString>;
2043
+ negativePrompt: z.ZodOptional<z.ZodString>;
2044
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2045
+ feature: z.ZodLiteral<"poster">;
2046
+ }, z.core.$strip>;
2047
+ /** F03: Image editing request. */
2048
+ declare const imageEditRequestSchema: z.ZodObject<{
2049
+ prompt: z.ZodOptional<z.ZodString>;
2050
+ mode: z.ZodEnum<{
2051
+ instruct: "instruct";
2052
+ stylize: "stylize";
2053
+ colorize: "colorize";
2054
+ inpaint: "inpaint";
2055
+ erase: "erase";
2056
+ eraseWatermark: "eraseWatermark";
2057
+ }>;
2058
+ inputs: z.ZodObject<{
2059
+ image: z.ZodObject<{
2060
+ url: z.ZodOptional<z.ZodString>;
2061
+ base64: z.ZodOptional<z.ZodString>;
2062
+ mediaType: z.ZodOptional<z.ZodString>;
2063
+ }, z.core.$strip>;
2064
+ mask: z.ZodOptional<z.ZodObject<{
2065
+ url: z.ZodOptional<z.ZodString>;
2066
+ base64: z.ZodOptional<z.ZodString>;
2067
+ mediaType: z.ZodOptional<z.ZodString>;
2068
+ }, z.core.$strip>>;
2069
+ }, z.core.$strip>;
2070
+ strength: z.ZodOptional<z.ZodNumber>;
2071
+ count: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
2072
+ quality: z.ZodOptional<z.ZodEnum<{
2073
+ standard: "standard";
2074
+ hd: "hd";
2075
+ draft: "draft";
2076
+ }>>;
2077
+ seed: z.ZodOptional<z.ZodNumber>;
2078
+ style: z.ZodOptional<z.ZodString>;
2079
+ negativePrompt: z.ZodOptional<z.ZodString>;
2080
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2081
+ feature: z.ZodLiteral<"imageEdit">;
2082
+ }, z.core.$strip>;
2083
+ /** F04: Image upscale request. */
2084
+ declare const upscaleRequestSchema: z.ZodObject<{
2085
+ scale: z.ZodUnion<readonly [z.ZodLiteral<2>, z.ZodLiteral<4>]>;
2086
+ inputs: z.ZodObject<{
2087
+ image: z.ZodObject<{
2088
+ url: z.ZodOptional<z.ZodString>;
2089
+ base64: z.ZodOptional<z.ZodString>;
2090
+ mediaType: z.ZodOptional<z.ZodString>;
2091
+ }, z.core.$strip>;
2092
+ }, z.core.$strip>;
2093
+ count: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
2094
+ quality: z.ZodOptional<z.ZodEnum<{
2095
+ standard: "standard";
2096
+ hd: "hd";
2097
+ draft: "draft";
2098
+ }>>;
2099
+ seed: z.ZodOptional<z.ZodNumber>;
2100
+ style: z.ZodOptional<z.ZodString>;
2101
+ negativePrompt: z.ZodOptional<z.ZodString>;
2102
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2103
+ feature: z.ZodLiteral<"upscale">;
2104
+ }, z.core.$strip>;
2105
+ /** F05: Image outpaint (canvas expansion) request. */
2106
+ declare const outpaintRequestSchema: z.ZodObject<{
2107
+ prompt: z.ZodOptional<z.ZodString>;
2108
+ inputs: z.ZodObject<{
2109
+ image: z.ZodObject<{
2110
+ url: z.ZodOptional<z.ZodString>;
2111
+ base64: z.ZodOptional<z.ZodString>;
2112
+ mediaType: z.ZodOptional<z.ZodString>;
2113
+ }, z.core.$strip>;
2114
+ }, z.core.$strip>;
2115
+ direction: z.ZodObject<{
2116
+ top: z.ZodOptional<z.ZodNumber>;
2117
+ bottom: z.ZodOptional<z.ZodNumber>;
2118
+ left: z.ZodOptional<z.ZodNumber>;
2119
+ right: z.ZodOptional<z.ZodNumber>;
2120
+ }, z.core.$strip>;
2121
+ count: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
2122
+ quality: z.ZodOptional<z.ZodEnum<{
2123
+ standard: "standard";
2124
+ hd: "hd";
2125
+ draft: "draft";
2126
+ }>>;
2127
+ seed: z.ZodOptional<z.ZodNumber>;
2128
+ style: z.ZodOptional<z.ZodString>;
2129
+ negativePrompt: z.ZodOptional<z.ZodString>;
2130
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2131
+ feature: z.ZodLiteral<"outpaint">;
2132
+ }, z.core.$strip>;
2133
+ /** F06: Image matting (background removal) request. */
2134
+ declare const mattingRequestSchema: z.ZodObject<{
2135
+ inputs: z.ZodObject<{
2136
+ image: z.ZodObject<{
2137
+ url: z.ZodOptional<z.ZodString>;
2138
+ base64: z.ZodOptional<z.ZodString>;
2139
+ mediaType: z.ZodOptional<z.ZodString>;
2140
+ }, z.core.$strip>;
2141
+ }, z.core.$strip>;
2142
+ count: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
2143
+ quality: z.ZodOptional<z.ZodEnum<{
2144
+ standard: "standard";
2145
+ hd: "hd";
2146
+ draft: "draft";
2147
+ }>>;
2148
+ seed: z.ZodOptional<z.ZodNumber>;
2149
+ style: z.ZodOptional<z.ZodString>;
2150
+ negativePrompt: z.ZodOptional<z.ZodString>;
2151
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2152
+ feature: z.ZodLiteral<"matting">;
2153
+ }, z.core.$strip>;
2154
+ /** F07: Video generation request. */
2155
+ declare const videoGenerateRequestSchema: z.ZodObject<{
2156
+ prompt: z.ZodString;
2157
+ aspectRatio: z.ZodOptional<z.ZodEnum<{
2158
+ "1:1": "1:1";
2159
+ "16:9": "16:9";
2160
+ "9:16": "9:16";
2161
+ "4:3": "4:3";
2162
+ "3:2": "3:2";
2163
+ }>>;
2164
+ duration: z.ZodUnion<readonly [z.ZodLiteral<5>, z.ZodLiteral<10>, z.ZodLiteral<15>]>;
2165
+ mode: z.ZodOptional<z.ZodEnum<{
2166
+ text: "text";
2167
+ withAudio: "withAudio";
2168
+ reference: "reference";
2169
+ firstFrame: "firstFrame";
2170
+ startEnd: "startEnd";
2171
+ storyboard: "storyboard";
2172
+ motionControl: "motionControl";
2173
+ }>>;
2174
+ inputs: z.ZodOptional<z.ZodObject<{
2175
+ startImage: z.ZodOptional<z.ZodObject<{
2176
+ url: z.ZodOptional<z.ZodString>;
2177
+ base64: z.ZodOptional<z.ZodString>;
2178
+ mediaType: z.ZodOptional<z.ZodString>;
2179
+ }, z.core.$strip>>;
2180
+ endImage: z.ZodOptional<z.ZodObject<{
2181
+ url: z.ZodOptional<z.ZodString>;
2182
+ base64: z.ZodOptional<z.ZodString>;
2183
+ mediaType: z.ZodOptional<z.ZodString>;
2184
+ }, z.core.$strip>>;
2185
+ images: z.ZodOptional<z.ZodArray<z.ZodObject<{
2186
+ url: z.ZodOptional<z.ZodString>;
2187
+ base64: z.ZodOptional<z.ZodString>;
2188
+ mediaType: z.ZodOptional<z.ZodString>;
2189
+ }, z.core.$strip>>>;
2190
+ scenes: z.ZodOptional<z.ZodArray<z.ZodObject<{
2191
+ prompt: z.ZodString;
2192
+ image: z.ZodOptional<z.ZodObject<{
2193
+ url: z.ZodOptional<z.ZodString>;
2194
+ base64: z.ZodOptional<z.ZodString>;
2195
+ mediaType: z.ZodOptional<z.ZodString>;
2196
+ }, z.core.$strip>>;
2197
+ }, z.core.$strip>>>;
2198
+ }, z.core.$strip>>;
2199
+ withAudio: z.ZodOptional<z.ZodBoolean>;
2200
+ motionPaths: z.ZodOptional<z.ZodArray<z.ZodObject<{
2201
+ startX: z.ZodNumber;
2202
+ startY: z.ZodNumber;
2203
+ endX: z.ZodNumber;
2204
+ endY: z.ZodNumber;
2205
+ strength: z.ZodOptional<z.ZodNumber>;
2206
+ }, z.core.$strip>>>;
2207
+ camera: z.ZodOptional<z.ZodObject<{
2208
+ type: z.ZodEnum<{
2209
+ pan: "pan";
2210
+ zoom: "zoom";
2211
+ rotate: "rotate";
2212
+ dolly: "dolly";
2213
+ tilt: "tilt";
2214
+ }>;
2215
+ direction: z.ZodOptional<z.ZodString>;
2216
+ intensity: z.ZodOptional<z.ZodNumber>;
2217
+ }, z.core.$strip>>;
2218
+ count: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
2219
+ quality: z.ZodOptional<z.ZodEnum<{
2220
+ standard: "standard";
2221
+ hd: "hd";
2222
+ draft: "draft";
2223
+ }>>;
2224
+ seed: z.ZodOptional<z.ZodNumber>;
2225
+ style: z.ZodOptional<z.ZodString>;
2226
+ negativePrompt: z.ZodOptional<z.ZodString>;
2227
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2228
+ feature: z.ZodLiteral<"videoGenerate">;
2229
+ }, z.core.$strip>;
2230
+ /** F08: Video editing request. */
2231
+ declare const videoEditRequestSchema: z.ZodObject<{
2232
+ prompt: z.ZodOptional<z.ZodString>;
2233
+ mode: z.ZodOptional<z.ZodEnum<{
2234
+ stylize: "stylize";
2235
+ extend: "extend";
2236
+ speedUp: "speedUp";
2237
+ slowDown: "slowDown";
2238
+ }>>;
2239
+ inputs: z.ZodObject<{
2240
+ video: z.ZodObject<{
2241
+ url: z.ZodOptional<z.ZodString>;
2242
+ base64: z.ZodOptional<z.ZodString>;
2243
+ mediaType: z.ZodOptional<z.ZodString>;
2244
+ }, z.core.$strip>;
2245
+ }, z.core.$strip>;
2246
+ duration: z.ZodOptional<z.ZodNumber>;
2247
+ count: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
2248
+ quality: z.ZodOptional<z.ZodEnum<{
2249
+ standard: "standard";
2250
+ hd: "hd";
2251
+ draft: "draft";
2252
+ }>>;
2253
+ seed: z.ZodOptional<z.ZodNumber>;
2254
+ style: z.ZodOptional<z.ZodString>;
2255
+ negativePrompt: z.ZodOptional<z.ZodString>;
2256
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2257
+ feature: z.ZodLiteral<"videoEdit">;
2258
+ }, z.core.$strip>;
2259
+ /** F09: Digital human (talking head / lip sync) request. */
2260
+ declare const digitalHumanRequestSchema: z.ZodObject<{
2261
+ mode: z.ZodEnum<{
2262
+ photo2video: "photo2video";
2263
+ lipSync: "lipSync";
2264
+ }>;
2265
+ inputs: z.ZodObject<{
2266
+ person: z.ZodObject<{
2267
+ url: z.ZodOptional<z.ZodString>;
2268
+ base64: z.ZodOptional<z.ZodString>;
2269
+ mediaType: z.ZodOptional<z.ZodString>;
2270
+ }, z.core.$strip>;
2271
+ audio: z.ZodObject<{
2272
+ url: z.ZodOptional<z.ZodString>;
2273
+ base64: z.ZodOptional<z.ZodString>;
2274
+ mediaType: z.ZodOptional<z.ZodString>;
2275
+ }, z.core.$strip>;
2276
+ }, z.core.$strip>;
2277
+ count: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
2278
+ quality: z.ZodOptional<z.ZodEnum<{
2279
+ standard: "standard";
2280
+ hd: "hd";
2281
+ draft: "draft";
2282
+ }>>;
2283
+ seed: z.ZodOptional<z.ZodNumber>;
2284
+ style: z.ZodOptional<z.ZodString>;
2285
+ negativePrompt: z.ZodOptional<z.ZodString>;
2286
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2287
+ feature: z.ZodLiteral<"digitalHuman">;
2288
+ }, z.core.$strip>;
2289
+ /** F10: Motion transfer request. */
2290
+ declare const motionTransferRequestSchema: z.ZodObject<{
2291
+ inputs: z.ZodObject<{
2292
+ person: z.ZodObject<{
2293
+ url: z.ZodOptional<z.ZodString>;
2294
+ base64: z.ZodOptional<z.ZodString>;
2295
+ mediaType: z.ZodOptional<z.ZodString>;
2296
+ }, z.core.$strip>;
2297
+ referenceVideo: z.ZodObject<{
2298
+ url: z.ZodOptional<z.ZodString>;
2299
+ base64: z.ZodOptional<z.ZodString>;
2300
+ mediaType: z.ZodOptional<z.ZodString>;
2301
+ }, z.core.$strip>;
2302
+ }, z.core.$strip>;
2303
+ count: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
2304
+ quality: z.ZodOptional<z.ZodEnum<{
2305
+ standard: "standard";
2306
+ hd: "hd";
2307
+ draft: "draft";
2308
+ }>>;
2309
+ seed: z.ZodOptional<z.ZodNumber>;
2310
+ style: z.ZodOptional<z.ZodString>;
2311
+ negativePrompt: z.ZodOptional<z.ZodString>;
2312
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2313
+ feature: z.ZodLiteral<"motionTransfer">;
2314
+ }, z.core.$strip>;
2315
+ /** F11: Text-to-speech request. */
2316
+ declare const ttsRequestSchema: z.ZodObject<{
2317
+ text: z.ZodString;
2318
+ voice: z.ZodOptional<z.ZodString>;
2319
+ referenceAudio: z.ZodOptional<z.ZodObject<{
2320
+ url: z.ZodOptional<z.ZodString>;
2321
+ base64: z.ZodOptional<z.ZodString>;
2322
+ mediaType: z.ZodOptional<z.ZodString>;
2323
+ }, z.core.$strip>>;
2324
+ output: z.ZodOptional<z.ZodObject<{
2325
+ format: z.ZodOptional<z.ZodEnum<{
2326
+ mp3: "mp3";
2327
+ wav: "wav";
2328
+ opus: "opus";
2329
+ }>>;
2330
+ sampleRate: z.ZodOptional<z.ZodNumber>;
2331
+ }, z.core.$strip>>;
2332
+ count: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
2333
+ quality: z.ZodOptional<z.ZodEnum<{
2334
+ standard: "standard";
2335
+ hd: "hd";
2336
+ draft: "draft";
2337
+ }>>;
2338
+ seed: z.ZodOptional<z.ZodNumber>;
2339
+ style: z.ZodOptional<z.ZodString>;
2340
+ negativePrompt: z.ZodOptional<z.ZodString>;
2341
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2342
+ feature: z.ZodLiteral<"tts">;
2343
+ }, z.core.$strip>;
2344
+ /** F12: Music generation request. */
2345
+ declare const musicRequestSchema: z.ZodObject<{
2346
+ prompt: z.ZodString;
2347
+ duration: z.ZodOptional<z.ZodNumber>;
2348
+ count: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
2349
+ quality: z.ZodOptional<z.ZodEnum<{
2350
+ standard: "standard";
2351
+ hd: "hd";
2352
+ draft: "draft";
2353
+ }>>;
2354
+ seed: z.ZodOptional<z.ZodNumber>;
2355
+ style: z.ZodOptional<z.ZodString>;
2356
+ negativePrompt: z.ZodOptional<z.ZodString>;
2357
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2358
+ feature: z.ZodLiteral<"music">;
2359
+ }, z.core.$strip>;
2360
+ /** F13: Sound effect generation request. */
2361
+ declare const sfxRequestSchema: z.ZodObject<{
2362
+ prompt: z.ZodString;
2363
+ duration: z.ZodOptional<z.ZodNumber>;
2364
+ count: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
2365
+ quality: z.ZodOptional<z.ZodEnum<{
2366
+ standard: "standard";
2367
+ hd: "hd";
2368
+ draft: "draft";
2369
+ }>>;
2370
+ seed: z.ZodOptional<z.ZodNumber>;
2371
+ style: z.ZodOptional<z.ZodString>;
2372
+ negativePrompt: z.ZodOptional<z.ZodString>;
2373
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2374
+ feature: z.ZodLiteral<"sfx">;
2375
+ }, z.core.$strip>;
2376
+ /** Discriminated union of all media generation feature requests. */
2377
+ declare const mediaGenerateRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2378
+ prompt: z.ZodString;
2379
+ aspectRatio: z.ZodOptional<z.ZodEnum<{
2380
+ "1:1": "1:1";
2381
+ "16:9": "16:9";
2382
+ "9:16": "9:16";
2383
+ "4:3": "4:3";
2384
+ "3:2": "3:2";
2385
+ }>>;
2386
+ resolution: z.ZodOptional<z.ZodEnum<{
2387
+ "1K": "1K";
2388
+ "2K": "2K";
2389
+ "4K": "4K";
2390
+ }>>;
2391
+ mode: z.ZodOptional<z.ZodEnum<{
2392
+ text: "text";
2393
+ reference: "reference";
2394
+ sketch: "sketch";
2395
+ character: "character";
2396
+ }>>;
2397
+ inputs: z.ZodOptional<z.ZodObject<{
2398
+ images: z.ZodOptional<z.ZodArray<z.ZodObject<{
2399
+ url: z.ZodOptional<z.ZodString>;
2400
+ base64: z.ZodOptional<z.ZodString>;
2401
+ mediaType: z.ZodOptional<z.ZodString>;
2402
+ }, z.core.$strip>>>;
2403
+ isSketch: z.ZodOptional<z.ZodBoolean>;
2404
+ }, z.core.$strip>>;
2405
+ count: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
2406
+ quality: z.ZodOptional<z.ZodEnum<{
2407
+ standard: "standard";
2408
+ hd: "hd";
2409
+ draft: "draft";
2410
+ }>>;
2411
+ seed: z.ZodOptional<z.ZodNumber>;
2412
+ style: z.ZodOptional<z.ZodString>;
2413
+ negativePrompt: z.ZodOptional<z.ZodString>;
2414
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2415
+ feature: z.ZodLiteral<"imageGenerate">;
2416
+ }, z.core.$strip>, z.ZodObject<{
2417
+ title: z.ZodString;
2418
+ subTitle: z.ZodOptional<z.ZodString>;
2419
+ bodyText: z.ZodOptional<z.ZodString>;
2420
+ prompt: z.ZodString;
2421
+ aspectRatio: z.ZodOptional<z.ZodEnum<{
2422
+ "1:1": "1:1";
2423
+ "16:9": "16:9";
2424
+ "9:16": "9:16";
2425
+ "4:3": "4:3";
2426
+ "3:2": "3:2";
2427
+ }>>;
2428
+ count: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
2429
+ quality: z.ZodOptional<z.ZodEnum<{
2430
+ standard: "standard";
2431
+ hd: "hd";
2432
+ draft: "draft";
2433
+ }>>;
2434
+ seed: z.ZodOptional<z.ZodNumber>;
2435
+ style: z.ZodOptional<z.ZodString>;
2436
+ negativePrompt: z.ZodOptional<z.ZodString>;
2437
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2438
+ feature: z.ZodLiteral<"poster">;
2439
+ }, z.core.$strip>, z.ZodObject<{
2440
+ prompt: z.ZodOptional<z.ZodString>;
2441
+ mode: z.ZodEnum<{
2442
+ instruct: "instruct";
2443
+ stylize: "stylize";
2444
+ colorize: "colorize";
2445
+ inpaint: "inpaint";
2446
+ erase: "erase";
2447
+ eraseWatermark: "eraseWatermark";
2448
+ }>;
2449
+ inputs: z.ZodObject<{
2450
+ image: z.ZodObject<{
2451
+ url: z.ZodOptional<z.ZodString>;
2452
+ base64: z.ZodOptional<z.ZodString>;
2453
+ mediaType: z.ZodOptional<z.ZodString>;
2454
+ }, z.core.$strip>;
2455
+ mask: z.ZodOptional<z.ZodObject<{
2456
+ url: z.ZodOptional<z.ZodString>;
2457
+ base64: z.ZodOptional<z.ZodString>;
2458
+ mediaType: z.ZodOptional<z.ZodString>;
2459
+ }, z.core.$strip>>;
2460
+ }, z.core.$strip>;
2461
+ strength: z.ZodOptional<z.ZodNumber>;
2462
+ count: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
2463
+ quality: z.ZodOptional<z.ZodEnum<{
2464
+ standard: "standard";
2465
+ hd: "hd";
2466
+ draft: "draft";
2467
+ }>>;
2468
+ seed: z.ZodOptional<z.ZodNumber>;
2469
+ style: z.ZodOptional<z.ZodString>;
2470
+ negativePrompt: z.ZodOptional<z.ZodString>;
2471
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2472
+ feature: z.ZodLiteral<"imageEdit">;
2473
+ }, z.core.$strip>, z.ZodObject<{
2474
+ scale: z.ZodUnion<readonly [z.ZodLiteral<2>, z.ZodLiteral<4>]>;
2475
+ inputs: z.ZodObject<{
2476
+ image: z.ZodObject<{
2477
+ url: z.ZodOptional<z.ZodString>;
2478
+ base64: z.ZodOptional<z.ZodString>;
2479
+ mediaType: z.ZodOptional<z.ZodString>;
2480
+ }, z.core.$strip>;
2481
+ }, z.core.$strip>;
2482
+ count: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
2483
+ quality: z.ZodOptional<z.ZodEnum<{
2484
+ standard: "standard";
2485
+ hd: "hd";
2486
+ draft: "draft";
2487
+ }>>;
2488
+ seed: z.ZodOptional<z.ZodNumber>;
2489
+ style: z.ZodOptional<z.ZodString>;
2490
+ negativePrompt: z.ZodOptional<z.ZodString>;
2491
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2492
+ feature: z.ZodLiteral<"upscale">;
2493
+ }, z.core.$strip>, z.ZodObject<{
2494
+ prompt: z.ZodOptional<z.ZodString>;
2495
+ inputs: z.ZodObject<{
2496
+ image: z.ZodObject<{
2497
+ url: z.ZodOptional<z.ZodString>;
2498
+ base64: z.ZodOptional<z.ZodString>;
2499
+ mediaType: z.ZodOptional<z.ZodString>;
2500
+ }, z.core.$strip>;
2501
+ }, z.core.$strip>;
2502
+ direction: z.ZodObject<{
2503
+ top: z.ZodOptional<z.ZodNumber>;
2504
+ bottom: z.ZodOptional<z.ZodNumber>;
2505
+ left: z.ZodOptional<z.ZodNumber>;
2506
+ right: z.ZodOptional<z.ZodNumber>;
2507
+ }, z.core.$strip>;
2508
+ count: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
2509
+ quality: z.ZodOptional<z.ZodEnum<{
2510
+ standard: "standard";
2511
+ hd: "hd";
2512
+ draft: "draft";
2513
+ }>>;
2514
+ seed: z.ZodOptional<z.ZodNumber>;
2515
+ style: z.ZodOptional<z.ZodString>;
2516
+ negativePrompt: z.ZodOptional<z.ZodString>;
2517
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2518
+ feature: z.ZodLiteral<"outpaint">;
2519
+ }, z.core.$strip>, z.ZodObject<{
2520
+ inputs: z.ZodObject<{
2521
+ image: z.ZodObject<{
2522
+ url: z.ZodOptional<z.ZodString>;
2523
+ base64: z.ZodOptional<z.ZodString>;
2524
+ mediaType: z.ZodOptional<z.ZodString>;
2525
+ }, z.core.$strip>;
2526
+ }, z.core.$strip>;
2527
+ count: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
2528
+ quality: z.ZodOptional<z.ZodEnum<{
2529
+ standard: "standard";
2530
+ hd: "hd";
2531
+ draft: "draft";
2532
+ }>>;
2533
+ seed: z.ZodOptional<z.ZodNumber>;
2534
+ style: z.ZodOptional<z.ZodString>;
2535
+ negativePrompt: z.ZodOptional<z.ZodString>;
2536
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2537
+ feature: z.ZodLiteral<"matting">;
2538
+ }, z.core.$strip>, z.ZodObject<{
2539
+ prompt: z.ZodString;
2540
+ aspectRatio: z.ZodOptional<z.ZodEnum<{
2541
+ "1:1": "1:1";
2542
+ "16:9": "16:9";
2543
+ "9:16": "9:16";
2544
+ "4:3": "4:3";
2545
+ "3:2": "3:2";
2546
+ }>>;
2547
+ duration: z.ZodUnion<readonly [z.ZodLiteral<5>, z.ZodLiteral<10>, z.ZodLiteral<15>]>;
2548
+ mode: z.ZodOptional<z.ZodEnum<{
2549
+ text: "text";
2550
+ withAudio: "withAudio";
2551
+ reference: "reference";
2552
+ firstFrame: "firstFrame";
2553
+ startEnd: "startEnd";
2554
+ storyboard: "storyboard";
2555
+ motionControl: "motionControl";
2556
+ }>>;
2557
+ inputs: z.ZodOptional<z.ZodObject<{
2558
+ startImage: z.ZodOptional<z.ZodObject<{
2559
+ url: z.ZodOptional<z.ZodString>;
2560
+ base64: z.ZodOptional<z.ZodString>;
2561
+ mediaType: z.ZodOptional<z.ZodString>;
2562
+ }, z.core.$strip>>;
2563
+ endImage: z.ZodOptional<z.ZodObject<{
2564
+ url: z.ZodOptional<z.ZodString>;
2565
+ base64: z.ZodOptional<z.ZodString>;
2566
+ mediaType: z.ZodOptional<z.ZodString>;
2567
+ }, z.core.$strip>>;
2568
+ images: z.ZodOptional<z.ZodArray<z.ZodObject<{
2569
+ url: z.ZodOptional<z.ZodString>;
2570
+ base64: z.ZodOptional<z.ZodString>;
2571
+ mediaType: z.ZodOptional<z.ZodString>;
2572
+ }, z.core.$strip>>>;
2573
+ scenes: z.ZodOptional<z.ZodArray<z.ZodObject<{
2574
+ prompt: z.ZodString;
2575
+ image: z.ZodOptional<z.ZodObject<{
2576
+ url: z.ZodOptional<z.ZodString>;
2577
+ base64: z.ZodOptional<z.ZodString>;
2578
+ mediaType: z.ZodOptional<z.ZodString>;
2579
+ }, z.core.$strip>>;
2580
+ }, z.core.$strip>>>;
2581
+ }, z.core.$strip>>;
2582
+ withAudio: z.ZodOptional<z.ZodBoolean>;
2583
+ motionPaths: z.ZodOptional<z.ZodArray<z.ZodObject<{
2584
+ startX: z.ZodNumber;
2585
+ startY: z.ZodNumber;
2586
+ endX: z.ZodNumber;
2587
+ endY: z.ZodNumber;
2588
+ strength: z.ZodOptional<z.ZodNumber>;
2589
+ }, z.core.$strip>>>;
2590
+ camera: z.ZodOptional<z.ZodObject<{
2591
+ type: z.ZodEnum<{
2592
+ pan: "pan";
2593
+ zoom: "zoom";
2594
+ rotate: "rotate";
2595
+ dolly: "dolly";
2596
+ tilt: "tilt";
2597
+ }>;
2598
+ direction: z.ZodOptional<z.ZodString>;
2599
+ intensity: z.ZodOptional<z.ZodNumber>;
2600
+ }, z.core.$strip>>;
2601
+ count: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
2602
+ quality: z.ZodOptional<z.ZodEnum<{
2603
+ standard: "standard";
2604
+ hd: "hd";
2605
+ draft: "draft";
2606
+ }>>;
2607
+ seed: z.ZodOptional<z.ZodNumber>;
2608
+ style: z.ZodOptional<z.ZodString>;
2609
+ negativePrompt: z.ZodOptional<z.ZodString>;
2610
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2611
+ feature: z.ZodLiteral<"videoGenerate">;
2612
+ }, z.core.$strip>, z.ZodObject<{
2613
+ prompt: z.ZodOptional<z.ZodString>;
2614
+ mode: z.ZodOptional<z.ZodEnum<{
2615
+ stylize: "stylize";
2616
+ extend: "extend";
2617
+ speedUp: "speedUp";
2618
+ slowDown: "slowDown";
2619
+ }>>;
2620
+ inputs: z.ZodObject<{
2621
+ video: z.ZodObject<{
2622
+ url: z.ZodOptional<z.ZodString>;
2623
+ base64: z.ZodOptional<z.ZodString>;
2624
+ mediaType: z.ZodOptional<z.ZodString>;
2625
+ }, z.core.$strip>;
2626
+ }, z.core.$strip>;
2627
+ duration: z.ZodOptional<z.ZodNumber>;
2628
+ count: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
2629
+ quality: z.ZodOptional<z.ZodEnum<{
2630
+ standard: "standard";
2631
+ hd: "hd";
2632
+ draft: "draft";
2633
+ }>>;
2634
+ seed: z.ZodOptional<z.ZodNumber>;
2635
+ style: z.ZodOptional<z.ZodString>;
2636
+ negativePrompt: z.ZodOptional<z.ZodString>;
2637
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2638
+ feature: z.ZodLiteral<"videoEdit">;
2639
+ }, z.core.$strip>, z.ZodObject<{
2640
+ mode: z.ZodEnum<{
2641
+ photo2video: "photo2video";
2642
+ lipSync: "lipSync";
2643
+ }>;
2644
+ inputs: z.ZodObject<{
2645
+ person: z.ZodObject<{
2646
+ url: z.ZodOptional<z.ZodString>;
2647
+ base64: z.ZodOptional<z.ZodString>;
2648
+ mediaType: z.ZodOptional<z.ZodString>;
2649
+ }, z.core.$strip>;
2650
+ audio: z.ZodObject<{
2651
+ url: z.ZodOptional<z.ZodString>;
2652
+ base64: z.ZodOptional<z.ZodString>;
2653
+ mediaType: z.ZodOptional<z.ZodString>;
2654
+ }, z.core.$strip>;
2655
+ }, z.core.$strip>;
2656
+ count: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
2657
+ quality: z.ZodOptional<z.ZodEnum<{
2658
+ standard: "standard";
2659
+ hd: "hd";
2660
+ draft: "draft";
2661
+ }>>;
2662
+ seed: z.ZodOptional<z.ZodNumber>;
2663
+ style: z.ZodOptional<z.ZodString>;
2664
+ negativePrompt: z.ZodOptional<z.ZodString>;
2665
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2666
+ feature: z.ZodLiteral<"digitalHuman">;
2667
+ }, z.core.$strip>, z.ZodObject<{
2668
+ inputs: z.ZodObject<{
2669
+ person: z.ZodObject<{
2670
+ url: z.ZodOptional<z.ZodString>;
2671
+ base64: z.ZodOptional<z.ZodString>;
2672
+ mediaType: z.ZodOptional<z.ZodString>;
2673
+ }, z.core.$strip>;
2674
+ referenceVideo: z.ZodObject<{
2675
+ url: z.ZodOptional<z.ZodString>;
2676
+ base64: z.ZodOptional<z.ZodString>;
2677
+ mediaType: z.ZodOptional<z.ZodString>;
2678
+ }, z.core.$strip>;
2679
+ }, z.core.$strip>;
2680
+ count: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
2681
+ quality: z.ZodOptional<z.ZodEnum<{
2682
+ standard: "standard";
2683
+ hd: "hd";
2684
+ draft: "draft";
2685
+ }>>;
2686
+ seed: z.ZodOptional<z.ZodNumber>;
2687
+ style: z.ZodOptional<z.ZodString>;
2688
+ negativePrompt: z.ZodOptional<z.ZodString>;
2689
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2690
+ feature: z.ZodLiteral<"motionTransfer">;
2691
+ }, z.core.$strip>, z.ZodObject<{
2692
+ text: z.ZodString;
2693
+ voice: z.ZodOptional<z.ZodString>;
2694
+ referenceAudio: z.ZodOptional<z.ZodObject<{
2695
+ url: z.ZodOptional<z.ZodString>;
2696
+ base64: z.ZodOptional<z.ZodString>;
2697
+ mediaType: z.ZodOptional<z.ZodString>;
2698
+ }, z.core.$strip>>;
2699
+ output: z.ZodOptional<z.ZodObject<{
2700
+ format: z.ZodOptional<z.ZodEnum<{
2701
+ mp3: "mp3";
2702
+ wav: "wav";
2703
+ opus: "opus";
2704
+ }>>;
2705
+ sampleRate: z.ZodOptional<z.ZodNumber>;
2706
+ }, z.core.$strip>>;
2707
+ count: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
2708
+ quality: z.ZodOptional<z.ZodEnum<{
2709
+ standard: "standard";
2710
+ hd: "hd";
2711
+ draft: "draft";
2712
+ }>>;
2713
+ seed: z.ZodOptional<z.ZodNumber>;
2714
+ style: z.ZodOptional<z.ZodString>;
2715
+ negativePrompt: z.ZodOptional<z.ZodString>;
2716
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2717
+ feature: z.ZodLiteral<"tts">;
2718
+ }, z.core.$strip>, z.ZodObject<{
2719
+ prompt: z.ZodString;
2720
+ duration: z.ZodOptional<z.ZodNumber>;
2721
+ count: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
2722
+ quality: z.ZodOptional<z.ZodEnum<{
2723
+ standard: "standard";
2724
+ hd: "hd";
2725
+ draft: "draft";
2726
+ }>>;
2727
+ seed: z.ZodOptional<z.ZodNumber>;
2728
+ style: z.ZodOptional<z.ZodString>;
2729
+ negativePrompt: z.ZodOptional<z.ZodString>;
2730
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2731
+ feature: z.ZodLiteral<"music">;
2732
+ }, z.core.$strip>, z.ZodObject<{
2733
+ prompt: z.ZodString;
2734
+ duration: z.ZodOptional<z.ZodNumber>;
2735
+ count: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
2736
+ quality: z.ZodOptional<z.ZodEnum<{
2737
+ standard: "standard";
2738
+ hd: "hd";
2739
+ draft: "draft";
2740
+ }>>;
2741
+ seed: z.ZodOptional<z.ZodNumber>;
2742
+ style: z.ZodOptional<z.ZodString>;
2743
+ negativePrompt: z.ZodOptional<z.ZodString>;
2744
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2745
+ feature: z.ZodLiteral<"sfx">;
2746
+ }, z.core.$strip>], "feature">;
2747
+ /** Task status within a task group. */
2748
+ declare const mediaTaskStatusSchema: z.ZodEnum<{
2749
+ queued: "queued";
2750
+ running: "running";
2751
+ succeeded: "succeeded";
2752
+ failed: "failed";
2753
+ canceled: "canceled";
2754
+ }>;
2755
+ /** Individual task within a task group. */
2756
+ declare const mediaTaskItemSchema: z.ZodObject<{
2757
+ taskId: z.ZodString;
2758
+ status: z.ZodEnum<{
2759
+ queued: "queued";
2760
+ running: "running";
2761
+ succeeded: "succeeded";
2762
+ failed: "failed";
2763
+ canceled: "canceled";
2764
+ }>;
2765
+ resultUrls: z.ZodOptional<z.ZodArray<z.ZodString>>;
2766
+ error: z.ZodOptional<z.ZodObject<{
2767
+ code: z.ZodOptional<z.ZodString>;
2768
+ message: z.ZodString;
2769
+ }, z.core.$strip>>;
2770
+ creditsConsumed: z.ZodOptional<z.ZodNumber>;
2771
+ }, z.core.$strip>;
2772
+ /** Task group data payload. */
2773
+ declare const mediaTaskGroupDataSchema: z.ZodObject<{
2774
+ groupId: z.ZodString;
2775
+ tasks: z.ZodArray<z.ZodObject<{
2776
+ taskId: z.ZodString;
2777
+ status: z.ZodEnum<{
2778
+ queued: "queued";
2779
+ running: "running";
2780
+ succeeded: "succeeded";
2781
+ failed: "failed";
2782
+ canceled: "canceled";
2783
+ }>;
2784
+ resultUrls: z.ZodOptional<z.ZodArray<z.ZodString>>;
2785
+ error: z.ZodOptional<z.ZodObject<{
2786
+ code: z.ZodOptional<z.ZodString>;
2787
+ message: z.ZodString;
2788
+ }, z.core.$strip>>;
2789
+ creditsConsumed: z.ZodOptional<z.ZodNumber>;
2790
+ }, z.core.$strip>>;
2791
+ totalCreditsConsumed: z.ZodOptional<z.ZodNumber>;
2792
+ }, z.core.$strip>;
2793
+ /** Successful task group response. */
2794
+ declare const mediaTaskGroupSuccessSchema: z.ZodObject<{
2795
+ success: z.ZodLiteral<true>;
2796
+ data: z.ZodObject<{
2797
+ groupId: z.ZodString;
2798
+ tasks: z.ZodArray<z.ZodObject<{
2799
+ taskId: z.ZodString;
2800
+ status: z.ZodEnum<{
2801
+ queued: "queued";
2802
+ running: "running";
2803
+ succeeded: "succeeded";
2804
+ failed: "failed";
2805
+ canceled: "canceled";
2806
+ }>;
2807
+ resultUrls: z.ZodOptional<z.ZodArray<z.ZodString>>;
2808
+ error: z.ZodOptional<z.ZodObject<{
2809
+ code: z.ZodOptional<z.ZodString>;
2810
+ message: z.ZodString;
2811
+ }, z.core.$strip>>;
2812
+ creditsConsumed: z.ZodOptional<z.ZodNumber>;
2813
+ }, z.core.$strip>>;
2814
+ totalCreditsConsumed: z.ZodOptional<z.ZodNumber>;
2815
+ }, z.core.$strip>;
2816
+ }, z.core.$strip>;
2817
+ /** Task group response (success or error). */
2818
+ declare const mediaTaskGroupResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
2819
+ success: z.ZodLiteral<true>;
2820
+ data: z.ZodObject<{
2821
+ groupId: z.ZodString;
2822
+ tasks: z.ZodArray<z.ZodObject<{
2823
+ taskId: z.ZodString;
2824
+ status: z.ZodEnum<{
2825
+ queued: "queued";
2826
+ running: "running";
2827
+ succeeded: "succeeded";
2828
+ failed: "failed";
2829
+ canceled: "canceled";
2830
+ }>;
2831
+ resultUrls: z.ZodOptional<z.ZodArray<z.ZodString>>;
2832
+ error: z.ZodOptional<z.ZodObject<{
2833
+ code: z.ZodOptional<z.ZodString>;
2834
+ message: z.ZodString;
2835
+ }, z.core.$strip>>;
2836
+ creditsConsumed: z.ZodOptional<z.ZodNumber>;
2837
+ }, z.core.$strip>>;
2838
+ totalCreditsConsumed: z.ZodOptional<z.ZodNumber>;
2839
+ }, z.core.$strip>;
2840
+ }, z.core.$strip>, z.ZodObject<{
2841
+ success: z.ZodLiteral<false>;
2842
+ code: z.ZodOptional<z.ZodString>;
2843
+ message: z.ZodString;
2844
+ }, z.core.$strip>]>;
2845
+ /** Query parameters for fetching v2 media models (filterable by feature). */
2846
+ declare const mediaModelsQuerySchema: z.ZodObject<{
2847
+ feature: z.ZodOptional<z.ZodEnum<{
2848
+ imageGenerate: "imageGenerate";
2849
+ poster: "poster";
2850
+ imageEdit: "imageEdit";
2851
+ upscale: "upscale";
2852
+ outpaint: "outpaint";
2853
+ matting: "matting";
2854
+ videoGenerate: "videoGenerate";
2855
+ videoEdit: "videoEdit";
2856
+ digitalHuman: "digitalHuman";
2857
+ motionTransfer: "motionTransfer";
2858
+ tts: "tts";
2859
+ music: "music";
2860
+ sfx: "sfx";
2861
+ }>>;
2862
+ }, z.core.$strip>;
2863
+ /** All supported media generation features. */
2864
+ type MediaFeature = z.infer<typeof mediaFeatureSchema>;
2865
+ /** Supported aspect ratios. */
2866
+ type MediaAspectRatio = z.infer<typeof mediaAspectRatioSchema>;
2867
+ /** Supported resolutions. */
2868
+ type MediaResolution = z.infer<typeof mediaResolutionSchema>;
2869
+ /** Output quality levels. */
2870
+ type MediaQuality = z.infer<typeof mediaQualitySchema>;
2871
+ /** Base media generate request (all common fields). */
2872
+ type MediaGenerateBase = z.infer<typeof mediaGenerateBaseSchema>;
2873
+ /** F01: Image generation request. */
2874
+ type ImageGenerateRequest = z.infer<typeof imageGenerateRequestSchema>;
2875
+ /** F02: Poster generation request. */
2876
+ type PosterRequest = z.infer<typeof posterRequestSchema>;
2877
+ /** F03: Image editing request. */
2878
+ type ImageEditRequest = z.infer<typeof imageEditRequestSchema>;
2879
+ /** F04: Image upscale request. */
2880
+ type UpscaleRequest = z.infer<typeof upscaleRequestSchema>;
2881
+ /** F05: Image outpaint request. */
2882
+ type OutpaintRequest = z.infer<typeof outpaintRequestSchema>;
2883
+ /** F06: Image matting request. */
2884
+ type MattingRequest = z.infer<typeof mattingRequestSchema>;
2885
+ /** F07: Video generation request. */
2886
+ type VideoGenerateRequest = z.infer<typeof videoGenerateRequestSchema>;
2887
+ /** F08: Video editing request. */
2888
+ type VideoEditRequest = z.infer<typeof videoEditRequestSchema>;
2889
+ /** F09: Digital human request. */
2890
+ type DigitalHumanRequest = z.infer<typeof digitalHumanRequestSchema>;
2891
+ /** F10: Motion transfer request. */
2892
+ type MotionTransferRequest = z.infer<typeof motionTransferRequestSchema>;
2893
+ /** F11: Text-to-speech request. */
2894
+ type TtsRequest = z.infer<typeof ttsRequestSchema>;
2895
+ /** F12: Music generation request. */
2896
+ type MusicRequest = z.infer<typeof musicRequestSchema>;
2897
+ /** F13: Sound effect generation request. */
2898
+ type SfxRequest = z.infer<typeof sfxRequestSchema>;
2899
+ /** Discriminated union of all media generation requests. */
2900
+ type MediaGenerateRequest = z.infer<typeof mediaGenerateRequestSchema>;
2901
+ /** Individual task within a task group. */
2902
+ type MediaTaskItem = z.infer<typeof mediaTaskItemSchema>;
2903
+ /** Task group data payload. */
2904
+ type MediaTaskGroupData = z.infer<typeof mediaTaskGroupDataSchema>;
2905
+ /** Successful task group response. */
2906
+ type MediaTaskGroupSuccess = z.infer<typeof mediaTaskGroupSuccessSchema>;
2907
+ /** Task group response (success or error). */
2908
+ type MediaTaskGroupResponse = z.infer<typeof mediaTaskGroupResponseSchema>;
2909
+ /** Query parameters for v2 media models. */
2910
+ type MediaModelsQuery = z.infer<typeof mediaModelsQuerySchema>;
1167
2911
 
1168
2912
  /** Optional client metadata shared by OpenAI-compatible chat requests. */
1169
2913
  declare const aiClientMetadataSchema: z.ZodObject<{
@@ -1625,6 +3369,7 @@ declare const aiModelSchema: z.ZodObject<{
1625
3369
  supportsAudio: z.ZodOptional<z.ZodBoolean>;
1626
3370
  }, z.core.$strip>>;
1627
3371
  }, z.core.$strip>>;
3372
+ creditsPerCall: z.ZodOptional<z.ZodNumber>;
1628
3373
  }, z.core.$loose>;
1629
3374
  declare const aiModelsPayloadSchema: z.ZodObject<{
1630
3375
  data: z.ZodArray<z.ZodObject<{
@@ -1671,6 +3416,7 @@ declare const aiModelsPayloadSchema: z.ZodObject<{
1671
3416
  supportsAudio: z.ZodOptional<z.ZodBoolean>;
1672
3417
  }, z.core.$strip>>;
1673
3418
  }, z.core.$strip>>;
3419
+ creditsPerCall: z.ZodOptional<z.ZodNumber>;
1674
3420
  }, z.core.$loose>>;
1675
3421
  updatedAt: z.ZodOptional<z.ZodString>;
1676
3422
  }, z.core.$strip>;
@@ -1721,6 +3467,7 @@ declare const aiModelsSuccessSchema: z.ZodObject<{
1721
3467
  supportsAudio: z.ZodOptional<z.ZodBoolean>;
1722
3468
  }, z.core.$strip>>;
1723
3469
  }, z.core.$strip>>;
3470
+ creditsPerCall: z.ZodOptional<z.ZodNumber>;
1724
3471
  }, z.core.$loose>>;
1725
3472
  updatedAt: z.ZodOptional<z.ZodString>;
1726
3473
  }, z.core.$strip>;
@@ -1772,6 +3519,7 @@ declare const aiModelsResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
1772
3519
  supportsAudio: z.ZodOptional<z.ZodBoolean>;
1773
3520
  }, z.core.$strip>>;
1774
3521
  }, z.core.$strip>>;
3522
+ creditsPerCall: z.ZodOptional<z.ZodNumber>;
1775
3523
  }, z.core.$loose>>;
1776
3524
  updatedAt: z.ZodOptional<z.ZodString>;
1777
3525
  }, z.core.$strip>;
@@ -2459,6 +4207,7 @@ declare class AiClient {
2459
4207
  supportsAudio?: boolean | undefined;
2460
4208
  } | undefined;
2461
4209
  } | undefined;
4210
+ creditsPerCall?: number | undefined;
2462
4211
  }[];
2463
4212
  updatedAt?: string | undefined;
2464
4213
  };
@@ -2511,6 +4260,7 @@ declare class AiClient {
2511
4260
  supportsAudio?: boolean | undefined;
2512
4261
  } | undefined;
2513
4262
  } | undefined;
4263
+ creditsPerCall?: number | undefined;
2514
4264
  }[];
2515
4265
  updatedAt?: string | undefined;
2516
4266
  };
@@ -2563,6 +4313,7 @@ declare class AiClient {
2563
4313
  supportsAudio?: boolean | undefined;
2564
4314
  } | undefined;
2565
4315
  } | undefined;
4316
+ creditsPerCall?: number | undefined;
2566
4317
  }[];
2567
4318
  updatedAt?: string | undefined;
2568
4319
  };
@@ -2699,9 +4450,125 @@ declare class AiClient {
2699
4450
  updatedAt?: string | undefined;
2700
4451
  };
2701
4452
  }>;
4453
+ /** Submit a media generation task (v2 unified endpoint). */
4454
+ mediaGenerate(payload: MediaGenerateRequest): Promise<{
4455
+ success: false;
4456
+ message: string;
4457
+ code?: string | undefined;
4458
+ } | {
4459
+ success: true;
4460
+ data: {
4461
+ taskId: string;
4462
+ };
4463
+ }>;
4464
+ /** Fetch media task status by ID (v2). */
4465
+ mediaTask(taskId: string): Promise<{
4466
+ success: false;
4467
+ message: string;
4468
+ code?: string | undefined;
4469
+ } | {
4470
+ success: true;
4471
+ data: {
4472
+ status: "queued" | "running" | "succeeded" | "failed" | "canceled";
4473
+ progress?: number | undefined;
4474
+ resultType?: "image" | "video" | "audio" | undefined;
4475
+ resultUrls?: string[] | undefined;
4476
+ error?: {
4477
+ message: string;
4478
+ code?: string | undefined;
4479
+ } | undefined;
4480
+ creditsConsumed?: number | undefined;
4481
+ };
4482
+ }>;
4483
+ /** Cancel a media task by ID (v2). */
4484
+ mediaCancelTask(taskId: string): Promise<{
4485
+ success: false;
4486
+ message: string;
4487
+ code?: string | undefined;
4488
+ } | {
4489
+ success: true;
4490
+ data: {
4491
+ status: "canceled" | "processing";
4492
+ };
4493
+ }>;
4494
+ /** Fetch media task group status by group ID (v2). */
4495
+ mediaTaskGroup(groupId: string): Promise<{
4496
+ success: false;
4497
+ message: string;
4498
+ code?: string | undefined;
4499
+ } | {
4500
+ success: true;
4501
+ data: {
4502
+ groupId: string;
4503
+ tasks: {
4504
+ taskId: string;
4505
+ status: "queued" | "running" | "succeeded" | "failed" | "canceled";
4506
+ resultUrls?: string[] | undefined;
4507
+ error?: {
4508
+ message: string;
4509
+ code?: string | undefined;
4510
+ } | undefined;
4511
+ creditsConsumed?: number | undefined;
4512
+ }[];
4513
+ totalCreditsConsumed?: number | undefined;
4514
+ };
4515
+ }>;
4516
+ /** List available media models, optionally filtered by feature (v2). */
4517
+ mediaModels(feature?: string): Promise<{
4518
+ success: false;
4519
+ message: string;
4520
+ code?: string | undefined;
4521
+ } | {
4522
+ success: true;
4523
+ data: {
4524
+ data: {
4525
+ [x: string]: unknown;
4526
+ id: string;
4527
+ name?: string | undefined;
4528
+ familyId?: string | undefined;
4529
+ providerId?: string | undefined;
4530
+ tags?: string[] | undefined;
4531
+ capabilities?: {
4532
+ common?: {
4533
+ maxContextK?: number | undefined;
4534
+ supportsStructuredOutput?: boolean | undefined;
4535
+ supportsWebSearch?: boolean | undefined;
4536
+ } | undefined;
4537
+ params?: {
4538
+ features?: string[] | undefined;
4539
+ fields?: {
4540
+ key: string;
4541
+ title: string;
4542
+ type: "number" | "boolean" | "text" | "select";
4543
+ request: boolean;
4544
+ description?: string | undefined;
4545
+ unit?: string | undefined;
4546
+ values?: (string | number | boolean)[] | undefined;
4547
+ min?: number | undefined;
4548
+ max?: number | undefined;
4549
+ step?: number | undefined;
4550
+ default?: string | number | boolean | undefined;
4551
+ }[] | undefined;
4552
+ } | undefined;
4553
+ input?: {
4554
+ maxImages?: number | undefined;
4555
+ supportsMask?: boolean | undefined;
4556
+ supportsReferenceVideo?: boolean | undefined;
4557
+ supportsStartEnd?: boolean | undefined;
4558
+ } | undefined;
4559
+ output?: {
4560
+ supportsMulti?: boolean | undefined;
4561
+ supportsAudio?: boolean | undefined;
4562
+ } | undefined;
4563
+ } | undefined;
4564
+ creditsPerCall?: number | undefined;
4565
+ }[];
4566
+ updatedAt?: string | undefined;
4567
+ };
4568
+ }>;
2702
4569
  }
2703
4570
 
2704
- declare const AI_MODEL_TAGS: readonly ["image_generation", "image_multi_input", "image_input", "image_multi_generation", "image_edit", "video_generation", "chat", "reasoning", "tool_call", "image_analysis", "video_analysis", "audio_analysis", "code"];
4571
+ declare const AI_MODEL_TAGS: readonly ["image_generation", "image_multi_input", "image_input", "image_multi_generation", "image_edit", "video_generation", "audio_tts", "media:imageGenerate", "media:poster", "media:imageEdit", "media:upscale", "media:outpaint", "media:matting", "media:videoGenerate", "media:videoEdit", "media:digitalHuman", "media:motionTransfer", "media:tts", "media:music", "media:sfx", "chat", "reasoning", "tool_call", "image_analysis", "video_analysis", "audio_analysis", "code"];
2705
4572
  type AiModelTag = (typeof AI_MODEL_TAGS)[number];
2706
4573
  declare const AI_MODEL_TAG_LABELS: Record<AiModelTag, string>;
2707
4574
  declare const AI_MODEL_CAPABILITY_INPUT_KEYS: readonly ["maxImages", "supportsMask", "supportsReferenceVideo", "supportsStartEnd"];
@@ -2747,6 +4614,30 @@ type index$6_AiTaskResponse = AiTaskResponse;
2747
4614
  type index$6_AiVideoInputs = AiVideoInputs;
2748
4615
  type index$6_AiVideoOutput = AiVideoOutput;
2749
4616
  type index$6_AiVideoRequest = AiVideoRequest;
4617
+ type index$6_DigitalHumanRequest = DigitalHumanRequest;
4618
+ type index$6_ImageEditRequest = ImageEditRequest;
4619
+ type index$6_ImageGenerateRequest = ImageGenerateRequest;
4620
+ type index$6_MattingRequest = MattingRequest;
4621
+ type index$6_MediaAspectRatio = MediaAspectRatio;
4622
+ type index$6_MediaFeature = MediaFeature;
4623
+ type index$6_MediaGenerateBase = MediaGenerateBase;
4624
+ type index$6_MediaGenerateRequest = MediaGenerateRequest;
4625
+ type index$6_MediaModelsQuery = MediaModelsQuery;
4626
+ type index$6_MediaQuality = MediaQuality;
4627
+ type index$6_MediaResolution = MediaResolution;
4628
+ type index$6_MediaTaskGroupData = MediaTaskGroupData;
4629
+ type index$6_MediaTaskGroupResponse = MediaTaskGroupResponse;
4630
+ type index$6_MediaTaskGroupSuccess = MediaTaskGroupSuccess;
4631
+ type index$6_MediaTaskItem = MediaTaskItem;
4632
+ type index$6_MotionTransferRequest = MotionTransferRequest;
4633
+ type index$6_MusicRequest = MusicRequest;
4634
+ type index$6_OutpaintRequest = OutpaintRequest;
4635
+ type index$6_PosterRequest = PosterRequest;
4636
+ type index$6_SfxRequest = SfxRequest;
4637
+ type index$6_TtsRequest = TtsRequest;
4638
+ type index$6_UpscaleRequest = UpscaleRequest;
4639
+ type index$6_VideoEditRequest = VideoEditRequest;
4640
+ type index$6_VideoGenerateRequest = VideoGenerateRequest;
2750
4641
  declare const index$6_aiAudioOutputSchema: typeof aiAudioOutputSchema;
2751
4642
  declare const index$6_aiAudioRequestSchema: typeof aiAudioRequestSchema;
2752
4643
  declare const index$6_aiChatCompletionsRequestSchema: typeof aiChatCompletionsRequestSchema;
@@ -2800,8 +4691,33 @@ declare const index$6_aiTaskSuccessSchema: typeof aiTaskSuccessSchema;
2800
4691
  declare const index$6_aiVideoInputsSchema: typeof aiVideoInputsSchema;
2801
4692
  declare const index$6_aiVideoOutputSchema: typeof aiVideoOutputSchema;
2802
4693
  declare const index$6_aiVideoRequestSchema: typeof aiVideoRequestSchema;
4694
+ declare const index$6_digitalHumanRequestSchema: typeof digitalHumanRequestSchema;
4695
+ declare const index$6_imageEditRequestSchema: typeof imageEditRequestSchema;
4696
+ declare const index$6_imageGenerateRequestSchema: typeof imageGenerateRequestSchema;
4697
+ declare const index$6_mattingRequestSchema: typeof mattingRequestSchema;
4698
+ declare const index$6_mediaAspectRatioSchema: typeof mediaAspectRatioSchema;
4699
+ declare const index$6_mediaFeatureSchema: typeof mediaFeatureSchema;
4700
+ declare const index$6_mediaGenerateBaseSchema: typeof mediaGenerateBaseSchema;
4701
+ declare const index$6_mediaGenerateRequestSchema: typeof mediaGenerateRequestSchema;
4702
+ declare const index$6_mediaModelsQuerySchema: typeof mediaModelsQuerySchema;
4703
+ declare const index$6_mediaQualitySchema: typeof mediaQualitySchema;
4704
+ declare const index$6_mediaResolutionSchema: typeof mediaResolutionSchema;
4705
+ declare const index$6_mediaTaskGroupDataSchema: typeof mediaTaskGroupDataSchema;
4706
+ declare const index$6_mediaTaskGroupResponseSchema: typeof mediaTaskGroupResponseSchema;
4707
+ declare const index$6_mediaTaskGroupSuccessSchema: typeof mediaTaskGroupSuccessSchema;
4708
+ declare const index$6_mediaTaskItemSchema: typeof mediaTaskItemSchema;
4709
+ declare const index$6_mediaTaskStatusSchema: typeof mediaTaskStatusSchema;
4710
+ declare const index$6_motionTransferRequestSchema: typeof motionTransferRequestSchema;
4711
+ declare const index$6_musicRequestSchema: typeof musicRequestSchema;
4712
+ declare const index$6_outpaintRequestSchema: typeof outpaintRequestSchema;
4713
+ declare const index$6_posterRequestSchema: typeof posterRequestSchema;
4714
+ declare const index$6_sfxRequestSchema: typeof sfxRequestSchema;
4715
+ declare const index$6_ttsRequestSchema: typeof ttsRequestSchema;
4716
+ declare const index$6_upscaleRequestSchema: typeof upscaleRequestSchema;
4717
+ declare const index$6_videoEditRequestSchema: typeof videoEditRequestSchema;
4718
+ declare const index$6_videoGenerateRequestSchema: typeof videoGenerateRequestSchema;
2803
4719
  declare namespace index$6 {
2804
- export { index$6_AI_MODEL_CAPABILITY_INPUT_KEYS as AI_MODEL_CAPABILITY_INPUT_KEYS, index$6_AI_MODEL_CAPABILITY_OUTPUT_KEYS as AI_MODEL_CAPABILITY_OUTPUT_KEYS, index$6_AI_MODEL_TAGS as AI_MODEL_TAGS, index$6_AI_MODEL_TAG_LABELS as AI_MODEL_TAG_LABELS, type index$6_AiAudioOutput as AiAudioOutput, type index$6_AiAudioRequest as AiAudioRequest, type index$6_AiChatCompletionsRequest as AiChatCompletionsRequest, type index$6_AiChatModel as AiChatModel, type index$6_AiChatModelsResponse as AiChatModelsResponse, type index$6_AiChatSessionMetadata as AiChatSessionMetadata, index$6_AiClient as AiClient, type index$6_AiClientMetadata as AiClientMetadata, type index$6_AiFileUploadResponse as AiFileUploadResponse, type index$6_AiImageInputs as AiImageInputs, type index$6_AiImageOutput as AiImageOutput, type index$6_AiImageRequest as AiImageRequest, type index$6_AiMediaInput as AiMediaInput, type index$6_AiModel as AiModel, type index$6_AiModelCapabilities as AiModelCapabilities, type index$6_AiModelCapabilitiesInput as AiModelCapabilitiesInput, type index$6_AiModelCapabilitiesOutput as AiModelCapabilitiesOutput, type index$6_AiModelCapabilityInputKey as AiModelCapabilityInputKey, type index$6_AiModelCapabilityOutputKey as AiModelCapabilityOutputKey, type index$6_AiModelTag as AiModelTag, type index$6_AiModelsResponse as AiModelsResponse, type index$6_AiModelsUpdatedAtData as AiModelsUpdatedAtData, type index$6_AiModelsUpdatedAtResponse as AiModelsUpdatedAtResponse, type index$6_AiProviderTemplate as AiProviderTemplate, type index$6_AiProviderTemplateModel as AiProviderTemplateModel, type index$6_AiProviderTemplatesResponse as AiProviderTemplatesResponse, type index$6_AiResponsesRequest as AiResponsesRequest, type index$6_AiTaskCancelResponse as AiTaskCancelResponse, type index$6_AiTaskCreatedResponse as AiTaskCreatedResponse, type index$6_AiTaskResponse as AiTaskResponse, type index$6_AiVideoInputs as AiVideoInputs, type index$6_AiVideoOutput as AiVideoOutput, type index$6_AiVideoRequest as AiVideoRequest, index$6_aiAudioOutputSchema as aiAudioOutputSchema, index$6_aiAudioRequestSchema as aiAudioRequestSchema, index$6_aiChatCompletionsRequestSchema as aiChatCompletionsRequestSchema, index$6_aiChatModelSchema as aiChatModelSchema, index$6_aiChatModelsPayloadSchema as aiChatModelsPayloadSchema, index$6_aiChatModelsResponseSchema as aiChatModelsResponseSchema, index$6_aiChatModelsSuccessSchema as aiChatModelsSuccessSchema, index$6_aiChatSessionMetadataSchema as aiChatSessionMetadataSchema, index$6_aiClientMetadataSchema as aiClientMetadataSchema, index$6_aiEndpoints as aiEndpoints, index$6_aiErrorResponseSchema as aiErrorResponseSchema, index$6_aiImageInputsSchema as aiImageInputsSchema, index$6_aiImageOutputSchema as aiImageOutputSchema, index$6_aiImageRequestSchema as aiImageRequestSchema, index$6_aiMediaInputSchema as aiMediaInputSchema, index$6_aiModelCapabilitiesInputSchema as aiModelCapabilitiesInputSchema, index$6_aiModelCapabilitiesOutputSchema as aiModelCapabilitiesOutputSchema, index$6_aiModelCapabilitiesSchema as aiModelCapabilitiesSchema, index$6_aiModelCapabilityCommonSchema as aiModelCapabilityCommonSchema, index$6_aiModelParameterFieldSchema as aiModelParameterFieldSchema, index$6_aiModelParamsSchema as aiModelParamsSchema, index$6_aiModelSchema as aiModelSchema, index$6_aiModelsPayloadSchema as aiModelsPayloadSchema, index$6_aiModelsRequestSchema as aiModelsRequestSchema, index$6_aiModelsResponseSchema as aiModelsResponseSchema, index$6_aiModelsSuccessSchema as aiModelsSuccessSchema, index$6_aiModelsUpdatedAtDataSchema as aiModelsUpdatedAtDataSchema, index$6_aiModelsUpdatedAtResponseSchema as aiModelsUpdatedAtResponseSchema, index$6_aiModelsUpdatedAtSuccessSchema as aiModelsUpdatedAtSuccessSchema, index$6_aiProviderTemplateModelSchema as aiProviderTemplateModelSchema, index$6_aiProviderTemplateSchema as aiProviderTemplateSchema, index$6_aiProviderTemplatesPayloadSchema as aiProviderTemplatesPayloadSchema, index$6_aiProviderTemplatesRequestSchema as aiProviderTemplatesRequestSchema, index$6_aiProviderTemplatesResponseSchema as aiProviderTemplatesResponseSchema, index$6_aiProviderTemplatesSuccessSchema as aiProviderTemplatesSuccessSchema, index$6_aiResponsesRequestSchema as aiResponsesRequestSchema, index$6_aiTaskCancelDataSchema as aiTaskCancelDataSchema, index$6_aiTaskCancelRequestSchema as aiTaskCancelRequestSchema, index$6_aiTaskCancelResponseSchema as aiTaskCancelResponseSchema, index$6_aiTaskCancelSuccessSchema as aiTaskCancelSuccessSchema, index$6_aiTaskCreatedDataSchema as aiTaskCreatedDataSchema, index$6_aiTaskCreatedResponseSchema as aiTaskCreatedResponseSchema, index$6_aiTaskCreatedSuccessSchema as aiTaskCreatedSuccessSchema, index$6_aiTaskDataSchema as aiTaskDataSchema, index$6_aiTaskErrorSchema as aiTaskErrorSchema, index$6_aiTaskRequestSchema as aiTaskRequestSchema, index$6_aiTaskResponseSchema as aiTaskResponseSchema, index$6_aiTaskResultTypeSchema as aiTaskResultTypeSchema, index$6_aiTaskStatusSchema as aiTaskStatusSchema, index$6_aiTaskSuccessSchema as aiTaskSuccessSchema, index$6_aiVideoInputsSchema as aiVideoInputsSchema, index$6_aiVideoOutputSchema as aiVideoOutputSchema, index$6_aiVideoRequestSchema as aiVideoRequestSchema };
4720
+ export { index$6_AI_MODEL_CAPABILITY_INPUT_KEYS as AI_MODEL_CAPABILITY_INPUT_KEYS, index$6_AI_MODEL_CAPABILITY_OUTPUT_KEYS as AI_MODEL_CAPABILITY_OUTPUT_KEYS, index$6_AI_MODEL_TAGS as AI_MODEL_TAGS, index$6_AI_MODEL_TAG_LABELS as AI_MODEL_TAG_LABELS, type index$6_AiAudioOutput as AiAudioOutput, type index$6_AiAudioRequest as AiAudioRequest, type index$6_AiChatCompletionsRequest as AiChatCompletionsRequest, type index$6_AiChatModel as AiChatModel, type index$6_AiChatModelsResponse as AiChatModelsResponse, type index$6_AiChatSessionMetadata as AiChatSessionMetadata, index$6_AiClient as AiClient, type index$6_AiClientMetadata as AiClientMetadata, type index$6_AiFileUploadResponse as AiFileUploadResponse, type index$6_AiImageInputs as AiImageInputs, type index$6_AiImageOutput as AiImageOutput, type index$6_AiImageRequest as AiImageRequest, type index$6_AiMediaInput as AiMediaInput, type index$6_AiModel as AiModel, type index$6_AiModelCapabilities as AiModelCapabilities, type index$6_AiModelCapabilitiesInput as AiModelCapabilitiesInput, type index$6_AiModelCapabilitiesOutput as AiModelCapabilitiesOutput, type index$6_AiModelCapabilityInputKey as AiModelCapabilityInputKey, type index$6_AiModelCapabilityOutputKey as AiModelCapabilityOutputKey, type index$6_AiModelTag as AiModelTag, type index$6_AiModelsResponse as AiModelsResponse, type index$6_AiModelsUpdatedAtData as AiModelsUpdatedAtData, type index$6_AiModelsUpdatedAtResponse as AiModelsUpdatedAtResponse, type index$6_AiProviderTemplate as AiProviderTemplate, type index$6_AiProviderTemplateModel as AiProviderTemplateModel, type index$6_AiProviderTemplatesResponse as AiProviderTemplatesResponse, type index$6_AiResponsesRequest as AiResponsesRequest, type index$6_AiTaskCancelResponse as AiTaskCancelResponse, type index$6_AiTaskCreatedResponse as AiTaskCreatedResponse, type index$6_AiTaskResponse as AiTaskResponse, type index$6_AiVideoInputs as AiVideoInputs, type index$6_AiVideoOutput as AiVideoOutput, type index$6_AiVideoRequest as AiVideoRequest, type index$6_DigitalHumanRequest as DigitalHumanRequest, type index$6_ImageEditRequest as ImageEditRequest, type index$6_ImageGenerateRequest as ImageGenerateRequest, type index$6_MattingRequest as MattingRequest, type index$6_MediaAspectRatio as MediaAspectRatio, type index$6_MediaFeature as MediaFeature, type index$6_MediaGenerateBase as MediaGenerateBase, type index$6_MediaGenerateRequest as MediaGenerateRequest, type index$6_MediaModelsQuery as MediaModelsQuery, type index$6_MediaQuality as MediaQuality, type index$6_MediaResolution as MediaResolution, type index$6_MediaTaskGroupData as MediaTaskGroupData, type index$6_MediaTaskGroupResponse as MediaTaskGroupResponse, type index$6_MediaTaskGroupSuccess as MediaTaskGroupSuccess, type index$6_MediaTaskItem as MediaTaskItem, type index$6_MotionTransferRequest as MotionTransferRequest, type index$6_MusicRequest as MusicRequest, type index$6_OutpaintRequest as OutpaintRequest, type index$6_PosterRequest as PosterRequest, type index$6_SfxRequest as SfxRequest, type index$6_TtsRequest as TtsRequest, type index$6_UpscaleRequest as UpscaleRequest, type index$6_VideoEditRequest as VideoEditRequest, type index$6_VideoGenerateRequest as VideoGenerateRequest, index$6_aiAudioOutputSchema as aiAudioOutputSchema, index$6_aiAudioRequestSchema as aiAudioRequestSchema, index$6_aiChatCompletionsRequestSchema as aiChatCompletionsRequestSchema, index$6_aiChatModelSchema as aiChatModelSchema, index$6_aiChatModelsPayloadSchema as aiChatModelsPayloadSchema, index$6_aiChatModelsResponseSchema as aiChatModelsResponseSchema, index$6_aiChatModelsSuccessSchema as aiChatModelsSuccessSchema, index$6_aiChatSessionMetadataSchema as aiChatSessionMetadataSchema, index$6_aiClientMetadataSchema as aiClientMetadataSchema, index$6_aiEndpoints as aiEndpoints, index$6_aiErrorResponseSchema as aiErrorResponseSchema, index$6_aiImageInputsSchema as aiImageInputsSchema, index$6_aiImageOutputSchema as aiImageOutputSchema, index$6_aiImageRequestSchema as aiImageRequestSchema, index$6_aiMediaInputSchema as aiMediaInputSchema, index$6_aiModelCapabilitiesInputSchema as aiModelCapabilitiesInputSchema, index$6_aiModelCapabilitiesOutputSchema as aiModelCapabilitiesOutputSchema, index$6_aiModelCapabilitiesSchema as aiModelCapabilitiesSchema, index$6_aiModelCapabilityCommonSchema as aiModelCapabilityCommonSchema, index$6_aiModelParameterFieldSchema as aiModelParameterFieldSchema, index$6_aiModelParamsSchema as aiModelParamsSchema, index$6_aiModelSchema as aiModelSchema, index$6_aiModelsPayloadSchema as aiModelsPayloadSchema, index$6_aiModelsRequestSchema as aiModelsRequestSchema, index$6_aiModelsResponseSchema as aiModelsResponseSchema, index$6_aiModelsSuccessSchema as aiModelsSuccessSchema, index$6_aiModelsUpdatedAtDataSchema as aiModelsUpdatedAtDataSchema, index$6_aiModelsUpdatedAtResponseSchema as aiModelsUpdatedAtResponseSchema, index$6_aiModelsUpdatedAtSuccessSchema as aiModelsUpdatedAtSuccessSchema, index$6_aiProviderTemplateModelSchema as aiProviderTemplateModelSchema, index$6_aiProviderTemplateSchema as aiProviderTemplateSchema, index$6_aiProviderTemplatesPayloadSchema as aiProviderTemplatesPayloadSchema, index$6_aiProviderTemplatesRequestSchema as aiProviderTemplatesRequestSchema, index$6_aiProviderTemplatesResponseSchema as aiProviderTemplatesResponseSchema, index$6_aiProviderTemplatesSuccessSchema as aiProviderTemplatesSuccessSchema, index$6_aiResponsesRequestSchema as aiResponsesRequestSchema, index$6_aiTaskCancelDataSchema as aiTaskCancelDataSchema, index$6_aiTaskCancelRequestSchema as aiTaskCancelRequestSchema, index$6_aiTaskCancelResponseSchema as aiTaskCancelResponseSchema, index$6_aiTaskCancelSuccessSchema as aiTaskCancelSuccessSchema, index$6_aiTaskCreatedDataSchema as aiTaskCreatedDataSchema, index$6_aiTaskCreatedResponseSchema as aiTaskCreatedResponseSchema, index$6_aiTaskCreatedSuccessSchema as aiTaskCreatedSuccessSchema, index$6_aiTaskDataSchema as aiTaskDataSchema, index$6_aiTaskErrorSchema as aiTaskErrorSchema, index$6_aiTaskRequestSchema as aiTaskRequestSchema, index$6_aiTaskResponseSchema as aiTaskResponseSchema, index$6_aiTaskResultTypeSchema as aiTaskResultTypeSchema, index$6_aiTaskStatusSchema as aiTaskStatusSchema, index$6_aiTaskSuccessSchema as aiTaskSuccessSchema, index$6_aiVideoInputsSchema as aiVideoInputsSchema, index$6_aiVideoOutputSchema as aiVideoOutputSchema, index$6_aiVideoRequestSchema as aiVideoRequestSchema, index$6_digitalHumanRequestSchema as digitalHumanRequestSchema, index$6_imageEditRequestSchema as imageEditRequestSchema, index$6_imageGenerateRequestSchema as imageGenerateRequestSchema, index$6_mattingRequestSchema as mattingRequestSchema, index$6_mediaAspectRatioSchema as mediaAspectRatioSchema, index$6_mediaFeatureSchema as mediaFeatureSchema, index$6_mediaGenerateBaseSchema as mediaGenerateBaseSchema, index$6_mediaGenerateRequestSchema as mediaGenerateRequestSchema, index$6_mediaModelsQuerySchema as mediaModelsQuerySchema, index$6_mediaQualitySchema as mediaQualitySchema, index$6_mediaResolutionSchema as mediaResolutionSchema, index$6_mediaTaskGroupDataSchema as mediaTaskGroupDataSchema, index$6_mediaTaskGroupResponseSchema as mediaTaskGroupResponseSchema, index$6_mediaTaskGroupSuccessSchema as mediaTaskGroupSuccessSchema, index$6_mediaTaskItemSchema as mediaTaskItemSchema, index$6_mediaTaskStatusSchema as mediaTaskStatusSchema, index$6_motionTransferRequestSchema as motionTransferRequestSchema, index$6_musicRequestSchema as musicRequestSchema, index$6_outpaintRequestSchema as outpaintRequestSchema, index$6_posterRequestSchema as posterRequestSchema, index$6_sfxRequestSchema as sfxRequestSchema, index$6_ttsRequestSchema as ttsRequestSchema, index$6_upscaleRequestSchema as upscaleRequestSchema, index$6_videoEditRequestSchema as videoEditRequestSchema, index$6_videoGenerateRequestSchema as videoGenerateRequestSchema };
2805
4721
  }
2806
4722
 
2807
4723
  declare const aiToolsEndpoints: {
@@ -3268,7 +5184,7 @@ declare namespace index$3 {
3268
5184
  declare const feedbackEndpoints: {
3269
5185
  /** Submit feedback. */
3270
5186
  readonly submit: Endpoint<{
3271
- type: "chat" | "ui" | "performance" | "bug" | "feature" | "other";
5187
+ type: "feature" | "chat" | "ui" | "performance" | "bug" | "other";
3272
5188
  content: string;
3273
5189
  context: Record<string, unknown>;
3274
5190
  source?: "tenas" | "openloaf" | "openloaf-saas" | undefined;
@@ -3280,7 +5196,7 @@ declare const feedbackEndpoints: {
3280
5196
  readonly list: Endpoint<{
3281
5197
  page?: number | undefined;
3282
5198
  pageSize?: number | undefined;
3283
- type?: "chat" | "ui" | "performance" | "bug" | "feature" | "other" | undefined;
5199
+ type?: "feature" | "chat" | "ui" | "performance" | "bug" | "other" | undefined;
3284
5200
  source?: "tenas" | "openloaf" | "openloaf-saas" | undefined;
3285
5201
  saasStatus?: "unread" | "read" | "resolved" | "ignored" | undefined;
3286
5202
  keyword?: string | undefined;
@@ -3292,7 +5208,7 @@ declare const feedbackEndpoints: {
3292
5208
  items: {
3293
5209
  id: string;
3294
5210
  source: "tenas" | "openloaf" | "openloaf-saas";
3295
- type: "chat" | "ui" | "performance" | "bug" | "feature" | "other";
5211
+ type: "feature" | "chat" | "ui" | "performance" | "bug" | "other";
3296
5212
  saasStatus: "unread" | "read" | "resolved" | "ignored";
3297
5213
  content: string;
3298
5214
  context: Record<string, unknown>;
@@ -3312,7 +5228,7 @@ declare const feedbackEndpoints: {
3312
5228
  feedback: {
3313
5229
  id: string;
3314
5230
  source: "tenas" | "openloaf" | "openloaf-saas";
3315
- type: "chat" | "ui" | "performance" | "bug" | "feature" | "other";
5231
+ type: "feature" | "chat" | "ui" | "performance" | "bug" | "other";
3316
5232
  saasStatus: "unread" | "read" | "resolved" | "ignored";
3317
5233
  content: string;
3318
5234
  context: Record<string, unknown>;
@@ -3332,11 +5248,11 @@ declare const feedbackSourceSchema: z.ZodEnum<{
3332
5248
  }>;
3333
5249
  /** Feedback category schema. */
3334
5250
  declare const feedbackTypeSchema: z.ZodEnum<{
5251
+ feature: "feature";
3335
5252
  chat: "chat";
3336
5253
  ui: "ui";
3337
5254
  performance: "performance";
3338
5255
  bug: "bug";
3339
- feature: "feature";
3340
5256
  other: "other";
3341
5257
  }>;
3342
5258
  /** Feedback SaaS status schema. */
@@ -3354,11 +5270,11 @@ declare const feedbackSubmitRequestSchema: z.ZodObject<{
3354
5270
  "openloaf-saas": "openloaf-saas";
3355
5271
  }>>;
3356
5272
  type: z.ZodEnum<{
5273
+ feature: "feature";
3357
5274
  chat: "chat";
3358
5275
  ui: "ui";
3359
5276
  performance: "performance";
3360
5277
  bug: "bug";
3361
- feature: "feature";
3362
5278
  other: "other";
3363
5279
  }>;
3364
5280
  content: z.ZodString;
@@ -3378,11 +5294,11 @@ declare const feedbackListRequestSchema: z.ZodObject<{
3378
5294
  page: z.ZodOptional<z.ZodNumber>;
3379
5295
  pageSize: z.ZodOptional<z.ZodNumber>;
3380
5296
  type: z.ZodOptional<z.ZodEnum<{
5297
+ feature: "feature";
3381
5298
  chat: "chat";
3382
5299
  ui: "ui";
3383
5300
  performance: "performance";
3384
5301
  bug: "bug";
3385
- feature: "feature";
3386
5302
  other: "other";
3387
5303
  }>>;
3388
5304
  source: z.ZodOptional<z.ZodEnum<{
@@ -3409,11 +5325,11 @@ declare const feedbackItemSchema: z.ZodObject<{
3409
5325
  "openloaf-saas": "openloaf-saas";
3410
5326
  }>;
3411
5327
  type: z.ZodEnum<{
5328
+ feature: "feature";
3412
5329
  chat: "chat";
3413
5330
  ui: "ui";
3414
5331
  performance: "performance";
3415
5332
  bug: "bug";
3416
- feature: "feature";
3417
5333
  other: "other";
3418
5334
  }>;
3419
5335
  saasStatus: z.ZodEnum<{
@@ -3439,11 +5355,11 @@ declare const feedbackListPayloadSchema: z.ZodObject<{
3439
5355
  "openloaf-saas": "openloaf-saas";
3440
5356
  }>;
3441
5357
  type: z.ZodEnum<{
5358
+ feature: "feature";
3442
5359
  chat: "chat";
3443
5360
  ui: "ui";
3444
5361
  performance: "performance";
3445
5362
  bug: "bug";
3446
- feature: "feature";
3447
5363
  other: "other";
3448
5364
  }>;
3449
5365
  saasStatus: z.ZodEnum<{
@@ -3473,11 +5389,11 @@ declare const feedbackListResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
3473
5389
  "openloaf-saas": "openloaf-saas";
3474
5390
  }>;
3475
5391
  type: z.ZodEnum<{
5392
+ feature: "feature";
3476
5393
  chat: "chat";
3477
5394
  ui: "ui";
3478
5395
  performance: "performance";
3479
5396
  bug: "bug";
3480
- feature: "feature";
3481
5397
  other: "other";
3482
5398
  }>;
3483
5399
  saasStatus: z.ZodEnum<{
@@ -3511,11 +5427,11 @@ declare const feedbackDetailPayloadSchema: z.ZodObject<{
3511
5427
  "openloaf-saas": "openloaf-saas";
3512
5428
  }>;
3513
5429
  type: z.ZodEnum<{
5430
+ feature: "feature";
3514
5431
  chat: "chat";
3515
5432
  ui: "ui";
3516
5433
  performance: "performance";
3517
5434
  bug: "bug";
3518
- feature: "feature";
3519
5435
  other: "other";
3520
5436
  }>;
3521
5437
  saasStatus: z.ZodEnum<{
@@ -3542,11 +5458,11 @@ declare const feedbackDetailResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
3542
5458
  "openloaf-saas": "openloaf-saas";
3543
5459
  }>;
3544
5460
  type: z.ZodEnum<{
5461
+ feature: "feature";
3545
5462
  chat: "chat";
3546
5463
  ui: "ui";
3547
5464
  performance: "performance";
3548
5465
  bug: "bug";
3549
- feature: "feature";
3550
5466
  other: "other";
3551
5467
  }>;
3552
5468
  saasStatus: z.ZodEnum<{
@@ -4062,7 +5978,7 @@ declare const userEndpoints: {
4062
5978
  user: {
4063
5979
  id: string;
4064
5980
  provider: string;
4065
- membershipLevel: "free" | "vip" | "svip" | "infinity";
5981
+ membershipLevel: "free" | "lite" | "pro" | "premium" | "infinity";
4066
5982
  creditsBalance: number;
4067
5983
  createdAt: string;
4068
5984
  updatedAt: string;
@@ -4086,7 +6002,7 @@ declare class UserClient {
4086
6002
  user: {
4087
6003
  id: string;
4088
6004
  provider: string;
4089
- membershipLevel: "free" | "vip" | "svip" | "infinity";
6005
+ membershipLevel: "free" | "lite" | "pro" | "premium" | "infinity";
4090
6006
  creditsBalance: number;
4091
6007
  createdAt: string;
4092
6008
  updatedAt: string;
@@ -4100,8 +6016,9 @@ declare class UserClient {
4100
6016
  /** Membership level enum schema. */
4101
6017
  declare const userMembershipLevelSchema: z.ZodEnum<{
4102
6018
  free: "free";
4103
- vip: "vip";
4104
- svip: "svip";
6019
+ lite: "lite";
6020
+ pro: "pro";
6021
+ premium: "premium";
4105
6022
  infinity: "infinity";
4106
6023
  }>;
4107
6024
  /** Current user payload schema. */
@@ -4113,8 +6030,9 @@ declare const userSelfSchema: z.ZodObject<{
4113
6030
  provider: z.ZodString;
4114
6031
  membershipLevel: z.ZodEnum<{
4115
6032
  free: "free";
4116
- vip: "vip";
4117
- svip: "svip";
6033
+ lite: "lite";
6034
+ pro: "pro";
6035
+ premium: "premium";
4118
6036
  infinity: "infinity";
4119
6037
  }>;
4120
6038
  creditsBalance: z.ZodNumber;
@@ -4133,8 +6051,9 @@ declare const userSelfResponseSchema: z.ZodObject<{
4133
6051
  provider: z.ZodString;
4134
6052
  membershipLevel: z.ZodEnum<{
4135
6053
  free: "free";
4136
- vip: "vip";
4137
- svip: "svip";
6054
+ lite: "lite";
6055
+ pro: "pro";
6056
+ premium: "premium";
4138
6057
  infinity: "infinity";
4139
6058
  }>;
4140
6059
  creditsBalance: z.ZodNumber;
@@ -4229,4 +6148,4 @@ declare function createTrpcClient(options: TrpcClientOptions): _trpc_client.TRPC
4229
6148
  transformer: false;
4230
6149
  }, _trpc_server.TRPCDecorateCreateRouterOptions<_trpc_server.TRPCCreateRouterOptions>>>;
4231
6150
 
4232
- export { AI_MODEL_CAPABILITY_INPUT_KEYS, AI_MODEL_CAPABILITY_OUTPUT_KEYS, AI_MODEL_TAGS, AI_MODEL_TAG_LABELS, type AiAudioOutput, type AiAudioRequest, type AiChatCompletionsRequest, type AiChatModel, type AiChatModelsResponse, type AiChatSessionMetadata, AiClient, type AiClientMetadata, type AiFileUploadResponse, type AiImageInputs, type AiImageOutput, type AiImageRequest, type AiMediaInput, type AiModel, type AiModelCapabilities, type AiModelCapabilitiesInput, type AiModelCapabilitiesOutput, type AiModelCapabilityInputKey, type AiModelCapabilityOutputKey, type AiModelTag, type AiModelsResponse, type AiModelsUpdatedAtData, type AiModelsUpdatedAtResponse, type AiProviderTemplate, type AiProviderTemplateModel, type AiProviderTemplatesResponse, type AiResponsesRequest, type AiTaskCancelResponse, type AiTaskCreatedResponse, type AiTaskResponse, AiToolsClient, type AiVideoInputs, type AiVideoOutput, type AiVideoRequest, type AnalyzeSkillsRequest, type AnalyzeSkillsResponse, AuthClient, type AuthExchangeRequest, type AuthExchangeResponse, type AuthLogoutRequest, type AuthLogoutResponse, type AuthRefreshError, type AuthRefreshRequest, type AuthRefreshResponse, type AuthRefreshSuccess, AuxiliaryClient, type AuxiliaryInferRequest, type AuxiliaryInferResponse, type AuxiliaryQuota, type AuxiliaryQuotaResponse, Endpoint, type FeedbackAttachmentResponse, FeedbackClient, type FeedbackDetailPayload, type FeedbackDetailRequest, type FeedbackDetailResponse, type FeedbackListPayload, type FeedbackListRequest, type FeedbackListResponse, type FeedbackSaasStatus, type FeedbackSource, type FeedbackSubmitError, type FeedbackSubmitRequest, type FeedbackSubmitResponse, type FeedbackType, type HeaderInput, type HttpMethod, type RecommendActionsRequest, type RecommendActionsResponse, type ResponseType, SaaSClient, type SaaSClientOptions, SaaSContract, SaaSHttpError, SaaSNetworkError, SaaSSchemaError, type SkillArchiveFormat, type SkillListItem, type SkillOwnerSummary, type SkillSource, type SkillStatus, type SkillType, type SkillVersionSummary, type SkillVisibility, SkillsClient, type SkillsDetailResponse, type SkillsDownloadResponse, type SkillsListRequest, type SkillsListResponse, type SummarizeRequest, type SummarizeResponse, type TrpcClientOptions, UserClient, type UserMembershipLevel, type UserSelf, type UserSelfRequest, type UserSelfResponse, aiAudioOutputSchema, aiAudioRequestSchema, aiChatCompletionsRequestSchema, aiChatModelSchema, aiChatModelsPayloadSchema, aiChatModelsResponseSchema, aiChatModelsSuccessSchema, aiChatSessionMetadataSchema, aiClientMetadataSchema, aiEndpoints, aiErrorResponseSchema, aiImageInputsSchema, aiImageOutputSchema, aiImageRequestSchema, aiMediaInputSchema, aiModelCapabilitiesInputSchema, aiModelCapabilitiesOutputSchema, aiModelCapabilitiesSchema, aiModelCapabilityCommonSchema, aiModelParameterFieldSchema, aiModelParamsSchema, aiModelSchema, aiModelsPayloadSchema, aiModelsRequestSchema, aiModelsResponseSchema, aiModelsSuccessSchema, aiModelsUpdatedAtDataSchema, aiModelsUpdatedAtResponseSchema, aiModelsUpdatedAtSuccessSchema, index$6 as aiModule, aiProviderTemplateModelSchema, aiProviderTemplateSchema, aiProviderTemplatesPayloadSchema, aiProviderTemplatesRequestSchema, aiProviderTemplatesResponseSchema, aiProviderTemplatesSuccessSchema, aiResponsesRequestSchema, aiTaskCancelDataSchema, aiTaskCancelRequestSchema, aiTaskCancelResponseSchema, aiTaskCancelSuccessSchema, aiTaskCreatedDataSchema, aiTaskCreatedResponseSchema, aiTaskCreatedSuccessSchema, aiTaskDataSchema, aiTaskErrorSchema, aiTaskRequestSchema, aiTaskResponseSchema, aiTaskResultTypeSchema, aiTaskStatusSchema, aiTaskSuccessSchema, aiToolsEndpoints, index$5 as aiToolsModule, aiVideoInputsSchema, aiVideoOutputSchema, aiVideoRequestSchema, analyzeSkillsRequestSchema, analyzeSkillsResponseSchema, authEndpoints, authExchangeRequestSchema, authExchangeResponseSchema, authLogoutRequestSchema, authLogoutResponseSchema, index$4 as authModule, authRefreshErrorSchema, authRefreshRequestSchema, authRefreshResponseSchema, authRefreshSuccessSchema, authRefreshUserSchema, auxiliaryEndpoints, auxiliaryInferRequestSchema, auxiliaryInferResponseSchema, index$3 as auxiliaryModule, auxiliaryQuotaResponseSchema, contract, createTrpcClient, feedbackDetailPayloadSchema, feedbackDetailRequestSchema, feedbackDetailResponseSchema, feedbackEndpoints, feedbackItemSchema, feedbackListPayloadSchema, feedbackListRequestSchema, feedbackListResponseSchema, index$2 as feedbackModule, feedbackSaasStatusSchema, feedbackSourceSchema, feedbackSubmitErrorSchema, feedbackSubmitRequestSchema, feedbackSubmitResponseSchema, feedbackTypeSchema, mergeHeaders, normalizeHeaders, recommendActionsRequestSchema, recommendActionsResponseSchema, request, skillArchiveFormatSchema, skillListItemSchema, skillOwnerSummarySchema, skillSourceSchema, skillStatusSchema, skillTypeSchema, skillVersionSummarySchema, skillVisibilitySchema, skillsDetailRequestSchema, skillsDetailResponseSchema, skillsDownloadResponseSchema, skillsEndpoints, skillsListRequestSchema, skillsListResponseSchema, index$1 as skillsModule, summarizeRequestSchema, summarizeResponseSchema, userEndpoints, userMembershipLevelSchema, index as userModule, userSelfRequestSchema, userSelfResponseSchema, userSelfSchema };
6151
+ export { AI_MODEL_CAPABILITY_INPUT_KEYS, AI_MODEL_CAPABILITY_OUTPUT_KEYS, AI_MODEL_TAGS, AI_MODEL_TAG_LABELS, type AiAudioOutput, type AiAudioRequest, type AiChatCompletionsRequest, type AiChatModel, type AiChatModelsResponse, type AiChatSessionMetadata, AiClient, type AiClientMetadata, type AiFileUploadResponse, type AiImageInputs, type AiImageOutput, type AiImageRequest, type AiMediaInput, type AiModel, type AiModelCapabilities, type AiModelCapabilitiesInput, type AiModelCapabilitiesOutput, type AiModelCapabilityInputKey, type AiModelCapabilityOutputKey, type AiModelTag, type AiModelsResponse, type AiModelsUpdatedAtData, type AiModelsUpdatedAtResponse, type AiProviderTemplate, type AiProviderTemplateModel, type AiProviderTemplatesResponse, type AiResponsesRequest, type AiTaskCancelResponse, type AiTaskCreatedResponse, type AiTaskResponse, AiToolsClient, type AiVideoInputs, type AiVideoOutput, type AiVideoRequest, type AnalyzeSkillsRequest, type AnalyzeSkillsResponse, AuthClient, type AuthExchangeRequest, type AuthExchangeResponse, type AuthLogoutRequest, type AuthLogoutResponse, type AuthRefreshError, type AuthRefreshRequest, type AuthRefreshResponse, type AuthRefreshSuccess, AuxiliaryClient, type AuxiliaryInferRequest, type AuxiliaryInferResponse, type AuxiliaryQuota, type AuxiliaryQuotaResponse, type DigitalHumanRequest, Endpoint, type FeedbackAttachmentResponse, FeedbackClient, type FeedbackDetailPayload, type FeedbackDetailRequest, type FeedbackDetailResponse, type FeedbackListPayload, type FeedbackListRequest, type FeedbackListResponse, type FeedbackSaasStatus, type FeedbackSource, type FeedbackSubmitError, type FeedbackSubmitRequest, type FeedbackSubmitResponse, type FeedbackType, type HeaderInput, type HttpMethod, type ImageEditRequest, type ImageGenerateRequest, type MattingRequest, type MediaAspectRatio, type MediaFeature, type MediaGenerateBase, type MediaGenerateRequest, type MediaModelsQuery, type MediaQuality, type MediaResolution, type MediaTaskGroupData, type MediaTaskGroupResponse, type MediaTaskGroupSuccess, type MediaTaskItem, type MotionTransferRequest, type MusicRequest, type OutpaintRequest, type PosterRequest, type RecommendActionsRequest, type RecommendActionsResponse, type ResponseType, SaaSClient, type SaaSClientOptions, SaaSContract, SaaSHttpError, SaaSNetworkError, SaaSSchemaError, type SfxRequest, type SkillArchiveFormat, type SkillListItem, type SkillOwnerSummary, type SkillSource, type SkillStatus, type SkillType, type SkillVersionSummary, type SkillVisibility, SkillsClient, type SkillsDetailResponse, type SkillsDownloadResponse, type SkillsListRequest, type SkillsListResponse, type SummarizeRequest, type SummarizeResponse, type TrpcClientOptions, type TtsRequest, type UpscaleRequest, UserClient, type UserMembershipLevel, type UserSelf, type UserSelfRequest, type UserSelfResponse, type VideoEditRequest, type VideoGenerateRequest, aiAudioOutputSchema, aiAudioRequestSchema, aiChatCompletionsRequestSchema, aiChatModelSchema, aiChatModelsPayloadSchema, aiChatModelsResponseSchema, aiChatModelsSuccessSchema, aiChatSessionMetadataSchema, aiClientMetadataSchema, aiEndpoints, aiErrorResponseSchema, aiImageInputsSchema, aiImageOutputSchema, aiImageRequestSchema, aiMediaInputSchema, aiModelCapabilitiesInputSchema, aiModelCapabilitiesOutputSchema, aiModelCapabilitiesSchema, aiModelCapabilityCommonSchema, aiModelParameterFieldSchema, aiModelParamsSchema, aiModelSchema, aiModelsPayloadSchema, aiModelsRequestSchema, aiModelsResponseSchema, aiModelsSuccessSchema, aiModelsUpdatedAtDataSchema, aiModelsUpdatedAtResponseSchema, aiModelsUpdatedAtSuccessSchema, index$6 as aiModule, aiProviderTemplateModelSchema, aiProviderTemplateSchema, aiProviderTemplatesPayloadSchema, aiProviderTemplatesRequestSchema, aiProviderTemplatesResponseSchema, aiProviderTemplatesSuccessSchema, aiResponsesRequestSchema, aiTaskCancelDataSchema, aiTaskCancelRequestSchema, aiTaskCancelResponseSchema, aiTaskCancelSuccessSchema, aiTaskCreatedDataSchema, aiTaskCreatedResponseSchema, aiTaskCreatedSuccessSchema, aiTaskDataSchema, aiTaskErrorSchema, aiTaskRequestSchema, aiTaskResponseSchema, aiTaskResultTypeSchema, aiTaskStatusSchema, aiTaskSuccessSchema, aiToolsEndpoints, index$5 as aiToolsModule, aiVideoInputsSchema, aiVideoOutputSchema, aiVideoRequestSchema, analyzeSkillsRequestSchema, analyzeSkillsResponseSchema, authEndpoints, authExchangeRequestSchema, authExchangeResponseSchema, authLogoutRequestSchema, authLogoutResponseSchema, index$4 as authModule, authRefreshErrorSchema, authRefreshRequestSchema, authRefreshResponseSchema, authRefreshSuccessSchema, authRefreshUserSchema, auxiliaryEndpoints, auxiliaryInferRequestSchema, auxiliaryInferResponseSchema, index$3 as auxiliaryModule, auxiliaryQuotaResponseSchema, contract, createTrpcClient, digitalHumanRequestSchema, feedbackDetailPayloadSchema, feedbackDetailRequestSchema, feedbackDetailResponseSchema, feedbackEndpoints, feedbackItemSchema, feedbackListPayloadSchema, feedbackListRequestSchema, feedbackListResponseSchema, index$2 as feedbackModule, feedbackSaasStatusSchema, feedbackSourceSchema, feedbackSubmitErrorSchema, feedbackSubmitRequestSchema, feedbackSubmitResponseSchema, feedbackTypeSchema, imageEditRequestSchema, imageGenerateRequestSchema, mattingRequestSchema, mediaAspectRatioSchema, mediaFeatureSchema, mediaGenerateBaseSchema, mediaGenerateRequestSchema, mediaModelsQuerySchema, mediaQualitySchema, mediaResolutionSchema, mediaTaskGroupDataSchema, mediaTaskGroupResponseSchema, mediaTaskGroupSuccessSchema, mediaTaskItemSchema, mediaTaskStatusSchema, mergeHeaders, motionTransferRequestSchema, musicRequestSchema, normalizeHeaders, outpaintRequestSchema, posterRequestSchema, recommendActionsRequestSchema, recommendActionsResponseSchema, request, sfxRequestSchema, skillArchiveFormatSchema, skillListItemSchema, skillOwnerSummarySchema, skillSourceSchema, skillStatusSchema, skillTypeSchema, skillVersionSummarySchema, skillVisibilitySchema, skillsDetailRequestSchema, skillsDetailResponseSchema, skillsDownloadResponseSchema, skillsEndpoints, skillsListRequestSchema, skillsListResponseSchema, index$1 as skillsModule, summarizeRequestSchema, summarizeResponseSchema, ttsRequestSchema, upscaleRequestSchema, userEndpoints, userMembershipLevelSchema, index as userModule, userSelfRequestSchema, userSelfResponseSchema, userSelfSchema, videoEditRequestSchema, videoGenerateRequestSchema };