@decocms/runtime 0.25.1 → 0.26.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.
- package/dist/bindings/deconfig/index.d.ts +6 -5
- package/dist/bindings/deconfig/index.js +4 -4
- package/dist/bindings/index.d.ts +1544 -46
- package/dist/bindings/index.js +9 -7
- package/dist/bindings/index.js.map +1 -1
- package/dist/{chunk-F6XZPFWM.js → chunk-3AWMDSOH.js} +20 -51
- package/dist/chunk-3AWMDSOH.js.map +1 -0
- package/dist/{chunk-QELHWEZH.js → chunk-5EYZ2LVM.js} +8 -5
- package/dist/chunk-5EYZ2LVM.js.map +1 -0
- package/dist/{chunk-O6IURJAY.js → chunk-GPIGZ6DL.js} +38 -33
- package/dist/chunk-GPIGZ6DL.js.map +1 -0
- package/dist/{chunk-I2KGAHFY.js → chunk-LCU3FBI3.js} +6 -2
- package/dist/chunk-LCU3FBI3.js.map +1 -0
- package/dist/drizzle.d.ts +4 -3
- package/dist/{index-D8GtUDPS.d.ts → index-COMJ3oN7.d.ts} +4 -3
- package/dist/{index-SnnmAI05.d.ts → index-DqyElLzZ.d.ts} +10 -10
- package/dist/index.d.ts +4 -3
- package/dist/index.js +5 -5
- package/dist/mastra.d.ts +4 -3
- package/dist/mastra.js +1 -1
- package/dist/{mcp-Bv7IAgWX.d.ts → mcp-Dbqp-p04.d.ts} +9 -13
- package/dist/mcp-client.d.ts +10 -14
- package/dist/mcp-client.js +1 -1
- package/dist/proxy.d.ts +3 -2
- package/dist/proxy.js +2 -2
- package/dist/resources.d.ts +42 -42
- package/dist/views.d.ts +12 -12
- package/package.json +4 -2
- package/src/bindings/binder.ts +37 -34
- package/src/bindings/channels.ts +1 -1
- package/src/bindings/index.ts +8 -6
- package/src/bindings/language-model/ai-sdk.ts +87 -0
- package/src/bindings/language-model/index.ts +4 -0
- package/src/bindings/language-model/utils.ts +118 -0
- package/src/bindings/views.ts +1 -1
- package/src/connection.ts +8 -53
- package/src/http-client-transport.ts +1 -66
- package/src/mastra.ts +4 -0
- package/src/mcp-client.ts +22 -2
- package/src/mcp.ts +16 -17
- package/src/proxy.ts +6 -2
- package/dist/chunk-F6XZPFWM.js.map +0 -1
- package/dist/chunk-I2KGAHFY.js.map +0 -1
- package/dist/chunk-O6IURJAY.js.map +0 -1
- package/dist/chunk-QELHWEZH.js.map +0 -1
- package/dist/connection-DDtQYrea.d.ts +0 -30
package/dist/bindings/index.d.ts
CHANGED
|
@@ -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-
|
|
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 {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
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
|
|
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
|
|
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,1504 @@ declare const WellKnownBindings: {
|
|
|
1048
1049
|
}[];
|
|
1049
1050
|
}>;
|
|
1050
1051
|
}];
|
|
1052
|
+
readonly LanguageModel: ({
|
|
1053
|
+
name: "COLLECTION_MODELS_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
|
+
contextWindow: number;
|
|
1170
|
+
maxOutputTokens: number;
|
|
1171
|
+
}, {
|
|
1172
|
+
contextWindow: number;
|
|
1173
|
+
maxOutputTokens: 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
|
+
endpoint: zod.ZodNullable<zod.ZodObject<{
|
|
1187
|
+
url: zod.ZodString;
|
|
1188
|
+
method: zod.ZodDefault<zod.ZodString>;
|
|
1189
|
+
contentType: zod.ZodDefault<zod.ZodString>;
|
|
1190
|
+
stream: zod.ZodDefault<zod.ZodBoolean>;
|
|
1191
|
+
}, "strip", zod.ZodTypeAny, {
|
|
1192
|
+
url: string;
|
|
1193
|
+
method: string;
|
|
1194
|
+
contentType: string;
|
|
1195
|
+
stream: boolean;
|
|
1196
|
+
}, {
|
|
1197
|
+
url: string;
|
|
1198
|
+
method?: string | undefined;
|
|
1199
|
+
contentType?: string | undefined;
|
|
1200
|
+
stream?: boolean | undefined;
|
|
1201
|
+
}>>;
|
|
1202
|
+
}, "strip", zod.ZodTypeAny, {
|
|
1203
|
+
id: string;
|
|
1204
|
+
title: string;
|
|
1205
|
+
created_at: string;
|
|
1206
|
+
updated_at: string;
|
|
1207
|
+
logo: string | null;
|
|
1208
|
+
description: string | null;
|
|
1209
|
+
capabilities: string[];
|
|
1210
|
+
limits: {
|
|
1211
|
+
contextWindow: number;
|
|
1212
|
+
maxOutputTokens: 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
|
+
endpoint: {
|
|
1220
|
+
url: string;
|
|
1221
|
+
method: string;
|
|
1222
|
+
contentType: string;
|
|
1223
|
+
stream: boolean;
|
|
1224
|
+
} | null;
|
|
1225
|
+
created_by?: string | undefined;
|
|
1226
|
+
updated_by?: string | undefined;
|
|
1227
|
+
}, {
|
|
1228
|
+
id: string;
|
|
1229
|
+
title: string;
|
|
1230
|
+
created_at: string;
|
|
1231
|
+
updated_at: string;
|
|
1232
|
+
logo: string | null;
|
|
1233
|
+
description: string | null;
|
|
1234
|
+
capabilities: string[];
|
|
1235
|
+
limits: {
|
|
1236
|
+
contextWindow: number;
|
|
1237
|
+
maxOutputTokens: number;
|
|
1238
|
+
} | null;
|
|
1239
|
+
costs: {
|
|
1240
|
+
input: number;
|
|
1241
|
+
output: number;
|
|
1242
|
+
} | null;
|
|
1243
|
+
provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
|
|
1244
|
+
endpoint: {
|
|
1245
|
+
url: string;
|
|
1246
|
+
method?: string | undefined;
|
|
1247
|
+
contentType?: string | undefined;
|
|
1248
|
+
stream?: boolean | undefined;
|
|
1249
|
+
} | null;
|
|
1250
|
+
created_by?: string | undefined;
|
|
1251
|
+
updated_by?: string | undefined;
|
|
1252
|
+
}>, "many">;
|
|
1253
|
+
totalCount: zod.ZodOptional<zod.ZodNumber>;
|
|
1254
|
+
hasMore: zod.ZodOptional<zod.ZodBoolean>;
|
|
1255
|
+
}, "strip", zod.ZodTypeAny, {
|
|
1256
|
+
items: {
|
|
1257
|
+
id: string;
|
|
1258
|
+
title: string;
|
|
1259
|
+
created_at: string;
|
|
1260
|
+
updated_at: string;
|
|
1261
|
+
logo: string | null;
|
|
1262
|
+
description: string | null;
|
|
1263
|
+
capabilities: string[];
|
|
1264
|
+
limits: {
|
|
1265
|
+
contextWindow: number;
|
|
1266
|
+
maxOutputTokens: number;
|
|
1267
|
+
} | null;
|
|
1268
|
+
costs: {
|
|
1269
|
+
input: number;
|
|
1270
|
+
output: number;
|
|
1271
|
+
} | null;
|
|
1272
|
+
provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
|
|
1273
|
+
endpoint: {
|
|
1274
|
+
url: string;
|
|
1275
|
+
method: string;
|
|
1276
|
+
contentType: string;
|
|
1277
|
+
stream: boolean;
|
|
1278
|
+
} | null;
|
|
1279
|
+
created_by?: string | undefined;
|
|
1280
|
+
updated_by?: string | undefined;
|
|
1281
|
+
}[];
|
|
1282
|
+
totalCount?: number | undefined;
|
|
1283
|
+
hasMore?: boolean | undefined;
|
|
1284
|
+
}, {
|
|
1285
|
+
items: {
|
|
1286
|
+
id: string;
|
|
1287
|
+
title: string;
|
|
1288
|
+
created_at: string;
|
|
1289
|
+
updated_at: string;
|
|
1290
|
+
logo: string | null;
|
|
1291
|
+
description: string | null;
|
|
1292
|
+
capabilities: string[];
|
|
1293
|
+
limits: {
|
|
1294
|
+
contextWindow: number;
|
|
1295
|
+
maxOutputTokens: number;
|
|
1296
|
+
} | null;
|
|
1297
|
+
costs: {
|
|
1298
|
+
input: number;
|
|
1299
|
+
output: number;
|
|
1300
|
+
} | null;
|
|
1301
|
+
provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
|
|
1302
|
+
endpoint: {
|
|
1303
|
+
url: string;
|
|
1304
|
+
method?: string | undefined;
|
|
1305
|
+
contentType?: string | undefined;
|
|
1306
|
+
stream?: boolean | undefined;
|
|
1307
|
+
} | null;
|
|
1308
|
+
created_by?: string | undefined;
|
|
1309
|
+
updated_by?: string | undefined;
|
|
1310
|
+
}[];
|
|
1311
|
+
totalCount?: number | undefined;
|
|
1312
|
+
hasMore?: boolean | undefined;
|
|
1313
|
+
}>;
|
|
1314
|
+
} | {
|
|
1315
|
+
name: "COLLECTION_MODELS_GET";
|
|
1316
|
+
inputSchema: zod.ZodObject<{
|
|
1317
|
+
id: zod.ZodString;
|
|
1318
|
+
}, "strip", zod.ZodTypeAny, {
|
|
1319
|
+
id: string;
|
|
1320
|
+
}, {
|
|
1321
|
+
id: string;
|
|
1322
|
+
}>;
|
|
1323
|
+
outputSchema: zod.ZodObject<{
|
|
1324
|
+
item: zod.ZodNullable<zod.ZodObject<{
|
|
1325
|
+
id: zod.ZodString;
|
|
1326
|
+
title: zod.ZodString;
|
|
1327
|
+
created_at: zod.ZodString;
|
|
1328
|
+
updated_at: zod.ZodString;
|
|
1329
|
+
created_by: zod.ZodOptional<zod.ZodString>;
|
|
1330
|
+
updated_by: zod.ZodOptional<zod.ZodString>;
|
|
1331
|
+
} & {
|
|
1332
|
+
logo: zod.ZodNullable<zod.ZodString>;
|
|
1333
|
+
description: zod.ZodNullable<zod.ZodString>;
|
|
1334
|
+
capabilities: zod.ZodArray<zod.ZodString, "many">;
|
|
1335
|
+
limits: zod.ZodNullable<zod.ZodObject<{
|
|
1336
|
+
contextWindow: zod.ZodNumber;
|
|
1337
|
+
maxOutputTokens: zod.ZodNumber;
|
|
1338
|
+
}, "strip", zod.ZodTypeAny, {
|
|
1339
|
+
contextWindow: number;
|
|
1340
|
+
maxOutputTokens: number;
|
|
1341
|
+
}, {
|
|
1342
|
+
contextWindow: number;
|
|
1343
|
+
maxOutputTokens: number;
|
|
1344
|
+
}>>;
|
|
1345
|
+
costs: zod.ZodNullable<zod.ZodObject<{
|
|
1346
|
+
input: zod.ZodNumber;
|
|
1347
|
+
output: zod.ZodNumber;
|
|
1348
|
+
}, "strip", zod.ZodTypeAny, {
|
|
1349
|
+
input: number;
|
|
1350
|
+
output: number;
|
|
1351
|
+
}, {
|
|
1352
|
+
input: number;
|
|
1353
|
+
output: number;
|
|
1354
|
+
}>>;
|
|
1355
|
+
provider: zod.ZodNullable<zod.ZodEnum<["openai", "anthropic", "google", "xai", "deepseek", "openai-compatible", "openrouter"]>>;
|
|
1356
|
+
endpoint: zod.ZodNullable<zod.ZodObject<{
|
|
1357
|
+
url: zod.ZodString;
|
|
1358
|
+
method: zod.ZodDefault<zod.ZodString>;
|
|
1359
|
+
contentType: zod.ZodDefault<zod.ZodString>;
|
|
1360
|
+
stream: zod.ZodDefault<zod.ZodBoolean>;
|
|
1361
|
+
}, "strip", zod.ZodTypeAny, {
|
|
1362
|
+
url: string;
|
|
1363
|
+
method: string;
|
|
1364
|
+
contentType: string;
|
|
1365
|
+
stream: boolean;
|
|
1366
|
+
}, {
|
|
1367
|
+
url: string;
|
|
1368
|
+
method?: string | undefined;
|
|
1369
|
+
contentType?: string | undefined;
|
|
1370
|
+
stream?: boolean | undefined;
|
|
1371
|
+
}>>;
|
|
1372
|
+
}, "strip", zod.ZodTypeAny, {
|
|
1373
|
+
id: string;
|
|
1374
|
+
title: string;
|
|
1375
|
+
created_at: string;
|
|
1376
|
+
updated_at: string;
|
|
1377
|
+
logo: string | null;
|
|
1378
|
+
description: string | null;
|
|
1379
|
+
capabilities: string[];
|
|
1380
|
+
limits: {
|
|
1381
|
+
contextWindow: number;
|
|
1382
|
+
maxOutputTokens: number;
|
|
1383
|
+
} | null;
|
|
1384
|
+
costs: {
|
|
1385
|
+
input: number;
|
|
1386
|
+
output: number;
|
|
1387
|
+
} | null;
|
|
1388
|
+
provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
|
|
1389
|
+
endpoint: {
|
|
1390
|
+
url: string;
|
|
1391
|
+
method: string;
|
|
1392
|
+
contentType: string;
|
|
1393
|
+
stream: boolean;
|
|
1394
|
+
} | null;
|
|
1395
|
+
created_by?: string | undefined;
|
|
1396
|
+
updated_by?: string | undefined;
|
|
1397
|
+
}, {
|
|
1398
|
+
id: string;
|
|
1399
|
+
title: string;
|
|
1400
|
+
created_at: string;
|
|
1401
|
+
updated_at: string;
|
|
1402
|
+
logo: string | null;
|
|
1403
|
+
description: string | null;
|
|
1404
|
+
capabilities: string[];
|
|
1405
|
+
limits: {
|
|
1406
|
+
contextWindow: number;
|
|
1407
|
+
maxOutputTokens: number;
|
|
1408
|
+
} | null;
|
|
1409
|
+
costs: {
|
|
1410
|
+
input: number;
|
|
1411
|
+
output: number;
|
|
1412
|
+
} | null;
|
|
1413
|
+
provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
|
|
1414
|
+
endpoint: {
|
|
1415
|
+
url: string;
|
|
1416
|
+
method?: string | undefined;
|
|
1417
|
+
contentType?: string | undefined;
|
|
1418
|
+
stream?: boolean | undefined;
|
|
1419
|
+
} | null;
|
|
1420
|
+
created_by?: string | undefined;
|
|
1421
|
+
updated_by?: string | undefined;
|
|
1422
|
+
}>>;
|
|
1423
|
+
}, "strip", zod.ZodTypeAny, {
|
|
1424
|
+
item: {
|
|
1425
|
+
id: string;
|
|
1426
|
+
title: string;
|
|
1427
|
+
created_at: string;
|
|
1428
|
+
updated_at: string;
|
|
1429
|
+
logo: string | null;
|
|
1430
|
+
description: string | null;
|
|
1431
|
+
capabilities: string[];
|
|
1432
|
+
limits: {
|
|
1433
|
+
contextWindow: number;
|
|
1434
|
+
maxOutputTokens: number;
|
|
1435
|
+
} | null;
|
|
1436
|
+
costs: {
|
|
1437
|
+
input: number;
|
|
1438
|
+
output: number;
|
|
1439
|
+
} | null;
|
|
1440
|
+
provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
|
|
1441
|
+
endpoint: {
|
|
1442
|
+
url: string;
|
|
1443
|
+
method: string;
|
|
1444
|
+
contentType: string;
|
|
1445
|
+
stream: boolean;
|
|
1446
|
+
} | null;
|
|
1447
|
+
created_by?: string | undefined;
|
|
1448
|
+
updated_by?: string | undefined;
|
|
1449
|
+
} | null;
|
|
1450
|
+
}, {
|
|
1451
|
+
item: {
|
|
1452
|
+
id: string;
|
|
1453
|
+
title: string;
|
|
1454
|
+
created_at: string;
|
|
1455
|
+
updated_at: string;
|
|
1456
|
+
logo: string | null;
|
|
1457
|
+
description: string | null;
|
|
1458
|
+
capabilities: string[];
|
|
1459
|
+
limits: {
|
|
1460
|
+
contextWindow: number;
|
|
1461
|
+
maxOutputTokens: number;
|
|
1462
|
+
} | null;
|
|
1463
|
+
costs: {
|
|
1464
|
+
input: number;
|
|
1465
|
+
output: number;
|
|
1466
|
+
} | null;
|
|
1467
|
+
provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
|
|
1468
|
+
endpoint: {
|
|
1469
|
+
url: string;
|
|
1470
|
+
method?: string | undefined;
|
|
1471
|
+
contentType?: string | undefined;
|
|
1472
|
+
stream?: boolean | undefined;
|
|
1473
|
+
} | null;
|
|
1474
|
+
created_by?: string | undefined;
|
|
1475
|
+
updated_by?: string | undefined;
|
|
1476
|
+
} | null;
|
|
1477
|
+
}>;
|
|
1478
|
+
} | {
|
|
1479
|
+
name: "COLLECTION_MODELS_CREATE";
|
|
1480
|
+
inputSchema: zod.ZodObject<{
|
|
1481
|
+
data: zod.ZodObject<{
|
|
1482
|
+
id: zod.ZodString;
|
|
1483
|
+
title: zod.ZodString;
|
|
1484
|
+
created_at: zod.ZodString;
|
|
1485
|
+
updated_at: zod.ZodString;
|
|
1486
|
+
created_by: zod.ZodOptional<zod.ZodString>;
|
|
1487
|
+
updated_by: zod.ZodOptional<zod.ZodString>;
|
|
1488
|
+
} & {
|
|
1489
|
+
logo: zod.ZodNullable<zod.ZodString>;
|
|
1490
|
+
description: zod.ZodNullable<zod.ZodString>;
|
|
1491
|
+
capabilities: zod.ZodArray<zod.ZodString, "many">;
|
|
1492
|
+
limits: zod.ZodNullable<zod.ZodObject<{
|
|
1493
|
+
contextWindow: zod.ZodNumber;
|
|
1494
|
+
maxOutputTokens: zod.ZodNumber;
|
|
1495
|
+
}, "strip", zod.ZodTypeAny, {
|
|
1496
|
+
contextWindow: number;
|
|
1497
|
+
maxOutputTokens: number;
|
|
1498
|
+
}, {
|
|
1499
|
+
contextWindow: number;
|
|
1500
|
+
maxOutputTokens: number;
|
|
1501
|
+
}>>;
|
|
1502
|
+
costs: zod.ZodNullable<zod.ZodObject<{
|
|
1503
|
+
input: zod.ZodNumber;
|
|
1504
|
+
output: zod.ZodNumber;
|
|
1505
|
+
}, "strip", zod.ZodTypeAny, {
|
|
1506
|
+
input: number;
|
|
1507
|
+
output: number;
|
|
1508
|
+
}, {
|
|
1509
|
+
input: number;
|
|
1510
|
+
output: number;
|
|
1511
|
+
}>>;
|
|
1512
|
+
provider: zod.ZodNullable<zod.ZodEnum<["openai", "anthropic", "google", "xai", "deepseek", "openai-compatible", "openrouter"]>>;
|
|
1513
|
+
endpoint: zod.ZodNullable<zod.ZodObject<{
|
|
1514
|
+
url: zod.ZodString;
|
|
1515
|
+
method: zod.ZodDefault<zod.ZodString>;
|
|
1516
|
+
contentType: zod.ZodDefault<zod.ZodString>;
|
|
1517
|
+
stream: zod.ZodDefault<zod.ZodBoolean>;
|
|
1518
|
+
}, "strip", zod.ZodTypeAny, {
|
|
1519
|
+
url: string;
|
|
1520
|
+
method: string;
|
|
1521
|
+
contentType: string;
|
|
1522
|
+
stream: boolean;
|
|
1523
|
+
}, {
|
|
1524
|
+
url: string;
|
|
1525
|
+
method?: string | undefined;
|
|
1526
|
+
contentType?: string | undefined;
|
|
1527
|
+
stream?: boolean | undefined;
|
|
1528
|
+
}>>;
|
|
1529
|
+
}, "strip", zod.ZodTypeAny, {
|
|
1530
|
+
id: string;
|
|
1531
|
+
title: string;
|
|
1532
|
+
created_at: string;
|
|
1533
|
+
updated_at: string;
|
|
1534
|
+
logo: string | null;
|
|
1535
|
+
description: string | null;
|
|
1536
|
+
capabilities: string[];
|
|
1537
|
+
limits: {
|
|
1538
|
+
contextWindow: number;
|
|
1539
|
+
maxOutputTokens: number;
|
|
1540
|
+
} | null;
|
|
1541
|
+
costs: {
|
|
1542
|
+
input: number;
|
|
1543
|
+
output: number;
|
|
1544
|
+
} | null;
|
|
1545
|
+
provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
|
|
1546
|
+
endpoint: {
|
|
1547
|
+
url: string;
|
|
1548
|
+
method: string;
|
|
1549
|
+
contentType: string;
|
|
1550
|
+
stream: boolean;
|
|
1551
|
+
} | null;
|
|
1552
|
+
created_by?: string | undefined;
|
|
1553
|
+
updated_by?: string | undefined;
|
|
1554
|
+
}, {
|
|
1555
|
+
id: string;
|
|
1556
|
+
title: string;
|
|
1557
|
+
created_at: string;
|
|
1558
|
+
updated_at: string;
|
|
1559
|
+
logo: string | null;
|
|
1560
|
+
description: string | null;
|
|
1561
|
+
capabilities: string[];
|
|
1562
|
+
limits: {
|
|
1563
|
+
contextWindow: number;
|
|
1564
|
+
maxOutputTokens: number;
|
|
1565
|
+
} | null;
|
|
1566
|
+
costs: {
|
|
1567
|
+
input: number;
|
|
1568
|
+
output: number;
|
|
1569
|
+
} | null;
|
|
1570
|
+
provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
|
|
1571
|
+
endpoint: {
|
|
1572
|
+
url: string;
|
|
1573
|
+
method?: string | undefined;
|
|
1574
|
+
contentType?: string | undefined;
|
|
1575
|
+
stream?: boolean | undefined;
|
|
1576
|
+
} | null;
|
|
1577
|
+
created_by?: string | undefined;
|
|
1578
|
+
updated_by?: string | undefined;
|
|
1579
|
+
}>;
|
|
1580
|
+
}, "strip", zod.ZodTypeAny, {
|
|
1581
|
+
data: {
|
|
1582
|
+
id: string;
|
|
1583
|
+
title: string;
|
|
1584
|
+
created_at: string;
|
|
1585
|
+
updated_at: string;
|
|
1586
|
+
logo: string | null;
|
|
1587
|
+
description: string | null;
|
|
1588
|
+
capabilities: string[];
|
|
1589
|
+
limits: {
|
|
1590
|
+
contextWindow: number;
|
|
1591
|
+
maxOutputTokens: number;
|
|
1592
|
+
} | null;
|
|
1593
|
+
costs: {
|
|
1594
|
+
input: number;
|
|
1595
|
+
output: number;
|
|
1596
|
+
} | null;
|
|
1597
|
+
provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
|
|
1598
|
+
endpoint: {
|
|
1599
|
+
url: string;
|
|
1600
|
+
method: string;
|
|
1601
|
+
contentType: string;
|
|
1602
|
+
stream: boolean;
|
|
1603
|
+
} | null;
|
|
1604
|
+
created_by?: string | undefined;
|
|
1605
|
+
updated_by?: string | undefined;
|
|
1606
|
+
};
|
|
1607
|
+
}, {
|
|
1608
|
+
data: {
|
|
1609
|
+
id: string;
|
|
1610
|
+
title: string;
|
|
1611
|
+
created_at: string;
|
|
1612
|
+
updated_at: string;
|
|
1613
|
+
logo: string | null;
|
|
1614
|
+
description: string | null;
|
|
1615
|
+
capabilities: string[];
|
|
1616
|
+
limits: {
|
|
1617
|
+
contextWindow: number;
|
|
1618
|
+
maxOutputTokens: number;
|
|
1619
|
+
} | null;
|
|
1620
|
+
costs: {
|
|
1621
|
+
input: number;
|
|
1622
|
+
output: number;
|
|
1623
|
+
} | null;
|
|
1624
|
+
provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
|
|
1625
|
+
endpoint: {
|
|
1626
|
+
url: string;
|
|
1627
|
+
method?: string | undefined;
|
|
1628
|
+
contentType?: string | undefined;
|
|
1629
|
+
stream?: boolean | undefined;
|
|
1630
|
+
} | null;
|
|
1631
|
+
created_by?: string | undefined;
|
|
1632
|
+
updated_by?: string | undefined;
|
|
1633
|
+
};
|
|
1634
|
+
}>;
|
|
1635
|
+
outputSchema: zod.ZodObject<{
|
|
1636
|
+
item: zod.ZodObject<{
|
|
1637
|
+
id: zod.ZodString;
|
|
1638
|
+
title: zod.ZodString;
|
|
1639
|
+
created_at: zod.ZodString;
|
|
1640
|
+
updated_at: zod.ZodString;
|
|
1641
|
+
created_by: zod.ZodOptional<zod.ZodString>;
|
|
1642
|
+
updated_by: zod.ZodOptional<zod.ZodString>;
|
|
1643
|
+
} & {
|
|
1644
|
+
logo: zod.ZodNullable<zod.ZodString>;
|
|
1645
|
+
description: zod.ZodNullable<zod.ZodString>;
|
|
1646
|
+
capabilities: zod.ZodArray<zod.ZodString, "many">;
|
|
1647
|
+
limits: zod.ZodNullable<zod.ZodObject<{
|
|
1648
|
+
contextWindow: zod.ZodNumber;
|
|
1649
|
+
maxOutputTokens: zod.ZodNumber;
|
|
1650
|
+
}, "strip", zod.ZodTypeAny, {
|
|
1651
|
+
contextWindow: number;
|
|
1652
|
+
maxOutputTokens: number;
|
|
1653
|
+
}, {
|
|
1654
|
+
contextWindow: number;
|
|
1655
|
+
maxOutputTokens: number;
|
|
1656
|
+
}>>;
|
|
1657
|
+
costs: zod.ZodNullable<zod.ZodObject<{
|
|
1658
|
+
input: zod.ZodNumber;
|
|
1659
|
+
output: zod.ZodNumber;
|
|
1660
|
+
}, "strip", zod.ZodTypeAny, {
|
|
1661
|
+
input: number;
|
|
1662
|
+
output: number;
|
|
1663
|
+
}, {
|
|
1664
|
+
input: number;
|
|
1665
|
+
output: number;
|
|
1666
|
+
}>>;
|
|
1667
|
+
provider: zod.ZodNullable<zod.ZodEnum<["openai", "anthropic", "google", "xai", "deepseek", "openai-compatible", "openrouter"]>>;
|
|
1668
|
+
endpoint: zod.ZodNullable<zod.ZodObject<{
|
|
1669
|
+
url: zod.ZodString;
|
|
1670
|
+
method: zod.ZodDefault<zod.ZodString>;
|
|
1671
|
+
contentType: zod.ZodDefault<zod.ZodString>;
|
|
1672
|
+
stream: zod.ZodDefault<zod.ZodBoolean>;
|
|
1673
|
+
}, "strip", zod.ZodTypeAny, {
|
|
1674
|
+
url: string;
|
|
1675
|
+
method: string;
|
|
1676
|
+
contentType: string;
|
|
1677
|
+
stream: boolean;
|
|
1678
|
+
}, {
|
|
1679
|
+
url: string;
|
|
1680
|
+
method?: string | undefined;
|
|
1681
|
+
contentType?: string | undefined;
|
|
1682
|
+
stream?: boolean | undefined;
|
|
1683
|
+
}>>;
|
|
1684
|
+
}, "strip", zod.ZodTypeAny, {
|
|
1685
|
+
id: string;
|
|
1686
|
+
title: string;
|
|
1687
|
+
created_at: string;
|
|
1688
|
+
updated_at: string;
|
|
1689
|
+
logo: string | null;
|
|
1690
|
+
description: string | null;
|
|
1691
|
+
capabilities: string[];
|
|
1692
|
+
limits: {
|
|
1693
|
+
contextWindow: number;
|
|
1694
|
+
maxOutputTokens: number;
|
|
1695
|
+
} | null;
|
|
1696
|
+
costs: {
|
|
1697
|
+
input: number;
|
|
1698
|
+
output: number;
|
|
1699
|
+
} | null;
|
|
1700
|
+
provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
|
|
1701
|
+
endpoint: {
|
|
1702
|
+
url: string;
|
|
1703
|
+
method: string;
|
|
1704
|
+
contentType: string;
|
|
1705
|
+
stream: boolean;
|
|
1706
|
+
} | null;
|
|
1707
|
+
created_by?: string | undefined;
|
|
1708
|
+
updated_by?: string | undefined;
|
|
1709
|
+
}, {
|
|
1710
|
+
id: string;
|
|
1711
|
+
title: string;
|
|
1712
|
+
created_at: string;
|
|
1713
|
+
updated_at: string;
|
|
1714
|
+
logo: string | null;
|
|
1715
|
+
description: string | null;
|
|
1716
|
+
capabilities: string[];
|
|
1717
|
+
limits: {
|
|
1718
|
+
contextWindow: number;
|
|
1719
|
+
maxOutputTokens: number;
|
|
1720
|
+
} | null;
|
|
1721
|
+
costs: {
|
|
1722
|
+
input: number;
|
|
1723
|
+
output: number;
|
|
1724
|
+
} | null;
|
|
1725
|
+
provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
|
|
1726
|
+
endpoint: {
|
|
1727
|
+
url: string;
|
|
1728
|
+
method?: string | undefined;
|
|
1729
|
+
contentType?: string | undefined;
|
|
1730
|
+
stream?: boolean | undefined;
|
|
1731
|
+
} | null;
|
|
1732
|
+
created_by?: string | undefined;
|
|
1733
|
+
updated_by?: string | undefined;
|
|
1734
|
+
}>;
|
|
1735
|
+
}, "strip", zod.ZodTypeAny, {
|
|
1736
|
+
item: {
|
|
1737
|
+
id: string;
|
|
1738
|
+
title: string;
|
|
1739
|
+
created_at: string;
|
|
1740
|
+
updated_at: string;
|
|
1741
|
+
logo: string | null;
|
|
1742
|
+
description: string | null;
|
|
1743
|
+
capabilities: string[];
|
|
1744
|
+
limits: {
|
|
1745
|
+
contextWindow: number;
|
|
1746
|
+
maxOutputTokens: number;
|
|
1747
|
+
} | null;
|
|
1748
|
+
costs: {
|
|
1749
|
+
input: number;
|
|
1750
|
+
output: number;
|
|
1751
|
+
} | null;
|
|
1752
|
+
provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
|
|
1753
|
+
endpoint: {
|
|
1754
|
+
url: string;
|
|
1755
|
+
method: string;
|
|
1756
|
+
contentType: string;
|
|
1757
|
+
stream: boolean;
|
|
1758
|
+
} | null;
|
|
1759
|
+
created_by?: string | undefined;
|
|
1760
|
+
updated_by?: string | undefined;
|
|
1761
|
+
};
|
|
1762
|
+
}, {
|
|
1763
|
+
item: {
|
|
1764
|
+
id: string;
|
|
1765
|
+
title: string;
|
|
1766
|
+
created_at: string;
|
|
1767
|
+
updated_at: string;
|
|
1768
|
+
logo: string | null;
|
|
1769
|
+
description: string | null;
|
|
1770
|
+
capabilities: string[];
|
|
1771
|
+
limits: {
|
|
1772
|
+
contextWindow: number;
|
|
1773
|
+
maxOutputTokens: number;
|
|
1774
|
+
} | null;
|
|
1775
|
+
costs: {
|
|
1776
|
+
input: number;
|
|
1777
|
+
output: number;
|
|
1778
|
+
} | null;
|
|
1779
|
+
provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
|
|
1780
|
+
endpoint: {
|
|
1781
|
+
url: string;
|
|
1782
|
+
method?: string | undefined;
|
|
1783
|
+
contentType?: string | undefined;
|
|
1784
|
+
stream?: boolean | undefined;
|
|
1785
|
+
} | null;
|
|
1786
|
+
created_by?: string | undefined;
|
|
1787
|
+
updated_by?: string | undefined;
|
|
1788
|
+
};
|
|
1789
|
+
}>;
|
|
1790
|
+
opt: true;
|
|
1791
|
+
} | {
|
|
1792
|
+
name: "COLLECTION_MODELS_UPDATE";
|
|
1793
|
+
inputSchema: zod.ZodObject<{
|
|
1794
|
+
id: zod.ZodString;
|
|
1795
|
+
data: zod.ZodObject<{
|
|
1796
|
+
[x: string]: zod.ZodOptional<any>;
|
|
1797
|
+
}, any, any, {
|
|
1798
|
+
[x: string]: any;
|
|
1799
|
+
}, {
|
|
1800
|
+
[x: string]: any;
|
|
1801
|
+
}>;
|
|
1802
|
+
}, "strip", zod.ZodTypeAny, {
|
|
1803
|
+
id: string;
|
|
1804
|
+
data: {
|
|
1805
|
+
[x: string]: any;
|
|
1806
|
+
};
|
|
1807
|
+
}, {
|
|
1808
|
+
id: string;
|
|
1809
|
+
data: {
|
|
1810
|
+
[x: string]: any;
|
|
1811
|
+
};
|
|
1812
|
+
}>;
|
|
1813
|
+
outputSchema: zod.ZodObject<{
|
|
1814
|
+
item: zod.ZodObject<{
|
|
1815
|
+
id: zod.ZodString;
|
|
1816
|
+
title: zod.ZodString;
|
|
1817
|
+
created_at: zod.ZodString;
|
|
1818
|
+
updated_at: zod.ZodString;
|
|
1819
|
+
created_by: zod.ZodOptional<zod.ZodString>;
|
|
1820
|
+
updated_by: zod.ZodOptional<zod.ZodString>;
|
|
1821
|
+
} & {
|
|
1822
|
+
logo: zod.ZodNullable<zod.ZodString>;
|
|
1823
|
+
description: zod.ZodNullable<zod.ZodString>;
|
|
1824
|
+
capabilities: zod.ZodArray<zod.ZodString, "many">;
|
|
1825
|
+
limits: zod.ZodNullable<zod.ZodObject<{
|
|
1826
|
+
contextWindow: zod.ZodNumber;
|
|
1827
|
+
maxOutputTokens: zod.ZodNumber;
|
|
1828
|
+
}, "strip", zod.ZodTypeAny, {
|
|
1829
|
+
contextWindow: number;
|
|
1830
|
+
maxOutputTokens: number;
|
|
1831
|
+
}, {
|
|
1832
|
+
contextWindow: number;
|
|
1833
|
+
maxOutputTokens: number;
|
|
1834
|
+
}>>;
|
|
1835
|
+
costs: zod.ZodNullable<zod.ZodObject<{
|
|
1836
|
+
input: zod.ZodNumber;
|
|
1837
|
+
output: zod.ZodNumber;
|
|
1838
|
+
}, "strip", zod.ZodTypeAny, {
|
|
1839
|
+
input: number;
|
|
1840
|
+
output: number;
|
|
1841
|
+
}, {
|
|
1842
|
+
input: number;
|
|
1843
|
+
output: number;
|
|
1844
|
+
}>>;
|
|
1845
|
+
provider: zod.ZodNullable<zod.ZodEnum<["openai", "anthropic", "google", "xai", "deepseek", "openai-compatible", "openrouter"]>>;
|
|
1846
|
+
endpoint: zod.ZodNullable<zod.ZodObject<{
|
|
1847
|
+
url: zod.ZodString;
|
|
1848
|
+
method: zod.ZodDefault<zod.ZodString>;
|
|
1849
|
+
contentType: zod.ZodDefault<zod.ZodString>;
|
|
1850
|
+
stream: zod.ZodDefault<zod.ZodBoolean>;
|
|
1851
|
+
}, "strip", zod.ZodTypeAny, {
|
|
1852
|
+
url: string;
|
|
1853
|
+
method: string;
|
|
1854
|
+
contentType: string;
|
|
1855
|
+
stream: boolean;
|
|
1856
|
+
}, {
|
|
1857
|
+
url: string;
|
|
1858
|
+
method?: string | undefined;
|
|
1859
|
+
contentType?: string | undefined;
|
|
1860
|
+
stream?: boolean | undefined;
|
|
1861
|
+
}>>;
|
|
1862
|
+
}, "strip", zod.ZodTypeAny, {
|
|
1863
|
+
id: string;
|
|
1864
|
+
title: string;
|
|
1865
|
+
created_at: string;
|
|
1866
|
+
updated_at: string;
|
|
1867
|
+
logo: string | null;
|
|
1868
|
+
description: string | null;
|
|
1869
|
+
capabilities: string[];
|
|
1870
|
+
limits: {
|
|
1871
|
+
contextWindow: number;
|
|
1872
|
+
maxOutputTokens: number;
|
|
1873
|
+
} | null;
|
|
1874
|
+
costs: {
|
|
1875
|
+
input: number;
|
|
1876
|
+
output: number;
|
|
1877
|
+
} | null;
|
|
1878
|
+
provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
|
|
1879
|
+
endpoint: {
|
|
1880
|
+
url: string;
|
|
1881
|
+
method: string;
|
|
1882
|
+
contentType: string;
|
|
1883
|
+
stream: boolean;
|
|
1884
|
+
} | null;
|
|
1885
|
+
created_by?: string | undefined;
|
|
1886
|
+
updated_by?: string | undefined;
|
|
1887
|
+
}, {
|
|
1888
|
+
id: string;
|
|
1889
|
+
title: string;
|
|
1890
|
+
created_at: string;
|
|
1891
|
+
updated_at: string;
|
|
1892
|
+
logo: string | null;
|
|
1893
|
+
description: string | null;
|
|
1894
|
+
capabilities: string[];
|
|
1895
|
+
limits: {
|
|
1896
|
+
contextWindow: number;
|
|
1897
|
+
maxOutputTokens: number;
|
|
1898
|
+
} | null;
|
|
1899
|
+
costs: {
|
|
1900
|
+
input: number;
|
|
1901
|
+
output: number;
|
|
1902
|
+
} | null;
|
|
1903
|
+
provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
|
|
1904
|
+
endpoint: {
|
|
1905
|
+
url: string;
|
|
1906
|
+
method?: string | undefined;
|
|
1907
|
+
contentType?: string | undefined;
|
|
1908
|
+
stream?: boolean | undefined;
|
|
1909
|
+
} | null;
|
|
1910
|
+
created_by?: string | undefined;
|
|
1911
|
+
updated_by?: string | undefined;
|
|
1912
|
+
}>;
|
|
1913
|
+
}, "strip", zod.ZodTypeAny, {
|
|
1914
|
+
item: {
|
|
1915
|
+
id: string;
|
|
1916
|
+
title: string;
|
|
1917
|
+
created_at: string;
|
|
1918
|
+
updated_at: string;
|
|
1919
|
+
logo: string | null;
|
|
1920
|
+
description: string | null;
|
|
1921
|
+
capabilities: string[];
|
|
1922
|
+
limits: {
|
|
1923
|
+
contextWindow: number;
|
|
1924
|
+
maxOutputTokens: number;
|
|
1925
|
+
} | null;
|
|
1926
|
+
costs: {
|
|
1927
|
+
input: number;
|
|
1928
|
+
output: number;
|
|
1929
|
+
} | null;
|
|
1930
|
+
provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
|
|
1931
|
+
endpoint: {
|
|
1932
|
+
url: string;
|
|
1933
|
+
method: string;
|
|
1934
|
+
contentType: string;
|
|
1935
|
+
stream: boolean;
|
|
1936
|
+
} | null;
|
|
1937
|
+
created_by?: string | undefined;
|
|
1938
|
+
updated_by?: string | undefined;
|
|
1939
|
+
};
|
|
1940
|
+
}, {
|
|
1941
|
+
item: {
|
|
1942
|
+
id: string;
|
|
1943
|
+
title: string;
|
|
1944
|
+
created_at: string;
|
|
1945
|
+
updated_at: string;
|
|
1946
|
+
logo: string | null;
|
|
1947
|
+
description: string | null;
|
|
1948
|
+
capabilities: string[];
|
|
1949
|
+
limits: {
|
|
1950
|
+
contextWindow: number;
|
|
1951
|
+
maxOutputTokens: number;
|
|
1952
|
+
} | null;
|
|
1953
|
+
costs: {
|
|
1954
|
+
input: number;
|
|
1955
|
+
output: number;
|
|
1956
|
+
} | null;
|
|
1957
|
+
provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
|
|
1958
|
+
endpoint: {
|
|
1959
|
+
url: string;
|
|
1960
|
+
method?: string | undefined;
|
|
1961
|
+
contentType?: string | undefined;
|
|
1962
|
+
stream?: boolean | undefined;
|
|
1963
|
+
} | null;
|
|
1964
|
+
created_by?: string | undefined;
|
|
1965
|
+
updated_by?: string | undefined;
|
|
1966
|
+
};
|
|
1967
|
+
}>;
|
|
1968
|
+
opt: true;
|
|
1969
|
+
} | {
|
|
1970
|
+
name: "COLLECTION_MODELS_DELETE";
|
|
1971
|
+
inputSchema: zod.ZodObject<{
|
|
1972
|
+
id: zod.ZodString;
|
|
1973
|
+
}, "strip", zod.ZodTypeAny, {
|
|
1974
|
+
id: string;
|
|
1975
|
+
}, {
|
|
1976
|
+
id: string;
|
|
1977
|
+
}>;
|
|
1978
|
+
outputSchema: zod.ZodObject<{
|
|
1979
|
+
item: zod.ZodObject<{
|
|
1980
|
+
id: zod.ZodString;
|
|
1981
|
+
title: zod.ZodString;
|
|
1982
|
+
created_at: zod.ZodString;
|
|
1983
|
+
updated_at: zod.ZodString;
|
|
1984
|
+
created_by: zod.ZodOptional<zod.ZodString>;
|
|
1985
|
+
updated_by: zod.ZodOptional<zod.ZodString>;
|
|
1986
|
+
} & {
|
|
1987
|
+
logo: zod.ZodNullable<zod.ZodString>;
|
|
1988
|
+
description: zod.ZodNullable<zod.ZodString>;
|
|
1989
|
+
capabilities: zod.ZodArray<zod.ZodString, "many">;
|
|
1990
|
+
limits: zod.ZodNullable<zod.ZodObject<{
|
|
1991
|
+
contextWindow: zod.ZodNumber;
|
|
1992
|
+
maxOutputTokens: zod.ZodNumber;
|
|
1993
|
+
}, "strip", zod.ZodTypeAny, {
|
|
1994
|
+
contextWindow: number;
|
|
1995
|
+
maxOutputTokens: number;
|
|
1996
|
+
}, {
|
|
1997
|
+
contextWindow: number;
|
|
1998
|
+
maxOutputTokens: number;
|
|
1999
|
+
}>>;
|
|
2000
|
+
costs: zod.ZodNullable<zod.ZodObject<{
|
|
2001
|
+
input: zod.ZodNumber;
|
|
2002
|
+
output: zod.ZodNumber;
|
|
2003
|
+
}, "strip", zod.ZodTypeAny, {
|
|
2004
|
+
input: number;
|
|
2005
|
+
output: number;
|
|
2006
|
+
}, {
|
|
2007
|
+
input: number;
|
|
2008
|
+
output: number;
|
|
2009
|
+
}>>;
|
|
2010
|
+
provider: zod.ZodNullable<zod.ZodEnum<["openai", "anthropic", "google", "xai", "deepseek", "openai-compatible", "openrouter"]>>;
|
|
2011
|
+
endpoint: zod.ZodNullable<zod.ZodObject<{
|
|
2012
|
+
url: zod.ZodString;
|
|
2013
|
+
method: zod.ZodDefault<zod.ZodString>;
|
|
2014
|
+
contentType: zod.ZodDefault<zod.ZodString>;
|
|
2015
|
+
stream: zod.ZodDefault<zod.ZodBoolean>;
|
|
2016
|
+
}, "strip", zod.ZodTypeAny, {
|
|
2017
|
+
url: string;
|
|
2018
|
+
method: string;
|
|
2019
|
+
contentType: string;
|
|
2020
|
+
stream: boolean;
|
|
2021
|
+
}, {
|
|
2022
|
+
url: string;
|
|
2023
|
+
method?: string | undefined;
|
|
2024
|
+
contentType?: string | undefined;
|
|
2025
|
+
stream?: boolean | undefined;
|
|
2026
|
+
}>>;
|
|
2027
|
+
}, "strip", zod.ZodTypeAny, {
|
|
2028
|
+
id: string;
|
|
2029
|
+
title: string;
|
|
2030
|
+
created_at: string;
|
|
2031
|
+
updated_at: string;
|
|
2032
|
+
logo: string | null;
|
|
2033
|
+
description: string | null;
|
|
2034
|
+
capabilities: string[];
|
|
2035
|
+
limits: {
|
|
2036
|
+
contextWindow: number;
|
|
2037
|
+
maxOutputTokens: number;
|
|
2038
|
+
} | null;
|
|
2039
|
+
costs: {
|
|
2040
|
+
input: number;
|
|
2041
|
+
output: number;
|
|
2042
|
+
} | null;
|
|
2043
|
+
provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
|
|
2044
|
+
endpoint: {
|
|
2045
|
+
url: string;
|
|
2046
|
+
method: string;
|
|
2047
|
+
contentType: string;
|
|
2048
|
+
stream: boolean;
|
|
2049
|
+
} | null;
|
|
2050
|
+
created_by?: string | undefined;
|
|
2051
|
+
updated_by?: string | undefined;
|
|
2052
|
+
}, {
|
|
2053
|
+
id: string;
|
|
2054
|
+
title: string;
|
|
2055
|
+
created_at: string;
|
|
2056
|
+
updated_at: string;
|
|
2057
|
+
logo: string | null;
|
|
2058
|
+
description: string | null;
|
|
2059
|
+
capabilities: string[];
|
|
2060
|
+
limits: {
|
|
2061
|
+
contextWindow: number;
|
|
2062
|
+
maxOutputTokens: number;
|
|
2063
|
+
} | null;
|
|
2064
|
+
costs: {
|
|
2065
|
+
input: number;
|
|
2066
|
+
output: number;
|
|
2067
|
+
} | null;
|
|
2068
|
+
provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
|
|
2069
|
+
endpoint: {
|
|
2070
|
+
url: string;
|
|
2071
|
+
method?: string | undefined;
|
|
2072
|
+
contentType?: string | undefined;
|
|
2073
|
+
stream?: boolean | undefined;
|
|
2074
|
+
} | null;
|
|
2075
|
+
created_by?: string | undefined;
|
|
2076
|
+
updated_by?: string | undefined;
|
|
2077
|
+
}>;
|
|
2078
|
+
}, "strip", zod.ZodTypeAny, {
|
|
2079
|
+
item: {
|
|
2080
|
+
id: string;
|
|
2081
|
+
title: string;
|
|
2082
|
+
created_at: string;
|
|
2083
|
+
updated_at: string;
|
|
2084
|
+
logo: string | null;
|
|
2085
|
+
description: string | null;
|
|
2086
|
+
capabilities: string[];
|
|
2087
|
+
limits: {
|
|
2088
|
+
contextWindow: number;
|
|
2089
|
+
maxOutputTokens: number;
|
|
2090
|
+
} | null;
|
|
2091
|
+
costs: {
|
|
2092
|
+
input: number;
|
|
2093
|
+
output: number;
|
|
2094
|
+
} | null;
|
|
2095
|
+
provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
|
|
2096
|
+
endpoint: {
|
|
2097
|
+
url: string;
|
|
2098
|
+
method: string;
|
|
2099
|
+
contentType: string;
|
|
2100
|
+
stream: boolean;
|
|
2101
|
+
} | null;
|
|
2102
|
+
created_by?: string | undefined;
|
|
2103
|
+
updated_by?: string | undefined;
|
|
2104
|
+
};
|
|
2105
|
+
}, {
|
|
2106
|
+
item: {
|
|
2107
|
+
id: string;
|
|
2108
|
+
title: string;
|
|
2109
|
+
created_at: string;
|
|
2110
|
+
updated_at: string;
|
|
2111
|
+
logo: string | null;
|
|
2112
|
+
description: string | null;
|
|
2113
|
+
capabilities: string[];
|
|
2114
|
+
limits: {
|
|
2115
|
+
contextWindow: number;
|
|
2116
|
+
maxOutputTokens: number;
|
|
2117
|
+
} | null;
|
|
2118
|
+
costs: {
|
|
2119
|
+
input: number;
|
|
2120
|
+
output: number;
|
|
2121
|
+
} | null;
|
|
2122
|
+
provider: "openai" | "anthropic" | "google" | "xai" | "deepseek" | "openai-compatible" | "openrouter" | null;
|
|
2123
|
+
endpoint: {
|
|
2124
|
+
url: string;
|
|
2125
|
+
method?: string | undefined;
|
|
2126
|
+
contentType?: string | undefined;
|
|
2127
|
+
stream?: boolean | undefined;
|
|
2128
|
+
} | null;
|
|
2129
|
+
created_by?: string | undefined;
|
|
2130
|
+
updated_by?: string | undefined;
|
|
2131
|
+
};
|
|
2132
|
+
}>;
|
|
2133
|
+
opt: true;
|
|
2134
|
+
} | {
|
|
2135
|
+
name: "LLM_METADATA";
|
|
2136
|
+
inputSchema: zod.ZodObject<{
|
|
2137
|
+
modelId: zod.ZodString;
|
|
2138
|
+
}, "strip", zod.ZodTypeAny, {
|
|
2139
|
+
modelId: string;
|
|
2140
|
+
}, {
|
|
2141
|
+
modelId: string;
|
|
2142
|
+
}>;
|
|
2143
|
+
outputSchema: zod.ZodObject<{
|
|
2144
|
+
supportedUrls: zod.ZodRecord<zod.ZodString, zod.ZodArray<zod.ZodString, "many">>;
|
|
2145
|
+
}, "strip", zod.ZodTypeAny, {
|
|
2146
|
+
supportedUrls: Record<string, string[]>;
|
|
2147
|
+
}, {
|
|
2148
|
+
supportedUrls: Record<string, string[]>;
|
|
2149
|
+
}>;
|
|
2150
|
+
streamable?: undefined;
|
|
2151
|
+
} | {
|
|
2152
|
+
name: "LLM_DO_STREAM";
|
|
2153
|
+
inputSchema: zod.ZodObject<{
|
|
2154
|
+
modelId: zod.ZodString;
|
|
2155
|
+
callOptions: zod.ZodObject<{
|
|
2156
|
+
prompt: zod.ZodAny;
|
|
2157
|
+
maxOutputTokens: zod.ZodOptional<zod.ZodNumber>;
|
|
2158
|
+
temperature: zod.ZodOptional<zod.ZodNumber>;
|
|
2159
|
+
topP: zod.ZodOptional<zod.ZodNumber>;
|
|
2160
|
+
topK: zod.ZodOptional<zod.ZodNumber>;
|
|
2161
|
+
presencePenalty: zod.ZodOptional<zod.ZodNumber>;
|
|
2162
|
+
frequencyPenalty: zod.ZodOptional<zod.ZodNumber>;
|
|
2163
|
+
seed: zod.ZodOptional<zod.ZodNumber>;
|
|
2164
|
+
stopSequences: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
2165
|
+
responseFormat: zod.ZodOptional<zod.ZodUnion<[zod.ZodObject<{
|
|
2166
|
+
type: zod.ZodLiteral<"text">;
|
|
2167
|
+
}, "strip", zod.ZodTypeAny, {
|
|
2168
|
+
type: "text";
|
|
2169
|
+
}, {
|
|
2170
|
+
type: "text";
|
|
2171
|
+
}>, zod.ZodObject<{
|
|
2172
|
+
type: zod.ZodLiteral<"json">;
|
|
2173
|
+
schema: zod.ZodOptional<zod.ZodAny>;
|
|
2174
|
+
name: zod.ZodOptional<zod.ZodString>;
|
|
2175
|
+
description: zod.ZodOptional<zod.ZodString>;
|
|
2176
|
+
}, "strip", zod.ZodTypeAny, {
|
|
2177
|
+
type: "json";
|
|
2178
|
+
description?: string | undefined;
|
|
2179
|
+
name?: string | undefined;
|
|
2180
|
+
schema?: any;
|
|
2181
|
+
}, {
|
|
2182
|
+
type: "json";
|
|
2183
|
+
description?: string | undefined;
|
|
2184
|
+
name?: string | undefined;
|
|
2185
|
+
schema?: any;
|
|
2186
|
+
}>]>>;
|
|
2187
|
+
tools: zod.ZodOptional<zod.ZodArray<zod.ZodAny, "many">>;
|
|
2188
|
+
toolChoice: zod.ZodOptional<zod.ZodAny>;
|
|
2189
|
+
includeRawChunks: zod.ZodOptional<zod.ZodBoolean>;
|
|
2190
|
+
abortSignal: zod.ZodOptional<zod.ZodAny>;
|
|
2191
|
+
headers: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnion<[zod.ZodString, zod.ZodUndefined]>>>;
|
|
2192
|
+
providerOptions: zod.ZodOptional<zod.ZodAny>;
|
|
2193
|
+
}, "strip", zod.ZodTypeAny, {
|
|
2194
|
+
maxOutputTokens?: number | undefined;
|
|
2195
|
+
tools?: any[] | undefined;
|
|
2196
|
+
headers?: Record<string, string | undefined> | undefined;
|
|
2197
|
+
prompt?: any;
|
|
2198
|
+
temperature?: number | undefined;
|
|
2199
|
+
topP?: number | undefined;
|
|
2200
|
+
topK?: number | undefined;
|
|
2201
|
+
presencePenalty?: number | undefined;
|
|
2202
|
+
frequencyPenalty?: number | undefined;
|
|
2203
|
+
seed?: number | undefined;
|
|
2204
|
+
stopSequences?: string[] | undefined;
|
|
2205
|
+
responseFormat?: {
|
|
2206
|
+
type: "text";
|
|
2207
|
+
} | {
|
|
2208
|
+
type: "json";
|
|
2209
|
+
description?: string | undefined;
|
|
2210
|
+
name?: string | undefined;
|
|
2211
|
+
schema?: any;
|
|
2212
|
+
} | undefined;
|
|
2213
|
+
toolChoice?: any;
|
|
2214
|
+
includeRawChunks?: boolean | undefined;
|
|
2215
|
+
abortSignal?: any;
|
|
2216
|
+
providerOptions?: any;
|
|
2217
|
+
}, {
|
|
2218
|
+
maxOutputTokens?: number | undefined;
|
|
2219
|
+
tools?: any[] | undefined;
|
|
2220
|
+
headers?: Record<string, string | undefined> | undefined;
|
|
2221
|
+
prompt?: any;
|
|
2222
|
+
temperature?: number | undefined;
|
|
2223
|
+
topP?: number | undefined;
|
|
2224
|
+
topK?: number | undefined;
|
|
2225
|
+
presencePenalty?: number | undefined;
|
|
2226
|
+
frequencyPenalty?: number | undefined;
|
|
2227
|
+
seed?: number | undefined;
|
|
2228
|
+
stopSequences?: string[] | undefined;
|
|
2229
|
+
responseFormat?: {
|
|
2230
|
+
type: "text";
|
|
2231
|
+
} | {
|
|
2232
|
+
type: "json";
|
|
2233
|
+
description?: string | undefined;
|
|
2234
|
+
name?: string | undefined;
|
|
2235
|
+
schema?: any;
|
|
2236
|
+
} | undefined;
|
|
2237
|
+
toolChoice?: any;
|
|
2238
|
+
includeRawChunks?: boolean | undefined;
|
|
2239
|
+
abortSignal?: any;
|
|
2240
|
+
providerOptions?: any;
|
|
2241
|
+
}>;
|
|
2242
|
+
}, "strip", zod.ZodTypeAny, {
|
|
2243
|
+
modelId: string;
|
|
2244
|
+
callOptions: {
|
|
2245
|
+
maxOutputTokens?: number | undefined;
|
|
2246
|
+
tools?: any[] | undefined;
|
|
2247
|
+
headers?: Record<string, string | undefined> | undefined;
|
|
2248
|
+
prompt?: any;
|
|
2249
|
+
temperature?: number | undefined;
|
|
2250
|
+
topP?: number | undefined;
|
|
2251
|
+
topK?: number | undefined;
|
|
2252
|
+
presencePenalty?: number | undefined;
|
|
2253
|
+
frequencyPenalty?: number | undefined;
|
|
2254
|
+
seed?: number | undefined;
|
|
2255
|
+
stopSequences?: string[] | undefined;
|
|
2256
|
+
responseFormat?: {
|
|
2257
|
+
type: "text";
|
|
2258
|
+
} | {
|
|
2259
|
+
type: "json";
|
|
2260
|
+
description?: string | undefined;
|
|
2261
|
+
name?: string | undefined;
|
|
2262
|
+
schema?: any;
|
|
2263
|
+
} | undefined;
|
|
2264
|
+
toolChoice?: any;
|
|
2265
|
+
includeRawChunks?: boolean | undefined;
|
|
2266
|
+
abortSignal?: any;
|
|
2267
|
+
providerOptions?: any;
|
|
2268
|
+
};
|
|
2269
|
+
}, {
|
|
2270
|
+
modelId: string;
|
|
2271
|
+
callOptions: {
|
|
2272
|
+
maxOutputTokens?: number | undefined;
|
|
2273
|
+
tools?: any[] | undefined;
|
|
2274
|
+
headers?: Record<string, string | undefined> | undefined;
|
|
2275
|
+
prompt?: any;
|
|
2276
|
+
temperature?: number | undefined;
|
|
2277
|
+
topP?: number | undefined;
|
|
2278
|
+
topK?: number | undefined;
|
|
2279
|
+
presencePenalty?: number | undefined;
|
|
2280
|
+
frequencyPenalty?: number | undefined;
|
|
2281
|
+
seed?: number | undefined;
|
|
2282
|
+
stopSequences?: string[] | undefined;
|
|
2283
|
+
responseFormat?: {
|
|
2284
|
+
type: "text";
|
|
2285
|
+
} | {
|
|
2286
|
+
type: "json";
|
|
2287
|
+
description?: string | undefined;
|
|
2288
|
+
name?: string | undefined;
|
|
2289
|
+
schema?: any;
|
|
2290
|
+
} | undefined;
|
|
2291
|
+
toolChoice?: any;
|
|
2292
|
+
includeRawChunks?: boolean | undefined;
|
|
2293
|
+
abortSignal?: any;
|
|
2294
|
+
providerOptions?: any;
|
|
2295
|
+
};
|
|
2296
|
+
}>;
|
|
2297
|
+
streamable: true;
|
|
2298
|
+
outputSchema?: undefined;
|
|
2299
|
+
} | {
|
|
2300
|
+
name: "LLM_DO_GENERATE";
|
|
2301
|
+
inputSchema: zod.ZodObject<{
|
|
2302
|
+
modelId: zod.ZodString;
|
|
2303
|
+
callOptions: zod.ZodObject<{
|
|
2304
|
+
prompt: zod.ZodAny;
|
|
2305
|
+
maxOutputTokens: zod.ZodOptional<zod.ZodNumber>;
|
|
2306
|
+
temperature: zod.ZodOptional<zod.ZodNumber>;
|
|
2307
|
+
topP: zod.ZodOptional<zod.ZodNumber>;
|
|
2308
|
+
topK: zod.ZodOptional<zod.ZodNumber>;
|
|
2309
|
+
presencePenalty: zod.ZodOptional<zod.ZodNumber>;
|
|
2310
|
+
frequencyPenalty: zod.ZodOptional<zod.ZodNumber>;
|
|
2311
|
+
seed: zod.ZodOptional<zod.ZodNumber>;
|
|
2312
|
+
stopSequences: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
2313
|
+
responseFormat: zod.ZodOptional<zod.ZodUnion<[zod.ZodObject<{
|
|
2314
|
+
type: zod.ZodLiteral<"text">;
|
|
2315
|
+
}, "strip", zod.ZodTypeAny, {
|
|
2316
|
+
type: "text";
|
|
2317
|
+
}, {
|
|
2318
|
+
type: "text";
|
|
2319
|
+
}>, zod.ZodObject<{
|
|
2320
|
+
type: zod.ZodLiteral<"json">;
|
|
2321
|
+
schema: zod.ZodOptional<zod.ZodAny>;
|
|
2322
|
+
name: zod.ZodOptional<zod.ZodString>;
|
|
2323
|
+
description: zod.ZodOptional<zod.ZodString>;
|
|
2324
|
+
}, "strip", zod.ZodTypeAny, {
|
|
2325
|
+
type: "json";
|
|
2326
|
+
description?: string | undefined;
|
|
2327
|
+
name?: string | undefined;
|
|
2328
|
+
schema?: any;
|
|
2329
|
+
}, {
|
|
2330
|
+
type: "json";
|
|
2331
|
+
description?: string | undefined;
|
|
2332
|
+
name?: string | undefined;
|
|
2333
|
+
schema?: any;
|
|
2334
|
+
}>]>>;
|
|
2335
|
+
tools: zod.ZodOptional<zod.ZodArray<zod.ZodAny, "many">>;
|
|
2336
|
+
toolChoice: zod.ZodOptional<zod.ZodAny>;
|
|
2337
|
+
includeRawChunks: zod.ZodOptional<zod.ZodBoolean>;
|
|
2338
|
+
abortSignal: zod.ZodOptional<zod.ZodAny>;
|
|
2339
|
+
headers: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnion<[zod.ZodString, zod.ZodUndefined]>>>;
|
|
2340
|
+
providerOptions: zod.ZodOptional<zod.ZodAny>;
|
|
2341
|
+
}, "strip", zod.ZodTypeAny, {
|
|
2342
|
+
maxOutputTokens?: number | undefined;
|
|
2343
|
+
tools?: any[] | undefined;
|
|
2344
|
+
headers?: Record<string, string | undefined> | undefined;
|
|
2345
|
+
prompt?: any;
|
|
2346
|
+
temperature?: number | undefined;
|
|
2347
|
+
topP?: number | undefined;
|
|
2348
|
+
topK?: number | undefined;
|
|
2349
|
+
presencePenalty?: number | undefined;
|
|
2350
|
+
frequencyPenalty?: number | undefined;
|
|
2351
|
+
seed?: number | undefined;
|
|
2352
|
+
stopSequences?: string[] | undefined;
|
|
2353
|
+
responseFormat?: {
|
|
2354
|
+
type: "text";
|
|
2355
|
+
} | {
|
|
2356
|
+
type: "json";
|
|
2357
|
+
description?: string | undefined;
|
|
2358
|
+
name?: string | undefined;
|
|
2359
|
+
schema?: any;
|
|
2360
|
+
} | undefined;
|
|
2361
|
+
toolChoice?: any;
|
|
2362
|
+
includeRawChunks?: boolean | undefined;
|
|
2363
|
+
abortSignal?: any;
|
|
2364
|
+
providerOptions?: any;
|
|
2365
|
+
}, {
|
|
2366
|
+
maxOutputTokens?: number | undefined;
|
|
2367
|
+
tools?: any[] | undefined;
|
|
2368
|
+
headers?: Record<string, string | undefined> | undefined;
|
|
2369
|
+
prompt?: any;
|
|
2370
|
+
temperature?: number | undefined;
|
|
2371
|
+
topP?: number | undefined;
|
|
2372
|
+
topK?: number | undefined;
|
|
2373
|
+
presencePenalty?: number | undefined;
|
|
2374
|
+
frequencyPenalty?: number | undefined;
|
|
2375
|
+
seed?: number | undefined;
|
|
2376
|
+
stopSequences?: string[] | undefined;
|
|
2377
|
+
responseFormat?: {
|
|
2378
|
+
type: "text";
|
|
2379
|
+
} | {
|
|
2380
|
+
type: "json";
|
|
2381
|
+
description?: string | undefined;
|
|
2382
|
+
name?: string | undefined;
|
|
2383
|
+
schema?: any;
|
|
2384
|
+
} | undefined;
|
|
2385
|
+
toolChoice?: any;
|
|
2386
|
+
includeRawChunks?: boolean | undefined;
|
|
2387
|
+
abortSignal?: any;
|
|
2388
|
+
providerOptions?: any;
|
|
2389
|
+
}>;
|
|
2390
|
+
}, "strip", zod.ZodTypeAny, {
|
|
2391
|
+
modelId: string;
|
|
2392
|
+
callOptions: {
|
|
2393
|
+
maxOutputTokens?: number | undefined;
|
|
2394
|
+
tools?: any[] | undefined;
|
|
2395
|
+
headers?: Record<string, string | undefined> | undefined;
|
|
2396
|
+
prompt?: any;
|
|
2397
|
+
temperature?: number | undefined;
|
|
2398
|
+
topP?: number | undefined;
|
|
2399
|
+
topK?: number | undefined;
|
|
2400
|
+
presencePenalty?: number | undefined;
|
|
2401
|
+
frequencyPenalty?: number | undefined;
|
|
2402
|
+
seed?: number | undefined;
|
|
2403
|
+
stopSequences?: string[] | undefined;
|
|
2404
|
+
responseFormat?: {
|
|
2405
|
+
type: "text";
|
|
2406
|
+
} | {
|
|
2407
|
+
type: "json";
|
|
2408
|
+
description?: string | undefined;
|
|
2409
|
+
name?: string | undefined;
|
|
2410
|
+
schema?: any;
|
|
2411
|
+
} | undefined;
|
|
2412
|
+
toolChoice?: any;
|
|
2413
|
+
includeRawChunks?: boolean | undefined;
|
|
2414
|
+
abortSignal?: any;
|
|
2415
|
+
providerOptions?: any;
|
|
2416
|
+
};
|
|
2417
|
+
}, {
|
|
2418
|
+
modelId: string;
|
|
2419
|
+
callOptions: {
|
|
2420
|
+
maxOutputTokens?: number | undefined;
|
|
2421
|
+
tools?: any[] | undefined;
|
|
2422
|
+
headers?: Record<string, string | undefined> | undefined;
|
|
2423
|
+
prompt?: any;
|
|
2424
|
+
temperature?: number | undefined;
|
|
2425
|
+
topP?: number | undefined;
|
|
2426
|
+
topK?: number | undefined;
|
|
2427
|
+
presencePenalty?: number | undefined;
|
|
2428
|
+
frequencyPenalty?: number | undefined;
|
|
2429
|
+
seed?: number | undefined;
|
|
2430
|
+
stopSequences?: string[] | undefined;
|
|
2431
|
+
responseFormat?: {
|
|
2432
|
+
type: "text";
|
|
2433
|
+
} | {
|
|
2434
|
+
type: "json";
|
|
2435
|
+
description?: string | undefined;
|
|
2436
|
+
name?: string | undefined;
|
|
2437
|
+
schema?: any;
|
|
2438
|
+
} | undefined;
|
|
2439
|
+
toolChoice?: any;
|
|
2440
|
+
includeRawChunks?: boolean | undefined;
|
|
2441
|
+
abortSignal?: any;
|
|
2442
|
+
providerOptions?: any;
|
|
2443
|
+
};
|
|
2444
|
+
}>;
|
|
2445
|
+
outputSchema: zod.ZodObject<{
|
|
2446
|
+
content: zod.ZodArray<zod.ZodAny, "many">;
|
|
2447
|
+
finishReason: zod.ZodEnum<["stop", "length", "content-filter", "tool-calls", "error", "other", "unknown"]>;
|
|
2448
|
+
usage: zod.ZodEffects<zod.ZodObject<{
|
|
2449
|
+
inputTokens: zod.ZodOptional<zod.ZodNumber>;
|
|
2450
|
+
outputTokens: zod.ZodOptional<zod.ZodNumber>;
|
|
2451
|
+
totalTokens: zod.ZodOptional<zod.ZodNumber>;
|
|
2452
|
+
reasoningTokens: zod.ZodOptional<zod.ZodNumber>;
|
|
2453
|
+
}, "passthrough", zod.ZodTypeAny, zod.objectOutputType<{
|
|
2454
|
+
inputTokens: zod.ZodOptional<zod.ZodNumber>;
|
|
2455
|
+
outputTokens: zod.ZodOptional<zod.ZodNumber>;
|
|
2456
|
+
totalTokens: zod.ZodOptional<zod.ZodNumber>;
|
|
2457
|
+
reasoningTokens: zod.ZodOptional<zod.ZodNumber>;
|
|
2458
|
+
}, zod.ZodTypeAny, "passthrough">, zod.objectInputType<{
|
|
2459
|
+
inputTokens: zod.ZodOptional<zod.ZodNumber>;
|
|
2460
|
+
outputTokens: zod.ZodOptional<zod.ZodNumber>;
|
|
2461
|
+
totalTokens: zod.ZodOptional<zod.ZodNumber>;
|
|
2462
|
+
reasoningTokens: zod.ZodOptional<zod.ZodNumber>;
|
|
2463
|
+
}, zod.ZodTypeAny, "passthrough">>, {
|
|
2464
|
+
inputTokens: number | undefined;
|
|
2465
|
+
outputTokens: number | undefined;
|
|
2466
|
+
totalTokens: number | undefined;
|
|
2467
|
+
reasoningTokens: number | undefined;
|
|
2468
|
+
}, zod.objectInputType<{
|
|
2469
|
+
inputTokens: zod.ZodOptional<zod.ZodNumber>;
|
|
2470
|
+
outputTokens: zod.ZodOptional<zod.ZodNumber>;
|
|
2471
|
+
totalTokens: zod.ZodOptional<zod.ZodNumber>;
|
|
2472
|
+
reasoningTokens: zod.ZodOptional<zod.ZodNumber>;
|
|
2473
|
+
}, zod.ZodTypeAny, "passthrough">>;
|
|
2474
|
+
providerMetadata: zod.ZodOptional<zod.ZodAny>;
|
|
2475
|
+
request: zod.ZodOptional<zod.ZodObject<{
|
|
2476
|
+
body: zod.ZodOptional<zod.ZodAny>;
|
|
2477
|
+
}, "strip", zod.ZodTypeAny, {
|
|
2478
|
+
body?: any;
|
|
2479
|
+
}, {
|
|
2480
|
+
body?: any;
|
|
2481
|
+
}>>;
|
|
2482
|
+
response: zod.ZodOptional<zod.ZodObject<{
|
|
2483
|
+
id: zod.ZodOptional<zod.ZodString>;
|
|
2484
|
+
timestamp: zod.ZodOptional<zod.ZodDate>;
|
|
2485
|
+
modelId: zod.ZodOptional<zod.ZodString>;
|
|
2486
|
+
headers: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
|
|
2487
|
+
body: zod.ZodOptional<zod.ZodAny>;
|
|
2488
|
+
}, "strip", zod.ZodTypeAny, {
|
|
2489
|
+
id?: string | undefined;
|
|
2490
|
+
headers?: Record<string, string> | undefined;
|
|
2491
|
+
body?: any;
|
|
2492
|
+
timestamp?: Date | undefined;
|
|
2493
|
+
modelId?: string | undefined;
|
|
2494
|
+
}, {
|
|
2495
|
+
id?: string | undefined;
|
|
2496
|
+
headers?: Record<string, string> | undefined;
|
|
2497
|
+
body?: any;
|
|
2498
|
+
timestamp?: Date | undefined;
|
|
2499
|
+
modelId?: string | undefined;
|
|
2500
|
+
}>>;
|
|
2501
|
+
warnings: zod.ZodArray<zod.ZodAny, "many">;
|
|
2502
|
+
}, "strip", zod.ZodTypeAny, {
|
|
2503
|
+
content: any[];
|
|
2504
|
+
finishReason: "length" | "unknown" | "error" | "stop" | "content-filter" | "tool-calls" | "other";
|
|
2505
|
+
usage: {
|
|
2506
|
+
inputTokens: number | undefined;
|
|
2507
|
+
outputTokens: number | undefined;
|
|
2508
|
+
totalTokens: number | undefined;
|
|
2509
|
+
reasoningTokens: number | undefined;
|
|
2510
|
+
};
|
|
2511
|
+
warnings: any[];
|
|
2512
|
+
providerMetadata?: any;
|
|
2513
|
+
request?: {
|
|
2514
|
+
body?: any;
|
|
2515
|
+
} | undefined;
|
|
2516
|
+
response?: {
|
|
2517
|
+
id?: string | undefined;
|
|
2518
|
+
headers?: Record<string, string> | undefined;
|
|
2519
|
+
body?: any;
|
|
2520
|
+
timestamp?: Date | undefined;
|
|
2521
|
+
modelId?: string | undefined;
|
|
2522
|
+
} | undefined;
|
|
2523
|
+
}, {
|
|
2524
|
+
content: any[];
|
|
2525
|
+
finishReason: "length" | "unknown" | "error" | "stop" | "content-filter" | "tool-calls" | "other";
|
|
2526
|
+
usage: {
|
|
2527
|
+
inputTokens?: number | undefined;
|
|
2528
|
+
outputTokens?: number | undefined;
|
|
2529
|
+
totalTokens?: number | undefined;
|
|
2530
|
+
reasoningTokens?: number | undefined;
|
|
2531
|
+
} & {
|
|
2532
|
+
[k: string]: unknown;
|
|
2533
|
+
};
|
|
2534
|
+
warnings: any[];
|
|
2535
|
+
providerMetadata?: any;
|
|
2536
|
+
request?: {
|
|
2537
|
+
body?: any;
|
|
2538
|
+
} | undefined;
|
|
2539
|
+
response?: {
|
|
2540
|
+
id?: string | undefined;
|
|
2541
|
+
headers?: Record<string, string> | undefined;
|
|
2542
|
+
body?: any;
|
|
2543
|
+
timestamp?: Date | undefined;
|
|
2544
|
+
modelId?: string | undefined;
|
|
2545
|
+
} | undefined;
|
|
2546
|
+
}>;
|
|
2547
|
+
streamable?: undefined;
|
|
2548
|
+
})[];
|
|
1051
2549
|
};
|
|
1052
2550
|
type WellKnownBindingsName = keyof typeof WellKnownBindings;
|
|
1053
2551
|
|
|
1054
|
-
export { type Binder, type BinderImplementation, Binding,
|
|
2552
|
+
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 };
|