@decocms/runtime 0.28.0 → 1.0.0-alpha.2
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/package.json +15 -76
- package/scripts/generate-json-schema.ts +24 -0
- package/src/asset-server/dev-server-proxy.ts +16 -0
- package/src/asset-server/index.ts +44 -0
- package/src/bindings/README.md +1 -1
- package/src/bindings/binder.ts +1 -1
- package/src/bindings/channels.ts +1 -1
- package/src/bindings/deconfig/resources.ts +47 -17
- package/src/bindings/deconfig/types.ts +1 -1
- package/src/bindings/index.ts +2 -0
- package/src/bindings/language-model/ai-sdk.ts +7 -4
- package/src/bindings/resources/bindings.ts +1 -1
- package/src/bindings/resources/schemas.ts +1 -1
- package/src/bindings/views.ts +1 -1
- package/src/bindings.ts +8 -7
- package/src/index.ts +5 -20
- package/src/mastra.ts +1 -229
- package/src/mcp.ts +7 -6
- package/src/proxy.ts +0 -8
- package/src/resources.ts +1 -1
- package/src/state.ts +1 -1
- package/src/views.ts +1 -1
- package/tsconfig.json +8 -0
- package/dist/admin.d.ts +0 -5
- package/dist/admin.js +0 -21
- package/dist/admin.js.map +0 -1
- package/dist/bindings/deconfig/index.d.ts +0 -12
- package/dist/bindings/deconfig/index.js +0 -10
- package/dist/bindings/deconfig/index.js.map +0 -1
- package/dist/bindings/index.d.ts +0 -2312
- package/dist/bindings/index.js +0 -135
- package/dist/bindings/index.js.map +0 -1
- package/dist/chunk-3AWMDSOH.js +0 -96
- package/dist/chunk-3AWMDSOH.js.map +0 -1
- package/dist/chunk-4XSQKJLU.js +0 -105
- package/dist/chunk-4XSQKJLU.js.map +0 -1
- package/dist/chunk-5EYZ2LVM.js +0 -158
- package/dist/chunk-5EYZ2LVM.js.map +0 -1
- package/dist/chunk-7ITSLORK.js +0 -128
- package/dist/chunk-7ITSLORK.js.map +0 -1
- package/dist/chunk-I7BWSAN6.js +0 -49
- package/dist/chunk-I7BWSAN6.js.map +0 -1
- package/dist/chunk-L4OT2YDO.js +0 -27
- package/dist/chunk-L4OT2YDO.js.map +0 -1
- package/dist/chunk-SHQSNOFL.js +0 -769
- package/dist/chunk-SHQSNOFL.js.map +0 -1
- package/dist/chunk-UHR3BLMF.js +0 -92
- package/dist/chunk-UHR3BLMF.js.map +0 -1
- package/dist/chunk-UIJGM3NV.js +0 -518
- package/dist/chunk-UIJGM3NV.js.map +0 -1
- package/dist/chunk-ZPUT6RN6.js +0 -32
- package/dist/chunk-ZPUT6RN6.js.map +0 -1
- package/dist/client.d.ts +0 -28
- package/dist/client.js +0 -5
- package/dist/client.js.map +0 -1
- package/dist/d1-store.d.ts +0 -9
- package/dist/d1-store.js +0 -4
- package/dist/d1-store.js.map +0 -1
- package/dist/drizzle.d.ts +0 -49
- package/dist/drizzle.js +0 -121
- package/dist/drizzle.js.map +0 -1
- package/dist/index-B7U9jXW4.d.ts +0 -530
- package/dist/index-uCMd27hU.d.ts +0 -471
- package/dist/index.d.ts +0 -10
- package/dist/index.js +0 -637
- package/dist/index.js.map +0 -1
- package/dist/mastra.d.ts +0 -10
- package/dist/mastra.js +0 -6
- package/dist/mastra.js.map +0 -1
- package/dist/mcp-DYmQ2RQf.d.ts +0 -105
- package/dist/mcp-client.d.ts +0 -232
- package/dist/mcp-client.js +0 -4
- package/dist/mcp-client.js.map +0 -1
- package/dist/proxy.d.ts +0 -11
- package/dist/proxy.js +0 -5
- package/dist/proxy.js.map +0 -1
- package/dist/resources.d.ts +0 -362
- package/dist/resources.js +0 -4
- package/dist/resources.js.map +0 -1
- package/dist/views.d.ts +0 -72
- package/dist/views.js +0 -4
- package/dist/views.js.map +0 -1
- package/src/cf-imports.ts +0 -1
- package/src/d1-store.ts +0 -34
- package/src/deprecated.ts +0 -59
- package/src/workflow.ts +0 -193
package/dist/bindings/index.d.ts
DELETED
|
@@ -1,2312 +0,0 @@
|
|
|
1
|
-
import * as zod from 'zod';
|
|
2
|
-
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-B7U9jXW4.js';
|
|
3
|
-
import * as _mastra_core from '@mastra/core';
|
|
4
|
-
import { c as createPrivateTool, a as createStreamableTool, S as StreamableTool } from '../index-uCMd27hU.js';
|
|
5
|
-
import { z } from 'zod/v3';
|
|
6
|
-
import { MCPConnection } from '@decocms/bindings/connection';
|
|
7
|
-
import { M as MCPClientFetchStub } from '../mcp-DYmQ2RQf.js';
|
|
8
|
-
import { ToolBinder } from '@decocms/bindings';
|
|
9
|
-
import '@cloudflare/workers-types';
|
|
10
|
-
import '@mastra/core/di';
|
|
11
|
-
import '@mastra/core/workflows';
|
|
12
|
-
import '../resources.js';
|
|
13
|
-
|
|
14
|
-
declare const callbacksSchema: z.ZodObject<{
|
|
15
|
-
stream: z.ZodString;
|
|
16
|
-
generate: z.ZodString;
|
|
17
|
-
generateObject: z.ZodString;
|
|
18
|
-
}, "strip", z.ZodTypeAny, {
|
|
19
|
-
stream: string;
|
|
20
|
-
generate: string;
|
|
21
|
-
generateObject: string;
|
|
22
|
-
}, {
|
|
23
|
-
stream: string;
|
|
24
|
-
generate: string;
|
|
25
|
-
generateObject: string;
|
|
26
|
-
}>;
|
|
27
|
-
declare const joinChannelSchema: z.ZodObject<{
|
|
28
|
-
workspace: z.ZodString;
|
|
29
|
-
discriminator: z.ZodString;
|
|
30
|
-
} & {
|
|
31
|
-
agentId: z.ZodString;
|
|
32
|
-
agentName: z.ZodString;
|
|
33
|
-
agentLink: z.ZodString;
|
|
34
|
-
} & {
|
|
35
|
-
callbacks: z.ZodObject<{
|
|
36
|
-
stream: z.ZodString;
|
|
37
|
-
generate: z.ZodString;
|
|
38
|
-
generateObject: z.ZodString;
|
|
39
|
-
}, "strip", z.ZodTypeAny, {
|
|
40
|
-
stream: string;
|
|
41
|
-
generate: string;
|
|
42
|
-
generateObject: string;
|
|
43
|
-
}, {
|
|
44
|
-
stream: string;
|
|
45
|
-
generate: string;
|
|
46
|
-
generateObject: string;
|
|
47
|
-
}>;
|
|
48
|
-
}, "strip", z.ZodTypeAny, {
|
|
49
|
-
workspace: string;
|
|
50
|
-
discriminator: string;
|
|
51
|
-
agentId: string;
|
|
52
|
-
agentName: string;
|
|
53
|
-
agentLink: string;
|
|
54
|
-
callbacks: {
|
|
55
|
-
stream: string;
|
|
56
|
-
generate: string;
|
|
57
|
-
generateObject: string;
|
|
58
|
-
};
|
|
59
|
-
}, {
|
|
60
|
-
workspace: string;
|
|
61
|
-
discriminator: string;
|
|
62
|
-
agentId: string;
|
|
63
|
-
agentName: string;
|
|
64
|
-
agentLink: string;
|
|
65
|
-
callbacks: {
|
|
66
|
-
stream: string;
|
|
67
|
-
generate: string;
|
|
68
|
-
generateObject: string;
|
|
69
|
-
};
|
|
70
|
-
}>;
|
|
71
|
-
declare const listChannelsSchema: z.ZodObject<{
|
|
72
|
-
channels: z.ZodArray<z.ZodObject<{
|
|
73
|
-
label: z.ZodString;
|
|
74
|
-
value: z.ZodString;
|
|
75
|
-
}, "strip", z.ZodTypeAny, {
|
|
76
|
-
value: string;
|
|
77
|
-
label: string;
|
|
78
|
-
}, {
|
|
79
|
-
value: string;
|
|
80
|
-
label: string;
|
|
81
|
-
}>, "many">;
|
|
82
|
-
}, "strip", z.ZodTypeAny, {
|
|
83
|
-
channels: {
|
|
84
|
-
value: string;
|
|
85
|
-
label: string;
|
|
86
|
-
}[];
|
|
87
|
-
}, {
|
|
88
|
-
channels: {
|
|
89
|
-
value: string;
|
|
90
|
-
label: string;
|
|
91
|
-
}[];
|
|
92
|
-
}>;
|
|
93
|
-
type Callbacks = z.infer<typeof callbacksSchema>;
|
|
94
|
-
type JoinedChannelPayload = z.infer<typeof joinChannelSchema>;
|
|
95
|
-
type ListChannelsSchema = z.infer<typeof listChannelsSchema>;
|
|
96
|
-
declare const CHANNEL_BINDING: readonly [{
|
|
97
|
-
readonly name: "DECO_CHAT_CHANNELS_JOIN";
|
|
98
|
-
readonly inputSchema: z.ZodObject<{
|
|
99
|
-
workspace: z.ZodString;
|
|
100
|
-
discriminator: z.ZodString;
|
|
101
|
-
} & {
|
|
102
|
-
agentId: z.ZodString;
|
|
103
|
-
agentName: z.ZodString;
|
|
104
|
-
agentLink: z.ZodString;
|
|
105
|
-
} & {
|
|
106
|
-
callbacks: z.ZodObject<{
|
|
107
|
-
stream: z.ZodString;
|
|
108
|
-
generate: z.ZodString;
|
|
109
|
-
generateObject: z.ZodString;
|
|
110
|
-
}, "strip", z.ZodTypeAny, {
|
|
111
|
-
stream: string;
|
|
112
|
-
generate: string;
|
|
113
|
-
generateObject: string;
|
|
114
|
-
}, {
|
|
115
|
-
stream: string;
|
|
116
|
-
generate: string;
|
|
117
|
-
generateObject: string;
|
|
118
|
-
}>;
|
|
119
|
-
}, "strip", z.ZodTypeAny, {
|
|
120
|
-
workspace: string;
|
|
121
|
-
discriminator: string;
|
|
122
|
-
agentId: string;
|
|
123
|
-
agentName: string;
|
|
124
|
-
agentLink: string;
|
|
125
|
-
callbacks: {
|
|
126
|
-
stream: string;
|
|
127
|
-
generate: string;
|
|
128
|
-
generateObject: string;
|
|
129
|
-
};
|
|
130
|
-
}, {
|
|
131
|
-
workspace: string;
|
|
132
|
-
discriminator: string;
|
|
133
|
-
agentId: string;
|
|
134
|
-
agentName: string;
|
|
135
|
-
agentLink: string;
|
|
136
|
-
callbacks: {
|
|
137
|
-
stream: string;
|
|
138
|
-
generate: string;
|
|
139
|
-
generateObject: string;
|
|
140
|
-
};
|
|
141
|
-
}>;
|
|
142
|
-
readonly outputSchema: z.ZodAny;
|
|
143
|
-
}, {
|
|
144
|
-
readonly name: "DECO_CHAT_CHANNELS_LEAVE";
|
|
145
|
-
readonly inputSchema: z.ZodObject<{
|
|
146
|
-
workspace: z.ZodString;
|
|
147
|
-
discriminator: z.ZodString;
|
|
148
|
-
}, "strip", z.ZodTypeAny, {
|
|
149
|
-
workspace: string;
|
|
150
|
-
discriminator: string;
|
|
151
|
-
}, {
|
|
152
|
-
workspace: string;
|
|
153
|
-
discriminator: string;
|
|
154
|
-
}>;
|
|
155
|
-
readonly outputSchema: z.ZodAny;
|
|
156
|
-
}, {
|
|
157
|
-
readonly name: "DECO_CHAT_CHANNELS_LIST";
|
|
158
|
-
readonly inputSchema: z.ZodAny;
|
|
159
|
-
readonly outputSchema: z.ZodObject<{
|
|
160
|
-
channels: z.ZodArray<z.ZodObject<{
|
|
161
|
-
label: z.ZodString;
|
|
162
|
-
value: z.ZodString;
|
|
163
|
-
}, "strip", z.ZodTypeAny, {
|
|
164
|
-
value: string;
|
|
165
|
-
label: string;
|
|
166
|
-
}, {
|
|
167
|
-
value: string;
|
|
168
|
-
label: string;
|
|
169
|
-
}>, "many">;
|
|
170
|
-
}, "strip", z.ZodTypeAny, {
|
|
171
|
-
channels: {
|
|
172
|
-
value: string;
|
|
173
|
-
label: string;
|
|
174
|
-
}[];
|
|
175
|
-
}, {
|
|
176
|
-
channels: {
|
|
177
|
-
value: string;
|
|
178
|
-
label: string;
|
|
179
|
-
}[];
|
|
180
|
-
}>;
|
|
181
|
-
readonly opt: true;
|
|
182
|
-
}];
|
|
183
|
-
|
|
184
|
-
interface ToolLike<TName extends string = string, TInput = any, TReturn extends object | null | boolean = object> {
|
|
185
|
-
name: TName;
|
|
186
|
-
description: string;
|
|
187
|
-
inputSchema: z.ZodType<TInput>;
|
|
188
|
-
outputSchema?: z.ZodType<TReturn>;
|
|
189
|
-
handler: (props: TInput) => Promise<TReturn> | TReturn;
|
|
190
|
-
}
|
|
191
|
-
type Binder<TDefinition extends readonly ToolBinder[] = readonly ToolBinder[]> = TDefinition;
|
|
192
|
-
type BinderImplementation<TBinder extends Binder<any>, TContext = any> = TBinder extends Binder<infer TDefinition> ? {
|
|
193
|
-
[K in keyof TDefinition]: Omit<ToolLike<TDefinition[K]["name"], z.infer<TDefinition[K]["inputSchema"]>, TDefinition[K] extends {
|
|
194
|
-
outputSchema: infer Schema;
|
|
195
|
-
} ? Schema extends z.ZodType ? z.infer<Schema> : never : never>, "name" | "inputSchema" | "outputSchema" | "handler"> & {
|
|
196
|
-
handler: (props: z.infer<TDefinition[K]["inputSchema"]>, c?: TContext) => ReturnType<ToolLike<TDefinition[K]["name"], z.infer<TDefinition[K]["inputSchema"]>, TDefinition[K] extends {
|
|
197
|
-
outputSchema: infer Schema;
|
|
198
|
-
} ? Schema extends z.ZodType ? z.infer<Schema> : never : never>["handler"]>;
|
|
199
|
-
};
|
|
200
|
-
} : never;
|
|
201
|
-
declare const bindingClient: <TDefinition extends readonly ToolBinder[]>(binder: TDefinition) => {
|
|
202
|
-
implements: (tools: ToolBinder[]) => boolean;
|
|
203
|
-
forConnection: (mcpConnection: MCPConnection) => MCPClientFetchStub<TDefinition>;
|
|
204
|
-
};
|
|
205
|
-
type MCPBindingClient<T extends ReturnType<typeof bindingClient>> = ReturnType<T["forConnection"]>;
|
|
206
|
-
declare const ChannelBinding: {
|
|
207
|
-
implements: (tools: ToolBinder[]) => boolean;
|
|
208
|
-
forConnection: (mcpConnection: MCPConnection) => MCPClientFetchStub<readonly [{
|
|
209
|
-
readonly name: "DECO_CHAT_CHANNELS_JOIN";
|
|
210
|
-
readonly inputSchema: z.ZodObject<{
|
|
211
|
-
workspace: z.ZodString;
|
|
212
|
-
discriminator: z.ZodString;
|
|
213
|
-
} & {
|
|
214
|
-
agentId: z.ZodString;
|
|
215
|
-
agentName: z.ZodString;
|
|
216
|
-
agentLink: z.ZodString;
|
|
217
|
-
} & {
|
|
218
|
-
callbacks: z.ZodObject<{
|
|
219
|
-
stream: z.ZodString;
|
|
220
|
-
generate: z.ZodString;
|
|
221
|
-
generateObject: z.ZodString;
|
|
222
|
-
}, "strip", z.ZodTypeAny, {
|
|
223
|
-
stream: string;
|
|
224
|
-
generate: string;
|
|
225
|
-
generateObject: string;
|
|
226
|
-
}, {
|
|
227
|
-
stream: string;
|
|
228
|
-
generate: string;
|
|
229
|
-
generateObject: string;
|
|
230
|
-
}>;
|
|
231
|
-
}, "strip", z.ZodTypeAny, {
|
|
232
|
-
workspace: string;
|
|
233
|
-
discriminator: string;
|
|
234
|
-
agentId: string;
|
|
235
|
-
agentName: string;
|
|
236
|
-
agentLink: string;
|
|
237
|
-
callbacks: {
|
|
238
|
-
stream: string;
|
|
239
|
-
generate: string;
|
|
240
|
-
generateObject: string;
|
|
241
|
-
};
|
|
242
|
-
}, {
|
|
243
|
-
workspace: string;
|
|
244
|
-
discriminator: string;
|
|
245
|
-
agentId: string;
|
|
246
|
-
agentName: string;
|
|
247
|
-
agentLink: string;
|
|
248
|
-
callbacks: {
|
|
249
|
-
stream: string;
|
|
250
|
-
generate: string;
|
|
251
|
-
generateObject: string;
|
|
252
|
-
};
|
|
253
|
-
}>;
|
|
254
|
-
readonly outputSchema: z.ZodAny;
|
|
255
|
-
}, {
|
|
256
|
-
readonly name: "DECO_CHAT_CHANNELS_LEAVE";
|
|
257
|
-
readonly inputSchema: z.ZodObject<{
|
|
258
|
-
workspace: z.ZodString;
|
|
259
|
-
discriminator: z.ZodString;
|
|
260
|
-
}, "strip", z.ZodTypeAny, {
|
|
261
|
-
workspace: string;
|
|
262
|
-
discriminator: string;
|
|
263
|
-
}, {
|
|
264
|
-
workspace: string;
|
|
265
|
-
discriminator: string;
|
|
266
|
-
}>;
|
|
267
|
-
readonly outputSchema: z.ZodAny;
|
|
268
|
-
}, {
|
|
269
|
-
readonly name: "DECO_CHAT_CHANNELS_LIST";
|
|
270
|
-
readonly inputSchema: z.ZodAny;
|
|
271
|
-
readonly outputSchema: z.ZodObject<{
|
|
272
|
-
channels: z.ZodArray<z.ZodObject<{
|
|
273
|
-
label: z.ZodString;
|
|
274
|
-
value: z.ZodString;
|
|
275
|
-
}, "strip", z.ZodTypeAny, {
|
|
276
|
-
value: string;
|
|
277
|
-
label: string;
|
|
278
|
-
}, {
|
|
279
|
-
value: string;
|
|
280
|
-
label: string;
|
|
281
|
-
}>, "many">;
|
|
282
|
-
}, "strip", z.ZodTypeAny, {
|
|
283
|
-
channels: {
|
|
284
|
-
value: string;
|
|
285
|
-
label: string;
|
|
286
|
-
}[];
|
|
287
|
-
}, {
|
|
288
|
-
channels: {
|
|
289
|
-
value: string;
|
|
290
|
-
label: string;
|
|
291
|
-
}[];
|
|
292
|
-
}>;
|
|
293
|
-
readonly opt: true;
|
|
294
|
-
}]>;
|
|
295
|
-
};
|
|
296
|
-
declare const ViewBinding: {
|
|
297
|
-
implements: (tools: ToolBinder[]) => boolean;
|
|
298
|
-
forConnection: (mcpConnection: MCPConnection) => MCPClientFetchStub<readonly [{
|
|
299
|
-
readonly name: "DECO_CHAT_VIEWS_LIST";
|
|
300
|
-
readonly inputSchema: z.ZodAny;
|
|
301
|
-
readonly outputSchema: z.ZodObject<{
|
|
302
|
-
views: z.ZodArray<z.ZodObject<{
|
|
303
|
-
id: z.ZodOptional<z.ZodString>;
|
|
304
|
-
name: z.ZodOptional<z.ZodString>;
|
|
305
|
-
title: z.ZodString;
|
|
306
|
-
description: z.ZodOptional<z.ZodString>;
|
|
307
|
-
icon: z.ZodString;
|
|
308
|
-
url: z.ZodOptional<z.ZodString>;
|
|
309
|
-
mimeTypePattern: z.ZodOptional<z.ZodString>;
|
|
310
|
-
resourceName: z.ZodOptional<z.ZodString>;
|
|
311
|
-
tools: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
312
|
-
prompt: z.ZodOptional<z.ZodString>;
|
|
313
|
-
installBehavior: z.ZodOptional<z.ZodEnum<["none", "open", "autoPin"]>>;
|
|
314
|
-
}, "strip", z.ZodTypeAny, {
|
|
315
|
-
tools: string[];
|
|
316
|
-
title: string;
|
|
317
|
-
icon: string;
|
|
318
|
-
id?: string | undefined;
|
|
319
|
-
url?: string | undefined;
|
|
320
|
-
name?: string | undefined;
|
|
321
|
-
description?: string | undefined;
|
|
322
|
-
resourceName?: string | undefined;
|
|
323
|
-
mimeTypePattern?: string | undefined;
|
|
324
|
-
prompt?: string | undefined;
|
|
325
|
-
installBehavior?: "open" | "none" | "autoPin" | undefined;
|
|
326
|
-
}, {
|
|
327
|
-
title: string;
|
|
328
|
-
icon: string;
|
|
329
|
-
id?: string | undefined;
|
|
330
|
-
url?: string | undefined;
|
|
331
|
-
name?: string | undefined;
|
|
332
|
-
tools?: string[] | undefined;
|
|
333
|
-
description?: string | undefined;
|
|
334
|
-
resourceName?: string | undefined;
|
|
335
|
-
mimeTypePattern?: string | undefined;
|
|
336
|
-
prompt?: string | undefined;
|
|
337
|
-
installBehavior?: "open" | "none" | "autoPin" | undefined;
|
|
338
|
-
}>, "many">;
|
|
339
|
-
}, "strip", z.ZodTypeAny, {
|
|
340
|
-
views: {
|
|
341
|
-
tools: string[];
|
|
342
|
-
title: string;
|
|
343
|
-
icon: string;
|
|
344
|
-
id?: string | undefined;
|
|
345
|
-
url?: string | undefined;
|
|
346
|
-
name?: string | undefined;
|
|
347
|
-
description?: string | undefined;
|
|
348
|
-
resourceName?: string | undefined;
|
|
349
|
-
mimeTypePattern?: string | undefined;
|
|
350
|
-
prompt?: string | undefined;
|
|
351
|
-
installBehavior?: "open" | "none" | "autoPin" | undefined;
|
|
352
|
-
}[];
|
|
353
|
-
}, {
|
|
354
|
-
views: {
|
|
355
|
-
title: string;
|
|
356
|
-
icon: string;
|
|
357
|
-
id?: string | undefined;
|
|
358
|
-
url?: string | undefined;
|
|
359
|
-
name?: string | undefined;
|
|
360
|
-
tools?: string[] | undefined;
|
|
361
|
-
description?: string | undefined;
|
|
362
|
-
resourceName?: string | undefined;
|
|
363
|
-
mimeTypePattern?: string | undefined;
|
|
364
|
-
prompt?: string | undefined;
|
|
365
|
-
installBehavior?: "open" | "none" | "autoPin" | undefined;
|
|
366
|
-
}[];
|
|
367
|
-
}>;
|
|
368
|
-
}]>;
|
|
369
|
-
};
|
|
370
|
-
|
|
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>>)[];
|
|
372
|
-
|
|
373
|
-
declare const Binding: <TDefinition extends readonly ToolBinder[]>(binderTools: TDefinition) => {
|
|
374
|
-
isImplementedBy: (tools: Pick<ToolBinder, "name">[]) => boolean;
|
|
375
|
-
};
|
|
376
|
-
|
|
377
|
-
declare const VIEW_BINDING: readonly [{
|
|
378
|
-
readonly name: "DECO_CHAT_VIEWS_LIST";
|
|
379
|
-
readonly inputSchema: z.ZodAny;
|
|
380
|
-
readonly outputSchema: z.ZodObject<{
|
|
381
|
-
views: z.ZodArray<z.ZodObject<{
|
|
382
|
-
id: z.ZodOptional<z.ZodString>;
|
|
383
|
-
name: z.ZodOptional<z.ZodString>;
|
|
384
|
-
title: z.ZodString;
|
|
385
|
-
description: z.ZodOptional<z.ZodString>;
|
|
386
|
-
icon: z.ZodString;
|
|
387
|
-
url: z.ZodOptional<z.ZodString>;
|
|
388
|
-
mimeTypePattern: z.ZodOptional<z.ZodString>;
|
|
389
|
-
resourceName: z.ZodOptional<z.ZodString>;
|
|
390
|
-
tools: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
391
|
-
prompt: z.ZodOptional<z.ZodString>;
|
|
392
|
-
installBehavior: z.ZodOptional<z.ZodEnum<["none", "open", "autoPin"]>>;
|
|
393
|
-
}, "strip", z.ZodTypeAny, {
|
|
394
|
-
tools: string[];
|
|
395
|
-
title: string;
|
|
396
|
-
icon: string;
|
|
397
|
-
id?: string | undefined;
|
|
398
|
-
url?: string | undefined;
|
|
399
|
-
name?: string | undefined;
|
|
400
|
-
description?: string | undefined;
|
|
401
|
-
resourceName?: string | undefined;
|
|
402
|
-
mimeTypePattern?: string | undefined;
|
|
403
|
-
prompt?: string | undefined;
|
|
404
|
-
installBehavior?: "open" | "none" | "autoPin" | undefined;
|
|
405
|
-
}, {
|
|
406
|
-
title: string;
|
|
407
|
-
icon: string;
|
|
408
|
-
id?: string | undefined;
|
|
409
|
-
url?: string | undefined;
|
|
410
|
-
name?: string | undefined;
|
|
411
|
-
tools?: string[] | undefined;
|
|
412
|
-
description?: string | undefined;
|
|
413
|
-
resourceName?: string | undefined;
|
|
414
|
-
mimeTypePattern?: string | undefined;
|
|
415
|
-
prompt?: string | undefined;
|
|
416
|
-
installBehavior?: "open" | "none" | "autoPin" | undefined;
|
|
417
|
-
}>, "many">;
|
|
418
|
-
}, "strip", z.ZodTypeAny, {
|
|
419
|
-
views: {
|
|
420
|
-
tools: string[];
|
|
421
|
-
title: string;
|
|
422
|
-
icon: string;
|
|
423
|
-
id?: string | undefined;
|
|
424
|
-
url?: string | undefined;
|
|
425
|
-
name?: string | undefined;
|
|
426
|
-
description?: string | undefined;
|
|
427
|
-
resourceName?: string | undefined;
|
|
428
|
-
mimeTypePattern?: string | undefined;
|
|
429
|
-
prompt?: string | undefined;
|
|
430
|
-
installBehavior?: "open" | "none" | "autoPin" | undefined;
|
|
431
|
-
}[];
|
|
432
|
-
}, {
|
|
433
|
-
views: {
|
|
434
|
-
title: string;
|
|
435
|
-
icon: string;
|
|
436
|
-
id?: string | undefined;
|
|
437
|
-
url?: string | undefined;
|
|
438
|
-
name?: string | undefined;
|
|
439
|
-
tools?: string[] | undefined;
|
|
440
|
-
description?: string | undefined;
|
|
441
|
-
resourceName?: string | undefined;
|
|
442
|
-
mimeTypePattern?: string | undefined;
|
|
443
|
-
prompt?: string | undefined;
|
|
444
|
-
installBehavior?: "open" | "none" | "autoPin" | undefined;
|
|
445
|
-
}[];
|
|
446
|
-
}>;
|
|
447
|
-
}];
|
|
448
|
-
declare const listViewsSchema: z.ZodObject<{
|
|
449
|
-
views: z.ZodArray<z.ZodObject<{
|
|
450
|
-
id: z.ZodOptional<z.ZodString>;
|
|
451
|
-
name: z.ZodOptional<z.ZodString>;
|
|
452
|
-
title: z.ZodString;
|
|
453
|
-
description: z.ZodOptional<z.ZodString>;
|
|
454
|
-
icon: z.ZodString;
|
|
455
|
-
url: z.ZodOptional<z.ZodString>;
|
|
456
|
-
mimeTypePattern: z.ZodOptional<z.ZodString>;
|
|
457
|
-
resourceName: z.ZodOptional<z.ZodString>;
|
|
458
|
-
tools: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
459
|
-
prompt: z.ZodOptional<z.ZodString>;
|
|
460
|
-
installBehavior: z.ZodOptional<z.ZodEnum<["none", "open", "autoPin"]>>;
|
|
461
|
-
}, "strip", z.ZodTypeAny, {
|
|
462
|
-
tools: string[];
|
|
463
|
-
title: string;
|
|
464
|
-
icon: string;
|
|
465
|
-
id?: string | undefined;
|
|
466
|
-
url?: string | undefined;
|
|
467
|
-
name?: string | undefined;
|
|
468
|
-
description?: string | undefined;
|
|
469
|
-
resourceName?: string | undefined;
|
|
470
|
-
mimeTypePattern?: string | undefined;
|
|
471
|
-
prompt?: string | undefined;
|
|
472
|
-
installBehavior?: "open" | "none" | "autoPin" | undefined;
|
|
473
|
-
}, {
|
|
474
|
-
title: string;
|
|
475
|
-
icon: string;
|
|
476
|
-
id?: string | undefined;
|
|
477
|
-
url?: string | undefined;
|
|
478
|
-
name?: string | undefined;
|
|
479
|
-
tools?: string[] | undefined;
|
|
480
|
-
description?: string | undefined;
|
|
481
|
-
resourceName?: string | undefined;
|
|
482
|
-
mimeTypePattern?: string | undefined;
|
|
483
|
-
prompt?: string | undefined;
|
|
484
|
-
installBehavior?: "open" | "none" | "autoPin" | undefined;
|
|
485
|
-
}>, "many">;
|
|
486
|
-
}, "strip", z.ZodTypeAny, {
|
|
487
|
-
views: {
|
|
488
|
-
tools: string[];
|
|
489
|
-
title: string;
|
|
490
|
-
icon: string;
|
|
491
|
-
id?: string | undefined;
|
|
492
|
-
url?: string | undefined;
|
|
493
|
-
name?: string | undefined;
|
|
494
|
-
description?: string | undefined;
|
|
495
|
-
resourceName?: string | undefined;
|
|
496
|
-
mimeTypePattern?: string | undefined;
|
|
497
|
-
prompt?: string | undefined;
|
|
498
|
-
installBehavior?: "open" | "none" | "autoPin" | undefined;
|
|
499
|
-
}[];
|
|
500
|
-
}, {
|
|
501
|
-
views: {
|
|
502
|
-
title: string;
|
|
503
|
-
icon: string;
|
|
504
|
-
id?: string | undefined;
|
|
505
|
-
url?: string | undefined;
|
|
506
|
-
name?: string | undefined;
|
|
507
|
-
tools?: string[] | undefined;
|
|
508
|
-
description?: string | undefined;
|
|
509
|
-
resourceName?: string | undefined;
|
|
510
|
-
mimeTypePattern?: string | undefined;
|
|
511
|
-
prompt?: string | undefined;
|
|
512
|
-
installBehavior?: "open" | "none" | "autoPin" | undefined;
|
|
513
|
-
}[];
|
|
514
|
-
}>;
|
|
515
|
-
|
|
516
|
-
/**
|
|
517
|
-
* Resources 2.0 Schemas
|
|
518
|
-
*
|
|
519
|
-
* This module provides standardized schemas for Resources 2.0, a major version upgrade
|
|
520
|
-
* that introduces standardized resource management with `rsc://` URI format and
|
|
521
|
-
* consistent CRUD operations across all resource types.
|
|
522
|
-
*
|
|
523
|
-
* Key Features:
|
|
524
|
-
* - Standardized `rsc://` URI format for all resources
|
|
525
|
-
* - Generic CRUD operation schemas that work with any resource type
|
|
526
|
-
* - Type-safe factory functions for creating resource-specific schemas
|
|
527
|
-
* - Comprehensive validation and error handling
|
|
528
|
-
* - Full TypeScript support with Zod validation
|
|
529
|
-
*/
|
|
530
|
-
declare const ResourceUriSchema: z.ZodString;
|
|
531
|
-
declare const DescribeInputSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
532
|
-
declare const DescribeOutputSchema: z.ZodObject<{
|
|
533
|
-
uriTemplate: z.ZodString;
|
|
534
|
-
features: z.ZodObject<{
|
|
535
|
-
watch: z.ZodObject<{
|
|
536
|
-
pathname: z.ZodString;
|
|
537
|
-
}, "strip", z.ZodTypeAny, {
|
|
538
|
-
pathname: string;
|
|
539
|
-
}, {
|
|
540
|
-
pathname: string;
|
|
541
|
-
}>;
|
|
542
|
-
}, "strip", z.ZodTypeAny, {
|
|
543
|
-
watch: {
|
|
544
|
-
pathname: string;
|
|
545
|
-
};
|
|
546
|
-
}, {
|
|
547
|
-
watch: {
|
|
548
|
-
pathname: string;
|
|
549
|
-
};
|
|
550
|
-
}>;
|
|
551
|
-
}, "strip", z.ZodTypeAny, {
|
|
552
|
-
uriTemplate: string;
|
|
553
|
-
features: {
|
|
554
|
-
watch: {
|
|
555
|
-
pathname: string;
|
|
556
|
-
};
|
|
557
|
-
};
|
|
558
|
-
}, {
|
|
559
|
-
uriTemplate: string;
|
|
560
|
-
features: {
|
|
561
|
-
watch: {
|
|
562
|
-
pathname: string;
|
|
563
|
-
};
|
|
564
|
-
};
|
|
565
|
-
}>;
|
|
566
|
-
/**
|
|
567
|
-
* Search input schema for resource queries
|
|
568
|
-
* Supports pagination, filtering, sorting, and search terms
|
|
569
|
-
*/
|
|
570
|
-
declare const SearchInputSchema: z.ZodObject<{
|
|
571
|
-
term: z.ZodOptional<z.ZodString>;
|
|
572
|
-
page: z.ZodDefault<z.ZodNumber>;
|
|
573
|
-
pageSize: z.ZodDefault<z.ZodNumber>;
|
|
574
|
-
filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
575
|
-
sortBy: z.ZodOptional<z.ZodString>;
|
|
576
|
-
sortOrder: z.ZodDefault<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>;
|
|
577
|
-
}, "strip", z.ZodTypeAny, {
|
|
578
|
-
page: number;
|
|
579
|
-
pageSize: number;
|
|
580
|
-
sortOrder: "asc" | "desc";
|
|
581
|
-
filters?: Record<string, any> | undefined;
|
|
582
|
-
term?: string | undefined;
|
|
583
|
-
sortBy?: string | undefined;
|
|
584
|
-
}, {
|
|
585
|
-
filters?: Record<string, any> | undefined;
|
|
586
|
-
term?: string | undefined;
|
|
587
|
-
page?: number | undefined;
|
|
588
|
-
pageSize?: number | undefined;
|
|
589
|
-
sortBy?: string | undefined;
|
|
590
|
-
sortOrder?: "asc" | "desc" | undefined;
|
|
591
|
-
}>;
|
|
592
|
-
/**
|
|
593
|
-
* Factory function to create search output schema for a specific resource type
|
|
594
|
-
* @param itemSchema - The schema for individual resource items
|
|
595
|
-
* @returns Zod schema for search results with pagination metadata
|
|
596
|
-
*/
|
|
597
|
-
declare function createSearchOutputSchema<T extends z.ZodTypeAny>(itemSchema: T): z.ZodObject<{
|
|
598
|
-
items: z.ZodArray<T, "many">;
|
|
599
|
-
totalCount: z.ZodNumber;
|
|
600
|
-
page: z.ZodNumber;
|
|
601
|
-
pageSize: z.ZodNumber;
|
|
602
|
-
totalPages: z.ZodNumber;
|
|
603
|
-
hasNextPage: z.ZodBoolean;
|
|
604
|
-
hasPreviousPage: z.ZodBoolean;
|
|
605
|
-
}, "strip", z.ZodTypeAny, {
|
|
606
|
-
items: T["_output"][];
|
|
607
|
-
page: number;
|
|
608
|
-
pageSize: number;
|
|
609
|
-
totalCount: number;
|
|
610
|
-
totalPages: number;
|
|
611
|
-
hasNextPage: boolean;
|
|
612
|
-
hasPreviousPage: boolean;
|
|
613
|
-
}, {
|
|
614
|
-
items: T["_input"][];
|
|
615
|
-
page: number;
|
|
616
|
-
pageSize: number;
|
|
617
|
-
totalCount: number;
|
|
618
|
-
totalPages: number;
|
|
619
|
-
hasNextPage: boolean;
|
|
620
|
-
hasPreviousPage: boolean;
|
|
621
|
-
}>;
|
|
622
|
-
/**
|
|
623
|
-
* Read input schema for retrieving a single resource
|
|
624
|
-
*/
|
|
625
|
-
declare const ReadInputSchema: z.ZodObject<{
|
|
626
|
-
uri: z.ZodString;
|
|
627
|
-
}, "strip", z.ZodTypeAny, {
|
|
628
|
-
uri: string;
|
|
629
|
-
}, {
|
|
630
|
-
uri: string;
|
|
631
|
-
}>;
|
|
632
|
-
/**
|
|
633
|
-
* Factory function to create read output schema for a specific resource type
|
|
634
|
-
* @param dataSchema - The schema for the resource data
|
|
635
|
-
* @returns Zod schema for read operation results
|
|
636
|
-
*/
|
|
637
|
-
declare function createReadOutputSchema<T extends z.ZodTypeAny>(dataSchema: T): z.ZodObject<{
|
|
638
|
-
uri: z.ZodString;
|
|
639
|
-
data: T;
|
|
640
|
-
created_at: z.ZodOptional<z.ZodString>;
|
|
641
|
-
updated_at: z.ZodOptional<z.ZodString>;
|
|
642
|
-
created_by: z.ZodOptional<z.ZodString>;
|
|
643
|
-
updated_by: z.ZodOptional<z.ZodString>;
|
|
644
|
-
}, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
|
645
|
-
uri: z.ZodString;
|
|
646
|
-
data: T;
|
|
647
|
-
created_at: z.ZodOptional<z.ZodString>;
|
|
648
|
-
updated_at: z.ZodOptional<z.ZodString>;
|
|
649
|
-
created_by: z.ZodOptional<z.ZodString>;
|
|
650
|
-
updated_by: z.ZodOptional<z.ZodString>;
|
|
651
|
-
}>, any> extends infer T_1 ? { [k in keyof T_1]: T_1[k]; } : never, z.baseObjectInputType<{
|
|
652
|
-
uri: z.ZodString;
|
|
653
|
-
data: T;
|
|
654
|
-
created_at: z.ZodOptional<z.ZodString>;
|
|
655
|
-
updated_at: z.ZodOptional<z.ZodString>;
|
|
656
|
-
created_by: z.ZodOptional<z.ZodString>;
|
|
657
|
-
updated_by: z.ZodOptional<z.ZodString>;
|
|
658
|
-
}> extends infer T_2 ? { [k_1 in keyof T_2]: T_2[k_1]; } : never>;
|
|
659
|
-
/**
|
|
660
|
-
* Factory function to create create input schema for a specific resource type
|
|
661
|
-
* @param dataSchema - The schema for the resource data to create
|
|
662
|
-
* @returns Zod schema for create operation input
|
|
663
|
-
*/
|
|
664
|
-
declare function createCreateInputSchema<T extends z.ZodTypeAny>(dataSchema: T): z.ZodObject<{
|
|
665
|
-
data: T;
|
|
666
|
-
}, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
|
667
|
-
data: T;
|
|
668
|
-
}>, any> extends infer T_1 ? { [k in keyof T_1]: T_1[k]; } : never, z.baseObjectInputType<{
|
|
669
|
-
data: T;
|
|
670
|
-
}> extends infer T_2 ? { [k_1 in keyof T_2]: T_2[k_1]; } : never>;
|
|
671
|
-
/**
|
|
672
|
-
* Factory function to create create output schema for a specific resource type
|
|
673
|
-
* @param dataSchema - The schema for the created resource data
|
|
674
|
-
* @returns Zod schema for create operation results
|
|
675
|
-
*/
|
|
676
|
-
declare function createCreateOutputSchema<T extends z.ZodTypeAny>(dataSchema: T): z.ZodObject<{
|
|
677
|
-
uri: z.ZodString;
|
|
678
|
-
data: T;
|
|
679
|
-
created_at: z.ZodOptional<z.ZodString>;
|
|
680
|
-
updated_at: z.ZodOptional<z.ZodString>;
|
|
681
|
-
created_by: z.ZodOptional<z.ZodString>;
|
|
682
|
-
}, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
|
683
|
-
uri: z.ZodString;
|
|
684
|
-
data: T;
|
|
685
|
-
created_at: z.ZodOptional<z.ZodString>;
|
|
686
|
-
updated_at: z.ZodOptional<z.ZodString>;
|
|
687
|
-
created_by: z.ZodOptional<z.ZodString>;
|
|
688
|
-
}>, any> extends infer T_1 ? { [k in keyof T_1]: T_1[k]; } : never, z.baseObjectInputType<{
|
|
689
|
-
uri: z.ZodString;
|
|
690
|
-
data: T;
|
|
691
|
-
created_at: z.ZodOptional<z.ZodString>;
|
|
692
|
-
updated_at: z.ZodOptional<z.ZodString>;
|
|
693
|
-
created_by: z.ZodOptional<z.ZodString>;
|
|
694
|
-
}> extends infer T_2 ? { [k_1 in keyof T_2]: T_2[k_1]; } : never>;
|
|
695
|
-
/**
|
|
696
|
-
* Factory function to create update input schema for a specific resource type
|
|
697
|
-
* @param dataSchema - The schema for the resource data to update
|
|
698
|
-
* @returns Zod schema for update operation input
|
|
699
|
-
*/
|
|
700
|
-
declare function createUpdateInputSchema<T extends z.ZodTypeAny>(dataSchema: T): z.ZodObject<{
|
|
701
|
-
uri: z.ZodString;
|
|
702
|
-
data: T;
|
|
703
|
-
}, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
|
704
|
-
uri: z.ZodString;
|
|
705
|
-
data: T;
|
|
706
|
-
}>, any> extends infer T_1 ? { [k in keyof T_1]: T_1[k]; } : never, z.baseObjectInputType<{
|
|
707
|
-
uri: z.ZodString;
|
|
708
|
-
data: T;
|
|
709
|
-
}> extends infer T_2 ? { [k_1 in keyof T_2]: T_2[k_1]; } : never>;
|
|
710
|
-
/**
|
|
711
|
-
* Factory function to create update output schema for a specific resource type
|
|
712
|
-
* @param dataSchema - The schema for the updated resource data
|
|
713
|
-
* @returns Zod schema for update operation results
|
|
714
|
-
*/
|
|
715
|
-
declare function createUpdateOutputSchema<T extends z.ZodTypeAny>(dataSchema: T): z.ZodObject<{
|
|
716
|
-
uri: z.ZodString;
|
|
717
|
-
data: T;
|
|
718
|
-
created_at: z.ZodOptional<z.ZodString>;
|
|
719
|
-
updated_at: z.ZodOptional<z.ZodString>;
|
|
720
|
-
created_by: z.ZodOptional<z.ZodString>;
|
|
721
|
-
updated_by: z.ZodOptional<z.ZodString>;
|
|
722
|
-
}, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
|
723
|
-
uri: z.ZodString;
|
|
724
|
-
data: T;
|
|
725
|
-
created_at: z.ZodOptional<z.ZodString>;
|
|
726
|
-
updated_at: z.ZodOptional<z.ZodString>;
|
|
727
|
-
created_by: z.ZodOptional<z.ZodString>;
|
|
728
|
-
updated_by: z.ZodOptional<z.ZodString>;
|
|
729
|
-
}>, any> extends infer T_1 ? { [k in keyof T_1]: T_1[k]; } : never, z.baseObjectInputType<{
|
|
730
|
-
uri: z.ZodString;
|
|
731
|
-
data: T;
|
|
732
|
-
created_at: z.ZodOptional<z.ZodString>;
|
|
733
|
-
updated_at: z.ZodOptional<z.ZodString>;
|
|
734
|
-
created_by: z.ZodOptional<z.ZodString>;
|
|
735
|
-
updated_by: z.ZodOptional<z.ZodString>;
|
|
736
|
-
}> extends infer T_2 ? { [k_1 in keyof T_2]: T_2[k_1]; } : never>;
|
|
737
|
-
/**
|
|
738
|
-
* Delete input schema for removing a resource
|
|
739
|
-
*/
|
|
740
|
-
declare const DeleteInputSchema: z.ZodObject<{
|
|
741
|
-
uri: z.ZodString;
|
|
742
|
-
}, "strip", z.ZodTypeAny, {
|
|
743
|
-
uri: string;
|
|
744
|
-
}, {
|
|
745
|
-
uri: string;
|
|
746
|
-
}>;
|
|
747
|
-
/**
|
|
748
|
-
* Delete output schema for delete operation results
|
|
749
|
-
*/
|
|
750
|
-
declare const DeleteOutputSchema: z.ZodObject<{
|
|
751
|
-
success: z.ZodBoolean;
|
|
752
|
-
uri: z.ZodString;
|
|
753
|
-
}, "strip", z.ZodTypeAny, {
|
|
754
|
-
uri: string;
|
|
755
|
-
success: boolean;
|
|
756
|
-
}, {
|
|
757
|
-
uri: string;
|
|
758
|
-
success: boolean;
|
|
759
|
-
}>;
|
|
760
|
-
/**
|
|
761
|
-
* Factory function to create item schema for a specific resource type
|
|
762
|
-
* This schema is used in search results and lists
|
|
763
|
-
* @param dataSchema - The schema for the resource data
|
|
764
|
-
* @returns Zod schema for resource items with metadata
|
|
765
|
-
*/
|
|
766
|
-
declare function createItemSchema<T extends z.ZodTypeAny>(dataSchema: T): z.ZodObject<{
|
|
767
|
-
uri: z.ZodString;
|
|
768
|
-
data: z.ZodIntersection<z.ZodObject<{
|
|
769
|
-
name: z.ZodString;
|
|
770
|
-
description: z.ZodOptional<z.ZodString>;
|
|
771
|
-
icon: z.ZodOptional<z.ZodString>;
|
|
772
|
-
}, "strip", z.ZodTypeAny, {
|
|
773
|
-
name: string;
|
|
774
|
-
description?: string | undefined;
|
|
775
|
-
icon?: string | undefined;
|
|
776
|
-
}, {
|
|
777
|
-
name: string;
|
|
778
|
-
description?: string | undefined;
|
|
779
|
-
icon?: string | undefined;
|
|
780
|
-
}>, T>;
|
|
781
|
-
created_at: z.ZodOptional<z.ZodString>;
|
|
782
|
-
updated_at: z.ZodOptional<z.ZodString>;
|
|
783
|
-
created_by: z.ZodOptional<z.ZodString>;
|
|
784
|
-
updated_by: z.ZodOptional<z.ZodString>;
|
|
785
|
-
}, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
|
786
|
-
uri: z.ZodString;
|
|
787
|
-
data: z.ZodIntersection<z.ZodObject<{
|
|
788
|
-
name: z.ZodString;
|
|
789
|
-
description: z.ZodOptional<z.ZodString>;
|
|
790
|
-
icon: z.ZodOptional<z.ZodString>;
|
|
791
|
-
}, "strip", z.ZodTypeAny, {
|
|
792
|
-
name: string;
|
|
793
|
-
description?: string | undefined;
|
|
794
|
-
icon?: string | undefined;
|
|
795
|
-
}, {
|
|
796
|
-
name: string;
|
|
797
|
-
description?: string | undefined;
|
|
798
|
-
icon?: string | undefined;
|
|
799
|
-
}>, T>;
|
|
800
|
-
created_at: z.ZodOptional<z.ZodString>;
|
|
801
|
-
updated_at: z.ZodOptional<z.ZodString>;
|
|
802
|
-
created_by: z.ZodOptional<z.ZodString>;
|
|
803
|
-
updated_by: z.ZodOptional<z.ZodString>;
|
|
804
|
-
}>, any> extends infer T_1 ? { [k in keyof T_1]: T_1[k]; } : never, z.baseObjectInputType<{
|
|
805
|
-
uri: z.ZodString;
|
|
806
|
-
data: z.ZodIntersection<z.ZodObject<{
|
|
807
|
-
name: z.ZodString;
|
|
808
|
-
description: z.ZodOptional<z.ZodString>;
|
|
809
|
-
icon: z.ZodOptional<z.ZodString>;
|
|
810
|
-
}, "strip", z.ZodTypeAny, {
|
|
811
|
-
name: string;
|
|
812
|
-
description?: string | undefined;
|
|
813
|
-
icon?: string | undefined;
|
|
814
|
-
}, {
|
|
815
|
-
name: string;
|
|
816
|
-
description?: string | undefined;
|
|
817
|
-
icon?: string | undefined;
|
|
818
|
-
}>, T>;
|
|
819
|
-
created_at: z.ZodOptional<z.ZodString>;
|
|
820
|
-
updated_at: z.ZodOptional<z.ZodString>;
|
|
821
|
-
created_by: z.ZodOptional<z.ZodString>;
|
|
822
|
-
updated_by: z.ZodOptional<z.ZodString>;
|
|
823
|
-
}> extends infer T_2 ? { [k_1 in keyof T_2]: T_2[k_1]; } : never>;
|
|
824
|
-
type SearchInput = z.infer<typeof SearchInputSchema>;
|
|
825
|
-
type SearchOutput<T extends z.ZodTypeAny> = z.infer<ReturnType<typeof createSearchOutputSchema<T>>>;
|
|
826
|
-
type ReadInput = z.infer<typeof ReadInputSchema>;
|
|
827
|
-
type ReadOutput<T extends z.ZodTypeAny> = z.infer<ReturnType<typeof createReadOutputSchema<T>>>;
|
|
828
|
-
type CreateInput<T extends z.ZodTypeAny> = z.infer<ReturnType<typeof createCreateInputSchema<T>>>;
|
|
829
|
-
type CreateOutput<T extends z.ZodTypeAny> = z.infer<ReturnType<typeof createCreateOutputSchema<T>>>;
|
|
830
|
-
type UpdateInput<T extends z.ZodTypeAny> = z.infer<ReturnType<typeof createUpdateInputSchema<T>>>;
|
|
831
|
-
type UpdateOutput<T extends z.ZodTypeAny> = z.infer<ReturnType<typeof createUpdateOutputSchema<T>>>;
|
|
832
|
-
type DeleteInput = z.infer<typeof DeleteInputSchema>;
|
|
833
|
-
type DeleteOutput = z.infer<typeof DeleteOutputSchema>;
|
|
834
|
-
type ResourceItem<T extends z.ZodTypeAny> = z.infer<ReturnType<typeof createItemSchema<T>>>;
|
|
835
|
-
|
|
836
|
-
/**
|
|
837
|
-
* Resources 2.0 Helper Functions
|
|
838
|
-
*
|
|
839
|
-
* This module provides helper functions for working with Resources 2.0
|
|
840
|
-
* URI format and validation.
|
|
841
|
-
*
|
|
842
|
-
* Key Features:
|
|
843
|
-
* - URI validation and parsing utilities
|
|
844
|
-
* - URI construction helpers
|
|
845
|
-
* - Type-safe resource URI handling
|
|
846
|
-
*/
|
|
847
|
-
/**
|
|
848
|
-
* Utility function to validate a resource URI format
|
|
849
|
-
*
|
|
850
|
-
* @param uri - The URI to validate
|
|
851
|
-
* @returns True if the URI is valid, false otherwise
|
|
852
|
-
*/
|
|
853
|
-
declare function validateResourceUri(uri: string): boolean;
|
|
854
|
-
/**
|
|
855
|
-
* Utility function to parse a resource URI into its components
|
|
856
|
-
*
|
|
857
|
-
* @param uri - The URI to parse
|
|
858
|
-
* @returns Object containing the parsed components or null if invalid
|
|
859
|
-
*/
|
|
860
|
-
declare function parseResourceUri(uri: string): {
|
|
861
|
-
workspace: string;
|
|
862
|
-
project: string;
|
|
863
|
-
resourceId: string;
|
|
864
|
-
} | null;
|
|
865
|
-
/**
|
|
866
|
-
* Utility function to construct a resource URI from components
|
|
867
|
-
*
|
|
868
|
-
* @param workspace - The workspace identifier
|
|
869
|
-
* @param project - The project identifier
|
|
870
|
-
* @param resourceId - The resource identifier
|
|
871
|
-
* @returns The constructed resource URI
|
|
872
|
-
*/
|
|
873
|
-
declare function constructResourceUri(workspace: string, project: string, resourceId: string): string;
|
|
874
|
-
|
|
875
|
-
declare const normalizeDirectory: (dir: string) => string;
|
|
876
|
-
declare const ResourcePath: {
|
|
877
|
-
build: (directory: string, resourceId: string) => string;
|
|
878
|
-
extract: (path: string) => {
|
|
879
|
-
directory: string;
|
|
880
|
-
resourceId: string;
|
|
881
|
-
};
|
|
882
|
-
};
|
|
883
|
-
declare const ResourceUri: {
|
|
884
|
-
build: (integrationId: string, resourceName: string, resourceId: string) => string;
|
|
885
|
-
unwind: (uri: string) => {
|
|
886
|
-
resourceName: string;
|
|
887
|
-
resourceId: string;
|
|
888
|
-
};
|
|
889
|
-
};
|
|
890
|
-
declare function getMetadataValue(metadata: unknown, key: string): unknown;
|
|
891
|
-
declare function getMetadataString(metadata: unknown, key: string): string | undefined;
|
|
892
|
-
|
|
893
|
-
declare const WellKnownBindings: {
|
|
894
|
-
readonly Channel: readonly [{
|
|
895
|
-
readonly name: "DECO_CHAT_CHANNELS_JOIN";
|
|
896
|
-
readonly inputSchema: zod.ZodObject<{
|
|
897
|
-
workspace: zod.ZodString;
|
|
898
|
-
discriminator: zod.ZodString;
|
|
899
|
-
} & {
|
|
900
|
-
agentId: zod.ZodString;
|
|
901
|
-
agentName: zod.ZodString;
|
|
902
|
-
agentLink: zod.ZodString;
|
|
903
|
-
} & {
|
|
904
|
-
callbacks: zod.ZodObject<{
|
|
905
|
-
stream: zod.ZodString;
|
|
906
|
-
generate: zod.ZodString;
|
|
907
|
-
generateObject: zod.ZodString;
|
|
908
|
-
}, "strip", zod.ZodTypeAny, {
|
|
909
|
-
stream: string;
|
|
910
|
-
generate: string;
|
|
911
|
-
generateObject: string;
|
|
912
|
-
}, {
|
|
913
|
-
stream: string;
|
|
914
|
-
generate: string;
|
|
915
|
-
generateObject: string;
|
|
916
|
-
}>;
|
|
917
|
-
}, "strip", zod.ZodTypeAny, {
|
|
918
|
-
workspace: string;
|
|
919
|
-
discriminator: string;
|
|
920
|
-
agentId: string;
|
|
921
|
-
agentName: string;
|
|
922
|
-
agentLink: string;
|
|
923
|
-
callbacks: {
|
|
924
|
-
stream: string;
|
|
925
|
-
generate: string;
|
|
926
|
-
generateObject: string;
|
|
927
|
-
};
|
|
928
|
-
}, {
|
|
929
|
-
workspace: string;
|
|
930
|
-
discriminator: string;
|
|
931
|
-
agentId: string;
|
|
932
|
-
agentName: string;
|
|
933
|
-
agentLink: string;
|
|
934
|
-
callbacks: {
|
|
935
|
-
stream: string;
|
|
936
|
-
generate: string;
|
|
937
|
-
generateObject: string;
|
|
938
|
-
};
|
|
939
|
-
}>;
|
|
940
|
-
readonly outputSchema: zod.ZodAny;
|
|
941
|
-
}, {
|
|
942
|
-
readonly name: "DECO_CHAT_CHANNELS_LEAVE";
|
|
943
|
-
readonly inputSchema: zod.ZodObject<{
|
|
944
|
-
workspace: zod.ZodString;
|
|
945
|
-
discriminator: zod.ZodString;
|
|
946
|
-
}, "strip", zod.ZodTypeAny, {
|
|
947
|
-
workspace: string;
|
|
948
|
-
discriminator: string;
|
|
949
|
-
}, {
|
|
950
|
-
workspace: string;
|
|
951
|
-
discriminator: string;
|
|
952
|
-
}>;
|
|
953
|
-
readonly outputSchema: zod.ZodAny;
|
|
954
|
-
}, {
|
|
955
|
-
readonly name: "DECO_CHAT_CHANNELS_LIST";
|
|
956
|
-
readonly inputSchema: zod.ZodAny;
|
|
957
|
-
readonly outputSchema: zod.ZodObject<{
|
|
958
|
-
channels: zod.ZodArray<zod.ZodObject<{
|
|
959
|
-
label: zod.ZodString;
|
|
960
|
-
value: zod.ZodString;
|
|
961
|
-
}, "strip", zod.ZodTypeAny, {
|
|
962
|
-
value: string;
|
|
963
|
-
label: string;
|
|
964
|
-
}, {
|
|
965
|
-
value: string;
|
|
966
|
-
label: string;
|
|
967
|
-
}>, "many">;
|
|
968
|
-
}, "strip", zod.ZodTypeAny, {
|
|
969
|
-
channels: {
|
|
970
|
-
value: string;
|
|
971
|
-
label: string;
|
|
972
|
-
}[];
|
|
973
|
-
}, {
|
|
974
|
-
channels: {
|
|
975
|
-
value: string;
|
|
976
|
-
label: string;
|
|
977
|
-
}[];
|
|
978
|
-
}>;
|
|
979
|
-
readonly opt: true;
|
|
980
|
-
}];
|
|
981
|
-
readonly View: readonly [{
|
|
982
|
-
readonly name: "DECO_CHAT_VIEWS_LIST";
|
|
983
|
-
readonly inputSchema: zod.ZodAny;
|
|
984
|
-
readonly outputSchema: zod.ZodObject<{
|
|
985
|
-
views: zod.ZodArray<zod.ZodObject<{
|
|
986
|
-
id: zod.ZodOptional<zod.ZodString>;
|
|
987
|
-
name: zod.ZodOptional<zod.ZodString>;
|
|
988
|
-
title: zod.ZodString;
|
|
989
|
-
description: zod.ZodOptional<zod.ZodString>;
|
|
990
|
-
icon: zod.ZodString;
|
|
991
|
-
url: zod.ZodOptional<zod.ZodString>;
|
|
992
|
-
mimeTypePattern: zod.ZodOptional<zod.ZodString>;
|
|
993
|
-
resourceName: zod.ZodOptional<zod.ZodString>;
|
|
994
|
-
tools: zod.ZodDefault<zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>>;
|
|
995
|
-
prompt: zod.ZodOptional<zod.ZodString>;
|
|
996
|
-
installBehavior: zod.ZodOptional<zod.ZodEnum<["none", "open", "autoPin"]>>;
|
|
997
|
-
}, "strip", zod.ZodTypeAny, {
|
|
998
|
-
title: string;
|
|
999
|
-
icon: string;
|
|
1000
|
-
tools: string[];
|
|
1001
|
-
id?: string | undefined;
|
|
1002
|
-
name?: string | undefined;
|
|
1003
|
-
description?: string | undefined;
|
|
1004
|
-
url?: string | undefined;
|
|
1005
|
-
mimeTypePattern?: string | undefined;
|
|
1006
|
-
resourceName?: string | undefined;
|
|
1007
|
-
prompt?: string | undefined;
|
|
1008
|
-
installBehavior?: "none" | "open" | "autoPin" | undefined;
|
|
1009
|
-
}, {
|
|
1010
|
-
title: string;
|
|
1011
|
-
icon: string;
|
|
1012
|
-
id?: string | undefined;
|
|
1013
|
-
name?: string | undefined;
|
|
1014
|
-
description?: string | undefined;
|
|
1015
|
-
url?: string | undefined;
|
|
1016
|
-
mimeTypePattern?: string | undefined;
|
|
1017
|
-
resourceName?: string | undefined;
|
|
1018
|
-
tools?: string[] | undefined;
|
|
1019
|
-
prompt?: string | undefined;
|
|
1020
|
-
installBehavior?: "none" | "open" | "autoPin" | undefined;
|
|
1021
|
-
}>, "many">;
|
|
1022
|
-
}, "strip", zod.ZodTypeAny, {
|
|
1023
|
-
views: {
|
|
1024
|
-
title: string;
|
|
1025
|
-
icon: string;
|
|
1026
|
-
tools: string[];
|
|
1027
|
-
id?: string | undefined;
|
|
1028
|
-
name?: string | undefined;
|
|
1029
|
-
description?: string | undefined;
|
|
1030
|
-
url?: string | undefined;
|
|
1031
|
-
mimeTypePattern?: string | undefined;
|
|
1032
|
-
resourceName?: string | undefined;
|
|
1033
|
-
prompt?: string | undefined;
|
|
1034
|
-
installBehavior?: "none" | "open" | "autoPin" | undefined;
|
|
1035
|
-
}[];
|
|
1036
|
-
}, {
|
|
1037
|
-
views: {
|
|
1038
|
-
title: string;
|
|
1039
|
-
icon: string;
|
|
1040
|
-
id?: string | undefined;
|
|
1041
|
-
name?: string | undefined;
|
|
1042
|
-
description?: string | undefined;
|
|
1043
|
-
url?: string | undefined;
|
|
1044
|
-
mimeTypePattern?: string | undefined;
|
|
1045
|
-
resourceName?: string | undefined;
|
|
1046
|
-
tools?: string[] | undefined;
|
|
1047
|
-
prompt?: string | undefined;
|
|
1048
|
-
installBehavior?: "none" | "open" | "autoPin" | undefined;
|
|
1049
|
-
}[];
|
|
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
|
-
})[];
|
|
2309
|
-
};
|
|
2310
|
-
type WellKnownBindingsName = keyof typeof WellKnownBindings;
|
|
2311
|
-
|
|
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 };
|