@inkeep/agents-core 0.14.16 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/dist/{chunk-SPN4Y2C3.js → chunk-L53XWAYG.js} +1 -1
  2. package/dist/chunk-R2EERZSW.js +223 -0
  3. package/dist/{chunk-423XYZ6F.js → chunk-TO2HNKGP.js} +176 -13
  4. package/dist/{chunk-AHSEMW6N.js → chunk-VPJ6Z5QZ.js} +43 -7
  5. package/dist/client-exports.cjs +224 -24
  6. package/dist/client-exports.d.cts +12 -8
  7. package/dist/client-exports.d.ts +12 -8
  8. package/dist/client-exports.js +4 -10
  9. package/dist/db/schema.cjs +42 -6
  10. package/dist/db/schema.d.cts +2 -2
  11. package/dist/db/schema.d.ts +2 -2
  12. package/dist/db/schema.js +1 -1
  13. package/dist/index.cjs +3310 -2859
  14. package/dist/index.d.cts +148 -97
  15. package/dist/index.d.ts +148 -97
  16. package/dist/index.js +2589 -2574
  17. package/dist/props-validation-BMR1qNiy.d.cts +15 -0
  18. package/dist/props-validation-BMR1qNiy.d.ts +15 -0
  19. package/dist/{schema-NJiTVcbN.d.ts → schema-BQk_FMBV.d.ts} +253 -64
  20. package/dist/{schema-Mdt3_61i.d.cts → schema-Ct2NlO81.d.cts} +253 -64
  21. package/dist/types/index.d.cts +2 -2
  22. package/dist/types/index.d.ts +2 -2
  23. package/dist/{utility-CfjwCzr_.d.cts → utility-s9c5CVOe.d.cts} +708 -167
  24. package/dist/{utility-CfjwCzr_.d.ts → utility-s9c5CVOe.d.ts} +708 -167
  25. package/dist/utils/schema-conversion.cjs +236 -0
  26. package/dist/utils/schema-conversion.d.cts +26 -0
  27. package/dist/utils/schema-conversion.d.ts +26 -0
  28. package/dist/utils/schema-conversion.js +1 -0
  29. package/dist/validation/index.cjs +227 -17
  30. package/dist/validation/index.d.cts +3 -2
  31. package/dist/validation/index.d.ts +3 -2
  32. package/dist/validation/index.js +2 -2
  33. package/drizzle/0002_bumpy_romulus.sql +3 -0
  34. package/drizzle/0003_soft_forgotten_one.sql +39 -0
  35. package/drizzle/0004_melted_omega_flight.sql +3 -0
  36. package/drizzle/meta/0002_snapshot.json +2428 -0
  37. package/drizzle/meta/0003_snapshot.json +2559 -0
  38. package/drizzle/meta/0004_snapshot.json +2547 -0
  39. package/drizzle/meta/_journal.json +21 -0
  40. package/package.json +1 -1
package/dist/index.d.cts CHANGED
@@ -1,11 +1,11 @@
1
1
  import { z } from 'zod';
2
- import { n as CredentialReferenceApiInsert, o as ContextConfigSelect, h as ContextFetchDefinition, g as MCPTransportType, p as MCPToolConfig, q as GraphScopeConfig, C as ConversationHistoryConfig, r as ProjectScopeConfig, s as PaginationConfig, t as AgentGraphInsert, u as AgentGraphUpdate, v as FullGraphDefinition, w as AgentScopeConfig, x as AgentRelationInsert, E as ExternalAgentRelationInsert, y as AgentRelationUpdate, z as AgentToolRelationUpdate, i as ToolMcpConfig, j as ToolServerCapabilities, B as AgentInsert, D as AgentUpdate, H as AgentSelect, I as ApiKeySelect, J as ApiKeyInsert, K as ApiKeyUpdate, L as CreateApiKeyParams, N as ApiKeyCreateResult, O as ArtifactComponentSelect, Q as ArtifactComponentInsert, R as ArtifactComponentUpdate, U as ContextCacheSelect, V as ContextCacheInsert, W as ContextConfigInsert, X as ContextConfigUpdate, Y as ConversationSelect, Z as ConversationInsert, k as ConversationMetadata, _ as ConversationUpdate, $ as CredentialReferenceSelect, a0 as ToolSelect, a1 as CredentialReferenceInsert, a2 as CredentialReferenceUpdate, a3 as DataComponentSelect, a4 as DataComponentInsert, a5 as DataComponentUpdate, a6 as ExternalAgentInsert, a7 as ExternalAgentSelect, a8 as ExternalAgentUpdate, a9 as Artifact, aa as LedgerArtifactSelect, m as MessageMetadata, l as MessageContent, ab as MessageVisibility, ac as MessageInsert, ad as MessageUpdate, ae as FullProjectDefinition, af as ProjectInfo, ag as ProjectSelect, ah as PaginationResult, ai as ProjectResourceCounts, aj as ProjectInsert, ak as ProjectUpdate, al as TaskInsert, T as TaskMetadataConfig, am as TaskSelect, an as McpTool, ao as ToolInsert, ap as ToolUpdate, f as CredentialStoreType, aq as ExecutionContext } from './utility-CfjwCzr_.cjs';
3
- export { b2 as A2AError, by as A2ARequest, bz as A2AResponse, aD as APIKeySecurityScheme, bD as AgentApiInsert, dt as AgentApiInsertSchema, bC as AgentApiSelect, ds as AgentApiSelectSchema, bE as AgentApiUpdate, du as AgentApiUpdateSchema, cw as AgentArtifactComponentApiInsert, eE as AgentArtifactComponentApiInsertSchema, cv as AgentArtifactComponentApiSelect, eD as AgentArtifactComponentApiSelectSchema, cx as AgentArtifactComponentApiUpdate, eF as AgentArtifactComponentApiUpdateSchema, ct as AgentArtifactComponentInsert, eB as AgentArtifactComponentInsertSchema, cs as AgentArtifactComponentSelect, eA as AgentArtifactComponentSelectSchema, cu as AgentArtifactComponentUpdate, eC as AgentArtifactComponentUpdateSchema, az as AgentCapabilities, aN as AgentCard, d8 as AgentConversationHistoryConfig, cn as AgentDataComponentApiInsert, es as AgentDataComponentApiInsertSchema, cm as AgentDataComponentApiSelect, er as AgentDataComponentApiSelectSchema, co as AgentDataComponentApiUpdate, et as AgentDataComponentApiUpdateSchema, ck as AgentDataComponentInsert, ep as AgentDataComponentInsertSchema, cj as AgentDataComponentSelect, eo as AgentDataComponentSelectSchema, cl as AgentDataComponentUpdate, eq as AgentDataComponentUpdateSchema, cV as AgentDefinition, bN as AgentGraphApiInsert, dI as AgentGraphApiInsertSchema, bM as AgentGraphApiSelect, dH as AgentGraphApiSelectSchema, bO as AgentGraphApiUpdate, dJ as AgentGraphApiUpdateSchema, dF as AgentGraphInsertSchema, bL as AgentGraphSelect, dE as AgentGraphSelectSchema, dG as AgentGraphUpdateSchema, dq as AgentInsertSchema, aA as AgentProvider, bH as AgentRelationApiInsert, dz as AgentRelationApiInsertSchema, bG as AgentRelationApiSelect, dy as AgentRelationApiSelectSchema, bI as AgentRelationApiUpdate, dA as AgentRelationApiUpdateSchema, dw as AgentRelationInsertSchema, bJ as AgentRelationQuery, dB as AgentRelationQuerySchema, bF as AgentRelationSelect, dv as AgentRelationSelectSchema, dx as AgentRelationUpdateSchema, dp as AgentSelectSchema, aB as AgentSkill, d as AgentStopWhen, a as AgentStopWhenSchema, cL as AgentToolRelationApiInsert, ff as AgentToolRelationApiInsertSchema, cK as AgentToolRelationApiSelect, fe as AgentToolRelationApiSelectSchema, cM as AgentToolRelationApiUpdate, fg as AgentToolRelationApiUpdateSchema, cJ as AgentToolRelationInsert, fc as AgentToolRelationInsertSchema, cI as AgentToolRelationSelect, fb as AgentToolRelationSelectSchema, fd as AgentToolRelationUpdateSchema, dr as AgentUpdateSchema, eM as AllAgentSchema, cB as AllAgentSelect, cF as ApiKeyApiCreationResponse, eR as ApiKeyApiCreationResponseSchema, cD as ApiKeyApiInsert, eS as ApiKeyApiInsertSchema, cC as ApiKeyApiSelect, eQ as ApiKeyApiSelectSchema, cE as ApiKeyApiUpdate, A as ApiKeyApiUpdateSchema, eO as ApiKeyInsertSchema, eN as ApiKeySelectSchema, eP as ApiKeyUpdateSchema, cq as ArtifactComponentApiInsert, ey as ArtifactComponentApiInsertSchema, cp as ArtifactComponentApiSelect, ex as ArtifactComponentApiSelectSchema, cr as ArtifactComponentApiUpdate, ez as ArtifactComponentApiUpdateSchema, ev as ArtifactComponentInsertSchema, eu as ArtifactComponentSelectSchema, ew as ArtifactComponentUpdateSchema, aG as AuthorizationCodeOAuthFlow, cT as CanUseItem, fp as CanUseItemSchema, bi as CancelTaskRequest, bt as CancelTaskResponse, bs as CancelTaskSuccessResponse, aH as ClientCredentialsOAuthFlow, b0 as ContentTypeNotSupportedError, ce as ContextCacheApiInsert, ef as ContextCacheApiInsertSchema, cd as ContextCacheApiSelect, ee as ContextCacheApiSelectSchema, cf as ContextCacheApiUpdate, eg as ContextCacheApiUpdateSchema, d9 as ContextCacheEntry, ec as ContextCacheInsertSchema, eb as ContextCacheSelectSchema, cc as ContextCacheUpdate, ed as ContextCacheUpdateSchema, c8 as ContextConfigApiInsert, f9 as ContextConfigApiInsertSchema, c7 as ContextConfigApiSelect, f8 as ContextConfigApiSelectSchema, c9 as ContextConfigApiUpdate, fa as ContextConfigApiUpdateSchema, f6 as ContextConfigInsertSchema, f5 as ContextConfigSelectSchema, f7 as ContextConfigUpdateSchema, c1 as ConversationApiInsert, e3 as ConversationApiInsertSchema, c0 as ConversationApiSelect, e2 as ConversationApiSelectSchema, c2 as ConversationApiUpdate, e4 as ConversationApiUpdateSchema, e0 as ConversationInsertSchema, d7 as ConversationScopeOptions, d$ as ConversationSelectSchema, e1 as ConversationUpdateSchema, eX as CredentialReferenceApiInsertSchema, cG as CredentialReferenceApiSelect, eW as CredentialReferenceApiSelectSchema, cH as CredentialReferenceApiUpdate, eY as CredentialReferenceApiUpdateSchema, eU as CredentialReferenceInsertSchema, eT as CredentialReferenceSelectSchema, eV as CredentialReferenceUpdateSchema, ch as DataComponentApiInsert, em as DataComponentApiInsertSchema, cg as DataComponentApiSelect, el as DataComponentApiSelectSchema, ci as DataComponentApiUpdate, en as DataComponentApiUpdateSchema, ej as DataComponentBaseSchema, ei as DataComponentInsertSchema, eh as DataComponentSelectSchema, ek as DataComponentUpdateSchema, ax as DataPart, fv as ErrorResponseSchema, fw as ExistsResponseSchema, cz as ExternalAgentApiInsert, eK as ExternalAgentApiInsertSchema, cy as ExternalAgentApiSelect, eJ as ExternalAgentApiSelectSchema, cA as ExternalAgentApiUpdate, eL as ExternalAgentApiUpdateSchema, eH as ExternalAgentInsertSchema, bK as ExternalAgentRelationApiInsert, dD as ExternalAgentRelationApiInsertSchema, dC as ExternalAgentRelationInsertSchema, eG as ExternalAgentSelectSchema, eI as ExternalAgentUpdateSchema, cb as FetchConfig, f3 as FetchConfigSchema, ca as FetchDefinition, f4 as FetchDefinitionSchema, at as FileBase, aw as FilePart, au as FileWithBytes, av as FileWithUri, cS as FullGraphAgentInsert, F as FullGraphAgentInsertSchema, fq as FullGraphDefinitionSchema, fE as FullProjectDefinitionSchema, bk as GetTaskPushNotificationConfigRequest, bx as GetTaskPushNotificationConfigResponse, bw as GetTaskPushNotificationConfigSuccessResponse, bh as GetTaskRequest, br as GetTaskResponse, bq as GetTaskSuccessResponse, c as GraphStopWhen, G as GraphStopWhenSchema, fr as GraphWithinContextOfProjectSchema, aE as HTTPAuthSecurityScheme, fF as HeadersScopeSchema, fM as IdParamsSchema, aI as ImplicitOAuthFlow, cU as InternalAgentDefinition, aX as InternalError, b1 as InvalidAgentResponseError, aW as InvalidParamsError, aU as InvalidRequestError, aT as JSONParseError, bc as JSONRPCError, be as JSONRPCErrorResponse, ba as JSONRPCMessage, bb as JSONRPCRequest, bd as JSONRPCResult, cQ as LedgerArtifactApiInsert, fl as LedgerArtifactApiInsertSchema, cP as LedgerArtifactApiSelect, fk as LedgerArtifactApiSelectSchema, cR as LedgerArtifactApiUpdate, fm as LedgerArtifactApiUpdateSchema, cN as LedgerArtifactInsert, fi as LedgerArtifactInsertSchema, fh as LedgerArtifactSelectSchema, cO as LedgerArtifactUpdate, fj as LedgerArtifactUpdateSchema, ft as ListResponseSchema, dj as MAX_ID_LENGTH, dh as MCPServerType, e_ as MCPToolConfigSchema, di as MIN_ID_LENGTH, da as McpAuthType, db as McpServerAuth, dd as McpServerCapabilities, de as McpToolDefinition, dY as McpToolDefinitionSchema, eZ as McpToolSchema, dc as McpTransportConfig, dW as McpTransportConfigSchema, aO as Message, c5 as MessageApiInsert, e9 as MessageApiInsertSchema, c4 as MessageApiSelect, e8 as MessageApiSelectSchema, c6 as MessageApiUpdate, ea as MessageApiUpdateSchema, e6 as MessageInsertSchema, d2 as MessageMode, bA as MessagePart, d1 as MessageRole, c3 as MessageSelect, e5 as MessageSelectSchema, b8 as MessageSendConfiguration, b9 as MessageSendParams, d0 as MessageType, e7 as MessageUpdateSchema, aV as MethodNotFoundError, dm as ModelSchema, e as ModelSettings, M as ModelSettingsSchema, d3 as Models, aK as OAuth2SecurityScheme, aF as OAuthFlows, aL as OpenIdConnectSecurityScheme, c_ as Pagination, fN as PaginationQueryParamsSchema, fs as PaginationSchema, P as Part, ar as PartBase, aJ as PasswordOAuthFlow, cY as ProjectApiInsert, fC as ProjectApiInsertSchema, cX as ProjectApiSelect, fB as ProjectApiSelectSchema, cZ as ProjectApiUpdate, fD as ProjectApiUpdateSchema, fz as ProjectInsertSchema, dn as ProjectModelSchema, d4 as ProjectModels, fy as ProjectSelectSchema, fA as ProjectUpdateSchema, b3 as PushNotificationAuthenticationInfo, b4 as PushNotificationConfig, a_ as PushNotificationNotSupportedError, fx as RemovedResponseSchema, aM as SecurityScheme, aC as SecuritySchemeBase, bf as SendMessageRequest, bn as SendMessageResponse, bm as SendMessageSuccessResponse, bg as SendStreamingMessageRequest, bp as SendStreamingMessageResponse, bo as SendStreamingMessageSuccessResponse, bj as SetTaskPushNotificationConfigRequest, bv as SetTaskPushNotificationConfigResponse, bu as SetTaskPushNotificationConfigSuccessResponse, fu as SingleResponseSchema, d6 as StatusComponent, fn as StatusComponentSchema, fo as StatusUpdateSchema, d5 as StatusUpdateSettings, b as StopWhen, S as StopWhenSchema, c$ as SummaryEvent, df as TOOL_STATUS_VALUES, aQ as Task, bR as TaskApiInsert, dO as TaskApiInsertSchema, bQ as TaskApiSelect, dN as TaskApiSelectSchema, bS as TaskApiUpdate, dP as TaskApiUpdateSchema, bB as TaskArtifact, aS as TaskArtifactUpdateEvent, b6 as TaskIdParams, dL as TaskInsertSchema, aZ as TaskNotCancelableError, aY as TaskNotFoundError, b5 as TaskPushNotificationConfig, b7 as TaskQueryParams, bX as TaskRelationApiInsert, dU as TaskRelationApiInsertSchema, bW as TaskRelationApiSelect, dT as TaskRelationApiSelectSchema, bY as TaskRelationApiUpdate, dV as TaskRelationApiUpdateSchema, bU as TaskRelationInsert, dR as TaskRelationInsertSchema, bT as TaskRelationSelect, dQ as TaskRelationSelectSchema, bV as TaskRelationUpdate, dS as TaskRelationUpdateSchema, bl as TaskResubscriptionRequest, dK as TaskSelectSchema, ay as TaskState, aP as TaskStatus, aR as TaskStatusUpdateEvent, bP as TaskUpdate, dM as TaskUpdateSchema, fL as TenantIdParamsSchema, fG as TenantParamsSchema, fJ as TenantProjectGraphIdParamsSchema, fI as TenantProjectGraphParamsSchema, fK as TenantProjectIdParamsSchema, fH as TenantProjectParamsSchema, as as TextPart, b_ as ToolApiInsert, f1 as ToolApiInsertSchema, bZ as ToolApiSelect, f0 as ToolApiSelectSchema, b$ as ToolApiUpdate, f2 as ToolApiUpdateSchema, cW as ToolDefinition, d_ as ToolInsertSchema, dZ as ToolSelectSchema, dX as ToolStatusSchema, e$ as ToolUpdateSchema, dk as URL_SAFE_ID_PATTERN, a$ as UnsupportedOperationError, dg as VALID_RELATION_TYPES, dl as resourceIdSchema } from './utility-CfjwCzr_.cjs';
2
+ import { r as CredentialReferenceApiInsert, s as ContextConfigSelect, l as ContextFetchDefinition, h as MCPTransportType, t as MCPToolConfig, u as GraphScopeConfig, C as ConversationHistoryConfig, v as ProjectScopeConfig, w as PaginationConfig, x as AgentGraphInsert, y as AgentGraphUpdate, z as FullGraphDefinition, B as AgentScopeConfig, D as AgentRelationInsert, E as ExternalAgentRelationInsert, H as AgentRelationUpdate, I as AgentToolRelationUpdate, m as ToolMcpConfig, n as ToolServerCapabilities, J as AgentInsert, K as AgentUpdate, L as AgentSelect, N as ApiKeySelect, O as ApiKeyInsert, Q as ApiKeyUpdate, R as CreateApiKeyParams, U as ApiKeyCreateResult, V as ArtifactComponentSelect, W as ArtifactComponentInsert, X as ArtifactComponentUpdate, Y as ContextCacheSelect, Z as ContextCacheInsert, _ as ContextConfigInsert, $ as ContextConfigUpdate, a0 as ConversationSelect, a1 as ConversationInsert, o as ConversationMetadata, a2 as ConversationUpdate, a3 as CredentialReferenceSelect, a4 as ToolSelect, a5 as CredentialReferenceInsert, a6 as CredentialReferenceUpdate, a7 as DataComponentSelect, a8 as DataComponentInsert, a9 as DataComponentUpdate, aa as ExternalAgentInsert, ab as ExternalAgentSelect, ac as ExternalAgentUpdate, ad as FunctionApiInsert, ae as Artifact, af as LedgerArtifactSelect, q as MessageMetadata, p as MessageContent, ag as MessageVisibility, ah as MessageInsert, ai as MessageUpdate, aj as FullProjectDefinition, ak as ProjectInfo, al as ProjectSelect, am as PaginationResult, an as ProjectResourceCounts, ao as ProjectInsert, ap as ProjectUpdate, aq as TaskInsert, T as TaskMetadataConfig, ar as TaskSelect, as as McpTool, at as ToolInsert, au as ToolUpdate, g as CredentialStoreType, av as ExecutionContext } from './utility-s9c5CVOe.cjs';
3
+ export { b7 as A2AError, bD as A2ARequest, bE as A2AResponse, aI as APIKeySecurityScheme, bI as AgentApiInsert, dG as AgentApiInsertSchema, bH as AgentApiSelect, dF as AgentApiSelectSchema, bJ as AgentApiUpdate, dH as AgentApiUpdateSchema, cG as AgentArtifactComponentApiInsert, eR as AgentArtifactComponentApiInsertSchema, cF as AgentArtifactComponentApiSelect, eQ as AgentArtifactComponentApiSelectSchema, cH as AgentArtifactComponentApiUpdate, eS as AgentArtifactComponentApiUpdateSchema, cD as AgentArtifactComponentInsert, eO as AgentArtifactComponentInsertSchema, cC as AgentArtifactComponentSelect, eN as AgentArtifactComponentSelectSchema, cE as AgentArtifactComponentUpdate, eP as AgentArtifactComponentUpdateSchema, aE as AgentCapabilities, aS as AgentCard, di as AgentConversationHistoryConfig, cx as AgentDataComponentApiInsert, eF as AgentDataComponentApiInsertSchema, cw as AgentDataComponentApiSelect, eE as AgentDataComponentApiSelectSchema, cy as AgentDataComponentApiUpdate, eG as AgentDataComponentApiUpdateSchema, cu as AgentDataComponentInsert, eC as AgentDataComponentInsertSchema, ct as AgentDataComponentSelect, eB as AgentDataComponentSelectSchema, cv as AgentDataComponentUpdate, eD as AgentDataComponentUpdateSchema, d3 as AgentDefinition, bS as AgentGraphApiInsert, dV as AgentGraphApiInsertSchema, bR as AgentGraphApiSelect, dU as AgentGraphApiSelectSchema, bT as AgentGraphApiUpdate, dW as AgentGraphApiUpdateSchema, dS as AgentGraphInsertSchema, bQ as AgentGraphSelect, dR as AgentGraphSelectSchema, dT as AgentGraphUpdateSchema, dD as AgentInsertSchema, aF as AgentProvider, bM as AgentRelationApiInsert, dM as AgentRelationApiInsertSchema, bL as AgentRelationApiSelect, dL as AgentRelationApiSelectSchema, bN as AgentRelationApiUpdate, dN as AgentRelationApiUpdateSchema, dJ as AgentRelationInsertSchema, bO as AgentRelationQuery, dO as AgentRelationQuerySchema, bK as AgentRelationSelect, dI as AgentRelationSelectSchema, dK as AgentRelationUpdateSchema, dC as AgentSelectSchema, aG as AgentSkill, e as AgentStopWhen, b as AgentStopWhenSchema, cV as AgentToolRelationApiInsert, fv as AgentToolRelationApiInsertSchema, cU as AgentToolRelationApiSelect, fu as AgentToolRelationApiSelectSchema, cW as AgentToolRelationApiUpdate, fw as AgentToolRelationApiUpdateSchema, cT as AgentToolRelationInsert, fs as AgentToolRelationInsertSchema, cS as AgentToolRelationSelect, fr as AgentToolRelationSelectSchema, ft as AgentToolRelationUpdateSchema, dE as AgentUpdateSchema, eZ as AllAgentSchema, cL as AllAgentSelect, cP as ApiKeyApiCreationResponse, f2 as ApiKeyApiCreationResponseSchema, cN as ApiKeyApiInsert, f3 as ApiKeyApiInsertSchema, cM as ApiKeyApiSelect, f1 as ApiKeyApiSelectSchema, cO as ApiKeyApiUpdate, A as ApiKeyApiUpdateSchema, e$ as ApiKeyInsertSchema, e_ as ApiKeySelectSchema, f0 as ApiKeyUpdateSchema, cA as ArtifactComponentApiInsert, eL as ArtifactComponentApiInsertSchema, cz as ArtifactComponentApiSelect, eK as ArtifactComponentApiSelectSchema, cB as ArtifactComponentApiUpdate, eM as ArtifactComponentApiUpdateSchema, eI as ArtifactComponentInsertSchema, eH as ArtifactComponentSelectSchema, eJ as ArtifactComponentUpdateSchema, aL as AuthorizationCodeOAuthFlow, d1 as CanUseItem, fF as CanUseItemSchema, bn as CancelTaskRequest, by as CancelTaskResponse, bx as CancelTaskSuccessResponse, aM as ClientCredentialsOAuthFlow, b5 as ContentTypeNotSupportedError, co as ContextCacheApiInsert, es as ContextCacheApiInsertSchema, cn as ContextCacheApiSelect, er as ContextCacheApiSelectSchema, cp as ContextCacheApiUpdate, et as ContextCacheApiUpdateSchema, dj as ContextCacheEntry, ep as ContextCacheInsertSchema, eo as ContextCacheSelectSchema, cm as ContextCacheUpdate, eq as ContextCacheUpdateSchema, ci as ContextConfigApiInsert, fp as ContextConfigApiInsertSchema, ch as ContextConfigApiSelect, fo as ContextConfigApiSelectSchema, cj as ContextConfigApiUpdate, fq as ContextConfigApiUpdateSchema, fm as ContextConfigInsertSchema, fl as ContextConfigSelectSchema, fn as ContextConfigUpdateSchema, cb as ConversationApiInsert, eg as ConversationApiInsertSchema, ca as ConversationApiSelect, ef as ConversationApiSelectSchema, cc as ConversationApiUpdate, eh as ConversationApiUpdateSchema, ed as ConversationInsertSchema, dh as ConversationScopeOptions, ec as ConversationSelectSchema, ee as ConversationUpdateSchema, f8 as CredentialReferenceApiInsertSchema, cQ as CredentialReferenceApiSelect, f7 as CredentialReferenceApiSelectSchema, cR as CredentialReferenceApiUpdate, f9 as CredentialReferenceApiUpdateSchema, f5 as CredentialReferenceInsertSchema, f4 as CredentialReferenceSelectSchema, f6 as CredentialReferenceUpdateSchema, cr as DataComponentApiInsert, ez as DataComponentApiInsertSchema, cq as DataComponentApiSelect, ey as DataComponentApiSelectSchema, cs as DataComponentApiUpdate, eA as DataComponentApiUpdateSchema, ew as DataComponentBaseSchema, ev as DataComponentInsertSchema, eu as DataComponentSelectSchema, ex as DataComponentUpdateSchema, aC as DataPart, fL as ErrorResponseSchema, fM as ExistsResponseSchema, cJ as ExternalAgentApiInsert, eX as ExternalAgentApiInsertSchema, cI as ExternalAgentApiSelect, eW as ExternalAgentApiSelectSchema, cK as ExternalAgentApiUpdate, eY as ExternalAgentApiUpdateSchema, eU as ExternalAgentInsertSchema, bP as ExternalAgentRelationApiInsert, dQ as ExternalAgentRelationApiInsertSchema, dP as ExternalAgentRelationInsertSchema, eT as ExternalAgentSelectSchema, eV as ExternalAgentUpdateSchema, cl as FetchConfig, fj as FetchConfigSchema, ck as FetchDefinition, fk as FetchDefinitionSchema, ay as FileBase, aB as FilePart, az as FileWithBytes, aA as FileWithUri, d0 as FullGraphAgentInsert, a as FullGraphAgentInsertSchema, fG as FullGraphDefinitionSchema, fU as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, c8 as FunctionApiSelect, i as FunctionApiSelectSchema, c9 as FunctionApiUpdate, j as FunctionApiUpdateSchema, c6 as FunctionInsert, fh as FunctionInsertSchema, c5 as FunctionSelect, fg as FunctionSelectSchema, dB as FunctionToolConfig, dA as FunctionToolConfigSchema, c7 as FunctionUpdate, fi as FunctionUpdateSchema, bp as GetTaskPushNotificationConfigRequest, bC as GetTaskPushNotificationConfigResponse, bB as GetTaskPushNotificationConfigSuccessResponse, bm as GetTaskRequest, bw as GetTaskResponse, bv as GetTaskSuccessResponse, d as GraphStopWhen, G as GraphStopWhenSchema, fH as GraphWithinContextOfProjectSchema, aJ as HTTPAuthSecurityScheme, fV as HeadersScopeSchema, g0 as IdParamsSchema, aN as ImplicitOAuthFlow, d2 as InternalAgentDefinition, b0 as InternalError, b6 as InvalidAgentResponseError, a$ as InvalidParamsError, aZ as InvalidRequestError, aY as JSONParseError, bh as JSONRPCError, bj as JSONRPCErrorResponse, bf as JSONRPCMessage, bg as JSONRPCRequest, bi as JSONRPCResult, c_ as LedgerArtifactApiInsert, fB as LedgerArtifactApiInsertSchema, cZ as LedgerArtifactApiSelect, fA as LedgerArtifactApiSelectSchema, c$ as LedgerArtifactApiUpdate, fC as LedgerArtifactApiUpdateSchema, cX as LedgerArtifactInsert, fy as LedgerArtifactInsertSchema, fx as LedgerArtifactSelectSchema, cY as LedgerArtifactUpdate, fz as LedgerArtifactUpdateSchema, fJ as ListResponseSchema, du as MAX_ID_LENGTH, ds as MCPServerType, fb as MCPToolConfigSchema, dt as MIN_ID_LENGTH, dk as McpAuthType, dl as McpServerAuth, dn as McpServerCapabilities, dp as McpToolDefinition, e9 as McpToolDefinitionSchema, fa as McpToolSchema, dm as McpTransportConfig, e7 as McpTransportConfigSchema, aT as Message, cf as MessageApiInsert, em as MessageApiInsertSchema, ce as MessageApiSelect, el as MessageApiSelectSchema, cg as MessageApiUpdate, en as MessageApiUpdateSchema, ej as MessageInsertSchema, dc as MessageMode, bF as MessagePart, db as MessageRole, cd as MessageSelect, ei as MessageSelectSchema, bd as MessageSendConfiguration, be as MessageSendParams, da as MessageType, ek as MessageUpdateSchema, a_ as MethodNotFoundError, dx as ModelSchema, f as ModelSettings, M as ModelSettingsSchema, dd as Models, aP as OAuth2SecurityScheme, aK as OAuthFlows, aQ as OpenIdConnectSecurityScheme, d8 as Pagination, g1 as PaginationQueryParamsSchema, fI as PaginationSchema, P as Part, aw as PartBase, aO as PasswordOAuthFlow, d6 as ProjectApiInsert, fS as ProjectApiInsertSchema, d5 as ProjectApiSelect, fR as ProjectApiSelectSchema, d7 as ProjectApiUpdate, fT as ProjectApiUpdateSchema, fP as ProjectInsertSchema, dy as ProjectModelSchema, de as ProjectModels, fO as ProjectSelectSchema, fQ as ProjectUpdateSchema, b8 as PushNotificationAuthenticationInfo, b9 as PushNotificationConfig, b3 as PushNotificationNotSupportedError, fN as RemovedResponseSchema, dz as SandboxConfig, k as SandboxConfigSchema, aR as SecurityScheme, aH as SecuritySchemeBase, bk as SendMessageRequest, bs as SendMessageResponse, br as SendMessageSuccessResponse, bl as SendStreamingMessageRequest, bu as SendStreamingMessageResponse, bt as SendStreamingMessageSuccessResponse, bo as SetTaskPushNotificationConfigRequest, bA as SetTaskPushNotificationConfigResponse, bz as SetTaskPushNotificationConfigSuccessResponse, fK as SingleResponseSchema, dg as StatusComponent, fD as StatusComponentSchema, fE as StatusUpdateSchema, df as StatusUpdateSettings, c as StopWhen, S as StopWhenSchema, d9 as SummaryEvent, dq as TOOL_STATUS_VALUES, aV as Task, bW as TaskApiInsert, d$ as TaskApiInsertSchema, bV as TaskApiSelect, d_ as TaskApiSelectSchema, bX as TaskApiUpdate, e0 as TaskApiUpdateSchema, bG as TaskArtifact, aX as TaskArtifactUpdateEvent, bb as TaskIdParams, dY as TaskInsertSchema, b2 as TaskNotCancelableError, b1 as TaskNotFoundError, ba as TaskPushNotificationConfig, bc as TaskQueryParams, c0 as TaskRelationApiInsert, e5 as TaskRelationApiInsertSchema, b$ as TaskRelationApiSelect, e4 as TaskRelationApiSelectSchema, c1 as TaskRelationApiUpdate, e6 as TaskRelationApiUpdateSchema, bZ as TaskRelationInsert, e2 as TaskRelationInsertSchema, bY as TaskRelationSelect, e1 as TaskRelationSelectSchema, b_ as TaskRelationUpdate, e3 as TaskRelationUpdateSchema, bq as TaskResubscriptionRequest, dX as TaskSelectSchema, aD as TaskState, aU as TaskStatus, aW as TaskStatusUpdateEvent, bU as TaskUpdate, dZ as TaskUpdateSchema, f$ as TenantIdParamsSchema, fW as TenantParamsSchema, fZ as TenantProjectGraphIdParamsSchema, fY as TenantProjectGraphParamsSchema, f_ as TenantProjectIdParamsSchema, fX as TenantProjectParamsSchema, ax as TextPart, c3 as ToolApiInsert, fe as ToolApiInsertSchema, c2 as ToolApiSelect, fd as ToolApiSelectSchema, c4 as ToolApiUpdate, ff as ToolApiUpdateSchema, d4 as ToolDefinition, eb as ToolInsertSchema, ea as ToolSelectSchema, e8 as ToolStatusSchema, fc as ToolUpdateSchema, dv as URL_SAFE_ID_PATTERN, b4 as UnsupportedOperationError, dr as VALID_RELATION_TYPES, dw as resourceIdSchema } from './utility-s9c5CVOe.cjs';
4
4
  import { CredentialStore } from './types/index.cjs';
5
5
  export { CorsConfig, ServerConfig, ServerOptions } from './types/index.cjs';
6
6
  import { LibSQLDatabase } from 'drizzle-orm/libsql';
7
- import { s as schema } from './schema-Mdt3_61i.cjs';
8
- export { k as agentArtifactComponents, K as agentArtifactComponentsRelations, i as agentDataComponents, M as agentDataComponentsRelations, a as agentGraph, B as agentGraphRelations, e as agentRelations, O as agentRelationsRelations, m as agentToolRelations, E as agentToolRelationsRelations, d as agents, A as agentsRelations, r as apiKeys, D as apiKeysRelations, j as artifactComponents, J as artifactComponentsRelations, b as contextCache, z as contextCacheRelations, c as contextConfigs, y as contextConfigsRelations, n as conversations, H as conversationsRelations, u as credentialReferences, F as credentialReferencesRelations, h as dataComponents, L as dataComponentsRelations, f as externalAgents, C as externalAgentsRelations, q as ledgerArtifacts, N as ledgerArtifactsRelations, o as messages, I as messagesRelations, p as projects, w as projectsRelations, g as taskRelations, x as taskRelationsRelations, t as tasks, v as tasksRelations, l as tools, G as toolsRelations } from './schema-Mdt3_61i.cjs';
7
+ import { s as schema } from './schema-Ct2NlO81.cjs';
8
+ export { k as agentArtifactComponents, L as agentArtifactComponentsRelations, i as agentDataComponents, N as agentDataComponentsRelations, a as agentGraph, C as agentGraphRelations, e as agentRelations, Q as agentRelationsRelations, n as agentToolRelations, F as agentToolRelationsRelations, d as agents, B as agentsRelations, u as apiKeys, E as apiKeysRelations, j as artifactComponents, K as artifactComponentsRelations, b as contextCache, A as contextCacheRelations, c as contextConfigs, z as contextConfigsRelations, o as conversations, I as conversationsRelations, v as credentialReferences, G as credentialReferencesRelations, h as dataComponents, M as dataComponentsRelations, f as externalAgents, D as externalAgentsRelations, m as functions, P as functionsRelations, r as ledgerArtifacts, O as ledgerArtifactsRelations, q as messages, J as messagesRelations, p as projects, x as projectsRelations, g as taskRelations, y as taskRelationsRelations, t as tasks, w as tasksRelations, l as tools, H as toolsRelations } from './schema-Ct2NlO81.cjs';
9
9
  import { LoggerOptions, TransportSingleOptions, Logger } from 'pino';
10
10
  import { SSEClientTransportOptions } from '@modelcontextprotocol/sdk/client/sse.js';
11
11
  import { StreamableHTTPClientTransportOptions } from '@modelcontextprotocol/sdk/client/streamableHttp.js';
@@ -14,8 +14,10 @@ import { ValidateFunction } from 'ajv';
14
14
  import { Context, Next } from 'hono';
15
15
  import { z as z$1 } from '@hono/zod-openapi';
16
16
  import { HTTPException } from 'hono/http-exception';
17
+ export { convertZodToJsonSchema, convertZodToJsonSchemaWithPreview, extractPreviewFields, isZodSchema, preview } from './utils/schema-conversion.cjs';
17
18
  import { Span, Tracer } from '@opentelemetry/api';
18
19
  export { generateIdFromName, isExternalAgent, isInternalAgent, isValidResourceId, validateAgentRelationships, validateAndTypeGraphData, validateArtifactComponentReferences, validateDataComponentReferences, validateGraphStructure, validateToolReferences } from './validation/index.cjs';
20
+ export { P as PropsValidationResult, v as validatePropsAsJsonSchema } from './props-validation-BMR1qNiy.cjs';
19
21
  import 'drizzle-zod';
20
22
  import 'drizzle-orm/sqlite-core';
21
23
  import 'drizzle-orm';
@@ -65,19 +67,19 @@ type ExtractSchemasFromCV<CV> = {
65
67
  type InferContextFromSchemas<CZ> = {
66
68
  [K in keyof CZ]: CZ[K] extends z.ZodTypeAny ? z.infer<CZ[K]> : never;
67
69
  };
68
- type MergeRequestContext<R extends z.ZodTypeAny | undefined> = R extends z.ZodTypeAny ? {
69
- requestContext: z.infer<R>;
70
+ type MergeHeaders<R extends z.ZodTypeAny | undefined> = R extends z.ZodTypeAny ? {
71
+ headers: z.infer<R>;
70
72
  } : {};
71
- type FullContext<R extends z.ZodTypeAny | undefined, CV> = MergeRequestContext<R> & InferContextFromSchemas<ExtractSchemasFromCV<CV>>;
73
+ type FullContext<R extends z.ZodTypeAny | undefined, CV> = MergeHeaders<R> & InferContextFromSchemas<ExtractSchemasFromCV<CV>>;
72
74
  type AllowedPaths<R extends z.ZodTypeAny | undefined, CV> = DotPaths<FullContext<R, CV>>;
73
- interface RequestContextSchemaBuilderOptions<R extends z.ZodTypeAny> {
75
+ interface HeadersSchemaBuilderOptions<R extends z.ZodTypeAny> {
74
76
  schema: R;
75
77
  }
76
- declare class RequestContextSchemaBuilder<R extends z.ZodTypeAny> {
78
+ declare class HeadersSchemaBuilder<R extends z.ZodTypeAny> {
77
79
  private schema;
78
- constructor(options: RequestContextSchemaBuilderOptions<R>);
79
- /** Template function for request context paths with type-safe autocomplete */
80
- toTemplate<P extends DotPaths<z.infer<R>>>(path: P): `{{requestContext.${P}}}`;
80
+ constructor(options: HeadersSchemaBuilderOptions<R>);
81
+ /** Template function for headers paths with type-safe autocomplete */
82
+ toTemplate<P extends DotPaths<z.infer<R>>>(path: P): `{{headers.${P}}}`;
81
83
  getSchema(): R;
82
84
  getJsonSchema(): Record<string, unknown>;
83
85
  }
@@ -98,10 +100,8 @@ type builderFetchDefinition<R extends z.ZodTypeAny> = {
98
100
  credentialReference?: CredentialReferenceApiInsert;
99
101
  };
100
102
  interface ContextConfigBuilderOptions<R extends z.ZodTypeAny | undefined = undefined, CV = Record<string, builderFetchDefinition<z.ZodTypeAny>>> {
101
- id: string;
102
- name: string;
103
- description?: string;
104
- requestContextSchema?: R | RequestContextSchemaBuilder<R extends z.ZodTypeAny ? R : z.ZodTypeAny>;
103
+ id?: string;
104
+ headers?: R | HeadersSchemaBuilder<R extends z.ZodTypeAny ? R : z.ZodTypeAny>;
105
105
  contextVariables?: CV;
106
106
  tenantId?: string;
107
107
  projectId?: string;
@@ -119,17 +119,15 @@ declare class ContextConfigBuilder<R extends z.ZodTypeAny | undefined, CV extend
119
119
  * Set the context (tenantId, projectId, graphId) for this context config
120
120
  * Called by graph.setConfig() when the graph is configured
121
121
  */
122
- setContext(tenantId: string, projectId: string, graphId: string): void;
122
+ setContext(tenantId: string, projectId: string, graphId: string, baseURL: string): void;
123
123
  /**
124
124
  * Convert the builder to a plain object for database operations
125
125
  */
126
126
  toObject(): ContextConfigSelect;
127
127
  getId(): string;
128
- getName(): string;
129
- getDescription(): string;
130
- getRequestContextSchema(): {} | null;
128
+ getHeadersSchema(): {} | null;
131
129
  getContextVariables(): Record<string, ContextFetchDefinition>;
132
- withRequestContextSchema(schema: any): this;
130
+ withHeadersSchema(schema: any): this;
133
131
  /** 4) The function you ship: path autocomplete + validation, returns {{path}} */
134
132
  toTemplate<P extends AllowedPaths<R, CV>>(path: P): `{{${P}}}`;
135
133
  validate(): {
@@ -143,7 +141,7 @@ declare class ContextConfigBuilder<R extends z.ZodTypeAny | undefined, CV extend
143
141
  declare function contextConfig<R extends z.ZodTypeAny | undefined = undefined, CV extends Record<string, builderFetchDefinition<z.ZodTypeAny>> = Record<string, builderFetchDefinition<z.ZodTypeAny>>>(options: ContextConfigBuilderOptions<R, CV> & {
144
142
  contextVariables?: CV;
145
143
  }): ContextConfigBuilder<R, CV>;
146
- declare function requestContextSchema<R extends z.ZodTypeAny>(options: RequestContextSchemaBuilderOptions<R>): RequestContextSchemaBuilder<R>;
144
+ declare function headers<R extends z.ZodTypeAny>(options: HeadersSchemaBuilderOptions<R>): HeadersSchemaBuilder<R>;
147
145
  declare function fetchDefinition<R extends z.ZodTypeAny>(options: builderFetchDefinition<R>): Omit<builderFetchDefinition<R>, 'credentialReference'> & {
148
146
  credentialReferenceId?: string;
149
147
  };
@@ -314,12 +312,12 @@ interface ResolvedContext {
314
312
  interface ContextResolutionOptions {
315
313
  triggerEvent: 'initialization' | 'invocation';
316
314
  conversationId: string;
317
- requestContext?: Record<string, unknown>;
315
+ headers?: Record<string, unknown>;
318
316
  tenantId: string;
319
317
  }
320
318
  interface ContextResolutionResult {
321
319
  resolvedContext: ResolvedContext;
322
- requestContext: Record<string, unknown>;
320
+ headers: Record<string, unknown>;
323
321
  fetchedDefinitions: string[];
324
322
  cacheHits: string[];
325
323
  cacheMisses: string[];
@@ -344,11 +342,11 @@ declare class ContextResolver {
344
342
  */
345
343
  private resolveSingleFetchDefinition;
346
344
  /**
347
- * Resolve the request context for a given conversation
345
+ * Resolve the headers for a given conversation
348
346
  */
349
- resolveRequestContext(conversationId: string, contextConfigId: string): Promise<Record<string, unknown>>;
347
+ resolveHeaders(conversationId: string, contextConfigId: string): Promise<Record<string, unknown>>;
350
348
  /**
351
- * Create a hash of the request context for cache invalidation
349
+ * Create a hash of the headers for cache invalidation
352
350
  */
353
351
  private createRequestHash;
354
352
  /**
@@ -359,12 +357,12 @@ declare class ContextResolver {
359
357
 
360
358
  declare function determineContextTrigger(tenantId: string, projectId: string, conversationId: string, dbClient: DatabaseClient): Promise<'initialization' | 'invocation'>;
361
359
  declare function handleContextConfigChange(tenantId: string, projectId: string, conversationId: string, graphId: string, newContextConfigId: string, dbClient: DatabaseClient, credentialStores?: CredentialStoreRegistry): Promise<void>;
362
- declare function handleContextResolution({ tenantId, projectId, graphId, conversationId, requestContext, dbClient, credentialStores, }: {
360
+ declare function handleContextResolution({ tenantId, projectId, graphId, conversationId, headers, dbClient, credentialStores, }: {
363
361
  tenantId: string;
364
362
  projectId: string;
365
363
  graphId: string;
366
364
  conversationId: string;
367
- requestContext: Record<string, unknown>;
365
+ headers: Record<string, unknown>;
368
366
  dbClient: DatabaseClient;
369
367
  credentialStores?: CredentialStoreRegistry;
370
368
  }): Promise<ResolvedContext | null>;
@@ -415,7 +413,7 @@ declare class ContextCache {
415
413
  */
416
414
  cleanup(): Promise<void>;
417
415
  invalidateInvocationDefinitions(tenantId: string, projectId: string, conversationId: string, contextConfigId: string, definitionIds: string[]): Promise<void>;
418
- invalidateRequestContext(tenantId: string, projectId: string, conversationId: string, contextConfigId: string): Promise<void>;
416
+ invalidateHeaders(tenantId: string, projectId: string, conversationId: string, contextConfigId: string): Promise<void>;
419
417
  }
420
418
 
421
419
  /**
@@ -790,7 +788,7 @@ interface CredentialResolverInput {
790
788
  * Interface for context resolver (optional)
791
789
  */
792
790
  interface ContextResolverInterface {
793
- resolveRequestContext(conversationId: string, contextConfigId: string): Promise<Record<string, unknown>>;
791
+ resolveHeaders(conversationId: string, contextConfigId: string): Promise<Record<string, unknown>>;
794
792
  }
795
793
  /**
796
794
  * Manages credential retrieval and injection for MCP tools
@@ -810,9 +808,9 @@ declare class CredentialStuffer {
810
808
  */
811
809
  private generateCredentialKey;
812
810
  /**
813
- * Get credentials from request context
811
+ * Get credentials from headers context
814
812
  */
815
- getCredentialsFromRequestContext(credentialContext: CredentialContext, headers: Record<string, string>): Promise<CredentialData | null>;
813
+ getCredentialsFromHeaders(credentialContext: CredentialContext, headers: Record<string, string>): Promise<CredentialData | null>;
816
814
  /**
817
815
  * Get credential headers for MCP server configuration
818
816
  */
@@ -833,7 +831,6 @@ declare const getAgentGraphById: (db: DatabaseClient) => (params: {
833
831
  description: string | null;
834
832
  createdAt: string;
835
833
  updatedAt: string;
836
- defaultAgentId: string | null;
837
834
  models: {
838
835
  base?: {
839
836
  model?: string | undefined;
@@ -851,6 +848,7 @@ declare const getAgentGraphById: (db: DatabaseClient) => (params: {
851
848
  stopWhen: {
852
849
  transferCountIs?: number | undefined;
853
850
  } | null;
851
+ defaultAgentId: string | null;
854
852
  contextConfigId: string | null;
855
853
  statusUpdates: {
856
854
  enabled?: boolean | undefined;
@@ -879,7 +877,6 @@ declare const getAgentGraphWithDefaultAgent: (db: DatabaseClient) => (params: {
879
877
  description: string | null;
880
878
  createdAt: string;
881
879
  updatedAt: string;
882
- defaultAgentId: string | null;
883
880
  models: {
884
881
  base?: {
885
882
  model?: string | undefined;
@@ -897,6 +894,7 @@ declare const getAgentGraphWithDefaultAgent: (db: DatabaseClient) => (params: {
897
894
  stopWhen: {
898
895
  transferCountIs?: number | undefined;
899
896
  } | null;
897
+ defaultAgentId: string | null;
900
898
  contextConfigId: string | null;
901
899
  statusUpdates: {
902
900
  enabled?: boolean | undefined;
@@ -924,7 +922,6 @@ declare const getAgentGraphWithDefaultAgent: (db: DatabaseClient) => (params: {
924
922
  graphId: string;
925
923
  createdAt: string;
926
924
  updatedAt: string;
927
- conversationHistoryConfig: ConversationHistoryConfig | null;
928
925
  models: {
929
926
  base?: {
930
927
  model?: string | undefined;
@@ -942,6 +939,7 @@ declare const getAgentGraphWithDefaultAgent: (db: DatabaseClient) => (params: {
942
939
  stopWhen: {
943
940
  stepCountIs?: number | undefined;
944
941
  } | null;
942
+ conversationHistoryConfig: ConversationHistoryConfig | null;
945
943
  } | null;
946
944
  } | null>;
947
945
  declare const listAgentGraphs: (db: DatabaseClient) => (params: {
@@ -954,7 +952,6 @@ declare const listAgentGraphs: (db: DatabaseClient) => (params: {
954
952
  description: string | null;
955
953
  createdAt: string;
956
954
  updatedAt: string;
957
- defaultAgentId: string | null;
958
955
  models: {
959
956
  base?: {
960
957
  model?: string | undefined;
@@ -972,6 +969,7 @@ declare const listAgentGraphs: (db: DatabaseClient) => (params: {
972
969
  stopWhen: {
973
970
  transferCountIs?: number | undefined;
974
971
  } | null;
972
+ defaultAgentId: string | null;
975
973
  contextConfigId: string | null;
976
974
  statusUpdates: {
977
975
  enabled?: boolean | undefined;
@@ -1053,7 +1051,6 @@ declare const createAgentGraph: (db: DatabaseClient) => (data: AgentGraphInsert)
1053
1051
  description: string | null;
1054
1052
  createdAt: string;
1055
1053
  updatedAt: string;
1056
- defaultAgentId: string | null;
1057
1054
  models: {
1058
1055
  base?: {
1059
1056
  model?: string | undefined;
@@ -1071,6 +1068,7 @@ declare const createAgentGraph: (db: DatabaseClient) => (data: AgentGraphInsert)
1071
1068
  stopWhen: {
1072
1069
  transferCountIs?: number | undefined;
1073
1070
  } | null;
1071
+ defaultAgentId: string | null;
1074
1072
  contextConfigId: string | null;
1075
1073
  statusUpdates: {
1076
1074
  enabled?: boolean | undefined;
@@ -1100,7 +1098,6 @@ declare const updateAgentGraph: (db: DatabaseClient) => (params: {
1100
1098
  description: string | null;
1101
1099
  createdAt: string;
1102
1100
  updatedAt: string;
1103
- defaultAgentId: string | null;
1104
1101
  models: {
1105
1102
  base?: {
1106
1103
  model?: string | undefined;
@@ -1118,6 +1115,7 @@ declare const updateAgentGraph: (db: DatabaseClient) => (params: {
1118
1115
  stopWhen: {
1119
1116
  transferCountIs?: number | undefined;
1120
1117
  } | null;
1118
+ defaultAgentId: string | null;
1121
1119
  contextConfigId: string | null;
1122
1120
  statusUpdates: {
1123
1121
  enabled?: boolean | undefined;
@@ -1555,10 +1553,19 @@ declare const getToolsForAgent: (db: DatabaseClient) => (params: {
1555
1553
  tool: {
1556
1554
  id: string;
1557
1555
  name: string;
1556
+ description: string | null;
1558
1557
  config: {
1559
1558
  type: "mcp";
1560
1559
  mcp: ToolMcpConfig;
1560
+ } | {
1561
+ type: "function";
1562
+ function?: {
1563
+ inputSchema: Record<string, unknown>;
1564
+ executeCode: string;
1565
+ dependencies: Record<string, unknown>;
1566
+ };
1561
1567
  };
1568
+ functionId: string | null;
1562
1569
  createdAt: string;
1563
1570
  updatedAt: string;
1564
1571
  capabilities: ToolServerCapabilities | null;
@@ -1645,7 +1652,6 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
1645
1652
  graphId: string;
1646
1653
  createdAt: string;
1647
1654
  updatedAt: string;
1648
- conversationHistoryConfig: ConversationHistoryConfig | null;
1649
1655
  models: {
1650
1656
  base?: {
1651
1657
  model?: string | undefined;
@@ -1663,6 +1669,7 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
1663
1669
  stopWhen: {
1664
1670
  stepCountIs?: number | undefined;
1665
1671
  } | null;
1672
+ conversationHistoryConfig: ConversationHistoryConfig | null;
1666
1673
  } | undefined>;
1667
1674
  declare const listAgents: (db: DatabaseClient) => (params: {
1668
1675
  scopes: GraphScopeConfig;
@@ -1676,7 +1683,6 @@ declare const listAgents: (db: DatabaseClient) => (params: {
1676
1683
  graphId: string;
1677
1684
  createdAt: string;
1678
1685
  updatedAt: string;
1679
- conversationHistoryConfig: ConversationHistoryConfig | null;
1680
1686
  models: {
1681
1687
  base?: {
1682
1688
  model?: string | undefined;
@@ -1694,6 +1700,7 @@ declare const listAgents: (db: DatabaseClient) => (params: {
1694
1700
  stopWhen: {
1695
1701
  stepCountIs?: number | undefined;
1696
1702
  } | null;
1703
+ conversationHistoryConfig: ConversationHistoryConfig | null;
1697
1704
  }[]>;
1698
1705
  declare const listAgentsPaginated: (db: DatabaseClient) => (params: {
1699
1706
  scopes: GraphScopeConfig;
@@ -1745,7 +1752,6 @@ declare const createAgent: (db: DatabaseClient) => (params: AgentInsert) => Prom
1745
1752
  graphId: string;
1746
1753
  createdAt: string;
1747
1754
  updatedAt: string;
1748
- conversationHistoryConfig: ConversationHistoryConfig | null;
1749
1755
  models: {
1750
1756
  base?: {
1751
1757
  model?: string | undefined;
@@ -1763,6 +1769,7 @@ declare const createAgent: (db: DatabaseClient) => (params: AgentInsert) => Prom
1763
1769
  stopWhen: {
1764
1770
  stepCountIs?: number | undefined;
1765
1771
  } | null;
1772
+ conversationHistoryConfig: ConversationHistoryConfig | null;
1766
1773
  }>;
1767
1774
  declare const updateAgent: (db: DatabaseClient) => (params: {
1768
1775
  scopes: GraphScopeConfig;
@@ -1778,7 +1785,6 @@ declare const updateAgent: (db: DatabaseClient) => (params: {
1778
1785
  graphId: string;
1779
1786
  createdAt: string;
1780
1787
  updatedAt: string;
1781
- conversationHistoryConfig: ConversationHistoryConfig | null;
1782
1788
  models: {
1783
1789
  base?: {
1784
1790
  model?: string | undefined;
@@ -1796,6 +1802,7 @@ declare const updateAgent: (db: DatabaseClient) => (params: {
1796
1802
  stopWhen: {
1797
1803
  stepCountIs?: number | undefined;
1798
1804
  } | null;
1805
+ conversationHistoryConfig: ConversationHistoryConfig | null;
1799
1806
  }>;
1800
1807
  /**
1801
1808
  * Upsert agent (create if it doesn't exist, update if it does)
@@ -1967,16 +1974,14 @@ declare const getArtifactComponentById: (db: DatabaseClient) => (params: {
1967
1974
  description: string;
1968
1975
  createdAt: string;
1969
1976
  updatedAt: string;
1970
- summaryProps: Record<string, unknown> | null;
1971
- fullProps: Record<string, unknown> | null;
1977
+ props: Record<string, unknown> | null;
1972
1978
  } | undefined>;
1973
1979
  declare const listArtifactComponents: (db: DatabaseClient) => (params: {
1974
1980
  scopes: ProjectScopeConfig;
1975
1981
  }) => Promise<{
1976
1982
  createdAt: string;
1977
1983
  updatedAt: string;
1978
- summaryProps: Record<string, unknown> | null;
1979
- fullProps: Record<string, unknown> | null;
1984
+ props: Record<string, unknown> | null;
1980
1985
  name: string;
1981
1986
  description: string;
1982
1987
  projectId: string;
@@ -2003,8 +2008,7 @@ declare const createArtifactComponent: (db: DatabaseClient) => (params: Artifact
2003
2008
  description: string;
2004
2009
  createdAt: string;
2005
2010
  updatedAt: string;
2006
- summaryProps: Record<string, unknown> | null;
2007
- fullProps: Record<string, unknown> | null;
2011
+ props: Record<string, unknown> | null;
2008
2012
  }>;
2009
2013
  declare const updateArtifactComponent: (db: DatabaseClient) => (params: {
2010
2014
  scopes: ProjectScopeConfig;
@@ -2018,8 +2022,7 @@ declare const updateArtifactComponent: (db: DatabaseClient) => (params: {
2018
2022
  description: string;
2019
2023
  createdAt: string;
2020
2024
  updatedAt: string;
2021
- summaryProps: Record<string, unknown> | null;
2022
- fullProps: Record<string, unknown> | null;
2025
+ props: Record<string, unknown> | null;
2023
2026
  }>;
2024
2027
  declare const deleteArtifactComponent: (db: DatabaseClient) => (params: {
2025
2028
  scopes: ProjectScopeConfig;
@@ -2033,8 +2036,7 @@ declare const getArtifactComponentsForAgent: (db: DatabaseClient) => (params: {
2033
2036
  projectId: string;
2034
2037
  name: string;
2035
2038
  description: string;
2036
- summaryProps: Record<string, unknown> | null;
2037
- fullProps: Record<string, unknown> | null;
2039
+ props: Record<string, unknown> | null;
2038
2040
  createdAt: string;
2039
2041
  updatedAt: string;
2040
2042
  }[]>;
@@ -2134,9 +2136,9 @@ declare const cleanupTenantCache: (db: DatabaseClient) => (params: {
2134
2136
  scopes: ProjectScopeConfig;
2135
2137
  }) => Promise<number>;
2136
2138
  /**
2137
- * Invalidate the request context cache for a conversation
2139
+ * Invalidate the headers cache for a conversation
2138
2140
  */
2139
- declare const invalidateRequestContextCache: (db: DatabaseClient) => (params: {
2141
+ declare const invalidateHeadersCache: (db: DatabaseClient) => (params: {
2140
2142
  scopes: ProjectScopeConfig;
2141
2143
  conversationId: string;
2142
2144
  contextConfigId: string;
@@ -2166,36 +2168,32 @@ declare const getContextConfigCacheEntries: (db: DatabaseClient) => (params: {
2166
2168
  }) => Promise<ContextCacheSelect[]>;
2167
2169
 
2168
2170
  declare const getContextConfigById: (db: DatabaseClient) => (params: {
2169
- scopes: ProjectScopeConfig;
2171
+ scopes: GraphScopeConfig;
2170
2172
  id: string;
2171
2173
  }) => Promise<{
2172
2174
  tenantId: string;
2173
2175
  projectId: string;
2174
2176
  id: string;
2175
- name: string;
2176
- description: string;
2177
2177
  graphId: string;
2178
2178
  createdAt: string;
2179
2179
  updatedAt: string;
2180
- requestContextSchema: unknown;
2180
+ headersSchema: unknown;
2181
2181
  contextVariables: Record<string, ContextFetchDefinition> | null;
2182
2182
  } | undefined>;
2183
2183
  declare const listContextConfigs: (db: DatabaseClient) => (params: {
2184
- scopes: ProjectScopeConfig;
2184
+ scopes: GraphScopeConfig;
2185
2185
  }) => Promise<{
2186
2186
  tenantId: string;
2187
2187
  projectId: string;
2188
2188
  id: string;
2189
- name: string;
2190
- description: string;
2191
2189
  graphId: string;
2192
2190
  createdAt: string;
2193
2191
  updatedAt: string;
2194
- requestContextSchema: unknown;
2192
+ headersSchema: unknown;
2195
2193
  contextVariables: Record<string, ContextFetchDefinition> | null;
2196
2194
  }[]>;
2197
2195
  declare const listContextConfigsPaginated: (db: DatabaseClient) => (params: {
2198
- scopes: ProjectScopeConfig;
2196
+ scopes: GraphScopeConfig;
2199
2197
  pagination?: PaginationConfig;
2200
2198
  }) => Promise<{
2201
2199
  data: any[];
@@ -2210,56 +2208,37 @@ declare const createContextConfig: (db: DatabaseClient) => (params: ContextConfi
2210
2208
  tenantId: string;
2211
2209
  projectId: string;
2212
2210
  id: string;
2213
- name: string;
2214
- description: string;
2215
2211
  graphId: string;
2216
2212
  createdAt: string;
2217
2213
  updatedAt: string;
2218
- requestContextSchema: unknown;
2214
+ headersSchema: unknown;
2219
2215
  contextVariables: Record<string, ContextFetchDefinition> | null;
2220
2216
  }>;
2221
2217
  declare const updateContextConfig: (db: DatabaseClient) => (params: {
2222
- scopes: ProjectScopeConfig;
2218
+ scopes: GraphScopeConfig;
2223
2219
  id: string;
2224
2220
  data: Partial<ContextConfigUpdate>;
2225
2221
  }) => Promise<{
2226
2222
  tenantId: string;
2227
2223
  projectId: string;
2228
2224
  id: string;
2229
- name: string;
2230
- description: string;
2231
2225
  graphId: string;
2232
2226
  createdAt: string;
2233
2227
  updatedAt: string;
2234
- requestContextSchema: unknown;
2228
+ headersSchema: unknown;
2235
2229
  contextVariables: Record<string, ContextFetchDefinition> | null;
2236
2230
  }>;
2237
2231
  declare const deleteContextConfig: (db: DatabaseClient) => (params: {
2238
- scopes: ProjectScopeConfig;
2232
+ scopes: GraphScopeConfig;
2239
2233
  id: string;
2240
2234
  }) => Promise<boolean>;
2241
2235
  declare const hasContextConfig: (db: DatabaseClient) => (params: {
2242
- scopes: ProjectScopeConfig;
2236
+ scopes: GraphScopeConfig;
2243
2237
  id: string;
2244
2238
  }) => Promise<boolean>;
2245
2239
  declare const countContextConfigs: (db: DatabaseClient) => (params: {
2246
- scopes: ProjectScopeConfig;
2240
+ scopes: GraphScopeConfig;
2247
2241
  }) => Promise<number>;
2248
- declare const getContextConfigsByName: (db: DatabaseClient) => (params: {
2249
- scopes: ProjectScopeConfig;
2250
- name: string;
2251
- }) => Promise<{
2252
- tenantId: string;
2253
- projectId: string;
2254
- id: string;
2255
- name: string;
2256
- description: string;
2257
- graphId: string;
2258
- createdAt: string;
2259
- updatedAt: string;
2260
- requestContextSchema: unknown;
2261
- contextVariables: Record<string, ContextFetchDefinition> | null;
2262
- }[]>;
2263
2242
  /**
2264
2243
  * Upsert a context config (create if it doesn't exist, update if it does)
2265
2244
  */
@@ -2269,12 +2248,10 @@ declare const upsertContextConfig: (db: DatabaseClient) => (params: {
2269
2248
  tenantId: string;
2270
2249
  projectId: string;
2271
2250
  id: string;
2272
- name: string;
2273
- description: string;
2274
2251
  graphId: string;
2275
2252
  createdAt: string;
2276
2253
  updatedAt: string;
2277
- requestContextSchema: unknown;
2254
+ headersSchema: unknown;
2278
2255
  contextVariables: Record<string, ContextFetchDefinition> | null;
2279
2256
  }>;
2280
2257
 
@@ -2689,6 +2666,34 @@ declare const countExternalAgents: (db: DatabaseClient) => (params: {
2689
2666
  scopes: GraphScopeConfig;
2690
2667
  }) => Promise<number>;
2691
2668
 
2669
+ /**
2670
+ * Create or update a function (project-scoped)
2671
+ */
2672
+ declare const upsertFunction: (db: DatabaseClient) => (params: {
2673
+ data: FunctionApiInsert;
2674
+ scopes: ProjectScopeConfig;
2675
+ }) => Promise<void>;
2676
+ /**
2677
+ * Get a function by ID (project-scoped)
2678
+ */
2679
+ declare const getFunction: (db: DatabaseClient) => (params: {
2680
+ functionId: string;
2681
+ scopes: ProjectScopeConfig;
2682
+ }) => Promise<FunctionApiInsert | null>;
2683
+ /**
2684
+ * List all functions for a project
2685
+ */
2686
+ declare const listFunctions: (db: DatabaseClient) => (params: {
2687
+ scopes: ProjectScopeConfig;
2688
+ }) => Promise<FunctionApiInsert[]>;
2689
+ /**
2690
+ * Delete a function (project-scoped)
2691
+ */
2692
+ declare const deleteFunction: (db: DatabaseClient) => (params: {
2693
+ functionId: string;
2694
+ scopes: ProjectScopeConfig;
2695
+ }) => Promise<void>;
2696
+
2692
2697
  interface GraphLogger {
2693
2698
  info(obj: Record<string, any>, msg?: string): void;
2694
2699
  error(obj: Record<string, any>, msg?: string): void;
@@ -3086,8 +3091,8 @@ declare const createTask: (db: DatabaseClient) => (params: TaskInsert) => Promis
3086
3091
  graphId: string;
3087
3092
  createdAt: string;
3088
3093
  updatedAt: string;
3089
- metadata: TaskMetadataConfig | null;
3090
3094
  status: string;
3095
+ metadata: TaskMetadataConfig | null;
3091
3096
  contextId: string;
3092
3097
  agentId: string;
3093
3098
  }>;
@@ -3107,8 +3112,8 @@ declare const updateTask: (db: DatabaseClient) => (params: {
3107
3112
  graphId: string;
3108
3113
  createdAt: string;
3109
3114
  updatedAt: string;
3110
- metadata: TaskMetadataConfig | null;
3111
3115
  status: string;
3116
+ metadata: TaskMetadataConfig | null;
3112
3117
  contextId: string;
3113
3118
  agentId: string;
3114
3119
  }>;
@@ -3125,15 +3130,24 @@ declare const getToolById: (db: DatabaseClient) => (params: {
3125
3130
  projectId: string;
3126
3131
  id: string;
3127
3132
  name: string;
3133
+ description: string | null;
3128
3134
  config: {
3129
3135
  type: "mcp";
3130
3136
  mcp: ToolMcpConfig;
3137
+ } | {
3138
+ type: "function";
3139
+ function?: {
3140
+ inputSchema: Record<string, unknown>;
3141
+ executeCode: string;
3142
+ dependencies: Record<string, unknown>;
3143
+ };
3131
3144
  };
3132
3145
  credentialReferenceId: string | null;
3133
3146
  createdAt: string;
3134
3147
  updatedAt: string;
3135
3148
  headers: Record<string, string> | null;
3136
3149
  capabilities: ToolServerCapabilities | null;
3150
+ functionId: string | null;
3137
3151
  imageUrl: string | null;
3138
3152
  lastError: string | null;
3139
3153
  } | null>;
@@ -3145,10 +3159,19 @@ declare const listTools: (db: DatabaseClient) => (params: {
3145
3159
  createdAt: string;
3146
3160
  updatedAt: string;
3147
3161
  name: string;
3162
+ description: string | null;
3148
3163
  config: {
3149
3164
  type: "mcp";
3150
3165
  mcp: ToolMcpConfig;
3166
+ } | {
3167
+ type: "function";
3168
+ function?: {
3169
+ inputSchema: Record<string, unknown>;
3170
+ executeCode: string;
3171
+ dependencies: Record<string, unknown>;
3172
+ };
3151
3173
  };
3174
+ functionId: string | null;
3152
3175
  credentialReferenceId: string | null;
3153
3176
  headers: Record<string, string> | null;
3154
3177
  imageUrl: string | null;
@@ -3170,15 +3193,24 @@ declare const createTool: (db: DatabaseClient) => (params: ToolInsert) => Promis
3170
3193
  projectId: string;
3171
3194
  id: string;
3172
3195
  name: string;
3196
+ description: string | null;
3173
3197
  config: {
3174
3198
  type: "mcp";
3175
3199
  mcp: ToolMcpConfig;
3200
+ } | {
3201
+ type: "function";
3202
+ function?: {
3203
+ inputSchema: Record<string, unknown>;
3204
+ executeCode: string;
3205
+ dependencies: Record<string, unknown>;
3206
+ };
3176
3207
  };
3177
3208
  credentialReferenceId: string | null;
3178
3209
  createdAt: string;
3179
3210
  updatedAt: string;
3180
3211
  headers: Record<string, string> | null;
3181
3212
  capabilities: ToolServerCapabilities | null;
3213
+ functionId: string | null;
3182
3214
  imageUrl: string | null;
3183
3215
  lastError: string | null;
3184
3216
  }>;
@@ -3191,15 +3223,24 @@ declare const updateTool: (db: DatabaseClient) => (params: {
3191
3223
  projectId: string;
3192
3224
  id: string;
3193
3225
  name: string;
3226
+ description: string | null;
3194
3227
  config: {
3195
3228
  type: "mcp";
3196
3229
  mcp: ToolMcpConfig;
3230
+ } | {
3231
+ type: "function";
3232
+ function?: {
3233
+ inputSchema: Record<string, unknown>;
3234
+ executeCode: string;
3235
+ dependencies: Record<string, unknown>;
3236
+ };
3197
3237
  };
3198
3238
  credentialReferenceId: string | null;
3199
3239
  createdAt: string;
3200
3240
  updatedAt: string;
3201
3241
  headers: Record<string, string> | null;
3202
3242
  capabilities: ToolServerCapabilities | null;
3243
+ functionId: string | null;
3203
3244
  imageUrl: string | null;
3204
3245
  lastError: string | null;
3205
3246
  }>;
@@ -3273,15 +3314,24 @@ declare const upsertTool: (db: DatabaseClient) => (params: {
3273
3314
  projectId: string;
3274
3315
  id: string;
3275
3316
  name: string;
3317
+ description: string | null;
3276
3318
  config: {
3277
3319
  type: "mcp";
3278
3320
  mcp: ToolMcpConfig;
3321
+ } | {
3322
+ type: "function";
3323
+ function?: {
3324
+ inputSchema: Record<string, unknown>;
3325
+ executeCode: string;
3326
+ dependencies: Record<string, unknown>;
3327
+ };
3279
3328
  };
3280
3329
  credentialReferenceId: string | null;
3281
3330
  createdAt: string;
3282
3331
  updatedAt: string;
3283
3332
  headers: Record<string, string> | null;
3284
3333
  capabilities: ToolServerCapabilities | null;
3334
+ functionId: string | null;
3285
3335
  imageUrl: string | null;
3286
3336
  lastError: string | null;
3287
3337
  }>;
@@ -3328,10 +3378,10 @@ declare function validateAgainstJsonSchema(jsonSchema: Record<string, unknown>,
3328
3378
  */
3329
3379
  declare function validateHttpRequestHeaders(headersSchema: any, httpRequest: ParsedHttpRequest): Promise<ContextValidationResult>;
3330
3380
  /**
3331
- * Validates request context against the JSON Schema stored in context configuration
3381
+ * Validates headers against the JSON Schema stored in context configuration
3332
3382
  * Supports both legacy simple schemas and new comprehensive HTTP request schemas
3333
3383
  */
3334
- declare function validateRequestContext({ tenantId, projectId, graphId, conversationId, parsedRequest, dbClient, credentialStores, }: {
3384
+ declare function validateHeaders({ tenantId, projectId, graphId, conversationId, parsedRequest, dbClient, credentialStores, }: {
3335
3385
  tenantId: string;
3336
3386
  projectId: string;
3337
3387
  graphId: string;
@@ -3404,6 +3454,7 @@ declare const detectAuthenticationRequired: ({ serverUrl, toolId, error, logger,
3404
3454
  logger?: PinoLogger;
3405
3455
  }) => Promise<boolean>;
3406
3456
 
3457
+ declare const generateId: (size?: number) => string;
3407
3458
  /**
3408
3459
  * Generates a standardized conversation ID.
3409
3460
  *
@@ -3984,4 +4035,4 @@ declare function setSpanWithError(span: Span, error: Error, logger?: {
3984
4035
  */
3985
4036
  declare function getTracer(serviceName: string, serviceVersion?: string): Tracer;
3986
4037
 
3987
- export { AgentGraphInsert, AgentGraphUpdate, AgentInsert, AgentRelationInsert, AgentRelationUpdate, AgentScopeConfig, AgentSelect, AgentToolRelationUpdate, AgentUpdate, ApiKeyCreateResult, type ApiKeyGenerationResult, ApiKeyInsert, ApiKeySelect, ApiKeyUpdate, Artifact, ArtifactComponentInsert, ArtifactComponentSelect, ArtifactComponentUpdate, type CommonCreateErrorResponses, type CommonDeleteErrorResponses, type CommonGetErrorResponses, type CommonUpdateErrorResponses, ContextCache, ContextCacheInsert, ContextCacheSelect, ContextConfigBuilder, type ContextConfigBuilderOptions, ContextConfigInsert, ContextConfigSelect, ContextConfigUpdate, ContextFetchDefinition, ContextFetcher, type ContextResolutionOptions, type ContextResolutionResult, ContextResolver, type ContextResolverInterface, type ContextValidationError, type ContextValidationResult, ConversationHistoryConfig, ConversationInsert, ConversationMetadata, ConversationSelect, ConversationUpdate, CreateApiKeyParams, type CredentialContext, type CredentialData, CredentialReferenceApiInsert, CredentialReferenceInsert, CredentialReferenceSelect, CredentialReferenceUpdate, type CredentialReferenceWithTools, type CredentialResolverInput, CredentialStore, type CredentialStoreReference, CredentialStoreRegistry, CredentialStoreType, CredentialStuffer, DataComponentInsert, DataComponentSelect, DataComponentUpdate, type DatabaseClient, type DatabaseConfig, type DotPaths, ERROR_DOCS_BASE_URL, ErrorCode, type ErrorCodes, type ErrorResponse, ExecutionContext, ExternalAgentInsert, ExternalAgentRelationInsert, ExternalAgentSelect, ExternalAgentUpdate, type FetchResult, FullGraphDefinition, FullProjectDefinition, type GraphLogger, GraphScopeConfig, HTTP_REQUEST_PARTS, type HttpRequestPart, InMemoryCredentialStore, KeyChainStore, LedgerArtifactSelect, type LoggerFactoryConfig, MCPToolConfig, MCPTransportType, McpClient, type McpClientOptions, type McpSSEConfig, type McpServerConfig, type McpStreamableHttpConfig, McpTool, MessageContent, MessageInsert, MessageMetadata, MessageUpdate, MessageVisibility, NangoCredentialStore, type OAuthConfig, PaginationConfig, PaginationResult, type ParsedHttpRequest, PinoLogger, type PinoLoggerConfig, type ProblemDetails, ProjectInfo, ProjectInsert, type ProjectLogger, ProjectResourceCounts, ProjectScopeConfig, ProjectSelect, ProjectUpdate, type ResolvedContext, TaskInsert, TaskMetadataConfig, TaskSelect, type TemplateContext, TemplateEngine, type TemplateRenderOptions, ToolInsert, ToolMcpConfig, ToolSelect, ToolServerCapabilities, ToolUpdate, addLedgerArtifacts, addToolToAgent, apiFetch, associateArtifactComponentWithAgent, associateDataComponentWithAgent, cleanupTenantCache, clearContextConfigCache, clearConversationCache, commonCreateErrorResponses, commonDeleteErrorResponses, commonGetErrorResponses, commonUpdateErrorResponses, contextConfig, contextValidationMiddleware, countApiKeys, countArtifactComponents, countArtifactComponentsForAgent, countContextConfigs, countCredentialReferences, countDataComponents, countExternalAgents, countLedgerArtifactsByTask, countMessagesByConversation, countProjects, createAgent, createAgentGraph, createAgentRelation, createAgentToolRelation, createApiError, createApiKey, createArtifactComponent, createContextConfig, createConversation, createCredentialReference, createDataComponent, createDatabaseClient, createDefaultCredentialStores, createExecutionContext, createExternalAgent, createExternalAgentRelation, createFullGraphServerSide, createFullProjectServerSide, createInMemoryDatabaseClient, createKeyChainStore, createMessage, createNangoCredentialStore, createOrGetConversation, createProject, createTask, createTool, createValidatedDataAccess, dbResultToMcpTool, deleteAgent, deleteAgentArtifactComponentRelationByAgent, deleteAgentDataComponentRelationByAgent, deleteAgentGraph, deleteAgentRelation, deleteAgentRelationsByGraph, deleteAgentToolRelation, deleteAgentToolRelationByAgent, deleteApiKey, deleteArtifactComponent, deleteContextConfig, deleteConversation, deleteCredentialReference, deleteDataComponent, deleteExternalAgent, deleteFullGraph, deleteFullProject, deleteLedgerArtifactsByContext, deleteLedgerArtifactsByTask, deleteMessage, deleteProject, deleteTool, detectAuthenticationRequired, determineContextTrigger, discoverOAuthEndpoints, errorResponseSchema, errorSchemaFactory, externalAgentExists, externalAgentUrlExists, extractPublicId, fetchComponentRelationships, fetchDefinition, generateAndCreateApiKey, generateApiKey, getActiveAgentForConversation, getAgentById, getAgentGraphById, getAgentGraphWithDefaultAgent, getAgentRelationById, getAgentRelationByParams, getAgentRelations, getAgentRelationsByGraph, getAgentRelationsBySource, getAgentRelationsByTarget, getAgentToolRelationByAgent, getAgentToolRelationById, getAgentToolRelationByTool, getAgentsByIds, getAgentsForTool, getAgentsUsingArtifactComponent, getAgentsUsingDataComponent, getApiKeyById, getApiKeyByPublicId, getArtifactComponentById, getArtifactComponentsForAgent, getCacheEntry, getCachedValidator, getContextConfigById, getContextConfigCacheEntries, getContextConfigsByName, getConversation, getConversationCacheEntries, getConversationHistory, getConversationId, getCredentialReference, getCredentialReferenceById, getCredentialReferenceWithTools, getCredentialStoreLookupKeyFromRetrievalParams, getDataComponent, getDataComponentsForAgent, getExternalAgent, getExternalAgentByUrl, getExternalAgentRelations, getFullGraph, getFullGraphDefinition, getFullProject, getGraphAgentInfos, getLedgerArtifacts, getLedgerArtifactsByContext, getLogger, getMessageById, getMessagesByConversation, getMessagesByTask, getProject, getProjectResourceCounts, getRelatedAgentsForGraph, getRequestExecutionContext, getTask, getToolById, getToolsForAgent, getTracer, getVisibleMessages, graphHasArtifactComponents, handleApiError, handleContextConfigChange, handleContextResolution, hasApiKey, hasContextConfig, hasCredentialReference, hashApiKey, invalidateInvocationDefinitionsCache, invalidateRequestContextCache, isApiKeyExpired, isArtifactComponentAssociatedWithAgent, isDataComponentAssociatedWithAgent, isValidHttpRequest, listAgentGraphs, listAgentGraphsPaginated, listAgentRelations, listAgentToolRelations, listAgents, listAgentsPaginated, listApiKeys, listApiKeysPaginated, listArtifactComponents, listArtifactComponentsPaginated, listContextConfigs, listContextConfigsPaginated, listConversations, listCredentialReferences, listCredentialReferencesPaginated, listDataComponents, listDataComponentsPaginated, listExternalAgents, listExternalAgentsPaginated, listMessages, listProjects, listProjectsPaginated, listTaskIdsByContextId, listTools, loadEnvironmentFiles, loggerFactory, maskApiKey, problemDetailsSchema, projectExists, projectExistsInTable, projectHasResources, removeArtifactComponentFromAgent, removeDataComponentFromAgent, removeToolFromAgent, requestContextSchema, setActiveAgentForConversation, setActiveAgentForThread, setCacheEntry, setSpanWithError, updateAgent, updateAgentGraph, updateAgentRelation, updateAgentToolRelation, updateApiKey, updateApiKeyLastUsed, updateArtifactComponent, updateContextConfig, updateConversation, updateConversationActiveAgent, updateCredentialReference, updateDataComponent, updateExternalAgent, updateFullGraphServerSide, updateFullProjectServerSide, updateMessage, updateProject, updateTask, updateTool, upsertAgent, upsertAgentArtifactComponentRelation, upsertAgentDataComponentRelation, upsertAgentGraph, upsertAgentRelation, upsertAgentToolRelation, upsertArtifactComponent, upsertContextConfig, upsertCredentialReference, upsertDataComponent, upsertExternalAgent, upsertLedgerArtifact, upsertTool, validateAgainstJsonSchema, validateAndGetApiKey, validateApiKey, validateExternalAgent, validateHttpRequestHeaders, validateInternalAgent, validateProjectExists, validateRequestContext, validationHelper, withProjectValidation };
4038
+ export { AgentGraphInsert, AgentGraphUpdate, AgentInsert, AgentRelationInsert, AgentRelationUpdate, AgentScopeConfig, AgentSelect, AgentToolRelationUpdate, AgentUpdate, ApiKeyCreateResult, type ApiKeyGenerationResult, ApiKeyInsert, ApiKeySelect, ApiKeyUpdate, Artifact, ArtifactComponentInsert, ArtifactComponentSelect, ArtifactComponentUpdate, type CommonCreateErrorResponses, type CommonDeleteErrorResponses, type CommonGetErrorResponses, type CommonUpdateErrorResponses, ContextCache, ContextCacheInsert, ContextCacheSelect, ContextConfigBuilder, type ContextConfigBuilderOptions, ContextConfigInsert, ContextConfigSelect, ContextConfigUpdate, ContextFetchDefinition, ContextFetcher, type ContextResolutionOptions, type ContextResolutionResult, ContextResolver, type ContextResolverInterface, type ContextValidationError, type ContextValidationResult, ConversationHistoryConfig, ConversationInsert, ConversationMetadata, ConversationSelect, ConversationUpdate, CreateApiKeyParams, type CredentialContext, type CredentialData, CredentialReferenceApiInsert, CredentialReferenceInsert, CredentialReferenceSelect, CredentialReferenceUpdate, type CredentialReferenceWithTools, type CredentialResolverInput, CredentialStore, type CredentialStoreReference, CredentialStoreRegistry, CredentialStoreType, CredentialStuffer, DataComponentInsert, DataComponentSelect, DataComponentUpdate, type DatabaseClient, type DatabaseConfig, type DotPaths, ERROR_DOCS_BASE_URL, ErrorCode, type ErrorCodes, type ErrorResponse, ExecutionContext, ExternalAgentInsert, ExternalAgentRelationInsert, ExternalAgentSelect, ExternalAgentUpdate, type FetchResult, FullGraphDefinition, FullProjectDefinition, FunctionApiInsert, type GraphLogger, GraphScopeConfig, HTTP_REQUEST_PARTS, type HttpRequestPart, InMemoryCredentialStore, KeyChainStore, LedgerArtifactSelect, type LoggerFactoryConfig, MCPToolConfig, MCPTransportType, McpClient, type McpClientOptions, type McpSSEConfig, type McpServerConfig, type McpStreamableHttpConfig, McpTool, MessageContent, MessageInsert, MessageMetadata, MessageUpdate, MessageVisibility, NangoCredentialStore, type OAuthConfig, PaginationConfig, PaginationResult, type ParsedHttpRequest, PinoLogger, type PinoLoggerConfig, type ProblemDetails, ProjectInfo, ProjectInsert, type ProjectLogger, ProjectResourceCounts, ProjectScopeConfig, ProjectSelect, ProjectUpdate, type ResolvedContext, TaskInsert, TaskMetadataConfig, TaskSelect, type TemplateContext, TemplateEngine, type TemplateRenderOptions, ToolInsert, ToolMcpConfig, ToolSelect, ToolServerCapabilities, ToolUpdate, addLedgerArtifacts, addToolToAgent, apiFetch, associateArtifactComponentWithAgent, associateDataComponentWithAgent, cleanupTenantCache, clearContextConfigCache, clearConversationCache, commonCreateErrorResponses, commonDeleteErrorResponses, commonGetErrorResponses, commonUpdateErrorResponses, contextConfig, contextValidationMiddleware, countApiKeys, countArtifactComponents, countArtifactComponentsForAgent, countContextConfigs, countCredentialReferences, countDataComponents, countExternalAgents, countLedgerArtifactsByTask, countMessagesByConversation, countProjects, createAgent, createAgentGraph, createAgentRelation, createAgentToolRelation, createApiError, createApiKey, createArtifactComponent, createContextConfig, createConversation, createCredentialReference, createDataComponent, createDatabaseClient, createDefaultCredentialStores, createExecutionContext, createExternalAgent, createExternalAgentRelation, createFullGraphServerSide, createFullProjectServerSide, createInMemoryDatabaseClient, createKeyChainStore, createMessage, createNangoCredentialStore, createOrGetConversation, createProject, createTask, createTool, createValidatedDataAccess, dbResultToMcpTool, deleteAgent, deleteAgentArtifactComponentRelationByAgent, deleteAgentDataComponentRelationByAgent, deleteAgentGraph, deleteAgentRelation, deleteAgentRelationsByGraph, deleteAgentToolRelation, deleteAgentToolRelationByAgent, deleteApiKey, deleteArtifactComponent, deleteContextConfig, deleteConversation, deleteCredentialReference, deleteDataComponent, deleteExternalAgent, deleteFullGraph, deleteFullProject, deleteFunction, deleteLedgerArtifactsByContext, deleteLedgerArtifactsByTask, deleteMessage, deleteProject, deleteTool, detectAuthenticationRequired, determineContextTrigger, discoverOAuthEndpoints, errorResponseSchema, errorSchemaFactory, externalAgentExists, externalAgentUrlExists, extractPublicId, fetchComponentRelationships, fetchDefinition, generateAndCreateApiKey, generateApiKey, generateId, getActiveAgentForConversation, getAgentById, getAgentGraphById, getAgentGraphWithDefaultAgent, getAgentRelationById, getAgentRelationByParams, getAgentRelations, getAgentRelationsByGraph, getAgentRelationsBySource, getAgentRelationsByTarget, getAgentToolRelationByAgent, getAgentToolRelationById, getAgentToolRelationByTool, getAgentsByIds, getAgentsForTool, getAgentsUsingArtifactComponent, getAgentsUsingDataComponent, getApiKeyById, getApiKeyByPublicId, getArtifactComponentById, getArtifactComponentsForAgent, getCacheEntry, getCachedValidator, getContextConfigById, getContextConfigCacheEntries, getConversation, getConversationCacheEntries, getConversationHistory, getConversationId, getCredentialReference, getCredentialReferenceById, getCredentialReferenceWithTools, getCredentialStoreLookupKeyFromRetrievalParams, getDataComponent, getDataComponentsForAgent, getExternalAgent, getExternalAgentByUrl, getExternalAgentRelations, getFullGraph, getFullGraphDefinition, getFullProject, getFunction, getGraphAgentInfos, getLedgerArtifacts, getLedgerArtifactsByContext, getLogger, getMessageById, getMessagesByConversation, getMessagesByTask, getProject, getProjectResourceCounts, getRelatedAgentsForGraph, getRequestExecutionContext, getTask, getToolById, getToolsForAgent, getTracer, getVisibleMessages, graphHasArtifactComponents, handleApiError, handleContextConfigChange, handleContextResolution, hasApiKey, hasContextConfig, hasCredentialReference, hashApiKey, headers, invalidateHeadersCache, invalidateInvocationDefinitionsCache, isApiKeyExpired, isArtifactComponentAssociatedWithAgent, isDataComponentAssociatedWithAgent, isValidHttpRequest, listAgentGraphs, listAgentGraphsPaginated, listAgentRelations, listAgentToolRelations, listAgents, listAgentsPaginated, listApiKeys, listApiKeysPaginated, listArtifactComponents, listArtifactComponentsPaginated, listContextConfigs, listContextConfigsPaginated, listConversations, listCredentialReferences, listCredentialReferencesPaginated, listDataComponents, listDataComponentsPaginated, listExternalAgents, listExternalAgentsPaginated, listFunctions, listMessages, listProjects, listProjectsPaginated, listTaskIdsByContextId, listTools, loadEnvironmentFiles, loggerFactory, maskApiKey, problemDetailsSchema, projectExists, projectExistsInTable, projectHasResources, removeArtifactComponentFromAgent, removeDataComponentFromAgent, removeToolFromAgent, setActiveAgentForConversation, setActiveAgentForThread, setCacheEntry, setSpanWithError, updateAgent, updateAgentGraph, updateAgentRelation, updateAgentToolRelation, updateApiKey, updateApiKeyLastUsed, updateArtifactComponent, updateContextConfig, updateConversation, updateConversationActiveAgent, updateCredentialReference, updateDataComponent, updateExternalAgent, updateFullGraphServerSide, updateFullProjectServerSide, updateMessage, updateProject, updateTask, updateTool, upsertAgent, upsertAgentArtifactComponentRelation, upsertAgentDataComponentRelation, upsertAgentGraph, upsertAgentRelation, upsertAgentToolRelation, upsertArtifactComponent, upsertContextConfig, upsertCredentialReference, upsertDataComponent, upsertExternalAgent, upsertFunction, upsertLedgerArtifact, upsertTool, validateAgainstJsonSchema, validateAndGetApiKey, validateApiKey, validateExternalAgent, validateHeaders, validateHttpRequestHeaders, validateInternalAgent, validateProjectExists, validationHelper, withProjectValidation };