@inkeep/agents-core 0.34.0 → 0.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-UMFCT6A6.js → chunk-DYGTCLJO.js} +1 -1
- package/dist/{chunk-4VUM4EJL.js → chunk-J5AHY6M2.js} +1 -1
- package/dist/{chunk-E6R6PML7.js → chunk-SIAA4J6H.js} +1 -3
- package/dist/{chunk-YECQCT5N.js → chunk-W3L4M7FO.js} +6 -8
- package/dist/{chunk-EKV6C5GS.js → chunk-YZ5ZBVHJ.js} +104 -5
- package/dist/client-exports.cjs +92 -1
- package/dist/client-exports.d.cts +5 -5
- package/dist/client-exports.d.ts +5 -5
- package/dist/client-exports.js +2 -2
- package/dist/db/schema.cjs +100 -1
- package/dist/db/schema.d.cts +2 -2
- package/dist/db/schema.d.ts +2 -2
- package/dist/db/schema.js +1 -1
- package/dist/index.cjs +1541 -1317
- package/dist/index.d.cts +462 -252
- package/dist/index.d.ts +462 -252
- package/dist/index.js +589 -478
- package/dist/{schema-CaEvIRdT.d.cts → schema-DQBYINXB.d.cts} +1105 -3
- package/dist/{schema-DvYv9PQ1.d.ts → schema-DlcSfZRM.d.ts} +1105 -3
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/{utility-htaewQEL.d.cts → utility-Ct1UMzr_.d.cts} +305 -305
- package/dist/{utility-htaewQEL.d.ts → utility-Ct1UMzr_.d.ts} +305 -305
- package/dist/utils/schema-conversion.cjs +6 -10
- package/dist/utils/schema-conversion.js +1 -1
- package/dist/validation/index.cjs +92 -1
- package/dist/validation/index.d.cts +2 -2
- package/dist/validation/index.d.ts +2 -2
- package/dist/validation/index.js +2 -2
- package/drizzle/0001_fair_malice.sql +115 -0
- package/drizzle/meta/0001_snapshot.json +3520 -0
- package/drizzle/meta/_journal.json +8 -1
- package/package.json +3 -1
package/dist/index.d.cts
CHANGED
|
@@ -2,18 +2,20 @@ export { ANTHROPIC_MODELS, AnthropicModel, GOOGLE_MODELS, GoogleModel, ModelName
|
|
|
2
2
|
import { r as PinoLogger, s as getLogger } from './auth-detection-CGqhPDnj.cjs';
|
|
3
3
|
export { i as ACTIVITY_NAMES, g as ACTIVITY_STATUS, f as ACTIVITY_TYPES, h as AGENT_IDS, p as AGGREGATE_OPERATORS, A as AI_OPERATIONS, j as AI_TOOL_TYPES, o as DATA_SOURCES, k as DATA_TYPES, D as DELEGATION_FROM_SUB_AGENT_ID, b as DELEGATION_ID, a as DELEGATION_TO_SUB_AGENT_ID, F as FIELD_TYPES, L as LoggerFactoryConfig, M as McpOAuthFlowResult, u as McpTokenExchangeResult, t as OAuthConfig, O as OPERATORS, m as ORDER_DIRECTIONS, P as PANEL_TYPES, x as PinoLoggerConfig, q as QUERY_DEFAULTS, l as QUERY_EXPRESSIONS, Q as QUERY_FIELD_CONFIGS, n as QUERY_TYPES, R as REDUCE_OPERATIONS, e as SPAN_KEYS, S as SPAN_NAMES, T as TRANSFER_FROM_SUB_AGENT_ID, c as TRANSFER_TO_SUB_AGENT_ID, U as UNKNOWN_VALUE, d as detectAuthenticationRequired, w as exchangeMcpAuthorizationCode, v as initiateMcpOAuthFlow, y as loggerFactory } from './auth-detection-CGqhPDnj.cjs';
|
|
4
4
|
import { z } from 'zod';
|
|
5
|
-
import { r as CredentialReferenceApiInsert, s as ContextConfigSelect, l as ContextFetchDefinition, i as MCPTransportType, t as MCPToolConfig, u as ProjectScopeConfig, v as FullAgentDefinition, w as AgentScopeConfig, C as ConversationHistoryConfig, x as PaginationConfig, y as AgentInsert, z as AgentUpdate, B as AgentSelect, D as ApiKeySelect, E as ApiKeyInsert, G as ApiKeyUpdate, H as CreateApiKeyParams, I as ApiKeyCreateResult, J as ArtifactComponentSelect, K as ArtifactComponentInsert, L as ArtifactComponentUpdate, N as SubAgentScopeConfig, O as ContextCacheSelect, Q as ContextCacheInsert, R as ContextConfigInsert, U as ContextConfigUpdate, V as ConversationSelect, W as ConversationInsert, o as ConversationMetadata, X as ConversationUpdate, Y as CredentialReferenceSelect, Z as ToolSelect, _ as ExternalAgentSelect, $ as CredentialReferenceInsert, a0 as CredentialReferenceUpdate, a1 as DataComponentSelect, a2 as DataComponentInsert, a3 as DataComponentUpdate, a4 as ExternalAgentInsert, a5 as ExternalAgentUpdate, a6 as FunctionApiInsert, a7 as FunctionToolApiInsert, a8 as FunctionToolApiUpdate, a9 as Artifact, aa as LedgerArtifactSelect,
|
|
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-htaewQEL.cjs';
|
|
5
|
+
import { r as CredentialReferenceApiInsert, s as ContextConfigSelect, l as ContextFetchDefinition, i as MCPTransportType, t as MCPToolConfig, u as ProjectScopeConfig, v as FullAgentDefinition, w as AgentScopeConfig, C as ConversationHistoryConfig, x as PaginationConfig, y as AgentInsert, z as AgentUpdate, B as AgentSelect, D as ApiKeySelect, E as ApiKeyInsert, G as ApiKeyUpdate, H as CreateApiKeyParams, I as ApiKeyCreateResult, J as ArtifactComponentSelect, K as ArtifactComponentInsert, L as ArtifactComponentUpdate, N as SubAgentScopeConfig, O as ContextCacheSelect, Q as ContextCacheInsert, R as ContextConfigInsert, U as ContextConfigUpdate, V as ConversationSelect, W as ConversationInsert, o as ConversationMetadata, X as ConversationUpdate, Y as CredentialReferenceSelect, Z as ToolSelect, _ as ExternalAgentSelect, $ as CredentialReferenceInsert, a0 as CredentialReferenceUpdate, a1 as DataComponentSelect, a2 as DataComponentInsert, a3 as DataComponentUpdate, a4 as ExternalAgentInsert, a5 as ExternalAgentUpdate, a6 as FunctionApiInsert, a7 as FunctionToolApiInsert, a8 as FunctionToolApiUpdate, a9 as Artifact, aa as LedgerArtifactSelect, q as MessageMetadata, p as MessageContent, ab as MessageVisibility, ac as MessageInsert, ad as MessageUpdate, ae as FullProjectDefinition, af as ProjectInfo, ag as ProjectSelect, ah as PaginationResult, ai as ProjectResourceCounts, aj as ProjectInsert, ak as ProjectUpdate, al as SubAgentExternalAgentRelationInsert, am as SubAgentRelationInsert, an as SubAgentRelationUpdate, ao as SubAgentToolRelationUpdate, m as ToolMcpConfig, n as ToolServerCapabilities, ap as SubAgentInsert, aq as SubAgentUpdate, ar as SubAgentSelect, as as SubAgentTeamAgentRelationInsert, at as TaskInsert, T as TaskMetadataConfig, au as TaskSelect, av as McpTool, aw as ToolInsert, ax as ToolUpdate, h as CredentialStoreType, ay as ExecutionContext } from './utility-Ct1UMzr_.cjs';
|
|
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-Ct1UMzr_.cjs';
|
|
7
7
|
import { CredentialStore } from './types/index.cjs';
|
|
8
8
|
export { CorsConfig, ServerConfig, ServerOptions } from './types/index.cjs';
|
|
9
9
|
import { NodePgDatabase } from 'drizzle-orm/node-postgres';
|
|
10
10
|
import { PgliteDatabase } from 'drizzle-orm/pglite';
|
|
11
|
-
import { s as schema } from './schema-
|
|
12
|
-
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-
|
|
11
|
+
import { s as schema } from './schema-DQBYINXB.cjs';
|
|
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-DQBYINXB.cjs';
|
|
13
13
|
import { SSEClientTransportOptions } from '@modelcontextprotocol/sdk/client/sse.js';
|
|
14
14
|
import { StreamableHTTPClientTransportOptions } from '@modelcontextprotocol/sdk/client/streamableHttp.js';
|
|
15
15
|
import { ClientCapabilities } from '@modelcontextprotocol/sdk/types.js';
|
|
16
|
+
import * as drizzle_orm_pg_core from 'drizzle-orm/pg-core';
|
|
16
17
|
import { PgTable } from 'drizzle-orm/pg-core';
|
|
18
|
+
import * as drizzle_zod from 'drizzle-zod';
|
|
17
19
|
import { ValidateFunction } from 'ajv';
|
|
18
20
|
import { Context, Next } from 'hono';
|
|
19
21
|
import { z as z$1 } from '@hono/zod-openapi';
|
|
@@ -23,7 +25,6 @@ import { Span, Tracer } from '@opentelemetry/api';
|
|
|
23
25
|
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.cjs';
|
|
24
26
|
export { P as PropsValidationResult, v as validatePropsAsJsonSchema } from './props-validation-BMR1qNiy.cjs';
|
|
25
27
|
import 'pino';
|
|
26
|
-
import 'drizzle-zod';
|
|
27
28
|
import 'drizzle-orm';
|
|
28
29
|
|
|
29
30
|
/**
|
|
@@ -846,14 +847,13 @@ declare const deleteFullAgent: (db: DatabaseClient, logger?: AgentLogger) => (pa
|
|
|
846
847
|
declare const getAgentById: (db: DatabaseClient) => (params: {
|
|
847
848
|
scopes: AgentScopeConfig;
|
|
848
849
|
}) => Promise<{
|
|
849
|
-
tenantId: string;
|
|
850
|
-
projectId: string;
|
|
851
|
-
id: string;
|
|
852
850
|
name: string;
|
|
853
|
-
|
|
854
|
-
prompt: string | null;
|
|
851
|
+
id: string;
|
|
855
852
|
createdAt: string;
|
|
856
853
|
updatedAt: string;
|
|
854
|
+
description: string | null;
|
|
855
|
+
projectId: string;
|
|
856
|
+
tenantId: string;
|
|
857
857
|
models: {
|
|
858
858
|
base?: {
|
|
859
859
|
model?: string | undefined;
|
|
@@ -873,6 +873,7 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
|
|
|
873
873
|
} | null;
|
|
874
874
|
defaultSubAgentId: string | null;
|
|
875
875
|
contextConfigId: string | null;
|
|
876
|
+
prompt: string | null;
|
|
876
877
|
statusUpdates: {
|
|
877
878
|
enabled?: boolean | undefined;
|
|
878
879
|
numEvents?: number | undefined;
|
|
@@ -892,14 +893,13 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
|
|
|
892
893
|
declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
|
|
893
894
|
scopes: AgentScopeConfig;
|
|
894
895
|
}) => Promise<{
|
|
895
|
-
tenantId: string;
|
|
896
|
-
projectId: string;
|
|
897
|
-
id: string;
|
|
898
896
|
name: string;
|
|
899
|
-
|
|
900
|
-
prompt: string | null;
|
|
897
|
+
id: string;
|
|
901
898
|
createdAt: string;
|
|
902
899
|
updatedAt: string;
|
|
900
|
+
description: string | null;
|
|
901
|
+
projectId: string;
|
|
902
|
+
tenantId: string;
|
|
903
903
|
models: {
|
|
904
904
|
base?: {
|
|
905
905
|
model?: string | undefined;
|
|
@@ -919,6 +919,7 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
|
|
|
919
919
|
} | null;
|
|
920
920
|
defaultSubAgentId: string | null;
|
|
921
921
|
contextConfigId: string | null;
|
|
922
|
+
prompt: string | null;
|
|
922
923
|
statusUpdates: {
|
|
923
924
|
enabled?: boolean | undefined;
|
|
924
925
|
numEvents?: number | undefined;
|
|
@@ -935,15 +936,13 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
|
|
|
935
936
|
}[] | undefined;
|
|
936
937
|
} | null;
|
|
937
938
|
defaultSubAgent: {
|
|
938
|
-
tenantId: string;
|
|
939
|
-
projectId: string;
|
|
940
|
-
id: string;
|
|
941
939
|
name: string;
|
|
942
|
-
|
|
943
|
-
prompt: string;
|
|
944
|
-
agentId: string;
|
|
940
|
+
id: string;
|
|
945
941
|
createdAt: string;
|
|
946
942
|
updatedAt: string;
|
|
943
|
+
description: string;
|
|
944
|
+
projectId: string;
|
|
945
|
+
tenantId: string;
|
|
947
946
|
models: {
|
|
948
947
|
base?: {
|
|
949
948
|
model?: string | undefined;
|
|
@@ -961,20 +960,21 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
|
|
|
961
960
|
stopWhen: {
|
|
962
961
|
stepCountIs?: number | undefined;
|
|
963
962
|
} | null;
|
|
963
|
+
agentId: string;
|
|
964
|
+
prompt: string;
|
|
964
965
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
965
966
|
} | null;
|
|
966
967
|
} | null>;
|
|
967
968
|
declare const listAgents: (db: DatabaseClient) => (params: {
|
|
968
969
|
scopes: ProjectScopeConfig;
|
|
969
970
|
}) => Promise<{
|
|
970
|
-
tenantId: string;
|
|
971
|
-
projectId: string;
|
|
972
|
-
id: string;
|
|
973
971
|
name: string;
|
|
974
|
-
|
|
975
|
-
prompt: string | null;
|
|
972
|
+
id: string;
|
|
976
973
|
createdAt: string;
|
|
977
974
|
updatedAt: string;
|
|
975
|
+
description: string | null;
|
|
976
|
+
projectId: string;
|
|
977
|
+
tenantId: string;
|
|
978
978
|
models: {
|
|
979
979
|
base?: {
|
|
980
980
|
model?: string | undefined;
|
|
@@ -994,6 +994,7 @@ declare const listAgents: (db: DatabaseClient) => (params: {
|
|
|
994
994
|
} | null;
|
|
995
995
|
defaultSubAgentId: string | null;
|
|
996
996
|
contextConfigId: string | null;
|
|
997
|
+
prompt: string | null;
|
|
997
998
|
statusUpdates: {
|
|
998
999
|
enabled?: boolean | undefined;
|
|
999
1000
|
numEvents?: number | undefined;
|
|
@@ -1066,14 +1067,13 @@ declare const listAgentsPaginated: (db: DatabaseClient) => (params: {
|
|
|
1066
1067
|
};
|
|
1067
1068
|
}>;
|
|
1068
1069
|
declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promise<{
|
|
1069
|
-
tenantId: string;
|
|
1070
|
-
projectId: string;
|
|
1071
|
-
id: string;
|
|
1072
1070
|
name: string;
|
|
1073
|
-
|
|
1074
|
-
prompt: string | null;
|
|
1071
|
+
id: string;
|
|
1075
1072
|
createdAt: string;
|
|
1076
1073
|
updatedAt: string;
|
|
1074
|
+
description: string | null;
|
|
1075
|
+
projectId: string;
|
|
1076
|
+
tenantId: string;
|
|
1077
1077
|
models: {
|
|
1078
1078
|
base?: {
|
|
1079
1079
|
model?: string | undefined;
|
|
@@ -1093,6 +1093,7 @@ declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promis
|
|
|
1093
1093
|
} | null;
|
|
1094
1094
|
defaultSubAgentId: string | null;
|
|
1095
1095
|
contextConfigId: string | null;
|
|
1096
|
+
prompt: string | null;
|
|
1096
1097
|
statusUpdates: {
|
|
1097
1098
|
enabled?: boolean | undefined;
|
|
1098
1099
|
numEvents?: number | undefined;
|
|
@@ -1193,49 +1194,49 @@ declare const getApiKeyById: (db: DatabaseClient) => (params: {
|
|
|
1193
1194
|
scopes: ProjectScopeConfig;
|
|
1194
1195
|
id: string;
|
|
1195
1196
|
}) => Promise<{
|
|
1196
|
-
tenantId: string;
|
|
1197
|
-
projectId: string;
|
|
1198
|
-
id: string;
|
|
1199
1197
|
name: string | null;
|
|
1198
|
+
id: string;
|
|
1199
|
+
createdAt: string;
|
|
1200
|
+
updatedAt: string;
|
|
1201
|
+
expiresAt: string | null;
|
|
1202
|
+
projectId: string;
|
|
1203
|
+
tenantId: string;
|
|
1200
1204
|
agentId: string;
|
|
1201
1205
|
publicId: string;
|
|
1202
1206
|
keyHash: string;
|
|
1203
1207
|
keyPrefix: string;
|
|
1204
1208
|
lastUsedAt: string | null;
|
|
1205
|
-
expiresAt: string | null;
|
|
1206
|
-
createdAt: string;
|
|
1207
|
-
updatedAt: string;
|
|
1208
1209
|
} | undefined>;
|
|
1209
1210
|
declare const getApiKeyByPublicId: (db: DatabaseClient) => (publicId: string) => Promise<{
|
|
1210
|
-
tenantId: string;
|
|
1211
|
-
projectId: string;
|
|
1212
|
-
id: string;
|
|
1213
1211
|
name: string | null;
|
|
1212
|
+
id: string;
|
|
1213
|
+
createdAt: string;
|
|
1214
|
+
updatedAt: string;
|
|
1215
|
+
expiresAt: string | null;
|
|
1216
|
+
projectId: string;
|
|
1217
|
+
tenantId: string;
|
|
1214
1218
|
agentId: string;
|
|
1215
1219
|
publicId: string;
|
|
1216
1220
|
keyHash: string;
|
|
1217
1221
|
keyPrefix: string;
|
|
1218
1222
|
lastUsedAt: string | null;
|
|
1219
|
-
expiresAt: string | null;
|
|
1220
|
-
createdAt: string;
|
|
1221
|
-
updatedAt: string;
|
|
1222
1223
|
} | undefined>;
|
|
1223
1224
|
declare const listApiKeys: (db: DatabaseClient) => (params: {
|
|
1224
1225
|
scopes: ProjectScopeConfig;
|
|
1225
1226
|
agentId?: string;
|
|
1226
1227
|
}) => Promise<{
|
|
1227
|
-
tenantId: string;
|
|
1228
|
-
projectId: string;
|
|
1229
|
-
id: string;
|
|
1230
1228
|
name: string | null;
|
|
1229
|
+
id: string;
|
|
1230
|
+
createdAt: string;
|
|
1231
|
+
updatedAt: string;
|
|
1232
|
+
expiresAt: string | null;
|
|
1233
|
+
projectId: string;
|
|
1234
|
+
tenantId: string;
|
|
1231
1235
|
agentId: string;
|
|
1232
1236
|
publicId: string;
|
|
1233
1237
|
keyHash: string;
|
|
1234
1238
|
keyPrefix: string;
|
|
1235
1239
|
lastUsedAt: string | null;
|
|
1236
|
-
expiresAt: string | null;
|
|
1237
|
-
createdAt: string;
|
|
1238
|
-
updatedAt: string;
|
|
1239
1240
|
}[]>;
|
|
1240
1241
|
declare const listApiKeysPaginated: (db: DatabaseClient) => (params: {
|
|
1241
1242
|
scopes: ProjectScopeConfig;
|
|
@@ -1251,18 +1252,18 @@ declare const listApiKeysPaginated: (db: DatabaseClient) => (params: {
|
|
|
1251
1252
|
};
|
|
1252
1253
|
}>;
|
|
1253
1254
|
declare const createApiKey: (db: DatabaseClient) => (params: ApiKeyInsert) => Promise<{
|
|
1254
|
-
tenantId: string;
|
|
1255
|
-
projectId: string;
|
|
1256
|
-
id: string;
|
|
1257
1255
|
name: string | null;
|
|
1256
|
+
id: string;
|
|
1257
|
+
createdAt: string;
|
|
1258
|
+
updatedAt: string;
|
|
1259
|
+
expiresAt: string | null;
|
|
1260
|
+
projectId: string;
|
|
1261
|
+
tenantId: string;
|
|
1258
1262
|
agentId: string;
|
|
1259
1263
|
publicId: string;
|
|
1260
1264
|
keyHash: string;
|
|
1261
1265
|
keyPrefix: string;
|
|
1262
1266
|
lastUsedAt: string | null;
|
|
1263
|
-
expiresAt: string | null;
|
|
1264
|
-
createdAt: string;
|
|
1265
|
-
updatedAt: string;
|
|
1266
1267
|
}>;
|
|
1267
1268
|
declare const updateApiKey: (db: DatabaseClient) => (params: {
|
|
1268
1269
|
scopes: ProjectScopeConfig;
|
|
@@ -1309,13 +1310,13 @@ declare const getArtifactComponentById: (db: DatabaseClient) => (params: {
|
|
|
1309
1310
|
scopes: ProjectScopeConfig;
|
|
1310
1311
|
id: string;
|
|
1311
1312
|
}) => Promise<{
|
|
1312
|
-
tenantId: string;
|
|
1313
|
-
projectId: string;
|
|
1314
|
-
id: string;
|
|
1315
1313
|
name: string;
|
|
1316
|
-
|
|
1314
|
+
id: string;
|
|
1317
1315
|
createdAt: string;
|
|
1318
1316
|
updatedAt: string;
|
|
1317
|
+
description: string;
|
|
1318
|
+
projectId: string;
|
|
1319
|
+
tenantId: string;
|
|
1319
1320
|
props: Record<string, unknown> | null;
|
|
1320
1321
|
} | undefined>;
|
|
1321
1322
|
declare const listArtifactComponents: (db: DatabaseClient) => (params: {
|
|
@@ -1343,13 +1344,13 @@ declare const listArtifactComponentsPaginated: (db: DatabaseClient) => (params:
|
|
|
1343
1344
|
};
|
|
1344
1345
|
}>;
|
|
1345
1346
|
declare const createArtifactComponent: (db: DatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
|
|
1346
|
-
tenantId: string;
|
|
1347
|
-
projectId: string;
|
|
1348
|
-
id: string;
|
|
1349
1347
|
name: string;
|
|
1350
|
-
|
|
1348
|
+
id: string;
|
|
1351
1349
|
createdAt: string;
|
|
1352
1350
|
updatedAt: string;
|
|
1351
|
+
description: string;
|
|
1352
|
+
projectId: string;
|
|
1353
|
+
tenantId: string;
|
|
1353
1354
|
props: Record<string, unknown> | null;
|
|
1354
1355
|
}>;
|
|
1355
1356
|
declare const updateArtifactComponent: (db: DatabaseClient) => (params: {
|
|
@@ -1386,11 +1387,11 @@ declare const associateArtifactComponentWithAgent: (db: DatabaseClient) => (para
|
|
|
1386
1387
|
scopes: SubAgentScopeConfig;
|
|
1387
1388
|
artifactComponentId: string;
|
|
1388
1389
|
}) => Promise<{
|
|
1389
|
-
tenantId: string;
|
|
1390
|
-
projectId: string;
|
|
1391
1390
|
id: string;
|
|
1392
|
-
agentId: string;
|
|
1393
1391
|
createdAt: string;
|
|
1392
|
+
projectId: string;
|
|
1393
|
+
tenantId: string;
|
|
1394
|
+
agentId: string;
|
|
1394
1395
|
subAgentId: string;
|
|
1395
1396
|
artifactComponentId: string;
|
|
1396
1397
|
}>;
|
|
@@ -1429,11 +1430,11 @@ declare const upsertAgentArtifactComponentRelation: (db: DatabaseClient) => (par
|
|
|
1429
1430
|
scopes: SubAgentScopeConfig;
|
|
1430
1431
|
artifactComponentId: string;
|
|
1431
1432
|
}) => Promise<{
|
|
1432
|
-
tenantId: string;
|
|
1433
|
-
projectId: string;
|
|
1434
1433
|
id: string;
|
|
1435
|
-
agentId: string;
|
|
1436
1434
|
createdAt: string;
|
|
1435
|
+
projectId: string;
|
|
1436
|
+
tenantId: string;
|
|
1437
|
+
agentId: string;
|
|
1437
1438
|
subAgentId: string;
|
|
1438
1439
|
artifactComponentId: string;
|
|
1439
1440
|
} | null>;
|
|
@@ -1513,26 +1514,26 @@ declare const getContextConfigById: (db: DatabaseClient) => (params: {
|
|
|
1513
1514
|
scopes: AgentScopeConfig;
|
|
1514
1515
|
id: string;
|
|
1515
1516
|
}) => Promise<{
|
|
1516
|
-
tenantId: string;
|
|
1517
|
-
projectId: string;
|
|
1518
1517
|
id: string;
|
|
1519
|
-
agentId: string;
|
|
1520
1518
|
createdAt: string;
|
|
1521
1519
|
updatedAt: string;
|
|
1520
|
+
projectId: string;
|
|
1521
|
+
tenantId: string;
|
|
1522
1522
|
headersSchema: unknown;
|
|
1523
1523
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
1524
|
+
agentId: string;
|
|
1524
1525
|
} | undefined>;
|
|
1525
1526
|
declare const listContextConfigs: (db: DatabaseClient) => (params: {
|
|
1526
1527
|
scopes: AgentScopeConfig;
|
|
1527
1528
|
}) => Promise<{
|
|
1528
|
-
tenantId: string;
|
|
1529
|
-
projectId: string;
|
|
1530
1529
|
id: string;
|
|
1531
|
-
agentId: string;
|
|
1532
1530
|
createdAt: string;
|
|
1533
1531
|
updatedAt: string;
|
|
1532
|
+
projectId: string;
|
|
1533
|
+
tenantId: string;
|
|
1534
1534
|
headersSchema: unknown;
|
|
1535
1535
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
1536
|
+
agentId: string;
|
|
1536
1537
|
}[]>;
|
|
1537
1538
|
declare const listContextConfigsPaginated: (db: DatabaseClient) => (params: {
|
|
1538
1539
|
scopes: AgentScopeConfig;
|
|
@@ -1547,14 +1548,14 @@ declare const listContextConfigsPaginated: (db: DatabaseClient) => (params: {
|
|
|
1547
1548
|
};
|
|
1548
1549
|
}>;
|
|
1549
1550
|
declare const createContextConfig: (db: DatabaseClient) => (params: ContextConfigInsert) => Promise<{
|
|
1550
|
-
tenantId: string;
|
|
1551
|
-
projectId: string;
|
|
1552
1551
|
id: string;
|
|
1553
|
-
agentId: string;
|
|
1554
1552
|
createdAt: string;
|
|
1555
1553
|
updatedAt: string;
|
|
1554
|
+
projectId: string;
|
|
1555
|
+
tenantId: string;
|
|
1556
1556
|
headersSchema: unknown;
|
|
1557
1557
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
1558
|
+
agentId: string;
|
|
1558
1559
|
}>;
|
|
1559
1560
|
declare const updateContextConfig: (db: DatabaseClient) => (params: {
|
|
1560
1561
|
scopes: AgentScopeConfig;
|
|
@@ -1587,14 +1588,14 @@ declare const countContextConfigs: (db: DatabaseClient) => (params: {
|
|
|
1587
1588
|
declare const upsertContextConfig: (db: DatabaseClient) => (params: {
|
|
1588
1589
|
data: ContextConfigInsert;
|
|
1589
1590
|
}) => Promise<{
|
|
1590
|
-
tenantId: string;
|
|
1591
|
-
projectId: string;
|
|
1592
1591
|
id: string;
|
|
1593
|
-
agentId: string;
|
|
1594
1592
|
createdAt: string;
|
|
1595
1593
|
updatedAt: string;
|
|
1594
|
+
projectId: string;
|
|
1595
|
+
tenantId: string;
|
|
1596
1596
|
headersSchema: unknown;
|
|
1597
1597
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
1598
|
+
agentId: string;
|
|
1598
1599
|
}>;
|
|
1599
1600
|
|
|
1600
1601
|
declare const listConversations: (db: DatabaseClient) => (params: {
|
|
@@ -1606,14 +1607,14 @@ declare const listConversations: (db: DatabaseClient) => (params: {
|
|
|
1606
1607
|
total: number;
|
|
1607
1608
|
}>;
|
|
1608
1609
|
declare const createConversation: (db: DatabaseClient) => (params: ConversationInsert) => Promise<{
|
|
1609
|
-
tenantId: string;
|
|
1610
|
-
projectId: string;
|
|
1611
1610
|
id: string;
|
|
1612
|
-
title: string | null;
|
|
1613
1611
|
createdAt: string;
|
|
1614
1612
|
updatedAt: string;
|
|
1615
|
-
metadata: ConversationMetadata | null;
|
|
1616
1613
|
userId: string | null;
|
|
1614
|
+
metadata: ConversationMetadata | null;
|
|
1615
|
+
title: string | null;
|
|
1616
|
+
projectId: string;
|
|
1617
|
+
tenantId: string;
|
|
1617
1618
|
activeSubAgentId: string;
|
|
1618
1619
|
lastContextResolution: string | null;
|
|
1619
1620
|
}>;
|
|
@@ -1657,14 +1658,14 @@ declare const getConversation: (db: DatabaseClient) => (params: {
|
|
|
1657
1658
|
scopes: ProjectScopeConfig;
|
|
1658
1659
|
conversationId: string;
|
|
1659
1660
|
}) => Promise<{
|
|
1660
|
-
tenantId: string;
|
|
1661
|
-
projectId: string;
|
|
1662
1661
|
id: string;
|
|
1663
|
-
title: string | null;
|
|
1664
1662
|
createdAt: string;
|
|
1665
1663
|
updatedAt: string;
|
|
1666
|
-
metadata: ConversationMetadata | null;
|
|
1667
1664
|
userId: string | null;
|
|
1665
|
+
metadata: ConversationMetadata | null;
|
|
1666
|
+
title: string | null;
|
|
1667
|
+
projectId: string;
|
|
1668
|
+
tenantId: string;
|
|
1668
1669
|
activeSubAgentId: string;
|
|
1669
1670
|
lastContextResolution: string | null;
|
|
1670
1671
|
} | undefined>;
|
|
@@ -1681,14 +1682,14 @@ declare const createOrGetConversation: (db: DatabaseClient) => (input: Conversat
|
|
|
1681
1682
|
metadata?: ConversationMetadata | null | undefined;
|
|
1682
1683
|
contextConfigId?: string | undefined;
|
|
1683
1684
|
} | {
|
|
1684
|
-
tenantId: string;
|
|
1685
|
-
projectId: string;
|
|
1686
1685
|
id: string;
|
|
1687
|
-
title: string | null;
|
|
1688
1686
|
createdAt: string;
|
|
1689
1687
|
updatedAt: string;
|
|
1690
|
-
metadata: ConversationMetadata | null;
|
|
1691
1688
|
userId: string | null;
|
|
1689
|
+
metadata: ConversationMetadata | null;
|
|
1690
|
+
title: string | null;
|
|
1691
|
+
projectId: string;
|
|
1692
|
+
tenantId: string;
|
|
1692
1693
|
activeSubAgentId: string;
|
|
1693
1694
|
lastContextResolution: string | null;
|
|
1694
1695
|
}>;
|
|
@@ -1707,14 +1708,14 @@ declare const getActiveAgentForConversation: (db: DatabaseClient) => (params: {
|
|
|
1707
1708
|
scopes: ProjectScopeConfig;
|
|
1708
1709
|
conversationId: string;
|
|
1709
1710
|
}) => Promise<{
|
|
1710
|
-
tenantId: string;
|
|
1711
|
-
projectId: string;
|
|
1712
1711
|
id: string;
|
|
1713
|
-
title: string | null;
|
|
1714
1712
|
createdAt: string;
|
|
1715
1713
|
updatedAt: string;
|
|
1716
|
-
metadata: ConversationMetadata | null;
|
|
1717
1714
|
userId: string | null;
|
|
1715
|
+
metadata: ConversationMetadata | null;
|
|
1716
|
+
title: string | null;
|
|
1717
|
+
projectId: string;
|
|
1718
|
+
tenantId: string;
|
|
1718
1719
|
activeSubAgentId: string;
|
|
1719
1720
|
lastContextResolution: string | null;
|
|
1720
1721
|
} | undefined>;
|
|
@@ -1877,11 +1878,11 @@ declare const associateDataComponentWithAgent: (db: DatabaseClient) => (params:
|
|
|
1877
1878
|
scopes: SubAgentScopeConfig;
|
|
1878
1879
|
dataComponentId: string;
|
|
1879
1880
|
}) => Promise<{
|
|
1880
|
-
tenantId: string;
|
|
1881
|
-
projectId: string;
|
|
1882
1881
|
id: string;
|
|
1883
|
-
agentId: string;
|
|
1884
1882
|
createdAt: string;
|
|
1883
|
+
projectId: string;
|
|
1884
|
+
tenantId: string;
|
|
1885
|
+
agentId: string;
|
|
1885
1886
|
subAgentId: string;
|
|
1886
1887
|
dataComponentId: string;
|
|
1887
1888
|
}>;
|
|
@@ -1919,11 +1920,11 @@ declare const upsertAgentDataComponentRelation: (db: DatabaseClient) => (params:
|
|
|
1919
1920
|
scopes: SubAgentScopeConfig;
|
|
1920
1921
|
dataComponentId: string;
|
|
1921
1922
|
}) => Promise<{
|
|
1922
|
-
tenantId: string;
|
|
1923
|
-
projectId: string;
|
|
1924
1923
|
id: string;
|
|
1925
|
-
agentId: string;
|
|
1926
1924
|
createdAt: string;
|
|
1925
|
+
projectId: string;
|
|
1926
|
+
tenantId: string;
|
|
1927
|
+
agentId: string;
|
|
1927
1928
|
subAgentId: string;
|
|
1928
1929
|
dataComponentId: string;
|
|
1929
1930
|
} | null>;
|
|
@@ -2098,14 +2099,14 @@ declare const createFunctionTool: (db: DatabaseClient) => (params: {
|
|
|
2098
2099
|
data: FunctionToolApiInsert;
|
|
2099
2100
|
scopes: AgentScopeConfig;
|
|
2100
2101
|
}) => Promise<{
|
|
2101
|
-
tenantId: string;
|
|
2102
|
-
projectId: string;
|
|
2103
|
-
id: string;
|
|
2104
2102
|
name: string;
|
|
2105
|
-
|
|
2106
|
-
agentId: string;
|
|
2103
|
+
id: string;
|
|
2107
2104
|
createdAt: string;
|
|
2108
2105
|
updatedAt: string;
|
|
2106
|
+
description: string | null;
|
|
2107
|
+
projectId: string;
|
|
2108
|
+
tenantId: string;
|
|
2109
|
+
agentId: string;
|
|
2109
2110
|
functionId: string;
|
|
2110
2111
|
}>;
|
|
2111
2112
|
/**
|
|
@@ -2140,14 +2141,14 @@ declare const upsertFunctionTool: (db: DatabaseClient) => (params: {
|
|
|
2140
2141
|
data: FunctionToolApiInsert;
|
|
2141
2142
|
scopes: AgentScopeConfig;
|
|
2142
2143
|
}) => Promise<{
|
|
2143
|
-
tenantId: string;
|
|
2144
|
-
projectId: string;
|
|
2145
|
-
id: string;
|
|
2146
2144
|
name: string;
|
|
2147
|
-
|
|
2148
|
-
agentId: string;
|
|
2145
|
+
id: string;
|
|
2149
2146
|
createdAt: string;
|
|
2150
2147
|
updatedAt: string;
|
|
2148
|
+
description: string | null;
|
|
2149
|
+
projectId: string;
|
|
2150
|
+
tenantId: string;
|
|
2151
|
+
agentId: string;
|
|
2151
2152
|
functionId: string;
|
|
2152
2153
|
}>;
|
|
2153
2154
|
declare const getFunctionToolsForSubAgent: (db: DatabaseClient) => (params: {
|
|
@@ -2277,15 +2278,15 @@ declare const getMessageById: (db: DatabaseClient) => (params: {
|
|
|
2277
2278
|
scopes: ProjectScopeConfig;
|
|
2278
2279
|
messageId: string;
|
|
2279
2280
|
}) => Promise<{
|
|
2280
|
-
tenantId: string;
|
|
2281
|
-
projectId: string;
|
|
2282
2281
|
id: string;
|
|
2283
2282
|
createdAt: string;
|
|
2284
2283
|
updatedAt: string;
|
|
2285
|
-
content: MessageContent;
|
|
2286
2284
|
metadata: MessageMetadata | null;
|
|
2287
|
-
conversationId: string;
|
|
2288
2285
|
role: string;
|
|
2286
|
+
projectId: string;
|
|
2287
|
+
tenantId: string;
|
|
2288
|
+
content: MessageContent;
|
|
2289
|
+
conversationId: string;
|
|
2289
2290
|
fromSubAgentId: string | null;
|
|
2290
2291
|
toSubAgentId: string | null;
|
|
2291
2292
|
fromExternalAgentId: string | null;
|
|
@@ -2408,15 +2409,15 @@ declare const getVisibleMessages: (db: DatabaseClient) => (params: {
|
|
|
2408
2409
|
id: string;
|
|
2409
2410
|
}[]>;
|
|
2410
2411
|
declare const createMessage: (db: DatabaseClient) => (params: MessageInsert) => Promise<{
|
|
2411
|
-
tenantId: string;
|
|
2412
|
-
projectId: string;
|
|
2413
2412
|
id: string;
|
|
2414
2413
|
createdAt: string;
|
|
2415
2414
|
updatedAt: string;
|
|
2416
|
-
content: MessageContent;
|
|
2417
2415
|
metadata: MessageMetadata | null;
|
|
2418
|
-
conversationId: string;
|
|
2419
2416
|
role: string;
|
|
2417
|
+
projectId: string;
|
|
2418
|
+
tenantId: string;
|
|
2419
|
+
content: MessageContent;
|
|
2420
|
+
conversationId: string;
|
|
2420
2421
|
fromSubAgentId: string | null;
|
|
2421
2422
|
toSubAgentId: string | null;
|
|
2422
2423
|
fromExternalAgentId: string | null;
|
|
@@ -2461,15 +2462,15 @@ declare const deleteMessage: (db: DatabaseClient) => (params: {
|
|
|
2461
2462
|
scopes: ProjectScopeConfig;
|
|
2462
2463
|
messageId: string;
|
|
2463
2464
|
}) => Promise<{
|
|
2464
|
-
tenantId: string;
|
|
2465
|
-
projectId: string;
|
|
2466
2465
|
id: string;
|
|
2467
2466
|
createdAt: string;
|
|
2468
2467
|
updatedAt: string;
|
|
2469
|
-
content: MessageContent;
|
|
2470
2468
|
metadata: MessageMetadata | null;
|
|
2471
|
-
conversationId: string;
|
|
2472
2469
|
role: string;
|
|
2470
|
+
projectId: string;
|
|
2471
|
+
tenantId: string;
|
|
2472
|
+
content: MessageContent;
|
|
2473
|
+
conversationId: string;
|
|
2473
2474
|
fromSubAgentId: string | null;
|
|
2474
2475
|
toSubAgentId: string | null;
|
|
2475
2476
|
fromExternalAgentId: string | null;
|
|
@@ -2488,6 +2489,176 @@ declare const countMessagesByConversation: (db: DatabaseClient) => (params: {
|
|
|
2488
2489
|
conversationId: string;
|
|
2489
2490
|
}) => Promise<number>;
|
|
2490
2491
|
|
|
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
|
+
/**
|
|
2626
|
+
* Organization and Member data access layer
|
|
2627
|
+
* All database queries for Better Auth's organization/member tables
|
|
2628
|
+
*/
|
|
2629
|
+
/**
|
|
2630
|
+
* Get all organizations for a user
|
|
2631
|
+
* Queries Better Auth's member and organization tables
|
|
2632
|
+
* Returns Date for createdAt (converted to string at API boundary)
|
|
2633
|
+
*/
|
|
2634
|
+
declare const getUserOrganizations: (db: DatabaseClient) => (userId: string) => Promise<Array<Omit<UserOrganization, "createdAt"> & {
|
|
2635
|
+
createdAt: Date;
|
|
2636
|
+
}>>;
|
|
2637
|
+
/**
|
|
2638
|
+
* Get pending invitations for a user by email
|
|
2639
|
+
* Returns invitations with status 'pending' that haven't expired
|
|
2640
|
+
*/
|
|
2641
|
+
declare const getPendingInvitationsByEmail: (db: DatabaseClient) => (email: string) => Promise<{
|
|
2642
|
+
id: string;
|
|
2643
|
+
email: string;
|
|
2644
|
+
organizationId: string;
|
|
2645
|
+
organizationName: string | null;
|
|
2646
|
+
organizationSlug: string | null;
|
|
2647
|
+
role: string | null;
|
|
2648
|
+
status: string;
|
|
2649
|
+
expiresAt: Date;
|
|
2650
|
+
inviterId: string;
|
|
2651
|
+
}[]>;
|
|
2652
|
+
/**
|
|
2653
|
+
* Add user to organization
|
|
2654
|
+
* Directly inserts into Better Auth's member table
|
|
2655
|
+
*/
|
|
2656
|
+
declare const addUserToOrganization: (db: DatabaseClient) => (data: {
|
|
2657
|
+
userId: string;
|
|
2658
|
+
organizationId: string;
|
|
2659
|
+
role: string;
|
|
2660
|
+
}) => Promise<void>;
|
|
2661
|
+
|
|
2491
2662
|
/**
|
|
2492
2663
|
* Server-side data access layer for Full Project operations.
|
|
2493
2664
|
* This module provides functions for creating, retrieving, updating, and deleting
|
|
@@ -2586,15 +2757,15 @@ declare const getSubAgentExternalAgentRelationById: (db: DatabaseClient) => (par
|
|
|
2586
2757
|
scopes: SubAgentScopeConfig;
|
|
2587
2758
|
relationId: string;
|
|
2588
2759
|
}) => Promise<{
|
|
2589
|
-
tenantId: string;
|
|
2590
|
-
projectId: string;
|
|
2591
2760
|
id: string;
|
|
2592
|
-
agentId: string;
|
|
2593
2761
|
createdAt: string;
|
|
2594
2762
|
updatedAt: string;
|
|
2595
2763
|
headers: Record<string, string> | null;
|
|
2596
|
-
|
|
2764
|
+
projectId: string;
|
|
2765
|
+
tenantId: string;
|
|
2766
|
+
agentId: string;
|
|
2597
2767
|
subAgentId: string;
|
|
2768
|
+
externalAgentId: string;
|
|
2598
2769
|
} | undefined>;
|
|
2599
2770
|
declare const listSubAgentExternalAgentRelations: (db: DatabaseClient) => (params: {
|
|
2600
2771
|
scopes: SubAgentScopeConfig;
|
|
@@ -2621,28 +2792,28 @@ declare const listSubAgentExternalAgentRelations: (db: DatabaseClient) => (param
|
|
|
2621
2792
|
declare const getSubAgentExternalAgentRelations: (db: DatabaseClient) => (params: {
|
|
2622
2793
|
scopes: SubAgentScopeConfig;
|
|
2623
2794
|
}) => Promise<{
|
|
2624
|
-
tenantId: string;
|
|
2625
|
-
projectId: string;
|
|
2626
2795
|
id: string;
|
|
2627
|
-
agentId: string;
|
|
2628
2796
|
createdAt: string;
|
|
2629
2797
|
updatedAt: string;
|
|
2630
2798
|
headers: Record<string, string> | null;
|
|
2631
|
-
|
|
2799
|
+
projectId: string;
|
|
2800
|
+
tenantId: string;
|
|
2801
|
+
agentId: string;
|
|
2632
2802
|
subAgentId: string;
|
|
2803
|
+
externalAgentId: string;
|
|
2633
2804
|
}[]>;
|
|
2634
2805
|
declare const getSubAgentExternalAgentRelationsByAgent: (db: DatabaseClient) => (params: {
|
|
2635
2806
|
scopes: AgentScopeConfig;
|
|
2636
2807
|
}) => Promise<{
|
|
2637
|
-
tenantId: string;
|
|
2638
|
-
projectId: string;
|
|
2639
2808
|
id: string;
|
|
2640
|
-
agentId: string;
|
|
2641
2809
|
createdAt: string;
|
|
2642
2810
|
updatedAt: string;
|
|
2643
2811
|
headers: Record<string, string> | null;
|
|
2644
|
-
|
|
2812
|
+
projectId: string;
|
|
2813
|
+
tenantId: string;
|
|
2814
|
+
agentId: string;
|
|
2645
2815
|
subAgentId: string;
|
|
2816
|
+
externalAgentId: string;
|
|
2646
2817
|
}[]>;
|
|
2647
2818
|
declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: DatabaseClient) => (params: {
|
|
2648
2819
|
scopes: AgentScopeConfig;
|
|
@@ -2757,15 +2928,15 @@ declare const createSubAgentExternalAgentRelation: (db: DatabaseClient) => (para
|
|
|
2757
2928
|
headers?: Record<string, string> | null;
|
|
2758
2929
|
};
|
|
2759
2930
|
}) => Promise<{
|
|
2760
|
-
tenantId: string;
|
|
2761
|
-
projectId: string;
|
|
2762
2931
|
id: string;
|
|
2763
|
-
agentId: string;
|
|
2764
2932
|
createdAt: string;
|
|
2765
2933
|
updatedAt: string;
|
|
2766
2934
|
headers: Record<string, string> | null;
|
|
2767
|
-
|
|
2935
|
+
projectId: string;
|
|
2936
|
+
tenantId: string;
|
|
2937
|
+
agentId: string;
|
|
2768
2938
|
subAgentId: string;
|
|
2939
|
+
externalAgentId: string;
|
|
2769
2940
|
}>;
|
|
2770
2941
|
/**
|
|
2771
2942
|
* Check if sub-agent external agent relation exists by params
|
|
@@ -2774,15 +2945,15 @@ declare const getSubAgentExternalAgentRelationByParams: (db: DatabaseClient) =>
|
|
|
2774
2945
|
scopes: SubAgentScopeConfig;
|
|
2775
2946
|
externalAgentId: string;
|
|
2776
2947
|
}) => Promise<{
|
|
2777
|
-
tenantId: string;
|
|
2778
|
-
projectId: string;
|
|
2779
2948
|
id: string;
|
|
2780
|
-
agentId: string;
|
|
2781
2949
|
createdAt: string;
|
|
2782
2950
|
updatedAt: string;
|
|
2783
2951
|
headers: Record<string, string> | null;
|
|
2784
|
-
|
|
2952
|
+
projectId: string;
|
|
2953
|
+
tenantId: string;
|
|
2954
|
+
agentId: string;
|
|
2785
2955
|
subAgentId: string;
|
|
2956
|
+
externalAgentId: string;
|
|
2786
2957
|
} | undefined>;
|
|
2787
2958
|
/**
|
|
2788
2959
|
* Upsert sub-agent external agent relation (create if it doesn't exist, update if it does)
|
|
@@ -2795,15 +2966,15 @@ declare const upsertSubAgentExternalAgentRelation: (db: DatabaseClient) => (para
|
|
|
2795
2966
|
headers?: Record<string, string> | null;
|
|
2796
2967
|
};
|
|
2797
2968
|
}) => Promise<{
|
|
2798
|
-
tenantId: string;
|
|
2799
|
-
projectId: string;
|
|
2800
2969
|
id: string;
|
|
2801
|
-
agentId: string;
|
|
2802
2970
|
createdAt: string;
|
|
2803
2971
|
updatedAt: string;
|
|
2804
2972
|
headers: Record<string, string> | null;
|
|
2805
|
-
|
|
2973
|
+
projectId: string;
|
|
2974
|
+
tenantId: string;
|
|
2975
|
+
agentId: string;
|
|
2806
2976
|
subAgentId: string;
|
|
2977
|
+
externalAgentId: string;
|
|
2807
2978
|
}>;
|
|
2808
2979
|
declare const updateSubAgentExternalAgentRelation: (db: DatabaseClient) => (params: {
|
|
2809
2980
|
scopes: SubAgentScopeConfig;
|
|
@@ -2835,12 +3006,12 @@ declare const getAgentRelationById: (db: DatabaseClient) => (params: {
|
|
|
2835
3006
|
scopes: AgentScopeConfig;
|
|
2836
3007
|
relationId: string;
|
|
2837
3008
|
}) => Promise<{
|
|
2838
|
-
tenantId: string;
|
|
2839
|
-
projectId: string;
|
|
2840
3009
|
id: string;
|
|
2841
|
-
agentId: string;
|
|
2842
3010
|
createdAt: string;
|
|
2843
3011
|
updatedAt: string;
|
|
3012
|
+
projectId: string;
|
|
3013
|
+
tenantId: string;
|
|
3014
|
+
agentId: string;
|
|
2844
3015
|
sourceSubAgentId: string;
|
|
2845
3016
|
targetSubAgentId: string | null;
|
|
2846
3017
|
relationType: string | null;
|
|
@@ -2870,12 +3041,12 @@ declare const listAgentRelations: (db: DatabaseClient) => (params: {
|
|
|
2870
3041
|
declare const getAgentRelations: (db: DatabaseClient) => (params: {
|
|
2871
3042
|
scopes: SubAgentScopeConfig;
|
|
2872
3043
|
}) => Promise<{
|
|
2873
|
-
tenantId: string;
|
|
2874
|
-
projectId: string;
|
|
2875
3044
|
id: string;
|
|
2876
|
-
agentId: string;
|
|
2877
3045
|
createdAt: string;
|
|
2878
3046
|
updatedAt: string;
|
|
3047
|
+
projectId: string;
|
|
3048
|
+
tenantId: string;
|
|
3049
|
+
agentId: string;
|
|
2879
3050
|
sourceSubAgentId: string;
|
|
2880
3051
|
targetSubAgentId: string | null;
|
|
2881
3052
|
relationType: string | null;
|
|
@@ -2883,12 +3054,12 @@ declare const getAgentRelations: (db: DatabaseClient) => (params: {
|
|
|
2883
3054
|
declare const getAgentRelationsByAgent: (db: DatabaseClient) => (params: {
|
|
2884
3055
|
scopes: AgentScopeConfig;
|
|
2885
3056
|
}) => Promise<{
|
|
2886
|
-
tenantId: string;
|
|
2887
|
-
projectId: string;
|
|
2888
3057
|
id: string;
|
|
2889
|
-
agentId: string;
|
|
2890
3058
|
createdAt: string;
|
|
2891
3059
|
updatedAt: string;
|
|
3060
|
+
projectId: string;
|
|
3061
|
+
tenantId: string;
|
|
3062
|
+
agentId: string;
|
|
2892
3063
|
sourceSubAgentId: string;
|
|
2893
3064
|
targetSubAgentId: string | null;
|
|
2894
3065
|
relationType: string | null;
|
|
@@ -2951,12 +3122,12 @@ declare const getRelatedAgentsForAgent: (db: DatabaseClient) => (params: {
|
|
|
2951
3122
|
}[];
|
|
2952
3123
|
}>;
|
|
2953
3124
|
declare const createSubAgentRelation: (db: DatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
|
|
2954
|
-
tenantId: string;
|
|
2955
|
-
projectId: string;
|
|
2956
3125
|
id: string;
|
|
2957
|
-
agentId: string;
|
|
2958
3126
|
createdAt: string;
|
|
2959
3127
|
updatedAt: string;
|
|
3128
|
+
projectId: string;
|
|
3129
|
+
tenantId: string;
|
|
3130
|
+
agentId: string;
|
|
2960
3131
|
sourceSubAgentId: string;
|
|
2961
3132
|
targetSubAgentId: string | null;
|
|
2962
3133
|
relationType: string | null;
|
|
@@ -2970,12 +3141,12 @@ declare const getAgentRelationByParams: (db: DatabaseClient) => (params: {
|
|
|
2970
3141
|
targetSubAgentId?: string;
|
|
2971
3142
|
relationType: string;
|
|
2972
3143
|
}) => Promise<{
|
|
2973
|
-
tenantId: string;
|
|
2974
|
-
projectId: string;
|
|
2975
3144
|
id: string;
|
|
2976
|
-
agentId: string;
|
|
2977
3145
|
createdAt: string;
|
|
2978
3146
|
updatedAt: string;
|
|
3147
|
+
projectId: string;
|
|
3148
|
+
tenantId: string;
|
|
3149
|
+
agentId: string;
|
|
2979
3150
|
sourceSubAgentId: string;
|
|
2980
3151
|
targetSubAgentId: string | null;
|
|
2981
3152
|
relationType: string | null;
|
|
@@ -2984,12 +3155,12 @@ declare const getAgentRelationByParams: (db: DatabaseClient) => (params: {
|
|
|
2984
3155
|
* Upsert agent relation (create if it doesn't exist, no-op if it does)
|
|
2985
3156
|
*/
|
|
2986
3157
|
declare const upsertSubAgentRelation: (db: DatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
|
|
2987
|
-
tenantId: string;
|
|
2988
|
-
projectId: string;
|
|
2989
3158
|
id: string;
|
|
2990
|
-
agentId: string;
|
|
2991
3159
|
createdAt: string;
|
|
2992
3160
|
updatedAt: string;
|
|
3161
|
+
projectId: string;
|
|
3162
|
+
tenantId: string;
|
|
3163
|
+
agentId: string;
|
|
2993
3164
|
sourceSubAgentId: string;
|
|
2994
3165
|
targetSubAgentId: string | null;
|
|
2995
3166
|
relationType: string | null;
|
|
@@ -3026,16 +3197,16 @@ declare const createAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
|
3026
3197
|
headers?: Record<string, string> | null;
|
|
3027
3198
|
};
|
|
3028
3199
|
}) => Promise<{
|
|
3029
|
-
tenantId: string;
|
|
3030
|
-
projectId: string;
|
|
3031
3200
|
id: string;
|
|
3032
|
-
agentId: string;
|
|
3033
3201
|
createdAt: string;
|
|
3034
3202
|
updatedAt: string;
|
|
3035
3203
|
headers: Record<string, string> | null;
|
|
3036
|
-
|
|
3204
|
+
projectId: string;
|
|
3205
|
+
tenantId: string;
|
|
3206
|
+
agentId: string;
|
|
3037
3207
|
selectedTools: string[] | null;
|
|
3038
3208
|
subAgentId: string;
|
|
3209
|
+
toolId: string;
|
|
3039
3210
|
}>;
|
|
3040
3211
|
declare const updateAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
3041
3212
|
scopes: AgentScopeConfig;
|
|
@@ -3064,16 +3235,16 @@ declare const getAgentToolRelationById: (db: DatabaseClient) => (params: {
|
|
|
3064
3235
|
scopes: SubAgentScopeConfig;
|
|
3065
3236
|
relationId: string;
|
|
3066
3237
|
}) => Promise<{
|
|
3067
|
-
tenantId: string;
|
|
3068
|
-
projectId: string;
|
|
3069
3238
|
id: string;
|
|
3070
|
-
agentId: string;
|
|
3071
3239
|
createdAt: string;
|
|
3072
3240
|
updatedAt: string;
|
|
3073
3241
|
headers: Record<string, string> | null;
|
|
3074
|
-
|
|
3242
|
+
projectId: string;
|
|
3243
|
+
tenantId: string;
|
|
3244
|
+
agentId: string;
|
|
3075
3245
|
selectedTools: string[] | null;
|
|
3076
3246
|
subAgentId: string;
|
|
3247
|
+
toolId: string;
|
|
3077
3248
|
} | undefined>;
|
|
3078
3249
|
declare const getAgentToolRelationByAgent: (db: DatabaseClient) => (params: {
|
|
3079
3250
|
scopes: SubAgentScopeConfig;
|
|
@@ -3240,15 +3411,13 @@ declare const getSubAgentById: (db: DatabaseClient) => (params: {
|
|
|
3240
3411
|
scopes: AgentScopeConfig;
|
|
3241
3412
|
subAgentId: string;
|
|
3242
3413
|
}) => Promise<{
|
|
3243
|
-
tenantId: string;
|
|
3244
|
-
projectId: string;
|
|
3245
|
-
id: string;
|
|
3246
3414
|
name: string;
|
|
3247
|
-
|
|
3248
|
-
prompt: string;
|
|
3249
|
-
agentId: string;
|
|
3415
|
+
id: string;
|
|
3250
3416
|
createdAt: string;
|
|
3251
3417
|
updatedAt: string;
|
|
3418
|
+
description: string;
|
|
3419
|
+
projectId: string;
|
|
3420
|
+
tenantId: string;
|
|
3252
3421
|
models: {
|
|
3253
3422
|
base?: {
|
|
3254
3423
|
model?: string | undefined;
|
|
@@ -3266,20 +3435,20 @@ declare const getSubAgentById: (db: DatabaseClient) => (params: {
|
|
|
3266
3435
|
stopWhen: {
|
|
3267
3436
|
stepCountIs?: number | undefined;
|
|
3268
3437
|
} | null;
|
|
3438
|
+
agentId: string;
|
|
3439
|
+
prompt: string;
|
|
3269
3440
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
3270
3441
|
} | undefined>;
|
|
3271
3442
|
declare const listSubAgents: (db: DatabaseClient) => (params: {
|
|
3272
3443
|
scopes: AgentScopeConfig;
|
|
3273
3444
|
}) => Promise<{
|
|
3274
|
-
tenantId: string;
|
|
3275
|
-
projectId: string;
|
|
3276
|
-
id: string;
|
|
3277
3445
|
name: string;
|
|
3278
|
-
|
|
3279
|
-
prompt: string;
|
|
3280
|
-
agentId: string;
|
|
3446
|
+
id: string;
|
|
3281
3447
|
createdAt: string;
|
|
3282
3448
|
updatedAt: string;
|
|
3449
|
+
description: string;
|
|
3450
|
+
projectId: string;
|
|
3451
|
+
tenantId: string;
|
|
3283
3452
|
models: {
|
|
3284
3453
|
base?: {
|
|
3285
3454
|
model?: string | undefined;
|
|
@@ -3297,6 +3466,8 @@ declare const listSubAgents: (db: DatabaseClient) => (params: {
|
|
|
3297
3466
|
stopWhen: {
|
|
3298
3467
|
stepCountIs?: number | undefined;
|
|
3299
3468
|
} | null;
|
|
3469
|
+
agentId: string;
|
|
3470
|
+
prompt: string;
|
|
3300
3471
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
3301
3472
|
}[]>;
|
|
3302
3473
|
declare const listSubAgentsPaginated: (db: DatabaseClient) => (params: {
|
|
@@ -3340,15 +3511,13 @@ declare const listSubAgentsPaginated: (db: DatabaseClient) => (params: {
|
|
|
3340
3511
|
};
|
|
3341
3512
|
}>;
|
|
3342
3513
|
declare const createSubAgent: (db: DatabaseClient) => (params: SubAgentInsert) => Promise<{
|
|
3343
|
-
tenantId: string;
|
|
3344
|
-
projectId: string;
|
|
3345
|
-
id: string;
|
|
3346
3514
|
name: string;
|
|
3347
|
-
|
|
3348
|
-
prompt: string;
|
|
3349
|
-
agentId: string;
|
|
3515
|
+
id: string;
|
|
3350
3516
|
createdAt: string;
|
|
3351
3517
|
updatedAt: string;
|
|
3518
|
+
description: string;
|
|
3519
|
+
projectId: string;
|
|
3520
|
+
tenantId: string;
|
|
3352
3521
|
models: {
|
|
3353
3522
|
base?: {
|
|
3354
3523
|
model?: string | undefined;
|
|
@@ -3366,6 +3535,8 @@ declare const createSubAgent: (db: DatabaseClient) => (params: SubAgentInsert) =
|
|
|
3366
3535
|
stopWhen: {
|
|
3367
3536
|
stepCountIs?: number | undefined;
|
|
3368
3537
|
} | null;
|
|
3538
|
+
agentId: string;
|
|
3539
|
+
prompt: string;
|
|
3369
3540
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
3370
3541
|
}>;
|
|
3371
3542
|
declare const updateSubAgent: (db: DatabaseClient) => (params: {
|
|
@@ -3448,13 +3619,13 @@ declare const getSubAgentTeamAgentRelationById: (db: DatabaseClient) => (params:
|
|
|
3448
3619
|
scopes: SubAgentScopeConfig;
|
|
3449
3620
|
relationId: string;
|
|
3450
3621
|
}) => Promise<{
|
|
3451
|
-
tenantId: string;
|
|
3452
|
-
projectId: string;
|
|
3453
3622
|
id: string;
|
|
3454
|
-
agentId: string;
|
|
3455
3623
|
createdAt: string;
|
|
3456
3624
|
updatedAt: string;
|
|
3457
3625
|
headers: Record<string, string> | null;
|
|
3626
|
+
projectId: string;
|
|
3627
|
+
tenantId: string;
|
|
3628
|
+
agentId: string;
|
|
3458
3629
|
subAgentId: string;
|
|
3459
3630
|
targetAgentId: string;
|
|
3460
3631
|
} | undefined>;
|
|
@@ -3483,26 +3654,26 @@ declare const listSubAgentTeamAgentRelations: (db: DatabaseClient) => (params: {
|
|
|
3483
3654
|
declare const getSubAgentTeamAgentRelations: (db: DatabaseClient) => (params: {
|
|
3484
3655
|
scopes: SubAgentScopeConfig;
|
|
3485
3656
|
}) => Promise<{
|
|
3486
|
-
tenantId: string;
|
|
3487
|
-
projectId: string;
|
|
3488
3657
|
id: string;
|
|
3489
|
-
agentId: string;
|
|
3490
3658
|
createdAt: string;
|
|
3491
3659
|
updatedAt: string;
|
|
3492
3660
|
headers: Record<string, string> | null;
|
|
3661
|
+
projectId: string;
|
|
3662
|
+
tenantId: string;
|
|
3663
|
+
agentId: string;
|
|
3493
3664
|
subAgentId: string;
|
|
3494
3665
|
targetAgentId: string;
|
|
3495
3666
|
}[]>;
|
|
3496
3667
|
declare const getSubAgentTeamAgentRelationsByAgent: (db: DatabaseClient) => (params: {
|
|
3497
3668
|
scopes: AgentScopeConfig;
|
|
3498
3669
|
}) => Promise<{
|
|
3499
|
-
tenantId: string;
|
|
3500
|
-
projectId: string;
|
|
3501
3670
|
id: string;
|
|
3502
|
-
agentId: string;
|
|
3503
3671
|
createdAt: string;
|
|
3504
3672
|
updatedAt: string;
|
|
3505
3673
|
headers: Record<string, string> | null;
|
|
3674
|
+
projectId: string;
|
|
3675
|
+
tenantId: string;
|
|
3676
|
+
agentId: string;
|
|
3506
3677
|
subAgentId: string;
|
|
3507
3678
|
targetAgentId: string;
|
|
3508
3679
|
}[]>;
|
|
@@ -3649,13 +3820,13 @@ declare const createSubAgentTeamAgentRelation: (db: DatabaseClient) => (params:
|
|
|
3649
3820
|
headers?: Record<string, string> | null;
|
|
3650
3821
|
};
|
|
3651
3822
|
}) => Promise<{
|
|
3652
|
-
tenantId: string;
|
|
3653
|
-
projectId: string;
|
|
3654
3823
|
id: string;
|
|
3655
|
-
agentId: string;
|
|
3656
3824
|
createdAt: string;
|
|
3657
3825
|
updatedAt: string;
|
|
3658
3826
|
headers: Record<string, string> | null;
|
|
3827
|
+
projectId: string;
|
|
3828
|
+
tenantId: string;
|
|
3829
|
+
agentId: string;
|
|
3659
3830
|
subAgentId: string;
|
|
3660
3831
|
targetAgentId: string;
|
|
3661
3832
|
}>;
|
|
@@ -3666,13 +3837,13 @@ declare const getSubAgentTeamAgentRelationByParams: (db: DatabaseClient) => (par
|
|
|
3666
3837
|
scopes: SubAgentScopeConfig;
|
|
3667
3838
|
targetAgentId: string;
|
|
3668
3839
|
}) => Promise<{
|
|
3669
|
-
tenantId: string;
|
|
3670
|
-
projectId: string;
|
|
3671
3840
|
id: string;
|
|
3672
|
-
agentId: string;
|
|
3673
3841
|
createdAt: string;
|
|
3674
3842
|
updatedAt: string;
|
|
3675
3843
|
headers: Record<string, string> | null;
|
|
3844
|
+
projectId: string;
|
|
3845
|
+
tenantId: string;
|
|
3846
|
+
agentId: string;
|
|
3676
3847
|
subAgentId: string;
|
|
3677
3848
|
targetAgentId: string;
|
|
3678
3849
|
} | undefined>;
|
|
@@ -3687,13 +3858,13 @@ declare const upsertSubAgentTeamAgentRelation: (db: DatabaseClient) => (params:
|
|
|
3687
3858
|
headers?: Record<string, string> | null;
|
|
3688
3859
|
};
|
|
3689
3860
|
}) => Promise<{
|
|
3690
|
-
tenantId: string;
|
|
3691
|
-
projectId: string;
|
|
3692
3861
|
id: string;
|
|
3693
|
-
agentId: string;
|
|
3694
3862
|
createdAt: string;
|
|
3695
3863
|
updatedAt: string;
|
|
3696
3864
|
headers: Record<string, string> | null;
|
|
3865
|
+
projectId: string;
|
|
3866
|
+
tenantId: string;
|
|
3867
|
+
agentId: string;
|
|
3697
3868
|
subAgentId: string;
|
|
3698
3869
|
targetAgentId: string;
|
|
3699
3870
|
}>;
|
|
@@ -3724,14 +3895,14 @@ declare const deleteSubAgentTeamAgentRelationsByAgent: (db: DatabaseClient) => (
|
|
|
3724
3895
|
}) => Promise<boolean>;
|
|
3725
3896
|
|
|
3726
3897
|
declare const createTask: (db: DatabaseClient) => (params: TaskInsert) => Promise<{
|
|
3727
|
-
tenantId: string;
|
|
3728
|
-
projectId: string;
|
|
3729
3898
|
id: string;
|
|
3730
|
-
agentId: string;
|
|
3731
3899
|
createdAt: string;
|
|
3732
3900
|
updatedAt: string;
|
|
3733
|
-
status: string;
|
|
3734
3901
|
metadata: TaskMetadataConfig | null;
|
|
3902
|
+
status: string;
|
|
3903
|
+
projectId: string;
|
|
3904
|
+
tenantId: string;
|
|
3905
|
+
agentId: string;
|
|
3735
3906
|
contextId: string;
|
|
3736
3907
|
subAgentId: string;
|
|
3737
3908
|
}>;
|
|
@@ -3765,20 +3936,20 @@ declare const getToolById: (db: DatabaseClient) => (params: {
|
|
|
3765
3936
|
scopes: ProjectScopeConfig;
|
|
3766
3937
|
toolId: string;
|
|
3767
3938
|
}) => Promise<{
|
|
3768
|
-
tenantId: string;
|
|
3769
|
-
projectId: string;
|
|
3770
|
-
id: string;
|
|
3771
3939
|
name: string;
|
|
3772
|
-
|
|
3940
|
+
id: string;
|
|
3941
|
+
createdAt: string;
|
|
3942
|
+
updatedAt: string;
|
|
3943
|
+
headers: Record<string, string> | null;
|
|
3773
3944
|
config: {
|
|
3774
3945
|
type: "mcp";
|
|
3775
3946
|
mcp: ToolMcpConfig;
|
|
3776
3947
|
};
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
headers: Record<string, string> | null;
|
|
3948
|
+
description: string | null;
|
|
3949
|
+
projectId: string;
|
|
3950
|
+
tenantId: string;
|
|
3781
3951
|
capabilities: ToolServerCapabilities | null;
|
|
3952
|
+
credentialReferenceId: string | null;
|
|
3782
3953
|
imageUrl: string | null;
|
|
3783
3954
|
lastError: string | null;
|
|
3784
3955
|
} | null>;
|
|
@@ -3812,20 +3983,20 @@ declare const listTools: (db: DatabaseClient) => (params: {
|
|
|
3812
3983
|
};
|
|
3813
3984
|
}>;
|
|
3814
3985
|
declare const createTool: (db: DatabaseClient) => (params: ToolInsert) => Promise<{
|
|
3815
|
-
tenantId: string;
|
|
3816
|
-
projectId: string;
|
|
3817
|
-
id: string;
|
|
3818
3986
|
name: string;
|
|
3819
|
-
|
|
3987
|
+
id: string;
|
|
3988
|
+
createdAt: string;
|
|
3989
|
+
updatedAt: string;
|
|
3990
|
+
headers: Record<string, string> | null;
|
|
3820
3991
|
config: {
|
|
3821
3992
|
type: "mcp";
|
|
3822
3993
|
mcp: ToolMcpConfig;
|
|
3823
3994
|
};
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
|
|
3827
|
-
headers: Record<string, string> | null;
|
|
3995
|
+
description: string | null;
|
|
3996
|
+
projectId: string;
|
|
3997
|
+
tenantId: string;
|
|
3828
3998
|
capabilities: ToolServerCapabilities | null;
|
|
3999
|
+
credentialReferenceId: string | null;
|
|
3829
4000
|
imageUrl: string | null;
|
|
3830
4001
|
lastError: string | null;
|
|
3831
4002
|
}>;
|
|
@@ -3862,32 +4033,32 @@ declare const addToolToAgent: (db: DatabaseClient) => (params: {
|
|
|
3862
4033
|
selectedTools?: string[] | null;
|
|
3863
4034
|
headers?: Record<string, string> | null;
|
|
3864
4035
|
}) => Promise<{
|
|
3865
|
-
tenantId: string;
|
|
3866
|
-
projectId: string;
|
|
3867
4036
|
id: string;
|
|
3868
|
-
agentId: string;
|
|
3869
4037
|
createdAt: string;
|
|
3870
4038
|
updatedAt: string;
|
|
3871
4039
|
headers: Record<string, string> | null;
|
|
3872
|
-
|
|
4040
|
+
projectId: string;
|
|
4041
|
+
tenantId: string;
|
|
4042
|
+
agentId: string;
|
|
3873
4043
|
selectedTools: string[] | null;
|
|
3874
4044
|
subAgentId: string;
|
|
4045
|
+
toolId: string;
|
|
3875
4046
|
}>;
|
|
3876
4047
|
declare const removeToolFromAgent: (db: DatabaseClient) => (params: {
|
|
3877
4048
|
scopes: AgentScopeConfig;
|
|
3878
4049
|
subAgentId: string;
|
|
3879
4050
|
toolId: string;
|
|
3880
4051
|
}) => Promise<{
|
|
3881
|
-
tenantId: string;
|
|
3882
|
-
projectId: string;
|
|
3883
4052
|
id: string;
|
|
3884
|
-
agentId: string;
|
|
3885
4053
|
createdAt: string;
|
|
3886
4054
|
updatedAt: string;
|
|
3887
4055
|
headers: Record<string, string> | null;
|
|
3888
|
-
|
|
4056
|
+
projectId: string;
|
|
4057
|
+
tenantId: string;
|
|
4058
|
+
agentId: string;
|
|
3889
4059
|
selectedTools: string[] | null;
|
|
3890
4060
|
subAgentId: string;
|
|
4061
|
+
toolId: string;
|
|
3891
4062
|
}>;
|
|
3892
4063
|
/**
|
|
3893
4064
|
* Upsert agent-tool relation (create if it doesn't exist, update if it does)
|
|
@@ -3900,16 +4071,16 @@ declare const upsertSubAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
|
3900
4071
|
headers?: Record<string, string> | null;
|
|
3901
4072
|
relationId?: string;
|
|
3902
4073
|
}) => Promise<{
|
|
3903
|
-
tenantId: string;
|
|
3904
|
-
projectId: string;
|
|
3905
4074
|
id: string;
|
|
3906
|
-
agentId: string;
|
|
3907
4075
|
createdAt: string;
|
|
3908
4076
|
updatedAt: string;
|
|
3909
4077
|
headers: Record<string, string> | null;
|
|
3910
|
-
|
|
4078
|
+
projectId: string;
|
|
4079
|
+
tenantId: string;
|
|
4080
|
+
agentId: string;
|
|
3911
4081
|
selectedTools: string[] | null;
|
|
3912
4082
|
subAgentId: string;
|
|
4083
|
+
toolId: string;
|
|
3913
4084
|
}>;
|
|
3914
4085
|
/**
|
|
3915
4086
|
* Upsert a tool (create if it doesn't exist, update if it does)
|
|
@@ -3917,24 +4088,37 @@ declare const upsertSubAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
|
3917
4088
|
declare const upsertTool: (db: DatabaseClient) => (params: {
|
|
3918
4089
|
data: ToolInsert;
|
|
3919
4090
|
}) => Promise<{
|
|
3920
|
-
tenantId: string;
|
|
3921
|
-
projectId: string;
|
|
3922
|
-
id: string;
|
|
3923
4091
|
name: string;
|
|
3924
|
-
|
|
4092
|
+
id: string;
|
|
4093
|
+
createdAt: string;
|
|
4094
|
+
updatedAt: string;
|
|
4095
|
+
headers: Record<string, string> | null;
|
|
3925
4096
|
config: {
|
|
3926
4097
|
type: "mcp";
|
|
3927
4098
|
mcp: ToolMcpConfig;
|
|
3928
4099
|
};
|
|
3929
|
-
|
|
3930
|
-
|
|
3931
|
-
|
|
3932
|
-
headers: Record<string, string> | null;
|
|
4100
|
+
description: string | null;
|
|
4101
|
+
projectId: string;
|
|
4102
|
+
tenantId: string;
|
|
3933
4103
|
capabilities: ToolServerCapabilities | null;
|
|
4104
|
+
credentialReferenceId: string | null;
|
|
3934
4105
|
imageUrl: string | null;
|
|
3935
4106
|
lastError: string | null;
|
|
3936
4107
|
}>;
|
|
3937
4108
|
|
|
4109
|
+
/**
|
|
4110
|
+
* User data access layer
|
|
4111
|
+
* All database queries for Better Auth's user table
|
|
4112
|
+
*/
|
|
4113
|
+
/**
|
|
4114
|
+
* Get user by ID
|
|
4115
|
+
*/
|
|
4116
|
+
declare const getUserById: (db: DatabaseClient) => (userId: string) => Promise<User | null>;
|
|
4117
|
+
/**
|
|
4118
|
+
* Get user by email
|
|
4119
|
+
*/
|
|
4120
|
+
declare const getUserByEmail: (db: DatabaseClient) => (email: string) => Promise<User | null>;
|
|
4121
|
+
|
|
3938
4122
|
/**
|
|
3939
4123
|
* Validates that a project exists before performing database operations
|
|
3940
4124
|
* This provides runtime validation even when foreign key constraints are not enforced
|
|
@@ -3951,6 +4135,32 @@ declare const withProjectValidation: <T extends (...args: any[]) => Promise<any>
|
|
|
3951
4135
|
*/
|
|
3952
4136
|
declare const createValidatedDataAccess: <T extends Record<string, any>>(db: DatabaseClient, dataAccessFunctions: T) => T;
|
|
3953
4137
|
|
|
4138
|
+
/**
|
|
4139
|
+
* Creates a test database client using an in-memory PostgreSQL database (PGlite)
|
|
4140
|
+
* This provides real database operations for integration testing with perfect isolation
|
|
4141
|
+
* Each call creates a fresh database with all migrations applied
|
|
4142
|
+
*/
|
|
4143
|
+
declare function createTestDatabaseClient(drizzleDir?: string): Promise<DatabaseClient>;
|
|
4144
|
+
/**
|
|
4145
|
+
* Cleans up test database by removing all data but keeping schema
|
|
4146
|
+
* Dynamically gets all tables from the public schema and truncates them
|
|
4147
|
+
*/
|
|
4148
|
+
declare function cleanupTestDatabase(db: DatabaseClient): Promise<void>;
|
|
4149
|
+
/**
|
|
4150
|
+
* Closes the test database and removes the file
|
|
4151
|
+
*/
|
|
4152
|
+
declare function closeTestDatabase(db: DatabaseClient): Promise<void>;
|
|
4153
|
+
/**
|
|
4154
|
+
* Creates a test organization in the database
|
|
4155
|
+
* This is a helper for tests that need organization records before creating projects/agents
|
|
4156
|
+
*/
|
|
4157
|
+
declare function createTestOrganization(db: DatabaseClient, tenantId: string): Promise<void>;
|
|
4158
|
+
/**
|
|
4159
|
+
* Creates a test project in the database
|
|
4160
|
+
* Ensures the organization exists first
|
|
4161
|
+
*/
|
|
4162
|
+
declare function createTestProject(db: DatabaseClient, tenantId: string, projectId?: string): Promise<void>;
|
|
4163
|
+
|
|
3954
4164
|
declare const loadEnvironmentFiles: () => void;
|
|
3955
4165
|
|
|
3956
4166
|
declare const HTTP_REQUEST_PARTS: readonly ["headers"];
|
|
@@ -4680,4 +4890,4 @@ declare function setSpanWithError(span: Span, error: Error, logger?: {
|
|
|
4680
4890
|
*/
|
|
4681
4891
|
declare function getTracer(serviceName: string, serviceVersion?: string): Tracer;
|
|
4682
4892
|
|
|
4683
|
-
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, agentHasArtifactComponents, apiFetch, associateArtifactComponentWithAgent, associateDataComponentWithAgent, cleanupTenantCache, clearContextConfigCache, clearConversationCache, commonCreateErrorResponses, commonDeleteErrorResponses, commonGetErrorResponses, commonUpdateErrorResponses, contextConfig, contextValidationMiddleware, countApiKeys, countArtifactComponents, countArtifactComponentsForAgent, countContextConfigs, countCredentialReferences, countDataComponents, countExternalAgents, countLedgerArtifactsByTask, countMessagesByConversation, countProjects, createAgent, createAgentToolRelation, createApiError, createApiKey, createArtifactComponent, createContextConfig, createConversation, createCredentialReference, createDataComponent, createDatabaseClient, createDefaultCredentialStores, createExecutionContext, createExternalAgent, createFullAgentServerSide, createFullProjectServerSide, createFunctionTool, createKeyChainStore, createMessage, createNangoCredentialStore, createOrGetConversation, createProject, createSubAgent, createSubAgentExternalAgentRelation, createSubAgentRelation, createSubAgentTeamAgentRelation, createTask, createTool, createValidatedDataAccess, dbResultToMcpTool, deleteAgent, deleteAgentArtifactComponentRelationByAgent, deleteAgentDataComponentRelationByAgent, deleteAgentRelationsByAgent, deleteAgentToolRelation, deleteAgentToolRelationByAgent, deleteApiKey, deleteArtifactComponent, deleteContextConfig, deleteConversation, deleteCredentialReference, deleteDataComponent, deleteExternalAgent, deleteFullAgent, deleteFullProject, deleteFunction, deleteFunctionTool, deleteLedgerArtifactsByContext, deleteLedgerArtifactsByTask, deleteMessage, deleteProject, deleteSubAgent, 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, getProject, getProjectResourceCounts, getRelatedAgentsForAgent, getRequestExecutionContext, getSubAgentById, getSubAgentExternalAgentRelationById, getSubAgentExternalAgentRelationByParams, getSubAgentExternalAgentRelations, getSubAgentExternalAgentRelationsByAgent, getSubAgentExternalAgentRelationsByExternalAgent, getSubAgentRelationsByTarget, getSubAgentTeamAgentRelationById, getSubAgentTeamAgentRelationByParams, getSubAgentTeamAgentRelations, getSubAgentTeamAgentRelationsByAgent, getSubAgentTeamAgentRelationsByTeamAgent, getSubAgentsByIds, getSubAgentsForExternalAgent, getSubAgentsForTeamAgent, getTask, getTeamAgentsForSubAgent, getToolById, getToolsForAgent, getTracer, getVisibleMessages, handleApiError, handleContextConfigChange, handleContextResolution, hasApiKey, hasContextConfig, hasCredentialReference, hashApiKey, headers, invalidateHeadersCache, invalidateInvocationDefinitionsCache, isApiKeyExpired, isArtifactComponentAssociatedWithAgent, isDataComponentAssociatedWithAgent, isValidHttpRequest, listAgentRelations, listAgentToolRelations, listAgents, listAgentsPaginated, listApiKeys, listApiKeysPaginated, listArtifactComponents, listArtifactComponentsPaginated, listContextConfigs, listContextConfigsPaginated, listConversations, listCredentialReferences, listCredentialReferencesPaginated, listDataComponents, listDataComponentsPaginated, listExternalAgents, listExternalAgentsPaginated, listFunctionTools, listFunctions, listMessages, listProjects, listProjectsPaginated, 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 };
|
|
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 };
|