@decocms/bindings 0.2.1 → 0.2.3

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