@inkeep/agents-core 0.0.0-dev-20251003220013 → 0.0.0-dev-20251003235339

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-BOfzG3mF.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-BOfzG3mF.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-COYxGpY5.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-COYxGpY5.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-DeUmRJk-.cjs';
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-DeUmRJk-.cjs';
7
+ import { s as schema } from './schema-BUMYiuQO.cjs';
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-BUMYiuQO.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';
@@ -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,13 +826,14 @@ declare class CredentialStuffer {
818
826
  declare const getAgentGraphById: (db: DatabaseClient) => (params: {
819
827
  scopes: GraphScopeConfig;
820
828
  }) => Promise<{
821
- name: string;
829
+ tenantId: string;
830
+ projectId: string;
822
831
  id: string;
832
+ name: string;
833
+ description: string | null;
823
834
  createdAt: string;
824
835
  updatedAt: string;
825
- projectId: string;
826
- tenantId: string;
827
- description: string | null;
836
+ defaultAgentId: string | null;
828
837
  models: {
829
838
  base?: {
830
839
  model?: string | undefined;
@@ -842,7 +851,6 @@ declare const getAgentGraphById: (db: DatabaseClient) => (params: {
842
851
  stopWhen: {
843
852
  transferCountIs?: number | undefined;
844
853
  } | null;
845
- defaultAgentId: string | null;
846
854
  contextConfigId: string | null;
847
855
  statusUpdates: {
848
856
  enabled?: boolean | undefined;
@@ -864,13 +872,14 @@ declare const getAgentGraphById: (db: DatabaseClient) => (params: {
864
872
  declare const getAgentGraphWithDefaultAgent: (db: DatabaseClient) => (params: {
865
873
  scopes: GraphScopeConfig;
866
874
  }) => Promise<{
867
- name: string;
875
+ tenantId: string;
876
+ projectId: string;
868
877
  id: string;
878
+ name: string;
879
+ description: string | null;
869
880
  createdAt: string;
870
881
  updatedAt: string;
871
- projectId: string;
872
- tenantId: string;
873
- description: string | null;
882
+ defaultAgentId: string | null;
874
883
  models: {
875
884
  base?: {
876
885
  model?: string | undefined;
@@ -888,7 +897,6 @@ declare const getAgentGraphWithDefaultAgent: (db: DatabaseClient) => (params: {
888
897
  stopWhen: {
889
898
  transferCountIs?: number | undefined;
890
899
  } | null;
891
- defaultAgentId: string | null;
892
900
  contextConfigId: string | null;
893
901
  statusUpdates: {
894
902
  enabled?: boolean | undefined;
@@ -907,13 +915,16 @@ declare const getAgentGraphWithDefaultAgent: (db: DatabaseClient) => (params: {
907
915
  } | null;
908
916
  graphPrompt: string | null;
909
917
  defaultAgent: {
910
- name: string;
918
+ tenantId: string;
919
+ projectId: string;
911
920
  id: string;
921
+ name: string;
922
+ description: string;
923
+ prompt: string;
924
+ graphId: string;
912
925
  createdAt: string;
913
926
  updatedAt: string;
914
- projectId: string;
915
- tenantId: string;
916
- description: string;
927
+ conversationHistoryConfig: ConversationHistoryConfig | null;
917
928
  models: {
918
929
  base?: {
919
930
  model?: string | undefined;
@@ -931,21 +942,19 @@ declare const getAgentGraphWithDefaultAgent: (db: DatabaseClient) => (params: {
931
942
  stopWhen: {
932
943
  stepCountIs?: number | undefined;
933
944
  } | null;
934
- prompt: string;
935
- conversationHistoryConfig: ConversationHistoryConfig | null;
936
- graphId: string;
937
945
  } | null;
938
946
  } | null>;
939
947
  declare const listAgentGraphs: (db: DatabaseClient) => (params: {
940
948
  scopes: ProjectScopeConfig;
941
949
  }) => Promise<{
942
- name: string;
950
+ tenantId: string;
951
+ projectId: string;
943
952
  id: string;
953
+ name: string;
954
+ description: string | null;
944
955
  createdAt: string;
945
956
  updatedAt: string;
946
- projectId: string;
947
- tenantId: string;
948
- description: string | null;
957
+ defaultAgentId: string | null;
949
958
  models: {
950
959
  base?: {
951
960
  model?: string | undefined;
@@ -963,7 +972,6 @@ declare const listAgentGraphs: (db: DatabaseClient) => (params: {
963
972
  stopWhen: {
964
973
  transferCountIs?: number | undefined;
965
974
  } | null;
966
- defaultAgentId: string | null;
967
975
  contextConfigId: string | null;
968
976
  statusUpdates: {
969
977
  enabled?: boolean | undefined;
@@ -1038,13 +1046,14 @@ declare const listAgentGraphsPaginated: (db: DatabaseClient) => (params: {
1038
1046
  };
1039
1047
  }>;
1040
1048
  declare const createAgentGraph: (db: DatabaseClient) => (data: AgentGraphInsert) => Promise<{
1041
- name: string;
1049
+ tenantId: string;
1050
+ projectId: string;
1042
1051
  id: string;
1052
+ name: string;
1053
+ description: string | null;
1043
1054
  createdAt: string;
1044
1055
  updatedAt: string;
1045
- projectId: string;
1046
- tenantId: string;
1047
- description: string | null;
1056
+ defaultAgentId: string | null;
1048
1057
  models: {
1049
1058
  base?: {
1050
1059
  model?: string | undefined;
@@ -1062,7 +1071,6 @@ declare const createAgentGraph: (db: DatabaseClient) => (data: AgentGraphInsert)
1062
1071
  stopWhen: {
1063
1072
  transferCountIs?: number | undefined;
1064
1073
  } | null;
1065
- defaultAgentId: string | null;
1066
1074
  contextConfigId: string | null;
1067
1075
  statusUpdates: {
1068
1076
  enabled?: boolean | undefined;
@@ -1085,13 +1093,14 @@ declare const updateAgentGraph: (db: DatabaseClient) => (params: {
1085
1093
  scopes: GraphScopeConfig;
1086
1094
  data: AgentGraphUpdate;
1087
1095
  }) => Promise<{
1088
- name: string;
1096
+ tenantId: string;
1097
+ projectId: string;
1089
1098
  id: string;
1099
+ name: string;
1100
+ description: string | null;
1090
1101
  createdAt: string;
1091
1102
  updatedAt: string;
1092
- projectId: string;
1093
- tenantId: string;
1094
- description: string | null;
1103
+ defaultAgentId: string | null;
1095
1104
  models: {
1096
1105
  base?: {
1097
1106
  model?: string | undefined;
@@ -1109,7 +1118,6 @@ declare const updateAgentGraph: (db: DatabaseClient) => (params: {
1109
1118
  stopWhen: {
1110
1119
  transferCountIs?: number | undefined;
1111
1120
  } | null;
1112
- 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<{
1175
+ tenantId: string;
1176
+ projectId: string;
1167
1177
  id: string;
1178
+ graphId: string;
1168
1179
  createdAt: string;
1169
1180
  updatedAt: string;
1170
- projectId: string;
1171
- tenantId: string;
1172
- 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<{
1212
+ tenantId: string;
1213
+ projectId: string;
1204
1214
  id: string;
1215
+ graphId: string;
1205
1216
  createdAt: string;
1206
1217
  updatedAt: string;
1207
- projectId: string;
1208
- tenantId: string;
1209
- 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<{
1226
+ tenantId: string;
1227
+ projectId: string;
1218
1228
  id: string;
1229
+ graphId: string;
1219
1230
  createdAt: string;
1220
1231
  updatedAt: string;
1221
- projectId: string;
1222
- tenantId: string;
1223
- 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<{
1331
+ tenantId: string;
1332
+ projectId: string;
1323
1333
  id: string;
1334
+ graphId: string;
1324
1335
  createdAt: string;
1325
1336
  updatedAt: string;
1326
- projectId: string;
1327
- tenantId: string;
1328
- 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<{
1352
+ tenantId: string;
1353
+ projectId: string;
1344
1354
  id: string;
1355
+ graphId: string;
1345
1356
  createdAt: string;
1346
1357
  updatedAt: string;
1347
- projectId: string;
1348
- tenantId: string;
1349
- 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<{
1367
+ tenantId: string;
1368
+ projectId: string;
1359
1369
  id: string;
1370
+ graphId: string;
1360
1371
  createdAt: string;
1361
1372
  updatedAt: string;
1362
- projectId: string;
1363
- tenantId: string;
1364
- 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<{
1379
+ tenantId: string;
1380
+ projectId: string;
1371
1381
  id: string;
1382
+ graphId: string;
1372
1383
  createdAt: string;
1373
1384
  updatedAt: string;
1374
- projectId: string;
1375
- tenantId: string;
1376
- 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<{
1395
+ tenantId: string;
1396
+ projectId: string;
1387
1397
  id: string;
1398
+ graphId: string;
1388
1399
  createdAt: string;
1389
1400
  updatedAt: string;
1390
- projectId: string;
1391
- tenantId: string;
1392
- 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
- headers: Record<string, string> | null;
1423
+ tenantId: string;
1424
+ projectId: string;
1416
1425
  id: string;
1426
+ graphId: string;
1417
1427
  createdAt: string;
1418
1428
  updatedAt: string;
1419
- projectId: string;
1420
- tenantId: string;
1429
+ headers: Record<string, string> | null;
1430
+ toolId: string;
1421
1431
  selectedTools: string[] | null;
1422
- graphId: string;
1423
1432
  agentId: string;
1424
- 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
- headers: Record<string, string> | null;
1439
+ tenantId: string;
1440
+ projectId: string;
1432
1441
  id: string;
1442
+ graphId: string;
1433
1443
  createdAt: string;
1434
1444
  updatedAt: string;
1435
- projectId: string;
1436
- tenantId: string;
1445
+ headers: Record<string, string> | null;
1446
+ toolId: string;
1437
1447
  selectedTools: string[] | null;
1438
- graphId: string;
1439
1448
  agentId: string;
1440
- 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
- headers: Record<string, string> | null;
1461
+ tenantId: string;
1462
+ projectId: string;
1454
1463
  id: string;
1464
+ graphId: string;
1455
1465
  createdAt: string;
1456
1466
  updatedAt: string;
1457
- projectId: string;
1458
- tenantId: string;
1467
+ headers: Record<string, string> | null;
1468
+ toolId: string;
1459
1469
  selectedTools: string[] | null;
1460
- graphId: string;
1461
1470
  agentId: string;
1462
- toolId: string;
1463
1471
  } | undefined>;
1464
1472
  declare const getAgentToolRelationByAgent: (db: DatabaseClient) => (params: {
1465
1473
  scopes: AgentScopeConfig;
@@ -1628,13 +1636,16 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
1628
1636
  scopes: GraphScopeConfig;
1629
1637
  agentId: string;
1630
1638
  }) => Promise<{
1631
- name: string;
1639
+ tenantId: string;
1640
+ projectId: string;
1632
1641
  id: string;
1642
+ name: string;
1643
+ description: string;
1644
+ prompt: string;
1645
+ graphId: string;
1633
1646
  createdAt: string;
1634
1647
  updatedAt: string;
1635
- projectId: string;
1636
- tenantId: string;
1637
- description: string;
1648
+ conversationHistoryConfig: ConversationHistoryConfig | null;
1638
1649
  models: {
1639
1650
  base?: {
1640
1651
  model?: string | undefined;
@@ -1652,20 +1663,20 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
1652
1663
  stopWhen: {
1653
1664
  stepCountIs?: number | undefined;
1654
1665
  } | null;
1655
- prompt: string;
1656
- conversationHistoryConfig: ConversationHistoryConfig | null;
1657
- graphId: string;
1658
1666
  } | undefined>;
1659
1667
  declare const listAgents: (db: DatabaseClient) => (params: {
1660
1668
  scopes: GraphScopeConfig;
1661
1669
  }) => Promise<{
1662
- name: string;
1670
+ tenantId: string;
1671
+ projectId: string;
1663
1672
  id: string;
1673
+ name: string;
1674
+ description: string;
1675
+ prompt: string;
1676
+ graphId: string;
1664
1677
  createdAt: string;
1665
1678
  updatedAt: string;
1666
- projectId: string;
1667
- tenantId: string;
1668
- description: string;
1679
+ conversationHistoryConfig: ConversationHistoryConfig | null;
1669
1680
  models: {
1670
1681
  base?: {
1671
1682
  model?: string | undefined;
@@ -1683,9 +1694,6 @@ declare const listAgents: (db: DatabaseClient) => (params: {
1683
1694
  stopWhen: {
1684
1695
  stepCountIs?: number | undefined;
1685
1696
  } | null;
1686
- prompt: string;
1687
- conversationHistoryConfig: ConversationHistoryConfig | null;
1688
- graphId: string;
1689
1697
  }[]>;
1690
1698
  declare const listAgentsPaginated: (db: DatabaseClient) => (params: {
1691
1699
  scopes: GraphScopeConfig;
@@ -1728,13 +1736,16 @@ declare const listAgentsPaginated: (db: DatabaseClient) => (params: {
1728
1736
  };
1729
1737
  }>;
1730
1738
  declare const createAgent: (db: DatabaseClient) => (params: AgentInsert) => Promise<{
1731
- name: string;
1739
+ tenantId: string;
1740
+ projectId: string;
1732
1741
  id: string;
1742
+ name: string;
1743
+ description: string;
1744
+ prompt: string;
1745
+ graphId: string;
1733
1746
  createdAt: string;
1734
1747
  updatedAt: string;
1735
- projectId: string;
1736
- tenantId: string;
1737
- description: string;
1748
+ conversationHistoryConfig: ConversationHistoryConfig | null;
1738
1749
  models: {
1739
1750
  base?: {
1740
1751
  model?: string | undefined;
@@ -1752,22 +1763,22 @@ declare const createAgent: (db: DatabaseClient) => (params: AgentInsert) => Prom
1752
1763
  stopWhen: {
1753
1764
  stepCountIs?: number | undefined;
1754
1765
  } | null;
1755
- prompt: string;
1756
- conversationHistoryConfig: ConversationHistoryConfig | null;
1757
- graphId: string;
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
- name: string;
1772
+ tenantId: string;
1773
+ projectId: string;
1765
1774
  id: string;
1775
+ name: string;
1776
+ description: string;
1777
+ prompt: string;
1778
+ graphId: string;
1766
1779
  createdAt: string;
1767
1780
  updatedAt: string;
1768
- projectId: string;
1769
- tenantId: string;
1770
- description: string;
1781
+ conversationHistoryConfig: ConversationHistoryConfig | null;
1771
1782
  models: {
1772
1783
  base?: {
1773
1784
  model?: string | undefined;
@@ -1785,9 +1796,6 @@ declare const updateAgent: (db: DatabaseClient) => (params: {
1785
1796
  stopWhen: {
1786
1797
  stepCountIs?: number | undefined;
1787
1798
  } | null;
1788
- prompt: string;
1789
- conversationHistoryConfig: ConversationHistoryConfig | null;
1790
- graphId: string;
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
- name: string | null;
1840
- id: string;
1841
- createdAt: string;
1842
- updatedAt: string;
1843
- projectId: string;
1844
1847
  tenantId: string;
1848
+ projectId: string;
1849
+ id: string;
1850
+ name: string | null;
1845
1851
  graphId: string;
1846
1852
  publicId: string;
1847
1853
  keyHash: string;
1848
1854
  keyPrefix: string;
1849
1855
  lastUsedAt: string | null;
1850
1856
  expiresAt: string | null;
1851
- } | undefined>;
1852
- declare const getApiKeyByPublicId: (db: DatabaseClient) => (publicId: string) => Promise<{
1853
- name: string | null;
1854
- id: string;
1855
1857
  createdAt: string;
1856
1858
  updatedAt: string;
1857
- projectId: string;
1859
+ } | undefined>;
1860
+ declare const getApiKeyByPublicId: (db: DatabaseClient) => (publicId: string) => Promise<{
1858
1861
  tenantId: string;
1862
+ projectId: string;
1863
+ id: string;
1864
+ name: string | null;
1859
1865
  graphId: string;
1860
1866
  publicId: string;
1861
1867
  keyHash: string;
1862
1868
  keyPrefix: string;
1863
1869
  lastUsedAt: string | null;
1864
1870
  expiresAt: string | null;
1871
+ createdAt: string;
1872
+ 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
- name: string | null;
1871
- id: string;
1872
- createdAt: string;
1873
- updatedAt: string;
1874
- projectId: string;
1875
1878
  tenantId: string;
1879
+ projectId: string;
1880
+ id: string;
1881
+ name: string | null;
1876
1882
  graphId: string;
1877
1883
  publicId: string;
1878
1884
  keyHash: string;
1879
1885
  keyPrefix: string;
1880
1886
  lastUsedAt: string | null;
1881
1887
  expiresAt: string | null;
1888
+ createdAt: string;
1889
+ 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
- name: string | null;
1898
- id: string;
1899
- createdAt: string;
1900
- updatedAt: string;
1901
- projectId: string;
1902
1905
  tenantId: string;
1906
+ projectId: string;
1907
+ id: string;
1908
+ name: string | null;
1903
1909
  graphId: string;
1904
1910
  publicId: string;
1905
1911
  keyHash: string;
1906
1912
  keyPrefix: string;
1907
1913
  lastUsedAt: string | null;
1908
1914
  expiresAt: string | null;
1915
+ createdAt: string;
1916
+ 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
- name: string | null;
1916
- id: string;
1917
- createdAt: string;
1918
- updatedAt: string;
1919
- projectId: string;
1920
1923
  tenantId: string;
1924
+ projectId: string;
1925
+ id: string;
1926
+ name: string | null;
1921
1927
  graphId: string;
1922
1928
  publicId: string;
1923
1929
  keyHash: string;
1924
1930
  keyPrefix: string;
1925
1931
  lastUsedAt: string | null;
1926
1932
  expiresAt: string | null;
1933
+ createdAt: string;
1934
+ 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
- name: string;
1963
+ tenantId: string;
1964
+ projectId: string;
1956
1965
  id: string;
1966
+ name: string;
1967
+ description: string;
1957
1968
  createdAt: string;
1958
1969
  updatedAt: string;
1959
- projectId: string;
1960
- tenantId: string;
1961
- 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
- name: string;
1999
+ tenantId: string;
2000
+ projectId: string;
1992
2001
  id: string;
2002
+ name: string;
2003
+ description: string;
1993
2004
  createdAt: string;
1994
2005
  updatedAt: string;
1995
- projectId: string;
1996
- tenantId: string;
1997
- 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
- name: string;
2014
+ tenantId: string;
2015
+ projectId: string;
2007
2016
  id: string;
2017
+ name: string;
2018
+ description: string;
2008
2019
  createdAt: string;
2009
2020
  updatedAt: string;
2010
- projectId: string;
2011
- tenantId: string;
2012
- 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
- id: string;
2038
- createdAt: string;
2039
- projectId: string;
2040
2045
  tenantId: string;
2046
+ projectId: string;
2047
+ id: string;
2041
2048
  graphId: string;
2049
+ createdAt: 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
- id: string;
2081
- createdAt: string;
2082
- projectId: string;
2083
2088
  tenantId: string;
2089
+ projectId: string;
2090
+ id: string;
2084
2091
  graphId: string;
2092
+ createdAt: string;
2085
2093
  agentId: string;
2086
2094
  artifactComponentId: string;
2087
2095
  } | null>;
@@ -2161,26 +2169,28 @@ declare const getContextConfigById: (db: DatabaseClient) => (params: {
2161
2169
  scopes: ProjectScopeConfig;
2162
2170
  id: string;
2163
2171
  }) => Promise<{
2164
- name: string;
2172
+ tenantId: string;
2173
+ projectId: string;
2165
2174
  id: string;
2175
+ name: string;
2176
+ description: string;
2177
+ graphId: string;
2166
2178
  createdAt: string;
2167
2179
  updatedAt: string;
2168
- projectId: string;
2169
- tenantId: string;
2170
- description: string;
2171
2180
  requestContextSchema: unknown;
2172
2181
  contextVariables: Record<string, ContextFetchDefinition> | null;
2173
2182
  } | undefined>;
2174
2183
  declare const listContextConfigs: (db: DatabaseClient) => (params: {
2175
2184
  scopes: ProjectScopeConfig;
2176
2185
  }) => Promise<{
2177
- name: string;
2186
+ tenantId: string;
2187
+ projectId: string;
2178
2188
  id: string;
2189
+ name: string;
2190
+ description: string;
2191
+ graphId: string;
2179
2192
  createdAt: string;
2180
2193
  updatedAt: string;
2181
- projectId: string;
2182
- tenantId: string;
2183
- description: string;
2184
2194
  requestContextSchema: unknown;
2185
2195
  contextVariables: Record<string, ContextFetchDefinition> | null;
2186
2196
  }[]>;
@@ -2197,13 +2207,14 @@ declare const listContextConfigsPaginated: (db: DatabaseClient) => (params: {
2197
2207
  };
2198
2208
  }>;
2199
2209
  declare const createContextConfig: (db: DatabaseClient) => (params: ContextConfigInsert) => Promise<{
2200
- name: string;
2210
+ tenantId: string;
2211
+ projectId: string;
2201
2212
  id: string;
2213
+ name: string;
2214
+ description: string;
2215
+ graphId: string;
2202
2216
  createdAt: string;
2203
2217
  updatedAt: string;
2204
- projectId: string;
2205
- tenantId: string;
2206
- description: string;
2207
2218
  requestContextSchema: unknown;
2208
2219
  contextVariables: Record<string, ContextFetchDefinition> | null;
2209
2220
  }>;
@@ -2212,13 +2223,14 @@ declare const updateContextConfig: (db: DatabaseClient) => (params: {
2212
2223
  id: string;
2213
2224
  data: Partial<ContextConfigUpdate>;
2214
2225
  }) => Promise<{
2215
- name: string;
2226
+ tenantId: string;
2227
+ projectId: string;
2216
2228
  id: string;
2229
+ name: string;
2230
+ description: string;
2231
+ graphId: string;
2217
2232
  createdAt: string;
2218
2233
  updatedAt: string;
2219
- projectId: string;
2220
- tenantId: string;
2221
- description: string;
2222
2234
  requestContextSchema: unknown;
2223
2235
  contextVariables: Record<string, ContextFetchDefinition> | null;
2224
2236
  }>;
@@ -2237,13 +2249,14 @@ declare const getContextConfigsByName: (db: DatabaseClient) => (params: {
2237
2249
  scopes: ProjectScopeConfig;
2238
2250
  name: string;
2239
2251
  }) => Promise<{
2240
- name: string;
2252
+ tenantId: string;
2253
+ projectId: string;
2241
2254
  id: string;
2255
+ name: string;
2256
+ description: string;
2257
+ graphId: string;
2242
2258
  createdAt: string;
2243
2259
  updatedAt: string;
2244
- projectId: string;
2245
- tenantId: string;
2246
- description: string;
2247
2260
  requestContextSchema: unknown;
2248
2261
  contextVariables: Record<string, ContextFetchDefinition> | null;
2249
2262
  }[]>;
@@ -2253,13 +2266,14 @@ declare const getContextConfigsByName: (db: DatabaseClient) => (params: {
2253
2266
  declare const upsertContextConfig: (db: DatabaseClient) => (params: {
2254
2267
  data: ContextConfigInsert;
2255
2268
  }) => Promise<{
2256
- name: string;
2269
+ tenantId: string;
2270
+ projectId: string;
2257
2271
  id: string;
2272
+ name: string;
2273
+ description: string;
2274
+ graphId: string;
2258
2275
  createdAt: string;
2259
2276
  updatedAt: string;
2260
- projectId: string;
2261
- tenantId: string;
2262
- description: string;
2263
2277
  requestContextSchema: unknown;
2264
2278
  contextVariables: Record<string, ContextFetchDefinition> | null;
2265
2279
  }>;
@@ -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<{
2290
+ tenantId: string;
2291
+ projectId: string;
2276
2292
  id: string;
2277
2293
  createdAt: string;
2278
2294
  updatedAt: string;
2279
- projectId: string;
2280
- 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<{
2306
+ tenantId: string;
2307
+ projectId: string;
2292
2308
  id: string;
2293
2309
  createdAt: string;
2294
2310
  updatedAt: string;
2295
- projectId: string;
2296
- 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<{
2326
+ tenantId: string;
2327
+ projectId: string;
2312
2328
  id: string;
2313
2329
  createdAt: string;
2314
2330
  updatedAt: string;
2315
- projectId: string;
2316
- 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<{
2341
+ tenantId: string;
2342
+ projectId: string;
2327
2343
  id: string;
2328
2344
  createdAt: string;
2329
2345
  updatedAt: string;
2330
- projectId: string;
2331
- 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<{
2379
+ tenantId: string;
2380
+ projectId: string;
2365
2381
  id: string;
2366
2382
  createdAt: string;
2367
2383
  updatedAt: string;
2368
- projectId: string;
2369
- 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
- id: string;
2535
- createdAt: string;
2536
- projectId: string;
2537
2548
  tenantId: string;
2549
+ projectId: string;
2550
+ id: string;
2538
2551
  graphId: string;
2552
+ createdAt: 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
- id: string;
2577
- createdAt: string;
2578
- projectId: string;
2579
2590
  tenantId: string;
2591
+ projectId: string;
2592
+ id: string;
2580
2593
  graphId: string;
2594
+ createdAt: 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<{
2785
+ tenantId: string;
2786
+ projectId: string;
2771
2787
  id: string;
2772
2788
  createdAt: string;
2773
2789
  updatedAt: string;
2774
- projectId: string;
2775
- 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<{
2911
+ tenantId: string;
2912
+ projectId: string;
2897
2913
  id: string;
2898
2914
  createdAt: string;
2899
2915
  updatedAt: string;
2900
- projectId: string;
2901
- 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<{
2937
+ tenantId: string;
2938
+ projectId: string;
2923
2939
  id: string;
2924
2940
  createdAt: string;
2925
2941
  updatedAt: string;
2926
- projectId: string;
2927
- 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<{
2962
+ tenantId: string;
2963
+ projectId: string;
2948
2964
  id: string;
2949
2965
  createdAt: string;
2950
2966
  updatedAt: string;
2951
- projectId: string;
2952
- tenantId: string;
2953
2967
  metadata: MessageMetadata | null;
2954
2968
  content: MessageContent;
2955
2969
  conversationId: string;
@@ -3066,14 +3080,14 @@ declare const deleteProject: (db: DatabaseClient) => (params: {
3066
3080
  }) => Promise<boolean>;
3067
3081
 
3068
3082
  declare const createTask: (db: DatabaseClient) => (params: TaskInsert) => Promise<{
3083
+ tenantId: string;
3084
+ projectId: string;
3069
3085
  id: string;
3086
+ graphId: string;
3070
3087
  createdAt: string;
3071
3088
  updatedAt: string;
3072
- projectId: string;
3073
- tenantId: string;
3074
3089
  metadata: TaskMetadataConfig | null;
3075
3090
  status: string;
3076
- graphId: string;
3077
3091
  contextId: string;
3078
3092
  agentId: string;
3079
3093
  }>;
@@ -3087,14 +3101,14 @@ declare const updateTask: (db: DatabaseClient) => (params: {
3087
3101
  metadata?: any;
3088
3102
  };
3089
3103
  }) => Promise<{
3104
+ tenantId: string;
3105
+ projectId: string;
3090
3106
  id: string;
3107
+ graphId: string;
3091
3108
  createdAt: string;
3092
3109
  updatedAt: string;
3093
- projectId: string;
3094
- tenantId: string;
3095
3110
  metadata: TaskMetadataConfig | null;
3096
3111
  status: string;
3097
- graphId: string;
3098
3112
  contextId: string;
3099
3113
  agentId: string;
3100
3114
  }>;
@@ -3107,19 +3121,19 @@ declare const getToolById: (db: DatabaseClient) => (params: {
3107
3121
  scopes: ProjectScopeConfig;
3108
3122
  toolId: string;
3109
3123
  }) => Promise<{
3110
- name: string;
3111
- headers: Record<string, string> | null;
3112
- id: string;
3113
- createdAt: string;
3114
- updatedAt: string;
3115
- projectId: string;
3116
3124
  tenantId: string;
3117
- credentialReferenceId: string | null;
3118
- capabilities: ToolServerCapabilities | null;
3125
+ projectId: string;
3126
+ id: string;
3127
+ name: string;
3119
3128
  config: {
3120
3129
  type: "mcp";
3121
3130
  mcp: ToolMcpConfig;
3122
3131
  };
3132
+ credentialReferenceId: string | null;
3133
+ createdAt: string;
3134
+ updatedAt: string;
3135
+ headers: Record<string, string> | null;
3136
+ 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
- name: string;
3156
- headers: Record<string, string> | null;
3157
- id: string;
3158
- createdAt: string;
3159
- updatedAt: string;
3160
- projectId: string;
3161
3169
  tenantId: string;
3162
- credentialReferenceId: string | null;
3163
- capabilities: ToolServerCapabilities | null;
3170
+ projectId: string;
3171
+ id: string;
3172
+ name: string;
3164
3173
  config: {
3165
3174
  type: "mcp";
3166
3175
  mcp: ToolMcpConfig;
3167
3176
  };
3177
+ credentialReferenceId: string | null;
3178
+ createdAt: string;
3179
+ updatedAt: string;
3180
+ headers: Record<string, string> | null;
3181
+ 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
- name: string;
3177
- headers: Record<string, string> | null;
3178
- id: string;
3179
- createdAt: string;
3180
- updatedAt: string;
3181
- projectId: string;
3182
3190
  tenantId: string;
3183
- credentialReferenceId: string | null;
3184
- capabilities: ToolServerCapabilities | null;
3191
+ projectId: string;
3192
+ id: string;
3193
+ name: string;
3185
3194
  config: {
3186
3195
  type: "mcp";
3187
3196
  mcp: ToolMcpConfig;
3188
3197
  };
3198
+ credentialReferenceId: string | null;
3199
+ createdAt: string;
3200
+ updatedAt: string;
3201
+ headers: Record<string, string> | null;
3202
+ 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
- headers: Record<string, string> | null;
3217
+ tenantId: string;
3218
+ projectId: string;
3204
3219
  id: string;
3220
+ graphId: string;
3205
3221
  createdAt: string;
3206
3222
  updatedAt: string;
3207
- projectId: string;
3208
- tenantId: string;
3223
+ headers: Record<string, string> | null;
3224
+ toolId: string;
3209
3225
  selectedTools: string[] | null;
3210
- graphId: string;
3211
3226
  agentId: string;
3212
- 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
- headers: Record<string, string> | null;
3233
+ tenantId: string;
3234
+ projectId: string;
3220
3235
  id: string;
3236
+ graphId: string;
3221
3237
  createdAt: string;
3222
3238
  updatedAt: string;
3223
- projectId: string;
3224
- tenantId: string;
3239
+ headers: Record<string, string> | null;
3240
+ toolId: string;
3225
3241
  selectedTools: string[] | null;
3226
- graphId: string;
3227
3242
  agentId: string;
3228
- 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
- headers: Record<string, string> | null;
3255
+ tenantId: string;
3256
+ projectId: string;
3242
3257
  id: string;
3258
+ graphId: string;
3243
3259
  createdAt: string;
3244
3260
  updatedAt: string;
3245
- projectId: string;
3246
- tenantId: string;
3261
+ headers: Record<string, string> | null;
3262
+ toolId: string;
3247
3263
  selectedTools: string[] | null;
3248
- graphId: string;
3249
3264
  agentId: string;
3250
- 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
- name: string;
3259
- headers: Record<string, string> | null;
3260
- id: string;
3261
- createdAt: string;
3262
- updatedAt: string;
3263
- projectId: string;
3264
3272
  tenantId: string;
3265
- credentialReferenceId: string | null;
3266
- capabilities: ToolServerCapabilities | null;
3273
+ projectId: string;
3274
+ id: string;
3275
+ name: string;
3267
3276
  config: {
3268
3277
  type: "mcp";
3269
3278
  mcp: ToolMcpConfig;
3270
3279
  };
3280
+ credentialReferenceId: string | null;
3281
+ createdAt: string;
3282
+ updatedAt: string;
3283
+ headers: Record<string, string> | null;
3284
+ capabilities: ToolServerCapabilities | null;
3271
3285
  imageUrl: string | null;
3272
3286
  lastError: string | null;
3273
3287
  }>;