@inkeep/agents-core 0.22.12 → 0.23.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/{signoz-queries-Bqpkx5sK.d.cts → auth-detection-BO8bSpe4.d.cts} +158 -1
- package/dist/{signoz-queries-Bqpkx5sK.d.ts → auth-detection-BO8bSpe4.d.ts} +158 -1
- package/dist/{chunk-QFIITHNT.js → chunk-5GAUAB2P.js} +164 -1
- package/dist/{chunk-NLZO4BB6.js → chunk-AN3YZP42.js} +1 -1
- package/dist/{chunk-4SE2FOJY.js → chunk-HN77JIDP.js} +2 -1
- package/dist/client-exports.cjs +66 -1
- package/dist/client-exports.d.cts +4 -3
- package/dist/client-exports.d.ts +4 -3
- package/dist/client-exports.js +3 -3
- package/dist/db/schema.d.cts +2 -2
- package/dist/db/schema.d.ts +2 -2
- package/dist/index.cjs +181 -105
- package/dist/index.d.cts +9 -115
- package/dist/index.d.ts +9 -115
- package/dist/index.js +44 -131
- package/dist/{schema-HuJ7Qh0C.d.cts → schema-B8NMPwEM.d.cts} +1 -1
- package/dist/{schema-Bo7m08k2.d.ts → schema-PgBNwsV-.d.ts} +1 -1
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/{utility-usOTNbMG.d.cts → utility-mGrlR4Ta.d.cts} +2 -0
- package/dist/{utility-usOTNbMG.d.ts → utility-mGrlR4Ta.d.ts} +2 -0
- package/dist/validation/index.cjs +2 -1
- package/dist/validation/index.d.cts +2 -2
- package/dist/validation/index.d.ts +2 -2
- package/dist/validation/index.js +2 -2
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
export { ANTHROPIC_MODELS, AnthropicModel, GOOGLE_MODELS, GoogleModel, ModelName, OPENAI_MODELS, OpenAIModel } from './constants/models.js';
|
|
2
|
-
|
|
2
|
+
import { r as PinoLogger, s as getLogger } from './auth-detection-BO8bSpe4.js';
|
|
3
|
+
export { i as ACTIVITY_NAMES, g as ACTIVITY_STATUS, f as ACTIVITY_TYPES, h 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, L as LoggerFactoryConfig, M as McpOAuthFlowResult, u as McpTokenExchangeResult, t as OAuthConfig, O as OPERATORS, m as ORDER_DIRECTIONS, P as PANEL_TYPES, x as PinoLoggerConfig, q as QUERY_DEFAULTS, l as QUERY_EXPRESSIONS, Q as QUERY_FIELD_CONFIGS, n as QUERY_TYPES, R as REDUCE_OPERATIONS, e as SPAN_KEYS, S as SPAN_NAMES, T as TRANSFER_FROM_SUB_AGENT_ID, c as TRANSFER_TO_SUB_AGENT_ID, U as UNKNOWN_VALUE, d as detectAuthenticationRequired, w as exchangeMcpAuthorizationCode, v as initiateMcpOAuthFlow, y as loggerFactory } from './auth-detection-BO8bSpe4.js';
|
|
3
4
|
import { z } from 'zod';
|
|
4
|
-
import { r as CredentialReferenceApiInsert, s as ContextConfigSelect, l as ContextFetchDefinition, i as MCPTransportType, t as MCPToolConfig, u as AgentScopeConfig, C as ConversationHistoryConfig, v as ProjectScopeConfig, w as PaginationConfig, x as AgentInsert, y as AgentUpdate, z as FullAgentDefinition, B as AgentSelect, D as ApiKeySelect, E as ApiKeyInsert, G as ApiKeyUpdate, H as CreateApiKeyParams, I as ApiKeyCreateResult, J as ArtifactComponentSelect, K as ArtifactComponentInsert, L as ArtifactComponentUpdate, N as SubAgentScopeConfig, 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, h as CredentialStoreType, ax as ExecutionContext } from './utility-
|
|
5
|
-
export { b9 as A2AError, bF as A2ARequest, bG as A2AResponse, aK as APIKeySecurityScheme, bT as AgentApiInsert, dW as AgentApiInsertSchema, bS as AgentApiSelect, dV as AgentApiSelectSchema, bU as AgentApiUpdate, dX as AgentApiUpdateSchema, aG as AgentCapabilities, aU as AgentCard, dk as AgentConversationHistoryConfig, dT as AgentInsertSchema, gh as AgentListResponse, aH as AgentProvider, g1 as AgentResponse, dS as AgentSelectSchema, aI as AgentSkill, e as AgentStopWhen, b as AgentStopWhenSchema, dU as AgentUpdateSchema, fN as AgentWithinContextOfProjectSchema, e_ as AllAgentSchema, cN as AllAgentSelect, cR as ApiKeyApiCreationResponse, f3 as ApiKeyApiCreationResponseSchema, cP as ApiKeyApiInsert, f4 as ApiKeyApiInsertSchema, cO as ApiKeyApiSelect, f2 as ApiKeyApiSelectSchema, cQ as ApiKeyApiUpdate, A as ApiKeyApiUpdateSchema, f0 as ApiKeyInsertSchema, gl as ApiKeyListResponse, g5 as ApiKeyResponse, e$ as ApiKeySelectSchema, f1 as ApiKeyUpdateSchema, cC as ArtifactComponentApiInsert, eM as ArtifactComponentApiInsertSchema, cB as ArtifactComponentApiSelect, eL as ArtifactComponentApiSelectSchema, cD as ArtifactComponentApiUpdate, eN as ArtifactComponentApiUpdateSchema, eJ as ArtifactComponentInsertSchema, gq as ArtifactComponentListResponse, ga as ArtifactComponentResponse, eI as ArtifactComponentSelectSchema, eK as ArtifactComponentUpdateSchema, aN as AuthorizationCodeOAuthFlow, d3 as CanUseItem, fM as CanUseItemSchema, bp as CancelTaskRequest, bA as CancelTaskResponse, bz as CancelTaskSuccessResponse, aO as ClientCredentialsOAuthFlow, b7 as ContentTypeNotSupportedError, cq as ContextCacheApiInsert, et as ContextCacheApiInsertSchema, cp as ContextCacheApiSelect, es as ContextCacheApiSelectSchema, cr as ContextCacheApiUpdate, eu as ContextCacheApiUpdateSchema, dl as ContextCacheEntry, eq as ContextCacheInsertSchema, ep as ContextCacheSelectSchema, co as ContextCacheUpdate, er as ContextCacheUpdateSchema, ck as ContextConfigApiInsert, fw as ContextConfigApiInsertSchema, cj as ContextConfigApiSelect, fv as ContextConfigApiSelectSchema, cl as ContextConfigApiUpdate, fx as ContextConfigApiUpdateSchema, ft as ContextConfigInsertSchema, gk as ContextConfigListResponse, g4 as ContextConfigResponse, fs as ContextConfigSelectSchema, fu as ContextConfigUpdateSchema, cd as ConversationApiInsert, eh as ConversationApiInsertSchema, cc as ConversationApiSelect, eg as ConversationApiSelectSchema, ce as ConversationApiUpdate, ei as ConversationApiUpdateSchema, ee as ConversationInsertSchema, gt as ConversationListResponse, gd as ConversationResponse, dj as ConversationScopeOptions, ed as ConversationSelectSchema, ef as ConversationUpdateSchema, f9 as CredentialReferenceApiInsertSchema, cS as CredentialReferenceApiSelect, f8 as CredentialReferenceApiSelectSchema, cT as CredentialReferenceApiUpdate, fa as CredentialReferenceApiUpdateSchema, f6 as CredentialReferenceInsertSchema, gm as CredentialReferenceListResponse, g6 as CredentialReferenceResponse, f5 as CredentialReferenceSelectSchema, f7 as CredentialReferenceUpdateSchema, ct as DataComponentApiInsert, eA as DataComponentApiInsertSchema, cs as DataComponentApiSelect, ez as DataComponentApiSelectSchema, cu as DataComponentApiUpdate, eB as DataComponentApiUpdateSchema, ex as DataComponentBaseSchema, ew as DataComponentInsertSchema, gp as DataComponentListResponse, g9 as DataComponentResponse, ev as DataComponentSelectSchema, ey as DataComponentUpdateSchema, aE as DataPart, fR as ErrorResponseSchema, fS as ExistsResponseSchema, eY as ExternalAgentApiInsertSchema, cK as ExternalAgentApiSelect, eX as ExternalAgentApiSelectSchema, cM as ExternalAgentApiUpdate, eZ as ExternalAgentApiUpdateSchema, eV as ExternalAgentInsertSchema, gj as ExternalAgentListResponse, g3 as ExternalAgentResponse, eU as ExternalAgentSelectSchema, eW as ExternalAgentUpdateSchema, cL as ExternalSubAgentApiInsert, bR as ExternalSubAgentRelationApiInsert, dR as ExternalSubAgentRelationApiInsertSchema, dQ as ExternalSubAgentRelationInsertSchema, cn as FetchConfig, fq as FetchConfigSchema, cm as FetchDefinition, fr as FetchDefinitionSchema, aA as FileBase, aD as FilePart, aB as FileWithBytes, aC as FileWithUri, d2 as FullAgentAgentInsert, a as FullAgentAgentInsertSchema, f_ as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, c9 as FunctionApiSelect, j as FunctionApiSelectSchema, ca as FunctionApiUpdate, k as FunctionApiUpdateSchema, c7 as FunctionInsert, fo as FunctionInsertSchema, gn as FunctionListResponse, g7 as FunctionResponse, c6 as FunctionSelect, fn as FunctionSelectSchema, fl as FunctionToolApiInsertSchema, cb as FunctionToolApiSelect, fk as FunctionToolApiSelectSchema, fm as FunctionToolApiUpdateSchema, dC as FunctionToolConfig, dB as FunctionToolConfigSchema, fi as FunctionToolInsertSchema, go as FunctionToolListResponse, g8 as FunctionToolResponse, fh as FunctionToolSelectSchema, fj as FunctionToolUpdateSchema, c8 as FunctionUpdate, fp as FunctionUpdateSchema, br as GetTaskPushNotificationConfigRequest, bE as GetTaskPushNotificationConfigResponse, bD as GetTaskPushNotificationConfigSuccessResponse, bo as GetTaskRequest, by as GetTaskResponse, bx as GetTaskSuccessResponse, aL as HTTPAuthSecurityScheme, gz as HeadersScopeSchema, aP as ImplicitOAuthFlow, b2 as InternalError, d4 as InternalSubAgentDefinition, 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, d0 as LedgerArtifactApiInsert, fI as LedgerArtifactApiInsertSchema, c$ as LedgerArtifactApiSelect, fH as LedgerArtifactApiSelectSchema, d1 as LedgerArtifactApiUpdate, fJ as LedgerArtifactApiUpdateSchema, cZ as LedgerArtifactInsert, fF as LedgerArtifactInsertSchema, fE as LedgerArtifactSelectSchema, c_ as LedgerArtifactUpdate, fG as LedgerArtifactUpdateSchema, fP as ListResponseSchema, dw as MAX_ID_LENGTH, du as MCPServerType, fc as MCPToolConfigSchema, dv as MIN_ID_LENGTH, dm as McpAuthType, dn as McpServerAuth, dq as McpServerCapabilities, dr as McpToolDefinition, ea as McpToolDefinitionSchema, fb as McpToolSchema, dp as McpTransportConfig, e8 as McpTransportConfigSchema, aV as Message, ch as MessageApiInsert, en as MessageApiInsertSchema, cg as MessageApiSelect, em as MessageApiSelectSchema, ci as MessageApiUpdate, eo as MessageApiUpdateSchema, ek as MessageInsertSchema, gu as MessageListResponse, de as MessageMode, bH as MessagePart, ge as MessageResponse, dd as MessageRole, cf as MessageSelect, ej as MessageSelectSchema, bf as MessageSendConfiguration, bg as MessageSendParams, dc as MessageType, el as MessageUpdateSchema, b0 as MethodNotFoundError, dz as ModelSchema, g as ModelSettings, M as ModelSettingsSchema, df as Models, aR as OAuth2SecurityScheme, aM as OAuthFlows, aS as OpenIdConnectSecurityScheme, da as Pagination, gI as PaginationQueryParamsSchema, fO as PaginationSchema, P as Part, ay as PartBase, aQ as PasswordOAuthFlow, d8 as ProjectApiInsert, fY as ProjectApiInsertSchema, d7 as ProjectApiSelect, fX as ProjectApiSelectSchema, d9 as ProjectApiUpdate, fZ as ProjectApiUpdateSchema, fV as ProjectInsertSchema, gf as ProjectListResponse, dA as ProjectModelSchema, dg as ProjectModels, f$ as ProjectResponse, fU as ProjectSelectSchema, fW as ProjectUpdateSchema, ba as PushNotificationAuthenticationInfo, bb as PushNotificationConfig, b5 as PushNotificationNotSupportedError, fT as RemovedResponseSchema, 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, fQ as SingleResponseSchema, di as StatusComponent, fK as StatusComponentSchema, fL as StatusUpdateSchema, dh as StatusUpdateSettings, d as StopWhen, S as StopWhenSchema, bK as SubAgentApiInsert, dH as SubAgentApiInsertSchema, bJ as SubAgentApiSelect, dG as SubAgentApiSelectSchema, bL as SubAgentApiUpdate, dI as SubAgentApiUpdateSchema, cI as SubAgentArtifactComponentApiInsert, eS as SubAgentArtifactComponentApiInsertSchema, cH as SubAgentArtifactComponentApiSelect, eR as SubAgentArtifactComponentApiSelectSchema, cJ as SubAgentArtifactComponentApiUpdate, eT as SubAgentArtifactComponentApiUpdateSchema, cF as SubAgentArtifactComponentInsert, eP as SubAgentArtifactComponentInsertSchema, gy as SubAgentArtifactComponentListResponse, gw as SubAgentArtifactComponentResponse, cE as SubAgentArtifactComponentSelect, eO as SubAgentArtifactComponentSelectSchema, cG as SubAgentArtifactComponentUpdate, eQ as SubAgentArtifactComponentUpdateSchema, cz as SubAgentDataComponentApiInsert, eG as SubAgentDataComponentApiInsertSchema, cy as SubAgentDataComponentApiSelect, eF as SubAgentDataComponentApiSelectSchema, cA as SubAgentDataComponentApiUpdate, eH as SubAgentDataComponentApiUpdateSchema, cw as SubAgentDataComponentInsert, eD as SubAgentDataComponentInsertSchema, gx as SubAgentDataComponentListResponse, gv as SubAgentDataComponentResponse, cv as SubAgentDataComponentSelect, eC as SubAgentDataComponentSelectSchema, cx as SubAgentDataComponentUpdate, eE as SubAgentDataComponentUpdateSchema, d5 as SubAgentDefinition, dE as SubAgentInsertSchema, gg as SubAgentListResponse, bO as SubAgentRelationApiInsert, dN as SubAgentRelationApiInsertSchema, bN as SubAgentRelationApiSelect, dM as SubAgentRelationApiSelectSchema, bP as SubAgentRelationApiUpdate, dO as SubAgentRelationApiUpdateSchema, dK as SubAgentRelationInsertSchema, gr as SubAgentRelationListResponse, bQ as SubAgentRelationQuery, dP as SubAgentRelationQuerySchema, gb as SubAgentRelationResponse, bM as SubAgentRelationSelect, dJ as SubAgentRelationSelectSchema, dL as SubAgentRelationUpdateSchema, g0 as SubAgentResponse, dD as SubAgentSelectSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema, cX as SubAgentToolRelationApiInsert, fC as SubAgentToolRelationApiInsertSchema, cW as SubAgentToolRelationApiSelect, fB as SubAgentToolRelationApiSelectSchema, cY as SubAgentToolRelationApiUpdate, fD as SubAgentToolRelationApiUpdateSchema, cV as SubAgentToolRelationInsert, fz as SubAgentToolRelationInsertSchema, gs as SubAgentToolRelationListResponse, gc as SubAgentToolRelationResponse, cU as SubAgentToolRelationSelect, fy as SubAgentToolRelationSelectSchema, fA as SubAgentToolRelationUpdateSchema, dF as SubAgentUpdateSchema, db as SummaryEvent, ds as TOOL_STATUS_VALUES, aX as Task, bX as TaskApiInsert, e0 as TaskApiInsertSchema, bW as TaskApiSelect, d$ as TaskApiSelectSchema, bY as TaskApiUpdate, e1 as TaskApiUpdateSchema, bI as TaskArtifact, aZ as TaskArtifactUpdateEvent, bd as TaskIdParams, dZ as TaskInsertSchema, b4 as TaskNotCancelableError, b3 as TaskNotFoundError, bc as TaskPushNotificationConfig, be as TaskQueryParams, c1 as TaskRelationApiInsert, e6 as TaskRelationApiInsertSchema, c0 as TaskRelationApiSelect, e5 as TaskRelationApiSelectSchema, c2 as TaskRelationApiUpdate, e7 as TaskRelationApiUpdateSchema, b_ as TaskRelationInsert, e3 as TaskRelationInsertSchema, bZ as TaskRelationSelect, e2 as TaskRelationSelectSchema, b$ as TaskRelationUpdate, e4 as TaskRelationUpdateSchema, bs as TaskResubscriptionRequest, dY as TaskSelectSchema, aF as TaskState, aW as TaskStatus, aY as TaskStatusUpdateEvent, bV as TaskUpdate, d_ as TaskUpdateSchema, gB as TenantIdParamsSchema, gA as TenantParamsSchema, gF as TenantProjectAgentIdParamsSchema, gE as TenantProjectAgentParamsSchema, gH as TenantProjectAgentSubAgentIdParamsSchema, gG as TenantProjectAgentSubAgentParamsSchema, gD as TenantProjectIdParamsSchema, gC as TenantProjectParamsSchema, az as TextPart, c4 as ToolApiInsert, ff as ToolApiInsertSchema, c3 as ToolApiSelect, fe as ToolApiSelectSchema, c5 as ToolApiUpdate, fg as ToolApiUpdateSchema, d6 as ToolDefinition, ec as ToolInsertSchema, gi as ToolListResponse, g2 as ToolResponse, eb as ToolSelectSchema, e9 as ToolStatusSchema, fd as ToolUpdateSchema, dx as URL_SAFE_ID_PATTERN, b6 as UnsupportedOperationError, dt as VALID_RELATION_TYPES, dy as resourceIdSchema } from './utility-usOTNbMG.js';
|
|
5
|
+
import { r as CredentialReferenceApiInsert, s as ContextConfigSelect, l as ContextFetchDefinition, i as MCPTransportType, t as MCPToolConfig, u as AgentScopeConfig, C as ConversationHistoryConfig, v as ProjectScopeConfig, w as PaginationConfig, x as AgentInsert, y as AgentUpdate, z as FullAgentDefinition, B as AgentSelect, D as ApiKeySelect, E as ApiKeyInsert, G as ApiKeyUpdate, H as CreateApiKeyParams, I as ApiKeyCreateResult, J as ArtifactComponentSelect, K as ArtifactComponentInsert, L as ArtifactComponentUpdate, N as SubAgentScopeConfig, 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, h as CredentialStoreType, ax as ExecutionContext } from './utility-mGrlR4Ta.js';
|
|
6
|
+
export { b9 as A2AError, bF as A2ARequest, bG as A2AResponse, aK as APIKeySecurityScheme, bT as AgentApiInsert, dW as AgentApiInsertSchema, bS as AgentApiSelect, dV as AgentApiSelectSchema, bU as AgentApiUpdate, dX as AgentApiUpdateSchema, aG as AgentCapabilities, aU as AgentCard, dk as AgentConversationHistoryConfig, dT as AgentInsertSchema, gh as AgentListResponse, aH as AgentProvider, g1 as AgentResponse, dS as AgentSelectSchema, aI as AgentSkill, e as AgentStopWhen, b as AgentStopWhenSchema, dU as AgentUpdateSchema, fN as AgentWithinContextOfProjectSchema, e_ as AllAgentSchema, cN as AllAgentSelect, cR as ApiKeyApiCreationResponse, f3 as ApiKeyApiCreationResponseSchema, cP as ApiKeyApiInsert, f4 as ApiKeyApiInsertSchema, cO as ApiKeyApiSelect, f2 as ApiKeyApiSelectSchema, cQ as ApiKeyApiUpdate, A as ApiKeyApiUpdateSchema, f0 as ApiKeyInsertSchema, gl as ApiKeyListResponse, g5 as ApiKeyResponse, e$ as ApiKeySelectSchema, f1 as ApiKeyUpdateSchema, cC as ArtifactComponentApiInsert, eM as ArtifactComponentApiInsertSchema, cB as ArtifactComponentApiSelect, eL as ArtifactComponentApiSelectSchema, cD as ArtifactComponentApiUpdate, eN as ArtifactComponentApiUpdateSchema, eJ as ArtifactComponentInsertSchema, gq as ArtifactComponentListResponse, ga as ArtifactComponentResponse, eI as ArtifactComponentSelectSchema, eK as ArtifactComponentUpdateSchema, aN as AuthorizationCodeOAuthFlow, d3 as CanUseItem, fM as CanUseItemSchema, bp as CancelTaskRequest, bA as CancelTaskResponse, bz as CancelTaskSuccessResponse, aO as ClientCredentialsOAuthFlow, b7 as ContentTypeNotSupportedError, cq as ContextCacheApiInsert, et as ContextCacheApiInsertSchema, cp as ContextCacheApiSelect, es as ContextCacheApiSelectSchema, cr as ContextCacheApiUpdate, eu as ContextCacheApiUpdateSchema, dl as ContextCacheEntry, eq as ContextCacheInsertSchema, ep as ContextCacheSelectSchema, co as ContextCacheUpdate, er as ContextCacheUpdateSchema, ck as ContextConfigApiInsert, fw as ContextConfigApiInsertSchema, cj as ContextConfigApiSelect, fv as ContextConfigApiSelectSchema, cl as ContextConfigApiUpdate, fx as ContextConfigApiUpdateSchema, ft as ContextConfigInsertSchema, gk as ContextConfigListResponse, g4 as ContextConfigResponse, fs as ContextConfigSelectSchema, fu as ContextConfigUpdateSchema, cd as ConversationApiInsert, eh as ConversationApiInsertSchema, cc as ConversationApiSelect, eg as ConversationApiSelectSchema, ce as ConversationApiUpdate, ei as ConversationApiUpdateSchema, ee as ConversationInsertSchema, gt as ConversationListResponse, gd as ConversationResponse, dj as ConversationScopeOptions, ed as ConversationSelectSchema, ef as ConversationUpdateSchema, f9 as CredentialReferenceApiInsertSchema, cS as CredentialReferenceApiSelect, f8 as CredentialReferenceApiSelectSchema, cT as CredentialReferenceApiUpdate, fa as CredentialReferenceApiUpdateSchema, f6 as CredentialReferenceInsertSchema, gm as CredentialReferenceListResponse, g6 as CredentialReferenceResponse, f5 as CredentialReferenceSelectSchema, f7 as CredentialReferenceUpdateSchema, ct as DataComponentApiInsert, eA as DataComponentApiInsertSchema, cs as DataComponentApiSelect, ez as DataComponentApiSelectSchema, cu as DataComponentApiUpdate, eB as DataComponentApiUpdateSchema, ex as DataComponentBaseSchema, ew as DataComponentInsertSchema, gp as DataComponentListResponse, g9 as DataComponentResponse, ev as DataComponentSelectSchema, ey as DataComponentUpdateSchema, aE as DataPart, fR as ErrorResponseSchema, fS as ExistsResponseSchema, eY as ExternalAgentApiInsertSchema, cK as ExternalAgentApiSelect, eX as ExternalAgentApiSelectSchema, cM as ExternalAgentApiUpdate, eZ as ExternalAgentApiUpdateSchema, eV as ExternalAgentInsertSchema, gj as ExternalAgentListResponse, g3 as ExternalAgentResponse, eU as ExternalAgentSelectSchema, eW as ExternalAgentUpdateSchema, cL as ExternalSubAgentApiInsert, bR as ExternalSubAgentRelationApiInsert, dR as ExternalSubAgentRelationApiInsertSchema, dQ as ExternalSubAgentRelationInsertSchema, cn as FetchConfig, fq as FetchConfigSchema, cm as FetchDefinition, fr as FetchDefinitionSchema, aA as FileBase, aD as FilePart, aB as FileWithBytes, aC as FileWithUri, d2 as FullAgentAgentInsert, a as FullAgentAgentInsertSchema, f_ as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, c9 as FunctionApiSelect, j as FunctionApiSelectSchema, ca as FunctionApiUpdate, k as FunctionApiUpdateSchema, c7 as FunctionInsert, fo as FunctionInsertSchema, gn as FunctionListResponse, g7 as FunctionResponse, c6 as FunctionSelect, fn as FunctionSelectSchema, fl as FunctionToolApiInsertSchema, cb as FunctionToolApiSelect, fk as FunctionToolApiSelectSchema, fm as FunctionToolApiUpdateSchema, dC as FunctionToolConfig, dB as FunctionToolConfigSchema, fi as FunctionToolInsertSchema, go as FunctionToolListResponse, g8 as FunctionToolResponse, fh as FunctionToolSelectSchema, fj as FunctionToolUpdateSchema, c8 as FunctionUpdate, fp as FunctionUpdateSchema, br as GetTaskPushNotificationConfigRequest, bE as GetTaskPushNotificationConfigResponse, bD as GetTaskPushNotificationConfigSuccessResponse, bo as GetTaskRequest, by as GetTaskResponse, bx as GetTaskSuccessResponse, aL as HTTPAuthSecurityScheme, gz as HeadersScopeSchema, aP as ImplicitOAuthFlow, b2 as InternalError, d4 as InternalSubAgentDefinition, 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, d0 as LedgerArtifactApiInsert, fI as LedgerArtifactApiInsertSchema, c$ as LedgerArtifactApiSelect, fH as LedgerArtifactApiSelectSchema, d1 as LedgerArtifactApiUpdate, fJ as LedgerArtifactApiUpdateSchema, cZ as LedgerArtifactInsert, fF as LedgerArtifactInsertSchema, fE as LedgerArtifactSelectSchema, c_ as LedgerArtifactUpdate, fG as LedgerArtifactUpdateSchema, fP as ListResponseSchema, dw as MAX_ID_LENGTH, du as MCPServerType, fc as MCPToolConfigSchema, dv as MIN_ID_LENGTH, dm as McpAuthType, dn as McpServerAuth, dq as McpServerCapabilities, dr as McpToolDefinition, ea as McpToolDefinitionSchema, fb as McpToolSchema, dp as McpTransportConfig, e8 as McpTransportConfigSchema, aV as Message, ch as MessageApiInsert, en as MessageApiInsertSchema, cg as MessageApiSelect, em as MessageApiSelectSchema, ci as MessageApiUpdate, eo as MessageApiUpdateSchema, ek as MessageInsertSchema, gu as MessageListResponse, de as MessageMode, bH as MessagePart, ge as MessageResponse, dd as MessageRole, cf as MessageSelect, ej as MessageSelectSchema, bf as MessageSendConfiguration, bg as MessageSendParams, dc as MessageType, el as MessageUpdateSchema, b0 as MethodNotFoundError, dz as ModelSchema, g as ModelSettings, M as ModelSettingsSchema, df as Models, aR as OAuth2SecurityScheme, aM as OAuthFlows, aS as OpenIdConnectSecurityScheme, da as Pagination, gI as PaginationQueryParamsSchema, fO as PaginationSchema, P as Part, ay as PartBase, aQ as PasswordOAuthFlow, d8 as ProjectApiInsert, fY as ProjectApiInsertSchema, d7 as ProjectApiSelect, fX as ProjectApiSelectSchema, d9 as ProjectApiUpdate, fZ as ProjectApiUpdateSchema, fV as ProjectInsertSchema, gf as ProjectListResponse, dA as ProjectModelSchema, dg as ProjectModels, f$ as ProjectResponse, fU as ProjectSelectSchema, fW as ProjectUpdateSchema, ba as PushNotificationAuthenticationInfo, bb as PushNotificationConfig, b5 as PushNotificationNotSupportedError, fT as RemovedResponseSchema, 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, fQ as SingleResponseSchema, di as StatusComponent, fK as StatusComponentSchema, fL as StatusUpdateSchema, dh as StatusUpdateSettings, d as StopWhen, S as StopWhenSchema, bK as SubAgentApiInsert, dH as SubAgentApiInsertSchema, bJ as SubAgentApiSelect, dG as SubAgentApiSelectSchema, bL as SubAgentApiUpdate, dI as SubAgentApiUpdateSchema, cI as SubAgentArtifactComponentApiInsert, eS as SubAgentArtifactComponentApiInsertSchema, cH as SubAgentArtifactComponentApiSelect, eR as SubAgentArtifactComponentApiSelectSchema, cJ as SubAgentArtifactComponentApiUpdate, eT as SubAgentArtifactComponentApiUpdateSchema, cF as SubAgentArtifactComponentInsert, eP as SubAgentArtifactComponentInsertSchema, gy as SubAgentArtifactComponentListResponse, gw as SubAgentArtifactComponentResponse, cE as SubAgentArtifactComponentSelect, eO as SubAgentArtifactComponentSelectSchema, cG as SubAgentArtifactComponentUpdate, eQ as SubAgentArtifactComponentUpdateSchema, cz as SubAgentDataComponentApiInsert, eG as SubAgentDataComponentApiInsertSchema, cy as SubAgentDataComponentApiSelect, eF as SubAgentDataComponentApiSelectSchema, cA as SubAgentDataComponentApiUpdate, eH as SubAgentDataComponentApiUpdateSchema, cw as SubAgentDataComponentInsert, eD as SubAgentDataComponentInsertSchema, gx as SubAgentDataComponentListResponse, gv as SubAgentDataComponentResponse, cv as SubAgentDataComponentSelect, eC as SubAgentDataComponentSelectSchema, cx as SubAgentDataComponentUpdate, eE as SubAgentDataComponentUpdateSchema, d5 as SubAgentDefinition, dE as SubAgentInsertSchema, gg as SubAgentListResponse, bO as SubAgentRelationApiInsert, dN as SubAgentRelationApiInsertSchema, bN as SubAgentRelationApiSelect, dM as SubAgentRelationApiSelectSchema, bP as SubAgentRelationApiUpdate, dO as SubAgentRelationApiUpdateSchema, dK as SubAgentRelationInsertSchema, gr as SubAgentRelationListResponse, bQ as SubAgentRelationQuery, dP as SubAgentRelationQuerySchema, gb as SubAgentRelationResponse, bM as SubAgentRelationSelect, dJ as SubAgentRelationSelectSchema, dL as SubAgentRelationUpdateSchema, g0 as SubAgentResponse, dD as SubAgentSelectSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema, cX as SubAgentToolRelationApiInsert, fC as SubAgentToolRelationApiInsertSchema, cW as SubAgentToolRelationApiSelect, fB as SubAgentToolRelationApiSelectSchema, cY as SubAgentToolRelationApiUpdate, fD as SubAgentToolRelationApiUpdateSchema, cV as SubAgentToolRelationInsert, fz as SubAgentToolRelationInsertSchema, gs as SubAgentToolRelationListResponse, gc as SubAgentToolRelationResponse, cU as SubAgentToolRelationSelect, fy as SubAgentToolRelationSelectSchema, fA as SubAgentToolRelationUpdateSchema, dF as SubAgentUpdateSchema, db as SummaryEvent, ds as TOOL_STATUS_VALUES, aX as Task, bX as TaskApiInsert, e0 as TaskApiInsertSchema, bW as TaskApiSelect, d$ as TaskApiSelectSchema, bY as TaskApiUpdate, e1 as TaskApiUpdateSchema, bI as TaskArtifact, aZ as TaskArtifactUpdateEvent, bd as TaskIdParams, dZ as TaskInsertSchema, b4 as TaskNotCancelableError, b3 as TaskNotFoundError, bc as TaskPushNotificationConfig, be as TaskQueryParams, c1 as TaskRelationApiInsert, e6 as TaskRelationApiInsertSchema, c0 as TaskRelationApiSelect, e5 as TaskRelationApiSelectSchema, c2 as TaskRelationApiUpdate, e7 as TaskRelationApiUpdateSchema, b_ as TaskRelationInsert, e3 as TaskRelationInsertSchema, bZ as TaskRelationSelect, e2 as TaskRelationSelectSchema, b$ as TaskRelationUpdate, e4 as TaskRelationUpdateSchema, bs as TaskResubscriptionRequest, dY as TaskSelectSchema, aF as TaskState, aW as TaskStatus, aY as TaskStatusUpdateEvent, bV as TaskUpdate, d_ as TaskUpdateSchema, gB as TenantIdParamsSchema, gA as TenantParamsSchema, gF as TenantProjectAgentIdParamsSchema, gE as TenantProjectAgentParamsSchema, gH as TenantProjectAgentSubAgentIdParamsSchema, gG as TenantProjectAgentSubAgentParamsSchema, gD as TenantProjectIdParamsSchema, gC as TenantProjectParamsSchema, az as TextPart, c4 as ToolApiInsert, ff as ToolApiInsertSchema, c3 as ToolApiSelect, fe as ToolApiSelectSchema, c5 as ToolApiUpdate, fg as ToolApiUpdateSchema, d6 as ToolDefinition, ec as ToolInsertSchema, gi as ToolListResponse, g2 as ToolResponse, eb as ToolSelectSchema, e9 as ToolStatusSchema, fd as ToolUpdateSchema, dx as URL_SAFE_ID_PATTERN, b6 as UnsupportedOperationError, dt as VALID_RELATION_TYPES, dy as resourceIdSchema } from './utility-mGrlR4Ta.js';
|
|
6
7
|
import { CredentialStore } from './types/index.js';
|
|
7
8
|
export { CorsConfig, ServerConfig, ServerOptions } from './types/index.js';
|
|
8
9
|
import { LibSQLDatabase } from 'drizzle-orm/libsql';
|
|
9
|
-
import { s as schema } from './schema-
|
|
10
|
-
export { E as agentRelations, H as agentToolRelationsRelations, a as agents, 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, q as subAgentFunctionToolRelations, U as subAgentFunctionToolRelationsRelations, 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-
|
|
11
|
-
import { LoggerOptions, TransportSingleOptions, Logger } from 'pino';
|
|
10
|
+
import { s as schema } from './schema-PgBNwsV-.js';
|
|
11
|
+
export { E as agentRelations, H as agentToolRelationsRelations, a as agents, 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, q as subAgentFunctionToolRelations, U as subAgentFunctionToolRelationsRelations, 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-PgBNwsV-.js';
|
|
12
12
|
import { SSEClientTransportOptions } from '@modelcontextprotocol/sdk/client/sse.js';
|
|
13
13
|
import { StreamableHTTPClientTransportOptions } from '@modelcontextprotocol/sdk/client/streamableHttp.js';
|
|
14
14
|
import { ClientCapabilities } from '@modelcontextprotocol/sdk/types.js';
|
|
@@ -21,6 +21,7 @@ export { convertZodToJsonSchema, convertZodToJsonSchemaWithPreview, extractPrevi
|
|
|
21
21
|
import { Span, Tracer } from '@opentelemetry/api';
|
|
22
22
|
export { A2AMessageMetadata, A2AMessageMetadataSchema, DataOperationDetails, DataOperationDetailsSchema, DataOperationEvent, DataOperationEventSchema, DelegationReturnedData, DelegationReturnedDataSchema, DelegationSentData, DelegationSentDataSchema, PreviewValidationResult, TransferData, TransferDataSchema, generateIdFromName, isExternalAgent, isInternalAgent, isValidResourceId, validateAgentRelationships, validateAgentStructure, validateAndTypeAgentData, validateArtifactComponentReferences, validateDataComponentReferences, validatePreview, validateToolReferences } from './validation/index.js';
|
|
23
23
|
export { P as PropsValidationResult, v as validatePropsAsJsonSchema } from './props-validation-BMR1qNiy.js';
|
|
24
|
+
import 'pino';
|
|
24
25
|
import 'drizzle-zod';
|
|
25
26
|
import 'drizzle-orm';
|
|
26
27
|
|
|
@@ -638,87 +639,6 @@ declare class NangoCredentialStore implements CredentialStore {
|
|
|
638
639
|
*/
|
|
639
640
|
declare function createNangoCredentialStore(id: string, config?: Partial<NangoConfig>): NangoCredentialStore;
|
|
640
641
|
|
|
641
|
-
/**
|
|
642
|
-
* Configuration options for PinoLogger
|
|
643
|
-
*/
|
|
644
|
-
interface PinoLoggerConfig {
|
|
645
|
-
/** Pino logger options */
|
|
646
|
-
options?: LoggerOptions;
|
|
647
|
-
/** Pino transport configuration */
|
|
648
|
-
transportConfigs?: TransportSingleOptions[];
|
|
649
|
-
}
|
|
650
|
-
/**
|
|
651
|
-
* Pino logger implementation with transport customization support
|
|
652
|
-
*/
|
|
653
|
-
declare class PinoLogger {
|
|
654
|
-
private name;
|
|
655
|
-
private transportConfigs;
|
|
656
|
-
private pinoInstance;
|
|
657
|
-
private options;
|
|
658
|
-
constructor(name: string, config?: PinoLoggerConfig);
|
|
659
|
-
/**
|
|
660
|
-
* Recreate the pino instance with current transports
|
|
661
|
-
*/
|
|
662
|
-
private recreateInstance;
|
|
663
|
-
/**
|
|
664
|
-
* Add a new transport to the logger
|
|
665
|
-
*/
|
|
666
|
-
addTransport(transportConfig: TransportSingleOptions): void;
|
|
667
|
-
/**
|
|
668
|
-
* Remove a transport by index
|
|
669
|
-
*/
|
|
670
|
-
removeTransport(index: number): void;
|
|
671
|
-
/**
|
|
672
|
-
* Get current transports
|
|
673
|
-
*/
|
|
674
|
-
getTransports(): TransportSingleOptions[];
|
|
675
|
-
/**
|
|
676
|
-
* Update logger options
|
|
677
|
-
*/
|
|
678
|
-
updateOptions(options: Partial<LoggerOptions>): void;
|
|
679
|
-
/**
|
|
680
|
-
* Get the underlying pino instance for advanced usage
|
|
681
|
-
*/
|
|
682
|
-
getPinoInstance(): Logger;
|
|
683
|
-
error(data: any, message: string): void;
|
|
684
|
-
warn(data: any, message: string): void;
|
|
685
|
-
info(data: any, message: string): void;
|
|
686
|
-
debug(data: any, message: string): void;
|
|
687
|
-
}
|
|
688
|
-
/**
|
|
689
|
-
* Logger factory configuration
|
|
690
|
-
*/
|
|
691
|
-
interface LoggerFactoryConfig {
|
|
692
|
-
defaultLogger?: PinoLogger;
|
|
693
|
-
loggerFactory?: (name: string) => PinoLogger;
|
|
694
|
-
/** Configuration for creating PinoLogger instances when using createPinoLoggerFactory */
|
|
695
|
-
pinoConfig?: PinoLoggerConfig;
|
|
696
|
-
}
|
|
697
|
-
/**
|
|
698
|
-
* Global logger factory singleton
|
|
699
|
-
*/
|
|
700
|
-
declare class LoggerFactory {
|
|
701
|
-
private config;
|
|
702
|
-
private loggers;
|
|
703
|
-
/**
|
|
704
|
-
* Configure the logger factory
|
|
705
|
-
*/
|
|
706
|
-
configure(config: LoggerFactoryConfig): void;
|
|
707
|
-
/**
|
|
708
|
-
* Get or create a logger instance
|
|
709
|
-
*/
|
|
710
|
-
getLogger(name: string): PinoLogger;
|
|
711
|
-
/**
|
|
712
|
-
* Reset factory to default state
|
|
713
|
-
*/
|
|
714
|
-
reset(): void;
|
|
715
|
-
}
|
|
716
|
-
declare const loggerFactory: LoggerFactory;
|
|
717
|
-
/**
|
|
718
|
-
* Convenience function to get a logger
|
|
719
|
-
*/
|
|
720
|
-
declare function getLogger(name: string): PinoLogger;
|
|
721
|
-
|
|
722
642
|
interface SharedServerConfig {
|
|
723
643
|
timeout?: number;
|
|
724
644
|
activeTools?: string[];
|
|
@@ -788,6 +708,7 @@ interface CredentialData {
|
|
|
788
708
|
headers: Record<string, string>;
|
|
789
709
|
/** Additional metadata for the credentials */
|
|
790
710
|
metadata?: Record<string, any>;
|
|
711
|
+
expiresAt?: Date;
|
|
791
712
|
}
|
|
792
713
|
/**
|
|
793
714
|
* Credential store reference for lookups
|
|
@@ -3556,33 +3477,6 @@ declare function extractPublicId(key: string): string | null;
|
|
|
3556
3477
|
*/
|
|
3557
3478
|
declare function maskApiKey(keyPrefix: string): string;
|
|
3558
3479
|
|
|
3559
|
-
/**
|
|
3560
|
-
* Centralized authentication detection utilities for MCP tools
|
|
3561
|
-
*/
|
|
3562
|
-
|
|
3563
|
-
/**
|
|
3564
|
-
* OAuth configuration interface
|
|
3565
|
-
*/
|
|
3566
|
-
interface OAuthConfig {
|
|
3567
|
-
authorizationUrl: string;
|
|
3568
|
-
tokenUrl: string;
|
|
3569
|
-
registrationUrl?: string;
|
|
3570
|
-
supportsDynamicRegistration: boolean;
|
|
3571
|
-
}
|
|
3572
|
-
/**
|
|
3573
|
-
* Full OAuth endpoint discovery with complete configuration
|
|
3574
|
-
*/
|
|
3575
|
-
declare const discoverOAuthEndpoints: (serverUrl: string, logger?: PinoLogger) => Promise<OAuthConfig | null>;
|
|
3576
|
-
/**
|
|
3577
|
-
* Detect if OAuth 2.1/PKCE authentication is specifically required for a tool
|
|
3578
|
-
*/
|
|
3579
|
-
declare const detectAuthenticationRequired: ({ serverUrl, toolId, error, logger, }: {
|
|
3580
|
-
serverUrl: string;
|
|
3581
|
-
toolId: string;
|
|
3582
|
-
error: Error;
|
|
3583
|
-
logger?: PinoLogger;
|
|
3584
|
-
}) => Promise<boolean>;
|
|
3585
|
-
|
|
3586
3480
|
declare const generateId: (size?: number) => string;
|
|
3587
3481
|
/**
|
|
3588
3482
|
* Generates a standardized conversation ID.
|
|
@@ -4164,4 +4058,4 @@ declare function setSpanWithError(span: Span, error: Error, logger?: {
|
|
|
4164
4058
|
*/
|
|
4165
4059
|
declare function getTracer(serviceName: string, serviceVersion?: string): Tracer;
|
|
4166
4060
|
|
|
4167
|
-
export { AgentInsert, type AgentLogger, AgentScopeConfig, AgentSelect, 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, ExternalAgentSelect, ExternalAgentUpdate, ExternalSubAgentRelationInsert, type FetchResult, FullAgentDefinition, FullProjectDefinition, FunctionApiInsert, FunctionToolApiInsert, FunctionToolApiUpdate, HTTP_REQUEST_PARTS, type HttpRequestPart, InMemoryCredentialStore, KeyChainStore, LedgerArtifactSelect,
|
|
4061
|
+
export { AgentInsert, type AgentLogger, AgentScopeConfig, AgentSelect, 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, ExternalAgentSelect, ExternalAgentUpdate, ExternalSubAgentRelationInsert, type FetchResult, FullAgentDefinition, FullProjectDefinition, FunctionApiInsert, FunctionToolApiInsert, FunctionToolApiUpdate, HTTP_REQUEST_PARTS, type HttpRequestPart, InMemoryCredentialStore, KeyChainStore, LedgerArtifactSelect, MCPToolConfig, MCPTransportType, McpClient, type McpClientOptions, type McpSSEConfig, type McpServerConfig, type McpStreamableHttpConfig, McpTool, MessageContent, MessageInsert, MessageMetadata, MessageUpdate, MessageVisibility, NangoCredentialStore, PaginationConfig, PaginationResult, type ParsedHttpRequest, PinoLogger, type ProblemDetails, ProjectInfo, ProjectInsert, type ProjectLogger, ProjectResourceCounts, ProjectScopeConfig, ProjectSelect, ProjectUpdate, type ResolvedContext, SubAgentInsert, SubAgentRelationInsert, SubAgentRelationUpdate, SubAgentScopeConfig, SubAgentSelect, SubAgentToolRelationUpdate, SubAgentUpdate, TaskInsert, TaskMetadataConfig, TaskSelect, type TemplateContext, TemplateEngine, type TemplateRenderOptions, ToolInsert, ToolMcpConfig, ToolSelect, ToolServerCapabilities, ToolUpdate, addFunctionToolToSubAgent, addLedgerArtifacts, addToolToAgent, agentHasArtifactComponents, apiFetch, associateArtifactComponentWithAgent, associateDataComponentWithAgent, cleanupTenantCache, clearContextConfigCache, clearConversationCache, commonCreateErrorResponses, commonDeleteErrorResponses, commonGetErrorResponses, commonUpdateErrorResponses, contextConfig, contextValidationMiddleware, countApiKeys, countArtifactComponents, countArtifactComponentsForAgent, countContextConfigs, countCredentialReferences, countDataComponents, countExternalAgents, countLedgerArtifactsByTask, countMessagesByConversation, countProjects, createAgent, createAgentToolRelation, createApiError, createApiKey, createArtifactComponent, createContextConfig, createConversation, createCredentialReference, createDataComponent, createDatabaseClient, createDefaultCredentialStores, createExecutionContext, createExternalAgent, createExternalAgentRelation, createFullAgentServerSide, createFullProjectServerSide, createFunctionTool, createInMemoryDatabaseClient, createKeyChainStore, createMessage, createNangoCredentialStore, createOrGetConversation, createProject, createSubAgent, createSubAgentRelation, createTask, createTool, createValidatedDataAccess, dbResultToMcpTool, deleteAgent, deleteAgentArtifactComponentRelationByAgent, deleteAgentDataComponentRelationByAgent, deleteAgentRelationsByAgent, deleteAgentToolRelation, deleteAgentToolRelationByAgent, deleteApiKey, deleteArtifactComponent, deleteContextConfig, deleteConversation, deleteCredentialReference, deleteDataComponent, deleteExternalAgent, deleteFullAgent, deleteFullProject, deleteFunction, deleteFunctionTool, deleteLedgerArtifactsByContext, deleteLedgerArtifactsByTask, deleteMessage, deleteProject, deleteSubAgent, deleteSubAgentRelation, deleteTool, determineContextTrigger, errorResponseSchema, errorSchemaFactory, externalAgentExists, externalAgentUrlExists, extractPublicId, fetchComponentRelationships, fetchDefinition, generateAndCreateApiKey, generateApiKey, generateId, getActiveAgentForConversation, getAgentById, getAgentRelationById, getAgentRelationByParams, getAgentRelations, getAgentRelationsByAgent, getAgentRelationsBySource, getAgentSubAgentInfos, getAgentToolRelationByAgent, getAgentToolRelationById, getAgentToolRelationByTool, getAgentWithDefaultSubAgent, getAgentsForTool, getAgentsUsingArtifactComponent, getAgentsUsingDataComponent, getApiKeyById, getApiKeyByPublicId, getArtifactComponentById, getArtifactComponentsForAgent, getCacheEntry, getCachedValidator, getContextConfigById, getContextConfigCacheEntries, getConversation, getConversationCacheEntries, getConversationHistory, getConversationId, getCredentialReference, getCredentialReferenceById, getCredentialReferenceWithTools, getCredentialStoreLookupKeyFromRetrievalParams, getDataComponent, getDataComponentsForAgent, getExternalAgent, getExternalAgentByUrl, getExternalAgentRelations, getFullAgent, getFullAgentDefinition, getFullProject, getFunction, getFunctionToolById, getFunctionToolsForSubAgent, getLedgerArtifacts, getLedgerArtifactsByContext, getLogger, getMessageById, getMessagesByConversation, getMessagesByTask, getProject, getProjectResourceCounts, getRelatedAgentsForAgent, getRequestExecutionContext, getSubAgentById, getSubAgentRelationsByTarget, getSubAgentsByIds, getTask, getToolById, getToolsForAgent, getTracer, getVisibleMessages, handleApiError, handleContextConfigChange, handleContextResolution, hasApiKey, hasContextConfig, hasCredentialReference, hashApiKey, headers, invalidateHeadersCache, invalidateInvocationDefinitionsCache, isApiKeyExpired, isArtifactComponentAssociatedWithAgent, isDataComponentAssociatedWithAgent, isValidHttpRequest, listAgentRelations, listAgentToolRelations, listAgents, listAgentsPaginated, listApiKeys, listApiKeysPaginated, listArtifactComponents, listArtifactComponentsPaginated, listContextConfigs, listContextConfigsPaginated, listConversations, listCredentialReferences, listCredentialReferencesPaginated, listDataComponents, listDataComponentsPaginated, listExternalAgents, listExternalAgentsPaginated, listFunctionTools, listFunctions, listMessages, listProjects, listProjectsPaginated, listSubAgents, listSubAgentsPaginated, listTaskIdsByContextId, listTools, loadEnvironmentFiles, maskApiKey, problemDetailsSchema, projectExists, projectExistsInTable, projectHasResources, removeArtifactComponentFromAgent, removeDataComponentFromAgent, removeToolFromAgent, setActiveAgentForConversation, setActiveAgentForThread, setCacheEntry, setSpanWithError, updateAgent, updateAgentRelation, updateAgentToolRelation, updateApiKey, updateApiKeyLastUsed, updateArtifactComponent, updateContextConfig, updateConversation, updateConversationActiveAgent, updateCredentialReference, updateDataComponent, updateExternalAgent, updateFullAgentServerSide, updateFullProjectServerSide, updateFunctionTool, updateMessage, updateProject, updateSubAgent, updateSubAgentFunctionToolRelation, updateTask, updateTool, upsertAgent, upsertAgentArtifactComponentRelation, upsertAgentDataComponentRelation, upsertArtifactComponent, upsertContextConfig, upsertCredentialReference, upsertDataComponent, upsertExternalAgent, upsertFunction, upsertFunctionTool, upsertLedgerArtifact, upsertSubAgent, upsertSubAgentFunctionToolRelation, upsertSubAgentRelation, upsertSubAgentToolRelation, upsertTool, validateAgainstJsonSchema, validateAndGetApiKey, validateApiKey, validateExternalAgent, validateHeaders, validateHttpRequestHeaders, validateInternalSubAgent, validateProjectExists, validationHelper, withProjectValidation };
|
package/dist/index.js
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
import { detectAuthenticationRequired } from './chunk-5GAUAB2P.js';
|
|
2
|
+
export { ACTIVITY_NAMES, ACTIVITY_STATUS, ACTIVITY_TYPES, AGENT_IDS, AGGREGATE_OPERATORS, AI_OPERATIONS, AI_TOOL_TYPES, DATA_SOURCES, DATA_TYPES, DELEGATION_FROM_SUB_AGENT_ID, DELEGATION_ID, DELEGATION_TO_SUB_AGENT_ID, FIELD_TYPES, OPERATORS, ORDER_DIRECTIONS, PANEL_TYPES, QUERY_DEFAULTS, QUERY_EXPRESSIONS, QUERY_FIELD_CONFIGS, QUERY_TYPES, REDUCE_OPERATIONS, SPAN_KEYS, SPAN_NAMES, TRANSFER_FROM_SUB_AGENT_ID, TRANSFER_TO_SUB_AGENT_ID, UNKNOWN_VALUE, detectAuthenticationRequired, exchangeMcpAuthorizationCode, initiateMcpOAuthFlow } from './chunk-5GAUAB2P.js';
|
|
3
|
+
export { ANTHROPIC_MODELS, GOOGLE_MODELS, OPENAI_MODELS } from './chunk-MQTANAMG.js';
|
|
2
4
|
export { TaskState } from './chunk-H2F72PDA.js';
|
|
3
5
|
import { getLogger, convertZodToJsonSchema } from './chunk-YECQCT5N.js';
|
|
4
6
|
export { PinoLogger, convertZodToJsonSchema, convertZodToJsonSchemaWithPreview, extractPreviewFields, getLogger, isZodSchema, loggerFactory, preview } from './chunk-YECQCT5N.js';
|
|
5
|
-
import { validatePreview, validateAndTypeAgentData, validateAgentStructure, isInternalAgent, isExternalAgent } from './chunk-
|
|
6
|
-
export { A2AMessageMetadataSchema, DataOperationDetailsSchema, DataOperationEventSchema, DelegationReturnedDataSchema, DelegationSentDataSchema, TransferDataSchema, generateIdFromName, isExternalAgent, isInternalAgent, isValidResourceId, validateAgentRelationships, validateAgentStructure, validateAndTypeAgentData, validateArtifactComponentReferences, validateDataComponentReferences, validatePreview, validateToolReferences } from './chunk-
|
|
7
|
-
import { ContextConfigApiUpdateSchema, validatePropsAsJsonSchema } from './chunk-
|
|
8
|
-
export { AgentApiInsertSchema, AgentApiSelectSchema, AgentApiUpdateSchema, AgentInsertSchema, AgentListResponse, AgentResponse, AgentSelectSchema, AgentStopWhenSchema, AgentUpdateSchema, AgentWithinContextOfProjectSchema, AllAgentSchema, ApiKeyApiCreationResponseSchema, ApiKeyApiInsertSchema, ApiKeyApiSelectSchema, ApiKeyApiUpdateSchema, ApiKeyInsertSchema, ApiKeyListResponse, ApiKeyResponse, ApiKeySelectSchema, ApiKeyUpdateSchema, ArtifactComponentApiInsertSchema, ArtifactComponentApiSelectSchema, ArtifactComponentApiUpdateSchema, ArtifactComponentInsertSchema, ArtifactComponentListResponse, ArtifactComponentResponse, ArtifactComponentSelectSchema, ArtifactComponentUpdateSchema, CanUseItemSchema, ContextCacheApiInsertSchema, ContextCacheApiSelectSchema, ContextCacheApiUpdateSchema, ContextCacheInsertSchema, ContextCacheSelectSchema, ContextCacheUpdateSchema, ContextConfigApiInsertSchema, ContextConfigApiSelectSchema, ContextConfigApiUpdateSchema, ContextConfigInsertSchema, ContextConfigListResponse, ContextConfigResponse, ContextConfigSelectSchema, ContextConfigUpdateSchema, ConversationApiInsertSchema, ConversationApiSelectSchema, ConversationApiUpdateSchema, ConversationInsertSchema, ConversationListResponse, ConversationResponse, ConversationSelectSchema, ConversationUpdateSchema, CredentialReferenceApiInsertSchema, CredentialReferenceApiSelectSchema, CredentialReferenceApiUpdateSchema, CredentialReferenceInsertSchema, CredentialReferenceListResponse, CredentialReferenceResponse, CredentialReferenceSelectSchema, CredentialReferenceUpdateSchema, DataComponentApiInsertSchema, DataComponentApiSelectSchema, DataComponentApiUpdateSchema, DataComponentBaseSchema, DataComponentInsertSchema, DataComponentListResponse, DataComponentResponse, DataComponentSelectSchema, DataComponentUpdateSchema, ErrorResponseSchema, ExistsResponseSchema, ExternalAgentApiInsertSchema, ExternalAgentApiSelectSchema, ExternalAgentApiUpdateSchema, ExternalAgentInsertSchema, ExternalAgentListResponse, ExternalAgentResponse, ExternalAgentSelectSchema, ExternalAgentUpdateSchema, ExternalSubAgentRelationApiInsertSchema, ExternalSubAgentRelationInsertSchema, FetchConfigSchema, FetchDefinitionSchema, FullAgentAgentInsertSchema, FullProjectDefinitionSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, FunctionInsertSchema, FunctionListResponse, FunctionResponse, FunctionSelectSchema, FunctionToolApiInsertSchema, FunctionToolApiSelectSchema, FunctionToolApiUpdateSchema, FunctionToolConfigSchema, FunctionToolInsertSchema, FunctionToolListResponse, FunctionToolResponse, FunctionToolSelectSchema, FunctionToolUpdateSchema, FunctionUpdateSchema, HeadersScopeSchema, LedgerArtifactApiInsertSchema, LedgerArtifactApiSelectSchema, LedgerArtifactApiUpdateSchema, LedgerArtifactInsertSchema, LedgerArtifactSelectSchema, LedgerArtifactUpdateSchema, ListResponseSchema, MAX_ID_LENGTH, MCPToolConfigSchema, MIN_ID_LENGTH, McpToolDefinitionSchema, McpToolSchema, McpTransportConfigSchema, MessageApiInsertSchema, MessageApiSelectSchema, MessageApiUpdateSchema, MessageInsertSchema, MessageListResponse, MessageResponse, MessageSelectSchema, MessageUpdateSchema, ModelSchema, ModelSettingsSchema, PaginationQueryParamsSchema, PaginationSchema, ProjectApiInsertSchema, ProjectApiSelectSchema, ProjectApiUpdateSchema, ProjectInsertSchema, ProjectListResponse, ProjectModelSchema, ProjectResponse, ProjectSelectSchema, ProjectUpdateSchema, RemovedResponseSchema, SingleResponseSchema, StatusComponentSchema, StatusUpdateSchema, StopWhenSchema, SubAgentApiInsertSchema, SubAgentApiSelectSchema, SubAgentApiUpdateSchema, SubAgentArtifactComponentApiInsertSchema, SubAgentArtifactComponentApiSelectSchema, SubAgentArtifactComponentApiUpdateSchema, SubAgentArtifactComponentInsertSchema, SubAgentArtifactComponentListResponse, SubAgentArtifactComponentResponse, SubAgentArtifactComponentSelectSchema, SubAgentArtifactComponentUpdateSchema, SubAgentDataComponentApiInsertSchema, SubAgentDataComponentApiSelectSchema, SubAgentDataComponentApiUpdateSchema, SubAgentDataComponentInsertSchema, SubAgentDataComponentListResponse, SubAgentDataComponentResponse, SubAgentDataComponentSelectSchema, SubAgentDataComponentUpdateSchema, SubAgentInsertSchema, SubAgentListResponse, SubAgentRelationApiInsertSchema, SubAgentRelationApiSelectSchema, SubAgentRelationApiUpdateSchema, SubAgentRelationInsertSchema, SubAgentRelationListResponse, SubAgentRelationQuerySchema, SubAgentRelationResponse, SubAgentRelationSelectSchema, SubAgentRelationUpdateSchema, SubAgentResponse, SubAgentSelectSchema, SubAgentStopWhenSchema, SubAgentToolRelationApiInsertSchema, SubAgentToolRelationApiSelectSchema, SubAgentToolRelationApiUpdateSchema, SubAgentToolRelationInsertSchema, SubAgentToolRelationListResponse, SubAgentToolRelationResponse, SubAgentToolRelationSelectSchema, SubAgentToolRelationUpdateSchema, SubAgentUpdateSchema, TaskApiInsertSchema, TaskApiSelectSchema, TaskApiUpdateSchema, TaskInsertSchema, TaskRelationApiInsertSchema, TaskRelationApiSelectSchema, TaskRelationApiUpdateSchema, TaskRelationInsertSchema, TaskRelationSelectSchema, TaskRelationUpdateSchema, TaskSelectSchema, TaskUpdateSchema, TenantIdParamsSchema, TenantParamsSchema, TenantProjectAgentIdParamsSchema, TenantProjectAgentParamsSchema, TenantProjectAgentSubAgentIdParamsSchema, TenantProjectAgentSubAgentParamsSchema, TenantProjectIdParamsSchema, TenantProjectParamsSchema, ToolApiInsertSchema, ToolApiSelectSchema, ToolApiUpdateSchema, ToolInsertSchema, ToolListResponse, ToolResponse, ToolSelectSchema, ToolStatusSchema, ToolUpdateSchema, URL_SAFE_ID_PATTERN, resourceIdSchema, validatePropsAsJsonSchema } from './chunk-
|
|
7
|
+
import { validatePreview, validateAndTypeAgentData, validateAgentStructure, isInternalAgent, isExternalAgent } from './chunk-AN3YZP42.js';
|
|
8
|
+
export { A2AMessageMetadataSchema, DataOperationDetailsSchema, DataOperationEventSchema, DelegationReturnedDataSchema, DelegationSentDataSchema, TransferDataSchema, generateIdFromName, isExternalAgent, isInternalAgent, isValidResourceId, validateAgentRelationships, validateAgentStructure, validateAndTypeAgentData, validateArtifactComponentReferences, validateDataComponentReferences, validatePreview, validateToolReferences } from './chunk-AN3YZP42.js';
|
|
9
|
+
import { ContextConfigApiUpdateSchema, validatePropsAsJsonSchema } from './chunk-HN77JIDP.js';
|
|
10
|
+
export { AgentApiInsertSchema, AgentApiSelectSchema, AgentApiUpdateSchema, AgentInsertSchema, AgentListResponse, AgentResponse, AgentSelectSchema, AgentStopWhenSchema, AgentUpdateSchema, AgentWithinContextOfProjectSchema, AllAgentSchema, ApiKeyApiCreationResponseSchema, ApiKeyApiInsertSchema, ApiKeyApiSelectSchema, ApiKeyApiUpdateSchema, ApiKeyInsertSchema, ApiKeyListResponse, ApiKeyResponse, ApiKeySelectSchema, ApiKeyUpdateSchema, ArtifactComponentApiInsertSchema, ArtifactComponentApiSelectSchema, ArtifactComponentApiUpdateSchema, ArtifactComponentInsertSchema, ArtifactComponentListResponse, ArtifactComponentResponse, ArtifactComponentSelectSchema, ArtifactComponentUpdateSchema, CanUseItemSchema, ContextCacheApiInsertSchema, ContextCacheApiSelectSchema, ContextCacheApiUpdateSchema, ContextCacheInsertSchema, ContextCacheSelectSchema, ContextCacheUpdateSchema, ContextConfigApiInsertSchema, ContextConfigApiSelectSchema, ContextConfigApiUpdateSchema, ContextConfigInsertSchema, ContextConfigListResponse, ContextConfigResponse, ContextConfigSelectSchema, ContextConfigUpdateSchema, ConversationApiInsertSchema, ConversationApiSelectSchema, ConversationApiUpdateSchema, ConversationInsertSchema, ConversationListResponse, ConversationResponse, ConversationSelectSchema, ConversationUpdateSchema, CredentialReferenceApiInsertSchema, CredentialReferenceApiSelectSchema, CredentialReferenceApiUpdateSchema, CredentialReferenceInsertSchema, CredentialReferenceListResponse, CredentialReferenceResponse, CredentialReferenceSelectSchema, CredentialReferenceUpdateSchema, DataComponentApiInsertSchema, DataComponentApiSelectSchema, DataComponentApiUpdateSchema, DataComponentBaseSchema, DataComponentInsertSchema, DataComponentListResponse, DataComponentResponse, DataComponentSelectSchema, DataComponentUpdateSchema, ErrorResponseSchema, ExistsResponseSchema, ExternalAgentApiInsertSchema, ExternalAgentApiSelectSchema, ExternalAgentApiUpdateSchema, ExternalAgentInsertSchema, ExternalAgentListResponse, ExternalAgentResponse, ExternalAgentSelectSchema, ExternalAgentUpdateSchema, ExternalSubAgentRelationApiInsertSchema, ExternalSubAgentRelationInsertSchema, FetchConfigSchema, FetchDefinitionSchema, FullAgentAgentInsertSchema, FullProjectDefinitionSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, FunctionInsertSchema, FunctionListResponse, FunctionResponse, FunctionSelectSchema, FunctionToolApiInsertSchema, FunctionToolApiSelectSchema, FunctionToolApiUpdateSchema, FunctionToolConfigSchema, FunctionToolInsertSchema, FunctionToolListResponse, FunctionToolResponse, FunctionToolSelectSchema, FunctionToolUpdateSchema, FunctionUpdateSchema, HeadersScopeSchema, LedgerArtifactApiInsertSchema, LedgerArtifactApiSelectSchema, LedgerArtifactApiUpdateSchema, LedgerArtifactInsertSchema, LedgerArtifactSelectSchema, LedgerArtifactUpdateSchema, ListResponseSchema, MAX_ID_LENGTH, MCPToolConfigSchema, MIN_ID_LENGTH, McpToolDefinitionSchema, McpToolSchema, McpTransportConfigSchema, MessageApiInsertSchema, MessageApiSelectSchema, MessageApiUpdateSchema, MessageInsertSchema, MessageListResponse, MessageResponse, MessageSelectSchema, MessageUpdateSchema, ModelSchema, ModelSettingsSchema, PaginationQueryParamsSchema, PaginationSchema, ProjectApiInsertSchema, ProjectApiSelectSchema, ProjectApiUpdateSchema, ProjectInsertSchema, ProjectListResponse, ProjectModelSchema, ProjectResponse, ProjectSelectSchema, ProjectUpdateSchema, RemovedResponseSchema, SingleResponseSchema, StatusComponentSchema, StatusUpdateSchema, StopWhenSchema, SubAgentApiInsertSchema, SubAgentApiSelectSchema, SubAgentApiUpdateSchema, SubAgentArtifactComponentApiInsertSchema, SubAgentArtifactComponentApiSelectSchema, SubAgentArtifactComponentApiUpdateSchema, SubAgentArtifactComponentInsertSchema, SubAgentArtifactComponentListResponse, SubAgentArtifactComponentResponse, SubAgentArtifactComponentSelectSchema, SubAgentArtifactComponentUpdateSchema, SubAgentDataComponentApiInsertSchema, SubAgentDataComponentApiSelectSchema, SubAgentDataComponentApiUpdateSchema, SubAgentDataComponentInsertSchema, SubAgentDataComponentListResponse, SubAgentDataComponentResponse, SubAgentDataComponentSelectSchema, SubAgentDataComponentUpdateSchema, SubAgentInsertSchema, SubAgentListResponse, SubAgentRelationApiInsertSchema, SubAgentRelationApiSelectSchema, SubAgentRelationApiUpdateSchema, SubAgentRelationInsertSchema, SubAgentRelationListResponse, SubAgentRelationQuerySchema, SubAgentRelationResponse, SubAgentRelationSelectSchema, SubAgentRelationUpdateSchema, SubAgentResponse, SubAgentSelectSchema, SubAgentStopWhenSchema, SubAgentToolRelationApiInsertSchema, SubAgentToolRelationApiSelectSchema, SubAgentToolRelationApiUpdateSchema, SubAgentToolRelationInsertSchema, SubAgentToolRelationListResponse, SubAgentToolRelationResponse, SubAgentToolRelationSelectSchema, SubAgentToolRelationUpdateSchema, SubAgentUpdateSchema, TaskApiInsertSchema, TaskApiSelectSchema, TaskApiUpdateSchema, TaskInsertSchema, TaskRelationApiInsertSchema, TaskRelationApiSelectSchema, TaskRelationApiUpdateSchema, TaskRelationInsertSchema, TaskRelationSelectSchema, TaskRelationUpdateSchema, TaskSelectSchema, TaskUpdateSchema, TenantIdParamsSchema, TenantParamsSchema, TenantProjectAgentIdParamsSchema, TenantProjectAgentParamsSchema, TenantProjectAgentSubAgentIdParamsSchema, TenantProjectAgentSubAgentParamsSchema, TenantProjectIdParamsSchema, TenantProjectParamsSchema, ToolApiInsertSchema, ToolApiSelectSchema, ToolApiUpdateSchema, ToolInsertSchema, ToolListResponse, ToolResponse, ToolSelectSchema, ToolStatusSchema, ToolUpdateSchema, URL_SAFE_ID_PATTERN, resourceIdSchema, validatePropsAsJsonSchema } from './chunk-HN77JIDP.js';
|
|
9
11
|
import { schema_exports, contextConfigs, externalAgents, functions, functionTools, subAgentFunctionToolRelations, subAgentRelations, subAgents, subAgentToolRelations, tools, credentialReferences, agents, subAgentDataComponents, subAgentArtifactComponents, dataComponents, artifactComponents, projects, apiKeys, contextCache, conversations, messages, ledgerArtifacts, tasks, taskRelations } from './chunk-5B6IOJZY.js';
|
|
10
12
|
export { agentRelations, agentToolRelationsRelations, agents, apiKeys, apiKeysRelations, artifactComponents, artifactComponentsRelations, contextCache, contextCacheRelations, contextConfigs, contextConfigsRelations, conversations, conversationsRelations, credentialReferences, credentialReferencesRelations, dataComponents, dataComponentsRelations, externalAgents, externalAgentsRelations, functionTools, functionToolsRelations, functions, functionsRelations, ledgerArtifacts, ledgerArtifactsRelations, messages, messagesRelations, projects, projectsRelations, subAgentArtifactComponents, subAgentArtifactComponentsRelations, subAgentDataComponents, subAgentDataComponentsRelations, subAgentFunctionToolRelations, subAgentFunctionToolRelationsRelations, subAgentRelations, subAgentRelationsRelations, subAgentToolRelations, subAgents, subAgentsRelations, taskRelations, taskRelationsRelations, tasks, tasksRelations, tools, toolsRelations } from './chunk-5B6IOJZY.js';
|
|
11
13
|
import { CredentialStoreType, MCPServerType, MCPTransportType } from './chunk-YFHT5M2R.js';
|
|
12
14
|
export { CredentialStoreType, MCPServerType, MCPTransportType, TOOL_STATUS_VALUES, VALID_RELATION_TYPES } from './chunk-YFHT5M2R.js';
|
|
13
|
-
export { ANTHROPIC_MODELS, GOOGLE_MODELS, OPENAI_MODELS } from './chunk-MQTANAMG.js';
|
|
14
15
|
import { __commonJS, __require, __publicField } from './chunk-E6R6PML7.js';
|
|
15
16
|
import { z as z$1 } from 'zod';
|
|
16
17
|
import { customAlphabet, nanoid } from 'nanoid';
|
|
@@ -214958,128 +214959,6 @@ function extractPublicId(key) {
|
|
|
214958
214959
|
function maskApiKey(keyPrefix) {
|
|
214959
214960
|
return `${keyPrefix}...`;
|
|
214960
214961
|
}
|
|
214961
|
-
|
|
214962
|
-
// src/utils/auth-detection.ts
|
|
214963
|
-
var getWellKnownUrls = (baseUrl) => [
|
|
214964
|
-
`${baseUrl}/.well-known/oauth-authorization-server`,
|
|
214965
|
-
`${baseUrl}/.well-known/openid-configuration`
|
|
214966
|
-
];
|
|
214967
|
-
var validateOAuthMetadata = (metadata) => {
|
|
214968
|
-
return metadata.code_challenge_methods_supported?.includes("S256");
|
|
214969
|
-
};
|
|
214970
|
-
var buildOAuthConfig = (metadata) => ({
|
|
214971
|
-
authorizationUrl: metadata.authorization_endpoint,
|
|
214972
|
-
tokenUrl: metadata.token_endpoint,
|
|
214973
|
-
registrationUrl: metadata.registration_endpoint,
|
|
214974
|
-
supportsDynamicRegistration: !!metadata.registration_endpoint
|
|
214975
|
-
});
|
|
214976
|
-
var tryWellKnownEndpoints = async (baseUrl, logger13) => {
|
|
214977
|
-
const wellKnownUrls = getWellKnownUrls(baseUrl);
|
|
214978
|
-
for (const wellKnownUrl of wellKnownUrls) {
|
|
214979
|
-
try {
|
|
214980
|
-
const response = await fetch(wellKnownUrl);
|
|
214981
|
-
if (response.ok) {
|
|
214982
|
-
const metadata = await response.json();
|
|
214983
|
-
if (validateOAuthMetadata(metadata)) {
|
|
214984
|
-
logger13?.debug({ baseUrl, wellKnownUrl }, "OAuth 2.1/PKCE support detected");
|
|
214985
|
-
return buildOAuthConfig(metadata);
|
|
214986
|
-
}
|
|
214987
|
-
}
|
|
214988
|
-
} catch (error) {
|
|
214989
|
-
logger13?.debug({ wellKnownUrl, error }, "OAuth endpoint check failed");
|
|
214990
|
-
}
|
|
214991
|
-
}
|
|
214992
|
-
return null;
|
|
214993
|
-
};
|
|
214994
|
-
var checkForOAuthEndpoints = async (serverUrl, logger13) => {
|
|
214995
|
-
const config = await discoverOAuthEndpoints(serverUrl, logger13);
|
|
214996
|
-
return config !== null;
|
|
214997
|
-
};
|
|
214998
|
-
var discoverOAuthEndpoints = async (serverUrl, logger13) => {
|
|
214999
|
-
try {
|
|
215000
|
-
const response = await fetch(serverUrl, {
|
|
215001
|
-
method: "POST",
|
|
215002
|
-
headers: { "Content-Type": "application/json" },
|
|
215003
|
-
body: JSON.stringify({})
|
|
215004
|
-
});
|
|
215005
|
-
if (response.status === 401) {
|
|
215006
|
-
const wwwAuth = response.headers.get("WWW-Authenticate");
|
|
215007
|
-
if (wwwAuth) {
|
|
215008
|
-
const metadataMatch = wwwAuth.match(/as_uri="([^"]+)"/);
|
|
215009
|
-
if (metadataMatch) {
|
|
215010
|
-
const metadataResponse = await fetch(metadataMatch[1]);
|
|
215011
|
-
if (metadataResponse.ok) {
|
|
215012
|
-
const metadata = await metadataResponse.json();
|
|
215013
|
-
if (metadata.authorization_servers?.length > 0) {
|
|
215014
|
-
return await tryWellKnownEndpoints(metadata.authorization_servers[0], logger13);
|
|
215015
|
-
}
|
|
215016
|
-
}
|
|
215017
|
-
}
|
|
215018
|
-
}
|
|
215019
|
-
}
|
|
215020
|
-
} catch (_error) {
|
|
215021
|
-
}
|
|
215022
|
-
const url = new URL(serverUrl);
|
|
215023
|
-
const baseUrl = `${url.protocol}//${url.host}`;
|
|
215024
|
-
return await tryWellKnownEndpoints(baseUrl, logger13);
|
|
215025
|
-
};
|
|
215026
|
-
var detectAuthenticationRequired = async ({
|
|
215027
|
-
serverUrl,
|
|
215028
|
-
toolId,
|
|
215029
|
-
error,
|
|
215030
|
-
logger: logger13
|
|
215031
|
-
}) => {
|
|
215032
|
-
try {
|
|
215033
|
-
const hasOAuthEndpoints = await checkForOAuthEndpoints(serverUrl, logger13);
|
|
215034
|
-
if (hasOAuthEndpoints) {
|
|
215035
|
-
logger13?.info(
|
|
215036
|
-
{ toolId, serverUrl },
|
|
215037
|
-
"OAuth 2.1/PKCE support confirmed via endpoint discovery"
|
|
215038
|
-
);
|
|
215039
|
-
return true;
|
|
215040
|
-
}
|
|
215041
|
-
} catch (discoveryError) {
|
|
215042
|
-
logger13?.debug({ toolId, discoveryError }, "OAuth endpoint discovery failed");
|
|
215043
|
-
}
|
|
215044
|
-
try {
|
|
215045
|
-
const response = await fetch(serverUrl, {
|
|
215046
|
-
method: "POST",
|
|
215047
|
-
headers: { "Content-Type": "application/json" },
|
|
215048
|
-
body: JSON.stringify({
|
|
215049
|
-
jsonrpc: "2.0",
|
|
215050
|
-
method: "initialize",
|
|
215051
|
-
id: 1,
|
|
215052
|
-
params: { protocolVersion: "2024-11-05", capabilities: {} }
|
|
215053
|
-
})
|
|
215054
|
-
});
|
|
215055
|
-
if (response.status === 401) {
|
|
215056
|
-
const wwwAuth = response.headers.get("WWW-Authenticate");
|
|
215057
|
-
if (wwwAuth) {
|
|
215058
|
-
const authLower = wwwAuth.toLowerCase();
|
|
215059
|
-
const hasActiveOAuthFlow = authLower.includes("authorization_uri") || authLower.includes("as_uri=") || authLower.includes("bearer") && (authLower.includes("scope=") || authLower.includes("error_uri="));
|
|
215060
|
-
if (hasActiveOAuthFlow) {
|
|
215061
|
-
logger13?.info(
|
|
215062
|
-
{ toolId, wwwAuth },
|
|
215063
|
-
"Active OAuth flow detected via WWW-Authenticate parameters"
|
|
215064
|
-
);
|
|
215065
|
-
return true;
|
|
215066
|
-
} else {
|
|
215067
|
-
logger13?.debug(
|
|
215068
|
-
{ toolId, wwwAuth },
|
|
215069
|
-
"Bearer authentication detected - likely simple token auth, not OAuth"
|
|
215070
|
-
);
|
|
215071
|
-
}
|
|
215072
|
-
}
|
|
215073
|
-
}
|
|
215074
|
-
} catch (fetchError) {
|
|
215075
|
-
logger13?.debug({ toolId, fetchError }, "Direct fetch authentication check failed");
|
|
215076
|
-
}
|
|
215077
|
-
logger13?.debug(
|
|
215078
|
-
{ toolId, error: error.message },
|
|
215079
|
-
"No OAuth 2.1/PKCE authentication requirement detected"
|
|
215080
|
-
);
|
|
215081
|
-
return false;
|
|
215082
|
-
};
|
|
215083
214962
|
var ErrorCode = z.enum([
|
|
215084
214963
|
"bad_request",
|
|
215085
214964
|
"unauthorized",
|
|
@@ -215783,7 +215662,7 @@ var discoverToolsFromServer = async (tool2, dbClient, credentialStoreRegistry) =
|
|
|
215783
215662
|
id: credentialReferenceId
|
|
215784
215663
|
});
|
|
215785
215664
|
if (!credentialReference) {
|
|
215786
|
-
throw new Error(`Credential
|
|
215665
|
+
throw new Error(`Credential reference not found: ${credentialReferenceId}`);
|
|
215787
215666
|
}
|
|
215788
215667
|
const storeReference = {
|
|
215789
215668
|
credentialStoreId: credentialReference.credentialStoreId,
|
|
@@ -215862,6 +215741,38 @@ var dbResultToMcpTool = async (dbResult, dbClient, credentialStoreRegistry) => {
|
|
|
215862
215741
|
let availableTools = [];
|
|
215863
215742
|
let status = "unknown";
|
|
215864
215743
|
let lastErrorComputed;
|
|
215744
|
+
let expiresAt;
|
|
215745
|
+
if (credentialReferenceId) {
|
|
215746
|
+
const credentialReference = await getCredentialReference(dbClient)({
|
|
215747
|
+
scopes: { tenantId: dbResult.tenantId, projectId: dbResult.projectId },
|
|
215748
|
+
id: credentialReferenceId
|
|
215749
|
+
});
|
|
215750
|
+
if (credentialReference?.retrievalParams) {
|
|
215751
|
+
const credentialStore = credentialStoreRegistry?.get(credentialReference.credentialStoreId);
|
|
215752
|
+
if (credentialStore && credentialStore.type !== CredentialStoreType.memory) {
|
|
215753
|
+
const lookupKey = getCredentialStoreLookupKeyFromRetrievalParams({
|
|
215754
|
+
retrievalParams: credentialReference.retrievalParams,
|
|
215755
|
+
credentialStoreType: credentialStore.type
|
|
215756
|
+
});
|
|
215757
|
+
if (lookupKey) {
|
|
215758
|
+
const credentialDataString = await credentialStore.get(lookupKey);
|
|
215759
|
+
if (credentialDataString) {
|
|
215760
|
+
if (credentialStore.type === CredentialStoreType.nango) {
|
|
215761
|
+
const nangoCredentialData = JSON.parse(credentialDataString);
|
|
215762
|
+
if (nangoCredentialData.expiresAt) {
|
|
215763
|
+
expiresAt = nangoCredentialData.expiresAt;
|
|
215764
|
+
}
|
|
215765
|
+
} else if (credentialStore.type === CredentialStoreType.keychain) {
|
|
215766
|
+
const oauthTokens = JSON.parse(credentialDataString);
|
|
215767
|
+
if (oauthTokens.expires_at) {
|
|
215768
|
+
expiresAt = new Date(oauthTokens.expires_at);
|
|
215769
|
+
}
|
|
215770
|
+
}
|
|
215771
|
+
}
|
|
215772
|
+
}
|
|
215773
|
+
}
|
|
215774
|
+
}
|
|
215775
|
+
}
|
|
215865
215776
|
try {
|
|
215866
215777
|
availableTools = await discoverToolsFromServer(dbResult, dbClient, credentialStoreRegistry);
|
|
215867
215778
|
status = "healthy";
|
|
@@ -215893,6 +215804,7 @@ var dbResultToMcpTool = async (dbResult, dbClient, credentialStoreRegistry) => {
|
|
|
215893
215804
|
credentialReferenceId: credentialReferenceId || void 0,
|
|
215894
215805
|
createdAt: new Date(createdAt),
|
|
215895
215806
|
updatedAt: new Date(now),
|
|
215807
|
+
expiresAt,
|
|
215896
215808
|
lastError: lastErrorComputed,
|
|
215897
215809
|
headers: headers2 || void 0,
|
|
215898
215810
|
imageUrl: imageUrl || void 0
|
|
@@ -222167,7 +222079,8 @@ var NangoCredentialStore = class {
|
|
|
222167
222079
|
case "OAUTH2":
|
|
222168
222080
|
return {
|
|
222169
222081
|
token: extractAccessTokenForBearerType(credentials.access_token),
|
|
222170
|
-
refresh_token: credentials.refresh_token
|
|
222082
|
+
refresh_token: credentials.refresh_token,
|
|
222083
|
+
expiresAt: credentials.expires_at
|
|
222171
222084
|
};
|
|
222172
222085
|
case "OAUTH2_CC":
|
|
222173
222086
|
return {
|
|
@@ -222621,4 +222534,4 @@ typescript/lib/typescript.js:
|
|
|
222621
222534
|
***************************************************************************** *)
|
|
222622
222535
|
*/
|
|
222623
222536
|
|
|
222624
|
-
export { ContextCache, ContextConfigBuilder, ContextFetcher, ContextResolver, CredentialStoreRegistry, CredentialStuffer, ERROR_DOCS_BASE_URL, ErrorCode, HTTP_REQUEST_PARTS, InMemoryCredentialStore, KeyChainStore, McpClient, NangoCredentialStore, TemplateEngine, addFunctionToolToSubAgent, addLedgerArtifacts, addToolToAgent, agentHasArtifactComponents, apiFetch, associateArtifactComponentWithAgent, associateDataComponentWithAgent, cleanupTenantCache, clearContextConfigCache, clearConversationCache, commonCreateErrorResponses, commonDeleteErrorResponses, commonGetErrorResponses, commonUpdateErrorResponses, contextConfig, contextValidationMiddleware, countApiKeys, countArtifactComponents, countArtifactComponentsForAgent, countContextConfigs, countCredentialReferences, countDataComponents, countExternalAgents, countLedgerArtifactsByTask, countMessagesByConversation, countProjects, createAgent, createAgentToolRelation, createApiError, createApiKey, createArtifactComponent, createContextConfig, createConversation, createCredentialReference, createDataComponent, createDatabaseClient, createDefaultCredentialStores, createExecutionContext, createExternalAgent, createExternalAgentRelation, createFullAgentServerSide, createFullProjectServerSide, createFunctionTool, createInMemoryDatabaseClient, createKeyChainStore, createMessage, createNangoCredentialStore, createOrGetConversation, createProject, createSubAgent, createSubAgentRelation, createTask, createTool, createValidatedDataAccess, dbResultToMcpTool, deleteAgent, deleteAgentArtifactComponentRelationByAgent, deleteAgentDataComponentRelationByAgent, deleteAgentRelationsByAgent, deleteAgentToolRelation, deleteAgentToolRelationByAgent, deleteApiKey, deleteArtifactComponent, deleteContextConfig, deleteConversation, deleteCredentialReference, deleteDataComponent, deleteExternalAgent, deleteFullAgent, deleteFullProject, deleteFunction, deleteFunctionTool, deleteLedgerArtifactsByContext, deleteLedgerArtifactsByTask, deleteMessage, deleteProject, deleteSubAgent, deleteSubAgentRelation, deleteTool,
|
|
222537
|
+
export { ContextCache, ContextConfigBuilder, ContextFetcher, ContextResolver, CredentialStoreRegistry, CredentialStuffer, ERROR_DOCS_BASE_URL, ErrorCode, HTTP_REQUEST_PARTS, InMemoryCredentialStore, KeyChainStore, McpClient, NangoCredentialStore, TemplateEngine, addFunctionToolToSubAgent, addLedgerArtifacts, addToolToAgent, agentHasArtifactComponents, apiFetch, associateArtifactComponentWithAgent, associateDataComponentWithAgent, cleanupTenantCache, clearContextConfigCache, clearConversationCache, commonCreateErrorResponses, commonDeleteErrorResponses, commonGetErrorResponses, commonUpdateErrorResponses, contextConfig, contextValidationMiddleware, countApiKeys, countArtifactComponents, countArtifactComponentsForAgent, countContextConfigs, countCredentialReferences, countDataComponents, countExternalAgents, countLedgerArtifactsByTask, countMessagesByConversation, countProjects, createAgent, createAgentToolRelation, createApiError, createApiKey, createArtifactComponent, createContextConfig, createConversation, createCredentialReference, createDataComponent, createDatabaseClient, createDefaultCredentialStores, createExecutionContext, createExternalAgent, createExternalAgentRelation, createFullAgentServerSide, createFullProjectServerSide, createFunctionTool, createInMemoryDatabaseClient, createKeyChainStore, createMessage, createNangoCredentialStore, createOrGetConversation, createProject, createSubAgent, createSubAgentRelation, createTask, createTool, createValidatedDataAccess, dbResultToMcpTool, deleteAgent, deleteAgentArtifactComponentRelationByAgent, deleteAgentDataComponentRelationByAgent, deleteAgentRelationsByAgent, deleteAgentToolRelation, deleteAgentToolRelationByAgent, deleteApiKey, deleteArtifactComponent, deleteContextConfig, deleteConversation, deleteCredentialReference, deleteDataComponent, deleteExternalAgent, deleteFullAgent, deleteFullProject, deleteFunction, deleteFunctionTool, deleteLedgerArtifactsByContext, deleteLedgerArtifactsByTask, deleteMessage, deleteProject, deleteSubAgent, deleteSubAgentRelation, deleteTool, determineContextTrigger, errorResponseSchema, errorSchemaFactory, externalAgentExists, externalAgentUrlExists, extractPublicId, fetchComponentRelationships, fetchDefinition, generateAndCreateApiKey, generateApiKey, generateId, getActiveAgentForConversation, getAgentById, getAgentRelationById, getAgentRelationByParams, getAgentRelations, getAgentRelationsByAgent, getAgentRelationsBySource, getAgentSubAgentInfos, getAgentToolRelationByAgent, getAgentToolRelationById, getAgentToolRelationByTool, getAgentWithDefaultSubAgent, getAgentsForTool, getAgentsUsingArtifactComponent, getAgentsUsingDataComponent, getApiKeyById, getApiKeyByPublicId, getArtifactComponentById, getArtifactComponentsForAgent, getCacheEntry, getCachedValidator, getContextConfigById, getContextConfigCacheEntries, getConversation, getConversationCacheEntries, getConversationHistory, getConversationId, getCredentialReference, getCredentialReferenceById, getCredentialReferenceWithTools, getCredentialStoreLookupKeyFromRetrievalParams, getDataComponent, getDataComponentsForAgent, getExternalAgent, getExternalAgentByUrl, getExternalAgentRelations, getFullAgent, getFullAgentDefinition, getFullProject, getFunction, getFunctionToolById, getFunctionToolsForSubAgent, getLedgerArtifacts, getLedgerArtifactsByContext, getMessageById, getMessagesByConversation, getMessagesByTask, getProject, getProjectResourceCounts, getRelatedAgentsForAgent, getRequestExecutionContext, getSubAgentById, getSubAgentRelationsByTarget, getSubAgentsByIds, getTask, getToolById, getToolsForAgent, getTracer, getVisibleMessages, handleApiError, handleContextConfigChange, handleContextResolution, hasApiKey, hasContextConfig, hasCredentialReference, hashApiKey, headers, invalidateHeadersCache, invalidateInvocationDefinitionsCache, isApiKeyExpired, isArtifactComponentAssociatedWithAgent, isDataComponentAssociatedWithAgent, isValidHttpRequest, listAgentRelations, listAgentToolRelations, listAgents, listAgentsPaginated, listApiKeys, listApiKeysPaginated, listArtifactComponents, listArtifactComponentsPaginated, listContextConfigs, listContextConfigsPaginated, listConversations, listCredentialReferences, listCredentialReferencesPaginated, listDataComponents, listDataComponentsPaginated, listExternalAgents, listExternalAgentsPaginated, listFunctionTools, listFunctions, listMessages, listProjects, listProjectsPaginated, listSubAgents, listSubAgentsPaginated, listTaskIdsByContextId, listTools, loadEnvironmentFiles, maskApiKey, problemDetailsSchema, projectExists, projectExistsInTable, projectHasResources, removeArtifactComponentFromAgent, removeDataComponentFromAgent, removeToolFromAgent, setActiveAgentForConversation, setActiveAgentForThread, setCacheEntry, setSpanWithError, updateAgent, updateAgentRelation, updateAgentToolRelation, updateApiKey, updateApiKeyLastUsed, updateArtifactComponent, updateContextConfig, updateConversation, updateConversationActiveAgent, updateCredentialReference, updateDataComponent, updateExternalAgent, updateFullAgentServerSide, updateFullProjectServerSide, updateFunctionTool, updateMessage, updateProject, updateSubAgent, updateSubAgentFunctionToolRelation, updateTask, updateTool, upsertAgent, upsertAgentArtifactComponentRelation, upsertAgentDataComponentRelation, upsertArtifactComponent, upsertContextConfig, upsertCredentialReference, upsertDataComponent, upsertExternalAgent, upsertFunction, upsertFunctionTool, upsertLedgerArtifact, upsertSubAgent, upsertSubAgentFunctionToolRelation, upsertSubAgentRelation, upsertSubAgentToolRelation, upsertTool, validateAgainstJsonSchema, validateAndGetApiKey, validateApiKey, validateExternalAgent, validateHeaders, validateHttpRequestHeaders, validateInternalSubAgent, validateProjectExists, validationHelper, withProjectValidation };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as drizzle_orm from 'drizzle-orm';
|
|
2
2
|
import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
|
|
3
|
-
import { l as ContextFetchDefinition, C as ConversationHistoryConfig, T as TaskMetadataConfig, m as ToolMcpConfig, n as ToolServerCapabilities, o as ConversationMetadata, p as MessageContent, q as MessageMetadata, P as Part } from './utility-
|
|
3
|
+
import { l as ContextFetchDefinition, C as ConversationHistoryConfig, T as TaskMetadataConfig, m as ToolMcpConfig, n as ToolServerCapabilities, o as ConversationMetadata, p as MessageContent, q as MessageMetadata, P as Part } from './utility-mGrlR4Ta.cjs';
|
|
4
4
|
|
|
5
5
|
declare const projects: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
6
6
|
name: "projects";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as drizzle_orm from 'drizzle-orm';
|
|
2
2
|
import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
|
|
3
|
-
import { l as ContextFetchDefinition, C as ConversationHistoryConfig, T as TaskMetadataConfig, m as ToolMcpConfig, n as ToolServerCapabilities, o as ConversationMetadata, p as MessageContent, q as MessageMetadata, P as Part } from './utility-
|
|
3
|
+
import { l as ContextFetchDefinition, C as ConversationHistoryConfig, T as TaskMetadataConfig, m as ToolMcpConfig, n as ToolServerCapabilities, o as ConversationMetadata, p as MessageContent, q as MessageMetadata, P as Part } from './utility-mGrlR4Ta.js';
|
|
4
4
|
|
|
5
5
|
declare const projects: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
6
6
|
name: "projects";
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { h as CredentialStoreType } from '../utility-
|
|
2
|
-
export { b9 as A2AError, bF as A2ARequest, bG as A2AResponse, aK as APIKeySecurityScheme, bT as AgentApiInsert, bS as AgentApiSelect, bU as AgentApiUpdate, aG as AgentCapabilities, aU as AgentCard, dk as AgentConversationHistoryConfig, x as AgentInsert, aH as AgentProvider, u as AgentScopeConfig, B as AgentSelect, aI as AgentSkill, y as AgentUpdate, cN as AllAgentSelect, cR as ApiKeyApiCreationResponse, cP as ApiKeyApiInsert, cO as ApiKeyApiSelect, cQ as ApiKeyApiUpdate, I as ApiKeyCreateResult, E as ApiKeyInsert, D as ApiKeySelect, G as ApiKeyUpdate, a9 as Artifact, cC as ArtifactComponentApiInsert, cB as ArtifactComponentApiSelect, cD as ArtifactComponentApiUpdate, K as ArtifactComponentInsert, J as ArtifactComponentSelect, L as ArtifactComponentUpdate, aN as AuthorizationCodeOAuthFlow, d3 as CanUseItem, bp as CancelTaskRequest, bA as CancelTaskResponse, bz as CancelTaskSuccessResponse, aO as ClientCredentialsOAuthFlow, b7 as ContentTypeNotSupportedError, cq as ContextCacheApiInsert, cp as ContextCacheApiSelect, cr as ContextCacheApiUpdate, dl as ContextCacheEntry, Q as ContextCacheInsert, O as ContextCacheSelect, co as ContextCacheUpdate, ck as ContextConfigApiInsert, cj as ContextConfigApiSelect, cl as ContextConfigApiUpdate, R as ContextConfigInsert, s as ContextConfigSelect, U as ContextConfigUpdate, l as ContextFetchDefinition, cd as ConversationApiInsert, cc as ConversationApiSelect, ce as ConversationApiUpdate, C as ConversationHistoryConfig, W as ConversationInsert, o as ConversationMetadata, dj as ConversationScopeOptions, V as ConversationSelect, X as ConversationUpdate, H as CreateApiKeyParams, r as CredentialReferenceApiInsert, cS as CredentialReferenceApiSelect, cT as CredentialReferenceApiUpdate, _ as CredentialReferenceInsert, Y as CredentialReferenceSelect, $ as CredentialReferenceUpdate, ct as DataComponentApiInsert, cs as DataComponentApiSelect, cu as DataComponentApiUpdate, a1 as DataComponentInsert, a0 as DataComponentSelect, a2 as DataComponentUpdate, aE as DataPart, ax as ExecutionContext, cK as ExternalAgentApiSelect, cM as ExternalAgentApiUpdate, a3 as ExternalAgentInsert, a4 as ExternalAgentSelect, a5 as ExternalAgentUpdate, cL as ExternalSubAgentApiInsert, bR as ExternalSubAgentRelationApiInsert, am as ExternalSubAgentRelationInsert, cn as FetchConfig, cm as FetchDefinition, aA as FileBase, aD as FilePart, aB as FileWithBytes, aC as FileWithUri, d2 as FullAgentAgentInsert, z as FullAgentDefinition, ae as FullProjectDefinition, a6 as FunctionApiInsert, c9 as FunctionApiSelect, ca as FunctionApiUpdate, c7 as FunctionInsert, c6 as FunctionSelect, a7 as FunctionToolApiInsert, cb as FunctionToolApiSelect, a8 as FunctionToolApiUpdate, c8 as FunctionUpdate, br as GetTaskPushNotificationConfigRequest, bE as GetTaskPushNotificationConfigResponse, bD as GetTaskPushNotificationConfigSuccessResponse, bo as GetTaskRequest, by as GetTaskResponse, bx as GetTaskSuccessResponse, aL as HTTPAuthSecurityScheme, aP as ImplicitOAuthFlow, b2 as InternalError, d4 as InternalSubAgentDefinition, 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, d0 as LedgerArtifactApiInsert, c$ as LedgerArtifactApiSelect, d1 as LedgerArtifactApiUpdate, cZ as LedgerArtifactInsert, aa as LedgerArtifactSelect, c_ as LedgerArtifactUpdate, du as MCPServerType, t as MCPToolConfig, i as MCPTransportType, dm as McpAuthType, dn as McpServerAuth, dq as McpServerCapabilities, au as McpTool, dr as McpToolDefinition, dp as McpTransportConfig, aV as Message, ch as MessageApiInsert, cg as MessageApiSelect, ci as MessageApiUpdate, p as MessageContent, ac as MessageInsert, q as MessageMetadata, de as MessageMode, bH as MessagePart, dd as MessageRole, cf as MessageSelect, bf as MessageSendConfiguration, bg as MessageSendParams, dc as MessageType, ad as MessageUpdate, ab as MessageVisibility, b0 as MethodNotFoundError, df as Models, aR as OAuth2SecurityScheme, aM as OAuthFlows, aS as OpenIdConnectSecurityScheme, da as Pagination, w as PaginationConfig, ah as PaginationResult, P as Part, ay as PartBase, aQ as PasswordOAuthFlow, d8 as ProjectApiInsert, d7 as ProjectApiSelect, d9 as ProjectApiUpdate, af as ProjectInfo, aj as ProjectInsert, dg as ProjectModels, ai as ProjectResourceCounts, v as ProjectScopeConfig, ag as ProjectSelect, ak as ProjectUpdate, ba as PushNotificationAuthenticationInfo, bb as PushNotificationConfig, b5 as PushNotificationNotSupportedError, 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, di as StatusComponent, dh as StatusUpdateSettings, bK as SubAgentApiInsert, bJ as SubAgentApiSelect, bL as SubAgentApiUpdate, cI as SubAgentArtifactComponentApiInsert, cH as SubAgentArtifactComponentApiSelect, cJ as SubAgentArtifactComponentApiUpdate, cF as SubAgentArtifactComponentInsert, cE as SubAgentArtifactComponentSelect, cG as SubAgentArtifactComponentUpdate, cz as SubAgentDataComponentApiInsert, cy as SubAgentDataComponentApiSelect, cA as SubAgentDataComponentApiUpdate, cw as SubAgentDataComponentInsert, cv as SubAgentDataComponentSelect, cx as SubAgentDataComponentUpdate, d5 as SubAgentDefinition, ap as SubAgentInsert, bO as SubAgentRelationApiInsert, bN as SubAgentRelationApiSelect, bP as SubAgentRelationApiUpdate, al as SubAgentRelationInsert, bQ as SubAgentRelationQuery, bM as SubAgentRelationSelect, an as SubAgentRelationUpdate, N as SubAgentScopeConfig, ar as SubAgentSelect, cX as SubAgentToolRelationApiInsert, cW as SubAgentToolRelationApiSelect, cY as SubAgentToolRelationApiUpdate, cV as SubAgentToolRelationInsert, cU as SubAgentToolRelationSelect, ao as SubAgentToolRelationUpdate, aq as SubAgentUpdate, db as SummaryEvent, ds as TOOL_STATUS_VALUES, aX as Task, bX as TaskApiInsert, bW as TaskApiSelect, bY as TaskApiUpdate, bI as TaskArtifact, aZ as TaskArtifactUpdateEvent, bd as TaskIdParams, as as TaskInsert, T as TaskMetadataConfig, b4 as TaskNotCancelableError, b3 as TaskNotFoundError, bc as TaskPushNotificationConfig, be as TaskQueryParams, c1 as TaskRelationApiInsert, c0 as TaskRelationApiSelect, c2 as TaskRelationApiUpdate, b_ as TaskRelationInsert, bZ as TaskRelationSelect, b$ as TaskRelationUpdate, bs as TaskResubscriptionRequest, at as TaskSelect, aF as TaskState, aW as TaskStatus, aY as TaskStatusUpdateEvent, bV as TaskUpdate, az as TextPart, c4 as ToolApiInsert, c3 as ToolApiSelect, c5 as ToolApiUpdate, d6 as ToolDefinition, av as ToolInsert, m as ToolMcpConfig, Z as ToolSelect, n as ToolServerCapabilities, aw as ToolUpdate, b6 as UnsupportedOperationError, dt as VALID_RELATION_TYPES } from '../utility-
|
|
1
|
+
import { h as CredentialStoreType } from '../utility-mGrlR4Ta.cjs';
|
|
2
|
+
export { b9 as A2AError, bF as A2ARequest, bG as A2AResponse, aK as APIKeySecurityScheme, bT as AgentApiInsert, bS as AgentApiSelect, bU as AgentApiUpdate, aG as AgentCapabilities, aU as AgentCard, dk as AgentConversationHistoryConfig, x as AgentInsert, aH as AgentProvider, u as AgentScopeConfig, B as AgentSelect, aI as AgentSkill, y as AgentUpdate, cN as AllAgentSelect, cR as ApiKeyApiCreationResponse, cP as ApiKeyApiInsert, cO as ApiKeyApiSelect, cQ as ApiKeyApiUpdate, I as ApiKeyCreateResult, E as ApiKeyInsert, D as ApiKeySelect, G as ApiKeyUpdate, a9 as Artifact, cC as ArtifactComponentApiInsert, cB as ArtifactComponentApiSelect, cD as ArtifactComponentApiUpdate, K as ArtifactComponentInsert, J as ArtifactComponentSelect, L as ArtifactComponentUpdate, aN as AuthorizationCodeOAuthFlow, d3 as CanUseItem, bp as CancelTaskRequest, bA as CancelTaskResponse, bz as CancelTaskSuccessResponse, aO as ClientCredentialsOAuthFlow, b7 as ContentTypeNotSupportedError, cq as ContextCacheApiInsert, cp as ContextCacheApiSelect, cr as ContextCacheApiUpdate, dl as ContextCacheEntry, Q as ContextCacheInsert, O as ContextCacheSelect, co as ContextCacheUpdate, ck as ContextConfigApiInsert, cj as ContextConfigApiSelect, cl as ContextConfigApiUpdate, R as ContextConfigInsert, s as ContextConfigSelect, U as ContextConfigUpdate, l as ContextFetchDefinition, cd as ConversationApiInsert, cc as ConversationApiSelect, ce as ConversationApiUpdate, C as ConversationHistoryConfig, W as ConversationInsert, o as ConversationMetadata, dj as ConversationScopeOptions, V as ConversationSelect, X as ConversationUpdate, H as CreateApiKeyParams, r as CredentialReferenceApiInsert, cS as CredentialReferenceApiSelect, cT as CredentialReferenceApiUpdate, _ as CredentialReferenceInsert, Y as CredentialReferenceSelect, $ as CredentialReferenceUpdate, ct as DataComponentApiInsert, cs as DataComponentApiSelect, cu as DataComponentApiUpdate, a1 as DataComponentInsert, a0 as DataComponentSelect, a2 as DataComponentUpdate, aE as DataPart, ax as ExecutionContext, cK as ExternalAgentApiSelect, cM as ExternalAgentApiUpdate, a3 as ExternalAgentInsert, a4 as ExternalAgentSelect, a5 as ExternalAgentUpdate, cL as ExternalSubAgentApiInsert, bR as ExternalSubAgentRelationApiInsert, am as ExternalSubAgentRelationInsert, cn as FetchConfig, cm as FetchDefinition, aA as FileBase, aD as FilePart, aB as FileWithBytes, aC as FileWithUri, d2 as FullAgentAgentInsert, z as FullAgentDefinition, ae as FullProjectDefinition, a6 as FunctionApiInsert, c9 as FunctionApiSelect, ca as FunctionApiUpdate, c7 as FunctionInsert, c6 as FunctionSelect, a7 as FunctionToolApiInsert, cb as FunctionToolApiSelect, a8 as FunctionToolApiUpdate, c8 as FunctionUpdate, br as GetTaskPushNotificationConfigRequest, bE as GetTaskPushNotificationConfigResponse, bD as GetTaskPushNotificationConfigSuccessResponse, bo as GetTaskRequest, by as GetTaskResponse, bx as GetTaskSuccessResponse, aL as HTTPAuthSecurityScheme, aP as ImplicitOAuthFlow, b2 as InternalError, d4 as InternalSubAgentDefinition, 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, d0 as LedgerArtifactApiInsert, c$ as LedgerArtifactApiSelect, d1 as LedgerArtifactApiUpdate, cZ as LedgerArtifactInsert, aa as LedgerArtifactSelect, c_ as LedgerArtifactUpdate, du as MCPServerType, t as MCPToolConfig, i as MCPTransportType, dm as McpAuthType, dn as McpServerAuth, dq as McpServerCapabilities, au as McpTool, dr as McpToolDefinition, dp as McpTransportConfig, aV as Message, ch as MessageApiInsert, cg as MessageApiSelect, ci as MessageApiUpdate, p as MessageContent, ac as MessageInsert, q as MessageMetadata, de as MessageMode, bH as MessagePart, dd as MessageRole, cf as MessageSelect, bf as MessageSendConfiguration, bg as MessageSendParams, dc as MessageType, ad as MessageUpdate, ab as MessageVisibility, b0 as MethodNotFoundError, df as Models, aR as OAuth2SecurityScheme, aM as OAuthFlows, aS as OpenIdConnectSecurityScheme, da as Pagination, w as PaginationConfig, ah as PaginationResult, P as Part, ay as PartBase, aQ as PasswordOAuthFlow, d8 as ProjectApiInsert, d7 as ProjectApiSelect, d9 as ProjectApiUpdate, af as ProjectInfo, aj as ProjectInsert, dg as ProjectModels, ai as ProjectResourceCounts, v as ProjectScopeConfig, ag as ProjectSelect, ak as ProjectUpdate, ba as PushNotificationAuthenticationInfo, bb as PushNotificationConfig, b5 as PushNotificationNotSupportedError, 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, di as StatusComponent, dh as StatusUpdateSettings, bK as SubAgentApiInsert, bJ as SubAgentApiSelect, bL as SubAgentApiUpdate, cI as SubAgentArtifactComponentApiInsert, cH as SubAgentArtifactComponentApiSelect, cJ as SubAgentArtifactComponentApiUpdate, cF as SubAgentArtifactComponentInsert, cE as SubAgentArtifactComponentSelect, cG as SubAgentArtifactComponentUpdate, cz as SubAgentDataComponentApiInsert, cy as SubAgentDataComponentApiSelect, cA as SubAgentDataComponentApiUpdate, cw as SubAgentDataComponentInsert, cv as SubAgentDataComponentSelect, cx as SubAgentDataComponentUpdate, d5 as SubAgentDefinition, ap as SubAgentInsert, bO as SubAgentRelationApiInsert, bN as SubAgentRelationApiSelect, bP as SubAgentRelationApiUpdate, al as SubAgentRelationInsert, bQ as SubAgentRelationQuery, bM as SubAgentRelationSelect, an as SubAgentRelationUpdate, N as SubAgentScopeConfig, ar as SubAgentSelect, cX as SubAgentToolRelationApiInsert, cW as SubAgentToolRelationApiSelect, cY as SubAgentToolRelationApiUpdate, cV as SubAgentToolRelationInsert, cU as SubAgentToolRelationSelect, ao as SubAgentToolRelationUpdate, aq as SubAgentUpdate, db as SummaryEvent, ds as TOOL_STATUS_VALUES, aX as Task, bX as TaskApiInsert, bW as TaskApiSelect, bY as TaskApiUpdate, bI as TaskArtifact, aZ as TaskArtifactUpdateEvent, bd as TaskIdParams, as as TaskInsert, T as TaskMetadataConfig, b4 as TaskNotCancelableError, b3 as TaskNotFoundError, bc as TaskPushNotificationConfig, be as TaskQueryParams, c1 as TaskRelationApiInsert, c0 as TaskRelationApiSelect, c2 as TaskRelationApiUpdate, b_ as TaskRelationInsert, bZ as TaskRelationSelect, b$ as TaskRelationUpdate, bs as TaskResubscriptionRequest, at as TaskSelect, aF as TaskState, aW as TaskStatus, aY as TaskStatusUpdateEvent, bV as TaskUpdate, az as TextPart, c4 as ToolApiInsert, c3 as ToolApiSelect, c5 as ToolApiUpdate, d6 as ToolDefinition, av as ToolInsert, m as ToolMcpConfig, Z as ToolSelect, n as ToolServerCapabilities, aw as ToolUpdate, b6 as UnsupportedOperationError, dt as VALID_RELATION_TYPES } from '../utility-mGrlR4Ta.cjs';
|
|
3
3
|
import { Context } from 'hono';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import 'drizzle-zod';
|