@inkeep/agents-core 0.25.0 → 0.26.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -426,9 +426,8 @@ declare function exchangeMcpAuthorizationCode({ mcpServerUrl, metadata, clientIn
426
426
  * Detect if MCP OAuth authentication is specifically required for a tool
427
427
  * Uses proper MCP OAuth specification discovery methods
428
428
  */
429
- declare const detectAuthenticationRequired: ({ serverUrl, toolId, error, logger, }: {
429
+ declare const detectAuthenticationRequired: ({ serverUrl, error, logger, }: {
430
430
  serverUrl: string;
431
- toolId: string;
432
431
  error?: Error;
433
432
  logger?: PinoLogger;
434
433
  }) => Promise<boolean>;
@@ -426,9 +426,8 @@ declare function exchangeMcpAuthorizationCode({ mcpServerUrl, metadata, clientIn
426
426
  * Detect if MCP OAuth authentication is specifically required for a tool
427
427
  * Uses proper MCP OAuth specification discovery methods
428
428
  */
429
- declare const detectAuthenticationRequired: ({ serverUrl, toolId, error, logger, }: {
429
+ declare const detectAuthenticationRequired: ({ serverUrl, error, logger, }: {
430
430
  serverUrl: string;
431
- toolId: string;
432
431
  error?: Error;
433
432
  logger?: PinoLogger;
434
433
  }) => Promise<boolean>;
@@ -423,21 +423,20 @@ async function exchangeMcpAuthorizationCode({
423
423
  }
424
424
  var detectAuthenticationRequired = async ({
425
425
  serverUrl,
426
- toolId,
427
426
  error,
428
427
  logger
429
428
  }) => {
430
429
  try {
431
430
  const discoveryResult = await discoverMcpMetadata(serverUrl, logger);
432
431
  if (discoveryResult.success && discoveryResult.metadata) {
433
- logger?.info({ toolId, serverUrl }, "MCP OAuth support confirmed via metadata discovery");
432
+ logger?.info({ serverUrl }, "MCP OAuth support confirmed via metadata discovery");
434
433
  return true;
435
434
  }
436
435
  } catch (discoveryError) {
437
- logger?.debug({ toolId, discoveryError }, "MCP OAuth metadata discovery failed");
436
+ logger?.debug({ discoveryError }, "MCP OAuth metadata discovery failed");
438
437
  }
439
438
  logger?.debug(
440
- { toolId, error: error?.message },
439
+ { error: error?.message },
441
440
  "No MCP OAuth authentication requirement detected"
442
441
  );
443
442
  return false;
@@ -2113,21 +2113,20 @@ async function discoverMcpMetadata(mcpServerUrl, logger) {
2113
2113
  }
2114
2114
  var detectAuthenticationRequired = async ({
2115
2115
  serverUrl,
2116
- toolId,
2117
2116
  error,
2118
2117
  logger
2119
2118
  }) => {
2120
2119
  try {
2121
2120
  const discoveryResult = await discoverMcpMetadata(serverUrl, logger);
2122
2121
  if (discoveryResult.success && discoveryResult.metadata) {
2123
- logger?.info({ toolId, serverUrl }, "MCP OAuth support confirmed via metadata discovery");
2122
+ logger?.info({ serverUrl }, "MCP OAuth support confirmed via metadata discovery");
2124
2123
  return true;
2125
2124
  }
2126
2125
  } catch (discoveryError) {
2127
- logger?.debug({ toolId, discoveryError }, "MCP OAuth metadata discovery failed");
2126
+ logger?.debug({ discoveryError }, "MCP OAuth metadata discovery failed");
2128
2127
  }
2129
2128
  logger?.debug(
2130
- { toolId, error: error?.message },
2129
+ { error: error?.message },
2131
2130
  "No MCP OAuth authentication requirement detected"
2132
2131
  );
2133
2132
  return false;
@@ -1,4 +1,4 @@
1
- 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, O as OPERATORS, m as ORDER_DIRECTIONS, P as PANEL_TYPES, q as QUERY_DEFAULTS, l as QUERY_EXPRESSIONS, Q as QUERY_FIELD_CONFIGS, n as QUERY_TYPES, R as REDUCE_OPERATIONS, 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 } from './auth-detection-BO8bSpe4.cjs';
1
+ 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, O as OPERATORS, m as ORDER_DIRECTIONS, P as PANEL_TYPES, q as QUERY_DEFAULTS, l as QUERY_EXPRESSIONS, Q as QUERY_FIELD_CONFIGS, n as QUERY_TYPES, R as REDUCE_OPERATIONS, 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 } from './auth-detection-DN8jWUDE.cjs';
2
2
  import { z } from 'zod';
3
3
  import { C as ConversationHistoryConfig, F as FunctionApiInsertSchema, A as ApiKeyApiUpdateSchema, a as FullAgentAgentInsertSchema } from './utility-CWjvUL4k.cjs';
4
4
  export { e as AgentStopWhen, b as AgentStopWhenSchema, h as CredentialStoreType, j as FunctionApiSelectSchema, k as FunctionApiUpdateSchema, i as MCPTransportType, g as ModelSettings, M as ModelSettingsSchema, d as StopWhen, S as StopWhenSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema } from './utility-CWjvUL4k.cjs';
@@ -1,4 +1,4 @@
1
- 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, O as OPERATORS, m as ORDER_DIRECTIONS, P as PANEL_TYPES, q as QUERY_DEFAULTS, l as QUERY_EXPRESSIONS, Q as QUERY_FIELD_CONFIGS, n as QUERY_TYPES, R as REDUCE_OPERATIONS, 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 } from './auth-detection-BO8bSpe4.js';
1
+ 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, O as OPERATORS, m as ORDER_DIRECTIONS, P as PANEL_TYPES, q as QUERY_DEFAULTS, l as QUERY_EXPRESSIONS, Q as QUERY_FIELD_CONFIGS, n as QUERY_TYPES, R as REDUCE_OPERATIONS, 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 } from './auth-detection-DN8jWUDE.js';
2
2
  import { z } from 'zod';
3
3
  import { C as ConversationHistoryConfig, F as FunctionApiInsertSchema, A as ApiKeyApiUpdateSchema, a as FullAgentAgentInsertSchema } from './utility-CWjvUL4k.js';
4
4
  export { e as AgentStopWhen, b as AgentStopWhenSchema, h as CredentialStoreType, j as FunctionApiSelectSchema, k as FunctionApiUpdateSchema, i as MCPTransportType, g as ModelSettings, M as ModelSettingsSchema, d as StopWhen, S as StopWhenSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema } from './utility-CWjvUL4k.js';
@@ -1,4 +1,4 @@
1
- export { ACTIVITY_NAMES, ACTIVITY_STATUS, ACTIVITY_TYPES, AGENT_IDS, AGGREGATE_OPERATORS, AI_OPERATIONS, AI_TOOL_TYPES, DATA_SOURCES, DATA_TYPES, DELEGATION_FROM_SUB_AGENT_ID, DELEGATION_ID, DELEGATION_TO_SUB_AGENT_ID, FIELD_TYPES, OPERATORS, ORDER_DIRECTIONS, PANEL_TYPES, QUERY_DEFAULTS, QUERY_EXPRESSIONS, QUERY_FIELD_CONFIGS, QUERY_TYPES, REDUCE_OPERATIONS, SPAN_KEYS, SPAN_NAMES, TRANSFER_FROM_SUB_AGENT_ID, TRANSFER_TO_SUB_AGENT_ID, UNKNOWN_VALUE, detectAuthenticationRequired } from './chunk-NJZ3ICNP.js';
1
+ export { ACTIVITY_NAMES, ACTIVITY_STATUS, ACTIVITY_TYPES, AGENT_IDS, AGGREGATE_OPERATORS, AI_OPERATIONS, AI_TOOL_TYPES, DATA_SOURCES, DATA_TYPES, DELEGATION_FROM_SUB_AGENT_ID, DELEGATION_ID, DELEGATION_TO_SUB_AGENT_ID, FIELD_TYPES, OPERATORS, ORDER_DIRECTIONS, PANEL_TYPES, QUERY_DEFAULTS, QUERY_EXPRESSIONS, QUERY_FIELD_CONFIGS, QUERY_TYPES, REDUCE_OPERATIONS, SPAN_KEYS, SPAN_NAMES, TRANSFER_FROM_SUB_AGENT_ID, TRANSFER_TO_SUB_AGENT_ID, UNKNOWN_VALUE, detectAuthenticationRequired } from './chunk-CK2M5I4Q.js';
2
2
  import { ModelSettingsSchema, FullAgentAgentInsertSchema, ArtifactComponentApiInsertSchema } from './chunk-NXC2HZQL.js';
3
3
  export { AgentStopWhenSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, ModelSettingsSchema, StopWhenSchema, SubAgentStopWhenSchema, validatePropsAsJsonSchema } from './chunk-NXC2HZQL.js';
4
4
  import { CredentialStoreType } from './chunk-YFHT5M2R.js';
package/dist/index.cjs CHANGED
@@ -217595,21 +217595,20 @@ async function exchangeMcpAuthorizationCode({
217595
217595
  }
217596
217596
  var detectAuthenticationRequired = async ({
217597
217597
  serverUrl,
217598
- toolId,
217599
217598
  error,
217600
217599
  logger: logger14
217601
217600
  }) => {
217602
217601
  try {
217603
217602
  const discoveryResult = await discoverMcpMetadata(serverUrl, logger14);
217604
217603
  if (discoveryResult.success && discoveryResult.metadata) {
217605
- logger14?.info({ toolId, serverUrl }, "MCP OAuth support confirmed via metadata discovery");
217604
+ logger14?.info({ serverUrl }, "MCP OAuth support confirmed via metadata discovery");
217606
217605
  return true;
217607
217606
  }
217608
217607
  } catch (discoveryError) {
217609
- logger14?.debug({ toolId, discoveryError }, "MCP OAuth metadata discovery failed");
217608
+ logger14?.debug({ discoveryError }, "MCP OAuth metadata discovery failed");
217610
217609
  }
217611
217610
  logger14?.debug(
217612
- { toolId, error: error?.message },
217611
+ { error: error?.message },
217613
217612
  "No MCP OAuth authentication requirement detected"
217614
217613
  );
217615
217614
  return false;
@@ -218443,7 +218442,6 @@ var dbResultToMcpTool = async (dbResult, dbClient, credentialStoreRegistry) => {
218443
218442
  } catch (error) {
218444
218443
  const toolNeedsAuth = error instanceof Error && await detectAuthenticationRequired({
218445
218444
  serverUrl: dbResult.config.mcp.server.url,
218446
- toolId: dbResult.id,
218447
218445
  error,
218448
218446
  logger: logger7
218449
218447
  });
package/dist/index.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  export { ANTHROPIC_MODELS, AnthropicModel, GOOGLE_MODELS, GoogleModel, ModelName, OPENAI_MODELS, OpenAIModel } from './constants/models.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';
2
+ import { r as PinoLogger, s as getLogger } from './auth-detection-DN8jWUDE.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-DN8jWUDE.cjs';
4
4
  import { z } from 'zod';
5
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 ExternalAgentSelect, $ as CredentialReferenceInsert, a0 as CredentialReferenceUpdate, a1 as DataComponentSelect, a2 as DataComponentInsert, a3 as DataComponentUpdate, a4 as ExternalAgentInsert, 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 SubAgentExternalAgentRelationInsert, am as SubAgentRelationInsert, 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-CWjvUL4k.cjs';
6
6
  export { b9 as A2AError, bF as A2ARequest, bG as A2AResponse, aK as APIKeySecurityScheme, bU as AgentApiInsert, e0 as AgentApiInsertSchema, bT as AgentApiSelect, d$ as AgentApiSelectSchema, bV as AgentApiUpdate, e1 as AgentApiUpdateSchema, aG as AgentCapabilities, aU as AgentCard, dr as AgentConversationHistoryConfig, dZ as AgentInsertSchema, gu as AgentListResponse, aH as AgentProvider, ge as AgentResponse, dY as AgentSelectSchema, aI as AgentSkill, e as AgentStopWhen, b as AgentStopWhenSchema, d_ as AgentUpdateSchema, f_ as AgentWithinContextOfProjectSchema, f4 as AllAgentSchema, cO as AllAgentSelect, cS as ApiKeyApiCreationResponse, f9 as ApiKeyApiCreationResponseSchema, cQ as ApiKeyApiInsert, fa as ApiKeyApiInsertSchema, cP as ApiKeyApiSelect, f8 as ApiKeyApiSelectSchema, cR as ApiKeyApiUpdate, A as ApiKeyApiUpdateSchema, f6 as ApiKeyInsertSchema, gy as ApiKeyListResponse, gi as ApiKeyResponse, f5 as ApiKeySelectSchema, f7 as ApiKeyUpdateSchema, cD as ArtifactComponentApiInsert, eS as ArtifactComponentApiInsertSchema, cC as ArtifactComponentApiSelect, eR as ArtifactComponentApiSelectSchema, cE as ArtifactComponentApiUpdate, eT as ArtifactComponentApiUpdateSchema, eP as ArtifactComponentInsertSchema, gD as ArtifactComponentListResponse, gn as ArtifactComponentResponse, eO as ArtifactComponentSelectSchema, eQ as ArtifactComponentUpdateSchema, aN as AuthorizationCodeOAuthFlow, da as CanDelegateToExternalAgent, d9 as CanUseItem, fY as CanUseItemSchema, bp as CancelTaskRequest, bA as CancelTaskResponse, bz as CancelTaskSuccessResponse, aO as ClientCredentialsOAuthFlow, b7 as ContentTypeNotSupportedError, cr as ContextCacheApiInsert, ez as ContextCacheApiInsertSchema, cq as ContextCacheApiSelect, ey as ContextCacheApiSelectSchema, cs as ContextCacheApiUpdate, eA as ContextCacheApiUpdateSchema, ds as ContextCacheEntry, ew as ContextCacheInsertSchema, ev as ContextCacheSelectSchema, cp as ContextCacheUpdate, ex as ContextCacheUpdateSchema, cl as ContextConfigApiInsert, fC as ContextConfigApiInsertSchema, ck as ContextConfigApiSelect, fB as ContextConfigApiSelectSchema, cm as ContextConfigApiUpdate, fD as ContextConfigApiUpdateSchema, fz as ContextConfigInsertSchema, gx as ContextConfigListResponse, gh as ContextConfigResponse, fy as ContextConfigSelectSchema, fA as ContextConfigUpdateSchema, ce as ConversationApiInsert, en as ConversationApiInsertSchema, cd as ConversationApiSelect, em as ConversationApiSelectSchema, cf as ConversationApiUpdate, eo as ConversationApiUpdateSchema, ek as ConversationInsertSchema, gG as ConversationListResponse, gq as ConversationResponse, dq as ConversationScopeOptions, ej as ConversationSelectSchema, el as ConversationUpdateSchema, ff as CredentialReferenceApiInsertSchema, cT as CredentialReferenceApiSelect, fe as CredentialReferenceApiSelectSchema, cU as CredentialReferenceApiUpdate, fg as CredentialReferenceApiUpdateSchema, fc as CredentialReferenceInsertSchema, gz as CredentialReferenceListResponse, gj as CredentialReferenceResponse, fb as CredentialReferenceSelectSchema, fd as CredentialReferenceUpdateSchema, cu as DataComponentApiInsert, eG as DataComponentApiInsertSchema, ct as DataComponentApiSelect, eF as DataComponentApiSelectSchema, cv as DataComponentApiUpdate, eH as DataComponentApiUpdateSchema, eD as DataComponentBaseSchema, eC as DataComponentInsertSchema, gC as DataComponentListResponse, gm as DataComponentResponse, eB as DataComponentSelectSchema, eE as DataComponentUpdateSchema, aE as DataPart, g2 as ErrorResponseSchema, g3 as ExistsResponseSchema, cM as ExternalAgentApiInsert, f2 as ExternalAgentApiInsertSchema, cL as ExternalAgentApiSelect, f1 as ExternalAgentApiSelectSchema, cN as ExternalAgentApiUpdate, f3 as ExternalAgentApiUpdateSchema, e$ as ExternalAgentInsertSchema, gw as ExternalAgentListResponse, gg as ExternalAgentResponse, e_ as ExternalAgentSelectSchema, f0 as ExternalAgentUpdateSchema, bS as ExternalSubAgentRelationApiInsert, dX as ExternalSubAgentRelationApiInsertSchema, bR as ExternalSubAgentRelationInsert, dW as ExternalSubAgentRelationInsertSchema, co as FetchConfig, fw as FetchConfigSchema, cn as FetchDefinition, fx as FetchDefinitionSchema, aA as FileBase, aD as FilePart, aB as FileWithBytes, aC as FileWithUri, d8 as FullAgentAgentInsert, a as FullAgentAgentInsertSchema, gb as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, ca as FunctionApiSelect, j as FunctionApiSelectSchema, cb as FunctionApiUpdate, k as FunctionApiUpdateSchema, c8 as FunctionInsert, fu as FunctionInsertSchema, gA as FunctionListResponse, gk as FunctionResponse, c7 as FunctionSelect, ft as FunctionSelectSchema, fr as FunctionToolApiInsertSchema, cc as FunctionToolApiSelect, fq as FunctionToolApiSelectSchema, fs as FunctionToolApiUpdateSchema, dI as FunctionToolConfig, dH as FunctionToolConfigSchema, fo as FunctionToolInsertSchema, gB as FunctionToolListResponse, gl as FunctionToolResponse, fn as FunctionToolSelectSchema, fp as FunctionToolUpdateSchema, c9 as FunctionUpdate, fv as FunctionUpdateSchema, br as GetTaskPushNotificationConfigRequest, bE as GetTaskPushNotificationConfigResponse, bD as GetTaskPushNotificationConfigSuccessResponse, bo as GetTaskRequest, by as GetTaskResponse, bx as GetTaskSuccessResponse, aL as HTTPAuthSecurityScheme, gM as HeadersScopeSchema, aP as ImplicitOAuthFlow, b2 as InternalError, b8 as InvalidAgentResponseError, b1 as InvalidParamsError, a$ as InvalidRequestError, a_ as JSONParseError, bj as JSONRPCError, bl as JSONRPCErrorResponse, bh as JSONRPCMessage, bi as JSONRPCRequest, bk as JSONRPCResult, d6 as LedgerArtifactApiInsert, fU as LedgerArtifactApiInsertSchema, d5 as LedgerArtifactApiSelect, fT as LedgerArtifactApiSelectSchema, d7 as LedgerArtifactApiUpdate, fV as LedgerArtifactApiUpdateSchema, d3 as LedgerArtifactInsert, fR as LedgerArtifactInsertSchema, fQ as LedgerArtifactSelectSchema, d4 as LedgerArtifactUpdate, fS as LedgerArtifactUpdateSchema, g0 as ListResponseSchema, dC as MAX_ID_LENGTH, dA as MCPServerType, fi as MCPToolConfigSchema, dB as MIN_ID_LENGTH, dt as McpAuthType, du as McpServerAuth, dw as McpServerCapabilities, dx as McpToolDefinition, eg as McpToolDefinitionSchema, fh as McpToolSchema, dv as McpTransportConfig, ee as McpTransportConfigSchema, aV as Message, ci as MessageApiInsert, et as MessageApiInsertSchema, ch as MessageApiSelect, es as MessageApiSelectSchema, cj as MessageApiUpdate, eu as MessageApiUpdateSchema, eq as MessageInsertSchema, gH as MessageListResponse, dk as MessageMode, bH as MessagePart, gr as MessageResponse, dj as MessageRole, cg as MessageSelect, ep as MessageSelectSchema, bf as MessageSendConfiguration, bg as MessageSendParams, di as MessageType, er as MessageUpdateSchema, b0 as MethodNotFoundError, dF as ModelSchema, g as ModelSettings, M as ModelSettingsSchema, dl as Models, aR as OAuth2SecurityScheme, aM as OAuthFlows, aS as OpenIdConnectSecurityScheme, dg as Pagination, gV as PaginationQueryParamsSchema, f$ as PaginationSchema, P as Part, ay as PartBase, aQ as PasswordOAuthFlow, de as ProjectApiInsert, g9 as ProjectApiInsertSchema, dd as ProjectApiSelect, g8 as ProjectApiSelectSchema, df as ProjectApiUpdate, ga as ProjectApiUpdateSchema, g6 as ProjectInsertSchema, gs as ProjectListResponse, dG as ProjectModelSchema, dm as ProjectModels, gc as ProjectResponse, g5 as ProjectSelectSchema, g7 as ProjectUpdateSchema, ba as PushNotificationAuthenticationInfo, bb as PushNotificationConfig, b5 as PushNotificationNotSupportedError, g4 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, g1 as SingleResponseSchema, dp as StatusComponent, fW as StatusComponentSchema, fX as StatusUpdateSchema, dn as StatusUpdateSettings, d as StopWhen, S as StopWhenSchema, bK as SubAgentApiInsert, dN as SubAgentApiInsertSchema, bJ as SubAgentApiSelect, dM as SubAgentApiSelectSchema, bL as SubAgentApiUpdate, dO as SubAgentApiUpdateSchema, cJ as SubAgentArtifactComponentApiInsert, eY as SubAgentArtifactComponentApiInsertSchema, cI as SubAgentArtifactComponentApiSelect, eX as SubAgentArtifactComponentApiSelectSchema, cK as SubAgentArtifactComponentApiUpdate, eZ as SubAgentArtifactComponentApiUpdateSchema, cG as SubAgentArtifactComponentInsert, eV as SubAgentArtifactComponentInsertSchema, gL as SubAgentArtifactComponentListResponse, gJ as SubAgentArtifactComponentResponse, cF as SubAgentArtifactComponentSelect, eU as SubAgentArtifactComponentSelectSchema, cH as SubAgentArtifactComponentUpdate, eW as SubAgentArtifactComponentUpdateSchema, cA as SubAgentDataComponentApiInsert, eM as SubAgentDataComponentApiInsertSchema, cz as SubAgentDataComponentApiSelect, eL as SubAgentDataComponentApiSelectSchema, cB as SubAgentDataComponentApiUpdate, eN as SubAgentDataComponentApiUpdateSchema, cx as SubAgentDataComponentInsert, eJ as SubAgentDataComponentInsertSchema, gK as SubAgentDataComponentListResponse, gI as SubAgentDataComponentResponse, cw as SubAgentDataComponentSelect, eI as SubAgentDataComponentSelectSchema, cy as SubAgentDataComponentUpdate, eK as SubAgentDataComponentUpdateSchema, db as SubAgentDefinition, d1 as SubAgentExternalAgentRelationApiInsert, fO as SubAgentExternalAgentRelationApiInsertSchema, d0 as SubAgentExternalAgentRelationApiSelect, fN as SubAgentExternalAgentRelationApiSelectSchema, d2 as SubAgentExternalAgentRelationApiUpdate, fP as SubAgentExternalAgentRelationApiUpdateSchema, fL as SubAgentExternalAgentRelationInsertSchema, c_ as SubAgentExternalAgentRelationSelect, fK as SubAgentExternalAgentRelationSelectSchema, c$ as SubAgentExternalAgentRelationUpdate, fM as SubAgentExternalAgentRelationUpdateSchema, dK as SubAgentInsertSchema, gt as SubAgentListResponse, bO as SubAgentRelationApiInsert, dT as SubAgentRelationApiInsertSchema, bN as SubAgentRelationApiSelect, dS as SubAgentRelationApiSelectSchema, bP as SubAgentRelationApiUpdate, dU as SubAgentRelationApiUpdateSchema, dQ as SubAgentRelationInsertSchema, gE as SubAgentRelationListResponse, bQ as SubAgentRelationQuery, dV as SubAgentRelationQuerySchema, go as SubAgentRelationResponse, bM as SubAgentRelationSelect, dP as SubAgentRelationSelectSchema, dR as SubAgentRelationUpdateSchema, gd as SubAgentResponse, dJ as SubAgentSelectSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema, cY as SubAgentToolRelationApiInsert, fI as SubAgentToolRelationApiInsertSchema, cX as SubAgentToolRelationApiSelect, fH as SubAgentToolRelationApiSelectSchema, cZ as SubAgentToolRelationApiUpdate, fJ as SubAgentToolRelationApiUpdateSchema, cW as SubAgentToolRelationInsert, fF as SubAgentToolRelationInsertSchema, gF as SubAgentToolRelationListResponse, gp as SubAgentToolRelationResponse, cV as SubAgentToolRelationSelect, fE as SubAgentToolRelationSelectSchema, fG as SubAgentToolRelationUpdateSchema, dL as SubAgentUpdateSchema, dh as SummaryEvent, dy as TOOL_STATUS_VALUES, aX as Task, bY as TaskApiInsert, e6 as TaskApiInsertSchema, bX as TaskApiSelect, e5 as TaskApiSelectSchema, bZ as TaskApiUpdate, e7 as TaskApiUpdateSchema, bI as TaskArtifact, aZ as TaskArtifactUpdateEvent, bd as TaskIdParams, e3 as TaskInsertSchema, b4 as TaskNotCancelableError, b3 as TaskNotFoundError, bc as TaskPushNotificationConfig, be as TaskQueryParams, c2 as TaskRelationApiInsert, ec as TaskRelationApiInsertSchema, c1 as TaskRelationApiSelect, eb as TaskRelationApiSelectSchema, c3 as TaskRelationApiUpdate, ed as TaskRelationApiUpdateSchema, b$ as TaskRelationInsert, e9 as TaskRelationInsertSchema, b_ as TaskRelationSelect, e8 as TaskRelationSelectSchema, c0 as TaskRelationUpdate, ea as TaskRelationUpdateSchema, bs as TaskResubscriptionRequest, e2 as TaskSelectSchema, aF as TaskState, aW as TaskStatus, aY as TaskStatusUpdateEvent, bW as TaskUpdate, e4 as TaskUpdateSchema, gO as TenantIdParamsSchema, gN as TenantParamsSchema, gS as TenantProjectAgentIdParamsSchema, gR as TenantProjectAgentParamsSchema, gU as TenantProjectAgentSubAgentIdParamsSchema, gT as TenantProjectAgentSubAgentParamsSchema, gQ as TenantProjectIdParamsSchema, gP as TenantProjectParamsSchema, az as TextPart, c5 as ToolApiInsert, fl as ToolApiInsertSchema, c4 as ToolApiSelect, fk as ToolApiSelectSchema, c6 as ToolApiUpdate, fm as ToolApiUpdateSchema, dc as ToolDefinition, ei as ToolInsertSchema, gv as ToolListResponse, gf as ToolResponse, eh as ToolSelectSchema, ef as ToolStatusSchema, fj as ToolUpdateSchema, dD as URL_SAFE_ID_PATTERN, b6 as UnsupportedOperationError, dz as VALID_RELATION_TYPES, fZ as canDelegateToExternalAgentSchema, dE as resourceIdSchema } from './utility-CWjvUL4k.cjs';
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export { ANTHROPIC_MODELS, AnthropicModel, GOOGLE_MODELS, GoogleModel, ModelName, OPENAI_MODELS, OpenAIModel } from './constants/models.js';
2
- import { r as PinoLogger, s as getLogger } from './auth-detection-BO8bSpe4.js';
3
- export { i as ACTIVITY_NAMES, g as ACTIVITY_STATUS, f as ACTIVITY_TYPES, h as AGENT_IDS, p as AGGREGATE_OPERATORS, A as AI_OPERATIONS, j as AI_TOOL_TYPES, o as DATA_SOURCES, k as DATA_TYPES, D as DELEGATION_FROM_SUB_AGENT_ID, b as DELEGATION_ID, a as DELEGATION_TO_SUB_AGENT_ID, F as FIELD_TYPES, L as LoggerFactoryConfig, M as McpOAuthFlowResult, u as McpTokenExchangeResult, t as OAuthConfig, O as OPERATORS, m as ORDER_DIRECTIONS, P as PANEL_TYPES, x as PinoLoggerConfig, q as QUERY_DEFAULTS, l as QUERY_EXPRESSIONS, Q as QUERY_FIELD_CONFIGS, n as QUERY_TYPES, R as REDUCE_OPERATIONS, e as SPAN_KEYS, S as SPAN_NAMES, T as TRANSFER_FROM_SUB_AGENT_ID, c as TRANSFER_TO_SUB_AGENT_ID, U as UNKNOWN_VALUE, d as detectAuthenticationRequired, w as exchangeMcpAuthorizationCode, v as initiateMcpOAuthFlow, y as loggerFactory } from './auth-detection-BO8bSpe4.js';
2
+ import { r as PinoLogger, s as getLogger } from './auth-detection-DN8jWUDE.js';
3
+ export { i as ACTIVITY_NAMES, g as ACTIVITY_STATUS, f as ACTIVITY_TYPES, h as AGENT_IDS, p as AGGREGATE_OPERATORS, A as AI_OPERATIONS, j as AI_TOOL_TYPES, o as DATA_SOURCES, k as DATA_TYPES, D as DELEGATION_FROM_SUB_AGENT_ID, b as DELEGATION_ID, a as DELEGATION_TO_SUB_AGENT_ID, F as FIELD_TYPES, L as LoggerFactoryConfig, M as McpOAuthFlowResult, u as McpTokenExchangeResult, t as OAuthConfig, O as OPERATORS, m as ORDER_DIRECTIONS, P as PANEL_TYPES, x as PinoLoggerConfig, q as QUERY_DEFAULTS, l as QUERY_EXPRESSIONS, Q as QUERY_FIELD_CONFIGS, n as QUERY_TYPES, R as REDUCE_OPERATIONS, e as SPAN_KEYS, S as SPAN_NAMES, T as TRANSFER_FROM_SUB_AGENT_ID, c as TRANSFER_TO_SUB_AGENT_ID, U as UNKNOWN_VALUE, d as detectAuthenticationRequired, w as exchangeMcpAuthorizationCode, v as initiateMcpOAuthFlow, y as loggerFactory } from './auth-detection-DN8jWUDE.js';
4
4
  import { z } from 'zod';
5
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 ExternalAgentSelect, $ as CredentialReferenceInsert, a0 as CredentialReferenceUpdate, a1 as DataComponentSelect, a2 as DataComponentInsert, a3 as DataComponentUpdate, a4 as ExternalAgentInsert, 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 SubAgentExternalAgentRelationInsert, am as SubAgentRelationInsert, 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-CWjvUL4k.js';
6
6
  export { b9 as A2AError, bF as A2ARequest, bG as A2AResponse, aK as APIKeySecurityScheme, bU as AgentApiInsert, e0 as AgentApiInsertSchema, bT as AgentApiSelect, d$ as AgentApiSelectSchema, bV as AgentApiUpdate, e1 as AgentApiUpdateSchema, aG as AgentCapabilities, aU as AgentCard, dr as AgentConversationHistoryConfig, dZ as AgentInsertSchema, gu as AgentListResponse, aH as AgentProvider, ge as AgentResponse, dY as AgentSelectSchema, aI as AgentSkill, e as AgentStopWhen, b as AgentStopWhenSchema, d_ as AgentUpdateSchema, f_ as AgentWithinContextOfProjectSchema, f4 as AllAgentSchema, cO as AllAgentSelect, cS as ApiKeyApiCreationResponse, f9 as ApiKeyApiCreationResponseSchema, cQ as ApiKeyApiInsert, fa as ApiKeyApiInsertSchema, cP as ApiKeyApiSelect, f8 as ApiKeyApiSelectSchema, cR as ApiKeyApiUpdate, A as ApiKeyApiUpdateSchema, f6 as ApiKeyInsertSchema, gy as ApiKeyListResponse, gi as ApiKeyResponse, f5 as ApiKeySelectSchema, f7 as ApiKeyUpdateSchema, cD as ArtifactComponentApiInsert, eS as ArtifactComponentApiInsertSchema, cC as ArtifactComponentApiSelect, eR as ArtifactComponentApiSelectSchema, cE as ArtifactComponentApiUpdate, eT as ArtifactComponentApiUpdateSchema, eP as ArtifactComponentInsertSchema, gD as ArtifactComponentListResponse, gn as ArtifactComponentResponse, eO as ArtifactComponentSelectSchema, eQ as ArtifactComponentUpdateSchema, aN as AuthorizationCodeOAuthFlow, da as CanDelegateToExternalAgent, d9 as CanUseItem, fY as CanUseItemSchema, bp as CancelTaskRequest, bA as CancelTaskResponse, bz as CancelTaskSuccessResponse, aO as ClientCredentialsOAuthFlow, b7 as ContentTypeNotSupportedError, cr as ContextCacheApiInsert, ez as ContextCacheApiInsertSchema, cq as ContextCacheApiSelect, ey as ContextCacheApiSelectSchema, cs as ContextCacheApiUpdate, eA as ContextCacheApiUpdateSchema, ds as ContextCacheEntry, ew as ContextCacheInsertSchema, ev as ContextCacheSelectSchema, cp as ContextCacheUpdate, ex as ContextCacheUpdateSchema, cl as ContextConfigApiInsert, fC as ContextConfigApiInsertSchema, ck as ContextConfigApiSelect, fB as ContextConfigApiSelectSchema, cm as ContextConfigApiUpdate, fD as ContextConfigApiUpdateSchema, fz as ContextConfigInsertSchema, gx as ContextConfigListResponse, gh as ContextConfigResponse, fy as ContextConfigSelectSchema, fA as ContextConfigUpdateSchema, ce as ConversationApiInsert, en as ConversationApiInsertSchema, cd as ConversationApiSelect, em as ConversationApiSelectSchema, cf as ConversationApiUpdate, eo as ConversationApiUpdateSchema, ek as ConversationInsertSchema, gG as ConversationListResponse, gq as ConversationResponse, dq as ConversationScopeOptions, ej as ConversationSelectSchema, el as ConversationUpdateSchema, ff as CredentialReferenceApiInsertSchema, cT as CredentialReferenceApiSelect, fe as CredentialReferenceApiSelectSchema, cU as CredentialReferenceApiUpdate, fg as CredentialReferenceApiUpdateSchema, fc as CredentialReferenceInsertSchema, gz as CredentialReferenceListResponse, gj as CredentialReferenceResponse, fb as CredentialReferenceSelectSchema, fd as CredentialReferenceUpdateSchema, cu as DataComponentApiInsert, eG as DataComponentApiInsertSchema, ct as DataComponentApiSelect, eF as DataComponentApiSelectSchema, cv as DataComponentApiUpdate, eH as DataComponentApiUpdateSchema, eD as DataComponentBaseSchema, eC as DataComponentInsertSchema, gC as DataComponentListResponse, gm as DataComponentResponse, eB as DataComponentSelectSchema, eE as DataComponentUpdateSchema, aE as DataPart, g2 as ErrorResponseSchema, g3 as ExistsResponseSchema, cM as ExternalAgentApiInsert, f2 as ExternalAgentApiInsertSchema, cL as ExternalAgentApiSelect, f1 as ExternalAgentApiSelectSchema, cN as ExternalAgentApiUpdate, f3 as ExternalAgentApiUpdateSchema, e$ as ExternalAgentInsertSchema, gw as ExternalAgentListResponse, gg as ExternalAgentResponse, e_ as ExternalAgentSelectSchema, f0 as ExternalAgentUpdateSchema, bS as ExternalSubAgentRelationApiInsert, dX as ExternalSubAgentRelationApiInsertSchema, bR as ExternalSubAgentRelationInsert, dW as ExternalSubAgentRelationInsertSchema, co as FetchConfig, fw as FetchConfigSchema, cn as FetchDefinition, fx as FetchDefinitionSchema, aA as FileBase, aD as FilePart, aB as FileWithBytes, aC as FileWithUri, d8 as FullAgentAgentInsert, a as FullAgentAgentInsertSchema, gb as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, ca as FunctionApiSelect, j as FunctionApiSelectSchema, cb as FunctionApiUpdate, k as FunctionApiUpdateSchema, c8 as FunctionInsert, fu as FunctionInsertSchema, gA as FunctionListResponse, gk as FunctionResponse, c7 as FunctionSelect, ft as FunctionSelectSchema, fr as FunctionToolApiInsertSchema, cc as FunctionToolApiSelect, fq as FunctionToolApiSelectSchema, fs as FunctionToolApiUpdateSchema, dI as FunctionToolConfig, dH as FunctionToolConfigSchema, fo as FunctionToolInsertSchema, gB as FunctionToolListResponse, gl as FunctionToolResponse, fn as FunctionToolSelectSchema, fp as FunctionToolUpdateSchema, c9 as FunctionUpdate, fv as FunctionUpdateSchema, br as GetTaskPushNotificationConfigRequest, bE as GetTaskPushNotificationConfigResponse, bD as GetTaskPushNotificationConfigSuccessResponse, bo as GetTaskRequest, by as GetTaskResponse, bx as GetTaskSuccessResponse, aL as HTTPAuthSecurityScheme, gM as HeadersScopeSchema, aP as ImplicitOAuthFlow, b2 as InternalError, b8 as InvalidAgentResponseError, b1 as InvalidParamsError, a$ as InvalidRequestError, a_ as JSONParseError, bj as JSONRPCError, bl as JSONRPCErrorResponse, bh as JSONRPCMessage, bi as JSONRPCRequest, bk as JSONRPCResult, d6 as LedgerArtifactApiInsert, fU as LedgerArtifactApiInsertSchema, d5 as LedgerArtifactApiSelect, fT as LedgerArtifactApiSelectSchema, d7 as LedgerArtifactApiUpdate, fV as LedgerArtifactApiUpdateSchema, d3 as LedgerArtifactInsert, fR as LedgerArtifactInsertSchema, fQ as LedgerArtifactSelectSchema, d4 as LedgerArtifactUpdate, fS as LedgerArtifactUpdateSchema, g0 as ListResponseSchema, dC as MAX_ID_LENGTH, dA as MCPServerType, fi as MCPToolConfigSchema, dB as MIN_ID_LENGTH, dt as McpAuthType, du as McpServerAuth, dw as McpServerCapabilities, dx as McpToolDefinition, eg as McpToolDefinitionSchema, fh as McpToolSchema, dv as McpTransportConfig, ee as McpTransportConfigSchema, aV as Message, ci as MessageApiInsert, et as MessageApiInsertSchema, ch as MessageApiSelect, es as MessageApiSelectSchema, cj as MessageApiUpdate, eu as MessageApiUpdateSchema, eq as MessageInsertSchema, gH as MessageListResponse, dk as MessageMode, bH as MessagePart, gr as MessageResponse, dj as MessageRole, cg as MessageSelect, ep as MessageSelectSchema, bf as MessageSendConfiguration, bg as MessageSendParams, di as MessageType, er as MessageUpdateSchema, b0 as MethodNotFoundError, dF as ModelSchema, g as ModelSettings, M as ModelSettingsSchema, dl as Models, aR as OAuth2SecurityScheme, aM as OAuthFlows, aS as OpenIdConnectSecurityScheme, dg as Pagination, gV as PaginationQueryParamsSchema, f$ as PaginationSchema, P as Part, ay as PartBase, aQ as PasswordOAuthFlow, de as ProjectApiInsert, g9 as ProjectApiInsertSchema, dd as ProjectApiSelect, g8 as ProjectApiSelectSchema, df as ProjectApiUpdate, ga as ProjectApiUpdateSchema, g6 as ProjectInsertSchema, gs as ProjectListResponse, dG as ProjectModelSchema, dm as ProjectModels, gc as ProjectResponse, g5 as ProjectSelectSchema, g7 as ProjectUpdateSchema, ba as PushNotificationAuthenticationInfo, bb as PushNotificationConfig, b5 as PushNotificationNotSupportedError, g4 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, g1 as SingleResponseSchema, dp as StatusComponent, fW as StatusComponentSchema, fX as StatusUpdateSchema, dn as StatusUpdateSettings, d as StopWhen, S as StopWhenSchema, bK as SubAgentApiInsert, dN as SubAgentApiInsertSchema, bJ as SubAgentApiSelect, dM as SubAgentApiSelectSchema, bL as SubAgentApiUpdate, dO as SubAgentApiUpdateSchema, cJ as SubAgentArtifactComponentApiInsert, eY as SubAgentArtifactComponentApiInsertSchema, cI as SubAgentArtifactComponentApiSelect, eX as SubAgentArtifactComponentApiSelectSchema, cK as SubAgentArtifactComponentApiUpdate, eZ as SubAgentArtifactComponentApiUpdateSchema, cG as SubAgentArtifactComponentInsert, eV as SubAgentArtifactComponentInsertSchema, gL as SubAgentArtifactComponentListResponse, gJ as SubAgentArtifactComponentResponse, cF as SubAgentArtifactComponentSelect, eU as SubAgentArtifactComponentSelectSchema, cH as SubAgentArtifactComponentUpdate, eW as SubAgentArtifactComponentUpdateSchema, cA as SubAgentDataComponentApiInsert, eM as SubAgentDataComponentApiInsertSchema, cz as SubAgentDataComponentApiSelect, eL as SubAgentDataComponentApiSelectSchema, cB as SubAgentDataComponentApiUpdate, eN as SubAgentDataComponentApiUpdateSchema, cx as SubAgentDataComponentInsert, eJ as SubAgentDataComponentInsertSchema, gK as SubAgentDataComponentListResponse, gI as SubAgentDataComponentResponse, cw as SubAgentDataComponentSelect, eI as SubAgentDataComponentSelectSchema, cy as SubAgentDataComponentUpdate, eK as SubAgentDataComponentUpdateSchema, db as SubAgentDefinition, d1 as SubAgentExternalAgentRelationApiInsert, fO as SubAgentExternalAgentRelationApiInsertSchema, d0 as SubAgentExternalAgentRelationApiSelect, fN as SubAgentExternalAgentRelationApiSelectSchema, d2 as SubAgentExternalAgentRelationApiUpdate, fP as SubAgentExternalAgentRelationApiUpdateSchema, fL as SubAgentExternalAgentRelationInsertSchema, c_ as SubAgentExternalAgentRelationSelect, fK as SubAgentExternalAgentRelationSelectSchema, c$ as SubAgentExternalAgentRelationUpdate, fM as SubAgentExternalAgentRelationUpdateSchema, dK as SubAgentInsertSchema, gt as SubAgentListResponse, bO as SubAgentRelationApiInsert, dT as SubAgentRelationApiInsertSchema, bN as SubAgentRelationApiSelect, dS as SubAgentRelationApiSelectSchema, bP as SubAgentRelationApiUpdate, dU as SubAgentRelationApiUpdateSchema, dQ as SubAgentRelationInsertSchema, gE as SubAgentRelationListResponse, bQ as SubAgentRelationQuery, dV as SubAgentRelationQuerySchema, go as SubAgentRelationResponse, bM as SubAgentRelationSelect, dP as SubAgentRelationSelectSchema, dR as SubAgentRelationUpdateSchema, gd as SubAgentResponse, dJ as SubAgentSelectSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema, cY as SubAgentToolRelationApiInsert, fI as SubAgentToolRelationApiInsertSchema, cX as SubAgentToolRelationApiSelect, fH as SubAgentToolRelationApiSelectSchema, cZ as SubAgentToolRelationApiUpdate, fJ as SubAgentToolRelationApiUpdateSchema, cW as SubAgentToolRelationInsert, fF as SubAgentToolRelationInsertSchema, gF as SubAgentToolRelationListResponse, gp as SubAgentToolRelationResponse, cV as SubAgentToolRelationSelect, fE as SubAgentToolRelationSelectSchema, fG as SubAgentToolRelationUpdateSchema, dL as SubAgentUpdateSchema, dh as SummaryEvent, dy as TOOL_STATUS_VALUES, aX as Task, bY as TaskApiInsert, e6 as TaskApiInsertSchema, bX as TaskApiSelect, e5 as TaskApiSelectSchema, bZ as TaskApiUpdate, e7 as TaskApiUpdateSchema, bI as TaskArtifact, aZ as TaskArtifactUpdateEvent, bd as TaskIdParams, e3 as TaskInsertSchema, b4 as TaskNotCancelableError, b3 as TaskNotFoundError, bc as TaskPushNotificationConfig, be as TaskQueryParams, c2 as TaskRelationApiInsert, ec as TaskRelationApiInsertSchema, c1 as TaskRelationApiSelect, eb as TaskRelationApiSelectSchema, c3 as TaskRelationApiUpdate, ed as TaskRelationApiUpdateSchema, b$ as TaskRelationInsert, e9 as TaskRelationInsertSchema, b_ as TaskRelationSelect, e8 as TaskRelationSelectSchema, c0 as TaskRelationUpdate, ea as TaskRelationUpdateSchema, bs as TaskResubscriptionRequest, e2 as TaskSelectSchema, aF as TaskState, aW as TaskStatus, aY as TaskStatusUpdateEvent, bW as TaskUpdate, e4 as TaskUpdateSchema, gO as TenantIdParamsSchema, gN as TenantParamsSchema, gS as TenantProjectAgentIdParamsSchema, gR as TenantProjectAgentParamsSchema, gU as TenantProjectAgentSubAgentIdParamsSchema, gT as TenantProjectAgentSubAgentParamsSchema, gQ as TenantProjectIdParamsSchema, gP as TenantProjectParamsSchema, az as TextPart, c5 as ToolApiInsert, fl as ToolApiInsertSchema, c4 as ToolApiSelect, fk as ToolApiSelectSchema, c6 as ToolApiUpdate, fm as ToolApiUpdateSchema, dc as ToolDefinition, ei as ToolInsertSchema, gv as ToolListResponse, gf as ToolResponse, eh as ToolSelectSchema, ef as ToolStatusSchema, fj as ToolUpdateSchema, dD as URL_SAFE_ID_PATTERN, b6 as UnsupportedOperationError, dz as VALID_RELATION_TYPES, fZ as canDelegateToExternalAgentSchema, dE as resourceIdSchema } from './utility-CWjvUL4k.js';
package/dist/index.js CHANGED
@@ -1,7 +1,6 @@
1
- import { detectAuthenticationRequired } from './chunk-NJZ3ICNP.js';
2
- export { ACTIVITY_NAMES, ACTIVITY_STATUS, ACTIVITY_TYPES, AGENT_IDS, AGGREGATE_OPERATORS, AI_OPERATIONS, AI_TOOL_TYPES, DATA_SOURCES, DATA_TYPES, DELEGATION_FROM_SUB_AGENT_ID, DELEGATION_ID, DELEGATION_TO_SUB_AGENT_ID, FIELD_TYPES, OPERATORS, ORDER_DIRECTIONS, PANEL_TYPES, QUERY_DEFAULTS, QUERY_EXPRESSIONS, QUERY_FIELD_CONFIGS, QUERY_TYPES, REDUCE_OPERATIONS, SPAN_KEYS, SPAN_NAMES, TRANSFER_FROM_SUB_AGENT_ID, TRANSFER_TO_SUB_AGENT_ID, UNKNOWN_VALUE, detectAuthenticationRequired, exchangeMcpAuthorizationCode, initiateMcpOAuthFlow } from './chunk-NJZ3ICNP.js';
1
+ import { detectAuthenticationRequired } from './chunk-CK2M5I4Q.js';
2
+ export { ACTIVITY_NAMES, ACTIVITY_STATUS, ACTIVITY_TYPES, AGENT_IDS, AGGREGATE_OPERATORS, AI_OPERATIONS, AI_TOOL_TYPES, DATA_SOURCES, DATA_TYPES, DELEGATION_FROM_SUB_AGENT_ID, DELEGATION_ID, DELEGATION_TO_SUB_AGENT_ID, FIELD_TYPES, OPERATORS, ORDER_DIRECTIONS, PANEL_TYPES, QUERY_DEFAULTS, QUERY_EXPRESSIONS, QUERY_FIELD_CONFIGS, QUERY_TYPES, REDUCE_OPERATIONS, SPAN_KEYS, SPAN_NAMES, TRANSFER_FROM_SUB_AGENT_ID, TRANSFER_TO_SUB_AGENT_ID, UNKNOWN_VALUE, detectAuthenticationRequired, exchangeMcpAuthorizationCode, initiateMcpOAuthFlow } from './chunk-CK2M5I4Q.js';
3
3
  export { ANTHROPIC_MODELS, GOOGLE_MODELS, OPENAI_MODELS } from './chunk-MQTANAMG.js';
4
- export { TaskState } from './chunk-H2F72PDA.js';
5
4
  import { getLogger, convertZodToJsonSchema } from './chunk-YECQCT5N.js';
6
5
  export { PinoLogger, convertZodToJsonSchema, convertZodToJsonSchemaWithPreview, extractPreviewFields, getLogger, isZodSchema, loggerFactory, preview } from './chunk-YECQCT5N.js';
7
6
  import { validatePreview, validateAndTypeAgentData, validateAgentStructure } from './chunk-HMVAAUTK.js';
@@ -10,6 +9,7 @@ import { ContextConfigApiUpdateSchema, validatePropsAsJsonSchema } from './chunk
10
9
  export { AgentApiInsertSchema, AgentApiSelectSchema, AgentApiUpdateSchema, AgentInsertSchema, AgentListResponse, AgentResponse, AgentSelectSchema, AgentStopWhenSchema, AgentUpdateSchema, AgentWithinContextOfProjectSchema, AllAgentSchema, ApiKeyApiCreationResponseSchema, ApiKeyApiInsertSchema, ApiKeyApiSelectSchema, ApiKeyApiUpdateSchema, ApiKeyInsertSchema, ApiKeyListResponse, ApiKeyResponse, ApiKeySelectSchema, ApiKeyUpdateSchema, ArtifactComponentApiInsertSchema, ArtifactComponentApiSelectSchema, ArtifactComponentApiUpdateSchema, ArtifactComponentInsertSchema, ArtifactComponentListResponse, ArtifactComponentResponse, ArtifactComponentSelectSchema, ArtifactComponentUpdateSchema, CanUseItemSchema, ContextCacheApiInsertSchema, ContextCacheApiSelectSchema, ContextCacheApiUpdateSchema, ContextCacheInsertSchema, ContextCacheSelectSchema, ContextCacheUpdateSchema, ContextConfigApiInsertSchema, ContextConfigApiSelectSchema, ContextConfigApiUpdateSchema, ContextConfigInsertSchema, ContextConfigListResponse, ContextConfigResponse, ContextConfigSelectSchema, ContextConfigUpdateSchema, ConversationApiInsertSchema, ConversationApiSelectSchema, ConversationApiUpdateSchema, ConversationInsertSchema, ConversationListResponse, ConversationResponse, ConversationSelectSchema, ConversationUpdateSchema, CredentialReferenceApiInsertSchema, CredentialReferenceApiSelectSchema, CredentialReferenceApiUpdateSchema, CredentialReferenceInsertSchema, CredentialReferenceListResponse, CredentialReferenceResponse, CredentialReferenceSelectSchema, CredentialReferenceUpdateSchema, DataComponentApiInsertSchema, DataComponentApiSelectSchema, DataComponentApiUpdateSchema, DataComponentBaseSchema, DataComponentInsertSchema, DataComponentListResponse, DataComponentResponse, DataComponentSelectSchema, DataComponentUpdateSchema, ErrorResponseSchema, ExistsResponseSchema, ExternalAgentApiInsertSchema, ExternalAgentApiSelectSchema, ExternalAgentApiUpdateSchema, ExternalAgentInsertSchema, ExternalAgentListResponse, ExternalAgentResponse, ExternalAgentSelectSchema, ExternalAgentUpdateSchema, ExternalSubAgentRelationApiInsertSchema, ExternalSubAgentRelationInsertSchema, FetchConfigSchema, FetchDefinitionSchema, FullAgentAgentInsertSchema, FullProjectDefinitionSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, FunctionInsertSchema, FunctionListResponse, FunctionResponse, FunctionSelectSchema, FunctionToolApiInsertSchema, FunctionToolApiSelectSchema, FunctionToolApiUpdateSchema, FunctionToolConfigSchema, FunctionToolInsertSchema, FunctionToolListResponse, FunctionToolResponse, FunctionToolSelectSchema, FunctionToolUpdateSchema, FunctionUpdateSchema, HeadersScopeSchema, LedgerArtifactApiInsertSchema, LedgerArtifactApiSelectSchema, LedgerArtifactApiUpdateSchema, LedgerArtifactInsertSchema, LedgerArtifactSelectSchema, LedgerArtifactUpdateSchema, ListResponseSchema, MAX_ID_LENGTH, MCPToolConfigSchema, MIN_ID_LENGTH, McpToolDefinitionSchema, McpToolSchema, McpTransportConfigSchema, MessageApiInsertSchema, MessageApiSelectSchema, MessageApiUpdateSchema, MessageInsertSchema, MessageListResponse, MessageResponse, MessageSelectSchema, MessageUpdateSchema, ModelSchema, ModelSettingsSchema, PaginationQueryParamsSchema, PaginationSchema, ProjectApiInsertSchema, ProjectApiSelectSchema, ProjectApiUpdateSchema, ProjectInsertSchema, ProjectListResponse, ProjectModelSchema, ProjectResponse, ProjectSelectSchema, ProjectUpdateSchema, RemovedResponseSchema, SingleResponseSchema, StatusComponentSchema, StatusUpdateSchema, StopWhenSchema, SubAgentApiInsertSchema, SubAgentApiSelectSchema, SubAgentApiUpdateSchema, SubAgentArtifactComponentApiInsertSchema, SubAgentArtifactComponentApiSelectSchema, SubAgentArtifactComponentApiUpdateSchema, SubAgentArtifactComponentInsertSchema, SubAgentArtifactComponentListResponse, SubAgentArtifactComponentResponse, SubAgentArtifactComponentSelectSchema, SubAgentArtifactComponentUpdateSchema, SubAgentDataComponentApiInsertSchema, SubAgentDataComponentApiSelectSchema, SubAgentDataComponentApiUpdateSchema, SubAgentDataComponentInsertSchema, SubAgentDataComponentListResponse, SubAgentDataComponentResponse, SubAgentDataComponentSelectSchema, SubAgentDataComponentUpdateSchema, SubAgentExternalAgentRelationApiInsertSchema, SubAgentExternalAgentRelationApiSelectSchema, SubAgentExternalAgentRelationApiUpdateSchema, SubAgentExternalAgentRelationInsertSchema, SubAgentExternalAgentRelationSelectSchema, SubAgentExternalAgentRelationUpdateSchema, SubAgentInsertSchema, SubAgentListResponse, SubAgentRelationApiInsertSchema, SubAgentRelationApiSelectSchema, SubAgentRelationApiUpdateSchema, SubAgentRelationInsertSchema, SubAgentRelationListResponse, SubAgentRelationQuerySchema, SubAgentRelationResponse, SubAgentRelationSelectSchema, SubAgentRelationUpdateSchema, SubAgentResponse, SubAgentSelectSchema, SubAgentStopWhenSchema, SubAgentToolRelationApiInsertSchema, SubAgentToolRelationApiSelectSchema, SubAgentToolRelationApiUpdateSchema, SubAgentToolRelationInsertSchema, SubAgentToolRelationListResponse, SubAgentToolRelationResponse, SubAgentToolRelationSelectSchema, SubAgentToolRelationUpdateSchema, SubAgentUpdateSchema, TaskApiInsertSchema, TaskApiSelectSchema, TaskApiUpdateSchema, TaskInsertSchema, TaskRelationApiInsertSchema, TaskRelationApiSelectSchema, TaskRelationApiUpdateSchema, TaskRelationInsertSchema, TaskRelationSelectSchema, TaskRelationUpdateSchema, TaskSelectSchema, TaskUpdateSchema, TenantIdParamsSchema, TenantParamsSchema, TenantProjectAgentIdParamsSchema, TenantProjectAgentParamsSchema, TenantProjectAgentSubAgentIdParamsSchema, TenantProjectAgentSubAgentParamsSchema, TenantProjectIdParamsSchema, TenantProjectParamsSchema, ToolApiInsertSchema, ToolApiSelectSchema, ToolApiUpdateSchema, ToolInsertSchema, ToolListResponse, ToolResponse, ToolSelectSchema, ToolStatusSchema, ToolUpdateSchema, URL_SAFE_ID_PATTERN, canDelegateToExternalAgentSchema, resourceIdSchema, validatePropsAsJsonSchema } from './chunk-NXC2HZQL.js';
11
10
  import { schema_exports, contextConfigs, externalAgents, functions, functionTools, subAgentFunctionToolRelations, subAgentExternalAgentRelations, subAgents, subAgentRelations, subAgentToolRelations, tools, credentialReferences, agents, subAgentDataComponents, subAgentArtifactComponents, dataComponents, artifactComponents, projects, apiKeys, contextCache, conversations, messages, ledgerArtifacts, tasks, taskRelations } from './chunk-ALZI4IXB.js';
12
11
  export { agentRelations, agentToolRelationsRelations, agents, apiKeys, apiKeysRelations, artifactComponents, artifactComponentsRelations, contextCache, contextCacheRelations, contextConfigs, contextConfigsRelations, conversations, conversationsRelations, credentialReferences, credentialReferencesRelations, dataComponents, dataComponentsRelations, externalAgents, externalAgentsRelations, functionTools, functionToolsRelations, functions, functionsRelations, ledgerArtifacts, ledgerArtifactsRelations, messages, messagesRelations, projects, projectsRelations, subAgentArtifactComponents, subAgentArtifactComponentsRelations, subAgentDataComponents, subAgentDataComponentsRelations, subAgentExternalAgentRelations, subAgentExternalAgentRelationsRelations, subAgentFunctionToolRelations, subAgentFunctionToolRelationsRelations, subAgentRelations, subAgentRelationsRelations, subAgentToolRelations, subAgents, subAgentsRelations, taskRelations, taskRelationsRelations, tasks, tasksRelations, tools, toolsRelations } from './chunk-ALZI4IXB.js';
12
+ export { TaskState } from './chunk-H2F72PDA.js';
13
13
  import { CredentialStoreType, MCPServerType, MCPTransportType } from './chunk-YFHT5M2R.js';
14
14
  export { CredentialStoreType, MCPServerType, MCPTransportType, TOOL_STATUS_VALUES, VALID_RELATION_TYPES } from './chunk-YFHT5M2R.js';
15
15
  import { __commonJS, __require, __publicField } from './chunk-E6R6PML7.js';
@@ -215984,7 +215984,6 @@ var dbResultToMcpTool = async (dbResult, dbClient, credentialStoreRegistry) => {
215984
215984
  } catch (error) {
215985
215985
  const toolNeedsAuth = error instanceof Error && await detectAuthenticationRequired({
215986
215986
  serverUrl: dbResult.config.mcp.server.url,
215987
- toolId: dbResult.id,
215988
215987
  error,
215989
215988
  logger: logger6
215990
215989
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/agents-core",
3
- "version": "0.25.0",
3
+ "version": "0.26.1",
4
4
  "description": "Agents Core contains the database schema, types, and validation schemas for Inkeep Agent Framework, along with core components.",
5
5
  "type": "module",
6
6
  "license": "SEE LICENSE IN LICENSE.md",