@inkeep/agents-core 0.0.0-dev-20251109004542 → 0.0.0-dev-20251110174655

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.cts 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-CGqhPDnj.cjs';
3
3
  export { i as ACTIVITY_NAMES, g as ACTIVITY_STATUS, f as ACTIVITY_TYPES, h as AGENT_IDS, p as AGGREGATE_OPERATORS, A as AI_OPERATIONS, j as AI_TOOL_TYPES, o as DATA_SOURCES, k as DATA_TYPES, D as DELEGATION_FROM_SUB_AGENT_ID, b as DELEGATION_ID, a as DELEGATION_TO_SUB_AGENT_ID, F as FIELD_TYPES, L as LoggerFactoryConfig, M as McpOAuthFlowResult, u as McpTokenExchangeResult, t as OAuthConfig, O as OPERATORS, m as ORDER_DIRECTIONS, P as PANEL_TYPES, x as PinoLoggerConfig, q as QUERY_DEFAULTS, l as QUERY_EXPRESSIONS, Q as QUERY_FIELD_CONFIGS, n as QUERY_TYPES, R as REDUCE_OPERATIONS, e as SPAN_KEYS, S as SPAN_NAMES, T as TRANSFER_FROM_SUB_AGENT_ID, c as TRANSFER_TO_SUB_AGENT_ID, U as UNKNOWN_VALUE, d as detectAuthenticationRequired, w as exchangeMcpAuthorizationCode, v as initiateMcpOAuthFlow, y as loggerFactory } from './auth-detection-CGqhPDnj.cjs';
4
4
  import { z } from 'zod';
5
- import { r as CredentialReferenceApiInsert, s as ContextConfigSelect, l as ContextFetchDefinition, i as MCPTransportType, t as MCPToolConfig, u as ProjectScopeConfig, v as FullAgentDefinition, w as AgentScopeConfig, C as ConversationHistoryConfig, x as PaginationConfig, y as AgentInsert, z as AgentUpdate, B as AgentSelect, D as ApiKeySelect, E as ApiKeyInsert, G as ApiKeyUpdate, H as CreateApiKeyParams, I as ApiKeyCreateResult, J as ArtifactComponentSelect, K as ArtifactComponentInsert, L as ArtifactComponentUpdate, N as SubAgentScopeConfig, O as ContextCacheSelect, Q as ContextCacheInsert, R as ContextConfigInsert, U as ContextConfigUpdate, V as ConversationSelect, W as ConversationInsert, o as ConversationMetadata, X as ConversationUpdate, Y as CredentialReferenceSelect, Z as ToolSelect, _ as ExternalAgentSelect, $ as CredentialReferenceInsert, a0 as CredentialReferenceUpdate, a1 as DataComponentSelect, a2 as DataComponentInsert, a3 as DataComponentUpdate, a4 as ExternalAgentInsert, a5 as ExternalAgentUpdate, a6 as FunctionApiInsert, a7 as FunctionToolApiInsert, a8 as FunctionToolApiUpdate, a9 as Artifact, aa as LedgerArtifactSelect, q as MessageMetadata, p as MessageContent, ab as MessageVisibility, ac as MessageInsert, ad as MessageUpdate, ae as FullProjectDefinition, af as ProjectInfo, ag as ProjectSelect, ah as PaginationResult, ai as ProjectResourceCounts, aj as ProjectInsert, ak as ProjectUpdate, al as SubAgentExternalAgentRelationInsert, am as SubAgentRelationInsert, an as SubAgentRelationUpdate, ao as SubAgentToolRelationUpdate, m as ToolMcpConfig, n as ToolServerCapabilities, ap as SubAgentInsert, aq as SubAgentUpdate, ar as SubAgentSelect, as as SubAgentTeamAgentRelationInsert, at as TaskInsert, T as TaskMetadataConfig, au as TaskSelect, av as McpTool, aw as ToolInsert, ax as ToolUpdate, h as CredentialStoreType, ay as ExecutionContext } from './utility-qLyZ45lb.cjs';
6
- export { ba as A2AError, bG as A2ARequest, bH as A2AResponse, aL as APIKeySecurityScheme, bV as AgentApiInsert, e6 as AgentApiInsertSchema, bU as AgentApiSelect, e5 as AgentApiSelectSchema, bW as AgentApiUpdate, e7 as AgentApiUpdateSchema, aH as AgentCapabilities, aV as AgentCard, dx as AgentConversationHistoryConfig, e3 as AgentInsertSchema, gQ as AgentListResponse, aI as AgentProvider, gA as AgentResponse, e2 as AgentSelectSchema, aJ as AgentSkill, e as AgentStopWhen, b as AgentStopWhenSchema, e4 as AgentUpdateSchema, gk as AgentWithinContextOfProjectSchema, fa as AllAgentSchema, cP as AllAgentSelect, cT as ApiKeyApiCreationResponse, ff as ApiKeyApiCreationResponseSchema, cR as ApiKeyApiInsert, fg as ApiKeyApiInsertSchema, cQ as ApiKeyApiSelect, fe as ApiKeyApiSelectSchema, cS as ApiKeyApiUpdate, A as ApiKeyApiUpdateSchema, fc as ApiKeyInsertSchema, gU as ApiKeyListResponse, gE as ApiKeyResponse, fb as ApiKeySelectSchema, fd as ApiKeyUpdateSchema, cE as ArtifactComponentApiInsert, eY as ArtifactComponentApiInsertSchema, cD as ArtifactComponentApiSelect, eX as ArtifactComponentApiSelectSchema, cF as ArtifactComponentApiUpdate, eZ as ArtifactComponentApiUpdateSchema, eV as ArtifactComponentInsertSchema, gZ as ArtifactComponentListResponse, gJ as ArtifactComponentResponse, eU as ArtifactComponentSelectSchema, eW as ArtifactComponentUpdateSchema, aO as AuthorizationCodeOAuthFlow, dg as CanDelegateToExternalAgent, df as CanUseItem, gg as CanUseItemSchema, bq as CancelTaskRequest, bB as CancelTaskResponse, bA as CancelTaskSuccessResponse, aP as ClientCredentialsOAuthFlow, fs as ComponentAssociationSchema, b8 as ContentTypeNotSupportedError, cs as ContextCacheApiInsert, eF as ContextCacheApiInsertSchema, cr as ContextCacheApiSelect, eE as ContextCacheApiSelectSchema, ct as ContextCacheApiUpdate, eG as ContextCacheApiUpdateSchema, dy as ContextCacheEntry, eC as ContextCacheInsertSchema, eB as ContextCacheSelectSchema, cq as ContextCacheUpdate, eD as ContextCacheUpdateSchema, cm as ContextConfigApiInsert, fQ as ContextConfigApiInsertSchema, cl as ContextConfigApiSelect, fP as ContextConfigApiSelectSchema, cn as ContextConfigApiUpdate, fR as ContextConfigApiUpdateSchema, fN as ContextConfigInsertSchema, gT as ContextConfigListResponse, gD as ContextConfigResponse, fM as ContextConfigSelectSchema, fO as ContextConfigUpdateSchema, cf as ConversationApiInsert, et as ConversationApiInsertSchema, ce as ConversationApiSelect, es as ConversationApiSelectSchema, cg as ConversationApiUpdate, eu as ConversationApiUpdateSchema, eq as ConversationInsertSchema, h0 as ConversationListResponse, gM as ConversationResponse, dw as ConversationScopeOptions, ep as ConversationSelectSchema, er as ConversationUpdateSchema, fp as CreateCredentialInStoreRequestSchema, fq as CreateCredentialInStoreResponseSchema, fl as CredentialReferenceApiInsertSchema, cU as CredentialReferenceApiSelect, fk as CredentialReferenceApiSelectSchema, cV as CredentialReferenceApiUpdate, fm as CredentialReferenceApiUpdateSchema, fi as CredentialReferenceInsertSchema, gV as CredentialReferenceListResponse, gF as CredentialReferenceResponse, fh as CredentialReferenceSelectSchema, fj as CredentialReferenceUpdateSchema, fo as CredentialStoreListResponseSchema, fn as CredentialStoreSchema, cv as DataComponentApiInsert, eM as DataComponentApiInsertSchema, cu as DataComponentApiSelect, eL as DataComponentApiSelectSchema, cw as DataComponentApiUpdate, eN as DataComponentApiUpdateSchema, eJ as DataComponentBaseSchema, eI as DataComponentInsertSchema, gY as DataComponentListResponse, gI as DataComponentResponse, eH as DataComponentSelectSchema, eK as DataComponentUpdateSchema, aF as DataPart, go as ErrorResponseSchema, gp as ExistsResponseSchema, cN as ExternalAgentApiInsert, f8 as ExternalAgentApiInsertSchema, cM as ExternalAgentApiSelect, f7 as ExternalAgentApiSelectSchema, cO as ExternalAgentApiUpdate, f9 as ExternalAgentApiUpdateSchema, f5 as ExternalAgentInsertSchema, gS as ExternalAgentListResponse, gC as ExternalAgentResponse, f4 as ExternalAgentSelectSchema, f6 as ExternalAgentUpdateSchema, bT as ExternalSubAgentRelationApiInsert, e1 as ExternalSubAgentRelationApiInsertSchema, bS as ExternalSubAgentRelationInsert, e0 as ExternalSubAgentRelationInsertSchema, cp as FetchConfig, fK as FetchConfigSchema, co as FetchDefinition, fL as FetchDefinitionSchema, aB as FileBase, aE as FilePart, aC as FileWithBytes, aD as FileWithUri, de as FullAgentAgentInsert, a as FullAgentAgentInsertSchema, gx as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, cb as FunctionApiSelect, j as FunctionApiSelectSchema, cc as FunctionApiUpdate, k as FunctionApiUpdateSchema, c9 as FunctionInsert, fI as FunctionInsertSchema, gW as FunctionListResponse, gG as FunctionResponse, c8 as FunctionSelect, fH as FunctionSelectSchema, fF as FunctionToolApiInsertSchema, cd as FunctionToolApiSelect, fE as FunctionToolApiSelectSchema, fG as FunctionToolApiUpdateSchema, dO as FunctionToolConfig, dN as FunctionToolConfigSchema, fC as FunctionToolInsertSchema, gX as FunctionToolListResponse, gH as FunctionToolResponse, fB as FunctionToolSelectSchema, fD as FunctionToolUpdateSchema, ca as FunctionUpdate, fJ as FunctionUpdateSchema, bs as GetTaskPushNotificationConfigRequest, bF as GetTaskPushNotificationConfigResponse, bE as GetTaskPushNotificationConfigSuccessResponse, bp as GetTaskRequest, bz as GetTaskResponse, by as GetTaskSuccessResponse, aM as HTTPAuthSecurityScheme, h6 as HeadersScopeSchema, aQ as ImplicitOAuthFlow, b3 as InternalError, b9 as InvalidAgentResponseError, b2 as InvalidParamsError, b0 as InvalidRequestError, a$ as JSONParseError, bk as JSONRPCError, bm as JSONRPCErrorResponse, bi as JSONRPCMessage, bj as JSONRPCRequest, bl as JSONRPCResult, dc as LedgerArtifactApiInsert, gc as LedgerArtifactApiInsertSchema, db as LedgerArtifactApiSelect, gb as LedgerArtifactApiSelectSchema, dd as LedgerArtifactApiUpdate, gd as LedgerArtifactApiUpdateSchema, d9 as LedgerArtifactInsert, g9 as LedgerArtifactInsertSchema, g8 as LedgerArtifactSelectSchema, da as LedgerArtifactUpdate, ga as LedgerArtifactUpdateSchema, gm as ListResponseSchema, dI as MAX_ID_LENGTH, dG as MCPServerType, fw as MCPToolConfigSchema, dH as MIN_ID_LENGTH, dz as McpAuthType, dA as McpServerAuth, dC as McpServerCapabilities, dD as McpToolDefinition, em as McpToolDefinitionSchema, fv as McpToolSchema, dB as McpTransportConfig, ek as McpTransportConfigSchema, aW as Message, cj as MessageApiInsert, ez as MessageApiInsertSchema, ci as MessageApiSelect, ey as MessageApiSelectSchema, ck as MessageApiUpdate, eA as MessageApiUpdateSchema, ew as MessageInsertSchema, h1 as MessageListResponse, dr as MessageMode, bI as MessagePart, gN as MessageResponse, dq as MessageRole, ch as MessageSelect, ev as MessageSelectSchema, bg as MessageSendConfiguration, bh as MessageSendParams, dp as MessageType, ex as MessageUpdateSchema, b1 as MethodNotFoundError, dL as ModelSchema, g as ModelSettings, M as ModelSettingsSchema, ds as Models, aS as OAuth2SecurityScheme, fu as OAuthCallbackQuerySchema, aN as OAuthFlows, ft as OAuthLoginQuerySchema, aT as OpenIdConnectSecurityScheme, dm as Pagination, hf as PaginationQueryParamsSchema, gl as PaginationSchema, P as Part, az as PartBase, aR as PasswordOAuthFlow, dk as ProjectApiInsert, gv as ProjectApiInsertSchema, dj as ProjectApiSelect, gu as ProjectApiSelectSchema, dl as ProjectApiUpdate, gw as ProjectApiUpdateSchema, gs as ProjectInsertSchema, gO as ProjectListResponse, dM as ProjectModelSchema, dt as ProjectModels, gy as ProjectResponse, gr as ProjectSelectSchema, gt as ProjectUpdateSchema, bb as PushNotificationAuthenticationInfo, bc as PushNotificationConfig, b6 as PushNotificationNotSupportedError, fr as RelatedAgentInfoSchema, gq as RemovedResponseSchema, aU as SecurityScheme, aK as SecuritySchemeBase, bn as SendMessageRequest, bv as SendMessageResponse, bu as SendMessageSuccessResponse, bo as SendStreamingMessageRequest, bx as SendStreamingMessageResponse, bw as SendStreamingMessageSuccessResponse, br as SetTaskPushNotificationConfigRequest, bD as SetTaskPushNotificationConfigResponse, bC as SetTaskPushNotificationConfigSuccessResponse, gn as SingleResponseSchema, dv as StatusComponent, ge as StatusComponentSchema, gf as StatusUpdateSchema, du as StatusUpdateSettings, d as StopWhen, S as StopWhenSchema, bL as SubAgentApiInsert, dT as SubAgentApiInsertSchema, bK as SubAgentApiSelect, dS as SubAgentApiSelectSchema, bM as SubAgentApiUpdate, dU as SubAgentApiUpdateSchema, cK as SubAgentArtifactComponentApiInsert, f2 as SubAgentArtifactComponentApiInsertSchema, cJ as SubAgentArtifactComponentApiSelect, f1 as SubAgentArtifactComponentApiSelectSchema, cL as SubAgentArtifactComponentApiUpdate, f3 as SubAgentArtifactComponentApiUpdateSchema, cH as SubAgentArtifactComponentInsert, e$ as SubAgentArtifactComponentInsertSchema, h5 as SubAgentArtifactComponentListResponse, h3 as SubAgentArtifactComponentResponse, cG as SubAgentArtifactComponentSelect, e_ as SubAgentArtifactComponentSelectSchema, cI as SubAgentArtifactComponentUpdate, f0 as SubAgentArtifactComponentUpdateSchema, cB as SubAgentDataComponentApiInsert, eS as SubAgentDataComponentApiInsertSchema, cA as SubAgentDataComponentApiSelect, eR as SubAgentDataComponentApiSelectSchema, cC as SubAgentDataComponentApiUpdate, eT as SubAgentDataComponentApiUpdateSchema, cy as SubAgentDataComponentInsert, eP as SubAgentDataComponentInsertSchema, h4 as SubAgentDataComponentListResponse, h2 as SubAgentDataComponentResponse, cx as SubAgentDataComponentSelect, eO as SubAgentDataComponentSelectSchema, cz as SubAgentDataComponentUpdate, eQ as SubAgentDataComponentUpdateSchema, dh as SubAgentDefinition, d2 as SubAgentExternalAgentRelationApiInsert, g0 as SubAgentExternalAgentRelationApiInsertSchema, d1 as SubAgentExternalAgentRelationApiSelect, f$ as SubAgentExternalAgentRelationApiSelectSchema, d3 as SubAgentExternalAgentRelationApiUpdate, g1 as SubAgentExternalAgentRelationApiUpdateSchema, fZ as SubAgentExternalAgentRelationInsertSchema, c$ as SubAgentExternalAgentRelationSelect, fY as SubAgentExternalAgentRelationSelectSchema, d0 as SubAgentExternalAgentRelationUpdate, f_ as SubAgentExternalAgentRelationUpdateSchema, dQ as SubAgentInsertSchema, gP as SubAgentListResponse, bP as SubAgentRelationApiInsert, dZ as SubAgentRelationApiInsertSchema, bO as SubAgentRelationApiSelect, dY as SubAgentRelationApiSelectSchema, bQ as SubAgentRelationApiUpdate, d_ as SubAgentRelationApiUpdateSchema, dW as SubAgentRelationInsertSchema, g_ as SubAgentRelationListResponse, bR as SubAgentRelationQuery, d$ as SubAgentRelationQuerySchema, gK as SubAgentRelationResponse, bN as SubAgentRelationSelect, dV as SubAgentRelationSelectSchema, dX as SubAgentRelationUpdateSchema, gz as SubAgentResponse, dP as SubAgentSelectSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema, d7 as SubAgentTeamAgentRelationApiInsert, g6 as SubAgentTeamAgentRelationApiInsertSchema, d6 as SubAgentTeamAgentRelationApiSelect, g5 as SubAgentTeamAgentRelationApiSelectSchema, d8 as SubAgentTeamAgentRelationApiUpdate, g7 as SubAgentTeamAgentRelationApiUpdateSchema, g3 as SubAgentTeamAgentRelationInsertSchema, d4 as SubAgentTeamAgentRelationSelect, g2 as SubAgentTeamAgentRelationSelectSchema, d5 as SubAgentTeamAgentRelationUpdate, g4 as SubAgentTeamAgentRelationUpdateSchema, cZ as SubAgentToolRelationApiInsert, fW as SubAgentToolRelationApiInsertSchema, cY as SubAgentToolRelationApiSelect, fV as SubAgentToolRelationApiSelectSchema, c_ as SubAgentToolRelationApiUpdate, fX as SubAgentToolRelationApiUpdateSchema, cX as SubAgentToolRelationInsert, fT as SubAgentToolRelationInsertSchema, g$ as SubAgentToolRelationListResponse, gL as SubAgentToolRelationResponse, cW as SubAgentToolRelationSelect, fS as SubAgentToolRelationSelectSchema, fU as SubAgentToolRelationUpdateSchema, dR as SubAgentUpdateSchema, dn as SummaryEvent, dE as TOOL_STATUS_VALUES, aY as Task, bZ as TaskApiInsert, ec as TaskApiInsertSchema, bY as TaskApiSelect, eb as TaskApiSelectSchema, b_ as TaskApiUpdate, ed as TaskApiUpdateSchema, bJ as TaskArtifact, a_ as TaskArtifactUpdateEvent, be as TaskIdParams, e9 as TaskInsertSchema, b5 as TaskNotCancelableError, b4 as TaskNotFoundError, bd as TaskPushNotificationConfig, bf as TaskQueryParams, c3 as TaskRelationApiInsert, ei as TaskRelationApiInsertSchema, c2 as TaskRelationApiSelect, eh as TaskRelationApiSelectSchema, c4 as TaskRelationApiUpdate, ej as TaskRelationApiUpdateSchema, c0 as TaskRelationInsert, ef as TaskRelationInsertSchema, b$ as TaskRelationSelect, ee as TaskRelationSelectSchema, c1 as TaskRelationUpdate, eg as TaskRelationUpdateSchema, bt as TaskResubscriptionRequest, e8 as TaskSelectSchema, aG as TaskState, aX as TaskStatus, aZ as TaskStatusUpdateEvent, bX as TaskUpdate, ea as TaskUpdateSchema, gj as TeamAgentSchema, h8 as TenantIdParamsSchema, h7 as TenantParamsSchema, hc as TenantProjectAgentIdParamsSchema, hb as TenantProjectAgentParamsSchema, he as TenantProjectAgentSubAgentIdParamsSchema, hd as TenantProjectAgentSubAgentParamsSchema, ha as TenantProjectIdParamsSchema, h9 as TenantProjectParamsSchema, aA as TextPart, c6 as ToolApiInsert, fz as ToolApiInsertSchema, c5 as ToolApiSelect, fy as ToolApiSelectSchema, c7 as ToolApiUpdate, fA as ToolApiUpdateSchema, di as ToolDefinition, eo as ToolInsertSchema, gR as ToolListResponse, gB as ToolResponse, en as ToolSelectSchema, el as ToolStatusSchema, fx as ToolUpdateSchema, dJ as URL_SAFE_ID_PATTERN, b7 as UnsupportedOperationError, dF as VALID_RELATION_TYPES, gh as canDelegateToExternalAgentSchema, gi as canDelegateToTeamAgentSchema, dK as resourceIdSchema } from './utility-qLyZ45lb.cjs';
5
+ import { r as CredentialReferenceApiInsert, s as ContextConfigSelect, l as ContextFetchDefinition, i as MCPTransportType, t as MCPToolConfig, u as ProjectScopeConfig, v as FullAgentDefinition, w as AgentScopeConfig, C as ConversationHistoryConfig, x as PaginationConfig, y as AgentInsert, z as AgentUpdate, B as AgentSelect, D as ApiKeySelect, E as ApiKeyInsert, G as ApiKeyUpdate, H as CreateApiKeyParams, I as ApiKeyCreateResult, J as ArtifactComponentSelect, K as ArtifactComponentInsert, L as ArtifactComponentUpdate, N as SubAgentScopeConfig, O as ContextCacheSelect, Q as ContextCacheInsert, R as ContextConfigInsert, U as ContextConfigUpdate, V as ConversationSelect, W as ConversationInsert, o as ConversationMetadata, X as ConversationUpdate, Y as CredentialReferenceSelect, Z as ToolSelect, _ as ExternalAgentSelect, $ as CredentialReferenceInsert, a0 as CredentialReferenceUpdate, a1 as DataComponentSelect, a2 as DataComponentInsert, a3 as DataComponentUpdate, a4 as ExternalAgentInsert, a5 as ExternalAgentUpdate, a6 as FunctionApiInsert, a7 as FunctionToolApiInsert, a8 as FunctionToolApiUpdate, a9 as Artifact, aa as LedgerArtifactSelect, q as MessageMetadata, p as MessageContent, ab as MessageVisibility, ac as MessageInsert, ad as MessageUpdate, ae as FullProjectDefinition, af as ProjectInfo, ag as ProjectSelect, ah as PaginationResult, ai as ProjectResourceCounts, aj as ProjectInsert, ak as ProjectUpdate, al as SubAgentExternalAgentRelationInsert, am as SubAgentRelationInsert, an as SubAgentRelationUpdate, ao as SubAgentToolRelationUpdate, m as ToolMcpConfig, n as ToolServerCapabilities, ap as SubAgentInsert, aq as SubAgentUpdate, ar as SubAgentSelect, as as SubAgentTeamAgentRelationInsert, at as TaskInsert, T as TaskMetadataConfig, au as TaskSelect, av as McpTool, aw as ToolInsert, ax as ToolUpdate, h as CredentialStoreType, ay as ExecutionContext } from './utility-DNsYIxBh.cjs';
6
+ export { ba as A2AError, bG as A2ARequest, bH as A2AResponse, aL as APIKeySecurityScheme, bV as AgentApiInsert, e6 as AgentApiInsertSchema, bU as AgentApiSelect, e5 as AgentApiSelectSchema, bW as AgentApiUpdate, e7 as AgentApiUpdateSchema, aH as AgentCapabilities, aV as AgentCard, dx as AgentConversationHistoryConfig, e3 as AgentInsertSchema, gQ as AgentListResponse, aI as AgentProvider, gA as AgentResponse, e2 as AgentSelectSchema, aJ as AgentSkill, e as AgentStopWhen, b as AgentStopWhenSchema, e4 as AgentUpdateSchema, gk as AgentWithinContextOfProjectSchema, fa as AllAgentSchema, cP as AllAgentSelect, cT as ApiKeyApiCreationResponse, ff as ApiKeyApiCreationResponseSchema, cR as ApiKeyApiInsert, fg as ApiKeyApiInsertSchema, cQ as ApiKeyApiSelect, fe as ApiKeyApiSelectSchema, cS as ApiKeyApiUpdate, A as ApiKeyApiUpdateSchema, fc as ApiKeyInsertSchema, gU as ApiKeyListResponse, gE as ApiKeyResponse, fb as ApiKeySelectSchema, fd as ApiKeyUpdateSchema, cE as ArtifactComponentApiInsert, eY as ArtifactComponentApiInsertSchema, cD as ArtifactComponentApiSelect, eX as ArtifactComponentApiSelectSchema, cF as ArtifactComponentApiUpdate, eZ as ArtifactComponentApiUpdateSchema, eV as ArtifactComponentInsertSchema, gZ as ArtifactComponentListResponse, gJ as ArtifactComponentResponse, eU as ArtifactComponentSelectSchema, eW as ArtifactComponentUpdateSchema, aO as AuthorizationCodeOAuthFlow, dg as CanDelegateToExternalAgent, df as CanUseItem, gg as CanUseItemSchema, bq as CancelTaskRequest, bB as CancelTaskResponse, bA as CancelTaskSuccessResponse, aP as ClientCredentialsOAuthFlow, fs as ComponentAssociationSchema, b8 as ContentTypeNotSupportedError, cs as ContextCacheApiInsert, eF as ContextCacheApiInsertSchema, cr as ContextCacheApiSelect, eE as ContextCacheApiSelectSchema, ct as ContextCacheApiUpdate, eG as ContextCacheApiUpdateSchema, dy as ContextCacheEntry, eC as ContextCacheInsertSchema, eB as ContextCacheSelectSchema, cq as ContextCacheUpdate, eD as ContextCacheUpdateSchema, cm as ContextConfigApiInsert, fQ as ContextConfigApiInsertSchema, cl as ContextConfigApiSelect, fP as ContextConfigApiSelectSchema, cn as ContextConfigApiUpdate, fR as ContextConfigApiUpdateSchema, fN as ContextConfigInsertSchema, gT as ContextConfigListResponse, gD as ContextConfigResponse, fM as ContextConfigSelectSchema, fO as ContextConfigUpdateSchema, cf as ConversationApiInsert, et as ConversationApiInsertSchema, ce as ConversationApiSelect, es as ConversationApiSelectSchema, cg as ConversationApiUpdate, eu as ConversationApiUpdateSchema, eq as ConversationInsertSchema, h0 as ConversationListResponse, gM as ConversationResponse, dw as ConversationScopeOptions, ep as ConversationSelectSchema, er as ConversationUpdateSchema, fp as CreateCredentialInStoreRequestSchema, fq as CreateCredentialInStoreResponseSchema, fl as CredentialReferenceApiInsertSchema, cU as CredentialReferenceApiSelect, fk as CredentialReferenceApiSelectSchema, cV as CredentialReferenceApiUpdate, fm as CredentialReferenceApiUpdateSchema, fi as CredentialReferenceInsertSchema, gV as CredentialReferenceListResponse, gF as CredentialReferenceResponse, fh as CredentialReferenceSelectSchema, fj as CredentialReferenceUpdateSchema, fo as CredentialStoreListResponseSchema, fn as CredentialStoreSchema, cv as DataComponentApiInsert, eM as DataComponentApiInsertSchema, cu as DataComponentApiSelect, eL as DataComponentApiSelectSchema, cw as DataComponentApiUpdate, eN as DataComponentApiUpdateSchema, eJ as DataComponentBaseSchema, eI as DataComponentInsertSchema, gY as DataComponentListResponse, gI as DataComponentResponse, eH as DataComponentSelectSchema, eK as DataComponentUpdateSchema, aF as DataPart, go as ErrorResponseSchema, gp as ExistsResponseSchema, cN as ExternalAgentApiInsert, f8 as ExternalAgentApiInsertSchema, cM as ExternalAgentApiSelect, f7 as ExternalAgentApiSelectSchema, cO as ExternalAgentApiUpdate, f9 as ExternalAgentApiUpdateSchema, f5 as ExternalAgentInsertSchema, gS as ExternalAgentListResponse, gC as ExternalAgentResponse, f4 as ExternalAgentSelectSchema, f6 as ExternalAgentUpdateSchema, bT as ExternalSubAgentRelationApiInsert, e1 as ExternalSubAgentRelationApiInsertSchema, bS as ExternalSubAgentRelationInsert, e0 as ExternalSubAgentRelationInsertSchema, cp as FetchConfig, fK as FetchConfigSchema, co as FetchDefinition, fL as FetchDefinitionSchema, aB as FileBase, aE as FilePart, aC as FileWithBytes, aD as FileWithUri, de as FullAgentAgentInsert, a as FullAgentAgentInsertSchema, gx as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, cb as FunctionApiSelect, j as FunctionApiSelectSchema, cc as FunctionApiUpdate, k as FunctionApiUpdateSchema, c9 as FunctionInsert, fI as FunctionInsertSchema, gW as FunctionListResponse, gG as FunctionResponse, c8 as FunctionSelect, fH as FunctionSelectSchema, fF as FunctionToolApiInsertSchema, cd as FunctionToolApiSelect, fE as FunctionToolApiSelectSchema, fG as FunctionToolApiUpdateSchema, dO as FunctionToolConfig, dN as FunctionToolConfigSchema, fC as FunctionToolInsertSchema, gX as FunctionToolListResponse, gH as FunctionToolResponse, fB as FunctionToolSelectSchema, fD as FunctionToolUpdateSchema, ca as FunctionUpdate, fJ as FunctionUpdateSchema, bs as GetTaskPushNotificationConfigRequest, bF as GetTaskPushNotificationConfigResponse, bE as GetTaskPushNotificationConfigSuccessResponse, bp as GetTaskRequest, bz as GetTaskResponse, by as GetTaskSuccessResponse, aM as HTTPAuthSecurityScheme, h6 as HeadersScopeSchema, aQ as ImplicitOAuthFlow, b3 as InternalError, b9 as InvalidAgentResponseError, b2 as InvalidParamsError, b0 as InvalidRequestError, a$ as JSONParseError, bk as JSONRPCError, bm as JSONRPCErrorResponse, bi as JSONRPCMessage, bj as JSONRPCRequest, bl as JSONRPCResult, dc as LedgerArtifactApiInsert, gc as LedgerArtifactApiInsertSchema, db as LedgerArtifactApiSelect, gb as LedgerArtifactApiSelectSchema, dd as LedgerArtifactApiUpdate, gd as LedgerArtifactApiUpdateSchema, d9 as LedgerArtifactInsert, g9 as LedgerArtifactInsertSchema, g8 as LedgerArtifactSelectSchema, da as LedgerArtifactUpdate, ga as LedgerArtifactUpdateSchema, gm as ListResponseSchema, dI as MAX_ID_LENGTH, dG as MCPServerType, fw as MCPToolConfigSchema, dH as MIN_ID_LENGTH, dz as McpAuthType, dA as McpServerAuth, dC as McpServerCapabilities, dD as McpToolDefinition, em as McpToolDefinitionSchema, fv as McpToolSchema, dB as McpTransportConfig, ek as McpTransportConfigSchema, aW as Message, cj as MessageApiInsert, ez as MessageApiInsertSchema, ci as MessageApiSelect, ey as MessageApiSelectSchema, ck as MessageApiUpdate, eA as MessageApiUpdateSchema, ew as MessageInsertSchema, h1 as MessageListResponse, dr as MessageMode, bI as MessagePart, gN as MessageResponse, dq as MessageRole, ch as MessageSelect, ev as MessageSelectSchema, bg as MessageSendConfiguration, bh as MessageSendParams, dp as MessageType, ex as MessageUpdateSchema, b1 as MethodNotFoundError, dL as ModelSchema, g as ModelSettings, M as ModelSettingsSchema, ds as Models, aS as OAuth2SecurityScheme, fu as OAuthCallbackQuerySchema, aN as OAuthFlows, ft as OAuthLoginQuerySchema, aT as OpenIdConnectSecurityScheme, dm as Pagination, hf as PaginationQueryParamsSchema, gl as PaginationSchema, P as Part, az as PartBase, aR as PasswordOAuthFlow, dk as ProjectApiInsert, gv as ProjectApiInsertSchema, dj as ProjectApiSelect, gu as ProjectApiSelectSchema, dl as ProjectApiUpdate, gw as ProjectApiUpdateSchema, gs as ProjectInsertSchema, gO as ProjectListResponse, dM as ProjectModelSchema, dt as ProjectModels, gy as ProjectResponse, gr as ProjectSelectSchema, gt as ProjectUpdateSchema, bb as PushNotificationAuthenticationInfo, bc as PushNotificationConfig, b6 as PushNotificationNotSupportedError, fr as RelatedAgentInfoSchema, gq as RemovedResponseSchema, aU as SecurityScheme, aK as SecuritySchemeBase, bn as SendMessageRequest, bv as SendMessageResponse, bu as SendMessageSuccessResponse, bo as SendStreamingMessageRequest, bx as SendStreamingMessageResponse, bw as SendStreamingMessageSuccessResponse, br as SetTaskPushNotificationConfigRequest, bD as SetTaskPushNotificationConfigResponse, bC as SetTaskPushNotificationConfigSuccessResponse, gn as SingleResponseSchema, dv as StatusComponent, ge as StatusComponentSchema, gf as StatusUpdateSchema, du as StatusUpdateSettings, d as StopWhen, S as StopWhenSchema, bL as SubAgentApiInsert, dT as SubAgentApiInsertSchema, bK as SubAgentApiSelect, dS as SubAgentApiSelectSchema, bM as SubAgentApiUpdate, dU as SubAgentApiUpdateSchema, cK as SubAgentArtifactComponentApiInsert, f2 as SubAgentArtifactComponentApiInsertSchema, cJ as SubAgentArtifactComponentApiSelect, f1 as SubAgentArtifactComponentApiSelectSchema, cL as SubAgentArtifactComponentApiUpdate, f3 as SubAgentArtifactComponentApiUpdateSchema, cH as SubAgentArtifactComponentInsert, e$ as SubAgentArtifactComponentInsertSchema, h5 as SubAgentArtifactComponentListResponse, h3 as SubAgentArtifactComponentResponse, cG as SubAgentArtifactComponentSelect, e_ as SubAgentArtifactComponentSelectSchema, cI as SubAgentArtifactComponentUpdate, f0 as SubAgentArtifactComponentUpdateSchema, cB as SubAgentDataComponentApiInsert, eS as SubAgentDataComponentApiInsertSchema, cA as SubAgentDataComponentApiSelect, eR as SubAgentDataComponentApiSelectSchema, cC as SubAgentDataComponentApiUpdate, eT as SubAgentDataComponentApiUpdateSchema, cy as SubAgentDataComponentInsert, eP as SubAgentDataComponentInsertSchema, h4 as SubAgentDataComponentListResponse, h2 as SubAgentDataComponentResponse, cx as SubAgentDataComponentSelect, eO as SubAgentDataComponentSelectSchema, cz as SubAgentDataComponentUpdate, eQ as SubAgentDataComponentUpdateSchema, dh as SubAgentDefinition, d2 as SubAgentExternalAgentRelationApiInsert, g0 as SubAgentExternalAgentRelationApiInsertSchema, d1 as SubAgentExternalAgentRelationApiSelect, f$ as SubAgentExternalAgentRelationApiSelectSchema, d3 as SubAgentExternalAgentRelationApiUpdate, g1 as SubAgentExternalAgentRelationApiUpdateSchema, fZ as SubAgentExternalAgentRelationInsertSchema, c$ as SubAgentExternalAgentRelationSelect, fY as SubAgentExternalAgentRelationSelectSchema, d0 as SubAgentExternalAgentRelationUpdate, f_ as SubAgentExternalAgentRelationUpdateSchema, dQ as SubAgentInsertSchema, gP as SubAgentListResponse, bP as SubAgentRelationApiInsert, dZ as SubAgentRelationApiInsertSchema, bO as SubAgentRelationApiSelect, dY as SubAgentRelationApiSelectSchema, bQ as SubAgentRelationApiUpdate, d_ as SubAgentRelationApiUpdateSchema, dW as SubAgentRelationInsertSchema, g_ as SubAgentRelationListResponse, bR as SubAgentRelationQuery, d$ as SubAgentRelationQuerySchema, gK as SubAgentRelationResponse, bN as SubAgentRelationSelect, dV as SubAgentRelationSelectSchema, dX as SubAgentRelationUpdateSchema, gz as SubAgentResponse, dP as SubAgentSelectSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema, d7 as SubAgentTeamAgentRelationApiInsert, g6 as SubAgentTeamAgentRelationApiInsertSchema, d6 as SubAgentTeamAgentRelationApiSelect, g5 as SubAgentTeamAgentRelationApiSelectSchema, d8 as SubAgentTeamAgentRelationApiUpdate, g7 as SubAgentTeamAgentRelationApiUpdateSchema, g3 as SubAgentTeamAgentRelationInsertSchema, d4 as SubAgentTeamAgentRelationSelect, g2 as SubAgentTeamAgentRelationSelectSchema, d5 as SubAgentTeamAgentRelationUpdate, g4 as SubAgentTeamAgentRelationUpdateSchema, cZ as SubAgentToolRelationApiInsert, fW as SubAgentToolRelationApiInsertSchema, cY as SubAgentToolRelationApiSelect, fV as SubAgentToolRelationApiSelectSchema, c_ as SubAgentToolRelationApiUpdate, fX as SubAgentToolRelationApiUpdateSchema, cX as SubAgentToolRelationInsert, fT as SubAgentToolRelationInsertSchema, g$ as SubAgentToolRelationListResponse, gL as SubAgentToolRelationResponse, cW as SubAgentToolRelationSelect, fS as SubAgentToolRelationSelectSchema, fU as SubAgentToolRelationUpdateSchema, dR as SubAgentUpdateSchema, dn as SummaryEvent, dE as TOOL_STATUS_VALUES, aY as Task, bZ as TaskApiInsert, ec as TaskApiInsertSchema, bY as TaskApiSelect, eb as TaskApiSelectSchema, b_ as TaskApiUpdate, ed as TaskApiUpdateSchema, bJ as TaskArtifact, a_ as TaskArtifactUpdateEvent, be as TaskIdParams, e9 as TaskInsertSchema, b5 as TaskNotCancelableError, b4 as TaskNotFoundError, bd as TaskPushNotificationConfig, bf as TaskQueryParams, c3 as TaskRelationApiInsert, ei as TaskRelationApiInsertSchema, c2 as TaskRelationApiSelect, eh as TaskRelationApiSelectSchema, c4 as TaskRelationApiUpdate, ej as TaskRelationApiUpdateSchema, c0 as TaskRelationInsert, ef as TaskRelationInsertSchema, b$ as TaskRelationSelect, ee as TaskRelationSelectSchema, c1 as TaskRelationUpdate, eg as TaskRelationUpdateSchema, bt as TaskResubscriptionRequest, e8 as TaskSelectSchema, aG as TaskState, aX as TaskStatus, aZ as TaskStatusUpdateEvent, bX as TaskUpdate, ea as TaskUpdateSchema, gj as TeamAgentSchema, h8 as TenantIdParamsSchema, h7 as TenantParamsSchema, hc as TenantProjectAgentIdParamsSchema, hb as TenantProjectAgentParamsSchema, he as TenantProjectAgentSubAgentIdParamsSchema, hd as TenantProjectAgentSubAgentParamsSchema, ha as TenantProjectIdParamsSchema, h9 as TenantProjectParamsSchema, aA as TextPart, c6 as ToolApiInsert, fz as ToolApiInsertSchema, c5 as ToolApiSelect, fy as ToolApiSelectSchema, c7 as ToolApiUpdate, fA as ToolApiUpdateSchema, di as ToolDefinition, eo as ToolInsertSchema, gR as ToolListResponse, gB as ToolResponse, en as ToolSelectSchema, el as ToolStatusSchema, fx as ToolUpdateSchema, dJ as URL_SAFE_ID_PATTERN, b7 as UnsupportedOperationError, dF as VALID_RELATION_TYPES, gh as canDelegateToExternalAgentSchema, gi as canDelegateToTeamAgentSchema, dK as resourceIdSchema } from './utility-DNsYIxBh.cjs';
7
7
  import { CredentialStore } from './types/index.cjs';
8
8
  export { CorsConfig, ServerConfig, ServerOptions } from './types/index.cjs';
9
9
  import { LibSQLDatabase } from 'drizzle-orm/libsql';
10
- import { s as schema } from './schema-ztSm-Iv6.cjs';
11
- export { G as agentRelations, J as agentToolRelationsRelations, a as agents, y as apiKeys, I as apiKeysRelations, j as artifactComponents, O as artifactComponentsRelations, b as contextCache, E as contextCacheRelations, c as contextConfigs, D as contextConfigsRelations, v as conversations, M as conversationsRelations, z as credentialReferences, K as credentialReferencesRelations, h as dataComponents, Q as dataComponentsRelations, f as externalAgents, H as externalAgentsRelations, m as functionTools, V as functionToolsRelations, n as functions, T as functionsRelations, x as ledgerArtifacts, S as ledgerArtifactsRelations, w as messages, N as messagesRelations, p as projects, B as projectsRelations, k as subAgentArtifactComponents, P as subAgentArtifactComponentsRelations, i as subAgentDataComponents, R as subAgentDataComponentsRelations, q as subAgentExternalAgentRelations, X as subAgentExternalAgentRelationsRelations, u as subAgentFunctionToolRelations, W as subAgentFunctionToolRelationsRelations, e as subAgentRelations, U as subAgentRelationsRelations, r as subAgentTeamAgentRelations, Y as subAgentTeamAgentRelationsRelations, o as subAgentToolRelations, d as subAgents, F as subAgentsRelations, g as taskRelations, C as taskRelationsRelations, t as tasks, A as tasksRelations, l as tools, L as toolsRelations } from './schema-ztSm-Iv6.cjs';
10
+ import { s as schema } from './schema-DcDuYlEP.cjs';
11
+ export { G as agentRelations, J as agentToolRelationsRelations, a as agents, y as apiKeys, I as apiKeysRelations, j as artifactComponents, O as artifactComponentsRelations, b as contextCache, E as contextCacheRelations, c as contextConfigs, D as contextConfigsRelations, v as conversations, M as conversationsRelations, z as credentialReferences, K as credentialReferencesRelations, h as dataComponents, Q as dataComponentsRelations, f as externalAgents, H as externalAgentsRelations, m as functionTools, V as functionToolsRelations, n as functions, T as functionsRelations, x as ledgerArtifacts, S as ledgerArtifactsRelations, w as messages, N as messagesRelations, p as projects, B as projectsRelations, k as subAgentArtifactComponents, P as subAgentArtifactComponentsRelations, i as subAgentDataComponents, R as subAgentDataComponentsRelations, q as subAgentExternalAgentRelations, X as subAgentExternalAgentRelationsRelations, u as subAgentFunctionToolRelations, W as subAgentFunctionToolRelationsRelations, e as subAgentRelations, U as subAgentRelationsRelations, r as subAgentTeamAgentRelations, Y as subAgentTeamAgentRelationsRelations, o as subAgentToolRelations, d as subAgents, F as subAgentsRelations, g as taskRelations, C as taskRelationsRelations, t as tasks, A as tasksRelations, l as tools, L as toolsRelations } from './schema-DcDuYlEP.cjs';
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';
@@ -58,6 +58,58 @@ import 'drizzle-orm';
58
58
  */
59
59
  declare function apiFetch(url: string, options?: RequestInit): Promise<Response>;
60
60
 
61
+ /**
62
+ * Shared execution limit default constants used for runtime behavior across services.
63
+ * These define limits and defaults for runtime execution, not schema validation.
64
+ */
65
+ declare const executionLimitsSharedDefaults: {
66
+ readonly MCP_TOOL_CONNECTION_TIMEOUT_MS: 3000;
67
+ readonly MCP_TOOL_MAX_RETRIES: 3;
68
+ readonly MCP_TOOL_MAX_RECONNECTION_DELAY_MS: 30000;
69
+ readonly MCP_TOOL_INITIAL_RECONNECTION_DELAY_MS: 1000;
70
+ readonly MCP_TOOL_RECONNECTION_DELAY_GROWTH_FACTOR: 1.5;
71
+ readonly CONVERSATION_HISTORY_DEFAULT_LIMIT: 50;
72
+ readonly CONVERSATION_HISTORY_MAX_OUTPUT_TOKENS_DEFAULT: 4000;
73
+ };
74
+
75
+ declare const MCP_TOOL_CONNECTION_TIMEOUT_MS: 3000;
76
+ declare const MCP_TOOL_MAX_RETRIES: 3;
77
+ declare const MCP_TOOL_MAX_RECONNECTION_DELAY_MS: 30000;
78
+ declare const MCP_TOOL_INITIAL_RECONNECTION_DELAY_MS: 1000;
79
+ declare const MCP_TOOL_RECONNECTION_DELAY_GROWTH_FACTOR: 1.5;
80
+ declare const CONVERSATION_HISTORY_DEFAULT_LIMIT: 50;
81
+ declare const CONVERSATION_HISTORY_MAX_OUTPUT_TOKENS_DEFAULT: 4000;
82
+
83
+ /**
84
+ * Schema validation default constants used in Zod schemas.
85
+ * These define limits and defaults for user-configurable values.
86
+ */
87
+ declare const schemaValidationDefaults: {
88
+ readonly AGENT_EXECUTION_TRANSFER_COUNT_MIN: 1;
89
+ readonly AGENT_EXECUTION_TRANSFER_COUNT_MAX: 1000;
90
+ readonly AGENT_EXECUTION_TRANSFER_COUNT_DEFAULT: 10;
91
+ readonly SUB_AGENT_TURN_GENERATION_STEPS_MIN: 1;
92
+ readonly SUB_AGENT_TURN_GENERATION_STEPS_MAX: 1000;
93
+ readonly SUB_AGENT_TURN_GENERATION_STEPS_DEFAULT: 12;
94
+ readonly STATUS_UPDATE_MAX_NUM_EVENTS: 100;
95
+ readonly STATUS_UPDATE_MAX_INTERVAL_SECONDS: 600;
96
+ readonly VALIDATION_SUB_AGENT_PROMPT_MAX_CHARS: 2000;
97
+ readonly VALIDATION_AGENT_PROMPT_MAX_CHARS: 5000;
98
+ readonly CONTEXT_FETCHER_HTTP_TIMEOUT_MS_DEFAULT: 10000;
99
+ };
100
+
101
+ declare const AGENT_EXECUTION_TRANSFER_COUNT_MIN: 1;
102
+ declare const AGENT_EXECUTION_TRANSFER_COUNT_MAX: 1000;
103
+ declare const AGENT_EXECUTION_TRANSFER_COUNT_DEFAULT: 10;
104
+ declare const SUB_AGENT_TURN_GENERATION_STEPS_MIN: 1;
105
+ declare const SUB_AGENT_TURN_GENERATION_STEPS_MAX: 1000;
106
+ declare const SUB_AGENT_TURN_GENERATION_STEPS_DEFAULT: 12;
107
+ declare const STATUS_UPDATE_MAX_NUM_EVENTS: 100;
108
+ declare const STATUS_UPDATE_MAX_INTERVAL_SECONDS: 600;
109
+ declare const VALIDATION_SUB_AGENT_PROMPT_MAX_CHARS: 2000;
110
+ declare const VALIDATION_AGENT_PROMPT_MAX_CHARS: 5000;
111
+ declare const CONTEXT_FETCHER_HTTP_TIMEOUT_MS_DEFAULT: 10000;
112
+
61
113
  type Primitive = string | number | boolean | bigint | symbol | null | undefined | Date;
62
114
  type JoinDot<P extends string, K extends string> = [P] extends [''] ? K : `${P}.${K}`;
63
115
  type DotPaths<T, P extends string = ''> = [T] extends [Primitive] ? P : T extends ReadonlyArray<infer U> ? P | DotPaths<U, `${P}[${number}]`> | DotPaths<U, `${P}[*]`> : T extends Array<infer U> ? P | DotPaths<U, `${P}[${number}]`> | DotPaths<U, `${P}[*]`> : T extends object ? P | {
@@ -790,13 +842,14 @@ declare const deleteFullAgent: (db: DatabaseClient, logger?: AgentLogger) => (pa
790
842
  declare const getAgentById: (db: DatabaseClient) => (params: {
791
843
  scopes: AgentScopeConfig;
792
844
  }) => Promise<{
793
- name: string;
845
+ tenantId: string;
846
+ projectId: string;
794
847
  id: string;
848
+ name: string;
849
+ description: string | null;
850
+ prompt: string | null;
795
851
  createdAt: string;
796
852
  updatedAt: string;
797
- projectId: string;
798
- tenantId: string;
799
- description: string | null;
800
853
  models: {
801
854
  base?: {
802
855
  model?: string | undefined;
@@ -816,7 +869,6 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
816
869
  } | null;
817
870
  defaultSubAgentId: string | null;
818
871
  contextConfigId: string | null;
819
- prompt: string | null;
820
872
  statusUpdates: {
821
873
  enabled?: boolean | undefined;
822
874
  numEvents?: number | undefined;
@@ -836,13 +888,14 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
836
888
  declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
837
889
  scopes: AgentScopeConfig;
838
890
  }) => Promise<{
839
- name: string;
891
+ tenantId: string;
892
+ projectId: string;
840
893
  id: string;
894
+ name: string;
895
+ description: string | null;
896
+ prompt: string | null;
841
897
  createdAt: string;
842
898
  updatedAt: string;
843
- projectId: string;
844
- tenantId: string;
845
- description: string | null;
846
899
  models: {
847
900
  base?: {
848
901
  model?: string | undefined;
@@ -862,7 +915,6 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
862
915
  } | null;
863
916
  defaultSubAgentId: string | null;
864
917
  contextConfigId: string | null;
865
- prompt: string | null;
866
918
  statusUpdates: {
867
919
  enabled?: boolean | undefined;
868
920
  numEvents?: number | undefined;
@@ -879,13 +931,15 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
879
931
  }[] | undefined;
880
932
  } | null;
881
933
  defaultSubAgent: {
882
- name: string;
934
+ tenantId: string;
935
+ projectId: string;
883
936
  id: string;
937
+ name: string;
938
+ description: string;
939
+ prompt: string;
940
+ agentId: string;
884
941
  createdAt: string;
885
942
  updatedAt: string;
886
- projectId: string;
887
- tenantId: string;
888
- description: string;
889
943
  models: {
890
944
  base?: {
891
945
  model?: string | undefined;
@@ -903,21 +957,20 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
903
957
  stopWhen: {
904
958
  stepCountIs?: number | undefined;
905
959
  } | null;
906
- agentId: string;
907
- prompt: string;
908
960
  conversationHistoryConfig: ConversationHistoryConfig | null;
909
961
  } | null;
910
962
  } | null>;
911
963
  declare const listAgents: (db: DatabaseClient) => (params: {
912
964
  scopes: ProjectScopeConfig;
913
965
  }) => Promise<{
914
- name: string;
966
+ tenantId: string;
967
+ projectId: string;
915
968
  id: string;
969
+ name: string;
970
+ description: string | null;
971
+ prompt: string | null;
916
972
  createdAt: string;
917
973
  updatedAt: string;
918
- projectId: string;
919
- tenantId: string;
920
- description: string | null;
921
974
  models: {
922
975
  base?: {
923
976
  model?: string | undefined;
@@ -937,7 +990,6 @@ declare const listAgents: (db: DatabaseClient) => (params: {
937
990
  } | null;
938
991
  defaultSubAgentId: string | null;
939
992
  contextConfigId: string | null;
940
- prompt: string | null;
941
993
  statusUpdates: {
942
994
  enabled?: boolean | undefined;
943
995
  numEvents?: number | undefined;
@@ -1010,13 +1062,14 @@ declare const listAgentsPaginated: (db: DatabaseClient) => (params: {
1010
1062
  };
1011
1063
  }>;
1012
1064
  declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promise<{
1013
- name: string;
1065
+ tenantId: string;
1066
+ projectId: string;
1014
1067
  id: string;
1068
+ name: string;
1069
+ description: string | null;
1070
+ prompt: string | null;
1015
1071
  createdAt: string;
1016
1072
  updatedAt: string;
1017
- projectId: string;
1018
- tenantId: string;
1019
- description: string | null;
1020
1073
  models: {
1021
1074
  base?: {
1022
1075
  model?: string | undefined;
@@ -1036,7 +1089,6 @@ declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promis
1036
1089
  } | null;
1037
1090
  defaultSubAgentId: string | null;
1038
1091
  contextConfigId: string | null;
1039
- prompt: string | null;
1040
1092
  statusUpdates: {
1041
1093
  enabled?: boolean | undefined;
1042
1094
  numEvents?: number | undefined;
@@ -1057,13 +1109,14 @@ declare const updateAgent: (db: DatabaseClient) => (params: {
1057
1109
  scopes: AgentScopeConfig;
1058
1110
  data: AgentUpdate;
1059
1111
  }) => Promise<{
1060
- name: string;
1112
+ tenantId: string;
1113
+ projectId: string;
1061
1114
  id: string;
1115
+ name: string;
1116
+ description: string | null;
1117
+ prompt: string | null;
1062
1118
  createdAt: string;
1063
1119
  updatedAt: string;
1064
- projectId: string;
1065
- tenantId: string;
1066
- description: string | null;
1067
1120
  models: {
1068
1121
  base?: {
1069
1122
  model?: string | undefined;
@@ -1083,7 +1136,6 @@ declare const updateAgent: (db: DatabaseClient) => (params: {
1083
1136
  } | null;
1084
1137
  defaultSubAgentId: string | null;
1085
1138
  contextConfigId: string | null;
1086
- prompt: string | null;
1087
1139
  statusUpdates: {
1088
1140
  enabled?: boolean | undefined;
1089
1141
  numEvents?: number | undefined;
@@ -1137,49 +1189,49 @@ declare const getApiKeyById: (db: DatabaseClient) => (params: {
1137
1189
  scopes: ProjectScopeConfig;
1138
1190
  id: string;
1139
1191
  }) => Promise<{
1140
- name: string | null;
1141
- id: string;
1142
- createdAt: string;
1143
- updatedAt: string;
1144
- projectId: string;
1145
1192
  tenantId: string;
1193
+ projectId: string;
1194
+ id: string;
1195
+ name: string | null;
1146
1196
  agentId: string;
1147
- expiresAt: string | null;
1148
1197
  publicId: string;
1149
1198
  keyHash: string;
1150
1199
  keyPrefix: string;
1151
1200
  lastUsedAt: string | null;
1152
- } | undefined>;
1153
- declare const getApiKeyByPublicId: (db: DatabaseClient) => (publicId: string) => Promise<{
1154
- name: string | null;
1155
- id: string;
1201
+ expiresAt: string | null;
1156
1202
  createdAt: string;
1157
1203
  updatedAt: string;
1158
- projectId: string;
1204
+ } | undefined>;
1205
+ declare const getApiKeyByPublicId: (db: DatabaseClient) => (publicId: string) => Promise<{
1159
1206
  tenantId: string;
1207
+ projectId: string;
1208
+ id: string;
1209
+ name: string | null;
1160
1210
  agentId: string;
1161
- expiresAt: string | null;
1162
1211
  publicId: string;
1163
1212
  keyHash: string;
1164
1213
  keyPrefix: string;
1165
1214
  lastUsedAt: string | null;
1215
+ expiresAt: string | null;
1216
+ createdAt: string;
1217
+ updatedAt: string;
1166
1218
  } | undefined>;
1167
1219
  declare const listApiKeys: (db: DatabaseClient) => (params: {
1168
1220
  scopes: ProjectScopeConfig;
1169
1221
  agentId?: string;
1170
1222
  }) => Promise<{
1171
- name: string | null;
1172
- id: string;
1173
- createdAt: string;
1174
- updatedAt: string;
1175
- projectId: string;
1176
1223
  tenantId: string;
1224
+ projectId: string;
1225
+ id: string;
1226
+ name: string | null;
1177
1227
  agentId: string;
1178
- expiresAt: string | null;
1179
1228
  publicId: string;
1180
1229
  keyHash: string;
1181
1230
  keyPrefix: string;
1182
1231
  lastUsedAt: string | null;
1232
+ expiresAt: string | null;
1233
+ createdAt: string;
1234
+ updatedAt: string;
1183
1235
  }[]>;
1184
1236
  declare const listApiKeysPaginated: (db: DatabaseClient) => (params: {
1185
1237
  scopes: ProjectScopeConfig;
@@ -1195,36 +1247,36 @@ declare const listApiKeysPaginated: (db: DatabaseClient) => (params: {
1195
1247
  };
1196
1248
  }>;
1197
1249
  declare const createApiKey: (db: DatabaseClient) => (params: ApiKeyInsert) => Promise<{
1198
- name: string | null;
1199
- id: string;
1200
- createdAt: string;
1201
- updatedAt: string;
1202
- projectId: string;
1203
1250
  tenantId: string;
1251
+ projectId: string;
1252
+ id: string;
1253
+ name: string | null;
1204
1254
  agentId: string;
1205
- expiresAt: string | null;
1206
1255
  publicId: string;
1207
1256
  keyHash: string;
1208
1257
  keyPrefix: string;
1209
1258
  lastUsedAt: string | null;
1259
+ expiresAt: string | null;
1260
+ createdAt: string;
1261
+ updatedAt: string;
1210
1262
  }>;
1211
1263
  declare const updateApiKey: (db: DatabaseClient) => (params: {
1212
1264
  scopes: ProjectScopeConfig;
1213
1265
  id: string;
1214
1266
  data: ApiKeyUpdate;
1215
1267
  }) => Promise<{
1216
- name: string | null;
1217
- id: string;
1218
- createdAt: string;
1219
- updatedAt: string;
1220
- projectId: string;
1221
1268
  tenantId: string;
1269
+ projectId: string;
1270
+ id: string;
1271
+ name: string | null;
1222
1272
  agentId: string;
1223
- expiresAt: string | null;
1224
1273
  publicId: string;
1225
1274
  keyHash: string;
1226
1275
  keyPrefix: string;
1227
1276
  lastUsedAt: string | null;
1277
+ expiresAt: string | null;
1278
+ createdAt: string;
1279
+ updatedAt: string;
1228
1280
  }>;
1229
1281
  declare const deleteApiKey: (db: DatabaseClient) => (params: {
1230
1282
  scopes: ProjectScopeConfig;
@@ -1253,13 +1305,13 @@ declare const getArtifactComponentById: (db: DatabaseClient) => (params: {
1253
1305
  scopes: ProjectScopeConfig;
1254
1306
  id: string;
1255
1307
  }) => Promise<{
1256
- name: string;
1308
+ tenantId: string;
1309
+ projectId: string;
1257
1310
  id: string;
1311
+ name: string;
1312
+ description: string;
1258
1313
  createdAt: string;
1259
1314
  updatedAt: string;
1260
- projectId: string;
1261
- tenantId: string;
1262
- description: string;
1263
1315
  props: Record<string, unknown> | null;
1264
1316
  } | undefined>;
1265
1317
  declare const listArtifactComponents: (db: DatabaseClient) => (params: {
@@ -1287,13 +1339,13 @@ declare const listArtifactComponentsPaginated: (db: DatabaseClient) => (params:
1287
1339
  };
1288
1340
  }>;
1289
1341
  declare const createArtifactComponent: (db: DatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
1290
- name: string;
1342
+ tenantId: string;
1343
+ projectId: string;
1291
1344
  id: string;
1345
+ name: string;
1346
+ description: string;
1292
1347
  createdAt: string;
1293
1348
  updatedAt: string;
1294
- projectId: string;
1295
- tenantId: string;
1296
- description: string;
1297
1349
  props: Record<string, unknown> | null;
1298
1350
  }>;
1299
1351
  declare const updateArtifactComponent: (db: DatabaseClient) => (params: {
@@ -1301,13 +1353,13 @@ declare const updateArtifactComponent: (db: DatabaseClient) => (params: {
1301
1353
  id: string;
1302
1354
  data: ArtifactComponentUpdate;
1303
1355
  }) => Promise<{
1304
- name: string;
1356
+ tenantId: string;
1357
+ projectId: string;
1305
1358
  id: string;
1359
+ name: string;
1360
+ description: string;
1306
1361
  createdAt: string;
1307
1362
  updatedAt: string;
1308
- projectId: string;
1309
- tenantId: string;
1310
- description: string;
1311
1363
  props: Record<string, unknown> | null;
1312
1364
  }>;
1313
1365
  declare const deleteArtifactComponent: (db: DatabaseClient) => (params: {
@@ -1330,11 +1382,11 @@ declare const associateArtifactComponentWithAgent: (db: DatabaseClient) => (para
1330
1382
  scopes: SubAgentScopeConfig;
1331
1383
  artifactComponentId: string;
1332
1384
  }) => Promise<{
1333
- id: string;
1334
- createdAt: string;
1335
- projectId: string;
1336
1385
  tenantId: string;
1386
+ projectId: string;
1387
+ id: string;
1337
1388
  agentId: string;
1389
+ createdAt: string;
1338
1390
  subAgentId: string;
1339
1391
  artifactComponentId: string;
1340
1392
  }>;
@@ -1373,11 +1425,11 @@ declare const upsertAgentArtifactComponentRelation: (db: DatabaseClient) => (par
1373
1425
  scopes: SubAgentScopeConfig;
1374
1426
  artifactComponentId: string;
1375
1427
  }) => Promise<{
1376
- id: string;
1377
- createdAt: string;
1378
- projectId: string;
1379
1428
  tenantId: string;
1429
+ projectId: string;
1430
+ id: string;
1380
1431
  agentId: string;
1432
+ createdAt: string;
1381
1433
  subAgentId: string;
1382
1434
  artifactComponentId: string;
1383
1435
  } | null>;
@@ -1457,26 +1509,26 @@ declare const getContextConfigById: (db: DatabaseClient) => (params: {
1457
1509
  scopes: AgentScopeConfig;
1458
1510
  id: string;
1459
1511
  }) => Promise<{
1512
+ tenantId: string;
1513
+ projectId: string;
1460
1514
  id: string;
1515
+ agentId: string;
1461
1516
  createdAt: string;
1462
1517
  updatedAt: string;
1463
- projectId: string;
1464
- tenantId: string;
1465
1518
  headersSchema: unknown;
1466
1519
  contextVariables: Record<string, ContextFetchDefinition> | null;
1467
- agentId: string;
1468
1520
  } | undefined>;
1469
1521
  declare const listContextConfigs: (db: DatabaseClient) => (params: {
1470
1522
  scopes: AgentScopeConfig;
1471
1523
  }) => Promise<{
1524
+ tenantId: string;
1525
+ projectId: string;
1472
1526
  id: string;
1527
+ agentId: string;
1473
1528
  createdAt: string;
1474
1529
  updatedAt: string;
1475
- projectId: string;
1476
- tenantId: string;
1477
1530
  headersSchema: unknown;
1478
1531
  contextVariables: Record<string, ContextFetchDefinition> | null;
1479
- agentId: string;
1480
1532
  }[]>;
1481
1533
  declare const listContextConfigsPaginated: (db: DatabaseClient) => (params: {
1482
1534
  scopes: AgentScopeConfig;
@@ -1491,28 +1543,28 @@ declare const listContextConfigsPaginated: (db: DatabaseClient) => (params: {
1491
1543
  };
1492
1544
  }>;
1493
1545
  declare const createContextConfig: (db: DatabaseClient) => (params: ContextConfigInsert) => Promise<{
1546
+ tenantId: string;
1547
+ projectId: string;
1494
1548
  id: string;
1549
+ agentId: string;
1495
1550
  createdAt: string;
1496
1551
  updatedAt: string;
1497
- projectId: string;
1498
- tenantId: string;
1499
1552
  headersSchema: unknown;
1500
1553
  contextVariables: Record<string, ContextFetchDefinition> | null;
1501
- agentId: string;
1502
1554
  }>;
1503
1555
  declare const updateContextConfig: (db: DatabaseClient) => (params: {
1504
1556
  scopes: AgentScopeConfig;
1505
1557
  id: string;
1506
1558
  data: Partial<ContextConfigUpdate>;
1507
1559
  }) => Promise<{
1560
+ tenantId: string;
1561
+ projectId: string;
1508
1562
  id: string;
1563
+ agentId: string;
1509
1564
  createdAt: string;
1510
1565
  updatedAt: string;
1511
- projectId: string;
1512
- tenantId: string;
1513
1566
  headersSchema: unknown;
1514
1567
  contextVariables: Record<string, ContextFetchDefinition> | null;
1515
- agentId: string;
1516
1568
  }>;
1517
1569
  declare const deleteContextConfig: (db: DatabaseClient) => (params: {
1518
1570
  scopes: AgentScopeConfig;
@@ -1531,14 +1583,14 @@ declare const countContextConfigs: (db: DatabaseClient) => (params: {
1531
1583
  declare const upsertContextConfig: (db: DatabaseClient) => (params: {
1532
1584
  data: ContextConfigInsert;
1533
1585
  }) => Promise<{
1586
+ tenantId: string;
1587
+ projectId: string;
1534
1588
  id: string;
1589
+ agentId: string;
1535
1590
  createdAt: string;
1536
1591
  updatedAt: string;
1537
- projectId: string;
1538
- tenantId: string;
1539
1592
  headersSchema: unknown;
1540
1593
  contextVariables: Record<string, ContextFetchDefinition> | null;
1541
- agentId: string;
1542
1594
  }>;
1543
1595
 
1544
1596
  declare const listConversations: (db: DatabaseClient) => (params: {
@@ -1550,12 +1602,12 @@ declare const listConversations: (db: DatabaseClient) => (params: {
1550
1602
  total: number;
1551
1603
  }>;
1552
1604
  declare const createConversation: (db: DatabaseClient) => (params: ConversationInsert) => Promise<{
1605
+ tenantId: string;
1606
+ projectId: string;
1553
1607
  id: string;
1608
+ title: string | null;
1554
1609
  createdAt: string;
1555
1610
  updatedAt: string;
1556
- projectId: string;
1557
- tenantId: string;
1558
- title: string | null;
1559
1611
  metadata: ConversationMetadata | null;
1560
1612
  userId: string | null;
1561
1613
  activeSubAgentId: string;
@@ -1566,12 +1618,12 @@ declare const updateConversation: (db: DatabaseClient) => (params: {
1566
1618
  conversationId: string;
1567
1619
  data: ConversationUpdate;
1568
1620
  }) => Promise<{
1621
+ tenantId: string;
1622
+ projectId: string;
1569
1623
  id: string;
1624
+ title: string | null;
1570
1625
  createdAt: string;
1571
1626
  updatedAt: string;
1572
- projectId: string;
1573
- tenantId: string;
1574
- title: string | null;
1575
1627
  metadata: ConversationMetadata | null;
1576
1628
  userId: string | null;
1577
1629
  activeSubAgentId: string;
@@ -1586,12 +1638,12 @@ declare const updateConversationActiveAgent: (db: DatabaseClient) => (params: {
1586
1638
  conversationId: string;
1587
1639
  activeSubAgentId: string;
1588
1640
  }) => Promise<{
1641
+ tenantId: string;
1642
+ projectId: string;
1589
1643
  id: string;
1644
+ title: string | null;
1590
1645
  createdAt: string;
1591
1646
  updatedAt: string;
1592
- projectId: string;
1593
- tenantId: string;
1594
- title: string | null;
1595
1647
  metadata: ConversationMetadata | null;
1596
1648
  userId: string | null;
1597
1649
  activeSubAgentId: string;
@@ -1601,12 +1653,12 @@ declare const getConversation: (db: DatabaseClient) => (params: {
1601
1653
  scopes: ProjectScopeConfig;
1602
1654
  conversationId: string;
1603
1655
  }) => Promise<{
1656
+ tenantId: string;
1657
+ projectId: string;
1604
1658
  id: string;
1659
+ title: string | null;
1605
1660
  createdAt: string;
1606
1661
  updatedAt: string;
1607
- projectId: string;
1608
- tenantId: string;
1609
- title: string | null;
1610
1662
  metadata: ConversationMetadata | null;
1611
1663
  userId: string | null;
1612
1664
  activeSubAgentId: string;
@@ -1625,12 +1677,12 @@ declare const createOrGetConversation: (db: DatabaseClient) => (input: Conversat
1625
1677
  metadata?: ConversationMetadata | null | undefined;
1626
1678
  contextConfigId?: string | undefined;
1627
1679
  } | {
1680
+ tenantId: string;
1681
+ projectId: string;
1628
1682
  id: string;
1683
+ title: string | null;
1629
1684
  createdAt: string;
1630
1685
  updatedAt: string;
1631
- projectId: string;
1632
- tenantId: string;
1633
- title: string | null;
1634
1686
  metadata: ConversationMetadata | null;
1635
1687
  userId: string | null;
1636
1688
  activeSubAgentId: string;
@@ -1651,12 +1703,12 @@ declare const getActiveAgentForConversation: (db: DatabaseClient) => (params: {
1651
1703
  scopes: ProjectScopeConfig;
1652
1704
  conversationId: string;
1653
1705
  }) => Promise<{
1706
+ tenantId: string;
1707
+ projectId: string;
1654
1708
  id: string;
1709
+ title: string | null;
1655
1710
  createdAt: string;
1656
1711
  updatedAt: string;
1657
- projectId: string;
1658
- tenantId: string;
1659
- title: string | null;
1660
1712
  metadata: ConversationMetadata | null;
1661
1713
  userId: string | null;
1662
1714
  activeSubAgentId: string;
@@ -1821,11 +1873,11 @@ declare const associateDataComponentWithAgent: (db: DatabaseClient) => (params:
1821
1873
  scopes: SubAgentScopeConfig;
1822
1874
  dataComponentId: string;
1823
1875
  }) => Promise<{
1824
- id: string;
1825
- createdAt: string;
1826
- projectId: string;
1827
1876
  tenantId: string;
1877
+ projectId: string;
1878
+ id: string;
1828
1879
  agentId: string;
1880
+ createdAt: string;
1829
1881
  subAgentId: string;
1830
1882
  dataComponentId: string;
1831
1883
  }>;
@@ -1863,11 +1915,11 @@ declare const upsertAgentDataComponentRelation: (db: DatabaseClient) => (params:
1863
1915
  scopes: SubAgentScopeConfig;
1864
1916
  dataComponentId: string;
1865
1917
  }) => Promise<{
1866
- id: string;
1867
- createdAt: string;
1868
- projectId: string;
1869
1918
  tenantId: string;
1919
+ projectId: string;
1920
+ id: string;
1870
1921
  agentId: string;
1922
+ createdAt: string;
1871
1923
  subAgentId: string;
1872
1924
  dataComponentId: string;
1873
1925
  } | null>;
@@ -2042,14 +2094,14 @@ declare const createFunctionTool: (db: DatabaseClient) => (params: {
2042
2094
  data: FunctionToolApiInsert;
2043
2095
  scopes: AgentScopeConfig;
2044
2096
  }) => Promise<{
2045
- name: string;
2046
- id: string;
2047
- createdAt: string;
2048
- updatedAt: string;
2049
- projectId: string;
2050
2097
  tenantId: string;
2098
+ projectId: string;
2099
+ id: string;
2100
+ name: string;
2051
2101
  description: string | null;
2052
2102
  agentId: string;
2103
+ createdAt: string;
2104
+ updatedAt: string;
2053
2105
  functionId: string;
2054
2106
  }>;
2055
2107
  /**
@@ -2060,14 +2112,14 @@ declare const updateFunctionTool: (db: DatabaseClient) => (params: {
2060
2112
  functionToolId: string;
2061
2113
  data: FunctionToolApiUpdate;
2062
2114
  }) => Promise<{
2063
- name: string;
2064
- id: string;
2065
- createdAt: string;
2066
- updatedAt: string;
2067
- projectId: string;
2068
2115
  tenantId: string;
2116
+ projectId: string;
2117
+ id: string;
2118
+ name: string;
2069
2119
  description: string | null;
2070
2120
  agentId: string;
2121
+ createdAt: string;
2122
+ updatedAt: string;
2071
2123
  functionId: string;
2072
2124
  }>;
2073
2125
  /**
@@ -2084,14 +2136,14 @@ declare const upsertFunctionTool: (db: DatabaseClient) => (params: {
2084
2136
  data: FunctionToolApiInsert;
2085
2137
  scopes: AgentScopeConfig;
2086
2138
  }) => Promise<{
2087
- name: string;
2088
- id: string;
2089
- createdAt: string;
2090
- updatedAt: string;
2091
- projectId: string;
2092
2139
  tenantId: string;
2140
+ projectId: string;
2141
+ id: string;
2142
+ name: string;
2093
2143
  description: string | null;
2094
2144
  agentId: string;
2145
+ createdAt: string;
2146
+ updatedAt: string;
2095
2147
  functionId: string;
2096
2148
  }>;
2097
2149
  declare const getFunctionToolsForSubAgent: (db: DatabaseClient) => (params: {
@@ -2221,11 +2273,11 @@ declare const getMessageById: (db: DatabaseClient) => (params: {
2221
2273
  scopes: ProjectScopeConfig;
2222
2274
  messageId: string;
2223
2275
  }) => Promise<{
2276
+ tenantId: string;
2277
+ projectId: string;
2224
2278
  id: string;
2225
2279
  createdAt: string;
2226
2280
  updatedAt: string;
2227
- projectId: string;
2228
- tenantId: string;
2229
2281
  metadata: MessageMetadata | null;
2230
2282
  content: MessageContent;
2231
2283
  conversationId: string;
@@ -2352,11 +2404,11 @@ declare const getVisibleMessages: (db: DatabaseClient) => (params: {
2352
2404
  id: string;
2353
2405
  }[]>;
2354
2406
  declare const createMessage: (db: DatabaseClient) => (params: MessageInsert) => Promise<{
2407
+ tenantId: string;
2408
+ projectId: string;
2355
2409
  id: string;
2356
2410
  createdAt: string;
2357
2411
  updatedAt: string;
2358
- projectId: string;
2359
- tenantId: string;
2360
2412
  metadata: MessageMetadata | null;
2361
2413
  content: MessageContent;
2362
2414
  conversationId: string;
@@ -2379,11 +2431,11 @@ declare const updateMessage: (db: DatabaseClient) => (params: {
2379
2431
  messageId: string;
2380
2432
  data: MessageUpdate;
2381
2433
  }) => Promise<{
2434
+ tenantId: string;
2435
+ projectId: string;
2382
2436
  id: string;
2383
2437
  createdAt: string;
2384
2438
  updatedAt: string;
2385
- projectId: string;
2386
- tenantId: string;
2387
2439
  metadata: MessageMetadata | null;
2388
2440
  content: MessageContent;
2389
2441
  conversationId: string;
@@ -2405,11 +2457,11 @@ declare const deleteMessage: (db: DatabaseClient) => (params: {
2405
2457
  scopes: ProjectScopeConfig;
2406
2458
  messageId: string;
2407
2459
  }) => Promise<{
2460
+ tenantId: string;
2461
+ projectId: string;
2408
2462
  id: string;
2409
2463
  createdAt: string;
2410
2464
  updatedAt: string;
2411
- projectId: string;
2412
- tenantId: string;
2413
2465
  metadata: MessageMetadata | null;
2414
2466
  content: MessageContent;
2415
2467
  conversationId: string;
@@ -2530,15 +2582,15 @@ declare const getSubAgentExternalAgentRelationById: (db: DatabaseClient) => (par
2530
2582
  scopes: SubAgentScopeConfig;
2531
2583
  relationId: string;
2532
2584
  }) => Promise<{
2533
- headers: Record<string, string> | null;
2585
+ tenantId: string;
2586
+ projectId: string;
2534
2587
  id: string;
2588
+ agentId: string;
2535
2589
  createdAt: string;
2536
2590
  updatedAt: string;
2537
- projectId: string;
2538
- tenantId: string;
2539
- agentId: string;
2540
- subAgentId: string;
2591
+ headers: Record<string, string> | null;
2541
2592
  externalAgentId: string;
2593
+ subAgentId: string;
2542
2594
  } | undefined>;
2543
2595
  declare const listSubAgentExternalAgentRelations: (db: DatabaseClient) => (params: {
2544
2596
  scopes: SubAgentScopeConfig;
@@ -2565,28 +2617,28 @@ declare const listSubAgentExternalAgentRelations: (db: DatabaseClient) => (param
2565
2617
  declare const getSubAgentExternalAgentRelations: (db: DatabaseClient) => (params: {
2566
2618
  scopes: SubAgentScopeConfig;
2567
2619
  }) => Promise<{
2568
- headers: Record<string, string> | null;
2620
+ tenantId: string;
2621
+ projectId: string;
2569
2622
  id: string;
2623
+ agentId: string;
2570
2624
  createdAt: string;
2571
2625
  updatedAt: string;
2572
- projectId: string;
2573
- tenantId: string;
2574
- agentId: string;
2575
- subAgentId: string;
2626
+ headers: Record<string, string> | null;
2576
2627
  externalAgentId: string;
2628
+ subAgentId: string;
2577
2629
  }[]>;
2578
2630
  declare const getSubAgentExternalAgentRelationsByAgent: (db: DatabaseClient) => (params: {
2579
2631
  scopes: AgentScopeConfig;
2580
2632
  }) => Promise<{
2581
- headers: Record<string, string> | null;
2633
+ tenantId: string;
2634
+ projectId: string;
2582
2635
  id: string;
2636
+ agentId: string;
2583
2637
  createdAt: string;
2584
2638
  updatedAt: string;
2585
- projectId: string;
2586
- tenantId: string;
2587
- agentId: string;
2588
- subAgentId: string;
2639
+ headers: Record<string, string> | null;
2589
2640
  externalAgentId: string;
2641
+ subAgentId: string;
2590
2642
  }[]>;
2591
2643
  declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: DatabaseClient) => (params: {
2592
2644
  scopes: AgentScopeConfig;
@@ -2701,15 +2753,15 @@ declare const createSubAgentExternalAgentRelation: (db: DatabaseClient) => (para
2701
2753
  headers?: Record<string, string> | null;
2702
2754
  };
2703
2755
  }) => Promise<{
2704
- headers: Record<string, string> | null;
2756
+ tenantId: string;
2757
+ projectId: string;
2705
2758
  id: string;
2759
+ agentId: string;
2706
2760
  createdAt: string;
2707
2761
  updatedAt: string;
2708
- projectId: string;
2709
- tenantId: string;
2710
- agentId: string;
2711
- subAgentId: string;
2762
+ headers: Record<string, string> | null;
2712
2763
  externalAgentId: string;
2764
+ subAgentId: string;
2713
2765
  }>;
2714
2766
  /**
2715
2767
  * Check if sub-agent external agent relation exists by params
@@ -2718,15 +2770,15 @@ declare const getSubAgentExternalAgentRelationByParams: (db: DatabaseClient) =>
2718
2770
  scopes: SubAgentScopeConfig;
2719
2771
  externalAgentId: string;
2720
2772
  }) => Promise<{
2721
- headers: Record<string, string> | null;
2773
+ tenantId: string;
2774
+ projectId: string;
2722
2775
  id: string;
2776
+ agentId: string;
2723
2777
  createdAt: string;
2724
2778
  updatedAt: string;
2725
- projectId: string;
2726
- tenantId: string;
2727
- agentId: string;
2728
- subAgentId: string;
2779
+ headers: Record<string, string> | null;
2729
2780
  externalAgentId: string;
2781
+ subAgentId: string;
2730
2782
  } | undefined>;
2731
2783
  /**
2732
2784
  * Upsert sub-agent external agent relation (create if it doesn't exist, update if it does)
@@ -2739,30 +2791,30 @@ declare const upsertSubAgentExternalAgentRelation: (db: DatabaseClient) => (para
2739
2791
  headers?: Record<string, string> | null;
2740
2792
  };
2741
2793
  }) => Promise<{
2742
- headers: Record<string, string> | null;
2794
+ tenantId: string;
2795
+ projectId: string;
2743
2796
  id: string;
2797
+ agentId: string;
2744
2798
  createdAt: string;
2745
2799
  updatedAt: string;
2746
- projectId: string;
2747
- tenantId: string;
2748
- agentId: string;
2749
- subAgentId: string;
2800
+ headers: Record<string, string> | null;
2750
2801
  externalAgentId: string;
2802
+ subAgentId: string;
2751
2803
  }>;
2752
2804
  declare const updateSubAgentExternalAgentRelation: (db: DatabaseClient) => (params: {
2753
2805
  scopes: SubAgentScopeConfig;
2754
2806
  relationId: string;
2755
2807
  data: Partial<SubAgentExternalAgentRelationInsert>;
2756
2808
  }) => Promise<{
2757
- headers: Record<string, string> | null;
2809
+ tenantId: string;
2810
+ projectId: string;
2758
2811
  id: string;
2812
+ agentId: string;
2759
2813
  createdAt: string;
2760
2814
  updatedAt: string;
2761
- projectId: string;
2762
- tenantId: string;
2763
- agentId: string;
2764
- subAgentId: string;
2815
+ headers: Record<string, string> | null;
2765
2816
  externalAgentId: string;
2817
+ subAgentId: string;
2766
2818
  }>;
2767
2819
  declare const deleteSubAgentExternalAgentRelation: (db: DatabaseClient) => (params: {
2768
2820
  scopes: SubAgentScopeConfig;
@@ -2779,12 +2831,12 @@ declare const getAgentRelationById: (db: DatabaseClient) => (params: {
2779
2831
  scopes: AgentScopeConfig;
2780
2832
  relationId: string;
2781
2833
  }) => Promise<{
2834
+ tenantId: string;
2835
+ projectId: string;
2782
2836
  id: string;
2837
+ agentId: string;
2783
2838
  createdAt: string;
2784
2839
  updatedAt: string;
2785
- projectId: string;
2786
- tenantId: string;
2787
- agentId: string;
2788
2840
  sourceSubAgentId: string;
2789
2841
  targetSubAgentId: string | null;
2790
2842
  relationType: string | null;
@@ -2814,12 +2866,12 @@ declare const listAgentRelations: (db: DatabaseClient) => (params: {
2814
2866
  declare const getAgentRelations: (db: DatabaseClient) => (params: {
2815
2867
  scopes: SubAgentScopeConfig;
2816
2868
  }) => Promise<{
2869
+ tenantId: string;
2870
+ projectId: string;
2817
2871
  id: string;
2872
+ agentId: string;
2818
2873
  createdAt: string;
2819
2874
  updatedAt: string;
2820
- projectId: string;
2821
- tenantId: string;
2822
- agentId: string;
2823
2875
  sourceSubAgentId: string;
2824
2876
  targetSubAgentId: string | null;
2825
2877
  relationType: string | null;
@@ -2827,12 +2879,12 @@ declare const getAgentRelations: (db: DatabaseClient) => (params: {
2827
2879
  declare const getAgentRelationsByAgent: (db: DatabaseClient) => (params: {
2828
2880
  scopes: AgentScopeConfig;
2829
2881
  }) => Promise<{
2882
+ tenantId: string;
2883
+ projectId: string;
2830
2884
  id: string;
2885
+ agentId: string;
2831
2886
  createdAt: string;
2832
2887
  updatedAt: string;
2833
- projectId: string;
2834
- tenantId: string;
2835
- agentId: string;
2836
2888
  sourceSubAgentId: string;
2837
2889
  targetSubAgentId: string | null;
2838
2890
  relationType: string | null;
@@ -2895,12 +2947,12 @@ declare const getRelatedAgentsForAgent: (db: DatabaseClient) => (params: {
2895
2947
  }[];
2896
2948
  }>;
2897
2949
  declare const createSubAgentRelation: (db: DatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
2950
+ tenantId: string;
2951
+ projectId: string;
2898
2952
  id: string;
2953
+ agentId: string;
2899
2954
  createdAt: string;
2900
2955
  updatedAt: string;
2901
- projectId: string;
2902
- tenantId: string;
2903
- agentId: string;
2904
2956
  sourceSubAgentId: string;
2905
2957
  targetSubAgentId: string | null;
2906
2958
  relationType: string | null;
@@ -2914,12 +2966,12 @@ declare const getAgentRelationByParams: (db: DatabaseClient) => (params: {
2914
2966
  targetSubAgentId?: string;
2915
2967
  relationType: string;
2916
2968
  }) => Promise<{
2969
+ tenantId: string;
2970
+ projectId: string;
2917
2971
  id: string;
2972
+ agentId: string;
2918
2973
  createdAt: string;
2919
2974
  updatedAt: string;
2920
- projectId: string;
2921
- tenantId: string;
2922
- agentId: string;
2923
2975
  sourceSubAgentId: string;
2924
2976
  targetSubAgentId: string | null;
2925
2977
  relationType: string | null;
@@ -2928,12 +2980,12 @@ declare const getAgentRelationByParams: (db: DatabaseClient) => (params: {
2928
2980
  * Upsert agent relation (create if it doesn't exist, no-op if it does)
2929
2981
  */
2930
2982
  declare const upsertSubAgentRelation: (db: DatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
2983
+ tenantId: string;
2984
+ projectId: string;
2931
2985
  id: string;
2986
+ agentId: string;
2932
2987
  createdAt: string;
2933
2988
  updatedAt: string;
2934
- projectId: string;
2935
- tenantId: string;
2936
- agentId: string;
2937
2989
  sourceSubAgentId: string;
2938
2990
  targetSubAgentId: string | null;
2939
2991
  relationType: string | null;
@@ -2943,12 +2995,12 @@ declare const updateAgentRelation: (db: DatabaseClient) => (params: {
2943
2995
  relationId: string;
2944
2996
  data: SubAgentRelationUpdate;
2945
2997
  }) => Promise<{
2998
+ tenantId: string;
2999
+ projectId: string;
2946
3000
  id: string;
3001
+ agentId: string;
2947
3002
  createdAt: string;
2948
3003
  updatedAt: string;
2949
- projectId: string;
2950
- tenantId: string;
2951
- agentId: string;
2952
3004
  sourceSubAgentId: string;
2953
3005
  targetSubAgentId: string | null;
2954
3006
  relationType: string | null;
@@ -2970,32 +3022,32 @@ declare const createAgentToolRelation: (db: DatabaseClient) => (params: {
2970
3022
  headers?: Record<string, string> | null;
2971
3023
  };
2972
3024
  }) => Promise<{
2973
- headers: Record<string, string> | null;
3025
+ tenantId: string;
3026
+ projectId: string;
2974
3027
  id: string;
3028
+ agentId: string;
2975
3029
  createdAt: string;
2976
3030
  updatedAt: string;
2977
- projectId: string;
2978
- tenantId: string;
2979
- agentId: string;
3031
+ headers: Record<string, string> | null;
3032
+ toolId: string;
2980
3033
  selectedTools: string[] | null;
2981
3034
  subAgentId: string;
2982
- toolId: string;
2983
3035
  }>;
2984
3036
  declare const updateAgentToolRelation: (db: DatabaseClient) => (params: {
2985
3037
  scopes: AgentScopeConfig;
2986
3038
  relationId: string;
2987
3039
  data: SubAgentToolRelationUpdate;
2988
3040
  }) => Promise<{
2989
- headers: Record<string, string> | null;
3041
+ tenantId: string;
3042
+ projectId: string;
2990
3043
  id: string;
3044
+ agentId: string;
2991
3045
  createdAt: string;
2992
3046
  updatedAt: string;
2993
- projectId: string;
2994
- tenantId: string;
2995
- agentId: string;
3047
+ headers: Record<string, string> | null;
3048
+ toolId: string;
2996
3049
  selectedTools: string[] | null;
2997
3050
  subAgentId: string;
2998
- toolId: string;
2999
3051
  }>;
3000
3052
  declare const deleteAgentToolRelation: (db: DatabaseClient) => (params: {
3001
3053
  scopes: AgentScopeConfig;
@@ -3008,16 +3060,16 @@ declare const getAgentToolRelationById: (db: DatabaseClient) => (params: {
3008
3060
  scopes: SubAgentScopeConfig;
3009
3061
  relationId: string;
3010
3062
  }) => Promise<{
3011
- headers: Record<string, string> | null;
3063
+ tenantId: string;
3064
+ projectId: string;
3012
3065
  id: string;
3066
+ agentId: string;
3013
3067
  createdAt: string;
3014
3068
  updatedAt: string;
3015
- projectId: string;
3016
- tenantId: string;
3017
- agentId: string;
3069
+ headers: Record<string, string> | null;
3070
+ toolId: string;
3018
3071
  selectedTools: string[] | null;
3019
3072
  subAgentId: string;
3020
- toolId: string;
3021
3073
  } | undefined>;
3022
3074
  declare const getAgentToolRelationByAgent: (db: DatabaseClient) => (params: {
3023
3075
  scopes: SubAgentScopeConfig;
@@ -3184,13 +3236,15 @@ declare const getSubAgentById: (db: DatabaseClient) => (params: {
3184
3236
  scopes: AgentScopeConfig;
3185
3237
  subAgentId: string;
3186
3238
  }) => Promise<{
3187
- name: string;
3239
+ tenantId: string;
3240
+ projectId: string;
3188
3241
  id: string;
3242
+ name: string;
3243
+ description: string;
3244
+ prompt: string;
3245
+ agentId: string;
3189
3246
  createdAt: string;
3190
3247
  updatedAt: string;
3191
- projectId: string;
3192
- tenantId: string;
3193
- description: string;
3194
3248
  models: {
3195
3249
  base?: {
3196
3250
  model?: string | undefined;
@@ -3208,20 +3262,20 @@ declare const getSubAgentById: (db: DatabaseClient) => (params: {
3208
3262
  stopWhen: {
3209
3263
  stepCountIs?: number | undefined;
3210
3264
  } | null;
3211
- agentId: string;
3212
- prompt: string;
3213
3265
  conversationHistoryConfig: ConversationHistoryConfig | null;
3214
3266
  } | undefined>;
3215
3267
  declare const listSubAgents: (db: DatabaseClient) => (params: {
3216
3268
  scopes: AgentScopeConfig;
3217
3269
  }) => Promise<{
3218
- name: string;
3270
+ tenantId: string;
3271
+ projectId: string;
3219
3272
  id: string;
3273
+ name: string;
3274
+ description: string;
3275
+ prompt: string;
3276
+ agentId: string;
3220
3277
  createdAt: string;
3221
3278
  updatedAt: string;
3222
- projectId: string;
3223
- tenantId: string;
3224
- description: string;
3225
3279
  models: {
3226
3280
  base?: {
3227
3281
  model?: string | undefined;
@@ -3239,8 +3293,6 @@ declare const listSubAgents: (db: DatabaseClient) => (params: {
3239
3293
  stopWhen: {
3240
3294
  stepCountIs?: number | undefined;
3241
3295
  } | null;
3242
- agentId: string;
3243
- prompt: string;
3244
3296
  conversationHistoryConfig: ConversationHistoryConfig | null;
3245
3297
  }[]>;
3246
3298
  declare const listSubAgentsPaginated: (db: DatabaseClient) => (params: {
@@ -3284,13 +3336,15 @@ declare const listSubAgentsPaginated: (db: DatabaseClient) => (params: {
3284
3336
  };
3285
3337
  }>;
3286
3338
  declare const createSubAgent: (db: DatabaseClient) => (params: SubAgentInsert) => Promise<{
3287
- name: string;
3339
+ tenantId: string;
3340
+ projectId: string;
3288
3341
  id: string;
3342
+ name: string;
3343
+ description: string;
3344
+ prompt: string;
3345
+ agentId: string;
3289
3346
  createdAt: string;
3290
3347
  updatedAt: string;
3291
- projectId: string;
3292
- tenantId: string;
3293
- description: string;
3294
3348
  models: {
3295
3349
  base?: {
3296
3350
  model?: string | undefined;
@@ -3308,8 +3362,6 @@ declare const createSubAgent: (db: DatabaseClient) => (params: SubAgentInsert) =
3308
3362
  stopWhen: {
3309
3363
  stepCountIs?: number | undefined;
3310
3364
  } | null;
3311
- agentId: string;
3312
- prompt: string;
3313
3365
  conversationHistoryConfig: ConversationHistoryConfig | null;
3314
3366
  }>;
3315
3367
  declare const updateSubAgent: (db: DatabaseClient) => (params: {
@@ -3317,13 +3369,15 @@ declare const updateSubAgent: (db: DatabaseClient) => (params: {
3317
3369
  subAgentId: string;
3318
3370
  data: SubAgentUpdate;
3319
3371
  }) => Promise<{
3320
- name: string;
3372
+ tenantId: string;
3373
+ projectId: string;
3321
3374
  id: string;
3375
+ name: string;
3376
+ description: string;
3377
+ prompt: string;
3378
+ agentId: string;
3322
3379
  createdAt: string;
3323
3380
  updatedAt: string;
3324
- projectId: string;
3325
- tenantId: string;
3326
- description: string;
3327
3381
  models: {
3328
3382
  base?: {
3329
3383
  model?: string | undefined;
@@ -3341,8 +3395,6 @@ declare const updateSubAgent: (db: DatabaseClient) => (params: {
3341
3395
  stopWhen: {
3342
3396
  stepCountIs?: number | undefined;
3343
3397
  } | null;
3344
- agentId: string;
3345
- prompt: string;
3346
3398
  conversationHistoryConfig: ConversationHistoryConfig | null;
3347
3399
  }>;
3348
3400
  /**
@@ -3392,13 +3444,13 @@ declare const getSubAgentTeamAgentRelationById: (db: DatabaseClient) => (params:
3392
3444
  scopes: SubAgentScopeConfig;
3393
3445
  relationId: string;
3394
3446
  }) => Promise<{
3395
- headers: Record<string, string> | null;
3447
+ tenantId: string;
3448
+ projectId: string;
3396
3449
  id: string;
3450
+ agentId: string;
3397
3451
  createdAt: string;
3398
3452
  updatedAt: string;
3399
- projectId: string;
3400
- tenantId: string;
3401
- agentId: string;
3453
+ headers: Record<string, string> | null;
3402
3454
  subAgentId: string;
3403
3455
  targetAgentId: string;
3404
3456
  } | undefined>;
@@ -3427,26 +3479,26 @@ declare const listSubAgentTeamAgentRelations: (db: DatabaseClient) => (params: {
3427
3479
  declare const getSubAgentTeamAgentRelations: (db: DatabaseClient) => (params: {
3428
3480
  scopes: SubAgentScopeConfig;
3429
3481
  }) => Promise<{
3430
- headers: Record<string, string> | null;
3482
+ tenantId: string;
3483
+ projectId: string;
3431
3484
  id: string;
3485
+ agentId: string;
3432
3486
  createdAt: string;
3433
3487
  updatedAt: string;
3434
- projectId: string;
3435
- tenantId: string;
3436
- agentId: string;
3488
+ headers: Record<string, string> | null;
3437
3489
  subAgentId: string;
3438
3490
  targetAgentId: string;
3439
3491
  }[]>;
3440
3492
  declare const getSubAgentTeamAgentRelationsByAgent: (db: DatabaseClient) => (params: {
3441
3493
  scopes: AgentScopeConfig;
3442
3494
  }) => Promise<{
3443
- headers: Record<string, string> | null;
3495
+ tenantId: string;
3496
+ projectId: string;
3444
3497
  id: string;
3498
+ agentId: string;
3445
3499
  createdAt: string;
3446
3500
  updatedAt: string;
3447
- projectId: string;
3448
- tenantId: string;
3449
- agentId: string;
3501
+ headers: Record<string, string> | null;
3450
3502
  subAgentId: string;
3451
3503
  targetAgentId: string;
3452
3504
  }[]>;
@@ -3593,13 +3645,13 @@ declare const createSubAgentTeamAgentRelation: (db: DatabaseClient) => (params:
3593
3645
  headers?: Record<string, string> | null;
3594
3646
  };
3595
3647
  }) => Promise<{
3596
- headers: Record<string, string> | null;
3648
+ tenantId: string;
3649
+ projectId: string;
3597
3650
  id: string;
3651
+ agentId: string;
3598
3652
  createdAt: string;
3599
3653
  updatedAt: string;
3600
- projectId: string;
3601
- tenantId: string;
3602
- agentId: string;
3654
+ headers: Record<string, string> | null;
3603
3655
  subAgentId: string;
3604
3656
  targetAgentId: string;
3605
3657
  }>;
@@ -3610,13 +3662,13 @@ declare const getSubAgentTeamAgentRelationByParams: (db: DatabaseClient) => (par
3610
3662
  scopes: SubAgentScopeConfig;
3611
3663
  targetAgentId: string;
3612
3664
  }) => Promise<{
3613
- headers: Record<string, string> | null;
3665
+ tenantId: string;
3666
+ projectId: string;
3614
3667
  id: string;
3668
+ agentId: string;
3615
3669
  createdAt: string;
3616
3670
  updatedAt: string;
3617
- projectId: string;
3618
- tenantId: string;
3619
- agentId: string;
3671
+ headers: Record<string, string> | null;
3620
3672
  subAgentId: string;
3621
3673
  targetAgentId: string;
3622
3674
  } | undefined>;
@@ -3631,13 +3683,13 @@ declare const upsertSubAgentTeamAgentRelation: (db: DatabaseClient) => (params:
3631
3683
  headers?: Record<string, string> | null;
3632
3684
  };
3633
3685
  }) => Promise<{
3634
- headers: Record<string, string> | null;
3686
+ tenantId: string;
3687
+ projectId: string;
3635
3688
  id: string;
3689
+ agentId: string;
3636
3690
  createdAt: string;
3637
3691
  updatedAt: string;
3638
- projectId: string;
3639
- tenantId: string;
3640
- agentId: string;
3692
+ headers: Record<string, string> | null;
3641
3693
  subAgentId: string;
3642
3694
  targetAgentId: string;
3643
3695
  }>;
@@ -3646,13 +3698,13 @@ declare const updateSubAgentTeamAgentRelation: (db: DatabaseClient) => (params:
3646
3698
  relationId: string;
3647
3699
  data: Partial<SubAgentTeamAgentRelationInsert>;
3648
3700
  }) => Promise<{
3649
- headers: Record<string, string> | null;
3701
+ tenantId: string;
3702
+ projectId: string;
3650
3703
  id: string;
3704
+ agentId: string;
3651
3705
  createdAt: string;
3652
3706
  updatedAt: string;
3653
- projectId: string;
3654
- tenantId: string;
3655
- agentId: string;
3707
+ headers: Record<string, string> | null;
3656
3708
  subAgentId: string;
3657
3709
  targetAgentId: string;
3658
3710
  }>;
@@ -3668,12 +3720,12 @@ declare const deleteSubAgentTeamAgentRelationsByAgent: (db: DatabaseClient) => (
3668
3720
  }) => Promise<boolean>;
3669
3721
 
3670
3722
  declare const createTask: (db: DatabaseClient) => (params: TaskInsert) => Promise<{
3723
+ tenantId: string;
3724
+ projectId: string;
3671
3725
  id: string;
3726
+ agentId: string;
3672
3727
  createdAt: string;
3673
3728
  updatedAt: string;
3674
- projectId: string;
3675
- tenantId: string;
3676
- agentId: string;
3677
3729
  status: string;
3678
3730
  metadata: TaskMetadataConfig | null;
3679
3731
  contextId: string;
@@ -3689,12 +3741,12 @@ declare const updateTask: (db: DatabaseClient) => (params: {
3689
3741
  metadata?: any;
3690
3742
  };
3691
3743
  }) => Promise<{
3744
+ tenantId: string;
3745
+ projectId: string;
3692
3746
  id: string;
3747
+ agentId: string;
3693
3748
  createdAt: string;
3694
3749
  updatedAt: string;
3695
- projectId: string;
3696
- tenantId: string;
3697
- agentId: string;
3698
3750
  status: string;
3699
3751
  metadata: TaskMetadataConfig | null;
3700
3752
  contextId: string;
@@ -3709,20 +3761,20 @@ declare const getToolById: (db: DatabaseClient) => (params: {
3709
3761
  scopes: ProjectScopeConfig;
3710
3762
  toolId: string;
3711
3763
  }) => Promise<{
3712
- name: string;
3713
- headers: Record<string, string> | null;
3714
- id: string;
3715
- createdAt: string;
3716
- updatedAt: string;
3717
- projectId: string;
3718
3764
  tenantId: string;
3765
+ projectId: string;
3766
+ id: string;
3767
+ name: string;
3719
3768
  description: string | null;
3720
- credentialReferenceId: string | null;
3721
- capabilities: ToolServerCapabilities | null;
3722
3769
  config: {
3723
3770
  type: "mcp";
3724
3771
  mcp: ToolMcpConfig;
3725
3772
  };
3773
+ credentialReferenceId: string | null;
3774
+ createdAt: string;
3775
+ updatedAt: string;
3776
+ headers: Record<string, string> | null;
3777
+ capabilities: ToolServerCapabilities | null;
3726
3778
  imageUrl: string | null;
3727
3779
  lastError: string | null;
3728
3780
  } | null>;
@@ -3756,20 +3808,20 @@ declare const listTools: (db: DatabaseClient) => (params: {
3756
3808
  };
3757
3809
  }>;
3758
3810
  declare const createTool: (db: DatabaseClient) => (params: ToolInsert) => Promise<{
3759
- name: string;
3760
- headers: Record<string, string> | null;
3761
- id: string;
3762
- createdAt: string;
3763
- updatedAt: string;
3764
- projectId: string;
3765
3811
  tenantId: string;
3812
+ projectId: string;
3813
+ id: string;
3814
+ name: string;
3766
3815
  description: string | null;
3767
- credentialReferenceId: string | null;
3768
- capabilities: ToolServerCapabilities | null;
3769
3816
  config: {
3770
3817
  type: "mcp";
3771
3818
  mcp: ToolMcpConfig;
3772
3819
  };
3820
+ credentialReferenceId: string | null;
3821
+ createdAt: string;
3822
+ updatedAt: string;
3823
+ headers: Record<string, string> | null;
3824
+ capabilities: ToolServerCapabilities | null;
3773
3825
  imageUrl: string | null;
3774
3826
  lastError: string | null;
3775
3827
  }>;
@@ -3778,20 +3830,20 @@ declare const updateTool: (db: DatabaseClient) => (params: {
3778
3830
  toolId: string;
3779
3831
  data: ToolUpdate;
3780
3832
  }) => Promise<{
3781
- name: string;
3782
- headers: Record<string, string> | null;
3783
- id: string;
3784
- createdAt: string;
3785
- updatedAt: string;
3786
- projectId: string;
3787
3833
  tenantId: string;
3834
+ projectId: string;
3835
+ id: string;
3836
+ name: string;
3788
3837
  description: string | null;
3789
- credentialReferenceId: string | null;
3790
- capabilities: ToolServerCapabilities | null;
3791
3838
  config: {
3792
3839
  type: "mcp";
3793
3840
  mcp: ToolMcpConfig;
3794
3841
  };
3842
+ credentialReferenceId: string | null;
3843
+ createdAt: string;
3844
+ updatedAt: string;
3845
+ headers: Record<string, string> | null;
3846
+ capabilities: ToolServerCapabilities | null;
3795
3847
  imageUrl: string | null;
3796
3848
  lastError: string | null;
3797
3849
  }>;
@@ -3806,32 +3858,32 @@ declare const addToolToAgent: (db: DatabaseClient) => (params: {
3806
3858
  selectedTools?: string[] | null;
3807
3859
  headers?: Record<string, string> | null;
3808
3860
  }) => Promise<{
3809
- headers: Record<string, string> | null;
3861
+ tenantId: string;
3862
+ projectId: string;
3810
3863
  id: string;
3864
+ agentId: string;
3811
3865
  createdAt: string;
3812
3866
  updatedAt: string;
3813
- projectId: string;
3814
- tenantId: string;
3815
- agentId: string;
3867
+ headers: Record<string, string> | null;
3868
+ toolId: string;
3816
3869
  selectedTools: string[] | null;
3817
3870
  subAgentId: string;
3818
- toolId: string;
3819
3871
  }>;
3820
3872
  declare const removeToolFromAgent: (db: DatabaseClient) => (params: {
3821
3873
  scopes: AgentScopeConfig;
3822
3874
  subAgentId: string;
3823
3875
  toolId: string;
3824
3876
  }) => Promise<{
3825
- headers: Record<string, string> | null;
3877
+ tenantId: string;
3878
+ projectId: string;
3826
3879
  id: string;
3880
+ agentId: string;
3827
3881
  createdAt: string;
3828
3882
  updatedAt: string;
3829
- projectId: string;
3830
- tenantId: string;
3831
- agentId: string;
3883
+ headers: Record<string, string> | null;
3884
+ toolId: string;
3832
3885
  selectedTools: string[] | null;
3833
3886
  subAgentId: string;
3834
- toolId: string;
3835
3887
  }>;
3836
3888
  /**
3837
3889
  * Upsert agent-tool relation (create if it doesn't exist, update if it does)
@@ -3844,16 +3896,16 @@ declare const upsertSubAgentToolRelation: (db: DatabaseClient) => (params: {
3844
3896
  headers?: Record<string, string> | null;
3845
3897
  relationId?: string;
3846
3898
  }) => Promise<{
3847
- headers: Record<string, string> | null;
3899
+ tenantId: string;
3900
+ projectId: string;
3848
3901
  id: string;
3902
+ agentId: string;
3849
3903
  createdAt: string;
3850
3904
  updatedAt: string;
3851
- projectId: string;
3852
- tenantId: string;
3853
- agentId: string;
3905
+ headers: Record<string, string> | null;
3906
+ toolId: string;
3854
3907
  selectedTools: string[] | null;
3855
3908
  subAgentId: string;
3856
- toolId: string;
3857
3909
  }>;
3858
3910
  /**
3859
3911
  * Upsert a tool (create if it doesn't exist, update if it does)
@@ -3861,20 +3913,20 @@ declare const upsertSubAgentToolRelation: (db: DatabaseClient) => (params: {
3861
3913
  declare const upsertTool: (db: DatabaseClient) => (params: {
3862
3914
  data: ToolInsert;
3863
3915
  }) => Promise<{
3864
- name: string;
3865
- headers: Record<string, string> | null;
3866
- id: string;
3867
- createdAt: string;
3868
- updatedAt: string;
3869
- projectId: string;
3870
3916
  tenantId: string;
3917
+ projectId: string;
3918
+ id: string;
3919
+ name: string;
3871
3920
  description: string | null;
3872
- credentialReferenceId: string | null;
3873
- capabilities: ToolServerCapabilities | null;
3874
3921
  config: {
3875
3922
  type: "mcp";
3876
3923
  mcp: ToolMcpConfig;
3877
3924
  };
3925
+ credentialReferenceId: string | null;
3926
+ createdAt: string;
3927
+ updatedAt: string;
3928
+ headers: Record<string, string> | null;
3929
+ capabilities: ToolServerCapabilities | null;
3878
3930
  imageUrl: string | null;
3879
3931
  lastError: string | null;
3880
3932
  }>;
@@ -4617,4 +4669,4 @@ declare function setSpanWithError(span: Span, error: Error, logger?: {
4617
4669
  */
4618
4670
  declare function getTracer(serviceName: string, serviceVersion?: string): Tracer;
4619
4671
 
4620
- export { AgentInsert, type AgentLogger, AgentScopeConfig, AgentSelect, AgentUpdate, ApiKeyCreateResult, type ApiKeyGenerationResult, ApiKeyInsert, ApiKeySelect, ApiKeyUpdate, Artifact, ArtifactComponentInsert, ArtifactComponentSelect, ArtifactComponentUpdate, type CommonCreateErrorResponses, type CommonDeleteErrorResponses, type CommonGetErrorResponses, type CommonUpdateErrorResponses, ContextCache, ContextCacheInsert, ContextCacheSelect, ContextConfigBuilder, type ContextConfigBuilderOptions, ContextConfigInsert, ContextConfigSelect, ContextConfigUpdate, ContextFetchDefinition, ContextFetcher, type ContextResolutionOptions, type ContextResolutionResult, ContextResolver, type ContextResolverInterface, type ContextValidationError, type ContextValidationResult, ConversationHistoryConfig, ConversationInsert, ConversationMetadata, ConversationSelect, ConversationUpdate, CreateApiKeyParams, type CredentialContext, type CredentialData, CredentialReferenceApiInsert, CredentialReferenceInsert, CredentialReferenceSelect, CredentialReferenceUpdate, type CredentialReferenceWithResources, type CredentialResolverInput, CredentialStore, type CredentialStoreReference, CredentialStoreRegistry, CredentialStoreType, CredentialStuffer, DataComponentInsert, DataComponentSelect, DataComponentUpdate, type DatabaseClient, type DatabaseConfig, type DotPaths, ERROR_DOCS_BASE_URL, ErrorCode, type ErrorCodes, type ErrorResponse, ExecutionContext, ExternalAgentInsert, ExternalAgentSelect, ExternalAgentUpdate, type FetchResult, FullAgentDefinition, FullProjectDefinition, FunctionApiInsert, FunctionToolApiInsert, FunctionToolApiUpdate, type GenerateServiceTokenParams, HTTP_REQUEST_PARTS, type HttpRequestPart, InMemoryCredentialStore, KeyChainStore, LedgerArtifactSelect, MCPToolConfig, MCPTransportType, McpClient, type McpClientOptions, type McpSSEConfig, type McpServerConfig, type McpStreamableHttpConfig, McpTool, MessageContent, MessageInsert, MessageMetadata, MessageUpdate, MessageVisibility, NangoCredentialStore, PaginationConfig, PaginationResult, type ParsedHttpRequest, PinoLogger, type ProblemDetails, ProjectInfo, ProjectInsert, type ProjectLogger, ProjectResourceCounts, ProjectScopeConfig, ProjectSelect, ProjectUpdate, type ResolvedContext, type ServiceTokenPayload, SubAgentExternalAgentRelationInsert, SubAgentInsert, SubAgentRelationInsert, SubAgentRelationUpdate, SubAgentScopeConfig, SubAgentSelect, SubAgentTeamAgentRelationInsert, SubAgentToolRelationUpdate, SubAgentUpdate, TaskInsert, TaskMetadataConfig, TaskSelect, type TemplateContext, TemplateEngine, type TemplateRenderOptions, ToolInsert, ToolMcpConfig, ToolSelect, ToolServerCapabilities, ToolUpdate, type VerifyServiceTokenResult, addFunctionToolToSubAgent, addLedgerArtifacts, addToolToAgent, agentHasArtifactComponents, apiFetch, associateArtifactComponentWithAgent, associateDataComponentWithAgent, cleanupTenantCache, clearContextConfigCache, clearConversationCache, commonCreateErrorResponses, commonDeleteErrorResponses, commonGetErrorResponses, commonUpdateErrorResponses, contextConfig, contextValidationMiddleware, countApiKeys, countArtifactComponents, countArtifactComponentsForAgent, countContextConfigs, countCredentialReferences, countDataComponents, countExternalAgents, countLedgerArtifactsByTask, countMessagesByConversation, countProjects, createAgent, createAgentToolRelation, createApiError, createApiKey, createArtifactComponent, createContextConfig, createConversation, createCredentialReference, createDataComponent, createDatabaseClient, createDefaultCredentialStores, createExecutionContext, createExternalAgent, createFullAgentServerSide, createFullProjectServerSide, createFunctionTool, createInMemoryDatabaseClient, createKeyChainStore, createMessage, createNangoCredentialStore, createOrGetConversation, createProject, createSubAgent, createSubAgentExternalAgentRelation, createSubAgentRelation, createSubAgentTeamAgentRelation, createTask, createTool, createValidatedDataAccess, dbResultToMcpTool, deleteAgent, deleteAgentArtifactComponentRelationByAgent, deleteAgentDataComponentRelationByAgent, deleteAgentRelationsByAgent, deleteAgentToolRelation, deleteAgentToolRelationByAgent, deleteApiKey, deleteArtifactComponent, deleteContextConfig, deleteConversation, deleteCredentialReference, deleteDataComponent, deleteExternalAgent, deleteFullAgent, deleteFullProject, deleteFunction, deleteFunctionTool, deleteLedgerArtifactsByContext, deleteLedgerArtifactsByTask, deleteMessage, deleteProject, deleteSubAgent, deleteSubAgentExternalAgentRelation, deleteSubAgentExternalAgentRelationsByAgent, deleteSubAgentExternalAgentRelationsBySubAgent, deleteSubAgentRelation, deleteSubAgentTeamAgentRelation, deleteSubAgentTeamAgentRelationsByAgent, deleteSubAgentTeamAgentRelationsBySubAgent, deleteTool, determineContextTrigger, errorResponseSchema, errorSchemaFactory, externalAgentExists, externalAgentUrlExists, extractPublicId, fetchComponentRelationships, fetchDefinition, generateAndCreateApiKey, generateApiKey, generateId, generateServiceToken, getActiveAgentForConversation, getAgentById, getAgentRelationById, getAgentRelationByParams, getAgentRelations, getAgentRelationsByAgent, getAgentRelationsBySource, getAgentSubAgentInfos, getAgentToolRelationByAgent, getAgentToolRelationById, getAgentToolRelationByTool, getAgentWithDefaultSubAgent, getAgentsForTool, getAgentsUsingArtifactComponent, getAgentsUsingDataComponent, getApiKeyById, getApiKeyByPublicId, getArtifactComponentById, getArtifactComponentsForAgent, getCacheEntry, getCachedValidator, getContextConfigById, getContextConfigCacheEntries, getConversation, getConversationCacheEntries, getConversationHistory, getConversationId, getCredentialReference, getCredentialReferenceById, getCredentialReferenceWithResources, getCredentialStoreLookupKeyFromRetrievalParams, getDataComponent, getDataComponentsForAgent, getExternalAgent, getExternalAgentByUrl, getExternalAgentsForSubAgent, getFullAgent, getFullAgentDefinition, getFullProject, getFunction, getFunctionToolById, getFunctionToolsForSubAgent, getLedgerArtifacts, getLedgerArtifactsByContext, getLogger, getMessageById, getMessagesByConversation, getMessagesByTask, getProject, getProjectResourceCounts, getRelatedAgentsForAgent, getRequestExecutionContext, getSubAgentById, getSubAgentExternalAgentRelationById, getSubAgentExternalAgentRelationByParams, getSubAgentExternalAgentRelations, getSubAgentExternalAgentRelationsByAgent, getSubAgentExternalAgentRelationsByExternalAgent, getSubAgentRelationsByTarget, getSubAgentTeamAgentRelationById, getSubAgentTeamAgentRelationByParams, getSubAgentTeamAgentRelations, getSubAgentTeamAgentRelationsByAgent, getSubAgentTeamAgentRelationsByTeamAgent, getSubAgentsByIds, getSubAgentsForExternalAgent, getSubAgentsForTeamAgent, getTask, getTeamAgentsForSubAgent, getToolById, getToolsForAgent, getTracer, getVisibleMessages, handleApiError, handleContextConfigChange, handleContextResolution, hasApiKey, hasContextConfig, hasCredentialReference, hashApiKey, headers, invalidateHeadersCache, invalidateInvocationDefinitionsCache, isApiKeyExpired, isArtifactComponentAssociatedWithAgent, isDataComponentAssociatedWithAgent, isValidHttpRequest, listAgentRelations, listAgentToolRelations, listAgents, listAgentsPaginated, listApiKeys, listApiKeysPaginated, listArtifactComponents, listArtifactComponentsPaginated, listContextConfigs, listContextConfigsPaginated, listConversations, listCredentialReferences, listCredentialReferencesPaginated, listDataComponents, listDataComponentsPaginated, listExternalAgents, listExternalAgentsPaginated, listFunctionTools, listFunctions, listMessages, listProjects, listProjectsPaginated, listSubAgentExternalAgentRelations, listSubAgentTeamAgentRelations, listSubAgents, listSubAgentsPaginated, listTaskIdsByContextId, listTools, loadEnvironmentFiles, maskApiKey, problemDetailsSchema, projectExists, projectExistsInTable, projectHasResources, removeArtifactComponentFromAgent, removeDataComponentFromAgent, removeToolFromAgent, setActiveAgentForConversation, setActiveAgentForThread, setCacheEntry, setSpanWithError, updateAgent, updateAgentRelation, updateAgentToolRelation, updateApiKey, updateApiKeyLastUsed, updateArtifactComponent, updateContextConfig, updateConversation, updateConversationActiveAgent, updateCredentialReference, updateDataComponent, updateExternalAgent, updateFullAgentServerSide, updateFullProjectServerSide, updateFunctionTool, updateMessage, updateProject, updateSubAgent, updateSubAgentExternalAgentRelation, updateSubAgentFunctionToolRelation, updateSubAgentTeamAgentRelation, updateTask, updateTool, upsertAgent, upsertAgentArtifactComponentRelation, upsertAgentDataComponentRelation, upsertArtifactComponent, upsertContextConfig, upsertCredentialReference, upsertDataComponent, upsertExternalAgent, upsertFunction, upsertFunctionTool, upsertLedgerArtifact, upsertSubAgent, upsertSubAgentExternalAgentRelation, upsertSubAgentFunctionToolRelation, upsertSubAgentRelation, upsertSubAgentTeamAgentRelation, upsertSubAgentToolRelation, upsertTool, validateAgainstJsonSchema, validateAndGetApiKey, validateApiKey, validateHeaders, validateHttpRequestHeaders, validateProjectExists, validateSubAgent, validateTargetAgent, validateTenantId, validationHelper, verifyAuthorizationHeader, verifyServiceToken, withProjectValidation };
4672
+ export { AGENT_EXECUTION_TRANSFER_COUNT_DEFAULT, AGENT_EXECUTION_TRANSFER_COUNT_MAX, AGENT_EXECUTION_TRANSFER_COUNT_MIN, AgentInsert, type AgentLogger, AgentScopeConfig, AgentSelect, AgentUpdate, ApiKeyCreateResult, type ApiKeyGenerationResult, ApiKeyInsert, ApiKeySelect, ApiKeyUpdate, Artifact, ArtifactComponentInsert, ArtifactComponentSelect, ArtifactComponentUpdate, CONTEXT_FETCHER_HTTP_TIMEOUT_MS_DEFAULT, CONVERSATION_HISTORY_DEFAULT_LIMIT, CONVERSATION_HISTORY_MAX_OUTPUT_TOKENS_DEFAULT, type CommonCreateErrorResponses, type CommonDeleteErrorResponses, type CommonGetErrorResponses, type CommonUpdateErrorResponses, ContextCache, ContextCacheInsert, ContextCacheSelect, ContextConfigBuilder, type ContextConfigBuilderOptions, ContextConfigInsert, ContextConfigSelect, ContextConfigUpdate, ContextFetchDefinition, ContextFetcher, type ContextResolutionOptions, type ContextResolutionResult, ContextResolver, type ContextResolverInterface, type ContextValidationError, type ContextValidationResult, ConversationHistoryConfig, ConversationInsert, ConversationMetadata, ConversationSelect, ConversationUpdate, CreateApiKeyParams, type CredentialContext, type CredentialData, CredentialReferenceApiInsert, CredentialReferenceInsert, CredentialReferenceSelect, CredentialReferenceUpdate, type CredentialReferenceWithResources, type CredentialResolverInput, CredentialStore, type CredentialStoreReference, CredentialStoreRegistry, CredentialStoreType, CredentialStuffer, DataComponentInsert, DataComponentSelect, DataComponentUpdate, type DatabaseClient, type DatabaseConfig, type DotPaths, ERROR_DOCS_BASE_URL, ErrorCode, type ErrorCodes, type ErrorResponse, ExecutionContext, ExternalAgentInsert, ExternalAgentSelect, ExternalAgentUpdate, type FetchResult, FullAgentDefinition, FullProjectDefinition, FunctionApiInsert, FunctionToolApiInsert, FunctionToolApiUpdate, type GenerateServiceTokenParams, HTTP_REQUEST_PARTS, type HttpRequestPart, InMemoryCredentialStore, KeyChainStore, LedgerArtifactSelect, MCPToolConfig, MCPTransportType, MCP_TOOL_CONNECTION_TIMEOUT_MS, MCP_TOOL_INITIAL_RECONNECTION_DELAY_MS, MCP_TOOL_MAX_RECONNECTION_DELAY_MS, MCP_TOOL_MAX_RETRIES, MCP_TOOL_RECONNECTION_DELAY_GROWTH_FACTOR, McpClient, type McpClientOptions, type McpSSEConfig, type McpServerConfig, type McpStreamableHttpConfig, McpTool, MessageContent, MessageInsert, MessageMetadata, MessageUpdate, MessageVisibility, NangoCredentialStore, PaginationConfig, PaginationResult, type ParsedHttpRequest, PinoLogger, type ProblemDetails, ProjectInfo, ProjectInsert, type ProjectLogger, ProjectResourceCounts, ProjectScopeConfig, ProjectSelect, ProjectUpdate, type ResolvedContext, STATUS_UPDATE_MAX_INTERVAL_SECONDS, STATUS_UPDATE_MAX_NUM_EVENTS, SUB_AGENT_TURN_GENERATION_STEPS_DEFAULT, SUB_AGENT_TURN_GENERATION_STEPS_MAX, SUB_AGENT_TURN_GENERATION_STEPS_MIN, type ServiceTokenPayload, SubAgentExternalAgentRelationInsert, SubAgentInsert, SubAgentRelationInsert, SubAgentRelationUpdate, SubAgentScopeConfig, SubAgentSelect, SubAgentTeamAgentRelationInsert, SubAgentToolRelationUpdate, SubAgentUpdate, TaskInsert, TaskMetadataConfig, TaskSelect, type TemplateContext, TemplateEngine, type TemplateRenderOptions, ToolInsert, ToolMcpConfig, ToolSelect, ToolServerCapabilities, ToolUpdate, VALIDATION_AGENT_PROMPT_MAX_CHARS, VALIDATION_SUB_AGENT_PROMPT_MAX_CHARS, type VerifyServiceTokenResult, addFunctionToolToSubAgent, addLedgerArtifacts, addToolToAgent, agentHasArtifactComponents, apiFetch, associateArtifactComponentWithAgent, associateDataComponentWithAgent, cleanupTenantCache, clearContextConfigCache, clearConversationCache, commonCreateErrorResponses, commonDeleteErrorResponses, commonGetErrorResponses, commonUpdateErrorResponses, contextConfig, contextValidationMiddleware, countApiKeys, countArtifactComponents, countArtifactComponentsForAgent, countContextConfigs, countCredentialReferences, countDataComponents, countExternalAgents, countLedgerArtifactsByTask, countMessagesByConversation, countProjects, createAgent, createAgentToolRelation, createApiError, createApiKey, createArtifactComponent, createContextConfig, createConversation, createCredentialReference, createDataComponent, createDatabaseClient, createDefaultCredentialStores, createExecutionContext, createExternalAgent, createFullAgentServerSide, createFullProjectServerSide, createFunctionTool, createInMemoryDatabaseClient, createKeyChainStore, createMessage, createNangoCredentialStore, createOrGetConversation, createProject, createSubAgent, createSubAgentExternalAgentRelation, createSubAgentRelation, createSubAgentTeamAgentRelation, createTask, createTool, createValidatedDataAccess, dbResultToMcpTool, deleteAgent, deleteAgentArtifactComponentRelationByAgent, deleteAgentDataComponentRelationByAgent, deleteAgentRelationsByAgent, deleteAgentToolRelation, deleteAgentToolRelationByAgent, deleteApiKey, deleteArtifactComponent, deleteContextConfig, deleteConversation, deleteCredentialReference, deleteDataComponent, deleteExternalAgent, deleteFullAgent, deleteFullProject, deleteFunction, deleteFunctionTool, deleteLedgerArtifactsByContext, deleteLedgerArtifactsByTask, deleteMessage, deleteProject, deleteSubAgent, deleteSubAgentExternalAgentRelation, deleteSubAgentExternalAgentRelationsByAgent, deleteSubAgentExternalAgentRelationsBySubAgent, deleteSubAgentRelation, deleteSubAgentTeamAgentRelation, deleteSubAgentTeamAgentRelationsByAgent, deleteSubAgentTeamAgentRelationsBySubAgent, deleteTool, determineContextTrigger, errorResponseSchema, errorSchemaFactory, executionLimitsSharedDefaults, externalAgentExists, externalAgentUrlExists, extractPublicId, fetchComponentRelationships, fetchDefinition, generateAndCreateApiKey, generateApiKey, generateId, generateServiceToken, getActiveAgentForConversation, getAgentById, getAgentRelationById, getAgentRelationByParams, getAgentRelations, getAgentRelationsByAgent, getAgentRelationsBySource, getAgentSubAgentInfos, getAgentToolRelationByAgent, getAgentToolRelationById, getAgentToolRelationByTool, getAgentWithDefaultSubAgent, getAgentsForTool, getAgentsUsingArtifactComponent, getAgentsUsingDataComponent, getApiKeyById, getApiKeyByPublicId, getArtifactComponentById, getArtifactComponentsForAgent, getCacheEntry, getCachedValidator, getContextConfigById, getContextConfigCacheEntries, getConversation, getConversationCacheEntries, getConversationHistory, getConversationId, getCredentialReference, getCredentialReferenceById, getCredentialReferenceWithResources, getCredentialStoreLookupKeyFromRetrievalParams, getDataComponent, getDataComponentsForAgent, getExternalAgent, getExternalAgentByUrl, getExternalAgentsForSubAgent, getFullAgent, getFullAgentDefinition, getFullProject, getFunction, getFunctionToolById, getFunctionToolsForSubAgent, getLedgerArtifacts, getLedgerArtifactsByContext, getLogger, getMessageById, getMessagesByConversation, getMessagesByTask, getProject, getProjectResourceCounts, getRelatedAgentsForAgent, getRequestExecutionContext, getSubAgentById, getSubAgentExternalAgentRelationById, getSubAgentExternalAgentRelationByParams, getSubAgentExternalAgentRelations, getSubAgentExternalAgentRelationsByAgent, getSubAgentExternalAgentRelationsByExternalAgent, getSubAgentRelationsByTarget, getSubAgentTeamAgentRelationById, getSubAgentTeamAgentRelationByParams, getSubAgentTeamAgentRelations, getSubAgentTeamAgentRelationsByAgent, getSubAgentTeamAgentRelationsByTeamAgent, getSubAgentsByIds, getSubAgentsForExternalAgent, getSubAgentsForTeamAgent, getTask, getTeamAgentsForSubAgent, getToolById, getToolsForAgent, getTracer, getVisibleMessages, handleApiError, handleContextConfigChange, handleContextResolution, hasApiKey, hasContextConfig, hasCredentialReference, hashApiKey, headers, invalidateHeadersCache, invalidateInvocationDefinitionsCache, isApiKeyExpired, isArtifactComponentAssociatedWithAgent, isDataComponentAssociatedWithAgent, isValidHttpRequest, listAgentRelations, listAgentToolRelations, listAgents, listAgentsPaginated, listApiKeys, listApiKeysPaginated, listArtifactComponents, listArtifactComponentsPaginated, listContextConfigs, listContextConfigsPaginated, listConversations, listCredentialReferences, listCredentialReferencesPaginated, listDataComponents, listDataComponentsPaginated, listExternalAgents, listExternalAgentsPaginated, listFunctionTools, listFunctions, listMessages, listProjects, listProjectsPaginated, listSubAgentExternalAgentRelations, listSubAgentTeamAgentRelations, listSubAgents, listSubAgentsPaginated, listTaskIdsByContextId, listTools, loadEnvironmentFiles, maskApiKey, problemDetailsSchema, projectExists, projectExistsInTable, projectHasResources, removeArtifactComponentFromAgent, removeDataComponentFromAgent, removeToolFromAgent, schemaValidationDefaults, setActiveAgentForConversation, setActiveAgentForThread, setCacheEntry, setSpanWithError, updateAgent, updateAgentRelation, updateAgentToolRelation, updateApiKey, updateApiKeyLastUsed, updateArtifactComponent, updateContextConfig, updateConversation, updateConversationActiveAgent, updateCredentialReference, updateDataComponent, updateExternalAgent, updateFullAgentServerSide, updateFullProjectServerSide, updateFunctionTool, updateMessage, updateProject, updateSubAgent, updateSubAgentExternalAgentRelation, updateSubAgentFunctionToolRelation, updateSubAgentTeamAgentRelation, updateTask, updateTool, upsertAgent, upsertAgentArtifactComponentRelation, upsertAgentDataComponentRelation, upsertArtifactComponent, upsertContextConfig, upsertCredentialReference, upsertDataComponent, upsertExternalAgent, upsertFunction, upsertFunctionTool, upsertLedgerArtifact, upsertSubAgent, upsertSubAgentExternalAgentRelation, upsertSubAgentFunctionToolRelation, upsertSubAgentRelation, upsertSubAgentTeamAgentRelation, upsertSubAgentToolRelation, upsertTool, validateAgainstJsonSchema, validateAndGetApiKey, validateApiKey, validateHeaders, validateHttpRequestHeaders, validateProjectExists, validateSubAgent, validateTargetAgent, validateTenantId, validationHelper, verifyAuthorizationHeader, verifyServiceToken, withProjectValidation };