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