@inkeep/agents-core 0.29.7 → 0.29.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -2,13 +2,13 @@ export { ANTHROPIC_MODELS, AnthropicModel, GOOGLE_MODELS, GoogleModel, ModelName
2
2
  import { r as PinoLogger, s as getLogger } from './auth-detection-DtO-n2WD.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-DtO-n2WD.js';
4
4
  import { z } from 'zod';
5
- import { r as CredentialReferenceApiInsert, s as ContextConfigSelect, l as ContextFetchDefinition, i as MCPTransportType, t as MCPToolConfig, u as ProjectScopeConfig, v as FullAgentDefinition, w as AgentScopeConfig, C as ConversationHistoryConfig, x as PaginationConfig, y as AgentInsert, z as AgentUpdate, B as AgentSelect, D as ApiKeySelect, E as ApiKeyInsert, G as ApiKeyUpdate, H as CreateApiKeyParams, I as ApiKeyCreateResult, J as ArtifactComponentSelect, K as ArtifactComponentInsert, L as ArtifactComponentUpdate, N as SubAgentScopeConfig, O as ContextCacheSelect, Q as ContextCacheInsert, R as ContextConfigInsert, U as ContextConfigUpdate, V as ConversationSelect, W as ConversationInsert, o as ConversationMetadata, X as ConversationUpdate, Y as CredentialReferenceSelect, Z as ToolSelect, _ as ExternalAgentSelect, $ as CredentialReferenceInsert, a0 as CredentialReferenceUpdate, a1 as DataComponentSelect, a2 as DataComponentInsert, a3 as DataComponentUpdate, a4 as ExternalAgentInsert, a5 as ExternalAgentUpdate, a6 as FunctionApiInsert, a7 as FunctionToolApiInsert, a8 as FunctionToolApiUpdate, a9 as Artifact, aa as LedgerArtifactSelect, q as MessageMetadata, p as MessageContent, ab as MessageVisibility, ac as MessageInsert, ad as MessageUpdate, ae as FullProjectDefinition, af as ProjectInfo, ag as ProjectSelect, ah as PaginationResult, ai as ProjectResourceCounts, aj as ProjectInsert, ak as ProjectUpdate, al as SubAgentExternalAgentRelationInsert, am as SubAgentRelationInsert, an as SubAgentRelationUpdate, ao as SubAgentToolRelationUpdate, m as ToolMcpConfig, n as ToolServerCapabilities, ap as SubAgentInsert, aq as SubAgentUpdate, ar as SubAgentSelect, as as SubAgentTeamAgentRelationInsert, at as TaskInsert, T as TaskMetadataConfig, au as TaskSelect, av as McpTool, aw as ToolInsert, ax as ToolUpdate, h as CredentialStoreType, ay as ExecutionContext } from './utility-C5D70uSj.js';
6
- export { ba as A2AError, bG as A2ARequest, bH as A2AResponse, aL as APIKeySecurityScheme, bV as AgentApiInsert, e6 as AgentApiInsertSchema, bU as AgentApiSelect, e5 as AgentApiSelectSchema, bW as AgentApiUpdate, e7 as AgentApiUpdateSchema, aH as AgentCapabilities, aV as AgentCard, dx as AgentConversationHistoryConfig, e3 as AgentInsertSchema, gI as AgentListResponse, aI as AgentProvider, gs as AgentResponse, e2 as AgentSelectSchema, aJ as AgentSkill, e as AgentStopWhen, b as AgentStopWhenSchema, e4 as AgentUpdateSchema, gc as AgentWithinContextOfProjectSchema, fa as AllAgentSchema, cP as AllAgentSelect, cT as ApiKeyApiCreationResponse, ff as ApiKeyApiCreationResponseSchema, cR as ApiKeyApiInsert, fg as ApiKeyApiInsertSchema, cQ as ApiKeyApiSelect, fe as ApiKeyApiSelectSchema, cS as ApiKeyApiUpdate, A as ApiKeyApiUpdateSchema, fc as ApiKeyInsertSchema, gM as ApiKeyListResponse, gw as ApiKeyResponse, fb as ApiKeySelectSchema, fd as ApiKeyUpdateSchema, cE as ArtifactComponentApiInsert, eY as ArtifactComponentApiInsertSchema, cD as ArtifactComponentApiSelect, eX as ArtifactComponentApiSelectSchema, cF as ArtifactComponentApiUpdate, eZ as ArtifactComponentApiUpdateSchema, eV as ArtifactComponentInsertSchema, gR as ArtifactComponentListResponse, gB as ArtifactComponentResponse, eU as ArtifactComponentSelectSchema, eW as ArtifactComponentUpdateSchema, aO as AuthorizationCodeOAuthFlow, dg as CanDelegateToExternalAgent, df as CanUseItem, g8 as CanUseItemSchema, bq as CancelTaskRequest, bB as CancelTaskResponse, bA as CancelTaskSuccessResponse, aP as ClientCredentialsOAuthFlow, b8 as ContentTypeNotSupportedError, cs as ContextCacheApiInsert, eF as ContextCacheApiInsertSchema, cr as ContextCacheApiSelect, eE as ContextCacheApiSelectSchema, ct as ContextCacheApiUpdate, eG as ContextCacheApiUpdateSchema, dy as ContextCacheEntry, eC as ContextCacheInsertSchema, eB as ContextCacheSelectSchema, cq as ContextCacheUpdate, eD as ContextCacheUpdateSchema, cm as ContextConfigApiInsert, fI as ContextConfigApiInsertSchema, cl as ContextConfigApiSelect, fH as ContextConfigApiSelectSchema, cn as ContextConfigApiUpdate, fJ as ContextConfigApiUpdateSchema, fF as ContextConfigInsertSchema, gL as ContextConfigListResponse, gv as ContextConfigResponse, fE as ContextConfigSelectSchema, fG as ContextConfigUpdateSchema, cf as ConversationApiInsert, et as ConversationApiInsertSchema, ce as ConversationApiSelect, es as ConversationApiSelectSchema, cg as ConversationApiUpdate, eu as ConversationApiUpdateSchema, eq as ConversationInsertSchema, gU as ConversationListResponse, gE as ConversationResponse, dw as ConversationScopeOptions, ep as ConversationSelectSchema, er as ConversationUpdateSchema, fl as CredentialReferenceApiInsertSchema, cU as CredentialReferenceApiSelect, fk as CredentialReferenceApiSelectSchema, cV as CredentialReferenceApiUpdate, fm as CredentialReferenceApiUpdateSchema, fi as CredentialReferenceInsertSchema, gN as CredentialReferenceListResponse, gx as CredentialReferenceResponse, fh as CredentialReferenceSelectSchema, fj as CredentialReferenceUpdateSchema, cv as DataComponentApiInsert, eM as DataComponentApiInsertSchema, cu as DataComponentApiSelect, eL as DataComponentApiSelectSchema, cw as DataComponentApiUpdate, eN as DataComponentApiUpdateSchema, eJ as DataComponentBaseSchema, eI as DataComponentInsertSchema, gQ as DataComponentListResponse, gA as DataComponentResponse, eH as DataComponentSelectSchema, eK as DataComponentUpdateSchema, aF as DataPart, gg as ErrorResponseSchema, gh as ExistsResponseSchema, cN as ExternalAgentApiInsert, f8 as ExternalAgentApiInsertSchema, cM as ExternalAgentApiSelect, f7 as ExternalAgentApiSelectSchema, cO as ExternalAgentApiUpdate, f9 as ExternalAgentApiUpdateSchema, f5 as ExternalAgentInsertSchema, gK as ExternalAgentListResponse, gu as ExternalAgentResponse, f4 as ExternalAgentSelectSchema, f6 as ExternalAgentUpdateSchema, bT as ExternalSubAgentRelationApiInsert, e1 as ExternalSubAgentRelationApiInsertSchema, bS as ExternalSubAgentRelationInsert, e0 as ExternalSubAgentRelationInsertSchema, cp as FetchConfig, fC as FetchConfigSchema, co as FetchDefinition, fD as FetchDefinitionSchema, aB as FileBase, aE as FilePart, aC as FileWithBytes, aD as FileWithUri, de as FullAgentAgentInsert, a as FullAgentAgentInsertSchema, gp as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, cb as FunctionApiSelect, j as FunctionApiSelectSchema, cc as FunctionApiUpdate, k as FunctionApiUpdateSchema, c9 as FunctionInsert, fA as FunctionInsertSchema, gO as FunctionListResponse, gy as FunctionResponse, c8 as FunctionSelect, fz as FunctionSelectSchema, fx as FunctionToolApiInsertSchema, cd as FunctionToolApiSelect, fw as FunctionToolApiSelectSchema, fy as FunctionToolApiUpdateSchema, dO as FunctionToolConfig, dN as FunctionToolConfigSchema, fu as FunctionToolInsertSchema, gP as FunctionToolListResponse, gz as FunctionToolResponse, ft as FunctionToolSelectSchema, fv as FunctionToolUpdateSchema, ca as FunctionUpdate, fB as FunctionUpdateSchema, bs as GetTaskPushNotificationConfigRequest, bF as GetTaskPushNotificationConfigResponse, bE as GetTaskPushNotificationConfigSuccessResponse, bp as GetTaskRequest, bz as GetTaskResponse, by as GetTaskSuccessResponse, aM as HTTPAuthSecurityScheme, g_ as HeadersScopeSchema, aQ as ImplicitOAuthFlow, b3 as InternalError, b9 as InvalidAgentResponseError, b2 as InvalidParamsError, b0 as InvalidRequestError, a$ as JSONParseError, bk as JSONRPCError, bm as JSONRPCErrorResponse, bi as JSONRPCMessage, bj as JSONRPCRequest, bl as JSONRPCResult, dc as LedgerArtifactApiInsert, g4 as LedgerArtifactApiInsertSchema, db as LedgerArtifactApiSelect, g3 as LedgerArtifactApiSelectSchema, dd as LedgerArtifactApiUpdate, g5 as LedgerArtifactApiUpdateSchema, d9 as LedgerArtifactInsert, g1 as LedgerArtifactInsertSchema, g0 as LedgerArtifactSelectSchema, da as LedgerArtifactUpdate, g2 as LedgerArtifactUpdateSchema, ge as ListResponseSchema, dI as MAX_ID_LENGTH, dG as MCPServerType, fo as MCPToolConfigSchema, dH as MIN_ID_LENGTH, dz as McpAuthType, dA as McpServerAuth, dC as McpServerCapabilities, dD as McpToolDefinition, em as McpToolDefinitionSchema, fn as McpToolSchema, dB as McpTransportConfig, ek as McpTransportConfigSchema, aW as Message, cj as MessageApiInsert, ez as MessageApiInsertSchema, ci as MessageApiSelect, ey as MessageApiSelectSchema, ck as MessageApiUpdate, eA as MessageApiUpdateSchema, ew as MessageInsertSchema, gV as MessageListResponse, dr as MessageMode, bI as MessagePart, gF as MessageResponse, dq as MessageRole, ch as MessageSelect, ev as MessageSelectSchema, bg as MessageSendConfiguration, bh as MessageSendParams, dp as MessageType, ex as MessageUpdateSchema, b1 as MethodNotFoundError, dL as ModelSchema, g as ModelSettings, M as ModelSettingsSchema, ds as Models, aS as OAuth2SecurityScheme, aN as OAuthFlows, aT as OpenIdConnectSecurityScheme, dm as Pagination, h7 as PaginationQueryParamsSchema, gd as PaginationSchema, P as Part, az as PartBase, aR as PasswordOAuthFlow, dk as ProjectApiInsert, gn as ProjectApiInsertSchema, dj as ProjectApiSelect, gm as ProjectApiSelectSchema, dl as ProjectApiUpdate, go as ProjectApiUpdateSchema, gk as ProjectInsertSchema, gG as ProjectListResponse, dM as ProjectModelSchema, dt as ProjectModels, gq as ProjectResponse, gj as ProjectSelectSchema, gl as ProjectUpdateSchema, bb as PushNotificationAuthenticationInfo, bc as PushNotificationConfig, b6 as PushNotificationNotSupportedError, gi as RemovedResponseSchema, aU as SecurityScheme, aK as SecuritySchemeBase, bn as SendMessageRequest, bv as SendMessageResponse, bu as SendMessageSuccessResponse, bo as SendStreamingMessageRequest, bx as SendStreamingMessageResponse, bw as SendStreamingMessageSuccessResponse, br as SetTaskPushNotificationConfigRequest, bD as SetTaskPushNotificationConfigResponse, bC as SetTaskPushNotificationConfigSuccessResponse, gf as SingleResponseSchema, dv as StatusComponent, g6 as StatusComponentSchema, g7 as StatusUpdateSchema, du as StatusUpdateSettings, d as StopWhen, S as StopWhenSchema, bL as SubAgentApiInsert, dT as SubAgentApiInsertSchema, bK as SubAgentApiSelect, dS as SubAgentApiSelectSchema, bM as SubAgentApiUpdate, dU as SubAgentApiUpdateSchema, cK as SubAgentArtifactComponentApiInsert, f2 as SubAgentArtifactComponentApiInsertSchema, cJ as SubAgentArtifactComponentApiSelect, f1 as SubAgentArtifactComponentApiSelectSchema, cL as SubAgentArtifactComponentApiUpdate, f3 as SubAgentArtifactComponentApiUpdateSchema, cH as SubAgentArtifactComponentInsert, e$ as SubAgentArtifactComponentInsertSchema, gZ as SubAgentArtifactComponentListResponse, gX as SubAgentArtifactComponentResponse, cG as SubAgentArtifactComponentSelect, e_ as SubAgentArtifactComponentSelectSchema, cI as SubAgentArtifactComponentUpdate, f0 as SubAgentArtifactComponentUpdateSchema, cB as SubAgentDataComponentApiInsert, eS as SubAgentDataComponentApiInsertSchema, cA as SubAgentDataComponentApiSelect, eR as SubAgentDataComponentApiSelectSchema, cC as SubAgentDataComponentApiUpdate, eT as SubAgentDataComponentApiUpdateSchema, cy as SubAgentDataComponentInsert, eP as SubAgentDataComponentInsertSchema, gY as SubAgentDataComponentListResponse, gW as SubAgentDataComponentResponse, cx as SubAgentDataComponentSelect, eO as SubAgentDataComponentSelectSchema, cz as SubAgentDataComponentUpdate, eQ as SubAgentDataComponentUpdateSchema, dh as SubAgentDefinition, d2 as SubAgentExternalAgentRelationApiInsert, fU as SubAgentExternalAgentRelationApiInsertSchema, d1 as SubAgentExternalAgentRelationApiSelect, fT as SubAgentExternalAgentRelationApiSelectSchema, d3 as SubAgentExternalAgentRelationApiUpdate, fV as SubAgentExternalAgentRelationApiUpdateSchema, fR as SubAgentExternalAgentRelationInsertSchema, c$ as SubAgentExternalAgentRelationSelect, fQ as SubAgentExternalAgentRelationSelectSchema, d0 as SubAgentExternalAgentRelationUpdate, fS as SubAgentExternalAgentRelationUpdateSchema, dQ as SubAgentInsertSchema, gH as SubAgentListResponse, bP as SubAgentRelationApiInsert, dZ as SubAgentRelationApiInsertSchema, bO as SubAgentRelationApiSelect, dY as SubAgentRelationApiSelectSchema, bQ as SubAgentRelationApiUpdate, d_ as SubAgentRelationApiUpdateSchema, dW as SubAgentRelationInsertSchema, gS as SubAgentRelationListResponse, bR as SubAgentRelationQuery, d$ as SubAgentRelationQuerySchema, gC as SubAgentRelationResponse, bN as SubAgentRelationSelect, dV as SubAgentRelationSelectSchema, dX as SubAgentRelationUpdateSchema, gr as SubAgentResponse, dP as SubAgentSelectSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema, d7 as SubAgentTeamAgentRelationApiInsert, f_ as SubAgentTeamAgentRelationApiInsertSchema, d6 as SubAgentTeamAgentRelationApiSelect, fZ as SubAgentTeamAgentRelationApiSelectSchema, d8 as SubAgentTeamAgentRelationApiUpdate, f$ as SubAgentTeamAgentRelationApiUpdateSchema, fX as SubAgentTeamAgentRelationInsertSchema, d4 as SubAgentTeamAgentRelationSelect, fW as SubAgentTeamAgentRelationSelectSchema, d5 as SubAgentTeamAgentRelationUpdate, fY as SubAgentTeamAgentRelationUpdateSchema, cZ as SubAgentToolRelationApiInsert, fO as SubAgentToolRelationApiInsertSchema, cY as SubAgentToolRelationApiSelect, fN as SubAgentToolRelationApiSelectSchema, c_ as SubAgentToolRelationApiUpdate, fP as SubAgentToolRelationApiUpdateSchema, cX as SubAgentToolRelationInsert, fL as SubAgentToolRelationInsertSchema, gT as SubAgentToolRelationListResponse, gD as SubAgentToolRelationResponse, cW as SubAgentToolRelationSelect, fK as SubAgentToolRelationSelectSchema, fM as SubAgentToolRelationUpdateSchema, dR as SubAgentUpdateSchema, dn as SummaryEvent, dE as TOOL_STATUS_VALUES, aY as Task, bZ as TaskApiInsert, ec as TaskApiInsertSchema, bY as TaskApiSelect, eb as TaskApiSelectSchema, b_ as TaskApiUpdate, ed as TaskApiUpdateSchema, bJ as TaskArtifact, a_ as TaskArtifactUpdateEvent, be as TaskIdParams, e9 as TaskInsertSchema, b5 as TaskNotCancelableError, b4 as TaskNotFoundError, bd as TaskPushNotificationConfig, bf as TaskQueryParams, c3 as TaskRelationApiInsert, ei as TaskRelationApiInsertSchema, c2 as TaskRelationApiSelect, eh as TaskRelationApiSelectSchema, c4 as TaskRelationApiUpdate, ej as TaskRelationApiUpdateSchema, c0 as TaskRelationInsert, ef as TaskRelationInsertSchema, b$ as TaskRelationSelect, ee as TaskRelationSelectSchema, c1 as TaskRelationUpdate, eg as TaskRelationUpdateSchema, bt as TaskResubscriptionRequest, e8 as TaskSelectSchema, aG as TaskState, aX as TaskStatus, aZ as TaskStatusUpdateEvent, bX as TaskUpdate, ea as TaskUpdateSchema, gb as TeamAgentSchema, h0 as TenantIdParamsSchema, g$ as TenantParamsSchema, h4 as TenantProjectAgentIdParamsSchema, h3 as TenantProjectAgentParamsSchema, h6 as TenantProjectAgentSubAgentIdParamsSchema, h5 as TenantProjectAgentSubAgentParamsSchema, h2 as TenantProjectIdParamsSchema, h1 as TenantProjectParamsSchema, aA as TextPart, c6 as ToolApiInsert, fr as ToolApiInsertSchema, c5 as ToolApiSelect, fq as ToolApiSelectSchema, c7 as ToolApiUpdate, fs as ToolApiUpdateSchema, di as ToolDefinition, eo as ToolInsertSchema, gJ as ToolListResponse, gt as ToolResponse, en as ToolSelectSchema, el as ToolStatusSchema, fp as ToolUpdateSchema, dJ as URL_SAFE_ID_PATTERN, b7 as UnsupportedOperationError, dF as VALID_RELATION_TYPES, g9 as canDelegateToExternalAgentSchema, ga as canDelegateToTeamAgentSchema, dK as resourceIdSchema } from './utility-C5D70uSj.js';
5
+ import { r as CredentialReferenceApiInsert, s as ContextConfigSelect, l as ContextFetchDefinition, i as MCPTransportType, t as MCPToolConfig, u as ProjectScopeConfig, v as FullAgentDefinition, w as AgentScopeConfig, C as ConversationHistoryConfig, x as PaginationConfig, y as AgentInsert, z as AgentUpdate, B as AgentSelect, D as ApiKeySelect, E as ApiKeyInsert, G as ApiKeyUpdate, H as CreateApiKeyParams, I as ApiKeyCreateResult, J as ArtifactComponentSelect, K as ArtifactComponentInsert, L as ArtifactComponentUpdate, N as SubAgentScopeConfig, O as ContextCacheSelect, Q as ContextCacheInsert, R as ContextConfigInsert, U as ContextConfigUpdate, V as ConversationSelect, W as ConversationInsert, o as ConversationMetadata, X as ConversationUpdate, Y as CredentialReferenceSelect, Z as ToolSelect, _ as ExternalAgentSelect, $ as CredentialReferenceInsert, a0 as CredentialReferenceUpdate, a1 as DataComponentSelect, a2 as DataComponentInsert, a3 as DataComponentUpdate, a4 as ExternalAgentInsert, a5 as ExternalAgentUpdate, a6 as FunctionApiInsert, a7 as FunctionToolApiInsert, a8 as FunctionToolApiUpdate, a9 as Artifact, aa as LedgerArtifactSelect, q as MessageMetadata, p as MessageContent, ab as MessageVisibility, ac as MessageInsert, ad as MessageUpdate, ae as FullProjectDefinition, af as ProjectInfo, ag as ProjectSelect, ah as PaginationResult, ai as ProjectResourceCounts, aj as ProjectInsert, ak as ProjectUpdate, al as SubAgentExternalAgentRelationInsert, am as SubAgentRelationInsert, an as SubAgentRelationUpdate, ao as SubAgentToolRelationUpdate, m as ToolMcpConfig, n as ToolServerCapabilities, ap as SubAgentInsert, aq as SubAgentUpdate, ar as SubAgentSelect, as as SubAgentTeamAgentRelationInsert, at as TaskInsert, T as TaskMetadataConfig, au as TaskSelect, av as McpTool, aw as ToolInsert, ax as ToolUpdate, h as CredentialStoreType, ay as ExecutionContext } from './utility-DhRaNM5g.js';
6
+ export { ba as A2AError, bG as A2ARequest, bH as A2AResponse, aL as APIKeySecurityScheme, bV as AgentApiInsert, e6 as AgentApiInsertSchema, bU as AgentApiSelect, e5 as AgentApiSelectSchema, bW as AgentApiUpdate, e7 as AgentApiUpdateSchema, aH as AgentCapabilities, aV as AgentCard, dx as AgentConversationHistoryConfig, e3 as AgentInsertSchema, gI as AgentListResponse, aI as AgentProvider, gs as AgentResponse, e2 as AgentSelectSchema, aJ as AgentSkill, e as AgentStopWhen, b as AgentStopWhenSchema, e4 as AgentUpdateSchema, gc as AgentWithinContextOfProjectSchema, fa as AllAgentSchema, cP as AllAgentSelect, cT as ApiKeyApiCreationResponse, ff as ApiKeyApiCreationResponseSchema, cR as ApiKeyApiInsert, fg as ApiKeyApiInsertSchema, cQ as ApiKeyApiSelect, fe as ApiKeyApiSelectSchema, cS as ApiKeyApiUpdate, A as ApiKeyApiUpdateSchema, fc as ApiKeyInsertSchema, gM as ApiKeyListResponse, gw as ApiKeyResponse, fb as ApiKeySelectSchema, fd as ApiKeyUpdateSchema, cE as ArtifactComponentApiInsert, eY as ArtifactComponentApiInsertSchema, cD as ArtifactComponentApiSelect, eX as ArtifactComponentApiSelectSchema, cF as ArtifactComponentApiUpdate, eZ as ArtifactComponentApiUpdateSchema, eV as ArtifactComponentInsertSchema, gR as ArtifactComponentListResponse, gB as ArtifactComponentResponse, eU as ArtifactComponentSelectSchema, eW as ArtifactComponentUpdateSchema, aO as AuthorizationCodeOAuthFlow, dg as CanDelegateToExternalAgent, df as CanUseItem, g8 as CanUseItemSchema, bq as CancelTaskRequest, bB as CancelTaskResponse, bA as CancelTaskSuccessResponse, aP as ClientCredentialsOAuthFlow, b8 as ContentTypeNotSupportedError, cs as ContextCacheApiInsert, eF as ContextCacheApiInsertSchema, cr as ContextCacheApiSelect, eE as ContextCacheApiSelectSchema, ct as ContextCacheApiUpdate, eG as ContextCacheApiUpdateSchema, dy as ContextCacheEntry, eC as ContextCacheInsertSchema, eB as ContextCacheSelectSchema, cq as ContextCacheUpdate, eD as ContextCacheUpdateSchema, cm as ContextConfigApiInsert, fI as ContextConfigApiInsertSchema, cl as ContextConfigApiSelect, fH as ContextConfigApiSelectSchema, cn as ContextConfigApiUpdate, fJ as ContextConfigApiUpdateSchema, fF as ContextConfigInsertSchema, gL as ContextConfigListResponse, gv as ContextConfigResponse, fE as ContextConfigSelectSchema, fG as ContextConfigUpdateSchema, cf as ConversationApiInsert, et as ConversationApiInsertSchema, ce as ConversationApiSelect, es as ConversationApiSelectSchema, cg as ConversationApiUpdate, eu as ConversationApiUpdateSchema, eq as ConversationInsertSchema, gU as ConversationListResponse, gE as ConversationResponse, dw as ConversationScopeOptions, ep as ConversationSelectSchema, er as ConversationUpdateSchema, fl as CredentialReferenceApiInsertSchema, cU as CredentialReferenceApiSelect, fk as CredentialReferenceApiSelectSchema, cV as CredentialReferenceApiUpdate, fm as CredentialReferenceApiUpdateSchema, fi as CredentialReferenceInsertSchema, gN as CredentialReferenceListResponse, gx as CredentialReferenceResponse, fh as CredentialReferenceSelectSchema, fj as CredentialReferenceUpdateSchema, cv as DataComponentApiInsert, eM as DataComponentApiInsertSchema, cu as DataComponentApiSelect, eL as DataComponentApiSelectSchema, cw as DataComponentApiUpdate, eN as DataComponentApiUpdateSchema, eJ as DataComponentBaseSchema, eI as DataComponentInsertSchema, gQ as DataComponentListResponse, gA as DataComponentResponse, eH as DataComponentSelectSchema, eK as DataComponentUpdateSchema, aF as DataPart, gg as ErrorResponseSchema, gh as ExistsResponseSchema, cN as ExternalAgentApiInsert, f8 as ExternalAgentApiInsertSchema, cM as ExternalAgentApiSelect, f7 as ExternalAgentApiSelectSchema, cO as ExternalAgentApiUpdate, f9 as ExternalAgentApiUpdateSchema, f5 as ExternalAgentInsertSchema, gK as ExternalAgentListResponse, gu as ExternalAgentResponse, f4 as ExternalAgentSelectSchema, f6 as ExternalAgentUpdateSchema, bT as ExternalSubAgentRelationApiInsert, e1 as ExternalSubAgentRelationApiInsertSchema, bS as ExternalSubAgentRelationInsert, e0 as ExternalSubAgentRelationInsertSchema, cp as FetchConfig, fC as FetchConfigSchema, co as FetchDefinition, fD as FetchDefinitionSchema, aB as FileBase, aE as FilePart, aC as FileWithBytes, aD as FileWithUri, de as FullAgentAgentInsert, a as FullAgentAgentInsertSchema, gp as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, cb as FunctionApiSelect, j as FunctionApiSelectSchema, cc as FunctionApiUpdate, k as FunctionApiUpdateSchema, c9 as FunctionInsert, fA as FunctionInsertSchema, gO as FunctionListResponse, gy as FunctionResponse, c8 as FunctionSelect, fz as FunctionSelectSchema, fx as FunctionToolApiInsertSchema, cd as FunctionToolApiSelect, fw as FunctionToolApiSelectSchema, fy as FunctionToolApiUpdateSchema, dO as FunctionToolConfig, dN as FunctionToolConfigSchema, fu as FunctionToolInsertSchema, gP as FunctionToolListResponse, gz as FunctionToolResponse, ft as FunctionToolSelectSchema, fv as FunctionToolUpdateSchema, ca as FunctionUpdate, fB as FunctionUpdateSchema, bs as GetTaskPushNotificationConfigRequest, bF as GetTaskPushNotificationConfigResponse, bE as GetTaskPushNotificationConfigSuccessResponse, bp as GetTaskRequest, bz as GetTaskResponse, by as GetTaskSuccessResponse, aM as HTTPAuthSecurityScheme, g_ as HeadersScopeSchema, aQ as ImplicitOAuthFlow, b3 as InternalError, b9 as InvalidAgentResponseError, b2 as InvalidParamsError, b0 as InvalidRequestError, a$ as JSONParseError, bk as JSONRPCError, bm as JSONRPCErrorResponse, bi as JSONRPCMessage, bj as JSONRPCRequest, bl as JSONRPCResult, dc as LedgerArtifactApiInsert, g4 as LedgerArtifactApiInsertSchema, db as LedgerArtifactApiSelect, g3 as LedgerArtifactApiSelectSchema, dd as LedgerArtifactApiUpdate, g5 as LedgerArtifactApiUpdateSchema, d9 as LedgerArtifactInsert, g1 as LedgerArtifactInsertSchema, g0 as LedgerArtifactSelectSchema, da as LedgerArtifactUpdate, g2 as LedgerArtifactUpdateSchema, ge as ListResponseSchema, dI as MAX_ID_LENGTH, dG as MCPServerType, fo as MCPToolConfigSchema, dH as MIN_ID_LENGTH, dz as McpAuthType, dA as McpServerAuth, dC as McpServerCapabilities, dD as McpToolDefinition, em as McpToolDefinitionSchema, fn as McpToolSchema, dB as McpTransportConfig, ek as McpTransportConfigSchema, aW as Message, cj as MessageApiInsert, ez as MessageApiInsertSchema, ci as MessageApiSelect, ey as MessageApiSelectSchema, ck as MessageApiUpdate, eA as MessageApiUpdateSchema, ew as MessageInsertSchema, gV as MessageListResponse, dr as MessageMode, bI as MessagePart, gF as MessageResponse, dq as MessageRole, ch as MessageSelect, ev as MessageSelectSchema, bg as MessageSendConfiguration, bh as MessageSendParams, dp as MessageType, ex as MessageUpdateSchema, b1 as MethodNotFoundError, dL as ModelSchema, g as ModelSettings, M as ModelSettingsSchema, ds as Models, aS as OAuth2SecurityScheme, aN as OAuthFlows, aT as OpenIdConnectSecurityScheme, dm as Pagination, h7 as PaginationQueryParamsSchema, gd as PaginationSchema, P as Part, az as PartBase, aR as PasswordOAuthFlow, dk as ProjectApiInsert, gn as ProjectApiInsertSchema, dj as ProjectApiSelect, gm as ProjectApiSelectSchema, dl as ProjectApiUpdate, go as ProjectApiUpdateSchema, gk as ProjectInsertSchema, gG as ProjectListResponse, dM as ProjectModelSchema, dt as ProjectModels, gq as ProjectResponse, gj as ProjectSelectSchema, gl as ProjectUpdateSchema, bb as PushNotificationAuthenticationInfo, bc as PushNotificationConfig, b6 as PushNotificationNotSupportedError, gi as RemovedResponseSchema, aU as SecurityScheme, aK as SecuritySchemeBase, bn as SendMessageRequest, bv as SendMessageResponse, bu as SendMessageSuccessResponse, bo as SendStreamingMessageRequest, bx as SendStreamingMessageResponse, bw as SendStreamingMessageSuccessResponse, br as SetTaskPushNotificationConfigRequest, bD as SetTaskPushNotificationConfigResponse, bC as SetTaskPushNotificationConfigSuccessResponse, gf as SingleResponseSchema, dv as StatusComponent, g6 as StatusComponentSchema, g7 as StatusUpdateSchema, du as StatusUpdateSettings, d as StopWhen, S as StopWhenSchema, bL as SubAgentApiInsert, dT as SubAgentApiInsertSchema, bK as SubAgentApiSelect, dS as SubAgentApiSelectSchema, bM as SubAgentApiUpdate, dU as SubAgentApiUpdateSchema, cK as SubAgentArtifactComponentApiInsert, f2 as SubAgentArtifactComponentApiInsertSchema, cJ as SubAgentArtifactComponentApiSelect, f1 as SubAgentArtifactComponentApiSelectSchema, cL as SubAgentArtifactComponentApiUpdate, f3 as SubAgentArtifactComponentApiUpdateSchema, cH as SubAgentArtifactComponentInsert, e$ as SubAgentArtifactComponentInsertSchema, gZ as SubAgentArtifactComponentListResponse, gX as SubAgentArtifactComponentResponse, cG as SubAgentArtifactComponentSelect, e_ as SubAgentArtifactComponentSelectSchema, cI as SubAgentArtifactComponentUpdate, f0 as SubAgentArtifactComponentUpdateSchema, cB as SubAgentDataComponentApiInsert, eS as SubAgentDataComponentApiInsertSchema, cA as SubAgentDataComponentApiSelect, eR as SubAgentDataComponentApiSelectSchema, cC as SubAgentDataComponentApiUpdate, eT as SubAgentDataComponentApiUpdateSchema, cy as SubAgentDataComponentInsert, eP as SubAgentDataComponentInsertSchema, gY as SubAgentDataComponentListResponse, gW as SubAgentDataComponentResponse, cx as SubAgentDataComponentSelect, eO as SubAgentDataComponentSelectSchema, cz as SubAgentDataComponentUpdate, eQ as SubAgentDataComponentUpdateSchema, dh as SubAgentDefinition, d2 as SubAgentExternalAgentRelationApiInsert, fU as SubAgentExternalAgentRelationApiInsertSchema, d1 as SubAgentExternalAgentRelationApiSelect, fT as SubAgentExternalAgentRelationApiSelectSchema, d3 as SubAgentExternalAgentRelationApiUpdate, fV as SubAgentExternalAgentRelationApiUpdateSchema, fR as SubAgentExternalAgentRelationInsertSchema, c$ as SubAgentExternalAgentRelationSelect, fQ as SubAgentExternalAgentRelationSelectSchema, d0 as SubAgentExternalAgentRelationUpdate, fS as SubAgentExternalAgentRelationUpdateSchema, dQ as SubAgentInsertSchema, gH as SubAgentListResponse, bP as SubAgentRelationApiInsert, dZ as SubAgentRelationApiInsertSchema, bO as SubAgentRelationApiSelect, dY as SubAgentRelationApiSelectSchema, bQ as SubAgentRelationApiUpdate, d_ as SubAgentRelationApiUpdateSchema, dW as SubAgentRelationInsertSchema, gS as SubAgentRelationListResponse, bR as SubAgentRelationQuery, d$ as SubAgentRelationQuerySchema, gC as SubAgentRelationResponse, bN as SubAgentRelationSelect, dV as SubAgentRelationSelectSchema, dX as SubAgentRelationUpdateSchema, gr as SubAgentResponse, dP as SubAgentSelectSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema, d7 as SubAgentTeamAgentRelationApiInsert, f_ as SubAgentTeamAgentRelationApiInsertSchema, d6 as SubAgentTeamAgentRelationApiSelect, fZ as SubAgentTeamAgentRelationApiSelectSchema, d8 as SubAgentTeamAgentRelationApiUpdate, f$ as SubAgentTeamAgentRelationApiUpdateSchema, fX as SubAgentTeamAgentRelationInsertSchema, d4 as SubAgentTeamAgentRelationSelect, fW as SubAgentTeamAgentRelationSelectSchema, d5 as SubAgentTeamAgentRelationUpdate, fY as SubAgentTeamAgentRelationUpdateSchema, cZ as SubAgentToolRelationApiInsert, fO as SubAgentToolRelationApiInsertSchema, cY as SubAgentToolRelationApiSelect, fN as SubAgentToolRelationApiSelectSchema, c_ as SubAgentToolRelationApiUpdate, fP as SubAgentToolRelationApiUpdateSchema, cX as SubAgentToolRelationInsert, fL as SubAgentToolRelationInsertSchema, gT as SubAgentToolRelationListResponse, gD as SubAgentToolRelationResponse, cW as SubAgentToolRelationSelect, fK as SubAgentToolRelationSelectSchema, fM as SubAgentToolRelationUpdateSchema, dR as SubAgentUpdateSchema, dn as SummaryEvent, dE as TOOL_STATUS_VALUES, aY as Task, bZ as TaskApiInsert, ec as TaskApiInsertSchema, bY as TaskApiSelect, eb as TaskApiSelectSchema, b_ as TaskApiUpdate, ed as TaskApiUpdateSchema, bJ as TaskArtifact, a_ as TaskArtifactUpdateEvent, be as TaskIdParams, e9 as TaskInsertSchema, b5 as TaskNotCancelableError, b4 as TaskNotFoundError, bd as TaskPushNotificationConfig, bf as TaskQueryParams, c3 as TaskRelationApiInsert, ei as TaskRelationApiInsertSchema, c2 as TaskRelationApiSelect, eh as TaskRelationApiSelectSchema, c4 as TaskRelationApiUpdate, ej as TaskRelationApiUpdateSchema, c0 as TaskRelationInsert, ef as TaskRelationInsertSchema, b$ as TaskRelationSelect, ee as TaskRelationSelectSchema, c1 as TaskRelationUpdate, eg as TaskRelationUpdateSchema, bt as TaskResubscriptionRequest, e8 as TaskSelectSchema, aG as TaskState, aX as TaskStatus, aZ as TaskStatusUpdateEvent, bX as TaskUpdate, ea as TaskUpdateSchema, gb as TeamAgentSchema, h0 as TenantIdParamsSchema, g$ as TenantParamsSchema, h4 as TenantProjectAgentIdParamsSchema, h3 as TenantProjectAgentParamsSchema, h6 as TenantProjectAgentSubAgentIdParamsSchema, h5 as TenantProjectAgentSubAgentParamsSchema, h2 as TenantProjectIdParamsSchema, h1 as TenantProjectParamsSchema, aA as TextPart, c6 as ToolApiInsert, fr as ToolApiInsertSchema, c5 as ToolApiSelect, fq as ToolApiSelectSchema, c7 as ToolApiUpdate, fs as ToolApiUpdateSchema, di as ToolDefinition, eo as ToolInsertSchema, gJ as ToolListResponse, gt as ToolResponse, en as ToolSelectSchema, el as ToolStatusSchema, fp as ToolUpdateSchema, dJ as URL_SAFE_ID_PATTERN, b7 as UnsupportedOperationError, dF as VALID_RELATION_TYPES, g9 as canDelegateToExternalAgentSchema, ga as canDelegateToTeamAgentSchema, dK as resourceIdSchema } from './utility-DhRaNM5g.js';
7
7
  import { CredentialStore } from './types/index.js';
8
8
  export { CorsConfig, ServerConfig, ServerOptions } from './types/index.js';
9
9
  import { LibSQLDatabase } from 'drizzle-orm/libsql';
10
- import { s as schema } from './schema-BQf2wGSE.js';
11
- export { G as agentRelations, J as agentToolRelationsRelations, a as agents, y as apiKeys, I as apiKeysRelations, j as artifactComponents, O as artifactComponentsRelations, b as contextCache, E as contextCacheRelations, c as contextConfigs, D as contextConfigsRelations, v as conversations, M as conversationsRelations, z as credentialReferences, K as credentialReferencesRelations, h as dataComponents, Q as dataComponentsRelations, f as externalAgents, H as externalAgentsRelations, m as functionTools, V as functionToolsRelations, n as functions, T as functionsRelations, x as ledgerArtifacts, S as ledgerArtifactsRelations, w as messages, N as messagesRelations, p as projects, B as projectsRelations, k as subAgentArtifactComponents, P as subAgentArtifactComponentsRelations, i as subAgentDataComponents, R as subAgentDataComponentsRelations, q as subAgentExternalAgentRelations, X as subAgentExternalAgentRelationsRelations, u as subAgentFunctionToolRelations, W as subAgentFunctionToolRelationsRelations, e as subAgentRelations, U as subAgentRelationsRelations, r as subAgentTeamAgentRelations, Y as subAgentTeamAgentRelationsRelations, o as subAgentToolRelations, d as subAgents, F as subAgentsRelations, g as taskRelations, C as taskRelationsRelations, t as tasks, A as tasksRelations, l as tools, L as toolsRelations } from './schema-BQf2wGSE.js';
10
+ import { s as schema } from './schema-B7LgU7Uc.js';
11
+ export { G as agentRelations, J as agentToolRelationsRelations, a as agents, y as apiKeys, I as apiKeysRelations, j as artifactComponents, O as artifactComponentsRelations, b as contextCache, E as contextCacheRelations, c as contextConfigs, D as contextConfigsRelations, v as conversations, M as conversationsRelations, z as credentialReferences, K as credentialReferencesRelations, h as dataComponents, Q as dataComponentsRelations, f as externalAgents, H as externalAgentsRelations, m as functionTools, V as functionToolsRelations, n as functions, T as functionsRelations, x as ledgerArtifacts, S as ledgerArtifactsRelations, w as messages, N as messagesRelations, p as projects, B as projectsRelations, k as subAgentArtifactComponents, P as subAgentArtifactComponentsRelations, i as subAgentDataComponents, R as subAgentDataComponentsRelations, q as subAgentExternalAgentRelations, X as subAgentExternalAgentRelationsRelations, u as subAgentFunctionToolRelations, W as subAgentFunctionToolRelationsRelations, e as subAgentRelations, U as subAgentRelationsRelations, r as subAgentTeamAgentRelations, Y as subAgentTeamAgentRelationsRelations, o as subAgentToolRelations, d as subAgents, F as subAgentsRelations, g as taskRelations, C as taskRelationsRelations, t as tasks, A as tasksRelations, l as tools, L as toolsRelations } from './schema-B7LgU7Uc.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';
@@ -790,14 +790,13 @@ declare const deleteFullAgent: (db: DatabaseClient, logger?: AgentLogger) => (pa
790
790
  declare const getAgentById: (db: DatabaseClient) => (params: {
791
791
  scopes: AgentScopeConfig;
792
792
  }) => Promise<{
793
- tenantId: string;
794
- projectId: string;
795
- id: string;
796
793
  name: string;
797
- description: string | null;
798
- prompt: string | null;
794
+ id: string;
799
795
  createdAt: string;
800
796
  updatedAt: string;
797
+ projectId: string;
798
+ tenantId: string;
799
+ description: string | null;
801
800
  models: {
802
801
  base?: {
803
802
  model?: string | undefined;
@@ -817,6 +816,7 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
817
816
  } | null;
818
817
  defaultSubAgentId: string | null;
819
818
  contextConfigId: string | null;
819
+ prompt: string | null;
820
820
  statusUpdates: {
821
821
  enabled?: boolean | undefined;
822
822
  numEvents?: number | undefined;
@@ -836,14 +836,13 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
836
836
  declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
837
837
  scopes: AgentScopeConfig;
838
838
  }) => Promise<{
839
- tenantId: string;
840
- projectId: string;
841
- id: string;
842
839
  name: string;
843
- description: string | null;
844
- prompt: string | null;
840
+ id: string;
845
841
  createdAt: string;
846
842
  updatedAt: string;
843
+ projectId: string;
844
+ tenantId: string;
845
+ description: string | null;
847
846
  models: {
848
847
  base?: {
849
848
  model?: string | undefined;
@@ -863,6 +862,7 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
863
862
  } | null;
864
863
  defaultSubAgentId: string | null;
865
864
  contextConfigId: string | null;
865
+ prompt: string | null;
866
866
  statusUpdates: {
867
867
  enabled?: boolean | undefined;
868
868
  numEvents?: number | undefined;
@@ -879,15 +879,13 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
879
879
  }[] | undefined;
880
880
  } | null;
881
881
  defaultSubAgent: {
882
- tenantId: string;
883
- projectId: string;
884
- id: string;
885
882
  name: string;
886
- description: string;
887
- prompt: string;
888
- agentId: string;
883
+ id: string;
889
884
  createdAt: string;
890
885
  updatedAt: string;
886
+ projectId: string;
887
+ tenantId: string;
888
+ description: string;
891
889
  models: {
892
890
  base?: {
893
891
  model?: string | undefined;
@@ -905,20 +903,21 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
905
903
  stopWhen: {
906
904
  stepCountIs?: number | undefined;
907
905
  } | null;
906
+ agentId: string;
907
+ prompt: string;
908
908
  conversationHistoryConfig: ConversationHistoryConfig | null;
909
909
  } | null;
910
910
  } | null>;
911
911
  declare const listAgents: (db: DatabaseClient) => (params: {
912
912
  scopes: ProjectScopeConfig;
913
913
  }) => Promise<{
914
- tenantId: string;
915
- projectId: string;
916
- id: string;
917
914
  name: string;
918
- description: string | null;
919
- prompt: string | null;
915
+ id: string;
920
916
  createdAt: string;
921
917
  updatedAt: string;
918
+ projectId: string;
919
+ tenantId: string;
920
+ description: string | null;
922
921
  models: {
923
922
  base?: {
924
923
  model?: string | undefined;
@@ -938,6 +937,7 @@ declare const listAgents: (db: DatabaseClient) => (params: {
938
937
  } | null;
939
938
  defaultSubAgentId: string | null;
940
939
  contextConfigId: string | null;
940
+ prompt: string | null;
941
941
  statusUpdates: {
942
942
  enabled?: boolean | undefined;
943
943
  numEvents?: number | undefined;
@@ -1010,14 +1010,13 @@ declare const listAgentsPaginated: (db: DatabaseClient) => (params: {
1010
1010
  };
1011
1011
  }>;
1012
1012
  declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promise<{
1013
- tenantId: string;
1014
- projectId: string;
1015
- id: string;
1016
1013
  name: string;
1017
- description: string | null;
1018
- prompt: string | null;
1014
+ id: string;
1019
1015
  createdAt: string;
1020
1016
  updatedAt: string;
1017
+ projectId: string;
1018
+ tenantId: string;
1019
+ description: string | null;
1021
1020
  models: {
1022
1021
  base?: {
1023
1022
  model?: string | undefined;
@@ -1037,6 +1036,7 @@ declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promis
1037
1036
  } | null;
1038
1037
  defaultSubAgentId: string | null;
1039
1038
  contextConfigId: string | null;
1039
+ prompt: string | null;
1040
1040
  statusUpdates: {
1041
1041
  enabled?: boolean | undefined;
1042
1042
  numEvents?: number | undefined;
@@ -1057,14 +1057,13 @@ declare const updateAgent: (db: DatabaseClient) => (params: {
1057
1057
  scopes: AgentScopeConfig;
1058
1058
  data: AgentUpdate;
1059
1059
  }) => Promise<{
1060
- tenantId: string;
1061
- projectId: string;
1062
- id: string;
1063
1060
  name: string;
1064
- description: string | null;
1065
- prompt: string | null;
1061
+ id: string;
1066
1062
  createdAt: string;
1067
1063
  updatedAt: string;
1064
+ projectId: string;
1065
+ tenantId: string;
1066
+ description: string | null;
1068
1067
  models: {
1069
1068
  base?: {
1070
1069
  model?: string | undefined;
@@ -1084,6 +1083,7 @@ declare const updateAgent: (db: DatabaseClient) => (params: {
1084
1083
  } | null;
1085
1084
  defaultSubAgentId: string | null;
1086
1085
  contextConfigId: string | null;
1086
+ prompt: string | null;
1087
1087
  statusUpdates: {
1088
1088
  enabled?: boolean | undefined;
1089
1089
  numEvents?: number | undefined;
@@ -1137,49 +1137,49 @@ declare const getApiKeyById: (db: DatabaseClient) => (params: {
1137
1137
  scopes: ProjectScopeConfig;
1138
1138
  id: string;
1139
1139
  }) => Promise<{
1140
- tenantId: string;
1141
- projectId: string;
1142
- id: string;
1143
1140
  name: string | null;
1141
+ id: string;
1142
+ createdAt: string;
1143
+ updatedAt: string;
1144
+ projectId: string;
1145
+ tenantId: string;
1144
1146
  agentId: string;
1147
+ expiresAt: string | null;
1145
1148
  publicId: string;
1146
1149
  keyHash: string;
1147
1150
  keyPrefix: string;
1148
1151
  lastUsedAt: string | null;
1149
- expiresAt: string | null;
1150
- createdAt: string;
1151
- updatedAt: string;
1152
1152
  } | undefined>;
1153
1153
  declare const getApiKeyByPublicId: (db: DatabaseClient) => (publicId: string) => Promise<{
1154
- tenantId: string;
1155
- projectId: string;
1156
- id: string;
1157
1154
  name: string | null;
1155
+ id: string;
1156
+ createdAt: string;
1157
+ updatedAt: string;
1158
+ projectId: string;
1159
+ tenantId: string;
1158
1160
  agentId: string;
1161
+ expiresAt: string | null;
1159
1162
  publicId: string;
1160
1163
  keyHash: string;
1161
1164
  keyPrefix: string;
1162
1165
  lastUsedAt: string | null;
1163
- expiresAt: string | null;
1164
- createdAt: string;
1165
- updatedAt: string;
1166
1166
  } | undefined>;
1167
1167
  declare const listApiKeys: (db: DatabaseClient) => (params: {
1168
1168
  scopes: ProjectScopeConfig;
1169
1169
  agentId?: string;
1170
1170
  }) => Promise<{
1171
- tenantId: string;
1172
- projectId: string;
1173
- id: string;
1174
1171
  name: string | null;
1172
+ id: string;
1173
+ createdAt: string;
1174
+ updatedAt: string;
1175
+ projectId: string;
1176
+ tenantId: string;
1175
1177
  agentId: string;
1178
+ expiresAt: string | null;
1176
1179
  publicId: string;
1177
1180
  keyHash: string;
1178
1181
  keyPrefix: string;
1179
1182
  lastUsedAt: string | null;
1180
- expiresAt: string | null;
1181
- createdAt: string;
1182
- updatedAt: string;
1183
1183
  }[]>;
1184
1184
  declare const listApiKeysPaginated: (db: DatabaseClient) => (params: {
1185
1185
  scopes: ProjectScopeConfig;
@@ -1195,36 +1195,36 @@ declare const listApiKeysPaginated: (db: DatabaseClient) => (params: {
1195
1195
  };
1196
1196
  }>;
1197
1197
  declare const createApiKey: (db: DatabaseClient) => (params: ApiKeyInsert) => Promise<{
1198
- tenantId: string;
1199
- projectId: string;
1200
- id: string;
1201
1198
  name: string | null;
1199
+ id: string;
1200
+ createdAt: string;
1201
+ updatedAt: string;
1202
+ projectId: string;
1203
+ tenantId: string;
1202
1204
  agentId: string;
1205
+ expiresAt: string | null;
1203
1206
  publicId: string;
1204
1207
  keyHash: string;
1205
1208
  keyPrefix: string;
1206
1209
  lastUsedAt: string | null;
1207
- expiresAt: string | null;
1208
- createdAt: string;
1209
- updatedAt: string;
1210
1210
  }>;
1211
1211
  declare const updateApiKey: (db: DatabaseClient) => (params: {
1212
1212
  scopes: ProjectScopeConfig;
1213
1213
  id: string;
1214
1214
  data: ApiKeyUpdate;
1215
1215
  }) => Promise<{
1216
- tenantId: string;
1217
- projectId: string;
1218
- id: string;
1219
1216
  name: string | null;
1217
+ id: string;
1218
+ createdAt: string;
1219
+ updatedAt: string;
1220
+ projectId: string;
1221
+ tenantId: string;
1220
1222
  agentId: string;
1223
+ expiresAt: string | null;
1221
1224
  publicId: string;
1222
1225
  keyHash: string;
1223
1226
  keyPrefix: string;
1224
1227
  lastUsedAt: string | null;
1225
- expiresAt: string | null;
1226
- createdAt: string;
1227
- updatedAt: string;
1228
1228
  }>;
1229
1229
  declare const deleteApiKey: (db: DatabaseClient) => (params: {
1230
1230
  scopes: ProjectScopeConfig;
@@ -1253,13 +1253,13 @@ declare const getArtifactComponentById: (db: DatabaseClient) => (params: {
1253
1253
  scopes: ProjectScopeConfig;
1254
1254
  id: string;
1255
1255
  }) => Promise<{
1256
- tenantId: string;
1257
- projectId: string;
1258
- id: string;
1259
1256
  name: string;
1260
- description: string;
1257
+ id: string;
1261
1258
  createdAt: string;
1262
1259
  updatedAt: string;
1260
+ projectId: string;
1261
+ tenantId: string;
1262
+ description: string;
1263
1263
  props: Record<string, unknown> | null;
1264
1264
  } | undefined>;
1265
1265
  declare const listArtifactComponents: (db: DatabaseClient) => (params: {
@@ -1287,13 +1287,13 @@ declare const listArtifactComponentsPaginated: (db: DatabaseClient) => (params:
1287
1287
  };
1288
1288
  }>;
1289
1289
  declare const createArtifactComponent: (db: DatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
1290
- tenantId: string;
1291
- projectId: string;
1292
- id: string;
1293
1290
  name: string;
1294
- description: string;
1291
+ id: string;
1295
1292
  createdAt: string;
1296
1293
  updatedAt: string;
1294
+ projectId: string;
1295
+ tenantId: string;
1296
+ description: string;
1297
1297
  props: Record<string, unknown> | null;
1298
1298
  }>;
1299
1299
  declare const updateArtifactComponent: (db: DatabaseClient) => (params: {
@@ -1301,13 +1301,13 @@ declare const updateArtifactComponent: (db: DatabaseClient) => (params: {
1301
1301
  id: string;
1302
1302
  data: ArtifactComponentUpdate;
1303
1303
  }) => Promise<{
1304
- tenantId: string;
1305
- projectId: string;
1306
- id: string;
1307
1304
  name: string;
1308
- description: string;
1305
+ id: string;
1309
1306
  createdAt: string;
1310
1307
  updatedAt: string;
1308
+ projectId: string;
1309
+ tenantId: string;
1310
+ description: string;
1311
1311
  props: Record<string, unknown> | null;
1312
1312
  }>;
1313
1313
  declare const deleteArtifactComponent: (db: DatabaseClient) => (params: {
@@ -1330,11 +1330,11 @@ declare const associateArtifactComponentWithAgent: (db: DatabaseClient) => (para
1330
1330
  scopes: SubAgentScopeConfig;
1331
1331
  artifactComponentId: string;
1332
1332
  }) => Promise<{
1333
- tenantId: string;
1334
- projectId: string;
1335
1333
  id: string;
1336
- agentId: string;
1337
1334
  createdAt: string;
1335
+ projectId: string;
1336
+ tenantId: string;
1337
+ agentId: string;
1338
1338
  subAgentId: string;
1339
1339
  artifactComponentId: string;
1340
1340
  }>;
@@ -1373,11 +1373,11 @@ declare const upsertAgentArtifactComponentRelation: (db: DatabaseClient) => (par
1373
1373
  scopes: SubAgentScopeConfig;
1374
1374
  artifactComponentId: string;
1375
1375
  }) => Promise<{
1376
- tenantId: string;
1377
- projectId: string;
1378
1376
  id: string;
1379
- agentId: string;
1380
1377
  createdAt: string;
1378
+ projectId: string;
1379
+ tenantId: string;
1380
+ agentId: string;
1381
1381
  subAgentId: string;
1382
1382
  artifactComponentId: string;
1383
1383
  } | null>;
@@ -1457,26 +1457,26 @@ declare const getContextConfigById: (db: DatabaseClient) => (params: {
1457
1457
  scopes: AgentScopeConfig;
1458
1458
  id: string;
1459
1459
  }) => Promise<{
1460
- tenantId: string;
1461
- projectId: string;
1462
1460
  id: string;
1463
- agentId: string;
1464
1461
  createdAt: string;
1465
1462
  updatedAt: string;
1463
+ projectId: string;
1464
+ tenantId: string;
1466
1465
  headersSchema: unknown;
1467
1466
  contextVariables: Record<string, ContextFetchDefinition> | null;
1467
+ agentId: string;
1468
1468
  } | undefined>;
1469
1469
  declare const listContextConfigs: (db: DatabaseClient) => (params: {
1470
1470
  scopes: AgentScopeConfig;
1471
1471
  }) => Promise<{
1472
- tenantId: string;
1473
- projectId: string;
1474
1472
  id: string;
1475
- agentId: string;
1476
1473
  createdAt: string;
1477
1474
  updatedAt: string;
1475
+ projectId: string;
1476
+ tenantId: string;
1478
1477
  headersSchema: unknown;
1479
1478
  contextVariables: Record<string, ContextFetchDefinition> | null;
1479
+ agentId: string;
1480
1480
  }[]>;
1481
1481
  declare const listContextConfigsPaginated: (db: DatabaseClient) => (params: {
1482
1482
  scopes: AgentScopeConfig;
@@ -1491,28 +1491,28 @@ declare const listContextConfigsPaginated: (db: DatabaseClient) => (params: {
1491
1491
  };
1492
1492
  }>;
1493
1493
  declare const createContextConfig: (db: DatabaseClient) => (params: ContextConfigInsert) => Promise<{
1494
- tenantId: string;
1495
- projectId: string;
1496
1494
  id: string;
1497
- agentId: string;
1498
1495
  createdAt: string;
1499
1496
  updatedAt: string;
1497
+ projectId: string;
1498
+ tenantId: string;
1500
1499
  headersSchema: unknown;
1501
1500
  contextVariables: Record<string, ContextFetchDefinition> | null;
1501
+ agentId: string;
1502
1502
  }>;
1503
1503
  declare const updateContextConfig: (db: DatabaseClient) => (params: {
1504
1504
  scopes: AgentScopeConfig;
1505
1505
  id: string;
1506
1506
  data: Partial<ContextConfigUpdate>;
1507
1507
  }) => Promise<{
1508
- tenantId: string;
1509
- projectId: string;
1510
1508
  id: string;
1511
- agentId: string;
1512
1509
  createdAt: string;
1513
1510
  updatedAt: string;
1511
+ projectId: string;
1512
+ tenantId: string;
1514
1513
  headersSchema: unknown;
1515
1514
  contextVariables: Record<string, ContextFetchDefinition> | null;
1515
+ agentId: string;
1516
1516
  }>;
1517
1517
  declare const deleteContextConfig: (db: DatabaseClient) => (params: {
1518
1518
  scopes: AgentScopeConfig;
@@ -1531,14 +1531,14 @@ declare const countContextConfigs: (db: DatabaseClient) => (params: {
1531
1531
  declare const upsertContextConfig: (db: DatabaseClient) => (params: {
1532
1532
  data: ContextConfigInsert;
1533
1533
  }) => Promise<{
1534
- tenantId: string;
1535
- projectId: string;
1536
1534
  id: string;
1537
- agentId: string;
1538
1535
  createdAt: string;
1539
1536
  updatedAt: string;
1537
+ projectId: string;
1538
+ tenantId: string;
1540
1539
  headersSchema: unknown;
1541
1540
  contextVariables: Record<string, ContextFetchDefinition> | null;
1541
+ agentId: string;
1542
1542
  }>;
1543
1543
 
1544
1544
  declare const listConversations: (db: DatabaseClient) => (params: {
@@ -1550,12 +1550,12 @@ declare const listConversations: (db: DatabaseClient) => (params: {
1550
1550
  total: number;
1551
1551
  }>;
1552
1552
  declare const createConversation: (db: DatabaseClient) => (params: ConversationInsert) => Promise<{
1553
- tenantId: string;
1554
- projectId: string;
1555
1553
  id: string;
1556
- title: string | null;
1557
1554
  createdAt: string;
1558
1555
  updatedAt: string;
1556
+ projectId: string;
1557
+ tenantId: string;
1558
+ title: string | null;
1559
1559
  metadata: ConversationMetadata | null;
1560
1560
  userId: string | null;
1561
1561
  activeSubAgentId: string;
@@ -1566,12 +1566,12 @@ declare const updateConversation: (db: DatabaseClient) => (params: {
1566
1566
  conversationId: string;
1567
1567
  data: ConversationUpdate;
1568
1568
  }) => Promise<{
1569
- tenantId: string;
1570
- projectId: string;
1571
1569
  id: string;
1572
- title: string | null;
1573
1570
  createdAt: string;
1574
1571
  updatedAt: string;
1572
+ projectId: string;
1573
+ tenantId: string;
1574
+ title: string | null;
1575
1575
  metadata: ConversationMetadata | null;
1576
1576
  userId: string | null;
1577
1577
  activeSubAgentId: string;
@@ -1586,12 +1586,12 @@ declare const updateConversationActiveAgent: (db: DatabaseClient) => (params: {
1586
1586
  conversationId: string;
1587
1587
  activeSubAgentId: string;
1588
1588
  }) => Promise<{
1589
- tenantId: string;
1590
- projectId: string;
1591
1589
  id: string;
1592
- title: string | null;
1593
1590
  createdAt: string;
1594
1591
  updatedAt: string;
1592
+ projectId: string;
1593
+ tenantId: string;
1594
+ title: string | null;
1595
1595
  metadata: ConversationMetadata | null;
1596
1596
  userId: string | null;
1597
1597
  activeSubAgentId: string;
@@ -1601,12 +1601,12 @@ declare const getConversation: (db: DatabaseClient) => (params: {
1601
1601
  scopes: ProjectScopeConfig;
1602
1602
  conversationId: string;
1603
1603
  }) => Promise<{
1604
- tenantId: string;
1605
- projectId: string;
1606
1604
  id: string;
1607
- title: string | null;
1608
1605
  createdAt: string;
1609
1606
  updatedAt: string;
1607
+ projectId: string;
1608
+ tenantId: string;
1609
+ title: string | null;
1610
1610
  metadata: ConversationMetadata | null;
1611
1611
  userId: string | null;
1612
1612
  activeSubAgentId: string;
@@ -1625,12 +1625,12 @@ declare const createOrGetConversation: (db: DatabaseClient) => (input: Conversat
1625
1625
  metadata?: ConversationMetadata | null | undefined;
1626
1626
  contextConfigId?: string | undefined;
1627
1627
  } | {
1628
- tenantId: string;
1629
- projectId: string;
1630
1628
  id: string;
1631
- title: string | null;
1632
1629
  createdAt: string;
1633
1630
  updatedAt: string;
1631
+ projectId: string;
1632
+ tenantId: string;
1633
+ title: string | null;
1634
1634
  metadata: ConversationMetadata | null;
1635
1635
  userId: string | null;
1636
1636
  activeSubAgentId: string;
@@ -1651,12 +1651,12 @@ declare const getActiveAgentForConversation: (db: DatabaseClient) => (params: {
1651
1651
  scopes: ProjectScopeConfig;
1652
1652
  conversationId: string;
1653
1653
  }) => Promise<{
1654
- tenantId: string;
1655
- projectId: string;
1656
1654
  id: string;
1657
- title: string | null;
1658
1655
  createdAt: string;
1659
1656
  updatedAt: string;
1657
+ projectId: string;
1658
+ tenantId: string;
1659
+ title: string | null;
1660
1660
  metadata: ConversationMetadata | null;
1661
1661
  userId: string | null;
1662
1662
  activeSubAgentId: string;
@@ -1821,11 +1821,11 @@ declare const associateDataComponentWithAgent: (db: DatabaseClient) => (params:
1821
1821
  scopes: SubAgentScopeConfig;
1822
1822
  dataComponentId: string;
1823
1823
  }) => Promise<{
1824
- tenantId: string;
1825
- projectId: string;
1826
1824
  id: string;
1827
- agentId: string;
1828
1825
  createdAt: string;
1826
+ projectId: string;
1827
+ tenantId: string;
1828
+ agentId: string;
1829
1829
  subAgentId: string;
1830
1830
  dataComponentId: string;
1831
1831
  }>;
@@ -1863,11 +1863,11 @@ declare const upsertAgentDataComponentRelation: (db: DatabaseClient) => (params:
1863
1863
  scopes: SubAgentScopeConfig;
1864
1864
  dataComponentId: string;
1865
1865
  }) => Promise<{
1866
- tenantId: string;
1867
- projectId: string;
1868
1866
  id: string;
1869
- agentId: string;
1870
1867
  createdAt: string;
1868
+ projectId: string;
1869
+ tenantId: string;
1870
+ agentId: string;
1871
1871
  subAgentId: string;
1872
1872
  dataComponentId: string;
1873
1873
  } | null>;
@@ -2042,14 +2042,14 @@ declare const createFunctionTool: (db: DatabaseClient) => (params: {
2042
2042
  data: FunctionToolApiInsert;
2043
2043
  scopes: AgentScopeConfig;
2044
2044
  }) => Promise<{
2045
- tenantId: string;
2046
- projectId: string;
2047
- id: string;
2048
2045
  name: string;
2049
- description: string | null;
2050
- agentId: string;
2046
+ id: string;
2051
2047
  createdAt: string;
2052
2048
  updatedAt: string;
2049
+ projectId: string;
2050
+ tenantId: string;
2051
+ description: string | null;
2052
+ agentId: string;
2053
2053
  functionId: string;
2054
2054
  }>;
2055
2055
  /**
@@ -2060,14 +2060,14 @@ declare const updateFunctionTool: (db: DatabaseClient) => (params: {
2060
2060
  functionToolId: string;
2061
2061
  data: FunctionToolApiUpdate;
2062
2062
  }) => Promise<{
2063
- tenantId: string;
2064
- projectId: string;
2065
- id: string;
2066
2063
  name: string;
2067
- description: string | null;
2068
- agentId: string;
2064
+ id: string;
2069
2065
  createdAt: string;
2070
2066
  updatedAt: string;
2067
+ projectId: string;
2068
+ tenantId: string;
2069
+ description: string | null;
2070
+ agentId: string;
2071
2071
  functionId: string;
2072
2072
  }>;
2073
2073
  /**
@@ -2084,14 +2084,14 @@ declare const upsertFunctionTool: (db: DatabaseClient) => (params: {
2084
2084
  data: FunctionToolApiInsert;
2085
2085
  scopes: AgentScopeConfig;
2086
2086
  }) => Promise<{
2087
- tenantId: string;
2088
- projectId: string;
2089
- id: string;
2090
2087
  name: string;
2091
- description: string | null;
2092
- agentId: string;
2088
+ id: string;
2093
2089
  createdAt: string;
2094
2090
  updatedAt: string;
2091
+ projectId: string;
2092
+ tenantId: string;
2093
+ description: string | null;
2094
+ agentId: string;
2095
2095
  functionId: string;
2096
2096
  }>;
2097
2097
  declare const getFunctionToolsForSubAgent: (db: DatabaseClient) => (params: {
@@ -2221,11 +2221,11 @@ declare const getMessageById: (db: DatabaseClient) => (params: {
2221
2221
  scopes: ProjectScopeConfig;
2222
2222
  messageId: string;
2223
2223
  }) => Promise<{
2224
- tenantId: string;
2225
- projectId: string;
2226
2224
  id: string;
2227
2225
  createdAt: string;
2228
2226
  updatedAt: string;
2227
+ projectId: string;
2228
+ tenantId: string;
2229
2229
  metadata: MessageMetadata | null;
2230
2230
  content: MessageContent;
2231
2231
  conversationId: string;
@@ -2352,11 +2352,11 @@ declare const getVisibleMessages: (db: DatabaseClient) => (params: {
2352
2352
  id: string;
2353
2353
  }[]>;
2354
2354
  declare const createMessage: (db: DatabaseClient) => (params: MessageInsert) => Promise<{
2355
- tenantId: string;
2356
- projectId: string;
2357
2355
  id: string;
2358
2356
  createdAt: string;
2359
2357
  updatedAt: string;
2358
+ projectId: string;
2359
+ tenantId: string;
2360
2360
  metadata: MessageMetadata | null;
2361
2361
  content: MessageContent;
2362
2362
  conversationId: string;
@@ -2379,11 +2379,11 @@ declare const updateMessage: (db: DatabaseClient) => (params: {
2379
2379
  messageId: string;
2380
2380
  data: MessageUpdate;
2381
2381
  }) => Promise<{
2382
- tenantId: string;
2383
- projectId: string;
2384
2382
  id: string;
2385
2383
  createdAt: string;
2386
2384
  updatedAt: string;
2385
+ projectId: string;
2386
+ tenantId: string;
2387
2387
  metadata: MessageMetadata | null;
2388
2388
  content: MessageContent;
2389
2389
  conversationId: string;
@@ -2405,11 +2405,11 @@ declare const deleteMessage: (db: DatabaseClient) => (params: {
2405
2405
  scopes: ProjectScopeConfig;
2406
2406
  messageId: string;
2407
2407
  }) => Promise<{
2408
- tenantId: string;
2409
- projectId: string;
2410
2408
  id: string;
2411
2409
  createdAt: string;
2412
2410
  updatedAt: string;
2411
+ projectId: string;
2412
+ tenantId: string;
2413
2413
  metadata: MessageMetadata | null;
2414
2414
  content: MessageContent;
2415
2415
  conversationId: string;
@@ -2530,15 +2530,15 @@ declare const getSubAgentExternalAgentRelationById: (db: DatabaseClient) => (par
2530
2530
  scopes: SubAgentScopeConfig;
2531
2531
  relationId: string;
2532
2532
  }) => Promise<{
2533
- tenantId: string;
2534
- projectId: string;
2533
+ headers: Record<string, string> | null;
2535
2534
  id: string;
2536
- agentId: string;
2537
2535
  createdAt: string;
2538
2536
  updatedAt: string;
2539
- headers: Record<string, string> | null;
2540
- externalAgentId: string;
2537
+ projectId: string;
2538
+ tenantId: string;
2539
+ agentId: string;
2541
2540
  subAgentId: string;
2541
+ externalAgentId: string;
2542
2542
  } | undefined>;
2543
2543
  declare const listSubAgentExternalAgentRelations: (db: DatabaseClient) => (params: {
2544
2544
  scopes: SubAgentScopeConfig;
@@ -2565,28 +2565,28 @@ declare const listSubAgentExternalAgentRelations: (db: DatabaseClient) => (param
2565
2565
  declare const getSubAgentExternalAgentRelations: (db: DatabaseClient) => (params: {
2566
2566
  scopes: SubAgentScopeConfig;
2567
2567
  }) => Promise<{
2568
- tenantId: string;
2569
- projectId: string;
2568
+ headers: Record<string, string> | null;
2570
2569
  id: string;
2571
- agentId: string;
2572
2570
  createdAt: string;
2573
2571
  updatedAt: string;
2574
- headers: Record<string, string> | null;
2575
- externalAgentId: string;
2572
+ projectId: string;
2573
+ tenantId: string;
2574
+ agentId: string;
2576
2575
  subAgentId: string;
2576
+ externalAgentId: string;
2577
2577
  }[]>;
2578
2578
  declare const getSubAgentExternalAgentRelationsByAgent: (db: DatabaseClient) => (params: {
2579
2579
  scopes: AgentScopeConfig;
2580
2580
  }) => Promise<{
2581
- tenantId: string;
2582
- projectId: string;
2581
+ headers: Record<string, string> | null;
2583
2582
  id: string;
2584
- agentId: string;
2585
2583
  createdAt: string;
2586
2584
  updatedAt: string;
2587
- headers: Record<string, string> | null;
2588
- externalAgentId: string;
2585
+ projectId: string;
2586
+ tenantId: string;
2587
+ agentId: string;
2589
2588
  subAgentId: string;
2589
+ externalAgentId: string;
2590
2590
  }[]>;
2591
2591
  declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: DatabaseClient) => (params: {
2592
2592
  scopes: AgentScopeConfig;
@@ -2701,15 +2701,15 @@ declare const createSubAgentExternalAgentRelation: (db: DatabaseClient) => (para
2701
2701
  headers?: Record<string, string> | null;
2702
2702
  };
2703
2703
  }) => Promise<{
2704
- tenantId: string;
2705
- projectId: string;
2704
+ headers: Record<string, string> | null;
2706
2705
  id: string;
2707
- agentId: string;
2708
2706
  createdAt: string;
2709
2707
  updatedAt: string;
2710
- headers: Record<string, string> | null;
2711
- externalAgentId: string;
2708
+ projectId: string;
2709
+ tenantId: string;
2710
+ agentId: string;
2712
2711
  subAgentId: string;
2712
+ externalAgentId: string;
2713
2713
  }>;
2714
2714
  /**
2715
2715
  * Check if sub-agent external agent relation exists by params
@@ -2718,15 +2718,15 @@ declare const getSubAgentExternalAgentRelationByParams: (db: DatabaseClient) =>
2718
2718
  scopes: SubAgentScopeConfig;
2719
2719
  externalAgentId: string;
2720
2720
  }) => Promise<{
2721
- tenantId: string;
2722
- projectId: string;
2721
+ headers: Record<string, string> | null;
2723
2722
  id: string;
2724
- agentId: string;
2725
2723
  createdAt: string;
2726
2724
  updatedAt: string;
2727
- headers: Record<string, string> | null;
2728
- externalAgentId: string;
2725
+ projectId: string;
2726
+ tenantId: string;
2727
+ agentId: string;
2729
2728
  subAgentId: string;
2729
+ externalAgentId: string;
2730
2730
  } | undefined>;
2731
2731
  /**
2732
2732
  * Upsert sub-agent external agent relation (create if it doesn't exist, update if it does)
@@ -2739,30 +2739,30 @@ declare const upsertSubAgentExternalAgentRelation: (db: DatabaseClient) => (para
2739
2739
  headers?: Record<string, string> | null;
2740
2740
  };
2741
2741
  }) => Promise<{
2742
- tenantId: string;
2743
- projectId: string;
2742
+ headers: Record<string, string> | null;
2744
2743
  id: string;
2745
- agentId: string;
2746
2744
  createdAt: string;
2747
2745
  updatedAt: string;
2748
- headers: Record<string, string> | null;
2749
- externalAgentId: string;
2746
+ projectId: string;
2747
+ tenantId: string;
2748
+ agentId: string;
2750
2749
  subAgentId: string;
2750
+ externalAgentId: string;
2751
2751
  }>;
2752
2752
  declare const updateSubAgentExternalAgentRelation: (db: DatabaseClient) => (params: {
2753
2753
  scopes: SubAgentScopeConfig;
2754
2754
  relationId: string;
2755
2755
  data: Partial<SubAgentExternalAgentRelationInsert>;
2756
2756
  }) => Promise<{
2757
- tenantId: string;
2758
- projectId: string;
2757
+ headers: Record<string, string> | null;
2759
2758
  id: string;
2760
- agentId: string;
2761
2759
  createdAt: string;
2762
2760
  updatedAt: string;
2763
- headers: Record<string, string> | null;
2764
- externalAgentId: string;
2761
+ projectId: string;
2762
+ tenantId: string;
2763
+ agentId: string;
2765
2764
  subAgentId: string;
2765
+ externalAgentId: string;
2766
2766
  }>;
2767
2767
  declare const deleteSubAgentExternalAgentRelation: (db: DatabaseClient) => (params: {
2768
2768
  scopes: SubAgentScopeConfig;
@@ -2779,12 +2779,12 @@ declare const getAgentRelationById: (db: DatabaseClient) => (params: {
2779
2779
  scopes: AgentScopeConfig;
2780
2780
  relationId: string;
2781
2781
  }) => Promise<{
2782
- tenantId: string;
2783
- projectId: string;
2784
2782
  id: string;
2785
- agentId: string;
2786
2783
  createdAt: string;
2787
2784
  updatedAt: string;
2785
+ projectId: string;
2786
+ tenantId: string;
2787
+ agentId: string;
2788
2788
  sourceSubAgentId: string;
2789
2789
  targetSubAgentId: string | null;
2790
2790
  relationType: string | null;
@@ -2814,12 +2814,12 @@ declare const listAgentRelations: (db: DatabaseClient) => (params: {
2814
2814
  declare const getAgentRelations: (db: DatabaseClient) => (params: {
2815
2815
  scopes: SubAgentScopeConfig;
2816
2816
  }) => Promise<{
2817
- tenantId: string;
2818
- projectId: string;
2819
2817
  id: string;
2820
- agentId: string;
2821
2818
  createdAt: string;
2822
2819
  updatedAt: string;
2820
+ projectId: string;
2821
+ tenantId: string;
2822
+ agentId: string;
2823
2823
  sourceSubAgentId: string;
2824
2824
  targetSubAgentId: string | null;
2825
2825
  relationType: string | null;
@@ -2827,12 +2827,12 @@ declare const getAgentRelations: (db: DatabaseClient) => (params: {
2827
2827
  declare const getAgentRelationsByAgent: (db: DatabaseClient) => (params: {
2828
2828
  scopes: AgentScopeConfig;
2829
2829
  }) => Promise<{
2830
- tenantId: string;
2831
- projectId: string;
2832
2830
  id: string;
2833
- agentId: string;
2834
2831
  createdAt: string;
2835
2832
  updatedAt: string;
2833
+ projectId: string;
2834
+ tenantId: string;
2835
+ agentId: string;
2836
2836
  sourceSubAgentId: string;
2837
2837
  targetSubAgentId: string | null;
2838
2838
  relationType: string | null;
@@ -2895,12 +2895,12 @@ declare const getRelatedAgentsForAgent: (db: DatabaseClient) => (params: {
2895
2895
  }[];
2896
2896
  }>;
2897
2897
  declare const createSubAgentRelation: (db: DatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
2898
- tenantId: string;
2899
- projectId: string;
2900
2898
  id: string;
2901
- agentId: string;
2902
2899
  createdAt: string;
2903
2900
  updatedAt: string;
2901
+ projectId: string;
2902
+ tenantId: string;
2903
+ agentId: string;
2904
2904
  sourceSubAgentId: string;
2905
2905
  targetSubAgentId: string | null;
2906
2906
  relationType: string | null;
@@ -2914,12 +2914,12 @@ declare const getAgentRelationByParams: (db: DatabaseClient) => (params: {
2914
2914
  targetSubAgentId?: string;
2915
2915
  relationType: string;
2916
2916
  }) => Promise<{
2917
- tenantId: string;
2918
- projectId: string;
2919
2917
  id: string;
2920
- agentId: string;
2921
2918
  createdAt: string;
2922
2919
  updatedAt: string;
2920
+ projectId: string;
2921
+ tenantId: string;
2922
+ agentId: string;
2923
2923
  sourceSubAgentId: string;
2924
2924
  targetSubAgentId: string | null;
2925
2925
  relationType: string | null;
@@ -2928,12 +2928,12 @@ declare const getAgentRelationByParams: (db: DatabaseClient) => (params: {
2928
2928
  * Upsert agent relation (create if it doesn't exist, no-op if it does)
2929
2929
  */
2930
2930
  declare const upsertSubAgentRelation: (db: DatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
2931
- tenantId: string;
2932
- projectId: string;
2933
2931
  id: string;
2934
- agentId: string;
2935
2932
  createdAt: string;
2936
2933
  updatedAt: string;
2934
+ projectId: string;
2935
+ tenantId: string;
2936
+ agentId: string;
2937
2937
  sourceSubAgentId: string;
2938
2938
  targetSubAgentId: string | null;
2939
2939
  relationType: string | null;
@@ -2943,12 +2943,12 @@ declare const updateAgentRelation: (db: DatabaseClient) => (params: {
2943
2943
  relationId: string;
2944
2944
  data: SubAgentRelationUpdate;
2945
2945
  }) => Promise<{
2946
- tenantId: string;
2947
- projectId: string;
2948
2946
  id: string;
2949
- agentId: string;
2950
2947
  createdAt: string;
2951
2948
  updatedAt: string;
2949
+ projectId: string;
2950
+ tenantId: string;
2951
+ agentId: string;
2952
2952
  sourceSubAgentId: string;
2953
2953
  targetSubAgentId: string | null;
2954
2954
  relationType: string | null;
@@ -2970,32 +2970,32 @@ declare const createAgentToolRelation: (db: DatabaseClient) => (params: {
2970
2970
  headers?: Record<string, string> | null;
2971
2971
  };
2972
2972
  }) => Promise<{
2973
- tenantId: string;
2974
- projectId: string;
2973
+ headers: Record<string, string> | null;
2975
2974
  id: string;
2976
- agentId: string;
2977
2975
  createdAt: string;
2978
2976
  updatedAt: string;
2979
- headers: Record<string, string> | null;
2980
- toolId: string;
2977
+ projectId: string;
2978
+ tenantId: string;
2979
+ agentId: string;
2981
2980
  selectedTools: string[] | null;
2982
2981
  subAgentId: string;
2982
+ toolId: string;
2983
2983
  }>;
2984
2984
  declare const updateAgentToolRelation: (db: DatabaseClient) => (params: {
2985
2985
  scopes: AgentScopeConfig;
2986
2986
  relationId: string;
2987
2987
  data: SubAgentToolRelationUpdate;
2988
2988
  }) => Promise<{
2989
- tenantId: string;
2990
- projectId: string;
2989
+ headers: Record<string, string> | null;
2991
2990
  id: string;
2992
- agentId: string;
2993
2991
  createdAt: string;
2994
2992
  updatedAt: string;
2995
- headers: Record<string, string> | null;
2996
- toolId: string;
2993
+ projectId: string;
2994
+ tenantId: string;
2995
+ agentId: string;
2997
2996
  selectedTools: string[] | null;
2998
2997
  subAgentId: string;
2998
+ toolId: string;
2999
2999
  }>;
3000
3000
  declare const deleteAgentToolRelation: (db: DatabaseClient) => (params: {
3001
3001
  scopes: AgentScopeConfig;
@@ -3008,16 +3008,16 @@ declare const getAgentToolRelationById: (db: DatabaseClient) => (params: {
3008
3008
  scopes: SubAgentScopeConfig;
3009
3009
  relationId: string;
3010
3010
  }) => Promise<{
3011
- tenantId: string;
3012
- projectId: string;
3011
+ headers: Record<string, string> | null;
3013
3012
  id: string;
3014
- agentId: string;
3015
3013
  createdAt: string;
3016
3014
  updatedAt: string;
3017
- headers: Record<string, string> | null;
3018
- toolId: string;
3015
+ projectId: string;
3016
+ tenantId: string;
3017
+ agentId: string;
3019
3018
  selectedTools: string[] | null;
3020
3019
  subAgentId: string;
3020
+ toolId: string;
3021
3021
  } | undefined>;
3022
3022
  declare const getAgentToolRelationByAgent: (db: DatabaseClient) => (params: {
3023
3023
  scopes: SubAgentScopeConfig;
@@ -3184,15 +3184,13 @@ declare const getSubAgentById: (db: DatabaseClient) => (params: {
3184
3184
  scopes: AgentScopeConfig;
3185
3185
  subAgentId: string;
3186
3186
  }) => Promise<{
3187
- tenantId: string;
3188
- projectId: string;
3189
- id: string;
3190
3187
  name: string;
3191
- description: string;
3192
- prompt: string;
3193
- agentId: string;
3188
+ id: string;
3194
3189
  createdAt: string;
3195
3190
  updatedAt: string;
3191
+ projectId: string;
3192
+ tenantId: string;
3193
+ description: string;
3196
3194
  models: {
3197
3195
  base?: {
3198
3196
  model?: string | undefined;
@@ -3210,20 +3208,20 @@ declare const getSubAgentById: (db: DatabaseClient) => (params: {
3210
3208
  stopWhen: {
3211
3209
  stepCountIs?: number | undefined;
3212
3210
  } | null;
3211
+ agentId: string;
3212
+ prompt: string;
3213
3213
  conversationHistoryConfig: ConversationHistoryConfig | null;
3214
3214
  } | undefined>;
3215
3215
  declare const listSubAgents: (db: DatabaseClient) => (params: {
3216
3216
  scopes: AgentScopeConfig;
3217
3217
  }) => Promise<{
3218
- tenantId: string;
3219
- projectId: string;
3220
- id: string;
3221
3218
  name: string;
3222
- description: string;
3223
- prompt: string;
3224
- agentId: string;
3219
+ id: string;
3225
3220
  createdAt: string;
3226
3221
  updatedAt: string;
3222
+ projectId: string;
3223
+ tenantId: string;
3224
+ description: string;
3227
3225
  models: {
3228
3226
  base?: {
3229
3227
  model?: string | undefined;
@@ -3241,6 +3239,8 @@ declare const listSubAgents: (db: DatabaseClient) => (params: {
3241
3239
  stopWhen: {
3242
3240
  stepCountIs?: number | undefined;
3243
3241
  } | null;
3242
+ agentId: string;
3243
+ prompt: string;
3244
3244
  conversationHistoryConfig: ConversationHistoryConfig | null;
3245
3245
  }[]>;
3246
3246
  declare const listSubAgentsPaginated: (db: DatabaseClient) => (params: {
@@ -3284,15 +3284,13 @@ declare const listSubAgentsPaginated: (db: DatabaseClient) => (params: {
3284
3284
  };
3285
3285
  }>;
3286
3286
  declare const createSubAgent: (db: DatabaseClient) => (params: SubAgentInsert) => Promise<{
3287
- tenantId: string;
3288
- projectId: string;
3289
- id: string;
3290
3287
  name: string;
3291
- description: string;
3292
- prompt: string;
3293
- agentId: string;
3288
+ id: string;
3294
3289
  createdAt: string;
3295
3290
  updatedAt: string;
3291
+ projectId: string;
3292
+ tenantId: string;
3293
+ description: string;
3296
3294
  models: {
3297
3295
  base?: {
3298
3296
  model?: string | undefined;
@@ -3310,6 +3308,8 @@ declare const createSubAgent: (db: DatabaseClient) => (params: SubAgentInsert) =
3310
3308
  stopWhen: {
3311
3309
  stepCountIs?: number | undefined;
3312
3310
  } | null;
3311
+ agentId: string;
3312
+ prompt: string;
3313
3313
  conversationHistoryConfig: ConversationHistoryConfig | null;
3314
3314
  }>;
3315
3315
  declare const updateSubAgent: (db: DatabaseClient) => (params: {
@@ -3317,15 +3317,13 @@ declare const updateSubAgent: (db: DatabaseClient) => (params: {
3317
3317
  subAgentId: string;
3318
3318
  data: SubAgentUpdate;
3319
3319
  }) => Promise<{
3320
- tenantId: string;
3321
- projectId: string;
3322
- id: string;
3323
3320
  name: string;
3324
- description: string;
3325
- prompt: string;
3326
- agentId: string;
3321
+ id: string;
3327
3322
  createdAt: string;
3328
3323
  updatedAt: string;
3324
+ projectId: string;
3325
+ tenantId: string;
3326
+ description: string;
3329
3327
  models: {
3330
3328
  base?: {
3331
3329
  model?: string | undefined;
@@ -3343,6 +3341,8 @@ declare const updateSubAgent: (db: DatabaseClient) => (params: {
3343
3341
  stopWhen: {
3344
3342
  stepCountIs?: number | undefined;
3345
3343
  } | null;
3344
+ agentId: string;
3345
+ prompt: string;
3346
3346
  conversationHistoryConfig: ConversationHistoryConfig | null;
3347
3347
  }>;
3348
3348
  /**
@@ -3392,13 +3392,13 @@ declare const getSubAgentTeamAgentRelationById: (db: DatabaseClient) => (params:
3392
3392
  scopes: SubAgentScopeConfig;
3393
3393
  relationId: string;
3394
3394
  }) => Promise<{
3395
- tenantId: string;
3396
- projectId: string;
3395
+ headers: Record<string, string> | null;
3397
3396
  id: string;
3398
- agentId: string;
3399
3397
  createdAt: string;
3400
3398
  updatedAt: string;
3401
- headers: Record<string, string> | null;
3399
+ projectId: string;
3400
+ tenantId: string;
3401
+ agentId: string;
3402
3402
  subAgentId: string;
3403
3403
  targetAgentId: string;
3404
3404
  } | undefined>;
@@ -3427,26 +3427,26 @@ declare const listSubAgentTeamAgentRelations: (db: DatabaseClient) => (params: {
3427
3427
  declare const getSubAgentTeamAgentRelations: (db: DatabaseClient) => (params: {
3428
3428
  scopes: SubAgentScopeConfig;
3429
3429
  }) => Promise<{
3430
- tenantId: string;
3431
- projectId: string;
3430
+ headers: Record<string, string> | null;
3432
3431
  id: string;
3433
- agentId: string;
3434
3432
  createdAt: string;
3435
3433
  updatedAt: string;
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
  }[]>;
3440
3440
  declare const getSubAgentTeamAgentRelationsByAgent: (db: DatabaseClient) => (params: {
3441
3441
  scopes: AgentScopeConfig;
3442
3442
  }) => Promise<{
3443
- tenantId: string;
3444
- projectId: string;
3443
+ headers: Record<string, string> | null;
3445
3444
  id: string;
3446
- agentId: string;
3447
3445
  createdAt: string;
3448
3446
  updatedAt: string;
3449
- headers: Record<string, string> | null;
3447
+ projectId: string;
3448
+ tenantId: string;
3449
+ agentId: string;
3450
3450
  subAgentId: string;
3451
3451
  targetAgentId: string;
3452
3452
  }[]>;
@@ -3593,13 +3593,13 @@ declare const createSubAgentTeamAgentRelation: (db: DatabaseClient) => (params:
3593
3593
  headers?: Record<string, string> | null;
3594
3594
  };
3595
3595
  }) => Promise<{
3596
- tenantId: string;
3597
- projectId: string;
3596
+ headers: Record<string, string> | null;
3598
3597
  id: string;
3599
- agentId: string;
3600
3598
  createdAt: string;
3601
3599
  updatedAt: string;
3602
- headers: Record<string, string> | null;
3600
+ projectId: string;
3601
+ tenantId: string;
3602
+ agentId: string;
3603
3603
  subAgentId: string;
3604
3604
  targetAgentId: string;
3605
3605
  }>;
@@ -3610,13 +3610,13 @@ declare const getSubAgentTeamAgentRelationByParams: (db: DatabaseClient) => (par
3610
3610
  scopes: SubAgentScopeConfig;
3611
3611
  targetAgentId: string;
3612
3612
  }) => Promise<{
3613
- tenantId: string;
3614
- projectId: string;
3613
+ headers: Record<string, string> | null;
3615
3614
  id: string;
3616
- agentId: string;
3617
3615
  createdAt: string;
3618
3616
  updatedAt: string;
3619
- headers: Record<string, string> | null;
3617
+ projectId: string;
3618
+ tenantId: string;
3619
+ agentId: string;
3620
3620
  subAgentId: string;
3621
3621
  targetAgentId: string;
3622
3622
  } | undefined>;
@@ -3631,13 +3631,13 @@ declare const upsertSubAgentTeamAgentRelation: (db: DatabaseClient) => (params:
3631
3631
  headers?: Record<string, string> | null;
3632
3632
  };
3633
3633
  }) => Promise<{
3634
- tenantId: string;
3635
- projectId: string;
3634
+ headers: Record<string, string> | null;
3636
3635
  id: string;
3637
- agentId: string;
3638
3636
  createdAt: string;
3639
3637
  updatedAt: string;
3640
- headers: Record<string, string> | null;
3638
+ projectId: string;
3639
+ tenantId: string;
3640
+ agentId: string;
3641
3641
  subAgentId: string;
3642
3642
  targetAgentId: string;
3643
3643
  }>;
@@ -3646,13 +3646,13 @@ declare const updateSubAgentTeamAgentRelation: (db: DatabaseClient) => (params:
3646
3646
  relationId: string;
3647
3647
  data: Partial<SubAgentTeamAgentRelationInsert>;
3648
3648
  }) => Promise<{
3649
- tenantId: string;
3650
- projectId: string;
3649
+ headers: Record<string, string> | null;
3651
3650
  id: string;
3652
- agentId: string;
3653
3651
  createdAt: string;
3654
3652
  updatedAt: string;
3655
- headers: Record<string, string> | null;
3653
+ projectId: string;
3654
+ tenantId: string;
3655
+ agentId: string;
3656
3656
  subAgentId: string;
3657
3657
  targetAgentId: string;
3658
3658
  }>;
@@ -3668,12 +3668,12 @@ declare const deleteSubAgentTeamAgentRelationsByAgent: (db: DatabaseClient) => (
3668
3668
  }) => Promise<boolean>;
3669
3669
 
3670
3670
  declare const createTask: (db: DatabaseClient) => (params: TaskInsert) => Promise<{
3671
- tenantId: string;
3672
- projectId: string;
3673
3671
  id: string;
3674
- agentId: string;
3675
3672
  createdAt: string;
3676
3673
  updatedAt: string;
3674
+ projectId: string;
3675
+ tenantId: string;
3676
+ agentId: string;
3677
3677
  status: string;
3678
3678
  metadata: TaskMetadataConfig | null;
3679
3679
  contextId: string;
@@ -3689,12 +3689,12 @@ declare const updateTask: (db: DatabaseClient) => (params: {
3689
3689
  metadata?: any;
3690
3690
  };
3691
3691
  }) => Promise<{
3692
- tenantId: string;
3693
- projectId: string;
3694
3692
  id: string;
3695
- agentId: string;
3696
3693
  createdAt: string;
3697
3694
  updatedAt: string;
3695
+ projectId: string;
3696
+ tenantId: string;
3697
+ agentId: string;
3698
3698
  status: string;
3699
3699
  metadata: TaskMetadataConfig | null;
3700
3700
  contextId: string;
@@ -3709,20 +3709,20 @@ declare const getToolById: (db: DatabaseClient) => (params: {
3709
3709
  scopes: ProjectScopeConfig;
3710
3710
  toolId: string;
3711
3711
  }) => Promise<{
3712
- tenantId: string;
3713
- projectId: string;
3714
- id: string;
3715
3712
  name: string;
3713
+ headers: Record<string, string> | null;
3714
+ id: string;
3715
+ createdAt: string;
3716
+ updatedAt: string;
3717
+ projectId: string;
3718
+ tenantId: string;
3716
3719
  description: string | null;
3720
+ credentialReferenceId: string | null;
3721
+ capabilities: ToolServerCapabilities | null;
3717
3722
  config: {
3718
3723
  type: "mcp";
3719
3724
  mcp: ToolMcpConfig;
3720
3725
  };
3721
- credentialReferenceId: string | null;
3722
- createdAt: string;
3723
- updatedAt: string;
3724
- headers: Record<string, string> | null;
3725
- capabilities: ToolServerCapabilities | null;
3726
3726
  imageUrl: string | null;
3727
3727
  lastError: string | null;
3728
3728
  } | null>;
@@ -3756,20 +3756,20 @@ declare const listTools: (db: DatabaseClient) => (params: {
3756
3756
  };
3757
3757
  }>;
3758
3758
  declare const createTool: (db: DatabaseClient) => (params: ToolInsert) => Promise<{
3759
- tenantId: string;
3760
- projectId: string;
3761
- id: string;
3762
3759
  name: string;
3760
+ headers: Record<string, string> | null;
3761
+ id: string;
3762
+ createdAt: string;
3763
+ updatedAt: string;
3764
+ projectId: string;
3765
+ tenantId: string;
3763
3766
  description: string | null;
3767
+ credentialReferenceId: string | null;
3768
+ capabilities: ToolServerCapabilities | null;
3764
3769
  config: {
3765
3770
  type: "mcp";
3766
3771
  mcp: ToolMcpConfig;
3767
3772
  };
3768
- credentialReferenceId: string | null;
3769
- createdAt: string;
3770
- updatedAt: string;
3771
- headers: Record<string, string> | null;
3772
- capabilities: ToolServerCapabilities | null;
3773
3773
  imageUrl: string | null;
3774
3774
  lastError: string | null;
3775
3775
  }>;
@@ -3778,20 +3778,20 @@ declare const updateTool: (db: DatabaseClient) => (params: {
3778
3778
  toolId: string;
3779
3779
  data: ToolUpdate;
3780
3780
  }) => Promise<{
3781
- tenantId: string;
3782
- projectId: string;
3783
- id: string;
3784
3781
  name: string;
3782
+ headers: Record<string, string> | null;
3783
+ id: string;
3784
+ createdAt: string;
3785
+ updatedAt: string;
3786
+ projectId: string;
3787
+ tenantId: string;
3785
3788
  description: string | null;
3789
+ credentialReferenceId: string | null;
3790
+ capabilities: ToolServerCapabilities | null;
3786
3791
  config: {
3787
3792
  type: "mcp";
3788
3793
  mcp: ToolMcpConfig;
3789
3794
  };
3790
- credentialReferenceId: string | null;
3791
- createdAt: string;
3792
- updatedAt: string;
3793
- headers: Record<string, string> | null;
3794
- capabilities: ToolServerCapabilities | null;
3795
3795
  imageUrl: string | null;
3796
3796
  lastError: string | null;
3797
3797
  }>;
@@ -3806,32 +3806,32 @@ declare const addToolToAgent: (db: DatabaseClient) => (params: {
3806
3806
  selectedTools?: string[] | null;
3807
3807
  headers?: Record<string, string> | null;
3808
3808
  }) => Promise<{
3809
- tenantId: string;
3810
- projectId: string;
3809
+ headers: Record<string, string> | null;
3811
3810
  id: string;
3812
- agentId: string;
3813
3811
  createdAt: string;
3814
3812
  updatedAt: string;
3815
- headers: Record<string, string> | null;
3816
- toolId: string;
3813
+ projectId: string;
3814
+ tenantId: string;
3815
+ agentId: string;
3817
3816
  selectedTools: string[] | null;
3818
3817
  subAgentId: string;
3818
+ toolId: string;
3819
3819
  }>;
3820
3820
  declare const removeToolFromAgent: (db: DatabaseClient) => (params: {
3821
3821
  scopes: AgentScopeConfig;
3822
3822
  subAgentId: string;
3823
3823
  toolId: string;
3824
3824
  }) => Promise<{
3825
- tenantId: string;
3826
- projectId: string;
3825
+ headers: Record<string, string> | null;
3827
3826
  id: string;
3828
- agentId: string;
3829
3827
  createdAt: string;
3830
3828
  updatedAt: string;
3831
- headers: Record<string, string> | null;
3832
- toolId: string;
3829
+ projectId: string;
3830
+ tenantId: string;
3831
+ agentId: string;
3833
3832
  selectedTools: string[] | null;
3834
3833
  subAgentId: string;
3834
+ toolId: string;
3835
3835
  }>;
3836
3836
  /**
3837
3837
  * Upsert agent-tool relation (create if it doesn't exist, update if it does)
@@ -3844,16 +3844,16 @@ declare const upsertSubAgentToolRelation: (db: DatabaseClient) => (params: {
3844
3844
  headers?: Record<string, string> | null;
3845
3845
  relationId?: string;
3846
3846
  }) => Promise<{
3847
- tenantId: string;
3848
- projectId: string;
3847
+ headers: Record<string, string> | null;
3849
3848
  id: string;
3850
- agentId: string;
3851
3849
  createdAt: string;
3852
3850
  updatedAt: string;
3853
- headers: Record<string, string> | null;
3854
- toolId: string;
3851
+ projectId: string;
3852
+ tenantId: string;
3853
+ agentId: string;
3855
3854
  selectedTools: string[] | null;
3856
3855
  subAgentId: string;
3856
+ toolId: string;
3857
3857
  }>;
3858
3858
  /**
3859
3859
  * Upsert a tool (create if it doesn't exist, update if it does)
@@ -3861,20 +3861,20 @@ declare const upsertSubAgentToolRelation: (db: DatabaseClient) => (params: {
3861
3861
  declare const upsertTool: (db: DatabaseClient) => (params: {
3862
3862
  data: ToolInsert;
3863
3863
  }) => Promise<{
3864
- tenantId: string;
3865
- projectId: string;
3866
- id: string;
3867
3864
  name: string;
3865
+ headers: Record<string, string> | null;
3866
+ id: string;
3867
+ createdAt: string;
3868
+ updatedAt: string;
3869
+ projectId: string;
3870
+ tenantId: string;
3868
3871
  description: string | null;
3872
+ credentialReferenceId: string | null;
3873
+ capabilities: ToolServerCapabilities | null;
3869
3874
  config: {
3870
3875
  type: "mcp";
3871
3876
  mcp: ToolMcpConfig;
3872
3877
  };
3873
- credentialReferenceId: string | null;
3874
- createdAt: string;
3875
- updatedAt: string;
3876
- headers: Record<string, string> | null;
3877
- capabilities: ToolServerCapabilities | null;
3878
3878
  imageUrl: string | null;
3879
3879
  lastError: string | null;
3880
3880
  }>;