@inkeep/agents-core 0.22.11 → 0.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -1,14 +1,14 @@
1
1
  export { ANTHROPIC_MODELS, AnthropicModel, GOOGLE_MODELS, GoogleModel, ModelName, OPENAI_MODELS, OpenAIModel } from './constants/models.cjs';
2
- export { h as ACTIVITY_NAMES, f as ACTIVITY_STATUS, e as ACTIVITY_TYPES, g as AGENT_IDS, o as AGGREGATE_OPERATORS, A as AI_OPERATIONS, i as AI_TOOL_TYPES, n as DATA_SOURCES, j as DATA_TYPES, D as DELEGATION_FROM_SUB_AGENT_ID, b as DELEGATION_ID, a as DELEGATION_TO_SUB_AGENT_ID, F as FIELD_TYPES, O as OPERATORS, l as ORDER_DIRECTIONS, P as PANEL_TYPES, p as QUERY_DEFAULTS, k as QUERY_EXPRESSIONS, Q as QUERY_FIELD_CONFIGS, m as QUERY_TYPES, R as REDUCE_OPERATIONS, d 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 } from './signoz-queries-Bqpkx5sK.cjs';
2
+ import { r as PinoLogger, s as getLogger } from './auth-detection-BO8bSpe4.cjs';
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.cjs';
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-06QUJeMa.cjs';
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-06QUJeMa.cjs';
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.cjs';
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.cjs';
6
7
  import { CredentialStore } from './types/index.cjs';
7
8
  export { CorsConfig, ServerConfig, ServerOptions } from './types/index.cjs';
8
9
  import { LibSQLDatabase } from 'drizzle-orm/libsql';
9
- import { s as schema } from './schema-B8-O-pmG.cjs';
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-B8-O-pmG.cjs';
11
- import { LoggerOptions, TransportSingleOptions, Logger } from 'pino';
10
+ import { s as schema } from './schema-B8NMPwEM.cjs';
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-B8NMPwEM.cjs';
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.cjs';
23
23
  export { P as PropsValidationResult, v as validatePropsAsJsonSchema } from './props-validation-BMR1qNiy.cjs';
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
@@ -844,13 +765,14 @@ declare class CredentialStuffer {
844
765
  declare const getAgentById: (db: DatabaseClient) => (params: {
845
766
  scopes: AgentScopeConfig;
846
767
  }) => Promise<{
847
- name: string;
768
+ tenantId: string;
769
+ projectId: string;
848
770
  id: string;
771
+ name: string;
772
+ description: string | null;
773
+ prompt: string | null;
849
774
  createdAt: string;
850
775
  updatedAt: string;
851
- projectId: string;
852
- tenantId: string;
853
- description: string | null;
854
776
  models: {
855
777
  base?: {
856
778
  model?: string | undefined;
@@ -870,7 +792,6 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
870
792
  } | null;
871
793
  defaultSubAgentId: string | null;
872
794
  contextConfigId: string | null;
873
- prompt: string | null;
874
795
  statusUpdates: {
875
796
  enabled?: boolean | undefined;
876
797
  numEvents?: number | undefined;
@@ -890,13 +811,14 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
890
811
  declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
891
812
  scopes: AgentScopeConfig;
892
813
  }) => Promise<{
893
- name: string;
814
+ tenantId: string;
815
+ projectId: string;
894
816
  id: string;
817
+ name: string;
818
+ description: string | null;
819
+ prompt: string | null;
895
820
  createdAt: string;
896
821
  updatedAt: string;
897
- projectId: string;
898
- tenantId: string;
899
- description: string | null;
900
822
  models: {
901
823
  base?: {
902
824
  model?: string | undefined;
@@ -916,7 +838,6 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
916
838
  } | null;
917
839
  defaultSubAgentId: string | null;
918
840
  contextConfigId: string | null;
919
- prompt: string | null;
920
841
  statusUpdates: {
921
842
  enabled?: boolean | undefined;
922
843
  numEvents?: number | undefined;
@@ -933,13 +854,15 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
933
854
  }[] | undefined;
934
855
  } | null;
935
856
  defaultSubAgent: {
936
- name: string;
857
+ tenantId: string;
858
+ projectId: string;
937
859
  id: string;
860
+ name: string;
861
+ description: string;
862
+ prompt: string;
863
+ agentId: string;
938
864
  createdAt: string;
939
865
  updatedAt: string;
940
- projectId: string;
941
- tenantId: string;
942
- description: string;
943
866
  models: {
944
867
  base?: {
945
868
  model?: string | undefined;
@@ -957,21 +880,20 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
957
880
  stopWhen: {
958
881
  stepCountIs?: number | undefined;
959
882
  } | null;
960
- agentId: string;
961
- prompt: string;
962
883
  conversationHistoryConfig: ConversationHistoryConfig | null;
963
884
  } | null;
964
885
  } | null>;
965
886
  declare const listAgents: (db: DatabaseClient) => (params: {
966
887
  scopes: ProjectScopeConfig;
967
888
  }) => Promise<{
968
- name: string;
889
+ tenantId: string;
890
+ projectId: string;
969
891
  id: string;
892
+ name: string;
893
+ description: string | null;
894
+ prompt: string | null;
970
895
  createdAt: string;
971
896
  updatedAt: string;
972
- projectId: string;
973
- tenantId: string;
974
- description: string | null;
975
897
  models: {
976
898
  base?: {
977
899
  model?: string | undefined;
@@ -991,7 +913,6 @@ declare const listAgents: (db: DatabaseClient) => (params: {
991
913
  } | null;
992
914
  defaultSubAgentId: string | null;
993
915
  contextConfigId: string | null;
994
- prompt: string | null;
995
916
  statusUpdates: {
996
917
  enabled?: boolean | undefined;
997
918
  numEvents?: number | undefined;
@@ -1064,13 +985,14 @@ declare const listAgentsPaginated: (db: DatabaseClient) => (params: {
1064
985
  };
1065
986
  }>;
1066
987
  declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promise<{
1067
- name: string;
988
+ tenantId: string;
989
+ projectId: string;
1068
990
  id: string;
991
+ name: string;
992
+ description: string | null;
993
+ prompt: string | null;
1069
994
  createdAt: string;
1070
995
  updatedAt: string;
1071
- projectId: string;
1072
- tenantId: string;
1073
- description: string | null;
1074
996
  models: {
1075
997
  base?: {
1076
998
  model?: string | undefined;
@@ -1090,7 +1012,6 @@ declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promis
1090
1012
  } | null;
1091
1013
  defaultSubAgentId: string | null;
1092
1014
  contextConfigId: string | null;
1093
- prompt: string | null;
1094
1015
  statusUpdates: {
1095
1016
  enabled?: boolean | undefined;
1096
1017
  numEvents?: number | undefined;
@@ -1111,13 +1032,14 @@ declare const updateAgent: (db: DatabaseClient) => (params: {
1111
1032
  scopes: AgentScopeConfig;
1112
1033
  data: AgentUpdate;
1113
1034
  }) => Promise<{
1114
- name: string;
1035
+ tenantId: string;
1036
+ projectId: string;
1115
1037
  id: string;
1038
+ name: string;
1039
+ description: string | null;
1040
+ prompt: string | null;
1116
1041
  createdAt: string;
1117
1042
  updatedAt: string;
1118
- projectId: string;
1119
- tenantId: string;
1120
- description: string | null;
1121
1043
  models: {
1122
1044
  base?: {
1123
1045
  model?: string | undefined;
@@ -1137,7 +1059,6 @@ declare const updateAgent: (db: DatabaseClient) => (params: {
1137
1059
  } | null;
1138
1060
  defaultSubAgentId: string | null;
1139
1061
  contextConfigId: string | null;
1140
- prompt: string | null;
1141
1062
  statusUpdates: {
1142
1063
  enabled?: boolean | undefined;
1143
1064
  numEvents?: number | undefined;
@@ -1191,49 +1112,49 @@ declare const getApiKeyById: (db: DatabaseClient) => (params: {
1191
1112
  scopes: ProjectScopeConfig;
1192
1113
  id: string;
1193
1114
  }) => Promise<{
1194
- name: string | null;
1195
- id: string;
1196
- createdAt: string;
1197
- updatedAt: string;
1198
- projectId: string;
1199
1115
  tenantId: string;
1116
+ projectId: string;
1117
+ id: string;
1118
+ name: string | null;
1200
1119
  agentId: string;
1201
1120
  publicId: string;
1202
1121
  keyHash: string;
1203
1122
  keyPrefix: string;
1204
1123
  lastUsedAt: string | null;
1205
1124
  expiresAt: string | null;
1206
- } | undefined>;
1207
- declare const getApiKeyByPublicId: (db: DatabaseClient) => (publicId: string) => Promise<{
1208
- name: string | null;
1209
- id: string;
1210
1125
  createdAt: string;
1211
1126
  updatedAt: string;
1212
- projectId: string;
1127
+ } | undefined>;
1128
+ declare const getApiKeyByPublicId: (db: DatabaseClient) => (publicId: string) => Promise<{
1213
1129
  tenantId: string;
1130
+ projectId: string;
1131
+ id: string;
1132
+ name: string | null;
1214
1133
  agentId: string;
1215
1134
  publicId: string;
1216
1135
  keyHash: string;
1217
1136
  keyPrefix: string;
1218
1137
  lastUsedAt: string | null;
1219
1138
  expiresAt: string | null;
1139
+ createdAt: string;
1140
+ updatedAt: string;
1220
1141
  } | undefined>;
1221
1142
  declare const listApiKeys: (db: DatabaseClient) => (params: {
1222
1143
  scopes: ProjectScopeConfig;
1223
1144
  agentId?: string;
1224
1145
  }) => Promise<{
1225
- name: string | null;
1226
- id: string;
1227
- createdAt: string;
1228
- updatedAt: string;
1229
- projectId: string;
1230
1146
  tenantId: string;
1147
+ projectId: string;
1148
+ id: string;
1149
+ name: string | null;
1231
1150
  agentId: string;
1232
1151
  publicId: string;
1233
1152
  keyHash: string;
1234
1153
  keyPrefix: string;
1235
1154
  lastUsedAt: string | null;
1236
1155
  expiresAt: string | null;
1156
+ createdAt: string;
1157
+ updatedAt: string;
1237
1158
  }[]>;
1238
1159
  declare const listApiKeysPaginated: (db: DatabaseClient) => (params: {
1239
1160
  scopes: ProjectScopeConfig;
@@ -1249,36 +1170,36 @@ declare const listApiKeysPaginated: (db: DatabaseClient) => (params: {
1249
1170
  };
1250
1171
  }>;
1251
1172
  declare const createApiKey: (db: DatabaseClient) => (params: ApiKeyInsert) => Promise<{
1252
- name: string | null;
1253
- id: string;
1254
- createdAt: string;
1255
- updatedAt: string;
1256
- projectId: string;
1257
1173
  tenantId: string;
1174
+ projectId: string;
1175
+ id: string;
1176
+ name: string | null;
1258
1177
  agentId: string;
1259
1178
  publicId: string;
1260
1179
  keyHash: string;
1261
1180
  keyPrefix: string;
1262
1181
  lastUsedAt: string | null;
1263
1182
  expiresAt: string | null;
1183
+ createdAt: string;
1184
+ updatedAt: string;
1264
1185
  }>;
1265
1186
  declare const updateApiKey: (db: DatabaseClient) => (params: {
1266
1187
  scopes: ProjectScopeConfig;
1267
1188
  id: string;
1268
1189
  data: ApiKeyUpdate;
1269
1190
  }) => Promise<{
1270
- name: string | null;
1271
- id: string;
1272
- createdAt: string;
1273
- updatedAt: string;
1274
- projectId: string;
1275
1191
  tenantId: string;
1192
+ projectId: string;
1193
+ id: string;
1194
+ name: string | null;
1276
1195
  agentId: string;
1277
1196
  publicId: string;
1278
1197
  keyHash: string;
1279
1198
  keyPrefix: string;
1280
1199
  lastUsedAt: string | null;
1281
1200
  expiresAt: string | null;
1201
+ createdAt: string;
1202
+ updatedAt: string;
1282
1203
  }>;
1283
1204
  declare const deleteApiKey: (db: DatabaseClient) => (params: {
1284
1205
  scopes: ProjectScopeConfig;
@@ -1307,13 +1228,13 @@ declare const getArtifactComponentById: (db: DatabaseClient) => (params: {
1307
1228
  scopes: ProjectScopeConfig;
1308
1229
  id: string;
1309
1230
  }) => Promise<{
1310
- name: string;
1231
+ tenantId: string;
1232
+ projectId: string;
1311
1233
  id: string;
1234
+ name: string;
1235
+ description: string;
1312
1236
  createdAt: string;
1313
1237
  updatedAt: string;
1314
- projectId: string;
1315
- tenantId: string;
1316
- description: string;
1317
1238
  props: Record<string, unknown> | null;
1318
1239
  } | undefined>;
1319
1240
  declare const listArtifactComponents: (db: DatabaseClient) => (params: {
@@ -1341,13 +1262,13 @@ declare const listArtifactComponentsPaginated: (db: DatabaseClient) => (params:
1341
1262
  };
1342
1263
  }>;
1343
1264
  declare const createArtifactComponent: (db: DatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
1344
- name: string;
1265
+ tenantId: string;
1266
+ projectId: string;
1345
1267
  id: string;
1268
+ name: string;
1269
+ description: string;
1346
1270
  createdAt: string;
1347
1271
  updatedAt: string;
1348
- projectId: string;
1349
- tenantId: string;
1350
- description: string;
1351
1272
  props: Record<string, unknown> | null;
1352
1273
  }>;
1353
1274
  declare const updateArtifactComponent: (db: DatabaseClient) => (params: {
@@ -1355,13 +1276,13 @@ declare const updateArtifactComponent: (db: DatabaseClient) => (params: {
1355
1276
  id: string;
1356
1277
  data: ArtifactComponentUpdate;
1357
1278
  }) => Promise<{
1358
- name: string;
1279
+ tenantId: string;
1280
+ projectId: string;
1359
1281
  id: string;
1282
+ name: string;
1283
+ description: string;
1360
1284
  createdAt: string;
1361
1285
  updatedAt: string;
1362
- projectId: string;
1363
- tenantId: string;
1364
- description: string;
1365
1286
  props: Record<string, unknown> | null;
1366
1287
  }>;
1367
1288
  declare const deleteArtifactComponent: (db: DatabaseClient) => (params: {
@@ -1384,11 +1305,11 @@ declare const associateArtifactComponentWithAgent: (db: DatabaseClient) => (para
1384
1305
  scopes: SubAgentScopeConfig;
1385
1306
  artifactComponentId: string;
1386
1307
  }) => Promise<{
1387
- id: string;
1388
- createdAt: string;
1389
- projectId: string;
1390
1308
  tenantId: string;
1309
+ projectId: string;
1310
+ id: string;
1391
1311
  agentId: string;
1312
+ createdAt: string;
1392
1313
  subAgentId: string;
1393
1314
  artifactComponentId: string;
1394
1315
  }>;
@@ -1427,11 +1348,11 @@ declare const upsertAgentArtifactComponentRelation: (db: DatabaseClient) => (par
1427
1348
  scopes: SubAgentScopeConfig;
1428
1349
  artifactComponentId: string;
1429
1350
  }) => Promise<{
1430
- id: string;
1431
- createdAt: string;
1432
- projectId: string;
1433
1351
  tenantId: string;
1352
+ projectId: string;
1353
+ id: string;
1434
1354
  agentId: string;
1355
+ createdAt: string;
1435
1356
  subAgentId: string;
1436
1357
  artifactComponentId: string;
1437
1358
  } | null>;
@@ -1511,26 +1432,26 @@ declare const getContextConfigById: (db: DatabaseClient) => (params: {
1511
1432
  scopes: AgentScopeConfig;
1512
1433
  id: string;
1513
1434
  }) => Promise<{
1435
+ tenantId: string;
1436
+ projectId: string;
1514
1437
  id: string;
1438
+ agentId: string;
1515
1439
  createdAt: string;
1516
1440
  updatedAt: string;
1517
- projectId: string;
1518
- tenantId: string;
1519
1441
  headersSchema: unknown;
1520
1442
  contextVariables: Record<string, ContextFetchDefinition> | null;
1521
- agentId: string;
1522
1443
  } | undefined>;
1523
1444
  declare const listContextConfigs: (db: DatabaseClient) => (params: {
1524
1445
  scopes: AgentScopeConfig;
1525
1446
  }) => Promise<{
1447
+ tenantId: string;
1448
+ projectId: string;
1526
1449
  id: string;
1450
+ agentId: string;
1527
1451
  createdAt: string;
1528
1452
  updatedAt: string;
1529
- projectId: string;
1530
- tenantId: string;
1531
1453
  headersSchema: unknown;
1532
1454
  contextVariables: Record<string, ContextFetchDefinition> | null;
1533
- agentId: string;
1534
1455
  }[]>;
1535
1456
  declare const listContextConfigsPaginated: (db: DatabaseClient) => (params: {
1536
1457
  scopes: AgentScopeConfig;
@@ -1545,28 +1466,28 @@ declare const listContextConfigsPaginated: (db: DatabaseClient) => (params: {
1545
1466
  };
1546
1467
  }>;
1547
1468
  declare const createContextConfig: (db: DatabaseClient) => (params: ContextConfigInsert) => Promise<{
1469
+ tenantId: string;
1470
+ projectId: string;
1548
1471
  id: string;
1472
+ agentId: string;
1549
1473
  createdAt: string;
1550
1474
  updatedAt: string;
1551
- projectId: string;
1552
- tenantId: string;
1553
1475
  headersSchema: unknown;
1554
1476
  contextVariables: Record<string, ContextFetchDefinition> | null;
1555
- agentId: string;
1556
1477
  }>;
1557
1478
  declare const updateContextConfig: (db: DatabaseClient) => (params: {
1558
1479
  scopes: AgentScopeConfig;
1559
1480
  id: string;
1560
1481
  data: Partial<ContextConfigUpdate>;
1561
1482
  }) => Promise<{
1483
+ tenantId: string;
1484
+ projectId: string;
1562
1485
  id: string;
1486
+ agentId: string;
1563
1487
  createdAt: string;
1564
1488
  updatedAt: string;
1565
- projectId: string;
1566
- tenantId: string;
1567
1489
  headersSchema: unknown;
1568
1490
  contextVariables: Record<string, ContextFetchDefinition> | null;
1569
- agentId: string;
1570
1491
  }>;
1571
1492
  declare const deleteContextConfig: (db: DatabaseClient) => (params: {
1572
1493
  scopes: AgentScopeConfig;
@@ -1585,14 +1506,14 @@ declare const countContextConfigs: (db: DatabaseClient) => (params: {
1585
1506
  declare const upsertContextConfig: (db: DatabaseClient) => (params: {
1586
1507
  data: ContextConfigInsert;
1587
1508
  }) => Promise<{
1509
+ tenantId: string;
1510
+ projectId: string;
1588
1511
  id: string;
1512
+ agentId: string;
1589
1513
  createdAt: string;
1590
1514
  updatedAt: string;
1591
- projectId: string;
1592
- tenantId: string;
1593
1515
  headersSchema: unknown;
1594
1516
  contextVariables: Record<string, ContextFetchDefinition> | null;
1595
- agentId: string;
1596
1517
  }>;
1597
1518
 
1598
1519
  declare const listConversations: (db: DatabaseClient) => (params: {
@@ -1604,12 +1525,12 @@ declare const listConversations: (db: DatabaseClient) => (params: {
1604
1525
  total: number;
1605
1526
  }>;
1606
1527
  declare const createConversation: (db: DatabaseClient) => (params: ConversationInsert) => Promise<{
1528
+ tenantId: string;
1529
+ projectId: string;
1607
1530
  id: string;
1531
+ title: string | null;
1608
1532
  createdAt: string;
1609
1533
  updatedAt: string;
1610
- projectId: string;
1611
- tenantId: string;
1612
- title: string | null;
1613
1534
  metadata: ConversationMetadata | null;
1614
1535
  userId: string | null;
1615
1536
  activeSubAgentId: string;
@@ -1620,12 +1541,12 @@ declare const updateConversation: (db: DatabaseClient) => (params: {
1620
1541
  conversationId: string;
1621
1542
  data: ConversationUpdate;
1622
1543
  }) => Promise<{
1544
+ tenantId: string;
1545
+ projectId: string;
1623
1546
  id: string;
1547
+ title: string | null;
1624
1548
  createdAt: string;
1625
1549
  updatedAt: string;
1626
- projectId: string;
1627
- tenantId: string;
1628
- title: string | null;
1629
1550
  metadata: ConversationMetadata | null;
1630
1551
  userId: string | null;
1631
1552
  activeSubAgentId: string;
@@ -1640,12 +1561,12 @@ declare const updateConversationActiveAgent: (db: DatabaseClient) => (params: {
1640
1561
  conversationId: string;
1641
1562
  activeSubAgentId: string;
1642
1563
  }) => Promise<{
1564
+ tenantId: string;
1565
+ projectId: string;
1643
1566
  id: string;
1567
+ title: string | null;
1644
1568
  createdAt: string;
1645
1569
  updatedAt: string;
1646
- projectId: string;
1647
- tenantId: string;
1648
- title: string | null;
1649
1570
  metadata: ConversationMetadata | null;
1650
1571
  userId: string | null;
1651
1572
  activeSubAgentId: string;
@@ -1655,12 +1576,12 @@ declare const getConversation: (db: DatabaseClient) => (params: {
1655
1576
  scopes: ProjectScopeConfig;
1656
1577
  conversationId: string;
1657
1578
  }) => Promise<{
1579
+ tenantId: string;
1580
+ projectId: string;
1658
1581
  id: string;
1582
+ title: string | null;
1659
1583
  createdAt: string;
1660
1584
  updatedAt: string;
1661
- projectId: string;
1662
- tenantId: string;
1663
- title: string | null;
1664
1585
  metadata: ConversationMetadata | null;
1665
1586
  userId: string | null;
1666
1587
  activeSubAgentId: string;
@@ -1679,12 +1600,12 @@ declare const createOrGetConversation: (db: DatabaseClient) => (input: Conversat
1679
1600
  metadata?: ConversationMetadata | null | undefined;
1680
1601
  contextConfigId?: string | undefined;
1681
1602
  } | {
1603
+ tenantId: string;
1604
+ projectId: string;
1682
1605
  id: string;
1606
+ title: string | null;
1683
1607
  createdAt: string;
1684
1608
  updatedAt: string;
1685
- projectId: string;
1686
- tenantId: string;
1687
- title: string | null;
1688
1609
  metadata: ConversationMetadata | null;
1689
1610
  userId: string | null;
1690
1611
  activeSubAgentId: string;
@@ -1705,12 +1626,12 @@ declare const getActiveAgentForConversation: (db: DatabaseClient) => (params: {
1705
1626
  scopes: ProjectScopeConfig;
1706
1627
  conversationId: string;
1707
1628
  }) => Promise<{
1629
+ tenantId: string;
1630
+ projectId: string;
1708
1631
  id: string;
1632
+ title: string | null;
1709
1633
  createdAt: string;
1710
1634
  updatedAt: string;
1711
- projectId: string;
1712
- tenantId: string;
1713
- title: string | null;
1714
1635
  metadata: ConversationMetadata | null;
1715
1636
  userId: string | null;
1716
1637
  activeSubAgentId: string;
@@ -1874,11 +1795,11 @@ declare const associateDataComponentWithAgent: (db: DatabaseClient) => (params:
1874
1795
  scopes: SubAgentScopeConfig;
1875
1796
  dataComponentId: string;
1876
1797
  }) => Promise<{
1877
- id: string;
1878
- createdAt: string;
1879
- projectId: string;
1880
1798
  tenantId: string;
1799
+ projectId: string;
1800
+ id: string;
1881
1801
  agentId: string;
1802
+ createdAt: string;
1882
1803
  subAgentId: string;
1883
1804
  dataComponentId: string;
1884
1805
  }>;
@@ -1916,11 +1837,11 @@ declare const upsertAgentDataComponentRelation: (db: DatabaseClient) => (params:
1916
1837
  scopes: SubAgentScopeConfig;
1917
1838
  dataComponentId: string;
1918
1839
  }) => Promise<{
1840
+ tenantId: string;
1841
+ projectId: string;
1919
1842
  id: string;
1920
- createdAt: string;
1921
- projectId: string;
1922
- tenantId: string;
1923
1843
  agentId: string;
1844
+ createdAt: string;
1924
1845
  subAgentId: string;
1925
1846
  dataComponentId: string;
1926
1847
  } | null>;
@@ -2095,14 +2016,14 @@ declare const createFunctionTool: (db: DatabaseClient) => (params: {
2095
2016
  data: FunctionToolApiInsert;
2096
2017
  scopes: AgentScopeConfig;
2097
2018
  }) => Promise<{
2098
- name: string;
2099
- id: string;
2100
- createdAt: string;
2101
- updatedAt: string;
2102
- projectId: string;
2103
2019
  tenantId: string;
2020
+ projectId: string;
2021
+ id: string;
2022
+ name: string;
2104
2023
  description: string | null;
2105
2024
  agentId: string;
2025
+ createdAt: string;
2026
+ updatedAt: string;
2106
2027
  functionId: string;
2107
2028
  }>;
2108
2029
  /**
@@ -2113,14 +2034,14 @@ declare const updateFunctionTool: (db: DatabaseClient) => (params: {
2113
2034
  functionToolId: string;
2114
2035
  data: FunctionToolApiUpdate;
2115
2036
  }) => Promise<{
2116
- name: string;
2117
- id: string;
2118
- createdAt: string;
2119
- updatedAt: string;
2120
- projectId: string;
2121
2037
  tenantId: string;
2038
+ projectId: string;
2039
+ id: string;
2040
+ name: string;
2122
2041
  description: string | null;
2123
2042
  agentId: string;
2043
+ createdAt: string;
2044
+ updatedAt: string;
2124
2045
  functionId: string;
2125
2046
  }>;
2126
2047
  /**
@@ -2137,14 +2058,14 @@ declare const upsertFunctionTool: (db: DatabaseClient) => (params: {
2137
2058
  data: FunctionToolApiInsert;
2138
2059
  scopes: AgentScopeConfig;
2139
2060
  }) => Promise<{
2140
- name: string;
2141
- id: string;
2142
- createdAt: string;
2143
- updatedAt: string;
2144
- projectId: string;
2145
2061
  tenantId: string;
2062
+ projectId: string;
2063
+ id: string;
2064
+ name: string;
2146
2065
  description: string | null;
2147
2066
  agentId: string;
2067
+ createdAt: string;
2068
+ updatedAt: string;
2148
2069
  functionId: string;
2149
2070
  }>;
2150
2071
  declare const getFunctionToolsForSubAgent: (db: DatabaseClient) => (params: {
@@ -2301,11 +2222,11 @@ declare const getMessageById: (db: DatabaseClient) => (params: {
2301
2222
  scopes: ProjectScopeConfig;
2302
2223
  messageId: string;
2303
2224
  }) => Promise<{
2225
+ tenantId: string;
2226
+ projectId: string;
2304
2227
  id: string;
2305
2228
  createdAt: string;
2306
2229
  updatedAt: string;
2307
- projectId: string;
2308
- tenantId: string;
2309
2230
  metadata: MessageMetadata | null;
2310
2231
  content: MessageContent;
2311
2232
  conversationId: string;
@@ -2422,11 +2343,11 @@ declare const getVisibleMessages: (db: DatabaseClient) => (params: {
2422
2343
  id: string;
2423
2344
  }[]>;
2424
2345
  declare const createMessage: (db: DatabaseClient) => (params: MessageInsert) => Promise<{
2346
+ tenantId: string;
2347
+ projectId: string;
2425
2348
  id: string;
2426
2349
  createdAt: string;
2427
2350
  updatedAt: string;
2428
- projectId: string;
2429
- tenantId: string;
2430
2351
  metadata: MessageMetadata | null;
2431
2352
  content: MessageContent;
2432
2353
  conversationId: string;
@@ -2447,11 +2368,11 @@ declare const updateMessage: (db: DatabaseClient) => (params: {
2447
2368
  messageId: string;
2448
2369
  data: MessageUpdate;
2449
2370
  }) => Promise<{
2371
+ tenantId: string;
2372
+ projectId: string;
2450
2373
  id: string;
2451
2374
  createdAt: string;
2452
2375
  updatedAt: string;
2453
- projectId: string;
2454
- tenantId: string;
2455
2376
  metadata: MessageMetadata | null;
2456
2377
  content: MessageContent;
2457
2378
  conversationId: string;
@@ -2471,11 +2392,11 @@ declare const deleteMessage: (db: DatabaseClient) => (params: {
2471
2392
  scopes: ProjectScopeConfig;
2472
2393
  messageId: string;
2473
2394
  }) => Promise<{
2395
+ tenantId: string;
2396
+ projectId: string;
2474
2397
  id: string;
2475
2398
  createdAt: string;
2476
2399
  updatedAt: string;
2477
- projectId: string;
2478
- tenantId: string;
2479
2400
  metadata: MessageMetadata | null;
2480
2401
  content: MessageContent;
2481
2402
  conversationId: string;
@@ -2594,12 +2515,12 @@ declare const getAgentRelationById: (db: DatabaseClient) => (params: {
2594
2515
  scopes: AgentScopeConfig;
2595
2516
  relationId: string;
2596
2517
  }) => Promise<{
2518
+ tenantId: string;
2519
+ projectId: string;
2597
2520
  id: string;
2521
+ agentId: string;
2598
2522
  createdAt: string;
2599
2523
  updatedAt: string;
2600
- projectId: string;
2601
- tenantId: string;
2602
- agentId: string;
2603
2524
  sourceSubAgentId: string;
2604
2525
  targetSubAgentId: string | null;
2605
2526
  externalSubAgentId: string | null;
@@ -2631,12 +2552,12 @@ declare const listAgentRelations: (db: DatabaseClient) => (params: {
2631
2552
  declare const getAgentRelations: (db: DatabaseClient) => (params: {
2632
2553
  scopes: SubAgentScopeConfig;
2633
2554
  }) => Promise<{
2555
+ tenantId: string;
2556
+ projectId: string;
2634
2557
  id: string;
2558
+ agentId: string;
2635
2559
  createdAt: string;
2636
2560
  updatedAt: string;
2637
- projectId: string;
2638
- tenantId: string;
2639
- agentId: string;
2640
2561
  sourceSubAgentId: string;
2641
2562
  targetSubAgentId: string | null;
2642
2563
  externalSubAgentId: string | null;
@@ -2645,12 +2566,12 @@ declare const getAgentRelations: (db: DatabaseClient) => (params: {
2645
2566
  declare const getAgentRelationsByAgent: (db: DatabaseClient) => (params: {
2646
2567
  scopes: AgentScopeConfig;
2647
2568
  }) => Promise<{
2569
+ tenantId: string;
2570
+ projectId: string;
2648
2571
  id: string;
2572
+ agentId: string;
2649
2573
  createdAt: string;
2650
2574
  updatedAt: string;
2651
- projectId: string;
2652
- tenantId: string;
2653
- agentId: string;
2654
2575
  sourceSubAgentId: string;
2655
2576
  targetSubAgentId: string | null;
2656
2577
  externalSubAgentId: string | null;
@@ -2750,12 +2671,12 @@ declare const getRelatedAgentsForAgent: (db: DatabaseClient) => (params: {
2750
2671
  }[];
2751
2672
  }>;
2752
2673
  declare const createSubAgentRelation: (db: DatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
2674
+ tenantId: string;
2675
+ projectId: string;
2753
2676
  id: string;
2677
+ agentId: string;
2754
2678
  createdAt: string;
2755
2679
  updatedAt: string;
2756
- projectId: string;
2757
- tenantId: string;
2758
- agentId: string;
2759
2680
  sourceSubAgentId: string;
2760
2681
  targetSubAgentId: string | null;
2761
2682
  externalSubAgentId: string | null;
@@ -2771,12 +2692,12 @@ declare const getAgentRelationByParams: (db: DatabaseClient) => (params: {
2771
2692
  externalSubAgentId?: string;
2772
2693
  relationType: string;
2773
2694
  }) => Promise<{
2695
+ tenantId: string;
2696
+ projectId: string;
2774
2697
  id: string;
2698
+ agentId: string;
2775
2699
  createdAt: string;
2776
2700
  updatedAt: string;
2777
- projectId: string;
2778
- tenantId: string;
2779
- agentId: string;
2780
2701
  sourceSubAgentId: string;
2781
2702
  targetSubAgentId: string | null;
2782
2703
  externalSubAgentId: string | null;
@@ -2786,24 +2707,24 @@ declare const getAgentRelationByParams: (db: DatabaseClient) => (params: {
2786
2707
  * Upsert agent relation (create if it doesn't exist, no-op if it does)
2787
2708
  */
2788
2709
  declare const upsertSubAgentRelation: (db: DatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
2710
+ tenantId: string;
2711
+ projectId: string;
2789
2712
  id: string;
2713
+ agentId: string;
2790
2714
  createdAt: string;
2791
2715
  updatedAt: string;
2792
- projectId: string;
2793
- tenantId: string;
2794
- agentId: string;
2795
2716
  sourceSubAgentId: string;
2796
2717
  targetSubAgentId: string | null;
2797
2718
  externalSubAgentId: string | null;
2798
2719
  relationType: string | null;
2799
2720
  }>;
2800
2721
  declare const createExternalAgentRelation: (db: DatabaseClient) => (params: ExternalSubAgentRelationInsert) => Promise<{
2722
+ tenantId: string;
2723
+ projectId: string;
2801
2724
  id: string;
2725
+ agentId: string;
2802
2726
  createdAt: string;
2803
2727
  updatedAt: string;
2804
- projectId: string;
2805
- tenantId: string;
2806
- agentId: string;
2807
2728
  sourceSubAgentId: string;
2808
2729
  targetSubAgentId: string | null;
2809
2730
  externalSubAgentId: string | null;
@@ -2814,12 +2735,12 @@ declare const updateAgentRelation: (db: DatabaseClient) => (params: {
2814
2735
  relationId: string;
2815
2736
  data: SubAgentRelationUpdate;
2816
2737
  }) => Promise<{
2738
+ tenantId: string;
2739
+ projectId: string;
2817
2740
  id: string;
2741
+ agentId: string;
2818
2742
  createdAt: string;
2819
2743
  updatedAt: string;
2820
- projectId: string;
2821
- tenantId: string;
2822
- agentId: string;
2823
2744
  sourceSubAgentId: string;
2824
2745
  targetSubAgentId: string | null;
2825
2746
  externalSubAgentId: string | null;
@@ -2842,32 +2763,32 @@ declare const createAgentToolRelation: (db: DatabaseClient) => (params: {
2842
2763
  headers?: Record<string, string> | null;
2843
2764
  };
2844
2765
  }) => Promise<{
2845
- headers: Record<string, string> | null;
2766
+ tenantId: string;
2767
+ projectId: string;
2846
2768
  id: string;
2769
+ agentId: string;
2847
2770
  createdAt: string;
2848
2771
  updatedAt: string;
2849
- projectId: string;
2850
- tenantId: string;
2851
- agentId: string;
2772
+ headers: Record<string, string> | null;
2773
+ toolId: string;
2852
2774
  selectedTools: string[] | null;
2853
2775
  subAgentId: string;
2854
- toolId: string;
2855
2776
  }>;
2856
2777
  declare const updateAgentToolRelation: (db: DatabaseClient) => (params: {
2857
2778
  scopes: AgentScopeConfig;
2858
2779
  relationId: string;
2859
2780
  data: SubAgentToolRelationUpdate;
2860
2781
  }) => Promise<{
2861
- headers: Record<string, string> | null;
2782
+ tenantId: string;
2783
+ projectId: string;
2862
2784
  id: string;
2785
+ agentId: string;
2863
2786
  createdAt: string;
2864
2787
  updatedAt: string;
2865
- projectId: string;
2866
- tenantId: string;
2867
- agentId: string;
2788
+ headers: Record<string, string> | null;
2789
+ toolId: string;
2868
2790
  selectedTools: string[] | null;
2869
2791
  subAgentId: string;
2870
- toolId: string;
2871
2792
  }>;
2872
2793
  declare const deleteAgentToolRelation: (db: DatabaseClient) => (params: {
2873
2794
  scopes: AgentScopeConfig;
@@ -2880,16 +2801,16 @@ declare const getAgentToolRelationById: (db: DatabaseClient) => (params: {
2880
2801
  scopes: SubAgentScopeConfig;
2881
2802
  relationId: string;
2882
2803
  }) => Promise<{
2883
- headers: Record<string, string> | null;
2804
+ tenantId: string;
2805
+ projectId: string;
2884
2806
  id: string;
2807
+ agentId: string;
2885
2808
  createdAt: string;
2886
2809
  updatedAt: string;
2887
- projectId: string;
2888
- tenantId: string;
2889
- agentId: string;
2810
+ headers: Record<string, string> | null;
2811
+ toolId: string;
2890
2812
  selectedTools: string[] | null;
2891
2813
  subAgentId: string;
2892
- toolId: string;
2893
2814
  } | undefined>;
2894
2815
  declare const getAgentToolRelationByAgent: (db: DatabaseClient) => (params: {
2895
2816
  scopes: SubAgentScopeConfig;
@@ -3059,13 +2980,15 @@ declare const getSubAgentById: (db: DatabaseClient) => (params: {
3059
2980
  scopes: AgentScopeConfig;
3060
2981
  subAgentId: string;
3061
2982
  }) => Promise<{
3062
- name: string;
2983
+ tenantId: string;
2984
+ projectId: string;
3063
2985
  id: string;
2986
+ name: string;
2987
+ description: string;
2988
+ prompt: string;
2989
+ agentId: string;
3064
2990
  createdAt: string;
3065
2991
  updatedAt: string;
3066
- projectId: string;
3067
- tenantId: string;
3068
- description: string;
3069
2992
  models: {
3070
2993
  base?: {
3071
2994
  model?: string | undefined;
@@ -3083,20 +3006,20 @@ declare const getSubAgentById: (db: DatabaseClient) => (params: {
3083
3006
  stopWhen: {
3084
3007
  stepCountIs?: number | undefined;
3085
3008
  } | null;
3086
- agentId: string;
3087
- prompt: string;
3088
3009
  conversationHistoryConfig: ConversationHistoryConfig | null;
3089
3010
  } | undefined>;
3090
3011
  declare const listSubAgents: (db: DatabaseClient) => (params: {
3091
3012
  scopes: AgentScopeConfig;
3092
3013
  }) => Promise<{
3093
- name: string;
3014
+ tenantId: string;
3015
+ projectId: string;
3094
3016
  id: string;
3017
+ name: string;
3018
+ description: string;
3019
+ prompt: string;
3020
+ agentId: string;
3095
3021
  createdAt: string;
3096
3022
  updatedAt: string;
3097
- projectId: string;
3098
- tenantId: string;
3099
- description: string;
3100
3023
  models: {
3101
3024
  base?: {
3102
3025
  model?: string | undefined;
@@ -3114,8 +3037,6 @@ declare const listSubAgents: (db: DatabaseClient) => (params: {
3114
3037
  stopWhen: {
3115
3038
  stepCountIs?: number | undefined;
3116
3039
  } | null;
3117
- agentId: string;
3118
- prompt: string;
3119
3040
  conversationHistoryConfig: ConversationHistoryConfig | null;
3120
3041
  }[]>;
3121
3042
  declare const listSubAgentsPaginated: (db: DatabaseClient) => (params: {
@@ -3159,13 +3080,15 @@ declare const listSubAgentsPaginated: (db: DatabaseClient) => (params: {
3159
3080
  };
3160
3081
  }>;
3161
3082
  declare const createSubAgent: (db: DatabaseClient) => (params: SubAgentInsert) => Promise<{
3162
- name: string;
3083
+ tenantId: string;
3084
+ projectId: string;
3163
3085
  id: string;
3086
+ name: string;
3087
+ description: string;
3088
+ prompt: string;
3089
+ agentId: string;
3164
3090
  createdAt: string;
3165
3091
  updatedAt: string;
3166
- projectId: string;
3167
- tenantId: string;
3168
- description: string;
3169
3092
  models: {
3170
3093
  base?: {
3171
3094
  model?: string | undefined;
@@ -3183,8 +3106,6 @@ declare const createSubAgent: (db: DatabaseClient) => (params: SubAgentInsert) =
3183
3106
  stopWhen: {
3184
3107
  stepCountIs?: number | undefined;
3185
3108
  } | null;
3186
- agentId: string;
3187
- prompt: string;
3188
3109
  conversationHistoryConfig: ConversationHistoryConfig | null;
3189
3110
  }>;
3190
3111
  declare const updateSubAgent: (db: DatabaseClient) => (params: {
@@ -3192,13 +3113,15 @@ declare const updateSubAgent: (db: DatabaseClient) => (params: {
3192
3113
  subAgentId: string;
3193
3114
  data: SubAgentUpdate;
3194
3115
  }) => Promise<{
3195
- name: string;
3116
+ tenantId: string;
3117
+ projectId: string;
3196
3118
  id: string;
3119
+ name: string;
3120
+ description: string;
3121
+ prompt: string;
3122
+ agentId: string;
3197
3123
  createdAt: string;
3198
3124
  updatedAt: string;
3199
- projectId: string;
3200
- tenantId: string;
3201
- description: string;
3202
3125
  models: {
3203
3126
  base?: {
3204
3127
  model?: string | undefined;
@@ -3216,8 +3139,6 @@ declare const updateSubAgent: (db: DatabaseClient) => (params: {
3216
3139
  stopWhen: {
3217
3140
  stepCountIs?: number | undefined;
3218
3141
  } | null;
3219
- agentId: string;
3220
- prompt: string;
3221
3142
  conversationHistoryConfig: ConversationHistoryConfig | null;
3222
3143
  }>;
3223
3144
  /**
@@ -3264,12 +3185,12 @@ declare const getSubAgentsByIds: (db: DatabaseClient) => (params: {
3264
3185
  }[]>;
3265
3186
 
3266
3187
  declare const createTask: (db: DatabaseClient) => (params: TaskInsert) => Promise<{
3188
+ tenantId: string;
3189
+ projectId: string;
3267
3190
  id: string;
3191
+ agentId: string;
3268
3192
  createdAt: string;
3269
3193
  updatedAt: string;
3270
- projectId: string;
3271
- tenantId: string;
3272
- agentId: string;
3273
3194
  status: string;
3274
3195
  metadata: TaskMetadataConfig | null;
3275
3196
  contextId: string;
@@ -3285,12 +3206,12 @@ declare const updateTask: (db: DatabaseClient) => (params: {
3285
3206
  metadata?: any;
3286
3207
  };
3287
3208
  }) => Promise<{
3209
+ tenantId: string;
3210
+ projectId: string;
3288
3211
  id: string;
3212
+ agentId: string;
3289
3213
  createdAt: string;
3290
3214
  updatedAt: string;
3291
- projectId: string;
3292
- tenantId: string;
3293
- agentId: string;
3294
3215
  status: string;
3295
3216
  metadata: TaskMetadataConfig | null;
3296
3217
  contextId: string;
@@ -3305,20 +3226,20 @@ declare const getToolById: (db: DatabaseClient) => (params: {
3305
3226
  scopes: ProjectScopeConfig;
3306
3227
  toolId: string;
3307
3228
  }) => Promise<{
3308
- name: string;
3309
- headers: Record<string, string> | null;
3310
- id: string;
3311
- createdAt: string;
3312
- updatedAt: string;
3313
- projectId: string;
3314
3229
  tenantId: string;
3230
+ projectId: string;
3231
+ id: string;
3232
+ name: string;
3315
3233
  description: string | null;
3316
- credentialReferenceId: string | null;
3317
- capabilities: ToolServerCapabilities | null;
3318
3234
  config: {
3319
3235
  type: "mcp";
3320
3236
  mcp: ToolMcpConfig;
3321
3237
  };
3238
+ credentialReferenceId: string | null;
3239
+ createdAt: string;
3240
+ updatedAt: string;
3241
+ headers: Record<string, string> | null;
3242
+ capabilities: ToolServerCapabilities | null;
3322
3243
  imageUrl: string | null;
3323
3244
  lastError: string | null;
3324
3245
  } | null>;
@@ -3352,20 +3273,20 @@ declare const listTools: (db: DatabaseClient) => (params: {
3352
3273
  };
3353
3274
  }>;
3354
3275
  declare const createTool: (db: DatabaseClient) => (params: ToolInsert) => Promise<{
3355
- name: string;
3356
- headers: Record<string, string> | null;
3357
- id: string;
3358
- createdAt: string;
3359
- updatedAt: string;
3360
- projectId: string;
3361
3276
  tenantId: string;
3277
+ projectId: string;
3278
+ id: string;
3279
+ name: string;
3362
3280
  description: string | null;
3363
- credentialReferenceId: string | null;
3364
- capabilities: ToolServerCapabilities | null;
3365
3281
  config: {
3366
3282
  type: "mcp";
3367
3283
  mcp: ToolMcpConfig;
3368
3284
  };
3285
+ credentialReferenceId: string | null;
3286
+ createdAt: string;
3287
+ updatedAt: string;
3288
+ headers: Record<string, string> | null;
3289
+ capabilities: ToolServerCapabilities | null;
3369
3290
  imageUrl: string | null;
3370
3291
  lastError: string | null;
3371
3292
  }>;
@@ -3374,20 +3295,20 @@ declare const updateTool: (db: DatabaseClient) => (params: {
3374
3295
  toolId: string;
3375
3296
  data: ToolUpdate;
3376
3297
  }) => Promise<{
3377
- name: string;
3378
- headers: Record<string, string> | null;
3379
- id: string;
3380
- createdAt: string;
3381
- updatedAt: string;
3382
- projectId: string;
3383
3298
  tenantId: string;
3299
+ projectId: string;
3300
+ id: string;
3301
+ name: string;
3384
3302
  description: string | null;
3385
- credentialReferenceId: string | null;
3386
- capabilities: ToolServerCapabilities | null;
3387
3303
  config: {
3388
3304
  type: "mcp";
3389
3305
  mcp: ToolMcpConfig;
3390
3306
  };
3307
+ credentialReferenceId: string | null;
3308
+ createdAt: string;
3309
+ updatedAt: string;
3310
+ headers: Record<string, string> | null;
3311
+ capabilities: ToolServerCapabilities | null;
3391
3312
  imageUrl: string | null;
3392
3313
  lastError: string | null;
3393
3314
  }>;
@@ -3402,32 +3323,32 @@ declare const addToolToAgent: (db: DatabaseClient) => (params: {
3402
3323
  selectedTools?: string[] | null;
3403
3324
  headers?: Record<string, string> | null;
3404
3325
  }) => Promise<{
3405
- headers: Record<string, string> | null;
3326
+ tenantId: string;
3327
+ projectId: string;
3406
3328
  id: string;
3329
+ agentId: string;
3407
3330
  createdAt: string;
3408
3331
  updatedAt: string;
3409
- projectId: string;
3410
- tenantId: string;
3411
- agentId: string;
3332
+ headers: Record<string, string> | null;
3333
+ toolId: string;
3412
3334
  selectedTools: string[] | null;
3413
3335
  subAgentId: string;
3414
- toolId: string;
3415
3336
  }>;
3416
3337
  declare const removeToolFromAgent: (db: DatabaseClient) => (params: {
3417
3338
  scopes: AgentScopeConfig;
3418
3339
  subAgentId: string;
3419
3340
  toolId: string;
3420
3341
  }) => Promise<{
3421
- headers: Record<string, string> | null;
3342
+ tenantId: string;
3343
+ projectId: string;
3422
3344
  id: string;
3345
+ agentId: string;
3423
3346
  createdAt: string;
3424
3347
  updatedAt: string;
3425
- projectId: string;
3426
- tenantId: string;
3427
- agentId: string;
3348
+ headers: Record<string, string> | null;
3349
+ toolId: string;
3428
3350
  selectedTools: string[] | null;
3429
3351
  subAgentId: string;
3430
- toolId: string;
3431
3352
  }>;
3432
3353
  /**
3433
3354
  * Upsert agent-tool relation (create if it doesn't exist, update if it does)
@@ -3440,16 +3361,16 @@ declare const upsertSubAgentToolRelation: (db: DatabaseClient) => (params: {
3440
3361
  headers?: Record<string, string> | null;
3441
3362
  relationId?: string;
3442
3363
  }) => Promise<{
3443
- headers: Record<string, string> | null;
3364
+ tenantId: string;
3365
+ projectId: string;
3444
3366
  id: string;
3367
+ agentId: string;
3445
3368
  createdAt: string;
3446
3369
  updatedAt: string;
3447
- projectId: string;
3448
- tenantId: string;
3449
- agentId: string;
3370
+ headers: Record<string, string> | null;
3371
+ toolId: string;
3450
3372
  selectedTools: string[] | null;
3451
3373
  subAgentId: string;
3452
- toolId: string;
3453
3374
  }>;
3454
3375
  /**
3455
3376
  * Upsert a tool (create if it doesn't exist, update if it does)
@@ -3457,20 +3378,20 @@ declare const upsertSubAgentToolRelation: (db: DatabaseClient) => (params: {
3457
3378
  declare const upsertTool: (db: DatabaseClient) => (params: {
3458
3379
  data: ToolInsert;
3459
3380
  }) => Promise<{
3460
- name: string;
3461
- headers: Record<string, string> | null;
3462
- id: string;
3463
- createdAt: string;
3464
- updatedAt: string;
3465
- projectId: string;
3466
3381
  tenantId: string;
3382
+ projectId: string;
3383
+ id: string;
3384
+ name: string;
3467
3385
  description: string | null;
3468
- credentialReferenceId: string | null;
3469
- capabilities: ToolServerCapabilities | null;
3470
3386
  config: {
3471
3387
  type: "mcp";
3472
3388
  mcp: ToolMcpConfig;
3473
3389
  };
3390
+ credentialReferenceId: string | null;
3391
+ createdAt: string;
3392
+ updatedAt: string;
3393
+ headers: Record<string, string> | null;
3394
+ capabilities: ToolServerCapabilities | null;
3474
3395
  imageUrl: string | null;
3475
3396
  lastError: string | null;
3476
3397
  }>;
@@ -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, type LoggerFactoryConfig, MCPToolConfig, MCPTransportType, McpClient, type McpClientOptions, type McpSSEConfig, type McpServerConfig, type McpStreamableHttpConfig, McpTool, MessageContent, MessageInsert, MessageMetadata, MessageUpdate, MessageVisibility, NangoCredentialStore, type OAuthConfig, PaginationConfig, PaginationResult, type ParsedHttpRequest, PinoLogger, type PinoLoggerConfig, type ProblemDetails, ProjectInfo, ProjectInsert, type ProjectLogger, ProjectResourceCounts, ProjectScopeConfig, ProjectSelect, ProjectUpdate, type ResolvedContext, SubAgentInsert, SubAgentRelationInsert, SubAgentRelationUpdate, 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, detectAuthenticationRequired, determineContextTrigger, discoverOAuthEndpoints, 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, loggerFactory, 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 };
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 };