@inkeep/agents-core 0.23.5 → 0.24.0

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-BO8bSpe4.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-BO8bSpe4.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 AgentScopeConfig, C as ConversationHistoryConfig, v as ProjectScopeConfig, w as PaginationConfig, x as AgentInsert, y as AgentUpdate, z as FullAgentDefinition, 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 CredentialReferenceInsert, $ as CredentialReferenceUpdate, a0 as DataComponentSelect, a1 as DataComponentInsert, a2 as DataComponentUpdate, a3 as ExternalAgentInsert, a4 as ExternalAgentSelect, 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 SubAgentRelationInsert, am as ExternalSubAgentRelationInsert, an as SubAgentRelationUpdate, ao as SubAgentToolRelationUpdate, m as ToolMcpConfig, n as ToolServerCapabilities, ap as SubAgentInsert, aq as SubAgentUpdate, ar as SubAgentSelect, as as TaskInsert, T as TaskMetadataConfig, at as TaskSelect, au as McpTool, av as ToolInsert, aw as ToolUpdate, h as CredentialStoreType, ax as ExecutionContext } from './utility-DVhMoRLZ.js';
6
- export { b9 as A2AError, bF as A2ARequest, bG as A2AResponse, aK as APIKeySecurityScheme, bT as AgentApiInsert, dW as AgentApiInsertSchema, bS as AgentApiSelect, dV as AgentApiSelectSchema, bU as AgentApiUpdate, dX as AgentApiUpdateSchema, aG as AgentCapabilities, aU as AgentCard, dk as AgentConversationHistoryConfig, dT as AgentInsertSchema, gh as AgentListResponse, aH as AgentProvider, g1 as AgentResponse, dS as AgentSelectSchema, aI as AgentSkill, e as AgentStopWhen, b as AgentStopWhenSchema, dU as AgentUpdateSchema, fN as AgentWithinContextOfProjectSchema, e_ as AllAgentSchema, cN as AllAgentSelect, cR as ApiKeyApiCreationResponse, f3 as ApiKeyApiCreationResponseSchema, cP as ApiKeyApiInsert, f4 as ApiKeyApiInsertSchema, cO as ApiKeyApiSelect, f2 as ApiKeyApiSelectSchema, cQ as ApiKeyApiUpdate, A as ApiKeyApiUpdateSchema, f0 as ApiKeyInsertSchema, gl as ApiKeyListResponse, g5 as ApiKeyResponse, e$ as ApiKeySelectSchema, f1 as ApiKeyUpdateSchema, cC as ArtifactComponentApiInsert, eM as ArtifactComponentApiInsertSchema, cB as ArtifactComponentApiSelect, eL as ArtifactComponentApiSelectSchema, cD as ArtifactComponentApiUpdate, eN as ArtifactComponentApiUpdateSchema, eJ as ArtifactComponentInsertSchema, gq as ArtifactComponentListResponse, ga as ArtifactComponentResponse, eI as ArtifactComponentSelectSchema, eK as ArtifactComponentUpdateSchema, aN as AuthorizationCodeOAuthFlow, d3 as CanUseItem, fM as CanUseItemSchema, bp as CancelTaskRequest, bA as CancelTaskResponse, bz as CancelTaskSuccessResponse, aO as ClientCredentialsOAuthFlow, b7 as ContentTypeNotSupportedError, cq as ContextCacheApiInsert, et as ContextCacheApiInsertSchema, cp as ContextCacheApiSelect, es as ContextCacheApiSelectSchema, cr as ContextCacheApiUpdate, eu as ContextCacheApiUpdateSchema, dl as ContextCacheEntry, eq as ContextCacheInsertSchema, ep as ContextCacheSelectSchema, co as ContextCacheUpdate, er as ContextCacheUpdateSchema, ck as ContextConfigApiInsert, fw as ContextConfigApiInsertSchema, cj as ContextConfigApiSelect, fv as ContextConfigApiSelectSchema, cl as ContextConfigApiUpdate, fx as ContextConfigApiUpdateSchema, ft as ContextConfigInsertSchema, gk as ContextConfigListResponse, g4 as ContextConfigResponse, fs as ContextConfigSelectSchema, fu as ContextConfigUpdateSchema, cd as ConversationApiInsert, eh as ConversationApiInsertSchema, cc as ConversationApiSelect, eg as ConversationApiSelectSchema, ce as ConversationApiUpdate, ei as ConversationApiUpdateSchema, ee as ConversationInsertSchema, gt as ConversationListResponse, gd as ConversationResponse, dj as ConversationScopeOptions, ed as ConversationSelectSchema, ef as ConversationUpdateSchema, f9 as CredentialReferenceApiInsertSchema, cS as CredentialReferenceApiSelect, f8 as CredentialReferenceApiSelectSchema, cT as CredentialReferenceApiUpdate, fa as CredentialReferenceApiUpdateSchema, f6 as CredentialReferenceInsertSchema, gm as CredentialReferenceListResponse, g6 as CredentialReferenceResponse, f5 as CredentialReferenceSelectSchema, f7 as CredentialReferenceUpdateSchema, ct as DataComponentApiInsert, eA as DataComponentApiInsertSchema, cs as DataComponentApiSelect, ez as DataComponentApiSelectSchema, cu as DataComponentApiUpdate, eB as DataComponentApiUpdateSchema, ex as DataComponentBaseSchema, ew as DataComponentInsertSchema, gp as DataComponentListResponse, g9 as DataComponentResponse, ev as DataComponentSelectSchema, ey as DataComponentUpdateSchema, aE as DataPart, fR as ErrorResponseSchema, fS as ExistsResponseSchema, eY as ExternalAgentApiInsertSchema, cK as ExternalAgentApiSelect, eX as ExternalAgentApiSelectSchema, cM as ExternalAgentApiUpdate, eZ as ExternalAgentApiUpdateSchema, eV as ExternalAgentInsertSchema, gj as ExternalAgentListResponse, g3 as ExternalAgentResponse, eU as ExternalAgentSelectSchema, eW as ExternalAgentUpdateSchema, cL as ExternalSubAgentApiInsert, bR as ExternalSubAgentRelationApiInsert, dR as ExternalSubAgentRelationApiInsertSchema, dQ as ExternalSubAgentRelationInsertSchema, cn as FetchConfig, fq as FetchConfigSchema, cm as FetchDefinition, fr as FetchDefinitionSchema, aA as FileBase, aD as FilePart, aB as FileWithBytes, aC as FileWithUri, d2 as FullAgentAgentInsert, a as FullAgentAgentInsertSchema, f_ as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, c9 as FunctionApiSelect, j as FunctionApiSelectSchema, ca as FunctionApiUpdate, k as FunctionApiUpdateSchema, c7 as FunctionInsert, fo as FunctionInsertSchema, gn as FunctionListResponse, g7 as FunctionResponse, c6 as FunctionSelect, fn as FunctionSelectSchema, fl as FunctionToolApiInsertSchema, cb as FunctionToolApiSelect, fk as FunctionToolApiSelectSchema, fm as FunctionToolApiUpdateSchema, dC as FunctionToolConfig, dB as FunctionToolConfigSchema, fi as FunctionToolInsertSchema, go as FunctionToolListResponse, g8 as FunctionToolResponse, fh as FunctionToolSelectSchema, fj as FunctionToolUpdateSchema, c8 as FunctionUpdate, fp as FunctionUpdateSchema, br as GetTaskPushNotificationConfigRequest, bE as GetTaskPushNotificationConfigResponse, bD as GetTaskPushNotificationConfigSuccessResponse, bo as GetTaskRequest, by as GetTaskResponse, bx as GetTaskSuccessResponse, aL as HTTPAuthSecurityScheme, gz as HeadersScopeSchema, aP as ImplicitOAuthFlow, b2 as InternalError, d4 as InternalSubAgentDefinition, b8 as InvalidAgentResponseError, b1 as InvalidParamsError, a$ as InvalidRequestError, a_ as JSONParseError, bj as JSONRPCError, bl as JSONRPCErrorResponse, bh as JSONRPCMessage, bi as JSONRPCRequest, bk as JSONRPCResult, d0 as LedgerArtifactApiInsert, fI as LedgerArtifactApiInsertSchema, c$ as LedgerArtifactApiSelect, fH as LedgerArtifactApiSelectSchema, d1 as LedgerArtifactApiUpdate, fJ as LedgerArtifactApiUpdateSchema, cZ as LedgerArtifactInsert, fF as LedgerArtifactInsertSchema, fE as LedgerArtifactSelectSchema, c_ as LedgerArtifactUpdate, fG as LedgerArtifactUpdateSchema, fP as ListResponseSchema, dw as MAX_ID_LENGTH, du as MCPServerType, fc as MCPToolConfigSchema, dv as MIN_ID_LENGTH, dm as McpAuthType, dn as McpServerAuth, dq as McpServerCapabilities, dr as McpToolDefinition, ea as McpToolDefinitionSchema, fb as McpToolSchema, dp as McpTransportConfig, e8 as McpTransportConfigSchema, aV as Message, ch as MessageApiInsert, en as MessageApiInsertSchema, cg as MessageApiSelect, em as MessageApiSelectSchema, ci as MessageApiUpdate, eo as MessageApiUpdateSchema, ek as MessageInsertSchema, gu as MessageListResponse, de as MessageMode, bH as MessagePart, ge as MessageResponse, dd as MessageRole, cf as MessageSelect, ej as MessageSelectSchema, bf as MessageSendConfiguration, bg as MessageSendParams, dc as MessageType, el as MessageUpdateSchema, b0 as MethodNotFoundError, dz as ModelSchema, g as ModelSettings, M as ModelSettingsSchema, df as Models, aR as OAuth2SecurityScheme, aM as OAuthFlows, aS as OpenIdConnectSecurityScheme, da as Pagination, gI as PaginationQueryParamsSchema, fO as PaginationSchema, P as Part, ay as PartBase, aQ as PasswordOAuthFlow, d8 as ProjectApiInsert, fY as ProjectApiInsertSchema, d7 as ProjectApiSelect, fX as ProjectApiSelectSchema, d9 as ProjectApiUpdate, fZ as ProjectApiUpdateSchema, fV as ProjectInsertSchema, gf as ProjectListResponse, dA as ProjectModelSchema, dg as ProjectModels, f$ as ProjectResponse, fU as ProjectSelectSchema, fW as ProjectUpdateSchema, ba as PushNotificationAuthenticationInfo, bb as PushNotificationConfig, b5 as PushNotificationNotSupportedError, fT as RemovedResponseSchema, aT as SecurityScheme, aJ as SecuritySchemeBase, bm as SendMessageRequest, bu as SendMessageResponse, bt as SendMessageSuccessResponse, bn as SendStreamingMessageRequest, bw as SendStreamingMessageResponse, bv as SendStreamingMessageSuccessResponse, bq as SetTaskPushNotificationConfigRequest, bC as SetTaskPushNotificationConfigResponse, bB as SetTaskPushNotificationConfigSuccessResponse, fQ as SingleResponseSchema, di as StatusComponent, fK as StatusComponentSchema, fL as StatusUpdateSchema, dh as StatusUpdateSettings, d as StopWhen, S as StopWhenSchema, bK as SubAgentApiInsert, dH as SubAgentApiInsertSchema, bJ as SubAgentApiSelect, dG as SubAgentApiSelectSchema, bL as SubAgentApiUpdate, dI as SubAgentApiUpdateSchema, cI as SubAgentArtifactComponentApiInsert, eS as SubAgentArtifactComponentApiInsertSchema, cH as SubAgentArtifactComponentApiSelect, eR as SubAgentArtifactComponentApiSelectSchema, cJ as SubAgentArtifactComponentApiUpdate, eT as SubAgentArtifactComponentApiUpdateSchema, cF as SubAgentArtifactComponentInsert, eP as SubAgentArtifactComponentInsertSchema, gy as SubAgentArtifactComponentListResponse, gw as SubAgentArtifactComponentResponse, cE as SubAgentArtifactComponentSelect, eO as SubAgentArtifactComponentSelectSchema, cG as SubAgentArtifactComponentUpdate, eQ as SubAgentArtifactComponentUpdateSchema, cz as SubAgentDataComponentApiInsert, eG as SubAgentDataComponentApiInsertSchema, cy as SubAgentDataComponentApiSelect, eF as SubAgentDataComponentApiSelectSchema, cA as SubAgentDataComponentApiUpdate, eH as SubAgentDataComponentApiUpdateSchema, cw as SubAgentDataComponentInsert, eD as SubAgentDataComponentInsertSchema, gx as SubAgentDataComponentListResponse, gv as SubAgentDataComponentResponse, cv as SubAgentDataComponentSelect, eC as SubAgentDataComponentSelectSchema, cx as SubAgentDataComponentUpdate, eE as SubAgentDataComponentUpdateSchema, d5 as SubAgentDefinition, dE as SubAgentInsertSchema, gg as SubAgentListResponse, bO as SubAgentRelationApiInsert, dN as SubAgentRelationApiInsertSchema, bN as SubAgentRelationApiSelect, dM as SubAgentRelationApiSelectSchema, bP as SubAgentRelationApiUpdate, dO as SubAgentRelationApiUpdateSchema, dK as SubAgentRelationInsertSchema, gr as SubAgentRelationListResponse, bQ as SubAgentRelationQuery, dP as SubAgentRelationQuerySchema, gb as SubAgentRelationResponse, bM as SubAgentRelationSelect, dJ as SubAgentRelationSelectSchema, dL as SubAgentRelationUpdateSchema, g0 as SubAgentResponse, dD as SubAgentSelectSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema, cX as SubAgentToolRelationApiInsert, fC as SubAgentToolRelationApiInsertSchema, cW as SubAgentToolRelationApiSelect, fB as SubAgentToolRelationApiSelectSchema, cY as SubAgentToolRelationApiUpdate, fD as SubAgentToolRelationApiUpdateSchema, cV as SubAgentToolRelationInsert, fz as SubAgentToolRelationInsertSchema, gs as SubAgentToolRelationListResponse, gc as SubAgentToolRelationResponse, cU as SubAgentToolRelationSelect, fy as SubAgentToolRelationSelectSchema, fA as SubAgentToolRelationUpdateSchema, dF as SubAgentUpdateSchema, db as SummaryEvent, ds as TOOL_STATUS_VALUES, aX as Task, bX as TaskApiInsert, e0 as TaskApiInsertSchema, bW as TaskApiSelect, d$ as TaskApiSelectSchema, bY as TaskApiUpdate, e1 as TaskApiUpdateSchema, bI as TaskArtifact, aZ as TaskArtifactUpdateEvent, bd as TaskIdParams, dZ as TaskInsertSchema, b4 as TaskNotCancelableError, b3 as TaskNotFoundError, bc as TaskPushNotificationConfig, be as TaskQueryParams, c1 as TaskRelationApiInsert, e6 as TaskRelationApiInsertSchema, c0 as TaskRelationApiSelect, e5 as TaskRelationApiSelectSchema, c2 as TaskRelationApiUpdate, e7 as TaskRelationApiUpdateSchema, b_ as TaskRelationInsert, e3 as TaskRelationInsertSchema, bZ as TaskRelationSelect, e2 as TaskRelationSelectSchema, b$ as TaskRelationUpdate, e4 as TaskRelationUpdateSchema, bs as TaskResubscriptionRequest, dY as TaskSelectSchema, aF as TaskState, aW as TaskStatus, aY as TaskStatusUpdateEvent, bV as TaskUpdate, d_ as TaskUpdateSchema, gB as TenantIdParamsSchema, gA as TenantParamsSchema, gF as TenantProjectAgentIdParamsSchema, gE as TenantProjectAgentParamsSchema, gH as TenantProjectAgentSubAgentIdParamsSchema, gG as TenantProjectAgentSubAgentParamsSchema, gD as TenantProjectIdParamsSchema, gC as TenantProjectParamsSchema, az as TextPart, c4 as ToolApiInsert, ff as ToolApiInsertSchema, c3 as ToolApiSelect, fe as ToolApiSelectSchema, c5 as ToolApiUpdate, fg as ToolApiUpdateSchema, d6 as ToolDefinition, ec as ToolInsertSchema, gi as ToolListResponse, g2 as ToolResponse, eb as ToolSelectSchema, e9 as ToolStatusSchema, fd as ToolUpdateSchema, dx as URL_SAFE_ID_PATTERN, b6 as UnsupportedOperationError, dt as VALID_RELATION_TYPES, dy as resourceIdSchema } from './utility-DVhMoRLZ.js';
5
+ import { r as CredentialReferenceApiInsert, s as ContextConfigSelect, l as ContextFetchDefinition, i as MCPTransportType, t as MCPToolConfig, u as AgentScopeConfig, C as ConversationHistoryConfig, v as ProjectScopeConfig, w as PaginationConfig, x as AgentInsert, y as AgentUpdate, z as FullAgentDefinition, 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 CredentialReferenceInsert, $ as CredentialReferenceUpdate, a0 as DataComponentSelect, a1 as DataComponentInsert, a2 as DataComponentUpdate, a3 as ExternalAgentInsert, a4 as ExternalAgentSelect, 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 SubAgentRelationInsert, am as ExternalSubAgentRelationInsert, an as SubAgentRelationUpdate, ao as SubAgentToolRelationUpdate, m as ToolMcpConfig, n as ToolServerCapabilities, ap as SubAgentInsert, aq as SubAgentUpdate, ar as SubAgentSelect, as as TaskInsert, T as TaskMetadataConfig, at as TaskSelect, au as McpTool, av as ToolInsert, aw as ToolUpdate, h as CredentialStoreType, ax as ExecutionContext } from './utility-mGrlR4Ta.js';
6
+ export { b9 as A2AError, bF as A2ARequest, bG as A2AResponse, aK as APIKeySecurityScheme, bT as AgentApiInsert, dW as AgentApiInsertSchema, bS as AgentApiSelect, dV as AgentApiSelectSchema, bU as AgentApiUpdate, dX as AgentApiUpdateSchema, aG as AgentCapabilities, aU as AgentCard, dk as AgentConversationHistoryConfig, dT as AgentInsertSchema, gh as AgentListResponse, aH as AgentProvider, g1 as AgentResponse, dS as AgentSelectSchema, aI as AgentSkill, e as AgentStopWhen, b as AgentStopWhenSchema, dU as AgentUpdateSchema, fN as AgentWithinContextOfProjectSchema, e_ as AllAgentSchema, cN as AllAgentSelect, cR as ApiKeyApiCreationResponse, f3 as ApiKeyApiCreationResponseSchema, cP as ApiKeyApiInsert, f4 as ApiKeyApiInsertSchema, cO as ApiKeyApiSelect, f2 as ApiKeyApiSelectSchema, cQ as ApiKeyApiUpdate, A as ApiKeyApiUpdateSchema, f0 as ApiKeyInsertSchema, gl as ApiKeyListResponse, g5 as ApiKeyResponse, e$ as ApiKeySelectSchema, f1 as ApiKeyUpdateSchema, cC as ArtifactComponentApiInsert, eM as ArtifactComponentApiInsertSchema, cB as ArtifactComponentApiSelect, eL as ArtifactComponentApiSelectSchema, cD as ArtifactComponentApiUpdate, eN as ArtifactComponentApiUpdateSchema, eJ as ArtifactComponentInsertSchema, gq as ArtifactComponentListResponse, ga as ArtifactComponentResponse, eI as ArtifactComponentSelectSchema, eK as ArtifactComponentUpdateSchema, aN as AuthorizationCodeOAuthFlow, d3 as CanUseItem, fM as CanUseItemSchema, bp as CancelTaskRequest, bA as CancelTaskResponse, bz as CancelTaskSuccessResponse, aO as ClientCredentialsOAuthFlow, b7 as ContentTypeNotSupportedError, cq as ContextCacheApiInsert, et as ContextCacheApiInsertSchema, cp as ContextCacheApiSelect, es as ContextCacheApiSelectSchema, cr as ContextCacheApiUpdate, eu as ContextCacheApiUpdateSchema, dl as ContextCacheEntry, eq as ContextCacheInsertSchema, ep as ContextCacheSelectSchema, co as ContextCacheUpdate, er as ContextCacheUpdateSchema, ck as ContextConfigApiInsert, fw as ContextConfigApiInsertSchema, cj as ContextConfigApiSelect, fv as ContextConfigApiSelectSchema, cl as ContextConfigApiUpdate, fx as ContextConfigApiUpdateSchema, ft as ContextConfigInsertSchema, gk as ContextConfigListResponse, g4 as ContextConfigResponse, fs as ContextConfigSelectSchema, fu as ContextConfigUpdateSchema, cd as ConversationApiInsert, eh as ConversationApiInsertSchema, cc as ConversationApiSelect, eg as ConversationApiSelectSchema, ce as ConversationApiUpdate, ei as ConversationApiUpdateSchema, ee as ConversationInsertSchema, gt as ConversationListResponse, gd as ConversationResponse, dj as ConversationScopeOptions, ed as ConversationSelectSchema, ef as ConversationUpdateSchema, f9 as CredentialReferenceApiInsertSchema, cS as CredentialReferenceApiSelect, f8 as CredentialReferenceApiSelectSchema, cT as CredentialReferenceApiUpdate, fa as CredentialReferenceApiUpdateSchema, f6 as CredentialReferenceInsertSchema, gm as CredentialReferenceListResponse, g6 as CredentialReferenceResponse, f5 as CredentialReferenceSelectSchema, f7 as CredentialReferenceUpdateSchema, ct as DataComponentApiInsert, eA as DataComponentApiInsertSchema, cs as DataComponentApiSelect, ez as DataComponentApiSelectSchema, cu as DataComponentApiUpdate, eB as DataComponentApiUpdateSchema, ex as DataComponentBaseSchema, ew as DataComponentInsertSchema, gp as DataComponentListResponse, g9 as DataComponentResponse, ev as DataComponentSelectSchema, ey as DataComponentUpdateSchema, aE as DataPart, fR as ErrorResponseSchema, fS as ExistsResponseSchema, eY as ExternalAgentApiInsertSchema, cK as ExternalAgentApiSelect, eX as ExternalAgentApiSelectSchema, cM as ExternalAgentApiUpdate, eZ as ExternalAgentApiUpdateSchema, eV as ExternalAgentInsertSchema, gj as ExternalAgentListResponse, g3 as ExternalAgentResponse, eU as ExternalAgentSelectSchema, eW as ExternalAgentUpdateSchema, cL as ExternalSubAgentApiInsert, bR as ExternalSubAgentRelationApiInsert, dR as ExternalSubAgentRelationApiInsertSchema, dQ as ExternalSubAgentRelationInsertSchema, cn as FetchConfig, fq as FetchConfigSchema, cm as FetchDefinition, fr as FetchDefinitionSchema, aA as FileBase, aD as FilePart, aB as FileWithBytes, aC as FileWithUri, d2 as FullAgentAgentInsert, a as FullAgentAgentInsertSchema, f_ as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, c9 as FunctionApiSelect, j as FunctionApiSelectSchema, ca as FunctionApiUpdate, k as FunctionApiUpdateSchema, c7 as FunctionInsert, fo as FunctionInsertSchema, gn as FunctionListResponse, g7 as FunctionResponse, c6 as FunctionSelect, fn as FunctionSelectSchema, fl as FunctionToolApiInsertSchema, cb as FunctionToolApiSelect, fk as FunctionToolApiSelectSchema, fm as FunctionToolApiUpdateSchema, dC as FunctionToolConfig, dB as FunctionToolConfigSchema, fi as FunctionToolInsertSchema, go as FunctionToolListResponse, g8 as FunctionToolResponse, fh as FunctionToolSelectSchema, fj as FunctionToolUpdateSchema, c8 as FunctionUpdate, fp as FunctionUpdateSchema, br as GetTaskPushNotificationConfigRequest, bE as GetTaskPushNotificationConfigResponse, bD as GetTaskPushNotificationConfigSuccessResponse, bo as GetTaskRequest, by as GetTaskResponse, bx as GetTaskSuccessResponse, aL as HTTPAuthSecurityScheme, gz as HeadersScopeSchema, aP as ImplicitOAuthFlow, b2 as InternalError, d4 as InternalSubAgentDefinition, b8 as InvalidAgentResponseError, b1 as InvalidParamsError, a$ as InvalidRequestError, a_ as JSONParseError, bj as JSONRPCError, bl as JSONRPCErrorResponse, bh as JSONRPCMessage, bi as JSONRPCRequest, bk as JSONRPCResult, d0 as LedgerArtifactApiInsert, fI as LedgerArtifactApiInsertSchema, c$ as LedgerArtifactApiSelect, fH as LedgerArtifactApiSelectSchema, d1 as LedgerArtifactApiUpdate, fJ as LedgerArtifactApiUpdateSchema, cZ as LedgerArtifactInsert, fF as LedgerArtifactInsertSchema, fE as LedgerArtifactSelectSchema, c_ as LedgerArtifactUpdate, fG as LedgerArtifactUpdateSchema, fP as ListResponseSchema, dw as MAX_ID_LENGTH, du as MCPServerType, fc as MCPToolConfigSchema, dv as MIN_ID_LENGTH, dm as McpAuthType, dn as McpServerAuth, dq as McpServerCapabilities, dr as McpToolDefinition, ea as McpToolDefinitionSchema, fb as McpToolSchema, dp as McpTransportConfig, e8 as McpTransportConfigSchema, aV as Message, ch as MessageApiInsert, en as MessageApiInsertSchema, cg as MessageApiSelect, em as MessageApiSelectSchema, ci as MessageApiUpdate, eo as MessageApiUpdateSchema, ek as MessageInsertSchema, gu as MessageListResponse, de as MessageMode, bH as MessagePart, ge as MessageResponse, dd as MessageRole, cf as MessageSelect, ej as MessageSelectSchema, bf as MessageSendConfiguration, bg as MessageSendParams, dc as MessageType, el as MessageUpdateSchema, b0 as MethodNotFoundError, dz as ModelSchema, g as ModelSettings, M as ModelSettingsSchema, df as Models, aR as OAuth2SecurityScheme, aM as OAuthFlows, aS as OpenIdConnectSecurityScheme, da as Pagination, gI as PaginationQueryParamsSchema, fO as PaginationSchema, P as Part, ay as PartBase, aQ as PasswordOAuthFlow, d8 as ProjectApiInsert, fY as ProjectApiInsertSchema, d7 as ProjectApiSelect, fX as ProjectApiSelectSchema, d9 as ProjectApiUpdate, fZ as ProjectApiUpdateSchema, fV as ProjectInsertSchema, gf as ProjectListResponse, dA as ProjectModelSchema, dg as ProjectModels, f$ as ProjectResponse, fU as ProjectSelectSchema, fW as ProjectUpdateSchema, ba as PushNotificationAuthenticationInfo, bb as PushNotificationConfig, b5 as PushNotificationNotSupportedError, fT as RemovedResponseSchema, aT as SecurityScheme, aJ as SecuritySchemeBase, bm as SendMessageRequest, bu as SendMessageResponse, bt as SendMessageSuccessResponse, bn as SendStreamingMessageRequest, bw as SendStreamingMessageResponse, bv as SendStreamingMessageSuccessResponse, bq as SetTaskPushNotificationConfigRequest, bC as SetTaskPushNotificationConfigResponse, bB as SetTaskPushNotificationConfigSuccessResponse, fQ as SingleResponseSchema, di as StatusComponent, fK as StatusComponentSchema, fL as StatusUpdateSchema, dh as StatusUpdateSettings, d as StopWhen, S as StopWhenSchema, bK as SubAgentApiInsert, dH as SubAgentApiInsertSchema, bJ as SubAgentApiSelect, dG as SubAgentApiSelectSchema, bL as SubAgentApiUpdate, dI as SubAgentApiUpdateSchema, cI as SubAgentArtifactComponentApiInsert, eS as SubAgentArtifactComponentApiInsertSchema, cH as SubAgentArtifactComponentApiSelect, eR as SubAgentArtifactComponentApiSelectSchema, cJ as SubAgentArtifactComponentApiUpdate, eT as SubAgentArtifactComponentApiUpdateSchema, cF as SubAgentArtifactComponentInsert, eP as SubAgentArtifactComponentInsertSchema, gy as SubAgentArtifactComponentListResponse, gw as SubAgentArtifactComponentResponse, cE as SubAgentArtifactComponentSelect, eO as SubAgentArtifactComponentSelectSchema, cG as SubAgentArtifactComponentUpdate, eQ as SubAgentArtifactComponentUpdateSchema, cz as SubAgentDataComponentApiInsert, eG as SubAgentDataComponentApiInsertSchema, cy as SubAgentDataComponentApiSelect, eF as SubAgentDataComponentApiSelectSchema, cA as SubAgentDataComponentApiUpdate, eH as SubAgentDataComponentApiUpdateSchema, cw as SubAgentDataComponentInsert, eD as SubAgentDataComponentInsertSchema, gx as SubAgentDataComponentListResponse, gv as SubAgentDataComponentResponse, cv as SubAgentDataComponentSelect, eC as SubAgentDataComponentSelectSchema, cx as SubAgentDataComponentUpdate, eE as SubAgentDataComponentUpdateSchema, d5 as SubAgentDefinition, dE as SubAgentInsertSchema, gg as SubAgentListResponse, bO as SubAgentRelationApiInsert, dN as SubAgentRelationApiInsertSchema, bN as SubAgentRelationApiSelect, dM as SubAgentRelationApiSelectSchema, bP as SubAgentRelationApiUpdate, dO as SubAgentRelationApiUpdateSchema, dK as SubAgentRelationInsertSchema, gr as SubAgentRelationListResponse, bQ as SubAgentRelationQuery, dP as SubAgentRelationQuerySchema, gb as SubAgentRelationResponse, bM as SubAgentRelationSelect, dJ as SubAgentRelationSelectSchema, dL as SubAgentRelationUpdateSchema, g0 as SubAgentResponse, dD as SubAgentSelectSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema, cX as SubAgentToolRelationApiInsert, fC as SubAgentToolRelationApiInsertSchema, cW as SubAgentToolRelationApiSelect, fB as SubAgentToolRelationApiSelectSchema, cY as SubAgentToolRelationApiUpdate, fD as SubAgentToolRelationApiUpdateSchema, cV as SubAgentToolRelationInsert, fz as SubAgentToolRelationInsertSchema, gs as SubAgentToolRelationListResponse, gc as SubAgentToolRelationResponse, cU as SubAgentToolRelationSelect, fy as SubAgentToolRelationSelectSchema, fA as SubAgentToolRelationUpdateSchema, dF as SubAgentUpdateSchema, db as SummaryEvent, ds as TOOL_STATUS_VALUES, aX as Task, bX as TaskApiInsert, e0 as TaskApiInsertSchema, bW as TaskApiSelect, d$ as TaskApiSelectSchema, bY as TaskApiUpdate, e1 as TaskApiUpdateSchema, bI as TaskArtifact, aZ as TaskArtifactUpdateEvent, bd as TaskIdParams, dZ as TaskInsertSchema, b4 as TaskNotCancelableError, b3 as TaskNotFoundError, bc as TaskPushNotificationConfig, be as TaskQueryParams, c1 as TaskRelationApiInsert, e6 as TaskRelationApiInsertSchema, c0 as TaskRelationApiSelect, e5 as TaskRelationApiSelectSchema, c2 as TaskRelationApiUpdate, e7 as TaskRelationApiUpdateSchema, b_ as TaskRelationInsert, e3 as TaskRelationInsertSchema, bZ as TaskRelationSelect, e2 as TaskRelationSelectSchema, b$ as TaskRelationUpdate, e4 as TaskRelationUpdateSchema, bs as TaskResubscriptionRequest, dY as TaskSelectSchema, aF as TaskState, aW as TaskStatus, aY as TaskStatusUpdateEvent, bV as TaskUpdate, d_ as TaskUpdateSchema, gB as TenantIdParamsSchema, gA as TenantParamsSchema, gF as TenantProjectAgentIdParamsSchema, gE as TenantProjectAgentParamsSchema, gH as TenantProjectAgentSubAgentIdParamsSchema, gG as TenantProjectAgentSubAgentParamsSchema, gD as TenantProjectIdParamsSchema, gC as TenantProjectParamsSchema, az as TextPart, c4 as ToolApiInsert, ff as ToolApiInsertSchema, c3 as ToolApiSelect, fe as ToolApiSelectSchema, c5 as ToolApiUpdate, fg as ToolApiUpdateSchema, d6 as ToolDefinition, ec as ToolInsertSchema, gi as ToolListResponse, g2 as ToolResponse, eb as ToolSelectSchema, e9 as ToolStatusSchema, fd as ToolUpdateSchema, dx as URL_SAFE_ID_PATTERN, b6 as UnsupportedOperationError, dt as VALID_RELATION_TYPES, dy as resourceIdSchema } from './utility-mGrlR4Ta.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-CxJkXzMM.js';
11
- export { E as agentRelations, H as agentToolRelationsRelations, a as agents, w as apiKeys, G as apiKeysRelations, j as artifactComponents, M as artifactComponentsRelations, b as contextCache, C as contextCacheRelations, c as contextConfigs, B as contextConfigsRelations, r as conversations, K as conversationsRelations, x as credentialReferences, I as credentialReferencesRelations, h as dataComponents, O as dataComponentsRelations, f as externalAgents, F as externalAgentsRelations, m as functionTools, T as functionToolsRelations, n as functions, R as functionsRelations, v as ledgerArtifacts, Q as ledgerArtifactsRelations, u as messages, L as messagesRelations, p as projects, z as projectsRelations, k as subAgentArtifactComponents, N as subAgentArtifactComponentsRelations, i as subAgentDataComponents, P as subAgentDataComponentsRelations, q as subAgentFunctionToolRelations, U as subAgentFunctionToolRelationsRelations, e as subAgentRelations, S as subAgentRelationsRelations, o as subAgentToolRelations, d as subAgents, D as subAgentsRelations, g as taskRelations, A as taskRelationsRelations, t as tasks, y as tasksRelations, l as tools, J as toolsRelations } from './schema-CxJkXzMM.js';
10
+ import { s as schema } from './schema-PgBNwsV-.js';
11
+ export { E as agentRelations, H as agentToolRelationsRelations, a as agents, w as apiKeys, G as apiKeysRelations, j as artifactComponents, M as artifactComponentsRelations, b as contextCache, C as contextCacheRelations, c as contextConfigs, B as contextConfigsRelations, r as conversations, K as conversationsRelations, x as credentialReferences, I as credentialReferencesRelations, h as dataComponents, O as dataComponentsRelations, f as externalAgents, F as externalAgentsRelations, m as functionTools, T as functionToolsRelations, n as functions, R as functionsRelations, v as ledgerArtifacts, Q as ledgerArtifactsRelations, u as messages, L as messagesRelations, p as projects, z as projectsRelations, k as subAgentArtifactComponents, N as subAgentArtifactComponentsRelations, i as subAgentDataComponents, P as subAgentDataComponentsRelations, q as subAgentFunctionToolRelations, U as subAgentFunctionToolRelationsRelations, e as subAgentRelations, S as subAgentRelationsRelations, o as subAgentToolRelations, d as subAgents, D as subAgentsRelations, g as taskRelations, A as taskRelationsRelations, t as tasks, y as tasksRelations, l as tools, J as toolsRelations } from './schema-PgBNwsV-.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';
@@ -765,13 +765,14 @@ declare class CredentialStuffer {
765
765
  declare const getAgentById: (db: DatabaseClient) => (params: {
766
766
  scopes: AgentScopeConfig;
767
767
  }) => Promise<{
768
- name: string;
768
+ tenantId: string;
769
+ projectId: string;
769
770
  id: string;
771
+ name: string;
772
+ description: string | null;
773
+ prompt: string | null;
770
774
  createdAt: string;
771
775
  updatedAt: string;
772
- projectId: string;
773
- tenantId: string;
774
- description: string | null;
775
776
  models: {
776
777
  base?: {
777
778
  model?: string | undefined;
@@ -791,7 +792,6 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
791
792
  } | null;
792
793
  defaultSubAgentId: string | null;
793
794
  contextConfigId: string | null;
794
- prompt: string | null;
795
795
  statusUpdates: {
796
796
  enabled?: boolean | undefined;
797
797
  numEvents?: number | undefined;
@@ -811,13 +811,14 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
811
811
  declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
812
812
  scopes: AgentScopeConfig;
813
813
  }) => Promise<{
814
- name: string;
814
+ tenantId: string;
815
+ projectId: string;
815
816
  id: string;
817
+ name: string;
818
+ description: string | null;
819
+ prompt: string | null;
816
820
  createdAt: string;
817
821
  updatedAt: string;
818
- projectId: string;
819
- tenantId: string;
820
- description: string | null;
821
822
  models: {
822
823
  base?: {
823
824
  model?: string | undefined;
@@ -837,7 +838,6 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
837
838
  } | null;
838
839
  defaultSubAgentId: string | null;
839
840
  contextConfigId: string | null;
840
- prompt: string | null;
841
841
  statusUpdates: {
842
842
  enabled?: boolean | undefined;
843
843
  numEvents?: number | undefined;
@@ -854,13 +854,15 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
854
854
  }[] | undefined;
855
855
  } | null;
856
856
  defaultSubAgent: {
857
- name: string;
857
+ tenantId: string;
858
+ projectId: string;
858
859
  id: string;
860
+ name: string;
861
+ description: string;
862
+ prompt: string;
863
+ agentId: string;
859
864
  createdAt: string;
860
865
  updatedAt: string;
861
- projectId: string;
862
- tenantId: string;
863
- description: string;
864
866
  models: {
865
867
  base?: {
866
868
  model?: string | undefined;
@@ -878,21 +880,20 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
878
880
  stopWhen: {
879
881
  stepCountIs?: number | undefined;
880
882
  } | null;
881
- agentId: string;
882
- prompt: string;
883
883
  conversationHistoryConfig: ConversationHistoryConfig | null;
884
884
  } | null;
885
885
  } | null>;
886
886
  declare const listAgents: (db: DatabaseClient) => (params: {
887
887
  scopes: ProjectScopeConfig;
888
888
  }) => Promise<{
889
- name: string;
889
+ tenantId: string;
890
+ projectId: string;
890
891
  id: string;
892
+ name: string;
893
+ description: string | null;
894
+ prompt: string | null;
891
895
  createdAt: string;
892
896
  updatedAt: string;
893
- projectId: string;
894
- tenantId: string;
895
- description: string | null;
896
897
  models: {
897
898
  base?: {
898
899
  model?: string | undefined;
@@ -912,7 +913,6 @@ declare const listAgents: (db: DatabaseClient) => (params: {
912
913
  } | null;
913
914
  defaultSubAgentId: string | null;
914
915
  contextConfigId: string | null;
915
- prompt: string | null;
916
916
  statusUpdates: {
917
917
  enabled?: boolean | undefined;
918
918
  numEvents?: number | undefined;
@@ -985,13 +985,14 @@ declare const listAgentsPaginated: (db: DatabaseClient) => (params: {
985
985
  };
986
986
  }>;
987
987
  declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promise<{
988
- name: string;
988
+ tenantId: string;
989
+ projectId: string;
989
990
  id: string;
991
+ name: string;
992
+ description: string | null;
993
+ prompt: string | null;
990
994
  createdAt: string;
991
995
  updatedAt: string;
992
- projectId: string;
993
- tenantId: string;
994
- description: string | null;
995
996
  models: {
996
997
  base?: {
997
998
  model?: string | undefined;
@@ -1011,7 +1012,6 @@ declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promis
1011
1012
  } | null;
1012
1013
  defaultSubAgentId: string | null;
1013
1014
  contextConfigId: string | null;
1014
- prompt: string | null;
1015
1015
  statusUpdates: {
1016
1016
  enabled?: boolean | undefined;
1017
1017
  numEvents?: number | undefined;
@@ -1032,13 +1032,14 @@ declare const updateAgent: (db: DatabaseClient) => (params: {
1032
1032
  scopes: AgentScopeConfig;
1033
1033
  data: AgentUpdate;
1034
1034
  }) => Promise<{
1035
- name: string;
1035
+ tenantId: string;
1036
+ projectId: string;
1036
1037
  id: string;
1038
+ name: string;
1039
+ description: string | null;
1040
+ prompt: string | null;
1037
1041
  createdAt: string;
1038
1042
  updatedAt: string;
1039
- projectId: string;
1040
- tenantId: string;
1041
- description: string | null;
1042
1043
  models: {
1043
1044
  base?: {
1044
1045
  model?: string | undefined;
@@ -1058,7 +1059,6 @@ declare const updateAgent: (db: DatabaseClient) => (params: {
1058
1059
  } | null;
1059
1060
  defaultSubAgentId: string | null;
1060
1061
  contextConfigId: string | null;
1061
- prompt: string | null;
1062
1062
  statusUpdates: {
1063
1063
  enabled?: boolean | undefined;
1064
1064
  numEvents?: number | undefined;
@@ -1112,49 +1112,49 @@ declare const getApiKeyById: (db: DatabaseClient) => (params: {
1112
1112
  scopes: ProjectScopeConfig;
1113
1113
  id: string;
1114
1114
  }) => Promise<{
1115
- name: string | null;
1116
- id: string;
1117
- createdAt: string;
1118
- updatedAt: string;
1119
- projectId: string;
1120
1115
  tenantId: string;
1116
+ projectId: string;
1117
+ id: string;
1118
+ name: string | null;
1121
1119
  agentId: string;
1122
- expiresAt: string | null;
1123
1120
  publicId: string;
1124
1121
  keyHash: string;
1125
1122
  keyPrefix: string;
1126
1123
  lastUsedAt: string | null;
1127
- } | undefined>;
1128
- declare const getApiKeyByPublicId: (db: DatabaseClient) => (publicId: string) => Promise<{
1129
- name: string | null;
1130
- id: string;
1124
+ expiresAt: string | null;
1131
1125
  createdAt: string;
1132
1126
  updatedAt: string;
1133
- projectId: string;
1127
+ } | undefined>;
1128
+ declare const getApiKeyByPublicId: (db: DatabaseClient) => (publicId: string) => Promise<{
1134
1129
  tenantId: string;
1130
+ projectId: string;
1131
+ id: string;
1132
+ name: string | null;
1135
1133
  agentId: string;
1136
- expiresAt: string | null;
1137
1134
  publicId: string;
1138
1135
  keyHash: string;
1139
1136
  keyPrefix: string;
1140
1137
  lastUsedAt: string | null;
1138
+ expiresAt: string | null;
1139
+ createdAt: string;
1140
+ updatedAt: string;
1141
1141
  } | undefined>;
1142
1142
  declare const listApiKeys: (db: DatabaseClient) => (params: {
1143
1143
  scopes: ProjectScopeConfig;
1144
1144
  agentId?: string;
1145
1145
  }) => Promise<{
1146
- name: string | null;
1147
- id: string;
1148
- createdAt: string;
1149
- updatedAt: string;
1150
- projectId: string;
1151
1146
  tenantId: string;
1147
+ projectId: string;
1148
+ id: string;
1149
+ name: string | null;
1152
1150
  agentId: string;
1153
- expiresAt: string | null;
1154
1151
  publicId: string;
1155
1152
  keyHash: string;
1156
1153
  keyPrefix: string;
1157
1154
  lastUsedAt: string | null;
1155
+ expiresAt: string | null;
1156
+ createdAt: string;
1157
+ updatedAt: string;
1158
1158
  }[]>;
1159
1159
  declare const listApiKeysPaginated: (db: DatabaseClient) => (params: {
1160
1160
  scopes: ProjectScopeConfig;
@@ -1170,36 +1170,36 @@ declare const listApiKeysPaginated: (db: DatabaseClient) => (params: {
1170
1170
  };
1171
1171
  }>;
1172
1172
  declare const createApiKey: (db: DatabaseClient) => (params: ApiKeyInsert) => Promise<{
1173
- name: string | null;
1174
- id: string;
1175
- createdAt: string;
1176
- updatedAt: string;
1177
- projectId: string;
1178
1173
  tenantId: string;
1174
+ projectId: string;
1175
+ id: string;
1176
+ name: string | null;
1179
1177
  agentId: string;
1180
- expiresAt: string | null;
1181
1178
  publicId: string;
1182
1179
  keyHash: string;
1183
1180
  keyPrefix: string;
1184
1181
  lastUsedAt: string | null;
1182
+ expiresAt: string | null;
1183
+ createdAt: string;
1184
+ updatedAt: string;
1185
1185
  }>;
1186
1186
  declare const updateApiKey: (db: DatabaseClient) => (params: {
1187
1187
  scopes: ProjectScopeConfig;
1188
1188
  id: string;
1189
1189
  data: ApiKeyUpdate;
1190
1190
  }) => Promise<{
1191
- name: string | null;
1192
- id: string;
1193
- createdAt: string;
1194
- updatedAt: string;
1195
- projectId: string;
1196
1191
  tenantId: string;
1192
+ projectId: string;
1193
+ id: string;
1194
+ name: string | null;
1197
1195
  agentId: string;
1198
- expiresAt: string | null;
1199
1196
  publicId: string;
1200
1197
  keyHash: string;
1201
1198
  keyPrefix: string;
1202
1199
  lastUsedAt: string | null;
1200
+ expiresAt: string | null;
1201
+ createdAt: string;
1202
+ updatedAt: string;
1203
1203
  }>;
1204
1204
  declare const deleteApiKey: (db: DatabaseClient) => (params: {
1205
1205
  scopes: ProjectScopeConfig;
@@ -1228,13 +1228,13 @@ declare const getArtifactComponentById: (db: DatabaseClient) => (params: {
1228
1228
  scopes: ProjectScopeConfig;
1229
1229
  id: string;
1230
1230
  }) => Promise<{
1231
- name: string;
1231
+ tenantId: string;
1232
+ projectId: string;
1232
1233
  id: string;
1234
+ name: string;
1235
+ description: string;
1233
1236
  createdAt: string;
1234
1237
  updatedAt: string;
1235
- projectId: string;
1236
- tenantId: string;
1237
- description: string;
1238
1238
  props: Record<string, unknown> | null;
1239
1239
  } | undefined>;
1240
1240
  declare const listArtifactComponents: (db: DatabaseClient) => (params: {
@@ -1262,13 +1262,13 @@ declare const listArtifactComponentsPaginated: (db: DatabaseClient) => (params:
1262
1262
  };
1263
1263
  }>;
1264
1264
  declare const createArtifactComponent: (db: DatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
1265
- name: string;
1265
+ tenantId: string;
1266
+ projectId: string;
1266
1267
  id: string;
1268
+ name: string;
1269
+ description: string;
1267
1270
  createdAt: string;
1268
1271
  updatedAt: string;
1269
- projectId: string;
1270
- tenantId: string;
1271
- description: string;
1272
1272
  props: Record<string, unknown> | null;
1273
1273
  }>;
1274
1274
  declare const updateArtifactComponent: (db: DatabaseClient) => (params: {
@@ -1276,13 +1276,13 @@ declare const updateArtifactComponent: (db: DatabaseClient) => (params: {
1276
1276
  id: string;
1277
1277
  data: ArtifactComponentUpdate;
1278
1278
  }) => Promise<{
1279
- name: string;
1279
+ tenantId: string;
1280
+ projectId: string;
1280
1281
  id: string;
1282
+ name: string;
1283
+ description: string;
1281
1284
  createdAt: string;
1282
1285
  updatedAt: string;
1283
- projectId: string;
1284
- tenantId: string;
1285
- description: string;
1286
1286
  props: Record<string, unknown> | null;
1287
1287
  }>;
1288
1288
  declare const deleteArtifactComponent: (db: DatabaseClient) => (params: {
@@ -1305,11 +1305,11 @@ declare const associateArtifactComponentWithAgent: (db: DatabaseClient) => (para
1305
1305
  scopes: SubAgentScopeConfig;
1306
1306
  artifactComponentId: string;
1307
1307
  }) => Promise<{
1308
- id: string;
1309
- createdAt: string;
1310
- projectId: string;
1311
1308
  tenantId: string;
1309
+ projectId: string;
1310
+ id: string;
1312
1311
  agentId: string;
1312
+ createdAt: string;
1313
1313
  subAgentId: string;
1314
1314
  artifactComponentId: string;
1315
1315
  }>;
@@ -1348,11 +1348,11 @@ declare const upsertAgentArtifactComponentRelation: (db: DatabaseClient) => (par
1348
1348
  scopes: SubAgentScopeConfig;
1349
1349
  artifactComponentId: string;
1350
1350
  }) => Promise<{
1351
- id: string;
1352
- createdAt: string;
1353
- projectId: string;
1354
1351
  tenantId: string;
1352
+ projectId: string;
1353
+ id: string;
1355
1354
  agentId: string;
1355
+ createdAt: string;
1356
1356
  subAgentId: string;
1357
1357
  artifactComponentId: string;
1358
1358
  } | null>;
@@ -1432,26 +1432,26 @@ declare const getContextConfigById: (db: DatabaseClient) => (params: {
1432
1432
  scopes: AgentScopeConfig;
1433
1433
  id: string;
1434
1434
  }) => Promise<{
1435
+ tenantId: string;
1436
+ projectId: string;
1435
1437
  id: string;
1438
+ agentId: string;
1436
1439
  createdAt: string;
1437
1440
  updatedAt: string;
1438
- projectId: string;
1439
- tenantId: string;
1440
1441
  headersSchema: unknown;
1441
1442
  contextVariables: Record<string, ContextFetchDefinition> | null;
1442
- agentId: string;
1443
1443
  } | undefined>;
1444
1444
  declare const listContextConfigs: (db: DatabaseClient) => (params: {
1445
1445
  scopes: AgentScopeConfig;
1446
1446
  }) => Promise<{
1447
+ tenantId: string;
1448
+ projectId: string;
1447
1449
  id: string;
1450
+ agentId: string;
1448
1451
  createdAt: string;
1449
1452
  updatedAt: string;
1450
- projectId: string;
1451
- tenantId: string;
1452
1453
  headersSchema: unknown;
1453
1454
  contextVariables: Record<string, ContextFetchDefinition> | null;
1454
- agentId: string;
1455
1455
  }[]>;
1456
1456
  declare const listContextConfigsPaginated: (db: DatabaseClient) => (params: {
1457
1457
  scopes: AgentScopeConfig;
@@ -1466,28 +1466,28 @@ declare const listContextConfigsPaginated: (db: DatabaseClient) => (params: {
1466
1466
  };
1467
1467
  }>;
1468
1468
  declare const createContextConfig: (db: DatabaseClient) => (params: ContextConfigInsert) => Promise<{
1469
+ tenantId: string;
1470
+ projectId: string;
1469
1471
  id: string;
1472
+ agentId: string;
1470
1473
  createdAt: string;
1471
1474
  updatedAt: string;
1472
- projectId: string;
1473
- tenantId: string;
1474
1475
  headersSchema: unknown;
1475
1476
  contextVariables: Record<string, ContextFetchDefinition> | null;
1476
- agentId: string;
1477
1477
  }>;
1478
1478
  declare const updateContextConfig: (db: DatabaseClient) => (params: {
1479
1479
  scopes: AgentScopeConfig;
1480
1480
  id: string;
1481
1481
  data: Partial<ContextConfigUpdate>;
1482
1482
  }) => Promise<{
1483
+ tenantId: string;
1484
+ projectId: string;
1483
1485
  id: string;
1486
+ agentId: string;
1484
1487
  createdAt: string;
1485
1488
  updatedAt: string;
1486
- projectId: string;
1487
- tenantId: string;
1488
1489
  headersSchema: unknown;
1489
1490
  contextVariables: Record<string, ContextFetchDefinition> | null;
1490
- agentId: string;
1491
1491
  }>;
1492
1492
  declare const deleteContextConfig: (db: DatabaseClient) => (params: {
1493
1493
  scopes: AgentScopeConfig;
@@ -1506,14 +1506,14 @@ declare const countContextConfigs: (db: DatabaseClient) => (params: {
1506
1506
  declare const upsertContextConfig: (db: DatabaseClient) => (params: {
1507
1507
  data: ContextConfigInsert;
1508
1508
  }) => Promise<{
1509
+ tenantId: string;
1510
+ projectId: string;
1509
1511
  id: string;
1512
+ agentId: string;
1510
1513
  createdAt: string;
1511
1514
  updatedAt: string;
1512
- projectId: string;
1513
- tenantId: string;
1514
1515
  headersSchema: unknown;
1515
1516
  contextVariables: Record<string, ContextFetchDefinition> | null;
1516
- agentId: string;
1517
1517
  }>;
1518
1518
 
1519
1519
  declare const listConversations: (db: DatabaseClient) => (params: {
@@ -1525,12 +1525,12 @@ declare const listConversations: (db: DatabaseClient) => (params: {
1525
1525
  total: number;
1526
1526
  }>;
1527
1527
  declare const createConversation: (db: DatabaseClient) => (params: ConversationInsert) => Promise<{
1528
+ tenantId: string;
1529
+ projectId: string;
1528
1530
  id: string;
1531
+ title: string | null;
1529
1532
  createdAt: string;
1530
1533
  updatedAt: string;
1531
- projectId: string;
1532
- tenantId: string;
1533
- title: string | null;
1534
1534
  metadata: ConversationMetadata | null;
1535
1535
  userId: string | null;
1536
1536
  activeSubAgentId: string;
@@ -1541,12 +1541,12 @@ declare const updateConversation: (db: DatabaseClient) => (params: {
1541
1541
  conversationId: string;
1542
1542
  data: ConversationUpdate;
1543
1543
  }) => Promise<{
1544
+ tenantId: string;
1545
+ projectId: string;
1544
1546
  id: string;
1547
+ title: string | null;
1545
1548
  createdAt: string;
1546
1549
  updatedAt: string;
1547
- projectId: string;
1548
- tenantId: string;
1549
- title: string | null;
1550
1550
  metadata: ConversationMetadata | null;
1551
1551
  userId: string | null;
1552
1552
  activeSubAgentId: string;
@@ -1561,12 +1561,12 @@ declare const updateConversationActiveAgent: (db: DatabaseClient) => (params: {
1561
1561
  conversationId: string;
1562
1562
  activeSubAgentId: string;
1563
1563
  }) => Promise<{
1564
+ tenantId: string;
1565
+ projectId: string;
1564
1566
  id: string;
1567
+ title: string | null;
1565
1568
  createdAt: string;
1566
1569
  updatedAt: string;
1567
- projectId: string;
1568
- tenantId: string;
1569
- title: string | null;
1570
1570
  metadata: ConversationMetadata | null;
1571
1571
  userId: string | null;
1572
1572
  activeSubAgentId: string;
@@ -1576,12 +1576,12 @@ declare const getConversation: (db: DatabaseClient) => (params: {
1576
1576
  scopes: ProjectScopeConfig;
1577
1577
  conversationId: string;
1578
1578
  }) => Promise<{
1579
+ tenantId: string;
1580
+ projectId: string;
1579
1581
  id: string;
1582
+ title: string | null;
1580
1583
  createdAt: string;
1581
1584
  updatedAt: string;
1582
- projectId: string;
1583
- tenantId: string;
1584
- title: string | null;
1585
1585
  metadata: ConversationMetadata | null;
1586
1586
  userId: string | null;
1587
1587
  activeSubAgentId: string;
@@ -1600,12 +1600,12 @@ declare const createOrGetConversation: (db: DatabaseClient) => (input: Conversat
1600
1600
  metadata?: ConversationMetadata | null | undefined;
1601
1601
  contextConfigId?: string | undefined;
1602
1602
  } | {
1603
+ tenantId: string;
1604
+ projectId: string;
1603
1605
  id: string;
1606
+ title: string | null;
1604
1607
  createdAt: string;
1605
1608
  updatedAt: string;
1606
- projectId: string;
1607
- tenantId: string;
1608
- title: string | null;
1609
1609
  metadata: ConversationMetadata | null;
1610
1610
  userId: string | null;
1611
1611
  activeSubAgentId: string;
@@ -1626,12 +1626,12 @@ declare const getActiveAgentForConversation: (db: DatabaseClient) => (params: {
1626
1626
  scopes: ProjectScopeConfig;
1627
1627
  conversationId: string;
1628
1628
  }) => Promise<{
1629
+ tenantId: string;
1630
+ projectId: string;
1629
1631
  id: string;
1632
+ title: string | null;
1630
1633
  createdAt: string;
1631
1634
  updatedAt: string;
1632
- projectId: string;
1633
- tenantId: string;
1634
- title: string | null;
1635
1635
  metadata: ConversationMetadata | null;
1636
1636
  userId: string | null;
1637
1637
  activeSubAgentId: string;
@@ -1795,11 +1795,11 @@ declare const associateDataComponentWithAgent: (db: DatabaseClient) => (params:
1795
1795
  scopes: SubAgentScopeConfig;
1796
1796
  dataComponentId: string;
1797
1797
  }) => Promise<{
1798
- id: string;
1799
- createdAt: string;
1800
- projectId: string;
1801
1798
  tenantId: string;
1799
+ projectId: string;
1800
+ id: string;
1802
1801
  agentId: string;
1802
+ createdAt: string;
1803
1803
  subAgentId: string;
1804
1804
  dataComponentId: string;
1805
1805
  }>;
@@ -1837,11 +1837,11 @@ declare const upsertAgentDataComponentRelation: (db: DatabaseClient) => (params:
1837
1837
  scopes: SubAgentScopeConfig;
1838
1838
  dataComponentId: string;
1839
1839
  }) => Promise<{
1840
- id: string;
1841
- createdAt: string;
1842
- projectId: string;
1843
1840
  tenantId: string;
1841
+ projectId: string;
1842
+ id: string;
1844
1843
  agentId: string;
1844
+ createdAt: string;
1845
1845
  subAgentId: string;
1846
1846
  dataComponentId: string;
1847
1847
  } | null>;
@@ -2016,14 +2016,14 @@ declare const createFunctionTool: (db: DatabaseClient) => (params: {
2016
2016
  data: FunctionToolApiInsert;
2017
2017
  scopes: AgentScopeConfig;
2018
2018
  }) => Promise<{
2019
- name: string;
2020
- id: string;
2021
- createdAt: string;
2022
- updatedAt: string;
2023
- projectId: string;
2024
2019
  tenantId: string;
2020
+ projectId: string;
2021
+ id: string;
2022
+ name: string;
2025
2023
  description: string | null;
2026
2024
  agentId: string;
2025
+ createdAt: string;
2026
+ updatedAt: string;
2027
2027
  functionId: string;
2028
2028
  }>;
2029
2029
  /**
@@ -2034,14 +2034,14 @@ declare const updateFunctionTool: (db: DatabaseClient) => (params: {
2034
2034
  functionToolId: string;
2035
2035
  data: FunctionToolApiUpdate;
2036
2036
  }) => Promise<{
2037
- name: string;
2038
- id: string;
2039
- createdAt: string;
2040
- updatedAt: string;
2041
- projectId: string;
2042
2037
  tenantId: string;
2038
+ projectId: string;
2039
+ id: string;
2040
+ name: string;
2043
2041
  description: string | null;
2044
2042
  agentId: string;
2043
+ createdAt: string;
2044
+ updatedAt: string;
2045
2045
  functionId: string;
2046
2046
  }>;
2047
2047
  /**
@@ -2055,17 +2055,17 @@ declare const deleteFunctionTool: (db: DatabaseClient) => (params: {
2055
2055
  * Upsert a function tool (create if it doesn't exist, update if it does)
2056
2056
  */
2057
2057
  declare const upsertFunctionTool: (db: DatabaseClient) => (params: {
2058
- data: FunctionToolApiInsert;
2059
- scopes: AgentScopeConfig;
2060
- }) => Promise<{
2061
- name: string;
2062
- id: string;
2063
- createdAt: string;
2064
- updatedAt: string;
2065
- projectId: string;
2058
+ data: FunctionToolApiInsert;
2059
+ scopes: AgentScopeConfig;
2060
+ }) => Promise<{
2066
2061
  tenantId: string;
2062
+ projectId: string;
2063
+ id: string;
2064
+ name: string;
2067
2065
  description: string | null;
2068
2066
  agentId: string;
2067
+ createdAt: string;
2068
+ updatedAt: string;
2069
2069
  functionId: string;
2070
2070
  }>;
2071
2071
  declare const getFunctionToolsForSubAgent: (db: DatabaseClient) => (params: {
@@ -2222,11 +2222,11 @@ declare const getMessageById: (db: DatabaseClient) => (params: {
2222
2222
  scopes: ProjectScopeConfig;
2223
2223
  messageId: string;
2224
2224
  }) => Promise<{
2225
+ tenantId: string;
2226
+ projectId: string;
2225
2227
  id: string;
2226
2228
  createdAt: string;
2227
2229
  updatedAt: string;
2228
- projectId: string;
2229
- tenantId: string;
2230
2230
  metadata: MessageMetadata | null;
2231
2231
  content: MessageContent;
2232
2232
  conversationId: string;
@@ -2343,11 +2343,11 @@ declare const getVisibleMessages: (db: DatabaseClient) => (params: {
2343
2343
  id: string;
2344
2344
  }[]>;
2345
2345
  declare const createMessage: (db: DatabaseClient) => (params: MessageInsert) => Promise<{
2346
+ tenantId: string;
2347
+ projectId: string;
2346
2348
  id: string;
2347
2349
  createdAt: string;
2348
2350
  updatedAt: string;
2349
- projectId: string;
2350
- tenantId: string;
2351
2351
  metadata: MessageMetadata | null;
2352
2352
  content: MessageContent;
2353
2353
  conversationId: string;
@@ -2368,11 +2368,11 @@ declare const updateMessage: (db: DatabaseClient) => (params: {
2368
2368
  messageId: string;
2369
2369
  data: MessageUpdate;
2370
2370
  }) => Promise<{
2371
+ tenantId: string;
2372
+ projectId: string;
2371
2373
  id: string;
2372
2374
  createdAt: string;
2373
2375
  updatedAt: string;
2374
- projectId: string;
2375
- tenantId: string;
2376
2376
  metadata: MessageMetadata | null;
2377
2377
  content: MessageContent;
2378
2378
  conversationId: string;
@@ -2392,11 +2392,11 @@ declare const deleteMessage: (db: DatabaseClient) => (params: {
2392
2392
  scopes: ProjectScopeConfig;
2393
2393
  messageId: string;
2394
2394
  }) => Promise<{
2395
+ tenantId: string;
2396
+ projectId: string;
2395
2397
  id: string;
2396
2398
  createdAt: string;
2397
2399
  updatedAt: string;
2398
- projectId: string;
2399
- tenantId: string;
2400
2400
  metadata: MessageMetadata | null;
2401
2401
  content: MessageContent;
2402
2402
  conversationId: string;
@@ -2515,12 +2515,12 @@ declare const getAgentRelationById: (db: DatabaseClient) => (params: {
2515
2515
  scopes: AgentScopeConfig;
2516
2516
  relationId: string;
2517
2517
  }) => Promise<{
2518
+ tenantId: string;
2519
+ projectId: string;
2518
2520
  id: string;
2521
+ agentId: string;
2519
2522
  createdAt: string;
2520
2523
  updatedAt: string;
2521
- projectId: string;
2522
- tenantId: string;
2523
- agentId: string;
2524
2524
  sourceSubAgentId: string;
2525
2525
  targetSubAgentId: string | null;
2526
2526
  externalSubAgentId: string | null;
@@ -2552,12 +2552,12 @@ declare const listAgentRelations: (db: DatabaseClient) => (params: {
2552
2552
  declare const getAgentRelations: (db: DatabaseClient) => (params: {
2553
2553
  scopes: SubAgentScopeConfig;
2554
2554
  }) => Promise<{
2555
+ tenantId: string;
2556
+ projectId: string;
2555
2557
  id: string;
2558
+ agentId: string;
2556
2559
  createdAt: string;
2557
2560
  updatedAt: string;
2558
- projectId: string;
2559
- tenantId: string;
2560
- agentId: string;
2561
2561
  sourceSubAgentId: string;
2562
2562
  targetSubAgentId: string | null;
2563
2563
  externalSubAgentId: string | null;
@@ -2566,12 +2566,12 @@ declare const getAgentRelations: (db: DatabaseClient) => (params: {
2566
2566
  declare const getAgentRelationsByAgent: (db: DatabaseClient) => (params: {
2567
2567
  scopes: AgentScopeConfig;
2568
2568
  }) => Promise<{
2569
+ tenantId: string;
2570
+ projectId: string;
2569
2571
  id: string;
2572
+ agentId: string;
2570
2573
  createdAt: string;
2571
2574
  updatedAt: string;
2572
- projectId: string;
2573
- tenantId: string;
2574
- agentId: string;
2575
2575
  sourceSubAgentId: string;
2576
2576
  targetSubAgentId: string | null;
2577
2577
  externalSubAgentId: string | null;
@@ -2671,12 +2671,12 @@ declare const getRelatedAgentsForAgent: (db: DatabaseClient) => (params: {
2671
2671
  }[];
2672
2672
  }>;
2673
2673
  declare const createSubAgentRelation: (db: DatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
2674
+ tenantId: string;
2675
+ projectId: string;
2674
2676
  id: string;
2677
+ agentId: string;
2675
2678
  createdAt: string;
2676
2679
  updatedAt: string;
2677
- projectId: string;
2678
- tenantId: string;
2679
- agentId: string;
2680
2680
  sourceSubAgentId: string;
2681
2681
  targetSubAgentId: string | null;
2682
2682
  externalSubAgentId: string | null;
@@ -2692,12 +2692,12 @@ declare const getAgentRelationByParams: (db: DatabaseClient) => (params: {
2692
2692
  externalSubAgentId?: string;
2693
2693
  relationType: string;
2694
2694
  }) => Promise<{
2695
+ tenantId: string;
2696
+ projectId: string;
2695
2697
  id: string;
2698
+ agentId: string;
2696
2699
  createdAt: string;
2697
2700
  updatedAt: string;
2698
- projectId: string;
2699
- tenantId: string;
2700
- agentId: string;
2701
2701
  sourceSubAgentId: string;
2702
2702
  targetSubAgentId: string | null;
2703
2703
  externalSubAgentId: string | null;
@@ -2707,24 +2707,24 @@ declare const getAgentRelationByParams: (db: DatabaseClient) => (params: {
2707
2707
  * Upsert agent relation (create if it doesn't exist, no-op if it does)
2708
2708
  */
2709
2709
  declare const upsertSubAgentRelation: (db: DatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
2710
+ tenantId: string;
2711
+ projectId: string;
2710
2712
  id: string;
2713
+ agentId: string;
2711
2714
  createdAt: string;
2712
2715
  updatedAt: string;
2713
- projectId: string;
2714
- tenantId: string;
2715
- agentId: string;
2716
2716
  sourceSubAgentId: string;
2717
2717
  targetSubAgentId: string | null;
2718
2718
  externalSubAgentId: string | null;
2719
2719
  relationType: string | null;
2720
2720
  }>;
2721
2721
  declare const createExternalAgentRelation: (db: DatabaseClient) => (params: ExternalSubAgentRelationInsert) => Promise<{
2722
+ tenantId: string;
2723
+ projectId: string;
2722
2724
  id: string;
2725
+ agentId: string;
2723
2726
  createdAt: string;
2724
2727
  updatedAt: string;
2725
- projectId: string;
2726
- tenantId: string;
2727
- agentId: string;
2728
2728
  sourceSubAgentId: string;
2729
2729
  targetSubAgentId: string | null;
2730
2730
  externalSubAgentId: string | null;
@@ -2735,12 +2735,12 @@ declare const updateAgentRelation: (db: DatabaseClient) => (params: {
2735
2735
  relationId: string;
2736
2736
  data: SubAgentRelationUpdate;
2737
2737
  }) => Promise<{
2738
+ tenantId: string;
2739
+ projectId: string;
2738
2740
  id: string;
2741
+ agentId: string;
2739
2742
  createdAt: string;
2740
2743
  updatedAt: string;
2741
- projectId: string;
2742
- tenantId: string;
2743
- agentId: string;
2744
2744
  sourceSubAgentId: string;
2745
2745
  targetSubAgentId: string | null;
2746
2746
  externalSubAgentId: string | null;
@@ -2763,32 +2763,32 @@ declare const createAgentToolRelation: (db: DatabaseClient) => (params: {
2763
2763
  headers?: Record<string, string> | null;
2764
2764
  };
2765
2765
  }) => Promise<{
2766
- headers: Record<string, string> | null;
2766
+ tenantId: string;
2767
+ projectId: string;
2767
2768
  id: string;
2769
+ agentId: string;
2768
2770
  createdAt: string;
2769
2771
  updatedAt: string;
2770
- projectId: string;
2771
- tenantId: string;
2772
- agentId: string;
2772
+ headers: Record<string, string> | null;
2773
+ toolId: string;
2773
2774
  selectedTools: string[] | null;
2774
2775
  subAgentId: string;
2775
- toolId: string;
2776
2776
  }>;
2777
2777
  declare const updateAgentToolRelation: (db: DatabaseClient) => (params: {
2778
2778
  scopes: AgentScopeConfig;
2779
2779
  relationId: string;
2780
2780
  data: SubAgentToolRelationUpdate;
2781
2781
  }) => Promise<{
2782
- headers: Record<string, string> | null;
2782
+ tenantId: string;
2783
+ projectId: string;
2783
2784
  id: string;
2785
+ agentId: string;
2784
2786
  createdAt: string;
2785
2787
  updatedAt: string;
2786
- projectId: string;
2787
- tenantId: string;
2788
- agentId: string;
2788
+ headers: Record<string, string> | null;
2789
+ toolId: string;
2789
2790
  selectedTools: string[] | null;
2790
2791
  subAgentId: string;
2791
- toolId: string;
2792
2792
  }>;
2793
2793
  declare const deleteAgentToolRelation: (db: DatabaseClient) => (params: {
2794
2794
  scopes: AgentScopeConfig;
@@ -2801,16 +2801,16 @@ declare const getAgentToolRelationById: (db: DatabaseClient) => (params: {
2801
2801
  scopes: SubAgentScopeConfig;
2802
2802
  relationId: string;
2803
2803
  }) => Promise<{
2804
- headers: Record<string, string> | null;
2804
+ tenantId: string;
2805
+ projectId: string;
2805
2806
  id: string;
2807
+ agentId: string;
2806
2808
  createdAt: string;
2807
2809
  updatedAt: string;
2808
- projectId: string;
2809
- tenantId: string;
2810
- agentId: string;
2810
+ headers: Record<string, string> | null;
2811
+ toolId: string;
2811
2812
  selectedTools: string[] | null;
2812
2813
  subAgentId: string;
2813
- toolId: string;
2814
2814
  } | undefined>;
2815
2815
  declare const getAgentToolRelationByAgent: (db: DatabaseClient) => (params: {
2816
2816
  scopes: SubAgentScopeConfig;
@@ -2980,13 +2980,15 @@ declare const getSubAgentById: (db: DatabaseClient) => (params: {
2980
2980
  scopes: AgentScopeConfig;
2981
2981
  subAgentId: string;
2982
2982
  }) => Promise<{
2983
- name: string;
2983
+ tenantId: string;
2984
+ projectId: string;
2984
2985
  id: string;
2986
+ name: string;
2987
+ description: string;
2988
+ prompt: string;
2989
+ agentId: string;
2985
2990
  createdAt: string;
2986
2991
  updatedAt: string;
2987
- projectId: string;
2988
- tenantId: string;
2989
- description: string;
2990
2992
  models: {
2991
2993
  base?: {
2992
2994
  model?: string | undefined;
@@ -3004,20 +3006,20 @@ declare const getSubAgentById: (db: DatabaseClient) => (params: {
3004
3006
  stopWhen: {
3005
3007
  stepCountIs?: number | undefined;
3006
3008
  } | null;
3007
- agentId: string;
3008
- prompt: string;
3009
3009
  conversationHistoryConfig: ConversationHistoryConfig | null;
3010
3010
  } | undefined>;
3011
3011
  declare const listSubAgents: (db: DatabaseClient) => (params: {
3012
3012
  scopes: AgentScopeConfig;
3013
3013
  }) => Promise<{
3014
- name: string;
3014
+ tenantId: string;
3015
+ projectId: string;
3015
3016
  id: string;
3017
+ name: string;
3018
+ description: string;
3019
+ prompt: string;
3020
+ agentId: string;
3016
3021
  createdAt: string;
3017
3022
  updatedAt: string;
3018
- projectId: string;
3019
- tenantId: string;
3020
- description: string;
3021
3023
  models: {
3022
3024
  base?: {
3023
3025
  model?: string | undefined;
@@ -3035,8 +3037,6 @@ declare const listSubAgents: (db: DatabaseClient) => (params: {
3035
3037
  stopWhen: {
3036
3038
  stepCountIs?: number | undefined;
3037
3039
  } | null;
3038
- agentId: string;
3039
- prompt: string;
3040
3040
  conversationHistoryConfig: ConversationHistoryConfig | null;
3041
3041
  }[]>;
3042
3042
  declare const listSubAgentsPaginated: (db: DatabaseClient) => (params: {
@@ -3080,13 +3080,15 @@ declare const listSubAgentsPaginated: (db: DatabaseClient) => (params: {
3080
3080
  };
3081
3081
  }>;
3082
3082
  declare const createSubAgent: (db: DatabaseClient) => (params: SubAgentInsert) => Promise<{
3083
- name: string;
3083
+ tenantId: string;
3084
+ projectId: string;
3084
3085
  id: string;
3086
+ name: string;
3087
+ description: string;
3088
+ prompt: string;
3089
+ agentId: string;
3085
3090
  createdAt: string;
3086
3091
  updatedAt: string;
3087
- projectId: string;
3088
- tenantId: string;
3089
- description: string;
3090
3092
  models: {
3091
3093
  base?: {
3092
3094
  model?: string | undefined;
@@ -3104,8 +3106,6 @@ declare const createSubAgent: (db: DatabaseClient) => (params: SubAgentInsert) =
3104
3106
  stopWhen: {
3105
3107
  stepCountIs?: number | undefined;
3106
3108
  } | null;
3107
- agentId: string;
3108
- prompt: string;
3109
3109
  conversationHistoryConfig: ConversationHistoryConfig | null;
3110
3110
  }>;
3111
3111
  declare const updateSubAgent: (db: DatabaseClient) => (params: {
@@ -3113,13 +3113,15 @@ declare const updateSubAgent: (db: DatabaseClient) => (params: {
3113
3113
  subAgentId: string;
3114
3114
  data: SubAgentUpdate;
3115
3115
  }) => Promise<{
3116
- name: string;
3116
+ tenantId: string;
3117
+ projectId: string;
3117
3118
  id: string;
3119
+ name: string;
3120
+ description: string;
3121
+ prompt: string;
3122
+ agentId: string;
3118
3123
  createdAt: string;
3119
3124
  updatedAt: string;
3120
- projectId: string;
3121
- tenantId: string;
3122
- description: string;
3123
3125
  models: {
3124
3126
  base?: {
3125
3127
  model?: string | undefined;
@@ -3137,8 +3139,6 @@ declare const updateSubAgent: (db: DatabaseClient) => (params: {
3137
3139
  stopWhen: {
3138
3140
  stepCountIs?: number | undefined;
3139
3141
  } | null;
3140
- agentId: string;
3141
- prompt: string;
3142
3142
  conversationHistoryConfig: ConversationHistoryConfig | null;
3143
3143
  }>;
3144
3144
  /**
@@ -3185,12 +3185,12 @@ declare const getSubAgentsByIds: (db: DatabaseClient) => (params: {
3185
3185
  }[]>;
3186
3186
 
3187
3187
  declare const createTask: (db: DatabaseClient) => (params: TaskInsert) => Promise<{
3188
+ tenantId: string;
3189
+ projectId: string;
3188
3190
  id: string;
3191
+ agentId: string;
3189
3192
  createdAt: string;
3190
3193
  updatedAt: string;
3191
- projectId: string;
3192
- tenantId: string;
3193
- agentId: string;
3194
3194
  status: string;
3195
3195
  metadata: TaskMetadataConfig | null;
3196
3196
  contextId: string;
@@ -3206,12 +3206,12 @@ declare const updateTask: (db: DatabaseClient) => (params: {
3206
3206
  metadata?: any;
3207
3207
  };
3208
3208
  }) => Promise<{
3209
+ tenantId: string;
3210
+ projectId: string;
3209
3211
  id: string;
3212
+ agentId: string;
3210
3213
  createdAt: string;
3211
3214
  updatedAt: string;
3212
- projectId: string;
3213
- tenantId: string;
3214
- agentId: string;
3215
3215
  status: string;
3216
3216
  metadata: TaskMetadataConfig | null;
3217
3217
  contextId: string;
@@ -3226,20 +3226,20 @@ declare const getToolById: (db: DatabaseClient) => (params: {
3226
3226
  scopes: ProjectScopeConfig;
3227
3227
  toolId: string;
3228
3228
  }) => Promise<{
3229
- name: string;
3230
- headers: Record<string, string> | null;
3231
- id: string;
3232
- createdAt: string;
3233
- updatedAt: string;
3234
- projectId: string;
3235
3229
  tenantId: string;
3230
+ projectId: string;
3231
+ id: string;
3232
+ name: string;
3236
3233
  description: string | null;
3237
- credentialReferenceId: string | null;
3238
- capabilities: ToolServerCapabilities | null;
3239
3234
  config: {
3240
3235
  type: "mcp";
3241
3236
  mcp: ToolMcpConfig;
3242
3237
  };
3238
+ credentialReferenceId: string | null;
3239
+ createdAt: string;
3240
+ updatedAt: string;
3241
+ headers: Record<string, string> | null;
3242
+ capabilities: ToolServerCapabilities | null;
3243
3243
  imageUrl: string | null;
3244
3244
  lastError: string | null;
3245
3245
  } | null>;
@@ -3273,20 +3273,20 @@ declare const listTools: (db: DatabaseClient) => (params: {
3273
3273
  };
3274
3274
  }>;
3275
3275
  declare const createTool: (db: DatabaseClient) => (params: ToolInsert) => Promise<{
3276
- name: string;
3277
- headers: Record<string, string> | null;
3278
- id: string;
3279
- createdAt: string;
3280
- updatedAt: string;
3281
- projectId: string;
3282
3276
  tenantId: string;
3277
+ projectId: string;
3278
+ id: string;
3279
+ name: string;
3283
3280
  description: string | null;
3284
- credentialReferenceId: string | null;
3285
- capabilities: ToolServerCapabilities | null;
3286
3281
  config: {
3287
3282
  type: "mcp";
3288
3283
  mcp: ToolMcpConfig;
3289
3284
  };
3285
+ credentialReferenceId: string | null;
3286
+ createdAt: string;
3287
+ updatedAt: string;
3288
+ headers: Record<string, string> | null;
3289
+ capabilities: ToolServerCapabilities | null;
3290
3290
  imageUrl: string | null;
3291
3291
  lastError: string | null;
3292
3292
  }>;
@@ -3295,20 +3295,20 @@ declare const updateTool: (db: DatabaseClient) => (params: {
3295
3295
  toolId: string;
3296
3296
  data: ToolUpdate;
3297
3297
  }) => Promise<{
3298
- name: string;
3299
- headers: Record<string, string> | null;
3300
- id: string;
3301
- createdAt: string;
3302
- updatedAt: string;
3303
- projectId: string;
3304
3298
  tenantId: string;
3299
+ projectId: string;
3300
+ id: string;
3301
+ name: string;
3305
3302
  description: string | null;
3306
- credentialReferenceId: string | null;
3307
- capabilities: ToolServerCapabilities | null;
3308
3303
  config: {
3309
3304
  type: "mcp";
3310
3305
  mcp: ToolMcpConfig;
3311
3306
  };
3307
+ credentialReferenceId: string | null;
3308
+ createdAt: string;
3309
+ updatedAt: string;
3310
+ headers: Record<string, string> | null;
3311
+ capabilities: ToolServerCapabilities | null;
3312
3312
  imageUrl: string | null;
3313
3313
  lastError: string | null;
3314
3314
  }>;
@@ -3323,32 +3323,32 @@ declare const addToolToAgent: (db: DatabaseClient) => (params: {
3323
3323
  selectedTools?: string[] | null;
3324
3324
  headers?: Record<string, string> | null;
3325
3325
  }) => Promise<{
3326
- headers: Record<string, string> | null;
3326
+ tenantId: string;
3327
+ projectId: string;
3327
3328
  id: string;
3329
+ agentId: string;
3328
3330
  createdAt: string;
3329
3331
  updatedAt: string;
3330
- projectId: string;
3331
- tenantId: string;
3332
- agentId: string;
3332
+ headers: Record<string, string> | null;
3333
+ toolId: string;
3333
3334
  selectedTools: string[] | null;
3334
3335
  subAgentId: string;
3335
- toolId: string;
3336
3336
  }>;
3337
3337
  declare const removeToolFromAgent: (db: DatabaseClient) => (params: {
3338
3338
  scopes: AgentScopeConfig;
3339
3339
  subAgentId: string;
3340
3340
  toolId: string;
3341
3341
  }) => Promise<{
3342
- headers: Record<string, string> | null;
3342
+ tenantId: string;
3343
+ projectId: string;
3343
3344
  id: string;
3345
+ agentId: string;
3344
3346
  createdAt: string;
3345
3347
  updatedAt: string;
3346
- projectId: string;
3347
- tenantId: string;
3348
- agentId: string;
3348
+ headers: Record<string, string> | null;
3349
+ toolId: string;
3349
3350
  selectedTools: string[] | null;
3350
3351
  subAgentId: string;
3351
- toolId: string;
3352
3352
  }>;
3353
3353
  /**
3354
3354
  * Upsert agent-tool relation (create if it doesn't exist, update if it does)
@@ -3361,16 +3361,16 @@ declare const upsertSubAgentToolRelation: (db: DatabaseClient) => (params: {
3361
3361
  headers?: Record<string, string> | null;
3362
3362
  relationId?: string;
3363
3363
  }) => Promise<{
3364
- headers: Record<string, string> | null;
3364
+ tenantId: string;
3365
+ projectId: string;
3365
3366
  id: string;
3367
+ agentId: string;
3366
3368
  createdAt: string;
3367
3369
  updatedAt: string;
3368
- projectId: string;
3369
- tenantId: string;
3370
- agentId: string;
3370
+ headers: Record<string, string> | null;
3371
+ toolId: string;
3371
3372
  selectedTools: string[] | null;
3372
3373
  subAgentId: string;
3373
- toolId: string;
3374
3374
  }>;
3375
3375
  /**
3376
3376
  * Upsert a tool (create if it doesn't exist, update if it does)
@@ -3378,20 +3378,20 @@ declare const upsertSubAgentToolRelation: (db: DatabaseClient) => (params: {
3378
3378
  declare const upsertTool: (db: DatabaseClient) => (params: {
3379
3379
  data: ToolInsert;
3380
3380
  }) => Promise<{
3381
- name: string;
3382
- headers: Record<string, string> | null;
3383
- id: string;
3384
- createdAt: string;
3385
- updatedAt: string;
3386
- projectId: string;
3387
3381
  tenantId: string;
3382
+ projectId: string;
3383
+ id: string;
3384
+ name: string;
3388
3385
  description: string | null;
3389
- credentialReferenceId: string | null;
3390
- capabilities: ToolServerCapabilities | null;
3391
3386
  config: {
3392
3387
  type: "mcp";
3393
3388
  mcp: ToolMcpConfig;
3394
3389
  };
3390
+ credentialReferenceId: string | null;
3391
+ createdAt: string;
3392
+ updatedAt: string;
3393
+ headers: Record<string, string> | null;
3394
+ capabilities: ToolServerCapabilities | null;
3395
3395
  imageUrl: string | null;
3396
3396
  lastError: string | null;
3397
3397
  }>;