@inkeep/agents-core 0.0.0-dev-20250910234950 → 0.0.0-dev-20250911002844

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.
@@ -521,7 +521,7 @@ var credentialReferences = sqliteTable(
521
521
  projectId: text("project_id").notNull(),
522
522
  id: text("id").notNull(),
523
523
  type: text("type").notNull(),
524
- // Implementation type: 'vault', 'nango', 'inmemory', etc.
524
+ // Implementation type: 'keychain', 'nango', 'memory', etc.
525
525
  credentialStoreId: text("credential_store_id").notNull(),
526
526
  // Maps to framework.getCredentialStore(id)
527
527
  retrievalParams: blob("retrieval_params", { mode: "json" }).$type(),
@@ -1,5 +1,5 @@
1
- import { agents, agentRelations, agentGraph, tasks, taskRelations, tools, conversations, messages, contextCache, dataComponents, agentDataComponents, artifactComponents, agentArtifactComponents, externalAgents, apiKeys, contextConfigs, agentToolRelations, ledgerArtifacts, projects } from './chunk-TSPWAF64.js';
2
- import { VALID_RELATION_TYPES, TOOL_STATUS_VALUES } from './chunk-BIIFENNH.js';
1
+ import { agents, agentRelations, agentGraph, tasks, taskRelations, tools, conversations, messages, contextCache, dataComponents, agentDataComponents, artifactComponents, agentArtifactComponents, externalAgents, apiKeys, contextConfigs, agentToolRelations, ledgerArtifacts, projects } from './chunk-355CYJ6K.js';
2
+ import { VALID_RELATION_TYPES, MCPTransportType, TOOL_STATUS_VALUES, CredentialStoreType, MCPServerType } from './chunk-SVGQSPW4.js';
3
3
  import { z } from '@hono/zod-openapi';
4
4
  import { createSelectSchema, createInsertSchema } from 'drizzle-zod';
5
5
 
@@ -135,10 +135,10 @@ var imageUrlSchema = z.string().optional().refine(
135
135
  }
136
136
  );
137
137
  var McpTransportConfigSchema = z.object({
138
- type: z.enum(["streamable_http", "sse"]),
138
+ type: z.enum(MCPTransportType),
139
139
  requestInit: z.record(z.string(), z.unknown()).optional(),
140
140
  eventSourceInit: z.record(z.string(), z.unknown()).optional(),
141
- reconnectionOptions: z.record(z.string(), z.unknown()).optional(),
141
+ reconnectionOptions: z.custom().optional(),
142
142
  sessionId: z.string().optional()
143
143
  });
144
144
  var ToolStatusSchema = z.enum(TOOL_STATUS_VALUES);
@@ -312,13 +312,21 @@ var CredentialReferenceInsertSchema = z.object({
312
312
  retrievalParams: z.record(z.string(), z.unknown()).nullish()
313
313
  });
314
314
  var CredentialReferenceUpdateSchema = CredentialReferenceInsertSchema.partial();
315
- var CredentialReferenceApiSelectSchema = createApiSchema(CredentialReferenceSelectSchema);
315
+ var CredentialReferenceApiSelectSchema = createApiSchema(
316
+ CredentialReferenceSelectSchema
317
+ ).extend({
318
+ type: z.enum(CredentialStoreType)
319
+ });
316
320
  var CredentialReferenceApiInsertSchema = createApiInsertSchema(
317
321
  CredentialReferenceInsertSchema
318
- );
322
+ ).extend({
323
+ type: z.enum(CredentialStoreType)
324
+ });
319
325
  var CredentialReferenceApiUpdateSchema = createApiUpdateSchema(
320
326
  CredentialReferenceUpdateSchema
321
- );
327
+ ).extend({
328
+ type: z.enum(CredentialStoreType).optional()
329
+ });
322
330
  var McpToolSchema = ToolInsertSchema.extend({
323
331
  imageUrl: imageUrlSchema,
324
332
  status: ToolStatusSchema.default("unknown"),
@@ -328,10 +336,6 @@ var McpToolSchema = ToolInsertSchema.extend({
328
336
  createdAt: z.date(),
329
337
  updatedAt: z.date()
330
338
  });
331
- var McpToolServerConfigSchema = z.object({
332
- type: z.string(),
333
- version: z.string().optional()
334
- });
335
339
  var MCPToolConfigSchema = McpToolSchema.omit({
336
340
  config: true,
337
341
  tenantId: true,
@@ -347,11 +351,9 @@ var MCPToolConfigSchema = McpToolSchema.omit({
347
351
  tenantId: z.string().optional(),
348
352
  projectId: z.string().optional(),
349
353
  description: z.string().optional(),
350
- server: McpToolServerConfigSchema.optional(),
351
354
  serverUrl: z.url(),
352
- toolName: z.string().optional(),
353
355
  activeTools: z.array(z.string()).optional(),
354
- mcpType: z.enum(["nango", "generic"]).optional(),
356
+ mcpType: z.enum(MCPServerType).optional(),
355
357
  transport: McpTransportConfigSchema.optional(),
356
358
  credential: CredentialReferenceApiInsertSchema.optional()
357
359
  });
@@ -662,4 +664,4 @@ function generateIdFromName(name) {
662
664
  return truncatedId;
663
665
  }
664
666
 
665
- export { AgentApiInsertSchema, AgentApiSelectSchema, AgentApiUpdateSchema, AgentArtifactComponentApiInsertSchema, AgentArtifactComponentApiSelectSchema, AgentArtifactComponentApiUpdateSchema, AgentArtifactComponentInsertSchema, AgentArtifactComponentSelectSchema, AgentArtifactComponentUpdateSchema, AgentDataComponentApiInsertSchema, AgentDataComponentApiSelectSchema, AgentDataComponentApiUpdateSchema, AgentDataComponentInsertSchema, AgentDataComponentSelectSchema, AgentDataComponentUpdateSchema, AgentGraphApiInsertSchema, AgentGraphApiSelectSchema, AgentGraphApiUpdateSchema, AgentGraphInsertSchema, AgentGraphSelectSchema, AgentGraphUpdateSchema, AgentInsertSchema, AgentRelationApiInsertSchema, AgentRelationApiSelectSchema, AgentRelationApiUpdateSchema, AgentRelationInsertSchema, AgentRelationQuerySchema, AgentRelationSelectSchema, AgentRelationUpdateSchema, AgentSelectSchema, AgentToolRelationApiInsertSchema, AgentToolRelationApiSelectSchema, AgentToolRelationApiUpdateSchema, AgentToolRelationInsertSchema, AgentToolRelationSelectSchema, AgentToolRelationUpdateSchema, AgentUpdateSchema, AllAgentSchema, ApiKeyApiCreationResponseSchema, ApiKeyApiInsertSchema, ApiKeyApiSelectSchema, ApiKeyApiUpdateSchema, ApiKeyInsertSchema, ApiKeySelectSchema, ApiKeyUpdateSchema, ArtifactComponentApiInsertSchema, ArtifactComponentApiSelectSchema, ArtifactComponentApiUpdateSchema, ArtifactComponentInsertSchema, ArtifactComponentSelectSchema, ArtifactComponentUpdateSchema, ContextCacheApiInsertSchema, ContextCacheApiSelectSchema, ContextCacheApiUpdateSchema, ContextCacheInsertSchema, ContextCacheSelectSchema, ContextCacheUpdateSchema, ContextConfigApiInsertSchema, ContextConfigApiSelectSchema, ContextConfigApiUpdateSchema, ContextConfigInsertSchema, ContextConfigSelectSchema, ContextConfigUpdateSchema, ConversationApiInsertSchema, ConversationApiSelectSchema, ConversationApiUpdateSchema, ConversationInsertSchema, ConversationSelectSchema, ConversationUpdateSchema, CredentialReferenceApiInsertSchema, CredentialReferenceApiSelectSchema, CredentialReferenceApiUpdateSchema, CredentialReferenceInsertSchema, CredentialReferenceSelectSchema, CredentialReferenceUpdateSchema, DataComponentApiInsertSchema, DataComponentApiSelectSchema, DataComponentApiUpdateSchema, DataComponentBaseSchema, DataComponentInsertSchema, DataComponentSelectSchema, DataComponentUpdateSchema, ErrorResponseSchema, ExistsResponseSchema, ExternalAgentApiInsertSchema, ExternalAgentApiSelectSchema, ExternalAgentApiUpdateSchema, ExternalAgentInsertSchema, ExternalAgentRelationApiInsertSchema, ExternalAgentRelationInsertSchema, ExternalAgentSelectSchema, ExternalAgentUpdateSchema, FetchConfigSchema, FetchDefinitionSchema, FullGraphAgentInsertSchema, FullGraphDefinitionSchema, HeadersScopeSchema, IdParamsSchema, LedgerArtifactApiInsertSchema, LedgerArtifactApiSelectSchema, LedgerArtifactApiUpdateSchema, LedgerArtifactInsertSchema, LedgerArtifactSelectSchema, LedgerArtifactUpdateSchema, ListResponseSchema, MAX_ID_LENGTH, MCPToolConfigSchema, MIN_ID_LENGTH, McpToolDefinitionSchema, McpToolSchema, McpToolServerConfigSchema, McpTransportConfigSchema, MessageApiInsertSchema, MessageApiSelectSchema, MessageApiUpdateSchema, MessageInsertSchema, MessageSelectSchema, MessageUpdateSchema, ModelSchema, ModelSettingsSchema, PaginationQueryParamsSchema, PaginationSchema, ProjectApiInsertSchema, ProjectApiSelectSchema, ProjectApiUpdateSchema, ProjectInsertSchema, ProjectSelectSchema, ProjectUpdateSchema, RemovedResponseSchema, SingleResponseSchema, StatusComponentSchema, StatusUpdateSchema, TaskApiInsertSchema, TaskApiSelectSchema, TaskApiUpdateSchema, TaskInsertSchema, TaskRelationApiInsertSchema, TaskRelationApiSelectSchema, TaskRelationApiUpdateSchema, TaskRelationInsertSchema, TaskRelationSelectSchema, TaskRelationUpdateSchema, TaskSelectSchema, TaskUpdateSchema, TenantIdParamsSchema, TenantParamsSchema, TenantProjectIdParamsSchema, TenantProjectParamsSchema, ToolApiInsertSchema, ToolApiSelectSchema, ToolApiUpdateSchema, ToolInsertSchema, ToolSelectSchema, ToolStatusSchema, ToolUpdateSchema, URL_SAFE_ID_PATTERN, generateIdFromName, isExternalAgent, isInternalAgent, isValidResourceId, resourceIdSchema, validateAgentRelationships, validateAndTypeGraphData, validateArtifactComponentReferences, validateDataComponentReferences, validateGraphStructure, validateToolReferences };
667
+ export { AgentApiInsertSchema, AgentApiSelectSchema, AgentApiUpdateSchema, AgentArtifactComponentApiInsertSchema, AgentArtifactComponentApiSelectSchema, AgentArtifactComponentApiUpdateSchema, AgentArtifactComponentInsertSchema, AgentArtifactComponentSelectSchema, AgentArtifactComponentUpdateSchema, AgentDataComponentApiInsertSchema, AgentDataComponentApiSelectSchema, AgentDataComponentApiUpdateSchema, AgentDataComponentInsertSchema, AgentDataComponentSelectSchema, AgentDataComponentUpdateSchema, AgentGraphApiInsertSchema, AgentGraphApiSelectSchema, AgentGraphApiUpdateSchema, AgentGraphInsertSchema, AgentGraphSelectSchema, AgentGraphUpdateSchema, AgentInsertSchema, AgentRelationApiInsertSchema, AgentRelationApiSelectSchema, AgentRelationApiUpdateSchema, AgentRelationInsertSchema, AgentRelationQuerySchema, AgentRelationSelectSchema, AgentRelationUpdateSchema, AgentSelectSchema, AgentToolRelationApiInsertSchema, AgentToolRelationApiSelectSchema, AgentToolRelationApiUpdateSchema, AgentToolRelationInsertSchema, AgentToolRelationSelectSchema, AgentToolRelationUpdateSchema, AgentUpdateSchema, AllAgentSchema, ApiKeyApiCreationResponseSchema, ApiKeyApiInsertSchema, ApiKeyApiSelectSchema, ApiKeyApiUpdateSchema, ApiKeyInsertSchema, ApiKeySelectSchema, ApiKeyUpdateSchema, ArtifactComponentApiInsertSchema, ArtifactComponentApiSelectSchema, ArtifactComponentApiUpdateSchema, ArtifactComponentInsertSchema, ArtifactComponentSelectSchema, ArtifactComponentUpdateSchema, ContextCacheApiInsertSchema, ContextCacheApiSelectSchema, ContextCacheApiUpdateSchema, ContextCacheInsertSchema, ContextCacheSelectSchema, ContextCacheUpdateSchema, ContextConfigApiInsertSchema, ContextConfigApiSelectSchema, ContextConfigApiUpdateSchema, ContextConfigInsertSchema, ContextConfigSelectSchema, ContextConfigUpdateSchema, ConversationApiInsertSchema, ConversationApiSelectSchema, ConversationApiUpdateSchema, ConversationInsertSchema, ConversationSelectSchema, ConversationUpdateSchema, CredentialReferenceApiInsertSchema, CredentialReferenceApiSelectSchema, CredentialReferenceApiUpdateSchema, CredentialReferenceInsertSchema, CredentialReferenceSelectSchema, CredentialReferenceUpdateSchema, DataComponentApiInsertSchema, DataComponentApiSelectSchema, DataComponentApiUpdateSchema, DataComponentBaseSchema, DataComponentInsertSchema, DataComponentSelectSchema, DataComponentUpdateSchema, ErrorResponseSchema, ExistsResponseSchema, ExternalAgentApiInsertSchema, ExternalAgentApiSelectSchema, ExternalAgentApiUpdateSchema, ExternalAgentInsertSchema, ExternalAgentRelationApiInsertSchema, ExternalAgentRelationInsertSchema, ExternalAgentSelectSchema, ExternalAgentUpdateSchema, FetchConfigSchema, FetchDefinitionSchema, FullGraphAgentInsertSchema, FullGraphDefinitionSchema, HeadersScopeSchema, IdParamsSchema, LedgerArtifactApiInsertSchema, LedgerArtifactApiSelectSchema, LedgerArtifactApiUpdateSchema, LedgerArtifactInsertSchema, LedgerArtifactSelectSchema, LedgerArtifactUpdateSchema, ListResponseSchema, MAX_ID_LENGTH, MCPToolConfigSchema, MIN_ID_LENGTH, McpToolDefinitionSchema, McpToolSchema, McpTransportConfigSchema, MessageApiInsertSchema, MessageApiSelectSchema, MessageApiUpdateSchema, MessageInsertSchema, MessageSelectSchema, MessageUpdateSchema, ModelSchema, ModelSettingsSchema, PaginationQueryParamsSchema, PaginationSchema, ProjectApiInsertSchema, ProjectApiSelectSchema, ProjectApiUpdateSchema, ProjectInsertSchema, ProjectSelectSchema, ProjectUpdateSchema, RemovedResponseSchema, SingleResponseSchema, StatusComponentSchema, StatusUpdateSchema, TaskApiInsertSchema, TaskApiSelectSchema, TaskApiUpdateSchema, TaskInsertSchema, TaskRelationApiInsertSchema, TaskRelationApiSelectSchema, TaskRelationApiUpdateSchema, TaskRelationInsertSchema, TaskRelationSelectSchema, TaskRelationUpdateSchema, TaskSelectSchema, TaskUpdateSchema, TenantIdParamsSchema, TenantParamsSchema, TenantProjectIdParamsSchema, TenantProjectParamsSchema, ToolApiInsertSchema, ToolApiSelectSchema, ToolApiUpdateSchema, ToolInsertSchema, ToolSelectSchema, ToolStatusSchema, ToolUpdateSchema, URL_SAFE_ID_PATTERN, generateIdFromName, isExternalAgent, isInternalAgent, isValidResourceId, resourceIdSchema, validateAgentRelationships, validateAndTypeGraphData, validateArtifactComponentReferences, validateDataComponentReferences, validateGraphStructure, validateToolReferences };
@@ -0,0 +1,24 @@
1
+ // src/types/utility.ts
2
+ var TOOL_STATUS_VALUES = [
3
+ "healthy",
4
+ "unhealthy",
5
+ "unknown",
6
+ "disabled",
7
+ "needs_auth"
8
+ ];
9
+ var VALID_RELATION_TYPES = ["transfer", "delegate"];
10
+ var MCPTransportType = {
11
+ streamableHttp: "streamable_http",
12
+ sse: "sse"
13
+ };
14
+ var MCPServerType = {
15
+ nango: "nango",
16
+ generic: "generic"
17
+ };
18
+ var CredentialStoreType = {
19
+ memory: "memory",
20
+ keychain: "keychain",
21
+ nango: "nango"
22
+ };
23
+
24
+ export { CredentialStoreType, MCPServerType, MCPTransportType, TOOL_STATUS_VALUES, VALID_RELATION_TYPES };
@@ -2,6 +2,19 @@
2
2
 
3
3
  var zod = require('zod');
4
4
 
5
+ // src/client-exports.ts
6
+
7
+ // src/types/utility.ts
8
+ var MCPTransportType = {
9
+ streamableHttp: "streamable_http",
10
+ sse: "sse"
11
+ };
12
+ var CredentialStoreType = {
13
+ memory: "memory",
14
+ keychain: "keychain",
15
+ nango: "nango"
16
+ };
17
+
5
18
  // src/client-exports.ts
6
19
  var TenantParamsSchema = zod.z.object({
7
20
  tenantId: zod.z.string()
@@ -84,8 +97,7 @@ var CredentialReferenceApiInsertSchema = zod.z.object({
84
97
  id: zod.z.string(),
85
98
  tenantId: zod.z.string().optional(),
86
99
  projectId: zod.z.string().optional(),
87
- type: zod.z.string(),
88
- // 'memory', 'vault', 'nango', etc.
100
+ type: zod.z.enum(CredentialStoreType),
89
101
  credentialStoreId: zod.z.string(),
90
102
  retrievalParams: zod.z.record(zod.z.string(), zod.z.unknown()).nullish()
91
103
  });
@@ -212,6 +224,7 @@ exports.ApiKeyApiSelectSchema = ApiKeyApiSelectSchema;
212
224
  exports.ArtifactComponentApiInsertSchema = ArtifactComponentApiInsertSchema;
213
225
  exports.ContextConfigApiInsertSchema = ContextConfigApiInsertSchema;
214
226
  exports.CredentialReferenceApiInsertSchema = CredentialReferenceApiInsertSchema;
227
+ exports.CredentialStoreType = CredentialStoreType;
215
228
  exports.DataComponentApiInsertSchema = DataComponentApiInsertSchema;
216
229
  exports.ErrorResponseSchema = ErrorResponseSchema;
217
230
  exports.ExternalAgentApiInsertSchema = ExternalAgentApiInsertSchema;
@@ -219,6 +232,7 @@ exports.FullGraphDefinitionSchema = FullGraphDefinitionSchema;
219
232
  exports.IdParamsSchema = IdParamsSchema;
220
233
  exports.ListResponseSchema = ListResponseSchema;
221
234
  exports.MAX_ID_LENGTH = MAX_ID_LENGTH;
235
+ exports.MCPTransportType = MCPTransportType;
222
236
  exports.MIN_ID_LENGTH = MIN_ID_LENGTH;
223
237
  exports.ModelSettingsSchema = ModelSettingsSchema;
224
238
  exports.PaginationSchema = PaginationSchema;
@@ -1,4 +1,9 @@
1
1
  import { z } from 'zod';
2
+ export { C as CredentialStoreType, M as MCPTransportType } from './entities-BL89ULjV.cjs';
3
+ import 'drizzle-zod';
4
+ import 'drizzle-orm/sqlite-core';
5
+ import '@hono/zod-openapi';
6
+ import '@modelcontextprotocol/sdk/client/streamableHttp.js';
2
7
 
3
8
  /**
4
9
  * Client-Safe Schema Exports
@@ -69,8 +74,8 @@ declare const AgentApiInsertSchema: z.ZodObject<{
69
74
  canTransferTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
70
75
  canDelegateTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
71
76
  type: z.ZodOptional<z.ZodEnum<{
72
- internal: "internal";
73
77
  external: "external";
78
+ internal: "internal";
74
79
  }>>;
75
80
  }, z.core.$strip>;
76
81
  declare const ToolApiInsertSchema: z.ZodObject<{
@@ -121,7 +126,11 @@ declare const CredentialReferenceApiInsertSchema: z.ZodObject<{
121
126
  id: z.ZodString;
122
127
  tenantId: z.ZodOptional<z.ZodString>;
123
128
  projectId: z.ZodOptional<z.ZodString>;
124
- type: z.ZodString;
129
+ type: z.ZodEnum<{
130
+ readonly memory: "memory";
131
+ readonly keychain: "keychain";
132
+ readonly nango: "nango";
133
+ }>;
125
134
  credentialStoreId: z.ZodString;
126
135
  retrievalParams: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
127
136
  }, z.core.$strip>;
@@ -180,8 +189,8 @@ declare const FullGraphDefinitionSchema: z.ZodObject<{
180
189
  canTransferTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
181
190
  canDelegateTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
182
191
  type: z.ZodOptional<z.ZodEnum<{
183
- internal: "internal";
184
192
  external: "external";
193
+ internal: "internal";
185
194
  }>>;
186
195
  models: z.ZodOptional<z.ZodObject<{
187
196
  base: z.ZodOptional<z.ZodObject<{
@@ -219,7 +228,11 @@ declare const FullGraphDefinitionSchema: z.ZodObject<{
219
228
  id: z.ZodString;
220
229
  tenantId: z.ZodOptional<z.ZodString>;
221
230
  projectId: z.ZodOptional<z.ZodString>;
222
- type: z.ZodString;
231
+ type: z.ZodEnum<{
232
+ readonly memory: "memory";
233
+ readonly keychain: "keychain";
234
+ readonly nango: "nango";
235
+ }>;
223
236
  credentialStoreId: z.ZodString;
224
237
  retrievalParams: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
225
238
  }, z.core.$strip>>>;
@@ -1,4 +1,9 @@
1
1
  import { z } from 'zod';
2
+ export { C as CredentialStoreType, M as MCPTransportType } from './entities-BL89ULjV.js';
3
+ import 'drizzle-zod';
4
+ import 'drizzle-orm/sqlite-core';
5
+ import '@hono/zod-openapi';
6
+ import '@modelcontextprotocol/sdk/client/streamableHttp.js';
2
7
 
3
8
  /**
4
9
  * Client-Safe Schema Exports
@@ -69,8 +74,8 @@ declare const AgentApiInsertSchema: z.ZodObject<{
69
74
  canTransferTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
70
75
  canDelegateTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
71
76
  type: z.ZodOptional<z.ZodEnum<{
72
- internal: "internal";
73
77
  external: "external";
78
+ internal: "internal";
74
79
  }>>;
75
80
  }, z.core.$strip>;
76
81
  declare const ToolApiInsertSchema: z.ZodObject<{
@@ -121,7 +126,11 @@ declare const CredentialReferenceApiInsertSchema: z.ZodObject<{
121
126
  id: z.ZodString;
122
127
  tenantId: z.ZodOptional<z.ZodString>;
123
128
  projectId: z.ZodOptional<z.ZodString>;
124
- type: z.ZodString;
129
+ type: z.ZodEnum<{
130
+ readonly memory: "memory";
131
+ readonly keychain: "keychain";
132
+ readonly nango: "nango";
133
+ }>;
125
134
  credentialStoreId: z.ZodString;
126
135
  retrievalParams: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
127
136
  }, z.core.$strip>;
@@ -180,8 +189,8 @@ declare const FullGraphDefinitionSchema: z.ZodObject<{
180
189
  canTransferTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
181
190
  canDelegateTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
182
191
  type: z.ZodOptional<z.ZodEnum<{
183
- internal: "internal";
184
192
  external: "external";
193
+ internal: "internal";
185
194
  }>>;
186
195
  models: z.ZodOptional<z.ZodObject<{
187
196
  base: z.ZodOptional<z.ZodObject<{
@@ -219,7 +228,11 @@ declare const FullGraphDefinitionSchema: z.ZodObject<{
219
228
  id: z.ZodString;
220
229
  tenantId: z.ZodOptional<z.ZodString>;
221
230
  projectId: z.ZodOptional<z.ZodString>;
222
- type: z.ZodString;
231
+ type: z.ZodEnum<{
232
+ readonly memory: "memory";
233
+ readonly keychain: "keychain";
234
+ readonly nango: "nango";
235
+ }>;
223
236
  credentialStoreId: z.ZodString;
224
237
  retrievalParams: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
225
238
  }, z.core.$strip>>>;
@@ -1,3 +1,5 @@
1
+ import { CredentialStoreType } from './chunk-SVGQSPW4.js';
2
+ export { CredentialStoreType, MCPTransportType } from './chunk-SVGQSPW4.js';
1
3
  import { z } from 'zod';
2
4
 
3
5
  var TenantParamsSchema = z.object({
@@ -81,8 +83,7 @@ var CredentialReferenceApiInsertSchema = z.object({
81
83
  id: z.string(),
82
84
  tenantId: z.string().optional(),
83
85
  projectId: z.string().optional(),
84
- type: z.string(),
85
- // 'memory', 'vault', 'nango', etc.
86
+ type: z.enum(CredentialStoreType),
86
87
  credentialStoreId: z.string(),
87
88
  retrievalParams: z.record(z.string(), z.unknown()).nullish()
88
89
  });
@@ -479,7 +479,7 @@ var credentialReferences = sqliteCore.sqliteTable(
479
479
  projectId: sqliteCore.text("project_id").notNull(),
480
480
  id: sqliteCore.text("id").notNull(),
481
481
  type: sqliteCore.text("type").notNull(),
482
- // Implementation type: 'vault', 'nango', 'inmemory', etc.
482
+ // Implementation type: 'keychain', 'nango', 'memory', etc.
483
483
  credentialStoreId: sqliteCore.text("credential_store_id").notNull(),
484
484
  // Maps to framework.getCredentialStore(id)
485
485
  retrievalParams: sqliteCore.blob("retrieval_params", { mode: "json" }).$type(),
@@ -1,7 +1,8 @@
1
1
  import 'drizzle-orm';
2
2
  import 'drizzle-orm/sqlite-core';
3
- import '../utility-D2Lb-YAS.cjs';
4
- export { k as agentArtifactComponents, N as agentArtifactComponentsRelations, i as agentDataComponents, f as agentGraph, E as agentGraphRelations, d as agentRelations, O as agentRelationsRelations, m as agentToolRelations, H as agentToolRelationsRelations, b as agents, D as agentsRelations, r as apiKeys, G as apiKeysRelations, j as artifactComponents, M as artifactComponentsRelations, a 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, e as externalAgents, F as externalAgentsRelations, q as ledgerArtifacts, w as ledgerArtifactsContextIdIdx, 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-E0ulMd3k.cjs';
3
+ import '../entities-BL89ULjV.cjs';
4
+ export { k as agentArtifactComponents, N as agentArtifactComponentsRelations, i as agentDataComponents, f as agentGraph, E as agentGraphRelations, d as agentRelations, O as agentRelationsRelations, m as agentToolRelations, H as agentToolRelationsRelations, b as agents, D as agentsRelations, r as apiKeys, G as apiKeysRelations, j as artifactComponents, M as artifactComponentsRelations, a 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, e as externalAgents, F as externalAgentsRelations, q as ledgerArtifacts, w as ledgerArtifactsContextIdIdx, 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-DymJrcpV.cjs';
5
5
  import 'zod';
6
6
  import 'drizzle-zod';
7
7
  import '@hono/zod-openapi';
8
+ import '@modelcontextprotocol/sdk/client/streamableHttp.js';
@@ -1,7 +1,8 @@
1
1
  import 'drizzle-orm';
2
2
  import 'drizzle-orm/sqlite-core';
3
- import '../utility-D2Lb-YAS.js';
4
- export { k as agentArtifactComponents, N as agentArtifactComponentsRelations, i as agentDataComponents, f as agentGraph, E as agentGraphRelations, d as agentRelations, O as agentRelationsRelations, m as agentToolRelations, H as agentToolRelationsRelations, b as agents, D as agentsRelations, r as apiKeys, G as apiKeysRelations, j as artifactComponents, M as artifactComponentsRelations, a 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, e as externalAgents, F as externalAgentsRelations, q as ledgerArtifacts, w as ledgerArtifactsContextIdIdx, 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-B5YbTpz8.js';
3
+ import '../entities-BL89ULjV.js';
4
+ export { k as agentArtifactComponents, N as agentArtifactComponentsRelations, i as agentDataComponents, f as agentGraph, E as agentGraphRelations, d as agentRelations, O as agentRelationsRelations, m as agentToolRelations, H as agentToolRelationsRelations, b as agents, D as agentsRelations, r as apiKeys, G as apiKeysRelations, j as artifactComponents, M as artifactComponentsRelations, a 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, e as externalAgents, F as externalAgentsRelations, q as ledgerArtifacts, w as ledgerArtifactsContextIdIdx, 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-Cpsa3ZoL.js';
5
5
  import 'zod';
6
6
  import 'drizzle-zod';
7
7
  import '@hono/zod-openapi';
8
+ import '@modelcontextprotocol/sdk/client/streamableHttp.js';
package/dist/db/schema.js CHANGED
@@ -1 +1 @@
1
- export { agentArtifactComponents, agentArtifactComponentsRelations, agentDataComponents, agentGraph, agentGraphRelations, agentRelations, agentRelationsRelations, agentToolRelations, agentToolRelationsRelations, agents, agentsRelations, apiKeys, apiKeysRelations, artifactComponents, artifactComponentsRelations, contextCache, contextCacheRelations, contextConfigs, contextConfigsRelations, conversations, conversationsRelations, credentialReferences, credentialReferencesRelations, dataComponents, externalAgents, externalAgentsRelations, ledgerArtifacts, ledgerArtifactsContextIdIdx, ledgerArtifactsTaskContextNameUnique, ledgerArtifactsTaskIdIdx, messages, messagesRelations, projects, projectsRelations, taskRelations, taskRelationsRelations, tasks, tasksRelations, tools, toolsRelations } from '../chunk-TSPWAF64.js';
1
+ export { agentArtifactComponents, agentArtifactComponentsRelations, agentDataComponents, agentGraph, agentGraphRelations, agentRelations, agentRelationsRelations, agentToolRelations, agentToolRelationsRelations, agents, agentsRelations, apiKeys, apiKeysRelations, artifactComponents, artifactComponentsRelations, contextCache, contextCacheRelations, contextConfigs, contextConfigsRelations, conversations, conversationsRelations, credentialReferences, credentialReferencesRelations, dataComponents, externalAgents, externalAgentsRelations, ledgerArtifacts, ledgerArtifactsContextIdIdx, ledgerArtifactsTaskContextNameUnique, ledgerArtifactsTaskIdIdx, messages, messagesRelations, projects, projectsRelations, taskRelations, taskRelationsRelations, tasks, tasksRelations, tools, toolsRelations } from '../chunk-355CYJ6K.js';