@inkeep/agents-core 0.35.0 → 0.35.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client-exports.d.cts +5 -5
- package/dist/client-exports.d.ts +5 -5
- package/dist/db/schema.d.cts +2 -2
- package/dist/db/schema.d.ts +2 -2
- package/dist/index.d.cts +246 -246
- package/dist/index.d.ts +246 -246
- package/dist/index.js +1 -1
- package/dist/{schema-DQBYINXB.d.cts → schema-BWd551GM.d.ts} +1 -1
- package/dist/{schema-DlcSfZRM.d.ts → schema-D4WR42em.d.cts} +1 -1
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/{utility-Ct1UMzr_.d.cts → utility-DbltUp2Q.d.cts} +295 -295
- package/dist/{utility-Ct1UMzr_.d.ts → utility-DbltUp2Q.d.ts} +295 -295
- package/dist/validation/index.d.cts +2 -2
- package/dist/validation/index.d.ts +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2,14 +2,14 @@ export { ANTHROPIC_MODELS, AnthropicModel, GOOGLE_MODELS, GoogleModel, ModelName
|
|
|
2
2
|
import { r as PinoLogger, s as getLogger } from './auth-detection-CGqhPDnj.js';
|
|
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.js';
|
|
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, 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-
|
|
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_.js';
|
|
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-DbltUp2Q.js';
|
|
6
|
+
export { ba as A2AError, bG as A2ARequest, bH as A2AResponse, aL as APIKeySecurityScheme, bV as AgentApiInsert, e2 as AgentApiInsertSchema, bU as AgentApiSelect, e1 as AgentApiSelectSchema, bW as AgentApiUpdate, e3 as AgentApiUpdateSchema, aH as AgentCapabilities, aV as AgentCard, dx as AgentConversationHistoryConfig, d$ as AgentInsertSchema, gM as AgentListResponse, aI as AgentProvider, gw as AgentResponse, d_ as AgentSelectSchema, aJ as AgentSkill, e as AgentStopWhen, b as AgentStopWhenSchema, e0 as AgentUpdateSchema, h3 as AgentWithinContextOfProjectResponse, gg as AgentWithinContextOfProjectSchema, f6 as AllAgentSchema, cP as AllAgentSelect, cT as ApiKeyApiCreationResponse, fb as ApiKeyApiCreationResponseSchema, cR as ApiKeyApiInsert, fc as ApiKeyApiInsertSchema, cQ as ApiKeyApiSelect, fa as ApiKeyApiSelectSchema, cS as ApiKeyApiUpdate, A as ApiKeyApiUpdateSchema, f8 as ApiKeyInsertSchema, gQ as ApiKeyListResponse, gA as ApiKeyResponse, f7 as ApiKeySelectSchema, f9 as ApiKeyUpdateSchema, cE as ArtifactComponentApiInsert, eU as ArtifactComponentApiInsertSchema, cD as ArtifactComponentApiSelect, eT as ArtifactComponentApiSelectSchema, cF as ArtifactComponentApiUpdate, eV as ArtifactComponentApiUpdateSchema, hd as ArtifactComponentArrayResponse, eR as ArtifactComponentInsertSchema, gV as ArtifactComponentListResponse, gF as ArtifactComponentResponse, eQ as ArtifactComponentSelectSchema, eS as ArtifactComponentUpdateSchema, aO as AuthorizationCodeOAuthFlow, dg as CanDelegateToExternalAgent, df as CanUseItem, gc as CanUseItemSchema, bq as CancelTaskRequest, bB as CancelTaskResponse, bA as CancelTaskSuccessResponse, aP as ClientCredentialsOAuthFlow, h5 as ComponentAssociationListResponse, fo as ComponentAssociationSchema, b8 as ContentTypeNotSupportedError, cs as ContextCacheApiInsert, eB as ContextCacheApiInsertSchema, cr as ContextCacheApiSelect, eA as ContextCacheApiSelectSchema, ct as ContextCacheApiUpdate, eC as ContextCacheApiUpdateSchema, dy as ContextCacheEntry, ey as ContextCacheInsertSchema, ex as ContextCacheSelectSchema, cq as ContextCacheUpdate, ez as ContextCacheUpdateSchema, cm as ContextConfigApiInsert, fM as ContextConfigApiInsertSchema, cl as ContextConfigApiSelect, fL as ContextConfigApiSelectSchema, cn as ContextConfigApiUpdate, fN as ContextConfigApiUpdateSchema, fJ as ContextConfigInsertSchema, gP as ContextConfigListResponse, gz as ContextConfigResponse, fI as ContextConfigSelectSchema, fK as ContextConfigUpdateSchema, cf as ConversationApiInsert, ep as ConversationApiInsertSchema, ce as ConversationApiSelect, eo as ConversationApiSelectSchema, cg as ConversationApiUpdate, eq as ConversationApiUpdateSchema, em as ConversationInsertSchema, gY as ConversationListResponse, gI as ConversationResponse, dw as ConversationScopeOptions, el as ConversationSelectSchema, en as ConversationUpdateSchema, fl as CreateCredentialInStoreRequestSchema, fm as CreateCredentialInStoreResponseSchema, fh as CredentialReferenceApiInsertSchema, cU as CredentialReferenceApiSelect, fg as CredentialReferenceApiSelectSchema, cV as CredentialReferenceApiUpdate, fi as CredentialReferenceApiUpdateSchema, fe as CredentialReferenceInsertSchema, gR as CredentialReferenceListResponse, gB as CredentialReferenceResponse, fd as CredentialReferenceSelectSchema, ff as CredentialReferenceUpdateSchema, fk as CredentialStoreListResponseSchema, fj as CredentialStoreSchema, cv as DataComponentApiInsert, eI as DataComponentApiInsertSchema, cu as DataComponentApiSelect, eH as DataComponentApiSelectSchema, cw as DataComponentApiUpdate, eJ as DataComponentApiUpdateSchema, hc as DataComponentArrayResponse, eF as DataComponentBaseSchema, eE as DataComponentInsertSchema, gU as DataComponentListResponse, gE as DataComponentResponse, eD as DataComponentSelectSchema, eG as DataComponentUpdateSchema, aF as DataPart, gk as ErrorResponseSchema, gl as ExistsResponseSchema, cN as ExternalAgentApiInsert, f4 as ExternalAgentApiInsertSchema, cM as ExternalAgentApiSelect, f3 as ExternalAgentApiSelectSchema, cO as ExternalAgentApiUpdate, f5 as ExternalAgentApiUpdateSchema, f1 as ExternalAgentInsertSchema, gO as ExternalAgentListResponse, gy as ExternalAgentResponse, f0 as ExternalAgentSelectSchema, f2 as ExternalAgentUpdateSchema, bT as ExternalSubAgentRelationApiInsert, dZ as ExternalSubAgentRelationApiInsertSchema, bS as ExternalSubAgentRelationInsert, dY as ExternalSubAgentRelationInsertSchema, cp as FetchConfig, fG as FetchConfigSchema, co as FetchDefinition, fH as FetchDefinitionSchema, aB as FileBase, aE as FilePart, aC as FileWithBytes, aD as FileWithUri, de as FullAgentAgentInsert, a as FullAgentAgentInsertSchema, h2 as FullProjectDefinitionResponse, gt as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, cb as FunctionApiSelect, j as FunctionApiSelectSchema, cc as FunctionApiUpdate, k as FunctionApiUpdateSchema, c9 as FunctionInsert, fE as FunctionInsertSchema, gS as FunctionListResponse, gC as FunctionResponse, c8 as FunctionSelect, fD as FunctionSelectSchema, fB as FunctionToolApiInsertSchema, cd as FunctionToolApiSelect, fA as FunctionToolApiSelectSchema, fC as FunctionToolApiUpdateSchema, dK as FunctionToolConfig, dJ as FunctionToolConfigSchema, fy as FunctionToolInsertSchema, gT as FunctionToolListResponse, gD as FunctionToolResponse, fx as FunctionToolSelectSchema, fz as FunctionToolUpdateSchema, ca as FunctionUpdate, fF as FunctionUpdateSchema, bs as GetTaskPushNotificationConfigRequest, bF as GetTaskPushNotificationConfigResponse, bE as GetTaskPushNotificationConfigSuccessResponse, bp as GetTaskRequest, bz as GetTaskResponse, by as GetTaskSuccessResponse, aM as HTTPAuthSecurityScheme, he as HeadersScopeSchema, aQ as ImplicitOAuthFlow, b3 as InternalError, b9 as InvalidAgentResponseError, b2 as InvalidParamsError, b0 as InvalidRequestError, a$ as JSONParseError, bk as JSONRPCError, bm as JSONRPCErrorResponse, bi as JSONRPCMessage, bj as JSONRPCRequest, bl as JSONRPCResult, dc as LedgerArtifactApiInsert, g8 as LedgerArtifactApiInsertSchema, db as LedgerArtifactApiSelect, g7 as LedgerArtifactApiSelectSchema, dd as LedgerArtifactApiUpdate, g9 as LedgerArtifactApiUpdateSchema, d9 as LedgerArtifactInsert, g5 as LedgerArtifactInsertSchema, g4 as LedgerArtifactSelectSchema, da as LedgerArtifactUpdate, g6 as LedgerArtifactUpdateSchema, gi as ListResponseSchema, dG as MCPServerType, fs as MCPToolConfigSchema, dz as McpAuthType, dA as McpServerAuth, dC as McpServerCapabilities, dD as McpToolDefinition, ei as McpToolDefinitionSchema, h7 as McpToolListResponse, h6 as McpToolResponse, fr as McpToolSchema, dB as McpTransportConfig, eg as McpTransportConfigSchema, aW as Message, cj as MessageApiInsert, ev as MessageApiInsertSchema, ci as MessageApiSelect, eu as MessageApiSelectSchema, ck as MessageApiUpdate, ew as MessageApiUpdateSchema, es as MessageInsertSchema, gZ as MessageListResponse, dr as MessageMode, bI as MessagePart, gJ as MessageResponse, dq as MessageRole, ch as MessageSelect, er as MessageSelectSchema, bg as MessageSendConfiguration, bh as MessageSendParams, dp as MessageType, et as MessageUpdateSchema, b1 as MethodNotFoundError, dH as ModelSchema, g as ModelSettings, M as ModelSettingsSchema, ds as Models, aS as OAuth2SecurityScheme, fq as OAuthCallbackQuerySchema, aN as OAuthFlows, fp as OAuthLoginQuerySchema, aT as OpenIdConnectSecurityScheme, dm as Pagination, hn as PaginationQueryParamsSchema, gh as PaginationSchema, P as Part, az as PartBase, aR as PasswordOAuthFlow, dk as ProjectApiInsert, gr as ProjectApiInsertSchema, dj as ProjectApiSelect, gq as ProjectApiSelectSchema, dl as ProjectApiUpdate, gs as ProjectApiUpdateSchema, go as ProjectInsertSchema, gK as ProjectListResponse, dI as ProjectModelSchema, dt as ProjectModels, gu as ProjectResponse, gn as ProjectSelectSchema, gp as ProjectUpdateSchema, bb as PushNotificationAuthenticationInfo, bc as PushNotificationConfig, b6 as PushNotificationNotSupportedError, h4 as RelatedAgentInfoListResponse, fn as RelatedAgentInfoSchema, gm as RemovedResponseSchema, aU as SecurityScheme, aK as SecuritySchemeBase, bn as SendMessageRequest, bv as SendMessageResponse, bu as SendMessageSuccessResponse, bo as SendStreamingMessageRequest, bx as SendStreamingMessageResponse, bw as SendStreamingMessageSuccessResponse, br as SetTaskPushNotificationConfigRequest, bD as SetTaskPushNotificationConfigResponse, bC as SetTaskPushNotificationConfigSuccessResponse, gj as SingleResponseSchema, dv as StatusComponent, ga as StatusComponentSchema, gb as StatusUpdateSchema, du as StatusUpdateSettings, d as StopWhen, S as StopWhenSchema, bL as SubAgentApiInsert, dP as SubAgentApiInsertSchema, bK as SubAgentApiSelect, dO as SubAgentApiSelectSchema, bM as SubAgentApiUpdate, dQ as SubAgentApiUpdateSchema, cK as SubAgentArtifactComponentApiInsert, e_ as SubAgentArtifactComponentApiInsertSchema, cJ as SubAgentArtifactComponentApiSelect, eZ as SubAgentArtifactComponentApiSelectSchema, cL as SubAgentArtifactComponentApiUpdate, e$ as SubAgentArtifactComponentApiUpdateSchema, cH as SubAgentArtifactComponentInsert, eX as SubAgentArtifactComponentInsertSchema, h1 as SubAgentArtifactComponentListResponse, g$ as SubAgentArtifactComponentResponse, cG as SubAgentArtifactComponentSelect, eW as SubAgentArtifactComponentSelectSchema, cI as SubAgentArtifactComponentUpdate, eY as SubAgentArtifactComponentUpdateSchema, cB as SubAgentDataComponentApiInsert, eO as SubAgentDataComponentApiInsertSchema, cA as SubAgentDataComponentApiSelect, eN as SubAgentDataComponentApiSelectSchema, cC as SubAgentDataComponentApiUpdate, eP as SubAgentDataComponentApiUpdateSchema, cy as SubAgentDataComponentInsert, eL as SubAgentDataComponentInsertSchema, h0 as SubAgentDataComponentListResponse, g_ as SubAgentDataComponentResponse, cx as SubAgentDataComponentSelect, eK as SubAgentDataComponentSelectSchema, cz as SubAgentDataComponentUpdate, eM as SubAgentDataComponentUpdateSchema, dh as SubAgentDefinition, d2 as SubAgentExternalAgentRelationApiInsert, fY as SubAgentExternalAgentRelationApiInsertSchema, d1 as SubAgentExternalAgentRelationApiSelect, fX as SubAgentExternalAgentRelationApiSelectSchema, d3 as SubAgentExternalAgentRelationApiUpdate, fZ as SubAgentExternalAgentRelationApiUpdateSchema, fV as SubAgentExternalAgentRelationInsertSchema, hb as SubAgentExternalAgentRelationListResponse, ha as SubAgentExternalAgentRelationResponse, c$ as SubAgentExternalAgentRelationSelect, fU as SubAgentExternalAgentRelationSelectSchema, d0 as SubAgentExternalAgentRelationUpdate, fW as SubAgentExternalAgentRelationUpdateSchema, dM as SubAgentInsertSchema, gL as SubAgentListResponse, bP as SubAgentRelationApiInsert, dV as SubAgentRelationApiInsertSchema, bO as SubAgentRelationApiSelect, dU as SubAgentRelationApiSelectSchema, bQ as SubAgentRelationApiUpdate, dW as SubAgentRelationApiUpdateSchema, dS as SubAgentRelationInsertSchema, gW as SubAgentRelationListResponse, bR as SubAgentRelationQuery, dX as SubAgentRelationQuerySchema, gG as SubAgentRelationResponse, bN as SubAgentRelationSelect, dR as SubAgentRelationSelectSchema, dT as SubAgentRelationUpdateSchema, gv as SubAgentResponse, dL as SubAgentSelectSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema, d7 as SubAgentTeamAgentRelationApiInsert, g2 as SubAgentTeamAgentRelationApiInsertSchema, d6 as SubAgentTeamAgentRelationApiSelect, g1 as SubAgentTeamAgentRelationApiSelectSchema, d8 as SubAgentTeamAgentRelationApiUpdate, g3 as SubAgentTeamAgentRelationApiUpdateSchema, f$ as SubAgentTeamAgentRelationInsertSchema, h9 as SubAgentTeamAgentRelationListResponse, h8 as SubAgentTeamAgentRelationResponse, d4 as SubAgentTeamAgentRelationSelect, f_ as SubAgentTeamAgentRelationSelectSchema, d5 as SubAgentTeamAgentRelationUpdate, g0 as SubAgentTeamAgentRelationUpdateSchema, cZ as SubAgentToolRelationApiInsert, fS as SubAgentToolRelationApiInsertSchema, cY as SubAgentToolRelationApiSelect, fR as SubAgentToolRelationApiSelectSchema, c_ as SubAgentToolRelationApiUpdate, fT as SubAgentToolRelationApiUpdateSchema, cX as SubAgentToolRelationInsert, fP as SubAgentToolRelationInsertSchema, gX as SubAgentToolRelationListResponse, gH as SubAgentToolRelationResponse, cW as SubAgentToolRelationSelect, fO as SubAgentToolRelationSelectSchema, fQ as SubAgentToolRelationUpdateSchema, dN as SubAgentUpdateSchema, dn as SummaryEvent, dE as TOOL_STATUS_VALUES, aY as Task, bZ as TaskApiInsert, e8 as TaskApiInsertSchema, bY as TaskApiSelect, e7 as TaskApiSelectSchema, b_ as TaskApiUpdate, e9 as TaskApiUpdateSchema, bJ as TaskArtifact, a_ as TaskArtifactUpdateEvent, be as TaskIdParams, e5 as TaskInsertSchema, b5 as TaskNotCancelableError, b4 as TaskNotFoundError, bd as TaskPushNotificationConfig, bf as TaskQueryParams, c3 as TaskRelationApiInsert, ee as TaskRelationApiInsertSchema, c2 as TaskRelationApiSelect, ed as TaskRelationApiSelectSchema, c4 as TaskRelationApiUpdate, ef as TaskRelationApiUpdateSchema, c0 as TaskRelationInsert, eb as TaskRelationInsertSchema, b$ as TaskRelationSelect, ea as TaskRelationSelectSchema, c1 as TaskRelationUpdate, ec as TaskRelationUpdateSchema, bt as TaskResubscriptionRequest, e4 as TaskSelectSchema, aG as TaskState, aX as TaskStatus, aZ as TaskStatusUpdateEvent, bX as TaskUpdate, e6 as TaskUpdateSchema, gf as TeamAgentSchema, hg as TenantIdParamsSchema, hf as TenantParamsSchema, hk as TenantProjectAgentIdParamsSchema, hj as TenantProjectAgentParamsSchema, hm as TenantProjectAgentSubAgentIdParamsSchema, hl as TenantProjectAgentSubAgentParamsSchema, hi as TenantProjectIdParamsSchema, hh as TenantProjectParamsSchema, aA as TextPart, c6 as ToolApiInsert, fv as ToolApiInsertSchema, c5 as ToolApiSelect, fu as ToolApiSelectSchema, c7 as ToolApiUpdate, fw as ToolApiUpdateSchema, di as ToolDefinition, ek as ToolInsertSchema, gN as ToolListResponse, gx as ToolResponse, ej as ToolSelectSchema, eh as ToolStatusSchema, ft as ToolUpdateSchema, b7 as UnsupportedOperationError, dF as VALID_RELATION_TYPES, gd as canDelegateToExternalAgentSchema, ge as canDelegateToTeamAgentSchema } from './utility-DbltUp2Q.js';
|
|
7
7
|
import { CredentialStore } from './types/index.js';
|
|
8
8
|
export { CorsConfig, ServerConfig, ServerOptions } from './types/index.js';
|
|
9
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 { 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-
|
|
11
|
+
import { s as schema } from './schema-BWd551GM.js';
|
|
12
|
+
export { Z as account, G as agentRelations, J as agentToolRelationsRelations, a as agents, y as apiKeys, I as apiKeysRelations, j as artifactComponents, O as artifactComponentsRelations, b as contextCache, E as contextCacheRelations, c as contextConfigs, D as contextConfigsRelations, v as conversations, M as conversationsRelations, z as credentialReferences, K as credentialReferencesRelations, h as dataComponents, Q as dataComponentsRelations, f as externalAgents, H as externalAgentsRelations, m as functionTools, V as functionToolsRelations, n as functions, T as functionsRelations, _ as invitation, x as ledgerArtifacts, S as ledgerArtifactsRelations, $ as member, w as messages, N as messagesRelations, a0 as organization, p as projects, B as projectsRelations, a1 as session, a2 as ssoProvider, k as subAgentArtifactComponents, P as subAgentArtifactComponentsRelations, i as subAgentDataComponents, R as subAgentDataComponentsRelations, q as subAgentExternalAgentRelations, X as subAgentExternalAgentRelationsRelations, u as subAgentFunctionToolRelations, W as subAgentFunctionToolRelationsRelations, e as subAgentRelations, U as subAgentRelationsRelations, r as subAgentTeamAgentRelations, Y as subAgentTeamAgentRelationsRelations, o as subAgentToolRelations, d as subAgents, F as subAgentsRelations, g as taskRelations, C as taskRelationsRelations, t as tasks, A as tasksRelations, l as tools, L as toolsRelations, a3 as user, a4 as verification } from './schema-BWd551GM.js';
|
|
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';
|
|
@@ -847,13 +847,14 @@ declare const deleteFullAgent: (db: DatabaseClient, logger?: AgentLogger) => (pa
|
|
|
847
847
|
declare const getAgentById: (db: DatabaseClient) => (params: {
|
|
848
848
|
scopes: AgentScopeConfig;
|
|
849
849
|
}) => Promise<{
|
|
850
|
-
|
|
850
|
+
tenantId: string;
|
|
851
|
+
projectId: string;
|
|
851
852
|
id: string;
|
|
853
|
+
name: string;
|
|
854
|
+
description: string | null;
|
|
855
|
+
prompt: string | null;
|
|
852
856
|
createdAt: string;
|
|
853
857
|
updatedAt: string;
|
|
854
|
-
description: string | null;
|
|
855
|
-
projectId: string;
|
|
856
|
-
tenantId: string;
|
|
857
858
|
models: {
|
|
858
859
|
base?: {
|
|
859
860
|
model?: string | undefined;
|
|
@@ -873,7 +874,6 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
|
|
|
873
874
|
} | null;
|
|
874
875
|
defaultSubAgentId: string | null;
|
|
875
876
|
contextConfigId: string | null;
|
|
876
|
-
prompt: string | null;
|
|
877
877
|
statusUpdates: {
|
|
878
878
|
enabled?: boolean | undefined;
|
|
879
879
|
numEvents?: number | undefined;
|
|
@@ -893,13 +893,14 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
|
|
|
893
893
|
declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
|
|
894
894
|
scopes: AgentScopeConfig;
|
|
895
895
|
}) => Promise<{
|
|
896
|
-
|
|
896
|
+
tenantId: string;
|
|
897
|
+
projectId: string;
|
|
897
898
|
id: string;
|
|
899
|
+
name: string;
|
|
900
|
+
description: string | null;
|
|
901
|
+
prompt: string | null;
|
|
898
902
|
createdAt: string;
|
|
899
903
|
updatedAt: string;
|
|
900
|
-
description: string | null;
|
|
901
|
-
projectId: string;
|
|
902
|
-
tenantId: string;
|
|
903
904
|
models: {
|
|
904
905
|
base?: {
|
|
905
906
|
model?: string | undefined;
|
|
@@ -919,7 +920,6 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
|
|
|
919
920
|
} | null;
|
|
920
921
|
defaultSubAgentId: string | null;
|
|
921
922
|
contextConfigId: string | null;
|
|
922
|
-
prompt: string | null;
|
|
923
923
|
statusUpdates: {
|
|
924
924
|
enabled?: boolean | undefined;
|
|
925
925
|
numEvents?: number | undefined;
|
|
@@ -936,13 +936,15 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
|
|
|
936
936
|
}[] | undefined;
|
|
937
937
|
} | null;
|
|
938
938
|
defaultSubAgent: {
|
|
939
|
-
|
|
939
|
+
tenantId: string;
|
|
940
|
+
projectId: string;
|
|
940
941
|
id: string;
|
|
942
|
+
name: string;
|
|
943
|
+
description: string;
|
|
944
|
+
prompt: string;
|
|
945
|
+
agentId: string;
|
|
941
946
|
createdAt: string;
|
|
942
947
|
updatedAt: string;
|
|
943
|
-
description: string;
|
|
944
|
-
projectId: string;
|
|
945
|
-
tenantId: string;
|
|
946
948
|
models: {
|
|
947
949
|
base?: {
|
|
948
950
|
model?: string | undefined;
|
|
@@ -960,21 +962,20 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
|
|
|
960
962
|
stopWhen: {
|
|
961
963
|
stepCountIs?: number | undefined;
|
|
962
964
|
} | null;
|
|
963
|
-
agentId: string;
|
|
964
|
-
prompt: string;
|
|
965
965
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
966
966
|
} | null;
|
|
967
967
|
} | null>;
|
|
968
968
|
declare const listAgents: (db: DatabaseClient) => (params: {
|
|
969
969
|
scopes: ProjectScopeConfig;
|
|
970
970
|
}) => Promise<{
|
|
971
|
-
|
|
971
|
+
tenantId: string;
|
|
972
|
+
projectId: string;
|
|
972
973
|
id: string;
|
|
974
|
+
name: string;
|
|
975
|
+
description: string | null;
|
|
976
|
+
prompt: string | null;
|
|
973
977
|
createdAt: string;
|
|
974
978
|
updatedAt: string;
|
|
975
|
-
description: string | null;
|
|
976
|
-
projectId: string;
|
|
977
|
-
tenantId: string;
|
|
978
979
|
models: {
|
|
979
980
|
base?: {
|
|
980
981
|
model?: string | undefined;
|
|
@@ -994,7 +995,6 @@ declare const listAgents: (db: DatabaseClient) => (params: {
|
|
|
994
995
|
} | null;
|
|
995
996
|
defaultSubAgentId: string | null;
|
|
996
997
|
contextConfigId: string | null;
|
|
997
|
-
prompt: string | null;
|
|
998
998
|
statusUpdates: {
|
|
999
999
|
enabled?: boolean | undefined;
|
|
1000
1000
|
numEvents?: number | undefined;
|
|
@@ -1067,13 +1067,14 @@ declare const listAgentsPaginated: (db: DatabaseClient) => (params: {
|
|
|
1067
1067
|
};
|
|
1068
1068
|
}>;
|
|
1069
1069
|
declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promise<{
|
|
1070
|
-
|
|
1070
|
+
tenantId: string;
|
|
1071
|
+
projectId: string;
|
|
1071
1072
|
id: string;
|
|
1073
|
+
name: string;
|
|
1074
|
+
description: string | null;
|
|
1075
|
+
prompt: string | null;
|
|
1072
1076
|
createdAt: string;
|
|
1073
1077
|
updatedAt: string;
|
|
1074
|
-
description: string | null;
|
|
1075
|
-
projectId: string;
|
|
1076
|
-
tenantId: string;
|
|
1077
1078
|
models: {
|
|
1078
1079
|
base?: {
|
|
1079
1080
|
model?: string | undefined;
|
|
@@ -1093,7 +1094,6 @@ declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promis
|
|
|
1093
1094
|
} | null;
|
|
1094
1095
|
defaultSubAgentId: string | null;
|
|
1095
1096
|
contextConfigId: string | null;
|
|
1096
|
-
prompt: string | null;
|
|
1097
1097
|
statusUpdates: {
|
|
1098
1098
|
enabled?: boolean | undefined;
|
|
1099
1099
|
numEvents?: number | undefined;
|
|
@@ -1194,49 +1194,49 @@ declare const getApiKeyById: (db: DatabaseClient) => (params: {
|
|
|
1194
1194
|
scopes: ProjectScopeConfig;
|
|
1195
1195
|
id: string;
|
|
1196
1196
|
}) => Promise<{
|
|
1197
|
-
name: string | null;
|
|
1198
|
-
id: string;
|
|
1199
|
-
createdAt: string;
|
|
1200
|
-
updatedAt: string;
|
|
1201
|
-
expiresAt: string | null;
|
|
1202
|
-
projectId: string;
|
|
1203
1197
|
tenantId: string;
|
|
1198
|
+
projectId: string;
|
|
1199
|
+
id: string;
|
|
1200
|
+
name: string | null;
|
|
1204
1201
|
agentId: string;
|
|
1205
1202
|
publicId: string;
|
|
1206
1203
|
keyHash: string;
|
|
1207
1204
|
keyPrefix: string;
|
|
1208
1205
|
lastUsedAt: string | null;
|
|
1209
|
-
|
|
1210
|
-
declare const getApiKeyByPublicId: (db: DatabaseClient) => (publicId: string) => Promise<{
|
|
1211
|
-
name: string | null;
|
|
1212
|
-
id: string;
|
|
1206
|
+
expiresAt: string | null;
|
|
1213
1207
|
createdAt: string;
|
|
1214
1208
|
updatedAt: string;
|
|
1215
|
-
|
|
1216
|
-
|
|
1209
|
+
} | undefined>;
|
|
1210
|
+
declare const getApiKeyByPublicId: (db: DatabaseClient) => (publicId: string) => Promise<{
|
|
1217
1211
|
tenantId: string;
|
|
1212
|
+
projectId: string;
|
|
1213
|
+
id: string;
|
|
1214
|
+
name: string | null;
|
|
1218
1215
|
agentId: string;
|
|
1219
1216
|
publicId: string;
|
|
1220
1217
|
keyHash: string;
|
|
1221
1218
|
keyPrefix: string;
|
|
1222
1219
|
lastUsedAt: string | null;
|
|
1220
|
+
expiresAt: string | null;
|
|
1221
|
+
createdAt: string;
|
|
1222
|
+
updatedAt: string;
|
|
1223
1223
|
} | undefined>;
|
|
1224
1224
|
declare const listApiKeys: (db: DatabaseClient) => (params: {
|
|
1225
1225
|
scopes: ProjectScopeConfig;
|
|
1226
1226
|
agentId?: string;
|
|
1227
1227
|
}) => Promise<{
|
|
1228
|
-
name: string | null;
|
|
1229
|
-
id: string;
|
|
1230
|
-
createdAt: string;
|
|
1231
|
-
updatedAt: string;
|
|
1232
|
-
expiresAt: string | null;
|
|
1233
|
-
projectId: string;
|
|
1234
1228
|
tenantId: string;
|
|
1229
|
+
projectId: string;
|
|
1230
|
+
id: string;
|
|
1231
|
+
name: string | null;
|
|
1235
1232
|
agentId: string;
|
|
1236
1233
|
publicId: string;
|
|
1237
1234
|
keyHash: string;
|
|
1238
1235
|
keyPrefix: string;
|
|
1239
1236
|
lastUsedAt: string | null;
|
|
1237
|
+
expiresAt: string | null;
|
|
1238
|
+
createdAt: string;
|
|
1239
|
+
updatedAt: string;
|
|
1240
1240
|
}[]>;
|
|
1241
1241
|
declare const listApiKeysPaginated: (db: DatabaseClient) => (params: {
|
|
1242
1242
|
scopes: ProjectScopeConfig;
|
|
@@ -1252,18 +1252,18 @@ declare const listApiKeysPaginated: (db: DatabaseClient) => (params: {
|
|
|
1252
1252
|
};
|
|
1253
1253
|
}>;
|
|
1254
1254
|
declare const createApiKey: (db: DatabaseClient) => (params: ApiKeyInsert) => Promise<{
|
|
1255
|
-
name: string | null;
|
|
1256
|
-
id: string;
|
|
1257
|
-
createdAt: string;
|
|
1258
|
-
updatedAt: string;
|
|
1259
|
-
expiresAt: string | null;
|
|
1260
|
-
projectId: string;
|
|
1261
1255
|
tenantId: string;
|
|
1256
|
+
projectId: string;
|
|
1257
|
+
id: string;
|
|
1258
|
+
name: string | null;
|
|
1262
1259
|
agentId: string;
|
|
1263
1260
|
publicId: string;
|
|
1264
1261
|
keyHash: string;
|
|
1265
1262
|
keyPrefix: string;
|
|
1266
1263
|
lastUsedAt: string | null;
|
|
1264
|
+
expiresAt: string | null;
|
|
1265
|
+
createdAt: string;
|
|
1266
|
+
updatedAt: string;
|
|
1267
1267
|
}>;
|
|
1268
1268
|
declare const updateApiKey: (db: DatabaseClient) => (params: {
|
|
1269
1269
|
scopes: ProjectScopeConfig;
|
|
@@ -1310,13 +1310,13 @@ declare const getArtifactComponentById: (db: DatabaseClient) => (params: {
|
|
|
1310
1310
|
scopes: ProjectScopeConfig;
|
|
1311
1311
|
id: string;
|
|
1312
1312
|
}) => Promise<{
|
|
1313
|
-
|
|
1313
|
+
tenantId: string;
|
|
1314
|
+
projectId: string;
|
|
1314
1315
|
id: string;
|
|
1316
|
+
name: string;
|
|
1317
|
+
description: string;
|
|
1315
1318
|
createdAt: string;
|
|
1316
1319
|
updatedAt: string;
|
|
1317
|
-
description: string;
|
|
1318
|
-
projectId: string;
|
|
1319
|
-
tenantId: string;
|
|
1320
1320
|
props: Record<string, unknown> | null;
|
|
1321
1321
|
} | undefined>;
|
|
1322
1322
|
declare const listArtifactComponents: (db: DatabaseClient) => (params: {
|
|
@@ -1344,13 +1344,13 @@ declare const listArtifactComponentsPaginated: (db: DatabaseClient) => (params:
|
|
|
1344
1344
|
};
|
|
1345
1345
|
}>;
|
|
1346
1346
|
declare const createArtifactComponent: (db: DatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
|
|
1347
|
-
|
|
1347
|
+
tenantId: string;
|
|
1348
|
+
projectId: string;
|
|
1348
1349
|
id: string;
|
|
1350
|
+
name: string;
|
|
1351
|
+
description: string;
|
|
1349
1352
|
createdAt: string;
|
|
1350
1353
|
updatedAt: string;
|
|
1351
|
-
description: string;
|
|
1352
|
-
projectId: string;
|
|
1353
|
-
tenantId: string;
|
|
1354
1354
|
props: Record<string, unknown> | null;
|
|
1355
1355
|
}>;
|
|
1356
1356
|
declare const updateArtifactComponent: (db: DatabaseClient) => (params: {
|
|
@@ -1387,11 +1387,11 @@ declare const associateArtifactComponentWithAgent: (db: DatabaseClient) => (para
|
|
|
1387
1387
|
scopes: SubAgentScopeConfig;
|
|
1388
1388
|
artifactComponentId: string;
|
|
1389
1389
|
}) => Promise<{
|
|
1390
|
-
id: string;
|
|
1391
|
-
createdAt: string;
|
|
1392
|
-
projectId: string;
|
|
1393
1390
|
tenantId: string;
|
|
1391
|
+
projectId: string;
|
|
1392
|
+
id: string;
|
|
1394
1393
|
agentId: string;
|
|
1394
|
+
createdAt: string;
|
|
1395
1395
|
subAgentId: string;
|
|
1396
1396
|
artifactComponentId: string;
|
|
1397
1397
|
}>;
|
|
@@ -1430,11 +1430,11 @@ declare const upsertAgentArtifactComponentRelation: (db: DatabaseClient) => (par
|
|
|
1430
1430
|
scopes: SubAgentScopeConfig;
|
|
1431
1431
|
artifactComponentId: string;
|
|
1432
1432
|
}) => Promise<{
|
|
1433
|
-
id: string;
|
|
1434
|
-
createdAt: string;
|
|
1435
|
-
projectId: string;
|
|
1436
1433
|
tenantId: string;
|
|
1434
|
+
projectId: string;
|
|
1435
|
+
id: string;
|
|
1437
1436
|
agentId: string;
|
|
1437
|
+
createdAt: string;
|
|
1438
1438
|
subAgentId: string;
|
|
1439
1439
|
artifactComponentId: string;
|
|
1440
1440
|
} | null>;
|
|
@@ -1514,26 +1514,26 @@ declare const getContextConfigById: (db: DatabaseClient) => (params: {
|
|
|
1514
1514
|
scopes: AgentScopeConfig;
|
|
1515
1515
|
id: string;
|
|
1516
1516
|
}) => Promise<{
|
|
1517
|
+
tenantId: string;
|
|
1518
|
+
projectId: string;
|
|
1517
1519
|
id: string;
|
|
1520
|
+
agentId: string;
|
|
1518
1521
|
createdAt: string;
|
|
1519
1522
|
updatedAt: string;
|
|
1520
|
-
projectId: string;
|
|
1521
|
-
tenantId: string;
|
|
1522
1523
|
headersSchema: unknown;
|
|
1523
1524
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
1524
|
-
agentId: string;
|
|
1525
1525
|
} | undefined>;
|
|
1526
1526
|
declare const listContextConfigs: (db: DatabaseClient) => (params: {
|
|
1527
1527
|
scopes: AgentScopeConfig;
|
|
1528
1528
|
}) => Promise<{
|
|
1529
|
+
tenantId: string;
|
|
1530
|
+
projectId: string;
|
|
1529
1531
|
id: string;
|
|
1532
|
+
agentId: string;
|
|
1530
1533
|
createdAt: string;
|
|
1531
1534
|
updatedAt: string;
|
|
1532
|
-
projectId: string;
|
|
1533
|
-
tenantId: string;
|
|
1534
1535
|
headersSchema: unknown;
|
|
1535
1536
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
1536
|
-
agentId: string;
|
|
1537
1537
|
}[]>;
|
|
1538
1538
|
declare const listContextConfigsPaginated: (db: DatabaseClient) => (params: {
|
|
1539
1539
|
scopes: AgentScopeConfig;
|
|
@@ -1548,14 +1548,14 @@ declare const listContextConfigsPaginated: (db: DatabaseClient) => (params: {
|
|
|
1548
1548
|
};
|
|
1549
1549
|
}>;
|
|
1550
1550
|
declare const createContextConfig: (db: DatabaseClient) => (params: ContextConfigInsert) => Promise<{
|
|
1551
|
+
tenantId: string;
|
|
1552
|
+
projectId: string;
|
|
1551
1553
|
id: string;
|
|
1554
|
+
agentId: string;
|
|
1552
1555
|
createdAt: string;
|
|
1553
1556
|
updatedAt: string;
|
|
1554
|
-
projectId: string;
|
|
1555
|
-
tenantId: string;
|
|
1556
1557
|
headersSchema: unknown;
|
|
1557
1558
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
1558
|
-
agentId: string;
|
|
1559
1559
|
}>;
|
|
1560
1560
|
declare const updateContextConfig: (db: DatabaseClient) => (params: {
|
|
1561
1561
|
scopes: AgentScopeConfig;
|
|
@@ -1588,14 +1588,14 @@ declare const countContextConfigs: (db: DatabaseClient) => (params: {
|
|
|
1588
1588
|
declare const upsertContextConfig: (db: DatabaseClient) => (params: {
|
|
1589
1589
|
data: ContextConfigInsert;
|
|
1590
1590
|
}) => Promise<{
|
|
1591
|
+
tenantId: string;
|
|
1592
|
+
projectId: string;
|
|
1591
1593
|
id: string;
|
|
1594
|
+
agentId: string;
|
|
1592
1595
|
createdAt: string;
|
|
1593
1596
|
updatedAt: string;
|
|
1594
|
-
projectId: string;
|
|
1595
|
-
tenantId: string;
|
|
1596
1597
|
headersSchema: unknown;
|
|
1597
1598
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
1598
|
-
agentId: string;
|
|
1599
1599
|
}>;
|
|
1600
1600
|
|
|
1601
1601
|
declare const listConversations: (db: DatabaseClient) => (params: {
|
|
@@ -1607,14 +1607,14 @@ declare const listConversations: (db: DatabaseClient) => (params: {
|
|
|
1607
1607
|
total: number;
|
|
1608
1608
|
}>;
|
|
1609
1609
|
declare const createConversation: (db: DatabaseClient) => (params: ConversationInsert) => Promise<{
|
|
1610
|
+
tenantId: string;
|
|
1611
|
+
projectId: string;
|
|
1610
1612
|
id: string;
|
|
1613
|
+
title: string | null;
|
|
1611
1614
|
createdAt: string;
|
|
1612
1615
|
updatedAt: string;
|
|
1613
|
-
userId: string | null;
|
|
1614
1616
|
metadata: ConversationMetadata | null;
|
|
1615
|
-
|
|
1616
|
-
projectId: string;
|
|
1617
|
-
tenantId: string;
|
|
1617
|
+
userId: string | null;
|
|
1618
1618
|
activeSubAgentId: string;
|
|
1619
1619
|
lastContextResolution: string | null;
|
|
1620
1620
|
}>;
|
|
@@ -1658,14 +1658,14 @@ declare const getConversation: (db: DatabaseClient) => (params: {
|
|
|
1658
1658
|
scopes: ProjectScopeConfig;
|
|
1659
1659
|
conversationId: string;
|
|
1660
1660
|
}) => Promise<{
|
|
1661
|
+
tenantId: string;
|
|
1662
|
+
projectId: string;
|
|
1661
1663
|
id: string;
|
|
1664
|
+
title: string | null;
|
|
1662
1665
|
createdAt: string;
|
|
1663
1666
|
updatedAt: string;
|
|
1664
|
-
userId: string | null;
|
|
1665
1667
|
metadata: ConversationMetadata | null;
|
|
1666
|
-
|
|
1667
|
-
projectId: string;
|
|
1668
|
-
tenantId: string;
|
|
1668
|
+
userId: string | null;
|
|
1669
1669
|
activeSubAgentId: string;
|
|
1670
1670
|
lastContextResolution: string | null;
|
|
1671
1671
|
} | undefined>;
|
|
@@ -1682,14 +1682,14 @@ declare const createOrGetConversation: (db: DatabaseClient) => (input: Conversat
|
|
|
1682
1682
|
metadata?: ConversationMetadata | null | undefined;
|
|
1683
1683
|
contextConfigId?: string | undefined;
|
|
1684
1684
|
} | {
|
|
1685
|
+
tenantId: string;
|
|
1686
|
+
projectId: string;
|
|
1685
1687
|
id: string;
|
|
1688
|
+
title: string | null;
|
|
1686
1689
|
createdAt: string;
|
|
1687
1690
|
updatedAt: string;
|
|
1688
|
-
userId: string | null;
|
|
1689
1691
|
metadata: ConversationMetadata | null;
|
|
1690
|
-
|
|
1691
|
-
projectId: string;
|
|
1692
|
-
tenantId: string;
|
|
1692
|
+
userId: string | null;
|
|
1693
1693
|
activeSubAgentId: string;
|
|
1694
1694
|
lastContextResolution: string | null;
|
|
1695
1695
|
}>;
|
|
@@ -1708,14 +1708,14 @@ declare const getActiveAgentForConversation: (db: DatabaseClient) => (params: {
|
|
|
1708
1708
|
scopes: ProjectScopeConfig;
|
|
1709
1709
|
conversationId: string;
|
|
1710
1710
|
}) => Promise<{
|
|
1711
|
+
tenantId: string;
|
|
1712
|
+
projectId: string;
|
|
1711
1713
|
id: string;
|
|
1714
|
+
title: string | null;
|
|
1712
1715
|
createdAt: string;
|
|
1713
1716
|
updatedAt: string;
|
|
1714
|
-
userId: string | null;
|
|
1715
1717
|
metadata: ConversationMetadata | null;
|
|
1716
|
-
|
|
1717
|
-
projectId: string;
|
|
1718
|
-
tenantId: string;
|
|
1718
|
+
userId: string | null;
|
|
1719
1719
|
activeSubAgentId: string;
|
|
1720
1720
|
lastContextResolution: string | null;
|
|
1721
1721
|
} | undefined>;
|
|
@@ -1878,11 +1878,11 @@ declare const associateDataComponentWithAgent: (db: DatabaseClient) => (params:
|
|
|
1878
1878
|
scopes: SubAgentScopeConfig;
|
|
1879
1879
|
dataComponentId: string;
|
|
1880
1880
|
}) => Promise<{
|
|
1881
|
-
id: string;
|
|
1882
|
-
createdAt: string;
|
|
1883
|
-
projectId: string;
|
|
1884
1881
|
tenantId: string;
|
|
1882
|
+
projectId: string;
|
|
1883
|
+
id: string;
|
|
1885
1884
|
agentId: string;
|
|
1885
|
+
createdAt: string;
|
|
1886
1886
|
subAgentId: string;
|
|
1887
1887
|
dataComponentId: string;
|
|
1888
1888
|
}>;
|
|
@@ -1920,11 +1920,11 @@ declare const upsertAgentDataComponentRelation: (db: DatabaseClient) => (params:
|
|
|
1920
1920
|
scopes: SubAgentScopeConfig;
|
|
1921
1921
|
dataComponentId: string;
|
|
1922
1922
|
}) => Promise<{
|
|
1923
|
-
id: string;
|
|
1924
|
-
createdAt: string;
|
|
1925
|
-
projectId: string;
|
|
1926
1923
|
tenantId: string;
|
|
1924
|
+
projectId: string;
|
|
1925
|
+
id: string;
|
|
1927
1926
|
agentId: string;
|
|
1927
|
+
createdAt: string;
|
|
1928
1928
|
subAgentId: string;
|
|
1929
1929
|
dataComponentId: string;
|
|
1930
1930
|
} | null>;
|
|
@@ -2099,14 +2099,14 @@ declare const createFunctionTool: (db: DatabaseClient) => (params: {
|
|
|
2099
2099
|
data: FunctionToolApiInsert;
|
|
2100
2100
|
scopes: AgentScopeConfig;
|
|
2101
2101
|
}) => Promise<{
|
|
2102
|
-
|
|
2102
|
+
tenantId: string;
|
|
2103
|
+
projectId: string;
|
|
2103
2104
|
id: string;
|
|
2104
|
-
|
|
2105
|
-
updatedAt: string;
|
|
2105
|
+
name: string;
|
|
2106
2106
|
description: string | null;
|
|
2107
|
-
projectId: string;
|
|
2108
|
-
tenantId: string;
|
|
2109
2107
|
agentId: string;
|
|
2108
|
+
createdAt: string;
|
|
2109
|
+
updatedAt: string;
|
|
2110
2110
|
functionId: string;
|
|
2111
2111
|
}>;
|
|
2112
2112
|
/**
|
|
@@ -2141,14 +2141,14 @@ declare const upsertFunctionTool: (db: DatabaseClient) => (params: {
|
|
|
2141
2141
|
data: FunctionToolApiInsert;
|
|
2142
2142
|
scopes: AgentScopeConfig;
|
|
2143
2143
|
}) => Promise<{
|
|
2144
|
-
|
|
2144
|
+
tenantId: string;
|
|
2145
|
+
projectId: string;
|
|
2145
2146
|
id: string;
|
|
2146
|
-
|
|
2147
|
-
updatedAt: string;
|
|
2147
|
+
name: string;
|
|
2148
2148
|
description: string | null;
|
|
2149
|
-
projectId: string;
|
|
2150
|
-
tenantId: string;
|
|
2151
2149
|
agentId: string;
|
|
2150
|
+
createdAt: string;
|
|
2151
|
+
updatedAt: string;
|
|
2152
2152
|
functionId: string;
|
|
2153
2153
|
}>;
|
|
2154
2154
|
declare const getFunctionToolsForSubAgent: (db: DatabaseClient) => (params: {
|
|
@@ -2278,14 +2278,14 @@ declare const getMessageById: (db: DatabaseClient) => (params: {
|
|
|
2278
2278
|
scopes: ProjectScopeConfig;
|
|
2279
2279
|
messageId: string;
|
|
2280
2280
|
}) => Promise<{
|
|
2281
|
+
tenantId: string;
|
|
2282
|
+
projectId: string;
|
|
2281
2283
|
id: string;
|
|
2282
2284
|
createdAt: string;
|
|
2283
2285
|
updatedAt: string;
|
|
2284
2286
|
metadata: MessageMetadata | null;
|
|
2285
|
-
role: string;
|
|
2286
|
-
projectId: string;
|
|
2287
|
-
tenantId: string;
|
|
2288
2287
|
content: MessageContent;
|
|
2288
|
+
role: string;
|
|
2289
2289
|
conversationId: string;
|
|
2290
2290
|
fromSubAgentId: string | null;
|
|
2291
2291
|
toSubAgentId: string | null;
|
|
@@ -2409,14 +2409,14 @@ declare const getVisibleMessages: (db: DatabaseClient) => (params: {
|
|
|
2409
2409
|
id: string;
|
|
2410
2410
|
}[]>;
|
|
2411
2411
|
declare const createMessage: (db: DatabaseClient) => (params: MessageInsert) => Promise<{
|
|
2412
|
+
tenantId: string;
|
|
2413
|
+
projectId: string;
|
|
2412
2414
|
id: string;
|
|
2413
2415
|
createdAt: string;
|
|
2414
2416
|
updatedAt: string;
|
|
2415
2417
|
metadata: MessageMetadata | null;
|
|
2416
|
-
role: string;
|
|
2417
|
-
projectId: string;
|
|
2418
|
-
tenantId: string;
|
|
2419
2418
|
content: MessageContent;
|
|
2419
|
+
role: string;
|
|
2420
2420
|
conversationId: string;
|
|
2421
2421
|
fromSubAgentId: string | null;
|
|
2422
2422
|
toSubAgentId: string | null;
|
|
@@ -2462,14 +2462,14 @@ declare const deleteMessage: (db: DatabaseClient) => (params: {
|
|
|
2462
2462
|
scopes: ProjectScopeConfig;
|
|
2463
2463
|
messageId: string;
|
|
2464
2464
|
}) => Promise<{
|
|
2465
|
+
tenantId: string;
|
|
2466
|
+
projectId: string;
|
|
2465
2467
|
id: string;
|
|
2466
2468
|
createdAt: string;
|
|
2467
2469
|
updatedAt: string;
|
|
2468
2470
|
metadata: MessageMetadata | null;
|
|
2469
|
-
role: string;
|
|
2470
|
-
projectId: string;
|
|
2471
|
-
tenantId: string;
|
|
2472
2471
|
content: MessageContent;
|
|
2472
|
+
role: string;
|
|
2473
2473
|
conversationId: string;
|
|
2474
2474
|
fromSubAgentId: string | null;
|
|
2475
2475
|
toSubAgentId: string | null;
|
|
@@ -2757,15 +2757,15 @@ declare const getSubAgentExternalAgentRelationById: (db: DatabaseClient) => (par
|
|
|
2757
2757
|
scopes: SubAgentScopeConfig;
|
|
2758
2758
|
relationId: string;
|
|
2759
2759
|
}) => Promise<{
|
|
2760
|
+
tenantId: string;
|
|
2761
|
+
projectId: string;
|
|
2760
2762
|
id: string;
|
|
2763
|
+
agentId: string;
|
|
2761
2764
|
createdAt: string;
|
|
2762
2765
|
updatedAt: string;
|
|
2763
2766
|
headers: Record<string, string> | null;
|
|
2764
|
-
projectId: string;
|
|
2765
|
-
tenantId: string;
|
|
2766
|
-
agentId: string;
|
|
2767
|
-
subAgentId: string;
|
|
2768
2767
|
externalAgentId: string;
|
|
2768
|
+
subAgentId: string;
|
|
2769
2769
|
} | undefined>;
|
|
2770
2770
|
declare const listSubAgentExternalAgentRelations: (db: DatabaseClient) => (params: {
|
|
2771
2771
|
scopes: SubAgentScopeConfig;
|
|
@@ -2792,28 +2792,28 @@ declare const listSubAgentExternalAgentRelations: (db: DatabaseClient) => (param
|
|
|
2792
2792
|
declare const getSubAgentExternalAgentRelations: (db: DatabaseClient) => (params: {
|
|
2793
2793
|
scopes: SubAgentScopeConfig;
|
|
2794
2794
|
}) => Promise<{
|
|
2795
|
+
tenantId: string;
|
|
2796
|
+
projectId: string;
|
|
2795
2797
|
id: string;
|
|
2798
|
+
agentId: string;
|
|
2796
2799
|
createdAt: string;
|
|
2797
2800
|
updatedAt: string;
|
|
2798
2801
|
headers: Record<string, string> | null;
|
|
2799
|
-
projectId: string;
|
|
2800
|
-
tenantId: string;
|
|
2801
|
-
agentId: string;
|
|
2802
|
-
subAgentId: string;
|
|
2803
2802
|
externalAgentId: string;
|
|
2803
|
+
subAgentId: string;
|
|
2804
2804
|
}[]>;
|
|
2805
2805
|
declare const getSubAgentExternalAgentRelationsByAgent: (db: DatabaseClient) => (params: {
|
|
2806
2806
|
scopes: AgentScopeConfig;
|
|
2807
2807
|
}) => Promise<{
|
|
2808
|
+
tenantId: string;
|
|
2809
|
+
projectId: string;
|
|
2808
2810
|
id: string;
|
|
2811
|
+
agentId: string;
|
|
2809
2812
|
createdAt: string;
|
|
2810
2813
|
updatedAt: string;
|
|
2811
2814
|
headers: Record<string, string> | null;
|
|
2812
|
-
projectId: string;
|
|
2813
|
-
tenantId: string;
|
|
2814
|
-
agentId: string;
|
|
2815
|
-
subAgentId: string;
|
|
2816
2815
|
externalAgentId: string;
|
|
2816
|
+
subAgentId: string;
|
|
2817
2817
|
}[]>;
|
|
2818
2818
|
declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: DatabaseClient) => (params: {
|
|
2819
2819
|
scopes: AgentScopeConfig;
|
|
@@ -2928,15 +2928,15 @@ declare const createSubAgentExternalAgentRelation: (db: DatabaseClient) => (para
|
|
|
2928
2928
|
headers?: Record<string, string> | null;
|
|
2929
2929
|
};
|
|
2930
2930
|
}) => Promise<{
|
|
2931
|
+
tenantId: string;
|
|
2932
|
+
projectId: string;
|
|
2931
2933
|
id: string;
|
|
2934
|
+
agentId: string;
|
|
2932
2935
|
createdAt: string;
|
|
2933
2936
|
updatedAt: string;
|
|
2934
2937
|
headers: Record<string, string> | null;
|
|
2935
|
-
projectId: string;
|
|
2936
|
-
tenantId: string;
|
|
2937
|
-
agentId: string;
|
|
2938
|
-
subAgentId: string;
|
|
2939
2938
|
externalAgentId: string;
|
|
2939
|
+
subAgentId: string;
|
|
2940
2940
|
}>;
|
|
2941
2941
|
/**
|
|
2942
2942
|
* Check if sub-agent external agent relation exists by params
|
|
@@ -2945,15 +2945,15 @@ declare const getSubAgentExternalAgentRelationByParams: (db: DatabaseClient) =>
|
|
|
2945
2945
|
scopes: SubAgentScopeConfig;
|
|
2946
2946
|
externalAgentId: string;
|
|
2947
2947
|
}) => Promise<{
|
|
2948
|
+
tenantId: string;
|
|
2949
|
+
projectId: string;
|
|
2948
2950
|
id: string;
|
|
2951
|
+
agentId: string;
|
|
2949
2952
|
createdAt: string;
|
|
2950
2953
|
updatedAt: string;
|
|
2951
2954
|
headers: Record<string, string> | null;
|
|
2952
|
-
projectId: string;
|
|
2953
|
-
tenantId: string;
|
|
2954
|
-
agentId: string;
|
|
2955
|
-
subAgentId: string;
|
|
2956
2955
|
externalAgentId: string;
|
|
2956
|
+
subAgentId: string;
|
|
2957
2957
|
} | undefined>;
|
|
2958
2958
|
/**
|
|
2959
2959
|
* Upsert sub-agent external agent relation (create if it doesn't exist, update if it does)
|
|
@@ -2966,15 +2966,15 @@ declare const upsertSubAgentExternalAgentRelation: (db: DatabaseClient) => (para
|
|
|
2966
2966
|
headers?: Record<string, string> | null;
|
|
2967
2967
|
};
|
|
2968
2968
|
}) => Promise<{
|
|
2969
|
+
tenantId: string;
|
|
2970
|
+
projectId: string;
|
|
2969
2971
|
id: string;
|
|
2972
|
+
agentId: string;
|
|
2970
2973
|
createdAt: string;
|
|
2971
2974
|
updatedAt: string;
|
|
2972
2975
|
headers: Record<string, string> | null;
|
|
2973
|
-
projectId: string;
|
|
2974
|
-
tenantId: string;
|
|
2975
|
-
agentId: string;
|
|
2976
|
-
subAgentId: string;
|
|
2977
2976
|
externalAgentId: string;
|
|
2977
|
+
subAgentId: string;
|
|
2978
2978
|
}>;
|
|
2979
2979
|
declare const updateSubAgentExternalAgentRelation: (db: DatabaseClient) => (params: {
|
|
2980
2980
|
scopes: SubAgentScopeConfig;
|
|
@@ -3006,12 +3006,12 @@ declare const getAgentRelationById: (db: DatabaseClient) => (params: {
|
|
|
3006
3006
|
scopes: AgentScopeConfig;
|
|
3007
3007
|
relationId: string;
|
|
3008
3008
|
}) => Promise<{
|
|
3009
|
+
tenantId: string;
|
|
3010
|
+
projectId: string;
|
|
3009
3011
|
id: string;
|
|
3012
|
+
agentId: string;
|
|
3010
3013
|
createdAt: string;
|
|
3011
3014
|
updatedAt: string;
|
|
3012
|
-
projectId: string;
|
|
3013
|
-
tenantId: string;
|
|
3014
|
-
agentId: string;
|
|
3015
3015
|
sourceSubAgentId: string;
|
|
3016
3016
|
targetSubAgentId: string | null;
|
|
3017
3017
|
relationType: string | null;
|
|
@@ -3041,12 +3041,12 @@ declare const listAgentRelations: (db: DatabaseClient) => (params: {
|
|
|
3041
3041
|
declare const getAgentRelations: (db: DatabaseClient) => (params: {
|
|
3042
3042
|
scopes: SubAgentScopeConfig;
|
|
3043
3043
|
}) => Promise<{
|
|
3044
|
+
tenantId: string;
|
|
3045
|
+
projectId: string;
|
|
3044
3046
|
id: string;
|
|
3047
|
+
agentId: string;
|
|
3045
3048
|
createdAt: string;
|
|
3046
3049
|
updatedAt: string;
|
|
3047
|
-
projectId: string;
|
|
3048
|
-
tenantId: string;
|
|
3049
|
-
agentId: string;
|
|
3050
3050
|
sourceSubAgentId: string;
|
|
3051
3051
|
targetSubAgentId: string | null;
|
|
3052
3052
|
relationType: string | null;
|
|
@@ -3054,12 +3054,12 @@ declare const getAgentRelations: (db: DatabaseClient) => (params: {
|
|
|
3054
3054
|
declare const getAgentRelationsByAgent: (db: DatabaseClient) => (params: {
|
|
3055
3055
|
scopes: AgentScopeConfig;
|
|
3056
3056
|
}) => Promise<{
|
|
3057
|
+
tenantId: string;
|
|
3058
|
+
projectId: string;
|
|
3057
3059
|
id: string;
|
|
3060
|
+
agentId: string;
|
|
3058
3061
|
createdAt: string;
|
|
3059
3062
|
updatedAt: string;
|
|
3060
|
-
projectId: string;
|
|
3061
|
-
tenantId: string;
|
|
3062
|
-
agentId: string;
|
|
3063
3063
|
sourceSubAgentId: string;
|
|
3064
3064
|
targetSubAgentId: string | null;
|
|
3065
3065
|
relationType: string | null;
|
|
@@ -3122,12 +3122,12 @@ declare const getRelatedAgentsForAgent: (db: DatabaseClient) => (params: {
|
|
|
3122
3122
|
}[];
|
|
3123
3123
|
}>;
|
|
3124
3124
|
declare const createSubAgentRelation: (db: DatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
|
|
3125
|
+
tenantId: string;
|
|
3126
|
+
projectId: string;
|
|
3125
3127
|
id: string;
|
|
3128
|
+
agentId: string;
|
|
3126
3129
|
createdAt: string;
|
|
3127
3130
|
updatedAt: string;
|
|
3128
|
-
projectId: string;
|
|
3129
|
-
tenantId: string;
|
|
3130
|
-
agentId: string;
|
|
3131
3131
|
sourceSubAgentId: string;
|
|
3132
3132
|
targetSubAgentId: string | null;
|
|
3133
3133
|
relationType: string | null;
|
|
@@ -3141,12 +3141,12 @@ declare const getAgentRelationByParams: (db: DatabaseClient) => (params: {
|
|
|
3141
3141
|
targetSubAgentId?: string;
|
|
3142
3142
|
relationType: string;
|
|
3143
3143
|
}) => Promise<{
|
|
3144
|
+
tenantId: string;
|
|
3145
|
+
projectId: string;
|
|
3144
3146
|
id: string;
|
|
3147
|
+
agentId: string;
|
|
3145
3148
|
createdAt: string;
|
|
3146
3149
|
updatedAt: string;
|
|
3147
|
-
projectId: string;
|
|
3148
|
-
tenantId: string;
|
|
3149
|
-
agentId: string;
|
|
3150
3150
|
sourceSubAgentId: string;
|
|
3151
3151
|
targetSubAgentId: string | null;
|
|
3152
3152
|
relationType: string | null;
|
|
@@ -3155,12 +3155,12 @@ declare const getAgentRelationByParams: (db: DatabaseClient) => (params: {
|
|
|
3155
3155
|
* Upsert agent relation (create if it doesn't exist, no-op if it does)
|
|
3156
3156
|
*/
|
|
3157
3157
|
declare const upsertSubAgentRelation: (db: DatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
|
|
3158
|
+
tenantId: string;
|
|
3159
|
+
projectId: string;
|
|
3158
3160
|
id: string;
|
|
3161
|
+
agentId: string;
|
|
3159
3162
|
createdAt: string;
|
|
3160
3163
|
updatedAt: string;
|
|
3161
|
-
projectId: string;
|
|
3162
|
-
tenantId: string;
|
|
3163
|
-
agentId: string;
|
|
3164
3164
|
sourceSubAgentId: string;
|
|
3165
3165
|
targetSubAgentId: string | null;
|
|
3166
3166
|
relationType: string | null;
|
|
@@ -3197,16 +3197,16 @@ declare const createAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
|
3197
3197
|
headers?: Record<string, string> | null;
|
|
3198
3198
|
};
|
|
3199
3199
|
}) => Promise<{
|
|
3200
|
+
tenantId: string;
|
|
3201
|
+
projectId: string;
|
|
3200
3202
|
id: string;
|
|
3203
|
+
agentId: string;
|
|
3201
3204
|
createdAt: string;
|
|
3202
3205
|
updatedAt: string;
|
|
3203
3206
|
headers: Record<string, string> | null;
|
|
3204
|
-
|
|
3205
|
-
tenantId: string;
|
|
3206
|
-
agentId: string;
|
|
3207
|
+
toolId: string;
|
|
3207
3208
|
selectedTools: string[] | null;
|
|
3208
3209
|
subAgentId: string;
|
|
3209
|
-
toolId: string;
|
|
3210
3210
|
}>;
|
|
3211
3211
|
declare const updateAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
3212
3212
|
scopes: AgentScopeConfig;
|
|
@@ -3235,16 +3235,16 @@ declare const getAgentToolRelationById: (db: DatabaseClient) => (params: {
|
|
|
3235
3235
|
scopes: SubAgentScopeConfig;
|
|
3236
3236
|
relationId: string;
|
|
3237
3237
|
}) => Promise<{
|
|
3238
|
+
tenantId: string;
|
|
3239
|
+
projectId: string;
|
|
3238
3240
|
id: string;
|
|
3241
|
+
agentId: string;
|
|
3239
3242
|
createdAt: string;
|
|
3240
3243
|
updatedAt: string;
|
|
3241
3244
|
headers: Record<string, string> | null;
|
|
3242
|
-
|
|
3243
|
-
tenantId: string;
|
|
3244
|
-
agentId: string;
|
|
3245
|
+
toolId: string;
|
|
3245
3246
|
selectedTools: string[] | null;
|
|
3246
3247
|
subAgentId: string;
|
|
3247
|
-
toolId: string;
|
|
3248
3248
|
} | undefined>;
|
|
3249
3249
|
declare const getAgentToolRelationByAgent: (db: DatabaseClient) => (params: {
|
|
3250
3250
|
scopes: SubAgentScopeConfig;
|
|
@@ -3411,13 +3411,15 @@ declare const getSubAgentById: (db: DatabaseClient) => (params: {
|
|
|
3411
3411
|
scopes: AgentScopeConfig;
|
|
3412
3412
|
subAgentId: string;
|
|
3413
3413
|
}) => Promise<{
|
|
3414
|
-
|
|
3414
|
+
tenantId: string;
|
|
3415
|
+
projectId: string;
|
|
3415
3416
|
id: string;
|
|
3417
|
+
name: string;
|
|
3418
|
+
description: string;
|
|
3419
|
+
prompt: string;
|
|
3420
|
+
agentId: string;
|
|
3416
3421
|
createdAt: string;
|
|
3417
3422
|
updatedAt: string;
|
|
3418
|
-
description: string;
|
|
3419
|
-
projectId: string;
|
|
3420
|
-
tenantId: string;
|
|
3421
3423
|
models: {
|
|
3422
3424
|
base?: {
|
|
3423
3425
|
model?: string | undefined;
|
|
@@ -3435,20 +3437,20 @@ declare const getSubAgentById: (db: DatabaseClient) => (params: {
|
|
|
3435
3437
|
stopWhen: {
|
|
3436
3438
|
stepCountIs?: number | undefined;
|
|
3437
3439
|
} | null;
|
|
3438
|
-
agentId: string;
|
|
3439
|
-
prompt: string;
|
|
3440
3440
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
3441
3441
|
} | undefined>;
|
|
3442
3442
|
declare const listSubAgents: (db: DatabaseClient) => (params: {
|
|
3443
3443
|
scopes: AgentScopeConfig;
|
|
3444
3444
|
}) => Promise<{
|
|
3445
|
-
|
|
3445
|
+
tenantId: string;
|
|
3446
|
+
projectId: string;
|
|
3446
3447
|
id: string;
|
|
3448
|
+
name: string;
|
|
3449
|
+
description: string;
|
|
3450
|
+
prompt: string;
|
|
3451
|
+
agentId: string;
|
|
3447
3452
|
createdAt: string;
|
|
3448
3453
|
updatedAt: string;
|
|
3449
|
-
description: string;
|
|
3450
|
-
projectId: string;
|
|
3451
|
-
tenantId: string;
|
|
3452
3454
|
models: {
|
|
3453
3455
|
base?: {
|
|
3454
3456
|
model?: string | undefined;
|
|
@@ -3466,8 +3468,6 @@ declare const listSubAgents: (db: DatabaseClient) => (params: {
|
|
|
3466
3468
|
stopWhen: {
|
|
3467
3469
|
stepCountIs?: number | undefined;
|
|
3468
3470
|
} | null;
|
|
3469
|
-
agentId: string;
|
|
3470
|
-
prompt: string;
|
|
3471
3471
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
3472
3472
|
}[]>;
|
|
3473
3473
|
declare const listSubAgentsPaginated: (db: DatabaseClient) => (params: {
|
|
@@ -3511,13 +3511,15 @@ declare const listSubAgentsPaginated: (db: DatabaseClient) => (params: {
|
|
|
3511
3511
|
};
|
|
3512
3512
|
}>;
|
|
3513
3513
|
declare const createSubAgent: (db: DatabaseClient) => (params: SubAgentInsert) => Promise<{
|
|
3514
|
-
|
|
3514
|
+
tenantId: string;
|
|
3515
|
+
projectId: string;
|
|
3515
3516
|
id: string;
|
|
3517
|
+
name: string;
|
|
3518
|
+
description: string;
|
|
3519
|
+
prompt: string;
|
|
3520
|
+
agentId: string;
|
|
3516
3521
|
createdAt: string;
|
|
3517
3522
|
updatedAt: string;
|
|
3518
|
-
description: string;
|
|
3519
|
-
projectId: string;
|
|
3520
|
-
tenantId: string;
|
|
3521
3523
|
models: {
|
|
3522
3524
|
base?: {
|
|
3523
3525
|
model?: string | undefined;
|
|
@@ -3535,8 +3537,6 @@ declare const createSubAgent: (db: DatabaseClient) => (params: SubAgentInsert) =
|
|
|
3535
3537
|
stopWhen: {
|
|
3536
3538
|
stepCountIs?: number | undefined;
|
|
3537
3539
|
} | null;
|
|
3538
|
-
agentId: string;
|
|
3539
|
-
prompt: string;
|
|
3540
3540
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
3541
3541
|
}>;
|
|
3542
3542
|
declare const updateSubAgent: (db: DatabaseClient) => (params: {
|
|
@@ -3619,13 +3619,13 @@ declare const getSubAgentTeamAgentRelationById: (db: DatabaseClient) => (params:
|
|
|
3619
3619
|
scopes: SubAgentScopeConfig;
|
|
3620
3620
|
relationId: string;
|
|
3621
3621
|
}) => Promise<{
|
|
3622
|
+
tenantId: string;
|
|
3623
|
+
projectId: string;
|
|
3622
3624
|
id: string;
|
|
3625
|
+
agentId: string;
|
|
3623
3626
|
createdAt: string;
|
|
3624
3627
|
updatedAt: string;
|
|
3625
3628
|
headers: Record<string, string> | null;
|
|
3626
|
-
projectId: string;
|
|
3627
|
-
tenantId: string;
|
|
3628
|
-
agentId: string;
|
|
3629
3629
|
subAgentId: string;
|
|
3630
3630
|
targetAgentId: string;
|
|
3631
3631
|
} | undefined>;
|
|
@@ -3654,26 +3654,26 @@ declare const listSubAgentTeamAgentRelations: (db: DatabaseClient) => (params: {
|
|
|
3654
3654
|
declare const getSubAgentTeamAgentRelations: (db: DatabaseClient) => (params: {
|
|
3655
3655
|
scopes: SubAgentScopeConfig;
|
|
3656
3656
|
}) => Promise<{
|
|
3657
|
+
tenantId: string;
|
|
3658
|
+
projectId: string;
|
|
3657
3659
|
id: string;
|
|
3660
|
+
agentId: string;
|
|
3658
3661
|
createdAt: string;
|
|
3659
3662
|
updatedAt: string;
|
|
3660
3663
|
headers: Record<string, string> | null;
|
|
3661
|
-
projectId: string;
|
|
3662
|
-
tenantId: string;
|
|
3663
|
-
agentId: string;
|
|
3664
3664
|
subAgentId: string;
|
|
3665
3665
|
targetAgentId: string;
|
|
3666
3666
|
}[]>;
|
|
3667
3667
|
declare const getSubAgentTeamAgentRelationsByAgent: (db: DatabaseClient) => (params: {
|
|
3668
3668
|
scopes: AgentScopeConfig;
|
|
3669
3669
|
}) => Promise<{
|
|
3670
|
+
tenantId: string;
|
|
3671
|
+
projectId: string;
|
|
3670
3672
|
id: string;
|
|
3673
|
+
agentId: string;
|
|
3671
3674
|
createdAt: string;
|
|
3672
3675
|
updatedAt: string;
|
|
3673
3676
|
headers: Record<string, string> | null;
|
|
3674
|
-
projectId: string;
|
|
3675
|
-
tenantId: string;
|
|
3676
|
-
agentId: string;
|
|
3677
3677
|
subAgentId: string;
|
|
3678
3678
|
targetAgentId: string;
|
|
3679
3679
|
}[]>;
|
|
@@ -3820,13 +3820,13 @@ declare const createSubAgentTeamAgentRelation: (db: DatabaseClient) => (params:
|
|
|
3820
3820
|
headers?: Record<string, string> | null;
|
|
3821
3821
|
};
|
|
3822
3822
|
}) => Promise<{
|
|
3823
|
+
tenantId: string;
|
|
3824
|
+
projectId: string;
|
|
3823
3825
|
id: string;
|
|
3826
|
+
agentId: string;
|
|
3824
3827
|
createdAt: string;
|
|
3825
3828
|
updatedAt: string;
|
|
3826
3829
|
headers: Record<string, string> | null;
|
|
3827
|
-
projectId: string;
|
|
3828
|
-
tenantId: string;
|
|
3829
|
-
agentId: string;
|
|
3830
3830
|
subAgentId: string;
|
|
3831
3831
|
targetAgentId: string;
|
|
3832
3832
|
}>;
|
|
@@ -3837,13 +3837,13 @@ declare const getSubAgentTeamAgentRelationByParams: (db: DatabaseClient) => (par
|
|
|
3837
3837
|
scopes: SubAgentScopeConfig;
|
|
3838
3838
|
targetAgentId: string;
|
|
3839
3839
|
}) => Promise<{
|
|
3840
|
+
tenantId: string;
|
|
3841
|
+
projectId: string;
|
|
3840
3842
|
id: string;
|
|
3843
|
+
agentId: string;
|
|
3841
3844
|
createdAt: string;
|
|
3842
3845
|
updatedAt: string;
|
|
3843
3846
|
headers: Record<string, string> | null;
|
|
3844
|
-
projectId: string;
|
|
3845
|
-
tenantId: string;
|
|
3846
|
-
agentId: string;
|
|
3847
3847
|
subAgentId: string;
|
|
3848
3848
|
targetAgentId: string;
|
|
3849
3849
|
} | undefined>;
|
|
@@ -3858,13 +3858,13 @@ declare const upsertSubAgentTeamAgentRelation: (db: DatabaseClient) => (params:
|
|
|
3858
3858
|
headers?: Record<string, string> | null;
|
|
3859
3859
|
};
|
|
3860
3860
|
}) => Promise<{
|
|
3861
|
+
tenantId: string;
|
|
3862
|
+
projectId: string;
|
|
3861
3863
|
id: string;
|
|
3864
|
+
agentId: string;
|
|
3862
3865
|
createdAt: string;
|
|
3863
3866
|
updatedAt: string;
|
|
3864
3867
|
headers: Record<string, string> | null;
|
|
3865
|
-
projectId: string;
|
|
3866
|
-
tenantId: string;
|
|
3867
|
-
agentId: string;
|
|
3868
3868
|
subAgentId: string;
|
|
3869
3869
|
targetAgentId: string;
|
|
3870
3870
|
}>;
|
|
@@ -3895,14 +3895,14 @@ declare const deleteSubAgentTeamAgentRelationsByAgent: (db: DatabaseClient) => (
|
|
|
3895
3895
|
}) => Promise<boolean>;
|
|
3896
3896
|
|
|
3897
3897
|
declare const createTask: (db: DatabaseClient) => (params: TaskInsert) => Promise<{
|
|
3898
|
+
tenantId: string;
|
|
3899
|
+
projectId: string;
|
|
3898
3900
|
id: string;
|
|
3901
|
+
agentId: string;
|
|
3899
3902
|
createdAt: string;
|
|
3900
3903
|
updatedAt: string;
|
|
3901
3904
|
metadata: TaskMetadataConfig | null;
|
|
3902
3905
|
status: string;
|
|
3903
|
-
projectId: string;
|
|
3904
|
-
tenantId: string;
|
|
3905
|
-
agentId: string;
|
|
3906
3906
|
contextId: string;
|
|
3907
3907
|
subAgentId: string;
|
|
3908
3908
|
}>;
|
|
@@ -3936,20 +3936,20 @@ declare const getToolById: (db: DatabaseClient) => (params: {
|
|
|
3936
3936
|
scopes: ProjectScopeConfig;
|
|
3937
3937
|
toolId: string;
|
|
3938
3938
|
}) => Promise<{
|
|
3939
|
-
|
|
3939
|
+
tenantId: string;
|
|
3940
|
+
projectId: string;
|
|
3940
3941
|
id: string;
|
|
3941
|
-
|
|
3942
|
-
|
|
3943
|
-
headers: Record<string, string> | null;
|
|
3942
|
+
name: string;
|
|
3943
|
+
description: string | null;
|
|
3944
3944
|
config: {
|
|
3945
3945
|
type: "mcp";
|
|
3946
3946
|
mcp: ToolMcpConfig;
|
|
3947
3947
|
};
|
|
3948
|
-
description: string | null;
|
|
3949
|
-
projectId: string;
|
|
3950
|
-
tenantId: string;
|
|
3951
|
-
capabilities: ToolServerCapabilities | null;
|
|
3952
3948
|
credentialReferenceId: string | null;
|
|
3949
|
+
createdAt: string;
|
|
3950
|
+
updatedAt: string;
|
|
3951
|
+
headers: Record<string, string> | null;
|
|
3952
|
+
capabilities: ToolServerCapabilities | null;
|
|
3953
3953
|
imageUrl: string | null;
|
|
3954
3954
|
lastError: string | null;
|
|
3955
3955
|
} | null>;
|
|
@@ -3983,20 +3983,20 @@ declare const listTools: (db: DatabaseClient) => (params: {
|
|
|
3983
3983
|
};
|
|
3984
3984
|
}>;
|
|
3985
3985
|
declare const createTool: (db: DatabaseClient) => (params: ToolInsert) => Promise<{
|
|
3986
|
-
|
|
3986
|
+
tenantId: string;
|
|
3987
|
+
projectId: string;
|
|
3987
3988
|
id: string;
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
headers: Record<string, string> | null;
|
|
3989
|
+
name: string;
|
|
3990
|
+
description: string | null;
|
|
3991
3991
|
config: {
|
|
3992
3992
|
type: "mcp";
|
|
3993
3993
|
mcp: ToolMcpConfig;
|
|
3994
3994
|
};
|
|
3995
|
-
description: string | null;
|
|
3996
|
-
projectId: string;
|
|
3997
|
-
tenantId: string;
|
|
3998
|
-
capabilities: ToolServerCapabilities | null;
|
|
3999
3995
|
credentialReferenceId: string | null;
|
|
3996
|
+
createdAt: string;
|
|
3997
|
+
updatedAt: string;
|
|
3998
|
+
headers: Record<string, string> | null;
|
|
3999
|
+
capabilities: ToolServerCapabilities | null;
|
|
4000
4000
|
imageUrl: string | null;
|
|
4001
4001
|
lastError: string | null;
|
|
4002
4002
|
}>;
|
|
@@ -4033,32 +4033,32 @@ declare const addToolToAgent: (db: DatabaseClient) => (params: {
|
|
|
4033
4033
|
selectedTools?: string[] | null;
|
|
4034
4034
|
headers?: Record<string, string> | null;
|
|
4035
4035
|
}) => Promise<{
|
|
4036
|
+
tenantId: string;
|
|
4037
|
+
projectId: string;
|
|
4036
4038
|
id: string;
|
|
4039
|
+
agentId: string;
|
|
4037
4040
|
createdAt: string;
|
|
4038
4041
|
updatedAt: string;
|
|
4039
4042
|
headers: Record<string, string> | null;
|
|
4040
|
-
|
|
4041
|
-
tenantId: string;
|
|
4042
|
-
agentId: string;
|
|
4043
|
+
toolId: string;
|
|
4043
4044
|
selectedTools: string[] | null;
|
|
4044
4045
|
subAgentId: string;
|
|
4045
|
-
toolId: string;
|
|
4046
4046
|
}>;
|
|
4047
4047
|
declare const removeToolFromAgent: (db: DatabaseClient) => (params: {
|
|
4048
4048
|
scopes: AgentScopeConfig;
|
|
4049
4049
|
subAgentId: string;
|
|
4050
4050
|
toolId: string;
|
|
4051
4051
|
}) => Promise<{
|
|
4052
|
+
tenantId: string;
|
|
4053
|
+
projectId: string;
|
|
4052
4054
|
id: string;
|
|
4055
|
+
agentId: string;
|
|
4053
4056
|
createdAt: string;
|
|
4054
4057
|
updatedAt: string;
|
|
4055
4058
|
headers: Record<string, string> | null;
|
|
4056
|
-
|
|
4057
|
-
tenantId: string;
|
|
4058
|
-
agentId: string;
|
|
4059
|
+
toolId: string;
|
|
4059
4060
|
selectedTools: string[] | null;
|
|
4060
4061
|
subAgentId: string;
|
|
4061
|
-
toolId: string;
|
|
4062
4062
|
}>;
|
|
4063
4063
|
/**
|
|
4064
4064
|
* Upsert agent-tool relation (create if it doesn't exist, update if it does)
|
|
@@ -4071,16 +4071,16 @@ declare const upsertSubAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
|
4071
4071
|
headers?: Record<string, string> | null;
|
|
4072
4072
|
relationId?: string;
|
|
4073
4073
|
}) => Promise<{
|
|
4074
|
+
tenantId: string;
|
|
4075
|
+
projectId: string;
|
|
4074
4076
|
id: string;
|
|
4077
|
+
agentId: string;
|
|
4075
4078
|
createdAt: string;
|
|
4076
4079
|
updatedAt: string;
|
|
4077
4080
|
headers: Record<string, string> | null;
|
|
4078
|
-
|
|
4079
|
-
tenantId: string;
|
|
4080
|
-
agentId: string;
|
|
4081
|
+
toolId: string;
|
|
4081
4082
|
selectedTools: string[] | null;
|
|
4082
4083
|
subAgentId: string;
|
|
4083
|
-
toolId: string;
|
|
4084
4084
|
}>;
|
|
4085
4085
|
/**
|
|
4086
4086
|
* Upsert a tool (create if it doesn't exist, update if it does)
|
|
@@ -4088,20 +4088,20 @@ declare const upsertSubAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
|
4088
4088
|
declare const upsertTool: (db: DatabaseClient) => (params: {
|
|
4089
4089
|
data: ToolInsert;
|
|
4090
4090
|
}) => Promise<{
|
|
4091
|
-
|
|
4091
|
+
tenantId: string;
|
|
4092
|
+
projectId: string;
|
|
4092
4093
|
id: string;
|
|
4093
|
-
|
|
4094
|
-
|
|
4095
|
-
headers: Record<string, string> | null;
|
|
4094
|
+
name: string;
|
|
4095
|
+
description: string | null;
|
|
4096
4096
|
config: {
|
|
4097
4097
|
type: "mcp";
|
|
4098
4098
|
mcp: ToolMcpConfig;
|
|
4099
4099
|
};
|
|
4100
|
-
description: string | null;
|
|
4101
|
-
projectId: string;
|
|
4102
|
-
tenantId: string;
|
|
4103
|
-
capabilities: ToolServerCapabilities | null;
|
|
4104
4100
|
credentialReferenceId: string | null;
|
|
4101
|
+
createdAt: string;
|
|
4102
|
+
updatedAt: string;
|
|
4103
|
+
headers: Record<string, string> | null;
|
|
4104
|
+
capabilities: ToolServerCapabilities | null;
|
|
4105
4105
|
imageUrl: string | null;
|
|
4106
4106
|
lastError: string | null;
|
|
4107
4107
|
}>;
|