@inkeep/agents-core 0.0.0-dev-20251010175818 → 0.0.0-dev-20251010180500
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-NEJ3QDK6.js → chunk-E4SFK6AI.js} +50 -30
- package/dist/{chunk-5LRSB445.js → chunk-ID4CFGVF.js} +88 -14
- package/dist/{chunk-2TJ2L67D.js → chunk-JTHQYGCX.js} +1 -1
- package/dist/client-exports.cjs +133 -43
- package/dist/client-exports.d.cts +2 -2
- package/dist/client-exports.d.ts +2 -2
- package/dist/client-exports.js +2 -2
- package/dist/db/schema.cjs +87 -13
- 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 +992 -424
- package/dist/index.d.cts +168 -54
- package/dist/index.d.ts +168 -54
- package/dist/index.js +835 -382
- package/dist/{schema-BwkT6bbU.d.cts → schema-Bjy5TkFv.d.cts} +358 -38
- package/dist/{schema-B6nVWV--.d.ts → schema-CfWbqju2.d.ts} +358 -38
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/{utility-D_8q6Vlh.d.cts → utility-Fxoh7s82.d.cts} +409 -137
- package/dist/{utility-D_8q6Vlh.d.ts → utility-Fxoh7s82.d.ts} +409 -137
- package/dist/validation/index.cjs +138 -41
- package/dist/validation/index.d.cts +2 -2
- package/dist/validation/index.d.ts +2 -2
- package/dist/validation/index.js +2 -2
- package/drizzle/0006_damp_lenny_balinger.sql +52 -0
- package/drizzle/meta/0006_snapshot.json +2751 -0
- package/drizzle/meta/_journal.json +7 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export { h as ACTIVITY_NAMES, f as ACTIVITY_STATUS, e as ACTIVITY_TYPES, g as AGENT_IDS, p as AGGREGATE_OPERATORS, A as AI_OPERATIONS, j as AI_TOOL_TYPES, o as DATA_SOURCES, k as DATA_TYPES, D as DELEGATION_FROM_SUB_AGENT_ID, b as DELEGATION_ID, a as DELEGATION_TO_SUB_AGENT_ID, F as FIELD_TYPES, O as OPERATORS, m as ORDER_DIRECTIONS, P as PANEL_TYPES, q as QUERY_DEFAULTS, l as QUERY_EXPRESSIONS, Q as QUERY_FIELD_CONFIGS, n as QUERY_TYPES, R as REDUCE_OPERATIONS, d as SPAN_KEYS, S as SPAN_NAMES, i as TOOL_NAMES, T as TRANSFER_FROM_SUB_AGENT_ID, c as TRANSFER_TO_SUB_AGENT_ID, U as UNKNOWN_VALUE } from './signoz-queries-CifqdbnO.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
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 ApiKeySelect, D as ApiKeyInsert, E as ApiKeyUpdate, H as CreateApiKeyParams, I as ApiKeyCreateResult, J as ArtifactComponentSelect, K as ArtifactComponentInsert, L as ArtifactComponentUpdate, N as AgentScopeConfig, O as ContextCacheSelect, Q as ContextCacheInsert, R as ContextConfigInsert, U as ContextConfigUpdate, V as ConversationSelect, W as ConversationInsert, o as ConversationMetadata, X as ConversationUpdate, Y as CredentialReferenceSelect, Z as ToolSelect, _ as CredentialReferenceInsert, $ as CredentialReferenceUpdate, a0 as DataComponentSelect, a1 as DataComponentInsert, a2 as DataComponentUpdate, a3 as ExternalAgentInsert, a4 as ExternalAgentSelect, a5 as ExternalAgentUpdate, a6 as FunctionApiInsert, a7 as
|
|
4
|
-
export { b7 as A2AError, bD as A2ARequest, bE as A2AResponse, aI as APIKeySecurityScheme, aE as AgentCapabilities, aS as AgentCard, di as AgentConversationHistoryConfig, 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, aF as AgentProvider, aG as AgentSkill, 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, fK as ErrorResponseSchema, fL as ExistsResponseSchema, cJ as ExternalAgentApiInsert, eX as ExternalAgentApiInsertSchema, cI as ExternalAgentApiSelect, eW as ExternalAgentApiSelectSchema, cK as ExternalAgentApiUpdate, eY as ExternalAgentApiUpdateSchema, eU as ExternalAgentInsertSchema, eT as ExternalAgentSelectSchema, eV as ExternalAgentUpdateSchema, bP as ExternalSubAgentRelationApiInsert, dQ as ExternalSubAgentRelationApiInsertSchema, dP as ExternalSubAgentRelationInsertSchema, 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, fT 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, fG as GraphWithinContextOfProjectSchema, aJ as HTTPAuthSecurityScheme, fU as HeadersScopeSchema, 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, fI 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, fH as PaginationSchema, P as Part, aw as PartBase, aO as PasswordOAuthFlow, d6 as ProjectApiInsert, fR as ProjectApiInsertSchema, d5 as ProjectApiSelect, fQ as ProjectApiSelectSchema, d7 as ProjectApiUpdate, fS as ProjectApiUpdateSchema, fO as ProjectInsertSchema, dy as ProjectModelSchema, de as ProjectModels, fN as ProjectSelectSchema, fP as ProjectUpdateSchema, b8 as PushNotificationAuthenticationInfo, b9 as PushNotificationConfig, b3 as PushNotificationNotSupportedError, fM 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, fJ as SingleResponseSchema, dg as StatusComponent, fD as StatusComponentSchema, fE as StatusUpdateSchema, df as StatusUpdateSettings, c as StopWhen, S as StopWhenSchema, bI as SubAgentApiInsert, dG as SubAgentApiInsertSchema, bH as SubAgentApiSelect, dF as SubAgentApiSelectSchema, bJ as SubAgentApiUpdate, dH as SubAgentApiUpdateSchema, cG as SubAgentArtifactComponentApiInsert, eR as SubAgentArtifactComponentApiInsertSchema, cF as SubAgentArtifactComponentApiSelect, eQ as SubAgentArtifactComponentApiSelectSchema, cH as SubAgentArtifactComponentApiUpdate, eS as SubAgentArtifactComponentApiUpdateSchema, cD as SubAgentArtifactComponentInsert, eO as SubAgentArtifactComponentInsertSchema, cC as SubAgentArtifactComponentSelect, eN as SubAgentArtifactComponentSelectSchema, cE as SubAgentArtifactComponentUpdate, eP as SubAgentArtifactComponentUpdateSchema, cx as SubAgentDataComponentApiInsert, eF as SubAgentDataComponentApiInsertSchema, cw as SubAgentDataComponentApiSelect, eE as SubAgentDataComponentApiSelectSchema, cy as SubAgentDataComponentApiUpdate, eG as SubAgentDataComponentApiUpdateSchema, cu as SubAgentDataComponentInsert, eC as SubAgentDataComponentInsertSchema, ct as SubAgentDataComponentSelect, eB as SubAgentDataComponentSelectSchema, cv as SubAgentDataComponentUpdate, eD as SubAgentDataComponentUpdateSchema, dD as SubAgentInsertSchema, bM as SubAgentRelationApiInsert, dM as SubAgentRelationApiInsertSchema, bL as SubAgentRelationApiSelect, dL as SubAgentRelationApiSelectSchema, bN as SubAgentRelationApiUpdate, dN as SubAgentRelationApiUpdateSchema, dJ as SubAgentRelationInsertSchema, bO as SubAgentRelationQuery, dO as SubAgentRelationQuerySchema, bK as SubAgentRelationSelect, dI as SubAgentRelationSelectSchema, dK as SubAgentRelationUpdateSchema, dC as SubAgentSelectSchema, e as SubAgentStopWhen, b as SubAgentStopWhenSchema, cV as SubAgentToolRelationApiInsert, fv as SubAgentToolRelationApiInsertSchema, cU as SubAgentToolRelationApiSelect, fu as SubAgentToolRelationApiSelectSchema, cW as SubAgentToolRelationApiUpdate, fw as SubAgentToolRelationApiUpdateSchema, cT as SubAgentToolRelationInsert, fs as SubAgentToolRelationInsertSchema, cS as SubAgentToolRelationSelect, fr as SubAgentToolRelationSelectSchema, ft as SubAgentToolRelationUpdateSchema, dE as SubAgentUpdateSchema, 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, fW as TenantIdParamsSchema, fV as TenantParamsSchema, f_ as TenantProjectGraphIdParamsSchema, fZ as TenantProjectGraphParamsSchema, g0 as TenantProjectGraphSubAgentIdParamsSchema, f$ as TenantProjectGraphSubAgentParamsSchema, fY 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-D_8q6Vlh.js';
|
|
3
|
+
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 ApiKeySelect, D as ApiKeyInsert, E as ApiKeyUpdate, H as CreateApiKeyParams, I as ApiKeyCreateResult, J as ArtifactComponentSelect, K as ArtifactComponentInsert, L as ArtifactComponentUpdate, N as AgentScopeConfig, O as ContextCacheSelect, Q as ContextCacheInsert, R as ContextConfigInsert, U as ContextConfigUpdate, V as ConversationSelect, W as ConversationInsert, o as ConversationMetadata, X as ConversationUpdate, Y as CredentialReferenceSelect, Z as ToolSelect, _ as CredentialReferenceInsert, $ as CredentialReferenceUpdate, a0 as DataComponentSelect, a1 as DataComponentInsert, a2 as DataComponentUpdate, a3 as ExternalAgentInsert, a4 as ExternalAgentSelect, a5 as ExternalAgentUpdate, a6 as FunctionApiInsert, a7 as FunctionToolApiInsert, a8 as FunctionToolApiUpdate, a9 as Artifact, aa as LedgerArtifactSelect, q as MessageMetadata, p as MessageContent, ab as MessageVisibility, ac as MessageInsert, ad as MessageUpdate, ae as FullProjectDefinition, af as ProjectInfo, ag as ProjectSelect, ah as PaginationResult, ai as ProjectResourceCounts, aj as ProjectInsert, ak as ProjectUpdate, al as SubAgentRelationInsert, am as ExternalSubAgentRelationInsert, an as SubAgentRelationUpdate, ao as SubAgentToolRelationUpdate, m as ToolMcpConfig, n as ToolServerCapabilities, ap as SubAgentInsert, aq as SubAgentUpdate, ar as SubAgentSelect, as as TaskInsert, T as TaskMetadataConfig, at as TaskSelect, au as McpTool, av as ToolInsert, aw as ToolUpdate, g as CredentialStoreType, ax as ExecutionContext } from './utility-Fxoh7s82.js';
|
|
4
|
+
export { b9 as A2AError, bF as A2ARequest, bG as A2AResponse, aK as APIKeySecurityScheme, aG as AgentCapabilities, aU as AgentCard, dl as AgentConversationHistoryConfig, d6 as AgentDefinition, bU as AgentGraphApiInsert, dY as AgentGraphApiInsertSchema, bT as AgentGraphApiSelect, dX as AgentGraphApiSelectSchema, bV as AgentGraphApiUpdate, dZ as AgentGraphApiUpdateSchema, dV as AgentGraphInsertSchema, bS as AgentGraphSelect, dU as AgentGraphSelectSchema, dW as AgentGraphUpdateSchema, aH as AgentProvider, aI as AgentSkill, f0 as AllAgentSchema, cO as AllAgentSelect, cS as ApiKeyApiCreationResponse, f5 as ApiKeyApiCreationResponseSchema, cQ as ApiKeyApiInsert, f6 as ApiKeyApiInsertSchema, cP as ApiKeyApiSelect, f4 as ApiKeyApiSelectSchema, cR as ApiKeyApiUpdate, A as ApiKeyApiUpdateSchema, f2 as ApiKeyInsertSchema, f1 as ApiKeySelectSchema, f3 as ApiKeyUpdateSchema, cD as ArtifactComponentApiInsert, eO as ArtifactComponentApiInsertSchema, cC as ArtifactComponentApiSelect, eN as ArtifactComponentApiSelectSchema, cE as ArtifactComponentApiUpdate, eP as ArtifactComponentApiUpdateSchema, eL as ArtifactComponentInsertSchema, eK as ArtifactComponentSelectSchema, eM as ArtifactComponentUpdateSchema, aN as AuthorizationCodeOAuthFlow, d4 as CanUseItem, fO as CanUseItemSchema, bp as CancelTaskRequest, bA as CancelTaskResponse, bz as CancelTaskSuccessResponse, aO as ClientCredentialsOAuthFlow, b7 as ContentTypeNotSupportedError, cr as ContextCacheApiInsert, ev as ContextCacheApiInsertSchema, cq as ContextCacheApiSelect, eu as ContextCacheApiSelectSchema, cs as ContextCacheApiUpdate, ew as ContextCacheApiUpdateSchema, dm as ContextCacheEntry, es as ContextCacheInsertSchema, er as ContextCacheSelectSchema, cp as ContextCacheUpdate, et as ContextCacheUpdateSchema, cl as ContextConfigApiInsert, fy as ContextConfigApiInsertSchema, ck as ContextConfigApiSelect, fx as ContextConfigApiSelectSchema, cm as ContextConfigApiUpdate, fz as ContextConfigApiUpdateSchema, fv as ContextConfigInsertSchema, fu as ContextConfigSelectSchema, fw as ContextConfigUpdateSchema, ce as ConversationApiInsert, ej as ConversationApiInsertSchema, cd as ConversationApiSelect, ei as ConversationApiSelectSchema, cf as ConversationApiUpdate, ek as ConversationApiUpdateSchema, eg as ConversationInsertSchema, dk as ConversationScopeOptions, ef as ConversationSelectSchema, eh as ConversationUpdateSchema, fb as CredentialReferenceApiInsertSchema, cT as CredentialReferenceApiSelect, fa as CredentialReferenceApiSelectSchema, cU as CredentialReferenceApiUpdate, fc as CredentialReferenceApiUpdateSchema, f8 as CredentialReferenceInsertSchema, f7 as CredentialReferenceSelectSchema, f9 as CredentialReferenceUpdateSchema, cu as DataComponentApiInsert, eC as DataComponentApiInsertSchema, ct as DataComponentApiSelect, eB as DataComponentApiSelectSchema, cv as DataComponentApiUpdate, eD as DataComponentApiUpdateSchema, ez as DataComponentBaseSchema, ey as DataComponentInsertSchema, ex as DataComponentSelectSchema, eA as DataComponentUpdateSchema, aE as DataPart, fU as ErrorResponseSchema, fV as ExistsResponseSchema, cM as ExternalAgentApiInsert, e_ as ExternalAgentApiInsertSchema, cL as ExternalAgentApiSelect, eZ as ExternalAgentApiSelectSchema, cN as ExternalAgentApiUpdate, e$ as ExternalAgentApiUpdateSchema, eX as ExternalAgentInsertSchema, eW as ExternalAgentSelectSchema, eY as ExternalAgentUpdateSchema, bR as ExternalSubAgentRelationApiInsert, dT as ExternalSubAgentRelationApiInsertSchema, dS as ExternalSubAgentRelationInsertSchema, co as FetchConfig, fs as FetchConfigSchema, cn as FetchDefinition, ft as FetchDefinitionSchema, aA as FileBase, aD as FilePart, aB as FileWithBytes, aC as FileWithUri, d3 as FullGraphAgentInsert, a as FullGraphAgentInsertSchema, fP as FullGraphDefinitionSchema, g1 as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, ca as FunctionApiSelect, i as FunctionApiSelectSchema, cb as FunctionApiUpdate, j as FunctionApiUpdateSchema, c8 as FunctionInsert, fq as FunctionInsertSchema, c7 as FunctionSelect, fp as FunctionSelectSchema, fn as FunctionToolApiInsertSchema, cc as FunctionToolApiSelect, fm as FunctionToolApiSelectSchema, fo as FunctionToolApiUpdateSchema, dE as FunctionToolConfig, dD as FunctionToolConfigSchema, fk as FunctionToolInsertSchema, fj as FunctionToolSelectSchema, fl as FunctionToolUpdateSchema, c9 as FunctionUpdate, fr as FunctionUpdateSchema, br as GetTaskPushNotificationConfigRequest, bE as GetTaskPushNotificationConfigResponse, bD as GetTaskPushNotificationConfigSuccessResponse, bo as GetTaskRequest, by as GetTaskResponse, bx as GetTaskSuccessResponse, d as GraphStopWhen, G as GraphStopWhenSchema, fQ as GraphWithinContextOfProjectSchema, aL as HTTPAuthSecurityScheme, g2 as HeadersScopeSchema, aP as ImplicitOAuthFlow, d5 as InternalAgentDefinition, b2 as InternalError, b8 as InvalidAgentResponseError, b1 as InvalidParamsError, a$ as InvalidRequestError, a_ as JSONParseError, bj as JSONRPCError, bl as JSONRPCErrorResponse, bh as JSONRPCMessage, bi as JSONRPCRequest, bk as JSONRPCResult, d1 as LedgerArtifactApiInsert, fK as LedgerArtifactApiInsertSchema, d0 as LedgerArtifactApiSelect, fJ as LedgerArtifactApiSelectSchema, d2 as LedgerArtifactApiUpdate, fL as LedgerArtifactApiUpdateSchema, c_ as LedgerArtifactInsert, fH as LedgerArtifactInsertSchema, fG as LedgerArtifactSelectSchema, c$ as LedgerArtifactUpdate, fI as LedgerArtifactUpdateSchema, fS as ListResponseSchema, dx as MAX_ID_LENGTH, dv as MCPServerType, fe as MCPToolConfigSchema, dw as MIN_ID_LENGTH, dn as McpAuthType, dp as McpServerAuth, dr as McpServerCapabilities, ds as McpToolDefinition, ec as McpToolDefinitionSchema, fd as McpToolSchema, dq as McpTransportConfig, ea as McpTransportConfigSchema, aV as Message, ci as MessageApiInsert, ep as MessageApiInsertSchema, ch as MessageApiSelect, eo as MessageApiSelectSchema, cj as MessageApiUpdate, eq as MessageApiUpdateSchema, em as MessageInsertSchema, df as MessageMode, bH as MessagePart, de as MessageRole, cg as MessageSelect, el as MessageSelectSchema, bf as MessageSendConfiguration, bg as MessageSendParams, dd as MessageType, en as MessageUpdateSchema, b0 as MethodNotFoundError, dA as ModelSchema, f as ModelSettings, M as ModelSettingsSchema, dg as Models, aR as OAuth2SecurityScheme, aM as OAuthFlows, aS as OpenIdConnectSecurityScheme, db as Pagination, gb as PaginationQueryParamsSchema, fR as PaginationSchema, P as Part, ay as PartBase, aQ as PasswordOAuthFlow, d9 as ProjectApiInsert, f$ as ProjectApiInsertSchema, d8 as ProjectApiSelect, f_ as ProjectApiSelectSchema, da as ProjectApiUpdate, g0 as ProjectApiUpdateSchema, fY as ProjectInsertSchema, dB as ProjectModelSchema, dh as ProjectModels, fX as ProjectSelectSchema, fZ as ProjectUpdateSchema, ba as PushNotificationAuthenticationInfo, bb as PushNotificationConfig, b5 as PushNotificationNotSupportedError, fW as RemovedResponseSchema, dC as SandboxConfig, k as SandboxConfigSchema, aT as SecurityScheme, aJ as SecuritySchemeBase, bm as SendMessageRequest, bu as SendMessageResponse, bt as SendMessageSuccessResponse, bn as SendStreamingMessageRequest, bw as SendStreamingMessageResponse, bv as SendStreamingMessageSuccessResponse, bq as SetTaskPushNotificationConfigRequest, bC as SetTaskPushNotificationConfigResponse, bB as SetTaskPushNotificationConfigSuccessResponse, fT as SingleResponseSchema, dj as StatusComponent, fM as StatusComponentSchema, fN as StatusUpdateSchema, di as StatusUpdateSettings, c as StopWhen, S as StopWhenSchema, bK as SubAgentApiInsert, dJ as SubAgentApiInsertSchema, bJ as SubAgentApiSelect, dI as SubAgentApiSelectSchema, bL as SubAgentApiUpdate, dK as SubAgentApiUpdateSchema, cJ as SubAgentArtifactComponentApiInsert, eU as SubAgentArtifactComponentApiInsertSchema, cI as SubAgentArtifactComponentApiSelect, eT as SubAgentArtifactComponentApiSelectSchema, cK as SubAgentArtifactComponentApiUpdate, eV as SubAgentArtifactComponentApiUpdateSchema, cG as SubAgentArtifactComponentInsert, eR as SubAgentArtifactComponentInsertSchema, cF as SubAgentArtifactComponentSelect, eQ as SubAgentArtifactComponentSelectSchema, cH as SubAgentArtifactComponentUpdate, eS as SubAgentArtifactComponentUpdateSchema, cA as SubAgentDataComponentApiInsert, eI as SubAgentDataComponentApiInsertSchema, cz as SubAgentDataComponentApiSelect, eH as SubAgentDataComponentApiSelectSchema, cB as SubAgentDataComponentApiUpdate, eJ as SubAgentDataComponentApiUpdateSchema, cx as SubAgentDataComponentInsert, eF as SubAgentDataComponentInsertSchema, cw as SubAgentDataComponentSelect, eE as SubAgentDataComponentSelectSchema, cy as SubAgentDataComponentUpdate, eG as SubAgentDataComponentUpdateSchema, dG as SubAgentInsertSchema, bO as SubAgentRelationApiInsert, dP as SubAgentRelationApiInsertSchema, bN as SubAgentRelationApiSelect, dO as SubAgentRelationApiSelectSchema, bP as SubAgentRelationApiUpdate, dQ as SubAgentRelationApiUpdateSchema, dM as SubAgentRelationInsertSchema, bQ as SubAgentRelationQuery, dR as SubAgentRelationQuerySchema, bM as SubAgentRelationSelect, dL as SubAgentRelationSelectSchema, dN as SubAgentRelationUpdateSchema, dF as SubAgentSelectSchema, e as SubAgentStopWhen, b as SubAgentStopWhenSchema, cY as SubAgentToolRelationApiInsert, fE as SubAgentToolRelationApiInsertSchema, cX as SubAgentToolRelationApiSelect, fD as SubAgentToolRelationApiSelectSchema, cZ as SubAgentToolRelationApiUpdate, fF as SubAgentToolRelationApiUpdateSchema, cW as SubAgentToolRelationInsert, fB as SubAgentToolRelationInsertSchema, cV as SubAgentToolRelationSelect, fA as SubAgentToolRelationSelectSchema, fC as SubAgentToolRelationUpdateSchema, dH as SubAgentUpdateSchema, dc as SummaryEvent, dt as TOOL_STATUS_VALUES, aX as Task, bY as TaskApiInsert, e2 as TaskApiInsertSchema, bX as TaskApiSelect, e1 as TaskApiSelectSchema, bZ as TaskApiUpdate, e3 as TaskApiUpdateSchema, bI as TaskArtifact, aZ as TaskArtifactUpdateEvent, bd as TaskIdParams, d$ as TaskInsertSchema, b4 as TaskNotCancelableError, b3 as TaskNotFoundError, bc as TaskPushNotificationConfig, be as TaskQueryParams, c2 as TaskRelationApiInsert, e8 as TaskRelationApiInsertSchema, c1 as TaskRelationApiSelect, e7 as TaskRelationApiSelectSchema, c3 as TaskRelationApiUpdate, e9 as TaskRelationApiUpdateSchema, b$ as TaskRelationInsert, e5 as TaskRelationInsertSchema, b_ as TaskRelationSelect, e4 as TaskRelationSelectSchema, c0 as TaskRelationUpdate, e6 as TaskRelationUpdateSchema, bs as TaskResubscriptionRequest, d_ as TaskSelectSchema, aF as TaskState, aW as TaskStatus, aY as TaskStatusUpdateEvent, bW as TaskUpdate, e0 as TaskUpdateSchema, g4 as TenantIdParamsSchema, g3 as TenantParamsSchema, g8 as TenantProjectGraphIdParamsSchema, g7 as TenantProjectGraphParamsSchema, ga as TenantProjectGraphSubAgentIdParamsSchema, g9 as TenantProjectGraphSubAgentParamsSchema, g6 as TenantProjectIdParamsSchema, g5 as TenantProjectParamsSchema, az as TextPart, c5 as ToolApiInsert, fh as ToolApiInsertSchema, c4 as ToolApiSelect, fg as ToolApiSelectSchema, c6 as ToolApiUpdate, fi as ToolApiUpdateSchema, d7 as ToolDefinition, ee as ToolInsertSchema, ed as ToolSelectSchema, eb as ToolStatusSchema, ff as ToolUpdateSchema, dy as URL_SAFE_ID_PATTERN, b6 as UnsupportedOperationError, du as VALID_RELATION_TYPES, dz as resourceIdSchema } from './utility-Fxoh7s82.js';
|
|
5
5
|
import { CredentialStore } from './types/index.js';
|
|
6
6
|
export { CorsConfig, ServerConfig, ServerOptions } from './types/index.js';
|
|
7
7
|
import { LibSQLDatabase } from 'drizzle-orm/libsql';
|
|
8
|
-
import { s as schema } from './schema-
|
|
9
|
-
export { a as agentGraph,
|
|
8
|
+
import { s as schema } from './schema-CfWbqju2.js';
|
|
9
|
+
export { q as agentFunctionToolRelations, U as agentFunctionToolRelationsRelations, a as agentGraph, E as agentGraphRelations, H as agentToolRelationsRelations, w as apiKeys, G as apiKeysRelations, j as artifactComponents, M as artifactComponentsRelations, b as contextCache, C as contextCacheRelations, c as contextConfigs, B as contextConfigsRelations, r as conversations, K as conversationsRelations, x as credentialReferences, I as credentialReferencesRelations, h as dataComponents, O as dataComponentsRelations, f as externalAgents, F as externalAgentsRelations, m as functionTools, T as functionToolsRelations, n as functions, R as functionsRelations, v as ledgerArtifacts, Q as ledgerArtifactsRelations, u as messages, L as messagesRelations, p as projects, z as projectsRelations, k as subAgentArtifactComponents, N as subAgentArtifactComponentsRelations, i as subAgentDataComponents, P as subAgentDataComponentsRelations, e as subAgentRelations, S as subAgentRelationsRelations, o as subAgentToolRelations, d as subAgents, D as subAgentsRelations, g as taskRelations, A as taskRelationsRelations, t as tasks, y as tasksRelations, l as tools, J as toolsRelations } from './schema-CfWbqju2.js';
|
|
10
10
|
import { LoggerOptions, TransportSingleOptions, Logger } from 'pino';
|
|
11
11
|
import { SSEClientTransportOptions } from '@modelcontextprotocol/sdk/client/sse.js';
|
|
12
12
|
import { StreamableHTTPClientTransportOptions } from '@modelcontextprotocol/sdk/client/streamableHttp.js';
|
|
@@ -2024,6 +2024,168 @@ declare const deleteFunction: (db: DatabaseClient) => (params: {
|
|
|
2024
2024
|
scopes: ProjectScopeConfig;
|
|
2025
2025
|
}) => Promise<void>;
|
|
2026
2026
|
|
|
2027
|
+
/**
|
|
2028
|
+
* Get a function tool by ID (graph-scoped)
|
|
2029
|
+
*/
|
|
2030
|
+
declare const getFunctionToolById: (db: DatabaseClient) => (params: {
|
|
2031
|
+
scopes: GraphScopeConfig;
|
|
2032
|
+
functionToolId: string;
|
|
2033
|
+
}) => Promise<{
|
|
2034
|
+
createdAt: string;
|
|
2035
|
+
updatedAt: string;
|
|
2036
|
+
name: string;
|
|
2037
|
+
description: string | null;
|
|
2038
|
+
functionId: string;
|
|
2039
|
+
graphId: string;
|
|
2040
|
+
projectId: string;
|
|
2041
|
+
tenantId: string;
|
|
2042
|
+
id: string;
|
|
2043
|
+
}>;
|
|
2044
|
+
/**
|
|
2045
|
+
* List function tools (graph-scoped)
|
|
2046
|
+
*/
|
|
2047
|
+
declare const listFunctionTools: (db: DatabaseClient) => (params: {
|
|
2048
|
+
scopes: GraphScopeConfig;
|
|
2049
|
+
pagination?: PaginationConfig;
|
|
2050
|
+
}) => Promise<{
|
|
2051
|
+
data: {
|
|
2052
|
+
createdAt: string;
|
|
2053
|
+
updatedAt: string;
|
|
2054
|
+
name: string;
|
|
2055
|
+
description: string | null;
|
|
2056
|
+
functionId: string;
|
|
2057
|
+
graphId: string;
|
|
2058
|
+
projectId: string;
|
|
2059
|
+
tenantId: string;
|
|
2060
|
+
id: string;
|
|
2061
|
+
}[];
|
|
2062
|
+
pagination: {
|
|
2063
|
+
page: number;
|
|
2064
|
+
limit: number;
|
|
2065
|
+
total: number;
|
|
2066
|
+
pages: number;
|
|
2067
|
+
};
|
|
2068
|
+
}>;
|
|
2069
|
+
/**
|
|
2070
|
+
* Create a function tool (graph-scoped)
|
|
2071
|
+
*/
|
|
2072
|
+
declare const createFunctionTool: (db: DatabaseClient) => (params: {
|
|
2073
|
+
data: FunctionToolApiInsert;
|
|
2074
|
+
scopes: GraphScopeConfig;
|
|
2075
|
+
}) => Promise<{
|
|
2076
|
+
tenantId: string;
|
|
2077
|
+
projectId: string;
|
|
2078
|
+
id: string;
|
|
2079
|
+
name: string;
|
|
2080
|
+
description: string | null;
|
|
2081
|
+
graphId: string;
|
|
2082
|
+
createdAt: string;
|
|
2083
|
+
updatedAt: string;
|
|
2084
|
+
functionId: string;
|
|
2085
|
+
}>;
|
|
2086
|
+
/**
|
|
2087
|
+
* Update a function tool (graph-scoped)
|
|
2088
|
+
*/
|
|
2089
|
+
declare const updateFunctionTool: (db: DatabaseClient) => (params: {
|
|
2090
|
+
scopes: GraphScopeConfig;
|
|
2091
|
+
functionToolId: string;
|
|
2092
|
+
data: FunctionToolApiUpdate;
|
|
2093
|
+
}) => Promise<{
|
|
2094
|
+
tenantId: string;
|
|
2095
|
+
projectId: string;
|
|
2096
|
+
id: string;
|
|
2097
|
+
name: string;
|
|
2098
|
+
description: string | null;
|
|
2099
|
+
graphId: string;
|
|
2100
|
+
createdAt: string;
|
|
2101
|
+
updatedAt: string;
|
|
2102
|
+
functionId: string;
|
|
2103
|
+
}>;
|
|
2104
|
+
/**
|
|
2105
|
+
* Delete a function tool (graph-scoped)
|
|
2106
|
+
*/
|
|
2107
|
+
declare const deleteFunctionTool: (db: DatabaseClient) => (params: {
|
|
2108
|
+
scopes: GraphScopeConfig;
|
|
2109
|
+
functionToolId: string;
|
|
2110
|
+
}) => Promise<boolean>;
|
|
2111
|
+
/**
|
|
2112
|
+
* Upsert a function tool (create if it doesn't exist, update if it does)
|
|
2113
|
+
*/
|
|
2114
|
+
declare const upsertFunctionTool: (db: DatabaseClient) => (params: {
|
|
2115
|
+
data: FunctionToolApiInsert;
|
|
2116
|
+
scopes: GraphScopeConfig;
|
|
2117
|
+
}) => Promise<{
|
|
2118
|
+
tenantId: string;
|
|
2119
|
+
projectId: string;
|
|
2120
|
+
id: string;
|
|
2121
|
+
name: string;
|
|
2122
|
+
description: string | null;
|
|
2123
|
+
graphId: string;
|
|
2124
|
+
createdAt: string;
|
|
2125
|
+
updatedAt: string;
|
|
2126
|
+
functionId: string;
|
|
2127
|
+
}>;
|
|
2128
|
+
declare const getFunctionToolsForSubAgent: (db: DatabaseClient) => (params: {
|
|
2129
|
+
scopes: {
|
|
2130
|
+
tenantId: string;
|
|
2131
|
+
projectId: string;
|
|
2132
|
+
graphId: string;
|
|
2133
|
+
};
|
|
2134
|
+
subAgentId: string;
|
|
2135
|
+
}) => Promise<{
|
|
2136
|
+
data: {
|
|
2137
|
+
createdAt: string;
|
|
2138
|
+
updatedAt: string;
|
|
2139
|
+
name: string;
|
|
2140
|
+
description: string | null;
|
|
2141
|
+
functionId: string;
|
|
2142
|
+
graphId: string;
|
|
2143
|
+
projectId: string;
|
|
2144
|
+
tenantId: string;
|
|
2145
|
+
id: string;
|
|
2146
|
+
}[];
|
|
2147
|
+
pagination: {
|
|
2148
|
+
page: number;
|
|
2149
|
+
limit: number;
|
|
2150
|
+
total: number;
|
|
2151
|
+
pages: number;
|
|
2152
|
+
};
|
|
2153
|
+
}>;
|
|
2154
|
+
/**
|
|
2155
|
+
* Upsert an agent-function tool relation (create if it doesn't exist, update if it does)
|
|
2156
|
+
*/
|
|
2157
|
+
declare const upsertSubAgentFunctionToolRelation: (db: DatabaseClient) => (params: {
|
|
2158
|
+
scopes: GraphScopeConfig;
|
|
2159
|
+
subAgentId: string;
|
|
2160
|
+
functionToolId: string;
|
|
2161
|
+
relationId?: string;
|
|
2162
|
+
}) => Promise<{
|
|
2163
|
+
id: string;
|
|
2164
|
+
}>;
|
|
2165
|
+
/**
|
|
2166
|
+
* Add a function tool to an agent
|
|
2167
|
+
*/
|
|
2168
|
+
declare const addFunctionToolToSubAgent: (db: DatabaseClient) => (params: {
|
|
2169
|
+
scopes: GraphScopeConfig;
|
|
2170
|
+
subAgentId: string;
|
|
2171
|
+
functionToolId: string;
|
|
2172
|
+
}) => Promise<{
|
|
2173
|
+
id: string;
|
|
2174
|
+
}>;
|
|
2175
|
+
/**
|
|
2176
|
+
* Update an agent-function tool relation
|
|
2177
|
+
*/
|
|
2178
|
+
declare const updateSubAgentFunctionToolRelation: (db: DatabaseClient) => (params: {
|
|
2179
|
+
scopes: GraphScopeConfig;
|
|
2180
|
+
relationId: string;
|
|
2181
|
+
data: {
|
|
2182
|
+
subAgentId: string;
|
|
2183
|
+
functionToolId: string;
|
|
2184
|
+
};
|
|
2185
|
+
}) => Promise<{
|
|
2186
|
+
id: string;
|
|
2187
|
+
}>;
|
|
2188
|
+
|
|
2027
2189
|
interface GraphLogger {
|
|
2028
2190
|
info(obj: Record<string, any>, msg?: string): void;
|
|
2029
2191
|
error(obj: Record<string, any>, msg?: string): void;
|
|
@@ -2797,15 +2959,7 @@ declare const getToolsForAgent: (db: DatabaseClient) => (params: {
|
|
|
2797
2959
|
config: {
|
|
2798
2960
|
type: "mcp";
|
|
2799
2961
|
mcp: ToolMcpConfig;
|
|
2800
|
-
} | {
|
|
2801
|
-
type: "function";
|
|
2802
|
-
function?: {
|
|
2803
|
-
inputSchema: Record<string, unknown>;
|
|
2804
|
-
executeCode: string;
|
|
2805
|
-
dependencies: Record<string, unknown>;
|
|
2806
|
-
};
|
|
2807
2962
|
};
|
|
2808
|
-
functionId: string | null;
|
|
2809
2963
|
createdAt: string;
|
|
2810
2964
|
updatedAt: string;
|
|
2811
2965
|
capabilities: ToolServerCapabilities | null;
|
|
@@ -3137,20 +3291,12 @@ declare const getToolById: (db: DatabaseClient) => (params: {
|
|
|
3137
3291
|
config: {
|
|
3138
3292
|
type: "mcp";
|
|
3139
3293
|
mcp: ToolMcpConfig;
|
|
3140
|
-
} | {
|
|
3141
|
-
type: "function";
|
|
3142
|
-
function?: {
|
|
3143
|
-
inputSchema: Record<string, unknown>;
|
|
3144
|
-
executeCode: string;
|
|
3145
|
-
dependencies: Record<string, unknown>;
|
|
3146
|
-
};
|
|
3147
3294
|
};
|
|
3148
3295
|
credentialReferenceId: string | null;
|
|
3149
3296
|
createdAt: string;
|
|
3150
3297
|
updatedAt: string;
|
|
3151
3298
|
headers: Record<string, string> | null;
|
|
3152
3299
|
capabilities: ToolServerCapabilities | null;
|
|
3153
|
-
functionId: string | null;
|
|
3154
3300
|
imageUrl: string | null;
|
|
3155
3301
|
lastError: string | null;
|
|
3156
3302
|
} | null>;
|
|
@@ -3166,15 +3312,7 @@ declare const listTools: (db: DatabaseClient) => (params: {
|
|
|
3166
3312
|
config: {
|
|
3167
3313
|
type: "mcp";
|
|
3168
3314
|
mcp: ToolMcpConfig;
|
|
3169
|
-
} | {
|
|
3170
|
-
type: "function";
|
|
3171
|
-
function?: {
|
|
3172
|
-
inputSchema: Record<string, unknown>;
|
|
3173
|
-
executeCode: string;
|
|
3174
|
-
dependencies: Record<string, unknown>;
|
|
3175
|
-
};
|
|
3176
3315
|
};
|
|
3177
|
-
functionId: string | null;
|
|
3178
3316
|
credentialReferenceId: string | null;
|
|
3179
3317
|
headers: Record<string, string> | null;
|
|
3180
3318
|
imageUrl: string | null;
|
|
@@ -3200,20 +3338,12 @@ declare const createTool: (db: DatabaseClient) => (params: ToolInsert) => Promis
|
|
|
3200
3338
|
config: {
|
|
3201
3339
|
type: "mcp";
|
|
3202
3340
|
mcp: ToolMcpConfig;
|
|
3203
|
-
} | {
|
|
3204
|
-
type: "function";
|
|
3205
|
-
function?: {
|
|
3206
|
-
inputSchema: Record<string, unknown>;
|
|
3207
|
-
executeCode: string;
|
|
3208
|
-
dependencies: Record<string, unknown>;
|
|
3209
|
-
};
|
|
3210
3341
|
};
|
|
3211
3342
|
credentialReferenceId: string | null;
|
|
3212
3343
|
createdAt: string;
|
|
3213
3344
|
updatedAt: string;
|
|
3214
3345
|
headers: Record<string, string> | null;
|
|
3215
3346
|
capabilities: ToolServerCapabilities | null;
|
|
3216
|
-
functionId: string | null;
|
|
3217
3347
|
imageUrl: string | null;
|
|
3218
3348
|
lastError: string | null;
|
|
3219
3349
|
}>;
|
|
@@ -3230,20 +3360,12 @@ declare const updateTool: (db: DatabaseClient) => (params: {
|
|
|
3230
3360
|
config: {
|
|
3231
3361
|
type: "mcp";
|
|
3232
3362
|
mcp: ToolMcpConfig;
|
|
3233
|
-
} | {
|
|
3234
|
-
type: "function";
|
|
3235
|
-
function?: {
|
|
3236
|
-
inputSchema: Record<string, unknown>;
|
|
3237
|
-
executeCode: string;
|
|
3238
|
-
dependencies: Record<string, unknown>;
|
|
3239
|
-
};
|
|
3240
3363
|
};
|
|
3241
3364
|
credentialReferenceId: string | null;
|
|
3242
3365
|
createdAt: string;
|
|
3243
3366
|
updatedAt: string;
|
|
3244
3367
|
headers: Record<string, string> | null;
|
|
3245
3368
|
capabilities: ToolServerCapabilities | null;
|
|
3246
|
-
functionId: string | null;
|
|
3247
3369
|
imageUrl: string | null;
|
|
3248
3370
|
lastError: string | null;
|
|
3249
3371
|
}>;
|
|
@@ -3288,7 +3410,7 @@ declare const removeToolFromAgent: (db: DatabaseClient) => (params: {
|
|
|
3288
3410
|
/**
|
|
3289
3411
|
* Upsert agent-tool relation (create if it doesn't exist, update if it does)
|
|
3290
3412
|
*/
|
|
3291
|
-
declare const
|
|
3413
|
+
declare const upsertSubAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
3292
3414
|
scopes: GraphScopeConfig;
|
|
3293
3415
|
subAgentId: string;
|
|
3294
3416
|
toolId: string;
|
|
@@ -3321,20 +3443,12 @@ declare const upsertTool: (db: DatabaseClient) => (params: {
|
|
|
3321
3443
|
config: {
|
|
3322
3444
|
type: "mcp";
|
|
3323
3445
|
mcp: ToolMcpConfig;
|
|
3324
|
-
} | {
|
|
3325
|
-
type: "function";
|
|
3326
|
-
function?: {
|
|
3327
|
-
inputSchema: Record<string, unknown>;
|
|
3328
|
-
executeCode: string;
|
|
3329
|
-
dependencies: Record<string, unknown>;
|
|
3330
|
-
};
|
|
3331
3446
|
};
|
|
3332
3447
|
credentialReferenceId: string | null;
|
|
3333
3448
|
createdAt: string;
|
|
3334
3449
|
updatedAt: string;
|
|
3335
3450
|
headers: Record<string, string> | null;
|
|
3336
3451
|
capabilities: ToolServerCapabilities | null;
|
|
3337
|
-
functionId: string | null;
|
|
3338
3452
|
imageUrl: string | null;
|
|
3339
3453
|
lastError: string | null;
|
|
3340
3454
|
}>;
|
|
@@ -4038,4 +4152,4 @@ declare function setSpanWithError(span: Span, error: Error, logger?: {
|
|
|
4038
4152
|
*/
|
|
4039
4153
|
declare function getTracer(serviceName: string, serviceVersion?: string): Tracer;
|
|
4040
4154
|
|
|
4041
|
-
export { AgentGraphInsert, AgentGraphUpdate, AgentScopeConfig, 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, ExternalAgentSelect, ExternalAgentUpdate, ExternalSubAgentRelationInsert, 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, SubAgentInsert, SubAgentRelationInsert, SubAgentRelationUpdate, SubAgentSelect, SubAgentToolRelationUpdate, SubAgentUpdate, 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, createAgentGraph, createAgentToolRelation, createApiError, createApiKey, createArtifactComponent, createContextConfig, createConversation, createCredentialReference, createDataComponent, createDatabaseClient, createDefaultCredentialStores, createExecutionContext, createExternalAgent, createExternalAgentRelation, createFullGraphServerSide, createFullProjectServerSide, createInMemoryDatabaseClient, createKeyChainStore, createMessage, createNangoCredentialStore, createOrGetConversation, createProject, createSubAgent, createSubAgentRelation, createTask, createTool, createValidatedDataAccess, dbResultToMcpTool, deleteAgentArtifactComponentRelationByAgent, deleteAgentDataComponentRelationByAgent, deleteAgentGraph, deleteAgentRelationsByGraph, deleteAgentToolRelation, deleteAgentToolRelationByAgent, deleteApiKey, deleteArtifactComponent, deleteContextConfig, deleteConversation, deleteCredentialReference, deleteDataComponent, deleteExternalAgent, deleteFullGraph, deleteFullProject, deleteFunction, deleteLedgerArtifactsByContext, deleteLedgerArtifactsByTask, deleteMessage, deleteProject, deleteSubAgent, deleteSubAgentRelation, deleteTool, detectAuthenticationRequired, determineContextTrigger, discoverOAuthEndpoints, errorResponseSchema, errorSchemaFactory, externalAgentExists, externalAgentUrlExists, extractPublicId, fetchComponentRelationships, fetchDefinition, generateAndCreateApiKey, generateApiKey, generateId, getActiveAgentForConversation, getAgentGraphById, getAgentGraphWithDefaultSubAgent, getAgentRelationById, getAgentRelationByParams, getAgentRelations, getAgentRelationsByGraph, getAgentRelationsBySource, getAgentRelationsByTarget, getAgentToolRelationByAgent, getAgentToolRelationById, getAgentToolRelationByTool, 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, getSubAgentById, getSubAgentsByIds, getTask, getToolById, getToolsForAgent, getTracer, getVisibleMessages, graphHasArtifactComponents, handleApiError, handleContextConfigChange, handleContextResolution, hasApiKey, hasContextConfig, hasCredentialReference, hashApiKey, headers, invalidateHeadersCache, invalidateInvocationDefinitionsCache, isApiKeyExpired, isArtifactComponentAssociatedWithAgent, isDataComponentAssociatedWithAgent, isValidHttpRequest, listAgentGraphs, listAgentGraphsPaginated, listAgentRelations, listAgentToolRelations, listApiKeys, listApiKeysPaginated, listArtifactComponents, listArtifactComponentsPaginated, listContextConfigs, listContextConfigsPaginated, listConversations, listCredentialReferences, listCredentialReferencesPaginated, listDataComponents, listDataComponentsPaginated, listExternalAgents, listExternalAgentsPaginated, listFunctions, listMessages, listProjects, listProjectsPaginated, listSubAgents, listSubAgentsPaginated, listTaskIdsByContextId, listTools, loadEnvironmentFiles, loggerFactory, maskApiKey, problemDetailsSchema, projectExists, projectExistsInTable, projectHasResources, removeArtifactComponentFromAgent, removeDataComponentFromAgent, removeToolFromAgent, setActiveAgentForConversation, setActiveAgentForThread, setCacheEntry, setSpanWithError, updateAgentGraph, updateAgentRelation, updateAgentToolRelation, updateApiKey, updateApiKeyLastUsed, updateArtifactComponent, updateContextConfig, updateConversation, updateConversationActiveAgent, updateCredentialReference, updateDataComponent, updateExternalAgent, updateFullGraphServerSide, updateFullProjectServerSide, updateMessage, updateProject, updateSubAgent, updateTask, updateTool, upsertAgentArtifactComponentRelation, upsertAgentDataComponentRelation, upsertAgentGraph, upsertAgentRelation,
|
|
4155
|
+
export { AgentGraphInsert, AgentGraphUpdate, AgentScopeConfig, 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, ExternalAgentSelect, ExternalAgentUpdate, ExternalSubAgentRelationInsert, type FetchResult, FullGraphDefinition, FullProjectDefinition, FunctionApiInsert, FunctionToolApiInsert, FunctionToolApiUpdate, 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, SubAgentInsert, SubAgentRelationInsert, SubAgentRelationUpdate, SubAgentSelect, SubAgentToolRelationUpdate, SubAgentUpdate, TaskInsert, TaskMetadataConfig, TaskSelect, type TemplateContext, TemplateEngine, type TemplateRenderOptions, ToolInsert, ToolMcpConfig, ToolSelect, ToolServerCapabilities, ToolUpdate, addFunctionToolToSubAgent, addLedgerArtifacts, addToolToAgent, apiFetch, associateArtifactComponentWithAgent, associateDataComponentWithAgent, cleanupTenantCache, clearContextConfigCache, clearConversationCache, commonCreateErrorResponses, commonDeleteErrorResponses, commonGetErrorResponses, commonUpdateErrorResponses, contextConfig, contextValidationMiddleware, countApiKeys, countArtifactComponents, countArtifactComponentsForAgent, countContextConfigs, countCredentialReferences, countDataComponents, countExternalAgents, countLedgerArtifactsByTask, countMessagesByConversation, countProjects, createAgentGraph, createAgentToolRelation, createApiError, createApiKey, createArtifactComponent, createContextConfig, createConversation, createCredentialReference, createDataComponent, createDatabaseClient, createDefaultCredentialStores, createExecutionContext, createExternalAgent, createExternalAgentRelation, createFullGraphServerSide, createFullProjectServerSide, createFunctionTool, createInMemoryDatabaseClient, createKeyChainStore, createMessage, createNangoCredentialStore, createOrGetConversation, createProject, createSubAgent, createSubAgentRelation, createTask, createTool, createValidatedDataAccess, dbResultToMcpTool, deleteAgentArtifactComponentRelationByAgent, deleteAgentDataComponentRelationByAgent, deleteAgentGraph, deleteAgentRelationsByGraph, deleteAgentToolRelation, deleteAgentToolRelationByAgent, deleteApiKey, deleteArtifactComponent, deleteContextConfig, deleteConversation, deleteCredentialReference, deleteDataComponent, deleteExternalAgent, deleteFullGraph, deleteFullProject, deleteFunction, deleteFunctionTool, deleteLedgerArtifactsByContext, deleteLedgerArtifactsByTask, deleteMessage, deleteProject, deleteSubAgent, deleteSubAgentRelation, deleteTool, detectAuthenticationRequired, determineContextTrigger, discoverOAuthEndpoints, errorResponseSchema, errorSchemaFactory, externalAgentExists, externalAgentUrlExists, extractPublicId, fetchComponentRelationships, fetchDefinition, generateAndCreateApiKey, generateApiKey, generateId, getActiveAgentForConversation, getAgentGraphById, getAgentGraphWithDefaultSubAgent, getAgentRelationById, getAgentRelationByParams, getAgentRelations, getAgentRelationsByGraph, getAgentRelationsBySource, getAgentRelationsByTarget, getAgentToolRelationByAgent, getAgentToolRelationById, getAgentToolRelationByTool, 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, getFunctionToolById, getFunctionToolsForSubAgent, getGraphAgentInfos, getLedgerArtifacts, getLedgerArtifactsByContext, getLogger, getMessageById, getMessagesByConversation, getMessagesByTask, getProject, getProjectResourceCounts, getRelatedAgentsForGraph, getRequestExecutionContext, getSubAgentById, getSubAgentsByIds, getTask, getToolById, getToolsForAgent, getTracer, getVisibleMessages, graphHasArtifactComponents, handleApiError, handleContextConfigChange, handleContextResolution, hasApiKey, hasContextConfig, hasCredentialReference, hashApiKey, headers, invalidateHeadersCache, invalidateInvocationDefinitionsCache, isApiKeyExpired, isArtifactComponentAssociatedWithAgent, isDataComponentAssociatedWithAgent, isValidHttpRequest, listAgentGraphs, listAgentGraphsPaginated, listAgentRelations, listAgentToolRelations, listApiKeys, listApiKeysPaginated, listArtifactComponents, listArtifactComponentsPaginated, listContextConfigs, listContextConfigsPaginated, listConversations, listCredentialReferences, listCredentialReferencesPaginated, listDataComponents, listDataComponentsPaginated, listExternalAgents, listExternalAgentsPaginated, listFunctionTools, listFunctions, listMessages, listProjects, listProjectsPaginated, listSubAgents, listSubAgentsPaginated, listTaskIdsByContextId, listTools, loadEnvironmentFiles, loggerFactory, maskApiKey, problemDetailsSchema, projectExists, projectExistsInTable, projectHasResources, removeArtifactComponentFromAgent, removeDataComponentFromAgent, removeToolFromAgent, setActiveAgentForConversation, setActiveAgentForThread, setCacheEntry, setSpanWithError, updateAgentGraph, updateAgentRelation, updateAgentToolRelation, updateApiKey, updateApiKeyLastUsed, updateArtifactComponent, updateContextConfig, updateConversation, updateConversationActiveAgent, updateCredentialReference, updateDataComponent, updateExternalAgent, updateFullGraphServerSide, updateFullProjectServerSide, updateFunctionTool, updateMessage, updateProject, updateSubAgent, updateSubAgentFunctionToolRelation, updateTask, updateTool, upsertAgentArtifactComponentRelation, upsertAgentDataComponentRelation, upsertAgentGraph, upsertAgentRelation, upsertArtifactComponent, upsertContextConfig, upsertCredentialReference, upsertDataComponent, upsertExternalAgent, upsertFunction, upsertFunctionTool, upsertLedgerArtifact, upsertSubAgent, upsertSubAgentFunctionToolRelation, upsertSubAgentToolRelation, upsertTool, validateAgainstJsonSchema, validateAndGetApiKey, validateApiKey, validateExternalAgent, validateHeaders, validateHttpRequestHeaders, validateInternalSubAgent, validateProjectExists, validationHelper, withProjectValidation };
|