@inkeep/agents-core 0.0.0-dev-20251212193302 → 0.0.0-dev-20251212214637

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -3,22 +3,22 @@ import { r as PinoLogger, s as getLogger } from './auth-detection-B8jOnR88.js';
3
3
  export { i as ACTIVITY_NAMES, g as ACTIVITY_STATUS, f as ACTIVITY_TYPES, h as AGENT_IDS, p as AGGREGATE_OPERATORS, A as AI_OPERATIONS, j as AI_TOOL_TYPES, o as DATA_SOURCES, k as DATA_TYPES, D as DELEGATION_FROM_SUB_AGENT_ID, b as DELEGATION_ID, a as DELEGATION_TO_SUB_AGENT_ID, F as FIELD_TYPES, L as LoggerFactoryConfig, M as McpOAuthFlowResult, u as McpTokenExchangeResult, t as OAuthConfig, O as OPERATORS, m as ORDER_DIRECTIONS, P as PANEL_TYPES, x as PinoLoggerConfig, q as QUERY_DEFAULTS, l as QUERY_EXPRESSIONS, Q as QUERY_FIELD_CONFIGS, n as QUERY_TYPES, R as REDUCE_OPERATIONS, e as SPAN_KEYS, S as SPAN_NAMES, T as TRANSFER_FROM_SUB_AGENT_ID, c as TRANSFER_TO_SUB_AGENT_ID, U as UNKNOWN_VALUE, d as detectAuthenticationRequired, w as exchangeMcpAuthorizationCode, v as initiateMcpOAuthFlow, y as loggerFactory } from './auth-detection-B8jOnR88.js';
4
4
  export { AGENT_EXECUTION_TRANSFER_COUNT_DEFAULT, AGENT_EXECUTION_TRANSFER_COUNT_MAX, AGENT_EXECUTION_TRANSFER_COUNT_MIN, CONTEXT_FETCHER_HTTP_TIMEOUT_MS_DEFAULT, 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, VALIDATION_AGENT_PROMPT_MAX_CHARS, VALIDATION_SUB_AGENT_PROMPT_MAX_CHARS, schemaValidationDefaults } from './constants/schema-validation/index.js';
5
5
  import { z } from '@hono/zod-openapi';
6
- import { r as CredentialReferenceApiInsert, s as ContextConfigSelect, C as ContextFetchDefinition, o as MCPTransportType, t as MCPToolConfig, u as ProjectScopeConfig, v as FullAgentDefinition, w as AgentScopeConfig, a 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, d 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, e as MessageMetadata, M 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, b as ToolMcpConfig, c 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, f as CredentialStoreType, ay as ExecutionContext, az as MessageSelect, n as ModelSettings, aA as PrebuiltMCPServerSchema } from './utility-Bs4wyI1w.js';
7
- export { bc as A2AError, bI as A2ARequest, bJ as A2AResponse, aN as APIKeySecurityScheme, bX as AgentApiInsert, e4 as AgentApiInsertSchema, bW as AgentApiSelect, e3 as AgentApiSelectSchema, bY as AgentApiUpdate, e5 as AgentApiUpdateSchema, aJ as AgentCapabilities, aX as AgentCard, dy as AgentConversationHistoryConfig, e1 as AgentInsertSchema, gO as AgentListResponse, aK as AgentProvider, gy as AgentResponse, e0 as AgentSelectSchema, aL as AgentSkill, k as AgentStopWhen, h as AgentStopWhenSchema, e2 as AgentUpdateSchema, h5 as AgentWithinContextOfProjectResponse, gi as AgentWithinContextOfProjectSchema, f8 as AllAgentSchema, cQ as AllAgentSelect, cU as ApiKeyApiCreationResponse, fd as ApiKeyApiCreationResponseSchema, cS as ApiKeyApiInsert, fe as ApiKeyApiInsertSchema, cR as ApiKeyApiSelect, fc as ApiKeyApiSelectSchema, cT as ApiKeyApiUpdate, A as ApiKeyApiUpdateSchema, fa as ApiKeyInsertSchema, gS as ApiKeyListResponse, gC as ApiKeyResponse, f9 as ApiKeySelectSchema, fb as ApiKeyUpdateSchema, cF as ArtifactComponentApiInsert, eW as ArtifactComponentApiInsertSchema, cE as ArtifactComponentApiSelect, eV as ArtifactComponentApiSelectSchema, cG as ArtifactComponentApiUpdate, eX as ArtifactComponentApiUpdateSchema, hf as ArtifactComponentArrayResponse, eT as ArtifactComponentInsertSchema, gX as ArtifactComponentListResponse, gH as ArtifactComponentResponse, eS as ArtifactComponentSelectSchema, eU as ArtifactComponentUpdateSchema, aQ as AuthorizationCodeOAuthFlow, dh as CanDelegateToExternalAgent, dg as CanUseItem, ge as CanUseItemSchema, bs as CancelTaskRequest, bD as CancelTaskResponse, bC as CancelTaskSuccessResponse, aR as ClientCredentialsOAuthFlow, h7 as ComponentAssociationListResponse, fq as ComponentAssociationSchema, ba as ContentTypeNotSupportedError, ct as ContextCacheApiInsert, eD as ContextCacheApiInsertSchema, cs as ContextCacheApiSelect, eC as ContextCacheApiSelectSchema, cu as ContextCacheApiUpdate, eE as ContextCacheApiUpdateSchema, dz as ContextCacheEntry, eA as ContextCacheInsertSchema, ez as ContextCacheSelectSchema, cr as ContextCacheUpdate, eB as ContextCacheUpdateSchema, cn as ContextConfigApiInsert, fO as ContextConfigApiInsertSchema, cm as ContextConfigApiSelect, fN as ContextConfigApiSelectSchema, co as ContextConfigApiUpdate, fP as ContextConfigApiUpdateSchema, fL as ContextConfigInsertSchema, gR as ContextConfigListResponse, gB as ContextConfigResponse, fK as ContextConfigSelectSchema, fM as ContextConfigUpdateSchema, ch as ConversationApiInsert, er as ConversationApiInsertSchema, cg as ConversationApiSelect, eq as ConversationApiSelectSchema, ci as ConversationApiUpdate, es as ConversationApiUpdateSchema, eo as ConversationInsertSchema, g_ as ConversationListResponse, gK as ConversationResponse, dx as ConversationScopeOptions, en as ConversationSelectSchema, ep as ConversationUpdateSchema, fn as CreateCredentialInStoreRequestSchema, fo as CreateCredentialInStoreResponseSchema, fj as CredentialReferenceApiInsertSchema, cV as CredentialReferenceApiSelect, fi as CredentialReferenceApiSelectSchema, cW as CredentialReferenceApiUpdate, fk as CredentialReferenceApiUpdateSchema, fg as CredentialReferenceInsertSchema, gT as CredentialReferenceListResponse, gD as CredentialReferenceResponse, ff as CredentialReferenceSelectSchema, fh as CredentialReferenceUpdateSchema, fm as CredentialStoreListResponseSchema, fl as CredentialStoreSchema, cw as DataComponentApiInsert, eK as DataComponentApiInsertSchema, cv as DataComponentApiSelect, eJ as DataComponentApiSelectSchema, cx as DataComponentApiUpdate, eL as DataComponentApiUpdateSchema, he as DataComponentArrayResponse, eH as DataComponentBaseSchema, eG as DataComponentInsertSchema, gW as DataComponentListResponse, gG as DataComponentResponse, eF as DataComponentSelectSchema, eI as DataComponentUpdateSchema, aH as DataPart, gm as ErrorResponseSchema, gn as ExistsResponseSchema, cO as ExternalAgentApiInsert, f6 as ExternalAgentApiInsertSchema, cN as ExternalAgentApiSelect, f5 as ExternalAgentApiSelectSchema, cP as ExternalAgentApiUpdate, f7 as ExternalAgentApiUpdateSchema, f3 as ExternalAgentInsertSchema, gQ as ExternalAgentListResponse, gA as ExternalAgentResponse, f2 as ExternalAgentSelectSchema, f4 as ExternalAgentUpdateSchema, bV as ExternalSubAgentRelationApiInsert, d$ as ExternalSubAgentRelationApiInsertSchema, bU as ExternalSubAgentRelationInsert, d_ as ExternalSubAgentRelationInsertSchema, cq as FetchConfig, fI as FetchConfigSchema, cp as FetchDefinition, fJ as FetchDefinitionSchema, aD as FileBase, aG as FilePart, aE as FileWithBytes, aF as FileWithUri, dI as Filter, df as FullAgentAgentInsert, g as FullAgentAgentInsertSchema, h4 as FullProjectDefinitionResponse, gv as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, cd as FunctionApiSelect, p as FunctionApiSelectSchema, ce as FunctionApiUpdate, q as FunctionApiUpdateSchema, cb as FunctionInsert, fG as FunctionInsertSchema, gU as FunctionListResponse, gE as FunctionResponse, ca as FunctionSelect, fF as FunctionSelectSchema, fD as FunctionToolApiInsertSchema, cf as FunctionToolApiSelect, fC as FunctionToolApiSelectSchema, fE as FunctionToolApiUpdateSchema, dM as FunctionToolConfig, dL as FunctionToolConfigSchema, fA as FunctionToolInsertSchema, gV as FunctionToolListResponse, gF as FunctionToolResponse, fz as FunctionToolSelectSchema, fB as FunctionToolUpdateSchema, cc as FunctionUpdate, fH as FunctionUpdateSchema, bu as GetTaskPushNotificationConfigRequest, bH as GetTaskPushNotificationConfigResponse, bG as GetTaskPushNotificationConfigSuccessResponse, br as GetTaskRequest, bB as GetTaskResponse, bA as GetTaskSuccessResponse, aO as HTTPAuthSecurityScheme, hg as HeadersScopeSchema, aS as ImplicitOAuthFlow, b5 as InternalError, bb as InvalidAgentResponseError, b4 as InvalidParamsError, b2 as InvalidRequestError, b1 as JSONParseError, bm as JSONRPCError, bo as JSONRPCErrorResponse, bk as JSONRPCMessage, bl as JSONRPCRequest, bn as JSONRPCResult, dd as LedgerArtifactApiInsert, ga as LedgerArtifactApiInsertSchema, dc as LedgerArtifactApiSelect, g9 as LedgerArtifactApiSelectSchema, de as LedgerArtifactApiUpdate, gb as LedgerArtifactApiUpdateSchema, da as LedgerArtifactInsert, g7 as LedgerArtifactInsertSchema, g6 as LedgerArtifactSelectSchema, db as LedgerArtifactUpdate, g8 as LedgerArtifactUpdateSchema, gk as ListResponseSchema, hq as MCPCatalogListResponse, dH as MCPServerType, fu as MCPToolConfigSchema, dA as McpAuthType, dB as McpServerAuth, dD as McpServerCapabilities, dE as McpToolDefinition, ek as McpToolDefinitionSchema, h9 as McpToolListResponse, h8 as McpToolResponse, ft as McpToolSchema, dC as McpTransportConfig, ei as McpTransportConfigSchema, aY as Message, ck as MessageApiInsert, ex as MessageApiInsertSchema, cj as MessageApiSelect, ew as MessageApiSelectSchema, cl as MessageApiUpdate, ey as MessageApiUpdateSchema, eu as MessageInsertSchema, g$ as MessageListResponse, ds as MessageMode, bK as MessagePart, gL as MessageResponse, dr as MessageRole, et as MessageSelectSchema, bi as MessageSendConfiguration, bj as MessageSendParams, dq as MessageType, ev as MessageUpdateSchema, b3 as MethodNotFoundError, dJ as ModelSchema, m as ModelSettingsSchema, dt as Models, aU as OAuth2SecurityScheme, fs as OAuthCallbackQuerySchema, aP as OAuthFlows, fr as OAuthLoginQuerySchema, aV as OpenIdConnectSecurityScheme, dn as Pagination, hp as PaginationQueryParamsSchema, gj as PaginationSchema, P as Part, aB as PartBase, aT as PasswordOAuthFlow, dl as ProjectApiInsert, gt as ProjectApiInsertSchema, dk as ProjectApiSelect, gs as ProjectApiSelectSchema, dm as ProjectApiUpdate, gu as ProjectApiUpdateSchema, gq as ProjectInsertSchema, gM as ProjectListResponse, dK as ProjectModelSchema, du as ProjectModels, gw as ProjectResponse, gp as ProjectSelectSchema, gr as ProjectUpdateSchema, bd as PushNotificationAuthenticationInfo, be as PushNotificationConfig, b8 as PushNotificationNotSupportedError, h6 as RelatedAgentInfoListResponse, fp as RelatedAgentInfoSchema, go as RemovedResponseSchema, aW as SecurityScheme, aM as SecuritySchemeBase, bp as SendMessageRequest, bx as SendMessageResponse, bw as SendMessageSuccessResponse, bq as SendStreamingMessageRequest, bz as SendStreamingMessageResponse, by as SendStreamingMessageSuccessResponse, bt as SetTaskPushNotificationConfigRequest, bF as SetTaskPushNotificationConfigResponse, bE as SetTaskPushNotificationConfigSuccessResponse, gl as SingleResponseSchema, dw as StatusComponent, gc as StatusComponentSchema, gd as StatusUpdateSchema, dv as StatusUpdateSettings, j as StopWhen, S as StopWhenSchema, bN as SubAgentApiInsert, dR as SubAgentApiInsertSchema, bM as SubAgentApiSelect, dQ as SubAgentApiSelectSchema, bO as SubAgentApiUpdate, dS as SubAgentApiUpdateSchema, cL as SubAgentArtifactComponentApiInsert, f0 as SubAgentArtifactComponentApiInsertSchema, cK as SubAgentArtifactComponentApiSelect, e$ as SubAgentArtifactComponentApiSelectSchema, cM as SubAgentArtifactComponentApiUpdate, f1 as SubAgentArtifactComponentApiUpdateSchema, cI as SubAgentArtifactComponentInsert, eZ as SubAgentArtifactComponentInsertSchema, h3 as SubAgentArtifactComponentListResponse, h1 as SubAgentArtifactComponentResponse, cH as SubAgentArtifactComponentSelect, eY as SubAgentArtifactComponentSelectSchema, cJ as SubAgentArtifactComponentUpdate, e_ as SubAgentArtifactComponentUpdateSchema, cC as SubAgentDataComponentApiInsert, eQ as SubAgentDataComponentApiInsertSchema, cB as SubAgentDataComponentApiSelect, eP as SubAgentDataComponentApiSelectSchema, cD as SubAgentDataComponentApiUpdate, eR as SubAgentDataComponentApiUpdateSchema, cz as SubAgentDataComponentInsert, eN as SubAgentDataComponentInsertSchema, h2 as SubAgentDataComponentListResponse, h0 as SubAgentDataComponentResponse, cy as SubAgentDataComponentSelect, eM as SubAgentDataComponentSelectSchema, cA as SubAgentDataComponentUpdate, eO as SubAgentDataComponentUpdateSchema, di as SubAgentDefinition, d3 as SubAgentExternalAgentRelationApiInsert, f_ as SubAgentExternalAgentRelationApiInsertSchema, d2 as SubAgentExternalAgentRelationApiSelect, fZ as SubAgentExternalAgentRelationApiSelectSchema, d4 as SubAgentExternalAgentRelationApiUpdate, f$ as SubAgentExternalAgentRelationApiUpdateSchema, fX as SubAgentExternalAgentRelationInsertSchema, hd as SubAgentExternalAgentRelationListResponse, hc as SubAgentExternalAgentRelationResponse, d0 as SubAgentExternalAgentRelationSelect, fW as SubAgentExternalAgentRelationSelectSchema, d1 as SubAgentExternalAgentRelationUpdate, fY as SubAgentExternalAgentRelationUpdateSchema, dO as SubAgentInsertSchema, gN as SubAgentListResponse, bR as SubAgentRelationApiInsert, dX as SubAgentRelationApiInsertSchema, bQ as SubAgentRelationApiSelect, dW as SubAgentRelationApiSelectSchema, bS as SubAgentRelationApiUpdate, dY as SubAgentRelationApiUpdateSchema, dU as SubAgentRelationInsertSchema, gY as SubAgentRelationListResponse, bT as SubAgentRelationQuery, dZ as SubAgentRelationQuerySchema, gI as SubAgentRelationResponse, bP as SubAgentRelationSelect, dT as SubAgentRelationSelectSchema, dV as SubAgentRelationUpdateSchema, gx as SubAgentResponse, dN as SubAgentSelectSchema, l as SubAgentStopWhen, i as SubAgentStopWhenSchema, d8 as SubAgentTeamAgentRelationApiInsert, g4 as SubAgentTeamAgentRelationApiInsertSchema, d7 as SubAgentTeamAgentRelationApiSelect, g3 as SubAgentTeamAgentRelationApiSelectSchema, d9 as SubAgentTeamAgentRelationApiUpdate, g5 as SubAgentTeamAgentRelationApiUpdateSchema, g1 as SubAgentTeamAgentRelationInsertSchema, hb as SubAgentTeamAgentRelationListResponse, ha as SubAgentTeamAgentRelationResponse, d5 as SubAgentTeamAgentRelationSelect, g0 as SubAgentTeamAgentRelationSelectSchema, d6 as SubAgentTeamAgentRelationUpdate, g2 as SubAgentTeamAgentRelationUpdateSchema, c_ as SubAgentToolRelationApiInsert, fU as SubAgentToolRelationApiInsertSchema, cZ as SubAgentToolRelationApiSelect, fT as SubAgentToolRelationApiSelectSchema, c$ as SubAgentToolRelationApiUpdate, fV as SubAgentToolRelationApiUpdateSchema, cY as SubAgentToolRelationInsert, fR as SubAgentToolRelationInsertSchema, gZ as SubAgentToolRelationListResponse, gJ as SubAgentToolRelationResponse, cX as SubAgentToolRelationSelect, fQ as SubAgentToolRelationSelectSchema, fS as SubAgentToolRelationUpdateSchema, dP as SubAgentUpdateSchema, dp as SummaryEvent, dF as TOOL_STATUS_VALUES, a_ as Task, b$ as TaskApiInsert, ea as TaskApiInsertSchema, b_ as TaskApiSelect, e9 as TaskApiSelectSchema, c0 as TaskApiUpdate, eb as TaskApiUpdateSchema, bL as TaskArtifact, b0 as TaskArtifactUpdateEvent, bg as TaskIdParams, e7 as TaskInsertSchema, b7 as TaskNotCancelableError, b6 as TaskNotFoundError, bf as TaskPushNotificationConfig, bh as TaskQueryParams, c5 as TaskRelationApiInsert, eg as TaskRelationApiInsertSchema, c4 as TaskRelationApiSelect, ef as TaskRelationApiSelectSchema, c6 as TaskRelationApiUpdate, eh as TaskRelationApiUpdateSchema, c2 as TaskRelationInsert, ed as TaskRelationInsertSchema, c1 as TaskRelationSelect, ec as TaskRelationSelectSchema, c3 as TaskRelationUpdate, ee as TaskRelationUpdateSchema, bv as TaskResubscriptionRequest, e6 as TaskSelectSchema, aI as TaskState, aZ as TaskStatus, a$ as TaskStatusUpdateEvent, bZ as TaskUpdate, e8 as TaskUpdateSchema, gh as TeamAgentSchema, hi as TenantIdParamsSchema, hh as TenantParamsSchema, hm as TenantProjectAgentIdParamsSchema, hl as TenantProjectAgentParamsSchema, ho as TenantProjectAgentSubAgentIdParamsSchema, hn as TenantProjectAgentSubAgentParamsSchema, hk as TenantProjectIdParamsSchema, hj as TenantProjectParamsSchema, aC as TextPart, hr as ThirdPartyMCPServerResponse, c8 as ToolApiInsert, fx as ToolApiInsertSchema, c7 as ToolApiSelect, fw as ToolApiSelectSchema, c9 as ToolApiUpdate, fy as ToolApiUpdateSchema, dj as ToolDefinition, em as ToolInsertSchema, gP as ToolListResponse, gz as ToolResponse, el as ToolSelectSchema, ej as ToolStatusSchema, fv as ToolUpdateSchema, b9 as UnsupportedOperationError, dG as VALID_RELATION_TYPES, gf as canDelegateToExternalAgentSchema, gg as canDelegateToTeamAgentSchema } from './utility-Bs4wyI1w.js';
6
+ import { r as CredentialReferenceApiInsert, s as ContextConfigSelect, C as ContextFetchDefinition, o as MCPTransportType, t as MCPToolConfig, u as ProjectScopeConfig, v as FullAgentDefinition, w as AgentScopeConfig, a 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, d 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, e as MessageMetadata, M 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, b as ToolMcpConfig, c 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, f as CredentialStoreType, ay as ExecutionContext, az as MessageSelect, n as ModelSettings, aA as PrebuiltMCPServerSchema } from './utility-dsfXkYTu.js';
7
+ export { bc as A2AError, bI as A2ARequest, bJ as A2AResponse, aN as APIKeySecurityScheme, bX as AgentApiInsert, e4 as AgentApiInsertSchema, bW as AgentApiSelect, e3 as AgentApiSelectSchema, bY as AgentApiUpdate, e5 as AgentApiUpdateSchema, aJ as AgentCapabilities, aX as AgentCard, dy as AgentConversationHistoryConfig, e1 as AgentInsertSchema, gO as AgentListResponse, aK as AgentProvider, gy as AgentResponse, e0 as AgentSelectSchema, aL as AgentSkill, k as AgentStopWhen, h as AgentStopWhenSchema, e2 as AgentUpdateSchema, h5 as AgentWithinContextOfProjectResponse, gi as AgentWithinContextOfProjectSchema, f8 as AllAgentSchema, cQ as AllAgentSelect, cU as ApiKeyApiCreationResponse, fd as ApiKeyApiCreationResponseSchema, cS as ApiKeyApiInsert, fe as ApiKeyApiInsertSchema, cR as ApiKeyApiSelect, fc as ApiKeyApiSelectSchema, cT as ApiKeyApiUpdate, A as ApiKeyApiUpdateSchema, fa as ApiKeyInsertSchema, gS as ApiKeyListResponse, gC as ApiKeyResponse, f9 as ApiKeySelectSchema, fb as ApiKeyUpdateSchema, cF as ArtifactComponentApiInsert, eW as ArtifactComponentApiInsertSchema, cE as ArtifactComponentApiSelect, eV as ArtifactComponentApiSelectSchema, cG as ArtifactComponentApiUpdate, eX as ArtifactComponentApiUpdateSchema, hf as ArtifactComponentArrayResponse, eT as ArtifactComponentInsertSchema, gX as ArtifactComponentListResponse, gH as ArtifactComponentResponse, eS as ArtifactComponentSelectSchema, eU as ArtifactComponentUpdateSchema, aQ as AuthorizationCodeOAuthFlow, dh as CanDelegateToExternalAgent, dg as CanUseItem, ge as CanUseItemSchema, bs as CancelTaskRequest, bD as CancelTaskResponse, bC as CancelTaskSuccessResponse, aR as ClientCredentialsOAuthFlow, h7 as ComponentAssociationListResponse, fq as ComponentAssociationSchema, ba as ContentTypeNotSupportedError, ct as ContextCacheApiInsert, eD as ContextCacheApiInsertSchema, cs as ContextCacheApiSelect, eC as ContextCacheApiSelectSchema, cu as ContextCacheApiUpdate, eE as ContextCacheApiUpdateSchema, dz as ContextCacheEntry, eA as ContextCacheInsertSchema, ez as ContextCacheSelectSchema, cr as ContextCacheUpdate, eB as ContextCacheUpdateSchema, cn as ContextConfigApiInsert, fO as ContextConfigApiInsertSchema, cm as ContextConfigApiSelect, fN as ContextConfigApiSelectSchema, co as ContextConfigApiUpdate, fP as ContextConfigApiUpdateSchema, fL as ContextConfigInsertSchema, gR as ContextConfigListResponse, gB as ContextConfigResponse, fK as ContextConfigSelectSchema, fM as ContextConfigUpdateSchema, ch as ConversationApiInsert, er as ConversationApiInsertSchema, cg as ConversationApiSelect, eq as ConversationApiSelectSchema, ci as ConversationApiUpdate, es as ConversationApiUpdateSchema, eo as ConversationInsertSchema, g_ as ConversationListResponse, gK as ConversationResponse, dx as ConversationScopeOptions, en as ConversationSelectSchema, ep as ConversationUpdateSchema, fn as CreateCredentialInStoreRequestSchema, fo as CreateCredentialInStoreResponseSchema, fj as CredentialReferenceApiInsertSchema, cV as CredentialReferenceApiSelect, fi as CredentialReferenceApiSelectSchema, cW as CredentialReferenceApiUpdate, fk as CredentialReferenceApiUpdateSchema, fg as CredentialReferenceInsertSchema, gT as CredentialReferenceListResponse, gD as CredentialReferenceResponse, ff as CredentialReferenceSelectSchema, fh as CredentialReferenceUpdateSchema, fm as CredentialStoreListResponseSchema, fl as CredentialStoreSchema, cw as DataComponentApiInsert, eK as DataComponentApiInsertSchema, cv as DataComponentApiSelect, eJ as DataComponentApiSelectSchema, cx as DataComponentApiUpdate, eL as DataComponentApiUpdateSchema, he as DataComponentArrayResponse, eH as DataComponentBaseSchema, eG as DataComponentInsertSchema, gW as DataComponentListResponse, gG as DataComponentResponse, eF as DataComponentSelectSchema, eI as DataComponentUpdateSchema, aH as DataPart, gm as ErrorResponseSchema, gn as ExistsResponseSchema, cO as ExternalAgentApiInsert, f6 as ExternalAgentApiInsertSchema, cN as ExternalAgentApiSelect, f5 as ExternalAgentApiSelectSchema, cP as ExternalAgentApiUpdate, f7 as ExternalAgentApiUpdateSchema, f3 as ExternalAgentInsertSchema, gQ as ExternalAgentListResponse, gA as ExternalAgentResponse, f2 as ExternalAgentSelectSchema, f4 as ExternalAgentUpdateSchema, bV as ExternalSubAgentRelationApiInsert, d$ as ExternalSubAgentRelationApiInsertSchema, bU as ExternalSubAgentRelationInsert, d_ as ExternalSubAgentRelationInsertSchema, cq as FetchConfig, fI as FetchConfigSchema, cp as FetchDefinition, fJ as FetchDefinitionSchema, aD as FileBase, aG as FilePart, aE as FileWithBytes, aF as FileWithUri, dI as Filter, df as FullAgentAgentInsert, g as FullAgentAgentInsertSchema, h4 as FullProjectDefinitionResponse, gv as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, cd as FunctionApiSelect, p as FunctionApiSelectSchema, ce as FunctionApiUpdate, q as FunctionApiUpdateSchema, cb as FunctionInsert, fG as FunctionInsertSchema, gU as FunctionListResponse, gE as FunctionResponse, ca as FunctionSelect, fF as FunctionSelectSchema, fD as FunctionToolApiInsertSchema, cf as FunctionToolApiSelect, fC as FunctionToolApiSelectSchema, fE as FunctionToolApiUpdateSchema, dM as FunctionToolConfig, dL as FunctionToolConfigSchema, fA as FunctionToolInsertSchema, gV as FunctionToolListResponse, gF as FunctionToolResponse, fz as FunctionToolSelectSchema, fB as FunctionToolUpdateSchema, cc as FunctionUpdate, fH as FunctionUpdateSchema, bu as GetTaskPushNotificationConfigRequest, bH as GetTaskPushNotificationConfigResponse, bG as GetTaskPushNotificationConfigSuccessResponse, br as GetTaskRequest, bB as GetTaskResponse, bA as GetTaskSuccessResponse, aO as HTTPAuthSecurityScheme, hg as HeadersScopeSchema, aS as ImplicitOAuthFlow, b5 as InternalError, bb as InvalidAgentResponseError, b4 as InvalidParamsError, b2 as InvalidRequestError, b1 as JSONParseError, bm as JSONRPCError, bo as JSONRPCErrorResponse, bk as JSONRPCMessage, bl as JSONRPCRequest, bn as JSONRPCResult, dd as LedgerArtifactApiInsert, ga as LedgerArtifactApiInsertSchema, dc as LedgerArtifactApiSelect, g9 as LedgerArtifactApiSelectSchema, de as LedgerArtifactApiUpdate, gb as LedgerArtifactApiUpdateSchema, da as LedgerArtifactInsert, g7 as LedgerArtifactInsertSchema, g6 as LedgerArtifactSelectSchema, db as LedgerArtifactUpdate, g8 as LedgerArtifactUpdateSchema, gk as ListResponseSchema, hq as MCPCatalogListResponse, dH as MCPServerType, fu as MCPToolConfigSchema, dA as McpAuthType, dB as McpServerAuth, dD as McpServerCapabilities, dE as McpToolDefinition, ek as McpToolDefinitionSchema, h9 as McpToolListResponse, h8 as McpToolResponse, ft as McpToolSchema, dC as McpTransportConfig, ei as McpTransportConfigSchema, aY as Message, ck as MessageApiInsert, ex as MessageApiInsertSchema, cj as MessageApiSelect, ew as MessageApiSelectSchema, cl as MessageApiUpdate, ey as MessageApiUpdateSchema, eu as MessageInsertSchema, g$ as MessageListResponse, ds as MessageMode, bK as MessagePart, gL as MessageResponse, dr as MessageRole, et as MessageSelectSchema, bi as MessageSendConfiguration, bj as MessageSendParams, dq as MessageType, ev as MessageUpdateSchema, b3 as MethodNotFoundError, dJ as ModelSchema, m as ModelSettingsSchema, dt as Models, aU as OAuth2SecurityScheme, fs as OAuthCallbackQuerySchema, aP as OAuthFlows, fr as OAuthLoginQuerySchema, aV as OpenIdConnectSecurityScheme, dn as Pagination, hp as PaginationQueryParamsSchema, gj as PaginationSchema, P as Part, aB as PartBase, aT as PasswordOAuthFlow, dl as ProjectApiInsert, gt as ProjectApiInsertSchema, dk as ProjectApiSelect, gs as ProjectApiSelectSchema, dm as ProjectApiUpdate, gu as ProjectApiUpdateSchema, gq as ProjectInsertSchema, gM as ProjectListResponse, dK as ProjectModelSchema, du as ProjectModels, gw as ProjectResponse, gp as ProjectSelectSchema, gr as ProjectUpdateSchema, bd as PushNotificationAuthenticationInfo, be as PushNotificationConfig, b8 as PushNotificationNotSupportedError, h6 as RelatedAgentInfoListResponse, fp as RelatedAgentInfoSchema, go as RemovedResponseSchema, aW as SecurityScheme, aM as SecuritySchemeBase, bp as SendMessageRequest, bx as SendMessageResponse, bw as SendMessageSuccessResponse, bq as SendStreamingMessageRequest, bz as SendStreamingMessageResponse, by as SendStreamingMessageSuccessResponse, bt as SetTaskPushNotificationConfigRequest, bF as SetTaskPushNotificationConfigResponse, bE as SetTaskPushNotificationConfigSuccessResponse, gl as SingleResponseSchema, dw as StatusComponent, gc as StatusComponentSchema, gd as StatusUpdateSchema, dv as StatusUpdateSettings, j as StopWhen, S as StopWhenSchema, bN as SubAgentApiInsert, dR as SubAgentApiInsertSchema, bM as SubAgentApiSelect, dQ as SubAgentApiSelectSchema, bO as SubAgentApiUpdate, dS as SubAgentApiUpdateSchema, cL as SubAgentArtifactComponentApiInsert, f0 as SubAgentArtifactComponentApiInsertSchema, cK as SubAgentArtifactComponentApiSelect, e$ as SubAgentArtifactComponentApiSelectSchema, cM as SubAgentArtifactComponentApiUpdate, f1 as SubAgentArtifactComponentApiUpdateSchema, cI as SubAgentArtifactComponentInsert, eZ as SubAgentArtifactComponentInsertSchema, h3 as SubAgentArtifactComponentListResponse, h1 as SubAgentArtifactComponentResponse, cH as SubAgentArtifactComponentSelect, eY as SubAgentArtifactComponentSelectSchema, cJ as SubAgentArtifactComponentUpdate, e_ as SubAgentArtifactComponentUpdateSchema, cC as SubAgentDataComponentApiInsert, eQ as SubAgentDataComponentApiInsertSchema, cB as SubAgentDataComponentApiSelect, eP as SubAgentDataComponentApiSelectSchema, cD as SubAgentDataComponentApiUpdate, eR as SubAgentDataComponentApiUpdateSchema, cz as SubAgentDataComponentInsert, eN as SubAgentDataComponentInsertSchema, h2 as SubAgentDataComponentListResponse, h0 as SubAgentDataComponentResponse, cy as SubAgentDataComponentSelect, eM as SubAgentDataComponentSelectSchema, cA as SubAgentDataComponentUpdate, eO as SubAgentDataComponentUpdateSchema, di as SubAgentDefinition, d3 as SubAgentExternalAgentRelationApiInsert, f_ as SubAgentExternalAgentRelationApiInsertSchema, d2 as SubAgentExternalAgentRelationApiSelect, fZ as SubAgentExternalAgentRelationApiSelectSchema, d4 as SubAgentExternalAgentRelationApiUpdate, f$ as SubAgentExternalAgentRelationApiUpdateSchema, fX as SubAgentExternalAgentRelationInsertSchema, hd as SubAgentExternalAgentRelationListResponse, hc as SubAgentExternalAgentRelationResponse, d0 as SubAgentExternalAgentRelationSelect, fW as SubAgentExternalAgentRelationSelectSchema, d1 as SubAgentExternalAgentRelationUpdate, fY as SubAgentExternalAgentRelationUpdateSchema, dO as SubAgentInsertSchema, gN as SubAgentListResponse, bR as SubAgentRelationApiInsert, dX as SubAgentRelationApiInsertSchema, bQ as SubAgentRelationApiSelect, dW as SubAgentRelationApiSelectSchema, bS as SubAgentRelationApiUpdate, dY as SubAgentRelationApiUpdateSchema, dU as SubAgentRelationInsertSchema, gY as SubAgentRelationListResponse, bT as SubAgentRelationQuery, dZ as SubAgentRelationQuerySchema, gI as SubAgentRelationResponse, bP as SubAgentRelationSelect, dT as SubAgentRelationSelectSchema, dV as SubAgentRelationUpdateSchema, gx as SubAgentResponse, dN as SubAgentSelectSchema, l as SubAgentStopWhen, i as SubAgentStopWhenSchema, d8 as SubAgentTeamAgentRelationApiInsert, g4 as SubAgentTeamAgentRelationApiInsertSchema, d7 as SubAgentTeamAgentRelationApiSelect, g3 as SubAgentTeamAgentRelationApiSelectSchema, d9 as SubAgentTeamAgentRelationApiUpdate, g5 as SubAgentTeamAgentRelationApiUpdateSchema, g1 as SubAgentTeamAgentRelationInsertSchema, hb as SubAgentTeamAgentRelationListResponse, ha as SubAgentTeamAgentRelationResponse, d5 as SubAgentTeamAgentRelationSelect, g0 as SubAgentTeamAgentRelationSelectSchema, d6 as SubAgentTeamAgentRelationUpdate, g2 as SubAgentTeamAgentRelationUpdateSchema, c_ as SubAgentToolRelationApiInsert, fU as SubAgentToolRelationApiInsertSchema, cZ as SubAgentToolRelationApiSelect, fT as SubAgentToolRelationApiSelectSchema, c$ as SubAgentToolRelationApiUpdate, fV as SubAgentToolRelationApiUpdateSchema, cY as SubAgentToolRelationInsert, fR as SubAgentToolRelationInsertSchema, gZ as SubAgentToolRelationListResponse, gJ as SubAgentToolRelationResponse, cX as SubAgentToolRelationSelect, fQ as SubAgentToolRelationSelectSchema, fS as SubAgentToolRelationUpdateSchema, dP as SubAgentUpdateSchema, dp as SummaryEvent, dF as TOOL_STATUS_VALUES, a_ as Task, b$ as TaskApiInsert, ea as TaskApiInsertSchema, b_ as TaskApiSelect, e9 as TaskApiSelectSchema, c0 as TaskApiUpdate, eb as TaskApiUpdateSchema, bL as TaskArtifact, b0 as TaskArtifactUpdateEvent, bg as TaskIdParams, e7 as TaskInsertSchema, b7 as TaskNotCancelableError, b6 as TaskNotFoundError, bf as TaskPushNotificationConfig, bh as TaskQueryParams, c5 as TaskRelationApiInsert, eg as TaskRelationApiInsertSchema, c4 as TaskRelationApiSelect, ef as TaskRelationApiSelectSchema, c6 as TaskRelationApiUpdate, eh as TaskRelationApiUpdateSchema, c2 as TaskRelationInsert, ed as TaskRelationInsertSchema, c1 as TaskRelationSelect, ec as TaskRelationSelectSchema, c3 as TaskRelationUpdate, ee as TaskRelationUpdateSchema, bv as TaskResubscriptionRequest, e6 as TaskSelectSchema, aI as TaskState, aZ as TaskStatus, a$ as TaskStatusUpdateEvent, bZ as TaskUpdate, e8 as TaskUpdateSchema, gh as TeamAgentSchema, hi as TenantIdParamsSchema, hh as TenantParamsSchema, hm as TenantProjectAgentIdParamsSchema, hl as TenantProjectAgentParamsSchema, ho as TenantProjectAgentSubAgentIdParamsSchema, hn as TenantProjectAgentSubAgentParamsSchema, hk as TenantProjectIdParamsSchema, hj as TenantProjectParamsSchema, aC as TextPart, hr as ThirdPartyMCPServerResponse, c8 as ToolApiInsert, fx as ToolApiInsertSchema, c7 as ToolApiSelect, fw as ToolApiSelectSchema, c9 as ToolApiUpdate, fy as ToolApiUpdateSchema, dj as ToolDefinition, em as ToolInsertSchema, gP as ToolListResponse, gz as ToolResponse, el as ToolSelectSchema, ej as ToolStatusSchema, fv as ToolUpdateSchema, b9 as UnsupportedOperationError, dG as VALID_RELATION_TYPES, gf as canDelegateToExternalAgentSchema, gg as canDelegateToTeamAgentSchema } from './utility-dsfXkYTu.js';
8
8
  import { CredentialStoreRegistry } from './credential-stores/index.js';
9
9
  export { InMemoryCredentialStore, KeyChainStore, NangoCredentialStore, createDefaultCredentialStores, createKeyChainStore, createNangoCredentialStore } from './credential-stores/index.js';
10
- import { D as DatabaseClient } from './client-Bunt_hOt.js';
11
- export { a as DatabaseConfig, c as createDatabaseClient } from './client-Bunt_hOt.js';
10
+ import { D as DatabaseClient } from './client-DG_xZdlN.js';
11
+ export { a as DatabaseConfig, c as createDatabaseClient } from './client-DG_xZdlN.js';
12
12
  import { SSEClientTransportOptions } from '@modelcontextprotocol/sdk/client/sse.js';
13
13
  import { StreamableHTTPClientTransportOptions } from '@modelcontextprotocol/sdk/client/streamableHttp.js';
14
14
  import { ClientCapabilities } from '@modelcontextprotocol/sdk/types.js';
15
15
  import { PgTable } from 'drizzle-orm/pg-core';
16
16
  import { UserOrganization, User } from './auth/auth-validation-schemas.js';
17
- 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-DXTjRtKX.js';
17
+ 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-DA6PfmoP.js';
18
18
  export { cleanupTestDatabase, closeTestDatabase, createTestDatabaseClient, createTestOrganization, createTestProject } from './db/test-client.js';
19
19
  import { ValidateFunction } from 'ajv';
20
20
  import { Context, Next } from 'hono';
21
- export { a as CorsConfig, C as CredentialStore, b as ServerConfig, S as ServerOptions } from './server-CGOXX9Fl.js';
21
+ export { a as CorsConfig, C as CredentialStore, b as ServerConfig, S as ServerOptions } from './server-BviIeoo5.js';
22
22
  export { AgentMcpConfig, AgentMcpConfigInput, McpToolSelection, ToolPolicy, normalizeToolSelections } from './types/index.js';
23
23
  import { HTTPException } from 'hono/http-exception';
24
24
  import { LanguageModel } from 'ai';
@@ -551,13 +551,14 @@ declare const deleteFullAgent: (db: DatabaseClient, logger?: AgentLogger) => (pa
551
551
  declare const getAgentById: (db: DatabaseClient) => (params: {
552
552
  scopes: AgentScopeConfig;
553
553
  }) => Promise<{
554
- name: string;
554
+ tenantId: string;
555
+ projectId: string;
555
556
  id: string;
557
+ name: string;
558
+ description: string | null;
559
+ prompt: string | null;
556
560
  createdAt: string;
557
561
  updatedAt: string;
558
- description: string | null;
559
- projectId: string;
560
- tenantId: string;
561
562
  models: {
562
563
  base?: {
563
564
  model?: string | undefined;
@@ -577,7 +578,6 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
577
578
  } | null;
578
579
  defaultSubAgentId: string | null;
579
580
  contextConfigId: string | null;
580
- prompt: string | null;
581
581
  statusUpdates: {
582
582
  enabled?: boolean | undefined;
583
583
  numEvents?: number | undefined;
@@ -597,13 +597,14 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
597
597
  declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
598
598
  scopes: AgentScopeConfig;
599
599
  }) => Promise<{
600
- name: string;
600
+ tenantId: string;
601
+ projectId: string;
601
602
  id: string;
603
+ name: string;
604
+ description: string | null;
605
+ prompt: string | null;
602
606
  createdAt: string;
603
607
  updatedAt: string;
604
- description: string | null;
605
- projectId: string;
606
- tenantId: string;
607
608
  models: {
608
609
  base?: {
609
610
  model?: string | undefined;
@@ -623,7 +624,6 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
623
624
  } | null;
624
625
  defaultSubAgentId: string | null;
625
626
  contextConfigId: string | null;
626
- prompt: string | null;
627
627
  statusUpdates: {
628
628
  enabled?: boolean | undefined;
629
629
  numEvents?: number | undefined;
@@ -640,13 +640,15 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
640
640
  }[] | undefined;
641
641
  } | null;
642
642
  defaultSubAgent: {
643
- name: string;
643
+ tenantId: string;
644
+ projectId: string;
644
645
  id: string;
646
+ name: string;
647
+ description: string | null;
648
+ prompt: string | null;
649
+ agentId: string;
645
650
  createdAt: string;
646
651
  updatedAt: string;
647
- description: string | null;
648
- projectId: string;
649
- tenantId: string;
650
652
  models: {
651
653
  base?: {
652
654
  model?: string | undefined;
@@ -664,21 +666,20 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
664
666
  stopWhen: {
665
667
  stepCountIs?: number | undefined;
666
668
  } | null;
667
- agentId: string;
668
- prompt: string | null;
669
669
  conversationHistoryConfig: ConversationHistoryConfig | null;
670
670
  } | null;
671
671
  } | null>;
672
672
  declare const listAgents: (db: DatabaseClient) => (params: {
673
673
  scopes: ProjectScopeConfig;
674
674
  }) => Promise<{
675
- name: string;
675
+ tenantId: string;
676
+ projectId: string;
676
677
  id: string;
678
+ name: string;
679
+ description: string | null;
680
+ prompt: string | null;
677
681
  createdAt: string;
678
682
  updatedAt: string;
679
- description: string | null;
680
- projectId: string;
681
- tenantId: string;
682
683
  models: {
683
684
  base?: {
684
685
  model?: string | undefined;
@@ -698,7 +699,6 @@ declare const listAgents: (db: DatabaseClient) => (params: {
698
699
  } | null;
699
700
  defaultSubAgentId: string | null;
700
701
  contextConfigId: string | null;
701
- prompt: string | null;
702
702
  statusUpdates: {
703
703
  enabled?: boolean | undefined;
704
704
  numEvents?: number | undefined;
@@ -771,13 +771,14 @@ declare const listAgentsPaginated: (db: DatabaseClient) => (params: {
771
771
  };
772
772
  }>;
773
773
  declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promise<{
774
- name: string;
774
+ tenantId: string;
775
+ projectId: string;
775
776
  id: string;
777
+ name: string;
778
+ description: string | null;
779
+ prompt: string | null;
776
780
  createdAt: string;
777
781
  updatedAt: string;
778
- description: string | null;
779
- projectId: string;
780
- tenantId: string;
781
782
  models: {
782
783
  base?: {
783
784
  model?: string | undefined;
@@ -797,7 +798,6 @@ declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promis
797
798
  } | null;
798
799
  defaultSubAgentId: string | null;
799
800
  contextConfigId: string | null;
800
- prompt: string | null;
801
801
  statusUpdates: {
802
802
  enabled?: boolean | undefined;
803
803
  numEvents?: number | undefined;
@@ -898,49 +898,49 @@ declare const getApiKeyById: (db: DatabaseClient) => (params: {
898
898
  scopes: ProjectScopeConfig;
899
899
  id: string;
900
900
  }) => Promise<{
901
- name: string | null;
902
- id: string;
903
- createdAt: string;
904
- updatedAt: string;
905
- expiresAt: string | null;
906
- projectId: string;
907
901
  tenantId: string;
902
+ projectId: string;
903
+ id: string;
904
+ name: string | null;
908
905
  agentId: string;
909
906
  publicId: string;
910
907
  keyHash: string;
911
908
  keyPrefix: string;
912
909
  lastUsedAt: string | null;
913
- } | undefined>;
914
- declare const getApiKeyByPublicId: (db: DatabaseClient) => (publicId: string) => Promise<{
915
- name: string | null;
916
- id: string;
910
+ expiresAt: string | null;
917
911
  createdAt: string;
918
912
  updatedAt: string;
919
- expiresAt: string | null;
920
- projectId: string;
913
+ } | undefined>;
914
+ declare const getApiKeyByPublicId: (db: DatabaseClient) => (publicId: string) => Promise<{
921
915
  tenantId: string;
916
+ projectId: string;
917
+ id: string;
918
+ name: string | null;
922
919
  agentId: string;
923
920
  publicId: string;
924
921
  keyHash: string;
925
922
  keyPrefix: string;
926
923
  lastUsedAt: string | null;
924
+ expiresAt: string | null;
925
+ createdAt: string;
926
+ updatedAt: string;
927
927
  } | undefined>;
928
928
  declare const listApiKeys: (db: DatabaseClient) => (params: {
929
929
  scopes: ProjectScopeConfig;
930
930
  agentId?: string;
931
931
  }) => Promise<{
932
- name: string | null;
933
- id: string;
934
- createdAt: string;
935
- updatedAt: string;
936
- expiresAt: string | null;
937
- projectId: string;
938
932
  tenantId: string;
933
+ projectId: string;
934
+ id: string;
935
+ name: string | null;
939
936
  agentId: string;
940
937
  publicId: string;
941
938
  keyHash: string;
942
939
  keyPrefix: string;
943
940
  lastUsedAt: string | null;
941
+ expiresAt: string | null;
942
+ createdAt: string;
943
+ updatedAt: string;
944
944
  }[]>;
945
945
  declare const listApiKeysPaginated: (db: DatabaseClient) => (params: {
946
946
  scopes: ProjectScopeConfig;
@@ -956,18 +956,18 @@ declare const listApiKeysPaginated: (db: DatabaseClient) => (params: {
956
956
  };
957
957
  }>;
958
958
  declare const createApiKey: (db: DatabaseClient) => (params: ApiKeyInsert) => Promise<{
959
- name: string | null;
960
- id: string;
961
- createdAt: string;
962
- updatedAt: string;
963
- expiresAt: string | null;
964
- projectId: string;
965
959
  tenantId: string;
960
+ projectId: string;
961
+ id: string;
962
+ name: string | null;
966
963
  agentId: string;
967
964
  publicId: string;
968
965
  keyHash: string;
969
966
  keyPrefix: string;
970
967
  lastUsedAt: string | null;
968
+ expiresAt: string | null;
969
+ createdAt: string;
970
+ updatedAt: string;
971
971
  }>;
972
972
  declare const updateApiKey: (db: DatabaseClient) => (params: {
973
973
  scopes: ProjectScopeConfig;
@@ -1014,13 +1014,13 @@ declare const getArtifactComponentById: (db: DatabaseClient) => (params: {
1014
1014
  scopes: ProjectScopeConfig;
1015
1015
  id: string;
1016
1016
  }) => Promise<{
1017
- name: string;
1017
+ tenantId: string;
1018
+ projectId: string;
1018
1019
  id: string;
1020
+ name: string;
1021
+ description: string | null;
1019
1022
  createdAt: string;
1020
1023
  updatedAt: string;
1021
- description: string | null;
1022
- projectId: string;
1023
- tenantId: string;
1024
1024
  props: Record<string, unknown> | null;
1025
1025
  } | undefined>;
1026
1026
  declare const listArtifactComponents: (db: DatabaseClient) => (params: {
@@ -1048,13 +1048,13 @@ declare const listArtifactComponentsPaginated: (db: DatabaseClient) => (params:
1048
1048
  };
1049
1049
  }>;
1050
1050
  declare const createArtifactComponent: (db: DatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
1051
- name: string;
1051
+ tenantId: string;
1052
+ projectId: string;
1052
1053
  id: string;
1054
+ name: string;
1055
+ description: string | null;
1053
1056
  createdAt: string;
1054
1057
  updatedAt: string;
1055
- description: string | null;
1056
- projectId: string;
1057
- tenantId: string;
1058
1058
  props: Record<string, unknown> | null;
1059
1059
  }>;
1060
1060
  declare const updateArtifactComponent: (db: DatabaseClient) => (params: {
@@ -1091,11 +1091,11 @@ declare const associateArtifactComponentWithAgent: (db: DatabaseClient) => (para
1091
1091
  scopes: SubAgentScopeConfig;
1092
1092
  artifactComponentId: string;
1093
1093
  }) => Promise<{
1094
- id: string;
1095
- createdAt: string;
1096
- projectId: string;
1097
1094
  tenantId: string;
1095
+ projectId: string;
1096
+ id: string;
1098
1097
  agentId: string;
1098
+ createdAt: string;
1099
1099
  subAgentId: string;
1100
1100
  artifactComponentId: string;
1101
1101
  }>;
@@ -1134,11 +1134,11 @@ declare const upsertAgentArtifactComponentRelation: (db: DatabaseClient) => (par
1134
1134
  scopes: SubAgentScopeConfig;
1135
1135
  artifactComponentId: string;
1136
1136
  }) => Promise<{
1137
- id: string;
1138
- createdAt: string;
1139
- projectId: string;
1140
1137
  tenantId: string;
1138
+ projectId: string;
1139
+ id: string;
1141
1140
  agentId: string;
1141
+ createdAt: string;
1142
1142
  subAgentId: string;
1143
1143
  artifactComponentId: string;
1144
1144
  } | null>;
@@ -1218,26 +1218,26 @@ declare const getContextConfigById: (db: DatabaseClient) => (params: {
1218
1218
  scopes: AgentScopeConfig;
1219
1219
  id: string;
1220
1220
  }) => Promise<{
1221
+ tenantId: string;
1222
+ projectId: string;
1221
1223
  id: string;
1224
+ agentId: string;
1222
1225
  createdAt: string;
1223
1226
  updatedAt: string;
1224
- projectId: string;
1225
- tenantId: string;
1226
1227
  headersSchema: unknown;
1227
1228
  contextVariables: Record<string, ContextFetchDefinition> | null;
1228
- agentId: string;
1229
1229
  } | undefined>;
1230
1230
  declare const listContextConfigs: (db: DatabaseClient) => (params: {
1231
1231
  scopes: AgentScopeConfig;
1232
1232
  }) => Promise<{
1233
+ tenantId: string;
1234
+ projectId: string;
1233
1235
  id: string;
1236
+ agentId: string;
1234
1237
  createdAt: string;
1235
1238
  updatedAt: string;
1236
- projectId: string;
1237
- tenantId: string;
1238
1239
  headersSchema: unknown;
1239
1240
  contextVariables: Record<string, ContextFetchDefinition> | null;
1240
- agentId: string;
1241
1241
  }[]>;
1242
1242
  declare const listContextConfigsPaginated: (db: DatabaseClient) => (params: {
1243
1243
  scopes: AgentScopeConfig;
@@ -1252,14 +1252,14 @@ declare const listContextConfigsPaginated: (db: DatabaseClient) => (params: {
1252
1252
  };
1253
1253
  }>;
1254
1254
  declare const createContextConfig: (db: DatabaseClient) => (params: ContextConfigInsert) => Promise<{
1255
+ tenantId: string;
1256
+ projectId: string;
1255
1257
  id: string;
1258
+ agentId: string;
1256
1259
  createdAt: string;
1257
1260
  updatedAt: string;
1258
- projectId: string;
1259
- tenantId: string;
1260
1261
  headersSchema: unknown;
1261
1262
  contextVariables: Record<string, ContextFetchDefinition> | null;
1262
- agentId: string;
1263
1263
  }>;
1264
1264
  declare const updateContextConfig: (db: DatabaseClient) => (params: {
1265
1265
  scopes: AgentScopeConfig;
@@ -1292,14 +1292,14 @@ declare const countContextConfigs: (db: DatabaseClient) => (params: {
1292
1292
  declare const upsertContextConfig: (db: DatabaseClient) => (params: {
1293
1293
  data: ContextConfigInsert;
1294
1294
  }) => Promise<{
1295
+ tenantId: string;
1296
+ projectId: string;
1295
1297
  id: string;
1298
+ agentId: string;
1296
1299
  createdAt: string;
1297
1300
  updatedAt: string;
1298
- projectId: string;
1299
- tenantId: string;
1300
1301
  headersSchema: unknown;
1301
1302
  contextVariables: Record<string, ContextFetchDefinition> | null;
1302
- agentId: string;
1303
1303
  }>;
1304
1304
 
1305
1305
  declare const listConversations: (db: DatabaseClient) => (params: {
@@ -1311,14 +1311,14 @@ declare const listConversations: (db: DatabaseClient) => (params: {
1311
1311
  total: number;
1312
1312
  }>;
1313
1313
  declare const createConversation: (db: DatabaseClient) => (params: ConversationInsert) => Promise<{
1314
+ tenantId: string;
1315
+ projectId: string;
1314
1316
  id: string;
1317
+ title: string | null;
1315
1318
  createdAt: string;
1316
1319
  updatedAt: string;
1317
1320
  userId: string | null;
1318
1321
  metadata: ConversationMetadata | null;
1319
- title: string | null;
1320
- projectId: string;
1321
- tenantId: string;
1322
1322
  activeSubAgentId: string;
1323
1323
  lastContextResolution: string | null;
1324
1324
  }>;
@@ -1362,14 +1362,14 @@ declare const getConversation: (db: DatabaseClient) => (params: {
1362
1362
  scopes: ProjectScopeConfig;
1363
1363
  conversationId: string;
1364
1364
  }) => Promise<{
1365
+ tenantId: string;
1366
+ projectId: string;
1365
1367
  id: string;
1368
+ title: string | null;
1366
1369
  createdAt: string;
1367
1370
  updatedAt: string;
1368
1371
  userId: string | null;
1369
1372
  metadata: ConversationMetadata | null;
1370
- title: string | null;
1371
- projectId: string;
1372
- tenantId: string;
1373
1373
  activeSubAgentId: string;
1374
1374
  lastContextResolution: string | null;
1375
1375
  } | undefined>;
@@ -1386,14 +1386,14 @@ declare const createOrGetConversation: (db: DatabaseClient) => (input: Conversat
1386
1386
  metadata?: ConversationMetadata | null | undefined;
1387
1387
  contextConfigId?: string | undefined;
1388
1388
  } | {
1389
+ tenantId: string;
1390
+ projectId: string;
1389
1391
  id: string;
1392
+ title: string | null;
1390
1393
  createdAt: string;
1391
1394
  updatedAt: string;
1392
1395
  userId: string | null;
1393
1396
  metadata: ConversationMetadata | null;
1394
- title: string | null;
1395
- projectId: string;
1396
- tenantId: string;
1397
1397
  activeSubAgentId: string;
1398
1398
  lastContextResolution: string | null;
1399
1399
  }>;
@@ -1412,14 +1412,14 @@ declare const getActiveAgentForConversation: (db: DatabaseClient) => (params: {
1412
1412
  scopes: ProjectScopeConfig;
1413
1413
  conversationId: string;
1414
1414
  }) => Promise<{
1415
+ tenantId: string;
1416
+ projectId: string;
1415
1417
  id: string;
1418
+ title: string | null;
1416
1419
  createdAt: string;
1417
1420
  updatedAt: string;
1418
1421
  userId: string | null;
1419
1422
  metadata: ConversationMetadata | null;
1420
- title: string | null;
1421
- projectId: string;
1422
- tenantId: string;
1423
1423
  activeSubAgentId: string;
1424
1424
  lastContextResolution: string | null;
1425
1425
  } | undefined>;
@@ -1590,11 +1590,11 @@ declare const associateDataComponentWithAgent: (db: DatabaseClient) => (params:
1590
1590
  scopes: SubAgentScopeConfig;
1591
1591
  dataComponentId: string;
1592
1592
  }) => Promise<{
1593
- id: string;
1594
- createdAt: string;
1595
- projectId: string;
1596
1593
  tenantId: string;
1594
+ projectId: string;
1595
+ id: string;
1597
1596
  agentId: string;
1597
+ createdAt: string;
1598
1598
  subAgentId: string;
1599
1599
  dataComponentId: string;
1600
1600
  }>;
@@ -1632,11 +1632,11 @@ declare const upsertAgentDataComponentRelation: (db: DatabaseClient) => (params:
1632
1632
  scopes: SubAgentScopeConfig;
1633
1633
  dataComponentId: string;
1634
1634
  }) => Promise<{
1635
- id: string;
1636
- createdAt: string;
1637
- projectId: string;
1638
1635
  tenantId: string;
1636
+ projectId: string;
1637
+ id: string;
1639
1638
  agentId: string;
1639
+ createdAt: string;
1640
1640
  subAgentId: string;
1641
1641
  dataComponentId: string;
1642
1642
  } | null>;
@@ -1811,14 +1811,14 @@ declare const createFunctionTool: (db: DatabaseClient) => (params: {
1811
1811
  data: FunctionToolApiInsert;
1812
1812
  scopes: AgentScopeConfig;
1813
1813
  }) => Promise<{
1814
- name: string;
1814
+ tenantId: string;
1815
+ projectId: string;
1815
1816
  id: string;
1816
- createdAt: string;
1817
- updatedAt: string;
1817
+ name: string;
1818
1818
  description: string | null;
1819
- projectId: string;
1820
- tenantId: string;
1821
1819
  agentId: string;
1820
+ createdAt: string;
1821
+ updatedAt: string;
1822
1822
  functionId: string;
1823
1823
  }>;
1824
1824
  /**
@@ -1853,14 +1853,14 @@ declare const upsertFunctionTool: (db: DatabaseClient) => (params: {
1853
1853
  data: FunctionToolApiInsert;
1854
1854
  scopes: AgentScopeConfig;
1855
1855
  }) => Promise<{
1856
- name: string;
1856
+ tenantId: string;
1857
+ projectId: string;
1857
1858
  id: string;
1858
- createdAt: string;
1859
- updatedAt: string;
1859
+ name: string;
1860
1860
  description: string | null;
1861
- projectId: string;
1862
- tenantId: string;
1863
1861
  agentId: string;
1862
+ createdAt: string;
1863
+ updatedAt: string;
1864
1864
  functionId: string;
1865
1865
  }>;
1866
1866
  declare const getFunctionToolsForSubAgent: (db: DatabaseClient) => (params: {
@@ -1990,14 +1990,14 @@ declare const getMessageById: (db: DatabaseClient) => (params: {
1990
1990
  scopes: ProjectScopeConfig;
1991
1991
  messageId: string;
1992
1992
  }) => Promise<{
1993
+ tenantId: string;
1994
+ projectId: string;
1993
1995
  id: string;
1994
1996
  createdAt: string;
1995
1997
  updatedAt: string;
1996
1998
  metadata: MessageMetadata | null;
1997
- role: string;
1998
1999
  content: MessageContent;
1999
- projectId: string;
2000
- tenantId: string;
2000
+ role: string;
2001
2001
  taskId: string | null;
2002
2002
  conversationId: string;
2003
2003
  fromSubAgentId: string | null;
@@ -2121,14 +2121,14 @@ declare const getVisibleMessages: (db: DatabaseClient) => (params: {
2121
2121
  id: string;
2122
2122
  }[]>;
2123
2123
  declare const createMessage: (db: DatabaseClient) => (params: MessageInsert) => Promise<{
2124
+ tenantId: string;
2125
+ projectId: string;
2124
2126
  id: string;
2125
2127
  createdAt: string;
2126
2128
  updatedAt: string;
2127
2129
  metadata: MessageMetadata | null;
2128
- role: string;
2129
2130
  content: MessageContent;
2130
- projectId: string;
2131
- tenantId: string;
2131
+ role: string;
2132
2132
  taskId: string | null;
2133
2133
  conversationId: string;
2134
2134
  fromSubAgentId: string | null;
@@ -2174,14 +2174,14 @@ declare const deleteMessage: (db: DatabaseClient) => (params: {
2174
2174
  scopes: ProjectScopeConfig;
2175
2175
  messageId: string;
2176
2176
  }) => Promise<{
2177
+ tenantId: string;
2178
+ projectId: string;
2177
2179
  id: string;
2178
2180
  createdAt: string;
2179
2181
  updatedAt: string;
2180
2182
  metadata: MessageMetadata | null;
2181
- role: string;
2182
2183
  content: MessageContent;
2183
- projectId: string;
2184
- tenantId: string;
2184
+ role: string;
2185
2185
  taskId: string | null;
2186
2186
  conversationId: string;
2187
2187
  fromSubAgentId: string | null;
@@ -2336,15 +2336,15 @@ declare const getSubAgentExternalAgentRelationById: (db: DatabaseClient) => (par
2336
2336
  scopes: SubAgentScopeConfig;
2337
2337
  relationId: string;
2338
2338
  }) => Promise<{
2339
+ tenantId: string;
2340
+ projectId: string;
2339
2341
  id: string;
2342
+ agentId: string;
2340
2343
  createdAt: string;
2341
2344
  updatedAt: string;
2342
2345
  headers: Record<string, string> | null;
2343
- projectId: string;
2344
- tenantId: string;
2345
- agentId: string;
2346
- subAgentId: string;
2347
2346
  externalAgentId: string;
2347
+ subAgentId: string;
2348
2348
  } | undefined>;
2349
2349
  declare const listSubAgentExternalAgentRelations: (db: DatabaseClient) => (params: {
2350
2350
  scopes: SubAgentScopeConfig;
@@ -2371,28 +2371,28 @@ declare const listSubAgentExternalAgentRelations: (db: DatabaseClient) => (param
2371
2371
  declare const getSubAgentExternalAgentRelations: (db: DatabaseClient) => (params: {
2372
2372
  scopes: SubAgentScopeConfig;
2373
2373
  }) => Promise<{
2374
+ tenantId: string;
2375
+ projectId: string;
2374
2376
  id: string;
2377
+ agentId: string;
2375
2378
  createdAt: string;
2376
2379
  updatedAt: string;
2377
2380
  headers: Record<string, string> | null;
2378
- projectId: string;
2379
- tenantId: string;
2380
- agentId: string;
2381
- subAgentId: string;
2382
2381
  externalAgentId: string;
2382
+ subAgentId: string;
2383
2383
  }[]>;
2384
2384
  declare const getSubAgentExternalAgentRelationsByAgent: (db: DatabaseClient) => (params: {
2385
2385
  scopes: AgentScopeConfig;
2386
2386
  }) => Promise<{
2387
+ tenantId: string;
2388
+ projectId: string;
2387
2389
  id: string;
2390
+ agentId: string;
2388
2391
  createdAt: string;
2389
2392
  updatedAt: string;
2390
2393
  headers: Record<string, string> | null;
2391
- projectId: string;
2392
- tenantId: string;
2393
- agentId: string;
2394
- subAgentId: string;
2395
2394
  externalAgentId: string;
2395
+ subAgentId: string;
2396
2396
  }[]>;
2397
2397
  declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: DatabaseClient) => (params: {
2398
2398
  scopes: AgentScopeConfig;
@@ -2507,15 +2507,15 @@ declare const createSubAgentExternalAgentRelation: (db: DatabaseClient) => (para
2507
2507
  headers?: Record<string, string> | null;
2508
2508
  };
2509
2509
  }) => Promise<{
2510
+ tenantId: string;
2511
+ projectId: string;
2510
2512
  id: string;
2513
+ agentId: string;
2511
2514
  createdAt: string;
2512
2515
  updatedAt: string;
2513
2516
  headers: Record<string, string> | null;
2514
- projectId: string;
2515
- tenantId: string;
2516
- agentId: string;
2517
- subAgentId: string;
2518
2517
  externalAgentId: string;
2518
+ subAgentId: string;
2519
2519
  }>;
2520
2520
  /**
2521
2521
  * Check if sub-agent external agent relation exists by params
@@ -2524,15 +2524,15 @@ declare const getSubAgentExternalAgentRelationByParams: (db: DatabaseClient) =>
2524
2524
  scopes: SubAgentScopeConfig;
2525
2525
  externalAgentId: string;
2526
2526
  }) => Promise<{
2527
+ tenantId: string;
2528
+ projectId: string;
2527
2529
  id: string;
2530
+ agentId: string;
2528
2531
  createdAt: string;
2529
2532
  updatedAt: string;
2530
2533
  headers: Record<string, string> | null;
2531
- projectId: string;
2532
- tenantId: string;
2533
- agentId: string;
2534
- subAgentId: string;
2535
2534
  externalAgentId: string;
2535
+ subAgentId: string;
2536
2536
  } | undefined>;
2537
2537
  /**
2538
2538
  * Upsert sub-agent external agent relation (create if it doesn't exist, update if it does)
@@ -2545,15 +2545,15 @@ declare const upsertSubAgentExternalAgentRelation: (db: DatabaseClient) => (para
2545
2545
  headers?: Record<string, string> | null;
2546
2546
  };
2547
2547
  }) => Promise<{
2548
+ tenantId: string;
2549
+ projectId: string;
2548
2550
  id: string;
2551
+ agentId: string;
2549
2552
  createdAt: string;
2550
2553
  updatedAt: string;
2551
2554
  headers: Record<string, string> | null;
2552
- projectId: string;
2553
- tenantId: string;
2554
- agentId: string;
2555
- subAgentId: string;
2556
2555
  externalAgentId: string;
2556
+ subAgentId: string;
2557
2557
  }>;
2558
2558
  declare const updateSubAgentExternalAgentRelation: (db: DatabaseClient) => (params: {
2559
2559
  scopes: SubAgentScopeConfig;
@@ -2585,12 +2585,12 @@ declare const getAgentRelationById: (db: DatabaseClient) => (params: {
2585
2585
  scopes: AgentScopeConfig;
2586
2586
  relationId: string;
2587
2587
  }) => Promise<{
2588
+ tenantId: string;
2589
+ projectId: string;
2588
2590
  id: string;
2591
+ agentId: string;
2589
2592
  createdAt: string;
2590
2593
  updatedAt: string;
2591
- projectId: string;
2592
- tenantId: string;
2593
- agentId: string;
2594
2594
  sourceSubAgentId: string;
2595
2595
  targetSubAgentId: string | null;
2596
2596
  relationType: string | null;
@@ -2620,12 +2620,12 @@ declare const listAgentRelations: (db: DatabaseClient) => (params: {
2620
2620
  declare const getAgentRelations: (db: DatabaseClient) => (params: {
2621
2621
  scopes: SubAgentScopeConfig;
2622
2622
  }) => Promise<{
2623
+ tenantId: string;
2624
+ projectId: string;
2623
2625
  id: string;
2626
+ agentId: string;
2624
2627
  createdAt: string;
2625
2628
  updatedAt: string;
2626
- projectId: string;
2627
- tenantId: string;
2628
- agentId: string;
2629
2629
  sourceSubAgentId: string;
2630
2630
  targetSubAgentId: string | null;
2631
2631
  relationType: string | null;
@@ -2633,12 +2633,12 @@ declare const getAgentRelations: (db: DatabaseClient) => (params: {
2633
2633
  declare const getAgentRelationsByAgent: (db: DatabaseClient) => (params: {
2634
2634
  scopes: AgentScopeConfig;
2635
2635
  }) => Promise<{
2636
+ tenantId: string;
2637
+ projectId: string;
2636
2638
  id: string;
2639
+ agentId: string;
2637
2640
  createdAt: string;
2638
2641
  updatedAt: string;
2639
- projectId: string;
2640
- tenantId: string;
2641
- agentId: string;
2642
2642
  sourceSubAgentId: string;
2643
2643
  targetSubAgentId: string | null;
2644
2644
  relationType: string | null;
@@ -2702,12 +2702,12 @@ declare const getRelatedAgentsForAgent: (db: DatabaseClient) => (params: {
2702
2702
  }[];
2703
2703
  }>;
2704
2704
  declare const createSubAgentRelation: (db: DatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
2705
+ tenantId: string;
2706
+ projectId: string;
2705
2707
  id: string;
2708
+ agentId: string;
2706
2709
  createdAt: string;
2707
2710
  updatedAt: string;
2708
- projectId: string;
2709
- tenantId: string;
2710
- agentId: string;
2711
2711
  sourceSubAgentId: string;
2712
2712
  targetSubAgentId: string | null;
2713
2713
  relationType: string | null;
@@ -2721,12 +2721,12 @@ declare const getAgentRelationByParams: (db: DatabaseClient) => (params: {
2721
2721
  targetSubAgentId?: string;
2722
2722
  relationType: string;
2723
2723
  }) => Promise<{
2724
+ tenantId: string;
2725
+ projectId: string;
2724
2726
  id: string;
2727
+ agentId: string;
2725
2728
  createdAt: string;
2726
2729
  updatedAt: string;
2727
- projectId: string;
2728
- tenantId: string;
2729
- agentId: string;
2730
2730
  sourceSubAgentId: string;
2731
2731
  targetSubAgentId: string | null;
2732
2732
  relationType: string | null;
@@ -2735,12 +2735,12 @@ declare const getAgentRelationByParams: (db: DatabaseClient) => (params: {
2735
2735
  * Upsert agent relation (create if it doesn't exist, no-op if it does)
2736
2736
  */
2737
2737
  declare const upsertSubAgentRelation: (db: DatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
2738
+ tenantId: string;
2739
+ projectId: string;
2738
2740
  id: string;
2741
+ agentId: string;
2739
2742
  createdAt: string;
2740
2743
  updatedAt: string;
2741
- projectId: string;
2742
- tenantId: string;
2743
- agentId: string;
2744
2744
  sourceSubAgentId: string;
2745
2745
  targetSubAgentId: string | null;
2746
2746
  relationType: string | null;
@@ -2780,19 +2780,19 @@ declare const createAgentToolRelation: (db: DatabaseClient) => (params: {
2780
2780
  }> | null;
2781
2781
  };
2782
2782
  }) => Promise<{
2783
+ tenantId: string;
2784
+ projectId: string;
2783
2785
  id: string;
2786
+ agentId: string;
2784
2787
  createdAt: string;
2785
2788
  updatedAt: string;
2786
- headers: Record<string, string> | null;
2787
2789
  toolId: string;
2788
- projectId: string;
2789
- tenantId: string;
2790
- agentId: string;
2791
- selectedTools: string[] | null;
2792
- subAgentId: string;
2790
+ headers: Record<string, string> | null;
2793
2791
  toolPolicies: Record<string, {
2794
2792
  needsApproval?: boolean;
2795
2793
  }> | null;
2794
+ selectedTools: string[] | null;
2795
+ subAgentId: string;
2796
2796
  }>;
2797
2797
  declare const updateAgentToolRelation: (db: DatabaseClient) => (params: {
2798
2798
  scopes: AgentScopeConfig;
@@ -2824,19 +2824,19 @@ declare const getAgentToolRelationById: (db: DatabaseClient) => (params: {
2824
2824
  scopes: SubAgentScopeConfig;
2825
2825
  relationId: string;
2826
2826
  }) => Promise<{
2827
+ tenantId: string;
2828
+ projectId: string;
2827
2829
  id: string;
2830
+ agentId: string;
2828
2831
  createdAt: string;
2829
2832
  updatedAt: string;
2830
- headers: Record<string, string> | null;
2831
2833
  toolId: string;
2832
- projectId: string;
2833
- tenantId: string;
2834
- agentId: string;
2835
- selectedTools: string[] | null;
2836
- subAgentId: string;
2834
+ headers: Record<string, string> | null;
2837
2835
  toolPolicies: Record<string, {
2838
2836
  needsApproval?: boolean;
2839
2837
  }> | null;
2838
+ selectedTools: string[] | null;
2839
+ subAgentId: string;
2840
2840
  } | undefined>;
2841
2841
  declare const getAgentToolRelationByAgent: (db: DatabaseClient) => (params: {
2842
2842
  scopes: SubAgentScopeConfig;
@@ -3019,13 +3019,15 @@ declare const getSubAgentById: (db: DatabaseClient) => (params: {
3019
3019
  scopes: AgentScopeConfig;
3020
3020
  subAgentId: string;
3021
3021
  }) => Promise<{
3022
- name: string;
3022
+ tenantId: string;
3023
+ projectId: string;
3023
3024
  id: string;
3025
+ name: string;
3026
+ description: string | null;
3027
+ prompt: string | null;
3028
+ agentId: string;
3024
3029
  createdAt: string;
3025
3030
  updatedAt: string;
3026
- description: string | null;
3027
- projectId: string;
3028
- tenantId: string;
3029
3031
  models: {
3030
3032
  base?: {
3031
3033
  model?: string | undefined;
@@ -3043,20 +3045,20 @@ declare const getSubAgentById: (db: DatabaseClient) => (params: {
3043
3045
  stopWhen: {
3044
3046
  stepCountIs?: number | undefined;
3045
3047
  } | null;
3046
- agentId: string;
3047
- prompt: string | null;
3048
3048
  conversationHistoryConfig: ConversationHistoryConfig | null;
3049
3049
  } | undefined>;
3050
3050
  declare const listSubAgents: (db: DatabaseClient) => (params: {
3051
3051
  scopes: AgentScopeConfig;
3052
3052
  }) => Promise<{
3053
- name: string;
3053
+ tenantId: string;
3054
+ projectId: string;
3054
3055
  id: string;
3056
+ name: string;
3057
+ description: string | null;
3058
+ prompt: string | null;
3059
+ agentId: string;
3055
3060
  createdAt: string;
3056
3061
  updatedAt: string;
3057
- description: string | null;
3058
- projectId: string;
3059
- tenantId: string;
3060
3062
  models: {
3061
3063
  base?: {
3062
3064
  model?: string | undefined;
@@ -3074,8 +3076,6 @@ declare const listSubAgents: (db: DatabaseClient) => (params: {
3074
3076
  stopWhen: {
3075
3077
  stepCountIs?: number | undefined;
3076
3078
  } | null;
3077
- agentId: string;
3078
- prompt: string | null;
3079
3079
  conversationHistoryConfig: ConversationHistoryConfig | null;
3080
3080
  }[]>;
3081
3081
  declare const listSubAgentsPaginated: (db: DatabaseClient) => (params: {
@@ -3119,13 +3119,15 @@ declare const listSubAgentsPaginated: (db: DatabaseClient) => (params: {
3119
3119
  };
3120
3120
  }>;
3121
3121
  declare const createSubAgent: (db: DatabaseClient) => (params: SubAgentInsert) => Promise<{
3122
- name: string;
3122
+ tenantId: string;
3123
+ projectId: string;
3123
3124
  id: string;
3125
+ name: string;
3126
+ description: string | null;
3127
+ prompt: string | null;
3128
+ agentId: string;
3124
3129
  createdAt: string;
3125
3130
  updatedAt: string;
3126
- description: string | null;
3127
- projectId: string;
3128
- tenantId: string;
3129
3131
  models: {
3130
3132
  base?: {
3131
3133
  model?: string | undefined;
@@ -3143,8 +3145,6 @@ declare const createSubAgent: (db: DatabaseClient) => (params: SubAgentInsert) =
3143
3145
  stopWhen: {
3144
3146
  stepCountIs?: number | undefined;
3145
3147
  } | null;
3146
- agentId: string;
3147
- prompt: string | null;
3148
3148
  conversationHistoryConfig: ConversationHistoryConfig | null;
3149
3149
  }>;
3150
3150
  declare const updateSubAgent: (db: DatabaseClient) => (params: {
@@ -3232,13 +3232,13 @@ declare const getSubAgentTeamAgentRelationById: (db: DatabaseClient) => (params:
3232
3232
  scopes: SubAgentScopeConfig;
3233
3233
  relationId: string;
3234
3234
  }) => Promise<{
3235
+ tenantId: string;
3236
+ projectId: string;
3235
3237
  id: string;
3238
+ agentId: string;
3236
3239
  createdAt: string;
3237
3240
  updatedAt: string;
3238
3241
  headers: Record<string, string> | null;
3239
- projectId: string;
3240
- tenantId: string;
3241
- agentId: string;
3242
3242
  subAgentId: string;
3243
3243
  targetAgentId: string;
3244
3244
  } | undefined>;
@@ -3267,26 +3267,26 @@ declare const listSubAgentTeamAgentRelations: (db: DatabaseClient) => (params: {
3267
3267
  declare const getSubAgentTeamAgentRelations: (db: DatabaseClient) => (params: {
3268
3268
  scopes: SubAgentScopeConfig;
3269
3269
  }) => Promise<{
3270
+ tenantId: string;
3271
+ projectId: string;
3270
3272
  id: string;
3273
+ agentId: string;
3271
3274
  createdAt: string;
3272
3275
  updatedAt: string;
3273
3276
  headers: Record<string, string> | null;
3274
- projectId: string;
3275
- tenantId: string;
3276
- agentId: string;
3277
3277
  subAgentId: string;
3278
3278
  targetAgentId: string;
3279
3279
  }[]>;
3280
3280
  declare const getSubAgentTeamAgentRelationsByAgent: (db: DatabaseClient) => (params: {
3281
3281
  scopes: AgentScopeConfig;
3282
3282
  }) => Promise<{
3283
+ tenantId: string;
3284
+ projectId: string;
3283
3285
  id: string;
3286
+ agentId: string;
3284
3287
  createdAt: string;
3285
3288
  updatedAt: string;
3286
3289
  headers: Record<string, string> | null;
3287
- projectId: string;
3288
- tenantId: string;
3289
- agentId: string;
3290
3290
  subAgentId: string;
3291
3291
  targetAgentId: string;
3292
3292
  }[]>;
@@ -3433,13 +3433,13 @@ declare const createSubAgentTeamAgentRelation: (db: DatabaseClient) => (params:
3433
3433
  headers?: Record<string, string> | null;
3434
3434
  };
3435
3435
  }) => Promise<{
3436
+ tenantId: string;
3437
+ projectId: string;
3436
3438
  id: string;
3439
+ agentId: string;
3437
3440
  createdAt: string;
3438
3441
  updatedAt: string;
3439
3442
  headers: Record<string, string> | null;
3440
- projectId: string;
3441
- tenantId: string;
3442
- agentId: string;
3443
3443
  subAgentId: string;
3444
3444
  targetAgentId: string;
3445
3445
  }>;
@@ -3450,13 +3450,13 @@ declare const getSubAgentTeamAgentRelationByParams: (db: DatabaseClient) => (par
3450
3450
  scopes: SubAgentScopeConfig;
3451
3451
  targetAgentId: string;
3452
3452
  }) => Promise<{
3453
+ tenantId: string;
3454
+ projectId: string;
3453
3455
  id: string;
3456
+ agentId: string;
3454
3457
  createdAt: string;
3455
3458
  updatedAt: string;
3456
3459
  headers: Record<string, string> | null;
3457
- projectId: string;
3458
- tenantId: string;
3459
- agentId: string;
3460
3460
  subAgentId: string;
3461
3461
  targetAgentId: string;
3462
3462
  } | undefined>;
@@ -3471,13 +3471,13 @@ declare const upsertSubAgentTeamAgentRelation: (db: DatabaseClient) => (params:
3471
3471
  headers?: Record<string, string> | null;
3472
3472
  };
3473
3473
  }) => Promise<{
3474
+ tenantId: string;
3475
+ projectId: string;
3474
3476
  id: string;
3477
+ agentId: string;
3475
3478
  createdAt: string;
3476
3479
  updatedAt: string;
3477
3480
  headers: Record<string, string> | null;
3478
- projectId: string;
3479
- tenantId: string;
3480
- agentId: string;
3481
3481
  subAgentId: string;
3482
3482
  targetAgentId: string;
3483
3483
  }>;
@@ -3508,14 +3508,14 @@ declare const deleteSubAgentTeamAgentRelationsByAgent: (db: DatabaseClient) => (
3508
3508
  }) => Promise<boolean>;
3509
3509
 
3510
3510
  declare const createTask: (db: DatabaseClient) => (params: TaskInsert) => Promise<{
3511
+ tenantId: string;
3512
+ projectId: string;
3511
3513
  id: string;
3514
+ agentId: string;
3512
3515
  createdAt: string;
3513
3516
  updatedAt: string;
3514
3517
  metadata: TaskMetadataConfig | null;
3515
3518
  status: string;
3516
- projectId: string;
3517
- tenantId: string;
3518
- agentId: string;
3519
3519
  contextId: string;
3520
3520
  subAgentId: string;
3521
3521
  }>;
@@ -3549,20 +3549,20 @@ declare const getToolById: (db: DatabaseClient) => (params: {
3549
3549
  scopes: ProjectScopeConfig;
3550
3550
  toolId: string;
3551
3551
  }) => Promise<{
3552
- name: string;
3552
+ tenantId: string;
3553
+ projectId: string;
3553
3554
  id: string;
3554
- createdAt: string;
3555
- updatedAt: string;
3555
+ name: string;
3556
3556
  description: string | null;
3557
- headers: Record<string, string> | null;
3558
3557
  config: {
3559
3558
  type: "mcp";
3560
3559
  mcp: ToolMcpConfig;
3561
3560
  };
3562
- projectId: string;
3563
- tenantId: string;
3564
- capabilities: ToolServerCapabilities | null;
3565
3561
  credentialReferenceId: string | null;
3562
+ createdAt: string;
3563
+ updatedAt: string;
3564
+ headers: Record<string, string> | null;
3565
+ capabilities: ToolServerCapabilities | null;
3566
3566
  credentialScope: string;
3567
3567
  imageUrl: string | null;
3568
3568
  lastError: string | null;
@@ -3598,20 +3598,20 @@ declare const listTools: (db: DatabaseClient) => (params: {
3598
3598
  };
3599
3599
  }>;
3600
3600
  declare const createTool: (db: DatabaseClient) => (params: ToolInsert) => Promise<{
3601
- name: string;
3601
+ tenantId: string;
3602
+ projectId: string;
3602
3603
  id: string;
3603
- createdAt: string;
3604
- updatedAt: string;
3604
+ name: string;
3605
3605
  description: string | null;
3606
- headers: Record<string, string> | null;
3607
3606
  config: {
3608
3607
  type: "mcp";
3609
3608
  mcp: ToolMcpConfig;
3610
3609
  };
3611
- projectId: string;
3612
- tenantId: string;
3613
- capabilities: ToolServerCapabilities | null;
3614
3610
  credentialReferenceId: string | null;
3611
+ createdAt: string;
3612
+ updatedAt: string;
3613
+ headers: Record<string, string> | null;
3614
+ capabilities: ToolServerCapabilities | null;
3615
3615
  credentialScope: string;
3616
3616
  imageUrl: string | null;
3617
3617
  lastError: string | null;
@@ -3653,38 +3653,38 @@ declare const addToolToAgent: (db: DatabaseClient) => (params: {
3653
3653
  needsApproval?: boolean;
3654
3654
  }> | null;
3655
3655
  }) => Promise<{
3656
+ tenantId: string;
3657
+ projectId: string;
3656
3658
  id: string;
3659
+ agentId: string;
3657
3660
  createdAt: string;
3658
3661
  updatedAt: string;
3659
- headers: Record<string, string> | null;
3660
3662
  toolId: string;
3661
- projectId: string;
3662
- tenantId: string;
3663
- agentId: string;
3664
- selectedTools: string[] | null;
3665
- subAgentId: string;
3663
+ headers: Record<string, string> | null;
3666
3664
  toolPolicies: Record<string, {
3667
3665
  needsApproval?: boolean;
3668
3666
  }> | null;
3667
+ selectedTools: string[] | null;
3668
+ subAgentId: string;
3669
3669
  }>;
3670
3670
  declare const removeToolFromAgent: (db: DatabaseClient) => (params: {
3671
3671
  scopes: AgentScopeConfig;
3672
3672
  subAgentId: string;
3673
3673
  toolId: string;
3674
3674
  }) => Promise<{
3675
+ tenantId: string;
3676
+ projectId: string;
3675
3677
  id: string;
3678
+ agentId: string;
3676
3679
  createdAt: string;
3677
3680
  updatedAt: string;
3678
- headers: Record<string, string> | null;
3679
3681
  toolId: string;
3680
- projectId: string;
3681
- tenantId: string;
3682
- agentId: string;
3683
- selectedTools: string[] | null;
3684
- subAgentId: string;
3682
+ headers: Record<string, string> | null;
3685
3683
  toolPolicies: Record<string, {
3686
3684
  needsApproval?: boolean;
3687
3685
  }> | null;
3686
+ selectedTools: string[] | null;
3687
+ subAgentId: string;
3688
3688
  }>;
3689
3689
  /**
3690
3690
  * Upsert agent-tool relation (create if it doesn't exist, update if it does)
@@ -3700,19 +3700,19 @@ declare const upsertSubAgentToolRelation: (db: DatabaseClient) => (params: {
3700
3700
  }> | null;
3701
3701
  relationId?: string;
3702
3702
  }) => Promise<{
3703
+ tenantId: string;
3704
+ projectId: string;
3703
3705
  id: string;
3706
+ agentId: string;
3704
3707
  createdAt: string;
3705
3708
  updatedAt: string;
3706
- headers: Record<string, string> | null;
3707
3709
  toolId: string;
3708
- projectId: string;
3709
- tenantId: string;
3710
- agentId: string;
3711
- selectedTools: string[] | null;
3712
- subAgentId: string;
3710
+ headers: Record<string, string> | null;
3713
3711
  toolPolicies: Record<string, {
3714
3712
  needsApproval?: boolean;
3715
3713
  }> | null;
3714
+ selectedTools: string[] | null;
3715
+ subAgentId: string;
3716
3716
  }>;
3717
3717
  /**
3718
3718
  * Upsert a tool (create if it doesn't exist, update if it does)
@@ -3720,20 +3720,20 @@ declare const upsertSubAgentToolRelation: (db: DatabaseClient) => (params: {
3720
3720
  declare const upsertTool: (db: DatabaseClient) => (params: {
3721
3721
  data: ToolInsert;
3722
3722
  }) => Promise<{
3723
- name: string;
3723
+ tenantId: string;
3724
+ projectId: string;
3724
3725
  id: string;
3725
- createdAt: string;
3726
- updatedAt: string;
3726
+ name: string;
3727
3727
  description: string | null;
3728
- headers: Record<string, string> | null;
3729
3728
  config: {
3730
3729
  type: "mcp";
3731
3730
  mcp: ToolMcpConfig;
3732
3731
  };
3733
- projectId: string;
3734
- tenantId: string;
3735
- capabilities: ToolServerCapabilities | null;
3736
3732
  credentialReferenceId: string | null;
3733
+ createdAt: string;
3734
+ updatedAt: string;
3735
+ headers: Record<string, string> | null;
3736
+ capabilities: ToolServerCapabilities | null;
3737
3737
  credentialScope: string;
3738
3738
  imageUrl: string | null;
3739
3739
  lastError: string | null;