@inkeep/agents-core 0.31.7 → 0.32.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 (61) hide show
  1. package/dist/{chunk-RBUBOGX6.js → chunk-FUJJ4OQ2.js} +62 -10
  2. package/dist/chunk-SVXWB2HF.js +592 -0
  3. package/dist/{chunk-T5TTDZ6L.js → chunk-VSQY72K5.js} +133 -133
  4. package/dist/{chunk-PPBBIDK4.js → chunk-X6ZMJ3G6.js} +1 -1
  5. package/dist/client-exports.cjs +283 -224
  6. package/dist/client-exports.d.cts +7 -7
  7. package/dist/client-exports.d.ts +7 -7
  8. package/dist/client-exports.js +15 -7
  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 +18511 -12300
  14. package/dist/index.d.cts +409 -352
  15. package/dist/index.d.ts +409 -352
  16. package/dist/index.js +16250 -11076
  17. package/dist/nodefs-X2JO4ZHZ.js +21 -0
  18. package/dist/opfs-ahp-2UFDGV73.js +318 -0
  19. package/dist/{schema-lEFnfOQ-.d.ts → schema-CuEjPQt7.d.ts} +876 -1014
  20. package/dist/{schema-ztSm-Iv6.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-qLyZ45lb.d.cts → utility-DF5IUC9K.d.cts} +1230 -1394
  24. package/dist/{utility-qLyZ45lb.d.ts → utility-DF5IUC9K.d.ts} +1230 -1394
  25. package/dist/validation/index.cjs +270 -219
  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.cts 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.cjs';
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.cjs';
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-qLyZ45lb.cjs';
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-qLyZ45lb.cjs';
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.cjs';
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.cjs';
7
7
  import { CredentialStore } from './types/index.cjs';
8
8
  export { CorsConfig, ServerConfig, ServerOptions } from './types/index.cjs';
9
- import { LibSQLDatabase } from 'drizzle-orm/libsql';
10
- import { s as schema } from './schema-ztSm-Iv6.cjs';
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-ztSm-Iv6.cjs';
9
+ import { NodePgDatabase } from 'drizzle-orm/node-postgres';
10
+ import { PgliteDatabase } from 'drizzle-orm/pglite';
11
+ import { s as schema } from './schema-D1P8r3qm.cjs';
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-D1P8r3qm.cjs';
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';
@@ -58,6 +59,58 @@ import 'drizzle-orm';
58
59
  */
59
60
  declare function apiFetch(url: string, options?: RequestInit): Promise<Response>;
60
61
 
62
+ /**
63
+ * Shared execution limit default constants used for runtime behavior across services.
64
+ * These define limits and defaults for runtime execution, not schema validation.
65
+ */
66
+ declare const executionLimitsSharedDefaults: {
67
+ readonly MCP_TOOL_CONNECTION_TIMEOUT_MS: 3000;
68
+ readonly MCP_TOOL_MAX_RETRIES: 3;
69
+ readonly MCP_TOOL_MAX_RECONNECTION_DELAY_MS: 30000;
70
+ readonly MCP_TOOL_INITIAL_RECONNECTION_DELAY_MS: 1000;
71
+ readonly MCP_TOOL_RECONNECTION_DELAY_GROWTH_FACTOR: 1.5;
72
+ readonly CONVERSATION_HISTORY_DEFAULT_LIMIT: 50;
73
+ readonly CONVERSATION_HISTORY_MAX_OUTPUT_TOKENS_DEFAULT: 4000;
74
+ };
75
+
76
+ declare const MCP_TOOL_CONNECTION_TIMEOUT_MS: 3000;
77
+ declare const MCP_TOOL_MAX_RETRIES: 3;
78
+ declare const MCP_TOOL_MAX_RECONNECTION_DELAY_MS: 30000;
79
+ declare const MCP_TOOL_INITIAL_RECONNECTION_DELAY_MS: 1000;
80
+ declare const MCP_TOOL_RECONNECTION_DELAY_GROWTH_FACTOR: 1.5;
81
+ declare const CONVERSATION_HISTORY_DEFAULT_LIMIT: 50;
82
+ declare const CONVERSATION_HISTORY_MAX_OUTPUT_TOKENS_DEFAULT: 4000;
83
+
84
+ /**
85
+ * Schema validation default constants used in Zod schemas.
86
+ * These define limits and defaults for user-configurable values.
87
+ */
88
+ declare const schemaValidationDefaults: {
89
+ readonly AGENT_EXECUTION_TRANSFER_COUNT_MIN: 1;
90
+ readonly AGENT_EXECUTION_TRANSFER_COUNT_MAX: 1000;
91
+ readonly AGENT_EXECUTION_TRANSFER_COUNT_DEFAULT: 10;
92
+ readonly SUB_AGENT_TURN_GENERATION_STEPS_MIN: 1;
93
+ readonly SUB_AGENT_TURN_GENERATION_STEPS_MAX: 1000;
94
+ readonly SUB_AGENT_TURN_GENERATION_STEPS_DEFAULT: 12;
95
+ readonly STATUS_UPDATE_MAX_NUM_EVENTS: 100;
96
+ readonly STATUS_UPDATE_MAX_INTERVAL_SECONDS: 600;
97
+ readonly VALIDATION_SUB_AGENT_PROMPT_MAX_CHARS: 2000;
98
+ readonly VALIDATION_AGENT_PROMPT_MAX_CHARS: 5000;
99
+ readonly CONTEXT_FETCHER_HTTP_TIMEOUT_MS_DEFAULT: 10000;
100
+ };
101
+
102
+ declare const AGENT_EXECUTION_TRANSFER_COUNT_MIN: 1;
103
+ declare const AGENT_EXECUTION_TRANSFER_COUNT_MAX: 1000;
104
+ declare const AGENT_EXECUTION_TRANSFER_COUNT_DEFAULT: 10;
105
+ declare const SUB_AGENT_TURN_GENERATION_STEPS_MIN: 1;
106
+ declare const SUB_AGENT_TURN_GENERATION_STEPS_MAX: 1000;
107
+ declare const SUB_AGENT_TURN_GENERATION_STEPS_DEFAULT: 12;
108
+ declare const STATUS_UPDATE_MAX_NUM_EVENTS: 100;
109
+ declare const STATUS_UPDATE_MAX_INTERVAL_SECONDS: 600;
110
+ declare const VALIDATION_SUB_AGENT_PROMPT_MAX_CHARS: 2000;
111
+ declare const VALIDATION_AGENT_PROMPT_MAX_CHARS: 5000;
112
+ declare const CONTEXT_FETCHER_HTTP_TIMEOUT_MS_DEFAULT: 10000;
113
+
61
114
  type Primitive = string | number | boolean | bigint | symbol | null | undefined | Date;
62
115
  type JoinDot<P extends string, K extends string> = [P] extends [''] ? K : `${P}.${K}`;
63
116
  type DotPaths<T, P extends string = ''> = [T] extends [Primitive] ? P : T extends ReadonlyArray<infer U> ? P | DotPaths<U, `${P}[${number}]`> | DotPaths<U, `${P}[*]`> : T extends Array<infer U> ? P | DotPaths<U, `${P}[${number}]`> | DotPaths<U, `${P}[*]`> : T extends object ? P | {
@@ -184,22 +237,19 @@ declare class CredentialStoreRegistry {
184
237
  size(): number;
185
238
  }
186
239
 
187
- type DatabaseClient = LibSQLDatabase<typeof schema>;
240
+ type DatabaseClient = NodePgDatabase<typeof schema> | PgliteDatabase<typeof schema>;
188
241
  interface DatabaseConfig {
189
- url: string;
190
- authToken?: string;
242
+ connectionString?: string;
243
+ poolSize?: number;
244
+ ssl?: boolean;
191
245
  logger?: {
192
246
  logQuery: (query: string, params: unknown[]) => void;
193
247
  };
194
248
  }
195
249
  /**
196
- * Creates a database client with the specified configuration
250
+ * Creates a PostgreSQL database client with connection pooling
197
251
  */
198
- declare function createDatabaseClient(config: DatabaseConfig): DatabaseClient;
199
- /**
200
- * Creates an in-memory database client for testing
201
- */
202
- declare function createInMemoryDatabaseClient(): DatabaseClient;
252
+ declare function createDatabaseClient(config?: DatabaseConfig): DatabaseClient;
203
253
 
204
254
  interface TemplateContext {
205
255
  [key: string]: unknown;
@@ -790,13 +840,14 @@ declare const deleteFullAgent: (db: DatabaseClient, logger?: AgentLogger) => (pa
790
840
  declare const getAgentById: (db: DatabaseClient) => (params: {
791
841
  scopes: AgentScopeConfig;
792
842
  }) => Promise<{
793
- name: string;
843
+ tenantId: string;
844
+ projectId: string;
794
845
  id: string;
846
+ name: string;
847
+ description: string | null;
848
+ prompt: string | null;
795
849
  createdAt: string;
796
850
  updatedAt: string;
797
- projectId: string;
798
- tenantId: string;
799
- description: string | null;
800
851
  models: {
801
852
  base?: {
802
853
  model?: string | undefined;
@@ -816,7 +867,6 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
816
867
  } | null;
817
868
  defaultSubAgentId: string | null;
818
869
  contextConfigId: string | null;
819
- prompt: string | null;
820
870
  statusUpdates: {
821
871
  enabled?: boolean | undefined;
822
872
  numEvents?: number | undefined;
@@ -836,13 +886,14 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
836
886
  declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
837
887
  scopes: AgentScopeConfig;
838
888
  }) => Promise<{
839
- name: string;
889
+ tenantId: string;
890
+ projectId: string;
840
891
  id: string;
892
+ name: string;
893
+ description: string | null;
894
+ prompt: string | null;
841
895
  createdAt: string;
842
896
  updatedAt: string;
843
- projectId: string;
844
- tenantId: string;
845
- description: string | null;
846
897
  models: {
847
898
  base?: {
848
899
  model?: string | undefined;
@@ -862,7 +913,6 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
862
913
  } | null;
863
914
  defaultSubAgentId: string | null;
864
915
  contextConfigId: string | null;
865
- prompt: string | null;
866
916
  statusUpdates: {
867
917
  enabled?: boolean | undefined;
868
918
  numEvents?: number | undefined;
@@ -879,13 +929,15 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
879
929
  }[] | undefined;
880
930
  } | null;
881
931
  defaultSubAgent: {
882
- name: string;
932
+ tenantId: string;
933
+ projectId: string;
883
934
  id: string;
935
+ name: string;
936
+ description: string;
937
+ prompt: string;
938
+ agentId: string;
884
939
  createdAt: string;
885
940
  updatedAt: string;
886
- projectId: string;
887
- tenantId: string;
888
- description: string;
889
941
  models: {
890
942
  base?: {
891
943
  model?: string | undefined;
@@ -903,21 +955,20 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
903
955
  stopWhen: {
904
956
  stepCountIs?: number | undefined;
905
957
  } | null;
906
- agentId: string;
907
- prompt: string;
908
958
  conversationHistoryConfig: ConversationHistoryConfig | null;
909
959
  } | null;
910
960
  } | null>;
911
961
  declare const listAgents: (db: DatabaseClient) => (params: {
912
962
  scopes: ProjectScopeConfig;
913
963
  }) => Promise<{
914
- name: string;
964
+ tenantId: string;
965
+ projectId: string;
915
966
  id: string;
967
+ name: string;
968
+ description: string | null;
969
+ prompt: string | null;
916
970
  createdAt: string;
917
971
  updatedAt: string;
918
- projectId: string;
919
- tenantId: string;
920
- description: string | null;
921
972
  models: {
922
973
  base?: {
923
974
  model?: string | undefined;
@@ -937,7 +988,6 @@ declare const listAgents: (db: DatabaseClient) => (params: {
937
988
  } | null;
938
989
  defaultSubAgentId: string | null;
939
990
  contextConfigId: string | null;
940
- prompt: string | null;
941
991
  statusUpdates: {
942
992
  enabled?: boolean | undefined;
943
993
  numEvents?: number | undefined;
@@ -1010,13 +1060,14 @@ declare const listAgentsPaginated: (db: DatabaseClient) => (params: {
1010
1060
  };
1011
1061
  }>;
1012
1062
  declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promise<{
1013
- name: string;
1063
+ tenantId: string;
1064
+ projectId: string;
1014
1065
  id: string;
1066
+ name: string;
1067
+ description: string | null;
1068
+ prompt: string | null;
1015
1069
  createdAt: string;
1016
1070
  updatedAt: string;
1017
- projectId: string;
1018
- tenantId: string;
1019
- description: string | null;
1020
1071
  models: {
1021
1072
  base?: {
1022
1073
  model?: string | undefined;
@@ -1036,7 +1087,6 @@ declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promis
1036
1087
  } | null;
1037
1088
  defaultSubAgentId: string | null;
1038
1089
  contextConfigId: string | null;
1039
- prompt: string | null;
1040
1090
  statusUpdates: {
1041
1091
  enabled?: boolean | undefined;
1042
1092
  numEvents?: number | undefined;
@@ -1057,13 +1107,12 @@ declare const updateAgent: (db: DatabaseClient) => (params: {
1057
1107
  scopes: AgentScopeConfig;
1058
1108
  data: AgentUpdate;
1059
1109
  }) => Promise<{
1060
- name: string;
1061
- id: string;
1062
1110
  createdAt: string;
1063
1111
  updatedAt: string;
1064
- projectId: string;
1065
- tenantId: string;
1112
+ name: string;
1066
1113
  description: string | null;
1114
+ defaultSubAgentId: string | null;
1115
+ contextConfigId: string | null;
1067
1116
  models: {
1068
1117
  base?: {
1069
1118
  model?: string | undefined;
@@ -1078,12 +1127,6 @@ declare const updateAgent: (db: DatabaseClient) => (params: {
1078
1127
  providerOptions?: Record<string, any> | undefined;
1079
1128
  } | undefined;
1080
1129
  } | null;
1081
- stopWhen: {
1082
- transferCountIs?: number | undefined;
1083
- } | null;
1084
- defaultSubAgentId: string | null;
1085
- contextConfigId: string | null;
1086
- prompt: string | null;
1087
1130
  statusUpdates: {
1088
1131
  enabled?: boolean | undefined;
1089
1132
  numEvents?: number | undefined;
@@ -1099,6 +1142,13 @@ declare const updateAgent: (db: DatabaseClient) => (params: {
1099
1142
  } | undefined;
1100
1143
  }[] | undefined;
1101
1144
  } | null;
1145
+ prompt: string | null;
1146
+ stopWhen: {
1147
+ transferCountIs?: number | undefined;
1148
+ } | null;
1149
+ projectId: string;
1150
+ tenantId: string;
1151
+ id: string;
1102
1152
  }>;
1103
1153
  declare const deleteAgent: (db: DatabaseClient) => (params: {
1104
1154
  scopes: AgentScopeConfig;
@@ -1107,8 +1157,8 @@ declare const deleteAgent: (db: DatabaseClient) => (params: {
1107
1157
  * Helper function to fetch component relationships using efficient joins
1108
1158
  */
1109
1159
  declare const fetchComponentRelationships: (db: DatabaseClient) => <T extends Record<string, unknown>>(scopes: ProjectScopeConfig, subAgentIds: string[], config: {
1110
- relationTable: SQLiteTable<any>;
1111
- componentTable: SQLiteTable<any>;
1160
+ relationTable: PgTable<any>;
1161
+ componentTable: PgTable<any>;
1112
1162
  relationIdField: unknown;
1113
1163
  componentIdField: unknown;
1114
1164
  subAgentIdField: unknown;
@@ -1137,49 +1187,49 @@ declare const getApiKeyById: (db: DatabaseClient) => (params: {
1137
1187
  scopes: ProjectScopeConfig;
1138
1188
  id: string;
1139
1189
  }) => Promise<{
1140
- name: string | null;
1141
- id: string;
1142
- createdAt: string;
1143
- updatedAt: string;
1144
- projectId: string;
1145
1190
  tenantId: string;
1191
+ projectId: string;
1192
+ id: string;
1193
+ name: string | null;
1146
1194
  agentId: string;
1147
- expiresAt: string | null;
1148
1195
  publicId: string;
1149
1196
  keyHash: string;
1150
1197
  keyPrefix: string;
1151
1198
  lastUsedAt: string | null;
1152
- } | undefined>;
1153
- declare const getApiKeyByPublicId: (db: DatabaseClient) => (publicId: string) => Promise<{
1154
- name: string | null;
1155
- id: string;
1199
+ expiresAt: string | null;
1156
1200
  createdAt: string;
1157
1201
  updatedAt: string;
1158
- projectId: string;
1202
+ } | undefined>;
1203
+ declare const getApiKeyByPublicId: (db: DatabaseClient) => (publicId: string) => Promise<{
1159
1204
  tenantId: string;
1205
+ projectId: string;
1206
+ id: string;
1207
+ name: string | null;
1160
1208
  agentId: string;
1161
- expiresAt: string | null;
1162
1209
  publicId: string;
1163
1210
  keyHash: string;
1164
1211
  keyPrefix: string;
1165
1212
  lastUsedAt: string | null;
1213
+ expiresAt: string | null;
1214
+ createdAt: string;
1215
+ updatedAt: string;
1166
1216
  } | undefined>;
1167
1217
  declare const listApiKeys: (db: DatabaseClient) => (params: {
1168
1218
  scopes: ProjectScopeConfig;
1169
1219
  agentId?: string;
1170
1220
  }) => Promise<{
1171
- name: string | null;
1172
- id: string;
1173
- createdAt: string;
1174
- updatedAt: string;
1175
- projectId: string;
1176
1221
  tenantId: string;
1222
+ projectId: string;
1223
+ id: string;
1224
+ name: string | null;
1177
1225
  agentId: string;
1178
- expiresAt: string | null;
1179
1226
  publicId: string;
1180
1227
  keyHash: string;
1181
1228
  keyPrefix: string;
1182
1229
  lastUsedAt: string | null;
1230
+ expiresAt: string | null;
1231
+ createdAt: string;
1232
+ updatedAt: string;
1183
1233
  }[]>;
1184
1234
  declare const listApiKeysPaginated: (db: DatabaseClient) => (params: {
1185
1235
  scopes: ProjectScopeConfig;
@@ -1195,36 +1245,36 @@ declare const listApiKeysPaginated: (db: DatabaseClient) => (params: {
1195
1245
  };
1196
1246
  }>;
1197
1247
  declare const createApiKey: (db: DatabaseClient) => (params: ApiKeyInsert) => Promise<{
1198
- name: string | null;
1199
- id: string;
1200
- createdAt: string;
1201
- updatedAt: string;
1202
- projectId: string;
1203
1248
  tenantId: string;
1249
+ projectId: string;
1250
+ id: string;
1251
+ name: string | null;
1204
1252
  agentId: string;
1205
- expiresAt: string | null;
1206
1253
  publicId: string;
1207
1254
  keyHash: string;
1208
1255
  keyPrefix: string;
1209
1256
  lastUsedAt: string | null;
1257
+ expiresAt: string | null;
1258
+ createdAt: string;
1259
+ updatedAt: string;
1210
1260
  }>;
1211
1261
  declare const updateApiKey: (db: DatabaseClient) => (params: {
1212
1262
  scopes: ProjectScopeConfig;
1213
1263
  id: string;
1214
1264
  data: ApiKeyUpdate;
1215
1265
  }) => Promise<{
1216
- name: string | null;
1217
- id: string;
1218
1266
  createdAt: string;
1219
1267
  updatedAt: string;
1220
- projectId: string;
1221
- tenantId: string;
1222
- agentId: string;
1223
- expiresAt: string | null;
1224
1268
  publicId: string;
1225
1269
  keyHash: string;
1226
1270
  keyPrefix: string;
1271
+ name: string | null;
1227
1272
  lastUsedAt: string | null;
1273
+ expiresAt: string | null;
1274
+ agentId: string;
1275
+ projectId: string;
1276
+ tenantId: string;
1277
+ id: string;
1228
1278
  }>;
1229
1279
  declare const deleteApiKey: (db: DatabaseClient) => (params: {
1230
1280
  scopes: ProjectScopeConfig;
@@ -1253,13 +1303,13 @@ declare const getArtifactComponentById: (db: DatabaseClient) => (params: {
1253
1303
  scopes: ProjectScopeConfig;
1254
1304
  id: string;
1255
1305
  }) => Promise<{
1256
- name: string;
1306
+ tenantId: string;
1307
+ projectId: string;
1257
1308
  id: string;
1309
+ name: string;
1310
+ description: string;
1258
1311
  createdAt: string;
1259
1312
  updatedAt: string;
1260
- projectId: string;
1261
- tenantId: string;
1262
- description: string;
1263
1313
  props: Record<string, unknown> | null;
1264
1314
  } | undefined>;
1265
1315
  declare const listArtifactComponents: (db: DatabaseClient) => (params: {
@@ -1287,13 +1337,13 @@ declare const listArtifactComponentsPaginated: (db: DatabaseClient) => (params:
1287
1337
  };
1288
1338
  }>;
1289
1339
  declare const createArtifactComponent: (db: DatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
1290
- name: string;
1340
+ tenantId: string;
1341
+ projectId: string;
1291
1342
  id: string;
1343
+ name: string;
1344
+ description: string;
1292
1345
  createdAt: string;
1293
1346
  updatedAt: string;
1294
- projectId: string;
1295
- tenantId: string;
1296
- description: string;
1297
1347
  props: Record<string, unknown> | null;
1298
1348
  }>;
1299
1349
  declare const updateArtifactComponent: (db: DatabaseClient) => (params: {
@@ -1301,14 +1351,14 @@ declare const updateArtifactComponent: (db: DatabaseClient) => (params: {
1301
1351
  id: string;
1302
1352
  data: ArtifactComponentUpdate;
1303
1353
  }) => Promise<{
1304
- name: string;
1305
- id: string;
1306
1354
  createdAt: string;
1307
1355
  updatedAt: string;
1356
+ props: Record<string, unknown> | null;
1357
+ name: string;
1358
+ description: string;
1308
1359
  projectId: string;
1309
1360
  tenantId: string;
1310
- description: string;
1311
- props: Record<string, unknown> | null;
1361
+ id: string;
1312
1362
  }>;
1313
1363
  declare const deleteArtifactComponent: (db: DatabaseClient) => (params: {
1314
1364
  scopes: ProjectScopeConfig;
@@ -1330,11 +1380,11 @@ declare const associateArtifactComponentWithAgent: (db: DatabaseClient) => (para
1330
1380
  scopes: SubAgentScopeConfig;
1331
1381
  artifactComponentId: string;
1332
1382
  }) => Promise<{
1333
- id: string;
1334
- createdAt: string;
1335
- projectId: string;
1336
1383
  tenantId: string;
1384
+ projectId: string;
1385
+ id: string;
1337
1386
  agentId: string;
1387
+ createdAt: string;
1338
1388
  subAgentId: string;
1339
1389
  artifactComponentId: string;
1340
1390
  }>;
@@ -1373,11 +1423,11 @@ declare const upsertAgentArtifactComponentRelation: (db: DatabaseClient) => (par
1373
1423
  scopes: SubAgentScopeConfig;
1374
1424
  artifactComponentId: string;
1375
1425
  }) => Promise<{
1376
- id: string;
1377
- createdAt: string;
1378
- projectId: string;
1379
1426
  tenantId: string;
1427
+ projectId: string;
1428
+ id: string;
1380
1429
  agentId: string;
1430
+ createdAt: string;
1381
1431
  subAgentId: string;
1382
1432
  artifactComponentId: string;
1383
1433
  } | null>;
@@ -1457,26 +1507,26 @@ declare const getContextConfigById: (db: DatabaseClient) => (params: {
1457
1507
  scopes: AgentScopeConfig;
1458
1508
  id: string;
1459
1509
  }) => Promise<{
1510
+ tenantId: string;
1511
+ projectId: string;
1460
1512
  id: string;
1513
+ agentId: string;
1461
1514
  createdAt: string;
1462
1515
  updatedAt: string;
1463
- projectId: string;
1464
- tenantId: string;
1465
1516
  headersSchema: unknown;
1466
1517
  contextVariables: Record<string, ContextFetchDefinition> | null;
1467
- agentId: string;
1468
1518
  } | undefined>;
1469
1519
  declare const listContextConfigs: (db: DatabaseClient) => (params: {
1470
1520
  scopes: AgentScopeConfig;
1471
1521
  }) => Promise<{
1522
+ tenantId: string;
1523
+ projectId: string;
1472
1524
  id: string;
1525
+ agentId: string;
1473
1526
  createdAt: string;
1474
1527
  updatedAt: string;
1475
- projectId: string;
1476
- tenantId: string;
1477
1528
  headersSchema: unknown;
1478
1529
  contextVariables: Record<string, ContextFetchDefinition> | null;
1479
- agentId: string;
1480
1530
  }[]>;
1481
1531
  declare const listContextConfigsPaginated: (db: DatabaseClient) => (params: {
1482
1532
  scopes: AgentScopeConfig;
@@ -1491,28 +1541,28 @@ declare const listContextConfigsPaginated: (db: DatabaseClient) => (params: {
1491
1541
  };
1492
1542
  }>;
1493
1543
  declare const createContextConfig: (db: DatabaseClient) => (params: ContextConfigInsert) => Promise<{
1544
+ tenantId: string;
1545
+ projectId: string;
1494
1546
  id: string;
1547
+ agentId: string;
1495
1548
  createdAt: string;
1496
1549
  updatedAt: string;
1497
- projectId: string;
1498
- tenantId: string;
1499
1550
  headersSchema: unknown;
1500
1551
  contextVariables: Record<string, ContextFetchDefinition> | null;
1501
- agentId: string;
1502
1552
  }>;
1503
1553
  declare const updateContextConfig: (db: DatabaseClient) => (params: {
1504
1554
  scopes: AgentScopeConfig;
1505
1555
  id: string;
1506
1556
  data: Partial<ContextConfigUpdate>;
1507
1557
  }) => Promise<{
1508
- id: string;
1509
1558
  createdAt: string;
1510
1559
  updatedAt: string;
1511
- projectId: string;
1512
- tenantId: string;
1513
1560
  headersSchema: unknown;
1514
1561
  contextVariables: Record<string, ContextFetchDefinition> | null;
1515
1562
  agentId: string;
1563
+ projectId: string;
1564
+ tenantId: string;
1565
+ id: string;
1516
1566
  }>;
1517
1567
  declare const deleteContextConfig: (db: DatabaseClient) => (params: {
1518
1568
  scopes: AgentScopeConfig;
@@ -1531,14 +1581,14 @@ declare const countContextConfigs: (db: DatabaseClient) => (params: {
1531
1581
  declare const upsertContextConfig: (db: DatabaseClient) => (params: {
1532
1582
  data: ContextConfigInsert;
1533
1583
  }) => Promise<{
1584
+ tenantId: string;
1585
+ projectId: string;
1534
1586
  id: string;
1587
+ agentId: string;
1535
1588
  createdAt: string;
1536
1589
  updatedAt: string;
1537
- projectId: string;
1538
- tenantId: string;
1539
1590
  headersSchema: unknown;
1540
1591
  contextVariables: Record<string, ContextFetchDefinition> | null;
1541
- agentId: string;
1542
1592
  }>;
1543
1593
 
1544
1594
  declare const listConversations: (db: DatabaseClient) => (params: {
@@ -1550,12 +1600,12 @@ declare const listConversations: (db: DatabaseClient) => (params: {
1550
1600
  total: number;
1551
1601
  }>;
1552
1602
  declare const createConversation: (db: DatabaseClient) => (params: ConversationInsert) => Promise<{
1603
+ tenantId: string;
1604
+ projectId: string;
1553
1605
  id: string;
1606
+ title: string | null;
1554
1607
  createdAt: string;
1555
1608
  updatedAt: string;
1556
- projectId: string;
1557
- tenantId: string;
1558
- title: string | null;
1559
1609
  metadata: ConversationMetadata | null;
1560
1610
  userId: string | null;
1561
1611
  activeSubAgentId: string;
@@ -1566,16 +1616,16 @@ declare const updateConversation: (db: DatabaseClient) => (params: {
1566
1616
  conversationId: string;
1567
1617
  data: ConversationUpdate;
1568
1618
  }) => Promise<{
1569
- id: string;
1570
1619
  createdAt: string;
1571
1620
  updatedAt: string;
1572
- projectId: string;
1573
- tenantId: string;
1574
- title: string | null;
1575
- metadata: ConversationMetadata | null;
1576
1621
  userId: string | null;
1577
1622
  activeSubAgentId: string;
1623
+ title: string | null;
1578
1624
  lastContextResolution: string | null;
1625
+ metadata: ConversationMetadata | null;
1626
+ projectId: string;
1627
+ tenantId: string;
1628
+ id: string;
1579
1629
  }>;
1580
1630
  declare const deleteConversation: (db: DatabaseClient) => (params: {
1581
1631
  scopes: ProjectScopeConfig;
@@ -1586,27 +1636,27 @@ declare const updateConversationActiveAgent: (db: DatabaseClient) => (params: {
1586
1636
  conversationId: string;
1587
1637
  activeSubAgentId: string;
1588
1638
  }) => Promise<{
1589
- id: string;
1590
1639
  createdAt: string;
1591
1640
  updatedAt: string;
1592
- projectId: string;
1593
- tenantId: string;
1594
- title: string | null;
1595
- metadata: ConversationMetadata | null;
1596
1641
  userId: string | null;
1597
1642
  activeSubAgentId: string;
1643
+ title: string | null;
1598
1644
  lastContextResolution: string | null;
1645
+ metadata: ConversationMetadata | null;
1646
+ projectId: string;
1647
+ tenantId: string;
1648
+ id: string;
1599
1649
  }>;
1600
1650
  declare const getConversation: (db: DatabaseClient) => (params: {
1601
1651
  scopes: ProjectScopeConfig;
1602
1652
  conversationId: string;
1603
1653
  }) => Promise<{
1654
+ tenantId: string;
1655
+ projectId: string;
1604
1656
  id: string;
1657
+ title: string | null;
1605
1658
  createdAt: string;
1606
1659
  updatedAt: string;
1607
- projectId: string;
1608
- tenantId: string;
1609
- title: string | null;
1610
1660
  metadata: ConversationMetadata | null;
1611
1661
  userId: string | null;
1612
1662
  activeSubAgentId: string;
@@ -1625,12 +1675,12 @@ declare const createOrGetConversation: (db: DatabaseClient) => (input: Conversat
1625
1675
  metadata?: ConversationMetadata | null | undefined;
1626
1676
  contextConfigId?: string | undefined;
1627
1677
  } | {
1678
+ tenantId: string;
1679
+ projectId: string;
1628
1680
  id: string;
1681
+ title: string | null;
1629
1682
  createdAt: string;
1630
1683
  updatedAt: string;
1631
- projectId: string;
1632
- tenantId: string;
1633
- title: string | null;
1634
1684
  metadata: ConversationMetadata | null;
1635
1685
  userId: string | null;
1636
1686
  activeSubAgentId: string;
@@ -1651,12 +1701,12 @@ declare const getActiveAgentForConversation: (db: DatabaseClient) => (params: {
1651
1701
  scopes: ProjectScopeConfig;
1652
1702
  conversationId: string;
1653
1703
  }) => Promise<{
1704
+ tenantId: string;
1705
+ projectId: string;
1654
1706
  id: string;
1707
+ title: string | null;
1655
1708
  createdAt: string;
1656
1709
  updatedAt: string;
1657
- projectId: string;
1658
- tenantId: string;
1659
- title: string | null;
1660
1710
  metadata: ConversationMetadata | null;
1661
1711
  userId: string | null;
1662
1712
  activeSubAgentId: string;
@@ -1821,11 +1871,11 @@ declare const associateDataComponentWithAgent: (db: DatabaseClient) => (params:
1821
1871
  scopes: SubAgentScopeConfig;
1822
1872
  dataComponentId: string;
1823
1873
  }) => Promise<{
1874
+ tenantId: string;
1875
+ projectId: string;
1824
1876
  id: string;
1877
+ agentId: string;
1825
1878
  createdAt: string;
1826
- projectId: string;
1827
- tenantId: string;
1828
- agentId: string;
1829
1879
  subAgentId: string;
1830
1880
  dataComponentId: string;
1831
1881
  }>;
@@ -1863,11 +1913,11 @@ declare const upsertAgentDataComponentRelation: (db: DatabaseClient) => (params:
1863
1913
  scopes: SubAgentScopeConfig;
1864
1914
  dataComponentId: string;
1865
1915
  }) => Promise<{
1866
- id: string;
1867
- createdAt: string;
1868
- projectId: string;
1869
1916
  tenantId: string;
1917
+ projectId: string;
1918
+ id: string;
1870
1919
  agentId: string;
1920
+ createdAt: string;
1871
1921
  subAgentId: string;
1872
1922
  dataComponentId: string;
1873
1923
  } | null>;
@@ -2042,14 +2092,14 @@ declare const createFunctionTool: (db: DatabaseClient) => (params: {
2042
2092
  data: FunctionToolApiInsert;
2043
2093
  scopes: AgentScopeConfig;
2044
2094
  }) => Promise<{
2045
- name: string;
2046
- id: string;
2047
- createdAt: string;
2048
- updatedAt: string;
2049
- projectId: string;
2050
2095
  tenantId: string;
2096
+ projectId: string;
2097
+ id: string;
2098
+ name: string;
2051
2099
  description: string | null;
2052
2100
  agentId: string;
2101
+ createdAt: string;
2102
+ updatedAt: string;
2053
2103
  functionId: string;
2054
2104
  }>;
2055
2105
  /**
@@ -2060,15 +2110,15 @@ declare const updateFunctionTool: (db: DatabaseClient) => (params: {
2060
2110
  functionToolId: string;
2061
2111
  data: FunctionToolApiUpdate;
2062
2112
  }) => Promise<{
2063
- name: string;
2064
- id: string;
2065
2113
  createdAt: string;
2066
2114
  updatedAt: string;
2067
- projectId: string;
2068
- tenantId: string;
2115
+ name: string;
2069
2116
  description: string | null;
2070
- agentId: string;
2071
2117
  functionId: string;
2118
+ agentId: string;
2119
+ projectId: string;
2120
+ tenantId: string;
2121
+ id: string;
2072
2122
  }>;
2073
2123
  /**
2074
2124
  * Delete a function tool (agent-scoped)
@@ -2084,14 +2134,14 @@ declare const upsertFunctionTool: (db: DatabaseClient) => (params: {
2084
2134
  data: FunctionToolApiInsert;
2085
2135
  scopes: AgentScopeConfig;
2086
2136
  }) => Promise<{
2087
- name: string;
2088
- id: string;
2089
- createdAt: string;
2090
- updatedAt: string;
2091
- projectId: string;
2092
2137
  tenantId: string;
2138
+ projectId: string;
2139
+ id: string;
2140
+ name: string;
2093
2141
  description: string | null;
2094
2142
  agentId: string;
2143
+ createdAt: string;
2144
+ updatedAt: string;
2095
2145
  functionId: string;
2096
2146
  }>;
2097
2147
  declare const getFunctionToolsForSubAgent: (db: DatabaseClient) => (params: {
@@ -2221,11 +2271,11 @@ declare const getMessageById: (db: DatabaseClient) => (params: {
2221
2271
  scopes: ProjectScopeConfig;
2222
2272
  messageId: string;
2223
2273
  }) => Promise<{
2274
+ tenantId: string;
2275
+ projectId: string;
2224
2276
  id: string;
2225
2277
  createdAt: string;
2226
2278
  updatedAt: string;
2227
- projectId: string;
2228
- tenantId: string;
2229
2279
  metadata: MessageMetadata | null;
2230
2280
  content: MessageContent;
2231
2281
  conversationId: string;
@@ -2352,11 +2402,11 @@ declare const getVisibleMessages: (db: DatabaseClient) => (params: {
2352
2402
  id: string;
2353
2403
  }[]>;
2354
2404
  declare const createMessage: (db: DatabaseClient) => (params: MessageInsert) => Promise<{
2405
+ tenantId: string;
2406
+ projectId: string;
2355
2407
  id: string;
2356
2408
  createdAt: string;
2357
2409
  updatedAt: string;
2358
- projectId: string;
2359
- tenantId: string;
2360
2410
  metadata: MessageMetadata | null;
2361
2411
  content: MessageContent;
2362
2412
  conversationId: string;
@@ -2379,13 +2429,8 @@ declare const updateMessage: (db: DatabaseClient) => (params: {
2379
2429
  messageId: string;
2380
2430
  data: MessageUpdate;
2381
2431
  }) => Promise<{
2382
- id: string;
2383
2432
  createdAt: string;
2384
2433
  updatedAt: string;
2385
- projectId: string;
2386
- tenantId: string;
2387
- metadata: MessageMetadata | null;
2388
- content: MessageContent;
2389
2434
  conversationId: string;
2390
2435
  role: string;
2391
2436
  fromSubAgentId: string | null;
@@ -2394,22 +2439,27 @@ declare const updateMessage: (db: DatabaseClient) => (params: {
2394
2439
  toExternalAgentId: string | null;
2395
2440
  fromTeamAgentId: string | null;
2396
2441
  toTeamAgentId: string | null;
2442
+ content: MessageContent;
2397
2443
  visibility: string;
2398
2444
  messageType: string;
2399
2445
  taskId: string | null;
2400
2446
  parentMessageId: string | null;
2401
2447
  a2aTaskId: string | null;
2402
2448
  a2aSessionId: string | null;
2449
+ metadata: MessageMetadata | null;
2450
+ projectId: string;
2451
+ tenantId: string;
2452
+ id: string;
2403
2453
  }>;
2404
2454
  declare const deleteMessage: (db: DatabaseClient) => (params: {
2405
2455
  scopes: ProjectScopeConfig;
2406
2456
  messageId: string;
2407
2457
  }) => Promise<{
2458
+ tenantId: string;
2459
+ projectId: string;
2408
2460
  id: string;
2409
2461
  createdAt: string;
2410
2462
  updatedAt: string;
2411
- projectId: string;
2412
- tenantId: string;
2413
2463
  metadata: MessageMetadata | null;
2414
2464
  content: MessageContent;
2415
2465
  conversationId: string;
@@ -2530,15 +2580,15 @@ declare const getSubAgentExternalAgentRelationById: (db: DatabaseClient) => (par
2530
2580
  scopes: SubAgentScopeConfig;
2531
2581
  relationId: string;
2532
2582
  }) => Promise<{
2533
- headers: Record<string, string> | null;
2583
+ tenantId: string;
2584
+ projectId: string;
2534
2585
  id: string;
2586
+ agentId: string;
2535
2587
  createdAt: string;
2536
2588
  updatedAt: string;
2537
- projectId: string;
2538
- tenantId: string;
2539
- agentId: string;
2540
- subAgentId: string;
2589
+ headers: Record<string, string> | null;
2541
2590
  externalAgentId: string;
2591
+ subAgentId: string;
2542
2592
  } | undefined>;
2543
2593
  declare const listSubAgentExternalAgentRelations: (db: DatabaseClient) => (params: {
2544
2594
  scopes: SubAgentScopeConfig;
@@ -2565,28 +2615,28 @@ declare const listSubAgentExternalAgentRelations: (db: DatabaseClient) => (param
2565
2615
  declare const getSubAgentExternalAgentRelations: (db: DatabaseClient) => (params: {
2566
2616
  scopes: SubAgentScopeConfig;
2567
2617
  }) => Promise<{
2568
- headers: Record<string, string> | null;
2618
+ tenantId: string;
2619
+ projectId: string;
2569
2620
  id: string;
2621
+ agentId: string;
2570
2622
  createdAt: string;
2571
2623
  updatedAt: string;
2572
- projectId: string;
2573
- tenantId: string;
2574
- agentId: string;
2575
- subAgentId: string;
2624
+ headers: Record<string, string> | null;
2576
2625
  externalAgentId: string;
2626
+ subAgentId: string;
2577
2627
  }[]>;
2578
2628
  declare const getSubAgentExternalAgentRelationsByAgent: (db: DatabaseClient) => (params: {
2579
2629
  scopes: AgentScopeConfig;
2580
2630
  }) => Promise<{
2581
- headers: Record<string, string> | null;
2631
+ tenantId: string;
2632
+ projectId: string;
2582
2633
  id: string;
2634
+ agentId: string;
2583
2635
  createdAt: string;
2584
2636
  updatedAt: string;
2585
- projectId: string;
2586
- tenantId: string;
2587
- agentId: string;
2588
- subAgentId: string;
2637
+ headers: Record<string, string> | null;
2589
2638
  externalAgentId: string;
2639
+ subAgentId: string;
2590
2640
  }[]>;
2591
2641
  declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: DatabaseClient) => (params: {
2592
2642
  scopes: AgentScopeConfig;
@@ -2701,15 +2751,15 @@ declare const createSubAgentExternalAgentRelation: (db: DatabaseClient) => (para
2701
2751
  headers?: Record<string, string> | null;
2702
2752
  };
2703
2753
  }) => Promise<{
2704
- headers: Record<string, string> | null;
2754
+ tenantId: string;
2755
+ projectId: string;
2705
2756
  id: string;
2757
+ agentId: string;
2706
2758
  createdAt: string;
2707
2759
  updatedAt: string;
2708
- projectId: string;
2709
- tenantId: string;
2710
- agentId: string;
2711
- subAgentId: string;
2760
+ headers: Record<string, string> | null;
2712
2761
  externalAgentId: string;
2762
+ subAgentId: string;
2713
2763
  }>;
2714
2764
  /**
2715
2765
  * Check if sub-agent external agent relation exists by params
@@ -2718,15 +2768,15 @@ declare const getSubAgentExternalAgentRelationByParams: (db: DatabaseClient) =>
2718
2768
  scopes: SubAgentScopeConfig;
2719
2769
  externalAgentId: string;
2720
2770
  }) => Promise<{
2721
- headers: Record<string, string> | null;
2771
+ tenantId: string;
2772
+ projectId: string;
2722
2773
  id: string;
2774
+ agentId: string;
2723
2775
  createdAt: string;
2724
2776
  updatedAt: string;
2725
- projectId: string;
2726
- tenantId: string;
2727
- agentId: string;
2728
- subAgentId: string;
2777
+ headers: Record<string, string> | null;
2729
2778
  externalAgentId: string;
2779
+ subAgentId: string;
2730
2780
  } | undefined>;
2731
2781
  /**
2732
2782
  * Upsert sub-agent external agent relation (create if it doesn't exist, update if it does)
@@ -2739,30 +2789,30 @@ declare const upsertSubAgentExternalAgentRelation: (db: DatabaseClient) => (para
2739
2789
  headers?: Record<string, string> | null;
2740
2790
  };
2741
2791
  }) => Promise<{
2742
- headers: Record<string, string> | null;
2792
+ tenantId: string;
2793
+ projectId: string;
2743
2794
  id: string;
2795
+ agentId: string;
2744
2796
  createdAt: string;
2745
2797
  updatedAt: string;
2746
- projectId: string;
2747
- tenantId: string;
2748
- agentId: string;
2749
- subAgentId: string;
2798
+ headers: Record<string, string> | null;
2750
2799
  externalAgentId: string;
2800
+ subAgentId: string;
2751
2801
  }>;
2752
2802
  declare const updateSubAgentExternalAgentRelation: (db: DatabaseClient) => (params: {
2753
2803
  scopes: SubAgentScopeConfig;
2754
2804
  relationId: string;
2755
2805
  data: Partial<SubAgentExternalAgentRelationInsert>;
2756
2806
  }) => Promise<{
2757
- headers: Record<string, string> | null;
2758
- id: string;
2759
2807
  createdAt: string;
2760
2808
  updatedAt: string;
2809
+ externalAgentId: string;
2810
+ headers: Record<string, string> | null;
2811
+ subAgentId: string;
2812
+ agentId: string;
2761
2813
  projectId: string;
2762
2814
  tenantId: string;
2763
- agentId: string;
2764
- subAgentId: string;
2765
- externalAgentId: string;
2815
+ id: string;
2766
2816
  }>;
2767
2817
  declare const deleteSubAgentExternalAgentRelation: (db: DatabaseClient) => (params: {
2768
2818
  scopes: SubAgentScopeConfig;
@@ -2779,12 +2829,12 @@ declare const getAgentRelationById: (db: DatabaseClient) => (params: {
2779
2829
  scopes: AgentScopeConfig;
2780
2830
  relationId: string;
2781
2831
  }) => Promise<{
2832
+ tenantId: string;
2833
+ projectId: string;
2782
2834
  id: string;
2835
+ agentId: string;
2783
2836
  createdAt: string;
2784
2837
  updatedAt: string;
2785
- projectId: string;
2786
- tenantId: string;
2787
- agentId: string;
2788
2838
  sourceSubAgentId: string;
2789
2839
  targetSubAgentId: string | null;
2790
2840
  relationType: string | null;
@@ -2814,12 +2864,12 @@ declare const listAgentRelations: (db: DatabaseClient) => (params: {
2814
2864
  declare const getAgentRelations: (db: DatabaseClient) => (params: {
2815
2865
  scopes: SubAgentScopeConfig;
2816
2866
  }) => Promise<{
2867
+ tenantId: string;
2868
+ projectId: string;
2817
2869
  id: string;
2870
+ agentId: string;
2818
2871
  createdAt: string;
2819
2872
  updatedAt: string;
2820
- projectId: string;
2821
- tenantId: string;
2822
- agentId: string;
2823
2873
  sourceSubAgentId: string;
2824
2874
  targetSubAgentId: string | null;
2825
2875
  relationType: string | null;
@@ -2827,12 +2877,12 @@ declare const getAgentRelations: (db: DatabaseClient) => (params: {
2827
2877
  declare const getAgentRelationsByAgent: (db: DatabaseClient) => (params: {
2828
2878
  scopes: AgentScopeConfig;
2829
2879
  }) => Promise<{
2880
+ tenantId: string;
2881
+ projectId: string;
2830
2882
  id: string;
2883
+ agentId: string;
2831
2884
  createdAt: string;
2832
2885
  updatedAt: string;
2833
- projectId: string;
2834
- tenantId: string;
2835
- agentId: string;
2836
2886
  sourceSubAgentId: string;
2837
2887
  targetSubAgentId: string | null;
2838
2888
  relationType: string | null;
@@ -2895,12 +2945,12 @@ declare const getRelatedAgentsForAgent: (db: DatabaseClient) => (params: {
2895
2945
  }[];
2896
2946
  }>;
2897
2947
  declare const createSubAgentRelation: (db: DatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
2948
+ tenantId: string;
2949
+ projectId: string;
2898
2950
  id: string;
2951
+ agentId: string;
2899
2952
  createdAt: string;
2900
2953
  updatedAt: string;
2901
- projectId: string;
2902
- tenantId: string;
2903
- agentId: string;
2904
2954
  sourceSubAgentId: string;
2905
2955
  targetSubAgentId: string | null;
2906
2956
  relationType: string | null;
@@ -2914,12 +2964,12 @@ declare const getAgentRelationByParams: (db: DatabaseClient) => (params: {
2914
2964
  targetSubAgentId?: string;
2915
2965
  relationType: string;
2916
2966
  }) => Promise<{
2967
+ tenantId: string;
2968
+ projectId: string;
2917
2969
  id: string;
2970
+ agentId: string;
2918
2971
  createdAt: string;
2919
2972
  updatedAt: string;
2920
- projectId: string;
2921
- tenantId: string;
2922
- agentId: string;
2923
2973
  sourceSubAgentId: string;
2924
2974
  targetSubAgentId: string | null;
2925
2975
  relationType: string | null;
@@ -2928,12 +2978,12 @@ declare const getAgentRelationByParams: (db: DatabaseClient) => (params: {
2928
2978
  * Upsert agent relation (create if it doesn't exist, no-op if it does)
2929
2979
  */
2930
2980
  declare const upsertSubAgentRelation: (db: DatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
2981
+ tenantId: string;
2982
+ projectId: string;
2931
2983
  id: string;
2984
+ agentId: string;
2932
2985
  createdAt: string;
2933
2986
  updatedAt: string;
2934
- projectId: string;
2935
- tenantId: string;
2936
- agentId: string;
2937
2987
  sourceSubAgentId: string;
2938
2988
  targetSubAgentId: string | null;
2939
2989
  relationType: string | null;
@@ -2943,15 +2993,15 @@ declare const updateAgentRelation: (db: DatabaseClient) => (params: {
2943
2993
  relationId: string;
2944
2994
  data: SubAgentRelationUpdate;
2945
2995
  }) => Promise<{
2946
- id: string;
2947
2996
  createdAt: string;
2948
2997
  updatedAt: string;
2949
- projectId: string;
2950
- tenantId: string;
2951
- agentId: string;
2952
2998
  sourceSubAgentId: string;
2953
2999
  targetSubAgentId: string | null;
2954
3000
  relationType: string | null;
3001
+ agentId: string;
3002
+ projectId: string;
3003
+ tenantId: string;
3004
+ id: string;
2955
3005
  }>;
2956
3006
  declare const deleteSubAgentRelation: (db: DatabaseClient) => (params: {
2957
3007
  scopes: AgentScopeConfig;
@@ -2970,32 +3020,32 @@ declare const createAgentToolRelation: (db: DatabaseClient) => (params: {
2970
3020
  headers?: Record<string, string> | null;
2971
3021
  };
2972
3022
  }) => Promise<{
2973
- headers: Record<string, string> | null;
3023
+ tenantId: string;
3024
+ projectId: string;
2974
3025
  id: string;
3026
+ agentId: string;
2975
3027
  createdAt: string;
2976
3028
  updatedAt: string;
2977
- projectId: string;
2978
- tenantId: string;
2979
- agentId: string;
3029
+ headers: Record<string, string> | null;
3030
+ toolId: string;
2980
3031
  selectedTools: string[] | null;
2981
3032
  subAgentId: string;
2982
- toolId: string;
2983
3033
  }>;
2984
3034
  declare const updateAgentToolRelation: (db: DatabaseClient) => (params: {
2985
3035
  scopes: AgentScopeConfig;
2986
3036
  relationId: string;
2987
3037
  data: SubAgentToolRelationUpdate;
2988
3038
  }) => Promise<{
2989
- headers: Record<string, string> | null;
2990
- id: string;
2991
3039
  createdAt: string;
2992
3040
  updatedAt: string;
2993
- projectId: string;
2994
- tenantId: string;
2995
- agentId: string;
3041
+ toolId: string;
2996
3042
  selectedTools: string[] | null;
3043
+ headers: Record<string, string> | null;
2997
3044
  subAgentId: string;
2998
- toolId: string;
3045
+ agentId: string;
3046
+ projectId: string;
3047
+ tenantId: string;
3048
+ id: string;
2999
3049
  }>;
3000
3050
  declare const deleteAgentToolRelation: (db: DatabaseClient) => (params: {
3001
3051
  scopes: AgentScopeConfig;
@@ -3008,16 +3058,16 @@ declare const getAgentToolRelationById: (db: DatabaseClient) => (params: {
3008
3058
  scopes: SubAgentScopeConfig;
3009
3059
  relationId: string;
3010
3060
  }) => Promise<{
3011
- headers: Record<string, string> | null;
3061
+ tenantId: string;
3062
+ projectId: string;
3012
3063
  id: string;
3064
+ agentId: string;
3013
3065
  createdAt: string;
3014
3066
  updatedAt: string;
3015
- projectId: string;
3016
- tenantId: string;
3017
- agentId: string;
3067
+ headers: Record<string, string> | null;
3068
+ toolId: string;
3018
3069
  selectedTools: string[] | null;
3019
3070
  subAgentId: string;
3020
- toolId: string;
3021
3071
  } | undefined>;
3022
3072
  declare const getAgentToolRelationByAgent: (db: DatabaseClient) => (params: {
3023
3073
  scopes: SubAgentScopeConfig;
@@ -3184,13 +3234,15 @@ declare const getSubAgentById: (db: DatabaseClient) => (params: {
3184
3234
  scopes: AgentScopeConfig;
3185
3235
  subAgentId: string;
3186
3236
  }) => Promise<{
3187
- name: string;
3237
+ tenantId: string;
3238
+ projectId: string;
3188
3239
  id: string;
3240
+ name: string;
3241
+ description: string;
3242
+ prompt: string;
3243
+ agentId: string;
3189
3244
  createdAt: string;
3190
3245
  updatedAt: string;
3191
- projectId: string;
3192
- tenantId: string;
3193
- description: string;
3194
3246
  models: {
3195
3247
  base?: {
3196
3248
  model?: string | undefined;
@@ -3208,20 +3260,20 @@ declare const getSubAgentById: (db: DatabaseClient) => (params: {
3208
3260
  stopWhen: {
3209
3261
  stepCountIs?: number | undefined;
3210
3262
  } | null;
3211
- agentId: string;
3212
- prompt: string;
3213
3263
  conversationHistoryConfig: ConversationHistoryConfig | null;
3214
3264
  } | undefined>;
3215
3265
  declare const listSubAgents: (db: DatabaseClient) => (params: {
3216
3266
  scopes: AgentScopeConfig;
3217
3267
  }) => Promise<{
3218
- name: string;
3268
+ tenantId: string;
3269
+ projectId: string;
3219
3270
  id: string;
3271
+ name: string;
3272
+ description: string;
3273
+ prompt: string;
3274
+ agentId: string;
3220
3275
  createdAt: string;
3221
3276
  updatedAt: string;
3222
- projectId: string;
3223
- tenantId: string;
3224
- description: string;
3225
3277
  models: {
3226
3278
  base?: {
3227
3279
  model?: string | undefined;
@@ -3239,8 +3291,6 @@ declare const listSubAgents: (db: DatabaseClient) => (params: {
3239
3291
  stopWhen: {
3240
3292
  stepCountIs?: number | undefined;
3241
3293
  } | null;
3242
- agentId: string;
3243
- prompt: string;
3244
3294
  conversationHistoryConfig: ConversationHistoryConfig | null;
3245
3295
  }[]>;
3246
3296
  declare const listSubAgentsPaginated: (db: DatabaseClient) => (params: {
@@ -3284,13 +3334,15 @@ declare const listSubAgentsPaginated: (db: DatabaseClient) => (params: {
3284
3334
  };
3285
3335
  }>;
3286
3336
  declare const createSubAgent: (db: DatabaseClient) => (params: SubAgentInsert) => Promise<{
3287
- name: string;
3337
+ tenantId: string;
3338
+ projectId: string;
3288
3339
  id: string;
3340
+ name: string;
3341
+ description: string;
3342
+ prompt: string;
3343
+ agentId: string;
3289
3344
  createdAt: string;
3290
3345
  updatedAt: string;
3291
- projectId: string;
3292
- tenantId: string;
3293
- description: string;
3294
3346
  models: {
3295
3347
  base?: {
3296
3348
  model?: string | undefined;
@@ -3308,8 +3360,6 @@ declare const createSubAgent: (db: DatabaseClient) => (params: SubAgentInsert) =
3308
3360
  stopWhen: {
3309
3361
  stepCountIs?: number | undefined;
3310
3362
  } | null;
3311
- agentId: string;
3312
- prompt: string;
3313
3363
  conversationHistoryConfig: ConversationHistoryConfig | null;
3314
3364
  }>;
3315
3365
  declare const updateSubAgent: (db: DatabaseClient) => (params: {
@@ -3317,13 +3367,10 @@ declare const updateSubAgent: (db: DatabaseClient) => (params: {
3317
3367
  subAgentId: string;
3318
3368
  data: SubAgentUpdate;
3319
3369
  }) => Promise<{
3320
- name: string;
3321
- id: string;
3322
3370
  createdAt: string;
3323
3371
  updatedAt: string;
3324
- projectId: string;
3325
- tenantId: string;
3326
- description: string;
3372
+ prompt: string;
3373
+ conversationHistoryConfig: ConversationHistoryConfig | null;
3327
3374
  models: {
3328
3375
  base?: {
3329
3376
  model?: string | undefined;
@@ -3341,9 +3388,12 @@ declare const updateSubAgent: (db: DatabaseClient) => (params: {
3341
3388
  stopWhen: {
3342
3389
  stepCountIs?: number | undefined;
3343
3390
  } | null;
3391
+ name: string;
3392
+ description: string;
3344
3393
  agentId: string;
3345
- prompt: string;
3346
- conversationHistoryConfig: ConversationHistoryConfig | null;
3394
+ projectId: string;
3395
+ tenantId: string;
3396
+ id: string;
3347
3397
  }>;
3348
3398
  /**
3349
3399
  * Upsert agent (create if it doesn't exist, update if it does)
@@ -3392,13 +3442,13 @@ declare const getSubAgentTeamAgentRelationById: (db: DatabaseClient) => (params:
3392
3442
  scopes: SubAgentScopeConfig;
3393
3443
  relationId: string;
3394
3444
  }) => Promise<{
3395
- headers: Record<string, string> | null;
3445
+ tenantId: string;
3446
+ projectId: string;
3396
3447
  id: string;
3448
+ agentId: string;
3397
3449
  createdAt: string;
3398
3450
  updatedAt: string;
3399
- projectId: string;
3400
- tenantId: string;
3401
- agentId: string;
3451
+ headers: Record<string, string> | null;
3402
3452
  subAgentId: string;
3403
3453
  targetAgentId: string;
3404
3454
  } | undefined>;
@@ -3427,26 +3477,26 @@ declare const listSubAgentTeamAgentRelations: (db: DatabaseClient) => (params: {
3427
3477
  declare const getSubAgentTeamAgentRelations: (db: DatabaseClient) => (params: {
3428
3478
  scopes: SubAgentScopeConfig;
3429
3479
  }) => Promise<{
3430
- headers: Record<string, string> | null;
3480
+ tenantId: string;
3481
+ projectId: string;
3431
3482
  id: string;
3483
+ agentId: string;
3432
3484
  createdAt: string;
3433
3485
  updatedAt: string;
3434
- projectId: string;
3435
- tenantId: string;
3436
- agentId: string;
3486
+ headers: Record<string, string> | null;
3437
3487
  subAgentId: string;
3438
3488
  targetAgentId: string;
3439
3489
  }[]>;
3440
3490
  declare const getSubAgentTeamAgentRelationsByAgent: (db: DatabaseClient) => (params: {
3441
3491
  scopes: AgentScopeConfig;
3442
3492
  }) => Promise<{
3443
- headers: Record<string, string> | null;
3493
+ tenantId: string;
3494
+ projectId: string;
3444
3495
  id: string;
3496
+ agentId: string;
3445
3497
  createdAt: string;
3446
3498
  updatedAt: string;
3447
- projectId: string;
3448
- tenantId: string;
3449
- agentId: string;
3499
+ headers: Record<string, string> | null;
3450
3500
  subAgentId: string;
3451
3501
  targetAgentId: string;
3452
3502
  }[]>;
@@ -3593,13 +3643,13 @@ declare const createSubAgentTeamAgentRelation: (db: DatabaseClient) => (params:
3593
3643
  headers?: Record<string, string> | null;
3594
3644
  };
3595
3645
  }) => Promise<{
3596
- headers: Record<string, string> | null;
3646
+ tenantId: string;
3647
+ projectId: string;
3597
3648
  id: string;
3649
+ agentId: string;
3598
3650
  createdAt: string;
3599
3651
  updatedAt: string;
3600
- projectId: string;
3601
- tenantId: string;
3602
- agentId: string;
3652
+ headers: Record<string, string> | null;
3603
3653
  subAgentId: string;
3604
3654
  targetAgentId: string;
3605
3655
  }>;
@@ -3610,13 +3660,13 @@ declare const getSubAgentTeamAgentRelationByParams: (db: DatabaseClient) => (par
3610
3660
  scopes: SubAgentScopeConfig;
3611
3661
  targetAgentId: string;
3612
3662
  }) => Promise<{
3613
- headers: Record<string, string> | null;
3663
+ tenantId: string;
3664
+ projectId: string;
3614
3665
  id: string;
3666
+ agentId: string;
3615
3667
  createdAt: string;
3616
3668
  updatedAt: string;
3617
- projectId: string;
3618
- tenantId: string;
3619
- agentId: string;
3669
+ headers: Record<string, string> | null;
3620
3670
  subAgentId: string;
3621
3671
  targetAgentId: string;
3622
3672
  } | undefined>;
@@ -3631,13 +3681,13 @@ declare const upsertSubAgentTeamAgentRelation: (db: DatabaseClient) => (params:
3631
3681
  headers?: Record<string, string> | null;
3632
3682
  };
3633
3683
  }) => Promise<{
3634
- headers: Record<string, string> | null;
3684
+ tenantId: string;
3685
+ projectId: string;
3635
3686
  id: string;
3687
+ agentId: string;
3636
3688
  createdAt: string;
3637
3689
  updatedAt: string;
3638
- projectId: string;
3639
- tenantId: string;
3640
- agentId: string;
3690
+ headers: Record<string, string> | null;
3641
3691
  subAgentId: string;
3642
3692
  targetAgentId: string;
3643
3693
  }>;
@@ -3646,15 +3696,15 @@ declare const updateSubAgentTeamAgentRelation: (db: DatabaseClient) => (params:
3646
3696
  relationId: string;
3647
3697
  data: Partial<SubAgentTeamAgentRelationInsert>;
3648
3698
  }) => Promise<{
3649
- headers: Record<string, string> | null;
3650
- id: string;
3651
3699
  createdAt: string;
3652
3700
  updatedAt: string;
3701
+ targetAgentId: string;
3702
+ headers: Record<string, string> | null;
3703
+ subAgentId: string;
3704
+ agentId: string;
3653
3705
  projectId: string;
3654
3706
  tenantId: string;
3655
- agentId: string;
3656
- subAgentId: string;
3657
- targetAgentId: string;
3707
+ id: string;
3658
3708
  }>;
3659
3709
  declare const deleteSubAgentTeamAgentRelation: (db: DatabaseClient) => (params: {
3660
3710
  scopes: SubAgentScopeConfig;
@@ -3668,12 +3718,12 @@ declare const deleteSubAgentTeamAgentRelationsByAgent: (db: DatabaseClient) => (
3668
3718
  }) => Promise<boolean>;
3669
3719
 
3670
3720
  declare const createTask: (db: DatabaseClient) => (params: TaskInsert) => Promise<{
3721
+ tenantId: string;
3722
+ projectId: string;
3671
3723
  id: string;
3724
+ agentId: string;
3672
3725
  createdAt: string;
3673
3726
  updatedAt: string;
3674
- projectId: string;
3675
- tenantId: string;
3676
- agentId: string;
3677
3727
  status: string;
3678
3728
  metadata: TaskMetadataConfig | null;
3679
3729
  contextId: string;
@@ -3689,16 +3739,16 @@ declare const updateTask: (db: DatabaseClient) => (params: {
3689
3739
  metadata?: any;
3690
3740
  };
3691
3741
  }) => Promise<{
3692
- id: string;
3693
3742
  createdAt: string;
3694
3743
  updatedAt: string;
3695
- projectId: string;
3696
- tenantId: string;
3697
- agentId: string;
3744
+ contextId: string;
3698
3745
  status: string;
3699
3746
  metadata: TaskMetadataConfig | null;
3700
- contextId: string;
3701
3747
  subAgentId: string;
3748
+ agentId: string;
3749
+ projectId: string;
3750
+ tenantId: string;
3751
+ id: string;
3702
3752
  }>;
3703
3753
  declare const listTaskIdsByContextId: (db: DatabaseClient) => (params: {
3704
3754
  contextId: string;
@@ -3709,20 +3759,20 @@ declare const getToolById: (db: DatabaseClient) => (params: {
3709
3759
  scopes: ProjectScopeConfig;
3710
3760
  toolId: string;
3711
3761
  }) => Promise<{
3712
- name: string;
3713
- headers: Record<string, string> | null;
3714
- id: string;
3715
- createdAt: string;
3716
- updatedAt: string;
3717
- projectId: string;
3718
3762
  tenantId: string;
3763
+ projectId: string;
3764
+ id: string;
3765
+ name: string;
3719
3766
  description: string | null;
3720
- credentialReferenceId: string | null;
3721
- capabilities: ToolServerCapabilities | null;
3722
3767
  config: {
3723
3768
  type: "mcp";
3724
3769
  mcp: ToolMcpConfig;
3725
3770
  };
3771
+ credentialReferenceId: string | null;
3772
+ createdAt: string;
3773
+ updatedAt: string;
3774
+ headers: Record<string, string> | null;
3775
+ capabilities: ToolServerCapabilities | null;
3726
3776
  imageUrl: string | null;
3727
3777
  lastError: string | null;
3728
3778
  } | null>;
@@ -3756,20 +3806,20 @@ declare const listTools: (db: DatabaseClient) => (params: {
3756
3806
  };
3757
3807
  }>;
3758
3808
  declare const createTool: (db: DatabaseClient) => (params: ToolInsert) => Promise<{
3759
- name: string;
3760
- headers: Record<string, string> | null;
3761
- id: string;
3762
- createdAt: string;
3763
- updatedAt: string;
3764
- projectId: string;
3765
3809
  tenantId: string;
3810
+ projectId: string;
3811
+ id: string;
3812
+ name: string;
3766
3813
  description: string | null;
3767
- credentialReferenceId: string | null;
3768
- capabilities: ToolServerCapabilities | null;
3769
3814
  config: {
3770
3815
  type: "mcp";
3771
3816
  mcp: ToolMcpConfig;
3772
3817
  };
3818
+ credentialReferenceId: string | null;
3819
+ createdAt: string;
3820
+ updatedAt: string;
3821
+ headers: Record<string, string> | null;
3822
+ capabilities: ToolServerCapabilities | null;
3773
3823
  imageUrl: string | null;
3774
3824
  lastError: string | null;
3775
3825
  }>;
@@ -3778,22 +3828,22 @@ declare const updateTool: (db: DatabaseClient) => (params: {
3778
3828
  toolId: string;
3779
3829
  data: ToolUpdate;
3780
3830
  }) => Promise<{
3781
- name: string;
3782
- headers: Record<string, string> | null;
3783
- id: string;
3784
3831
  createdAt: string;
3785
3832
  updatedAt: string;
3786
- projectId: string;
3787
- tenantId: string;
3833
+ name: string;
3788
3834
  description: string | null;
3789
- credentialReferenceId: string | null;
3790
- capabilities: ToolServerCapabilities | null;
3791
3835
  config: {
3792
3836
  type: "mcp";
3793
3837
  mcp: ToolMcpConfig;
3794
3838
  };
3839
+ credentialReferenceId: string | null;
3840
+ headers: Record<string, string> | null;
3795
3841
  imageUrl: string | null;
3842
+ capabilities: ToolServerCapabilities | null;
3796
3843
  lastError: string | null;
3844
+ projectId: string;
3845
+ tenantId: string;
3846
+ id: string;
3797
3847
  }>;
3798
3848
  declare const deleteTool: (db: DatabaseClient) => (params: {
3799
3849
  scopes: ProjectScopeConfig;
@@ -3806,32 +3856,32 @@ declare const addToolToAgent: (db: DatabaseClient) => (params: {
3806
3856
  selectedTools?: string[] | null;
3807
3857
  headers?: Record<string, string> | null;
3808
3858
  }) => Promise<{
3809
- headers: Record<string, string> | null;
3859
+ tenantId: string;
3860
+ projectId: string;
3810
3861
  id: string;
3862
+ agentId: string;
3811
3863
  createdAt: string;
3812
3864
  updatedAt: string;
3813
- projectId: string;
3814
- tenantId: string;
3815
- agentId: string;
3865
+ headers: Record<string, string> | null;
3866
+ toolId: string;
3816
3867
  selectedTools: string[] | null;
3817
3868
  subAgentId: string;
3818
- toolId: string;
3819
3869
  }>;
3820
3870
  declare const removeToolFromAgent: (db: DatabaseClient) => (params: {
3821
3871
  scopes: AgentScopeConfig;
3822
3872
  subAgentId: string;
3823
3873
  toolId: string;
3824
3874
  }) => Promise<{
3825
- headers: Record<string, string> | null;
3875
+ tenantId: string;
3876
+ projectId: string;
3826
3877
  id: string;
3878
+ agentId: string;
3827
3879
  createdAt: string;
3828
3880
  updatedAt: string;
3829
- projectId: string;
3830
- tenantId: string;
3831
- agentId: string;
3881
+ headers: Record<string, string> | null;
3882
+ toolId: string;
3832
3883
  selectedTools: string[] | null;
3833
3884
  subAgentId: string;
3834
- toolId: string;
3835
3885
  }>;
3836
3886
  /**
3837
3887
  * Upsert agent-tool relation (create if it doesn't exist, update if it does)
@@ -3844,16 +3894,16 @@ declare const upsertSubAgentToolRelation: (db: DatabaseClient) => (params: {
3844
3894
  headers?: Record<string, string> | null;
3845
3895
  relationId?: string;
3846
3896
  }) => Promise<{
3847
- headers: Record<string, string> | null;
3897
+ tenantId: string;
3898
+ projectId: string;
3848
3899
  id: string;
3900
+ agentId: string;
3849
3901
  createdAt: string;
3850
3902
  updatedAt: string;
3851
- projectId: string;
3852
- tenantId: string;
3853
- agentId: string;
3903
+ headers: Record<string, string> | null;
3904
+ toolId: string;
3854
3905
  selectedTools: string[] | null;
3855
3906
  subAgentId: string;
3856
- toolId: string;
3857
3907
  }>;
3858
3908
  /**
3859
3909
  * Upsert a tool (create if it doesn't exist, update if it does)
@@ -3861,20 +3911,20 @@ declare const upsertSubAgentToolRelation: (db: DatabaseClient) => (params: {
3861
3911
  declare const upsertTool: (db: DatabaseClient) => (params: {
3862
3912
  data: ToolInsert;
3863
3913
  }) => Promise<{
3864
- name: string;
3865
- headers: Record<string, string> | null;
3866
- id: string;
3867
- createdAt: string;
3868
- updatedAt: string;
3869
- projectId: string;
3870
3914
  tenantId: string;
3915
+ projectId: string;
3916
+ id: string;
3917
+ name: string;
3871
3918
  description: string | null;
3872
- credentialReferenceId: string | null;
3873
- capabilities: ToolServerCapabilities | null;
3874
3919
  config: {
3875
3920
  type: "mcp";
3876
3921
  mcp: ToolMcpConfig;
3877
3922
  };
3923
+ credentialReferenceId: string | null;
3924
+ createdAt: string;
3925
+ updatedAt: string;
3926
+ headers: Record<string, string> | null;
3927
+ capabilities: ToolServerCapabilities | null;
3878
3928
  imageUrl: string | null;
3879
3929
  lastError: string | null;
3880
3930
  }>;
@@ -3988,6 +4038,13 @@ declare function getCredentialStoreLookupKeyFromRetrievalParams({ retrievalParam
3988
4038
  credentialStoreType: keyof typeof CredentialStoreType;
3989
4039
  }): string | null;
3990
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
+
3991
4048
  declare const ErrorCode: z$1.ZodEnum<{
3992
4049
  bad_request: "bad_request";
3993
4050
  unauthorized: "unauthorized";
@@ -4617,4 +4674,4 @@ declare function setSpanWithError(span: Span, error: Error, logger?: {
4617
4674
  */
4618
4675
  declare function getTracer(serviceName: string, serviceVersion?: string): Tracer;
4619
4676
 
4620
- export { AgentInsert, type AgentLogger, AgentScopeConfig, AgentSelect, 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 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, 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, type ServiceTokenPayload, SubAgentExternalAgentRelationInsert, SubAgentInsert, SubAgentRelationInsert, SubAgentRelationUpdate, SubAgentScopeConfig, SubAgentSelect, SubAgentTeamAgentRelationInsert, SubAgentToolRelationUpdate, SubAgentUpdate, TaskInsert, TaskMetadataConfig, TaskSelect, type TemplateContext, TemplateEngine, type TemplateRenderOptions, ToolInsert, ToolMcpConfig, ToolSelect, ToolServerCapabilities, ToolUpdate, 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, 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, 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 };