@inkeep/agents-core 0.35.1 → 0.35.2

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/auth/auth-schema.d.ts +1097 -0
  2. package/dist/auth/auth-schema.js +1 -0
  3. package/dist/auth/auth-validation-schemas.d.ts +1881 -0
  4. package/dist/auth/auth-validation-schemas.js +39 -0
  5. package/dist/auth/auth.d.ts +118 -0
  6. package/dist/auth/auth.js +95 -0
  7. package/dist/auth/permissions.d.ts +273 -0
  8. package/dist/auth/permissions.js +1 -0
  9. package/dist/chunk-4JZT4QEE.js +162 -0
  10. package/dist/chunk-F5WWOOIX.js +62 -0
  11. package/dist/{chunk-YZ5ZBVHJ.js → chunk-NFYCSHD3.js} +3 -81
  12. package/dist/chunk-NOPEANIU.js +82 -0
  13. package/dist/{chunk-J5AHY6M2.js → chunk-SPRTYWRV.js} +1 -1
  14. package/dist/{chunk-OP3KPT4T.js → chunk-TGESM3JG.js} +1 -160
  15. package/dist/{chunk-DYGTCLJO.js → chunk-VBCCPAZK.js} +1 -1
  16. package/dist/chunk-ZYSTJ4XY.js +948 -0
  17. package/dist/client-CPYOMZF2.d.ts +19 -0
  18. package/dist/client-exports.js +4 -3
  19. package/dist/db/schema.d.ts +2 -1
  20. package/dist/db/schema.js +2 -1
  21. package/dist/index.d.ts +9 -154
  22. package/dist/index.js +1565 -2498
  23. package/dist/{schema-BWd551GM.d.ts → schema-5N2lPWNV.d.ts} +2 -1095
  24. package/dist/validation/index.js +2 -2
  25. package/package.json +17 -1
  26. package/dist/auth-detection-CGqhPDnj.d.cts +0 -435
  27. package/dist/client-exports.cjs +0 -2833
  28. package/dist/client-exports.d.cts +0 -289
  29. package/dist/constants/models.cjs +0 -40
  30. package/dist/constants/models.d.cts +0 -42
  31. package/dist/db/schema.cjs +0 -1090
  32. package/dist/db/schema.d.cts +0 -7
  33. package/dist/index.cjs +0 -227898
  34. package/dist/index.d.cts +0 -4893
  35. package/dist/props-validation-BMR1qNiy.d.cts +0 -15
  36. package/dist/schema-D4WR42em.d.cts +0 -6352
  37. package/dist/types/index.cjs +0 -39
  38. package/dist/types/index.d.cts +0 -132
  39. package/dist/utility-DbltUp2Q.d.cts +0 -17079
  40. package/dist/utils/schema-conversion.cjs +0 -232
  41. package/dist/utils/schema-conversion.d.cts +0 -26
  42. package/dist/validation/index.cjs +0 -2930
  43. package/dist/validation/index.d.cts +0 -279
@@ -0,0 +1,19 @@
1
+ import { NodePgDatabase } from 'drizzle-orm/node-postgres';
2
+ import { PgliteDatabase } from 'drizzle-orm/pglite';
3
+ import { s as schema } from './schema-5N2lPWNV.js';
4
+
5
+ type DatabaseClient = NodePgDatabase<typeof schema> | PgliteDatabase<typeof schema>;
6
+ interface DatabaseConfig {
7
+ connectionString?: string;
8
+ poolSize?: number;
9
+ ssl?: boolean;
10
+ logger?: {
11
+ logQuery: (query: string, params: unknown[]) => void;
12
+ };
13
+ }
14
+ /**
15
+ * Creates a PostgreSQL database client with connection pooling
16
+ */
17
+ declare function createDatabaseClient(config?: DatabaseConfig): DatabaseClient;
18
+
19
+ export { type DatabaseClient as D, type DatabaseConfig as a, createDatabaseClient as c };
@@ -1,6 +1,7 @@
1
- export { ACTIVITY_NAMES, ACTIVITY_STATUS, ACTIVITY_TYPES, AGENT_IDS, AGGREGATE_OPERATORS, AI_OPERATIONS, AI_TOOL_TYPES, DATA_SOURCES, DATA_TYPES, DELEGATION_FROM_SUB_AGENT_ID, DELEGATION_ID, DELEGATION_TO_SUB_AGENT_ID, FIELD_TYPES, OPERATORS, ORDER_DIRECTIONS, PANEL_TYPES, QUERY_DEFAULTS, QUERY_EXPRESSIONS, QUERY_FIELD_CONFIGS, QUERY_TYPES, REDUCE_OPERATIONS, SPAN_KEYS, SPAN_NAMES, TRANSFER_FROM_SUB_AGENT_ID, TRANSFER_TO_SUB_AGENT_ID, UNKNOWN_VALUE, detectAuthenticationRequired } from './chunk-OP3KPT4T.js';
2
- import { ModelSettingsSchema, schemaValidationDefaults, FullAgentAgentInsertSchema, ArtifactComponentApiInsertSchema } from './chunk-DYGTCLJO.js';
3
- export { AgentStopWhenSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, ModelSettingsSchema, StopWhenSchema, SubAgentStopWhenSchema, validatePropsAsJsonSchema } from './chunk-DYGTCLJO.js';
1
+ export { ACTIVITY_NAMES, ACTIVITY_STATUS, ACTIVITY_TYPES, AGENT_IDS, AGGREGATE_OPERATORS, AI_OPERATIONS, AI_TOOL_TYPES, DATA_SOURCES, DATA_TYPES, DELEGATION_FROM_SUB_AGENT_ID, DELEGATION_ID, DELEGATION_TO_SUB_AGENT_ID, FIELD_TYPES, OPERATORS, ORDER_DIRECTIONS, PANEL_TYPES, QUERY_DEFAULTS, QUERY_EXPRESSIONS, QUERY_FIELD_CONFIGS, QUERY_TYPES, REDUCE_OPERATIONS, SPAN_KEYS, SPAN_NAMES, TRANSFER_FROM_SUB_AGENT_ID, TRANSFER_TO_SUB_AGENT_ID, UNKNOWN_VALUE } from './chunk-TGESM3JG.js';
2
+ import { ModelSettingsSchema, schemaValidationDefaults, FullAgentAgentInsertSchema, ArtifactComponentApiInsertSchema } from './chunk-VBCCPAZK.js';
3
+ export { AgentStopWhenSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, ModelSettingsSchema, StopWhenSchema, SubAgentStopWhenSchema, validatePropsAsJsonSchema } from './chunk-VBCCPAZK.js';
4
+ export { detectAuthenticationRequired } from './chunk-4JZT4QEE.js';
4
5
  import { CredentialStoreType } from './chunk-YFHT5M2R.js';
5
6
  export { CredentialStoreType, MCPTransportType } from './chunk-YFHT5M2R.js';
6
7
  import { z } from 'zod';
@@ -1,7 +1,8 @@
1
1
  import 'drizzle-orm';
2
2
  import 'drizzle-orm/pg-core';
3
3
  import '../utility-DbltUp2Q.js';
4
- export { Z as account, G as agentRelations, J as agentToolRelationsRelations, a as agents, y as apiKeys, I as apiKeysRelations, j as artifactComponents, O as artifactComponentsRelations, b as contextCache, E as contextCacheRelations, c as contextConfigs, D as contextConfigsRelations, v as conversations, M as conversationsRelations, z as credentialReferences, K as credentialReferencesRelations, h as dataComponents, Q as dataComponentsRelations, f as externalAgents, H as externalAgentsRelations, m as functionTools, V as functionToolsRelations, n as functions, T as functionsRelations, _ as invitation, x as ledgerArtifacts, S as ledgerArtifactsRelations, $ as member, w as messages, N as messagesRelations, a0 as organization, p as projects, B as projectsRelations, a1 as session, a2 as ssoProvider, k as subAgentArtifactComponents, P as subAgentArtifactComponentsRelations, i as subAgentDataComponents, R as subAgentDataComponentsRelations, q as subAgentExternalAgentRelations, X as subAgentExternalAgentRelationsRelations, u as subAgentFunctionToolRelations, W as subAgentFunctionToolRelationsRelations, e as subAgentRelations, U as subAgentRelationsRelations, r as subAgentTeamAgentRelations, Y as subAgentTeamAgentRelationsRelations, o as subAgentToolRelations, d as subAgents, F as subAgentsRelations, g as taskRelations, C as taskRelationsRelations, t as tasks, A as tasksRelations, l as tools, L as toolsRelations, a3 as user, a4 as verification } from '../schema-BWd551GM.js';
4
+ export { account, invitation, member, organization, session, ssoProvider, user, verification } from '../auth/auth-schema.js';
5
+ export { G as agentRelations, J as agentToolRelationsRelations, a as agents, y as apiKeys, I as apiKeysRelations, j as artifactComponents, O as artifactComponentsRelations, b as contextCache, E as contextCacheRelations, c as contextConfigs, D as contextConfigsRelations, v as conversations, M as conversationsRelations, z as credentialReferences, K as credentialReferencesRelations, h as dataComponents, Q as dataComponentsRelations, f as externalAgents, H as externalAgentsRelations, m as functionTools, V as functionToolsRelations, n as functions, T as functionsRelations, x as ledgerArtifacts, S as ledgerArtifactsRelations, w as messages, N as messagesRelations, p as projects, B as projectsRelations, k as subAgentArtifactComponents, P as subAgentArtifactComponentsRelations, i as subAgentDataComponents, R as subAgentDataComponentsRelations, q as subAgentExternalAgentRelations, X as subAgentExternalAgentRelationsRelations, u as subAgentFunctionToolRelations, W as subAgentFunctionToolRelationsRelations, e as subAgentRelations, U as subAgentRelationsRelations, r as subAgentTeamAgentRelations, Y as subAgentTeamAgentRelationsRelations, o as subAgentToolRelations, d as subAgents, F as subAgentsRelations, g as taskRelations, C as taskRelationsRelations, t as tasks, A as tasksRelations, l as tools, L as toolsRelations } from '../schema-5N2lPWNV.js';
5
6
  import 'zod';
6
7
  import 'drizzle-zod';
7
8
  import '@hono/zod-openapi';
package/dist/db/schema.js CHANGED
@@ -1 +1,2 @@
1
- export { account, agentRelations, agentToolRelationsRelations, agents, apiKeys, apiKeysRelations, artifactComponents, artifactComponentsRelations, contextCache, contextCacheRelations, contextConfigs, contextConfigsRelations, conversations, conversationsRelations, credentialReferences, credentialReferencesRelations, dataComponents, dataComponentsRelations, externalAgents, externalAgentsRelations, functionTools, functionToolsRelations, functions, functionsRelations, invitation, ledgerArtifacts, ledgerArtifactsRelations, member, messages, messagesRelations, organization, projects, projectsRelations, session, ssoProvider, subAgentArtifactComponents, subAgentArtifactComponentsRelations, subAgentDataComponents, subAgentDataComponentsRelations, subAgentExternalAgentRelations, subAgentExternalAgentRelationsRelations, subAgentFunctionToolRelations, subAgentFunctionToolRelationsRelations, subAgentRelations, subAgentRelationsRelations, subAgentTeamAgentRelations, subAgentTeamAgentRelationsRelations, subAgentToolRelations, subAgents, subAgentsRelations, taskRelations, taskRelationsRelations, tasks, tasksRelations, tools, toolsRelations, user, verification } from '../chunk-YZ5ZBVHJ.js';
1
+ export { agentRelations, agentToolRelationsRelations, agents, apiKeys, apiKeysRelations, artifactComponents, artifactComponentsRelations, contextCache, contextCacheRelations, contextConfigs, contextConfigsRelations, conversations, conversationsRelations, credentialReferences, credentialReferencesRelations, dataComponents, dataComponentsRelations, externalAgents, externalAgentsRelations, functionTools, functionToolsRelations, functions, functionsRelations, ledgerArtifacts, ledgerArtifactsRelations, messages, messagesRelations, projects, projectsRelations, subAgentArtifactComponents, subAgentArtifactComponentsRelations, subAgentDataComponents, subAgentDataComponentsRelations, subAgentExternalAgentRelations, subAgentExternalAgentRelationsRelations, subAgentFunctionToolRelations, subAgentFunctionToolRelationsRelations, subAgentRelations, subAgentRelationsRelations, subAgentTeamAgentRelations, subAgentTeamAgentRelationsRelations, subAgentToolRelations, subAgents, subAgentsRelations, taskRelations, taskRelationsRelations, tasks, tasksRelations, tools, toolsRelations } from '../chunk-NFYCSHD3.js';
2
+ export { account, invitation, member, organization, session, ssoProvider, user, verification } from '../chunk-NOPEANIU.js';
package/dist/index.d.ts CHANGED
@@ -6,16 +6,14 @@ import { r as CredentialReferenceApiInsert, s as ContextConfigSelect, l as Conte
6
6
  export { ba as A2AError, bG as A2ARequest, bH as A2AResponse, aL as APIKeySecurityScheme, bV as AgentApiInsert, e2 as AgentApiInsertSchema, bU as AgentApiSelect, e1 as AgentApiSelectSchema, bW as AgentApiUpdate, e3 as AgentApiUpdateSchema, aH as AgentCapabilities, aV as AgentCard, dx as AgentConversationHistoryConfig, d$ as AgentInsertSchema, gM as AgentListResponse, aI as AgentProvider, gw as AgentResponse, d_ as AgentSelectSchema, aJ as AgentSkill, e as AgentStopWhen, b as AgentStopWhenSchema, e0 as AgentUpdateSchema, h3 as AgentWithinContextOfProjectResponse, gg as AgentWithinContextOfProjectSchema, f6 as AllAgentSchema, cP as AllAgentSelect, cT as ApiKeyApiCreationResponse, fb as ApiKeyApiCreationResponseSchema, cR as ApiKeyApiInsert, fc as ApiKeyApiInsertSchema, cQ as ApiKeyApiSelect, fa as ApiKeyApiSelectSchema, cS as ApiKeyApiUpdate, A as ApiKeyApiUpdateSchema, f8 as ApiKeyInsertSchema, gQ as ApiKeyListResponse, gA as ApiKeyResponse, f7 as ApiKeySelectSchema, f9 as ApiKeyUpdateSchema, cE as ArtifactComponentApiInsert, eU as ArtifactComponentApiInsertSchema, cD as ArtifactComponentApiSelect, eT as ArtifactComponentApiSelectSchema, cF as ArtifactComponentApiUpdate, eV as ArtifactComponentApiUpdateSchema, hd as ArtifactComponentArrayResponse, eR as ArtifactComponentInsertSchema, gV as ArtifactComponentListResponse, gF as ArtifactComponentResponse, eQ as ArtifactComponentSelectSchema, eS as ArtifactComponentUpdateSchema, aO as AuthorizationCodeOAuthFlow, dg as CanDelegateToExternalAgent, df as CanUseItem, gc as CanUseItemSchema, bq as CancelTaskRequest, bB as CancelTaskResponse, bA as CancelTaskSuccessResponse, aP as ClientCredentialsOAuthFlow, h5 as ComponentAssociationListResponse, fo as ComponentAssociationSchema, b8 as ContentTypeNotSupportedError, cs as ContextCacheApiInsert, eB as ContextCacheApiInsertSchema, cr as ContextCacheApiSelect, eA as ContextCacheApiSelectSchema, ct as ContextCacheApiUpdate, eC as ContextCacheApiUpdateSchema, dy as ContextCacheEntry, ey as ContextCacheInsertSchema, ex as ContextCacheSelectSchema, cq as ContextCacheUpdate, ez as ContextCacheUpdateSchema, cm as ContextConfigApiInsert, fM as ContextConfigApiInsertSchema, cl as ContextConfigApiSelect, fL as ContextConfigApiSelectSchema, cn as ContextConfigApiUpdate, fN as ContextConfigApiUpdateSchema, fJ as ContextConfigInsertSchema, gP as ContextConfigListResponse, gz as ContextConfigResponse, fI as ContextConfigSelectSchema, fK as ContextConfigUpdateSchema, cf as ConversationApiInsert, ep as ConversationApiInsertSchema, ce as ConversationApiSelect, eo as ConversationApiSelectSchema, cg as ConversationApiUpdate, eq as ConversationApiUpdateSchema, em as ConversationInsertSchema, gY as ConversationListResponse, gI as ConversationResponse, dw as ConversationScopeOptions, el as ConversationSelectSchema, en as ConversationUpdateSchema, fl as CreateCredentialInStoreRequestSchema, fm as CreateCredentialInStoreResponseSchema, fh as CredentialReferenceApiInsertSchema, cU as CredentialReferenceApiSelect, fg as CredentialReferenceApiSelectSchema, cV as CredentialReferenceApiUpdate, fi as CredentialReferenceApiUpdateSchema, fe as CredentialReferenceInsertSchema, gR as CredentialReferenceListResponse, gB as CredentialReferenceResponse, fd as CredentialReferenceSelectSchema, ff as CredentialReferenceUpdateSchema, fk as CredentialStoreListResponseSchema, fj as CredentialStoreSchema, cv as DataComponentApiInsert, eI as DataComponentApiInsertSchema, cu as DataComponentApiSelect, eH as DataComponentApiSelectSchema, cw as DataComponentApiUpdate, eJ as DataComponentApiUpdateSchema, hc as DataComponentArrayResponse, eF as DataComponentBaseSchema, eE as DataComponentInsertSchema, gU as DataComponentListResponse, gE as DataComponentResponse, eD as DataComponentSelectSchema, eG as DataComponentUpdateSchema, aF as DataPart, gk as ErrorResponseSchema, gl as ExistsResponseSchema, cN as ExternalAgentApiInsert, f4 as ExternalAgentApiInsertSchema, cM as ExternalAgentApiSelect, f3 as ExternalAgentApiSelectSchema, cO as ExternalAgentApiUpdate, f5 as ExternalAgentApiUpdateSchema, f1 as ExternalAgentInsertSchema, gO as ExternalAgentListResponse, gy as ExternalAgentResponse, f0 as ExternalAgentSelectSchema, f2 as ExternalAgentUpdateSchema, bT as ExternalSubAgentRelationApiInsert, dZ as ExternalSubAgentRelationApiInsertSchema, bS as ExternalSubAgentRelationInsert, dY as ExternalSubAgentRelationInsertSchema, cp as FetchConfig, fG as FetchConfigSchema, co as FetchDefinition, fH as FetchDefinitionSchema, aB as FileBase, aE as FilePart, aC as FileWithBytes, aD as FileWithUri, de as FullAgentAgentInsert, a as FullAgentAgentInsertSchema, h2 as FullProjectDefinitionResponse, gt as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, cb as FunctionApiSelect, j as FunctionApiSelectSchema, cc as FunctionApiUpdate, k as FunctionApiUpdateSchema, c9 as FunctionInsert, fE as FunctionInsertSchema, gS as FunctionListResponse, gC as FunctionResponse, c8 as FunctionSelect, fD as FunctionSelectSchema, fB as FunctionToolApiInsertSchema, cd as FunctionToolApiSelect, fA as FunctionToolApiSelectSchema, fC as FunctionToolApiUpdateSchema, dK as FunctionToolConfig, dJ as FunctionToolConfigSchema, fy as FunctionToolInsertSchema, gT as FunctionToolListResponse, gD as FunctionToolResponse, fx as FunctionToolSelectSchema, fz as FunctionToolUpdateSchema, ca as FunctionUpdate, fF as FunctionUpdateSchema, bs as GetTaskPushNotificationConfigRequest, bF as GetTaskPushNotificationConfigResponse, bE as GetTaskPushNotificationConfigSuccessResponse, bp as GetTaskRequest, bz as GetTaskResponse, by as GetTaskSuccessResponse, aM as HTTPAuthSecurityScheme, he as HeadersScopeSchema, aQ as ImplicitOAuthFlow, b3 as InternalError, b9 as InvalidAgentResponseError, b2 as InvalidParamsError, b0 as InvalidRequestError, a$ as JSONParseError, bk as JSONRPCError, bm as JSONRPCErrorResponse, bi as JSONRPCMessage, bj as JSONRPCRequest, bl as JSONRPCResult, dc as LedgerArtifactApiInsert, g8 as LedgerArtifactApiInsertSchema, db as LedgerArtifactApiSelect, g7 as LedgerArtifactApiSelectSchema, dd as LedgerArtifactApiUpdate, g9 as LedgerArtifactApiUpdateSchema, d9 as LedgerArtifactInsert, g5 as LedgerArtifactInsertSchema, g4 as LedgerArtifactSelectSchema, da as LedgerArtifactUpdate, g6 as LedgerArtifactUpdateSchema, gi as ListResponseSchema, dG as MCPServerType, fs as MCPToolConfigSchema, dz as McpAuthType, dA as McpServerAuth, dC as McpServerCapabilities, dD as McpToolDefinition, ei as McpToolDefinitionSchema, h7 as McpToolListResponse, h6 as McpToolResponse, fr as McpToolSchema, dB as McpTransportConfig, eg as McpTransportConfigSchema, aW as Message, cj as MessageApiInsert, ev as MessageApiInsertSchema, ci as MessageApiSelect, eu as MessageApiSelectSchema, ck as MessageApiUpdate, ew as MessageApiUpdateSchema, es as MessageInsertSchema, gZ as MessageListResponse, dr as MessageMode, bI as MessagePart, gJ as MessageResponse, dq as MessageRole, ch as MessageSelect, er as MessageSelectSchema, bg as MessageSendConfiguration, bh as MessageSendParams, dp as MessageType, et as MessageUpdateSchema, b1 as MethodNotFoundError, dH as ModelSchema, g as ModelSettings, M as ModelSettingsSchema, ds as Models, aS as OAuth2SecurityScheme, fq as OAuthCallbackQuerySchema, aN as OAuthFlows, fp as OAuthLoginQuerySchema, aT as OpenIdConnectSecurityScheme, dm as Pagination, hn as PaginationQueryParamsSchema, gh as PaginationSchema, P as Part, az as PartBase, aR as PasswordOAuthFlow, dk as ProjectApiInsert, gr as ProjectApiInsertSchema, dj as ProjectApiSelect, gq as ProjectApiSelectSchema, dl as ProjectApiUpdate, gs as ProjectApiUpdateSchema, go as ProjectInsertSchema, gK as ProjectListResponse, dI as ProjectModelSchema, dt as ProjectModels, gu as ProjectResponse, gn as ProjectSelectSchema, gp as ProjectUpdateSchema, bb as PushNotificationAuthenticationInfo, bc as PushNotificationConfig, b6 as PushNotificationNotSupportedError, h4 as RelatedAgentInfoListResponse, fn as RelatedAgentInfoSchema, gm as RemovedResponseSchema, aU as SecurityScheme, aK as SecuritySchemeBase, bn as SendMessageRequest, bv as SendMessageResponse, bu as SendMessageSuccessResponse, bo as SendStreamingMessageRequest, bx as SendStreamingMessageResponse, bw as SendStreamingMessageSuccessResponse, br as SetTaskPushNotificationConfigRequest, bD as SetTaskPushNotificationConfigResponse, bC as SetTaskPushNotificationConfigSuccessResponse, gj as SingleResponseSchema, dv as StatusComponent, ga as StatusComponentSchema, gb as StatusUpdateSchema, du as StatusUpdateSettings, d as StopWhen, S as StopWhenSchema, bL as SubAgentApiInsert, dP as SubAgentApiInsertSchema, bK as SubAgentApiSelect, dO as SubAgentApiSelectSchema, bM as SubAgentApiUpdate, dQ as SubAgentApiUpdateSchema, cK as SubAgentArtifactComponentApiInsert, e_ as SubAgentArtifactComponentApiInsertSchema, cJ as SubAgentArtifactComponentApiSelect, eZ as SubAgentArtifactComponentApiSelectSchema, cL as SubAgentArtifactComponentApiUpdate, e$ as SubAgentArtifactComponentApiUpdateSchema, cH as SubAgentArtifactComponentInsert, eX as SubAgentArtifactComponentInsertSchema, h1 as SubAgentArtifactComponentListResponse, g$ as SubAgentArtifactComponentResponse, cG as SubAgentArtifactComponentSelect, eW as SubAgentArtifactComponentSelectSchema, cI as SubAgentArtifactComponentUpdate, eY as SubAgentArtifactComponentUpdateSchema, cB as SubAgentDataComponentApiInsert, eO as SubAgentDataComponentApiInsertSchema, cA as SubAgentDataComponentApiSelect, eN as SubAgentDataComponentApiSelectSchema, cC as SubAgentDataComponentApiUpdate, eP as SubAgentDataComponentApiUpdateSchema, cy as SubAgentDataComponentInsert, eL as SubAgentDataComponentInsertSchema, h0 as SubAgentDataComponentListResponse, g_ as SubAgentDataComponentResponse, cx as SubAgentDataComponentSelect, eK as SubAgentDataComponentSelectSchema, cz as SubAgentDataComponentUpdate, eM as SubAgentDataComponentUpdateSchema, dh as SubAgentDefinition, d2 as SubAgentExternalAgentRelationApiInsert, fY as SubAgentExternalAgentRelationApiInsertSchema, d1 as SubAgentExternalAgentRelationApiSelect, fX as SubAgentExternalAgentRelationApiSelectSchema, d3 as SubAgentExternalAgentRelationApiUpdate, fZ as SubAgentExternalAgentRelationApiUpdateSchema, fV as SubAgentExternalAgentRelationInsertSchema, hb as SubAgentExternalAgentRelationListResponse, ha as SubAgentExternalAgentRelationResponse, c$ as SubAgentExternalAgentRelationSelect, fU as SubAgentExternalAgentRelationSelectSchema, d0 as SubAgentExternalAgentRelationUpdate, fW as SubAgentExternalAgentRelationUpdateSchema, dM as SubAgentInsertSchema, gL as SubAgentListResponse, bP as SubAgentRelationApiInsert, dV as SubAgentRelationApiInsertSchema, bO as SubAgentRelationApiSelect, dU as SubAgentRelationApiSelectSchema, bQ as SubAgentRelationApiUpdate, dW as SubAgentRelationApiUpdateSchema, dS as SubAgentRelationInsertSchema, gW as SubAgentRelationListResponse, bR as SubAgentRelationQuery, dX as SubAgentRelationQuerySchema, gG as SubAgentRelationResponse, bN as SubAgentRelationSelect, dR as SubAgentRelationSelectSchema, dT as SubAgentRelationUpdateSchema, gv as SubAgentResponse, dL as SubAgentSelectSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema, d7 as SubAgentTeamAgentRelationApiInsert, g2 as SubAgentTeamAgentRelationApiInsertSchema, d6 as SubAgentTeamAgentRelationApiSelect, g1 as SubAgentTeamAgentRelationApiSelectSchema, d8 as SubAgentTeamAgentRelationApiUpdate, g3 as SubAgentTeamAgentRelationApiUpdateSchema, f$ as SubAgentTeamAgentRelationInsertSchema, h9 as SubAgentTeamAgentRelationListResponse, h8 as SubAgentTeamAgentRelationResponse, d4 as SubAgentTeamAgentRelationSelect, f_ as SubAgentTeamAgentRelationSelectSchema, d5 as SubAgentTeamAgentRelationUpdate, g0 as SubAgentTeamAgentRelationUpdateSchema, cZ as SubAgentToolRelationApiInsert, fS as SubAgentToolRelationApiInsertSchema, cY as SubAgentToolRelationApiSelect, fR as SubAgentToolRelationApiSelectSchema, c_ as SubAgentToolRelationApiUpdate, fT as SubAgentToolRelationApiUpdateSchema, cX as SubAgentToolRelationInsert, fP as SubAgentToolRelationInsertSchema, gX as SubAgentToolRelationListResponse, gH as SubAgentToolRelationResponse, cW as SubAgentToolRelationSelect, fO as SubAgentToolRelationSelectSchema, fQ as SubAgentToolRelationUpdateSchema, dN as SubAgentUpdateSchema, dn as SummaryEvent, dE as TOOL_STATUS_VALUES, aY as Task, bZ as TaskApiInsert, e8 as TaskApiInsertSchema, bY as TaskApiSelect, e7 as TaskApiSelectSchema, b_ as TaskApiUpdate, e9 as TaskApiUpdateSchema, bJ as TaskArtifact, a_ as TaskArtifactUpdateEvent, be as TaskIdParams, e5 as TaskInsertSchema, b5 as TaskNotCancelableError, b4 as TaskNotFoundError, bd as TaskPushNotificationConfig, bf as TaskQueryParams, c3 as TaskRelationApiInsert, ee as TaskRelationApiInsertSchema, c2 as TaskRelationApiSelect, ed as TaskRelationApiSelectSchema, c4 as TaskRelationApiUpdate, ef as TaskRelationApiUpdateSchema, c0 as TaskRelationInsert, eb as TaskRelationInsertSchema, b$ as TaskRelationSelect, ea as TaskRelationSelectSchema, c1 as TaskRelationUpdate, ec as TaskRelationUpdateSchema, bt as TaskResubscriptionRequest, e4 as TaskSelectSchema, aG as TaskState, aX as TaskStatus, aZ as TaskStatusUpdateEvent, bX as TaskUpdate, e6 as TaskUpdateSchema, gf as TeamAgentSchema, hg as TenantIdParamsSchema, hf as TenantParamsSchema, hk as TenantProjectAgentIdParamsSchema, hj as TenantProjectAgentParamsSchema, hm as TenantProjectAgentSubAgentIdParamsSchema, hl as TenantProjectAgentSubAgentParamsSchema, hi as TenantProjectIdParamsSchema, hh as TenantProjectParamsSchema, aA as TextPart, c6 as ToolApiInsert, fv as ToolApiInsertSchema, c5 as ToolApiSelect, fu as ToolApiSelectSchema, c7 as ToolApiUpdate, fw as ToolApiUpdateSchema, di as ToolDefinition, ek as ToolInsertSchema, gN as ToolListResponse, gx as ToolResponse, ej as ToolSelectSchema, eh as ToolStatusSchema, ft as ToolUpdateSchema, b7 as UnsupportedOperationError, dF as VALID_RELATION_TYPES, gd as canDelegateToExternalAgentSchema, ge as canDelegateToTeamAgentSchema } from './utility-DbltUp2Q.js';
7
7
  import { CredentialStore } from './types/index.js';
8
8
  export { CorsConfig, ServerConfig, ServerOptions } from './types/index.js';
9
- import { NodePgDatabase } from 'drizzle-orm/node-postgres';
10
- import { PgliteDatabase } from 'drizzle-orm/pglite';
11
- import { s as schema } from './schema-BWd551GM.js';
12
- export { Z as account, G as agentRelations, J as agentToolRelationsRelations, a as agents, y as apiKeys, I as apiKeysRelations, j as artifactComponents, O as artifactComponentsRelations, b as contextCache, E as contextCacheRelations, c as contextConfigs, D as contextConfigsRelations, v as conversations, M as conversationsRelations, z as credentialReferences, K as credentialReferencesRelations, h as dataComponents, Q as dataComponentsRelations, f as externalAgents, H as externalAgentsRelations, m as functionTools, V as functionToolsRelations, n as functions, T as functionsRelations, _ as invitation, x as ledgerArtifacts, S as ledgerArtifactsRelations, $ as member, w as messages, N as messagesRelations, a0 as organization, p as projects, B as projectsRelations, a1 as session, a2 as ssoProvider, k as subAgentArtifactComponents, P as subAgentArtifactComponentsRelations, i as subAgentDataComponents, R as subAgentDataComponentsRelations, q as subAgentExternalAgentRelations, X as subAgentExternalAgentRelationsRelations, u as subAgentFunctionToolRelations, W as subAgentFunctionToolRelationsRelations, e as subAgentRelations, U as subAgentRelationsRelations, r as subAgentTeamAgentRelations, Y as subAgentTeamAgentRelationsRelations, o as subAgentToolRelations, d as subAgents, F as subAgentsRelations, g as taskRelations, C as taskRelationsRelations, t as tasks, A as tasksRelations, l as tools, L as toolsRelations, a3 as user, a4 as verification } from './schema-BWd551GM.js';
9
+ import { D as DatabaseClient } from './client-CPYOMZF2.js';
10
+ export { a as DatabaseConfig, c as createDatabaseClient } from './client-CPYOMZF2.js';
13
11
  import { SSEClientTransportOptions } from '@modelcontextprotocol/sdk/client/sse.js';
14
12
  import { StreamableHTTPClientTransportOptions } from '@modelcontextprotocol/sdk/client/streamableHttp.js';
15
13
  import { ClientCapabilities } from '@modelcontextprotocol/sdk/types.js';
16
- import * as drizzle_orm_pg_core from 'drizzle-orm/pg-core';
17
14
  import { PgTable } from 'drizzle-orm/pg-core';
18
- import * as drizzle_zod from 'drizzle-zod';
15
+ import { UserOrganization, User } from './auth/auth-validation-schemas.js';
16
+ export { G as agentRelations, J as agentToolRelationsRelations, a as agents, y as apiKeys, I as apiKeysRelations, j as artifactComponents, O as artifactComponentsRelations, b as contextCache, E as contextCacheRelations, c as contextConfigs, D as contextConfigsRelations, v as conversations, M as conversationsRelations, z as credentialReferences, K as credentialReferencesRelations, h as dataComponents, Q as dataComponentsRelations, f as externalAgents, H as externalAgentsRelations, m as functionTools, V as functionToolsRelations, n as functions, T as functionsRelations, x as ledgerArtifacts, S as ledgerArtifactsRelations, w as messages, N as messagesRelations, p as projects, B as projectsRelations, k as subAgentArtifactComponents, P as subAgentArtifactComponentsRelations, i as subAgentDataComponents, R as subAgentDataComponentsRelations, q as subAgentExternalAgentRelations, X as subAgentExternalAgentRelationsRelations, u as subAgentFunctionToolRelations, W as subAgentFunctionToolRelationsRelations, e as subAgentRelations, U as subAgentRelationsRelations, r as subAgentTeamAgentRelations, Y as subAgentTeamAgentRelationsRelations, o as subAgentToolRelations, d as subAgents, F as subAgentsRelations, g as taskRelations, C as taskRelationsRelations, t as tasks, A as tasksRelations, l as tools, L as toolsRelations } from './schema-5N2lPWNV.js';
19
17
  import { ValidateFunction } from 'ajv';
20
18
  import { Context, Next } from 'hono';
21
19
  import { z as z$1 } from '@hono/zod-openapi';
@@ -24,7 +22,11 @@ export { convertZodToJsonSchema, convertZodToJsonSchemaWithPreview, extractPrevi
24
22
  import { Span, Tracer } from '@opentelemetry/api';
25
23
  export { A2AMessageMetadata, A2AMessageMetadataSchema, DataComponentStreamEvent, DataComponentStreamEventSchema, DataOperationDetails, DataOperationDetailsSchema, DataOperationEvent, DataOperationEventSchema, DataOperationStreamEvent, DataOperationStreamEventSchema, DataSummaryStreamEvent, DataSummaryStreamEventSchema, DelegationReturnedData, DelegationReturnedDataSchema, DelegationSentData, DelegationSentDataSchema, MAX_ID_LENGTH, MIN_ID_LENGTH, RenderValidationResult, StreamErrorEvent, StreamErrorEventSchema, StreamEvent, StreamEventSchema, StreamFinishEvent, StreamFinishEventSchema, TextDeltaEvent, TextDeltaEventSchema, TextEndEvent, TextEndEventSchema, TextStartEvent, TextStartEventSchema, TransferData, TransferDataSchema, URL_SAFE_ID_PATTERN, generateIdFromName, isValidResourceId, resourceIdSchema, validateAgentRelationships, validateAgentStructure, validateAndTypeAgentData, validateArtifactComponentReferences, validateDataComponentReferences, validateRender, validateSubAgentExternalAgentRelations, validateToolReferences } from './validation/index.js';
26
24
  export { P as PropsValidationResult, v as validatePropsAsJsonSchema } from './props-validation-BMR1qNiy.js';
25
+ export { account, invitation, member, organization, session, ssoProvider, user, verification } from './auth/auth-schema.js';
27
26
  import 'pino';
27
+ import 'drizzle-zod';
28
+ import 'drizzle-orm/node-postgres';
29
+ import 'drizzle-orm/pglite';
28
30
  import 'drizzle-orm';
29
31
 
30
32
  /**
@@ -238,20 +240,6 @@ declare class CredentialStoreRegistry {
238
240
  size(): number;
239
241
  }
240
242
 
241
- type DatabaseClient = NodePgDatabase<typeof schema> | PgliteDatabase<typeof schema>;
242
- interface DatabaseConfig {
243
- connectionString?: string;
244
- poolSize?: number;
245
- ssl?: boolean;
246
- logger?: {
247
- logQuery: (query: string, params: unknown[]) => void;
248
- };
249
- }
250
- /**
251
- * Creates a PostgreSQL database client with connection pooling
252
- */
253
- declare function createDatabaseClient(config?: DatabaseConfig): DatabaseClient;
254
-
255
243
  interface TemplateContext {
256
244
  [key: string]: unknown;
257
245
  }
@@ -2489,139 +2477,6 @@ declare const countMessagesByConversation: (db: DatabaseClient) => (params: {
2489
2477
  conversationId: string;
2490
2478
  }) => Promise<number>;
2491
2479
 
2492
- declare const UserSelectSchema: drizzle_zod.BuildSchema<"select", {
2493
- id: drizzle_orm_pg_core.PgColumn<{
2494
- name: "id";
2495
- tableName: "user";
2496
- dataType: "string";
2497
- columnType: "PgText";
2498
- data: string;
2499
- driverParam: string;
2500
- notNull: true;
2501
- hasDefault: false;
2502
- isPrimaryKey: true;
2503
- isAutoincrement: false;
2504
- hasRuntimeDefault: false;
2505
- enumValues: [string, ...string[]];
2506
- baseColumn: never;
2507
- identity: undefined;
2508
- generated: undefined;
2509
- }, {}, {}>;
2510
- name: drizzle_orm_pg_core.PgColumn<{
2511
- name: "name";
2512
- tableName: "user";
2513
- dataType: "string";
2514
- columnType: "PgText";
2515
- data: string;
2516
- driverParam: string;
2517
- notNull: true;
2518
- hasDefault: false;
2519
- isPrimaryKey: false;
2520
- isAutoincrement: false;
2521
- hasRuntimeDefault: false;
2522
- enumValues: [string, ...string[]];
2523
- baseColumn: never;
2524
- identity: undefined;
2525
- generated: undefined;
2526
- }, {}, {}>;
2527
- email: drizzle_orm_pg_core.PgColumn<{
2528
- name: "email";
2529
- tableName: "user";
2530
- dataType: "string";
2531
- columnType: "PgText";
2532
- data: string;
2533
- driverParam: string;
2534
- notNull: true;
2535
- hasDefault: false;
2536
- isPrimaryKey: false;
2537
- isAutoincrement: false;
2538
- hasRuntimeDefault: false;
2539
- enumValues: [string, ...string[]];
2540
- baseColumn: never;
2541
- identity: undefined;
2542
- generated: undefined;
2543
- }, {}, {}>;
2544
- emailVerified: drizzle_orm_pg_core.PgColumn<{
2545
- name: "email_verified";
2546
- tableName: "user";
2547
- dataType: "boolean";
2548
- columnType: "PgBoolean";
2549
- data: boolean;
2550
- driverParam: boolean;
2551
- notNull: true;
2552
- hasDefault: true;
2553
- isPrimaryKey: false;
2554
- isAutoincrement: false;
2555
- hasRuntimeDefault: false;
2556
- enumValues: undefined;
2557
- baseColumn: never;
2558
- identity: undefined;
2559
- generated: undefined;
2560
- }, {}, {}>;
2561
- image: drizzle_orm_pg_core.PgColumn<{
2562
- name: "image";
2563
- tableName: "user";
2564
- dataType: "string";
2565
- columnType: "PgText";
2566
- data: string;
2567
- driverParam: string;
2568
- notNull: false;
2569
- hasDefault: false;
2570
- isPrimaryKey: false;
2571
- isAutoincrement: false;
2572
- hasRuntimeDefault: false;
2573
- enumValues: [string, ...string[]];
2574
- baseColumn: never;
2575
- identity: undefined;
2576
- generated: undefined;
2577
- }, {}, {}>;
2578
- createdAt: drizzle_orm_pg_core.PgColumn<{
2579
- name: "created_at";
2580
- tableName: "user";
2581
- dataType: "date";
2582
- columnType: "PgTimestamp";
2583
- data: Date;
2584
- driverParam: string;
2585
- notNull: true;
2586
- hasDefault: true;
2587
- isPrimaryKey: false;
2588
- isAutoincrement: false;
2589
- hasRuntimeDefault: false;
2590
- enumValues: undefined;
2591
- baseColumn: never;
2592
- identity: undefined;
2593
- generated: undefined;
2594
- }, {}, {}>;
2595
- updatedAt: drizzle_orm_pg_core.PgColumn<{
2596
- name: "updated_at";
2597
- tableName: "user";
2598
- dataType: "date";
2599
- columnType: "PgTimestamp";
2600
- data: Date;
2601
- driverParam: string;
2602
- notNull: true;
2603
- hasDefault: true;
2604
- isPrimaryKey: false;
2605
- isAutoincrement: false;
2606
- hasRuntimeDefault: false;
2607
- enumValues: undefined;
2608
- baseColumn: never;
2609
- identity: undefined;
2610
- generated: undefined;
2611
- }, {}, {}>;
2612
- }, undefined, undefined>;
2613
- declare const UserOrganizationSchema: z.ZodObject<{
2614
- id: z.ZodString;
2615
- userId: z.ZodString;
2616
- organizationId: z.ZodString;
2617
- role: z.ZodString;
2618
- createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodDate]>, z.ZodTransform<string, string | Date>>;
2619
- organizationName: z.ZodNullable<z.ZodString>;
2620
- organizationSlug: z.ZodNullable<z.ZodString>;
2621
- }, z.core.$strip>;
2622
- type User = z.infer<typeof UserSelectSchema>;
2623
- type UserOrganization = z.infer<typeof UserOrganizationSchema>;
2624
-
2625
2480
  /**
2626
2481
  * Organization and Member data access layer
2627
2482
  * All database queries for Better Auth's organization/member tables
@@ -4890,4 +4745,4 @@ declare function setSpanWithError(span: Span, error: Error, logger?: {
4890
4745
  */
4891
4746
  declare function getTracer(serviceName: string, serviceVersion?: string): Tracer;
4892
4747
 
4893
- export { AGENT_EXECUTION_TRANSFER_COUNT_DEFAULT, AGENT_EXECUTION_TRANSFER_COUNT_MAX, AGENT_EXECUTION_TRANSFER_COUNT_MIN, AgentInsert, type AgentLogger, AgentScopeConfig, AgentSelect, AgentUpdate, ApiKeyCreateResult, type ApiKeyGenerationResult, ApiKeyInsert, ApiKeySelect, ApiKeyUpdate, Artifact, ArtifactComponentInsert, ArtifactComponentSelect, ArtifactComponentUpdate, CONTEXT_FETCHER_HTTP_TIMEOUT_MS_DEFAULT, CONVERSATION_HISTORY_DEFAULT_LIMIT, CONVERSATION_HISTORY_MAX_OUTPUT_TOKENS_DEFAULT, type CommonCreateErrorResponses, type CommonDeleteErrorResponses, type CommonGetErrorResponses, type CommonUpdateErrorResponses, ContextCache, ContextCacheInsert, ContextCacheSelect, ContextConfigBuilder, type ContextConfigBuilderOptions, ContextConfigInsert, ContextConfigSelect, ContextConfigUpdate, ContextFetchDefinition, ContextFetcher, type ContextResolutionOptions, type ContextResolutionResult, ContextResolver, type ContextResolverInterface, type ContextValidationError, type ContextValidationResult, ConversationHistoryConfig, ConversationInsert, ConversationMetadata, ConversationSelect, ConversationUpdate, CreateApiKeyParams, type CredentialContext, type CredentialData, CredentialReferenceApiInsert, CredentialReferenceInsert, CredentialReferenceSelect, CredentialReferenceUpdate, type CredentialReferenceWithResources, type CredentialResolverInput, CredentialStore, type CredentialStoreReference, CredentialStoreRegistry, CredentialStoreType, CredentialStuffer, DataComponentInsert, DataComponentSelect, DataComponentUpdate, type DatabaseClient, type DatabaseConfig, type DotPaths, ERROR_DOCS_BASE_URL, ErrorCode, type ErrorCodes, type ErrorResponse, ExecutionContext, ExternalAgentInsert, ExternalAgentSelect, ExternalAgentUpdate, type FetchResult, FullAgentDefinition, FullProjectDefinition, FunctionApiInsert, FunctionToolApiInsert, FunctionToolApiUpdate, type GenerateServiceTokenParams, HTTP_REQUEST_PARTS, type HttpRequestPart, InMemoryCredentialStore, KeyChainStore, LedgerArtifactSelect, MCPToolConfig, 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, McpClient, type McpClientOptions, type McpSSEConfig, type McpServerConfig, type McpStreamableHttpConfig, McpTool, MessageContent, MessageInsert, MessageMetadata, MessageUpdate, MessageVisibility, NangoCredentialStore, PaginationConfig, PaginationResult, type ParsedHttpRequest, PinoLogger, type ProblemDetails, ProjectInfo, ProjectInsert, type ProjectLogger, ProjectResourceCounts, ProjectScopeConfig, ProjectSelect, ProjectUpdate, type ResolvedContext, 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, type ServiceTokenPayload, SubAgentExternalAgentRelationInsert, SubAgentInsert, SubAgentRelationInsert, SubAgentRelationUpdate, SubAgentScopeConfig, SubAgentSelect, SubAgentTeamAgentRelationInsert, SubAgentToolRelationUpdate, SubAgentUpdate, TaskInsert, TaskMetadataConfig, TaskSelect, type TemplateContext, TemplateEngine, type TemplateRenderOptions, ToolInsert, ToolMcpConfig, ToolSelect, ToolServerCapabilities, ToolUpdate, VALIDATION_AGENT_PROMPT_MAX_CHARS, VALIDATION_SUB_AGENT_PROMPT_MAX_CHARS, type VerifyServiceTokenResult, addFunctionToolToSubAgent, addLedgerArtifacts, addToolToAgent, addUserToOrganization, agentHasArtifactComponents, apiFetch, associateArtifactComponentWithAgent, associateDataComponentWithAgent, cleanupTenantCache, cleanupTestDatabase, clearContextConfigCache, clearConversationCache, closeTestDatabase, commonCreateErrorResponses, commonDeleteErrorResponses, commonGetErrorResponses, commonUpdateErrorResponses, contextConfig, contextValidationMiddleware, countApiKeys, countArtifactComponents, countArtifactComponentsForAgent, countContextConfigs, countCredentialReferences, countDataComponents, countExternalAgents, countLedgerArtifactsByTask, countMessagesByConversation, countProjects, createAgent, createAgentToolRelation, createApiError, createApiKey, createArtifactComponent, createContextConfig, createConversation, createCredentialReference, createDataComponent, createDatabaseClient, createDefaultCredentialStores, createExecutionContext, createExternalAgent, createFullAgentServerSide, createFullProjectServerSide, createFunctionTool, createKeyChainStore, createMessage, createNangoCredentialStore, createOrGetConversation, createProject, createSubAgent, createSubAgentExternalAgentRelation, createSubAgentRelation, createSubAgentTeamAgentRelation, createTask, createTestDatabaseClient, createTestOrganization, createTestProject, createTool, createValidatedDataAccess, dbResultToMcpTool, deleteAgent, deleteAgentArtifactComponentRelationByAgent, deleteAgentDataComponentRelationByAgent, deleteAgentRelationsByAgent, deleteAgentToolRelation, deleteAgentToolRelationByAgent, deleteApiKey, deleteArtifactComponent, deleteContextConfig, deleteConversation, deleteCredentialReference, deleteDataComponent, deleteExternalAgent, deleteFullAgent, deleteFullProject, deleteFunction, deleteFunctionTool, deleteLedgerArtifactsByContext, deleteLedgerArtifactsByTask, deleteMessage, deleteProject, deleteSubAgent, deleteSubAgentExternalAgentRelation, deleteSubAgentExternalAgentRelationsByAgent, deleteSubAgentExternalAgentRelationsBySubAgent, deleteSubAgentRelation, deleteSubAgentTeamAgentRelation, deleteSubAgentTeamAgentRelationsByAgent, deleteSubAgentTeamAgentRelationsBySubAgent, deleteTool, determineContextTrigger, errorResponseSchema, errorSchemaFactory, executionLimitsSharedDefaults, externalAgentExists, externalAgentUrlExists, extractPublicId, fetchComponentRelationships, fetchDefinition, generateAndCreateApiKey, generateApiKey, generateId, generateServiceToken, getActiveAgentForConversation, getAgentById, getAgentRelationById, getAgentRelationByParams, getAgentRelations, getAgentRelationsByAgent, getAgentRelationsBySource, getAgentSubAgentInfos, getAgentToolRelationByAgent, getAgentToolRelationById, getAgentToolRelationByTool, getAgentWithDefaultSubAgent, getAgentsForTool, getAgentsUsingArtifactComponent, getAgentsUsingDataComponent, getApiKeyById, getApiKeyByPublicId, getArtifactComponentById, getArtifactComponentsForAgent, getCacheEntry, getCachedValidator, getContextConfigById, getContextConfigCacheEntries, getConversation, getConversationCacheEntries, getConversationHistory, getConversationId, getCredentialReference, getCredentialReferenceById, 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, getVisibleMessages, handleApiError, handleContextConfigChange, handleContextResolution, hasApiKey, hasContextConfig, hasCredentialReference, hashApiKey, headers, invalidateHeadersCache, invalidateInvocationDefinitionsCache, isApiKeyExpired, isArtifactComponentAssociatedWithAgent, isDataComponentAssociatedWithAgent, isValidHttpRequest, listAgentRelations, listAgentToolRelations, listAgents, listAgentsPaginated, listApiKeys, listApiKeysPaginated, listArtifactComponents, listArtifactComponentsPaginated, listContextConfigs, listContextConfigsPaginated, listConversations, listCredentialReferences, listCredentialReferencesPaginated, listDataComponents, listDataComponentsPaginated, listExternalAgents, listExternalAgentsPaginated, listFunctionTools, listFunctions, listMessages, listProjects, listProjectsPaginated, listSubAgentExternalAgentRelations, listSubAgentTeamAgentRelations, listSubAgents, listSubAgentsPaginated, listTaskIdsByContextId, listTools, loadEnvironmentFiles, maskApiKey, normalizeDateString, problemDetailsSchema, projectExists, projectExistsInTable, projectHasResources, removeArtifactComponentFromAgent, removeDataComponentFromAgent, removeToolFromAgent, schemaValidationDefaults, setActiveAgentForConversation, setActiveAgentForThread, setCacheEntry, setSpanWithError, 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, validateAgainstJsonSchema, validateAndGetApiKey, validateApiKey, validateHeaders, validateHttpRequestHeaders, validateProjectExists, validateSubAgent, validateTargetAgent, validateTenantId, validationHelper, verifyAuthorizationHeader, verifyServiceToken, withProjectValidation };
4748
+ export { AGENT_EXECUTION_TRANSFER_COUNT_DEFAULT, AGENT_EXECUTION_TRANSFER_COUNT_MAX, AGENT_EXECUTION_TRANSFER_COUNT_MIN, AgentInsert, type AgentLogger, AgentScopeConfig, AgentSelect, AgentUpdate, ApiKeyCreateResult, type ApiKeyGenerationResult, ApiKeyInsert, ApiKeySelect, ApiKeyUpdate, Artifact, ArtifactComponentInsert, ArtifactComponentSelect, ArtifactComponentUpdate, CONTEXT_FETCHER_HTTP_TIMEOUT_MS_DEFAULT, CONVERSATION_HISTORY_DEFAULT_LIMIT, CONVERSATION_HISTORY_MAX_OUTPUT_TOKENS_DEFAULT, type CommonCreateErrorResponses, type CommonDeleteErrorResponses, type CommonGetErrorResponses, type CommonUpdateErrorResponses, ContextCache, ContextCacheInsert, ContextCacheSelect, ContextConfigBuilder, type ContextConfigBuilderOptions, ContextConfigInsert, ContextConfigSelect, ContextConfigUpdate, ContextFetchDefinition, ContextFetcher, type ContextResolutionOptions, type ContextResolutionResult, ContextResolver, type ContextResolverInterface, type ContextValidationError, type ContextValidationResult, ConversationHistoryConfig, ConversationInsert, ConversationMetadata, ConversationSelect, ConversationUpdate, CreateApiKeyParams, type CredentialContext, type CredentialData, CredentialReferenceApiInsert, CredentialReferenceInsert, CredentialReferenceSelect, CredentialReferenceUpdate, type CredentialReferenceWithResources, type CredentialResolverInput, CredentialStore, type CredentialStoreReference, CredentialStoreRegistry, CredentialStoreType, CredentialStuffer, DataComponentInsert, DataComponentSelect, DataComponentUpdate, DatabaseClient, type DotPaths, ERROR_DOCS_BASE_URL, ErrorCode, type ErrorCodes, type ErrorResponse, ExecutionContext, ExternalAgentInsert, ExternalAgentSelect, ExternalAgentUpdate, type FetchResult, FullAgentDefinition, FullProjectDefinition, FunctionApiInsert, FunctionToolApiInsert, FunctionToolApiUpdate, type GenerateServiceTokenParams, HTTP_REQUEST_PARTS, type HttpRequestPart, InMemoryCredentialStore, KeyChainStore, LedgerArtifactSelect, MCPToolConfig, 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, McpClient, type McpClientOptions, type McpSSEConfig, type McpServerConfig, type McpStreamableHttpConfig, McpTool, MessageContent, MessageInsert, MessageMetadata, MessageUpdate, MessageVisibility, NangoCredentialStore, PaginationConfig, PaginationResult, type ParsedHttpRequest, PinoLogger, type ProblemDetails, ProjectInfo, ProjectInsert, type ProjectLogger, ProjectResourceCounts, ProjectScopeConfig, ProjectSelect, ProjectUpdate, type ResolvedContext, 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, type ServiceTokenPayload, SubAgentExternalAgentRelationInsert, SubAgentInsert, SubAgentRelationInsert, SubAgentRelationUpdate, SubAgentScopeConfig, SubAgentSelect, SubAgentTeamAgentRelationInsert, SubAgentToolRelationUpdate, SubAgentUpdate, TaskInsert, TaskMetadataConfig, TaskSelect, type TemplateContext, TemplateEngine, type TemplateRenderOptions, ToolInsert, ToolMcpConfig, ToolSelect, ToolServerCapabilities, ToolUpdate, VALIDATION_AGENT_PROMPT_MAX_CHARS, VALIDATION_SUB_AGENT_PROMPT_MAX_CHARS, type VerifyServiceTokenResult, addFunctionToolToSubAgent, addLedgerArtifacts, addToolToAgent, addUserToOrganization, agentHasArtifactComponents, apiFetch, associateArtifactComponentWithAgent, associateDataComponentWithAgent, cleanupTenantCache, cleanupTestDatabase, clearContextConfigCache, clearConversationCache, closeTestDatabase, commonCreateErrorResponses, commonDeleteErrorResponses, commonGetErrorResponses, commonUpdateErrorResponses, contextConfig, contextValidationMiddleware, countApiKeys, countArtifactComponents, countArtifactComponentsForAgent, countContextConfigs, countCredentialReferences, countDataComponents, countExternalAgents, countLedgerArtifactsByTask, countMessagesByConversation, countProjects, createAgent, createAgentToolRelation, createApiError, createApiKey, createArtifactComponent, createContextConfig, createConversation, createCredentialReference, createDataComponent, createDefaultCredentialStores, createExecutionContext, createExternalAgent, createFullAgentServerSide, createFullProjectServerSide, createFunctionTool, createKeyChainStore, createMessage, createNangoCredentialStore, createOrGetConversation, createProject, createSubAgent, createSubAgentExternalAgentRelation, createSubAgentRelation, createSubAgentTeamAgentRelation, createTask, createTestDatabaseClient, createTestOrganization, createTestProject, createTool, createValidatedDataAccess, dbResultToMcpTool, deleteAgent, deleteAgentArtifactComponentRelationByAgent, deleteAgentDataComponentRelationByAgent, deleteAgentRelationsByAgent, deleteAgentToolRelation, deleteAgentToolRelationByAgent, deleteApiKey, deleteArtifactComponent, deleteContextConfig, deleteConversation, deleteCredentialReference, deleteDataComponent, deleteExternalAgent, deleteFullAgent, deleteFullProject, deleteFunction, deleteFunctionTool, deleteLedgerArtifactsByContext, deleteLedgerArtifactsByTask, deleteMessage, deleteProject, deleteSubAgent, deleteSubAgentExternalAgentRelation, deleteSubAgentExternalAgentRelationsByAgent, deleteSubAgentExternalAgentRelationsBySubAgent, deleteSubAgentRelation, deleteSubAgentTeamAgentRelation, deleteSubAgentTeamAgentRelationsByAgent, deleteSubAgentTeamAgentRelationsBySubAgent, deleteTool, determineContextTrigger, errorResponseSchema, errorSchemaFactory, executionLimitsSharedDefaults, externalAgentExists, externalAgentUrlExists, extractPublicId, fetchComponentRelationships, fetchDefinition, generateAndCreateApiKey, generateApiKey, generateId, generateServiceToken, getActiveAgentForConversation, getAgentById, getAgentRelationById, getAgentRelationByParams, getAgentRelations, getAgentRelationsByAgent, getAgentRelationsBySource, getAgentSubAgentInfos, getAgentToolRelationByAgent, getAgentToolRelationById, getAgentToolRelationByTool, getAgentWithDefaultSubAgent, getAgentsForTool, getAgentsUsingArtifactComponent, getAgentsUsingDataComponent, getApiKeyById, getApiKeyByPublicId, getArtifactComponentById, getArtifactComponentsForAgent, getCacheEntry, getCachedValidator, getContextConfigById, getContextConfigCacheEntries, getConversation, getConversationCacheEntries, getConversationHistory, getConversationId, getCredentialReference, getCredentialReferenceById, 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, getVisibleMessages, handleApiError, handleContextConfigChange, handleContextResolution, hasApiKey, hasContextConfig, hasCredentialReference, hashApiKey, headers, invalidateHeadersCache, invalidateInvocationDefinitionsCache, isApiKeyExpired, isArtifactComponentAssociatedWithAgent, isDataComponentAssociatedWithAgent, isValidHttpRequest, listAgentRelations, listAgentToolRelations, listAgents, listAgentsPaginated, listApiKeys, listApiKeysPaginated, listArtifactComponents, listArtifactComponentsPaginated, listContextConfigs, listContextConfigsPaginated, listConversations, listCredentialReferences, listCredentialReferencesPaginated, listDataComponents, listDataComponentsPaginated, listExternalAgents, listExternalAgentsPaginated, listFunctionTools, listFunctions, listMessages, listProjects, listProjectsPaginated, listSubAgentExternalAgentRelations, listSubAgentTeamAgentRelations, listSubAgents, listSubAgentsPaginated, listTaskIdsByContextId, listTools, loadEnvironmentFiles, maskApiKey, normalizeDateString, problemDetailsSchema, projectExists, projectExistsInTable, projectHasResources, removeArtifactComponentFromAgent, removeDataComponentFromAgent, removeToolFromAgent, schemaValidationDefaults, setActiveAgentForConversation, setActiveAgentForThread, setCacheEntry, setSpanWithError, 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, validateAgainstJsonSchema, validateAndGetApiKey, validateApiKey, validateHeaders, validateHttpRequestHeaders, validateProjectExists, validateSubAgent, validateTargetAgent, validateTenantId, validationHelper, verifyAuthorizationHeader, verifyServiceToken, withProjectValidation };