@inkeep/agents-core 0.15.0 → 0.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-FLKAMXLV.js → chunk-L53XWAYG.js} +1 -1
- package/dist/chunk-R2EERZSW.js +223 -0
- package/dist/{chunk-FMCAYVO7.js → chunk-TO2HNKGP.js} +167 -10
- package/dist/{chunk-AHSEMW6N.js → chunk-VPJ6Z5QZ.js} +43 -7
- package/dist/client-exports.cjs +215 -21
- package/dist/client-exports.d.cts +16 -12
- package/dist/client-exports.d.ts +16 -12
- package/dist/client-exports.js +4 -10
- package/dist/db/schema.cjs +42 -6
- package/dist/db/schema.d.cts +2 -2
- package/dist/db/schema.d.ts +2 -2
- package/dist/db/schema.js +1 -1
- package/dist/index.cjs +3274 -2819
- package/dist/index.d.cts +365 -314
- package/dist/index.d.ts +365 -314
- package/dist/index.js +2519 -2494
- package/dist/props-validation-BMR1qNiy.d.cts +15 -0
- package/dist/props-validation-BMR1qNiy.d.ts +15 -0
- package/dist/{schema-D0E2bG9V.d.ts → schema-BtdvdyOA.d.ts} +253 -64
- package/dist/{schema-CTBfyt-o.d.cts → schema-DVnfWYwH.d.cts} +253 -64
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/{utility-BMAHFZX6.d.cts → utility-BaVsvScm.d.cts} +873 -326
- package/dist/{utility-BMAHFZX6.d.ts → utility-BaVsvScm.d.ts} +873 -326
- package/dist/utils/schema-conversion.cjs +236 -0
- package/dist/utils/schema-conversion.d.cts +26 -0
- package/dist/utils/schema-conversion.d.ts +26 -0
- package/dist/utils/schema-conversion.js +1 -0
- package/dist/validation/index.cjs +218 -14
- package/dist/validation/index.d.cts +3 -2
- package/dist/validation/index.d.ts +3 -2
- package/dist/validation/index.js +2 -2
- package/drizzle/0002_bumpy_romulus.sql +3 -0
- package/drizzle/0003_soft_forgotten_one.sql +39 -0
- package/drizzle/0004_melted_omega_flight.sql +3 -0
- package/drizzle/meta/0002_snapshot.json +2428 -0
- package/drizzle/meta/0003_snapshot.json +2559 -0
- package/drizzle/meta/0004_snapshot.json +2547 -0
- package/drizzle/meta/_journal.json +21 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import {
|
|
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 { r as CredentialReferenceApiInsert, s as ContextConfigSelect, l as ContextFetchDefinition, h as MCPTransportType, t as MCPToolConfig, u as GraphScopeConfig, C as ConversationHistoryConfig, v as ProjectScopeConfig, w as PaginationConfig, x as AgentGraphInsert, y as AgentGraphUpdate, z as FullGraphDefinition, B as AgentScopeConfig, D as AgentRelationInsert, E as ExternalAgentRelationInsert, H as AgentRelationUpdate, I as AgentToolRelationUpdate, m as ToolMcpConfig, n as ToolServerCapabilities, J as AgentInsert, K as AgentUpdate, L as AgentSelect, N as ApiKeySelect, O as ApiKeyInsert, Q as ApiKeyUpdate, R as CreateApiKeyParams, U as ApiKeyCreateResult, V as ArtifactComponentSelect, W as ArtifactComponentInsert, X as ArtifactComponentUpdate, Y as ContextCacheSelect, Z as ContextCacheInsert, _ as ContextConfigInsert, $ as ContextConfigUpdate, a0 as ConversationSelect, a1 as ConversationInsert, o as ConversationMetadata, a2 as ConversationUpdate, a3 as CredentialReferenceSelect, a4 as ToolSelect, a5 as CredentialReferenceInsert, a6 as CredentialReferenceUpdate, a7 as DataComponentSelect, a8 as DataComponentInsert, a9 as DataComponentUpdate, aa as ExternalAgentInsert, ab as ExternalAgentSelect, ac as ExternalAgentUpdate, ad as FunctionApiInsert, ae as Artifact, af as LedgerArtifactSelect, q as MessageMetadata, p as MessageContent, ag as MessageVisibility, ah as MessageInsert, ai as MessageUpdate, aj as FullProjectDefinition, ak as ProjectInfo, al as ProjectSelect, am as PaginationResult, an as ProjectResourceCounts, ao as ProjectInsert, ap as ProjectUpdate, aq as TaskInsert, T as TaskMetadataConfig, ar as TaskSelect, as as McpTool, at as ToolInsert, au as ToolUpdate, g as CredentialStoreType, av as ExecutionContext } from './utility-BaVsvScm.js';
|
|
3
|
+
export { b7 as A2AError, bD as A2ARequest, bE as A2AResponse, aI as APIKeySecurityScheme, bI as AgentApiInsert, dG as AgentApiInsertSchema, bH as AgentApiSelect, dF as AgentApiSelectSchema, bJ as AgentApiUpdate, dH as AgentApiUpdateSchema, cG as AgentArtifactComponentApiInsert, eR as AgentArtifactComponentApiInsertSchema, cF as AgentArtifactComponentApiSelect, eQ as AgentArtifactComponentApiSelectSchema, cH as AgentArtifactComponentApiUpdate, eS as AgentArtifactComponentApiUpdateSchema, cD as AgentArtifactComponentInsert, eO as AgentArtifactComponentInsertSchema, cC as AgentArtifactComponentSelect, eN as AgentArtifactComponentSelectSchema, cE as AgentArtifactComponentUpdate, eP as AgentArtifactComponentUpdateSchema, aE as AgentCapabilities, aS as AgentCard, di as AgentConversationHistoryConfig, cx as AgentDataComponentApiInsert, eF as AgentDataComponentApiInsertSchema, cw as AgentDataComponentApiSelect, eE as AgentDataComponentApiSelectSchema, cy as AgentDataComponentApiUpdate, eG as AgentDataComponentApiUpdateSchema, cu as AgentDataComponentInsert, eC as AgentDataComponentInsertSchema, ct as AgentDataComponentSelect, eB as AgentDataComponentSelectSchema, cv as AgentDataComponentUpdate, eD as AgentDataComponentUpdateSchema, d3 as AgentDefinition, bS as AgentGraphApiInsert, dV as AgentGraphApiInsertSchema, bR as AgentGraphApiSelect, dU as AgentGraphApiSelectSchema, bT as AgentGraphApiUpdate, dW as AgentGraphApiUpdateSchema, dS as AgentGraphInsertSchema, bQ as AgentGraphSelect, dR as AgentGraphSelectSchema, dT as AgentGraphUpdateSchema, dD as AgentInsertSchema, aF as AgentProvider, bM as AgentRelationApiInsert, dM as AgentRelationApiInsertSchema, bL as AgentRelationApiSelect, dL as AgentRelationApiSelectSchema, bN as AgentRelationApiUpdate, dN as AgentRelationApiUpdateSchema, dJ as AgentRelationInsertSchema, bO as AgentRelationQuery, dO as AgentRelationQuerySchema, bK as AgentRelationSelect, dI as AgentRelationSelectSchema, dK as AgentRelationUpdateSchema, dC as AgentSelectSchema, aG as AgentSkill, e as AgentStopWhen, b as AgentStopWhenSchema, cV as AgentToolRelationApiInsert, fv as AgentToolRelationApiInsertSchema, cU as AgentToolRelationApiSelect, fu as AgentToolRelationApiSelectSchema, cW as AgentToolRelationApiUpdate, fw as AgentToolRelationApiUpdateSchema, cT as AgentToolRelationInsert, fs as AgentToolRelationInsertSchema, cS as AgentToolRelationSelect, fr as AgentToolRelationSelectSchema, ft as AgentToolRelationUpdateSchema, dE as AgentUpdateSchema, eZ as AllAgentSchema, cL as AllAgentSelect, cP as ApiKeyApiCreationResponse, f2 as ApiKeyApiCreationResponseSchema, cN as ApiKeyApiInsert, f3 as ApiKeyApiInsertSchema, cM as ApiKeyApiSelect, f1 as ApiKeyApiSelectSchema, cO as ApiKeyApiUpdate, A as ApiKeyApiUpdateSchema, e$ as ApiKeyInsertSchema, e_ as ApiKeySelectSchema, f0 as ApiKeyUpdateSchema, cA as ArtifactComponentApiInsert, eL as ArtifactComponentApiInsertSchema, cz as ArtifactComponentApiSelect, eK as ArtifactComponentApiSelectSchema, cB as ArtifactComponentApiUpdate, eM as ArtifactComponentApiUpdateSchema, eI as ArtifactComponentInsertSchema, eH as ArtifactComponentSelectSchema, eJ as ArtifactComponentUpdateSchema, aL as AuthorizationCodeOAuthFlow, d1 as CanUseItem, fF as CanUseItemSchema, bn as CancelTaskRequest, by as CancelTaskResponse, bx as CancelTaskSuccessResponse, aM as ClientCredentialsOAuthFlow, b5 as ContentTypeNotSupportedError, co as ContextCacheApiInsert, es as ContextCacheApiInsertSchema, cn as ContextCacheApiSelect, er as ContextCacheApiSelectSchema, cp as ContextCacheApiUpdate, et as ContextCacheApiUpdateSchema, dj as ContextCacheEntry, ep as ContextCacheInsertSchema, eo as ContextCacheSelectSchema, cm as ContextCacheUpdate, eq as ContextCacheUpdateSchema, ci as ContextConfigApiInsert, fp as ContextConfigApiInsertSchema, ch as ContextConfigApiSelect, fo as ContextConfigApiSelectSchema, cj as ContextConfigApiUpdate, fq as ContextConfigApiUpdateSchema, fm as ContextConfigInsertSchema, fl as ContextConfigSelectSchema, fn as ContextConfigUpdateSchema, cb as ConversationApiInsert, eg as ConversationApiInsertSchema, ca as ConversationApiSelect, ef as ConversationApiSelectSchema, cc as ConversationApiUpdate, eh as ConversationApiUpdateSchema, ed as ConversationInsertSchema, dh as ConversationScopeOptions, ec as ConversationSelectSchema, ee as ConversationUpdateSchema, f8 as CredentialReferenceApiInsertSchema, cQ as CredentialReferenceApiSelect, f7 as CredentialReferenceApiSelectSchema, cR as CredentialReferenceApiUpdate, f9 as CredentialReferenceApiUpdateSchema, f5 as CredentialReferenceInsertSchema, f4 as CredentialReferenceSelectSchema, f6 as CredentialReferenceUpdateSchema, cr as DataComponentApiInsert, ez as DataComponentApiInsertSchema, cq as DataComponentApiSelect, ey as DataComponentApiSelectSchema, cs as DataComponentApiUpdate, eA as DataComponentApiUpdateSchema, ew as DataComponentBaseSchema, ev as DataComponentInsertSchema, eu as DataComponentSelectSchema, ex as DataComponentUpdateSchema, aC as DataPart, fL as ErrorResponseSchema, fM as ExistsResponseSchema, cJ as ExternalAgentApiInsert, eX as ExternalAgentApiInsertSchema, cI as ExternalAgentApiSelect, eW as ExternalAgentApiSelectSchema, cK as ExternalAgentApiUpdate, eY as ExternalAgentApiUpdateSchema, eU as ExternalAgentInsertSchema, bP as ExternalAgentRelationApiInsert, dQ as ExternalAgentRelationApiInsertSchema, dP as ExternalAgentRelationInsertSchema, eT as ExternalAgentSelectSchema, eV as ExternalAgentUpdateSchema, cl as FetchConfig, fj as FetchConfigSchema, ck as FetchDefinition, fk as FetchDefinitionSchema, ay as FileBase, aB as FilePart, az as FileWithBytes, aA as FileWithUri, d0 as FullGraphAgentInsert, a as FullGraphAgentInsertSchema, fG as FullGraphDefinitionSchema, fU as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, c8 as FunctionApiSelect, i as FunctionApiSelectSchema, c9 as FunctionApiUpdate, j as FunctionApiUpdateSchema, c6 as FunctionInsert, fh as FunctionInsertSchema, c5 as FunctionSelect, fg as FunctionSelectSchema, dB as FunctionToolConfig, dA as FunctionToolConfigSchema, c7 as FunctionUpdate, fi as FunctionUpdateSchema, bp as GetTaskPushNotificationConfigRequest, bC as GetTaskPushNotificationConfigResponse, bB as GetTaskPushNotificationConfigSuccessResponse, bm as GetTaskRequest, bw as GetTaskResponse, bv as GetTaskSuccessResponse, d as GraphStopWhen, G as GraphStopWhenSchema, fH as GraphWithinContextOfProjectSchema, aJ as HTTPAuthSecurityScheme, fV as HeadersScopeSchema, g0 as IdParamsSchema, aN as ImplicitOAuthFlow, d2 as InternalAgentDefinition, b0 as InternalError, b6 as InvalidAgentResponseError, a$ as InvalidParamsError, aZ as InvalidRequestError, aY as JSONParseError, bh as JSONRPCError, bj as JSONRPCErrorResponse, bf as JSONRPCMessage, bg as JSONRPCRequest, bi as JSONRPCResult, c_ as LedgerArtifactApiInsert, fB as LedgerArtifactApiInsertSchema, cZ as LedgerArtifactApiSelect, fA as LedgerArtifactApiSelectSchema, c$ as LedgerArtifactApiUpdate, fC as LedgerArtifactApiUpdateSchema, cX as LedgerArtifactInsert, fy as LedgerArtifactInsertSchema, fx as LedgerArtifactSelectSchema, cY as LedgerArtifactUpdate, fz as LedgerArtifactUpdateSchema, fJ as ListResponseSchema, du as MAX_ID_LENGTH, ds as MCPServerType, fb as MCPToolConfigSchema, dt as MIN_ID_LENGTH, dk as McpAuthType, dl as McpServerAuth, dn as McpServerCapabilities, dp as McpToolDefinition, e9 as McpToolDefinitionSchema, fa as McpToolSchema, dm as McpTransportConfig, e7 as McpTransportConfigSchema, aT as Message, cf as MessageApiInsert, em as MessageApiInsertSchema, ce as MessageApiSelect, el as MessageApiSelectSchema, cg as MessageApiUpdate, en as MessageApiUpdateSchema, ej as MessageInsertSchema, dc as MessageMode, bF as MessagePart, db as MessageRole, cd as MessageSelect, ei as MessageSelectSchema, bd as MessageSendConfiguration, be as MessageSendParams, da as MessageType, ek as MessageUpdateSchema, a_ as MethodNotFoundError, dx as ModelSchema, f as ModelSettings, M as ModelSettingsSchema, dd as Models, aP as OAuth2SecurityScheme, aK as OAuthFlows, aQ as OpenIdConnectSecurityScheme, d8 as Pagination, g1 as PaginationQueryParamsSchema, fI as PaginationSchema, P as Part, aw as PartBase, aO as PasswordOAuthFlow, d6 as ProjectApiInsert, fS as ProjectApiInsertSchema, d5 as ProjectApiSelect, fR as ProjectApiSelectSchema, d7 as ProjectApiUpdate, fT as ProjectApiUpdateSchema, fP as ProjectInsertSchema, dy as ProjectModelSchema, de as ProjectModels, fO as ProjectSelectSchema, fQ as ProjectUpdateSchema, b8 as PushNotificationAuthenticationInfo, b9 as PushNotificationConfig, b3 as PushNotificationNotSupportedError, fN as RemovedResponseSchema, dz as SandboxConfig, k as SandboxConfigSchema, aR as SecurityScheme, aH as SecuritySchemeBase, bk as SendMessageRequest, bs as SendMessageResponse, br as SendMessageSuccessResponse, bl as SendStreamingMessageRequest, bu as SendStreamingMessageResponse, bt as SendStreamingMessageSuccessResponse, bo as SetTaskPushNotificationConfigRequest, bA as SetTaskPushNotificationConfigResponse, bz as SetTaskPushNotificationConfigSuccessResponse, fK as SingleResponseSchema, dg as StatusComponent, fD as StatusComponentSchema, fE as StatusUpdateSchema, df as StatusUpdateSettings, c as StopWhen, S as StopWhenSchema, d9 as SummaryEvent, dq as TOOL_STATUS_VALUES, aV as Task, bW as TaskApiInsert, d$ as TaskApiInsertSchema, bV as TaskApiSelect, d_ as TaskApiSelectSchema, bX as TaskApiUpdate, e0 as TaskApiUpdateSchema, bG as TaskArtifact, aX as TaskArtifactUpdateEvent, bb as TaskIdParams, dY as TaskInsertSchema, b2 as TaskNotCancelableError, b1 as TaskNotFoundError, ba as TaskPushNotificationConfig, bc as TaskQueryParams, c0 as TaskRelationApiInsert, e5 as TaskRelationApiInsertSchema, b$ as TaskRelationApiSelect, e4 as TaskRelationApiSelectSchema, c1 as TaskRelationApiUpdate, e6 as TaskRelationApiUpdateSchema, bZ as TaskRelationInsert, e2 as TaskRelationInsertSchema, bY as TaskRelationSelect, e1 as TaskRelationSelectSchema, b_ as TaskRelationUpdate, e3 as TaskRelationUpdateSchema, bq as TaskResubscriptionRequest, dX as TaskSelectSchema, aD as TaskState, aU as TaskStatus, aW as TaskStatusUpdateEvent, bU as TaskUpdate, dZ as TaskUpdateSchema, f$ as TenantIdParamsSchema, fW as TenantParamsSchema, fZ as TenantProjectGraphIdParamsSchema, fY as TenantProjectGraphParamsSchema, f_ as TenantProjectIdParamsSchema, fX as TenantProjectParamsSchema, ax as TextPart, c3 as ToolApiInsert, fe as ToolApiInsertSchema, c2 as ToolApiSelect, fd as ToolApiSelectSchema, c4 as ToolApiUpdate, ff as ToolApiUpdateSchema, d4 as ToolDefinition, eb as ToolInsertSchema, ea as ToolSelectSchema, e8 as ToolStatusSchema, fc as ToolUpdateSchema, dv as URL_SAFE_ID_PATTERN, b4 as UnsupportedOperationError, dr as VALID_RELATION_TYPES, dw as resourceIdSchema } from './utility-BaVsvScm.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-
|
|
8
|
-
export { k as agentArtifactComponents,
|
|
7
|
+
import { s as schema } from './schema-BtdvdyOA.js';
|
|
8
|
+
export { k as agentArtifactComponents, L as agentArtifactComponentsRelations, i as agentDataComponents, N as agentDataComponentsRelations, a as agentGraph, C as agentGraphRelations, e as agentRelations, Q as agentRelationsRelations, n as agentToolRelations, F as agentToolRelationsRelations, d as agents, B as agentsRelations, u as apiKeys, E as apiKeysRelations, j as artifactComponents, K as artifactComponentsRelations, b as contextCache, A as contextCacheRelations, c as contextConfigs, z as contextConfigsRelations, o as conversations, I as conversationsRelations, v as credentialReferences, G as credentialReferencesRelations, h as dataComponents, M as dataComponentsRelations, f as externalAgents, D as externalAgentsRelations, m as functions, P as functionsRelations, r as ledgerArtifacts, O as ledgerArtifactsRelations, q as messages, J as messagesRelations, p as projects, x as projectsRelations, g as taskRelations, y as taskRelationsRelations, t as tasks, w as tasksRelations, l as tools, H as toolsRelations } from './schema-BtdvdyOA.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';
|
|
@@ -65,19 +67,19 @@ type ExtractSchemasFromCV<CV> = {
|
|
|
65
67
|
type InferContextFromSchemas<CZ> = {
|
|
66
68
|
[K in keyof CZ]: CZ[K] extends z.ZodTypeAny ? z.infer<CZ[K]> : never;
|
|
67
69
|
};
|
|
68
|
-
type
|
|
69
|
-
|
|
70
|
+
type MergeHeaders<R extends z.ZodTypeAny | undefined> = R extends z.ZodTypeAny ? {
|
|
71
|
+
headers: z.infer<R>;
|
|
70
72
|
} : {};
|
|
71
|
-
type FullContext<R extends z.ZodTypeAny | undefined, CV> =
|
|
73
|
+
type FullContext<R extends z.ZodTypeAny | undefined, CV> = MergeHeaders<R> & InferContextFromSchemas<ExtractSchemasFromCV<CV>>;
|
|
72
74
|
type AllowedPaths<R extends z.ZodTypeAny | undefined, CV> = DotPaths<FullContext<R, CV>>;
|
|
73
|
-
interface
|
|
75
|
+
interface HeadersSchemaBuilderOptions<R extends z.ZodTypeAny> {
|
|
74
76
|
schema: R;
|
|
75
77
|
}
|
|
76
|
-
declare class
|
|
78
|
+
declare class HeadersSchemaBuilder<R extends z.ZodTypeAny> {
|
|
77
79
|
private schema;
|
|
78
|
-
constructor(options:
|
|
79
|
-
/** Template function for
|
|
80
|
-
toTemplate<P extends DotPaths<z.infer<R>>>(path: P): `{{
|
|
80
|
+
constructor(options: HeadersSchemaBuilderOptions<R>);
|
|
81
|
+
/** Template function for headers paths with type-safe autocomplete */
|
|
82
|
+
toTemplate<P extends DotPaths<z.infer<R>>>(path: P): `{{headers.${P}}}`;
|
|
81
83
|
getSchema(): R;
|
|
82
84
|
getJsonSchema(): Record<string, unknown>;
|
|
83
85
|
}
|
|
@@ -98,10 +100,8 @@ type builderFetchDefinition<R extends z.ZodTypeAny> = {
|
|
|
98
100
|
credentialReference?: CredentialReferenceApiInsert;
|
|
99
101
|
};
|
|
100
102
|
interface ContextConfigBuilderOptions<R extends z.ZodTypeAny | undefined = undefined, CV = Record<string, builderFetchDefinition<z.ZodTypeAny>>> {
|
|
101
|
-
id
|
|
102
|
-
|
|
103
|
-
description?: string;
|
|
104
|
-
requestContextSchema?: R | RequestContextSchemaBuilder<R extends z.ZodTypeAny ? R : z.ZodTypeAny>;
|
|
103
|
+
id?: string;
|
|
104
|
+
headers?: R | HeadersSchemaBuilder<R extends z.ZodTypeAny ? R : z.ZodTypeAny>;
|
|
105
105
|
contextVariables?: CV;
|
|
106
106
|
tenantId?: string;
|
|
107
107
|
projectId?: string;
|
|
@@ -125,11 +125,9 @@ declare class ContextConfigBuilder<R extends z.ZodTypeAny | undefined, CV extend
|
|
|
125
125
|
*/
|
|
126
126
|
toObject(): ContextConfigSelect;
|
|
127
127
|
getId(): string;
|
|
128
|
-
|
|
129
|
-
getDescription(): string;
|
|
130
|
-
getRequestContextSchema(): {} | null;
|
|
128
|
+
getHeadersSchema(): {} | null;
|
|
131
129
|
getContextVariables(): Record<string, ContextFetchDefinition>;
|
|
132
|
-
|
|
130
|
+
withHeadersSchema(schema: any): this;
|
|
133
131
|
/** 4) The function you ship: path autocomplete + validation, returns {{path}} */
|
|
134
132
|
toTemplate<P extends AllowedPaths<R, CV>>(path: P): `{{${P}}}`;
|
|
135
133
|
validate(): {
|
|
@@ -143,7 +141,7 @@ declare class ContextConfigBuilder<R extends z.ZodTypeAny | undefined, CV extend
|
|
|
143
141
|
declare function contextConfig<R extends z.ZodTypeAny | undefined = undefined, CV extends Record<string, builderFetchDefinition<z.ZodTypeAny>> = Record<string, builderFetchDefinition<z.ZodTypeAny>>>(options: ContextConfigBuilderOptions<R, CV> & {
|
|
144
142
|
contextVariables?: CV;
|
|
145
143
|
}): ContextConfigBuilder<R, CV>;
|
|
146
|
-
declare function
|
|
144
|
+
declare function headers<R extends z.ZodTypeAny>(options: HeadersSchemaBuilderOptions<R>): HeadersSchemaBuilder<R>;
|
|
147
145
|
declare function fetchDefinition<R extends z.ZodTypeAny>(options: builderFetchDefinition<R>): Omit<builderFetchDefinition<R>, 'credentialReference'> & {
|
|
148
146
|
credentialReferenceId?: string;
|
|
149
147
|
};
|
|
@@ -314,12 +312,12 @@ interface ResolvedContext {
|
|
|
314
312
|
interface ContextResolutionOptions {
|
|
315
313
|
triggerEvent: 'initialization' | 'invocation';
|
|
316
314
|
conversationId: string;
|
|
317
|
-
|
|
315
|
+
headers?: Record<string, unknown>;
|
|
318
316
|
tenantId: string;
|
|
319
317
|
}
|
|
320
318
|
interface ContextResolutionResult {
|
|
321
319
|
resolvedContext: ResolvedContext;
|
|
322
|
-
|
|
320
|
+
headers: Record<string, unknown>;
|
|
323
321
|
fetchedDefinitions: string[];
|
|
324
322
|
cacheHits: string[];
|
|
325
323
|
cacheMisses: string[];
|
|
@@ -344,11 +342,11 @@ declare class ContextResolver {
|
|
|
344
342
|
*/
|
|
345
343
|
private resolveSingleFetchDefinition;
|
|
346
344
|
/**
|
|
347
|
-
* Resolve the
|
|
345
|
+
* Resolve the headers for a given conversation
|
|
348
346
|
*/
|
|
349
|
-
|
|
347
|
+
resolveHeaders(conversationId: string, contextConfigId: string): Promise<Record<string, unknown>>;
|
|
350
348
|
/**
|
|
351
|
-
* Create a hash of the
|
|
349
|
+
* Create a hash of the headers for cache invalidation
|
|
352
350
|
*/
|
|
353
351
|
private createRequestHash;
|
|
354
352
|
/**
|
|
@@ -359,12 +357,12 @@ declare class ContextResolver {
|
|
|
359
357
|
|
|
360
358
|
declare function determineContextTrigger(tenantId: string, projectId: string, conversationId: string, dbClient: DatabaseClient): Promise<'initialization' | 'invocation'>;
|
|
361
359
|
declare function handleContextConfigChange(tenantId: string, projectId: string, conversationId: string, graphId: string, newContextConfigId: string, dbClient: DatabaseClient, credentialStores?: CredentialStoreRegistry): Promise<void>;
|
|
362
|
-
declare function handleContextResolution({ tenantId, projectId, graphId, conversationId,
|
|
360
|
+
declare function handleContextResolution({ tenantId, projectId, graphId, conversationId, headers, dbClient, credentialStores, }: {
|
|
363
361
|
tenantId: string;
|
|
364
362
|
projectId: string;
|
|
365
363
|
graphId: string;
|
|
366
364
|
conversationId: string;
|
|
367
|
-
|
|
365
|
+
headers: Record<string, unknown>;
|
|
368
366
|
dbClient: DatabaseClient;
|
|
369
367
|
credentialStores?: CredentialStoreRegistry;
|
|
370
368
|
}): Promise<ResolvedContext | null>;
|
|
@@ -415,7 +413,7 @@ declare class ContextCache {
|
|
|
415
413
|
*/
|
|
416
414
|
cleanup(): Promise<void>;
|
|
417
415
|
invalidateInvocationDefinitions(tenantId: string, projectId: string, conversationId: string, contextConfigId: string, definitionIds: string[]): Promise<void>;
|
|
418
|
-
|
|
416
|
+
invalidateHeaders(tenantId: string, projectId: string, conversationId: string, contextConfigId: string): Promise<void>;
|
|
419
417
|
}
|
|
420
418
|
|
|
421
419
|
/**
|
|
@@ -790,7 +788,7 @@ interface CredentialResolverInput {
|
|
|
790
788
|
* Interface for context resolver (optional)
|
|
791
789
|
*/
|
|
792
790
|
interface ContextResolverInterface {
|
|
793
|
-
|
|
791
|
+
resolveHeaders(conversationId: string, contextConfigId: string): Promise<Record<string, unknown>>;
|
|
794
792
|
}
|
|
795
793
|
/**
|
|
796
794
|
* Manages credential retrieval and injection for MCP tools
|
|
@@ -810,9 +808,9 @@ declare class CredentialStuffer {
|
|
|
810
808
|
*/
|
|
811
809
|
private generateCredentialKey;
|
|
812
810
|
/**
|
|
813
|
-
* Get credentials from
|
|
811
|
+
* Get credentials from headers context
|
|
814
812
|
*/
|
|
815
|
-
|
|
813
|
+
getCredentialsFromHeaders(credentialContext: CredentialContext, headers: Record<string, string>): Promise<CredentialData | null>;
|
|
816
814
|
/**
|
|
817
815
|
* Get credential headers for MCP server configuration
|
|
818
816
|
*/
|
|
@@ -826,14 +824,13 @@ declare class CredentialStuffer {
|
|
|
826
824
|
declare const getAgentGraphById: (db: DatabaseClient) => (params: {
|
|
827
825
|
scopes: GraphScopeConfig;
|
|
828
826
|
}) => Promise<{
|
|
829
|
-
tenantId: string;
|
|
830
|
-
projectId: string;
|
|
831
|
-
id: string;
|
|
832
827
|
name: string;
|
|
833
|
-
|
|
828
|
+
id: string;
|
|
834
829
|
createdAt: string;
|
|
835
830
|
updatedAt: string;
|
|
836
|
-
|
|
831
|
+
projectId: string;
|
|
832
|
+
tenantId: string;
|
|
833
|
+
description: string | null;
|
|
837
834
|
models: {
|
|
838
835
|
base?: {
|
|
839
836
|
model?: string | undefined;
|
|
@@ -851,6 +848,7 @@ declare const getAgentGraphById: (db: DatabaseClient) => (params: {
|
|
|
851
848
|
stopWhen: {
|
|
852
849
|
transferCountIs?: number | undefined;
|
|
853
850
|
} | null;
|
|
851
|
+
defaultAgentId: string | null;
|
|
854
852
|
contextConfigId: string | null;
|
|
855
853
|
statusUpdates: {
|
|
856
854
|
enabled?: boolean | undefined;
|
|
@@ -872,14 +870,13 @@ declare const getAgentGraphById: (db: DatabaseClient) => (params: {
|
|
|
872
870
|
declare const getAgentGraphWithDefaultAgent: (db: DatabaseClient) => (params: {
|
|
873
871
|
scopes: GraphScopeConfig;
|
|
874
872
|
}) => Promise<{
|
|
875
|
-
tenantId: string;
|
|
876
|
-
projectId: string;
|
|
877
|
-
id: string;
|
|
878
873
|
name: string;
|
|
879
|
-
|
|
874
|
+
id: string;
|
|
880
875
|
createdAt: string;
|
|
881
876
|
updatedAt: string;
|
|
882
|
-
|
|
877
|
+
projectId: string;
|
|
878
|
+
tenantId: string;
|
|
879
|
+
description: string | null;
|
|
883
880
|
models: {
|
|
884
881
|
base?: {
|
|
885
882
|
model?: string | undefined;
|
|
@@ -897,6 +894,7 @@ declare const getAgentGraphWithDefaultAgent: (db: DatabaseClient) => (params: {
|
|
|
897
894
|
stopWhen: {
|
|
898
895
|
transferCountIs?: number | undefined;
|
|
899
896
|
} | null;
|
|
897
|
+
defaultAgentId: string | null;
|
|
900
898
|
contextConfigId: string | null;
|
|
901
899
|
statusUpdates: {
|
|
902
900
|
enabled?: boolean | undefined;
|
|
@@ -915,16 +913,13 @@ declare const getAgentGraphWithDefaultAgent: (db: DatabaseClient) => (params: {
|
|
|
915
913
|
} | null;
|
|
916
914
|
graphPrompt: string | null;
|
|
917
915
|
defaultAgent: {
|
|
918
|
-
tenantId: string;
|
|
919
|
-
projectId: string;
|
|
920
|
-
id: string;
|
|
921
916
|
name: string;
|
|
922
|
-
|
|
923
|
-
prompt: string;
|
|
924
|
-
graphId: string;
|
|
917
|
+
id: string;
|
|
925
918
|
createdAt: string;
|
|
926
919
|
updatedAt: string;
|
|
927
|
-
|
|
920
|
+
projectId: string;
|
|
921
|
+
tenantId: string;
|
|
922
|
+
description: string;
|
|
928
923
|
models: {
|
|
929
924
|
base?: {
|
|
930
925
|
model?: string | undefined;
|
|
@@ -942,19 +937,21 @@ declare const getAgentGraphWithDefaultAgent: (db: DatabaseClient) => (params: {
|
|
|
942
937
|
stopWhen: {
|
|
943
938
|
stepCountIs?: number | undefined;
|
|
944
939
|
} | null;
|
|
940
|
+
graphId: string;
|
|
941
|
+
prompt: string;
|
|
942
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
945
943
|
} | null;
|
|
946
944
|
} | null>;
|
|
947
945
|
declare const listAgentGraphs: (db: DatabaseClient) => (params: {
|
|
948
946
|
scopes: ProjectScopeConfig;
|
|
949
947
|
}) => Promise<{
|
|
950
|
-
tenantId: string;
|
|
951
|
-
projectId: string;
|
|
952
|
-
id: string;
|
|
953
948
|
name: string;
|
|
954
|
-
|
|
949
|
+
id: string;
|
|
955
950
|
createdAt: string;
|
|
956
951
|
updatedAt: string;
|
|
957
|
-
|
|
952
|
+
projectId: string;
|
|
953
|
+
tenantId: string;
|
|
954
|
+
description: string | null;
|
|
958
955
|
models: {
|
|
959
956
|
base?: {
|
|
960
957
|
model?: string | undefined;
|
|
@@ -972,6 +969,7 @@ declare const listAgentGraphs: (db: DatabaseClient) => (params: {
|
|
|
972
969
|
stopWhen: {
|
|
973
970
|
transferCountIs?: number | undefined;
|
|
974
971
|
} | null;
|
|
972
|
+
defaultAgentId: string | null;
|
|
975
973
|
contextConfigId: string | null;
|
|
976
974
|
statusUpdates: {
|
|
977
975
|
enabled?: boolean | undefined;
|
|
@@ -1046,14 +1044,13 @@ declare const listAgentGraphsPaginated: (db: DatabaseClient) => (params: {
|
|
|
1046
1044
|
};
|
|
1047
1045
|
}>;
|
|
1048
1046
|
declare const createAgentGraph: (db: DatabaseClient) => (data: AgentGraphInsert) => Promise<{
|
|
1049
|
-
tenantId: string;
|
|
1050
|
-
projectId: string;
|
|
1051
|
-
id: string;
|
|
1052
1047
|
name: string;
|
|
1053
|
-
|
|
1048
|
+
id: string;
|
|
1054
1049
|
createdAt: string;
|
|
1055
1050
|
updatedAt: string;
|
|
1056
|
-
|
|
1051
|
+
projectId: string;
|
|
1052
|
+
tenantId: string;
|
|
1053
|
+
description: string | null;
|
|
1057
1054
|
models: {
|
|
1058
1055
|
base?: {
|
|
1059
1056
|
model?: string | undefined;
|
|
@@ -1071,6 +1068,7 @@ declare const createAgentGraph: (db: DatabaseClient) => (data: AgentGraphInsert)
|
|
|
1071
1068
|
stopWhen: {
|
|
1072
1069
|
transferCountIs?: number | undefined;
|
|
1073
1070
|
} | null;
|
|
1071
|
+
defaultAgentId: string | null;
|
|
1074
1072
|
contextConfigId: string | null;
|
|
1075
1073
|
statusUpdates: {
|
|
1076
1074
|
enabled?: boolean | undefined;
|
|
@@ -1093,14 +1091,13 @@ declare const updateAgentGraph: (db: DatabaseClient) => (params: {
|
|
|
1093
1091
|
scopes: GraphScopeConfig;
|
|
1094
1092
|
data: AgentGraphUpdate;
|
|
1095
1093
|
}) => Promise<{
|
|
1096
|
-
tenantId: string;
|
|
1097
|
-
projectId: string;
|
|
1098
|
-
id: string;
|
|
1099
1094
|
name: string;
|
|
1100
|
-
|
|
1095
|
+
id: string;
|
|
1101
1096
|
createdAt: string;
|
|
1102
1097
|
updatedAt: string;
|
|
1103
|
-
|
|
1098
|
+
projectId: string;
|
|
1099
|
+
tenantId: string;
|
|
1100
|
+
description: string | null;
|
|
1104
1101
|
models: {
|
|
1105
1102
|
base?: {
|
|
1106
1103
|
model?: string | undefined;
|
|
@@ -1118,6 +1115,7 @@ declare const updateAgentGraph: (db: DatabaseClient) => (params: {
|
|
|
1118
1115
|
stopWhen: {
|
|
1119
1116
|
transferCountIs?: number | undefined;
|
|
1120
1117
|
} | null;
|
|
1118
|
+
defaultAgentId: string | null;
|
|
1121
1119
|
contextConfigId: string | null;
|
|
1122
1120
|
statusUpdates: {
|
|
1123
1121
|
enabled?: boolean | undefined;
|
|
@@ -1172,12 +1170,12 @@ declare const getAgentRelationById: (db: DatabaseClient) => (params: {
|
|
|
1172
1170
|
scopes: GraphScopeConfig;
|
|
1173
1171
|
relationId: string;
|
|
1174
1172
|
}) => Promise<{
|
|
1175
|
-
tenantId: string;
|
|
1176
|
-
projectId: string;
|
|
1177
1173
|
id: string;
|
|
1178
|
-
graphId: string;
|
|
1179
1174
|
createdAt: string;
|
|
1180
1175
|
updatedAt: string;
|
|
1176
|
+
projectId: string;
|
|
1177
|
+
tenantId: string;
|
|
1178
|
+
graphId: string;
|
|
1181
1179
|
sourceAgentId: string;
|
|
1182
1180
|
targetAgentId: string | null;
|
|
1183
1181
|
externalAgentId: string | null;
|
|
@@ -1209,12 +1207,12 @@ declare const listAgentRelations: (db: DatabaseClient) => (params: {
|
|
|
1209
1207
|
declare const getAgentRelations: (db: DatabaseClient) => (params: {
|
|
1210
1208
|
scopes: AgentScopeConfig;
|
|
1211
1209
|
}) => Promise<{
|
|
1212
|
-
tenantId: string;
|
|
1213
|
-
projectId: string;
|
|
1214
1210
|
id: string;
|
|
1215
|
-
graphId: string;
|
|
1216
1211
|
createdAt: string;
|
|
1217
1212
|
updatedAt: string;
|
|
1213
|
+
projectId: string;
|
|
1214
|
+
tenantId: string;
|
|
1215
|
+
graphId: string;
|
|
1218
1216
|
sourceAgentId: string;
|
|
1219
1217
|
targetAgentId: string | null;
|
|
1220
1218
|
externalAgentId: string | null;
|
|
@@ -1223,12 +1221,12 @@ declare const getAgentRelations: (db: DatabaseClient) => (params: {
|
|
|
1223
1221
|
declare const getAgentRelationsByGraph: (db: DatabaseClient) => (params: {
|
|
1224
1222
|
scopes: GraphScopeConfig;
|
|
1225
1223
|
}) => Promise<{
|
|
1226
|
-
tenantId: string;
|
|
1227
|
-
projectId: string;
|
|
1228
1224
|
id: string;
|
|
1229
|
-
graphId: string;
|
|
1230
1225
|
createdAt: string;
|
|
1231
1226
|
updatedAt: string;
|
|
1227
|
+
projectId: string;
|
|
1228
|
+
tenantId: string;
|
|
1229
|
+
graphId: string;
|
|
1232
1230
|
sourceAgentId: string;
|
|
1233
1231
|
targetAgentId: string | null;
|
|
1234
1232
|
externalAgentId: string | null;
|
|
@@ -1328,12 +1326,12 @@ declare const getRelatedAgentsForGraph: (db: DatabaseClient) => (params: {
|
|
|
1328
1326
|
}[];
|
|
1329
1327
|
}>;
|
|
1330
1328
|
declare const createAgentRelation: (db: DatabaseClient) => (params: AgentRelationInsert) => Promise<{
|
|
1331
|
-
tenantId: string;
|
|
1332
|
-
projectId: string;
|
|
1333
1329
|
id: string;
|
|
1334
|
-
graphId: string;
|
|
1335
1330
|
createdAt: string;
|
|
1336
1331
|
updatedAt: string;
|
|
1332
|
+
projectId: string;
|
|
1333
|
+
tenantId: string;
|
|
1334
|
+
graphId: string;
|
|
1337
1335
|
sourceAgentId: string;
|
|
1338
1336
|
targetAgentId: string | null;
|
|
1339
1337
|
externalAgentId: string | null;
|
|
@@ -1349,12 +1347,12 @@ declare const getAgentRelationByParams: (db: DatabaseClient) => (params: {
|
|
|
1349
1347
|
externalAgentId?: string;
|
|
1350
1348
|
relationType: string;
|
|
1351
1349
|
}) => Promise<{
|
|
1352
|
-
tenantId: string;
|
|
1353
|
-
projectId: string;
|
|
1354
1350
|
id: string;
|
|
1355
|
-
graphId: string;
|
|
1356
1351
|
createdAt: string;
|
|
1357
1352
|
updatedAt: string;
|
|
1353
|
+
projectId: string;
|
|
1354
|
+
tenantId: string;
|
|
1355
|
+
graphId: string;
|
|
1358
1356
|
sourceAgentId: string;
|
|
1359
1357
|
targetAgentId: string | null;
|
|
1360
1358
|
externalAgentId: string | null;
|
|
@@ -1364,24 +1362,24 @@ declare const getAgentRelationByParams: (db: DatabaseClient) => (params: {
|
|
|
1364
1362
|
* Upsert agent relation (create if it doesn't exist, no-op if it does)
|
|
1365
1363
|
*/
|
|
1366
1364
|
declare const upsertAgentRelation: (db: DatabaseClient) => (params: AgentRelationInsert) => Promise<{
|
|
1367
|
-
tenantId: string;
|
|
1368
|
-
projectId: string;
|
|
1369
1365
|
id: string;
|
|
1370
|
-
graphId: string;
|
|
1371
1366
|
createdAt: string;
|
|
1372
1367
|
updatedAt: string;
|
|
1368
|
+
projectId: string;
|
|
1369
|
+
tenantId: string;
|
|
1370
|
+
graphId: string;
|
|
1373
1371
|
sourceAgentId: string;
|
|
1374
1372
|
targetAgentId: string | null;
|
|
1375
1373
|
externalAgentId: string | null;
|
|
1376
1374
|
relationType: string | null;
|
|
1377
1375
|
}>;
|
|
1378
1376
|
declare const createExternalAgentRelation: (db: DatabaseClient) => (params: ExternalAgentRelationInsert) => Promise<{
|
|
1379
|
-
tenantId: string;
|
|
1380
|
-
projectId: string;
|
|
1381
1377
|
id: string;
|
|
1382
|
-
graphId: string;
|
|
1383
1378
|
createdAt: string;
|
|
1384
1379
|
updatedAt: string;
|
|
1380
|
+
projectId: string;
|
|
1381
|
+
tenantId: string;
|
|
1382
|
+
graphId: string;
|
|
1385
1383
|
sourceAgentId: string;
|
|
1386
1384
|
targetAgentId: string | null;
|
|
1387
1385
|
externalAgentId: string | null;
|
|
@@ -1392,12 +1390,12 @@ declare const updateAgentRelation: (db: DatabaseClient) => (params: {
|
|
|
1392
1390
|
relationId: string;
|
|
1393
1391
|
data: AgentRelationUpdate;
|
|
1394
1392
|
}) => Promise<{
|
|
1395
|
-
tenantId: string;
|
|
1396
|
-
projectId: string;
|
|
1397
1393
|
id: string;
|
|
1398
|
-
graphId: string;
|
|
1399
1394
|
createdAt: string;
|
|
1400
1395
|
updatedAt: string;
|
|
1396
|
+
projectId: string;
|
|
1397
|
+
tenantId: string;
|
|
1398
|
+
graphId: string;
|
|
1401
1399
|
sourceAgentId: string;
|
|
1402
1400
|
targetAgentId: string | null;
|
|
1403
1401
|
externalAgentId: string | null;
|
|
@@ -1420,32 +1418,32 @@ declare const createAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
|
1420
1418
|
headers?: Record<string, string> | null;
|
|
1421
1419
|
};
|
|
1422
1420
|
}) => Promise<{
|
|
1423
|
-
|
|
1424
|
-
projectId: string;
|
|
1421
|
+
headers: Record<string, string> | null;
|
|
1425
1422
|
id: string;
|
|
1426
|
-
graphId: string;
|
|
1427
1423
|
createdAt: string;
|
|
1428
1424
|
updatedAt: string;
|
|
1429
|
-
|
|
1430
|
-
|
|
1425
|
+
projectId: string;
|
|
1426
|
+
tenantId: string;
|
|
1427
|
+
graphId: string;
|
|
1431
1428
|
selectedTools: string[] | null;
|
|
1432
1429
|
agentId: string;
|
|
1430
|
+
toolId: string;
|
|
1433
1431
|
}>;
|
|
1434
1432
|
declare const updateAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
1435
1433
|
scopes: GraphScopeConfig;
|
|
1436
1434
|
relationId: string;
|
|
1437
1435
|
data: AgentToolRelationUpdate;
|
|
1438
1436
|
}) => Promise<{
|
|
1439
|
-
|
|
1440
|
-
projectId: string;
|
|
1437
|
+
headers: Record<string, string> | null;
|
|
1441
1438
|
id: string;
|
|
1442
|
-
graphId: string;
|
|
1443
1439
|
createdAt: string;
|
|
1444
1440
|
updatedAt: string;
|
|
1445
|
-
|
|
1446
|
-
|
|
1441
|
+
projectId: string;
|
|
1442
|
+
tenantId: string;
|
|
1443
|
+
graphId: string;
|
|
1447
1444
|
selectedTools: string[] | null;
|
|
1448
1445
|
agentId: string;
|
|
1446
|
+
toolId: string;
|
|
1449
1447
|
}>;
|
|
1450
1448
|
declare const deleteAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
1451
1449
|
scopes: GraphScopeConfig;
|
|
@@ -1458,16 +1456,16 @@ declare const getAgentToolRelationById: (db: DatabaseClient) => (params: {
|
|
|
1458
1456
|
scopes: AgentScopeConfig;
|
|
1459
1457
|
relationId: string;
|
|
1460
1458
|
}) => Promise<{
|
|
1461
|
-
|
|
1462
|
-
projectId: string;
|
|
1459
|
+
headers: Record<string, string> | null;
|
|
1463
1460
|
id: string;
|
|
1464
|
-
graphId: string;
|
|
1465
1461
|
createdAt: string;
|
|
1466
1462
|
updatedAt: string;
|
|
1467
|
-
|
|
1468
|
-
|
|
1463
|
+
projectId: string;
|
|
1464
|
+
tenantId: string;
|
|
1465
|
+
graphId: string;
|
|
1469
1466
|
selectedTools: string[] | null;
|
|
1470
1467
|
agentId: string;
|
|
1468
|
+
toolId: string;
|
|
1471
1469
|
} | undefined>;
|
|
1472
1470
|
declare const getAgentToolRelationByAgent: (db: DatabaseClient) => (params: {
|
|
1473
1471
|
scopes: AgentScopeConfig;
|
|
@@ -1555,10 +1553,19 @@ declare const getToolsForAgent: (db: DatabaseClient) => (params: {
|
|
|
1555
1553
|
tool: {
|
|
1556
1554
|
id: string;
|
|
1557
1555
|
name: string;
|
|
1556
|
+
description: string | null;
|
|
1558
1557
|
config: {
|
|
1559
1558
|
type: "mcp";
|
|
1560
1559
|
mcp: ToolMcpConfig;
|
|
1560
|
+
} | {
|
|
1561
|
+
type: "function";
|
|
1562
|
+
function?: {
|
|
1563
|
+
inputSchema: Record<string, unknown>;
|
|
1564
|
+
executeCode: string;
|
|
1565
|
+
dependencies: Record<string, unknown>;
|
|
1566
|
+
};
|
|
1561
1567
|
};
|
|
1568
|
+
functionId: string | null;
|
|
1562
1569
|
createdAt: string;
|
|
1563
1570
|
updatedAt: string;
|
|
1564
1571
|
capabilities: ToolServerCapabilities | null;
|
|
@@ -1636,16 +1643,13 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
|
|
|
1636
1643
|
scopes: GraphScopeConfig;
|
|
1637
1644
|
agentId: string;
|
|
1638
1645
|
}) => Promise<{
|
|
1639
|
-
tenantId: string;
|
|
1640
|
-
projectId: string;
|
|
1641
|
-
id: string;
|
|
1642
1646
|
name: string;
|
|
1643
|
-
|
|
1644
|
-
prompt: string;
|
|
1645
|
-
graphId: string;
|
|
1647
|
+
id: string;
|
|
1646
1648
|
createdAt: string;
|
|
1647
1649
|
updatedAt: string;
|
|
1648
|
-
|
|
1650
|
+
projectId: string;
|
|
1651
|
+
tenantId: string;
|
|
1652
|
+
description: string;
|
|
1649
1653
|
models: {
|
|
1650
1654
|
base?: {
|
|
1651
1655
|
model?: string | undefined;
|
|
@@ -1663,20 +1667,20 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
|
|
|
1663
1667
|
stopWhen: {
|
|
1664
1668
|
stepCountIs?: number | undefined;
|
|
1665
1669
|
} | null;
|
|
1670
|
+
graphId: string;
|
|
1671
|
+
prompt: string;
|
|
1672
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
1666
1673
|
} | undefined>;
|
|
1667
1674
|
declare const listAgents: (db: DatabaseClient) => (params: {
|
|
1668
1675
|
scopes: GraphScopeConfig;
|
|
1669
1676
|
}) => Promise<{
|
|
1670
|
-
tenantId: string;
|
|
1671
|
-
projectId: string;
|
|
1672
|
-
id: string;
|
|
1673
1677
|
name: string;
|
|
1674
|
-
|
|
1675
|
-
prompt: string;
|
|
1676
|
-
graphId: string;
|
|
1678
|
+
id: string;
|
|
1677
1679
|
createdAt: string;
|
|
1678
1680
|
updatedAt: string;
|
|
1679
|
-
|
|
1681
|
+
projectId: string;
|
|
1682
|
+
tenantId: string;
|
|
1683
|
+
description: string;
|
|
1680
1684
|
models: {
|
|
1681
1685
|
base?: {
|
|
1682
1686
|
model?: string | undefined;
|
|
@@ -1694,6 +1698,9 @@ declare const listAgents: (db: DatabaseClient) => (params: {
|
|
|
1694
1698
|
stopWhen: {
|
|
1695
1699
|
stepCountIs?: number | undefined;
|
|
1696
1700
|
} | null;
|
|
1701
|
+
graphId: string;
|
|
1702
|
+
prompt: string;
|
|
1703
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
1697
1704
|
}[]>;
|
|
1698
1705
|
declare const listAgentsPaginated: (db: DatabaseClient) => (params: {
|
|
1699
1706
|
scopes: GraphScopeConfig;
|
|
@@ -1736,16 +1743,13 @@ declare const listAgentsPaginated: (db: DatabaseClient) => (params: {
|
|
|
1736
1743
|
};
|
|
1737
1744
|
}>;
|
|
1738
1745
|
declare const createAgent: (db: DatabaseClient) => (params: AgentInsert) => Promise<{
|
|
1739
|
-
tenantId: string;
|
|
1740
|
-
projectId: string;
|
|
1741
|
-
id: string;
|
|
1742
1746
|
name: string;
|
|
1743
|
-
|
|
1744
|
-
prompt: string;
|
|
1745
|
-
graphId: string;
|
|
1747
|
+
id: string;
|
|
1746
1748
|
createdAt: string;
|
|
1747
1749
|
updatedAt: string;
|
|
1748
|
-
|
|
1750
|
+
projectId: string;
|
|
1751
|
+
tenantId: string;
|
|
1752
|
+
description: string;
|
|
1749
1753
|
models: {
|
|
1750
1754
|
base?: {
|
|
1751
1755
|
model?: string | undefined;
|
|
@@ -1763,22 +1767,22 @@ declare const createAgent: (db: DatabaseClient) => (params: AgentInsert) => Prom
|
|
|
1763
1767
|
stopWhen: {
|
|
1764
1768
|
stepCountIs?: number | undefined;
|
|
1765
1769
|
} | null;
|
|
1770
|
+
graphId: string;
|
|
1771
|
+
prompt: string;
|
|
1772
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
1766
1773
|
}>;
|
|
1767
1774
|
declare const updateAgent: (db: DatabaseClient) => (params: {
|
|
1768
1775
|
scopes: GraphScopeConfig;
|
|
1769
1776
|
agentId: string;
|
|
1770
1777
|
data: AgentUpdate;
|
|
1771
1778
|
}) => Promise<{
|
|
1772
|
-
tenantId: string;
|
|
1773
|
-
projectId: string;
|
|
1774
|
-
id: string;
|
|
1775
1779
|
name: string;
|
|
1776
|
-
|
|
1777
|
-
prompt: string;
|
|
1778
|
-
graphId: string;
|
|
1780
|
+
id: string;
|
|
1779
1781
|
createdAt: string;
|
|
1780
1782
|
updatedAt: string;
|
|
1781
|
-
|
|
1783
|
+
projectId: string;
|
|
1784
|
+
tenantId: string;
|
|
1785
|
+
description: string;
|
|
1782
1786
|
models: {
|
|
1783
1787
|
base?: {
|
|
1784
1788
|
model?: string | undefined;
|
|
@@ -1796,6 +1800,9 @@ declare const updateAgent: (db: DatabaseClient) => (params: {
|
|
|
1796
1800
|
stopWhen: {
|
|
1797
1801
|
stepCountIs?: number | undefined;
|
|
1798
1802
|
} | null;
|
|
1803
|
+
graphId: string;
|
|
1804
|
+
prompt: string;
|
|
1805
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
1799
1806
|
}>;
|
|
1800
1807
|
/**
|
|
1801
1808
|
* Upsert agent (create if it doesn't exist, update if it does)
|
|
@@ -1844,49 +1851,49 @@ declare const getApiKeyById: (db: DatabaseClient) => (params: {
|
|
|
1844
1851
|
scopes: ProjectScopeConfig;
|
|
1845
1852
|
id: string;
|
|
1846
1853
|
}) => Promise<{
|
|
1847
|
-
tenantId: string;
|
|
1848
|
-
projectId: string;
|
|
1849
|
-
id: string;
|
|
1850
1854
|
name: string | null;
|
|
1855
|
+
id: string;
|
|
1856
|
+
createdAt: string;
|
|
1857
|
+
updatedAt: string;
|
|
1858
|
+
projectId: string;
|
|
1859
|
+
tenantId: string;
|
|
1851
1860
|
graphId: string;
|
|
1852
1861
|
publicId: string;
|
|
1853
1862
|
keyHash: string;
|
|
1854
1863
|
keyPrefix: string;
|
|
1855
1864
|
lastUsedAt: string | null;
|
|
1856
1865
|
expiresAt: string | null;
|
|
1857
|
-
createdAt: string;
|
|
1858
|
-
updatedAt: string;
|
|
1859
1866
|
} | undefined>;
|
|
1860
1867
|
declare const getApiKeyByPublicId: (db: DatabaseClient) => (publicId: string) => Promise<{
|
|
1861
|
-
tenantId: string;
|
|
1862
|
-
projectId: string;
|
|
1863
|
-
id: string;
|
|
1864
1868
|
name: string | null;
|
|
1869
|
+
id: string;
|
|
1870
|
+
createdAt: string;
|
|
1871
|
+
updatedAt: string;
|
|
1872
|
+
projectId: string;
|
|
1873
|
+
tenantId: string;
|
|
1865
1874
|
graphId: string;
|
|
1866
1875
|
publicId: string;
|
|
1867
1876
|
keyHash: string;
|
|
1868
1877
|
keyPrefix: string;
|
|
1869
1878
|
lastUsedAt: string | null;
|
|
1870
1879
|
expiresAt: string | null;
|
|
1871
|
-
createdAt: string;
|
|
1872
|
-
updatedAt: string;
|
|
1873
1880
|
} | undefined>;
|
|
1874
1881
|
declare const listApiKeys: (db: DatabaseClient) => (params: {
|
|
1875
1882
|
scopes: ProjectScopeConfig;
|
|
1876
1883
|
graphId?: string;
|
|
1877
1884
|
}) => Promise<{
|
|
1878
|
-
tenantId: string;
|
|
1879
|
-
projectId: string;
|
|
1880
|
-
id: string;
|
|
1881
1885
|
name: string | null;
|
|
1886
|
+
id: string;
|
|
1887
|
+
createdAt: string;
|
|
1888
|
+
updatedAt: string;
|
|
1889
|
+
projectId: string;
|
|
1890
|
+
tenantId: string;
|
|
1882
1891
|
graphId: string;
|
|
1883
1892
|
publicId: string;
|
|
1884
1893
|
keyHash: string;
|
|
1885
1894
|
keyPrefix: string;
|
|
1886
1895
|
lastUsedAt: string | null;
|
|
1887
1896
|
expiresAt: string | null;
|
|
1888
|
-
createdAt: string;
|
|
1889
|
-
updatedAt: string;
|
|
1890
1897
|
}[]>;
|
|
1891
1898
|
declare const listApiKeysPaginated: (db: DatabaseClient) => (params: {
|
|
1892
1899
|
scopes: ProjectScopeConfig;
|
|
@@ -1902,36 +1909,36 @@ declare const listApiKeysPaginated: (db: DatabaseClient) => (params: {
|
|
|
1902
1909
|
};
|
|
1903
1910
|
}>;
|
|
1904
1911
|
declare const createApiKey: (db: DatabaseClient) => (params: ApiKeyInsert) => Promise<{
|
|
1905
|
-
tenantId: string;
|
|
1906
|
-
projectId: string;
|
|
1907
|
-
id: string;
|
|
1908
1912
|
name: string | null;
|
|
1913
|
+
id: string;
|
|
1914
|
+
createdAt: string;
|
|
1915
|
+
updatedAt: string;
|
|
1916
|
+
projectId: string;
|
|
1917
|
+
tenantId: string;
|
|
1909
1918
|
graphId: string;
|
|
1910
1919
|
publicId: string;
|
|
1911
1920
|
keyHash: string;
|
|
1912
1921
|
keyPrefix: string;
|
|
1913
1922
|
lastUsedAt: string | null;
|
|
1914
1923
|
expiresAt: string | null;
|
|
1915
|
-
createdAt: string;
|
|
1916
|
-
updatedAt: string;
|
|
1917
1924
|
}>;
|
|
1918
1925
|
declare const updateApiKey: (db: DatabaseClient) => (params: {
|
|
1919
1926
|
scopes: ProjectScopeConfig;
|
|
1920
1927
|
id: string;
|
|
1921
1928
|
data: ApiKeyUpdate;
|
|
1922
1929
|
}) => Promise<{
|
|
1923
|
-
tenantId: string;
|
|
1924
|
-
projectId: string;
|
|
1925
|
-
id: string;
|
|
1926
1930
|
name: string | null;
|
|
1931
|
+
id: string;
|
|
1932
|
+
createdAt: string;
|
|
1933
|
+
updatedAt: string;
|
|
1934
|
+
projectId: string;
|
|
1935
|
+
tenantId: string;
|
|
1927
1936
|
graphId: string;
|
|
1928
1937
|
publicId: string;
|
|
1929
1938
|
keyHash: string;
|
|
1930
1939
|
keyPrefix: string;
|
|
1931
1940
|
lastUsedAt: string | null;
|
|
1932
1941
|
expiresAt: string | null;
|
|
1933
|
-
createdAt: string;
|
|
1934
|
-
updatedAt: string;
|
|
1935
1942
|
}>;
|
|
1936
1943
|
declare const deleteApiKey: (db: DatabaseClient) => (params: {
|
|
1937
1944
|
scopes: ProjectScopeConfig;
|
|
@@ -1960,23 +1967,21 @@ declare const getArtifactComponentById: (db: DatabaseClient) => (params: {
|
|
|
1960
1967
|
scopes: ProjectScopeConfig;
|
|
1961
1968
|
id: string;
|
|
1962
1969
|
}) => Promise<{
|
|
1963
|
-
tenantId: string;
|
|
1964
|
-
projectId: string;
|
|
1965
|
-
id: string;
|
|
1966
1970
|
name: string;
|
|
1967
|
-
|
|
1971
|
+
id: string;
|
|
1968
1972
|
createdAt: string;
|
|
1969
1973
|
updatedAt: string;
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1974
|
+
projectId: string;
|
|
1975
|
+
tenantId: string;
|
|
1976
|
+
description: string;
|
|
1977
|
+
props: Record<string, unknown> | null;
|
|
1978
|
+
} | undefined>;
|
|
1973
1979
|
declare const listArtifactComponents: (db: DatabaseClient) => (params: {
|
|
1974
1980
|
scopes: ProjectScopeConfig;
|
|
1975
1981
|
}) => Promise<{
|
|
1976
1982
|
createdAt: string;
|
|
1977
1983
|
updatedAt: string;
|
|
1978
|
-
|
|
1979
|
-
fullProps: Record<string, unknown> | null;
|
|
1984
|
+
props: Record<string, unknown> | null;
|
|
1980
1985
|
name: string;
|
|
1981
1986
|
description: string;
|
|
1982
1987
|
projectId: string;
|
|
@@ -1996,30 +2001,28 @@ declare const listArtifactComponentsPaginated: (db: DatabaseClient) => (params:
|
|
|
1996
2001
|
};
|
|
1997
2002
|
}>;
|
|
1998
2003
|
declare const createArtifactComponent: (db: DatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
|
|
1999
|
-
tenantId: string;
|
|
2000
|
-
projectId: string;
|
|
2001
|
-
id: string;
|
|
2002
2004
|
name: string;
|
|
2003
|
-
|
|
2005
|
+
id: string;
|
|
2004
2006
|
createdAt: string;
|
|
2005
2007
|
updatedAt: string;
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
+
projectId: string;
|
|
2009
|
+
tenantId: string;
|
|
2010
|
+
description: string;
|
|
2011
|
+
props: Record<string, unknown> | null;
|
|
2008
2012
|
}>;
|
|
2009
2013
|
declare const updateArtifactComponent: (db: DatabaseClient) => (params: {
|
|
2010
2014
|
scopes: ProjectScopeConfig;
|
|
2011
2015
|
id: string;
|
|
2012
2016
|
data: ArtifactComponentUpdate;
|
|
2013
2017
|
}) => Promise<{
|
|
2014
|
-
tenantId: string;
|
|
2015
|
-
projectId: string;
|
|
2016
|
-
id: string;
|
|
2017
2018
|
name: string;
|
|
2018
|
-
|
|
2019
|
+
id: string;
|
|
2019
2020
|
createdAt: string;
|
|
2020
2021
|
updatedAt: string;
|
|
2021
|
-
|
|
2022
|
-
|
|
2022
|
+
projectId: string;
|
|
2023
|
+
tenantId: string;
|
|
2024
|
+
description: string;
|
|
2025
|
+
props: Record<string, unknown> | null;
|
|
2023
2026
|
}>;
|
|
2024
2027
|
declare const deleteArtifactComponent: (db: DatabaseClient) => (params: {
|
|
2025
2028
|
scopes: ProjectScopeConfig;
|
|
@@ -2033,8 +2036,7 @@ declare const getArtifactComponentsForAgent: (db: DatabaseClient) => (params: {
|
|
|
2033
2036
|
projectId: string;
|
|
2034
2037
|
name: string;
|
|
2035
2038
|
description: string;
|
|
2036
|
-
|
|
2037
|
-
fullProps: Record<string, unknown> | null;
|
|
2039
|
+
props: Record<string, unknown> | null;
|
|
2038
2040
|
createdAt: string;
|
|
2039
2041
|
updatedAt: string;
|
|
2040
2042
|
}[]>;
|
|
@@ -2042,11 +2044,11 @@ declare const associateArtifactComponentWithAgent: (db: DatabaseClient) => (para
|
|
|
2042
2044
|
scopes: AgentScopeConfig;
|
|
2043
2045
|
artifactComponentId: string;
|
|
2044
2046
|
}) => Promise<{
|
|
2045
|
-
tenantId: string;
|
|
2046
|
-
projectId: string;
|
|
2047
2047
|
id: string;
|
|
2048
|
-
graphId: string;
|
|
2049
2048
|
createdAt: string;
|
|
2049
|
+
projectId: string;
|
|
2050
|
+
tenantId: string;
|
|
2051
|
+
graphId: string;
|
|
2050
2052
|
agentId: string;
|
|
2051
2053
|
artifactComponentId: string;
|
|
2052
2054
|
}>;
|
|
@@ -2085,11 +2087,11 @@ declare const upsertAgentArtifactComponentRelation: (db: DatabaseClient) => (par
|
|
|
2085
2087
|
scopes: AgentScopeConfig;
|
|
2086
2088
|
artifactComponentId: string;
|
|
2087
2089
|
}) => Promise<{
|
|
2088
|
-
tenantId: string;
|
|
2089
|
-
projectId: string;
|
|
2090
2090
|
id: string;
|
|
2091
|
-
graphId: string;
|
|
2092
2091
|
createdAt: string;
|
|
2092
|
+
projectId: string;
|
|
2093
|
+
tenantId: string;
|
|
2094
|
+
graphId: string;
|
|
2093
2095
|
agentId: string;
|
|
2094
2096
|
artifactComponentId: string;
|
|
2095
2097
|
} | null>;
|
|
@@ -2134,9 +2136,9 @@ declare const cleanupTenantCache: (db: DatabaseClient) => (params: {
|
|
|
2134
2136
|
scopes: ProjectScopeConfig;
|
|
2135
2137
|
}) => Promise<number>;
|
|
2136
2138
|
/**
|
|
2137
|
-
* Invalidate the
|
|
2139
|
+
* Invalidate the headers cache for a conversation
|
|
2138
2140
|
*/
|
|
2139
|
-
declare const
|
|
2141
|
+
declare const invalidateHeadersCache: (db: DatabaseClient) => (params: {
|
|
2140
2142
|
scopes: ProjectScopeConfig;
|
|
2141
2143
|
conversationId: string;
|
|
2142
2144
|
contextConfigId: string;
|
|
@@ -2169,30 +2171,26 @@ declare const getContextConfigById: (db: DatabaseClient) => (params: {
|
|
|
2169
2171
|
scopes: GraphScopeConfig;
|
|
2170
2172
|
id: string;
|
|
2171
2173
|
}) => Promise<{
|
|
2172
|
-
tenantId: string;
|
|
2173
|
-
projectId: string;
|
|
2174
2174
|
id: string;
|
|
2175
|
-
name: string;
|
|
2176
|
-
description: string;
|
|
2177
|
-
graphId: string;
|
|
2178
2175
|
createdAt: string;
|
|
2179
2176
|
updatedAt: string;
|
|
2180
|
-
|
|
2177
|
+
projectId: string;
|
|
2178
|
+
tenantId: string;
|
|
2179
|
+
headersSchema: unknown;
|
|
2181
2180
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
2181
|
+
graphId: string;
|
|
2182
2182
|
} | undefined>;
|
|
2183
2183
|
declare const listContextConfigs: (db: DatabaseClient) => (params: {
|
|
2184
2184
|
scopes: GraphScopeConfig;
|
|
2185
2185
|
}) => Promise<{
|
|
2186
|
-
tenantId: string;
|
|
2187
|
-
projectId: string;
|
|
2188
2186
|
id: string;
|
|
2189
|
-
name: string;
|
|
2190
|
-
description: string;
|
|
2191
|
-
graphId: string;
|
|
2192
2187
|
createdAt: string;
|
|
2193
2188
|
updatedAt: string;
|
|
2194
|
-
|
|
2189
|
+
projectId: string;
|
|
2190
|
+
tenantId: string;
|
|
2191
|
+
headersSchema: unknown;
|
|
2195
2192
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
2193
|
+
graphId: string;
|
|
2196
2194
|
}[]>;
|
|
2197
2195
|
declare const listContextConfigsPaginated: (db: DatabaseClient) => (params: {
|
|
2198
2196
|
scopes: GraphScopeConfig;
|
|
@@ -2207,32 +2205,28 @@ declare const listContextConfigsPaginated: (db: DatabaseClient) => (params: {
|
|
|
2207
2205
|
};
|
|
2208
2206
|
}>;
|
|
2209
2207
|
declare const createContextConfig: (db: DatabaseClient) => (params: ContextConfigInsert) => Promise<{
|
|
2210
|
-
tenantId: string;
|
|
2211
|
-
projectId: string;
|
|
2212
2208
|
id: string;
|
|
2213
|
-
name: string;
|
|
2214
|
-
description: string;
|
|
2215
|
-
graphId: string;
|
|
2216
2209
|
createdAt: string;
|
|
2217
2210
|
updatedAt: string;
|
|
2218
|
-
|
|
2211
|
+
projectId: string;
|
|
2212
|
+
tenantId: string;
|
|
2213
|
+
headersSchema: unknown;
|
|
2219
2214
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
2215
|
+
graphId: string;
|
|
2220
2216
|
}>;
|
|
2221
2217
|
declare const updateContextConfig: (db: DatabaseClient) => (params: {
|
|
2222
2218
|
scopes: GraphScopeConfig;
|
|
2223
2219
|
id: string;
|
|
2224
2220
|
data: Partial<ContextConfigUpdate>;
|
|
2225
2221
|
}) => Promise<{
|
|
2226
|
-
tenantId: string;
|
|
2227
|
-
projectId: string;
|
|
2228
2222
|
id: string;
|
|
2229
|
-
name: string;
|
|
2230
|
-
description: string;
|
|
2231
|
-
graphId: string;
|
|
2232
2223
|
createdAt: string;
|
|
2233
2224
|
updatedAt: string;
|
|
2234
|
-
|
|
2225
|
+
projectId: string;
|
|
2226
|
+
tenantId: string;
|
|
2227
|
+
headersSchema: unknown;
|
|
2235
2228
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
2229
|
+
graphId: string;
|
|
2236
2230
|
}>;
|
|
2237
2231
|
declare const deleteContextConfig: (db: DatabaseClient) => (params: {
|
|
2238
2232
|
scopes: GraphScopeConfig;
|
|
@@ -2245,37 +2239,20 @@ declare const hasContextConfig: (db: DatabaseClient) => (params: {
|
|
|
2245
2239
|
declare const countContextConfigs: (db: DatabaseClient) => (params: {
|
|
2246
2240
|
scopes: GraphScopeConfig;
|
|
2247
2241
|
}) => Promise<number>;
|
|
2248
|
-
declare const getContextConfigsByName: (db: DatabaseClient) => (params: {
|
|
2249
|
-
scopes: GraphScopeConfig;
|
|
2250
|
-
name: string;
|
|
2251
|
-
}) => Promise<{
|
|
2252
|
-
tenantId: string;
|
|
2253
|
-
projectId: string;
|
|
2254
|
-
id: string;
|
|
2255
|
-
name: string;
|
|
2256
|
-
description: string;
|
|
2257
|
-
graphId: string;
|
|
2258
|
-
createdAt: string;
|
|
2259
|
-
updatedAt: string;
|
|
2260
|
-
requestContextSchema: unknown;
|
|
2261
|
-
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
2262
|
-
}[]>;
|
|
2263
2242
|
/**
|
|
2264
2243
|
* Upsert a context config (create if it doesn't exist, update if it does)
|
|
2265
2244
|
*/
|
|
2266
2245
|
declare const upsertContextConfig: (db: DatabaseClient) => (params: {
|
|
2267
2246
|
data: ContextConfigInsert;
|
|
2268
2247
|
}) => Promise<{
|
|
2269
|
-
tenantId: string;
|
|
2270
|
-
projectId: string;
|
|
2271
2248
|
id: string;
|
|
2272
|
-
name: string;
|
|
2273
|
-
description: string;
|
|
2274
|
-
graphId: string;
|
|
2275
2249
|
createdAt: string;
|
|
2276
2250
|
updatedAt: string;
|
|
2277
|
-
|
|
2251
|
+
projectId: string;
|
|
2252
|
+
tenantId: string;
|
|
2253
|
+
headersSchema: unknown;
|
|
2278
2254
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
2255
|
+
graphId: string;
|
|
2279
2256
|
}>;
|
|
2280
2257
|
|
|
2281
2258
|
declare const listConversations: (db: DatabaseClient) => (params: {
|
|
@@ -2287,11 +2264,11 @@ declare const listConversations: (db: DatabaseClient) => (params: {
|
|
|
2287
2264
|
total: number;
|
|
2288
2265
|
}>;
|
|
2289
2266
|
declare const createConversation: (db: DatabaseClient) => (params: ConversationInsert) => Promise<{
|
|
2290
|
-
tenantId: string;
|
|
2291
|
-
projectId: string;
|
|
2292
2267
|
id: string;
|
|
2293
2268
|
createdAt: string;
|
|
2294
2269
|
updatedAt: string;
|
|
2270
|
+
projectId: string;
|
|
2271
|
+
tenantId: string;
|
|
2295
2272
|
title: string | null;
|
|
2296
2273
|
metadata: ConversationMetadata | null;
|
|
2297
2274
|
userId: string | null;
|
|
@@ -2303,11 +2280,11 @@ declare const updateConversation: (db: DatabaseClient) => (params: {
|
|
|
2303
2280
|
conversationId: string;
|
|
2304
2281
|
data: ConversationUpdate;
|
|
2305
2282
|
}) => Promise<{
|
|
2306
|
-
tenantId: string;
|
|
2307
|
-
projectId: string;
|
|
2308
2283
|
id: string;
|
|
2309
2284
|
createdAt: string;
|
|
2310
2285
|
updatedAt: string;
|
|
2286
|
+
projectId: string;
|
|
2287
|
+
tenantId: string;
|
|
2311
2288
|
title: string | null;
|
|
2312
2289
|
metadata: ConversationMetadata | null;
|
|
2313
2290
|
userId: string | null;
|
|
@@ -2323,11 +2300,11 @@ declare const updateConversationActiveAgent: (db: DatabaseClient) => (params: {
|
|
|
2323
2300
|
conversationId: string;
|
|
2324
2301
|
activeAgentId: string;
|
|
2325
2302
|
}) => Promise<{
|
|
2326
|
-
tenantId: string;
|
|
2327
|
-
projectId: string;
|
|
2328
2303
|
id: string;
|
|
2329
2304
|
createdAt: string;
|
|
2330
2305
|
updatedAt: string;
|
|
2306
|
+
projectId: string;
|
|
2307
|
+
tenantId: string;
|
|
2331
2308
|
title: string | null;
|
|
2332
2309
|
metadata: ConversationMetadata | null;
|
|
2333
2310
|
userId: string | null;
|
|
@@ -2338,11 +2315,11 @@ declare const getConversation: (db: DatabaseClient) => (params: {
|
|
|
2338
2315
|
scopes: ProjectScopeConfig;
|
|
2339
2316
|
conversationId: string;
|
|
2340
2317
|
}) => Promise<{
|
|
2341
|
-
tenantId: string;
|
|
2342
|
-
projectId: string;
|
|
2343
2318
|
id: string;
|
|
2344
2319
|
createdAt: string;
|
|
2345
2320
|
updatedAt: string;
|
|
2321
|
+
projectId: string;
|
|
2322
|
+
tenantId: string;
|
|
2346
2323
|
title: string | null;
|
|
2347
2324
|
metadata: ConversationMetadata | null;
|
|
2348
2325
|
userId: string | null;
|
|
@@ -2376,11 +2353,11 @@ declare const getActiveAgentForConversation: (db: DatabaseClient) => (params: {
|
|
|
2376
2353
|
scopes: ProjectScopeConfig;
|
|
2377
2354
|
conversationId: string;
|
|
2378
2355
|
}) => Promise<{
|
|
2379
|
-
tenantId: string;
|
|
2380
|
-
projectId: string;
|
|
2381
2356
|
id: string;
|
|
2382
2357
|
createdAt: string;
|
|
2383
2358
|
updatedAt: string;
|
|
2359
|
+
projectId: string;
|
|
2360
|
+
tenantId: string;
|
|
2384
2361
|
title: string | null;
|
|
2385
2362
|
metadata: ConversationMetadata | null;
|
|
2386
2363
|
userId: string | null;
|
|
@@ -2545,11 +2522,11 @@ declare const associateDataComponentWithAgent: (db: DatabaseClient) => (params:
|
|
|
2545
2522
|
scopes: AgentScopeConfig;
|
|
2546
2523
|
dataComponentId: string;
|
|
2547
2524
|
}) => Promise<{
|
|
2548
|
-
tenantId: string;
|
|
2549
|
-
projectId: string;
|
|
2550
2525
|
id: string;
|
|
2551
|
-
graphId: string;
|
|
2552
2526
|
createdAt: string;
|
|
2527
|
+
projectId: string;
|
|
2528
|
+
tenantId: string;
|
|
2529
|
+
graphId: string;
|
|
2553
2530
|
agentId: string;
|
|
2554
2531
|
dataComponentId: string;
|
|
2555
2532
|
}>;
|
|
@@ -2587,11 +2564,11 @@ declare const upsertAgentDataComponentRelation: (db: DatabaseClient) => (params:
|
|
|
2587
2564
|
scopes: AgentScopeConfig;
|
|
2588
2565
|
dataComponentId: string;
|
|
2589
2566
|
}) => Promise<{
|
|
2590
|
-
tenantId: string;
|
|
2591
|
-
projectId: string;
|
|
2592
2567
|
id: string;
|
|
2593
|
-
graphId: string;
|
|
2594
2568
|
createdAt: string;
|
|
2569
|
+
projectId: string;
|
|
2570
|
+
tenantId: string;
|
|
2571
|
+
graphId: string;
|
|
2595
2572
|
agentId: string;
|
|
2596
2573
|
dataComponentId: string;
|
|
2597
2574
|
} | null>;
|
|
@@ -2689,6 +2666,34 @@ declare const countExternalAgents: (db: DatabaseClient) => (params: {
|
|
|
2689
2666
|
scopes: GraphScopeConfig;
|
|
2690
2667
|
}) => Promise<number>;
|
|
2691
2668
|
|
|
2669
|
+
/**
|
|
2670
|
+
* Create or update a function (project-scoped)
|
|
2671
|
+
*/
|
|
2672
|
+
declare const upsertFunction: (db: DatabaseClient) => (params: {
|
|
2673
|
+
data: FunctionApiInsert;
|
|
2674
|
+
scopes: ProjectScopeConfig;
|
|
2675
|
+
}) => Promise<void>;
|
|
2676
|
+
/**
|
|
2677
|
+
* Get a function by ID (project-scoped)
|
|
2678
|
+
*/
|
|
2679
|
+
declare const getFunction: (db: DatabaseClient) => (params: {
|
|
2680
|
+
functionId: string;
|
|
2681
|
+
scopes: ProjectScopeConfig;
|
|
2682
|
+
}) => Promise<FunctionApiInsert | null>;
|
|
2683
|
+
/**
|
|
2684
|
+
* List all functions for a project
|
|
2685
|
+
*/
|
|
2686
|
+
declare const listFunctions: (db: DatabaseClient) => (params: {
|
|
2687
|
+
scopes: ProjectScopeConfig;
|
|
2688
|
+
}) => Promise<FunctionApiInsert[]>;
|
|
2689
|
+
/**
|
|
2690
|
+
* Delete a function (project-scoped)
|
|
2691
|
+
*/
|
|
2692
|
+
declare const deleteFunction: (db: DatabaseClient) => (params: {
|
|
2693
|
+
functionId: string;
|
|
2694
|
+
scopes: ProjectScopeConfig;
|
|
2695
|
+
}) => Promise<void>;
|
|
2696
|
+
|
|
2692
2697
|
interface GraphLogger {
|
|
2693
2698
|
info(obj: Record<string, any>, msg?: string): void;
|
|
2694
2699
|
error(obj: Record<string, any>, msg?: string): void;
|
|
@@ -2782,11 +2787,11 @@ declare const getMessageById: (db: DatabaseClient) => (params: {
|
|
|
2782
2787
|
scopes: ProjectScopeConfig;
|
|
2783
2788
|
messageId: string;
|
|
2784
2789
|
}) => Promise<{
|
|
2785
|
-
tenantId: string;
|
|
2786
|
-
projectId: string;
|
|
2787
2790
|
id: string;
|
|
2788
2791
|
createdAt: string;
|
|
2789
2792
|
updatedAt: string;
|
|
2793
|
+
projectId: string;
|
|
2794
|
+
tenantId: string;
|
|
2790
2795
|
metadata: MessageMetadata | null;
|
|
2791
2796
|
content: MessageContent;
|
|
2792
2797
|
conversationId: string;
|
|
@@ -2908,11 +2913,11 @@ declare const getVisibleMessages: (db: DatabaseClient) => (params: {
|
|
|
2908
2913
|
id: string;
|
|
2909
2914
|
}[]>;
|
|
2910
2915
|
declare const createMessage: (db: DatabaseClient) => (params: MessageInsert) => Promise<{
|
|
2911
|
-
tenantId: string;
|
|
2912
|
-
projectId: string;
|
|
2913
2916
|
id: string;
|
|
2914
2917
|
createdAt: string;
|
|
2915
2918
|
updatedAt: string;
|
|
2919
|
+
projectId: string;
|
|
2920
|
+
tenantId: string;
|
|
2916
2921
|
metadata: MessageMetadata | null;
|
|
2917
2922
|
content: MessageContent;
|
|
2918
2923
|
conversationId: string;
|
|
@@ -2934,11 +2939,11 @@ declare const updateMessage: (db: DatabaseClient) => (params: {
|
|
|
2934
2939
|
messageId: string;
|
|
2935
2940
|
data: MessageUpdate;
|
|
2936
2941
|
}) => Promise<{
|
|
2937
|
-
tenantId: string;
|
|
2938
|
-
projectId: string;
|
|
2939
2942
|
id: string;
|
|
2940
2943
|
createdAt: string;
|
|
2941
2944
|
updatedAt: string;
|
|
2945
|
+
projectId: string;
|
|
2946
|
+
tenantId: string;
|
|
2942
2947
|
metadata: MessageMetadata | null;
|
|
2943
2948
|
content: MessageContent;
|
|
2944
2949
|
conversationId: string;
|
|
@@ -2959,11 +2964,11 @@ declare const deleteMessage: (db: DatabaseClient) => (params: {
|
|
|
2959
2964
|
scopes: ProjectScopeConfig;
|
|
2960
2965
|
messageId: string;
|
|
2961
2966
|
}) => Promise<{
|
|
2962
|
-
tenantId: string;
|
|
2963
|
-
projectId: string;
|
|
2964
2967
|
id: string;
|
|
2965
2968
|
createdAt: string;
|
|
2966
2969
|
updatedAt: string;
|
|
2970
|
+
projectId: string;
|
|
2971
|
+
tenantId: string;
|
|
2967
2972
|
metadata: MessageMetadata | null;
|
|
2968
2973
|
content: MessageContent;
|
|
2969
2974
|
conversationId: string;
|
|
@@ -3080,14 +3085,14 @@ declare const deleteProject: (db: DatabaseClient) => (params: {
|
|
|
3080
3085
|
}) => Promise<boolean>;
|
|
3081
3086
|
|
|
3082
3087
|
declare const createTask: (db: DatabaseClient) => (params: TaskInsert) => Promise<{
|
|
3083
|
-
tenantId: string;
|
|
3084
|
-
projectId: string;
|
|
3085
3088
|
id: string;
|
|
3086
|
-
graphId: string;
|
|
3087
3089
|
createdAt: string;
|
|
3088
3090
|
updatedAt: string;
|
|
3089
|
-
|
|
3091
|
+
projectId: string;
|
|
3092
|
+
tenantId: string;
|
|
3093
|
+
graphId: string;
|
|
3090
3094
|
status: string;
|
|
3095
|
+
metadata: TaskMetadataConfig | null;
|
|
3091
3096
|
contextId: string;
|
|
3092
3097
|
agentId: string;
|
|
3093
3098
|
}>;
|
|
@@ -3101,14 +3106,14 @@ declare const updateTask: (db: DatabaseClient) => (params: {
|
|
|
3101
3106
|
metadata?: any;
|
|
3102
3107
|
};
|
|
3103
3108
|
}) => Promise<{
|
|
3104
|
-
tenantId: string;
|
|
3105
|
-
projectId: string;
|
|
3106
3109
|
id: string;
|
|
3107
|
-
graphId: string;
|
|
3108
3110
|
createdAt: string;
|
|
3109
3111
|
updatedAt: string;
|
|
3110
|
-
|
|
3112
|
+
projectId: string;
|
|
3113
|
+
tenantId: string;
|
|
3114
|
+
graphId: string;
|
|
3111
3115
|
status: string;
|
|
3116
|
+
metadata: TaskMetadataConfig | null;
|
|
3112
3117
|
contextId: string;
|
|
3113
3118
|
agentId: string;
|
|
3114
3119
|
}>;
|
|
@@ -3121,19 +3126,28 @@ declare const getToolById: (db: DatabaseClient) => (params: {
|
|
|
3121
3126
|
scopes: ProjectScopeConfig;
|
|
3122
3127
|
toolId: string;
|
|
3123
3128
|
}) => Promise<{
|
|
3124
|
-
tenantId: string;
|
|
3125
|
-
projectId: string;
|
|
3126
|
-
id: string;
|
|
3127
3129
|
name: string;
|
|
3130
|
+
headers: Record<string, string> | null;
|
|
3131
|
+
id: string;
|
|
3132
|
+
createdAt: string;
|
|
3133
|
+
updatedAt: string;
|
|
3134
|
+
projectId: string;
|
|
3135
|
+
tenantId: string;
|
|
3136
|
+
description: string | null;
|
|
3137
|
+
credentialReferenceId: string | null;
|
|
3138
|
+
capabilities: ToolServerCapabilities | null;
|
|
3128
3139
|
config: {
|
|
3129
3140
|
type: "mcp";
|
|
3130
3141
|
mcp: ToolMcpConfig;
|
|
3142
|
+
} | {
|
|
3143
|
+
type: "function";
|
|
3144
|
+
function?: {
|
|
3145
|
+
inputSchema: Record<string, unknown>;
|
|
3146
|
+
executeCode: string;
|
|
3147
|
+
dependencies: Record<string, unknown>;
|
|
3148
|
+
};
|
|
3131
3149
|
};
|
|
3132
|
-
|
|
3133
|
-
createdAt: string;
|
|
3134
|
-
updatedAt: string;
|
|
3135
|
-
headers: Record<string, string> | null;
|
|
3136
|
-
capabilities: ToolServerCapabilities | null;
|
|
3150
|
+
functionId: string | null;
|
|
3137
3151
|
imageUrl: string | null;
|
|
3138
3152
|
lastError: string | null;
|
|
3139
3153
|
} | null>;
|
|
@@ -3145,10 +3159,19 @@ declare const listTools: (db: DatabaseClient) => (params: {
|
|
|
3145
3159
|
createdAt: string;
|
|
3146
3160
|
updatedAt: string;
|
|
3147
3161
|
name: string;
|
|
3162
|
+
description: string | null;
|
|
3148
3163
|
config: {
|
|
3149
3164
|
type: "mcp";
|
|
3150
3165
|
mcp: ToolMcpConfig;
|
|
3166
|
+
} | {
|
|
3167
|
+
type: "function";
|
|
3168
|
+
function?: {
|
|
3169
|
+
inputSchema: Record<string, unknown>;
|
|
3170
|
+
executeCode: string;
|
|
3171
|
+
dependencies: Record<string, unknown>;
|
|
3172
|
+
};
|
|
3151
3173
|
};
|
|
3174
|
+
functionId: string | null;
|
|
3152
3175
|
credentialReferenceId: string | null;
|
|
3153
3176
|
headers: Record<string, string> | null;
|
|
3154
3177
|
imageUrl: string | null;
|
|
@@ -3166,19 +3189,28 @@ declare const listTools: (db: DatabaseClient) => (params: {
|
|
|
3166
3189
|
};
|
|
3167
3190
|
}>;
|
|
3168
3191
|
declare const createTool: (db: DatabaseClient) => (params: ToolInsert) => Promise<{
|
|
3169
|
-
tenantId: string;
|
|
3170
|
-
projectId: string;
|
|
3171
|
-
id: string;
|
|
3172
3192
|
name: string;
|
|
3193
|
+
headers: Record<string, string> | null;
|
|
3194
|
+
id: string;
|
|
3195
|
+
createdAt: string;
|
|
3196
|
+
updatedAt: string;
|
|
3197
|
+
projectId: string;
|
|
3198
|
+
tenantId: string;
|
|
3199
|
+
description: string | null;
|
|
3200
|
+
credentialReferenceId: string | null;
|
|
3201
|
+
capabilities: ToolServerCapabilities | null;
|
|
3173
3202
|
config: {
|
|
3174
3203
|
type: "mcp";
|
|
3175
3204
|
mcp: ToolMcpConfig;
|
|
3205
|
+
} | {
|
|
3206
|
+
type: "function";
|
|
3207
|
+
function?: {
|
|
3208
|
+
inputSchema: Record<string, unknown>;
|
|
3209
|
+
executeCode: string;
|
|
3210
|
+
dependencies: Record<string, unknown>;
|
|
3211
|
+
};
|
|
3176
3212
|
};
|
|
3177
|
-
|
|
3178
|
-
createdAt: string;
|
|
3179
|
-
updatedAt: string;
|
|
3180
|
-
headers: Record<string, string> | null;
|
|
3181
|
-
capabilities: ToolServerCapabilities | null;
|
|
3213
|
+
functionId: string | null;
|
|
3182
3214
|
imageUrl: string | null;
|
|
3183
3215
|
lastError: string | null;
|
|
3184
3216
|
}>;
|
|
@@ -3187,19 +3219,28 @@ declare const updateTool: (db: DatabaseClient) => (params: {
|
|
|
3187
3219
|
toolId: string;
|
|
3188
3220
|
data: ToolUpdate;
|
|
3189
3221
|
}) => Promise<{
|
|
3190
|
-
tenantId: string;
|
|
3191
|
-
projectId: string;
|
|
3192
|
-
id: string;
|
|
3193
3222
|
name: string;
|
|
3223
|
+
headers: Record<string, string> | null;
|
|
3224
|
+
id: string;
|
|
3225
|
+
createdAt: string;
|
|
3226
|
+
updatedAt: string;
|
|
3227
|
+
projectId: string;
|
|
3228
|
+
tenantId: string;
|
|
3229
|
+
description: string | null;
|
|
3230
|
+
credentialReferenceId: string | null;
|
|
3231
|
+
capabilities: ToolServerCapabilities | null;
|
|
3194
3232
|
config: {
|
|
3195
3233
|
type: "mcp";
|
|
3196
3234
|
mcp: ToolMcpConfig;
|
|
3235
|
+
} | {
|
|
3236
|
+
type: "function";
|
|
3237
|
+
function?: {
|
|
3238
|
+
inputSchema: Record<string, unknown>;
|
|
3239
|
+
executeCode: string;
|
|
3240
|
+
dependencies: Record<string, unknown>;
|
|
3241
|
+
};
|
|
3197
3242
|
};
|
|
3198
|
-
|
|
3199
|
-
createdAt: string;
|
|
3200
|
-
updatedAt: string;
|
|
3201
|
-
headers: Record<string, string> | null;
|
|
3202
|
-
capabilities: ToolServerCapabilities | null;
|
|
3243
|
+
functionId: string | null;
|
|
3203
3244
|
imageUrl: string | null;
|
|
3204
3245
|
lastError: string | null;
|
|
3205
3246
|
}>;
|
|
@@ -3214,32 +3255,32 @@ declare const addToolToAgent: (db: DatabaseClient) => (params: {
|
|
|
3214
3255
|
selectedTools?: string[] | null;
|
|
3215
3256
|
headers?: Record<string, string> | null;
|
|
3216
3257
|
}) => Promise<{
|
|
3217
|
-
|
|
3218
|
-
projectId: string;
|
|
3258
|
+
headers: Record<string, string> | null;
|
|
3219
3259
|
id: string;
|
|
3220
|
-
graphId: string;
|
|
3221
3260
|
createdAt: string;
|
|
3222
3261
|
updatedAt: string;
|
|
3223
|
-
|
|
3224
|
-
|
|
3262
|
+
projectId: string;
|
|
3263
|
+
tenantId: string;
|
|
3264
|
+
graphId: string;
|
|
3225
3265
|
selectedTools: string[] | null;
|
|
3226
3266
|
agentId: string;
|
|
3267
|
+
toolId: string;
|
|
3227
3268
|
}>;
|
|
3228
3269
|
declare const removeToolFromAgent: (db: DatabaseClient) => (params: {
|
|
3229
3270
|
scopes: GraphScopeConfig;
|
|
3230
3271
|
agentId: string;
|
|
3231
3272
|
toolId: string;
|
|
3232
3273
|
}) => Promise<{
|
|
3233
|
-
|
|
3234
|
-
projectId: string;
|
|
3274
|
+
headers: Record<string, string> | null;
|
|
3235
3275
|
id: string;
|
|
3236
|
-
graphId: string;
|
|
3237
3276
|
createdAt: string;
|
|
3238
3277
|
updatedAt: string;
|
|
3239
|
-
|
|
3240
|
-
|
|
3278
|
+
projectId: string;
|
|
3279
|
+
tenantId: string;
|
|
3280
|
+
graphId: string;
|
|
3241
3281
|
selectedTools: string[] | null;
|
|
3242
3282
|
agentId: string;
|
|
3283
|
+
toolId: string;
|
|
3243
3284
|
}>;
|
|
3244
3285
|
/**
|
|
3245
3286
|
* Upsert agent-tool relation (create if it doesn't exist, update if it does)
|
|
@@ -3252,16 +3293,16 @@ declare const upsertAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
|
3252
3293
|
headers?: Record<string, string> | null;
|
|
3253
3294
|
relationId?: string;
|
|
3254
3295
|
}) => Promise<{
|
|
3255
|
-
|
|
3256
|
-
projectId: string;
|
|
3296
|
+
headers: Record<string, string> | null;
|
|
3257
3297
|
id: string;
|
|
3258
|
-
graphId: string;
|
|
3259
3298
|
createdAt: string;
|
|
3260
3299
|
updatedAt: string;
|
|
3261
|
-
|
|
3262
|
-
|
|
3300
|
+
projectId: string;
|
|
3301
|
+
tenantId: string;
|
|
3302
|
+
graphId: string;
|
|
3263
3303
|
selectedTools: string[] | null;
|
|
3264
3304
|
agentId: string;
|
|
3305
|
+
toolId: string;
|
|
3265
3306
|
}>;
|
|
3266
3307
|
/**
|
|
3267
3308
|
* Upsert a tool (create if it doesn't exist, update if it does)
|
|
@@ -3269,19 +3310,28 @@ declare const upsertAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
|
3269
3310
|
declare const upsertTool: (db: DatabaseClient) => (params: {
|
|
3270
3311
|
data: ToolInsert;
|
|
3271
3312
|
}) => Promise<{
|
|
3272
|
-
tenantId: string;
|
|
3273
|
-
projectId: string;
|
|
3274
|
-
id: string;
|
|
3275
3313
|
name: string;
|
|
3314
|
+
headers: Record<string, string> | null;
|
|
3315
|
+
id: string;
|
|
3316
|
+
createdAt: string;
|
|
3317
|
+
updatedAt: string;
|
|
3318
|
+
projectId: string;
|
|
3319
|
+
tenantId: string;
|
|
3320
|
+
description: string | null;
|
|
3321
|
+
credentialReferenceId: string | null;
|
|
3322
|
+
capabilities: ToolServerCapabilities | null;
|
|
3276
3323
|
config: {
|
|
3277
3324
|
type: "mcp";
|
|
3278
3325
|
mcp: ToolMcpConfig;
|
|
3326
|
+
} | {
|
|
3327
|
+
type: "function";
|
|
3328
|
+
function?: {
|
|
3329
|
+
inputSchema: Record<string, unknown>;
|
|
3330
|
+
executeCode: string;
|
|
3331
|
+
dependencies: Record<string, unknown>;
|
|
3332
|
+
};
|
|
3279
3333
|
};
|
|
3280
|
-
|
|
3281
|
-
createdAt: string;
|
|
3282
|
-
updatedAt: string;
|
|
3283
|
-
headers: Record<string, string> | null;
|
|
3284
|
-
capabilities: ToolServerCapabilities | null;
|
|
3334
|
+
functionId: string | null;
|
|
3285
3335
|
imageUrl: string | null;
|
|
3286
3336
|
lastError: string | null;
|
|
3287
3337
|
}>;
|
|
@@ -3328,10 +3378,10 @@ declare function validateAgainstJsonSchema(jsonSchema: Record<string, unknown>,
|
|
|
3328
3378
|
*/
|
|
3329
3379
|
declare function validateHttpRequestHeaders(headersSchema: any, httpRequest: ParsedHttpRequest): Promise<ContextValidationResult>;
|
|
3330
3380
|
/**
|
|
3331
|
-
* Validates
|
|
3381
|
+
* Validates headers against the JSON Schema stored in context configuration
|
|
3332
3382
|
* Supports both legacy simple schemas and new comprehensive HTTP request schemas
|
|
3333
3383
|
*/
|
|
3334
|
-
declare function
|
|
3384
|
+
declare function validateHeaders({ tenantId, projectId, graphId, conversationId, parsedRequest, dbClient, credentialStores, }: {
|
|
3335
3385
|
tenantId: string;
|
|
3336
3386
|
projectId: string;
|
|
3337
3387
|
graphId: string;
|
|
@@ -3404,6 +3454,7 @@ declare const detectAuthenticationRequired: ({ serverUrl, toolId, error, logger,
|
|
|
3404
3454
|
logger?: PinoLogger;
|
|
3405
3455
|
}) => Promise<boolean>;
|
|
3406
3456
|
|
|
3457
|
+
declare const generateId: (size?: number) => string;
|
|
3407
3458
|
/**
|
|
3408
3459
|
* Generates a standardized conversation ID.
|
|
3409
3460
|
*
|
|
@@ -3984,4 +4035,4 @@ declare function setSpanWithError(span: Span, error: Error, logger?: {
|
|
|
3984
4035
|
*/
|
|
3985
4036
|
declare function getTracer(serviceName: string, serviceVersion?: string): Tracer;
|
|
3986
4037
|
|
|
3987
|
-
export { AgentGraphInsert, AgentGraphUpdate, AgentInsert, AgentRelationInsert, AgentRelationUpdate, AgentScopeConfig, AgentSelect, AgentToolRelationUpdate, AgentUpdate, ApiKeyCreateResult, type ApiKeyGenerationResult, ApiKeyInsert, ApiKeySelect, ApiKeyUpdate, Artifact, ArtifactComponentInsert, ArtifactComponentSelect, ArtifactComponentUpdate, type CommonCreateErrorResponses, type CommonDeleteErrorResponses, type CommonGetErrorResponses, type CommonUpdateErrorResponses, ContextCache, ContextCacheInsert, ContextCacheSelect, ContextConfigBuilder, type ContextConfigBuilderOptions, ContextConfigInsert, ContextConfigSelect, ContextConfigUpdate, ContextFetchDefinition, ContextFetcher, type ContextResolutionOptions, type ContextResolutionResult, ContextResolver, type ContextResolverInterface, type ContextValidationError, type ContextValidationResult, ConversationHistoryConfig, ConversationInsert, ConversationMetadata, ConversationSelect, ConversationUpdate, CreateApiKeyParams, type CredentialContext, type CredentialData, CredentialReferenceApiInsert, CredentialReferenceInsert, CredentialReferenceSelect, CredentialReferenceUpdate, type CredentialReferenceWithTools, type CredentialResolverInput, CredentialStore, type CredentialStoreReference, CredentialStoreRegistry, CredentialStoreType, CredentialStuffer, DataComponentInsert, DataComponentSelect, DataComponentUpdate, type DatabaseClient, type DatabaseConfig, type DotPaths, ERROR_DOCS_BASE_URL, ErrorCode, type ErrorCodes, type ErrorResponse, ExecutionContext, ExternalAgentInsert, ExternalAgentRelationInsert, ExternalAgentSelect, ExternalAgentUpdate, type FetchResult, FullGraphDefinition, FullProjectDefinition, type GraphLogger, GraphScopeConfig, HTTP_REQUEST_PARTS, type HttpRequestPart, InMemoryCredentialStore, KeyChainStore, LedgerArtifactSelect, type LoggerFactoryConfig, MCPToolConfig, MCPTransportType, McpClient, type McpClientOptions, type McpSSEConfig, type McpServerConfig, type McpStreamableHttpConfig, McpTool, MessageContent, MessageInsert, MessageMetadata, MessageUpdate, MessageVisibility, NangoCredentialStore, type OAuthConfig, PaginationConfig, PaginationResult, type ParsedHttpRequest, PinoLogger, type PinoLoggerConfig, type ProblemDetails, ProjectInfo, ProjectInsert, type ProjectLogger, ProjectResourceCounts, ProjectScopeConfig, ProjectSelect, ProjectUpdate, type ResolvedContext, TaskInsert, TaskMetadataConfig, TaskSelect, type TemplateContext, TemplateEngine, type TemplateRenderOptions, ToolInsert, ToolMcpConfig, ToolSelect, ToolServerCapabilities, ToolUpdate, addLedgerArtifacts, addToolToAgent, apiFetch, associateArtifactComponentWithAgent, associateDataComponentWithAgent, cleanupTenantCache, clearContextConfigCache, clearConversationCache, commonCreateErrorResponses, commonDeleteErrorResponses, commonGetErrorResponses, commonUpdateErrorResponses, contextConfig, contextValidationMiddleware, countApiKeys, countArtifactComponents, countArtifactComponentsForAgent, countContextConfigs, countCredentialReferences, countDataComponents, countExternalAgents, countLedgerArtifactsByTask, countMessagesByConversation, countProjects, createAgent, createAgentGraph, createAgentRelation, createAgentToolRelation, createApiError, createApiKey, createArtifactComponent, createContextConfig, createConversation, createCredentialReference, createDataComponent, createDatabaseClient, createDefaultCredentialStores, createExecutionContext, createExternalAgent, createExternalAgentRelation, createFullGraphServerSide, createFullProjectServerSide, createInMemoryDatabaseClient, createKeyChainStore, createMessage, createNangoCredentialStore, createOrGetConversation, createProject, createTask, createTool, createValidatedDataAccess, dbResultToMcpTool, deleteAgent, deleteAgentArtifactComponentRelationByAgent, deleteAgentDataComponentRelationByAgent, deleteAgentGraph, deleteAgentRelation, deleteAgentRelationsByGraph, deleteAgentToolRelation, deleteAgentToolRelationByAgent, deleteApiKey, deleteArtifactComponent, deleteContextConfig, deleteConversation, deleteCredentialReference, deleteDataComponent, deleteExternalAgent, deleteFullGraph, deleteFullProject, deleteLedgerArtifactsByContext, deleteLedgerArtifactsByTask, deleteMessage, deleteProject, deleteTool, detectAuthenticationRequired, determineContextTrigger, discoverOAuthEndpoints, errorResponseSchema, errorSchemaFactory, externalAgentExists, externalAgentUrlExists, extractPublicId, fetchComponentRelationships, fetchDefinition, generateAndCreateApiKey, generateApiKey, getActiveAgentForConversation, getAgentById, getAgentGraphById, getAgentGraphWithDefaultAgent, getAgentRelationById, getAgentRelationByParams, getAgentRelations, getAgentRelationsByGraph, getAgentRelationsBySource, getAgentRelationsByTarget, getAgentToolRelationByAgent, getAgentToolRelationById, getAgentToolRelationByTool, getAgentsByIds, getAgentsForTool, getAgentsUsingArtifactComponent, getAgentsUsingDataComponent, getApiKeyById, getApiKeyByPublicId, getArtifactComponentById, getArtifactComponentsForAgent, getCacheEntry, getCachedValidator, getContextConfigById, getContextConfigCacheEntries,
|
|
4038
|
+
export { AgentGraphInsert, AgentGraphUpdate, AgentInsert, AgentRelationInsert, AgentRelationUpdate, AgentScopeConfig, AgentSelect, AgentToolRelationUpdate, AgentUpdate, ApiKeyCreateResult, type ApiKeyGenerationResult, ApiKeyInsert, ApiKeySelect, ApiKeyUpdate, Artifact, ArtifactComponentInsert, ArtifactComponentSelect, ArtifactComponentUpdate, type CommonCreateErrorResponses, type CommonDeleteErrorResponses, type CommonGetErrorResponses, type CommonUpdateErrorResponses, ContextCache, ContextCacheInsert, ContextCacheSelect, ContextConfigBuilder, type ContextConfigBuilderOptions, ContextConfigInsert, ContextConfigSelect, ContextConfigUpdate, ContextFetchDefinition, ContextFetcher, type ContextResolutionOptions, type ContextResolutionResult, ContextResolver, type ContextResolverInterface, type ContextValidationError, type ContextValidationResult, ConversationHistoryConfig, ConversationInsert, ConversationMetadata, ConversationSelect, ConversationUpdate, CreateApiKeyParams, type CredentialContext, type CredentialData, CredentialReferenceApiInsert, CredentialReferenceInsert, CredentialReferenceSelect, CredentialReferenceUpdate, type CredentialReferenceWithTools, type CredentialResolverInput, CredentialStore, type CredentialStoreReference, CredentialStoreRegistry, CredentialStoreType, CredentialStuffer, DataComponentInsert, DataComponentSelect, DataComponentUpdate, type DatabaseClient, type DatabaseConfig, type DotPaths, ERROR_DOCS_BASE_URL, ErrorCode, type ErrorCodes, type ErrorResponse, ExecutionContext, ExternalAgentInsert, ExternalAgentRelationInsert, ExternalAgentSelect, ExternalAgentUpdate, type FetchResult, FullGraphDefinition, FullProjectDefinition, FunctionApiInsert, type GraphLogger, GraphScopeConfig, HTTP_REQUEST_PARTS, type HttpRequestPart, InMemoryCredentialStore, KeyChainStore, LedgerArtifactSelect, type LoggerFactoryConfig, MCPToolConfig, MCPTransportType, McpClient, type McpClientOptions, type McpSSEConfig, type McpServerConfig, type McpStreamableHttpConfig, McpTool, MessageContent, MessageInsert, MessageMetadata, MessageUpdate, MessageVisibility, NangoCredentialStore, type OAuthConfig, PaginationConfig, PaginationResult, type ParsedHttpRequest, PinoLogger, type PinoLoggerConfig, type ProblemDetails, ProjectInfo, ProjectInsert, type ProjectLogger, ProjectResourceCounts, ProjectScopeConfig, ProjectSelect, ProjectUpdate, type ResolvedContext, TaskInsert, TaskMetadataConfig, TaskSelect, type TemplateContext, TemplateEngine, type TemplateRenderOptions, ToolInsert, ToolMcpConfig, ToolSelect, ToolServerCapabilities, ToolUpdate, addLedgerArtifacts, addToolToAgent, apiFetch, associateArtifactComponentWithAgent, associateDataComponentWithAgent, cleanupTenantCache, clearContextConfigCache, clearConversationCache, commonCreateErrorResponses, commonDeleteErrorResponses, commonGetErrorResponses, commonUpdateErrorResponses, contextConfig, contextValidationMiddleware, countApiKeys, countArtifactComponents, countArtifactComponentsForAgent, countContextConfigs, countCredentialReferences, countDataComponents, countExternalAgents, countLedgerArtifactsByTask, countMessagesByConversation, countProjects, createAgent, createAgentGraph, createAgentRelation, createAgentToolRelation, createApiError, createApiKey, createArtifactComponent, createContextConfig, createConversation, createCredentialReference, createDataComponent, createDatabaseClient, createDefaultCredentialStores, createExecutionContext, createExternalAgent, createExternalAgentRelation, createFullGraphServerSide, createFullProjectServerSide, createInMemoryDatabaseClient, createKeyChainStore, createMessage, createNangoCredentialStore, createOrGetConversation, createProject, createTask, createTool, createValidatedDataAccess, dbResultToMcpTool, deleteAgent, deleteAgentArtifactComponentRelationByAgent, deleteAgentDataComponentRelationByAgent, deleteAgentGraph, deleteAgentRelation, deleteAgentRelationsByGraph, deleteAgentToolRelation, deleteAgentToolRelationByAgent, deleteApiKey, deleteArtifactComponent, deleteContextConfig, deleteConversation, deleteCredentialReference, deleteDataComponent, deleteExternalAgent, deleteFullGraph, deleteFullProject, deleteFunction, deleteLedgerArtifactsByContext, deleteLedgerArtifactsByTask, deleteMessage, deleteProject, deleteTool, detectAuthenticationRequired, determineContextTrigger, discoverOAuthEndpoints, errorResponseSchema, errorSchemaFactory, externalAgentExists, externalAgentUrlExists, extractPublicId, fetchComponentRelationships, fetchDefinition, generateAndCreateApiKey, generateApiKey, generateId, getActiveAgentForConversation, getAgentById, getAgentGraphById, getAgentGraphWithDefaultAgent, getAgentRelationById, getAgentRelationByParams, getAgentRelations, getAgentRelationsByGraph, getAgentRelationsBySource, getAgentRelationsByTarget, getAgentToolRelationByAgent, getAgentToolRelationById, getAgentToolRelationByTool, getAgentsByIds, getAgentsForTool, getAgentsUsingArtifactComponent, getAgentsUsingDataComponent, getApiKeyById, getApiKeyByPublicId, getArtifactComponentById, getArtifactComponentsForAgent, getCacheEntry, getCachedValidator, getContextConfigById, getContextConfigCacheEntries, getConversation, getConversationCacheEntries, getConversationHistory, getConversationId, getCredentialReference, getCredentialReferenceById, getCredentialReferenceWithTools, getCredentialStoreLookupKeyFromRetrievalParams, getDataComponent, getDataComponentsForAgent, getExternalAgent, getExternalAgentByUrl, getExternalAgentRelations, getFullGraph, getFullGraphDefinition, getFullProject, getFunction, getGraphAgentInfos, getLedgerArtifacts, getLedgerArtifactsByContext, getLogger, getMessageById, getMessagesByConversation, getMessagesByTask, getProject, getProjectResourceCounts, getRelatedAgentsForGraph, getRequestExecutionContext, getTask, getToolById, getToolsForAgent, getTracer, getVisibleMessages, graphHasArtifactComponents, handleApiError, handleContextConfigChange, handleContextResolution, hasApiKey, hasContextConfig, hasCredentialReference, hashApiKey, headers, invalidateHeadersCache, invalidateInvocationDefinitionsCache, isApiKeyExpired, isArtifactComponentAssociatedWithAgent, isDataComponentAssociatedWithAgent, isValidHttpRequest, listAgentGraphs, listAgentGraphsPaginated, listAgentRelations, listAgentToolRelations, listAgents, listAgentsPaginated, listApiKeys, listApiKeysPaginated, listArtifactComponents, listArtifactComponentsPaginated, listContextConfigs, listContextConfigsPaginated, listConversations, listCredentialReferences, listCredentialReferencesPaginated, listDataComponents, listDataComponentsPaginated, listExternalAgents, listExternalAgentsPaginated, listFunctions, listMessages, listProjects, listProjectsPaginated, listTaskIdsByContextId, listTools, loadEnvironmentFiles, loggerFactory, maskApiKey, problemDetailsSchema, projectExists, projectExistsInTable, projectHasResources, removeArtifactComponentFromAgent, removeDataComponentFromAgent, removeToolFromAgent, setActiveAgentForConversation, setActiveAgentForThread, setCacheEntry, setSpanWithError, updateAgent, updateAgentGraph, updateAgentRelation, updateAgentToolRelation, updateApiKey, updateApiKeyLastUsed, updateArtifactComponent, updateContextConfig, updateConversation, updateConversationActiveAgent, updateCredentialReference, updateDataComponent, updateExternalAgent, updateFullGraphServerSide, updateFullProjectServerSide, updateMessage, updateProject, updateTask, updateTool, upsertAgent, upsertAgentArtifactComponentRelation, upsertAgentDataComponentRelation, upsertAgentGraph, upsertAgentRelation, upsertAgentToolRelation, upsertArtifactComponent, upsertContextConfig, upsertCredentialReference, upsertDataComponent, upsertExternalAgent, upsertFunction, upsertLedgerArtifact, upsertTool, validateAgainstJsonSchema, validateAndGetApiKey, validateApiKey, validateExternalAgent, validateHeaders, validateHttpRequestHeaders, validateInternalAgent, validateProjectExists, validationHelper, withProjectValidation };
|