@inkeep/agents-core 0.6.4 → 0.6.5

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.
@@ -0,0 +1,280 @@
1
+ import { z } from 'zod';
2
+ import { C as ConversationHistoryConfig, F as FullGraphAgentInsertSchema } from './utility-CgaoTJn6.cjs';
3
+ export { c as AgentStopWhen, A as AgentStopWhenSchema, d as CredentialStoreType, b as GraphStopWhen, G as GraphStopWhenSchema, M as MCPTransportType, a as StopWhen, S as StopWhenSchema } from './utility-CgaoTJn6.cjs';
4
+ import 'drizzle-zod';
5
+ import 'drizzle-orm/sqlite-core';
6
+ import '@hono/zod-openapi';
7
+ import '@modelcontextprotocol/sdk/client/streamableHttp.js';
8
+
9
+ declare const TenantParamsSchema: z.ZodObject<{
10
+ tenantId: z.ZodString;
11
+ }, z.core.$strip>;
12
+ declare const TenantProjectParamsSchema: z.ZodObject<{
13
+ tenantId: z.ZodString;
14
+ projectId: z.ZodString;
15
+ }, z.core.$strip>;
16
+ declare const TenantProjectIdParamsSchema: z.ZodObject<{
17
+ tenantId: z.ZodString;
18
+ projectId: z.ZodString;
19
+ id: z.ZodString;
20
+ }, z.core.$strip>;
21
+ declare const IdParamsSchema: z.ZodObject<{
22
+ id: z.ZodString;
23
+ }, z.core.$strip>;
24
+ declare const PaginationSchema: z.ZodObject<{
25
+ page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
26
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
27
+ total: z.ZodNumber;
28
+ pages: z.ZodNumber;
29
+ }, z.core.$strip>;
30
+ declare const ListResponseSchema: <T extends z.ZodTypeAny>(itemSchema: T) => z.ZodObject<{
31
+ data: z.ZodArray<T>;
32
+ pagination: z.ZodObject<{
33
+ page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
34
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
35
+ total: z.ZodNumber;
36
+ pages: z.ZodNumber;
37
+ }, z.core.$strip>;
38
+ }, z.core.$strip>;
39
+ declare const SingleResponseSchema: <T extends z.ZodTypeAny>(itemSchema: T) => z.ZodObject<{
40
+ data: T;
41
+ }, z.core.$strip>;
42
+ declare const ErrorResponseSchema: z.ZodObject<{
43
+ error: z.ZodString;
44
+ message: z.ZodOptional<z.ZodString>;
45
+ details: z.ZodOptional<z.ZodUnknown>;
46
+ }, z.core.$strip>;
47
+ declare const ModelSettingsSchema: z.ZodObject<{
48
+ model: z.ZodOptional<z.ZodString>;
49
+ structuredOutput: z.ZodOptional<z.ZodString>;
50
+ summarizer: z.ZodOptional<z.ZodString>;
51
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
52
+ }, z.core.$strip>;
53
+ declare const AgentApiInsertSchema: z.ZodObject<{
54
+ id: z.ZodOptional<z.ZodString>;
55
+ name: z.ZodString;
56
+ description: z.ZodOptional<z.ZodString>;
57
+ prompt: z.ZodOptional<z.ZodString>;
58
+ model: z.ZodOptional<z.ZodObject<{
59
+ model: z.ZodOptional<z.ZodString>;
60
+ structuredOutput: z.ZodOptional<z.ZodString>;
61
+ summarizer: z.ZodOptional<z.ZodString>;
62
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
63
+ }, z.core.$strip>>;
64
+ tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
65
+ dataComponents: z.ZodOptional<z.ZodArray<z.ZodString>>;
66
+ artifactComponents: z.ZodOptional<z.ZodArray<z.ZodString>>;
67
+ canTransferTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
68
+ canDelegateTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
69
+ type: z.ZodOptional<z.ZodEnum<{
70
+ internal: "internal";
71
+ external: "external";
72
+ }>>;
73
+ }, z.core.$strip>;
74
+ declare const ToolApiInsertSchema: z.ZodObject<{
75
+ id: z.ZodOptional<z.ZodString>;
76
+ name: z.ZodString;
77
+ description: z.ZodOptional<z.ZodString>;
78
+ type: z.ZodEnum<{
79
+ mcp: "mcp";
80
+ hosted: "hosted";
81
+ }>;
82
+ config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
83
+ credentialReferenceId: z.ZodOptional<z.ZodString>;
84
+ }, z.core.$strip>;
85
+ declare const ApiKeyApiSelectSchema: z.ZodObject<{
86
+ id: z.ZodString;
87
+ tenantId: z.ZodString;
88
+ projectId: z.ZodString;
89
+ graphId: z.ZodString;
90
+ publicId: z.ZodString;
91
+ keyHash: z.ZodString;
92
+ keyPrefix: z.ZodString;
93
+ name: z.ZodOptional<z.ZodString>;
94
+ lastUsedAt: z.ZodOptional<z.ZodString>;
95
+ expiresAt: z.ZodOptional<z.ZodString>;
96
+ createdAt: z.ZodString;
97
+ updatedAt: z.ZodString;
98
+ }, z.core.$strip>;
99
+ declare const ApiKeyApiCreationResponseSchema: z.ZodObject<{
100
+ data: z.ZodObject<{
101
+ apiKey: z.ZodObject<{
102
+ id: z.ZodString;
103
+ tenantId: z.ZodString;
104
+ projectId: z.ZodString;
105
+ graphId: z.ZodString;
106
+ publicId: z.ZodString;
107
+ keyHash: z.ZodString;
108
+ keyPrefix: z.ZodString;
109
+ name: z.ZodOptional<z.ZodString>;
110
+ lastUsedAt: z.ZodOptional<z.ZodString>;
111
+ expiresAt: z.ZodOptional<z.ZodString>;
112
+ createdAt: z.ZodString;
113
+ updatedAt: z.ZodString;
114
+ }, z.core.$strip>;
115
+ key: z.ZodString;
116
+ }, z.core.$strip>;
117
+ }, z.core.$strip>;
118
+ declare const CredentialReferenceApiInsertSchema: z.ZodObject<{
119
+ id: z.ZodString;
120
+ tenantId: z.ZodOptional<z.ZodString>;
121
+ projectId: z.ZodOptional<z.ZodString>;
122
+ type: z.ZodEnum<{
123
+ readonly memory: "memory";
124
+ readonly keychain: "keychain";
125
+ readonly nango: "nango";
126
+ }>;
127
+ credentialStoreId: z.ZodString;
128
+ retrievalParams: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
129
+ }, z.core.$strip>;
130
+ declare const DataComponentApiInsertSchema: z.ZodObject<{
131
+ id: z.ZodString;
132
+ name: z.ZodString;
133
+ description: z.ZodOptional<z.ZodString>;
134
+ props: z.ZodRecord<z.ZodString, z.ZodUnknown>;
135
+ }, z.core.$strip>;
136
+ declare const ArtifactComponentApiInsertSchema: z.ZodObject<{
137
+ id: z.ZodString;
138
+ name: z.ZodString;
139
+ description: z.ZodOptional<z.ZodString>;
140
+ summaryProps: z.ZodRecord<z.ZodString, z.ZodUnknown>;
141
+ fullProps: z.ZodRecord<z.ZodString, z.ZodUnknown>;
142
+ }, z.core.$strip>;
143
+ declare const ContextConfigApiInsertSchema: z.ZodObject<{
144
+ id: z.ZodOptional<z.ZodString>;
145
+ name: z.ZodOptional<z.ZodString>;
146
+ description: z.ZodOptional<z.ZodString>;
147
+ type: z.ZodOptional<z.ZodString>;
148
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
149
+ }, z.core.$strip>;
150
+ declare const ExternalAgentApiInsertSchema: z.ZodObject<{
151
+ id: z.ZodOptional<z.ZodString>;
152
+ name: z.ZodString;
153
+ description: z.ZodOptional<z.ZodString>;
154
+ baseUrl: z.ZodString;
155
+ type: z.ZodOptional<z.ZodLiteral<"external">>;
156
+ }, z.core.$strip>;
157
+ declare const AgentGraphApiInsertSchema: z.ZodObject<{
158
+ id: z.ZodOptional<z.ZodString>;
159
+ name: z.ZodString;
160
+ description: z.ZodOptional<z.ZodString>;
161
+ defaultAgentId: z.ZodOptional<z.ZodString>;
162
+ }, z.core.$strip>;
163
+ declare const FullGraphDefinitionSchema: z.ZodObject<{
164
+ id: z.ZodOptional<z.ZodString>;
165
+ name: z.ZodString;
166
+ description: z.ZodOptional<z.ZodString>;
167
+ defaultAgentId: z.ZodOptional<z.ZodString>;
168
+ agents: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
169
+ id: z.ZodString;
170
+ name: z.ZodString;
171
+ description: z.ZodString;
172
+ prompt: z.ZodString;
173
+ createdAt: z.ZodOptional<z.ZodString>;
174
+ updatedAt: z.ZodOptional<z.ZodString>;
175
+ conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
176
+ models: z.ZodOptional<z.ZodObject<{
177
+ base: z.ZodOptional<z.ZodObject<{
178
+ model: z.ZodOptional<z.ZodString>;
179
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
180
+ }, z.core.$strip>>;
181
+ structuredOutput: z.ZodOptional<z.ZodObject<{
182
+ model: z.ZodOptional<z.ZodString>;
183
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
184
+ }, z.core.$strip>>;
185
+ summarizer: z.ZodOptional<z.ZodObject<{
186
+ model: z.ZodOptional<z.ZodString>;
187
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
188
+ }, z.core.$strip>>;
189
+ }, z.core.$strip>>;
190
+ stopWhen: z.ZodOptional<z.ZodNullable<z.ZodType<{
191
+ stepCountIs?: number | undefined;
192
+ }, {
193
+ stepCountIs?: number | undefined;
194
+ }, z.core.$ZodTypeInternals<{
195
+ stepCountIs?: number | undefined;
196
+ }, {
197
+ stepCountIs?: number | undefined;
198
+ }>>>>;
199
+ type: z.ZodLiteral<"internal">;
200
+ canUse: z.ZodArray<z.ZodObject<{
201
+ toolId: z.ZodString;
202
+ toolSelection: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
203
+ }, z.core.$strip>>;
204
+ dataComponents: z.ZodOptional<z.ZodArray<z.ZodString>>;
205
+ artifactComponents: z.ZodOptional<z.ZodArray<z.ZodString>>;
206
+ canTransferTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
207
+ canDelegateTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
208
+ }, z.core.$strip>, z.ZodObject<{
209
+ name: z.ZodString;
210
+ description: z.ZodOptional<z.ZodString>;
211
+ baseUrl: z.ZodString;
212
+ type: z.ZodOptional<z.ZodLiteral<"external">>;
213
+ id: z.ZodString;
214
+ }, z.core.$strip>]>>;
215
+ contextConfig: z.ZodOptional<z.ZodObject<{
216
+ id: z.ZodOptional<z.ZodString>;
217
+ name: z.ZodOptional<z.ZodString>;
218
+ description: z.ZodOptional<z.ZodString>;
219
+ type: z.ZodOptional<z.ZodString>;
220
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
221
+ }, z.core.$strip>>;
222
+ models: z.ZodOptional<z.ZodObject<{
223
+ base: z.ZodOptional<z.ZodObject<{
224
+ model: z.ZodString;
225
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
226
+ }, z.core.$strip>>;
227
+ structuredOutput: z.ZodOptional<z.ZodObject<{
228
+ model: z.ZodString;
229
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
230
+ }, z.core.$strip>>;
231
+ summarizer: z.ZodOptional<z.ZodObject<{
232
+ model: z.ZodString;
233
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
234
+ }, z.core.$strip>>;
235
+ }, z.core.$strip>>;
236
+ stopWhen: z.ZodOptional<z.ZodObject<{
237
+ transferCountIs: z.ZodOptional<z.ZodNumber>;
238
+ }, z.core.$strip>>;
239
+ graphPrompt: z.ZodOptional<z.ZodString>;
240
+ statusUpdates: z.ZodOptional<z.ZodObject<{
241
+ enabled: z.ZodOptional<z.ZodBoolean>;
242
+ numEvents: z.ZodOptional<z.ZodNumber>;
243
+ timeInSeconds: z.ZodOptional<z.ZodNumber>;
244
+ prompt: z.ZodOptional<z.ZodString>;
245
+ statusComponents: z.ZodOptional<z.ZodArray<z.ZodObject<{
246
+ type: z.ZodString;
247
+ description: z.ZodOptional<z.ZodString>;
248
+ detailsSchema: z.ZodOptional<z.ZodObject<{
249
+ type: z.ZodLiteral<"object">;
250
+ properties: z.ZodRecord<z.ZodString, z.ZodAny>;
251
+ required: z.ZodOptional<z.ZodArray<z.ZodString>>;
252
+ }, z.core.$strip>>;
253
+ }, z.core.$strip>>>;
254
+ }, z.core.$strip>>;
255
+ }, z.core.$strip>;
256
+ type AgentApiInsert = z.infer<typeof AgentApiInsertSchema>;
257
+ type ToolApiInsert = z.infer<typeof ToolApiInsertSchema>;
258
+ type ApiKeyApiSelect = z.infer<typeof ApiKeyApiSelectSchema>;
259
+ type ApiKeyApiCreationResponse = z.infer<typeof ApiKeyApiCreationResponseSchema>;
260
+ type CredentialReferenceApiInsert = z.infer<typeof CredentialReferenceApiInsertSchema>;
261
+ type DataComponentApiInsert = z.infer<typeof DataComponentApiInsertSchema>;
262
+ type ArtifactComponentApiInsert = z.infer<typeof ArtifactComponentApiInsertSchema>;
263
+ type ContextConfigApiInsert = z.infer<typeof ContextConfigApiInsertSchema>;
264
+ type ExternalAgentApiInsert = z.infer<typeof ExternalAgentApiInsertSchema>;
265
+ type AgentGraphApiInsert = z.infer<typeof AgentGraphApiInsertSchema>;
266
+ type FullGraphDefinition = z.infer<typeof FullGraphDefinitionSchema>;
267
+ type InternalAgentDefinition = z.infer<typeof FullGraphAgentInsertSchema>;
268
+ type ExternalAgentDefinition = z.infer<typeof ExternalAgentApiInsertSchema>;
269
+ type TenantParams = z.infer<typeof TenantParamsSchema>;
270
+ type ErrorResponse = z.infer<typeof ErrorResponseSchema>;
271
+ type ModelSettings = z.infer<typeof ModelSettingsSchema>;
272
+ declare const MIN_ID_LENGTH = 1;
273
+ declare const MAX_ID_LENGTH = 255;
274
+ declare const URL_SAFE_ID_PATTERN: RegExp;
275
+ declare const resourceIdSchema: z.ZodString;
276
+ declare function generateIdFromName(name: string): string;
277
+ type ToolInsert = ToolApiInsert;
278
+ type AgentGraphInsert = AgentGraphApiInsert;
279
+
280
+ export { type AgentApiInsert, AgentApiInsertSchema, type AgentGraphApiInsert, AgentGraphApiInsertSchema, type AgentGraphInsert, type ApiKeyApiCreationResponse, ApiKeyApiCreationResponseSchema, type ApiKeyApiSelect, ApiKeyApiSelectSchema, type ArtifactComponentApiInsert, ArtifactComponentApiInsertSchema, type ContextConfigApiInsert, ContextConfigApiInsertSchema, type CredentialReferenceApiInsert, CredentialReferenceApiInsertSchema, type DataComponentApiInsert, DataComponentApiInsertSchema, type ErrorResponse, ErrorResponseSchema, type ExternalAgentApiInsert, ExternalAgentApiInsertSchema, type ExternalAgentDefinition, type FullGraphDefinition, FullGraphDefinitionSchema, IdParamsSchema, type InternalAgentDefinition, ListResponseSchema, MAX_ID_LENGTH, MIN_ID_LENGTH, type ModelSettings, ModelSettingsSchema, PaginationSchema, SingleResponseSchema, type TenantParams, TenantParamsSchema, TenantProjectIdParamsSchema, TenantProjectParamsSchema, type ToolApiInsert, ToolApiInsertSchema, type ToolInsert, URL_SAFE_ID_PATTERN, generateIdFromName, resourceIdSchema };
@@ -0,0 +1,280 @@
1
+ import { z } from 'zod';
2
+ import { C as ConversationHistoryConfig, F as FullGraphAgentInsertSchema } from './utility-CgaoTJn6.js';
3
+ export { c as AgentStopWhen, A as AgentStopWhenSchema, d as CredentialStoreType, b as GraphStopWhen, G as GraphStopWhenSchema, M as MCPTransportType, a as StopWhen, S as StopWhenSchema } from './utility-CgaoTJn6.js';
4
+ import 'drizzle-zod';
5
+ import 'drizzle-orm/sqlite-core';
6
+ import '@hono/zod-openapi';
7
+ import '@modelcontextprotocol/sdk/client/streamableHttp.js';
8
+
9
+ declare const TenantParamsSchema: z.ZodObject<{
10
+ tenantId: z.ZodString;
11
+ }, z.core.$strip>;
12
+ declare const TenantProjectParamsSchema: z.ZodObject<{
13
+ tenantId: z.ZodString;
14
+ projectId: z.ZodString;
15
+ }, z.core.$strip>;
16
+ declare const TenantProjectIdParamsSchema: z.ZodObject<{
17
+ tenantId: z.ZodString;
18
+ projectId: z.ZodString;
19
+ id: z.ZodString;
20
+ }, z.core.$strip>;
21
+ declare const IdParamsSchema: z.ZodObject<{
22
+ id: z.ZodString;
23
+ }, z.core.$strip>;
24
+ declare const PaginationSchema: z.ZodObject<{
25
+ page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
26
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
27
+ total: z.ZodNumber;
28
+ pages: z.ZodNumber;
29
+ }, z.core.$strip>;
30
+ declare const ListResponseSchema: <T extends z.ZodTypeAny>(itemSchema: T) => z.ZodObject<{
31
+ data: z.ZodArray<T>;
32
+ pagination: z.ZodObject<{
33
+ page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
34
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
35
+ total: z.ZodNumber;
36
+ pages: z.ZodNumber;
37
+ }, z.core.$strip>;
38
+ }, z.core.$strip>;
39
+ declare const SingleResponseSchema: <T extends z.ZodTypeAny>(itemSchema: T) => z.ZodObject<{
40
+ data: T;
41
+ }, z.core.$strip>;
42
+ declare const ErrorResponseSchema: z.ZodObject<{
43
+ error: z.ZodString;
44
+ message: z.ZodOptional<z.ZodString>;
45
+ details: z.ZodOptional<z.ZodUnknown>;
46
+ }, z.core.$strip>;
47
+ declare const ModelSettingsSchema: z.ZodObject<{
48
+ model: z.ZodOptional<z.ZodString>;
49
+ structuredOutput: z.ZodOptional<z.ZodString>;
50
+ summarizer: z.ZodOptional<z.ZodString>;
51
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
52
+ }, z.core.$strip>;
53
+ declare const AgentApiInsertSchema: z.ZodObject<{
54
+ id: z.ZodOptional<z.ZodString>;
55
+ name: z.ZodString;
56
+ description: z.ZodOptional<z.ZodString>;
57
+ prompt: z.ZodOptional<z.ZodString>;
58
+ model: z.ZodOptional<z.ZodObject<{
59
+ model: z.ZodOptional<z.ZodString>;
60
+ structuredOutput: z.ZodOptional<z.ZodString>;
61
+ summarizer: z.ZodOptional<z.ZodString>;
62
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
63
+ }, z.core.$strip>>;
64
+ tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
65
+ dataComponents: z.ZodOptional<z.ZodArray<z.ZodString>>;
66
+ artifactComponents: z.ZodOptional<z.ZodArray<z.ZodString>>;
67
+ canTransferTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
68
+ canDelegateTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
69
+ type: z.ZodOptional<z.ZodEnum<{
70
+ internal: "internal";
71
+ external: "external";
72
+ }>>;
73
+ }, z.core.$strip>;
74
+ declare const ToolApiInsertSchema: z.ZodObject<{
75
+ id: z.ZodOptional<z.ZodString>;
76
+ name: z.ZodString;
77
+ description: z.ZodOptional<z.ZodString>;
78
+ type: z.ZodEnum<{
79
+ mcp: "mcp";
80
+ hosted: "hosted";
81
+ }>;
82
+ config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
83
+ credentialReferenceId: z.ZodOptional<z.ZodString>;
84
+ }, z.core.$strip>;
85
+ declare const ApiKeyApiSelectSchema: z.ZodObject<{
86
+ id: z.ZodString;
87
+ tenantId: z.ZodString;
88
+ projectId: z.ZodString;
89
+ graphId: z.ZodString;
90
+ publicId: z.ZodString;
91
+ keyHash: z.ZodString;
92
+ keyPrefix: z.ZodString;
93
+ name: z.ZodOptional<z.ZodString>;
94
+ lastUsedAt: z.ZodOptional<z.ZodString>;
95
+ expiresAt: z.ZodOptional<z.ZodString>;
96
+ createdAt: z.ZodString;
97
+ updatedAt: z.ZodString;
98
+ }, z.core.$strip>;
99
+ declare const ApiKeyApiCreationResponseSchema: z.ZodObject<{
100
+ data: z.ZodObject<{
101
+ apiKey: z.ZodObject<{
102
+ id: z.ZodString;
103
+ tenantId: z.ZodString;
104
+ projectId: z.ZodString;
105
+ graphId: z.ZodString;
106
+ publicId: z.ZodString;
107
+ keyHash: z.ZodString;
108
+ keyPrefix: z.ZodString;
109
+ name: z.ZodOptional<z.ZodString>;
110
+ lastUsedAt: z.ZodOptional<z.ZodString>;
111
+ expiresAt: z.ZodOptional<z.ZodString>;
112
+ createdAt: z.ZodString;
113
+ updatedAt: z.ZodString;
114
+ }, z.core.$strip>;
115
+ key: z.ZodString;
116
+ }, z.core.$strip>;
117
+ }, z.core.$strip>;
118
+ declare const CredentialReferenceApiInsertSchema: z.ZodObject<{
119
+ id: z.ZodString;
120
+ tenantId: z.ZodOptional<z.ZodString>;
121
+ projectId: z.ZodOptional<z.ZodString>;
122
+ type: z.ZodEnum<{
123
+ readonly memory: "memory";
124
+ readonly keychain: "keychain";
125
+ readonly nango: "nango";
126
+ }>;
127
+ credentialStoreId: z.ZodString;
128
+ retrievalParams: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
129
+ }, z.core.$strip>;
130
+ declare const DataComponentApiInsertSchema: z.ZodObject<{
131
+ id: z.ZodString;
132
+ name: z.ZodString;
133
+ description: z.ZodOptional<z.ZodString>;
134
+ props: z.ZodRecord<z.ZodString, z.ZodUnknown>;
135
+ }, z.core.$strip>;
136
+ declare const ArtifactComponentApiInsertSchema: z.ZodObject<{
137
+ id: z.ZodString;
138
+ name: z.ZodString;
139
+ description: z.ZodOptional<z.ZodString>;
140
+ summaryProps: z.ZodRecord<z.ZodString, z.ZodUnknown>;
141
+ fullProps: z.ZodRecord<z.ZodString, z.ZodUnknown>;
142
+ }, z.core.$strip>;
143
+ declare const ContextConfigApiInsertSchema: z.ZodObject<{
144
+ id: z.ZodOptional<z.ZodString>;
145
+ name: z.ZodOptional<z.ZodString>;
146
+ description: z.ZodOptional<z.ZodString>;
147
+ type: z.ZodOptional<z.ZodString>;
148
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
149
+ }, z.core.$strip>;
150
+ declare const ExternalAgentApiInsertSchema: z.ZodObject<{
151
+ id: z.ZodOptional<z.ZodString>;
152
+ name: z.ZodString;
153
+ description: z.ZodOptional<z.ZodString>;
154
+ baseUrl: z.ZodString;
155
+ type: z.ZodOptional<z.ZodLiteral<"external">>;
156
+ }, z.core.$strip>;
157
+ declare const AgentGraphApiInsertSchema: z.ZodObject<{
158
+ id: z.ZodOptional<z.ZodString>;
159
+ name: z.ZodString;
160
+ description: z.ZodOptional<z.ZodString>;
161
+ defaultAgentId: z.ZodOptional<z.ZodString>;
162
+ }, z.core.$strip>;
163
+ declare const FullGraphDefinitionSchema: z.ZodObject<{
164
+ id: z.ZodOptional<z.ZodString>;
165
+ name: z.ZodString;
166
+ description: z.ZodOptional<z.ZodString>;
167
+ defaultAgentId: z.ZodOptional<z.ZodString>;
168
+ agents: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
169
+ id: z.ZodString;
170
+ name: z.ZodString;
171
+ description: z.ZodString;
172
+ prompt: z.ZodString;
173
+ createdAt: z.ZodOptional<z.ZodString>;
174
+ updatedAt: z.ZodOptional<z.ZodString>;
175
+ conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
176
+ models: z.ZodOptional<z.ZodObject<{
177
+ base: z.ZodOptional<z.ZodObject<{
178
+ model: z.ZodOptional<z.ZodString>;
179
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
180
+ }, z.core.$strip>>;
181
+ structuredOutput: z.ZodOptional<z.ZodObject<{
182
+ model: z.ZodOptional<z.ZodString>;
183
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
184
+ }, z.core.$strip>>;
185
+ summarizer: z.ZodOptional<z.ZodObject<{
186
+ model: z.ZodOptional<z.ZodString>;
187
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
188
+ }, z.core.$strip>>;
189
+ }, z.core.$strip>>;
190
+ stopWhen: z.ZodOptional<z.ZodNullable<z.ZodType<{
191
+ stepCountIs?: number | undefined;
192
+ }, {
193
+ stepCountIs?: number | undefined;
194
+ }, z.core.$ZodTypeInternals<{
195
+ stepCountIs?: number | undefined;
196
+ }, {
197
+ stepCountIs?: number | undefined;
198
+ }>>>>;
199
+ type: z.ZodLiteral<"internal">;
200
+ canUse: z.ZodArray<z.ZodObject<{
201
+ toolId: z.ZodString;
202
+ toolSelection: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
203
+ }, z.core.$strip>>;
204
+ dataComponents: z.ZodOptional<z.ZodArray<z.ZodString>>;
205
+ artifactComponents: z.ZodOptional<z.ZodArray<z.ZodString>>;
206
+ canTransferTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
207
+ canDelegateTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
208
+ }, z.core.$strip>, z.ZodObject<{
209
+ name: z.ZodString;
210
+ description: z.ZodOptional<z.ZodString>;
211
+ baseUrl: z.ZodString;
212
+ type: z.ZodOptional<z.ZodLiteral<"external">>;
213
+ id: z.ZodString;
214
+ }, z.core.$strip>]>>;
215
+ contextConfig: z.ZodOptional<z.ZodObject<{
216
+ id: z.ZodOptional<z.ZodString>;
217
+ name: z.ZodOptional<z.ZodString>;
218
+ description: z.ZodOptional<z.ZodString>;
219
+ type: z.ZodOptional<z.ZodString>;
220
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
221
+ }, z.core.$strip>>;
222
+ models: z.ZodOptional<z.ZodObject<{
223
+ base: z.ZodOptional<z.ZodObject<{
224
+ model: z.ZodString;
225
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
226
+ }, z.core.$strip>>;
227
+ structuredOutput: z.ZodOptional<z.ZodObject<{
228
+ model: z.ZodString;
229
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
230
+ }, z.core.$strip>>;
231
+ summarizer: z.ZodOptional<z.ZodObject<{
232
+ model: z.ZodString;
233
+ providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
234
+ }, z.core.$strip>>;
235
+ }, z.core.$strip>>;
236
+ stopWhen: z.ZodOptional<z.ZodObject<{
237
+ transferCountIs: z.ZodOptional<z.ZodNumber>;
238
+ }, z.core.$strip>>;
239
+ graphPrompt: z.ZodOptional<z.ZodString>;
240
+ statusUpdates: z.ZodOptional<z.ZodObject<{
241
+ enabled: z.ZodOptional<z.ZodBoolean>;
242
+ numEvents: z.ZodOptional<z.ZodNumber>;
243
+ timeInSeconds: z.ZodOptional<z.ZodNumber>;
244
+ prompt: z.ZodOptional<z.ZodString>;
245
+ statusComponents: z.ZodOptional<z.ZodArray<z.ZodObject<{
246
+ type: z.ZodString;
247
+ description: z.ZodOptional<z.ZodString>;
248
+ detailsSchema: z.ZodOptional<z.ZodObject<{
249
+ type: z.ZodLiteral<"object">;
250
+ properties: z.ZodRecord<z.ZodString, z.ZodAny>;
251
+ required: z.ZodOptional<z.ZodArray<z.ZodString>>;
252
+ }, z.core.$strip>>;
253
+ }, z.core.$strip>>>;
254
+ }, z.core.$strip>>;
255
+ }, z.core.$strip>;
256
+ type AgentApiInsert = z.infer<typeof AgentApiInsertSchema>;
257
+ type ToolApiInsert = z.infer<typeof ToolApiInsertSchema>;
258
+ type ApiKeyApiSelect = z.infer<typeof ApiKeyApiSelectSchema>;
259
+ type ApiKeyApiCreationResponse = z.infer<typeof ApiKeyApiCreationResponseSchema>;
260
+ type CredentialReferenceApiInsert = z.infer<typeof CredentialReferenceApiInsertSchema>;
261
+ type DataComponentApiInsert = z.infer<typeof DataComponentApiInsertSchema>;
262
+ type ArtifactComponentApiInsert = z.infer<typeof ArtifactComponentApiInsertSchema>;
263
+ type ContextConfigApiInsert = z.infer<typeof ContextConfigApiInsertSchema>;
264
+ type ExternalAgentApiInsert = z.infer<typeof ExternalAgentApiInsertSchema>;
265
+ type AgentGraphApiInsert = z.infer<typeof AgentGraphApiInsertSchema>;
266
+ type FullGraphDefinition = z.infer<typeof FullGraphDefinitionSchema>;
267
+ type InternalAgentDefinition = z.infer<typeof FullGraphAgentInsertSchema>;
268
+ type ExternalAgentDefinition = z.infer<typeof ExternalAgentApiInsertSchema>;
269
+ type TenantParams = z.infer<typeof TenantParamsSchema>;
270
+ type ErrorResponse = z.infer<typeof ErrorResponseSchema>;
271
+ type ModelSettings = z.infer<typeof ModelSettingsSchema>;
272
+ declare const MIN_ID_LENGTH = 1;
273
+ declare const MAX_ID_LENGTH = 255;
274
+ declare const URL_SAFE_ID_PATTERN: RegExp;
275
+ declare const resourceIdSchema: z.ZodString;
276
+ declare function generateIdFromName(name: string): string;
277
+ type ToolInsert = ToolApiInsert;
278
+ type AgentGraphInsert = AgentGraphApiInsert;
279
+
280
+ export { type AgentApiInsert, AgentApiInsertSchema, type AgentGraphApiInsert, AgentGraphApiInsertSchema, type AgentGraphInsert, type ApiKeyApiCreationResponse, ApiKeyApiCreationResponseSchema, type ApiKeyApiSelect, ApiKeyApiSelectSchema, type ArtifactComponentApiInsert, ArtifactComponentApiInsertSchema, type ContextConfigApiInsert, ContextConfigApiInsertSchema, type CredentialReferenceApiInsert, CredentialReferenceApiInsertSchema, type DataComponentApiInsert, DataComponentApiInsertSchema, type ErrorResponse, ErrorResponseSchema, type ExternalAgentApiInsert, ExternalAgentApiInsertSchema, type ExternalAgentDefinition, type FullGraphDefinition, FullGraphDefinitionSchema, IdParamsSchema, type InternalAgentDefinition, ListResponseSchema, MAX_ID_LENGTH, MIN_ID_LENGTH, type ModelSettings, ModelSettingsSchema, PaginationSchema, SingleResponseSchema, type TenantParams, TenantParamsSchema, TenantProjectIdParamsSchema, TenantProjectParamsSchema, type ToolApiInsert, ToolApiInsertSchema, type ToolInsert, URL_SAFE_ID_PATTERN, generateIdFromName, resourceIdSchema };
@@ -0,0 +1,8 @@
1
+ import 'drizzle-orm';
2
+ import 'drizzle-orm/sqlite-core';
3
+ import '../utility-CgaoTJn6.cjs';
4
+ export { k as agentArtifactComponents, N as agentArtifactComponentsRelations, i as agentDataComponents, P as agentDataComponentsRelations, a as agentGraph, E as agentGraphRelations, e as agentRelations, R as agentRelationsRelations, m as agentToolRelations, H as agentToolRelationsRelations, d as agents, D as agentsRelations, r as apiKeys, G as apiKeysRelations, j as artifactComponents, M as artifactComponentsRelations, b as contextCache, C as contextCacheRelations, c as contextConfigs, B as contextConfigsRelations, n as conversations, K as conversationsRelations, u as credentialReferences, I as credentialReferencesRelations, h as dataComponents, O as dataComponentsRelations, f as externalAgents, F as externalAgentsRelations, q as ledgerArtifacts, w as ledgerArtifactsContextIdIdx, Q as ledgerArtifactsRelations, x as ledgerArtifactsTaskContextNameUnique, v as ledgerArtifactsTaskIdIdx, o as messages, L as messagesRelations, p as projects, z as projectsRelations, g as taskRelations, A as taskRelationsRelations, t as tasks, y as tasksRelations, l as tools, J as toolsRelations } from '../schema-Blsr-8V7.cjs';
5
+ import 'zod';
6
+ import 'drizzle-zod';
7
+ import '@hono/zod-openapi';
8
+ import '@modelcontextprotocol/sdk/client/streamableHttp.js';
@@ -0,0 +1,8 @@
1
+ import 'drizzle-orm';
2
+ import 'drizzle-orm/sqlite-core';
3
+ import '../utility-CgaoTJn6.js';
4
+ export { k as agentArtifactComponents, N as agentArtifactComponentsRelations, i as agentDataComponents, P as agentDataComponentsRelations, a as agentGraph, E as agentGraphRelations, e as agentRelations, R as agentRelationsRelations, m as agentToolRelations, H as agentToolRelationsRelations, d as agents, D as agentsRelations, r as apiKeys, G as apiKeysRelations, j as artifactComponents, M as artifactComponentsRelations, b as contextCache, C as contextCacheRelations, c as contextConfigs, B as contextConfigsRelations, n as conversations, K as conversationsRelations, u as credentialReferences, I as credentialReferencesRelations, h as dataComponents, O as dataComponentsRelations, f as externalAgents, F as externalAgentsRelations, q as ledgerArtifacts, w as ledgerArtifactsContextIdIdx, Q as ledgerArtifactsRelations, x as ledgerArtifactsTaskContextNameUnique, v as ledgerArtifactsTaskIdIdx, o as messages, L as messagesRelations, p as projects, z as projectsRelations, g as taskRelations, A as taskRelationsRelations, t as tasks, y as tasksRelations, l as tools, J as toolsRelations } from '../schema-CrVPiPCt.js';
5
+ import 'zod';
6
+ import 'drizzle-zod';
7
+ import '@hono/zod-openapi';
8
+ import '@modelcontextprotocol/sdk/client/streamableHttp.js';
package/dist/index.cjs CHANGED
@@ -8139,7 +8139,7 @@ var McpClient = class {
8139
8139
  if (!activeTools) return;
8140
8140
  for (const item of activeTools) {
8141
8141
  if (tools2.includes(item)) continue;
8142
- throw new Error(`[Tools] Tool ${item} not found in tools`);
8142
+ console.warn(`[Tools] Tool ${item} not found in tools`);
8143
8143
  }
8144
8144
  }
8145
8145
  async selectTools() {