@apicity/fireworks 0.1.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,3259 @@
1
+ import { z } from "zod";
2
+ export declare const FireworksMessageSchema: z.ZodObject<{
3
+ role: z.ZodEnum<["user", "assistant", "system"]>;
4
+ content: z.ZodString;
5
+ tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
6
+ id: z.ZodString;
7
+ type: z.ZodLiteral<"function">;
8
+ function: z.ZodObject<{
9
+ name: z.ZodString;
10
+ arguments: z.ZodString;
11
+ }, "strip", z.ZodTypeAny, {
12
+ name: string;
13
+ arguments: string;
14
+ }, {
15
+ name: string;
16
+ arguments: string;
17
+ }>;
18
+ }, "strip", z.ZodTypeAny, {
19
+ function: {
20
+ name: string;
21
+ arguments: string;
22
+ };
23
+ type: "function";
24
+ id: string;
25
+ }, {
26
+ function: {
27
+ name: string;
28
+ arguments: string;
29
+ };
30
+ type: "function";
31
+ id: string;
32
+ }>, "many">>;
33
+ tool_call_id: z.ZodOptional<z.ZodString>;
34
+ name: z.ZodOptional<z.ZodString>;
35
+ }, "strip", z.ZodTypeAny, {
36
+ role: "user" | "assistant" | "system";
37
+ content: string;
38
+ name?: string | undefined;
39
+ tool_calls?: {
40
+ function: {
41
+ name: string;
42
+ arguments: string;
43
+ };
44
+ type: "function";
45
+ id: string;
46
+ }[] | undefined;
47
+ tool_call_id?: string | undefined;
48
+ }, {
49
+ role: "user" | "assistant" | "system";
50
+ content: string;
51
+ name?: string | undefined;
52
+ tool_calls?: {
53
+ function: {
54
+ name: string;
55
+ arguments: string;
56
+ };
57
+ type: "function";
58
+ id: string;
59
+ }[] | undefined;
60
+ tool_call_id?: string | undefined;
61
+ }>;
62
+ export declare const FireworksToolFunctionSchema: z.ZodObject<{
63
+ name: z.ZodString;
64
+ description: z.ZodOptional<z.ZodString>;
65
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
66
+ }, "strip", z.ZodTypeAny, {
67
+ name: string;
68
+ description?: string | undefined;
69
+ parameters?: Record<string, unknown> | undefined;
70
+ }, {
71
+ name: string;
72
+ description?: string | undefined;
73
+ parameters?: Record<string, unknown> | undefined;
74
+ }>;
75
+ export declare const FireworksToolSchema: z.ZodObject<{
76
+ type: z.ZodLiteral<"function">;
77
+ function: z.ZodObject<{
78
+ name: z.ZodString;
79
+ description: z.ZodOptional<z.ZodString>;
80
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
81
+ }, "strip", z.ZodTypeAny, {
82
+ name: string;
83
+ description?: string | undefined;
84
+ parameters?: Record<string, unknown> | undefined;
85
+ }, {
86
+ name: string;
87
+ description?: string | undefined;
88
+ parameters?: Record<string, unknown> | undefined;
89
+ }>;
90
+ }, "strip", z.ZodTypeAny, {
91
+ function: {
92
+ name: string;
93
+ description?: string | undefined;
94
+ parameters?: Record<string, unknown> | undefined;
95
+ };
96
+ type: "function";
97
+ }, {
98
+ function: {
99
+ name: string;
100
+ description?: string | undefined;
101
+ parameters?: Record<string, unknown> | undefined;
102
+ };
103
+ type: "function";
104
+ }>;
105
+ export declare const FireworksResponseFormatSchema: z.ZodObject<{
106
+ type: z.ZodEnum<["text", "json_object", "json_schema", "grammar"]>;
107
+ json_schema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
108
+ grammar: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
109
+ }, "strip", z.ZodTypeAny, {
110
+ type: "text" | "json_object" | "json_schema" | "grammar";
111
+ json_schema?: Record<string, unknown> | undefined;
112
+ grammar?: Record<string, unknown> | undefined;
113
+ }, {
114
+ type: "text" | "json_object" | "json_schema" | "grammar";
115
+ json_schema?: Record<string, unknown> | undefined;
116
+ grammar?: Record<string, unknown> | undefined;
117
+ }>;
118
+ export declare const FireworksChatRequestSchema: z.ZodObject<{
119
+ model: z.ZodString;
120
+ messages: z.ZodArray<z.ZodObject<{
121
+ role: z.ZodEnum<["user", "assistant", "system"]>;
122
+ content: z.ZodString;
123
+ tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
124
+ id: z.ZodString;
125
+ type: z.ZodLiteral<"function">;
126
+ function: z.ZodObject<{
127
+ name: z.ZodString;
128
+ arguments: z.ZodString;
129
+ }, "strip", z.ZodTypeAny, {
130
+ name: string;
131
+ arguments: string;
132
+ }, {
133
+ name: string;
134
+ arguments: string;
135
+ }>;
136
+ }, "strip", z.ZodTypeAny, {
137
+ function: {
138
+ name: string;
139
+ arguments: string;
140
+ };
141
+ type: "function";
142
+ id: string;
143
+ }, {
144
+ function: {
145
+ name: string;
146
+ arguments: string;
147
+ };
148
+ type: "function";
149
+ id: string;
150
+ }>, "many">>;
151
+ tool_call_id: z.ZodOptional<z.ZodString>;
152
+ name: z.ZodOptional<z.ZodString>;
153
+ }, "strip", z.ZodTypeAny, {
154
+ role: "user" | "assistant" | "system";
155
+ content: string;
156
+ name?: string | undefined;
157
+ tool_calls?: {
158
+ function: {
159
+ name: string;
160
+ arguments: string;
161
+ };
162
+ type: "function";
163
+ id: string;
164
+ }[] | undefined;
165
+ tool_call_id?: string | undefined;
166
+ }, {
167
+ role: "user" | "assistant" | "system";
168
+ content: string;
169
+ name?: string | undefined;
170
+ tool_calls?: {
171
+ function: {
172
+ name: string;
173
+ arguments: string;
174
+ };
175
+ type: "function";
176
+ id: string;
177
+ }[] | undefined;
178
+ tool_call_id?: string | undefined;
179
+ }>, "many">;
180
+ temperature: z.ZodOptional<z.ZodNumber>;
181
+ top_p: z.ZodOptional<z.ZodNumber>;
182
+ top_k: z.ZodOptional<z.ZodNumber>;
183
+ max_tokens: z.ZodOptional<z.ZodNumber>;
184
+ max_completion_tokens: z.ZodOptional<z.ZodNumber>;
185
+ n: z.ZodOptional<z.ZodNumber>;
186
+ stop: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
187
+ stream: z.ZodOptional<z.ZodBoolean>;
188
+ tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
189
+ type: z.ZodLiteral<"function">;
190
+ function: z.ZodObject<{
191
+ name: z.ZodString;
192
+ description: z.ZodOptional<z.ZodString>;
193
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
194
+ }, "strip", z.ZodTypeAny, {
195
+ name: string;
196
+ description?: string | undefined;
197
+ parameters?: Record<string, unknown> | undefined;
198
+ }, {
199
+ name: string;
200
+ description?: string | undefined;
201
+ parameters?: Record<string, unknown> | undefined;
202
+ }>;
203
+ }, "strip", z.ZodTypeAny, {
204
+ function: {
205
+ name: string;
206
+ description?: string | undefined;
207
+ parameters?: Record<string, unknown> | undefined;
208
+ };
209
+ type: "function";
210
+ }, {
211
+ function: {
212
+ name: string;
213
+ description?: string | undefined;
214
+ parameters?: Record<string, unknown> | undefined;
215
+ };
216
+ type: "function";
217
+ }>, "many">>;
218
+ tool_choice: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["auto", "none", "required"]>, z.ZodObject<{
219
+ type: z.ZodLiteral<"function">;
220
+ function: z.ZodObject<{
221
+ name: z.ZodString;
222
+ }, "strip", z.ZodTypeAny, {
223
+ name: string;
224
+ }, {
225
+ name: string;
226
+ }>;
227
+ }, "strip", z.ZodTypeAny, {
228
+ function: {
229
+ name: string;
230
+ };
231
+ type: "function";
232
+ }, {
233
+ function: {
234
+ name: string;
235
+ };
236
+ type: "function";
237
+ }>]>>;
238
+ response_format: z.ZodOptional<z.ZodObject<{
239
+ type: z.ZodEnum<["text", "json_object", "json_schema", "grammar"]>;
240
+ json_schema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
241
+ grammar: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
242
+ }, "strip", z.ZodTypeAny, {
243
+ type: "text" | "json_object" | "json_schema" | "grammar";
244
+ json_schema?: Record<string, unknown> | undefined;
245
+ grammar?: Record<string, unknown> | undefined;
246
+ }, {
247
+ type: "text" | "json_object" | "json_schema" | "grammar";
248
+ json_schema?: Record<string, unknown> | undefined;
249
+ grammar?: Record<string, unknown> | undefined;
250
+ }>>;
251
+ frequency_penalty: z.ZodOptional<z.ZodNumber>;
252
+ presence_penalty: z.ZodOptional<z.ZodNumber>;
253
+ logprobs: z.ZodOptional<z.ZodBoolean>;
254
+ top_logprobs: z.ZodOptional<z.ZodNumber>;
255
+ reasoning_effort: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "none"]>>;
256
+ user: z.ZodOptional<z.ZodString>;
257
+ }, "strip", z.ZodTypeAny, {
258
+ model: string;
259
+ messages: {
260
+ role: "user" | "assistant" | "system";
261
+ content: string;
262
+ name?: string | undefined;
263
+ tool_calls?: {
264
+ function: {
265
+ name: string;
266
+ arguments: string;
267
+ };
268
+ type: "function";
269
+ id: string;
270
+ }[] | undefined;
271
+ tool_call_id?: string | undefined;
272
+ }[];
273
+ user?: string | undefined;
274
+ temperature?: number | undefined;
275
+ top_p?: number | undefined;
276
+ top_k?: number | undefined;
277
+ max_tokens?: number | undefined;
278
+ max_completion_tokens?: number | undefined;
279
+ n?: number | undefined;
280
+ stop?: string | string[] | undefined;
281
+ stream?: boolean | undefined;
282
+ tools?: {
283
+ function: {
284
+ name: string;
285
+ description?: string | undefined;
286
+ parameters?: Record<string, unknown> | undefined;
287
+ };
288
+ type: "function";
289
+ }[] | undefined;
290
+ tool_choice?: "auto" | "none" | "required" | {
291
+ function: {
292
+ name: string;
293
+ };
294
+ type: "function";
295
+ } | undefined;
296
+ response_format?: {
297
+ type: "text" | "json_object" | "json_schema" | "grammar";
298
+ json_schema?: Record<string, unknown> | undefined;
299
+ grammar?: Record<string, unknown> | undefined;
300
+ } | undefined;
301
+ frequency_penalty?: number | undefined;
302
+ presence_penalty?: number | undefined;
303
+ logprobs?: boolean | undefined;
304
+ top_logprobs?: number | undefined;
305
+ reasoning_effort?: "none" | "low" | "medium" | "high" | undefined;
306
+ }, {
307
+ model: string;
308
+ messages: {
309
+ role: "user" | "assistant" | "system";
310
+ content: string;
311
+ name?: string | undefined;
312
+ tool_calls?: {
313
+ function: {
314
+ name: string;
315
+ arguments: string;
316
+ };
317
+ type: "function";
318
+ id: string;
319
+ }[] | undefined;
320
+ tool_call_id?: string | undefined;
321
+ }[];
322
+ user?: string | undefined;
323
+ temperature?: number | undefined;
324
+ top_p?: number | undefined;
325
+ top_k?: number | undefined;
326
+ max_tokens?: number | undefined;
327
+ max_completion_tokens?: number | undefined;
328
+ n?: number | undefined;
329
+ stop?: string | string[] | undefined;
330
+ stream?: boolean | undefined;
331
+ tools?: {
332
+ function: {
333
+ name: string;
334
+ description?: string | undefined;
335
+ parameters?: Record<string, unknown> | undefined;
336
+ };
337
+ type: "function";
338
+ }[] | undefined;
339
+ tool_choice?: "auto" | "none" | "required" | {
340
+ function: {
341
+ name: string;
342
+ };
343
+ type: "function";
344
+ } | undefined;
345
+ response_format?: {
346
+ type: "text" | "json_object" | "json_schema" | "grammar";
347
+ json_schema?: Record<string, unknown> | undefined;
348
+ grammar?: Record<string, unknown> | undefined;
349
+ } | undefined;
350
+ frequency_penalty?: number | undefined;
351
+ presence_penalty?: number | undefined;
352
+ logprobs?: boolean | undefined;
353
+ top_logprobs?: number | undefined;
354
+ reasoning_effort?: "none" | "low" | "medium" | "high" | undefined;
355
+ }>;
356
+ export declare const FireworksCompletionRequestSchema: z.ZodObject<{
357
+ model: z.ZodString;
358
+ prompt: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">, z.ZodArray<z.ZodNumber, "many">, z.ZodArray<z.ZodArray<z.ZodNumber, "many">, "many">]>;
359
+ max_tokens: z.ZodOptional<z.ZodNumber>;
360
+ max_completion_tokens: z.ZodOptional<z.ZodNumber>;
361
+ temperature: z.ZodOptional<z.ZodNumber>;
362
+ top_p: z.ZodOptional<z.ZodNumber>;
363
+ top_k: z.ZodOptional<z.ZodNumber>;
364
+ n: z.ZodOptional<z.ZodNumber>;
365
+ stop: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
366
+ stream: z.ZodOptional<z.ZodBoolean>;
367
+ echo: z.ZodOptional<z.ZodBoolean>;
368
+ echo_last: z.ZodOptional<z.ZodNumber>;
369
+ frequency_penalty: z.ZodOptional<z.ZodNumber>;
370
+ presence_penalty: z.ZodOptional<z.ZodNumber>;
371
+ repetition_penalty: z.ZodOptional<z.ZodNumber>;
372
+ logprobs: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>;
373
+ top_logprobs: z.ZodOptional<z.ZodNumber>;
374
+ response_format: z.ZodOptional<z.ZodObject<{
375
+ type: z.ZodEnum<["text", "json_object", "json_schema", "grammar"]>;
376
+ json_schema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
377
+ grammar: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
378
+ }, "strip", z.ZodTypeAny, {
379
+ type: "text" | "json_object" | "json_schema" | "grammar";
380
+ json_schema?: Record<string, unknown> | undefined;
381
+ grammar?: Record<string, unknown> | undefined;
382
+ }, {
383
+ type: "text" | "json_object" | "json_schema" | "grammar";
384
+ json_schema?: Record<string, unknown> | undefined;
385
+ grammar?: Record<string, unknown> | undefined;
386
+ }>>;
387
+ reasoning_effort: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "none"]>>;
388
+ seed: z.ZodOptional<z.ZodNumber>;
389
+ user: z.ZodOptional<z.ZodString>;
390
+ }, "strip", z.ZodTypeAny, {
391
+ model: string;
392
+ prompt: string | string[] | number[] | number[][];
393
+ user?: string | undefined;
394
+ temperature?: number | undefined;
395
+ top_p?: number | undefined;
396
+ top_k?: number | undefined;
397
+ max_tokens?: number | undefined;
398
+ max_completion_tokens?: number | undefined;
399
+ n?: number | undefined;
400
+ stop?: string | string[] | undefined;
401
+ stream?: boolean | undefined;
402
+ response_format?: {
403
+ type: "text" | "json_object" | "json_schema" | "grammar";
404
+ json_schema?: Record<string, unknown> | undefined;
405
+ grammar?: Record<string, unknown> | undefined;
406
+ } | undefined;
407
+ frequency_penalty?: number | undefined;
408
+ presence_penalty?: number | undefined;
409
+ logprobs?: number | boolean | undefined;
410
+ top_logprobs?: number | undefined;
411
+ reasoning_effort?: "none" | "low" | "medium" | "high" | undefined;
412
+ echo?: boolean | undefined;
413
+ echo_last?: number | undefined;
414
+ repetition_penalty?: number | undefined;
415
+ seed?: number | undefined;
416
+ }, {
417
+ model: string;
418
+ prompt: string | string[] | number[] | number[][];
419
+ user?: string | undefined;
420
+ temperature?: number | undefined;
421
+ top_p?: number | undefined;
422
+ top_k?: number | undefined;
423
+ max_tokens?: number | undefined;
424
+ max_completion_tokens?: number | undefined;
425
+ n?: number | undefined;
426
+ stop?: string | string[] | undefined;
427
+ stream?: boolean | undefined;
428
+ response_format?: {
429
+ type: "text" | "json_object" | "json_schema" | "grammar";
430
+ json_schema?: Record<string, unknown> | undefined;
431
+ grammar?: Record<string, unknown> | undefined;
432
+ } | undefined;
433
+ frequency_penalty?: number | undefined;
434
+ presence_penalty?: number | undefined;
435
+ logprobs?: number | boolean | undefined;
436
+ top_logprobs?: number | undefined;
437
+ reasoning_effort?: "none" | "low" | "medium" | "high" | undefined;
438
+ echo?: boolean | undefined;
439
+ echo_last?: number | undefined;
440
+ repetition_penalty?: number | undefined;
441
+ seed?: number | undefined;
442
+ }>;
443
+ export declare const FireworksEmbeddingRequestSchema: z.ZodObject<{
444
+ model: z.ZodString;
445
+ input: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">, z.ZodArray<z.ZodNumber, "many">, z.ZodArray<z.ZodArray<z.ZodNumber, "many">, "many">]>;
446
+ dimensions: z.ZodOptional<z.ZodNumber>;
447
+ prompt_template: z.ZodOptional<z.ZodString>;
448
+ return_logits: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
449
+ normalize: z.ZodOptional<z.ZodBoolean>;
450
+ }, "strip", z.ZodTypeAny, {
451
+ model: string;
452
+ input: string | string[] | number[] | number[][];
453
+ dimensions?: number | undefined;
454
+ prompt_template?: string | undefined;
455
+ return_logits?: number[] | undefined;
456
+ normalize?: boolean | undefined;
457
+ }, {
458
+ model: string;
459
+ input: string | string[] | number[] | number[][];
460
+ dimensions?: number | undefined;
461
+ prompt_template?: string | undefined;
462
+ return_logits?: number[] | undefined;
463
+ normalize?: boolean | undefined;
464
+ }>;
465
+ export declare const FireworksRerankRequestSchema: z.ZodObject<{
466
+ model: z.ZodString;
467
+ query: z.ZodString;
468
+ documents: z.ZodArray<z.ZodString, "many">;
469
+ top_n: z.ZodOptional<z.ZodNumber>;
470
+ return_documents: z.ZodOptional<z.ZodBoolean>;
471
+ }, "strip", z.ZodTypeAny, {
472
+ model: string;
473
+ query: string;
474
+ documents: string[];
475
+ top_n?: number | undefined;
476
+ return_documents?: boolean | undefined;
477
+ }, {
478
+ model: string;
479
+ query: string;
480
+ documents: string[];
481
+ top_n?: number | undefined;
482
+ return_documents?: boolean | undefined;
483
+ }>;
484
+ export declare const AnthropicInputContentBlockSchema: z.ZodUnion<[z.ZodObject<{
485
+ type: z.ZodLiteral<"text">;
486
+ text: z.ZodString;
487
+ }, "strip", z.ZodTypeAny, {
488
+ type: "text";
489
+ text: string;
490
+ }, {
491
+ type: "text";
492
+ text: string;
493
+ }>, z.ZodObject<{
494
+ type: z.ZodLiteral<"image">;
495
+ source: z.ZodUnion<[z.ZodObject<{
496
+ type: z.ZodLiteral<"base64">;
497
+ media_type: z.ZodEnum<["image/jpeg", "image/png", "image/gif", "image/webp"]>;
498
+ data: z.ZodString;
499
+ }, "strip", z.ZodTypeAny, {
500
+ type: "base64";
501
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
502
+ data: string;
503
+ }, {
504
+ type: "base64";
505
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
506
+ data: string;
507
+ }>, z.ZodObject<{
508
+ type: z.ZodLiteral<"url">;
509
+ url: z.ZodString;
510
+ }, "strip", z.ZodTypeAny, {
511
+ type: "url";
512
+ url: string;
513
+ }, {
514
+ type: "url";
515
+ url: string;
516
+ }>]>;
517
+ }, "strip", z.ZodTypeAny, {
518
+ type: "image";
519
+ source: {
520
+ type: "base64";
521
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
522
+ data: string;
523
+ } | {
524
+ type: "url";
525
+ url: string;
526
+ };
527
+ }, {
528
+ type: "image";
529
+ source: {
530
+ type: "base64";
531
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
532
+ data: string;
533
+ } | {
534
+ type: "url";
535
+ url: string;
536
+ };
537
+ }>, z.ZodObject<{
538
+ type: z.ZodLiteral<"thinking">;
539
+ thinking: z.ZodString;
540
+ signature: z.ZodString;
541
+ }, "strip", z.ZodTypeAny, {
542
+ type: "thinking";
543
+ thinking: string;
544
+ signature: string;
545
+ }, {
546
+ type: "thinking";
547
+ thinking: string;
548
+ signature: string;
549
+ }>, z.ZodObject<{
550
+ type: z.ZodLiteral<"redacted_thinking">;
551
+ data: z.ZodString;
552
+ }, "strip", z.ZodTypeAny, {
553
+ type: "redacted_thinking";
554
+ data: string;
555
+ }, {
556
+ type: "redacted_thinking";
557
+ data: string;
558
+ }>, z.ZodObject<{
559
+ type: z.ZodLiteral<"tool_use">;
560
+ id: z.ZodString;
561
+ name: z.ZodString;
562
+ input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
563
+ }, "strip", z.ZodTypeAny, {
564
+ type: "tool_use";
565
+ id: string;
566
+ name: string;
567
+ input: Record<string, unknown>;
568
+ }, {
569
+ type: "tool_use";
570
+ id: string;
571
+ name: string;
572
+ input: Record<string, unknown>;
573
+ }>, z.ZodObject<{
574
+ type: z.ZodLiteral<"tool_result">;
575
+ tool_use_id: z.ZodString;
576
+ content: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">]>>;
577
+ is_error: z.ZodOptional<z.ZodBoolean>;
578
+ }, "strip", z.ZodTypeAny, {
579
+ type: "tool_result";
580
+ tool_use_id: string;
581
+ content?: string | Record<string, unknown>[] | undefined;
582
+ is_error?: boolean | undefined;
583
+ }, {
584
+ type: "tool_result";
585
+ tool_use_id: string;
586
+ content?: string | Record<string, unknown>[] | undefined;
587
+ is_error?: boolean | undefined;
588
+ }>]>;
589
+ export declare const AnthropicInputMessageSchema: z.ZodObject<{
590
+ role: z.ZodEnum<["user", "assistant"]>;
591
+ content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodObject<{
592
+ type: z.ZodLiteral<"text">;
593
+ text: z.ZodString;
594
+ }, "strip", z.ZodTypeAny, {
595
+ type: "text";
596
+ text: string;
597
+ }, {
598
+ type: "text";
599
+ text: string;
600
+ }>, z.ZodObject<{
601
+ type: z.ZodLiteral<"image">;
602
+ source: z.ZodUnion<[z.ZodObject<{
603
+ type: z.ZodLiteral<"base64">;
604
+ media_type: z.ZodEnum<["image/jpeg", "image/png", "image/gif", "image/webp"]>;
605
+ data: z.ZodString;
606
+ }, "strip", z.ZodTypeAny, {
607
+ type: "base64";
608
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
609
+ data: string;
610
+ }, {
611
+ type: "base64";
612
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
613
+ data: string;
614
+ }>, z.ZodObject<{
615
+ type: z.ZodLiteral<"url">;
616
+ url: z.ZodString;
617
+ }, "strip", z.ZodTypeAny, {
618
+ type: "url";
619
+ url: string;
620
+ }, {
621
+ type: "url";
622
+ url: string;
623
+ }>]>;
624
+ }, "strip", z.ZodTypeAny, {
625
+ type: "image";
626
+ source: {
627
+ type: "base64";
628
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
629
+ data: string;
630
+ } | {
631
+ type: "url";
632
+ url: string;
633
+ };
634
+ }, {
635
+ type: "image";
636
+ source: {
637
+ type: "base64";
638
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
639
+ data: string;
640
+ } | {
641
+ type: "url";
642
+ url: string;
643
+ };
644
+ }>, z.ZodObject<{
645
+ type: z.ZodLiteral<"thinking">;
646
+ thinking: z.ZodString;
647
+ signature: z.ZodString;
648
+ }, "strip", z.ZodTypeAny, {
649
+ type: "thinking";
650
+ thinking: string;
651
+ signature: string;
652
+ }, {
653
+ type: "thinking";
654
+ thinking: string;
655
+ signature: string;
656
+ }>, z.ZodObject<{
657
+ type: z.ZodLiteral<"redacted_thinking">;
658
+ data: z.ZodString;
659
+ }, "strip", z.ZodTypeAny, {
660
+ type: "redacted_thinking";
661
+ data: string;
662
+ }, {
663
+ type: "redacted_thinking";
664
+ data: string;
665
+ }>, z.ZodObject<{
666
+ type: z.ZodLiteral<"tool_use">;
667
+ id: z.ZodString;
668
+ name: z.ZodString;
669
+ input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
670
+ }, "strip", z.ZodTypeAny, {
671
+ type: "tool_use";
672
+ id: string;
673
+ name: string;
674
+ input: Record<string, unknown>;
675
+ }, {
676
+ type: "tool_use";
677
+ id: string;
678
+ name: string;
679
+ input: Record<string, unknown>;
680
+ }>, z.ZodObject<{
681
+ type: z.ZodLiteral<"tool_result">;
682
+ tool_use_id: z.ZodString;
683
+ content: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">]>>;
684
+ is_error: z.ZodOptional<z.ZodBoolean>;
685
+ }, "strip", z.ZodTypeAny, {
686
+ type: "tool_result";
687
+ tool_use_id: string;
688
+ content?: string | Record<string, unknown>[] | undefined;
689
+ is_error?: boolean | undefined;
690
+ }, {
691
+ type: "tool_result";
692
+ tool_use_id: string;
693
+ content?: string | Record<string, unknown>[] | undefined;
694
+ is_error?: boolean | undefined;
695
+ }>]>, "many">]>;
696
+ }, "strip", z.ZodTypeAny, {
697
+ role: "user" | "assistant";
698
+ content: string | ({
699
+ type: "text";
700
+ text: string;
701
+ } | {
702
+ type: "image";
703
+ source: {
704
+ type: "base64";
705
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
706
+ data: string;
707
+ } | {
708
+ type: "url";
709
+ url: string;
710
+ };
711
+ } | {
712
+ type: "thinking";
713
+ thinking: string;
714
+ signature: string;
715
+ } | {
716
+ type: "redacted_thinking";
717
+ data: string;
718
+ } | {
719
+ type: "tool_use";
720
+ id: string;
721
+ name: string;
722
+ input: Record<string, unknown>;
723
+ } | {
724
+ type: "tool_result";
725
+ tool_use_id: string;
726
+ content?: string | Record<string, unknown>[] | undefined;
727
+ is_error?: boolean | undefined;
728
+ })[];
729
+ }, {
730
+ role: "user" | "assistant";
731
+ content: string | ({
732
+ type: "text";
733
+ text: string;
734
+ } | {
735
+ type: "image";
736
+ source: {
737
+ type: "base64";
738
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
739
+ data: string;
740
+ } | {
741
+ type: "url";
742
+ url: string;
743
+ };
744
+ } | {
745
+ type: "thinking";
746
+ thinking: string;
747
+ signature: string;
748
+ } | {
749
+ type: "redacted_thinking";
750
+ data: string;
751
+ } | {
752
+ type: "tool_use";
753
+ id: string;
754
+ name: string;
755
+ input: Record<string, unknown>;
756
+ } | {
757
+ type: "tool_result";
758
+ tool_use_id: string;
759
+ content?: string | Record<string, unknown>[] | undefined;
760
+ is_error?: boolean | undefined;
761
+ })[];
762
+ }>;
763
+ export declare const AnthropicToolDefinitionSchema: z.ZodObject<{
764
+ name: z.ZodString;
765
+ description: z.ZodOptional<z.ZodString>;
766
+ input_schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
767
+ strict: z.ZodOptional<z.ZodBoolean>;
768
+ }, "strip", z.ZodTypeAny, {
769
+ name: string;
770
+ input_schema: Record<string, unknown>;
771
+ description?: string | undefined;
772
+ strict?: boolean | undefined;
773
+ }, {
774
+ name: string;
775
+ input_schema: Record<string, unknown>;
776
+ description?: string | undefined;
777
+ strict?: boolean | undefined;
778
+ }>;
779
+ export declare const AnthropicThinkingConfigSchema: z.ZodObject<{
780
+ type: z.ZodEnum<["enabled", "disabled"]>;
781
+ budget_tokens: z.ZodOptional<z.ZodNumber>;
782
+ }, "strip", z.ZodTypeAny, {
783
+ type: "enabled" | "disabled";
784
+ budget_tokens?: number | undefined;
785
+ }, {
786
+ type: "enabled" | "disabled";
787
+ budget_tokens?: number | undefined;
788
+ }>;
789
+ export declare const AnthropicMessagesRequestSchema: z.ZodObject<{
790
+ model: z.ZodString;
791
+ messages: z.ZodArray<z.ZodObject<{
792
+ role: z.ZodEnum<["user", "assistant"]>;
793
+ content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodObject<{
794
+ type: z.ZodLiteral<"text">;
795
+ text: z.ZodString;
796
+ }, "strip", z.ZodTypeAny, {
797
+ type: "text";
798
+ text: string;
799
+ }, {
800
+ type: "text";
801
+ text: string;
802
+ }>, z.ZodObject<{
803
+ type: z.ZodLiteral<"image">;
804
+ source: z.ZodUnion<[z.ZodObject<{
805
+ type: z.ZodLiteral<"base64">;
806
+ media_type: z.ZodEnum<["image/jpeg", "image/png", "image/gif", "image/webp"]>;
807
+ data: z.ZodString;
808
+ }, "strip", z.ZodTypeAny, {
809
+ type: "base64";
810
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
811
+ data: string;
812
+ }, {
813
+ type: "base64";
814
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
815
+ data: string;
816
+ }>, z.ZodObject<{
817
+ type: z.ZodLiteral<"url">;
818
+ url: z.ZodString;
819
+ }, "strip", z.ZodTypeAny, {
820
+ type: "url";
821
+ url: string;
822
+ }, {
823
+ type: "url";
824
+ url: string;
825
+ }>]>;
826
+ }, "strip", z.ZodTypeAny, {
827
+ type: "image";
828
+ source: {
829
+ type: "base64";
830
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
831
+ data: string;
832
+ } | {
833
+ type: "url";
834
+ url: string;
835
+ };
836
+ }, {
837
+ type: "image";
838
+ source: {
839
+ type: "base64";
840
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
841
+ data: string;
842
+ } | {
843
+ type: "url";
844
+ url: string;
845
+ };
846
+ }>, z.ZodObject<{
847
+ type: z.ZodLiteral<"thinking">;
848
+ thinking: z.ZodString;
849
+ signature: z.ZodString;
850
+ }, "strip", z.ZodTypeAny, {
851
+ type: "thinking";
852
+ thinking: string;
853
+ signature: string;
854
+ }, {
855
+ type: "thinking";
856
+ thinking: string;
857
+ signature: string;
858
+ }>, z.ZodObject<{
859
+ type: z.ZodLiteral<"redacted_thinking">;
860
+ data: z.ZodString;
861
+ }, "strip", z.ZodTypeAny, {
862
+ type: "redacted_thinking";
863
+ data: string;
864
+ }, {
865
+ type: "redacted_thinking";
866
+ data: string;
867
+ }>, z.ZodObject<{
868
+ type: z.ZodLiteral<"tool_use">;
869
+ id: z.ZodString;
870
+ name: z.ZodString;
871
+ input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
872
+ }, "strip", z.ZodTypeAny, {
873
+ type: "tool_use";
874
+ id: string;
875
+ name: string;
876
+ input: Record<string, unknown>;
877
+ }, {
878
+ type: "tool_use";
879
+ id: string;
880
+ name: string;
881
+ input: Record<string, unknown>;
882
+ }>, z.ZodObject<{
883
+ type: z.ZodLiteral<"tool_result">;
884
+ tool_use_id: z.ZodString;
885
+ content: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">]>>;
886
+ is_error: z.ZodOptional<z.ZodBoolean>;
887
+ }, "strip", z.ZodTypeAny, {
888
+ type: "tool_result";
889
+ tool_use_id: string;
890
+ content?: string | Record<string, unknown>[] | undefined;
891
+ is_error?: boolean | undefined;
892
+ }, {
893
+ type: "tool_result";
894
+ tool_use_id: string;
895
+ content?: string | Record<string, unknown>[] | undefined;
896
+ is_error?: boolean | undefined;
897
+ }>]>, "many">]>;
898
+ }, "strip", z.ZodTypeAny, {
899
+ role: "user" | "assistant";
900
+ content: string | ({
901
+ type: "text";
902
+ text: string;
903
+ } | {
904
+ type: "image";
905
+ source: {
906
+ type: "base64";
907
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
908
+ data: string;
909
+ } | {
910
+ type: "url";
911
+ url: string;
912
+ };
913
+ } | {
914
+ type: "thinking";
915
+ thinking: string;
916
+ signature: string;
917
+ } | {
918
+ type: "redacted_thinking";
919
+ data: string;
920
+ } | {
921
+ type: "tool_use";
922
+ id: string;
923
+ name: string;
924
+ input: Record<string, unknown>;
925
+ } | {
926
+ type: "tool_result";
927
+ tool_use_id: string;
928
+ content?: string | Record<string, unknown>[] | undefined;
929
+ is_error?: boolean | undefined;
930
+ })[];
931
+ }, {
932
+ role: "user" | "assistant";
933
+ content: string | ({
934
+ type: "text";
935
+ text: string;
936
+ } | {
937
+ type: "image";
938
+ source: {
939
+ type: "base64";
940
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
941
+ data: string;
942
+ } | {
943
+ type: "url";
944
+ url: string;
945
+ };
946
+ } | {
947
+ type: "thinking";
948
+ thinking: string;
949
+ signature: string;
950
+ } | {
951
+ type: "redacted_thinking";
952
+ data: string;
953
+ } | {
954
+ type: "tool_use";
955
+ id: string;
956
+ name: string;
957
+ input: Record<string, unknown>;
958
+ } | {
959
+ type: "tool_result";
960
+ tool_use_id: string;
961
+ content?: string | Record<string, unknown>[] | undefined;
962
+ is_error?: boolean | undefined;
963
+ })[];
964
+ }>, "many">;
965
+ max_tokens: z.ZodOptional<z.ZodNumber>;
966
+ system: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodObject<{
967
+ type: z.ZodLiteral<"text">;
968
+ text: z.ZodString;
969
+ }, "strip", z.ZodTypeAny, {
970
+ type: "text";
971
+ text: string;
972
+ }, {
973
+ type: "text";
974
+ text: string;
975
+ }>, "many">]>>;
976
+ temperature: z.ZodOptional<z.ZodNumber>;
977
+ top_p: z.ZodOptional<z.ZodNumber>;
978
+ top_k: z.ZodOptional<z.ZodNumber>;
979
+ stop_sequences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
980
+ stream: z.ZodOptional<z.ZodBoolean>;
981
+ metadata: z.ZodOptional<z.ZodObject<{
982
+ user_id: z.ZodOptional<z.ZodString>;
983
+ }, "strip", z.ZodTypeAny, {
984
+ user_id?: string | undefined;
985
+ }, {
986
+ user_id?: string | undefined;
987
+ }>>;
988
+ thinking: z.ZodOptional<z.ZodObject<{
989
+ type: z.ZodEnum<["enabled", "disabled"]>;
990
+ budget_tokens: z.ZodOptional<z.ZodNumber>;
991
+ }, "strip", z.ZodTypeAny, {
992
+ type: "enabled" | "disabled";
993
+ budget_tokens?: number | undefined;
994
+ }, {
995
+ type: "enabled" | "disabled";
996
+ budget_tokens?: number | undefined;
997
+ }>>;
998
+ tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
999
+ name: z.ZodString;
1000
+ description: z.ZodOptional<z.ZodString>;
1001
+ input_schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1002
+ strict: z.ZodOptional<z.ZodBoolean>;
1003
+ }, "strip", z.ZodTypeAny, {
1004
+ name: string;
1005
+ input_schema: Record<string, unknown>;
1006
+ description?: string | undefined;
1007
+ strict?: boolean | undefined;
1008
+ }, {
1009
+ name: string;
1010
+ input_schema: Record<string, unknown>;
1011
+ description?: string | undefined;
1012
+ strict?: boolean | undefined;
1013
+ }>, "many">>;
1014
+ tool_choice: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1015
+ type: z.ZodLiteral<"auto">;
1016
+ disable_parallel_tool_use: z.ZodOptional<z.ZodBoolean>;
1017
+ }, "strip", z.ZodTypeAny, {
1018
+ type: "auto";
1019
+ disable_parallel_tool_use?: boolean | undefined;
1020
+ }, {
1021
+ type: "auto";
1022
+ disable_parallel_tool_use?: boolean | undefined;
1023
+ }>, z.ZodObject<{
1024
+ type: z.ZodLiteral<"any">;
1025
+ disable_parallel_tool_use: z.ZodOptional<z.ZodBoolean>;
1026
+ }, "strip", z.ZodTypeAny, {
1027
+ type: "any";
1028
+ disable_parallel_tool_use?: boolean | undefined;
1029
+ }, {
1030
+ type: "any";
1031
+ disable_parallel_tool_use?: boolean | undefined;
1032
+ }>, z.ZodObject<{
1033
+ type: z.ZodLiteral<"none">;
1034
+ }, "strip", z.ZodTypeAny, {
1035
+ type: "none";
1036
+ }, {
1037
+ type: "none";
1038
+ }>, z.ZodObject<{
1039
+ type: z.ZodLiteral<"tool">;
1040
+ name: z.ZodString;
1041
+ disable_parallel_tool_use: z.ZodOptional<z.ZodBoolean>;
1042
+ }, "strip", z.ZodTypeAny, {
1043
+ type: "tool";
1044
+ name: string;
1045
+ disable_parallel_tool_use?: boolean | undefined;
1046
+ }, {
1047
+ type: "tool";
1048
+ name: string;
1049
+ disable_parallel_tool_use?: boolean | undefined;
1050
+ }>]>>;
1051
+ raw_output: z.ZodOptional<z.ZodBoolean>;
1052
+ }, "strip", z.ZodTypeAny, {
1053
+ model: string;
1054
+ messages: {
1055
+ role: "user" | "assistant";
1056
+ content: string | ({
1057
+ type: "text";
1058
+ text: string;
1059
+ } | {
1060
+ type: "image";
1061
+ source: {
1062
+ type: "base64";
1063
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
1064
+ data: string;
1065
+ } | {
1066
+ type: "url";
1067
+ url: string;
1068
+ };
1069
+ } | {
1070
+ type: "thinking";
1071
+ thinking: string;
1072
+ signature: string;
1073
+ } | {
1074
+ type: "redacted_thinking";
1075
+ data: string;
1076
+ } | {
1077
+ type: "tool_use";
1078
+ id: string;
1079
+ name: string;
1080
+ input: Record<string, unknown>;
1081
+ } | {
1082
+ type: "tool_result";
1083
+ tool_use_id: string;
1084
+ content?: string | Record<string, unknown>[] | undefined;
1085
+ is_error?: boolean | undefined;
1086
+ })[];
1087
+ }[];
1088
+ system?: string | {
1089
+ type: "text";
1090
+ text: string;
1091
+ }[] | undefined;
1092
+ temperature?: number | undefined;
1093
+ top_p?: number | undefined;
1094
+ top_k?: number | undefined;
1095
+ max_tokens?: number | undefined;
1096
+ stream?: boolean | undefined;
1097
+ tools?: {
1098
+ name: string;
1099
+ input_schema: Record<string, unknown>;
1100
+ description?: string | undefined;
1101
+ strict?: boolean | undefined;
1102
+ }[] | undefined;
1103
+ tool_choice?: {
1104
+ type: "auto";
1105
+ disable_parallel_tool_use?: boolean | undefined;
1106
+ } | {
1107
+ type: "any";
1108
+ disable_parallel_tool_use?: boolean | undefined;
1109
+ } | {
1110
+ type: "none";
1111
+ } | {
1112
+ type: "tool";
1113
+ name: string;
1114
+ disable_parallel_tool_use?: boolean | undefined;
1115
+ } | undefined;
1116
+ thinking?: {
1117
+ type: "enabled" | "disabled";
1118
+ budget_tokens?: number | undefined;
1119
+ } | undefined;
1120
+ stop_sequences?: string[] | undefined;
1121
+ metadata?: {
1122
+ user_id?: string | undefined;
1123
+ } | undefined;
1124
+ raw_output?: boolean | undefined;
1125
+ }, {
1126
+ model: string;
1127
+ messages: {
1128
+ role: "user" | "assistant";
1129
+ content: string | ({
1130
+ type: "text";
1131
+ text: string;
1132
+ } | {
1133
+ type: "image";
1134
+ source: {
1135
+ type: "base64";
1136
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
1137
+ data: string;
1138
+ } | {
1139
+ type: "url";
1140
+ url: string;
1141
+ };
1142
+ } | {
1143
+ type: "thinking";
1144
+ thinking: string;
1145
+ signature: string;
1146
+ } | {
1147
+ type: "redacted_thinking";
1148
+ data: string;
1149
+ } | {
1150
+ type: "tool_use";
1151
+ id: string;
1152
+ name: string;
1153
+ input: Record<string, unknown>;
1154
+ } | {
1155
+ type: "tool_result";
1156
+ tool_use_id: string;
1157
+ content?: string | Record<string, unknown>[] | undefined;
1158
+ is_error?: boolean | undefined;
1159
+ })[];
1160
+ }[];
1161
+ system?: string | {
1162
+ type: "text";
1163
+ text: string;
1164
+ }[] | undefined;
1165
+ temperature?: number | undefined;
1166
+ top_p?: number | undefined;
1167
+ top_k?: number | undefined;
1168
+ max_tokens?: number | undefined;
1169
+ stream?: boolean | undefined;
1170
+ tools?: {
1171
+ name: string;
1172
+ input_schema: Record<string, unknown>;
1173
+ description?: string | undefined;
1174
+ strict?: boolean | undefined;
1175
+ }[] | undefined;
1176
+ tool_choice?: {
1177
+ type: "auto";
1178
+ disable_parallel_tool_use?: boolean | undefined;
1179
+ } | {
1180
+ type: "any";
1181
+ disable_parallel_tool_use?: boolean | undefined;
1182
+ } | {
1183
+ type: "none";
1184
+ } | {
1185
+ type: "tool";
1186
+ name: string;
1187
+ disable_parallel_tool_use?: boolean | undefined;
1188
+ } | undefined;
1189
+ thinking?: {
1190
+ type: "enabled" | "disabled";
1191
+ budget_tokens?: number | undefined;
1192
+ } | undefined;
1193
+ stop_sequences?: string[] | undefined;
1194
+ metadata?: {
1195
+ user_id?: string | undefined;
1196
+ } | undefined;
1197
+ raw_output?: boolean | undefined;
1198
+ }>;
1199
+ export declare const FireworksTranscriptionRequestSchema: z.ZodObject<{
1200
+ file: z.ZodUnion<[z.ZodType<Blob, z.ZodTypeDef, Blob>, z.ZodString]>;
1201
+ model: z.ZodOptional<z.ZodString>;
1202
+ vad_model: z.ZodOptional<z.ZodEnum<["silero", "whisperx-pyannet"]>>;
1203
+ alignment_model: z.ZodOptional<z.ZodEnum<["mms_fa", "tdnn_ffn"]>>;
1204
+ language: z.ZodOptional<z.ZodString>;
1205
+ prompt: z.ZodOptional<z.ZodString>;
1206
+ temperature: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodArray<z.ZodNumber, "many">]>>;
1207
+ response_format: z.ZodOptional<z.ZodEnum<["json", "text", "srt", "verbose_json", "vtt"]>>;
1208
+ timestamp_granularities: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1209
+ diarize: z.ZodOptional<z.ZodEnum<["true", "false"]>>;
1210
+ min_speakers: z.ZodOptional<z.ZodNumber>;
1211
+ max_speakers: z.ZodOptional<z.ZodNumber>;
1212
+ preprocessing: z.ZodOptional<z.ZodEnum<["none", "dynamic", "soft_dynamic", "bass_dynamic"]>>;
1213
+ }, "strip", z.ZodTypeAny, {
1214
+ file: string | Blob;
1215
+ model?: string | undefined;
1216
+ temperature?: number | number[] | undefined;
1217
+ response_format?: "text" | "json" | "srt" | "verbose_json" | "vtt" | undefined;
1218
+ prompt?: string | undefined;
1219
+ vad_model?: "silero" | "whisperx-pyannet" | undefined;
1220
+ alignment_model?: "mms_fa" | "tdnn_ffn" | undefined;
1221
+ language?: string | undefined;
1222
+ timestamp_granularities?: string | string[] | undefined;
1223
+ diarize?: "true" | "false" | undefined;
1224
+ min_speakers?: number | undefined;
1225
+ max_speakers?: number | undefined;
1226
+ preprocessing?: "none" | "dynamic" | "soft_dynamic" | "bass_dynamic" | undefined;
1227
+ }, {
1228
+ file: string | Blob;
1229
+ model?: string | undefined;
1230
+ temperature?: number | number[] | undefined;
1231
+ response_format?: "text" | "json" | "srt" | "verbose_json" | "vtt" | undefined;
1232
+ prompt?: string | undefined;
1233
+ vad_model?: "silero" | "whisperx-pyannet" | undefined;
1234
+ alignment_model?: "mms_fa" | "tdnn_ffn" | undefined;
1235
+ language?: string | undefined;
1236
+ timestamp_granularities?: string | string[] | undefined;
1237
+ diarize?: "true" | "false" | undefined;
1238
+ min_speakers?: number | undefined;
1239
+ max_speakers?: number | undefined;
1240
+ preprocessing?: "none" | "dynamic" | "soft_dynamic" | "bass_dynamic" | undefined;
1241
+ }>;
1242
+ export declare const FireworksTranslationRequestSchema: z.ZodObject<{
1243
+ file: z.ZodUnion<[z.ZodType<Blob, z.ZodTypeDef, Blob>, z.ZodString]>;
1244
+ model: z.ZodOptional<z.ZodString>;
1245
+ vad_model: z.ZodOptional<z.ZodEnum<["silero", "whisperx-pyannet"]>>;
1246
+ alignment_model: z.ZodOptional<z.ZodEnum<["mms_fa", "tdnn_ffn"]>>;
1247
+ language: z.ZodOptional<z.ZodString>;
1248
+ prompt: z.ZodOptional<z.ZodString>;
1249
+ temperature: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodArray<z.ZodNumber, "many">]>>;
1250
+ response_format: z.ZodOptional<z.ZodEnum<["json", "text", "srt", "verbose_json", "vtt"]>>;
1251
+ timestamp_granularities: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1252
+ preprocessing: z.ZodOptional<z.ZodEnum<["none", "dynamic", "soft_dynamic", "bass_dynamic"]>>;
1253
+ }, "strip", z.ZodTypeAny, {
1254
+ file: string | Blob;
1255
+ model?: string | undefined;
1256
+ temperature?: number | number[] | undefined;
1257
+ response_format?: "text" | "json" | "srt" | "verbose_json" | "vtt" | undefined;
1258
+ prompt?: string | undefined;
1259
+ vad_model?: "silero" | "whisperx-pyannet" | undefined;
1260
+ alignment_model?: "mms_fa" | "tdnn_ffn" | undefined;
1261
+ language?: string | undefined;
1262
+ timestamp_granularities?: string | string[] | undefined;
1263
+ preprocessing?: "none" | "dynamic" | "soft_dynamic" | "bass_dynamic" | undefined;
1264
+ }, {
1265
+ file: string | Blob;
1266
+ model?: string | undefined;
1267
+ temperature?: number | number[] | undefined;
1268
+ response_format?: "text" | "json" | "srt" | "verbose_json" | "vtt" | undefined;
1269
+ prompt?: string | undefined;
1270
+ vad_model?: "silero" | "whisperx-pyannet" | undefined;
1271
+ alignment_model?: "mms_fa" | "tdnn_ffn" | undefined;
1272
+ language?: string | undefined;
1273
+ timestamp_granularities?: string | string[] | undefined;
1274
+ preprocessing?: "none" | "dynamic" | "soft_dynamic" | "bass_dynamic" | undefined;
1275
+ }>;
1276
+ export declare const FireworksStreamingTranscriptionOptionsSchema: z.ZodObject<{
1277
+ language: z.ZodOptional<z.ZodString>;
1278
+ prompt: z.ZodOptional<z.ZodString>;
1279
+ temperature: z.ZodOptional<z.ZodNumber>;
1280
+ response_format: z.ZodOptional<z.ZodLiteral<"verbose_json">>;
1281
+ timestamp_granularities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1282
+ baseURL: z.ZodOptional<z.ZodString>;
1283
+ }, "strip", z.ZodTypeAny, {
1284
+ temperature?: number | undefined;
1285
+ response_format?: "verbose_json" | undefined;
1286
+ prompt?: string | undefined;
1287
+ language?: string | undefined;
1288
+ timestamp_granularities?: string[] | undefined;
1289
+ baseURL?: string | undefined;
1290
+ }, {
1291
+ temperature?: number | undefined;
1292
+ response_format?: "verbose_json" | undefined;
1293
+ prompt?: string | undefined;
1294
+ language?: string | undefined;
1295
+ timestamp_granularities?: string[] | undefined;
1296
+ baseURL?: string | undefined;
1297
+ }>;
1298
+ export declare const FireworksAudioBatchTranscriptionRequestSchema: z.ZodObject<{
1299
+ file: z.ZodUnion<[z.ZodType<Blob, z.ZodTypeDef, Blob>, z.ZodString]>;
1300
+ endpoint_id: z.ZodString;
1301
+ model: z.ZodOptional<z.ZodString>;
1302
+ vad_model: z.ZodOptional<z.ZodEnum<["silero", "whisperx-pyannet"]>>;
1303
+ alignment_model: z.ZodOptional<z.ZodEnum<["mms_fa", "tdnn_ffn"]>>;
1304
+ language: z.ZodOptional<z.ZodString>;
1305
+ prompt: z.ZodOptional<z.ZodString>;
1306
+ temperature: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodArray<z.ZodNumber, "many">]>>;
1307
+ response_format: z.ZodOptional<z.ZodEnum<["json", "text", "srt", "verbose_json", "vtt"]>>;
1308
+ timestamp_granularities: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1309
+ diarize: z.ZodOptional<z.ZodEnum<["true", "false"]>>;
1310
+ min_speakers: z.ZodOptional<z.ZodNumber>;
1311
+ max_speakers: z.ZodOptional<z.ZodNumber>;
1312
+ preprocessing: z.ZodOptional<z.ZodEnum<["none", "dynamic", "soft_dynamic", "bass_dynamic"]>>;
1313
+ }, "strip", z.ZodTypeAny, {
1314
+ file: string | Blob;
1315
+ endpoint_id: string;
1316
+ model?: string | undefined;
1317
+ temperature?: number | number[] | undefined;
1318
+ response_format?: "text" | "json" | "srt" | "verbose_json" | "vtt" | undefined;
1319
+ prompt?: string | undefined;
1320
+ vad_model?: "silero" | "whisperx-pyannet" | undefined;
1321
+ alignment_model?: "mms_fa" | "tdnn_ffn" | undefined;
1322
+ language?: string | undefined;
1323
+ timestamp_granularities?: string | string[] | undefined;
1324
+ diarize?: "true" | "false" | undefined;
1325
+ min_speakers?: number | undefined;
1326
+ max_speakers?: number | undefined;
1327
+ preprocessing?: "none" | "dynamic" | "soft_dynamic" | "bass_dynamic" | undefined;
1328
+ }, {
1329
+ file: string | Blob;
1330
+ endpoint_id: string;
1331
+ model?: string | undefined;
1332
+ temperature?: number | number[] | undefined;
1333
+ response_format?: "text" | "json" | "srt" | "verbose_json" | "vtt" | undefined;
1334
+ prompt?: string | undefined;
1335
+ vad_model?: "silero" | "whisperx-pyannet" | undefined;
1336
+ alignment_model?: "mms_fa" | "tdnn_ffn" | undefined;
1337
+ language?: string | undefined;
1338
+ timestamp_granularities?: string | string[] | undefined;
1339
+ diarize?: "true" | "false" | undefined;
1340
+ min_speakers?: number | undefined;
1341
+ max_speakers?: number | undefined;
1342
+ preprocessing?: "none" | "dynamic" | "soft_dynamic" | "bass_dynamic" | undefined;
1343
+ }>;
1344
+ export declare const FireworksAudioBatchTranslationRequestSchema: z.ZodObject<{
1345
+ file: z.ZodUnion<[z.ZodType<Blob, z.ZodTypeDef, Blob>, z.ZodString]>;
1346
+ endpoint_id: z.ZodString;
1347
+ model: z.ZodOptional<z.ZodString>;
1348
+ vad_model: z.ZodOptional<z.ZodEnum<["silero", "whisperx-pyannet"]>>;
1349
+ alignment_model: z.ZodOptional<z.ZodEnum<["mms_fa", "tdnn_ffn"]>>;
1350
+ language: z.ZodOptional<z.ZodString>;
1351
+ prompt: z.ZodOptional<z.ZodString>;
1352
+ temperature: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodArray<z.ZodNumber, "many">]>>;
1353
+ response_format: z.ZodOptional<z.ZodEnum<["json", "text", "srt", "verbose_json", "vtt"]>>;
1354
+ timestamp_granularities: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1355
+ preprocessing: z.ZodOptional<z.ZodEnum<["none", "dynamic", "soft_dynamic", "bass_dynamic"]>>;
1356
+ }, "strip", z.ZodTypeAny, {
1357
+ file: string | Blob;
1358
+ endpoint_id: string;
1359
+ model?: string | undefined;
1360
+ temperature?: number | number[] | undefined;
1361
+ response_format?: "text" | "json" | "srt" | "verbose_json" | "vtt" | undefined;
1362
+ prompt?: string | undefined;
1363
+ vad_model?: "silero" | "whisperx-pyannet" | undefined;
1364
+ alignment_model?: "mms_fa" | "tdnn_ffn" | undefined;
1365
+ language?: string | undefined;
1366
+ timestamp_granularities?: string | string[] | undefined;
1367
+ preprocessing?: "none" | "dynamic" | "soft_dynamic" | "bass_dynamic" | undefined;
1368
+ }, {
1369
+ file: string | Blob;
1370
+ endpoint_id: string;
1371
+ model?: string | undefined;
1372
+ temperature?: number | number[] | undefined;
1373
+ response_format?: "text" | "json" | "srt" | "verbose_json" | "vtt" | undefined;
1374
+ prompt?: string | undefined;
1375
+ vad_model?: "silero" | "whisperx-pyannet" | undefined;
1376
+ alignment_model?: "mms_fa" | "tdnn_ffn" | undefined;
1377
+ language?: string | undefined;
1378
+ timestamp_granularities?: string | string[] | undefined;
1379
+ preprocessing?: "none" | "dynamic" | "soft_dynamic" | "bass_dynamic" | undefined;
1380
+ }>;
1381
+ export declare const FireworksTextToImageRequestSchema: z.ZodObject<{
1382
+ prompt: z.ZodString;
1383
+ aspect_ratio: z.ZodOptional<z.ZodEnum<["1:1", "21:9", "16:9", "3:2", "5:4", "4:5", "2:3", "9:16", "9:21", "4:3", "3:4"]>>;
1384
+ guidance_scale: z.ZodOptional<z.ZodNumber>;
1385
+ num_inference_steps: z.ZodOptional<z.ZodNumber>;
1386
+ seed: z.ZodOptional<z.ZodNumber>;
1387
+ }, "strip", z.ZodTypeAny, {
1388
+ prompt: string;
1389
+ seed?: number | undefined;
1390
+ aspect_ratio?: "1:1" | "21:9" | "16:9" | "3:2" | "5:4" | "4:5" | "2:3" | "9:16" | "9:21" | "4:3" | "3:4" | undefined;
1391
+ guidance_scale?: number | undefined;
1392
+ num_inference_steps?: number | undefined;
1393
+ }, {
1394
+ prompt: string;
1395
+ seed?: number | undefined;
1396
+ aspect_ratio?: "1:1" | "21:9" | "16:9" | "3:2" | "5:4" | "4:5" | "2:3" | "9:16" | "9:21" | "4:3" | "3:4" | undefined;
1397
+ guidance_scale?: number | undefined;
1398
+ num_inference_steps?: number | undefined;
1399
+ }>;
1400
+ export declare const FireworksKontextRequestSchema: z.ZodObject<{
1401
+ prompt: z.ZodString;
1402
+ input_image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1403
+ seed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1404
+ aspect_ratio: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1405
+ output_format: z.ZodOptional<z.ZodEnum<["png", "jpeg"]>>;
1406
+ webhook_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1407
+ webhook_secret: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1408
+ prompt_upsampling: z.ZodOptional<z.ZodBoolean>;
1409
+ safety_tolerance: z.ZodOptional<z.ZodNumber>;
1410
+ }, "strip", z.ZodTypeAny, {
1411
+ prompt: string;
1412
+ seed?: number | null | undefined;
1413
+ aspect_ratio?: string | null | undefined;
1414
+ input_image?: string | null | undefined;
1415
+ output_format?: "png" | "jpeg" | undefined;
1416
+ webhook_url?: string | null | undefined;
1417
+ webhook_secret?: string | null | undefined;
1418
+ prompt_upsampling?: boolean | undefined;
1419
+ safety_tolerance?: number | undefined;
1420
+ }, {
1421
+ prompt: string;
1422
+ seed?: number | null | undefined;
1423
+ aspect_ratio?: string | null | undefined;
1424
+ input_image?: string | null | undefined;
1425
+ output_format?: "png" | "jpeg" | undefined;
1426
+ webhook_url?: string | null | undefined;
1427
+ webhook_secret?: string | null | undefined;
1428
+ prompt_upsampling?: boolean | undefined;
1429
+ safety_tolerance?: number | undefined;
1430
+ }>;
1431
+ export declare const FireworksGetResultRequestSchema: z.ZodObject<{
1432
+ id: z.ZodString;
1433
+ }, "strip", z.ZodTypeAny, {
1434
+ id: string;
1435
+ }, {
1436
+ id: string;
1437
+ }>;
1438
+ export declare const FireworksCreateModelRequestSchema: z.ZodObject<{
1439
+ modelId: z.ZodString;
1440
+ model: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1441
+ cluster: z.ZodOptional<z.ZodString>;
1442
+ }, "strip", z.ZodTypeAny, {
1443
+ model: Record<string, unknown>;
1444
+ modelId: string;
1445
+ cluster?: string | undefined;
1446
+ }, {
1447
+ model: Record<string, unknown>;
1448
+ modelId: string;
1449
+ cluster?: string | undefined;
1450
+ }>;
1451
+ export declare const FireworksUpdateModelRequestSchema: z.ZodObject<{
1452
+ displayName: z.ZodOptional<z.ZodString>;
1453
+ description: z.ZodOptional<z.ZodString>;
1454
+ kind: z.ZodOptional<z.ZodString>;
1455
+ public: z.ZodOptional<z.ZodBoolean>;
1456
+ contextLength: z.ZodOptional<z.ZodNumber>;
1457
+ supportsImageInput: z.ZodOptional<z.ZodBoolean>;
1458
+ supportsTools: z.ZodOptional<z.ZodBoolean>;
1459
+ }, "strip", z.ZodTypeAny, {
1460
+ description?: string | undefined;
1461
+ displayName?: string | undefined;
1462
+ kind?: string | undefined;
1463
+ public?: boolean | undefined;
1464
+ contextLength?: number | undefined;
1465
+ supportsImageInput?: boolean | undefined;
1466
+ supportsTools?: boolean | undefined;
1467
+ }, {
1468
+ description?: string | undefined;
1469
+ displayName?: string | undefined;
1470
+ kind?: string | undefined;
1471
+ public?: boolean | undefined;
1472
+ contextLength?: number | undefined;
1473
+ supportsImageInput?: boolean | undefined;
1474
+ supportsTools?: boolean | undefined;
1475
+ }>;
1476
+ export declare const FireworksPrepareModelRequestSchema: z.ZodObject<{
1477
+ precision: z.ZodString;
1478
+ readMask: z.ZodOptional<z.ZodString>;
1479
+ }, "strip", z.ZodTypeAny, {
1480
+ precision: string;
1481
+ readMask?: string | undefined;
1482
+ }, {
1483
+ precision: string;
1484
+ readMask?: string | undefined;
1485
+ }>;
1486
+ export declare const FireworksGetUploadEndpointRequestSchema: z.ZodObject<{
1487
+ filenameToSize: z.ZodRecord<z.ZodString, z.ZodNumber>;
1488
+ enableResumableUpload: z.ZodOptional<z.ZodBoolean>;
1489
+ readMask: z.ZodOptional<z.ZodString>;
1490
+ }, "strip", z.ZodTypeAny, {
1491
+ filenameToSize: Record<string, number>;
1492
+ readMask?: string | undefined;
1493
+ enableResumableUpload?: boolean | undefined;
1494
+ }, {
1495
+ filenameToSize: Record<string, number>;
1496
+ readMask?: string | undefined;
1497
+ enableResumableUpload?: boolean | undefined;
1498
+ }>;
1499
+ export declare const FireworksValidateUploadRequestSchema: z.ZodObject<{
1500
+ skipHfConfigValidation: z.ZodOptional<z.ZodBoolean>;
1501
+ trustRemoteCode: z.ZodOptional<z.ZodBoolean>;
1502
+ configOnly: z.ZodOptional<z.ZodBoolean>;
1503
+ }, "strip", z.ZodTypeAny, {
1504
+ skipHfConfigValidation?: boolean | undefined;
1505
+ trustRemoteCode?: boolean | undefined;
1506
+ configOnly?: boolean | undefined;
1507
+ }, {
1508
+ skipHfConfigValidation?: boolean | undefined;
1509
+ trustRemoteCode?: boolean | undefined;
1510
+ configOnly?: boolean | undefined;
1511
+ }>;
1512
+ export declare const FireworksBatchInferenceParametersSchema: z.ZodObject<{
1513
+ maxTokens: z.ZodOptional<z.ZodNumber>;
1514
+ temperature: z.ZodOptional<z.ZodNumber>;
1515
+ topP: z.ZodOptional<z.ZodNumber>;
1516
+ n: z.ZodOptional<z.ZodNumber>;
1517
+ topK: z.ZodOptional<z.ZodNumber>;
1518
+ extraBody: z.ZodOptional<z.ZodString>;
1519
+ }, "strip", z.ZodTypeAny, {
1520
+ temperature?: number | undefined;
1521
+ n?: number | undefined;
1522
+ maxTokens?: number | undefined;
1523
+ topP?: number | undefined;
1524
+ topK?: number | undefined;
1525
+ extraBody?: string | undefined;
1526
+ }, {
1527
+ temperature?: number | undefined;
1528
+ n?: number | undefined;
1529
+ maxTokens?: number | undefined;
1530
+ topP?: number | undefined;
1531
+ topK?: number | undefined;
1532
+ extraBody?: string | undefined;
1533
+ }>;
1534
+ export declare const FireworksBatchJobCreateRequestSchema: z.ZodObject<{
1535
+ model: z.ZodString;
1536
+ inputDatasetId: z.ZodString;
1537
+ displayName: z.ZodOptional<z.ZodString>;
1538
+ outputDatasetId: z.ZodOptional<z.ZodString>;
1539
+ inferenceParameters: z.ZodOptional<z.ZodObject<{
1540
+ maxTokens: z.ZodOptional<z.ZodNumber>;
1541
+ temperature: z.ZodOptional<z.ZodNumber>;
1542
+ topP: z.ZodOptional<z.ZodNumber>;
1543
+ n: z.ZodOptional<z.ZodNumber>;
1544
+ topK: z.ZodOptional<z.ZodNumber>;
1545
+ extraBody: z.ZodOptional<z.ZodString>;
1546
+ }, "strip", z.ZodTypeAny, {
1547
+ temperature?: number | undefined;
1548
+ n?: number | undefined;
1549
+ maxTokens?: number | undefined;
1550
+ topP?: number | undefined;
1551
+ topK?: number | undefined;
1552
+ extraBody?: string | undefined;
1553
+ }, {
1554
+ temperature?: number | undefined;
1555
+ n?: number | undefined;
1556
+ maxTokens?: number | undefined;
1557
+ topP?: number | undefined;
1558
+ topK?: number | undefined;
1559
+ extraBody?: string | undefined;
1560
+ }>>;
1561
+ precision: z.ZodOptional<z.ZodString>;
1562
+ continuedFromJobName: z.ZodOptional<z.ZodString>;
1563
+ }, "strip", z.ZodTypeAny, {
1564
+ model: string;
1565
+ inputDatasetId: string;
1566
+ displayName?: string | undefined;
1567
+ precision?: string | undefined;
1568
+ outputDatasetId?: string | undefined;
1569
+ inferenceParameters?: {
1570
+ temperature?: number | undefined;
1571
+ n?: number | undefined;
1572
+ maxTokens?: number | undefined;
1573
+ topP?: number | undefined;
1574
+ topK?: number | undefined;
1575
+ extraBody?: string | undefined;
1576
+ } | undefined;
1577
+ continuedFromJobName?: string | undefined;
1578
+ }, {
1579
+ model: string;
1580
+ inputDatasetId: string;
1581
+ displayName?: string | undefined;
1582
+ precision?: string | undefined;
1583
+ outputDatasetId?: string | undefined;
1584
+ inferenceParameters?: {
1585
+ temperature?: number | undefined;
1586
+ n?: number | undefined;
1587
+ maxTokens?: number | undefined;
1588
+ topP?: number | undefined;
1589
+ topK?: number | undefined;
1590
+ extraBody?: string | undefined;
1591
+ } | undefined;
1592
+ continuedFromJobName?: string | undefined;
1593
+ }>;
1594
+ export declare const FireworksBaseTrainingConfigSchema: z.ZodObject<{
1595
+ baseModel: z.ZodOptional<z.ZodString>;
1596
+ warmStartFrom: z.ZodOptional<z.ZodString>;
1597
+ outputModel: z.ZodOptional<z.ZodString>;
1598
+ learningRate: z.ZodOptional<z.ZodNumber>;
1599
+ epochs: z.ZodOptional<z.ZodNumber>;
1600
+ batchSize: z.ZodOptional<z.ZodNumber>;
1601
+ batchSizeSamples: z.ZodOptional<z.ZodNumber>;
1602
+ gradientAccumulationSteps: z.ZodOptional<z.ZodNumber>;
1603
+ learningRateWarmupSteps: z.ZodOptional<z.ZodNumber>;
1604
+ maxContextLength: z.ZodOptional<z.ZodNumber>;
1605
+ loraRank: z.ZodOptional<z.ZodNumber>;
1606
+ optimizerWeightDecay: z.ZodOptional<z.ZodNumber>;
1607
+ jinjaTemplate: z.ZodOptional<z.ZodString>;
1608
+ region: z.ZodOptional<z.ZodString>;
1609
+ }, "strip", z.ZodTypeAny, {
1610
+ baseModel?: string | undefined;
1611
+ warmStartFrom?: string | undefined;
1612
+ outputModel?: string | undefined;
1613
+ learningRate?: number | undefined;
1614
+ epochs?: number | undefined;
1615
+ batchSize?: number | undefined;
1616
+ batchSizeSamples?: number | undefined;
1617
+ gradientAccumulationSteps?: number | undefined;
1618
+ learningRateWarmupSteps?: number | undefined;
1619
+ maxContextLength?: number | undefined;
1620
+ loraRank?: number | undefined;
1621
+ optimizerWeightDecay?: number | undefined;
1622
+ jinjaTemplate?: string | undefined;
1623
+ region?: string | undefined;
1624
+ }, {
1625
+ baseModel?: string | undefined;
1626
+ warmStartFrom?: string | undefined;
1627
+ outputModel?: string | undefined;
1628
+ learningRate?: number | undefined;
1629
+ epochs?: number | undefined;
1630
+ batchSize?: number | undefined;
1631
+ batchSizeSamples?: number | undefined;
1632
+ gradientAccumulationSteps?: number | undefined;
1633
+ learningRateWarmupSteps?: number | undefined;
1634
+ maxContextLength?: number | undefined;
1635
+ loraRank?: number | undefined;
1636
+ optimizerWeightDecay?: number | undefined;
1637
+ jinjaTemplate?: string | undefined;
1638
+ region?: string | undefined;
1639
+ }>;
1640
+ export declare const FireworksRLLossConfigSchema: z.ZodObject<{
1641
+ method: z.ZodOptional<z.ZodEnum<["METHOD_UNSPECIFIED", "GRPO", "DAPO", "DPO", "ORPO", "GSPO_TOKEN"]>>;
1642
+ klBeta: z.ZodOptional<z.ZodNumber>;
1643
+ }, "strip", z.ZodTypeAny, {
1644
+ method?: "METHOD_UNSPECIFIED" | "GRPO" | "DAPO" | "DPO" | "ORPO" | "GSPO_TOKEN" | undefined;
1645
+ klBeta?: number | undefined;
1646
+ }, {
1647
+ method?: "METHOD_UNSPECIFIED" | "GRPO" | "DAPO" | "DPO" | "ORPO" | "GSPO_TOKEN" | undefined;
1648
+ klBeta?: number | undefined;
1649
+ }>;
1650
+ export declare const FireworksWandbConfigSchema: z.ZodObject<{
1651
+ enabled: z.ZodOptional<z.ZodBoolean>;
1652
+ apiKey: z.ZodOptional<z.ZodString>;
1653
+ project: z.ZodOptional<z.ZodString>;
1654
+ entity: z.ZodOptional<z.ZodString>;
1655
+ runId: z.ZodOptional<z.ZodString>;
1656
+ url: z.ZodOptional<z.ZodString>;
1657
+ }, "strip", z.ZodTypeAny, {
1658
+ url?: string | undefined;
1659
+ enabled?: boolean | undefined;
1660
+ apiKey?: string | undefined;
1661
+ project?: string | undefined;
1662
+ entity?: string | undefined;
1663
+ runId?: string | undefined;
1664
+ }, {
1665
+ url?: string | undefined;
1666
+ enabled?: boolean | undefined;
1667
+ apiKey?: string | undefined;
1668
+ project?: string | undefined;
1669
+ entity?: string | undefined;
1670
+ runId?: string | undefined;
1671
+ }>;
1672
+ export declare const FireworksAwsS3ConfigSchema: z.ZodObject<{
1673
+ credentialsSecret: z.ZodOptional<z.ZodString>;
1674
+ iamRoleArn: z.ZodOptional<z.ZodString>;
1675
+ }, "strip", z.ZodTypeAny, {
1676
+ credentialsSecret?: string | undefined;
1677
+ iamRoleArn?: string | undefined;
1678
+ }, {
1679
+ credentialsSecret?: string | undefined;
1680
+ iamRoleArn?: string | undefined;
1681
+ }>;
1682
+ export declare const FireworksAzureBlobStorageConfigSchema: z.ZodObject<{
1683
+ credentialsSecret: z.ZodOptional<z.ZodString>;
1684
+ managedIdentityClientId: z.ZodOptional<z.ZodString>;
1685
+ tenantId: z.ZodOptional<z.ZodString>;
1686
+ }, "strip", z.ZodTypeAny, {
1687
+ credentialsSecret?: string | undefined;
1688
+ managedIdentityClientId?: string | undefined;
1689
+ tenantId?: string | undefined;
1690
+ }, {
1691
+ credentialsSecret?: string | undefined;
1692
+ managedIdentityClientId?: string | undefined;
1693
+ tenantId?: string | undefined;
1694
+ }>;
1695
+ export declare const FireworksRFTInferenceParamsSchema: z.ZodObject<{
1696
+ maxTokens: z.ZodOptional<z.ZodNumber>;
1697
+ temperature: z.ZodOptional<z.ZodNumber>;
1698
+ topP: z.ZodOptional<z.ZodNumber>;
1699
+ topK: z.ZodOptional<z.ZodNumber>;
1700
+ }, "strip", z.ZodTypeAny, {
1701
+ temperature?: number | undefined;
1702
+ maxTokens?: number | undefined;
1703
+ topP?: number | undefined;
1704
+ topK?: number | undefined;
1705
+ }, {
1706
+ temperature?: number | undefined;
1707
+ maxTokens?: number | undefined;
1708
+ topP?: number | undefined;
1709
+ topK?: number | undefined;
1710
+ }>;
1711
+ export declare const FireworksSFTCreateRequestSchema: z.ZodObject<{
1712
+ accountId: z.ZodString;
1713
+ dataset: z.ZodString;
1714
+ displayName: z.ZodOptional<z.ZodString>;
1715
+ baseModel: z.ZodOptional<z.ZodString>;
1716
+ warmStartFrom: z.ZodOptional<z.ZodString>;
1717
+ outputModel: z.ZodOptional<z.ZodString>;
1718
+ jinjaTemplate: z.ZodOptional<z.ZodString>;
1719
+ epochs: z.ZodOptional<z.ZodNumber>;
1720
+ learningRate: z.ZodOptional<z.ZodNumber>;
1721
+ maxContextLength: z.ZodOptional<z.ZodNumber>;
1722
+ loraRank: z.ZodOptional<z.ZodNumber>;
1723
+ earlyStop: z.ZodOptional<z.ZodBoolean>;
1724
+ evaluationDataset: z.ZodOptional<z.ZodString>;
1725
+ isTurbo: z.ZodOptional<z.ZodBoolean>;
1726
+ evalAutoCarveout: z.ZodOptional<z.ZodBoolean>;
1727
+ region: z.ZodOptional<z.ZodString>;
1728
+ nodes: z.ZodOptional<z.ZodNumber>;
1729
+ batchSize: z.ZodOptional<z.ZodNumber>;
1730
+ batchSizeSamples: z.ZodOptional<z.ZodNumber>;
1731
+ gradientAccumulationSteps: z.ZodOptional<z.ZodNumber>;
1732
+ learningRateWarmupSteps: z.ZodOptional<z.ZodNumber>;
1733
+ mtpEnabled: z.ZodOptional<z.ZodBoolean>;
1734
+ mtpNumDraftTokens: z.ZodOptional<z.ZodNumber>;
1735
+ mtpFreezeBaseModel: z.ZodOptional<z.ZodBoolean>;
1736
+ optimizerWeightDecay: z.ZodOptional<z.ZodNumber>;
1737
+ usePurpose: z.ZodOptional<z.ZodString>;
1738
+ awsS3Config: z.ZodOptional<z.ZodObject<{
1739
+ credentialsSecret: z.ZodOptional<z.ZodString>;
1740
+ iamRoleArn: z.ZodOptional<z.ZodString>;
1741
+ }, "strip", z.ZodTypeAny, {
1742
+ credentialsSecret?: string | undefined;
1743
+ iamRoleArn?: string | undefined;
1744
+ }, {
1745
+ credentialsSecret?: string | undefined;
1746
+ iamRoleArn?: string | undefined;
1747
+ }>>;
1748
+ azureBlobStorageConfig: z.ZodOptional<z.ZodObject<{
1749
+ credentialsSecret: z.ZodOptional<z.ZodString>;
1750
+ managedIdentityClientId: z.ZodOptional<z.ZodString>;
1751
+ tenantId: z.ZodOptional<z.ZodString>;
1752
+ }, "strip", z.ZodTypeAny, {
1753
+ credentialsSecret?: string | undefined;
1754
+ managedIdentityClientId?: string | undefined;
1755
+ tenantId?: string | undefined;
1756
+ }, {
1757
+ credentialsSecret?: string | undefined;
1758
+ managedIdentityClientId?: string | undefined;
1759
+ tenantId?: string | undefined;
1760
+ }>>;
1761
+ wandbConfig: z.ZodOptional<z.ZodObject<{
1762
+ enabled: z.ZodOptional<z.ZodBoolean>;
1763
+ apiKey: z.ZodOptional<z.ZodString>;
1764
+ project: z.ZodOptional<z.ZodString>;
1765
+ entity: z.ZodOptional<z.ZodString>;
1766
+ runId: z.ZodOptional<z.ZodString>;
1767
+ url: z.ZodOptional<z.ZodString>;
1768
+ }, "strip", z.ZodTypeAny, {
1769
+ url?: string | undefined;
1770
+ enabled?: boolean | undefined;
1771
+ apiKey?: string | undefined;
1772
+ project?: string | undefined;
1773
+ entity?: string | undefined;
1774
+ runId?: string | undefined;
1775
+ }, {
1776
+ url?: string | undefined;
1777
+ enabled?: boolean | undefined;
1778
+ apiKey?: string | undefined;
1779
+ project?: string | undefined;
1780
+ entity?: string | undefined;
1781
+ runId?: string | undefined;
1782
+ }>>;
1783
+ supervisedFineTuningJobId: z.ZodOptional<z.ZodString>;
1784
+ }, "strip", z.ZodTypeAny, {
1785
+ accountId: string;
1786
+ dataset: string;
1787
+ displayName?: string | undefined;
1788
+ baseModel?: string | undefined;
1789
+ warmStartFrom?: string | undefined;
1790
+ outputModel?: string | undefined;
1791
+ learningRate?: number | undefined;
1792
+ epochs?: number | undefined;
1793
+ batchSize?: number | undefined;
1794
+ batchSizeSamples?: number | undefined;
1795
+ gradientAccumulationSteps?: number | undefined;
1796
+ learningRateWarmupSteps?: number | undefined;
1797
+ maxContextLength?: number | undefined;
1798
+ loraRank?: number | undefined;
1799
+ optimizerWeightDecay?: number | undefined;
1800
+ jinjaTemplate?: string | undefined;
1801
+ region?: string | undefined;
1802
+ earlyStop?: boolean | undefined;
1803
+ evaluationDataset?: string | undefined;
1804
+ isTurbo?: boolean | undefined;
1805
+ evalAutoCarveout?: boolean | undefined;
1806
+ nodes?: number | undefined;
1807
+ mtpEnabled?: boolean | undefined;
1808
+ mtpNumDraftTokens?: number | undefined;
1809
+ mtpFreezeBaseModel?: boolean | undefined;
1810
+ usePurpose?: string | undefined;
1811
+ awsS3Config?: {
1812
+ credentialsSecret?: string | undefined;
1813
+ iamRoleArn?: string | undefined;
1814
+ } | undefined;
1815
+ azureBlobStorageConfig?: {
1816
+ credentialsSecret?: string | undefined;
1817
+ managedIdentityClientId?: string | undefined;
1818
+ tenantId?: string | undefined;
1819
+ } | undefined;
1820
+ wandbConfig?: {
1821
+ url?: string | undefined;
1822
+ enabled?: boolean | undefined;
1823
+ apiKey?: string | undefined;
1824
+ project?: string | undefined;
1825
+ entity?: string | undefined;
1826
+ runId?: string | undefined;
1827
+ } | undefined;
1828
+ supervisedFineTuningJobId?: string | undefined;
1829
+ }, {
1830
+ accountId: string;
1831
+ dataset: string;
1832
+ displayName?: string | undefined;
1833
+ baseModel?: string | undefined;
1834
+ warmStartFrom?: string | undefined;
1835
+ outputModel?: string | undefined;
1836
+ learningRate?: number | undefined;
1837
+ epochs?: number | undefined;
1838
+ batchSize?: number | undefined;
1839
+ batchSizeSamples?: number | undefined;
1840
+ gradientAccumulationSteps?: number | undefined;
1841
+ learningRateWarmupSteps?: number | undefined;
1842
+ maxContextLength?: number | undefined;
1843
+ loraRank?: number | undefined;
1844
+ optimizerWeightDecay?: number | undefined;
1845
+ jinjaTemplate?: string | undefined;
1846
+ region?: string | undefined;
1847
+ earlyStop?: boolean | undefined;
1848
+ evaluationDataset?: string | undefined;
1849
+ isTurbo?: boolean | undefined;
1850
+ evalAutoCarveout?: boolean | undefined;
1851
+ nodes?: number | undefined;
1852
+ mtpEnabled?: boolean | undefined;
1853
+ mtpNumDraftTokens?: number | undefined;
1854
+ mtpFreezeBaseModel?: boolean | undefined;
1855
+ usePurpose?: string | undefined;
1856
+ awsS3Config?: {
1857
+ credentialsSecret?: string | undefined;
1858
+ iamRoleArn?: string | undefined;
1859
+ } | undefined;
1860
+ azureBlobStorageConfig?: {
1861
+ credentialsSecret?: string | undefined;
1862
+ managedIdentityClientId?: string | undefined;
1863
+ tenantId?: string | undefined;
1864
+ } | undefined;
1865
+ wandbConfig?: {
1866
+ url?: string | undefined;
1867
+ enabled?: boolean | undefined;
1868
+ apiKey?: string | undefined;
1869
+ project?: string | undefined;
1870
+ entity?: string | undefined;
1871
+ runId?: string | undefined;
1872
+ } | undefined;
1873
+ supervisedFineTuningJobId?: string | undefined;
1874
+ }>;
1875
+ export declare const FireworksDpoJobCreateRequestSchema: z.ZodObject<{
1876
+ dataset: z.ZodString;
1877
+ displayName: z.ZodOptional<z.ZodString>;
1878
+ trainingConfig: z.ZodOptional<z.ZodObject<{
1879
+ baseModel: z.ZodOptional<z.ZodString>;
1880
+ warmStartFrom: z.ZodOptional<z.ZodString>;
1881
+ outputModel: z.ZodOptional<z.ZodString>;
1882
+ learningRate: z.ZodOptional<z.ZodNumber>;
1883
+ epochs: z.ZodOptional<z.ZodNumber>;
1884
+ batchSize: z.ZodOptional<z.ZodNumber>;
1885
+ batchSizeSamples: z.ZodOptional<z.ZodNumber>;
1886
+ gradientAccumulationSteps: z.ZodOptional<z.ZodNumber>;
1887
+ learningRateWarmupSteps: z.ZodOptional<z.ZodNumber>;
1888
+ maxContextLength: z.ZodOptional<z.ZodNumber>;
1889
+ loraRank: z.ZodOptional<z.ZodNumber>;
1890
+ optimizerWeightDecay: z.ZodOptional<z.ZodNumber>;
1891
+ jinjaTemplate: z.ZodOptional<z.ZodString>;
1892
+ region: z.ZodOptional<z.ZodString>;
1893
+ }, "strip", z.ZodTypeAny, {
1894
+ baseModel?: string | undefined;
1895
+ warmStartFrom?: string | undefined;
1896
+ outputModel?: string | undefined;
1897
+ learningRate?: number | undefined;
1898
+ epochs?: number | undefined;
1899
+ batchSize?: number | undefined;
1900
+ batchSizeSamples?: number | undefined;
1901
+ gradientAccumulationSteps?: number | undefined;
1902
+ learningRateWarmupSteps?: number | undefined;
1903
+ maxContextLength?: number | undefined;
1904
+ loraRank?: number | undefined;
1905
+ optimizerWeightDecay?: number | undefined;
1906
+ jinjaTemplate?: string | undefined;
1907
+ region?: string | undefined;
1908
+ }, {
1909
+ baseModel?: string | undefined;
1910
+ warmStartFrom?: string | undefined;
1911
+ outputModel?: string | undefined;
1912
+ learningRate?: number | undefined;
1913
+ epochs?: number | undefined;
1914
+ batchSize?: number | undefined;
1915
+ batchSizeSamples?: number | undefined;
1916
+ gradientAccumulationSteps?: number | undefined;
1917
+ learningRateWarmupSteps?: number | undefined;
1918
+ maxContextLength?: number | undefined;
1919
+ loraRank?: number | undefined;
1920
+ optimizerWeightDecay?: number | undefined;
1921
+ jinjaTemplate?: string | undefined;
1922
+ region?: string | undefined;
1923
+ }>>;
1924
+ lossConfig: z.ZodOptional<z.ZodObject<{
1925
+ method: z.ZodOptional<z.ZodEnum<["METHOD_UNSPECIFIED", "GRPO", "DAPO", "DPO", "ORPO", "GSPO_TOKEN"]>>;
1926
+ klBeta: z.ZodOptional<z.ZodNumber>;
1927
+ }, "strip", z.ZodTypeAny, {
1928
+ method?: "METHOD_UNSPECIFIED" | "GRPO" | "DAPO" | "DPO" | "ORPO" | "GSPO_TOKEN" | undefined;
1929
+ klBeta?: number | undefined;
1930
+ }, {
1931
+ method?: "METHOD_UNSPECIFIED" | "GRPO" | "DAPO" | "DPO" | "ORPO" | "GSPO_TOKEN" | undefined;
1932
+ klBeta?: number | undefined;
1933
+ }>>;
1934
+ wandbConfig: z.ZodOptional<z.ZodObject<{
1935
+ enabled: z.ZodOptional<z.ZodBoolean>;
1936
+ apiKey: z.ZodOptional<z.ZodString>;
1937
+ project: z.ZodOptional<z.ZodString>;
1938
+ entity: z.ZodOptional<z.ZodString>;
1939
+ runId: z.ZodOptional<z.ZodString>;
1940
+ url: z.ZodOptional<z.ZodString>;
1941
+ }, "strip", z.ZodTypeAny, {
1942
+ url?: string | undefined;
1943
+ enabled?: boolean | undefined;
1944
+ apiKey?: string | undefined;
1945
+ project?: string | undefined;
1946
+ entity?: string | undefined;
1947
+ runId?: string | undefined;
1948
+ }, {
1949
+ url?: string | undefined;
1950
+ enabled?: boolean | undefined;
1951
+ apiKey?: string | undefined;
1952
+ project?: string | undefined;
1953
+ entity?: string | undefined;
1954
+ runId?: string | undefined;
1955
+ }>>;
1956
+ awsS3Config: z.ZodOptional<z.ZodObject<{
1957
+ credentialsSecret: z.ZodOptional<z.ZodString>;
1958
+ iamRoleArn: z.ZodOptional<z.ZodString>;
1959
+ }, "strip", z.ZodTypeAny, {
1960
+ credentialsSecret?: string | undefined;
1961
+ iamRoleArn?: string | undefined;
1962
+ }, {
1963
+ credentialsSecret?: string | undefined;
1964
+ iamRoleArn?: string | undefined;
1965
+ }>>;
1966
+ azureBlobStorageConfig: z.ZodOptional<z.ZodObject<{
1967
+ credentialsSecret: z.ZodOptional<z.ZodString>;
1968
+ managedIdentityClientId: z.ZodOptional<z.ZodString>;
1969
+ tenantId: z.ZodOptional<z.ZodString>;
1970
+ }, "strip", z.ZodTypeAny, {
1971
+ credentialsSecret?: string | undefined;
1972
+ managedIdentityClientId?: string | undefined;
1973
+ tenantId?: string | undefined;
1974
+ }, {
1975
+ credentialsSecret?: string | undefined;
1976
+ managedIdentityClientId?: string | undefined;
1977
+ tenantId?: string | undefined;
1978
+ }>>;
1979
+ }, "strip", z.ZodTypeAny, {
1980
+ dataset: string;
1981
+ displayName?: string | undefined;
1982
+ awsS3Config?: {
1983
+ credentialsSecret?: string | undefined;
1984
+ iamRoleArn?: string | undefined;
1985
+ } | undefined;
1986
+ azureBlobStorageConfig?: {
1987
+ credentialsSecret?: string | undefined;
1988
+ managedIdentityClientId?: string | undefined;
1989
+ tenantId?: string | undefined;
1990
+ } | undefined;
1991
+ wandbConfig?: {
1992
+ url?: string | undefined;
1993
+ enabled?: boolean | undefined;
1994
+ apiKey?: string | undefined;
1995
+ project?: string | undefined;
1996
+ entity?: string | undefined;
1997
+ runId?: string | undefined;
1998
+ } | undefined;
1999
+ trainingConfig?: {
2000
+ baseModel?: string | undefined;
2001
+ warmStartFrom?: string | undefined;
2002
+ outputModel?: string | undefined;
2003
+ learningRate?: number | undefined;
2004
+ epochs?: number | undefined;
2005
+ batchSize?: number | undefined;
2006
+ batchSizeSamples?: number | undefined;
2007
+ gradientAccumulationSteps?: number | undefined;
2008
+ learningRateWarmupSteps?: number | undefined;
2009
+ maxContextLength?: number | undefined;
2010
+ loraRank?: number | undefined;
2011
+ optimizerWeightDecay?: number | undefined;
2012
+ jinjaTemplate?: string | undefined;
2013
+ region?: string | undefined;
2014
+ } | undefined;
2015
+ lossConfig?: {
2016
+ method?: "METHOD_UNSPECIFIED" | "GRPO" | "DAPO" | "DPO" | "ORPO" | "GSPO_TOKEN" | undefined;
2017
+ klBeta?: number | undefined;
2018
+ } | undefined;
2019
+ }, {
2020
+ dataset: string;
2021
+ displayName?: string | undefined;
2022
+ awsS3Config?: {
2023
+ credentialsSecret?: string | undefined;
2024
+ iamRoleArn?: string | undefined;
2025
+ } | undefined;
2026
+ azureBlobStorageConfig?: {
2027
+ credentialsSecret?: string | undefined;
2028
+ managedIdentityClientId?: string | undefined;
2029
+ tenantId?: string | undefined;
2030
+ } | undefined;
2031
+ wandbConfig?: {
2032
+ url?: string | undefined;
2033
+ enabled?: boolean | undefined;
2034
+ apiKey?: string | undefined;
2035
+ project?: string | undefined;
2036
+ entity?: string | undefined;
2037
+ runId?: string | undefined;
2038
+ } | undefined;
2039
+ trainingConfig?: {
2040
+ baseModel?: string | undefined;
2041
+ warmStartFrom?: string | undefined;
2042
+ outputModel?: string | undefined;
2043
+ learningRate?: number | undefined;
2044
+ epochs?: number | undefined;
2045
+ batchSize?: number | undefined;
2046
+ batchSizeSamples?: number | undefined;
2047
+ gradientAccumulationSteps?: number | undefined;
2048
+ learningRateWarmupSteps?: number | undefined;
2049
+ maxContextLength?: number | undefined;
2050
+ loraRank?: number | undefined;
2051
+ optimizerWeightDecay?: number | undefined;
2052
+ jinjaTemplate?: string | undefined;
2053
+ region?: string | undefined;
2054
+ } | undefined;
2055
+ lossConfig?: {
2056
+ method?: "METHOD_UNSPECIFIED" | "GRPO" | "DAPO" | "DPO" | "ORPO" | "GSPO_TOKEN" | undefined;
2057
+ klBeta?: number | undefined;
2058
+ } | undefined;
2059
+ }>;
2060
+ export declare const FireworksRFTCreateRequestSchema: z.ZodObject<{
2061
+ dataset: z.ZodString;
2062
+ evaluator: z.ZodString;
2063
+ displayName: z.ZodOptional<z.ZodString>;
2064
+ trainingConfig: z.ZodOptional<z.ZodObject<{
2065
+ baseModel: z.ZodOptional<z.ZodString>;
2066
+ warmStartFrom: z.ZodOptional<z.ZodString>;
2067
+ outputModel: z.ZodOptional<z.ZodString>;
2068
+ learningRate: z.ZodOptional<z.ZodNumber>;
2069
+ epochs: z.ZodOptional<z.ZodNumber>;
2070
+ batchSize: z.ZodOptional<z.ZodNumber>;
2071
+ batchSizeSamples: z.ZodOptional<z.ZodNumber>;
2072
+ gradientAccumulationSteps: z.ZodOptional<z.ZodNumber>;
2073
+ learningRateWarmupSteps: z.ZodOptional<z.ZodNumber>;
2074
+ maxContextLength: z.ZodOptional<z.ZodNumber>;
2075
+ loraRank: z.ZodOptional<z.ZodNumber>;
2076
+ optimizerWeightDecay: z.ZodOptional<z.ZodNumber>;
2077
+ jinjaTemplate: z.ZodOptional<z.ZodString>;
2078
+ region: z.ZodOptional<z.ZodString>;
2079
+ }, "strip", z.ZodTypeAny, {
2080
+ baseModel?: string | undefined;
2081
+ warmStartFrom?: string | undefined;
2082
+ outputModel?: string | undefined;
2083
+ learningRate?: number | undefined;
2084
+ epochs?: number | undefined;
2085
+ batchSize?: number | undefined;
2086
+ batchSizeSamples?: number | undefined;
2087
+ gradientAccumulationSteps?: number | undefined;
2088
+ learningRateWarmupSteps?: number | undefined;
2089
+ maxContextLength?: number | undefined;
2090
+ loraRank?: number | undefined;
2091
+ optimizerWeightDecay?: number | undefined;
2092
+ jinjaTemplate?: string | undefined;
2093
+ region?: string | undefined;
2094
+ }, {
2095
+ baseModel?: string | undefined;
2096
+ warmStartFrom?: string | undefined;
2097
+ outputModel?: string | undefined;
2098
+ learningRate?: number | undefined;
2099
+ epochs?: number | undefined;
2100
+ batchSize?: number | undefined;
2101
+ batchSizeSamples?: number | undefined;
2102
+ gradientAccumulationSteps?: number | undefined;
2103
+ learningRateWarmupSteps?: number | undefined;
2104
+ maxContextLength?: number | undefined;
2105
+ loraRank?: number | undefined;
2106
+ optimizerWeightDecay?: number | undefined;
2107
+ jinjaTemplate?: string | undefined;
2108
+ region?: string | undefined;
2109
+ }>>;
2110
+ inferenceParams: z.ZodOptional<z.ZodObject<{
2111
+ maxTokens: z.ZodOptional<z.ZodNumber>;
2112
+ temperature: z.ZodOptional<z.ZodNumber>;
2113
+ topP: z.ZodOptional<z.ZodNumber>;
2114
+ topK: z.ZodOptional<z.ZodNumber>;
2115
+ }, "strip", z.ZodTypeAny, {
2116
+ temperature?: number | undefined;
2117
+ maxTokens?: number | undefined;
2118
+ topP?: number | undefined;
2119
+ topK?: number | undefined;
2120
+ }, {
2121
+ temperature?: number | undefined;
2122
+ maxTokens?: number | undefined;
2123
+ topP?: number | undefined;
2124
+ topK?: number | undefined;
2125
+ }>>;
2126
+ lossConfig: z.ZodOptional<z.ZodObject<{
2127
+ method: z.ZodOptional<z.ZodEnum<["METHOD_UNSPECIFIED", "GRPO", "DAPO", "DPO", "ORPO", "GSPO_TOKEN"]>>;
2128
+ klBeta: z.ZodOptional<z.ZodNumber>;
2129
+ }, "strip", z.ZodTypeAny, {
2130
+ method?: "METHOD_UNSPECIFIED" | "GRPO" | "DAPO" | "DPO" | "ORPO" | "GSPO_TOKEN" | undefined;
2131
+ klBeta?: number | undefined;
2132
+ }, {
2133
+ method?: "METHOD_UNSPECIFIED" | "GRPO" | "DAPO" | "DPO" | "ORPO" | "GSPO_TOKEN" | undefined;
2134
+ klBeta?: number | undefined;
2135
+ }>>;
2136
+ wandbConfig: z.ZodOptional<z.ZodObject<{
2137
+ enabled: z.ZodOptional<z.ZodBoolean>;
2138
+ apiKey: z.ZodOptional<z.ZodString>;
2139
+ project: z.ZodOptional<z.ZodString>;
2140
+ entity: z.ZodOptional<z.ZodString>;
2141
+ runId: z.ZodOptional<z.ZodString>;
2142
+ url: z.ZodOptional<z.ZodString>;
2143
+ }, "strip", z.ZodTypeAny, {
2144
+ url?: string | undefined;
2145
+ enabled?: boolean | undefined;
2146
+ apiKey?: string | undefined;
2147
+ project?: string | undefined;
2148
+ entity?: string | undefined;
2149
+ runId?: string | undefined;
2150
+ }, {
2151
+ url?: string | undefined;
2152
+ enabled?: boolean | undefined;
2153
+ apiKey?: string | undefined;
2154
+ project?: string | undefined;
2155
+ entity?: string | undefined;
2156
+ runId?: string | undefined;
2157
+ }>>;
2158
+ awsS3Config: z.ZodOptional<z.ZodObject<{
2159
+ credentialsSecret: z.ZodOptional<z.ZodString>;
2160
+ iamRoleArn: z.ZodOptional<z.ZodString>;
2161
+ }, "strip", z.ZodTypeAny, {
2162
+ credentialsSecret?: string | undefined;
2163
+ iamRoleArn?: string | undefined;
2164
+ }, {
2165
+ credentialsSecret?: string | undefined;
2166
+ iamRoleArn?: string | undefined;
2167
+ }>>;
2168
+ azureBlobStorageConfig: z.ZodOptional<z.ZodObject<{
2169
+ credentialsSecret: z.ZodOptional<z.ZodString>;
2170
+ managedIdentityClientId: z.ZodOptional<z.ZodString>;
2171
+ tenantId: z.ZodOptional<z.ZodString>;
2172
+ }, "strip", z.ZodTypeAny, {
2173
+ credentialsSecret?: string | undefined;
2174
+ managedIdentityClientId?: string | undefined;
2175
+ tenantId?: string | undefined;
2176
+ }, {
2177
+ credentialsSecret?: string | undefined;
2178
+ managedIdentityClientId?: string | undefined;
2179
+ tenantId?: string | undefined;
2180
+ }>>;
2181
+ reinforcementFineTuningJobId: z.ZodOptional<z.ZodString>;
2182
+ }, "strip", z.ZodTypeAny, {
2183
+ dataset: string;
2184
+ evaluator: string;
2185
+ displayName?: string | undefined;
2186
+ awsS3Config?: {
2187
+ credentialsSecret?: string | undefined;
2188
+ iamRoleArn?: string | undefined;
2189
+ } | undefined;
2190
+ azureBlobStorageConfig?: {
2191
+ credentialsSecret?: string | undefined;
2192
+ managedIdentityClientId?: string | undefined;
2193
+ tenantId?: string | undefined;
2194
+ } | undefined;
2195
+ wandbConfig?: {
2196
+ url?: string | undefined;
2197
+ enabled?: boolean | undefined;
2198
+ apiKey?: string | undefined;
2199
+ project?: string | undefined;
2200
+ entity?: string | undefined;
2201
+ runId?: string | undefined;
2202
+ } | undefined;
2203
+ trainingConfig?: {
2204
+ baseModel?: string | undefined;
2205
+ warmStartFrom?: string | undefined;
2206
+ outputModel?: string | undefined;
2207
+ learningRate?: number | undefined;
2208
+ epochs?: number | undefined;
2209
+ batchSize?: number | undefined;
2210
+ batchSizeSamples?: number | undefined;
2211
+ gradientAccumulationSteps?: number | undefined;
2212
+ learningRateWarmupSteps?: number | undefined;
2213
+ maxContextLength?: number | undefined;
2214
+ loraRank?: number | undefined;
2215
+ optimizerWeightDecay?: number | undefined;
2216
+ jinjaTemplate?: string | undefined;
2217
+ region?: string | undefined;
2218
+ } | undefined;
2219
+ lossConfig?: {
2220
+ method?: "METHOD_UNSPECIFIED" | "GRPO" | "DAPO" | "DPO" | "ORPO" | "GSPO_TOKEN" | undefined;
2221
+ klBeta?: number | undefined;
2222
+ } | undefined;
2223
+ inferenceParams?: {
2224
+ temperature?: number | undefined;
2225
+ maxTokens?: number | undefined;
2226
+ topP?: number | undefined;
2227
+ topK?: number | undefined;
2228
+ } | undefined;
2229
+ reinforcementFineTuningJobId?: string | undefined;
2230
+ }, {
2231
+ dataset: string;
2232
+ evaluator: string;
2233
+ displayName?: string | undefined;
2234
+ awsS3Config?: {
2235
+ credentialsSecret?: string | undefined;
2236
+ iamRoleArn?: string | undefined;
2237
+ } | undefined;
2238
+ azureBlobStorageConfig?: {
2239
+ credentialsSecret?: string | undefined;
2240
+ managedIdentityClientId?: string | undefined;
2241
+ tenantId?: string | undefined;
2242
+ } | undefined;
2243
+ wandbConfig?: {
2244
+ url?: string | undefined;
2245
+ enabled?: boolean | undefined;
2246
+ apiKey?: string | undefined;
2247
+ project?: string | undefined;
2248
+ entity?: string | undefined;
2249
+ runId?: string | undefined;
2250
+ } | undefined;
2251
+ trainingConfig?: {
2252
+ baseModel?: string | undefined;
2253
+ warmStartFrom?: string | undefined;
2254
+ outputModel?: string | undefined;
2255
+ learningRate?: number | undefined;
2256
+ epochs?: number | undefined;
2257
+ batchSize?: number | undefined;
2258
+ batchSizeSamples?: number | undefined;
2259
+ gradientAccumulationSteps?: number | undefined;
2260
+ learningRateWarmupSteps?: number | undefined;
2261
+ maxContextLength?: number | undefined;
2262
+ loraRank?: number | undefined;
2263
+ optimizerWeightDecay?: number | undefined;
2264
+ jinjaTemplate?: string | undefined;
2265
+ region?: string | undefined;
2266
+ } | undefined;
2267
+ lossConfig?: {
2268
+ method?: "METHOD_UNSPECIFIED" | "GRPO" | "DAPO" | "DPO" | "ORPO" | "GSPO_TOKEN" | undefined;
2269
+ klBeta?: number | undefined;
2270
+ } | undefined;
2271
+ inferenceParams?: {
2272
+ temperature?: number | undefined;
2273
+ maxTokens?: number | undefined;
2274
+ topP?: number | undefined;
2275
+ topK?: number | undefined;
2276
+ } | undefined;
2277
+ reinforcementFineTuningJobId?: string | undefined;
2278
+ }>;
2279
+ export declare const FireworksRlorRewardWeightSchema: z.ZodObject<{
2280
+ name: z.ZodOptional<z.ZodString>;
2281
+ weight: z.ZodOptional<z.ZodNumber>;
2282
+ }, "strip", z.ZodTypeAny, {
2283
+ name?: string | undefined;
2284
+ weight?: number | undefined;
2285
+ }, {
2286
+ name?: string | undefined;
2287
+ weight?: number | undefined;
2288
+ }>;
2289
+ export declare const FireworksRlorTrainerJobCreateRequestSchema: z.ZodObject<{
2290
+ dataset: z.ZodString;
2291
+ evaluator: z.ZodString;
2292
+ displayName: z.ZodOptional<z.ZodString>;
2293
+ trainingConfig: z.ZodOptional<z.ZodObject<{
2294
+ baseModel: z.ZodOptional<z.ZodString>;
2295
+ warmStartFrom: z.ZodOptional<z.ZodString>;
2296
+ outputModel: z.ZodOptional<z.ZodString>;
2297
+ learningRate: z.ZodOptional<z.ZodNumber>;
2298
+ epochs: z.ZodOptional<z.ZodNumber>;
2299
+ batchSize: z.ZodOptional<z.ZodNumber>;
2300
+ batchSizeSamples: z.ZodOptional<z.ZodNumber>;
2301
+ gradientAccumulationSteps: z.ZodOptional<z.ZodNumber>;
2302
+ learningRateWarmupSteps: z.ZodOptional<z.ZodNumber>;
2303
+ maxContextLength: z.ZodOptional<z.ZodNumber>;
2304
+ loraRank: z.ZodOptional<z.ZodNumber>;
2305
+ optimizerWeightDecay: z.ZodOptional<z.ZodNumber>;
2306
+ jinjaTemplate: z.ZodOptional<z.ZodString>;
2307
+ region: z.ZodOptional<z.ZodString>;
2308
+ }, "strip", z.ZodTypeAny, {
2309
+ baseModel?: string | undefined;
2310
+ warmStartFrom?: string | undefined;
2311
+ outputModel?: string | undefined;
2312
+ learningRate?: number | undefined;
2313
+ epochs?: number | undefined;
2314
+ batchSize?: number | undefined;
2315
+ batchSizeSamples?: number | undefined;
2316
+ gradientAccumulationSteps?: number | undefined;
2317
+ learningRateWarmupSteps?: number | undefined;
2318
+ maxContextLength?: number | undefined;
2319
+ loraRank?: number | undefined;
2320
+ optimizerWeightDecay?: number | undefined;
2321
+ jinjaTemplate?: string | undefined;
2322
+ region?: string | undefined;
2323
+ }, {
2324
+ baseModel?: string | undefined;
2325
+ warmStartFrom?: string | undefined;
2326
+ outputModel?: string | undefined;
2327
+ learningRate?: number | undefined;
2328
+ epochs?: number | undefined;
2329
+ batchSize?: number | undefined;
2330
+ batchSizeSamples?: number | undefined;
2331
+ gradientAccumulationSteps?: number | undefined;
2332
+ learningRateWarmupSteps?: number | undefined;
2333
+ maxContextLength?: number | undefined;
2334
+ loraRank?: number | undefined;
2335
+ optimizerWeightDecay?: number | undefined;
2336
+ jinjaTemplate?: string | undefined;
2337
+ region?: string | undefined;
2338
+ }>>;
2339
+ inferenceParams: z.ZodOptional<z.ZodObject<{
2340
+ maxTokens: z.ZodOptional<z.ZodNumber>;
2341
+ temperature: z.ZodOptional<z.ZodNumber>;
2342
+ topP: z.ZodOptional<z.ZodNumber>;
2343
+ topK: z.ZodOptional<z.ZodNumber>;
2344
+ }, "strip", z.ZodTypeAny, {
2345
+ temperature?: number | undefined;
2346
+ maxTokens?: number | undefined;
2347
+ topP?: number | undefined;
2348
+ topK?: number | undefined;
2349
+ }, {
2350
+ temperature?: number | undefined;
2351
+ maxTokens?: number | undefined;
2352
+ topP?: number | undefined;
2353
+ topK?: number | undefined;
2354
+ }>>;
2355
+ lossConfig: z.ZodOptional<z.ZodObject<{
2356
+ method: z.ZodOptional<z.ZodEnum<["METHOD_UNSPECIFIED", "GRPO", "DAPO", "DPO", "ORPO", "GSPO_TOKEN"]>>;
2357
+ klBeta: z.ZodOptional<z.ZodNumber>;
2358
+ }, "strip", z.ZodTypeAny, {
2359
+ method?: "METHOD_UNSPECIFIED" | "GRPO" | "DAPO" | "DPO" | "ORPO" | "GSPO_TOKEN" | undefined;
2360
+ klBeta?: number | undefined;
2361
+ }, {
2362
+ method?: "METHOD_UNSPECIFIED" | "GRPO" | "DAPO" | "DPO" | "ORPO" | "GSPO_TOKEN" | undefined;
2363
+ klBeta?: number | undefined;
2364
+ }>>;
2365
+ rewardWeights: z.ZodOptional<z.ZodArray<z.ZodObject<{
2366
+ name: z.ZodOptional<z.ZodString>;
2367
+ weight: z.ZodOptional<z.ZodNumber>;
2368
+ }, "strip", z.ZodTypeAny, {
2369
+ name?: string | undefined;
2370
+ weight?: number | undefined;
2371
+ }, {
2372
+ name?: string | undefined;
2373
+ weight?: number | undefined;
2374
+ }>, "many">>;
2375
+ wandbConfig: z.ZodOptional<z.ZodObject<{
2376
+ enabled: z.ZodOptional<z.ZodBoolean>;
2377
+ apiKey: z.ZodOptional<z.ZodString>;
2378
+ project: z.ZodOptional<z.ZodString>;
2379
+ entity: z.ZodOptional<z.ZodString>;
2380
+ runId: z.ZodOptional<z.ZodString>;
2381
+ url: z.ZodOptional<z.ZodString>;
2382
+ }, "strip", z.ZodTypeAny, {
2383
+ url?: string | undefined;
2384
+ enabled?: boolean | undefined;
2385
+ apiKey?: string | undefined;
2386
+ project?: string | undefined;
2387
+ entity?: string | undefined;
2388
+ runId?: string | undefined;
2389
+ }, {
2390
+ url?: string | undefined;
2391
+ enabled?: boolean | undefined;
2392
+ apiKey?: string | undefined;
2393
+ project?: string | undefined;
2394
+ entity?: string | undefined;
2395
+ runId?: string | undefined;
2396
+ }>>;
2397
+ awsS3Config: z.ZodOptional<z.ZodObject<{
2398
+ credentialsSecret: z.ZodOptional<z.ZodString>;
2399
+ iamRoleArn: z.ZodOptional<z.ZodString>;
2400
+ }, "strip", z.ZodTypeAny, {
2401
+ credentialsSecret?: string | undefined;
2402
+ iamRoleArn?: string | undefined;
2403
+ }, {
2404
+ credentialsSecret?: string | undefined;
2405
+ iamRoleArn?: string | undefined;
2406
+ }>>;
2407
+ azureBlobStorageConfig: z.ZodOptional<z.ZodObject<{
2408
+ credentialsSecret: z.ZodOptional<z.ZodString>;
2409
+ managedIdentityClientId: z.ZodOptional<z.ZodString>;
2410
+ tenantId: z.ZodOptional<z.ZodString>;
2411
+ }, "strip", z.ZodTypeAny, {
2412
+ credentialsSecret?: string | undefined;
2413
+ managedIdentityClientId?: string | undefined;
2414
+ tenantId?: string | undefined;
2415
+ }, {
2416
+ credentialsSecret?: string | undefined;
2417
+ managedIdentityClientId?: string | undefined;
2418
+ tenantId?: string | undefined;
2419
+ }>>;
2420
+ }, "strip", z.ZodTypeAny, {
2421
+ dataset: string;
2422
+ evaluator: string;
2423
+ displayName?: string | undefined;
2424
+ awsS3Config?: {
2425
+ credentialsSecret?: string | undefined;
2426
+ iamRoleArn?: string | undefined;
2427
+ } | undefined;
2428
+ azureBlobStorageConfig?: {
2429
+ credentialsSecret?: string | undefined;
2430
+ managedIdentityClientId?: string | undefined;
2431
+ tenantId?: string | undefined;
2432
+ } | undefined;
2433
+ wandbConfig?: {
2434
+ url?: string | undefined;
2435
+ enabled?: boolean | undefined;
2436
+ apiKey?: string | undefined;
2437
+ project?: string | undefined;
2438
+ entity?: string | undefined;
2439
+ runId?: string | undefined;
2440
+ } | undefined;
2441
+ trainingConfig?: {
2442
+ baseModel?: string | undefined;
2443
+ warmStartFrom?: string | undefined;
2444
+ outputModel?: string | undefined;
2445
+ learningRate?: number | undefined;
2446
+ epochs?: number | undefined;
2447
+ batchSize?: number | undefined;
2448
+ batchSizeSamples?: number | undefined;
2449
+ gradientAccumulationSteps?: number | undefined;
2450
+ learningRateWarmupSteps?: number | undefined;
2451
+ maxContextLength?: number | undefined;
2452
+ loraRank?: number | undefined;
2453
+ optimizerWeightDecay?: number | undefined;
2454
+ jinjaTemplate?: string | undefined;
2455
+ region?: string | undefined;
2456
+ } | undefined;
2457
+ lossConfig?: {
2458
+ method?: "METHOD_UNSPECIFIED" | "GRPO" | "DAPO" | "DPO" | "ORPO" | "GSPO_TOKEN" | undefined;
2459
+ klBeta?: number | undefined;
2460
+ } | undefined;
2461
+ inferenceParams?: {
2462
+ temperature?: number | undefined;
2463
+ maxTokens?: number | undefined;
2464
+ topP?: number | undefined;
2465
+ topK?: number | undefined;
2466
+ } | undefined;
2467
+ rewardWeights?: {
2468
+ name?: string | undefined;
2469
+ weight?: number | undefined;
2470
+ }[] | undefined;
2471
+ }, {
2472
+ dataset: string;
2473
+ evaluator: string;
2474
+ displayName?: string | undefined;
2475
+ awsS3Config?: {
2476
+ credentialsSecret?: string | undefined;
2477
+ iamRoleArn?: string | undefined;
2478
+ } | undefined;
2479
+ azureBlobStorageConfig?: {
2480
+ credentialsSecret?: string | undefined;
2481
+ managedIdentityClientId?: string | undefined;
2482
+ tenantId?: string | undefined;
2483
+ } | undefined;
2484
+ wandbConfig?: {
2485
+ url?: string | undefined;
2486
+ enabled?: boolean | undefined;
2487
+ apiKey?: string | undefined;
2488
+ project?: string | undefined;
2489
+ entity?: string | undefined;
2490
+ runId?: string | undefined;
2491
+ } | undefined;
2492
+ trainingConfig?: {
2493
+ baseModel?: string | undefined;
2494
+ warmStartFrom?: string | undefined;
2495
+ outputModel?: string | undefined;
2496
+ learningRate?: number | undefined;
2497
+ epochs?: number | undefined;
2498
+ batchSize?: number | undefined;
2499
+ batchSizeSamples?: number | undefined;
2500
+ gradientAccumulationSteps?: number | undefined;
2501
+ learningRateWarmupSteps?: number | undefined;
2502
+ maxContextLength?: number | undefined;
2503
+ loraRank?: number | undefined;
2504
+ optimizerWeightDecay?: number | undefined;
2505
+ jinjaTemplate?: string | undefined;
2506
+ region?: string | undefined;
2507
+ } | undefined;
2508
+ lossConfig?: {
2509
+ method?: "METHOD_UNSPECIFIED" | "GRPO" | "DAPO" | "DPO" | "ORPO" | "GSPO_TOKEN" | undefined;
2510
+ klBeta?: number | undefined;
2511
+ } | undefined;
2512
+ inferenceParams?: {
2513
+ temperature?: number | undefined;
2514
+ maxTokens?: number | undefined;
2515
+ topP?: number | undefined;
2516
+ topK?: number | undefined;
2517
+ } | undefined;
2518
+ rewardWeights?: {
2519
+ name?: string | undefined;
2520
+ weight?: number | undefined;
2521
+ }[] | undefined;
2522
+ }>;
2523
+ export declare const FireworksRlorTrainerJobExecuteStepRequestSchema: z.ZodObject<{
2524
+ dataset: z.ZodString;
2525
+ outputModel: z.ZodString;
2526
+ }, "strip", z.ZodTypeAny, {
2527
+ outputModel: string;
2528
+ dataset: string;
2529
+ }, {
2530
+ outputModel: string;
2531
+ dataset: string;
2532
+ }>;
2533
+ export declare const FireworksCreateDeploymentRequestSchema: z.ZodObject<{
2534
+ baseModel: z.ZodString;
2535
+ displayName: z.ZodOptional<z.ZodString>;
2536
+ description: z.ZodOptional<z.ZodString>;
2537
+ minReplicaCount: z.ZodOptional<z.ZodNumber>;
2538
+ maxReplicaCount: z.ZodOptional<z.ZodNumber>;
2539
+ acceleratorCount: z.ZodOptional<z.ZodNumber>;
2540
+ acceleratorType: z.ZodOptional<z.ZodEnum<["ACCELERATOR_TYPE_UNSPECIFIED", "NVIDIA_A100_80GB", "NVIDIA_H100_80GB", "AMD_MI300X_192GB", "NVIDIA_A10G_24GB", "NVIDIA_A100_40GB", "NVIDIA_L4_24GB", "NVIDIA_H200_141GB", "NVIDIA_B200_180GB", "AMD_MI325X_256GB", "AMD_MI350X_288GB"]>>;
2541
+ precision: z.ZodOptional<z.ZodEnum<["PRECISION_UNSPECIFIED", "FP16", "FP8", "FP8_MM", "BF16", "NF4", "FP4"]>>;
2542
+ enableAddons: z.ZodOptional<z.ZodBoolean>;
2543
+ draftTokenCount: z.ZodOptional<z.ZodNumber>;
2544
+ draftModel: z.ZodOptional<z.ZodString>;
2545
+ maxContextLength: z.ZodOptional<z.ZodNumber>;
2546
+ deploymentShape: z.ZodOptional<z.ZodString>;
2547
+ }, "strip", z.ZodTypeAny, {
2548
+ baseModel: string;
2549
+ description?: string | undefined;
2550
+ displayName?: string | undefined;
2551
+ precision?: "PRECISION_UNSPECIFIED" | "FP16" | "FP8" | "FP8_MM" | "BF16" | "NF4" | "FP4" | undefined;
2552
+ maxContextLength?: number | undefined;
2553
+ minReplicaCount?: number | undefined;
2554
+ maxReplicaCount?: number | undefined;
2555
+ acceleratorCount?: number | undefined;
2556
+ acceleratorType?: "ACCELERATOR_TYPE_UNSPECIFIED" | "NVIDIA_A100_80GB" | "NVIDIA_H100_80GB" | "AMD_MI300X_192GB" | "NVIDIA_A10G_24GB" | "NVIDIA_A100_40GB" | "NVIDIA_L4_24GB" | "NVIDIA_H200_141GB" | "NVIDIA_B200_180GB" | "AMD_MI325X_256GB" | "AMD_MI350X_288GB" | undefined;
2557
+ enableAddons?: boolean | undefined;
2558
+ draftTokenCount?: number | undefined;
2559
+ draftModel?: string | undefined;
2560
+ deploymentShape?: string | undefined;
2561
+ }, {
2562
+ baseModel: string;
2563
+ description?: string | undefined;
2564
+ displayName?: string | undefined;
2565
+ precision?: "PRECISION_UNSPECIFIED" | "FP16" | "FP8" | "FP8_MM" | "BF16" | "NF4" | "FP4" | undefined;
2566
+ maxContextLength?: number | undefined;
2567
+ minReplicaCount?: number | undefined;
2568
+ maxReplicaCount?: number | undefined;
2569
+ acceleratorCount?: number | undefined;
2570
+ acceleratorType?: "ACCELERATOR_TYPE_UNSPECIFIED" | "NVIDIA_A100_80GB" | "NVIDIA_H100_80GB" | "AMD_MI300X_192GB" | "NVIDIA_A10G_24GB" | "NVIDIA_A100_40GB" | "NVIDIA_L4_24GB" | "NVIDIA_H200_141GB" | "NVIDIA_B200_180GB" | "AMD_MI325X_256GB" | "AMD_MI350X_288GB" | undefined;
2571
+ enableAddons?: boolean | undefined;
2572
+ draftTokenCount?: number | undefined;
2573
+ draftModel?: string | undefined;
2574
+ deploymentShape?: string | undefined;
2575
+ }>;
2576
+ export declare const FireworksUpdateDeploymentRequestSchema: z.ZodObject<{
2577
+ baseModel: z.ZodOptional<z.ZodString>;
2578
+ displayName: z.ZodOptional<z.ZodString>;
2579
+ description: z.ZodOptional<z.ZodString>;
2580
+ minReplicaCount: z.ZodOptional<z.ZodNumber>;
2581
+ maxReplicaCount: z.ZodOptional<z.ZodNumber>;
2582
+ acceleratorCount: z.ZodOptional<z.ZodNumber>;
2583
+ acceleratorType: z.ZodOptional<z.ZodEnum<["ACCELERATOR_TYPE_UNSPECIFIED", "NVIDIA_A100_80GB", "NVIDIA_H100_80GB", "AMD_MI300X_192GB", "NVIDIA_A10G_24GB", "NVIDIA_A100_40GB", "NVIDIA_L4_24GB", "NVIDIA_H200_141GB", "NVIDIA_B200_180GB", "AMD_MI325X_256GB", "AMD_MI350X_288GB"]>>;
2584
+ precision: z.ZodOptional<z.ZodEnum<["PRECISION_UNSPECIFIED", "FP16", "FP8", "FP8_MM", "BF16", "NF4", "FP4"]>>;
2585
+ enableAddons: z.ZodOptional<z.ZodBoolean>;
2586
+ maxContextLength: z.ZodOptional<z.ZodNumber>;
2587
+ deploymentShape: z.ZodOptional<z.ZodString>;
2588
+ }, "strip", z.ZodTypeAny, {
2589
+ description?: string | undefined;
2590
+ displayName?: string | undefined;
2591
+ precision?: "PRECISION_UNSPECIFIED" | "FP16" | "FP8" | "FP8_MM" | "BF16" | "NF4" | "FP4" | undefined;
2592
+ baseModel?: string | undefined;
2593
+ maxContextLength?: number | undefined;
2594
+ minReplicaCount?: number | undefined;
2595
+ maxReplicaCount?: number | undefined;
2596
+ acceleratorCount?: number | undefined;
2597
+ acceleratorType?: "ACCELERATOR_TYPE_UNSPECIFIED" | "NVIDIA_A100_80GB" | "NVIDIA_H100_80GB" | "AMD_MI300X_192GB" | "NVIDIA_A10G_24GB" | "NVIDIA_A100_40GB" | "NVIDIA_L4_24GB" | "NVIDIA_H200_141GB" | "NVIDIA_B200_180GB" | "AMD_MI325X_256GB" | "AMD_MI350X_288GB" | undefined;
2598
+ enableAddons?: boolean | undefined;
2599
+ deploymentShape?: string | undefined;
2600
+ }, {
2601
+ description?: string | undefined;
2602
+ displayName?: string | undefined;
2603
+ precision?: "PRECISION_UNSPECIFIED" | "FP16" | "FP8" | "FP8_MM" | "BF16" | "NF4" | "FP4" | undefined;
2604
+ baseModel?: string | undefined;
2605
+ maxContextLength?: number | undefined;
2606
+ minReplicaCount?: number | undefined;
2607
+ maxReplicaCount?: number | undefined;
2608
+ acceleratorCount?: number | undefined;
2609
+ acceleratorType?: "ACCELERATOR_TYPE_UNSPECIFIED" | "NVIDIA_A100_80GB" | "NVIDIA_H100_80GB" | "AMD_MI300X_192GB" | "NVIDIA_A10G_24GB" | "NVIDIA_A100_40GB" | "NVIDIA_L4_24GB" | "NVIDIA_H200_141GB" | "NVIDIA_B200_180GB" | "AMD_MI325X_256GB" | "AMD_MI350X_288GB" | undefined;
2610
+ enableAddons?: boolean | undefined;
2611
+ deploymentShape?: string | undefined;
2612
+ }>;
2613
+ export declare const FireworksScaleDeploymentRequestSchema: z.ZodObject<{
2614
+ replicaCount: z.ZodNumber;
2615
+ }, "strip", z.ZodTypeAny, {
2616
+ replicaCount: number;
2617
+ }, {
2618
+ replicaCount: number;
2619
+ }>;
2620
+ export declare const FireworksCreateDeployedModelRequestSchema: z.ZodObject<{
2621
+ model: z.ZodString;
2622
+ deployment: z.ZodString;
2623
+ displayName: z.ZodOptional<z.ZodString>;
2624
+ description: z.ZodOptional<z.ZodString>;
2625
+ default: z.ZodOptional<z.ZodBoolean>;
2626
+ serverless: z.ZodOptional<z.ZodBoolean>;
2627
+ public: z.ZodOptional<z.ZodBoolean>;
2628
+ }, "strip", z.ZodTypeAny, {
2629
+ model: string;
2630
+ deployment: string;
2631
+ description?: string | undefined;
2632
+ displayName?: string | undefined;
2633
+ public?: boolean | undefined;
2634
+ default?: boolean | undefined;
2635
+ serverless?: boolean | undefined;
2636
+ }, {
2637
+ model: string;
2638
+ deployment: string;
2639
+ description?: string | undefined;
2640
+ displayName?: string | undefined;
2641
+ public?: boolean | undefined;
2642
+ default?: boolean | undefined;
2643
+ serverless?: boolean | undefined;
2644
+ }>;
2645
+ export declare const FireworksUpdateDeployedModelRequestSchema: z.ZodObject<{
2646
+ displayName: z.ZodOptional<z.ZodString>;
2647
+ description: z.ZodOptional<z.ZodString>;
2648
+ model: z.ZodOptional<z.ZodString>;
2649
+ deployment: z.ZodOptional<z.ZodString>;
2650
+ default: z.ZodOptional<z.ZodBoolean>;
2651
+ serverless: z.ZodOptional<z.ZodBoolean>;
2652
+ public: z.ZodOptional<z.ZodBoolean>;
2653
+ }, "strip", z.ZodTypeAny, {
2654
+ description?: string | undefined;
2655
+ model?: string | undefined;
2656
+ displayName?: string | undefined;
2657
+ public?: boolean | undefined;
2658
+ deployment?: string | undefined;
2659
+ default?: boolean | undefined;
2660
+ serverless?: boolean | undefined;
2661
+ }, {
2662
+ description?: string | undefined;
2663
+ model?: string | undefined;
2664
+ displayName?: string | undefined;
2665
+ public?: boolean | undefined;
2666
+ deployment?: string | undefined;
2667
+ default?: boolean | undefined;
2668
+ serverless?: boolean | undefined;
2669
+ }>;
2670
+ export declare const FireworksCreateDatasetRequestSchema: z.ZodObject<{
2671
+ dataset: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2672
+ datasetId: z.ZodString;
2673
+ sourceDatasetId: z.ZodOptional<z.ZodString>;
2674
+ filter: z.ZodOptional<z.ZodString>;
2675
+ }, "strip", z.ZodTypeAny, {
2676
+ dataset: Record<string, unknown>;
2677
+ datasetId: string;
2678
+ filter?: string | undefined;
2679
+ sourceDatasetId?: string | undefined;
2680
+ }, {
2681
+ dataset: Record<string, unknown>;
2682
+ datasetId: string;
2683
+ filter?: string | undefined;
2684
+ sourceDatasetId?: string | undefined;
2685
+ }>;
2686
+ export declare const FireworksUpdateDatasetRequestSchema: z.ZodObject<{
2687
+ displayName: z.ZodOptional<z.ZodString>;
2688
+ exampleCount: z.ZodOptional<z.ZodNumber>;
2689
+ externalUrl: z.ZodOptional<z.ZodString>;
2690
+ format: z.ZodOptional<z.ZodEnum<["FORMAT_UNSPECIFIED", "CHAT", "COMPLETION", "RL"]>>;
2691
+ sourceJobName: z.ZodOptional<z.ZodString>;
2692
+ }, "strip", z.ZodTypeAny, {
2693
+ displayName?: string | undefined;
2694
+ exampleCount?: number | undefined;
2695
+ externalUrl?: string | undefined;
2696
+ format?: "FORMAT_UNSPECIFIED" | "CHAT" | "COMPLETION" | "RL" | undefined;
2697
+ sourceJobName?: string | undefined;
2698
+ }, {
2699
+ displayName?: string | undefined;
2700
+ exampleCount?: number | undefined;
2701
+ externalUrl?: string | undefined;
2702
+ format?: "FORMAT_UNSPECIFIED" | "CHAT" | "COMPLETION" | "RL" | undefined;
2703
+ sourceJobName?: string | undefined;
2704
+ }>;
2705
+ export declare const FireworksDatasetGetUploadEndpointRequestSchema: z.ZodObject<{
2706
+ filenameToSize: z.ZodRecord<z.ZodString, z.ZodNumber>;
2707
+ readMask: z.ZodOptional<z.ZodString>;
2708
+ }, "strip", z.ZodTypeAny, {
2709
+ filenameToSize: Record<string, number>;
2710
+ readMask?: string | undefined;
2711
+ }, {
2712
+ filenameToSize: Record<string, number>;
2713
+ readMask?: string | undefined;
2714
+ }>;
2715
+ export declare const FireworksDatasetValidateUploadRequestSchema: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
2716
+ export declare const FireworksCreateUserRequestSchema: z.ZodObject<{
2717
+ role: z.ZodEnum<["admin", "user", "contributor", "inference-user"]>;
2718
+ displayName: z.ZodOptional<z.ZodString>;
2719
+ email: z.ZodOptional<z.ZodString>;
2720
+ serviceAccount: z.ZodOptional<z.ZodBoolean>;
2721
+ }, "strip", z.ZodTypeAny, {
2722
+ role: "user" | "admin" | "contributor" | "inference-user";
2723
+ displayName?: string | undefined;
2724
+ email?: string | undefined;
2725
+ serviceAccount?: boolean | undefined;
2726
+ }, {
2727
+ role: "user" | "admin" | "contributor" | "inference-user";
2728
+ displayName?: string | undefined;
2729
+ email?: string | undefined;
2730
+ serviceAccount?: boolean | undefined;
2731
+ }>;
2732
+ export declare const FireworksUpdateUserRequestSchema: z.ZodObject<{
2733
+ role: z.ZodEnum<["admin", "user", "contributor", "inference-user"]>;
2734
+ displayName: z.ZodOptional<z.ZodString>;
2735
+ email: z.ZodOptional<z.ZodString>;
2736
+ serviceAccount: z.ZodOptional<z.ZodBoolean>;
2737
+ }, "strip", z.ZodTypeAny, {
2738
+ role: "user" | "admin" | "contributor" | "inference-user";
2739
+ displayName?: string | undefined;
2740
+ email?: string | undefined;
2741
+ serviceAccount?: boolean | undefined;
2742
+ }, {
2743
+ role: "user" | "admin" | "contributor" | "inference-user";
2744
+ displayName?: string | undefined;
2745
+ email?: string | undefined;
2746
+ serviceAccount?: boolean | undefined;
2747
+ }>;
2748
+ export declare const FireworksCreateApiKeyRequestSchema: z.ZodObject<{
2749
+ apiKey: z.ZodObject<{
2750
+ displayName: z.ZodOptional<z.ZodString>;
2751
+ expireTime: z.ZodOptional<z.ZodString>;
2752
+ }, "strip", z.ZodTypeAny, {
2753
+ displayName?: string | undefined;
2754
+ expireTime?: string | undefined;
2755
+ }, {
2756
+ displayName?: string | undefined;
2757
+ expireTime?: string | undefined;
2758
+ }>;
2759
+ }, "strip", z.ZodTypeAny, {
2760
+ apiKey: {
2761
+ displayName?: string | undefined;
2762
+ expireTime?: string | undefined;
2763
+ };
2764
+ }, {
2765
+ apiKey: {
2766
+ displayName?: string | undefined;
2767
+ expireTime?: string | undefined;
2768
+ };
2769
+ }>;
2770
+ export declare const FireworksDeleteApiKeyRequestSchema: z.ZodObject<{
2771
+ keyId: z.ZodString;
2772
+ }, "strip", z.ZodTypeAny, {
2773
+ keyId: string;
2774
+ }, {
2775
+ keyId: string;
2776
+ }>;
2777
+ export declare const FireworksCreateSecretRequestSchema: z.ZodObject<{
2778
+ keyName: z.ZodString;
2779
+ value: z.ZodString;
2780
+ name: z.ZodOptional<z.ZodString>;
2781
+ }, "strip", z.ZodTypeAny, {
2782
+ value: string;
2783
+ keyName: string;
2784
+ name?: string | undefined;
2785
+ }, {
2786
+ value: string;
2787
+ keyName: string;
2788
+ name?: string | undefined;
2789
+ }>;
2790
+ export declare const FireworksUpdateSecretRequestSchema: z.ZodObject<{
2791
+ keyName: z.ZodString;
2792
+ value: z.ZodOptional<z.ZodString>;
2793
+ }, "strip", z.ZodTypeAny, {
2794
+ keyName: string;
2795
+ value?: string | undefined;
2796
+ }, {
2797
+ keyName: string;
2798
+ value?: string | undefined;
2799
+ }>;
2800
+ export declare const FireworksCriterionSchema: z.ZodObject<{
2801
+ type: z.ZodOptional<z.ZodEnum<["TYPE_UNSPECIFIED", "CODE_SNIPPETS"]>>;
2802
+ name: z.ZodOptional<z.ZodString>;
2803
+ description: z.ZodOptional<z.ZodString>;
2804
+ codeSnippets: z.ZodOptional<z.ZodObject<{
2805
+ language: z.ZodOptional<z.ZodString>;
2806
+ fileContents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2807
+ entryFile: z.ZodOptional<z.ZodString>;
2808
+ entryFunc: z.ZodOptional<z.ZodString>;
2809
+ }, "strip", z.ZodTypeAny, {
2810
+ language?: string | undefined;
2811
+ fileContents?: Record<string, string> | undefined;
2812
+ entryFile?: string | undefined;
2813
+ entryFunc?: string | undefined;
2814
+ }, {
2815
+ language?: string | undefined;
2816
+ fileContents?: Record<string, string> | undefined;
2817
+ entryFile?: string | undefined;
2818
+ entryFunc?: string | undefined;
2819
+ }>>;
2820
+ }, "strip", z.ZodTypeAny, {
2821
+ type?: "TYPE_UNSPECIFIED" | "CODE_SNIPPETS" | undefined;
2822
+ name?: string | undefined;
2823
+ description?: string | undefined;
2824
+ codeSnippets?: {
2825
+ language?: string | undefined;
2826
+ fileContents?: Record<string, string> | undefined;
2827
+ entryFile?: string | undefined;
2828
+ entryFunc?: string | undefined;
2829
+ } | undefined;
2830
+ }, {
2831
+ type?: "TYPE_UNSPECIFIED" | "CODE_SNIPPETS" | undefined;
2832
+ name?: string | undefined;
2833
+ description?: string | undefined;
2834
+ codeSnippets?: {
2835
+ language?: string | undefined;
2836
+ fileContents?: Record<string, string> | undefined;
2837
+ entryFile?: string | undefined;
2838
+ entryFunc?: string | undefined;
2839
+ } | undefined;
2840
+ }>;
2841
+ export declare const FireworksEvaluatorSourceSchema: z.ZodObject<{
2842
+ type: z.ZodOptional<z.ZodEnum<["TYPE_UNSPECIFIED", "TYPE_UPLOAD", "TYPE_GITHUB", "TYPE_TEMPORARY"]>>;
2843
+ githubRepositoryName: z.ZodOptional<z.ZodString>;
2844
+ }, "strip", z.ZodTypeAny, {
2845
+ type?: "TYPE_UNSPECIFIED" | "TYPE_UPLOAD" | "TYPE_GITHUB" | "TYPE_TEMPORARY" | undefined;
2846
+ githubRepositoryName?: string | undefined;
2847
+ }, {
2848
+ type?: "TYPE_UNSPECIFIED" | "TYPE_UPLOAD" | "TYPE_GITHUB" | "TYPE_TEMPORARY" | undefined;
2849
+ githubRepositoryName?: string | undefined;
2850
+ }>;
2851
+ export declare const FireworksCreateEvaluatorRequestSchema: z.ZodObject<{
2852
+ evaluatorId: z.ZodOptional<z.ZodString>;
2853
+ evaluator: z.ZodObject<{
2854
+ displayName: z.ZodOptional<z.ZodString>;
2855
+ description: z.ZodOptional<z.ZodString>;
2856
+ requirements: z.ZodOptional<z.ZodString>;
2857
+ entryPoint: z.ZodOptional<z.ZodString>;
2858
+ commitHash: z.ZodOptional<z.ZodString>;
2859
+ defaultDataset: z.ZodOptional<z.ZodString>;
2860
+ criteria: z.ZodOptional<z.ZodArray<z.ZodObject<{
2861
+ type: z.ZodOptional<z.ZodEnum<["TYPE_UNSPECIFIED", "CODE_SNIPPETS"]>>;
2862
+ name: z.ZodOptional<z.ZodString>;
2863
+ description: z.ZodOptional<z.ZodString>;
2864
+ codeSnippets: z.ZodOptional<z.ZodObject<{
2865
+ language: z.ZodOptional<z.ZodString>;
2866
+ fileContents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2867
+ entryFile: z.ZodOptional<z.ZodString>;
2868
+ entryFunc: z.ZodOptional<z.ZodString>;
2869
+ }, "strip", z.ZodTypeAny, {
2870
+ language?: string | undefined;
2871
+ fileContents?: Record<string, string> | undefined;
2872
+ entryFile?: string | undefined;
2873
+ entryFunc?: string | undefined;
2874
+ }, {
2875
+ language?: string | undefined;
2876
+ fileContents?: Record<string, string> | undefined;
2877
+ entryFile?: string | undefined;
2878
+ entryFunc?: string | undefined;
2879
+ }>>;
2880
+ }, "strip", z.ZodTypeAny, {
2881
+ type?: "TYPE_UNSPECIFIED" | "CODE_SNIPPETS" | undefined;
2882
+ name?: string | undefined;
2883
+ description?: string | undefined;
2884
+ codeSnippets?: {
2885
+ language?: string | undefined;
2886
+ fileContents?: Record<string, string> | undefined;
2887
+ entryFile?: string | undefined;
2888
+ entryFunc?: string | undefined;
2889
+ } | undefined;
2890
+ }, {
2891
+ type?: "TYPE_UNSPECIFIED" | "CODE_SNIPPETS" | undefined;
2892
+ name?: string | undefined;
2893
+ description?: string | undefined;
2894
+ codeSnippets?: {
2895
+ language?: string | undefined;
2896
+ fileContents?: Record<string, string> | undefined;
2897
+ entryFile?: string | undefined;
2898
+ entryFunc?: string | undefined;
2899
+ } | undefined;
2900
+ }>, "many">>;
2901
+ source: z.ZodOptional<z.ZodObject<{
2902
+ type: z.ZodOptional<z.ZodEnum<["TYPE_UNSPECIFIED", "TYPE_UPLOAD", "TYPE_GITHUB", "TYPE_TEMPORARY"]>>;
2903
+ githubRepositoryName: z.ZodOptional<z.ZodString>;
2904
+ }, "strip", z.ZodTypeAny, {
2905
+ type?: "TYPE_UNSPECIFIED" | "TYPE_UPLOAD" | "TYPE_GITHUB" | "TYPE_TEMPORARY" | undefined;
2906
+ githubRepositoryName?: string | undefined;
2907
+ }, {
2908
+ type?: "TYPE_UNSPECIFIED" | "TYPE_UPLOAD" | "TYPE_GITHUB" | "TYPE_TEMPORARY" | undefined;
2909
+ githubRepositoryName?: string | undefined;
2910
+ }>>;
2911
+ }, "strip", z.ZodTypeAny, {
2912
+ description?: string | undefined;
2913
+ source?: {
2914
+ type?: "TYPE_UNSPECIFIED" | "TYPE_UPLOAD" | "TYPE_GITHUB" | "TYPE_TEMPORARY" | undefined;
2915
+ githubRepositoryName?: string | undefined;
2916
+ } | undefined;
2917
+ displayName?: string | undefined;
2918
+ requirements?: string | undefined;
2919
+ entryPoint?: string | undefined;
2920
+ commitHash?: string | undefined;
2921
+ defaultDataset?: string | undefined;
2922
+ criteria?: {
2923
+ type?: "TYPE_UNSPECIFIED" | "CODE_SNIPPETS" | undefined;
2924
+ name?: string | undefined;
2925
+ description?: string | undefined;
2926
+ codeSnippets?: {
2927
+ language?: string | undefined;
2928
+ fileContents?: Record<string, string> | undefined;
2929
+ entryFile?: string | undefined;
2930
+ entryFunc?: string | undefined;
2931
+ } | undefined;
2932
+ }[] | undefined;
2933
+ }, {
2934
+ description?: string | undefined;
2935
+ source?: {
2936
+ type?: "TYPE_UNSPECIFIED" | "TYPE_UPLOAD" | "TYPE_GITHUB" | "TYPE_TEMPORARY" | undefined;
2937
+ githubRepositoryName?: string | undefined;
2938
+ } | undefined;
2939
+ displayName?: string | undefined;
2940
+ requirements?: string | undefined;
2941
+ entryPoint?: string | undefined;
2942
+ commitHash?: string | undefined;
2943
+ defaultDataset?: string | undefined;
2944
+ criteria?: {
2945
+ type?: "TYPE_UNSPECIFIED" | "CODE_SNIPPETS" | undefined;
2946
+ name?: string | undefined;
2947
+ description?: string | undefined;
2948
+ codeSnippets?: {
2949
+ language?: string | undefined;
2950
+ fileContents?: Record<string, string> | undefined;
2951
+ entryFile?: string | undefined;
2952
+ entryFunc?: string | undefined;
2953
+ } | undefined;
2954
+ }[] | undefined;
2955
+ }>;
2956
+ }, "strip", z.ZodTypeAny, {
2957
+ evaluator: {
2958
+ description?: string | undefined;
2959
+ source?: {
2960
+ type?: "TYPE_UNSPECIFIED" | "TYPE_UPLOAD" | "TYPE_GITHUB" | "TYPE_TEMPORARY" | undefined;
2961
+ githubRepositoryName?: string | undefined;
2962
+ } | undefined;
2963
+ displayName?: string | undefined;
2964
+ requirements?: string | undefined;
2965
+ entryPoint?: string | undefined;
2966
+ commitHash?: string | undefined;
2967
+ defaultDataset?: string | undefined;
2968
+ criteria?: {
2969
+ type?: "TYPE_UNSPECIFIED" | "CODE_SNIPPETS" | undefined;
2970
+ name?: string | undefined;
2971
+ description?: string | undefined;
2972
+ codeSnippets?: {
2973
+ language?: string | undefined;
2974
+ fileContents?: Record<string, string> | undefined;
2975
+ entryFile?: string | undefined;
2976
+ entryFunc?: string | undefined;
2977
+ } | undefined;
2978
+ }[] | undefined;
2979
+ };
2980
+ evaluatorId?: string | undefined;
2981
+ }, {
2982
+ evaluator: {
2983
+ description?: string | undefined;
2984
+ source?: {
2985
+ type?: "TYPE_UNSPECIFIED" | "TYPE_UPLOAD" | "TYPE_GITHUB" | "TYPE_TEMPORARY" | undefined;
2986
+ githubRepositoryName?: string | undefined;
2987
+ } | undefined;
2988
+ displayName?: string | undefined;
2989
+ requirements?: string | undefined;
2990
+ entryPoint?: string | undefined;
2991
+ commitHash?: string | undefined;
2992
+ defaultDataset?: string | undefined;
2993
+ criteria?: {
2994
+ type?: "TYPE_UNSPECIFIED" | "CODE_SNIPPETS" | undefined;
2995
+ name?: string | undefined;
2996
+ description?: string | undefined;
2997
+ codeSnippets?: {
2998
+ language?: string | undefined;
2999
+ fileContents?: Record<string, string> | undefined;
3000
+ entryFile?: string | undefined;
3001
+ entryFunc?: string | undefined;
3002
+ } | undefined;
3003
+ }[] | undefined;
3004
+ };
3005
+ evaluatorId?: string | undefined;
3006
+ }>;
3007
+ export declare const FireworksUpdateEvaluatorRequestSchema: z.ZodObject<{
3008
+ displayName: z.ZodOptional<z.ZodString>;
3009
+ description: z.ZodOptional<z.ZodString>;
3010
+ requirements: z.ZodOptional<z.ZodString>;
3011
+ entryPoint: z.ZodOptional<z.ZodString>;
3012
+ commitHash: z.ZodOptional<z.ZodString>;
3013
+ defaultDataset: z.ZodOptional<z.ZodString>;
3014
+ criteria: z.ZodOptional<z.ZodArray<z.ZodObject<{
3015
+ type: z.ZodOptional<z.ZodEnum<["TYPE_UNSPECIFIED", "CODE_SNIPPETS"]>>;
3016
+ name: z.ZodOptional<z.ZodString>;
3017
+ description: z.ZodOptional<z.ZodString>;
3018
+ codeSnippets: z.ZodOptional<z.ZodObject<{
3019
+ language: z.ZodOptional<z.ZodString>;
3020
+ fileContents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3021
+ entryFile: z.ZodOptional<z.ZodString>;
3022
+ entryFunc: z.ZodOptional<z.ZodString>;
3023
+ }, "strip", z.ZodTypeAny, {
3024
+ language?: string | undefined;
3025
+ fileContents?: Record<string, string> | undefined;
3026
+ entryFile?: string | undefined;
3027
+ entryFunc?: string | undefined;
3028
+ }, {
3029
+ language?: string | undefined;
3030
+ fileContents?: Record<string, string> | undefined;
3031
+ entryFile?: string | undefined;
3032
+ entryFunc?: string | undefined;
3033
+ }>>;
3034
+ }, "strip", z.ZodTypeAny, {
3035
+ type?: "TYPE_UNSPECIFIED" | "CODE_SNIPPETS" | undefined;
3036
+ name?: string | undefined;
3037
+ description?: string | undefined;
3038
+ codeSnippets?: {
3039
+ language?: string | undefined;
3040
+ fileContents?: Record<string, string> | undefined;
3041
+ entryFile?: string | undefined;
3042
+ entryFunc?: string | undefined;
3043
+ } | undefined;
3044
+ }, {
3045
+ type?: "TYPE_UNSPECIFIED" | "CODE_SNIPPETS" | undefined;
3046
+ name?: string | undefined;
3047
+ description?: string | undefined;
3048
+ codeSnippets?: {
3049
+ language?: string | undefined;
3050
+ fileContents?: Record<string, string> | undefined;
3051
+ entryFile?: string | undefined;
3052
+ entryFunc?: string | undefined;
3053
+ } | undefined;
3054
+ }>, "many">>;
3055
+ source: z.ZodOptional<z.ZodObject<{
3056
+ type: z.ZodOptional<z.ZodEnum<["TYPE_UNSPECIFIED", "TYPE_UPLOAD", "TYPE_GITHUB", "TYPE_TEMPORARY"]>>;
3057
+ githubRepositoryName: z.ZodOptional<z.ZodString>;
3058
+ }, "strip", z.ZodTypeAny, {
3059
+ type?: "TYPE_UNSPECIFIED" | "TYPE_UPLOAD" | "TYPE_GITHUB" | "TYPE_TEMPORARY" | undefined;
3060
+ githubRepositoryName?: string | undefined;
3061
+ }, {
3062
+ type?: "TYPE_UNSPECIFIED" | "TYPE_UPLOAD" | "TYPE_GITHUB" | "TYPE_TEMPORARY" | undefined;
3063
+ githubRepositoryName?: string | undefined;
3064
+ }>>;
3065
+ }, "strip", z.ZodTypeAny, {
3066
+ description?: string | undefined;
3067
+ source?: {
3068
+ type?: "TYPE_UNSPECIFIED" | "TYPE_UPLOAD" | "TYPE_GITHUB" | "TYPE_TEMPORARY" | undefined;
3069
+ githubRepositoryName?: string | undefined;
3070
+ } | undefined;
3071
+ displayName?: string | undefined;
3072
+ requirements?: string | undefined;
3073
+ entryPoint?: string | undefined;
3074
+ commitHash?: string | undefined;
3075
+ defaultDataset?: string | undefined;
3076
+ criteria?: {
3077
+ type?: "TYPE_UNSPECIFIED" | "CODE_SNIPPETS" | undefined;
3078
+ name?: string | undefined;
3079
+ description?: string | undefined;
3080
+ codeSnippets?: {
3081
+ language?: string | undefined;
3082
+ fileContents?: Record<string, string> | undefined;
3083
+ entryFile?: string | undefined;
3084
+ entryFunc?: string | undefined;
3085
+ } | undefined;
3086
+ }[] | undefined;
3087
+ }, {
3088
+ description?: string | undefined;
3089
+ source?: {
3090
+ type?: "TYPE_UNSPECIFIED" | "TYPE_UPLOAD" | "TYPE_GITHUB" | "TYPE_TEMPORARY" | undefined;
3091
+ githubRepositoryName?: string | undefined;
3092
+ } | undefined;
3093
+ displayName?: string | undefined;
3094
+ requirements?: string | undefined;
3095
+ entryPoint?: string | undefined;
3096
+ commitHash?: string | undefined;
3097
+ defaultDataset?: string | undefined;
3098
+ criteria?: {
3099
+ type?: "TYPE_UNSPECIFIED" | "CODE_SNIPPETS" | undefined;
3100
+ name?: string | undefined;
3101
+ description?: string | undefined;
3102
+ codeSnippets?: {
3103
+ language?: string | undefined;
3104
+ fileContents?: Record<string, string> | undefined;
3105
+ entryFile?: string | undefined;
3106
+ entryFunc?: string | undefined;
3107
+ } | undefined;
3108
+ }[] | undefined;
3109
+ }>;
3110
+ export declare const FireworksGetUploadEndpointEvaluatorRequestSchema: z.ZodObject<{
3111
+ filenameToSize: z.ZodRecord<z.ZodString, z.ZodString>;
3112
+ readMask: z.ZodOptional<z.ZodString>;
3113
+ }, "strip", z.ZodTypeAny, {
3114
+ filenameToSize: Record<string, string>;
3115
+ readMask?: string | undefined;
3116
+ }, {
3117
+ filenameToSize: Record<string, string>;
3118
+ readMask?: string | undefined;
3119
+ }>;
3120
+ export declare const FireworksCreateEvaluationJobRequestSchema: z.ZodObject<{
3121
+ evaluationJobId: z.ZodOptional<z.ZodString>;
3122
+ leaderboardIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3123
+ evaluationJob: z.ZodObject<{
3124
+ displayName: z.ZodOptional<z.ZodString>;
3125
+ evaluator: z.ZodString;
3126
+ inputDataset: z.ZodString;
3127
+ outputDataset: z.ZodString;
3128
+ outputStats: z.ZodOptional<z.ZodString>;
3129
+ awsS3Config: z.ZodOptional<z.ZodObject<{
3130
+ credentialsSecret: z.ZodOptional<z.ZodString>;
3131
+ iamRoleArn: z.ZodOptional<z.ZodString>;
3132
+ }, "strip", z.ZodTypeAny, {
3133
+ credentialsSecret?: string | undefined;
3134
+ iamRoleArn?: string | undefined;
3135
+ }, {
3136
+ credentialsSecret?: string | undefined;
3137
+ iamRoleArn?: string | undefined;
3138
+ }>>;
3139
+ }, "strip", z.ZodTypeAny, {
3140
+ evaluator: string;
3141
+ inputDataset: string;
3142
+ outputDataset: string;
3143
+ displayName?: string | undefined;
3144
+ awsS3Config?: {
3145
+ credentialsSecret?: string | undefined;
3146
+ iamRoleArn?: string | undefined;
3147
+ } | undefined;
3148
+ outputStats?: string | undefined;
3149
+ }, {
3150
+ evaluator: string;
3151
+ inputDataset: string;
3152
+ outputDataset: string;
3153
+ displayName?: string | undefined;
3154
+ awsS3Config?: {
3155
+ credentialsSecret?: string | undefined;
3156
+ iamRoleArn?: string | undefined;
3157
+ } | undefined;
3158
+ outputStats?: string | undefined;
3159
+ }>;
3160
+ }, "strip", z.ZodTypeAny, {
3161
+ evaluationJob: {
3162
+ evaluator: string;
3163
+ inputDataset: string;
3164
+ outputDataset: string;
3165
+ displayName?: string | undefined;
3166
+ awsS3Config?: {
3167
+ credentialsSecret?: string | undefined;
3168
+ iamRoleArn?: string | undefined;
3169
+ } | undefined;
3170
+ outputStats?: string | undefined;
3171
+ };
3172
+ evaluationJobId?: string | undefined;
3173
+ leaderboardIds?: string[] | undefined;
3174
+ }, {
3175
+ evaluationJob: {
3176
+ evaluator: string;
3177
+ inputDataset: string;
3178
+ outputDataset: string;
3179
+ displayName?: string | undefined;
3180
+ awsS3Config?: {
3181
+ credentialsSecret?: string | undefined;
3182
+ iamRoleArn?: string | undefined;
3183
+ } | undefined;
3184
+ outputStats?: string | undefined;
3185
+ };
3186
+ evaluationJobId?: string | undefined;
3187
+ leaderboardIds?: string[] | undefined;
3188
+ }>;
3189
+ export declare const FireworksEmptySchema: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
3190
+ export declare const FireworksOptionsSchema: z.ZodObject<{
3191
+ apiKey: z.ZodString;
3192
+ baseURL: z.ZodOptional<z.ZodString>;
3193
+ audioBaseURL: z.ZodOptional<z.ZodString>;
3194
+ audioStreamingBaseURL: z.ZodOptional<z.ZodString>;
3195
+ timeout: z.ZodOptional<z.ZodNumber>;
3196
+ fetch: z.ZodOptional<z.ZodType<(input: RequestInfo | URL, init?: RequestInit) => Promise<Response>, z.ZodTypeDef, (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>>>;
3197
+ WebSocket: z.ZodOptional<z.ZodType<new (url: string | URL, protocols?: string | string[]) => WebSocket, z.ZodTypeDef, new (url: string | URL, protocols?: string | string[]) => WebSocket>>;
3198
+ }, "strip", z.ZodTypeAny, {
3199
+ apiKey: string;
3200
+ baseURL?: string | undefined;
3201
+ audioBaseURL?: string | undefined;
3202
+ audioStreamingBaseURL?: string | undefined;
3203
+ timeout?: number | undefined;
3204
+ fetch?: ((input: RequestInfo | URL, init?: RequestInit) => Promise<Response>) | undefined;
3205
+ WebSocket?: (new (url: string | URL, protocols?: string | string[]) => WebSocket) | undefined;
3206
+ }, {
3207
+ apiKey: string;
3208
+ baseURL?: string | undefined;
3209
+ audioBaseURL?: string | undefined;
3210
+ audioStreamingBaseURL?: string | undefined;
3211
+ timeout?: number | undefined;
3212
+ fetch?: ((input: RequestInfo | URL, init?: RequestInit) => Promise<Response>) | undefined;
3213
+ WebSocket?: (new (url: string | URL, protocols?: string | string[]) => WebSocket) | undefined;
3214
+ }>;
3215
+ export type FireworksChatRequest = z.infer<typeof FireworksChatRequestSchema>;
3216
+ export type FireworksCompletionRequest = z.infer<typeof FireworksCompletionRequestSchema>;
3217
+ export type FireworksEmbeddingRequest = z.infer<typeof FireworksEmbeddingRequestSchema>;
3218
+ export type FireworksRerankRequest = z.infer<typeof FireworksRerankRequestSchema>;
3219
+ export type AnthropicMessagesRequest = z.infer<typeof AnthropicMessagesRequestSchema>;
3220
+ export type FireworksTranscriptionRequest = z.infer<typeof FireworksTranscriptionRequestSchema>;
3221
+ export type FireworksTranslationRequest = z.infer<typeof FireworksTranslationRequestSchema>;
3222
+ export type FireworksStreamingTranscriptionOptions = z.infer<typeof FireworksStreamingTranscriptionOptionsSchema>;
3223
+ export type FireworksAudioBatchTranscriptionRequest = z.infer<typeof FireworksAudioBatchTranscriptionRequestSchema>;
3224
+ export type FireworksAudioBatchTranslationRequest = z.infer<typeof FireworksAudioBatchTranslationRequestSchema>;
3225
+ export type FireworksTextToImageRequest = z.infer<typeof FireworksTextToImageRequestSchema>;
3226
+ export type FireworksKontextRequest = z.infer<typeof FireworksKontextRequestSchema>;
3227
+ export type FireworksGetResultRequest = z.infer<typeof FireworksGetResultRequestSchema>;
3228
+ export type FireworksCreateModelRequest = z.infer<typeof FireworksCreateModelRequestSchema>;
3229
+ export type FireworksUpdateModelRequest = z.infer<typeof FireworksUpdateModelRequestSchema>;
3230
+ export type FireworksPrepareModelRequest = z.infer<typeof FireworksPrepareModelRequestSchema>;
3231
+ export type FireworksGetUploadEndpointRequest = z.infer<typeof FireworksGetUploadEndpointRequestSchema>;
3232
+ export type FireworksValidateUploadRequest = z.infer<typeof FireworksValidateUploadRequestSchema>;
3233
+ export type FireworksBatchJobCreateRequest = z.infer<typeof FireworksBatchJobCreateRequestSchema>;
3234
+ export type FireworksSFTCreateRequest = z.infer<typeof FireworksSFTCreateRequestSchema>;
3235
+ export type FireworksDpoJobCreateRequest = z.infer<typeof FireworksDpoJobCreateRequestSchema>;
3236
+ export type FireworksRFTCreateRequest = z.infer<typeof FireworksRFTCreateRequestSchema>;
3237
+ export type FireworksRlorTrainerJobCreateRequest = z.infer<typeof FireworksRlorTrainerJobCreateRequestSchema>;
3238
+ export type FireworksRlorTrainerJobExecuteStepRequest = z.infer<typeof FireworksRlorTrainerJobExecuteStepRequestSchema>;
3239
+ export type FireworksCreateDeploymentRequest = z.infer<typeof FireworksCreateDeploymentRequestSchema>;
3240
+ export type FireworksUpdateDeploymentRequest = z.infer<typeof FireworksUpdateDeploymentRequestSchema>;
3241
+ export type FireworksScaleDeploymentRequest = z.infer<typeof FireworksScaleDeploymentRequestSchema>;
3242
+ export type FireworksCreateDeployedModelRequest = z.infer<typeof FireworksCreateDeployedModelRequestSchema>;
3243
+ export type FireworksUpdateDeployedModelRequest = z.infer<typeof FireworksUpdateDeployedModelRequestSchema>;
3244
+ export type FireworksCreateDatasetRequest = z.infer<typeof FireworksCreateDatasetRequestSchema>;
3245
+ export type FireworksUpdateDatasetRequest = z.infer<typeof FireworksUpdateDatasetRequestSchema>;
3246
+ export type FireworksDatasetGetUploadEndpointRequest = z.infer<typeof FireworksDatasetGetUploadEndpointRequestSchema>;
3247
+ export type FireworksDatasetValidateUploadRequest = z.infer<typeof FireworksDatasetValidateUploadRequestSchema>;
3248
+ export type FireworksCreateUserRequest = z.infer<typeof FireworksCreateUserRequestSchema>;
3249
+ export type FireworksUpdateUserRequest = z.infer<typeof FireworksUpdateUserRequestSchema>;
3250
+ export type FireworksCreateApiKeyRequest = z.infer<typeof FireworksCreateApiKeyRequestSchema>;
3251
+ export type FireworksDeleteApiKeyRequest = z.infer<typeof FireworksDeleteApiKeyRequestSchema>;
3252
+ export type FireworksCreateSecretRequest = z.infer<typeof FireworksCreateSecretRequestSchema>;
3253
+ export type FireworksUpdateSecretRequest = z.infer<typeof FireworksUpdateSecretRequestSchema>;
3254
+ export type FireworksCreateEvaluatorRequest = z.infer<typeof FireworksCreateEvaluatorRequestSchema>;
3255
+ export type FireworksUpdateEvaluatorRequest = z.infer<typeof FireworksUpdateEvaluatorRequestSchema>;
3256
+ export type FireworksGetUploadEndpointEvaluatorRequest = z.infer<typeof FireworksGetUploadEndpointEvaluatorRequestSchema>;
3257
+ export type FireworksCreateEvaluationJobRequest = z.infer<typeof FireworksCreateEvaluationJobRequestSchema>;
3258
+ export type FireworksOptions = z.infer<typeof FireworksOptionsSchema>;
3259
+ //# sourceMappingURL=zod.d.ts.map