@openloaf-saas/sdk 0.1.13 → 0.1.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -38,286 +38,6 @@ declare class SaaSContract {
38
38
  };
39
39
  /** AI endpoints. */
40
40
  readonly ai: {
41
- readonly image: Endpoint<{
42
- modelId: string;
43
- prompt: string;
44
- negativePrompt?: string | undefined;
45
- style?: string | undefined;
46
- inputs?: {
47
- images?: {
48
- url?: string | undefined;
49
- base64?: string | undefined;
50
- mediaType?: string | undefined;
51
- }[] | undefined;
52
- mask?: {
53
- url?: string | undefined;
54
- base64?: string | undefined;
55
- mediaType?: string | undefined;
56
- } | undefined;
57
- } | undefined;
58
- output?: {
59
- count?: number | undefined;
60
- aspectRatio?: "1:1" | "16:9" | "9:16" | "4:3" | undefined;
61
- quality?: "standard" | "hd" | undefined;
62
- } | undefined;
63
- parameters?: Record<string, unknown> | undefined;
64
- }, {
65
- success: false;
66
- message: string;
67
- code?: string | undefined;
68
- } | {
69
- success: true;
70
- data: {
71
- taskId: string;
72
- };
73
- }>;
74
- readonly video: Endpoint<{
75
- modelId: string;
76
- prompt: string;
77
- negativePrompt?: string | undefined;
78
- style?: string | undefined;
79
- inputs?: {
80
- images?: {
81
- url?: string | undefined;
82
- base64?: string | undefined;
83
- mediaType?: string | undefined;
84
- }[] | undefined;
85
- startImage?: {
86
- url?: string | undefined;
87
- base64?: string | undefined;
88
- mediaType?: string | undefined;
89
- } | undefined;
90
- endImage?: {
91
- url?: string | undefined;
92
- base64?: string | undefined;
93
- mediaType?: string | undefined;
94
- } | undefined;
95
- referenceVideo?: {
96
- url?: string | undefined;
97
- base64?: string | undefined;
98
- mediaType?: string | undefined;
99
- } | undefined;
100
- } | undefined;
101
- output?: {
102
- aspectRatio?: string | undefined;
103
- duration?: number | undefined;
104
- clarity?: string | undefined;
105
- withAudio?: boolean | undefined;
106
- } | undefined;
107
- parameters?: Record<string, unknown> | undefined;
108
- }, {
109
- success: false;
110
- message: string;
111
- code?: string | undefined;
112
- } | {
113
- success: true;
114
- data: {
115
- taskId: string;
116
- };
117
- }>;
118
- readonly audio: Endpoint<{
119
- modelId: string;
120
- text: string;
121
- voice?: string | undefined;
122
- output?: {
123
- format?: "mp3" | "wav" | "pcm" | "opus" | undefined;
124
- sampleRate?: number | undefined;
125
- } | undefined;
126
- parameters?: Record<string, unknown> | undefined;
127
- }, {
128
- success: false;
129
- message: string;
130
- code?: string | undefined;
131
- } | {
132
- success: true;
133
- data: {
134
- taskId: string;
135
- };
136
- }>;
137
- readonly task: (taskId: string) => Endpoint<void, {
138
- success: false;
139
- message: string;
140
- code?: string | undefined;
141
- } | {
142
- success: true;
143
- data: {
144
- status: "queued" | "running" | "succeeded" | "failed" | "canceled";
145
- progress?: number | undefined;
146
- resultType?: "image" | "video" | "audio" | undefined;
147
- resultUrls?: string[] | undefined;
148
- error?: {
149
- message: string;
150
- code?: string | undefined;
151
- } | undefined;
152
- creditsConsumed?: number | undefined;
153
- };
154
- }>;
155
- readonly cancelTask: (taskId: string) => Endpoint<void, {
156
- success: false;
157
- message: string;
158
- code?: string | undefined;
159
- } | {
160
- success: true;
161
- data: {
162
- status: "canceled" | "processing";
163
- };
164
- }>;
165
- readonly imageModels: Endpoint<void, {
166
- success: false;
167
- message: string;
168
- code?: string | undefined;
169
- } | {
170
- success: true;
171
- data: {
172
- data: {
173
- [x: string]: unknown;
174
- id: string;
175
- name?: string | undefined;
176
- familyId?: string | undefined;
177
- providerId?: string | undefined;
178
- tags?: string[] | undefined;
179
- capabilities?: {
180
- common?: {
181
- maxContextK?: number | undefined;
182
- supportsStructuredOutput?: boolean | undefined;
183
- supportsWebSearch?: boolean | undefined;
184
- } | undefined;
185
- params?: {
186
- features?: string[] | undefined;
187
- fields?: {
188
- key: string;
189
- title: string;
190
- type: "number" | "boolean" | "text" | "select";
191
- request: boolean;
192
- description?: string | undefined;
193
- unit?: string | undefined;
194
- values?: (string | number | boolean)[] | undefined;
195
- min?: number | undefined;
196
- max?: number | undefined;
197
- step?: number | undefined;
198
- default?: string | number | boolean | undefined;
199
- }[] | undefined;
200
- } | undefined;
201
- input?: {
202
- maxImages?: number | undefined;
203
- supportsMask?: boolean | undefined;
204
- supportsReferenceVideo?: boolean | undefined;
205
- supportsStartEnd?: boolean | undefined;
206
- } | undefined;
207
- output?: {
208
- supportsMulti?: boolean | undefined;
209
- supportsAudio?: boolean | undefined;
210
- } | undefined;
211
- } | undefined;
212
- creditsPerCall?: number | undefined;
213
- }[];
214
- updatedAt?: string | undefined;
215
- };
216
- }>;
217
- readonly videoModels: Endpoint<void, {
218
- success: false;
219
- message: string;
220
- code?: string | undefined;
221
- } | {
222
- success: true;
223
- data: {
224
- data: {
225
- [x: string]: unknown;
226
- id: string;
227
- name?: string | undefined;
228
- familyId?: string | undefined;
229
- providerId?: string | undefined;
230
- tags?: string[] | undefined;
231
- capabilities?: {
232
- common?: {
233
- maxContextK?: number | undefined;
234
- supportsStructuredOutput?: boolean | undefined;
235
- supportsWebSearch?: boolean | undefined;
236
- } | undefined;
237
- params?: {
238
- features?: string[] | undefined;
239
- fields?: {
240
- key: string;
241
- title: string;
242
- type: "number" | "boolean" | "text" | "select";
243
- request: boolean;
244
- description?: string | undefined;
245
- unit?: string | undefined;
246
- values?: (string | number | boolean)[] | undefined;
247
- min?: number | undefined;
248
- max?: number | undefined;
249
- step?: number | undefined;
250
- default?: string | number | boolean | undefined;
251
- }[] | undefined;
252
- } | undefined;
253
- input?: {
254
- maxImages?: number | undefined;
255
- supportsMask?: boolean | undefined;
256
- supportsReferenceVideo?: boolean | undefined;
257
- supportsStartEnd?: boolean | undefined;
258
- } | undefined;
259
- output?: {
260
- supportsMulti?: boolean | undefined;
261
- supportsAudio?: boolean | undefined;
262
- } | undefined;
263
- } | undefined;
264
- creditsPerCall?: number | undefined;
265
- }[];
266
- updatedAt?: string | undefined;
267
- };
268
- }>;
269
- readonly audioModels: Endpoint<void, {
270
- success: false;
271
- message: string;
272
- code?: string | undefined;
273
- } | {
274
- success: true;
275
- data: {
276
- data: {
277
- [x: string]: unknown;
278
- id: string;
279
- name?: string | undefined;
280
- familyId?: string | undefined;
281
- providerId?: string | undefined;
282
- tags?: string[] | undefined;
283
- capabilities?: {
284
- common?: {
285
- maxContextK?: number | undefined;
286
- supportsStructuredOutput?: boolean | undefined;
287
- supportsWebSearch?: boolean | undefined;
288
- } | undefined;
289
- params?: {
290
- features?: string[] | undefined;
291
- fields?: {
292
- key: string;
293
- title: string;
294
- type: "number" | "boolean" | "text" | "select";
295
- request: boolean;
296
- description?: string | undefined;
297
- unit?: string | undefined;
298
- values?: (string | number | boolean)[] | undefined;
299
- min?: number | undefined;
300
- max?: number | undefined;
301
- step?: number | undefined;
302
- default?: string | number | boolean | undefined;
303
- }[] | undefined;
304
- } | undefined;
305
- input?: {
306
- maxImages?: number | undefined;
307
- supportsMask?: boolean | undefined;
308
- supportsReferenceVideo?: boolean | undefined;
309
- supportsStartEnd?: boolean | undefined;
310
- } | undefined;
311
- output?: {
312
- supportsMulti?: boolean | undefined;
313
- supportsAudio?: boolean | undefined;
314
- } | undefined;
315
- } | undefined;
316
- creditsPerCall?: number | undefined;
317
- }[];
318
- updatedAt?: string | undefined;
319
- };
320
- }>;
321
41
  readonly chatModels: Endpoint<void, {
322
42
  success: false;
323
43
  message: string;
@@ -442,374 +162,121 @@ declare class SaaSContract {
442
162
  updatedAt?: string | undefined;
443
163
  };
444
164
  }>;
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
- };
165
+ readonly v3ImageCapabilities: Endpoint<void, {
166
+ success: true;
167
+ data: {
168
+ category: string;
169
+ features: {
170
+ id: string;
171
+ variants: {
172
+ id: string;
173
+ preference: string;
174
+ creditsPerCall: number;
175
+ billingType: string;
176
+ minMembershipLevel: string;
177
+ }[];
178
+ }[];
179
+ updatedAt?: string | undefined;
509
180
  };
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
- };
181
+ }>;
182
+ readonly v3VideoCapabilities: Endpoint<void, {
183
+ success: true;
184
+ data: {
185
+ category: string;
186
+ features: {
187
+ id: string;
188
+ variants: {
189
+ id: string;
190
+ preference: string;
191
+ creditsPerCall: number;
192
+ billingType: string;
193
+ minMembershipLevel: string;
194
+ }[];
195
+ }[];
196
+ updatedAt?: string | undefined;
524
197
  };
525
- direction: {
526
- top?: number | undefined;
527
- bottom?: number | undefined;
528
- left?: number | undefined;
529
- right?: number | undefined;
198
+ }>;
199
+ readonly v3AudioCapabilities: Endpoint<void, {
200
+ success: true;
201
+ data: {
202
+ category: string;
203
+ features: {
204
+ id: string;
205
+ variants: {
206
+ id: string;
207
+ preference: string;
208
+ creditsPerCall: number;
209
+ billingType: string;
210
+ minMembershipLevel: string;
211
+ }[];
212
+ }[];
213
+ updatedAt?: string | undefined;
530
214
  };
531
- feature: "outpaint";
532
- prompt?: string | undefined;
215
+ }>;
216
+ readonly v3Generate: Endpoint<{
217
+ feature: string;
218
+ variant: string;
219
+ inputs?: Record<string, unknown> | undefined;
220
+ params?: Record<string, unknown> | undefined;
533
221
  count?: 2 | 1 | 4 | undefined;
534
- quality?: "standard" | "hd" | "draft" | undefined;
535
222
  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;
223
+ }, {
224
+ success: true;
225
+ data: {
226
+ taskId: string;
227
+ } | {
228
+ groupId: string;
229
+ taskIds: string[];
710
230
  };
711
231
  }>;
712
- readonly mediaTask: (taskId: string) => Endpoint<void, {
713
- success: false;
714
- message: string;
715
- code?: string | undefined;
716
- } | {
232
+ readonly v3Task: (taskId: string) => Endpoint<void, {
717
233
  success: true;
718
234
  data: {
235
+ taskId: string;
719
236
  status: "queued" | "running" | "succeeded" | "failed" | "canceled";
720
- progress?: number | undefined;
721
- resultType?: "image" | "video" | "audio" | undefined;
722
237
  resultUrls?: string[] | undefined;
238
+ resultText?: string | undefined;
239
+ creditsConsumed?: number | undefined;
723
240
  error?: {
724
241
  message: string;
725
242
  code?: string | undefined;
726
243
  } | undefined;
727
- creditsConsumed?: number | undefined;
728
244
  };
729
245
  }>;
730
- readonly mediaCancelTask: (taskId: string) => Endpoint<void, {
731
- success: false;
732
- message: string;
733
- code?: string | undefined;
734
- } | {
246
+ readonly v3CancelTask: (taskId: string) => Endpoint<void, {
735
247
  success: true;
736
- data: {
737
- status: "canceled" | "processing";
738
- };
248
+ message?: string | undefined;
739
249
  }>;
740
- readonly mediaTaskGroup: (groupId: string) => Endpoint<void, {
741
- success: false;
742
- message: string;
743
- code?: string | undefined;
744
- } | {
250
+ readonly v3TaskGroup: (groupId: string) => Endpoint<void, {
745
251
  success: true;
746
252
  data: {
747
253
  groupId: string;
254
+ status: "running" | "succeeded" | "failed" | "partial";
748
255
  tasks: {
749
256
  taskId: string;
750
257
  status: "queued" | "running" | "succeeded" | "failed" | "canceled";
751
258
  resultUrls?: string[] | undefined;
259
+ resultText?: string | undefined;
260
+ creditsConsumed?: number | undefined;
752
261
  error?: {
753
262
  message: string;
754
263
  code?: string | undefined;
755
264
  } | undefined;
756
- creditsConsumed?: number | undefined;
757
265
  }[];
758
266
  totalCreditsConsumed?: number | undefined;
759
267
  };
760
268
  }>;
761
- readonly mediaModels: Endpoint<{
762
- feature?: "imageGenerate" | "poster" | "imageEdit" | "upscale" | "outpaint" | "matting" | "videoGenerate" | "videoEdit" | "digitalHuman" | "motionTransfer" | "tts" | "music" | "sfx" | undefined;
269
+ readonly v3EstimatePrice: Endpoint<{
270
+ variant: string;
271
+ params?: Record<string, unknown> | undefined;
763
272
  }, {
764
- success: false;
765
- message: string;
766
- code?: string | undefined;
767
- } | {
768
273
  success: true;
769
274
  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;
275
+ baseCredits: number;
276
+ markup: number;
277
+ totalCredits: number;
278
+ billingType: string;
279
+ factors: Record<string, number>;
813
280
  };
814
281
  }>;
815
282
  };
@@ -1135,131 +602,7 @@ type SdkHost<TContract> = {
1135
602
  };
1136
603
 
1137
604
  declare const aiEndpoints: {
1138
- readonly image: Endpoint<{
1139
- modelId: string;
1140
- prompt: string;
1141
- negativePrompt?: string | undefined;
1142
- style?: string | undefined;
1143
- inputs?: {
1144
- images?: {
1145
- url?: string | undefined;
1146
- base64?: string | undefined;
1147
- mediaType?: string | undefined;
1148
- }[] | undefined;
1149
- mask?: {
1150
- url?: string | undefined;
1151
- base64?: string | undefined;
1152
- mediaType?: string | undefined;
1153
- } | undefined;
1154
- } | undefined;
1155
- output?: {
1156
- count?: number | undefined;
1157
- aspectRatio?: "1:1" | "16:9" | "9:16" | "4:3" | undefined;
1158
- quality?: "standard" | "hd" | undefined;
1159
- } | undefined;
1160
- parameters?: Record<string, unknown> | undefined;
1161
- }, {
1162
- success: false;
1163
- message: string;
1164
- code?: string | undefined;
1165
- } | {
1166
- success: true;
1167
- data: {
1168
- taskId: string;
1169
- };
1170
- }>;
1171
- readonly video: Endpoint<{
1172
- modelId: string;
1173
- prompt: string;
1174
- negativePrompt?: string | undefined;
1175
- style?: string | undefined;
1176
- inputs?: {
1177
- images?: {
1178
- url?: string | undefined;
1179
- base64?: string | undefined;
1180
- mediaType?: string | undefined;
1181
- }[] | undefined;
1182
- startImage?: {
1183
- url?: string | undefined;
1184
- base64?: string | undefined;
1185
- mediaType?: string | undefined;
1186
- } | undefined;
1187
- endImage?: {
1188
- url?: string | undefined;
1189
- base64?: string | undefined;
1190
- mediaType?: string | undefined;
1191
- } | undefined;
1192
- referenceVideo?: {
1193
- url?: string | undefined;
1194
- base64?: string | undefined;
1195
- mediaType?: string | undefined;
1196
- } | undefined;
1197
- } | undefined;
1198
- output?: {
1199
- aspectRatio?: string | undefined;
1200
- duration?: number | undefined;
1201
- clarity?: string | undefined;
1202
- withAudio?: boolean | undefined;
1203
- } | undefined;
1204
- parameters?: Record<string, unknown> | undefined;
1205
- }, {
1206
- success: false;
1207
- message: string;
1208
- code?: string | undefined;
1209
- } | {
1210
- success: true;
1211
- data: {
1212
- taskId: string;
1213
- };
1214
- }>;
1215
- readonly audio: Endpoint<{
1216
- modelId: string;
1217
- text: string;
1218
- voice?: string | undefined;
1219
- output?: {
1220
- format?: "mp3" | "wav" | "pcm" | "opus" | undefined;
1221
- sampleRate?: number | undefined;
1222
- } | undefined;
1223
- parameters?: Record<string, unknown> | undefined;
1224
- }, {
1225
- success: false;
1226
- message: string;
1227
- code?: string | undefined;
1228
- } | {
1229
- success: true;
1230
- data: {
1231
- taskId: string;
1232
- };
1233
- }>;
1234
- readonly task: (taskId: string) => Endpoint<void, {
1235
- success: false;
1236
- message: string;
1237
- code?: string | undefined;
1238
- } | {
1239
- success: true;
1240
- data: {
1241
- status: "queued" | "running" | "succeeded" | "failed" | "canceled";
1242
- progress?: number | undefined;
1243
- resultType?: "image" | "video" | "audio" | undefined;
1244
- resultUrls?: string[] | undefined;
1245
- error?: {
1246
- message: string;
1247
- code?: string | undefined;
1248
- } | undefined;
1249
- creditsConsumed?: number | undefined;
1250
- };
1251
- }>;
1252
- readonly cancelTask: (taskId: string) => Endpoint<void, {
1253
- success: false;
1254
- message: string;
1255
- code?: string | undefined;
1256
- } | {
1257
- success: true;
1258
- data: {
1259
- status: "canceled" | "processing";
1260
- };
1261
- }>;
1262
- readonly imageModels: Endpoint<void, {
605
+ readonly chatModels: Endpoint<void, {
1263
606
  success: false;
1264
607
  message: string;
1265
608
  code?: string | undefined;
@@ -1267,12 +610,11 @@ declare const aiEndpoints: {
1267
610
  success: true;
1268
611
  data: {
1269
612
  data: {
1270
- [x: string]: unknown;
1271
613
  id: string;
1272
- name?: string | undefined;
614
+ provider: string;
615
+ displayName: string;
616
+ tags: string[];
1273
617
  familyId?: string | undefined;
1274
- providerId?: string | undefined;
1275
- tags?: string[] | undefined;
1276
618
  capabilities?: {
1277
619
  common?: {
1278
620
  maxContextK?: number | undefined;
@@ -1306,1933 +648,250 @@ declare const aiEndpoints: {
1306
648
  supportsAudio?: boolean | undefined;
1307
649
  } | undefined;
1308
650
  } | undefined;
1309
- creditsPerCall?: number | undefined;
1310
651
  }[];
1311
652
  updatedAt?: string | undefined;
1312
653
  };
1313
654
  }>;
1314
- readonly videoModels: Endpoint<void, {
655
+ readonly modelsUpdatedAt: Endpoint<void, {
1315
656
  success: false;
1316
657
  message: string;
1317
658
  code?: string | undefined;
1318
659
  } | {
1319
660
  success: true;
1320
661
  data: {
1321
- data: {
1322
- [x: string]: unknown;
1323
- id: string;
1324
- name?: string | undefined;
1325
- familyId?: string | undefined;
1326
- providerId?: string | undefined;
1327
- tags?: string[] | undefined;
1328
- capabilities?: {
1329
- common?: {
1330
- maxContextK?: number | undefined;
1331
- supportsStructuredOutput?: boolean | undefined;
1332
- supportsWebSearch?: boolean | undefined;
1333
- } | undefined;
1334
- params?: {
1335
- features?: string[] | undefined;
1336
- fields?: {
1337
- key: string;
1338
- title: string;
1339
- type: "number" | "boolean" | "text" | "select";
1340
- request: boolean;
1341
- description?: string | undefined;
1342
- unit?: string | undefined;
1343
- values?: (string | number | boolean)[] | undefined;
1344
- min?: number | undefined;
1345
- max?: number | undefined;
1346
- step?: number | undefined;
1347
- default?: string | number | boolean | undefined;
1348
- }[] | undefined;
1349
- } | undefined;
1350
- input?: {
1351
- maxImages?: number | undefined;
1352
- supportsMask?: boolean | undefined;
1353
- supportsReferenceVideo?: boolean | undefined;
1354
- supportsStartEnd?: boolean | undefined;
1355
- } | undefined;
1356
- output?: {
1357
- supportsMulti?: boolean | undefined;
1358
- supportsAudio?: boolean | undefined;
1359
- } | undefined;
1360
- } | undefined;
1361
- creditsPerCall?: number | undefined;
1362
- }[];
1363
- updatedAt?: string | undefined;
662
+ chatUpdatedAt: string;
663
+ imageUpdatedAt: string;
664
+ videoUpdatedAt: string;
665
+ latestUpdatedAt: string;
666
+ audioUpdatedAt?: string | undefined;
1364
667
  };
1365
668
  }>;
1366
- readonly audioModels: Endpoint<void, {
669
+ readonly providerTemplates: Endpoint<void, {
1367
670
  success: false;
1368
671
  message: string;
1369
672
  code?: string | undefined;
1370
673
  } | {
1371
674
  success: true;
1372
675
  data: {
1373
- data: {
1374
- [x: string]: unknown;
676
+ providers: {
1375
677
  id: string;
1376
- name?: string | undefined;
1377
- familyId?: string | undefined;
1378
- providerId?: string | undefined;
1379
- tags?: string[] | undefined;
1380
- capabilities?: {
1381
- common?: {
1382
- maxContextK?: number | undefined;
1383
- supportsStructuredOutput?: boolean | undefined;
1384
- supportsWebSearch?: boolean | undefined;
678
+ label: string;
679
+ adapter: string;
680
+ models: {
681
+ id: string;
682
+ providerId: string;
683
+ tags: string[];
684
+ displayName?: string | null | undefined;
685
+ description?: string | null | undefined;
686
+ familyId?: string | undefined;
687
+ capabilities?: {
688
+ common?: {
689
+ maxContextK?: number | undefined;
690
+ supportsStructuredOutput?: boolean | undefined;
691
+ supportsWebSearch?: boolean | undefined;
692
+ } | undefined;
693
+ params?: {
694
+ features?: string[] | undefined;
695
+ fields?: {
696
+ key: string;
697
+ title: string;
698
+ type: "number" | "boolean" | "text" | "select";
699
+ request: boolean;
700
+ description?: string | undefined;
701
+ unit?: string | undefined;
702
+ values?: (string | number | boolean)[] | undefined;
703
+ min?: number | undefined;
704
+ max?: number | undefined;
705
+ step?: number | undefined;
706
+ default?: string | number | boolean | undefined;
707
+ }[] | undefined;
708
+ } | undefined;
709
+ input?: {
710
+ maxImages?: number | undefined;
711
+ supportsMask?: boolean | undefined;
712
+ supportsReferenceVideo?: boolean | undefined;
713
+ supportsStartEnd?: boolean | undefined;
714
+ } | undefined;
715
+ output?: {
716
+ supportsMulti?: boolean | undefined;
717
+ supportsAudio?: boolean | undefined;
718
+ } | undefined;
1385
719
  } | undefined;
1386
- params?: {
1387
- features?: string[] | undefined;
1388
- fields?: {
1389
- key: string;
1390
- title: string;
1391
- type: "number" | "boolean" | "text" | "select";
1392
- request: boolean;
1393
- description?: string | undefined;
1394
- unit?: string | undefined;
1395
- values?: (string | number | boolean)[] | undefined;
1396
- min?: number | undefined;
1397
- max?: number | undefined;
1398
- step?: number | undefined;
1399
- default?: string | number | boolean | undefined;
1400
- }[] | undefined;
1401
- } | undefined;
1402
- input?: {
1403
- maxImages?: number | undefined;
1404
- supportsMask?: boolean | undefined;
1405
- supportsReferenceVideo?: boolean | undefined;
1406
- supportsStartEnd?: boolean | undefined;
1407
- } | undefined;
1408
- output?: {
1409
- supportsMulti?: boolean | undefined;
1410
- supportsAudio?: boolean | undefined;
1411
- } | undefined;
1412
- } | undefined;
1413
- creditsPerCall?: number | undefined;
720
+ }[];
721
+ apiUrl?: string | undefined;
722
+ authType?: string | undefined;
723
+ websiteUrl?: string | null | undefined;
724
+ docUrl?: string | null | undefined;
1414
725
  }[];
1415
726
  updatedAt?: string | undefined;
1416
727
  };
1417
728
  }>;
1418
- readonly chatModels: Endpoint<void, {
1419
- success: false;
1420
- message: string;
1421
- code?: string | undefined;
1422
- } | {
729
+ /** Get image capabilities (features + variants). */
730
+ readonly v3ImageCapabilities: Endpoint<void, {
1423
731
  success: true;
1424
732
  data: {
1425
- data: {
733
+ category: string;
734
+ features: {
1426
735
  id: string;
1427
- provider: string;
1428
- displayName: string;
1429
- tags: string[];
1430
- familyId?: string | undefined;
1431
- capabilities?: {
1432
- common?: {
1433
- maxContextK?: number | undefined;
1434
- supportsStructuredOutput?: boolean | undefined;
1435
- supportsWebSearch?: boolean | undefined;
1436
- } | undefined;
1437
- params?: {
1438
- features?: string[] | undefined;
1439
- fields?: {
1440
- key: string;
1441
- title: string;
1442
- type: "number" | "boolean" | "text" | "select";
1443
- request: boolean;
1444
- description?: string | undefined;
1445
- unit?: string | undefined;
1446
- values?: (string | number | boolean)[] | undefined;
1447
- min?: number | undefined;
1448
- max?: number | undefined;
1449
- step?: number | undefined;
1450
- default?: string | number | boolean | undefined;
1451
- }[] | undefined;
1452
- } | undefined;
1453
- input?: {
1454
- maxImages?: number | undefined;
1455
- supportsMask?: boolean | undefined;
1456
- supportsReferenceVideo?: boolean | undefined;
1457
- supportsStartEnd?: boolean | undefined;
1458
- } | undefined;
1459
- output?: {
1460
- supportsMulti?: boolean | undefined;
1461
- supportsAudio?: boolean | undefined;
1462
- } | undefined;
1463
- } | undefined;
736
+ variants: {
737
+ id: string;
738
+ preference: string;
739
+ creditsPerCall: number;
740
+ billingType: string;
741
+ minMembershipLevel: string;
742
+ }[];
1464
743
  }[];
1465
744
  updatedAt?: string | undefined;
1466
745
  };
1467
746
  }>;
1468
- readonly modelsUpdatedAt: Endpoint<void, {
1469
- success: false;
1470
- message: string;
1471
- code?: string | undefined;
1472
- } | {
747
+ /** Get video capabilities (features + variants). */
748
+ readonly v3VideoCapabilities: Endpoint<void, {
1473
749
  success: true;
1474
750
  data: {
1475
- chatUpdatedAt: string;
1476
- imageUpdatedAt: string;
1477
- videoUpdatedAt: string;
1478
- latestUpdatedAt: string;
1479
- audioUpdatedAt?: string | undefined;
751
+ category: string;
752
+ features: {
753
+ id: string;
754
+ variants: {
755
+ id: string;
756
+ preference: string;
757
+ creditsPerCall: number;
758
+ billingType: string;
759
+ minMembershipLevel: string;
760
+ }[];
761
+ }[];
762
+ updatedAt?: string | undefined;
1480
763
  };
1481
764
  }>;
1482
- readonly providerTemplates: Endpoint<void, {
1483
- success: false;
1484
- message: string;
1485
- code?: string | undefined;
1486
- } | {
765
+ /** Get audio capabilities (features + variants). */
766
+ readonly v3AudioCapabilities: Endpoint<void, {
1487
767
  success: true;
1488
768
  data: {
1489
- providers: {
769
+ category: string;
770
+ features: {
1490
771
  id: string;
1491
- label: string;
1492
- adapter: string;
1493
- models: {
772
+ variants: {
1494
773
  id: string;
1495
- providerId: string;
1496
- tags: string[];
1497
- displayName?: string | null | undefined;
1498
- description?: string | null | undefined;
1499
- familyId?: string | undefined;
1500
- capabilities?: {
1501
- common?: {
1502
- maxContextK?: number | undefined;
1503
- supportsStructuredOutput?: boolean | undefined;
1504
- supportsWebSearch?: boolean | undefined;
1505
- } | undefined;
1506
- params?: {
1507
- features?: string[] | undefined;
1508
- fields?: {
1509
- key: string;
1510
- title: string;
1511
- type: "number" | "boolean" | "text" | "select";
1512
- request: boolean;
1513
- description?: string | undefined;
1514
- unit?: string | undefined;
1515
- values?: (string | number | boolean)[] | undefined;
1516
- min?: number | undefined;
1517
- max?: number | undefined;
1518
- step?: number | undefined;
1519
- default?: string | number | boolean | undefined;
1520
- }[] | undefined;
1521
- } | undefined;
1522
- input?: {
1523
- maxImages?: number | undefined;
1524
- supportsMask?: boolean | undefined;
1525
- supportsReferenceVideo?: boolean | undefined;
1526
- supportsStartEnd?: boolean | undefined;
1527
- } | undefined;
1528
- output?: {
1529
- supportsMulti?: boolean | undefined;
1530
- supportsAudio?: boolean | undefined;
1531
- } | undefined;
1532
- } | undefined;
774
+ preference: string;
775
+ creditsPerCall: number;
776
+ billingType: string;
777
+ minMembershipLevel: string;
1533
778
  }[];
1534
- apiUrl?: string | undefined;
1535
- authType?: string | undefined;
1536
- websiteUrl?: string | null | undefined;
1537
- docUrl?: string | null | undefined;
1538
779
  }[];
1539
780
  updatedAt?: string | undefined;
1540
781
  };
1541
782
  }>;
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;
783
+ /** Submit a v3 generate request. */
784
+ readonly v3Generate: Endpoint<{
785
+ feature: string;
786
+ variant: string;
787
+ inputs?: Record<string, unknown> | undefined;
788
+ params?: Record<string, unknown> | undefined;
1793
789
  count?: 2 | 1 | 4 | undefined;
1794
- quality?: "standard" | "hd" | "draft" | undefined;
1795
790
  seed?: number | undefined;
1796
- style?: string | undefined;
1797
- negativePrompt?: string | undefined;
1798
- parameters?: Record<string, unknown> | undefined;
1799
791
  }, {
1800
- success: false;
1801
- message: string;
1802
- code?: string | undefined;
1803
- } | {
1804
792
  success: true;
1805
793
  data: {
1806
794
  taskId: string;
795
+ } | {
796
+ groupId: string;
797
+ taskIds: string[];
1807
798
  };
1808
799
  }>;
1809
- readonly mediaTask: (taskId: string) => Endpoint<void, {
1810
- success: false;
1811
- message: string;
1812
- code?: string | undefined;
1813
- } | {
800
+ /** Get v3 task status by ID. */
801
+ readonly v3Task: (taskId: string) => Endpoint<void, {
1814
802
  success: true;
1815
803
  data: {
804
+ taskId: string;
1816
805
  status: "queued" | "running" | "succeeded" | "failed" | "canceled";
1817
- progress?: number | undefined;
1818
- resultType?: "image" | "video" | "audio" | undefined;
1819
806
  resultUrls?: string[] | undefined;
807
+ resultText?: string | undefined;
808
+ creditsConsumed?: number | undefined;
1820
809
  error?: {
1821
810
  message: string;
1822
811
  code?: string | undefined;
1823
812
  } | 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
813
  };
1857
814
  }>;
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>;
2911
-
2912
- /** Optional client metadata shared by OpenAI-compatible chat requests. */
2913
- declare const aiClientMetadataSchema: z.ZodObject<{
2914
- chatSessionId: z.ZodOptional<z.ZodString>;
2915
- clientId: z.ZodOptional<z.ZodString>;
2916
- desktopVersion: z.ZodOptional<z.ZodString>;
2917
- serverVersion: z.ZodOptional<z.ZodString>;
2918
- webVersion: z.ZodOptional<z.ZodString>;
2919
- }, z.core.$strip>;
2920
- /** @deprecated Use aiClientMetadataSchema instead. */
2921
- declare const aiChatSessionMetadataSchema: z.ZodObject<{
2922
- chatSessionId: z.ZodOptional<z.ZodString>;
2923
- clientId: z.ZodOptional<z.ZodString>;
2924
- desktopVersion: z.ZodOptional<z.ZodString>;
2925
- serverVersion: z.ZodOptional<z.ZodString>;
2926
- webVersion: z.ZodOptional<z.ZodString>;
2927
- }, z.core.$strip>;
2928
- /** OpenAI-compatible chat/completions request with optional session metadata. */
2929
- declare const aiChatCompletionsRequestSchema: z.ZodObject<{
2930
- chatSessionId: z.ZodOptional<z.ZodString>;
2931
- clientId: z.ZodOptional<z.ZodString>;
2932
- desktopVersion: z.ZodOptional<z.ZodString>;
2933
- serverVersion: z.ZodOptional<z.ZodString>;
2934
- webVersion: z.ZodOptional<z.ZodString>;
2935
- model: z.ZodString;
2936
- }, z.core.$loose>;
2937
- /** OpenAI-compatible responses request with optional session metadata. */
2938
- declare const aiResponsesRequestSchema: z.ZodObject<{
2939
- chatSessionId: z.ZodOptional<z.ZodString>;
2940
- clientId: z.ZodOptional<z.ZodString>;
2941
- desktopVersion: z.ZodOptional<z.ZodString>;
2942
- serverVersion: z.ZodOptional<z.ZodString>;
2943
- webVersion: z.ZodOptional<z.ZodString>;
2944
- model: z.ZodString;
2945
- }, z.core.$loose>;
2946
- declare const aiMediaInputSchema: z.ZodObject<{
2947
- url: z.ZodOptional<z.ZodString>;
2948
- base64: z.ZodOptional<z.ZodString>;
2949
- mediaType: z.ZodOptional<z.ZodString>;
2950
- }, z.core.$strip>;
2951
- declare const aiImageInputsSchema: z.ZodObject<{
2952
- images: z.ZodOptional<z.ZodArray<z.ZodObject<{
2953
- url: z.ZodOptional<z.ZodString>;
2954
- base64: z.ZodOptional<z.ZodString>;
2955
- mediaType: z.ZodOptional<z.ZodString>;
2956
- }, z.core.$strip>>>;
2957
- mask: z.ZodOptional<z.ZodObject<{
2958
- url: z.ZodOptional<z.ZodString>;
2959
- base64: z.ZodOptional<z.ZodString>;
2960
- mediaType: z.ZodOptional<z.ZodString>;
2961
- }, z.core.$strip>>;
2962
- }, z.core.$strip>;
2963
- declare const aiVideoInputsSchema: z.ZodObject<{
2964
- images: z.ZodOptional<z.ZodArray<z.ZodObject<{
2965
- url: z.ZodOptional<z.ZodString>;
2966
- base64: z.ZodOptional<z.ZodString>;
2967
- mediaType: z.ZodOptional<z.ZodString>;
2968
- }, z.core.$strip>>>;
2969
- startImage: z.ZodOptional<z.ZodObject<{
2970
- url: z.ZodOptional<z.ZodString>;
2971
- base64: z.ZodOptional<z.ZodString>;
2972
- mediaType: z.ZodOptional<z.ZodString>;
2973
- }, z.core.$strip>>;
2974
- endImage: z.ZodOptional<z.ZodObject<{
2975
- url: z.ZodOptional<z.ZodString>;
2976
- base64: z.ZodOptional<z.ZodString>;
2977
- mediaType: z.ZodOptional<z.ZodString>;
2978
- }, z.core.$strip>>;
2979
- referenceVideo: z.ZodOptional<z.ZodObject<{
2980
- url: z.ZodOptional<z.ZodString>;
2981
- base64: z.ZodOptional<z.ZodString>;
2982
- mediaType: z.ZodOptional<z.ZodString>;
2983
- }, z.core.$strip>>;
2984
- }, z.core.$strip>;
2985
- declare const aiImageOutputSchema: z.ZodObject<{
2986
- count: z.ZodOptional<z.ZodNumber>;
2987
- aspectRatio: z.ZodOptional<z.ZodEnum<{
2988
- "1:1": "1:1";
2989
- "16:9": "16:9";
2990
- "9:16": "9:16";
2991
- "4:3": "4:3";
2992
- }>>;
2993
- quality: z.ZodOptional<z.ZodEnum<{
2994
- standard: "standard";
2995
- hd: "hd";
2996
- }>>;
2997
- }, z.core.$strip>;
2998
- declare const aiVideoOutputSchema: z.ZodObject<{
2999
- aspectRatio: z.ZodOptional<z.ZodString>;
3000
- duration: z.ZodOptional<z.ZodNumber>;
3001
- clarity: z.ZodOptional<z.ZodString>;
3002
- withAudio: z.ZodOptional<z.ZodBoolean>;
3003
- }, z.core.$strip>;
3004
- declare const aiAudioOutputSchema: z.ZodObject<{
3005
- format: z.ZodOptional<z.ZodEnum<{
3006
- mp3: "mp3";
3007
- wav: "wav";
3008
- pcm: "pcm";
3009
- opus: "opus";
3010
- }>>;
3011
- sampleRate: z.ZodOptional<z.ZodNumber>;
3012
- }, z.core.$strip>;
3013
- declare const aiAudioRequestSchema: z.ZodObject<{
3014
- modelId: z.ZodString;
3015
- text: z.ZodString;
3016
- voice: z.ZodOptional<z.ZodString>;
3017
- output: z.ZodOptional<z.ZodObject<{
3018
- format: z.ZodOptional<z.ZodEnum<{
3019
- mp3: "mp3";
3020
- wav: "wav";
3021
- pcm: "pcm";
3022
- opus: "opus";
3023
- }>>;
3024
- sampleRate: z.ZodOptional<z.ZodNumber>;
3025
- }, z.core.$strip>>;
3026
- parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3027
- }, z.core.$strip>;
3028
- declare const aiImageRequestSchema: z.ZodObject<{
3029
- modelId: z.ZodString;
3030
- prompt: z.ZodString;
3031
- negativePrompt: z.ZodOptional<z.ZodString>;
3032
- style: z.ZodOptional<z.ZodString>;
3033
- inputs: z.ZodOptional<z.ZodObject<{
3034
- images: z.ZodOptional<z.ZodArray<z.ZodObject<{
3035
- url: z.ZodOptional<z.ZodString>;
3036
- base64: z.ZodOptional<z.ZodString>;
3037
- mediaType: z.ZodOptional<z.ZodString>;
3038
- }, z.core.$strip>>>;
3039
- mask: z.ZodOptional<z.ZodObject<{
3040
- url: z.ZodOptional<z.ZodString>;
3041
- base64: z.ZodOptional<z.ZodString>;
3042
- mediaType: z.ZodOptional<z.ZodString>;
3043
- }, z.core.$strip>>;
3044
- }, z.core.$strip>>;
3045
- output: z.ZodOptional<z.ZodObject<{
3046
- count: z.ZodOptional<z.ZodNumber>;
3047
- aspectRatio: z.ZodOptional<z.ZodEnum<{
3048
- "1:1": "1:1";
3049
- "16:9": "16:9";
3050
- "9:16": "9:16";
3051
- "4:3": "4:3";
3052
- }>>;
3053
- quality: z.ZodOptional<z.ZodEnum<{
3054
- standard: "standard";
3055
- hd: "hd";
3056
- }>>;
3057
- }, z.core.$strip>>;
3058
- parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3059
- }, z.core.$strip>;
3060
- declare const aiVideoRequestSchema: z.ZodObject<{
3061
- modelId: z.ZodString;
3062
- prompt: z.ZodString;
3063
- negativePrompt: z.ZodOptional<z.ZodString>;
3064
- style: z.ZodOptional<z.ZodString>;
3065
- inputs: z.ZodOptional<z.ZodObject<{
3066
- images: z.ZodOptional<z.ZodArray<z.ZodObject<{
3067
- url: z.ZodOptional<z.ZodString>;
3068
- base64: z.ZodOptional<z.ZodString>;
3069
- mediaType: z.ZodOptional<z.ZodString>;
3070
- }, z.core.$strip>>>;
3071
- startImage: z.ZodOptional<z.ZodObject<{
3072
- url: z.ZodOptional<z.ZodString>;
3073
- base64: z.ZodOptional<z.ZodString>;
3074
- mediaType: z.ZodOptional<z.ZodString>;
3075
- }, z.core.$strip>>;
3076
- endImage: z.ZodOptional<z.ZodObject<{
3077
- url: z.ZodOptional<z.ZodString>;
3078
- base64: z.ZodOptional<z.ZodString>;
3079
- mediaType: z.ZodOptional<z.ZodString>;
3080
- }, z.core.$strip>>;
3081
- referenceVideo: z.ZodOptional<z.ZodObject<{
3082
- url: z.ZodOptional<z.ZodString>;
3083
- base64: z.ZodOptional<z.ZodString>;
3084
- mediaType: z.ZodOptional<z.ZodString>;
3085
- }, z.core.$strip>>;
3086
- }, z.core.$strip>>;
3087
- output: z.ZodOptional<z.ZodObject<{
3088
- aspectRatio: z.ZodOptional<z.ZodString>;
3089
- duration: z.ZodOptional<z.ZodNumber>;
3090
- clarity: z.ZodOptional<z.ZodString>;
3091
- withAudio: z.ZodOptional<z.ZodBoolean>;
3092
- }, z.core.$strip>>;
3093
- parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3094
- }, z.core.$strip>;
3095
- declare const aiTaskCreatedDataSchema: z.ZodObject<{
3096
- taskId: z.ZodString;
3097
- }, z.core.$strip>;
3098
- declare const aiErrorResponseSchema: z.ZodObject<{
3099
- success: z.ZodLiteral<false>;
3100
- code: z.ZodOptional<z.ZodString>;
3101
- message: z.ZodString;
3102
- }, z.core.$strip>;
3103
- declare const aiTaskCreatedSuccessSchema: z.ZodObject<{
3104
- success: z.ZodLiteral<true>;
3105
- data: z.ZodObject<{
3106
- taskId: z.ZodString;
3107
- }, z.core.$strip>;
3108
- }, z.core.$strip>;
3109
- declare const aiTaskCreatedResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
3110
- success: z.ZodLiteral<true>;
3111
- data: z.ZodObject<{
3112
- taskId: z.ZodString;
3113
- }, z.core.$strip>;
3114
- }, z.core.$strip>, z.ZodObject<{
3115
- success: z.ZodLiteral<false>;
3116
- code: z.ZodOptional<z.ZodString>;
3117
- message: z.ZodString;
3118
- }, z.core.$strip>]>;
3119
- declare const aiTaskStatusSchema: z.ZodEnum<{
3120
- queued: "queued";
3121
- running: "running";
3122
- succeeded: "succeeded";
3123
- failed: "failed";
3124
- canceled: "canceled";
3125
- }>;
3126
- declare const aiTaskResultTypeSchema: z.ZodEnum<{
3127
- image: "image";
3128
- video: "video";
3129
- audio: "audio";
3130
- }>;
3131
- declare const aiTaskErrorSchema: z.ZodObject<{
3132
- code: z.ZodOptional<z.ZodString>;
3133
- message: z.ZodString;
3134
- }, z.core.$strip>;
3135
- declare const aiTaskDataSchema: z.ZodObject<{
3136
- status: z.ZodEnum<{
3137
- queued: "queued";
3138
- running: "running";
3139
- succeeded: "succeeded";
3140
- failed: "failed";
3141
- canceled: "canceled";
3142
- }>;
3143
- progress: z.ZodOptional<z.ZodNumber>;
3144
- resultType: z.ZodOptional<z.ZodEnum<{
3145
- image: "image";
3146
- video: "video";
3147
- audio: "audio";
3148
- }>>;
3149
- resultUrls: z.ZodOptional<z.ZodArray<z.ZodString>>;
3150
- error: z.ZodOptional<z.ZodObject<{
3151
- code: z.ZodOptional<z.ZodString>;
3152
- message: z.ZodString;
3153
- }, z.core.$strip>>;
3154
- creditsConsumed: z.ZodOptional<z.ZodNumber>;
3155
- }, z.core.$strip>;
3156
- declare const aiTaskSuccessSchema: z.ZodObject<{
3157
- success: z.ZodLiteral<true>;
3158
- data: z.ZodObject<{
3159
- status: z.ZodEnum<{
3160
- queued: "queued";
3161
- running: "running";
3162
- succeeded: "succeeded";
3163
- failed: "failed";
3164
- canceled: "canceled";
3165
- }>;
3166
- progress: z.ZodOptional<z.ZodNumber>;
3167
- resultType: z.ZodOptional<z.ZodEnum<{
3168
- image: "image";
3169
- video: "video";
3170
- audio: "audio";
3171
- }>>;
3172
- resultUrls: z.ZodOptional<z.ZodArray<z.ZodString>>;
3173
- error: z.ZodOptional<z.ZodObject<{
3174
- code: z.ZodOptional<z.ZodString>;
3175
- message: z.ZodString;
3176
- }, z.core.$strip>>;
3177
- creditsConsumed: z.ZodOptional<z.ZodNumber>;
3178
- }, z.core.$strip>;
3179
- }, z.core.$strip>;
3180
- declare const aiTaskResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
3181
- success: z.ZodLiteral<true>;
3182
- data: z.ZodObject<{
3183
- status: z.ZodEnum<{
3184
- queued: "queued";
3185
- running: "running";
3186
- succeeded: "succeeded";
3187
- failed: "failed";
3188
- canceled: "canceled";
3189
- }>;
3190
- progress: z.ZodOptional<z.ZodNumber>;
3191
- resultType: z.ZodOptional<z.ZodEnum<{
3192
- image: "image";
3193
- video: "video";
3194
- audio: "audio";
3195
- }>>;
3196
- resultUrls: z.ZodOptional<z.ZodArray<z.ZodString>>;
3197
- error: z.ZodOptional<z.ZodObject<{
3198
- code: z.ZodOptional<z.ZodString>;
3199
- message: z.ZodString;
3200
- }, z.core.$strip>>;
3201
- creditsConsumed: z.ZodOptional<z.ZodNumber>;
3202
- }, z.core.$strip>;
3203
- }, z.core.$strip>, z.ZodObject<{
3204
- success: z.ZodLiteral<false>;
3205
- code: z.ZodOptional<z.ZodString>;
3206
- message: z.ZodString;
3207
- }, z.core.$strip>]>;
3208
- declare const aiTaskCancelDataSchema: z.ZodObject<{
3209
- status: z.ZodEnum<{
3210
- canceled: "canceled";
3211
- processing: "processing";
3212
- }>;
815
+ /** Cancel a v3 task by ID. */
816
+ readonly v3CancelTask: (taskId: string) => Endpoint<void, {
817
+ success: true;
818
+ message?: string | undefined;
819
+ }>;
820
+ /** Get v3 task group status by group ID. */
821
+ readonly v3TaskGroup: (groupId: string) => Endpoint<void, {
822
+ success: true;
823
+ data: {
824
+ groupId: string;
825
+ status: "running" | "succeeded" | "failed" | "partial";
826
+ tasks: {
827
+ taskId: string;
828
+ status: "queued" | "running" | "succeeded" | "failed" | "canceled";
829
+ resultUrls?: string[] | undefined;
830
+ resultText?: string | undefined;
831
+ creditsConsumed?: number | undefined;
832
+ error?: {
833
+ message: string;
834
+ code?: string | undefined;
835
+ } | undefined;
836
+ }[];
837
+ totalCreditsConsumed?: number | undefined;
838
+ };
839
+ }>;
840
+ /** Estimate credits for a v3 generate request. */
841
+ readonly v3EstimatePrice: Endpoint<{
842
+ variant: string;
843
+ params?: Record<string, unknown> | undefined;
844
+ }, {
845
+ success: true;
846
+ data: {
847
+ baseCredits: number;
848
+ markup: number;
849
+ totalCredits: number;
850
+ billingType: string;
851
+ factors: Record<string, number>;
852
+ };
853
+ }>;
854
+ };
855
+
856
+ /** Optional client metadata shared by OpenAI-compatible chat requests. */
857
+ declare const aiClientMetadataSchema: z.ZodObject<{
858
+ chatSessionId: z.ZodOptional<z.ZodString>;
859
+ clientId: z.ZodOptional<z.ZodString>;
860
+ desktopVersion: z.ZodOptional<z.ZodString>;
861
+ serverVersion: z.ZodOptional<z.ZodString>;
862
+ webVersion: z.ZodOptional<z.ZodString>;
3213
863
  }, z.core.$strip>;
3214
- declare const aiTaskCancelSuccessSchema: z.ZodObject<{
3215
- success: z.ZodLiteral<true>;
3216
- data: z.ZodObject<{
3217
- status: z.ZodEnum<{
3218
- canceled: "canceled";
3219
- processing: "processing";
3220
- }>;
3221
- }, z.core.$strip>;
864
+ /** @deprecated Use aiClientMetadataSchema instead. */
865
+ declare const aiChatSessionMetadataSchema: z.ZodObject<{
866
+ chatSessionId: z.ZodOptional<z.ZodString>;
867
+ clientId: z.ZodOptional<z.ZodString>;
868
+ desktopVersion: z.ZodOptional<z.ZodString>;
869
+ serverVersion: z.ZodOptional<z.ZodString>;
870
+ webVersion: z.ZodOptional<z.ZodString>;
3222
871
  }, z.core.$strip>;
3223
- declare const aiTaskCancelResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
3224
- success: z.ZodLiteral<true>;
3225
- data: z.ZodObject<{
3226
- status: z.ZodEnum<{
3227
- canceled: "canceled";
3228
- processing: "processing";
3229
- }>;
3230
- }, z.core.$strip>;
3231
- }, z.core.$strip>, z.ZodObject<{
872
+ /** OpenAI-compatible chat/completions request with optional session metadata. */
873
+ declare const aiChatCompletionsRequestSchema: z.ZodObject<{
874
+ chatSessionId: z.ZodOptional<z.ZodString>;
875
+ clientId: z.ZodOptional<z.ZodString>;
876
+ desktopVersion: z.ZodOptional<z.ZodString>;
877
+ serverVersion: z.ZodOptional<z.ZodString>;
878
+ webVersion: z.ZodOptional<z.ZodString>;
879
+ model: z.ZodString;
880
+ }, z.core.$loose>;
881
+ /** OpenAI-compatible responses request with optional session metadata. */
882
+ declare const aiResponsesRequestSchema: z.ZodObject<{
883
+ chatSessionId: z.ZodOptional<z.ZodString>;
884
+ clientId: z.ZodOptional<z.ZodString>;
885
+ desktopVersion: z.ZodOptional<z.ZodString>;
886
+ serverVersion: z.ZodOptional<z.ZodString>;
887
+ webVersion: z.ZodOptional<z.ZodString>;
888
+ model: z.ZodString;
889
+ }, z.core.$loose>;
890
+ declare const aiErrorResponseSchema: z.ZodObject<{
3232
891
  success: z.ZodLiteral<false>;
3233
892
  code: z.ZodOptional<z.ZodString>;
3234
893
  message: z.ZodString;
3235
- }, z.core.$strip>]>;
894
+ }, z.core.$strip>;
3236
895
  declare const aiModelCapabilitiesInputSchema: z.ZodObject<{
3237
896
  maxImages: z.ZodOptional<z.ZodNumber>;
3238
897
  supportsMask: z.ZodOptional<z.ZodBoolean>;
@@ -3328,206 +987,49 @@ declare const aiModelCapabilitiesSchema: z.ZodObject<{
3328
987
  declare const aiModelSchema: z.ZodObject<{
3329
988
  id: z.ZodString;
3330
989
  name: z.ZodOptional<z.ZodString>;
3331
- familyId: z.ZodOptional<z.ZodString>;
3332
- providerId: z.ZodOptional<z.ZodString>;
3333
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
3334
- capabilities: z.ZodOptional<z.ZodObject<{
3335
- common: z.ZodOptional<z.ZodObject<{
3336
- maxContextK: z.ZodOptional<z.ZodNumber>;
3337
- supportsStructuredOutput: z.ZodOptional<z.ZodBoolean>;
3338
- supportsWebSearch: z.ZodOptional<z.ZodBoolean>;
3339
- }, z.core.$strip>>;
3340
- params: z.ZodOptional<z.ZodObject<{
3341
- features: z.ZodOptional<z.ZodArray<z.ZodString>>;
3342
- fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
3343
- key: z.ZodString;
3344
- title: z.ZodString;
3345
- description: z.ZodOptional<z.ZodString>;
3346
- type: z.ZodEnum<{
3347
- number: "number";
3348
- boolean: "boolean";
3349
- text: "text";
3350
- select: "select";
3351
- }>;
3352
- unit: z.ZodOptional<z.ZodString>;
3353
- values: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
3354
- min: z.ZodOptional<z.ZodNumber>;
3355
- max: z.ZodOptional<z.ZodNumber>;
3356
- step: z.ZodOptional<z.ZodNumber>;
3357
- default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
3358
- request: z.ZodBoolean;
3359
- }, z.core.$strip>>>;
3360
- }, z.core.$strip>>;
3361
- input: z.ZodOptional<z.ZodObject<{
3362
- maxImages: z.ZodOptional<z.ZodNumber>;
3363
- supportsMask: z.ZodOptional<z.ZodBoolean>;
3364
- supportsReferenceVideo: z.ZodOptional<z.ZodBoolean>;
3365
- supportsStartEnd: z.ZodOptional<z.ZodBoolean>;
3366
- }, z.core.$strip>>;
3367
- output: z.ZodOptional<z.ZodObject<{
3368
- supportsMulti: z.ZodOptional<z.ZodBoolean>;
3369
- supportsAudio: z.ZodOptional<z.ZodBoolean>;
3370
- }, z.core.$strip>>;
3371
- }, z.core.$strip>>;
3372
- creditsPerCall: z.ZodOptional<z.ZodNumber>;
3373
- }, z.core.$loose>;
3374
- declare const aiModelsPayloadSchema: z.ZodObject<{
3375
- data: z.ZodArray<z.ZodObject<{
3376
- id: z.ZodString;
3377
- name: z.ZodOptional<z.ZodString>;
3378
- familyId: z.ZodOptional<z.ZodString>;
3379
- providerId: z.ZodOptional<z.ZodString>;
3380
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
3381
- capabilities: z.ZodOptional<z.ZodObject<{
3382
- common: z.ZodOptional<z.ZodObject<{
3383
- maxContextK: z.ZodOptional<z.ZodNumber>;
3384
- supportsStructuredOutput: z.ZodOptional<z.ZodBoolean>;
3385
- supportsWebSearch: z.ZodOptional<z.ZodBoolean>;
3386
- }, z.core.$strip>>;
3387
- params: z.ZodOptional<z.ZodObject<{
3388
- features: z.ZodOptional<z.ZodArray<z.ZodString>>;
3389
- fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
3390
- key: z.ZodString;
3391
- title: z.ZodString;
3392
- description: z.ZodOptional<z.ZodString>;
3393
- type: z.ZodEnum<{
3394
- number: "number";
3395
- boolean: "boolean";
3396
- text: "text";
3397
- select: "select";
3398
- }>;
3399
- unit: z.ZodOptional<z.ZodString>;
3400
- values: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
3401
- min: z.ZodOptional<z.ZodNumber>;
3402
- max: z.ZodOptional<z.ZodNumber>;
3403
- step: z.ZodOptional<z.ZodNumber>;
3404
- default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
3405
- request: z.ZodBoolean;
3406
- }, z.core.$strip>>>;
3407
- }, z.core.$strip>>;
3408
- input: z.ZodOptional<z.ZodObject<{
3409
- maxImages: z.ZodOptional<z.ZodNumber>;
3410
- supportsMask: z.ZodOptional<z.ZodBoolean>;
3411
- supportsReferenceVideo: z.ZodOptional<z.ZodBoolean>;
3412
- supportsStartEnd: z.ZodOptional<z.ZodBoolean>;
3413
- }, z.core.$strip>>;
3414
- output: z.ZodOptional<z.ZodObject<{
3415
- supportsMulti: z.ZodOptional<z.ZodBoolean>;
3416
- supportsAudio: z.ZodOptional<z.ZodBoolean>;
3417
- }, z.core.$strip>>;
3418
- }, z.core.$strip>>;
3419
- creditsPerCall: z.ZodOptional<z.ZodNumber>;
3420
- }, z.core.$loose>>;
3421
- updatedAt: z.ZodOptional<z.ZodString>;
3422
- }, z.core.$strip>;
3423
- declare const aiModelsSuccessSchema: z.ZodObject<{
3424
- success: z.ZodLiteral<true>;
3425
- data: z.ZodObject<{
3426
- data: z.ZodArray<z.ZodObject<{
3427
- id: z.ZodString;
3428
- name: z.ZodOptional<z.ZodString>;
3429
- familyId: z.ZodOptional<z.ZodString>;
3430
- providerId: z.ZodOptional<z.ZodString>;
3431
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
3432
- capabilities: z.ZodOptional<z.ZodObject<{
3433
- common: z.ZodOptional<z.ZodObject<{
3434
- maxContextK: z.ZodOptional<z.ZodNumber>;
3435
- supportsStructuredOutput: z.ZodOptional<z.ZodBoolean>;
3436
- supportsWebSearch: z.ZodOptional<z.ZodBoolean>;
3437
- }, z.core.$strip>>;
3438
- params: z.ZodOptional<z.ZodObject<{
3439
- features: z.ZodOptional<z.ZodArray<z.ZodString>>;
3440
- fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
3441
- key: z.ZodString;
3442
- title: z.ZodString;
3443
- description: z.ZodOptional<z.ZodString>;
3444
- type: z.ZodEnum<{
3445
- number: "number";
3446
- boolean: "boolean";
3447
- text: "text";
3448
- select: "select";
3449
- }>;
3450
- unit: z.ZodOptional<z.ZodString>;
3451
- values: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
3452
- min: z.ZodOptional<z.ZodNumber>;
3453
- max: z.ZodOptional<z.ZodNumber>;
3454
- step: z.ZodOptional<z.ZodNumber>;
3455
- default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
3456
- request: z.ZodBoolean;
3457
- }, z.core.$strip>>>;
3458
- }, z.core.$strip>>;
3459
- input: z.ZodOptional<z.ZodObject<{
3460
- maxImages: z.ZodOptional<z.ZodNumber>;
3461
- supportsMask: z.ZodOptional<z.ZodBoolean>;
3462
- supportsReferenceVideo: z.ZodOptional<z.ZodBoolean>;
3463
- supportsStartEnd: z.ZodOptional<z.ZodBoolean>;
3464
- }, z.core.$strip>>;
3465
- output: z.ZodOptional<z.ZodObject<{
3466
- supportsMulti: z.ZodOptional<z.ZodBoolean>;
3467
- supportsAudio: z.ZodOptional<z.ZodBoolean>;
3468
- }, z.core.$strip>>;
3469
- }, z.core.$strip>>;
3470
- creditsPerCall: z.ZodOptional<z.ZodNumber>;
3471
- }, z.core.$loose>>;
3472
- updatedAt: z.ZodOptional<z.ZodString>;
3473
- }, z.core.$strip>;
3474
- }, z.core.$strip>;
3475
- declare const aiModelsResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
3476
- success: z.ZodLiteral<true>;
3477
- data: z.ZodObject<{
3478
- data: z.ZodArray<z.ZodObject<{
3479
- id: z.ZodString;
3480
- name: z.ZodOptional<z.ZodString>;
3481
- familyId: z.ZodOptional<z.ZodString>;
3482
- providerId: z.ZodOptional<z.ZodString>;
3483
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
3484
- capabilities: z.ZodOptional<z.ZodObject<{
3485
- common: z.ZodOptional<z.ZodObject<{
3486
- maxContextK: z.ZodOptional<z.ZodNumber>;
3487
- supportsStructuredOutput: z.ZodOptional<z.ZodBoolean>;
3488
- supportsWebSearch: z.ZodOptional<z.ZodBoolean>;
3489
- }, z.core.$strip>>;
3490
- params: z.ZodOptional<z.ZodObject<{
3491
- features: z.ZodOptional<z.ZodArray<z.ZodString>>;
3492
- fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
3493
- key: z.ZodString;
3494
- title: z.ZodString;
3495
- description: z.ZodOptional<z.ZodString>;
3496
- type: z.ZodEnum<{
3497
- number: "number";
3498
- boolean: "boolean";
3499
- text: "text";
3500
- select: "select";
3501
- }>;
3502
- unit: z.ZodOptional<z.ZodString>;
3503
- values: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
3504
- min: z.ZodOptional<z.ZodNumber>;
3505
- max: z.ZodOptional<z.ZodNumber>;
3506
- step: z.ZodOptional<z.ZodNumber>;
3507
- default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
3508
- request: z.ZodBoolean;
3509
- }, z.core.$strip>>>;
3510
- }, z.core.$strip>>;
3511
- input: z.ZodOptional<z.ZodObject<{
3512
- maxImages: z.ZodOptional<z.ZodNumber>;
3513
- supportsMask: z.ZodOptional<z.ZodBoolean>;
3514
- supportsReferenceVideo: z.ZodOptional<z.ZodBoolean>;
3515
- supportsStartEnd: z.ZodOptional<z.ZodBoolean>;
3516
- }, z.core.$strip>>;
3517
- output: z.ZodOptional<z.ZodObject<{
3518
- supportsMulti: z.ZodOptional<z.ZodBoolean>;
3519
- supportsAudio: z.ZodOptional<z.ZodBoolean>;
3520
- }, z.core.$strip>>;
3521
- }, z.core.$strip>>;
3522
- creditsPerCall: z.ZodOptional<z.ZodNumber>;
3523
- }, z.core.$loose>>;
3524
- updatedAt: z.ZodOptional<z.ZodString>;
3525
- }, z.core.$strip>;
3526
- }, z.core.$strip>, z.ZodObject<{
3527
- success: z.ZodLiteral<false>;
3528
- code: z.ZodOptional<z.ZodString>;
3529
- message: z.ZodString;
3530
- }, z.core.$strip>]>;
990
+ familyId: z.ZodOptional<z.ZodString>;
991
+ providerId: z.ZodOptional<z.ZodString>;
992
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
993
+ capabilities: z.ZodOptional<z.ZodObject<{
994
+ common: z.ZodOptional<z.ZodObject<{
995
+ maxContextK: z.ZodOptional<z.ZodNumber>;
996
+ supportsStructuredOutput: z.ZodOptional<z.ZodBoolean>;
997
+ supportsWebSearch: z.ZodOptional<z.ZodBoolean>;
998
+ }, z.core.$strip>>;
999
+ params: z.ZodOptional<z.ZodObject<{
1000
+ features: z.ZodOptional<z.ZodArray<z.ZodString>>;
1001
+ fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
1002
+ key: z.ZodString;
1003
+ title: z.ZodString;
1004
+ description: z.ZodOptional<z.ZodString>;
1005
+ type: z.ZodEnum<{
1006
+ number: "number";
1007
+ boolean: "boolean";
1008
+ text: "text";
1009
+ select: "select";
1010
+ }>;
1011
+ unit: z.ZodOptional<z.ZodString>;
1012
+ values: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
1013
+ min: z.ZodOptional<z.ZodNumber>;
1014
+ max: z.ZodOptional<z.ZodNumber>;
1015
+ step: z.ZodOptional<z.ZodNumber>;
1016
+ default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
1017
+ request: z.ZodBoolean;
1018
+ }, z.core.$strip>>>;
1019
+ }, z.core.$strip>>;
1020
+ input: z.ZodOptional<z.ZodObject<{
1021
+ maxImages: z.ZodOptional<z.ZodNumber>;
1022
+ supportsMask: z.ZodOptional<z.ZodBoolean>;
1023
+ supportsReferenceVideo: z.ZodOptional<z.ZodBoolean>;
1024
+ supportsStartEnd: z.ZodOptional<z.ZodBoolean>;
1025
+ }, z.core.$strip>>;
1026
+ output: z.ZodOptional<z.ZodObject<{
1027
+ supportsMulti: z.ZodOptional<z.ZodBoolean>;
1028
+ supportsAudio: z.ZodOptional<z.ZodBoolean>;
1029
+ }, z.core.$strip>>;
1030
+ }, z.core.$strip>>;
1031
+ creditsPerCall: z.ZodOptional<z.ZodNumber>;
1032
+ }, z.core.$loose>;
3531
1033
  declare const aiChatModelSchema: z.ZodObject<{
3532
1034
  id: z.ZodString;
3533
1035
  provider: z.ZodString;
@@ -3759,32 +1261,17 @@ declare const aiModelsUpdatedAtResponseSchema: z.ZodUnion<readonly [z.ZodObject<
3759
1261
  message: z.ZodString;
3760
1262
  }, z.core.$strip>]>;
3761
1263
  declare const aiModelsRequestSchema: z.ZodVoid;
3762
- declare const aiTaskRequestSchema: z.ZodVoid;
3763
- declare const aiTaskCancelRequestSchema: z.ZodVoid;
3764
- type AiMediaInput = z.infer<typeof aiMediaInputSchema>;
3765
- type AiImageInputs = z.infer<typeof aiImageInputsSchema>;
3766
- type AiVideoInputs = z.infer<typeof aiVideoInputsSchema>;
3767
- type AiImageOutput = z.infer<typeof aiImageOutputSchema>;
3768
- type AiVideoOutput = z.infer<typeof aiVideoOutputSchema>;
3769
- type AiAudioOutput = z.infer<typeof aiAudioOutputSchema>;
3770
- type AiAudioRequest = z.infer<typeof aiAudioRequestSchema>;
3771
1264
  type AiModelCapabilitiesInput = z.infer<typeof aiModelCapabilitiesInputSchema>;
3772
1265
  type AiModelCapabilitiesOutput = z.infer<typeof aiModelCapabilitiesOutputSchema>;
3773
1266
  type AiModelCapabilities = z.infer<typeof aiModelCapabilitiesSchema>;
1267
+ type AiModel = z.infer<typeof aiModelSchema>;
3774
1268
  type AiClientMetadata = z.infer<typeof aiClientMetadataSchema>;
3775
1269
  /** @deprecated Use AiClientMetadata instead. */
3776
1270
  type AiChatSessionMetadata = AiClientMetadata;
3777
1271
  type AiChatCompletionsRequest = z.infer<typeof aiChatCompletionsRequestSchema>;
3778
1272
  type AiResponsesRequest = z.infer<typeof aiResponsesRequestSchema>;
3779
- type AiImageRequest = z.infer<typeof aiImageRequestSchema>;
3780
- type AiVideoRequest = z.infer<typeof aiVideoRequestSchema>;
3781
- type AiTaskCreatedResponse = z.infer<typeof aiTaskCreatedResponseSchema>;
3782
- type AiTaskResponse = z.infer<typeof aiTaskResponseSchema>;
3783
- type AiTaskCancelResponse = z.infer<typeof aiTaskCancelResponseSchema>;
3784
- type AiModelsResponse = z.infer<typeof aiModelsResponseSchema>;
3785
1273
  type AiModelsUpdatedAtData = z.infer<typeof aiModelsUpdatedAtDataSchema>;
3786
1274
  type AiModelsUpdatedAtResponse = z.infer<typeof aiModelsUpdatedAtResponseSchema>;
3787
- type AiModel = z.infer<typeof aiModelSchema>;
3788
1275
  type AiChatModel = z.infer<typeof aiChatModelSchema>;
3789
1276
  type AiChatModelsResponse = z.infer<typeof aiChatModelsResponseSchema>;
3790
1277
  declare const aiProviderTemplateModelSchema: z.ZodObject<{
@@ -4075,249 +1562,229 @@ declare const aiProviderTemplatesResponseSchema: z.ZodUnion<readonly [z.ZodObjec
4075
1562
  declare const aiProviderTemplatesRequestSchema: z.ZodVoid;
4076
1563
  type AiProviderTemplateModel = z.infer<typeof aiProviderTemplateModelSchema>;
4077
1564
  type AiProviderTemplate = z.infer<typeof aiProviderTemplateSchema>;
4078
- type AiProviderTemplatesResponse = z.infer<typeof aiProviderTemplatesResponseSchema>;
4079
- /** Response returned after a successful AI file upload. */
4080
- type AiFileUploadResponse = {
4081
- /** Public URL of the uploaded file, ready to use in chat messages. */
4082
- url: string;
4083
- /** Object key in the storage bucket. */
4084
- key: string;
4085
- /** MIME type of the uploaded file. */
4086
- contentType: string;
4087
- /** File size in bytes. */
4088
- size: number;
4089
- };
4090
-
4091
- type AiSdkHost = SdkHost<{
4092
- ai: typeof aiEndpoints;
4093
- }>;
4094
- declare class AiClient {
4095
- /** SDK host used for ai requests. */
4096
- private readonly sdk;
4097
- /** Create AI client. */
4098
- constructor(sdk: AiSdkHost);
4099
- /** Submit an image generation task. */
4100
- image(payload: AiImageRequest): Promise<{
4101
- success: false;
4102
- message: string;
4103
- code?: string | undefined;
4104
- } | {
4105
- success: true;
4106
- data: {
4107
- taskId: string;
4108
- };
4109
- }>;
4110
- /** Submit a video generation task. */
4111
- video(payload: AiVideoRequest): Promise<{
4112
- success: false;
4113
- message: string;
4114
- code?: string | undefined;
4115
- } | {
4116
- success: true;
4117
- data: {
4118
- taskId: string;
4119
- };
4120
- }>;
4121
- /** Submit an audio generation (TTS) task. */
4122
- audio(payload: AiAudioRequest): Promise<{
4123
- success: false;
4124
- message: string;
4125
- code?: string | undefined;
4126
- } | {
4127
- success: true;
4128
- data: {
4129
- taskId: string;
4130
- };
4131
- }>;
4132
- /** Fetch task status by ID. */
4133
- task(taskId: string): Promise<{
4134
- success: false;
4135
- message: string;
4136
- code?: string | undefined;
4137
- } | {
4138
- success: true;
4139
- data: {
4140
- status: "queued" | "running" | "succeeded" | "failed" | "canceled";
4141
- progress?: number | undefined;
4142
- resultType?: "image" | "video" | "audio" | undefined;
4143
- resultUrls?: string[] | undefined;
4144
- error?: {
4145
- message: string;
4146
- code?: string | undefined;
4147
- } | undefined;
4148
- creditsConsumed?: number | undefined;
4149
- };
4150
- }>;
4151
- /** Cancel a running task by ID. */
4152
- cancelTask(taskId: string): Promise<{
4153
- success: false;
4154
- message: string;
4155
- code?: string | undefined;
4156
- } | {
4157
- success: true;
4158
- data: {
4159
- status: "canceled" | "processing";
4160
- };
4161
- }>;
4162
- /** List available image models. */
4163
- imageModels(): Promise<{
4164
- success: false;
4165
- message: string;
4166
- code?: string | undefined;
4167
- } | {
4168
- success: true;
4169
- data: {
4170
- data: {
4171
- [x: string]: unknown;
4172
- id: string;
4173
- name?: string | undefined;
4174
- familyId?: string | undefined;
4175
- providerId?: string | undefined;
4176
- tags?: string[] | undefined;
4177
- capabilities?: {
4178
- common?: {
4179
- maxContextK?: number | undefined;
4180
- supportsStructuredOutput?: boolean | undefined;
4181
- supportsWebSearch?: boolean | undefined;
4182
- } | undefined;
4183
- params?: {
4184
- features?: string[] | undefined;
4185
- fields?: {
4186
- key: string;
4187
- title: string;
4188
- type: "number" | "boolean" | "text" | "select";
4189
- request: boolean;
4190
- description?: string | undefined;
4191
- unit?: string | undefined;
4192
- values?: (string | number | boolean)[] | undefined;
4193
- min?: number | undefined;
4194
- max?: number | undefined;
4195
- step?: number | undefined;
4196
- default?: string | number | boolean | undefined;
4197
- }[] | undefined;
4198
- } | undefined;
4199
- input?: {
4200
- maxImages?: number | undefined;
4201
- supportsMask?: boolean | undefined;
4202
- supportsReferenceVideo?: boolean | undefined;
4203
- supportsStartEnd?: boolean | undefined;
4204
- } | undefined;
4205
- output?: {
4206
- supportsMulti?: boolean | undefined;
4207
- supportsAudio?: boolean | undefined;
4208
- } | undefined;
4209
- } | undefined;
4210
- creditsPerCall?: number | undefined;
4211
- }[];
4212
- updatedAt?: string | undefined;
4213
- };
4214
- }>;
4215
- /** List available video models. */
4216
- videoModels(): Promise<{
4217
- success: false;
4218
- message: string;
4219
- code?: string | undefined;
4220
- } | {
4221
- success: true;
4222
- data: {
4223
- data: {
4224
- [x: string]: unknown;
4225
- id: string;
4226
- name?: string | undefined;
4227
- familyId?: string | undefined;
4228
- providerId?: string | undefined;
4229
- tags?: string[] | undefined;
4230
- capabilities?: {
4231
- common?: {
4232
- maxContextK?: number | undefined;
4233
- supportsStructuredOutput?: boolean | undefined;
4234
- supportsWebSearch?: boolean | undefined;
4235
- } | undefined;
4236
- params?: {
4237
- features?: string[] | undefined;
4238
- fields?: {
4239
- key: string;
4240
- title: string;
4241
- type: "number" | "boolean" | "text" | "select";
4242
- request: boolean;
4243
- description?: string | undefined;
4244
- unit?: string | undefined;
4245
- values?: (string | number | boolean)[] | undefined;
4246
- min?: number | undefined;
4247
- max?: number | undefined;
4248
- step?: number | undefined;
4249
- default?: string | number | boolean | undefined;
4250
- }[] | undefined;
4251
- } | undefined;
4252
- input?: {
4253
- maxImages?: number | undefined;
4254
- supportsMask?: boolean | undefined;
4255
- supportsReferenceVideo?: boolean | undefined;
4256
- supportsStartEnd?: boolean | undefined;
4257
- } | undefined;
4258
- output?: {
4259
- supportsMulti?: boolean | undefined;
4260
- supportsAudio?: boolean | undefined;
4261
- } | undefined;
4262
- } | undefined;
4263
- creditsPerCall?: number | undefined;
4264
- }[];
4265
- updatedAt?: string | undefined;
4266
- };
4267
- }>;
4268
- /** List available audio models. */
4269
- audioModels(): Promise<{
4270
- success: false;
4271
- message: string;
4272
- code?: string | undefined;
4273
- } | {
4274
- success: true;
4275
- data: {
4276
- data: {
4277
- [x: string]: unknown;
4278
- id: string;
4279
- name?: string | undefined;
4280
- familyId?: string | undefined;
4281
- providerId?: string | undefined;
4282
- tags?: string[] | undefined;
4283
- capabilities?: {
4284
- common?: {
4285
- maxContextK?: number | undefined;
4286
- supportsStructuredOutput?: boolean | undefined;
4287
- supportsWebSearch?: boolean | undefined;
4288
- } | undefined;
4289
- params?: {
4290
- features?: string[] | undefined;
4291
- fields?: {
4292
- key: string;
4293
- title: string;
4294
- type: "number" | "boolean" | "text" | "select";
4295
- request: boolean;
4296
- description?: string | undefined;
4297
- unit?: string | undefined;
4298
- values?: (string | number | boolean)[] | undefined;
4299
- min?: number | undefined;
4300
- max?: number | undefined;
4301
- step?: number | undefined;
4302
- default?: string | number | boolean | undefined;
4303
- }[] | undefined;
4304
- } | undefined;
4305
- input?: {
4306
- maxImages?: number | undefined;
4307
- supportsMask?: boolean | undefined;
4308
- supportsReferenceVideo?: boolean | undefined;
4309
- supportsStartEnd?: boolean | undefined;
4310
- } | undefined;
4311
- output?: {
4312
- supportsMulti?: boolean | undefined;
4313
- supportsAudio?: boolean | undefined;
4314
- } | undefined;
4315
- } | undefined;
4316
- creditsPerCall?: number | undefined;
4317
- }[];
4318
- updatedAt?: string | undefined;
4319
- };
1565
+ type AiProviderTemplatesResponse = z.infer<typeof aiProviderTemplatesResponseSchema>;
1566
+ /** Options for AI file upload. */
1567
+ type AiFileUploadOptions = {
1568
+ /** Hours until the file expires and is auto-deleted from storage. Omit for permanent storage. */
1569
+ expireHours?: number;
1570
+ };
1571
+ /** Response returned after a successful AI file upload. */
1572
+ type AiFileUploadResponse = {
1573
+ /** Public URL of the uploaded file, ready to use in chat messages. */
1574
+ url: string;
1575
+ /** Object key in the storage bucket. */
1576
+ key: string;
1577
+ /** MIME type of the uploaded file. */
1578
+ contentType: string;
1579
+ /** File size in bytes. */
1580
+ size: number;
1581
+ };
1582
+
1583
+ /** Variant within a v3 feature (maps to a model/quality combination). */
1584
+ declare const v3VariantSchema: z.ZodObject<{
1585
+ id: z.ZodString;
1586
+ preference: z.ZodString;
1587
+ creditsPerCall: z.ZodNumber;
1588
+ billingType: z.ZodString;
1589
+ minMembershipLevel: z.ZodString;
1590
+ }, z.core.$strip>;
1591
+ /** Feature entry within a capabilities response. */
1592
+ declare const v3FeatureSchema: z.ZodObject<{
1593
+ id: z.ZodString;
1594
+ variants: z.ZodArray<z.ZodObject<{
1595
+ id: z.ZodString;
1596
+ preference: z.ZodString;
1597
+ creditsPerCall: z.ZodNumber;
1598
+ billingType: z.ZodString;
1599
+ minMembershipLevel: z.ZodString;
1600
+ }, z.core.$strip>>;
1601
+ }, z.core.$strip>;
1602
+ /** Capabilities data payload for a single media category. */
1603
+ declare const v3CapabilitiesDataSchema: z.ZodObject<{
1604
+ category: z.ZodString;
1605
+ features: z.ZodArray<z.ZodObject<{
1606
+ id: z.ZodString;
1607
+ variants: z.ZodArray<z.ZodObject<{
1608
+ id: z.ZodString;
1609
+ preference: z.ZodString;
1610
+ creditsPerCall: z.ZodNumber;
1611
+ billingType: z.ZodString;
1612
+ minMembershipLevel: z.ZodString;
1613
+ }, z.core.$strip>>;
1614
+ }, z.core.$strip>>;
1615
+ updatedAt: z.ZodOptional<z.ZodString>;
1616
+ }, z.core.$strip>;
1617
+ /** Successful capabilities response. */
1618
+ declare const v3CapabilitiesResponseSchema: z.ZodObject<{
1619
+ success: z.ZodLiteral<true>;
1620
+ data: z.ZodObject<{
1621
+ category: z.ZodString;
1622
+ features: z.ZodArray<z.ZodObject<{
1623
+ id: z.ZodString;
1624
+ variants: z.ZodArray<z.ZodObject<{
1625
+ id: z.ZodString;
1626
+ preference: z.ZodString;
1627
+ creditsPerCall: z.ZodNumber;
1628
+ billingType: z.ZodString;
1629
+ minMembershipLevel: z.ZodString;
1630
+ }, z.core.$strip>>;
1631
+ }, z.core.$strip>>;
1632
+ updatedAt: z.ZodOptional<z.ZodString>;
1633
+ }, z.core.$strip>;
1634
+ }, z.core.$strip>;
1635
+ /** v3 unified generate request body. */
1636
+ declare const v3GenerateRequestSchema: z.ZodObject<{
1637
+ feature: z.ZodString;
1638
+ variant: z.ZodString;
1639
+ inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1640
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1641
+ count: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
1642
+ seed: z.ZodOptional<z.ZodNumber>;
1643
+ }, z.core.$strip>;
1644
+ /** Individual task item within a v3 response. */
1645
+ declare const v3TaskItemSchema: z.ZodObject<{
1646
+ taskId: z.ZodString;
1647
+ status: z.ZodEnum<{
1648
+ queued: "queued";
1649
+ running: "running";
1650
+ succeeded: "succeeded";
1651
+ failed: "failed";
1652
+ canceled: "canceled";
4320
1653
  }>;
1654
+ resultUrls: z.ZodOptional<z.ZodArray<z.ZodString>>;
1655
+ resultText: z.ZodOptional<z.ZodString>;
1656
+ creditsConsumed: z.ZodOptional<z.ZodNumber>;
1657
+ error: z.ZodOptional<z.ZodObject<{
1658
+ code: z.ZodOptional<z.ZodString>;
1659
+ message: z.ZodString;
1660
+ }, z.core.$strip>>;
1661
+ }, z.core.$strip>;
1662
+ /** Successful single-task query response. */
1663
+ declare const v3TaskResponseSchema: z.ZodObject<{
1664
+ success: z.ZodLiteral<true>;
1665
+ data: z.ZodObject<{
1666
+ taskId: z.ZodString;
1667
+ status: z.ZodEnum<{
1668
+ queued: "queued";
1669
+ running: "running";
1670
+ succeeded: "succeeded";
1671
+ failed: "failed";
1672
+ canceled: "canceled";
1673
+ }>;
1674
+ resultUrls: z.ZodOptional<z.ZodArray<z.ZodString>>;
1675
+ resultText: z.ZodOptional<z.ZodString>;
1676
+ creditsConsumed: z.ZodOptional<z.ZodNumber>;
1677
+ error: z.ZodOptional<z.ZodObject<{
1678
+ code: z.ZodOptional<z.ZodString>;
1679
+ message: z.ZodString;
1680
+ }, z.core.$strip>>;
1681
+ }, z.core.$strip>;
1682
+ }, z.core.$strip>;
1683
+ /** Successful generate response — single task or batch group. */
1684
+ declare const v3TaskCreatedSchema: z.ZodObject<{
1685
+ success: z.ZodLiteral<true>;
1686
+ data: z.ZodUnion<readonly [z.ZodObject<{
1687
+ taskId: z.ZodString;
1688
+ }, z.core.$strip>, z.ZodObject<{
1689
+ groupId: z.ZodString;
1690
+ taskIds: z.ZodArray<z.ZodString>;
1691
+ }, z.core.$strip>]>;
1692
+ }, z.core.$strip>;
1693
+ /** Successful task group query response. */
1694
+ declare const v3TaskGroupResponseSchema: z.ZodObject<{
1695
+ success: z.ZodLiteral<true>;
1696
+ data: z.ZodObject<{
1697
+ groupId: z.ZodString;
1698
+ status: z.ZodEnum<{
1699
+ running: "running";
1700
+ succeeded: "succeeded";
1701
+ failed: "failed";
1702
+ partial: "partial";
1703
+ }>;
1704
+ tasks: z.ZodArray<z.ZodObject<{
1705
+ taskId: z.ZodString;
1706
+ status: z.ZodEnum<{
1707
+ queued: "queued";
1708
+ running: "running";
1709
+ succeeded: "succeeded";
1710
+ failed: "failed";
1711
+ canceled: "canceled";
1712
+ }>;
1713
+ resultUrls: z.ZodOptional<z.ZodArray<z.ZodString>>;
1714
+ resultText: z.ZodOptional<z.ZodString>;
1715
+ creditsConsumed: z.ZodOptional<z.ZodNumber>;
1716
+ error: z.ZodOptional<z.ZodObject<{
1717
+ code: z.ZodOptional<z.ZodString>;
1718
+ message: z.ZodString;
1719
+ }, z.core.$strip>>;
1720
+ }, z.core.$strip>>;
1721
+ totalCreditsConsumed: z.ZodOptional<z.ZodNumber>;
1722
+ }, z.core.$strip>;
1723
+ }, z.core.$strip>;
1724
+ /** Basic success response for cancel and other simple operations. */
1725
+ declare const v3BasicSuccessSchema: z.ZodObject<{
1726
+ success: z.ZodLiteral<true>;
1727
+ message: z.ZodOptional<z.ZodString>;
1728
+ }, z.core.$strip>;
1729
+ /** v3 estimate price request body. */
1730
+ declare const v3EstimatePriceRequestSchema: z.ZodObject<{
1731
+ variant: z.ZodString;
1732
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1733
+ }, z.core.$strip>;
1734
+ /** Credit estimate result. */
1735
+ declare const v3CreditEstimateSchema: z.ZodObject<{
1736
+ baseCredits: z.ZodNumber;
1737
+ markup: z.ZodNumber;
1738
+ totalCredits: z.ZodNumber;
1739
+ billingType: z.ZodString;
1740
+ factors: z.ZodRecord<z.ZodString, z.ZodNumber>;
1741
+ }, z.core.$strip>;
1742
+ /** Successful estimate price response. */
1743
+ declare const v3EstimatePriceResponseSchema: z.ZodObject<{
1744
+ success: z.ZodLiteral<true>;
1745
+ data: z.ZodObject<{
1746
+ baseCredits: z.ZodNumber;
1747
+ markup: z.ZodNumber;
1748
+ totalCredits: z.ZodNumber;
1749
+ billingType: z.ZodString;
1750
+ factors: z.ZodRecord<z.ZodString, z.ZodNumber>;
1751
+ }, z.core.$strip>;
1752
+ }, z.core.$strip>;
1753
+ /** Variant within a v3 feature. */
1754
+ type V3Variant = z.infer<typeof v3VariantSchema>;
1755
+ /** Feature entry within a capabilities response. */
1756
+ type V3Feature = z.infer<typeof v3FeatureSchema>;
1757
+ /** Capabilities data payload. */
1758
+ type V3CapabilitiesData = z.infer<typeof v3CapabilitiesDataSchema>;
1759
+ /** Full capabilities response. */
1760
+ type V3CapabilitiesResponse = z.infer<typeof v3CapabilitiesResponseSchema>;
1761
+ /** v3 generate request body. */
1762
+ type V3GenerateRequest = z.infer<typeof v3GenerateRequestSchema>;
1763
+ /** Individual task item. */
1764
+ type V3TaskItem = z.infer<typeof v3TaskItemSchema>;
1765
+ /** Single-task query response. */
1766
+ type V3TaskResponse = z.infer<typeof v3TaskResponseSchema>;
1767
+ /** Generate response (task or group created). */
1768
+ type V3TaskCreated = z.infer<typeof v3TaskCreatedSchema>;
1769
+ /** Task group query response. */
1770
+ type V3TaskGroupResponse = z.infer<typeof v3TaskGroupResponseSchema>;
1771
+ /** Basic success response. */
1772
+ type V3BasicSuccess = z.infer<typeof v3BasicSuccessSchema>;
1773
+ /** v3 estimate price request body. */
1774
+ type V3EstimatePriceRequest = z.infer<typeof v3EstimatePriceRequestSchema>;
1775
+ /** Credit estimate result. */
1776
+ type V3CreditEstimate = z.infer<typeof v3CreditEstimateSchema>;
1777
+ /** Successful estimate price response. */
1778
+ type V3EstimatePriceResponse = z.infer<typeof v3EstimatePriceResponseSchema>;
1779
+
1780
+ type AiSdkHost = SdkHost<{
1781
+ ai: typeof aiEndpoints;
1782
+ }>;
1783
+ declare class AiClient {
1784
+ /** SDK host used for ai requests. */
1785
+ private readonly sdk;
1786
+ /** Create AI client. */
1787
+ constructor(sdk: AiSdkHost);
4321
1788
  /** List available chat models. */
4322
1789
  chatModels(): Promise<{
4323
1790
  success: false;
@@ -4387,8 +1854,9 @@ declare class AiClient {
4387
1854
  /**
4388
1855
  * Upload a file for use in AI chat conversations.
4389
1856
  * Returns a public URL to reference in message content (image_url etc.).
1857
+ * @param options.expireHours - Hours until auto-deletion. Omit for permanent storage.
4390
1858
  */
4391
- uploadFile(file: File | Blob, filename?: string): Promise<AiFileUploadResponse>;
1859
+ uploadFile(file: File | Blob, filename?: string, options?: AiFileUploadOptions): Promise<AiFileUploadResponse>;
4392
1860
  /** Fetch provider templates (public, no auth required). */
4393
1861
  providerTemplates(): Promise<{
4394
1862
  success: false;
@@ -4450,122 +1918,112 @@ declare class AiClient {
4450
1918
  updatedAt?: string | undefined;
4451
1919
  };
4452
1920
  }>;
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
- } | {
1921
+ /** Fetch image capabilities (features + variants) via v3 API. */
1922
+ imageCapabilities(): Promise<{
1923
+ success: true;
1924
+ data: {
1925
+ category: string;
1926
+ features: {
1927
+ id: string;
1928
+ variants: {
1929
+ id: string;
1930
+ preference: string;
1931
+ creditsPerCall: number;
1932
+ billingType: string;
1933
+ minMembershipLevel: string;
1934
+ }[];
1935
+ }[];
1936
+ updatedAt?: string | undefined;
1937
+ };
1938
+ }>;
1939
+ /** Fetch video capabilities (features + variants) via v3 API. */
1940
+ videoCapabilities(): Promise<{
1941
+ success: true;
1942
+ data: {
1943
+ category: string;
1944
+ features: {
1945
+ id: string;
1946
+ variants: {
1947
+ id: string;
1948
+ preference: string;
1949
+ creditsPerCall: number;
1950
+ billingType: string;
1951
+ minMembershipLevel: string;
1952
+ }[];
1953
+ }[];
1954
+ updatedAt?: string | undefined;
1955
+ };
1956
+ }>;
1957
+ /** Fetch audio capabilities (features + variants) via v3 API. */
1958
+ audioCapabilities(): Promise<{
1959
+ success: true;
1960
+ data: {
1961
+ category: string;
1962
+ features: {
1963
+ id: string;
1964
+ variants: {
1965
+ id: string;
1966
+ preference: string;
1967
+ creditsPerCall: number;
1968
+ billingType: string;
1969
+ minMembershipLevel: string;
1970
+ }[];
1971
+ }[];
1972
+ updatedAt?: string | undefined;
1973
+ };
1974
+ }>;
1975
+ /** Submit a v3 generate request (unified for all media types). */
1976
+ v3Generate(payload: V3GenerateRequest): Promise<{
4459
1977
  success: true;
4460
1978
  data: {
4461
1979
  taskId: string;
1980
+ } | {
1981
+ groupId: string;
1982
+ taskIds: string[];
4462
1983
  };
4463
1984
  }>;
4464
- /** Fetch media task status by ID (v2). */
4465
- mediaTask(taskId: string): Promise<{
4466
- success: false;
4467
- message: string;
4468
- code?: string | undefined;
4469
- } | {
1985
+ /** Fetch v3 task status by ID. */
1986
+ v3Task(taskId: string): Promise<{
4470
1987
  success: true;
4471
1988
  data: {
1989
+ taskId: string;
4472
1990
  status: "queued" | "running" | "succeeded" | "failed" | "canceled";
4473
- progress?: number | undefined;
4474
- resultType?: "image" | "video" | "audio" | undefined;
4475
1991
  resultUrls?: string[] | undefined;
1992
+ resultText?: string | undefined;
1993
+ creditsConsumed?: number | undefined;
4476
1994
  error?: {
4477
1995
  message: string;
4478
1996
  code?: string | undefined;
4479
1997
  } | undefined;
4480
- creditsConsumed?: number | undefined;
4481
1998
  };
4482
1999
  }>;
4483
- /** Cancel a media task by ID (v2). */
4484
- mediaCancelTask(taskId: string): Promise<{
4485
- success: false;
4486
- message: string;
4487
- code?: string | undefined;
4488
- } | {
2000
+ /** Cancel a v3 task by ID. */
2001
+ v3CancelTask(taskId: string): Promise<{
4489
2002
  success: true;
4490
- data: {
4491
- status: "canceled" | "processing";
4492
- };
2003
+ message?: string | undefined;
4493
2004
  }>;
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
- } | {
2005
+ /** Fetch v3 task group status by group ID. */
2006
+ v3TaskGroup(groupId: string): Promise<{
4500
2007
  success: true;
4501
2008
  data: {
4502
2009
  groupId: string;
2010
+ status: "running" | "succeeded" | "failed" | "partial";
4503
2011
  tasks: {
4504
2012
  taskId: string;
4505
2013
  status: "queued" | "running" | "succeeded" | "failed" | "canceled";
4506
2014
  resultUrls?: string[] | undefined;
2015
+ resultText?: string | undefined;
2016
+ creditsConsumed?: number | undefined;
4507
2017
  error?: {
4508
2018
  message: string;
4509
2019
  code?: string | undefined;
4510
2020
  } | undefined;
4511
- creditsConsumed?: number | undefined;
4512
2021
  }[];
4513
2022
  totalCreditsConsumed?: number | undefined;
4514
2023
  };
4515
2024
  }>;
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
- }>;
2025
+ /** Estimate credits for a v3 generate request. */
2026
+ v3EstimatePrice(req: V3EstimatePriceRequest): Promise<V3EstimatePriceResponse>;
4569
2027
  }
4570
2028
 
4571
2029
  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"];
@@ -4575,13 +2033,195 @@ declare const AI_MODEL_CAPABILITY_INPUT_KEYS: readonly ["maxImages", "supportsMa
4575
2033
  type AiModelCapabilityInputKey = (typeof AI_MODEL_CAPABILITY_INPUT_KEYS)[number];
4576
2034
  declare const AI_MODEL_CAPABILITY_OUTPUT_KEYS: readonly ["supportsMulti", "supportsAudio"];
4577
2035
  type AiModelCapabilityOutputKey = (typeof AI_MODEL_CAPABILITY_OUTPUT_KEYS)[number];
2036
+ /**
2037
+ * All known media preference IDs used by v3 variant system.
2038
+ * 偏好按用户使用场景划分,不反映底层模型技术细节:
2039
+ * - economy: 成本最低、速度快、质量可接受(批量处理、快速预览)
2040
+ * - standard: 均衡推荐(日常使用)
2041
+ * - hd: 高分辨率/高质量(正式输出、印刷、4x放大)
2042
+ * - creative: 创意模式(图文混排、风格化等特殊能力)
2043
+ */
2044
+ declare const MEDIA_PREFERENCES: {
2045
+ readonly economy: {
2046
+ readonly id: "economy";
2047
+ readonly label: {
2048
+ readonly zh: "经济";
2049
+ readonly "zh-TW": "經濟";
2050
+ readonly en: "Economy";
2051
+ readonly ja: "エコノミー";
2052
+ };
2053
+ };
2054
+ readonly standard: {
2055
+ readonly id: "standard";
2056
+ readonly label: {
2057
+ readonly zh: "标准";
2058
+ readonly "zh-TW": "標準";
2059
+ readonly en: "Standard";
2060
+ readonly ja: "スタンダード";
2061
+ };
2062
+ };
2063
+ readonly hd: {
2064
+ readonly id: "hd";
2065
+ readonly label: {
2066
+ readonly zh: "高清";
2067
+ readonly "zh-TW": "高清";
2068
+ readonly en: "HD";
2069
+ readonly ja: "高画質";
2070
+ };
2071
+ };
2072
+ readonly creative: {
2073
+ readonly id: "creative";
2074
+ readonly label: {
2075
+ readonly zh: "创意";
2076
+ readonly "zh-TW": "創意";
2077
+ readonly en: "Creative";
2078
+ readonly ja: "クリエイティブ";
2079
+ };
2080
+ };
2081
+ };
2082
+ /** Supported locale keys for preference labels. */
2083
+ type MediaPreferenceLocale = keyof (typeof MEDIA_PREFERENCES)["economy"]["label"];
2084
+ /** Media preference identifier type. */
2085
+ type MediaPreferenceId = keyof typeof MEDIA_PREFERENCES;
2086
+ /**
2087
+ * All known media feature IDs used by v3 capabilities system.
2088
+ * Client 使用此字典翻译 feature ID 为用户可读名称。
2089
+ */
2090
+ declare const MEDIA_FEATURES: {
2091
+ readonly imageGenerate: {
2092
+ readonly id: "imageGenerate";
2093
+ readonly label: {
2094
+ readonly zh: "文生图";
2095
+ readonly "zh-TW": "文生圖";
2096
+ readonly en: "Text to Image";
2097
+ readonly ja: "テキストから画像";
2098
+ };
2099
+ };
2100
+ readonly imageEdit: {
2101
+ readonly id: "imageEdit";
2102
+ readonly label: {
2103
+ readonly zh: "图片编辑";
2104
+ readonly "zh-TW": "圖片編輯";
2105
+ readonly en: "Image Editing";
2106
+ readonly ja: "画像編集";
2107
+ };
2108
+ };
2109
+ readonly imageInpaint: {
2110
+ readonly id: "imageInpaint";
2111
+ readonly label: {
2112
+ readonly zh: "图片修复";
2113
+ readonly "zh-TW": "圖片修復";
2114
+ readonly en: "Inpainting";
2115
+ readonly ja: "画像修復";
2116
+ };
2117
+ };
2118
+ readonly imageStyleTransfer: {
2119
+ readonly id: "imageStyleTransfer";
2120
+ readonly label: {
2121
+ readonly zh: "风格迁移";
2122
+ readonly "zh-TW": "風格遷移";
2123
+ readonly en: "Style Transfer";
2124
+ readonly ja: "スタイル変換";
2125
+ };
2126
+ };
2127
+ readonly outpaint: {
2128
+ readonly id: "outpaint";
2129
+ readonly label: {
2130
+ readonly zh: "扩图";
2131
+ readonly "zh-TW": "擴圖";
2132
+ readonly en: "Outpainting";
2133
+ readonly ja: "画像拡張";
2134
+ };
2135
+ };
2136
+ readonly upscale: {
2137
+ readonly id: "upscale";
2138
+ readonly label: {
2139
+ readonly zh: "超清";
2140
+ readonly "zh-TW": "超清";
2141
+ readonly en: "Upscale";
2142
+ readonly ja: "超解像";
2143
+ };
2144
+ };
2145
+ readonly materialExtract: {
2146
+ readonly id: "materialExtract";
2147
+ readonly label: {
2148
+ readonly zh: "素材提取";
2149
+ readonly "zh-TW": "素材提取";
2150
+ readonly en: "Material Extract";
2151
+ readonly ja: "素材抽出";
2152
+ };
2153
+ };
2154
+ readonly videoGenerate: {
2155
+ readonly id: "videoGenerate";
2156
+ readonly label: {
2157
+ readonly zh: "视频生成";
2158
+ readonly "zh-TW": "影片生成";
2159
+ readonly en: "Video Generation";
2160
+ readonly ja: "動画生成";
2161
+ };
2162
+ };
2163
+ readonly digitalHuman: {
2164
+ readonly id: "digitalHuman";
2165
+ readonly label: {
2166
+ readonly zh: "数字人";
2167
+ readonly "zh-TW": "數位人";
2168
+ readonly en: "Digital Human";
2169
+ readonly ja: "デジタルヒューマン";
2170
+ };
2171
+ };
2172
+ readonly videoFaceSwap: {
2173
+ readonly id: "videoFaceSwap";
2174
+ readonly label: {
2175
+ readonly zh: "视频换人";
2176
+ readonly "zh-TW": "影片換人";
2177
+ readonly en: "Video Face Swap";
2178
+ readonly ja: "ビデオフェイススワップ";
2179
+ };
2180
+ };
2181
+ readonly videoTranslate: {
2182
+ readonly id: "videoTranslate";
2183
+ readonly label: {
2184
+ readonly zh: "视频翻译";
2185
+ readonly "zh-TW": "影片翻譯";
2186
+ readonly en: "Video Translation";
2187
+ readonly ja: "動画翻訳";
2188
+ };
2189
+ };
2190
+ readonly lipSync: {
2191
+ readonly id: "lipSync";
2192
+ readonly label: {
2193
+ readonly zh: "口型同步";
2194
+ readonly "zh-TW": "口型同步";
2195
+ readonly en: "Lip Sync";
2196
+ readonly ja: "リップシンク";
2197
+ };
2198
+ };
2199
+ readonly tts: {
2200
+ readonly id: "tts";
2201
+ readonly label: {
2202
+ readonly zh: "语音合成";
2203
+ readonly "zh-TW": "語音合成";
2204
+ readonly en: "Text to Speech";
2205
+ readonly ja: "音声合成";
2206
+ };
2207
+ };
2208
+ readonly speechToText: {
2209
+ readonly id: "speechToText";
2210
+ readonly label: {
2211
+ readonly zh: "语音识别";
2212
+ readonly "zh-TW": "語音辨識";
2213
+ readonly en: "Speech to Text";
2214
+ readonly ja: "音声認識";
2215
+ };
2216
+ };
2217
+ };
2218
+ /** Media feature identifier type. */
2219
+ type MediaFeatureId = keyof typeof MEDIA_FEATURES;
4578
2220
 
4579
2221
  declare const index$6_AI_MODEL_CAPABILITY_INPUT_KEYS: typeof AI_MODEL_CAPABILITY_INPUT_KEYS;
4580
2222
  declare const index$6_AI_MODEL_CAPABILITY_OUTPUT_KEYS: typeof AI_MODEL_CAPABILITY_OUTPUT_KEYS;
4581
2223
  declare const index$6_AI_MODEL_TAGS: typeof AI_MODEL_TAGS;
4582
2224
  declare const index$6_AI_MODEL_TAG_LABELS: typeof AI_MODEL_TAG_LABELS;
4583
- type index$6_AiAudioOutput = AiAudioOutput;
4584
- type index$6_AiAudioRequest = AiAudioRequest;
4585
2225
  type index$6_AiChatCompletionsRequest = AiChatCompletionsRequest;
4586
2226
  type index$6_AiChatModel = AiChatModel;
4587
2227
  type index$6_AiChatModelsResponse = AiChatModelsResponse;
@@ -4589,11 +2229,8 @@ type index$6_AiChatSessionMetadata = AiChatSessionMetadata;
4589
2229
  type index$6_AiClient = AiClient;
4590
2230
  declare const index$6_AiClient: typeof AiClient;
4591
2231
  type index$6_AiClientMetadata = AiClientMetadata;
2232
+ type index$6_AiFileUploadOptions = AiFileUploadOptions;
4592
2233
  type index$6_AiFileUploadResponse = AiFileUploadResponse;
4593
- type index$6_AiImageInputs = AiImageInputs;
4594
- type index$6_AiImageOutput = AiImageOutput;
4595
- type index$6_AiImageRequest = AiImageRequest;
4596
- type index$6_AiMediaInput = AiMediaInput;
4597
2234
  type index$6_AiModel = AiModel;
4598
2235
  type index$6_AiModelCapabilities = AiModelCapabilities;
4599
2236
  type index$6_AiModelCapabilitiesInput = AiModelCapabilitiesInput;
@@ -4601,45 +2238,30 @@ type index$6_AiModelCapabilitiesOutput = AiModelCapabilitiesOutput;
4601
2238
  type index$6_AiModelCapabilityInputKey = AiModelCapabilityInputKey;
4602
2239
  type index$6_AiModelCapabilityOutputKey = AiModelCapabilityOutputKey;
4603
2240
  type index$6_AiModelTag = AiModelTag;
4604
- type index$6_AiModelsResponse = AiModelsResponse;
4605
2241
  type index$6_AiModelsUpdatedAtData = AiModelsUpdatedAtData;
4606
2242
  type index$6_AiModelsUpdatedAtResponse = AiModelsUpdatedAtResponse;
4607
2243
  type index$6_AiProviderTemplate = AiProviderTemplate;
4608
2244
  type index$6_AiProviderTemplateModel = AiProviderTemplateModel;
4609
2245
  type index$6_AiProviderTemplatesResponse = AiProviderTemplatesResponse;
4610
2246
  type index$6_AiResponsesRequest = AiResponsesRequest;
4611
- type index$6_AiTaskCancelResponse = AiTaskCancelResponse;
4612
- type index$6_AiTaskCreatedResponse = AiTaskCreatedResponse;
4613
- type index$6_AiTaskResponse = AiTaskResponse;
4614
- type index$6_AiVideoInputs = AiVideoInputs;
4615
- type index$6_AiVideoOutput = AiVideoOutput;
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;
4641
- declare const index$6_aiAudioOutputSchema: typeof aiAudioOutputSchema;
4642
- declare const index$6_aiAudioRequestSchema: typeof aiAudioRequestSchema;
2247
+ declare const index$6_MEDIA_FEATURES: typeof MEDIA_FEATURES;
2248
+ declare const index$6_MEDIA_PREFERENCES: typeof MEDIA_PREFERENCES;
2249
+ type index$6_MediaFeatureId = MediaFeatureId;
2250
+ type index$6_MediaPreferenceId = MediaPreferenceId;
2251
+ type index$6_MediaPreferenceLocale = MediaPreferenceLocale;
2252
+ type index$6_V3BasicSuccess = V3BasicSuccess;
2253
+ type index$6_V3CapabilitiesData = V3CapabilitiesData;
2254
+ type index$6_V3CapabilitiesResponse = V3CapabilitiesResponse;
2255
+ type index$6_V3CreditEstimate = V3CreditEstimate;
2256
+ type index$6_V3EstimatePriceRequest = V3EstimatePriceRequest;
2257
+ type index$6_V3EstimatePriceResponse = V3EstimatePriceResponse;
2258
+ type index$6_V3Feature = V3Feature;
2259
+ type index$6_V3GenerateRequest = V3GenerateRequest;
2260
+ type index$6_V3TaskCreated = V3TaskCreated;
2261
+ type index$6_V3TaskGroupResponse = V3TaskGroupResponse;
2262
+ type index$6_V3TaskItem = V3TaskItem;
2263
+ type index$6_V3TaskResponse = V3TaskResponse;
2264
+ type index$6_V3Variant = V3Variant;
4643
2265
  declare const index$6_aiChatCompletionsRequestSchema: typeof aiChatCompletionsRequestSchema;
4644
2266
  declare const index$6_aiChatModelSchema: typeof aiChatModelSchema;
4645
2267
  declare const index$6_aiChatModelsPayloadSchema: typeof aiChatModelsPayloadSchema;
@@ -4649,10 +2271,6 @@ declare const index$6_aiChatSessionMetadataSchema: typeof aiChatSessionMetadataS
4649
2271
  declare const index$6_aiClientMetadataSchema: typeof aiClientMetadataSchema;
4650
2272
  declare const index$6_aiEndpoints: typeof aiEndpoints;
4651
2273
  declare const index$6_aiErrorResponseSchema: typeof aiErrorResponseSchema;
4652
- declare const index$6_aiImageInputsSchema: typeof aiImageInputsSchema;
4653
- declare const index$6_aiImageOutputSchema: typeof aiImageOutputSchema;
4654
- declare const index$6_aiImageRequestSchema: typeof aiImageRequestSchema;
4655
- declare const index$6_aiMediaInputSchema: typeof aiMediaInputSchema;
4656
2274
  declare const index$6_aiModelCapabilitiesInputSchema: typeof aiModelCapabilitiesInputSchema;
4657
2275
  declare const index$6_aiModelCapabilitiesOutputSchema: typeof aiModelCapabilitiesOutputSchema;
4658
2276
  declare const index$6_aiModelCapabilitiesSchema: typeof aiModelCapabilitiesSchema;
@@ -4660,10 +2278,7 @@ declare const index$6_aiModelCapabilityCommonSchema: typeof aiModelCapabilityCom
4660
2278
  declare const index$6_aiModelParameterFieldSchema: typeof aiModelParameterFieldSchema;
4661
2279
  declare const index$6_aiModelParamsSchema: typeof aiModelParamsSchema;
4662
2280
  declare const index$6_aiModelSchema: typeof aiModelSchema;
4663
- declare const index$6_aiModelsPayloadSchema: typeof aiModelsPayloadSchema;
4664
2281
  declare const index$6_aiModelsRequestSchema: typeof aiModelsRequestSchema;
4665
- declare const index$6_aiModelsResponseSchema: typeof aiModelsResponseSchema;
4666
- declare const index$6_aiModelsSuccessSchema: typeof aiModelsSuccessSchema;
4667
2282
  declare const index$6_aiModelsUpdatedAtDataSchema: typeof aiModelsUpdatedAtDataSchema;
4668
2283
  declare const index$6_aiModelsUpdatedAtResponseSchema: typeof aiModelsUpdatedAtResponseSchema;
4669
2284
  declare const index$6_aiModelsUpdatedAtSuccessSchema: typeof aiModelsUpdatedAtSuccessSchema;
@@ -4674,50 +2289,21 @@ declare const index$6_aiProviderTemplatesRequestSchema: typeof aiProviderTemplat
4674
2289
  declare const index$6_aiProviderTemplatesResponseSchema: typeof aiProviderTemplatesResponseSchema;
4675
2290
  declare const index$6_aiProviderTemplatesSuccessSchema: typeof aiProviderTemplatesSuccessSchema;
4676
2291
  declare const index$6_aiResponsesRequestSchema: typeof aiResponsesRequestSchema;
4677
- declare const index$6_aiTaskCancelDataSchema: typeof aiTaskCancelDataSchema;
4678
- declare const index$6_aiTaskCancelRequestSchema: typeof aiTaskCancelRequestSchema;
4679
- declare const index$6_aiTaskCancelResponseSchema: typeof aiTaskCancelResponseSchema;
4680
- declare const index$6_aiTaskCancelSuccessSchema: typeof aiTaskCancelSuccessSchema;
4681
- declare const index$6_aiTaskCreatedDataSchema: typeof aiTaskCreatedDataSchema;
4682
- declare const index$6_aiTaskCreatedResponseSchema: typeof aiTaskCreatedResponseSchema;
4683
- declare const index$6_aiTaskCreatedSuccessSchema: typeof aiTaskCreatedSuccessSchema;
4684
- declare const index$6_aiTaskDataSchema: typeof aiTaskDataSchema;
4685
- declare const index$6_aiTaskErrorSchema: typeof aiTaskErrorSchema;
4686
- declare const index$6_aiTaskRequestSchema: typeof aiTaskRequestSchema;
4687
- declare const index$6_aiTaskResponseSchema: typeof aiTaskResponseSchema;
4688
- declare const index$6_aiTaskResultTypeSchema: typeof aiTaskResultTypeSchema;
4689
- declare const index$6_aiTaskStatusSchema: typeof aiTaskStatusSchema;
4690
- declare const index$6_aiTaskSuccessSchema: typeof aiTaskSuccessSchema;
4691
- declare const index$6_aiVideoInputsSchema: typeof aiVideoInputsSchema;
4692
- declare const index$6_aiVideoOutputSchema: typeof aiVideoOutputSchema;
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;
2292
+ declare const index$6_v3BasicSuccessSchema: typeof v3BasicSuccessSchema;
2293
+ declare const index$6_v3CapabilitiesDataSchema: typeof v3CapabilitiesDataSchema;
2294
+ declare const index$6_v3CapabilitiesResponseSchema: typeof v3CapabilitiesResponseSchema;
2295
+ declare const index$6_v3CreditEstimateSchema: typeof v3CreditEstimateSchema;
2296
+ declare const index$6_v3EstimatePriceRequestSchema: typeof v3EstimatePriceRequestSchema;
2297
+ declare const index$6_v3EstimatePriceResponseSchema: typeof v3EstimatePriceResponseSchema;
2298
+ declare const index$6_v3FeatureSchema: typeof v3FeatureSchema;
2299
+ declare const index$6_v3GenerateRequestSchema: typeof v3GenerateRequestSchema;
2300
+ declare const index$6_v3TaskCreatedSchema: typeof v3TaskCreatedSchema;
2301
+ declare const index$6_v3TaskGroupResponseSchema: typeof v3TaskGroupResponseSchema;
2302
+ declare const index$6_v3TaskItemSchema: typeof v3TaskItemSchema;
2303
+ declare const index$6_v3TaskResponseSchema: typeof v3TaskResponseSchema;
2304
+ declare const index$6_v3VariantSchema: typeof v3VariantSchema;
4719
2305
  declare namespace index$6 {
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 };
2306
+ 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_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_AiFileUploadOptions as AiFileUploadOptions, type index$6_AiFileUploadResponse as AiFileUploadResponse, 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_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, index$6_MEDIA_FEATURES as MEDIA_FEATURES, index$6_MEDIA_PREFERENCES as MEDIA_PREFERENCES, type index$6_MediaFeatureId as MediaFeatureId, type index$6_MediaPreferenceId as MediaPreferenceId, type index$6_MediaPreferenceLocale as MediaPreferenceLocale, type index$6_V3BasicSuccess as V3BasicSuccess, type index$6_V3CapabilitiesData as V3CapabilitiesData, type index$6_V3CapabilitiesResponse as V3CapabilitiesResponse, type index$6_V3CreditEstimate as V3CreditEstimate, type index$6_V3EstimatePriceRequest as V3EstimatePriceRequest, type index$6_V3EstimatePriceResponse as V3EstimatePriceResponse, type index$6_V3Feature as V3Feature, type index$6_V3GenerateRequest as V3GenerateRequest, type index$6_V3TaskCreated as V3TaskCreated, type index$6_V3TaskGroupResponse as V3TaskGroupResponse, type index$6_V3TaskItem as V3TaskItem, type index$6_V3TaskResponse as V3TaskResponse, type index$6_V3Variant as V3Variant, 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_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_aiModelsRequestSchema as aiModelsRequestSchema, 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_v3BasicSuccessSchema as v3BasicSuccessSchema, index$6_v3CapabilitiesDataSchema as v3CapabilitiesDataSchema, index$6_v3CapabilitiesResponseSchema as v3CapabilitiesResponseSchema, index$6_v3CreditEstimateSchema as v3CreditEstimateSchema, index$6_v3EstimatePriceRequestSchema as v3EstimatePriceRequestSchema, index$6_v3EstimatePriceResponseSchema as v3EstimatePriceResponseSchema, index$6_v3FeatureSchema as v3FeatureSchema, index$6_v3GenerateRequestSchema as v3GenerateRequestSchema, index$6_v3TaskCreatedSchema as v3TaskCreatedSchema, index$6_v3TaskGroupResponseSchema as v3TaskGroupResponseSchema, index$6_v3TaskItemSchema as v3TaskItemSchema, index$6_v3TaskResponseSchema as v3TaskResponseSchema, index$6_v3VariantSchema as v3VariantSchema };
4721
2307
  }
4722
2308
 
4723
2309
  declare const aiToolsEndpoints: {
@@ -6148,4 +3734,4 @@ declare function createTrpcClient(options: TrpcClientOptions): _trpc_client.TRPC
6148
3734
  transformer: false;
6149
3735
  }, _trpc_server.TRPCDecorateCreateRouterOptions<_trpc_server.TRPCCreateRouterOptions>>>;
6150
3736
 
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 };
3737
+ export { AI_MODEL_CAPABILITY_INPUT_KEYS, AI_MODEL_CAPABILITY_OUTPUT_KEYS, AI_MODEL_TAGS, AI_MODEL_TAG_LABELS, type AiChatCompletionsRequest, type AiChatModel, type AiChatModelsResponse, type AiChatSessionMetadata, AiClient, type AiClientMetadata, type AiFileUploadOptions, type AiFileUploadResponse, type AiModel, type AiModelCapabilities, type AiModelCapabilitiesInput, type AiModelCapabilitiesOutput, type AiModelCapabilityInputKey, type AiModelCapabilityOutputKey, type AiModelTag, type AiModelsUpdatedAtData, type AiModelsUpdatedAtResponse, type AiProviderTemplate, type AiProviderTemplateModel, type AiProviderTemplatesResponse, type AiResponsesRequest, AiToolsClient, 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, MEDIA_FEATURES, MEDIA_PREFERENCES, type MediaFeatureId, type MediaPreferenceId, type MediaPreferenceLocale, 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, type V3BasicSuccess, type V3CapabilitiesData, type V3CapabilitiesResponse, type V3CreditEstimate, type V3EstimatePriceRequest, type V3EstimatePriceResponse, type V3Feature, type V3GenerateRequest, type V3TaskCreated, type V3TaskGroupResponse, type V3TaskItem, type V3TaskResponse, type V3Variant, aiChatCompletionsRequestSchema, aiChatModelSchema, aiChatModelsPayloadSchema, aiChatModelsResponseSchema, aiChatModelsSuccessSchema, aiChatSessionMetadataSchema, aiClientMetadataSchema, aiEndpoints, aiErrorResponseSchema, aiModelCapabilitiesInputSchema, aiModelCapabilitiesOutputSchema, aiModelCapabilitiesSchema, aiModelCapabilityCommonSchema, aiModelParameterFieldSchema, aiModelParamsSchema, aiModelSchema, aiModelsRequestSchema, aiModelsUpdatedAtDataSchema, aiModelsUpdatedAtResponseSchema, aiModelsUpdatedAtSuccessSchema, index$6 as aiModule, aiProviderTemplateModelSchema, aiProviderTemplateSchema, aiProviderTemplatesPayloadSchema, aiProviderTemplatesRequestSchema, aiProviderTemplatesResponseSchema, aiProviderTemplatesSuccessSchema, aiResponsesRequestSchema, aiToolsEndpoints, index$5 as aiToolsModule, 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, v3BasicSuccessSchema, v3CapabilitiesDataSchema, v3CapabilitiesResponseSchema, v3CreditEstimateSchema, v3EstimatePriceRequestSchema, v3EstimatePriceResponseSchema, v3FeatureSchema, v3GenerateRequestSchema, v3TaskCreatedSchema, v3TaskGroupResponseSchema, v3TaskItemSchema, v3TaskResponseSchema, v3VariantSchema };