@inkeep/agents-core 0.0.0-dev-20251122034411 → 0.0.0-dev-20251122042620

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,18 +3,18 @@ import { r as PinoLogger, s as getLogger } from './auth-detection-CGqhPDnj.js';
3
3
  export { i as ACTIVITY_NAMES, g as ACTIVITY_STATUS, f as ACTIVITY_TYPES, h as AGENT_IDS, p as AGGREGATE_OPERATORS, A as AI_OPERATIONS, j as AI_TOOL_TYPES, o as DATA_SOURCES, k as DATA_TYPES, D as DELEGATION_FROM_SUB_AGENT_ID, b as DELEGATION_ID, a as DELEGATION_TO_SUB_AGENT_ID, F as FIELD_TYPES, L as LoggerFactoryConfig, M as McpOAuthFlowResult, u as McpTokenExchangeResult, t as OAuthConfig, O as OPERATORS, m as ORDER_DIRECTIONS, P as PANEL_TYPES, x as PinoLoggerConfig, q as QUERY_DEFAULTS, l as QUERY_EXPRESSIONS, Q as QUERY_FIELD_CONFIGS, n as QUERY_TYPES, R as REDUCE_OPERATIONS, e as SPAN_KEYS, S as SPAN_NAMES, T as TRANSFER_FROM_SUB_AGENT_ID, c as TRANSFER_TO_SUB_AGENT_ID, U as UNKNOWN_VALUE, d as detectAuthenticationRequired, w as exchangeMcpAuthorizationCode, v as initiateMcpOAuthFlow, y as loggerFactory } from './auth-detection-CGqhPDnj.js';
4
4
  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$2, { z } from 'zod';
6
- 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, az as PrebuiltMCPServerSchema } from './utility-B5hlet30.js';
7
- export { bb as A2AError, bH as A2ARequest, bI as A2AResponse, aM as APIKeySecurityScheme, bW as AgentApiInsert, e3 as AgentApiInsertSchema, bV as AgentApiSelect, e2 as AgentApiSelectSchema, bX as AgentApiUpdate, e4 as AgentApiUpdateSchema, aI as AgentCapabilities, aW as AgentCard, dy as AgentConversationHistoryConfig, e0 as AgentInsertSchema, gN as AgentListResponse, aJ as AgentProvider, gx as AgentResponse, d$ as AgentSelectSchema, aK as AgentSkill, e as AgentStopWhen, b as AgentStopWhenSchema, e1 as AgentUpdateSchema, h4 as AgentWithinContextOfProjectResponse, gh as AgentWithinContextOfProjectSchema, f7 as AllAgentSchema, cQ as AllAgentSelect, cU as ApiKeyApiCreationResponse, fc as ApiKeyApiCreationResponseSchema, cS as ApiKeyApiInsert, fd as ApiKeyApiInsertSchema, cR as ApiKeyApiSelect, fb as ApiKeyApiSelectSchema, cT as ApiKeyApiUpdate, A as ApiKeyApiUpdateSchema, f9 as ApiKeyInsertSchema, gR as ApiKeyListResponse, gB as ApiKeyResponse, f8 as ApiKeySelectSchema, fa as ApiKeyUpdateSchema, cF as ArtifactComponentApiInsert, eV as ArtifactComponentApiInsertSchema, cE as ArtifactComponentApiSelect, eU as ArtifactComponentApiSelectSchema, cG as ArtifactComponentApiUpdate, eW as ArtifactComponentApiUpdateSchema, he as ArtifactComponentArrayResponse, eS as ArtifactComponentInsertSchema, gW as ArtifactComponentListResponse, gG as ArtifactComponentResponse, eR as ArtifactComponentSelectSchema, eT as ArtifactComponentUpdateSchema, aP as AuthorizationCodeOAuthFlow, dh as CanDelegateToExternalAgent, dg as CanUseItem, gd as CanUseItemSchema, br as CancelTaskRequest, bC as CancelTaskResponse, bB as CancelTaskSuccessResponse, aQ as ClientCredentialsOAuthFlow, h6 as ComponentAssociationListResponse, fp as ComponentAssociationSchema, b9 as ContentTypeNotSupportedError, ct as ContextCacheApiInsert, eC as ContextCacheApiInsertSchema, cs as ContextCacheApiSelect, eB as ContextCacheApiSelectSchema, cu as ContextCacheApiUpdate, eD as ContextCacheApiUpdateSchema, dz as ContextCacheEntry, ez as ContextCacheInsertSchema, ey as ContextCacheSelectSchema, cr as ContextCacheUpdate, eA as ContextCacheUpdateSchema, cn as ContextConfigApiInsert, fN as ContextConfigApiInsertSchema, cm as ContextConfigApiSelect, fM as ContextConfigApiSelectSchema, co as ContextConfigApiUpdate, fO as ContextConfigApiUpdateSchema, fK as ContextConfigInsertSchema, gQ as ContextConfigListResponse, gA as ContextConfigResponse, fJ as ContextConfigSelectSchema, fL as ContextConfigUpdateSchema, cg as ConversationApiInsert, eq as ConversationApiInsertSchema, cf as ConversationApiSelect, ep as ConversationApiSelectSchema, ch as ConversationApiUpdate, er as ConversationApiUpdateSchema, en as ConversationInsertSchema, gZ as ConversationListResponse, gJ as ConversationResponse, dx as ConversationScopeOptions, em as ConversationSelectSchema, eo as ConversationUpdateSchema, fm as CreateCredentialInStoreRequestSchema, fn as CreateCredentialInStoreResponseSchema, fi as CredentialReferenceApiInsertSchema, cV as CredentialReferenceApiSelect, fh as CredentialReferenceApiSelectSchema, cW as CredentialReferenceApiUpdate, fj as CredentialReferenceApiUpdateSchema, ff as CredentialReferenceInsertSchema, gS as CredentialReferenceListResponse, gC as CredentialReferenceResponse, fe as CredentialReferenceSelectSchema, fg as CredentialReferenceUpdateSchema, fl as CredentialStoreListResponseSchema, fk as CredentialStoreSchema, cw as DataComponentApiInsert, eJ as DataComponentApiInsertSchema, cv as DataComponentApiSelect, eI as DataComponentApiSelectSchema, cx as DataComponentApiUpdate, eK as DataComponentApiUpdateSchema, hd as DataComponentArrayResponse, eG as DataComponentBaseSchema, eF as DataComponentInsertSchema, gV as DataComponentListResponse, gF as DataComponentResponse, eE as DataComponentSelectSchema, eH as DataComponentUpdateSchema, aG as DataPart, gl as ErrorResponseSchema, gm as ExistsResponseSchema, cO as ExternalAgentApiInsert, f5 as ExternalAgentApiInsertSchema, cN as ExternalAgentApiSelect, f4 as ExternalAgentApiSelectSchema, cP as ExternalAgentApiUpdate, f6 as ExternalAgentApiUpdateSchema, f2 as ExternalAgentInsertSchema, gP as ExternalAgentListResponse, gz as ExternalAgentResponse, f1 as ExternalAgentSelectSchema, f3 as ExternalAgentUpdateSchema, bU as ExternalSubAgentRelationApiInsert, d_ as ExternalSubAgentRelationApiInsertSchema, bT as ExternalSubAgentRelationInsert, dZ as ExternalSubAgentRelationInsertSchema, cq as FetchConfig, fH as FetchConfigSchema, cp as FetchDefinition, fI as FetchDefinitionSchema, aC as FileBase, aF as FilePart, aD as FileWithBytes, aE as FileWithUri, df as FullAgentAgentInsert, a as FullAgentAgentInsertSchema, h3 as FullProjectDefinitionResponse, gu as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, cc as FunctionApiSelect, j as FunctionApiSelectSchema, cd as FunctionApiUpdate, k as FunctionApiUpdateSchema, ca as FunctionInsert, fF as FunctionInsertSchema, gT as FunctionListResponse, gD as FunctionResponse, c9 as FunctionSelect, fE as FunctionSelectSchema, fC as FunctionToolApiInsertSchema, ce as FunctionToolApiSelect, fB as FunctionToolApiSelectSchema, fD as FunctionToolApiUpdateSchema, dL as FunctionToolConfig, dK as FunctionToolConfigSchema, fz as FunctionToolInsertSchema, gU as FunctionToolListResponse, gE as FunctionToolResponse, fy as FunctionToolSelectSchema, fA as FunctionToolUpdateSchema, cb as FunctionUpdate, fG as FunctionUpdateSchema, bt as GetTaskPushNotificationConfigRequest, bG as GetTaskPushNotificationConfigResponse, bF as GetTaskPushNotificationConfigSuccessResponse, bq as GetTaskRequest, bA as GetTaskResponse, bz as GetTaskSuccessResponse, aN as HTTPAuthSecurityScheme, hf as HeadersScopeSchema, aR as ImplicitOAuthFlow, b4 as InternalError, ba as InvalidAgentResponseError, b3 as InvalidParamsError, b1 as InvalidRequestError, b0 as JSONParseError, bl as JSONRPCError, bn as JSONRPCErrorResponse, bj as JSONRPCMessage, bk as JSONRPCRequest, bm as JSONRPCResult, dd as LedgerArtifactApiInsert, g9 as LedgerArtifactApiInsertSchema, dc as LedgerArtifactApiSelect, g8 as LedgerArtifactApiSelectSchema, de as LedgerArtifactApiUpdate, ga as LedgerArtifactApiUpdateSchema, da as LedgerArtifactInsert, g6 as LedgerArtifactInsertSchema, g5 as LedgerArtifactSelectSchema, db as LedgerArtifactUpdate, g7 as LedgerArtifactUpdateSchema, gj as ListResponseSchema, hp as MCPCatalogListResponse, dH as MCPServerType, ft as MCPToolConfigSchema, dA as McpAuthType, dB as McpServerAuth, dD as McpServerCapabilities, dE as McpToolDefinition, ej as McpToolDefinitionSchema, h8 as McpToolListResponse, h7 as McpToolResponse, fs as McpToolSchema, dC as McpTransportConfig, eh as McpTransportConfigSchema, aX as Message, ck as MessageApiInsert, ew as MessageApiInsertSchema, cj as MessageApiSelect, ev as MessageApiSelectSchema, cl as MessageApiUpdate, ex as MessageApiUpdateSchema, et as MessageInsertSchema, g_ as MessageListResponse, ds as MessageMode, bJ as MessagePart, gK as MessageResponse, dr as MessageRole, ci as MessageSelect, es as MessageSelectSchema, bh as MessageSendConfiguration, bi as MessageSendParams, dq as MessageType, eu as MessageUpdateSchema, b2 as MethodNotFoundError, dI as ModelSchema, g as ModelSettings, M as ModelSettingsSchema, dt as Models, aT as OAuth2SecurityScheme, fr as OAuthCallbackQuerySchema, aO as OAuthFlows, fq as OAuthLoginQuerySchema, aU as OpenIdConnectSecurityScheme, dn as Pagination, ho as PaginationQueryParamsSchema, gi as PaginationSchema, P as Part, aA as PartBase, aS as PasswordOAuthFlow, dl as ProjectApiInsert, gs as ProjectApiInsertSchema, dk as ProjectApiSelect, gr as ProjectApiSelectSchema, dm as ProjectApiUpdate, gt as ProjectApiUpdateSchema, gp as ProjectInsertSchema, gL as ProjectListResponse, dJ as ProjectModelSchema, du as ProjectModels, gv as ProjectResponse, go as ProjectSelectSchema, gq as ProjectUpdateSchema, bc as PushNotificationAuthenticationInfo, bd as PushNotificationConfig, b7 as PushNotificationNotSupportedError, h5 as RelatedAgentInfoListResponse, fo as RelatedAgentInfoSchema, gn as RemovedResponseSchema, aV as SecurityScheme, aL as SecuritySchemeBase, bo as SendMessageRequest, bw as SendMessageResponse, bv as SendMessageSuccessResponse, bp as SendStreamingMessageRequest, by as SendStreamingMessageResponse, bx as SendStreamingMessageSuccessResponse, bs as SetTaskPushNotificationConfigRequest, bE as SetTaskPushNotificationConfigResponse, bD as SetTaskPushNotificationConfigSuccessResponse, gk as SingleResponseSchema, dw as StatusComponent, gb as StatusComponentSchema, gc as StatusUpdateSchema, dv as StatusUpdateSettings, d as StopWhen, S as StopWhenSchema, bM as SubAgentApiInsert, dQ as SubAgentApiInsertSchema, bL as SubAgentApiSelect, dP as SubAgentApiSelectSchema, bN as SubAgentApiUpdate, dR as SubAgentApiUpdateSchema, cL as SubAgentArtifactComponentApiInsert, e$ as SubAgentArtifactComponentApiInsertSchema, cK as SubAgentArtifactComponentApiSelect, e_ as SubAgentArtifactComponentApiSelectSchema, cM as SubAgentArtifactComponentApiUpdate, f0 as SubAgentArtifactComponentApiUpdateSchema, cI as SubAgentArtifactComponentInsert, eY as SubAgentArtifactComponentInsertSchema, h2 as SubAgentArtifactComponentListResponse, h0 as SubAgentArtifactComponentResponse, cH as SubAgentArtifactComponentSelect, eX as SubAgentArtifactComponentSelectSchema, cJ as SubAgentArtifactComponentUpdate, eZ as SubAgentArtifactComponentUpdateSchema, cC as SubAgentDataComponentApiInsert, eP as SubAgentDataComponentApiInsertSchema, cB as SubAgentDataComponentApiSelect, eO as SubAgentDataComponentApiSelectSchema, cD as SubAgentDataComponentApiUpdate, eQ as SubAgentDataComponentApiUpdateSchema, cz as SubAgentDataComponentInsert, eM as SubAgentDataComponentInsertSchema, h1 as SubAgentDataComponentListResponse, g$ as SubAgentDataComponentResponse, cy as SubAgentDataComponentSelect, eL as SubAgentDataComponentSelectSchema, cA as SubAgentDataComponentUpdate, eN as SubAgentDataComponentUpdateSchema, di as SubAgentDefinition, d3 as SubAgentExternalAgentRelationApiInsert, fZ as SubAgentExternalAgentRelationApiInsertSchema, d2 as SubAgentExternalAgentRelationApiSelect, fY as SubAgentExternalAgentRelationApiSelectSchema, d4 as SubAgentExternalAgentRelationApiUpdate, f_ as SubAgentExternalAgentRelationApiUpdateSchema, fW as SubAgentExternalAgentRelationInsertSchema, hc as SubAgentExternalAgentRelationListResponse, hb as SubAgentExternalAgentRelationResponse, d0 as SubAgentExternalAgentRelationSelect, fV as SubAgentExternalAgentRelationSelectSchema, d1 as SubAgentExternalAgentRelationUpdate, fX as SubAgentExternalAgentRelationUpdateSchema, dN as SubAgentInsertSchema, gM as SubAgentListResponse, bQ as SubAgentRelationApiInsert, dW as SubAgentRelationApiInsertSchema, bP as SubAgentRelationApiSelect, dV as SubAgentRelationApiSelectSchema, bR as SubAgentRelationApiUpdate, dX as SubAgentRelationApiUpdateSchema, dT as SubAgentRelationInsertSchema, gX as SubAgentRelationListResponse, bS as SubAgentRelationQuery, dY as SubAgentRelationQuerySchema, gH as SubAgentRelationResponse, bO as SubAgentRelationSelect, dS as SubAgentRelationSelectSchema, dU as SubAgentRelationUpdateSchema, gw as SubAgentResponse, dM as SubAgentSelectSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema, d8 as SubAgentTeamAgentRelationApiInsert, g3 as SubAgentTeamAgentRelationApiInsertSchema, d7 as SubAgentTeamAgentRelationApiSelect, g2 as SubAgentTeamAgentRelationApiSelectSchema, d9 as SubAgentTeamAgentRelationApiUpdate, g4 as SubAgentTeamAgentRelationApiUpdateSchema, g0 as SubAgentTeamAgentRelationInsertSchema, ha as SubAgentTeamAgentRelationListResponse, h9 as SubAgentTeamAgentRelationResponse, d5 as SubAgentTeamAgentRelationSelect, f$ as SubAgentTeamAgentRelationSelectSchema, d6 as SubAgentTeamAgentRelationUpdate, g1 as SubAgentTeamAgentRelationUpdateSchema, c_ as SubAgentToolRelationApiInsert, fT as SubAgentToolRelationApiInsertSchema, cZ as SubAgentToolRelationApiSelect, fS as SubAgentToolRelationApiSelectSchema, c$ as SubAgentToolRelationApiUpdate, fU as SubAgentToolRelationApiUpdateSchema, cY as SubAgentToolRelationInsert, fQ as SubAgentToolRelationInsertSchema, gY as SubAgentToolRelationListResponse, gI as SubAgentToolRelationResponse, cX as SubAgentToolRelationSelect, fP as SubAgentToolRelationSelectSchema, fR as SubAgentToolRelationUpdateSchema, dO as SubAgentUpdateSchema, dp as SummaryEvent, dF as TOOL_STATUS_VALUES, aZ as Task, b_ as TaskApiInsert, e9 as TaskApiInsertSchema, bZ as TaskApiSelect, e8 as TaskApiSelectSchema, b$ as TaskApiUpdate, ea as TaskApiUpdateSchema, bK as TaskArtifact, a$ as TaskArtifactUpdateEvent, bf as TaskIdParams, e6 as TaskInsertSchema, b6 as TaskNotCancelableError, b5 as TaskNotFoundError, be as TaskPushNotificationConfig, bg as TaskQueryParams, c4 as TaskRelationApiInsert, ef as TaskRelationApiInsertSchema, c3 as TaskRelationApiSelect, ee as TaskRelationApiSelectSchema, c5 as TaskRelationApiUpdate, eg as TaskRelationApiUpdateSchema, c1 as TaskRelationInsert, ec as TaskRelationInsertSchema, c0 as TaskRelationSelect, eb as TaskRelationSelectSchema, c2 as TaskRelationUpdate, ed as TaskRelationUpdateSchema, bu as TaskResubscriptionRequest, e5 as TaskSelectSchema, aH as TaskState, aY as TaskStatus, a_ as TaskStatusUpdateEvent, bY as TaskUpdate, e7 as TaskUpdateSchema, gg as TeamAgentSchema, hh as TenantIdParamsSchema, hg as TenantParamsSchema, hl as TenantProjectAgentIdParamsSchema, hk as TenantProjectAgentParamsSchema, hn as TenantProjectAgentSubAgentIdParamsSchema, hm as TenantProjectAgentSubAgentParamsSchema, hj as TenantProjectIdParamsSchema, hi as TenantProjectParamsSchema, aB as TextPart, hq as ThirdPartyMCPServerResponse, c7 as ToolApiInsert, fw as ToolApiInsertSchema, c6 as ToolApiSelect, fv as ToolApiSelectSchema, c8 as ToolApiUpdate, fx as ToolApiUpdateSchema, dj as ToolDefinition, el as ToolInsertSchema, gO as ToolListResponse, gy as ToolResponse, ek as ToolSelectSchema, ei as ToolStatusSchema, fu as ToolUpdateSchema, b8 as UnsupportedOperationError, dG as VALID_RELATION_TYPES, ge as canDelegateToExternalAgentSchema, gf as canDelegateToTeamAgentSchema } from './utility-B5hlet30.js';
6
+ 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, az as PrebuiltMCPServerSchema } from './utility-C4QAannk.js';
7
+ export { bb as A2AError, bH as A2ARequest, bI as A2AResponse, aM as APIKeySecurityScheme, bW as AgentApiInsert, e3 as AgentApiInsertSchema, bV as AgentApiSelect, e2 as AgentApiSelectSchema, bX as AgentApiUpdate, e4 as AgentApiUpdateSchema, aI as AgentCapabilities, aW as AgentCard, dy as AgentConversationHistoryConfig, e0 as AgentInsertSchema, gN as AgentListResponse, aJ as AgentProvider, gx as AgentResponse, d$ as AgentSelectSchema, aK as AgentSkill, e as AgentStopWhen, b as AgentStopWhenSchema, e1 as AgentUpdateSchema, h4 as AgentWithinContextOfProjectResponse, gh as AgentWithinContextOfProjectSchema, f7 as AllAgentSchema, cQ as AllAgentSelect, cU as ApiKeyApiCreationResponse, fc as ApiKeyApiCreationResponseSchema, cS as ApiKeyApiInsert, fd as ApiKeyApiInsertSchema, cR as ApiKeyApiSelect, fb as ApiKeyApiSelectSchema, cT as ApiKeyApiUpdate, A as ApiKeyApiUpdateSchema, f9 as ApiKeyInsertSchema, gR as ApiKeyListResponse, gB as ApiKeyResponse, f8 as ApiKeySelectSchema, fa as ApiKeyUpdateSchema, cF as ArtifactComponentApiInsert, eV as ArtifactComponentApiInsertSchema, cE as ArtifactComponentApiSelect, eU as ArtifactComponentApiSelectSchema, cG as ArtifactComponentApiUpdate, eW as ArtifactComponentApiUpdateSchema, he as ArtifactComponentArrayResponse, eS as ArtifactComponentInsertSchema, gW as ArtifactComponentListResponse, gG as ArtifactComponentResponse, eR as ArtifactComponentSelectSchema, eT as ArtifactComponentUpdateSchema, aP as AuthorizationCodeOAuthFlow, dh as CanDelegateToExternalAgent, dg as CanUseItem, gd as CanUseItemSchema, br as CancelTaskRequest, bC as CancelTaskResponse, bB as CancelTaskSuccessResponse, aQ as ClientCredentialsOAuthFlow, h6 as ComponentAssociationListResponse, fp as ComponentAssociationSchema, b9 as ContentTypeNotSupportedError, ct as ContextCacheApiInsert, eC as ContextCacheApiInsertSchema, cs as ContextCacheApiSelect, eB as ContextCacheApiSelectSchema, cu as ContextCacheApiUpdate, eD as ContextCacheApiUpdateSchema, dz as ContextCacheEntry, ez as ContextCacheInsertSchema, ey as ContextCacheSelectSchema, cr as ContextCacheUpdate, eA as ContextCacheUpdateSchema, cn as ContextConfigApiInsert, fN as ContextConfigApiInsertSchema, cm as ContextConfigApiSelect, fM as ContextConfigApiSelectSchema, co as ContextConfigApiUpdate, fO as ContextConfigApiUpdateSchema, fK as ContextConfigInsertSchema, gQ as ContextConfigListResponse, gA as ContextConfigResponse, fJ as ContextConfigSelectSchema, fL as ContextConfigUpdateSchema, cg as ConversationApiInsert, eq as ConversationApiInsertSchema, cf as ConversationApiSelect, ep as ConversationApiSelectSchema, ch as ConversationApiUpdate, er as ConversationApiUpdateSchema, en as ConversationInsertSchema, gZ as ConversationListResponse, gJ as ConversationResponse, dx as ConversationScopeOptions, em as ConversationSelectSchema, eo as ConversationUpdateSchema, fm as CreateCredentialInStoreRequestSchema, fn as CreateCredentialInStoreResponseSchema, fi as CredentialReferenceApiInsertSchema, cV as CredentialReferenceApiSelect, fh as CredentialReferenceApiSelectSchema, cW as CredentialReferenceApiUpdate, fj as CredentialReferenceApiUpdateSchema, ff as CredentialReferenceInsertSchema, gS as CredentialReferenceListResponse, gC as CredentialReferenceResponse, fe as CredentialReferenceSelectSchema, fg as CredentialReferenceUpdateSchema, fl as CredentialStoreListResponseSchema, fk as CredentialStoreSchema, cw as DataComponentApiInsert, eJ as DataComponentApiInsertSchema, cv as DataComponentApiSelect, eI as DataComponentApiSelectSchema, cx as DataComponentApiUpdate, eK as DataComponentApiUpdateSchema, hd as DataComponentArrayResponse, eG as DataComponentBaseSchema, eF as DataComponentInsertSchema, gV as DataComponentListResponse, gF as DataComponentResponse, eE as DataComponentSelectSchema, eH as DataComponentUpdateSchema, aG as DataPart, gl as ErrorResponseSchema, gm as ExistsResponseSchema, cO as ExternalAgentApiInsert, f5 as ExternalAgentApiInsertSchema, cN as ExternalAgentApiSelect, f4 as ExternalAgentApiSelectSchema, cP as ExternalAgentApiUpdate, f6 as ExternalAgentApiUpdateSchema, f2 as ExternalAgentInsertSchema, gP as ExternalAgentListResponse, gz as ExternalAgentResponse, f1 as ExternalAgentSelectSchema, f3 as ExternalAgentUpdateSchema, bU as ExternalSubAgentRelationApiInsert, d_ as ExternalSubAgentRelationApiInsertSchema, bT as ExternalSubAgentRelationInsert, dZ as ExternalSubAgentRelationInsertSchema, cq as FetchConfig, fH as FetchConfigSchema, cp as FetchDefinition, fI as FetchDefinitionSchema, aC as FileBase, aF as FilePart, aD as FileWithBytes, aE as FileWithUri, df as FullAgentAgentInsert, a as FullAgentAgentInsertSchema, h3 as FullProjectDefinitionResponse, gu as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, cc as FunctionApiSelect, j as FunctionApiSelectSchema, cd as FunctionApiUpdate, k as FunctionApiUpdateSchema, ca as FunctionInsert, fF as FunctionInsertSchema, gT as FunctionListResponse, gD as FunctionResponse, c9 as FunctionSelect, fE as FunctionSelectSchema, fC as FunctionToolApiInsertSchema, ce as FunctionToolApiSelect, fB as FunctionToolApiSelectSchema, fD as FunctionToolApiUpdateSchema, dL as FunctionToolConfig, dK as FunctionToolConfigSchema, fz as FunctionToolInsertSchema, gU as FunctionToolListResponse, gE as FunctionToolResponse, fy as FunctionToolSelectSchema, fA as FunctionToolUpdateSchema, cb as FunctionUpdate, fG as FunctionUpdateSchema, bt as GetTaskPushNotificationConfigRequest, bG as GetTaskPushNotificationConfigResponse, bF as GetTaskPushNotificationConfigSuccessResponse, bq as GetTaskRequest, bA as GetTaskResponse, bz as GetTaskSuccessResponse, aN as HTTPAuthSecurityScheme, hf as HeadersScopeSchema, aR as ImplicitOAuthFlow, b4 as InternalError, ba as InvalidAgentResponseError, b3 as InvalidParamsError, b1 as InvalidRequestError, b0 as JSONParseError, bl as JSONRPCError, bn as JSONRPCErrorResponse, bj as JSONRPCMessage, bk as JSONRPCRequest, bm as JSONRPCResult, dd as LedgerArtifactApiInsert, g9 as LedgerArtifactApiInsertSchema, dc as LedgerArtifactApiSelect, g8 as LedgerArtifactApiSelectSchema, de as LedgerArtifactApiUpdate, ga as LedgerArtifactApiUpdateSchema, da as LedgerArtifactInsert, g6 as LedgerArtifactInsertSchema, g5 as LedgerArtifactSelectSchema, db as LedgerArtifactUpdate, g7 as LedgerArtifactUpdateSchema, gj as ListResponseSchema, hp as MCPCatalogListResponse, dH as MCPServerType, ft as MCPToolConfigSchema, dA as McpAuthType, dB as McpServerAuth, dD as McpServerCapabilities, dE as McpToolDefinition, ej as McpToolDefinitionSchema, h8 as McpToolListResponse, h7 as McpToolResponse, fs as McpToolSchema, dC as McpTransportConfig, eh as McpTransportConfigSchema, aX as Message, ck as MessageApiInsert, ew as MessageApiInsertSchema, cj as MessageApiSelect, ev as MessageApiSelectSchema, cl as MessageApiUpdate, ex as MessageApiUpdateSchema, et as MessageInsertSchema, g_ as MessageListResponse, ds as MessageMode, bJ as MessagePart, gK as MessageResponse, dr as MessageRole, ci as MessageSelect, es as MessageSelectSchema, bh as MessageSendConfiguration, bi as MessageSendParams, dq as MessageType, eu as MessageUpdateSchema, b2 as MethodNotFoundError, dI as ModelSchema, g as ModelSettings, M as ModelSettingsSchema, dt as Models, aT as OAuth2SecurityScheme, fr as OAuthCallbackQuerySchema, aO as OAuthFlows, fq as OAuthLoginQuerySchema, aU as OpenIdConnectSecurityScheme, dn as Pagination, ho as PaginationQueryParamsSchema, gi as PaginationSchema, P as Part, aA as PartBase, aS as PasswordOAuthFlow, dl as ProjectApiInsert, gs as ProjectApiInsertSchema, dk as ProjectApiSelect, gr as ProjectApiSelectSchema, dm as ProjectApiUpdate, gt as ProjectApiUpdateSchema, gp as ProjectInsertSchema, gL as ProjectListResponse, dJ as ProjectModelSchema, du as ProjectModels, gv as ProjectResponse, go as ProjectSelectSchema, gq as ProjectUpdateSchema, bc as PushNotificationAuthenticationInfo, bd as PushNotificationConfig, b7 as PushNotificationNotSupportedError, h5 as RelatedAgentInfoListResponse, fo as RelatedAgentInfoSchema, gn as RemovedResponseSchema, aV as SecurityScheme, aL as SecuritySchemeBase, bo as SendMessageRequest, bw as SendMessageResponse, bv as SendMessageSuccessResponse, bp as SendStreamingMessageRequest, by as SendStreamingMessageResponse, bx as SendStreamingMessageSuccessResponse, bs as SetTaskPushNotificationConfigRequest, bE as SetTaskPushNotificationConfigResponse, bD as SetTaskPushNotificationConfigSuccessResponse, gk as SingleResponseSchema, dw as StatusComponent, gb as StatusComponentSchema, gc as StatusUpdateSchema, dv as StatusUpdateSettings, d as StopWhen, S as StopWhenSchema, bM as SubAgentApiInsert, dQ as SubAgentApiInsertSchema, bL as SubAgentApiSelect, dP as SubAgentApiSelectSchema, bN as SubAgentApiUpdate, dR as SubAgentApiUpdateSchema, cL as SubAgentArtifactComponentApiInsert, e$ as SubAgentArtifactComponentApiInsertSchema, cK as SubAgentArtifactComponentApiSelect, e_ as SubAgentArtifactComponentApiSelectSchema, cM as SubAgentArtifactComponentApiUpdate, f0 as SubAgentArtifactComponentApiUpdateSchema, cI as SubAgentArtifactComponentInsert, eY as SubAgentArtifactComponentInsertSchema, h2 as SubAgentArtifactComponentListResponse, h0 as SubAgentArtifactComponentResponse, cH as SubAgentArtifactComponentSelect, eX as SubAgentArtifactComponentSelectSchema, cJ as SubAgentArtifactComponentUpdate, eZ as SubAgentArtifactComponentUpdateSchema, cC as SubAgentDataComponentApiInsert, eP as SubAgentDataComponentApiInsertSchema, cB as SubAgentDataComponentApiSelect, eO as SubAgentDataComponentApiSelectSchema, cD as SubAgentDataComponentApiUpdate, eQ as SubAgentDataComponentApiUpdateSchema, cz as SubAgentDataComponentInsert, eM as SubAgentDataComponentInsertSchema, h1 as SubAgentDataComponentListResponse, g$ as SubAgentDataComponentResponse, cy as SubAgentDataComponentSelect, eL as SubAgentDataComponentSelectSchema, cA as SubAgentDataComponentUpdate, eN as SubAgentDataComponentUpdateSchema, di as SubAgentDefinition, d3 as SubAgentExternalAgentRelationApiInsert, fZ as SubAgentExternalAgentRelationApiInsertSchema, d2 as SubAgentExternalAgentRelationApiSelect, fY as SubAgentExternalAgentRelationApiSelectSchema, d4 as SubAgentExternalAgentRelationApiUpdate, f_ as SubAgentExternalAgentRelationApiUpdateSchema, fW as SubAgentExternalAgentRelationInsertSchema, hc as SubAgentExternalAgentRelationListResponse, hb as SubAgentExternalAgentRelationResponse, d0 as SubAgentExternalAgentRelationSelect, fV as SubAgentExternalAgentRelationSelectSchema, d1 as SubAgentExternalAgentRelationUpdate, fX as SubAgentExternalAgentRelationUpdateSchema, dN as SubAgentInsertSchema, gM as SubAgentListResponse, bQ as SubAgentRelationApiInsert, dW as SubAgentRelationApiInsertSchema, bP as SubAgentRelationApiSelect, dV as SubAgentRelationApiSelectSchema, bR as SubAgentRelationApiUpdate, dX as SubAgentRelationApiUpdateSchema, dT as SubAgentRelationInsertSchema, gX as SubAgentRelationListResponse, bS as SubAgentRelationQuery, dY as SubAgentRelationQuerySchema, gH as SubAgentRelationResponse, bO as SubAgentRelationSelect, dS as SubAgentRelationSelectSchema, dU as SubAgentRelationUpdateSchema, gw as SubAgentResponse, dM as SubAgentSelectSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema, d8 as SubAgentTeamAgentRelationApiInsert, g3 as SubAgentTeamAgentRelationApiInsertSchema, d7 as SubAgentTeamAgentRelationApiSelect, g2 as SubAgentTeamAgentRelationApiSelectSchema, d9 as SubAgentTeamAgentRelationApiUpdate, g4 as SubAgentTeamAgentRelationApiUpdateSchema, g0 as SubAgentTeamAgentRelationInsertSchema, ha as SubAgentTeamAgentRelationListResponse, h9 as SubAgentTeamAgentRelationResponse, d5 as SubAgentTeamAgentRelationSelect, f$ as SubAgentTeamAgentRelationSelectSchema, d6 as SubAgentTeamAgentRelationUpdate, g1 as SubAgentTeamAgentRelationUpdateSchema, c_ as SubAgentToolRelationApiInsert, fT as SubAgentToolRelationApiInsertSchema, cZ as SubAgentToolRelationApiSelect, fS as SubAgentToolRelationApiSelectSchema, c$ as SubAgentToolRelationApiUpdate, fU as SubAgentToolRelationApiUpdateSchema, cY as SubAgentToolRelationInsert, fQ as SubAgentToolRelationInsertSchema, gY as SubAgentToolRelationListResponse, gI as SubAgentToolRelationResponse, cX as SubAgentToolRelationSelect, fP as SubAgentToolRelationSelectSchema, fR as SubAgentToolRelationUpdateSchema, dO as SubAgentUpdateSchema, dp as SummaryEvent, dF as TOOL_STATUS_VALUES, aZ as Task, b_ as TaskApiInsert, e9 as TaskApiInsertSchema, bZ as TaskApiSelect, e8 as TaskApiSelectSchema, b$ as TaskApiUpdate, ea as TaskApiUpdateSchema, bK as TaskArtifact, a$ as TaskArtifactUpdateEvent, bf as TaskIdParams, e6 as TaskInsertSchema, b6 as TaskNotCancelableError, b5 as TaskNotFoundError, be as TaskPushNotificationConfig, bg as TaskQueryParams, c4 as TaskRelationApiInsert, ef as TaskRelationApiInsertSchema, c3 as TaskRelationApiSelect, ee as TaskRelationApiSelectSchema, c5 as TaskRelationApiUpdate, eg as TaskRelationApiUpdateSchema, c1 as TaskRelationInsert, ec as TaskRelationInsertSchema, c0 as TaskRelationSelect, eb as TaskRelationSelectSchema, c2 as TaskRelationUpdate, ed as TaskRelationUpdateSchema, bu as TaskResubscriptionRequest, e5 as TaskSelectSchema, aH as TaskState, aY as TaskStatus, a_ as TaskStatusUpdateEvent, bY as TaskUpdate, e7 as TaskUpdateSchema, gg as TeamAgentSchema, hh as TenantIdParamsSchema, hg as TenantParamsSchema, hl as TenantProjectAgentIdParamsSchema, hk as TenantProjectAgentParamsSchema, hn as TenantProjectAgentSubAgentIdParamsSchema, hm as TenantProjectAgentSubAgentParamsSchema, hj as TenantProjectIdParamsSchema, hi as TenantProjectParamsSchema, aB as TextPart, hq as ThirdPartyMCPServerResponse, c7 as ToolApiInsert, fw as ToolApiInsertSchema, c6 as ToolApiSelect, fv as ToolApiSelectSchema, c8 as ToolApiUpdate, fx as ToolApiUpdateSchema, dj as ToolDefinition, el as ToolInsertSchema, gO as ToolListResponse, gy as ToolResponse, ek as ToolSelectSchema, ei as ToolStatusSchema, fu as ToolUpdateSchema, b8 as UnsupportedOperationError, dG as VALID_RELATION_TYPES, ge as canDelegateToExternalAgentSchema, gf as canDelegateToTeamAgentSchema } from './utility-C4QAannk.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-BLjor29e.js';
11
- export { a as DatabaseConfig, c as createDatabaseClient } from './client-BLjor29e.js';
10
+ import { D as DatabaseClient } from './client-HrEgt7wv.js';
11
+ export { a as DatabaseConfig, c as createDatabaseClient } from './client-HrEgt7wv.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-DCB_LgW9.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-CoC3tYFX.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';
@@ -549,13 +549,14 @@ declare const deleteFullAgent: (db: DatabaseClient, logger?: AgentLogger) => (pa
549
549
  declare const getAgentById: (db: DatabaseClient) => (params: {
550
550
  scopes: AgentScopeConfig;
551
551
  }) => Promise<{
552
+ tenantId: string;
553
+ projectId: string;
552
554
  id: string;
553
555
  name: string;
556
+ description: string | null;
557
+ prompt: string | null;
554
558
  createdAt: string;
555
559
  updatedAt: string;
556
- description: string | null;
557
- projectId: string;
558
- tenantId: string;
559
560
  models: {
560
561
  base?: {
561
562
  model?: string | undefined;
@@ -575,7 +576,6 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
575
576
  } | null;
576
577
  defaultSubAgentId: string | null;
577
578
  contextConfigId: string | null;
578
- prompt: string | null;
579
579
  statusUpdates: {
580
580
  enabled?: boolean | undefined;
581
581
  numEvents?: number | undefined;
@@ -595,13 +595,14 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
595
595
  declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
596
596
  scopes: AgentScopeConfig;
597
597
  }) => Promise<{
598
+ tenantId: string;
599
+ projectId: string;
598
600
  id: string;
599
601
  name: string;
602
+ description: string | null;
603
+ prompt: string | null;
600
604
  createdAt: string;
601
605
  updatedAt: string;
602
- description: string | null;
603
- projectId: string;
604
- tenantId: string;
605
606
  models: {
606
607
  base?: {
607
608
  model?: string | undefined;
@@ -621,7 +622,6 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
621
622
  } | null;
622
623
  defaultSubAgentId: string | null;
623
624
  contextConfigId: string | null;
624
- prompt: string | null;
625
625
  statusUpdates: {
626
626
  enabled?: boolean | undefined;
627
627
  numEvents?: number | undefined;
@@ -638,13 +638,15 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
638
638
  }[] | undefined;
639
639
  } | null;
640
640
  defaultSubAgent: {
641
+ tenantId: string;
642
+ projectId: string;
641
643
  id: string;
642
644
  name: string;
645
+ description: string;
646
+ prompt: string;
647
+ agentId: string;
643
648
  createdAt: string;
644
649
  updatedAt: string;
645
- description: string;
646
- projectId: string;
647
- tenantId: string;
648
650
  models: {
649
651
  base?: {
650
652
  model?: string | undefined;
@@ -662,21 +664,20 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
662
664
  stopWhen: {
663
665
  stepCountIs?: number | undefined;
664
666
  } | null;
665
- agentId: string;
666
- prompt: string;
667
667
  conversationHistoryConfig: ConversationHistoryConfig | null;
668
668
  } | null;
669
669
  } | null>;
670
670
  declare const listAgents: (db: DatabaseClient) => (params: {
671
671
  scopes: ProjectScopeConfig;
672
672
  }) => Promise<{
673
+ tenantId: string;
674
+ projectId: string;
673
675
  id: string;
674
676
  name: string;
677
+ description: string | null;
678
+ prompt: string | null;
675
679
  createdAt: string;
676
680
  updatedAt: string;
677
- description: string | null;
678
- projectId: string;
679
- tenantId: string;
680
681
  models: {
681
682
  base?: {
682
683
  model?: string | undefined;
@@ -696,7 +697,6 @@ declare const listAgents: (db: DatabaseClient) => (params: {
696
697
  } | null;
697
698
  defaultSubAgentId: string | null;
698
699
  contextConfigId: string | null;
699
- prompt: string | null;
700
700
  statusUpdates: {
701
701
  enabled?: boolean | undefined;
702
702
  numEvents?: number | undefined;
@@ -769,13 +769,14 @@ declare const listAgentsPaginated: (db: DatabaseClient) => (params: {
769
769
  };
770
770
  }>;
771
771
  declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promise<{
772
+ tenantId: string;
773
+ projectId: string;
772
774
  id: string;
773
775
  name: string;
776
+ description: string | null;
777
+ prompt: string | null;
774
778
  createdAt: string;
775
779
  updatedAt: string;
776
- description: string | null;
777
- projectId: string;
778
- tenantId: string;
779
780
  models: {
780
781
  base?: {
781
782
  model?: string | undefined;
@@ -795,7 +796,6 @@ declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promis
795
796
  } | null;
796
797
  defaultSubAgentId: string | null;
797
798
  contextConfigId: string | null;
798
- prompt: string | null;
799
799
  statusUpdates: {
800
800
  enabled?: boolean | undefined;
801
801
  numEvents?: number | undefined;
@@ -896,49 +896,49 @@ declare const getApiKeyById: (db: DatabaseClient) => (params: {
896
896
  scopes: ProjectScopeConfig;
897
897
  id: string;
898
898
  }) => Promise<{
899
+ tenantId: string;
900
+ projectId: string;
899
901
  id: string;
900
902
  name: string | null;
901
- createdAt: string;
902
- updatedAt: string;
903
- expiresAt: string | null;
904
- projectId: string;
905
- tenantId: string;
906
903
  agentId: string;
907
904
  publicId: string;
908
905
  keyHash: string;
909
906
  keyPrefix: string;
910
907
  lastUsedAt: string | null;
908
+ expiresAt: string | null;
909
+ createdAt: string;
910
+ updatedAt: string;
911
911
  } | undefined>;
912
912
  declare const getApiKeyByPublicId: (db: DatabaseClient) => (publicId: string) => Promise<{
913
+ tenantId: string;
914
+ projectId: string;
913
915
  id: string;
914
916
  name: string | null;
915
- createdAt: string;
916
- updatedAt: string;
917
- expiresAt: string | null;
918
- projectId: string;
919
- tenantId: string;
920
917
  agentId: string;
921
918
  publicId: string;
922
919
  keyHash: string;
923
920
  keyPrefix: string;
924
921
  lastUsedAt: string | null;
922
+ expiresAt: string | null;
923
+ createdAt: string;
924
+ updatedAt: string;
925
925
  } | undefined>;
926
926
  declare const listApiKeys: (db: DatabaseClient) => (params: {
927
927
  scopes: ProjectScopeConfig;
928
928
  agentId?: string;
929
929
  }) => Promise<{
930
+ tenantId: string;
931
+ projectId: string;
930
932
  id: string;
931
933
  name: string | null;
932
- createdAt: string;
933
- updatedAt: string;
934
- expiresAt: string | null;
935
- projectId: string;
936
- tenantId: string;
937
934
  agentId: string;
938
935
  publicId: string;
939
936
  keyHash: string;
940
937
  keyPrefix: string;
941
938
  lastUsedAt: string | null;
939
+ expiresAt: string | null;
940
+ createdAt: string;
941
+ updatedAt: string;
942
942
  }[]>;
943
943
  declare const listApiKeysPaginated: (db: DatabaseClient) => (params: {
944
944
  scopes: ProjectScopeConfig;
@@ -954,18 +954,18 @@ declare const listApiKeysPaginated: (db: DatabaseClient) => (params: {
954
954
  };
955
955
  }>;
956
956
  declare const createApiKey: (db: DatabaseClient) => (params: ApiKeyInsert) => Promise<{
957
+ tenantId: string;
958
+ projectId: string;
957
959
  id: string;
958
960
  name: string | null;
959
- createdAt: string;
960
- updatedAt: string;
961
- expiresAt: string | null;
962
- projectId: string;
963
- tenantId: string;
964
961
  agentId: string;
965
962
  publicId: string;
966
963
  keyHash: string;
967
964
  keyPrefix: string;
968
965
  lastUsedAt: string | null;
966
+ expiresAt: string | null;
967
+ createdAt: string;
968
+ updatedAt: string;
969
969
  }>;
970
970
  declare const updateApiKey: (db: DatabaseClient) => (params: {
971
971
  scopes: ProjectScopeConfig;
@@ -1012,13 +1012,13 @@ declare const getArtifactComponentById: (db: DatabaseClient) => (params: {
1012
1012
  scopes: ProjectScopeConfig;
1013
1013
  id: string;
1014
1014
  }) => Promise<{
1015
+ tenantId: string;
1016
+ projectId: string;
1015
1017
  id: string;
1016
1018
  name: string;
1019
+ description: string;
1017
1020
  createdAt: string;
1018
1021
  updatedAt: string;
1019
- description: string;
1020
- projectId: string;
1021
- tenantId: string;
1022
1022
  props: Record<string, unknown> | null;
1023
1023
  } | undefined>;
1024
1024
  declare const listArtifactComponents: (db: DatabaseClient) => (params: {
@@ -1046,13 +1046,13 @@ declare const listArtifactComponentsPaginated: (db: DatabaseClient) => (params:
1046
1046
  };
1047
1047
  }>;
1048
1048
  declare const createArtifactComponent: (db: DatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
1049
+ tenantId: string;
1050
+ projectId: string;
1049
1051
  id: string;
1050
1052
  name: string;
1053
+ description: string;
1051
1054
  createdAt: string;
1052
1055
  updatedAt: string;
1053
- description: string;
1054
- projectId: string;
1055
- tenantId: string;
1056
1056
  props: Record<string, unknown> | null;
1057
1057
  }>;
1058
1058
  declare const updateArtifactComponent: (db: DatabaseClient) => (params: {
@@ -1089,11 +1089,11 @@ declare const associateArtifactComponentWithAgent: (db: DatabaseClient) => (para
1089
1089
  scopes: SubAgentScopeConfig;
1090
1090
  artifactComponentId: string;
1091
1091
  }) => Promise<{
1092
- id: string;
1093
- createdAt: string;
1094
- projectId: string;
1095
1092
  tenantId: string;
1093
+ projectId: string;
1094
+ id: string;
1096
1095
  agentId: string;
1096
+ createdAt: string;
1097
1097
  subAgentId: string;
1098
1098
  artifactComponentId: string;
1099
1099
  }>;
@@ -1132,11 +1132,11 @@ declare const upsertAgentArtifactComponentRelation: (db: DatabaseClient) => (par
1132
1132
  scopes: SubAgentScopeConfig;
1133
1133
  artifactComponentId: string;
1134
1134
  }) => Promise<{
1135
- id: string;
1136
- createdAt: string;
1137
- projectId: string;
1138
1135
  tenantId: string;
1136
+ projectId: string;
1137
+ id: string;
1139
1138
  agentId: string;
1139
+ createdAt: string;
1140
1140
  subAgentId: string;
1141
1141
  artifactComponentId: string;
1142
1142
  } | null>;
@@ -1216,26 +1216,26 @@ declare const getContextConfigById: (db: DatabaseClient) => (params: {
1216
1216
  scopes: AgentScopeConfig;
1217
1217
  id: string;
1218
1218
  }) => Promise<{
1219
+ tenantId: string;
1220
+ projectId: string;
1219
1221
  id: string;
1222
+ agentId: string;
1220
1223
  createdAt: string;
1221
1224
  updatedAt: string;
1222
- projectId: string;
1223
- tenantId: string;
1224
1225
  headersSchema: unknown;
1225
1226
  contextVariables: Record<string, ContextFetchDefinition> | null;
1226
- agentId: string;
1227
1227
  } | undefined>;
1228
1228
  declare const listContextConfigs: (db: DatabaseClient) => (params: {
1229
1229
  scopes: AgentScopeConfig;
1230
1230
  }) => Promise<{
1231
+ tenantId: string;
1232
+ projectId: string;
1231
1233
  id: string;
1234
+ agentId: string;
1232
1235
  createdAt: string;
1233
1236
  updatedAt: string;
1234
- projectId: string;
1235
- tenantId: string;
1236
1237
  headersSchema: unknown;
1237
1238
  contextVariables: Record<string, ContextFetchDefinition> | null;
1238
- agentId: string;
1239
1239
  }[]>;
1240
1240
  declare const listContextConfigsPaginated: (db: DatabaseClient) => (params: {
1241
1241
  scopes: AgentScopeConfig;
@@ -1250,14 +1250,14 @@ declare const listContextConfigsPaginated: (db: DatabaseClient) => (params: {
1250
1250
  };
1251
1251
  }>;
1252
1252
  declare const createContextConfig: (db: DatabaseClient) => (params: ContextConfigInsert) => Promise<{
1253
+ tenantId: string;
1254
+ projectId: string;
1253
1255
  id: string;
1256
+ agentId: string;
1254
1257
  createdAt: string;
1255
1258
  updatedAt: string;
1256
- projectId: string;
1257
- tenantId: string;
1258
1259
  headersSchema: unknown;
1259
1260
  contextVariables: Record<string, ContextFetchDefinition> | null;
1260
- agentId: string;
1261
1261
  }>;
1262
1262
  declare const updateContextConfig: (db: DatabaseClient) => (params: {
1263
1263
  scopes: AgentScopeConfig;
@@ -1290,14 +1290,14 @@ declare const countContextConfigs: (db: DatabaseClient) => (params: {
1290
1290
  declare const upsertContextConfig: (db: DatabaseClient) => (params: {
1291
1291
  data: ContextConfigInsert;
1292
1292
  }) => Promise<{
1293
+ tenantId: string;
1294
+ projectId: string;
1293
1295
  id: string;
1296
+ agentId: string;
1294
1297
  createdAt: string;
1295
1298
  updatedAt: string;
1296
- projectId: string;
1297
- tenantId: string;
1298
1299
  headersSchema: unknown;
1299
1300
  contextVariables: Record<string, ContextFetchDefinition> | null;
1300
- agentId: string;
1301
1301
  }>;
1302
1302
 
1303
1303
  declare const listConversations: (db: DatabaseClient) => (params: {
@@ -1309,14 +1309,14 @@ declare const listConversations: (db: DatabaseClient) => (params: {
1309
1309
  total: number;
1310
1310
  }>;
1311
1311
  declare const createConversation: (db: DatabaseClient) => (params: ConversationInsert) => Promise<{
1312
+ tenantId: string;
1313
+ projectId: string;
1312
1314
  id: string;
1315
+ title: string | null;
1313
1316
  createdAt: string;
1314
1317
  updatedAt: string;
1315
- userId: string | null;
1316
1318
  metadata: ConversationMetadata | null;
1317
- title: string | null;
1318
- projectId: string;
1319
- tenantId: string;
1319
+ userId: string | null;
1320
1320
  activeSubAgentId: string;
1321
1321
  lastContextResolution: string | null;
1322
1322
  }>;
@@ -1360,14 +1360,14 @@ declare const getConversation: (db: DatabaseClient) => (params: {
1360
1360
  scopes: ProjectScopeConfig;
1361
1361
  conversationId: string;
1362
1362
  }) => Promise<{
1363
+ tenantId: string;
1364
+ projectId: string;
1363
1365
  id: string;
1366
+ title: string | null;
1364
1367
  createdAt: string;
1365
1368
  updatedAt: string;
1366
- userId: string | null;
1367
1369
  metadata: ConversationMetadata | null;
1368
- title: string | null;
1369
- projectId: string;
1370
- tenantId: string;
1370
+ userId: string | null;
1371
1371
  activeSubAgentId: string;
1372
1372
  lastContextResolution: string | null;
1373
1373
  } | undefined>;
@@ -1384,14 +1384,14 @@ declare const createOrGetConversation: (db: DatabaseClient) => (input: Conversat
1384
1384
  metadata?: ConversationMetadata | null | undefined;
1385
1385
  contextConfigId?: string | undefined;
1386
1386
  } | {
1387
+ tenantId: string;
1388
+ projectId: string;
1387
1389
  id: string;
1390
+ title: string | null;
1388
1391
  createdAt: string;
1389
1392
  updatedAt: string;
1390
- userId: string | null;
1391
1393
  metadata: ConversationMetadata | null;
1392
- title: string | null;
1393
- projectId: string;
1394
- tenantId: string;
1394
+ userId: string | null;
1395
1395
  activeSubAgentId: string;
1396
1396
  lastContextResolution: string | null;
1397
1397
  }>;
@@ -1410,14 +1410,14 @@ declare const getActiveAgentForConversation: (db: DatabaseClient) => (params: {
1410
1410
  scopes: ProjectScopeConfig;
1411
1411
  conversationId: string;
1412
1412
  }) => Promise<{
1413
+ tenantId: string;
1414
+ projectId: string;
1413
1415
  id: string;
1416
+ title: string | null;
1414
1417
  createdAt: string;
1415
1418
  updatedAt: string;
1416
- userId: string | null;
1417
1419
  metadata: ConversationMetadata | null;
1418
- title: string | null;
1419
- projectId: string;
1420
- tenantId: string;
1420
+ userId: string | null;
1421
1421
  activeSubAgentId: string;
1422
1422
  lastContextResolution: string | null;
1423
1423
  } | undefined>;
@@ -1580,11 +1580,11 @@ declare const associateDataComponentWithAgent: (db: DatabaseClient) => (params:
1580
1580
  scopes: SubAgentScopeConfig;
1581
1581
  dataComponentId: string;
1582
1582
  }) => Promise<{
1583
- id: string;
1584
- createdAt: string;
1585
- projectId: string;
1586
1583
  tenantId: string;
1584
+ projectId: string;
1585
+ id: string;
1587
1586
  agentId: string;
1587
+ createdAt: string;
1588
1588
  subAgentId: string;
1589
1589
  dataComponentId: string;
1590
1590
  }>;
@@ -1622,11 +1622,11 @@ declare const upsertAgentDataComponentRelation: (db: DatabaseClient) => (params:
1622
1622
  scopes: SubAgentScopeConfig;
1623
1623
  dataComponentId: string;
1624
1624
  }) => Promise<{
1625
- id: string;
1626
- createdAt: string;
1627
- projectId: string;
1628
1625
  tenantId: string;
1626
+ projectId: string;
1627
+ id: string;
1629
1628
  agentId: string;
1629
+ createdAt: string;
1630
1630
  subAgentId: string;
1631
1631
  dataComponentId: string;
1632
1632
  } | null>;
@@ -1801,14 +1801,14 @@ declare const createFunctionTool: (db: DatabaseClient) => (params: {
1801
1801
  data: FunctionToolApiInsert;
1802
1802
  scopes: AgentScopeConfig;
1803
1803
  }) => Promise<{
1804
+ tenantId: string;
1805
+ projectId: string;
1804
1806
  id: string;
1805
1807
  name: string;
1806
- createdAt: string;
1807
- updatedAt: string;
1808
1808
  description: string | null;
1809
- projectId: string;
1810
- tenantId: string;
1811
1809
  agentId: string;
1810
+ createdAt: string;
1811
+ updatedAt: string;
1812
1812
  functionId: string;
1813
1813
  }>;
1814
1814
  /**
@@ -1843,14 +1843,14 @@ declare const upsertFunctionTool: (db: DatabaseClient) => (params: {
1843
1843
  data: FunctionToolApiInsert;
1844
1844
  scopes: AgentScopeConfig;
1845
1845
  }) => Promise<{
1846
+ tenantId: string;
1847
+ projectId: string;
1846
1848
  id: string;
1847
1849
  name: string;
1848
- createdAt: string;
1849
- updatedAt: string;
1850
1850
  description: string | null;
1851
- projectId: string;
1852
- tenantId: string;
1853
1851
  agentId: string;
1852
+ createdAt: string;
1853
+ updatedAt: string;
1854
1854
  functionId: string;
1855
1855
  }>;
1856
1856
  declare const getFunctionToolsForSubAgent: (db: DatabaseClient) => (params: {
@@ -1980,14 +1980,14 @@ declare const getMessageById: (db: DatabaseClient) => (params: {
1980
1980
  scopes: ProjectScopeConfig;
1981
1981
  messageId: string;
1982
1982
  }) => Promise<{
1983
+ tenantId: string;
1984
+ projectId: string;
1983
1985
  id: string;
1984
1986
  createdAt: string;
1985
1987
  updatedAt: string;
1986
1988
  metadata: MessageMetadata | null;
1987
- role: string;
1988
- projectId: string;
1989
- tenantId: string;
1990
1989
  content: MessageContent;
1990
+ role: string;
1991
1991
  conversationId: string;
1992
1992
  fromSubAgentId: string | null;
1993
1993
  toSubAgentId: string | null;
@@ -2111,14 +2111,14 @@ declare const getVisibleMessages: (db: DatabaseClient) => (params: {
2111
2111
  id: string;
2112
2112
  }[]>;
2113
2113
  declare const createMessage: (db: DatabaseClient) => (params: MessageInsert) => Promise<{
2114
+ tenantId: string;
2115
+ projectId: string;
2114
2116
  id: string;
2115
2117
  createdAt: string;
2116
2118
  updatedAt: string;
2117
2119
  metadata: MessageMetadata | null;
2118
- role: string;
2119
- projectId: string;
2120
- tenantId: string;
2121
2120
  content: MessageContent;
2121
+ role: string;
2122
2122
  conversationId: string;
2123
2123
  fromSubAgentId: string | null;
2124
2124
  toSubAgentId: string | null;
@@ -2164,14 +2164,14 @@ declare const deleteMessage: (db: DatabaseClient) => (params: {
2164
2164
  scopes: ProjectScopeConfig;
2165
2165
  messageId: string;
2166
2166
  }) => Promise<{
2167
+ tenantId: string;
2168
+ projectId: string;
2167
2169
  id: string;
2168
2170
  createdAt: string;
2169
2171
  updatedAt: string;
2170
2172
  metadata: MessageMetadata | null;
2171
- role: string;
2172
- projectId: string;
2173
- tenantId: string;
2174
2173
  content: MessageContent;
2174
+ role: string;
2175
2175
  conversationId: string;
2176
2176
  fromSubAgentId: string | null;
2177
2177
  toSubAgentId: string | null;
@@ -2326,15 +2326,15 @@ declare const getSubAgentExternalAgentRelationById: (db: DatabaseClient) => (par
2326
2326
  scopes: SubAgentScopeConfig;
2327
2327
  relationId: string;
2328
2328
  }) => Promise<{
2329
+ tenantId: string;
2330
+ projectId: string;
2329
2331
  id: string;
2332
+ agentId: string;
2330
2333
  createdAt: string;
2331
2334
  updatedAt: string;
2332
2335
  headers: Record<string, string> | null;
2333
- projectId: string;
2334
- tenantId: string;
2335
- agentId: string;
2336
- subAgentId: string;
2337
2336
  externalAgentId: string;
2337
+ subAgentId: string;
2338
2338
  } | undefined>;
2339
2339
  declare const listSubAgentExternalAgentRelations: (db: DatabaseClient) => (params: {
2340
2340
  scopes: SubAgentScopeConfig;
@@ -2361,28 +2361,28 @@ declare const listSubAgentExternalAgentRelations: (db: DatabaseClient) => (param
2361
2361
  declare const getSubAgentExternalAgentRelations: (db: DatabaseClient) => (params: {
2362
2362
  scopes: SubAgentScopeConfig;
2363
2363
  }) => Promise<{
2364
+ tenantId: string;
2365
+ projectId: string;
2364
2366
  id: string;
2367
+ agentId: string;
2365
2368
  createdAt: string;
2366
2369
  updatedAt: string;
2367
2370
  headers: Record<string, string> | null;
2368
- projectId: string;
2369
- tenantId: string;
2370
- agentId: string;
2371
- subAgentId: string;
2372
2371
  externalAgentId: string;
2372
+ subAgentId: string;
2373
2373
  }[]>;
2374
2374
  declare const getSubAgentExternalAgentRelationsByAgent: (db: DatabaseClient) => (params: {
2375
2375
  scopes: AgentScopeConfig;
2376
2376
  }) => Promise<{
2377
+ tenantId: string;
2378
+ projectId: string;
2377
2379
  id: string;
2380
+ agentId: string;
2378
2381
  createdAt: string;
2379
2382
  updatedAt: string;
2380
2383
  headers: Record<string, string> | null;
2381
- projectId: string;
2382
- tenantId: string;
2383
- agentId: string;
2384
- subAgentId: string;
2385
2384
  externalAgentId: string;
2385
+ subAgentId: string;
2386
2386
  }[]>;
2387
2387
  declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: DatabaseClient) => (params: {
2388
2388
  scopes: AgentScopeConfig;
@@ -2497,15 +2497,15 @@ declare const createSubAgentExternalAgentRelation: (db: DatabaseClient) => (para
2497
2497
  headers?: Record<string, string> | null;
2498
2498
  };
2499
2499
  }) => Promise<{
2500
+ tenantId: string;
2501
+ projectId: string;
2500
2502
  id: string;
2503
+ agentId: string;
2501
2504
  createdAt: string;
2502
2505
  updatedAt: string;
2503
2506
  headers: Record<string, string> | null;
2504
- projectId: string;
2505
- tenantId: string;
2506
- agentId: string;
2507
- subAgentId: string;
2508
2507
  externalAgentId: string;
2508
+ subAgentId: string;
2509
2509
  }>;
2510
2510
  /**
2511
2511
  * Check if sub-agent external agent relation exists by params
@@ -2514,15 +2514,15 @@ declare const getSubAgentExternalAgentRelationByParams: (db: DatabaseClient) =>
2514
2514
  scopes: SubAgentScopeConfig;
2515
2515
  externalAgentId: string;
2516
2516
  }) => Promise<{
2517
+ tenantId: string;
2518
+ projectId: string;
2517
2519
  id: string;
2520
+ agentId: string;
2518
2521
  createdAt: string;
2519
2522
  updatedAt: string;
2520
2523
  headers: Record<string, string> | null;
2521
- projectId: string;
2522
- tenantId: string;
2523
- agentId: string;
2524
- subAgentId: string;
2525
2524
  externalAgentId: string;
2525
+ subAgentId: string;
2526
2526
  } | undefined>;
2527
2527
  /**
2528
2528
  * Upsert sub-agent external agent relation (create if it doesn't exist, update if it does)
@@ -2535,15 +2535,15 @@ declare const upsertSubAgentExternalAgentRelation: (db: DatabaseClient) => (para
2535
2535
  headers?: Record<string, string> | null;
2536
2536
  };
2537
2537
  }) => Promise<{
2538
+ tenantId: string;
2539
+ projectId: string;
2538
2540
  id: string;
2541
+ agentId: string;
2539
2542
  createdAt: string;
2540
2543
  updatedAt: string;
2541
2544
  headers: Record<string, string> | null;
2542
- projectId: string;
2543
- tenantId: string;
2544
- agentId: string;
2545
- subAgentId: string;
2546
2545
  externalAgentId: string;
2546
+ subAgentId: string;
2547
2547
  }>;
2548
2548
  declare const updateSubAgentExternalAgentRelation: (db: DatabaseClient) => (params: {
2549
2549
  scopes: SubAgentScopeConfig;
@@ -2575,12 +2575,12 @@ declare const getAgentRelationById: (db: DatabaseClient) => (params: {
2575
2575
  scopes: AgentScopeConfig;
2576
2576
  relationId: string;
2577
2577
  }) => Promise<{
2578
+ tenantId: string;
2579
+ projectId: string;
2578
2580
  id: string;
2581
+ agentId: string;
2579
2582
  createdAt: string;
2580
2583
  updatedAt: string;
2581
- projectId: string;
2582
- tenantId: string;
2583
- agentId: string;
2584
2584
  sourceSubAgentId: string;
2585
2585
  targetSubAgentId: string | null;
2586
2586
  relationType: string | null;
@@ -2610,12 +2610,12 @@ declare const listAgentRelations: (db: DatabaseClient) => (params: {
2610
2610
  declare const getAgentRelations: (db: DatabaseClient) => (params: {
2611
2611
  scopes: SubAgentScopeConfig;
2612
2612
  }) => Promise<{
2613
+ tenantId: string;
2614
+ projectId: string;
2613
2615
  id: string;
2616
+ agentId: string;
2614
2617
  createdAt: string;
2615
2618
  updatedAt: string;
2616
- projectId: string;
2617
- tenantId: string;
2618
- agentId: string;
2619
2619
  sourceSubAgentId: string;
2620
2620
  targetSubAgentId: string | null;
2621
2621
  relationType: string | null;
@@ -2623,12 +2623,12 @@ declare const getAgentRelations: (db: DatabaseClient) => (params: {
2623
2623
  declare const getAgentRelationsByAgent: (db: DatabaseClient) => (params: {
2624
2624
  scopes: AgentScopeConfig;
2625
2625
  }) => Promise<{
2626
+ tenantId: string;
2627
+ projectId: string;
2626
2628
  id: string;
2629
+ agentId: string;
2627
2630
  createdAt: string;
2628
2631
  updatedAt: string;
2629
- projectId: string;
2630
- tenantId: string;
2631
- agentId: string;
2632
2632
  sourceSubAgentId: string;
2633
2633
  targetSubAgentId: string | null;
2634
2634
  relationType: string | null;
@@ -2691,12 +2691,12 @@ declare const getRelatedAgentsForAgent: (db: DatabaseClient) => (params: {
2691
2691
  }[];
2692
2692
  }>;
2693
2693
  declare const createSubAgentRelation: (db: DatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
2694
+ tenantId: string;
2695
+ projectId: string;
2694
2696
  id: string;
2697
+ agentId: string;
2695
2698
  createdAt: string;
2696
2699
  updatedAt: string;
2697
- projectId: string;
2698
- tenantId: string;
2699
- agentId: string;
2700
2700
  sourceSubAgentId: string;
2701
2701
  targetSubAgentId: string | null;
2702
2702
  relationType: string | null;
@@ -2710,12 +2710,12 @@ declare const getAgentRelationByParams: (db: DatabaseClient) => (params: {
2710
2710
  targetSubAgentId?: string;
2711
2711
  relationType: string;
2712
2712
  }) => Promise<{
2713
+ tenantId: string;
2714
+ projectId: string;
2713
2715
  id: string;
2716
+ agentId: string;
2714
2717
  createdAt: string;
2715
2718
  updatedAt: string;
2716
- projectId: string;
2717
- tenantId: string;
2718
- agentId: string;
2719
2719
  sourceSubAgentId: string;
2720
2720
  targetSubAgentId: string | null;
2721
2721
  relationType: string | null;
@@ -2724,12 +2724,12 @@ declare const getAgentRelationByParams: (db: DatabaseClient) => (params: {
2724
2724
  * Upsert agent relation (create if it doesn't exist, no-op if it does)
2725
2725
  */
2726
2726
  declare const upsertSubAgentRelation: (db: DatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
2727
+ tenantId: string;
2728
+ projectId: string;
2727
2729
  id: string;
2730
+ agentId: string;
2728
2731
  createdAt: string;
2729
2732
  updatedAt: string;
2730
- projectId: string;
2731
- tenantId: string;
2732
- agentId: string;
2733
2733
  sourceSubAgentId: string;
2734
2734
  targetSubAgentId: string | null;
2735
2735
  relationType: string | null;
@@ -2766,16 +2766,16 @@ declare const createAgentToolRelation: (db: DatabaseClient) => (params: {
2766
2766
  headers?: Record<string, string> | null;
2767
2767
  };
2768
2768
  }) => Promise<{
2769
+ tenantId: string;
2770
+ projectId: string;
2769
2771
  id: string;
2772
+ agentId: string;
2770
2773
  createdAt: string;
2771
2774
  updatedAt: string;
2772
2775
  headers: Record<string, string> | null;
2773
- projectId: string;
2774
- tenantId: string;
2775
- agentId: string;
2776
+ toolId: string;
2776
2777
  selectedTools: string[] | null;
2777
2778
  subAgentId: string;
2778
- toolId: string;
2779
2779
  }>;
2780
2780
  declare const updateAgentToolRelation: (db: DatabaseClient) => (params: {
2781
2781
  scopes: AgentScopeConfig;
@@ -2804,16 +2804,16 @@ declare const getAgentToolRelationById: (db: DatabaseClient) => (params: {
2804
2804
  scopes: SubAgentScopeConfig;
2805
2805
  relationId: string;
2806
2806
  }) => Promise<{
2807
+ tenantId: string;
2808
+ projectId: string;
2807
2809
  id: string;
2810
+ agentId: string;
2808
2811
  createdAt: string;
2809
2812
  updatedAt: string;
2810
2813
  headers: Record<string, string> | null;
2811
- projectId: string;
2812
- tenantId: string;
2813
- agentId: string;
2814
+ toolId: string;
2814
2815
  selectedTools: string[] | null;
2815
2816
  subAgentId: string;
2816
- toolId: string;
2817
2817
  } | undefined>;
2818
2818
  declare const getAgentToolRelationByAgent: (db: DatabaseClient) => (params: {
2819
2819
  scopes: SubAgentScopeConfig;
@@ -2980,13 +2980,15 @@ declare const getSubAgentById: (db: DatabaseClient) => (params: {
2980
2980
  scopes: AgentScopeConfig;
2981
2981
  subAgentId: string;
2982
2982
  }) => Promise<{
2983
+ tenantId: string;
2984
+ projectId: string;
2983
2985
  id: string;
2984
2986
  name: string;
2987
+ description: string;
2988
+ prompt: string;
2989
+ agentId: string;
2985
2990
  createdAt: string;
2986
2991
  updatedAt: string;
2987
- description: string;
2988
- projectId: string;
2989
- tenantId: string;
2990
2992
  models: {
2991
2993
  base?: {
2992
2994
  model?: string | undefined;
@@ -3004,20 +3006,20 @@ declare const getSubAgentById: (db: DatabaseClient) => (params: {
3004
3006
  stopWhen: {
3005
3007
  stepCountIs?: number | undefined;
3006
3008
  } | null;
3007
- agentId: string;
3008
- prompt: string;
3009
3009
  conversationHistoryConfig: ConversationHistoryConfig | null;
3010
3010
  } | undefined>;
3011
3011
  declare const listSubAgents: (db: DatabaseClient) => (params: {
3012
3012
  scopes: AgentScopeConfig;
3013
3013
  }) => Promise<{
3014
+ tenantId: string;
3015
+ projectId: string;
3014
3016
  id: string;
3015
3017
  name: string;
3018
+ description: string;
3019
+ prompt: string;
3020
+ agentId: string;
3016
3021
  createdAt: string;
3017
3022
  updatedAt: string;
3018
- description: string;
3019
- projectId: string;
3020
- tenantId: string;
3021
3023
  models: {
3022
3024
  base?: {
3023
3025
  model?: string | undefined;
@@ -3035,8 +3037,6 @@ declare const listSubAgents: (db: DatabaseClient) => (params: {
3035
3037
  stopWhen: {
3036
3038
  stepCountIs?: number | undefined;
3037
3039
  } | null;
3038
- agentId: string;
3039
- prompt: string;
3040
3040
  conversationHistoryConfig: ConversationHistoryConfig | null;
3041
3041
  }[]>;
3042
3042
  declare const listSubAgentsPaginated: (db: DatabaseClient) => (params: {
@@ -3080,13 +3080,15 @@ declare const listSubAgentsPaginated: (db: DatabaseClient) => (params: {
3080
3080
  };
3081
3081
  }>;
3082
3082
  declare const createSubAgent: (db: DatabaseClient) => (params: SubAgentInsert) => Promise<{
3083
+ tenantId: string;
3084
+ projectId: string;
3083
3085
  id: string;
3084
3086
  name: string;
3087
+ description: string;
3088
+ prompt: string;
3089
+ agentId: string;
3085
3090
  createdAt: string;
3086
3091
  updatedAt: string;
3087
- description: string;
3088
- projectId: string;
3089
- tenantId: string;
3090
3092
  models: {
3091
3093
  base?: {
3092
3094
  model?: string | undefined;
@@ -3104,8 +3106,6 @@ declare const createSubAgent: (db: DatabaseClient) => (params: SubAgentInsert) =
3104
3106
  stopWhen: {
3105
3107
  stepCountIs?: number | undefined;
3106
3108
  } | null;
3107
- agentId: string;
3108
- prompt: string;
3109
3109
  conversationHistoryConfig: ConversationHistoryConfig | null;
3110
3110
  }>;
3111
3111
  declare const updateSubAgent: (db: DatabaseClient) => (params: {
@@ -3188,13 +3188,13 @@ declare const getSubAgentTeamAgentRelationById: (db: DatabaseClient) => (params:
3188
3188
  scopes: SubAgentScopeConfig;
3189
3189
  relationId: string;
3190
3190
  }) => Promise<{
3191
+ tenantId: string;
3192
+ projectId: string;
3191
3193
  id: string;
3194
+ agentId: string;
3192
3195
  createdAt: string;
3193
3196
  updatedAt: string;
3194
3197
  headers: Record<string, string> | null;
3195
- projectId: string;
3196
- tenantId: string;
3197
- agentId: string;
3198
3198
  subAgentId: string;
3199
3199
  targetAgentId: string;
3200
3200
  } | undefined>;
@@ -3223,26 +3223,26 @@ declare const listSubAgentTeamAgentRelations: (db: DatabaseClient) => (params: {
3223
3223
  declare const getSubAgentTeamAgentRelations: (db: DatabaseClient) => (params: {
3224
3224
  scopes: SubAgentScopeConfig;
3225
3225
  }) => Promise<{
3226
+ tenantId: string;
3227
+ projectId: string;
3226
3228
  id: string;
3229
+ agentId: string;
3227
3230
  createdAt: string;
3228
3231
  updatedAt: string;
3229
3232
  headers: Record<string, string> | null;
3230
- projectId: string;
3231
- tenantId: string;
3232
- agentId: string;
3233
3233
  subAgentId: string;
3234
3234
  targetAgentId: string;
3235
3235
  }[]>;
3236
3236
  declare const getSubAgentTeamAgentRelationsByAgent: (db: DatabaseClient) => (params: {
3237
3237
  scopes: AgentScopeConfig;
3238
3238
  }) => Promise<{
3239
+ tenantId: string;
3240
+ projectId: string;
3239
3241
  id: string;
3242
+ agentId: string;
3240
3243
  createdAt: string;
3241
3244
  updatedAt: string;
3242
3245
  headers: Record<string, string> | null;
3243
- projectId: string;
3244
- tenantId: string;
3245
- agentId: string;
3246
3246
  subAgentId: string;
3247
3247
  targetAgentId: string;
3248
3248
  }[]>;
@@ -3389,13 +3389,13 @@ declare const createSubAgentTeamAgentRelation: (db: DatabaseClient) => (params:
3389
3389
  headers?: Record<string, string> | null;
3390
3390
  };
3391
3391
  }) => Promise<{
3392
+ tenantId: string;
3393
+ projectId: string;
3392
3394
  id: string;
3395
+ agentId: string;
3393
3396
  createdAt: string;
3394
3397
  updatedAt: string;
3395
3398
  headers: Record<string, string> | null;
3396
- projectId: string;
3397
- tenantId: string;
3398
- agentId: string;
3399
3399
  subAgentId: string;
3400
3400
  targetAgentId: string;
3401
3401
  }>;
@@ -3406,13 +3406,13 @@ declare const getSubAgentTeamAgentRelationByParams: (db: DatabaseClient) => (par
3406
3406
  scopes: SubAgentScopeConfig;
3407
3407
  targetAgentId: string;
3408
3408
  }) => Promise<{
3409
+ tenantId: string;
3410
+ projectId: string;
3409
3411
  id: string;
3412
+ agentId: string;
3410
3413
  createdAt: string;
3411
3414
  updatedAt: string;
3412
3415
  headers: Record<string, string> | null;
3413
- projectId: string;
3414
- tenantId: string;
3415
- agentId: string;
3416
3416
  subAgentId: string;
3417
3417
  targetAgentId: string;
3418
3418
  } | undefined>;
@@ -3427,13 +3427,13 @@ declare const upsertSubAgentTeamAgentRelation: (db: DatabaseClient) => (params:
3427
3427
  headers?: Record<string, string> | null;
3428
3428
  };
3429
3429
  }) => Promise<{
3430
+ tenantId: string;
3431
+ projectId: string;
3430
3432
  id: string;
3433
+ agentId: string;
3431
3434
  createdAt: string;
3432
3435
  updatedAt: string;
3433
3436
  headers: Record<string, string> | null;
3434
- projectId: string;
3435
- tenantId: string;
3436
- agentId: string;
3437
3437
  subAgentId: string;
3438
3438
  targetAgentId: string;
3439
3439
  }>;
@@ -3464,14 +3464,14 @@ declare const deleteSubAgentTeamAgentRelationsByAgent: (db: DatabaseClient) => (
3464
3464
  }) => Promise<boolean>;
3465
3465
 
3466
3466
  declare const createTask: (db: DatabaseClient) => (params: TaskInsert) => Promise<{
3467
+ tenantId: string;
3468
+ projectId: string;
3467
3469
  id: string;
3470
+ agentId: string;
3468
3471
  createdAt: string;
3469
3472
  updatedAt: string;
3470
3473
  metadata: TaskMetadataConfig | null;
3471
3474
  status: string;
3472
- projectId: string;
3473
- tenantId: string;
3474
- agentId: string;
3475
3475
  contextId: string;
3476
3476
  subAgentId: string;
3477
3477
  }>;
@@ -3505,20 +3505,20 @@ declare const getToolById: (db: DatabaseClient) => (params: {
3505
3505
  scopes: ProjectScopeConfig;
3506
3506
  toolId: string;
3507
3507
  }) => Promise<{
3508
+ tenantId: string;
3509
+ projectId: string;
3508
3510
  id: string;
3509
3511
  name: string;
3510
- createdAt: string;
3511
- updatedAt: string;
3512
- headers: Record<string, string> | null;
3512
+ description: string | null;
3513
3513
  config: {
3514
3514
  type: "mcp";
3515
3515
  mcp: ToolMcpConfig;
3516
3516
  };
3517
- description: string | null;
3518
- projectId: string;
3519
- tenantId: string;
3520
- capabilities: ToolServerCapabilities | null;
3521
3517
  credentialReferenceId: string | null;
3518
+ createdAt: string;
3519
+ updatedAt: string;
3520
+ headers: Record<string, string> | null;
3521
+ capabilities: ToolServerCapabilities | null;
3522
3522
  imageUrl: string | null;
3523
3523
  lastError: string | null;
3524
3524
  } | null>;
@@ -3552,20 +3552,20 @@ declare const listTools: (db: DatabaseClient) => (params: {
3552
3552
  };
3553
3553
  }>;
3554
3554
  declare const createTool: (db: DatabaseClient) => (params: ToolInsert) => Promise<{
3555
+ tenantId: string;
3556
+ projectId: string;
3555
3557
  id: string;
3556
3558
  name: string;
3557
- createdAt: string;
3558
- updatedAt: string;
3559
- headers: Record<string, string> | null;
3559
+ description: string | null;
3560
3560
  config: {
3561
3561
  type: "mcp";
3562
3562
  mcp: ToolMcpConfig;
3563
3563
  };
3564
- description: string | null;
3565
- projectId: string;
3566
- tenantId: string;
3567
- capabilities: ToolServerCapabilities | null;
3568
3564
  credentialReferenceId: string | null;
3565
+ createdAt: string;
3566
+ updatedAt: string;
3567
+ headers: Record<string, string> | null;
3568
+ capabilities: ToolServerCapabilities | null;
3569
3569
  imageUrl: string | null;
3570
3570
  lastError: string | null;
3571
3571
  }>;
@@ -3602,32 +3602,32 @@ declare const addToolToAgent: (db: DatabaseClient) => (params: {
3602
3602
  selectedTools?: string[] | null;
3603
3603
  headers?: Record<string, string> | null;
3604
3604
  }) => Promise<{
3605
+ tenantId: string;
3606
+ projectId: string;
3605
3607
  id: string;
3608
+ agentId: string;
3606
3609
  createdAt: string;
3607
3610
  updatedAt: string;
3608
3611
  headers: Record<string, string> | null;
3609
- projectId: string;
3610
- tenantId: string;
3611
- agentId: string;
3612
+ toolId: string;
3612
3613
  selectedTools: string[] | null;
3613
3614
  subAgentId: string;
3614
- toolId: string;
3615
3615
  }>;
3616
3616
  declare const removeToolFromAgent: (db: DatabaseClient) => (params: {
3617
3617
  scopes: AgentScopeConfig;
3618
3618
  subAgentId: string;
3619
3619
  toolId: string;
3620
3620
  }) => Promise<{
3621
+ tenantId: string;
3622
+ projectId: string;
3621
3623
  id: string;
3624
+ agentId: string;
3622
3625
  createdAt: string;
3623
3626
  updatedAt: string;
3624
3627
  headers: Record<string, string> | null;
3625
- projectId: string;
3626
- tenantId: string;
3627
- agentId: string;
3628
+ toolId: string;
3628
3629
  selectedTools: string[] | null;
3629
3630
  subAgentId: string;
3630
- toolId: string;
3631
3631
  }>;
3632
3632
  /**
3633
3633
  * Upsert agent-tool relation (create if it doesn't exist, update if it does)
@@ -3640,16 +3640,16 @@ declare const upsertSubAgentToolRelation: (db: DatabaseClient) => (params: {
3640
3640
  headers?: Record<string, string> | null;
3641
3641
  relationId?: string;
3642
3642
  }) => Promise<{
3643
+ tenantId: string;
3644
+ projectId: string;
3643
3645
  id: string;
3646
+ agentId: string;
3644
3647
  createdAt: string;
3645
3648
  updatedAt: string;
3646
3649
  headers: Record<string, string> | null;
3647
- projectId: string;
3648
- tenantId: string;
3649
- agentId: string;
3650
+ toolId: string;
3650
3651
  selectedTools: string[] | null;
3651
3652
  subAgentId: string;
3652
- toolId: string;
3653
3653
  }>;
3654
3654
  /**
3655
3655
  * Upsert a tool (create if it doesn't exist, update if it does)
@@ -3657,20 +3657,20 @@ declare const upsertSubAgentToolRelation: (db: DatabaseClient) => (params: {
3657
3657
  declare const upsertTool: (db: DatabaseClient) => (params: {
3658
3658
  data: ToolInsert;
3659
3659
  }) => Promise<{
3660
+ tenantId: string;
3661
+ projectId: string;
3660
3662
  id: string;
3661
3663
  name: string;
3662
- createdAt: string;
3663
- updatedAt: string;
3664
- headers: Record<string, string> | null;
3664
+ description: string | null;
3665
3665
  config: {
3666
3666
  type: "mcp";
3667
3667
  mcp: ToolMcpConfig;
3668
3668
  };
3669
- description: string | null;
3670
- projectId: string;
3671
- tenantId: string;
3672
- capabilities: ToolServerCapabilities | null;
3673
3669
  credentialReferenceId: string | null;
3670
+ createdAt: string;
3671
+ updatedAt: string;
3672
+ headers: Record<string, string> | null;
3673
+ capabilities: ToolServerCapabilities | null;
3674
3674
  imageUrl: string | null;
3675
3675
  lastError: string | null;
3676
3676
  }>;