@inkeep/agents-core 0.28.0 → 0.29.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/{chunk-OYTJILYZ.js → chunk-C2QU7WTO.js} +2 -1
- package/dist/{chunk-2GL6WAMT.js → chunk-OSAGBXSF.js} +1 -1
- package/dist/{chunk-FDR5SA4O.js → chunk-T5TTDZ6L.js} +1 -0
- package/dist/client-exports.cjs +3 -0
- package/dist/client-exports.d.cts +7 -6
- package/dist/client-exports.d.ts +7 -6
- package/dist/client-exports.js +3 -2
- package/dist/db/schema.cjs +1 -0
- 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 +70 -147
- package/dist/index.d.cts +330 -332
- package/dist/index.d.ts +330 -332
- package/dist/index.js +74 -153
- package/dist/{schema-O4RZSGWH.d.ts → schema-B7LgU7Uc.d.ts} +20 -1
- package/dist/{schema-Dl4IdQS5.d.cts → schema-BiOhaqXf.d.cts} +20 -1
- package/dist/types/index.d.cts +3 -3
- package/dist/types/index.d.ts +3 -3
- package/dist/{utility-aTj9Dhgx.d.cts → utility-DhRaNM5g.d.cts} +267 -256
- package/dist/{utility-aTj9Dhgx.d.ts → utility-DhRaNM5g.d.ts} +267 -256
- package/dist/validation/index.cjs +2 -0
- 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/0014_broad_hellfire_club.sql +29 -0
- package/drizzle/meta/0014_snapshot.json +2992 -0
- package/drizzle/meta/_journal.json +7 -0
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -2,13 +2,13 @@ export { ANTHROPIC_MODELS, AnthropicModel, GOOGLE_MODELS, GoogleModel, ModelName
|
|
|
2
2
|
import { r as PinoLogger, s as getLogger } from './auth-detection-DN8jWUDE.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-DN8jWUDE.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, 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, e6 as AgentApiInsertSchema, bU as AgentApiSelect, e5 as AgentApiSelectSchema, bW as AgentApiUpdate, e7 as AgentApiUpdateSchema, aH as AgentCapabilities, aV as AgentCard, dx as AgentConversationHistoryConfig, e3 as AgentInsertSchema, gI as AgentListResponse, aI as AgentProvider, gs as AgentResponse, e2 as AgentSelectSchema, aJ as AgentSkill, e as AgentStopWhen, b as AgentStopWhenSchema, e4 as AgentUpdateSchema, gc as AgentWithinContextOfProjectSchema, fa as AllAgentSchema, cP as AllAgentSelect, cT as ApiKeyApiCreationResponse, ff as ApiKeyApiCreationResponseSchema, cR as ApiKeyApiInsert, fg as ApiKeyApiInsertSchema, cQ as ApiKeyApiSelect, fe as ApiKeyApiSelectSchema, cS as ApiKeyApiUpdate, A as ApiKeyApiUpdateSchema, fc as ApiKeyInsertSchema, gM as ApiKeyListResponse, gw as ApiKeyResponse, fb as ApiKeySelectSchema, fd as ApiKeyUpdateSchema, cE as ArtifactComponentApiInsert, eY as ArtifactComponentApiInsertSchema, cD as ArtifactComponentApiSelect, eX as ArtifactComponentApiSelectSchema, cF as ArtifactComponentApiUpdate, eZ as ArtifactComponentApiUpdateSchema, eV as ArtifactComponentInsertSchema, gR as ArtifactComponentListResponse, gB as ArtifactComponentResponse, eU as ArtifactComponentSelectSchema, eW as ArtifactComponentUpdateSchema, aO as AuthorizationCodeOAuthFlow, dg as CanDelegateToExternalAgent, df as CanUseItem, g8 as CanUseItemSchema, bq as CancelTaskRequest, bB as CancelTaskResponse, bA as CancelTaskSuccessResponse, aP as ClientCredentialsOAuthFlow, b8 as ContentTypeNotSupportedError, cs as ContextCacheApiInsert, eF as ContextCacheApiInsertSchema, cr as ContextCacheApiSelect, eE as ContextCacheApiSelectSchema, ct as ContextCacheApiUpdate, eG as ContextCacheApiUpdateSchema, dy as ContextCacheEntry, eC as ContextCacheInsertSchema, eB as ContextCacheSelectSchema, cq as ContextCacheUpdate, eD as ContextCacheUpdateSchema, cm as ContextConfigApiInsert, fI as ContextConfigApiInsertSchema, cl as ContextConfigApiSelect, fH as ContextConfigApiSelectSchema, cn as ContextConfigApiUpdate, fJ as ContextConfigApiUpdateSchema, fF as ContextConfigInsertSchema, gL as ContextConfigListResponse, gv as ContextConfigResponse, fE as ContextConfigSelectSchema, fG as ContextConfigUpdateSchema, cf as ConversationApiInsert, et as ConversationApiInsertSchema, ce as ConversationApiSelect, es as ConversationApiSelectSchema, cg as ConversationApiUpdate, eu as ConversationApiUpdateSchema, eq as ConversationInsertSchema, gU as ConversationListResponse, gE as ConversationResponse, dw as ConversationScopeOptions, ep as ConversationSelectSchema, er as ConversationUpdateSchema, fl as CredentialReferenceApiInsertSchema, cU as CredentialReferenceApiSelect, fk as CredentialReferenceApiSelectSchema, cV as CredentialReferenceApiUpdate, fm as CredentialReferenceApiUpdateSchema, fi as CredentialReferenceInsertSchema, gN as CredentialReferenceListResponse, gx as CredentialReferenceResponse, fh as CredentialReferenceSelectSchema, fj as CredentialReferenceUpdateSchema, cv as DataComponentApiInsert, eM as DataComponentApiInsertSchema, cu as DataComponentApiSelect, eL as DataComponentApiSelectSchema, cw as DataComponentApiUpdate, eN as DataComponentApiUpdateSchema, eJ as DataComponentBaseSchema, eI as DataComponentInsertSchema, gQ as DataComponentListResponse, gA as DataComponentResponse, eH as DataComponentSelectSchema, eK as DataComponentUpdateSchema, aF as DataPart, gg as ErrorResponseSchema, gh as ExistsResponseSchema, cN as ExternalAgentApiInsert, f8 as ExternalAgentApiInsertSchema, cM as ExternalAgentApiSelect, f7 as ExternalAgentApiSelectSchema, cO as ExternalAgentApiUpdate, f9 as ExternalAgentApiUpdateSchema, f5 as ExternalAgentInsertSchema, gK as ExternalAgentListResponse, gu as ExternalAgentResponse, f4 as ExternalAgentSelectSchema, f6 as ExternalAgentUpdateSchema, bT as ExternalSubAgentRelationApiInsert, e1 as ExternalSubAgentRelationApiInsertSchema, bS as ExternalSubAgentRelationInsert, e0 as ExternalSubAgentRelationInsertSchema, cp as FetchConfig, fC as FetchConfigSchema, co as FetchDefinition, fD as FetchDefinitionSchema, aB as FileBase, aE as FilePart, aC as FileWithBytes, aD as FileWithUri, de as FullAgentAgentInsert, a as FullAgentAgentInsertSchema, gp as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, cb as FunctionApiSelect, j as FunctionApiSelectSchema, cc as FunctionApiUpdate, k as FunctionApiUpdateSchema, c9 as FunctionInsert, fA as FunctionInsertSchema, gO as FunctionListResponse, gy as FunctionResponse, c8 as FunctionSelect, fz as FunctionSelectSchema, fx as FunctionToolApiInsertSchema, cd as FunctionToolApiSelect, fw as FunctionToolApiSelectSchema, fy as FunctionToolApiUpdateSchema, dO as FunctionToolConfig, dN as FunctionToolConfigSchema, fu as FunctionToolInsertSchema, gP as FunctionToolListResponse, gz as FunctionToolResponse, ft as FunctionToolSelectSchema, fv as FunctionToolUpdateSchema, ca as FunctionUpdate, fB as FunctionUpdateSchema, bs as GetTaskPushNotificationConfigRequest, bF as GetTaskPushNotificationConfigResponse, bE as GetTaskPushNotificationConfigSuccessResponse, bp as GetTaskRequest, bz as GetTaskResponse, by as GetTaskSuccessResponse, aM as HTTPAuthSecurityScheme, g_ 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, g4 as LedgerArtifactApiInsertSchema, db as LedgerArtifactApiSelect, g3 as LedgerArtifactApiSelectSchema, dd as LedgerArtifactApiUpdate, g5 as LedgerArtifactApiUpdateSchema, d9 as LedgerArtifactInsert, g1 as LedgerArtifactInsertSchema, g0 as LedgerArtifactSelectSchema, da as LedgerArtifactUpdate, g2 as LedgerArtifactUpdateSchema, ge as ListResponseSchema, dI as MAX_ID_LENGTH, dG as MCPServerType, fo as MCPToolConfigSchema, dH as MIN_ID_LENGTH, dz as McpAuthType, dA as McpServerAuth, dC as McpServerCapabilities, dD as McpToolDefinition, em as McpToolDefinitionSchema, fn as McpToolSchema, dB as McpTransportConfig, ek as McpTransportConfigSchema, aW as Message, cj as MessageApiInsert, ez as MessageApiInsertSchema, ci as MessageApiSelect, ey as MessageApiSelectSchema, ck as MessageApiUpdate, eA as MessageApiUpdateSchema, ew as MessageInsertSchema, gV as MessageListResponse, dr as MessageMode, bI as MessagePart, gF as MessageResponse, dq as MessageRole, ch as MessageSelect, ev as MessageSelectSchema, bg as MessageSendConfiguration, bh as MessageSendParams, dp as MessageType, ex as MessageUpdateSchema, b1 as MethodNotFoundError, dL as ModelSchema, g as ModelSettings, M as ModelSettingsSchema, ds as Models, aS as OAuth2SecurityScheme, aN as OAuthFlows, aT as OpenIdConnectSecurityScheme, dm as Pagination, h7 as PaginationQueryParamsSchema, gd as PaginationSchema, P as Part, az as PartBase, aR as PasswordOAuthFlow, dk as ProjectApiInsert, gn as ProjectApiInsertSchema, dj as ProjectApiSelect, gm as ProjectApiSelectSchema, dl as ProjectApiUpdate, go as ProjectApiUpdateSchema, gk as ProjectInsertSchema, gG as ProjectListResponse, dM as ProjectModelSchema, dt as ProjectModels, gq as ProjectResponse, gj as ProjectSelectSchema, gl as ProjectUpdateSchema, bb as PushNotificationAuthenticationInfo, bc as PushNotificationConfig, b6 as PushNotificationNotSupportedError, gi 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, gf as SingleResponseSchema, dv as StatusComponent, g6 as StatusComponentSchema, g7 as StatusUpdateSchema, du as StatusUpdateSettings, d as StopWhen, S as StopWhenSchema, bL as SubAgentApiInsert, dT as SubAgentApiInsertSchema, bK as SubAgentApiSelect, dS as SubAgentApiSelectSchema, bM as SubAgentApiUpdate, dU as SubAgentApiUpdateSchema, cK as SubAgentArtifactComponentApiInsert, f2 as SubAgentArtifactComponentApiInsertSchema, cJ as SubAgentArtifactComponentApiSelect, f1 as SubAgentArtifactComponentApiSelectSchema, cL as SubAgentArtifactComponentApiUpdate, f3 as SubAgentArtifactComponentApiUpdateSchema, cH as SubAgentArtifactComponentInsert, e$ as SubAgentArtifactComponentInsertSchema, gZ as SubAgentArtifactComponentListResponse, gX as SubAgentArtifactComponentResponse, cG as SubAgentArtifactComponentSelect, e_ as SubAgentArtifactComponentSelectSchema, cI as SubAgentArtifactComponentUpdate, f0 as SubAgentArtifactComponentUpdateSchema, cB as SubAgentDataComponentApiInsert, eS as SubAgentDataComponentApiInsertSchema, cA as SubAgentDataComponentApiSelect, eR as SubAgentDataComponentApiSelectSchema, cC as SubAgentDataComponentApiUpdate, eT as SubAgentDataComponentApiUpdateSchema, cy as SubAgentDataComponentInsert, eP as SubAgentDataComponentInsertSchema, gY as SubAgentDataComponentListResponse, gW as SubAgentDataComponentResponse, cx as SubAgentDataComponentSelect, eO as SubAgentDataComponentSelectSchema, cz as SubAgentDataComponentUpdate, eQ as SubAgentDataComponentUpdateSchema, dh as SubAgentDefinition, d2 as SubAgentExternalAgentRelationApiInsert, fU as SubAgentExternalAgentRelationApiInsertSchema, d1 as SubAgentExternalAgentRelationApiSelect, fT as SubAgentExternalAgentRelationApiSelectSchema, d3 as SubAgentExternalAgentRelationApiUpdate, fV as SubAgentExternalAgentRelationApiUpdateSchema, fR as SubAgentExternalAgentRelationInsertSchema, c$ as SubAgentExternalAgentRelationSelect, fQ as SubAgentExternalAgentRelationSelectSchema, d0 as SubAgentExternalAgentRelationUpdate, fS as SubAgentExternalAgentRelationUpdateSchema, dQ as SubAgentInsertSchema, gH as SubAgentListResponse, bP as SubAgentRelationApiInsert, dZ as SubAgentRelationApiInsertSchema, bO as SubAgentRelationApiSelect, dY as SubAgentRelationApiSelectSchema, bQ as SubAgentRelationApiUpdate, d_ as SubAgentRelationApiUpdateSchema, dW as SubAgentRelationInsertSchema, gS as SubAgentRelationListResponse, bR as SubAgentRelationQuery, d$ as SubAgentRelationQuerySchema, gC as SubAgentRelationResponse, bN as SubAgentRelationSelect, dV as SubAgentRelationSelectSchema, dX as SubAgentRelationUpdateSchema, gr as SubAgentResponse, dP as SubAgentSelectSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema, d7 as SubAgentTeamAgentRelationApiInsert, f_ as SubAgentTeamAgentRelationApiInsertSchema, d6 as SubAgentTeamAgentRelationApiSelect, fZ as SubAgentTeamAgentRelationApiSelectSchema, d8 as SubAgentTeamAgentRelationApiUpdate, f$ as SubAgentTeamAgentRelationApiUpdateSchema, fX as SubAgentTeamAgentRelationInsertSchema, d4 as SubAgentTeamAgentRelationSelect, fW as SubAgentTeamAgentRelationSelectSchema, d5 as SubAgentTeamAgentRelationUpdate, fY as SubAgentTeamAgentRelationUpdateSchema, cZ as SubAgentToolRelationApiInsert, fO as SubAgentToolRelationApiInsertSchema, cY as SubAgentToolRelationApiSelect, fN as SubAgentToolRelationApiSelectSchema, c_ as SubAgentToolRelationApiUpdate, fP as SubAgentToolRelationApiUpdateSchema, cX as SubAgentToolRelationInsert, fL as SubAgentToolRelationInsertSchema, gT as SubAgentToolRelationListResponse, gD as SubAgentToolRelationResponse, cW as SubAgentToolRelationSelect, fK as SubAgentToolRelationSelectSchema, fM as SubAgentToolRelationUpdateSchema, dR as SubAgentUpdateSchema, dn as SummaryEvent, dE as TOOL_STATUS_VALUES, aY as Task, bZ as TaskApiInsert, ec as TaskApiInsertSchema, bY as TaskApiSelect, eb as TaskApiSelectSchema, b_ as TaskApiUpdate, ed as TaskApiUpdateSchema, bJ as TaskArtifact, a_ as TaskArtifactUpdateEvent, be as TaskIdParams, e9 as TaskInsertSchema, b5 as TaskNotCancelableError, b4 as TaskNotFoundError, bd as TaskPushNotificationConfig, bf as TaskQueryParams, c3 as TaskRelationApiInsert, ei as TaskRelationApiInsertSchema, c2 as TaskRelationApiSelect, eh as TaskRelationApiSelectSchema, c4 as TaskRelationApiUpdate, ej as TaskRelationApiUpdateSchema, c0 as TaskRelationInsert, ef as TaskRelationInsertSchema, b$ as TaskRelationSelect, ee as TaskRelationSelectSchema, c1 as TaskRelationUpdate, eg as TaskRelationUpdateSchema, bt as TaskResubscriptionRequest, e8 as TaskSelectSchema, aG as TaskState, aX as TaskStatus, aZ as TaskStatusUpdateEvent, bX as TaskUpdate, ea as TaskUpdateSchema, gb as TeamAgentSchema, h0 as TenantIdParamsSchema, g$ as TenantParamsSchema, h4 as TenantProjectAgentIdParamsSchema, h3 as TenantProjectAgentParamsSchema, h6 as TenantProjectAgentSubAgentIdParamsSchema, h5 as TenantProjectAgentSubAgentParamsSchema, h2 as TenantProjectIdParamsSchema, h1 as TenantProjectParamsSchema, aA as TextPart, c6 as ToolApiInsert, fr as ToolApiInsertSchema, c5 as ToolApiSelect, fq as ToolApiSelectSchema, c7 as ToolApiUpdate, fs as ToolApiUpdateSchema, di as ToolDefinition, eo as ToolInsertSchema, gJ as ToolListResponse, gt as ToolResponse, en as ToolSelectSchema, el as ToolStatusSchema, fp as ToolUpdateSchema, dJ as URL_SAFE_ID_PATTERN, b7 as UnsupportedOperationError, dF as VALID_RELATION_TYPES, g9 as canDelegateToExternalAgentSchema, ga as canDelegateToTeamAgentSchema, dK as resourceIdSchema } from './utility-aTj9Dhgx.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-DhRaNM5g.cjs';
|
|
6
|
+
export { ba as A2AError, bG as A2ARequest, bH as A2AResponse, aL as APIKeySecurityScheme, bV as AgentApiInsert, e6 as AgentApiInsertSchema, bU as AgentApiSelect, e5 as AgentApiSelectSchema, bW as AgentApiUpdate, e7 as AgentApiUpdateSchema, aH as AgentCapabilities, aV as AgentCard, dx as AgentConversationHistoryConfig, e3 as AgentInsertSchema, gI as AgentListResponse, aI as AgentProvider, gs as AgentResponse, e2 as AgentSelectSchema, aJ as AgentSkill, e as AgentStopWhen, b as AgentStopWhenSchema, e4 as AgentUpdateSchema, gc as AgentWithinContextOfProjectSchema, fa as AllAgentSchema, cP as AllAgentSelect, cT as ApiKeyApiCreationResponse, ff as ApiKeyApiCreationResponseSchema, cR as ApiKeyApiInsert, fg as ApiKeyApiInsertSchema, cQ as ApiKeyApiSelect, fe as ApiKeyApiSelectSchema, cS as ApiKeyApiUpdate, A as ApiKeyApiUpdateSchema, fc as ApiKeyInsertSchema, gM as ApiKeyListResponse, gw as ApiKeyResponse, fb as ApiKeySelectSchema, fd as ApiKeyUpdateSchema, cE as ArtifactComponentApiInsert, eY as ArtifactComponentApiInsertSchema, cD as ArtifactComponentApiSelect, eX as ArtifactComponentApiSelectSchema, cF as ArtifactComponentApiUpdate, eZ as ArtifactComponentApiUpdateSchema, eV as ArtifactComponentInsertSchema, gR as ArtifactComponentListResponse, gB as ArtifactComponentResponse, eU as ArtifactComponentSelectSchema, eW as ArtifactComponentUpdateSchema, aO as AuthorizationCodeOAuthFlow, dg as CanDelegateToExternalAgent, df as CanUseItem, g8 as CanUseItemSchema, bq as CancelTaskRequest, bB as CancelTaskResponse, bA as CancelTaskSuccessResponse, aP as ClientCredentialsOAuthFlow, b8 as ContentTypeNotSupportedError, cs as ContextCacheApiInsert, eF as ContextCacheApiInsertSchema, cr as ContextCacheApiSelect, eE as ContextCacheApiSelectSchema, ct as ContextCacheApiUpdate, eG as ContextCacheApiUpdateSchema, dy as ContextCacheEntry, eC as ContextCacheInsertSchema, eB as ContextCacheSelectSchema, cq as ContextCacheUpdate, eD as ContextCacheUpdateSchema, cm as ContextConfigApiInsert, fI as ContextConfigApiInsertSchema, cl as ContextConfigApiSelect, fH as ContextConfigApiSelectSchema, cn as ContextConfigApiUpdate, fJ as ContextConfigApiUpdateSchema, fF as ContextConfigInsertSchema, gL as ContextConfigListResponse, gv as ContextConfigResponse, fE as ContextConfigSelectSchema, fG as ContextConfigUpdateSchema, cf as ConversationApiInsert, et as ConversationApiInsertSchema, ce as ConversationApiSelect, es as ConversationApiSelectSchema, cg as ConversationApiUpdate, eu as ConversationApiUpdateSchema, eq as ConversationInsertSchema, gU as ConversationListResponse, gE as ConversationResponse, dw as ConversationScopeOptions, ep as ConversationSelectSchema, er as ConversationUpdateSchema, fl as CredentialReferenceApiInsertSchema, cU as CredentialReferenceApiSelect, fk as CredentialReferenceApiSelectSchema, cV as CredentialReferenceApiUpdate, fm as CredentialReferenceApiUpdateSchema, fi as CredentialReferenceInsertSchema, gN as CredentialReferenceListResponse, gx as CredentialReferenceResponse, fh as CredentialReferenceSelectSchema, fj as CredentialReferenceUpdateSchema, cv as DataComponentApiInsert, eM as DataComponentApiInsertSchema, cu as DataComponentApiSelect, eL as DataComponentApiSelectSchema, cw as DataComponentApiUpdate, eN as DataComponentApiUpdateSchema, eJ as DataComponentBaseSchema, eI as DataComponentInsertSchema, gQ as DataComponentListResponse, gA as DataComponentResponse, eH as DataComponentSelectSchema, eK as DataComponentUpdateSchema, aF as DataPart, gg as ErrorResponseSchema, gh as ExistsResponseSchema, cN as ExternalAgentApiInsert, f8 as ExternalAgentApiInsertSchema, cM as ExternalAgentApiSelect, f7 as ExternalAgentApiSelectSchema, cO as ExternalAgentApiUpdate, f9 as ExternalAgentApiUpdateSchema, f5 as ExternalAgentInsertSchema, gK as ExternalAgentListResponse, gu as ExternalAgentResponse, f4 as ExternalAgentSelectSchema, f6 as ExternalAgentUpdateSchema, bT as ExternalSubAgentRelationApiInsert, e1 as ExternalSubAgentRelationApiInsertSchema, bS as ExternalSubAgentRelationInsert, e0 as ExternalSubAgentRelationInsertSchema, cp as FetchConfig, fC as FetchConfigSchema, co as FetchDefinition, fD as FetchDefinitionSchema, aB as FileBase, aE as FilePart, aC as FileWithBytes, aD as FileWithUri, de as FullAgentAgentInsert, a as FullAgentAgentInsertSchema, gp as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, cb as FunctionApiSelect, j as FunctionApiSelectSchema, cc as FunctionApiUpdate, k as FunctionApiUpdateSchema, c9 as FunctionInsert, fA as FunctionInsertSchema, gO as FunctionListResponse, gy as FunctionResponse, c8 as FunctionSelect, fz as FunctionSelectSchema, fx as FunctionToolApiInsertSchema, cd as FunctionToolApiSelect, fw as FunctionToolApiSelectSchema, fy as FunctionToolApiUpdateSchema, dO as FunctionToolConfig, dN as FunctionToolConfigSchema, fu as FunctionToolInsertSchema, gP as FunctionToolListResponse, gz as FunctionToolResponse, ft as FunctionToolSelectSchema, fv as FunctionToolUpdateSchema, ca as FunctionUpdate, fB as FunctionUpdateSchema, bs as GetTaskPushNotificationConfigRequest, bF as GetTaskPushNotificationConfigResponse, bE as GetTaskPushNotificationConfigSuccessResponse, bp as GetTaskRequest, bz as GetTaskResponse, by as GetTaskSuccessResponse, aM as HTTPAuthSecurityScheme, g_ 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, g4 as LedgerArtifactApiInsertSchema, db as LedgerArtifactApiSelect, g3 as LedgerArtifactApiSelectSchema, dd as LedgerArtifactApiUpdate, g5 as LedgerArtifactApiUpdateSchema, d9 as LedgerArtifactInsert, g1 as LedgerArtifactInsertSchema, g0 as LedgerArtifactSelectSchema, da as LedgerArtifactUpdate, g2 as LedgerArtifactUpdateSchema, ge as ListResponseSchema, dI as MAX_ID_LENGTH, dG as MCPServerType, fo as MCPToolConfigSchema, dH as MIN_ID_LENGTH, dz as McpAuthType, dA as McpServerAuth, dC as McpServerCapabilities, dD as McpToolDefinition, em as McpToolDefinitionSchema, fn as McpToolSchema, dB as McpTransportConfig, ek as McpTransportConfigSchema, aW as Message, cj as MessageApiInsert, ez as MessageApiInsertSchema, ci as MessageApiSelect, ey as MessageApiSelectSchema, ck as MessageApiUpdate, eA as MessageApiUpdateSchema, ew as MessageInsertSchema, gV as MessageListResponse, dr as MessageMode, bI as MessagePart, gF as MessageResponse, dq as MessageRole, ch as MessageSelect, ev as MessageSelectSchema, bg as MessageSendConfiguration, bh as MessageSendParams, dp as MessageType, ex as MessageUpdateSchema, b1 as MethodNotFoundError, dL as ModelSchema, g as ModelSettings, M as ModelSettingsSchema, ds as Models, aS as OAuth2SecurityScheme, aN as OAuthFlows, aT as OpenIdConnectSecurityScheme, dm as Pagination, h7 as PaginationQueryParamsSchema, gd as PaginationSchema, P as Part, az as PartBase, aR as PasswordOAuthFlow, dk as ProjectApiInsert, gn as ProjectApiInsertSchema, dj as ProjectApiSelect, gm as ProjectApiSelectSchema, dl as ProjectApiUpdate, go as ProjectApiUpdateSchema, gk as ProjectInsertSchema, gG as ProjectListResponse, dM as ProjectModelSchema, dt as ProjectModels, gq as ProjectResponse, gj as ProjectSelectSchema, gl as ProjectUpdateSchema, bb as PushNotificationAuthenticationInfo, bc as PushNotificationConfig, b6 as PushNotificationNotSupportedError, gi 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, gf as SingleResponseSchema, dv as StatusComponent, g6 as StatusComponentSchema, g7 as StatusUpdateSchema, du as StatusUpdateSettings, d as StopWhen, S as StopWhenSchema, bL as SubAgentApiInsert, dT as SubAgentApiInsertSchema, bK as SubAgentApiSelect, dS as SubAgentApiSelectSchema, bM as SubAgentApiUpdate, dU as SubAgentApiUpdateSchema, cK as SubAgentArtifactComponentApiInsert, f2 as SubAgentArtifactComponentApiInsertSchema, cJ as SubAgentArtifactComponentApiSelect, f1 as SubAgentArtifactComponentApiSelectSchema, cL as SubAgentArtifactComponentApiUpdate, f3 as SubAgentArtifactComponentApiUpdateSchema, cH as SubAgentArtifactComponentInsert, e$ as SubAgentArtifactComponentInsertSchema, gZ as SubAgentArtifactComponentListResponse, gX as SubAgentArtifactComponentResponse, cG as SubAgentArtifactComponentSelect, e_ as SubAgentArtifactComponentSelectSchema, cI as SubAgentArtifactComponentUpdate, f0 as SubAgentArtifactComponentUpdateSchema, cB as SubAgentDataComponentApiInsert, eS as SubAgentDataComponentApiInsertSchema, cA as SubAgentDataComponentApiSelect, eR as SubAgentDataComponentApiSelectSchema, cC as SubAgentDataComponentApiUpdate, eT as SubAgentDataComponentApiUpdateSchema, cy as SubAgentDataComponentInsert, eP as SubAgentDataComponentInsertSchema, gY as SubAgentDataComponentListResponse, gW as SubAgentDataComponentResponse, cx as SubAgentDataComponentSelect, eO as SubAgentDataComponentSelectSchema, cz as SubAgentDataComponentUpdate, eQ as SubAgentDataComponentUpdateSchema, dh as SubAgentDefinition, d2 as SubAgentExternalAgentRelationApiInsert, fU as SubAgentExternalAgentRelationApiInsertSchema, d1 as SubAgentExternalAgentRelationApiSelect, fT as SubAgentExternalAgentRelationApiSelectSchema, d3 as SubAgentExternalAgentRelationApiUpdate, fV as SubAgentExternalAgentRelationApiUpdateSchema, fR as SubAgentExternalAgentRelationInsertSchema, c$ as SubAgentExternalAgentRelationSelect, fQ as SubAgentExternalAgentRelationSelectSchema, d0 as SubAgentExternalAgentRelationUpdate, fS as SubAgentExternalAgentRelationUpdateSchema, dQ as SubAgentInsertSchema, gH as SubAgentListResponse, bP as SubAgentRelationApiInsert, dZ as SubAgentRelationApiInsertSchema, bO as SubAgentRelationApiSelect, dY as SubAgentRelationApiSelectSchema, bQ as SubAgentRelationApiUpdate, d_ as SubAgentRelationApiUpdateSchema, dW as SubAgentRelationInsertSchema, gS as SubAgentRelationListResponse, bR as SubAgentRelationQuery, d$ as SubAgentRelationQuerySchema, gC as SubAgentRelationResponse, bN as SubAgentRelationSelect, dV as SubAgentRelationSelectSchema, dX as SubAgentRelationUpdateSchema, gr as SubAgentResponse, dP as SubAgentSelectSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema, d7 as SubAgentTeamAgentRelationApiInsert, f_ as SubAgentTeamAgentRelationApiInsertSchema, d6 as SubAgentTeamAgentRelationApiSelect, fZ as SubAgentTeamAgentRelationApiSelectSchema, d8 as SubAgentTeamAgentRelationApiUpdate, f$ as SubAgentTeamAgentRelationApiUpdateSchema, fX as SubAgentTeamAgentRelationInsertSchema, d4 as SubAgentTeamAgentRelationSelect, fW as SubAgentTeamAgentRelationSelectSchema, d5 as SubAgentTeamAgentRelationUpdate, fY as SubAgentTeamAgentRelationUpdateSchema, cZ as SubAgentToolRelationApiInsert, fO as SubAgentToolRelationApiInsertSchema, cY as SubAgentToolRelationApiSelect, fN as SubAgentToolRelationApiSelectSchema, c_ as SubAgentToolRelationApiUpdate, fP as SubAgentToolRelationApiUpdateSchema, cX as SubAgentToolRelationInsert, fL as SubAgentToolRelationInsertSchema, gT as SubAgentToolRelationListResponse, gD as SubAgentToolRelationResponse, cW as SubAgentToolRelationSelect, fK as SubAgentToolRelationSelectSchema, fM as SubAgentToolRelationUpdateSchema, dR as SubAgentUpdateSchema, dn as SummaryEvent, dE as TOOL_STATUS_VALUES, aY as Task, bZ as TaskApiInsert, ec as TaskApiInsertSchema, bY as TaskApiSelect, eb as TaskApiSelectSchema, b_ as TaskApiUpdate, ed as TaskApiUpdateSchema, bJ as TaskArtifact, a_ as TaskArtifactUpdateEvent, be as TaskIdParams, e9 as TaskInsertSchema, b5 as TaskNotCancelableError, b4 as TaskNotFoundError, bd as TaskPushNotificationConfig, bf as TaskQueryParams, c3 as TaskRelationApiInsert, ei as TaskRelationApiInsertSchema, c2 as TaskRelationApiSelect, eh as TaskRelationApiSelectSchema, c4 as TaskRelationApiUpdate, ej as TaskRelationApiUpdateSchema, c0 as TaskRelationInsert, ef as TaskRelationInsertSchema, b$ as TaskRelationSelect, ee as TaskRelationSelectSchema, c1 as TaskRelationUpdate, eg as TaskRelationUpdateSchema, bt as TaskResubscriptionRequest, e8 as TaskSelectSchema, aG as TaskState, aX as TaskStatus, aZ as TaskStatusUpdateEvent, bX as TaskUpdate, ea as TaskUpdateSchema, gb as TeamAgentSchema, h0 as TenantIdParamsSchema, g$ as TenantParamsSchema, h4 as TenantProjectAgentIdParamsSchema, h3 as TenantProjectAgentParamsSchema, h6 as TenantProjectAgentSubAgentIdParamsSchema, h5 as TenantProjectAgentSubAgentParamsSchema, h2 as TenantProjectIdParamsSchema, h1 as TenantProjectParamsSchema, aA as TextPart, c6 as ToolApiInsert, fr as ToolApiInsertSchema, c5 as ToolApiSelect, fq as ToolApiSelectSchema, c7 as ToolApiUpdate, fs as ToolApiUpdateSchema, di as ToolDefinition, eo as ToolInsertSchema, gJ as ToolListResponse, gt as ToolResponse, en as ToolSelectSchema, el as ToolStatusSchema, fp as ToolUpdateSchema, dJ as URL_SAFE_ID_PATTERN, b7 as UnsupportedOperationError, dF as VALID_RELATION_TYPES, g9 as canDelegateToExternalAgentSchema, ga as canDelegateToTeamAgentSchema, dK as resourceIdSchema } from './utility-DhRaNM5g.cjs';
|
|
7
7
|
import { CredentialStore } from './types/index.cjs';
|
|
8
8
|
export { CorsConfig, ServerConfig, ServerOptions } from './types/index.cjs';
|
|
9
9
|
import { LibSQLDatabase } from 'drizzle-orm/libsql';
|
|
10
|
-
import { s as schema } from './schema-
|
|
11
|
-
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-
|
|
10
|
+
import { s as schema } from './schema-BiOhaqXf.cjs';
|
|
11
|
+
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-BiOhaqXf.cjs';
|
|
12
12
|
import { SSEClientTransportOptions } from '@modelcontextprotocol/sdk/client/sse.js';
|
|
13
13
|
import { StreamableHTTPClientTransportOptions } from '@modelcontextprotocol/sdk/client/streamableHttp.js';
|
|
14
14
|
import { ClientCapabilities } from '@modelcontextprotocol/sdk/types.js';
|
|
@@ -219,7 +219,7 @@ declare class TemplateEngine {
|
|
|
219
219
|
*/
|
|
220
220
|
private static processVariables;
|
|
221
221
|
/**
|
|
222
|
-
* Process built-in variables like $
|
|
222
|
+
* Process built-in variables like $env, etc.
|
|
223
223
|
*/
|
|
224
224
|
private static processBuiltinVariable;
|
|
225
225
|
/**
|
|
@@ -466,8 +466,9 @@ declare class KeyChainStore implements CredentialStore {
|
|
|
466
466
|
get(key: string): Promise<string | null>;
|
|
467
467
|
/**
|
|
468
468
|
* Set a credential in the keychain
|
|
469
|
+
* @param metadata - Optional metadata (ignored by keychain store)
|
|
469
470
|
*/
|
|
470
|
-
set(key: string, value: string): Promise<void>;
|
|
471
|
+
set(key: string, value: string, _metadata?: Record<string, string>): Promise<void>;
|
|
471
472
|
/**
|
|
472
473
|
* Check if a credential exists in the keychain
|
|
473
474
|
*/
|
|
@@ -549,8 +550,9 @@ declare class InMemoryCredentialStore implements CredentialStore {
|
|
|
549
550
|
* Set a credential in the in memory store.
|
|
550
551
|
* @param key - The key of the credential to set
|
|
551
552
|
* @param value - The value of the credential to set
|
|
553
|
+
* @param metadata - Optional metadata (ignored by memory store)
|
|
552
554
|
*/
|
|
553
|
-
set(key: string, value: string): Promise<void>;
|
|
555
|
+
set(key: string, value: string, _metadata?: Record<string, string>): Promise<void>;
|
|
554
556
|
/**
|
|
555
557
|
* Check if a credential exists in the in memory store.
|
|
556
558
|
* @param key - The key of the credential to check
|
|
@@ -592,11 +594,6 @@ declare class NangoCredentialStore implements CredentialStore {
|
|
|
592
594
|
* Fetch a specific Nango integration
|
|
593
595
|
*/
|
|
594
596
|
private fetchNangoIntegration;
|
|
595
|
-
/**
|
|
596
|
-
* Optimize OAuth token data to fit within Nango's 1024 character limit for apiKey field
|
|
597
|
-
* Strategy: Remove unnecessary fields
|
|
598
|
-
*/
|
|
599
|
-
private optimizeOAuthTokenForNango;
|
|
600
597
|
/**
|
|
601
598
|
* Create an API key credential by setting up Nango integration and importing the connection
|
|
602
599
|
*/
|
|
@@ -614,9 +611,10 @@ declare class NangoCredentialStore implements CredentialStore {
|
|
|
614
611
|
*/
|
|
615
612
|
get(key: string): Promise<string | null>;
|
|
616
613
|
/**
|
|
617
|
-
* Set credentials -
|
|
614
|
+
* Set credentials - this is used to save bearer auth
|
|
615
|
+
* Key format: JSON string with connectionId and providerConfigKey
|
|
618
616
|
*/
|
|
619
|
-
set(key: string, value: string): Promise<void>;
|
|
617
|
+
set(key: string, value: string, metadata?: Record<string, string>): Promise<void>;
|
|
620
618
|
/**
|
|
621
619
|
* Check if credentials exist by attempting to fetch them
|
|
622
620
|
*/
|
|
@@ -792,14 +790,13 @@ declare const deleteFullAgent: (db: DatabaseClient, logger?: AgentLogger) => (pa
|
|
|
792
790
|
declare const getAgentById: (db: DatabaseClient) => (params: {
|
|
793
791
|
scopes: AgentScopeConfig;
|
|
794
792
|
}) => Promise<{
|
|
795
|
-
tenantId: string;
|
|
796
|
-
projectId: string;
|
|
797
|
-
id: string;
|
|
798
793
|
name: string;
|
|
799
|
-
|
|
800
|
-
prompt: string | null;
|
|
794
|
+
id: string;
|
|
801
795
|
createdAt: string;
|
|
802
796
|
updatedAt: string;
|
|
797
|
+
projectId: string;
|
|
798
|
+
tenantId: string;
|
|
799
|
+
description: string | null;
|
|
803
800
|
models: {
|
|
804
801
|
base?: {
|
|
805
802
|
model?: string | undefined;
|
|
@@ -819,6 +816,7 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
|
|
|
819
816
|
} | null;
|
|
820
817
|
defaultSubAgentId: string | null;
|
|
821
818
|
contextConfigId: string | null;
|
|
819
|
+
prompt: string | null;
|
|
822
820
|
statusUpdates: {
|
|
823
821
|
enabled?: boolean | undefined;
|
|
824
822
|
numEvents?: number | undefined;
|
|
@@ -838,14 +836,13 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
|
|
|
838
836
|
declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
|
|
839
837
|
scopes: AgentScopeConfig;
|
|
840
838
|
}) => Promise<{
|
|
841
|
-
tenantId: string;
|
|
842
|
-
projectId: string;
|
|
843
|
-
id: string;
|
|
844
839
|
name: string;
|
|
845
|
-
|
|
846
|
-
prompt: string | null;
|
|
840
|
+
id: string;
|
|
847
841
|
createdAt: string;
|
|
848
842
|
updatedAt: string;
|
|
843
|
+
projectId: string;
|
|
844
|
+
tenantId: string;
|
|
845
|
+
description: string | null;
|
|
849
846
|
models: {
|
|
850
847
|
base?: {
|
|
851
848
|
model?: string | undefined;
|
|
@@ -865,6 +862,7 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
|
|
|
865
862
|
} | null;
|
|
866
863
|
defaultSubAgentId: string | null;
|
|
867
864
|
contextConfigId: string | null;
|
|
865
|
+
prompt: string | null;
|
|
868
866
|
statusUpdates: {
|
|
869
867
|
enabled?: boolean | undefined;
|
|
870
868
|
numEvents?: number | undefined;
|
|
@@ -881,15 +879,13 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
|
|
|
881
879
|
}[] | undefined;
|
|
882
880
|
} | null;
|
|
883
881
|
defaultSubAgent: {
|
|
884
|
-
tenantId: string;
|
|
885
|
-
projectId: string;
|
|
886
|
-
id: string;
|
|
887
882
|
name: string;
|
|
888
|
-
|
|
889
|
-
prompt: string;
|
|
890
|
-
agentId: string;
|
|
883
|
+
id: string;
|
|
891
884
|
createdAt: string;
|
|
892
885
|
updatedAt: string;
|
|
886
|
+
projectId: string;
|
|
887
|
+
tenantId: string;
|
|
888
|
+
description: string;
|
|
893
889
|
models: {
|
|
894
890
|
base?: {
|
|
895
891
|
model?: string | undefined;
|
|
@@ -907,20 +903,21 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
|
|
|
907
903
|
stopWhen: {
|
|
908
904
|
stepCountIs?: number | undefined;
|
|
909
905
|
} | null;
|
|
906
|
+
agentId: string;
|
|
907
|
+
prompt: string;
|
|
910
908
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
911
909
|
} | null;
|
|
912
910
|
} | null>;
|
|
913
911
|
declare const listAgents: (db: DatabaseClient) => (params: {
|
|
914
912
|
scopes: ProjectScopeConfig;
|
|
915
913
|
}) => Promise<{
|
|
916
|
-
tenantId: string;
|
|
917
|
-
projectId: string;
|
|
918
|
-
id: string;
|
|
919
914
|
name: string;
|
|
920
|
-
|
|
921
|
-
prompt: string | null;
|
|
915
|
+
id: string;
|
|
922
916
|
createdAt: string;
|
|
923
917
|
updatedAt: string;
|
|
918
|
+
projectId: string;
|
|
919
|
+
tenantId: string;
|
|
920
|
+
description: string | null;
|
|
924
921
|
models: {
|
|
925
922
|
base?: {
|
|
926
923
|
model?: string | undefined;
|
|
@@ -940,6 +937,7 @@ declare const listAgents: (db: DatabaseClient) => (params: {
|
|
|
940
937
|
} | null;
|
|
941
938
|
defaultSubAgentId: string | null;
|
|
942
939
|
contextConfigId: string | null;
|
|
940
|
+
prompt: string | null;
|
|
943
941
|
statusUpdates: {
|
|
944
942
|
enabled?: boolean | undefined;
|
|
945
943
|
numEvents?: number | undefined;
|
|
@@ -1012,14 +1010,13 @@ declare const listAgentsPaginated: (db: DatabaseClient) => (params: {
|
|
|
1012
1010
|
};
|
|
1013
1011
|
}>;
|
|
1014
1012
|
declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promise<{
|
|
1015
|
-
tenantId: string;
|
|
1016
|
-
projectId: string;
|
|
1017
|
-
id: string;
|
|
1018
1013
|
name: string;
|
|
1019
|
-
|
|
1020
|
-
prompt: string | null;
|
|
1014
|
+
id: string;
|
|
1021
1015
|
createdAt: string;
|
|
1022
1016
|
updatedAt: string;
|
|
1017
|
+
projectId: string;
|
|
1018
|
+
tenantId: string;
|
|
1019
|
+
description: string | null;
|
|
1023
1020
|
models: {
|
|
1024
1021
|
base?: {
|
|
1025
1022
|
model?: string | undefined;
|
|
@@ -1039,6 +1036,7 @@ declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promis
|
|
|
1039
1036
|
} | null;
|
|
1040
1037
|
defaultSubAgentId: string | null;
|
|
1041
1038
|
contextConfigId: string | null;
|
|
1039
|
+
prompt: string | null;
|
|
1042
1040
|
statusUpdates: {
|
|
1043
1041
|
enabled?: boolean | undefined;
|
|
1044
1042
|
numEvents?: number | undefined;
|
|
@@ -1059,14 +1057,13 @@ declare const updateAgent: (db: DatabaseClient) => (params: {
|
|
|
1059
1057
|
scopes: AgentScopeConfig;
|
|
1060
1058
|
data: AgentUpdate;
|
|
1061
1059
|
}) => Promise<{
|
|
1062
|
-
tenantId: string;
|
|
1063
|
-
projectId: string;
|
|
1064
|
-
id: string;
|
|
1065
1060
|
name: string;
|
|
1066
|
-
|
|
1067
|
-
prompt: string | null;
|
|
1061
|
+
id: string;
|
|
1068
1062
|
createdAt: string;
|
|
1069
1063
|
updatedAt: string;
|
|
1064
|
+
projectId: string;
|
|
1065
|
+
tenantId: string;
|
|
1066
|
+
description: string | null;
|
|
1070
1067
|
models: {
|
|
1071
1068
|
base?: {
|
|
1072
1069
|
model?: string | undefined;
|
|
@@ -1086,6 +1083,7 @@ declare const updateAgent: (db: DatabaseClient) => (params: {
|
|
|
1086
1083
|
} | null;
|
|
1087
1084
|
defaultSubAgentId: string | null;
|
|
1088
1085
|
contextConfigId: string | null;
|
|
1086
|
+
prompt: string | null;
|
|
1089
1087
|
statusUpdates: {
|
|
1090
1088
|
enabled?: boolean | undefined;
|
|
1091
1089
|
numEvents?: number | undefined;
|
|
@@ -1139,49 +1137,49 @@ declare const getApiKeyById: (db: DatabaseClient) => (params: {
|
|
|
1139
1137
|
scopes: ProjectScopeConfig;
|
|
1140
1138
|
id: string;
|
|
1141
1139
|
}) => Promise<{
|
|
1142
|
-
tenantId: string;
|
|
1143
|
-
projectId: string;
|
|
1144
|
-
id: string;
|
|
1145
1140
|
name: string | null;
|
|
1141
|
+
id: string;
|
|
1142
|
+
createdAt: string;
|
|
1143
|
+
updatedAt: string;
|
|
1144
|
+
projectId: string;
|
|
1145
|
+
tenantId: string;
|
|
1146
1146
|
agentId: string;
|
|
1147
|
+
expiresAt: string | null;
|
|
1147
1148
|
publicId: string;
|
|
1148
1149
|
keyHash: string;
|
|
1149
1150
|
keyPrefix: string;
|
|
1150
1151
|
lastUsedAt: string | null;
|
|
1151
|
-
expiresAt: string | null;
|
|
1152
|
-
createdAt: string;
|
|
1153
|
-
updatedAt: string;
|
|
1154
1152
|
} | undefined>;
|
|
1155
1153
|
declare const getApiKeyByPublicId: (db: DatabaseClient) => (publicId: string) => Promise<{
|
|
1156
|
-
tenantId: string;
|
|
1157
|
-
projectId: string;
|
|
1158
|
-
id: string;
|
|
1159
1154
|
name: string | null;
|
|
1155
|
+
id: string;
|
|
1156
|
+
createdAt: string;
|
|
1157
|
+
updatedAt: string;
|
|
1158
|
+
projectId: string;
|
|
1159
|
+
tenantId: string;
|
|
1160
1160
|
agentId: string;
|
|
1161
|
+
expiresAt: string | null;
|
|
1161
1162
|
publicId: string;
|
|
1162
1163
|
keyHash: string;
|
|
1163
1164
|
keyPrefix: string;
|
|
1164
1165
|
lastUsedAt: string | null;
|
|
1165
|
-
expiresAt: string | null;
|
|
1166
|
-
createdAt: string;
|
|
1167
|
-
updatedAt: string;
|
|
1168
1166
|
} | undefined>;
|
|
1169
1167
|
declare const listApiKeys: (db: DatabaseClient) => (params: {
|
|
1170
1168
|
scopes: ProjectScopeConfig;
|
|
1171
1169
|
agentId?: string;
|
|
1172
1170
|
}) => Promise<{
|
|
1173
|
-
tenantId: string;
|
|
1174
|
-
projectId: string;
|
|
1175
|
-
id: string;
|
|
1176
1171
|
name: string | null;
|
|
1172
|
+
id: string;
|
|
1173
|
+
createdAt: string;
|
|
1174
|
+
updatedAt: string;
|
|
1175
|
+
projectId: string;
|
|
1176
|
+
tenantId: string;
|
|
1177
1177
|
agentId: string;
|
|
1178
|
+
expiresAt: string | null;
|
|
1178
1179
|
publicId: string;
|
|
1179
1180
|
keyHash: string;
|
|
1180
1181
|
keyPrefix: string;
|
|
1181
1182
|
lastUsedAt: string | null;
|
|
1182
|
-
expiresAt: string | null;
|
|
1183
|
-
createdAt: string;
|
|
1184
|
-
updatedAt: string;
|
|
1185
1183
|
}[]>;
|
|
1186
1184
|
declare const listApiKeysPaginated: (db: DatabaseClient) => (params: {
|
|
1187
1185
|
scopes: ProjectScopeConfig;
|
|
@@ -1197,36 +1195,36 @@ declare const listApiKeysPaginated: (db: DatabaseClient) => (params: {
|
|
|
1197
1195
|
};
|
|
1198
1196
|
}>;
|
|
1199
1197
|
declare const createApiKey: (db: DatabaseClient) => (params: ApiKeyInsert) => Promise<{
|
|
1200
|
-
tenantId: string;
|
|
1201
|
-
projectId: string;
|
|
1202
|
-
id: string;
|
|
1203
1198
|
name: string | null;
|
|
1199
|
+
id: string;
|
|
1200
|
+
createdAt: string;
|
|
1201
|
+
updatedAt: string;
|
|
1202
|
+
projectId: string;
|
|
1203
|
+
tenantId: string;
|
|
1204
1204
|
agentId: string;
|
|
1205
|
+
expiresAt: string | null;
|
|
1205
1206
|
publicId: string;
|
|
1206
1207
|
keyHash: string;
|
|
1207
1208
|
keyPrefix: string;
|
|
1208
1209
|
lastUsedAt: string | null;
|
|
1209
|
-
expiresAt: string | null;
|
|
1210
|
-
createdAt: string;
|
|
1211
|
-
updatedAt: string;
|
|
1212
1210
|
}>;
|
|
1213
1211
|
declare const updateApiKey: (db: DatabaseClient) => (params: {
|
|
1214
1212
|
scopes: ProjectScopeConfig;
|
|
1215
1213
|
id: string;
|
|
1216
1214
|
data: ApiKeyUpdate;
|
|
1217
1215
|
}) => Promise<{
|
|
1218
|
-
tenantId: string;
|
|
1219
|
-
projectId: string;
|
|
1220
|
-
id: string;
|
|
1221
1216
|
name: string | null;
|
|
1217
|
+
id: string;
|
|
1218
|
+
createdAt: string;
|
|
1219
|
+
updatedAt: string;
|
|
1220
|
+
projectId: string;
|
|
1221
|
+
tenantId: string;
|
|
1222
1222
|
agentId: string;
|
|
1223
|
+
expiresAt: string | null;
|
|
1223
1224
|
publicId: string;
|
|
1224
1225
|
keyHash: string;
|
|
1225
1226
|
keyPrefix: string;
|
|
1226
1227
|
lastUsedAt: string | null;
|
|
1227
|
-
expiresAt: string | null;
|
|
1228
|
-
createdAt: string;
|
|
1229
|
-
updatedAt: string;
|
|
1230
1228
|
}>;
|
|
1231
1229
|
declare const deleteApiKey: (db: DatabaseClient) => (params: {
|
|
1232
1230
|
scopes: ProjectScopeConfig;
|
|
@@ -1255,13 +1253,13 @@ declare const getArtifactComponentById: (db: DatabaseClient) => (params: {
|
|
|
1255
1253
|
scopes: ProjectScopeConfig;
|
|
1256
1254
|
id: string;
|
|
1257
1255
|
}) => Promise<{
|
|
1258
|
-
tenantId: string;
|
|
1259
|
-
projectId: string;
|
|
1260
|
-
id: string;
|
|
1261
1256
|
name: string;
|
|
1262
|
-
|
|
1257
|
+
id: string;
|
|
1263
1258
|
createdAt: string;
|
|
1264
1259
|
updatedAt: string;
|
|
1260
|
+
projectId: string;
|
|
1261
|
+
tenantId: string;
|
|
1262
|
+
description: string;
|
|
1265
1263
|
props: Record<string, unknown> | null;
|
|
1266
1264
|
} | undefined>;
|
|
1267
1265
|
declare const listArtifactComponents: (db: DatabaseClient) => (params: {
|
|
@@ -1289,13 +1287,13 @@ declare const listArtifactComponentsPaginated: (db: DatabaseClient) => (params:
|
|
|
1289
1287
|
};
|
|
1290
1288
|
}>;
|
|
1291
1289
|
declare const createArtifactComponent: (db: DatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
|
|
1292
|
-
tenantId: string;
|
|
1293
|
-
projectId: string;
|
|
1294
|
-
id: string;
|
|
1295
1290
|
name: string;
|
|
1296
|
-
|
|
1291
|
+
id: string;
|
|
1297
1292
|
createdAt: string;
|
|
1298
1293
|
updatedAt: string;
|
|
1294
|
+
projectId: string;
|
|
1295
|
+
tenantId: string;
|
|
1296
|
+
description: string;
|
|
1299
1297
|
props: Record<string, unknown> | null;
|
|
1300
1298
|
}>;
|
|
1301
1299
|
declare const updateArtifactComponent: (db: DatabaseClient) => (params: {
|
|
@@ -1303,13 +1301,13 @@ declare const updateArtifactComponent: (db: DatabaseClient) => (params: {
|
|
|
1303
1301
|
id: string;
|
|
1304
1302
|
data: ArtifactComponentUpdate;
|
|
1305
1303
|
}) => Promise<{
|
|
1306
|
-
tenantId: string;
|
|
1307
|
-
projectId: string;
|
|
1308
|
-
id: string;
|
|
1309
1304
|
name: string;
|
|
1310
|
-
|
|
1305
|
+
id: string;
|
|
1311
1306
|
createdAt: string;
|
|
1312
1307
|
updatedAt: string;
|
|
1308
|
+
projectId: string;
|
|
1309
|
+
tenantId: string;
|
|
1310
|
+
description: string;
|
|
1313
1311
|
props: Record<string, unknown> | null;
|
|
1314
1312
|
}>;
|
|
1315
1313
|
declare const deleteArtifactComponent: (db: DatabaseClient) => (params: {
|
|
@@ -1332,11 +1330,11 @@ declare const associateArtifactComponentWithAgent: (db: DatabaseClient) => (para
|
|
|
1332
1330
|
scopes: SubAgentScopeConfig;
|
|
1333
1331
|
artifactComponentId: string;
|
|
1334
1332
|
}) => Promise<{
|
|
1335
|
-
tenantId: string;
|
|
1336
|
-
projectId: string;
|
|
1337
1333
|
id: string;
|
|
1338
|
-
agentId: string;
|
|
1339
1334
|
createdAt: string;
|
|
1335
|
+
projectId: string;
|
|
1336
|
+
tenantId: string;
|
|
1337
|
+
agentId: string;
|
|
1340
1338
|
subAgentId: string;
|
|
1341
1339
|
artifactComponentId: string;
|
|
1342
1340
|
}>;
|
|
@@ -1375,11 +1373,11 @@ declare const upsertAgentArtifactComponentRelation: (db: DatabaseClient) => (par
|
|
|
1375
1373
|
scopes: SubAgentScopeConfig;
|
|
1376
1374
|
artifactComponentId: string;
|
|
1377
1375
|
}) => Promise<{
|
|
1378
|
-
tenantId: string;
|
|
1379
|
-
projectId: string;
|
|
1380
1376
|
id: string;
|
|
1381
|
-
agentId: string;
|
|
1382
1377
|
createdAt: string;
|
|
1378
|
+
projectId: string;
|
|
1379
|
+
tenantId: string;
|
|
1380
|
+
agentId: string;
|
|
1383
1381
|
subAgentId: string;
|
|
1384
1382
|
artifactComponentId: string;
|
|
1385
1383
|
} | null>;
|
|
@@ -1459,26 +1457,26 @@ declare const getContextConfigById: (db: DatabaseClient) => (params: {
|
|
|
1459
1457
|
scopes: AgentScopeConfig;
|
|
1460
1458
|
id: string;
|
|
1461
1459
|
}) => Promise<{
|
|
1462
|
-
tenantId: string;
|
|
1463
|
-
projectId: string;
|
|
1464
1460
|
id: string;
|
|
1465
|
-
agentId: string;
|
|
1466
1461
|
createdAt: string;
|
|
1467
1462
|
updatedAt: string;
|
|
1463
|
+
projectId: string;
|
|
1464
|
+
tenantId: string;
|
|
1468
1465
|
headersSchema: unknown;
|
|
1469
1466
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
1467
|
+
agentId: string;
|
|
1470
1468
|
} | undefined>;
|
|
1471
1469
|
declare const listContextConfigs: (db: DatabaseClient) => (params: {
|
|
1472
1470
|
scopes: AgentScopeConfig;
|
|
1473
1471
|
}) => Promise<{
|
|
1474
|
-
tenantId: string;
|
|
1475
|
-
projectId: string;
|
|
1476
1472
|
id: string;
|
|
1477
|
-
agentId: string;
|
|
1478
1473
|
createdAt: string;
|
|
1479
1474
|
updatedAt: string;
|
|
1475
|
+
projectId: string;
|
|
1476
|
+
tenantId: string;
|
|
1480
1477
|
headersSchema: unknown;
|
|
1481
1478
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
1479
|
+
agentId: string;
|
|
1482
1480
|
}[]>;
|
|
1483
1481
|
declare const listContextConfigsPaginated: (db: DatabaseClient) => (params: {
|
|
1484
1482
|
scopes: AgentScopeConfig;
|
|
@@ -1493,28 +1491,28 @@ declare const listContextConfigsPaginated: (db: DatabaseClient) => (params: {
|
|
|
1493
1491
|
};
|
|
1494
1492
|
}>;
|
|
1495
1493
|
declare const createContextConfig: (db: DatabaseClient) => (params: ContextConfigInsert) => Promise<{
|
|
1496
|
-
tenantId: string;
|
|
1497
|
-
projectId: string;
|
|
1498
1494
|
id: string;
|
|
1499
|
-
agentId: string;
|
|
1500
1495
|
createdAt: string;
|
|
1501
1496
|
updatedAt: string;
|
|
1497
|
+
projectId: string;
|
|
1498
|
+
tenantId: string;
|
|
1502
1499
|
headersSchema: unknown;
|
|
1503
1500
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
1501
|
+
agentId: string;
|
|
1504
1502
|
}>;
|
|
1505
1503
|
declare const updateContextConfig: (db: DatabaseClient) => (params: {
|
|
1506
1504
|
scopes: AgentScopeConfig;
|
|
1507
1505
|
id: string;
|
|
1508
1506
|
data: Partial<ContextConfigUpdate>;
|
|
1509
1507
|
}) => Promise<{
|
|
1510
|
-
tenantId: string;
|
|
1511
|
-
projectId: string;
|
|
1512
1508
|
id: string;
|
|
1513
|
-
agentId: string;
|
|
1514
1509
|
createdAt: string;
|
|
1515
1510
|
updatedAt: string;
|
|
1511
|
+
projectId: string;
|
|
1512
|
+
tenantId: string;
|
|
1516
1513
|
headersSchema: unknown;
|
|
1517
1514
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
1515
|
+
agentId: string;
|
|
1518
1516
|
}>;
|
|
1519
1517
|
declare const deleteContextConfig: (db: DatabaseClient) => (params: {
|
|
1520
1518
|
scopes: AgentScopeConfig;
|
|
@@ -1533,14 +1531,14 @@ declare const countContextConfigs: (db: DatabaseClient) => (params: {
|
|
|
1533
1531
|
declare const upsertContextConfig: (db: DatabaseClient) => (params: {
|
|
1534
1532
|
data: ContextConfigInsert;
|
|
1535
1533
|
}) => Promise<{
|
|
1536
|
-
tenantId: string;
|
|
1537
|
-
projectId: string;
|
|
1538
1534
|
id: string;
|
|
1539
|
-
agentId: string;
|
|
1540
1535
|
createdAt: string;
|
|
1541
1536
|
updatedAt: string;
|
|
1537
|
+
projectId: string;
|
|
1538
|
+
tenantId: string;
|
|
1542
1539
|
headersSchema: unknown;
|
|
1543
1540
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
1541
|
+
agentId: string;
|
|
1544
1542
|
}>;
|
|
1545
1543
|
|
|
1546
1544
|
declare const listConversations: (db: DatabaseClient) => (params: {
|
|
@@ -1552,12 +1550,12 @@ declare const listConversations: (db: DatabaseClient) => (params: {
|
|
|
1552
1550
|
total: number;
|
|
1553
1551
|
}>;
|
|
1554
1552
|
declare const createConversation: (db: DatabaseClient) => (params: ConversationInsert) => Promise<{
|
|
1555
|
-
tenantId: string;
|
|
1556
|
-
projectId: string;
|
|
1557
1553
|
id: string;
|
|
1558
|
-
title: string | null;
|
|
1559
1554
|
createdAt: string;
|
|
1560
1555
|
updatedAt: string;
|
|
1556
|
+
projectId: string;
|
|
1557
|
+
tenantId: string;
|
|
1558
|
+
title: string | null;
|
|
1561
1559
|
metadata: ConversationMetadata | null;
|
|
1562
1560
|
userId: string | null;
|
|
1563
1561
|
activeSubAgentId: string;
|
|
@@ -1568,12 +1566,12 @@ declare const updateConversation: (db: DatabaseClient) => (params: {
|
|
|
1568
1566
|
conversationId: string;
|
|
1569
1567
|
data: ConversationUpdate;
|
|
1570
1568
|
}) => Promise<{
|
|
1571
|
-
tenantId: string;
|
|
1572
|
-
projectId: string;
|
|
1573
1569
|
id: string;
|
|
1574
|
-
title: string | null;
|
|
1575
1570
|
createdAt: string;
|
|
1576
1571
|
updatedAt: string;
|
|
1572
|
+
projectId: string;
|
|
1573
|
+
tenantId: string;
|
|
1574
|
+
title: string | null;
|
|
1577
1575
|
metadata: ConversationMetadata | null;
|
|
1578
1576
|
userId: string | null;
|
|
1579
1577
|
activeSubAgentId: string;
|
|
@@ -1588,12 +1586,12 @@ declare const updateConversationActiveAgent: (db: DatabaseClient) => (params: {
|
|
|
1588
1586
|
conversationId: string;
|
|
1589
1587
|
activeSubAgentId: string;
|
|
1590
1588
|
}) => Promise<{
|
|
1591
|
-
tenantId: string;
|
|
1592
|
-
projectId: string;
|
|
1593
1589
|
id: string;
|
|
1594
|
-
title: string | null;
|
|
1595
1590
|
createdAt: string;
|
|
1596
1591
|
updatedAt: string;
|
|
1592
|
+
projectId: string;
|
|
1593
|
+
tenantId: string;
|
|
1594
|
+
title: string | null;
|
|
1597
1595
|
metadata: ConversationMetadata | null;
|
|
1598
1596
|
userId: string | null;
|
|
1599
1597
|
activeSubAgentId: string;
|
|
@@ -1603,12 +1601,12 @@ declare const getConversation: (db: DatabaseClient) => (params: {
|
|
|
1603
1601
|
scopes: ProjectScopeConfig;
|
|
1604
1602
|
conversationId: string;
|
|
1605
1603
|
}) => Promise<{
|
|
1606
|
-
tenantId: string;
|
|
1607
|
-
projectId: string;
|
|
1608
1604
|
id: string;
|
|
1609
|
-
title: string | null;
|
|
1610
1605
|
createdAt: string;
|
|
1611
1606
|
updatedAt: string;
|
|
1607
|
+
projectId: string;
|
|
1608
|
+
tenantId: string;
|
|
1609
|
+
title: string | null;
|
|
1612
1610
|
metadata: ConversationMetadata | null;
|
|
1613
1611
|
userId: string | null;
|
|
1614
1612
|
activeSubAgentId: string;
|
|
@@ -1627,12 +1625,12 @@ declare const createOrGetConversation: (db: DatabaseClient) => (input: Conversat
|
|
|
1627
1625
|
metadata?: ConversationMetadata | null | undefined;
|
|
1628
1626
|
contextConfigId?: string | undefined;
|
|
1629
1627
|
} | {
|
|
1630
|
-
tenantId: string;
|
|
1631
|
-
projectId: string;
|
|
1632
1628
|
id: string;
|
|
1633
|
-
title: string | null;
|
|
1634
1629
|
createdAt: string;
|
|
1635
1630
|
updatedAt: string;
|
|
1631
|
+
projectId: string;
|
|
1632
|
+
tenantId: string;
|
|
1633
|
+
title: string | null;
|
|
1636
1634
|
metadata: ConversationMetadata | null;
|
|
1637
1635
|
userId: string | null;
|
|
1638
1636
|
activeSubAgentId: string;
|
|
@@ -1653,12 +1651,12 @@ declare const getActiveAgentForConversation: (db: DatabaseClient) => (params: {
|
|
|
1653
1651
|
scopes: ProjectScopeConfig;
|
|
1654
1652
|
conversationId: string;
|
|
1655
1653
|
}) => Promise<{
|
|
1656
|
-
tenantId: string;
|
|
1657
|
-
projectId: string;
|
|
1658
1654
|
id: string;
|
|
1659
|
-
title: string | null;
|
|
1660
1655
|
createdAt: string;
|
|
1661
1656
|
updatedAt: string;
|
|
1657
|
+
projectId: string;
|
|
1658
|
+
tenantId: string;
|
|
1659
|
+
title: string | null;
|
|
1662
1660
|
metadata: ConversationMetadata | null;
|
|
1663
1661
|
userId: string | null;
|
|
1664
1662
|
activeSubAgentId: string;
|
|
@@ -1823,11 +1821,11 @@ declare const associateDataComponentWithAgent: (db: DatabaseClient) => (params:
|
|
|
1823
1821
|
scopes: SubAgentScopeConfig;
|
|
1824
1822
|
dataComponentId: string;
|
|
1825
1823
|
}) => Promise<{
|
|
1826
|
-
tenantId: string;
|
|
1827
|
-
projectId: string;
|
|
1828
1824
|
id: string;
|
|
1829
|
-
agentId: string;
|
|
1830
1825
|
createdAt: string;
|
|
1826
|
+
projectId: string;
|
|
1827
|
+
tenantId: string;
|
|
1828
|
+
agentId: string;
|
|
1831
1829
|
subAgentId: string;
|
|
1832
1830
|
dataComponentId: string;
|
|
1833
1831
|
}>;
|
|
@@ -1865,11 +1863,11 @@ declare const upsertAgentDataComponentRelation: (db: DatabaseClient) => (params:
|
|
|
1865
1863
|
scopes: SubAgentScopeConfig;
|
|
1866
1864
|
dataComponentId: string;
|
|
1867
1865
|
}) => Promise<{
|
|
1868
|
-
tenantId: string;
|
|
1869
|
-
projectId: string;
|
|
1870
1866
|
id: string;
|
|
1871
|
-
agentId: string;
|
|
1872
1867
|
createdAt: string;
|
|
1868
|
+
projectId: string;
|
|
1869
|
+
tenantId: string;
|
|
1870
|
+
agentId: string;
|
|
1873
1871
|
subAgentId: string;
|
|
1874
1872
|
dataComponentId: string;
|
|
1875
1873
|
} | null>;
|
|
@@ -2044,14 +2042,14 @@ declare const createFunctionTool: (db: DatabaseClient) => (params: {
|
|
|
2044
2042
|
data: FunctionToolApiInsert;
|
|
2045
2043
|
scopes: AgentScopeConfig;
|
|
2046
2044
|
}) => Promise<{
|
|
2047
|
-
tenantId: string;
|
|
2048
|
-
projectId: string;
|
|
2049
|
-
id: string;
|
|
2050
2045
|
name: string;
|
|
2051
|
-
|
|
2052
|
-
agentId: string;
|
|
2046
|
+
id: string;
|
|
2053
2047
|
createdAt: string;
|
|
2054
2048
|
updatedAt: string;
|
|
2049
|
+
projectId: string;
|
|
2050
|
+
tenantId: string;
|
|
2051
|
+
description: string | null;
|
|
2052
|
+
agentId: string;
|
|
2055
2053
|
functionId: string;
|
|
2056
2054
|
}>;
|
|
2057
2055
|
/**
|
|
@@ -2062,15 +2060,15 @@ declare const updateFunctionTool: (db: DatabaseClient) => (params: {
|
|
|
2062
2060
|
functionToolId: string;
|
|
2063
2061
|
data: FunctionToolApiUpdate;
|
|
2064
2062
|
}) => Promise<{
|
|
2065
|
-
tenantId: string;
|
|
2066
|
-
projectId: string;
|
|
2067
|
-
id: string;
|
|
2068
2063
|
name: string;
|
|
2069
|
-
|
|
2070
|
-
agentId: string;
|
|
2064
|
+
id: string;
|
|
2071
2065
|
createdAt: string;
|
|
2072
2066
|
updatedAt: string;
|
|
2073
|
-
|
|
2067
|
+
projectId: string;
|
|
2068
|
+
tenantId: string;
|
|
2069
|
+
description: string | null;
|
|
2070
|
+
agentId: string;
|
|
2071
|
+
functionId: string;
|
|
2074
2072
|
}>;
|
|
2075
2073
|
/**
|
|
2076
2074
|
* Delete a function tool (agent-scoped)
|
|
@@ -2086,14 +2084,14 @@ declare const upsertFunctionTool: (db: DatabaseClient) => (params: {
|
|
|
2086
2084
|
data: FunctionToolApiInsert;
|
|
2087
2085
|
scopes: AgentScopeConfig;
|
|
2088
2086
|
}) => Promise<{
|
|
2089
|
-
tenantId: string;
|
|
2090
|
-
projectId: string;
|
|
2091
|
-
id: string;
|
|
2092
2087
|
name: string;
|
|
2093
|
-
|
|
2094
|
-
agentId: string;
|
|
2088
|
+
id: string;
|
|
2095
2089
|
createdAt: string;
|
|
2096
2090
|
updatedAt: string;
|
|
2091
|
+
projectId: string;
|
|
2092
|
+
tenantId: string;
|
|
2093
|
+
description: string | null;
|
|
2094
|
+
agentId: string;
|
|
2097
2095
|
functionId: string;
|
|
2098
2096
|
}>;
|
|
2099
2097
|
declare const getFunctionToolsForSubAgent: (db: DatabaseClient) => (params: {
|
|
@@ -2223,11 +2221,11 @@ declare const getMessageById: (db: DatabaseClient) => (params: {
|
|
|
2223
2221
|
scopes: ProjectScopeConfig;
|
|
2224
2222
|
messageId: string;
|
|
2225
2223
|
}) => Promise<{
|
|
2226
|
-
tenantId: string;
|
|
2227
|
-
projectId: string;
|
|
2228
2224
|
id: string;
|
|
2229
2225
|
createdAt: string;
|
|
2230
2226
|
updatedAt: string;
|
|
2227
|
+
projectId: string;
|
|
2228
|
+
tenantId: string;
|
|
2231
2229
|
metadata: MessageMetadata | null;
|
|
2232
2230
|
content: MessageContent;
|
|
2233
2231
|
conversationId: string;
|
|
@@ -2354,11 +2352,11 @@ declare const getVisibleMessages: (db: DatabaseClient) => (params: {
|
|
|
2354
2352
|
id: string;
|
|
2355
2353
|
}[]>;
|
|
2356
2354
|
declare const createMessage: (db: DatabaseClient) => (params: MessageInsert) => Promise<{
|
|
2357
|
-
tenantId: string;
|
|
2358
|
-
projectId: string;
|
|
2359
2355
|
id: string;
|
|
2360
2356
|
createdAt: string;
|
|
2361
2357
|
updatedAt: string;
|
|
2358
|
+
projectId: string;
|
|
2359
|
+
tenantId: string;
|
|
2362
2360
|
metadata: MessageMetadata | null;
|
|
2363
2361
|
content: MessageContent;
|
|
2364
2362
|
conversationId: string;
|
|
@@ -2381,11 +2379,11 @@ declare const updateMessage: (db: DatabaseClient) => (params: {
|
|
|
2381
2379
|
messageId: string;
|
|
2382
2380
|
data: MessageUpdate;
|
|
2383
2381
|
}) => Promise<{
|
|
2384
|
-
tenantId: string;
|
|
2385
|
-
projectId: string;
|
|
2386
2382
|
id: string;
|
|
2387
2383
|
createdAt: string;
|
|
2388
2384
|
updatedAt: string;
|
|
2385
|
+
projectId: string;
|
|
2386
|
+
tenantId: string;
|
|
2389
2387
|
metadata: MessageMetadata | null;
|
|
2390
2388
|
content: MessageContent;
|
|
2391
2389
|
conversationId: string;
|
|
@@ -2407,11 +2405,11 @@ declare const deleteMessage: (db: DatabaseClient) => (params: {
|
|
|
2407
2405
|
scopes: ProjectScopeConfig;
|
|
2408
2406
|
messageId: string;
|
|
2409
2407
|
}) => Promise<{
|
|
2410
|
-
tenantId: string;
|
|
2411
|
-
projectId: string;
|
|
2412
2408
|
id: string;
|
|
2413
2409
|
createdAt: string;
|
|
2414
2410
|
updatedAt: string;
|
|
2411
|
+
projectId: string;
|
|
2412
|
+
tenantId: string;
|
|
2415
2413
|
metadata: MessageMetadata | null;
|
|
2416
2414
|
content: MessageContent;
|
|
2417
2415
|
conversationId: string;
|
|
@@ -2532,15 +2530,15 @@ declare const getSubAgentExternalAgentRelationById: (db: DatabaseClient) => (par
|
|
|
2532
2530
|
scopes: SubAgentScopeConfig;
|
|
2533
2531
|
relationId: string;
|
|
2534
2532
|
}) => Promise<{
|
|
2535
|
-
|
|
2536
|
-
projectId: string;
|
|
2533
|
+
headers: Record<string, string> | null;
|
|
2537
2534
|
id: string;
|
|
2538
|
-
agentId: string;
|
|
2539
2535
|
createdAt: string;
|
|
2540
2536
|
updatedAt: string;
|
|
2541
|
-
|
|
2542
|
-
|
|
2537
|
+
projectId: string;
|
|
2538
|
+
tenantId: string;
|
|
2539
|
+
agentId: string;
|
|
2543
2540
|
subAgentId: string;
|
|
2541
|
+
externalAgentId: string;
|
|
2544
2542
|
} | undefined>;
|
|
2545
2543
|
declare const listSubAgentExternalAgentRelations: (db: DatabaseClient) => (params: {
|
|
2546
2544
|
scopes: SubAgentScopeConfig;
|
|
@@ -2567,28 +2565,28 @@ declare const listSubAgentExternalAgentRelations: (db: DatabaseClient) => (param
|
|
|
2567
2565
|
declare const getSubAgentExternalAgentRelations: (db: DatabaseClient) => (params: {
|
|
2568
2566
|
scopes: SubAgentScopeConfig;
|
|
2569
2567
|
}) => Promise<{
|
|
2570
|
-
|
|
2571
|
-
projectId: string;
|
|
2568
|
+
headers: Record<string, string> | null;
|
|
2572
2569
|
id: string;
|
|
2573
|
-
agentId: string;
|
|
2574
2570
|
createdAt: string;
|
|
2575
2571
|
updatedAt: string;
|
|
2576
|
-
|
|
2577
|
-
|
|
2572
|
+
projectId: string;
|
|
2573
|
+
tenantId: string;
|
|
2574
|
+
agentId: string;
|
|
2578
2575
|
subAgentId: string;
|
|
2576
|
+
externalAgentId: string;
|
|
2579
2577
|
}[]>;
|
|
2580
2578
|
declare const getSubAgentExternalAgentRelationsByAgent: (db: DatabaseClient) => (params: {
|
|
2581
2579
|
scopes: AgentScopeConfig;
|
|
2582
2580
|
}) => Promise<{
|
|
2583
|
-
|
|
2584
|
-
projectId: string;
|
|
2581
|
+
headers: Record<string, string> | null;
|
|
2585
2582
|
id: string;
|
|
2586
|
-
agentId: string;
|
|
2587
2583
|
createdAt: string;
|
|
2588
2584
|
updatedAt: string;
|
|
2589
|
-
|
|
2590
|
-
|
|
2585
|
+
projectId: string;
|
|
2586
|
+
tenantId: string;
|
|
2587
|
+
agentId: string;
|
|
2591
2588
|
subAgentId: string;
|
|
2589
|
+
externalAgentId: string;
|
|
2592
2590
|
}[]>;
|
|
2593
2591
|
declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: DatabaseClient) => (params: {
|
|
2594
2592
|
scopes: AgentScopeConfig;
|
|
@@ -2703,15 +2701,15 @@ declare const createSubAgentExternalAgentRelation: (db: DatabaseClient) => (para
|
|
|
2703
2701
|
headers?: Record<string, string> | null;
|
|
2704
2702
|
};
|
|
2705
2703
|
}) => Promise<{
|
|
2706
|
-
|
|
2707
|
-
projectId: string;
|
|
2704
|
+
headers: Record<string, string> | null;
|
|
2708
2705
|
id: string;
|
|
2709
|
-
agentId: string;
|
|
2710
2706
|
createdAt: string;
|
|
2711
2707
|
updatedAt: string;
|
|
2712
|
-
|
|
2713
|
-
|
|
2708
|
+
projectId: string;
|
|
2709
|
+
tenantId: string;
|
|
2710
|
+
agentId: string;
|
|
2714
2711
|
subAgentId: string;
|
|
2712
|
+
externalAgentId: string;
|
|
2715
2713
|
}>;
|
|
2716
2714
|
/**
|
|
2717
2715
|
* Check if sub-agent external agent relation exists by params
|
|
@@ -2720,15 +2718,15 @@ declare const getSubAgentExternalAgentRelationByParams: (db: DatabaseClient) =>
|
|
|
2720
2718
|
scopes: SubAgentScopeConfig;
|
|
2721
2719
|
externalAgentId: string;
|
|
2722
2720
|
}) => Promise<{
|
|
2723
|
-
|
|
2724
|
-
projectId: string;
|
|
2721
|
+
headers: Record<string, string> | null;
|
|
2725
2722
|
id: string;
|
|
2726
|
-
agentId: string;
|
|
2727
2723
|
createdAt: string;
|
|
2728
2724
|
updatedAt: string;
|
|
2729
|
-
|
|
2730
|
-
|
|
2725
|
+
projectId: string;
|
|
2726
|
+
tenantId: string;
|
|
2727
|
+
agentId: string;
|
|
2731
2728
|
subAgentId: string;
|
|
2729
|
+
externalAgentId: string;
|
|
2732
2730
|
} | undefined>;
|
|
2733
2731
|
/**
|
|
2734
2732
|
* Upsert sub-agent external agent relation (create if it doesn't exist, update if it does)
|
|
@@ -2741,30 +2739,30 @@ declare const upsertSubAgentExternalAgentRelation: (db: DatabaseClient) => (para
|
|
|
2741
2739
|
headers?: Record<string, string> | null;
|
|
2742
2740
|
};
|
|
2743
2741
|
}) => Promise<{
|
|
2744
|
-
|
|
2745
|
-
projectId: string;
|
|
2742
|
+
headers: Record<string, string> | null;
|
|
2746
2743
|
id: string;
|
|
2747
|
-
agentId: string;
|
|
2748
2744
|
createdAt: string;
|
|
2749
2745
|
updatedAt: string;
|
|
2750
|
-
|
|
2751
|
-
|
|
2746
|
+
projectId: string;
|
|
2747
|
+
tenantId: string;
|
|
2748
|
+
agentId: string;
|
|
2752
2749
|
subAgentId: string;
|
|
2750
|
+
externalAgentId: string;
|
|
2753
2751
|
}>;
|
|
2754
2752
|
declare const updateSubAgentExternalAgentRelation: (db: DatabaseClient) => (params: {
|
|
2755
2753
|
scopes: SubAgentScopeConfig;
|
|
2756
2754
|
relationId: string;
|
|
2757
2755
|
data: Partial<SubAgentExternalAgentRelationInsert>;
|
|
2758
2756
|
}) => Promise<{
|
|
2759
|
-
|
|
2760
|
-
projectId: string;
|
|
2757
|
+
headers: Record<string, string> | null;
|
|
2761
2758
|
id: string;
|
|
2762
|
-
agentId: string;
|
|
2763
2759
|
createdAt: string;
|
|
2764
2760
|
updatedAt: string;
|
|
2765
|
-
|
|
2766
|
-
|
|
2761
|
+
projectId: string;
|
|
2762
|
+
tenantId: string;
|
|
2763
|
+
agentId: string;
|
|
2767
2764
|
subAgentId: string;
|
|
2765
|
+
externalAgentId: string;
|
|
2768
2766
|
}>;
|
|
2769
2767
|
declare const deleteSubAgentExternalAgentRelation: (db: DatabaseClient) => (params: {
|
|
2770
2768
|
scopes: SubAgentScopeConfig;
|
|
@@ -2781,12 +2779,12 @@ declare const getAgentRelationById: (db: DatabaseClient) => (params: {
|
|
|
2781
2779
|
scopes: AgentScopeConfig;
|
|
2782
2780
|
relationId: string;
|
|
2783
2781
|
}) => Promise<{
|
|
2784
|
-
tenantId: string;
|
|
2785
|
-
projectId: string;
|
|
2786
2782
|
id: string;
|
|
2787
|
-
agentId: string;
|
|
2788
2783
|
createdAt: string;
|
|
2789
2784
|
updatedAt: string;
|
|
2785
|
+
projectId: string;
|
|
2786
|
+
tenantId: string;
|
|
2787
|
+
agentId: string;
|
|
2790
2788
|
sourceSubAgentId: string;
|
|
2791
2789
|
targetSubAgentId: string | null;
|
|
2792
2790
|
relationType: string | null;
|
|
@@ -2816,12 +2814,12 @@ declare const listAgentRelations: (db: DatabaseClient) => (params: {
|
|
|
2816
2814
|
declare const getAgentRelations: (db: DatabaseClient) => (params: {
|
|
2817
2815
|
scopes: SubAgentScopeConfig;
|
|
2818
2816
|
}) => Promise<{
|
|
2819
|
-
tenantId: string;
|
|
2820
|
-
projectId: string;
|
|
2821
2817
|
id: string;
|
|
2822
|
-
agentId: string;
|
|
2823
2818
|
createdAt: string;
|
|
2824
2819
|
updatedAt: string;
|
|
2820
|
+
projectId: string;
|
|
2821
|
+
tenantId: string;
|
|
2822
|
+
agentId: string;
|
|
2825
2823
|
sourceSubAgentId: string;
|
|
2826
2824
|
targetSubAgentId: string | null;
|
|
2827
2825
|
relationType: string | null;
|
|
@@ -2829,12 +2827,12 @@ declare const getAgentRelations: (db: DatabaseClient) => (params: {
|
|
|
2829
2827
|
declare const getAgentRelationsByAgent: (db: DatabaseClient) => (params: {
|
|
2830
2828
|
scopes: AgentScopeConfig;
|
|
2831
2829
|
}) => Promise<{
|
|
2832
|
-
tenantId: string;
|
|
2833
|
-
projectId: string;
|
|
2834
2830
|
id: string;
|
|
2835
|
-
agentId: string;
|
|
2836
2831
|
createdAt: string;
|
|
2837
2832
|
updatedAt: string;
|
|
2833
|
+
projectId: string;
|
|
2834
|
+
tenantId: string;
|
|
2835
|
+
agentId: string;
|
|
2838
2836
|
sourceSubAgentId: string;
|
|
2839
2837
|
targetSubAgentId: string | null;
|
|
2840
2838
|
relationType: string | null;
|
|
@@ -2897,12 +2895,12 @@ declare const getRelatedAgentsForAgent: (db: DatabaseClient) => (params: {
|
|
|
2897
2895
|
}[];
|
|
2898
2896
|
}>;
|
|
2899
2897
|
declare const createSubAgentRelation: (db: DatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
|
|
2900
|
-
tenantId: string;
|
|
2901
|
-
projectId: string;
|
|
2902
2898
|
id: string;
|
|
2903
|
-
agentId: string;
|
|
2904
2899
|
createdAt: string;
|
|
2905
2900
|
updatedAt: string;
|
|
2901
|
+
projectId: string;
|
|
2902
|
+
tenantId: string;
|
|
2903
|
+
agentId: string;
|
|
2906
2904
|
sourceSubAgentId: string;
|
|
2907
2905
|
targetSubAgentId: string | null;
|
|
2908
2906
|
relationType: string | null;
|
|
@@ -2916,12 +2914,12 @@ declare const getAgentRelationByParams: (db: DatabaseClient) => (params: {
|
|
|
2916
2914
|
targetSubAgentId?: string;
|
|
2917
2915
|
relationType: string;
|
|
2918
2916
|
}) => Promise<{
|
|
2919
|
-
tenantId: string;
|
|
2920
|
-
projectId: string;
|
|
2921
2917
|
id: string;
|
|
2922
|
-
agentId: string;
|
|
2923
2918
|
createdAt: string;
|
|
2924
2919
|
updatedAt: string;
|
|
2920
|
+
projectId: string;
|
|
2921
|
+
tenantId: string;
|
|
2922
|
+
agentId: string;
|
|
2925
2923
|
sourceSubAgentId: string;
|
|
2926
2924
|
targetSubAgentId: string | null;
|
|
2927
2925
|
relationType: string | null;
|
|
@@ -2930,12 +2928,12 @@ declare const getAgentRelationByParams: (db: DatabaseClient) => (params: {
|
|
|
2930
2928
|
* Upsert agent relation (create if it doesn't exist, no-op if it does)
|
|
2931
2929
|
*/
|
|
2932
2930
|
declare const upsertSubAgentRelation: (db: DatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
|
|
2933
|
-
tenantId: string;
|
|
2934
|
-
projectId: string;
|
|
2935
2931
|
id: string;
|
|
2936
|
-
agentId: string;
|
|
2937
2932
|
createdAt: string;
|
|
2938
2933
|
updatedAt: string;
|
|
2934
|
+
projectId: string;
|
|
2935
|
+
tenantId: string;
|
|
2936
|
+
agentId: string;
|
|
2939
2937
|
sourceSubAgentId: string;
|
|
2940
2938
|
targetSubAgentId: string | null;
|
|
2941
2939
|
relationType: string | null;
|
|
@@ -2945,12 +2943,12 @@ declare const updateAgentRelation: (db: DatabaseClient) => (params: {
|
|
|
2945
2943
|
relationId: string;
|
|
2946
2944
|
data: SubAgentRelationUpdate;
|
|
2947
2945
|
}) => Promise<{
|
|
2948
|
-
tenantId: string;
|
|
2949
|
-
projectId: string;
|
|
2950
2946
|
id: string;
|
|
2951
|
-
agentId: string;
|
|
2952
2947
|
createdAt: string;
|
|
2953
2948
|
updatedAt: string;
|
|
2949
|
+
projectId: string;
|
|
2950
|
+
tenantId: string;
|
|
2951
|
+
agentId: string;
|
|
2954
2952
|
sourceSubAgentId: string;
|
|
2955
2953
|
targetSubAgentId: string | null;
|
|
2956
2954
|
relationType: string | null;
|
|
@@ -2972,32 +2970,32 @@ declare const createAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
|
2972
2970
|
headers?: Record<string, string> | null;
|
|
2973
2971
|
};
|
|
2974
2972
|
}) => Promise<{
|
|
2975
|
-
|
|
2976
|
-
projectId: string;
|
|
2973
|
+
headers: Record<string, string> | null;
|
|
2977
2974
|
id: string;
|
|
2978
|
-
agentId: string;
|
|
2979
2975
|
createdAt: string;
|
|
2980
2976
|
updatedAt: string;
|
|
2981
|
-
|
|
2982
|
-
|
|
2977
|
+
projectId: string;
|
|
2978
|
+
tenantId: string;
|
|
2979
|
+
agentId: string;
|
|
2983
2980
|
selectedTools: string[] | null;
|
|
2984
2981
|
subAgentId: string;
|
|
2982
|
+
toolId: string;
|
|
2985
2983
|
}>;
|
|
2986
2984
|
declare const updateAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
2987
2985
|
scopes: AgentScopeConfig;
|
|
2988
2986
|
relationId: string;
|
|
2989
2987
|
data: SubAgentToolRelationUpdate;
|
|
2990
2988
|
}) => Promise<{
|
|
2991
|
-
|
|
2992
|
-
projectId: string;
|
|
2989
|
+
headers: Record<string, string> | null;
|
|
2993
2990
|
id: string;
|
|
2994
|
-
agentId: string;
|
|
2995
2991
|
createdAt: string;
|
|
2996
2992
|
updatedAt: string;
|
|
2997
|
-
|
|
2998
|
-
|
|
2993
|
+
projectId: string;
|
|
2994
|
+
tenantId: string;
|
|
2995
|
+
agentId: string;
|
|
2999
2996
|
selectedTools: string[] | null;
|
|
3000
2997
|
subAgentId: string;
|
|
2998
|
+
toolId: string;
|
|
3001
2999
|
}>;
|
|
3002
3000
|
declare const deleteAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
3003
3001
|
scopes: AgentScopeConfig;
|
|
@@ -3010,16 +3008,16 @@ declare const getAgentToolRelationById: (db: DatabaseClient) => (params: {
|
|
|
3010
3008
|
scopes: SubAgentScopeConfig;
|
|
3011
3009
|
relationId: string;
|
|
3012
3010
|
}) => Promise<{
|
|
3013
|
-
|
|
3014
|
-
projectId: string;
|
|
3011
|
+
headers: Record<string, string> | null;
|
|
3015
3012
|
id: string;
|
|
3016
|
-
agentId: string;
|
|
3017
3013
|
createdAt: string;
|
|
3018
3014
|
updatedAt: string;
|
|
3019
|
-
|
|
3020
|
-
|
|
3015
|
+
projectId: string;
|
|
3016
|
+
tenantId: string;
|
|
3017
|
+
agentId: string;
|
|
3021
3018
|
selectedTools: string[] | null;
|
|
3022
3019
|
subAgentId: string;
|
|
3020
|
+
toolId: string;
|
|
3023
3021
|
} | undefined>;
|
|
3024
3022
|
declare const getAgentToolRelationByAgent: (db: DatabaseClient) => (params: {
|
|
3025
3023
|
scopes: SubAgentScopeConfig;
|
|
@@ -3186,15 +3184,13 @@ declare const getSubAgentById: (db: DatabaseClient) => (params: {
|
|
|
3186
3184
|
scopes: AgentScopeConfig;
|
|
3187
3185
|
subAgentId: string;
|
|
3188
3186
|
}) => Promise<{
|
|
3189
|
-
tenantId: string;
|
|
3190
|
-
projectId: string;
|
|
3191
|
-
id: string;
|
|
3192
3187
|
name: string;
|
|
3193
|
-
|
|
3194
|
-
prompt: string;
|
|
3195
|
-
agentId: string;
|
|
3188
|
+
id: string;
|
|
3196
3189
|
createdAt: string;
|
|
3197
3190
|
updatedAt: string;
|
|
3191
|
+
projectId: string;
|
|
3192
|
+
tenantId: string;
|
|
3193
|
+
description: string;
|
|
3198
3194
|
models: {
|
|
3199
3195
|
base?: {
|
|
3200
3196
|
model?: string | undefined;
|
|
@@ -3212,20 +3208,20 @@ declare const getSubAgentById: (db: DatabaseClient) => (params: {
|
|
|
3212
3208
|
stopWhen: {
|
|
3213
3209
|
stepCountIs?: number | undefined;
|
|
3214
3210
|
} | null;
|
|
3211
|
+
agentId: string;
|
|
3212
|
+
prompt: string;
|
|
3215
3213
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
3216
3214
|
} | undefined>;
|
|
3217
3215
|
declare const listSubAgents: (db: DatabaseClient) => (params: {
|
|
3218
3216
|
scopes: AgentScopeConfig;
|
|
3219
3217
|
}) => Promise<{
|
|
3220
|
-
tenantId: string;
|
|
3221
|
-
projectId: string;
|
|
3222
|
-
id: string;
|
|
3223
3218
|
name: string;
|
|
3224
|
-
|
|
3225
|
-
prompt: string;
|
|
3226
|
-
agentId: string;
|
|
3219
|
+
id: string;
|
|
3227
3220
|
createdAt: string;
|
|
3228
3221
|
updatedAt: string;
|
|
3222
|
+
projectId: string;
|
|
3223
|
+
tenantId: string;
|
|
3224
|
+
description: string;
|
|
3229
3225
|
models: {
|
|
3230
3226
|
base?: {
|
|
3231
3227
|
model?: string | undefined;
|
|
@@ -3243,6 +3239,8 @@ declare const listSubAgents: (db: DatabaseClient) => (params: {
|
|
|
3243
3239
|
stopWhen: {
|
|
3244
3240
|
stepCountIs?: number | undefined;
|
|
3245
3241
|
} | null;
|
|
3242
|
+
agentId: string;
|
|
3243
|
+
prompt: string;
|
|
3246
3244
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
3247
3245
|
}[]>;
|
|
3248
3246
|
declare const listSubAgentsPaginated: (db: DatabaseClient) => (params: {
|
|
@@ -3286,15 +3284,13 @@ declare const listSubAgentsPaginated: (db: DatabaseClient) => (params: {
|
|
|
3286
3284
|
};
|
|
3287
3285
|
}>;
|
|
3288
3286
|
declare const createSubAgent: (db: DatabaseClient) => (params: SubAgentInsert) => Promise<{
|
|
3289
|
-
tenantId: string;
|
|
3290
|
-
projectId: string;
|
|
3291
|
-
id: string;
|
|
3292
3287
|
name: string;
|
|
3293
|
-
|
|
3294
|
-
prompt: string;
|
|
3295
|
-
agentId: string;
|
|
3288
|
+
id: string;
|
|
3296
3289
|
createdAt: string;
|
|
3297
3290
|
updatedAt: string;
|
|
3291
|
+
projectId: string;
|
|
3292
|
+
tenantId: string;
|
|
3293
|
+
description: string;
|
|
3298
3294
|
models: {
|
|
3299
3295
|
base?: {
|
|
3300
3296
|
model?: string | undefined;
|
|
@@ -3312,6 +3308,8 @@ declare const createSubAgent: (db: DatabaseClient) => (params: SubAgentInsert) =
|
|
|
3312
3308
|
stopWhen: {
|
|
3313
3309
|
stepCountIs?: number | undefined;
|
|
3314
3310
|
} | null;
|
|
3311
|
+
agentId: string;
|
|
3312
|
+
prompt: string;
|
|
3315
3313
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
3316
3314
|
}>;
|
|
3317
3315
|
declare const updateSubAgent: (db: DatabaseClient) => (params: {
|
|
@@ -3319,15 +3317,13 @@ declare const updateSubAgent: (db: DatabaseClient) => (params: {
|
|
|
3319
3317
|
subAgentId: string;
|
|
3320
3318
|
data: SubAgentUpdate;
|
|
3321
3319
|
}) => Promise<{
|
|
3322
|
-
tenantId: string;
|
|
3323
|
-
projectId: string;
|
|
3324
|
-
id: string;
|
|
3325
3320
|
name: string;
|
|
3326
|
-
|
|
3327
|
-
prompt: string;
|
|
3328
|
-
agentId: string;
|
|
3321
|
+
id: string;
|
|
3329
3322
|
createdAt: string;
|
|
3330
3323
|
updatedAt: string;
|
|
3324
|
+
projectId: string;
|
|
3325
|
+
tenantId: string;
|
|
3326
|
+
description: string;
|
|
3331
3327
|
models: {
|
|
3332
3328
|
base?: {
|
|
3333
3329
|
model?: string | undefined;
|
|
@@ -3345,6 +3341,8 @@ declare const updateSubAgent: (db: DatabaseClient) => (params: {
|
|
|
3345
3341
|
stopWhen: {
|
|
3346
3342
|
stepCountIs?: number | undefined;
|
|
3347
3343
|
} | null;
|
|
3344
|
+
agentId: string;
|
|
3345
|
+
prompt: string;
|
|
3348
3346
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
3349
3347
|
}>;
|
|
3350
3348
|
/**
|
|
@@ -3394,13 +3392,13 @@ declare const getSubAgentTeamAgentRelationById: (db: DatabaseClient) => (params:
|
|
|
3394
3392
|
scopes: SubAgentScopeConfig;
|
|
3395
3393
|
relationId: string;
|
|
3396
3394
|
}) => Promise<{
|
|
3397
|
-
|
|
3398
|
-
projectId: string;
|
|
3395
|
+
headers: Record<string, string> | null;
|
|
3399
3396
|
id: string;
|
|
3400
|
-
agentId: string;
|
|
3401
3397
|
createdAt: string;
|
|
3402
3398
|
updatedAt: string;
|
|
3403
|
-
|
|
3399
|
+
projectId: string;
|
|
3400
|
+
tenantId: string;
|
|
3401
|
+
agentId: string;
|
|
3404
3402
|
subAgentId: string;
|
|
3405
3403
|
targetAgentId: string;
|
|
3406
3404
|
} | undefined>;
|
|
@@ -3429,26 +3427,26 @@ declare const listSubAgentTeamAgentRelations: (db: DatabaseClient) => (params: {
|
|
|
3429
3427
|
declare const getSubAgentTeamAgentRelations: (db: DatabaseClient) => (params: {
|
|
3430
3428
|
scopes: SubAgentScopeConfig;
|
|
3431
3429
|
}) => Promise<{
|
|
3432
|
-
|
|
3433
|
-
projectId: string;
|
|
3430
|
+
headers: Record<string, string> | null;
|
|
3434
3431
|
id: string;
|
|
3435
|
-
agentId: string;
|
|
3436
3432
|
createdAt: string;
|
|
3437
3433
|
updatedAt: string;
|
|
3438
|
-
|
|
3434
|
+
projectId: string;
|
|
3435
|
+
tenantId: string;
|
|
3436
|
+
agentId: string;
|
|
3439
3437
|
subAgentId: string;
|
|
3440
3438
|
targetAgentId: string;
|
|
3441
3439
|
}[]>;
|
|
3442
3440
|
declare const getSubAgentTeamAgentRelationsByAgent: (db: DatabaseClient) => (params: {
|
|
3443
3441
|
scopes: AgentScopeConfig;
|
|
3444
3442
|
}) => Promise<{
|
|
3445
|
-
|
|
3446
|
-
projectId: string;
|
|
3443
|
+
headers: Record<string, string> | null;
|
|
3447
3444
|
id: string;
|
|
3448
|
-
agentId: string;
|
|
3449
3445
|
createdAt: string;
|
|
3450
3446
|
updatedAt: string;
|
|
3451
|
-
|
|
3447
|
+
projectId: string;
|
|
3448
|
+
tenantId: string;
|
|
3449
|
+
agentId: string;
|
|
3452
3450
|
subAgentId: string;
|
|
3453
3451
|
targetAgentId: string;
|
|
3454
3452
|
}[]>;
|
|
@@ -3595,13 +3593,13 @@ declare const createSubAgentTeamAgentRelation: (db: DatabaseClient) => (params:
|
|
|
3595
3593
|
headers?: Record<string, string> | null;
|
|
3596
3594
|
};
|
|
3597
3595
|
}) => Promise<{
|
|
3598
|
-
|
|
3599
|
-
projectId: string;
|
|
3596
|
+
headers: Record<string, string> | null;
|
|
3600
3597
|
id: string;
|
|
3601
|
-
agentId: string;
|
|
3602
3598
|
createdAt: string;
|
|
3603
3599
|
updatedAt: string;
|
|
3604
|
-
|
|
3600
|
+
projectId: string;
|
|
3601
|
+
tenantId: string;
|
|
3602
|
+
agentId: string;
|
|
3605
3603
|
subAgentId: string;
|
|
3606
3604
|
targetAgentId: string;
|
|
3607
3605
|
}>;
|
|
@@ -3612,13 +3610,13 @@ declare const getSubAgentTeamAgentRelationByParams: (db: DatabaseClient) => (par
|
|
|
3612
3610
|
scopes: SubAgentScopeConfig;
|
|
3613
3611
|
targetAgentId: string;
|
|
3614
3612
|
}) => Promise<{
|
|
3615
|
-
|
|
3616
|
-
projectId: string;
|
|
3613
|
+
headers: Record<string, string> | null;
|
|
3617
3614
|
id: string;
|
|
3618
|
-
agentId: string;
|
|
3619
3615
|
createdAt: string;
|
|
3620
3616
|
updatedAt: string;
|
|
3621
|
-
|
|
3617
|
+
projectId: string;
|
|
3618
|
+
tenantId: string;
|
|
3619
|
+
agentId: string;
|
|
3622
3620
|
subAgentId: string;
|
|
3623
3621
|
targetAgentId: string;
|
|
3624
3622
|
} | undefined>;
|
|
@@ -3633,13 +3631,13 @@ declare const upsertSubAgentTeamAgentRelation: (db: DatabaseClient) => (params:
|
|
|
3633
3631
|
headers?: Record<string, string> | null;
|
|
3634
3632
|
};
|
|
3635
3633
|
}) => Promise<{
|
|
3636
|
-
|
|
3637
|
-
projectId: string;
|
|
3634
|
+
headers: Record<string, string> | null;
|
|
3638
3635
|
id: string;
|
|
3639
|
-
agentId: string;
|
|
3640
3636
|
createdAt: string;
|
|
3641
3637
|
updatedAt: string;
|
|
3642
|
-
|
|
3638
|
+
projectId: string;
|
|
3639
|
+
tenantId: string;
|
|
3640
|
+
agentId: string;
|
|
3643
3641
|
subAgentId: string;
|
|
3644
3642
|
targetAgentId: string;
|
|
3645
3643
|
}>;
|
|
@@ -3648,13 +3646,13 @@ declare const updateSubAgentTeamAgentRelation: (db: DatabaseClient) => (params:
|
|
|
3648
3646
|
relationId: string;
|
|
3649
3647
|
data: Partial<SubAgentTeamAgentRelationInsert>;
|
|
3650
3648
|
}) => Promise<{
|
|
3651
|
-
|
|
3652
|
-
projectId: string;
|
|
3649
|
+
headers: Record<string, string> | null;
|
|
3653
3650
|
id: string;
|
|
3654
|
-
agentId: string;
|
|
3655
3651
|
createdAt: string;
|
|
3656
3652
|
updatedAt: string;
|
|
3657
|
-
|
|
3653
|
+
projectId: string;
|
|
3654
|
+
tenantId: string;
|
|
3655
|
+
agentId: string;
|
|
3658
3656
|
subAgentId: string;
|
|
3659
3657
|
targetAgentId: string;
|
|
3660
3658
|
}>;
|
|
@@ -3670,12 +3668,12 @@ declare const deleteSubAgentTeamAgentRelationsByAgent: (db: DatabaseClient) => (
|
|
|
3670
3668
|
}) => Promise<boolean>;
|
|
3671
3669
|
|
|
3672
3670
|
declare const createTask: (db: DatabaseClient) => (params: TaskInsert) => Promise<{
|
|
3673
|
-
tenantId: string;
|
|
3674
|
-
projectId: string;
|
|
3675
3671
|
id: string;
|
|
3676
|
-
agentId: string;
|
|
3677
3672
|
createdAt: string;
|
|
3678
3673
|
updatedAt: string;
|
|
3674
|
+
projectId: string;
|
|
3675
|
+
tenantId: string;
|
|
3676
|
+
agentId: string;
|
|
3679
3677
|
status: string;
|
|
3680
3678
|
metadata: TaskMetadataConfig | null;
|
|
3681
3679
|
contextId: string;
|
|
@@ -3691,12 +3689,12 @@ declare const updateTask: (db: DatabaseClient) => (params: {
|
|
|
3691
3689
|
metadata?: any;
|
|
3692
3690
|
};
|
|
3693
3691
|
}) => Promise<{
|
|
3694
|
-
tenantId: string;
|
|
3695
|
-
projectId: string;
|
|
3696
3692
|
id: string;
|
|
3697
|
-
agentId: string;
|
|
3698
3693
|
createdAt: string;
|
|
3699
3694
|
updatedAt: string;
|
|
3695
|
+
projectId: string;
|
|
3696
|
+
tenantId: string;
|
|
3697
|
+
agentId: string;
|
|
3700
3698
|
status: string;
|
|
3701
3699
|
metadata: TaskMetadataConfig | null;
|
|
3702
3700
|
contextId: string;
|
|
@@ -3711,20 +3709,20 @@ declare const getToolById: (db: DatabaseClient) => (params: {
|
|
|
3711
3709
|
scopes: ProjectScopeConfig;
|
|
3712
3710
|
toolId: string;
|
|
3713
3711
|
}) => Promise<{
|
|
3714
|
-
tenantId: string;
|
|
3715
|
-
projectId: string;
|
|
3716
|
-
id: string;
|
|
3717
3712
|
name: string;
|
|
3713
|
+
headers: Record<string, string> | null;
|
|
3714
|
+
id: string;
|
|
3715
|
+
createdAt: string;
|
|
3716
|
+
updatedAt: string;
|
|
3717
|
+
projectId: string;
|
|
3718
|
+
tenantId: string;
|
|
3718
3719
|
description: string | null;
|
|
3720
|
+
credentialReferenceId: string | null;
|
|
3721
|
+
capabilities: ToolServerCapabilities | null;
|
|
3719
3722
|
config: {
|
|
3720
3723
|
type: "mcp";
|
|
3721
3724
|
mcp: ToolMcpConfig;
|
|
3722
3725
|
};
|
|
3723
|
-
credentialReferenceId: string | null;
|
|
3724
|
-
createdAt: string;
|
|
3725
|
-
updatedAt: string;
|
|
3726
|
-
headers: Record<string, string> | null;
|
|
3727
|
-
capabilities: ToolServerCapabilities | null;
|
|
3728
3726
|
imageUrl: string | null;
|
|
3729
3727
|
lastError: string | null;
|
|
3730
3728
|
} | null>;
|
|
@@ -3758,20 +3756,20 @@ declare const listTools: (db: DatabaseClient) => (params: {
|
|
|
3758
3756
|
};
|
|
3759
3757
|
}>;
|
|
3760
3758
|
declare const createTool: (db: DatabaseClient) => (params: ToolInsert) => Promise<{
|
|
3761
|
-
tenantId: string;
|
|
3762
|
-
projectId: string;
|
|
3763
|
-
id: string;
|
|
3764
3759
|
name: string;
|
|
3760
|
+
headers: Record<string, string> | null;
|
|
3761
|
+
id: string;
|
|
3762
|
+
createdAt: string;
|
|
3763
|
+
updatedAt: string;
|
|
3764
|
+
projectId: string;
|
|
3765
|
+
tenantId: string;
|
|
3765
3766
|
description: string | null;
|
|
3767
|
+
credentialReferenceId: string | null;
|
|
3768
|
+
capabilities: ToolServerCapabilities | null;
|
|
3766
3769
|
config: {
|
|
3767
3770
|
type: "mcp";
|
|
3768
3771
|
mcp: ToolMcpConfig;
|
|
3769
3772
|
};
|
|
3770
|
-
credentialReferenceId: string | null;
|
|
3771
|
-
createdAt: string;
|
|
3772
|
-
updatedAt: string;
|
|
3773
|
-
headers: Record<string, string> | null;
|
|
3774
|
-
capabilities: ToolServerCapabilities | null;
|
|
3775
3773
|
imageUrl: string | null;
|
|
3776
3774
|
lastError: string | null;
|
|
3777
3775
|
}>;
|
|
@@ -3780,20 +3778,20 @@ declare const updateTool: (db: DatabaseClient) => (params: {
|
|
|
3780
3778
|
toolId: string;
|
|
3781
3779
|
data: ToolUpdate;
|
|
3782
3780
|
}) => Promise<{
|
|
3783
|
-
tenantId: string;
|
|
3784
|
-
projectId: string;
|
|
3785
|
-
id: string;
|
|
3786
3781
|
name: string;
|
|
3782
|
+
headers: Record<string, string> | null;
|
|
3783
|
+
id: string;
|
|
3784
|
+
createdAt: string;
|
|
3785
|
+
updatedAt: string;
|
|
3786
|
+
projectId: string;
|
|
3787
|
+
tenantId: string;
|
|
3787
3788
|
description: string | null;
|
|
3789
|
+
credentialReferenceId: string | null;
|
|
3790
|
+
capabilities: ToolServerCapabilities | null;
|
|
3788
3791
|
config: {
|
|
3789
3792
|
type: "mcp";
|
|
3790
3793
|
mcp: ToolMcpConfig;
|
|
3791
3794
|
};
|
|
3792
|
-
credentialReferenceId: string | null;
|
|
3793
|
-
createdAt: string;
|
|
3794
|
-
updatedAt: string;
|
|
3795
|
-
headers: Record<string, string> | null;
|
|
3796
|
-
capabilities: ToolServerCapabilities | null;
|
|
3797
3795
|
imageUrl: string | null;
|
|
3798
3796
|
lastError: string | null;
|
|
3799
3797
|
}>;
|
|
@@ -3808,32 +3806,32 @@ declare const addToolToAgent: (db: DatabaseClient) => (params: {
|
|
|
3808
3806
|
selectedTools?: string[] | null;
|
|
3809
3807
|
headers?: Record<string, string> | null;
|
|
3810
3808
|
}) => Promise<{
|
|
3811
|
-
|
|
3812
|
-
projectId: string;
|
|
3809
|
+
headers: Record<string, string> | null;
|
|
3813
3810
|
id: string;
|
|
3814
|
-
agentId: string;
|
|
3815
3811
|
createdAt: string;
|
|
3816
3812
|
updatedAt: string;
|
|
3817
|
-
|
|
3818
|
-
|
|
3813
|
+
projectId: string;
|
|
3814
|
+
tenantId: string;
|
|
3815
|
+
agentId: string;
|
|
3819
3816
|
selectedTools: string[] | null;
|
|
3820
3817
|
subAgentId: string;
|
|
3818
|
+
toolId: string;
|
|
3821
3819
|
}>;
|
|
3822
3820
|
declare const removeToolFromAgent: (db: DatabaseClient) => (params: {
|
|
3823
3821
|
scopes: AgentScopeConfig;
|
|
3824
3822
|
subAgentId: string;
|
|
3825
3823
|
toolId: string;
|
|
3826
3824
|
}) => Promise<{
|
|
3827
|
-
|
|
3828
|
-
projectId: string;
|
|
3825
|
+
headers: Record<string, string> | null;
|
|
3829
3826
|
id: string;
|
|
3830
|
-
agentId: string;
|
|
3831
3827
|
createdAt: string;
|
|
3832
3828
|
updatedAt: string;
|
|
3833
|
-
|
|
3834
|
-
|
|
3829
|
+
projectId: string;
|
|
3830
|
+
tenantId: string;
|
|
3831
|
+
agentId: string;
|
|
3835
3832
|
selectedTools: string[] | null;
|
|
3836
3833
|
subAgentId: string;
|
|
3834
|
+
toolId: string;
|
|
3837
3835
|
}>;
|
|
3838
3836
|
/**
|
|
3839
3837
|
* Upsert agent-tool relation (create if it doesn't exist, update if it does)
|
|
@@ -3846,16 +3844,16 @@ declare const upsertSubAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
|
3846
3844
|
headers?: Record<string, string> | null;
|
|
3847
3845
|
relationId?: string;
|
|
3848
3846
|
}) => Promise<{
|
|
3849
|
-
|
|
3850
|
-
projectId: string;
|
|
3847
|
+
headers: Record<string, string> | null;
|
|
3851
3848
|
id: string;
|
|
3852
|
-
agentId: string;
|
|
3853
3849
|
createdAt: string;
|
|
3854
3850
|
updatedAt: string;
|
|
3855
|
-
|
|
3856
|
-
|
|
3851
|
+
projectId: string;
|
|
3852
|
+
tenantId: string;
|
|
3853
|
+
agentId: string;
|
|
3857
3854
|
selectedTools: string[] | null;
|
|
3858
3855
|
subAgentId: string;
|
|
3856
|
+
toolId: string;
|
|
3859
3857
|
}>;
|
|
3860
3858
|
/**
|
|
3861
3859
|
* Upsert a tool (create if it doesn't exist, update if it does)
|
|
@@ -3863,20 +3861,20 @@ declare const upsertSubAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
|
3863
3861
|
declare const upsertTool: (db: DatabaseClient) => (params: {
|
|
3864
3862
|
data: ToolInsert;
|
|
3865
3863
|
}) => Promise<{
|
|
3866
|
-
tenantId: string;
|
|
3867
|
-
projectId: string;
|
|
3868
|
-
id: string;
|
|
3869
3864
|
name: string;
|
|
3865
|
+
headers: Record<string, string> | null;
|
|
3866
|
+
id: string;
|
|
3867
|
+
createdAt: string;
|
|
3868
|
+
updatedAt: string;
|
|
3869
|
+
projectId: string;
|
|
3870
|
+
tenantId: string;
|
|
3870
3871
|
description: string | null;
|
|
3872
|
+
credentialReferenceId: string | null;
|
|
3873
|
+
capabilities: ToolServerCapabilities | null;
|
|
3871
3874
|
config: {
|
|
3872
3875
|
type: "mcp";
|
|
3873
3876
|
mcp: ToolMcpConfig;
|
|
3874
3877
|
};
|
|
3875
|
-
credentialReferenceId: string | null;
|
|
3876
|
-
createdAt: string;
|
|
3877
|
-
updatedAt: string;
|
|
3878
|
-
headers: Record<string, string> | null;
|
|
3879
|
-
capabilities: ToolServerCapabilities | null;
|
|
3880
3878
|
imageUrl: string | null;
|
|
3881
3879
|
lastError: string | null;
|
|
3882
3880
|
}>;
|