@inkeep/agents-core 0.0.0-dev-20251111165914 → 0.0.0-dev-20251111211113

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 (61) hide show
  1. package/dist/{chunk-FSGS4BXB.js → chunk-FUJJ4OQ2.js} +1 -1
  2. package/dist/chunk-SVXWB2HF.js +592 -0
  3. package/dist/{chunk-T5TTDZ6L.js → chunk-VSQY72K5.js} +133 -133
  4. package/dist/{chunk-OFKWNZQL.js → chunk-X6ZMJ3G6.js} +1 -1
  5. package/dist/client-exports.cjs +211 -211
  6. package/dist/client-exports.d.cts +3 -3
  7. package/dist/client-exports.d.ts +3 -3
  8. package/dist/client-exports.js +2 -2
  9. package/dist/db/schema.cjs +211 -211
  10. package/dist/db/schema.d.cts +3 -3
  11. package/dist/db/schema.d.ts +3 -3
  12. package/dist/db/schema.js +1 -1
  13. package/dist/index.cjs +18286 -12238
  14. package/dist/index.d.cts +109 -104
  15. package/dist/index.d.ts +109 -104
  16. package/dist/index.js +16076 -10990
  17. package/dist/nodefs-X2JO4ZHZ.js +21 -0
  18. package/dist/opfs-ahp-2UFDGV73.js +318 -0
  19. package/dist/{schema-lPPu5F4P.d.ts → schema-CuEjPQt7.d.ts} +876 -1014
  20. package/dist/{schema-WwzWCq2K.d.cts → schema-D1P8r3qm.d.cts} +876 -1014
  21. package/dist/types/index.d.cts +3 -3
  22. package/dist/types/index.d.ts +3 -3
  23. package/dist/{utility-DJc47Ab9.d.cts → utility-DF5IUC9K.d.cts} +962 -1126
  24. package/dist/{utility-DJc47Ab9.d.ts → utility-DF5IUC9K.d.ts} +962 -1126
  25. package/dist/validation/index.cjs +211 -211
  26. package/dist/validation/index.d.cts +3 -3
  27. package/dist/validation/index.d.ts +3 -3
  28. package/dist/validation/index.js +2 -2
  29. package/drizzle/0000_exotic_mysterio.sql +398 -0
  30. package/drizzle/meta/0000_snapshot.json +1683 -1223
  31. package/drizzle/meta/_journal.json +4 -102
  32. package/package.json +6 -3
  33. package/drizzle/0000_material_menace.sql +0 -326
  34. package/drizzle/0001_eminent_fixer.sql +0 -43
  35. package/drizzle/0002_bumpy_romulus.sql +0 -3
  36. package/drizzle/0003_soft_forgotten_one.sql +0 -39
  37. package/drizzle/0004_melted_omega_flight.sql +0 -3
  38. package/drizzle/0005_wide_shriek.sql +0 -127
  39. package/drizzle/0006_damp_lenny_balinger.sql +0 -52
  40. package/drizzle/0007_mighty_typhoid_mary.sql +0 -227
  41. package/drizzle/0008_mysterious_crusher_hogan.sql +0 -20
  42. package/drizzle/0009_old_black_cat.sql +0 -1
  43. package/drizzle/0010_wet_vampiro.sql +0 -2
  44. package/drizzle/0011_slippery_korg.sql +0 -36
  45. package/drizzle/0012_salty_psynapse.sql +0 -17
  46. package/drizzle/0013_shocking_blur.sql +0 -19
  47. package/drizzle/0014_broad_hellfire_club.sql +0 -29
  48. package/drizzle/meta/0001_snapshot.json +0 -2435
  49. package/drizzle/meta/0002_snapshot.json +0 -2428
  50. package/drizzle/meta/0003_snapshot.json +0 -2559
  51. package/drizzle/meta/0004_snapshot.json +0 -2547
  52. package/drizzle/meta/0005_snapshot.json +0 -2558
  53. package/drizzle/meta/0006_snapshot.json +0 -2751
  54. package/drizzle/meta/0007_snapshot.json +0 -2766
  55. package/drizzle/meta/0008_snapshot.json +0 -2753
  56. package/drizzle/meta/0009_snapshot.json +0 -2744
  57. package/drizzle/meta/0010_snapshot.json +0 -2751
  58. package/drizzle/meta/0011_snapshot.json +0 -2849
  59. package/drizzle/meta/0012_snapshot.json +0 -2985
  60. package/drizzle/meta/0013_snapshot.json +0 -2988
  61. package/drizzle/meta/0014_snapshot.json +0 -2992
package/dist/index.d.ts CHANGED
@@ -2,17 +2,18 @@ export { ANTHROPIC_MODELS, AnthropicModel, GOOGLE_MODELS, GoogleModel, ModelName
2
2
  import { r as PinoLogger, s as getLogger } from './auth-detection-CGqhPDnj.js';
3
3
  export { i as ACTIVITY_NAMES, g as ACTIVITY_STATUS, f as ACTIVITY_TYPES, h as AGENT_IDS, p as AGGREGATE_OPERATORS, A as AI_OPERATIONS, j as AI_TOOL_TYPES, o as DATA_SOURCES, k as DATA_TYPES, D as DELEGATION_FROM_SUB_AGENT_ID, b as DELEGATION_ID, a as DELEGATION_TO_SUB_AGENT_ID, F as FIELD_TYPES, L as LoggerFactoryConfig, M as McpOAuthFlowResult, u as McpTokenExchangeResult, t as OAuthConfig, O as OPERATORS, m as ORDER_DIRECTIONS, P as PANEL_TYPES, x as PinoLoggerConfig, q as QUERY_DEFAULTS, l as QUERY_EXPRESSIONS, Q as QUERY_FIELD_CONFIGS, n as QUERY_TYPES, R as REDUCE_OPERATIONS, e as SPAN_KEYS, S as SPAN_NAMES, T as TRANSFER_FROM_SUB_AGENT_ID, c as TRANSFER_TO_SUB_AGENT_ID, U as UNKNOWN_VALUE, d as detectAuthenticationRequired, w as exchangeMcpAuthorizationCode, v as initiateMcpOAuthFlow, y as loggerFactory } from './auth-detection-CGqhPDnj.js';
4
4
  import { z } from 'zod';
5
- import { r as CredentialReferenceApiInsert, s as ContextConfigSelect, l as ContextFetchDefinition, i as MCPTransportType, t as MCPToolConfig, u as ProjectScopeConfig, v as FullAgentDefinition, w as AgentScopeConfig, C as ConversationHistoryConfig, x as PaginationConfig, y as AgentInsert, z as AgentUpdate, B as AgentSelect, D as ApiKeySelect, E as ApiKeyInsert, G as ApiKeyUpdate, H as CreateApiKeyParams, I as ApiKeyCreateResult, J as ArtifactComponentSelect, K as ArtifactComponentInsert, L as ArtifactComponentUpdate, N as SubAgentScopeConfig, O as ContextCacheSelect, Q as ContextCacheInsert, R as ContextConfigInsert, U as ContextConfigUpdate, V as ConversationSelect, W as ConversationInsert, o as ConversationMetadata, X as ConversationUpdate, Y as CredentialReferenceSelect, Z as ToolSelect, _ as ExternalAgentSelect, $ as CredentialReferenceInsert, a0 as CredentialReferenceUpdate, a1 as DataComponentSelect, a2 as DataComponentInsert, a3 as DataComponentUpdate, a4 as ExternalAgentInsert, a5 as ExternalAgentUpdate, a6 as FunctionApiInsert, a7 as FunctionToolApiInsert, a8 as FunctionToolApiUpdate, a9 as Artifact, aa as LedgerArtifactSelect, q as MessageMetadata, p 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 SubAgentExternalAgentRelationInsert, am as SubAgentRelationInsert, an as SubAgentRelationUpdate, ao as SubAgentToolRelationUpdate, m as ToolMcpConfig, n as ToolServerCapabilities, ap as SubAgentInsert, aq as SubAgentUpdate, ar as SubAgentSelect, as as SubAgentTeamAgentRelationInsert, at as TaskInsert, T as TaskMetadataConfig, au as TaskSelect, av as McpTool, aw as ToolInsert, ax as ToolUpdate, h as CredentialStoreType, ay as ExecutionContext } from './utility-DJc47Ab9.js';
6
- export { ba as A2AError, bG as A2ARequest, bH as A2AResponse, aL as APIKeySecurityScheme, bV as AgentApiInsert, e6 as AgentApiInsertSchema, bU as AgentApiSelect, e5 as AgentApiSelectSchema, bW as AgentApiUpdate, e7 as AgentApiUpdateSchema, aH as AgentCapabilities, aV as AgentCard, dx as AgentConversationHistoryConfig, e3 as AgentInsertSchema, gQ as AgentListResponse, aI as AgentProvider, gA as AgentResponse, e2 as AgentSelectSchema, aJ as AgentSkill, e as AgentStopWhen, b as AgentStopWhenSchema, e4 as AgentUpdateSchema, gk as AgentWithinContextOfProjectSchema, fa as AllAgentSchema, cP as AllAgentSelect, cT as ApiKeyApiCreationResponse, ff as ApiKeyApiCreationResponseSchema, cR as ApiKeyApiInsert, fg as ApiKeyApiInsertSchema, cQ as ApiKeyApiSelect, fe as ApiKeyApiSelectSchema, cS as ApiKeyApiUpdate, A as ApiKeyApiUpdateSchema, fc as ApiKeyInsertSchema, gU as ApiKeyListResponse, gE as ApiKeyResponse, fb as ApiKeySelectSchema, fd as ApiKeyUpdateSchema, cE as ArtifactComponentApiInsert, eY as ArtifactComponentApiInsertSchema, cD as ArtifactComponentApiSelect, eX as ArtifactComponentApiSelectSchema, cF as ArtifactComponentApiUpdate, eZ as ArtifactComponentApiUpdateSchema, eV as ArtifactComponentInsertSchema, gZ as ArtifactComponentListResponse, gJ as ArtifactComponentResponse, eU as ArtifactComponentSelectSchema, eW as ArtifactComponentUpdateSchema, aO as AuthorizationCodeOAuthFlow, dg as CanDelegateToExternalAgent, df as CanUseItem, gg as CanUseItemSchema, bq as CancelTaskRequest, bB as CancelTaskResponse, bA as CancelTaskSuccessResponse, aP as ClientCredentialsOAuthFlow, fs as ComponentAssociationSchema, b8 as ContentTypeNotSupportedError, cs as ContextCacheApiInsert, eF as ContextCacheApiInsertSchema, cr as ContextCacheApiSelect, eE as ContextCacheApiSelectSchema, ct as ContextCacheApiUpdate, eG as ContextCacheApiUpdateSchema, dy as ContextCacheEntry, eC as ContextCacheInsertSchema, eB as ContextCacheSelectSchema, cq as ContextCacheUpdate, eD as ContextCacheUpdateSchema, cm as ContextConfigApiInsert, fQ as ContextConfigApiInsertSchema, cl as ContextConfigApiSelect, fP as ContextConfigApiSelectSchema, cn as ContextConfigApiUpdate, fR as ContextConfigApiUpdateSchema, fN as ContextConfigInsertSchema, gT as ContextConfigListResponse, gD as ContextConfigResponse, fM as ContextConfigSelectSchema, fO as ContextConfigUpdateSchema, cf as ConversationApiInsert, et as ConversationApiInsertSchema, ce as ConversationApiSelect, es as ConversationApiSelectSchema, cg as ConversationApiUpdate, eu as ConversationApiUpdateSchema, eq as ConversationInsertSchema, h0 as ConversationListResponse, gM as ConversationResponse, dw as ConversationScopeOptions, ep as ConversationSelectSchema, er as ConversationUpdateSchema, fp as CreateCredentialInStoreRequestSchema, fq as CreateCredentialInStoreResponseSchema, fl as CredentialReferenceApiInsertSchema, cU as CredentialReferenceApiSelect, fk as CredentialReferenceApiSelectSchema, cV as CredentialReferenceApiUpdate, fm as CredentialReferenceApiUpdateSchema, fi as CredentialReferenceInsertSchema, gV as CredentialReferenceListResponse, gF as CredentialReferenceResponse, fh as CredentialReferenceSelectSchema, fj as CredentialReferenceUpdateSchema, fo as CredentialStoreListResponseSchema, fn as CredentialStoreSchema, cv as DataComponentApiInsert, eM as DataComponentApiInsertSchema, cu as DataComponentApiSelect, eL as DataComponentApiSelectSchema, cw as DataComponentApiUpdate, eN as DataComponentApiUpdateSchema, eJ as DataComponentBaseSchema, eI as DataComponentInsertSchema, gY as DataComponentListResponse, gI as DataComponentResponse, eH as DataComponentSelectSchema, eK as DataComponentUpdateSchema, aF as DataPart, go as ErrorResponseSchema, gp as ExistsResponseSchema, cN as ExternalAgentApiInsert, f8 as ExternalAgentApiInsertSchema, cM as ExternalAgentApiSelect, f7 as ExternalAgentApiSelectSchema, cO as ExternalAgentApiUpdate, f9 as ExternalAgentApiUpdateSchema, f5 as ExternalAgentInsertSchema, gS as ExternalAgentListResponse, gC as ExternalAgentResponse, f4 as ExternalAgentSelectSchema, f6 as ExternalAgentUpdateSchema, bT as ExternalSubAgentRelationApiInsert, e1 as ExternalSubAgentRelationApiInsertSchema, bS as ExternalSubAgentRelationInsert, e0 as ExternalSubAgentRelationInsertSchema, cp as FetchConfig, fK as FetchConfigSchema, co as FetchDefinition, fL as FetchDefinitionSchema, aB as FileBase, aE as FilePart, aC as FileWithBytes, aD as FileWithUri, de as FullAgentAgentInsert, a as FullAgentAgentInsertSchema, gx as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, cb as FunctionApiSelect, j as FunctionApiSelectSchema, cc as FunctionApiUpdate, k as FunctionApiUpdateSchema, c9 as FunctionInsert, fI as FunctionInsertSchema, gW as FunctionListResponse, gG as FunctionResponse, c8 as FunctionSelect, fH as FunctionSelectSchema, fF as FunctionToolApiInsertSchema, cd as FunctionToolApiSelect, fE as FunctionToolApiSelectSchema, fG as FunctionToolApiUpdateSchema, dO as FunctionToolConfig, dN as FunctionToolConfigSchema, fC as FunctionToolInsertSchema, gX as FunctionToolListResponse, gH as FunctionToolResponse, fB as FunctionToolSelectSchema, fD as FunctionToolUpdateSchema, ca as FunctionUpdate, fJ as FunctionUpdateSchema, bs as GetTaskPushNotificationConfigRequest, bF as GetTaskPushNotificationConfigResponse, bE as GetTaskPushNotificationConfigSuccessResponse, bp as GetTaskRequest, bz as GetTaskResponse, by as GetTaskSuccessResponse, aM as HTTPAuthSecurityScheme, h6 as HeadersScopeSchema, aQ as ImplicitOAuthFlow, b3 as InternalError, b9 as InvalidAgentResponseError, b2 as InvalidParamsError, b0 as InvalidRequestError, a$ as JSONParseError, bk as JSONRPCError, bm as JSONRPCErrorResponse, bi as JSONRPCMessage, bj as JSONRPCRequest, bl as JSONRPCResult, dc as LedgerArtifactApiInsert, gc as LedgerArtifactApiInsertSchema, db as LedgerArtifactApiSelect, gb as LedgerArtifactApiSelectSchema, dd as LedgerArtifactApiUpdate, gd as LedgerArtifactApiUpdateSchema, d9 as LedgerArtifactInsert, g9 as LedgerArtifactInsertSchema, g8 as LedgerArtifactSelectSchema, da as LedgerArtifactUpdate, ga as LedgerArtifactUpdateSchema, gm as ListResponseSchema, dI as MAX_ID_LENGTH, dG as MCPServerType, fw as MCPToolConfigSchema, dH as MIN_ID_LENGTH, dz as McpAuthType, dA as McpServerAuth, dC as McpServerCapabilities, dD as McpToolDefinition, em as McpToolDefinitionSchema, fv as McpToolSchema, dB as McpTransportConfig, ek as McpTransportConfigSchema, aW as Message, cj as MessageApiInsert, ez as MessageApiInsertSchema, ci as MessageApiSelect, ey as MessageApiSelectSchema, ck as MessageApiUpdate, eA as MessageApiUpdateSchema, ew as MessageInsertSchema, h1 as MessageListResponse, dr as MessageMode, bI as MessagePart, gN as MessageResponse, dq as MessageRole, ch as MessageSelect, ev as MessageSelectSchema, bg as MessageSendConfiguration, bh as MessageSendParams, dp as MessageType, ex as MessageUpdateSchema, b1 as MethodNotFoundError, dL as ModelSchema, g as ModelSettings, M as ModelSettingsSchema, ds as Models, aS as OAuth2SecurityScheme, fu as OAuthCallbackQuerySchema, aN as OAuthFlows, ft as OAuthLoginQuerySchema, aT as OpenIdConnectSecurityScheme, dm as Pagination, hf as PaginationQueryParamsSchema, gl as PaginationSchema, P as Part, az as PartBase, aR as PasswordOAuthFlow, dk as ProjectApiInsert, gv as ProjectApiInsertSchema, dj as ProjectApiSelect, gu as ProjectApiSelectSchema, dl as ProjectApiUpdate, gw as ProjectApiUpdateSchema, gs as ProjectInsertSchema, gO as ProjectListResponse, dM as ProjectModelSchema, dt as ProjectModels, gy as ProjectResponse, gr as ProjectSelectSchema, gt as ProjectUpdateSchema, bb as PushNotificationAuthenticationInfo, bc as PushNotificationConfig, b6 as PushNotificationNotSupportedError, fr as RelatedAgentInfoSchema, gq as RemovedResponseSchema, aU as SecurityScheme, aK as SecuritySchemeBase, bn as SendMessageRequest, bv as SendMessageResponse, bu as SendMessageSuccessResponse, bo as SendStreamingMessageRequest, bx as SendStreamingMessageResponse, bw as SendStreamingMessageSuccessResponse, br as SetTaskPushNotificationConfigRequest, bD as SetTaskPushNotificationConfigResponse, bC as SetTaskPushNotificationConfigSuccessResponse, gn as SingleResponseSchema, dv as StatusComponent, ge as StatusComponentSchema, gf as StatusUpdateSchema, du as StatusUpdateSettings, d as StopWhen, S as StopWhenSchema, bL as SubAgentApiInsert, dT as SubAgentApiInsertSchema, bK as SubAgentApiSelect, dS as SubAgentApiSelectSchema, bM as SubAgentApiUpdate, dU as SubAgentApiUpdateSchema, cK as SubAgentArtifactComponentApiInsert, f2 as SubAgentArtifactComponentApiInsertSchema, cJ as SubAgentArtifactComponentApiSelect, f1 as SubAgentArtifactComponentApiSelectSchema, cL as SubAgentArtifactComponentApiUpdate, f3 as SubAgentArtifactComponentApiUpdateSchema, cH as SubAgentArtifactComponentInsert, e$ as SubAgentArtifactComponentInsertSchema, h5 as SubAgentArtifactComponentListResponse, h3 as SubAgentArtifactComponentResponse, cG as SubAgentArtifactComponentSelect, e_ as SubAgentArtifactComponentSelectSchema, cI as SubAgentArtifactComponentUpdate, f0 as SubAgentArtifactComponentUpdateSchema, cB as SubAgentDataComponentApiInsert, eS as SubAgentDataComponentApiInsertSchema, cA as SubAgentDataComponentApiSelect, eR as SubAgentDataComponentApiSelectSchema, cC as SubAgentDataComponentApiUpdate, eT as SubAgentDataComponentApiUpdateSchema, cy as SubAgentDataComponentInsert, eP as SubAgentDataComponentInsertSchema, h4 as SubAgentDataComponentListResponse, h2 as SubAgentDataComponentResponse, cx as SubAgentDataComponentSelect, eO as SubAgentDataComponentSelectSchema, cz as SubAgentDataComponentUpdate, eQ as SubAgentDataComponentUpdateSchema, dh as SubAgentDefinition, d2 as SubAgentExternalAgentRelationApiInsert, g0 as SubAgentExternalAgentRelationApiInsertSchema, d1 as SubAgentExternalAgentRelationApiSelect, f$ as SubAgentExternalAgentRelationApiSelectSchema, d3 as SubAgentExternalAgentRelationApiUpdate, g1 as SubAgentExternalAgentRelationApiUpdateSchema, fZ as SubAgentExternalAgentRelationInsertSchema, c$ as SubAgentExternalAgentRelationSelect, fY as SubAgentExternalAgentRelationSelectSchema, d0 as SubAgentExternalAgentRelationUpdate, f_ as SubAgentExternalAgentRelationUpdateSchema, dQ as SubAgentInsertSchema, gP as SubAgentListResponse, bP as SubAgentRelationApiInsert, dZ as SubAgentRelationApiInsertSchema, bO as SubAgentRelationApiSelect, dY as SubAgentRelationApiSelectSchema, bQ as SubAgentRelationApiUpdate, d_ as SubAgentRelationApiUpdateSchema, dW as SubAgentRelationInsertSchema, g_ as SubAgentRelationListResponse, bR as SubAgentRelationQuery, d$ as SubAgentRelationQuerySchema, gK as SubAgentRelationResponse, bN as SubAgentRelationSelect, dV as SubAgentRelationSelectSchema, dX as SubAgentRelationUpdateSchema, gz as SubAgentResponse, dP as SubAgentSelectSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema, d7 as SubAgentTeamAgentRelationApiInsert, g6 as SubAgentTeamAgentRelationApiInsertSchema, d6 as SubAgentTeamAgentRelationApiSelect, g5 as SubAgentTeamAgentRelationApiSelectSchema, d8 as SubAgentTeamAgentRelationApiUpdate, g7 as SubAgentTeamAgentRelationApiUpdateSchema, g3 as SubAgentTeamAgentRelationInsertSchema, d4 as SubAgentTeamAgentRelationSelect, g2 as SubAgentTeamAgentRelationSelectSchema, d5 as SubAgentTeamAgentRelationUpdate, g4 as SubAgentTeamAgentRelationUpdateSchema, cZ as SubAgentToolRelationApiInsert, fW as SubAgentToolRelationApiInsertSchema, cY as SubAgentToolRelationApiSelect, fV as SubAgentToolRelationApiSelectSchema, c_ as SubAgentToolRelationApiUpdate, fX as SubAgentToolRelationApiUpdateSchema, cX as SubAgentToolRelationInsert, fT as SubAgentToolRelationInsertSchema, g$ as SubAgentToolRelationListResponse, gL as SubAgentToolRelationResponse, cW as SubAgentToolRelationSelect, fS as SubAgentToolRelationSelectSchema, fU as SubAgentToolRelationUpdateSchema, dR as SubAgentUpdateSchema, dn as SummaryEvent, dE as TOOL_STATUS_VALUES, aY as Task, bZ as TaskApiInsert, ec as TaskApiInsertSchema, bY as TaskApiSelect, eb as TaskApiSelectSchema, b_ as TaskApiUpdate, ed as TaskApiUpdateSchema, bJ as TaskArtifact, a_ as TaskArtifactUpdateEvent, be as TaskIdParams, e9 as TaskInsertSchema, b5 as TaskNotCancelableError, b4 as TaskNotFoundError, bd as TaskPushNotificationConfig, bf as TaskQueryParams, c3 as TaskRelationApiInsert, ei as TaskRelationApiInsertSchema, c2 as TaskRelationApiSelect, eh as TaskRelationApiSelectSchema, c4 as TaskRelationApiUpdate, ej as TaskRelationApiUpdateSchema, c0 as TaskRelationInsert, ef as TaskRelationInsertSchema, b$ as TaskRelationSelect, ee as TaskRelationSelectSchema, c1 as TaskRelationUpdate, eg as TaskRelationUpdateSchema, bt as TaskResubscriptionRequest, e8 as TaskSelectSchema, aG as TaskState, aX as TaskStatus, aZ as TaskStatusUpdateEvent, bX as TaskUpdate, ea as TaskUpdateSchema, gj as TeamAgentSchema, h8 as TenantIdParamsSchema, h7 as TenantParamsSchema, hc as TenantProjectAgentIdParamsSchema, hb as TenantProjectAgentParamsSchema, he as TenantProjectAgentSubAgentIdParamsSchema, hd as TenantProjectAgentSubAgentParamsSchema, ha as TenantProjectIdParamsSchema, h9 as TenantProjectParamsSchema, aA as TextPart, c6 as ToolApiInsert, fz as ToolApiInsertSchema, c5 as ToolApiSelect, fy as ToolApiSelectSchema, c7 as ToolApiUpdate, fA as ToolApiUpdateSchema, di as ToolDefinition, eo as ToolInsertSchema, gR as ToolListResponse, gB as ToolResponse, en as ToolSelectSchema, el as ToolStatusSchema, fx as ToolUpdateSchema, dJ as URL_SAFE_ID_PATTERN, b7 as UnsupportedOperationError, dF as VALID_RELATION_TYPES, gh as canDelegateToExternalAgentSchema, gi as canDelegateToTeamAgentSchema, dK as resourceIdSchema } from './utility-DJc47Ab9.js';
5
+ import { r as CredentialReferenceApiInsert, s as ContextConfigSelect, l as ContextFetchDefinition, i as MCPTransportType, t as MCPToolConfig, u as ProjectScopeConfig, v as FullAgentDefinition, w as AgentScopeConfig, C as ConversationHistoryConfig, x as PaginationConfig, y as AgentInsert, z as AgentUpdate, B as AgentSelect, D as ApiKeySelect, E as ApiKeyInsert, G as ApiKeyUpdate, H as CreateApiKeyParams, I as ApiKeyCreateResult, J as ArtifactComponentSelect, K as ArtifactComponentInsert, L as ArtifactComponentUpdate, N as SubAgentScopeConfig, O as ContextCacheSelect, Q as ContextCacheInsert, R as ContextConfigInsert, U as ContextConfigUpdate, V as ConversationSelect, W as ConversationInsert, o as ConversationMetadata, X as ConversationUpdate, Y as CredentialReferenceSelect, Z as ToolSelect, _ as ExternalAgentSelect, $ as CredentialReferenceInsert, a0 as CredentialReferenceUpdate, a1 as DataComponentSelect, a2 as DataComponentInsert, a3 as DataComponentUpdate, a4 as ExternalAgentInsert, a5 as ExternalAgentUpdate, a6 as FunctionApiInsert, a7 as FunctionToolApiInsert, a8 as FunctionToolApiUpdate, a9 as Artifact, aa as LedgerArtifactSelect, q as MessageMetadata, p 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 SubAgentExternalAgentRelationInsert, am as SubAgentRelationInsert, an as SubAgentRelationUpdate, ao as SubAgentToolRelationUpdate, m as ToolMcpConfig, n as ToolServerCapabilities, ap as SubAgentInsert, aq as SubAgentUpdate, ar as SubAgentSelect, as as SubAgentTeamAgentRelationInsert, at as TaskInsert, T as TaskMetadataConfig, au as TaskSelect, av as McpTool, aw as ToolInsert, ax as ToolUpdate, h as CredentialStoreType, ay as ExecutionContext } from './utility-DF5IUC9K.js';
6
+ export { ba as A2AError, bG as A2ARequest, bH as A2AResponse, aL as APIKeySecurityScheme, bV as AgentApiInsert, e6 as AgentApiInsertSchema, bU as AgentApiSelect, e5 as AgentApiSelectSchema, bW as AgentApiUpdate, e7 as AgentApiUpdateSchema, aH as AgentCapabilities, aV as AgentCard, dx as AgentConversationHistoryConfig, e3 as AgentInsertSchema, gQ as AgentListResponse, aI as AgentProvider, gA as AgentResponse, e2 as AgentSelectSchema, aJ as AgentSkill, e as AgentStopWhen, b as AgentStopWhenSchema, e4 as AgentUpdateSchema, gk as AgentWithinContextOfProjectSchema, fa as AllAgentSchema, cP as AllAgentSelect, cT as ApiKeyApiCreationResponse, ff as ApiKeyApiCreationResponseSchema, cR as ApiKeyApiInsert, fg as ApiKeyApiInsertSchema, cQ as ApiKeyApiSelect, fe as ApiKeyApiSelectSchema, cS as ApiKeyApiUpdate, A as ApiKeyApiUpdateSchema, fc as ApiKeyInsertSchema, gU as ApiKeyListResponse, gE as ApiKeyResponse, fb as ApiKeySelectSchema, fd as ApiKeyUpdateSchema, cE as ArtifactComponentApiInsert, eY as ArtifactComponentApiInsertSchema, cD as ArtifactComponentApiSelect, eX as ArtifactComponentApiSelectSchema, cF as ArtifactComponentApiUpdate, eZ as ArtifactComponentApiUpdateSchema, eV as ArtifactComponentInsertSchema, gZ as ArtifactComponentListResponse, gJ as ArtifactComponentResponse, eU as ArtifactComponentSelectSchema, eW as ArtifactComponentUpdateSchema, aO as AuthorizationCodeOAuthFlow, dg as CanDelegateToExternalAgent, df as CanUseItem, gg as CanUseItemSchema, bq as CancelTaskRequest, bB as CancelTaskResponse, bA as CancelTaskSuccessResponse, aP as ClientCredentialsOAuthFlow, fs as ComponentAssociationSchema, b8 as ContentTypeNotSupportedError, cs as ContextCacheApiInsert, eF as ContextCacheApiInsertSchema, cr as ContextCacheApiSelect, eE as ContextCacheApiSelectSchema, ct as ContextCacheApiUpdate, eG as ContextCacheApiUpdateSchema, dy as ContextCacheEntry, eC as ContextCacheInsertSchema, eB as ContextCacheSelectSchema, cq as ContextCacheUpdate, eD as ContextCacheUpdateSchema, cm as ContextConfigApiInsert, fQ as ContextConfigApiInsertSchema, cl as ContextConfigApiSelect, fP as ContextConfigApiSelectSchema, cn as ContextConfigApiUpdate, fR as ContextConfigApiUpdateSchema, fN as ContextConfigInsertSchema, gT as ContextConfigListResponse, gD as ContextConfigResponse, fM as ContextConfigSelectSchema, fO as ContextConfigUpdateSchema, cf as ConversationApiInsert, et as ConversationApiInsertSchema, ce as ConversationApiSelect, es as ConversationApiSelectSchema, cg as ConversationApiUpdate, eu as ConversationApiUpdateSchema, eq as ConversationInsertSchema, h0 as ConversationListResponse, gM as ConversationResponse, dw as ConversationScopeOptions, ep as ConversationSelectSchema, er as ConversationUpdateSchema, fp as CreateCredentialInStoreRequestSchema, fq as CreateCredentialInStoreResponseSchema, fl as CredentialReferenceApiInsertSchema, cU as CredentialReferenceApiSelect, fk as CredentialReferenceApiSelectSchema, cV as CredentialReferenceApiUpdate, fm as CredentialReferenceApiUpdateSchema, fi as CredentialReferenceInsertSchema, gV as CredentialReferenceListResponse, gF as CredentialReferenceResponse, fh as CredentialReferenceSelectSchema, fj as CredentialReferenceUpdateSchema, fo as CredentialStoreListResponseSchema, fn as CredentialStoreSchema, cv as DataComponentApiInsert, eM as DataComponentApiInsertSchema, cu as DataComponentApiSelect, eL as DataComponentApiSelectSchema, cw as DataComponentApiUpdate, eN as DataComponentApiUpdateSchema, eJ as DataComponentBaseSchema, eI as DataComponentInsertSchema, gY as DataComponentListResponse, gI as DataComponentResponse, eH as DataComponentSelectSchema, eK as DataComponentUpdateSchema, aF as DataPart, go as ErrorResponseSchema, gp as ExistsResponseSchema, cN as ExternalAgentApiInsert, f8 as ExternalAgentApiInsertSchema, cM as ExternalAgentApiSelect, f7 as ExternalAgentApiSelectSchema, cO as ExternalAgentApiUpdate, f9 as ExternalAgentApiUpdateSchema, f5 as ExternalAgentInsertSchema, gS as ExternalAgentListResponse, gC as ExternalAgentResponse, f4 as ExternalAgentSelectSchema, f6 as ExternalAgentUpdateSchema, bT as ExternalSubAgentRelationApiInsert, e1 as ExternalSubAgentRelationApiInsertSchema, bS as ExternalSubAgentRelationInsert, e0 as ExternalSubAgentRelationInsertSchema, cp as FetchConfig, fK as FetchConfigSchema, co as FetchDefinition, fL as FetchDefinitionSchema, aB as FileBase, aE as FilePart, aC as FileWithBytes, aD as FileWithUri, de as FullAgentAgentInsert, a as FullAgentAgentInsertSchema, gx as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, cb as FunctionApiSelect, j as FunctionApiSelectSchema, cc as FunctionApiUpdate, k as FunctionApiUpdateSchema, c9 as FunctionInsert, fI as FunctionInsertSchema, gW as FunctionListResponse, gG as FunctionResponse, c8 as FunctionSelect, fH as FunctionSelectSchema, fF as FunctionToolApiInsertSchema, cd as FunctionToolApiSelect, fE as FunctionToolApiSelectSchema, fG as FunctionToolApiUpdateSchema, dO as FunctionToolConfig, dN as FunctionToolConfigSchema, fC as FunctionToolInsertSchema, gX as FunctionToolListResponse, gH as FunctionToolResponse, fB as FunctionToolSelectSchema, fD as FunctionToolUpdateSchema, ca as FunctionUpdate, fJ as FunctionUpdateSchema, bs as GetTaskPushNotificationConfigRequest, bF as GetTaskPushNotificationConfigResponse, bE as GetTaskPushNotificationConfigSuccessResponse, bp as GetTaskRequest, bz as GetTaskResponse, by as GetTaskSuccessResponse, aM as HTTPAuthSecurityScheme, h6 as HeadersScopeSchema, aQ as ImplicitOAuthFlow, b3 as InternalError, b9 as InvalidAgentResponseError, b2 as InvalidParamsError, b0 as InvalidRequestError, a$ as JSONParseError, bk as JSONRPCError, bm as JSONRPCErrorResponse, bi as JSONRPCMessage, bj as JSONRPCRequest, bl as JSONRPCResult, dc as LedgerArtifactApiInsert, gc as LedgerArtifactApiInsertSchema, db as LedgerArtifactApiSelect, gb as LedgerArtifactApiSelectSchema, dd as LedgerArtifactApiUpdate, gd as LedgerArtifactApiUpdateSchema, d9 as LedgerArtifactInsert, g9 as LedgerArtifactInsertSchema, g8 as LedgerArtifactSelectSchema, da as LedgerArtifactUpdate, ga as LedgerArtifactUpdateSchema, gm as ListResponseSchema, dI as MAX_ID_LENGTH, dG as MCPServerType, fw as MCPToolConfigSchema, dH as MIN_ID_LENGTH, dz as McpAuthType, dA as McpServerAuth, dC as McpServerCapabilities, dD as McpToolDefinition, em as McpToolDefinitionSchema, fv as McpToolSchema, dB as McpTransportConfig, ek as McpTransportConfigSchema, aW as Message, cj as MessageApiInsert, ez as MessageApiInsertSchema, ci as MessageApiSelect, ey as MessageApiSelectSchema, ck as MessageApiUpdate, eA as MessageApiUpdateSchema, ew as MessageInsertSchema, h1 as MessageListResponse, dr as MessageMode, bI as MessagePart, gN as MessageResponse, dq as MessageRole, ch as MessageSelect, ev as MessageSelectSchema, bg as MessageSendConfiguration, bh as MessageSendParams, dp as MessageType, ex as MessageUpdateSchema, b1 as MethodNotFoundError, dL as ModelSchema, g as ModelSettings, M as ModelSettingsSchema, ds as Models, aS as OAuth2SecurityScheme, fu as OAuthCallbackQuerySchema, aN as OAuthFlows, ft as OAuthLoginQuerySchema, aT as OpenIdConnectSecurityScheme, dm as Pagination, hf as PaginationQueryParamsSchema, gl as PaginationSchema, P as Part, az as PartBase, aR as PasswordOAuthFlow, dk as ProjectApiInsert, gv as ProjectApiInsertSchema, dj as ProjectApiSelect, gu as ProjectApiSelectSchema, dl as ProjectApiUpdate, gw as ProjectApiUpdateSchema, gs as ProjectInsertSchema, gO as ProjectListResponse, dM as ProjectModelSchema, dt as ProjectModels, gy as ProjectResponse, gr as ProjectSelectSchema, gt as ProjectUpdateSchema, bb as PushNotificationAuthenticationInfo, bc as PushNotificationConfig, b6 as PushNotificationNotSupportedError, fr as RelatedAgentInfoSchema, gq as RemovedResponseSchema, aU as SecurityScheme, aK as SecuritySchemeBase, bn as SendMessageRequest, bv as SendMessageResponse, bu as SendMessageSuccessResponse, bo as SendStreamingMessageRequest, bx as SendStreamingMessageResponse, bw as SendStreamingMessageSuccessResponse, br as SetTaskPushNotificationConfigRequest, bD as SetTaskPushNotificationConfigResponse, bC as SetTaskPushNotificationConfigSuccessResponse, gn as SingleResponseSchema, dv as StatusComponent, ge as StatusComponentSchema, gf as StatusUpdateSchema, du as StatusUpdateSettings, d as StopWhen, S as StopWhenSchema, bL as SubAgentApiInsert, dT as SubAgentApiInsertSchema, bK as SubAgentApiSelect, dS as SubAgentApiSelectSchema, bM as SubAgentApiUpdate, dU as SubAgentApiUpdateSchema, cK as SubAgentArtifactComponentApiInsert, f2 as SubAgentArtifactComponentApiInsertSchema, cJ as SubAgentArtifactComponentApiSelect, f1 as SubAgentArtifactComponentApiSelectSchema, cL as SubAgentArtifactComponentApiUpdate, f3 as SubAgentArtifactComponentApiUpdateSchema, cH as SubAgentArtifactComponentInsert, e$ as SubAgentArtifactComponentInsertSchema, h5 as SubAgentArtifactComponentListResponse, h3 as SubAgentArtifactComponentResponse, cG as SubAgentArtifactComponentSelect, e_ as SubAgentArtifactComponentSelectSchema, cI as SubAgentArtifactComponentUpdate, f0 as SubAgentArtifactComponentUpdateSchema, cB as SubAgentDataComponentApiInsert, eS as SubAgentDataComponentApiInsertSchema, cA as SubAgentDataComponentApiSelect, eR as SubAgentDataComponentApiSelectSchema, cC as SubAgentDataComponentApiUpdate, eT as SubAgentDataComponentApiUpdateSchema, cy as SubAgentDataComponentInsert, eP as SubAgentDataComponentInsertSchema, h4 as SubAgentDataComponentListResponse, h2 as SubAgentDataComponentResponse, cx as SubAgentDataComponentSelect, eO as SubAgentDataComponentSelectSchema, cz as SubAgentDataComponentUpdate, eQ as SubAgentDataComponentUpdateSchema, dh as SubAgentDefinition, d2 as SubAgentExternalAgentRelationApiInsert, g0 as SubAgentExternalAgentRelationApiInsertSchema, d1 as SubAgentExternalAgentRelationApiSelect, f$ as SubAgentExternalAgentRelationApiSelectSchema, d3 as SubAgentExternalAgentRelationApiUpdate, g1 as SubAgentExternalAgentRelationApiUpdateSchema, fZ as SubAgentExternalAgentRelationInsertSchema, c$ as SubAgentExternalAgentRelationSelect, fY as SubAgentExternalAgentRelationSelectSchema, d0 as SubAgentExternalAgentRelationUpdate, f_ as SubAgentExternalAgentRelationUpdateSchema, dQ as SubAgentInsertSchema, gP as SubAgentListResponse, bP as SubAgentRelationApiInsert, dZ as SubAgentRelationApiInsertSchema, bO as SubAgentRelationApiSelect, dY as SubAgentRelationApiSelectSchema, bQ as SubAgentRelationApiUpdate, d_ as SubAgentRelationApiUpdateSchema, dW as SubAgentRelationInsertSchema, g_ as SubAgentRelationListResponse, bR as SubAgentRelationQuery, d$ as SubAgentRelationQuerySchema, gK as SubAgentRelationResponse, bN as SubAgentRelationSelect, dV as SubAgentRelationSelectSchema, dX as SubAgentRelationUpdateSchema, gz as SubAgentResponse, dP as SubAgentSelectSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema, d7 as SubAgentTeamAgentRelationApiInsert, g6 as SubAgentTeamAgentRelationApiInsertSchema, d6 as SubAgentTeamAgentRelationApiSelect, g5 as SubAgentTeamAgentRelationApiSelectSchema, d8 as SubAgentTeamAgentRelationApiUpdate, g7 as SubAgentTeamAgentRelationApiUpdateSchema, g3 as SubAgentTeamAgentRelationInsertSchema, d4 as SubAgentTeamAgentRelationSelect, g2 as SubAgentTeamAgentRelationSelectSchema, d5 as SubAgentTeamAgentRelationUpdate, g4 as SubAgentTeamAgentRelationUpdateSchema, cZ as SubAgentToolRelationApiInsert, fW as SubAgentToolRelationApiInsertSchema, cY as SubAgentToolRelationApiSelect, fV as SubAgentToolRelationApiSelectSchema, c_ as SubAgentToolRelationApiUpdate, fX as SubAgentToolRelationApiUpdateSchema, cX as SubAgentToolRelationInsert, fT as SubAgentToolRelationInsertSchema, g$ as SubAgentToolRelationListResponse, gL as SubAgentToolRelationResponse, cW as SubAgentToolRelationSelect, fS as SubAgentToolRelationSelectSchema, fU as SubAgentToolRelationUpdateSchema, dR as SubAgentUpdateSchema, dn as SummaryEvent, dE as TOOL_STATUS_VALUES, aY as Task, bZ as TaskApiInsert, ec as TaskApiInsertSchema, bY as TaskApiSelect, eb as TaskApiSelectSchema, b_ as TaskApiUpdate, ed as TaskApiUpdateSchema, bJ as TaskArtifact, a_ as TaskArtifactUpdateEvent, be as TaskIdParams, e9 as TaskInsertSchema, b5 as TaskNotCancelableError, b4 as TaskNotFoundError, bd as TaskPushNotificationConfig, bf as TaskQueryParams, c3 as TaskRelationApiInsert, ei as TaskRelationApiInsertSchema, c2 as TaskRelationApiSelect, eh as TaskRelationApiSelectSchema, c4 as TaskRelationApiUpdate, ej as TaskRelationApiUpdateSchema, c0 as TaskRelationInsert, ef as TaskRelationInsertSchema, b$ as TaskRelationSelect, ee as TaskRelationSelectSchema, c1 as TaskRelationUpdate, eg as TaskRelationUpdateSchema, bt as TaskResubscriptionRequest, e8 as TaskSelectSchema, aG as TaskState, aX as TaskStatus, aZ as TaskStatusUpdateEvent, bX as TaskUpdate, ea as TaskUpdateSchema, gj as TeamAgentSchema, h8 as TenantIdParamsSchema, h7 as TenantParamsSchema, hc as TenantProjectAgentIdParamsSchema, hb as TenantProjectAgentParamsSchema, he as TenantProjectAgentSubAgentIdParamsSchema, hd as TenantProjectAgentSubAgentParamsSchema, ha as TenantProjectIdParamsSchema, h9 as TenantProjectParamsSchema, aA as TextPart, c6 as ToolApiInsert, fz as ToolApiInsertSchema, c5 as ToolApiSelect, fy as ToolApiSelectSchema, c7 as ToolApiUpdate, fA as ToolApiUpdateSchema, di as ToolDefinition, eo as ToolInsertSchema, gR as ToolListResponse, gB as ToolResponse, en as ToolSelectSchema, el as ToolStatusSchema, fx as ToolUpdateSchema, dJ as URL_SAFE_ID_PATTERN, b7 as UnsupportedOperationError, dF as VALID_RELATION_TYPES, gh as canDelegateToExternalAgentSchema, gi as canDelegateToTeamAgentSchema, dK as resourceIdSchema } from './utility-DF5IUC9K.js';
7
7
  import { CredentialStore } from './types/index.js';
8
8
  export { CorsConfig, ServerConfig, ServerOptions } from './types/index.js';
9
- import { LibSQLDatabase } from 'drizzle-orm/libsql';
10
- import { s as schema } from './schema-lPPu5F4P.js';
11
- export { G as agentRelations, J as agentToolRelationsRelations, a as agents, y as apiKeys, I as apiKeysRelations, j as artifactComponents, O as artifactComponentsRelations, b as contextCache, E as contextCacheRelations, c as contextConfigs, D as contextConfigsRelations, v as conversations, M as conversationsRelations, z as credentialReferences, K as credentialReferencesRelations, h as dataComponents, Q as dataComponentsRelations, f as externalAgents, H as externalAgentsRelations, m as functionTools, V as functionToolsRelations, n as functions, T as functionsRelations, x as ledgerArtifacts, S as ledgerArtifactsRelations, w as messages, N as messagesRelations, p as projects, B as projectsRelations, k as subAgentArtifactComponents, P as subAgentArtifactComponentsRelations, i as subAgentDataComponents, R as subAgentDataComponentsRelations, q as subAgentExternalAgentRelations, X as subAgentExternalAgentRelationsRelations, u as subAgentFunctionToolRelations, W as subAgentFunctionToolRelationsRelations, e as subAgentRelations, U as subAgentRelationsRelations, r as subAgentTeamAgentRelations, Y as subAgentTeamAgentRelationsRelations, o as subAgentToolRelations, d as subAgents, F as subAgentsRelations, g as taskRelations, C as taskRelationsRelations, t as tasks, A as tasksRelations, l as tools, L as toolsRelations } from './schema-lPPu5F4P.js';
9
+ import { NodePgDatabase } from 'drizzle-orm/node-postgres';
10
+ import { PgliteDatabase } from 'drizzle-orm/pglite';
11
+ import { s as schema } from './schema-CuEjPQt7.js';
12
+ export { G as agentRelations, J as agentToolRelationsRelations, a as agents, y as apiKeys, I as apiKeysRelations, j as artifactComponents, O as artifactComponentsRelations, b as contextCache, E as contextCacheRelations, c as contextConfigs, D as contextConfigsRelations, v as conversations, M as conversationsRelations, z as credentialReferences, K as credentialReferencesRelations, h as dataComponents, Q as dataComponentsRelations, f as externalAgents, H as externalAgentsRelations, m as functionTools, V as functionToolsRelations, n as functions, T as functionsRelations, x as ledgerArtifacts, S as ledgerArtifactsRelations, w as messages, N as messagesRelations, p as projects, B as projectsRelations, k as subAgentArtifactComponents, P as subAgentArtifactComponentsRelations, i as subAgentDataComponents, R as subAgentDataComponentsRelations, q as subAgentExternalAgentRelations, X as subAgentExternalAgentRelationsRelations, u as subAgentFunctionToolRelations, W as subAgentFunctionToolRelationsRelations, e as subAgentRelations, U as subAgentRelationsRelations, r as subAgentTeamAgentRelations, Y as subAgentTeamAgentRelationsRelations, o as subAgentToolRelations, d as subAgents, F as subAgentsRelations, g as taskRelations, C as taskRelationsRelations, t as tasks, A as tasksRelations, l as tools, L as toolsRelations } from './schema-CuEjPQt7.js';
12
13
  import { SSEClientTransportOptions } from '@modelcontextprotocol/sdk/client/sse.js';
13
14
  import { StreamableHTTPClientTransportOptions } from '@modelcontextprotocol/sdk/client/streamableHttp.js';
14
15
  import { ClientCapabilities } from '@modelcontextprotocol/sdk/types.js';
15
- import { SQLiteTable } from 'drizzle-orm/sqlite-core';
16
+ import { PgTable } from 'drizzle-orm/pg-core';
16
17
  import { ValidateFunction } from 'ajv';
17
18
  import { Context, Next } from 'hono';
18
19
  import { z as z$1 } from '@hono/zod-openapi';
@@ -236,22 +237,19 @@ declare class CredentialStoreRegistry {
236
237
  size(): number;
237
238
  }
238
239
 
239
- type DatabaseClient = LibSQLDatabase<typeof schema>;
240
+ type DatabaseClient = NodePgDatabase<typeof schema> | PgliteDatabase<typeof schema>;
240
241
  interface DatabaseConfig {
241
- url: string;
242
- authToken?: string;
242
+ connectionString?: string;
243
+ poolSize?: number;
244
+ ssl?: boolean;
243
245
  logger?: {
244
246
  logQuery: (query: string, params: unknown[]) => void;
245
247
  };
246
248
  }
247
249
  /**
248
- * Creates a database client with the specified configuration
250
+ * Creates a PostgreSQL database client with connection pooling
249
251
  */
250
- declare function createDatabaseClient(config: DatabaseConfig): DatabaseClient;
251
- /**
252
- * Creates an in-memory database client for testing
253
- */
254
- declare function createInMemoryDatabaseClient(): DatabaseClient;
252
+ declare function createDatabaseClient(config?: DatabaseConfig): DatabaseClient;
255
253
 
256
254
  interface TemplateContext {
257
255
  [key: string]: unknown;
@@ -1109,14 +1107,12 @@ declare const updateAgent: (db: DatabaseClient) => (params: {
1109
1107
  scopes: AgentScopeConfig;
1110
1108
  data: AgentUpdate;
1111
1109
  }) => Promise<{
1112
- tenantId: string;
1113
- projectId: string;
1114
- id: string;
1115
- name: string;
1116
- description: string | null;
1117
- prompt: string | null;
1118
1110
  createdAt: string;
1119
1111
  updatedAt: string;
1112
+ name: string;
1113
+ description: string | null;
1114
+ defaultSubAgentId: string | null;
1115
+ contextConfigId: string | null;
1120
1116
  models: {
1121
1117
  base?: {
1122
1118
  model?: string | undefined;
@@ -1131,11 +1127,6 @@ declare const updateAgent: (db: DatabaseClient) => (params: {
1131
1127
  providerOptions?: Record<string, any> | undefined;
1132
1128
  } | undefined;
1133
1129
  } | null;
1134
- stopWhen: {
1135
- transferCountIs?: number | undefined;
1136
- } | null;
1137
- defaultSubAgentId: string | null;
1138
- contextConfigId: string | null;
1139
1130
  statusUpdates: {
1140
1131
  enabled?: boolean | undefined;
1141
1132
  numEvents?: number | undefined;
@@ -1151,6 +1142,13 @@ declare const updateAgent: (db: DatabaseClient) => (params: {
1151
1142
  } | undefined;
1152
1143
  }[] | undefined;
1153
1144
  } | null;
1145
+ prompt: string | null;
1146
+ stopWhen: {
1147
+ transferCountIs?: number | undefined;
1148
+ } | null;
1149
+ projectId: string;
1150
+ tenantId: string;
1151
+ id: string;
1154
1152
  }>;
1155
1153
  declare const deleteAgent: (db: DatabaseClient) => (params: {
1156
1154
  scopes: AgentScopeConfig;
@@ -1159,8 +1157,8 @@ declare const deleteAgent: (db: DatabaseClient) => (params: {
1159
1157
  * Helper function to fetch component relationships using efficient joins
1160
1158
  */
1161
1159
  declare const fetchComponentRelationships: (db: DatabaseClient) => <T extends Record<string, unknown>>(scopes: ProjectScopeConfig, subAgentIds: string[], config: {
1162
- relationTable: SQLiteTable<any>;
1163
- componentTable: SQLiteTable<any>;
1160
+ relationTable: PgTable<any>;
1161
+ componentTable: PgTable<any>;
1164
1162
  relationIdField: unknown;
1165
1163
  componentIdField: unknown;
1166
1164
  subAgentIdField: unknown;
@@ -1265,18 +1263,18 @@ declare const updateApiKey: (db: DatabaseClient) => (params: {
1265
1263
  id: string;
1266
1264
  data: ApiKeyUpdate;
1267
1265
  }) => Promise<{
1268
- tenantId: string;
1269
- projectId: string;
1270
- id: string;
1271
- name: string | null;
1272
- agentId: string;
1266
+ createdAt: string;
1267
+ updatedAt: string;
1273
1268
  publicId: string;
1274
1269
  keyHash: string;
1275
1270
  keyPrefix: string;
1271
+ name: string | null;
1276
1272
  lastUsedAt: string | null;
1277
1273
  expiresAt: string | null;
1278
- createdAt: string;
1279
- updatedAt: string;
1274
+ agentId: string;
1275
+ projectId: string;
1276
+ tenantId: string;
1277
+ id: string;
1280
1278
  }>;
1281
1279
  declare const deleteApiKey: (db: DatabaseClient) => (params: {
1282
1280
  scopes: ProjectScopeConfig;
@@ -1353,14 +1351,14 @@ declare const updateArtifactComponent: (db: DatabaseClient) => (params: {
1353
1351
  id: string;
1354
1352
  data: ArtifactComponentUpdate;
1355
1353
  }) => Promise<{
1356
- tenantId: string;
1357
- projectId: string;
1358
- id: string;
1359
- name: string;
1360
- description: string;
1361
1354
  createdAt: string;
1362
1355
  updatedAt: string;
1363
1356
  props: Record<string, unknown> | null;
1357
+ name: string;
1358
+ description: string;
1359
+ projectId: string;
1360
+ tenantId: string;
1361
+ id: string;
1364
1362
  }>;
1365
1363
  declare const deleteArtifactComponent: (db: DatabaseClient) => (params: {
1366
1364
  scopes: ProjectScopeConfig;
@@ -1557,14 +1555,14 @@ declare const updateContextConfig: (db: DatabaseClient) => (params: {
1557
1555
  id: string;
1558
1556
  data: Partial<ContextConfigUpdate>;
1559
1557
  }) => Promise<{
1560
- tenantId: string;
1561
- projectId: string;
1562
- id: string;
1563
- agentId: string;
1564
1558
  createdAt: string;
1565
1559
  updatedAt: string;
1566
1560
  headersSchema: unknown;
1567
1561
  contextVariables: Record<string, ContextFetchDefinition> | null;
1562
+ agentId: string;
1563
+ projectId: string;
1564
+ tenantId: string;
1565
+ id: string;
1568
1566
  }>;
1569
1567
  declare const deleteContextConfig: (db: DatabaseClient) => (params: {
1570
1568
  scopes: AgentScopeConfig;
@@ -1618,16 +1616,16 @@ declare const updateConversation: (db: DatabaseClient) => (params: {
1618
1616
  conversationId: string;
1619
1617
  data: ConversationUpdate;
1620
1618
  }) => Promise<{
1621
- tenantId: string;
1622
- projectId: string;
1623
- id: string;
1624
- title: string | null;
1625
1619
  createdAt: string;
1626
1620
  updatedAt: string;
1627
- metadata: ConversationMetadata | null;
1628
1621
  userId: string | null;
1629
1622
  activeSubAgentId: string;
1623
+ title: string | null;
1630
1624
  lastContextResolution: string | null;
1625
+ metadata: ConversationMetadata | null;
1626
+ projectId: string;
1627
+ tenantId: string;
1628
+ id: string;
1631
1629
  }>;
1632
1630
  declare const deleteConversation: (db: DatabaseClient) => (params: {
1633
1631
  scopes: ProjectScopeConfig;
@@ -1638,16 +1636,16 @@ declare const updateConversationActiveAgent: (db: DatabaseClient) => (params: {
1638
1636
  conversationId: string;
1639
1637
  activeSubAgentId: string;
1640
1638
  }) => Promise<{
1641
- tenantId: string;
1642
- projectId: string;
1643
- id: string;
1644
- title: string | null;
1645
1639
  createdAt: string;
1646
1640
  updatedAt: string;
1647
- metadata: ConversationMetadata | null;
1648
1641
  userId: string | null;
1649
1642
  activeSubAgentId: string;
1643
+ title: string | null;
1650
1644
  lastContextResolution: string | null;
1645
+ metadata: ConversationMetadata | null;
1646
+ projectId: string;
1647
+ tenantId: string;
1648
+ id: string;
1651
1649
  }>;
1652
1650
  declare const getConversation: (db: DatabaseClient) => (params: {
1653
1651
  scopes: ProjectScopeConfig;
@@ -2112,15 +2110,15 @@ declare const updateFunctionTool: (db: DatabaseClient) => (params: {
2112
2110
  functionToolId: string;
2113
2111
  data: FunctionToolApiUpdate;
2114
2112
  }) => Promise<{
2115
- tenantId: string;
2116
- projectId: string;
2117
- id: string;
2118
- name: string;
2119
- description: string | null;
2120
- agentId: string;
2121
2113
  createdAt: string;
2122
2114
  updatedAt: string;
2115
+ name: string;
2116
+ description: string | null;
2123
2117
  functionId: string;
2118
+ agentId: string;
2119
+ projectId: string;
2120
+ tenantId: string;
2121
+ id: string;
2124
2122
  }>;
2125
2123
  /**
2126
2124
  * Delete a function tool (agent-scoped)
@@ -2431,13 +2429,8 @@ declare const updateMessage: (db: DatabaseClient) => (params: {
2431
2429
  messageId: string;
2432
2430
  data: MessageUpdate;
2433
2431
  }) => Promise<{
2434
- tenantId: string;
2435
- projectId: string;
2436
- id: string;
2437
2432
  createdAt: string;
2438
2433
  updatedAt: string;
2439
- metadata: MessageMetadata | null;
2440
- content: MessageContent;
2441
2434
  conversationId: string;
2442
2435
  role: string;
2443
2436
  fromSubAgentId: string | null;
@@ -2446,12 +2439,17 @@ declare const updateMessage: (db: DatabaseClient) => (params: {
2446
2439
  toExternalAgentId: string | null;
2447
2440
  fromTeamAgentId: string | null;
2448
2441
  toTeamAgentId: string | null;
2442
+ content: MessageContent;
2449
2443
  visibility: string;
2450
2444
  messageType: string;
2451
2445
  taskId: string | null;
2452
2446
  parentMessageId: string | null;
2453
2447
  a2aTaskId: string | null;
2454
2448
  a2aSessionId: string | null;
2449
+ metadata: MessageMetadata | null;
2450
+ projectId: string;
2451
+ tenantId: string;
2452
+ id: string;
2455
2453
  }>;
2456
2454
  declare const deleteMessage: (db: DatabaseClient) => (params: {
2457
2455
  scopes: ProjectScopeConfig;
@@ -2806,15 +2804,15 @@ declare const updateSubAgentExternalAgentRelation: (db: DatabaseClient) => (para
2806
2804
  relationId: string;
2807
2805
  data: Partial<SubAgentExternalAgentRelationInsert>;
2808
2806
  }) => Promise<{
2809
- tenantId: string;
2810
- projectId: string;
2811
- id: string;
2812
- agentId: string;
2813
2807
  createdAt: string;
2814
2808
  updatedAt: string;
2815
- headers: Record<string, string> | null;
2816
2809
  externalAgentId: string;
2810
+ headers: Record<string, string> | null;
2817
2811
  subAgentId: string;
2812
+ agentId: string;
2813
+ projectId: string;
2814
+ tenantId: string;
2815
+ id: string;
2818
2816
  }>;
2819
2817
  declare const deleteSubAgentExternalAgentRelation: (db: DatabaseClient) => (params: {
2820
2818
  scopes: SubAgentScopeConfig;
@@ -2995,15 +2993,15 @@ declare const updateAgentRelation: (db: DatabaseClient) => (params: {
2995
2993
  relationId: string;
2996
2994
  data: SubAgentRelationUpdate;
2997
2995
  }) => Promise<{
2998
- tenantId: string;
2999
- projectId: string;
3000
- id: string;
3001
- agentId: string;
3002
2996
  createdAt: string;
3003
2997
  updatedAt: string;
3004
2998
  sourceSubAgentId: string;
3005
2999
  targetSubAgentId: string | null;
3006
3000
  relationType: string | null;
3001
+ agentId: string;
3002
+ projectId: string;
3003
+ tenantId: string;
3004
+ id: string;
3007
3005
  }>;
3008
3006
  declare const deleteSubAgentRelation: (db: DatabaseClient) => (params: {
3009
3007
  scopes: AgentScopeConfig;
@@ -3038,16 +3036,16 @@ declare const updateAgentToolRelation: (db: DatabaseClient) => (params: {
3038
3036
  relationId: string;
3039
3037
  data: SubAgentToolRelationUpdate;
3040
3038
  }) => Promise<{
3041
- tenantId: string;
3042
- projectId: string;
3043
- id: string;
3044
- agentId: string;
3045
3039
  createdAt: string;
3046
3040
  updatedAt: string;
3047
- headers: Record<string, string> | null;
3048
3041
  toolId: string;
3049
3042
  selectedTools: string[] | null;
3043
+ headers: Record<string, string> | null;
3050
3044
  subAgentId: string;
3045
+ agentId: string;
3046
+ projectId: string;
3047
+ tenantId: string;
3048
+ id: string;
3051
3049
  }>;
3052
3050
  declare const deleteAgentToolRelation: (db: DatabaseClient) => (params: {
3053
3051
  scopes: AgentScopeConfig;
@@ -3369,15 +3367,10 @@ declare const updateSubAgent: (db: DatabaseClient) => (params: {
3369
3367
  subAgentId: string;
3370
3368
  data: SubAgentUpdate;
3371
3369
  }) => Promise<{
3372
- tenantId: string;
3373
- projectId: string;
3374
- id: string;
3375
- name: string;
3376
- description: string;
3377
- prompt: string;
3378
- agentId: string;
3379
3370
  createdAt: string;
3380
3371
  updatedAt: string;
3372
+ prompt: string;
3373
+ conversationHistoryConfig: ConversationHistoryConfig | null;
3381
3374
  models: {
3382
3375
  base?: {
3383
3376
  model?: string | undefined;
@@ -3395,7 +3388,12 @@ declare const updateSubAgent: (db: DatabaseClient) => (params: {
3395
3388
  stopWhen: {
3396
3389
  stepCountIs?: number | undefined;
3397
3390
  } | null;
3398
- conversationHistoryConfig: ConversationHistoryConfig | null;
3391
+ name: string;
3392
+ description: string;
3393
+ agentId: string;
3394
+ projectId: string;
3395
+ tenantId: string;
3396
+ id: string;
3399
3397
  }>;
3400
3398
  /**
3401
3399
  * Upsert agent (create if it doesn't exist, update if it does)
@@ -3698,15 +3696,15 @@ declare const updateSubAgentTeamAgentRelation: (db: DatabaseClient) => (params:
3698
3696
  relationId: string;
3699
3697
  data: Partial<SubAgentTeamAgentRelationInsert>;
3700
3698
  }) => Promise<{
3701
- tenantId: string;
3702
- projectId: string;
3703
- id: string;
3704
- agentId: string;
3705
3699
  createdAt: string;
3706
3700
  updatedAt: string;
3701
+ targetAgentId: string;
3707
3702
  headers: Record<string, string> | null;
3708
3703
  subAgentId: string;
3709
- targetAgentId: string;
3704
+ agentId: string;
3705
+ projectId: string;
3706
+ tenantId: string;
3707
+ id: string;
3710
3708
  }>;
3711
3709
  declare const deleteSubAgentTeamAgentRelation: (db: DatabaseClient) => (params: {
3712
3710
  scopes: SubAgentScopeConfig;
@@ -3741,16 +3739,16 @@ declare const updateTask: (db: DatabaseClient) => (params: {
3741
3739
  metadata?: any;
3742
3740
  };
3743
3741
  }) => Promise<{
3744
- tenantId: string;
3745
- projectId: string;
3746
- id: string;
3747
- agentId: string;
3748
3742
  createdAt: string;
3749
3743
  updatedAt: string;
3744
+ contextId: string;
3750
3745
  status: string;
3751
3746
  metadata: TaskMetadataConfig | null;
3752
- contextId: string;
3753
3747
  subAgentId: string;
3748
+ agentId: string;
3749
+ projectId: string;
3750
+ tenantId: string;
3751
+ id: string;
3754
3752
  }>;
3755
3753
  declare const listTaskIdsByContextId: (db: DatabaseClient) => (params: {
3756
3754
  contextId: string;
@@ -3830,9 +3828,8 @@ declare const updateTool: (db: DatabaseClient) => (params: {
3830
3828
  toolId: string;
3831
3829
  data: ToolUpdate;
3832
3830
  }) => Promise<{
3833
- tenantId: string;
3834
- projectId: string;
3835
- id: string;
3831
+ createdAt: string;
3832
+ updatedAt: string;
3836
3833
  name: string;
3837
3834
  description: string | null;
3838
3835
  config: {
@@ -3840,12 +3837,13 @@ declare const updateTool: (db: DatabaseClient) => (params: {
3840
3837
  mcp: ToolMcpConfig;
3841
3838
  };
3842
3839
  credentialReferenceId: string | null;
3843
- createdAt: string;
3844
- updatedAt: string;
3845
3840
  headers: Record<string, string> | null;
3846
- capabilities: ToolServerCapabilities | null;
3847
3841
  imageUrl: string | null;
3842
+ capabilities: ToolServerCapabilities | null;
3848
3843
  lastError: string | null;
3844
+ projectId: string;
3845
+ tenantId: string;
3846
+ id: string;
3849
3847
  }>;
3850
3848
  declare const deleteTool: (db: DatabaseClient) => (params: {
3851
3849
  scopes: ProjectScopeConfig;
@@ -4040,6 +4038,13 @@ declare function getCredentialStoreLookupKeyFromRetrievalParams({ retrievalParam
4040
4038
  credentialStoreType: keyof typeof CredentialStoreType;
4041
4039
  }): string | null;
4042
4040
 
4041
+ /**
4042
+ * Checks if a date string is in PostgreSQL timestamp format and normalizes it to ISO 8601
4043
+ * PostgreSQL format: "2025-11-07 21:48:24.858" or "2025-11-07 21:48:24"
4044
+ * ISO 8601 format: "2025-11-07T21:48:24.858Z"
4045
+ */
4046
+ declare function normalizeDateString(dateString: string | Date): string | Date;
4047
+
4043
4048
  declare const ErrorCode: z$1.ZodEnum<{
4044
4049
  bad_request: "bad_request";
4045
4050
  unauthorized: "unauthorized";
@@ -4669,4 +4674,4 @@ declare function setSpanWithError(span: Span, error: Error, logger?: {
4669
4674
  */
4670
4675
  declare function getTracer(serviceName: string, serviceVersion?: string): Tracer;
4671
4676
 
4672
- export { AGENT_EXECUTION_TRANSFER_COUNT_DEFAULT, AGENT_EXECUTION_TRANSFER_COUNT_MAX, AGENT_EXECUTION_TRANSFER_COUNT_MIN, AgentInsert, type AgentLogger, AgentScopeConfig, AgentSelect, AgentUpdate, ApiKeyCreateResult, type ApiKeyGenerationResult, ApiKeyInsert, ApiKeySelect, ApiKeyUpdate, Artifact, ArtifactComponentInsert, ArtifactComponentSelect, ArtifactComponentUpdate, CONTEXT_FETCHER_HTTP_TIMEOUT_MS_DEFAULT, CONVERSATION_HISTORY_DEFAULT_LIMIT, CONVERSATION_HISTORY_MAX_OUTPUT_TOKENS_DEFAULT, 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 CredentialReferenceWithResources, 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, ExternalAgentSelect, ExternalAgentUpdate, type FetchResult, FullAgentDefinition, FullProjectDefinition, FunctionApiInsert, FunctionToolApiInsert, FunctionToolApiUpdate, type GenerateServiceTokenParams, HTTP_REQUEST_PARTS, type HttpRequestPart, InMemoryCredentialStore, KeyChainStore, LedgerArtifactSelect, MCPToolConfig, MCPTransportType, MCP_TOOL_CONNECTION_TIMEOUT_MS, MCP_TOOL_INITIAL_RECONNECTION_DELAY_MS, MCP_TOOL_MAX_RECONNECTION_DELAY_MS, MCP_TOOL_MAX_RETRIES, MCP_TOOL_RECONNECTION_DELAY_GROWTH_FACTOR, McpClient, type McpClientOptions, type McpSSEConfig, type McpServerConfig, type McpStreamableHttpConfig, McpTool, MessageContent, MessageInsert, MessageMetadata, MessageUpdate, MessageVisibility, NangoCredentialStore, PaginationConfig, PaginationResult, type ParsedHttpRequest, PinoLogger, type ProblemDetails, ProjectInfo, ProjectInsert, type ProjectLogger, ProjectResourceCounts, ProjectScopeConfig, ProjectSelect, ProjectUpdate, type ResolvedContext, STATUS_UPDATE_MAX_INTERVAL_SECONDS, STATUS_UPDATE_MAX_NUM_EVENTS, SUB_AGENT_TURN_GENERATION_STEPS_DEFAULT, SUB_AGENT_TURN_GENERATION_STEPS_MAX, SUB_AGENT_TURN_GENERATION_STEPS_MIN, type ServiceTokenPayload, SubAgentExternalAgentRelationInsert, SubAgentInsert, SubAgentRelationInsert, SubAgentRelationUpdate, SubAgentScopeConfig, SubAgentSelect, SubAgentTeamAgentRelationInsert, SubAgentToolRelationUpdate, SubAgentUpdate, TaskInsert, TaskMetadataConfig, TaskSelect, type TemplateContext, TemplateEngine, type TemplateRenderOptions, ToolInsert, ToolMcpConfig, ToolSelect, ToolServerCapabilities, ToolUpdate, VALIDATION_AGENT_PROMPT_MAX_CHARS, VALIDATION_SUB_AGENT_PROMPT_MAX_CHARS, type VerifyServiceTokenResult, addFunctionToolToSubAgent, addLedgerArtifacts, addToolToAgent, agentHasArtifactComponents, apiFetch, associateArtifactComponentWithAgent, associateDataComponentWithAgent, cleanupTenantCache, clearContextConfigCache, clearConversationCache, commonCreateErrorResponses, commonDeleteErrorResponses, commonGetErrorResponses, commonUpdateErrorResponses, contextConfig, contextValidationMiddleware, countApiKeys, countArtifactComponents, countArtifactComponentsForAgent, countContextConfigs, countCredentialReferences, countDataComponents, countExternalAgents, countLedgerArtifactsByTask, countMessagesByConversation, countProjects, createAgent, createAgentToolRelation, createApiError, createApiKey, createArtifactComponent, createContextConfig, createConversation, createCredentialReference, createDataComponent, createDatabaseClient, createDefaultCredentialStores, createExecutionContext, createExternalAgent, createFullAgentServerSide, createFullProjectServerSide, createFunctionTool, createInMemoryDatabaseClient, createKeyChainStore, createMessage, createNangoCredentialStore, createOrGetConversation, createProject, createSubAgent, createSubAgentExternalAgentRelation, createSubAgentRelation, createSubAgentTeamAgentRelation, createTask, createTool, createValidatedDataAccess, dbResultToMcpTool, deleteAgent, deleteAgentArtifactComponentRelationByAgent, deleteAgentDataComponentRelationByAgent, deleteAgentRelationsByAgent, deleteAgentToolRelation, deleteAgentToolRelationByAgent, deleteApiKey, deleteArtifactComponent, deleteContextConfig, deleteConversation, deleteCredentialReference, deleteDataComponent, deleteExternalAgent, deleteFullAgent, deleteFullProject, deleteFunction, deleteFunctionTool, deleteLedgerArtifactsByContext, deleteLedgerArtifactsByTask, deleteMessage, deleteProject, deleteSubAgent, deleteSubAgentExternalAgentRelation, deleteSubAgentExternalAgentRelationsByAgent, deleteSubAgentExternalAgentRelationsBySubAgent, deleteSubAgentRelation, deleteSubAgentTeamAgentRelation, deleteSubAgentTeamAgentRelationsByAgent, deleteSubAgentTeamAgentRelationsBySubAgent, deleteTool, determineContextTrigger, errorResponseSchema, errorSchemaFactory, executionLimitsSharedDefaults, externalAgentExists, externalAgentUrlExists, extractPublicId, fetchComponentRelationships, fetchDefinition, generateAndCreateApiKey, generateApiKey, generateId, generateServiceToken, getActiveAgentForConversation, getAgentById, getAgentRelationById, getAgentRelationByParams, getAgentRelations, getAgentRelationsByAgent, getAgentRelationsBySource, getAgentSubAgentInfos, getAgentToolRelationByAgent, getAgentToolRelationById, getAgentToolRelationByTool, getAgentWithDefaultSubAgent, getAgentsForTool, getAgentsUsingArtifactComponent, getAgentsUsingDataComponent, getApiKeyById, getApiKeyByPublicId, getArtifactComponentById, getArtifactComponentsForAgent, getCacheEntry, getCachedValidator, getContextConfigById, getContextConfigCacheEntries, getConversation, getConversationCacheEntries, getConversationHistory, getConversationId, getCredentialReference, getCredentialReferenceById, getCredentialReferenceWithResources, getCredentialStoreLookupKeyFromRetrievalParams, getDataComponent, getDataComponentsForAgent, getExternalAgent, getExternalAgentByUrl, getExternalAgentsForSubAgent, getFullAgent, getFullAgentDefinition, getFullProject, getFunction, getFunctionToolById, getFunctionToolsForSubAgent, getLedgerArtifacts, getLedgerArtifactsByContext, getLogger, getMessageById, getMessagesByConversation, getMessagesByTask, getProject, getProjectResourceCounts, getRelatedAgentsForAgent, getRequestExecutionContext, getSubAgentById, getSubAgentExternalAgentRelationById, getSubAgentExternalAgentRelationByParams, getSubAgentExternalAgentRelations, getSubAgentExternalAgentRelationsByAgent, getSubAgentExternalAgentRelationsByExternalAgent, getSubAgentRelationsByTarget, getSubAgentTeamAgentRelationById, getSubAgentTeamAgentRelationByParams, getSubAgentTeamAgentRelations, getSubAgentTeamAgentRelationsByAgent, getSubAgentTeamAgentRelationsByTeamAgent, getSubAgentsByIds, getSubAgentsForExternalAgent, getSubAgentsForTeamAgent, getTask, getTeamAgentsForSubAgent, getToolById, getToolsForAgent, getTracer, getVisibleMessages, handleApiError, handleContextConfigChange, handleContextResolution, hasApiKey, hasContextConfig, hasCredentialReference, hashApiKey, headers, invalidateHeadersCache, invalidateInvocationDefinitionsCache, isApiKeyExpired, isArtifactComponentAssociatedWithAgent, isDataComponentAssociatedWithAgent, isValidHttpRequest, listAgentRelations, listAgentToolRelations, listAgents, listAgentsPaginated, listApiKeys, listApiKeysPaginated, listArtifactComponents, listArtifactComponentsPaginated, listContextConfigs, listContextConfigsPaginated, listConversations, listCredentialReferences, listCredentialReferencesPaginated, listDataComponents, listDataComponentsPaginated, listExternalAgents, listExternalAgentsPaginated, listFunctionTools, listFunctions, listMessages, listProjects, listProjectsPaginated, listSubAgentExternalAgentRelations, listSubAgentTeamAgentRelations, listSubAgents, listSubAgentsPaginated, listTaskIdsByContextId, listTools, loadEnvironmentFiles, maskApiKey, problemDetailsSchema, projectExists, projectExistsInTable, projectHasResources, removeArtifactComponentFromAgent, removeDataComponentFromAgent, removeToolFromAgent, schemaValidationDefaults, setActiveAgentForConversation, setActiveAgentForThread, setCacheEntry, setSpanWithError, updateAgent, updateAgentRelation, updateAgentToolRelation, updateApiKey, updateApiKeyLastUsed, updateArtifactComponent, updateContextConfig, updateConversation, updateConversationActiveAgent, updateCredentialReference, updateDataComponent, updateExternalAgent, updateFullAgentServerSide, updateFullProjectServerSide, updateFunctionTool, updateMessage, updateProject, updateSubAgent, updateSubAgentExternalAgentRelation, updateSubAgentFunctionToolRelation, updateSubAgentTeamAgentRelation, updateTask, updateTool, upsertAgent, upsertAgentArtifactComponentRelation, upsertAgentDataComponentRelation, upsertArtifactComponent, upsertContextConfig, upsertCredentialReference, upsertDataComponent, upsertExternalAgent, upsertFunction, upsertFunctionTool, upsertLedgerArtifact, upsertSubAgent, upsertSubAgentExternalAgentRelation, upsertSubAgentFunctionToolRelation, upsertSubAgentRelation, upsertSubAgentTeamAgentRelation, upsertSubAgentToolRelation, upsertTool, validateAgainstJsonSchema, validateAndGetApiKey, validateApiKey, validateHeaders, validateHttpRequestHeaders, validateProjectExists, validateSubAgent, validateTargetAgent, validateTenantId, validationHelper, verifyAuthorizationHeader, verifyServiceToken, withProjectValidation };
4677
+ export { AGENT_EXECUTION_TRANSFER_COUNT_DEFAULT, AGENT_EXECUTION_TRANSFER_COUNT_MAX, AGENT_EXECUTION_TRANSFER_COUNT_MIN, AgentInsert, type AgentLogger, AgentScopeConfig, AgentSelect, AgentUpdate, ApiKeyCreateResult, type ApiKeyGenerationResult, ApiKeyInsert, ApiKeySelect, ApiKeyUpdate, Artifact, ArtifactComponentInsert, ArtifactComponentSelect, ArtifactComponentUpdate, CONTEXT_FETCHER_HTTP_TIMEOUT_MS_DEFAULT, CONVERSATION_HISTORY_DEFAULT_LIMIT, CONVERSATION_HISTORY_MAX_OUTPUT_TOKENS_DEFAULT, 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 CredentialReferenceWithResources, 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, ExternalAgentSelect, ExternalAgentUpdate, type FetchResult, FullAgentDefinition, FullProjectDefinition, FunctionApiInsert, FunctionToolApiInsert, FunctionToolApiUpdate, type GenerateServiceTokenParams, HTTP_REQUEST_PARTS, type HttpRequestPart, InMemoryCredentialStore, KeyChainStore, LedgerArtifactSelect, MCPToolConfig, MCPTransportType, MCP_TOOL_CONNECTION_TIMEOUT_MS, MCP_TOOL_INITIAL_RECONNECTION_DELAY_MS, MCP_TOOL_MAX_RECONNECTION_DELAY_MS, MCP_TOOL_MAX_RETRIES, MCP_TOOL_RECONNECTION_DELAY_GROWTH_FACTOR, McpClient, type McpClientOptions, type McpSSEConfig, type McpServerConfig, type McpStreamableHttpConfig, McpTool, MessageContent, MessageInsert, MessageMetadata, MessageUpdate, MessageVisibility, NangoCredentialStore, PaginationConfig, PaginationResult, type ParsedHttpRequest, PinoLogger, type ProblemDetails, ProjectInfo, ProjectInsert, type ProjectLogger, ProjectResourceCounts, ProjectScopeConfig, ProjectSelect, ProjectUpdate, type ResolvedContext, STATUS_UPDATE_MAX_INTERVAL_SECONDS, STATUS_UPDATE_MAX_NUM_EVENTS, SUB_AGENT_TURN_GENERATION_STEPS_DEFAULT, SUB_AGENT_TURN_GENERATION_STEPS_MAX, SUB_AGENT_TURN_GENERATION_STEPS_MIN, type ServiceTokenPayload, SubAgentExternalAgentRelationInsert, SubAgentInsert, SubAgentRelationInsert, SubAgentRelationUpdate, SubAgentScopeConfig, SubAgentSelect, SubAgentTeamAgentRelationInsert, SubAgentToolRelationUpdate, SubAgentUpdate, TaskInsert, TaskMetadataConfig, TaskSelect, type TemplateContext, TemplateEngine, type TemplateRenderOptions, ToolInsert, ToolMcpConfig, ToolSelect, ToolServerCapabilities, ToolUpdate, VALIDATION_AGENT_PROMPT_MAX_CHARS, VALIDATION_SUB_AGENT_PROMPT_MAX_CHARS, type VerifyServiceTokenResult, addFunctionToolToSubAgent, addLedgerArtifacts, addToolToAgent, agentHasArtifactComponents, apiFetch, associateArtifactComponentWithAgent, associateDataComponentWithAgent, cleanupTenantCache, clearContextConfigCache, clearConversationCache, commonCreateErrorResponses, commonDeleteErrorResponses, commonGetErrorResponses, commonUpdateErrorResponses, contextConfig, contextValidationMiddleware, countApiKeys, countArtifactComponents, countArtifactComponentsForAgent, countContextConfigs, countCredentialReferences, countDataComponents, countExternalAgents, countLedgerArtifactsByTask, countMessagesByConversation, countProjects, createAgent, createAgentToolRelation, createApiError, createApiKey, createArtifactComponent, createContextConfig, createConversation, createCredentialReference, createDataComponent, createDatabaseClient, createDefaultCredentialStores, createExecutionContext, createExternalAgent, createFullAgentServerSide, createFullProjectServerSide, createFunctionTool, createKeyChainStore, createMessage, createNangoCredentialStore, createOrGetConversation, createProject, createSubAgent, createSubAgentExternalAgentRelation, createSubAgentRelation, createSubAgentTeamAgentRelation, createTask, createTool, createValidatedDataAccess, dbResultToMcpTool, deleteAgent, deleteAgentArtifactComponentRelationByAgent, deleteAgentDataComponentRelationByAgent, deleteAgentRelationsByAgent, deleteAgentToolRelation, deleteAgentToolRelationByAgent, deleteApiKey, deleteArtifactComponent, deleteContextConfig, deleteConversation, deleteCredentialReference, deleteDataComponent, deleteExternalAgent, deleteFullAgent, deleteFullProject, deleteFunction, deleteFunctionTool, deleteLedgerArtifactsByContext, deleteLedgerArtifactsByTask, deleteMessage, deleteProject, deleteSubAgent, deleteSubAgentExternalAgentRelation, deleteSubAgentExternalAgentRelationsByAgent, deleteSubAgentExternalAgentRelationsBySubAgent, deleteSubAgentRelation, deleteSubAgentTeamAgentRelation, deleteSubAgentTeamAgentRelationsByAgent, deleteSubAgentTeamAgentRelationsBySubAgent, deleteTool, determineContextTrigger, errorResponseSchema, errorSchemaFactory, executionLimitsSharedDefaults, externalAgentExists, externalAgentUrlExists, extractPublicId, fetchComponentRelationships, fetchDefinition, generateAndCreateApiKey, generateApiKey, generateId, generateServiceToken, getActiveAgentForConversation, getAgentById, getAgentRelationById, getAgentRelationByParams, getAgentRelations, getAgentRelationsByAgent, getAgentRelationsBySource, getAgentSubAgentInfos, getAgentToolRelationByAgent, getAgentToolRelationById, getAgentToolRelationByTool, getAgentWithDefaultSubAgent, getAgentsForTool, getAgentsUsingArtifactComponent, getAgentsUsingDataComponent, getApiKeyById, getApiKeyByPublicId, getArtifactComponentById, getArtifactComponentsForAgent, getCacheEntry, getCachedValidator, getContextConfigById, getContextConfigCacheEntries, getConversation, getConversationCacheEntries, getConversationHistory, getConversationId, getCredentialReference, getCredentialReferenceById, getCredentialReferenceWithResources, getCredentialStoreLookupKeyFromRetrievalParams, getDataComponent, getDataComponentsForAgent, getExternalAgent, getExternalAgentByUrl, getExternalAgentsForSubAgent, getFullAgent, getFullAgentDefinition, getFullProject, getFunction, getFunctionToolById, getFunctionToolsForSubAgent, getLedgerArtifacts, getLedgerArtifactsByContext, getLogger, getMessageById, getMessagesByConversation, getMessagesByTask, getProject, getProjectResourceCounts, getRelatedAgentsForAgent, getRequestExecutionContext, getSubAgentById, getSubAgentExternalAgentRelationById, getSubAgentExternalAgentRelationByParams, getSubAgentExternalAgentRelations, getSubAgentExternalAgentRelationsByAgent, getSubAgentExternalAgentRelationsByExternalAgent, getSubAgentRelationsByTarget, getSubAgentTeamAgentRelationById, getSubAgentTeamAgentRelationByParams, getSubAgentTeamAgentRelations, getSubAgentTeamAgentRelationsByAgent, getSubAgentTeamAgentRelationsByTeamAgent, getSubAgentsByIds, getSubAgentsForExternalAgent, getSubAgentsForTeamAgent, getTask, getTeamAgentsForSubAgent, getToolById, getToolsForAgent, getTracer, getVisibleMessages, handleApiError, handleContextConfigChange, handleContextResolution, hasApiKey, hasContextConfig, hasCredentialReference, hashApiKey, headers, invalidateHeadersCache, invalidateInvocationDefinitionsCache, isApiKeyExpired, isArtifactComponentAssociatedWithAgent, isDataComponentAssociatedWithAgent, isValidHttpRequest, listAgentRelations, listAgentToolRelations, listAgents, listAgentsPaginated, listApiKeys, listApiKeysPaginated, listArtifactComponents, listArtifactComponentsPaginated, listContextConfigs, listContextConfigsPaginated, listConversations, listCredentialReferences, listCredentialReferencesPaginated, listDataComponents, listDataComponentsPaginated, listExternalAgents, listExternalAgentsPaginated, listFunctionTools, listFunctions, listMessages, listProjects, listProjectsPaginated, listSubAgentExternalAgentRelations, listSubAgentTeamAgentRelations, listSubAgents, listSubAgentsPaginated, listTaskIdsByContextId, listTools, loadEnvironmentFiles, maskApiKey, normalizeDateString, problemDetailsSchema, projectExists, projectExistsInTable, projectHasResources, removeArtifactComponentFromAgent, removeDataComponentFromAgent, removeToolFromAgent, schemaValidationDefaults, setActiveAgentForConversation, setActiveAgentForThread, setCacheEntry, setSpanWithError, updateAgent, updateAgentRelation, updateAgentToolRelation, updateApiKey, updateApiKeyLastUsed, updateArtifactComponent, updateContextConfig, updateConversation, updateConversationActiveAgent, updateCredentialReference, updateDataComponent, updateExternalAgent, updateFullAgentServerSide, updateFullProjectServerSide, updateFunctionTool, updateMessage, updateProject, updateSubAgent, updateSubAgentExternalAgentRelation, updateSubAgentFunctionToolRelation, updateSubAgentTeamAgentRelation, updateTask, updateTool, upsertAgent, upsertAgentArtifactComponentRelation, upsertAgentDataComponentRelation, upsertArtifactComponent, upsertContextConfig, upsertCredentialReference, upsertDataComponent, upsertExternalAgent, upsertFunction, upsertFunctionTool, upsertLedgerArtifact, upsertSubAgent, upsertSubAgentExternalAgentRelation, upsertSubAgentFunctionToolRelation, upsertSubAgentRelation, upsertSubAgentTeamAgentRelation, upsertSubAgentToolRelation, upsertTool, validateAgainstJsonSchema, validateAndGetApiKey, validateApiKey, validateHeaders, validateHttpRequestHeaders, validateProjectExists, validateSubAgent, validateTargetAgent, validateTenantId, validationHelper, verifyAuthorizationHeader, verifyServiceToken, withProjectValidation };