@decocms/runtime 0.25.1 → 0.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/dist/bindings/deconfig/index.d.ts +6 -5
  2. package/dist/bindings/deconfig/index.js +4 -4
  3. package/dist/bindings/index.d.ts +1304 -46
  4. package/dist/bindings/index.js +9 -7
  5. package/dist/bindings/index.js.map +1 -1
  6. package/dist/{chunk-F6XZPFWM.js → chunk-3AWMDSOH.js} +20 -51
  7. package/dist/chunk-3AWMDSOH.js.map +1 -0
  8. package/dist/{chunk-QELHWEZH.js → chunk-5EYZ2LVM.js} +8 -5
  9. package/dist/chunk-5EYZ2LVM.js.map +1 -0
  10. package/dist/{chunk-O6IURJAY.js → chunk-GPIGZ6DL.js} +38 -33
  11. package/dist/chunk-GPIGZ6DL.js.map +1 -0
  12. package/dist/{chunk-I2KGAHFY.js → chunk-LCU3FBI3.js} +6 -2
  13. package/dist/chunk-LCU3FBI3.js.map +1 -0
  14. package/dist/drizzle.d.ts +4 -3
  15. package/dist/{index-D8GtUDPS.d.ts → index-COMJ3oN7.d.ts} +4 -3
  16. package/dist/{index-SnnmAI05.d.ts → index-DqyElLzZ.d.ts} +10 -10
  17. package/dist/index.d.ts +4 -3
  18. package/dist/index.js +5 -5
  19. package/dist/mastra.d.ts +4 -3
  20. package/dist/mastra.js +1 -1
  21. package/dist/{mcp-Bv7IAgWX.d.ts → mcp-Dbqp-p04.d.ts} +9 -13
  22. package/dist/mcp-client.d.ts +9 -16
  23. package/dist/mcp-client.js +1 -1
  24. package/dist/proxy.d.ts +3 -2
  25. package/dist/proxy.js +2 -2
  26. package/dist/resources.d.ts +42 -42
  27. package/dist/views.d.ts +12 -12
  28. package/package.json +3 -1
  29. package/src/bindings/binder.ts +37 -34
  30. package/src/bindings/channels.ts +1 -1
  31. package/src/bindings/index.ts +8 -6
  32. package/src/bindings/language-model/ai-sdk.ts +87 -0
  33. package/src/bindings/language-model/index.ts +4 -0
  34. package/src/bindings/language-model/utils.ts +118 -0
  35. package/src/bindings/views.ts +1 -1
  36. package/src/connection.ts +8 -53
  37. package/src/http-client-transport.ts +1 -66
  38. package/src/mastra.ts +4 -0
  39. package/src/mcp-client.ts +22 -2
  40. package/src/mcp.ts +16 -17
  41. package/src/proxy.ts +6 -2
  42. package/dist/chunk-F6XZPFWM.js.map +0 -1
  43. package/dist/chunk-I2KGAHFY.js.map +0 -1
  44. package/dist/chunk-O6IURJAY.js.map +0 -1
  45. package/dist/chunk-QELHWEZH.js.map +0 -1
  46. package/dist/connection-DDtQYrea.d.ts +0 -30
@@ -1,10 +1,11 @@
1
1
  import * as zod from 'zod';
2
2
  import { z } from 'zod';
3
- export { B as BaseResourceDataSchema, D as DeconfigClient, b as DeconfigResourceOptions, E as EnhancedResourcesTools, f as ResourceBinding, g as ResourceBindingsFunction, R as ResourcesBinding, d as ResourcesTools, a as createDeconfigResource, c as createResourceBindings, e as deconfigTools } from '../index-SnnmAI05.js';
3
+ export { B as BaseResourceDataSchema, D as DeconfigClient, b as DeconfigResourceOptions, E as EnhancedResourcesTools, f as ResourceBinding, g as ResourceBindingsFunction, R as ResourcesBinding, d as ResourcesTools, a as createDeconfigResource, c as createResourceBindings, e as deconfigTools } from '../index-DqyElLzZ.js';
4
4
  import * as _mastra_core from '@mastra/core';
5
- import { M as MCPConnection } from '../connection-DDtQYrea.js';
6
- import { c as createPrivateTool } from '../index-D8GtUDPS.js';
7
- import { T as ToolBinder, M as MCPClientFetchStub } from '../mcp-Bv7IAgWX.js';
5
+ import { c as createPrivateTool, a as createStreamableTool, S as StreamableTool } from '../index-COMJ3oN7.js';
6
+ import { MCPConnection } from '@decocms/bindings/connection';
7
+ import { M as MCPClientFetchStub } from '../mcp-Dbqp-p04.js';
8
+ import { ToolBinder } from '@decocms/bindings';
8
9
  import '@cloudflare/workers-types';
9
10
  import '@mastra/core/di';
10
11
  import '@mastra/core/workflows';
@@ -92,7 +93,7 @@ declare const listChannelsSchema: z.ZodObject<{
92
93
  type Callbacks = z.infer<typeof callbacksSchema>;
93
94
  type JoinedChannelPayload = z.infer<typeof joinChannelSchema>;
94
95
  type ListChannelsSchema = z.infer<typeof listChannelsSchema>;
95
- declare const CHANNEL_BINDING_SCHEMA: readonly [{
96
+ declare const CHANNEL_BINDING: readonly [{
96
97
  readonly name: "DECO_CHAT_CHANNELS_JOIN";
97
98
  readonly inputSchema: z.ZodObject<{
98
99
  workspace: z.ZodString;
@@ -311,13 +312,13 @@ declare const ViewBinding: {
311
312
  prompt: z.ZodOptional<z.ZodString>;
312
313
  installBehavior: z.ZodOptional<z.ZodEnum<["none", "open", "autoPin"]>>;
313
314
  }, "strip", z.ZodTypeAny, {
314
- tools: string[];
315
315
  title: string;
316
+ tools: string[];
316
317
  icon: string;
317
- id?: string | undefined;
318
- name?: string | undefined;
319
318
  url?: string | undefined;
319
+ name?: string | undefined;
320
320
  description?: string | undefined;
321
+ id?: string | undefined;
321
322
  resourceName?: string | undefined;
322
323
  mimeTypePattern?: string | undefined;
323
324
  prompt?: string | undefined;
@@ -325,25 +326,25 @@ declare const ViewBinding: {
325
326
  }, {
326
327
  title: string;
327
328
  icon: string;
328
- id?: string | undefined;
329
- name?: string | undefined;
330
329
  url?: string | undefined;
330
+ name?: string | undefined;
331
331
  description?: string | undefined;
332
- resourceName?: string | undefined;
333
332
  tools?: string[] | undefined;
333
+ id?: string | undefined;
334
+ resourceName?: string | undefined;
334
335
  mimeTypePattern?: string | undefined;
335
336
  prompt?: string | undefined;
336
337
  installBehavior?: "open" | "none" | "autoPin" | undefined;
337
338
  }>, "many">;
338
339
  }, "strip", z.ZodTypeAny, {
339
340
  views: {
340
- tools: string[];
341
341
  title: string;
342
+ tools: string[];
342
343
  icon: string;
343
- id?: string | undefined;
344
- name?: string | undefined;
345
344
  url?: string | undefined;
345
+ name?: string | undefined;
346
346
  description?: string | undefined;
347
+ id?: string | undefined;
347
348
  resourceName?: string | undefined;
348
349
  mimeTypePattern?: string | undefined;
349
350
  prompt?: string | undefined;
@@ -353,12 +354,12 @@ declare const ViewBinding: {
353
354
  views: {
354
355
  title: string;
355
356
  icon: string;
356
- id?: string | undefined;
357
- name?: string | undefined;
358
357
  url?: string | undefined;
358
+ name?: string | undefined;
359
359
  description?: string | undefined;
360
- resourceName?: string | undefined;
361
360
  tools?: string[] | undefined;
361
+ id?: string | undefined;
362
+ resourceName?: string | undefined;
362
363
  mimeTypePattern?: string | undefined;
363
364
  prompt?: string | undefined;
364
365
  installBehavior?: "open" | "none" | "autoPin" | undefined;
@@ -367,13 +368,13 @@ declare const ViewBinding: {
367
368
  }]>;
368
369
  };
369
370
 
370
- declare const impl: <TBinder extends Binder>(schema: TBinder, implementation: BinderImplementation<TBinder>, createToolFn?: typeof createPrivateTool) => _mastra_core.Tool<z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any> | undefined, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, _mastra_core.ToolExecutionContext<z.ZodType<any, z.ZodTypeDef, any>, any, any>>[];
371
+ declare const impl: <TBinder extends Binder>(schema: TBinder, implementation: BinderImplementation<TBinder>, createToolFn?: typeof createPrivateTool, createStreamableToolFn?: typeof createStreamableTool) => (StreamableTool<z.ZodType<any, z.ZodTypeDef, any>> | _mastra_core.Tool<z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any> | undefined, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, _mastra_core.ToolExecutionContext<z.ZodType<any, z.ZodTypeDef, any>, any, any>>)[];
371
372
 
372
373
  declare const Binding: <TDefinition extends readonly ToolBinder[]>(binderTools: TDefinition) => {
373
374
  isImplementedBy: (tools: Pick<ToolBinder, "name">[]) => boolean;
374
375
  };
375
376
 
376
- declare const VIEW_BINDING_SCHEMA: readonly [{
377
+ declare const VIEW_BINDING: readonly [{
377
378
  readonly name: "DECO_CHAT_VIEWS_LIST";
378
379
  readonly inputSchema: z.ZodAny;
379
380
  readonly outputSchema: z.ZodObject<{
@@ -390,13 +391,13 @@ declare const VIEW_BINDING_SCHEMA: readonly [{
390
391
  prompt: z.ZodOptional<z.ZodString>;
391
392
  installBehavior: z.ZodOptional<z.ZodEnum<["none", "open", "autoPin"]>>;
392
393
  }, "strip", z.ZodTypeAny, {
393
- tools: string[];
394
394
  title: string;
395
+ tools: string[];
395
396
  icon: string;
396
- id?: string | undefined;
397
- name?: string | undefined;
398
397
  url?: string | undefined;
398
+ name?: string | undefined;
399
399
  description?: string | undefined;
400
+ id?: string | undefined;
400
401
  resourceName?: string | undefined;
401
402
  mimeTypePattern?: string | undefined;
402
403
  prompt?: string | undefined;
@@ -404,25 +405,25 @@ declare const VIEW_BINDING_SCHEMA: readonly [{
404
405
  }, {
405
406
  title: string;
406
407
  icon: string;
407
- id?: string | undefined;
408
- name?: string | undefined;
409
408
  url?: string | undefined;
409
+ name?: string | undefined;
410
410
  description?: string | undefined;
411
- resourceName?: string | undefined;
412
411
  tools?: string[] | undefined;
412
+ id?: string | undefined;
413
+ resourceName?: string | undefined;
413
414
  mimeTypePattern?: string | undefined;
414
415
  prompt?: string | undefined;
415
416
  installBehavior?: "open" | "none" | "autoPin" | undefined;
416
417
  }>, "many">;
417
418
  }, "strip", z.ZodTypeAny, {
418
419
  views: {
419
- tools: string[];
420
420
  title: string;
421
+ tools: string[];
421
422
  icon: string;
422
- id?: string | undefined;
423
- name?: string | undefined;
424
423
  url?: string | undefined;
424
+ name?: string | undefined;
425
425
  description?: string | undefined;
426
+ id?: string | undefined;
426
427
  resourceName?: string | undefined;
427
428
  mimeTypePattern?: string | undefined;
428
429
  prompt?: string | undefined;
@@ -432,12 +433,12 @@ declare const VIEW_BINDING_SCHEMA: readonly [{
432
433
  views: {
433
434
  title: string;
434
435
  icon: string;
435
- id?: string | undefined;
436
- name?: string | undefined;
437
436
  url?: string | undefined;
437
+ name?: string | undefined;
438
438
  description?: string | undefined;
439
- resourceName?: string | undefined;
440
439
  tools?: string[] | undefined;
440
+ id?: string | undefined;
441
+ resourceName?: string | undefined;
441
442
  mimeTypePattern?: string | undefined;
442
443
  prompt?: string | undefined;
443
444
  installBehavior?: "open" | "none" | "autoPin" | undefined;
@@ -458,13 +459,13 @@ declare const listViewsSchema: z.ZodObject<{
458
459
  prompt: z.ZodOptional<z.ZodString>;
459
460
  installBehavior: z.ZodOptional<z.ZodEnum<["none", "open", "autoPin"]>>;
460
461
  }, "strip", z.ZodTypeAny, {
461
- tools: string[];
462
462
  title: string;
463
+ tools: string[];
463
464
  icon: string;
464
- id?: string | undefined;
465
- name?: string | undefined;
466
465
  url?: string | undefined;
466
+ name?: string | undefined;
467
467
  description?: string | undefined;
468
+ id?: string | undefined;
468
469
  resourceName?: string | undefined;
469
470
  mimeTypePattern?: string | undefined;
470
471
  prompt?: string | undefined;
@@ -472,25 +473,25 @@ declare const listViewsSchema: z.ZodObject<{
472
473
  }, {
473
474
  title: string;
474
475
  icon: string;
475
- id?: string | undefined;
476
- name?: string | undefined;
477
476
  url?: string | undefined;
477
+ name?: string | undefined;
478
478
  description?: string | undefined;
479
- resourceName?: string | undefined;
480
479
  tools?: string[] | undefined;
480
+ id?: string | undefined;
481
+ resourceName?: string | undefined;
481
482
  mimeTypePattern?: string | undefined;
482
483
  prompt?: string | undefined;
483
484
  installBehavior?: "open" | "none" | "autoPin" | undefined;
484
485
  }>, "many">;
485
486
  }, "strip", z.ZodTypeAny, {
486
487
  views: {
487
- tools: string[];
488
488
  title: string;
489
+ tools: string[];
489
490
  icon: string;
490
- id?: string | undefined;
491
- name?: string | undefined;
492
491
  url?: string | undefined;
492
+ name?: string | undefined;
493
493
  description?: string | undefined;
494
+ id?: string | undefined;
494
495
  resourceName?: string | undefined;
495
496
  mimeTypePattern?: string | undefined;
496
497
  prompt?: string | undefined;
@@ -500,12 +501,12 @@ declare const listViewsSchema: z.ZodObject<{
500
501
  views: {
501
502
  title: string;
502
503
  icon: string;
503
- id?: string | undefined;
504
- name?: string | undefined;
505
504
  url?: string | undefined;
505
+ name?: string | undefined;
506
506
  description?: string | undefined;
507
- resourceName?: string | undefined;
508
507
  tools?: string[] | undefined;
508
+ id?: string | undefined;
509
+ resourceName?: string | undefined;
509
510
  mimeTypePattern?: string | undefined;
510
511
  prompt?: string | undefined;
511
512
  installBehavior?: "open" | "none" | "autoPin" | undefined;
@@ -750,11 +751,11 @@ declare const DeleteOutputSchema: z.ZodObject<{
750
751
  success: z.ZodBoolean;
751
752
  uri: z.ZodString;
752
753
  }, "strip", z.ZodTypeAny, {
753
- success: boolean;
754
754
  uri: string;
755
- }, {
756
755
  success: boolean;
756
+ }, {
757
757
  uri: string;
758
+ success: boolean;
758
759
  }>;
759
760
  /**
760
761
  * Factory function to create item schema for a specific resource type
@@ -1048,7 +1049,1264 @@ declare const WellKnownBindings: {
1048
1049
  }[];
1049
1050
  }>;
1050
1051
  }];
1052
+ readonly LanguageModel: ({
1053
+ name: "COLLECTION_LLM_LIST";
1054
+ inputSchema: zod.ZodObject<{
1055
+ where: zod.ZodOptional<zod.ZodUnion<[zod.ZodObject<{
1056
+ field: zod.ZodArray<zod.ZodString, "many">;
1057
+ operator: zod.ZodEnum<["eq", "gt", "gte", "lt", "lte", "in", "like", "contains"]>;
1058
+ value: zod.ZodUnknown;
1059
+ }, "strip", zod.ZodTypeAny, {
1060
+ field: string[];
1061
+ operator: "eq" | "gt" | "gte" | "lt" | "lte" | "in" | "like" | "contains";
1062
+ value?: unknown;
1063
+ }, {
1064
+ field: string[];
1065
+ operator: "eq" | "gt" | "gte" | "lt" | "lte" | "in" | "like" | "contains";
1066
+ value?: unknown;
1067
+ }>, zod.ZodObject<{
1068
+ operator: zod.ZodEnum<["and", "or", "not"]>;
1069
+ conditions: zod.ZodArray<zod.ZodObject<{
1070
+ field: zod.ZodArray<zod.ZodString, "many">;
1071
+ operator: zod.ZodEnum<["eq", "gt", "gte", "lt", "lte", "in", "like", "contains"]>;
1072
+ value: zod.ZodUnknown;
1073
+ }, "strip", zod.ZodTypeAny, {
1074
+ field: string[];
1075
+ operator: "eq" | "gt" | "gte" | "lt" | "lte" | "in" | "like" | "contains";
1076
+ value?: unknown;
1077
+ }, {
1078
+ field: string[];
1079
+ operator: "eq" | "gt" | "gte" | "lt" | "lte" | "in" | "like" | "contains";
1080
+ value?: unknown;
1081
+ }>, "many">;
1082
+ }, "strip", zod.ZodTypeAny, {
1083
+ operator: "and" | "or" | "not";
1084
+ conditions: {
1085
+ field: string[];
1086
+ operator: "eq" | "gt" | "gte" | "lt" | "lte" | "in" | "like" | "contains";
1087
+ value?: unknown;
1088
+ }[];
1089
+ }, {
1090
+ operator: "and" | "or" | "not";
1091
+ conditions: {
1092
+ field: string[];
1093
+ operator: "eq" | "gt" | "gte" | "lt" | "lte" | "in" | "like" | "contains";
1094
+ value?: unknown;
1095
+ }[];
1096
+ }>]>>;
1097
+ orderBy: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
1098
+ field: zod.ZodArray<zod.ZodString, "many">;
1099
+ direction: zod.ZodEnum<["asc", "desc"]>;
1100
+ nulls: zod.ZodOptional<zod.ZodEnum<["first", "last"]>>;
1101
+ }, "strip", zod.ZodTypeAny, {
1102
+ field: string[];
1103
+ direction: "asc" | "desc";
1104
+ nulls?: "first" | "last" | undefined;
1105
+ }, {
1106
+ field: string[];
1107
+ direction: "asc" | "desc";
1108
+ nulls?: "first" | "last" | undefined;
1109
+ }>, "many">>;
1110
+ limit: zod.ZodOptional<zod.ZodNumber>;
1111
+ offset: zod.ZodOptional<zod.ZodNumber>;
1112
+ }, "strip", zod.ZodTypeAny, {
1113
+ where?: {
1114
+ field: string[];
1115
+ operator: "eq" | "gt" | "gte" | "lt" | "lte" | "in" | "like" | "contains";
1116
+ value?: unknown;
1117
+ } | {
1118
+ operator: "and" | "or" | "not";
1119
+ conditions: {
1120
+ field: string[];
1121
+ operator: "eq" | "gt" | "gte" | "lt" | "lte" | "in" | "like" | "contains";
1122
+ value?: unknown;
1123
+ }[];
1124
+ } | undefined;
1125
+ orderBy?: {
1126
+ field: string[];
1127
+ direction: "asc" | "desc";
1128
+ nulls?: "first" | "last" | undefined;
1129
+ }[] | undefined;
1130
+ limit?: number | undefined;
1131
+ offset?: number | undefined;
1132
+ }, {
1133
+ where?: {
1134
+ field: string[];
1135
+ operator: "eq" | "gt" | "gte" | "lt" | "lte" | "in" | "like" | "contains";
1136
+ value?: unknown;
1137
+ } | {
1138
+ operator: "and" | "or" | "not";
1139
+ conditions: {
1140
+ field: string[];
1141
+ operator: "eq" | "gt" | "gte" | "lt" | "lte" | "in" | "like" | "contains";
1142
+ value?: unknown;
1143
+ }[];
1144
+ } | undefined;
1145
+ orderBy?: {
1146
+ field: string[];
1147
+ direction: "asc" | "desc";
1148
+ nulls?: "first" | "last" | undefined;
1149
+ }[] | undefined;
1150
+ limit?: number | undefined;
1151
+ offset?: number | undefined;
1152
+ }>;
1153
+ outputSchema: zod.ZodObject<{
1154
+ items: zod.ZodArray<zod.ZodObject<{
1155
+ id: zod.ZodString;
1156
+ title: zod.ZodString;
1157
+ created_at: zod.ZodString;
1158
+ updated_at: zod.ZodString;
1159
+ created_by: zod.ZodOptional<zod.ZodString>;
1160
+ updated_by: zod.ZodOptional<zod.ZodString>;
1161
+ } & {
1162
+ logo: zod.ZodNullable<zod.ZodString>;
1163
+ description: zod.ZodNullable<zod.ZodString>;
1164
+ capabilities: zod.ZodArray<zod.ZodString, "many">;
1165
+ limits: zod.ZodNullable<zod.ZodObject<{
1166
+ contextWindow: zod.ZodNumber;
1167
+ maxOutputTokens: zod.ZodNumber;
1168
+ }, "strip", zod.ZodTypeAny, {
1169
+ maxOutputTokens: number;
1170
+ contextWindow: number;
1171
+ }, {
1172
+ maxOutputTokens: number;
1173
+ contextWindow: number;
1174
+ }>>;
1175
+ costs: zod.ZodNullable<zod.ZodObject<{
1176
+ input: zod.ZodNumber;
1177
+ output: zod.ZodNumber;
1178
+ }, "strip", zod.ZodTypeAny, {
1179
+ input: number;
1180
+ output: number;
1181
+ }, {
1182
+ input: number;
1183
+ output: number;
1184
+ }>>;
1185
+ provider: zod.ZodNullable<zod.ZodEnum<["openai", "anthropic", "google", "xai", "deepseek", "openai-compatible", "openrouter"]>>;
1186
+ }, "strip", zod.ZodTypeAny, {
1187
+ description: string | null;
1188
+ id: string;
1189
+ logo: string | null;
1190
+ capabilities: string[];
1191
+ limits: {
1192
+ maxOutputTokens: number;
1193
+ contextWindow: number;
1194
+ } | null;
1195
+ costs: {
1196
+ input: number;
1197
+ output: number;
1198
+ } | null;
1199
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
1200
+ title: string;
1201
+ created_at: string;
1202
+ updated_at: string;
1203
+ created_by?: string | undefined;
1204
+ updated_by?: string | undefined;
1205
+ }, {
1206
+ description: string | null;
1207
+ id: string;
1208
+ logo: string | null;
1209
+ capabilities: string[];
1210
+ limits: {
1211
+ maxOutputTokens: number;
1212
+ contextWindow: number;
1213
+ } | null;
1214
+ costs: {
1215
+ input: number;
1216
+ output: number;
1217
+ } | null;
1218
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
1219
+ title: string;
1220
+ created_at: string;
1221
+ updated_at: string;
1222
+ created_by?: string | undefined;
1223
+ updated_by?: string | undefined;
1224
+ }>, "many">;
1225
+ totalCount: zod.ZodOptional<zod.ZodNumber>;
1226
+ hasMore: zod.ZodOptional<zod.ZodBoolean>;
1227
+ }, "strip", zod.ZodTypeAny, {
1228
+ items: {
1229
+ description: string | null;
1230
+ id: string;
1231
+ logo: string | null;
1232
+ capabilities: string[];
1233
+ limits: {
1234
+ maxOutputTokens: number;
1235
+ contextWindow: number;
1236
+ } | null;
1237
+ costs: {
1238
+ input: number;
1239
+ output: number;
1240
+ } | null;
1241
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
1242
+ title: string;
1243
+ created_at: string;
1244
+ updated_at: string;
1245
+ created_by?: string | undefined;
1246
+ updated_by?: string | undefined;
1247
+ }[];
1248
+ totalCount?: number | undefined;
1249
+ hasMore?: boolean | undefined;
1250
+ }, {
1251
+ items: {
1252
+ description: string | null;
1253
+ id: string;
1254
+ logo: string | null;
1255
+ capabilities: string[];
1256
+ limits: {
1257
+ maxOutputTokens: number;
1258
+ contextWindow: number;
1259
+ } | null;
1260
+ costs: {
1261
+ input: number;
1262
+ output: number;
1263
+ } | null;
1264
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
1265
+ title: string;
1266
+ created_at: string;
1267
+ updated_at: string;
1268
+ created_by?: string | undefined;
1269
+ updated_by?: string | undefined;
1270
+ }[];
1271
+ totalCount?: number | undefined;
1272
+ hasMore?: boolean | undefined;
1273
+ }>;
1274
+ } | {
1275
+ name: "COLLECTION_LLM_GET";
1276
+ inputSchema: zod.ZodObject<{
1277
+ id: zod.ZodString;
1278
+ }, "strip", zod.ZodTypeAny, {
1279
+ id: string;
1280
+ }, {
1281
+ id: string;
1282
+ }>;
1283
+ outputSchema: zod.ZodObject<{
1284
+ item: zod.ZodNullable<zod.ZodObject<{
1285
+ id: zod.ZodString;
1286
+ title: zod.ZodString;
1287
+ created_at: zod.ZodString;
1288
+ updated_at: zod.ZodString;
1289
+ created_by: zod.ZodOptional<zod.ZodString>;
1290
+ updated_by: zod.ZodOptional<zod.ZodString>;
1291
+ } & {
1292
+ logo: zod.ZodNullable<zod.ZodString>;
1293
+ description: zod.ZodNullable<zod.ZodString>;
1294
+ capabilities: zod.ZodArray<zod.ZodString, "many">;
1295
+ limits: zod.ZodNullable<zod.ZodObject<{
1296
+ contextWindow: zod.ZodNumber;
1297
+ maxOutputTokens: zod.ZodNumber;
1298
+ }, "strip", zod.ZodTypeAny, {
1299
+ maxOutputTokens: number;
1300
+ contextWindow: number;
1301
+ }, {
1302
+ maxOutputTokens: number;
1303
+ contextWindow: number;
1304
+ }>>;
1305
+ costs: zod.ZodNullable<zod.ZodObject<{
1306
+ input: zod.ZodNumber;
1307
+ output: zod.ZodNumber;
1308
+ }, "strip", zod.ZodTypeAny, {
1309
+ input: number;
1310
+ output: number;
1311
+ }, {
1312
+ input: number;
1313
+ output: number;
1314
+ }>>;
1315
+ provider: zod.ZodNullable<zod.ZodEnum<["openai", "anthropic", "google", "xai", "deepseek", "openai-compatible", "openrouter"]>>;
1316
+ }, "strip", zod.ZodTypeAny, {
1317
+ description: string | null;
1318
+ id: string;
1319
+ logo: string | null;
1320
+ capabilities: string[];
1321
+ limits: {
1322
+ maxOutputTokens: number;
1323
+ contextWindow: number;
1324
+ } | null;
1325
+ costs: {
1326
+ input: number;
1327
+ output: number;
1328
+ } | null;
1329
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
1330
+ title: string;
1331
+ created_at: string;
1332
+ updated_at: string;
1333
+ created_by?: string | undefined;
1334
+ updated_by?: string | undefined;
1335
+ }, {
1336
+ description: string | null;
1337
+ id: string;
1338
+ logo: string | null;
1339
+ capabilities: string[];
1340
+ limits: {
1341
+ maxOutputTokens: number;
1342
+ contextWindow: number;
1343
+ } | null;
1344
+ costs: {
1345
+ input: number;
1346
+ output: number;
1347
+ } | null;
1348
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
1349
+ title: string;
1350
+ created_at: string;
1351
+ updated_at: string;
1352
+ created_by?: string | undefined;
1353
+ updated_by?: string | undefined;
1354
+ }>>;
1355
+ }, "strip", zod.ZodTypeAny, {
1356
+ item: {
1357
+ description: string | null;
1358
+ id: string;
1359
+ logo: string | null;
1360
+ capabilities: string[];
1361
+ limits: {
1362
+ maxOutputTokens: number;
1363
+ contextWindow: number;
1364
+ } | null;
1365
+ costs: {
1366
+ input: number;
1367
+ output: number;
1368
+ } | null;
1369
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
1370
+ title: string;
1371
+ created_at: string;
1372
+ updated_at: string;
1373
+ created_by?: string | undefined;
1374
+ updated_by?: string | undefined;
1375
+ } | null;
1376
+ }, {
1377
+ item: {
1378
+ description: string | null;
1379
+ id: string;
1380
+ logo: string | null;
1381
+ capabilities: string[];
1382
+ limits: {
1383
+ maxOutputTokens: number;
1384
+ contextWindow: number;
1385
+ } | null;
1386
+ costs: {
1387
+ input: number;
1388
+ output: number;
1389
+ } | null;
1390
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
1391
+ title: string;
1392
+ created_at: string;
1393
+ updated_at: string;
1394
+ created_by?: string | undefined;
1395
+ updated_by?: string | undefined;
1396
+ } | null;
1397
+ }>;
1398
+ } | {
1399
+ name: "COLLECTION_LLM_CREATE";
1400
+ inputSchema: zod.ZodObject<{
1401
+ data: zod.ZodObject<{
1402
+ id: zod.ZodString;
1403
+ title: zod.ZodString;
1404
+ created_at: zod.ZodString;
1405
+ updated_at: zod.ZodString;
1406
+ created_by: zod.ZodOptional<zod.ZodString>;
1407
+ updated_by: zod.ZodOptional<zod.ZodString>;
1408
+ } & {
1409
+ logo: zod.ZodNullable<zod.ZodString>;
1410
+ description: zod.ZodNullable<zod.ZodString>;
1411
+ capabilities: zod.ZodArray<zod.ZodString, "many">;
1412
+ limits: zod.ZodNullable<zod.ZodObject<{
1413
+ contextWindow: zod.ZodNumber;
1414
+ maxOutputTokens: zod.ZodNumber;
1415
+ }, "strip", zod.ZodTypeAny, {
1416
+ maxOutputTokens: number;
1417
+ contextWindow: number;
1418
+ }, {
1419
+ maxOutputTokens: number;
1420
+ contextWindow: number;
1421
+ }>>;
1422
+ costs: zod.ZodNullable<zod.ZodObject<{
1423
+ input: zod.ZodNumber;
1424
+ output: zod.ZodNumber;
1425
+ }, "strip", zod.ZodTypeAny, {
1426
+ input: number;
1427
+ output: number;
1428
+ }, {
1429
+ input: number;
1430
+ output: number;
1431
+ }>>;
1432
+ provider: zod.ZodNullable<zod.ZodEnum<["openai", "anthropic", "google", "xai", "deepseek", "openai-compatible", "openrouter"]>>;
1433
+ }, "strip", zod.ZodTypeAny, {
1434
+ description: string | null;
1435
+ id: string;
1436
+ logo: string | null;
1437
+ capabilities: string[];
1438
+ limits: {
1439
+ maxOutputTokens: number;
1440
+ contextWindow: number;
1441
+ } | null;
1442
+ costs: {
1443
+ input: number;
1444
+ output: number;
1445
+ } | null;
1446
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
1447
+ title: string;
1448
+ created_at: string;
1449
+ updated_at: string;
1450
+ created_by?: string | undefined;
1451
+ updated_by?: string | undefined;
1452
+ }, {
1453
+ description: string | null;
1454
+ id: string;
1455
+ logo: string | null;
1456
+ capabilities: string[];
1457
+ limits: {
1458
+ maxOutputTokens: number;
1459
+ contextWindow: number;
1460
+ } | null;
1461
+ costs: {
1462
+ input: number;
1463
+ output: number;
1464
+ } | null;
1465
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
1466
+ title: string;
1467
+ created_at: string;
1468
+ updated_at: string;
1469
+ created_by?: string | undefined;
1470
+ updated_by?: string | undefined;
1471
+ }>;
1472
+ }, "strip", zod.ZodTypeAny, {
1473
+ data: {
1474
+ description: string | null;
1475
+ id: string;
1476
+ logo: string | null;
1477
+ capabilities: string[];
1478
+ limits: {
1479
+ maxOutputTokens: number;
1480
+ contextWindow: number;
1481
+ } | null;
1482
+ costs: {
1483
+ input: number;
1484
+ output: number;
1485
+ } | null;
1486
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
1487
+ title: string;
1488
+ created_at: string;
1489
+ updated_at: string;
1490
+ created_by?: string | undefined;
1491
+ updated_by?: string | undefined;
1492
+ };
1493
+ }, {
1494
+ data: {
1495
+ description: string | null;
1496
+ id: string;
1497
+ logo: string | null;
1498
+ capabilities: string[];
1499
+ limits: {
1500
+ maxOutputTokens: number;
1501
+ contextWindow: number;
1502
+ } | null;
1503
+ costs: {
1504
+ input: number;
1505
+ output: number;
1506
+ } | null;
1507
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
1508
+ title: string;
1509
+ created_at: string;
1510
+ updated_at: string;
1511
+ created_by?: string | undefined;
1512
+ updated_by?: string | undefined;
1513
+ };
1514
+ }>;
1515
+ outputSchema: zod.ZodObject<{
1516
+ item: zod.ZodObject<{
1517
+ id: zod.ZodString;
1518
+ title: zod.ZodString;
1519
+ created_at: zod.ZodString;
1520
+ updated_at: zod.ZodString;
1521
+ created_by: zod.ZodOptional<zod.ZodString>;
1522
+ updated_by: zod.ZodOptional<zod.ZodString>;
1523
+ } & {
1524
+ logo: zod.ZodNullable<zod.ZodString>;
1525
+ description: zod.ZodNullable<zod.ZodString>;
1526
+ capabilities: zod.ZodArray<zod.ZodString, "many">;
1527
+ limits: zod.ZodNullable<zod.ZodObject<{
1528
+ contextWindow: zod.ZodNumber;
1529
+ maxOutputTokens: zod.ZodNumber;
1530
+ }, "strip", zod.ZodTypeAny, {
1531
+ maxOutputTokens: number;
1532
+ contextWindow: number;
1533
+ }, {
1534
+ maxOutputTokens: number;
1535
+ contextWindow: number;
1536
+ }>>;
1537
+ costs: zod.ZodNullable<zod.ZodObject<{
1538
+ input: zod.ZodNumber;
1539
+ output: zod.ZodNumber;
1540
+ }, "strip", zod.ZodTypeAny, {
1541
+ input: number;
1542
+ output: number;
1543
+ }, {
1544
+ input: number;
1545
+ output: number;
1546
+ }>>;
1547
+ provider: zod.ZodNullable<zod.ZodEnum<["openai", "anthropic", "google", "xai", "deepseek", "openai-compatible", "openrouter"]>>;
1548
+ }, "strip", zod.ZodTypeAny, {
1549
+ description: string | null;
1550
+ id: string;
1551
+ logo: string | null;
1552
+ capabilities: string[];
1553
+ limits: {
1554
+ maxOutputTokens: number;
1555
+ contextWindow: number;
1556
+ } | null;
1557
+ costs: {
1558
+ input: number;
1559
+ output: number;
1560
+ } | null;
1561
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
1562
+ title: string;
1563
+ created_at: string;
1564
+ updated_at: string;
1565
+ created_by?: string | undefined;
1566
+ updated_by?: string | undefined;
1567
+ }, {
1568
+ description: string | null;
1569
+ id: string;
1570
+ logo: string | null;
1571
+ capabilities: string[];
1572
+ limits: {
1573
+ maxOutputTokens: number;
1574
+ contextWindow: number;
1575
+ } | null;
1576
+ costs: {
1577
+ input: number;
1578
+ output: number;
1579
+ } | null;
1580
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
1581
+ title: string;
1582
+ created_at: string;
1583
+ updated_at: string;
1584
+ created_by?: string | undefined;
1585
+ updated_by?: string | undefined;
1586
+ }>;
1587
+ }, "strip", zod.ZodTypeAny, {
1588
+ item: {
1589
+ description: string | null;
1590
+ id: string;
1591
+ logo: string | null;
1592
+ capabilities: string[];
1593
+ limits: {
1594
+ maxOutputTokens: number;
1595
+ contextWindow: number;
1596
+ } | null;
1597
+ costs: {
1598
+ input: number;
1599
+ output: number;
1600
+ } | null;
1601
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
1602
+ title: string;
1603
+ created_at: string;
1604
+ updated_at: string;
1605
+ created_by?: string | undefined;
1606
+ updated_by?: string | undefined;
1607
+ };
1608
+ }, {
1609
+ item: {
1610
+ description: string | null;
1611
+ id: string;
1612
+ logo: string | null;
1613
+ capabilities: string[];
1614
+ limits: {
1615
+ maxOutputTokens: number;
1616
+ contextWindow: number;
1617
+ } | null;
1618
+ costs: {
1619
+ input: number;
1620
+ output: number;
1621
+ } | null;
1622
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
1623
+ title: string;
1624
+ created_at: string;
1625
+ updated_at: string;
1626
+ created_by?: string | undefined;
1627
+ updated_by?: string | undefined;
1628
+ };
1629
+ }>;
1630
+ opt: true;
1631
+ } | {
1632
+ name: "COLLECTION_LLM_UPDATE";
1633
+ inputSchema: zod.ZodObject<{
1634
+ id: zod.ZodString;
1635
+ data: zod.ZodObject<{
1636
+ [x: string]: zod.ZodOptional<any>;
1637
+ }, any, any, {
1638
+ [x: string]: any;
1639
+ }, {
1640
+ [x: string]: any;
1641
+ }>;
1642
+ }, "strip", zod.ZodTypeAny, {
1643
+ id: string;
1644
+ data: {
1645
+ [x: string]: any;
1646
+ };
1647
+ }, {
1648
+ id: string;
1649
+ data: {
1650
+ [x: string]: any;
1651
+ };
1652
+ }>;
1653
+ outputSchema: zod.ZodObject<{
1654
+ item: zod.ZodObject<{
1655
+ id: zod.ZodString;
1656
+ title: zod.ZodString;
1657
+ created_at: zod.ZodString;
1658
+ updated_at: zod.ZodString;
1659
+ created_by: zod.ZodOptional<zod.ZodString>;
1660
+ updated_by: zod.ZodOptional<zod.ZodString>;
1661
+ } & {
1662
+ logo: zod.ZodNullable<zod.ZodString>;
1663
+ description: zod.ZodNullable<zod.ZodString>;
1664
+ capabilities: zod.ZodArray<zod.ZodString, "many">;
1665
+ limits: zod.ZodNullable<zod.ZodObject<{
1666
+ contextWindow: zod.ZodNumber;
1667
+ maxOutputTokens: zod.ZodNumber;
1668
+ }, "strip", zod.ZodTypeAny, {
1669
+ maxOutputTokens: number;
1670
+ contextWindow: number;
1671
+ }, {
1672
+ maxOutputTokens: number;
1673
+ contextWindow: number;
1674
+ }>>;
1675
+ costs: zod.ZodNullable<zod.ZodObject<{
1676
+ input: zod.ZodNumber;
1677
+ output: zod.ZodNumber;
1678
+ }, "strip", zod.ZodTypeAny, {
1679
+ input: number;
1680
+ output: number;
1681
+ }, {
1682
+ input: number;
1683
+ output: number;
1684
+ }>>;
1685
+ provider: zod.ZodNullable<zod.ZodEnum<["openai", "anthropic", "google", "xai", "deepseek", "openai-compatible", "openrouter"]>>;
1686
+ }, "strip", zod.ZodTypeAny, {
1687
+ description: string | null;
1688
+ id: string;
1689
+ logo: string | null;
1690
+ capabilities: string[];
1691
+ limits: {
1692
+ maxOutputTokens: number;
1693
+ contextWindow: number;
1694
+ } | null;
1695
+ costs: {
1696
+ input: number;
1697
+ output: number;
1698
+ } | null;
1699
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
1700
+ title: string;
1701
+ created_at: string;
1702
+ updated_at: string;
1703
+ created_by?: string | undefined;
1704
+ updated_by?: string | undefined;
1705
+ }, {
1706
+ description: string | null;
1707
+ id: string;
1708
+ logo: string | null;
1709
+ capabilities: string[];
1710
+ limits: {
1711
+ maxOutputTokens: number;
1712
+ contextWindow: number;
1713
+ } | null;
1714
+ costs: {
1715
+ input: number;
1716
+ output: number;
1717
+ } | null;
1718
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
1719
+ title: string;
1720
+ created_at: string;
1721
+ updated_at: string;
1722
+ created_by?: string | undefined;
1723
+ updated_by?: string | undefined;
1724
+ }>;
1725
+ }, "strip", zod.ZodTypeAny, {
1726
+ item: {
1727
+ description: string | null;
1728
+ id: string;
1729
+ logo: string | null;
1730
+ capabilities: string[];
1731
+ limits: {
1732
+ maxOutputTokens: number;
1733
+ contextWindow: number;
1734
+ } | null;
1735
+ costs: {
1736
+ input: number;
1737
+ output: number;
1738
+ } | null;
1739
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
1740
+ title: string;
1741
+ created_at: string;
1742
+ updated_at: string;
1743
+ created_by?: string | undefined;
1744
+ updated_by?: string | undefined;
1745
+ };
1746
+ }, {
1747
+ item: {
1748
+ description: string | null;
1749
+ id: string;
1750
+ logo: string | null;
1751
+ capabilities: string[];
1752
+ limits: {
1753
+ maxOutputTokens: number;
1754
+ contextWindow: number;
1755
+ } | null;
1756
+ costs: {
1757
+ input: number;
1758
+ output: number;
1759
+ } | null;
1760
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
1761
+ title: string;
1762
+ created_at: string;
1763
+ updated_at: string;
1764
+ created_by?: string | undefined;
1765
+ updated_by?: string | undefined;
1766
+ };
1767
+ }>;
1768
+ opt: true;
1769
+ } | {
1770
+ name: "COLLECTION_LLM_DELETE";
1771
+ inputSchema: zod.ZodObject<{
1772
+ id: zod.ZodString;
1773
+ }, "strip", zod.ZodTypeAny, {
1774
+ id: string;
1775
+ }, {
1776
+ id: string;
1777
+ }>;
1778
+ outputSchema: zod.ZodObject<{
1779
+ item: zod.ZodObject<{
1780
+ id: zod.ZodString;
1781
+ title: zod.ZodString;
1782
+ created_at: zod.ZodString;
1783
+ updated_at: zod.ZodString;
1784
+ created_by: zod.ZodOptional<zod.ZodString>;
1785
+ updated_by: zod.ZodOptional<zod.ZodString>;
1786
+ } & {
1787
+ logo: zod.ZodNullable<zod.ZodString>;
1788
+ description: zod.ZodNullable<zod.ZodString>;
1789
+ capabilities: zod.ZodArray<zod.ZodString, "many">;
1790
+ limits: zod.ZodNullable<zod.ZodObject<{
1791
+ contextWindow: zod.ZodNumber;
1792
+ maxOutputTokens: zod.ZodNumber;
1793
+ }, "strip", zod.ZodTypeAny, {
1794
+ maxOutputTokens: number;
1795
+ contextWindow: number;
1796
+ }, {
1797
+ maxOutputTokens: number;
1798
+ contextWindow: number;
1799
+ }>>;
1800
+ costs: zod.ZodNullable<zod.ZodObject<{
1801
+ input: zod.ZodNumber;
1802
+ output: zod.ZodNumber;
1803
+ }, "strip", zod.ZodTypeAny, {
1804
+ input: number;
1805
+ output: number;
1806
+ }, {
1807
+ input: number;
1808
+ output: number;
1809
+ }>>;
1810
+ provider: zod.ZodNullable<zod.ZodEnum<["openai", "anthropic", "google", "xai", "deepseek", "openai-compatible", "openrouter"]>>;
1811
+ }, "strip", zod.ZodTypeAny, {
1812
+ description: string | null;
1813
+ id: string;
1814
+ logo: string | null;
1815
+ capabilities: string[];
1816
+ limits: {
1817
+ maxOutputTokens: number;
1818
+ contextWindow: number;
1819
+ } | null;
1820
+ costs: {
1821
+ input: number;
1822
+ output: number;
1823
+ } | null;
1824
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
1825
+ title: string;
1826
+ created_at: string;
1827
+ updated_at: string;
1828
+ created_by?: string | undefined;
1829
+ updated_by?: string | undefined;
1830
+ }, {
1831
+ description: string | null;
1832
+ id: string;
1833
+ logo: string | null;
1834
+ capabilities: string[];
1835
+ limits: {
1836
+ maxOutputTokens: number;
1837
+ contextWindow: number;
1838
+ } | null;
1839
+ costs: {
1840
+ input: number;
1841
+ output: number;
1842
+ } | null;
1843
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
1844
+ title: string;
1845
+ created_at: string;
1846
+ updated_at: string;
1847
+ created_by?: string | undefined;
1848
+ updated_by?: string | undefined;
1849
+ }>;
1850
+ }, "strip", zod.ZodTypeAny, {
1851
+ item: {
1852
+ description: string | null;
1853
+ id: string;
1854
+ logo: string | null;
1855
+ capabilities: string[];
1856
+ limits: {
1857
+ maxOutputTokens: number;
1858
+ contextWindow: number;
1859
+ } | null;
1860
+ costs: {
1861
+ input: number;
1862
+ output: number;
1863
+ } | null;
1864
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
1865
+ title: string;
1866
+ created_at: string;
1867
+ updated_at: string;
1868
+ created_by?: string | undefined;
1869
+ updated_by?: string | undefined;
1870
+ };
1871
+ }, {
1872
+ item: {
1873
+ description: string | null;
1874
+ id: string;
1875
+ logo: string | null;
1876
+ capabilities: string[];
1877
+ limits: {
1878
+ maxOutputTokens: number;
1879
+ contextWindow: number;
1880
+ } | null;
1881
+ costs: {
1882
+ input: number;
1883
+ output: number;
1884
+ } | null;
1885
+ provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
1886
+ title: string;
1887
+ created_at: string;
1888
+ updated_at: string;
1889
+ created_by?: string | undefined;
1890
+ updated_by?: string | undefined;
1891
+ };
1892
+ }>;
1893
+ opt: true;
1894
+ } | {
1895
+ name: "LLM_METADATA";
1896
+ inputSchema: zod.ZodObject<{
1897
+ modelId: zod.ZodString;
1898
+ }, "strip", zod.ZodTypeAny, {
1899
+ modelId: string;
1900
+ }, {
1901
+ modelId: string;
1902
+ }>;
1903
+ outputSchema: zod.ZodObject<{
1904
+ supportedUrls: zod.ZodRecord<zod.ZodString, zod.ZodArray<zod.ZodString, "many">>;
1905
+ }, "strip", zod.ZodTypeAny, {
1906
+ supportedUrls: Record<string, string[]>;
1907
+ }, {
1908
+ supportedUrls: Record<string, string[]>;
1909
+ }>;
1910
+ streamable?: undefined;
1911
+ } | {
1912
+ name: "LLM_DO_STREAM";
1913
+ inputSchema: zod.ZodObject<{
1914
+ modelId: zod.ZodString;
1915
+ callOptions: zod.ZodObject<{
1916
+ prompt: zod.ZodAny;
1917
+ maxOutputTokens: zod.ZodOptional<zod.ZodNumber>;
1918
+ temperature: zod.ZodOptional<zod.ZodNumber>;
1919
+ topP: zod.ZodOptional<zod.ZodNumber>;
1920
+ topK: zod.ZodOptional<zod.ZodNumber>;
1921
+ presencePenalty: zod.ZodOptional<zod.ZodNumber>;
1922
+ frequencyPenalty: zod.ZodOptional<zod.ZodNumber>;
1923
+ seed: zod.ZodOptional<zod.ZodNumber>;
1924
+ stopSequences: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
1925
+ responseFormat: zod.ZodOptional<zod.ZodUnion<[zod.ZodObject<{
1926
+ type: zod.ZodLiteral<"text">;
1927
+ }, "strip", zod.ZodTypeAny, {
1928
+ type: "text";
1929
+ }, {
1930
+ type: "text";
1931
+ }>, zod.ZodObject<{
1932
+ type: zod.ZodLiteral<"json">;
1933
+ schema: zod.ZodOptional<zod.ZodAny>;
1934
+ name: zod.ZodOptional<zod.ZodString>;
1935
+ description: zod.ZodOptional<zod.ZodString>;
1936
+ }, "strip", zod.ZodTypeAny, {
1937
+ type: "json";
1938
+ schema?: any;
1939
+ name?: string | undefined;
1940
+ description?: string | undefined;
1941
+ }, {
1942
+ type: "json";
1943
+ schema?: any;
1944
+ name?: string | undefined;
1945
+ description?: string | undefined;
1946
+ }>]>>;
1947
+ tools: zod.ZodOptional<zod.ZodArray<zod.ZodAny, "many">>;
1948
+ toolChoice: zod.ZodOptional<zod.ZodAny>;
1949
+ includeRawChunks: zod.ZodOptional<zod.ZodBoolean>;
1950
+ abortSignal: zod.ZodOptional<zod.ZodAny>;
1951
+ headers: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnion<[zod.ZodString, zod.ZodUndefined]>>>;
1952
+ providerOptions: zod.ZodOptional<zod.ZodAny>;
1953
+ }, "strip", zod.ZodTypeAny, {
1954
+ prompt?: any;
1955
+ maxOutputTokens?: number | undefined;
1956
+ temperature?: number | undefined;
1957
+ topP?: number | undefined;
1958
+ topK?: number | undefined;
1959
+ presencePenalty?: number | undefined;
1960
+ frequencyPenalty?: number | undefined;
1961
+ seed?: number | undefined;
1962
+ stopSequences?: string[] | undefined;
1963
+ responseFormat?: {
1964
+ type: "text";
1965
+ } | {
1966
+ type: "json";
1967
+ schema?: any;
1968
+ name?: string | undefined;
1969
+ description?: string | undefined;
1970
+ } | undefined;
1971
+ tools?: any[] | undefined;
1972
+ toolChoice?: any;
1973
+ includeRawChunks?: boolean | undefined;
1974
+ abortSignal?: any;
1975
+ headers?: Record<string, string | undefined> | undefined;
1976
+ providerOptions?: any;
1977
+ }, {
1978
+ prompt?: any;
1979
+ maxOutputTokens?: number | undefined;
1980
+ temperature?: number | undefined;
1981
+ topP?: number | undefined;
1982
+ topK?: number | undefined;
1983
+ presencePenalty?: number | undefined;
1984
+ frequencyPenalty?: number | undefined;
1985
+ seed?: number | undefined;
1986
+ stopSequences?: string[] | undefined;
1987
+ responseFormat?: {
1988
+ type: "text";
1989
+ } | {
1990
+ type: "json";
1991
+ schema?: any;
1992
+ name?: string | undefined;
1993
+ description?: string | undefined;
1994
+ } | undefined;
1995
+ tools?: any[] | undefined;
1996
+ toolChoice?: any;
1997
+ includeRawChunks?: boolean | undefined;
1998
+ abortSignal?: any;
1999
+ headers?: Record<string, string | undefined> | undefined;
2000
+ providerOptions?: any;
2001
+ }>;
2002
+ }, "strip", zod.ZodTypeAny, {
2003
+ modelId: string;
2004
+ callOptions: {
2005
+ prompt?: any;
2006
+ maxOutputTokens?: number | undefined;
2007
+ temperature?: number | undefined;
2008
+ topP?: number | undefined;
2009
+ topK?: number | undefined;
2010
+ presencePenalty?: number | undefined;
2011
+ frequencyPenalty?: number | undefined;
2012
+ seed?: number | undefined;
2013
+ stopSequences?: string[] | undefined;
2014
+ responseFormat?: {
2015
+ type: "text";
2016
+ } | {
2017
+ type: "json";
2018
+ schema?: any;
2019
+ name?: string | undefined;
2020
+ description?: string | undefined;
2021
+ } | undefined;
2022
+ tools?: any[] | undefined;
2023
+ toolChoice?: any;
2024
+ includeRawChunks?: boolean | undefined;
2025
+ abortSignal?: any;
2026
+ headers?: Record<string, string | undefined> | undefined;
2027
+ providerOptions?: any;
2028
+ };
2029
+ }, {
2030
+ modelId: string;
2031
+ callOptions: {
2032
+ prompt?: any;
2033
+ maxOutputTokens?: number | undefined;
2034
+ temperature?: number | undefined;
2035
+ topP?: number | undefined;
2036
+ topK?: number | undefined;
2037
+ presencePenalty?: number | undefined;
2038
+ frequencyPenalty?: number | undefined;
2039
+ seed?: number | undefined;
2040
+ stopSequences?: string[] | undefined;
2041
+ responseFormat?: {
2042
+ type: "text";
2043
+ } | {
2044
+ type: "json";
2045
+ schema?: any;
2046
+ name?: string | undefined;
2047
+ description?: string | undefined;
2048
+ } | undefined;
2049
+ tools?: any[] | undefined;
2050
+ toolChoice?: any;
2051
+ includeRawChunks?: boolean | undefined;
2052
+ abortSignal?: any;
2053
+ headers?: Record<string, string | undefined> | undefined;
2054
+ providerOptions?: any;
2055
+ };
2056
+ }>;
2057
+ streamable: true;
2058
+ outputSchema?: undefined;
2059
+ } | {
2060
+ name: "LLM_DO_GENERATE";
2061
+ inputSchema: zod.ZodObject<{
2062
+ modelId: zod.ZodString;
2063
+ callOptions: zod.ZodObject<{
2064
+ prompt: zod.ZodAny;
2065
+ maxOutputTokens: zod.ZodOptional<zod.ZodNumber>;
2066
+ temperature: zod.ZodOptional<zod.ZodNumber>;
2067
+ topP: zod.ZodOptional<zod.ZodNumber>;
2068
+ topK: zod.ZodOptional<zod.ZodNumber>;
2069
+ presencePenalty: zod.ZodOptional<zod.ZodNumber>;
2070
+ frequencyPenalty: zod.ZodOptional<zod.ZodNumber>;
2071
+ seed: zod.ZodOptional<zod.ZodNumber>;
2072
+ stopSequences: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
2073
+ responseFormat: zod.ZodOptional<zod.ZodUnion<[zod.ZodObject<{
2074
+ type: zod.ZodLiteral<"text">;
2075
+ }, "strip", zod.ZodTypeAny, {
2076
+ type: "text";
2077
+ }, {
2078
+ type: "text";
2079
+ }>, zod.ZodObject<{
2080
+ type: zod.ZodLiteral<"json">;
2081
+ schema: zod.ZodOptional<zod.ZodAny>;
2082
+ name: zod.ZodOptional<zod.ZodString>;
2083
+ description: zod.ZodOptional<zod.ZodString>;
2084
+ }, "strip", zod.ZodTypeAny, {
2085
+ type: "json";
2086
+ schema?: any;
2087
+ name?: string | undefined;
2088
+ description?: string | undefined;
2089
+ }, {
2090
+ type: "json";
2091
+ schema?: any;
2092
+ name?: string | undefined;
2093
+ description?: string | undefined;
2094
+ }>]>>;
2095
+ tools: zod.ZodOptional<zod.ZodArray<zod.ZodAny, "many">>;
2096
+ toolChoice: zod.ZodOptional<zod.ZodAny>;
2097
+ includeRawChunks: zod.ZodOptional<zod.ZodBoolean>;
2098
+ abortSignal: zod.ZodOptional<zod.ZodAny>;
2099
+ headers: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnion<[zod.ZodString, zod.ZodUndefined]>>>;
2100
+ providerOptions: zod.ZodOptional<zod.ZodAny>;
2101
+ }, "strip", zod.ZodTypeAny, {
2102
+ prompt?: any;
2103
+ maxOutputTokens?: number | undefined;
2104
+ temperature?: number | undefined;
2105
+ topP?: number | undefined;
2106
+ topK?: number | undefined;
2107
+ presencePenalty?: number | undefined;
2108
+ frequencyPenalty?: number | undefined;
2109
+ seed?: number | undefined;
2110
+ stopSequences?: string[] | undefined;
2111
+ responseFormat?: {
2112
+ type: "text";
2113
+ } | {
2114
+ type: "json";
2115
+ schema?: any;
2116
+ name?: string | undefined;
2117
+ description?: string | undefined;
2118
+ } | undefined;
2119
+ tools?: any[] | undefined;
2120
+ toolChoice?: any;
2121
+ includeRawChunks?: boolean | undefined;
2122
+ abortSignal?: any;
2123
+ headers?: Record<string, string | undefined> | undefined;
2124
+ providerOptions?: any;
2125
+ }, {
2126
+ prompt?: any;
2127
+ maxOutputTokens?: number | undefined;
2128
+ temperature?: number | undefined;
2129
+ topP?: number | undefined;
2130
+ topK?: number | undefined;
2131
+ presencePenalty?: number | undefined;
2132
+ frequencyPenalty?: number | undefined;
2133
+ seed?: number | undefined;
2134
+ stopSequences?: string[] | undefined;
2135
+ responseFormat?: {
2136
+ type: "text";
2137
+ } | {
2138
+ type: "json";
2139
+ schema?: any;
2140
+ name?: string | undefined;
2141
+ description?: string | undefined;
2142
+ } | undefined;
2143
+ tools?: any[] | undefined;
2144
+ toolChoice?: any;
2145
+ includeRawChunks?: boolean | undefined;
2146
+ abortSignal?: any;
2147
+ headers?: Record<string, string | undefined> | undefined;
2148
+ providerOptions?: any;
2149
+ }>;
2150
+ }, "strip", zod.ZodTypeAny, {
2151
+ modelId: string;
2152
+ callOptions: {
2153
+ prompt?: any;
2154
+ maxOutputTokens?: number | undefined;
2155
+ temperature?: number | undefined;
2156
+ topP?: number | undefined;
2157
+ topK?: number | undefined;
2158
+ presencePenalty?: number | undefined;
2159
+ frequencyPenalty?: number | undefined;
2160
+ seed?: number | undefined;
2161
+ stopSequences?: string[] | undefined;
2162
+ responseFormat?: {
2163
+ type: "text";
2164
+ } | {
2165
+ type: "json";
2166
+ schema?: any;
2167
+ name?: string | undefined;
2168
+ description?: string | undefined;
2169
+ } | undefined;
2170
+ tools?: any[] | undefined;
2171
+ toolChoice?: any;
2172
+ includeRawChunks?: boolean | undefined;
2173
+ abortSignal?: any;
2174
+ headers?: Record<string, string | undefined> | undefined;
2175
+ providerOptions?: any;
2176
+ };
2177
+ }, {
2178
+ modelId: string;
2179
+ callOptions: {
2180
+ prompt?: any;
2181
+ maxOutputTokens?: number | undefined;
2182
+ temperature?: number | undefined;
2183
+ topP?: number | undefined;
2184
+ topK?: number | undefined;
2185
+ presencePenalty?: number | undefined;
2186
+ frequencyPenalty?: number | undefined;
2187
+ seed?: number | undefined;
2188
+ stopSequences?: string[] | undefined;
2189
+ responseFormat?: {
2190
+ type: "text";
2191
+ } | {
2192
+ type: "json";
2193
+ schema?: any;
2194
+ name?: string | undefined;
2195
+ description?: string | undefined;
2196
+ } | undefined;
2197
+ tools?: any[] | undefined;
2198
+ toolChoice?: any;
2199
+ includeRawChunks?: boolean | undefined;
2200
+ abortSignal?: any;
2201
+ headers?: Record<string, string | undefined> | undefined;
2202
+ providerOptions?: any;
2203
+ };
2204
+ }>;
2205
+ outputSchema: zod.ZodObject<{
2206
+ content: zod.ZodArray<zod.ZodAny, "many">;
2207
+ finishReason: zod.ZodEnum<["stop", "length", "content-filter", "tool-calls", "error", "other", "unknown"]>;
2208
+ usage: zod.ZodEffects<zod.ZodObject<{
2209
+ inputTokens: zod.ZodOptional<zod.ZodNumber>;
2210
+ outputTokens: zod.ZodOptional<zod.ZodNumber>;
2211
+ totalTokens: zod.ZodOptional<zod.ZodNumber>;
2212
+ reasoningTokens: zod.ZodOptional<zod.ZodNumber>;
2213
+ }, "passthrough", zod.ZodTypeAny, zod.objectOutputType<{
2214
+ inputTokens: zod.ZodOptional<zod.ZodNumber>;
2215
+ outputTokens: zod.ZodOptional<zod.ZodNumber>;
2216
+ totalTokens: zod.ZodOptional<zod.ZodNumber>;
2217
+ reasoningTokens: zod.ZodOptional<zod.ZodNumber>;
2218
+ }, zod.ZodTypeAny, "passthrough">, zod.objectInputType<{
2219
+ inputTokens: zod.ZodOptional<zod.ZodNumber>;
2220
+ outputTokens: zod.ZodOptional<zod.ZodNumber>;
2221
+ totalTokens: zod.ZodOptional<zod.ZodNumber>;
2222
+ reasoningTokens: zod.ZodOptional<zod.ZodNumber>;
2223
+ }, zod.ZodTypeAny, "passthrough">>, {
2224
+ inputTokens: number | undefined;
2225
+ outputTokens: number | undefined;
2226
+ totalTokens: number | undefined;
2227
+ reasoningTokens: number | undefined;
2228
+ }, zod.objectInputType<{
2229
+ inputTokens: zod.ZodOptional<zod.ZodNumber>;
2230
+ outputTokens: zod.ZodOptional<zod.ZodNumber>;
2231
+ totalTokens: zod.ZodOptional<zod.ZodNumber>;
2232
+ reasoningTokens: zod.ZodOptional<zod.ZodNumber>;
2233
+ }, zod.ZodTypeAny, "passthrough">>;
2234
+ providerMetadata: zod.ZodOptional<zod.ZodAny>;
2235
+ request: zod.ZodOptional<zod.ZodObject<{
2236
+ body: zod.ZodOptional<zod.ZodAny>;
2237
+ }, "strip", zod.ZodTypeAny, {
2238
+ body?: any;
2239
+ }, {
2240
+ body?: any;
2241
+ }>>;
2242
+ response: zod.ZodOptional<zod.ZodObject<{
2243
+ id: zod.ZodOptional<zod.ZodString>;
2244
+ timestamp: zod.ZodOptional<zod.ZodDate>;
2245
+ modelId: zod.ZodOptional<zod.ZodString>;
2246
+ headers: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
2247
+ body: zod.ZodOptional<zod.ZodAny>;
2248
+ }, "strip", zod.ZodTypeAny, {
2249
+ headers?: Record<string, string> | undefined;
2250
+ body?: any;
2251
+ id?: string | undefined;
2252
+ timestamp?: Date | undefined;
2253
+ modelId?: string | undefined;
2254
+ }, {
2255
+ headers?: Record<string, string> | undefined;
2256
+ body?: any;
2257
+ id?: string | undefined;
2258
+ timestamp?: Date | undefined;
2259
+ modelId?: string | undefined;
2260
+ }>>;
2261
+ warnings: zod.ZodArray<zod.ZodAny, "many">;
2262
+ }, "strip", zod.ZodTypeAny, {
2263
+ content: any[];
2264
+ finishReason: "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "error" | "other";
2265
+ usage: {
2266
+ inputTokens: number | undefined;
2267
+ outputTokens: number | undefined;
2268
+ totalTokens: number | undefined;
2269
+ reasoningTokens: number | undefined;
2270
+ };
2271
+ warnings: any[];
2272
+ providerMetadata?: any;
2273
+ request?: {
2274
+ body?: any;
2275
+ } | undefined;
2276
+ response?: {
2277
+ headers?: Record<string, string> | undefined;
2278
+ body?: any;
2279
+ id?: string | undefined;
2280
+ timestamp?: Date | undefined;
2281
+ modelId?: string | undefined;
2282
+ } | undefined;
2283
+ }, {
2284
+ content: any[];
2285
+ finishReason: "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "error" | "other";
2286
+ usage: {
2287
+ inputTokens?: number | undefined;
2288
+ outputTokens?: number | undefined;
2289
+ totalTokens?: number | undefined;
2290
+ reasoningTokens?: number | undefined;
2291
+ } & {
2292
+ [k: string]: unknown;
2293
+ };
2294
+ warnings: any[];
2295
+ providerMetadata?: any;
2296
+ request?: {
2297
+ body?: any;
2298
+ } | undefined;
2299
+ response?: {
2300
+ headers?: Record<string, string> | undefined;
2301
+ body?: any;
2302
+ id?: string | undefined;
2303
+ timestamp?: Date | undefined;
2304
+ modelId?: string | undefined;
2305
+ } | undefined;
2306
+ }>;
2307
+ streamable?: undefined;
2308
+ })[];
1051
2309
  };
1052
2310
  type WellKnownBindingsName = keyof typeof WellKnownBindings;
1053
2311
 
1054
- export { type Binder, type BinderImplementation, Binding, CHANNEL_BINDING_SCHEMA, type Callbacks, ChannelBinding, type CreateInput, type CreateOutput, type DeleteInput, DeleteInputSchema, type DeleteOutput, DeleteOutputSchema, DescribeInputSchema, DescribeOutputSchema, type JoinedChannelPayload, type ListChannelsSchema, type MCPBindingClient, type ReadInput, ReadInputSchema, type ReadOutput, type ResourceItem, ResourcePath, ResourceUri, ResourceUriSchema, type SearchInput, SearchInputSchema, type SearchOutput, type ToolLike, type UpdateInput, type UpdateOutput, VIEW_BINDING_SCHEMA, ViewBinding, WellKnownBindings, type WellKnownBindingsName, bindingClient, constructResourceUri, createCreateInputSchema, createCreateOutputSchema, createItemSchema, createReadOutputSchema, createSearchOutputSchema, createUpdateInputSchema, createUpdateOutputSchema, getMetadataString as deconfigGetMetadataString, getMetadataValue as deconfigGetMetadataValue, normalizeDirectory as deconfigNormalizeDirectory, impl, listViewsSchema, parseResourceUri, validateResourceUri };
2312
+ export { type Binder, type BinderImplementation, Binding, CHANNEL_BINDING, type Callbacks, ChannelBinding, type CreateInput, type CreateOutput, type DeleteInput, DeleteInputSchema, type DeleteOutput, DeleteOutputSchema, DescribeInputSchema, DescribeOutputSchema, type JoinedChannelPayload, type ListChannelsSchema, type MCPBindingClient, type ReadInput, ReadInputSchema, type ReadOutput, type ResourceItem, ResourcePath, ResourceUri, ResourceUriSchema, type SearchInput, SearchInputSchema, type SearchOutput, type ToolLike, type UpdateInput, type UpdateOutput, VIEW_BINDING, ViewBinding, WellKnownBindings, type WellKnownBindingsName, bindingClient, constructResourceUri, createCreateInputSchema, createCreateOutputSchema, createItemSchema, createReadOutputSchema, createSearchOutputSchema, createUpdateInputSchema, createUpdateOutputSchema, getMetadataString as deconfigGetMetadataString, getMetadataValue as deconfigGetMetadataValue, normalizeDirectory as deconfigNormalizeDirectory, impl, listViewsSchema, parseResourceUri, validateResourceUri };