@inkeep/agents-core 0.26.1 → 0.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -2,13 +2,13 @@ export { ANTHROPIC_MODELS, AnthropicModel, GOOGLE_MODELS, GoogleModel, ModelName
2
2
  import { r as PinoLogger, s as getLogger } from './auth-detection-DN8jWUDE.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-DN8jWUDE.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 AgentScopeConfig, C as ConversationHistoryConfig, v as ProjectScopeConfig, w as PaginationConfig, x as AgentInsert, y as AgentUpdate, z as FullAgentDefinition, 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 TaskInsert, T as TaskMetadataConfig, at as TaskSelect, au as McpTool, av as ToolInsert, aw as ToolUpdate, h as CredentialStoreType, ax as ExecutionContext } from './utility-CWjvUL4k.js';
6
- export { b9 as A2AError, bF as A2ARequest, bG as A2AResponse, aK as APIKeySecurityScheme, bU as AgentApiInsert, e0 as AgentApiInsertSchema, bT as AgentApiSelect, d$ as AgentApiSelectSchema, bV as AgentApiUpdate, e1 as AgentApiUpdateSchema, aG as AgentCapabilities, aU as AgentCard, dr as AgentConversationHistoryConfig, dZ as AgentInsertSchema, gu as AgentListResponse, aH as AgentProvider, ge as AgentResponse, dY as AgentSelectSchema, aI as AgentSkill, e as AgentStopWhen, b as AgentStopWhenSchema, d_ as AgentUpdateSchema, f_ as AgentWithinContextOfProjectSchema, f4 as AllAgentSchema, cO as AllAgentSelect, cS as ApiKeyApiCreationResponse, f9 as ApiKeyApiCreationResponseSchema, cQ as ApiKeyApiInsert, fa as ApiKeyApiInsertSchema, cP as ApiKeyApiSelect, f8 as ApiKeyApiSelectSchema, cR as ApiKeyApiUpdate, A as ApiKeyApiUpdateSchema, f6 as ApiKeyInsertSchema, gy as ApiKeyListResponse, gi as ApiKeyResponse, f5 as ApiKeySelectSchema, f7 as ApiKeyUpdateSchema, cD as ArtifactComponentApiInsert, eS as ArtifactComponentApiInsertSchema, cC as ArtifactComponentApiSelect, eR as ArtifactComponentApiSelectSchema, cE as ArtifactComponentApiUpdate, eT as ArtifactComponentApiUpdateSchema, eP as ArtifactComponentInsertSchema, gD as ArtifactComponentListResponse, gn as ArtifactComponentResponse, eO as ArtifactComponentSelectSchema, eQ as ArtifactComponentUpdateSchema, aN as AuthorizationCodeOAuthFlow, da as CanDelegateToExternalAgent, d9 as CanUseItem, fY as CanUseItemSchema, bp as CancelTaskRequest, bA as CancelTaskResponse, bz as CancelTaskSuccessResponse, aO as ClientCredentialsOAuthFlow, b7 as ContentTypeNotSupportedError, cr as ContextCacheApiInsert, ez as ContextCacheApiInsertSchema, cq as ContextCacheApiSelect, ey as ContextCacheApiSelectSchema, cs as ContextCacheApiUpdate, eA as ContextCacheApiUpdateSchema, ds as ContextCacheEntry, ew as ContextCacheInsertSchema, ev as ContextCacheSelectSchema, cp as ContextCacheUpdate, ex as ContextCacheUpdateSchema, cl as ContextConfigApiInsert, fC as ContextConfigApiInsertSchema, ck as ContextConfigApiSelect, fB as ContextConfigApiSelectSchema, cm as ContextConfigApiUpdate, fD as ContextConfigApiUpdateSchema, fz as ContextConfigInsertSchema, gx as ContextConfigListResponse, gh as ContextConfigResponse, fy as ContextConfigSelectSchema, fA as ContextConfigUpdateSchema, ce as ConversationApiInsert, en as ConversationApiInsertSchema, cd as ConversationApiSelect, em as ConversationApiSelectSchema, cf as ConversationApiUpdate, eo as ConversationApiUpdateSchema, ek as ConversationInsertSchema, gG as ConversationListResponse, gq as ConversationResponse, dq as ConversationScopeOptions, ej as ConversationSelectSchema, el as ConversationUpdateSchema, ff as CredentialReferenceApiInsertSchema, cT as CredentialReferenceApiSelect, fe as CredentialReferenceApiSelectSchema, cU as CredentialReferenceApiUpdate, fg as CredentialReferenceApiUpdateSchema, fc as CredentialReferenceInsertSchema, gz as CredentialReferenceListResponse, gj as CredentialReferenceResponse, fb as CredentialReferenceSelectSchema, fd as CredentialReferenceUpdateSchema, cu as DataComponentApiInsert, eG as DataComponentApiInsertSchema, ct as DataComponentApiSelect, eF as DataComponentApiSelectSchema, cv as DataComponentApiUpdate, eH as DataComponentApiUpdateSchema, eD as DataComponentBaseSchema, eC as DataComponentInsertSchema, gC as DataComponentListResponse, gm as DataComponentResponse, eB as DataComponentSelectSchema, eE as DataComponentUpdateSchema, aE as DataPart, g2 as ErrorResponseSchema, g3 as ExistsResponseSchema, cM as ExternalAgentApiInsert, f2 as ExternalAgentApiInsertSchema, cL as ExternalAgentApiSelect, f1 as ExternalAgentApiSelectSchema, cN as ExternalAgentApiUpdate, f3 as ExternalAgentApiUpdateSchema, e$ as ExternalAgentInsertSchema, gw as ExternalAgentListResponse, gg as ExternalAgentResponse, e_ as ExternalAgentSelectSchema, f0 as ExternalAgentUpdateSchema, bS as ExternalSubAgentRelationApiInsert, dX as ExternalSubAgentRelationApiInsertSchema, bR as ExternalSubAgentRelationInsert, dW as ExternalSubAgentRelationInsertSchema, co as FetchConfig, fw as FetchConfigSchema, cn as FetchDefinition, fx as FetchDefinitionSchema, aA as FileBase, aD as FilePart, aB as FileWithBytes, aC as FileWithUri, d8 as FullAgentAgentInsert, a as FullAgentAgentInsertSchema, gb as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, ca as FunctionApiSelect, j as FunctionApiSelectSchema, cb as FunctionApiUpdate, k as FunctionApiUpdateSchema, c8 as FunctionInsert, fu as FunctionInsertSchema, gA as FunctionListResponse, gk as FunctionResponse, c7 as FunctionSelect, ft as FunctionSelectSchema, fr as FunctionToolApiInsertSchema, cc as FunctionToolApiSelect, fq as FunctionToolApiSelectSchema, fs as FunctionToolApiUpdateSchema, dI as FunctionToolConfig, dH as FunctionToolConfigSchema, fo as FunctionToolInsertSchema, gB as FunctionToolListResponse, gl as FunctionToolResponse, fn as FunctionToolSelectSchema, fp as FunctionToolUpdateSchema, c9 as FunctionUpdate, fv as FunctionUpdateSchema, br as GetTaskPushNotificationConfigRequest, bE as GetTaskPushNotificationConfigResponse, bD as GetTaskPushNotificationConfigSuccessResponse, bo as GetTaskRequest, by as GetTaskResponse, bx as GetTaskSuccessResponse, aL as HTTPAuthSecurityScheme, gM as HeadersScopeSchema, aP as ImplicitOAuthFlow, b2 as InternalError, b8 as InvalidAgentResponseError, b1 as InvalidParamsError, a$ as InvalidRequestError, a_ as JSONParseError, bj as JSONRPCError, bl as JSONRPCErrorResponse, bh as JSONRPCMessage, bi as JSONRPCRequest, bk as JSONRPCResult, d6 as LedgerArtifactApiInsert, fU as LedgerArtifactApiInsertSchema, d5 as LedgerArtifactApiSelect, fT as LedgerArtifactApiSelectSchema, d7 as LedgerArtifactApiUpdate, fV as LedgerArtifactApiUpdateSchema, d3 as LedgerArtifactInsert, fR as LedgerArtifactInsertSchema, fQ as LedgerArtifactSelectSchema, d4 as LedgerArtifactUpdate, fS as LedgerArtifactUpdateSchema, g0 as ListResponseSchema, dC as MAX_ID_LENGTH, dA as MCPServerType, fi as MCPToolConfigSchema, dB as MIN_ID_LENGTH, dt as McpAuthType, du as McpServerAuth, dw as McpServerCapabilities, dx as McpToolDefinition, eg as McpToolDefinitionSchema, fh as McpToolSchema, dv as McpTransportConfig, ee as McpTransportConfigSchema, aV as Message, ci as MessageApiInsert, et as MessageApiInsertSchema, ch as MessageApiSelect, es as MessageApiSelectSchema, cj as MessageApiUpdate, eu as MessageApiUpdateSchema, eq as MessageInsertSchema, gH as MessageListResponse, dk as MessageMode, bH as MessagePart, gr as MessageResponse, dj as MessageRole, cg as MessageSelect, ep as MessageSelectSchema, bf as MessageSendConfiguration, bg as MessageSendParams, di as MessageType, er as MessageUpdateSchema, b0 as MethodNotFoundError, dF as ModelSchema, g as ModelSettings, M as ModelSettingsSchema, dl as Models, aR as OAuth2SecurityScheme, aM as OAuthFlows, aS as OpenIdConnectSecurityScheme, dg as Pagination, gV as PaginationQueryParamsSchema, f$ as PaginationSchema, P as Part, ay as PartBase, aQ as PasswordOAuthFlow, de as ProjectApiInsert, g9 as ProjectApiInsertSchema, dd as ProjectApiSelect, g8 as ProjectApiSelectSchema, df as ProjectApiUpdate, ga as ProjectApiUpdateSchema, g6 as ProjectInsertSchema, gs as ProjectListResponse, dG as ProjectModelSchema, dm as ProjectModels, gc as ProjectResponse, g5 as ProjectSelectSchema, g7 as ProjectUpdateSchema, ba as PushNotificationAuthenticationInfo, bb as PushNotificationConfig, b5 as PushNotificationNotSupportedError, g4 as RemovedResponseSchema, aT as SecurityScheme, aJ as SecuritySchemeBase, bm as SendMessageRequest, bu as SendMessageResponse, bt as SendMessageSuccessResponse, bn as SendStreamingMessageRequest, bw as SendStreamingMessageResponse, bv as SendStreamingMessageSuccessResponse, bq as SetTaskPushNotificationConfigRequest, bC as SetTaskPushNotificationConfigResponse, bB as SetTaskPushNotificationConfigSuccessResponse, g1 as SingleResponseSchema, dp as StatusComponent, fW as StatusComponentSchema, fX as StatusUpdateSchema, dn as StatusUpdateSettings, d as StopWhen, S as StopWhenSchema, bK as SubAgentApiInsert, dN as SubAgentApiInsertSchema, bJ as SubAgentApiSelect, dM as SubAgentApiSelectSchema, bL as SubAgentApiUpdate, dO as SubAgentApiUpdateSchema, cJ as SubAgentArtifactComponentApiInsert, eY as SubAgentArtifactComponentApiInsertSchema, cI as SubAgentArtifactComponentApiSelect, eX as SubAgentArtifactComponentApiSelectSchema, cK as SubAgentArtifactComponentApiUpdate, eZ as SubAgentArtifactComponentApiUpdateSchema, cG as SubAgentArtifactComponentInsert, eV as SubAgentArtifactComponentInsertSchema, gL as SubAgentArtifactComponentListResponse, gJ as SubAgentArtifactComponentResponse, cF as SubAgentArtifactComponentSelect, eU as SubAgentArtifactComponentSelectSchema, cH as SubAgentArtifactComponentUpdate, eW as SubAgentArtifactComponentUpdateSchema, cA as SubAgentDataComponentApiInsert, eM as SubAgentDataComponentApiInsertSchema, cz as SubAgentDataComponentApiSelect, eL as SubAgentDataComponentApiSelectSchema, cB as SubAgentDataComponentApiUpdate, eN as SubAgentDataComponentApiUpdateSchema, cx as SubAgentDataComponentInsert, eJ as SubAgentDataComponentInsertSchema, gK as SubAgentDataComponentListResponse, gI as SubAgentDataComponentResponse, cw as SubAgentDataComponentSelect, eI as SubAgentDataComponentSelectSchema, cy as SubAgentDataComponentUpdate, eK as SubAgentDataComponentUpdateSchema, db as SubAgentDefinition, d1 as SubAgentExternalAgentRelationApiInsert, fO as SubAgentExternalAgentRelationApiInsertSchema, d0 as SubAgentExternalAgentRelationApiSelect, fN as SubAgentExternalAgentRelationApiSelectSchema, d2 as SubAgentExternalAgentRelationApiUpdate, fP as SubAgentExternalAgentRelationApiUpdateSchema, fL as SubAgentExternalAgentRelationInsertSchema, c_ as SubAgentExternalAgentRelationSelect, fK as SubAgentExternalAgentRelationSelectSchema, c$ as SubAgentExternalAgentRelationUpdate, fM as SubAgentExternalAgentRelationUpdateSchema, dK as SubAgentInsertSchema, gt as SubAgentListResponse, bO as SubAgentRelationApiInsert, dT as SubAgentRelationApiInsertSchema, bN as SubAgentRelationApiSelect, dS as SubAgentRelationApiSelectSchema, bP as SubAgentRelationApiUpdate, dU as SubAgentRelationApiUpdateSchema, dQ as SubAgentRelationInsertSchema, gE as SubAgentRelationListResponse, bQ as SubAgentRelationQuery, dV as SubAgentRelationQuerySchema, go as SubAgentRelationResponse, bM as SubAgentRelationSelect, dP as SubAgentRelationSelectSchema, dR as SubAgentRelationUpdateSchema, gd as SubAgentResponse, dJ as SubAgentSelectSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema, cY as SubAgentToolRelationApiInsert, fI as SubAgentToolRelationApiInsertSchema, cX as SubAgentToolRelationApiSelect, fH as SubAgentToolRelationApiSelectSchema, cZ as SubAgentToolRelationApiUpdate, fJ as SubAgentToolRelationApiUpdateSchema, cW as SubAgentToolRelationInsert, fF as SubAgentToolRelationInsertSchema, gF as SubAgentToolRelationListResponse, gp as SubAgentToolRelationResponse, cV as SubAgentToolRelationSelect, fE as SubAgentToolRelationSelectSchema, fG as SubAgentToolRelationUpdateSchema, dL as SubAgentUpdateSchema, dh as SummaryEvent, dy as TOOL_STATUS_VALUES, aX as Task, bY as TaskApiInsert, e6 as TaskApiInsertSchema, bX as TaskApiSelect, e5 as TaskApiSelectSchema, bZ as TaskApiUpdate, e7 as TaskApiUpdateSchema, bI as TaskArtifact, aZ as TaskArtifactUpdateEvent, bd as TaskIdParams, e3 as TaskInsertSchema, b4 as TaskNotCancelableError, b3 as TaskNotFoundError, bc as TaskPushNotificationConfig, be as TaskQueryParams, c2 as TaskRelationApiInsert, ec as TaskRelationApiInsertSchema, c1 as TaskRelationApiSelect, eb as TaskRelationApiSelectSchema, c3 as TaskRelationApiUpdate, ed as TaskRelationApiUpdateSchema, b$ as TaskRelationInsert, e9 as TaskRelationInsertSchema, b_ as TaskRelationSelect, e8 as TaskRelationSelectSchema, c0 as TaskRelationUpdate, ea as TaskRelationUpdateSchema, bs as TaskResubscriptionRequest, e2 as TaskSelectSchema, aF as TaskState, aW as TaskStatus, aY as TaskStatusUpdateEvent, bW as TaskUpdate, e4 as TaskUpdateSchema, gO as TenantIdParamsSchema, gN as TenantParamsSchema, gS as TenantProjectAgentIdParamsSchema, gR as TenantProjectAgentParamsSchema, gU as TenantProjectAgentSubAgentIdParamsSchema, gT as TenantProjectAgentSubAgentParamsSchema, gQ as TenantProjectIdParamsSchema, gP as TenantProjectParamsSchema, az as TextPart, c5 as ToolApiInsert, fl as ToolApiInsertSchema, c4 as ToolApiSelect, fk as ToolApiSelectSchema, c6 as ToolApiUpdate, fm as ToolApiUpdateSchema, dc as ToolDefinition, ei as ToolInsertSchema, gv as ToolListResponse, gf as ToolResponse, eh as ToolSelectSchema, ef as ToolStatusSchema, fj as ToolUpdateSchema, dD as URL_SAFE_ID_PATTERN, b6 as UnsupportedOperationError, dz as VALID_RELATION_TYPES, fZ as canDelegateToExternalAgentSchema, dE as resourceIdSchema } from './utility-CWjvUL4k.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-ne-rF1pW.js';
6
+ export { ba as A2AError, bG as A2ARequest, bH as A2AResponse, aL as APIKeySecurityScheme, bV as AgentApiInsert, e6 as AgentApiInsertSchema, bU as AgentApiSelect, e5 as AgentApiSelectSchema, bW as AgentApiUpdate, e7 as AgentApiUpdateSchema, aH as AgentCapabilities, aV as AgentCard, dx as AgentConversationHistoryConfig, e3 as AgentInsertSchema, gI as AgentListResponse, aI as AgentProvider, gs as AgentResponse, e2 as AgentSelectSchema, aJ as AgentSkill, e as AgentStopWhen, b as AgentStopWhenSchema, e4 as AgentUpdateSchema, gc as AgentWithinContextOfProjectSchema, fa as AllAgentSchema, cP as AllAgentSelect, cT as ApiKeyApiCreationResponse, ff as ApiKeyApiCreationResponseSchema, cR as ApiKeyApiInsert, fg as ApiKeyApiInsertSchema, cQ as ApiKeyApiSelect, fe as ApiKeyApiSelectSchema, cS as ApiKeyApiUpdate, A as ApiKeyApiUpdateSchema, fc as ApiKeyInsertSchema, gM as ApiKeyListResponse, gw as ApiKeyResponse, fb as ApiKeySelectSchema, fd as ApiKeyUpdateSchema, cE as ArtifactComponentApiInsert, eY as ArtifactComponentApiInsertSchema, cD as ArtifactComponentApiSelect, eX as ArtifactComponentApiSelectSchema, cF as ArtifactComponentApiUpdate, eZ as ArtifactComponentApiUpdateSchema, eV as ArtifactComponentInsertSchema, gR as ArtifactComponentListResponse, gB as ArtifactComponentResponse, eU as ArtifactComponentSelectSchema, eW as ArtifactComponentUpdateSchema, aO as AuthorizationCodeOAuthFlow, dg as CanDelegateToExternalAgent, df as CanUseItem, g8 as CanUseItemSchema, bq as CancelTaskRequest, bB as CancelTaskResponse, bA as CancelTaskSuccessResponse, aP as ClientCredentialsOAuthFlow, b8 as ContentTypeNotSupportedError, cs as ContextCacheApiInsert, eF as ContextCacheApiInsertSchema, cr as ContextCacheApiSelect, eE as ContextCacheApiSelectSchema, ct as ContextCacheApiUpdate, eG as ContextCacheApiUpdateSchema, dy as ContextCacheEntry, eC as ContextCacheInsertSchema, eB as ContextCacheSelectSchema, cq as ContextCacheUpdate, eD as ContextCacheUpdateSchema, cm as ContextConfigApiInsert, fI as ContextConfigApiInsertSchema, cl as ContextConfigApiSelect, fH as ContextConfigApiSelectSchema, cn as ContextConfigApiUpdate, fJ as ContextConfigApiUpdateSchema, fF as ContextConfigInsertSchema, gL as ContextConfigListResponse, gv as ContextConfigResponse, fE as ContextConfigSelectSchema, fG as ContextConfigUpdateSchema, cf as ConversationApiInsert, et as ConversationApiInsertSchema, ce as ConversationApiSelect, es as ConversationApiSelectSchema, cg as ConversationApiUpdate, eu as ConversationApiUpdateSchema, eq as ConversationInsertSchema, gU as ConversationListResponse, gE as ConversationResponse, dw as ConversationScopeOptions, ep as ConversationSelectSchema, er as ConversationUpdateSchema, fl as CredentialReferenceApiInsertSchema, cU as CredentialReferenceApiSelect, fk as CredentialReferenceApiSelectSchema, cV as CredentialReferenceApiUpdate, fm as CredentialReferenceApiUpdateSchema, fi as CredentialReferenceInsertSchema, gN as CredentialReferenceListResponse, gx as CredentialReferenceResponse, fh as CredentialReferenceSelectSchema, fj as CredentialReferenceUpdateSchema, cv as DataComponentApiInsert, eM as DataComponentApiInsertSchema, cu as DataComponentApiSelect, eL as DataComponentApiSelectSchema, cw as DataComponentApiUpdate, eN as DataComponentApiUpdateSchema, eJ as DataComponentBaseSchema, eI as DataComponentInsertSchema, gQ as DataComponentListResponse, gA as DataComponentResponse, eH as DataComponentSelectSchema, eK as DataComponentUpdateSchema, aF as DataPart, gg as ErrorResponseSchema, gh as ExistsResponseSchema, cN as ExternalAgentApiInsert, f8 as ExternalAgentApiInsertSchema, cM as ExternalAgentApiSelect, f7 as ExternalAgentApiSelectSchema, cO as ExternalAgentApiUpdate, f9 as ExternalAgentApiUpdateSchema, f5 as ExternalAgentInsertSchema, gK as ExternalAgentListResponse, gu as ExternalAgentResponse, f4 as ExternalAgentSelectSchema, f6 as ExternalAgentUpdateSchema, bT as ExternalSubAgentRelationApiInsert, e1 as ExternalSubAgentRelationApiInsertSchema, bS as ExternalSubAgentRelationInsert, e0 as ExternalSubAgentRelationInsertSchema, cp as FetchConfig, fC as FetchConfigSchema, co as FetchDefinition, fD as FetchDefinitionSchema, aB as FileBase, aE as FilePart, aC as FileWithBytes, aD as FileWithUri, de as FullAgentAgentInsert, a as FullAgentAgentInsertSchema, gp as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, cb as FunctionApiSelect, j as FunctionApiSelectSchema, cc as FunctionApiUpdate, k as FunctionApiUpdateSchema, c9 as FunctionInsert, fA as FunctionInsertSchema, gO as FunctionListResponse, gy as FunctionResponse, c8 as FunctionSelect, fz as FunctionSelectSchema, fx as FunctionToolApiInsertSchema, cd as FunctionToolApiSelect, fw as FunctionToolApiSelectSchema, fy as FunctionToolApiUpdateSchema, dO as FunctionToolConfig, dN as FunctionToolConfigSchema, fu as FunctionToolInsertSchema, gP as FunctionToolListResponse, gz as FunctionToolResponse, ft as FunctionToolSelectSchema, fv as FunctionToolUpdateSchema, ca as FunctionUpdate, fB as FunctionUpdateSchema, bs as GetTaskPushNotificationConfigRequest, bF as GetTaskPushNotificationConfigResponse, bE as GetTaskPushNotificationConfigSuccessResponse, bp as GetTaskRequest, bz as GetTaskResponse, by as GetTaskSuccessResponse, aM as HTTPAuthSecurityScheme, g_ 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, g4 as LedgerArtifactApiInsertSchema, db as LedgerArtifactApiSelect, g3 as LedgerArtifactApiSelectSchema, dd as LedgerArtifactApiUpdate, g5 as LedgerArtifactApiUpdateSchema, d9 as LedgerArtifactInsert, g1 as LedgerArtifactInsertSchema, g0 as LedgerArtifactSelectSchema, da as LedgerArtifactUpdate, g2 as LedgerArtifactUpdateSchema, ge as ListResponseSchema, dI as MAX_ID_LENGTH, dG as MCPServerType, fo as MCPToolConfigSchema, dH as MIN_ID_LENGTH, dz as McpAuthType, dA as McpServerAuth, dC as McpServerCapabilities, dD as McpToolDefinition, em as McpToolDefinitionSchema, fn as McpToolSchema, dB as McpTransportConfig, ek as McpTransportConfigSchema, aW as Message, cj as MessageApiInsert, ez as MessageApiInsertSchema, ci as MessageApiSelect, ey as MessageApiSelectSchema, ck as MessageApiUpdate, eA as MessageApiUpdateSchema, ew as MessageInsertSchema, gV as MessageListResponse, dr as MessageMode, bI as MessagePart, gF as MessageResponse, dq as MessageRole, ch as MessageSelect, ev as MessageSelectSchema, bg as MessageSendConfiguration, bh as MessageSendParams, dp as MessageType, ex as MessageUpdateSchema, b1 as MethodNotFoundError, dL as ModelSchema, g as ModelSettings, M as ModelSettingsSchema, ds as Models, aS as OAuth2SecurityScheme, aN as OAuthFlows, aT as OpenIdConnectSecurityScheme, dm as Pagination, h7 as PaginationQueryParamsSchema, gd as PaginationSchema, P as Part, az as PartBase, aR as PasswordOAuthFlow, dk as ProjectApiInsert, gn as ProjectApiInsertSchema, dj as ProjectApiSelect, gm as ProjectApiSelectSchema, dl as ProjectApiUpdate, go as ProjectApiUpdateSchema, gk as ProjectInsertSchema, gG as ProjectListResponse, dM as ProjectModelSchema, dt as ProjectModels, gq as ProjectResponse, gj as ProjectSelectSchema, gl as ProjectUpdateSchema, bb as PushNotificationAuthenticationInfo, bc as PushNotificationConfig, b6 as PushNotificationNotSupportedError, gi 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, gf as SingleResponseSchema, dv as StatusComponent, g6 as StatusComponentSchema, g7 as StatusUpdateSchema, du as StatusUpdateSettings, d as StopWhen, S as StopWhenSchema, bL as SubAgentApiInsert, dT as SubAgentApiInsertSchema, bK as SubAgentApiSelect, dS as SubAgentApiSelectSchema, bM as SubAgentApiUpdate, dU as SubAgentApiUpdateSchema, cK as SubAgentArtifactComponentApiInsert, f2 as SubAgentArtifactComponentApiInsertSchema, cJ as SubAgentArtifactComponentApiSelect, f1 as SubAgentArtifactComponentApiSelectSchema, cL as SubAgentArtifactComponentApiUpdate, f3 as SubAgentArtifactComponentApiUpdateSchema, cH as SubAgentArtifactComponentInsert, e$ as SubAgentArtifactComponentInsertSchema, gZ as SubAgentArtifactComponentListResponse, gX as SubAgentArtifactComponentResponse, cG as SubAgentArtifactComponentSelect, e_ as SubAgentArtifactComponentSelectSchema, cI as SubAgentArtifactComponentUpdate, f0 as SubAgentArtifactComponentUpdateSchema, cB as SubAgentDataComponentApiInsert, eS as SubAgentDataComponentApiInsertSchema, cA as SubAgentDataComponentApiSelect, eR as SubAgentDataComponentApiSelectSchema, cC as SubAgentDataComponentApiUpdate, eT as SubAgentDataComponentApiUpdateSchema, cy as SubAgentDataComponentInsert, eP as SubAgentDataComponentInsertSchema, gY as SubAgentDataComponentListResponse, gW as SubAgentDataComponentResponse, cx as SubAgentDataComponentSelect, eO as SubAgentDataComponentSelectSchema, cz as SubAgentDataComponentUpdate, eQ as SubAgentDataComponentUpdateSchema, dh as SubAgentDefinition, d2 as SubAgentExternalAgentRelationApiInsert, fU as SubAgentExternalAgentRelationApiInsertSchema, d1 as SubAgentExternalAgentRelationApiSelect, fT as SubAgentExternalAgentRelationApiSelectSchema, d3 as SubAgentExternalAgentRelationApiUpdate, fV as SubAgentExternalAgentRelationApiUpdateSchema, fR as SubAgentExternalAgentRelationInsertSchema, c$ as SubAgentExternalAgentRelationSelect, fQ as SubAgentExternalAgentRelationSelectSchema, d0 as SubAgentExternalAgentRelationUpdate, fS as SubAgentExternalAgentRelationUpdateSchema, dQ as SubAgentInsertSchema, gH as SubAgentListResponse, bP as SubAgentRelationApiInsert, dZ as SubAgentRelationApiInsertSchema, bO as SubAgentRelationApiSelect, dY as SubAgentRelationApiSelectSchema, bQ as SubAgentRelationApiUpdate, d_ as SubAgentRelationApiUpdateSchema, dW as SubAgentRelationInsertSchema, gS as SubAgentRelationListResponse, bR as SubAgentRelationQuery, d$ as SubAgentRelationQuerySchema, gC as SubAgentRelationResponse, bN as SubAgentRelationSelect, dV as SubAgentRelationSelectSchema, dX as SubAgentRelationUpdateSchema, gr as SubAgentResponse, dP as SubAgentSelectSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema, d7 as SubAgentTeamAgentRelationApiInsert, f_ as SubAgentTeamAgentRelationApiInsertSchema, d6 as SubAgentTeamAgentRelationApiSelect, fZ as SubAgentTeamAgentRelationApiSelectSchema, d8 as SubAgentTeamAgentRelationApiUpdate, f$ as SubAgentTeamAgentRelationApiUpdateSchema, fX as SubAgentTeamAgentRelationInsertSchema, d4 as SubAgentTeamAgentRelationSelect, fW as SubAgentTeamAgentRelationSelectSchema, d5 as SubAgentTeamAgentRelationUpdate, fY as SubAgentTeamAgentRelationUpdateSchema, cZ as SubAgentToolRelationApiInsert, fO as SubAgentToolRelationApiInsertSchema, cY as SubAgentToolRelationApiSelect, fN as SubAgentToolRelationApiSelectSchema, c_ as SubAgentToolRelationApiUpdate, fP as SubAgentToolRelationApiUpdateSchema, cX as SubAgentToolRelationInsert, fL as SubAgentToolRelationInsertSchema, gT as SubAgentToolRelationListResponse, gD as SubAgentToolRelationResponse, cW as SubAgentToolRelationSelect, fK as SubAgentToolRelationSelectSchema, fM as SubAgentToolRelationUpdateSchema, dR as SubAgentUpdateSchema, dn as SummaryEvent, dE as TOOL_STATUS_VALUES, aY as Task, bZ as TaskApiInsert, ec as TaskApiInsertSchema, bY as TaskApiSelect, eb as TaskApiSelectSchema, b_ as TaskApiUpdate, ed as TaskApiUpdateSchema, bJ as TaskArtifact, a_ as TaskArtifactUpdateEvent, be as TaskIdParams, e9 as TaskInsertSchema, b5 as TaskNotCancelableError, b4 as TaskNotFoundError, bd as TaskPushNotificationConfig, bf as TaskQueryParams, c3 as TaskRelationApiInsert, ei as TaskRelationApiInsertSchema, c2 as TaskRelationApiSelect, eh as TaskRelationApiSelectSchema, c4 as TaskRelationApiUpdate, ej as TaskRelationApiUpdateSchema, c0 as TaskRelationInsert, ef as TaskRelationInsertSchema, b$ as TaskRelationSelect, ee as TaskRelationSelectSchema, c1 as TaskRelationUpdate, eg as TaskRelationUpdateSchema, bt as TaskResubscriptionRequest, e8 as TaskSelectSchema, aG as TaskState, aX as TaskStatus, aZ as TaskStatusUpdateEvent, bX as TaskUpdate, ea as TaskUpdateSchema, gb as TeamAgentSchema, h0 as TenantIdParamsSchema, g$ as TenantParamsSchema, h4 as TenantProjectAgentIdParamsSchema, h3 as TenantProjectAgentParamsSchema, h6 as TenantProjectAgentSubAgentIdParamsSchema, h5 as TenantProjectAgentSubAgentParamsSchema, h2 as TenantProjectIdParamsSchema, h1 as TenantProjectParamsSchema, aA as TextPart, c6 as ToolApiInsert, fr as ToolApiInsertSchema, c5 as ToolApiSelect, fq as ToolApiSelectSchema, c7 as ToolApiUpdate, fs as ToolApiUpdateSchema, di as ToolDefinition, eo as ToolInsertSchema, gJ as ToolListResponse, gt as ToolResponse, en as ToolSelectSchema, el as ToolStatusSchema, fp as ToolUpdateSchema, dJ as URL_SAFE_ID_PATTERN, b7 as UnsupportedOperationError, dF as VALID_RELATION_TYPES, g9 as canDelegateToExternalAgentSchema, ga as canDelegateToTeamAgentSchema, dK as resourceIdSchema } from './utility-ne-rF1pW.js';
7
7
  import { CredentialStore } from './types/index.js';
8
8
  export { CorsConfig, ServerConfig, ServerOptions } from './types/index.js';
9
9
  import { LibSQLDatabase } from 'drizzle-orm/libsql';
10
- import { s as schema } from './schema-CDKDLrBu.js';
11
- export { F as agentRelations, I as agentToolRelationsRelations, a as agents, x as apiKeys, H as apiKeysRelations, j as artifactComponents, N as artifactComponentsRelations, b as contextCache, D as contextCacheRelations, c as contextConfigs, C as contextConfigsRelations, u as conversations, L as conversationsRelations, y as credentialReferences, J as credentialReferencesRelations, h as dataComponents, P as dataComponentsRelations, f as externalAgents, G as externalAgentsRelations, m as functionTools, U as functionToolsRelations, n as functions, S as functionsRelations, w as ledgerArtifacts, R as ledgerArtifactsRelations, v as messages, M as messagesRelations, p as projects, A as projectsRelations, k as subAgentArtifactComponents, O as subAgentArtifactComponentsRelations, i as subAgentDataComponents, Q as subAgentDataComponentsRelations, q as subAgentExternalAgentRelations, W as subAgentExternalAgentRelationsRelations, r as subAgentFunctionToolRelations, V as subAgentFunctionToolRelationsRelations, e as subAgentRelations, T as subAgentRelationsRelations, o as subAgentToolRelations, d as subAgents, E as subAgentsRelations, g as taskRelations, B as taskRelationsRelations, t as tasks, z as tasksRelations, l as tools, K as toolsRelations } from './schema-CDKDLrBu.js';
10
+ import { s as schema } from './schema-Y8eFxpzw.js';
11
+ export { G as agentRelations, J as agentToolRelationsRelations, a as agents, y as apiKeys, I as apiKeysRelations, j as artifactComponents, O as artifactComponentsRelations, b as contextCache, E as contextCacheRelations, c as contextConfigs, D as contextConfigsRelations, v as conversations, M as conversationsRelations, z as credentialReferences, K as credentialReferencesRelations, h as dataComponents, Q as dataComponentsRelations, f as externalAgents, H as externalAgentsRelations, m as functionTools, V as functionToolsRelations, n as functions, T as functionsRelations, x as ledgerArtifacts, S as ledgerArtifactsRelations, w as messages, N as messagesRelations, p as projects, B as projectsRelations, k as subAgentArtifactComponents, P as subAgentArtifactComponentsRelations, i as subAgentDataComponents, R as subAgentDataComponentsRelations, q as subAgentExternalAgentRelations, X as subAgentExternalAgentRelationsRelations, u as subAgentFunctionToolRelations, W as subAgentFunctionToolRelationsRelations, e as subAgentRelations, U as subAgentRelationsRelations, r as subAgentTeamAgentRelations, Y as subAgentTeamAgentRelationsRelations, o as subAgentToolRelations, d as subAgents, F as subAgentsRelations, g as taskRelations, C as taskRelationsRelations, t as tasks, A as tasksRelations, l as tools, L as toolsRelations } from './schema-Y8eFxpzw.js';
12
12
  import { SSEClientTransportOptions } from '@modelcontextprotocol/sdk/client/sse.js';
13
13
  import { StreamableHTTPClientTransportOptions } from '@modelcontextprotocol/sdk/client/streamableHttp.js';
14
14
  import { ClientCapabilities } from '@modelcontextprotocol/sdk/types.js';
@@ -762,6 +762,33 @@ declare class CredentialStuffer {
762
762
  buildMcpServerConfig(context: CredentialContext, tool: MCPToolConfig, storeReference?: CredentialStoreReference, selectedTools?: string[]): Promise<McpServerConfig>;
763
763
  }
764
764
 
765
+ interface AgentLogger {
766
+ info(obj: Record<string, any>, msg?: string): void;
767
+ error(obj: Record<string, any>, msg?: string): void;
768
+ }
769
+ /**
770
+ * Server-side implementation of createFullAgent that performs actual database operations.
771
+ * This function creates a complete agent with all agents, tools, and relationships.
772
+ */
773
+ declare const createFullAgentServerSide: (db: DatabaseClient, logger?: AgentLogger) => (scopes: ProjectScopeConfig, agentData: FullAgentDefinition) => Promise<FullAgentDefinition>;
774
+ /**
775
+ * Server-side implementation of updateFullAgent that performs actual database operations.
776
+ * This function updates a complete agent with all agents, tools, and relationships.
777
+ */
778
+ declare const updateFullAgentServerSide: (db: DatabaseClient, logger?: AgentLogger) => (scopes: ProjectScopeConfig, agentData: FullAgentDefinition) => Promise<FullAgentDefinition>;
779
+ /**
780
+ * Get a complete agent definition by ID
781
+ */
782
+ declare const getFullAgent: (db: DatabaseClient, logger?: AgentLogger) => (params: {
783
+ scopes: AgentScopeConfig;
784
+ }) => Promise<FullAgentDefinition | null>;
785
+ /**
786
+ * Delete a complete agent and cascade to all related entities
787
+ */
788
+ declare const deleteFullAgent: (db: DatabaseClient, logger?: AgentLogger) => (params: {
789
+ scopes: AgentScopeConfig;
790
+ }) => Promise<boolean>;
791
+
765
792
  declare const getAgentById: (db: DatabaseClient) => (params: {
766
793
  scopes: AgentScopeConfig;
767
794
  }) => Promise<{
@@ -2130,33 +2157,6 @@ declare const updateSubAgentFunctionToolRelation: (db: DatabaseClient) => (param
2130
2157
  id: string;
2131
2158
  }>;
2132
2159
 
2133
- interface AgentLogger {
2134
- info(obj: Record<string, any>, msg?: string): void;
2135
- error(obj: Record<string, any>, msg?: string): void;
2136
- }
2137
- /**
2138
- * Server-side implementation of createFullAgent that performs actual database operations.
2139
- * This function creates a complete agent with all agents, tools, and relationships.
2140
- */
2141
- declare const createFullAgentServerSide: (db: DatabaseClient, logger?: AgentLogger) => (scopes: ProjectScopeConfig, agentData: FullAgentDefinition) => Promise<FullAgentDefinition>;
2142
- /**
2143
- * Server-side implementation of updateFullAgent that performs actual database operations.
2144
- * This function updates a complete agent with all agents, tools, and relationships.
2145
- */
2146
- declare const updateFullAgentServerSide: (db: DatabaseClient, logger?: AgentLogger) => (scopes: ProjectScopeConfig, agentData: FullAgentDefinition) => Promise<FullAgentDefinition>;
2147
- /**
2148
- * Get a complete agent definition by ID
2149
- */
2150
- declare const getFullAgent: (db: DatabaseClient, logger?: AgentLogger) => (params: {
2151
- scopes: AgentScopeConfig;
2152
- }) => Promise<FullAgentDefinition | null>;
2153
- /**
2154
- * Delete a complete agent and cascade to all related entities
2155
- */
2156
- declare const deleteFullAgent: (db: DatabaseClient, logger?: AgentLogger) => (params: {
2157
- scopes: AgentScopeConfig;
2158
- }) => Promise<boolean>;
2159
-
2160
2160
  /**
2161
2161
  * Atomic upsert operation for a single artifact - prevents race conditions
2162
2162
  */
@@ -2236,6 +2236,8 @@ declare const getMessageById: (db: DatabaseClient) => (params: {
2236
2236
  toSubAgentId: string | null;
2237
2237
  fromExternalAgentId: string | null;
2238
2238
  toExternalAgentId: string | null;
2239
+ fromTeamAgentId: string | null;
2240
+ toTeamAgentId: string | null;
2239
2241
  visibility: string;
2240
2242
  messageType: string;
2241
2243
  taskId: string | null;
@@ -2255,6 +2257,8 @@ declare const listMessages: (db: DatabaseClient) => (params: {
2255
2257
  toSubAgentId: string | null;
2256
2258
  fromExternalAgentId: string | null;
2257
2259
  toExternalAgentId: string | null;
2260
+ fromTeamAgentId: string | null;
2261
+ toTeamAgentId: string | null;
2258
2262
  content: MessageContent;
2259
2263
  visibility: string;
2260
2264
  messageType: string;
@@ -2280,6 +2284,8 @@ declare const getMessagesByConversation: (db: DatabaseClient) => (params: {
2280
2284
  toSubAgentId: string | null;
2281
2285
  fromExternalAgentId: string | null;
2282
2286
  toExternalAgentId: string | null;
2287
+ fromTeamAgentId: string | null;
2288
+ toTeamAgentId: string | null;
2283
2289
  content: MessageContent;
2284
2290
  visibility: string;
2285
2291
  messageType: string;
@@ -2305,6 +2311,8 @@ declare const getMessagesByTask: (db: DatabaseClient) => (params: {
2305
2311
  toSubAgentId: string | null;
2306
2312
  fromExternalAgentId: string | null;
2307
2313
  toExternalAgentId: string | null;
2314
+ fromTeamAgentId: string | null;
2315
+ toTeamAgentId: string | null;
2308
2316
  content: MessageContent;
2309
2317
  visibility: string;
2310
2318
  messageType: string;
@@ -2331,6 +2339,8 @@ declare const getVisibleMessages: (db: DatabaseClient) => (params: {
2331
2339
  toSubAgentId: string | null;
2332
2340
  fromExternalAgentId: string | null;
2333
2341
  toExternalAgentId: string | null;
2342
+ fromTeamAgentId: string | null;
2343
+ toTeamAgentId: string | null;
2334
2344
  content: MessageContent;
2335
2345
  visibility: string;
2336
2346
  messageType: string;
@@ -2357,6 +2367,8 @@ declare const createMessage: (db: DatabaseClient) => (params: MessageInsert) =>
2357
2367
  toSubAgentId: string | null;
2358
2368
  fromExternalAgentId: string | null;
2359
2369
  toExternalAgentId: string | null;
2370
+ fromTeamAgentId: string | null;
2371
+ toTeamAgentId: string | null;
2360
2372
  visibility: string;
2361
2373
  messageType: string;
2362
2374
  taskId: string | null;
@@ -2382,6 +2394,8 @@ declare const updateMessage: (db: DatabaseClient) => (params: {
2382
2394
  toSubAgentId: string | null;
2383
2395
  fromExternalAgentId: string | null;
2384
2396
  toExternalAgentId: string | null;
2397
+ fromTeamAgentId: string | null;
2398
+ toTeamAgentId: string | null;
2385
2399
  visibility: string;
2386
2400
  messageType: string;
2387
2401
  taskId: string | null;
@@ -2406,6 +2420,8 @@ declare const deleteMessage: (db: DatabaseClient) => (params: {
2406
2420
  toSubAgentId: string | null;
2407
2421
  fromExternalAgentId: string | null;
2408
2422
  toExternalAgentId: string | null;
2423
+ fromTeamAgentId: string | null;
2424
+ toTeamAgentId: string | null;
2409
2425
  visibility: string;
2410
2426
  messageType: string;
2411
2427
  taskId: string | null;
@@ -3374,6 +3390,285 @@ declare const getSubAgentsByIds: (db: DatabaseClient) => (params: {
3374
3390
  id: string;
3375
3391
  }[]>;
3376
3392
 
3393
+ declare const getSubAgentTeamAgentRelationById: (db: DatabaseClient) => (params: {
3394
+ scopes: SubAgentScopeConfig;
3395
+ relationId: string;
3396
+ }) => Promise<{
3397
+ tenantId: string;
3398
+ projectId: string;
3399
+ id: string;
3400
+ agentId: string;
3401
+ createdAt: string;
3402
+ updatedAt: string;
3403
+ headers: Record<string, string> | null;
3404
+ subAgentId: string;
3405
+ targetAgentId: string;
3406
+ } | undefined>;
3407
+ declare const listSubAgentTeamAgentRelations: (db: DatabaseClient) => (params: {
3408
+ scopes: SubAgentScopeConfig;
3409
+ pagination?: PaginationConfig;
3410
+ }) => Promise<{
3411
+ data: {
3412
+ createdAt: string;
3413
+ updatedAt: string;
3414
+ targetAgentId: string;
3415
+ headers: Record<string, string> | null;
3416
+ subAgentId: string;
3417
+ agentId: string;
3418
+ projectId: string;
3419
+ tenantId: string;
3420
+ id: string;
3421
+ }[];
3422
+ pagination: {
3423
+ page: number;
3424
+ limit: number;
3425
+ total: number;
3426
+ pages: number;
3427
+ };
3428
+ }>;
3429
+ declare const getSubAgentTeamAgentRelations: (db: DatabaseClient) => (params: {
3430
+ scopes: SubAgentScopeConfig;
3431
+ }) => Promise<{
3432
+ tenantId: string;
3433
+ projectId: string;
3434
+ id: string;
3435
+ agentId: string;
3436
+ createdAt: string;
3437
+ updatedAt: string;
3438
+ headers: Record<string, string> | null;
3439
+ subAgentId: string;
3440
+ targetAgentId: string;
3441
+ }[]>;
3442
+ declare const getSubAgentTeamAgentRelationsByAgent: (db: DatabaseClient) => (params: {
3443
+ scopes: AgentScopeConfig;
3444
+ }) => Promise<{
3445
+ tenantId: string;
3446
+ projectId: string;
3447
+ id: string;
3448
+ agentId: string;
3449
+ createdAt: string;
3450
+ updatedAt: string;
3451
+ headers: Record<string, string> | null;
3452
+ subAgentId: string;
3453
+ targetAgentId: string;
3454
+ }[]>;
3455
+ declare const getSubAgentTeamAgentRelationsByTeamAgent: (db: DatabaseClient) => (params: {
3456
+ scopes: AgentScopeConfig;
3457
+ targetAgentId: string;
3458
+ pagination?: PaginationConfig;
3459
+ }) => Promise<{
3460
+ data: {
3461
+ createdAt: string;
3462
+ updatedAt: string;
3463
+ targetAgentId: string;
3464
+ headers: Record<string, string> | null;
3465
+ subAgentId: string;
3466
+ agentId: string;
3467
+ projectId: string;
3468
+ tenantId: string;
3469
+ id: string;
3470
+ }[];
3471
+ pagination: {
3472
+ page: number;
3473
+ limit: number;
3474
+ total: number;
3475
+ pages: number;
3476
+ };
3477
+ }>;
3478
+ declare const getTeamAgentsForSubAgent: (db: DatabaseClient) => (params: {
3479
+ scopes: SubAgentScopeConfig;
3480
+ pagination?: PaginationConfig;
3481
+ }) => Promise<{
3482
+ data: {
3483
+ id: string;
3484
+ tenantId: string;
3485
+ projectId: string;
3486
+ agentId: string;
3487
+ subAgentId: string;
3488
+ targetAgentId: string;
3489
+ headers: Record<string, string> | null;
3490
+ createdAt: string;
3491
+ updatedAt: string;
3492
+ targetAgent: {
3493
+ id: string;
3494
+ name: string;
3495
+ description: string | null;
3496
+ defaultSubAgentId: string | null;
3497
+ contextConfigId: string | null;
3498
+ models: {
3499
+ base?: {
3500
+ model?: string | undefined;
3501
+ providerOptions?: Record<string, any> | undefined;
3502
+ } | undefined;
3503
+ structuredOutput?: {
3504
+ model?: string | undefined;
3505
+ providerOptions?: Record<string, any> | undefined;
3506
+ } | undefined;
3507
+ summarizer?: {
3508
+ model?: string | undefined;
3509
+ providerOptions?: Record<string, any> | undefined;
3510
+ } | undefined;
3511
+ } | null;
3512
+ statusUpdates: {
3513
+ enabled?: boolean | undefined;
3514
+ numEvents?: number | undefined;
3515
+ timeInSeconds?: number | undefined;
3516
+ prompt?: string | undefined;
3517
+ statusComponents?: {
3518
+ type: string;
3519
+ description?: string | undefined;
3520
+ detailsSchema?: {
3521
+ type: "object";
3522
+ properties: Record<string, any>;
3523
+ required?: string[] | undefined;
3524
+ } | undefined;
3525
+ }[] | undefined;
3526
+ } | null;
3527
+ prompt: string | null;
3528
+ stopWhen: {
3529
+ transferCountIs?: number | undefined;
3530
+ } | null;
3531
+ createdAt: string;
3532
+ updatedAt: string;
3533
+ };
3534
+ }[];
3535
+ pagination: {
3536
+ page: number;
3537
+ limit: number;
3538
+ total: number;
3539
+ pages: number;
3540
+ };
3541
+ }>;
3542
+ declare const getSubAgentsForTeamAgent: (db: DatabaseClient) => (params: {
3543
+ scopes: AgentScopeConfig;
3544
+ targetAgentId: string;
3545
+ pagination?: PaginationConfig;
3546
+ }) => Promise<{
3547
+ data: {
3548
+ id: string;
3549
+ tenantId: string;
3550
+ projectId: string;
3551
+ agentId: string;
3552
+ subAgentId: string;
3553
+ targetAgentId: string;
3554
+ createdAt: string;
3555
+ updatedAt: string;
3556
+ subAgent: {
3557
+ id: string;
3558
+ name: string;
3559
+ description: string;
3560
+ prompt: string;
3561
+ conversationHistoryConfig: ConversationHistoryConfig | null;
3562
+ models: {
3563
+ base?: {
3564
+ model?: string | undefined;
3565
+ providerOptions?: Record<string, any> | undefined;
3566
+ } | undefined;
3567
+ structuredOutput?: {
3568
+ model?: string | undefined;
3569
+ providerOptions?: Record<string, any> | undefined;
3570
+ } | undefined;
3571
+ summarizer?: {
3572
+ model?: string | undefined;
3573
+ providerOptions?: Record<string, any> | undefined;
3574
+ } | undefined;
3575
+ } | null;
3576
+ stopWhen: {
3577
+ stepCountIs?: number | undefined;
3578
+ } | null;
3579
+ createdAt: string;
3580
+ updatedAt: string;
3581
+ };
3582
+ }[];
3583
+ pagination: {
3584
+ page: number;
3585
+ limit: number;
3586
+ total: number;
3587
+ pages: number;
3588
+ };
3589
+ }>;
3590
+ declare const createSubAgentTeamAgentRelation: (db: DatabaseClient) => (params: {
3591
+ scopes: SubAgentScopeConfig;
3592
+ relationId?: string;
3593
+ data: {
3594
+ targetAgentId: string;
3595
+ headers?: Record<string, string> | null;
3596
+ };
3597
+ }) => Promise<{
3598
+ tenantId: string;
3599
+ projectId: string;
3600
+ id: string;
3601
+ agentId: string;
3602
+ createdAt: string;
3603
+ updatedAt: string;
3604
+ headers: Record<string, string> | null;
3605
+ subAgentId: string;
3606
+ targetAgentId: string;
3607
+ }>;
3608
+ /**
3609
+ * Check if sub-agent team agent relation exists by params
3610
+ */
3611
+ declare const getSubAgentTeamAgentRelationByParams: (db: DatabaseClient) => (params: {
3612
+ scopes: SubAgentScopeConfig;
3613
+ targetAgentId: string;
3614
+ }) => Promise<{
3615
+ tenantId: string;
3616
+ projectId: string;
3617
+ id: string;
3618
+ agentId: string;
3619
+ createdAt: string;
3620
+ updatedAt: string;
3621
+ headers: Record<string, string> | null;
3622
+ subAgentId: string;
3623
+ targetAgentId: string;
3624
+ } | undefined>;
3625
+ /**
3626
+ * Upsert sub-agent team agent relation (create if it doesn't exist, update if it does)
3627
+ */
3628
+ declare const upsertSubAgentTeamAgentRelation: (db: DatabaseClient) => (params: {
3629
+ scopes: SubAgentScopeConfig;
3630
+ relationId?: string;
3631
+ data: {
3632
+ targetAgentId: string;
3633
+ headers?: Record<string, string> | null;
3634
+ };
3635
+ }) => Promise<{
3636
+ tenantId: string;
3637
+ projectId: string;
3638
+ id: string;
3639
+ agentId: string;
3640
+ createdAt: string;
3641
+ updatedAt: string;
3642
+ headers: Record<string, string> | null;
3643
+ subAgentId: string;
3644
+ targetAgentId: string;
3645
+ }>;
3646
+ declare const updateSubAgentTeamAgentRelation: (db: DatabaseClient) => (params: {
3647
+ scopes: SubAgentScopeConfig;
3648
+ relationId: string;
3649
+ data: Partial<SubAgentTeamAgentRelationInsert>;
3650
+ }) => Promise<{
3651
+ tenantId: string;
3652
+ projectId: string;
3653
+ id: string;
3654
+ agentId: string;
3655
+ createdAt: string;
3656
+ updatedAt: string;
3657
+ headers: Record<string, string> | null;
3658
+ subAgentId: string;
3659
+ targetAgentId: string;
3660
+ }>;
3661
+ declare const deleteSubAgentTeamAgentRelation: (db: DatabaseClient) => (params: {
3662
+ scopes: SubAgentScopeConfig;
3663
+ relationId: string;
3664
+ }) => Promise<boolean>;
3665
+ declare const deleteSubAgentTeamAgentRelationsBySubAgent: (db: DatabaseClient) => (params: {
3666
+ scopes: SubAgentScopeConfig;
3667
+ }) => Promise<boolean>;
3668
+ declare const deleteSubAgentTeamAgentRelationsByAgent: (db: DatabaseClient) => (params: {
3669
+ scopes: AgentScopeConfig;
3670
+ }) => Promise<boolean>;
3671
+
3377
3672
  declare const createTask: (db: DatabaseClient) => (params: TaskInsert) => Promise<{
3378
3673
  tenantId: string;
3379
3674
  projectId: string;
@@ -4235,6 +4530,82 @@ declare function createExecutionContext(params: {
4235
4530
  */
4236
4531
  declare function getRequestExecutionContext(c: Context): ExecutionContext;
4237
4532
 
4533
+ /**
4534
+ * Service Token JWT Claims
4535
+ */
4536
+ interface ServiceTokenPayload {
4537
+ /** Issuer - always 'inkeep-agents' */
4538
+ iss: string;
4539
+ /** Audience - the target agent ID */
4540
+ aud: string;
4541
+ /** Subject - the origin agent ID */
4542
+ sub: string;
4543
+ /** Tenant ID - must match for both origin and target agents */
4544
+ tenantId: string;
4545
+ /** Project ID - must match for both origin and target agents */
4546
+ projectId: string;
4547
+ /** Issued at timestamp */
4548
+ iat: number;
4549
+ /** Expiration timestamp (5 minutes from issue) */
4550
+ exp: number;
4551
+ }
4552
+ /**
4553
+ * Parameters for generating a service token
4554
+ */
4555
+ interface GenerateServiceTokenParams {
4556
+ tenantId: string;
4557
+ projectId: string;
4558
+ originAgentId: string;
4559
+ targetAgentId: string;
4560
+ }
4561
+ /**
4562
+ * Result of verifying a service token
4563
+ */
4564
+ interface VerifyServiceTokenResult {
4565
+ valid: boolean;
4566
+ payload?: ServiceTokenPayload;
4567
+ error?: string;
4568
+ }
4569
+ /**
4570
+ * Generate a JWT token for team agent authentication
4571
+ * Token expires in 5 minutes
4572
+ *
4573
+ * @param params - Token generation parameters
4574
+ * @returns Signed JWT token string
4575
+ */
4576
+ declare function generateServiceToken(params: GenerateServiceTokenParams): Promise<string>;
4577
+ /**
4578
+ * Verify and decode a service JWT token
4579
+ *
4580
+ * @param token - JWT token string to verify
4581
+ * @returns Verification result with payload if valid
4582
+ */
4583
+ declare function verifyServiceToken(token: string): Promise<VerifyServiceTokenResult>;
4584
+ /**
4585
+ * Validate that the token's tenant ID matches the expected tenant
4586
+ * This prevents cross-tenant delegation attempts
4587
+ *
4588
+ * @param payload - Decoded token payload
4589
+ * @param expectedTenantId - The tenant ID to validate against
4590
+ * @returns true if tenant IDs match, false otherwise
4591
+ */
4592
+ declare function validateTenantId(payload: ServiceTokenPayload, expectedTenantId: string): boolean;
4593
+ /**
4594
+ * Validate that the token's target agent ID matches the expected agent
4595
+ *
4596
+ * @param payload - Decoded token payload
4597
+ * @param expectedTargetAgentId - The agent ID to validate against
4598
+ * @returns true if agent IDs match, false otherwise
4599
+ */
4600
+ declare function validateTargetAgent(payload: ServiceTokenPayload, expectedTargetAgentId: string): boolean;
4601
+ /**
4602
+ * Extract the Authorization header and verify the bearer token
4603
+ *
4604
+ * @param authHeader - The Authorization header value (e.g., "Bearer <token>")
4605
+ * @returns Verification result with payload if valid
4606
+ */
4607
+ declare function verifyAuthorizationHeader(authHeader: string | undefined): Promise<VerifyServiceTokenResult>;
4608
+
4238
4609
  /**
4239
4610
  * Helper function to handle span errors consistently
4240
4611
  * Records the exception, sets error status, and optionally logs
@@ -4248,4 +4619,4 @@ declare function setSpanWithError(span: Span, error: Error, logger?: {
4248
4619
  */
4249
4620
  declare function getTracer(serviceName: string, serviceVersion?: string): Tracer;
4250
4621
 
4251
- export { AgentInsert, type AgentLogger, AgentScopeConfig, AgentSelect, AgentUpdate, ApiKeyCreateResult, type ApiKeyGenerationResult, ApiKeyInsert, ApiKeySelect, ApiKeyUpdate, Artifact, ArtifactComponentInsert, ArtifactComponentSelect, ArtifactComponentUpdate, type CommonCreateErrorResponses, type CommonDeleteErrorResponses, type CommonGetErrorResponses, type CommonUpdateErrorResponses, ContextCache, ContextCacheInsert, ContextCacheSelect, ContextConfigBuilder, type ContextConfigBuilderOptions, ContextConfigInsert, ContextConfigSelect, ContextConfigUpdate, ContextFetchDefinition, ContextFetcher, type ContextResolutionOptions, type ContextResolutionResult, ContextResolver, type ContextResolverInterface, type ContextValidationError, type ContextValidationResult, ConversationHistoryConfig, ConversationInsert, ConversationMetadata, ConversationSelect, ConversationUpdate, CreateApiKeyParams, type CredentialContext, type CredentialData, CredentialReferenceApiInsert, CredentialReferenceInsert, CredentialReferenceSelect, CredentialReferenceUpdate, type CredentialReferenceWithResources, type CredentialResolverInput, CredentialStore, type CredentialStoreReference, CredentialStoreRegistry, CredentialStoreType, CredentialStuffer, DataComponentInsert, DataComponentSelect, DataComponentUpdate, type DatabaseClient, type DatabaseConfig, type DotPaths, ERROR_DOCS_BASE_URL, ErrorCode, type ErrorCodes, type ErrorResponse, ExecutionContext, ExternalAgentInsert, ExternalAgentSelect, ExternalAgentUpdate, type FetchResult, FullAgentDefinition, FullProjectDefinition, FunctionApiInsert, FunctionToolApiInsert, FunctionToolApiUpdate, HTTP_REQUEST_PARTS, type HttpRequestPart, InMemoryCredentialStore, KeyChainStore, LedgerArtifactSelect, MCPToolConfig, MCPTransportType, McpClient, type McpClientOptions, type McpSSEConfig, type McpServerConfig, type McpStreamableHttpConfig, McpTool, MessageContent, MessageInsert, MessageMetadata, MessageUpdate, MessageVisibility, NangoCredentialStore, PaginationConfig, PaginationResult, type ParsedHttpRequest, PinoLogger, type ProblemDetails, ProjectInfo, ProjectInsert, type ProjectLogger, ProjectResourceCounts, ProjectScopeConfig, ProjectSelect, ProjectUpdate, type ResolvedContext, SubAgentExternalAgentRelationInsert, SubAgentInsert, SubAgentRelationInsert, SubAgentRelationUpdate, SubAgentScopeConfig, SubAgentSelect, SubAgentToolRelationUpdate, SubAgentUpdate, TaskInsert, TaskMetadataConfig, TaskSelect, type TemplateContext, TemplateEngine, type TemplateRenderOptions, ToolInsert, ToolMcpConfig, ToolSelect, ToolServerCapabilities, ToolUpdate, addFunctionToolToSubAgent, addLedgerArtifacts, addToolToAgent, agentHasArtifactComponents, apiFetch, associateArtifactComponentWithAgent, associateDataComponentWithAgent, cleanupTenantCache, clearContextConfigCache, clearConversationCache, commonCreateErrorResponses, commonDeleteErrorResponses, commonGetErrorResponses, commonUpdateErrorResponses, contextConfig, contextValidationMiddleware, countApiKeys, countArtifactComponents, countArtifactComponentsForAgent, countContextConfigs, countCredentialReferences, countDataComponents, countExternalAgents, countLedgerArtifactsByTask, countMessagesByConversation, countProjects, createAgent, createAgentToolRelation, createApiError, createApiKey, createArtifactComponent, createContextConfig, createConversation, createCredentialReference, createDataComponent, createDatabaseClient, createDefaultCredentialStores, createExecutionContext, createExternalAgent, createFullAgentServerSide, createFullProjectServerSide, createFunctionTool, createInMemoryDatabaseClient, createKeyChainStore, createMessage, createNangoCredentialStore, createOrGetConversation, createProject, createSubAgent, createSubAgentExternalAgentRelation, createSubAgentRelation, createTask, createTool, createValidatedDataAccess, dbResultToMcpTool, deleteAgent, deleteAgentArtifactComponentRelationByAgent, deleteAgentDataComponentRelationByAgent, deleteAgentRelationsByAgent, deleteAgentToolRelation, deleteAgentToolRelationByAgent, deleteApiKey, deleteArtifactComponent, deleteContextConfig, deleteConversation, deleteCredentialReference, deleteDataComponent, deleteExternalAgent, deleteFullAgent, deleteFullProject, deleteFunction, deleteFunctionTool, deleteLedgerArtifactsByContext, deleteLedgerArtifactsByTask, deleteMessage, deleteProject, deleteSubAgent, deleteSubAgentExternalAgentRelation, deleteSubAgentExternalAgentRelationsByAgent, deleteSubAgentExternalAgentRelationsBySubAgent, deleteSubAgentRelation, deleteTool, determineContextTrigger, errorResponseSchema, errorSchemaFactory, externalAgentExists, externalAgentUrlExists, extractPublicId, fetchComponentRelationships, fetchDefinition, generateAndCreateApiKey, generateApiKey, generateId, getActiveAgentForConversation, getAgentById, getAgentRelationById, getAgentRelationByParams, getAgentRelations, getAgentRelationsByAgent, getAgentRelationsBySource, getAgentSubAgentInfos, getAgentToolRelationByAgent, getAgentToolRelationById, getAgentToolRelationByTool, getAgentWithDefaultSubAgent, getAgentsForTool, getAgentsUsingArtifactComponent, getAgentsUsingDataComponent, getApiKeyById, getApiKeyByPublicId, getArtifactComponentById, getArtifactComponentsForAgent, getCacheEntry, getCachedValidator, getContextConfigById, getContextConfigCacheEntries, getConversation, getConversationCacheEntries, getConversationHistory, getConversationId, getCredentialReference, getCredentialReferenceById, getCredentialReferenceWithResources, getCredentialStoreLookupKeyFromRetrievalParams, getDataComponent, getDataComponentsForAgent, getExternalAgent, getExternalAgentByUrl, getExternalAgentsForSubAgent, getFullAgent, getFullAgentDefinition, getFullProject, getFunction, getFunctionToolById, getFunctionToolsForSubAgent, getLedgerArtifacts, getLedgerArtifactsByContext, getLogger, getMessageById, getMessagesByConversation, getMessagesByTask, getProject, getProjectResourceCounts, getRelatedAgentsForAgent, getRequestExecutionContext, getSubAgentById, getSubAgentExternalAgentRelationById, getSubAgentExternalAgentRelationByParams, getSubAgentExternalAgentRelations, getSubAgentExternalAgentRelationsByAgent, getSubAgentExternalAgentRelationsByExternalAgent, getSubAgentRelationsByTarget, getSubAgentsByIds, getSubAgentsForExternalAgent, getTask, getToolById, getToolsForAgent, getTracer, getVisibleMessages, handleApiError, handleContextConfigChange, handleContextResolution, hasApiKey, hasContextConfig, hasCredentialReference, hashApiKey, headers, invalidateHeadersCache, invalidateInvocationDefinitionsCache, isApiKeyExpired, isArtifactComponentAssociatedWithAgent, isDataComponentAssociatedWithAgent, isValidHttpRequest, listAgentRelations, listAgentToolRelations, listAgents, listAgentsPaginated, listApiKeys, listApiKeysPaginated, listArtifactComponents, listArtifactComponentsPaginated, listContextConfigs, listContextConfigsPaginated, listConversations, listCredentialReferences, listCredentialReferencesPaginated, listDataComponents, listDataComponentsPaginated, listExternalAgents, listExternalAgentsPaginated, listFunctionTools, listFunctions, listMessages, listProjects, listProjectsPaginated, listSubAgentExternalAgentRelations, listSubAgents, listSubAgentsPaginated, listTaskIdsByContextId, listTools, loadEnvironmentFiles, maskApiKey, problemDetailsSchema, projectExists, projectExistsInTable, projectHasResources, removeArtifactComponentFromAgent, removeDataComponentFromAgent, removeToolFromAgent, setActiveAgentForConversation, setActiveAgentForThread, setCacheEntry, setSpanWithError, updateAgent, updateAgentRelation, updateAgentToolRelation, updateApiKey, updateApiKeyLastUsed, updateArtifactComponent, updateContextConfig, updateConversation, updateConversationActiveAgent, updateCredentialReference, updateDataComponent, updateExternalAgent, updateFullAgentServerSide, updateFullProjectServerSide, updateFunctionTool, updateMessage, updateProject, updateSubAgent, updateSubAgentExternalAgentRelation, updateSubAgentFunctionToolRelation, updateTask, updateTool, upsertAgent, upsertAgentArtifactComponentRelation, upsertAgentDataComponentRelation, upsertArtifactComponent, upsertContextConfig, upsertCredentialReference, upsertDataComponent, upsertExternalAgent, upsertFunction, upsertFunctionTool, upsertLedgerArtifact, upsertSubAgent, upsertSubAgentExternalAgentRelation, upsertSubAgentFunctionToolRelation, upsertSubAgentRelation, upsertSubAgentToolRelation, upsertTool, validateAgainstJsonSchema, validateAndGetApiKey, validateApiKey, validateHeaders, validateHttpRequestHeaders, validateProjectExists, validateSubAgent, validationHelper, withProjectValidation };
4622
+ export { AgentInsert, type AgentLogger, AgentScopeConfig, AgentSelect, AgentUpdate, ApiKeyCreateResult, type ApiKeyGenerationResult, ApiKeyInsert, ApiKeySelect, ApiKeyUpdate, Artifact, ArtifactComponentInsert, ArtifactComponentSelect, ArtifactComponentUpdate, type CommonCreateErrorResponses, type CommonDeleteErrorResponses, type CommonGetErrorResponses, type CommonUpdateErrorResponses, ContextCache, ContextCacheInsert, ContextCacheSelect, ContextConfigBuilder, type ContextConfigBuilderOptions, ContextConfigInsert, ContextConfigSelect, ContextConfigUpdate, ContextFetchDefinition, ContextFetcher, type ContextResolutionOptions, type ContextResolutionResult, ContextResolver, type ContextResolverInterface, type ContextValidationError, type ContextValidationResult, ConversationHistoryConfig, ConversationInsert, ConversationMetadata, ConversationSelect, ConversationUpdate, CreateApiKeyParams, type CredentialContext, type CredentialData, CredentialReferenceApiInsert, CredentialReferenceInsert, CredentialReferenceSelect, CredentialReferenceUpdate, type CredentialReferenceWithResources, type CredentialResolverInput, CredentialStore, type CredentialStoreReference, CredentialStoreRegistry, CredentialStoreType, CredentialStuffer, DataComponentInsert, DataComponentSelect, DataComponentUpdate, type DatabaseClient, type DatabaseConfig, type DotPaths, ERROR_DOCS_BASE_URL, ErrorCode, type ErrorCodes, type ErrorResponse, ExecutionContext, ExternalAgentInsert, ExternalAgentSelect, ExternalAgentUpdate, type FetchResult, FullAgentDefinition, FullProjectDefinition, FunctionApiInsert, FunctionToolApiInsert, FunctionToolApiUpdate, type GenerateServiceTokenParams, HTTP_REQUEST_PARTS, type HttpRequestPart, InMemoryCredentialStore, KeyChainStore, LedgerArtifactSelect, MCPToolConfig, MCPTransportType, McpClient, type McpClientOptions, type McpSSEConfig, type McpServerConfig, type McpStreamableHttpConfig, McpTool, MessageContent, MessageInsert, MessageMetadata, MessageUpdate, MessageVisibility, NangoCredentialStore, PaginationConfig, PaginationResult, type ParsedHttpRequest, PinoLogger, type ProblemDetails, ProjectInfo, ProjectInsert, type ProjectLogger, ProjectResourceCounts, ProjectScopeConfig, ProjectSelect, ProjectUpdate, type ResolvedContext, type ServiceTokenPayload, SubAgentExternalAgentRelationInsert, SubAgentInsert, SubAgentRelationInsert, SubAgentRelationUpdate, SubAgentScopeConfig, SubAgentSelect, SubAgentTeamAgentRelationInsert, SubAgentToolRelationUpdate, SubAgentUpdate, TaskInsert, TaskMetadataConfig, TaskSelect, type TemplateContext, TemplateEngine, type TemplateRenderOptions, ToolInsert, ToolMcpConfig, ToolSelect, ToolServerCapabilities, ToolUpdate, type VerifyServiceTokenResult, addFunctionToolToSubAgent, addLedgerArtifacts, addToolToAgent, agentHasArtifactComponents, apiFetch, associateArtifactComponentWithAgent, associateDataComponentWithAgent, cleanupTenantCache, clearContextConfigCache, clearConversationCache, commonCreateErrorResponses, commonDeleteErrorResponses, commonGetErrorResponses, commonUpdateErrorResponses, contextConfig, contextValidationMiddleware, countApiKeys, countArtifactComponents, countArtifactComponentsForAgent, countContextConfigs, countCredentialReferences, countDataComponents, countExternalAgents, countLedgerArtifactsByTask, countMessagesByConversation, countProjects, createAgent, createAgentToolRelation, createApiError, createApiKey, createArtifactComponent, createContextConfig, createConversation, createCredentialReference, createDataComponent, createDatabaseClient, createDefaultCredentialStores, createExecutionContext, createExternalAgent, createFullAgentServerSide, createFullProjectServerSide, createFunctionTool, createInMemoryDatabaseClient, createKeyChainStore, createMessage, createNangoCredentialStore, createOrGetConversation, createProject, createSubAgent, createSubAgentExternalAgentRelation, createSubAgentRelation, createSubAgentTeamAgentRelation, createTask, createTool, createValidatedDataAccess, dbResultToMcpTool, deleteAgent, deleteAgentArtifactComponentRelationByAgent, deleteAgentDataComponentRelationByAgent, deleteAgentRelationsByAgent, deleteAgentToolRelation, deleteAgentToolRelationByAgent, deleteApiKey, deleteArtifactComponent, deleteContextConfig, deleteConversation, deleteCredentialReference, deleteDataComponent, deleteExternalAgent, deleteFullAgent, deleteFullProject, deleteFunction, deleteFunctionTool, deleteLedgerArtifactsByContext, deleteLedgerArtifactsByTask, deleteMessage, deleteProject, deleteSubAgent, deleteSubAgentExternalAgentRelation, deleteSubAgentExternalAgentRelationsByAgent, deleteSubAgentExternalAgentRelationsBySubAgent, deleteSubAgentRelation, deleteSubAgentTeamAgentRelation, deleteSubAgentTeamAgentRelationsByAgent, deleteSubAgentTeamAgentRelationsBySubAgent, deleteTool, determineContextTrigger, errorResponseSchema, errorSchemaFactory, externalAgentExists, externalAgentUrlExists, extractPublicId, fetchComponentRelationships, fetchDefinition, generateAndCreateApiKey, generateApiKey, generateId, generateServiceToken, getActiveAgentForConversation, getAgentById, getAgentRelationById, getAgentRelationByParams, getAgentRelations, getAgentRelationsByAgent, getAgentRelationsBySource, getAgentSubAgentInfos, getAgentToolRelationByAgent, getAgentToolRelationById, getAgentToolRelationByTool, getAgentWithDefaultSubAgent, getAgentsForTool, getAgentsUsingArtifactComponent, getAgentsUsingDataComponent, getApiKeyById, getApiKeyByPublicId, getArtifactComponentById, getArtifactComponentsForAgent, getCacheEntry, getCachedValidator, getContextConfigById, getContextConfigCacheEntries, getConversation, getConversationCacheEntries, getConversationHistory, getConversationId, getCredentialReference, getCredentialReferenceById, getCredentialReferenceWithResources, getCredentialStoreLookupKeyFromRetrievalParams, getDataComponent, getDataComponentsForAgent, getExternalAgent, getExternalAgentByUrl, getExternalAgentsForSubAgent, getFullAgent, getFullAgentDefinition, getFullProject, getFunction, getFunctionToolById, getFunctionToolsForSubAgent, getLedgerArtifacts, getLedgerArtifactsByContext, getLogger, getMessageById, getMessagesByConversation, getMessagesByTask, getProject, getProjectResourceCounts, getRelatedAgentsForAgent, getRequestExecutionContext, getSubAgentById, getSubAgentExternalAgentRelationById, getSubAgentExternalAgentRelationByParams, getSubAgentExternalAgentRelations, getSubAgentExternalAgentRelationsByAgent, getSubAgentExternalAgentRelationsByExternalAgent, getSubAgentRelationsByTarget, getSubAgentTeamAgentRelationById, getSubAgentTeamAgentRelationByParams, getSubAgentTeamAgentRelations, getSubAgentTeamAgentRelationsByAgent, getSubAgentTeamAgentRelationsByTeamAgent, getSubAgentsByIds, getSubAgentsForExternalAgent, getSubAgentsForTeamAgent, getTask, getTeamAgentsForSubAgent, getToolById, getToolsForAgent, getTracer, getVisibleMessages, handleApiError, handleContextConfigChange, handleContextResolution, hasApiKey, hasContextConfig, hasCredentialReference, hashApiKey, headers, invalidateHeadersCache, invalidateInvocationDefinitionsCache, isApiKeyExpired, isArtifactComponentAssociatedWithAgent, isDataComponentAssociatedWithAgent, isValidHttpRequest, listAgentRelations, listAgentToolRelations, listAgents, listAgentsPaginated, listApiKeys, listApiKeysPaginated, listArtifactComponents, listArtifactComponentsPaginated, listContextConfigs, listContextConfigsPaginated, listConversations, listCredentialReferences, listCredentialReferencesPaginated, listDataComponents, listDataComponentsPaginated, listExternalAgents, listExternalAgentsPaginated, listFunctionTools, listFunctions, listMessages, listProjects, listProjectsPaginated, listSubAgentExternalAgentRelations, listSubAgentTeamAgentRelations, listSubAgents, listSubAgentsPaginated, listTaskIdsByContextId, listTools, loadEnvironmentFiles, maskApiKey, problemDetailsSchema, projectExists, projectExistsInTable, projectHasResources, removeArtifactComponentFromAgent, removeDataComponentFromAgent, removeToolFromAgent, setActiveAgentForConversation, setActiveAgentForThread, setCacheEntry, setSpanWithError, updateAgent, updateAgentRelation, updateAgentToolRelation, updateApiKey, updateApiKeyLastUsed, updateArtifactComponent, updateContextConfig, updateConversation, updateConversationActiveAgent, updateCredentialReference, updateDataComponent, updateExternalAgent, updateFullAgentServerSide, updateFullProjectServerSide, updateFunctionTool, updateMessage, updateProject, updateSubAgent, updateSubAgentExternalAgentRelation, updateSubAgentFunctionToolRelation, updateSubAgentTeamAgentRelation, updateTask, updateTool, upsertAgent, upsertAgentArtifactComponentRelation, upsertAgentDataComponentRelation, upsertArtifactComponent, upsertContextConfig, upsertCredentialReference, upsertDataComponent, upsertExternalAgent, upsertFunction, upsertFunctionTool, upsertLedgerArtifact, upsertSubAgent, upsertSubAgentExternalAgentRelation, upsertSubAgentFunctionToolRelation, upsertSubAgentRelation, upsertSubAgentTeamAgentRelation, upsertSubAgentToolRelation, upsertTool, validateAgainstJsonSchema, validateAndGetApiKey, validateApiKey, validateHeaders, validateHttpRequestHeaders, validateProjectExists, validateSubAgent, validateTargetAgent, validateTenantId, validationHelper, verifyAuthorizationHeader, verifyServiceToken, withProjectValidation };