@inkeep/agents-core 0.19.4 → 0.19.6

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
- 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-CuWMQh1H.cjs';
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 { s as CredentialReferenceApiInsert, t as ContextConfigSelect, m as ContextFetchDefinition, i as MCPTransportType, u as MCPToolConfig, v as AgentScopeConfig, C as ConversationHistoryConfig, w as ProjectScopeConfig, x as PaginationConfig, y as AgentInsert, z as AgentUpdate, B as FullAgentDefinition, D as AgentSelect, E as ApiKeySelect, G as ApiKeyInsert, H as ApiKeyUpdate, I as CreateApiKeyParams, J as ApiKeyCreateResult, K as ArtifactComponentSelect, L as ArtifactComponentInsert, N as ArtifactComponentUpdate, O as SubAgentScopeConfig, Q as ContextCacheSelect, R as ContextCacheInsert, U as ContextConfigInsert, V as ContextConfigUpdate, W as ConversationSelect, X as ConversationInsert, p as ConversationMetadata, Y as ConversationUpdate, Z as CredentialReferenceSelect, _ as ToolSelect, $ as CredentialReferenceInsert, a0 as CredentialReferenceUpdate, a1 as DataComponentSelect, a2 as DataComponentInsert, a3 as DataComponentUpdate, a4 as ExternalAgentInsert, a5 as ExternalAgentSelect, a6 as ExternalAgentUpdate, a7 as FunctionApiInsert, a8 as FunctionToolApiInsert, a9 as FunctionToolApiUpdate, aa as Artifact, ab as LedgerArtifactSelect, r as MessageMetadata, q as MessageContent, ac as MessageVisibility, ad as MessageInsert, ae as MessageUpdate, af as FullProjectDefinition, ag as ProjectInfo, ah as ProjectSelect, ai as PaginationResult, aj as ProjectResourceCounts, ak as ProjectInsert, al as ProjectUpdate, am as SubAgentRelationInsert, an as ExternalSubAgentRelationInsert, ao as SubAgentRelationUpdate, ap as SubAgentToolRelationUpdate, n as ToolMcpConfig, o as ToolServerCapabilities, aq as SubAgentInsert, ar as SubAgentUpdate, as as SubAgentSelect, at as TaskInsert, T as TaskMetadataConfig, au as TaskSelect, av as McpTool, aw as ToolInsert, ax as ToolUpdate, h as CredentialStoreType, ay as ExecutionContext } from './utility-BFHClCiL.cjs';
5
- export { ba as A2AError, bG as A2ARequest, bH as A2AResponse, aL as APIKeySecurityScheme, bU as AgentApiInsert, dY as AgentApiInsertSchema, bT as AgentApiSelect, dX as AgentApiSelectSchema, bV as AgentApiUpdate, dZ as AgentApiUpdateSchema, aH as AgentCapabilities, aV as AgentCard, dl as AgentConversationHistoryConfig, dV as AgentInsertSchema, gj as AgentListResponse, aI as AgentProvider, g3 as AgentResponse, dU as AgentSelectSchema, aJ as AgentSkill, e as AgentStopWhen, b as AgentStopWhenSchema, dW as AgentUpdateSchema, fP as AgentWithinContextOfProjectSchema, f0 as AllAgentSchema, cO as AllAgentSelect, cS as ApiKeyApiCreationResponse, f5 as ApiKeyApiCreationResponseSchema, cQ as ApiKeyApiInsert, f6 as ApiKeyApiInsertSchema, cP as ApiKeyApiSelect, f4 as ApiKeyApiSelectSchema, cR as ApiKeyApiUpdate, A as ApiKeyApiUpdateSchema, f2 as ApiKeyInsertSchema, gn as ApiKeyListResponse, g7 as ApiKeyResponse, f1 as ApiKeySelectSchema, f3 as ApiKeyUpdateSchema, cD as ArtifactComponentApiInsert, eO as ArtifactComponentApiInsertSchema, cC as ArtifactComponentApiSelect, eN as ArtifactComponentApiSelectSchema, cE as ArtifactComponentApiUpdate, eP as ArtifactComponentApiUpdateSchema, eL as ArtifactComponentInsertSchema, gs as ArtifactComponentListResponse, gc as ArtifactComponentResponse, eK as ArtifactComponentSelectSchema, eM as ArtifactComponentUpdateSchema, aO as AuthorizationCodeOAuthFlow, d4 as CanUseItem, fO as CanUseItemSchema, bq as CancelTaskRequest, bB as CancelTaskResponse, bA as CancelTaskSuccessResponse, aP as ClientCredentialsOAuthFlow, b8 as ContentTypeNotSupportedError, cr as ContextCacheApiInsert, ev as ContextCacheApiInsertSchema, cq as ContextCacheApiSelect, eu as ContextCacheApiSelectSchema, cs as ContextCacheApiUpdate, ew as ContextCacheApiUpdateSchema, dm as ContextCacheEntry, es as ContextCacheInsertSchema, er as ContextCacheSelectSchema, cp as ContextCacheUpdate, et as ContextCacheUpdateSchema, cl as ContextConfigApiInsert, fy as ContextConfigApiInsertSchema, ck as ContextConfigApiSelect, fx as ContextConfigApiSelectSchema, cm as ContextConfigApiUpdate, fz as ContextConfigApiUpdateSchema, fv as ContextConfigInsertSchema, gm as ContextConfigListResponse, g6 as ContextConfigResponse, fu as ContextConfigSelectSchema, fw as ContextConfigUpdateSchema, ce as ConversationApiInsert, ej as ConversationApiInsertSchema, cd as ConversationApiSelect, ei as ConversationApiSelectSchema, cf as ConversationApiUpdate, ek as ConversationApiUpdateSchema, eg as ConversationInsertSchema, gv as ConversationListResponse, gf as ConversationResponse, dk as ConversationScopeOptions, ef as ConversationSelectSchema, eh as ConversationUpdateSchema, fb as CredentialReferenceApiInsertSchema, cT as CredentialReferenceApiSelect, fa as CredentialReferenceApiSelectSchema, cU as CredentialReferenceApiUpdate, fc as CredentialReferenceApiUpdateSchema, f8 as CredentialReferenceInsertSchema, go as CredentialReferenceListResponse, g8 as CredentialReferenceResponse, f7 as CredentialReferenceSelectSchema, f9 as CredentialReferenceUpdateSchema, cu as DataComponentApiInsert, eC as DataComponentApiInsertSchema, ct as DataComponentApiSelect, eB as DataComponentApiSelectSchema, cv as DataComponentApiUpdate, eD as DataComponentApiUpdateSchema, ez as DataComponentBaseSchema, ey as DataComponentInsertSchema, gr as DataComponentListResponse, gb as DataComponentResponse, ex as DataComponentSelectSchema, eA as DataComponentUpdateSchema, aF as DataPart, fT as ErrorResponseSchema, fU as ExistsResponseSchema, e_ as ExternalAgentApiInsertSchema, cL as ExternalAgentApiSelect, eZ as ExternalAgentApiSelectSchema, cN as ExternalAgentApiUpdate, e$ as ExternalAgentApiUpdateSchema, eX as ExternalAgentInsertSchema, gl as ExternalAgentListResponse, g5 as ExternalAgentResponse, eW as ExternalAgentSelectSchema, eY as ExternalAgentUpdateSchema, cM as ExternalSubAgentApiInsert, bS as ExternalSubAgentRelationApiInsert, dT as ExternalSubAgentRelationApiInsertSchema, dS as ExternalSubAgentRelationInsertSchema, co as FetchConfig, fs as FetchConfigSchema, cn as FetchDefinition, ft as FetchDefinitionSchema, aB as FileBase, aE as FilePart, aC as FileWithBytes, aD as FileWithUri, d3 as FullAgentAgentInsert, a as FullAgentAgentInsertSchema, g0 as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, ca as FunctionApiSelect, j as FunctionApiSelectSchema, cb as FunctionApiUpdate, k as FunctionApiUpdateSchema, c8 as FunctionInsert, fq as FunctionInsertSchema, gp as FunctionListResponse, g9 as FunctionResponse, c7 as FunctionSelect, fp as FunctionSelectSchema, fn as FunctionToolApiInsertSchema, cc as FunctionToolApiSelect, fm as FunctionToolApiSelectSchema, fo as FunctionToolApiUpdateSchema, dE as FunctionToolConfig, dD as FunctionToolConfigSchema, fk as FunctionToolInsertSchema, gq as FunctionToolListResponse, ga as FunctionToolResponse, fj as FunctionToolSelectSchema, fl as FunctionToolUpdateSchema, c9 as FunctionUpdate, fr as FunctionUpdateSchema, bs as GetTaskPushNotificationConfigRequest, bF as GetTaskPushNotificationConfigResponse, bE as GetTaskPushNotificationConfigSuccessResponse, bp as GetTaskRequest, bz as GetTaskResponse, by as GetTaskSuccessResponse, aM as HTTPAuthSecurityScheme, gB as HeadersScopeSchema, aQ as ImplicitOAuthFlow, b3 as InternalError, d5 as InternalSubAgentDefinition, b9 as InvalidAgentResponseError, b2 as InvalidParamsError, b0 as InvalidRequestError, a$ as JSONParseError, bk as JSONRPCError, bm as JSONRPCErrorResponse, bi as JSONRPCMessage, bj as JSONRPCRequest, bl as JSONRPCResult, d1 as LedgerArtifactApiInsert, fK as LedgerArtifactApiInsertSchema, d0 as LedgerArtifactApiSelect, fJ as LedgerArtifactApiSelectSchema, d2 as LedgerArtifactApiUpdate, fL as LedgerArtifactApiUpdateSchema, c_ as LedgerArtifactInsert, fH as LedgerArtifactInsertSchema, fG as LedgerArtifactSelectSchema, c$ as LedgerArtifactUpdate, fI as LedgerArtifactUpdateSchema, fR as ListResponseSchema, dx as MAX_ID_LENGTH, dv as MCPServerType, fe as MCPToolConfigSchema, dw as MIN_ID_LENGTH, dn as McpAuthType, dp as McpServerAuth, dr as McpServerCapabilities, ds as McpToolDefinition, ec as McpToolDefinitionSchema, fd as McpToolSchema, dq as McpTransportConfig, ea as McpTransportConfigSchema, aW as Message, ci as MessageApiInsert, ep as MessageApiInsertSchema, ch as MessageApiSelect, eo as MessageApiSelectSchema, cj as MessageApiUpdate, eq as MessageApiUpdateSchema, em as MessageInsertSchema, gw as MessageListResponse, df as MessageMode, bI as MessagePart, gg as MessageResponse, de as MessageRole, cg as MessageSelect, el as MessageSelectSchema, bg as MessageSendConfiguration, bh as MessageSendParams, dd as MessageType, en as MessageUpdateSchema, b1 as MethodNotFoundError, dA as ModelSchema, g as ModelSettings, M as ModelSettingsSchema, dg as Models, aS as OAuth2SecurityScheme, aN as OAuthFlows, aT as OpenIdConnectSecurityScheme, db as Pagination, gK as PaginationQueryParamsSchema, fQ as PaginationSchema, P as Part, az as PartBase, aR as PasswordOAuthFlow, d9 as ProjectApiInsert, f_ as ProjectApiInsertSchema, d8 as ProjectApiSelect, fZ as ProjectApiSelectSchema, da as ProjectApiUpdate, f$ as ProjectApiUpdateSchema, fX as ProjectInsertSchema, gh as ProjectListResponse, dB as ProjectModelSchema, dh as ProjectModels, g1 as ProjectResponse, fW as ProjectSelectSchema, fY as ProjectUpdateSchema, bb as PushNotificationAuthenticationInfo, bc as PushNotificationConfig, b6 as PushNotificationNotSupportedError, fV as RemovedResponseSchema, dC as SandboxConfig, l as SandboxConfigSchema, aU as SecurityScheme, aK as SecuritySchemeBase, bn as SendMessageRequest, bv as SendMessageResponse, bu as SendMessageSuccessResponse, bo as SendStreamingMessageRequest, bx as SendStreamingMessageResponse, bw as SendStreamingMessageSuccessResponse, br as SetTaskPushNotificationConfigRequest, bD as SetTaskPushNotificationConfigResponse, bC as SetTaskPushNotificationConfigSuccessResponse, fS as SingleResponseSchema, dj as StatusComponent, fM as StatusComponentSchema, fN as StatusUpdateSchema, di as StatusUpdateSettings, d as StopWhen, S as StopWhenSchema, bL as SubAgentApiInsert, dJ as SubAgentApiInsertSchema, bK as SubAgentApiSelect, dI as SubAgentApiSelectSchema, bM as SubAgentApiUpdate, dK as SubAgentApiUpdateSchema, cJ as SubAgentArtifactComponentApiInsert, eU as SubAgentArtifactComponentApiInsertSchema, cI as SubAgentArtifactComponentApiSelect, eT as SubAgentArtifactComponentApiSelectSchema, cK as SubAgentArtifactComponentApiUpdate, eV as SubAgentArtifactComponentApiUpdateSchema, cG as SubAgentArtifactComponentInsert, eR as SubAgentArtifactComponentInsertSchema, gA as SubAgentArtifactComponentListResponse, gy as SubAgentArtifactComponentResponse, cF as SubAgentArtifactComponentSelect, eQ as SubAgentArtifactComponentSelectSchema, cH as SubAgentArtifactComponentUpdate, eS as SubAgentArtifactComponentUpdateSchema, cA as SubAgentDataComponentApiInsert, eI as SubAgentDataComponentApiInsertSchema, cz as SubAgentDataComponentApiSelect, eH as SubAgentDataComponentApiSelectSchema, cB as SubAgentDataComponentApiUpdate, eJ as SubAgentDataComponentApiUpdateSchema, cx as SubAgentDataComponentInsert, eF as SubAgentDataComponentInsertSchema, gz as SubAgentDataComponentListResponse, gx as SubAgentDataComponentResponse, cw as SubAgentDataComponentSelect, eE as SubAgentDataComponentSelectSchema, cy as SubAgentDataComponentUpdate, eG as SubAgentDataComponentUpdateSchema, d6 as SubAgentDefinition, dG as SubAgentInsertSchema, gi as SubAgentListResponse, bP as SubAgentRelationApiInsert, dP as SubAgentRelationApiInsertSchema, bO as SubAgentRelationApiSelect, dO as SubAgentRelationApiSelectSchema, bQ as SubAgentRelationApiUpdate, dQ as SubAgentRelationApiUpdateSchema, dM as SubAgentRelationInsertSchema, gt as SubAgentRelationListResponse, bR as SubAgentRelationQuery, dR as SubAgentRelationQuerySchema, gd as SubAgentRelationResponse, bN as SubAgentRelationSelect, dL as SubAgentRelationSelectSchema, dN as SubAgentRelationUpdateSchema, g2 as SubAgentResponse, dF as SubAgentSelectSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema, cY as SubAgentToolRelationApiInsert, fE as SubAgentToolRelationApiInsertSchema, cX as SubAgentToolRelationApiSelect, fD as SubAgentToolRelationApiSelectSchema, cZ as SubAgentToolRelationApiUpdate, fF as SubAgentToolRelationApiUpdateSchema, cW as SubAgentToolRelationInsert, fB as SubAgentToolRelationInsertSchema, gu as SubAgentToolRelationListResponse, ge as SubAgentToolRelationResponse, cV as SubAgentToolRelationSelect, fA as SubAgentToolRelationSelectSchema, fC as SubAgentToolRelationUpdateSchema, dH as SubAgentUpdateSchema, dc as SummaryEvent, dt as TOOL_STATUS_VALUES, aY as Task, bY as TaskApiInsert, e2 as TaskApiInsertSchema, bX as TaskApiSelect, e1 as TaskApiSelectSchema, bZ as TaskApiUpdate, e3 as TaskApiUpdateSchema, bJ as TaskArtifact, a_ as TaskArtifactUpdateEvent, be as TaskIdParams, d$ as TaskInsertSchema, b5 as TaskNotCancelableError, b4 as TaskNotFoundError, bd as TaskPushNotificationConfig, bf as TaskQueryParams, c2 as TaskRelationApiInsert, e8 as TaskRelationApiInsertSchema, c1 as TaskRelationApiSelect, e7 as TaskRelationApiSelectSchema, c3 as TaskRelationApiUpdate, e9 as TaskRelationApiUpdateSchema, b$ as TaskRelationInsert, e5 as TaskRelationInsertSchema, b_ as TaskRelationSelect, e4 as TaskRelationSelectSchema, c0 as TaskRelationUpdate, e6 as TaskRelationUpdateSchema, bt as TaskResubscriptionRequest, d_ as TaskSelectSchema, aG as TaskState, aX as TaskStatus, aZ as TaskStatusUpdateEvent, bW as TaskUpdate, e0 as TaskUpdateSchema, gD as TenantIdParamsSchema, gC as TenantParamsSchema, gH as TenantProjectAgentIdParamsSchema, gG as TenantProjectAgentParamsSchema, gJ as TenantProjectAgentSubAgentIdParamsSchema, gI as TenantProjectAgentSubAgentParamsSchema, gF as TenantProjectIdParamsSchema, gE as TenantProjectParamsSchema, aA as TextPart, c5 as ToolApiInsert, fh as ToolApiInsertSchema, c4 as ToolApiSelect, fg as ToolApiSelectSchema, c6 as ToolApiUpdate, fi as ToolApiUpdateSchema, d7 as ToolDefinition, ee as ToolInsertSchema, gk as ToolListResponse, g4 as ToolResponse, ed as ToolSelectSchema, eb as ToolStatusSchema, ff as ToolUpdateSchema, dy as URL_SAFE_ID_PATTERN, b7 as UnsupportedOperationError, du as VALID_RELATION_TYPES, dz as resourceIdSchema } from './utility-BFHClCiL.cjs';
4
+ import { s as CredentialReferenceApiInsert, t as ContextConfigSelect, m as ContextFetchDefinition, i as MCPTransportType, u as MCPToolConfig, v as AgentScopeConfig, C as ConversationHistoryConfig, w as ProjectScopeConfig, x as PaginationConfig, y as AgentInsert, z as AgentUpdate, B as FullAgentDefinition, D as AgentSelect, E as ApiKeySelect, G as ApiKeyInsert, H as ApiKeyUpdate, I as CreateApiKeyParams, J as ApiKeyCreateResult, K as ArtifactComponentSelect, L as ArtifactComponentInsert, N as ArtifactComponentUpdate, O as SubAgentScopeConfig, Q as ContextCacheSelect, R as ContextCacheInsert, U as ContextConfigInsert, V as ContextConfigUpdate, W as ConversationSelect, X as ConversationInsert, p as ConversationMetadata, Y as ConversationUpdate, Z as CredentialReferenceSelect, _ as ToolSelect, $ as CredentialReferenceInsert, a0 as CredentialReferenceUpdate, a1 as DataComponentSelect, a2 as DataComponentInsert, a3 as DataComponentUpdate, a4 as ExternalAgentInsert, a5 as ExternalAgentSelect, a6 as ExternalAgentUpdate, a7 as FunctionApiInsert, a8 as FunctionToolApiInsert, a9 as FunctionToolApiUpdate, aa as Artifact, ab as LedgerArtifactSelect, r as MessageMetadata, q as MessageContent, ac as MessageVisibility, ad as MessageInsert, ae as MessageUpdate, af as FullProjectDefinition, ag as ProjectInfo, ah as ProjectSelect, ai as PaginationResult, aj as ProjectResourceCounts, ak as ProjectInsert, al as ProjectUpdate, am as SubAgentRelationInsert, an as ExternalSubAgentRelationInsert, ao as SubAgentRelationUpdate, ap as SubAgentToolRelationUpdate, n as ToolMcpConfig, o as ToolServerCapabilities, aq as SubAgentInsert, ar as SubAgentUpdate, as as SubAgentSelect, at as TaskInsert, T as TaskMetadataConfig, au as TaskSelect, av as McpTool, aw as ToolInsert, ax as ToolUpdate, h as CredentialStoreType, ay as ExecutionContext } from './utility-HqRMF7sM.cjs';
5
+ export { ba as A2AError, bG as A2ARequest, bH as A2AResponse, aL as APIKeySecurityScheme, bU as AgentApiInsert, dY as AgentApiInsertSchema, bT as AgentApiSelect, dX as AgentApiSelectSchema, bV as AgentApiUpdate, dZ as AgentApiUpdateSchema, aH as AgentCapabilities, aV as AgentCard, dl as AgentConversationHistoryConfig, dV as AgentInsertSchema, gj as AgentListResponse, aI as AgentProvider, g3 as AgentResponse, dU as AgentSelectSchema, aJ as AgentSkill, e as AgentStopWhen, b as AgentStopWhenSchema, dW as AgentUpdateSchema, fP as AgentWithinContextOfProjectSchema, f0 as AllAgentSchema, cO as AllAgentSelect, cS as ApiKeyApiCreationResponse, f5 as ApiKeyApiCreationResponseSchema, cQ as ApiKeyApiInsert, f6 as ApiKeyApiInsertSchema, cP as ApiKeyApiSelect, f4 as ApiKeyApiSelectSchema, cR as ApiKeyApiUpdate, A as ApiKeyApiUpdateSchema, f2 as ApiKeyInsertSchema, gn as ApiKeyListResponse, g7 as ApiKeyResponse, f1 as ApiKeySelectSchema, f3 as ApiKeyUpdateSchema, cD as ArtifactComponentApiInsert, eO as ArtifactComponentApiInsertSchema, cC as ArtifactComponentApiSelect, eN as ArtifactComponentApiSelectSchema, cE as ArtifactComponentApiUpdate, eP as ArtifactComponentApiUpdateSchema, eL as ArtifactComponentInsertSchema, gs as ArtifactComponentListResponse, gc as ArtifactComponentResponse, eK as ArtifactComponentSelectSchema, eM as ArtifactComponentUpdateSchema, aO as AuthorizationCodeOAuthFlow, d4 as CanUseItem, fO as CanUseItemSchema, bq as CancelTaskRequest, bB as CancelTaskResponse, bA as CancelTaskSuccessResponse, aP as ClientCredentialsOAuthFlow, b8 as ContentTypeNotSupportedError, cr as ContextCacheApiInsert, ev as ContextCacheApiInsertSchema, cq as ContextCacheApiSelect, eu as ContextCacheApiSelectSchema, cs as ContextCacheApiUpdate, ew as ContextCacheApiUpdateSchema, dm as ContextCacheEntry, es as ContextCacheInsertSchema, er as ContextCacheSelectSchema, cp as ContextCacheUpdate, et as ContextCacheUpdateSchema, cl as ContextConfigApiInsert, fy as ContextConfigApiInsertSchema, ck as ContextConfigApiSelect, fx as ContextConfigApiSelectSchema, cm as ContextConfigApiUpdate, fz as ContextConfigApiUpdateSchema, fv as ContextConfigInsertSchema, gm as ContextConfigListResponse, g6 as ContextConfigResponse, fu as ContextConfigSelectSchema, fw as ContextConfigUpdateSchema, ce as ConversationApiInsert, ej as ConversationApiInsertSchema, cd as ConversationApiSelect, ei as ConversationApiSelectSchema, cf as ConversationApiUpdate, ek as ConversationApiUpdateSchema, eg as ConversationInsertSchema, gv as ConversationListResponse, gf as ConversationResponse, dk as ConversationScopeOptions, ef as ConversationSelectSchema, eh as ConversationUpdateSchema, fb as CredentialReferenceApiInsertSchema, cT as CredentialReferenceApiSelect, fa as CredentialReferenceApiSelectSchema, cU as CredentialReferenceApiUpdate, fc as CredentialReferenceApiUpdateSchema, f8 as CredentialReferenceInsertSchema, go as CredentialReferenceListResponse, g8 as CredentialReferenceResponse, f7 as CredentialReferenceSelectSchema, f9 as CredentialReferenceUpdateSchema, cu as DataComponentApiInsert, eC as DataComponentApiInsertSchema, ct as DataComponentApiSelect, eB as DataComponentApiSelectSchema, cv as DataComponentApiUpdate, eD as DataComponentApiUpdateSchema, ez as DataComponentBaseSchema, ey as DataComponentInsertSchema, gr as DataComponentListResponse, gb as DataComponentResponse, ex as DataComponentSelectSchema, eA as DataComponentUpdateSchema, aF as DataPart, fT as ErrorResponseSchema, fU as ExistsResponseSchema, e_ as ExternalAgentApiInsertSchema, cL as ExternalAgentApiSelect, eZ as ExternalAgentApiSelectSchema, cN as ExternalAgentApiUpdate, e$ as ExternalAgentApiUpdateSchema, eX as ExternalAgentInsertSchema, gl as ExternalAgentListResponse, g5 as ExternalAgentResponse, eW as ExternalAgentSelectSchema, eY as ExternalAgentUpdateSchema, cM as ExternalSubAgentApiInsert, bS as ExternalSubAgentRelationApiInsert, dT as ExternalSubAgentRelationApiInsertSchema, dS as ExternalSubAgentRelationInsertSchema, co as FetchConfig, fs as FetchConfigSchema, cn as FetchDefinition, ft as FetchDefinitionSchema, aB as FileBase, aE as FilePart, aC as FileWithBytes, aD as FileWithUri, d3 as FullAgentAgentInsert, a as FullAgentAgentInsertSchema, g0 as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, ca as FunctionApiSelect, j as FunctionApiSelectSchema, cb as FunctionApiUpdate, k as FunctionApiUpdateSchema, c8 as FunctionInsert, fq as FunctionInsertSchema, gp as FunctionListResponse, g9 as FunctionResponse, c7 as FunctionSelect, fp as FunctionSelectSchema, fn as FunctionToolApiInsertSchema, cc as FunctionToolApiSelect, fm as FunctionToolApiSelectSchema, fo as FunctionToolApiUpdateSchema, dE as FunctionToolConfig, dD as FunctionToolConfigSchema, fk as FunctionToolInsertSchema, gq as FunctionToolListResponse, ga as FunctionToolResponse, fj as FunctionToolSelectSchema, fl as FunctionToolUpdateSchema, c9 as FunctionUpdate, fr as FunctionUpdateSchema, bs as GetTaskPushNotificationConfigRequest, bF as GetTaskPushNotificationConfigResponse, bE as GetTaskPushNotificationConfigSuccessResponse, bp as GetTaskRequest, bz as GetTaskResponse, by as GetTaskSuccessResponse, aM as HTTPAuthSecurityScheme, gB as HeadersScopeSchema, aQ as ImplicitOAuthFlow, b3 as InternalError, d5 as InternalSubAgentDefinition, b9 as InvalidAgentResponseError, b2 as InvalidParamsError, b0 as InvalidRequestError, a$ as JSONParseError, bk as JSONRPCError, bm as JSONRPCErrorResponse, bi as JSONRPCMessage, bj as JSONRPCRequest, bl as JSONRPCResult, d1 as LedgerArtifactApiInsert, fK as LedgerArtifactApiInsertSchema, d0 as LedgerArtifactApiSelect, fJ as LedgerArtifactApiSelectSchema, d2 as LedgerArtifactApiUpdate, fL as LedgerArtifactApiUpdateSchema, c_ as LedgerArtifactInsert, fH as LedgerArtifactInsertSchema, fG as LedgerArtifactSelectSchema, c$ as LedgerArtifactUpdate, fI as LedgerArtifactUpdateSchema, fR as ListResponseSchema, dx as MAX_ID_LENGTH, dv as MCPServerType, fe as MCPToolConfigSchema, dw as MIN_ID_LENGTH, dn as McpAuthType, dp as McpServerAuth, dr as McpServerCapabilities, ds as McpToolDefinition, ec as McpToolDefinitionSchema, fd as McpToolSchema, dq as McpTransportConfig, ea as McpTransportConfigSchema, aW as Message, ci as MessageApiInsert, ep as MessageApiInsertSchema, ch as MessageApiSelect, eo as MessageApiSelectSchema, cj as MessageApiUpdate, eq as MessageApiUpdateSchema, em as MessageInsertSchema, gw as MessageListResponse, df as MessageMode, bI as MessagePart, gg as MessageResponse, de as MessageRole, cg as MessageSelect, el as MessageSelectSchema, bg as MessageSendConfiguration, bh as MessageSendParams, dd as MessageType, en as MessageUpdateSchema, b1 as MethodNotFoundError, dA as ModelSchema, g as ModelSettings, M as ModelSettingsSchema, dg as Models, aS as OAuth2SecurityScheme, aN as OAuthFlows, aT as OpenIdConnectSecurityScheme, db as Pagination, gK as PaginationQueryParamsSchema, fQ as PaginationSchema, P as Part, az as PartBase, aR as PasswordOAuthFlow, d9 as ProjectApiInsert, f_ as ProjectApiInsertSchema, d8 as ProjectApiSelect, fZ as ProjectApiSelectSchema, da as ProjectApiUpdate, f$ as ProjectApiUpdateSchema, fX as ProjectInsertSchema, gh as ProjectListResponse, dB as ProjectModelSchema, dh as ProjectModels, g1 as ProjectResponse, fW as ProjectSelectSchema, fY as ProjectUpdateSchema, bb as PushNotificationAuthenticationInfo, bc as PushNotificationConfig, b6 as PushNotificationNotSupportedError, fV as RemovedResponseSchema, dC as SandboxConfig, l as SandboxConfigSchema, aU as SecurityScheme, aK as SecuritySchemeBase, bn as SendMessageRequest, bv as SendMessageResponse, bu as SendMessageSuccessResponse, bo as SendStreamingMessageRequest, bx as SendStreamingMessageResponse, bw as SendStreamingMessageSuccessResponse, br as SetTaskPushNotificationConfigRequest, bD as SetTaskPushNotificationConfigResponse, bC as SetTaskPushNotificationConfigSuccessResponse, fS as SingleResponseSchema, dj as StatusComponent, fM as StatusComponentSchema, fN as StatusUpdateSchema, di as StatusUpdateSettings, d as StopWhen, S as StopWhenSchema, bL as SubAgentApiInsert, dJ as SubAgentApiInsertSchema, bK as SubAgentApiSelect, dI as SubAgentApiSelectSchema, bM as SubAgentApiUpdate, dK as SubAgentApiUpdateSchema, cJ as SubAgentArtifactComponentApiInsert, eU as SubAgentArtifactComponentApiInsertSchema, cI as SubAgentArtifactComponentApiSelect, eT as SubAgentArtifactComponentApiSelectSchema, cK as SubAgentArtifactComponentApiUpdate, eV as SubAgentArtifactComponentApiUpdateSchema, cG as SubAgentArtifactComponentInsert, eR as SubAgentArtifactComponentInsertSchema, gA as SubAgentArtifactComponentListResponse, gy as SubAgentArtifactComponentResponse, cF as SubAgentArtifactComponentSelect, eQ as SubAgentArtifactComponentSelectSchema, cH as SubAgentArtifactComponentUpdate, eS as SubAgentArtifactComponentUpdateSchema, cA as SubAgentDataComponentApiInsert, eI as SubAgentDataComponentApiInsertSchema, cz as SubAgentDataComponentApiSelect, eH as SubAgentDataComponentApiSelectSchema, cB as SubAgentDataComponentApiUpdate, eJ as SubAgentDataComponentApiUpdateSchema, cx as SubAgentDataComponentInsert, eF as SubAgentDataComponentInsertSchema, gz as SubAgentDataComponentListResponse, gx as SubAgentDataComponentResponse, cw as SubAgentDataComponentSelect, eE as SubAgentDataComponentSelectSchema, cy as SubAgentDataComponentUpdate, eG as SubAgentDataComponentUpdateSchema, d6 as SubAgentDefinition, dG as SubAgentInsertSchema, gi as SubAgentListResponse, bP as SubAgentRelationApiInsert, dP as SubAgentRelationApiInsertSchema, bO as SubAgentRelationApiSelect, dO as SubAgentRelationApiSelectSchema, bQ as SubAgentRelationApiUpdate, dQ as SubAgentRelationApiUpdateSchema, dM as SubAgentRelationInsertSchema, gt as SubAgentRelationListResponse, bR as SubAgentRelationQuery, dR as SubAgentRelationQuerySchema, gd as SubAgentRelationResponse, bN as SubAgentRelationSelect, dL as SubAgentRelationSelectSchema, dN as SubAgentRelationUpdateSchema, g2 as SubAgentResponse, dF as SubAgentSelectSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema, cY as SubAgentToolRelationApiInsert, fE as SubAgentToolRelationApiInsertSchema, cX as SubAgentToolRelationApiSelect, fD as SubAgentToolRelationApiSelectSchema, cZ as SubAgentToolRelationApiUpdate, fF as SubAgentToolRelationApiUpdateSchema, cW as SubAgentToolRelationInsert, fB as SubAgentToolRelationInsertSchema, gu as SubAgentToolRelationListResponse, ge as SubAgentToolRelationResponse, cV as SubAgentToolRelationSelect, fA as SubAgentToolRelationSelectSchema, fC as SubAgentToolRelationUpdateSchema, dH as SubAgentUpdateSchema, dc as SummaryEvent, dt as TOOL_STATUS_VALUES, aY as Task, bY as TaskApiInsert, e2 as TaskApiInsertSchema, bX as TaskApiSelect, e1 as TaskApiSelectSchema, bZ as TaskApiUpdate, e3 as TaskApiUpdateSchema, bJ as TaskArtifact, a_ as TaskArtifactUpdateEvent, be as TaskIdParams, d$ as TaskInsertSchema, b5 as TaskNotCancelableError, b4 as TaskNotFoundError, bd as TaskPushNotificationConfig, bf as TaskQueryParams, c2 as TaskRelationApiInsert, e8 as TaskRelationApiInsertSchema, c1 as TaskRelationApiSelect, e7 as TaskRelationApiSelectSchema, c3 as TaskRelationApiUpdate, e9 as TaskRelationApiUpdateSchema, b$ as TaskRelationInsert, e5 as TaskRelationInsertSchema, b_ as TaskRelationSelect, e4 as TaskRelationSelectSchema, c0 as TaskRelationUpdate, e6 as TaskRelationUpdateSchema, bt as TaskResubscriptionRequest, d_ as TaskSelectSchema, aG as TaskState, aX as TaskStatus, aZ as TaskStatusUpdateEvent, bW as TaskUpdate, e0 as TaskUpdateSchema, gD as TenantIdParamsSchema, gC as TenantParamsSchema, gH as TenantProjectAgentIdParamsSchema, gG as TenantProjectAgentParamsSchema, gJ as TenantProjectAgentSubAgentIdParamsSchema, gI as TenantProjectAgentSubAgentParamsSchema, gF as TenantProjectIdParamsSchema, gE as TenantProjectParamsSchema, aA as TextPart, c5 as ToolApiInsert, fh as ToolApiInsertSchema, c4 as ToolApiSelect, fg as ToolApiSelectSchema, c6 as ToolApiUpdate, fi as ToolApiUpdateSchema, d7 as ToolDefinition, ee as ToolInsertSchema, gk as ToolListResponse, g4 as ToolResponse, ed as ToolSelectSchema, eb as ToolStatusSchema, ff as ToolUpdateSchema, dy as URL_SAFE_ID_PATTERN, b7 as UnsupportedOperationError, du as VALID_RELATION_TYPES, dz as resourceIdSchema } from './utility-HqRMF7sM.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-wXveVxxd.cjs';
10
- export { q as agentFunctionToolRelations, U as agentFunctionToolRelationsRelations, 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, 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-wXveVxxd.cjs';
9
+ import { s as schema } from './schema-CcSN2XcZ.cjs';
10
+ export { q as agentFunctionToolRelations, U as agentFunctionToolRelationsRelations, 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, 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-CcSN2XcZ.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';
@@ -823,13 +823,14 @@ declare class CredentialStuffer {
823
823
  declare const getAgentById: (db: DatabaseClient) => (params: {
824
824
  scopes: AgentScopeConfig;
825
825
  }) => Promise<{
826
- name: string;
826
+ tenantId: string;
827
+ projectId: string;
827
828
  id: string;
829
+ name: string;
830
+ description: string | null;
831
+ prompt: string | null;
828
832
  createdAt: string;
829
833
  updatedAt: string;
830
- projectId: string;
831
- tenantId: string;
832
- description: string | null;
833
834
  models: {
834
835
  base?: {
835
836
  model?: string | undefined;
@@ -849,7 +850,6 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
849
850
  } | null;
850
851
  defaultSubAgentId: string | null;
851
852
  contextConfigId: string | null;
852
- prompt: string | null;
853
853
  statusUpdates: {
854
854
  enabled?: boolean | undefined;
855
855
  numEvents?: number | undefined;
@@ -869,13 +869,14 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
869
869
  declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
870
870
  scopes: AgentScopeConfig;
871
871
  }) => Promise<{
872
- name: string;
872
+ tenantId: string;
873
+ projectId: string;
873
874
  id: string;
875
+ name: string;
876
+ description: string | null;
877
+ prompt: string | null;
874
878
  createdAt: string;
875
879
  updatedAt: string;
876
- projectId: string;
877
- tenantId: string;
878
- description: string | null;
879
880
  models: {
880
881
  base?: {
881
882
  model?: string | undefined;
@@ -895,7 +896,6 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
895
896
  } | null;
896
897
  defaultSubAgentId: string | null;
897
898
  contextConfigId: string | null;
898
- prompt: string | null;
899
899
  statusUpdates: {
900
900
  enabled?: boolean | undefined;
901
901
  numEvents?: number | undefined;
@@ -912,13 +912,15 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
912
912
  }[] | undefined;
913
913
  } | null;
914
914
  defaultSubAgent: {
915
- name: string;
915
+ tenantId: string;
916
+ projectId: string;
916
917
  id: string;
918
+ name: string;
919
+ description: string;
920
+ prompt: string;
921
+ agentId: string;
917
922
  createdAt: string;
918
923
  updatedAt: string;
919
- projectId: string;
920
- tenantId: string;
921
- description: string;
922
924
  models: {
923
925
  base?: {
924
926
  model?: string | undefined;
@@ -936,21 +938,20 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
936
938
  stopWhen: {
937
939
  stepCountIs?: number | undefined;
938
940
  } | null;
939
- agentId: string;
940
- prompt: string;
941
941
  conversationHistoryConfig: ConversationHistoryConfig | null;
942
942
  } | null;
943
943
  } | null>;
944
944
  declare const listAgents: (db: DatabaseClient) => (params: {
945
945
  scopes: ProjectScopeConfig;
946
946
  }) => Promise<{
947
- name: string;
947
+ tenantId: string;
948
+ projectId: string;
948
949
  id: string;
950
+ name: string;
951
+ description: string | null;
952
+ prompt: string | null;
949
953
  createdAt: string;
950
954
  updatedAt: string;
951
- projectId: string;
952
- tenantId: string;
953
- description: string | null;
954
955
  models: {
955
956
  base?: {
956
957
  model?: string | undefined;
@@ -970,7 +971,6 @@ declare const listAgents: (db: DatabaseClient) => (params: {
970
971
  } | null;
971
972
  defaultSubAgentId: string | null;
972
973
  contextConfigId: string | null;
973
- prompt: string | null;
974
974
  statusUpdates: {
975
975
  enabled?: boolean | undefined;
976
976
  numEvents?: number | undefined;
@@ -1043,13 +1043,14 @@ declare const listAgentsPaginated: (db: DatabaseClient) => (params: {
1043
1043
  };
1044
1044
  }>;
1045
1045
  declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promise<{
1046
- name: string;
1046
+ tenantId: string;
1047
+ projectId: string;
1047
1048
  id: string;
1049
+ name: string;
1050
+ description: string | null;
1051
+ prompt: string | null;
1048
1052
  createdAt: string;
1049
1053
  updatedAt: string;
1050
- projectId: string;
1051
- tenantId: string;
1052
- description: string | null;
1053
1054
  models: {
1054
1055
  base?: {
1055
1056
  model?: string | undefined;
@@ -1069,7 +1070,6 @@ declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promis
1069
1070
  } | null;
1070
1071
  defaultSubAgentId: string | null;
1071
1072
  contextConfigId: string | null;
1072
- prompt: string | null;
1073
1073
  statusUpdates: {
1074
1074
  enabled?: boolean | undefined;
1075
1075
  numEvents?: number | undefined;
@@ -1090,13 +1090,14 @@ declare const updateAgent: (db: DatabaseClient) => (params: {
1090
1090
  scopes: AgentScopeConfig;
1091
1091
  data: AgentUpdate;
1092
1092
  }) => Promise<{
1093
- name: string;
1093
+ tenantId: string;
1094
+ projectId: string;
1094
1095
  id: string;
1096
+ name: string;
1097
+ description: string | null;
1098
+ prompt: string | null;
1095
1099
  createdAt: string;
1096
1100
  updatedAt: string;
1097
- projectId: string;
1098
- tenantId: string;
1099
- description: string | null;
1100
1101
  models: {
1101
1102
  base?: {
1102
1103
  model?: string | undefined;
@@ -1116,7 +1117,6 @@ declare const updateAgent: (db: DatabaseClient) => (params: {
1116
1117
  } | null;
1117
1118
  defaultSubAgentId: string | null;
1118
1119
  contextConfigId: string | null;
1119
- prompt: string | null;
1120
1120
  statusUpdates: {
1121
1121
  enabled?: boolean | undefined;
1122
1122
  numEvents?: number | undefined;
@@ -1170,49 +1170,49 @@ declare const getApiKeyById: (db: DatabaseClient) => (params: {
1170
1170
  scopes: ProjectScopeConfig;
1171
1171
  id: string;
1172
1172
  }) => 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
1178
  publicId: string;
1181
1179
  keyHash: string;
1182
1180
  keyPrefix: string;
1183
1181
  lastUsedAt: string | null;
1184
1182
  expiresAt: string | null;
1185
- } | undefined>;
1186
- declare const getApiKeyByPublicId: (db: DatabaseClient) => (publicId: string) => Promise<{
1187
- name: string | null;
1188
- id: string;
1189
1183
  createdAt: string;
1190
1184
  updatedAt: string;
1191
- projectId: string;
1185
+ } | undefined>;
1186
+ declare const getApiKeyByPublicId: (db: DatabaseClient) => (publicId: string) => Promise<{
1192
1187
  tenantId: string;
1188
+ projectId: string;
1189
+ id: string;
1190
+ name: string | null;
1193
1191
  agentId: string;
1194
1192
  publicId: string;
1195
1193
  keyHash: string;
1196
1194
  keyPrefix: string;
1197
1195
  lastUsedAt: string | null;
1198
1196
  expiresAt: string | null;
1197
+ createdAt: string;
1198
+ updatedAt: string;
1199
1199
  } | undefined>;
1200
1200
  declare const listApiKeys: (db: DatabaseClient) => (params: {
1201
1201
  scopes: ProjectScopeConfig;
1202
1202
  agentId?: string;
1203
1203
  }) => Promise<{
1204
- name: string | null;
1205
- id: string;
1206
- createdAt: string;
1207
- updatedAt: string;
1208
- projectId: string;
1209
1204
  tenantId: string;
1205
+ projectId: string;
1206
+ id: string;
1207
+ name: string | null;
1210
1208
  agentId: string;
1211
1209
  publicId: string;
1212
1210
  keyHash: string;
1213
1211
  keyPrefix: string;
1214
1212
  lastUsedAt: string | null;
1215
1213
  expiresAt: string | null;
1214
+ createdAt: string;
1215
+ updatedAt: string;
1216
1216
  }[]>;
1217
1217
  declare const listApiKeysPaginated: (db: DatabaseClient) => (params: {
1218
1218
  scopes: ProjectScopeConfig;
@@ -1228,36 +1228,36 @@ declare const listApiKeysPaginated: (db: DatabaseClient) => (params: {
1228
1228
  };
1229
1229
  }>;
1230
1230
  declare const createApiKey: (db: DatabaseClient) => (params: ApiKeyInsert) => Promise<{
1231
- name: string | null;
1232
- id: string;
1233
- createdAt: string;
1234
- updatedAt: string;
1235
- projectId: string;
1236
1231
  tenantId: string;
1232
+ projectId: string;
1233
+ id: string;
1234
+ name: string | null;
1237
1235
  agentId: string;
1238
1236
  publicId: string;
1239
1237
  keyHash: string;
1240
1238
  keyPrefix: string;
1241
1239
  lastUsedAt: string | null;
1242
1240
  expiresAt: string | null;
1241
+ createdAt: string;
1242
+ updatedAt: string;
1243
1243
  }>;
1244
1244
  declare const updateApiKey: (db: DatabaseClient) => (params: {
1245
1245
  scopes: ProjectScopeConfig;
1246
1246
  id: string;
1247
1247
  data: ApiKeyUpdate;
1248
1248
  }) => Promise<{
1249
- name: string | null;
1250
- id: string;
1251
- createdAt: string;
1252
- updatedAt: string;
1253
- projectId: string;
1254
1249
  tenantId: string;
1250
+ projectId: string;
1251
+ id: string;
1252
+ name: string | null;
1255
1253
  agentId: string;
1256
1254
  publicId: string;
1257
1255
  keyHash: string;
1258
1256
  keyPrefix: string;
1259
1257
  lastUsedAt: string | null;
1260
1258
  expiresAt: string | null;
1259
+ createdAt: string;
1260
+ updatedAt: string;
1261
1261
  }>;
1262
1262
  declare const deleteApiKey: (db: DatabaseClient) => (params: {
1263
1263
  scopes: ProjectScopeConfig;
@@ -1286,13 +1286,13 @@ declare const getArtifactComponentById: (db: DatabaseClient) => (params: {
1286
1286
  scopes: ProjectScopeConfig;
1287
1287
  id: string;
1288
1288
  }) => Promise<{
1289
- name: string;
1289
+ tenantId: string;
1290
+ projectId: string;
1290
1291
  id: string;
1292
+ name: string;
1293
+ description: string;
1291
1294
  createdAt: string;
1292
1295
  updatedAt: string;
1293
- projectId: string;
1294
- tenantId: string;
1295
- description: string;
1296
1296
  props: Record<string, unknown> | null;
1297
1297
  } | undefined>;
1298
1298
  declare const listArtifactComponents: (db: DatabaseClient) => (params: {
@@ -1320,13 +1320,13 @@ declare const listArtifactComponentsPaginated: (db: DatabaseClient) => (params:
1320
1320
  };
1321
1321
  }>;
1322
1322
  declare const createArtifactComponent: (db: DatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
1323
- name: string;
1323
+ tenantId: string;
1324
+ projectId: string;
1324
1325
  id: string;
1326
+ name: string;
1327
+ description: string;
1325
1328
  createdAt: string;
1326
1329
  updatedAt: string;
1327
- projectId: string;
1328
- tenantId: string;
1329
- description: string;
1330
1330
  props: Record<string, unknown> | null;
1331
1331
  }>;
1332
1332
  declare const updateArtifactComponent: (db: DatabaseClient) => (params: {
@@ -1334,13 +1334,13 @@ declare const updateArtifactComponent: (db: DatabaseClient) => (params: {
1334
1334
  id: string;
1335
1335
  data: ArtifactComponentUpdate;
1336
1336
  }) => Promise<{
1337
- name: string;
1337
+ tenantId: string;
1338
+ projectId: string;
1338
1339
  id: string;
1340
+ name: string;
1341
+ description: string;
1339
1342
  createdAt: string;
1340
1343
  updatedAt: string;
1341
- projectId: string;
1342
- tenantId: string;
1343
- description: string;
1344
1344
  props: Record<string, unknown> | null;
1345
1345
  }>;
1346
1346
  declare const deleteArtifactComponent: (db: DatabaseClient) => (params: {
@@ -1363,11 +1363,11 @@ declare const associateArtifactComponentWithAgent: (db: DatabaseClient) => (para
1363
1363
  scopes: SubAgentScopeConfig;
1364
1364
  artifactComponentId: string;
1365
1365
  }) => Promise<{
1366
- id: string;
1367
- createdAt: string;
1368
- projectId: string;
1369
1366
  tenantId: string;
1367
+ projectId: string;
1368
+ id: string;
1370
1369
  agentId: string;
1370
+ createdAt: string;
1371
1371
  subAgentId: string;
1372
1372
  artifactComponentId: string;
1373
1373
  }>;
@@ -1406,11 +1406,11 @@ declare const upsertAgentArtifactComponentRelation: (db: DatabaseClient) => (par
1406
1406
  scopes: SubAgentScopeConfig;
1407
1407
  artifactComponentId: string;
1408
1408
  }) => Promise<{
1409
- id: string;
1410
- createdAt: string;
1411
- projectId: string;
1412
1409
  tenantId: string;
1410
+ projectId: string;
1411
+ id: string;
1413
1412
  agentId: string;
1413
+ createdAt: string;
1414
1414
  subAgentId: string;
1415
1415
  artifactComponentId: string;
1416
1416
  } | null>;
@@ -1490,26 +1490,26 @@ declare const getContextConfigById: (db: DatabaseClient) => (params: {
1490
1490
  scopes: AgentScopeConfig;
1491
1491
  id: string;
1492
1492
  }) => Promise<{
1493
+ tenantId: string;
1494
+ projectId: string;
1493
1495
  id: string;
1496
+ agentId: string;
1494
1497
  createdAt: string;
1495
1498
  updatedAt: string;
1496
- projectId: string;
1497
- tenantId: string;
1498
1499
  headersSchema: unknown;
1499
1500
  contextVariables: Record<string, ContextFetchDefinition> | null;
1500
- agentId: string;
1501
1501
  } | undefined>;
1502
1502
  declare const listContextConfigs: (db: DatabaseClient) => (params: {
1503
1503
  scopes: AgentScopeConfig;
1504
1504
  }) => Promise<{
1505
+ tenantId: string;
1506
+ projectId: string;
1505
1507
  id: string;
1508
+ agentId: string;
1506
1509
  createdAt: string;
1507
1510
  updatedAt: string;
1508
- projectId: string;
1509
- tenantId: string;
1510
1511
  headersSchema: unknown;
1511
1512
  contextVariables: Record<string, ContextFetchDefinition> | null;
1512
- agentId: string;
1513
1513
  }[]>;
1514
1514
  declare const listContextConfigsPaginated: (db: DatabaseClient) => (params: {
1515
1515
  scopes: AgentScopeConfig;
@@ -1524,28 +1524,28 @@ declare const listContextConfigsPaginated: (db: DatabaseClient) => (params: {
1524
1524
  };
1525
1525
  }>;
1526
1526
  declare const createContextConfig: (db: DatabaseClient) => (params: ContextConfigInsert) => Promise<{
1527
+ tenantId: string;
1528
+ projectId: string;
1527
1529
  id: string;
1530
+ agentId: string;
1528
1531
  createdAt: string;
1529
1532
  updatedAt: string;
1530
- projectId: string;
1531
- tenantId: string;
1532
1533
  headersSchema: unknown;
1533
1534
  contextVariables: Record<string, ContextFetchDefinition> | null;
1534
- agentId: string;
1535
1535
  }>;
1536
1536
  declare const updateContextConfig: (db: DatabaseClient) => (params: {
1537
1537
  scopes: AgentScopeConfig;
1538
1538
  id: string;
1539
1539
  data: Partial<ContextConfigUpdate>;
1540
1540
  }) => Promise<{
1541
+ tenantId: string;
1542
+ projectId: string;
1541
1543
  id: string;
1544
+ agentId: string;
1542
1545
  createdAt: string;
1543
1546
  updatedAt: string;
1544
- projectId: string;
1545
- tenantId: string;
1546
1547
  headersSchema: unknown;
1547
1548
  contextVariables: Record<string, ContextFetchDefinition> | null;
1548
- agentId: string;
1549
1549
  }>;
1550
1550
  declare const deleteContextConfig: (db: DatabaseClient) => (params: {
1551
1551
  scopes: AgentScopeConfig;
@@ -1564,14 +1564,14 @@ declare const countContextConfigs: (db: DatabaseClient) => (params: {
1564
1564
  declare const upsertContextConfig: (db: DatabaseClient) => (params: {
1565
1565
  data: ContextConfigInsert;
1566
1566
  }) => Promise<{
1567
+ tenantId: string;
1568
+ projectId: string;
1567
1569
  id: string;
1570
+ agentId: string;
1568
1571
  createdAt: string;
1569
1572
  updatedAt: string;
1570
- projectId: string;
1571
- tenantId: string;
1572
1573
  headersSchema: unknown;
1573
1574
  contextVariables: Record<string, ContextFetchDefinition> | null;
1574
- agentId: string;
1575
1575
  }>;
1576
1576
 
1577
1577
  declare const listConversations: (db: DatabaseClient) => (params: {
@@ -1583,12 +1583,12 @@ declare const listConversations: (db: DatabaseClient) => (params: {
1583
1583
  total: number;
1584
1584
  }>;
1585
1585
  declare const createConversation: (db: DatabaseClient) => (params: ConversationInsert) => Promise<{
1586
+ tenantId: string;
1587
+ projectId: string;
1586
1588
  id: string;
1589
+ title: string | null;
1587
1590
  createdAt: string;
1588
1591
  updatedAt: string;
1589
- projectId: string;
1590
- tenantId: string;
1591
- title: string | null;
1592
1592
  metadata: ConversationMetadata | null;
1593
1593
  userId: string | null;
1594
1594
  activeSubAgentId: string;
@@ -1599,12 +1599,12 @@ declare const updateConversation: (db: DatabaseClient) => (params: {
1599
1599
  conversationId: string;
1600
1600
  data: ConversationUpdate;
1601
1601
  }) => Promise<{
1602
+ tenantId: string;
1603
+ projectId: string;
1602
1604
  id: string;
1605
+ title: string | null;
1603
1606
  createdAt: string;
1604
1607
  updatedAt: string;
1605
- projectId: string;
1606
- tenantId: string;
1607
- title: string | null;
1608
1608
  metadata: ConversationMetadata | null;
1609
1609
  userId: string | null;
1610
1610
  activeSubAgentId: string;
@@ -1619,12 +1619,12 @@ declare const updateConversationActiveAgent: (db: DatabaseClient) => (params: {
1619
1619
  conversationId: string;
1620
1620
  activeSubAgentId: string;
1621
1621
  }) => Promise<{
1622
+ tenantId: string;
1623
+ projectId: string;
1622
1624
  id: string;
1625
+ title: string | null;
1623
1626
  createdAt: string;
1624
1627
  updatedAt: string;
1625
- projectId: string;
1626
- tenantId: string;
1627
- title: string | null;
1628
1628
  metadata: ConversationMetadata | null;
1629
1629
  userId: string | null;
1630
1630
  activeSubAgentId: string;
@@ -1634,12 +1634,12 @@ declare const getConversation: (db: DatabaseClient) => (params: {
1634
1634
  scopes: ProjectScopeConfig;
1635
1635
  conversationId: string;
1636
1636
  }) => Promise<{
1637
+ tenantId: string;
1638
+ projectId: string;
1637
1639
  id: string;
1640
+ title: string | null;
1638
1641
  createdAt: string;
1639
1642
  updatedAt: string;
1640
- projectId: string;
1641
- tenantId: string;
1642
- title: string | null;
1643
1643
  metadata: ConversationMetadata | null;
1644
1644
  userId: string | null;
1645
1645
  activeSubAgentId: string;
@@ -1658,12 +1658,12 @@ declare const createOrGetConversation: (db: DatabaseClient) => (input: Conversat
1658
1658
  metadata?: ConversationMetadata | null | undefined;
1659
1659
  contextConfigId?: string | undefined;
1660
1660
  } | {
1661
+ tenantId: string;
1662
+ projectId: string;
1661
1663
  id: string;
1664
+ title: string | null;
1662
1665
  createdAt: string;
1663
1666
  updatedAt: string;
1664
- projectId: string;
1665
- tenantId: string;
1666
- title: string | null;
1667
1667
  metadata: ConversationMetadata | null;
1668
1668
  userId: string | null;
1669
1669
  activeSubAgentId: string;
@@ -1684,12 +1684,12 @@ declare const getActiveAgentForConversation: (db: DatabaseClient) => (params: {
1684
1684
  scopes: ProjectScopeConfig;
1685
1685
  conversationId: string;
1686
1686
  }) => Promise<{
1687
+ tenantId: string;
1688
+ projectId: string;
1687
1689
  id: string;
1690
+ title: string | null;
1688
1691
  createdAt: string;
1689
1692
  updatedAt: string;
1690
- projectId: string;
1691
- tenantId: string;
1692
- title: string | null;
1693
1693
  metadata: ConversationMetadata | null;
1694
1694
  userId: string | null;
1695
1695
  activeSubAgentId: string;
@@ -1853,11 +1853,11 @@ declare const associateDataComponentWithAgent: (db: DatabaseClient) => (params:
1853
1853
  scopes: SubAgentScopeConfig;
1854
1854
  dataComponentId: string;
1855
1855
  }) => Promise<{
1856
- id: string;
1857
- createdAt: string;
1858
- projectId: string;
1859
1856
  tenantId: string;
1857
+ projectId: string;
1858
+ id: string;
1860
1859
  agentId: string;
1860
+ createdAt: string;
1861
1861
  subAgentId: string;
1862
1862
  dataComponentId: string;
1863
1863
  }>;
@@ -1895,11 +1895,11 @@ declare const upsertAgentDataComponentRelation: (db: DatabaseClient) => (params:
1895
1895
  scopes: SubAgentScopeConfig;
1896
1896
  dataComponentId: string;
1897
1897
  }) => Promise<{
1898
- id: string;
1899
- createdAt: string;
1900
- projectId: string;
1901
1898
  tenantId: string;
1899
+ projectId: string;
1900
+ id: string;
1902
1901
  agentId: string;
1902
+ createdAt: string;
1903
1903
  subAgentId: string;
1904
1904
  dataComponentId: string;
1905
1905
  } | null>;
@@ -2074,14 +2074,14 @@ declare const createFunctionTool: (db: DatabaseClient) => (params: {
2074
2074
  data: FunctionToolApiInsert;
2075
2075
  scopes: AgentScopeConfig;
2076
2076
  }) => Promise<{
2077
- name: string;
2078
- id: string;
2079
- createdAt: string;
2080
- updatedAt: string;
2081
- projectId: string;
2082
2077
  tenantId: string;
2078
+ projectId: string;
2079
+ id: string;
2080
+ name: string;
2083
2081
  description: string | null;
2084
2082
  agentId: string;
2083
+ createdAt: string;
2084
+ updatedAt: string;
2085
2085
  functionId: string;
2086
2086
  }>;
2087
2087
  /**
@@ -2092,14 +2092,14 @@ declare const updateFunctionTool: (db: DatabaseClient) => (params: {
2092
2092
  functionToolId: string;
2093
2093
  data: FunctionToolApiUpdate;
2094
2094
  }) => Promise<{
2095
- name: string;
2096
- id: string;
2097
- createdAt: string;
2098
- updatedAt: string;
2099
- projectId: string;
2100
2095
  tenantId: string;
2096
+ projectId: string;
2097
+ id: string;
2098
+ name: string;
2101
2099
  description: string | null;
2102
2100
  agentId: string;
2101
+ createdAt: string;
2102
+ updatedAt: string;
2103
2103
  functionId: string;
2104
2104
  }>;
2105
2105
  /**
@@ -2116,14 +2116,14 @@ declare const upsertFunctionTool: (db: DatabaseClient) => (params: {
2116
2116
  data: FunctionToolApiInsert;
2117
2117
  scopes: AgentScopeConfig;
2118
2118
  }) => Promise<{
2119
- name: string;
2120
- id: string;
2121
- createdAt: string;
2122
- updatedAt: string;
2123
- projectId: string;
2124
2119
  tenantId: string;
2120
+ projectId: string;
2121
+ id: string;
2122
+ name: string;
2125
2123
  description: string | null;
2126
2124
  agentId: string;
2125
+ createdAt: string;
2126
+ updatedAt: string;
2127
2127
  functionId: string;
2128
2128
  }>;
2129
2129
  declare const getFunctionToolsForSubAgent: (db: DatabaseClient) => (params: {
@@ -2280,11 +2280,11 @@ declare const getMessageById: (db: DatabaseClient) => (params: {
2280
2280
  scopes: ProjectScopeConfig;
2281
2281
  messageId: string;
2282
2282
  }) => Promise<{
2283
+ tenantId: string;
2284
+ projectId: string;
2283
2285
  id: string;
2284
2286
  createdAt: string;
2285
2287
  updatedAt: string;
2286
- projectId: string;
2287
- tenantId: string;
2288
2288
  metadata: MessageMetadata | null;
2289
2289
  content: MessageContent;
2290
2290
  conversationId: string;
@@ -2401,11 +2401,11 @@ declare const getVisibleMessages: (db: DatabaseClient) => (params: {
2401
2401
  id: string;
2402
2402
  }[]>;
2403
2403
  declare const createMessage: (db: DatabaseClient) => (params: MessageInsert) => Promise<{
2404
+ tenantId: string;
2405
+ projectId: string;
2404
2406
  id: string;
2405
2407
  createdAt: string;
2406
2408
  updatedAt: string;
2407
- projectId: string;
2408
- tenantId: string;
2409
2409
  metadata: MessageMetadata | null;
2410
2410
  content: MessageContent;
2411
2411
  conversationId: string;
@@ -2426,11 +2426,11 @@ declare const updateMessage: (db: DatabaseClient) => (params: {
2426
2426
  messageId: string;
2427
2427
  data: MessageUpdate;
2428
2428
  }) => Promise<{
2429
+ tenantId: string;
2430
+ projectId: string;
2429
2431
  id: string;
2430
2432
  createdAt: string;
2431
2433
  updatedAt: string;
2432
- projectId: string;
2433
- tenantId: string;
2434
2434
  metadata: MessageMetadata | null;
2435
2435
  content: MessageContent;
2436
2436
  conversationId: string;
@@ -2450,11 +2450,11 @@ declare const deleteMessage: (db: DatabaseClient) => (params: {
2450
2450
  scopes: ProjectScopeConfig;
2451
2451
  messageId: string;
2452
2452
  }) => Promise<{
2453
+ tenantId: string;
2454
+ projectId: string;
2453
2455
  id: string;
2454
2456
  createdAt: string;
2455
2457
  updatedAt: string;
2456
- projectId: string;
2457
- tenantId: string;
2458
2458
  metadata: MessageMetadata | null;
2459
2459
  content: MessageContent;
2460
2460
  conversationId: string;
@@ -2573,12 +2573,12 @@ declare const getAgentRelationById: (db: DatabaseClient) => (params: {
2573
2573
  scopes: AgentScopeConfig;
2574
2574
  relationId: string;
2575
2575
  }) => Promise<{
2576
+ tenantId: string;
2577
+ projectId: string;
2576
2578
  id: string;
2579
+ agentId: string;
2577
2580
  createdAt: string;
2578
2581
  updatedAt: string;
2579
- projectId: string;
2580
- tenantId: string;
2581
- agentId: string;
2582
2582
  sourceSubAgentId: string;
2583
2583
  targetSubAgentId: string | null;
2584
2584
  externalSubAgentId: string | null;
@@ -2610,12 +2610,12 @@ declare const listAgentRelations: (db: DatabaseClient) => (params: {
2610
2610
  declare const getAgentRelations: (db: DatabaseClient) => (params: {
2611
2611
  scopes: SubAgentScopeConfig;
2612
2612
  }) => Promise<{
2613
+ tenantId: string;
2614
+ projectId: string;
2613
2615
  id: string;
2616
+ agentId: string;
2614
2617
  createdAt: string;
2615
2618
  updatedAt: string;
2616
- projectId: string;
2617
- tenantId: string;
2618
- agentId: string;
2619
2619
  sourceSubAgentId: string;
2620
2620
  targetSubAgentId: string | null;
2621
2621
  externalSubAgentId: string | null;
@@ -2624,12 +2624,12 @@ declare const getAgentRelations: (db: DatabaseClient) => (params: {
2624
2624
  declare const getAgentRelationsByAgent: (db: DatabaseClient) => (params: {
2625
2625
  scopes: AgentScopeConfig;
2626
2626
  }) => Promise<{
2627
+ tenantId: string;
2628
+ projectId: string;
2627
2629
  id: string;
2630
+ agentId: string;
2628
2631
  createdAt: string;
2629
2632
  updatedAt: string;
2630
- projectId: string;
2631
- tenantId: string;
2632
- agentId: string;
2633
2633
  sourceSubAgentId: string;
2634
2634
  targetSubAgentId: string | null;
2635
2635
  externalSubAgentId: string | null;
@@ -2729,12 +2729,12 @@ declare const getRelatedAgentsForAgent: (db: DatabaseClient) => (params: {
2729
2729
  }[];
2730
2730
  }>;
2731
2731
  declare const createSubAgentRelation: (db: DatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
2732
+ tenantId: string;
2733
+ projectId: string;
2732
2734
  id: string;
2735
+ agentId: string;
2733
2736
  createdAt: string;
2734
2737
  updatedAt: string;
2735
- projectId: string;
2736
- tenantId: string;
2737
- agentId: string;
2738
2738
  sourceSubAgentId: string;
2739
2739
  targetSubAgentId: string | null;
2740
2740
  externalSubAgentId: string | null;
@@ -2750,12 +2750,12 @@ declare const getAgentRelationByParams: (db: DatabaseClient) => (params: {
2750
2750
  externalSubAgentId?: string;
2751
2751
  relationType: string;
2752
2752
  }) => 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;
@@ -2765,24 +2765,24 @@ declare const getAgentRelationByParams: (db: DatabaseClient) => (params: {
2765
2765
  * Upsert agent relation (create if it doesn't exist, no-op if it does)
2766
2766
  */
2767
2767
  declare const upsertAgentRelation: (db: DatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
2768
+ tenantId: string;
2769
+ projectId: string;
2768
2770
  id: string;
2771
+ agentId: string;
2769
2772
  createdAt: string;
2770
2773
  updatedAt: string;
2771
- projectId: string;
2772
- tenantId: string;
2773
- agentId: string;
2774
2774
  sourceSubAgentId: string;
2775
2775
  targetSubAgentId: string | null;
2776
2776
  externalSubAgentId: string | null;
2777
2777
  relationType: string | null;
2778
2778
  }>;
2779
2779
  declare const createExternalAgentRelation: (db: DatabaseClient) => (params: ExternalSubAgentRelationInsert) => Promise<{
2780
+ tenantId: string;
2781
+ projectId: string;
2780
2782
  id: string;
2783
+ agentId: string;
2781
2784
  createdAt: string;
2782
2785
  updatedAt: string;
2783
- projectId: string;
2784
- tenantId: string;
2785
- agentId: string;
2786
2786
  sourceSubAgentId: string;
2787
2787
  targetSubAgentId: string | null;
2788
2788
  externalSubAgentId: string | null;
@@ -2793,12 +2793,12 @@ declare const updateAgentRelation: (db: DatabaseClient) => (params: {
2793
2793
  relationId: string;
2794
2794
  data: SubAgentRelationUpdate;
2795
2795
  }) => Promise<{
2796
+ tenantId: string;
2797
+ projectId: string;
2796
2798
  id: string;
2799
+ agentId: string;
2797
2800
  createdAt: string;
2798
2801
  updatedAt: string;
2799
- projectId: string;
2800
- tenantId: string;
2801
- agentId: string;
2802
2802
  sourceSubAgentId: string;
2803
2803
  targetSubAgentId: string | null;
2804
2804
  externalSubAgentId: string | null;
@@ -2821,32 +2821,32 @@ declare const createAgentToolRelation: (db: DatabaseClient) => (params: {
2821
2821
  headers?: Record<string, string> | null;
2822
2822
  };
2823
2823
  }) => Promise<{
2824
- headers: Record<string, string> | null;
2824
+ tenantId: string;
2825
+ projectId: string;
2825
2826
  id: string;
2827
+ agentId: string;
2826
2828
  createdAt: string;
2827
2829
  updatedAt: string;
2828
- projectId: string;
2829
- tenantId: string;
2830
- agentId: string;
2830
+ headers: Record<string, string> | null;
2831
+ toolId: string;
2831
2832
  selectedTools: string[] | null;
2832
2833
  subAgentId: string;
2833
- toolId: string;
2834
2834
  }>;
2835
2835
  declare const updateAgentToolRelation: (db: DatabaseClient) => (params: {
2836
2836
  scopes: AgentScopeConfig;
2837
2837
  relationId: string;
2838
2838
  data: SubAgentToolRelationUpdate;
2839
2839
  }) => Promise<{
2840
- headers: Record<string, string> | null;
2840
+ tenantId: string;
2841
+ projectId: string;
2841
2842
  id: string;
2843
+ agentId: string;
2842
2844
  createdAt: string;
2843
2845
  updatedAt: string;
2844
- projectId: string;
2845
- tenantId: string;
2846
- agentId: string;
2846
+ headers: Record<string, string> | null;
2847
+ toolId: string;
2847
2848
  selectedTools: string[] | null;
2848
2849
  subAgentId: string;
2849
- toolId: string;
2850
2850
  }>;
2851
2851
  declare const deleteAgentToolRelation: (db: DatabaseClient) => (params: {
2852
2852
  scopes: AgentScopeConfig;
@@ -2859,16 +2859,16 @@ declare const getAgentToolRelationById: (db: DatabaseClient) => (params: {
2859
2859
  scopes: SubAgentScopeConfig;
2860
2860
  relationId: string;
2861
2861
  }) => Promise<{
2862
- headers: Record<string, string> | null;
2862
+ tenantId: string;
2863
+ projectId: string;
2863
2864
  id: string;
2865
+ agentId: string;
2864
2866
  createdAt: string;
2865
2867
  updatedAt: string;
2866
- projectId: string;
2867
- tenantId: string;
2868
- agentId: string;
2868
+ headers: Record<string, string> | null;
2869
+ toolId: string;
2869
2870
  selectedTools: string[] | null;
2870
2871
  subAgentId: string;
2871
- toolId: string;
2872
2872
  } | undefined>;
2873
2873
  declare const getAgentToolRelationByAgent: (db: DatabaseClient) => (params: {
2874
2874
  scopes: SubAgentScopeConfig;
@@ -3038,13 +3038,15 @@ declare const getSubAgentById: (db: DatabaseClient) => (params: {
3038
3038
  scopes: AgentScopeConfig;
3039
3039
  subAgentId: string;
3040
3040
  }) => Promise<{
3041
- name: string;
3041
+ tenantId: string;
3042
+ projectId: string;
3042
3043
  id: string;
3044
+ name: string;
3045
+ description: string;
3046
+ prompt: string;
3047
+ agentId: string;
3043
3048
  createdAt: string;
3044
3049
  updatedAt: string;
3045
- projectId: string;
3046
- tenantId: string;
3047
- description: string;
3048
3050
  models: {
3049
3051
  base?: {
3050
3052
  model?: string | undefined;
@@ -3062,20 +3064,20 @@ declare const getSubAgentById: (db: DatabaseClient) => (params: {
3062
3064
  stopWhen: {
3063
3065
  stepCountIs?: number | undefined;
3064
3066
  } | null;
3065
- agentId: string;
3066
- prompt: string;
3067
3067
  conversationHistoryConfig: ConversationHistoryConfig | null;
3068
3068
  } | undefined>;
3069
3069
  declare const listSubAgents: (db: DatabaseClient) => (params: {
3070
3070
  scopes: AgentScopeConfig;
3071
3071
  }) => Promise<{
3072
- name: string;
3072
+ tenantId: string;
3073
+ projectId: string;
3073
3074
  id: string;
3075
+ name: string;
3076
+ description: string;
3077
+ prompt: string;
3078
+ agentId: string;
3074
3079
  createdAt: string;
3075
3080
  updatedAt: string;
3076
- projectId: string;
3077
- tenantId: string;
3078
- description: string;
3079
3081
  models: {
3080
3082
  base?: {
3081
3083
  model?: string | undefined;
@@ -3093,8 +3095,6 @@ declare const listSubAgents: (db: DatabaseClient) => (params: {
3093
3095
  stopWhen: {
3094
3096
  stepCountIs?: number | undefined;
3095
3097
  } | null;
3096
- agentId: string;
3097
- prompt: string;
3098
3098
  conversationHistoryConfig: ConversationHistoryConfig | null;
3099
3099
  }[]>;
3100
3100
  declare const listSubAgentsPaginated: (db: DatabaseClient) => (params: {
@@ -3138,13 +3138,15 @@ declare const listSubAgentsPaginated: (db: DatabaseClient) => (params: {
3138
3138
  };
3139
3139
  }>;
3140
3140
  declare const createSubAgent: (db: DatabaseClient) => (params: SubAgentInsert) => Promise<{
3141
- name: string;
3141
+ tenantId: string;
3142
+ projectId: string;
3142
3143
  id: string;
3144
+ name: string;
3145
+ description: string;
3146
+ prompt: string;
3147
+ agentId: string;
3143
3148
  createdAt: string;
3144
3149
  updatedAt: string;
3145
- projectId: string;
3146
- tenantId: string;
3147
- description: string;
3148
3150
  models: {
3149
3151
  base?: {
3150
3152
  model?: string | undefined;
@@ -3162,8 +3164,6 @@ declare const createSubAgent: (db: DatabaseClient) => (params: SubAgentInsert) =
3162
3164
  stopWhen: {
3163
3165
  stepCountIs?: number | undefined;
3164
3166
  } | null;
3165
- agentId: string;
3166
- prompt: string;
3167
3167
  conversationHistoryConfig: ConversationHistoryConfig | null;
3168
3168
  }>;
3169
3169
  declare const updateSubAgent: (db: DatabaseClient) => (params: {
@@ -3171,13 +3171,15 @@ declare const updateSubAgent: (db: DatabaseClient) => (params: {
3171
3171
  subAgentId: string;
3172
3172
  data: SubAgentUpdate;
3173
3173
  }) => Promise<{
3174
- name: string;
3174
+ tenantId: string;
3175
+ projectId: string;
3175
3176
  id: string;
3177
+ name: string;
3178
+ description: string;
3179
+ prompt: string;
3180
+ agentId: string;
3176
3181
  createdAt: string;
3177
3182
  updatedAt: string;
3178
- projectId: string;
3179
- tenantId: string;
3180
- description: string;
3181
3183
  models: {
3182
3184
  base?: {
3183
3185
  model?: string | undefined;
@@ -3195,8 +3197,6 @@ declare const updateSubAgent: (db: DatabaseClient) => (params: {
3195
3197
  stopWhen: {
3196
3198
  stepCountIs?: number | undefined;
3197
3199
  } | null;
3198
- agentId: string;
3199
- prompt: string;
3200
3200
  conversationHistoryConfig: ConversationHistoryConfig | null;
3201
3201
  }>;
3202
3202
  /**
@@ -3243,12 +3243,12 @@ declare const getSubAgentsByIds: (db: DatabaseClient) => (params: {
3243
3243
  }[]>;
3244
3244
 
3245
3245
  declare const createTask: (db: DatabaseClient) => (params: TaskInsert) => Promise<{
3246
+ tenantId: string;
3247
+ projectId: string;
3246
3248
  id: string;
3249
+ agentId: string;
3247
3250
  createdAt: string;
3248
3251
  updatedAt: string;
3249
- projectId: string;
3250
- tenantId: string;
3251
- agentId: string;
3252
3252
  status: string;
3253
3253
  metadata: TaskMetadataConfig | null;
3254
3254
  contextId: string;
@@ -3264,12 +3264,12 @@ declare const updateTask: (db: DatabaseClient) => (params: {
3264
3264
  metadata?: any;
3265
3265
  };
3266
3266
  }) => 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;
@@ -3284,20 +3284,20 @@ declare const getToolById: (db: DatabaseClient) => (params: {
3284
3284
  scopes: ProjectScopeConfig;
3285
3285
  toolId: string;
3286
3286
  }) => Promise<{
3287
- name: string;
3288
- headers: Record<string, string> | null;
3289
- id: string;
3290
- createdAt: string;
3291
- updatedAt: string;
3292
- projectId: string;
3293
3287
  tenantId: string;
3288
+ projectId: string;
3289
+ id: string;
3290
+ name: string;
3294
3291
  description: string | null;
3295
- credentialReferenceId: string | null;
3296
- capabilities: ToolServerCapabilities | null;
3297
3292
  config: {
3298
3293
  type: "mcp";
3299
3294
  mcp: ToolMcpConfig;
3300
3295
  };
3296
+ credentialReferenceId: string | null;
3297
+ createdAt: string;
3298
+ updatedAt: string;
3299
+ headers: Record<string, string> | null;
3300
+ capabilities: ToolServerCapabilities | null;
3301
3301
  imageUrl: string | null;
3302
3302
  lastError: string | null;
3303
3303
  } | null>;
@@ -3331,20 +3331,20 @@ declare const listTools: (db: DatabaseClient) => (params: {
3331
3331
  };
3332
3332
  }>;
3333
3333
  declare const createTool: (db: DatabaseClient) => (params: ToolInsert) => Promise<{
3334
- name: string;
3335
- headers: Record<string, string> | null;
3336
- id: string;
3337
- createdAt: string;
3338
- updatedAt: string;
3339
- projectId: string;
3340
3334
  tenantId: string;
3335
+ projectId: string;
3336
+ id: string;
3337
+ name: string;
3341
3338
  description: string | null;
3342
- credentialReferenceId: string | null;
3343
- capabilities: ToolServerCapabilities | null;
3344
3339
  config: {
3345
3340
  type: "mcp";
3346
3341
  mcp: ToolMcpConfig;
3347
3342
  };
3343
+ credentialReferenceId: string | null;
3344
+ createdAt: string;
3345
+ updatedAt: string;
3346
+ headers: Record<string, string> | null;
3347
+ capabilities: ToolServerCapabilities | null;
3348
3348
  imageUrl: string | null;
3349
3349
  lastError: string | null;
3350
3350
  }>;
@@ -3353,20 +3353,20 @@ declare const updateTool: (db: DatabaseClient) => (params: {
3353
3353
  toolId: string;
3354
3354
  data: ToolUpdate;
3355
3355
  }) => Promise<{
3356
- name: string;
3357
- headers: Record<string, string> | null;
3358
- id: string;
3359
- createdAt: string;
3360
- updatedAt: string;
3361
- projectId: string;
3362
3356
  tenantId: string;
3357
+ projectId: string;
3358
+ id: string;
3359
+ name: string;
3363
3360
  description: string | null;
3364
- credentialReferenceId: string | null;
3365
- capabilities: ToolServerCapabilities | null;
3366
3361
  config: {
3367
3362
  type: "mcp";
3368
3363
  mcp: ToolMcpConfig;
3369
3364
  };
3365
+ credentialReferenceId: string | null;
3366
+ createdAt: string;
3367
+ updatedAt: string;
3368
+ headers: Record<string, string> | null;
3369
+ capabilities: ToolServerCapabilities | null;
3370
3370
  imageUrl: string | null;
3371
3371
  lastError: string | null;
3372
3372
  }>;
@@ -3381,32 +3381,32 @@ declare const addToolToAgent: (db: DatabaseClient) => (params: {
3381
3381
  selectedTools?: string[] | null;
3382
3382
  headers?: Record<string, string> | null;
3383
3383
  }) => Promise<{
3384
- headers: Record<string, string> | null;
3384
+ tenantId: string;
3385
+ projectId: string;
3385
3386
  id: string;
3387
+ agentId: string;
3386
3388
  createdAt: string;
3387
3389
  updatedAt: string;
3388
- projectId: string;
3389
- tenantId: string;
3390
- agentId: string;
3390
+ headers: Record<string, string> | null;
3391
+ toolId: string;
3391
3392
  selectedTools: string[] | null;
3392
3393
  subAgentId: string;
3393
- toolId: string;
3394
3394
  }>;
3395
3395
  declare const removeToolFromAgent: (db: DatabaseClient) => (params: {
3396
3396
  scopes: AgentScopeConfig;
3397
3397
  subAgentId: string;
3398
3398
  toolId: string;
3399
3399
  }) => Promise<{
3400
- headers: Record<string, string> | null;
3400
+ tenantId: string;
3401
+ projectId: string;
3401
3402
  id: string;
3403
+ agentId: string;
3402
3404
  createdAt: string;
3403
3405
  updatedAt: string;
3404
- projectId: string;
3405
- tenantId: string;
3406
- agentId: string;
3406
+ headers: Record<string, string> | null;
3407
+ toolId: string;
3407
3408
  selectedTools: string[] | null;
3408
3409
  subAgentId: string;
3409
- toolId: string;
3410
3410
  }>;
3411
3411
  /**
3412
3412
  * Upsert agent-tool relation (create if it doesn't exist, update if it does)
@@ -3419,16 +3419,16 @@ declare const upsertSubAgentToolRelation: (db: DatabaseClient) => (params: {
3419
3419
  headers?: Record<string, string> | null;
3420
3420
  relationId?: string;
3421
3421
  }) => Promise<{
3422
- headers: Record<string, string> | null;
3422
+ tenantId: string;
3423
+ projectId: string;
3423
3424
  id: string;
3425
+ agentId: string;
3424
3426
  createdAt: string;
3425
3427
  updatedAt: string;
3426
- projectId: string;
3427
- tenantId: string;
3428
- agentId: string;
3428
+ headers: Record<string, string> | null;
3429
+ toolId: string;
3429
3430
  selectedTools: string[] | null;
3430
3431
  subAgentId: string;
3431
- toolId: string;
3432
3432
  }>;
3433
3433
  /**
3434
3434
  * Upsert a tool (create if it doesn't exist, update if it does)
@@ -3436,20 +3436,20 @@ declare const upsertSubAgentToolRelation: (db: DatabaseClient) => (params: {
3436
3436
  declare const upsertTool: (db: DatabaseClient) => (params: {
3437
3437
  data: ToolInsert;
3438
3438
  }) => Promise<{
3439
- name: string;
3440
- headers: Record<string, string> | null;
3441
- id: string;
3442
- createdAt: string;
3443
- updatedAt: string;
3444
- projectId: string;
3445
3439
  tenantId: string;
3440
+ projectId: string;
3441
+ id: string;
3442
+ name: string;
3446
3443
  description: string | null;
3447
- credentialReferenceId: string | null;
3448
- capabilities: ToolServerCapabilities | null;
3449
3444
  config: {
3450
3445
  type: "mcp";
3451
3446
  mcp: ToolMcpConfig;
3452
3447
  };
3448
+ credentialReferenceId: string | null;
3449
+ createdAt: string;
3450
+ updatedAt: string;
3451
+ headers: Record<string, string> | null;
3452
+ capabilities: ToolServerCapabilities | null;
3453
3453
  imageUrl: string | null;
3454
3454
  lastError: string | null;
3455
3455
  }>;