@apicity/xai 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,2458 @@
1
+ import { z } from "zod";
2
+ export declare const XaiMessageSchema: z.ZodObject<{
3
+ role: z.ZodEnum<["user", "assistant", "system"]>;
4
+ content: z.ZodString;
5
+ }, "strip", z.ZodTypeAny, {
6
+ role: "user" | "assistant" | "system";
7
+ content: string;
8
+ }, {
9
+ role: "user" | "assistant" | "system";
10
+ content: string;
11
+ }>;
12
+ export declare const XaiToolFunctionSchema: z.ZodObject<{
13
+ name: z.ZodString;
14
+ description: z.ZodOptional<z.ZodString>;
15
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
16
+ }, "strip", z.ZodTypeAny, {
17
+ name: string;
18
+ description?: string | undefined;
19
+ parameters?: Record<string, unknown> | undefined;
20
+ }, {
21
+ name: string;
22
+ description?: string | undefined;
23
+ parameters?: Record<string, unknown> | undefined;
24
+ }>;
25
+ export declare const XaiToolSchema: z.ZodObject<{
26
+ type: z.ZodLiteral<"function">;
27
+ function: z.ZodObject<{
28
+ name: z.ZodString;
29
+ description: z.ZodOptional<z.ZodString>;
30
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
31
+ }, "strip", z.ZodTypeAny, {
32
+ name: string;
33
+ description?: string | undefined;
34
+ parameters?: Record<string, unknown> | undefined;
35
+ }, {
36
+ name: string;
37
+ description?: string | undefined;
38
+ parameters?: Record<string, unknown> | undefined;
39
+ }>;
40
+ }, "strip", z.ZodTypeAny, {
41
+ function: {
42
+ name: string;
43
+ description?: string | undefined;
44
+ parameters?: Record<string, unknown> | undefined;
45
+ };
46
+ type: "function";
47
+ }, {
48
+ function: {
49
+ name: string;
50
+ description?: string | undefined;
51
+ parameters?: Record<string, unknown> | undefined;
52
+ };
53
+ type: "function";
54
+ }>;
55
+ export declare const XaiImageReferenceSchema: z.ZodObject<{
56
+ url: z.ZodString;
57
+ type: z.ZodOptional<z.ZodEnum<["image_url"]>>;
58
+ }, "strip", z.ZodTypeAny, {
59
+ url: string;
60
+ type?: "image_url" | undefined;
61
+ }, {
62
+ url: string;
63
+ type?: "image_url" | undefined;
64
+ }>;
65
+ export declare const XaiVideoReferenceSchema: z.ZodObject<{
66
+ url: z.ZodString;
67
+ }, "strip", z.ZodTypeAny, {
68
+ url: string;
69
+ }, {
70
+ url: string;
71
+ }>;
72
+ export declare const XaiChunkConfigurationSchema: z.ZodObject<{
73
+ chars_configuration: z.ZodOptional<z.ZodObject<{
74
+ max_chunk_size_chars: z.ZodNumber;
75
+ chunk_overlap_chars: z.ZodNumber;
76
+ }, "strip", z.ZodTypeAny, {
77
+ max_chunk_size_chars: number;
78
+ chunk_overlap_chars: number;
79
+ }, {
80
+ max_chunk_size_chars: number;
81
+ chunk_overlap_chars: number;
82
+ }>>;
83
+ tokens_configuration: z.ZodOptional<z.ZodObject<{
84
+ max_chunk_size_tokens: z.ZodNumber;
85
+ chunk_overlap_tokens: z.ZodNumber;
86
+ encoding_name: z.ZodOptional<z.ZodString>;
87
+ }, "strip", z.ZodTypeAny, {
88
+ max_chunk_size_tokens: number;
89
+ chunk_overlap_tokens: number;
90
+ encoding_name?: string | undefined;
91
+ }, {
92
+ max_chunk_size_tokens: number;
93
+ chunk_overlap_tokens: number;
94
+ encoding_name?: string | undefined;
95
+ }>>;
96
+ markdown_tokens_configuration: z.ZodOptional<z.ZodObject<{
97
+ max_chunk_size_tokens: z.ZodNumber;
98
+ chunk_overlap_tokens: z.ZodNumber;
99
+ encoding_name: z.ZodOptional<z.ZodString>;
100
+ }, "strip", z.ZodTypeAny, {
101
+ max_chunk_size_tokens: number;
102
+ chunk_overlap_tokens: number;
103
+ encoding_name?: string | undefined;
104
+ }, {
105
+ max_chunk_size_tokens: number;
106
+ chunk_overlap_tokens: number;
107
+ encoding_name?: string | undefined;
108
+ }>>;
109
+ markdown_chars_configuration: z.ZodOptional<z.ZodObject<{
110
+ max_chunk_size_chars: z.ZodNumber;
111
+ chunk_overlap_chars: z.ZodNumber;
112
+ }, "strip", z.ZodTypeAny, {
113
+ max_chunk_size_chars: number;
114
+ chunk_overlap_chars: number;
115
+ }, {
116
+ max_chunk_size_chars: number;
117
+ chunk_overlap_chars: number;
118
+ }>>;
119
+ code_tokens_configuration: z.ZodOptional<z.ZodObject<{
120
+ max_chunk_size_tokens: z.ZodNumber;
121
+ chunk_overlap_tokens: z.ZodNumber;
122
+ encoding_name: z.ZodOptional<z.ZodString>;
123
+ }, "strip", z.ZodTypeAny, {
124
+ max_chunk_size_tokens: number;
125
+ chunk_overlap_tokens: number;
126
+ encoding_name?: string | undefined;
127
+ }, {
128
+ max_chunk_size_tokens: number;
129
+ chunk_overlap_tokens: number;
130
+ encoding_name?: string | undefined;
131
+ }>>;
132
+ code_chars_configuration: z.ZodOptional<z.ZodObject<{
133
+ max_chunk_size_chars: z.ZodNumber;
134
+ chunk_overlap_chars: z.ZodNumber;
135
+ }, "strip", z.ZodTypeAny, {
136
+ max_chunk_size_chars: number;
137
+ chunk_overlap_chars: number;
138
+ }, {
139
+ max_chunk_size_chars: number;
140
+ chunk_overlap_chars: number;
141
+ }>>;
142
+ table_configuration: z.ZodOptional<z.ZodObject<{
143
+ max_chunk_size_tokens: z.ZodNumber;
144
+ encoding_name: z.ZodOptional<z.ZodString>;
145
+ }, "strip", z.ZodTypeAny, {
146
+ max_chunk_size_tokens: number;
147
+ encoding_name?: string | undefined;
148
+ }, {
149
+ max_chunk_size_tokens: number;
150
+ encoding_name?: string | undefined;
151
+ }>>;
152
+ bytes_configuration: z.ZodOptional<z.ZodObject<{
153
+ max_chunk_size_bytes: z.ZodNumber;
154
+ chunk_overlap_bytes: z.ZodNumber;
155
+ }, "strip", z.ZodTypeAny, {
156
+ max_chunk_size_bytes: number;
157
+ chunk_overlap_bytes: number;
158
+ }, {
159
+ max_chunk_size_bytes: number;
160
+ chunk_overlap_bytes: number;
161
+ }>>;
162
+ strip_whitespace: z.ZodOptional<z.ZodBoolean>;
163
+ inject_name_into_chunks: z.ZodOptional<z.ZodBoolean>;
164
+ }, "strip", z.ZodTypeAny, {
165
+ chars_configuration?: {
166
+ max_chunk_size_chars: number;
167
+ chunk_overlap_chars: number;
168
+ } | undefined;
169
+ tokens_configuration?: {
170
+ max_chunk_size_tokens: number;
171
+ chunk_overlap_tokens: number;
172
+ encoding_name?: string | undefined;
173
+ } | undefined;
174
+ markdown_tokens_configuration?: {
175
+ max_chunk_size_tokens: number;
176
+ chunk_overlap_tokens: number;
177
+ encoding_name?: string | undefined;
178
+ } | undefined;
179
+ markdown_chars_configuration?: {
180
+ max_chunk_size_chars: number;
181
+ chunk_overlap_chars: number;
182
+ } | undefined;
183
+ code_tokens_configuration?: {
184
+ max_chunk_size_tokens: number;
185
+ chunk_overlap_tokens: number;
186
+ encoding_name?: string | undefined;
187
+ } | undefined;
188
+ code_chars_configuration?: {
189
+ max_chunk_size_chars: number;
190
+ chunk_overlap_chars: number;
191
+ } | undefined;
192
+ table_configuration?: {
193
+ max_chunk_size_tokens: number;
194
+ encoding_name?: string | undefined;
195
+ } | undefined;
196
+ bytes_configuration?: {
197
+ max_chunk_size_bytes: number;
198
+ chunk_overlap_bytes: number;
199
+ } | undefined;
200
+ strip_whitespace?: boolean | undefined;
201
+ inject_name_into_chunks?: boolean | undefined;
202
+ }, {
203
+ chars_configuration?: {
204
+ max_chunk_size_chars: number;
205
+ chunk_overlap_chars: number;
206
+ } | undefined;
207
+ tokens_configuration?: {
208
+ max_chunk_size_tokens: number;
209
+ chunk_overlap_tokens: number;
210
+ encoding_name?: string | undefined;
211
+ } | undefined;
212
+ markdown_tokens_configuration?: {
213
+ max_chunk_size_tokens: number;
214
+ chunk_overlap_tokens: number;
215
+ encoding_name?: string | undefined;
216
+ } | undefined;
217
+ markdown_chars_configuration?: {
218
+ max_chunk_size_chars: number;
219
+ chunk_overlap_chars: number;
220
+ } | undefined;
221
+ code_tokens_configuration?: {
222
+ max_chunk_size_tokens: number;
223
+ chunk_overlap_tokens: number;
224
+ encoding_name?: string | undefined;
225
+ } | undefined;
226
+ code_chars_configuration?: {
227
+ max_chunk_size_chars: number;
228
+ chunk_overlap_chars: number;
229
+ } | undefined;
230
+ table_configuration?: {
231
+ max_chunk_size_tokens: number;
232
+ encoding_name?: string | undefined;
233
+ } | undefined;
234
+ bytes_configuration?: {
235
+ max_chunk_size_bytes: number;
236
+ chunk_overlap_bytes: number;
237
+ } | undefined;
238
+ strip_whitespace?: boolean | undefined;
239
+ inject_name_into_chunks?: boolean | undefined;
240
+ }>;
241
+ export declare const XaiFieldDefinitionSchema: z.ZodObject<{
242
+ key: z.ZodString;
243
+ required: z.ZodOptional<z.ZodBoolean>;
244
+ unique: z.ZodOptional<z.ZodBoolean>;
245
+ inject_into_chunk: z.ZodOptional<z.ZodBoolean>;
246
+ description: z.ZodOptional<z.ZodString>;
247
+ }, "strip", z.ZodTypeAny, {
248
+ key: string;
249
+ description?: string | undefined;
250
+ required?: boolean | undefined;
251
+ unique?: boolean | undefined;
252
+ inject_into_chunk?: boolean | undefined;
253
+ }, {
254
+ key: string;
255
+ description?: string | undefined;
256
+ required?: boolean | undefined;
257
+ unique?: boolean | undefined;
258
+ inject_into_chunk?: boolean | undefined;
259
+ }>;
260
+ export declare const XaiChatRequestSchema: z.ZodObject<{
261
+ model: z.ZodOptional<z.ZodString>;
262
+ messages: z.ZodArray<z.ZodObject<{
263
+ role: z.ZodEnum<["user", "assistant", "system"]>;
264
+ content: z.ZodString;
265
+ }, "strip", z.ZodTypeAny, {
266
+ role: "user" | "assistant" | "system";
267
+ content: string;
268
+ }, {
269
+ role: "user" | "assistant" | "system";
270
+ content: string;
271
+ }>, "many">;
272
+ temperature: z.ZodOptional<z.ZodNumber>;
273
+ max_tokens: z.ZodOptional<z.ZodNumber>;
274
+ tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
275
+ type: z.ZodLiteral<"function">;
276
+ function: z.ZodObject<{
277
+ name: z.ZodString;
278
+ description: z.ZodOptional<z.ZodString>;
279
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
280
+ }, "strip", z.ZodTypeAny, {
281
+ name: string;
282
+ description?: string | undefined;
283
+ parameters?: Record<string, unknown> | undefined;
284
+ }, {
285
+ name: string;
286
+ description?: string | undefined;
287
+ parameters?: Record<string, unknown> | undefined;
288
+ }>;
289
+ }, "strip", z.ZodTypeAny, {
290
+ function: {
291
+ name: string;
292
+ description?: string | undefined;
293
+ parameters?: Record<string, unknown> | undefined;
294
+ };
295
+ type: "function";
296
+ }, {
297
+ function: {
298
+ name: string;
299
+ description?: string | undefined;
300
+ parameters?: Record<string, unknown> | undefined;
301
+ };
302
+ type: "function";
303
+ }>, "many">>;
304
+ tool_choice: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["auto", "none"]>, z.ZodObject<{
305
+ type: z.ZodLiteral<"function">;
306
+ function: z.ZodObject<{
307
+ name: z.ZodString;
308
+ }, "strip", z.ZodTypeAny, {
309
+ name: string;
310
+ }, {
311
+ name: string;
312
+ }>;
313
+ }, "strip", z.ZodTypeAny, {
314
+ function: {
315
+ name: string;
316
+ };
317
+ type: "function";
318
+ }, {
319
+ function: {
320
+ name: string;
321
+ };
322
+ type: "function";
323
+ }>]>>;
324
+ deferred: z.ZodOptional<z.ZodBoolean>;
325
+ }, "strip", z.ZodTypeAny, {
326
+ messages: {
327
+ role: "user" | "assistant" | "system";
328
+ content: string;
329
+ }[];
330
+ model?: string | undefined;
331
+ temperature?: number | undefined;
332
+ max_tokens?: number | undefined;
333
+ tools?: {
334
+ function: {
335
+ name: string;
336
+ description?: string | undefined;
337
+ parameters?: Record<string, unknown> | undefined;
338
+ };
339
+ type: "function";
340
+ }[] | undefined;
341
+ tool_choice?: "auto" | "none" | {
342
+ function: {
343
+ name: string;
344
+ };
345
+ type: "function";
346
+ } | undefined;
347
+ deferred?: boolean | undefined;
348
+ }, {
349
+ messages: {
350
+ role: "user" | "assistant" | "system";
351
+ content: string;
352
+ }[];
353
+ model?: string | undefined;
354
+ temperature?: number | undefined;
355
+ max_tokens?: number | undefined;
356
+ tools?: {
357
+ function: {
358
+ name: string;
359
+ description?: string | undefined;
360
+ parameters?: Record<string, unknown> | undefined;
361
+ };
362
+ type: "function";
363
+ }[] | undefined;
364
+ tool_choice?: "auto" | "none" | {
365
+ function: {
366
+ name: string;
367
+ };
368
+ type: "function";
369
+ } | undefined;
370
+ deferred?: boolean | undefined;
371
+ }>;
372
+ export declare const XaiImageGenerateRequestSchema: z.ZodObject<{
373
+ prompt: z.ZodString;
374
+ model: z.ZodOptional<z.ZodString>;
375
+ n: z.ZodOptional<z.ZodNumber>;
376
+ response_format: z.ZodOptional<z.ZodEnum<["url", "b64_json"]>>;
377
+ aspect_ratio: z.ZodOptional<z.ZodEnum<["1:1", "16:9", "9:16", "4:3", "3:4", "3:2", "2:3", "2:1", "1:2", "19.5:9", "9:19.5", "20:9", "9:20", "auto"]>>;
378
+ resolution: z.ZodOptional<z.ZodEnum<["1k", "2k"]>>;
379
+ }, "strip", z.ZodTypeAny, {
380
+ prompt: string;
381
+ model?: string | undefined;
382
+ n?: number | undefined;
383
+ response_format?: "url" | "b64_json" | undefined;
384
+ aspect_ratio?: "auto" | "1:1" | "16:9" | "9:16" | "4:3" | "3:4" | "3:2" | "2:3" | "2:1" | "1:2" | "19.5:9" | "9:19.5" | "20:9" | "9:20" | undefined;
385
+ resolution?: "1k" | "2k" | undefined;
386
+ }, {
387
+ prompt: string;
388
+ model?: string | undefined;
389
+ n?: number | undefined;
390
+ response_format?: "url" | "b64_json" | undefined;
391
+ aspect_ratio?: "auto" | "1:1" | "16:9" | "9:16" | "4:3" | "3:4" | "3:2" | "2:3" | "2:1" | "1:2" | "19.5:9" | "9:19.5" | "20:9" | "9:20" | undefined;
392
+ resolution?: "1k" | "2k" | undefined;
393
+ }>;
394
+ export declare const XaiImageEditRequestSchema: z.ZodObject<{
395
+ prompt: z.ZodString;
396
+ model: z.ZodOptional<z.ZodString>;
397
+ image: z.ZodOptional<z.ZodObject<{
398
+ url: z.ZodString;
399
+ type: z.ZodOptional<z.ZodEnum<["image_url"]>>;
400
+ }, "strip", z.ZodTypeAny, {
401
+ url: string;
402
+ type?: "image_url" | undefined;
403
+ }, {
404
+ url: string;
405
+ type?: "image_url" | undefined;
406
+ }>>;
407
+ images: z.ZodOptional<z.ZodArray<z.ZodObject<{
408
+ url: z.ZodString;
409
+ type: z.ZodOptional<z.ZodEnum<["image_url"]>>;
410
+ }, "strip", z.ZodTypeAny, {
411
+ url: string;
412
+ type?: "image_url" | undefined;
413
+ }, {
414
+ url: string;
415
+ type?: "image_url" | undefined;
416
+ }>, "many">>;
417
+ n: z.ZodOptional<z.ZodNumber>;
418
+ response_format: z.ZodOptional<z.ZodEnum<["url", "b64_json"]>>;
419
+ aspect_ratio: z.ZodOptional<z.ZodEnum<["1:1", "16:9", "9:16", "4:3", "3:4", "3:2", "2:3", "2:1", "1:2", "19.5:9", "9:19.5", "20:9", "9:20", "auto"]>>;
420
+ }, "strip", z.ZodTypeAny, {
421
+ prompt: string;
422
+ model?: string | undefined;
423
+ n?: number | undefined;
424
+ response_format?: "url" | "b64_json" | undefined;
425
+ aspect_ratio?: "auto" | "1:1" | "16:9" | "9:16" | "4:3" | "3:4" | "3:2" | "2:3" | "2:1" | "1:2" | "19.5:9" | "9:19.5" | "20:9" | "9:20" | undefined;
426
+ image?: {
427
+ url: string;
428
+ type?: "image_url" | undefined;
429
+ } | undefined;
430
+ images?: {
431
+ url: string;
432
+ type?: "image_url" | undefined;
433
+ }[] | undefined;
434
+ }, {
435
+ prompt: string;
436
+ model?: string | undefined;
437
+ n?: number | undefined;
438
+ response_format?: "url" | "b64_json" | undefined;
439
+ aspect_ratio?: "auto" | "1:1" | "16:9" | "9:16" | "4:3" | "3:4" | "3:2" | "2:3" | "2:1" | "1:2" | "19.5:9" | "9:19.5" | "20:9" | "9:20" | undefined;
440
+ image?: {
441
+ url: string;
442
+ type?: "image_url" | undefined;
443
+ } | undefined;
444
+ images?: {
445
+ url: string;
446
+ type?: "image_url" | undefined;
447
+ }[] | undefined;
448
+ }>;
449
+ export declare const XaiVideoGenerateRequestSchema: z.ZodObject<{
450
+ prompt: z.ZodString;
451
+ model: z.ZodOptional<z.ZodString>;
452
+ duration: z.ZodOptional<z.ZodNumber>;
453
+ aspect_ratio: z.ZodOptional<z.ZodEnum<["1:1", "16:9", "9:16", "4:3", "3:4", "3:2", "2:3"]>>;
454
+ resolution: z.ZodOptional<z.ZodEnum<["480p", "720p"]>>;
455
+ image: z.ZodOptional<z.ZodObject<{
456
+ url: z.ZodString;
457
+ }, "strip", z.ZodTypeAny, {
458
+ url: string;
459
+ }, {
460
+ url: string;
461
+ }>>;
462
+ video: z.ZodOptional<z.ZodObject<{
463
+ url: z.ZodString;
464
+ }, "strip", z.ZodTypeAny, {
465
+ url: string;
466
+ }, {
467
+ url: string;
468
+ }>>;
469
+ reference_images: z.ZodOptional<z.ZodArray<z.ZodObject<{
470
+ url: z.ZodString;
471
+ }, "strip", z.ZodTypeAny, {
472
+ url: string;
473
+ }, {
474
+ url: string;
475
+ }>, "many">>;
476
+ }, "strip", z.ZodTypeAny, {
477
+ prompt: string;
478
+ model?: string | undefined;
479
+ aspect_ratio?: "1:1" | "16:9" | "9:16" | "4:3" | "3:4" | "3:2" | "2:3" | undefined;
480
+ resolution?: "480p" | "720p" | undefined;
481
+ image?: {
482
+ url: string;
483
+ } | undefined;
484
+ duration?: number | undefined;
485
+ video?: {
486
+ url: string;
487
+ } | undefined;
488
+ reference_images?: {
489
+ url: string;
490
+ }[] | undefined;
491
+ }, {
492
+ prompt: string;
493
+ model?: string | undefined;
494
+ aspect_ratio?: "1:1" | "16:9" | "9:16" | "4:3" | "3:4" | "3:2" | "2:3" | undefined;
495
+ resolution?: "480p" | "720p" | undefined;
496
+ image?: {
497
+ url: string;
498
+ } | undefined;
499
+ duration?: number | undefined;
500
+ video?: {
501
+ url: string;
502
+ } | undefined;
503
+ reference_images?: {
504
+ url: string;
505
+ }[] | undefined;
506
+ }>;
507
+ export declare const XaiVideoEditRequestSchema: z.ZodObject<{
508
+ prompt: z.ZodString;
509
+ model: z.ZodOptional<z.ZodString>;
510
+ video: z.ZodObject<{
511
+ url: z.ZodString;
512
+ }, "strip", z.ZodTypeAny, {
513
+ url: string;
514
+ }, {
515
+ url: string;
516
+ }>;
517
+ output: z.ZodOptional<z.ZodObject<{
518
+ upload_url: z.ZodString;
519
+ }, "strip", z.ZodTypeAny, {
520
+ upload_url: string;
521
+ }, {
522
+ upload_url: string;
523
+ }>>;
524
+ user: z.ZodOptional<z.ZodString>;
525
+ }, "strip", z.ZodTypeAny, {
526
+ prompt: string;
527
+ video: {
528
+ url: string;
529
+ };
530
+ user?: string | undefined;
531
+ model?: string | undefined;
532
+ output?: {
533
+ upload_url: string;
534
+ } | undefined;
535
+ }, {
536
+ prompt: string;
537
+ video: {
538
+ url: string;
539
+ };
540
+ user?: string | undefined;
541
+ model?: string | undefined;
542
+ output?: {
543
+ upload_url: string;
544
+ } | undefined;
545
+ }>;
546
+ export declare const XaiVideoExtendRequestSchema: z.ZodObject<{
547
+ prompt: z.ZodString;
548
+ model: z.ZodOptional<z.ZodString>;
549
+ duration: z.ZodOptional<z.ZodNumber>;
550
+ video: z.ZodObject<{
551
+ url: z.ZodString;
552
+ }, "strip", z.ZodTypeAny, {
553
+ url: string;
554
+ }, {
555
+ url: string;
556
+ }>;
557
+ }, "strip", z.ZodTypeAny, {
558
+ prompt: string;
559
+ video: {
560
+ url: string;
561
+ };
562
+ model?: string | undefined;
563
+ duration?: number | undefined;
564
+ }, {
565
+ prompt: string;
566
+ video: {
567
+ url: string;
568
+ };
569
+ model?: string | undefined;
570
+ duration?: number | undefined;
571
+ }>;
572
+ export declare const XaiBatchCreateRequestSchema: z.ZodObject<{
573
+ name: z.ZodString;
574
+ }, "strip", z.ZodTypeAny, {
575
+ name: string;
576
+ }, {
577
+ name: string;
578
+ }>;
579
+ export declare const XaiBatchAddRequestsBodySchema: z.ZodObject<{
580
+ batch_requests: z.ZodArray<z.ZodObject<{
581
+ batch_request_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
582
+ batch_request: z.ZodObject<{
583
+ chat_get_completion: z.ZodRecord<z.ZodString, z.ZodUnknown>;
584
+ }, "strip", z.ZodTypeAny, {
585
+ chat_get_completion: Record<string, unknown>;
586
+ }, {
587
+ chat_get_completion: Record<string, unknown>;
588
+ }>;
589
+ }, "strip", z.ZodTypeAny, {
590
+ batch_request: {
591
+ chat_get_completion: Record<string, unknown>;
592
+ };
593
+ batch_request_id?: string | null | undefined;
594
+ }, {
595
+ batch_request: {
596
+ chat_get_completion: Record<string, unknown>;
597
+ };
598
+ batch_request_id?: string | null | undefined;
599
+ }>, "many">;
600
+ }, "strip", z.ZodTypeAny, {
601
+ batch_requests: {
602
+ batch_request: {
603
+ chat_get_completion: Record<string, unknown>;
604
+ };
605
+ batch_request_id?: string | null | undefined;
606
+ }[];
607
+ }, {
608
+ batch_requests: {
609
+ batch_request: {
610
+ chat_get_completion: Record<string, unknown>;
611
+ };
612
+ batch_request_id?: string | null | undefined;
613
+ }[];
614
+ }>;
615
+ export declare const XaiCollectionCreateRequestSchema: z.ZodObject<{
616
+ collection_name: z.ZodString;
617
+ collection_description: z.ZodOptional<z.ZodString>;
618
+ team_id: z.ZodOptional<z.ZodString>;
619
+ index_configuration: z.ZodOptional<z.ZodObject<{
620
+ model_name: z.ZodString;
621
+ }, "strip", z.ZodTypeAny, {
622
+ model_name: string;
623
+ }, {
624
+ model_name: string;
625
+ }>>;
626
+ chunk_configuration: z.ZodOptional<z.ZodObject<{
627
+ chars_configuration: z.ZodOptional<z.ZodObject<{
628
+ max_chunk_size_chars: z.ZodNumber;
629
+ chunk_overlap_chars: z.ZodNumber;
630
+ }, "strip", z.ZodTypeAny, {
631
+ max_chunk_size_chars: number;
632
+ chunk_overlap_chars: number;
633
+ }, {
634
+ max_chunk_size_chars: number;
635
+ chunk_overlap_chars: number;
636
+ }>>;
637
+ tokens_configuration: z.ZodOptional<z.ZodObject<{
638
+ max_chunk_size_tokens: z.ZodNumber;
639
+ chunk_overlap_tokens: z.ZodNumber;
640
+ encoding_name: z.ZodOptional<z.ZodString>;
641
+ }, "strip", z.ZodTypeAny, {
642
+ max_chunk_size_tokens: number;
643
+ chunk_overlap_tokens: number;
644
+ encoding_name?: string | undefined;
645
+ }, {
646
+ max_chunk_size_tokens: number;
647
+ chunk_overlap_tokens: number;
648
+ encoding_name?: string | undefined;
649
+ }>>;
650
+ markdown_tokens_configuration: z.ZodOptional<z.ZodObject<{
651
+ max_chunk_size_tokens: z.ZodNumber;
652
+ chunk_overlap_tokens: z.ZodNumber;
653
+ encoding_name: z.ZodOptional<z.ZodString>;
654
+ }, "strip", z.ZodTypeAny, {
655
+ max_chunk_size_tokens: number;
656
+ chunk_overlap_tokens: number;
657
+ encoding_name?: string | undefined;
658
+ }, {
659
+ max_chunk_size_tokens: number;
660
+ chunk_overlap_tokens: number;
661
+ encoding_name?: string | undefined;
662
+ }>>;
663
+ markdown_chars_configuration: z.ZodOptional<z.ZodObject<{
664
+ max_chunk_size_chars: z.ZodNumber;
665
+ chunk_overlap_chars: z.ZodNumber;
666
+ }, "strip", z.ZodTypeAny, {
667
+ max_chunk_size_chars: number;
668
+ chunk_overlap_chars: number;
669
+ }, {
670
+ max_chunk_size_chars: number;
671
+ chunk_overlap_chars: number;
672
+ }>>;
673
+ code_tokens_configuration: z.ZodOptional<z.ZodObject<{
674
+ max_chunk_size_tokens: z.ZodNumber;
675
+ chunk_overlap_tokens: z.ZodNumber;
676
+ encoding_name: z.ZodOptional<z.ZodString>;
677
+ }, "strip", z.ZodTypeAny, {
678
+ max_chunk_size_tokens: number;
679
+ chunk_overlap_tokens: number;
680
+ encoding_name?: string | undefined;
681
+ }, {
682
+ max_chunk_size_tokens: number;
683
+ chunk_overlap_tokens: number;
684
+ encoding_name?: string | undefined;
685
+ }>>;
686
+ code_chars_configuration: z.ZodOptional<z.ZodObject<{
687
+ max_chunk_size_chars: z.ZodNumber;
688
+ chunk_overlap_chars: z.ZodNumber;
689
+ }, "strip", z.ZodTypeAny, {
690
+ max_chunk_size_chars: number;
691
+ chunk_overlap_chars: number;
692
+ }, {
693
+ max_chunk_size_chars: number;
694
+ chunk_overlap_chars: number;
695
+ }>>;
696
+ table_configuration: z.ZodOptional<z.ZodObject<{
697
+ max_chunk_size_tokens: z.ZodNumber;
698
+ encoding_name: z.ZodOptional<z.ZodString>;
699
+ }, "strip", z.ZodTypeAny, {
700
+ max_chunk_size_tokens: number;
701
+ encoding_name?: string | undefined;
702
+ }, {
703
+ max_chunk_size_tokens: number;
704
+ encoding_name?: string | undefined;
705
+ }>>;
706
+ bytes_configuration: z.ZodOptional<z.ZodObject<{
707
+ max_chunk_size_bytes: z.ZodNumber;
708
+ chunk_overlap_bytes: z.ZodNumber;
709
+ }, "strip", z.ZodTypeAny, {
710
+ max_chunk_size_bytes: number;
711
+ chunk_overlap_bytes: number;
712
+ }, {
713
+ max_chunk_size_bytes: number;
714
+ chunk_overlap_bytes: number;
715
+ }>>;
716
+ strip_whitespace: z.ZodOptional<z.ZodBoolean>;
717
+ inject_name_into_chunks: z.ZodOptional<z.ZodBoolean>;
718
+ }, "strip", z.ZodTypeAny, {
719
+ chars_configuration?: {
720
+ max_chunk_size_chars: number;
721
+ chunk_overlap_chars: number;
722
+ } | undefined;
723
+ tokens_configuration?: {
724
+ max_chunk_size_tokens: number;
725
+ chunk_overlap_tokens: number;
726
+ encoding_name?: string | undefined;
727
+ } | undefined;
728
+ markdown_tokens_configuration?: {
729
+ max_chunk_size_tokens: number;
730
+ chunk_overlap_tokens: number;
731
+ encoding_name?: string | undefined;
732
+ } | undefined;
733
+ markdown_chars_configuration?: {
734
+ max_chunk_size_chars: number;
735
+ chunk_overlap_chars: number;
736
+ } | undefined;
737
+ code_tokens_configuration?: {
738
+ max_chunk_size_tokens: number;
739
+ chunk_overlap_tokens: number;
740
+ encoding_name?: string | undefined;
741
+ } | undefined;
742
+ code_chars_configuration?: {
743
+ max_chunk_size_chars: number;
744
+ chunk_overlap_chars: number;
745
+ } | undefined;
746
+ table_configuration?: {
747
+ max_chunk_size_tokens: number;
748
+ encoding_name?: string | undefined;
749
+ } | undefined;
750
+ bytes_configuration?: {
751
+ max_chunk_size_bytes: number;
752
+ chunk_overlap_bytes: number;
753
+ } | undefined;
754
+ strip_whitespace?: boolean | undefined;
755
+ inject_name_into_chunks?: boolean | undefined;
756
+ }, {
757
+ chars_configuration?: {
758
+ max_chunk_size_chars: number;
759
+ chunk_overlap_chars: number;
760
+ } | undefined;
761
+ tokens_configuration?: {
762
+ max_chunk_size_tokens: number;
763
+ chunk_overlap_tokens: number;
764
+ encoding_name?: string | undefined;
765
+ } | undefined;
766
+ markdown_tokens_configuration?: {
767
+ max_chunk_size_tokens: number;
768
+ chunk_overlap_tokens: number;
769
+ encoding_name?: string | undefined;
770
+ } | undefined;
771
+ markdown_chars_configuration?: {
772
+ max_chunk_size_chars: number;
773
+ chunk_overlap_chars: number;
774
+ } | undefined;
775
+ code_tokens_configuration?: {
776
+ max_chunk_size_tokens: number;
777
+ chunk_overlap_tokens: number;
778
+ encoding_name?: string | undefined;
779
+ } | undefined;
780
+ code_chars_configuration?: {
781
+ max_chunk_size_chars: number;
782
+ chunk_overlap_chars: number;
783
+ } | undefined;
784
+ table_configuration?: {
785
+ max_chunk_size_tokens: number;
786
+ encoding_name?: string | undefined;
787
+ } | undefined;
788
+ bytes_configuration?: {
789
+ max_chunk_size_bytes: number;
790
+ chunk_overlap_bytes: number;
791
+ } | undefined;
792
+ strip_whitespace?: boolean | undefined;
793
+ inject_name_into_chunks?: boolean | undefined;
794
+ }>>;
795
+ metric_space: z.ZodOptional<z.ZodEnum<["HNSW_METRIC_UNKNOWN", "HNSW_METRIC_COSINE", "HNSW_METRIC_EUCLIDEAN", "HNSW_METRIC_INNER_PRODUCT"]>>;
796
+ field_definitions: z.ZodOptional<z.ZodArray<z.ZodObject<{
797
+ key: z.ZodString;
798
+ required: z.ZodOptional<z.ZodBoolean>;
799
+ unique: z.ZodOptional<z.ZodBoolean>;
800
+ inject_into_chunk: z.ZodOptional<z.ZodBoolean>;
801
+ description: z.ZodOptional<z.ZodString>;
802
+ }, "strip", z.ZodTypeAny, {
803
+ key: string;
804
+ description?: string | undefined;
805
+ required?: boolean | undefined;
806
+ unique?: boolean | undefined;
807
+ inject_into_chunk?: boolean | undefined;
808
+ }, {
809
+ key: string;
810
+ description?: string | undefined;
811
+ required?: boolean | undefined;
812
+ unique?: boolean | undefined;
813
+ inject_into_chunk?: boolean | undefined;
814
+ }>, "many">>;
815
+ }, "strip", z.ZodTypeAny, {
816
+ collection_name: string;
817
+ collection_description?: string | undefined;
818
+ team_id?: string | undefined;
819
+ index_configuration?: {
820
+ model_name: string;
821
+ } | undefined;
822
+ chunk_configuration?: {
823
+ chars_configuration?: {
824
+ max_chunk_size_chars: number;
825
+ chunk_overlap_chars: number;
826
+ } | undefined;
827
+ tokens_configuration?: {
828
+ max_chunk_size_tokens: number;
829
+ chunk_overlap_tokens: number;
830
+ encoding_name?: string | undefined;
831
+ } | undefined;
832
+ markdown_tokens_configuration?: {
833
+ max_chunk_size_tokens: number;
834
+ chunk_overlap_tokens: number;
835
+ encoding_name?: string | undefined;
836
+ } | undefined;
837
+ markdown_chars_configuration?: {
838
+ max_chunk_size_chars: number;
839
+ chunk_overlap_chars: number;
840
+ } | undefined;
841
+ code_tokens_configuration?: {
842
+ max_chunk_size_tokens: number;
843
+ chunk_overlap_tokens: number;
844
+ encoding_name?: string | undefined;
845
+ } | undefined;
846
+ code_chars_configuration?: {
847
+ max_chunk_size_chars: number;
848
+ chunk_overlap_chars: number;
849
+ } | undefined;
850
+ table_configuration?: {
851
+ max_chunk_size_tokens: number;
852
+ encoding_name?: string | undefined;
853
+ } | undefined;
854
+ bytes_configuration?: {
855
+ max_chunk_size_bytes: number;
856
+ chunk_overlap_bytes: number;
857
+ } | undefined;
858
+ strip_whitespace?: boolean | undefined;
859
+ inject_name_into_chunks?: boolean | undefined;
860
+ } | undefined;
861
+ metric_space?: "HNSW_METRIC_UNKNOWN" | "HNSW_METRIC_COSINE" | "HNSW_METRIC_EUCLIDEAN" | "HNSW_METRIC_INNER_PRODUCT" | undefined;
862
+ field_definitions?: {
863
+ key: string;
864
+ description?: string | undefined;
865
+ required?: boolean | undefined;
866
+ unique?: boolean | undefined;
867
+ inject_into_chunk?: boolean | undefined;
868
+ }[] | undefined;
869
+ }, {
870
+ collection_name: string;
871
+ collection_description?: string | undefined;
872
+ team_id?: string | undefined;
873
+ index_configuration?: {
874
+ model_name: string;
875
+ } | undefined;
876
+ chunk_configuration?: {
877
+ chars_configuration?: {
878
+ max_chunk_size_chars: number;
879
+ chunk_overlap_chars: number;
880
+ } | undefined;
881
+ tokens_configuration?: {
882
+ max_chunk_size_tokens: number;
883
+ chunk_overlap_tokens: number;
884
+ encoding_name?: string | undefined;
885
+ } | undefined;
886
+ markdown_tokens_configuration?: {
887
+ max_chunk_size_tokens: number;
888
+ chunk_overlap_tokens: number;
889
+ encoding_name?: string | undefined;
890
+ } | undefined;
891
+ markdown_chars_configuration?: {
892
+ max_chunk_size_chars: number;
893
+ chunk_overlap_chars: number;
894
+ } | undefined;
895
+ code_tokens_configuration?: {
896
+ max_chunk_size_tokens: number;
897
+ chunk_overlap_tokens: number;
898
+ encoding_name?: string | undefined;
899
+ } | undefined;
900
+ code_chars_configuration?: {
901
+ max_chunk_size_chars: number;
902
+ chunk_overlap_chars: number;
903
+ } | undefined;
904
+ table_configuration?: {
905
+ max_chunk_size_tokens: number;
906
+ encoding_name?: string | undefined;
907
+ } | undefined;
908
+ bytes_configuration?: {
909
+ max_chunk_size_bytes: number;
910
+ chunk_overlap_bytes: number;
911
+ } | undefined;
912
+ strip_whitespace?: boolean | undefined;
913
+ inject_name_into_chunks?: boolean | undefined;
914
+ } | undefined;
915
+ metric_space?: "HNSW_METRIC_UNKNOWN" | "HNSW_METRIC_COSINE" | "HNSW_METRIC_EUCLIDEAN" | "HNSW_METRIC_INNER_PRODUCT" | undefined;
916
+ field_definitions?: {
917
+ key: string;
918
+ description?: string | undefined;
919
+ required?: boolean | undefined;
920
+ unique?: boolean | undefined;
921
+ inject_into_chunk?: boolean | undefined;
922
+ }[] | undefined;
923
+ }>;
924
+ export declare const XaiCollectionUpdateRequestSchema: z.ZodObject<{
925
+ team_id: z.ZodOptional<z.ZodString>;
926
+ collection_name: z.ZodOptional<z.ZodString>;
927
+ collection_description: z.ZodOptional<z.ZodString>;
928
+ chunk_configuration: z.ZodOptional<z.ZodObject<{
929
+ chars_configuration: z.ZodOptional<z.ZodObject<{
930
+ max_chunk_size_chars: z.ZodNumber;
931
+ chunk_overlap_chars: z.ZodNumber;
932
+ }, "strip", z.ZodTypeAny, {
933
+ max_chunk_size_chars: number;
934
+ chunk_overlap_chars: number;
935
+ }, {
936
+ max_chunk_size_chars: number;
937
+ chunk_overlap_chars: number;
938
+ }>>;
939
+ tokens_configuration: z.ZodOptional<z.ZodObject<{
940
+ max_chunk_size_tokens: z.ZodNumber;
941
+ chunk_overlap_tokens: z.ZodNumber;
942
+ encoding_name: z.ZodOptional<z.ZodString>;
943
+ }, "strip", z.ZodTypeAny, {
944
+ max_chunk_size_tokens: number;
945
+ chunk_overlap_tokens: number;
946
+ encoding_name?: string | undefined;
947
+ }, {
948
+ max_chunk_size_tokens: number;
949
+ chunk_overlap_tokens: number;
950
+ encoding_name?: string | undefined;
951
+ }>>;
952
+ markdown_tokens_configuration: z.ZodOptional<z.ZodObject<{
953
+ max_chunk_size_tokens: z.ZodNumber;
954
+ chunk_overlap_tokens: z.ZodNumber;
955
+ encoding_name: z.ZodOptional<z.ZodString>;
956
+ }, "strip", z.ZodTypeAny, {
957
+ max_chunk_size_tokens: number;
958
+ chunk_overlap_tokens: number;
959
+ encoding_name?: string | undefined;
960
+ }, {
961
+ max_chunk_size_tokens: number;
962
+ chunk_overlap_tokens: number;
963
+ encoding_name?: string | undefined;
964
+ }>>;
965
+ markdown_chars_configuration: z.ZodOptional<z.ZodObject<{
966
+ max_chunk_size_chars: z.ZodNumber;
967
+ chunk_overlap_chars: z.ZodNumber;
968
+ }, "strip", z.ZodTypeAny, {
969
+ max_chunk_size_chars: number;
970
+ chunk_overlap_chars: number;
971
+ }, {
972
+ max_chunk_size_chars: number;
973
+ chunk_overlap_chars: number;
974
+ }>>;
975
+ code_tokens_configuration: z.ZodOptional<z.ZodObject<{
976
+ max_chunk_size_tokens: z.ZodNumber;
977
+ chunk_overlap_tokens: z.ZodNumber;
978
+ encoding_name: z.ZodOptional<z.ZodString>;
979
+ }, "strip", z.ZodTypeAny, {
980
+ max_chunk_size_tokens: number;
981
+ chunk_overlap_tokens: number;
982
+ encoding_name?: string | undefined;
983
+ }, {
984
+ max_chunk_size_tokens: number;
985
+ chunk_overlap_tokens: number;
986
+ encoding_name?: string | undefined;
987
+ }>>;
988
+ code_chars_configuration: z.ZodOptional<z.ZodObject<{
989
+ max_chunk_size_chars: z.ZodNumber;
990
+ chunk_overlap_chars: z.ZodNumber;
991
+ }, "strip", z.ZodTypeAny, {
992
+ max_chunk_size_chars: number;
993
+ chunk_overlap_chars: number;
994
+ }, {
995
+ max_chunk_size_chars: number;
996
+ chunk_overlap_chars: number;
997
+ }>>;
998
+ table_configuration: z.ZodOptional<z.ZodObject<{
999
+ max_chunk_size_tokens: z.ZodNumber;
1000
+ encoding_name: z.ZodOptional<z.ZodString>;
1001
+ }, "strip", z.ZodTypeAny, {
1002
+ max_chunk_size_tokens: number;
1003
+ encoding_name?: string | undefined;
1004
+ }, {
1005
+ max_chunk_size_tokens: number;
1006
+ encoding_name?: string | undefined;
1007
+ }>>;
1008
+ bytes_configuration: z.ZodOptional<z.ZodObject<{
1009
+ max_chunk_size_bytes: z.ZodNumber;
1010
+ chunk_overlap_bytes: z.ZodNumber;
1011
+ }, "strip", z.ZodTypeAny, {
1012
+ max_chunk_size_bytes: number;
1013
+ chunk_overlap_bytes: number;
1014
+ }, {
1015
+ max_chunk_size_bytes: number;
1016
+ chunk_overlap_bytes: number;
1017
+ }>>;
1018
+ strip_whitespace: z.ZodOptional<z.ZodBoolean>;
1019
+ inject_name_into_chunks: z.ZodOptional<z.ZodBoolean>;
1020
+ }, "strip", z.ZodTypeAny, {
1021
+ chars_configuration?: {
1022
+ max_chunk_size_chars: number;
1023
+ chunk_overlap_chars: number;
1024
+ } | undefined;
1025
+ tokens_configuration?: {
1026
+ max_chunk_size_tokens: number;
1027
+ chunk_overlap_tokens: number;
1028
+ encoding_name?: string | undefined;
1029
+ } | undefined;
1030
+ markdown_tokens_configuration?: {
1031
+ max_chunk_size_tokens: number;
1032
+ chunk_overlap_tokens: number;
1033
+ encoding_name?: string | undefined;
1034
+ } | undefined;
1035
+ markdown_chars_configuration?: {
1036
+ max_chunk_size_chars: number;
1037
+ chunk_overlap_chars: number;
1038
+ } | undefined;
1039
+ code_tokens_configuration?: {
1040
+ max_chunk_size_tokens: number;
1041
+ chunk_overlap_tokens: number;
1042
+ encoding_name?: string | undefined;
1043
+ } | undefined;
1044
+ code_chars_configuration?: {
1045
+ max_chunk_size_chars: number;
1046
+ chunk_overlap_chars: number;
1047
+ } | undefined;
1048
+ table_configuration?: {
1049
+ max_chunk_size_tokens: number;
1050
+ encoding_name?: string | undefined;
1051
+ } | undefined;
1052
+ bytes_configuration?: {
1053
+ max_chunk_size_bytes: number;
1054
+ chunk_overlap_bytes: number;
1055
+ } | undefined;
1056
+ strip_whitespace?: boolean | undefined;
1057
+ inject_name_into_chunks?: boolean | undefined;
1058
+ }, {
1059
+ chars_configuration?: {
1060
+ max_chunk_size_chars: number;
1061
+ chunk_overlap_chars: number;
1062
+ } | undefined;
1063
+ tokens_configuration?: {
1064
+ max_chunk_size_tokens: number;
1065
+ chunk_overlap_tokens: number;
1066
+ encoding_name?: string | undefined;
1067
+ } | undefined;
1068
+ markdown_tokens_configuration?: {
1069
+ max_chunk_size_tokens: number;
1070
+ chunk_overlap_tokens: number;
1071
+ encoding_name?: string | undefined;
1072
+ } | undefined;
1073
+ markdown_chars_configuration?: {
1074
+ max_chunk_size_chars: number;
1075
+ chunk_overlap_chars: number;
1076
+ } | undefined;
1077
+ code_tokens_configuration?: {
1078
+ max_chunk_size_tokens: number;
1079
+ chunk_overlap_tokens: number;
1080
+ encoding_name?: string | undefined;
1081
+ } | undefined;
1082
+ code_chars_configuration?: {
1083
+ max_chunk_size_chars: number;
1084
+ chunk_overlap_chars: number;
1085
+ } | undefined;
1086
+ table_configuration?: {
1087
+ max_chunk_size_tokens: number;
1088
+ encoding_name?: string | undefined;
1089
+ } | undefined;
1090
+ bytes_configuration?: {
1091
+ max_chunk_size_bytes: number;
1092
+ chunk_overlap_bytes: number;
1093
+ } | undefined;
1094
+ strip_whitespace?: boolean | undefined;
1095
+ inject_name_into_chunks?: boolean | undefined;
1096
+ }>>;
1097
+ field_definition_updates: z.ZodOptional<z.ZodArray<z.ZodObject<{
1098
+ field_definition: z.ZodObject<{
1099
+ key: z.ZodString;
1100
+ required: z.ZodOptional<z.ZodBoolean>;
1101
+ unique: z.ZodOptional<z.ZodBoolean>;
1102
+ inject_into_chunk: z.ZodOptional<z.ZodBoolean>;
1103
+ description: z.ZodOptional<z.ZodString>;
1104
+ }, "strip", z.ZodTypeAny, {
1105
+ key: string;
1106
+ description?: string | undefined;
1107
+ required?: boolean | undefined;
1108
+ unique?: boolean | undefined;
1109
+ inject_into_chunk?: boolean | undefined;
1110
+ }, {
1111
+ key: string;
1112
+ description?: string | undefined;
1113
+ required?: boolean | undefined;
1114
+ unique?: boolean | undefined;
1115
+ inject_into_chunk?: boolean | undefined;
1116
+ }>;
1117
+ operation: z.ZodEnum<["FIELD_DEFINITION_ADD", "FIELD_DEFINITION_DELETE"]>;
1118
+ }, "strip", z.ZodTypeAny, {
1119
+ field_definition: {
1120
+ key: string;
1121
+ description?: string | undefined;
1122
+ required?: boolean | undefined;
1123
+ unique?: boolean | undefined;
1124
+ inject_into_chunk?: boolean | undefined;
1125
+ };
1126
+ operation: "FIELD_DEFINITION_ADD" | "FIELD_DEFINITION_DELETE";
1127
+ }, {
1128
+ field_definition: {
1129
+ key: string;
1130
+ description?: string | undefined;
1131
+ required?: boolean | undefined;
1132
+ unique?: boolean | undefined;
1133
+ inject_into_chunk?: boolean | undefined;
1134
+ };
1135
+ operation: "FIELD_DEFINITION_ADD" | "FIELD_DEFINITION_DELETE";
1136
+ }>, "many">>;
1137
+ }, "strip", z.ZodTypeAny, {
1138
+ collection_name?: string | undefined;
1139
+ collection_description?: string | undefined;
1140
+ team_id?: string | undefined;
1141
+ chunk_configuration?: {
1142
+ chars_configuration?: {
1143
+ max_chunk_size_chars: number;
1144
+ chunk_overlap_chars: number;
1145
+ } | undefined;
1146
+ tokens_configuration?: {
1147
+ max_chunk_size_tokens: number;
1148
+ chunk_overlap_tokens: number;
1149
+ encoding_name?: string | undefined;
1150
+ } | undefined;
1151
+ markdown_tokens_configuration?: {
1152
+ max_chunk_size_tokens: number;
1153
+ chunk_overlap_tokens: number;
1154
+ encoding_name?: string | undefined;
1155
+ } | undefined;
1156
+ markdown_chars_configuration?: {
1157
+ max_chunk_size_chars: number;
1158
+ chunk_overlap_chars: number;
1159
+ } | undefined;
1160
+ code_tokens_configuration?: {
1161
+ max_chunk_size_tokens: number;
1162
+ chunk_overlap_tokens: number;
1163
+ encoding_name?: string | undefined;
1164
+ } | undefined;
1165
+ code_chars_configuration?: {
1166
+ max_chunk_size_chars: number;
1167
+ chunk_overlap_chars: number;
1168
+ } | undefined;
1169
+ table_configuration?: {
1170
+ max_chunk_size_tokens: number;
1171
+ encoding_name?: string | undefined;
1172
+ } | undefined;
1173
+ bytes_configuration?: {
1174
+ max_chunk_size_bytes: number;
1175
+ chunk_overlap_bytes: number;
1176
+ } | undefined;
1177
+ strip_whitespace?: boolean | undefined;
1178
+ inject_name_into_chunks?: boolean | undefined;
1179
+ } | undefined;
1180
+ field_definition_updates?: {
1181
+ field_definition: {
1182
+ key: string;
1183
+ description?: string | undefined;
1184
+ required?: boolean | undefined;
1185
+ unique?: boolean | undefined;
1186
+ inject_into_chunk?: boolean | undefined;
1187
+ };
1188
+ operation: "FIELD_DEFINITION_ADD" | "FIELD_DEFINITION_DELETE";
1189
+ }[] | undefined;
1190
+ }, {
1191
+ collection_name?: string | undefined;
1192
+ collection_description?: string | undefined;
1193
+ team_id?: string | undefined;
1194
+ chunk_configuration?: {
1195
+ chars_configuration?: {
1196
+ max_chunk_size_chars: number;
1197
+ chunk_overlap_chars: number;
1198
+ } | undefined;
1199
+ tokens_configuration?: {
1200
+ max_chunk_size_tokens: number;
1201
+ chunk_overlap_tokens: number;
1202
+ encoding_name?: string | undefined;
1203
+ } | undefined;
1204
+ markdown_tokens_configuration?: {
1205
+ max_chunk_size_tokens: number;
1206
+ chunk_overlap_tokens: number;
1207
+ encoding_name?: string | undefined;
1208
+ } | undefined;
1209
+ markdown_chars_configuration?: {
1210
+ max_chunk_size_chars: number;
1211
+ chunk_overlap_chars: number;
1212
+ } | undefined;
1213
+ code_tokens_configuration?: {
1214
+ max_chunk_size_tokens: number;
1215
+ chunk_overlap_tokens: number;
1216
+ encoding_name?: string | undefined;
1217
+ } | undefined;
1218
+ code_chars_configuration?: {
1219
+ max_chunk_size_chars: number;
1220
+ chunk_overlap_chars: number;
1221
+ } | undefined;
1222
+ table_configuration?: {
1223
+ max_chunk_size_tokens: number;
1224
+ encoding_name?: string | undefined;
1225
+ } | undefined;
1226
+ bytes_configuration?: {
1227
+ max_chunk_size_bytes: number;
1228
+ chunk_overlap_bytes: number;
1229
+ } | undefined;
1230
+ strip_whitespace?: boolean | undefined;
1231
+ inject_name_into_chunks?: boolean | undefined;
1232
+ } | undefined;
1233
+ field_definition_updates?: {
1234
+ field_definition: {
1235
+ key: string;
1236
+ description?: string | undefined;
1237
+ required?: boolean | undefined;
1238
+ unique?: boolean | undefined;
1239
+ inject_into_chunk?: boolean | undefined;
1240
+ };
1241
+ operation: "FIELD_DEFINITION_ADD" | "FIELD_DEFINITION_DELETE";
1242
+ }[] | undefined;
1243
+ }>;
1244
+ export declare const XaiDocumentAddRequestSchema: z.ZodObject<{
1245
+ team_id: z.ZodOptional<z.ZodString>;
1246
+ fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1247
+ }, "strip", z.ZodTypeAny, {
1248
+ team_id?: string | undefined;
1249
+ fields?: Record<string, string> | undefined;
1250
+ }, {
1251
+ team_id?: string | undefined;
1252
+ fields?: Record<string, string> | undefined;
1253
+ }>;
1254
+ export declare const XaiDocumentSearchRequestSchema: z.ZodObject<{
1255
+ query: z.ZodString;
1256
+ source: z.ZodObject<{
1257
+ collection_ids: z.ZodArray<z.ZodString, "many">;
1258
+ rag_pipeline: z.ZodOptional<z.ZodEnum<["chroma_db", "es"]>>;
1259
+ }, "strip", z.ZodTypeAny, {
1260
+ collection_ids: string[];
1261
+ rag_pipeline?: "chroma_db" | "es" | undefined;
1262
+ }, {
1263
+ collection_ids: string[];
1264
+ rag_pipeline?: "chroma_db" | "es" | undefined;
1265
+ }>;
1266
+ filter: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1267
+ instructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1268
+ limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1269
+ ranking_metric: z.ZodOptional<z.ZodEnum<["RANKING_METRIC_UNKNOWN", "RANKING_METRIC_L2_DISTANCE", "RANKING_METRIC_COSINE_SIMILARITY"]>>;
1270
+ group_by: z.ZodOptional<z.ZodObject<{
1271
+ keys: z.ZodArray<z.ZodString, "many">;
1272
+ aggregate: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1273
+ }, "strip", z.ZodTypeAny, {
1274
+ keys: string[];
1275
+ aggregate?: Record<string, unknown> | undefined;
1276
+ }, {
1277
+ keys: string[];
1278
+ aggregate?: Record<string, unknown> | undefined;
1279
+ }>>;
1280
+ retrieval_mode: z.ZodOptional<z.ZodObject<{
1281
+ type: z.ZodEnum<["hybrid", "keyword", "semantic"]>;
1282
+ }, "strip", z.ZodTypeAny, {
1283
+ type: "hybrid" | "keyword" | "semantic";
1284
+ }, {
1285
+ type: "hybrid" | "keyword" | "semantic";
1286
+ }>>;
1287
+ }, "strip", z.ZodTypeAny, {
1288
+ query: string;
1289
+ source: {
1290
+ collection_ids: string[];
1291
+ rag_pipeline?: "chroma_db" | "es" | undefined;
1292
+ };
1293
+ filter?: string | null | undefined;
1294
+ instructions?: string | null | undefined;
1295
+ limit?: number | null | undefined;
1296
+ ranking_metric?: "RANKING_METRIC_UNKNOWN" | "RANKING_METRIC_L2_DISTANCE" | "RANKING_METRIC_COSINE_SIMILARITY" | undefined;
1297
+ group_by?: {
1298
+ keys: string[];
1299
+ aggregate?: Record<string, unknown> | undefined;
1300
+ } | undefined;
1301
+ retrieval_mode?: {
1302
+ type: "hybrid" | "keyword" | "semantic";
1303
+ } | undefined;
1304
+ }, {
1305
+ query: string;
1306
+ source: {
1307
+ collection_ids: string[];
1308
+ rag_pipeline?: "chroma_db" | "es" | undefined;
1309
+ };
1310
+ filter?: string | null | undefined;
1311
+ instructions?: string | null | undefined;
1312
+ limit?: number | null | undefined;
1313
+ ranking_metric?: "RANKING_METRIC_UNKNOWN" | "RANKING_METRIC_L2_DISTANCE" | "RANKING_METRIC_COSINE_SIMILARITY" | undefined;
1314
+ group_by?: {
1315
+ keys: string[];
1316
+ aggregate?: Record<string, unknown> | undefined;
1317
+ } | undefined;
1318
+ retrieval_mode?: {
1319
+ type: "hybrid" | "keyword" | "semantic";
1320
+ } | undefined;
1321
+ }>;
1322
+ export declare const XaiResponseInputTextContentSchema: z.ZodObject<{
1323
+ type: z.ZodLiteral<"input_text">;
1324
+ text: z.ZodString;
1325
+ }, "strip", z.ZodTypeAny, {
1326
+ type: "input_text";
1327
+ text: string;
1328
+ }, {
1329
+ type: "input_text";
1330
+ text: string;
1331
+ }>;
1332
+ export declare const XaiResponseInputImageContentSchema: z.ZodObject<{
1333
+ type: z.ZodLiteral<"input_image">;
1334
+ image_url: z.ZodOptional<z.ZodString>;
1335
+ file_id: z.ZodOptional<z.ZodString>;
1336
+ detail: z.ZodOptional<z.ZodEnum<["auto", "low", "high"]>>;
1337
+ }, "strip", z.ZodTypeAny, {
1338
+ type: "input_image";
1339
+ image_url?: string | undefined;
1340
+ file_id?: string | undefined;
1341
+ detail?: "auto" | "low" | "high" | undefined;
1342
+ }, {
1343
+ type: "input_image";
1344
+ image_url?: string | undefined;
1345
+ file_id?: string | undefined;
1346
+ detail?: "auto" | "low" | "high" | undefined;
1347
+ }>;
1348
+ export declare const XaiResponseInputContentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1349
+ type: z.ZodLiteral<"input_text">;
1350
+ text: z.ZodString;
1351
+ }, "strip", z.ZodTypeAny, {
1352
+ type: "input_text";
1353
+ text: string;
1354
+ }, {
1355
+ type: "input_text";
1356
+ text: string;
1357
+ }>, z.ZodObject<{
1358
+ type: z.ZodLiteral<"input_image">;
1359
+ image_url: z.ZodOptional<z.ZodString>;
1360
+ file_id: z.ZodOptional<z.ZodString>;
1361
+ detail: z.ZodOptional<z.ZodEnum<["auto", "low", "high"]>>;
1362
+ }, "strip", z.ZodTypeAny, {
1363
+ type: "input_image";
1364
+ image_url?: string | undefined;
1365
+ file_id?: string | undefined;
1366
+ detail?: "auto" | "low" | "high" | undefined;
1367
+ }, {
1368
+ type: "input_image";
1369
+ image_url?: string | undefined;
1370
+ file_id?: string | undefined;
1371
+ detail?: "auto" | "low" | "high" | undefined;
1372
+ }>]>;
1373
+ export declare const XaiResponseInputMessageSchema: z.ZodObject<{
1374
+ role: z.ZodEnum<["user", "assistant", "system", "developer"]>;
1375
+ content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1376
+ type: z.ZodLiteral<"input_text">;
1377
+ text: z.ZodString;
1378
+ }, "strip", z.ZodTypeAny, {
1379
+ type: "input_text";
1380
+ text: string;
1381
+ }, {
1382
+ type: "input_text";
1383
+ text: string;
1384
+ }>, z.ZodObject<{
1385
+ type: z.ZodLiteral<"input_image">;
1386
+ image_url: z.ZodOptional<z.ZodString>;
1387
+ file_id: z.ZodOptional<z.ZodString>;
1388
+ detail: z.ZodOptional<z.ZodEnum<["auto", "low", "high"]>>;
1389
+ }, "strip", z.ZodTypeAny, {
1390
+ type: "input_image";
1391
+ image_url?: string | undefined;
1392
+ file_id?: string | undefined;
1393
+ detail?: "auto" | "low" | "high" | undefined;
1394
+ }, {
1395
+ type: "input_image";
1396
+ image_url?: string | undefined;
1397
+ file_id?: string | undefined;
1398
+ detail?: "auto" | "low" | "high" | undefined;
1399
+ }>]>, "many">]>;
1400
+ }, "strip", z.ZodTypeAny, {
1401
+ role: "user" | "assistant" | "system" | "developer";
1402
+ content: string | ({
1403
+ type: "input_text";
1404
+ text: string;
1405
+ } | {
1406
+ type: "input_image";
1407
+ image_url?: string | undefined;
1408
+ file_id?: string | undefined;
1409
+ detail?: "auto" | "low" | "high" | undefined;
1410
+ })[];
1411
+ }, {
1412
+ role: "user" | "assistant" | "system" | "developer";
1413
+ content: string | ({
1414
+ type: "input_text";
1415
+ text: string;
1416
+ } | {
1417
+ type: "input_image";
1418
+ image_url?: string | undefined;
1419
+ file_id?: string | undefined;
1420
+ detail?: "auto" | "low" | "high" | undefined;
1421
+ })[];
1422
+ }>;
1423
+ export declare const XaiResponseFunctionCallOutputSchema: z.ZodObject<{
1424
+ type: z.ZodLiteral<"function_call_output">;
1425
+ call_id: z.ZodString;
1426
+ output: z.ZodString;
1427
+ }, "strip", z.ZodTypeAny, {
1428
+ type: "function_call_output";
1429
+ output: string;
1430
+ call_id: string;
1431
+ }, {
1432
+ type: "function_call_output";
1433
+ output: string;
1434
+ call_id: string;
1435
+ }>;
1436
+ export declare const XaiResponseItemReferenceSchema: z.ZodObject<{
1437
+ type: z.ZodLiteral<"item_reference">;
1438
+ id: z.ZodString;
1439
+ }, "strip", z.ZodTypeAny, {
1440
+ type: "item_reference";
1441
+ id: string;
1442
+ }, {
1443
+ type: "item_reference";
1444
+ id: string;
1445
+ }>;
1446
+ export declare const XaiResponseFunctionToolSchema: z.ZodObject<{
1447
+ type: z.ZodLiteral<"function">;
1448
+ name: z.ZodString;
1449
+ description: z.ZodOptional<z.ZodString>;
1450
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1451
+ strict: z.ZodOptional<z.ZodBoolean>;
1452
+ }, "strip", z.ZodTypeAny, {
1453
+ type: "function";
1454
+ name: string;
1455
+ description?: string | undefined;
1456
+ parameters?: Record<string, unknown> | undefined;
1457
+ strict?: boolean | undefined;
1458
+ }, {
1459
+ type: "function";
1460
+ name: string;
1461
+ description?: string | undefined;
1462
+ parameters?: Record<string, unknown> | undefined;
1463
+ strict?: boolean | undefined;
1464
+ }>;
1465
+ export declare const XaiResponseWebSearchToolSchema: z.ZodObject<{
1466
+ type: z.ZodEnum<["web_search", "web_search_preview"]>;
1467
+ filters: z.ZodOptional<z.ZodObject<{
1468
+ allowed_domains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1469
+ excluded_domains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1470
+ }, "strip", z.ZodTypeAny, {
1471
+ allowed_domains?: string[] | undefined;
1472
+ excluded_domains?: string[] | undefined;
1473
+ }, {
1474
+ allowed_domains?: string[] | undefined;
1475
+ excluded_domains?: string[] | undefined;
1476
+ }>>;
1477
+ search_context_size: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
1478
+ user_location: z.ZodOptional<z.ZodObject<{
1479
+ type: z.ZodLiteral<"approximate">;
1480
+ city: z.ZodOptional<z.ZodString>;
1481
+ state: z.ZodOptional<z.ZodString>;
1482
+ country: z.ZodOptional<z.ZodString>;
1483
+ timezone: z.ZodOptional<z.ZodString>;
1484
+ }, "strip", z.ZodTypeAny, {
1485
+ type: "approximate";
1486
+ city?: string | undefined;
1487
+ state?: string | undefined;
1488
+ country?: string | undefined;
1489
+ timezone?: string | undefined;
1490
+ }, {
1491
+ type: "approximate";
1492
+ city?: string | undefined;
1493
+ state?: string | undefined;
1494
+ country?: string | undefined;
1495
+ timezone?: string | undefined;
1496
+ }>>;
1497
+ }, "strip", z.ZodTypeAny, {
1498
+ type: "web_search" | "web_search_preview";
1499
+ filters?: {
1500
+ allowed_domains?: string[] | undefined;
1501
+ excluded_domains?: string[] | undefined;
1502
+ } | undefined;
1503
+ search_context_size?: "low" | "high" | "medium" | undefined;
1504
+ user_location?: {
1505
+ type: "approximate";
1506
+ city?: string | undefined;
1507
+ state?: string | undefined;
1508
+ country?: string | undefined;
1509
+ timezone?: string | undefined;
1510
+ } | undefined;
1511
+ }, {
1512
+ type: "web_search" | "web_search_preview";
1513
+ filters?: {
1514
+ allowed_domains?: string[] | undefined;
1515
+ excluded_domains?: string[] | undefined;
1516
+ } | undefined;
1517
+ search_context_size?: "low" | "high" | "medium" | undefined;
1518
+ user_location?: {
1519
+ type: "approximate";
1520
+ city?: string | undefined;
1521
+ state?: string | undefined;
1522
+ country?: string | undefined;
1523
+ timezone?: string | undefined;
1524
+ } | undefined;
1525
+ }>;
1526
+ export declare const XaiResponseFileSearchToolSchema: z.ZodObject<{
1527
+ type: z.ZodLiteral<"file_search">;
1528
+ vector_store_ids: z.ZodArray<z.ZodString, "many">;
1529
+ max_num_results: z.ZodOptional<z.ZodNumber>;
1530
+ }, "strip", z.ZodTypeAny, {
1531
+ type: "file_search";
1532
+ vector_store_ids: string[];
1533
+ max_num_results?: number | undefined;
1534
+ }, {
1535
+ type: "file_search";
1536
+ vector_store_ids: string[];
1537
+ max_num_results?: number | undefined;
1538
+ }>;
1539
+ export declare const XaiResponseToolSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1540
+ type: z.ZodLiteral<"function">;
1541
+ name: z.ZodString;
1542
+ description: z.ZodOptional<z.ZodString>;
1543
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1544
+ strict: z.ZodOptional<z.ZodBoolean>;
1545
+ }, "strip", z.ZodTypeAny, {
1546
+ type: "function";
1547
+ name: string;
1548
+ description?: string | undefined;
1549
+ parameters?: Record<string, unknown> | undefined;
1550
+ strict?: boolean | undefined;
1551
+ }, {
1552
+ type: "function";
1553
+ name: string;
1554
+ description?: string | undefined;
1555
+ parameters?: Record<string, unknown> | undefined;
1556
+ strict?: boolean | undefined;
1557
+ }>, z.ZodObject<{
1558
+ type: z.ZodLiteral<"file_search">;
1559
+ vector_store_ids: z.ZodArray<z.ZodString, "many">;
1560
+ max_num_results: z.ZodOptional<z.ZodNumber>;
1561
+ }, "strip", z.ZodTypeAny, {
1562
+ type: "file_search";
1563
+ vector_store_ids: string[];
1564
+ max_num_results?: number | undefined;
1565
+ }, {
1566
+ type: "file_search";
1567
+ vector_store_ids: string[];
1568
+ max_num_results?: number | undefined;
1569
+ }>, z.ZodObject<{
1570
+ filters: z.ZodOptional<z.ZodObject<{
1571
+ allowed_domains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1572
+ excluded_domains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1573
+ }, "strip", z.ZodTypeAny, {
1574
+ allowed_domains?: string[] | undefined;
1575
+ excluded_domains?: string[] | undefined;
1576
+ }, {
1577
+ allowed_domains?: string[] | undefined;
1578
+ excluded_domains?: string[] | undefined;
1579
+ }>>;
1580
+ search_context_size: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
1581
+ user_location: z.ZodOptional<z.ZodObject<{
1582
+ type: z.ZodLiteral<"approximate">;
1583
+ city: z.ZodOptional<z.ZodString>;
1584
+ state: z.ZodOptional<z.ZodString>;
1585
+ country: z.ZodOptional<z.ZodString>;
1586
+ timezone: z.ZodOptional<z.ZodString>;
1587
+ }, "strip", z.ZodTypeAny, {
1588
+ type: "approximate";
1589
+ city?: string | undefined;
1590
+ state?: string | undefined;
1591
+ country?: string | undefined;
1592
+ timezone?: string | undefined;
1593
+ }, {
1594
+ type: "approximate";
1595
+ city?: string | undefined;
1596
+ state?: string | undefined;
1597
+ country?: string | undefined;
1598
+ timezone?: string | undefined;
1599
+ }>>;
1600
+ } & {
1601
+ type: z.ZodLiteral<"web_search">;
1602
+ }, "strip", z.ZodTypeAny, {
1603
+ type: "web_search";
1604
+ filters?: {
1605
+ allowed_domains?: string[] | undefined;
1606
+ excluded_domains?: string[] | undefined;
1607
+ } | undefined;
1608
+ search_context_size?: "low" | "high" | "medium" | undefined;
1609
+ user_location?: {
1610
+ type: "approximate";
1611
+ city?: string | undefined;
1612
+ state?: string | undefined;
1613
+ country?: string | undefined;
1614
+ timezone?: string | undefined;
1615
+ } | undefined;
1616
+ }, {
1617
+ type: "web_search";
1618
+ filters?: {
1619
+ allowed_domains?: string[] | undefined;
1620
+ excluded_domains?: string[] | undefined;
1621
+ } | undefined;
1622
+ search_context_size?: "low" | "high" | "medium" | undefined;
1623
+ user_location?: {
1624
+ type: "approximate";
1625
+ city?: string | undefined;
1626
+ state?: string | undefined;
1627
+ country?: string | undefined;
1628
+ timezone?: string | undefined;
1629
+ } | undefined;
1630
+ }>, z.ZodObject<{
1631
+ filters: z.ZodOptional<z.ZodObject<{
1632
+ allowed_domains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1633
+ excluded_domains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1634
+ }, "strip", z.ZodTypeAny, {
1635
+ allowed_domains?: string[] | undefined;
1636
+ excluded_domains?: string[] | undefined;
1637
+ }, {
1638
+ allowed_domains?: string[] | undefined;
1639
+ excluded_domains?: string[] | undefined;
1640
+ }>>;
1641
+ search_context_size: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
1642
+ user_location: z.ZodOptional<z.ZodObject<{
1643
+ type: z.ZodLiteral<"approximate">;
1644
+ city: z.ZodOptional<z.ZodString>;
1645
+ state: z.ZodOptional<z.ZodString>;
1646
+ country: z.ZodOptional<z.ZodString>;
1647
+ timezone: z.ZodOptional<z.ZodString>;
1648
+ }, "strip", z.ZodTypeAny, {
1649
+ type: "approximate";
1650
+ city?: string | undefined;
1651
+ state?: string | undefined;
1652
+ country?: string | undefined;
1653
+ timezone?: string | undefined;
1654
+ }, {
1655
+ type: "approximate";
1656
+ city?: string | undefined;
1657
+ state?: string | undefined;
1658
+ country?: string | undefined;
1659
+ timezone?: string | undefined;
1660
+ }>>;
1661
+ } & {
1662
+ type: z.ZodLiteral<"web_search_preview">;
1663
+ }, "strip", z.ZodTypeAny, {
1664
+ type: "web_search_preview";
1665
+ filters?: {
1666
+ allowed_domains?: string[] | undefined;
1667
+ excluded_domains?: string[] | undefined;
1668
+ } | undefined;
1669
+ search_context_size?: "low" | "high" | "medium" | undefined;
1670
+ user_location?: {
1671
+ type: "approximate";
1672
+ city?: string | undefined;
1673
+ state?: string | undefined;
1674
+ country?: string | undefined;
1675
+ timezone?: string | undefined;
1676
+ } | undefined;
1677
+ }, {
1678
+ type: "web_search_preview";
1679
+ filters?: {
1680
+ allowed_domains?: string[] | undefined;
1681
+ excluded_domains?: string[] | undefined;
1682
+ } | undefined;
1683
+ search_context_size?: "low" | "high" | "medium" | undefined;
1684
+ user_location?: {
1685
+ type: "approximate";
1686
+ city?: string | undefined;
1687
+ state?: string | undefined;
1688
+ country?: string | undefined;
1689
+ timezone?: string | undefined;
1690
+ } | undefined;
1691
+ }>]>;
1692
+ export declare const XaiResponseTextFormatSchema: z.ZodObject<{
1693
+ format: z.ZodUnion<[z.ZodObject<{
1694
+ type: z.ZodLiteral<"text">;
1695
+ }, "strip", z.ZodTypeAny, {
1696
+ type: "text";
1697
+ }, {
1698
+ type: "text";
1699
+ }>, z.ZodObject<{
1700
+ type: z.ZodLiteral<"json_object">;
1701
+ }, "strip", z.ZodTypeAny, {
1702
+ type: "json_object";
1703
+ }, {
1704
+ type: "json_object";
1705
+ }>, z.ZodObject<{
1706
+ type: z.ZodLiteral<"json_schema">;
1707
+ name: z.ZodString;
1708
+ schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1709
+ description: z.ZodOptional<z.ZodString>;
1710
+ strict: z.ZodOptional<z.ZodBoolean>;
1711
+ }, "strip", z.ZodTypeAny, {
1712
+ type: "json_schema";
1713
+ name: string;
1714
+ schema: Record<string, unknown>;
1715
+ description?: string | undefined;
1716
+ strict?: boolean | undefined;
1717
+ }, {
1718
+ type: "json_schema";
1719
+ name: string;
1720
+ schema: Record<string, unknown>;
1721
+ description?: string | undefined;
1722
+ strict?: boolean | undefined;
1723
+ }>]>;
1724
+ }, "strip", z.ZodTypeAny, {
1725
+ format: {
1726
+ type: "text";
1727
+ } | {
1728
+ type: "json_object";
1729
+ } | {
1730
+ type: "json_schema";
1731
+ name: string;
1732
+ schema: Record<string, unknown>;
1733
+ description?: string | undefined;
1734
+ strict?: boolean | undefined;
1735
+ };
1736
+ }, {
1737
+ format: {
1738
+ type: "text";
1739
+ } | {
1740
+ type: "json_object";
1741
+ } | {
1742
+ type: "json_schema";
1743
+ name: string;
1744
+ schema: Record<string, unknown>;
1745
+ description?: string | undefined;
1746
+ strict?: boolean | undefined;
1747
+ };
1748
+ }>;
1749
+ export declare const XaiResponseReasoningSchema: z.ZodObject<{
1750
+ effort: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
1751
+ summary: z.ZodOptional<z.ZodEnum<["auto", "concise", "detailed"]>>;
1752
+ }, "strip", z.ZodTypeAny, {
1753
+ effort?: "low" | "high" | "medium" | undefined;
1754
+ summary?: "auto" | "concise" | "detailed" | undefined;
1755
+ }, {
1756
+ effort?: "low" | "high" | "medium" | undefined;
1757
+ summary?: "auto" | "concise" | "detailed" | undefined;
1758
+ }>;
1759
+ export declare const XaiResponseSearchParametersSchema: z.ZodObject<{
1760
+ mode: z.ZodOptional<z.ZodEnum<["off", "on", "auto"]>>;
1761
+ max_search_results: z.ZodOptional<z.ZodNumber>;
1762
+ return_citations: z.ZodOptional<z.ZodBoolean>;
1763
+ sources: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1764
+ from_date: z.ZodOptional<z.ZodString>;
1765
+ to_date: z.ZodOptional<z.ZodString>;
1766
+ }, "strip", z.ZodTypeAny, {
1767
+ mode?: "auto" | "off" | "on" | undefined;
1768
+ max_search_results?: number | undefined;
1769
+ return_citations?: boolean | undefined;
1770
+ sources?: string[] | undefined;
1771
+ from_date?: string | undefined;
1772
+ to_date?: string | undefined;
1773
+ }, {
1774
+ mode?: "auto" | "off" | "on" | undefined;
1775
+ max_search_results?: number | undefined;
1776
+ return_citations?: boolean | undefined;
1777
+ sources?: string[] | undefined;
1778
+ from_date?: string | undefined;
1779
+ to_date?: string | undefined;
1780
+ }>;
1781
+ export declare const XaiResponseRequestSchema: z.ZodObject<{
1782
+ model: z.ZodString;
1783
+ input: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodObject<{
1784
+ role: z.ZodEnum<["user", "assistant", "system", "developer"]>;
1785
+ content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1786
+ type: z.ZodLiteral<"input_text">;
1787
+ text: z.ZodString;
1788
+ }, "strip", z.ZodTypeAny, {
1789
+ type: "input_text";
1790
+ text: string;
1791
+ }, {
1792
+ type: "input_text";
1793
+ text: string;
1794
+ }>, z.ZodObject<{
1795
+ type: z.ZodLiteral<"input_image">;
1796
+ image_url: z.ZodOptional<z.ZodString>;
1797
+ file_id: z.ZodOptional<z.ZodString>;
1798
+ detail: z.ZodOptional<z.ZodEnum<["auto", "low", "high"]>>;
1799
+ }, "strip", z.ZodTypeAny, {
1800
+ type: "input_image";
1801
+ image_url?: string | undefined;
1802
+ file_id?: string | undefined;
1803
+ detail?: "auto" | "low" | "high" | undefined;
1804
+ }, {
1805
+ type: "input_image";
1806
+ image_url?: string | undefined;
1807
+ file_id?: string | undefined;
1808
+ detail?: "auto" | "low" | "high" | undefined;
1809
+ }>]>, "many">]>;
1810
+ }, "strip", z.ZodTypeAny, {
1811
+ role: "user" | "assistant" | "system" | "developer";
1812
+ content: string | ({
1813
+ type: "input_text";
1814
+ text: string;
1815
+ } | {
1816
+ type: "input_image";
1817
+ image_url?: string | undefined;
1818
+ file_id?: string | undefined;
1819
+ detail?: "auto" | "low" | "high" | undefined;
1820
+ })[];
1821
+ }, {
1822
+ role: "user" | "assistant" | "system" | "developer";
1823
+ content: string | ({
1824
+ type: "input_text";
1825
+ text: string;
1826
+ } | {
1827
+ type: "input_image";
1828
+ image_url?: string | undefined;
1829
+ file_id?: string | undefined;
1830
+ detail?: "auto" | "low" | "high" | undefined;
1831
+ })[];
1832
+ }>, z.ZodObject<{
1833
+ type: z.ZodLiteral<"function_call_output">;
1834
+ call_id: z.ZodString;
1835
+ output: z.ZodString;
1836
+ }, "strip", z.ZodTypeAny, {
1837
+ type: "function_call_output";
1838
+ output: string;
1839
+ call_id: string;
1840
+ }, {
1841
+ type: "function_call_output";
1842
+ output: string;
1843
+ call_id: string;
1844
+ }>, z.ZodObject<{
1845
+ type: z.ZodLiteral<"item_reference">;
1846
+ id: z.ZodString;
1847
+ }, "strip", z.ZodTypeAny, {
1848
+ type: "item_reference";
1849
+ id: string;
1850
+ }, {
1851
+ type: "item_reference";
1852
+ id: string;
1853
+ }>]>, "many">]>;
1854
+ instructions: z.ZodOptional<z.ZodString>;
1855
+ previous_response_id: z.ZodOptional<z.ZodString>;
1856
+ max_output_tokens: z.ZodOptional<z.ZodNumber>;
1857
+ temperature: z.ZodOptional<z.ZodNumber>;
1858
+ top_p: z.ZodOptional<z.ZodNumber>;
1859
+ tools: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1860
+ type: z.ZodLiteral<"function">;
1861
+ name: z.ZodString;
1862
+ description: z.ZodOptional<z.ZodString>;
1863
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1864
+ strict: z.ZodOptional<z.ZodBoolean>;
1865
+ }, "strip", z.ZodTypeAny, {
1866
+ type: "function";
1867
+ name: string;
1868
+ description?: string | undefined;
1869
+ parameters?: Record<string, unknown> | undefined;
1870
+ strict?: boolean | undefined;
1871
+ }, {
1872
+ type: "function";
1873
+ name: string;
1874
+ description?: string | undefined;
1875
+ parameters?: Record<string, unknown> | undefined;
1876
+ strict?: boolean | undefined;
1877
+ }>, z.ZodObject<{
1878
+ type: z.ZodLiteral<"file_search">;
1879
+ vector_store_ids: z.ZodArray<z.ZodString, "many">;
1880
+ max_num_results: z.ZodOptional<z.ZodNumber>;
1881
+ }, "strip", z.ZodTypeAny, {
1882
+ type: "file_search";
1883
+ vector_store_ids: string[];
1884
+ max_num_results?: number | undefined;
1885
+ }, {
1886
+ type: "file_search";
1887
+ vector_store_ids: string[];
1888
+ max_num_results?: number | undefined;
1889
+ }>, z.ZodObject<{
1890
+ filters: z.ZodOptional<z.ZodObject<{
1891
+ allowed_domains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1892
+ excluded_domains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1893
+ }, "strip", z.ZodTypeAny, {
1894
+ allowed_domains?: string[] | undefined;
1895
+ excluded_domains?: string[] | undefined;
1896
+ }, {
1897
+ allowed_domains?: string[] | undefined;
1898
+ excluded_domains?: string[] | undefined;
1899
+ }>>;
1900
+ search_context_size: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
1901
+ user_location: z.ZodOptional<z.ZodObject<{
1902
+ type: z.ZodLiteral<"approximate">;
1903
+ city: z.ZodOptional<z.ZodString>;
1904
+ state: z.ZodOptional<z.ZodString>;
1905
+ country: z.ZodOptional<z.ZodString>;
1906
+ timezone: z.ZodOptional<z.ZodString>;
1907
+ }, "strip", z.ZodTypeAny, {
1908
+ type: "approximate";
1909
+ city?: string | undefined;
1910
+ state?: string | undefined;
1911
+ country?: string | undefined;
1912
+ timezone?: string | undefined;
1913
+ }, {
1914
+ type: "approximate";
1915
+ city?: string | undefined;
1916
+ state?: string | undefined;
1917
+ country?: string | undefined;
1918
+ timezone?: string | undefined;
1919
+ }>>;
1920
+ } & {
1921
+ type: z.ZodLiteral<"web_search">;
1922
+ }, "strip", z.ZodTypeAny, {
1923
+ type: "web_search";
1924
+ filters?: {
1925
+ allowed_domains?: string[] | undefined;
1926
+ excluded_domains?: string[] | undefined;
1927
+ } | undefined;
1928
+ search_context_size?: "low" | "high" | "medium" | undefined;
1929
+ user_location?: {
1930
+ type: "approximate";
1931
+ city?: string | undefined;
1932
+ state?: string | undefined;
1933
+ country?: string | undefined;
1934
+ timezone?: string | undefined;
1935
+ } | undefined;
1936
+ }, {
1937
+ type: "web_search";
1938
+ filters?: {
1939
+ allowed_domains?: string[] | undefined;
1940
+ excluded_domains?: string[] | undefined;
1941
+ } | undefined;
1942
+ search_context_size?: "low" | "high" | "medium" | undefined;
1943
+ user_location?: {
1944
+ type: "approximate";
1945
+ city?: string | undefined;
1946
+ state?: string | undefined;
1947
+ country?: string | undefined;
1948
+ timezone?: string | undefined;
1949
+ } | undefined;
1950
+ }>, z.ZodObject<{
1951
+ filters: z.ZodOptional<z.ZodObject<{
1952
+ allowed_domains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1953
+ excluded_domains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1954
+ }, "strip", z.ZodTypeAny, {
1955
+ allowed_domains?: string[] | undefined;
1956
+ excluded_domains?: string[] | undefined;
1957
+ }, {
1958
+ allowed_domains?: string[] | undefined;
1959
+ excluded_domains?: string[] | undefined;
1960
+ }>>;
1961
+ search_context_size: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
1962
+ user_location: z.ZodOptional<z.ZodObject<{
1963
+ type: z.ZodLiteral<"approximate">;
1964
+ city: z.ZodOptional<z.ZodString>;
1965
+ state: z.ZodOptional<z.ZodString>;
1966
+ country: z.ZodOptional<z.ZodString>;
1967
+ timezone: z.ZodOptional<z.ZodString>;
1968
+ }, "strip", z.ZodTypeAny, {
1969
+ type: "approximate";
1970
+ city?: string | undefined;
1971
+ state?: string | undefined;
1972
+ country?: string | undefined;
1973
+ timezone?: string | undefined;
1974
+ }, {
1975
+ type: "approximate";
1976
+ city?: string | undefined;
1977
+ state?: string | undefined;
1978
+ country?: string | undefined;
1979
+ timezone?: string | undefined;
1980
+ }>>;
1981
+ } & {
1982
+ type: z.ZodLiteral<"web_search_preview">;
1983
+ }, "strip", z.ZodTypeAny, {
1984
+ type: "web_search_preview";
1985
+ filters?: {
1986
+ allowed_domains?: string[] | undefined;
1987
+ excluded_domains?: string[] | undefined;
1988
+ } | undefined;
1989
+ search_context_size?: "low" | "high" | "medium" | undefined;
1990
+ user_location?: {
1991
+ type: "approximate";
1992
+ city?: string | undefined;
1993
+ state?: string | undefined;
1994
+ country?: string | undefined;
1995
+ timezone?: string | undefined;
1996
+ } | undefined;
1997
+ }, {
1998
+ type: "web_search_preview";
1999
+ filters?: {
2000
+ allowed_domains?: string[] | undefined;
2001
+ excluded_domains?: string[] | undefined;
2002
+ } | undefined;
2003
+ search_context_size?: "low" | "high" | "medium" | undefined;
2004
+ user_location?: {
2005
+ type: "approximate";
2006
+ city?: string | undefined;
2007
+ state?: string | undefined;
2008
+ country?: string | undefined;
2009
+ timezone?: string | undefined;
2010
+ } | undefined;
2011
+ }>]>, "many">>;
2012
+ tool_choice: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["auto", "none", "required"]>, z.ZodObject<{
2013
+ type: z.ZodLiteral<"function">;
2014
+ name: z.ZodString;
2015
+ }, "strip", z.ZodTypeAny, {
2016
+ type: "function";
2017
+ name: string;
2018
+ }, {
2019
+ type: "function";
2020
+ name: string;
2021
+ }>]>>;
2022
+ store: z.ZodOptional<z.ZodBoolean>;
2023
+ stream: z.ZodOptional<z.ZodBoolean>;
2024
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2025
+ text: z.ZodOptional<z.ZodObject<{
2026
+ format: z.ZodUnion<[z.ZodObject<{
2027
+ type: z.ZodLiteral<"text">;
2028
+ }, "strip", z.ZodTypeAny, {
2029
+ type: "text";
2030
+ }, {
2031
+ type: "text";
2032
+ }>, z.ZodObject<{
2033
+ type: z.ZodLiteral<"json_object">;
2034
+ }, "strip", z.ZodTypeAny, {
2035
+ type: "json_object";
2036
+ }, {
2037
+ type: "json_object";
2038
+ }>, z.ZodObject<{
2039
+ type: z.ZodLiteral<"json_schema">;
2040
+ name: z.ZodString;
2041
+ schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2042
+ description: z.ZodOptional<z.ZodString>;
2043
+ strict: z.ZodOptional<z.ZodBoolean>;
2044
+ }, "strip", z.ZodTypeAny, {
2045
+ type: "json_schema";
2046
+ name: string;
2047
+ schema: Record<string, unknown>;
2048
+ description?: string | undefined;
2049
+ strict?: boolean | undefined;
2050
+ }, {
2051
+ type: "json_schema";
2052
+ name: string;
2053
+ schema: Record<string, unknown>;
2054
+ description?: string | undefined;
2055
+ strict?: boolean | undefined;
2056
+ }>]>;
2057
+ }, "strip", z.ZodTypeAny, {
2058
+ format: {
2059
+ type: "text";
2060
+ } | {
2061
+ type: "json_object";
2062
+ } | {
2063
+ type: "json_schema";
2064
+ name: string;
2065
+ schema: Record<string, unknown>;
2066
+ description?: string | undefined;
2067
+ strict?: boolean | undefined;
2068
+ };
2069
+ }, {
2070
+ format: {
2071
+ type: "text";
2072
+ } | {
2073
+ type: "json_object";
2074
+ } | {
2075
+ type: "json_schema";
2076
+ name: string;
2077
+ schema: Record<string, unknown>;
2078
+ description?: string | undefined;
2079
+ strict?: boolean | undefined;
2080
+ };
2081
+ }>>;
2082
+ reasoning: z.ZodOptional<z.ZodObject<{
2083
+ effort: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
2084
+ summary: z.ZodOptional<z.ZodEnum<["auto", "concise", "detailed"]>>;
2085
+ }, "strip", z.ZodTypeAny, {
2086
+ effort?: "low" | "high" | "medium" | undefined;
2087
+ summary?: "auto" | "concise" | "detailed" | undefined;
2088
+ }, {
2089
+ effort?: "low" | "high" | "medium" | undefined;
2090
+ summary?: "auto" | "concise" | "detailed" | undefined;
2091
+ }>>;
2092
+ search_parameters: z.ZodOptional<z.ZodObject<{
2093
+ mode: z.ZodOptional<z.ZodEnum<["off", "on", "auto"]>>;
2094
+ max_search_results: z.ZodOptional<z.ZodNumber>;
2095
+ return_citations: z.ZodOptional<z.ZodBoolean>;
2096
+ sources: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2097
+ from_date: z.ZodOptional<z.ZodString>;
2098
+ to_date: z.ZodOptional<z.ZodString>;
2099
+ }, "strip", z.ZodTypeAny, {
2100
+ mode?: "auto" | "off" | "on" | undefined;
2101
+ max_search_results?: number | undefined;
2102
+ return_citations?: boolean | undefined;
2103
+ sources?: string[] | undefined;
2104
+ from_date?: string | undefined;
2105
+ to_date?: string | undefined;
2106
+ }, {
2107
+ mode?: "auto" | "off" | "on" | undefined;
2108
+ max_search_results?: number | undefined;
2109
+ return_citations?: boolean | undefined;
2110
+ sources?: string[] | undefined;
2111
+ from_date?: string | undefined;
2112
+ to_date?: string | undefined;
2113
+ }>>;
2114
+ prompt_cache_key: z.ZodOptional<z.ZodString>;
2115
+ parallel_tool_calls: z.ZodOptional<z.ZodBoolean>;
2116
+ include: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2117
+ user: z.ZodOptional<z.ZodString>;
2118
+ }, "strip", z.ZodTypeAny, {
2119
+ model: string;
2120
+ input: string | ({
2121
+ role: "user" | "assistant" | "system" | "developer";
2122
+ content: string | ({
2123
+ type: "input_text";
2124
+ text: string;
2125
+ } | {
2126
+ type: "input_image";
2127
+ image_url?: string | undefined;
2128
+ file_id?: string | undefined;
2129
+ detail?: "auto" | "low" | "high" | undefined;
2130
+ })[];
2131
+ } | {
2132
+ type: "function_call_output";
2133
+ output: string;
2134
+ call_id: string;
2135
+ } | {
2136
+ type: "item_reference";
2137
+ id: string;
2138
+ })[];
2139
+ user?: string | undefined;
2140
+ temperature?: number | undefined;
2141
+ tools?: ({
2142
+ type: "function";
2143
+ name: string;
2144
+ description?: string | undefined;
2145
+ parameters?: Record<string, unknown> | undefined;
2146
+ strict?: boolean | undefined;
2147
+ } | {
2148
+ type: "file_search";
2149
+ vector_store_ids: string[];
2150
+ max_num_results?: number | undefined;
2151
+ } | {
2152
+ type: "web_search";
2153
+ filters?: {
2154
+ allowed_domains?: string[] | undefined;
2155
+ excluded_domains?: string[] | undefined;
2156
+ } | undefined;
2157
+ search_context_size?: "low" | "high" | "medium" | undefined;
2158
+ user_location?: {
2159
+ type: "approximate";
2160
+ city?: string | undefined;
2161
+ state?: string | undefined;
2162
+ country?: string | undefined;
2163
+ timezone?: string | undefined;
2164
+ } | undefined;
2165
+ } | {
2166
+ type: "web_search_preview";
2167
+ filters?: {
2168
+ allowed_domains?: string[] | undefined;
2169
+ excluded_domains?: string[] | undefined;
2170
+ } | undefined;
2171
+ search_context_size?: "low" | "high" | "medium" | undefined;
2172
+ user_location?: {
2173
+ type: "approximate";
2174
+ city?: string | undefined;
2175
+ state?: string | undefined;
2176
+ country?: string | undefined;
2177
+ timezone?: string | undefined;
2178
+ } | undefined;
2179
+ })[] | undefined;
2180
+ tool_choice?: "required" | "auto" | "none" | {
2181
+ type: "function";
2182
+ name: string;
2183
+ } | undefined;
2184
+ instructions?: string | undefined;
2185
+ text?: {
2186
+ format: {
2187
+ type: "text";
2188
+ } | {
2189
+ type: "json_object";
2190
+ } | {
2191
+ type: "json_schema";
2192
+ name: string;
2193
+ schema: Record<string, unknown>;
2194
+ description?: string | undefined;
2195
+ strict?: boolean | undefined;
2196
+ };
2197
+ } | undefined;
2198
+ previous_response_id?: string | undefined;
2199
+ max_output_tokens?: number | undefined;
2200
+ top_p?: number | undefined;
2201
+ store?: boolean | undefined;
2202
+ stream?: boolean | undefined;
2203
+ metadata?: Record<string, string> | undefined;
2204
+ reasoning?: {
2205
+ effort?: "low" | "high" | "medium" | undefined;
2206
+ summary?: "auto" | "concise" | "detailed" | undefined;
2207
+ } | undefined;
2208
+ search_parameters?: {
2209
+ mode?: "auto" | "off" | "on" | undefined;
2210
+ max_search_results?: number | undefined;
2211
+ return_citations?: boolean | undefined;
2212
+ sources?: string[] | undefined;
2213
+ from_date?: string | undefined;
2214
+ to_date?: string | undefined;
2215
+ } | undefined;
2216
+ prompt_cache_key?: string | undefined;
2217
+ parallel_tool_calls?: boolean | undefined;
2218
+ include?: string[] | undefined;
2219
+ }, {
2220
+ model: string;
2221
+ input: string | ({
2222
+ role: "user" | "assistant" | "system" | "developer";
2223
+ content: string | ({
2224
+ type: "input_text";
2225
+ text: string;
2226
+ } | {
2227
+ type: "input_image";
2228
+ image_url?: string | undefined;
2229
+ file_id?: string | undefined;
2230
+ detail?: "auto" | "low" | "high" | undefined;
2231
+ })[];
2232
+ } | {
2233
+ type: "function_call_output";
2234
+ output: string;
2235
+ call_id: string;
2236
+ } | {
2237
+ type: "item_reference";
2238
+ id: string;
2239
+ })[];
2240
+ user?: string | undefined;
2241
+ temperature?: number | undefined;
2242
+ tools?: ({
2243
+ type: "function";
2244
+ name: string;
2245
+ description?: string | undefined;
2246
+ parameters?: Record<string, unknown> | undefined;
2247
+ strict?: boolean | undefined;
2248
+ } | {
2249
+ type: "file_search";
2250
+ vector_store_ids: string[];
2251
+ max_num_results?: number | undefined;
2252
+ } | {
2253
+ type: "web_search";
2254
+ filters?: {
2255
+ allowed_domains?: string[] | undefined;
2256
+ excluded_domains?: string[] | undefined;
2257
+ } | undefined;
2258
+ search_context_size?: "low" | "high" | "medium" | undefined;
2259
+ user_location?: {
2260
+ type: "approximate";
2261
+ city?: string | undefined;
2262
+ state?: string | undefined;
2263
+ country?: string | undefined;
2264
+ timezone?: string | undefined;
2265
+ } | undefined;
2266
+ } | {
2267
+ type: "web_search_preview";
2268
+ filters?: {
2269
+ allowed_domains?: string[] | undefined;
2270
+ excluded_domains?: string[] | undefined;
2271
+ } | undefined;
2272
+ search_context_size?: "low" | "high" | "medium" | undefined;
2273
+ user_location?: {
2274
+ type: "approximate";
2275
+ city?: string | undefined;
2276
+ state?: string | undefined;
2277
+ country?: string | undefined;
2278
+ timezone?: string | undefined;
2279
+ } | undefined;
2280
+ })[] | undefined;
2281
+ tool_choice?: "required" | "auto" | "none" | {
2282
+ type: "function";
2283
+ name: string;
2284
+ } | undefined;
2285
+ instructions?: string | undefined;
2286
+ text?: {
2287
+ format: {
2288
+ type: "text";
2289
+ } | {
2290
+ type: "json_object";
2291
+ } | {
2292
+ type: "json_schema";
2293
+ name: string;
2294
+ schema: Record<string, unknown>;
2295
+ description?: string | undefined;
2296
+ strict?: boolean | undefined;
2297
+ };
2298
+ } | undefined;
2299
+ previous_response_id?: string | undefined;
2300
+ max_output_tokens?: number | undefined;
2301
+ top_p?: number | undefined;
2302
+ store?: boolean | undefined;
2303
+ stream?: boolean | undefined;
2304
+ metadata?: Record<string, string> | undefined;
2305
+ reasoning?: {
2306
+ effort?: "low" | "high" | "medium" | undefined;
2307
+ summary?: "auto" | "concise" | "detailed" | undefined;
2308
+ } | undefined;
2309
+ search_parameters?: {
2310
+ mode?: "auto" | "off" | "on" | undefined;
2311
+ max_search_results?: number | undefined;
2312
+ return_citations?: boolean | undefined;
2313
+ sources?: string[] | undefined;
2314
+ from_date?: string | undefined;
2315
+ to_date?: string | undefined;
2316
+ } | undefined;
2317
+ prompt_cache_key?: string | undefined;
2318
+ parallel_tool_calls?: boolean | undefined;
2319
+ include?: string[] | undefined;
2320
+ }>;
2321
+ export declare const XaiTokenizeTextRequestSchema: z.ZodObject<{
2322
+ model: z.ZodString;
2323
+ text: z.ZodString;
2324
+ user: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2325
+ }, "strip", z.ZodTypeAny, {
2326
+ model: string;
2327
+ text: string;
2328
+ user?: string | null | undefined;
2329
+ }, {
2330
+ model: string;
2331
+ text: string;
2332
+ user?: string | null | undefined;
2333
+ }>;
2334
+ export declare const XaiTtsRequestSchema: z.ZodObject<{
2335
+ text: z.ZodString;
2336
+ voice_id: z.ZodString;
2337
+ language: z.ZodOptional<z.ZodString>;
2338
+ }, "strip", z.ZodTypeAny, {
2339
+ text: string;
2340
+ voice_id: string;
2341
+ language?: string | undefined;
2342
+ }, {
2343
+ text: string;
2344
+ voice_id: string;
2345
+ language?: string | undefined;
2346
+ }>;
2347
+ export declare const XaiSttRequestSchema: z.ZodObject<{
2348
+ file: z.ZodType<Blob, z.ZodTypeDef, Blob>;
2349
+ filename: z.ZodOptional<z.ZodString>;
2350
+ language: z.ZodOptional<z.ZodString>;
2351
+ }, "strip", z.ZodTypeAny, {
2352
+ file: Blob;
2353
+ language?: string | undefined;
2354
+ filename?: string | undefined;
2355
+ }, {
2356
+ file: Blob;
2357
+ language?: string | undefined;
2358
+ filename?: string | undefined;
2359
+ }>;
2360
+ export declare const XaiCustomVoiceCreateRequestSchema: z.ZodObject<{
2361
+ file: z.ZodType<Blob, z.ZodTypeDef, Blob>;
2362
+ name: z.ZodString;
2363
+ language: z.ZodString;
2364
+ filename: z.ZodOptional<z.ZodString>;
2365
+ }, "strip", z.ZodTypeAny, {
2366
+ name: string;
2367
+ language: string;
2368
+ file: Blob;
2369
+ filename?: string | undefined;
2370
+ }, {
2371
+ name: string;
2372
+ language: string;
2373
+ file: Blob;
2374
+ filename?: string | undefined;
2375
+ }>;
2376
+ export declare const XaiRealtimeClientSecretRequestSchema: z.ZodObject<{
2377
+ expires_after: z.ZodOptional<z.ZodObject<{
2378
+ seconds: z.ZodNumber;
2379
+ }, "strip", z.ZodTypeAny, {
2380
+ seconds: number;
2381
+ }, {
2382
+ seconds: number;
2383
+ }>>;
2384
+ session: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2385
+ }, "strip", z.ZodTypeAny, {
2386
+ expires_after?: {
2387
+ seconds: number;
2388
+ } | undefined;
2389
+ session?: Record<string, unknown> | null | undefined;
2390
+ }, {
2391
+ expires_after?: {
2392
+ seconds: number;
2393
+ } | undefined;
2394
+ session?: Record<string, unknown> | null | undefined;
2395
+ }>;
2396
+ export declare const XaiOptionsSchema: z.ZodObject<{
2397
+ apiKey: z.ZodString;
2398
+ baseURL: z.ZodOptional<z.ZodString>;
2399
+ managementApiKey: z.ZodOptional<z.ZodString>;
2400
+ managementBaseURL: z.ZodOptional<z.ZodString>;
2401
+ timeout: z.ZodOptional<z.ZodNumber>;
2402
+ fetch: z.ZodOptional<z.ZodType<(input: RequestInfo | URL, init?: RequestInit) => Promise<Response>, z.ZodTypeDef, (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>>>;
2403
+ }, "strip", z.ZodTypeAny, {
2404
+ apiKey: string;
2405
+ baseURL?: string | undefined;
2406
+ managementApiKey?: string | undefined;
2407
+ managementBaseURL?: string | undefined;
2408
+ timeout?: number | undefined;
2409
+ fetch?: ((input: RequestInfo | URL, init?: RequestInit) => Promise<Response>) | undefined;
2410
+ }, {
2411
+ apiKey: string;
2412
+ baseURL?: string | undefined;
2413
+ managementApiKey?: string | undefined;
2414
+ managementBaseURL?: string | undefined;
2415
+ timeout?: number | undefined;
2416
+ fetch?: ((input: RequestInfo | URL, init?: RequestInit) => Promise<Response>) | undefined;
2417
+ }>;
2418
+ export type XaiOptions = z.infer<typeof XaiOptionsSchema>;
2419
+ export type XaiMessage = z.infer<typeof XaiMessageSchema>;
2420
+ export type XaiToolFunction = z.infer<typeof XaiToolFunctionSchema>;
2421
+ export type XaiTool = z.infer<typeof XaiToolSchema>;
2422
+ export type XaiImageReference = z.infer<typeof XaiImageReferenceSchema>;
2423
+ export type XaiVideoReference = z.infer<typeof XaiVideoReferenceSchema>;
2424
+ export type XaiChunkConfiguration = z.infer<typeof XaiChunkConfigurationSchema>;
2425
+ export type XaiFieldDefinition = z.infer<typeof XaiFieldDefinitionSchema>;
2426
+ export type XaiChatRequest = z.infer<typeof XaiChatRequestSchema>;
2427
+ export type XaiImageGenerateRequest = z.infer<typeof XaiImageGenerateRequestSchema>;
2428
+ export type XaiImageEditRequest = z.infer<typeof XaiImageEditRequestSchema>;
2429
+ export type XaiVideoGenerateRequest = z.infer<typeof XaiVideoGenerateRequestSchema>;
2430
+ export type XaiVideoEditRequest = z.infer<typeof XaiVideoEditRequestSchema>;
2431
+ export type XaiVideoExtendRequest = z.infer<typeof XaiVideoExtendRequestSchema>;
2432
+ export type XaiBatchCreateRequest = z.infer<typeof XaiBatchCreateRequestSchema>;
2433
+ export type XaiBatchAddRequestsBody = z.infer<typeof XaiBatchAddRequestsBodySchema>;
2434
+ export type XaiCollectionCreateRequest = z.infer<typeof XaiCollectionCreateRequestSchema>;
2435
+ export type XaiCollectionUpdateRequest = z.infer<typeof XaiCollectionUpdateRequestSchema>;
2436
+ export type XaiDocumentAddRequest = z.infer<typeof XaiDocumentAddRequestSchema>;
2437
+ export type XaiDocumentSearchRequest = z.infer<typeof XaiDocumentSearchRequestSchema>;
2438
+ export type XaiResponseInputTextContent = z.infer<typeof XaiResponseInputTextContentSchema>;
2439
+ export type XaiResponseInputImageContent = z.infer<typeof XaiResponseInputImageContentSchema>;
2440
+ export type XaiResponseInputContent = z.infer<typeof XaiResponseInputContentSchema>;
2441
+ export type XaiResponseInputMessage = z.infer<typeof XaiResponseInputMessageSchema>;
2442
+ export type XaiResponseFunctionCallOutput = z.infer<typeof XaiResponseFunctionCallOutputSchema>;
2443
+ export type XaiResponseItemReference = z.infer<typeof XaiResponseItemReferenceSchema>;
2444
+ export type XaiResponseInputItem = XaiResponseInputMessage | XaiResponseFunctionCallOutput | XaiResponseItemReference;
2445
+ export type XaiResponseFunctionTool = z.infer<typeof XaiResponseFunctionToolSchema>;
2446
+ export type XaiResponseWebSearchTool = z.infer<typeof XaiResponseWebSearchToolSchema>;
2447
+ export type XaiResponseFileSearchTool = z.infer<typeof XaiResponseFileSearchToolSchema>;
2448
+ export type XaiResponseTool = z.infer<typeof XaiResponseToolSchema>;
2449
+ export type XaiResponseTextFormat = z.infer<typeof XaiResponseTextFormatSchema>;
2450
+ export type XaiResponseReasoning = z.infer<typeof XaiResponseReasoningSchema>;
2451
+ export type XaiResponseSearchParameters = z.infer<typeof XaiResponseSearchParametersSchema>;
2452
+ export type XaiResponseRequest = z.infer<typeof XaiResponseRequestSchema>;
2453
+ export type XaiTokenizeTextRequest = z.infer<typeof XaiTokenizeTextRequestSchema>;
2454
+ export type XaiRealtimeClientSecretRequest = z.infer<typeof XaiRealtimeClientSecretRequestSchema>;
2455
+ export type XaiTtsRequest = z.infer<typeof XaiTtsRequestSchema>;
2456
+ export type XaiSttRequest = z.infer<typeof XaiSttRequestSchema>;
2457
+ export type XaiCustomVoiceCreateRequest = z.infer<typeof XaiCustomVoiceCreateRequestSchema>;
2458
+ //# sourceMappingURL=zod.d.ts.map