@decocms/runtime 0.25.1 → 0.27.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 +1286 -28
  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-SnnmAI05.d.ts → index-6dtc1EK6.d.ts} +14 -14
  16. package/dist/{index-D8GtUDPS.d.ts → index-COMJ3oN7.d.ts} +4 -3
  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 +10 -14
  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 +38 -38
  27. package/dist/views.d.ts +6 -6
  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-6dtc1EK6.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;
@@ -315,8 +316,8 @@ declare const ViewBinding: {
315
316
  title: string;
316
317
  icon: string;
317
318
  id?: string | undefined;
318
- name?: string | undefined;
319
319
  url?: string | undefined;
320
+ name?: string | undefined;
320
321
  description?: string | undefined;
321
322
  resourceName?: string | undefined;
322
323
  mimeTypePattern?: string | undefined;
@@ -326,11 +327,11 @@ declare const ViewBinding: {
326
327
  title: string;
327
328
  icon: string;
328
329
  id?: string | undefined;
329
- name?: string | undefined;
330
330
  url?: string | undefined;
331
+ name?: string | undefined;
332
+ tools?: string[] | undefined;
331
333
  description?: string | undefined;
332
334
  resourceName?: string | undefined;
333
- tools?: string[] | undefined;
334
335
  mimeTypePattern?: string | undefined;
335
336
  prompt?: string | undefined;
336
337
  installBehavior?: "open" | "none" | "autoPin" | undefined;
@@ -341,8 +342,8 @@ declare const ViewBinding: {
341
342
  title: string;
342
343
  icon: string;
343
344
  id?: string | undefined;
344
- name?: string | undefined;
345
345
  url?: string | undefined;
346
+ name?: string | undefined;
346
347
  description?: string | undefined;
347
348
  resourceName?: string | undefined;
348
349
  mimeTypePattern?: string | undefined;
@@ -354,11 +355,11 @@ declare const ViewBinding: {
354
355
  title: string;
355
356
  icon: string;
356
357
  id?: string | undefined;
357
- name?: string | undefined;
358
358
  url?: string | undefined;
359
+ name?: string | undefined;
360
+ tools?: string[] | undefined;
359
361
  description?: string | undefined;
360
362
  resourceName?: string | undefined;
361
- tools?: 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<{
@@ -394,8 +395,8 @@ declare const VIEW_BINDING_SCHEMA: readonly [{
394
395
  title: string;
395
396
  icon: string;
396
397
  id?: string | undefined;
397
- name?: string | undefined;
398
398
  url?: string | undefined;
399
+ name?: string | undefined;
399
400
  description?: string | undefined;
400
401
  resourceName?: string | undefined;
401
402
  mimeTypePattern?: string | undefined;
@@ -405,11 +406,11 @@ declare const VIEW_BINDING_SCHEMA: readonly [{
405
406
  title: string;
406
407
  icon: string;
407
408
  id?: string | undefined;
408
- name?: string | undefined;
409
409
  url?: string | undefined;
410
+ name?: string | undefined;
411
+ tools?: string[] | undefined;
410
412
  description?: string | undefined;
411
413
  resourceName?: string | undefined;
412
- tools?: string[] | undefined;
413
414
  mimeTypePattern?: string | undefined;
414
415
  prompt?: string | undefined;
415
416
  installBehavior?: "open" | "none" | "autoPin" | undefined;
@@ -420,8 +421,8 @@ declare const VIEW_BINDING_SCHEMA: readonly [{
420
421
  title: string;
421
422
  icon: string;
422
423
  id?: string | undefined;
423
- name?: string | undefined;
424
424
  url?: string | undefined;
425
+ name?: string | undefined;
425
426
  description?: string | undefined;
426
427
  resourceName?: string | undefined;
427
428
  mimeTypePattern?: string | undefined;
@@ -433,11 +434,11 @@ declare const VIEW_BINDING_SCHEMA: readonly [{
433
434
  title: string;
434
435
  icon: string;
435
436
  id?: string | undefined;
436
- name?: string | undefined;
437
437
  url?: string | undefined;
438
+ name?: string | undefined;
439
+ tools?: string[] | undefined;
438
440
  description?: string | undefined;
439
441
  resourceName?: string | undefined;
440
- tools?: string[] | undefined;
441
442
  mimeTypePattern?: string | undefined;
442
443
  prompt?: string | undefined;
443
444
  installBehavior?: "open" | "none" | "autoPin" | undefined;
@@ -462,8 +463,8 @@ declare const listViewsSchema: z.ZodObject<{
462
463
  title: string;
463
464
  icon: string;
464
465
  id?: string | undefined;
465
- name?: string | undefined;
466
466
  url?: string | undefined;
467
+ name?: string | undefined;
467
468
  description?: string | undefined;
468
469
  resourceName?: string | undefined;
469
470
  mimeTypePattern?: string | undefined;
@@ -473,11 +474,11 @@ declare const listViewsSchema: z.ZodObject<{
473
474
  title: string;
474
475
  icon: string;
475
476
  id?: string | undefined;
476
- name?: string | undefined;
477
477
  url?: string | undefined;
478
+ name?: string | undefined;
479
+ tools?: string[] | undefined;
478
480
  description?: string | undefined;
479
481
  resourceName?: string | undefined;
480
- tools?: string[] | undefined;
481
482
  mimeTypePattern?: string | undefined;
482
483
  prompt?: string | undefined;
483
484
  installBehavior?: "open" | "none" | "autoPin" | undefined;
@@ -488,8 +489,8 @@ declare const listViewsSchema: z.ZodObject<{
488
489
  title: string;
489
490
  icon: string;
490
491
  id?: string | undefined;
491
- name?: string | undefined;
492
492
  url?: string | undefined;
493
+ name?: string | undefined;
493
494
  description?: string | undefined;
494
495
  resourceName?: string | undefined;
495
496
  mimeTypePattern?: string | undefined;
@@ -501,11 +502,11 @@ declare const listViewsSchema: z.ZodObject<{
501
502
  title: string;
502
503
  icon: string;
503
504
  id?: string | undefined;
504
- name?: string | undefined;
505
505
  url?: string | undefined;
506
+ name?: string | undefined;
507
+ tools?: string[] | undefined;
506
508
  description?: string | undefined;
507
509
  resourceName?: string | undefined;
508
- tools?: 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
+ id: string;
1188
+ title: string;
1189
+ created_at: string;
1190
+ updated_at: string;
1191
+ description: string | null;
1192
+ capabilities: string[];
1193
+ logo: string | null;
1194
+ limits: {
1195
+ maxOutputTokens: number;
1196
+ contextWindow: number;
1197
+ } | null;
1198
+ costs: {
1199
+ input: number;
1200
+ output: number;
1201
+ } | null;
1202
+ provider: "openai" | "anthropic" | "google" | "deepseek" | "openai-compatible" | "openrouter" | "xai" | null;
1203
+ created_by?: string | undefined;
1204
+ updated_by?: string | undefined;
1205
+ }, {
1206
+ id: string;
1207
+ title: string;
1208
+ created_at: string;
1209
+ updated_at: string;
1210
+ description: string | null;
1211
+ capabilities: string[];
1212
+ logo: string | null;
1213
+ limits: {
1214
+ maxOutputTokens: number;
1215
+ contextWindow: number;
1216
+ } | null;
1217
+ costs: {
1218
+ input: number;
1219
+ output: number;
1220
+ } | null;
1221
+ provider: "openai" | "anthropic" | "google" | "deepseek" | "openai-compatible" | "openrouter" | "xai" | null;
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
+ id: string;
1230
+ title: string;
1231
+ created_at: string;
1232
+ updated_at: string;
1233
+ description: string | null;
1234
+ capabilities: string[];
1235
+ logo: string | null;
1236
+ limits: {
1237
+ maxOutputTokens: number;
1238
+ contextWindow: number;
1239
+ } | null;
1240
+ costs: {
1241
+ input: number;
1242
+ output: number;
1243
+ } | null;
1244
+ provider: "openai" | "anthropic" | "google" | "deepseek" | "openai-compatible" | "openrouter" | "xai" | null;
1245
+ created_by?: string | undefined;
1246
+ updated_by?: string | undefined;
1247
+ }[];
1248
+ totalCount?: number | undefined;
1249
+ hasMore?: boolean | undefined;
1250
+ }, {
1251
+ items: {
1252
+ id: string;
1253
+ title: string;
1254
+ created_at: string;
1255
+ updated_at: string;
1256
+ description: string | null;
1257
+ capabilities: string[];
1258
+ logo: string | null;
1259
+ limits: {
1260
+ maxOutputTokens: number;
1261
+ contextWindow: number;
1262
+ } | null;
1263
+ costs: {
1264
+ input: number;
1265
+ output: number;
1266
+ } | null;
1267
+ provider: "openai" | "anthropic" | "google" | "deepseek" | "openai-compatible" | "openrouter" | "xai" | null;
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
+ id: string;
1318
+ title: string;
1319
+ created_at: string;
1320
+ updated_at: string;
1321
+ description: string | null;
1322
+ capabilities: string[];
1323
+ logo: string | null;
1324
+ limits: {
1325
+ maxOutputTokens: number;
1326
+ contextWindow: number;
1327
+ } | null;
1328
+ costs: {
1329
+ input: number;
1330
+ output: number;
1331
+ } | null;
1332
+ provider: "openai" | "anthropic" | "google" | "deepseek" | "openai-compatible" | "openrouter" | "xai" | null;
1333
+ created_by?: string | undefined;
1334
+ updated_by?: string | undefined;
1335
+ }, {
1336
+ id: string;
1337
+ title: string;
1338
+ created_at: string;
1339
+ updated_at: string;
1340
+ description: string | null;
1341
+ capabilities: string[];
1342
+ logo: string | null;
1343
+ limits: {
1344
+ maxOutputTokens: number;
1345
+ contextWindow: number;
1346
+ } | null;
1347
+ costs: {
1348
+ input: number;
1349
+ output: number;
1350
+ } | null;
1351
+ provider: "openai" | "anthropic" | "google" | "deepseek" | "openai-compatible" | "openrouter" | "xai" | null;
1352
+ created_by?: string | undefined;
1353
+ updated_by?: string | undefined;
1354
+ }>>;
1355
+ }, "strip", zod.ZodTypeAny, {
1356
+ item: {
1357
+ id: string;
1358
+ title: string;
1359
+ created_at: string;
1360
+ updated_at: string;
1361
+ description: string | null;
1362
+ capabilities: string[];
1363
+ logo: string | null;
1364
+ limits: {
1365
+ maxOutputTokens: number;
1366
+ contextWindow: number;
1367
+ } | null;
1368
+ costs: {
1369
+ input: number;
1370
+ output: number;
1371
+ } | null;
1372
+ provider: "openai" | "anthropic" | "google" | "deepseek" | "openai-compatible" | "openrouter" | "xai" | null;
1373
+ created_by?: string | undefined;
1374
+ updated_by?: string | undefined;
1375
+ } | null;
1376
+ }, {
1377
+ item: {
1378
+ id: string;
1379
+ title: string;
1380
+ created_at: string;
1381
+ updated_at: string;
1382
+ description: string | null;
1383
+ capabilities: string[];
1384
+ logo: string | null;
1385
+ limits: {
1386
+ maxOutputTokens: number;
1387
+ contextWindow: number;
1388
+ } | null;
1389
+ costs: {
1390
+ input: number;
1391
+ output: number;
1392
+ } | null;
1393
+ provider: "openai" | "anthropic" | "google" | "deepseek" | "openai-compatible" | "openrouter" | "xai" | null;
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
+ id: string;
1435
+ title: string;
1436
+ created_at: string;
1437
+ updated_at: string;
1438
+ description: string | null;
1439
+ capabilities: string[];
1440
+ logo: string | null;
1441
+ limits: {
1442
+ maxOutputTokens: number;
1443
+ contextWindow: number;
1444
+ } | null;
1445
+ costs: {
1446
+ input: number;
1447
+ output: number;
1448
+ } | null;
1449
+ provider: "openai" | "anthropic" | "google" | "deepseek" | "openai-compatible" | "openrouter" | "xai" | null;
1450
+ created_by?: string | undefined;
1451
+ updated_by?: string | undefined;
1452
+ }, {
1453
+ id: string;
1454
+ title: string;
1455
+ created_at: string;
1456
+ updated_at: string;
1457
+ description: string | null;
1458
+ capabilities: string[];
1459
+ logo: string | null;
1460
+ limits: {
1461
+ maxOutputTokens: number;
1462
+ contextWindow: number;
1463
+ } | null;
1464
+ costs: {
1465
+ input: number;
1466
+ output: number;
1467
+ } | null;
1468
+ provider: "openai" | "anthropic" | "google" | "deepseek" | "openai-compatible" | "openrouter" | "xai" | null;
1469
+ created_by?: string | undefined;
1470
+ updated_by?: string | undefined;
1471
+ }>;
1472
+ }, "strip", zod.ZodTypeAny, {
1473
+ data: {
1474
+ id: string;
1475
+ title: string;
1476
+ created_at: string;
1477
+ updated_at: string;
1478
+ description: string | null;
1479
+ capabilities: string[];
1480
+ logo: string | null;
1481
+ limits: {
1482
+ maxOutputTokens: number;
1483
+ contextWindow: number;
1484
+ } | null;
1485
+ costs: {
1486
+ input: number;
1487
+ output: number;
1488
+ } | null;
1489
+ provider: "openai" | "anthropic" | "google" | "deepseek" | "openai-compatible" | "openrouter" | "xai" | null;
1490
+ created_by?: string | undefined;
1491
+ updated_by?: string | undefined;
1492
+ };
1493
+ }, {
1494
+ data: {
1495
+ id: string;
1496
+ title: string;
1497
+ created_at: string;
1498
+ updated_at: string;
1499
+ description: string | null;
1500
+ capabilities: string[];
1501
+ logo: string | null;
1502
+ limits: {
1503
+ maxOutputTokens: number;
1504
+ contextWindow: number;
1505
+ } | null;
1506
+ costs: {
1507
+ input: number;
1508
+ output: number;
1509
+ } | null;
1510
+ provider: "openai" | "anthropic" | "google" | "deepseek" | "openai-compatible" | "openrouter" | "xai" | null;
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
+ id: string;
1550
+ title: string;
1551
+ created_at: string;
1552
+ updated_at: string;
1553
+ description: string | null;
1554
+ capabilities: string[];
1555
+ logo: string | null;
1556
+ limits: {
1557
+ maxOutputTokens: number;
1558
+ contextWindow: number;
1559
+ } | null;
1560
+ costs: {
1561
+ input: number;
1562
+ output: number;
1563
+ } | null;
1564
+ provider: "openai" | "anthropic" | "google" | "deepseek" | "openai-compatible" | "openrouter" | "xai" | null;
1565
+ created_by?: string | undefined;
1566
+ updated_by?: string | undefined;
1567
+ }, {
1568
+ id: string;
1569
+ title: string;
1570
+ created_at: string;
1571
+ updated_at: string;
1572
+ description: string | null;
1573
+ capabilities: string[];
1574
+ logo: string | null;
1575
+ limits: {
1576
+ maxOutputTokens: number;
1577
+ contextWindow: number;
1578
+ } | null;
1579
+ costs: {
1580
+ input: number;
1581
+ output: number;
1582
+ } | null;
1583
+ provider: "openai" | "anthropic" | "google" | "deepseek" | "openai-compatible" | "openrouter" | "xai" | null;
1584
+ created_by?: string | undefined;
1585
+ updated_by?: string | undefined;
1586
+ }>;
1587
+ }, "strip", zod.ZodTypeAny, {
1588
+ item: {
1589
+ id: string;
1590
+ title: string;
1591
+ created_at: string;
1592
+ updated_at: string;
1593
+ description: string | null;
1594
+ capabilities: string[];
1595
+ logo: string | null;
1596
+ limits: {
1597
+ maxOutputTokens: number;
1598
+ contextWindow: number;
1599
+ } | null;
1600
+ costs: {
1601
+ input: number;
1602
+ output: number;
1603
+ } | null;
1604
+ provider: "openai" | "anthropic" | "google" | "deepseek" | "openai-compatible" | "openrouter" | "xai" | null;
1605
+ created_by?: string | undefined;
1606
+ updated_by?: string | undefined;
1607
+ };
1608
+ }, {
1609
+ item: {
1610
+ id: string;
1611
+ title: string;
1612
+ created_at: string;
1613
+ updated_at: string;
1614
+ description: string | null;
1615
+ capabilities: string[];
1616
+ logo: string | null;
1617
+ limits: {
1618
+ maxOutputTokens: number;
1619
+ contextWindow: number;
1620
+ } | null;
1621
+ costs: {
1622
+ input: number;
1623
+ output: number;
1624
+ } | null;
1625
+ provider: "openai" | "anthropic" | "google" | "deepseek" | "openai-compatible" | "openrouter" | "xai" | null;
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
+ id: string;
1688
+ title: string;
1689
+ created_at: string;
1690
+ updated_at: string;
1691
+ description: string | null;
1692
+ capabilities: string[];
1693
+ logo: string | null;
1694
+ limits: {
1695
+ maxOutputTokens: number;
1696
+ contextWindow: number;
1697
+ } | null;
1698
+ costs: {
1699
+ input: number;
1700
+ output: number;
1701
+ } | null;
1702
+ provider: "openai" | "anthropic" | "google" | "deepseek" | "openai-compatible" | "openrouter" | "xai" | null;
1703
+ created_by?: string | undefined;
1704
+ updated_by?: string | undefined;
1705
+ }, {
1706
+ id: string;
1707
+ title: string;
1708
+ created_at: string;
1709
+ updated_at: string;
1710
+ description: string | null;
1711
+ capabilities: string[];
1712
+ logo: string | null;
1713
+ limits: {
1714
+ maxOutputTokens: number;
1715
+ contextWindow: number;
1716
+ } | null;
1717
+ costs: {
1718
+ input: number;
1719
+ output: number;
1720
+ } | null;
1721
+ provider: "openai" | "anthropic" | "google" | "deepseek" | "openai-compatible" | "openrouter" | "xai" | null;
1722
+ created_by?: string | undefined;
1723
+ updated_by?: string | undefined;
1724
+ }>;
1725
+ }, "strip", zod.ZodTypeAny, {
1726
+ item: {
1727
+ id: string;
1728
+ title: string;
1729
+ created_at: string;
1730
+ updated_at: string;
1731
+ description: string | null;
1732
+ capabilities: string[];
1733
+ logo: string | null;
1734
+ limits: {
1735
+ maxOutputTokens: number;
1736
+ contextWindow: number;
1737
+ } | null;
1738
+ costs: {
1739
+ input: number;
1740
+ output: number;
1741
+ } | null;
1742
+ provider: "openai" | "anthropic" | "google" | "deepseek" | "openai-compatible" | "openrouter" | "xai" | null;
1743
+ created_by?: string | undefined;
1744
+ updated_by?: string | undefined;
1745
+ };
1746
+ }, {
1747
+ item: {
1748
+ id: string;
1749
+ title: string;
1750
+ created_at: string;
1751
+ updated_at: string;
1752
+ description: string | null;
1753
+ capabilities: string[];
1754
+ logo: string | null;
1755
+ limits: {
1756
+ maxOutputTokens: number;
1757
+ contextWindow: number;
1758
+ } | null;
1759
+ costs: {
1760
+ input: number;
1761
+ output: number;
1762
+ } | null;
1763
+ provider: "openai" | "anthropic" | "google" | "deepseek" | "openai-compatible" | "openrouter" | "xai" | null;
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
+ id: string;
1813
+ title: string;
1814
+ created_at: string;
1815
+ updated_at: string;
1816
+ description: string | null;
1817
+ capabilities: string[];
1818
+ logo: string | null;
1819
+ limits: {
1820
+ maxOutputTokens: number;
1821
+ contextWindow: number;
1822
+ } | null;
1823
+ costs: {
1824
+ input: number;
1825
+ output: number;
1826
+ } | null;
1827
+ provider: "openai" | "anthropic" | "google" | "deepseek" | "openai-compatible" | "openrouter" | "xai" | null;
1828
+ created_by?: string | undefined;
1829
+ updated_by?: string | undefined;
1830
+ }, {
1831
+ id: string;
1832
+ title: string;
1833
+ created_at: string;
1834
+ updated_at: string;
1835
+ description: string | null;
1836
+ capabilities: string[];
1837
+ logo: string | null;
1838
+ limits: {
1839
+ maxOutputTokens: number;
1840
+ contextWindow: number;
1841
+ } | null;
1842
+ costs: {
1843
+ input: number;
1844
+ output: number;
1845
+ } | null;
1846
+ provider: "openai" | "anthropic" | "google" | "deepseek" | "openai-compatible" | "openrouter" | "xai" | null;
1847
+ created_by?: string | undefined;
1848
+ updated_by?: string | undefined;
1849
+ }>;
1850
+ }, "strip", zod.ZodTypeAny, {
1851
+ item: {
1852
+ id: string;
1853
+ title: string;
1854
+ created_at: string;
1855
+ updated_at: string;
1856
+ description: string | null;
1857
+ capabilities: string[];
1858
+ logo: string | null;
1859
+ limits: {
1860
+ maxOutputTokens: number;
1861
+ contextWindow: number;
1862
+ } | null;
1863
+ costs: {
1864
+ input: number;
1865
+ output: number;
1866
+ } | null;
1867
+ provider: "openai" | "anthropic" | "google" | "deepseek" | "openai-compatible" | "openrouter" | "xai" | null;
1868
+ created_by?: string | undefined;
1869
+ updated_by?: string | undefined;
1870
+ };
1871
+ }, {
1872
+ item: {
1873
+ id: string;
1874
+ title: string;
1875
+ created_at: string;
1876
+ updated_at: string;
1877
+ description: string | null;
1878
+ capabilities: string[];
1879
+ logo: string | null;
1880
+ limits: {
1881
+ maxOutputTokens: number;
1882
+ contextWindow: number;
1883
+ } | null;
1884
+ costs: {
1885
+ input: number;
1886
+ output: number;
1887
+ } | null;
1888
+ provider: "openai" | "anthropic" | "google" | "deepseek" | "openai-compatible" | "openrouter" | "xai" | null;
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
+ description?: string | undefined;
1939
+ name?: string | undefined;
1940
+ schema?: any;
1941
+ }, {
1942
+ type: "json";
1943
+ description?: string | undefined;
1944
+ name?: string | undefined;
1945
+ schema?: any;
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
+ tools?: any[] | undefined;
1955
+ headers?: Record<string, string | undefined> | undefined;
1956
+ prompt?: any;
1957
+ maxOutputTokens?: number | undefined;
1958
+ temperature?: number | undefined;
1959
+ topP?: number | undefined;
1960
+ topK?: number | undefined;
1961
+ presencePenalty?: number | undefined;
1962
+ frequencyPenalty?: number | undefined;
1963
+ seed?: number | undefined;
1964
+ stopSequences?: string[] | undefined;
1965
+ responseFormat?: {
1966
+ type: "text";
1967
+ } | {
1968
+ type: "json";
1969
+ description?: string | undefined;
1970
+ name?: string | undefined;
1971
+ schema?: any;
1972
+ } | undefined;
1973
+ toolChoice?: any;
1974
+ includeRawChunks?: boolean | undefined;
1975
+ abortSignal?: any;
1976
+ providerOptions?: any;
1977
+ }, {
1978
+ tools?: any[] | undefined;
1979
+ headers?: Record<string, string | undefined> | undefined;
1980
+ prompt?: any;
1981
+ maxOutputTokens?: number | undefined;
1982
+ temperature?: number | undefined;
1983
+ topP?: number | undefined;
1984
+ topK?: number | undefined;
1985
+ presencePenalty?: number | undefined;
1986
+ frequencyPenalty?: number | undefined;
1987
+ seed?: number | undefined;
1988
+ stopSequences?: string[] | undefined;
1989
+ responseFormat?: {
1990
+ type: "text";
1991
+ } | {
1992
+ type: "json";
1993
+ description?: string | undefined;
1994
+ name?: string | undefined;
1995
+ schema?: any;
1996
+ } | undefined;
1997
+ toolChoice?: any;
1998
+ includeRawChunks?: boolean | undefined;
1999
+ abortSignal?: any;
2000
+ providerOptions?: any;
2001
+ }>;
2002
+ }, "strip", zod.ZodTypeAny, {
2003
+ modelId: string;
2004
+ callOptions: {
2005
+ tools?: any[] | undefined;
2006
+ headers?: Record<string, string | undefined> | undefined;
2007
+ prompt?: any;
2008
+ maxOutputTokens?: number | undefined;
2009
+ temperature?: number | undefined;
2010
+ topP?: number | undefined;
2011
+ topK?: number | undefined;
2012
+ presencePenalty?: number | undefined;
2013
+ frequencyPenalty?: number | undefined;
2014
+ seed?: number | undefined;
2015
+ stopSequences?: string[] | undefined;
2016
+ responseFormat?: {
2017
+ type: "text";
2018
+ } | {
2019
+ type: "json";
2020
+ description?: string | undefined;
2021
+ name?: string | undefined;
2022
+ schema?: any;
2023
+ } | undefined;
2024
+ toolChoice?: any;
2025
+ includeRawChunks?: boolean | undefined;
2026
+ abortSignal?: any;
2027
+ providerOptions?: any;
2028
+ };
2029
+ }, {
2030
+ modelId: string;
2031
+ callOptions: {
2032
+ tools?: any[] | undefined;
2033
+ headers?: Record<string, string | undefined> | undefined;
2034
+ prompt?: any;
2035
+ maxOutputTokens?: number | undefined;
2036
+ temperature?: number | undefined;
2037
+ topP?: number | undefined;
2038
+ topK?: number | undefined;
2039
+ presencePenalty?: number | undefined;
2040
+ frequencyPenalty?: number | undefined;
2041
+ seed?: number | undefined;
2042
+ stopSequences?: string[] | undefined;
2043
+ responseFormat?: {
2044
+ type: "text";
2045
+ } | {
2046
+ type: "json";
2047
+ description?: string | undefined;
2048
+ name?: string | undefined;
2049
+ schema?: any;
2050
+ } | undefined;
2051
+ toolChoice?: any;
2052
+ includeRawChunks?: boolean | undefined;
2053
+ abortSignal?: any;
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
+ description?: string | undefined;
2087
+ name?: string | undefined;
2088
+ schema?: any;
2089
+ }, {
2090
+ type: "json";
2091
+ description?: string | undefined;
2092
+ name?: string | undefined;
2093
+ schema?: any;
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
+ tools?: any[] | undefined;
2103
+ headers?: Record<string, string | undefined> | undefined;
2104
+ prompt?: any;
2105
+ maxOutputTokens?: number | undefined;
2106
+ temperature?: number | undefined;
2107
+ topP?: number | undefined;
2108
+ topK?: number | undefined;
2109
+ presencePenalty?: number | undefined;
2110
+ frequencyPenalty?: number | undefined;
2111
+ seed?: number | undefined;
2112
+ stopSequences?: string[] | undefined;
2113
+ responseFormat?: {
2114
+ type: "text";
2115
+ } | {
2116
+ type: "json";
2117
+ description?: string | undefined;
2118
+ name?: string | undefined;
2119
+ schema?: any;
2120
+ } | undefined;
2121
+ toolChoice?: any;
2122
+ includeRawChunks?: boolean | undefined;
2123
+ abortSignal?: any;
2124
+ providerOptions?: any;
2125
+ }, {
2126
+ tools?: any[] | undefined;
2127
+ headers?: Record<string, string | undefined> | undefined;
2128
+ prompt?: any;
2129
+ maxOutputTokens?: number | undefined;
2130
+ temperature?: number | undefined;
2131
+ topP?: number | undefined;
2132
+ topK?: number | undefined;
2133
+ presencePenalty?: number | undefined;
2134
+ frequencyPenalty?: number | undefined;
2135
+ seed?: number | undefined;
2136
+ stopSequences?: string[] | undefined;
2137
+ responseFormat?: {
2138
+ type: "text";
2139
+ } | {
2140
+ type: "json";
2141
+ description?: string | undefined;
2142
+ name?: string | undefined;
2143
+ schema?: any;
2144
+ } | undefined;
2145
+ toolChoice?: any;
2146
+ includeRawChunks?: boolean | undefined;
2147
+ abortSignal?: any;
2148
+ providerOptions?: any;
2149
+ }>;
2150
+ }, "strip", zod.ZodTypeAny, {
2151
+ modelId: string;
2152
+ callOptions: {
2153
+ tools?: any[] | undefined;
2154
+ headers?: Record<string, string | undefined> | undefined;
2155
+ prompt?: any;
2156
+ maxOutputTokens?: number | undefined;
2157
+ temperature?: number | undefined;
2158
+ topP?: number | undefined;
2159
+ topK?: number | undefined;
2160
+ presencePenalty?: number | undefined;
2161
+ frequencyPenalty?: number | undefined;
2162
+ seed?: number | undefined;
2163
+ stopSequences?: string[] | undefined;
2164
+ responseFormat?: {
2165
+ type: "text";
2166
+ } | {
2167
+ type: "json";
2168
+ description?: string | undefined;
2169
+ name?: string | undefined;
2170
+ schema?: any;
2171
+ } | undefined;
2172
+ toolChoice?: any;
2173
+ includeRawChunks?: boolean | undefined;
2174
+ abortSignal?: any;
2175
+ providerOptions?: any;
2176
+ };
2177
+ }, {
2178
+ modelId: string;
2179
+ callOptions: {
2180
+ tools?: any[] | undefined;
2181
+ headers?: Record<string, string | undefined> | undefined;
2182
+ prompt?: any;
2183
+ maxOutputTokens?: number | undefined;
2184
+ temperature?: number | undefined;
2185
+ topP?: number | undefined;
2186
+ topK?: number | undefined;
2187
+ presencePenalty?: number | undefined;
2188
+ frequencyPenalty?: number | undefined;
2189
+ seed?: number | undefined;
2190
+ stopSequences?: string[] | undefined;
2191
+ responseFormat?: {
2192
+ type: "text";
2193
+ } | {
2194
+ type: "json";
2195
+ description?: string | undefined;
2196
+ name?: string | undefined;
2197
+ schema?: any;
2198
+ } | undefined;
2199
+ toolChoice?: any;
2200
+ includeRawChunks?: boolean | undefined;
2201
+ abortSignal?: any;
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
+ id?: string | undefined;
2250
+ headers?: Record<string, string> | undefined;
2251
+ body?: any;
2252
+ timestamp?: Date | undefined;
2253
+ modelId?: string | undefined;
2254
+ }, {
2255
+ id?: string | undefined;
2256
+ headers?: Record<string, string> | undefined;
2257
+ body?: any;
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" | "error" | "stop" | "content-filter" | "tool-calls" | "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
+ id?: string | undefined;
2278
+ headers?: Record<string, string> | undefined;
2279
+ body?: any;
2280
+ timestamp?: Date | undefined;
2281
+ modelId?: string | undefined;
2282
+ } | undefined;
2283
+ }, {
2284
+ content: any[];
2285
+ finishReason: "length" | "unknown" | "error" | "stop" | "content-filter" | "tool-calls" | "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
+ id?: string | undefined;
2301
+ headers?: Record<string, string> | undefined;
2302
+ body?: any;
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 };