@inkeep/agents-core 0.14.3 → 0.14.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -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-Cd0qsewS.js';
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-Cd0qsewS.js';
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-POey8vOB.js';
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-POey8vOB.js';
4
4
  import { CredentialStore } from './types/index.js';
5
5
  export { CorsConfig, ServerConfig, ServerOptions } from './types/index.js';
6
6
  import { LibSQLDatabase } from 'drizzle-orm/libsql';
7
- import { s as schema } from './schema-BB_Q_YNK.js';
8
- export { k as agentArtifactComponents, K as agentArtifactComponentsRelations, i as agentDataComponents, M as agentDataComponentsRelations, a as agentGraph, B as agentGraphRelations, e as agentRelations, O as agentRelationsRelations, m as agentToolRelations, E as agentToolRelationsRelations, d as agents, A as agentsRelations, r as apiKeys, D as apiKeysRelations, j as artifactComponents, J as artifactComponentsRelations, b as contextCache, z as contextCacheRelations, c as contextConfigs, y as contextConfigsRelations, n as conversations, H as conversationsRelations, u as credentialReferences, F as credentialReferencesRelations, h as dataComponents, L as dataComponentsRelations, f as externalAgents, C as externalAgentsRelations, q as ledgerArtifacts, N as ledgerArtifactsRelations, o as messages, I as messagesRelations, p as projects, w as projectsRelations, g as taskRelations, x as taskRelationsRelations, t as tasks, v as tasksRelations, l as tools, G as toolsRelations } from './schema-BB_Q_YNK.js';
7
+ import { s as schema } from './schema-CFoAzEjh.js';
8
+ export { k as agentArtifactComponents, K as agentArtifactComponentsRelations, i as agentDataComponents, M as agentDataComponentsRelations, a as agentGraph, B as agentGraphRelations, e as agentRelations, O as agentRelationsRelations, m as agentToolRelations, E as agentToolRelationsRelations, d as agents, A as agentsRelations, r as apiKeys, D as apiKeysRelations, j as artifactComponents, J as artifactComponentsRelations, b as contextCache, z as contextCacheRelations, c as contextConfigs, y as contextConfigsRelations, n as conversations, H as conversationsRelations, u as credentialReferences, F as credentialReferencesRelations, h as dataComponents, L as dataComponentsRelations, f as externalAgents, C as externalAgentsRelations, q as ledgerArtifacts, N as ledgerArtifactsRelations, o as messages, I as messagesRelations, p as projects, w as projectsRelations, g as taskRelations, x as taskRelationsRelations, t as tasks, v as tasksRelations, l as tools, G as toolsRelations } from './schema-CFoAzEjh.js';
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';
@@ -105,6 +105,7 @@ interface ContextConfigBuilderOptions<R extends z.ZodTypeAny | undefined = undef
105
105
  contextVariables?: CV;
106
106
  tenantId?: string;
107
107
  projectId?: string;
108
+ graphId?: string;
108
109
  baseURL?: string;
109
110
  }
110
111
  declare class ContextConfigBuilder<R extends z.ZodTypeAny | undefined, CV extends Record<string, builderFetchDefinition<z.ZodTypeAny>>> {
@@ -112,12 +113,13 @@ declare class ContextConfigBuilder<R extends z.ZodTypeAny | undefined, CV extend
112
113
  private baseURL;
113
114
  private tenantId;
114
115
  private projectId;
116
+ private graphId;
115
117
  constructor(options: ContextConfigBuilderOptions<R, CV>);
116
118
  /**
117
119
  * Set the context (tenantId, projectId, baseURL) for this context config
118
120
  * Called by graph.setConfig() when the graph is configured
119
121
  */
120
- setContext(tenantId: string, projectId: string, baseURL?: string): void;
122
+ setContext(tenantId: string, projectId: string, graphId: string, baseURL?: string): void;
121
123
  /**
122
124
  * Convert the builder to a plain object for database operations
123
125
  */
@@ -578,6 +580,11 @@ declare class NangoCredentialStore implements CredentialStore {
578
580
  * Fetch a specific Nango integration
579
581
  */
580
582
  private fetchNangoIntegration;
583
+ /**
584
+ * Optimize OAuth token data to fit within Nango's 1024 character limit for apiKey field
585
+ * Strategy: Remove unnecessary fields
586
+ */
587
+ private optimizeOAuthTokenForNango;
581
588
  /**
582
589
  * Create an API key credential by setting up Nango integration and importing the connection
583
590
  */
@@ -730,6 +737,7 @@ declare class McpClient {
730
737
  private serverConfig;
731
738
  private connected;
732
739
  constructor(opts: McpClientOptions);
740
+ isConnected(): boolean;
733
741
  connect(): Promise<void>;
734
742
  private connectSSE;
735
743
  private connectHttp;
@@ -818,14 +826,13 @@ declare class CredentialStuffer {
818
826
  declare const getAgentGraphById: (db: DatabaseClient) => (params: {
819
827
  scopes: GraphScopeConfig;
820
828
  }) => Promise<{
821
- tenantId: string;
822
- projectId: string;
823
- id: string;
824
829
  name: string;
825
- description: string | null;
830
+ id: string;
826
831
  createdAt: string;
827
832
  updatedAt: string;
828
- defaultAgentId: string | null;
833
+ projectId: string;
834
+ tenantId: string;
835
+ description: string | null;
829
836
  models: {
830
837
  base?: {
831
838
  model?: string | undefined;
@@ -843,6 +850,7 @@ declare const getAgentGraphById: (db: DatabaseClient) => (params: {
843
850
  stopWhen: {
844
851
  transferCountIs?: number | undefined;
845
852
  } | null;
853
+ defaultAgentId: string | null;
846
854
  contextConfigId: string | null;
847
855
  statusUpdates: {
848
856
  enabled?: boolean | undefined;
@@ -864,14 +872,13 @@ declare const getAgentGraphById: (db: DatabaseClient) => (params: {
864
872
  declare const getAgentGraphWithDefaultAgent: (db: DatabaseClient) => (params: {
865
873
  scopes: GraphScopeConfig;
866
874
  }) => Promise<{
867
- tenantId: string;
868
- projectId: string;
869
- id: string;
870
875
  name: string;
871
- description: string | null;
876
+ id: string;
872
877
  createdAt: string;
873
878
  updatedAt: string;
874
- defaultAgentId: string | null;
879
+ projectId: string;
880
+ tenantId: string;
881
+ description: string | null;
875
882
  models: {
876
883
  base?: {
877
884
  model?: string | undefined;
@@ -889,6 +896,7 @@ declare const getAgentGraphWithDefaultAgent: (db: DatabaseClient) => (params: {
889
896
  stopWhen: {
890
897
  transferCountIs?: number | undefined;
891
898
  } | null;
899
+ defaultAgentId: string | null;
892
900
  contextConfigId: string | null;
893
901
  statusUpdates: {
894
902
  enabled?: boolean | undefined;
@@ -907,16 +915,13 @@ declare const getAgentGraphWithDefaultAgent: (db: DatabaseClient) => (params: {
907
915
  } | null;
908
916
  graphPrompt: string | null;
909
917
  defaultAgent: {
910
- tenantId: string;
911
- projectId: string;
912
- id: string;
913
918
  name: string;
914
- description: string;
915
- prompt: string;
916
- graphId: string;
919
+ id: string;
917
920
  createdAt: string;
918
921
  updatedAt: string;
919
- conversationHistoryConfig: ConversationHistoryConfig | null;
922
+ projectId: string;
923
+ tenantId: string;
924
+ description: string;
920
925
  models: {
921
926
  base?: {
922
927
  model?: string | undefined;
@@ -934,19 +939,21 @@ declare const getAgentGraphWithDefaultAgent: (db: DatabaseClient) => (params: {
934
939
  stopWhen: {
935
940
  stepCountIs?: number | undefined;
936
941
  } | null;
942
+ graphId: string;
943
+ prompt: string;
944
+ conversationHistoryConfig: ConversationHistoryConfig | null;
937
945
  } | null;
938
946
  } | null>;
939
947
  declare const listAgentGraphs: (db: DatabaseClient) => (params: {
940
948
  scopes: ProjectScopeConfig;
941
949
  }) => Promise<{
942
- tenantId: string;
943
- projectId: string;
944
- id: string;
945
950
  name: string;
946
- description: string | null;
951
+ id: string;
947
952
  createdAt: string;
948
953
  updatedAt: string;
949
- defaultAgentId: string | null;
954
+ projectId: string;
955
+ tenantId: string;
956
+ description: string | null;
950
957
  models: {
951
958
  base?: {
952
959
  model?: string | undefined;
@@ -964,6 +971,7 @@ declare const listAgentGraphs: (db: DatabaseClient) => (params: {
964
971
  stopWhen: {
965
972
  transferCountIs?: number | undefined;
966
973
  } | null;
974
+ defaultAgentId: string | null;
967
975
  contextConfigId: string | null;
968
976
  statusUpdates: {
969
977
  enabled?: boolean | undefined;
@@ -1038,14 +1046,13 @@ declare const listAgentGraphsPaginated: (db: DatabaseClient) => (params: {
1038
1046
  };
1039
1047
  }>;
1040
1048
  declare const createAgentGraph: (db: DatabaseClient) => (data: AgentGraphInsert) => Promise<{
1041
- tenantId: string;
1042
- projectId: string;
1043
- id: string;
1044
1049
  name: string;
1045
- description: string | null;
1050
+ id: string;
1046
1051
  createdAt: string;
1047
1052
  updatedAt: string;
1048
- defaultAgentId: string | null;
1053
+ projectId: string;
1054
+ tenantId: string;
1055
+ description: string | null;
1049
1056
  models: {
1050
1057
  base?: {
1051
1058
  model?: string | undefined;
@@ -1063,6 +1070,7 @@ declare const createAgentGraph: (db: DatabaseClient) => (data: AgentGraphInsert)
1063
1070
  stopWhen: {
1064
1071
  transferCountIs?: number | undefined;
1065
1072
  } | null;
1073
+ defaultAgentId: string | null;
1066
1074
  contextConfigId: string | null;
1067
1075
  statusUpdates: {
1068
1076
  enabled?: boolean | undefined;
@@ -1085,14 +1093,13 @@ declare const updateAgentGraph: (db: DatabaseClient) => (params: {
1085
1093
  scopes: GraphScopeConfig;
1086
1094
  data: AgentGraphUpdate;
1087
1095
  }) => Promise<{
1088
- tenantId: string;
1089
- projectId: string;
1090
- id: string;
1091
1096
  name: string;
1092
- description: string | null;
1097
+ id: string;
1093
1098
  createdAt: string;
1094
1099
  updatedAt: string;
1095
- defaultAgentId: string | null;
1100
+ projectId: string;
1101
+ tenantId: string;
1102
+ description: string | null;
1096
1103
  models: {
1097
1104
  base?: {
1098
1105
  model?: string | undefined;
@@ -1110,6 +1117,7 @@ declare const updateAgentGraph: (db: DatabaseClient) => (params: {
1110
1117
  stopWhen: {
1111
1118
  transferCountIs?: number | undefined;
1112
1119
  } | null;
1120
+ defaultAgentId: string | null;
1113
1121
  contextConfigId: string | null;
1114
1122
  statusUpdates: {
1115
1123
  enabled?: boolean | undefined;
@@ -1164,12 +1172,12 @@ declare const getAgentRelationById: (db: DatabaseClient) => (params: {
1164
1172
  scopes: GraphScopeConfig;
1165
1173
  relationId: string;
1166
1174
  }) => Promise<{
1167
- tenantId: string;
1168
- projectId: string;
1169
1175
  id: string;
1170
- graphId: string;
1171
1176
  createdAt: string;
1172
1177
  updatedAt: string;
1178
+ projectId: string;
1179
+ tenantId: string;
1180
+ graphId: string;
1173
1181
  sourceAgentId: string;
1174
1182
  targetAgentId: string | null;
1175
1183
  externalAgentId: string | null;
@@ -1201,12 +1209,12 @@ declare const listAgentRelations: (db: DatabaseClient) => (params: {
1201
1209
  declare const getAgentRelations: (db: DatabaseClient) => (params: {
1202
1210
  scopes: AgentScopeConfig;
1203
1211
  }) => Promise<{
1204
- tenantId: string;
1205
- projectId: string;
1206
1212
  id: string;
1207
- graphId: string;
1208
1213
  createdAt: string;
1209
1214
  updatedAt: string;
1215
+ projectId: string;
1216
+ tenantId: string;
1217
+ graphId: string;
1210
1218
  sourceAgentId: string;
1211
1219
  targetAgentId: string | null;
1212
1220
  externalAgentId: string | null;
@@ -1215,12 +1223,12 @@ declare const getAgentRelations: (db: DatabaseClient) => (params: {
1215
1223
  declare const getAgentRelationsByGraph: (db: DatabaseClient) => (params: {
1216
1224
  scopes: GraphScopeConfig;
1217
1225
  }) => Promise<{
1218
- tenantId: string;
1219
- projectId: string;
1220
1226
  id: string;
1221
- graphId: string;
1222
1227
  createdAt: string;
1223
1228
  updatedAt: string;
1229
+ projectId: string;
1230
+ tenantId: string;
1231
+ graphId: string;
1224
1232
  sourceAgentId: string;
1225
1233
  targetAgentId: string | null;
1226
1234
  externalAgentId: string | null;
@@ -1320,12 +1328,12 @@ declare const getRelatedAgentsForGraph: (db: DatabaseClient) => (params: {
1320
1328
  }[];
1321
1329
  }>;
1322
1330
  declare const createAgentRelation: (db: DatabaseClient) => (params: AgentRelationInsert) => Promise<{
1323
- tenantId: string;
1324
- projectId: string;
1325
1331
  id: string;
1326
- graphId: string;
1327
1332
  createdAt: string;
1328
1333
  updatedAt: string;
1334
+ projectId: string;
1335
+ tenantId: string;
1336
+ graphId: string;
1329
1337
  sourceAgentId: string;
1330
1338
  targetAgentId: string | null;
1331
1339
  externalAgentId: string | null;
@@ -1341,12 +1349,12 @@ declare const getAgentRelationByParams: (db: DatabaseClient) => (params: {
1341
1349
  externalAgentId?: string;
1342
1350
  relationType: string;
1343
1351
  }) => Promise<{
1344
- tenantId: string;
1345
- projectId: string;
1346
1352
  id: string;
1347
- graphId: string;
1348
1353
  createdAt: string;
1349
1354
  updatedAt: string;
1355
+ projectId: string;
1356
+ tenantId: string;
1357
+ graphId: string;
1350
1358
  sourceAgentId: string;
1351
1359
  targetAgentId: string | null;
1352
1360
  externalAgentId: string | null;
@@ -1356,24 +1364,24 @@ declare const getAgentRelationByParams: (db: DatabaseClient) => (params: {
1356
1364
  * Upsert agent relation (create if it doesn't exist, no-op if it does)
1357
1365
  */
1358
1366
  declare const upsertAgentRelation: (db: DatabaseClient) => (params: AgentRelationInsert) => Promise<{
1359
- tenantId: string;
1360
- projectId: string;
1361
1367
  id: string;
1362
- graphId: string;
1363
1368
  createdAt: string;
1364
1369
  updatedAt: string;
1370
+ projectId: string;
1371
+ tenantId: string;
1372
+ graphId: string;
1365
1373
  sourceAgentId: string;
1366
1374
  targetAgentId: string | null;
1367
1375
  externalAgentId: string | null;
1368
1376
  relationType: string | null;
1369
1377
  }>;
1370
1378
  declare const createExternalAgentRelation: (db: DatabaseClient) => (params: ExternalAgentRelationInsert) => Promise<{
1371
- tenantId: string;
1372
- projectId: string;
1373
1379
  id: string;
1374
- graphId: string;
1375
1380
  createdAt: string;
1376
1381
  updatedAt: string;
1382
+ projectId: string;
1383
+ tenantId: string;
1384
+ graphId: string;
1377
1385
  sourceAgentId: string;
1378
1386
  targetAgentId: string | null;
1379
1387
  externalAgentId: string | null;
@@ -1384,12 +1392,12 @@ declare const updateAgentRelation: (db: DatabaseClient) => (params: {
1384
1392
  relationId: string;
1385
1393
  data: AgentRelationUpdate;
1386
1394
  }) => Promise<{
1387
- tenantId: string;
1388
- projectId: string;
1389
1395
  id: string;
1390
- graphId: string;
1391
1396
  createdAt: string;
1392
1397
  updatedAt: string;
1398
+ projectId: string;
1399
+ tenantId: string;
1400
+ graphId: string;
1393
1401
  sourceAgentId: string;
1394
1402
  targetAgentId: string | null;
1395
1403
  externalAgentId: string | null;
@@ -1412,32 +1420,32 @@ declare const createAgentToolRelation: (db: DatabaseClient) => (params: {
1412
1420
  headers?: Record<string, string> | null;
1413
1421
  };
1414
1422
  }) => Promise<{
1415
- tenantId: string;
1416
- projectId: string;
1423
+ headers: Record<string, string> | null;
1417
1424
  id: string;
1418
- graphId: string;
1419
1425
  createdAt: string;
1420
1426
  updatedAt: string;
1421
- headers: Record<string, string> | null;
1422
- toolId: string;
1427
+ projectId: string;
1428
+ tenantId: string;
1429
+ graphId: string;
1423
1430
  selectedTools: string[] | null;
1424
1431
  agentId: string;
1432
+ toolId: string;
1425
1433
  }>;
1426
1434
  declare const updateAgentToolRelation: (db: DatabaseClient) => (params: {
1427
1435
  scopes: GraphScopeConfig;
1428
1436
  relationId: string;
1429
1437
  data: AgentToolRelationUpdate;
1430
1438
  }) => Promise<{
1431
- tenantId: string;
1432
- projectId: string;
1439
+ headers: Record<string, string> | null;
1433
1440
  id: string;
1434
- graphId: string;
1435
1441
  createdAt: string;
1436
1442
  updatedAt: string;
1437
- headers: Record<string, string> | null;
1438
- toolId: string;
1443
+ projectId: string;
1444
+ tenantId: string;
1445
+ graphId: string;
1439
1446
  selectedTools: string[] | null;
1440
1447
  agentId: string;
1448
+ toolId: string;
1441
1449
  }>;
1442
1450
  declare const deleteAgentToolRelation: (db: DatabaseClient) => (params: {
1443
1451
  scopes: GraphScopeConfig;
@@ -1450,16 +1458,16 @@ declare const getAgentToolRelationById: (db: DatabaseClient) => (params: {
1450
1458
  scopes: AgentScopeConfig;
1451
1459
  relationId: string;
1452
1460
  }) => Promise<{
1453
- tenantId: string;
1454
- projectId: string;
1461
+ headers: Record<string, string> | null;
1455
1462
  id: string;
1456
- graphId: string;
1457
1463
  createdAt: string;
1458
1464
  updatedAt: string;
1459
- headers: Record<string, string> | null;
1460
- toolId: string;
1465
+ projectId: string;
1466
+ tenantId: string;
1467
+ graphId: string;
1461
1468
  selectedTools: string[] | null;
1462
1469
  agentId: string;
1470
+ toolId: string;
1463
1471
  } | undefined>;
1464
1472
  declare const getAgentToolRelationByAgent: (db: DatabaseClient) => (params: {
1465
1473
  scopes: AgentScopeConfig;
@@ -1628,16 +1636,13 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
1628
1636
  scopes: GraphScopeConfig;
1629
1637
  agentId: string;
1630
1638
  }) => Promise<{
1631
- tenantId: string;
1632
- projectId: string;
1633
- id: string;
1634
1639
  name: string;
1635
- description: string;
1636
- prompt: string;
1637
- graphId: string;
1640
+ id: string;
1638
1641
  createdAt: string;
1639
1642
  updatedAt: string;
1640
- conversationHistoryConfig: ConversationHistoryConfig | null;
1643
+ projectId: string;
1644
+ tenantId: string;
1645
+ description: string;
1641
1646
  models: {
1642
1647
  base?: {
1643
1648
  model?: string | undefined;
@@ -1655,20 +1660,20 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
1655
1660
  stopWhen: {
1656
1661
  stepCountIs?: number | undefined;
1657
1662
  } | null;
1663
+ graphId: string;
1664
+ prompt: string;
1665
+ conversationHistoryConfig: ConversationHistoryConfig | null;
1658
1666
  } | undefined>;
1659
1667
  declare const listAgents: (db: DatabaseClient) => (params: {
1660
1668
  scopes: GraphScopeConfig;
1661
1669
  }) => Promise<{
1662
- tenantId: string;
1663
- projectId: string;
1664
- id: string;
1665
1670
  name: string;
1666
- description: string;
1667
- prompt: string;
1668
- graphId: string;
1671
+ id: string;
1669
1672
  createdAt: string;
1670
1673
  updatedAt: string;
1671
- conversationHistoryConfig: ConversationHistoryConfig | null;
1674
+ projectId: string;
1675
+ tenantId: string;
1676
+ description: string;
1672
1677
  models: {
1673
1678
  base?: {
1674
1679
  model?: string | undefined;
@@ -1686,6 +1691,9 @@ declare const listAgents: (db: DatabaseClient) => (params: {
1686
1691
  stopWhen: {
1687
1692
  stepCountIs?: number | undefined;
1688
1693
  } | null;
1694
+ graphId: string;
1695
+ prompt: string;
1696
+ conversationHistoryConfig: ConversationHistoryConfig | null;
1689
1697
  }[]>;
1690
1698
  declare const listAgentsPaginated: (db: DatabaseClient) => (params: {
1691
1699
  scopes: GraphScopeConfig;
@@ -1728,16 +1736,13 @@ declare const listAgentsPaginated: (db: DatabaseClient) => (params: {
1728
1736
  };
1729
1737
  }>;
1730
1738
  declare const createAgent: (db: DatabaseClient) => (params: AgentInsert) => Promise<{
1731
- tenantId: string;
1732
- projectId: string;
1733
- id: string;
1734
1739
  name: string;
1735
- description: string;
1736
- prompt: string;
1737
- graphId: string;
1740
+ id: string;
1738
1741
  createdAt: string;
1739
1742
  updatedAt: string;
1740
- conversationHistoryConfig: ConversationHistoryConfig | null;
1743
+ projectId: string;
1744
+ tenantId: string;
1745
+ description: string;
1741
1746
  models: {
1742
1747
  base?: {
1743
1748
  model?: string | undefined;
@@ -1755,22 +1760,22 @@ declare const createAgent: (db: DatabaseClient) => (params: AgentInsert) => Prom
1755
1760
  stopWhen: {
1756
1761
  stepCountIs?: number | undefined;
1757
1762
  } | null;
1763
+ graphId: string;
1764
+ prompt: string;
1765
+ conversationHistoryConfig: ConversationHistoryConfig | null;
1758
1766
  }>;
1759
1767
  declare const updateAgent: (db: DatabaseClient) => (params: {
1760
1768
  scopes: GraphScopeConfig;
1761
1769
  agentId: string;
1762
1770
  data: AgentUpdate;
1763
1771
  }) => Promise<{
1764
- tenantId: string;
1765
- projectId: string;
1766
- id: string;
1767
1772
  name: string;
1768
- description: string;
1769
- prompt: string;
1770
- graphId: string;
1773
+ id: string;
1771
1774
  createdAt: string;
1772
1775
  updatedAt: string;
1773
- conversationHistoryConfig: ConversationHistoryConfig | null;
1776
+ projectId: string;
1777
+ tenantId: string;
1778
+ description: string;
1774
1779
  models: {
1775
1780
  base?: {
1776
1781
  model?: string | undefined;
@@ -1788,6 +1793,9 @@ declare const updateAgent: (db: DatabaseClient) => (params: {
1788
1793
  stopWhen: {
1789
1794
  stepCountIs?: number | undefined;
1790
1795
  } | null;
1796
+ graphId: string;
1797
+ prompt: string;
1798
+ conversationHistoryConfig: ConversationHistoryConfig | null;
1791
1799
  }>;
1792
1800
  /**
1793
1801
  * Upsert agent (create if it doesn't exist, update if it does)
@@ -1836,49 +1844,49 @@ declare const getApiKeyById: (db: DatabaseClient) => (params: {
1836
1844
  scopes: ProjectScopeConfig;
1837
1845
  id: string;
1838
1846
  }) => Promise<{
1839
- tenantId: string;
1840
- projectId: string;
1841
- id: string;
1842
1847
  name: string | null;
1848
+ id: string;
1849
+ createdAt: string;
1850
+ updatedAt: string;
1851
+ projectId: string;
1852
+ tenantId: string;
1843
1853
  graphId: string;
1844
1854
  publicId: string;
1845
1855
  keyHash: string;
1846
1856
  keyPrefix: string;
1847
1857
  lastUsedAt: string | null;
1848
1858
  expiresAt: string | null;
1849
- createdAt: string;
1850
- updatedAt: string;
1851
1859
  } | undefined>;
1852
1860
  declare const getApiKeyByPublicId: (db: DatabaseClient) => (publicId: string) => Promise<{
1853
- tenantId: string;
1854
- projectId: string;
1855
- id: string;
1856
1861
  name: string | null;
1862
+ id: string;
1863
+ createdAt: string;
1864
+ updatedAt: string;
1865
+ projectId: string;
1866
+ tenantId: string;
1857
1867
  graphId: string;
1858
1868
  publicId: string;
1859
1869
  keyHash: string;
1860
1870
  keyPrefix: string;
1861
1871
  lastUsedAt: string | null;
1862
1872
  expiresAt: string | null;
1863
- createdAt: string;
1864
- updatedAt: string;
1865
1873
  } | undefined>;
1866
1874
  declare const listApiKeys: (db: DatabaseClient) => (params: {
1867
1875
  scopes: ProjectScopeConfig;
1868
1876
  graphId?: string;
1869
1877
  }) => Promise<{
1870
- tenantId: string;
1871
- projectId: string;
1872
- id: string;
1873
1878
  name: string | null;
1879
+ id: string;
1880
+ createdAt: string;
1881
+ updatedAt: string;
1882
+ projectId: string;
1883
+ tenantId: string;
1874
1884
  graphId: string;
1875
1885
  publicId: string;
1876
1886
  keyHash: string;
1877
1887
  keyPrefix: string;
1878
1888
  lastUsedAt: string | null;
1879
1889
  expiresAt: string | null;
1880
- createdAt: string;
1881
- updatedAt: string;
1882
1890
  }[]>;
1883
1891
  declare const listApiKeysPaginated: (db: DatabaseClient) => (params: {
1884
1892
  scopes: ProjectScopeConfig;
@@ -1894,36 +1902,36 @@ declare const listApiKeysPaginated: (db: DatabaseClient) => (params: {
1894
1902
  };
1895
1903
  }>;
1896
1904
  declare const createApiKey: (db: DatabaseClient) => (params: ApiKeyInsert) => Promise<{
1897
- tenantId: string;
1898
- projectId: string;
1899
- id: string;
1900
1905
  name: string | null;
1906
+ id: string;
1907
+ createdAt: string;
1908
+ updatedAt: string;
1909
+ projectId: string;
1910
+ tenantId: string;
1901
1911
  graphId: string;
1902
1912
  publicId: string;
1903
1913
  keyHash: string;
1904
1914
  keyPrefix: string;
1905
1915
  lastUsedAt: string | null;
1906
1916
  expiresAt: string | null;
1907
- createdAt: string;
1908
- updatedAt: string;
1909
1917
  }>;
1910
1918
  declare const updateApiKey: (db: DatabaseClient) => (params: {
1911
1919
  scopes: ProjectScopeConfig;
1912
1920
  id: string;
1913
1921
  data: ApiKeyUpdate;
1914
1922
  }) => Promise<{
1915
- tenantId: string;
1916
- projectId: string;
1917
- id: string;
1918
1923
  name: string | null;
1924
+ id: string;
1925
+ createdAt: string;
1926
+ updatedAt: string;
1927
+ projectId: string;
1928
+ tenantId: string;
1919
1929
  graphId: string;
1920
1930
  publicId: string;
1921
1931
  keyHash: string;
1922
1932
  keyPrefix: string;
1923
1933
  lastUsedAt: string | null;
1924
1934
  expiresAt: string | null;
1925
- createdAt: string;
1926
- updatedAt: string;
1927
1935
  }>;
1928
1936
  declare const deleteApiKey: (db: DatabaseClient) => (params: {
1929
1937
  scopes: ProjectScopeConfig;
@@ -1952,13 +1960,13 @@ declare const getArtifactComponentById: (db: DatabaseClient) => (params: {
1952
1960
  scopes: ProjectScopeConfig;
1953
1961
  id: string;
1954
1962
  }) => Promise<{
1955
- tenantId: string;
1956
- projectId: string;
1957
- id: string;
1958
1963
  name: string;
1959
- description: string;
1964
+ id: string;
1960
1965
  createdAt: string;
1961
1966
  updatedAt: string;
1967
+ projectId: string;
1968
+ tenantId: string;
1969
+ description: string;
1962
1970
  summaryProps: Record<string, unknown> | null;
1963
1971
  fullProps: Record<string, unknown> | null;
1964
1972
  } | undefined>;
@@ -1988,13 +1996,13 @@ declare const listArtifactComponentsPaginated: (db: DatabaseClient) => (params:
1988
1996
  };
1989
1997
  }>;
1990
1998
  declare const createArtifactComponent: (db: DatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
1991
- tenantId: string;
1992
- projectId: string;
1993
- id: string;
1994
1999
  name: string;
1995
- description: string;
2000
+ id: string;
1996
2001
  createdAt: string;
1997
2002
  updatedAt: string;
2003
+ projectId: string;
2004
+ tenantId: string;
2005
+ description: string;
1998
2006
  summaryProps: Record<string, unknown> | null;
1999
2007
  fullProps: Record<string, unknown> | null;
2000
2008
  }>;
@@ -2003,13 +2011,13 @@ declare const updateArtifactComponent: (db: DatabaseClient) => (params: {
2003
2011
  id: string;
2004
2012
  data: ArtifactComponentUpdate;
2005
2013
  }) => Promise<{
2006
- tenantId: string;
2007
- projectId: string;
2008
- id: string;
2009
2014
  name: string;
2010
- description: string;
2015
+ id: string;
2011
2016
  createdAt: string;
2012
2017
  updatedAt: string;
2018
+ projectId: string;
2019
+ tenantId: string;
2020
+ description: string;
2013
2021
  summaryProps: Record<string, unknown> | null;
2014
2022
  fullProps: Record<string, unknown> | null;
2015
2023
  }>;
@@ -2034,11 +2042,11 @@ declare const associateArtifactComponentWithAgent: (db: DatabaseClient) => (para
2034
2042
  scopes: AgentScopeConfig;
2035
2043
  artifactComponentId: string;
2036
2044
  }) => Promise<{
2037
- tenantId: string;
2038
- projectId: string;
2039
2045
  id: string;
2040
- graphId: string;
2041
2046
  createdAt: string;
2047
+ projectId: string;
2048
+ tenantId: string;
2049
+ graphId: string;
2042
2050
  agentId: string;
2043
2051
  artifactComponentId: string;
2044
2052
  }>;
@@ -2077,11 +2085,11 @@ declare const upsertAgentArtifactComponentRelation: (db: DatabaseClient) => (par
2077
2085
  scopes: AgentScopeConfig;
2078
2086
  artifactComponentId: string;
2079
2087
  }) => Promise<{
2080
- tenantId: string;
2081
- projectId: string;
2082
2088
  id: string;
2083
- graphId: string;
2084
2089
  createdAt: string;
2090
+ projectId: string;
2091
+ tenantId: string;
2092
+ graphId: string;
2085
2093
  agentId: string;
2086
2094
  artifactComponentId: string;
2087
2095
  } | null>;
@@ -2161,28 +2169,30 @@ declare const getContextConfigById: (db: DatabaseClient) => (params: {
2161
2169
  scopes: ProjectScopeConfig;
2162
2170
  id: string;
2163
2171
  }) => Promise<{
2164
- tenantId: string;
2165
- projectId: string;
2166
- id: string;
2167
2172
  name: string;
2168
- description: string;
2173
+ id: string;
2169
2174
  createdAt: string;
2170
2175
  updatedAt: string;
2176
+ projectId: string;
2177
+ tenantId: string;
2178
+ description: string;
2171
2179
  requestContextSchema: unknown;
2172
2180
  contextVariables: Record<string, ContextFetchDefinition> | null;
2181
+ graphId: string;
2173
2182
  } | undefined>;
2174
2183
  declare const listContextConfigs: (db: DatabaseClient) => (params: {
2175
2184
  scopes: ProjectScopeConfig;
2176
2185
  }) => Promise<{
2177
- tenantId: string;
2178
- projectId: string;
2179
- id: string;
2180
2186
  name: string;
2181
- description: string;
2187
+ id: string;
2182
2188
  createdAt: string;
2183
2189
  updatedAt: string;
2190
+ projectId: string;
2191
+ tenantId: string;
2192
+ description: string;
2184
2193
  requestContextSchema: unknown;
2185
2194
  contextVariables: Record<string, ContextFetchDefinition> | null;
2195
+ graphId: string;
2186
2196
  }[]>;
2187
2197
  declare const listContextConfigsPaginated: (db: DatabaseClient) => (params: {
2188
2198
  scopes: ProjectScopeConfig;
@@ -2197,30 +2207,32 @@ declare const listContextConfigsPaginated: (db: DatabaseClient) => (params: {
2197
2207
  };
2198
2208
  }>;
2199
2209
  declare const createContextConfig: (db: DatabaseClient) => (params: ContextConfigInsert) => Promise<{
2200
- tenantId: string;
2201
- projectId: string;
2202
- id: string;
2203
2210
  name: string;
2204
- description: string;
2211
+ id: string;
2205
2212
  createdAt: string;
2206
2213
  updatedAt: string;
2214
+ projectId: string;
2215
+ tenantId: string;
2216
+ description: string;
2207
2217
  requestContextSchema: unknown;
2208
2218
  contextVariables: Record<string, ContextFetchDefinition> | null;
2219
+ graphId: string;
2209
2220
  }>;
2210
2221
  declare const updateContextConfig: (db: DatabaseClient) => (params: {
2211
2222
  scopes: ProjectScopeConfig;
2212
2223
  id: string;
2213
2224
  data: Partial<ContextConfigUpdate>;
2214
2225
  }) => Promise<{
2215
- tenantId: string;
2216
- projectId: string;
2217
- id: string;
2218
2226
  name: string;
2219
- description: string;
2227
+ id: string;
2220
2228
  createdAt: string;
2221
2229
  updatedAt: string;
2230
+ projectId: string;
2231
+ tenantId: string;
2232
+ description: string;
2222
2233
  requestContextSchema: unknown;
2223
2234
  contextVariables: Record<string, ContextFetchDefinition> | null;
2235
+ graphId: string;
2224
2236
  }>;
2225
2237
  declare const deleteContextConfig: (db: DatabaseClient) => (params: {
2226
2238
  scopes: ProjectScopeConfig;
@@ -2237,15 +2249,16 @@ declare const getContextConfigsByName: (db: DatabaseClient) => (params: {
2237
2249
  scopes: ProjectScopeConfig;
2238
2250
  name: string;
2239
2251
  }) => Promise<{
2240
- tenantId: string;
2241
- projectId: string;
2242
- id: string;
2243
2252
  name: string;
2244
- description: string;
2253
+ id: string;
2245
2254
  createdAt: string;
2246
2255
  updatedAt: string;
2256
+ projectId: string;
2257
+ tenantId: string;
2258
+ description: string;
2247
2259
  requestContextSchema: unknown;
2248
2260
  contextVariables: Record<string, ContextFetchDefinition> | null;
2261
+ graphId: string;
2249
2262
  }[]>;
2250
2263
  /**
2251
2264
  * Upsert a context config (create if it doesn't exist, update if it does)
@@ -2253,15 +2266,16 @@ declare const getContextConfigsByName: (db: DatabaseClient) => (params: {
2253
2266
  declare const upsertContextConfig: (db: DatabaseClient) => (params: {
2254
2267
  data: ContextConfigInsert;
2255
2268
  }) => Promise<{
2256
- tenantId: string;
2257
- projectId: string;
2258
- id: string;
2259
2269
  name: string;
2260
- description: string;
2270
+ id: string;
2261
2271
  createdAt: string;
2262
2272
  updatedAt: string;
2273
+ projectId: string;
2274
+ tenantId: string;
2275
+ description: string;
2263
2276
  requestContextSchema: unknown;
2264
2277
  contextVariables: Record<string, ContextFetchDefinition> | null;
2278
+ graphId: string;
2265
2279
  }>;
2266
2280
 
2267
2281
  declare const listConversations: (db: DatabaseClient) => (params: {
@@ -2273,11 +2287,11 @@ declare const listConversations: (db: DatabaseClient) => (params: {
2273
2287
  total: number;
2274
2288
  }>;
2275
2289
  declare const createConversation: (db: DatabaseClient) => (params: ConversationInsert) => Promise<{
2276
- tenantId: string;
2277
- projectId: string;
2278
2290
  id: string;
2279
2291
  createdAt: string;
2280
2292
  updatedAt: string;
2293
+ projectId: string;
2294
+ tenantId: string;
2281
2295
  title: string | null;
2282
2296
  metadata: ConversationMetadata | null;
2283
2297
  userId: string | null;
@@ -2289,11 +2303,11 @@ declare const updateConversation: (db: DatabaseClient) => (params: {
2289
2303
  conversationId: string;
2290
2304
  data: ConversationUpdate;
2291
2305
  }) => Promise<{
2292
- tenantId: string;
2293
- projectId: string;
2294
2306
  id: string;
2295
2307
  createdAt: string;
2296
2308
  updatedAt: string;
2309
+ projectId: string;
2310
+ tenantId: string;
2297
2311
  title: string | null;
2298
2312
  metadata: ConversationMetadata | null;
2299
2313
  userId: string | null;
@@ -2309,11 +2323,11 @@ declare const updateConversationActiveAgent: (db: DatabaseClient) => (params: {
2309
2323
  conversationId: string;
2310
2324
  activeAgentId: string;
2311
2325
  }) => Promise<{
2312
- tenantId: string;
2313
- projectId: string;
2314
2326
  id: string;
2315
2327
  createdAt: string;
2316
2328
  updatedAt: string;
2329
+ projectId: string;
2330
+ tenantId: string;
2317
2331
  title: string | null;
2318
2332
  metadata: ConversationMetadata | null;
2319
2333
  userId: string | null;
@@ -2324,11 +2338,11 @@ declare const getConversation: (db: DatabaseClient) => (params: {
2324
2338
  scopes: ProjectScopeConfig;
2325
2339
  conversationId: string;
2326
2340
  }) => Promise<{
2327
- tenantId: string;
2328
- projectId: string;
2329
2341
  id: string;
2330
2342
  createdAt: string;
2331
2343
  updatedAt: string;
2344
+ projectId: string;
2345
+ tenantId: string;
2332
2346
  title: string | null;
2333
2347
  metadata: ConversationMetadata | null;
2334
2348
  userId: string | null;
@@ -2362,11 +2376,11 @@ declare const getActiveAgentForConversation: (db: DatabaseClient) => (params: {
2362
2376
  scopes: ProjectScopeConfig;
2363
2377
  conversationId: string;
2364
2378
  }) => Promise<{
2365
- tenantId: string;
2366
- projectId: string;
2367
2379
  id: string;
2368
2380
  createdAt: string;
2369
2381
  updatedAt: string;
2382
+ projectId: string;
2383
+ tenantId: string;
2370
2384
  title: string | null;
2371
2385
  metadata: ConversationMetadata | null;
2372
2386
  userId: string | null;
@@ -2531,11 +2545,11 @@ declare const associateDataComponentWithAgent: (db: DatabaseClient) => (params:
2531
2545
  scopes: AgentScopeConfig;
2532
2546
  dataComponentId: string;
2533
2547
  }) => Promise<{
2534
- tenantId: string;
2535
- projectId: string;
2536
2548
  id: string;
2537
- graphId: string;
2538
2549
  createdAt: string;
2550
+ projectId: string;
2551
+ tenantId: string;
2552
+ graphId: string;
2539
2553
  agentId: string;
2540
2554
  dataComponentId: string;
2541
2555
  }>;
@@ -2573,11 +2587,11 @@ declare const upsertAgentDataComponentRelation: (db: DatabaseClient) => (params:
2573
2587
  scopes: AgentScopeConfig;
2574
2588
  dataComponentId: string;
2575
2589
  }) => Promise<{
2576
- tenantId: string;
2577
- projectId: string;
2578
2590
  id: string;
2579
- graphId: string;
2580
2591
  createdAt: string;
2592
+ projectId: string;
2593
+ tenantId: string;
2594
+ graphId: string;
2581
2595
  agentId: string;
2582
2596
  dataComponentId: string;
2583
2597
  } | null>;
@@ -2768,11 +2782,11 @@ declare const getMessageById: (db: DatabaseClient) => (params: {
2768
2782
  scopes: ProjectScopeConfig;
2769
2783
  messageId: string;
2770
2784
  }) => Promise<{
2771
- tenantId: string;
2772
- projectId: string;
2773
2785
  id: string;
2774
2786
  createdAt: string;
2775
2787
  updatedAt: string;
2788
+ projectId: string;
2789
+ tenantId: string;
2776
2790
  metadata: MessageMetadata | null;
2777
2791
  content: MessageContent;
2778
2792
  conversationId: string;
@@ -2894,11 +2908,11 @@ declare const getVisibleMessages: (db: DatabaseClient) => (params: {
2894
2908
  id: string;
2895
2909
  }[]>;
2896
2910
  declare const createMessage: (db: DatabaseClient) => (params: MessageInsert) => Promise<{
2897
- tenantId: string;
2898
- projectId: string;
2899
2911
  id: string;
2900
2912
  createdAt: string;
2901
2913
  updatedAt: string;
2914
+ projectId: string;
2915
+ tenantId: string;
2902
2916
  metadata: MessageMetadata | null;
2903
2917
  content: MessageContent;
2904
2918
  conversationId: string;
@@ -2920,11 +2934,11 @@ declare const updateMessage: (db: DatabaseClient) => (params: {
2920
2934
  messageId: string;
2921
2935
  data: MessageUpdate;
2922
2936
  }) => Promise<{
2923
- tenantId: string;
2924
- projectId: string;
2925
2937
  id: string;
2926
2938
  createdAt: string;
2927
2939
  updatedAt: string;
2940
+ projectId: string;
2941
+ tenantId: string;
2928
2942
  metadata: MessageMetadata | null;
2929
2943
  content: MessageContent;
2930
2944
  conversationId: string;
@@ -2945,11 +2959,11 @@ declare const deleteMessage: (db: DatabaseClient) => (params: {
2945
2959
  scopes: ProjectScopeConfig;
2946
2960
  messageId: string;
2947
2961
  }) => Promise<{
2948
- tenantId: string;
2949
- projectId: string;
2950
2962
  id: string;
2951
2963
  createdAt: string;
2952
2964
  updatedAt: string;
2965
+ projectId: string;
2966
+ tenantId: string;
2953
2967
  metadata: MessageMetadata | null;
2954
2968
  content: MessageContent;
2955
2969
  conversationId: string;
@@ -3066,13 +3080,13 @@ declare const deleteProject: (db: DatabaseClient) => (params: {
3066
3080
  }) => Promise<boolean>;
3067
3081
 
3068
3082
  declare const createTask: (db: DatabaseClient) => (params: TaskInsert) => Promise<{
3069
- tenantId: string;
3070
- projectId: string;
3071
3083
  id: string;
3072
- graphId: string;
3073
3084
  createdAt: string;
3074
3085
  updatedAt: string;
3086
+ projectId: string;
3087
+ tenantId: string;
3075
3088
  metadata: TaskMetadataConfig | null;
3089
+ graphId: string;
3076
3090
  status: string;
3077
3091
  contextId: string;
3078
3092
  agentId: string;
@@ -3087,13 +3101,13 @@ declare const updateTask: (db: DatabaseClient) => (params: {
3087
3101
  metadata?: any;
3088
3102
  };
3089
3103
  }) => Promise<{
3090
- tenantId: string;
3091
- projectId: string;
3092
3104
  id: string;
3093
- graphId: string;
3094
3105
  createdAt: string;
3095
3106
  updatedAt: string;
3107
+ projectId: string;
3108
+ tenantId: string;
3096
3109
  metadata: TaskMetadataConfig | null;
3110
+ graphId: string;
3097
3111
  status: string;
3098
3112
  contextId: string;
3099
3113
  agentId: string;
@@ -3107,19 +3121,19 @@ declare const getToolById: (db: DatabaseClient) => (params: {
3107
3121
  scopes: ProjectScopeConfig;
3108
3122
  toolId: string;
3109
3123
  }) => Promise<{
3110
- tenantId: string;
3111
- projectId: string;
3112
- id: string;
3113
3124
  name: string;
3125
+ headers: Record<string, string> | null;
3126
+ id: string;
3127
+ createdAt: string;
3128
+ updatedAt: string;
3129
+ projectId: string;
3130
+ tenantId: string;
3131
+ credentialReferenceId: string | null;
3132
+ capabilities: ToolServerCapabilities | null;
3114
3133
  config: {
3115
3134
  type: "mcp";
3116
3135
  mcp: ToolMcpConfig;
3117
3136
  };
3118
- credentialReferenceId: string | null;
3119
- createdAt: string;
3120
- updatedAt: string;
3121
- headers: Record<string, string> | null;
3122
- capabilities: ToolServerCapabilities | null;
3123
3137
  imageUrl: string | null;
3124
3138
  lastError: string | null;
3125
3139
  } | null>;
@@ -3152,19 +3166,19 @@ declare const listTools: (db: DatabaseClient) => (params: {
3152
3166
  };
3153
3167
  }>;
3154
3168
  declare const createTool: (db: DatabaseClient) => (params: ToolInsert) => Promise<{
3155
- tenantId: string;
3156
- projectId: string;
3157
- id: string;
3158
3169
  name: string;
3170
+ headers: Record<string, string> | null;
3171
+ id: string;
3172
+ createdAt: string;
3173
+ updatedAt: string;
3174
+ projectId: string;
3175
+ tenantId: string;
3176
+ credentialReferenceId: string | null;
3177
+ capabilities: ToolServerCapabilities | null;
3159
3178
  config: {
3160
3179
  type: "mcp";
3161
3180
  mcp: ToolMcpConfig;
3162
3181
  };
3163
- credentialReferenceId: string | null;
3164
- createdAt: string;
3165
- updatedAt: string;
3166
- headers: Record<string, string> | null;
3167
- capabilities: ToolServerCapabilities | null;
3168
3182
  imageUrl: string | null;
3169
3183
  lastError: string | null;
3170
3184
  }>;
@@ -3173,19 +3187,19 @@ declare const updateTool: (db: DatabaseClient) => (params: {
3173
3187
  toolId: string;
3174
3188
  data: ToolUpdate;
3175
3189
  }) => Promise<{
3176
- tenantId: string;
3177
- projectId: string;
3178
- id: string;
3179
3190
  name: string;
3191
+ headers: Record<string, string> | null;
3192
+ id: string;
3193
+ createdAt: string;
3194
+ updatedAt: string;
3195
+ projectId: string;
3196
+ tenantId: string;
3197
+ credentialReferenceId: string | null;
3198
+ capabilities: ToolServerCapabilities | null;
3180
3199
  config: {
3181
3200
  type: "mcp";
3182
3201
  mcp: ToolMcpConfig;
3183
3202
  };
3184
- credentialReferenceId: string | null;
3185
- createdAt: string;
3186
- updatedAt: string;
3187
- headers: Record<string, string> | null;
3188
- capabilities: ToolServerCapabilities | null;
3189
3203
  imageUrl: string | null;
3190
3204
  lastError: string | null;
3191
3205
  }>;
@@ -3200,32 +3214,32 @@ declare const addToolToAgent: (db: DatabaseClient) => (params: {
3200
3214
  selectedTools?: string[] | null;
3201
3215
  headers?: Record<string, string> | null;
3202
3216
  }) => Promise<{
3203
- tenantId: string;
3204
- projectId: string;
3217
+ headers: Record<string, string> | null;
3205
3218
  id: string;
3206
- graphId: string;
3207
3219
  createdAt: string;
3208
3220
  updatedAt: string;
3209
- headers: Record<string, string> | null;
3210
- toolId: string;
3221
+ projectId: string;
3222
+ tenantId: string;
3223
+ graphId: string;
3211
3224
  selectedTools: string[] | null;
3212
3225
  agentId: string;
3226
+ toolId: string;
3213
3227
  }>;
3214
3228
  declare const removeToolFromAgent: (db: DatabaseClient) => (params: {
3215
3229
  scopes: GraphScopeConfig;
3216
3230
  agentId: string;
3217
3231
  toolId: string;
3218
3232
  }) => Promise<{
3219
- tenantId: string;
3220
- projectId: string;
3233
+ headers: Record<string, string> | null;
3221
3234
  id: string;
3222
- graphId: string;
3223
3235
  createdAt: string;
3224
3236
  updatedAt: string;
3225
- headers: Record<string, string> | null;
3226
- toolId: string;
3237
+ projectId: string;
3238
+ tenantId: string;
3239
+ graphId: string;
3227
3240
  selectedTools: string[] | null;
3228
3241
  agentId: string;
3242
+ toolId: string;
3229
3243
  }>;
3230
3244
  /**
3231
3245
  * Upsert agent-tool relation (create if it doesn't exist, update if it does)
@@ -3238,16 +3252,16 @@ declare const upsertAgentToolRelation: (db: DatabaseClient) => (params: {
3238
3252
  headers?: Record<string, string> | null;
3239
3253
  relationId?: string;
3240
3254
  }) => Promise<{
3241
- tenantId: string;
3242
- projectId: string;
3255
+ headers: Record<string, string> | null;
3243
3256
  id: string;
3244
- graphId: string;
3245
3257
  createdAt: string;
3246
3258
  updatedAt: string;
3247
- headers: Record<string, string> | null;
3248
- toolId: string;
3259
+ projectId: string;
3260
+ tenantId: string;
3261
+ graphId: string;
3249
3262
  selectedTools: string[] | null;
3250
3263
  agentId: string;
3264
+ toolId: string;
3251
3265
  }>;
3252
3266
  /**
3253
3267
  * Upsert a tool (create if it doesn't exist, update if it does)
@@ -3255,19 +3269,19 @@ declare const upsertAgentToolRelation: (db: DatabaseClient) => (params: {
3255
3269
  declare const upsertTool: (db: DatabaseClient) => (params: {
3256
3270
  data: ToolInsert;
3257
3271
  }) => Promise<{
3258
- tenantId: string;
3259
- projectId: string;
3260
- id: string;
3261
3272
  name: string;
3273
+ headers: Record<string, string> | null;
3274
+ id: string;
3275
+ createdAt: string;
3276
+ updatedAt: string;
3277
+ projectId: string;
3278
+ tenantId: string;
3279
+ credentialReferenceId: string | null;
3280
+ capabilities: ToolServerCapabilities | null;
3262
3281
  config: {
3263
3282
  type: "mcp";
3264
3283
  mcp: ToolMcpConfig;
3265
3284
  };
3266
- credentialReferenceId: string | null;
3267
- createdAt: string;
3268
- updatedAt: string;
3269
- headers: Record<string, string> | null;
3270
- capabilities: ToolServerCapabilities | null;
3271
3285
  imageUrl: string | null;
3272
3286
  lastError: string | null;
3273
3287
  }>;