@inkeep/agents-core 0.22.11 → 0.22.12

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.cts CHANGED
@@ -1,13 +1,13 @@
1
1
  export { ANTHROPIC_MODELS, AnthropicModel, GOOGLE_MODELS, GoogleModel, ModelName, OPENAI_MODELS, OpenAIModel } from './constants/models.cjs';
2
2
  export { h as ACTIVITY_NAMES, f as ACTIVITY_STATUS, e as ACTIVITY_TYPES, g as AGENT_IDS, o as AGGREGATE_OPERATORS, A as AI_OPERATIONS, i as AI_TOOL_TYPES, n as DATA_SOURCES, j 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, O as OPERATORS, l as ORDER_DIRECTIONS, P as PANEL_TYPES, p as QUERY_DEFAULTS, k as QUERY_EXPRESSIONS, Q as QUERY_FIELD_CONFIGS, m as QUERY_TYPES, R as REDUCE_OPERATIONS, d 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 } from './signoz-queries-Bqpkx5sK.cjs';
3
3
  import { z } from 'zod';
4
- 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-06QUJeMa.cjs';
5
- 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-06QUJeMa.cjs';
4
+ 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-usOTNbMG.cjs';
5
+ 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-usOTNbMG.cjs';
6
6
  import { CredentialStore } from './types/index.cjs';
7
7
  export { CorsConfig, ServerConfig, ServerOptions } from './types/index.cjs';
8
8
  import { LibSQLDatabase } from 'drizzle-orm/libsql';
9
- import { s as schema } from './schema-B8-O-pmG.cjs';
10
- 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-B8-O-pmG.cjs';
9
+ import { s as schema } from './schema-HuJ7Qh0C.cjs';
10
+ 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-HuJ7Qh0C.cjs';
11
11
  import { LoggerOptions, TransportSingleOptions, Logger } from 'pino';
12
12
  import { SSEClientTransportOptions } from '@modelcontextprotocol/sdk/client/sse.js';
13
13
  import { StreamableHTTPClientTransportOptions } from '@modelcontextprotocol/sdk/client/streamableHttp.js';
@@ -844,13 +844,14 @@ declare class CredentialStuffer {
844
844
  declare const getAgentById: (db: DatabaseClient) => (params: {
845
845
  scopes: AgentScopeConfig;
846
846
  }) => Promise<{
847
- name: string;
847
+ tenantId: string;
848
+ projectId: string;
848
849
  id: string;
850
+ name: string;
851
+ description: string | null;
852
+ prompt: string | null;
849
853
  createdAt: string;
850
854
  updatedAt: string;
851
- projectId: string;
852
- tenantId: string;
853
- description: string | null;
854
855
  models: {
855
856
  base?: {
856
857
  model?: string | undefined;
@@ -870,7 +871,6 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
870
871
  } | null;
871
872
  defaultSubAgentId: string | null;
872
873
  contextConfigId: string | null;
873
- prompt: string | null;
874
874
  statusUpdates: {
875
875
  enabled?: boolean | undefined;
876
876
  numEvents?: number | undefined;
@@ -890,13 +890,14 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
890
890
  declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
891
891
  scopes: AgentScopeConfig;
892
892
  }) => Promise<{
893
- name: string;
893
+ tenantId: string;
894
+ projectId: string;
894
895
  id: string;
896
+ name: string;
897
+ description: string | null;
898
+ prompt: string | null;
895
899
  createdAt: string;
896
900
  updatedAt: string;
897
- projectId: string;
898
- tenantId: string;
899
- description: string | null;
900
901
  models: {
901
902
  base?: {
902
903
  model?: string | undefined;
@@ -916,7 +917,6 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
916
917
  } | null;
917
918
  defaultSubAgentId: string | null;
918
919
  contextConfigId: string | null;
919
- prompt: string | null;
920
920
  statusUpdates: {
921
921
  enabled?: boolean | undefined;
922
922
  numEvents?: number | undefined;
@@ -933,13 +933,15 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
933
933
  }[] | undefined;
934
934
  } | null;
935
935
  defaultSubAgent: {
936
- name: string;
936
+ tenantId: string;
937
+ projectId: string;
937
938
  id: string;
939
+ name: string;
940
+ description: string;
941
+ prompt: string;
942
+ agentId: string;
938
943
  createdAt: string;
939
944
  updatedAt: string;
940
- projectId: string;
941
- tenantId: string;
942
- description: string;
943
945
  models: {
944
946
  base?: {
945
947
  model?: string | undefined;
@@ -957,21 +959,20 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
957
959
  stopWhen: {
958
960
  stepCountIs?: number | undefined;
959
961
  } | null;
960
- agentId: string;
961
- prompt: string;
962
962
  conversationHistoryConfig: ConversationHistoryConfig | null;
963
963
  } | null;
964
964
  } | null>;
965
965
  declare const listAgents: (db: DatabaseClient) => (params: {
966
966
  scopes: ProjectScopeConfig;
967
967
  }) => Promise<{
968
- name: string;
968
+ tenantId: string;
969
+ projectId: string;
969
970
  id: string;
971
+ name: string;
972
+ description: string | null;
973
+ prompt: string | null;
970
974
  createdAt: string;
971
975
  updatedAt: string;
972
- projectId: string;
973
- tenantId: string;
974
- description: string | null;
975
976
  models: {
976
977
  base?: {
977
978
  model?: string | undefined;
@@ -991,7 +992,6 @@ declare const listAgents: (db: DatabaseClient) => (params: {
991
992
  } | null;
992
993
  defaultSubAgentId: string | null;
993
994
  contextConfigId: string | null;
994
- prompt: string | null;
995
995
  statusUpdates: {
996
996
  enabled?: boolean | undefined;
997
997
  numEvents?: number | undefined;
@@ -1064,13 +1064,14 @@ declare const listAgentsPaginated: (db: DatabaseClient) => (params: {
1064
1064
  };
1065
1065
  }>;
1066
1066
  declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promise<{
1067
- name: string;
1067
+ tenantId: string;
1068
+ projectId: string;
1068
1069
  id: string;
1070
+ name: string;
1071
+ description: string | null;
1072
+ prompt: string | null;
1069
1073
  createdAt: string;
1070
1074
  updatedAt: string;
1071
- projectId: string;
1072
- tenantId: string;
1073
- description: string | null;
1074
1075
  models: {
1075
1076
  base?: {
1076
1077
  model?: string | undefined;
@@ -1090,7 +1091,6 @@ declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promis
1090
1091
  } | null;
1091
1092
  defaultSubAgentId: string | null;
1092
1093
  contextConfigId: string | null;
1093
- prompt: string | null;
1094
1094
  statusUpdates: {
1095
1095
  enabled?: boolean | undefined;
1096
1096
  numEvents?: number | undefined;
@@ -1111,13 +1111,14 @@ declare const updateAgent: (db: DatabaseClient) => (params: {
1111
1111
  scopes: AgentScopeConfig;
1112
1112
  data: AgentUpdate;
1113
1113
  }) => Promise<{
1114
- name: string;
1114
+ tenantId: string;
1115
+ projectId: string;
1115
1116
  id: string;
1117
+ name: string;
1118
+ description: string | null;
1119
+ prompt: string | null;
1116
1120
  createdAt: string;
1117
1121
  updatedAt: string;
1118
- projectId: string;
1119
- tenantId: string;
1120
- description: string | null;
1121
1122
  models: {
1122
1123
  base?: {
1123
1124
  model?: string | undefined;
@@ -1137,7 +1138,6 @@ declare const updateAgent: (db: DatabaseClient) => (params: {
1137
1138
  } | null;
1138
1139
  defaultSubAgentId: string | null;
1139
1140
  contextConfigId: string | null;
1140
- prompt: string | null;
1141
1141
  statusUpdates: {
1142
1142
  enabled?: boolean | undefined;
1143
1143
  numEvents?: number | undefined;
@@ -1191,49 +1191,49 @@ declare const getApiKeyById: (db: DatabaseClient) => (params: {
1191
1191
  scopes: ProjectScopeConfig;
1192
1192
  id: string;
1193
1193
  }) => Promise<{
1194
- name: string | null;
1195
- id: string;
1196
- createdAt: string;
1197
- updatedAt: string;
1198
- projectId: string;
1199
1194
  tenantId: string;
1195
+ projectId: string;
1196
+ id: string;
1197
+ name: string | null;
1200
1198
  agentId: string;
1201
1199
  publicId: string;
1202
1200
  keyHash: string;
1203
1201
  keyPrefix: string;
1204
1202
  lastUsedAt: string | null;
1205
1203
  expiresAt: string | null;
1206
- } | undefined>;
1207
- declare const getApiKeyByPublicId: (db: DatabaseClient) => (publicId: string) => Promise<{
1208
- name: string | null;
1209
- id: string;
1210
1204
  createdAt: string;
1211
1205
  updatedAt: string;
1212
- projectId: string;
1206
+ } | undefined>;
1207
+ declare const getApiKeyByPublicId: (db: DatabaseClient) => (publicId: string) => Promise<{
1213
1208
  tenantId: string;
1209
+ projectId: string;
1210
+ id: string;
1211
+ name: string | null;
1214
1212
  agentId: string;
1215
1213
  publicId: string;
1216
1214
  keyHash: string;
1217
1215
  keyPrefix: string;
1218
1216
  lastUsedAt: string | null;
1219
1217
  expiresAt: string | null;
1218
+ createdAt: string;
1219
+ updatedAt: string;
1220
1220
  } | undefined>;
1221
1221
  declare const listApiKeys: (db: DatabaseClient) => (params: {
1222
1222
  scopes: ProjectScopeConfig;
1223
1223
  agentId?: string;
1224
1224
  }) => Promise<{
1225
- name: string | null;
1226
- id: string;
1227
- createdAt: string;
1228
- updatedAt: string;
1229
- projectId: string;
1230
1225
  tenantId: string;
1226
+ projectId: string;
1227
+ id: string;
1228
+ name: string | null;
1231
1229
  agentId: string;
1232
1230
  publicId: string;
1233
1231
  keyHash: string;
1234
1232
  keyPrefix: string;
1235
1233
  lastUsedAt: string | null;
1236
1234
  expiresAt: string | null;
1235
+ createdAt: string;
1236
+ updatedAt: string;
1237
1237
  }[]>;
1238
1238
  declare const listApiKeysPaginated: (db: DatabaseClient) => (params: {
1239
1239
  scopes: ProjectScopeConfig;
@@ -1249,36 +1249,36 @@ declare const listApiKeysPaginated: (db: DatabaseClient) => (params: {
1249
1249
  };
1250
1250
  }>;
1251
1251
  declare const createApiKey: (db: DatabaseClient) => (params: ApiKeyInsert) => Promise<{
1252
- name: string | null;
1253
- id: string;
1254
- createdAt: string;
1255
- updatedAt: string;
1256
- projectId: string;
1257
1252
  tenantId: string;
1253
+ projectId: string;
1254
+ id: string;
1255
+ name: string | null;
1258
1256
  agentId: string;
1259
1257
  publicId: string;
1260
1258
  keyHash: string;
1261
1259
  keyPrefix: string;
1262
1260
  lastUsedAt: string | null;
1263
1261
  expiresAt: string | null;
1262
+ createdAt: string;
1263
+ updatedAt: string;
1264
1264
  }>;
1265
1265
  declare const updateApiKey: (db: DatabaseClient) => (params: {
1266
1266
  scopes: ProjectScopeConfig;
1267
1267
  id: string;
1268
1268
  data: ApiKeyUpdate;
1269
1269
  }) => Promise<{
1270
- name: string | null;
1271
- id: string;
1272
- createdAt: string;
1273
- updatedAt: string;
1274
- projectId: string;
1275
1270
  tenantId: string;
1271
+ projectId: string;
1272
+ id: string;
1273
+ name: string | null;
1276
1274
  agentId: string;
1277
1275
  publicId: string;
1278
1276
  keyHash: string;
1279
1277
  keyPrefix: string;
1280
1278
  lastUsedAt: string | null;
1281
1279
  expiresAt: string | null;
1280
+ createdAt: string;
1281
+ updatedAt: string;
1282
1282
  }>;
1283
1283
  declare const deleteApiKey: (db: DatabaseClient) => (params: {
1284
1284
  scopes: ProjectScopeConfig;
@@ -1307,13 +1307,13 @@ declare const getArtifactComponentById: (db: DatabaseClient) => (params: {
1307
1307
  scopes: ProjectScopeConfig;
1308
1308
  id: string;
1309
1309
  }) => Promise<{
1310
- name: string;
1310
+ tenantId: string;
1311
+ projectId: string;
1311
1312
  id: string;
1313
+ name: string;
1314
+ description: string;
1312
1315
  createdAt: string;
1313
1316
  updatedAt: string;
1314
- projectId: string;
1315
- tenantId: string;
1316
- description: string;
1317
1317
  props: Record<string, unknown> | null;
1318
1318
  } | undefined>;
1319
1319
  declare const listArtifactComponents: (db: DatabaseClient) => (params: {
@@ -1341,13 +1341,13 @@ declare const listArtifactComponentsPaginated: (db: DatabaseClient) => (params:
1341
1341
  };
1342
1342
  }>;
1343
1343
  declare const createArtifactComponent: (db: DatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
1344
- name: string;
1344
+ tenantId: string;
1345
+ projectId: string;
1345
1346
  id: string;
1347
+ name: string;
1348
+ description: string;
1346
1349
  createdAt: string;
1347
1350
  updatedAt: string;
1348
- projectId: string;
1349
- tenantId: string;
1350
- description: string;
1351
1351
  props: Record<string, unknown> | null;
1352
1352
  }>;
1353
1353
  declare const updateArtifactComponent: (db: DatabaseClient) => (params: {
@@ -1355,13 +1355,13 @@ declare const updateArtifactComponent: (db: DatabaseClient) => (params: {
1355
1355
  id: string;
1356
1356
  data: ArtifactComponentUpdate;
1357
1357
  }) => Promise<{
1358
- name: string;
1358
+ tenantId: string;
1359
+ projectId: string;
1359
1360
  id: string;
1361
+ name: string;
1362
+ description: string;
1360
1363
  createdAt: string;
1361
1364
  updatedAt: string;
1362
- projectId: string;
1363
- tenantId: string;
1364
- description: string;
1365
1365
  props: Record<string, unknown> | null;
1366
1366
  }>;
1367
1367
  declare const deleteArtifactComponent: (db: DatabaseClient) => (params: {
@@ -1384,11 +1384,11 @@ declare const associateArtifactComponentWithAgent: (db: DatabaseClient) => (para
1384
1384
  scopes: SubAgentScopeConfig;
1385
1385
  artifactComponentId: string;
1386
1386
  }) => Promise<{
1387
- id: string;
1388
- createdAt: string;
1389
- projectId: string;
1390
1387
  tenantId: string;
1388
+ projectId: string;
1389
+ id: string;
1391
1390
  agentId: string;
1391
+ createdAt: string;
1392
1392
  subAgentId: string;
1393
1393
  artifactComponentId: string;
1394
1394
  }>;
@@ -1427,11 +1427,11 @@ declare const upsertAgentArtifactComponentRelation: (db: DatabaseClient) => (par
1427
1427
  scopes: SubAgentScopeConfig;
1428
1428
  artifactComponentId: string;
1429
1429
  }) => Promise<{
1430
- id: string;
1431
- createdAt: string;
1432
- projectId: string;
1433
1430
  tenantId: string;
1431
+ projectId: string;
1432
+ id: string;
1434
1433
  agentId: string;
1434
+ createdAt: string;
1435
1435
  subAgentId: string;
1436
1436
  artifactComponentId: string;
1437
1437
  } | null>;
@@ -1511,26 +1511,26 @@ declare const getContextConfigById: (db: DatabaseClient) => (params: {
1511
1511
  scopes: AgentScopeConfig;
1512
1512
  id: string;
1513
1513
  }) => Promise<{
1514
+ tenantId: string;
1515
+ projectId: string;
1514
1516
  id: string;
1517
+ agentId: string;
1515
1518
  createdAt: string;
1516
1519
  updatedAt: string;
1517
- projectId: string;
1518
- tenantId: string;
1519
1520
  headersSchema: unknown;
1520
1521
  contextVariables: Record<string, ContextFetchDefinition> | null;
1521
- agentId: string;
1522
1522
  } | undefined>;
1523
1523
  declare const listContextConfigs: (db: DatabaseClient) => (params: {
1524
1524
  scopes: AgentScopeConfig;
1525
1525
  }) => Promise<{
1526
+ tenantId: string;
1527
+ projectId: string;
1526
1528
  id: string;
1529
+ agentId: string;
1527
1530
  createdAt: string;
1528
1531
  updatedAt: string;
1529
- projectId: string;
1530
- tenantId: string;
1531
1532
  headersSchema: unknown;
1532
1533
  contextVariables: Record<string, ContextFetchDefinition> | null;
1533
- agentId: string;
1534
1534
  }[]>;
1535
1535
  declare const listContextConfigsPaginated: (db: DatabaseClient) => (params: {
1536
1536
  scopes: AgentScopeConfig;
@@ -1545,28 +1545,28 @@ declare const listContextConfigsPaginated: (db: DatabaseClient) => (params: {
1545
1545
  };
1546
1546
  }>;
1547
1547
  declare const createContextConfig: (db: DatabaseClient) => (params: ContextConfigInsert) => Promise<{
1548
+ tenantId: string;
1549
+ projectId: string;
1548
1550
  id: string;
1551
+ agentId: string;
1549
1552
  createdAt: string;
1550
1553
  updatedAt: string;
1551
- projectId: string;
1552
- tenantId: string;
1553
1554
  headersSchema: unknown;
1554
1555
  contextVariables: Record<string, ContextFetchDefinition> | null;
1555
- agentId: string;
1556
1556
  }>;
1557
1557
  declare const updateContextConfig: (db: DatabaseClient) => (params: {
1558
1558
  scopes: AgentScopeConfig;
1559
1559
  id: string;
1560
1560
  data: Partial<ContextConfigUpdate>;
1561
1561
  }) => Promise<{
1562
+ tenantId: string;
1563
+ projectId: string;
1562
1564
  id: string;
1565
+ agentId: string;
1563
1566
  createdAt: string;
1564
1567
  updatedAt: string;
1565
- projectId: string;
1566
- tenantId: string;
1567
1568
  headersSchema: unknown;
1568
1569
  contextVariables: Record<string, ContextFetchDefinition> | null;
1569
- agentId: string;
1570
1570
  }>;
1571
1571
  declare const deleteContextConfig: (db: DatabaseClient) => (params: {
1572
1572
  scopes: AgentScopeConfig;
@@ -1585,14 +1585,14 @@ declare const countContextConfigs: (db: DatabaseClient) => (params: {
1585
1585
  declare const upsertContextConfig: (db: DatabaseClient) => (params: {
1586
1586
  data: ContextConfigInsert;
1587
1587
  }) => Promise<{
1588
+ tenantId: string;
1589
+ projectId: string;
1588
1590
  id: string;
1591
+ agentId: string;
1589
1592
  createdAt: string;
1590
1593
  updatedAt: string;
1591
- projectId: string;
1592
- tenantId: string;
1593
1594
  headersSchema: unknown;
1594
1595
  contextVariables: Record<string, ContextFetchDefinition> | null;
1595
- agentId: string;
1596
1596
  }>;
1597
1597
 
1598
1598
  declare const listConversations: (db: DatabaseClient) => (params: {
@@ -1604,12 +1604,12 @@ declare const listConversations: (db: DatabaseClient) => (params: {
1604
1604
  total: number;
1605
1605
  }>;
1606
1606
  declare const createConversation: (db: DatabaseClient) => (params: ConversationInsert) => Promise<{
1607
+ tenantId: string;
1608
+ projectId: string;
1607
1609
  id: string;
1610
+ title: string | null;
1608
1611
  createdAt: string;
1609
1612
  updatedAt: string;
1610
- projectId: string;
1611
- tenantId: string;
1612
- title: string | null;
1613
1613
  metadata: ConversationMetadata | null;
1614
1614
  userId: string | null;
1615
1615
  activeSubAgentId: string;
@@ -1620,12 +1620,12 @@ declare const updateConversation: (db: DatabaseClient) => (params: {
1620
1620
  conversationId: string;
1621
1621
  data: ConversationUpdate;
1622
1622
  }) => Promise<{
1623
+ tenantId: string;
1624
+ projectId: string;
1623
1625
  id: string;
1626
+ title: string | null;
1624
1627
  createdAt: string;
1625
1628
  updatedAt: string;
1626
- projectId: string;
1627
- tenantId: string;
1628
- title: string | null;
1629
1629
  metadata: ConversationMetadata | null;
1630
1630
  userId: string | null;
1631
1631
  activeSubAgentId: string;
@@ -1640,12 +1640,12 @@ declare const updateConversationActiveAgent: (db: DatabaseClient) => (params: {
1640
1640
  conversationId: string;
1641
1641
  activeSubAgentId: string;
1642
1642
  }) => Promise<{
1643
+ tenantId: string;
1644
+ projectId: string;
1643
1645
  id: string;
1646
+ title: string | null;
1644
1647
  createdAt: string;
1645
1648
  updatedAt: string;
1646
- projectId: string;
1647
- tenantId: string;
1648
- title: string | null;
1649
1649
  metadata: ConversationMetadata | null;
1650
1650
  userId: string | null;
1651
1651
  activeSubAgentId: string;
@@ -1655,12 +1655,12 @@ declare const getConversation: (db: DatabaseClient) => (params: {
1655
1655
  scopes: ProjectScopeConfig;
1656
1656
  conversationId: string;
1657
1657
  }) => Promise<{
1658
+ tenantId: string;
1659
+ projectId: string;
1658
1660
  id: string;
1661
+ title: string | null;
1659
1662
  createdAt: string;
1660
1663
  updatedAt: string;
1661
- projectId: string;
1662
- tenantId: string;
1663
- title: string | null;
1664
1664
  metadata: ConversationMetadata | null;
1665
1665
  userId: string | null;
1666
1666
  activeSubAgentId: string;
@@ -1679,12 +1679,12 @@ declare const createOrGetConversation: (db: DatabaseClient) => (input: Conversat
1679
1679
  metadata?: ConversationMetadata | null | undefined;
1680
1680
  contextConfigId?: string | undefined;
1681
1681
  } | {
1682
+ tenantId: string;
1683
+ projectId: string;
1682
1684
  id: string;
1685
+ title: string | null;
1683
1686
  createdAt: string;
1684
1687
  updatedAt: string;
1685
- projectId: string;
1686
- tenantId: string;
1687
- title: string | null;
1688
1688
  metadata: ConversationMetadata | null;
1689
1689
  userId: string | null;
1690
1690
  activeSubAgentId: string;
@@ -1705,12 +1705,12 @@ declare const getActiveAgentForConversation: (db: DatabaseClient) => (params: {
1705
1705
  scopes: ProjectScopeConfig;
1706
1706
  conversationId: string;
1707
1707
  }) => Promise<{
1708
+ tenantId: string;
1709
+ projectId: string;
1708
1710
  id: string;
1711
+ title: string | null;
1709
1712
  createdAt: string;
1710
1713
  updatedAt: string;
1711
- projectId: string;
1712
- tenantId: string;
1713
- title: string | null;
1714
1714
  metadata: ConversationMetadata | null;
1715
1715
  userId: string | null;
1716
1716
  activeSubAgentId: string;
@@ -1874,11 +1874,11 @@ declare const associateDataComponentWithAgent: (db: DatabaseClient) => (params:
1874
1874
  scopes: SubAgentScopeConfig;
1875
1875
  dataComponentId: string;
1876
1876
  }) => Promise<{
1877
- id: string;
1878
- createdAt: string;
1879
- projectId: string;
1880
1877
  tenantId: string;
1878
+ projectId: string;
1879
+ id: string;
1881
1880
  agentId: string;
1881
+ createdAt: string;
1882
1882
  subAgentId: string;
1883
1883
  dataComponentId: string;
1884
1884
  }>;
@@ -1916,11 +1916,11 @@ declare const upsertAgentDataComponentRelation: (db: DatabaseClient) => (params:
1916
1916
  scopes: SubAgentScopeConfig;
1917
1917
  dataComponentId: string;
1918
1918
  }) => Promise<{
1919
- id: string;
1920
- createdAt: string;
1921
- projectId: string;
1922
1919
  tenantId: string;
1920
+ projectId: string;
1921
+ id: string;
1923
1922
  agentId: string;
1923
+ createdAt: string;
1924
1924
  subAgentId: string;
1925
1925
  dataComponentId: string;
1926
1926
  } | null>;
@@ -2095,14 +2095,14 @@ declare const createFunctionTool: (db: DatabaseClient) => (params: {
2095
2095
  data: FunctionToolApiInsert;
2096
2096
  scopes: AgentScopeConfig;
2097
2097
  }) => Promise<{
2098
- name: string;
2099
- id: string;
2100
- createdAt: string;
2101
- updatedAt: string;
2102
- projectId: string;
2103
2098
  tenantId: string;
2099
+ projectId: string;
2100
+ id: string;
2101
+ name: string;
2104
2102
  description: string | null;
2105
2103
  agentId: string;
2104
+ createdAt: string;
2105
+ updatedAt: string;
2106
2106
  functionId: string;
2107
2107
  }>;
2108
2108
  /**
@@ -2113,14 +2113,14 @@ declare const updateFunctionTool: (db: DatabaseClient) => (params: {
2113
2113
  functionToolId: string;
2114
2114
  data: FunctionToolApiUpdate;
2115
2115
  }) => Promise<{
2116
- name: string;
2117
- id: string;
2118
- createdAt: string;
2119
- updatedAt: string;
2120
- projectId: string;
2121
2116
  tenantId: string;
2117
+ projectId: string;
2118
+ id: string;
2119
+ name: string;
2122
2120
  description: string | null;
2123
2121
  agentId: string;
2122
+ createdAt: string;
2123
+ updatedAt: string;
2124
2124
  functionId: string;
2125
2125
  }>;
2126
2126
  /**
@@ -2137,14 +2137,14 @@ declare const upsertFunctionTool: (db: DatabaseClient) => (params: {
2137
2137
  data: FunctionToolApiInsert;
2138
2138
  scopes: AgentScopeConfig;
2139
2139
  }) => Promise<{
2140
- name: string;
2141
- id: string;
2142
- createdAt: string;
2143
- updatedAt: string;
2144
- projectId: string;
2145
2140
  tenantId: string;
2141
+ projectId: string;
2142
+ id: string;
2143
+ name: string;
2146
2144
  description: string | null;
2147
2145
  agentId: string;
2146
+ createdAt: string;
2147
+ updatedAt: string;
2148
2148
  functionId: string;
2149
2149
  }>;
2150
2150
  declare const getFunctionToolsForSubAgent: (db: DatabaseClient) => (params: {
@@ -2301,11 +2301,11 @@ declare const getMessageById: (db: DatabaseClient) => (params: {
2301
2301
  scopes: ProjectScopeConfig;
2302
2302
  messageId: string;
2303
2303
  }) => Promise<{
2304
+ tenantId: string;
2305
+ projectId: string;
2304
2306
  id: string;
2305
2307
  createdAt: string;
2306
2308
  updatedAt: string;
2307
- projectId: string;
2308
- tenantId: string;
2309
2309
  metadata: MessageMetadata | null;
2310
2310
  content: MessageContent;
2311
2311
  conversationId: string;
@@ -2422,11 +2422,11 @@ declare const getVisibleMessages: (db: DatabaseClient) => (params: {
2422
2422
  id: string;
2423
2423
  }[]>;
2424
2424
  declare const createMessage: (db: DatabaseClient) => (params: MessageInsert) => Promise<{
2425
+ tenantId: string;
2426
+ projectId: string;
2425
2427
  id: string;
2426
2428
  createdAt: string;
2427
2429
  updatedAt: string;
2428
- projectId: string;
2429
- tenantId: string;
2430
2430
  metadata: MessageMetadata | null;
2431
2431
  content: MessageContent;
2432
2432
  conversationId: string;
@@ -2447,11 +2447,11 @@ declare const updateMessage: (db: DatabaseClient) => (params: {
2447
2447
  messageId: string;
2448
2448
  data: MessageUpdate;
2449
2449
  }) => Promise<{
2450
+ tenantId: string;
2451
+ projectId: string;
2450
2452
  id: string;
2451
2453
  createdAt: string;
2452
2454
  updatedAt: string;
2453
- projectId: string;
2454
- tenantId: string;
2455
2455
  metadata: MessageMetadata | null;
2456
2456
  content: MessageContent;
2457
2457
  conversationId: string;
@@ -2471,11 +2471,11 @@ declare const deleteMessage: (db: DatabaseClient) => (params: {
2471
2471
  scopes: ProjectScopeConfig;
2472
2472
  messageId: string;
2473
2473
  }) => Promise<{
2474
+ tenantId: string;
2475
+ projectId: string;
2474
2476
  id: string;
2475
2477
  createdAt: string;
2476
2478
  updatedAt: string;
2477
- projectId: string;
2478
- tenantId: string;
2479
2479
  metadata: MessageMetadata | null;
2480
2480
  content: MessageContent;
2481
2481
  conversationId: string;
@@ -2594,12 +2594,12 @@ declare const getAgentRelationById: (db: DatabaseClient) => (params: {
2594
2594
  scopes: AgentScopeConfig;
2595
2595
  relationId: string;
2596
2596
  }) => Promise<{
2597
+ tenantId: string;
2598
+ projectId: string;
2597
2599
  id: string;
2600
+ agentId: string;
2598
2601
  createdAt: string;
2599
2602
  updatedAt: string;
2600
- projectId: string;
2601
- tenantId: string;
2602
- agentId: string;
2603
2603
  sourceSubAgentId: string;
2604
2604
  targetSubAgentId: string | null;
2605
2605
  externalSubAgentId: string | null;
@@ -2631,12 +2631,12 @@ declare const listAgentRelations: (db: DatabaseClient) => (params: {
2631
2631
  declare const getAgentRelations: (db: DatabaseClient) => (params: {
2632
2632
  scopes: SubAgentScopeConfig;
2633
2633
  }) => Promise<{
2634
+ tenantId: string;
2635
+ projectId: string;
2634
2636
  id: string;
2637
+ agentId: string;
2635
2638
  createdAt: string;
2636
2639
  updatedAt: string;
2637
- projectId: string;
2638
- tenantId: string;
2639
- agentId: string;
2640
2640
  sourceSubAgentId: string;
2641
2641
  targetSubAgentId: string | null;
2642
2642
  externalSubAgentId: string | null;
@@ -2645,12 +2645,12 @@ declare const getAgentRelations: (db: DatabaseClient) => (params: {
2645
2645
  declare const getAgentRelationsByAgent: (db: DatabaseClient) => (params: {
2646
2646
  scopes: AgentScopeConfig;
2647
2647
  }) => Promise<{
2648
+ tenantId: string;
2649
+ projectId: string;
2648
2650
  id: string;
2651
+ agentId: string;
2649
2652
  createdAt: string;
2650
2653
  updatedAt: string;
2651
- projectId: string;
2652
- tenantId: string;
2653
- agentId: string;
2654
2654
  sourceSubAgentId: string;
2655
2655
  targetSubAgentId: string | null;
2656
2656
  externalSubAgentId: string | null;
@@ -2750,12 +2750,12 @@ declare const getRelatedAgentsForAgent: (db: DatabaseClient) => (params: {
2750
2750
  }[];
2751
2751
  }>;
2752
2752
  declare const createSubAgentRelation: (db: DatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
2753
+ tenantId: string;
2754
+ projectId: string;
2753
2755
  id: string;
2756
+ agentId: string;
2754
2757
  createdAt: string;
2755
2758
  updatedAt: string;
2756
- projectId: string;
2757
- tenantId: string;
2758
- agentId: string;
2759
2759
  sourceSubAgentId: string;
2760
2760
  targetSubAgentId: string | null;
2761
2761
  externalSubAgentId: string | null;
@@ -2771,12 +2771,12 @@ declare const getAgentRelationByParams: (db: DatabaseClient) => (params: {
2771
2771
  externalSubAgentId?: string;
2772
2772
  relationType: string;
2773
2773
  }) => Promise<{
2774
+ tenantId: string;
2775
+ projectId: string;
2774
2776
  id: string;
2777
+ agentId: string;
2775
2778
  createdAt: string;
2776
2779
  updatedAt: string;
2777
- projectId: string;
2778
- tenantId: string;
2779
- agentId: string;
2780
2780
  sourceSubAgentId: string;
2781
2781
  targetSubAgentId: string | null;
2782
2782
  externalSubAgentId: string | null;
@@ -2786,24 +2786,24 @@ declare const getAgentRelationByParams: (db: DatabaseClient) => (params: {
2786
2786
  * Upsert agent relation (create if it doesn't exist, no-op if it does)
2787
2787
  */
2788
2788
  declare const upsertSubAgentRelation: (db: DatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
2789
+ tenantId: string;
2790
+ projectId: string;
2789
2791
  id: string;
2792
+ agentId: string;
2790
2793
  createdAt: string;
2791
2794
  updatedAt: string;
2792
- projectId: string;
2793
- tenantId: string;
2794
- agentId: string;
2795
2795
  sourceSubAgentId: string;
2796
2796
  targetSubAgentId: string | null;
2797
2797
  externalSubAgentId: string | null;
2798
2798
  relationType: string | null;
2799
2799
  }>;
2800
2800
  declare const createExternalAgentRelation: (db: DatabaseClient) => (params: ExternalSubAgentRelationInsert) => Promise<{
2801
+ tenantId: string;
2802
+ projectId: string;
2801
2803
  id: string;
2804
+ agentId: string;
2802
2805
  createdAt: string;
2803
2806
  updatedAt: string;
2804
- projectId: string;
2805
- tenantId: string;
2806
- agentId: string;
2807
2807
  sourceSubAgentId: string;
2808
2808
  targetSubAgentId: string | null;
2809
2809
  externalSubAgentId: string | null;
@@ -2814,12 +2814,12 @@ declare const updateAgentRelation: (db: DatabaseClient) => (params: {
2814
2814
  relationId: string;
2815
2815
  data: SubAgentRelationUpdate;
2816
2816
  }) => Promise<{
2817
+ tenantId: string;
2818
+ projectId: string;
2817
2819
  id: string;
2820
+ agentId: string;
2818
2821
  createdAt: string;
2819
2822
  updatedAt: string;
2820
- projectId: string;
2821
- tenantId: string;
2822
- agentId: string;
2823
2823
  sourceSubAgentId: string;
2824
2824
  targetSubAgentId: string | null;
2825
2825
  externalSubAgentId: string | null;
@@ -2842,32 +2842,32 @@ declare const createAgentToolRelation: (db: DatabaseClient) => (params: {
2842
2842
  headers?: Record<string, string> | null;
2843
2843
  };
2844
2844
  }) => Promise<{
2845
- headers: Record<string, string> | null;
2845
+ tenantId: string;
2846
+ projectId: string;
2846
2847
  id: string;
2848
+ agentId: string;
2847
2849
  createdAt: string;
2848
2850
  updatedAt: string;
2849
- projectId: string;
2850
- tenantId: string;
2851
- agentId: string;
2851
+ headers: Record<string, string> | null;
2852
+ toolId: string;
2852
2853
  selectedTools: string[] | null;
2853
2854
  subAgentId: string;
2854
- toolId: string;
2855
2855
  }>;
2856
2856
  declare const updateAgentToolRelation: (db: DatabaseClient) => (params: {
2857
2857
  scopes: AgentScopeConfig;
2858
2858
  relationId: string;
2859
2859
  data: SubAgentToolRelationUpdate;
2860
2860
  }) => Promise<{
2861
- headers: Record<string, string> | null;
2861
+ tenantId: string;
2862
+ projectId: string;
2862
2863
  id: string;
2864
+ agentId: string;
2863
2865
  createdAt: string;
2864
2866
  updatedAt: string;
2865
- projectId: string;
2866
- tenantId: string;
2867
- agentId: string;
2867
+ headers: Record<string, string> | null;
2868
+ toolId: string;
2868
2869
  selectedTools: string[] | null;
2869
2870
  subAgentId: string;
2870
- toolId: string;
2871
2871
  }>;
2872
2872
  declare const deleteAgentToolRelation: (db: DatabaseClient) => (params: {
2873
2873
  scopes: AgentScopeConfig;
@@ -2880,16 +2880,16 @@ declare const getAgentToolRelationById: (db: DatabaseClient) => (params: {
2880
2880
  scopes: SubAgentScopeConfig;
2881
2881
  relationId: string;
2882
2882
  }) => Promise<{
2883
- headers: Record<string, string> | null;
2883
+ tenantId: string;
2884
+ projectId: string;
2884
2885
  id: string;
2886
+ agentId: string;
2885
2887
  createdAt: string;
2886
2888
  updatedAt: string;
2887
- projectId: string;
2888
- tenantId: string;
2889
- agentId: string;
2889
+ headers: Record<string, string> | null;
2890
+ toolId: string;
2890
2891
  selectedTools: string[] | null;
2891
2892
  subAgentId: string;
2892
- toolId: string;
2893
2893
  } | undefined>;
2894
2894
  declare const getAgentToolRelationByAgent: (db: DatabaseClient) => (params: {
2895
2895
  scopes: SubAgentScopeConfig;
@@ -3059,13 +3059,15 @@ declare const getSubAgentById: (db: DatabaseClient) => (params: {
3059
3059
  scopes: AgentScopeConfig;
3060
3060
  subAgentId: string;
3061
3061
  }) => Promise<{
3062
- name: string;
3062
+ tenantId: string;
3063
+ projectId: string;
3063
3064
  id: string;
3065
+ name: string;
3066
+ description: string;
3067
+ prompt: string;
3068
+ agentId: string;
3064
3069
  createdAt: string;
3065
3070
  updatedAt: string;
3066
- projectId: string;
3067
- tenantId: string;
3068
- description: string;
3069
3071
  models: {
3070
3072
  base?: {
3071
3073
  model?: string | undefined;
@@ -3083,20 +3085,20 @@ declare const getSubAgentById: (db: DatabaseClient) => (params: {
3083
3085
  stopWhen: {
3084
3086
  stepCountIs?: number | undefined;
3085
3087
  } | null;
3086
- agentId: string;
3087
- prompt: string;
3088
3088
  conversationHistoryConfig: ConversationHistoryConfig | null;
3089
3089
  } | undefined>;
3090
3090
  declare const listSubAgents: (db: DatabaseClient) => (params: {
3091
3091
  scopes: AgentScopeConfig;
3092
3092
  }) => Promise<{
3093
- name: string;
3093
+ tenantId: string;
3094
+ projectId: string;
3094
3095
  id: string;
3096
+ name: string;
3097
+ description: string;
3098
+ prompt: string;
3099
+ agentId: string;
3095
3100
  createdAt: string;
3096
3101
  updatedAt: string;
3097
- projectId: string;
3098
- tenantId: string;
3099
- description: string;
3100
3102
  models: {
3101
3103
  base?: {
3102
3104
  model?: string | undefined;
@@ -3114,8 +3116,6 @@ declare const listSubAgents: (db: DatabaseClient) => (params: {
3114
3116
  stopWhen: {
3115
3117
  stepCountIs?: number | undefined;
3116
3118
  } | null;
3117
- agentId: string;
3118
- prompt: string;
3119
3119
  conversationHistoryConfig: ConversationHistoryConfig | null;
3120
3120
  }[]>;
3121
3121
  declare const listSubAgentsPaginated: (db: DatabaseClient) => (params: {
@@ -3159,13 +3159,15 @@ declare const listSubAgentsPaginated: (db: DatabaseClient) => (params: {
3159
3159
  };
3160
3160
  }>;
3161
3161
  declare const createSubAgent: (db: DatabaseClient) => (params: SubAgentInsert) => Promise<{
3162
- name: string;
3162
+ tenantId: string;
3163
+ projectId: string;
3163
3164
  id: string;
3165
+ name: string;
3166
+ description: string;
3167
+ prompt: string;
3168
+ agentId: string;
3164
3169
  createdAt: string;
3165
3170
  updatedAt: string;
3166
- projectId: string;
3167
- tenantId: string;
3168
- description: string;
3169
3171
  models: {
3170
3172
  base?: {
3171
3173
  model?: string | undefined;
@@ -3183,8 +3185,6 @@ declare const createSubAgent: (db: DatabaseClient) => (params: SubAgentInsert) =
3183
3185
  stopWhen: {
3184
3186
  stepCountIs?: number | undefined;
3185
3187
  } | null;
3186
- agentId: string;
3187
- prompt: string;
3188
3188
  conversationHistoryConfig: ConversationHistoryConfig | null;
3189
3189
  }>;
3190
3190
  declare const updateSubAgent: (db: DatabaseClient) => (params: {
@@ -3192,13 +3192,15 @@ declare const updateSubAgent: (db: DatabaseClient) => (params: {
3192
3192
  subAgentId: string;
3193
3193
  data: SubAgentUpdate;
3194
3194
  }) => Promise<{
3195
- name: string;
3195
+ tenantId: string;
3196
+ projectId: string;
3196
3197
  id: string;
3198
+ name: string;
3199
+ description: string;
3200
+ prompt: string;
3201
+ agentId: string;
3197
3202
  createdAt: string;
3198
3203
  updatedAt: string;
3199
- projectId: string;
3200
- tenantId: string;
3201
- description: string;
3202
3204
  models: {
3203
3205
  base?: {
3204
3206
  model?: string | undefined;
@@ -3216,8 +3218,6 @@ declare const updateSubAgent: (db: DatabaseClient) => (params: {
3216
3218
  stopWhen: {
3217
3219
  stepCountIs?: number | undefined;
3218
3220
  } | null;
3219
- agentId: string;
3220
- prompt: string;
3221
3221
  conversationHistoryConfig: ConversationHistoryConfig | null;
3222
3222
  }>;
3223
3223
  /**
@@ -3264,12 +3264,12 @@ declare const getSubAgentsByIds: (db: DatabaseClient) => (params: {
3264
3264
  }[]>;
3265
3265
 
3266
3266
  declare const createTask: (db: DatabaseClient) => (params: TaskInsert) => Promise<{
3267
+ tenantId: string;
3268
+ projectId: string;
3267
3269
  id: string;
3270
+ agentId: string;
3268
3271
  createdAt: string;
3269
3272
  updatedAt: string;
3270
- projectId: string;
3271
- tenantId: string;
3272
- agentId: string;
3273
3273
  status: string;
3274
3274
  metadata: TaskMetadataConfig | null;
3275
3275
  contextId: string;
@@ -3285,12 +3285,12 @@ declare const updateTask: (db: DatabaseClient) => (params: {
3285
3285
  metadata?: any;
3286
3286
  };
3287
3287
  }) => Promise<{
3288
+ tenantId: string;
3289
+ projectId: string;
3288
3290
  id: string;
3291
+ agentId: string;
3289
3292
  createdAt: string;
3290
3293
  updatedAt: string;
3291
- projectId: string;
3292
- tenantId: string;
3293
- agentId: string;
3294
3294
  status: string;
3295
3295
  metadata: TaskMetadataConfig | null;
3296
3296
  contextId: string;
@@ -3305,20 +3305,20 @@ declare const getToolById: (db: DatabaseClient) => (params: {
3305
3305
  scopes: ProjectScopeConfig;
3306
3306
  toolId: string;
3307
3307
  }) => Promise<{
3308
- name: string;
3309
- headers: Record<string, string> | null;
3310
- id: string;
3311
- createdAt: string;
3312
- updatedAt: string;
3313
- projectId: string;
3314
3308
  tenantId: string;
3309
+ projectId: string;
3310
+ id: string;
3311
+ name: string;
3315
3312
  description: string | null;
3316
- credentialReferenceId: string | null;
3317
- capabilities: ToolServerCapabilities | null;
3318
3313
  config: {
3319
3314
  type: "mcp";
3320
3315
  mcp: ToolMcpConfig;
3321
3316
  };
3317
+ credentialReferenceId: string | null;
3318
+ createdAt: string;
3319
+ updatedAt: string;
3320
+ headers: Record<string, string> | null;
3321
+ capabilities: ToolServerCapabilities | null;
3322
3322
  imageUrl: string | null;
3323
3323
  lastError: string | null;
3324
3324
  } | null>;
@@ -3352,20 +3352,20 @@ declare const listTools: (db: DatabaseClient) => (params: {
3352
3352
  };
3353
3353
  }>;
3354
3354
  declare const createTool: (db: DatabaseClient) => (params: ToolInsert) => Promise<{
3355
- name: string;
3356
- headers: Record<string, string> | null;
3357
- id: string;
3358
- createdAt: string;
3359
- updatedAt: string;
3360
- projectId: string;
3361
3355
  tenantId: string;
3356
+ projectId: string;
3357
+ id: string;
3358
+ name: string;
3362
3359
  description: string | null;
3363
- credentialReferenceId: string | null;
3364
- capabilities: ToolServerCapabilities | null;
3365
3360
  config: {
3366
3361
  type: "mcp";
3367
3362
  mcp: ToolMcpConfig;
3368
3363
  };
3364
+ credentialReferenceId: string | null;
3365
+ createdAt: string;
3366
+ updatedAt: string;
3367
+ headers: Record<string, string> | null;
3368
+ capabilities: ToolServerCapabilities | null;
3369
3369
  imageUrl: string | null;
3370
3370
  lastError: string | null;
3371
3371
  }>;
@@ -3374,20 +3374,20 @@ declare const updateTool: (db: DatabaseClient) => (params: {
3374
3374
  toolId: string;
3375
3375
  data: ToolUpdate;
3376
3376
  }) => Promise<{
3377
- name: string;
3378
- headers: Record<string, string> | null;
3379
- id: string;
3380
- createdAt: string;
3381
- updatedAt: string;
3382
- projectId: string;
3383
3377
  tenantId: string;
3378
+ projectId: string;
3379
+ id: string;
3380
+ name: string;
3384
3381
  description: string | null;
3385
- credentialReferenceId: string | null;
3386
- capabilities: ToolServerCapabilities | null;
3387
3382
  config: {
3388
3383
  type: "mcp";
3389
3384
  mcp: ToolMcpConfig;
3390
3385
  };
3386
+ credentialReferenceId: string | null;
3387
+ createdAt: string;
3388
+ updatedAt: string;
3389
+ headers: Record<string, string> | null;
3390
+ capabilities: ToolServerCapabilities | null;
3391
3391
  imageUrl: string | null;
3392
3392
  lastError: string | null;
3393
3393
  }>;
@@ -3402,32 +3402,32 @@ declare const addToolToAgent: (db: DatabaseClient) => (params: {
3402
3402
  selectedTools?: string[] | null;
3403
3403
  headers?: Record<string, string> | null;
3404
3404
  }) => Promise<{
3405
- headers: Record<string, string> | null;
3405
+ tenantId: string;
3406
+ projectId: string;
3406
3407
  id: string;
3408
+ agentId: string;
3407
3409
  createdAt: string;
3408
3410
  updatedAt: string;
3409
- projectId: string;
3410
- tenantId: string;
3411
- agentId: string;
3411
+ headers: Record<string, string> | null;
3412
+ toolId: string;
3412
3413
  selectedTools: string[] | null;
3413
3414
  subAgentId: string;
3414
- toolId: string;
3415
3415
  }>;
3416
3416
  declare const removeToolFromAgent: (db: DatabaseClient) => (params: {
3417
3417
  scopes: AgentScopeConfig;
3418
3418
  subAgentId: string;
3419
3419
  toolId: string;
3420
3420
  }) => Promise<{
3421
- headers: Record<string, string> | null;
3421
+ tenantId: string;
3422
+ projectId: string;
3422
3423
  id: string;
3424
+ agentId: string;
3423
3425
  createdAt: string;
3424
3426
  updatedAt: string;
3425
- projectId: string;
3426
- tenantId: string;
3427
- agentId: string;
3427
+ headers: Record<string, string> | null;
3428
+ toolId: string;
3428
3429
  selectedTools: string[] | null;
3429
3430
  subAgentId: string;
3430
- toolId: string;
3431
3431
  }>;
3432
3432
  /**
3433
3433
  * Upsert agent-tool relation (create if it doesn't exist, update if it does)
@@ -3440,16 +3440,16 @@ declare const upsertSubAgentToolRelation: (db: DatabaseClient) => (params: {
3440
3440
  headers?: Record<string, string> | null;
3441
3441
  relationId?: string;
3442
3442
  }) => Promise<{
3443
- headers: Record<string, string> | null;
3443
+ tenantId: string;
3444
+ projectId: string;
3444
3445
  id: string;
3446
+ agentId: string;
3445
3447
  createdAt: string;
3446
3448
  updatedAt: string;
3447
- projectId: string;
3448
- tenantId: string;
3449
- agentId: string;
3449
+ headers: Record<string, string> | null;
3450
+ toolId: string;
3450
3451
  selectedTools: string[] | null;
3451
3452
  subAgentId: string;
3452
- toolId: string;
3453
3453
  }>;
3454
3454
  /**
3455
3455
  * Upsert a tool (create if it doesn't exist, update if it does)
@@ -3457,20 +3457,20 @@ declare const upsertSubAgentToolRelation: (db: DatabaseClient) => (params: {
3457
3457
  declare const upsertTool: (db: DatabaseClient) => (params: {
3458
3458
  data: ToolInsert;
3459
3459
  }) => Promise<{
3460
- name: string;
3461
- headers: Record<string, string> | null;
3462
- id: string;
3463
- createdAt: string;
3464
- updatedAt: string;
3465
- projectId: string;
3466
3460
  tenantId: string;
3461
+ projectId: string;
3462
+ id: string;
3463
+ name: string;
3467
3464
  description: string | null;
3468
- credentialReferenceId: string | null;
3469
- capabilities: ToolServerCapabilities | null;
3470
3465
  config: {
3471
3466
  type: "mcp";
3472
3467
  mcp: ToolMcpConfig;
3473
3468
  };
3469
+ credentialReferenceId: string | null;
3470
+ createdAt: string;
3471
+ updatedAt: string;
3472
+ headers: Record<string, string> | null;
3473
+ capabilities: ToolServerCapabilities | null;
3474
3474
  imageUrl: string | null;
3475
3475
  lastError: string | null;
3476
3476
  }>;