@inkeep/agents-core 0.35.0 → 0.35.2

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 (47) hide show
  1. package/dist/auth/auth-schema.d.ts +1097 -0
  2. package/dist/auth/auth-schema.js +1 -0
  3. package/dist/auth/auth-validation-schemas.d.ts +1881 -0
  4. package/dist/auth/auth-validation-schemas.js +39 -0
  5. package/dist/auth/auth.d.ts +118 -0
  6. package/dist/auth/auth.js +95 -0
  7. package/dist/auth/permissions.d.ts +273 -0
  8. package/dist/auth/permissions.js +1 -0
  9. package/dist/chunk-4JZT4QEE.js +162 -0
  10. package/dist/chunk-F5WWOOIX.js +62 -0
  11. package/dist/{chunk-YZ5ZBVHJ.js → chunk-NFYCSHD3.js} +3 -81
  12. package/dist/chunk-NOPEANIU.js +82 -0
  13. package/dist/{chunk-J5AHY6M2.js → chunk-SPRTYWRV.js} +1 -1
  14. package/dist/{chunk-OP3KPT4T.js → chunk-TGESM3JG.js} +1 -160
  15. package/dist/{chunk-DYGTCLJO.js → chunk-VBCCPAZK.js} +1 -1
  16. package/dist/chunk-ZYSTJ4XY.js +948 -0
  17. package/dist/client-CPYOMZF2.d.ts +19 -0
  18. package/dist/client-exports.d.ts +5 -5
  19. package/dist/client-exports.js +4 -3
  20. package/dist/db/schema.d.ts +3 -2
  21. package/dist/db/schema.js +2 -1
  22. package/dist/index.d.ts +253 -398
  23. package/dist/index.js +1566 -2499
  24. package/dist/{schema-DQBYINXB.d.cts → schema-5N2lPWNV.d.ts} +3 -1096
  25. package/dist/types/index.d.ts +2 -2
  26. package/dist/{utility-Ct1UMzr_.d.cts → utility-DbltUp2Q.d.ts} +295 -295
  27. package/dist/validation/index.d.ts +2 -2
  28. package/dist/validation/index.js +2 -2
  29. package/package.json +17 -1
  30. package/dist/auth-detection-CGqhPDnj.d.cts +0 -435
  31. package/dist/client-exports.cjs +0 -2833
  32. package/dist/client-exports.d.cts +0 -289
  33. package/dist/constants/models.cjs +0 -40
  34. package/dist/constants/models.d.cts +0 -42
  35. package/dist/db/schema.cjs +0 -1090
  36. package/dist/db/schema.d.cts +0 -7
  37. package/dist/index.cjs +0 -227898
  38. package/dist/index.d.cts +0 -4893
  39. package/dist/props-validation-BMR1qNiy.d.cts +0 -15
  40. package/dist/schema-DlcSfZRM.d.ts +0 -6352
  41. package/dist/types/index.cjs +0 -39
  42. package/dist/types/index.d.cts +0 -132
  43. package/dist/utility-Ct1UMzr_.d.ts +0 -17079
  44. package/dist/utils/schema-conversion.cjs +0 -232
  45. package/dist/utils/schema-conversion.d.cts +0 -26
  46. package/dist/validation/index.cjs +0 -2930
  47. package/dist/validation/index.d.cts +0 -279
package/dist/index.d.ts CHANGED
@@ -2,20 +2,18 @@ export { ANTHROPIC_MODELS, AnthropicModel, GOOGLE_MODELS, GoogleModel, ModelName
2
2
  import { r as PinoLogger, s as getLogger } from './auth-detection-CGqhPDnj.js';
3
3
  export { i as ACTIVITY_NAMES, g as ACTIVITY_STATUS, f as ACTIVITY_TYPES, h as AGENT_IDS, p as AGGREGATE_OPERATORS, A as AI_OPERATIONS, j as AI_TOOL_TYPES, o as DATA_SOURCES, k as DATA_TYPES, D as DELEGATION_FROM_SUB_AGENT_ID, b as DELEGATION_ID, a as DELEGATION_TO_SUB_AGENT_ID, F as FIELD_TYPES, L as LoggerFactoryConfig, M as McpOAuthFlowResult, u as McpTokenExchangeResult, t as OAuthConfig, O as OPERATORS, m as ORDER_DIRECTIONS, P as PANEL_TYPES, x as PinoLoggerConfig, q as QUERY_DEFAULTS, l as QUERY_EXPRESSIONS, Q as QUERY_FIELD_CONFIGS, n as QUERY_TYPES, R as REDUCE_OPERATIONS, e as SPAN_KEYS, S as SPAN_NAMES, T as TRANSFER_FROM_SUB_AGENT_ID, c as TRANSFER_TO_SUB_AGENT_ID, U as UNKNOWN_VALUE, d as detectAuthenticationRequired, w as exchangeMcpAuthorizationCode, v as initiateMcpOAuthFlow, y as loggerFactory } from './auth-detection-CGqhPDnj.js';
4
4
  import { z } from 'zod';
5
- import { r as CredentialReferenceApiInsert, s as ContextConfigSelect, l as ContextFetchDefinition, i as MCPTransportType, t as MCPToolConfig, u as ProjectScopeConfig, v as FullAgentDefinition, w as AgentScopeConfig, C as ConversationHistoryConfig, x as PaginationConfig, y as AgentInsert, z as AgentUpdate, B as AgentSelect, D as ApiKeySelect, E as ApiKeyInsert, G as ApiKeyUpdate, H as CreateApiKeyParams, I as ApiKeyCreateResult, J as ArtifactComponentSelect, K as ArtifactComponentInsert, L as ArtifactComponentUpdate, N as SubAgentScopeConfig, O as ContextCacheSelect, Q as ContextCacheInsert, R as ContextConfigInsert, U as ContextConfigUpdate, V as ConversationSelect, W as ConversationInsert, o as ConversationMetadata, X as ConversationUpdate, Y as CredentialReferenceSelect, Z as ToolSelect, _ as ExternalAgentSelect, $ as CredentialReferenceInsert, a0 as CredentialReferenceUpdate, a1 as DataComponentSelect, a2 as DataComponentInsert, a3 as DataComponentUpdate, a4 as ExternalAgentInsert, a5 as ExternalAgentUpdate, a6 as FunctionApiInsert, a7 as FunctionToolApiInsert, a8 as FunctionToolApiUpdate, a9 as Artifact, aa as LedgerArtifactSelect, q as MessageMetadata, p as MessageContent, ab as MessageVisibility, ac as MessageInsert, ad as MessageUpdate, ae as FullProjectDefinition, af as ProjectInfo, ag as ProjectSelect, ah as PaginationResult, ai as ProjectResourceCounts, aj as ProjectInsert, ak as ProjectUpdate, al as SubAgentExternalAgentRelationInsert, am as SubAgentRelationInsert, an as SubAgentRelationUpdate, ao as SubAgentToolRelationUpdate, m as ToolMcpConfig, n as ToolServerCapabilities, ap as SubAgentInsert, aq as SubAgentUpdate, ar as SubAgentSelect, as as SubAgentTeamAgentRelationInsert, at as TaskInsert, T as TaskMetadataConfig, au as TaskSelect, av as McpTool, aw as ToolInsert, ax as ToolUpdate, h as CredentialStoreType, ay as ExecutionContext } from './utility-Ct1UMzr_.js';
6
- export { ba as A2AError, bG as A2ARequest, bH as A2AResponse, aL as APIKeySecurityScheme, bV as AgentApiInsert, e2 as AgentApiInsertSchema, bU as AgentApiSelect, e1 as AgentApiSelectSchema, bW as AgentApiUpdate, e3 as AgentApiUpdateSchema, aH as AgentCapabilities, aV as AgentCard, dx as AgentConversationHistoryConfig, d$ as AgentInsertSchema, gM as AgentListResponse, aI as AgentProvider, gw as AgentResponse, d_ as AgentSelectSchema, aJ as AgentSkill, e as AgentStopWhen, b as AgentStopWhenSchema, e0 as AgentUpdateSchema, h3 as AgentWithinContextOfProjectResponse, gg as AgentWithinContextOfProjectSchema, f6 as AllAgentSchema, cP as AllAgentSelect, cT as ApiKeyApiCreationResponse, fb as ApiKeyApiCreationResponseSchema, cR as ApiKeyApiInsert, fc as ApiKeyApiInsertSchema, cQ as ApiKeyApiSelect, fa as ApiKeyApiSelectSchema, cS as ApiKeyApiUpdate, A as ApiKeyApiUpdateSchema, f8 as ApiKeyInsertSchema, gQ as ApiKeyListResponse, gA as ApiKeyResponse, f7 as ApiKeySelectSchema, f9 as ApiKeyUpdateSchema, cE as ArtifactComponentApiInsert, eU as ArtifactComponentApiInsertSchema, cD as ArtifactComponentApiSelect, eT as ArtifactComponentApiSelectSchema, cF as ArtifactComponentApiUpdate, eV as ArtifactComponentApiUpdateSchema, hd as ArtifactComponentArrayResponse, eR as ArtifactComponentInsertSchema, gV as ArtifactComponentListResponse, gF as ArtifactComponentResponse, eQ as ArtifactComponentSelectSchema, eS as ArtifactComponentUpdateSchema, aO as AuthorizationCodeOAuthFlow, dg as CanDelegateToExternalAgent, df as CanUseItem, gc as CanUseItemSchema, bq as CancelTaskRequest, bB as CancelTaskResponse, bA as CancelTaskSuccessResponse, aP as ClientCredentialsOAuthFlow, h5 as ComponentAssociationListResponse, fo as ComponentAssociationSchema, b8 as ContentTypeNotSupportedError, cs as ContextCacheApiInsert, eB as ContextCacheApiInsertSchema, cr as ContextCacheApiSelect, eA as ContextCacheApiSelectSchema, ct as ContextCacheApiUpdate, eC as ContextCacheApiUpdateSchema, dy as ContextCacheEntry, ey as ContextCacheInsertSchema, ex as ContextCacheSelectSchema, cq as ContextCacheUpdate, ez as ContextCacheUpdateSchema, cm as ContextConfigApiInsert, fM as ContextConfigApiInsertSchema, cl as ContextConfigApiSelect, fL as ContextConfigApiSelectSchema, cn as ContextConfigApiUpdate, fN as ContextConfigApiUpdateSchema, fJ as ContextConfigInsertSchema, gP as ContextConfigListResponse, gz as ContextConfigResponse, fI as ContextConfigSelectSchema, fK as ContextConfigUpdateSchema, cf as ConversationApiInsert, ep as ConversationApiInsertSchema, ce as ConversationApiSelect, eo as ConversationApiSelectSchema, cg as ConversationApiUpdate, eq as ConversationApiUpdateSchema, em as ConversationInsertSchema, gY as ConversationListResponse, gI as ConversationResponse, dw as ConversationScopeOptions, el as ConversationSelectSchema, en as ConversationUpdateSchema, fl as CreateCredentialInStoreRequestSchema, fm as CreateCredentialInStoreResponseSchema, fh as CredentialReferenceApiInsertSchema, cU as CredentialReferenceApiSelect, fg as CredentialReferenceApiSelectSchema, cV as CredentialReferenceApiUpdate, fi as CredentialReferenceApiUpdateSchema, fe as CredentialReferenceInsertSchema, gR as CredentialReferenceListResponse, gB as CredentialReferenceResponse, fd as CredentialReferenceSelectSchema, ff as CredentialReferenceUpdateSchema, fk as CredentialStoreListResponseSchema, fj as CredentialStoreSchema, cv as DataComponentApiInsert, eI as DataComponentApiInsertSchema, cu as DataComponentApiSelect, eH as DataComponentApiSelectSchema, cw as DataComponentApiUpdate, eJ as DataComponentApiUpdateSchema, hc as DataComponentArrayResponse, eF as DataComponentBaseSchema, eE as DataComponentInsertSchema, gU as DataComponentListResponse, gE as DataComponentResponse, eD as DataComponentSelectSchema, eG as DataComponentUpdateSchema, aF as DataPart, gk as ErrorResponseSchema, gl as ExistsResponseSchema, cN as ExternalAgentApiInsert, f4 as ExternalAgentApiInsertSchema, cM as ExternalAgentApiSelect, f3 as ExternalAgentApiSelectSchema, cO as ExternalAgentApiUpdate, f5 as ExternalAgentApiUpdateSchema, f1 as ExternalAgentInsertSchema, gO as ExternalAgentListResponse, gy as ExternalAgentResponse, f0 as ExternalAgentSelectSchema, f2 as ExternalAgentUpdateSchema, bT as ExternalSubAgentRelationApiInsert, dZ as ExternalSubAgentRelationApiInsertSchema, bS as ExternalSubAgentRelationInsert, dY as ExternalSubAgentRelationInsertSchema, cp as FetchConfig, fG as FetchConfigSchema, co as FetchDefinition, fH as FetchDefinitionSchema, aB as FileBase, aE as FilePart, aC as FileWithBytes, aD as FileWithUri, de as FullAgentAgentInsert, a as FullAgentAgentInsertSchema, h2 as FullProjectDefinitionResponse, gt as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, cb as FunctionApiSelect, j as FunctionApiSelectSchema, cc as FunctionApiUpdate, k as FunctionApiUpdateSchema, c9 as FunctionInsert, fE as FunctionInsertSchema, gS as FunctionListResponse, gC as FunctionResponse, c8 as FunctionSelect, fD as FunctionSelectSchema, fB as FunctionToolApiInsertSchema, cd as FunctionToolApiSelect, fA as FunctionToolApiSelectSchema, fC as FunctionToolApiUpdateSchema, dK as FunctionToolConfig, dJ as FunctionToolConfigSchema, fy as FunctionToolInsertSchema, gT as FunctionToolListResponse, gD as FunctionToolResponse, fx as FunctionToolSelectSchema, fz as FunctionToolUpdateSchema, ca as FunctionUpdate, fF as FunctionUpdateSchema, bs as GetTaskPushNotificationConfigRequest, bF as GetTaskPushNotificationConfigResponse, bE as GetTaskPushNotificationConfigSuccessResponse, bp as GetTaskRequest, bz as GetTaskResponse, by as GetTaskSuccessResponse, aM as HTTPAuthSecurityScheme, he 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, g8 as LedgerArtifactApiInsertSchema, db as LedgerArtifactApiSelect, g7 as LedgerArtifactApiSelectSchema, dd as LedgerArtifactApiUpdate, g9 as LedgerArtifactApiUpdateSchema, d9 as LedgerArtifactInsert, g5 as LedgerArtifactInsertSchema, g4 as LedgerArtifactSelectSchema, da as LedgerArtifactUpdate, g6 as LedgerArtifactUpdateSchema, gi as ListResponseSchema, dG as MCPServerType, fs as MCPToolConfigSchema, dz as McpAuthType, dA as McpServerAuth, dC as McpServerCapabilities, dD as McpToolDefinition, ei as McpToolDefinitionSchema, h7 as McpToolListResponse, h6 as McpToolResponse, fr as McpToolSchema, dB as McpTransportConfig, eg as McpTransportConfigSchema, aW as Message, cj as MessageApiInsert, ev as MessageApiInsertSchema, ci as MessageApiSelect, eu as MessageApiSelectSchema, ck as MessageApiUpdate, ew as MessageApiUpdateSchema, es as MessageInsertSchema, gZ as MessageListResponse, dr as MessageMode, bI as MessagePart, gJ as MessageResponse, dq as MessageRole, ch as MessageSelect, er as MessageSelectSchema, bg as MessageSendConfiguration, bh as MessageSendParams, dp as MessageType, et as MessageUpdateSchema, b1 as MethodNotFoundError, dH as ModelSchema, g as ModelSettings, M as ModelSettingsSchema, ds as Models, aS as OAuth2SecurityScheme, fq as OAuthCallbackQuerySchema, aN as OAuthFlows, fp as OAuthLoginQuerySchema, aT as OpenIdConnectSecurityScheme, dm as Pagination, hn as PaginationQueryParamsSchema, gh as PaginationSchema, P as Part, az as PartBase, aR as PasswordOAuthFlow, dk as ProjectApiInsert, gr as ProjectApiInsertSchema, dj as ProjectApiSelect, gq as ProjectApiSelectSchema, dl as ProjectApiUpdate, gs as ProjectApiUpdateSchema, go as ProjectInsertSchema, gK as ProjectListResponse, dI as ProjectModelSchema, dt as ProjectModels, gu as ProjectResponse, gn as ProjectSelectSchema, gp as ProjectUpdateSchema, bb as PushNotificationAuthenticationInfo, bc as PushNotificationConfig, b6 as PushNotificationNotSupportedError, h4 as RelatedAgentInfoListResponse, fn as RelatedAgentInfoSchema, gm 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, gj as SingleResponseSchema, dv as StatusComponent, ga as StatusComponentSchema, gb as StatusUpdateSchema, du as StatusUpdateSettings, d as StopWhen, S as StopWhenSchema, bL as SubAgentApiInsert, dP as SubAgentApiInsertSchema, bK as SubAgentApiSelect, dO as SubAgentApiSelectSchema, bM as SubAgentApiUpdate, dQ as SubAgentApiUpdateSchema, cK as SubAgentArtifactComponentApiInsert, e_ as SubAgentArtifactComponentApiInsertSchema, cJ as SubAgentArtifactComponentApiSelect, eZ as SubAgentArtifactComponentApiSelectSchema, cL as SubAgentArtifactComponentApiUpdate, e$ as SubAgentArtifactComponentApiUpdateSchema, cH as SubAgentArtifactComponentInsert, eX as SubAgentArtifactComponentInsertSchema, h1 as SubAgentArtifactComponentListResponse, g$ as SubAgentArtifactComponentResponse, cG as SubAgentArtifactComponentSelect, eW as SubAgentArtifactComponentSelectSchema, cI as SubAgentArtifactComponentUpdate, eY as SubAgentArtifactComponentUpdateSchema, cB as SubAgentDataComponentApiInsert, eO as SubAgentDataComponentApiInsertSchema, cA as SubAgentDataComponentApiSelect, eN as SubAgentDataComponentApiSelectSchema, cC as SubAgentDataComponentApiUpdate, eP as SubAgentDataComponentApiUpdateSchema, cy as SubAgentDataComponentInsert, eL as SubAgentDataComponentInsertSchema, h0 as SubAgentDataComponentListResponse, g_ as SubAgentDataComponentResponse, cx as SubAgentDataComponentSelect, eK as SubAgentDataComponentSelectSchema, cz as SubAgentDataComponentUpdate, eM as SubAgentDataComponentUpdateSchema, dh as SubAgentDefinition, d2 as SubAgentExternalAgentRelationApiInsert, fY as SubAgentExternalAgentRelationApiInsertSchema, d1 as SubAgentExternalAgentRelationApiSelect, fX as SubAgentExternalAgentRelationApiSelectSchema, d3 as SubAgentExternalAgentRelationApiUpdate, fZ as SubAgentExternalAgentRelationApiUpdateSchema, fV as SubAgentExternalAgentRelationInsertSchema, hb as SubAgentExternalAgentRelationListResponse, ha as SubAgentExternalAgentRelationResponse, c$ as SubAgentExternalAgentRelationSelect, fU as SubAgentExternalAgentRelationSelectSchema, d0 as SubAgentExternalAgentRelationUpdate, fW as SubAgentExternalAgentRelationUpdateSchema, dM as SubAgentInsertSchema, gL as SubAgentListResponse, bP as SubAgentRelationApiInsert, dV as SubAgentRelationApiInsertSchema, bO as SubAgentRelationApiSelect, dU as SubAgentRelationApiSelectSchema, bQ as SubAgentRelationApiUpdate, dW as SubAgentRelationApiUpdateSchema, dS as SubAgentRelationInsertSchema, gW as SubAgentRelationListResponse, bR as SubAgentRelationQuery, dX as SubAgentRelationQuerySchema, gG as SubAgentRelationResponse, bN as SubAgentRelationSelect, dR as SubAgentRelationSelectSchema, dT as SubAgentRelationUpdateSchema, gv as SubAgentResponse, dL as SubAgentSelectSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema, d7 as SubAgentTeamAgentRelationApiInsert, g2 as SubAgentTeamAgentRelationApiInsertSchema, d6 as SubAgentTeamAgentRelationApiSelect, g1 as SubAgentTeamAgentRelationApiSelectSchema, d8 as SubAgentTeamAgentRelationApiUpdate, g3 as SubAgentTeamAgentRelationApiUpdateSchema, f$ as SubAgentTeamAgentRelationInsertSchema, h9 as SubAgentTeamAgentRelationListResponse, h8 as SubAgentTeamAgentRelationResponse, d4 as SubAgentTeamAgentRelationSelect, f_ as SubAgentTeamAgentRelationSelectSchema, d5 as SubAgentTeamAgentRelationUpdate, g0 as SubAgentTeamAgentRelationUpdateSchema, cZ as SubAgentToolRelationApiInsert, fS as SubAgentToolRelationApiInsertSchema, cY as SubAgentToolRelationApiSelect, fR as SubAgentToolRelationApiSelectSchema, c_ as SubAgentToolRelationApiUpdate, fT as SubAgentToolRelationApiUpdateSchema, cX as SubAgentToolRelationInsert, fP as SubAgentToolRelationInsertSchema, gX as SubAgentToolRelationListResponse, gH as SubAgentToolRelationResponse, cW as SubAgentToolRelationSelect, fO as SubAgentToolRelationSelectSchema, fQ as SubAgentToolRelationUpdateSchema, dN as SubAgentUpdateSchema, dn as SummaryEvent, dE as TOOL_STATUS_VALUES, aY as Task, bZ as TaskApiInsert, e8 as TaskApiInsertSchema, bY as TaskApiSelect, e7 as TaskApiSelectSchema, b_ as TaskApiUpdate, e9 as TaskApiUpdateSchema, bJ as TaskArtifact, a_ as TaskArtifactUpdateEvent, be as TaskIdParams, e5 as TaskInsertSchema, b5 as TaskNotCancelableError, b4 as TaskNotFoundError, bd as TaskPushNotificationConfig, bf as TaskQueryParams, c3 as TaskRelationApiInsert, ee as TaskRelationApiInsertSchema, c2 as TaskRelationApiSelect, ed as TaskRelationApiSelectSchema, c4 as TaskRelationApiUpdate, ef as TaskRelationApiUpdateSchema, c0 as TaskRelationInsert, eb as TaskRelationInsertSchema, b$ as TaskRelationSelect, ea as TaskRelationSelectSchema, c1 as TaskRelationUpdate, ec as TaskRelationUpdateSchema, bt as TaskResubscriptionRequest, e4 as TaskSelectSchema, aG as TaskState, aX as TaskStatus, aZ as TaskStatusUpdateEvent, bX as TaskUpdate, e6 as TaskUpdateSchema, gf as TeamAgentSchema, hg as TenantIdParamsSchema, hf as TenantParamsSchema, hk as TenantProjectAgentIdParamsSchema, hj as TenantProjectAgentParamsSchema, hm as TenantProjectAgentSubAgentIdParamsSchema, hl as TenantProjectAgentSubAgentParamsSchema, hi as TenantProjectIdParamsSchema, hh as TenantProjectParamsSchema, aA as TextPart, c6 as ToolApiInsert, fv as ToolApiInsertSchema, c5 as ToolApiSelect, fu as ToolApiSelectSchema, c7 as ToolApiUpdate, fw as ToolApiUpdateSchema, di as ToolDefinition, ek as ToolInsertSchema, gN as ToolListResponse, gx as ToolResponse, ej as ToolSelectSchema, eh as ToolStatusSchema, ft as ToolUpdateSchema, b7 as UnsupportedOperationError, dF as VALID_RELATION_TYPES, gd as canDelegateToExternalAgentSchema, ge as canDelegateToTeamAgentSchema } from './utility-Ct1UMzr_.js';
5
+ import { r as CredentialReferenceApiInsert, s as ContextConfigSelect, l as ContextFetchDefinition, i as MCPTransportType, t as MCPToolConfig, u as ProjectScopeConfig, v as FullAgentDefinition, w as AgentScopeConfig, C as ConversationHistoryConfig, x as PaginationConfig, y as AgentInsert, z as AgentUpdate, B as AgentSelect, D as ApiKeySelect, E as ApiKeyInsert, G as ApiKeyUpdate, H as CreateApiKeyParams, I as ApiKeyCreateResult, J as ArtifactComponentSelect, K as ArtifactComponentInsert, L as ArtifactComponentUpdate, N as SubAgentScopeConfig, O as ContextCacheSelect, Q as ContextCacheInsert, R as ContextConfigInsert, U as ContextConfigUpdate, V as ConversationSelect, W as ConversationInsert, o as ConversationMetadata, X as ConversationUpdate, Y as CredentialReferenceSelect, Z as ToolSelect, _ as ExternalAgentSelect, $ as CredentialReferenceInsert, a0 as CredentialReferenceUpdate, a1 as DataComponentSelect, a2 as DataComponentInsert, a3 as DataComponentUpdate, a4 as ExternalAgentInsert, a5 as ExternalAgentUpdate, a6 as FunctionApiInsert, a7 as FunctionToolApiInsert, a8 as FunctionToolApiUpdate, a9 as Artifact, aa as LedgerArtifactSelect, q as MessageMetadata, p as MessageContent, ab as MessageVisibility, ac as MessageInsert, ad as MessageUpdate, ae as FullProjectDefinition, af as ProjectInfo, ag as ProjectSelect, ah as PaginationResult, ai as ProjectResourceCounts, aj as ProjectInsert, ak as ProjectUpdate, al as SubAgentExternalAgentRelationInsert, am as SubAgentRelationInsert, an as SubAgentRelationUpdate, ao as SubAgentToolRelationUpdate, m as ToolMcpConfig, n as ToolServerCapabilities, ap as SubAgentInsert, aq as SubAgentUpdate, ar as SubAgentSelect, as as SubAgentTeamAgentRelationInsert, at as TaskInsert, T as TaskMetadataConfig, au as TaskSelect, av as McpTool, aw as ToolInsert, ax as ToolUpdate, h as CredentialStoreType, ay as ExecutionContext } from './utility-DbltUp2Q.js';
6
+ export { ba as A2AError, bG as A2ARequest, bH as A2AResponse, aL as APIKeySecurityScheme, bV as AgentApiInsert, e2 as AgentApiInsertSchema, bU as AgentApiSelect, e1 as AgentApiSelectSchema, bW as AgentApiUpdate, e3 as AgentApiUpdateSchema, aH as AgentCapabilities, aV as AgentCard, dx as AgentConversationHistoryConfig, d$ as AgentInsertSchema, gM as AgentListResponse, aI as AgentProvider, gw as AgentResponse, d_ as AgentSelectSchema, aJ as AgentSkill, e as AgentStopWhen, b as AgentStopWhenSchema, e0 as AgentUpdateSchema, h3 as AgentWithinContextOfProjectResponse, gg as AgentWithinContextOfProjectSchema, f6 as AllAgentSchema, cP as AllAgentSelect, cT as ApiKeyApiCreationResponse, fb as ApiKeyApiCreationResponseSchema, cR as ApiKeyApiInsert, fc as ApiKeyApiInsertSchema, cQ as ApiKeyApiSelect, fa as ApiKeyApiSelectSchema, cS as ApiKeyApiUpdate, A as ApiKeyApiUpdateSchema, f8 as ApiKeyInsertSchema, gQ as ApiKeyListResponse, gA as ApiKeyResponse, f7 as ApiKeySelectSchema, f9 as ApiKeyUpdateSchema, cE as ArtifactComponentApiInsert, eU as ArtifactComponentApiInsertSchema, cD as ArtifactComponentApiSelect, eT as ArtifactComponentApiSelectSchema, cF as ArtifactComponentApiUpdate, eV as ArtifactComponentApiUpdateSchema, hd as ArtifactComponentArrayResponse, eR as ArtifactComponentInsertSchema, gV as ArtifactComponentListResponse, gF as ArtifactComponentResponse, eQ as ArtifactComponentSelectSchema, eS as ArtifactComponentUpdateSchema, aO as AuthorizationCodeOAuthFlow, dg as CanDelegateToExternalAgent, df as CanUseItem, gc as CanUseItemSchema, bq as CancelTaskRequest, bB as CancelTaskResponse, bA as CancelTaskSuccessResponse, aP as ClientCredentialsOAuthFlow, h5 as ComponentAssociationListResponse, fo as ComponentAssociationSchema, b8 as ContentTypeNotSupportedError, cs as ContextCacheApiInsert, eB as ContextCacheApiInsertSchema, cr as ContextCacheApiSelect, eA as ContextCacheApiSelectSchema, ct as ContextCacheApiUpdate, eC as ContextCacheApiUpdateSchema, dy as ContextCacheEntry, ey as ContextCacheInsertSchema, ex as ContextCacheSelectSchema, cq as ContextCacheUpdate, ez as ContextCacheUpdateSchema, cm as ContextConfigApiInsert, fM as ContextConfigApiInsertSchema, cl as ContextConfigApiSelect, fL as ContextConfigApiSelectSchema, cn as ContextConfigApiUpdate, fN as ContextConfigApiUpdateSchema, fJ as ContextConfigInsertSchema, gP as ContextConfigListResponse, gz as ContextConfigResponse, fI as ContextConfigSelectSchema, fK as ContextConfigUpdateSchema, cf as ConversationApiInsert, ep as ConversationApiInsertSchema, ce as ConversationApiSelect, eo as ConversationApiSelectSchema, cg as ConversationApiUpdate, eq as ConversationApiUpdateSchema, em as ConversationInsertSchema, gY as ConversationListResponse, gI as ConversationResponse, dw as ConversationScopeOptions, el as ConversationSelectSchema, en as ConversationUpdateSchema, fl as CreateCredentialInStoreRequestSchema, fm as CreateCredentialInStoreResponseSchema, fh as CredentialReferenceApiInsertSchema, cU as CredentialReferenceApiSelect, fg as CredentialReferenceApiSelectSchema, cV as CredentialReferenceApiUpdate, fi as CredentialReferenceApiUpdateSchema, fe as CredentialReferenceInsertSchema, gR as CredentialReferenceListResponse, gB as CredentialReferenceResponse, fd as CredentialReferenceSelectSchema, ff as CredentialReferenceUpdateSchema, fk as CredentialStoreListResponseSchema, fj as CredentialStoreSchema, cv as DataComponentApiInsert, eI as DataComponentApiInsertSchema, cu as DataComponentApiSelect, eH as DataComponentApiSelectSchema, cw as DataComponentApiUpdate, eJ as DataComponentApiUpdateSchema, hc as DataComponentArrayResponse, eF as DataComponentBaseSchema, eE as DataComponentInsertSchema, gU as DataComponentListResponse, gE as DataComponentResponse, eD as DataComponentSelectSchema, eG as DataComponentUpdateSchema, aF as DataPart, gk as ErrorResponseSchema, gl as ExistsResponseSchema, cN as ExternalAgentApiInsert, f4 as ExternalAgentApiInsertSchema, cM as ExternalAgentApiSelect, f3 as ExternalAgentApiSelectSchema, cO as ExternalAgentApiUpdate, f5 as ExternalAgentApiUpdateSchema, f1 as ExternalAgentInsertSchema, gO as ExternalAgentListResponse, gy as ExternalAgentResponse, f0 as ExternalAgentSelectSchema, f2 as ExternalAgentUpdateSchema, bT as ExternalSubAgentRelationApiInsert, dZ as ExternalSubAgentRelationApiInsertSchema, bS as ExternalSubAgentRelationInsert, dY as ExternalSubAgentRelationInsertSchema, cp as FetchConfig, fG as FetchConfigSchema, co as FetchDefinition, fH as FetchDefinitionSchema, aB as FileBase, aE as FilePart, aC as FileWithBytes, aD as FileWithUri, de as FullAgentAgentInsert, a as FullAgentAgentInsertSchema, h2 as FullProjectDefinitionResponse, gt as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, cb as FunctionApiSelect, j as FunctionApiSelectSchema, cc as FunctionApiUpdate, k as FunctionApiUpdateSchema, c9 as FunctionInsert, fE as FunctionInsertSchema, gS as FunctionListResponse, gC as FunctionResponse, c8 as FunctionSelect, fD as FunctionSelectSchema, fB as FunctionToolApiInsertSchema, cd as FunctionToolApiSelect, fA as FunctionToolApiSelectSchema, fC as FunctionToolApiUpdateSchema, dK as FunctionToolConfig, dJ as FunctionToolConfigSchema, fy as FunctionToolInsertSchema, gT as FunctionToolListResponse, gD as FunctionToolResponse, fx as FunctionToolSelectSchema, fz as FunctionToolUpdateSchema, ca as FunctionUpdate, fF as FunctionUpdateSchema, bs as GetTaskPushNotificationConfigRequest, bF as GetTaskPushNotificationConfigResponse, bE as GetTaskPushNotificationConfigSuccessResponse, bp as GetTaskRequest, bz as GetTaskResponse, by as GetTaskSuccessResponse, aM as HTTPAuthSecurityScheme, he 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, g8 as LedgerArtifactApiInsertSchema, db as LedgerArtifactApiSelect, g7 as LedgerArtifactApiSelectSchema, dd as LedgerArtifactApiUpdate, g9 as LedgerArtifactApiUpdateSchema, d9 as LedgerArtifactInsert, g5 as LedgerArtifactInsertSchema, g4 as LedgerArtifactSelectSchema, da as LedgerArtifactUpdate, g6 as LedgerArtifactUpdateSchema, gi as ListResponseSchema, dG as MCPServerType, fs as MCPToolConfigSchema, dz as McpAuthType, dA as McpServerAuth, dC as McpServerCapabilities, dD as McpToolDefinition, ei as McpToolDefinitionSchema, h7 as McpToolListResponse, h6 as McpToolResponse, fr as McpToolSchema, dB as McpTransportConfig, eg as McpTransportConfigSchema, aW as Message, cj as MessageApiInsert, ev as MessageApiInsertSchema, ci as MessageApiSelect, eu as MessageApiSelectSchema, ck as MessageApiUpdate, ew as MessageApiUpdateSchema, es as MessageInsertSchema, gZ as MessageListResponse, dr as MessageMode, bI as MessagePart, gJ as MessageResponse, dq as MessageRole, ch as MessageSelect, er as MessageSelectSchema, bg as MessageSendConfiguration, bh as MessageSendParams, dp as MessageType, et as MessageUpdateSchema, b1 as MethodNotFoundError, dH as ModelSchema, g as ModelSettings, M as ModelSettingsSchema, ds as Models, aS as OAuth2SecurityScheme, fq as OAuthCallbackQuerySchema, aN as OAuthFlows, fp as OAuthLoginQuerySchema, aT as OpenIdConnectSecurityScheme, dm as Pagination, hn as PaginationQueryParamsSchema, gh as PaginationSchema, P as Part, az as PartBase, aR as PasswordOAuthFlow, dk as ProjectApiInsert, gr as ProjectApiInsertSchema, dj as ProjectApiSelect, gq as ProjectApiSelectSchema, dl as ProjectApiUpdate, gs as ProjectApiUpdateSchema, go as ProjectInsertSchema, gK as ProjectListResponse, dI as ProjectModelSchema, dt as ProjectModels, gu as ProjectResponse, gn as ProjectSelectSchema, gp as ProjectUpdateSchema, bb as PushNotificationAuthenticationInfo, bc as PushNotificationConfig, b6 as PushNotificationNotSupportedError, h4 as RelatedAgentInfoListResponse, fn as RelatedAgentInfoSchema, gm 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, gj as SingleResponseSchema, dv as StatusComponent, ga as StatusComponentSchema, gb as StatusUpdateSchema, du as StatusUpdateSettings, d as StopWhen, S as StopWhenSchema, bL as SubAgentApiInsert, dP as SubAgentApiInsertSchema, bK as SubAgentApiSelect, dO as SubAgentApiSelectSchema, bM as SubAgentApiUpdate, dQ as SubAgentApiUpdateSchema, cK as SubAgentArtifactComponentApiInsert, e_ as SubAgentArtifactComponentApiInsertSchema, cJ as SubAgentArtifactComponentApiSelect, eZ as SubAgentArtifactComponentApiSelectSchema, cL as SubAgentArtifactComponentApiUpdate, e$ as SubAgentArtifactComponentApiUpdateSchema, cH as SubAgentArtifactComponentInsert, eX as SubAgentArtifactComponentInsertSchema, h1 as SubAgentArtifactComponentListResponse, g$ as SubAgentArtifactComponentResponse, cG as SubAgentArtifactComponentSelect, eW as SubAgentArtifactComponentSelectSchema, cI as SubAgentArtifactComponentUpdate, eY as SubAgentArtifactComponentUpdateSchema, cB as SubAgentDataComponentApiInsert, eO as SubAgentDataComponentApiInsertSchema, cA as SubAgentDataComponentApiSelect, eN as SubAgentDataComponentApiSelectSchema, cC as SubAgentDataComponentApiUpdate, eP as SubAgentDataComponentApiUpdateSchema, cy as SubAgentDataComponentInsert, eL as SubAgentDataComponentInsertSchema, h0 as SubAgentDataComponentListResponse, g_ as SubAgentDataComponentResponse, cx as SubAgentDataComponentSelect, eK as SubAgentDataComponentSelectSchema, cz as SubAgentDataComponentUpdate, eM as SubAgentDataComponentUpdateSchema, dh as SubAgentDefinition, d2 as SubAgentExternalAgentRelationApiInsert, fY as SubAgentExternalAgentRelationApiInsertSchema, d1 as SubAgentExternalAgentRelationApiSelect, fX as SubAgentExternalAgentRelationApiSelectSchema, d3 as SubAgentExternalAgentRelationApiUpdate, fZ as SubAgentExternalAgentRelationApiUpdateSchema, fV as SubAgentExternalAgentRelationInsertSchema, hb as SubAgentExternalAgentRelationListResponse, ha as SubAgentExternalAgentRelationResponse, c$ as SubAgentExternalAgentRelationSelect, fU as SubAgentExternalAgentRelationSelectSchema, d0 as SubAgentExternalAgentRelationUpdate, fW as SubAgentExternalAgentRelationUpdateSchema, dM as SubAgentInsertSchema, gL as SubAgentListResponse, bP as SubAgentRelationApiInsert, dV as SubAgentRelationApiInsertSchema, bO as SubAgentRelationApiSelect, dU as SubAgentRelationApiSelectSchema, bQ as SubAgentRelationApiUpdate, dW as SubAgentRelationApiUpdateSchema, dS as SubAgentRelationInsertSchema, gW as SubAgentRelationListResponse, bR as SubAgentRelationQuery, dX as SubAgentRelationQuerySchema, gG as SubAgentRelationResponse, bN as SubAgentRelationSelect, dR as SubAgentRelationSelectSchema, dT as SubAgentRelationUpdateSchema, gv as SubAgentResponse, dL as SubAgentSelectSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema, d7 as SubAgentTeamAgentRelationApiInsert, g2 as SubAgentTeamAgentRelationApiInsertSchema, d6 as SubAgentTeamAgentRelationApiSelect, g1 as SubAgentTeamAgentRelationApiSelectSchema, d8 as SubAgentTeamAgentRelationApiUpdate, g3 as SubAgentTeamAgentRelationApiUpdateSchema, f$ as SubAgentTeamAgentRelationInsertSchema, h9 as SubAgentTeamAgentRelationListResponse, h8 as SubAgentTeamAgentRelationResponse, d4 as SubAgentTeamAgentRelationSelect, f_ as SubAgentTeamAgentRelationSelectSchema, d5 as SubAgentTeamAgentRelationUpdate, g0 as SubAgentTeamAgentRelationUpdateSchema, cZ as SubAgentToolRelationApiInsert, fS as SubAgentToolRelationApiInsertSchema, cY as SubAgentToolRelationApiSelect, fR as SubAgentToolRelationApiSelectSchema, c_ as SubAgentToolRelationApiUpdate, fT as SubAgentToolRelationApiUpdateSchema, cX as SubAgentToolRelationInsert, fP as SubAgentToolRelationInsertSchema, gX as SubAgentToolRelationListResponse, gH as SubAgentToolRelationResponse, cW as SubAgentToolRelationSelect, fO as SubAgentToolRelationSelectSchema, fQ as SubAgentToolRelationUpdateSchema, dN as SubAgentUpdateSchema, dn as SummaryEvent, dE as TOOL_STATUS_VALUES, aY as Task, bZ as TaskApiInsert, e8 as TaskApiInsertSchema, bY as TaskApiSelect, e7 as TaskApiSelectSchema, b_ as TaskApiUpdate, e9 as TaskApiUpdateSchema, bJ as TaskArtifact, a_ as TaskArtifactUpdateEvent, be as TaskIdParams, e5 as TaskInsertSchema, b5 as TaskNotCancelableError, b4 as TaskNotFoundError, bd as TaskPushNotificationConfig, bf as TaskQueryParams, c3 as TaskRelationApiInsert, ee as TaskRelationApiInsertSchema, c2 as TaskRelationApiSelect, ed as TaskRelationApiSelectSchema, c4 as TaskRelationApiUpdate, ef as TaskRelationApiUpdateSchema, c0 as TaskRelationInsert, eb as TaskRelationInsertSchema, b$ as TaskRelationSelect, ea as TaskRelationSelectSchema, c1 as TaskRelationUpdate, ec as TaskRelationUpdateSchema, bt as TaskResubscriptionRequest, e4 as TaskSelectSchema, aG as TaskState, aX as TaskStatus, aZ as TaskStatusUpdateEvent, bX as TaskUpdate, e6 as TaskUpdateSchema, gf as TeamAgentSchema, hg as TenantIdParamsSchema, hf as TenantParamsSchema, hk as TenantProjectAgentIdParamsSchema, hj as TenantProjectAgentParamsSchema, hm as TenantProjectAgentSubAgentIdParamsSchema, hl as TenantProjectAgentSubAgentParamsSchema, hi as TenantProjectIdParamsSchema, hh as TenantProjectParamsSchema, aA as TextPart, c6 as ToolApiInsert, fv as ToolApiInsertSchema, c5 as ToolApiSelect, fu as ToolApiSelectSchema, c7 as ToolApiUpdate, fw as ToolApiUpdateSchema, di as ToolDefinition, ek as ToolInsertSchema, gN as ToolListResponse, gx as ToolResponse, ej as ToolSelectSchema, eh as ToolStatusSchema, ft as ToolUpdateSchema, b7 as UnsupportedOperationError, dF as VALID_RELATION_TYPES, gd as canDelegateToExternalAgentSchema, ge as canDelegateToTeamAgentSchema } from './utility-DbltUp2Q.js';
7
7
  import { CredentialStore } from './types/index.js';
8
8
  export { CorsConfig, ServerConfig, ServerOptions } from './types/index.js';
9
- import { NodePgDatabase } from 'drizzle-orm/node-postgres';
10
- import { PgliteDatabase } from 'drizzle-orm/pglite';
11
- import { s as schema } from './schema-DlcSfZRM.js';
12
- export { Z as account, 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, _ as invitation, x as ledgerArtifacts, S as ledgerArtifactsRelations, $ as member, w as messages, N as messagesRelations, a0 as organization, p as projects, B as projectsRelations, a1 as session, a2 as ssoProvider, 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, a3 as user, a4 as verification } from './schema-DlcSfZRM.js';
9
+ import { D as DatabaseClient } from './client-CPYOMZF2.js';
10
+ export { a as DatabaseConfig, c as createDatabaseClient } from './client-CPYOMZF2.js';
13
11
  import { SSEClientTransportOptions } from '@modelcontextprotocol/sdk/client/sse.js';
14
12
  import { StreamableHTTPClientTransportOptions } from '@modelcontextprotocol/sdk/client/streamableHttp.js';
15
13
  import { ClientCapabilities } from '@modelcontextprotocol/sdk/types.js';
16
- import * as drizzle_orm_pg_core from 'drizzle-orm/pg-core';
17
14
  import { PgTable } from 'drizzle-orm/pg-core';
18
- import * as drizzle_zod from 'drizzle-zod';
15
+ import { UserOrganization, User } from './auth/auth-validation-schemas.js';
16
+ 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-5N2lPWNV.js';
19
17
  import { ValidateFunction } from 'ajv';
20
18
  import { Context, Next } from 'hono';
21
19
  import { z as z$1 } from '@hono/zod-openapi';
@@ -24,7 +22,11 @@ export { convertZodToJsonSchema, convertZodToJsonSchemaWithPreview, extractPrevi
24
22
  import { Span, Tracer } from '@opentelemetry/api';
25
23
  export { A2AMessageMetadata, A2AMessageMetadataSchema, DataComponentStreamEvent, DataComponentStreamEventSchema, DataOperationDetails, DataOperationDetailsSchema, DataOperationEvent, DataOperationEventSchema, DataOperationStreamEvent, DataOperationStreamEventSchema, DataSummaryStreamEvent, DataSummaryStreamEventSchema, DelegationReturnedData, DelegationReturnedDataSchema, DelegationSentData, DelegationSentDataSchema, MAX_ID_LENGTH, MIN_ID_LENGTH, RenderValidationResult, StreamErrorEvent, StreamErrorEventSchema, StreamEvent, StreamEventSchema, StreamFinishEvent, StreamFinishEventSchema, TextDeltaEvent, TextDeltaEventSchema, TextEndEvent, TextEndEventSchema, TextStartEvent, TextStartEventSchema, TransferData, TransferDataSchema, URL_SAFE_ID_PATTERN, generateIdFromName, isValidResourceId, resourceIdSchema, validateAgentRelationships, validateAgentStructure, validateAndTypeAgentData, validateArtifactComponentReferences, validateDataComponentReferences, validateRender, validateSubAgentExternalAgentRelations, validateToolReferences } from './validation/index.js';
26
24
  export { P as PropsValidationResult, v as validatePropsAsJsonSchema } from './props-validation-BMR1qNiy.js';
25
+ export { account, invitation, member, organization, session, ssoProvider, user, verification } from './auth/auth-schema.js';
27
26
  import 'pino';
27
+ import 'drizzle-zod';
28
+ import 'drizzle-orm/node-postgres';
29
+ import 'drizzle-orm/pglite';
28
30
  import 'drizzle-orm';
29
31
 
30
32
  /**
@@ -238,20 +240,6 @@ declare class CredentialStoreRegistry {
238
240
  size(): number;
239
241
  }
240
242
 
241
- type DatabaseClient = NodePgDatabase<typeof schema> | PgliteDatabase<typeof schema>;
242
- interface DatabaseConfig {
243
- connectionString?: string;
244
- poolSize?: number;
245
- ssl?: boolean;
246
- logger?: {
247
- logQuery: (query: string, params: unknown[]) => void;
248
- };
249
- }
250
- /**
251
- * Creates a PostgreSQL database client with connection pooling
252
- */
253
- declare function createDatabaseClient(config?: DatabaseConfig): DatabaseClient;
254
-
255
243
  interface TemplateContext {
256
244
  [key: string]: unknown;
257
245
  }
@@ -847,13 +835,14 @@ declare const deleteFullAgent: (db: DatabaseClient, logger?: AgentLogger) => (pa
847
835
  declare const getAgentById: (db: DatabaseClient) => (params: {
848
836
  scopes: AgentScopeConfig;
849
837
  }) => Promise<{
850
- name: string;
838
+ tenantId: string;
839
+ projectId: string;
851
840
  id: string;
841
+ name: string;
842
+ description: string | null;
843
+ prompt: string | null;
852
844
  createdAt: string;
853
845
  updatedAt: string;
854
- description: string | null;
855
- projectId: string;
856
- tenantId: string;
857
846
  models: {
858
847
  base?: {
859
848
  model?: string | undefined;
@@ -873,7 +862,6 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
873
862
  } | null;
874
863
  defaultSubAgentId: string | null;
875
864
  contextConfigId: string | null;
876
- prompt: string | null;
877
865
  statusUpdates: {
878
866
  enabled?: boolean | undefined;
879
867
  numEvents?: number | undefined;
@@ -893,13 +881,14 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
893
881
  declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
894
882
  scopes: AgentScopeConfig;
895
883
  }) => Promise<{
896
- name: string;
884
+ tenantId: string;
885
+ projectId: string;
897
886
  id: string;
887
+ name: string;
888
+ description: string | null;
889
+ prompt: string | null;
898
890
  createdAt: string;
899
891
  updatedAt: string;
900
- description: string | null;
901
- projectId: string;
902
- tenantId: string;
903
892
  models: {
904
893
  base?: {
905
894
  model?: string | undefined;
@@ -919,7 +908,6 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
919
908
  } | null;
920
909
  defaultSubAgentId: string | null;
921
910
  contextConfigId: string | null;
922
- prompt: string | null;
923
911
  statusUpdates: {
924
912
  enabled?: boolean | undefined;
925
913
  numEvents?: number | undefined;
@@ -936,13 +924,15 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
936
924
  }[] | undefined;
937
925
  } | null;
938
926
  defaultSubAgent: {
939
- name: string;
927
+ tenantId: string;
928
+ projectId: string;
940
929
  id: string;
930
+ name: string;
931
+ description: string;
932
+ prompt: string;
933
+ agentId: string;
941
934
  createdAt: string;
942
935
  updatedAt: string;
943
- description: string;
944
- projectId: string;
945
- tenantId: string;
946
936
  models: {
947
937
  base?: {
948
938
  model?: string | undefined;
@@ -960,21 +950,20 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
960
950
  stopWhen: {
961
951
  stepCountIs?: number | undefined;
962
952
  } | null;
963
- agentId: string;
964
- prompt: string;
965
953
  conversationHistoryConfig: ConversationHistoryConfig | null;
966
954
  } | null;
967
955
  } | null>;
968
956
  declare const listAgents: (db: DatabaseClient) => (params: {
969
957
  scopes: ProjectScopeConfig;
970
958
  }) => Promise<{
971
- name: string;
959
+ tenantId: string;
960
+ projectId: string;
972
961
  id: string;
962
+ name: string;
963
+ description: string | null;
964
+ prompt: string | null;
973
965
  createdAt: string;
974
966
  updatedAt: string;
975
- description: string | null;
976
- projectId: string;
977
- tenantId: string;
978
967
  models: {
979
968
  base?: {
980
969
  model?: string | undefined;
@@ -994,7 +983,6 @@ declare const listAgents: (db: DatabaseClient) => (params: {
994
983
  } | null;
995
984
  defaultSubAgentId: string | null;
996
985
  contextConfigId: string | null;
997
- prompt: string | null;
998
986
  statusUpdates: {
999
987
  enabled?: boolean | undefined;
1000
988
  numEvents?: number | undefined;
@@ -1067,13 +1055,14 @@ declare const listAgentsPaginated: (db: DatabaseClient) => (params: {
1067
1055
  };
1068
1056
  }>;
1069
1057
  declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promise<{
1070
- name: string;
1058
+ tenantId: string;
1059
+ projectId: string;
1071
1060
  id: string;
1061
+ name: string;
1062
+ description: string | null;
1063
+ prompt: string | null;
1072
1064
  createdAt: string;
1073
1065
  updatedAt: string;
1074
- description: string | null;
1075
- projectId: string;
1076
- tenantId: string;
1077
1066
  models: {
1078
1067
  base?: {
1079
1068
  model?: string | undefined;
@@ -1093,7 +1082,6 @@ declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promis
1093
1082
  } | null;
1094
1083
  defaultSubAgentId: string | null;
1095
1084
  contextConfigId: string | null;
1096
- prompt: string | null;
1097
1085
  statusUpdates: {
1098
1086
  enabled?: boolean | undefined;
1099
1087
  numEvents?: number | undefined;
@@ -1194,49 +1182,49 @@ declare const getApiKeyById: (db: DatabaseClient) => (params: {
1194
1182
  scopes: ProjectScopeConfig;
1195
1183
  id: string;
1196
1184
  }) => Promise<{
1197
- name: string | null;
1198
- id: string;
1199
- createdAt: string;
1200
- updatedAt: string;
1201
- expiresAt: string | null;
1202
- projectId: string;
1203
1185
  tenantId: string;
1186
+ projectId: string;
1187
+ id: string;
1188
+ name: string | null;
1204
1189
  agentId: string;
1205
1190
  publicId: string;
1206
1191
  keyHash: string;
1207
1192
  keyPrefix: string;
1208
1193
  lastUsedAt: string | null;
1209
- } | undefined>;
1210
- declare const getApiKeyByPublicId: (db: DatabaseClient) => (publicId: string) => Promise<{
1211
- name: string | null;
1212
- id: string;
1194
+ expiresAt: string | null;
1213
1195
  createdAt: string;
1214
1196
  updatedAt: string;
1215
- expiresAt: string | null;
1216
- projectId: string;
1197
+ } | undefined>;
1198
+ declare const getApiKeyByPublicId: (db: DatabaseClient) => (publicId: string) => Promise<{
1217
1199
  tenantId: string;
1200
+ projectId: string;
1201
+ id: string;
1202
+ name: string | null;
1218
1203
  agentId: string;
1219
1204
  publicId: string;
1220
1205
  keyHash: string;
1221
1206
  keyPrefix: string;
1222
1207
  lastUsedAt: string | null;
1208
+ expiresAt: string | null;
1209
+ createdAt: string;
1210
+ updatedAt: string;
1223
1211
  } | undefined>;
1224
1212
  declare const listApiKeys: (db: DatabaseClient) => (params: {
1225
1213
  scopes: ProjectScopeConfig;
1226
1214
  agentId?: string;
1227
1215
  }) => Promise<{
1228
- name: string | null;
1229
- id: string;
1230
- createdAt: string;
1231
- updatedAt: string;
1232
- expiresAt: string | null;
1233
- projectId: string;
1234
1216
  tenantId: string;
1217
+ projectId: string;
1218
+ id: string;
1219
+ name: string | null;
1235
1220
  agentId: string;
1236
1221
  publicId: string;
1237
1222
  keyHash: string;
1238
1223
  keyPrefix: string;
1239
1224
  lastUsedAt: string | null;
1225
+ expiresAt: string | null;
1226
+ createdAt: string;
1227
+ updatedAt: string;
1240
1228
  }[]>;
1241
1229
  declare const listApiKeysPaginated: (db: DatabaseClient) => (params: {
1242
1230
  scopes: ProjectScopeConfig;
@@ -1252,18 +1240,18 @@ declare const listApiKeysPaginated: (db: DatabaseClient) => (params: {
1252
1240
  };
1253
1241
  }>;
1254
1242
  declare const createApiKey: (db: DatabaseClient) => (params: ApiKeyInsert) => Promise<{
1255
- name: string | null;
1256
- id: string;
1257
- createdAt: string;
1258
- updatedAt: string;
1259
- expiresAt: string | null;
1260
- projectId: string;
1261
1243
  tenantId: string;
1244
+ projectId: string;
1245
+ id: string;
1246
+ name: string | null;
1262
1247
  agentId: string;
1263
1248
  publicId: string;
1264
1249
  keyHash: string;
1265
1250
  keyPrefix: string;
1266
1251
  lastUsedAt: string | null;
1252
+ expiresAt: string | null;
1253
+ createdAt: string;
1254
+ updatedAt: string;
1267
1255
  }>;
1268
1256
  declare const updateApiKey: (db: DatabaseClient) => (params: {
1269
1257
  scopes: ProjectScopeConfig;
@@ -1310,13 +1298,13 @@ declare const getArtifactComponentById: (db: DatabaseClient) => (params: {
1310
1298
  scopes: ProjectScopeConfig;
1311
1299
  id: string;
1312
1300
  }) => Promise<{
1313
- name: string;
1301
+ tenantId: string;
1302
+ projectId: string;
1314
1303
  id: string;
1304
+ name: string;
1305
+ description: string;
1315
1306
  createdAt: string;
1316
1307
  updatedAt: string;
1317
- description: string;
1318
- projectId: string;
1319
- tenantId: string;
1320
1308
  props: Record<string, unknown> | null;
1321
1309
  } | undefined>;
1322
1310
  declare const listArtifactComponents: (db: DatabaseClient) => (params: {
@@ -1344,13 +1332,13 @@ declare const listArtifactComponentsPaginated: (db: DatabaseClient) => (params:
1344
1332
  };
1345
1333
  }>;
1346
1334
  declare const createArtifactComponent: (db: DatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
1347
- name: string;
1335
+ tenantId: string;
1336
+ projectId: string;
1348
1337
  id: string;
1338
+ name: string;
1339
+ description: string;
1349
1340
  createdAt: string;
1350
1341
  updatedAt: string;
1351
- description: string;
1352
- projectId: string;
1353
- tenantId: string;
1354
1342
  props: Record<string, unknown> | null;
1355
1343
  }>;
1356
1344
  declare const updateArtifactComponent: (db: DatabaseClient) => (params: {
@@ -1387,11 +1375,11 @@ declare const associateArtifactComponentWithAgent: (db: DatabaseClient) => (para
1387
1375
  scopes: SubAgentScopeConfig;
1388
1376
  artifactComponentId: string;
1389
1377
  }) => Promise<{
1390
- id: string;
1391
- createdAt: string;
1392
- projectId: string;
1393
1378
  tenantId: string;
1379
+ projectId: string;
1380
+ id: string;
1394
1381
  agentId: string;
1382
+ createdAt: string;
1395
1383
  subAgentId: string;
1396
1384
  artifactComponentId: string;
1397
1385
  }>;
@@ -1430,11 +1418,11 @@ declare const upsertAgentArtifactComponentRelation: (db: DatabaseClient) => (par
1430
1418
  scopes: SubAgentScopeConfig;
1431
1419
  artifactComponentId: string;
1432
1420
  }) => Promise<{
1433
- id: string;
1434
- createdAt: string;
1435
- projectId: string;
1436
1421
  tenantId: string;
1422
+ projectId: string;
1423
+ id: string;
1437
1424
  agentId: string;
1425
+ createdAt: string;
1438
1426
  subAgentId: string;
1439
1427
  artifactComponentId: string;
1440
1428
  } | null>;
@@ -1514,26 +1502,26 @@ declare const getContextConfigById: (db: DatabaseClient) => (params: {
1514
1502
  scopes: AgentScopeConfig;
1515
1503
  id: string;
1516
1504
  }) => Promise<{
1505
+ tenantId: string;
1506
+ projectId: string;
1517
1507
  id: string;
1508
+ agentId: string;
1518
1509
  createdAt: string;
1519
1510
  updatedAt: string;
1520
- projectId: string;
1521
- tenantId: string;
1522
1511
  headersSchema: unknown;
1523
1512
  contextVariables: Record<string, ContextFetchDefinition> | null;
1524
- agentId: string;
1525
1513
  } | undefined>;
1526
1514
  declare const listContextConfigs: (db: DatabaseClient) => (params: {
1527
1515
  scopes: AgentScopeConfig;
1528
1516
  }) => Promise<{
1517
+ tenantId: string;
1518
+ projectId: string;
1529
1519
  id: string;
1520
+ agentId: string;
1530
1521
  createdAt: string;
1531
1522
  updatedAt: string;
1532
- projectId: string;
1533
- tenantId: string;
1534
1523
  headersSchema: unknown;
1535
1524
  contextVariables: Record<string, ContextFetchDefinition> | null;
1536
- agentId: string;
1537
1525
  }[]>;
1538
1526
  declare const listContextConfigsPaginated: (db: DatabaseClient) => (params: {
1539
1527
  scopes: AgentScopeConfig;
@@ -1548,14 +1536,14 @@ declare const listContextConfigsPaginated: (db: DatabaseClient) => (params: {
1548
1536
  };
1549
1537
  }>;
1550
1538
  declare const createContextConfig: (db: DatabaseClient) => (params: ContextConfigInsert) => Promise<{
1539
+ tenantId: string;
1540
+ projectId: string;
1551
1541
  id: string;
1542
+ agentId: string;
1552
1543
  createdAt: string;
1553
1544
  updatedAt: string;
1554
- projectId: string;
1555
- tenantId: string;
1556
1545
  headersSchema: unknown;
1557
1546
  contextVariables: Record<string, ContextFetchDefinition> | null;
1558
- agentId: string;
1559
1547
  }>;
1560
1548
  declare const updateContextConfig: (db: DatabaseClient) => (params: {
1561
1549
  scopes: AgentScopeConfig;
@@ -1588,14 +1576,14 @@ declare const countContextConfigs: (db: DatabaseClient) => (params: {
1588
1576
  declare const upsertContextConfig: (db: DatabaseClient) => (params: {
1589
1577
  data: ContextConfigInsert;
1590
1578
  }) => Promise<{
1579
+ tenantId: string;
1580
+ projectId: string;
1591
1581
  id: string;
1582
+ agentId: string;
1592
1583
  createdAt: string;
1593
1584
  updatedAt: string;
1594
- projectId: string;
1595
- tenantId: string;
1596
1585
  headersSchema: unknown;
1597
1586
  contextVariables: Record<string, ContextFetchDefinition> | null;
1598
- agentId: string;
1599
1587
  }>;
1600
1588
 
1601
1589
  declare const listConversations: (db: DatabaseClient) => (params: {
@@ -1607,14 +1595,14 @@ declare const listConversations: (db: DatabaseClient) => (params: {
1607
1595
  total: number;
1608
1596
  }>;
1609
1597
  declare const createConversation: (db: DatabaseClient) => (params: ConversationInsert) => Promise<{
1598
+ tenantId: string;
1599
+ projectId: string;
1610
1600
  id: string;
1601
+ title: string | null;
1611
1602
  createdAt: string;
1612
1603
  updatedAt: string;
1613
- userId: string | null;
1614
1604
  metadata: ConversationMetadata | null;
1615
- title: string | null;
1616
- projectId: string;
1617
- tenantId: string;
1605
+ userId: string | null;
1618
1606
  activeSubAgentId: string;
1619
1607
  lastContextResolution: string | null;
1620
1608
  }>;
@@ -1658,14 +1646,14 @@ declare const getConversation: (db: DatabaseClient) => (params: {
1658
1646
  scopes: ProjectScopeConfig;
1659
1647
  conversationId: string;
1660
1648
  }) => Promise<{
1649
+ tenantId: string;
1650
+ projectId: string;
1661
1651
  id: string;
1652
+ title: string | null;
1662
1653
  createdAt: string;
1663
1654
  updatedAt: string;
1664
- userId: string | null;
1665
1655
  metadata: ConversationMetadata | null;
1666
- title: string | null;
1667
- projectId: string;
1668
- tenantId: string;
1656
+ userId: string | null;
1669
1657
  activeSubAgentId: string;
1670
1658
  lastContextResolution: string | null;
1671
1659
  } | undefined>;
@@ -1682,14 +1670,14 @@ declare const createOrGetConversation: (db: DatabaseClient) => (input: Conversat
1682
1670
  metadata?: ConversationMetadata | null | undefined;
1683
1671
  contextConfigId?: string | undefined;
1684
1672
  } | {
1673
+ tenantId: string;
1674
+ projectId: string;
1685
1675
  id: string;
1676
+ title: string | null;
1686
1677
  createdAt: string;
1687
1678
  updatedAt: string;
1688
- userId: string | null;
1689
1679
  metadata: ConversationMetadata | null;
1690
- title: string | null;
1691
- projectId: string;
1692
- tenantId: string;
1680
+ userId: string | null;
1693
1681
  activeSubAgentId: string;
1694
1682
  lastContextResolution: string | null;
1695
1683
  }>;
@@ -1708,14 +1696,14 @@ declare const getActiveAgentForConversation: (db: DatabaseClient) => (params: {
1708
1696
  scopes: ProjectScopeConfig;
1709
1697
  conversationId: string;
1710
1698
  }) => Promise<{
1699
+ tenantId: string;
1700
+ projectId: string;
1711
1701
  id: string;
1702
+ title: string | null;
1712
1703
  createdAt: string;
1713
1704
  updatedAt: string;
1714
- userId: string | null;
1715
1705
  metadata: ConversationMetadata | null;
1716
- title: string | null;
1717
- projectId: string;
1718
- tenantId: string;
1706
+ userId: string | null;
1719
1707
  activeSubAgentId: string;
1720
1708
  lastContextResolution: string | null;
1721
1709
  } | undefined>;
@@ -1878,11 +1866,11 @@ declare const associateDataComponentWithAgent: (db: DatabaseClient) => (params:
1878
1866
  scopes: SubAgentScopeConfig;
1879
1867
  dataComponentId: string;
1880
1868
  }) => Promise<{
1881
- id: string;
1882
- createdAt: string;
1883
- projectId: string;
1884
1869
  tenantId: string;
1870
+ projectId: string;
1871
+ id: string;
1885
1872
  agentId: string;
1873
+ createdAt: string;
1886
1874
  subAgentId: string;
1887
1875
  dataComponentId: string;
1888
1876
  }>;
@@ -1920,11 +1908,11 @@ declare const upsertAgentDataComponentRelation: (db: DatabaseClient) => (params:
1920
1908
  scopes: SubAgentScopeConfig;
1921
1909
  dataComponentId: string;
1922
1910
  }) => Promise<{
1923
- id: string;
1924
- createdAt: string;
1925
- projectId: string;
1926
1911
  tenantId: string;
1912
+ projectId: string;
1913
+ id: string;
1927
1914
  agentId: string;
1915
+ createdAt: string;
1928
1916
  subAgentId: string;
1929
1917
  dataComponentId: string;
1930
1918
  } | null>;
@@ -2099,14 +2087,14 @@ declare const createFunctionTool: (db: DatabaseClient) => (params: {
2099
2087
  data: FunctionToolApiInsert;
2100
2088
  scopes: AgentScopeConfig;
2101
2089
  }) => Promise<{
2102
- name: string;
2090
+ tenantId: string;
2091
+ projectId: string;
2103
2092
  id: string;
2104
- createdAt: string;
2105
- updatedAt: string;
2093
+ name: string;
2106
2094
  description: string | null;
2107
- projectId: string;
2108
- tenantId: string;
2109
2095
  agentId: string;
2096
+ createdAt: string;
2097
+ updatedAt: string;
2110
2098
  functionId: string;
2111
2099
  }>;
2112
2100
  /**
@@ -2141,14 +2129,14 @@ declare const upsertFunctionTool: (db: DatabaseClient) => (params: {
2141
2129
  data: FunctionToolApiInsert;
2142
2130
  scopes: AgentScopeConfig;
2143
2131
  }) => Promise<{
2144
- name: string;
2132
+ tenantId: string;
2133
+ projectId: string;
2145
2134
  id: string;
2146
- createdAt: string;
2147
- updatedAt: string;
2135
+ name: string;
2148
2136
  description: string | null;
2149
- projectId: string;
2150
- tenantId: string;
2151
2137
  agentId: string;
2138
+ createdAt: string;
2139
+ updatedAt: string;
2152
2140
  functionId: string;
2153
2141
  }>;
2154
2142
  declare const getFunctionToolsForSubAgent: (db: DatabaseClient) => (params: {
@@ -2278,14 +2266,14 @@ declare const getMessageById: (db: DatabaseClient) => (params: {
2278
2266
  scopes: ProjectScopeConfig;
2279
2267
  messageId: string;
2280
2268
  }) => Promise<{
2269
+ tenantId: string;
2270
+ projectId: string;
2281
2271
  id: string;
2282
2272
  createdAt: string;
2283
2273
  updatedAt: string;
2284
2274
  metadata: MessageMetadata | null;
2285
- role: string;
2286
- projectId: string;
2287
- tenantId: string;
2288
2275
  content: MessageContent;
2276
+ role: string;
2289
2277
  conversationId: string;
2290
2278
  fromSubAgentId: string | null;
2291
2279
  toSubAgentId: string | null;
@@ -2409,14 +2397,14 @@ declare const getVisibleMessages: (db: DatabaseClient) => (params: {
2409
2397
  id: string;
2410
2398
  }[]>;
2411
2399
  declare const createMessage: (db: DatabaseClient) => (params: MessageInsert) => Promise<{
2400
+ tenantId: string;
2401
+ projectId: string;
2412
2402
  id: string;
2413
2403
  createdAt: string;
2414
2404
  updatedAt: string;
2415
2405
  metadata: MessageMetadata | null;
2416
- role: string;
2417
- projectId: string;
2418
- tenantId: string;
2419
2406
  content: MessageContent;
2407
+ role: string;
2420
2408
  conversationId: string;
2421
2409
  fromSubAgentId: string | null;
2422
2410
  toSubAgentId: string | null;
@@ -2462,14 +2450,14 @@ declare const deleteMessage: (db: DatabaseClient) => (params: {
2462
2450
  scopes: ProjectScopeConfig;
2463
2451
  messageId: string;
2464
2452
  }) => Promise<{
2453
+ tenantId: string;
2454
+ projectId: string;
2465
2455
  id: string;
2466
2456
  createdAt: string;
2467
2457
  updatedAt: string;
2468
2458
  metadata: MessageMetadata | null;
2469
- role: string;
2470
- projectId: string;
2471
- tenantId: string;
2472
2459
  content: MessageContent;
2460
+ role: string;
2473
2461
  conversationId: string;
2474
2462
  fromSubAgentId: string | null;
2475
2463
  toSubAgentId: string | null;
@@ -2489,139 +2477,6 @@ declare const countMessagesByConversation: (db: DatabaseClient) => (params: {
2489
2477
  conversationId: string;
2490
2478
  }) => Promise<number>;
2491
2479
 
2492
- declare const UserSelectSchema: drizzle_zod.BuildSchema<"select", {
2493
- id: drizzle_orm_pg_core.PgColumn<{
2494
- name: "id";
2495
- tableName: "user";
2496
- dataType: "string";
2497
- columnType: "PgText";
2498
- data: string;
2499
- driverParam: string;
2500
- notNull: true;
2501
- hasDefault: false;
2502
- isPrimaryKey: true;
2503
- isAutoincrement: false;
2504
- hasRuntimeDefault: false;
2505
- enumValues: [string, ...string[]];
2506
- baseColumn: never;
2507
- identity: undefined;
2508
- generated: undefined;
2509
- }, {}, {}>;
2510
- name: drizzle_orm_pg_core.PgColumn<{
2511
- name: "name";
2512
- tableName: "user";
2513
- dataType: "string";
2514
- columnType: "PgText";
2515
- data: string;
2516
- driverParam: string;
2517
- notNull: true;
2518
- hasDefault: false;
2519
- isPrimaryKey: false;
2520
- isAutoincrement: false;
2521
- hasRuntimeDefault: false;
2522
- enumValues: [string, ...string[]];
2523
- baseColumn: never;
2524
- identity: undefined;
2525
- generated: undefined;
2526
- }, {}, {}>;
2527
- email: drizzle_orm_pg_core.PgColumn<{
2528
- name: "email";
2529
- tableName: "user";
2530
- dataType: "string";
2531
- columnType: "PgText";
2532
- data: string;
2533
- driverParam: string;
2534
- notNull: true;
2535
- hasDefault: false;
2536
- isPrimaryKey: false;
2537
- isAutoincrement: false;
2538
- hasRuntimeDefault: false;
2539
- enumValues: [string, ...string[]];
2540
- baseColumn: never;
2541
- identity: undefined;
2542
- generated: undefined;
2543
- }, {}, {}>;
2544
- emailVerified: drizzle_orm_pg_core.PgColumn<{
2545
- name: "email_verified";
2546
- tableName: "user";
2547
- dataType: "boolean";
2548
- columnType: "PgBoolean";
2549
- data: boolean;
2550
- driverParam: boolean;
2551
- notNull: true;
2552
- hasDefault: true;
2553
- isPrimaryKey: false;
2554
- isAutoincrement: false;
2555
- hasRuntimeDefault: false;
2556
- enumValues: undefined;
2557
- baseColumn: never;
2558
- identity: undefined;
2559
- generated: undefined;
2560
- }, {}, {}>;
2561
- image: drizzle_orm_pg_core.PgColumn<{
2562
- name: "image";
2563
- tableName: "user";
2564
- dataType: "string";
2565
- columnType: "PgText";
2566
- data: string;
2567
- driverParam: string;
2568
- notNull: false;
2569
- hasDefault: false;
2570
- isPrimaryKey: false;
2571
- isAutoincrement: false;
2572
- hasRuntimeDefault: false;
2573
- enumValues: [string, ...string[]];
2574
- baseColumn: never;
2575
- identity: undefined;
2576
- generated: undefined;
2577
- }, {}, {}>;
2578
- createdAt: drizzle_orm_pg_core.PgColumn<{
2579
- name: "created_at";
2580
- tableName: "user";
2581
- dataType: "date";
2582
- columnType: "PgTimestamp";
2583
- data: Date;
2584
- driverParam: string;
2585
- notNull: true;
2586
- hasDefault: true;
2587
- isPrimaryKey: false;
2588
- isAutoincrement: false;
2589
- hasRuntimeDefault: false;
2590
- enumValues: undefined;
2591
- baseColumn: never;
2592
- identity: undefined;
2593
- generated: undefined;
2594
- }, {}, {}>;
2595
- updatedAt: drizzle_orm_pg_core.PgColumn<{
2596
- name: "updated_at";
2597
- tableName: "user";
2598
- dataType: "date";
2599
- columnType: "PgTimestamp";
2600
- data: Date;
2601
- driverParam: string;
2602
- notNull: true;
2603
- hasDefault: true;
2604
- isPrimaryKey: false;
2605
- isAutoincrement: false;
2606
- hasRuntimeDefault: false;
2607
- enumValues: undefined;
2608
- baseColumn: never;
2609
- identity: undefined;
2610
- generated: undefined;
2611
- }, {}, {}>;
2612
- }, undefined, undefined>;
2613
- declare const UserOrganizationSchema: z.ZodObject<{
2614
- id: z.ZodString;
2615
- userId: z.ZodString;
2616
- organizationId: z.ZodString;
2617
- role: z.ZodString;
2618
- createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodDate]>, z.ZodTransform<string, string | Date>>;
2619
- organizationName: z.ZodNullable<z.ZodString>;
2620
- organizationSlug: z.ZodNullable<z.ZodString>;
2621
- }, z.core.$strip>;
2622
- type User = z.infer<typeof UserSelectSchema>;
2623
- type UserOrganization = z.infer<typeof UserOrganizationSchema>;
2624
-
2625
2480
  /**
2626
2481
  * Organization and Member data access layer
2627
2482
  * All database queries for Better Auth's organization/member tables
@@ -2757,15 +2612,15 @@ declare const getSubAgentExternalAgentRelationById: (db: DatabaseClient) => (par
2757
2612
  scopes: SubAgentScopeConfig;
2758
2613
  relationId: string;
2759
2614
  }) => Promise<{
2615
+ tenantId: string;
2616
+ projectId: string;
2760
2617
  id: string;
2618
+ agentId: string;
2761
2619
  createdAt: string;
2762
2620
  updatedAt: string;
2763
2621
  headers: Record<string, string> | null;
2764
- projectId: string;
2765
- tenantId: string;
2766
- agentId: string;
2767
- subAgentId: string;
2768
2622
  externalAgentId: string;
2623
+ subAgentId: string;
2769
2624
  } | undefined>;
2770
2625
  declare const listSubAgentExternalAgentRelations: (db: DatabaseClient) => (params: {
2771
2626
  scopes: SubAgentScopeConfig;
@@ -2792,28 +2647,28 @@ declare const listSubAgentExternalAgentRelations: (db: DatabaseClient) => (param
2792
2647
  declare const getSubAgentExternalAgentRelations: (db: DatabaseClient) => (params: {
2793
2648
  scopes: SubAgentScopeConfig;
2794
2649
  }) => Promise<{
2650
+ tenantId: string;
2651
+ projectId: string;
2795
2652
  id: string;
2653
+ agentId: string;
2796
2654
  createdAt: string;
2797
2655
  updatedAt: string;
2798
2656
  headers: Record<string, string> | null;
2799
- projectId: string;
2800
- tenantId: string;
2801
- agentId: string;
2802
- subAgentId: string;
2803
2657
  externalAgentId: string;
2658
+ subAgentId: string;
2804
2659
  }[]>;
2805
2660
  declare const getSubAgentExternalAgentRelationsByAgent: (db: DatabaseClient) => (params: {
2806
2661
  scopes: AgentScopeConfig;
2807
2662
  }) => Promise<{
2663
+ tenantId: string;
2664
+ projectId: string;
2808
2665
  id: string;
2666
+ agentId: string;
2809
2667
  createdAt: string;
2810
2668
  updatedAt: string;
2811
2669
  headers: Record<string, string> | null;
2812
- projectId: string;
2813
- tenantId: string;
2814
- agentId: string;
2815
- subAgentId: string;
2816
2670
  externalAgentId: string;
2671
+ subAgentId: string;
2817
2672
  }[]>;
2818
2673
  declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: DatabaseClient) => (params: {
2819
2674
  scopes: AgentScopeConfig;
@@ -2928,15 +2783,15 @@ declare const createSubAgentExternalAgentRelation: (db: DatabaseClient) => (para
2928
2783
  headers?: Record<string, string> | null;
2929
2784
  };
2930
2785
  }) => Promise<{
2786
+ tenantId: string;
2787
+ projectId: string;
2931
2788
  id: string;
2789
+ agentId: string;
2932
2790
  createdAt: string;
2933
2791
  updatedAt: string;
2934
2792
  headers: Record<string, string> | null;
2935
- projectId: string;
2936
- tenantId: string;
2937
- agentId: string;
2938
- subAgentId: string;
2939
2793
  externalAgentId: string;
2794
+ subAgentId: string;
2940
2795
  }>;
2941
2796
  /**
2942
2797
  * Check if sub-agent external agent relation exists by params
@@ -2945,15 +2800,15 @@ declare const getSubAgentExternalAgentRelationByParams: (db: DatabaseClient) =>
2945
2800
  scopes: SubAgentScopeConfig;
2946
2801
  externalAgentId: string;
2947
2802
  }) => Promise<{
2803
+ tenantId: string;
2804
+ projectId: string;
2948
2805
  id: string;
2806
+ agentId: string;
2949
2807
  createdAt: string;
2950
2808
  updatedAt: string;
2951
2809
  headers: Record<string, string> | null;
2952
- projectId: string;
2953
- tenantId: string;
2954
- agentId: string;
2955
- subAgentId: string;
2956
2810
  externalAgentId: string;
2811
+ subAgentId: string;
2957
2812
  } | undefined>;
2958
2813
  /**
2959
2814
  * Upsert sub-agent external agent relation (create if it doesn't exist, update if it does)
@@ -2966,15 +2821,15 @@ declare const upsertSubAgentExternalAgentRelation: (db: DatabaseClient) => (para
2966
2821
  headers?: Record<string, string> | null;
2967
2822
  };
2968
2823
  }) => Promise<{
2824
+ tenantId: string;
2825
+ projectId: string;
2969
2826
  id: string;
2827
+ agentId: string;
2970
2828
  createdAt: string;
2971
2829
  updatedAt: string;
2972
2830
  headers: Record<string, string> | null;
2973
- projectId: string;
2974
- tenantId: string;
2975
- agentId: string;
2976
- subAgentId: string;
2977
2831
  externalAgentId: string;
2832
+ subAgentId: string;
2978
2833
  }>;
2979
2834
  declare const updateSubAgentExternalAgentRelation: (db: DatabaseClient) => (params: {
2980
2835
  scopes: SubAgentScopeConfig;
@@ -3006,12 +2861,12 @@ declare const getAgentRelationById: (db: DatabaseClient) => (params: {
3006
2861
  scopes: AgentScopeConfig;
3007
2862
  relationId: string;
3008
2863
  }) => Promise<{
2864
+ tenantId: string;
2865
+ projectId: string;
3009
2866
  id: string;
2867
+ agentId: string;
3010
2868
  createdAt: string;
3011
2869
  updatedAt: string;
3012
- projectId: string;
3013
- tenantId: string;
3014
- agentId: string;
3015
2870
  sourceSubAgentId: string;
3016
2871
  targetSubAgentId: string | null;
3017
2872
  relationType: string | null;
@@ -3041,12 +2896,12 @@ declare const listAgentRelations: (db: DatabaseClient) => (params: {
3041
2896
  declare const getAgentRelations: (db: DatabaseClient) => (params: {
3042
2897
  scopes: SubAgentScopeConfig;
3043
2898
  }) => Promise<{
2899
+ tenantId: string;
2900
+ projectId: string;
3044
2901
  id: string;
2902
+ agentId: string;
3045
2903
  createdAt: string;
3046
2904
  updatedAt: string;
3047
- projectId: string;
3048
- tenantId: string;
3049
- agentId: string;
3050
2905
  sourceSubAgentId: string;
3051
2906
  targetSubAgentId: string | null;
3052
2907
  relationType: string | null;
@@ -3054,12 +2909,12 @@ declare const getAgentRelations: (db: DatabaseClient) => (params: {
3054
2909
  declare const getAgentRelationsByAgent: (db: DatabaseClient) => (params: {
3055
2910
  scopes: AgentScopeConfig;
3056
2911
  }) => Promise<{
2912
+ tenantId: string;
2913
+ projectId: string;
3057
2914
  id: string;
2915
+ agentId: string;
3058
2916
  createdAt: string;
3059
2917
  updatedAt: string;
3060
- projectId: string;
3061
- tenantId: string;
3062
- agentId: string;
3063
2918
  sourceSubAgentId: string;
3064
2919
  targetSubAgentId: string | null;
3065
2920
  relationType: string | null;
@@ -3122,12 +2977,12 @@ declare const getRelatedAgentsForAgent: (db: DatabaseClient) => (params: {
3122
2977
  }[];
3123
2978
  }>;
3124
2979
  declare const createSubAgentRelation: (db: DatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
2980
+ tenantId: string;
2981
+ projectId: string;
3125
2982
  id: string;
2983
+ agentId: string;
3126
2984
  createdAt: string;
3127
2985
  updatedAt: string;
3128
- projectId: string;
3129
- tenantId: string;
3130
- agentId: string;
3131
2986
  sourceSubAgentId: string;
3132
2987
  targetSubAgentId: string | null;
3133
2988
  relationType: string | null;
@@ -3141,12 +2996,12 @@ declare const getAgentRelationByParams: (db: DatabaseClient) => (params: {
3141
2996
  targetSubAgentId?: string;
3142
2997
  relationType: string;
3143
2998
  }) => Promise<{
2999
+ tenantId: string;
3000
+ projectId: string;
3144
3001
  id: string;
3002
+ agentId: string;
3145
3003
  createdAt: string;
3146
3004
  updatedAt: string;
3147
- projectId: string;
3148
- tenantId: string;
3149
- agentId: string;
3150
3005
  sourceSubAgentId: string;
3151
3006
  targetSubAgentId: string | null;
3152
3007
  relationType: string | null;
@@ -3155,12 +3010,12 @@ declare const getAgentRelationByParams: (db: DatabaseClient) => (params: {
3155
3010
  * Upsert agent relation (create if it doesn't exist, no-op if it does)
3156
3011
  */
3157
3012
  declare const upsertSubAgentRelation: (db: DatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
3013
+ tenantId: string;
3014
+ projectId: string;
3158
3015
  id: string;
3016
+ agentId: string;
3159
3017
  createdAt: string;
3160
3018
  updatedAt: string;
3161
- projectId: string;
3162
- tenantId: string;
3163
- agentId: string;
3164
3019
  sourceSubAgentId: string;
3165
3020
  targetSubAgentId: string | null;
3166
3021
  relationType: string | null;
@@ -3197,16 +3052,16 @@ declare const createAgentToolRelation: (db: DatabaseClient) => (params: {
3197
3052
  headers?: Record<string, string> | null;
3198
3053
  };
3199
3054
  }) => Promise<{
3055
+ tenantId: string;
3056
+ projectId: string;
3200
3057
  id: string;
3058
+ agentId: string;
3201
3059
  createdAt: string;
3202
3060
  updatedAt: string;
3203
3061
  headers: Record<string, string> | null;
3204
- projectId: string;
3205
- tenantId: string;
3206
- agentId: string;
3062
+ toolId: string;
3207
3063
  selectedTools: string[] | null;
3208
3064
  subAgentId: string;
3209
- toolId: string;
3210
3065
  }>;
3211
3066
  declare const updateAgentToolRelation: (db: DatabaseClient) => (params: {
3212
3067
  scopes: AgentScopeConfig;
@@ -3235,16 +3090,16 @@ declare const getAgentToolRelationById: (db: DatabaseClient) => (params: {
3235
3090
  scopes: SubAgentScopeConfig;
3236
3091
  relationId: string;
3237
3092
  }) => Promise<{
3093
+ tenantId: string;
3094
+ projectId: string;
3238
3095
  id: string;
3096
+ agentId: string;
3239
3097
  createdAt: string;
3240
3098
  updatedAt: string;
3241
3099
  headers: Record<string, string> | null;
3242
- projectId: string;
3243
- tenantId: string;
3244
- agentId: string;
3100
+ toolId: string;
3245
3101
  selectedTools: string[] | null;
3246
3102
  subAgentId: string;
3247
- toolId: string;
3248
3103
  } | undefined>;
3249
3104
  declare const getAgentToolRelationByAgent: (db: DatabaseClient) => (params: {
3250
3105
  scopes: SubAgentScopeConfig;
@@ -3411,13 +3266,15 @@ declare const getSubAgentById: (db: DatabaseClient) => (params: {
3411
3266
  scopes: AgentScopeConfig;
3412
3267
  subAgentId: string;
3413
3268
  }) => Promise<{
3414
- name: string;
3269
+ tenantId: string;
3270
+ projectId: string;
3415
3271
  id: string;
3272
+ name: string;
3273
+ description: string;
3274
+ prompt: string;
3275
+ agentId: string;
3416
3276
  createdAt: string;
3417
3277
  updatedAt: string;
3418
- description: string;
3419
- projectId: string;
3420
- tenantId: string;
3421
3278
  models: {
3422
3279
  base?: {
3423
3280
  model?: string | undefined;
@@ -3435,20 +3292,20 @@ declare const getSubAgentById: (db: DatabaseClient) => (params: {
3435
3292
  stopWhen: {
3436
3293
  stepCountIs?: number | undefined;
3437
3294
  } | null;
3438
- agentId: string;
3439
- prompt: string;
3440
3295
  conversationHistoryConfig: ConversationHistoryConfig | null;
3441
3296
  } | undefined>;
3442
3297
  declare const listSubAgents: (db: DatabaseClient) => (params: {
3443
3298
  scopes: AgentScopeConfig;
3444
3299
  }) => Promise<{
3445
- name: string;
3300
+ tenantId: string;
3301
+ projectId: string;
3446
3302
  id: string;
3303
+ name: string;
3304
+ description: string;
3305
+ prompt: string;
3306
+ agentId: string;
3447
3307
  createdAt: string;
3448
3308
  updatedAt: string;
3449
- description: string;
3450
- projectId: string;
3451
- tenantId: string;
3452
3309
  models: {
3453
3310
  base?: {
3454
3311
  model?: string | undefined;
@@ -3466,8 +3323,6 @@ declare const listSubAgents: (db: DatabaseClient) => (params: {
3466
3323
  stopWhen: {
3467
3324
  stepCountIs?: number | undefined;
3468
3325
  } | null;
3469
- agentId: string;
3470
- prompt: string;
3471
3326
  conversationHistoryConfig: ConversationHistoryConfig | null;
3472
3327
  }[]>;
3473
3328
  declare const listSubAgentsPaginated: (db: DatabaseClient) => (params: {
@@ -3511,13 +3366,15 @@ declare const listSubAgentsPaginated: (db: DatabaseClient) => (params: {
3511
3366
  };
3512
3367
  }>;
3513
3368
  declare const createSubAgent: (db: DatabaseClient) => (params: SubAgentInsert) => Promise<{
3514
- name: string;
3369
+ tenantId: string;
3370
+ projectId: string;
3515
3371
  id: string;
3372
+ name: string;
3373
+ description: string;
3374
+ prompt: string;
3375
+ agentId: string;
3516
3376
  createdAt: string;
3517
3377
  updatedAt: string;
3518
- description: string;
3519
- projectId: string;
3520
- tenantId: string;
3521
3378
  models: {
3522
3379
  base?: {
3523
3380
  model?: string | undefined;
@@ -3535,8 +3392,6 @@ declare const createSubAgent: (db: DatabaseClient) => (params: SubAgentInsert) =
3535
3392
  stopWhen: {
3536
3393
  stepCountIs?: number | undefined;
3537
3394
  } | null;
3538
- agentId: string;
3539
- prompt: string;
3540
3395
  conversationHistoryConfig: ConversationHistoryConfig | null;
3541
3396
  }>;
3542
3397
  declare const updateSubAgent: (db: DatabaseClient) => (params: {
@@ -3619,13 +3474,13 @@ declare const getSubAgentTeamAgentRelationById: (db: DatabaseClient) => (params:
3619
3474
  scopes: SubAgentScopeConfig;
3620
3475
  relationId: string;
3621
3476
  }) => Promise<{
3477
+ tenantId: string;
3478
+ projectId: string;
3622
3479
  id: string;
3480
+ agentId: string;
3623
3481
  createdAt: string;
3624
3482
  updatedAt: string;
3625
3483
  headers: Record<string, string> | null;
3626
- projectId: string;
3627
- tenantId: string;
3628
- agentId: string;
3629
3484
  subAgentId: string;
3630
3485
  targetAgentId: string;
3631
3486
  } | undefined>;
@@ -3654,26 +3509,26 @@ declare const listSubAgentTeamAgentRelations: (db: DatabaseClient) => (params: {
3654
3509
  declare const getSubAgentTeamAgentRelations: (db: DatabaseClient) => (params: {
3655
3510
  scopes: SubAgentScopeConfig;
3656
3511
  }) => Promise<{
3512
+ tenantId: string;
3513
+ projectId: string;
3657
3514
  id: string;
3515
+ agentId: string;
3658
3516
  createdAt: string;
3659
3517
  updatedAt: string;
3660
3518
  headers: Record<string, string> | null;
3661
- projectId: string;
3662
- tenantId: string;
3663
- agentId: string;
3664
3519
  subAgentId: string;
3665
3520
  targetAgentId: string;
3666
3521
  }[]>;
3667
3522
  declare const getSubAgentTeamAgentRelationsByAgent: (db: DatabaseClient) => (params: {
3668
3523
  scopes: AgentScopeConfig;
3669
3524
  }) => Promise<{
3525
+ tenantId: string;
3526
+ projectId: string;
3670
3527
  id: string;
3528
+ agentId: string;
3671
3529
  createdAt: string;
3672
3530
  updatedAt: string;
3673
3531
  headers: Record<string, string> | null;
3674
- projectId: string;
3675
- tenantId: string;
3676
- agentId: string;
3677
3532
  subAgentId: string;
3678
3533
  targetAgentId: string;
3679
3534
  }[]>;
@@ -3820,13 +3675,13 @@ declare const createSubAgentTeamAgentRelation: (db: DatabaseClient) => (params:
3820
3675
  headers?: Record<string, string> | null;
3821
3676
  };
3822
3677
  }) => Promise<{
3678
+ tenantId: string;
3679
+ projectId: string;
3823
3680
  id: string;
3681
+ agentId: string;
3824
3682
  createdAt: string;
3825
3683
  updatedAt: string;
3826
3684
  headers: Record<string, string> | null;
3827
- projectId: string;
3828
- tenantId: string;
3829
- agentId: string;
3830
3685
  subAgentId: string;
3831
3686
  targetAgentId: string;
3832
3687
  }>;
@@ -3837,13 +3692,13 @@ declare const getSubAgentTeamAgentRelationByParams: (db: DatabaseClient) => (par
3837
3692
  scopes: SubAgentScopeConfig;
3838
3693
  targetAgentId: string;
3839
3694
  }) => Promise<{
3695
+ tenantId: string;
3696
+ projectId: string;
3840
3697
  id: string;
3698
+ agentId: string;
3841
3699
  createdAt: string;
3842
3700
  updatedAt: string;
3843
3701
  headers: Record<string, string> | null;
3844
- projectId: string;
3845
- tenantId: string;
3846
- agentId: string;
3847
3702
  subAgentId: string;
3848
3703
  targetAgentId: string;
3849
3704
  } | undefined>;
@@ -3858,13 +3713,13 @@ declare const upsertSubAgentTeamAgentRelation: (db: DatabaseClient) => (params:
3858
3713
  headers?: Record<string, string> | null;
3859
3714
  };
3860
3715
  }) => Promise<{
3716
+ tenantId: string;
3717
+ projectId: string;
3861
3718
  id: string;
3719
+ agentId: string;
3862
3720
  createdAt: string;
3863
3721
  updatedAt: string;
3864
3722
  headers: Record<string, string> | null;
3865
- projectId: string;
3866
- tenantId: string;
3867
- agentId: string;
3868
3723
  subAgentId: string;
3869
3724
  targetAgentId: string;
3870
3725
  }>;
@@ -3895,14 +3750,14 @@ declare const deleteSubAgentTeamAgentRelationsByAgent: (db: DatabaseClient) => (
3895
3750
  }) => Promise<boolean>;
3896
3751
 
3897
3752
  declare const createTask: (db: DatabaseClient) => (params: TaskInsert) => Promise<{
3753
+ tenantId: string;
3754
+ projectId: string;
3898
3755
  id: string;
3756
+ agentId: string;
3899
3757
  createdAt: string;
3900
3758
  updatedAt: string;
3901
3759
  metadata: TaskMetadataConfig | null;
3902
3760
  status: string;
3903
- projectId: string;
3904
- tenantId: string;
3905
- agentId: string;
3906
3761
  contextId: string;
3907
3762
  subAgentId: string;
3908
3763
  }>;
@@ -3936,20 +3791,20 @@ declare const getToolById: (db: DatabaseClient) => (params: {
3936
3791
  scopes: ProjectScopeConfig;
3937
3792
  toolId: string;
3938
3793
  }) => Promise<{
3939
- name: string;
3794
+ tenantId: string;
3795
+ projectId: string;
3940
3796
  id: string;
3941
- createdAt: string;
3942
- updatedAt: string;
3943
- headers: Record<string, string> | null;
3797
+ name: string;
3798
+ description: string | null;
3944
3799
  config: {
3945
3800
  type: "mcp";
3946
3801
  mcp: ToolMcpConfig;
3947
3802
  };
3948
- description: string | null;
3949
- projectId: string;
3950
- tenantId: string;
3951
- capabilities: ToolServerCapabilities | null;
3952
3803
  credentialReferenceId: string | null;
3804
+ createdAt: string;
3805
+ updatedAt: string;
3806
+ headers: Record<string, string> | null;
3807
+ capabilities: ToolServerCapabilities | null;
3953
3808
  imageUrl: string | null;
3954
3809
  lastError: string | null;
3955
3810
  } | null>;
@@ -3983,20 +3838,20 @@ declare const listTools: (db: DatabaseClient) => (params: {
3983
3838
  };
3984
3839
  }>;
3985
3840
  declare const createTool: (db: DatabaseClient) => (params: ToolInsert) => Promise<{
3986
- name: string;
3841
+ tenantId: string;
3842
+ projectId: string;
3987
3843
  id: string;
3988
- createdAt: string;
3989
- updatedAt: string;
3990
- headers: Record<string, string> | null;
3844
+ name: string;
3845
+ description: string | null;
3991
3846
  config: {
3992
3847
  type: "mcp";
3993
3848
  mcp: ToolMcpConfig;
3994
3849
  };
3995
- description: string | null;
3996
- projectId: string;
3997
- tenantId: string;
3998
- capabilities: ToolServerCapabilities | null;
3999
3850
  credentialReferenceId: string | null;
3851
+ createdAt: string;
3852
+ updatedAt: string;
3853
+ headers: Record<string, string> | null;
3854
+ capabilities: ToolServerCapabilities | null;
4000
3855
  imageUrl: string | null;
4001
3856
  lastError: string | null;
4002
3857
  }>;
@@ -4033,32 +3888,32 @@ declare const addToolToAgent: (db: DatabaseClient) => (params: {
4033
3888
  selectedTools?: string[] | null;
4034
3889
  headers?: Record<string, string> | null;
4035
3890
  }) => Promise<{
3891
+ tenantId: string;
3892
+ projectId: string;
4036
3893
  id: string;
3894
+ agentId: string;
4037
3895
  createdAt: string;
4038
3896
  updatedAt: string;
4039
3897
  headers: Record<string, string> | null;
4040
- projectId: string;
4041
- tenantId: string;
4042
- agentId: string;
3898
+ toolId: string;
4043
3899
  selectedTools: string[] | null;
4044
3900
  subAgentId: string;
4045
- toolId: string;
4046
3901
  }>;
4047
3902
  declare const removeToolFromAgent: (db: DatabaseClient) => (params: {
4048
3903
  scopes: AgentScopeConfig;
4049
3904
  subAgentId: string;
4050
3905
  toolId: string;
4051
3906
  }) => Promise<{
3907
+ tenantId: string;
3908
+ projectId: string;
4052
3909
  id: string;
3910
+ agentId: string;
4053
3911
  createdAt: string;
4054
3912
  updatedAt: string;
4055
3913
  headers: Record<string, string> | null;
4056
- projectId: string;
4057
- tenantId: string;
4058
- agentId: string;
3914
+ toolId: string;
4059
3915
  selectedTools: string[] | null;
4060
3916
  subAgentId: string;
4061
- toolId: string;
4062
3917
  }>;
4063
3918
  /**
4064
3919
  * Upsert agent-tool relation (create if it doesn't exist, update if it does)
@@ -4071,16 +3926,16 @@ declare const upsertSubAgentToolRelation: (db: DatabaseClient) => (params: {
4071
3926
  headers?: Record<string, string> | null;
4072
3927
  relationId?: string;
4073
3928
  }) => Promise<{
3929
+ tenantId: string;
3930
+ projectId: string;
4074
3931
  id: string;
3932
+ agentId: string;
4075
3933
  createdAt: string;
4076
3934
  updatedAt: string;
4077
3935
  headers: Record<string, string> | null;
4078
- projectId: string;
4079
- tenantId: string;
4080
- agentId: string;
3936
+ toolId: string;
4081
3937
  selectedTools: string[] | null;
4082
3938
  subAgentId: string;
4083
- toolId: string;
4084
3939
  }>;
4085
3940
  /**
4086
3941
  * Upsert a tool (create if it doesn't exist, update if it does)
@@ -4088,20 +3943,20 @@ declare const upsertSubAgentToolRelation: (db: DatabaseClient) => (params: {
4088
3943
  declare const upsertTool: (db: DatabaseClient) => (params: {
4089
3944
  data: ToolInsert;
4090
3945
  }) => Promise<{
4091
- name: string;
3946
+ tenantId: string;
3947
+ projectId: string;
4092
3948
  id: string;
4093
- createdAt: string;
4094
- updatedAt: string;
4095
- headers: Record<string, string> | null;
3949
+ name: string;
3950
+ description: string | null;
4096
3951
  config: {
4097
3952
  type: "mcp";
4098
3953
  mcp: ToolMcpConfig;
4099
3954
  };
4100
- description: string | null;
4101
- projectId: string;
4102
- tenantId: string;
4103
- capabilities: ToolServerCapabilities | null;
4104
3955
  credentialReferenceId: string | null;
3956
+ createdAt: string;
3957
+ updatedAt: string;
3958
+ headers: Record<string, string> | null;
3959
+ capabilities: ToolServerCapabilities | null;
4105
3960
  imageUrl: string | null;
4106
3961
  lastError: string | null;
4107
3962
  }>;
@@ -4890,4 +4745,4 @@ declare function setSpanWithError(span: Span, error: Error, logger?: {
4890
4745
  */
4891
4746
  declare function getTracer(serviceName: string, serviceVersion?: string): Tracer;
4892
4747
 
4893
- 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, addUserToOrganization, agentHasArtifactComponents, apiFetch, associateArtifactComponentWithAgent, associateDataComponentWithAgent, cleanupTenantCache, cleanupTestDatabase, clearContextConfigCache, clearConversationCache, closeTestDatabase, 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, createTestDatabaseClient, createTestOrganization, createTestProject, 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, getPendingInvitationsByEmail, getProject, getProjectResourceCounts, getRelatedAgentsForAgent, getRequestExecutionContext, getSubAgentById, getSubAgentExternalAgentRelationById, getSubAgentExternalAgentRelationByParams, getSubAgentExternalAgentRelations, getSubAgentExternalAgentRelationsByAgent, getSubAgentExternalAgentRelationsByExternalAgent, getSubAgentRelationsByTarget, getSubAgentTeamAgentRelationById, getSubAgentTeamAgentRelationByParams, getSubAgentTeamAgentRelations, getSubAgentTeamAgentRelationsByAgent, getSubAgentTeamAgentRelationsByTeamAgent, getSubAgentsByIds, getSubAgentsForExternalAgent, getSubAgentsForTeamAgent, getTask, getTeamAgentsForSubAgent, getToolById, getToolsForAgent, getTracer, getUserByEmail, getUserById, getUserOrganizations, 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 };
4748
+ 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, DatabaseClient, 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, addUserToOrganization, agentHasArtifactComponents, apiFetch, associateArtifactComponentWithAgent, associateDataComponentWithAgent, cleanupTenantCache, cleanupTestDatabase, clearContextConfigCache, clearConversationCache, closeTestDatabase, 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, createDefaultCredentialStores, createExecutionContext, createExternalAgent, createFullAgentServerSide, createFullProjectServerSide, createFunctionTool, createKeyChainStore, createMessage, createNangoCredentialStore, createOrGetConversation, createProject, createSubAgent, createSubAgentExternalAgentRelation, createSubAgentRelation, createSubAgentTeamAgentRelation, createTask, createTestDatabaseClient, createTestOrganization, createTestProject, 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, getPendingInvitationsByEmail, getProject, getProjectResourceCounts, getRelatedAgentsForAgent, getRequestExecutionContext, getSubAgentById, getSubAgentExternalAgentRelationById, getSubAgentExternalAgentRelationByParams, getSubAgentExternalAgentRelations, getSubAgentExternalAgentRelationsByAgent, getSubAgentExternalAgentRelationsByExternalAgent, getSubAgentRelationsByTarget, getSubAgentTeamAgentRelationById, getSubAgentTeamAgentRelationByParams, getSubAgentTeamAgentRelations, getSubAgentTeamAgentRelationsByAgent, getSubAgentTeamAgentRelationsByTeamAgent, getSubAgentsByIds, getSubAgentsForExternalAgent, getSubAgentsForTeamAgent, getTask, getTeamAgentsForSubAgent, getToolById, getToolsForAgent, getTracer, getUserByEmail, getUserById, getUserOrganizations, 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 };