@inkeep/agents-core 0.0.0-dev-20251008194140 → 0.0.0-dev-20251008200151

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.
Files changed (36) hide show
  1. package/dist/{chunk-AHSEMW6N.js → chunk-5ZHSPLXI.js} +1 -2
  2. package/dist/{chunk-FMCAYVO7.js → chunk-BNXFEUNP.js} +105 -2
  3. package/dist/{chunk-FLKAMXLV.js → chunk-PR7XWHED.js} +1 -1
  4. package/dist/chunk-R2EERZSW.js +223 -0
  5. package/dist/client-exports.cjs +110 -9
  6. package/dist/client-exports.d.cts +14 -11
  7. package/dist/client-exports.d.ts +14 -11
  8. package/dist/client-exports.js +4 -10
  9. package/dist/db/schema.cjs +1 -2
  10. package/dist/db/schema.d.cts +2 -2
  11. package/dist/db/schema.d.ts +2 -2
  12. package/dist/db/schema.js +1 -1
  13. package/dist/index.cjs +549 -371
  14. package/dist/index.d.cts +262 -265
  15. package/dist/index.d.ts +262 -265
  16. package/dist/index.js +41 -188
  17. package/dist/props-validation-BMR1qNiy.d.cts +15 -0
  18. package/dist/props-validation-BMR1qNiy.d.ts +15 -0
  19. package/dist/{schema-D0E2bG9V.d.ts → schema-BYR5XAeI.d.ts} +3 -22
  20. package/dist/{schema-CTBfyt-o.d.cts → schema-Cn2ZkYOh.d.cts} +3 -22
  21. package/dist/types/index.d.cts +2 -2
  22. package/dist/types/index.d.ts +2 -2
  23. package/dist/{utility-BMAHFZX6.d.cts → utility-6UlHR5nQ.d.cts} +191 -216
  24. package/dist/{utility-BMAHFZX6.d.ts → utility-6UlHR5nQ.d.ts} +191 -216
  25. package/dist/utils/schema-conversion.cjs +236 -0
  26. package/dist/utils/schema-conversion.d.cts +26 -0
  27. package/dist/utils/schema-conversion.d.ts +26 -0
  28. package/dist/utils/schema-conversion.js +1 -0
  29. package/dist/validation/index.cjs +109 -2
  30. package/dist/validation/index.d.cts +3 -2
  31. package/dist/validation/index.d.ts +3 -2
  32. package/dist/validation/index.js +2 -2
  33. package/drizzle/0002_bumpy_romulus.sql +3 -0
  34. package/drizzle/meta/0002_snapshot.json +2428 -0
  35. package/drizzle/meta/_journal.json +7 -0
  36. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  import { z } from 'zod';
2
- import { n as CredentialReferenceApiInsert, o as ContextConfigSelect, h as ContextFetchDefinition, g as MCPTransportType, p as MCPToolConfig, q as GraphScopeConfig, C as ConversationHistoryConfig, r as ProjectScopeConfig, s as PaginationConfig, t as AgentGraphInsert, u as AgentGraphUpdate, v as FullGraphDefinition, w as AgentScopeConfig, x as AgentRelationInsert, E as ExternalAgentRelationInsert, y as AgentRelationUpdate, z as AgentToolRelationUpdate, i as ToolMcpConfig, j as ToolServerCapabilities, B as AgentInsert, D as AgentUpdate, H as AgentSelect, I as ApiKeySelect, J as ApiKeyInsert, K as ApiKeyUpdate, L as CreateApiKeyParams, N as ApiKeyCreateResult, O as ArtifactComponentSelect, Q as ArtifactComponentInsert, R as ArtifactComponentUpdate, U as ContextCacheSelect, V as ContextCacheInsert, W as ContextConfigInsert, X as ContextConfigUpdate, Y as ConversationSelect, Z as ConversationInsert, k as ConversationMetadata, _ as ConversationUpdate, $ as CredentialReferenceSelect, a0 as ToolSelect, a1 as CredentialReferenceInsert, a2 as CredentialReferenceUpdate, a3 as DataComponentSelect, a4 as DataComponentInsert, a5 as DataComponentUpdate, a6 as ExternalAgentInsert, a7 as ExternalAgentSelect, a8 as ExternalAgentUpdate, a9 as Artifact, aa as LedgerArtifactSelect, m as MessageMetadata, l as MessageContent, ab as MessageVisibility, ac as MessageInsert, ad as MessageUpdate, ae as FullProjectDefinition, af as ProjectInfo, ag as ProjectSelect, ah as PaginationResult, ai as ProjectResourceCounts, aj as ProjectInsert, ak as ProjectUpdate, al as TaskInsert, T as TaskMetadataConfig, am as TaskSelect, an as McpTool, ao as ToolInsert, ap as ToolUpdate, f as CredentialStoreType, aq as ExecutionContext } from './utility-BMAHFZX6.js';
3
- export { b2 as A2AError, by as A2ARequest, bz as A2AResponse, aD as APIKeySecurityScheme, bD as AgentApiInsert, dt as AgentApiInsertSchema, bC as AgentApiSelect, ds as AgentApiSelectSchema, bE as AgentApiUpdate, du as AgentApiUpdateSchema, cw as AgentArtifactComponentApiInsert, eE as AgentArtifactComponentApiInsertSchema, cv as AgentArtifactComponentApiSelect, eD as AgentArtifactComponentApiSelectSchema, cx as AgentArtifactComponentApiUpdate, eF as AgentArtifactComponentApiUpdateSchema, ct as AgentArtifactComponentInsert, eB as AgentArtifactComponentInsertSchema, cs as AgentArtifactComponentSelect, eA as AgentArtifactComponentSelectSchema, cu as AgentArtifactComponentUpdate, eC as AgentArtifactComponentUpdateSchema, az as AgentCapabilities, aN as AgentCard, d8 as AgentConversationHistoryConfig, cn as AgentDataComponentApiInsert, es as AgentDataComponentApiInsertSchema, cm as AgentDataComponentApiSelect, er as AgentDataComponentApiSelectSchema, co as AgentDataComponentApiUpdate, et as AgentDataComponentApiUpdateSchema, ck as AgentDataComponentInsert, ep as AgentDataComponentInsertSchema, cj as AgentDataComponentSelect, eo as AgentDataComponentSelectSchema, cl as AgentDataComponentUpdate, eq as AgentDataComponentUpdateSchema, cV as AgentDefinition, bN as AgentGraphApiInsert, dI as AgentGraphApiInsertSchema, bM as AgentGraphApiSelect, dH as AgentGraphApiSelectSchema, bO as AgentGraphApiUpdate, dJ as AgentGraphApiUpdateSchema, dF as AgentGraphInsertSchema, bL as AgentGraphSelect, dE as AgentGraphSelectSchema, dG as AgentGraphUpdateSchema, dq as AgentInsertSchema, aA as AgentProvider, bH as AgentRelationApiInsert, dz as AgentRelationApiInsertSchema, bG as AgentRelationApiSelect, dy as AgentRelationApiSelectSchema, bI as AgentRelationApiUpdate, dA as AgentRelationApiUpdateSchema, dw as AgentRelationInsertSchema, bJ as AgentRelationQuery, dB as AgentRelationQuerySchema, bF as AgentRelationSelect, dv as AgentRelationSelectSchema, dx as AgentRelationUpdateSchema, dp as AgentSelectSchema, aB as AgentSkill, d as AgentStopWhen, a as AgentStopWhenSchema, cL as AgentToolRelationApiInsert, ff as AgentToolRelationApiInsertSchema, cK as AgentToolRelationApiSelect, fe as AgentToolRelationApiSelectSchema, cM as AgentToolRelationApiUpdate, fg as AgentToolRelationApiUpdateSchema, cJ as AgentToolRelationInsert, fc as AgentToolRelationInsertSchema, cI as AgentToolRelationSelect, fb as AgentToolRelationSelectSchema, fd as AgentToolRelationUpdateSchema, dr as AgentUpdateSchema, eM as AllAgentSchema, cB as AllAgentSelect, cF as ApiKeyApiCreationResponse, eR as ApiKeyApiCreationResponseSchema, cD as ApiKeyApiInsert, eS as ApiKeyApiInsertSchema, cC as ApiKeyApiSelect, eQ as ApiKeyApiSelectSchema, cE as ApiKeyApiUpdate, A as ApiKeyApiUpdateSchema, eO as ApiKeyInsertSchema, eN as ApiKeySelectSchema, eP as ApiKeyUpdateSchema, cq as ArtifactComponentApiInsert, ey as ArtifactComponentApiInsertSchema, cp as ArtifactComponentApiSelect, ex as ArtifactComponentApiSelectSchema, cr as ArtifactComponentApiUpdate, ez as ArtifactComponentApiUpdateSchema, ev as ArtifactComponentInsertSchema, eu as ArtifactComponentSelectSchema, ew as ArtifactComponentUpdateSchema, aG as AuthorizationCodeOAuthFlow, cT as CanUseItem, fp as CanUseItemSchema, bi as CancelTaskRequest, bt as CancelTaskResponse, bs as CancelTaskSuccessResponse, aH as ClientCredentialsOAuthFlow, b0 as ContentTypeNotSupportedError, ce as ContextCacheApiInsert, ef as ContextCacheApiInsertSchema, cd as ContextCacheApiSelect, ee as ContextCacheApiSelectSchema, cf as ContextCacheApiUpdate, eg as ContextCacheApiUpdateSchema, d9 as ContextCacheEntry, ec as ContextCacheInsertSchema, eb as ContextCacheSelectSchema, cc as ContextCacheUpdate, ed as ContextCacheUpdateSchema, c8 as ContextConfigApiInsert, f9 as ContextConfigApiInsertSchema, c7 as ContextConfigApiSelect, f8 as ContextConfigApiSelectSchema, c9 as ContextConfigApiUpdate, fa as ContextConfigApiUpdateSchema, f6 as ContextConfigInsertSchema, f5 as ContextConfigSelectSchema, f7 as ContextConfigUpdateSchema, c1 as ConversationApiInsert, e3 as ConversationApiInsertSchema, c0 as ConversationApiSelect, e2 as ConversationApiSelectSchema, c2 as ConversationApiUpdate, e4 as ConversationApiUpdateSchema, e0 as ConversationInsertSchema, d7 as ConversationScopeOptions, d$ as ConversationSelectSchema, e1 as ConversationUpdateSchema, eX as CredentialReferenceApiInsertSchema, cG as CredentialReferenceApiSelect, eW as CredentialReferenceApiSelectSchema, cH as CredentialReferenceApiUpdate, eY as CredentialReferenceApiUpdateSchema, eU as CredentialReferenceInsertSchema, eT as CredentialReferenceSelectSchema, eV as CredentialReferenceUpdateSchema, ch as DataComponentApiInsert, em as DataComponentApiInsertSchema, cg as DataComponentApiSelect, el as DataComponentApiSelectSchema, ci as DataComponentApiUpdate, en as DataComponentApiUpdateSchema, ej as DataComponentBaseSchema, ei as DataComponentInsertSchema, eh as DataComponentSelectSchema, ek as DataComponentUpdateSchema, ax as DataPart, fv as ErrorResponseSchema, fw as ExistsResponseSchema, cz as ExternalAgentApiInsert, eK as ExternalAgentApiInsertSchema, cy as ExternalAgentApiSelect, eJ as ExternalAgentApiSelectSchema, cA as ExternalAgentApiUpdate, eL as ExternalAgentApiUpdateSchema, eH as ExternalAgentInsertSchema, bK as ExternalAgentRelationApiInsert, dD as ExternalAgentRelationApiInsertSchema, dC as ExternalAgentRelationInsertSchema, eG as ExternalAgentSelectSchema, eI as ExternalAgentUpdateSchema, cb as FetchConfig, f3 as FetchConfigSchema, ca as FetchDefinition, f4 as FetchDefinitionSchema, at as FileBase, aw as FilePart, au as FileWithBytes, av as FileWithUri, cS as FullGraphAgentInsert, F as FullGraphAgentInsertSchema, fq as FullGraphDefinitionSchema, fE as FullProjectDefinitionSchema, bk as GetTaskPushNotificationConfigRequest, bx as GetTaskPushNotificationConfigResponse, bw as GetTaskPushNotificationConfigSuccessResponse, bh as GetTaskRequest, br as GetTaskResponse, bq as GetTaskSuccessResponse, c as GraphStopWhen, G as GraphStopWhenSchema, fr as GraphWithinContextOfProjectSchema, aE as HTTPAuthSecurityScheme, fF as HeadersScopeSchema, fM as IdParamsSchema, aI as ImplicitOAuthFlow, cU as InternalAgentDefinition, aX as InternalError, b1 as InvalidAgentResponseError, aW as InvalidParamsError, aU as InvalidRequestError, aT as JSONParseError, bc as JSONRPCError, be as JSONRPCErrorResponse, ba as JSONRPCMessage, bb as JSONRPCRequest, bd as JSONRPCResult, cQ as LedgerArtifactApiInsert, fl as LedgerArtifactApiInsertSchema, cP as LedgerArtifactApiSelect, fk as LedgerArtifactApiSelectSchema, cR as LedgerArtifactApiUpdate, fm as LedgerArtifactApiUpdateSchema, cN as LedgerArtifactInsert, fi as LedgerArtifactInsertSchema, fh as LedgerArtifactSelectSchema, cO as LedgerArtifactUpdate, fj as LedgerArtifactUpdateSchema, ft as ListResponseSchema, dj as MAX_ID_LENGTH, dh as MCPServerType, e_ as MCPToolConfigSchema, di as MIN_ID_LENGTH, da as McpAuthType, db as McpServerAuth, dd as McpServerCapabilities, de as McpToolDefinition, dY as McpToolDefinitionSchema, eZ as McpToolSchema, dc as McpTransportConfig, dW as McpTransportConfigSchema, aO as Message, c5 as MessageApiInsert, e9 as MessageApiInsertSchema, c4 as MessageApiSelect, e8 as MessageApiSelectSchema, c6 as MessageApiUpdate, ea as MessageApiUpdateSchema, e6 as MessageInsertSchema, d2 as MessageMode, bA as MessagePart, d1 as MessageRole, c3 as MessageSelect, e5 as MessageSelectSchema, b8 as MessageSendConfiguration, b9 as MessageSendParams, d0 as MessageType, e7 as MessageUpdateSchema, aV as MethodNotFoundError, dm as ModelSchema, e as ModelSettings, M as ModelSettingsSchema, d3 as Models, aK as OAuth2SecurityScheme, aF as OAuthFlows, aL as OpenIdConnectSecurityScheme, c_ as Pagination, fN as PaginationQueryParamsSchema, fs as PaginationSchema, P as Part, ar as PartBase, aJ as PasswordOAuthFlow, cY as ProjectApiInsert, fC as ProjectApiInsertSchema, cX as ProjectApiSelect, fB as ProjectApiSelectSchema, cZ as ProjectApiUpdate, fD as ProjectApiUpdateSchema, fz as ProjectInsertSchema, dn as ProjectModelSchema, d4 as ProjectModels, fy as ProjectSelectSchema, fA as ProjectUpdateSchema, b3 as PushNotificationAuthenticationInfo, b4 as PushNotificationConfig, a_ as PushNotificationNotSupportedError, fx as RemovedResponseSchema, aM as SecurityScheme, aC as SecuritySchemeBase, bf as SendMessageRequest, bn as SendMessageResponse, bm as SendMessageSuccessResponse, bg as SendStreamingMessageRequest, bp as SendStreamingMessageResponse, bo as SendStreamingMessageSuccessResponse, bj as SetTaskPushNotificationConfigRequest, bv as SetTaskPushNotificationConfigResponse, bu as SetTaskPushNotificationConfigSuccessResponse, fu as SingleResponseSchema, d6 as StatusComponent, fn as StatusComponentSchema, fo as StatusUpdateSchema, d5 as StatusUpdateSettings, b as StopWhen, S as StopWhenSchema, c$ as SummaryEvent, df as TOOL_STATUS_VALUES, aQ as Task, bR as TaskApiInsert, dO as TaskApiInsertSchema, bQ as TaskApiSelect, dN as TaskApiSelectSchema, bS as TaskApiUpdate, dP as TaskApiUpdateSchema, bB as TaskArtifact, aS as TaskArtifactUpdateEvent, b6 as TaskIdParams, dL as TaskInsertSchema, aZ as TaskNotCancelableError, aY as TaskNotFoundError, b5 as TaskPushNotificationConfig, b7 as TaskQueryParams, bX as TaskRelationApiInsert, dU as TaskRelationApiInsertSchema, bW as TaskRelationApiSelect, dT as TaskRelationApiSelectSchema, bY as TaskRelationApiUpdate, dV as TaskRelationApiUpdateSchema, bU as TaskRelationInsert, dR as TaskRelationInsertSchema, bT as TaskRelationSelect, dQ as TaskRelationSelectSchema, bV as TaskRelationUpdate, dS as TaskRelationUpdateSchema, bl as TaskResubscriptionRequest, dK as TaskSelectSchema, ay as TaskState, aP as TaskStatus, aR as TaskStatusUpdateEvent, bP as TaskUpdate, dM as TaskUpdateSchema, fL as TenantIdParamsSchema, fG as TenantParamsSchema, fJ as TenantProjectGraphIdParamsSchema, fI as TenantProjectGraphParamsSchema, fK as TenantProjectIdParamsSchema, fH as TenantProjectParamsSchema, as as TextPart, b_ as ToolApiInsert, f1 as ToolApiInsertSchema, bZ as ToolApiSelect, f0 as ToolApiSelectSchema, b$ as ToolApiUpdate, f2 as ToolApiUpdateSchema, cW as ToolDefinition, d_ as ToolInsertSchema, dZ as ToolSelectSchema, dX as ToolStatusSchema, e$ as ToolUpdateSchema, dk as URL_SAFE_ID_PATTERN, a$ as UnsupportedOperationError, dg as VALID_RELATION_TYPES, dl as resourceIdSchema } from './utility-BMAHFZX6.js';
2
+ import { n as CredentialReferenceApiInsert, o as ContextConfigSelect, h as ContextFetchDefinition, g as MCPTransportType, p as MCPToolConfig, q as GraphScopeConfig, C as ConversationHistoryConfig, r as ProjectScopeConfig, s as PaginationConfig, t as AgentGraphInsert, u as AgentGraphUpdate, v as FullGraphDefinition, w as AgentScopeConfig, x as AgentRelationInsert, E as ExternalAgentRelationInsert, y as AgentRelationUpdate, z as AgentToolRelationUpdate, i as ToolMcpConfig, j as ToolServerCapabilities, B as AgentInsert, D as AgentUpdate, H as AgentSelect, I as ApiKeySelect, J as ApiKeyInsert, K as ApiKeyUpdate, L as CreateApiKeyParams, N as ApiKeyCreateResult, O as ArtifactComponentSelect, Q as ArtifactComponentInsert, R as ArtifactComponentUpdate, U as ContextCacheSelect, V as ContextCacheInsert, W as ContextConfigInsert, X as ContextConfigUpdate, Y as ConversationSelect, Z as ConversationInsert, k as ConversationMetadata, _ as ConversationUpdate, $ as CredentialReferenceSelect, a0 as ToolSelect, a1 as CredentialReferenceInsert, a2 as CredentialReferenceUpdate, a3 as DataComponentSelect, a4 as DataComponentInsert, a5 as DataComponentUpdate, a6 as ExternalAgentInsert, a7 as ExternalAgentSelect, a8 as ExternalAgentUpdate, a9 as Artifact, aa as LedgerArtifactSelect, m as MessageMetadata, l as MessageContent, ab as MessageVisibility, ac as MessageInsert, ad as MessageUpdate, ae as FullProjectDefinition, af as ProjectInfo, ag as ProjectSelect, ah as PaginationResult, ai as ProjectResourceCounts, aj as ProjectInsert, ak as ProjectUpdate, al as TaskInsert, T as TaskMetadataConfig, am as TaskSelect, an as McpTool, ao as ToolInsert, ap as ToolUpdate, f as CredentialStoreType, aq as ExecutionContext } from './utility-6UlHR5nQ.js';
3
+ export { b2 as A2AError, by as A2ARequest, bz as A2AResponse, aD as APIKeySecurityScheme, bD as AgentApiInsert, dt as AgentApiInsertSchema, bC as AgentApiSelect, ds as AgentApiSelectSchema, bE as AgentApiUpdate, du as AgentApiUpdateSchema, cw as AgentArtifactComponentApiInsert, eE as AgentArtifactComponentApiInsertSchema, cv as AgentArtifactComponentApiSelect, eD as AgentArtifactComponentApiSelectSchema, cx as AgentArtifactComponentApiUpdate, eF as AgentArtifactComponentApiUpdateSchema, ct as AgentArtifactComponentInsert, eB as AgentArtifactComponentInsertSchema, cs as AgentArtifactComponentSelect, eA as AgentArtifactComponentSelectSchema, cu as AgentArtifactComponentUpdate, eC as AgentArtifactComponentUpdateSchema, az as AgentCapabilities, aN as AgentCard, d8 as AgentConversationHistoryConfig, cn as AgentDataComponentApiInsert, es as AgentDataComponentApiInsertSchema, cm as AgentDataComponentApiSelect, er as AgentDataComponentApiSelectSchema, co as AgentDataComponentApiUpdate, et as AgentDataComponentApiUpdateSchema, ck as AgentDataComponentInsert, ep as AgentDataComponentInsertSchema, cj as AgentDataComponentSelect, eo as AgentDataComponentSelectSchema, cl as AgentDataComponentUpdate, eq as AgentDataComponentUpdateSchema, cV as AgentDefinition, bN as AgentGraphApiInsert, dI as AgentGraphApiInsertSchema, bM as AgentGraphApiSelect, dH as AgentGraphApiSelectSchema, bO as AgentGraphApiUpdate, dJ as AgentGraphApiUpdateSchema, dF as AgentGraphInsertSchema, bL as AgentGraphSelect, dE as AgentGraphSelectSchema, dG as AgentGraphUpdateSchema, dq as AgentInsertSchema, aA as AgentProvider, bH as AgentRelationApiInsert, dz as AgentRelationApiInsertSchema, bG as AgentRelationApiSelect, dy as AgentRelationApiSelectSchema, bI as AgentRelationApiUpdate, dA as AgentRelationApiUpdateSchema, dw as AgentRelationInsertSchema, bJ as AgentRelationQuery, dB as AgentRelationQuerySchema, bF as AgentRelationSelect, dv as AgentRelationSelectSchema, dx as AgentRelationUpdateSchema, dp as AgentSelectSchema, aB as AgentSkill, d as AgentStopWhen, a as AgentStopWhenSchema, cL as AgentToolRelationApiInsert, ff as AgentToolRelationApiInsertSchema, cK as AgentToolRelationApiSelect, fe as AgentToolRelationApiSelectSchema, cM as AgentToolRelationApiUpdate, fg as AgentToolRelationApiUpdateSchema, cJ as AgentToolRelationInsert, fc as AgentToolRelationInsertSchema, cI as AgentToolRelationSelect, fb as AgentToolRelationSelectSchema, fd as AgentToolRelationUpdateSchema, dr as AgentUpdateSchema, eM as AllAgentSchema, cB as AllAgentSelect, cF as ApiKeyApiCreationResponse, eR as ApiKeyApiCreationResponseSchema, cD as ApiKeyApiInsert, eS as ApiKeyApiInsertSchema, cC as ApiKeyApiSelect, eQ as ApiKeyApiSelectSchema, cE as ApiKeyApiUpdate, A as ApiKeyApiUpdateSchema, eO as ApiKeyInsertSchema, eN as ApiKeySelectSchema, eP as ApiKeyUpdateSchema, cq as ArtifactComponentApiInsert, ey as ArtifactComponentApiInsertSchema, cp as ArtifactComponentApiSelect, ex as ArtifactComponentApiSelectSchema, cr as ArtifactComponentApiUpdate, ez as ArtifactComponentApiUpdateSchema, ev as ArtifactComponentInsertSchema, eu as ArtifactComponentSelectSchema, ew as ArtifactComponentUpdateSchema, aG as AuthorizationCodeOAuthFlow, cT as CanUseItem, fp as CanUseItemSchema, bi as CancelTaskRequest, bt as CancelTaskResponse, bs as CancelTaskSuccessResponse, aH as ClientCredentialsOAuthFlow, b0 as ContentTypeNotSupportedError, ce as ContextCacheApiInsert, ef as ContextCacheApiInsertSchema, cd as ContextCacheApiSelect, ee as ContextCacheApiSelectSchema, cf as ContextCacheApiUpdate, eg as ContextCacheApiUpdateSchema, d9 as ContextCacheEntry, ec as ContextCacheInsertSchema, eb as ContextCacheSelectSchema, cc as ContextCacheUpdate, ed as ContextCacheUpdateSchema, c8 as ContextConfigApiInsert, f9 as ContextConfigApiInsertSchema, c7 as ContextConfigApiSelect, f8 as ContextConfigApiSelectSchema, c9 as ContextConfigApiUpdate, fa as ContextConfigApiUpdateSchema, f6 as ContextConfigInsertSchema, f5 as ContextConfigSelectSchema, f7 as ContextConfigUpdateSchema, c1 as ConversationApiInsert, e3 as ConversationApiInsertSchema, c0 as ConversationApiSelect, e2 as ConversationApiSelectSchema, c2 as ConversationApiUpdate, e4 as ConversationApiUpdateSchema, e0 as ConversationInsertSchema, d7 as ConversationScopeOptions, d$ as ConversationSelectSchema, e1 as ConversationUpdateSchema, eX as CredentialReferenceApiInsertSchema, cG as CredentialReferenceApiSelect, eW as CredentialReferenceApiSelectSchema, cH as CredentialReferenceApiUpdate, eY as CredentialReferenceApiUpdateSchema, eU as CredentialReferenceInsertSchema, eT as CredentialReferenceSelectSchema, eV as CredentialReferenceUpdateSchema, ch as DataComponentApiInsert, em as DataComponentApiInsertSchema, cg as DataComponentApiSelect, el as DataComponentApiSelectSchema, ci as DataComponentApiUpdate, en as DataComponentApiUpdateSchema, ej as DataComponentBaseSchema, ei as DataComponentInsertSchema, eh as DataComponentSelectSchema, ek as DataComponentUpdateSchema, ax as DataPart, fv as ErrorResponseSchema, fw as ExistsResponseSchema, cz as ExternalAgentApiInsert, eK as ExternalAgentApiInsertSchema, cy as ExternalAgentApiSelect, eJ as ExternalAgentApiSelectSchema, cA as ExternalAgentApiUpdate, eL as ExternalAgentApiUpdateSchema, eH as ExternalAgentInsertSchema, bK as ExternalAgentRelationApiInsert, dD as ExternalAgentRelationApiInsertSchema, dC as ExternalAgentRelationInsertSchema, eG as ExternalAgentSelectSchema, eI as ExternalAgentUpdateSchema, cb as FetchConfig, f3 as FetchConfigSchema, ca as FetchDefinition, f4 as FetchDefinitionSchema, at as FileBase, aw as FilePart, au as FileWithBytes, av as FileWithUri, cS as FullGraphAgentInsert, F as FullGraphAgentInsertSchema, fq as FullGraphDefinitionSchema, fE as FullProjectDefinitionSchema, bk as GetTaskPushNotificationConfigRequest, bx as GetTaskPushNotificationConfigResponse, bw as GetTaskPushNotificationConfigSuccessResponse, bh as GetTaskRequest, br as GetTaskResponse, bq as GetTaskSuccessResponse, c as GraphStopWhen, G as GraphStopWhenSchema, fr as GraphWithinContextOfProjectSchema, aE as HTTPAuthSecurityScheme, fF as HeadersScopeSchema, fM as IdParamsSchema, aI as ImplicitOAuthFlow, cU as InternalAgentDefinition, aX as InternalError, b1 as InvalidAgentResponseError, aW as InvalidParamsError, aU as InvalidRequestError, aT as JSONParseError, bc as JSONRPCError, be as JSONRPCErrorResponse, ba as JSONRPCMessage, bb as JSONRPCRequest, bd as JSONRPCResult, cQ as LedgerArtifactApiInsert, fl as LedgerArtifactApiInsertSchema, cP as LedgerArtifactApiSelect, fk as LedgerArtifactApiSelectSchema, cR as LedgerArtifactApiUpdate, fm as LedgerArtifactApiUpdateSchema, cN as LedgerArtifactInsert, fi as LedgerArtifactInsertSchema, fh as LedgerArtifactSelectSchema, cO as LedgerArtifactUpdate, fj as LedgerArtifactUpdateSchema, ft as ListResponseSchema, dj as MAX_ID_LENGTH, dh as MCPServerType, e_ as MCPToolConfigSchema, di as MIN_ID_LENGTH, da as McpAuthType, db as McpServerAuth, dd as McpServerCapabilities, de as McpToolDefinition, dY as McpToolDefinitionSchema, eZ as McpToolSchema, dc as McpTransportConfig, dW as McpTransportConfigSchema, aO as Message, c5 as MessageApiInsert, e9 as MessageApiInsertSchema, c4 as MessageApiSelect, e8 as MessageApiSelectSchema, c6 as MessageApiUpdate, ea as MessageApiUpdateSchema, e6 as MessageInsertSchema, d2 as MessageMode, bA as MessagePart, d1 as MessageRole, c3 as MessageSelect, e5 as MessageSelectSchema, b8 as MessageSendConfiguration, b9 as MessageSendParams, d0 as MessageType, e7 as MessageUpdateSchema, aV as MethodNotFoundError, dm as ModelSchema, e as ModelSettings, M as ModelSettingsSchema, d3 as Models, aK as OAuth2SecurityScheme, aF as OAuthFlows, aL as OpenIdConnectSecurityScheme, c_ as Pagination, fN as PaginationQueryParamsSchema, fs as PaginationSchema, P as Part, ar as PartBase, aJ as PasswordOAuthFlow, cY as ProjectApiInsert, fC as ProjectApiInsertSchema, cX as ProjectApiSelect, fB as ProjectApiSelectSchema, cZ as ProjectApiUpdate, fD as ProjectApiUpdateSchema, fz as ProjectInsertSchema, dn as ProjectModelSchema, d4 as ProjectModels, fy as ProjectSelectSchema, fA as ProjectUpdateSchema, b3 as PushNotificationAuthenticationInfo, b4 as PushNotificationConfig, a_ as PushNotificationNotSupportedError, fx as RemovedResponseSchema, aM as SecurityScheme, aC as SecuritySchemeBase, bf as SendMessageRequest, bn as SendMessageResponse, bm as SendMessageSuccessResponse, bg as SendStreamingMessageRequest, bp as SendStreamingMessageResponse, bo as SendStreamingMessageSuccessResponse, bj as SetTaskPushNotificationConfigRequest, bv as SetTaskPushNotificationConfigResponse, bu as SetTaskPushNotificationConfigSuccessResponse, fu as SingleResponseSchema, d6 as StatusComponent, fn as StatusComponentSchema, fo as StatusUpdateSchema, d5 as StatusUpdateSettings, b as StopWhen, S as StopWhenSchema, c$ as SummaryEvent, df as TOOL_STATUS_VALUES, aQ as Task, bR as TaskApiInsert, dO as TaskApiInsertSchema, bQ as TaskApiSelect, dN as TaskApiSelectSchema, bS as TaskApiUpdate, dP as TaskApiUpdateSchema, bB as TaskArtifact, aS as TaskArtifactUpdateEvent, b6 as TaskIdParams, dL as TaskInsertSchema, aZ as TaskNotCancelableError, aY as TaskNotFoundError, b5 as TaskPushNotificationConfig, b7 as TaskQueryParams, bX as TaskRelationApiInsert, dU as TaskRelationApiInsertSchema, bW as TaskRelationApiSelect, dT as TaskRelationApiSelectSchema, bY as TaskRelationApiUpdate, dV as TaskRelationApiUpdateSchema, bU as TaskRelationInsert, dR as TaskRelationInsertSchema, bT as TaskRelationSelect, dQ as TaskRelationSelectSchema, bV as TaskRelationUpdate, dS as TaskRelationUpdateSchema, bl as TaskResubscriptionRequest, dK as TaskSelectSchema, ay as TaskState, aP as TaskStatus, aR as TaskStatusUpdateEvent, bP as TaskUpdate, dM as TaskUpdateSchema, fL as TenantIdParamsSchema, fG as TenantParamsSchema, fJ as TenantProjectGraphIdParamsSchema, fI as TenantProjectGraphParamsSchema, fK as TenantProjectIdParamsSchema, fH as TenantProjectParamsSchema, as as TextPart, b_ as ToolApiInsert, f1 as ToolApiInsertSchema, bZ as ToolApiSelect, f0 as ToolApiSelectSchema, b$ as ToolApiUpdate, f2 as ToolApiUpdateSchema, cW as ToolDefinition, d_ as ToolInsertSchema, dZ as ToolSelectSchema, dX as ToolStatusSchema, e$ as ToolUpdateSchema, dk as URL_SAFE_ID_PATTERN, a$ as UnsupportedOperationError, dg as VALID_RELATION_TYPES, dl as resourceIdSchema } from './utility-6UlHR5nQ.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-D0E2bG9V.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-D0E2bG9V.js';
7
+ import { s as schema } from './schema-BYR5XAeI.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-BYR5XAeI.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';
@@ -14,8 +14,10 @@ import { ValidateFunction } from 'ajv';
14
14
  import { Context, Next } from 'hono';
15
15
  import { z as z$1 } from '@hono/zod-openapi';
16
16
  import { HTTPException } from 'hono/http-exception';
17
+ export { convertZodToJsonSchema, convertZodToJsonSchemaWithPreview, extractPreviewFields, isZodSchema, preview } from './utils/schema-conversion.js';
17
18
  import { Span, Tracer } from '@opentelemetry/api';
18
19
  export { generateIdFromName, isExternalAgent, isInternalAgent, isValidResourceId, validateAgentRelationships, validateAndTypeGraphData, validateArtifactComponentReferences, validateDataComponentReferences, validateGraphStructure, validateToolReferences } from './validation/index.js';
20
+ export { P as PropsValidationResult, v as validatePropsAsJsonSchema } from './props-validation-BMR1qNiy.js';
19
21
  import 'drizzle-zod';
20
22
  import 'drizzle-orm/sqlite-core';
21
23
  import 'drizzle-orm';
@@ -826,14 +828,13 @@ declare class CredentialStuffer {
826
828
  declare const getAgentGraphById: (db: DatabaseClient) => (params: {
827
829
  scopes: GraphScopeConfig;
828
830
  }) => Promise<{
829
- tenantId: string;
830
- projectId: string;
831
- id: string;
832
831
  name: string;
833
- description: string | null;
832
+ id: string;
834
833
  createdAt: string;
835
834
  updatedAt: string;
836
- defaultAgentId: string | null;
835
+ projectId: string;
836
+ tenantId: string;
837
+ description: string | null;
837
838
  models: {
838
839
  base?: {
839
840
  model?: string | undefined;
@@ -851,6 +852,7 @@ declare const getAgentGraphById: (db: DatabaseClient) => (params: {
851
852
  stopWhen: {
852
853
  transferCountIs?: number | undefined;
853
854
  } | null;
855
+ defaultAgentId: string | null;
854
856
  contextConfigId: string | null;
855
857
  statusUpdates: {
856
858
  enabled?: boolean | undefined;
@@ -872,14 +874,13 @@ declare const getAgentGraphById: (db: DatabaseClient) => (params: {
872
874
  declare const getAgentGraphWithDefaultAgent: (db: DatabaseClient) => (params: {
873
875
  scopes: GraphScopeConfig;
874
876
  }) => Promise<{
875
- tenantId: string;
876
- projectId: string;
877
- id: string;
878
877
  name: string;
879
- description: string | null;
878
+ id: string;
880
879
  createdAt: string;
881
880
  updatedAt: string;
882
- defaultAgentId: string | null;
881
+ projectId: string;
882
+ tenantId: string;
883
+ description: string | null;
883
884
  models: {
884
885
  base?: {
885
886
  model?: string | undefined;
@@ -897,6 +898,7 @@ declare const getAgentGraphWithDefaultAgent: (db: DatabaseClient) => (params: {
897
898
  stopWhen: {
898
899
  transferCountIs?: number | undefined;
899
900
  } | null;
901
+ defaultAgentId: string | null;
900
902
  contextConfigId: string | null;
901
903
  statusUpdates: {
902
904
  enabled?: boolean | undefined;
@@ -915,16 +917,13 @@ declare const getAgentGraphWithDefaultAgent: (db: DatabaseClient) => (params: {
915
917
  } | null;
916
918
  graphPrompt: string | null;
917
919
  defaultAgent: {
918
- tenantId: string;
919
- projectId: string;
920
- id: string;
921
920
  name: string;
922
- description: string;
923
- prompt: string;
924
- graphId: string;
921
+ id: string;
925
922
  createdAt: string;
926
923
  updatedAt: string;
927
- conversationHistoryConfig: ConversationHistoryConfig | null;
924
+ projectId: string;
925
+ tenantId: string;
926
+ description: string;
928
927
  models: {
929
928
  base?: {
930
929
  model?: string | undefined;
@@ -942,19 +941,21 @@ declare const getAgentGraphWithDefaultAgent: (db: DatabaseClient) => (params: {
942
941
  stopWhen: {
943
942
  stepCountIs?: number | undefined;
944
943
  } | null;
944
+ graphId: string;
945
+ prompt: string;
946
+ conversationHistoryConfig: ConversationHistoryConfig | null;
945
947
  } | null;
946
948
  } | null>;
947
949
  declare const listAgentGraphs: (db: DatabaseClient) => (params: {
948
950
  scopes: ProjectScopeConfig;
949
951
  }) => Promise<{
950
- tenantId: string;
951
- projectId: string;
952
- id: string;
953
952
  name: string;
954
- description: string | null;
953
+ id: string;
955
954
  createdAt: string;
956
955
  updatedAt: string;
957
- defaultAgentId: string | null;
956
+ projectId: string;
957
+ tenantId: string;
958
+ description: string | null;
958
959
  models: {
959
960
  base?: {
960
961
  model?: string | undefined;
@@ -972,6 +973,7 @@ declare const listAgentGraphs: (db: DatabaseClient) => (params: {
972
973
  stopWhen: {
973
974
  transferCountIs?: number | undefined;
974
975
  } | null;
976
+ defaultAgentId: string | null;
975
977
  contextConfigId: string | null;
976
978
  statusUpdates: {
977
979
  enabled?: boolean | undefined;
@@ -1046,14 +1048,13 @@ declare const listAgentGraphsPaginated: (db: DatabaseClient) => (params: {
1046
1048
  };
1047
1049
  }>;
1048
1050
  declare const createAgentGraph: (db: DatabaseClient) => (data: AgentGraphInsert) => Promise<{
1049
- tenantId: string;
1050
- projectId: string;
1051
- id: string;
1052
1051
  name: string;
1053
- description: string | null;
1052
+ id: string;
1054
1053
  createdAt: string;
1055
1054
  updatedAt: string;
1056
- defaultAgentId: string | null;
1055
+ projectId: string;
1056
+ tenantId: string;
1057
+ description: string | null;
1057
1058
  models: {
1058
1059
  base?: {
1059
1060
  model?: string | undefined;
@@ -1071,6 +1072,7 @@ declare const createAgentGraph: (db: DatabaseClient) => (data: AgentGraphInsert)
1071
1072
  stopWhen: {
1072
1073
  transferCountIs?: number | undefined;
1073
1074
  } | null;
1075
+ defaultAgentId: string | null;
1074
1076
  contextConfigId: string | null;
1075
1077
  statusUpdates: {
1076
1078
  enabled?: boolean | undefined;
@@ -1093,14 +1095,13 @@ declare const updateAgentGraph: (db: DatabaseClient) => (params: {
1093
1095
  scopes: GraphScopeConfig;
1094
1096
  data: AgentGraphUpdate;
1095
1097
  }) => Promise<{
1096
- tenantId: string;
1097
- projectId: string;
1098
- id: string;
1099
1098
  name: string;
1100
- description: string | null;
1099
+ id: string;
1101
1100
  createdAt: string;
1102
1101
  updatedAt: string;
1103
- defaultAgentId: string | null;
1102
+ projectId: string;
1103
+ tenantId: string;
1104
+ description: string | null;
1104
1105
  models: {
1105
1106
  base?: {
1106
1107
  model?: string | undefined;
@@ -1118,6 +1119,7 @@ declare const updateAgentGraph: (db: DatabaseClient) => (params: {
1118
1119
  stopWhen: {
1119
1120
  transferCountIs?: number | undefined;
1120
1121
  } | null;
1122
+ defaultAgentId: string | null;
1121
1123
  contextConfigId: string | null;
1122
1124
  statusUpdates: {
1123
1125
  enabled?: boolean | undefined;
@@ -1172,12 +1174,12 @@ declare const getAgentRelationById: (db: DatabaseClient) => (params: {
1172
1174
  scopes: GraphScopeConfig;
1173
1175
  relationId: string;
1174
1176
  }) => Promise<{
1175
- tenantId: string;
1176
- projectId: string;
1177
1177
  id: string;
1178
- graphId: string;
1179
1178
  createdAt: string;
1180
1179
  updatedAt: string;
1180
+ projectId: string;
1181
+ tenantId: string;
1182
+ graphId: string;
1181
1183
  sourceAgentId: string;
1182
1184
  targetAgentId: string | null;
1183
1185
  externalAgentId: string | null;
@@ -1209,12 +1211,12 @@ declare const listAgentRelations: (db: DatabaseClient) => (params: {
1209
1211
  declare const getAgentRelations: (db: DatabaseClient) => (params: {
1210
1212
  scopes: AgentScopeConfig;
1211
1213
  }) => Promise<{
1212
- tenantId: string;
1213
- projectId: string;
1214
1214
  id: string;
1215
- graphId: string;
1216
1215
  createdAt: string;
1217
1216
  updatedAt: string;
1217
+ projectId: string;
1218
+ tenantId: string;
1219
+ graphId: string;
1218
1220
  sourceAgentId: string;
1219
1221
  targetAgentId: string | null;
1220
1222
  externalAgentId: string | null;
@@ -1223,12 +1225,12 @@ declare const getAgentRelations: (db: DatabaseClient) => (params: {
1223
1225
  declare const getAgentRelationsByGraph: (db: DatabaseClient) => (params: {
1224
1226
  scopes: GraphScopeConfig;
1225
1227
  }) => Promise<{
1226
- tenantId: string;
1227
- projectId: string;
1228
1228
  id: string;
1229
- graphId: string;
1230
1229
  createdAt: string;
1231
1230
  updatedAt: string;
1231
+ projectId: string;
1232
+ tenantId: string;
1233
+ graphId: string;
1232
1234
  sourceAgentId: string;
1233
1235
  targetAgentId: string | null;
1234
1236
  externalAgentId: string | null;
@@ -1328,12 +1330,12 @@ declare const getRelatedAgentsForGraph: (db: DatabaseClient) => (params: {
1328
1330
  }[];
1329
1331
  }>;
1330
1332
  declare const createAgentRelation: (db: DatabaseClient) => (params: AgentRelationInsert) => Promise<{
1331
- tenantId: string;
1332
- projectId: string;
1333
1333
  id: string;
1334
- graphId: string;
1335
1334
  createdAt: string;
1336
1335
  updatedAt: string;
1336
+ projectId: string;
1337
+ tenantId: string;
1338
+ graphId: string;
1337
1339
  sourceAgentId: string;
1338
1340
  targetAgentId: string | null;
1339
1341
  externalAgentId: string | null;
@@ -1349,12 +1351,12 @@ declare const getAgentRelationByParams: (db: DatabaseClient) => (params: {
1349
1351
  externalAgentId?: string;
1350
1352
  relationType: string;
1351
1353
  }) => Promise<{
1352
- tenantId: string;
1353
- projectId: string;
1354
1354
  id: string;
1355
- graphId: string;
1356
1355
  createdAt: string;
1357
1356
  updatedAt: string;
1357
+ projectId: string;
1358
+ tenantId: string;
1359
+ graphId: string;
1358
1360
  sourceAgentId: string;
1359
1361
  targetAgentId: string | null;
1360
1362
  externalAgentId: string | null;
@@ -1364,24 +1366,24 @@ declare const getAgentRelationByParams: (db: DatabaseClient) => (params: {
1364
1366
  * Upsert agent relation (create if it doesn't exist, no-op if it does)
1365
1367
  */
1366
1368
  declare const upsertAgentRelation: (db: DatabaseClient) => (params: AgentRelationInsert) => Promise<{
1367
- tenantId: string;
1368
- projectId: string;
1369
1369
  id: string;
1370
- graphId: string;
1371
1370
  createdAt: string;
1372
1371
  updatedAt: string;
1372
+ projectId: string;
1373
+ tenantId: string;
1374
+ graphId: string;
1373
1375
  sourceAgentId: string;
1374
1376
  targetAgentId: string | null;
1375
1377
  externalAgentId: string | null;
1376
1378
  relationType: string | null;
1377
1379
  }>;
1378
1380
  declare const createExternalAgentRelation: (db: DatabaseClient) => (params: ExternalAgentRelationInsert) => Promise<{
1379
- tenantId: string;
1380
- projectId: string;
1381
1381
  id: string;
1382
- graphId: string;
1383
1382
  createdAt: string;
1384
1383
  updatedAt: string;
1384
+ projectId: string;
1385
+ tenantId: string;
1386
+ graphId: string;
1385
1387
  sourceAgentId: string;
1386
1388
  targetAgentId: string | null;
1387
1389
  externalAgentId: string | null;
@@ -1392,12 +1394,12 @@ declare const updateAgentRelation: (db: DatabaseClient) => (params: {
1392
1394
  relationId: string;
1393
1395
  data: AgentRelationUpdate;
1394
1396
  }) => Promise<{
1395
- tenantId: string;
1396
- projectId: string;
1397
1397
  id: string;
1398
- graphId: string;
1399
1398
  createdAt: string;
1400
1399
  updatedAt: string;
1400
+ projectId: string;
1401
+ tenantId: string;
1402
+ graphId: string;
1401
1403
  sourceAgentId: string;
1402
1404
  targetAgentId: string | null;
1403
1405
  externalAgentId: string | null;
@@ -1420,32 +1422,32 @@ declare const createAgentToolRelation: (db: DatabaseClient) => (params: {
1420
1422
  headers?: Record<string, string> | null;
1421
1423
  };
1422
1424
  }) => Promise<{
1423
- tenantId: string;
1424
- projectId: string;
1425
+ headers: Record<string, string> | null;
1425
1426
  id: string;
1426
- graphId: string;
1427
1427
  createdAt: string;
1428
1428
  updatedAt: string;
1429
- headers: Record<string, string> | null;
1430
- toolId: string;
1429
+ projectId: string;
1430
+ tenantId: string;
1431
+ graphId: string;
1431
1432
  selectedTools: string[] | null;
1432
1433
  agentId: string;
1434
+ toolId: string;
1433
1435
  }>;
1434
1436
  declare const updateAgentToolRelation: (db: DatabaseClient) => (params: {
1435
1437
  scopes: GraphScopeConfig;
1436
1438
  relationId: string;
1437
1439
  data: AgentToolRelationUpdate;
1438
1440
  }) => Promise<{
1439
- tenantId: string;
1440
- projectId: string;
1441
+ headers: Record<string, string> | null;
1441
1442
  id: string;
1442
- graphId: string;
1443
1443
  createdAt: string;
1444
1444
  updatedAt: string;
1445
- headers: Record<string, string> | null;
1446
- toolId: string;
1445
+ projectId: string;
1446
+ tenantId: string;
1447
+ graphId: string;
1447
1448
  selectedTools: string[] | null;
1448
1449
  agentId: string;
1450
+ toolId: string;
1449
1451
  }>;
1450
1452
  declare const deleteAgentToolRelation: (db: DatabaseClient) => (params: {
1451
1453
  scopes: GraphScopeConfig;
@@ -1458,16 +1460,16 @@ declare const getAgentToolRelationById: (db: DatabaseClient) => (params: {
1458
1460
  scopes: AgentScopeConfig;
1459
1461
  relationId: string;
1460
1462
  }) => Promise<{
1461
- tenantId: string;
1462
- projectId: string;
1463
+ headers: Record<string, string> | null;
1463
1464
  id: string;
1464
- graphId: string;
1465
1465
  createdAt: string;
1466
1466
  updatedAt: string;
1467
- headers: Record<string, string> | null;
1468
- toolId: string;
1467
+ projectId: string;
1468
+ tenantId: string;
1469
+ graphId: string;
1469
1470
  selectedTools: string[] | null;
1470
1471
  agentId: string;
1472
+ toolId: string;
1471
1473
  } | undefined>;
1472
1474
  declare const getAgentToolRelationByAgent: (db: DatabaseClient) => (params: {
1473
1475
  scopes: AgentScopeConfig;
@@ -1636,16 +1638,13 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
1636
1638
  scopes: GraphScopeConfig;
1637
1639
  agentId: string;
1638
1640
  }) => Promise<{
1639
- tenantId: string;
1640
- projectId: string;
1641
- id: string;
1642
1641
  name: string;
1643
- description: string;
1644
- prompt: string;
1645
- graphId: string;
1642
+ id: string;
1646
1643
  createdAt: string;
1647
1644
  updatedAt: string;
1648
- conversationHistoryConfig: ConversationHistoryConfig | null;
1645
+ projectId: string;
1646
+ tenantId: string;
1647
+ description: string;
1649
1648
  models: {
1650
1649
  base?: {
1651
1650
  model?: string | undefined;
@@ -1663,20 +1662,20 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
1663
1662
  stopWhen: {
1664
1663
  stepCountIs?: number | undefined;
1665
1664
  } | null;
1665
+ graphId: string;
1666
+ prompt: string;
1667
+ conversationHistoryConfig: ConversationHistoryConfig | null;
1666
1668
  } | undefined>;
1667
1669
  declare const listAgents: (db: DatabaseClient) => (params: {
1668
1670
  scopes: GraphScopeConfig;
1669
1671
  }) => Promise<{
1670
- tenantId: string;
1671
- projectId: string;
1672
- id: string;
1673
1672
  name: string;
1674
- description: string;
1675
- prompt: string;
1676
- graphId: string;
1673
+ id: string;
1677
1674
  createdAt: string;
1678
1675
  updatedAt: string;
1679
- conversationHistoryConfig: ConversationHistoryConfig | null;
1676
+ projectId: string;
1677
+ tenantId: string;
1678
+ description: string;
1680
1679
  models: {
1681
1680
  base?: {
1682
1681
  model?: string | undefined;
@@ -1694,6 +1693,9 @@ declare const listAgents: (db: DatabaseClient) => (params: {
1694
1693
  stopWhen: {
1695
1694
  stepCountIs?: number | undefined;
1696
1695
  } | null;
1696
+ graphId: string;
1697
+ prompt: string;
1698
+ conversationHistoryConfig: ConversationHistoryConfig | null;
1697
1699
  }[]>;
1698
1700
  declare const listAgentsPaginated: (db: DatabaseClient) => (params: {
1699
1701
  scopes: GraphScopeConfig;
@@ -1736,16 +1738,13 @@ declare const listAgentsPaginated: (db: DatabaseClient) => (params: {
1736
1738
  };
1737
1739
  }>;
1738
1740
  declare const createAgent: (db: DatabaseClient) => (params: AgentInsert) => Promise<{
1739
- tenantId: string;
1740
- projectId: string;
1741
- id: string;
1742
1741
  name: string;
1743
- description: string;
1744
- prompt: string;
1745
- graphId: string;
1742
+ id: string;
1746
1743
  createdAt: string;
1747
1744
  updatedAt: string;
1748
- conversationHistoryConfig: ConversationHistoryConfig | null;
1745
+ projectId: string;
1746
+ tenantId: string;
1747
+ description: string;
1749
1748
  models: {
1750
1749
  base?: {
1751
1750
  model?: string | undefined;
@@ -1763,22 +1762,22 @@ declare const createAgent: (db: DatabaseClient) => (params: AgentInsert) => Prom
1763
1762
  stopWhen: {
1764
1763
  stepCountIs?: number | undefined;
1765
1764
  } | null;
1765
+ graphId: string;
1766
+ prompt: string;
1767
+ conversationHistoryConfig: ConversationHistoryConfig | null;
1766
1768
  }>;
1767
1769
  declare const updateAgent: (db: DatabaseClient) => (params: {
1768
1770
  scopes: GraphScopeConfig;
1769
1771
  agentId: string;
1770
1772
  data: AgentUpdate;
1771
1773
  }) => Promise<{
1772
- tenantId: string;
1773
- projectId: string;
1774
- id: string;
1775
1774
  name: string;
1776
- description: string;
1777
- prompt: string;
1778
- graphId: string;
1775
+ id: string;
1779
1776
  createdAt: string;
1780
1777
  updatedAt: string;
1781
- conversationHistoryConfig: ConversationHistoryConfig | null;
1778
+ projectId: string;
1779
+ tenantId: string;
1780
+ description: string;
1782
1781
  models: {
1783
1782
  base?: {
1784
1783
  model?: string | undefined;
@@ -1796,6 +1795,9 @@ declare const updateAgent: (db: DatabaseClient) => (params: {
1796
1795
  stopWhen: {
1797
1796
  stepCountIs?: number | undefined;
1798
1797
  } | null;
1798
+ graphId: string;
1799
+ prompt: string;
1800
+ conversationHistoryConfig: ConversationHistoryConfig | null;
1799
1801
  }>;
1800
1802
  /**
1801
1803
  * Upsert agent (create if it doesn't exist, update if it does)
@@ -1844,49 +1846,49 @@ declare const getApiKeyById: (db: DatabaseClient) => (params: {
1844
1846
  scopes: ProjectScopeConfig;
1845
1847
  id: string;
1846
1848
  }) => Promise<{
1847
- tenantId: string;
1848
- projectId: string;
1849
- id: string;
1850
1849
  name: string | null;
1850
+ id: string;
1851
+ createdAt: string;
1852
+ updatedAt: string;
1853
+ projectId: string;
1854
+ tenantId: string;
1851
1855
  graphId: string;
1852
1856
  publicId: string;
1853
1857
  keyHash: string;
1854
1858
  keyPrefix: string;
1855
1859
  lastUsedAt: string | null;
1856
1860
  expiresAt: string | null;
1857
- createdAt: string;
1858
- updatedAt: string;
1859
1861
  } | undefined>;
1860
1862
  declare const getApiKeyByPublicId: (db: DatabaseClient) => (publicId: string) => Promise<{
1861
- tenantId: string;
1862
- projectId: string;
1863
- id: string;
1864
1863
  name: string | null;
1864
+ id: string;
1865
+ createdAt: string;
1866
+ updatedAt: string;
1867
+ projectId: string;
1868
+ tenantId: string;
1865
1869
  graphId: string;
1866
1870
  publicId: string;
1867
1871
  keyHash: string;
1868
1872
  keyPrefix: string;
1869
1873
  lastUsedAt: string | null;
1870
1874
  expiresAt: string | null;
1871
- createdAt: string;
1872
- updatedAt: string;
1873
1875
  } | undefined>;
1874
1876
  declare const listApiKeys: (db: DatabaseClient) => (params: {
1875
1877
  scopes: ProjectScopeConfig;
1876
1878
  graphId?: string;
1877
1879
  }) => Promise<{
1878
- tenantId: string;
1879
- projectId: string;
1880
- id: string;
1881
1880
  name: string | null;
1881
+ id: string;
1882
+ createdAt: string;
1883
+ updatedAt: string;
1884
+ projectId: string;
1885
+ tenantId: string;
1882
1886
  graphId: string;
1883
1887
  publicId: string;
1884
1888
  keyHash: string;
1885
1889
  keyPrefix: string;
1886
1890
  lastUsedAt: string | null;
1887
1891
  expiresAt: string | null;
1888
- createdAt: string;
1889
- updatedAt: string;
1890
1892
  }[]>;
1891
1893
  declare const listApiKeysPaginated: (db: DatabaseClient) => (params: {
1892
1894
  scopes: ProjectScopeConfig;
@@ -1902,36 +1904,36 @@ declare const listApiKeysPaginated: (db: DatabaseClient) => (params: {
1902
1904
  };
1903
1905
  }>;
1904
1906
  declare const createApiKey: (db: DatabaseClient) => (params: ApiKeyInsert) => Promise<{
1905
- tenantId: string;
1906
- projectId: string;
1907
- id: string;
1908
1907
  name: string | null;
1908
+ id: string;
1909
+ createdAt: string;
1910
+ updatedAt: string;
1911
+ projectId: string;
1912
+ tenantId: string;
1909
1913
  graphId: string;
1910
1914
  publicId: string;
1911
1915
  keyHash: string;
1912
1916
  keyPrefix: string;
1913
1917
  lastUsedAt: string | null;
1914
1918
  expiresAt: string | null;
1915
- createdAt: string;
1916
- updatedAt: string;
1917
1919
  }>;
1918
1920
  declare const updateApiKey: (db: DatabaseClient) => (params: {
1919
1921
  scopes: ProjectScopeConfig;
1920
1922
  id: string;
1921
1923
  data: ApiKeyUpdate;
1922
1924
  }) => Promise<{
1923
- tenantId: string;
1924
- projectId: string;
1925
- id: string;
1926
1925
  name: string | null;
1926
+ id: string;
1927
+ createdAt: string;
1928
+ updatedAt: string;
1929
+ projectId: string;
1930
+ tenantId: string;
1927
1931
  graphId: string;
1928
1932
  publicId: string;
1929
1933
  keyHash: string;
1930
1934
  keyPrefix: string;
1931
1935
  lastUsedAt: string | null;
1932
1936
  expiresAt: string | null;
1933
- createdAt: string;
1934
- updatedAt: string;
1935
1937
  }>;
1936
1938
  declare const deleteApiKey: (db: DatabaseClient) => (params: {
1937
1939
  scopes: ProjectScopeConfig;
@@ -1960,23 +1962,21 @@ declare const getArtifactComponentById: (db: DatabaseClient) => (params: {
1960
1962
  scopes: ProjectScopeConfig;
1961
1963
  id: string;
1962
1964
  }) => Promise<{
1963
- tenantId: string;
1964
- projectId: string;
1965
- id: string;
1966
1965
  name: string;
1967
- description: string;
1966
+ id: string;
1968
1967
  createdAt: string;
1969
1968
  updatedAt: string;
1970
- summaryProps: Record<string, unknown> | null;
1971
- fullProps: Record<string, unknown> | null;
1969
+ projectId: string;
1970
+ tenantId: string;
1971
+ description: string;
1972
+ props: Record<string, unknown> | null;
1972
1973
  } | undefined>;
1973
1974
  declare const listArtifactComponents: (db: DatabaseClient) => (params: {
1974
1975
  scopes: ProjectScopeConfig;
1975
1976
  }) => Promise<{
1976
1977
  createdAt: string;
1977
1978
  updatedAt: string;
1978
- summaryProps: Record<string, unknown> | null;
1979
- fullProps: Record<string, unknown> | null;
1979
+ props: Record<string, unknown> | null;
1980
1980
  name: string;
1981
1981
  description: string;
1982
1982
  projectId: string;
@@ -1996,30 +1996,28 @@ declare const listArtifactComponentsPaginated: (db: DatabaseClient) => (params:
1996
1996
  };
1997
1997
  }>;
1998
1998
  declare const createArtifactComponent: (db: DatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
1999
- tenantId: string;
2000
- projectId: string;
2001
- id: string;
2002
1999
  name: string;
2003
- description: string;
2000
+ id: string;
2004
2001
  createdAt: string;
2005
2002
  updatedAt: string;
2006
- summaryProps: Record<string, unknown> | null;
2007
- fullProps: Record<string, unknown> | null;
2003
+ projectId: string;
2004
+ tenantId: string;
2005
+ description: string;
2006
+ props: Record<string, unknown> | null;
2008
2007
  }>;
2009
2008
  declare const updateArtifactComponent: (db: DatabaseClient) => (params: {
2010
2009
  scopes: ProjectScopeConfig;
2011
2010
  id: string;
2012
2011
  data: ArtifactComponentUpdate;
2013
2012
  }) => Promise<{
2014
- tenantId: string;
2015
- projectId: string;
2016
- id: string;
2017
2013
  name: string;
2018
- description: string;
2014
+ id: string;
2019
2015
  createdAt: string;
2020
2016
  updatedAt: string;
2021
- summaryProps: Record<string, unknown> | null;
2022
- fullProps: Record<string, unknown> | null;
2017
+ projectId: string;
2018
+ tenantId: string;
2019
+ description: string;
2020
+ props: Record<string, unknown> | null;
2023
2021
  }>;
2024
2022
  declare const deleteArtifactComponent: (db: DatabaseClient) => (params: {
2025
2023
  scopes: ProjectScopeConfig;
@@ -2033,8 +2031,7 @@ declare const getArtifactComponentsForAgent: (db: DatabaseClient) => (params: {
2033
2031
  projectId: string;
2034
2032
  name: string;
2035
2033
  description: string;
2036
- summaryProps: Record<string, unknown> | null;
2037
- fullProps: Record<string, unknown> | null;
2034
+ props: Record<string, unknown> | null;
2038
2035
  createdAt: string;
2039
2036
  updatedAt: string;
2040
2037
  }[]>;
@@ -2042,11 +2039,11 @@ declare const associateArtifactComponentWithAgent: (db: DatabaseClient) => (para
2042
2039
  scopes: AgentScopeConfig;
2043
2040
  artifactComponentId: string;
2044
2041
  }) => Promise<{
2045
- tenantId: string;
2046
- projectId: string;
2047
2042
  id: string;
2048
- graphId: string;
2049
2043
  createdAt: string;
2044
+ projectId: string;
2045
+ tenantId: string;
2046
+ graphId: string;
2050
2047
  agentId: string;
2051
2048
  artifactComponentId: string;
2052
2049
  }>;
@@ -2085,11 +2082,11 @@ declare const upsertAgentArtifactComponentRelation: (db: DatabaseClient) => (par
2085
2082
  scopes: AgentScopeConfig;
2086
2083
  artifactComponentId: string;
2087
2084
  }) => Promise<{
2088
- tenantId: string;
2089
- projectId: string;
2090
2085
  id: string;
2091
- graphId: string;
2092
2086
  createdAt: string;
2087
+ projectId: string;
2088
+ tenantId: string;
2089
+ graphId: string;
2093
2090
  agentId: string;
2094
2091
  artifactComponentId: string;
2095
2092
  } | null>;
@@ -2169,30 +2166,30 @@ declare const getContextConfigById: (db: DatabaseClient) => (params: {
2169
2166
  scopes: GraphScopeConfig;
2170
2167
  id: string;
2171
2168
  }) => Promise<{
2172
- tenantId: string;
2173
- projectId: string;
2174
- id: string;
2175
2169
  name: string;
2176
- description: string;
2177
- graphId: string;
2170
+ id: string;
2178
2171
  createdAt: string;
2179
2172
  updatedAt: string;
2173
+ projectId: string;
2174
+ tenantId: string;
2175
+ description: string;
2180
2176
  requestContextSchema: unknown;
2181
2177
  contextVariables: Record<string, ContextFetchDefinition> | null;
2178
+ graphId: string;
2182
2179
  } | undefined>;
2183
2180
  declare const listContextConfigs: (db: DatabaseClient) => (params: {
2184
2181
  scopes: GraphScopeConfig;
2185
2182
  }) => Promise<{
2186
- tenantId: string;
2187
- projectId: string;
2188
- id: string;
2189
2183
  name: string;
2190
- description: string;
2191
- graphId: string;
2184
+ id: string;
2192
2185
  createdAt: string;
2193
2186
  updatedAt: string;
2187
+ projectId: string;
2188
+ tenantId: string;
2189
+ description: string;
2194
2190
  requestContextSchema: unknown;
2195
2191
  contextVariables: Record<string, ContextFetchDefinition> | null;
2192
+ graphId: string;
2196
2193
  }[]>;
2197
2194
  declare const listContextConfigsPaginated: (db: DatabaseClient) => (params: {
2198
2195
  scopes: GraphScopeConfig;
@@ -2207,32 +2204,32 @@ declare const listContextConfigsPaginated: (db: DatabaseClient) => (params: {
2207
2204
  };
2208
2205
  }>;
2209
2206
  declare const createContextConfig: (db: DatabaseClient) => (params: ContextConfigInsert) => Promise<{
2210
- tenantId: string;
2211
- projectId: string;
2212
- id: string;
2213
2207
  name: string;
2214
- description: string;
2215
- graphId: string;
2208
+ id: string;
2216
2209
  createdAt: string;
2217
2210
  updatedAt: string;
2211
+ projectId: string;
2212
+ tenantId: string;
2213
+ description: string;
2218
2214
  requestContextSchema: unknown;
2219
2215
  contextVariables: Record<string, ContextFetchDefinition> | null;
2216
+ graphId: string;
2220
2217
  }>;
2221
2218
  declare const updateContextConfig: (db: DatabaseClient) => (params: {
2222
2219
  scopes: GraphScopeConfig;
2223
2220
  id: string;
2224
2221
  data: Partial<ContextConfigUpdate>;
2225
2222
  }) => Promise<{
2226
- tenantId: string;
2227
- projectId: string;
2228
- id: string;
2229
2223
  name: string;
2230
- description: string;
2231
- graphId: string;
2224
+ id: string;
2232
2225
  createdAt: string;
2233
2226
  updatedAt: string;
2227
+ projectId: string;
2228
+ tenantId: string;
2229
+ description: string;
2234
2230
  requestContextSchema: unknown;
2235
2231
  contextVariables: Record<string, ContextFetchDefinition> | null;
2232
+ graphId: string;
2236
2233
  }>;
2237
2234
  declare const deleteContextConfig: (db: DatabaseClient) => (params: {
2238
2235
  scopes: GraphScopeConfig;
@@ -2249,16 +2246,16 @@ declare const getContextConfigsByName: (db: DatabaseClient) => (params: {
2249
2246
  scopes: GraphScopeConfig;
2250
2247
  name: string;
2251
2248
  }) => Promise<{
2252
- tenantId: string;
2253
- projectId: string;
2254
- id: string;
2255
2249
  name: string;
2256
- description: string;
2257
- graphId: string;
2250
+ id: string;
2258
2251
  createdAt: string;
2259
2252
  updatedAt: string;
2253
+ projectId: string;
2254
+ tenantId: string;
2255
+ description: string;
2260
2256
  requestContextSchema: unknown;
2261
2257
  contextVariables: Record<string, ContextFetchDefinition> | null;
2258
+ graphId: string;
2262
2259
  }[]>;
2263
2260
  /**
2264
2261
  * Upsert a context config (create if it doesn't exist, update if it does)
@@ -2266,16 +2263,16 @@ declare const getContextConfigsByName: (db: DatabaseClient) => (params: {
2266
2263
  declare const upsertContextConfig: (db: DatabaseClient) => (params: {
2267
2264
  data: ContextConfigInsert;
2268
2265
  }) => Promise<{
2269
- tenantId: string;
2270
- projectId: string;
2271
- id: string;
2272
2266
  name: string;
2273
- description: string;
2274
- graphId: string;
2267
+ id: string;
2275
2268
  createdAt: string;
2276
2269
  updatedAt: string;
2270
+ projectId: string;
2271
+ tenantId: string;
2272
+ description: string;
2277
2273
  requestContextSchema: unknown;
2278
2274
  contextVariables: Record<string, ContextFetchDefinition> | null;
2275
+ graphId: string;
2279
2276
  }>;
2280
2277
 
2281
2278
  declare const listConversations: (db: DatabaseClient) => (params: {
@@ -2287,11 +2284,11 @@ declare const listConversations: (db: DatabaseClient) => (params: {
2287
2284
  total: number;
2288
2285
  }>;
2289
2286
  declare const createConversation: (db: DatabaseClient) => (params: ConversationInsert) => Promise<{
2290
- tenantId: string;
2291
- projectId: string;
2292
2287
  id: string;
2293
2288
  createdAt: string;
2294
2289
  updatedAt: string;
2290
+ projectId: string;
2291
+ tenantId: string;
2295
2292
  title: string | null;
2296
2293
  metadata: ConversationMetadata | null;
2297
2294
  userId: string | null;
@@ -2303,11 +2300,11 @@ declare const updateConversation: (db: DatabaseClient) => (params: {
2303
2300
  conversationId: string;
2304
2301
  data: ConversationUpdate;
2305
2302
  }) => Promise<{
2306
- tenantId: string;
2307
- projectId: string;
2308
2303
  id: string;
2309
2304
  createdAt: string;
2310
2305
  updatedAt: string;
2306
+ projectId: string;
2307
+ tenantId: string;
2311
2308
  title: string | null;
2312
2309
  metadata: ConversationMetadata | null;
2313
2310
  userId: string | null;
@@ -2323,11 +2320,11 @@ declare const updateConversationActiveAgent: (db: DatabaseClient) => (params: {
2323
2320
  conversationId: string;
2324
2321
  activeAgentId: string;
2325
2322
  }) => Promise<{
2326
- tenantId: string;
2327
- projectId: string;
2328
2323
  id: string;
2329
2324
  createdAt: string;
2330
2325
  updatedAt: string;
2326
+ projectId: string;
2327
+ tenantId: string;
2331
2328
  title: string | null;
2332
2329
  metadata: ConversationMetadata | null;
2333
2330
  userId: string | null;
@@ -2338,11 +2335,11 @@ declare const getConversation: (db: DatabaseClient) => (params: {
2338
2335
  scopes: ProjectScopeConfig;
2339
2336
  conversationId: string;
2340
2337
  }) => Promise<{
2341
- tenantId: string;
2342
- projectId: string;
2343
2338
  id: string;
2344
2339
  createdAt: string;
2345
2340
  updatedAt: string;
2341
+ projectId: string;
2342
+ tenantId: string;
2346
2343
  title: string | null;
2347
2344
  metadata: ConversationMetadata | null;
2348
2345
  userId: string | null;
@@ -2376,11 +2373,11 @@ declare const getActiveAgentForConversation: (db: DatabaseClient) => (params: {
2376
2373
  scopes: ProjectScopeConfig;
2377
2374
  conversationId: string;
2378
2375
  }) => Promise<{
2379
- tenantId: string;
2380
- projectId: string;
2381
2376
  id: string;
2382
2377
  createdAt: string;
2383
2378
  updatedAt: string;
2379
+ projectId: string;
2380
+ tenantId: string;
2384
2381
  title: string | null;
2385
2382
  metadata: ConversationMetadata | null;
2386
2383
  userId: string | null;
@@ -2545,11 +2542,11 @@ declare const associateDataComponentWithAgent: (db: DatabaseClient) => (params:
2545
2542
  scopes: AgentScopeConfig;
2546
2543
  dataComponentId: string;
2547
2544
  }) => Promise<{
2548
- tenantId: string;
2549
- projectId: string;
2550
2545
  id: string;
2551
- graphId: string;
2552
2546
  createdAt: string;
2547
+ projectId: string;
2548
+ tenantId: string;
2549
+ graphId: string;
2553
2550
  agentId: string;
2554
2551
  dataComponentId: string;
2555
2552
  }>;
@@ -2587,11 +2584,11 @@ declare const upsertAgentDataComponentRelation: (db: DatabaseClient) => (params:
2587
2584
  scopes: AgentScopeConfig;
2588
2585
  dataComponentId: string;
2589
2586
  }) => Promise<{
2590
- tenantId: string;
2591
- projectId: string;
2592
2587
  id: string;
2593
- graphId: string;
2594
2588
  createdAt: string;
2589
+ projectId: string;
2590
+ tenantId: string;
2591
+ graphId: string;
2595
2592
  agentId: string;
2596
2593
  dataComponentId: string;
2597
2594
  } | null>;
@@ -2782,11 +2779,11 @@ declare const getMessageById: (db: DatabaseClient) => (params: {
2782
2779
  scopes: ProjectScopeConfig;
2783
2780
  messageId: string;
2784
2781
  }) => Promise<{
2785
- tenantId: string;
2786
- projectId: string;
2787
2782
  id: string;
2788
2783
  createdAt: string;
2789
2784
  updatedAt: string;
2785
+ projectId: string;
2786
+ tenantId: string;
2790
2787
  metadata: MessageMetadata | null;
2791
2788
  content: MessageContent;
2792
2789
  conversationId: string;
@@ -2908,11 +2905,11 @@ declare const getVisibleMessages: (db: DatabaseClient) => (params: {
2908
2905
  id: string;
2909
2906
  }[]>;
2910
2907
  declare const createMessage: (db: DatabaseClient) => (params: MessageInsert) => Promise<{
2911
- tenantId: string;
2912
- projectId: string;
2913
2908
  id: string;
2914
2909
  createdAt: string;
2915
2910
  updatedAt: string;
2911
+ projectId: string;
2912
+ tenantId: string;
2916
2913
  metadata: MessageMetadata | null;
2917
2914
  content: MessageContent;
2918
2915
  conversationId: string;
@@ -2934,11 +2931,11 @@ declare const updateMessage: (db: DatabaseClient) => (params: {
2934
2931
  messageId: string;
2935
2932
  data: MessageUpdate;
2936
2933
  }) => Promise<{
2937
- tenantId: string;
2938
- projectId: string;
2939
2934
  id: string;
2940
2935
  createdAt: string;
2941
2936
  updatedAt: string;
2937
+ projectId: string;
2938
+ tenantId: string;
2942
2939
  metadata: MessageMetadata | null;
2943
2940
  content: MessageContent;
2944
2941
  conversationId: string;
@@ -2959,11 +2956,11 @@ declare const deleteMessage: (db: DatabaseClient) => (params: {
2959
2956
  scopes: ProjectScopeConfig;
2960
2957
  messageId: string;
2961
2958
  }) => Promise<{
2962
- tenantId: string;
2963
- projectId: string;
2964
2959
  id: string;
2965
2960
  createdAt: string;
2966
2961
  updatedAt: string;
2962
+ projectId: string;
2963
+ tenantId: string;
2967
2964
  metadata: MessageMetadata | null;
2968
2965
  content: MessageContent;
2969
2966
  conversationId: string;
@@ -3080,14 +3077,14 @@ declare const deleteProject: (db: DatabaseClient) => (params: {
3080
3077
  }) => Promise<boolean>;
3081
3078
 
3082
3079
  declare const createTask: (db: DatabaseClient) => (params: TaskInsert) => Promise<{
3083
- tenantId: string;
3084
- projectId: string;
3085
3080
  id: string;
3086
- graphId: string;
3087
3081
  createdAt: string;
3088
3082
  updatedAt: string;
3089
- metadata: TaskMetadataConfig | null;
3083
+ projectId: string;
3084
+ tenantId: string;
3085
+ graphId: string;
3090
3086
  status: string;
3087
+ metadata: TaskMetadataConfig | null;
3091
3088
  contextId: string;
3092
3089
  agentId: string;
3093
3090
  }>;
@@ -3101,14 +3098,14 @@ declare const updateTask: (db: DatabaseClient) => (params: {
3101
3098
  metadata?: any;
3102
3099
  };
3103
3100
  }) => Promise<{
3104
- tenantId: string;
3105
- projectId: string;
3106
3101
  id: string;
3107
- graphId: string;
3108
3102
  createdAt: string;
3109
3103
  updatedAt: string;
3110
- metadata: TaskMetadataConfig | null;
3104
+ projectId: string;
3105
+ tenantId: string;
3106
+ graphId: string;
3111
3107
  status: string;
3108
+ metadata: TaskMetadataConfig | null;
3112
3109
  contextId: string;
3113
3110
  agentId: string;
3114
3111
  }>;
@@ -3121,19 +3118,19 @@ declare const getToolById: (db: DatabaseClient) => (params: {
3121
3118
  scopes: ProjectScopeConfig;
3122
3119
  toolId: string;
3123
3120
  }) => Promise<{
3124
- tenantId: string;
3125
- projectId: string;
3126
- id: string;
3127
3121
  name: string;
3122
+ headers: Record<string, string> | null;
3123
+ id: string;
3124
+ createdAt: string;
3125
+ updatedAt: string;
3126
+ projectId: string;
3127
+ tenantId: string;
3128
+ credentialReferenceId: string | null;
3129
+ capabilities: ToolServerCapabilities | null;
3128
3130
  config: {
3129
3131
  type: "mcp";
3130
3132
  mcp: ToolMcpConfig;
3131
3133
  };
3132
- credentialReferenceId: string | null;
3133
- createdAt: string;
3134
- updatedAt: string;
3135
- headers: Record<string, string> | null;
3136
- capabilities: ToolServerCapabilities | null;
3137
3134
  imageUrl: string | null;
3138
3135
  lastError: string | null;
3139
3136
  } | null>;
@@ -3166,19 +3163,19 @@ declare const listTools: (db: DatabaseClient) => (params: {
3166
3163
  };
3167
3164
  }>;
3168
3165
  declare const createTool: (db: DatabaseClient) => (params: ToolInsert) => Promise<{
3169
- tenantId: string;
3170
- projectId: string;
3171
- id: string;
3172
3166
  name: string;
3167
+ headers: Record<string, string> | null;
3168
+ id: string;
3169
+ createdAt: string;
3170
+ updatedAt: string;
3171
+ projectId: string;
3172
+ tenantId: string;
3173
+ credentialReferenceId: string | null;
3174
+ capabilities: ToolServerCapabilities | null;
3173
3175
  config: {
3174
3176
  type: "mcp";
3175
3177
  mcp: ToolMcpConfig;
3176
3178
  };
3177
- credentialReferenceId: string | null;
3178
- createdAt: string;
3179
- updatedAt: string;
3180
- headers: Record<string, string> | null;
3181
- capabilities: ToolServerCapabilities | null;
3182
3179
  imageUrl: string | null;
3183
3180
  lastError: string | null;
3184
3181
  }>;
@@ -3187,19 +3184,19 @@ declare const updateTool: (db: DatabaseClient) => (params: {
3187
3184
  toolId: string;
3188
3185
  data: ToolUpdate;
3189
3186
  }) => Promise<{
3190
- tenantId: string;
3191
- projectId: string;
3192
- id: string;
3193
3187
  name: string;
3188
+ headers: Record<string, string> | null;
3189
+ id: string;
3190
+ createdAt: string;
3191
+ updatedAt: string;
3192
+ projectId: string;
3193
+ tenantId: string;
3194
+ credentialReferenceId: string | null;
3195
+ capabilities: ToolServerCapabilities | null;
3194
3196
  config: {
3195
3197
  type: "mcp";
3196
3198
  mcp: ToolMcpConfig;
3197
3199
  };
3198
- credentialReferenceId: string | null;
3199
- createdAt: string;
3200
- updatedAt: string;
3201
- headers: Record<string, string> | null;
3202
- capabilities: ToolServerCapabilities | null;
3203
3200
  imageUrl: string | null;
3204
3201
  lastError: string | null;
3205
3202
  }>;
@@ -3214,32 +3211,32 @@ declare const addToolToAgent: (db: DatabaseClient) => (params: {
3214
3211
  selectedTools?: string[] | null;
3215
3212
  headers?: Record<string, string> | null;
3216
3213
  }) => Promise<{
3217
- tenantId: string;
3218
- projectId: string;
3214
+ headers: Record<string, string> | null;
3219
3215
  id: string;
3220
- graphId: string;
3221
3216
  createdAt: string;
3222
3217
  updatedAt: string;
3223
- headers: Record<string, string> | null;
3224
- toolId: string;
3218
+ projectId: string;
3219
+ tenantId: string;
3220
+ graphId: string;
3225
3221
  selectedTools: string[] | null;
3226
3222
  agentId: string;
3223
+ toolId: string;
3227
3224
  }>;
3228
3225
  declare const removeToolFromAgent: (db: DatabaseClient) => (params: {
3229
3226
  scopes: GraphScopeConfig;
3230
3227
  agentId: string;
3231
3228
  toolId: string;
3232
3229
  }) => Promise<{
3233
- tenantId: string;
3234
- projectId: string;
3230
+ headers: Record<string, string> | null;
3235
3231
  id: string;
3236
- graphId: string;
3237
3232
  createdAt: string;
3238
3233
  updatedAt: string;
3239
- headers: Record<string, string> | null;
3240
- toolId: string;
3234
+ projectId: string;
3235
+ tenantId: string;
3236
+ graphId: string;
3241
3237
  selectedTools: string[] | null;
3242
3238
  agentId: string;
3239
+ toolId: string;
3243
3240
  }>;
3244
3241
  /**
3245
3242
  * Upsert agent-tool relation (create if it doesn't exist, update if it does)
@@ -3252,16 +3249,16 @@ declare const upsertAgentToolRelation: (db: DatabaseClient) => (params: {
3252
3249
  headers?: Record<string, string> | null;
3253
3250
  relationId?: string;
3254
3251
  }) => Promise<{
3255
- tenantId: string;
3256
- projectId: string;
3252
+ headers: Record<string, string> | null;
3257
3253
  id: string;
3258
- graphId: string;
3259
3254
  createdAt: string;
3260
3255
  updatedAt: string;
3261
- headers: Record<string, string> | null;
3262
- toolId: string;
3256
+ projectId: string;
3257
+ tenantId: string;
3258
+ graphId: string;
3263
3259
  selectedTools: string[] | null;
3264
3260
  agentId: string;
3261
+ toolId: string;
3265
3262
  }>;
3266
3263
  /**
3267
3264
  * Upsert a tool (create if it doesn't exist, update if it does)
@@ -3269,19 +3266,19 @@ declare const upsertAgentToolRelation: (db: DatabaseClient) => (params: {
3269
3266
  declare const upsertTool: (db: DatabaseClient) => (params: {
3270
3267
  data: ToolInsert;
3271
3268
  }) => Promise<{
3272
- tenantId: string;
3273
- projectId: string;
3274
- id: string;
3275
3269
  name: string;
3270
+ headers: Record<string, string> | null;
3271
+ id: string;
3272
+ createdAt: string;
3273
+ updatedAt: string;
3274
+ projectId: string;
3275
+ tenantId: string;
3276
+ credentialReferenceId: string | null;
3277
+ capabilities: ToolServerCapabilities | null;
3276
3278
  config: {
3277
3279
  type: "mcp";
3278
3280
  mcp: ToolMcpConfig;
3279
3281
  };
3280
- credentialReferenceId: string | null;
3281
- createdAt: string;
3282
- updatedAt: string;
3283
- headers: Record<string, string> | null;
3284
- capabilities: ToolServerCapabilities | null;
3285
3282
  imageUrl: string | null;
3286
3283
  lastError: string | null;
3287
3284
  }>;