@inkeep/agents-core 0.0.0-dev-20251202012021 → 0.0.0-dev-20251202211955

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-7G0Dxt55.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-7G0Dxt55.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-ClS1gEOP.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-ClS1gEOP.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-DfqyRLWC.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-DfqyRLWC.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-CAqbPFE_.js';
11
- export { a as DatabaseConfig, c as createDatabaseClient } from './client-CAqbPFE_.js';
10
+ import { D as DatabaseClient } from './client-IYBScWGn.js';
11
+ export { a as DatabaseConfig, c as createDatabaseClient } from './client-IYBScWGn.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-BunrPbjy.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-fTlJoUxD.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-BxpuSXEy.js';
21
+ export { a as CorsConfig, C as CredentialStore, b as ServerConfig, S as ServerOptions } from './server-DEvNsFNQ.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';
@@ -124,6 +124,7 @@ type builderFetchDefinition<R extends z.ZodTypeAny> = {
124
124
  body?: Record<string, unknown>;
125
125
  transform?: string;
126
126
  timeout?: number;
127
+ requiredToFetch?: Array<string>;
127
128
  };
128
129
  responseSchema: R;
129
130
  defaultValue?: unknown;
@@ -550,14 +551,13 @@ declare const deleteFullAgent: (db: DatabaseClient, logger?: AgentLogger) => (pa
550
551
  declare const getAgentById: (db: DatabaseClient) => (params: {
551
552
  scopes: AgentScopeConfig;
552
553
  }) => Promise<{
553
- tenantId: string;
554
- projectId: string;
555
- id: string;
556
554
  name: string;
557
- description: string | null;
558
- prompt: string | null;
555
+ id: string;
559
556
  createdAt: string;
560
557
  updatedAt: string;
558
+ description: string | null;
559
+ projectId: string;
560
+ tenantId: string;
561
561
  models: {
562
562
  base?: {
563
563
  model?: string | undefined;
@@ -577,6 +577,7 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
577
577
  } | null;
578
578
  defaultSubAgentId: string | null;
579
579
  contextConfigId: string | null;
580
+ prompt: string | null;
580
581
  statusUpdates: {
581
582
  enabled?: boolean | undefined;
582
583
  numEvents?: number | undefined;
@@ -596,14 +597,13 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
596
597
  declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
597
598
  scopes: AgentScopeConfig;
598
599
  }) => Promise<{
599
- tenantId: string;
600
- projectId: string;
601
- id: string;
602
600
  name: string;
603
- description: string | null;
604
- prompt: string | null;
601
+ id: string;
605
602
  createdAt: string;
606
603
  updatedAt: string;
604
+ description: string | null;
605
+ projectId: string;
606
+ tenantId: string;
607
607
  models: {
608
608
  base?: {
609
609
  model?: string | undefined;
@@ -623,6 +623,7 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
623
623
  } | null;
624
624
  defaultSubAgentId: string | null;
625
625
  contextConfigId: string | null;
626
+ prompt: string | null;
626
627
  statusUpdates: {
627
628
  enabled?: boolean | undefined;
628
629
  numEvents?: number | undefined;
@@ -639,15 +640,13 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
639
640
  }[] | undefined;
640
641
  } | null;
641
642
  defaultSubAgent: {
642
- tenantId: string;
643
- projectId: string;
644
- id: string;
645
643
  name: string;
646
- description: string | null;
647
- prompt: string | null;
648
- agentId: string;
644
+ id: string;
649
645
  createdAt: string;
650
646
  updatedAt: string;
647
+ description: string | null;
648
+ projectId: string;
649
+ tenantId: string;
651
650
  models: {
652
651
  base?: {
653
652
  model?: string | undefined;
@@ -665,20 +664,21 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
665
664
  stopWhen: {
666
665
  stepCountIs?: number | undefined;
667
666
  } | null;
667
+ agentId: string;
668
+ prompt: string | null;
668
669
  conversationHistoryConfig: ConversationHistoryConfig | null;
669
670
  } | null;
670
671
  } | null>;
671
672
  declare const listAgents: (db: DatabaseClient) => (params: {
672
673
  scopes: ProjectScopeConfig;
673
674
  }) => Promise<{
674
- tenantId: string;
675
- projectId: string;
676
- id: string;
677
675
  name: string;
678
- description: string | null;
679
- prompt: string | null;
676
+ id: string;
680
677
  createdAt: string;
681
678
  updatedAt: string;
679
+ description: string | null;
680
+ projectId: string;
681
+ tenantId: string;
682
682
  models: {
683
683
  base?: {
684
684
  model?: string | undefined;
@@ -698,6 +698,7 @@ declare const listAgents: (db: DatabaseClient) => (params: {
698
698
  } | null;
699
699
  defaultSubAgentId: string | null;
700
700
  contextConfigId: string | null;
701
+ prompt: string | null;
701
702
  statusUpdates: {
702
703
  enabled?: boolean | undefined;
703
704
  numEvents?: number | undefined;
@@ -770,14 +771,13 @@ declare const listAgentsPaginated: (db: DatabaseClient) => (params: {
770
771
  };
771
772
  }>;
772
773
  declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promise<{
773
- tenantId: string;
774
- projectId: string;
775
- id: string;
776
774
  name: string;
777
- description: string | null;
778
- prompt: string | null;
775
+ id: string;
779
776
  createdAt: string;
780
777
  updatedAt: string;
778
+ description: string | null;
779
+ projectId: string;
780
+ tenantId: string;
781
781
  models: {
782
782
  base?: {
783
783
  model?: string | undefined;
@@ -797,6 +797,7 @@ declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promis
797
797
  } | null;
798
798
  defaultSubAgentId: string | null;
799
799
  contextConfigId: string | null;
800
+ prompt: string | null;
800
801
  statusUpdates: {
801
802
  enabled?: boolean | undefined;
802
803
  numEvents?: number | undefined;
@@ -897,49 +898,49 @@ declare const getApiKeyById: (db: DatabaseClient) => (params: {
897
898
  scopes: ProjectScopeConfig;
898
899
  id: string;
899
900
  }) => Promise<{
900
- tenantId: string;
901
- projectId: string;
902
- id: string;
903
901
  name: string | null;
902
+ id: string;
903
+ createdAt: string;
904
+ updatedAt: string;
905
+ expiresAt: string | null;
906
+ projectId: string;
907
+ tenantId: string;
904
908
  agentId: string;
905
909
  publicId: string;
906
910
  keyHash: string;
907
911
  keyPrefix: string;
908
912
  lastUsedAt: string | null;
909
- expiresAt: string | null;
910
- createdAt: string;
911
- updatedAt: string;
912
913
  } | undefined>;
913
914
  declare const getApiKeyByPublicId: (db: DatabaseClient) => (publicId: string) => Promise<{
914
- tenantId: string;
915
- projectId: string;
916
- id: string;
917
915
  name: string | null;
916
+ id: string;
917
+ createdAt: string;
918
+ updatedAt: string;
919
+ expiresAt: string | null;
920
+ projectId: string;
921
+ tenantId: string;
918
922
  agentId: string;
919
923
  publicId: string;
920
924
  keyHash: string;
921
925
  keyPrefix: string;
922
926
  lastUsedAt: string | null;
923
- expiresAt: string | null;
924
- createdAt: string;
925
- updatedAt: string;
926
927
  } | undefined>;
927
928
  declare const listApiKeys: (db: DatabaseClient) => (params: {
928
929
  scopes: ProjectScopeConfig;
929
930
  agentId?: string;
930
931
  }) => Promise<{
931
- tenantId: string;
932
- projectId: string;
933
- id: string;
934
932
  name: string | null;
933
+ id: string;
934
+ createdAt: string;
935
+ updatedAt: string;
936
+ expiresAt: string | null;
937
+ projectId: string;
938
+ tenantId: string;
935
939
  agentId: string;
936
940
  publicId: string;
937
941
  keyHash: string;
938
942
  keyPrefix: string;
939
943
  lastUsedAt: string | null;
940
- expiresAt: string | null;
941
- createdAt: string;
942
- updatedAt: string;
943
944
  }[]>;
944
945
  declare const listApiKeysPaginated: (db: DatabaseClient) => (params: {
945
946
  scopes: ProjectScopeConfig;
@@ -955,18 +956,18 @@ declare const listApiKeysPaginated: (db: DatabaseClient) => (params: {
955
956
  };
956
957
  }>;
957
958
  declare const createApiKey: (db: DatabaseClient) => (params: ApiKeyInsert) => Promise<{
958
- tenantId: string;
959
- projectId: string;
960
- id: string;
961
959
  name: string | null;
960
+ id: string;
961
+ createdAt: string;
962
+ updatedAt: string;
963
+ expiresAt: string | null;
964
+ projectId: string;
965
+ tenantId: string;
962
966
  agentId: string;
963
967
  publicId: string;
964
968
  keyHash: string;
965
969
  keyPrefix: string;
966
970
  lastUsedAt: string | null;
967
- expiresAt: string | null;
968
- createdAt: string;
969
- updatedAt: string;
970
971
  }>;
971
972
  declare const updateApiKey: (db: DatabaseClient) => (params: {
972
973
  scopes: ProjectScopeConfig;
@@ -1013,13 +1014,13 @@ declare const getArtifactComponentById: (db: DatabaseClient) => (params: {
1013
1014
  scopes: ProjectScopeConfig;
1014
1015
  id: string;
1015
1016
  }) => Promise<{
1016
- tenantId: string;
1017
- projectId: string;
1018
- id: string;
1019
1017
  name: string;
1020
- description: string | null;
1018
+ id: string;
1021
1019
  createdAt: string;
1022
1020
  updatedAt: string;
1021
+ description: string | null;
1022
+ projectId: string;
1023
+ tenantId: string;
1023
1024
  props: Record<string, unknown> | null;
1024
1025
  } | undefined>;
1025
1026
  declare const listArtifactComponents: (db: DatabaseClient) => (params: {
@@ -1047,13 +1048,13 @@ declare const listArtifactComponentsPaginated: (db: DatabaseClient) => (params:
1047
1048
  };
1048
1049
  }>;
1049
1050
  declare const createArtifactComponent: (db: DatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
1050
- tenantId: string;
1051
- projectId: string;
1052
- id: string;
1053
1051
  name: string;
1054
- description: string | null;
1052
+ id: string;
1055
1053
  createdAt: string;
1056
1054
  updatedAt: string;
1055
+ description: string | null;
1056
+ projectId: string;
1057
+ tenantId: string;
1057
1058
  props: Record<string, unknown> | null;
1058
1059
  }>;
1059
1060
  declare const updateArtifactComponent: (db: DatabaseClient) => (params: {
@@ -1090,11 +1091,11 @@ declare const associateArtifactComponentWithAgent: (db: DatabaseClient) => (para
1090
1091
  scopes: SubAgentScopeConfig;
1091
1092
  artifactComponentId: string;
1092
1093
  }) => Promise<{
1093
- tenantId: string;
1094
- projectId: string;
1095
1094
  id: string;
1096
- agentId: string;
1097
1095
  createdAt: string;
1096
+ projectId: string;
1097
+ tenantId: string;
1098
+ agentId: string;
1098
1099
  subAgentId: string;
1099
1100
  artifactComponentId: string;
1100
1101
  }>;
@@ -1133,11 +1134,11 @@ declare const upsertAgentArtifactComponentRelation: (db: DatabaseClient) => (par
1133
1134
  scopes: SubAgentScopeConfig;
1134
1135
  artifactComponentId: string;
1135
1136
  }) => Promise<{
1136
- tenantId: string;
1137
- projectId: string;
1138
1137
  id: string;
1139
- agentId: string;
1140
1138
  createdAt: string;
1139
+ projectId: string;
1140
+ tenantId: string;
1141
+ agentId: string;
1141
1142
  subAgentId: string;
1142
1143
  artifactComponentId: string;
1143
1144
  } | null>;
@@ -1217,26 +1218,26 @@ declare const getContextConfigById: (db: DatabaseClient) => (params: {
1217
1218
  scopes: AgentScopeConfig;
1218
1219
  id: string;
1219
1220
  }) => Promise<{
1220
- tenantId: string;
1221
- projectId: string;
1222
1221
  id: string;
1223
- agentId: string;
1224
1222
  createdAt: string;
1225
1223
  updatedAt: string;
1224
+ projectId: string;
1225
+ tenantId: string;
1226
1226
  headersSchema: unknown;
1227
1227
  contextVariables: Record<string, ContextFetchDefinition> | null;
1228
+ agentId: string;
1228
1229
  } | undefined>;
1229
1230
  declare const listContextConfigs: (db: DatabaseClient) => (params: {
1230
1231
  scopes: AgentScopeConfig;
1231
1232
  }) => Promise<{
1232
- tenantId: string;
1233
- projectId: string;
1234
1233
  id: string;
1235
- agentId: string;
1236
1234
  createdAt: string;
1237
1235
  updatedAt: string;
1236
+ projectId: string;
1237
+ tenantId: string;
1238
1238
  headersSchema: unknown;
1239
1239
  contextVariables: Record<string, ContextFetchDefinition> | null;
1240
+ agentId: string;
1240
1241
  }[]>;
1241
1242
  declare const listContextConfigsPaginated: (db: DatabaseClient) => (params: {
1242
1243
  scopes: AgentScopeConfig;
@@ -1251,14 +1252,14 @@ declare const listContextConfigsPaginated: (db: DatabaseClient) => (params: {
1251
1252
  };
1252
1253
  }>;
1253
1254
  declare const createContextConfig: (db: DatabaseClient) => (params: ContextConfigInsert) => Promise<{
1254
- tenantId: string;
1255
- projectId: string;
1256
1255
  id: string;
1257
- agentId: string;
1258
1256
  createdAt: string;
1259
1257
  updatedAt: string;
1258
+ projectId: string;
1259
+ tenantId: string;
1260
1260
  headersSchema: unknown;
1261
1261
  contextVariables: Record<string, ContextFetchDefinition> | null;
1262
+ agentId: string;
1262
1263
  }>;
1263
1264
  declare const updateContextConfig: (db: DatabaseClient) => (params: {
1264
1265
  scopes: AgentScopeConfig;
@@ -1291,14 +1292,14 @@ declare const countContextConfigs: (db: DatabaseClient) => (params: {
1291
1292
  declare const upsertContextConfig: (db: DatabaseClient) => (params: {
1292
1293
  data: ContextConfigInsert;
1293
1294
  }) => Promise<{
1294
- tenantId: string;
1295
- projectId: string;
1296
1295
  id: string;
1297
- agentId: string;
1298
1296
  createdAt: string;
1299
1297
  updatedAt: string;
1298
+ projectId: string;
1299
+ tenantId: string;
1300
1300
  headersSchema: unknown;
1301
1301
  contextVariables: Record<string, ContextFetchDefinition> | null;
1302
+ agentId: string;
1302
1303
  }>;
1303
1304
 
1304
1305
  declare const listConversations: (db: DatabaseClient) => (params: {
@@ -1310,14 +1311,14 @@ declare const listConversations: (db: DatabaseClient) => (params: {
1310
1311
  total: number;
1311
1312
  }>;
1312
1313
  declare const createConversation: (db: DatabaseClient) => (params: ConversationInsert) => Promise<{
1313
- tenantId: string;
1314
- projectId: string;
1315
1314
  id: string;
1316
- title: string | null;
1317
1315
  createdAt: string;
1318
1316
  updatedAt: string;
1319
- metadata: ConversationMetadata | null;
1320
1317
  userId: string | null;
1318
+ metadata: ConversationMetadata | null;
1319
+ title: string | null;
1320
+ projectId: string;
1321
+ tenantId: string;
1321
1322
  activeSubAgentId: string;
1322
1323
  lastContextResolution: string | null;
1323
1324
  }>;
@@ -1361,14 +1362,14 @@ declare const getConversation: (db: DatabaseClient) => (params: {
1361
1362
  scopes: ProjectScopeConfig;
1362
1363
  conversationId: string;
1363
1364
  }) => Promise<{
1364
- tenantId: string;
1365
- projectId: string;
1366
1365
  id: string;
1367
- title: string | null;
1368
1366
  createdAt: string;
1369
1367
  updatedAt: string;
1370
- metadata: ConversationMetadata | null;
1371
1368
  userId: string | null;
1369
+ metadata: ConversationMetadata | null;
1370
+ title: string | null;
1371
+ projectId: string;
1372
+ tenantId: string;
1372
1373
  activeSubAgentId: string;
1373
1374
  lastContextResolution: string | null;
1374
1375
  } | undefined>;
@@ -1385,14 +1386,14 @@ declare const createOrGetConversation: (db: DatabaseClient) => (input: Conversat
1385
1386
  metadata?: ConversationMetadata | null | undefined;
1386
1387
  contextConfigId?: string | undefined;
1387
1388
  } | {
1388
- tenantId: string;
1389
- projectId: string;
1390
1389
  id: string;
1391
- title: string | null;
1392
1390
  createdAt: string;
1393
1391
  updatedAt: string;
1394
- metadata: ConversationMetadata | null;
1395
1392
  userId: string | null;
1393
+ metadata: ConversationMetadata | null;
1394
+ title: string | null;
1395
+ projectId: string;
1396
+ tenantId: string;
1396
1397
  activeSubAgentId: string;
1397
1398
  lastContextResolution: string | null;
1398
1399
  }>;
@@ -1411,14 +1412,14 @@ declare const getActiveAgentForConversation: (db: DatabaseClient) => (params: {
1411
1412
  scopes: ProjectScopeConfig;
1412
1413
  conversationId: string;
1413
1414
  }) => Promise<{
1414
- tenantId: string;
1415
- projectId: string;
1416
1415
  id: string;
1417
- title: string | null;
1418
1416
  createdAt: string;
1419
1417
  updatedAt: string;
1420
- metadata: ConversationMetadata | null;
1421
1418
  userId: string | null;
1419
+ metadata: ConversationMetadata | null;
1420
+ title: string | null;
1421
+ projectId: string;
1422
+ tenantId: string;
1422
1423
  activeSubAgentId: string;
1423
1424
  lastContextResolution: string | null;
1424
1425
  } | undefined>;
@@ -1581,11 +1582,11 @@ declare const associateDataComponentWithAgent: (db: DatabaseClient) => (params:
1581
1582
  scopes: SubAgentScopeConfig;
1582
1583
  dataComponentId: string;
1583
1584
  }) => Promise<{
1584
- tenantId: string;
1585
- projectId: string;
1586
1585
  id: string;
1587
- agentId: string;
1588
1586
  createdAt: string;
1587
+ projectId: string;
1588
+ tenantId: string;
1589
+ agentId: string;
1589
1590
  subAgentId: string;
1590
1591
  dataComponentId: string;
1591
1592
  }>;
@@ -1623,11 +1624,11 @@ declare const upsertAgentDataComponentRelation: (db: DatabaseClient) => (params:
1623
1624
  scopes: SubAgentScopeConfig;
1624
1625
  dataComponentId: string;
1625
1626
  }) => Promise<{
1626
- tenantId: string;
1627
- projectId: string;
1628
1627
  id: string;
1629
- agentId: string;
1630
1628
  createdAt: string;
1629
+ projectId: string;
1630
+ tenantId: string;
1631
+ agentId: string;
1631
1632
  subAgentId: string;
1632
1633
  dataComponentId: string;
1633
1634
  } | null>;
@@ -1802,14 +1803,14 @@ declare const createFunctionTool: (db: DatabaseClient) => (params: {
1802
1803
  data: FunctionToolApiInsert;
1803
1804
  scopes: AgentScopeConfig;
1804
1805
  }) => Promise<{
1805
- tenantId: string;
1806
- projectId: string;
1807
- id: string;
1808
1806
  name: string;
1809
- description: string | null;
1810
- agentId: string;
1807
+ id: string;
1811
1808
  createdAt: string;
1812
1809
  updatedAt: string;
1810
+ description: string | null;
1811
+ projectId: string;
1812
+ tenantId: string;
1813
+ agentId: string;
1813
1814
  functionId: string;
1814
1815
  }>;
1815
1816
  /**
@@ -1844,14 +1845,14 @@ declare const upsertFunctionTool: (db: DatabaseClient) => (params: {
1844
1845
  data: FunctionToolApiInsert;
1845
1846
  scopes: AgentScopeConfig;
1846
1847
  }) => Promise<{
1847
- tenantId: string;
1848
- projectId: string;
1849
- id: string;
1850
1848
  name: string;
1851
- description: string | null;
1852
- agentId: string;
1849
+ id: string;
1853
1850
  createdAt: string;
1854
1851
  updatedAt: string;
1852
+ description: string | null;
1853
+ projectId: string;
1854
+ tenantId: string;
1855
+ agentId: string;
1855
1856
  functionId: string;
1856
1857
  }>;
1857
1858
  declare const getFunctionToolsForSubAgent: (db: DatabaseClient) => (params: {
@@ -1981,14 +1982,14 @@ declare const getMessageById: (db: DatabaseClient) => (params: {
1981
1982
  scopes: ProjectScopeConfig;
1982
1983
  messageId: string;
1983
1984
  }) => Promise<{
1984
- tenantId: string;
1985
- projectId: string;
1986
1985
  id: string;
1987
1986
  createdAt: string;
1988
1987
  updatedAt: string;
1989
1988
  metadata: MessageMetadata | null;
1990
- content: MessageContent;
1991
1989
  role: string;
1990
+ projectId: string;
1991
+ tenantId: string;
1992
+ content: MessageContent;
1992
1993
  conversationId: string;
1993
1994
  fromSubAgentId: string | null;
1994
1995
  toSubAgentId: string | null;
@@ -2112,14 +2113,14 @@ declare const getVisibleMessages: (db: DatabaseClient) => (params: {
2112
2113
  id: string;
2113
2114
  }[]>;
2114
2115
  declare const createMessage: (db: DatabaseClient) => (params: MessageInsert) => Promise<{
2115
- tenantId: string;
2116
- projectId: string;
2117
2116
  id: string;
2118
2117
  createdAt: string;
2119
2118
  updatedAt: string;
2120
2119
  metadata: MessageMetadata | null;
2121
- content: MessageContent;
2122
2120
  role: string;
2121
+ projectId: string;
2122
+ tenantId: string;
2123
+ content: MessageContent;
2123
2124
  conversationId: string;
2124
2125
  fromSubAgentId: string | null;
2125
2126
  toSubAgentId: string | null;
@@ -2165,14 +2166,14 @@ declare const deleteMessage: (db: DatabaseClient) => (params: {
2165
2166
  scopes: ProjectScopeConfig;
2166
2167
  messageId: string;
2167
2168
  }) => Promise<{
2168
- tenantId: string;
2169
- projectId: string;
2170
2169
  id: string;
2171
2170
  createdAt: string;
2172
2171
  updatedAt: string;
2173
2172
  metadata: MessageMetadata | null;
2174
- content: MessageContent;
2175
2173
  role: string;
2174
+ projectId: string;
2175
+ tenantId: string;
2176
+ content: MessageContent;
2176
2177
  conversationId: string;
2177
2178
  fromSubAgentId: string | null;
2178
2179
  toSubAgentId: string | null;
@@ -2327,15 +2328,15 @@ declare const getSubAgentExternalAgentRelationById: (db: DatabaseClient) => (par
2327
2328
  scopes: SubAgentScopeConfig;
2328
2329
  relationId: string;
2329
2330
  }) => Promise<{
2330
- tenantId: string;
2331
- projectId: string;
2332
2331
  id: string;
2333
- agentId: string;
2334
2332
  createdAt: string;
2335
2333
  updatedAt: string;
2336
2334
  headers: Record<string, string> | null;
2337
- externalAgentId: string;
2335
+ projectId: string;
2336
+ tenantId: string;
2337
+ agentId: string;
2338
2338
  subAgentId: string;
2339
+ externalAgentId: string;
2339
2340
  } | undefined>;
2340
2341
  declare const listSubAgentExternalAgentRelations: (db: DatabaseClient) => (params: {
2341
2342
  scopes: SubAgentScopeConfig;
@@ -2362,28 +2363,28 @@ declare const listSubAgentExternalAgentRelations: (db: DatabaseClient) => (param
2362
2363
  declare const getSubAgentExternalAgentRelations: (db: DatabaseClient) => (params: {
2363
2364
  scopes: SubAgentScopeConfig;
2364
2365
  }) => Promise<{
2365
- tenantId: string;
2366
- projectId: string;
2367
2366
  id: string;
2368
- agentId: string;
2369
2367
  createdAt: string;
2370
2368
  updatedAt: string;
2371
2369
  headers: Record<string, string> | null;
2372
- externalAgentId: string;
2370
+ projectId: string;
2371
+ tenantId: string;
2372
+ agentId: string;
2373
2373
  subAgentId: string;
2374
+ externalAgentId: string;
2374
2375
  }[]>;
2375
2376
  declare const getSubAgentExternalAgentRelationsByAgent: (db: DatabaseClient) => (params: {
2376
2377
  scopes: AgentScopeConfig;
2377
2378
  }) => Promise<{
2378
- tenantId: string;
2379
- projectId: string;
2380
2379
  id: string;
2381
- agentId: string;
2382
2380
  createdAt: string;
2383
2381
  updatedAt: string;
2384
2382
  headers: Record<string, string> | null;
2385
- externalAgentId: string;
2383
+ projectId: string;
2384
+ tenantId: string;
2385
+ agentId: string;
2386
2386
  subAgentId: string;
2387
+ externalAgentId: string;
2387
2388
  }[]>;
2388
2389
  declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: DatabaseClient) => (params: {
2389
2390
  scopes: AgentScopeConfig;
@@ -2498,15 +2499,15 @@ declare const createSubAgentExternalAgentRelation: (db: DatabaseClient) => (para
2498
2499
  headers?: Record<string, string> | null;
2499
2500
  };
2500
2501
  }) => Promise<{
2501
- tenantId: string;
2502
- projectId: string;
2503
2502
  id: string;
2504
- agentId: string;
2505
2503
  createdAt: string;
2506
2504
  updatedAt: string;
2507
2505
  headers: Record<string, string> | null;
2508
- externalAgentId: string;
2506
+ projectId: string;
2507
+ tenantId: string;
2508
+ agentId: string;
2509
2509
  subAgentId: string;
2510
+ externalAgentId: string;
2510
2511
  }>;
2511
2512
  /**
2512
2513
  * Check if sub-agent external agent relation exists by params
@@ -2515,15 +2516,15 @@ declare const getSubAgentExternalAgentRelationByParams: (db: DatabaseClient) =>
2515
2516
  scopes: SubAgentScopeConfig;
2516
2517
  externalAgentId: string;
2517
2518
  }) => Promise<{
2518
- tenantId: string;
2519
- projectId: string;
2520
2519
  id: string;
2521
- agentId: string;
2522
2520
  createdAt: string;
2523
2521
  updatedAt: string;
2524
2522
  headers: Record<string, string> | null;
2525
- externalAgentId: string;
2523
+ projectId: string;
2524
+ tenantId: string;
2525
+ agentId: string;
2526
2526
  subAgentId: string;
2527
+ externalAgentId: string;
2527
2528
  } | undefined>;
2528
2529
  /**
2529
2530
  * Upsert sub-agent external agent relation (create if it doesn't exist, update if it does)
@@ -2536,15 +2537,15 @@ declare const upsertSubAgentExternalAgentRelation: (db: DatabaseClient) => (para
2536
2537
  headers?: Record<string, string> | null;
2537
2538
  };
2538
2539
  }) => Promise<{
2539
- tenantId: string;
2540
- projectId: string;
2541
2540
  id: string;
2542
- agentId: string;
2543
2541
  createdAt: string;
2544
2542
  updatedAt: string;
2545
2543
  headers: Record<string, string> | null;
2546
- externalAgentId: string;
2544
+ projectId: string;
2545
+ tenantId: string;
2546
+ agentId: string;
2547
2547
  subAgentId: string;
2548
+ externalAgentId: string;
2548
2549
  }>;
2549
2550
  declare const updateSubAgentExternalAgentRelation: (db: DatabaseClient) => (params: {
2550
2551
  scopes: SubAgentScopeConfig;
@@ -2576,12 +2577,12 @@ declare const getAgentRelationById: (db: DatabaseClient) => (params: {
2576
2577
  scopes: AgentScopeConfig;
2577
2578
  relationId: string;
2578
2579
  }) => Promise<{
2579
- tenantId: string;
2580
- projectId: string;
2581
2580
  id: string;
2582
- agentId: string;
2583
2581
  createdAt: string;
2584
2582
  updatedAt: string;
2583
+ projectId: string;
2584
+ tenantId: string;
2585
+ agentId: string;
2585
2586
  sourceSubAgentId: string;
2586
2587
  targetSubAgentId: string | null;
2587
2588
  relationType: string | null;
@@ -2611,12 +2612,12 @@ declare const listAgentRelations: (db: DatabaseClient) => (params: {
2611
2612
  declare const getAgentRelations: (db: DatabaseClient) => (params: {
2612
2613
  scopes: SubAgentScopeConfig;
2613
2614
  }) => Promise<{
2614
- tenantId: string;
2615
- projectId: string;
2616
2615
  id: string;
2617
- agentId: string;
2618
2616
  createdAt: string;
2619
2617
  updatedAt: string;
2618
+ projectId: string;
2619
+ tenantId: string;
2620
+ agentId: string;
2620
2621
  sourceSubAgentId: string;
2621
2622
  targetSubAgentId: string | null;
2622
2623
  relationType: string | null;
@@ -2624,12 +2625,12 @@ declare const getAgentRelations: (db: DatabaseClient) => (params: {
2624
2625
  declare const getAgentRelationsByAgent: (db: DatabaseClient) => (params: {
2625
2626
  scopes: AgentScopeConfig;
2626
2627
  }) => Promise<{
2627
- tenantId: string;
2628
- projectId: string;
2629
2628
  id: string;
2630
- agentId: string;
2631
2629
  createdAt: string;
2632
2630
  updatedAt: string;
2631
+ projectId: string;
2632
+ tenantId: string;
2633
+ agentId: string;
2633
2634
  sourceSubAgentId: string;
2634
2635
  targetSubAgentId: string | null;
2635
2636
  relationType: string | null;
@@ -2693,12 +2694,12 @@ declare const getRelatedAgentsForAgent: (db: DatabaseClient) => (params: {
2693
2694
  }[];
2694
2695
  }>;
2695
2696
  declare const createSubAgentRelation: (db: DatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
2696
- tenantId: string;
2697
- projectId: string;
2698
2697
  id: string;
2699
- agentId: string;
2700
2698
  createdAt: string;
2701
2699
  updatedAt: string;
2700
+ projectId: string;
2701
+ tenantId: string;
2702
+ agentId: string;
2702
2703
  sourceSubAgentId: string;
2703
2704
  targetSubAgentId: string | null;
2704
2705
  relationType: string | null;
@@ -2712,12 +2713,12 @@ declare const getAgentRelationByParams: (db: DatabaseClient) => (params: {
2712
2713
  targetSubAgentId?: string;
2713
2714
  relationType: string;
2714
2715
  }) => Promise<{
2715
- tenantId: string;
2716
- projectId: string;
2717
2716
  id: string;
2718
- agentId: string;
2719
2717
  createdAt: string;
2720
2718
  updatedAt: string;
2719
+ projectId: string;
2720
+ tenantId: string;
2721
+ agentId: string;
2721
2722
  sourceSubAgentId: string;
2722
2723
  targetSubAgentId: string | null;
2723
2724
  relationType: string | null;
@@ -2726,12 +2727,12 @@ declare const getAgentRelationByParams: (db: DatabaseClient) => (params: {
2726
2727
  * Upsert agent relation (create if it doesn't exist, no-op if it does)
2727
2728
  */
2728
2729
  declare const upsertSubAgentRelation: (db: DatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
2729
- tenantId: string;
2730
- projectId: string;
2731
2730
  id: string;
2732
- agentId: string;
2733
2731
  createdAt: string;
2734
2732
  updatedAt: string;
2733
+ projectId: string;
2734
+ tenantId: string;
2735
+ agentId: string;
2735
2736
  sourceSubAgentId: string;
2736
2737
  targetSubAgentId: string | null;
2737
2738
  relationType: string | null;
@@ -2771,19 +2772,19 @@ declare const createAgentToolRelation: (db: DatabaseClient) => (params: {
2771
2772
  }> | null;
2772
2773
  };
2773
2774
  }) => Promise<{
2774
- tenantId: string;
2775
- projectId: string;
2776
2775
  id: string;
2777
- agentId: string;
2778
2776
  createdAt: string;
2779
2777
  updatedAt: string;
2780
2778
  headers: Record<string, string> | null;
2779
+ projectId: string;
2780
+ tenantId: string;
2781
+ agentId: string;
2782
+ selectedTools: string[] | null;
2783
+ subAgentId: string;
2781
2784
  toolId: string;
2782
2785
  toolPolicies: Record<string, {
2783
2786
  needsApproval?: boolean;
2784
2787
  }> | null;
2785
- selectedTools: string[] | null;
2786
- subAgentId: string;
2787
2788
  }>;
2788
2789
  declare const updateAgentToolRelation: (db: DatabaseClient) => (params: {
2789
2790
  scopes: AgentScopeConfig;
@@ -2815,19 +2816,19 @@ declare const getAgentToolRelationById: (db: DatabaseClient) => (params: {
2815
2816
  scopes: SubAgentScopeConfig;
2816
2817
  relationId: string;
2817
2818
  }) => Promise<{
2818
- tenantId: string;
2819
- projectId: string;
2820
2819
  id: string;
2821
- agentId: string;
2822
2820
  createdAt: string;
2823
2821
  updatedAt: string;
2824
2822
  headers: Record<string, string> | null;
2823
+ projectId: string;
2824
+ tenantId: string;
2825
+ agentId: string;
2826
+ selectedTools: string[] | null;
2827
+ subAgentId: string;
2825
2828
  toolId: string;
2826
2829
  toolPolicies: Record<string, {
2827
2830
  needsApproval?: boolean;
2828
2831
  }> | null;
2829
- selectedTools: string[] | null;
2830
- subAgentId: string;
2831
2832
  } | undefined>;
2832
2833
  declare const getAgentToolRelationByAgent: (db: DatabaseClient) => (params: {
2833
2834
  scopes: SubAgentScopeConfig;
@@ -3009,15 +3010,13 @@ declare const getSubAgentById: (db: DatabaseClient) => (params: {
3009
3010
  scopes: AgentScopeConfig;
3010
3011
  subAgentId: string;
3011
3012
  }) => Promise<{
3012
- tenantId: string;
3013
- projectId: string;
3014
- id: string;
3015
3013
  name: string;
3016
- description: string | null;
3017
- prompt: string | null;
3018
- agentId: string;
3014
+ id: string;
3019
3015
  createdAt: string;
3020
3016
  updatedAt: string;
3017
+ description: string | null;
3018
+ projectId: string;
3019
+ tenantId: string;
3021
3020
  models: {
3022
3021
  base?: {
3023
3022
  model?: string | undefined;
@@ -3035,20 +3034,20 @@ declare const getSubAgentById: (db: DatabaseClient) => (params: {
3035
3034
  stopWhen: {
3036
3035
  stepCountIs?: number | undefined;
3037
3036
  } | null;
3037
+ agentId: string;
3038
+ prompt: string | null;
3038
3039
  conversationHistoryConfig: ConversationHistoryConfig | null;
3039
3040
  } | undefined>;
3040
3041
  declare const listSubAgents: (db: DatabaseClient) => (params: {
3041
3042
  scopes: AgentScopeConfig;
3042
3043
  }) => Promise<{
3043
- tenantId: string;
3044
- projectId: string;
3045
- id: string;
3046
3044
  name: string;
3047
- description: string | null;
3048
- prompt: string | null;
3049
- agentId: string;
3045
+ id: string;
3050
3046
  createdAt: string;
3051
3047
  updatedAt: string;
3048
+ description: string | null;
3049
+ projectId: string;
3050
+ tenantId: string;
3052
3051
  models: {
3053
3052
  base?: {
3054
3053
  model?: string | undefined;
@@ -3066,6 +3065,8 @@ declare const listSubAgents: (db: DatabaseClient) => (params: {
3066
3065
  stopWhen: {
3067
3066
  stepCountIs?: number | undefined;
3068
3067
  } | null;
3068
+ agentId: string;
3069
+ prompt: string | null;
3069
3070
  conversationHistoryConfig: ConversationHistoryConfig | null;
3070
3071
  }[]>;
3071
3072
  declare const listSubAgentsPaginated: (db: DatabaseClient) => (params: {
@@ -3109,15 +3110,13 @@ declare const listSubAgentsPaginated: (db: DatabaseClient) => (params: {
3109
3110
  };
3110
3111
  }>;
3111
3112
  declare const createSubAgent: (db: DatabaseClient) => (params: SubAgentInsert) => Promise<{
3112
- tenantId: string;
3113
- projectId: string;
3114
- id: string;
3115
3113
  name: string;
3116
- description: string | null;
3117
- prompt: string | null;
3118
- agentId: string;
3114
+ id: string;
3119
3115
  createdAt: string;
3120
3116
  updatedAt: string;
3117
+ description: string | null;
3118
+ projectId: string;
3119
+ tenantId: string;
3121
3120
  models: {
3122
3121
  base?: {
3123
3122
  model?: string | undefined;
@@ -3135,6 +3134,8 @@ declare const createSubAgent: (db: DatabaseClient) => (params: SubAgentInsert) =
3135
3134
  stopWhen: {
3136
3135
  stepCountIs?: number | undefined;
3137
3136
  } | null;
3137
+ agentId: string;
3138
+ prompt: string | null;
3138
3139
  conversationHistoryConfig: ConversationHistoryConfig | null;
3139
3140
  }>;
3140
3141
  declare const updateSubAgent: (db: DatabaseClient) => (params: {
@@ -3222,13 +3223,13 @@ declare const getSubAgentTeamAgentRelationById: (db: DatabaseClient) => (params:
3222
3223
  scopes: SubAgentScopeConfig;
3223
3224
  relationId: string;
3224
3225
  }) => Promise<{
3225
- tenantId: string;
3226
- projectId: string;
3227
3226
  id: string;
3228
- agentId: string;
3229
3227
  createdAt: string;
3230
3228
  updatedAt: string;
3231
3229
  headers: Record<string, string> | null;
3230
+ projectId: string;
3231
+ tenantId: string;
3232
+ agentId: string;
3232
3233
  subAgentId: string;
3233
3234
  targetAgentId: string;
3234
3235
  } | undefined>;
@@ -3257,26 +3258,26 @@ declare const listSubAgentTeamAgentRelations: (db: DatabaseClient) => (params: {
3257
3258
  declare const getSubAgentTeamAgentRelations: (db: DatabaseClient) => (params: {
3258
3259
  scopes: SubAgentScopeConfig;
3259
3260
  }) => Promise<{
3260
- tenantId: string;
3261
- projectId: string;
3262
3261
  id: string;
3263
- agentId: string;
3264
3262
  createdAt: string;
3265
3263
  updatedAt: string;
3266
3264
  headers: Record<string, string> | null;
3265
+ projectId: string;
3266
+ tenantId: string;
3267
+ agentId: string;
3267
3268
  subAgentId: string;
3268
3269
  targetAgentId: string;
3269
3270
  }[]>;
3270
3271
  declare const getSubAgentTeamAgentRelationsByAgent: (db: DatabaseClient) => (params: {
3271
3272
  scopes: AgentScopeConfig;
3272
3273
  }) => Promise<{
3273
- tenantId: string;
3274
- projectId: string;
3275
3274
  id: string;
3276
- agentId: string;
3277
3275
  createdAt: string;
3278
3276
  updatedAt: string;
3279
3277
  headers: Record<string, string> | null;
3278
+ projectId: string;
3279
+ tenantId: string;
3280
+ agentId: string;
3280
3281
  subAgentId: string;
3281
3282
  targetAgentId: string;
3282
3283
  }[]>;
@@ -3423,13 +3424,13 @@ declare const createSubAgentTeamAgentRelation: (db: DatabaseClient) => (params:
3423
3424
  headers?: Record<string, string> | null;
3424
3425
  };
3425
3426
  }) => Promise<{
3426
- tenantId: string;
3427
- projectId: string;
3428
3427
  id: string;
3429
- agentId: string;
3430
3428
  createdAt: string;
3431
3429
  updatedAt: string;
3432
3430
  headers: Record<string, string> | null;
3431
+ projectId: string;
3432
+ tenantId: string;
3433
+ agentId: string;
3433
3434
  subAgentId: string;
3434
3435
  targetAgentId: string;
3435
3436
  }>;
@@ -3440,13 +3441,13 @@ declare const getSubAgentTeamAgentRelationByParams: (db: DatabaseClient) => (par
3440
3441
  scopes: SubAgentScopeConfig;
3441
3442
  targetAgentId: string;
3442
3443
  }) => Promise<{
3443
- tenantId: string;
3444
- projectId: string;
3445
3444
  id: string;
3446
- agentId: string;
3447
3445
  createdAt: string;
3448
3446
  updatedAt: string;
3449
3447
  headers: Record<string, string> | null;
3448
+ projectId: string;
3449
+ tenantId: string;
3450
+ agentId: string;
3450
3451
  subAgentId: string;
3451
3452
  targetAgentId: string;
3452
3453
  } | undefined>;
@@ -3461,13 +3462,13 @@ declare const upsertSubAgentTeamAgentRelation: (db: DatabaseClient) => (params:
3461
3462
  headers?: Record<string, string> | null;
3462
3463
  };
3463
3464
  }) => Promise<{
3464
- tenantId: string;
3465
- projectId: string;
3466
3465
  id: string;
3467
- agentId: string;
3468
3466
  createdAt: string;
3469
3467
  updatedAt: string;
3470
3468
  headers: Record<string, string> | null;
3469
+ projectId: string;
3470
+ tenantId: string;
3471
+ agentId: string;
3471
3472
  subAgentId: string;
3472
3473
  targetAgentId: string;
3473
3474
  }>;
@@ -3498,14 +3499,14 @@ declare const deleteSubAgentTeamAgentRelationsByAgent: (db: DatabaseClient) => (
3498
3499
  }) => Promise<boolean>;
3499
3500
 
3500
3501
  declare const createTask: (db: DatabaseClient) => (params: TaskInsert) => Promise<{
3501
- tenantId: string;
3502
- projectId: string;
3503
3502
  id: string;
3504
- agentId: string;
3505
3503
  createdAt: string;
3506
3504
  updatedAt: string;
3507
3505
  metadata: TaskMetadataConfig | null;
3508
3506
  status: string;
3507
+ projectId: string;
3508
+ tenantId: string;
3509
+ agentId: string;
3509
3510
  contextId: string;
3510
3511
  subAgentId: string;
3511
3512
  }>;
@@ -3539,20 +3540,20 @@ declare const getToolById: (db: DatabaseClient) => (params: {
3539
3540
  scopes: ProjectScopeConfig;
3540
3541
  toolId: string;
3541
3542
  }) => Promise<{
3542
- tenantId: string;
3543
- projectId: string;
3544
- id: string;
3545
3543
  name: string;
3544
+ id: string;
3545
+ createdAt: string;
3546
+ updatedAt: string;
3546
3547
  description: string | null;
3548
+ headers: Record<string, string> | null;
3547
3549
  config: {
3548
3550
  type: "mcp";
3549
3551
  mcp: ToolMcpConfig;
3550
3552
  };
3551
- credentialReferenceId: string | null;
3552
- createdAt: string;
3553
- updatedAt: string;
3554
- headers: Record<string, string> | null;
3553
+ projectId: string;
3554
+ tenantId: string;
3555
3555
  capabilities: ToolServerCapabilities | null;
3556
+ credentialReferenceId: string | null;
3556
3557
  imageUrl: string | null;
3557
3558
  lastError: string | null;
3558
3559
  } | null>;
@@ -3586,20 +3587,20 @@ declare const listTools: (db: DatabaseClient) => (params: {
3586
3587
  };
3587
3588
  }>;
3588
3589
  declare const createTool: (db: DatabaseClient) => (params: ToolInsert) => Promise<{
3589
- tenantId: string;
3590
- projectId: string;
3591
- id: string;
3592
3590
  name: string;
3591
+ id: string;
3592
+ createdAt: string;
3593
+ updatedAt: string;
3593
3594
  description: string | null;
3595
+ headers: Record<string, string> | null;
3594
3596
  config: {
3595
3597
  type: "mcp";
3596
3598
  mcp: ToolMcpConfig;
3597
3599
  };
3598
- credentialReferenceId: string | null;
3599
- createdAt: string;
3600
- updatedAt: string;
3601
- headers: Record<string, string> | null;
3600
+ projectId: string;
3601
+ tenantId: string;
3602
3602
  capabilities: ToolServerCapabilities | null;
3603
+ credentialReferenceId: string | null;
3603
3604
  imageUrl: string | null;
3604
3605
  lastError: string | null;
3605
3606
  }>;
@@ -3639,38 +3640,38 @@ declare const addToolToAgent: (db: DatabaseClient) => (params: {
3639
3640
  needsApproval?: boolean;
3640
3641
  }> | null;
3641
3642
  }) => Promise<{
3642
- tenantId: string;
3643
- projectId: string;
3644
3643
  id: string;
3645
- agentId: string;
3646
3644
  createdAt: string;
3647
3645
  updatedAt: string;
3648
3646
  headers: Record<string, string> | null;
3647
+ projectId: string;
3648
+ tenantId: string;
3649
+ agentId: string;
3650
+ selectedTools: string[] | null;
3651
+ subAgentId: string;
3649
3652
  toolId: string;
3650
3653
  toolPolicies: Record<string, {
3651
3654
  needsApproval?: boolean;
3652
3655
  }> | null;
3653
- selectedTools: string[] | null;
3654
- subAgentId: string;
3655
3656
  }>;
3656
3657
  declare const removeToolFromAgent: (db: DatabaseClient) => (params: {
3657
3658
  scopes: AgentScopeConfig;
3658
3659
  subAgentId: string;
3659
3660
  toolId: string;
3660
3661
  }) => Promise<{
3661
- tenantId: string;
3662
- projectId: string;
3663
3662
  id: string;
3664
- agentId: string;
3665
3663
  createdAt: string;
3666
3664
  updatedAt: string;
3667
3665
  headers: Record<string, string> | null;
3666
+ projectId: string;
3667
+ tenantId: string;
3668
+ agentId: string;
3669
+ selectedTools: string[] | null;
3670
+ subAgentId: string;
3668
3671
  toolId: string;
3669
3672
  toolPolicies: Record<string, {
3670
3673
  needsApproval?: boolean;
3671
3674
  }> | null;
3672
- selectedTools: string[] | null;
3673
- subAgentId: string;
3674
3675
  }>;
3675
3676
  /**
3676
3677
  * Upsert agent-tool relation (create if it doesn't exist, update if it does)
@@ -3686,19 +3687,19 @@ declare const upsertSubAgentToolRelation: (db: DatabaseClient) => (params: {
3686
3687
  }> | null;
3687
3688
  relationId?: string;
3688
3689
  }) => Promise<{
3689
- tenantId: string;
3690
- projectId: string;
3691
3690
  id: string;
3692
- agentId: string;
3693
3691
  createdAt: string;
3694
3692
  updatedAt: string;
3695
3693
  headers: Record<string, string> | null;
3694
+ projectId: string;
3695
+ tenantId: string;
3696
+ agentId: string;
3697
+ selectedTools: string[] | null;
3698
+ subAgentId: string;
3696
3699
  toolId: string;
3697
3700
  toolPolicies: Record<string, {
3698
3701
  needsApproval?: boolean;
3699
3702
  }> | null;
3700
- selectedTools: string[] | null;
3701
- subAgentId: string;
3702
3703
  }>;
3703
3704
  /**
3704
3705
  * Upsert a tool (create if it doesn't exist, update if it does)
@@ -3706,20 +3707,20 @@ declare const upsertSubAgentToolRelation: (db: DatabaseClient) => (params: {
3706
3707
  declare const upsertTool: (db: DatabaseClient) => (params: {
3707
3708
  data: ToolInsert;
3708
3709
  }) => Promise<{
3709
- tenantId: string;
3710
- projectId: string;
3711
- id: string;
3712
3710
  name: string;
3711
+ id: string;
3712
+ createdAt: string;
3713
+ updatedAt: string;
3713
3714
  description: string | null;
3715
+ headers: Record<string, string> | null;
3714
3716
  config: {
3715
3717
  type: "mcp";
3716
3718
  mcp: ToolMcpConfig;
3717
3719
  };
3718
- credentialReferenceId: string | null;
3719
- createdAt: string;
3720
- updatedAt: string;
3721
- headers: Record<string, string> | null;
3720
+ projectId: string;
3721
+ tenantId: string;
3722
3722
  capabilities: ToolServerCapabilities | null;
3723
+ credentialReferenceId: string | null;
3723
3724
  imageUrl: string | null;
3724
3725
  lastError: string | null;
3725
3726
  }>;