@inkeep/agents-core 0.40.0 → 0.41.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.
Files changed (43) hide show
  1. package/dist/_virtual/rolldown_runtime.js +2 -2
  2. package/dist/auth/auth-schema.d.ts +104 -104
  3. package/dist/auth/auth-validation-schemas.d.ts +146 -146
  4. package/dist/auth/auth.d.ts +67 -58
  5. package/dist/auth/permissions.d.ts +15 -14
  6. package/dist/auth/permissions.js +2 -1
  7. package/dist/client-exports.d.ts +14 -1
  8. package/dist/constants/otel-attributes.d.ts +1 -3
  9. package/dist/constants/otel-attributes.js +2 -4
  10. package/dist/constants/signoz-queries.d.ts +0 -1
  11. package/dist/constants/signoz-queries.js +0 -1
  12. package/dist/credential-stores/index.d.ts +2 -1
  13. package/dist/credential-stores/index.js +2 -1
  14. package/dist/data-access/agents.d.ts +21 -21
  15. package/dist/data-access/apiKeys.d.ts +16 -16
  16. package/dist/data-access/artifactComponents.d.ts +30 -10
  17. package/dist/data-access/artifactComponents.js +22 -1
  18. package/dist/data-access/contextConfigs.d.ts +12 -12
  19. package/dist/data-access/conversations.d.ts +16 -16
  20. package/dist/data-access/dataComponents.d.ts +4 -4
  21. package/dist/data-access/functionTools.d.ts +8 -8
  22. package/dist/data-access/messages.d.ts +12 -12
  23. package/dist/data-access/subAgentExternalAgentRelations.d.ts +24 -24
  24. package/dist/data-access/subAgentRelations.d.ts +28 -28
  25. package/dist/data-access/subAgentTeamAgentRelations.d.ts +24 -24
  26. package/dist/data-access/subAgents.d.ts +15 -15
  27. package/dist/data-access/tasks.d.ts +4 -4
  28. package/dist/data-access/tools.d.ts +33 -33
  29. package/dist/db/schema.d.ts +429 -404
  30. package/dist/db/schema.js +3 -2
  31. package/dist/index.d.ts +2 -1
  32. package/dist/index.js +3 -2
  33. package/dist/utils/logger.js +19 -3
  34. package/dist/utils/mcp-client.js +19 -5
  35. package/dist/utils/model-factory.js +13 -1
  36. package/dist/utils/schema-conversion.d.ts +1 -1
  37. package/dist/utils/schema-conversion.js +1 -1
  38. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  39. package/dist/validation/schemas.d.ts +1738 -1338
  40. package/drizzle/0007_slim_karma.sql +1 -0
  41. package/drizzle/meta/0007_snapshot.json +3772 -0
  42. package/drizzle/meta/_journal.json +7 -0
  43. package/package.json +10 -9
package/dist/db/schema.js CHANGED
@@ -1,10 +1,10 @@
1
- import { __export } from "../_virtual/rolldown_runtime.js";
1
+ import { __exportAll } from "../_virtual/rolldown_runtime.js";
2
2
  import { account, deviceCode, invitation, member, organization, session, ssoProvider, user, verification } from "../auth/auth-schema.js";
3
3
  import { relations } from "drizzle-orm";
4
4
  import { foreignKey, index, integer, jsonb, pgTable, primaryKey, text, timestamp, unique, varchar } from "drizzle-orm/pg-core";
5
5
 
6
6
  //#region src/db/schema.ts
7
- var schema_exports = /* @__PURE__ */ __export({
7
+ var schema_exports = /* @__PURE__ */ __exportAll({
8
8
  account: () => account,
9
9
  agentRelations: () => agentRelations,
10
10
  agentToolRelationsRelations: () => agentToolRelationsRelations,
@@ -344,6 +344,7 @@ const artifactComponents = pgTable("artifact_components", {
344
344
  ...projectScoped,
345
345
  ...uiProperties,
346
346
  props: jsonb("props").$type(),
347
+ render: jsonb("render").$type(),
347
348
  ...timestamps
348
349
  }, (table) => [primaryKey({ columns: [
349
350
  table.tenantId,
package/dist/index.d.ts CHANGED
@@ -23,6 +23,7 @@ import { ContextResolutionOptions, ContextResolutionResult, ContextResolver, Res
23
23
  import { determineContextTrigger, handleContextConfigChange, handleContextResolution } from "./context/context.js";
24
24
  import { ContextCache } from "./context/contextCache.js";
25
25
  import "./context/index.js";
26
+ import { DEFAULT_NANGO_STORE_ID } from "./credential-stores/default-constants.js";
26
27
  import { createDefaultCredentialStores } from "./credential-stores/defaults.js";
27
28
  import { KeyChainStore, createKeyChainStore } from "./credential-stores/keychain-store.js";
28
29
  import { InMemoryCredentialStore } from "./credential-stores/memory-store.js";
@@ -89,4 +90,4 @@ import "./validation/index.js";
89
90
  import { AgentConversationHistoryConfig, AgentScopeConfig, ApiKeyCreateResult, ContextCacheEntry, ContextFetchDefinition, ConversationHistoryConfig, ConversationMetadata, ConversationScopeOptions, CreateApiKeyParams, CredentialStoreType, ExecutionContext, Filter, MCPServerType, MCPTransportType, McpAuthType, McpServerAuth, McpServerCapabilities, McpToolDefinition, McpTransportConfig, MessageContent, MessageMetadata, MessageMode, MessageRole, MessageType, MessageVisibility, Models, PaginationConfig, PaginationResult, ProjectInfo, ProjectModels, ProjectResourceCounts, ProjectScopeConfig, StatusComponent, StatusUpdateSettings, SubAgentScopeConfig, TOOL_STATUS_VALUES, TaskMetadataConfig, ToolMcpConfig, ToolServerCapabilities, VALID_RELATION_TYPES } from "./types/utility.js";
90
91
  import { 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, subAgentTeamAgentRelations, subAgentTeamAgentRelationsRelations, subAgentToolRelations, subAgents, subAgentsRelations, taskRelations, taskRelationsRelations, tasks, tasksRelations, tools, toolsRelations } from "./db/schema.js";
91
92
  import { DatabaseClient, DatabaseConfig, createDatabaseClient } from "./db/client.js";
92
- export { A2AError, A2AMessageMetadata, A2AMessageMetadataSchema, A2ARequest, A2AResponse, ACTIVITY_NAMES, ACTIVITY_STATUS, ACTIVITY_TYPES, AGENT_EXECUTION_TRANSFER_COUNT_DEFAULT, AGENT_EXECUTION_TRANSFER_COUNT_MAX, AGENT_EXECUTION_TRANSFER_COUNT_MIN, AGENT_IDS, AGGREGATE_OPERATORS, AI_OPERATIONS, AI_TOOL_TYPES, ANTHROPIC_MODELS, APIKeySecurityScheme, AgentApiInsert, AgentApiInsertSchema, AgentApiSelect, AgentApiSelectSchema, AgentApiUpdate, AgentApiUpdateSchema, AgentCapabilities, AgentCard, AgentConversationHistoryConfig, AgentInsert, AgentInsertSchema, AgentListResponse, AgentLogger, AgentMcpConfig, AgentMcpConfigInput, AgentProvider, AgentResponse, AgentScopeConfig, AgentSelect, AgentSelectSchema, AgentSkill, AgentStopWhen, AgentStopWhenSchema, AgentUpdate, AgentUpdateSchema, AgentWithinContextOfProjectResponse, AgentWithinContextOfProjectSchema, AllAgentSchema, AllAgentSelect, AnthropicModel, ApiKeyApiCreationResponse, ApiKeyApiCreationResponseSchema, ApiKeyApiInsert, ApiKeyApiInsertSchema, ApiKeyApiSelect, ApiKeyApiSelectSchema, ApiKeyApiUpdate, ApiKeyApiUpdateSchema, ApiKeyCreateResult, ApiKeyGenerationResult, ApiKeyInsert, ApiKeyInsertSchema, ApiKeyListResponse, ApiKeyResponse, ApiKeySelect, ApiKeySelectSchema, ApiKeyUpdate, ApiKeyUpdateSchema, Artifact, ArtifactComponentApiInsert, ArtifactComponentApiInsertSchema, ArtifactComponentApiSelect, ArtifactComponentApiSelectSchema, ArtifactComponentApiUpdate, ArtifactComponentApiUpdateSchema, ArtifactComponentArrayResponse, ArtifactComponentInsert, ArtifactComponentInsertSchema, ArtifactComponentListResponse, ArtifactComponentResponse, ArtifactComponentSelect, ArtifactComponentSelectSchema, ArtifactComponentUpdate, ArtifactComponentUpdateSchema, AuthorizationCodeOAuthFlow, CONTEXT_FETCHER_HTTP_TIMEOUT_MS_DEFAULT, CONVERSATION_HISTORY_DEFAULT_LIMIT, CONVERSATION_HISTORY_MAX_OUTPUT_TOKENS_DEFAULT, CanDelegateToExternalAgent, CanUseItem, CanUseItemSchema, CancelTaskRequest, CancelTaskResponse, CancelTaskSuccessResponse, ClientCredentialsOAuthFlow, CommonCreateErrorResponses, CommonDeleteErrorResponses, CommonGetErrorResponses, CommonUpdateErrorResponses, ComponentAssociationListResponse, ComponentAssociationSchema, ContentTypeNotSupportedError, ContextCache, ContextCacheApiInsert, ContextCacheApiInsertSchema, ContextCacheApiSelect, ContextCacheApiSelectSchema, ContextCacheApiUpdate, ContextCacheApiUpdateSchema, ContextCacheEntry, ContextCacheInsert, ContextCacheInsertSchema, ContextCacheSelect, ContextCacheSelectSchema, ContextCacheUpdate, ContextCacheUpdateSchema, ContextConfigApiInsert, ContextConfigApiInsertSchema, ContextConfigApiSelect, ContextConfigApiSelectSchema, ContextConfigApiUpdate, ContextConfigApiUpdateSchema, ContextConfigBuilder, ContextConfigBuilderOptions, ContextConfigInsert, ContextConfigInsertSchema, ContextConfigListResponse, ContextConfigResponse, ContextConfigSelect, ContextConfigSelectSchema, ContextConfigUpdate, ContextConfigUpdateSchema, ContextFetchDefinition, ContextFetcher, ContextResolutionOptions, ContextResolutionResult, ContextResolver, ContextResolverInterface, ContextValidationError, ContextValidationResult, ConversationApiInsert, ConversationApiInsertSchema, ConversationApiSelect, ConversationApiSelectSchema, ConversationApiUpdate, ConversationApiUpdateSchema, ConversationHistoryConfig, ConversationInsert, ConversationInsertSchema, ConversationListResponse, ConversationMetadata, ConversationResponse, ConversationScopeOptions, ConversationSelect, ConversationSelectSchema, ConversationUpdate, ConversationUpdateSchema, CorsConfig, CreateApiKeyParams, CreateCredentialInStoreRequestSchema, CreateCredentialInStoreResponseSchema, CredentialContext, CredentialData, CredentialReferenceApiInsert, CredentialReferenceApiInsertSchema, CredentialReferenceApiSelect, CredentialReferenceApiSelectSchema, CredentialReferenceApiUpdate, CredentialReferenceApiUpdateSchema, CredentialReferenceInsert, CredentialReferenceInsertSchema, CredentialReferenceListResponse, CredentialReferenceResponse, CredentialReferenceSelect, CredentialReferenceSelectSchema, CredentialReferenceUpdate, CredentialReferenceUpdateSchema, CredentialReferenceWithResources, CredentialResolverInput, CredentialScope, CredentialStore, CredentialStoreListResponseSchema, CredentialStoreReference, CredentialStoreRegistry, CredentialStoreSchema, CredentialStoreType, CredentialStuffer, DATA_SOURCES, DATA_TYPES, DELEGATION_FROM_SUB_AGENT_ID, DELEGATION_ID, DELEGATION_TO_SUB_AGENT_ID, DataComponentApiInsert, DataComponentApiInsertSchema, DataComponentApiSelect, DataComponentApiSelectSchema, DataComponentApiUpdate, DataComponentApiUpdateSchema, DataComponentArrayResponse, DataComponentBaseSchema, DataComponentInsert, DataComponentInsertSchema, DataComponentListResponse, DataComponentResponse, DataComponentSelect, DataComponentSelectSchema, DataComponentStreamEvent, DataComponentStreamEventSchema, DataComponentUpdate, DataComponentUpdateSchema, DataOperationDetails, DataOperationDetailsSchema, DataOperationEvent, DataOperationEventSchema, DataOperationStreamEvent, DataOperationStreamEventSchema, DataPart, DataSummaryStreamEvent, DataSummaryStreamEventSchema, DatabaseClient, DatabaseConfig, DelegationReturnedData, DelegationReturnedDataSchema, DelegationSentData, DelegationSentDataSchema, DotPaths, ERROR_DOCS_BASE_URL, ErrorCode, ErrorCodes, ErrorResponse, ErrorResponseSchema, ExecutionContext, ExistsResponseSchema, ExternalAgentApiInsert, ExternalAgentApiInsertSchema, ExternalAgentApiSelect, ExternalAgentApiSelectSchema, ExternalAgentApiUpdate, ExternalAgentApiUpdateSchema, ExternalAgentInsert, ExternalAgentInsertSchema, ExternalAgentListResponse, ExternalAgentResponse, ExternalAgentSelect, ExternalAgentSelectSchema, ExternalAgentUpdate, ExternalAgentUpdateSchema, ExternalSubAgentRelationApiInsert, ExternalSubAgentRelationApiInsertSchema, ExternalSubAgentRelationInsert, ExternalSubAgentRelationInsertSchema, FIELD_TYPES, FetchConfig, FetchConfigSchema, FetchDefinition, FetchDefinitionSchema, FetchResult, FileBase, FilePart, FileWithBytes, FileWithUri, Filter, FullAgentAgentInsert, FullAgentAgentInsertSchema, FullAgentDefinition, FullProjectDefinition, FullProjectDefinitionResponse, FullProjectDefinitionSchema, FunctionApiInsert, FunctionApiInsertSchema, FunctionApiSelect, FunctionApiSelectSchema, FunctionApiUpdate, FunctionApiUpdateSchema, FunctionInsert, FunctionInsertSchema, FunctionListResponse, FunctionResponse, FunctionSelect, FunctionSelectSchema, FunctionToolApiInsert, FunctionToolApiInsertSchema, FunctionToolApiSelect, FunctionToolApiSelectSchema, FunctionToolApiUpdate, FunctionToolApiUpdateSchema, FunctionToolConfig, FunctionToolConfigSchema, FunctionToolInsertSchema, FunctionToolListResponse, FunctionToolResponse, FunctionToolSelectSchema, FunctionToolUpdateSchema, FunctionUpdate, FunctionUpdateSchema, GOOGLE_MODELS, GenerateServiceTokenParams, GetTaskPushNotificationConfigRequest, GetTaskPushNotificationConfigResponse, GetTaskPushNotificationConfigSuccessResponse, GetTaskRequest, GetTaskResponse, GetTaskSuccessResponse, GoogleModel, HTTPAuthSecurityScheme, HTTP_REQUEST_PARTS, HeadersScopeSchema, HttpRequestPart, ImplicitOAuthFlow, InMemoryCredentialStore, InternalError, InvalidAgentResponseError, InvalidParamsError, InvalidRequestError, JSONParseError, JSONRPCError, JSONRPCErrorResponse, JSONRPCMessage, JSONRPCRequest, JSONRPCResult, KeyChainStore, LLMMessage, LedgerArtifactApiInsert, LedgerArtifactApiInsertSchema, LedgerArtifactApiSelect, LedgerArtifactApiSelectSchema, LedgerArtifactApiUpdate, LedgerArtifactApiUpdateSchema, LedgerArtifactInsert, LedgerArtifactInsertSchema, LedgerArtifactSelect, LedgerArtifactSelectSchema, LedgerArtifactUpdate, LedgerArtifactUpdateSchema, ListResponseSchema, LoggerFactoryConfig, MAX_ID_LENGTH, MCPCatalogListResponse, MCPServerType, MCPToolConfig, MCPToolConfigSchema, MCPTransportType, MCP_TOOL_CONNECTION_TIMEOUT_MS, MCP_TOOL_INITIAL_RECONNECTION_DELAY_MS, MCP_TOOL_MAX_RECONNECTION_DELAY_MS, MCP_TOOL_MAX_RETRIES, MCP_TOOL_RECONNECTION_DELAY_GROWTH_FACTOR, MIN_ID_LENGTH, McpAuthType, McpClient, McpClientOptions, McpOAuthFlowResult, McpSSEConfig, McpServerAuth, McpServerCapabilities, McpServerConfig, McpStreamableHttpConfig, McpTokenExchangeResult, McpTool, McpToolDefinition, McpToolDefinitionSchema, McpToolListResponse, McpToolResponse, McpToolSchema, McpToolSelection, McpTransportConfig, McpTransportConfigSchema, Message, MessageApiInsert, MessageApiInsertSchema, MessageApiSelect, MessageApiSelectSchema, MessageApiUpdate, MessageApiUpdateSchema, MessageContent, MessageInsert, MessageInsertSchema, MessageListResponse, MessageMetadata, MessageMode, MessagePart, MessageResponse, MessageRole, MessageSelect, MessageSelectSchema, MessageSendConfiguration, MessageSendParams, MessageType, MessageUpdate, MessageUpdateSchema, MessageVisibility, MethodNotFoundError, MissingRequiredVariableError, ModelFactory, ModelName, ModelSchema, ModelSettings, ModelSettingsSchema, Models, NangoCredentialStore, OAuth2SecurityScheme, OAuthCallbackQuerySchema, OAuthConfig, OAuthFlows, OAuthLoginQuerySchema, OPENAI_MODELS, OPERATORS, ORDER_DIRECTIONS, OpenAIModel, OpenIdConnectSecurityScheme, PANEL_TYPES, Pagination, PaginationConfig, PaginationQueryParamsSchema, PaginationResult, PaginationSchema, ParsedHttpRequest, Part, PartBase, PasswordOAuthFlow, PinoLogger, PinoLoggerConfig, PrebuiltMCPServerSchema, ProblemDetails, ProjectApiInsert, ProjectApiInsertSchema, ProjectApiSelect, ProjectApiSelectSchema, ProjectApiUpdate, ProjectApiUpdateSchema, ProjectInfo, ProjectInsert, ProjectInsertSchema, ProjectListResponse, ProjectLogger, ProjectModelSchema, ProjectModels, ProjectResourceCounts, ProjectResponse, ProjectScopeConfig, ProjectSelect, ProjectSelectSchema, ProjectUpdate, ProjectUpdateSchema, PropsValidationResult, PushNotificationAuthenticationInfo, PushNotificationConfig, PushNotificationNotSupportedError, QUERY_DEFAULTS, QUERY_EXPRESSIONS, QUERY_FIELD_CONFIGS, QUERY_TYPES, REDUCE_OPERATIONS, RelatedAgentInfoListResponse, RelatedAgentInfoSchema, RemovedResponseSchema, RenderValidationResult, ResolvedContext, SPAN_KEYS, SPAN_NAMES, STATUS_UPDATE_MAX_INTERVAL_SECONDS, STATUS_UPDATE_MAX_NUM_EVENTS, SUB_AGENT_TURN_GENERATION_STEPS_DEFAULT, SUB_AGENT_TURN_GENERATION_STEPS_MAX, SUB_AGENT_TURN_GENERATION_STEPS_MIN, SecurityScheme, SecuritySchemeBase, SendMessageRequest, SendMessageResponse, SendMessageSuccessResponse, SendStreamingMessageRequest, SendStreamingMessageResponse, SendStreamingMessageSuccessResponse, ServerConfig, ServerOptions, ServiceTokenPayload, SetTaskPushNotificationConfigRequest, SetTaskPushNotificationConfigResponse, SetTaskPushNotificationConfigSuccessResponse, SignedTempToken, SingleResponseSchema, StatusComponent, StatusComponentSchema, StatusUpdateSchema, StatusUpdateSettings, StopWhen, StopWhenSchema, StreamErrorEvent, StreamErrorEventSchema, StreamEvent, StreamEventSchema, StreamFinishEvent, StreamFinishEventSchema, SubAgentApiInsert, SubAgentApiInsertSchema, SubAgentApiSelect, SubAgentApiSelectSchema, SubAgentApiUpdate, SubAgentApiUpdateSchema, SubAgentArtifactComponentApiInsert, SubAgentArtifactComponentApiInsertSchema, SubAgentArtifactComponentApiSelect, SubAgentArtifactComponentApiSelectSchema, SubAgentArtifactComponentApiUpdate, SubAgentArtifactComponentApiUpdateSchema, SubAgentArtifactComponentInsert, SubAgentArtifactComponentInsertSchema, SubAgentArtifactComponentListResponse, SubAgentArtifactComponentResponse, SubAgentArtifactComponentSelect, SubAgentArtifactComponentSelectSchema, SubAgentArtifactComponentUpdate, SubAgentArtifactComponentUpdateSchema, SubAgentDataComponentApiInsert, SubAgentDataComponentApiInsertSchema, SubAgentDataComponentApiSelect, SubAgentDataComponentApiSelectSchema, SubAgentDataComponentApiUpdate, SubAgentDataComponentApiUpdateSchema, SubAgentDataComponentInsert, SubAgentDataComponentInsertSchema, SubAgentDataComponentListResponse, SubAgentDataComponentResponse, SubAgentDataComponentSelect, SubAgentDataComponentSelectSchema, SubAgentDataComponentUpdate, SubAgentDataComponentUpdateSchema, SubAgentDefinition, SubAgentExternalAgentRelationApiInsert, SubAgentExternalAgentRelationApiInsertSchema, SubAgentExternalAgentRelationApiSelect, SubAgentExternalAgentRelationApiSelectSchema, SubAgentExternalAgentRelationApiUpdate, SubAgentExternalAgentRelationApiUpdateSchema, SubAgentExternalAgentRelationInsert, SubAgentExternalAgentRelationInsertSchema, SubAgentExternalAgentRelationListResponse, SubAgentExternalAgentRelationResponse, SubAgentExternalAgentRelationSelect, SubAgentExternalAgentRelationSelectSchema, SubAgentExternalAgentRelationUpdate, SubAgentExternalAgentRelationUpdateSchema, SubAgentInsert, SubAgentInsertSchema, SubAgentIsDefaultError, SubAgentListResponse, SubAgentRelationApiInsert, SubAgentRelationApiInsertSchema, SubAgentRelationApiSelect, SubAgentRelationApiSelectSchema, SubAgentRelationApiUpdate, SubAgentRelationApiUpdateSchema, SubAgentRelationInsert, SubAgentRelationInsertSchema, SubAgentRelationListResponse, SubAgentRelationQuery, SubAgentRelationQuerySchema, SubAgentRelationResponse, SubAgentRelationSelect, SubAgentRelationSelectSchema, SubAgentRelationUpdate, SubAgentRelationUpdateSchema, SubAgentResponse, SubAgentScopeConfig, SubAgentSelect, SubAgentSelectSchema, SubAgentStopWhen, SubAgentStopWhenSchema, SubAgentTeamAgentRelationApiInsert, SubAgentTeamAgentRelationApiInsertSchema, SubAgentTeamAgentRelationApiSelect, SubAgentTeamAgentRelationApiSelectSchema, SubAgentTeamAgentRelationApiUpdate, SubAgentTeamAgentRelationApiUpdateSchema, SubAgentTeamAgentRelationInsert, SubAgentTeamAgentRelationInsertSchema, SubAgentTeamAgentRelationListResponse, SubAgentTeamAgentRelationResponse, SubAgentTeamAgentRelationSelect, SubAgentTeamAgentRelationSelectSchema, SubAgentTeamAgentRelationUpdate, SubAgentTeamAgentRelationUpdateSchema, SubAgentToolRelationApiInsert, SubAgentToolRelationApiInsertSchema, SubAgentToolRelationApiSelect, SubAgentToolRelationApiSelectSchema, SubAgentToolRelationApiUpdate, SubAgentToolRelationApiUpdateSchema, SubAgentToolRelationInsert, SubAgentToolRelationInsertSchema, SubAgentToolRelationListResponse, SubAgentToolRelationResponse, SubAgentToolRelationSelect, SubAgentToolRelationSelectSchema, SubAgentToolRelationUpdate, SubAgentToolRelationUpdateSchema, SubAgentUpdate, SubAgentUpdateSchema, SummaryEvent, TOOL_STATUS_VALUES, TRANSFER_FROM_SUB_AGENT_ID, TRANSFER_TO_SUB_AGENT_ID, Task, TaskApiInsert, TaskApiInsertSchema, TaskApiSelect, TaskApiSelectSchema, TaskApiUpdate, TaskApiUpdateSchema, TaskArtifact, TaskArtifactUpdateEvent, TaskIdParams, TaskInsert, TaskInsertSchema, TaskMetadataConfig, TaskNotCancelableError, TaskNotFoundError, TaskPushNotificationConfig, TaskQueryParams, TaskRelationApiInsert, TaskRelationApiInsertSchema, TaskRelationApiSelect, TaskRelationApiSelectSchema, TaskRelationApiUpdate, TaskRelationApiUpdateSchema, TaskRelationInsert, TaskRelationInsertSchema, TaskRelationSelect, TaskRelationSelectSchema, TaskRelationUpdate, TaskRelationUpdateSchema, TaskResubscriptionRequest, TaskSelect, TaskSelectSchema, TaskState, TaskStatus, TaskStatusUpdateEvent, TaskUpdate, TaskUpdateSchema, TeamAgentSchema, TempTokenPayload, TemplateContext, TemplateEngine, TemplateRenderOptions, TenantIdParamsSchema, TenantParamsSchema, TenantProjectAgentIdParamsSchema, TenantProjectAgentParamsSchema, TenantProjectAgentSubAgentIdParamsSchema, TenantProjectAgentSubAgentParamsSchema, TenantProjectIdParamsSchema, TenantProjectParamsSchema, TextDeltaEvent, TextDeltaEventSchema, TextEndEvent, TextEndEventSchema, TextPart, TextStartEvent, TextStartEventSchema, ThirdPartyMCPServerResponse, ToolApiInsert, ToolApiInsertSchema, ToolApiSelect, ToolApiSelectSchema, ToolApiUpdate, ToolApiUpdateSchema, ToolDefinition, ToolInsert, ToolInsertSchema, ToolListResponse, ToolMcpConfig, ToolPolicy, ToolResponse, ToolSelect, ToolSelectSchema, ToolServerCapabilities, ToolStatusSchema, ToolUpdate, ToolUpdateSchema, TransferData, TransferDataSchema, UNKNOWN_VALUE, URL_SAFE_ID_PATTERN, UnsupportedOperationError, VALIDATION_AGENT_PROMPT_MAX_CHARS, VALIDATION_SUB_AGENT_PROMPT_MAX_CHARS, VALID_RELATION_TYPES, VerifyServiceTokenResult, account, addFunctionToolToSubAgent, addLedgerArtifacts, addToolToAgent, addUserToOrganization, agentHasArtifactComponents, agentRelations, agentToolRelationsRelations, agents, apiFetch, apiKeys, apiKeysRelations, artifactComponents, artifactComponentsRelations, associateArtifactComponentWithAgent, associateDataComponentWithAgent, canDelegateToExternalAgentSchema, canDelegateToTeamAgentSchema, cleanupTenantCache, cleanupTestDatabase, clearContextConfigCache, clearConversationCache, closeTestDatabase, commonCreateErrorResponses, commonDeleteErrorResponses, commonGetErrorResponses, commonUpdateErrorResponses, contextCache, contextCacheRelations, contextConfig, contextConfigs, contextConfigsRelations, contextValidationMiddleware, conversations, conversationsRelations, convertZodToJsonSchema, convertZodToJsonSchemaWithPreview, countApiKeys, countArtifactComponents, countArtifactComponentsForAgent, countContextConfigs, countCredentialReferences, countDataComponents, countExternalAgents, countLedgerArtifactsByTask, countMessagesByConversation, countProjects, createAgent, createAgentToolRelation, createApiError, createApiKey, createArtifactComponent, createContextConfig, createConversation, createCredentialReference, createDataComponent, createDatabaseClient, createDefaultCredentialStores, createExecutionContext, createExternalAgent, createFullAgentServerSide, createFullProjectServerSide, createFunctionTool, createKeyChainStore, createMessage, createNangoCredentialStore, createOrGetConversation, createProject, createSubAgent, createSubAgentExternalAgentRelation, createSubAgentRelation, createSubAgentTeamAgentRelation, createTask, createTestDatabaseClient, createTestOrganization, createTestProject, createTool, createValidatedDataAccess, credentialReferences, credentialReferencesRelations, dataComponents, dataComponentsRelations, dbResultToMcpTool, deleteAgent, deleteAgentArtifactComponentRelationByAgent, deleteAgentDataComponentRelationByAgent, deleteAgentRelationsByAgent, deleteAgentToolRelation, deleteAgentToolRelationByAgent, deleteApiKey, deleteArtifactComponent, deleteContextConfig, deleteConversation, deleteCredentialReference, deleteDataComponent, deleteExternalAgent, deleteFullAgent, deleteFullProject, deleteFunction, deleteFunctionTool, deleteLedgerArtifactsByContext, deleteLedgerArtifactsByTask, deleteMessage, deleteProject, deleteSubAgent, deleteSubAgentExternalAgentRelation, deleteSubAgentExternalAgentRelationsByAgent, deleteSubAgentExternalAgentRelationsBySubAgent, deleteSubAgentRelation, deleteSubAgentTeamAgentRelation, deleteSubAgentTeamAgentRelationsByAgent, deleteSubAgentTeamAgentRelationsBySubAgent, deleteTool, detectAuthenticationRequired, determineContextTrigger, deviceCode, errorResponseSchema, errorSchemaFactory, exchangeMcpAuthorizationCode, executionLimitsSharedDefaults, externalAgentExists, externalAgentUrlExists, externalAgents, externalAgentsRelations, extractComposioServerId, extractPreviewFields, extractPublicId, fetchComponentRelationships, fetchComposioServers, fetchDefinition, fetchSingleComposioServer, formatMessagesForLLM, formatMessagesForLLMContext, functionTools, functionToolsRelations, functions, functionsRelations, generateAndCreateApiKey, generateApiKey, generateId, generateIdFromName, generateServiceToken, getActiveAgentForConversation, getAgentById, getAgentRelationById, getAgentRelationByParams, getAgentRelations, getAgentRelationsByAgent, getAgentRelationsBySource, getAgentSubAgentInfos, getAgentToolRelationByAgent, getAgentToolRelationById, getAgentToolRelationByTool, getAgentWithDefaultSubAgent, getAgentsForTool, getAgentsUsingArtifactComponent, getAgentsUsingDataComponent, getApiKeyById, getApiKeyByPublicId, getArtifactComponentById, getArtifactComponentsForAgent, getCacheEntry, getCachedValidator, getComposioOAuthRedirectUrl, getComposioUserId, getContextConfigById, getContextConfigCacheEntries, getConversation, getConversationCacheEntries, getConversationHistory, getConversationId, getCredentialReference, getCredentialReferenceById, getCredentialReferenceWithResources, getCredentialStoreLookupKeyFromRetrievalParams, getDataComponent, getDataComponentsForAgent, getExternalAgent, getExternalAgentByUrl, getExternalAgentsForSubAgent, getFullAgent, getFullAgentDefinition, getFullProject, getFunction, getFunctionToolById, getFunctionToolsForSubAgent, getLedgerArtifacts, getLedgerArtifactsByContext, getLogger, getMessageById, getMessagesByConversation, getMessagesByTask, getPendingInvitationsByEmail, getProject, getProjectResourceCounts, getRelatedAgentsForAgent, getRequestExecutionContext, getSubAgentById, getSubAgentExternalAgentRelationById, getSubAgentExternalAgentRelationByParams, getSubAgentExternalAgentRelations, getSubAgentExternalAgentRelationsByAgent, getSubAgentExternalAgentRelationsByExternalAgent, getSubAgentRelationsByTarget, getSubAgentTeamAgentRelationById, getSubAgentTeamAgentRelationByParams, getSubAgentTeamAgentRelations, getSubAgentTeamAgentRelationsByAgent, getSubAgentTeamAgentRelationsByTeamAgent, getSubAgentsByIds, getSubAgentsForExternalAgent, getSubAgentsForTeamAgent, getTask, getTeamAgentsForSubAgent, getToolById, getToolsForAgent, getTracer, getUserByEmail, getUserById, getUserOrganizations, getUserScopedCredentialReference, getVisibleMessages, handleApiError, handleContextConfigChange, handleContextResolution, hasApiKey, hasContextConfig, hasCredentialReference, hashApiKey, headers, initiateMcpOAuthFlow, invalidateHeadersCache, invalidateInvocationDefinitionsCache, invitation, isApiKeyExpired, isArtifactComponentAssociatedWithAgent, isComposioMCPServerAuthenticated, isDataComponentAssociatedWithAgent, isThirdPartyMCPServerAuthenticated, isValidHttpRequest, isValidResourceId, isZodSchema, jsonSchemaToZod, ledgerArtifacts, ledgerArtifactsRelations, listAgentRelations, listAgentToolRelations, listAgents, listAgentsPaginated, listApiKeys, listApiKeysPaginated, listArtifactComponents, listArtifactComponentsPaginated, listContextConfigs, listContextConfigsPaginated, listConversations, listCredentialReferences, listCredentialReferencesPaginated, listDataComponents, listDataComponentsPaginated, listExternalAgents, listExternalAgentsPaginated, listFunctionTools, listFunctions, listFunctionsPaginated, listMessages, listProjects, listProjectsPaginated, listSubAgentExternalAgentRelations, listSubAgentTeamAgentRelations, listSubAgents, listSubAgentsPaginated, listTaskIdsByContextId, listTools, loadEnvironmentFiles, loggerFactory, maskApiKey, member, messages, messagesRelations, normalizeDateString, normalizeToolSelections, organization, parseEmbeddedJson, preview, problemDetailsSchema, projectExists, projectExistsInTable, projectHasResources, projects, projectsRelations, removeArtifactComponentFromAgent, removeDataComponentFromAgent, removeToolFromAgent, resourceIdSchema, schemaValidationDefaults, session, setActiveAgentForConversation, setActiveAgentForThread, setCacheEntry, setSpanWithError, signTempToken, ssoProvider, subAgentArtifactComponents, subAgentArtifactComponentsRelations, subAgentDataComponents, subAgentDataComponentsRelations, subAgentExternalAgentRelations, subAgentExternalAgentRelationsRelations, subAgentFunctionToolRelations, subAgentFunctionToolRelationsRelations, subAgentRelations, subAgentRelationsRelations, subAgentTeamAgentRelations, subAgentTeamAgentRelationsRelations, subAgentToolRelations, subAgents, subAgentsRelations, taskRelations, taskRelationsRelations, tasks, tasksRelations, toISODateString, tools, toolsRelations, updateAgent, updateAgentRelation, updateAgentToolRelation, updateApiKey, updateApiKeyLastUsed, updateArtifactComponent, updateContextConfig, updateConversation, updateConversationActiveAgent, updateCredentialReference, updateDataComponent, updateExternalAgent, updateFullAgentServerSide, updateFullProjectServerSide, updateFunctionTool, updateMessage, updateProject, updateSubAgent, updateSubAgentExternalAgentRelation, updateSubAgentFunctionToolRelation, updateSubAgentTeamAgentRelation, updateTask, updateTool, upsertAgent, upsertAgentArtifactComponentRelation, upsertAgentDataComponentRelation, upsertArtifactComponent, upsertContextConfig, upsertCredentialReference, upsertDataComponent, upsertExternalAgent, upsertFunction, upsertFunctionTool, upsertLedgerArtifact, upsertSubAgent, upsertSubAgentExternalAgentRelation, upsertSubAgentFunctionToolRelation, upsertSubAgentRelation, upsertSubAgentTeamAgentRelation, upsertSubAgentToolRelation, upsertTool, user, validateAgainstJsonSchema, validateAgentRelationships, validateAgentStructure, validateAndGetApiKey, validateAndTypeAgentData, validateApiKey, validateArtifactComponentReferences, validateDataComponentReferences, validateHeaders, validateHttpRequestHeaders, validateProjectExists, validatePropsAsJsonSchema, validateRender, validateSubAgent, validateSubAgentExternalAgentRelations, validateTargetAgent, validateTenantId, validateToolReferences, validationHelper, verification, verifyAuthorizationHeader, verifyServiceToken, verifyTempToken, withProjectValidation };
93
+ export { A2AError, A2AMessageMetadata, A2AMessageMetadataSchema, A2ARequest, A2AResponse, ACTIVITY_NAMES, ACTIVITY_STATUS, ACTIVITY_TYPES, AGENT_EXECUTION_TRANSFER_COUNT_DEFAULT, AGENT_EXECUTION_TRANSFER_COUNT_MAX, AGENT_EXECUTION_TRANSFER_COUNT_MIN, AGENT_IDS, AGGREGATE_OPERATORS, AI_OPERATIONS, AI_TOOL_TYPES, ANTHROPIC_MODELS, APIKeySecurityScheme, AgentApiInsert, AgentApiInsertSchema, AgentApiSelect, AgentApiSelectSchema, AgentApiUpdate, AgentApiUpdateSchema, AgentCapabilities, AgentCard, AgentConversationHistoryConfig, AgentInsert, AgentInsertSchema, AgentListResponse, AgentLogger, AgentMcpConfig, AgentMcpConfigInput, AgentProvider, AgentResponse, AgentScopeConfig, AgentSelect, AgentSelectSchema, AgentSkill, AgentStopWhen, AgentStopWhenSchema, AgentUpdate, AgentUpdateSchema, AgentWithinContextOfProjectResponse, AgentWithinContextOfProjectSchema, AllAgentSchema, AllAgentSelect, AnthropicModel, ApiKeyApiCreationResponse, ApiKeyApiCreationResponseSchema, ApiKeyApiInsert, ApiKeyApiInsertSchema, ApiKeyApiSelect, ApiKeyApiSelectSchema, ApiKeyApiUpdate, ApiKeyApiUpdateSchema, ApiKeyCreateResult, ApiKeyGenerationResult, ApiKeyInsert, ApiKeyInsertSchema, ApiKeyListResponse, ApiKeyResponse, ApiKeySelect, ApiKeySelectSchema, ApiKeyUpdate, ApiKeyUpdateSchema, Artifact, ArtifactComponentApiInsert, ArtifactComponentApiInsertSchema, ArtifactComponentApiSelect, ArtifactComponentApiSelectSchema, ArtifactComponentApiUpdate, ArtifactComponentApiUpdateSchema, ArtifactComponentArrayResponse, ArtifactComponentInsert, ArtifactComponentInsertSchema, ArtifactComponentListResponse, ArtifactComponentResponse, ArtifactComponentSelect, ArtifactComponentSelectSchema, ArtifactComponentUpdate, ArtifactComponentUpdateSchema, AuthorizationCodeOAuthFlow, CONTEXT_FETCHER_HTTP_TIMEOUT_MS_DEFAULT, CONVERSATION_HISTORY_DEFAULT_LIMIT, CONVERSATION_HISTORY_MAX_OUTPUT_TOKENS_DEFAULT, CanDelegateToExternalAgent, CanUseItem, CanUseItemSchema, CancelTaskRequest, CancelTaskResponse, CancelTaskSuccessResponse, ClientCredentialsOAuthFlow, CommonCreateErrorResponses, CommonDeleteErrorResponses, CommonGetErrorResponses, CommonUpdateErrorResponses, ComponentAssociationListResponse, ComponentAssociationSchema, ContentTypeNotSupportedError, ContextCache, ContextCacheApiInsert, ContextCacheApiInsertSchema, ContextCacheApiSelect, ContextCacheApiSelectSchema, ContextCacheApiUpdate, ContextCacheApiUpdateSchema, ContextCacheEntry, ContextCacheInsert, ContextCacheInsertSchema, ContextCacheSelect, ContextCacheSelectSchema, ContextCacheUpdate, ContextCacheUpdateSchema, ContextConfigApiInsert, ContextConfigApiInsertSchema, ContextConfigApiSelect, ContextConfigApiSelectSchema, ContextConfigApiUpdate, ContextConfigApiUpdateSchema, ContextConfigBuilder, ContextConfigBuilderOptions, ContextConfigInsert, ContextConfigInsertSchema, ContextConfigListResponse, ContextConfigResponse, ContextConfigSelect, ContextConfigSelectSchema, ContextConfigUpdate, ContextConfigUpdateSchema, ContextFetchDefinition, ContextFetcher, ContextResolutionOptions, ContextResolutionResult, ContextResolver, ContextResolverInterface, ContextValidationError, ContextValidationResult, ConversationApiInsert, ConversationApiInsertSchema, ConversationApiSelect, ConversationApiSelectSchema, ConversationApiUpdate, ConversationApiUpdateSchema, ConversationHistoryConfig, ConversationInsert, ConversationInsertSchema, ConversationListResponse, ConversationMetadata, ConversationResponse, ConversationScopeOptions, ConversationSelect, ConversationSelectSchema, ConversationUpdate, ConversationUpdateSchema, CorsConfig, CreateApiKeyParams, CreateCredentialInStoreRequestSchema, CreateCredentialInStoreResponseSchema, CredentialContext, CredentialData, CredentialReferenceApiInsert, CredentialReferenceApiInsertSchema, CredentialReferenceApiSelect, CredentialReferenceApiSelectSchema, CredentialReferenceApiUpdate, CredentialReferenceApiUpdateSchema, CredentialReferenceInsert, CredentialReferenceInsertSchema, CredentialReferenceListResponse, CredentialReferenceResponse, CredentialReferenceSelect, CredentialReferenceSelectSchema, CredentialReferenceUpdate, CredentialReferenceUpdateSchema, CredentialReferenceWithResources, CredentialResolverInput, CredentialScope, CredentialStore, CredentialStoreListResponseSchema, CredentialStoreReference, CredentialStoreRegistry, CredentialStoreSchema, CredentialStoreType, CredentialStuffer, DATA_SOURCES, DATA_TYPES, DEFAULT_NANGO_STORE_ID, DELEGATION_FROM_SUB_AGENT_ID, DELEGATION_ID, DELEGATION_TO_SUB_AGENT_ID, DataComponentApiInsert, DataComponentApiInsertSchema, DataComponentApiSelect, DataComponentApiSelectSchema, DataComponentApiUpdate, DataComponentApiUpdateSchema, DataComponentArrayResponse, DataComponentBaseSchema, DataComponentInsert, DataComponentInsertSchema, DataComponentListResponse, DataComponentResponse, DataComponentSelect, DataComponentSelectSchema, DataComponentStreamEvent, DataComponentStreamEventSchema, DataComponentUpdate, DataComponentUpdateSchema, DataOperationDetails, DataOperationDetailsSchema, DataOperationEvent, DataOperationEventSchema, DataOperationStreamEvent, DataOperationStreamEventSchema, DataPart, DataSummaryStreamEvent, DataSummaryStreamEventSchema, DatabaseClient, DatabaseConfig, DelegationReturnedData, DelegationReturnedDataSchema, DelegationSentData, DelegationSentDataSchema, DotPaths, ERROR_DOCS_BASE_URL, ErrorCode, ErrorCodes, ErrorResponse, ErrorResponseSchema, ExecutionContext, ExistsResponseSchema, ExternalAgentApiInsert, ExternalAgentApiInsertSchema, ExternalAgentApiSelect, ExternalAgentApiSelectSchema, ExternalAgentApiUpdate, ExternalAgentApiUpdateSchema, ExternalAgentInsert, ExternalAgentInsertSchema, ExternalAgentListResponse, ExternalAgentResponse, ExternalAgentSelect, ExternalAgentSelectSchema, ExternalAgentUpdate, ExternalAgentUpdateSchema, ExternalSubAgentRelationApiInsert, ExternalSubAgentRelationApiInsertSchema, ExternalSubAgentRelationInsert, ExternalSubAgentRelationInsertSchema, FIELD_TYPES, FetchConfig, FetchConfigSchema, FetchDefinition, FetchDefinitionSchema, FetchResult, FileBase, FilePart, FileWithBytes, FileWithUri, Filter, FullAgentAgentInsert, FullAgentAgentInsertSchema, FullAgentDefinition, FullProjectDefinition, FullProjectDefinitionResponse, FullProjectDefinitionSchema, FunctionApiInsert, FunctionApiInsertSchema, FunctionApiSelect, FunctionApiSelectSchema, FunctionApiUpdate, FunctionApiUpdateSchema, FunctionInsert, FunctionInsertSchema, FunctionListResponse, FunctionResponse, FunctionSelect, FunctionSelectSchema, FunctionToolApiInsert, FunctionToolApiInsertSchema, FunctionToolApiSelect, FunctionToolApiSelectSchema, FunctionToolApiUpdate, FunctionToolApiUpdateSchema, FunctionToolConfig, FunctionToolConfigSchema, FunctionToolInsertSchema, FunctionToolListResponse, FunctionToolResponse, FunctionToolSelectSchema, FunctionToolUpdateSchema, FunctionUpdate, FunctionUpdateSchema, GOOGLE_MODELS, GenerateServiceTokenParams, GetTaskPushNotificationConfigRequest, GetTaskPushNotificationConfigResponse, GetTaskPushNotificationConfigSuccessResponse, GetTaskRequest, GetTaskResponse, GetTaskSuccessResponse, GoogleModel, HTTPAuthSecurityScheme, HTTP_REQUEST_PARTS, HeadersScopeSchema, HttpRequestPart, ImplicitOAuthFlow, InMemoryCredentialStore, InternalError, InvalidAgentResponseError, InvalidParamsError, InvalidRequestError, JSONParseError, JSONRPCError, JSONRPCErrorResponse, JSONRPCMessage, JSONRPCRequest, JSONRPCResult, KeyChainStore, LLMMessage, LedgerArtifactApiInsert, LedgerArtifactApiInsertSchema, LedgerArtifactApiSelect, LedgerArtifactApiSelectSchema, LedgerArtifactApiUpdate, LedgerArtifactApiUpdateSchema, LedgerArtifactInsert, LedgerArtifactInsertSchema, LedgerArtifactSelect, LedgerArtifactSelectSchema, LedgerArtifactUpdate, LedgerArtifactUpdateSchema, ListResponseSchema, LoggerFactoryConfig, MAX_ID_LENGTH, MCPCatalogListResponse, MCPServerType, MCPToolConfig, MCPToolConfigSchema, MCPTransportType, MCP_TOOL_CONNECTION_TIMEOUT_MS, MCP_TOOL_INITIAL_RECONNECTION_DELAY_MS, MCP_TOOL_MAX_RECONNECTION_DELAY_MS, MCP_TOOL_MAX_RETRIES, MCP_TOOL_RECONNECTION_DELAY_GROWTH_FACTOR, MIN_ID_LENGTH, McpAuthType, McpClient, McpClientOptions, McpOAuthFlowResult, McpSSEConfig, McpServerAuth, McpServerCapabilities, McpServerConfig, McpStreamableHttpConfig, McpTokenExchangeResult, McpTool, McpToolDefinition, McpToolDefinitionSchema, McpToolListResponse, McpToolResponse, McpToolSchema, McpToolSelection, McpTransportConfig, McpTransportConfigSchema, Message, MessageApiInsert, MessageApiInsertSchema, MessageApiSelect, MessageApiSelectSchema, MessageApiUpdate, MessageApiUpdateSchema, MessageContent, MessageInsert, MessageInsertSchema, MessageListResponse, MessageMetadata, MessageMode, MessagePart, MessageResponse, MessageRole, MessageSelect, MessageSelectSchema, MessageSendConfiguration, MessageSendParams, MessageType, MessageUpdate, MessageUpdateSchema, MessageVisibility, MethodNotFoundError, MissingRequiredVariableError, ModelFactory, ModelName, ModelSchema, ModelSettings, ModelSettingsSchema, Models, NangoCredentialStore, OAuth2SecurityScheme, OAuthCallbackQuerySchema, OAuthConfig, OAuthFlows, OAuthLoginQuerySchema, OPENAI_MODELS, OPERATORS, ORDER_DIRECTIONS, OpenAIModel, OpenIdConnectSecurityScheme, PANEL_TYPES, Pagination, PaginationConfig, PaginationQueryParamsSchema, PaginationResult, PaginationSchema, ParsedHttpRequest, Part, PartBase, PasswordOAuthFlow, PinoLogger, PinoLoggerConfig, PrebuiltMCPServerSchema, ProblemDetails, ProjectApiInsert, ProjectApiInsertSchema, ProjectApiSelect, ProjectApiSelectSchema, ProjectApiUpdate, ProjectApiUpdateSchema, ProjectInfo, ProjectInsert, ProjectInsertSchema, ProjectListResponse, ProjectLogger, ProjectModelSchema, ProjectModels, ProjectResourceCounts, ProjectResponse, ProjectScopeConfig, ProjectSelect, ProjectSelectSchema, ProjectUpdate, ProjectUpdateSchema, PropsValidationResult, PushNotificationAuthenticationInfo, PushNotificationConfig, PushNotificationNotSupportedError, QUERY_DEFAULTS, QUERY_EXPRESSIONS, QUERY_FIELD_CONFIGS, QUERY_TYPES, REDUCE_OPERATIONS, RelatedAgentInfoListResponse, RelatedAgentInfoSchema, RemovedResponseSchema, RenderValidationResult, ResolvedContext, SPAN_KEYS, SPAN_NAMES, STATUS_UPDATE_MAX_INTERVAL_SECONDS, STATUS_UPDATE_MAX_NUM_EVENTS, SUB_AGENT_TURN_GENERATION_STEPS_DEFAULT, SUB_AGENT_TURN_GENERATION_STEPS_MAX, SUB_AGENT_TURN_GENERATION_STEPS_MIN, SecurityScheme, SecuritySchemeBase, SendMessageRequest, SendMessageResponse, SendMessageSuccessResponse, SendStreamingMessageRequest, SendStreamingMessageResponse, SendStreamingMessageSuccessResponse, ServerConfig, ServerOptions, ServiceTokenPayload, SetTaskPushNotificationConfigRequest, SetTaskPushNotificationConfigResponse, SetTaskPushNotificationConfigSuccessResponse, SignedTempToken, SingleResponseSchema, StatusComponent, StatusComponentSchema, StatusUpdateSchema, StatusUpdateSettings, StopWhen, StopWhenSchema, StreamErrorEvent, StreamErrorEventSchema, StreamEvent, StreamEventSchema, StreamFinishEvent, StreamFinishEventSchema, SubAgentApiInsert, SubAgentApiInsertSchema, SubAgentApiSelect, SubAgentApiSelectSchema, SubAgentApiUpdate, SubAgentApiUpdateSchema, SubAgentArtifactComponentApiInsert, SubAgentArtifactComponentApiInsertSchema, SubAgentArtifactComponentApiSelect, SubAgentArtifactComponentApiSelectSchema, SubAgentArtifactComponentApiUpdate, SubAgentArtifactComponentApiUpdateSchema, SubAgentArtifactComponentInsert, SubAgentArtifactComponentInsertSchema, SubAgentArtifactComponentListResponse, SubAgentArtifactComponentResponse, SubAgentArtifactComponentSelect, SubAgentArtifactComponentSelectSchema, SubAgentArtifactComponentUpdate, SubAgentArtifactComponentUpdateSchema, SubAgentDataComponentApiInsert, SubAgentDataComponentApiInsertSchema, SubAgentDataComponentApiSelect, SubAgentDataComponentApiSelectSchema, SubAgentDataComponentApiUpdate, SubAgentDataComponentApiUpdateSchema, SubAgentDataComponentInsert, SubAgentDataComponentInsertSchema, SubAgentDataComponentListResponse, SubAgentDataComponentResponse, SubAgentDataComponentSelect, SubAgentDataComponentSelectSchema, SubAgentDataComponentUpdate, SubAgentDataComponentUpdateSchema, SubAgentDefinition, SubAgentExternalAgentRelationApiInsert, SubAgentExternalAgentRelationApiInsertSchema, SubAgentExternalAgentRelationApiSelect, SubAgentExternalAgentRelationApiSelectSchema, SubAgentExternalAgentRelationApiUpdate, SubAgentExternalAgentRelationApiUpdateSchema, SubAgentExternalAgentRelationInsert, SubAgentExternalAgentRelationInsertSchema, SubAgentExternalAgentRelationListResponse, SubAgentExternalAgentRelationResponse, SubAgentExternalAgentRelationSelect, SubAgentExternalAgentRelationSelectSchema, SubAgentExternalAgentRelationUpdate, SubAgentExternalAgentRelationUpdateSchema, SubAgentInsert, SubAgentInsertSchema, SubAgentIsDefaultError, SubAgentListResponse, SubAgentRelationApiInsert, SubAgentRelationApiInsertSchema, SubAgentRelationApiSelect, SubAgentRelationApiSelectSchema, SubAgentRelationApiUpdate, SubAgentRelationApiUpdateSchema, SubAgentRelationInsert, SubAgentRelationInsertSchema, SubAgentRelationListResponse, SubAgentRelationQuery, SubAgentRelationQuerySchema, SubAgentRelationResponse, SubAgentRelationSelect, SubAgentRelationSelectSchema, SubAgentRelationUpdate, SubAgentRelationUpdateSchema, SubAgentResponse, SubAgentScopeConfig, SubAgentSelect, SubAgentSelectSchema, SubAgentStopWhen, SubAgentStopWhenSchema, SubAgentTeamAgentRelationApiInsert, SubAgentTeamAgentRelationApiInsertSchema, SubAgentTeamAgentRelationApiSelect, SubAgentTeamAgentRelationApiSelectSchema, SubAgentTeamAgentRelationApiUpdate, SubAgentTeamAgentRelationApiUpdateSchema, SubAgentTeamAgentRelationInsert, SubAgentTeamAgentRelationInsertSchema, SubAgentTeamAgentRelationListResponse, SubAgentTeamAgentRelationResponse, SubAgentTeamAgentRelationSelect, SubAgentTeamAgentRelationSelectSchema, SubAgentTeamAgentRelationUpdate, SubAgentTeamAgentRelationUpdateSchema, SubAgentToolRelationApiInsert, SubAgentToolRelationApiInsertSchema, SubAgentToolRelationApiSelect, SubAgentToolRelationApiSelectSchema, SubAgentToolRelationApiUpdate, SubAgentToolRelationApiUpdateSchema, SubAgentToolRelationInsert, SubAgentToolRelationInsertSchema, SubAgentToolRelationListResponse, SubAgentToolRelationResponse, SubAgentToolRelationSelect, SubAgentToolRelationSelectSchema, SubAgentToolRelationUpdate, SubAgentToolRelationUpdateSchema, SubAgentUpdate, SubAgentUpdateSchema, SummaryEvent, TOOL_STATUS_VALUES, TRANSFER_FROM_SUB_AGENT_ID, TRANSFER_TO_SUB_AGENT_ID, Task, TaskApiInsert, TaskApiInsertSchema, TaskApiSelect, TaskApiSelectSchema, TaskApiUpdate, TaskApiUpdateSchema, TaskArtifact, TaskArtifactUpdateEvent, TaskIdParams, TaskInsert, TaskInsertSchema, TaskMetadataConfig, TaskNotCancelableError, TaskNotFoundError, TaskPushNotificationConfig, TaskQueryParams, TaskRelationApiInsert, TaskRelationApiInsertSchema, TaskRelationApiSelect, TaskRelationApiSelectSchema, TaskRelationApiUpdate, TaskRelationApiUpdateSchema, TaskRelationInsert, TaskRelationInsertSchema, TaskRelationSelect, TaskRelationSelectSchema, TaskRelationUpdate, TaskRelationUpdateSchema, TaskResubscriptionRequest, TaskSelect, TaskSelectSchema, TaskState, TaskStatus, TaskStatusUpdateEvent, TaskUpdate, TaskUpdateSchema, TeamAgentSchema, TempTokenPayload, TemplateContext, TemplateEngine, TemplateRenderOptions, TenantIdParamsSchema, TenantParamsSchema, TenantProjectAgentIdParamsSchema, TenantProjectAgentParamsSchema, TenantProjectAgentSubAgentIdParamsSchema, TenantProjectAgentSubAgentParamsSchema, TenantProjectIdParamsSchema, TenantProjectParamsSchema, TextDeltaEvent, TextDeltaEventSchema, TextEndEvent, TextEndEventSchema, TextPart, TextStartEvent, TextStartEventSchema, ThirdPartyMCPServerResponse, ToolApiInsert, ToolApiInsertSchema, ToolApiSelect, ToolApiSelectSchema, ToolApiUpdate, ToolApiUpdateSchema, ToolDefinition, ToolInsert, ToolInsertSchema, ToolListResponse, ToolMcpConfig, ToolPolicy, ToolResponse, ToolSelect, ToolSelectSchema, ToolServerCapabilities, ToolStatusSchema, ToolUpdate, ToolUpdateSchema, TransferData, TransferDataSchema, UNKNOWN_VALUE, URL_SAFE_ID_PATTERN, UnsupportedOperationError, VALIDATION_AGENT_PROMPT_MAX_CHARS, VALIDATION_SUB_AGENT_PROMPT_MAX_CHARS, VALID_RELATION_TYPES, VerifyServiceTokenResult, account, addFunctionToolToSubAgent, addLedgerArtifacts, addToolToAgent, addUserToOrganization, agentHasArtifactComponents, agentRelations, agentToolRelationsRelations, agents, apiFetch, apiKeys, apiKeysRelations, artifactComponents, artifactComponentsRelations, associateArtifactComponentWithAgent, associateDataComponentWithAgent, canDelegateToExternalAgentSchema, canDelegateToTeamAgentSchema, cleanupTenantCache, cleanupTestDatabase, clearContextConfigCache, clearConversationCache, closeTestDatabase, commonCreateErrorResponses, commonDeleteErrorResponses, commonGetErrorResponses, commonUpdateErrorResponses, contextCache, contextCacheRelations, contextConfig, contextConfigs, contextConfigsRelations, contextValidationMiddleware, conversations, conversationsRelations, convertZodToJsonSchema, convertZodToJsonSchemaWithPreview, countApiKeys, countArtifactComponents, countArtifactComponentsForAgent, countContextConfigs, countCredentialReferences, countDataComponents, countExternalAgents, countLedgerArtifactsByTask, countMessagesByConversation, countProjects, createAgent, createAgentToolRelation, createApiError, createApiKey, createArtifactComponent, createContextConfig, createConversation, createCredentialReference, createDataComponent, createDatabaseClient, createDefaultCredentialStores, createExecutionContext, createExternalAgent, createFullAgentServerSide, createFullProjectServerSide, createFunctionTool, createKeyChainStore, createMessage, createNangoCredentialStore, createOrGetConversation, createProject, createSubAgent, createSubAgentExternalAgentRelation, createSubAgentRelation, createSubAgentTeamAgentRelation, createTask, createTestDatabaseClient, createTestOrganization, createTestProject, createTool, createValidatedDataAccess, credentialReferences, credentialReferencesRelations, dataComponents, dataComponentsRelations, dbResultToMcpTool, deleteAgent, deleteAgentArtifactComponentRelationByAgent, deleteAgentDataComponentRelationByAgent, deleteAgentRelationsByAgent, deleteAgentToolRelation, deleteAgentToolRelationByAgent, deleteApiKey, deleteArtifactComponent, deleteContextConfig, deleteConversation, deleteCredentialReference, deleteDataComponent, deleteExternalAgent, deleteFullAgent, deleteFullProject, deleteFunction, deleteFunctionTool, deleteLedgerArtifactsByContext, deleteLedgerArtifactsByTask, deleteMessage, deleteProject, deleteSubAgent, deleteSubAgentExternalAgentRelation, deleteSubAgentExternalAgentRelationsByAgent, deleteSubAgentExternalAgentRelationsBySubAgent, deleteSubAgentRelation, deleteSubAgentTeamAgentRelation, deleteSubAgentTeamAgentRelationsByAgent, deleteSubAgentTeamAgentRelationsBySubAgent, deleteTool, detectAuthenticationRequired, determineContextTrigger, deviceCode, errorResponseSchema, errorSchemaFactory, exchangeMcpAuthorizationCode, executionLimitsSharedDefaults, externalAgentExists, externalAgentUrlExists, externalAgents, externalAgentsRelations, extractComposioServerId, extractPreviewFields, extractPublicId, fetchComponentRelationships, fetchComposioServers, fetchDefinition, fetchSingleComposioServer, formatMessagesForLLM, formatMessagesForLLMContext, functionTools, functionToolsRelations, functions, functionsRelations, generateAndCreateApiKey, generateApiKey, generateId, generateIdFromName, generateServiceToken, getActiveAgentForConversation, getAgentById, getAgentRelationById, getAgentRelationByParams, getAgentRelations, getAgentRelationsByAgent, getAgentRelationsBySource, getAgentSubAgentInfos, getAgentToolRelationByAgent, getAgentToolRelationById, getAgentToolRelationByTool, getAgentWithDefaultSubAgent, getAgentsForTool, getAgentsUsingArtifactComponent, getAgentsUsingDataComponent, getApiKeyById, getApiKeyByPublicId, getArtifactComponentById, getArtifactComponentsForAgent, getCacheEntry, getCachedValidator, getComposioOAuthRedirectUrl, getComposioUserId, getContextConfigById, getContextConfigCacheEntries, getConversation, getConversationCacheEntries, getConversationHistory, getConversationId, getCredentialReference, getCredentialReferenceById, getCredentialReferenceWithResources, getCredentialStoreLookupKeyFromRetrievalParams, getDataComponent, getDataComponentsForAgent, getExternalAgent, getExternalAgentByUrl, getExternalAgentsForSubAgent, getFullAgent, getFullAgentDefinition, getFullProject, getFunction, getFunctionToolById, getFunctionToolsForSubAgent, getLedgerArtifacts, getLedgerArtifactsByContext, getLogger, getMessageById, getMessagesByConversation, getMessagesByTask, getPendingInvitationsByEmail, getProject, getProjectResourceCounts, getRelatedAgentsForAgent, getRequestExecutionContext, getSubAgentById, getSubAgentExternalAgentRelationById, getSubAgentExternalAgentRelationByParams, getSubAgentExternalAgentRelations, getSubAgentExternalAgentRelationsByAgent, getSubAgentExternalAgentRelationsByExternalAgent, getSubAgentRelationsByTarget, getSubAgentTeamAgentRelationById, getSubAgentTeamAgentRelationByParams, getSubAgentTeamAgentRelations, getSubAgentTeamAgentRelationsByAgent, getSubAgentTeamAgentRelationsByTeamAgent, getSubAgentsByIds, getSubAgentsForExternalAgent, getSubAgentsForTeamAgent, getTask, getTeamAgentsForSubAgent, getToolById, getToolsForAgent, getTracer, getUserByEmail, getUserById, getUserOrganizations, getUserScopedCredentialReference, getVisibleMessages, handleApiError, handleContextConfigChange, handleContextResolution, hasApiKey, hasContextConfig, hasCredentialReference, hashApiKey, headers, initiateMcpOAuthFlow, invalidateHeadersCache, invalidateInvocationDefinitionsCache, invitation, isApiKeyExpired, isArtifactComponentAssociatedWithAgent, isComposioMCPServerAuthenticated, isDataComponentAssociatedWithAgent, isThirdPartyMCPServerAuthenticated, isValidHttpRequest, isValidResourceId, isZodSchema, jsonSchemaToZod, ledgerArtifacts, ledgerArtifactsRelations, listAgentRelations, listAgentToolRelations, listAgents, listAgentsPaginated, listApiKeys, listApiKeysPaginated, listArtifactComponents, listArtifactComponentsPaginated, listContextConfigs, listContextConfigsPaginated, listConversations, listCredentialReferences, listCredentialReferencesPaginated, listDataComponents, listDataComponentsPaginated, listExternalAgents, listExternalAgentsPaginated, listFunctionTools, listFunctions, listFunctionsPaginated, listMessages, listProjects, listProjectsPaginated, listSubAgentExternalAgentRelations, listSubAgentTeamAgentRelations, listSubAgents, listSubAgentsPaginated, listTaskIdsByContextId, listTools, loadEnvironmentFiles, loggerFactory, maskApiKey, member, messages, messagesRelations, normalizeDateString, normalizeToolSelections, organization, parseEmbeddedJson, preview, problemDetailsSchema, projectExists, projectExistsInTable, projectHasResources, projects, projectsRelations, removeArtifactComponentFromAgent, removeDataComponentFromAgent, removeToolFromAgent, resourceIdSchema, schemaValidationDefaults, session, setActiveAgentForConversation, setActiveAgentForThread, setCacheEntry, setSpanWithError, signTempToken, ssoProvider, subAgentArtifactComponents, subAgentArtifactComponentsRelations, subAgentDataComponents, subAgentDataComponentsRelations, subAgentExternalAgentRelations, subAgentExternalAgentRelationsRelations, subAgentFunctionToolRelations, subAgentFunctionToolRelationsRelations, subAgentRelations, subAgentRelationsRelations, subAgentTeamAgentRelations, subAgentTeamAgentRelationsRelations, subAgentToolRelations, subAgents, subAgentsRelations, taskRelations, taskRelationsRelations, tasks, tasksRelations, toISODateString, tools, toolsRelations, updateAgent, updateAgentRelation, updateAgentToolRelation, updateApiKey, updateApiKeyLastUsed, updateArtifactComponent, updateContextConfig, updateConversation, updateConversationActiveAgent, updateCredentialReference, updateDataComponent, updateExternalAgent, updateFullAgentServerSide, updateFullProjectServerSide, updateFunctionTool, updateMessage, updateProject, updateSubAgent, updateSubAgentExternalAgentRelation, updateSubAgentFunctionToolRelation, updateSubAgentTeamAgentRelation, updateTask, updateTool, upsertAgent, upsertAgentArtifactComponentRelation, upsertAgentDataComponentRelation, upsertArtifactComponent, upsertContextConfig, upsertCredentialReference, upsertDataComponent, upsertExternalAgent, upsertFunction, upsertFunctionTool, upsertLedgerArtifact, upsertSubAgent, upsertSubAgentExternalAgentRelation, upsertSubAgentFunctionToolRelation, upsertSubAgentRelation, upsertSubAgentTeamAgentRelation, upsertSubAgentToolRelation, upsertTool, user, validateAgainstJsonSchema, validateAgentRelationships, validateAgentStructure, validateAndGetApiKey, validateAndTypeAgentData, validateApiKey, validateArtifactComponentReferences, validateDataComponentReferences, validateHeaders, validateHttpRequestHeaders, validateProjectExists, validatePropsAsJsonSchema, validateRender, validateSubAgent, validateSubAgentExternalAgentRelations, validateTargetAgent, validateTenantId, validateToolReferences, validationHelper, verification, verifyAuthorizationHeader, verifyServiceToken, verifyTempToken, withProjectValidation };
package/dist/index.js CHANGED
@@ -6,6 +6,7 @@ import { account, deviceCode, invitation, member, organization, session, ssoProv
6
6
  import { 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, subAgentTeamAgentRelations, subAgentTeamAgentRelationsRelations, subAgentToolRelations, subAgents, subAgentsRelations, taskRelations, taskRelationsRelations, tasks, tasksRelations, tools, toolsRelations } from "./db/schema.js";
7
7
  import { MAX_ID_LENGTH, MIN_ID_LENGTH, URL_SAFE_ID_PATTERN, resourceIdSchema } from "./validation/drizzle-schema-helpers.js";
8
8
  import { AgentApiInsertSchema, AgentApiSelectSchema, AgentApiUpdateSchema, AgentInsertSchema, AgentListResponse, AgentResponse, AgentSelectSchema, AgentStopWhenSchema, AgentUpdateSchema, AgentWithinContextOfProjectResponse, AgentWithinContextOfProjectSchema, AllAgentSchema, ApiKeyApiCreationResponseSchema, ApiKeyApiInsertSchema, ApiKeyApiSelectSchema, ApiKeyApiUpdateSchema, ApiKeyInsertSchema, ApiKeyListResponse, ApiKeyResponse, ApiKeySelectSchema, ApiKeyUpdateSchema, ArtifactComponentApiInsertSchema, ArtifactComponentApiSelectSchema, ArtifactComponentApiUpdateSchema, ArtifactComponentArrayResponse, ArtifactComponentInsertSchema, ArtifactComponentListResponse, ArtifactComponentResponse, ArtifactComponentSelectSchema, ArtifactComponentUpdateSchema, CanUseItemSchema, ComponentAssociationListResponse, ComponentAssociationSchema, ContextCacheApiInsertSchema, ContextCacheApiSelectSchema, ContextCacheApiUpdateSchema, ContextCacheInsertSchema, ContextCacheSelectSchema, ContextCacheUpdateSchema, ContextConfigApiInsertSchema, ContextConfigApiSelectSchema, ContextConfigApiUpdateSchema, ContextConfigInsertSchema, ContextConfigListResponse, ContextConfigResponse, ContextConfigSelectSchema, ContextConfigUpdateSchema, ConversationApiInsertSchema, ConversationApiSelectSchema, ConversationApiUpdateSchema, ConversationInsertSchema, ConversationListResponse, ConversationResponse, ConversationSelectSchema, ConversationUpdateSchema, CreateCredentialInStoreRequestSchema, CreateCredentialInStoreResponseSchema, CredentialReferenceApiInsertSchema, CredentialReferenceApiSelectSchema, CredentialReferenceApiUpdateSchema, CredentialReferenceInsertSchema, CredentialReferenceListResponse, CredentialReferenceResponse, CredentialReferenceSelectSchema, CredentialReferenceUpdateSchema, CredentialStoreListResponseSchema, CredentialStoreSchema, DataComponentApiInsertSchema, DataComponentApiSelectSchema, DataComponentApiUpdateSchema, DataComponentArrayResponse, DataComponentBaseSchema, DataComponentInsertSchema, DataComponentListResponse, DataComponentResponse, DataComponentSelectSchema, DataComponentUpdateSchema, ErrorResponseSchema, ExistsResponseSchema, ExternalAgentApiInsertSchema, ExternalAgentApiSelectSchema, ExternalAgentApiUpdateSchema, ExternalAgentInsertSchema, ExternalAgentListResponse, ExternalAgentResponse, ExternalAgentSelectSchema, ExternalAgentUpdateSchema, ExternalSubAgentRelationApiInsertSchema, ExternalSubAgentRelationInsertSchema, FetchConfigSchema, FetchDefinitionSchema, FullAgentAgentInsertSchema, FullProjectDefinitionResponse, 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, MCPCatalogListResponse, MCPToolConfigSchema, McpToolDefinitionSchema, McpToolListResponse, McpToolResponse, McpToolSchema, McpTransportConfigSchema, MessageApiInsertSchema, MessageApiSelectSchema, MessageApiUpdateSchema, MessageInsertSchema, MessageListResponse, MessageResponse, MessageSelectSchema, MessageUpdateSchema, ModelSchema, ModelSettingsSchema, OAuthCallbackQuerySchema, OAuthLoginQuerySchema, PaginationQueryParamsSchema, PaginationSchema, PrebuiltMCPServerSchema, ProjectApiInsertSchema, ProjectApiSelectSchema, ProjectApiUpdateSchema, ProjectInsertSchema, ProjectListResponse, ProjectModelSchema, ProjectResponse, ProjectSelectSchema, ProjectUpdateSchema, RelatedAgentInfoListResponse, RelatedAgentInfoSchema, 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, SubAgentExternalAgentRelationListResponse, SubAgentExternalAgentRelationResponse, SubAgentExternalAgentRelationSelectSchema, SubAgentExternalAgentRelationUpdateSchema, SubAgentInsertSchema, SubAgentListResponse, SubAgentRelationApiInsertSchema, SubAgentRelationApiSelectSchema, SubAgentRelationApiUpdateSchema, SubAgentRelationInsertSchema, SubAgentRelationListResponse, SubAgentRelationQuerySchema, SubAgentRelationResponse, SubAgentRelationSelectSchema, SubAgentRelationUpdateSchema, SubAgentResponse, SubAgentSelectSchema, SubAgentStopWhenSchema, SubAgentTeamAgentRelationApiInsertSchema, SubAgentTeamAgentRelationApiSelectSchema, SubAgentTeamAgentRelationApiUpdateSchema, SubAgentTeamAgentRelationInsertSchema, SubAgentTeamAgentRelationListResponse, SubAgentTeamAgentRelationResponse, SubAgentTeamAgentRelationSelectSchema, SubAgentTeamAgentRelationUpdateSchema, SubAgentToolRelationApiInsertSchema, SubAgentToolRelationApiSelectSchema, SubAgentToolRelationApiUpdateSchema, SubAgentToolRelationInsertSchema, SubAgentToolRelationListResponse, SubAgentToolRelationResponse, SubAgentToolRelationSelectSchema, SubAgentToolRelationUpdateSchema, SubAgentUpdateSchema, TaskApiInsertSchema, TaskApiSelectSchema, TaskApiUpdateSchema, TaskInsertSchema, TaskRelationApiInsertSchema, TaskRelationApiSelectSchema, TaskRelationApiUpdateSchema, TaskRelationInsertSchema, TaskRelationSelectSchema, TaskRelationUpdateSchema, TaskSelectSchema, TaskUpdateSchema, TeamAgentSchema, TenantIdParamsSchema, TenantParamsSchema, TenantProjectAgentIdParamsSchema, TenantProjectAgentParamsSchema, TenantProjectAgentSubAgentIdParamsSchema, TenantProjectAgentSubAgentParamsSchema, TenantProjectIdParamsSchema, TenantProjectParamsSchema, ThirdPartyMCPServerResponse, ToolApiInsertSchema, ToolApiSelectSchema, ToolApiUpdateSchema, ToolInsertSchema, ToolListResponse, ToolResponse, ToolSelectSchema, ToolStatusSchema, ToolUpdateSchema, canDelegateToExternalAgentSchema, canDelegateToTeamAgentSchema } from "./validation/schemas.js";
9
+ import { DEFAULT_NANGO_STORE_ID } from "./credential-stores/default-constants.js";
9
10
  import { validatePropsAsJsonSchema } from "./validation/props-validation.js";
10
11
  import { ACTIVITY_NAMES, ACTIVITY_STATUS, ACTIVITY_TYPES, AGENT_IDS, AI_OPERATIONS, AI_TOOL_TYPES, DELEGATION_FROM_SUB_AGENT_ID, DELEGATION_ID, DELEGATION_TO_SUB_AGENT_ID, SPAN_KEYS, SPAN_NAMES, TRANSFER_FROM_SUB_AGENT_ID, TRANSFER_TO_SUB_AGENT_ID, UNKNOWN_VALUE } from "./constants/otel-attributes.js";
11
12
  import { AGGREGATE_OPERATORS, DATA_SOURCES, DATA_TYPES, FIELD_TYPES, OPERATORS, ORDER_DIRECTIONS, PANEL_TYPES, QUERY_DEFAULTS, QUERY_EXPRESSIONS, QUERY_FIELD_CONFIGS, QUERY_TYPES, REDUCE_OPERATIONS } from "./constants/signoz-queries.js";
@@ -51,8 +52,8 @@ import "./utils/index.js";
51
52
  import { countCredentialReferences, createCredentialReference, deleteCredentialReference, getCredentialReference, getCredentialReferenceById, getCredentialReferenceWithResources, getUserScopedCredentialReference, hasCredentialReference, listCredentialReferences, listCredentialReferencesPaginated, updateCredentialReference, upsertCredentialReference } from "./data-access/credentialReferences.js";
52
53
  import { addToolToAgent, createTool, dbResultToMcpTool, deleteTool, getToolById, listTools, removeToolFromAgent, updateTool, upsertSubAgentToolRelation, upsertTool } from "./data-access/tools.js";
53
54
  import { createAgent, deleteAgent, fetchComponentRelationships, getAgentById, getAgentSubAgentInfos, getAgentWithDefaultSubAgent, getFullAgentDefinition, listAgents, listAgentsPaginated, updateAgent, upsertAgent } from "./data-access/agents.js";
54
- import { agentHasArtifactComponents, associateArtifactComponentWithAgent, countArtifactComponents, countArtifactComponentsForAgent, createArtifactComponent, deleteAgentArtifactComponentRelationByAgent, deleteArtifactComponent, getAgentsUsingArtifactComponent, getArtifactComponentById, getArtifactComponentsForAgent, isArtifactComponentAssociatedWithAgent, listArtifactComponents, listArtifactComponentsPaginated, removeArtifactComponentFromAgent, updateArtifactComponent, upsertAgentArtifactComponentRelation, upsertArtifactComponent } from "./data-access/artifactComponents.js";
55
55
  import { validateRender } from "./validation/render-validation.js";
56
+ import { agentHasArtifactComponents, associateArtifactComponentWithAgent, countArtifactComponents, countArtifactComponentsForAgent, createArtifactComponent, deleteAgentArtifactComponentRelationByAgent, deleteArtifactComponent, getAgentsUsingArtifactComponent, getArtifactComponentById, getArtifactComponentsForAgent, isArtifactComponentAssociatedWithAgent, listArtifactComponents, listArtifactComponentsPaginated, removeArtifactComponentFromAgent, updateArtifactComponent, upsertAgentArtifactComponentRelation, upsertArtifactComponent } from "./data-access/artifactComponents.js";
56
57
  import { associateDataComponentWithAgent, countDataComponents, createDataComponent, deleteAgentDataComponentRelationByAgent, deleteDataComponent, getAgentsUsingDataComponent, getDataComponent, getDataComponentsForAgent, isDataComponentAssociatedWithAgent, listDataComponents, listDataComponentsPaginated, removeDataComponentFromAgent, updateDataComponent, upsertAgentDataComponentRelation, upsertDataComponent } from "./data-access/dataComponents.js";
57
58
  import { createFullAgentServerSide, deleteFullAgent, getFullAgent, updateFullAgentServerSide } from "./data-access/agentFull.js";
58
59
  import { countApiKeys, createApiKey, deleteApiKey, generateAndCreateApiKey, getApiKeyById, getApiKeyByPublicId, hasApiKey, listApiKeys, listApiKeysPaginated, updateApiKey, updateApiKeyLastUsed, validateAndGetApiKey } from "./data-access/apiKeys.js";
@@ -86,4 +87,4 @@ import { generateIdFromName, isValidResourceId } from "./validation/id-validatio
86
87
  import { DataComponentStreamEventSchema, DataOperationStreamEventSchema, DataSummaryStreamEventSchema, StreamErrorEventSchema, StreamEventSchema, StreamFinishEventSchema, TextDeltaEventSchema, TextEndEventSchema, TextStartEventSchema } from "./validation/stream-event-schemas.js";
87
88
  import "./validation/index.js";
88
89
 
89
- export { A2AMessageMetadataSchema, ACTIVITY_NAMES, ACTIVITY_STATUS, ACTIVITY_TYPES, AGENT_EXECUTION_TRANSFER_COUNT_DEFAULT, AGENT_EXECUTION_TRANSFER_COUNT_MAX, AGENT_EXECUTION_TRANSFER_COUNT_MIN, AGENT_IDS, AGGREGATE_OPERATORS, AI_OPERATIONS, AI_TOOL_TYPES, ANTHROPIC_MODELS, AgentApiInsertSchema, AgentApiSelectSchema, AgentApiUpdateSchema, AgentInsertSchema, AgentListResponse, AgentResponse, AgentSelectSchema, AgentStopWhenSchema, AgentUpdateSchema, AgentWithinContextOfProjectResponse, AgentWithinContextOfProjectSchema, AllAgentSchema, ApiKeyApiCreationResponseSchema, ApiKeyApiInsertSchema, ApiKeyApiSelectSchema, ApiKeyApiUpdateSchema, ApiKeyInsertSchema, ApiKeyListResponse, ApiKeyResponse, ApiKeySelectSchema, ApiKeyUpdateSchema, ArtifactComponentApiInsertSchema, ArtifactComponentApiSelectSchema, ArtifactComponentApiUpdateSchema, ArtifactComponentArrayResponse, ArtifactComponentInsertSchema, ArtifactComponentListResponse, ArtifactComponentResponse, ArtifactComponentSelectSchema, ArtifactComponentUpdateSchema, CONTEXT_FETCHER_HTTP_TIMEOUT_MS_DEFAULT, CONVERSATION_HISTORY_DEFAULT_LIMIT, CONVERSATION_HISTORY_MAX_OUTPUT_TOKENS_DEFAULT, CanUseItemSchema, ComponentAssociationListResponse, ComponentAssociationSchema, ContextCache, ContextCacheApiInsertSchema, ContextCacheApiSelectSchema, ContextCacheApiUpdateSchema, ContextCacheInsertSchema, ContextCacheSelectSchema, ContextCacheUpdateSchema, ContextConfigApiInsertSchema, ContextConfigApiSelectSchema, ContextConfigApiUpdateSchema, ContextConfigBuilder, ContextConfigInsertSchema, ContextConfigListResponse, ContextConfigResponse, ContextConfigSelectSchema, ContextConfigUpdateSchema, ContextFetcher, ContextResolver, ConversationApiInsertSchema, ConversationApiSelectSchema, ConversationApiUpdateSchema, ConversationInsertSchema, ConversationListResponse, ConversationResponse, ConversationSelectSchema, ConversationUpdateSchema, CreateCredentialInStoreRequestSchema, CreateCredentialInStoreResponseSchema, CredentialReferenceApiInsertSchema, CredentialReferenceApiSelectSchema, CredentialReferenceApiUpdateSchema, CredentialReferenceInsertSchema, CredentialReferenceListResponse, CredentialReferenceResponse, CredentialReferenceSelectSchema, CredentialReferenceUpdateSchema, CredentialStoreListResponseSchema, CredentialStoreRegistry, CredentialStoreSchema, CredentialStoreType, CredentialStuffer, DATA_SOURCES, DATA_TYPES, DELEGATION_FROM_SUB_AGENT_ID, DELEGATION_ID, DELEGATION_TO_SUB_AGENT_ID, DataComponentApiInsertSchema, DataComponentApiSelectSchema, DataComponentApiUpdateSchema, DataComponentArrayResponse, DataComponentBaseSchema, DataComponentInsertSchema, DataComponentListResponse, DataComponentResponse, DataComponentSelectSchema, DataComponentStreamEventSchema, DataComponentUpdateSchema, DataOperationDetailsSchema, DataOperationEventSchema, DataOperationStreamEventSchema, DataSummaryStreamEventSchema, DelegationReturnedDataSchema, DelegationSentDataSchema, ERROR_DOCS_BASE_URL, ErrorCode, ErrorResponseSchema, ExistsResponseSchema, ExternalAgentApiInsertSchema, ExternalAgentApiSelectSchema, ExternalAgentApiUpdateSchema, ExternalAgentInsertSchema, ExternalAgentListResponse, ExternalAgentResponse, ExternalAgentSelectSchema, ExternalAgentUpdateSchema, ExternalSubAgentRelationApiInsertSchema, ExternalSubAgentRelationInsertSchema, FIELD_TYPES, FetchConfigSchema, FetchDefinitionSchema, FullAgentAgentInsertSchema, FullProjectDefinitionResponse, FullProjectDefinitionSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, FunctionInsertSchema, FunctionListResponse, FunctionResponse, FunctionSelectSchema, FunctionToolApiInsertSchema, FunctionToolApiSelectSchema, FunctionToolApiUpdateSchema, FunctionToolConfigSchema, FunctionToolInsertSchema, FunctionToolListResponse, FunctionToolResponse, FunctionToolSelectSchema, FunctionToolUpdateSchema, FunctionUpdateSchema, GOOGLE_MODELS, HTTP_REQUEST_PARTS, HeadersScopeSchema, InMemoryCredentialStore, KeyChainStore, LedgerArtifactApiInsertSchema, LedgerArtifactApiSelectSchema, LedgerArtifactApiUpdateSchema, LedgerArtifactInsertSchema, LedgerArtifactSelectSchema, LedgerArtifactUpdateSchema, ListResponseSchema, MAX_ID_LENGTH, MCPCatalogListResponse, MCPServerType, MCPToolConfigSchema, MCPTransportType, MCP_TOOL_CONNECTION_TIMEOUT_MS, MCP_TOOL_INITIAL_RECONNECTION_DELAY_MS, MCP_TOOL_MAX_RECONNECTION_DELAY_MS, MCP_TOOL_MAX_RETRIES, MCP_TOOL_RECONNECTION_DELAY_GROWTH_FACTOR, MIN_ID_LENGTH, McpClient, McpToolDefinitionSchema, McpToolListResponse, McpToolResponse, McpToolSchema, McpTransportConfigSchema, MessageApiInsertSchema, MessageApiSelectSchema, MessageApiUpdateSchema, MessageInsertSchema, MessageListResponse, MessageResponse, MessageSelectSchema, MessageUpdateSchema, MissingRequiredVariableError, ModelFactory, ModelSchema, ModelSettingsSchema, NangoCredentialStore, OAuthCallbackQuerySchema, OAuthLoginQuerySchema, OPENAI_MODELS, OPERATORS, ORDER_DIRECTIONS, PANEL_TYPES, PaginationQueryParamsSchema, PaginationSchema, PinoLogger, PrebuiltMCPServerSchema, ProjectApiInsertSchema, ProjectApiSelectSchema, ProjectApiUpdateSchema, ProjectInsertSchema, ProjectListResponse, ProjectModelSchema, ProjectResponse, ProjectSelectSchema, ProjectUpdateSchema, QUERY_DEFAULTS, QUERY_EXPRESSIONS, QUERY_FIELD_CONFIGS, QUERY_TYPES, REDUCE_OPERATIONS, RelatedAgentInfoListResponse, RelatedAgentInfoSchema, RemovedResponseSchema, SPAN_KEYS, SPAN_NAMES, STATUS_UPDATE_MAX_INTERVAL_SECONDS, STATUS_UPDATE_MAX_NUM_EVENTS, SUB_AGENT_TURN_GENERATION_STEPS_DEFAULT, SUB_AGENT_TURN_GENERATION_STEPS_MAX, SUB_AGENT_TURN_GENERATION_STEPS_MIN, SingleResponseSchema, StatusComponentSchema, StatusUpdateSchema, StopWhenSchema, StreamErrorEventSchema, StreamEventSchema, StreamFinishEventSchema, SubAgentApiInsertSchema, SubAgentApiSelectSchema, SubAgentApiUpdateSchema, SubAgentArtifactComponentApiInsertSchema, SubAgentArtifactComponentApiSelectSchema, SubAgentArtifactComponentApiUpdateSchema, SubAgentArtifactComponentInsertSchema, SubAgentArtifactComponentListResponse, SubAgentArtifactComponentResponse, SubAgentArtifactComponentSelectSchema, SubAgentArtifactComponentUpdateSchema, SubAgentDataComponentApiInsertSchema, SubAgentDataComponentApiSelectSchema, SubAgentDataComponentApiUpdateSchema, SubAgentDataComponentInsertSchema, SubAgentDataComponentListResponse, SubAgentDataComponentResponse, SubAgentDataComponentSelectSchema, SubAgentDataComponentUpdateSchema, SubAgentExternalAgentRelationApiInsertSchema, SubAgentExternalAgentRelationApiSelectSchema, SubAgentExternalAgentRelationApiUpdateSchema, SubAgentExternalAgentRelationInsertSchema, SubAgentExternalAgentRelationListResponse, SubAgentExternalAgentRelationResponse, SubAgentExternalAgentRelationSelectSchema, SubAgentExternalAgentRelationUpdateSchema, SubAgentInsertSchema, SubAgentIsDefaultError, SubAgentListResponse, SubAgentRelationApiInsertSchema, SubAgentRelationApiSelectSchema, SubAgentRelationApiUpdateSchema, SubAgentRelationInsertSchema, SubAgentRelationListResponse, SubAgentRelationQuerySchema, SubAgentRelationResponse, SubAgentRelationSelectSchema, SubAgentRelationUpdateSchema, SubAgentResponse, SubAgentSelectSchema, SubAgentStopWhenSchema, SubAgentTeamAgentRelationApiInsertSchema, SubAgentTeamAgentRelationApiSelectSchema, SubAgentTeamAgentRelationApiUpdateSchema, SubAgentTeamAgentRelationInsertSchema, SubAgentTeamAgentRelationListResponse, SubAgentTeamAgentRelationResponse, SubAgentTeamAgentRelationSelectSchema, SubAgentTeamAgentRelationUpdateSchema, SubAgentToolRelationApiInsertSchema, SubAgentToolRelationApiSelectSchema, SubAgentToolRelationApiUpdateSchema, SubAgentToolRelationInsertSchema, SubAgentToolRelationListResponse, SubAgentToolRelationResponse, SubAgentToolRelationSelectSchema, SubAgentToolRelationUpdateSchema, SubAgentUpdateSchema, TOOL_STATUS_VALUES, TRANSFER_FROM_SUB_AGENT_ID, TRANSFER_TO_SUB_AGENT_ID, TaskApiInsertSchema, TaskApiSelectSchema, TaskApiUpdateSchema, TaskInsertSchema, TaskRelationApiInsertSchema, TaskRelationApiSelectSchema, TaskRelationApiUpdateSchema, TaskRelationInsertSchema, TaskRelationSelectSchema, TaskRelationUpdateSchema, TaskSelectSchema, TaskState, TaskUpdateSchema, TeamAgentSchema, TemplateEngine, TenantIdParamsSchema, TenantParamsSchema, TenantProjectAgentIdParamsSchema, TenantProjectAgentParamsSchema, TenantProjectAgentSubAgentIdParamsSchema, TenantProjectAgentSubAgentParamsSchema, TenantProjectIdParamsSchema, TenantProjectParamsSchema, TextDeltaEventSchema, TextEndEventSchema, TextStartEventSchema, ThirdPartyMCPServerResponse, ToolApiInsertSchema, ToolApiSelectSchema, ToolApiUpdateSchema, ToolInsertSchema, ToolListResponse, ToolResponse, ToolSelectSchema, ToolStatusSchema, ToolUpdateSchema, TransferDataSchema, UNKNOWN_VALUE, URL_SAFE_ID_PATTERN, VALIDATION_AGENT_PROMPT_MAX_CHARS, VALIDATION_SUB_AGENT_PROMPT_MAX_CHARS, VALID_RELATION_TYPES, account, addFunctionToolToSubAgent, addLedgerArtifacts, addToolToAgent, addUserToOrganization, agentHasArtifactComponents, agentRelations, agentToolRelationsRelations, agents, apiFetch, apiKeys, apiKeysRelations, artifactComponents, artifactComponentsRelations, associateArtifactComponentWithAgent, associateDataComponentWithAgent, canDelegateToExternalAgentSchema, canDelegateToTeamAgentSchema, cleanupTenantCache, cleanupTestDatabase, clearContextConfigCache, clearConversationCache, closeTestDatabase, commonCreateErrorResponses, commonDeleteErrorResponses, commonGetErrorResponses, commonUpdateErrorResponses, contextCache, contextCacheRelations, contextConfig, contextConfigs, contextConfigsRelations, contextValidationMiddleware, conversations, conversationsRelations, convertZodToJsonSchema, convertZodToJsonSchemaWithPreview, countApiKeys, countArtifactComponents, countArtifactComponentsForAgent, countContextConfigs, countCredentialReferences, countDataComponents, countExternalAgents, countLedgerArtifactsByTask, countMessagesByConversation, countProjects, createAgent, createAgentToolRelation, createApiError, createApiKey, createArtifactComponent, createContextConfig, createConversation, createCredentialReference, createDataComponent, createDatabaseClient, createDefaultCredentialStores, createExecutionContext, createExternalAgent, createFullAgentServerSide, createFullProjectServerSide, createFunctionTool, createKeyChainStore, createMessage, createNangoCredentialStore, createOrGetConversation, createProject, createSubAgent, createSubAgentExternalAgentRelation, createSubAgentRelation, createSubAgentTeamAgentRelation, createTask, createTestDatabaseClient, createTestOrganization, createTestProject, createTool, createValidatedDataAccess, credentialReferences, credentialReferencesRelations, dataComponents, dataComponentsRelations, dbResultToMcpTool, deleteAgent, deleteAgentArtifactComponentRelationByAgent, deleteAgentDataComponentRelationByAgent, deleteAgentRelationsByAgent, deleteAgentToolRelation, deleteAgentToolRelationByAgent, deleteApiKey, deleteArtifactComponent, deleteContextConfig, deleteConversation, deleteCredentialReference, deleteDataComponent, deleteExternalAgent, deleteFullAgent, deleteFullProject, deleteFunction, deleteFunctionTool, deleteLedgerArtifactsByContext, deleteLedgerArtifactsByTask, deleteMessage, deleteProject, deleteSubAgent, deleteSubAgentExternalAgentRelation, deleteSubAgentExternalAgentRelationsByAgent, deleteSubAgentExternalAgentRelationsBySubAgent, deleteSubAgentRelation, deleteSubAgentTeamAgentRelation, deleteSubAgentTeamAgentRelationsByAgent, deleteSubAgentTeamAgentRelationsBySubAgent, deleteTool, detectAuthenticationRequired, determineContextTrigger, deviceCode, errorResponseSchema, errorSchemaFactory, exchangeMcpAuthorizationCode, executionLimitsSharedDefaults, externalAgentExists, externalAgentUrlExists, externalAgents, externalAgentsRelations, extractComposioServerId, extractPreviewFields, extractPublicId, fetchComponentRelationships, fetchComposioServers, fetchDefinition, fetchSingleComposioServer, formatMessagesForLLM, formatMessagesForLLMContext, functionTools, functionToolsRelations, functions, functionsRelations, generateAndCreateApiKey, generateApiKey, generateId, generateIdFromName, generateServiceToken, getActiveAgentForConversation, getAgentById, getAgentRelationById, getAgentRelationByParams, getAgentRelations, getAgentRelationsByAgent, getAgentRelationsBySource, getAgentSubAgentInfos, getAgentToolRelationByAgent, getAgentToolRelationById, getAgentToolRelationByTool, getAgentWithDefaultSubAgent, getAgentsForTool, getAgentsUsingArtifactComponent, getAgentsUsingDataComponent, getApiKeyById, getApiKeyByPublicId, getArtifactComponentById, getArtifactComponentsForAgent, getCacheEntry, getCachedValidator, getComposioOAuthRedirectUrl, getComposioUserId, getContextConfigById, getContextConfigCacheEntries, getConversation, getConversationCacheEntries, getConversationHistory, getConversationId, getCredentialReference, getCredentialReferenceById, getCredentialReferenceWithResources, getCredentialStoreLookupKeyFromRetrievalParams, getDataComponent, getDataComponentsForAgent, getExternalAgent, getExternalAgentByUrl, getExternalAgentsForSubAgent, getFullAgent, getFullAgentDefinition, getFullProject, getFunction, getFunctionToolById, getFunctionToolsForSubAgent, getLedgerArtifacts, getLedgerArtifactsByContext, getLogger, getMessageById, getMessagesByConversation, getMessagesByTask, getPendingInvitationsByEmail, getProject, getProjectResourceCounts, getRelatedAgentsForAgent, getRequestExecutionContext, getSubAgentById, getSubAgentExternalAgentRelationById, getSubAgentExternalAgentRelationByParams, getSubAgentExternalAgentRelations, getSubAgentExternalAgentRelationsByAgent, getSubAgentExternalAgentRelationsByExternalAgent, getSubAgentRelationsByTarget, getSubAgentTeamAgentRelationById, getSubAgentTeamAgentRelationByParams, getSubAgentTeamAgentRelations, getSubAgentTeamAgentRelationsByAgent, getSubAgentTeamAgentRelationsByTeamAgent, getSubAgentsByIds, getSubAgentsForExternalAgent, getSubAgentsForTeamAgent, getTask, getTeamAgentsForSubAgent, getToolById, getToolsForAgent, getTracer, getUserByEmail, getUserById, getUserOrganizations, getUserScopedCredentialReference, getVisibleMessages, handleApiError, handleContextConfigChange, handleContextResolution, hasApiKey, hasContextConfig, hasCredentialReference, hashApiKey, headers, initiateMcpOAuthFlow, invalidateHeadersCache, invalidateInvocationDefinitionsCache, invitation, isApiKeyExpired, isArtifactComponentAssociatedWithAgent, isComposioMCPServerAuthenticated, isDataComponentAssociatedWithAgent, isThirdPartyMCPServerAuthenticated, isValidHttpRequest, isValidResourceId, isZodSchema, jsonSchemaToZod, ledgerArtifacts, ledgerArtifactsRelations, listAgentRelations, listAgentToolRelations, listAgents, listAgentsPaginated, listApiKeys, listApiKeysPaginated, listArtifactComponents, listArtifactComponentsPaginated, listContextConfigs, listContextConfigsPaginated, listConversations, listCredentialReferences, listCredentialReferencesPaginated, listDataComponents, listDataComponentsPaginated, listExternalAgents, listExternalAgentsPaginated, listFunctionTools, listFunctions, listFunctionsPaginated, listMessages, listProjects, listProjectsPaginated, listSubAgentExternalAgentRelations, listSubAgentTeamAgentRelations, listSubAgents, listSubAgentsPaginated, listTaskIdsByContextId, listTools, loadEnvironmentFiles, loggerFactory, maskApiKey, member, messages, messagesRelations, normalizeDateString, normalizeToolSelections, organization, parseEmbeddedJson, preview, problemDetailsSchema, projectExists, projectExistsInTable, projectHasResources, projects, projectsRelations, removeArtifactComponentFromAgent, removeDataComponentFromAgent, removeToolFromAgent, resourceIdSchema, schemaValidationDefaults, session, setActiveAgentForConversation, setActiveAgentForThread, setCacheEntry, setSpanWithError, signTempToken, ssoProvider, subAgentArtifactComponents, subAgentArtifactComponentsRelations, subAgentDataComponents, subAgentDataComponentsRelations, subAgentExternalAgentRelations, subAgentExternalAgentRelationsRelations, subAgentFunctionToolRelations, subAgentFunctionToolRelationsRelations, subAgentRelations, subAgentRelationsRelations, subAgentTeamAgentRelations, subAgentTeamAgentRelationsRelations, subAgentToolRelations, subAgents, subAgentsRelations, taskRelations, taskRelationsRelations, tasks, tasksRelations, toISODateString, tools, toolsRelations, updateAgent, updateAgentRelation, updateAgentToolRelation, updateApiKey, updateApiKeyLastUsed, updateArtifactComponent, updateContextConfig, updateConversation, updateConversationActiveAgent, updateCredentialReference, updateDataComponent, updateExternalAgent, updateFullAgentServerSide, updateFullProjectServerSide, updateFunctionTool, updateMessage, updateProject, updateSubAgent, updateSubAgentExternalAgentRelation, updateSubAgentFunctionToolRelation, updateSubAgentTeamAgentRelation, updateTask, updateTool, upsertAgent, upsertAgentArtifactComponentRelation, upsertAgentDataComponentRelation, upsertArtifactComponent, upsertContextConfig, upsertCredentialReference, upsertDataComponent, upsertExternalAgent, upsertFunction, upsertFunctionTool, upsertLedgerArtifact, upsertSubAgent, upsertSubAgentExternalAgentRelation, upsertSubAgentFunctionToolRelation, upsertSubAgentRelation, upsertSubAgentTeamAgentRelation, upsertSubAgentToolRelation, upsertTool, user, validateAgainstJsonSchema, validateAgentRelationships, validateAgentStructure, validateAndGetApiKey, validateAndTypeAgentData, validateApiKey, validateArtifactComponentReferences, validateDataComponentReferences, validateHeaders, validateHttpRequestHeaders, validateProjectExists, validatePropsAsJsonSchema, validateRender, validateSubAgent, validateSubAgentExternalAgentRelations, validateTargetAgent, validateTenantId, validateToolReferences, validationHelper, verification, verifyAuthorizationHeader, verifyServiceToken, verifyTempToken, withProjectValidation };
90
+ export { A2AMessageMetadataSchema, ACTIVITY_NAMES, ACTIVITY_STATUS, ACTIVITY_TYPES, AGENT_EXECUTION_TRANSFER_COUNT_DEFAULT, AGENT_EXECUTION_TRANSFER_COUNT_MAX, AGENT_EXECUTION_TRANSFER_COUNT_MIN, AGENT_IDS, AGGREGATE_OPERATORS, AI_OPERATIONS, AI_TOOL_TYPES, ANTHROPIC_MODELS, AgentApiInsertSchema, AgentApiSelectSchema, AgentApiUpdateSchema, AgentInsertSchema, AgentListResponse, AgentResponse, AgentSelectSchema, AgentStopWhenSchema, AgentUpdateSchema, AgentWithinContextOfProjectResponse, AgentWithinContextOfProjectSchema, AllAgentSchema, ApiKeyApiCreationResponseSchema, ApiKeyApiInsertSchema, ApiKeyApiSelectSchema, ApiKeyApiUpdateSchema, ApiKeyInsertSchema, ApiKeyListResponse, ApiKeyResponse, ApiKeySelectSchema, ApiKeyUpdateSchema, ArtifactComponentApiInsertSchema, ArtifactComponentApiSelectSchema, ArtifactComponentApiUpdateSchema, ArtifactComponentArrayResponse, ArtifactComponentInsertSchema, ArtifactComponentListResponse, ArtifactComponentResponse, ArtifactComponentSelectSchema, ArtifactComponentUpdateSchema, CONTEXT_FETCHER_HTTP_TIMEOUT_MS_DEFAULT, CONVERSATION_HISTORY_DEFAULT_LIMIT, CONVERSATION_HISTORY_MAX_OUTPUT_TOKENS_DEFAULT, CanUseItemSchema, ComponentAssociationListResponse, ComponentAssociationSchema, ContextCache, ContextCacheApiInsertSchema, ContextCacheApiSelectSchema, ContextCacheApiUpdateSchema, ContextCacheInsertSchema, ContextCacheSelectSchema, ContextCacheUpdateSchema, ContextConfigApiInsertSchema, ContextConfigApiSelectSchema, ContextConfigApiUpdateSchema, ContextConfigBuilder, ContextConfigInsertSchema, ContextConfigListResponse, ContextConfigResponse, ContextConfigSelectSchema, ContextConfigUpdateSchema, ContextFetcher, ContextResolver, ConversationApiInsertSchema, ConversationApiSelectSchema, ConversationApiUpdateSchema, ConversationInsertSchema, ConversationListResponse, ConversationResponse, ConversationSelectSchema, ConversationUpdateSchema, CreateCredentialInStoreRequestSchema, CreateCredentialInStoreResponseSchema, CredentialReferenceApiInsertSchema, CredentialReferenceApiSelectSchema, CredentialReferenceApiUpdateSchema, CredentialReferenceInsertSchema, CredentialReferenceListResponse, CredentialReferenceResponse, CredentialReferenceSelectSchema, CredentialReferenceUpdateSchema, CredentialStoreListResponseSchema, CredentialStoreRegistry, CredentialStoreSchema, CredentialStoreType, CredentialStuffer, DATA_SOURCES, DATA_TYPES, DEFAULT_NANGO_STORE_ID, DELEGATION_FROM_SUB_AGENT_ID, DELEGATION_ID, DELEGATION_TO_SUB_AGENT_ID, DataComponentApiInsertSchema, DataComponentApiSelectSchema, DataComponentApiUpdateSchema, DataComponentArrayResponse, DataComponentBaseSchema, DataComponentInsertSchema, DataComponentListResponse, DataComponentResponse, DataComponentSelectSchema, DataComponentStreamEventSchema, DataComponentUpdateSchema, DataOperationDetailsSchema, DataOperationEventSchema, DataOperationStreamEventSchema, DataSummaryStreamEventSchema, DelegationReturnedDataSchema, DelegationSentDataSchema, ERROR_DOCS_BASE_URL, ErrorCode, ErrorResponseSchema, ExistsResponseSchema, ExternalAgentApiInsertSchema, ExternalAgentApiSelectSchema, ExternalAgentApiUpdateSchema, ExternalAgentInsertSchema, ExternalAgentListResponse, ExternalAgentResponse, ExternalAgentSelectSchema, ExternalAgentUpdateSchema, ExternalSubAgentRelationApiInsertSchema, ExternalSubAgentRelationInsertSchema, FIELD_TYPES, FetchConfigSchema, FetchDefinitionSchema, FullAgentAgentInsertSchema, FullProjectDefinitionResponse, FullProjectDefinitionSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, FunctionInsertSchema, FunctionListResponse, FunctionResponse, FunctionSelectSchema, FunctionToolApiInsertSchema, FunctionToolApiSelectSchema, FunctionToolApiUpdateSchema, FunctionToolConfigSchema, FunctionToolInsertSchema, FunctionToolListResponse, FunctionToolResponse, FunctionToolSelectSchema, FunctionToolUpdateSchema, FunctionUpdateSchema, GOOGLE_MODELS, HTTP_REQUEST_PARTS, HeadersScopeSchema, InMemoryCredentialStore, KeyChainStore, LedgerArtifactApiInsertSchema, LedgerArtifactApiSelectSchema, LedgerArtifactApiUpdateSchema, LedgerArtifactInsertSchema, LedgerArtifactSelectSchema, LedgerArtifactUpdateSchema, ListResponseSchema, MAX_ID_LENGTH, MCPCatalogListResponse, MCPServerType, MCPToolConfigSchema, MCPTransportType, MCP_TOOL_CONNECTION_TIMEOUT_MS, MCP_TOOL_INITIAL_RECONNECTION_DELAY_MS, MCP_TOOL_MAX_RECONNECTION_DELAY_MS, MCP_TOOL_MAX_RETRIES, MCP_TOOL_RECONNECTION_DELAY_GROWTH_FACTOR, MIN_ID_LENGTH, McpClient, McpToolDefinitionSchema, McpToolListResponse, McpToolResponse, McpToolSchema, McpTransportConfigSchema, MessageApiInsertSchema, MessageApiSelectSchema, MessageApiUpdateSchema, MessageInsertSchema, MessageListResponse, MessageResponse, MessageSelectSchema, MessageUpdateSchema, MissingRequiredVariableError, ModelFactory, ModelSchema, ModelSettingsSchema, NangoCredentialStore, OAuthCallbackQuerySchema, OAuthLoginQuerySchema, OPENAI_MODELS, OPERATORS, ORDER_DIRECTIONS, PANEL_TYPES, PaginationQueryParamsSchema, PaginationSchema, PinoLogger, PrebuiltMCPServerSchema, ProjectApiInsertSchema, ProjectApiSelectSchema, ProjectApiUpdateSchema, ProjectInsertSchema, ProjectListResponse, ProjectModelSchema, ProjectResponse, ProjectSelectSchema, ProjectUpdateSchema, QUERY_DEFAULTS, QUERY_EXPRESSIONS, QUERY_FIELD_CONFIGS, QUERY_TYPES, REDUCE_OPERATIONS, RelatedAgentInfoListResponse, RelatedAgentInfoSchema, RemovedResponseSchema, SPAN_KEYS, SPAN_NAMES, STATUS_UPDATE_MAX_INTERVAL_SECONDS, STATUS_UPDATE_MAX_NUM_EVENTS, SUB_AGENT_TURN_GENERATION_STEPS_DEFAULT, SUB_AGENT_TURN_GENERATION_STEPS_MAX, SUB_AGENT_TURN_GENERATION_STEPS_MIN, SingleResponseSchema, StatusComponentSchema, StatusUpdateSchema, StopWhenSchema, StreamErrorEventSchema, StreamEventSchema, StreamFinishEventSchema, SubAgentApiInsertSchema, SubAgentApiSelectSchema, SubAgentApiUpdateSchema, SubAgentArtifactComponentApiInsertSchema, SubAgentArtifactComponentApiSelectSchema, SubAgentArtifactComponentApiUpdateSchema, SubAgentArtifactComponentInsertSchema, SubAgentArtifactComponentListResponse, SubAgentArtifactComponentResponse, SubAgentArtifactComponentSelectSchema, SubAgentArtifactComponentUpdateSchema, SubAgentDataComponentApiInsertSchema, SubAgentDataComponentApiSelectSchema, SubAgentDataComponentApiUpdateSchema, SubAgentDataComponentInsertSchema, SubAgentDataComponentListResponse, SubAgentDataComponentResponse, SubAgentDataComponentSelectSchema, SubAgentDataComponentUpdateSchema, SubAgentExternalAgentRelationApiInsertSchema, SubAgentExternalAgentRelationApiSelectSchema, SubAgentExternalAgentRelationApiUpdateSchema, SubAgentExternalAgentRelationInsertSchema, SubAgentExternalAgentRelationListResponse, SubAgentExternalAgentRelationResponse, SubAgentExternalAgentRelationSelectSchema, SubAgentExternalAgentRelationUpdateSchema, SubAgentInsertSchema, SubAgentIsDefaultError, SubAgentListResponse, SubAgentRelationApiInsertSchema, SubAgentRelationApiSelectSchema, SubAgentRelationApiUpdateSchema, SubAgentRelationInsertSchema, SubAgentRelationListResponse, SubAgentRelationQuerySchema, SubAgentRelationResponse, SubAgentRelationSelectSchema, SubAgentRelationUpdateSchema, SubAgentResponse, SubAgentSelectSchema, SubAgentStopWhenSchema, SubAgentTeamAgentRelationApiInsertSchema, SubAgentTeamAgentRelationApiSelectSchema, SubAgentTeamAgentRelationApiUpdateSchema, SubAgentTeamAgentRelationInsertSchema, SubAgentTeamAgentRelationListResponse, SubAgentTeamAgentRelationResponse, SubAgentTeamAgentRelationSelectSchema, SubAgentTeamAgentRelationUpdateSchema, SubAgentToolRelationApiInsertSchema, SubAgentToolRelationApiSelectSchema, SubAgentToolRelationApiUpdateSchema, SubAgentToolRelationInsertSchema, SubAgentToolRelationListResponse, SubAgentToolRelationResponse, SubAgentToolRelationSelectSchema, SubAgentToolRelationUpdateSchema, SubAgentUpdateSchema, TOOL_STATUS_VALUES, TRANSFER_FROM_SUB_AGENT_ID, TRANSFER_TO_SUB_AGENT_ID, TaskApiInsertSchema, TaskApiSelectSchema, TaskApiUpdateSchema, TaskInsertSchema, TaskRelationApiInsertSchema, TaskRelationApiSelectSchema, TaskRelationApiUpdateSchema, TaskRelationInsertSchema, TaskRelationSelectSchema, TaskRelationUpdateSchema, TaskSelectSchema, TaskState, TaskUpdateSchema, TeamAgentSchema, TemplateEngine, TenantIdParamsSchema, TenantParamsSchema, TenantProjectAgentIdParamsSchema, TenantProjectAgentParamsSchema, TenantProjectAgentSubAgentIdParamsSchema, TenantProjectAgentSubAgentParamsSchema, TenantProjectIdParamsSchema, TenantProjectParamsSchema, TextDeltaEventSchema, TextEndEventSchema, TextStartEventSchema, ThirdPartyMCPServerResponse, ToolApiInsertSchema, ToolApiSelectSchema, ToolApiUpdateSchema, ToolInsertSchema, ToolListResponse, ToolResponse, ToolSelectSchema, ToolStatusSchema, ToolUpdateSchema, TransferDataSchema, UNKNOWN_VALUE, URL_SAFE_ID_PATTERN, VALIDATION_AGENT_PROMPT_MAX_CHARS, VALIDATION_SUB_AGENT_PROMPT_MAX_CHARS, VALID_RELATION_TYPES, account, addFunctionToolToSubAgent, addLedgerArtifacts, addToolToAgent, addUserToOrganization, agentHasArtifactComponents, agentRelations, agentToolRelationsRelations, agents, apiFetch, apiKeys, apiKeysRelations, artifactComponents, artifactComponentsRelations, associateArtifactComponentWithAgent, associateDataComponentWithAgent, canDelegateToExternalAgentSchema, canDelegateToTeamAgentSchema, cleanupTenantCache, cleanupTestDatabase, clearContextConfigCache, clearConversationCache, closeTestDatabase, commonCreateErrorResponses, commonDeleteErrorResponses, commonGetErrorResponses, commonUpdateErrorResponses, contextCache, contextCacheRelations, contextConfig, contextConfigs, contextConfigsRelations, contextValidationMiddleware, conversations, conversationsRelations, convertZodToJsonSchema, convertZodToJsonSchemaWithPreview, countApiKeys, countArtifactComponents, countArtifactComponentsForAgent, countContextConfigs, countCredentialReferences, countDataComponents, countExternalAgents, countLedgerArtifactsByTask, countMessagesByConversation, countProjects, createAgent, createAgentToolRelation, createApiError, createApiKey, createArtifactComponent, createContextConfig, createConversation, createCredentialReference, createDataComponent, createDatabaseClient, createDefaultCredentialStores, createExecutionContext, createExternalAgent, createFullAgentServerSide, createFullProjectServerSide, createFunctionTool, createKeyChainStore, createMessage, createNangoCredentialStore, createOrGetConversation, createProject, createSubAgent, createSubAgentExternalAgentRelation, createSubAgentRelation, createSubAgentTeamAgentRelation, createTask, createTestDatabaseClient, createTestOrganization, createTestProject, createTool, createValidatedDataAccess, credentialReferences, credentialReferencesRelations, dataComponents, dataComponentsRelations, dbResultToMcpTool, deleteAgent, deleteAgentArtifactComponentRelationByAgent, deleteAgentDataComponentRelationByAgent, deleteAgentRelationsByAgent, deleteAgentToolRelation, deleteAgentToolRelationByAgent, deleteApiKey, deleteArtifactComponent, deleteContextConfig, deleteConversation, deleteCredentialReference, deleteDataComponent, deleteExternalAgent, deleteFullAgent, deleteFullProject, deleteFunction, deleteFunctionTool, deleteLedgerArtifactsByContext, deleteLedgerArtifactsByTask, deleteMessage, deleteProject, deleteSubAgent, deleteSubAgentExternalAgentRelation, deleteSubAgentExternalAgentRelationsByAgent, deleteSubAgentExternalAgentRelationsBySubAgent, deleteSubAgentRelation, deleteSubAgentTeamAgentRelation, deleteSubAgentTeamAgentRelationsByAgent, deleteSubAgentTeamAgentRelationsBySubAgent, deleteTool, detectAuthenticationRequired, determineContextTrigger, deviceCode, errorResponseSchema, errorSchemaFactory, exchangeMcpAuthorizationCode, executionLimitsSharedDefaults, externalAgentExists, externalAgentUrlExists, externalAgents, externalAgentsRelations, extractComposioServerId, extractPreviewFields, extractPublicId, fetchComponentRelationships, fetchComposioServers, fetchDefinition, fetchSingleComposioServer, formatMessagesForLLM, formatMessagesForLLMContext, functionTools, functionToolsRelations, functions, functionsRelations, generateAndCreateApiKey, generateApiKey, generateId, generateIdFromName, generateServiceToken, getActiveAgentForConversation, getAgentById, getAgentRelationById, getAgentRelationByParams, getAgentRelations, getAgentRelationsByAgent, getAgentRelationsBySource, getAgentSubAgentInfos, getAgentToolRelationByAgent, getAgentToolRelationById, getAgentToolRelationByTool, getAgentWithDefaultSubAgent, getAgentsForTool, getAgentsUsingArtifactComponent, getAgentsUsingDataComponent, getApiKeyById, getApiKeyByPublicId, getArtifactComponentById, getArtifactComponentsForAgent, getCacheEntry, getCachedValidator, getComposioOAuthRedirectUrl, getComposioUserId, getContextConfigById, getContextConfigCacheEntries, getConversation, getConversationCacheEntries, getConversationHistory, getConversationId, getCredentialReference, getCredentialReferenceById, getCredentialReferenceWithResources, getCredentialStoreLookupKeyFromRetrievalParams, getDataComponent, getDataComponentsForAgent, getExternalAgent, getExternalAgentByUrl, getExternalAgentsForSubAgent, getFullAgent, getFullAgentDefinition, getFullProject, getFunction, getFunctionToolById, getFunctionToolsForSubAgent, getLedgerArtifacts, getLedgerArtifactsByContext, getLogger, getMessageById, getMessagesByConversation, getMessagesByTask, getPendingInvitationsByEmail, getProject, getProjectResourceCounts, getRelatedAgentsForAgent, getRequestExecutionContext, getSubAgentById, getSubAgentExternalAgentRelationById, getSubAgentExternalAgentRelationByParams, getSubAgentExternalAgentRelations, getSubAgentExternalAgentRelationsByAgent, getSubAgentExternalAgentRelationsByExternalAgent, getSubAgentRelationsByTarget, getSubAgentTeamAgentRelationById, getSubAgentTeamAgentRelationByParams, getSubAgentTeamAgentRelations, getSubAgentTeamAgentRelationsByAgent, getSubAgentTeamAgentRelationsByTeamAgent, getSubAgentsByIds, getSubAgentsForExternalAgent, getSubAgentsForTeamAgent, getTask, getTeamAgentsForSubAgent, getToolById, getToolsForAgent, getTracer, getUserByEmail, getUserById, getUserOrganizations, getUserScopedCredentialReference, getVisibleMessages, handleApiError, handleContextConfigChange, handleContextResolution, hasApiKey, hasContextConfig, hasCredentialReference, hashApiKey, headers, initiateMcpOAuthFlow, invalidateHeadersCache, invalidateInvocationDefinitionsCache, invitation, isApiKeyExpired, isArtifactComponentAssociatedWithAgent, isComposioMCPServerAuthenticated, isDataComponentAssociatedWithAgent, isThirdPartyMCPServerAuthenticated, isValidHttpRequest, isValidResourceId, isZodSchema, jsonSchemaToZod, ledgerArtifacts, ledgerArtifactsRelations, listAgentRelations, listAgentToolRelations, listAgents, listAgentsPaginated, listApiKeys, listApiKeysPaginated, listArtifactComponents, listArtifactComponentsPaginated, listContextConfigs, listContextConfigsPaginated, listConversations, listCredentialReferences, listCredentialReferencesPaginated, listDataComponents, listDataComponentsPaginated, listExternalAgents, listExternalAgentsPaginated, listFunctionTools, listFunctions, listFunctionsPaginated, listMessages, listProjects, listProjectsPaginated, listSubAgentExternalAgentRelations, listSubAgentTeamAgentRelations, listSubAgents, listSubAgentsPaginated, listTaskIdsByContextId, listTools, loadEnvironmentFiles, loggerFactory, maskApiKey, member, messages, messagesRelations, normalizeDateString, normalizeToolSelections, organization, parseEmbeddedJson, preview, problemDetailsSchema, projectExists, projectExistsInTable, projectHasResources, projects, projectsRelations, removeArtifactComponentFromAgent, removeDataComponentFromAgent, removeToolFromAgent, resourceIdSchema, schemaValidationDefaults, session, setActiveAgentForConversation, setActiveAgentForThread, setCacheEntry, setSpanWithError, signTempToken, ssoProvider, subAgentArtifactComponents, subAgentArtifactComponentsRelations, subAgentDataComponents, subAgentDataComponentsRelations, subAgentExternalAgentRelations, subAgentExternalAgentRelationsRelations, subAgentFunctionToolRelations, subAgentFunctionToolRelationsRelations, subAgentRelations, subAgentRelationsRelations, subAgentTeamAgentRelations, subAgentTeamAgentRelationsRelations, subAgentToolRelations, subAgents, subAgentsRelations, taskRelations, taskRelationsRelations, tasks, tasksRelations, toISODateString, tools, toolsRelations, updateAgent, updateAgentRelation, updateAgentToolRelation, updateApiKey, updateApiKeyLastUsed, updateArtifactComponent, updateContextConfig, updateConversation, updateConversationActiveAgent, updateCredentialReference, updateDataComponent, updateExternalAgent, updateFullAgentServerSide, updateFullProjectServerSide, updateFunctionTool, updateMessage, updateProject, updateSubAgent, updateSubAgentExternalAgentRelation, updateSubAgentFunctionToolRelation, updateSubAgentTeamAgentRelation, updateTask, updateTool, upsertAgent, upsertAgentArtifactComponentRelation, upsertAgentDataComponentRelation, upsertArtifactComponent, upsertContextConfig, upsertCredentialReference, upsertDataComponent, upsertExternalAgent, upsertFunction, upsertFunctionTool, upsertLedgerArtifact, upsertSubAgent, upsertSubAgentExternalAgentRelation, upsertSubAgentFunctionToolRelation, upsertSubAgentRelation, upsertSubAgentTeamAgentRelation, upsertSubAgentToolRelation, upsertTool, user, validateAgainstJsonSchema, validateAgentRelationships, validateAgentStructure, validateAndGetApiKey, validateAndTypeAgentData, validateApiKey, validateArtifactComponentReferences, validateDataComponentReferences, validateHeaders, validateHttpRequestHeaders, validateProjectExists, validatePropsAsJsonSchema, validateRender, validateSubAgent, validateSubAgentExternalAgentRelations, validateTargetAgent, validateTenantId, validateToolReferences, validationHelper, verification, verifyAuthorizationHeader, verifyServiceToken, verifyTempToken, withProjectValidation };
@@ -3,6 +3,17 @@ import pinoPretty from "pino-pretty";
3
3
 
4
4
  //#region src/utils/logger.ts
5
5
  /**
6
+ * Determines whether log output should be colorized.
7
+ *
8
+ * Checks in order:
9
+ * 1. NO_COLOR env var (standard: https://no-color.org/) - if set to any non-empty value, disables colors
10
+ * 2. Falls back to process.stdout.isTTY (colors enabled for interactive terminals)
11
+ */
12
+ function shouldColorize() {
13
+ if (process.env.NO_COLOR && process.env.NO_COLOR !== "") return false;
14
+ return process.stdout.isTTY ?? false;
15
+ }
16
+ /**
6
17
  * Pino logger implementation with transport customization support
7
18
  */
8
19
  var PinoLogger = class {
@@ -15,14 +26,19 @@ var PinoLogger = class {
15
26
  name: this.name,
16
27
  level: process.env.LOG_LEVEL || (process.env.ENVIRONMENT === "test" ? "silent" : "info"),
17
28
  serializers: { obj: (value) => ({ ...value }) },
18
- redact: ["req.headers.authorization", "req.headers[\"x-inkeep-admin-authentication\"]"],
29
+ redact: [
30
+ "req.headers.authorization",
31
+ "req.headers[\"x-inkeep-admin-authentication\"]",
32
+ "req.headers.cookie",
33
+ "req.headers[\"x-forwarded-cookie\"]"
34
+ ],
19
35
  ...config.options
20
36
  };
21
37
  if (config.transportConfigs) this.transportConfigs = config.transportConfigs;
22
38
  if (this.transportConfigs.length > 0) this.pinoInstance = pino(this.options, pino.transport({ targets: this.transportConfigs }));
23
39
  else try {
24
40
  const prettyStream = pinoPretty({
25
- colorize: true,
41
+ colorize: shouldColorize(),
26
42
  translateTime: "HH:MM:ss",
27
43
  ignore: "pid,hostname"
28
44
  });
@@ -39,7 +55,7 @@ var PinoLogger = class {
39
55
  if (this.pinoInstance && typeof this.pinoInstance.flush === "function") this.pinoInstance.flush();
40
56
  if (this.transportConfigs.length === 0) try {
41
57
  const prettyStream = pinoPretty({
42
- colorize: true,
58
+ colorize: shouldColorize(),
43
59
  translateTime: "HH:MM:ss",
44
60
  ignore: "pid,hostname"
45
61
  });
@@ -44,20 +44,34 @@ var McpClient = class {
44
44
  }
45
45
  async connectSSE(config) {
46
46
  const url = typeof config.url === "string" ? config.url : config.url.toString();
47
+ const headersToSend = config.headers || {};
47
48
  this.transport = new SSEClientTransport(new URL(url), {
48
49
  eventSourceInit: config.eventSourceInit,
49
- requestInit: { headers: config.headers || {} }
50
+ requestInit: { headers: headersToSend }
50
51
  });
51
52
  await this.client.connect(this.transport, { timeout: config.timeout ?? this.timeout });
52
53
  }
53
54
  async connectHttp(config) {
54
55
  const { url, requestInit } = config;
56
+ const normalizeHeaders = (headers) => {
57
+ if (!headers) return {};
58
+ if (headers instanceof Headers) {
59
+ const obj = {};
60
+ headers.forEach((value, key) => {
61
+ obj[key] = value;
62
+ });
63
+ return obj;
64
+ }
65
+ if (Array.isArray(headers)) return Object.fromEntries(headers);
66
+ return headers;
67
+ };
68
+ const mergedHeaders = {
69
+ ...normalizeHeaders(requestInit?.headers),
70
+ ...config.headers || {}
71
+ };
55
72
  const mergedRequestInit = {
56
73
  ...requestInit,
57
- headers: {
58
- ...requestInit?.headers || {},
59
- ...config.headers || {}
60
- }
74
+ headers: mergedHeaders
61
75
  };
62
76
  const urlString = typeof url === "string" ? url : url.toString();
63
77
  this.transport = new StreamableHTTPClientTransport(new URL(urlString), {
@@ -1,5 +1,6 @@
1
1
  import { getLogger } from "./logger.js";
2
2
  import { anthropic, createAnthropic } from "@ai-sdk/anthropic";
3
+ import { createAzure } from "@ai-sdk/azure";
3
4
  import { createGateway, gateway } from "@ai-sdk/gateway";
4
5
  import { createGoogleGenerativeAI, google } from "@ai-sdk/google";
5
6
  import { createOpenAI, openai } from "@ai-sdk/openai";
@@ -25,6 +26,12 @@ var ModelFactory = class ModelFactory {
25
26
  static createProvider(provider, config) {
26
27
  switch (provider) {
27
28
  case "anthropic": return createAnthropic(config);
29
+ case "azure":
30
+ if (!config.resourceName && !config.baseURL) {
31
+ const errorMessage = !!process.env.AZURE_OPENAI_API_KEY ? "Azure provider requires either resourceName or baseURL in provider options. Provide resourceName for standard Azure OpenAI, or baseURL for custom endpoints." : "Azure provider requires either resourceName or baseURL in provider options, and AZURE_OPENAI_API_KEY environment variable must be set. Provide resourceName for standard Azure OpenAI, or baseURL for custom endpoints.";
32
+ throw new Error(errorMessage);
33
+ }
34
+ return createAzure(config);
28
35
  case "openai": return createOpenAI(config);
29
36
  case "google": return createGoogleGenerativeAI(config);
30
37
  case "openrouter": return createOpenRouter(config);
@@ -66,6 +73,8 @@ var ModelFactory = class ModelFactory {
66
73
  const providerConfig = {};
67
74
  if (providerOptions.baseUrl || providerOptions.baseURL) providerConfig.baseURL = providerOptions.baseUrl || providerOptions.baseURL;
68
75
  if (providerOptions.headers) providerConfig.headers = providerOptions.headers;
76
+ if (providerOptions.resourceName) providerConfig.resourceName = providerOptions.resourceName;
77
+ if (providerOptions.apiVersion) providerConfig.apiVersion = providerOptions.apiVersion;
69
78
  if (providerOptions.gateway) Object.assign(providerConfig, providerOptions.gateway);
70
79
  if (providerOptions.nim) Object.assign(providerConfig, providerOptions.nim);
71
80
  if (providerOptions.custom) Object.assign(providerConfig, providerOptions.custom);
@@ -88,7 +97,7 @@ var ModelFactory = class ModelFactory {
88
97
  hasProviderOptions: !!modelSettings.providerOptions
89
98
  }, "Creating language model from config");
90
99
  const providerConfig = ModelFactory.extractProviderConfig(modelSettings.providerOptions);
91
- if (Object.keys(providerConfig).length > 0) {
100
+ if (provider === "azure" || Object.keys(providerConfig).length > 0) {
92
101
  logger.info({ config: providerConfig }, `Applying custom ${provider} provider configuration`);
93
102
  return ModelFactory.createProvider(provider, providerConfig).languageModel(modelName);
94
103
  }
@@ -108,6 +117,7 @@ var ModelFactory = class ModelFactory {
108
117
  */
109
118
  static BUILT_IN_PROVIDERS = [
110
119
  "anthropic",
120
+ "azure",
111
121
  "openai",
112
122
  "google",
113
123
  "openrouter",
@@ -143,6 +153,8 @@ var ModelFactory = class ModelFactory {
143
153
  "apiKey",
144
154
  "baseURL",
145
155
  "baseUrl",
156
+ "resourceName",
157
+ "apiVersion",
146
158
  "maxDuration",
147
159
  "headers",
148
160
  "gateway",
@@ -6,7 +6,7 @@ import { z } from "@hono/zod-openapi";
6
6
  * Converts JSON Schema to Zod schema at runtime.
7
7
  *
8
8
  * This is useful for dynamically creating Zod schemas from JSON Schema definitions,
9
- * such as when using AI SDK's generateObject/streamObject with data component props.
9
+ * such as when using AI SDK's structured generateText/streamText with data component props.
10
10
  *
11
11
  * Note: Uses z.string() as fallback for unknown types to ensure Anthropic compatibility
12
12
  * (Anthropic requires explicit types - z.any()/z.unknown() produce invalid JSON Schema).
@@ -7,7 +7,7 @@ const logger = getLogger("schema-conversion");
7
7
  * Converts JSON Schema to Zod schema at runtime.
8
8
  *
9
9
  * This is useful for dynamically creating Zod schemas from JSON Schema definitions,
10
- * such as when using AI SDK's generateObject/streamObject with data component props.
10
+ * such as when using AI SDK's structured generateText/streamText with data component props.
11
11
  *
12
12
  * Note: Uses z.string() as fallback for unknown types to ensure Anthropic compatibility
13
13
  * (Anthropic requires explicit types - z.any()/z.unknown() produce invalid JSON Schema).
@@ -1,5 +1,5 @@
1
1
  import { z } from "@hono/zod-openapi";
2
- import * as drizzle_zod141 from "drizzle-zod";
2
+ import * as drizzle_zod0 from "drizzle-zod";
3
3
  import { AnySQLiteTable } from "drizzle-orm/sqlite-core";
4
4
 
5
5
  //#region src/validation/drizzle-schema-helpers.d.ts
@@ -22,8 +22,8 @@ declare const resourceIdSchema: z.ZodString;
22
22
  declare function createResourceIdSchema(description: string, options?: {
23
23
  example?: string;
24
24
  }): z.ZodString;
25
- declare function createSelectSchemaWithModifiers<T extends AnySQLiteTable>(table: T, overrides?: Partial<Record<keyof T['_']['columns'], (schema: z.ZodTypeAny) => z.ZodTypeAny>>): drizzle_zod141.BuildSchema<"select", T["_"]["columns"], drizzle_zod141.BuildRefine<T["_"]["columns"], undefined>, undefined>;
26
- declare function createInsertSchemaWithModifiers<T extends AnySQLiteTable>(table: T, overrides?: Partial<Record<keyof T['_']['columns'], (schema: z.ZodTypeAny) => z.ZodTypeAny>>): drizzle_zod141.BuildSchema<"insert", T["_"]["columns"], drizzle_zod141.BuildRefine<Pick<T["_"]["columns"], keyof T["$inferInsert"]>, undefined>, undefined>;
25
+ declare function createSelectSchemaWithModifiers<T extends AnySQLiteTable>(table: T, overrides?: Partial<Record<keyof T['_']['columns'], (schema: z.ZodTypeAny) => z.ZodTypeAny>>): drizzle_zod0.BuildSchema<"select", T["_"]["columns"], drizzle_zod0.BuildRefine<T["_"]["columns"], undefined>, undefined>;
26
+ declare function createInsertSchemaWithModifiers<T extends AnySQLiteTable>(table: T, overrides?: Partial<Record<keyof T['_']['columns'], (schema: z.ZodTypeAny) => z.ZodTypeAny>>): drizzle_zod0.BuildSchema<"insert", T["_"]["columns"], drizzle_zod0.BuildRefine<Pick<T["_"]["columns"], keyof T["$inferInsert"]>, undefined>, undefined>;
27
27
  declare const createSelectSchema: typeof createSelectSchemaWithModifiers;
28
28
  declare const createInsertSchema: typeof createInsertSchemaWithModifiers;
29
29
  /**