@inkeep/agents-core 0.8.7 → 0.10.1

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,11 +1,11 @@
1
1
  import { z } from 'zod';
2
- import { l as CredentialReferenceApiInsert, m as ContextConfigSelect, f as ContextFetchDefinition, M as MCPTransportType, n as MCPToolConfig, o as GraphScopeConfig, C as ConversationHistoryConfig, p as ProjectScopeConfig, q as PaginationConfig, r as AgentGraphInsert, s as AgentGraphUpdate, t as FullGraphDefinition, u as AgentScopeConfig, v as AgentRelationInsert, E as ExternalAgentRelationInsert, w as AgentRelationUpdate, x as AgentToolRelationUpdate, g as ToolMcpConfig, h as ToolServerCapabilities, y as AgentInsert, z as AgentUpdate, B as AgentSelect, D as ApiKeySelect, H as ApiKeyInsert, I as ApiKeyUpdate, J as CreateApiKeyParams, K as ApiKeyCreateResult, L as ArtifactComponentSelect, N as ArtifactComponentInsert, O as ArtifactComponentUpdate, Q as ContextCacheSelect, R as ContextCacheInsert, U as ContextConfigInsert, V as ContextConfigUpdate, W as ConversationSelect, X as ConversationInsert, i 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 Artifact, a8 as LedgerArtifactSelect, k as MessageMetadata, j as MessageContent, a9 as MessageVisibility, aa as MessageInsert, ab as MessageUpdate, ac as FullProjectDefinition, ad as ProjectInfo, ae as ProjectSelect, af as PaginationResult, ag as ProjectResourceCounts, ah as ProjectInsert, ai as ProjectUpdate, aj as TaskInsert, T as TaskMetadataConfig, ak as TaskSelect, al as McpTool, am as ToolInsert, an as ToolUpdate, e as CredentialStoreType, ao as ExecutionContext } from './utility-DP6lt8z3.cjs';
3
- export { b0 as A2AError, bw as A2ARequest, bx as A2AResponse, aB as APIKeySecurityScheme, bB as AgentApiInsert, dt as AgentApiInsertSchema, bA as AgentApiSelect, ds as AgentApiSelectSchema, bC as AgentApiUpdate, du as AgentApiUpdateSchema, cu as AgentArtifactComponentApiInsert, eE as AgentArtifactComponentApiInsertSchema, ct as AgentArtifactComponentApiSelect, eD as AgentArtifactComponentApiSelectSchema, cv as AgentArtifactComponentApiUpdate, eF as AgentArtifactComponentApiUpdateSchema, cr as AgentArtifactComponentInsert, eB as AgentArtifactComponentInsertSchema, cq as AgentArtifactComponentSelect, eA as AgentArtifactComponentSelectSchema, cs as AgentArtifactComponentUpdate, eC as AgentArtifactComponentUpdateSchema, ax as AgentCapabilities, aL as AgentCard, d7 as AgentConversationHistoryConfig, cl as AgentDataComponentApiInsert, es as AgentDataComponentApiInsertSchema, ck as AgentDataComponentApiSelect, er as AgentDataComponentApiSelectSchema, cm as AgentDataComponentApiUpdate, et as AgentDataComponentApiUpdateSchema, ci as AgentDataComponentInsert, ep as AgentDataComponentInsertSchema, ch as AgentDataComponentSelect, eo as AgentDataComponentSelectSchema, cj as AgentDataComponentUpdate, eq as AgentDataComponentUpdateSchema, cT as AgentDefinition, bL as AgentGraphApiInsert, dI as AgentGraphApiInsertSchema, bK as AgentGraphApiSelect, dH as AgentGraphApiSelectSchema, bM as AgentGraphApiUpdate, dJ as AgentGraphApiUpdateSchema, dF as AgentGraphInsertSchema, bJ as AgentGraphSelect, dE as AgentGraphSelectSchema, dG as AgentGraphUpdateSchema, dq as AgentInsertSchema, ay as AgentProvider, bF as AgentRelationApiInsert, dz as AgentRelationApiInsertSchema, bE as AgentRelationApiSelect, dy as AgentRelationApiSelectSchema, bG as AgentRelationApiUpdate, dA as AgentRelationApiUpdateSchema, dw as AgentRelationInsertSchema, bH as AgentRelationQuery, dB as AgentRelationQuerySchema, bD as AgentRelationSelect, dv as AgentRelationSelectSchema, dx as AgentRelationUpdateSchema, dp as AgentSelectSchema, az as AgentSkill, d as AgentStopWhen, a as AgentStopWhenSchema, cJ as AgentToolRelationApiInsert, ff as AgentToolRelationApiInsertSchema, cI as AgentToolRelationApiSelect, fe as AgentToolRelationApiSelectSchema, cK as AgentToolRelationApiUpdate, fg as AgentToolRelationApiUpdateSchema, cH as AgentToolRelationInsert, fc as AgentToolRelationInsertSchema, cG as AgentToolRelationSelect, fb as AgentToolRelationSelectSchema, fd as AgentToolRelationUpdateSchema, dr as AgentUpdateSchema, eM as AllAgentSchema, cz as AllAgentSelect, cD as ApiKeyApiCreationResponse, eR as ApiKeyApiCreationResponseSchema, cB as ApiKeyApiInsert, eS as ApiKeyApiInsertSchema, cA as ApiKeyApiSelect, eQ as ApiKeyApiSelectSchema, cC as ApiKeyApiUpdate, A as ApiKeyApiUpdateSchema, eO as ApiKeyInsertSchema, eN as ApiKeySelectSchema, eP as ApiKeyUpdateSchema, co as ArtifactComponentApiInsert, ey as ArtifactComponentApiInsertSchema, cn as ArtifactComponentApiSelect, ex as ArtifactComponentApiSelectSchema, cp as ArtifactComponentApiUpdate, ez as ArtifactComponentApiUpdateSchema, ev as ArtifactComponentInsertSchema, eu as ArtifactComponentSelectSchema, ew as ArtifactComponentUpdateSchema, aE as AuthorizationCodeOAuthFlow, cR as CanUseItem, fp as CanUseItemSchema, bg as CancelTaskRequest, br as CancelTaskResponse, bq as CancelTaskSuccessResponse, aF as ClientCredentialsOAuthFlow, a_ as ContentTypeNotSupportedError, cc as ContextCacheApiInsert, ef as ContextCacheApiInsertSchema, cb as ContextCacheApiSelect, ee as ContextCacheApiSelectSchema, cd as ContextCacheApiUpdate, eg as ContextCacheApiUpdateSchema, d8 as ContextCacheEntry, ec as ContextCacheInsertSchema, eb as ContextCacheSelectSchema, ca as ContextCacheUpdate, ed as ContextCacheUpdateSchema, c6 as ContextConfigApiInsert, f9 as ContextConfigApiInsertSchema, c5 as ContextConfigApiSelect, f8 as ContextConfigApiSelectSchema, c7 as ContextConfigApiUpdate, fa as ContextConfigApiUpdateSchema, f6 as ContextConfigInsertSchema, f5 as ContextConfigSelectSchema, f7 as ContextConfigUpdateSchema, b$ as ConversationApiInsert, e3 as ConversationApiInsertSchema, b_ as ConversationApiSelect, e2 as ConversationApiSelectSchema, c0 as ConversationApiUpdate, e4 as ConversationApiUpdateSchema, e0 as ConversationInsertSchema, d6 as ConversationScopeOptions, d$ as ConversationSelectSchema, e1 as ConversationUpdateSchema, eX as CredentialReferenceApiInsertSchema, cE as CredentialReferenceApiSelect, eW as CredentialReferenceApiSelectSchema, cF as CredentialReferenceApiUpdate, eY as CredentialReferenceApiUpdateSchema, eU as CredentialReferenceInsertSchema, eT as CredentialReferenceSelectSchema, eV as CredentialReferenceUpdateSchema, cf as DataComponentApiInsert, em as DataComponentApiInsertSchema, ce as DataComponentApiSelect, el as DataComponentApiSelectSchema, cg as DataComponentApiUpdate, en as DataComponentApiUpdateSchema, ej as DataComponentBaseSchema, ei as DataComponentInsertSchema, eh as DataComponentSelectSchema, ek as DataComponentUpdateSchema, av as DataPart, fv as ErrorResponseSchema, fw as ExistsResponseSchema, cx as ExternalAgentApiInsert, eK as ExternalAgentApiInsertSchema, cw as ExternalAgentApiSelect, eJ as ExternalAgentApiSelectSchema, cy as ExternalAgentApiUpdate, eL as ExternalAgentApiUpdateSchema, eH as ExternalAgentInsertSchema, bI as ExternalAgentRelationApiInsert, dD as ExternalAgentRelationApiInsertSchema, dC as ExternalAgentRelationInsertSchema, eG as ExternalAgentSelectSchema, eI as ExternalAgentUpdateSchema, c9 as FetchConfig, f3 as FetchConfigSchema, c8 as FetchDefinition, f4 as FetchDefinitionSchema, ar as FileBase, au as FilePart, as as FileWithBytes, at as FileWithUri, cQ as FullGraphAgentInsert, F as FullGraphAgentInsertSchema, fq as FullGraphDefinitionSchema, fE as FullProjectDefinitionSchema, bi as GetTaskPushNotificationConfigRequest, bv as GetTaskPushNotificationConfigResponse, bu as GetTaskPushNotificationConfigSuccessResponse, bf as GetTaskRequest, bp as GetTaskResponse, bo as GetTaskSuccessResponse, c as GraphStopWhen, G as GraphStopWhenSchema, fr as GraphWithinContextOfProjectSchema, aC as HTTPAuthSecurityScheme, fF as HeadersScopeSchema, fM as IdParamsSchema, aG as ImplicitOAuthFlow, cS as InternalAgentDefinition, aV as InternalError, a$ as InvalidAgentResponseError, aU as InvalidParamsError, aS as InvalidRequestError, aR as JSONParseError, ba as JSONRPCError, bc as JSONRPCErrorResponse, b8 as JSONRPCMessage, b9 as JSONRPCRequest, bb as JSONRPCResult, cO as LedgerArtifactApiInsert, fl as LedgerArtifactApiInsertSchema, cN as LedgerArtifactApiSelect, fk as LedgerArtifactApiSelectSchema, cP as LedgerArtifactApiUpdate, fm as LedgerArtifactApiUpdateSchema, cL as LedgerArtifactInsert, fi as LedgerArtifactInsertSchema, fh as LedgerArtifactSelectSchema, cM as LedgerArtifactUpdate, fj as LedgerArtifactUpdateSchema, ft as ListResponseSchema, di as MAX_ID_LENGTH, dg as MCPServerType, e_ as MCPToolConfigSchema, dh as MIN_ID_LENGTH, d9 as McpAuthType, da as McpServerAuth, dc as McpServerCapabilities, dd as McpToolDefinition, dY as McpToolDefinitionSchema, eZ as McpToolSchema, db as McpTransportConfig, dW as McpTransportConfigSchema, aM as Message, c3 as MessageApiInsert, e9 as MessageApiInsertSchema, c2 as MessageApiSelect, e8 as MessageApiSelectSchema, c4 as MessageApiUpdate, ea as MessageApiUpdateSchema, e6 as MessageInsertSchema, d0 as MessageMode, by as MessagePart, c$ as MessageRole, c1 as MessageSelect, e5 as MessageSelectSchema, b6 as MessageSendConfiguration, b7 as MessageSendParams, c_ as MessageType, e7 as MessageUpdateSchema, aT as MethodNotFoundError, dm as ModelSchema, d3 as ModelSettings, dl as ModelSettingsSchema, d1 as Models, aI as OAuth2SecurityScheme, aD as OAuthFlows, aJ as OpenIdConnectSecurityScheme, cY as Pagination, fN as PaginationQueryParamsSchema, fs as PaginationSchema, P as Part, ap as PartBase, aH as PasswordOAuthFlow, cW as ProjectApiInsert, fC as ProjectApiInsertSchema, cV as ProjectApiSelect, fB as ProjectApiSelectSchema, cX as ProjectApiUpdate, fD as ProjectApiUpdateSchema, fz as ProjectInsertSchema, dn as ProjectModelSchema, d2 as ProjectModels, fy as ProjectSelectSchema, fA as ProjectUpdateSchema, b1 as PushNotificationAuthenticationInfo, b2 as PushNotificationConfig, aY as PushNotificationNotSupportedError, fx as RemovedResponseSchema, aK as SecurityScheme, aA as SecuritySchemeBase, bd as SendMessageRequest, bl as SendMessageResponse, bk as SendMessageSuccessResponse, be as SendStreamingMessageRequest, bn as SendStreamingMessageResponse, bm as SendStreamingMessageSuccessResponse, bh as SetTaskPushNotificationConfigRequest, bt as SetTaskPushNotificationConfigResponse, bs as SetTaskPushNotificationConfigSuccessResponse, fu as SingleResponseSchema, d5 as StatusComponent, fn as StatusComponentSchema, fo as StatusUpdateSchema, d4 as StatusUpdateSettings, b as StopWhen, S as StopWhenSchema, cZ as SummaryEvent, de as TOOL_STATUS_VALUES, aO as Task, bP as TaskApiInsert, dO as TaskApiInsertSchema, bO as TaskApiSelect, dN as TaskApiSelectSchema, bQ as TaskApiUpdate, dP as TaskApiUpdateSchema, bz as TaskArtifact, aQ as TaskArtifactUpdateEvent, b4 as TaskIdParams, dL as TaskInsertSchema, aX as TaskNotCancelableError, aW as TaskNotFoundError, b3 as TaskPushNotificationConfig, b5 as TaskQueryParams, bV as TaskRelationApiInsert, dU as TaskRelationApiInsertSchema, bU as TaskRelationApiSelect, dT as TaskRelationApiSelectSchema, bW as TaskRelationApiUpdate, dV as TaskRelationApiUpdateSchema, bS as TaskRelationInsert, dR as TaskRelationInsertSchema, bR as TaskRelationSelect, dQ as TaskRelationSelectSchema, bT as TaskRelationUpdate, dS as TaskRelationUpdateSchema, bj as TaskResubscriptionRequest, dK as TaskSelectSchema, aw as TaskState, aN as TaskStatus, aP as TaskStatusUpdateEvent, bN as TaskUpdate, dM as TaskUpdateSchema, fL as TenantIdParamsSchema, fG as TenantParamsSchema, fJ as TenantProjectGraphIdParamsSchema, fI as TenantProjectGraphParamsSchema, fK as TenantProjectIdParamsSchema, fH as TenantProjectParamsSchema, aq as TextPart, bY as ToolApiInsert, f1 as ToolApiInsertSchema, bX as ToolApiSelect, f0 as ToolApiSelectSchema, bZ as ToolApiUpdate, f2 as ToolApiUpdateSchema, cU as ToolDefinition, d_ as ToolInsertSchema, dZ as ToolSelectSchema, dX as ToolStatusSchema, e$ as ToolUpdateSchema, dj as URL_SAFE_ID_PATTERN, aZ as UnsupportedOperationError, df as VALID_RELATION_TYPES, dk as resourceIdSchema } from './utility-DP6lt8z3.cjs';
2
+ import { l as CredentialReferenceApiInsert, m as ContextConfigSelect, f as ContextFetchDefinition, M as MCPTransportType, n as MCPToolConfig, o as GraphScopeConfig, C as ConversationHistoryConfig, p as ProjectScopeConfig, q as PaginationConfig, r as AgentGraphInsert, s as AgentGraphUpdate, t as FullGraphDefinition, u as AgentScopeConfig, v as AgentRelationInsert, E as ExternalAgentRelationInsert, w as AgentRelationUpdate, x as AgentToolRelationUpdate, g as ToolMcpConfig, h as ToolServerCapabilities, y as AgentInsert, z as AgentUpdate, B as AgentSelect, D as ApiKeySelect, H as ApiKeyInsert, I as ApiKeyUpdate, J as CreateApiKeyParams, K as ApiKeyCreateResult, L as ArtifactComponentSelect, N as ArtifactComponentInsert, O as ArtifactComponentUpdate, Q as ContextCacheSelect, R as ContextCacheInsert, U as ContextConfigInsert, V as ContextConfigUpdate, W as ConversationSelect, X as ConversationInsert, i 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 Artifact, a8 as LedgerArtifactSelect, k as MessageMetadata, j as MessageContent, a9 as MessageVisibility, aa as MessageInsert, ab as MessageUpdate, ac as FullProjectDefinition, ad as ProjectInfo, ae as ProjectSelect, af as PaginationResult, ag as ProjectResourceCounts, ah as ProjectInsert, ai as ProjectUpdate, aj as TaskInsert, T as TaskMetadataConfig, ak as TaskSelect, al as McpTool, am as ToolInsert, an as ToolUpdate, e as CredentialStoreType, ao as ExecutionContext } from './utility-D7QP8MkV.cjs';
3
+ export { b0 as A2AError, bw as A2ARequest, bx as A2AResponse, aB as APIKeySecurityScheme, bB as AgentApiInsert, dt as AgentApiInsertSchema, bA as AgentApiSelect, ds as AgentApiSelectSchema, bC as AgentApiUpdate, du as AgentApiUpdateSchema, cu as AgentArtifactComponentApiInsert, eE as AgentArtifactComponentApiInsertSchema, ct as AgentArtifactComponentApiSelect, eD as AgentArtifactComponentApiSelectSchema, cv as AgentArtifactComponentApiUpdate, eF as AgentArtifactComponentApiUpdateSchema, cr as AgentArtifactComponentInsert, eB as AgentArtifactComponentInsertSchema, cq as AgentArtifactComponentSelect, eA as AgentArtifactComponentSelectSchema, cs as AgentArtifactComponentUpdate, eC as AgentArtifactComponentUpdateSchema, ax as AgentCapabilities, aL as AgentCard, d7 as AgentConversationHistoryConfig, cl as AgentDataComponentApiInsert, es as AgentDataComponentApiInsertSchema, ck as AgentDataComponentApiSelect, er as AgentDataComponentApiSelectSchema, cm as AgentDataComponentApiUpdate, et as AgentDataComponentApiUpdateSchema, ci as AgentDataComponentInsert, ep as AgentDataComponentInsertSchema, ch as AgentDataComponentSelect, eo as AgentDataComponentSelectSchema, cj as AgentDataComponentUpdate, eq as AgentDataComponentUpdateSchema, cT as AgentDefinition, bL as AgentGraphApiInsert, dI as AgentGraphApiInsertSchema, bK as AgentGraphApiSelect, dH as AgentGraphApiSelectSchema, bM as AgentGraphApiUpdate, dJ as AgentGraphApiUpdateSchema, dF as AgentGraphInsertSchema, bJ as AgentGraphSelect, dE as AgentGraphSelectSchema, dG as AgentGraphUpdateSchema, dq as AgentInsertSchema, ay as AgentProvider, bF as AgentRelationApiInsert, dz as AgentRelationApiInsertSchema, bE as AgentRelationApiSelect, dy as AgentRelationApiSelectSchema, bG as AgentRelationApiUpdate, dA as AgentRelationApiUpdateSchema, dw as AgentRelationInsertSchema, bH as AgentRelationQuery, dB as AgentRelationQuerySchema, bD as AgentRelationSelect, dv as AgentRelationSelectSchema, dx as AgentRelationUpdateSchema, dp as AgentSelectSchema, az as AgentSkill, d as AgentStopWhen, a as AgentStopWhenSchema, cJ as AgentToolRelationApiInsert, ff as AgentToolRelationApiInsertSchema, cI as AgentToolRelationApiSelect, fe as AgentToolRelationApiSelectSchema, cK as AgentToolRelationApiUpdate, fg as AgentToolRelationApiUpdateSchema, cH as AgentToolRelationInsert, fc as AgentToolRelationInsertSchema, cG as AgentToolRelationSelect, fb as AgentToolRelationSelectSchema, fd as AgentToolRelationUpdateSchema, dr as AgentUpdateSchema, eM as AllAgentSchema, cz as AllAgentSelect, cD as ApiKeyApiCreationResponse, eR as ApiKeyApiCreationResponseSchema, cB as ApiKeyApiInsert, eS as ApiKeyApiInsertSchema, cA as ApiKeyApiSelect, eQ as ApiKeyApiSelectSchema, cC as ApiKeyApiUpdate, A as ApiKeyApiUpdateSchema, eO as ApiKeyInsertSchema, eN as ApiKeySelectSchema, eP as ApiKeyUpdateSchema, co as ArtifactComponentApiInsert, ey as ArtifactComponentApiInsertSchema, cn as ArtifactComponentApiSelect, ex as ArtifactComponentApiSelectSchema, cp as ArtifactComponentApiUpdate, ez as ArtifactComponentApiUpdateSchema, ev as ArtifactComponentInsertSchema, eu as ArtifactComponentSelectSchema, ew as ArtifactComponentUpdateSchema, aE as AuthorizationCodeOAuthFlow, cR as CanUseItem, fp as CanUseItemSchema, bg as CancelTaskRequest, br as CancelTaskResponse, bq as CancelTaskSuccessResponse, aF as ClientCredentialsOAuthFlow, a_ as ContentTypeNotSupportedError, cc as ContextCacheApiInsert, ef as ContextCacheApiInsertSchema, cb as ContextCacheApiSelect, ee as ContextCacheApiSelectSchema, cd as ContextCacheApiUpdate, eg as ContextCacheApiUpdateSchema, d8 as ContextCacheEntry, ec as ContextCacheInsertSchema, eb as ContextCacheSelectSchema, ca as ContextCacheUpdate, ed as ContextCacheUpdateSchema, c6 as ContextConfigApiInsert, f9 as ContextConfigApiInsertSchema, c5 as ContextConfigApiSelect, f8 as ContextConfigApiSelectSchema, c7 as ContextConfigApiUpdate, fa as ContextConfigApiUpdateSchema, f6 as ContextConfigInsertSchema, f5 as ContextConfigSelectSchema, f7 as ContextConfigUpdateSchema, b$ as ConversationApiInsert, e3 as ConversationApiInsertSchema, b_ as ConversationApiSelect, e2 as ConversationApiSelectSchema, c0 as ConversationApiUpdate, e4 as ConversationApiUpdateSchema, e0 as ConversationInsertSchema, d6 as ConversationScopeOptions, d$ as ConversationSelectSchema, e1 as ConversationUpdateSchema, eX as CredentialReferenceApiInsertSchema, cE as CredentialReferenceApiSelect, eW as CredentialReferenceApiSelectSchema, cF as CredentialReferenceApiUpdate, eY as CredentialReferenceApiUpdateSchema, eU as CredentialReferenceInsertSchema, eT as CredentialReferenceSelectSchema, eV as CredentialReferenceUpdateSchema, cf as DataComponentApiInsert, em as DataComponentApiInsertSchema, ce as DataComponentApiSelect, el as DataComponentApiSelectSchema, cg as DataComponentApiUpdate, en as DataComponentApiUpdateSchema, ej as DataComponentBaseSchema, ei as DataComponentInsertSchema, eh as DataComponentSelectSchema, ek as DataComponentUpdateSchema, av as DataPart, fv as ErrorResponseSchema, fw as ExistsResponseSchema, cx as ExternalAgentApiInsert, eK as ExternalAgentApiInsertSchema, cw as ExternalAgentApiSelect, eJ as ExternalAgentApiSelectSchema, cy as ExternalAgentApiUpdate, eL as ExternalAgentApiUpdateSchema, eH as ExternalAgentInsertSchema, bI as ExternalAgentRelationApiInsert, dD as ExternalAgentRelationApiInsertSchema, dC as ExternalAgentRelationInsertSchema, eG as ExternalAgentSelectSchema, eI as ExternalAgentUpdateSchema, c9 as FetchConfig, f3 as FetchConfigSchema, c8 as FetchDefinition, f4 as FetchDefinitionSchema, ar as FileBase, au as FilePart, as as FileWithBytes, at as FileWithUri, cQ as FullGraphAgentInsert, F as FullGraphAgentInsertSchema, fq as FullGraphDefinitionSchema, fE as FullProjectDefinitionSchema, bi as GetTaskPushNotificationConfigRequest, bv as GetTaskPushNotificationConfigResponse, bu as GetTaskPushNotificationConfigSuccessResponse, bf as GetTaskRequest, bp as GetTaskResponse, bo as GetTaskSuccessResponse, c as GraphStopWhen, G as GraphStopWhenSchema, fr as GraphWithinContextOfProjectSchema, aC as HTTPAuthSecurityScheme, fF as HeadersScopeSchema, fM as IdParamsSchema, aG as ImplicitOAuthFlow, cS as InternalAgentDefinition, aV as InternalError, a$ as InvalidAgentResponseError, aU as InvalidParamsError, aS as InvalidRequestError, aR as JSONParseError, ba as JSONRPCError, bc as JSONRPCErrorResponse, b8 as JSONRPCMessage, b9 as JSONRPCRequest, bb as JSONRPCResult, cO as LedgerArtifactApiInsert, fl as LedgerArtifactApiInsertSchema, cN as LedgerArtifactApiSelect, fk as LedgerArtifactApiSelectSchema, cP as LedgerArtifactApiUpdate, fm as LedgerArtifactApiUpdateSchema, cL as LedgerArtifactInsert, fi as LedgerArtifactInsertSchema, fh as LedgerArtifactSelectSchema, cM as LedgerArtifactUpdate, fj as LedgerArtifactUpdateSchema, ft as ListResponseSchema, di as MAX_ID_LENGTH, dg as MCPServerType, e_ as MCPToolConfigSchema, dh as MIN_ID_LENGTH, d9 as McpAuthType, da as McpServerAuth, dc as McpServerCapabilities, dd as McpToolDefinition, dY as McpToolDefinitionSchema, eZ as McpToolSchema, db as McpTransportConfig, dW as McpTransportConfigSchema, aM as Message, c3 as MessageApiInsert, e9 as MessageApiInsertSchema, c2 as MessageApiSelect, e8 as MessageApiSelectSchema, c4 as MessageApiUpdate, ea as MessageApiUpdateSchema, e6 as MessageInsertSchema, d0 as MessageMode, by as MessagePart, c$ as MessageRole, c1 as MessageSelect, e5 as MessageSelectSchema, b6 as MessageSendConfiguration, b7 as MessageSendParams, c_ as MessageType, e7 as MessageUpdateSchema, aT as MethodNotFoundError, dm as ModelSchema, d3 as ModelSettings, dl as ModelSettingsSchema, d1 as Models, aI as OAuth2SecurityScheme, aD as OAuthFlows, aJ as OpenIdConnectSecurityScheme, cY as Pagination, fN as PaginationQueryParamsSchema, fs as PaginationSchema, P as Part, ap as PartBase, aH as PasswordOAuthFlow, cW as ProjectApiInsert, fC as ProjectApiInsertSchema, cV as ProjectApiSelect, fB as ProjectApiSelectSchema, cX as ProjectApiUpdate, fD as ProjectApiUpdateSchema, fz as ProjectInsertSchema, dn as ProjectModelSchema, d2 as ProjectModels, fy as ProjectSelectSchema, fA as ProjectUpdateSchema, b1 as PushNotificationAuthenticationInfo, b2 as PushNotificationConfig, aY as PushNotificationNotSupportedError, fx as RemovedResponseSchema, aK as SecurityScheme, aA as SecuritySchemeBase, bd as SendMessageRequest, bl as SendMessageResponse, bk as SendMessageSuccessResponse, be as SendStreamingMessageRequest, bn as SendStreamingMessageResponse, bm as SendStreamingMessageSuccessResponse, bh as SetTaskPushNotificationConfigRequest, bt as SetTaskPushNotificationConfigResponse, bs as SetTaskPushNotificationConfigSuccessResponse, fu as SingleResponseSchema, d5 as StatusComponent, fn as StatusComponentSchema, fo as StatusUpdateSchema, d4 as StatusUpdateSettings, b as StopWhen, S as StopWhenSchema, cZ as SummaryEvent, de as TOOL_STATUS_VALUES, aO as Task, bP as TaskApiInsert, dO as TaskApiInsertSchema, bO as TaskApiSelect, dN as TaskApiSelectSchema, bQ as TaskApiUpdate, dP as TaskApiUpdateSchema, bz as TaskArtifact, aQ as TaskArtifactUpdateEvent, b4 as TaskIdParams, dL as TaskInsertSchema, aX as TaskNotCancelableError, aW as TaskNotFoundError, b3 as TaskPushNotificationConfig, b5 as TaskQueryParams, bV as TaskRelationApiInsert, dU as TaskRelationApiInsertSchema, bU as TaskRelationApiSelect, dT as TaskRelationApiSelectSchema, bW as TaskRelationApiUpdate, dV as TaskRelationApiUpdateSchema, bS as TaskRelationInsert, dR as TaskRelationInsertSchema, bR as TaskRelationSelect, dQ as TaskRelationSelectSchema, bT as TaskRelationUpdate, dS as TaskRelationUpdateSchema, bj as TaskResubscriptionRequest, dK as TaskSelectSchema, aw as TaskState, aN as TaskStatus, aP as TaskStatusUpdateEvent, bN as TaskUpdate, dM as TaskUpdateSchema, fL as TenantIdParamsSchema, fG as TenantParamsSchema, fJ as TenantProjectGraphIdParamsSchema, fI as TenantProjectGraphParamsSchema, fK as TenantProjectIdParamsSchema, fH as TenantProjectParamsSchema, aq as TextPart, bY as ToolApiInsert, f1 as ToolApiInsertSchema, bX as ToolApiSelect, f0 as ToolApiSelectSchema, bZ as ToolApiUpdate, f2 as ToolApiUpdateSchema, cU as ToolDefinition, d_ as ToolInsertSchema, dZ as ToolSelectSchema, dX as ToolStatusSchema, e$ as ToolUpdateSchema, dj as URL_SAFE_ID_PATTERN, aZ as UnsupportedOperationError, df as VALID_RELATION_TYPES, dk as resourceIdSchema } from './utility-D7QP8MkV.cjs';
4
4
  import { CredentialStore } from './types/index.cjs';
5
5
  export { CorsConfig, ServerConfig, ServerOptions } from './types/index.cjs';
6
6
  import { LibSQLDatabase } from 'drizzle-orm/libsql';
7
- import { s as schema } from './schema-BsLudkuV.cjs';
8
- export { k as agentArtifactComponents, O as agentArtifactComponentsRelations, i as agentDataComponents, Q as agentDataComponentsRelations, a as agentGraph, F as agentGraphRelations, e as agentRelations, S as agentRelationsRelations, m as agentToolRelations, I as agentToolRelationsRelations, d as agents, E as agentsRelations, r as apiKeys, H as apiKeysRelations, j as artifactComponents, N as artifactComponentsRelations, b as contextCache, D as contextCacheRelations, c as contextConfigs, C as contextConfigsRelations, n as conversations, L as conversationsRelations, u as credentialReferences, J as credentialReferencesRelations, h as dataComponents, P as dataComponentsRelations, f as externalAgents, G as externalAgentsRelations, q as ledgerArtifacts, x as ledgerArtifactsContextIdIdx, R as ledgerArtifactsRelations, y as ledgerArtifactsTaskContextNameUnique, v as ledgerArtifactsTaskIdIdx, w as ledgerArtifactsToolCallIdIdx, o as messages, M as messagesRelations, p as projects, A as projectsRelations, g as taskRelations, B as taskRelationsRelations, t as tasks, z as tasksRelations, l as tools, K as toolsRelations } from './schema-BsLudkuV.cjs';
7
+ import { s as schema } from './schema-BXVLXPQq.cjs';
8
+ export { k as agentArtifactComponents, O as agentArtifactComponentsRelations, i as agentDataComponents, Q as agentDataComponentsRelations, a as agentGraph, F as agentGraphRelations, e as agentRelations, S as agentRelationsRelations, m as agentToolRelations, I as agentToolRelationsRelations, d as agents, E as agentsRelations, r as apiKeys, H as apiKeysRelations, j as artifactComponents, N as artifactComponentsRelations, b as contextCache, D as contextCacheRelations, c as contextConfigs, C as contextConfigsRelations, n as conversations, L as conversationsRelations, u as credentialReferences, J as credentialReferencesRelations, h as dataComponents, P as dataComponentsRelations, f as externalAgents, G as externalAgentsRelations, q as ledgerArtifacts, x as ledgerArtifactsContextIdIdx, R as ledgerArtifactsRelations, y as ledgerArtifactsTaskContextNameUnique, v as ledgerArtifactsTaskIdIdx, w as ledgerArtifactsToolCallIdIdx, o as messages, M as messagesRelations, p as projects, A as projectsRelations, g as taskRelations, B as taskRelationsRelations, t as tasks, z as tasksRelations, l as tools, K as toolsRelations } from './schema-BXVLXPQq.cjs';
9
9
  import { LoggerOptions, TransportSingleOptions, Logger } from 'pino';
10
10
  import { SSEClientTransportOptions } from '@modelcontextprotocol/sdk/client/sse.js';
11
11
  import { StreamableHTTPClientTransportOptions } from '@modelcontextprotocol/sdk/client/streamableHttp.js';
@@ -452,35 +452,6 @@ declare class KeyChainStore implements CredentialStore {
452
452
  */
453
453
  clearAll(): Promise<number>;
454
454
  }
455
- /**
456
- * Factory function to create KeyChainStore
457
- * Provides consistent initialization and optional configuration
458
- *
459
- * ## Usage Recommendations for macOS Permission Handling
460
- *
461
- * 1. **First-time setup**: Inform users that they may see permission prompts
462
- * 2. **Error handling**: Check for `null` returns from `get()` operations
463
- * 3. **User guidance**: If credentials can't be retrieved, guide users to:
464
- * - Check Keychain Access app for denied permissions
465
- * - Re-run the application if they accidentally clicked "Deny"
466
- * 4. **Development**: Use a consistent `servicePrefix` to avoid permission prompt spam
467
- * 5. **Production**: Consider code-signing your distributed app for better permission prompts
468
- *
469
- * Example usage with permission handling:
470
- * ```typescript
471
- * const store = createKeyChainStore('my-app');
472
- *
473
- * // Always check for null when retrieving
474
- * const apiKey = await store.get('api-key');
475
- * if (!apiKey) {
476
- * console.log('API key not found or access denied');
477
- * // Guide user to check permissions or re-enter credentials
478
- * }
479
- * ```
480
- */
481
- declare function createKeyChainStore(id: string, options?: {
482
- servicePrefix?: string;
483
- }): KeyChainStore;
484
455
 
485
456
  /**
486
457
  * In-memory credential store implementation
@@ -536,6 +507,14 @@ declare class NangoCredentialStore implements CredentialStore {
536
507
  constructor(id: string, config: NangoConfig);
537
508
  private getAccessToken;
538
509
  private sanitizeMetadata;
510
+ /**
511
+ * Fetch a specific Nango integration
512
+ */
513
+ private fetchNangoIntegration;
514
+ /**
515
+ * Create an API key credential by setting up Nango integration and importing the connection
516
+ */
517
+ private createNangoApiKeyConnection;
539
518
  /**
540
519
  * Fetch credentials from Nango API using connection information
541
520
  * @param connectionId - The connection ID for the Nango connection
@@ -551,7 +530,7 @@ declare class NangoCredentialStore implements CredentialStore {
551
530
  /**
552
531
  * Set credentials - not supported for Nango (OAuth flow handles this)
553
532
  */
554
- set(_key: string, _value: string): Promise<void>;
533
+ set(key: string, value: string): Promise<void>;
555
534
  /**
556
535
  * Check if credentials exist by attempting to fetch them
557
536
  */
@@ -772,9 +751,12 @@ declare class CredentialStuffer {
772
751
  declare const getAgentGraphById: (db: DatabaseClient) => (params: {
773
752
  scopes: GraphScopeConfig;
774
753
  }) => Promise<{
754
+ name: string;
775
755
  tenantId: string;
756
+ projectId: string;
776
757
  id: string;
777
- name: string;
758
+ createdAt: string;
759
+ updatedAt: string;
778
760
  description: string | null;
779
761
  models: {
780
762
  base?: {
@@ -793,9 +775,6 @@ declare const getAgentGraphById: (db: DatabaseClient) => (params: {
793
775
  stopWhen: {
794
776
  transferCountIs?: number | undefined;
795
777
  } | null;
796
- createdAt: string;
797
- updatedAt: string;
798
- projectId: string;
799
778
  defaultAgentId: string | null;
800
779
  contextConfigId: string | null;
801
780
  statusUpdates: {
@@ -818,9 +797,12 @@ declare const getAgentGraphById: (db: DatabaseClient) => (params: {
818
797
  declare const getAgentGraphWithDefaultAgent: (db: DatabaseClient) => (params: {
819
798
  scopes: GraphScopeConfig;
820
799
  }) => Promise<{
800
+ name: string;
821
801
  tenantId: string;
802
+ projectId: string;
822
803
  id: string;
823
- name: string;
804
+ createdAt: string;
805
+ updatedAt: string;
824
806
  description: string | null;
825
807
  models: {
826
808
  base?: {
@@ -839,9 +821,6 @@ declare const getAgentGraphWithDefaultAgent: (db: DatabaseClient) => (params: {
839
821
  stopWhen: {
840
822
  transferCountIs?: number | undefined;
841
823
  } | null;
842
- createdAt: string;
843
- updatedAt: string;
844
- projectId: string;
845
824
  defaultAgentId: string | null;
846
825
  contextConfigId: string | null;
847
826
  statusUpdates: {
@@ -861,9 +840,12 @@ declare const getAgentGraphWithDefaultAgent: (db: DatabaseClient) => (params: {
861
840
  } | null;
862
841
  graphPrompt: string | null;
863
842
  defaultAgent: {
843
+ name: string;
864
844
  tenantId: string;
845
+ projectId: string;
865
846
  id: string;
866
- name: string;
847
+ createdAt: string;
848
+ updatedAt: string;
867
849
  description: string;
868
850
  models: {
869
851
  base?: {
@@ -882,9 +864,6 @@ declare const getAgentGraphWithDefaultAgent: (db: DatabaseClient) => (params: {
882
864
  stopWhen: {
883
865
  stepCountIs?: number | undefined;
884
866
  } | null;
885
- createdAt: string;
886
- updatedAt: string;
887
- projectId: string;
888
867
  prompt: string;
889
868
  graphId: string;
890
869
  conversationHistoryConfig: ConversationHistoryConfig | null;
@@ -893,9 +872,12 @@ declare const getAgentGraphWithDefaultAgent: (db: DatabaseClient) => (params: {
893
872
  declare const listAgentGraphs: (db: DatabaseClient) => (params: {
894
873
  scopes: ProjectScopeConfig;
895
874
  }) => Promise<{
875
+ name: string;
896
876
  tenantId: string;
877
+ projectId: string;
897
878
  id: string;
898
- name: string;
879
+ createdAt: string;
880
+ updatedAt: string;
899
881
  description: string | null;
900
882
  models: {
901
883
  base?: {
@@ -914,9 +896,6 @@ declare const listAgentGraphs: (db: DatabaseClient) => (params: {
914
896
  stopWhen: {
915
897
  transferCountIs?: number | undefined;
916
898
  } | null;
917
- createdAt: string;
918
- updatedAt: string;
919
- projectId: string;
920
899
  defaultAgentId: string | null;
921
900
  contextConfigId: string | null;
922
901
  statusUpdates: {
@@ -992,9 +971,12 @@ declare const listAgentGraphsPaginated: (db: DatabaseClient) => (params: {
992
971
  };
993
972
  }>;
994
973
  declare const createAgentGraph: (db: DatabaseClient) => (data: AgentGraphInsert) => Promise<{
974
+ name: string;
995
975
  tenantId: string;
976
+ projectId: string;
996
977
  id: string;
997
- name: string;
978
+ createdAt: string;
979
+ updatedAt: string;
998
980
  description: string | null;
999
981
  models: {
1000
982
  base?: {
@@ -1013,9 +995,6 @@ declare const createAgentGraph: (db: DatabaseClient) => (data: AgentGraphInsert)
1013
995
  stopWhen: {
1014
996
  transferCountIs?: number | undefined;
1015
997
  } | null;
1016
- createdAt: string;
1017
- updatedAt: string;
1018
- projectId: string;
1019
998
  defaultAgentId: string | null;
1020
999
  contextConfigId: string | null;
1021
1000
  statusUpdates: {
@@ -1039,9 +1018,12 @@ declare const updateAgentGraph: (db: DatabaseClient) => (params: {
1039
1018
  scopes: GraphScopeConfig;
1040
1019
  data: AgentGraphUpdate;
1041
1020
  }) => Promise<{
1021
+ name: string;
1042
1022
  tenantId: string;
1023
+ projectId: string;
1043
1024
  id: string;
1044
- name: string;
1025
+ createdAt: string;
1026
+ updatedAt: string;
1045
1027
  description: string | null;
1046
1028
  models: {
1047
1029
  base?: {
@@ -1060,9 +1042,6 @@ declare const updateAgentGraph: (db: DatabaseClient) => (params: {
1060
1042
  stopWhen: {
1061
1043
  transferCountIs?: number | undefined;
1062
1044
  } | null;
1063
- createdAt: string;
1064
- updatedAt: string;
1065
- projectId: string;
1066
1045
  defaultAgentId: string | null;
1067
1046
  contextConfigId: string | null;
1068
1047
  statusUpdates: {
@@ -1119,10 +1098,10 @@ declare const getAgentRelationById: (db: DatabaseClient) => (params: {
1119
1098
  relationId: string;
1120
1099
  }) => Promise<{
1121
1100
  tenantId: string;
1101
+ projectId: string;
1122
1102
  id: string;
1123
1103
  createdAt: string;
1124
1104
  updatedAt: string;
1125
- projectId: string;
1126
1105
  graphId: string;
1127
1106
  sourceAgentId: string;
1128
1107
  targetAgentId: string | null;
@@ -1156,10 +1135,10 @@ declare const getAgentRelations: (db: DatabaseClient) => (params: {
1156
1135
  scopes: AgentScopeConfig;
1157
1136
  }) => Promise<{
1158
1137
  tenantId: string;
1138
+ projectId: string;
1159
1139
  id: string;
1160
1140
  createdAt: string;
1161
1141
  updatedAt: string;
1162
- projectId: string;
1163
1142
  graphId: string;
1164
1143
  sourceAgentId: string;
1165
1144
  targetAgentId: string | null;
@@ -1170,10 +1149,10 @@ declare const getAgentRelationsByGraph: (db: DatabaseClient) => (params: {
1170
1149
  scopes: GraphScopeConfig;
1171
1150
  }) => Promise<{
1172
1151
  tenantId: string;
1152
+ projectId: string;
1173
1153
  id: string;
1174
1154
  createdAt: string;
1175
1155
  updatedAt: string;
1176
- projectId: string;
1177
1156
  graphId: string;
1178
1157
  sourceAgentId: string;
1179
1158
  targetAgentId: string | null;
@@ -1275,10 +1254,10 @@ declare const getRelatedAgentsForGraph: (db: DatabaseClient) => (params: {
1275
1254
  }>;
1276
1255
  declare const createAgentRelation: (db: DatabaseClient) => (params: AgentRelationInsert) => Promise<{
1277
1256
  tenantId: string;
1257
+ projectId: string;
1278
1258
  id: string;
1279
1259
  createdAt: string;
1280
1260
  updatedAt: string;
1281
- projectId: string;
1282
1261
  graphId: string;
1283
1262
  sourceAgentId: string;
1284
1263
  targetAgentId: string | null;
@@ -1296,10 +1275,10 @@ declare const getAgentRelationByParams: (db: DatabaseClient) => (params: {
1296
1275
  relationType: string;
1297
1276
  }) => Promise<{
1298
1277
  tenantId: string;
1278
+ projectId: string;
1299
1279
  id: string;
1300
1280
  createdAt: string;
1301
1281
  updatedAt: string;
1302
- projectId: string;
1303
1282
  graphId: string;
1304
1283
  sourceAgentId: string;
1305
1284
  targetAgentId: string | null;
@@ -1311,10 +1290,10 @@ declare const getAgentRelationByParams: (db: DatabaseClient) => (params: {
1311
1290
  */
1312
1291
  declare const upsertAgentRelation: (db: DatabaseClient) => (params: AgentRelationInsert) => Promise<{
1313
1292
  tenantId: string;
1293
+ projectId: string;
1314
1294
  id: string;
1315
1295
  createdAt: string;
1316
1296
  updatedAt: string;
1317
- projectId: string;
1318
1297
  graphId: string;
1319
1298
  sourceAgentId: string;
1320
1299
  targetAgentId: string | null;
@@ -1323,10 +1302,10 @@ declare const upsertAgentRelation: (db: DatabaseClient) => (params: AgentRelatio
1323
1302
  }>;
1324
1303
  declare const createExternalAgentRelation: (db: DatabaseClient) => (params: ExternalAgentRelationInsert) => Promise<{
1325
1304
  tenantId: string;
1305
+ projectId: string;
1326
1306
  id: string;
1327
1307
  createdAt: string;
1328
1308
  updatedAt: string;
1329
- projectId: string;
1330
1309
  graphId: string;
1331
1310
  sourceAgentId: string;
1332
1311
  targetAgentId: string | null;
@@ -1339,10 +1318,10 @@ declare const updateAgentRelation: (db: DatabaseClient) => (params: {
1339
1318
  data: AgentRelationUpdate;
1340
1319
  }) => Promise<{
1341
1320
  tenantId: string;
1321
+ projectId: string;
1342
1322
  id: string;
1343
1323
  createdAt: string;
1344
1324
  updatedAt: string;
1345
- projectId: string;
1346
1325
  graphId: string;
1347
1326
  sourceAgentId: string;
1348
1327
  targetAgentId: string | null;
@@ -1367,15 +1346,15 @@ declare const createAgentToolRelation: (db: DatabaseClient) => (params: {
1367
1346
  };
1368
1347
  }) => Promise<{
1369
1348
  tenantId: string;
1349
+ projectId: string;
1370
1350
  id: string;
1371
1351
  createdAt: string;
1372
1352
  updatedAt: string;
1373
- projectId: string;
1374
- graphId: string;
1375
1353
  headers: Record<string, string> | null;
1354
+ selectedTools: string[] | null;
1355
+ graphId: string;
1376
1356
  agentId: string;
1377
1357
  toolId: string;
1378
- selectedTools: string[] | null;
1379
1358
  }>;
1380
1359
  declare const updateAgentToolRelation: (db: DatabaseClient) => (params: {
1381
1360
  scopes: GraphScopeConfig;
@@ -1383,15 +1362,15 @@ declare const updateAgentToolRelation: (db: DatabaseClient) => (params: {
1383
1362
  data: AgentToolRelationUpdate;
1384
1363
  }) => Promise<{
1385
1364
  tenantId: string;
1365
+ projectId: string;
1386
1366
  id: string;
1387
1367
  createdAt: string;
1388
1368
  updatedAt: string;
1389
- projectId: string;
1390
- graphId: string;
1391
1369
  headers: Record<string, string> | null;
1370
+ selectedTools: string[] | null;
1371
+ graphId: string;
1392
1372
  agentId: string;
1393
1373
  toolId: string;
1394
- selectedTools: string[] | null;
1395
1374
  }>;
1396
1375
  declare const deleteAgentToolRelation: (db: DatabaseClient) => (params: {
1397
1376
  scopes: GraphScopeConfig;
@@ -1405,15 +1384,15 @@ declare const getAgentToolRelationById: (db: DatabaseClient) => (params: {
1405
1384
  relationId: string;
1406
1385
  }) => Promise<{
1407
1386
  tenantId: string;
1387
+ projectId: string;
1408
1388
  id: string;
1409
1389
  createdAt: string;
1410
1390
  updatedAt: string;
1411
- projectId: string;
1412
- graphId: string;
1413
1391
  headers: Record<string, string> | null;
1392
+ selectedTools: string[] | null;
1393
+ graphId: string;
1414
1394
  agentId: string;
1415
1395
  toolId: string;
1416
- selectedTools: string[] | null;
1417
1396
  } | undefined>;
1418
1397
  declare const getAgentToolRelationByAgent: (db: DatabaseClient) => (params: {
1419
1398
  scopes: AgentScopeConfig;
@@ -1582,9 +1561,12 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
1582
1561
  scopes: GraphScopeConfig;
1583
1562
  agentId: string;
1584
1563
  }) => Promise<{
1564
+ name: string;
1585
1565
  tenantId: string;
1566
+ projectId: string;
1586
1567
  id: string;
1587
- name: string;
1568
+ createdAt: string;
1569
+ updatedAt: string;
1588
1570
  description: string;
1589
1571
  models: {
1590
1572
  base?: {
@@ -1603,9 +1585,6 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
1603
1585
  stopWhen: {
1604
1586
  stepCountIs?: number | undefined;
1605
1587
  } | null;
1606
- createdAt: string;
1607
- updatedAt: string;
1608
- projectId: string;
1609
1588
  prompt: string;
1610
1589
  graphId: string;
1611
1590
  conversationHistoryConfig: ConversationHistoryConfig | null;
@@ -1613,9 +1592,12 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
1613
1592
  declare const listAgents: (db: DatabaseClient) => (params: {
1614
1593
  scopes: GraphScopeConfig;
1615
1594
  }) => Promise<{
1595
+ name: string;
1616
1596
  tenantId: string;
1597
+ projectId: string;
1617
1598
  id: string;
1618
- name: string;
1599
+ createdAt: string;
1600
+ updatedAt: string;
1619
1601
  description: string;
1620
1602
  models: {
1621
1603
  base?: {
@@ -1634,9 +1616,6 @@ declare const listAgents: (db: DatabaseClient) => (params: {
1634
1616
  stopWhen: {
1635
1617
  stepCountIs?: number | undefined;
1636
1618
  } | null;
1637
- createdAt: string;
1638
- updatedAt: string;
1639
- projectId: string;
1640
1619
  prompt: string;
1641
1620
  graphId: string;
1642
1621
  conversationHistoryConfig: ConversationHistoryConfig | null;
@@ -1682,9 +1661,12 @@ declare const listAgentsPaginated: (db: DatabaseClient) => (params: {
1682
1661
  };
1683
1662
  }>;
1684
1663
  declare const createAgent: (db: DatabaseClient) => (params: AgentInsert) => Promise<{
1664
+ name: string;
1685
1665
  tenantId: string;
1666
+ projectId: string;
1686
1667
  id: string;
1687
- name: string;
1668
+ createdAt: string;
1669
+ updatedAt: string;
1688
1670
  description: string;
1689
1671
  models: {
1690
1672
  base?: {
@@ -1703,9 +1685,6 @@ declare const createAgent: (db: DatabaseClient) => (params: AgentInsert) => Prom
1703
1685
  stopWhen: {
1704
1686
  stepCountIs?: number | undefined;
1705
1687
  } | null;
1706
- createdAt: string;
1707
- updatedAt: string;
1708
- projectId: string;
1709
1688
  prompt: string;
1710
1689
  graphId: string;
1711
1690
  conversationHistoryConfig: ConversationHistoryConfig | null;
@@ -1715,9 +1694,12 @@ declare const updateAgent: (db: DatabaseClient) => (params: {
1715
1694
  agentId: string;
1716
1695
  data: AgentUpdate;
1717
1696
  }) => Promise<{
1697
+ name: string;
1718
1698
  tenantId: string;
1699
+ projectId: string;
1719
1700
  id: string;
1720
- name: string;
1701
+ createdAt: string;
1702
+ updatedAt: string;
1721
1703
  description: string;
1722
1704
  models: {
1723
1705
  base?: {
@@ -1736,9 +1718,6 @@ declare const updateAgent: (db: DatabaseClient) => (params: {
1736
1718
  stopWhen: {
1737
1719
  stepCountIs?: number | undefined;
1738
1720
  } | null;
1739
- createdAt: string;
1740
- updatedAt: string;
1741
- projectId: string;
1742
1721
  prompt: string;
1743
1722
  graphId: string;
1744
1723
  conversationHistoryConfig: ConversationHistoryConfig | null;
@@ -1790,12 +1769,12 @@ declare const getApiKeyById: (db: DatabaseClient) => (params: {
1790
1769
  scopes: ProjectScopeConfig;
1791
1770
  id: string;
1792
1771
  }) => Promise<{
1772
+ name: string | null;
1793
1773
  tenantId: string;
1774
+ projectId: string;
1794
1775
  id: string;
1795
- name: string | null;
1796
1776
  createdAt: string;
1797
1777
  updatedAt: string;
1798
- projectId: string;
1799
1778
  graphId: string;
1800
1779
  publicId: string;
1801
1780
  keyHash: string;
@@ -1804,12 +1783,12 @@ declare const getApiKeyById: (db: DatabaseClient) => (params: {
1804
1783
  expiresAt: string | null;
1805
1784
  } | undefined>;
1806
1785
  declare const getApiKeyByPublicId: (db: DatabaseClient) => (publicId: string) => Promise<{
1786
+ name: string | null;
1807
1787
  tenantId: string;
1788
+ projectId: string;
1808
1789
  id: string;
1809
- name: string | null;
1810
1790
  createdAt: string;
1811
1791
  updatedAt: string;
1812
- projectId: string;
1813
1792
  graphId: string;
1814
1793
  publicId: string;
1815
1794
  keyHash: string;
@@ -1821,12 +1800,12 @@ declare const listApiKeys: (db: DatabaseClient) => (params: {
1821
1800
  scopes: ProjectScopeConfig;
1822
1801
  graphId?: string;
1823
1802
  }) => Promise<{
1803
+ name: string | null;
1824
1804
  tenantId: string;
1805
+ projectId: string;
1825
1806
  id: string;
1826
- name: string | null;
1827
1807
  createdAt: string;
1828
1808
  updatedAt: string;
1829
- projectId: string;
1830
1809
  graphId: string;
1831
1810
  publicId: string;
1832
1811
  keyHash: string;
@@ -1848,12 +1827,12 @@ declare const listApiKeysPaginated: (db: DatabaseClient) => (params: {
1848
1827
  };
1849
1828
  }>;
1850
1829
  declare const createApiKey: (db: DatabaseClient) => (params: ApiKeyInsert) => Promise<{
1830
+ name: string | null;
1851
1831
  tenantId: string;
1832
+ projectId: string;
1852
1833
  id: string;
1853
- name: string | null;
1854
1834
  createdAt: string;
1855
1835
  updatedAt: string;
1856
- projectId: string;
1857
1836
  graphId: string;
1858
1837
  publicId: string;
1859
1838
  keyHash: string;
@@ -1866,12 +1845,12 @@ declare const updateApiKey: (db: DatabaseClient) => (params: {
1866
1845
  id: string;
1867
1846
  data: ApiKeyUpdate;
1868
1847
  }) => Promise<{
1848
+ name: string | null;
1869
1849
  tenantId: string;
1850
+ projectId: string;
1870
1851
  id: string;
1871
- name: string | null;
1872
1852
  createdAt: string;
1873
1853
  updatedAt: string;
1874
- projectId: string;
1875
1854
  graphId: string;
1876
1855
  publicId: string;
1877
1856
  keyHash: string;
@@ -1906,13 +1885,13 @@ declare const getArtifactComponentById: (db: DatabaseClient) => (params: {
1906
1885
  scopes: ProjectScopeConfig;
1907
1886
  id: string;
1908
1887
  }) => Promise<{
1888
+ name: string;
1909
1889
  tenantId: string;
1890
+ projectId: string;
1910
1891
  id: string;
1911
- name: string;
1912
- description: string;
1913
1892
  createdAt: string;
1914
1893
  updatedAt: string;
1915
- projectId: string;
1894
+ description: string;
1916
1895
  summaryProps: Record<string, unknown> | null;
1917
1896
  fullProps: Record<string, unknown> | null;
1918
1897
  } | undefined>;
@@ -1942,13 +1921,13 @@ declare const listArtifactComponentsPaginated: (db: DatabaseClient) => (params:
1942
1921
  };
1943
1922
  }>;
1944
1923
  declare const createArtifactComponent: (db: DatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
1924
+ name: string;
1945
1925
  tenantId: string;
1926
+ projectId: string;
1946
1927
  id: string;
1947
- name: string;
1948
- description: string;
1949
1928
  createdAt: string;
1950
1929
  updatedAt: string;
1951
- projectId: string;
1930
+ description: string;
1952
1931
  summaryProps: Record<string, unknown> | null;
1953
1932
  fullProps: Record<string, unknown> | null;
1954
1933
  }>;
@@ -1957,13 +1936,13 @@ declare const updateArtifactComponent: (db: DatabaseClient) => (params: {
1957
1936
  id: string;
1958
1937
  data: ArtifactComponentUpdate;
1959
1938
  }) => Promise<{
1939
+ name: string;
1960
1940
  tenantId: string;
1941
+ projectId: string;
1961
1942
  id: string;
1962
- name: string;
1963
- description: string;
1964
1943
  createdAt: string;
1965
1944
  updatedAt: string;
1966
- projectId: string;
1945
+ description: string;
1967
1946
  summaryProps: Record<string, unknown> | null;
1968
1947
  fullProps: Record<string, unknown> | null;
1969
1948
  }>;
@@ -1989,9 +1968,9 @@ declare const associateArtifactComponentWithAgent: (db: DatabaseClient) => (para
1989
1968
  artifactComponentId: string;
1990
1969
  }) => Promise<{
1991
1970
  tenantId: string;
1971
+ projectId: string;
1992
1972
  id: string;
1993
1973
  createdAt: string;
1994
- projectId: string;
1995
1974
  graphId: string;
1996
1975
  agentId: string;
1997
1976
  artifactComponentId: string;
@@ -2032,9 +2011,9 @@ declare const upsertAgentArtifactComponentRelation: (db: DatabaseClient) => (par
2032
2011
  artifactComponentId: string;
2033
2012
  }) => Promise<{
2034
2013
  tenantId: string;
2014
+ projectId: string;
2035
2015
  id: string;
2036
2016
  createdAt: string;
2037
- projectId: string;
2038
2017
  graphId: string;
2039
2018
  agentId: string;
2040
2019
  artifactComponentId: string;
@@ -2115,26 +2094,26 @@ declare const getContextConfigById: (db: DatabaseClient) => (params: {
2115
2094
  scopes: ProjectScopeConfig;
2116
2095
  id: string;
2117
2096
  }) => Promise<{
2097
+ name: string;
2118
2098
  tenantId: string;
2099
+ projectId: string;
2119
2100
  id: string;
2120
- name: string;
2121
- description: string;
2122
2101
  createdAt: string;
2123
2102
  updatedAt: string;
2124
- projectId: string;
2103
+ description: string;
2125
2104
  requestContextSchema: unknown;
2126
2105
  contextVariables: Record<string, ContextFetchDefinition> | null;
2127
2106
  } | undefined>;
2128
2107
  declare const listContextConfigs: (db: DatabaseClient) => (params: {
2129
2108
  scopes: ProjectScopeConfig;
2130
2109
  }) => Promise<{
2110
+ name: string;
2131
2111
  tenantId: string;
2112
+ projectId: string;
2132
2113
  id: string;
2133
- name: string;
2134
- description: string;
2135
2114
  createdAt: string;
2136
2115
  updatedAt: string;
2137
- projectId: string;
2116
+ description: string;
2138
2117
  requestContextSchema: unknown;
2139
2118
  contextVariables: Record<string, ContextFetchDefinition> | null;
2140
2119
  }[]>;
@@ -2151,13 +2130,13 @@ declare const listContextConfigsPaginated: (db: DatabaseClient) => (params: {
2151
2130
  };
2152
2131
  }>;
2153
2132
  declare const createContextConfig: (db: DatabaseClient) => (params: ContextConfigInsert) => Promise<{
2133
+ name: string;
2154
2134
  tenantId: string;
2135
+ projectId: string;
2155
2136
  id: string;
2156
- name: string;
2157
- description: string;
2158
2137
  createdAt: string;
2159
2138
  updatedAt: string;
2160
- projectId: string;
2139
+ description: string;
2161
2140
  requestContextSchema: unknown;
2162
2141
  contextVariables: Record<string, ContextFetchDefinition> | null;
2163
2142
  }>;
@@ -2166,13 +2145,13 @@ declare const updateContextConfig: (db: DatabaseClient) => (params: {
2166
2145
  id: string;
2167
2146
  data: Partial<ContextConfigUpdate>;
2168
2147
  }) => Promise<{
2148
+ name: string;
2169
2149
  tenantId: string;
2150
+ projectId: string;
2170
2151
  id: string;
2171
- name: string;
2172
- description: string;
2173
2152
  createdAt: string;
2174
2153
  updatedAt: string;
2175
- projectId: string;
2154
+ description: string;
2176
2155
  requestContextSchema: unknown;
2177
2156
  contextVariables: Record<string, ContextFetchDefinition> | null;
2178
2157
  }>;
@@ -2191,13 +2170,13 @@ declare const getContextConfigsByName: (db: DatabaseClient) => (params: {
2191
2170
  scopes: ProjectScopeConfig;
2192
2171
  name: string;
2193
2172
  }) => Promise<{
2173
+ name: string;
2194
2174
  tenantId: string;
2175
+ projectId: string;
2195
2176
  id: string;
2196
- name: string;
2197
- description: string;
2198
2177
  createdAt: string;
2199
2178
  updatedAt: string;
2200
- projectId: string;
2179
+ description: string;
2201
2180
  requestContextSchema: unknown;
2202
2181
  contextVariables: Record<string, ContextFetchDefinition> | null;
2203
2182
  }[]>;
@@ -2207,13 +2186,13 @@ declare const getContextConfigsByName: (db: DatabaseClient) => (params: {
2207
2186
  declare const upsertContextConfig: (db: DatabaseClient) => (params: {
2208
2187
  data: ContextConfigInsert;
2209
2188
  }) => Promise<{
2189
+ name: string;
2210
2190
  tenantId: string;
2191
+ projectId: string;
2211
2192
  id: string;
2212
- name: string;
2213
- description: string;
2214
2193
  createdAt: string;
2215
2194
  updatedAt: string;
2216
- projectId: string;
2195
+ description: string;
2217
2196
  requestContextSchema: unknown;
2218
2197
  contextVariables: Record<string, ContextFetchDefinition> | null;
2219
2198
  }>;
@@ -2228,14 +2207,14 @@ declare const listConversations: (db: DatabaseClient) => (params: {
2228
2207
  }>;
2229
2208
  declare const createConversation: (db: DatabaseClient) => (params: ConversationInsert) => Promise<{
2230
2209
  tenantId: string;
2210
+ projectId: string;
2231
2211
  id: string;
2232
2212
  createdAt: string;
2233
2213
  updatedAt: string;
2234
- projectId: string;
2214
+ title: string | null;
2235
2215
  metadata: ConversationMetadata | null;
2236
2216
  userId: string | null;
2237
2217
  activeAgentId: string;
2238
- title: string | null;
2239
2218
  lastContextResolution: string | null;
2240
2219
  }>;
2241
2220
  declare const updateConversation: (db: DatabaseClient) => (params: {
@@ -2244,14 +2223,14 @@ declare const updateConversation: (db: DatabaseClient) => (params: {
2244
2223
  data: ConversationUpdate;
2245
2224
  }) => Promise<{
2246
2225
  tenantId: string;
2226
+ projectId: string;
2247
2227
  id: string;
2248
2228
  createdAt: string;
2249
2229
  updatedAt: string;
2250
- projectId: string;
2230
+ title: string | null;
2251
2231
  metadata: ConversationMetadata | null;
2252
2232
  userId: string | null;
2253
2233
  activeAgentId: string;
2254
- title: string | null;
2255
2234
  lastContextResolution: string | null;
2256
2235
  }>;
2257
2236
  declare const deleteConversation: (db: DatabaseClient) => (params: {
@@ -2264,14 +2243,14 @@ declare const updateConversationActiveAgent: (db: DatabaseClient) => (params: {
2264
2243
  activeAgentId: string;
2265
2244
  }) => Promise<{
2266
2245
  tenantId: string;
2246
+ projectId: string;
2267
2247
  id: string;
2268
2248
  createdAt: string;
2269
2249
  updatedAt: string;
2270
- projectId: string;
2250
+ title: string | null;
2271
2251
  metadata: ConversationMetadata | null;
2272
2252
  userId: string | null;
2273
2253
  activeAgentId: string;
2274
- title: string | null;
2275
2254
  lastContextResolution: string | null;
2276
2255
  }>;
2277
2256
  declare const getConversation: (db: DatabaseClient) => (params: {
@@ -2279,14 +2258,14 @@ declare const getConversation: (db: DatabaseClient) => (params: {
2279
2258
  conversationId: string;
2280
2259
  }) => Promise<{
2281
2260
  tenantId: string;
2261
+ projectId: string;
2282
2262
  id: string;
2283
2263
  createdAt: string;
2284
2264
  updatedAt: string;
2285
- projectId: string;
2265
+ title: string | null;
2286
2266
  metadata: ConversationMetadata | null;
2287
2267
  userId: string | null;
2288
2268
  activeAgentId: string;
2289
- title: string | null;
2290
2269
  lastContextResolution: string | null;
2291
2270
  } | undefined>;
2292
2271
  declare const createOrGetConversation: (db: DatabaseClient) => (input: ConversationInsert) => Promise<{
@@ -2317,14 +2296,14 @@ declare const getActiveAgentForConversation: (db: DatabaseClient) => (params: {
2317
2296
  conversationId: string;
2318
2297
  }) => Promise<{
2319
2298
  tenantId: string;
2299
+ projectId: string;
2320
2300
  id: string;
2321
2301
  createdAt: string;
2322
2302
  updatedAt: string;
2323
- projectId: string;
2303
+ title: string | null;
2324
2304
  metadata: ConversationMetadata | null;
2325
2305
  userId: string | null;
2326
2306
  activeAgentId: string;
2327
- title: string | null;
2328
2307
  lastContextResolution: string | null;
2329
2308
  } | undefined>;
2330
2309
  /**
@@ -2486,9 +2465,9 @@ declare const associateDataComponentWithAgent: (db: DatabaseClient) => (params:
2486
2465
  dataComponentId: string;
2487
2466
  }) => Promise<{
2488
2467
  tenantId: string;
2468
+ projectId: string;
2489
2469
  id: string;
2490
2470
  createdAt: string;
2491
- projectId: string;
2492
2471
  graphId: string;
2493
2472
  agentId: string;
2494
2473
  dataComponentId: string;
@@ -2528,9 +2507,9 @@ declare const upsertAgentDataComponentRelation: (db: DatabaseClient) => (params:
2528
2507
  dataComponentId: string;
2529
2508
  }) => Promise<{
2530
2509
  tenantId: string;
2510
+ projectId: string;
2531
2511
  id: string;
2532
2512
  createdAt: string;
2533
- projectId: string;
2534
2513
  graphId: string;
2535
2514
  agentId: string;
2536
2515
  dataComponentId: string;
@@ -2723,19 +2702,19 @@ declare const getMessageById: (db: DatabaseClient) => (params: {
2723
2702
  messageId: string;
2724
2703
  }) => Promise<{
2725
2704
  tenantId: string;
2705
+ projectId: string;
2726
2706
  id: string;
2727
2707
  createdAt: string;
2728
2708
  updatedAt: string;
2729
- projectId: string;
2730
- conversationId: string;
2731
2709
  metadata: MessageMetadata | null;
2732
- agentId: string | null;
2733
2710
  role: string;
2711
+ content: MessageContent;
2712
+ conversationId: string;
2713
+ agentId: string | null;
2734
2714
  fromAgentId: string | null;
2735
2715
  toAgentId: string | null;
2736
2716
  fromExternalAgentId: string | null;
2737
2717
  toExternalAgentId: string | null;
2738
- content: MessageContent;
2739
2718
  visibility: string;
2740
2719
  messageType: string;
2741
2720
  taskId: string | null;
@@ -2849,19 +2828,19 @@ declare const getVisibleMessages: (db: DatabaseClient) => (params: {
2849
2828
  }[]>;
2850
2829
  declare const createMessage: (db: DatabaseClient) => (params: MessageInsert) => Promise<{
2851
2830
  tenantId: string;
2831
+ projectId: string;
2852
2832
  id: string;
2853
2833
  createdAt: string;
2854
2834
  updatedAt: string;
2855
- projectId: string;
2856
- conversationId: string;
2857
2835
  metadata: MessageMetadata | null;
2858
- agentId: string | null;
2859
2836
  role: string;
2837
+ content: MessageContent;
2838
+ conversationId: string;
2839
+ agentId: string | null;
2860
2840
  fromAgentId: string | null;
2861
2841
  toAgentId: string | null;
2862
2842
  fromExternalAgentId: string | null;
2863
2843
  toExternalAgentId: string | null;
2864
- content: MessageContent;
2865
2844
  visibility: string;
2866
2845
  messageType: string;
2867
2846
  taskId: string | null;
@@ -2875,19 +2854,19 @@ declare const updateMessage: (db: DatabaseClient) => (params: {
2875
2854
  data: MessageUpdate;
2876
2855
  }) => Promise<{
2877
2856
  tenantId: string;
2857
+ projectId: string;
2878
2858
  id: string;
2879
2859
  createdAt: string;
2880
2860
  updatedAt: string;
2881
- projectId: string;
2882
- conversationId: string;
2883
2861
  metadata: MessageMetadata | null;
2884
- agentId: string | null;
2885
2862
  role: string;
2863
+ content: MessageContent;
2864
+ conversationId: string;
2865
+ agentId: string | null;
2886
2866
  fromAgentId: string | null;
2887
2867
  toAgentId: string | null;
2888
2868
  fromExternalAgentId: string | null;
2889
2869
  toExternalAgentId: string | null;
2890
- content: MessageContent;
2891
2870
  visibility: string;
2892
2871
  messageType: string;
2893
2872
  taskId: string | null;
@@ -2900,19 +2879,19 @@ declare const deleteMessage: (db: DatabaseClient) => (params: {
2900
2879
  messageId: string;
2901
2880
  }) => Promise<{
2902
2881
  tenantId: string;
2882
+ projectId: string;
2903
2883
  id: string;
2904
2884
  createdAt: string;
2905
2885
  updatedAt: string;
2906
- projectId: string;
2907
- conversationId: string;
2908
2886
  metadata: MessageMetadata | null;
2909
- agentId: string | null;
2910
2887
  role: string;
2888
+ content: MessageContent;
2889
+ conversationId: string;
2890
+ agentId: string | null;
2911
2891
  fromAgentId: string | null;
2912
2892
  toAgentId: string | null;
2913
2893
  fromExternalAgentId: string | null;
2914
2894
  toExternalAgentId: string | null;
2915
- content: MessageContent;
2916
2895
  visibility: string;
2917
2896
  messageType: string;
2918
2897
  taskId: string | null;
@@ -3021,13 +3000,13 @@ declare const deleteProject: (db: DatabaseClient) => (params: {
3021
3000
 
3022
3001
  declare const createTask: (db: DatabaseClient) => (params: TaskInsert) => Promise<{
3023
3002
  tenantId: string;
3003
+ projectId: string;
3024
3004
  id: string;
3025
3005
  createdAt: string;
3026
3006
  updatedAt: string;
3027
- projectId: string;
3028
- contextId: string;
3029
- status: string;
3030
3007
  metadata: TaskMetadataConfig | null;
3008
+ status: string;
3009
+ contextId: string;
3031
3010
  agentId: string;
3032
3011
  }>;
3033
3012
  declare const getTask: (db: DatabaseClient) => (params: {
@@ -3041,13 +3020,13 @@ declare const updateTask: (db: DatabaseClient) => (params: {
3041
3020
  };
3042
3021
  }) => Promise<{
3043
3022
  tenantId: string;
3023
+ projectId: string;
3044
3024
  id: string;
3045
3025
  createdAt: string;
3046
3026
  updatedAt: string;
3047
- projectId: string;
3048
- contextId: string;
3049
- status: string;
3050
3027
  metadata: TaskMetadataConfig | null;
3028
+ status: string;
3029
+ contextId: string;
3051
3030
  agentId: string;
3052
3031
  }>;
3053
3032
  declare const listTaskIdsByContextId: (db: DatabaseClient) => (params: {
@@ -3059,20 +3038,20 @@ declare const getToolById: (db: DatabaseClient) => (params: {
3059
3038
  scopes: ProjectScopeConfig;
3060
3039
  toolId: string;
3061
3040
  }) => Promise<{
3041
+ name: string;
3062
3042
  tenantId: string;
3043
+ projectId: string;
3063
3044
  id: string;
3064
- name: string;
3065
3045
  createdAt: string;
3066
3046
  updatedAt: string;
3067
- projectId: string;
3068
3047
  credentialReferenceId: string | null;
3069
3048
  headers: Record<string, string> | null;
3049
+ capabilities: ToolServerCapabilities | null;
3070
3050
  config: {
3071
3051
  type: "mcp";
3072
3052
  mcp: ToolMcpConfig;
3073
3053
  };
3074
3054
  imageUrl: string | null;
3075
- capabilities: ToolServerCapabilities | null;
3076
3055
  lastError: string | null;
3077
3056
  } | null>;
3078
3057
  declare const listTools: (db: DatabaseClient) => (params: {
@@ -3104,20 +3083,20 @@ declare const listTools: (db: DatabaseClient) => (params: {
3104
3083
  };
3105
3084
  }>;
3106
3085
  declare const createTool: (db: DatabaseClient) => (params: ToolInsert) => Promise<{
3086
+ name: string;
3107
3087
  tenantId: string;
3088
+ projectId: string;
3108
3089
  id: string;
3109
- name: string;
3110
3090
  createdAt: string;
3111
3091
  updatedAt: string;
3112
- projectId: string;
3113
3092
  credentialReferenceId: string | null;
3114
3093
  headers: Record<string, string> | null;
3094
+ capabilities: ToolServerCapabilities | null;
3115
3095
  config: {
3116
3096
  type: "mcp";
3117
3097
  mcp: ToolMcpConfig;
3118
3098
  };
3119
3099
  imageUrl: string | null;
3120
- capabilities: ToolServerCapabilities | null;
3121
3100
  lastError: string | null;
3122
3101
  }>;
3123
3102
  declare const updateTool: (db: DatabaseClient) => (params: {
@@ -3125,20 +3104,20 @@ declare const updateTool: (db: DatabaseClient) => (params: {
3125
3104
  toolId: string;
3126
3105
  data: ToolUpdate;
3127
3106
  }) => Promise<{
3107
+ name: string;
3128
3108
  tenantId: string;
3109
+ projectId: string;
3129
3110
  id: string;
3130
- name: string;
3131
3111
  createdAt: string;
3132
3112
  updatedAt: string;
3133
- projectId: string;
3134
3113
  credentialReferenceId: string | null;
3135
3114
  headers: Record<string, string> | null;
3115
+ capabilities: ToolServerCapabilities | null;
3136
3116
  config: {
3137
3117
  type: "mcp";
3138
3118
  mcp: ToolMcpConfig;
3139
3119
  };
3140
3120
  imageUrl: string | null;
3141
- capabilities: ToolServerCapabilities | null;
3142
3121
  lastError: string | null;
3143
3122
  }>;
3144
3123
  declare const deleteTool: (db: DatabaseClient) => (params: {
@@ -3153,15 +3132,15 @@ declare const addToolToAgent: (db: DatabaseClient) => (params: {
3153
3132
  headers?: Record<string, string> | null;
3154
3133
  }) => Promise<{
3155
3134
  tenantId: string;
3135
+ projectId: string;
3156
3136
  id: string;
3157
3137
  createdAt: string;
3158
3138
  updatedAt: string;
3159
- projectId: string;
3160
- graphId: string;
3161
3139
  headers: Record<string, string> | null;
3140
+ selectedTools: string[] | null;
3141
+ graphId: string;
3162
3142
  agentId: string;
3163
3143
  toolId: string;
3164
- selectedTools: string[] | null;
3165
3144
  }>;
3166
3145
  declare const removeToolFromAgent: (db: DatabaseClient) => (params: {
3167
3146
  scopes: GraphScopeConfig;
@@ -3169,15 +3148,15 @@ declare const removeToolFromAgent: (db: DatabaseClient) => (params: {
3169
3148
  toolId: string;
3170
3149
  }) => Promise<{
3171
3150
  tenantId: string;
3151
+ projectId: string;
3172
3152
  id: string;
3173
3153
  createdAt: string;
3174
3154
  updatedAt: string;
3175
- projectId: string;
3176
- graphId: string;
3177
3155
  headers: Record<string, string> | null;
3156
+ selectedTools: string[] | null;
3157
+ graphId: string;
3178
3158
  agentId: string;
3179
3159
  toolId: string;
3180
- selectedTools: string[] | null;
3181
3160
  }>;
3182
3161
  /**
3183
3162
  * Upsert agent-tool relation (create if it doesn't exist, update if it does)
@@ -3188,17 +3167,18 @@ declare const upsertAgentToolRelation: (db: DatabaseClient) => (params: {
3188
3167
  toolId: string;
3189
3168
  selectedTools?: string[] | null;
3190
3169
  headers?: Record<string, string> | null;
3170
+ relationId?: string;
3191
3171
  }) => Promise<{
3192
3172
  tenantId: string;
3173
+ projectId: string;
3193
3174
  id: string;
3194
3175
  createdAt: string;
3195
3176
  updatedAt: string;
3196
- projectId: string;
3197
- graphId: string;
3198
3177
  headers: Record<string, string> | null;
3178
+ selectedTools: string[] | null;
3179
+ graphId: string;
3199
3180
  agentId: string;
3200
3181
  toolId: string;
3201
- selectedTools: string[] | null;
3202
3182
  }>;
3203
3183
  /**
3204
3184
  * Upsert a tool (create if it doesn't exist, update if it does)
@@ -3206,20 +3186,20 @@ declare const upsertAgentToolRelation: (db: DatabaseClient) => (params: {
3206
3186
  declare const upsertTool: (db: DatabaseClient) => (params: {
3207
3187
  data: ToolInsert;
3208
3188
  }) => Promise<{
3189
+ name: string;
3209
3190
  tenantId: string;
3191
+ projectId: string;
3210
3192
  id: string;
3211
- name: string;
3212
3193
  createdAt: string;
3213
3194
  updatedAt: string;
3214
- projectId: string;
3215
3195
  credentialReferenceId: string | null;
3216
3196
  headers: Record<string, string> | null;
3197
+ capabilities: ToolServerCapabilities | null;
3217
3198
  config: {
3218
3199
  type: "mcp";
3219
3200
  mcp: ToolMcpConfig;
3220
3201
  };
3221
3202
  imageUrl: string | null;
3222
- capabilities: ToolServerCapabilities | null;
3223
3203
  lastError: string | null;
3224
3204
  }>;
3225
3205
 
@@ -3905,4 +3885,4 @@ declare function setSpanWithError(span: Span, error: unknown, logger?: {
3905
3885
  */
3906
3886
  declare function getTracer(serviceName: string, serviceVersion?: string): Tracer;
3907
3887
 
3908
- export { AgentGraphInsert, AgentGraphUpdate, AgentInsert, AgentRelationInsert, AgentRelationUpdate, AgentScopeConfig, AgentSelect, AgentToolRelationUpdate, AgentUpdate, ApiKeyCreateResult, type ApiKeyGenerationResult, ApiKeyInsert, ApiKeySelect, ApiKeyUpdate, Artifact, ArtifactComponentInsert, ArtifactComponentSelect, ArtifactComponentUpdate, type CommonCreateErrorResponses, type CommonDeleteErrorResponses, type CommonGetErrorResponses, type CommonUpdateErrorResponses, ContextCache, ContextCacheInsert, ContextCacheSelect, ContextConfigBuilder, type ContextConfigBuilderOptions, ContextConfigInsert, ContextConfigSelect, ContextConfigUpdate, ContextFetchDefinition, ContextFetcher, type ContextResolutionOptions, type ContextResolutionResult, ContextResolver, type ContextResolverInterface, type ContextValidationError, type ContextValidationResult, ConversationHistoryConfig, ConversationInsert, ConversationMetadata, ConversationSelect, ConversationUpdate, CreateApiKeyParams, type CredentialContext, type CredentialData, CredentialReferenceApiInsert, CredentialReferenceInsert, CredentialReferenceSelect, CredentialReferenceUpdate, type CredentialReferenceWithTools, type CredentialResolverInput, CredentialStore, type CredentialStoreReference, CredentialStoreRegistry, CredentialStoreType, CredentialStuffer, DataComponentInsert, DataComponentSelect, DataComponentUpdate, type DatabaseClient, type DatabaseConfig, type DotPaths, ERROR_DOCS_BASE_URL, ErrorCode, type ErrorCodes, type ErrorResponse, ExecutionContext, ExternalAgentInsert, ExternalAgentRelationInsert, ExternalAgentSelect, ExternalAgentUpdate, type FetchResult, FullGraphDefinition, FullProjectDefinition, type GraphLogger, GraphScopeConfig, HTTP_REQUEST_PARTS, type HttpRequestPart, InMemoryCredentialStore, KeyChainStore, LedgerArtifactSelect, type LoggerFactoryConfig, MCPToolConfig, MCPTransportType, McpClient, type McpClientOptions, type McpSSEConfig, type McpServerConfig, type McpStreamableHttpConfig, McpTool, MessageContent, MessageInsert, MessageMetadata, MessageUpdate, MessageVisibility, NangoCredentialStore, type OAuthConfig, PaginationConfig, PaginationResult, type ParsedHttpRequest, PinoLogger, type PinoLoggerConfig, type ProblemDetails, ProjectInfo, ProjectInsert, type ProjectLogger, ProjectResourceCounts, ProjectScopeConfig, ProjectSelect, ProjectUpdate, type ResolvedContext, TaskInsert, TaskMetadataConfig, TaskSelect, type TemplateContext, TemplateEngine, type TemplateRenderOptions, ToolInsert, ToolMcpConfig, ToolSelect, ToolServerCapabilities, ToolUpdate, addLedgerArtifacts, addToolToAgent, associateArtifactComponentWithAgent, associateDataComponentWithAgent, cleanupTenantCache, clearContextConfigCache, clearConversationCache, commonCreateErrorResponses, commonDeleteErrorResponses, commonGetErrorResponses, commonUpdateErrorResponses, contextConfig, contextValidationMiddleware, countApiKeys, countArtifactComponents, countArtifactComponentsForAgent, countContextConfigs, countCredentialReferences, countDataComponents, countExternalAgents, countLedgerArtifactsByTask, countMessagesByConversation, countProjects, createAgent, createAgentGraph, createAgentRelation, createAgentToolRelation, createApiError, createApiKey, createArtifactComponent, createContextConfig, createConversation, createCredentialReference, createDataComponent, createDatabaseClient, createDefaultCredentialStores, createExecutionContext, createExternalAgent, createExternalAgentRelation, createFullGraphServerSide, createFullProjectServerSide, createInMemoryDatabaseClient, createKeyChainStore, createMessage, createNangoCredentialStore, createOrGetConversation, createProject, createTask, createTool, createValidatedDataAccess, dbResultToMcpTool, deleteAgent, deleteAgentArtifactComponentRelationByAgent, deleteAgentDataComponentRelationByAgent, deleteAgentGraph, deleteAgentRelation, deleteAgentRelationsByGraph, deleteAgentToolRelation, deleteAgentToolRelationByAgent, deleteApiKey, deleteArtifactComponent, deleteContextConfig, deleteConversation, deleteCredentialReference, deleteDataComponent, deleteExternalAgent, deleteFullGraph, deleteFullProject, deleteLedgerArtifactsByContext, deleteLedgerArtifactsByTask, deleteMessage, deleteProject, deleteTool, detectAuthenticationRequired, determineContextTrigger, discoverOAuthEndpoints, errorResponseSchema, errorSchemaFactory, externalAgentExists, externalAgentUrlExists, extractPublicId, fetchComponentRelationships, fetchDefinition, generateAndCreateApiKey, generateApiKey, getActiveAgentForConversation, getAgentById, getAgentGraphById, getAgentGraphWithDefaultAgent, getAgentRelationById, getAgentRelationByParams, getAgentRelations, getAgentRelationsByGraph, getAgentRelationsBySource, getAgentRelationsByTarget, getAgentToolRelationByAgent, getAgentToolRelationById, getAgentToolRelationByTool, getAgentsByIds, getAgentsForTool, getAgentsUsingArtifactComponent, getAgentsUsingDataComponent, getApiKeyById, getApiKeyByPublicId, getArtifactComponentById, getArtifactComponentsForAgent, getCacheEntry, getCachedValidator, getContextConfigById, getContextConfigCacheEntries, getContextConfigsByName, getConversation, getConversationCacheEntries, getConversationHistory, getCredentialReference, getCredentialReferenceById, getCredentialReferenceWithTools, getCredentialStoreLookupKeyFromRetrievalParams, getDataComponent, getDataComponentsForAgent, getExternalAgent, getExternalAgentByUrl, getExternalAgentRelations, getFullGraph, getFullGraphDefinition, getFullProject, getGraphAgentInfos, getLedgerArtifacts, getLedgerArtifactsByContext, getLogger, getMessageById, getMessagesByConversation, getMessagesByTask, getProject, getProjectResourceCounts, getRelatedAgentsForGraph, getRequestExecutionContext, getTask, getToolById, getToolsForAgent, getTracer, getVisibleMessages, graphHasArtifactComponents, handleApiError, handleContextConfigChange, handleContextResolution, hasApiKey, hasContextConfig, hasCredentialReference, hashApiKey, invalidateInvocationDefinitionsCache, invalidateRequestContextCache, isApiKeyExpired, isArtifactComponentAssociatedWithAgent, isDataComponentAssociatedWithAgent, isValidHttpRequest, listAgentGraphs, listAgentGraphsPaginated, listAgentRelations, listAgentToolRelations, listAgents, listAgentsPaginated, listApiKeys, listApiKeysPaginated, listArtifactComponents, listArtifactComponentsPaginated, listContextConfigs, listContextConfigsPaginated, listConversations, listCredentialReferences, listCredentialReferencesPaginated, listDataComponents, listDataComponentsPaginated, listExternalAgents, listExternalAgentsPaginated, listMessages, listProjects, listProjectsPaginated, listTaskIdsByContextId, listTools, loadEnvironmentFiles, loggerFactory, maskApiKey, problemDetailsSchema, projectExists, projectExistsInTable, projectHasResources, removeArtifactComponentFromAgent, removeDataComponentFromAgent, removeToolFromAgent, requestContextSchema, setActiveAgentForConversation, setActiveAgentForThread, setCacheEntry, setSpanWithError, updateAgent, updateAgentGraph, updateAgentRelation, updateAgentToolRelation, updateApiKey, updateApiKeyLastUsed, updateArtifactComponent, updateContextConfig, updateConversation, updateConversationActiveAgent, updateCredentialReference, updateDataComponent, updateExternalAgent, updateFullGraphServerSide, updateFullProjectServerSide, updateMessage, updateProject, updateTask, updateTool, upsertAgent, upsertAgentArtifactComponentRelation, upsertAgentDataComponentRelation, upsertAgentGraph, upsertAgentRelation, upsertAgentToolRelation, upsertArtifactComponent, upsertContextConfig, upsertCredentialReference, upsertDataComponent, upsertExternalAgent, upsertLedgerArtifact, upsertTool, validateAgainstJsonSchema, validateAndGetApiKey, validateApiKey, validateExternalAgent, validateHttpRequestHeaders, validateInternalAgent, validateProjectExists, validateRequestContext, validationHelper, withProjectValidation };
3888
+ export { AgentGraphInsert, AgentGraphUpdate, AgentInsert, AgentRelationInsert, AgentRelationUpdate, AgentScopeConfig, AgentSelect, AgentToolRelationUpdate, AgentUpdate, ApiKeyCreateResult, type ApiKeyGenerationResult, ApiKeyInsert, ApiKeySelect, ApiKeyUpdate, Artifact, ArtifactComponentInsert, ArtifactComponentSelect, ArtifactComponentUpdate, type CommonCreateErrorResponses, type CommonDeleteErrorResponses, type CommonGetErrorResponses, type CommonUpdateErrorResponses, ContextCache, ContextCacheInsert, ContextCacheSelect, ContextConfigBuilder, type ContextConfigBuilderOptions, ContextConfigInsert, ContextConfigSelect, ContextConfigUpdate, ContextFetchDefinition, ContextFetcher, type ContextResolutionOptions, type ContextResolutionResult, ContextResolver, type ContextResolverInterface, type ContextValidationError, type ContextValidationResult, ConversationHistoryConfig, ConversationInsert, ConversationMetadata, ConversationSelect, ConversationUpdate, CreateApiKeyParams, type CredentialContext, type CredentialData, CredentialReferenceApiInsert, CredentialReferenceInsert, CredentialReferenceSelect, CredentialReferenceUpdate, type CredentialReferenceWithTools, type CredentialResolverInput, CredentialStore, type CredentialStoreReference, CredentialStoreRegistry, CredentialStoreType, CredentialStuffer, DataComponentInsert, DataComponentSelect, DataComponentUpdate, type DatabaseClient, type DatabaseConfig, type DotPaths, ERROR_DOCS_BASE_URL, ErrorCode, type ErrorCodes, type ErrorResponse, ExecutionContext, ExternalAgentInsert, ExternalAgentRelationInsert, ExternalAgentSelect, ExternalAgentUpdate, type FetchResult, FullGraphDefinition, FullProjectDefinition, type GraphLogger, GraphScopeConfig, HTTP_REQUEST_PARTS, type HttpRequestPart, InMemoryCredentialStore, KeyChainStore, LedgerArtifactSelect, type LoggerFactoryConfig, MCPToolConfig, MCPTransportType, McpClient, type McpClientOptions, type McpSSEConfig, type McpServerConfig, type McpStreamableHttpConfig, McpTool, MessageContent, MessageInsert, MessageMetadata, MessageUpdate, MessageVisibility, NangoCredentialStore, type OAuthConfig, PaginationConfig, PaginationResult, type ParsedHttpRequest, PinoLogger, type PinoLoggerConfig, type ProblemDetails, ProjectInfo, ProjectInsert, type ProjectLogger, ProjectResourceCounts, ProjectScopeConfig, ProjectSelect, ProjectUpdate, type ResolvedContext, TaskInsert, TaskMetadataConfig, TaskSelect, type TemplateContext, TemplateEngine, type TemplateRenderOptions, ToolInsert, ToolMcpConfig, ToolSelect, ToolServerCapabilities, ToolUpdate, addLedgerArtifacts, addToolToAgent, associateArtifactComponentWithAgent, associateDataComponentWithAgent, cleanupTenantCache, clearContextConfigCache, clearConversationCache, commonCreateErrorResponses, commonDeleteErrorResponses, commonGetErrorResponses, commonUpdateErrorResponses, contextConfig, contextValidationMiddleware, countApiKeys, countArtifactComponents, countArtifactComponentsForAgent, countContextConfigs, countCredentialReferences, countDataComponents, countExternalAgents, countLedgerArtifactsByTask, countMessagesByConversation, countProjects, createAgent, createAgentGraph, createAgentRelation, createAgentToolRelation, createApiError, createApiKey, createArtifactComponent, createContextConfig, createConversation, createCredentialReference, createDataComponent, createDatabaseClient, createDefaultCredentialStores, createExecutionContext, createExternalAgent, createExternalAgentRelation, createFullGraphServerSide, createFullProjectServerSide, createInMemoryDatabaseClient, createMessage, createNangoCredentialStore, createOrGetConversation, createProject, createTask, createTool, createValidatedDataAccess, dbResultToMcpTool, deleteAgent, deleteAgentArtifactComponentRelationByAgent, deleteAgentDataComponentRelationByAgent, deleteAgentGraph, deleteAgentRelation, deleteAgentRelationsByGraph, deleteAgentToolRelation, deleteAgentToolRelationByAgent, deleteApiKey, deleteArtifactComponent, deleteContextConfig, deleteConversation, deleteCredentialReference, deleteDataComponent, deleteExternalAgent, deleteFullGraph, deleteFullProject, deleteLedgerArtifactsByContext, deleteLedgerArtifactsByTask, deleteMessage, deleteProject, deleteTool, detectAuthenticationRequired, determineContextTrigger, discoverOAuthEndpoints, errorResponseSchema, errorSchemaFactory, externalAgentExists, externalAgentUrlExists, extractPublicId, fetchComponentRelationships, fetchDefinition, generateAndCreateApiKey, generateApiKey, getActiveAgentForConversation, getAgentById, getAgentGraphById, getAgentGraphWithDefaultAgent, getAgentRelationById, getAgentRelationByParams, getAgentRelations, getAgentRelationsByGraph, getAgentRelationsBySource, getAgentRelationsByTarget, getAgentToolRelationByAgent, getAgentToolRelationById, getAgentToolRelationByTool, getAgentsByIds, getAgentsForTool, getAgentsUsingArtifactComponent, getAgentsUsingDataComponent, getApiKeyById, getApiKeyByPublicId, getArtifactComponentById, getArtifactComponentsForAgent, getCacheEntry, getCachedValidator, getContextConfigById, getContextConfigCacheEntries, getContextConfigsByName, getConversation, getConversationCacheEntries, getConversationHistory, getCredentialReference, getCredentialReferenceById, getCredentialReferenceWithTools, getCredentialStoreLookupKeyFromRetrievalParams, getDataComponent, getDataComponentsForAgent, getExternalAgent, getExternalAgentByUrl, getExternalAgentRelations, getFullGraph, getFullGraphDefinition, getFullProject, getGraphAgentInfos, getLedgerArtifacts, getLedgerArtifactsByContext, getLogger, getMessageById, getMessagesByConversation, getMessagesByTask, getProject, getProjectResourceCounts, getRelatedAgentsForGraph, getRequestExecutionContext, getTask, getToolById, getToolsForAgent, getTracer, getVisibleMessages, graphHasArtifactComponents, handleApiError, handleContextConfigChange, handleContextResolution, hasApiKey, hasContextConfig, hasCredentialReference, hashApiKey, invalidateInvocationDefinitionsCache, invalidateRequestContextCache, isApiKeyExpired, isArtifactComponentAssociatedWithAgent, isDataComponentAssociatedWithAgent, isValidHttpRequest, listAgentGraphs, listAgentGraphsPaginated, listAgentRelations, listAgentToolRelations, listAgents, listAgentsPaginated, listApiKeys, listApiKeysPaginated, listArtifactComponents, listArtifactComponentsPaginated, listContextConfigs, listContextConfigsPaginated, listConversations, listCredentialReferences, listCredentialReferencesPaginated, listDataComponents, listDataComponentsPaginated, listExternalAgents, listExternalAgentsPaginated, listMessages, listProjects, listProjectsPaginated, listTaskIdsByContextId, listTools, loadEnvironmentFiles, loggerFactory, maskApiKey, problemDetailsSchema, projectExists, projectExistsInTable, projectHasResources, removeArtifactComponentFromAgent, removeDataComponentFromAgent, removeToolFromAgent, requestContextSchema, setActiveAgentForConversation, setActiveAgentForThread, setCacheEntry, setSpanWithError, updateAgent, updateAgentGraph, updateAgentRelation, updateAgentToolRelation, updateApiKey, updateApiKeyLastUsed, updateArtifactComponent, updateContextConfig, updateConversation, updateConversationActiveAgent, updateCredentialReference, updateDataComponent, updateExternalAgent, updateFullGraphServerSide, updateFullProjectServerSide, updateMessage, updateProject, updateTask, updateTool, upsertAgent, upsertAgentArtifactComponentRelation, upsertAgentDataComponentRelation, upsertAgentGraph, upsertAgentRelation, upsertAgentToolRelation, upsertArtifactComponent, upsertContextConfig, upsertCredentialReference, upsertDataComponent, upsertExternalAgent, upsertLedgerArtifact, upsertTool, validateAgainstJsonSchema, validateAndGetApiKey, validateApiKey, validateExternalAgent, validateHttpRequestHeaders, validateInternalAgent, validateProjectExists, validateRequestContext, validationHelper, withProjectValidation };