@openloaf-saas/sdk 0.1.12 → 0.1.17
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 +823 -2850
- package/dist/index.js +1 -1
- package/package.json +1 -1
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,301 +162,121 @@ declare class SaaSContract {
|
|
|
442
162
|
updatedAt?: string | undefined;
|
|
443
163
|
};
|
|
444
164
|
}>;
|
|
445
|
-
readonly
|
|
446
|
-
prompt: string;
|
|
447
|
-
feature: "imageGenerate";
|
|
448
|
-
aspectRatio?: "1:1" | "16:9" | "9:16" | "4:3" | "3:2" | undefined;
|
|
449
|
-
resolution?: "1K" | "2K" | "4K" | undefined;
|
|
450
|
-
mode?: "text" | "reference" | "sketch" | "character" | undefined;
|
|
451
|
-
inputs?: {
|
|
452
|
-
images?: {
|
|
453
|
-
url?: string | undefined;
|
|
454
|
-
base64?: string | undefined;
|
|
455
|
-
mediaType?: string | undefined;
|
|
456
|
-
}[] | undefined;
|
|
457
|
-
isSketch?: boolean | undefined;
|
|
458
|
-
} | undefined;
|
|
459
|
-
count?: 2 | 1 | 4 | undefined;
|
|
460
|
-
quality?: "standard" | "hd" | "draft" | undefined;
|
|
461
|
-
seed?: number | undefined;
|
|
462
|
-
style?: string | undefined;
|
|
463
|
-
negativePrompt?: string | undefined;
|
|
464
|
-
parameters?: Record<string, unknown> | undefined;
|
|
465
|
-
} | {
|
|
466
|
-
title: string;
|
|
467
|
-
prompt: string;
|
|
468
|
-
feature: "poster";
|
|
469
|
-
subTitle?: string | undefined;
|
|
470
|
-
bodyText?: string | undefined;
|
|
471
|
-
aspectRatio?: "1:1" | "16:9" | "9:16" | "4:3" | "3:2" | undefined;
|
|
472
|
-
count?: 2 | 1 | 4 | undefined;
|
|
473
|
-
quality?: "standard" | "hd" | "draft" | undefined;
|
|
474
|
-
seed?: number | undefined;
|
|
475
|
-
style?: string | undefined;
|
|
476
|
-
negativePrompt?: string | undefined;
|
|
477
|
-
parameters?: Record<string, unknown> | undefined;
|
|
478
|
-
} | {
|
|
479
|
-
mode: "instruct" | "stylize" | "colorize" | "inpaint" | "erase" | "eraseWatermark";
|
|
480
|
-
inputs: {
|
|
481
|
-
image: {
|
|
482
|
-
url?: string | undefined;
|
|
483
|
-
base64?: string | undefined;
|
|
484
|
-
mediaType?: string | undefined;
|
|
485
|
-
};
|
|
486
|
-
mask?: {
|
|
487
|
-
url?: string | undefined;
|
|
488
|
-
base64?: string | undefined;
|
|
489
|
-
mediaType?: string | undefined;
|
|
490
|
-
} | undefined;
|
|
491
|
-
};
|
|
492
|
-
feature: "imageEdit";
|
|
493
|
-
prompt?: string | undefined;
|
|
494
|
-
strength?: number | undefined;
|
|
495
|
-
count?: 2 | 1 | 4 | undefined;
|
|
496
|
-
quality?: "standard" | "hd" | "draft" | undefined;
|
|
497
|
-
seed?: number | undefined;
|
|
498
|
-
style?: string | undefined;
|
|
499
|
-
negativePrompt?: string | undefined;
|
|
500
|
-
parameters?: Record<string, unknown> | undefined;
|
|
501
|
-
} | {
|
|
502
|
-
scale: 2 | 4;
|
|
503
|
-
inputs: {
|
|
504
|
-
image: {
|
|
505
|
-
url?: string | undefined;
|
|
506
|
-
base64?: string | undefined;
|
|
507
|
-
mediaType?: string | undefined;
|
|
508
|
-
};
|
|
509
|
-
};
|
|
510
|
-
feature: "upscale";
|
|
511
|
-
count?: 2 | 1 | 4 | undefined;
|
|
512
|
-
quality?: "standard" | "hd" | "draft" | undefined;
|
|
513
|
-
seed?: number | undefined;
|
|
514
|
-
style?: string | undefined;
|
|
515
|
-
negativePrompt?: string | undefined;
|
|
516
|
-
parameters?: Record<string, unknown> | undefined;
|
|
517
|
-
} | {
|
|
518
|
-
inputs: {
|
|
519
|
-
image: {
|
|
520
|
-
url?: string | undefined;
|
|
521
|
-
base64?: string | undefined;
|
|
522
|
-
mediaType?: string | undefined;
|
|
523
|
-
};
|
|
524
|
-
};
|
|
525
|
-
direction: {
|
|
526
|
-
top?: number | undefined;
|
|
527
|
-
bottom?: number | undefined;
|
|
528
|
-
left?: number | undefined;
|
|
529
|
-
right?: number | undefined;
|
|
530
|
-
};
|
|
531
|
-
feature: "outpaint";
|
|
532
|
-
prompt?: string | undefined;
|
|
533
|
-
count?: 2 | 1 | 4 | undefined;
|
|
534
|
-
quality?: "standard" | "hd" | "draft" | undefined;
|
|
535
|
-
seed?: number | undefined;
|
|
536
|
-
style?: string | undefined;
|
|
537
|
-
negativePrompt?: string | undefined;
|
|
538
|
-
parameters?: Record<string, unknown> | undefined;
|
|
539
|
-
} | {
|
|
540
|
-
prompt: string;
|
|
541
|
-
duration: 5 | 10 | 15;
|
|
542
|
-
feature: "videoGenerate";
|
|
543
|
-
aspectRatio?: "1:1" | "16:9" | "9:16" | "4:3" | "3:2" | undefined;
|
|
544
|
-
mode?: "text" | "withAudio" | "reference" | "firstFrame" | "startEnd" | "storyboard" | "motionControl" | undefined;
|
|
545
|
-
inputs?: {
|
|
546
|
-
startImage?: {
|
|
547
|
-
url?: string | undefined;
|
|
548
|
-
base64?: string | undefined;
|
|
549
|
-
mediaType?: string | undefined;
|
|
550
|
-
} | undefined;
|
|
551
|
-
endImage?: {
|
|
552
|
-
url?: string | undefined;
|
|
553
|
-
base64?: string | undefined;
|
|
554
|
-
mediaType?: string | undefined;
|
|
555
|
-
} | undefined;
|
|
556
|
-
images?: {
|
|
557
|
-
url?: string | undefined;
|
|
558
|
-
base64?: string | undefined;
|
|
559
|
-
mediaType?: string | undefined;
|
|
560
|
-
}[] | undefined;
|
|
561
|
-
scenes?: {
|
|
562
|
-
prompt: string;
|
|
563
|
-
image?: {
|
|
564
|
-
url?: string | undefined;
|
|
565
|
-
base64?: string | undefined;
|
|
566
|
-
mediaType?: string | undefined;
|
|
567
|
-
} | undefined;
|
|
568
|
-
}[] | undefined;
|
|
569
|
-
} | undefined;
|
|
570
|
-
withAudio?: boolean | undefined;
|
|
571
|
-
motionPaths?: {
|
|
572
|
-
startX: number;
|
|
573
|
-
startY: number;
|
|
574
|
-
endX: number;
|
|
575
|
-
endY: number;
|
|
576
|
-
strength?: number | undefined;
|
|
577
|
-
}[] | undefined;
|
|
578
|
-
camera?: {
|
|
579
|
-
type: "pan" | "zoom" | "rotate" | "dolly" | "tilt";
|
|
580
|
-
direction?: string | undefined;
|
|
581
|
-
intensity?: number | undefined;
|
|
582
|
-
} | undefined;
|
|
583
|
-
count?: 2 | 1 | 4 | undefined;
|
|
584
|
-
quality?: "standard" | "hd" | "draft" | undefined;
|
|
585
|
-
seed?: number | undefined;
|
|
586
|
-
style?: string | undefined;
|
|
587
|
-
negativePrompt?: string | undefined;
|
|
588
|
-
parameters?: Record<string, unknown> | undefined;
|
|
589
|
-
} | {
|
|
590
|
-
mode: "photo2video" | "lipSync";
|
|
591
|
-
inputs: {
|
|
592
|
-
person: {
|
|
593
|
-
url?: string | undefined;
|
|
594
|
-
base64?: string | undefined;
|
|
595
|
-
mediaType?: string | undefined;
|
|
596
|
-
};
|
|
597
|
-
audio: {
|
|
598
|
-
url?: string | undefined;
|
|
599
|
-
base64?: string | undefined;
|
|
600
|
-
mediaType?: string | undefined;
|
|
601
|
-
};
|
|
602
|
-
};
|
|
603
|
-
feature: "digitalHuman";
|
|
604
|
-
count?: 2 | 1 | 4 | undefined;
|
|
605
|
-
quality?: "standard" | "hd" | "draft" | undefined;
|
|
606
|
-
seed?: number | undefined;
|
|
607
|
-
style?: string | undefined;
|
|
608
|
-
negativePrompt?: string | undefined;
|
|
609
|
-
parameters?: Record<string, unknown> | undefined;
|
|
610
|
-
} | {
|
|
611
|
-
text: string;
|
|
612
|
-
feature: "tts";
|
|
613
|
-
voice?: string | undefined;
|
|
614
|
-
referenceAudio?: {
|
|
615
|
-
url?: string | undefined;
|
|
616
|
-
base64?: string | undefined;
|
|
617
|
-
mediaType?: string | undefined;
|
|
618
|
-
} | undefined;
|
|
619
|
-
output?: {
|
|
620
|
-
format?: "mp3" | "wav" | "opus" | undefined;
|
|
621
|
-
sampleRate?: number | undefined;
|
|
622
|
-
} | undefined;
|
|
623
|
-
count?: 2 | 1 | 4 | undefined;
|
|
624
|
-
quality?: "standard" | "hd" | "draft" | undefined;
|
|
625
|
-
seed?: number | undefined;
|
|
626
|
-
style?: string | undefined;
|
|
627
|
-
negativePrompt?: string | undefined;
|
|
628
|
-
parameters?: Record<string, unknown> | undefined;
|
|
629
|
-
}, {
|
|
630
|
-
success: false;
|
|
631
|
-
message: string;
|
|
632
|
-
code?: string | undefined;
|
|
633
|
-
} | {
|
|
165
|
+
readonly v3ImageCapabilities: Endpoint<void, {
|
|
634
166
|
success: true;
|
|
635
167
|
data: {
|
|
636
|
-
|
|
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;
|
|
637
180
|
};
|
|
638
181
|
}>;
|
|
639
|
-
readonly
|
|
640
|
-
success: false;
|
|
641
|
-
message: string;
|
|
642
|
-
code?: string | undefined;
|
|
643
|
-
} | {
|
|
182
|
+
readonly v3VideoCapabilities: Endpoint<void, {
|
|
644
183
|
success: true;
|
|
645
184
|
data: {
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
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;
|
|
197
|
+
};
|
|
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;
|
|
214
|
+
};
|
|
215
|
+
}>;
|
|
216
|
+
readonly v3Generate: Endpoint<{
|
|
217
|
+
feature: string;
|
|
218
|
+
variant: string;
|
|
219
|
+
inputs?: Record<string, unknown> | undefined;
|
|
220
|
+
params?: Record<string, unknown> | undefined;
|
|
221
|
+
count?: 2 | 1 | 4 | undefined;
|
|
222
|
+
seed?: number | undefined;
|
|
223
|
+
}, {
|
|
224
|
+
success: true;
|
|
225
|
+
data: {
|
|
226
|
+
taskId: string;
|
|
227
|
+
} | {
|
|
228
|
+
groupId: string;
|
|
229
|
+
taskIds: string[];
|
|
230
|
+
};
|
|
231
|
+
}>;
|
|
232
|
+
readonly v3Task: (taskId: string) => Endpoint<void, {
|
|
233
|
+
success: true;
|
|
234
|
+
data: {
|
|
235
|
+
taskId: string;
|
|
236
|
+
status: "queued" | "running" | "succeeded" | "failed" | "canceled";
|
|
649
237
|
resultUrls?: string[] | undefined;
|
|
238
|
+
resultText?: string | undefined;
|
|
239
|
+
creditsConsumed?: number | undefined;
|
|
650
240
|
error?: {
|
|
651
241
|
message: string;
|
|
652
242
|
code?: string | undefined;
|
|
653
243
|
} | undefined;
|
|
654
|
-
creditsConsumed?: number | undefined;
|
|
655
244
|
};
|
|
656
245
|
}>;
|
|
657
|
-
readonly
|
|
658
|
-
success: false;
|
|
659
|
-
message: string;
|
|
660
|
-
code?: string | undefined;
|
|
661
|
-
} | {
|
|
246
|
+
readonly v3CancelTask: (taskId: string) => Endpoint<void, {
|
|
662
247
|
success: true;
|
|
663
|
-
|
|
664
|
-
status: "canceled" | "processing";
|
|
665
|
-
};
|
|
248
|
+
message?: string | undefined;
|
|
666
249
|
}>;
|
|
667
|
-
readonly
|
|
668
|
-
success: false;
|
|
669
|
-
message: string;
|
|
670
|
-
code?: string | undefined;
|
|
671
|
-
} | {
|
|
250
|
+
readonly v3TaskGroup: (groupId: string) => Endpoint<void, {
|
|
672
251
|
success: true;
|
|
673
252
|
data: {
|
|
674
253
|
groupId: string;
|
|
254
|
+
status: "running" | "succeeded" | "failed" | "partial";
|
|
675
255
|
tasks: {
|
|
676
256
|
taskId: string;
|
|
677
257
|
status: "queued" | "running" | "succeeded" | "failed" | "canceled";
|
|
678
258
|
resultUrls?: string[] | undefined;
|
|
259
|
+
resultText?: string | undefined;
|
|
260
|
+
creditsConsumed?: number | undefined;
|
|
679
261
|
error?: {
|
|
680
262
|
message: string;
|
|
681
263
|
code?: string | undefined;
|
|
682
264
|
} | undefined;
|
|
683
|
-
creditsConsumed?: number | undefined;
|
|
684
265
|
}[];
|
|
685
266
|
totalCreditsConsumed?: number | undefined;
|
|
686
267
|
};
|
|
687
268
|
}>;
|
|
688
|
-
readonly
|
|
689
|
-
|
|
269
|
+
readonly v3EstimatePrice: Endpoint<{
|
|
270
|
+
variant: string;
|
|
271
|
+
params?: Record<string, unknown> | undefined;
|
|
690
272
|
}, {
|
|
691
|
-
success: false;
|
|
692
|
-
message: string;
|
|
693
|
-
code?: string | undefined;
|
|
694
|
-
} | {
|
|
695
273
|
success: true;
|
|
696
274
|
data: {
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
providerId?: string | undefined;
|
|
703
|
-
tags?: string[] | undefined;
|
|
704
|
-
capabilities?: {
|
|
705
|
-
common?: {
|
|
706
|
-
maxContextK?: number | undefined;
|
|
707
|
-
supportsStructuredOutput?: boolean | undefined;
|
|
708
|
-
supportsWebSearch?: boolean | undefined;
|
|
709
|
-
} | undefined;
|
|
710
|
-
params?: {
|
|
711
|
-
features?: string[] | undefined;
|
|
712
|
-
fields?: {
|
|
713
|
-
key: string;
|
|
714
|
-
title: string;
|
|
715
|
-
type: "number" | "boolean" | "text" | "select";
|
|
716
|
-
request: boolean;
|
|
717
|
-
description?: string | undefined;
|
|
718
|
-
unit?: string | undefined;
|
|
719
|
-
values?: (string | number | boolean)[] | undefined;
|
|
720
|
-
min?: number | undefined;
|
|
721
|
-
max?: number | undefined;
|
|
722
|
-
step?: number | undefined;
|
|
723
|
-
default?: string | number | boolean | undefined;
|
|
724
|
-
}[] | undefined;
|
|
725
|
-
} | undefined;
|
|
726
|
-
input?: {
|
|
727
|
-
maxImages?: number | undefined;
|
|
728
|
-
supportsMask?: boolean | undefined;
|
|
729
|
-
supportsReferenceVideo?: boolean | undefined;
|
|
730
|
-
supportsStartEnd?: boolean | undefined;
|
|
731
|
-
} | undefined;
|
|
732
|
-
output?: {
|
|
733
|
-
supportsMulti?: boolean | undefined;
|
|
734
|
-
supportsAudio?: boolean | undefined;
|
|
735
|
-
} | undefined;
|
|
736
|
-
} | undefined;
|
|
737
|
-
creditsPerCall?: number | undefined;
|
|
738
|
-
}[];
|
|
739
|
-
updatedAt?: string | undefined;
|
|
275
|
+
baseCredits: number;
|
|
276
|
+
markup: number;
|
|
277
|
+
totalCredits: number;
|
|
278
|
+
billingType: string;
|
|
279
|
+
factors: Record<string, number>;
|
|
740
280
|
};
|
|
741
281
|
}>;
|
|
742
282
|
};
|
|
@@ -1062,131 +602,7 @@ type SdkHost<TContract> = {
|
|
|
1062
602
|
};
|
|
1063
603
|
|
|
1064
604
|
declare const aiEndpoints: {
|
|
1065
|
-
readonly
|
|
1066
|
-
modelId: string;
|
|
1067
|
-
prompt: string;
|
|
1068
|
-
negativePrompt?: string | undefined;
|
|
1069
|
-
style?: string | undefined;
|
|
1070
|
-
inputs?: {
|
|
1071
|
-
images?: {
|
|
1072
|
-
url?: string | undefined;
|
|
1073
|
-
base64?: string | undefined;
|
|
1074
|
-
mediaType?: string | undefined;
|
|
1075
|
-
}[] | undefined;
|
|
1076
|
-
mask?: {
|
|
1077
|
-
url?: string | undefined;
|
|
1078
|
-
base64?: string | undefined;
|
|
1079
|
-
mediaType?: string | undefined;
|
|
1080
|
-
} | undefined;
|
|
1081
|
-
} | undefined;
|
|
1082
|
-
output?: {
|
|
1083
|
-
count?: number | undefined;
|
|
1084
|
-
aspectRatio?: "1:1" | "16:9" | "9:16" | "4:3" | undefined;
|
|
1085
|
-
quality?: "standard" | "hd" | undefined;
|
|
1086
|
-
} | undefined;
|
|
1087
|
-
parameters?: Record<string, unknown> | undefined;
|
|
1088
|
-
}, {
|
|
1089
|
-
success: false;
|
|
1090
|
-
message: string;
|
|
1091
|
-
code?: string | undefined;
|
|
1092
|
-
} | {
|
|
1093
|
-
success: true;
|
|
1094
|
-
data: {
|
|
1095
|
-
taskId: string;
|
|
1096
|
-
};
|
|
1097
|
-
}>;
|
|
1098
|
-
readonly video: Endpoint<{
|
|
1099
|
-
modelId: string;
|
|
1100
|
-
prompt: string;
|
|
1101
|
-
negativePrompt?: string | undefined;
|
|
1102
|
-
style?: string | undefined;
|
|
1103
|
-
inputs?: {
|
|
1104
|
-
images?: {
|
|
1105
|
-
url?: string | undefined;
|
|
1106
|
-
base64?: string | undefined;
|
|
1107
|
-
mediaType?: string | undefined;
|
|
1108
|
-
}[] | undefined;
|
|
1109
|
-
startImage?: {
|
|
1110
|
-
url?: string | undefined;
|
|
1111
|
-
base64?: string | undefined;
|
|
1112
|
-
mediaType?: string | undefined;
|
|
1113
|
-
} | undefined;
|
|
1114
|
-
endImage?: {
|
|
1115
|
-
url?: string | undefined;
|
|
1116
|
-
base64?: string | undefined;
|
|
1117
|
-
mediaType?: string | undefined;
|
|
1118
|
-
} | undefined;
|
|
1119
|
-
referenceVideo?: {
|
|
1120
|
-
url?: string | undefined;
|
|
1121
|
-
base64?: string | undefined;
|
|
1122
|
-
mediaType?: string | undefined;
|
|
1123
|
-
} | undefined;
|
|
1124
|
-
} | undefined;
|
|
1125
|
-
output?: {
|
|
1126
|
-
aspectRatio?: string | undefined;
|
|
1127
|
-
duration?: number | undefined;
|
|
1128
|
-
clarity?: string | undefined;
|
|
1129
|
-
withAudio?: boolean | undefined;
|
|
1130
|
-
} | undefined;
|
|
1131
|
-
parameters?: Record<string, unknown> | undefined;
|
|
1132
|
-
}, {
|
|
1133
|
-
success: false;
|
|
1134
|
-
message: string;
|
|
1135
|
-
code?: string | undefined;
|
|
1136
|
-
} | {
|
|
1137
|
-
success: true;
|
|
1138
|
-
data: {
|
|
1139
|
-
taskId: string;
|
|
1140
|
-
};
|
|
1141
|
-
}>;
|
|
1142
|
-
readonly audio: Endpoint<{
|
|
1143
|
-
modelId: string;
|
|
1144
|
-
text: string;
|
|
1145
|
-
voice?: string | undefined;
|
|
1146
|
-
output?: {
|
|
1147
|
-
format?: "mp3" | "wav" | "pcm" | "opus" | undefined;
|
|
1148
|
-
sampleRate?: number | undefined;
|
|
1149
|
-
} | undefined;
|
|
1150
|
-
parameters?: Record<string, unknown> | undefined;
|
|
1151
|
-
}, {
|
|
1152
|
-
success: false;
|
|
1153
|
-
message: string;
|
|
1154
|
-
code?: string | undefined;
|
|
1155
|
-
} | {
|
|
1156
|
-
success: true;
|
|
1157
|
-
data: {
|
|
1158
|
-
taskId: string;
|
|
1159
|
-
};
|
|
1160
|
-
}>;
|
|
1161
|
-
readonly task: (taskId: string) => Endpoint<void, {
|
|
1162
|
-
success: false;
|
|
1163
|
-
message: string;
|
|
1164
|
-
code?: string | undefined;
|
|
1165
|
-
} | {
|
|
1166
|
-
success: true;
|
|
1167
|
-
data: {
|
|
1168
|
-
status: "queued" | "running" | "succeeded" | "failed" | "canceled";
|
|
1169
|
-
progress?: number | undefined;
|
|
1170
|
-
resultType?: "image" | "video" | "audio" | undefined;
|
|
1171
|
-
resultUrls?: string[] | undefined;
|
|
1172
|
-
error?: {
|
|
1173
|
-
message: string;
|
|
1174
|
-
code?: string | undefined;
|
|
1175
|
-
} | undefined;
|
|
1176
|
-
creditsConsumed?: number | undefined;
|
|
1177
|
-
};
|
|
1178
|
-
}>;
|
|
1179
|
-
readonly cancelTask: (taskId: string) => Endpoint<void, {
|
|
1180
|
-
success: false;
|
|
1181
|
-
message: string;
|
|
1182
|
-
code?: string | undefined;
|
|
1183
|
-
} | {
|
|
1184
|
-
success: true;
|
|
1185
|
-
data: {
|
|
1186
|
-
status: "canceled" | "processing";
|
|
1187
|
-
};
|
|
1188
|
-
}>;
|
|
1189
|
-
readonly imageModels: Endpoint<void, {
|
|
605
|
+
readonly chatModels: Endpoint<void, {
|
|
1190
606
|
success: false;
|
|
1191
607
|
message: string;
|
|
1192
608
|
code?: string | undefined;
|
|
@@ -1194,12 +610,11 @@ declare const aiEndpoints: {
|
|
|
1194
610
|
success: true;
|
|
1195
611
|
data: {
|
|
1196
612
|
data: {
|
|
1197
|
-
[x: string]: unknown;
|
|
1198
613
|
id: string;
|
|
1199
|
-
|
|
614
|
+
provider: string;
|
|
615
|
+
displayName: string;
|
|
616
|
+
tags: string[];
|
|
1200
617
|
familyId?: string | undefined;
|
|
1201
|
-
providerId?: string | undefined;
|
|
1202
|
-
tags?: string[] | undefined;
|
|
1203
618
|
capabilities?: {
|
|
1204
619
|
common?: {
|
|
1205
620
|
maxContextK?: number | undefined;
|
|
@@ -1233,1629 +648,250 @@ declare const aiEndpoints: {
|
|
|
1233
648
|
supportsAudio?: boolean | undefined;
|
|
1234
649
|
} | undefined;
|
|
1235
650
|
} | undefined;
|
|
1236
|
-
creditsPerCall?: number | undefined;
|
|
1237
651
|
}[];
|
|
1238
652
|
updatedAt?: string | undefined;
|
|
1239
653
|
};
|
|
1240
654
|
}>;
|
|
1241
|
-
readonly
|
|
655
|
+
readonly modelsUpdatedAt: Endpoint<void, {
|
|
1242
656
|
success: false;
|
|
1243
657
|
message: string;
|
|
1244
658
|
code?: string | undefined;
|
|
1245
659
|
} | {
|
|
1246
660
|
success: true;
|
|
1247
661
|
data: {
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
providerId?: string | undefined;
|
|
1254
|
-
tags?: string[] | undefined;
|
|
1255
|
-
capabilities?: {
|
|
1256
|
-
common?: {
|
|
1257
|
-
maxContextK?: number | undefined;
|
|
1258
|
-
supportsStructuredOutput?: boolean | undefined;
|
|
1259
|
-
supportsWebSearch?: boolean | undefined;
|
|
1260
|
-
} | undefined;
|
|
1261
|
-
params?: {
|
|
1262
|
-
features?: string[] | undefined;
|
|
1263
|
-
fields?: {
|
|
1264
|
-
key: string;
|
|
1265
|
-
title: string;
|
|
1266
|
-
type: "number" | "boolean" | "text" | "select";
|
|
1267
|
-
request: boolean;
|
|
1268
|
-
description?: string | undefined;
|
|
1269
|
-
unit?: string | undefined;
|
|
1270
|
-
values?: (string | number | boolean)[] | undefined;
|
|
1271
|
-
min?: number | undefined;
|
|
1272
|
-
max?: number | undefined;
|
|
1273
|
-
step?: number | undefined;
|
|
1274
|
-
default?: string | number | boolean | undefined;
|
|
1275
|
-
}[] | undefined;
|
|
1276
|
-
} | undefined;
|
|
1277
|
-
input?: {
|
|
1278
|
-
maxImages?: number | undefined;
|
|
1279
|
-
supportsMask?: boolean | undefined;
|
|
1280
|
-
supportsReferenceVideo?: boolean | undefined;
|
|
1281
|
-
supportsStartEnd?: boolean | undefined;
|
|
1282
|
-
} | undefined;
|
|
1283
|
-
output?: {
|
|
1284
|
-
supportsMulti?: boolean | undefined;
|
|
1285
|
-
supportsAudio?: boolean | undefined;
|
|
1286
|
-
} | undefined;
|
|
1287
|
-
} | undefined;
|
|
1288
|
-
creditsPerCall?: number | undefined;
|
|
1289
|
-
}[];
|
|
1290
|
-
updatedAt?: string | undefined;
|
|
662
|
+
chatUpdatedAt: string;
|
|
663
|
+
imageUpdatedAt: string;
|
|
664
|
+
videoUpdatedAt: string;
|
|
665
|
+
latestUpdatedAt: string;
|
|
666
|
+
audioUpdatedAt?: string | undefined;
|
|
1291
667
|
};
|
|
1292
668
|
}>;
|
|
1293
|
-
readonly
|
|
669
|
+
readonly providerTemplates: Endpoint<void, {
|
|
1294
670
|
success: false;
|
|
1295
671
|
message: string;
|
|
1296
672
|
code?: string | undefined;
|
|
1297
673
|
} | {
|
|
1298
674
|
success: true;
|
|
1299
675
|
data: {
|
|
1300
|
-
|
|
1301
|
-
[x: string]: unknown;
|
|
676
|
+
providers: {
|
|
1302
677
|
id: string;
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
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;
|
|
1312
719
|
} | undefined;
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
type: "number" | "boolean" | "text" | "select";
|
|
1319
|
-
request: boolean;
|
|
1320
|
-
description?: string | undefined;
|
|
1321
|
-
unit?: string | undefined;
|
|
1322
|
-
values?: (string | number | boolean)[] | undefined;
|
|
1323
|
-
min?: number | undefined;
|
|
1324
|
-
max?: number | undefined;
|
|
1325
|
-
step?: number | undefined;
|
|
1326
|
-
default?: string | number | boolean | undefined;
|
|
1327
|
-
}[] | undefined;
|
|
1328
|
-
} | undefined;
|
|
1329
|
-
input?: {
|
|
1330
|
-
maxImages?: number | undefined;
|
|
1331
|
-
supportsMask?: boolean | undefined;
|
|
1332
|
-
supportsReferenceVideo?: boolean | undefined;
|
|
1333
|
-
supportsStartEnd?: boolean | undefined;
|
|
1334
|
-
} | undefined;
|
|
1335
|
-
output?: {
|
|
1336
|
-
supportsMulti?: boolean | undefined;
|
|
1337
|
-
supportsAudio?: boolean | undefined;
|
|
1338
|
-
} | undefined;
|
|
1339
|
-
} | undefined;
|
|
1340
|
-
creditsPerCall?: number | undefined;
|
|
720
|
+
}[];
|
|
721
|
+
apiUrl?: string | undefined;
|
|
722
|
+
authType?: string | undefined;
|
|
723
|
+
websiteUrl?: string | null | undefined;
|
|
724
|
+
docUrl?: string | null | undefined;
|
|
1341
725
|
}[];
|
|
1342
726
|
updatedAt?: string | undefined;
|
|
1343
727
|
};
|
|
1344
728
|
}>;
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
message: string;
|
|
1348
|
-
code?: string | undefined;
|
|
1349
|
-
} | {
|
|
729
|
+
/** Get image capabilities (features + variants). */
|
|
730
|
+
readonly v3ImageCapabilities: Endpoint<void, {
|
|
1350
731
|
success: true;
|
|
1351
732
|
data: {
|
|
1352
|
-
|
|
733
|
+
category: string;
|
|
734
|
+
features: {
|
|
1353
735
|
id: string;
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
supportsStructuredOutput?: boolean | undefined;
|
|
1362
|
-
supportsWebSearch?: boolean | undefined;
|
|
1363
|
-
} | undefined;
|
|
1364
|
-
params?: {
|
|
1365
|
-
features?: string[] | undefined;
|
|
1366
|
-
fields?: {
|
|
1367
|
-
key: string;
|
|
1368
|
-
title: string;
|
|
1369
|
-
type: "number" | "boolean" | "text" | "select";
|
|
1370
|
-
request: boolean;
|
|
1371
|
-
description?: string | undefined;
|
|
1372
|
-
unit?: string | undefined;
|
|
1373
|
-
values?: (string | number | boolean)[] | undefined;
|
|
1374
|
-
min?: number | undefined;
|
|
1375
|
-
max?: number | undefined;
|
|
1376
|
-
step?: number | undefined;
|
|
1377
|
-
default?: string | number | boolean | undefined;
|
|
1378
|
-
}[] | undefined;
|
|
1379
|
-
} | undefined;
|
|
1380
|
-
input?: {
|
|
1381
|
-
maxImages?: number | undefined;
|
|
1382
|
-
supportsMask?: boolean | undefined;
|
|
1383
|
-
supportsReferenceVideo?: boolean | undefined;
|
|
1384
|
-
supportsStartEnd?: boolean | undefined;
|
|
1385
|
-
} | undefined;
|
|
1386
|
-
output?: {
|
|
1387
|
-
supportsMulti?: boolean | undefined;
|
|
1388
|
-
supportsAudio?: boolean | undefined;
|
|
1389
|
-
} | undefined;
|
|
1390
|
-
} | undefined;
|
|
736
|
+
variants: {
|
|
737
|
+
id: string;
|
|
738
|
+
preference: string;
|
|
739
|
+
creditsPerCall: number;
|
|
740
|
+
billingType: string;
|
|
741
|
+
minMembershipLevel: string;
|
|
742
|
+
}[];
|
|
1391
743
|
}[];
|
|
1392
744
|
updatedAt?: string | undefined;
|
|
1393
745
|
};
|
|
1394
746
|
}>;
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
message: string;
|
|
1398
|
-
code?: string | undefined;
|
|
1399
|
-
} | {
|
|
747
|
+
/** Get video capabilities (features + variants). */
|
|
748
|
+
readonly v3VideoCapabilities: Endpoint<void, {
|
|
1400
749
|
success: true;
|
|
1401
750
|
data: {
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
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;
|
|
1407
763
|
};
|
|
1408
764
|
}>;
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
message: string;
|
|
1412
|
-
code?: string | undefined;
|
|
1413
|
-
} | {
|
|
765
|
+
/** Get audio capabilities (features + variants). */
|
|
766
|
+
readonly v3AudioCapabilities: Endpoint<void, {
|
|
1414
767
|
success: true;
|
|
1415
768
|
data: {
|
|
1416
|
-
|
|
769
|
+
category: string;
|
|
770
|
+
features: {
|
|
1417
771
|
id: string;
|
|
1418
|
-
|
|
1419
|
-
adapter: string;
|
|
1420
|
-
models: {
|
|
772
|
+
variants: {
|
|
1421
773
|
id: string;
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
familyId?: string | undefined;
|
|
1427
|
-
capabilities?: {
|
|
1428
|
-
common?: {
|
|
1429
|
-
maxContextK?: number | undefined;
|
|
1430
|
-
supportsStructuredOutput?: boolean | undefined;
|
|
1431
|
-
supportsWebSearch?: boolean | undefined;
|
|
1432
|
-
} | undefined;
|
|
1433
|
-
params?: {
|
|
1434
|
-
features?: string[] | undefined;
|
|
1435
|
-
fields?: {
|
|
1436
|
-
key: string;
|
|
1437
|
-
title: string;
|
|
1438
|
-
type: "number" | "boolean" | "text" | "select";
|
|
1439
|
-
request: boolean;
|
|
1440
|
-
description?: string | undefined;
|
|
1441
|
-
unit?: string | undefined;
|
|
1442
|
-
values?: (string | number | boolean)[] | undefined;
|
|
1443
|
-
min?: number | undefined;
|
|
1444
|
-
max?: number | undefined;
|
|
1445
|
-
step?: number | undefined;
|
|
1446
|
-
default?: string | number | boolean | undefined;
|
|
1447
|
-
}[] | undefined;
|
|
1448
|
-
} | undefined;
|
|
1449
|
-
input?: {
|
|
1450
|
-
maxImages?: number | undefined;
|
|
1451
|
-
supportsMask?: boolean | undefined;
|
|
1452
|
-
supportsReferenceVideo?: boolean | undefined;
|
|
1453
|
-
supportsStartEnd?: boolean | undefined;
|
|
1454
|
-
} | undefined;
|
|
1455
|
-
output?: {
|
|
1456
|
-
supportsMulti?: boolean | undefined;
|
|
1457
|
-
supportsAudio?: boolean | undefined;
|
|
1458
|
-
} | undefined;
|
|
1459
|
-
} | undefined;
|
|
774
|
+
preference: string;
|
|
775
|
+
creditsPerCall: number;
|
|
776
|
+
billingType: string;
|
|
777
|
+
minMembershipLevel: string;
|
|
1460
778
|
}[];
|
|
1461
|
-
apiUrl?: string | undefined;
|
|
1462
|
-
authType?: string | undefined;
|
|
1463
|
-
websiteUrl?: string | null | undefined;
|
|
1464
|
-
docUrl?: string | null | undefined;
|
|
1465
779
|
}[];
|
|
1466
780
|
updatedAt?: string | undefined;
|
|
1467
781
|
};
|
|
1468
782
|
}>;
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
feature:
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
inputs?: {
|
|
1476
|
-
images?: {
|
|
1477
|
-
url?: string | undefined;
|
|
1478
|
-
base64?: string | undefined;
|
|
1479
|
-
mediaType?: string | undefined;
|
|
1480
|
-
}[] | undefined;
|
|
1481
|
-
isSketch?: boolean | undefined;
|
|
1482
|
-
} | undefined;
|
|
1483
|
-
count?: 2 | 1 | 4 | undefined;
|
|
1484
|
-
quality?: "standard" | "hd" | "draft" | undefined;
|
|
1485
|
-
seed?: number | undefined;
|
|
1486
|
-
style?: string | undefined;
|
|
1487
|
-
negativePrompt?: string | undefined;
|
|
1488
|
-
parameters?: Record<string, unknown> | undefined;
|
|
1489
|
-
} | {
|
|
1490
|
-
title: string;
|
|
1491
|
-
prompt: string;
|
|
1492
|
-
feature: "poster";
|
|
1493
|
-
subTitle?: string | undefined;
|
|
1494
|
-
bodyText?: string | undefined;
|
|
1495
|
-
aspectRatio?: "1:1" | "16:9" | "9:16" | "4:3" | "3:2" | undefined;
|
|
1496
|
-
count?: 2 | 1 | 4 | undefined;
|
|
1497
|
-
quality?: "standard" | "hd" | "draft" | undefined;
|
|
1498
|
-
seed?: number | undefined;
|
|
1499
|
-
style?: string | undefined;
|
|
1500
|
-
negativePrompt?: string | undefined;
|
|
1501
|
-
parameters?: Record<string, unknown> | undefined;
|
|
1502
|
-
} | {
|
|
1503
|
-
mode: "instruct" | "stylize" | "colorize" | "inpaint" | "erase" | "eraseWatermark";
|
|
1504
|
-
inputs: {
|
|
1505
|
-
image: {
|
|
1506
|
-
url?: string | undefined;
|
|
1507
|
-
base64?: string | undefined;
|
|
1508
|
-
mediaType?: string | undefined;
|
|
1509
|
-
};
|
|
1510
|
-
mask?: {
|
|
1511
|
-
url?: string | undefined;
|
|
1512
|
-
base64?: string | undefined;
|
|
1513
|
-
mediaType?: string | undefined;
|
|
1514
|
-
} | undefined;
|
|
1515
|
-
};
|
|
1516
|
-
feature: "imageEdit";
|
|
1517
|
-
prompt?: string | undefined;
|
|
1518
|
-
strength?: number | undefined;
|
|
1519
|
-
count?: 2 | 1 | 4 | undefined;
|
|
1520
|
-
quality?: "standard" | "hd" | "draft" | undefined;
|
|
1521
|
-
seed?: number | undefined;
|
|
1522
|
-
style?: string | undefined;
|
|
1523
|
-
negativePrompt?: string | undefined;
|
|
1524
|
-
parameters?: Record<string, unknown> | undefined;
|
|
1525
|
-
} | {
|
|
1526
|
-
scale: 2 | 4;
|
|
1527
|
-
inputs: {
|
|
1528
|
-
image: {
|
|
1529
|
-
url?: string | undefined;
|
|
1530
|
-
base64?: string | undefined;
|
|
1531
|
-
mediaType?: string | undefined;
|
|
1532
|
-
};
|
|
1533
|
-
};
|
|
1534
|
-
feature: "upscale";
|
|
1535
|
-
count?: 2 | 1 | 4 | undefined;
|
|
1536
|
-
quality?: "standard" | "hd" | "draft" | undefined;
|
|
1537
|
-
seed?: number | undefined;
|
|
1538
|
-
style?: string | undefined;
|
|
1539
|
-
negativePrompt?: string | undefined;
|
|
1540
|
-
parameters?: Record<string, unknown> | undefined;
|
|
1541
|
-
} | {
|
|
1542
|
-
inputs: {
|
|
1543
|
-
image: {
|
|
1544
|
-
url?: string | undefined;
|
|
1545
|
-
base64?: string | undefined;
|
|
1546
|
-
mediaType?: string | undefined;
|
|
1547
|
-
};
|
|
1548
|
-
};
|
|
1549
|
-
direction: {
|
|
1550
|
-
top?: number | undefined;
|
|
1551
|
-
bottom?: number | undefined;
|
|
1552
|
-
left?: number | undefined;
|
|
1553
|
-
right?: number | undefined;
|
|
1554
|
-
};
|
|
1555
|
-
feature: "outpaint";
|
|
1556
|
-
prompt?: string | undefined;
|
|
1557
|
-
count?: 2 | 1 | 4 | undefined;
|
|
1558
|
-
quality?: "standard" | "hd" | "draft" | undefined;
|
|
1559
|
-
seed?: number | undefined;
|
|
1560
|
-
style?: string | undefined;
|
|
1561
|
-
negativePrompt?: string | undefined;
|
|
1562
|
-
parameters?: Record<string, unknown> | undefined;
|
|
1563
|
-
} | {
|
|
1564
|
-
prompt: string;
|
|
1565
|
-
duration: 5 | 10 | 15;
|
|
1566
|
-
feature: "videoGenerate";
|
|
1567
|
-
aspectRatio?: "1:1" | "16:9" | "9:16" | "4:3" | "3:2" | undefined;
|
|
1568
|
-
mode?: "text" | "withAudio" | "reference" | "firstFrame" | "startEnd" | "storyboard" | "motionControl" | undefined;
|
|
1569
|
-
inputs?: {
|
|
1570
|
-
startImage?: {
|
|
1571
|
-
url?: string | undefined;
|
|
1572
|
-
base64?: string | undefined;
|
|
1573
|
-
mediaType?: string | undefined;
|
|
1574
|
-
} | undefined;
|
|
1575
|
-
endImage?: {
|
|
1576
|
-
url?: string | undefined;
|
|
1577
|
-
base64?: string | undefined;
|
|
1578
|
-
mediaType?: string | undefined;
|
|
1579
|
-
} | undefined;
|
|
1580
|
-
images?: {
|
|
1581
|
-
url?: string | undefined;
|
|
1582
|
-
base64?: string | undefined;
|
|
1583
|
-
mediaType?: string | undefined;
|
|
1584
|
-
}[] | undefined;
|
|
1585
|
-
scenes?: {
|
|
1586
|
-
prompt: string;
|
|
1587
|
-
image?: {
|
|
1588
|
-
url?: string | undefined;
|
|
1589
|
-
base64?: string | undefined;
|
|
1590
|
-
mediaType?: string | undefined;
|
|
1591
|
-
} | undefined;
|
|
1592
|
-
}[] | undefined;
|
|
1593
|
-
} | undefined;
|
|
1594
|
-
withAudio?: boolean | undefined;
|
|
1595
|
-
motionPaths?: {
|
|
1596
|
-
startX: number;
|
|
1597
|
-
startY: number;
|
|
1598
|
-
endX: number;
|
|
1599
|
-
endY: number;
|
|
1600
|
-
strength?: number | undefined;
|
|
1601
|
-
}[] | undefined;
|
|
1602
|
-
camera?: {
|
|
1603
|
-
type: "pan" | "zoom" | "rotate" | "dolly" | "tilt";
|
|
1604
|
-
direction?: string | undefined;
|
|
1605
|
-
intensity?: number | undefined;
|
|
1606
|
-
} | undefined;
|
|
1607
|
-
count?: 2 | 1 | 4 | undefined;
|
|
1608
|
-
quality?: "standard" | "hd" | "draft" | undefined;
|
|
1609
|
-
seed?: number | undefined;
|
|
1610
|
-
style?: string | undefined;
|
|
1611
|
-
negativePrompt?: string | undefined;
|
|
1612
|
-
parameters?: Record<string, unknown> | undefined;
|
|
1613
|
-
} | {
|
|
1614
|
-
mode: "photo2video" | "lipSync";
|
|
1615
|
-
inputs: {
|
|
1616
|
-
person: {
|
|
1617
|
-
url?: string | undefined;
|
|
1618
|
-
base64?: string | undefined;
|
|
1619
|
-
mediaType?: string | undefined;
|
|
1620
|
-
};
|
|
1621
|
-
audio: {
|
|
1622
|
-
url?: string | undefined;
|
|
1623
|
-
base64?: string | undefined;
|
|
1624
|
-
mediaType?: string | undefined;
|
|
1625
|
-
};
|
|
1626
|
-
};
|
|
1627
|
-
feature: "digitalHuman";
|
|
1628
|
-
count?: 2 | 1 | 4 | undefined;
|
|
1629
|
-
quality?: "standard" | "hd" | "draft" | undefined;
|
|
1630
|
-
seed?: number | undefined;
|
|
1631
|
-
style?: string | undefined;
|
|
1632
|
-
negativePrompt?: string | undefined;
|
|
1633
|
-
parameters?: Record<string, unknown> | undefined;
|
|
1634
|
-
} | {
|
|
1635
|
-
text: string;
|
|
1636
|
-
feature: "tts";
|
|
1637
|
-
voice?: string | undefined;
|
|
1638
|
-
referenceAudio?: {
|
|
1639
|
-
url?: string | undefined;
|
|
1640
|
-
base64?: string | undefined;
|
|
1641
|
-
mediaType?: string | undefined;
|
|
1642
|
-
} | undefined;
|
|
1643
|
-
output?: {
|
|
1644
|
-
format?: "mp3" | "wav" | "opus" | undefined;
|
|
1645
|
-
sampleRate?: number | undefined;
|
|
1646
|
-
} | 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;
|
|
1647
789
|
count?: 2 | 1 | 4 | undefined;
|
|
1648
|
-
quality?: "standard" | "hd" | "draft" | undefined;
|
|
1649
790
|
seed?: number | undefined;
|
|
1650
|
-
style?: string | undefined;
|
|
1651
|
-
negativePrompt?: string | undefined;
|
|
1652
|
-
parameters?: Record<string, unknown> | undefined;
|
|
1653
791
|
}, {
|
|
1654
|
-
success: false;
|
|
1655
|
-
message: string;
|
|
1656
|
-
code?: string | undefined;
|
|
1657
|
-
} | {
|
|
1658
792
|
success: true;
|
|
1659
793
|
data: {
|
|
1660
794
|
taskId: string;
|
|
795
|
+
} | {
|
|
796
|
+
groupId: string;
|
|
797
|
+
taskIds: string[];
|
|
1661
798
|
};
|
|
1662
799
|
}>;
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
message: string;
|
|
1666
|
-
code?: string | undefined;
|
|
1667
|
-
} | {
|
|
800
|
+
/** Get v3 task status by ID. */
|
|
801
|
+
readonly v3Task: (taskId: string) => Endpoint<void, {
|
|
1668
802
|
success: true;
|
|
1669
803
|
data: {
|
|
804
|
+
taskId: string;
|
|
1670
805
|
status: "queued" | "running" | "succeeded" | "failed" | "canceled";
|
|
1671
|
-
progress?: number | undefined;
|
|
1672
|
-
resultType?: "image" | "video" | "audio" | undefined;
|
|
1673
806
|
resultUrls?: string[] | undefined;
|
|
807
|
+
resultText?: string | undefined;
|
|
808
|
+
creditsConsumed?: number | undefined;
|
|
1674
809
|
error?: {
|
|
1675
810
|
message: string;
|
|
1676
811
|
code?: string | undefined;
|
|
1677
812
|
} | undefined;
|
|
1678
|
-
creditsConsumed?: number | undefined;
|
|
1679
|
-
};
|
|
1680
|
-
}>;
|
|
1681
|
-
readonly mediaCancelTask: (taskId: string) => Endpoint<void, {
|
|
1682
|
-
success: false;
|
|
1683
|
-
message: string;
|
|
1684
|
-
code?: string | undefined;
|
|
1685
|
-
} | {
|
|
1686
|
-
success: true;
|
|
1687
|
-
data: {
|
|
1688
|
-
status: "canceled" | "processing";
|
|
1689
|
-
};
|
|
1690
|
-
}>;
|
|
1691
|
-
readonly mediaTaskGroup: (groupId: string) => Endpoint<void, {
|
|
1692
|
-
success: false;
|
|
1693
|
-
message: string;
|
|
1694
|
-
code?: string | undefined;
|
|
1695
|
-
} | {
|
|
1696
|
-
success: true;
|
|
1697
|
-
data: {
|
|
1698
|
-
groupId: string;
|
|
1699
|
-
tasks: {
|
|
1700
|
-
taskId: string;
|
|
1701
|
-
status: "queued" | "running" | "succeeded" | "failed" | "canceled";
|
|
1702
|
-
resultUrls?: string[] | undefined;
|
|
1703
|
-
error?: {
|
|
1704
|
-
message: string;
|
|
1705
|
-
code?: string | undefined;
|
|
1706
|
-
} | undefined;
|
|
1707
|
-
creditsConsumed?: number | undefined;
|
|
1708
|
-
}[];
|
|
1709
|
-
totalCreditsConsumed?: number | undefined;
|
|
1710
813
|
};
|
|
1711
814
|
}>;
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
success: true;
|
|
1720
|
-
data: {
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
} | undefined;
|
|
1761
|
-
creditsPerCall?: number | undefined;
|
|
1762
|
-
}[];
|
|
1763
|
-
updatedAt?: string | undefined;
|
|
1764
|
-
};
|
|
1765
|
-
}>;
|
|
1766
|
-
};
|
|
1767
|
-
|
|
1768
|
-
/** Supported media generation features. */
|
|
1769
|
-
declare const mediaFeatureSchema: z.ZodEnum<{
|
|
1770
|
-
imageGenerate: "imageGenerate";
|
|
1771
|
-
poster: "poster";
|
|
1772
|
-
imageEdit: "imageEdit";
|
|
1773
|
-
upscale: "upscale";
|
|
1774
|
-
outpaint: "outpaint";
|
|
1775
|
-
videoGenerate: "videoGenerate";
|
|
1776
|
-
digitalHuman: "digitalHuman";
|
|
1777
|
-
tts: "tts";
|
|
1778
|
-
}>;
|
|
1779
|
-
/** Supported aspect ratios for media output. */
|
|
1780
|
-
declare const mediaAspectRatioSchema: z.ZodEnum<{
|
|
1781
|
-
"1:1": "1:1";
|
|
1782
|
-
"16:9": "16:9";
|
|
1783
|
-
"9:16": "9:16";
|
|
1784
|
-
"4:3": "4:3";
|
|
1785
|
-
"3:2": "3:2";
|
|
1786
|
-
}>;
|
|
1787
|
-
/** Supported output resolutions. */
|
|
1788
|
-
declare const mediaResolutionSchema: z.ZodEnum<{
|
|
1789
|
-
"1K": "1K";
|
|
1790
|
-
"2K": "2K";
|
|
1791
|
-
"4K": "4K";
|
|
1792
|
-
}>;
|
|
1793
|
-
/** Output quality levels. */
|
|
1794
|
-
declare const mediaQualitySchema: z.ZodEnum<{
|
|
1795
|
-
standard: "standard";
|
|
1796
|
-
hd: "hd";
|
|
1797
|
-
draft: "draft";
|
|
1798
|
-
}>;
|
|
1799
|
-
/**
|
|
1800
|
-
* Base media generate request schema (standalone, for reference/docs only).
|
|
1801
|
-
* 不直接用于 discriminatedUnion,仅作为公共字段的 schema 化参考。
|
|
1802
|
-
*/
|
|
1803
|
-
declare const mediaGenerateBaseSchema: z.ZodObject<{
|
|
1804
|
-
count: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
|
|
1805
|
-
quality: z.ZodOptional<z.ZodEnum<{
|
|
1806
|
-
standard: "standard";
|
|
1807
|
-
hd: "hd";
|
|
1808
|
-
draft: "draft";
|
|
1809
|
-
}>>;
|
|
1810
|
-
seed: z.ZodOptional<z.ZodNumber>;
|
|
1811
|
-
style: z.ZodOptional<z.ZodString>;
|
|
1812
|
-
negativePrompt: z.ZodOptional<z.ZodString>;
|
|
1813
|
-
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1814
|
-
feature: z.ZodEnum<{
|
|
1815
|
-
imageGenerate: "imageGenerate";
|
|
1816
|
-
poster: "poster";
|
|
1817
|
-
imageEdit: "imageEdit";
|
|
1818
|
-
upscale: "upscale";
|
|
1819
|
-
outpaint: "outpaint";
|
|
1820
|
-
videoGenerate: "videoGenerate";
|
|
1821
|
-
digitalHuman: "digitalHuman";
|
|
1822
|
-
tts: "tts";
|
|
1823
|
-
}>;
|
|
1824
|
-
}, z.core.$strip>;
|
|
1825
|
-
/** F01: Image generation request. */
|
|
1826
|
-
declare const imageGenerateRequestSchema: z.ZodObject<{
|
|
1827
|
-
prompt: z.ZodString;
|
|
1828
|
-
aspectRatio: z.ZodOptional<z.ZodEnum<{
|
|
1829
|
-
"1:1": "1:1";
|
|
1830
|
-
"16:9": "16:9";
|
|
1831
|
-
"9:16": "9:16";
|
|
1832
|
-
"4:3": "4:3";
|
|
1833
|
-
"3:2": "3:2";
|
|
1834
|
-
}>>;
|
|
1835
|
-
resolution: z.ZodOptional<z.ZodEnum<{
|
|
1836
|
-
"1K": "1K";
|
|
1837
|
-
"2K": "2K";
|
|
1838
|
-
"4K": "4K";
|
|
1839
|
-
}>>;
|
|
1840
|
-
mode: z.ZodOptional<z.ZodEnum<{
|
|
1841
|
-
text: "text";
|
|
1842
|
-
reference: "reference";
|
|
1843
|
-
sketch: "sketch";
|
|
1844
|
-
character: "character";
|
|
1845
|
-
}>>;
|
|
1846
|
-
inputs: z.ZodOptional<z.ZodObject<{
|
|
1847
|
-
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1848
|
-
url: z.ZodOptional<z.ZodString>;
|
|
1849
|
-
base64: z.ZodOptional<z.ZodString>;
|
|
1850
|
-
mediaType: z.ZodOptional<z.ZodString>;
|
|
1851
|
-
}, z.core.$strip>>>;
|
|
1852
|
-
isSketch: z.ZodOptional<z.ZodBoolean>;
|
|
1853
|
-
}, z.core.$strip>>;
|
|
1854
|
-
count: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
|
|
1855
|
-
quality: z.ZodOptional<z.ZodEnum<{
|
|
1856
|
-
standard: "standard";
|
|
1857
|
-
hd: "hd";
|
|
1858
|
-
draft: "draft";
|
|
1859
|
-
}>>;
|
|
1860
|
-
seed: z.ZodOptional<z.ZodNumber>;
|
|
1861
|
-
style: z.ZodOptional<z.ZodString>;
|
|
1862
|
-
negativePrompt: z.ZodOptional<z.ZodString>;
|
|
1863
|
-
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1864
|
-
feature: z.ZodLiteral<"imageGenerate">;
|
|
1865
|
-
}, z.core.$strip>;
|
|
1866
|
-
/** F02: Poster generation request. */
|
|
1867
|
-
declare const posterRequestSchema: z.ZodObject<{
|
|
1868
|
-
title: z.ZodString;
|
|
1869
|
-
subTitle: z.ZodOptional<z.ZodString>;
|
|
1870
|
-
bodyText: z.ZodOptional<z.ZodString>;
|
|
1871
|
-
prompt: z.ZodString;
|
|
1872
|
-
aspectRatio: z.ZodOptional<z.ZodEnum<{
|
|
1873
|
-
"1:1": "1:1";
|
|
1874
|
-
"16:9": "16:9";
|
|
1875
|
-
"9:16": "9:16";
|
|
1876
|
-
"4:3": "4:3";
|
|
1877
|
-
"3:2": "3:2";
|
|
1878
|
-
}>>;
|
|
1879
|
-
count: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
|
|
1880
|
-
quality: z.ZodOptional<z.ZodEnum<{
|
|
1881
|
-
standard: "standard";
|
|
1882
|
-
hd: "hd";
|
|
1883
|
-
draft: "draft";
|
|
1884
|
-
}>>;
|
|
1885
|
-
seed: z.ZodOptional<z.ZodNumber>;
|
|
1886
|
-
style: z.ZodOptional<z.ZodString>;
|
|
1887
|
-
negativePrompt: z.ZodOptional<z.ZodString>;
|
|
1888
|
-
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1889
|
-
feature: z.ZodLiteral<"poster">;
|
|
1890
|
-
}, z.core.$strip>;
|
|
1891
|
-
/** F03: Image editing request. */
|
|
1892
|
-
declare const imageEditRequestSchema: z.ZodObject<{
|
|
1893
|
-
prompt: z.ZodOptional<z.ZodString>;
|
|
1894
|
-
mode: z.ZodEnum<{
|
|
1895
|
-
instruct: "instruct";
|
|
1896
|
-
stylize: "stylize";
|
|
1897
|
-
colorize: "colorize";
|
|
1898
|
-
inpaint: "inpaint";
|
|
1899
|
-
erase: "erase";
|
|
1900
|
-
eraseWatermark: "eraseWatermark";
|
|
1901
|
-
}>;
|
|
1902
|
-
inputs: z.ZodObject<{
|
|
1903
|
-
image: z.ZodObject<{
|
|
1904
|
-
url: z.ZodOptional<z.ZodString>;
|
|
1905
|
-
base64: z.ZodOptional<z.ZodString>;
|
|
1906
|
-
mediaType: z.ZodOptional<z.ZodString>;
|
|
1907
|
-
}, z.core.$strip>;
|
|
1908
|
-
mask: z.ZodOptional<z.ZodObject<{
|
|
1909
|
-
url: z.ZodOptional<z.ZodString>;
|
|
1910
|
-
base64: z.ZodOptional<z.ZodString>;
|
|
1911
|
-
mediaType: z.ZodOptional<z.ZodString>;
|
|
1912
|
-
}, z.core.$strip>>;
|
|
1913
|
-
}, z.core.$strip>;
|
|
1914
|
-
strength: z.ZodOptional<z.ZodNumber>;
|
|
1915
|
-
count: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
|
|
1916
|
-
quality: z.ZodOptional<z.ZodEnum<{
|
|
1917
|
-
standard: "standard";
|
|
1918
|
-
hd: "hd";
|
|
1919
|
-
draft: "draft";
|
|
1920
|
-
}>>;
|
|
1921
|
-
seed: z.ZodOptional<z.ZodNumber>;
|
|
1922
|
-
style: z.ZodOptional<z.ZodString>;
|
|
1923
|
-
negativePrompt: z.ZodOptional<z.ZodString>;
|
|
1924
|
-
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1925
|
-
feature: z.ZodLiteral<"imageEdit">;
|
|
1926
|
-
}, z.core.$strip>;
|
|
1927
|
-
/** F04: Image upscale request. */
|
|
1928
|
-
declare const upscaleRequestSchema: z.ZodObject<{
|
|
1929
|
-
scale: z.ZodUnion<readonly [z.ZodLiteral<2>, z.ZodLiteral<4>]>;
|
|
1930
|
-
inputs: z.ZodObject<{
|
|
1931
|
-
image: z.ZodObject<{
|
|
1932
|
-
url: z.ZodOptional<z.ZodString>;
|
|
1933
|
-
base64: z.ZodOptional<z.ZodString>;
|
|
1934
|
-
mediaType: z.ZodOptional<z.ZodString>;
|
|
1935
|
-
}, z.core.$strip>;
|
|
1936
|
-
}, z.core.$strip>;
|
|
1937
|
-
count: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
|
|
1938
|
-
quality: z.ZodOptional<z.ZodEnum<{
|
|
1939
|
-
standard: "standard";
|
|
1940
|
-
hd: "hd";
|
|
1941
|
-
draft: "draft";
|
|
1942
|
-
}>>;
|
|
1943
|
-
seed: z.ZodOptional<z.ZodNumber>;
|
|
1944
|
-
style: z.ZodOptional<z.ZodString>;
|
|
1945
|
-
negativePrompt: z.ZodOptional<z.ZodString>;
|
|
1946
|
-
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1947
|
-
feature: z.ZodLiteral<"upscale">;
|
|
1948
|
-
}, z.core.$strip>;
|
|
1949
|
-
/** F05: Image outpaint (canvas expansion) request. */
|
|
1950
|
-
declare const outpaintRequestSchema: z.ZodObject<{
|
|
1951
|
-
prompt: z.ZodOptional<z.ZodString>;
|
|
1952
|
-
inputs: z.ZodObject<{
|
|
1953
|
-
image: z.ZodObject<{
|
|
1954
|
-
url: z.ZodOptional<z.ZodString>;
|
|
1955
|
-
base64: z.ZodOptional<z.ZodString>;
|
|
1956
|
-
mediaType: z.ZodOptional<z.ZodString>;
|
|
1957
|
-
}, z.core.$strip>;
|
|
1958
|
-
}, z.core.$strip>;
|
|
1959
|
-
direction: z.ZodObject<{
|
|
1960
|
-
top: z.ZodOptional<z.ZodNumber>;
|
|
1961
|
-
bottom: z.ZodOptional<z.ZodNumber>;
|
|
1962
|
-
left: z.ZodOptional<z.ZodNumber>;
|
|
1963
|
-
right: z.ZodOptional<z.ZodNumber>;
|
|
1964
|
-
}, z.core.$strip>;
|
|
1965
|
-
count: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
|
|
1966
|
-
quality: z.ZodOptional<z.ZodEnum<{
|
|
1967
|
-
standard: "standard";
|
|
1968
|
-
hd: "hd";
|
|
1969
|
-
draft: "draft";
|
|
1970
|
-
}>>;
|
|
1971
|
-
seed: z.ZodOptional<z.ZodNumber>;
|
|
1972
|
-
style: z.ZodOptional<z.ZodString>;
|
|
1973
|
-
negativePrompt: z.ZodOptional<z.ZodString>;
|
|
1974
|
-
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1975
|
-
feature: z.ZodLiteral<"outpaint">;
|
|
1976
|
-
}, z.core.$strip>;
|
|
1977
|
-
/** F07: Video generation request. */
|
|
1978
|
-
declare const videoGenerateRequestSchema: z.ZodObject<{
|
|
1979
|
-
prompt: z.ZodString;
|
|
1980
|
-
aspectRatio: z.ZodOptional<z.ZodEnum<{
|
|
1981
|
-
"1:1": "1:1";
|
|
1982
|
-
"16:9": "16:9";
|
|
1983
|
-
"9:16": "9:16";
|
|
1984
|
-
"4:3": "4:3";
|
|
1985
|
-
"3:2": "3:2";
|
|
1986
|
-
}>>;
|
|
1987
|
-
duration: z.ZodUnion<readonly [z.ZodLiteral<5>, z.ZodLiteral<10>, z.ZodLiteral<15>]>;
|
|
1988
|
-
mode: z.ZodOptional<z.ZodEnum<{
|
|
1989
|
-
text: "text";
|
|
1990
|
-
withAudio: "withAudio";
|
|
1991
|
-
reference: "reference";
|
|
1992
|
-
firstFrame: "firstFrame";
|
|
1993
|
-
startEnd: "startEnd";
|
|
1994
|
-
storyboard: "storyboard";
|
|
1995
|
-
motionControl: "motionControl";
|
|
1996
|
-
}>>;
|
|
1997
|
-
inputs: z.ZodOptional<z.ZodObject<{
|
|
1998
|
-
startImage: z.ZodOptional<z.ZodObject<{
|
|
1999
|
-
url: z.ZodOptional<z.ZodString>;
|
|
2000
|
-
base64: z.ZodOptional<z.ZodString>;
|
|
2001
|
-
mediaType: z.ZodOptional<z.ZodString>;
|
|
2002
|
-
}, z.core.$strip>>;
|
|
2003
|
-
endImage: z.ZodOptional<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
|
-
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2009
|
-
url: z.ZodOptional<z.ZodString>;
|
|
2010
|
-
base64: z.ZodOptional<z.ZodString>;
|
|
2011
|
-
mediaType: z.ZodOptional<z.ZodString>;
|
|
2012
|
-
}, z.core.$strip>>>;
|
|
2013
|
-
scenes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2014
|
-
prompt: z.ZodString;
|
|
2015
|
-
image: z.ZodOptional<z.ZodObject<{
|
|
2016
|
-
url: z.ZodOptional<z.ZodString>;
|
|
2017
|
-
base64: z.ZodOptional<z.ZodString>;
|
|
2018
|
-
mediaType: z.ZodOptional<z.ZodString>;
|
|
2019
|
-
}, z.core.$strip>>;
|
|
2020
|
-
}, z.core.$strip>>>;
|
|
2021
|
-
}, z.core.$strip>>;
|
|
2022
|
-
withAudio: z.ZodOptional<z.ZodBoolean>;
|
|
2023
|
-
motionPaths: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2024
|
-
startX: z.ZodNumber;
|
|
2025
|
-
startY: z.ZodNumber;
|
|
2026
|
-
endX: z.ZodNumber;
|
|
2027
|
-
endY: z.ZodNumber;
|
|
2028
|
-
strength: z.ZodOptional<z.ZodNumber>;
|
|
2029
|
-
}, z.core.$strip>>>;
|
|
2030
|
-
camera: z.ZodOptional<z.ZodObject<{
|
|
2031
|
-
type: z.ZodEnum<{
|
|
2032
|
-
pan: "pan";
|
|
2033
|
-
zoom: "zoom";
|
|
2034
|
-
rotate: "rotate";
|
|
2035
|
-
dolly: "dolly";
|
|
2036
|
-
tilt: "tilt";
|
|
2037
|
-
}>;
|
|
2038
|
-
direction: z.ZodOptional<z.ZodString>;
|
|
2039
|
-
intensity: z.ZodOptional<z.ZodNumber>;
|
|
2040
|
-
}, z.core.$strip>>;
|
|
2041
|
-
count: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
|
|
2042
|
-
quality: z.ZodOptional<z.ZodEnum<{
|
|
2043
|
-
standard: "standard";
|
|
2044
|
-
hd: "hd";
|
|
2045
|
-
draft: "draft";
|
|
2046
|
-
}>>;
|
|
2047
|
-
seed: z.ZodOptional<z.ZodNumber>;
|
|
2048
|
-
style: z.ZodOptional<z.ZodString>;
|
|
2049
|
-
negativePrompt: z.ZodOptional<z.ZodString>;
|
|
2050
|
-
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2051
|
-
feature: z.ZodLiteral<"videoGenerate">;
|
|
2052
|
-
}, z.core.$strip>;
|
|
2053
|
-
/** F09: Digital human (talking head / lip sync) request. */
|
|
2054
|
-
declare const digitalHumanRequestSchema: z.ZodObject<{
|
|
2055
|
-
mode: z.ZodEnum<{
|
|
2056
|
-
photo2video: "photo2video";
|
|
2057
|
-
lipSync: "lipSync";
|
|
2058
|
-
}>;
|
|
2059
|
-
inputs: z.ZodObject<{
|
|
2060
|
-
person: z.ZodObject<{
|
|
2061
|
-
url: z.ZodOptional<z.ZodString>;
|
|
2062
|
-
base64: z.ZodOptional<z.ZodString>;
|
|
2063
|
-
mediaType: z.ZodOptional<z.ZodString>;
|
|
2064
|
-
}, z.core.$strip>;
|
|
2065
|
-
audio: z.ZodObject<{
|
|
2066
|
-
url: z.ZodOptional<z.ZodString>;
|
|
2067
|
-
base64: z.ZodOptional<z.ZodString>;
|
|
2068
|
-
mediaType: z.ZodOptional<z.ZodString>;
|
|
2069
|
-
}, z.core.$strip>;
|
|
2070
|
-
}, z.core.$strip>;
|
|
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<"digitalHuman">;
|
|
2082
|
-
}, z.core.$strip>;
|
|
2083
|
-
/** F11: Text-to-speech request. */
|
|
2084
|
-
declare const ttsRequestSchema: z.ZodObject<{
|
|
2085
|
-
text: z.ZodString;
|
|
2086
|
-
voice: z.ZodOptional<z.ZodString>;
|
|
2087
|
-
referenceAudio: z.ZodOptional<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
|
-
output: z.ZodOptional<z.ZodObject<{
|
|
2093
|
-
format: z.ZodOptional<z.ZodEnum<{
|
|
2094
|
-
mp3: "mp3";
|
|
2095
|
-
wav: "wav";
|
|
2096
|
-
opus: "opus";
|
|
2097
|
-
}>>;
|
|
2098
|
-
sampleRate: z.ZodOptional<z.ZodNumber>;
|
|
2099
|
-
}, z.core.$strip>>;
|
|
2100
|
-
count: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
|
|
2101
|
-
quality: z.ZodOptional<z.ZodEnum<{
|
|
2102
|
-
standard: "standard";
|
|
2103
|
-
hd: "hd";
|
|
2104
|
-
draft: "draft";
|
|
2105
|
-
}>>;
|
|
2106
|
-
seed: z.ZodOptional<z.ZodNumber>;
|
|
2107
|
-
style: z.ZodOptional<z.ZodString>;
|
|
2108
|
-
negativePrompt: z.ZodOptional<z.ZodString>;
|
|
2109
|
-
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2110
|
-
feature: z.ZodLiteral<"tts">;
|
|
2111
|
-
}, z.core.$strip>;
|
|
2112
|
-
/** Discriminated union of all media generation feature requests. */
|
|
2113
|
-
declare const mediaGenerateRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2114
|
-
prompt: z.ZodString;
|
|
2115
|
-
aspectRatio: z.ZodOptional<z.ZodEnum<{
|
|
2116
|
-
"1:1": "1:1";
|
|
2117
|
-
"16:9": "16:9";
|
|
2118
|
-
"9:16": "9:16";
|
|
2119
|
-
"4:3": "4:3";
|
|
2120
|
-
"3:2": "3:2";
|
|
2121
|
-
}>>;
|
|
2122
|
-
resolution: z.ZodOptional<z.ZodEnum<{
|
|
2123
|
-
"1K": "1K";
|
|
2124
|
-
"2K": "2K";
|
|
2125
|
-
"4K": "4K";
|
|
2126
|
-
}>>;
|
|
2127
|
-
mode: z.ZodOptional<z.ZodEnum<{
|
|
2128
|
-
text: "text";
|
|
2129
|
-
reference: "reference";
|
|
2130
|
-
sketch: "sketch";
|
|
2131
|
-
character: "character";
|
|
2132
|
-
}>>;
|
|
2133
|
-
inputs: z.ZodOptional<z.ZodObject<{
|
|
2134
|
-
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2135
|
-
url: z.ZodOptional<z.ZodString>;
|
|
2136
|
-
base64: z.ZodOptional<z.ZodString>;
|
|
2137
|
-
mediaType: z.ZodOptional<z.ZodString>;
|
|
2138
|
-
}, z.core.$strip>>>;
|
|
2139
|
-
isSketch: z.ZodOptional<z.ZodBoolean>;
|
|
2140
|
-
}, z.core.$strip>>;
|
|
2141
|
-
count: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
|
|
2142
|
-
quality: z.ZodOptional<z.ZodEnum<{
|
|
2143
|
-
standard: "standard";
|
|
2144
|
-
hd: "hd";
|
|
2145
|
-
draft: "draft";
|
|
2146
|
-
}>>;
|
|
2147
|
-
seed: z.ZodOptional<z.ZodNumber>;
|
|
2148
|
-
style: z.ZodOptional<z.ZodString>;
|
|
2149
|
-
negativePrompt: z.ZodOptional<z.ZodString>;
|
|
2150
|
-
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2151
|
-
feature: z.ZodLiteral<"imageGenerate">;
|
|
2152
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
2153
|
-
title: z.ZodString;
|
|
2154
|
-
subTitle: z.ZodOptional<z.ZodString>;
|
|
2155
|
-
bodyText: z.ZodOptional<z.ZodString>;
|
|
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
|
-
count: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
|
|
2165
|
-
quality: z.ZodOptional<z.ZodEnum<{
|
|
2166
|
-
standard: "standard";
|
|
2167
|
-
hd: "hd";
|
|
2168
|
-
draft: "draft";
|
|
2169
|
-
}>>;
|
|
2170
|
-
seed: z.ZodOptional<z.ZodNumber>;
|
|
2171
|
-
style: z.ZodOptional<z.ZodString>;
|
|
2172
|
-
negativePrompt: z.ZodOptional<z.ZodString>;
|
|
2173
|
-
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2174
|
-
feature: z.ZodLiteral<"poster">;
|
|
2175
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
2176
|
-
prompt: z.ZodOptional<z.ZodString>;
|
|
2177
|
-
mode: z.ZodEnum<{
|
|
2178
|
-
instruct: "instruct";
|
|
2179
|
-
stylize: "stylize";
|
|
2180
|
-
colorize: "colorize";
|
|
2181
|
-
inpaint: "inpaint";
|
|
2182
|
-
erase: "erase";
|
|
2183
|
-
eraseWatermark: "eraseWatermark";
|
|
2184
|
-
}>;
|
|
2185
|
-
inputs: z.ZodObject<{
|
|
2186
|
-
image: z.ZodObject<{
|
|
2187
|
-
url: z.ZodOptional<z.ZodString>;
|
|
2188
|
-
base64: z.ZodOptional<z.ZodString>;
|
|
2189
|
-
mediaType: z.ZodOptional<z.ZodString>;
|
|
2190
|
-
}, z.core.$strip>;
|
|
2191
|
-
mask: z.ZodOptional<z.ZodObject<{
|
|
2192
|
-
url: z.ZodOptional<z.ZodString>;
|
|
2193
|
-
base64: z.ZodOptional<z.ZodString>;
|
|
2194
|
-
mediaType: z.ZodOptional<z.ZodString>;
|
|
2195
|
-
}, z.core.$strip>>;
|
|
2196
|
-
}, z.core.$strip>;
|
|
2197
|
-
strength: z.ZodOptional<z.ZodNumber>;
|
|
2198
|
-
count: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
|
|
2199
|
-
quality: z.ZodOptional<z.ZodEnum<{
|
|
2200
|
-
standard: "standard";
|
|
2201
|
-
hd: "hd";
|
|
2202
|
-
draft: "draft";
|
|
2203
|
-
}>>;
|
|
2204
|
-
seed: z.ZodOptional<z.ZodNumber>;
|
|
2205
|
-
style: z.ZodOptional<z.ZodString>;
|
|
2206
|
-
negativePrompt: z.ZodOptional<z.ZodString>;
|
|
2207
|
-
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2208
|
-
feature: z.ZodLiteral<"imageEdit">;
|
|
2209
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
2210
|
-
scale: z.ZodUnion<readonly [z.ZodLiteral<2>, z.ZodLiteral<4>]>;
|
|
2211
|
-
inputs: z.ZodObject<{
|
|
2212
|
-
image: z.ZodObject<{
|
|
2213
|
-
url: z.ZodOptional<z.ZodString>;
|
|
2214
|
-
base64: z.ZodOptional<z.ZodString>;
|
|
2215
|
-
mediaType: z.ZodOptional<z.ZodString>;
|
|
2216
|
-
}, z.core.$strip>;
|
|
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<"upscale">;
|
|
2229
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
2230
|
-
prompt: z.ZodOptional<z.ZodString>;
|
|
2231
|
-
inputs: z.ZodObject<{
|
|
2232
|
-
image: z.ZodObject<{
|
|
2233
|
-
url: z.ZodOptional<z.ZodString>;
|
|
2234
|
-
base64: z.ZodOptional<z.ZodString>;
|
|
2235
|
-
mediaType: z.ZodOptional<z.ZodString>;
|
|
2236
|
-
}, z.core.$strip>;
|
|
2237
|
-
}, z.core.$strip>;
|
|
2238
|
-
direction: z.ZodObject<{
|
|
2239
|
-
top: z.ZodOptional<z.ZodNumber>;
|
|
2240
|
-
bottom: z.ZodOptional<z.ZodNumber>;
|
|
2241
|
-
left: z.ZodOptional<z.ZodNumber>;
|
|
2242
|
-
right: z.ZodOptional<z.ZodNumber>;
|
|
2243
|
-
}, z.core.$strip>;
|
|
2244
|
-
count: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
|
|
2245
|
-
quality: z.ZodOptional<z.ZodEnum<{
|
|
2246
|
-
standard: "standard";
|
|
2247
|
-
hd: "hd";
|
|
2248
|
-
draft: "draft";
|
|
2249
|
-
}>>;
|
|
2250
|
-
seed: z.ZodOptional<z.ZodNumber>;
|
|
2251
|
-
style: z.ZodOptional<z.ZodString>;
|
|
2252
|
-
negativePrompt: z.ZodOptional<z.ZodString>;
|
|
2253
|
-
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2254
|
-
feature: z.ZodLiteral<"outpaint">;
|
|
2255
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
2256
|
-
prompt: z.ZodString;
|
|
2257
|
-
aspectRatio: z.ZodOptional<z.ZodEnum<{
|
|
2258
|
-
"1:1": "1:1";
|
|
2259
|
-
"16:9": "16:9";
|
|
2260
|
-
"9:16": "9:16";
|
|
2261
|
-
"4:3": "4:3";
|
|
2262
|
-
"3:2": "3:2";
|
|
2263
|
-
}>>;
|
|
2264
|
-
duration: z.ZodUnion<readonly [z.ZodLiteral<5>, z.ZodLiteral<10>, z.ZodLiteral<15>]>;
|
|
2265
|
-
mode: z.ZodOptional<z.ZodEnum<{
|
|
2266
|
-
text: "text";
|
|
2267
|
-
withAudio: "withAudio";
|
|
2268
|
-
reference: "reference";
|
|
2269
|
-
firstFrame: "firstFrame";
|
|
2270
|
-
startEnd: "startEnd";
|
|
2271
|
-
storyboard: "storyboard";
|
|
2272
|
-
motionControl: "motionControl";
|
|
2273
|
-
}>>;
|
|
2274
|
-
inputs: z.ZodOptional<z.ZodObject<{
|
|
2275
|
-
startImage: z.ZodOptional<z.ZodObject<{
|
|
2276
|
-
url: z.ZodOptional<z.ZodString>;
|
|
2277
|
-
base64: z.ZodOptional<z.ZodString>;
|
|
2278
|
-
mediaType: z.ZodOptional<z.ZodString>;
|
|
2279
|
-
}, z.core.$strip>>;
|
|
2280
|
-
endImage: z.ZodOptional<z.ZodObject<{
|
|
2281
|
-
url: z.ZodOptional<z.ZodString>;
|
|
2282
|
-
base64: z.ZodOptional<z.ZodString>;
|
|
2283
|
-
mediaType: z.ZodOptional<z.ZodString>;
|
|
2284
|
-
}, z.core.$strip>>;
|
|
2285
|
-
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2286
|
-
url: z.ZodOptional<z.ZodString>;
|
|
2287
|
-
base64: z.ZodOptional<z.ZodString>;
|
|
2288
|
-
mediaType: z.ZodOptional<z.ZodString>;
|
|
2289
|
-
}, z.core.$strip>>>;
|
|
2290
|
-
scenes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2291
|
-
prompt: z.ZodString;
|
|
2292
|
-
image: z.ZodOptional<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
|
-
}, z.core.$strip>>>;
|
|
2298
|
-
}, z.core.$strip>>;
|
|
2299
|
-
withAudio: z.ZodOptional<z.ZodBoolean>;
|
|
2300
|
-
motionPaths: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2301
|
-
startX: z.ZodNumber;
|
|
2302
|
-
startY: z.ZodNumber;
|
|
2303
|
-
endX: z.ZodNumber;
|
|
2304
|
-
endY: z.ZodNumber;
|
|
2305
|
-
strength: z.ZodOptional<z.ZodNumber>;
|
|
2306
|
-
}, z.core.$strip>>>;
|
|
2307
|
-
camera: z.ZodOptional<z.ZodObject<{
|
|
2308
|
-
type: z.ZodEnum<{
|
|
2309
|
-
pan: "pan";
|
|
2310
|
-
zoom: "zoom";
|
|
2311
|
-
rotate: "rotate";
|
|
2312
|
-
dolly: "dolly";
|
|
2313
|
-
tilt: "tilt";
|
|
2314
|
-
}>;
|
|
2315
|
-
direction: z.ZodOptional<z.ZodString>;
|
|
2316
|
-
intensity: z.ZodOptional<z.ZodNumber>;
|
|
2317
|
-
}, z.core.$strip>>;
|
|
2318
|
-
count: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
|
|
2319
|
-
quality: z.ZodOptional<z.ZodEnum<{
|
|
2320
|
-
standard: "standard";
|
|
2321
|
-
hd: "hd";
|
|
2322
|
-
draft: "draft";
|
|
2323
|
-
}>>;
|
|
2324
|
-
seed: z.ZodOptional<z.ZodNumber>;
|
|
2325
|
-
style: z.ZodOptional<z.ZodString>;
|
|
2326
|
-
negativePrompt: z.ZodOptional<z.ZodString>;
|
|
2327
|
-
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2328
|
-
feature: z.ZodLiteral<"videoGenerate">;
|
|
2329
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
2330
|
-
mode: z.ZodEnum<{
|
|
2331
|
-
photo2video: "photo2video";
|
|
2332
|
-
lipSync: "lipSync";
|
|
2333
|
-
}>;
|
|
2334
|
-
inputs: z.ZodObject<{
|
|
2335
|
-
person: z.ZodObject<{
|
|
2336
|
-
url: z.ZodOptional<z.ZodString>;
|
|
2337
|
-
base64: z.ZodOptional<z.ZodString>;
|
|
2338
|
-
mediaType: z.ZodOptional<z.ZodString>;
|
|
2339
|
-
}, z.core.$strip>;
|
|
2340
|
-
audio: z.ZodObject<{
|
|
2341
|
-
url: z.ZodOptional<z.ZodString>;
|
|
2342
|
-
base64: z.ZodOptional<z.ZodString>;
|
|
2343
|
-
mediaType: z.ZodOptional<z.ZodString>;
|
|
2344
|
-
}, z.core.$strip>;
|
|
2345
|
-
}, z.core.$strip>;
|
|
2346
|
-
count: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
|
|
2347
|
-
quality: z.ZodOptional<z.ZodEnum<{
|
|
2348
|
-
standard: "standard";
|
|
2349
|
-
hd: "hd";
|
|
2350
|
-
draft: "draft";
|
|
2351
|
-
}>>;
|
|
2352
|
-
seed: z.ZodOptional<z.ZodNumber>;
|
|
2353
|
-
style: z.ZodOptional<z.ZodString>;
|
|
2354
|
-
negativePrompt: z.ZodOptional<z.ZodString>;
|
|
2355
|
-
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2356
|
-
feature: z.ZodLiteral<"digitalHuman">;
|
|
2357
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
2358
|
-
text: z.ZodString;
|
|
2359
|
-
voice: z.ZodOptional<z.ZodString>;
|
|
2360
|
-
referenceAudio: z.ZodOptional<z.ZodObject<{
|
|
2361
|
-
url: z.ZodOptional<z.ZodString>;
|
|
2362
|
-
base64: z.ZodOptional<z.ZodString>;
|
|
2363
|
-
mediaType: z.ZodOptional<z.ZodString>;
|
|
2364
|
-
}, z.core.$strip>>;
|
|
2365
|
-
output: z.ZodOptional<z.ZodObject<{
|
|
2366
|
-
format: z.ZodOptional<z.ZodEnum<{
|
|
2367
|
-
mp3: "mp3";
|
|
2368
|
-
wav: "wav";
|
|
2369
|
-
opus: "opus";
|
|
2370
|
-
}>>;
|
|
2371
|
-
sampleRate: z.ZodOptional<z.ZodNumber>;
|
|
2372
|
-
}, z.core.$strip>>;
|
|
2373
|
-
count: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
|
|
2374
|
-
quality: z.ZodOptional<z.ZodEnum<{
|
|
2375
|
-
standard: "standard";
|
|
2376
|
-
hd: "hd";
|
|
2377
|
-
draft: "draft";
|
|
2378
|
-
}>>;
|
|
2379
|
-
seed: z.ZodOptional<z.ZodNumber>;
|
|
2380
|
-
style: z.ZodOptional<z.ZodString>;
|
|
2381
|
-
negativePrompt: z.ZodOptional<z.ZodString>;
|
|
2382
|
-
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2383
|
-
feature: z.ZodLiteral<"tts">;
|
|
2384
|
-
}, z.core.$strip>], "feature">;
|
|
2385
|
-
/** Task status within a task group. */
|
|
2386
|
-
declare const mediaTaskStatusSchema: z.ZodEnum<{
|
|
2387
|
-
queued: "queued";
|
|
2388
|
-
running: "running";
|
|
2389
|
-
succeeded: "succeeded";
|
|
2390
|
-
failed: "failed";
|
|
2391
|
-
canceled: "canceled";
|
|
2392
|
-
}>;
|
|
2393
|
-
/** Individual task within a task group. */
|
|
2394
|
-
declare const mediaTaskItemSchema: z.ZodObject<{
|
|
2395
|
-
taskId: z.ZodString;
|
|
2396
|
-
status: z.ZodEnum<{
|
|
2397
|
-
queued: "queued";
|
|
2398
|
-
running: "running";
|
|
2399
|
-
succeeded: "succeeded";
|
|
2400
|
-
failed: "failed";
|
|
2401
|
-
canceled: "canceled";
|
|
2402
|
-
}>;
|
|
2403
|
-
resultUrls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2404
|
-
error: z.ZodOptional<z.ZodObject<{
|
|
2405
|
-
code: z.ZodOptional<z.ZodString>;
|
|
2406
|
-
message: z.ZodString;
|
|
2407
|
-
}, z.core.$strip>>;
|
|
2408
|
-
creditsConsumed: z.ZodOptional<z.ZodNumber>;
|
|
2409
|
-
}, z.core.$strip>;
|
|
2410
|
-
/** Task group data payload. */
|
|
2411
|
-
declare const mediaTaskGroupDataSchema: z.ZodObject<{
|
|
2412
|
-
groupId: z.ZodString;
|
|
2413
|
-
tasks: z.ZodArray<z.ZodObject<{
|
|
2414
|
-
taskId: z.ZodString;
|
|
2415
|
-
status: z.ZodEnum<{
|
|
2416
|
-
queued: "queued";
|
|
2417
|
-
running: "running";
|
|
2418
|
-
succeeded: "succeeded";
|
|
2419
|
-
failed: "failed";
|
|
2420
|
-
canceled: "canceled";
|
|
2421
|
-
}>;
|
|
2422
|
-
resultUrls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2423
|
-
error: z.ZodOptional<z.ZodObject<{
|
|
2424
|
-
code: z.ZodOptional<z.ZodString>;
|
|
2425
|
-
message: z.ZodString;
|
|
2426
|
-
}, z.core.$strip>>;
|
|
2427
|
-
creditsConsumed: z.ZodOptional<z.ZodNumber>;
|
|
2428
|
-
}, z.core.$strip>>;
|
|
2429
|
-
totalCreditsConsumed: z.ZodOptional<z.ZodNumber>;
|
|
2430
|
-
}, z.core.$strip>;
|
|
2431
|
-
/** Successful task group response. */
|
|
2432
|
-
declare const mediaTaskGroupSuccessSchema: z.ZodObject<{
|
|
2433
|
-
success: z.ZodLiteral<true>;
|
|
2434
|
-
data: z.ZodObject<{
|
|
2435
|
-
groupId: z.ZodString;
|
|
2436
|
-
tasks: z.ZodArray<z.ZodObject<{
|
|
2437
|
-
taskId: z.ZodString;
|
|
2438
|
-
status: z.ZodEnum<{
|
|
2439
|
-
queued: "queued";
|
|
2440
|
-
running: "running";
|
|
2441
|
-
succeeded: "succeeded";
|
|
2442
|
-
failed: "failed";
|
|
2443
|
-
canceled: "canceled";
|
|
2444
|
-
}>;
|
|
2445
|
-
resultUrls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2446
|
-
error: z.ZodOptional<z.ZodObject<{
|
|
2447
|
-
code: z.ZodOptional<z.ZodString>;
|
|
2448
|
-
message: z.ZodString;
|
|
2449
|
-
}, z.core.$strip>>;
|
|
2450
|
-
creditsConsumed: z.ZodOptional<z.ZodNumber>;
|
|
2451
|
-
}, z.core.$strip>>;
|
|
2452
|
-
totalCreditsConsumed: z.ZodOptional<z.ZodNumber>;
|
|
2453
|
-
}, z.core.$strip>;
|
|
2454
|
-
}, z.core.$strip>;
|
|
2455
|
-
/** Task group response (success or error). */
|
|
2456
|
-
declare const mediaTaskGroupResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
2457
|
-
success: z.ZodLiteral<true>;
|
|
2458
|
-
data: z.ZodObject<{
|
|
2459
|
-
groupId: z.ZodString;
|
|
2460
|
-
tasks: z.ZodArray<z.ZodObject<{
|
|
2461
|
-
taskId: z.ZodString;
|
|
2462
|
-
status: z.ZodEnum<{
|
|
2463
|
-
queued: "queued";
|
|
2464
|
-
running: "running";
|
|
2465
|
-
succeeded: "succeeded";
|
|
2466
|
-
failed: "failed";
|
|
2467
|
-
canceled: "canceled";
|
|
2468
|
-
}>;
|
|
2469
|
-
resultUrls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2470
|
-
error: z.ZodOptional<z.ZodObject<{
|
|
2471
|
-
code: z.ZodOptional<z.ZodString>;
|
|
2472
|
-
message: z.ZodString;
|
|
2473
|
-
}, z.core.$strip>>;
|
|
2474
|
-
creditsConsumed: z.ZodOptional<z.ZodNumber>;
|
|
2475
|
-
}, z.core.$strip>>;
|
|
2476
|
-
totalCreditsConsumed: z.ZodOptional<z.ZodNumber>;
|
|
2477
|
-
}, z.core.$strip>;
|
|
2478
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
2479
|
-
success: z.ZodLiteral<false>;
|
|
2480
|
-
code: z.ZodOptional<z.ZodString>;
|
|
2481
|
-
message: z.ZodString;
|
|
2482
|
-
}, z.core.$strip>]>;
|
|
2483
|
-
/** Query parameters for fetching v2 media models (filterable by feature). */
|
|
2484
|
-
declare const mediaModelsQuerySchema: z.ZodObject<{
|
|
2485
|
-
feature: z.ZodOptional<z.ZodEnum<{
|
|
2486
|
-
imageGenerate: "imageGenerate";
|
|
2487
|
-
poster: "poster";
|
|
2488
|
-
imageEdit: "imageEdit";
|
|
2489
|
-
upscale: "upscale";
|
|
2490
|
-
outpaint: "outpaint";
|
|
2491
|
-
videoGenerate: "videoGenerate";
|
|
2492
|
-
digitalHuman: "digitalHuman";
|
|
2493
|
-
tts: "tts";
|
|
2494
|
-
}>>;
|
|
2495
|
-
}, z.core.$strip>;
|
|
2496
|
-
/** All supported media generation features. */
|
|
2497
|
-
type MediaFeature = z.infer<typeof mediaFeatureSchema>;
|
|
2498
|
-
/** Supported aspect ratios. */
|
|
2499
|
-
type MediaAspectRatio = z.infer<typeof mediaAspectRatioSchema>;
|
|
2500
|
-
/** Supported resolutions. */
|
|
2501
|
-
type MediaResolution = z.infer<typeof mediaResolutionSchema>;
|
|
2502
|
-
/** Output quality levels. */
|
|
2503
|
-
type MediaQuality = z.infer<typeof mediaQualitySchema>;
|
|
2504
|
-
/** Base media generate request (all common fields). */
|
|
2505
|
-
type MediaGenerateBase = z.infer<typeof mediaGenerateBaseSchema>;
|
|
2506
|
-
/** F01: Image generation request. */
|
|
2507
|
-
type ImageGenerateRequest = z.infer<typeof imageGenerateRequestSchema>;
|
|
2508
|
-
/** F02: Poster generation request. */
|
|
2509
|
-
type PosterRequest = z.infer<typeof posterRequestSchema>;
|
|
2510
|
-
/** F03: Image editing request. */
|
|
2511
|
-
type ImageEditRequest = z.infer<typeof imageEditRequestSchema>;
|
|
2512
|
-
/** F04: Image upscale request. */
|
|
2513
|
-
type UpscaleRequest = z.infer<typeof upscaleRequestSchema>;
|
|
2514
|
-
/** F05: Image outpaint request. */
|
|
2515
|
-
type OutpaintRequest = z.infer<typeof outpaintRequestSchema>;
|
|
2516
|
-
/** F07: Video generation request. */
|
|
2517
|
-
type VideoGenerateRequest = z.infer<typeof videoGenerateRequestSchema>;
|
|
2518
|
-
/** F09: Digital human request. */
|
|
2519
|
-
type DigitalHumanRequest = z.infer<typeof digitalHumanRequestSchema>;
|
|
2520
|
-
/** F11: Text-to-speech request. */
|
|
2521
|
-
type TtsRequest = z.infer<typeof ttsRequestSchema>;
|
|
2522
|
-
/** Discriminated union of all media generation requests. */
|
|
2523
|
-
type MediaGenerateRequest = z.infer<typeof mediaGenerateRequestSchema>;
|
|
2524
|
-
/** Individual task within a task group. */
|
|
2525
|
-
type MediaTaskItem = z.infer<typeof mediaTaskItemSchema>;
|
|
2526
|
-
/** Task group data payload. */
|
|
2527
|
-
type MediaTaskGroupData = z.infer<typeof mediaTaskGroupDataSchema>;
|
|
2528
|
-
/** Successful task group response. */
|
|
2529
|
-
type MediaTaskGroupSuccess = z.infer<typeof mediaTaskGroupSuccessSchema>;
|
|
2530
|
-
/** Task group response (success or error). */
|
|
2531
|
-
type MediaTaskGroupResponse = z.infer<typeof mediaTaskGroupResponseSchema>;
|
|
2532
|
-
/** Query parameters for v2 media models. */
|
|
2533
|
-
type MediaModelsQuery = z.infer<typeof mediaModelsQuerySchema>;
|
|
2534
|
-
|
|
2535
|
-
/** Optional client metadata shared by OpenAI-compatible chat requests. */
|
|
2536
|
-
declare const aiClientMetadataSchema: z.ZodObject<{
|
|
2537
|
-
chatSessionId: z.ZodOptional<z.ZodString>;
|
|
2538
|
-
clientId: z.ZodOptional<z.ZodString>;
|
|
2539
|
-
desktopVersion: z.ZodOptional<z.ZodString>;
|
|
2540
|
-
serverVersion: z.ZodOptional<z.ZodString>;
|
|
2541
|
-
webVersion: z.ZodOptional<z.ZodString>;
|
|
2542
|
-
}, z.core.$strip>;
|
|
2543
|
-
/** @deprecated Use aiClientMetadataSchema instead. */
|
|
2544
|
-
declare const aiChatSessionMetadataSchema: z.ZodObject<{
|
|
2545
|
-
chatSessionId: z.ZodOptional<z.ZodString>;
|
|
2546
|
-
clientId: z.ZodOptional<z.ZodString>;
|
|
2547
|
-
desktopVersion: z.ZodOptional<z.ZodString>;
|
|
2548
|
-
serverVersion: z.ZodOptional<z.ZodString>;
|
|
2549
|
-
webVersion: z.ZodOptional<z.ZodString>;
|
|
2550
|
-
}, z.core.$strip>;
|
|
2551
|
-
/** OpenAI-compatible chat/completions request with optional session metadata. */
|
|
2552
|
-
declare const aiChatCompletionsRequestSchema: z.ZodObject<{
|
|
2553
|
-
chatSessionId: z.ZodOptional<z.ZodString>;
|
|
2554
|
-
clientId: z.ZodOptional<z.ZodString>;
|
|
2555
|
-
desktopVersion: z.ZodOptional<z.ZodString>;
|
|
2556
|
-
serverVersion: z.ZodOptional<z.ZodString>;
|
|
2557
|
-
webVersion: z.ZodOptional<z.ZodString>;
|
|
2558
|
-
model: z.ZodString;
|
|
2559
|
-
}, z.core.$loose>;
|
|
2560
|
-
/** OpenAI-compatible responses request with optional session metadata. */
|
|
2561
|
-
declare const aiResponsesRequestSchema: z.ZodObject<{
|
|
2562
|
-
chatSessionId: z.ZodOptional<z.ZodString>;
|
|
2563
|
-
clientId: z.ZodOptional<z.ZodString>;
|
|
2564
|
-
desktopVersion: z.ZodOptional<z.ZodString>;
|
|
2565
|
-
serverVersion: z.ZodOptional<z.ZodString>;
|
|
2566
|
-
webVersion: z.ZodOptional<z.ZodString>;
|
|
2567
|
-
model: z.ZodString;
|
|
2568
|
-
}, z.core.$loose>;
|
|
2569
|
-
declare const aiMediaInputSchema: z.ZodObject<{
|
|
2570
|
-
url: z.ZodOptional<z.ZodString>;
|
|
2571
|
-
base64: z.ZodOptional<z.ZodString>;
|
|
2572
|
-
mediaType: z.ZodOptional<z.ZodString>;
|
|
2573
|
-
}, z.core.$strip>;
|
|
2574
|
-
declare const aiImageInputsSchema: z.ZodObject<{
|
|
2575
|
-
images: z.ZodOptional<z.ZodArray<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
|
-
mask: z.ZodOptional<z.ZodObject<{
|
|
2581
|
-
url: z.ZodOptional<z.ZodString>;
|
|
2582
|
-
base64: z.ZodOptional<z.ZodString>;
|
|
2583
|
-
mediaType: z.ZodOptional<z.ZodString>;
|
|
2584
|
-
}, z.core.$strip>>;
|
|
2585
|
-
}, z.core.$strip>;
|
|
2586
|
-
declare const aiVideoInputsSchema: z.ZodObject<{
|
|
2587
|
-
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2588
|
-
url: z.ZodOptional<z.ZodString>;
|
|
2589
|
-
base64: z.ZodOptional<z.ZodString>;
|
|
2590
|
-
mediaType: z.ZodOptional<z.ZodString>;
|
|
2591
|
-
}, z.core.$strip>>>;
|
|
2592
|
-
startImage: z.ZodOptional<z.ZodObject<{
|
|
2593
|
-
url: z.ZodOptional<z.ZodString>;
|
|
2594
|
-
base64: z.ZodOptional<z.ZodString>;
|
|
2595
|
-
mediaType: z.ZodOptional<z.ZodString>;
|
|
2596
|
-
}, z.core.$strip>>;
|
|
2597
|
-
endImage: z.ZodOptional<z.ZodObject<{
|
|
2598
|
-
url: z.ZodOptional<z.ZodString>;
|
|
2599
|
-
base64: z.ZodOptional<z.ZodString>;
|
|
2600
|
-
mediaType: z.ZodOptional<z.ZodString>;
|
|
2601
|
-
}, z.core.$strip>>;
|
|
2602
|
-
referenceVideo: z.ZodOptional<z.ZodObject<{
|
|
2603
|
-
url: z.ZodOptional<z.ZodString>;
|
|
2604
|
-
base64: z.ZodOptional<z.ZodString>;
|
|
2605
|
-
mediaType: z.ZodOptional<z.ZodString>;
|
|
2606
|
-
}, z.core.$strip>>;
|
|
2607
|
-
}, z.core.$strip>;
|
|
2608
|
-
declare const aiImageOutputSchema: z.ZodObject<{
|
|
2609
|
-
count: z.ZodOptional<z.ZodNumber>;
|
|
2610
|
-
aspectRatio: z.ZodOptional<z.ZodEnum<{
|
|
2611
|
-
"1:1": "1:1";
|
|
2612
|
-
"16:9": "16:9";
|
|
2613
|
-
"9:16": "9:16";
|
|
2614
|
-
"4:3": "4:3";
|
|
2615
|
-
}>>;
|
|
2616
|
-
quality: z.ZodOptional<z.ZodEnum<{
|
|
2617
|
-
standard: "standard";
|
|
2618
|
-
hd: "hd";
|
|
2619
|
-
}>>;
|
|
2620
|
-
}, z.core.$strip>;
|
|
2621
|
-
declare const aiVideoOutputSchema: z.ZodObject<{
|
|
2622
|
-
aspectRatio: z.ZodOptional<z.ZodString>;
|
|
2623
|
-
duration: z.ZodOptional<z.ZodNumber>;
|
|
2624
|
-
clarity: z.ZodOptional<z.ZodString>;
|
|
2625
|
-
withAudio: z.ZodOptional<z.ZodBoolean>;
|
|
2626
|
-
}, z.core.$strip>;
|
|
2627
|
-
declare const aiAudioOutputSchema: z.ZodObject<{
|
|
2628
|
-
format: z.ZodOptional<z.ZodEnum<{
|
|
2629
|
-
mp3: "mp3";
|
|
2630
|
-
wav: "wav";
|
|
2631
|
-
pcm: "pcm";
|
|
2632
|
-
opus: "opus";
|
|
2633
|
-
}>>;
|
|
2634
|
-
sampleRate: z.ZodOptional<z.ZodNumber>;
|
|
2635
|
-
}, z.core.$strip>;
|
|
2636
|
-
declare const aiAudioRequestSchema: z.ZodObject<{
|
|
2637
|
-
modelId: z.ZodString;
|
|
2638
|
-
text: z.ZodString;
|
|
2639
|
-
voice: z.ZodOptional<z.ZodString>;
|
|
2640
|
-
output: z.ZodOptional<z.ZodObject<{
|
|
2641
|
-
format: z.ZodOptional<z.ZodEnum<{
|
|
2642
|
-
mp3: "mp3";
|
|
2643
|
-
wav: "wav";
|
|
2644
|
-
pcm: "pcm";
|
|
2645
|
-
opus: "opus";
|
|
2646
|
-
}>>;
|
|
2647
|
-
sampleRate: z.ZodOptional<z.ZodNumber>;
|
|
2648
|
-
}, z.core.$strip>>;
|
|
2649
|
-
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2650
|
-
}, z.core.$strip>;
|
|
2651
|
-
declare const aiImageRequestSchema: z.ZodObject<{
|
|
2652
|
-
modelId: z.ZodString;
|
|
2653
|
-
prompt: z.ZodString;
|
|
2654
|
-
negativePrompt: z.ZodOptional<z.ZodString>;
|
|
2655
|
-
style: z.ZodOptional<z.ZodString>;
|
|
2656
|
-
inputs: z.ZodOptional<z.ZodObject<{
|
|
2657
|
-
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2658
|
-
url: z.ZodOptional<z.ZodString>;
|
|
2659
|
-
base64: z.ZodOptional<z.ZodString>;
|
|
2660
|
-
mediaType: z.ZodOptional<z.ZodString>;
|
|
2661
|
-
}, z.core.$strip>>>;
|
|
2662
|
-
mask: z.ZodOptional<z.ZodObject<{
|
|
2663
|
-
url: z.ZodOptional<z.ZodString>;
|
|
2664
|
-
base64: z.ZodOptional<z.ZodString>;
|
|
2665
|
-
mediaType: z.ZodOptional<z.ZodString>;
|
|
2666
|
-
}, z.core.$strip>>;
|
|
2667
|
-
}, z.core.$strip>>;
|
|
2668
|
-
output: z.ZodOptional<z.ZodObject<{
|
|
2669
|
-
count: z.ZodOptional<z.ZodNumber>;
|
|
2670
|
-
aspectRatio: z.ZodOptional<z.ZodEnum<{
|
|
2671
|
-
"1:1": "1:1";
|
|
2672
|
-
"16:9": "16:9";
|
|
2673
|
-
"9:16": "9:16";
|
|
2674
|
-
"4:3": "4:3";
|
|
2675
|
-
}>>;
|
|
2676
|
-
quality: z.ZodOptional<z.ZodEnum<{
|
|
2677
|
-
standard: "standard";
|
|
2678
|
-
hd: "hd";
|
|
2679
|
-
}>>;
|
|
2680
|
-
}, z.core.$strip>>;
|
|
2681
|
-
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2682
|
-
}, z.core.$strip>;
|
|
2683
|
-
declare const aiVideoRequestSchema: z.ZodObject<{
|
|
2684
|
-
modelId: z.ZodString;
|
|
2685
|
-
prompt: z.ZodString;
|
|
2686
|
-
negativePrompt: z.ZodOptional<z.ZodString>;
|
|
2687
|
-
style: z.ZodOptional<z.ZodString>;
|
|
2688
|
-
inputs: z.ZodOptional<z.ZodObject<{
|
|
2689
|
-
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2690
|
-
url: z.ZodOptional<z.ZodString>;
|
|
2691
|
-
base64: z.ZodOptional<z.ZodString>;
|
|
2692
|
-
mediaType: z.ZodOptional<z.ZodString>;
|
|
2693
|
-
}, z.core.$strip>>>;
|
|
2694
|
-
startImage: 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
|
-
endImage: z.ZodOptional<z.ZodObject<{
|
|
2700
|
-
url: z.ZodOptional<z.ZodString>;
|
|
2701
|
-
base64: z.ZodOptional<z.ZodString>;
|
|
2702
|
-
mediaType: z.ZodOptional<z.ZodString>;
|
|
2703
|
-
}, z.core.$strip>>;
|
|
2704
|
-
referenceVideo: z.ZodOptional<z.ZodObject<{
|
|
2705
|
-
url: z.ZodOptional<z.ZodString>;
|
|
2706
|
-
base64: z.ZodOptional<z.ZodString>;
|
|
2707
|
-
mediaType: z.ZodOptional<z.ZodString>;
|
|
2708
|
-
}, z.core.$strip>>;
|
|
2709
|
-
}, z.core.$strip>>;
|
|
2710
|
-
output: z.ZodOptional<z.ZodObject<{
|
|
2711
|
-
aspectRatio: z.ZodOptional<z.ZodString>;
|
|
2712
|
-
duration: z.ZodOptional<z.ZodNumber>;
|
|
2713
|
-
clarity: z.ZodOptional<z.ZodString>;
|
|
2714
|
-
withAudio: z.ZodOptional<z.ZodBoolean>;
|
|
2715
|
-
}, z.core.$strip>>;
|
|
2716
|
-
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2717
|
-
}, z.core.$strip>;
|
|
2718
|
-
declare const aiTaskCreatedDataSchema: z.ZodObject<{
|
|
2719
|
-
taskId: z.ZodString;
|
|
2720
|
-
}, z.core.$strip>;
|
|
2721
|
-
declare const aiErrorResponseSchema: z.ZodObject<{
|
|
2722
|
-
success: z.ZodLiteral<false>;
|
|
2723
|
-
code: z.ZodOptional<z.ZodString>;
|
|
2724
|
-
message: z.ZodString;
|
|
2725
|
-
}, z.core.$strip>;
|
|
2726
|
-
declare const aiTaskCreatedSuccessSchema: z.ZodObject<{
|
|
2727
|
-
success: z.ZodLiteral<true>;
|
|
2728
|
-
data: z.ZodObject<{
|
|
2729
|
-
taskId: z.ZodString;
|
|
2730
|
-
}, z.core.$strip>;
|
|
2731
|
-
}, z.core.$strip>;
|
|
2732
|
-
declare const aiTaskCreatedResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
2733
|
-
success: z.ZodLiteral<true>;
|
|
2734
|
-
data: z.ZodObject<{
|
|
2735
|
-
taskId: z.ZodString;
|
|
2736
|
-
}, z.core.$strip>;
|
|
2737
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
2738
|
-
success: z.ZodLiteral<false>;
|
|
2739
|
-
code: z.ZodOptional<z.ZodString>;
|
|
2740
|
-
message: z.ZodString;
|
|
2741
|
-
}, z.core.$strip>]>;
|
|
2742
|
-
declare const aiTaskStatusSchema: z.ZodEnum<{
|
|
2743
|
-
queued: "queued";
|
|
2744
|
-
running: "running";
|
|
2745
|
-
succeeded: "succeeded";
|
|
2746
|
-
failed: "failed";
|
|
2747
|
-
canceled: "canceled";
|
|
2748
|
-
}>;
|
|
2749
|
-
declare const aiTaskResultTypeSchema: z.ZodEnum<{
|
|
2750
|
-
image: "image";
|
|
2751
|
-
video: "video";
|
|
2752
|
-
audio: "audio";
|
|
2753
|
-
}>;
|
|
2754
|
-
declare const aiTaskErrorSchema: z.ZodObject<{
|
|
2755
|
-
code: z.ZodOptional<z.ZodString>;
|
|
2756
|
-
message: z.ZodString;
|
|
2757
|
-
}, z.core.$strip>;
|
|
2758
|
-
declare const aiTaskDataSchema: z.ZodObject<{
|
|
2759
|
-
status: z.ZodEnum<{
|
|
2760
|
-
queued: "queued";
|
|
2761
|
-
running: "running";
|
|
2762
|
-
succeeded: "succeeded";
|
|
2763
|
-
failed: "failed";
|
|
2764
|
-
canceled: "canceled";
|
|
2765
|
-
}>;
|
|
2766
|
-
progress: z.ZodOptional<z.ZodNumber>;
|
|
2767
|
-
resultType: z.ZodOptional<z.ZodEnum<{
|
|
2768
|
-
image: "image";
|
|
2769
|
-
video: "video";
|
|
2770
|
-
audio: "audio";
|
|
2771
|
-
}>>;
|
|
2772
|
-
resultUrls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2773
|
-
error: z.ZodOptional<z.ZodObject<{
|
|
2774
|
-
code: z.ZodOptional<z.ZodString>;
|
|
2775
|
-
message: z.ZodString;
|
|
2776
|
-
}, z.core.$strip>>;
|
|
2777
|
-
creditsConsumed: z.ZodOptional<z.ZodNumber>;
|
|
2778
|
-
}, z.core.$strip>;
|
|
2779
|
-
declare const aiTaskSuccessSchema: z.ZodObject<{
|
|
2780
|
-
success: z.ZodLiteral<true>;
|
|
2781
|
-
data: z.ZodObject<{
|
|
2782
|
-
status: z.ZodEnum<{
|
|
2783
|
-
queued: "queued";
|
|
2784
|
-
running: "running";
|
|
2785
|
-
succeeded: "succeeded";
|
|
2786
|
-
failed: "failed";
|
|
2787
|
-
canceled: "canceled";
|
|
2788
|
-
}>;
|
|
2789
|
-
progress: z.ZodOptional<z.ZodNumber>;
|
|
2790
|
-
resultType: z.ZodOptional<z.ZodEnum<{
|
|
2791
|
-
image: "image";
|
|
2792
|
-
video: "video";
|
|
2793
|
-
audio: "audio";
|
|
2794
|
-
}>>;
|
|
2795
|
-
resultUrls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2796
|
-
error: z.ZodOptional<z.ZodObject<{
|
|
2797
|
-
code: z.ZodOptional<z.ZodString>;
|
|
2798
|
-
message: z.ZodString;
|
|
2799
|
-
}, z.core.$strip>>;
|
|
2800
|
-
creditsConsumed: z.ZodOptional<z.ZodNumber>;
|
|
2801
|
-
}, z.core.$strip>;
|
|
2802
|
-
}, z.core.$strip>;
|
|
2803
|
-
declare const aiTaskResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
2804
|
-
success: z.ZodLiteral<true>;
|
|
2805
|
-
data: z.ZodObject<{
|
|
2806
|
-
status: z.ZodEnum<{
|
|
2807
|
-
queued: "queued";
|
|
2808
|
-
running: "running";
|
|
2809
|
-
succeeded: "succeeded";
|
|
2810
|
-
failed: "failed";
|
|
2811
|
-
canceled: "canceled";
|
|
2812
|
-
}>;
|
|
2813
|
-
progress: z.ZodOptional<z.ZodNumber>;
|
|
2814
|
-
resultType: z.ZodOptional<z.ZodEnum<{
|
|
2815
|
-
image: "image";
|
|
2816
|
-
video: "video";
|
|
2817
|
-
audio: "audio";
|
|
2818
|
-
}>>;
|
|
2819
|
-
resultUrls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2820
|
-
error: z.ZodOptional<z.ZodObject<{
|
|
2821
|
-
code: z.ZodOptional<z.ZodString>;
|
|
2822
|
-
message: z.ZodString;
|
|
2823
|
-
}, z.core.$strip>>;
|
|
2824
|
-
creditsConsumed: z.ZodOptional<z.ZodNumber>;
|
|
2825
|
-
}, z.core.$strip>;
|
|
2826
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
2827
|
-
success: z.ZodLiteral<false>;
|
|
2828
|
-
code: z.ZodOptional<z.ZodString>;
|
|
2829
|
-
message: z.ZodString;
|
|
2830
|
-
}, z.core.$strip>]>;
|
|
2831
|
-
declare const aiTaskCancelDataSchema: z.ZodObject<{
|
|
2832
|
-
status: z.ZodEnum<{
|
|
2833
|
-
canceled: "canceled";
|
|
2834
|
-
processing: "processing";
|
|
2835
|
-
}>;
|
|
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>;
|
|
2836
863
|
}, z.core.$strip>;
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
}, 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>;
|
|
2845
871
|
}, z.core.$strip>;
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
}, z.core.$
|
|
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<{
|
|
2855
891
|
success: z.ZodLiteral<false>;
|
|
2856
892
|
code: z.ZodOptional<z.ZodString>;
|
|
2857
893
|
message: z.ZodString;
|
|
2858
|
-
}, z.core.$strip
|
|
894
|
+
}, z.core.$strip>;
|
|
2859
895
|
declare const aiModelCapabilitiesInputSchema: z.ZodObject<{
|
|
2860
896
|
maxImages: z.ZodOptional<z.ZodNumber>;
|
|
2861
897
|
supportsMask: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2951,206 +987,49 @@ declare const aiModelCapabilitiesSchema: z.ZodObject<{
|
|
|
2951
987
|
declare const aiModelSchema: z.ZodObject<{
|
|
2952
988
|
id: z.ZodString;
|
|
2953
989
|
name: z.ZodOptional<z.ZodString>;
|
|
2954
|
-
familyId: z.ZodOptional<z.ZodString>;
|
|
2955
|
-
providerId: z.ZodOptional<z.ZodString>;
|
|
2956
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2957
|
-
capabilities: z.ZodOptional<z.ZodObject<{
|
|
2958
|
-
common: z.ZodOptional<z.ZodObject<{
|
|
2959
|
-
maxContextK: z.ZodOptional<z.ZodNumber>;
|
|
2960
|
-
supportsStructuredOutput: z.ZodOptional<z.ZodBoolean>;
|
|
2961
|
-
supportsWebSearch: z.ZodOptional<z.ZodBoolean>;
|
|
2962
|
-
}, z.core.$strip>>;
|
|
2963
|
-
params: z.ZodOptional<z.ZodObject<{
|
|
2964
|
-
features: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2965
|
-
fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2966
|
-
key: z.ZodString;
|
|
2967
|
-
title: z.ZodString;
|
|
2968
|
-
description: z.ZodOptional<z.ZodString>;
|
|
2969
|
-
type: z.ZodEnum<{
|
|
2970
|
-
number: "number";
|
|
2971
|
-
boolean: "boolean";
|
|
2972
|
-
text: "text";
|
|
2973
|
-
select: "select";
|
|
2974
|
-
}>;
|
|
2975
|
-
unit: z.ZodOptional<z.ZodString>;
|
|
2976
|
-
values: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
2977
|
-
min: z.ZodOptional<z.ZodNumber>;
|
|
2978
|
-
max: z.ZodOptional<z.ZodNumber>;
|
|
2979
|
-
step: z.ZodOptional<z.ZodNumber>;
|
|
2980
|
-
default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
2981
|
-
request: z.ZodBoolean;
|
|
2982
|
-
}, z.core.$strip>>>;
|
|
2983
|
-
}, z.core.$strip>>;
|
|
2984
|
-
input: z.ZodOptional<z.ZodObject<{
|
|
2985
|
-
maxImages: z.ZodOptional<z.ZodNumber>;
|
|
2986
|
-
supportsMask: z.ZodOptional<z.ZodBoolean>;
|
|
2987
|
-
supportsReferenceVideo: z.ZodOptional<z.ZodBoolean>;
|
|
2988
|
-
supportsStartEnd: z.ZodOptional<z.ZodBoolean>;
|
|
2989
|
-
}, z.core.$strip>>;
|
|
2990
|
-
output: z.ZodOptional<z.ZodObject<{
|
|
2991
|
-
supportsMulti: z.ZodOptional<z.ZodBoolean>;
|
|
2992
|
-
supportsAudio: z.ZodOptional<z.ZodBoolean>;
|
|
2993
|
-
}, z.core.$strip>>;
|
|
2994
|
-
}, z.core.$strip>>;
|
|
2995
|
-
creditsPerCall: z.ZodOptional<z.ZodNumber>;
|
|
2996
|
-
}, z.core.$loose>;
|
|
2997
|
-
declare const aiModelsPayloadSchema: z.ZodObject<{
|
|
2998
|
-
data: z.ZodArray<z.ZodObject<{
|
|
2999
|
-
id: z.ZodString;
|
|
3000
|
-
name: z.ZodOptional<z.ZodString>;
|
|
3001
|
-
familyId: z.ZodOptional<z.ZodString>;
|
|
3002
|
-
providerId: z.ZodOptional<z.ZodString>;
|
|
3003
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3004
|
-
capabilities: z.ZodOptional<z.ZodObject<{
|
|
3005
|
-
common: z.ZodOptional<z.ZodObject<{
|
|
3006
|
-
maxContextK: z.ZodOptional<z.ZodNumber>;
|
|
3007
|
-
supportsStructuredOutput: z.ZodOptional<z.ZodBoolean>;
|
|
3008
|
-
supportsWebSearch: z.ZodOptional<z.ZodBoolean>;
|
|
3009
|
-
}, z.core.$strip>>;
|
|
3010
|
-
params: z.ZodOptional<z.ZodObject<{
|
|
3011
|
-
features: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3012
|
-
fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3013
|
-
key: z.ZodString;
|
|
3014
|
-
title: z.ZodString;
|
|
3015
|
-
description: z.ZodOptional<z.ZodString>;
|
|
3016
|
-
type: z.ZodEnum<{
|
|
3017
|
-
number: "number";
|
|
3018
|
-
boolean: "boolean";
|
|
3019
|
-
text: "text";
|
|
3020
|
-
select: "select";
|
|
3021
|
-
}>;
|
|
3022
|
-
unit: z.ZodOptional<z.ZodString>;
|
|
3023
|
-
values: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
3024
|
-
min: z.ZodOptional<z.ZodNumber>;
|
|
3025
|
-
max: z.ZodOptional<z.ZodNumber>;
|
|
3026
|
-
step: z.ZodOptional<z.ZodNumber>;
|
|
3027
|
-
default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
3028
|
-
request: z.ZodBoolean;
|
|
3029
|
-
}, z.core.$strip>>>;
|
|
3030
|
-
}, z.core.$strip>>;
|
|
3031
|
-
input: z.ZodOptional<z.ZodObject<{
|
|
3032
|
-
maxImages: z.ZodOptional<z.ZodNumber>;
|
|
3033
|
-
supportsMask: z.ZodOptional<z.ZodBoolean>;
|
|
3034
|
-
supportsReferenceVideo: z.ZodOptional<z.ZodBoolean>;
|
|
3035
|
-
supportsStartEnd: z.ZodOptional<z.ZodBoolean>;
|
|
3036
|
-
}, z.core.$strip>>;
|
|
3037
|
-
output: z.ZodOptional<z.ZodObject<{
|
|
3038
|
-
supportsMulti: z.ZodOptional<z.ZodBoolean>;
|
|
3039
|
-
supportsAudio: z.ZodOptional<z.ZodBoolean>;
|
|
3040
|
-
}, z.core.$strip>>;
|
|
3041
|
-
}, z.core.$strip>>;
|
|
3042
|
-
creditsPerCall: z.ZodOptional<z.ZodNumber>;
|
|
3043
|
-
}, z.core.$loose>>;
|
|
3044
|
-
updatedAt: z.ZodOptional<z.ZodString>;
|
|
3045
|
-
}, z.core.$strip>;
|
|
3046
|
-
declare const aiModelsSuccessSchema: z.ZodObject<{
|
|
3047
|
-
success: z.ZodLiteral<true>;
|
|
3048
|
-
data: z.ZodObject<{
|
|
3049
|
-
data: z.ZodArray<z.ZodObject<{
|
|
3050
|
-
id: z.ZodString;
|
|
3051
|
-
name: z.ZodOptional<z.ZodString>;
|
|
3052
|
-
familyId: z.ZodOptional<z.ZodString>;
|
|
3053
|
-
providerId: z.ZodOptional<z.ZodString>;
|
|
3054
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3055
|
-
capabilities: z.ZodOptional<z.ZodObject<{
|
|
3056
|
-
common: z.ZodOptional<z.ZodObject<{
|
|
3057
|
-
maxContextK: z.ZodOptional<z.ZodNumber>;
|
|
3058
|
-
supportsStructuredOutput: z.ZodOptional<z.ZodBoolean>;
|
|
3059
|
-
supportsWebSearch: z.ZodOptional<z.ZodBoolean>;
|
|
3060
|
-
}, z.core.$strip>>;
|
|
3061
|
-
params: z.ZodOptional<z.ZodObject<{
|
|
3062
|
-
features: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3063
|
-
fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3064
|
-
key: z.ZodString;
|
|
3065
|
-
title: z.ZodString;
|
|
3066
|
-
description: z.ZodOptional<z.ZodString>;
|
|
3067
|
-
type: z.ZodEnum<{
|
|
3068
|
-
number: "number";
|
|
3069
|
-
boolean: "boolean";
|
|
3070
|
-
text: "text";
|
|
3071
|
-
select: "select";
|
|
3072
|
-
}>;
|
|
3073
|
-
unit: z.ZodOptional<z.ZodString>;
|
|
3074
|
-
values: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
3075
|
-
min: z.ZodOptional<z.ZodNumber>;
|
|
3076
|
-
max: z.ZodOptional<z.ZodNumber>;
|
|
3077
|
-
step: z.ZodOptional<z.ZodNumber>;
|
|
3078
|
-
default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
3079
|
-
request: z.ZodBoolean;
|
|
3080
|
-
}, z.core.$strip>>>;
|
|
3081
|
-
}, z.core.$strip>>;
|
|
3082
|
-
input: z.ZodOptional<z.ZodObject<{
|
|
3083
|
-
maxImages: z.ZodOptional<z.ZodNumber>;
|
|
3084
|
-
supportsMask: z.ZodOptional<z.ZodBoolean>;
|
|
3085
|
-
supportsReferenceVideo: z.ZodOptional<z.ZodBoolean>;
|
|
3086
|
-
supportsStartEnd: z.ZodOptional<z.ZodBoolean>;
|
|
3087
|
-
}, z.core.$strip>>;
|
|
3088
|
-
output: z.ZodOptional<z.ZodObject<{
|
|
3089
|
-
supportsMulti: z.ZodOptional<z.ZodBoolean>;
|
|
3090
|
-
supportsAudio: z.ZodOptional<z.ZodBoolean>;
|
|
3091
|
-
}, z.core.$strip>>;
|
|
3092
|
-
}, z.core.$strip>>;
|
|
3093
|
-
creditsPerCall: z.ZodOptional<z.ZodNumber>;
|
|
3094
|
-
}, z.core.$loose>>;
|
|
3095
|
-
updatedAt: z.ZodOptional<z.ZodString>;
|
|
3096
|
-
}, z.core.$strip>;
|
|
3097
|
-
}, z.core.$strip>;
|
|
3098
|
-
declare const aiModelsResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
3099
|
-
success: z.ZodLiteral<true>;
|
|
3100
|
-
data: z.ZodObject<{
|
|
3101
|
-
data: z.ZodArray<z.ZodObject<{
|
|
3102
|
-
id: z.ZodString;
|
|
3103
|
-
name: z.ZodOptional<z.ZodString>;
|
|
3104
|
-
familyId: z.ZodOptional<z.ZodString>;
|
|
3105
|
-
providerId: z.ZodOptional<z.ZodString>;
|
|
3106
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3107
|
-
capabilities: z.ZodOptional<z.ZodObject<{
|
|
3108
|
-
common: z.ZodOptional<z.ZodObject<{
|
|
3109
|
-
maxContextK: z.ZodOptional<z.ZodNumber>;
|
|
3110
|
-
supportsStructuredOutput: z.ZodOptional<z.ZodBoolean>;
|
|
3111
|
-
supportsWebSearch: z.ZodOptional<z.ZodBoolean>;
|
|
3112
|
-
}, z.core.$strip>>;
|
|
3113
|
-
params: z.ZodOptional<z.ZodObject<{
|
|
3114
|
-
features: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3115
|
-
fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3116
|
-
key: z.ZodString;
|
|
3117
|
-
title: z.ZodString;
|
|
3118
|
-
description: z.ZodOptional<z.ZodString>;
|
|
3119
|
-
type: z.ZodEnum<{
|
|
3120
|
-
number: "number";
|
|
3121
|
-
boolean: "boolean";
|
|
3122
|
-
text: "text";
|
|
3123
|
-
select: "select";
|
|
3124
|
-
}>;
|
|
3125
|
-
unit: z.ZodOptional<z.ZodString>;
|
|
3126
|
-
values: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
3127
|
-
min: z.ZodOptional<z.ZodNumber>;
|
|
3128
|
-
max: z.ZodOptional<z.ZodNumber>;
|
|
3129
|
-
step: z.ZodOptional<z.ZodNumber>;
|
|
3130
|
-
default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
3131
|
-
request: z.ZodBoolean;
|
|
3132
|
-
}, z.core.$strip>>>;
|
|
3133
|
-
}, z.core.$strip>>;
|
|
3134
|
-
input: z.ZodOptional<z.ZodObject<{
|
|
3135
|
-
maxImages: z.ZodOptional<z.ZodNumber>;
|
|
3136
|
-
supportsMask: z.ZodOptional<z.ZodBoolean>;
|
|
3137
|
-
supportsReferenceVideo: z.ZodOptional<z.ZodBoolean>;
|
|
3138
|
-
supportsStartEnd: z.ZodOptional<z.ZodBoolean>;
|
|
3139
|
-
}, z.core.$strip>>;
|
|
3140
|
-
output: z.ZodOptional<z.ZodObject<{
|
|
3141
|
-
supportsMulti: z.ZodOptional<z.ZodBoolean>;
|
|
3142
|
-
supportsAudio: z.ZodOptional<z.ZodBoolean>;
|
|
3143
|
-
}, z.core.$strip>>;
|
|
3144
|
-
}, z.core.$strip>>;
|
|
3145
|
-
creditsPerCall: z.ZodOptional<z.ZodNumber>;
|
|
3146
|
-
}, z.core.$loose>>;
|
|
3147
|
-
updatedAt: z.ZodOptional<z.ZodString>;
|
|
3148
|
-
}, z.core.$strip>;
|
|
3149
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
3150
|
-
success: z.ZodLiteral<false>;
|
|
3151
|
-
code: z.ZodOptional<z.ZodString>;
|
|
3152
|
-
message: z.ZodString;
|
|
3153
|
-
}, 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>;
|
|
3154
1033
|
declare const aiChatModelSchema: z.ZodObject<{
|
|
3155
1034
|
id: z.ZodString;
|
|
3156
1035
|
provider: z.ZodString;
|
|
@@ -3382,32 +1261,17 @@ declare const aiModelsUpdatedAtResponseSchema: z.ZodUnion<readonly [z.ZodObject<
|
|
|
3382
1261
|
message: z.ZodString;
|
|
3383
1262
|
}, z.core.$strip>]>;
|
|
3384
1263
|
declare const aiModelsRequestSchema: z.ZodVoid;
|
|
3385
|
-
declare const aiTaskRequestSchema: z.ZodVoid;
|
|
3386
|
-
declare const aiTaskCancelRequestSchema: z.ZodVoid;
|
|
3387
|
-
type AiMediaInput = z.infer<typeof aiMediaInputSchema>;
|
|
3388
|
-
type AiImageInputs = z.infer<typeof aiImageInputsSchema>;
|
|
3389
|
-
type AiVideoInputs = z.infer<typeof aiVideoInputsSchema>;
|
|
3390
|
-
type AiImageOutput = z.infer<typeof aiImageOutputSchema>;
|
|
3391
|
-
type AiVideoOutput = z.infer<typeof aiVideoOutputSchema>;
|
|
3392
|
-
type AiAudioOutput = z.infer<typeof aiAudioOutputSchema>;
|
|
3393
|
-
type AiAudioRequest = z.infer<typeof aiAudioRequestSchema>;
|
|
3394
1264
|
type AiModelCapabilitiesInput = z.infer<typeof aiModelCapabilitiesInputSchema>;
|
|
3395
1265
|
type AiModelCapabilitiesOutput = z.infer<typeof aiModelCapabilitiesOutputSchema>;
|
|
3396
1266
|
type AiModelCapabilities = z.infer<typeof aiModelCapabilitiesSchema>;
|
|
1267
|
+
type AiModel = z.infer<typeof aiModelSchema>;
|
|
3397
1268
|
type AiClientMetadata = z.infer<typeof aiClientMetadataSchema>;
|
|
3398
1269
|
/** @deprecated Use AiClientMetadata instead. */
|
|
3399
1270
|
type AiChatSessionMetadata = AiClientMetadata;
|
|
3400
1271
|
type AiChatCompletionsRequest = z.infer<typeof aiChatCompletionsRequestSchema>;
|
|
3401
1272
|
type AiResponsesRequest = z.infer<typeof aiResponsesRequestSchema>;
|
|
3402
|
-
type AiImageRequest = z.infer<typeof aiImageRequestSchema>;
|
|
3403
|
-
type AiVideoRequest = z.infer<typeof aiVideoRequestSchema>;
|
|
3404
|
-
type AiTaskCreatedResponse = z.infer<typeof aiTaskCreatedResponseSchema>;
|
|
3405
|
-
type AiTaskResponse = z.infer<typeof aiTaskResponseSchema>;
|
|
3406
|
-
type AiTaskCancelResponse = z.infer<typeof aiTaskCancelResponseSchema>;
|
|
3407
|
-
type AiModelsResponse = z.infer<typeof aiModelsResponseSchema>;
|
|
3408
1273
|
type AiModelsUpdatedAtData = z.infer<typeof aiModelsUpdatedAtDataSchema>;
|
|
3409
1274
|
type AiModelsUpdatedAtResponse = z.infer<typeof aiModelsUpdatedAtResponseSchema>;
|
|
3410
|
-
type AiModel = z.infer<typeof aiModelSchema>;
|
|
3411
1275
|
type AiChatModel = z.infer<typeof aiChatModelSchema>;
|
|
3412
1276
|
type AiChatModelsResponse = z.infer<typeof aiChatModelsResponseSchema>;
|
|
3413
1277
|
declare const aiProviderTemplateModelSchema: z.ZodObject<{
|
|
@@ -3698,249 +1562,229 @@ declare const aiProviderTemplatesResponseSchema: z.ZodUnion<readonly [z.ZodObjec
|
|
|
3698
1562
|
declare const aiProviderTemplatesRequestSchema: z.ZodVoid;
|
|
3699
1563
|
type AiProviderTemplateModel = z.infer<typeof aiProviderTemplateModelSchema>;
|
|
3700
1564
|
type AiProviderTemplate = z.infer<typeof aiProviderTemplateSchema>;
|
|
3701
|
-
type AiProviderTemplatesResponse = z.infer<typeof aiProviderTemplatesResponseSchema>;
|
|
3702
|
-
/**
|
|
3703
|
-
type
|
|
3704
|
-
/**
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
|
|
3719
|
-
|
|
3720
|
-
|
|
3721
|
-
|
|
3722
|
-
|
|
3723
|
-
|
|
3724
|
-
|
|
3725
|
-
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
|
|
3752
|
-
|
|
3753
|
-
|
|
3754
|
-
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
|
|
3784
|
-
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
code?: string | undefined;
|
|
3790
|
-
} | {
|
|
3791
|
-
success: true;
|
|
3792
|
-
data: {
|
|
3793
|
-
data: {
|
|
3794
|
-
[x: string]: unknown;
|
|
3795
|
-
id: string;
|
|
3796
|
-
name?: string | undefined;
|
|
3797
|
-
familyId?: string | undefined;
|
|
3798
|
-
providerId?: string | undefined;
|
|
3799
|
-
tags?: string[] | undefined;
|
|
3800
|
-
capabilities?: {
|
|
3801
|
-
common?: {
|
|
3802
|
-
maxContextK?: number | undefined;
|
|
3803
|
-
supportsStructuredOutput?: boolean | undefined;
|
|
3804
|
-
supportsWebSearch?: boolean | undefined;
|
|
3805
|
-
} | undefined;
|
|
3806
|
-
params?: {
|
|
3807
|
-
features?: string[] | undefined;
|
|
3808
|
-
fields?: {
|
|
3809
|
-
key: string;
|
|
3810
|
-
title: string;
|
|
3811
|
-
type: "number" | "boolean" | "text" | "select";
|
|
3812
|
-
request: boolean;
|
|
3813
|
-
description?: string | undefined;
|
|
3814
|
-
unit?: string | undefined;
|
|
3815
|
-
values?: (string | number | boolean)[] | undefined;
|
|
3816
|
-
min?: number | undefined;
|
|
3817
|
-
max?: number | undefined;
|
|
3818
|
-
step?: number | undefined;
|
|
3819
|
-
default?: string | number | boolean | undefined;
|
|
3820
|
-
}[] | undefined;
|
|
3821
|
-
} | undefined;
|
|
3822
|
-
input?: {
|
|
3823
|
-
maxImages?: number | undefined;
|
|
3824
|
-
supportsMask?: boolean | undefined;
|
|
3825
|
-
supportsReferenceVideo?: boolean | undefined;
|
|
3826
|
-
supportsStartEnd?: boolean | undefined;
|
|
3827
|
-
} | undefined;
|
|
3828
|
-
output?: {
|
|
3829
|
-
supportsMulti?: boolean | undefined;
|
|
3830
|
-
supportsAudio?: boolean | undefined;
|
|
3831
|
-
} | undefined;
|
|
3832
|
-
} | undefined;
|
|
3833
|
-
creditsPerCall?: number | undefined;
|
|
3834
|
-
}[];
|
|
3835
|
-
updatedAt?: string | undefined;
|
|
3836
|
-
};
|
|
3837
|
-
}>;
|
|
3838
|
-
/** List available video models. */
|
|
3839
|
-
videoModels(): Promise<{
|
|
3840
|
-
success: false;
|
|
3841
|
-
message: string;
|
|
3842
|
-
code?: string | undefined;
|
|
3843
|
-
} | {
|
|
3844
|
-
success: true;
|
|
3845
|
-
data: {
|
|
3846
|
-
data: {
|
|
3847
|
-
[x: string]: unknown;
|
|
3848
|
-
id: string;
|
|
3849
|
-
name?: string | undefined;
|
|
3850
|
-
familyId?: string | undefined;
|
|
3851
|
-
providerId?: string | undefined;
|
|
3852
|
-
tags?: string[] | undefined;
|
|
3853
|
-
capabilities?: {
|
|
3854
|
-
common?: {
|
|
3855
|
-
maxContextK?: number | undefined;
|
|
3856
|
-
supportsStructuredOutput?: boolean | undefined;
|
|
3857
|
-
supportsWebSearch?: boolean | undefined;
|
|
3858
|
-
} | undefined;
|
|
3859
|
-
params?: {
|
|
3860
|
-
features?: string[] | undefined;
|
|
3861
|
-
fields?: {
|
|
3862
|
-
key: string;
|
|
3863
|
-
title: string;
|
|
3864
|
-
type: "number" | "boolean" | "text" | "select";
|
|
3865
|
-
request: boolean;
|
|
3866
|
-
description?: string | undefined;
|
|
3867
|
-
unit?: string | undefined;
|
|
3868
|
-
values?: (string | number | boolean)[] | undefined;
|
|
3869
|
-
min?: number | undefined;
|
|
3870
|
-
max?: number | undefined;
|
|
3871
|
-
step?: number | undefined;
|
|
3872
|
-
default?: string | number | boolean | undefined;
|
|
3873
|
-
}[] | undefined;
|
|
3874
|
-
} | undefined;
|
|
3875
|
-
input?: {
|
|
3876
|
-
maxImages?: number | undefined;
|
|
3877
|
-
supportsMask?: boolean | undefined;
|
|
3878
|
-
supportsReferenceVideo?: boolean | undefined;
|
|
3879
|
-
supportsStartEnd?: boolean | undefined;
|
|
3880
|
-
} | undefined;
|
|
3881
|
-
output?: {
|
|
3882
|
-
supportsMulti?: boolean | undefined;
|
|
3883
|
-
supportsAudio?: boolean | undefined;
|
|
3884
|
-
} | undefined;
|
|
3885
|
-
} | undefined;
|
|
3886
|
-
creditsPerCall?: number | undefined;
|
|
3887
|
-
}[];
|
|
3888
|
-
updatedAt?: string | undefined;
|
|
3889
|
-
};
|
|
3890
|
-
}>;
|
|
3891
|
-
/** List available audio models. */
|
|
3892
|
-
audioModels(): Promise<{
|
|
3893
|
-
success: false;
|
|
3894
|
-
message: string;
|
|
3895
|
-
code?: string | undefined;
|
|
3896
|
-
} | {
|
|
3897
|
-
success: true;
|
|
3898
|
-
data: {
|
|
3899
|
-
data: {
|
|
3900
|
-
[x: string]: unknown;
|
|
3901
|
-
id: string;
|
|
3902
|
-
name?: string | undefined;
|
|
3903
|
-
familyId?: string | undefined;
|
|
3904
|
-
providerId?: string | undefined;
|
|
3905
|
-
tags?: string[] | undefined;
|
|
3906
|
-
capabilities?: {
|
|
3907
|
-
common?: {
|
|
3908
|
-
maxContextK?: number | undefined;
|
|
3909
|
-
supportsStructuredOutput?: boolean | undefined;
|
|
3910
|
-
supportsWebSearch?: boolean | undefined;
|
|
3911
|
-
} | undefined;
|
|
3912
|
-
params?: {
|
|
3913
|
-
features?: string[] | undefined;
|
|
3914
|
-
fields?: {
|
|
3915
|
-
key: string;
|
|
3916
|
-
title: string;
|
|
3917
|
-
type: "number" | "boolean" | "text" | "select";
|
|
3918
|
-
request: boolean;
|
|
3919
|
-
description?: string | undefined;
|
|
3920
|
-
unit?: string | undefined;
|
|
3921
|
-
values?: (string | number | boolean)[] | undefined;
|
|
3922
|
-
min?: number | undefined;
|
|
3923
|
-
max?: number | undefined;
|
|
3924
|
-
step?: number | undefined;
|
|
3925
|
-
default?: string | number | boolean | undefined;
|
|
3926
|
-
}[] | undefined;
|
|
3927
|
-
} | undefined;
|
|
3928
|
-
input?: {
|
|
3929
|
-
maxImages?: number | undefined;
|
|
3930
|
-
supportsMask?: boolean | undefined;
|
|
3931
|
-
supportsReferenceVideo?: boolean | undefined;
|
|
3932
|
-
supportsStartEnd?: boolean | undefined;
|
|
3933
|
-
} | undefined;
|
|
3934
|
-
output?: {
|
|
3935
|
-
supportsMulti?: boolean | undefined;
|
|
3936
|
-
supportsAudio?: boolean | undefined;
|
|
3937
|
-
} | undefined;
|
|
3938
|
-
} | undefined;
|
|
3939
|
-
creditsPerCall?: number | undefined;
|
|
3940
|
-
}[];
|
|
3941
|
-
updatedAt?: string | undefined;
|
|
3942
|
-
};
|
|
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";
|
|
3943
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);
|
|
3944
1788
|
/** List available chat models. */
|
|
3945
1789
|
chatModels(): Promise<{
|
|
3946
1790
|
success: false;
|
|
@@ -4010,8 +1854,9 @@ declare class AiClient {
|
|
|
4010
1854
|
/**
|
|
4011
1855
|
* Upload a file for use in AI chat conversations.
|
|
4012
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.
|
|
4013
1858
|
*/
|
|
4014
|
-
uploadFile(file: File | Blob, filename?: string): Promise<AiFileUploadResponse>;
|
|
1859
|
+
uploadFile(file: File | Blob, filename?: string, options?: AiFileUploadOptions): Promise<AiFileUploadResponse>;
|
|
4015
1860
|
/** Fetch provider templates (public, no auth required). */
|
|
4016
1861
|
providerTemplates(): Promise<{
|
|
4017
1862
|
success: false;
|
|
@@ -4073,122 +1918,112 @@ declare class AiClient {
|
|
|
4073
1918
|
updatedAt?: string | undefined;
|
|
4074
1919
|
};
|
|
4075
1920
|
}>;
|
|
4076
|
-
/**
|
|
4077
|
-
|
|
4078
|
-
success:
|
|
4079
|
-
|
|
4080
|
-
|
|
4081
|
-
|
|
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<{
|
|
4082
1977
|
success: true;
|
|
4083
1978
|
data: {
|
|
4084
1979
|
taskId: string;
|
|
1980
|
+
} | {
|
|
1981
|
+
groupId: string;
|
|
1982
|
+
taskIds: string[];
|
|
4085
1983
|
};
|
|
4086
1984
|
}>;
|
|
4087
|
-
/** Fetch
|
|
4088
|
-
|
|
4089
|
-
success: false;
|
|
4090
|
-
message: string;
|
|
4091
|
-
code?: string | undefined;
|
|
4092
|
-
} | {
|
|
1985
|
+
/** Fetch v3 task status by ID. */
|
|
1986
|
+
v3Task(taskId: string): Promise<{
|
|
4093
1987
|
success: true;
|
|
4094
1988
|
data: {
|
|
1989
|
+
taskId: string;
|
|
4095
1990
|
status: "queued" | "running" | "succeeded" | "failed" | "canceled";
|
|
4096
|
-
progress?: number | undefined;
|
|
4097
|
-
resultType?: "image" | "video" | "audio" | undefined;
|
|
4098
1991
|
resultUrls?: string[] | undefined;
|
|
1992
|
+
resultText?: string | undefined;
|
|
1993
|
+
creditsConsumed?: number | undefined;
|
|
4099
1994
|
error?: {
|
|
4100
1995
|
message: string;
|
|
4101
1996
|
code?: string | undefined;
|
|
4102
1997
|
} | undefined;
|
|
4103
|
-
creditsConsumed?: number | undefined;
|
|
4104
1998
|
};
|
|
4105
1999
|
}>;
|
|
4106
|
-
/** Cancel a
|
|
4107
|
-
|
|
4108
|
-
success: false;
|
|
4109
|
-
message: string;
|
|
4110
|
-
code?: string | undefined;
|
|
4111
|
-
} | {
|
|
2000
|
+
/** Cancel a v3 task by ID. */
|
|
2001
|
+
v3CancelTask(taskId: string): Promise<{
|
|
4112
2002
|
success: true;
|
|
4113
|
-
|
|
4114
|
-
status: "canceled" | "processing";
|
|
4115
|
-
};
|
|
2003
|
+
message?: string | undefined;
|
|
4116
2004
|
}>;
|
|
4117
|
-
/** Fetch
|
|
4118
|
-
|
|
4119
|
-
success: false;
|
|
4120
|
-
message: string;
|
|
4121
|
-
code?: string | undefined;
|
|
4122
|
-
} | {
|
|
2005
|
+
/** Fetch v3 task group status by group ID. */
|
|
2006
|
+
v3TaskGroup(groupId: string): Promise<{
|
|
4123
2007
|
success: true;
|
|
4124
2008
|
data: {
|
|
4125
2009
|
groupId: string;
|
|
2010
|
+
status: "running" | "succeeded" | "failed" | "partial";
|
|
4126
2011
|
tasks: {
|
|
4127
2012
|
taskId: string;
|
|
4128
2013
|
status: "queued" | "running" | "succeeded" | "failed" | "canceled";
|
|
4129
2014
|
resultUrls?: string[] | undefined;
|
|
2015
|
+
resultText?: string | undefined;
|
|
2016
|
+
creditsConsumed?: number | undefined;
|
|
4130
2017
|
error?: {
|
|
4131
2018
|
message: string;
|
|
4132
2019
|
code?: string | undefined;
|
|
4133
2020
|
} | undefined;
|
|
4134
|
-
creditsConsumed?: number | undefined;
|
|
4135
2021
|
}[];
|
|
4136
2022
|
totalCreditsConsumed?: number | undefined;
|
|
4137
2023
|
};
|
|
4138
2024
|
}>;
|
|
4139
|
-
/**
|
|
4140
|
-
|
|
4141
|
-
success: false;
|
|
4142
|
-
message: string;
|
|
4143
|
-
code?: string | undefined;
|
|
4144
|
-
} | {
|
|
4145
|
-
success: true;
|
|
4146
|
-
data: {
|
|
4147
|
-
data: {
|
|
4148
|
-
[x: string]: unknown;
|
|
4149
|
-
id: string;
|
|
4150
|
-
name?: string | undefined;
|
|
4151
|
-
familyId?: string | undefined;
|
|
4152
|
-
providerId?: string | undefined;
|
|
4153
|
-
tags?: string[] | undefined;
|
|
4154
|
-
capabilities?: {
|
|
4155
|
-
common?: {
|
|
4156
|
-
maxContextK?: number | undefined;
|
|
4157
|
-
supportsStructuredOutput?: boolean | undefined;
|
|
4158
|
-
supportsWebSearch?: boolean | undefined;
|
|
4159
|
-
} | undefined;
|
|
4160
|
-
params?: {
|
|
4161
|
-
features?: string[] | undefined;
|
|
4162
|
-
fields?: {
|
|
4163
|
-
key: string;
|
|
4164
|
-
title: string;
|
|
4165
|
-
type: "number" | "boolean" | "text" | "select";
|
|
4166
|
-
request: boolean;
|
|
4167
|
-
description?: string | undefined;
|
|
4168
|
-
unit?: string | undefined;
|
|
4169
|
-
values?: (string | number | boolean)[] | undefined;
|
|
4170
|
-
min?: number | undefined;
|
|
4171
|
-
max?: number | undefined;
|
|
4172
|
-
step?: number | undefined;
|
|
4173
|
-
default?: string | number | boolean | undefined;
|
|
4174
|
-
}[] | undefined;
|
|
4175
|
-
} | undefined;
|
|
4176
|
-
input?: {
|
|
4177
|
-
maxImages?: number | undefined;
|
|
4178
|
-
supportsMask?: boolean | undefined;
|
|
4179
|
-
supportsReferenceVideo?: boolean | undefined;
|
|
4180
|
-
supportsStartEnd?: boolean | undefined;
|
|
4181
|
-
} | undefined;
|
|
4182
|
-
output?: {
|
|
4183
|
-
supportsMulti?: boolean | undefined;
|
|
4184
|
-
supportsAudio?: boolean | undefined;
|
|
4185
|
-
} | undefined;
|
|
4186
|
-
} | undefined;
|
|
4187
|
-
creditsPerCall?: number | undefined;
|
|
4188
|
-
}[];
|
|
4189
|
-
updatedAt?: string | undefined;
|
|
4190
|
-
};
|
|
4191
|
-
}>;
|
|
2025
|
+
/** Estimate credits for a v3 generate request. */
|
|
2026
|
+
v3EstimatePrice(req: V3EstimatePriceRequest): Promise<V3EstimatePriceResponse>;
|
|
4192
2027
|
}
|
|
4193
2028
|
|
|
4194
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"];
|
|
@@ -4198,13 +2033,195 @@ declare const AI_MODEL_CAPABILITY_INPUT_KEYS: readonly ["maxImages", "supportsMa
|
|
|
4198
2033
|
type AiModelCapabilityInputKey = (typeof AI_MODEL_CAPABILITY_INPUT_KEYS)[number];
|
|
4199
2034
|
declare const AI_MODEL_CAPABILITY_OUTPUT_KEYS: readonly ["supportsMulti", "supportsAudio"];
|
|
4200
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;
|
|
4201
2220
|
|
|
4202
2221
|
declare const index$6_AI_MODEL_CAPABILITY_INPUT_KEYS: typeof AI_MODEL_CAPABILITY_INPUT_KEYS;
|
|
4203
2222
|
declare const index$6_AI_MODEL_CAPABILITY_OUTPUT_KEYS: typeof AI_MODEL_CAPABILITY_OUTPUT_KEYS;
|
|
4204
2223
|
declare const index$6_AI_MODEL_TAGS: typeof AI_MODEL_TAGS;
|
|
4205
2224
|
declare const index$6_AI_MODEL_TAG_LABELS: typeof AI_MODEL_TAG_LABELS;
|
|
4206
|
-
type index$6_AiAudioOutput = AiAudioOutput;
|
|
4207
|
-
type index$6_AiAudioRequest = AiAudioRequest;
|
|
4208
2225
|
type index$6_AiChatCompletionsRequest = AiChatCompletionsRequest;
|
|
4209
2226
|
type index$6_AiChatModel = AiChatModel;
|
|
4210
2227
|
type index$6_AiChatModelsResponse = AiChatModelsResponse;
|
|
@@ -4212,11 +2229,8 @@ type index$6_AiChatSessionMetadata = AiChatSessionMetadata;
|
|
|
4212
2229
|
type index$6_AiClient = AiClient;
|
|
4213
2230
|
declare const index$6_AiClient: typeof AiClient;
|
|
4214
2231
|
type index$6_AiClientMetadata = AiClientMetadata;
|
|
2232
|
+
type index$6_AiFileUploadOptions = AiFileUploadOptions;
|
|
4215
2233
|
type index$6_AiFileUploadResponse = AiFileUploadResponse;
|
|
4216
|
-
type index$6_AiImageInputs = AiImageInputs;
|
|
4217
|
-
type index$6_AiImageOutput = AiImageOutput;
|
|
4218
|
-
type index$6_AiImageRequest = AiImageRequest;
|
|
4219
|
-
type index$6_AiMediaInput = AiMediaInput;
|
|
4220
2234
|
type index$6_AiModel = AiModel;
|
|
4221
2235
|
type index$6_AiModelCapabilities = AiModelCapabilities;
|
|
4222
2236
|
type index$6_AiModelCapabilitiesInput = AiModelCapabilitiesInput;
|
|
@@ -4224,40 +2238,30 @@ type index$6_AiModelCapabilitiesOutput = AiModelCapabilitiesOutput;
|
|
|
4224
2238
|
type index$6_AiModelCapabilityInputKey = AiModelCapabilityInputKey;
|
|
4225
2239
|
type index$6_AiModelCapabilityOutputKey = AiModelCapabilityOutputKey;
|
|
4226
2240
|
type index$6_AiModelTag = AiModelTag;
|
|
4227
|
-
type index$6_AiModelsResponse = AiModelsResponse;
|
|
4228
2241
|
type index$6_AiModelsUpdatedAtData = AiModelsUpdatedAtData;
|
|
4229
2242
|
type index$6_AiModelsUpdatedAtResponse = AiModelsUpdatedAtResponse;
|
|
4230
2243
|
type index$6_AiProviderTemplate = AiProviderTemplate;
|
|
4231
2244
|
type index$6_AiProviderTemplateModel = AiProviderTemplateModel;
|
|
4232
2245
|
type index$6_AiProviderTemplatesResponse = AiProviderTemplatesResponse;
|
|
4233
2246
|
type index$6_AiResponsesRequest = AiResponsesRequest;
|
|
4234
|
-
|
|
4235
|
-
|
|
4236
|
-
type index$
|
|
4237
|
-
type index$
|
|
4238
|
-
type index$
|
|
4239
|
-
type index$
|
|
4240
|
-
type index$
|
|
4241
|
-
type index$
|
|
4242
|
-
type index$
|
|
4243
|
-
type index$
|
|
4244
|
-
type index$
|
|
4245
|
-
type index$
|
|
4246
|
-
type index$
|
|
4247
|
-
type index$
|
|
4248
|
-
type index$
|
|
4249
|
-
type index$
|
|
4250
|
-
type index$
|
|
4251
|
-
type index$
|
|
4252
|
-
type index$6_MediaTaskGroupSuccess = MediaTaskGroupSuccess;
|
|
4253
|
-
type index$6_MediaTaskItem = MediaTaskItem;
|
|
4254
|
-
type index$6_OutpaintRequest = OutpaintRequest;
|
|
4255
|
-
type index$6_PosterRequest = PosterRequest;
|
|
4256
|
-
type index$6_TtsRequest = TtsRequest;
|
|
4257
|
-
type index$6_UpscaleRequest = UpscaleRequest;
|
|
4258
|
-
type index$6_VideoGenerateRequest = VideoGenerateRequest;
|
|
4259
|
-
declare const index$6_aiAudioOutputSchema: typeof aiAudioOutputSchema;
|
|
4260
|
-
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;
|
|
4261
2265
|
declare const index$6_aiChatCompletionsRequestSchema: typeof aiChatCompletionsRequestSchema;
|
|
4262
2266
|
declare const index$6_aiChatModelSchema: typeof aiChatModelSchema;
|
|
4263
2267
|
declare const index$6_aiChatModelsPayloadSchema: typeof aiChatModelsPayloadSchema;
|
|
@@ -4267,10 +2271,6 @@ declare const index$6_aiChatSessionMetadataSchema: typeof aiChatSessionMetadataS
|
|
|
4267
2271
|
declare const index$6_aiClientMetadataSchema: typeof aiClientMetadataSchema;
|
|
4268
2272
|
declare const index$6_aiEndpoints: typeof aiEndpoints;
|
|
4269
2273
|
declare const index$6_aiErrorResponseSchema: typeof aiErrorResponseSchema;
|
|
4270
|
-
declare const index$6_aiImageInputsSchema: typeof aiImageInputsSchema;
|
|
4271
|
-
declare const index$6_aiImageOutputSchema: typeof aiImageOutputSchema;
|
|
4272
|
-
declare const index$6_aiImageRequestSchema: typeof aiImageRequestSchema;
|
|
4273
|
-
declare const index$6_aiMediaInputSchema: typeof aiMediaInputSchema;
|
|
4274
2274
|
declare const index$6_aiModelCapabilitiesInputSchema: typeof aiModelCapabilitiesInputSchema;
|
|
4275
2275
|
declare const index$6_aiModelCapabilitiesOutputSchema: typeof aiModelCapabilitiesOutputSchema;
|
|
4276
2276
|
declare const index$6_aiModelCapabilitiesSchema: typeof aiModelCapabilitiesSchema;
|
|
@@ -4278,10 +2278,7 @@ declare const index$6_aiModelCapabilityCommonSchema: typeof aiModelCapabilityCom
|
|
|
4278
2278
|
declare const index$6_aiModelParameterFieldSchema: typeof aiModelParameterFieldSchema;
|
|
4279
2279
|
declare const index$6_aiModelParamsSchema: typeof aiModelParamsSchema;
|
|
4280
2280
|
declare const index$6_aiModelSchema: typeof aiModelSchema;
|
|
4281
|
-
declare const index$6_aiModelsPayloadSchema: typeof aiModelsPayloadSchema;
|
|
4282
2281
|
declare const index$6_aiModelsRequestSchema: typeof aiModelsRequestSchema;
|
|
4283
|
-
declare const index$6_aiModelsResponseSchema: typeof aiModelsResponseSchema;
|
|
4284
|
-
declare const index$6_aiModelsSuccessSchema: typeof aiModelsSuccessSchema;
|
|
4285
2282
|
declare const index$6_aiModelsUpdatedAtDataSchema: typeof aiModelsUpdatedAtDataSchema;
|
|
4286
2283
|
declare const index$6_aiModelsUpdatedAtResponseSchema: typeof aiModelsUpdatedAtResponseSchema;
|
|
4287
2284
|
declare const index$6_aiModelsUpdatedAtSuccessSchema: typeof aiModelsUpdatedAtSuccessSchema;
|
|
@@ -4292,45 +2289,21 @@ declare const index$6_aiProviderTemplatesRequestSchema: typeof aiProviderTemplat
|
|
|
4292
2289
|
declare const index$6_aiProviderTemplatesResponseSchema: typeof aiProviderTemplatesResponseSchema;
|
|
4293
2290
|
declare const index$6_aiProviderTemplatesSuccessSchema: typeof aiProviderTemplatesSuccessSchema;
|
|
4294
2291
|
declare const index$6_aiResponsesRequestSchema: typeof aiResponsesRequestSchema;
|
|
4295
|
-
declare const index$
|
|
4296
|
-
declare const index$
|
|
4297
|
-
declare const index$
|
|
4298
|
-
declare const index$
|
|
4299
|
-
declare const index$
|
|
4300
|
-
declare const index$
|
|
4301
|
-
declare const index$
|
|
4302
|
-
declare const index$
|
|
4303
|
-
declare const index$
|
|
4304
|
-
declare const index$
|
|
4305
|
-
declare const index$
|
|
4306
|
-
declare const index$
|
|
4307
|
-
declare const index$
|
|
4308
|
-
declare const index$6_aiTaskSuccessSchema: typeof aiTaskSuccessSchema;
|
|
4309
|
-
declare const index$6_aiVideoInputsSchema: typeof aiVideoInputsSchema;
|
|
4310
|
-
declare const index$6_aiVideoOutputSchema: typeof aiVideoOutputSchema;
|
|
4311
|
-
declare const index$6_aiVideoRequestSchema: typeof aiVideoRequestSchema;
|
|
4312
|
-
declare const index$6_digitalHumanRequestSchema: typeof digitalHumanRequestSchema;
|
|
4313
|
-
declare const index$6_imageEditRequestSchema: typeof imageEditRequestSchema;
|
|
4314
|
-
declare const index$6_imageGenerateRequestSchema: typeof imageGenerateRequestSchema;
|
|
4315
|
-
declare const index$6_mediaAspectRatioSchema: typeof mediaAspectRatioSchema;
|
|
4316
|
-
declare const index$6_mediaFeatureSchema: typeof mediaFeatureSchema;
|
|
4317
|
-
declare const index$6_mediaGenerateBaseSchema: typeof mediaGenerateBaseSchema;
|
|
4318
|
-
declare const index$6_mediaGenerateRequestSchema: typeof mediaGenerateRequestSchema;
|
|
4319
|
-
declare const index$6_mediaModelsQuerySchema: typeof mediaModelsQuerySchema;
|
|
4320
|
-
declare const index$6_mediaQualitySchema: typeof mediaQualitySchema;
|
|
4321
|
-
declare const index$6_mediaResolutionSchema: typeof mediaResolutionSchema;
|
|
4322
|
-
declare const index$6_mediaTaskGroupDataSchema: typeof mediaTaskGroupDataSchema;
|
|
4323
|
-
declare const index$6_mediaTaskGroupResponseSchema: typeof mediaTaskGroupResponseSchema;
|
|
4324
|
-
declare const index$6_mediaTaskGroupSuccessSchema: typeof mediaTaskGroupSuccessSchema;
|
|
4325
|
-
declare const index$6_mediaTaskItemSchema: typeof mediaTaskItemSchema;
|
|
4326
|
-
declare const index$6_mediaTaskStatusSchema: typeof mediaTaskStatusSchema;
|
|
4327
|
-
declare const index$6_outpaintRequestSchema: typeof outpaintRequestSchema;
|
|
4328
|
-
declare const index$6_posterRequestSchema: typeof posterRequestSchema;
|
|
4329
|
-
declare const index$6_ttsRequestSchema: typeof ttsRequestSchema;
|
|
4330
|
-
declare const index$6_upscaleRequestSchema: typeof upscaleRequestSchema;
|
|
4331
|
-
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;
|
|
4332
2305
|
declare namespace index$6 {
|
|
4333
|
-
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$
|
|
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 };
|
|
4334
2307
|
}
|
|
4335
2308
|
|
|
4336
2309
|
declare const aiToolsEndpoints: {
|
|
@@ -5761,4 +3734,4 @@ declare function createTrpcClient(options: TrpcClientOptions): _trpc_client.TRPC
|
|
|
5761
3734
|
transformer: false;
|
|
5762
3735
|
}, _trpc_server.TRPCDecorateCreateRouterOptions<_trpc_server.TRPCCreateRouterOptions>>>;
|
|
5763
3736
|
|
|
5764
|
-
export { AI_MODEL_CAPABILITY_INPUT_KEYS, AI_MODEL_CAPABILITY_OUTPUT_KEYS, AI_MODEL_TAGS, AI_MODEL_TAG_LABELS, type
|
|
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 };
|