@apicity/xai 0.5.4 → 0.6.1

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