@inkeep/agents-core 0.0.0-dev-20251121223756 → 0.0.0-dev-20251122034411
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/auth/auth.d.ts +14 -26
- package/dist/auth/auth.js +6 -8
- package/dist/auth/permissions.d.ts +6 -6
- package/dist/auth/permissions.js +1 -1
- package/dist/{chunk-D3NGJEP2.js → chunk-4OISWRFK.js} +1 -1
- package/dist/{chunk-SH5TYTTP.js → chunk-OEHP46F7.js} +1 -1
- package/dist/{chunk-F5WWOOIX.js → chunk-VMSYBWFH.js} +3 -5
- package/dist/{client-HrEgt7wv.d.ts → client-BLjor29e.d.ts} +1 -1
- package/dist/client-exports.d.ts +3 -3
- package/dist/client-exports.js +2 -2
- package/dist/credential-stores/index.d.ts +1 -1
- package/dist/db/schema.d.ts +2 -2
- package/dist/db/test-client.d.ts +3 -3
- package/dist/index.d.ts +228 -228
- package/dist/index.js +9 -9
- package/dist/{schema-CoC3tYFX.d.ts → schema-DCB_LgW9.d.ts} +1 -1
- package/dist/types/index.d.ts +2 -2
- package/dist/{utility-C4QAannk.d.ts → utility-B5hlet30.d.ts} +208 -208
- package/dist/validation/index.d.ts +2 -2
- package/dist/validation/index.js +2 -2
- package/package.json +1 -1
- package/dist/{chunk-3AK7OSAT.js → chunk-ZCEKN54E.js} +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -3,18 +3,18 @@ import { r as PinoLogger, s as getLogger } from './auth-detection-CGqhPDnj.js';
|
|
|
3
3
|
export { i as ACTIVITY_NAMES, g as ACTIVITY_STATUS, f as ACTIVITY_TYPES, h as AGENT_IDS, p as AGGREGATE_OPERATORS, A as AI_OPERATIONS, j as AI_TOOL_TYPES, o as DATA_SOURCES, k as DATA_TYPES, D as DELEGATION_FROM_SUB_AGENT_ID, b as DELEGATION_ID, a as DELEGATION_TO_SUB_AGENT_ID, F as FIELD_TYPES, L as LoggerFactoryConfig, M as McpOAuthFlowResult, u as McpTokenExchangeResult, t as OAuthConfig, O as OPERATORS, m as ORDER_DIRECTIONS, P as PANEL_TYPES, x as PinoLoggerConfig, q as QUERY_DEFAULTS, l as QUERY_EXPRESSIONS, Q as QUERY_FIELD_CONFIGS, n as QUERY_TYPES, R as REDUCE_OPERATIONS, e as SPAN_KEYS, S as SPAN_NAMES, T as TRANSFER_FROM_SUB_AGENT_ID, c as TRANSFER_TO_SUB_AGENT_ID, U as UNKNOWN_VALUE, d as detectAuthenticationRequired, w as exchangeMcpAuthorizationCode, v as initiateMcpOAuthFlow, y as loggerFactory } from './auth-detection-CGqhPDnj.js';
|
|
4
4
|
export { AGENT_EXECUTION_TRANSFER_COUNT_DEFAULT, AGENT_EXECUTION_TRANSFER_COUNT_MAX, AGENT_EXECUTION_TRANSFER_COUNT_MIN, CONTEXT_FETCHER_HTTP_TIMEOUT_MS_DEFAULT, STATUS_UPDATE_MAX_INTERVAL_SECONDS, STATUS_UPDATE_MAX_NUM_EVENTS, SUB_AGENT_TURN_GENERATION_STEPS_DEFAULT, SUB_AGENT_TURN_GENERATION_STEPS_MAX, SUB_AGENT_TURN_GENERATION_STEPS_MIN, VALIDATION_AGENT_PROMPT_MAX_CHARS, VALIDATION_SUB_AGENT_PROMPT_MAX_CHARS, schemaValidationDefaults } from './constants/schema-validation/index.js';
|
|
5
5
|
import z$2, { z } from 'zod';
|
|
6
|
-
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, az as PrebuiltMCPServerSchema } from './utility-
|
|
7
|
-
export { bb as A2AError, bH as A2ARequest, bI as A2AResponse, aM as APIKeySecurityScheme, bW as AgentApiInsert, e3 as AgentApiInsertSchema, bV as AgentApiSelect, e2 as AgentApiSelectSchema, bX as AgentApiUpdate, e4 as AgentApiUpdateSchema, aI as AgentCapabilities, aW as AgentCard, dy as AgentConversationHistoryConfig, e0 as AgentInsertSchema, gN as AgentListResponse, aJ as AgentProvider, gx as AgentResponse, d$ as AgentSelectSchema, aK as AgentSkill, e as AgentStopWhen, b as AgentStopWhenSchema, e1 as AgentUpdateSchema, h4 as AgentWithinContextOfProjectResponse, gh as AgentWithinContextOfProjectSchema, f7 as AllAgentSchema, cQ as AllAgentSelect, cU as ApiKeyApiCreationResponse, fc as ApiKeyApiCreationResponseSchema, cS as ApiKeyApiInsert, fd as ApiKeyApiInsertSchema, cR as ApiKeyApiSelect, fb as ApiKeyApiSelectSchema, cT as ApiKeyApiUpdate, A as ApiKeyApiUpdateSchema, f9 as ApiKeyInsertSchema, gR as ApiKeyListResponse, gB as ApiKeyResponse, f8 as ApiKeySelectSchema, fa as ApiKeyUpdateSchema, cF as ArtifactComponentApiInsert, eV as ArtifactComponentApiInsertSchema, cE as ArtifactComponentApiSelect, eU as ArtifactComponentApiSelectSchema, cG as ArtifactComponentApiUpdate, eW as ArtifactComponentApiUpdateSchema, he as ArtifactComponentArrayResponse, eS as ArtifactComponentInsertSchema, gW as ArtifactComponentListResponse, gG as ArtifactComponentResponse, eR as ArtifactComponentSelectSchema, eT as ArtifactComponentUpdateSchema, aP as AuthorizationCodeOAuthFlow, dh as CanDelegateToExternalAgent, dg as CanUseItem, gd as CanUseItemSchema, br as CancelTaskRequest, bC as CancelTaskResponse, bB as CancelTaskSuccessResponse, aQ as ClientCredentialsOAuthFlow, h6 as ComponentAssociationListResponse, fp as ComponentAssociationSchema, b9 as ContentTypeNotSupportedError, ct as ContextCacheApiInsert, eC as ContextCacheApiInsertSchema, cs as ContextCacheApiSelect, eB as ContextCacheApiSelectSchema, cu as ContextCacheApiUpdate, eD as ContextCacheApiUpdateSchema, dz as ContextCacheEntry, ez as ContextCacheInsertSchema, ey as ContextCacheSelectSchema, cr as ContextCacheUpdate, eA as ContextCacheUpdateSchema, cn as ContextConfigApiInsert, fN as ContextConfigApiInsertSchema, cm as ContextConfigApiSelect, fM as ContextConfigApiSelectSchema, co as ContextConfigApiUpdate, fO as ContextConfigApiUpdateSchema, fK as ContextConfigInsertSchema, gQ as ContextConfigListResponse, gA as ContextConfigResponse, fJ as ContextConfigSelectSchema, fL as ContextConfigUpdateSchema, cg as ConversationApiInsert, eq as ConversationApiInsertSchema, cf as ConversationApiSelect, ep as ConversationApiSelectSchema, ch as ConversationApiUpdate, er as ConversationApiUpdateSchema, en as ConversationInsertSchema, gZ as ConversationListResponse, gJ as ConversationResponse, dx as ConversationScopeOptions, em as ConversationSelectSchema, eo as ConversationUpdateSchema, fm as CreateCredentialInStoreRequestSchema, fn as CreateCredentialInStoreResponseSchema, fi as CredentialReferenceApiInsertSchema, cV as CredentialReferenceApiSelect, fh as CredentialReferenceApiSelectSchema, cW as CredentialReferenceApiUpdate, fj as CredentialReferenceApiUpdateSchema, ff as CredentialReferenceInsertSchema, gS as CredentialReferenceListResponse, gC as CredentialReferenceResponse, fe as CredentialReferenceSelectSchema, fg as CredentialReferenceUpdateSchema, fl as CredentialStoreListResponseSchema, fk as CredentialStoreSchema, cw as DataComponentApiInsert, eJ as DataComponentApiInsertSchema, cv as DataComponentApiSelect, eI as DataComponentApiSelectSchema, cx as DataComponentApiUpdate, eK as DataComponentApiUpdateSchema, hd as DataComponentArrayResponse, eG as DataComponentBaseSchema, eF as DataComponentInsertSchema, gV as DataComponentListResponse, gF as DataComponentResponse, eE as DataComponentSelectSchema, eH as DataComponentUpdateSchema, aG as DataPart, gl as ErrorResponseSchema, gm as ExistsResponseSchema, cO as ExternalAgentApiInsert, f5 as ExternalAgentApiInsertSchema, cN as ExternalAgentApiSelect, f4 as ExternalAgentApiSelectSchema, cP as ExternalAgentApiUpdate, f6 as ExternalAgentApiUpdateSchema, f2 as ExternalAgentInsertSchema, gP as ExternalAgentListResponse, gz as ExternalAgentResponse, f1 as ExternalAgentSelectSchema, f3 as ExternalAgentUpdateSchema, bU as ExternalSubAgentRelationApiInsert, d_ as ExternalSubAgentRelationApiInsertSchema, bT as ExternalSubAgentRelationInsert, dZ as ExternalSubAgentRelationInsertSchema, cq as FetchConfig, fH as FetchConfigSchema, cp as FetchDefinition, fI as FetchDefinitionSchema, aC as FileBase, aF as FilePart, aD as FileWithBytes, aE as FileWithUri, df as FullAgentAgentInsert, a as FullAgentAgentInsertSchema, h3 as FullProjectDefinitionResponse, gu as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, cc as FunctionApiSelect, j as FunctionApiSelectSchema, cd as FunctionApiUpdate, k as FunctionApiUpdateSchema, ca as FunctionInsert, fF as FunctionInsertSchema, gT as FunctionListResponse, gD as FunctionResponse, c9 as FunctionSelect, fE as FunctionSelectSchema, fC as FunctionToolApiInsertSchema, ce as FunctionToolApiSelect, fB as FunctionToolApiSelectSchema, fD as FunctionToolApiUpdateSchema, dL as FunctionToolConfig, dK as FunctionToolConfigSchema, fz as FunctionToolInsertSchema, gU as FunctionToolListResponse, gE as FunctionToolResponse, fy as FunctionToolSelectSchema, fA as FunctionToolUpdateSchema, cb as FunctionUpdate, fG as FunctionUpdateSchema, bt as GetTaskPushNotificationConfigRequest, bG as GetTaskPushNotificationConfigResponse, bF as GetTaskPushNotificationConfigSuccessResponse, bq as GetTaskRequest, bA as GetTaskResponse, bz as GetTaskSuccessResponse, aN as HTTPAuthSecurityScheme, hf as HeadersScopeSchema, aR as ImplicitOAuthFlow, b4 as InternalError, ba as InvalidAgentResponseError, b3 as InvalidParamsError, b1 as InvalidRequestError, b0 as JSONParseError, bl as JSONRPCError, bn as JSONRPCErrorResponse, bj as JSONRPCMessage, bk as JSONRPCRequest, bm as JSONRPCResult, dd as LedgerArtifactApiInsert, g9 as LedgerArtifactApiInsertSchema, dc as LedgerArtifactApiSelect, g8 as LedgerArtifactApiSelectSchema, de as LedgerArtifactApiUpdate, ga as LedgerArtifactApiUpdateSchema, da as LedgerArtifactInsert, g6 as LedgerArtifactInsertSchema, g5 as LedgerArtifactSelectSchema, db as LedgerArtifactUpdate, g7 as LedgerArtifactUpdateSchema, gj as ListResponseSchema, hp as MCPCatalogListResponse, dH as MCPServerType, ft as MCPToolConfigSchema, dA as McpAuthType, dB as McpServerAuth, dD as McpServerCapabilities, dE as McpToolDefinition, ej as McpToolDefinitionSchema, h8 as McpToolListResponse, h7 as McpToolResponse, fs as McpToolSchema, dC as McpTransportConfig, eh as McpTransportConfigSchema, aX as Message, ck as MessageApiInsert, ew as MessageApiInsertSchema, cj as MessageApiSelect, ev as MessageApiSelectSchema, cl as MessageApiUpdate, ex as MessageApiUpdateSchema, et as MessageInsertSchema, g_ as MessageListResponse, ds as MessageMode, bJ as MessagePart, gK as MessageResponse, dr as MessageRole, ci as MessageSelect, es as MessageSelectSchema, bh as MessageSendConfiguration, bi as MessageSendParams, dq as MessageType, eu as MessageUpdateSchema, b2 as MethodNotFoundError, dI as ModelSchema, g as ModelSettings, M as ModelSettingsSchema, dt as Models, aT as OAuth2SecurityScheme, fr as OAuthCallbackQuerySchema, aO as OAuthFlows, fq as OAuthLoginQuerySchema, aU as OpenIdConnectSecurityScheme, dn as Pagination, ho as PaginationQueryParamsSchema, gi as PaginationSchema, P as Part, aA as PartBase, aS as PasswordOAuthFlow, dl as ProjectApiInsert, gs as ProjectApiInsertSchema, dk as ProjectApiSelect, gr as ProjectApiSelectSchema, dm as ProjectApiUpdate, gt as ProjectApiUpdateSchema, gp as ProjectInsertSchema, gL as ProjectListResponse, dJ as ProjectModelSchema, du as ProjectModels, gv as ProjectResponse, go as ProjectSelectSchema, gq as ProjectUpdateSchema, bc as PushNotificationAuthenticationInfo, bd as PushNotificationConfig, b7 as PushNotificationNotSupportedError, h5 as RelatedAgentInfoListResponse, fo as RelatedAgentInfoSchema, gn as RemovedResponseSchema, aV as SecurityScheme, aL as SecuritySchemeBase, bo as SendMessageRequest, bw as SendMessageResponse, bv as SendMessageSuccessResponse, bp as SendStreamingMessageRequest, by as SendStreamingMessageResponse, bx as SendStreamingMessageSuccessResponse, bs as SetTaskPushNotificationConfigRequest, bE as SetTaskPushNotificationConfigResponse, bD as SetTaskPushNotificationConfigSuccessResponse, gk as SingleResponseSchema, dw as StatusComponent, gb as StatusComponentSchema, gc as StatusUpdateSchema, dv as StatusUpdateSettings, d as StopWhen, S as StopWhenSchema, bM as SubAgentApiInsert, dQ as SubAgentApiInsertSchema, bL as SubAgentApiSelect, dP as SubAgentApiSelectSchema, bN as SubAgentApiUpdate, dR as SubAgentApiUpdateSchema, cL as SubAgentArtifactComponentApiInsert, e$ as SubAgentArtifactComponentApiInsertSchema, cK as SubAgentArtifactComponentApiSelect, e_ as SubAgentArtifactComponentApiSelectSchema, cM as SubAgentArtifactComponentApiUpdate, f0 as SubAgentArtifactComponentApiUpdateSchema, cI as SubAgentArtifactComponentInsert, eY as SubAgentArtifactComponentInsertSchema, h2 as SubAgentArtifactComponentListResponse, h0 as SubAgentArtifactComponentResponse, cH as SubAgentArtifactComponentSelect, eX as SubAgentArtifactComponentSelectSchema, cJ as SubAgentArtifactComponentUpdate, eZ as SubAgentArtifactComponentUpdateSchema, cC as SubAgentDataComponentApiInsert, eP as SubAgentDataComponentApiInsertSchema, cB as SubAgentDataComponentApiSelect, eO as SubAgentDataComponentApiSelectSchema, cD as SubAgentDataComponentApiUpdate, eQ as SubAgentDataComponentApiUpdateSchema, cz as SubAgentDataComponentInsert, eM as SubAgentDataComponentInsertSchema, h1 as SubAgentDataComponentListResponse, g$ as SubAgentDataComponentResponse, cy as SubAgentDataComponentSelect, eL as SubAgentDataComponentSelectSchema, cA as SubAgentDataComponentUpdate, eN as SubAgentDataComponentUpdateSchema, di as SubAgentDefinition, d3 as SubAgentExternalAgentRelationApiInsert, fZ as SubAgentExternalAgentRelationApiInsertSchema, d2 as SubAgentExternalAgentRelationApiSelect, fY as SubAgentExternalAgentRelationApiSelectSchema, d4 as SubAgentExternalAgentRelationApiUpdate, f_ as SubAgentExternalAgentRelationApiUpdateSchema, fW as SubAgentExternalAgentRelationInsertSchema, hc as SubAgentExternalAgentRelationListResponse, hb as SubAgentExternalAgentRelationResponse, d0 as SubAgentExternalAgentRelationSelect, fV as SubAgentExternalAgentRelationSelectSchema, d1 as SubAgentExternalAgentRelationUpdate, fX as SubAgentExternalAgentRelationUpdateSchema, dN as SubAgentInsertSchema, gM as SubAgentListResponse, bQ as SubAgentRelationApiInsert, dW as SubAgentRelationApiInsertSchema, bP as SubAgentRelationApiSelect, dV as SubAgentRelationApiSelectSchema, bR as SubAgentRelationApiUpdate, dX as SubAgentRelationApiUpdateSchema, dT as SubAgentRelationInsertSchema, gX as SubAgentRelationListResponse, bS as SubAgentRelationQuery, dY as SubAgentRelationQuerySchema, gH as SubAgentRelationResponse, bO as SubAgentRelationSelect, dS as SubAgentRelationSelectSchema, dU as SubAgentRelationUpdateSchema, gw as SubAgentResponse, dM as SubAgentSelectSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema, d8 as SubAgentTeamAgentRelationApiInsert, g3 as SubAgentTeamAgentRelationApiInsertSchema, d7 as SubAgentTeamAgentRelationApiSelect, g2 as SubAgentTeamAgentRelationApiSelectSchema, d9 as SubAgentTeamAgentRelationApiUpdate, g4 as SubAgentTeamAgentRelationApiUpdateSchema, g0 as SubAgentTeamAgentRelationInsertSchema, ha as SubAgentTeamAgentRelationListResponse, h9 as SubAgentTeamAgentRelationResponse, d5 as SubAgentTeamAgentRelationSelect, f$ as SubAgentTeamAgentRelationSelectSchema, d6 as SubAgentTeamAgentRelationUpdate, g1 as SubAgentTeamAgentRelationUpdateSchema, c_ as SubAgentToolRelationApiInsert, fT as SubAgentToolRelationApiInsertSchema, cZ as SubAgentToolRelationApiSelect, fS as SubAgentToolRelationApiSelectSchema, c$ as SubAgentToolRelationApiUpdate, fU as SubAgentToolRelationApiUpdateSchema, cY as SubAgentToolRelationInsert, fQ as SubAgentToolRelationInsertSchema, gY as SubAgentToolRelationListResponse, gI as SubAgentToolRelationResponse, cX as SubAgentToolRelationSelect, fP as SubAgentToolRelationSelectSchema, fR as SubAgentToolRelationUpdateSchema, dO as SubAgentUpdateSchema, dp as SummaryEvent, dF as TOOL_STATUS_VALUES, aZ as Task, b_ as TaskApiInsert, e9 as TaskApiInsertSchema, bZ as TaskApiSelect, e8 as TaskApiSelectSchema, b$ as TaskApiUpdate, ea as TaskApiUpdateSchema, bK as TaskArtifact, a$ as TaskArtifactUpdateEvent, bf as TaskIdParams, e6 as TaskInsertSchema, b6 as TaskNotCancelableError, b5 as TaskNotFoundError, be as TaskPushNotificationConfig, bg as TaskQueryParams, c4 as TaskRelationApiInsert, ef as TaskRelationApiInsertSchema, c3 as TaskRelationApiSelect, ee as TaskRelationApiSelectSchema, c5 as TaskRelationApiUpdate, eg as TaskRelationApiUpdateSchema, c1 as TaskRelationInsert, ec as TaskRelationInsertSchema, c0 as TaskRelationSelect, eb as TaskRelationSelectSchema, c2 as TaskRelationUpdate, ed as TaskRelationUpdateSchema, bu as TaskResubscriptionRequest, e5 as TaskSelectSchema, aH as TaskState, aY as TaskStatus, a_ as TaskStatusUpdateEvent, bY as TaskUpdate, e7 as TaskUpdateSchema, gg as TeamAgentSchema, hh as TenantIdParamsSchema, hg as TenantParamsSchema, hl as TenantProjectAgentIdParamsSchema, hk as TenantProjectAgentParamsSchema, hn as TenantProjectAgentSubAgentIdParamsSchema, hm as TenantProjectAgentSubAgentParamsSchema, hj as TenantProjectIdParamsSchema, hi as TenantProjectParamsSchema, aB as TextPart, hq as ThirdPartyMCPServerResponse, c7 as ToolApiInsert, fw as ToolApiInsertSchema, c6 as ToolApiSelect, fv as ToolApiSelectSchema, c8 as ToolApiUpdate, fx as ToolApiUpdateSchema, dj as ToolDefinition, el as ToolInsertSchema, gO as ToolListResponse, gy as ToolResponse, ek as ToolSelectSchema, ei as ToolStatusSchema, fu as ToolUpdateSchema, b8 as UnsupportedOperationError, dG as VALID_RELATION_TYPES, ge as canDelegateToExternalAgentSchema, gf as canDelegateToTeamAgentSchema } from './utility-C4QAannk.js';
|
|
6
|
+
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, az as PrebuiltMCPServerSchema } from './utility-B5hlet30.js';
|
|
7
|
+
export { bb as A2AError, bH as A2ARequest, bI as A2AResponse, aM as APIKeySecurityScheme, bW as AgentApiInsert, e3 as AgentApiInsertSchema, bV as AgentApiSelect, e2 as AgentApiSelectSchema, bX as AgentApiUpdate, e4 as AgentApiUpdateSchema, aI as AgentCapabilities, aW as AgentCard, dy as AgentConversationHistoryConfig, e0 as AgentInsertSchema, gN as AgentListResponse, aJ as AgentProvider, gx as AgentResponse, d$ as AgentSelectSchema, aK as AgentSkill, e as AgentStopWhen, b as AgentStopWhenSchema, e1 as AgentUpdateSchema, h4 as AgentWithinContextOfProjectResponse, gh as AgentWithinContextOfProjectSchema, f7 as AllAgentSchema, cQ as AllAgentSelect, cU as ApiKeyApiCreationResponse, fc as ApiKeyApiCreationResponseSchema, cS as ApiKeyApiInsert, fd as ApiKeyApiInsertSchema, cR as ApiKeyApiSelect, fb as ApiKeyApiSelectSchema, cT as ApiKeyApiUpdate, A as ApiKeyApiUpdateSchema, f9 as ApiKeyInsertSchema, gR as ApiKeyListResponse, gB as ApiKeyResponse, f8 as ApiKeySelectSchema, fa as ApiKeyUpdateSchema, cF as ArtifactComponentApiInsert, eV as ArtifactComponentApiInsertSchema, cE as ArtifactComponentApiSelect, eU as ArtifactComponentApiSelectSchema, cG as ArtifactComponentApiUpdate, eW as ArtifactComponentApiUpdateSchema, he as ArtifactComponentArrayResponse, eS as ArtifactComponentInsertSchema, gW as ArtifactComponentListResponse, gG as ArtifactComponentResponse, eR as ArtifactComponentSelectSchema, eT as ArtifactComponentUpdateSchema, aP as AuthorizationCodeOAuthFlow, dh as CanDelegateToExternalAgent, dg as CanUseItem, gd as CanUseItemSchema, br as CancelTaskRequest, bC as CancelTaskResponse, bB as CancelTaskSuccessResponse, aQ as ClientCredentialsOAuthFlow, h6 as ComponentAssociationListResponse, fp as ComponentAssociationSchema, b9 as ContentTypeNotSupportedError, ct as ContextCacheApiInsert, eC as ContextCacheApiInsertSchema, cs as ContextCacheApiSelect, eB as ContextCacheApiSelectSchema, cu as ContextCacheApiUpdate, eD as ContextCacheApiUpdateSchema, dz as ContextCacheEntry, ez as ContextCacheInsertSchema, ey as ContextCacheSelectSchema, cr as ContextCacheUpdate, eA as ContextCacheUpdateSchema, cn as ContextConfigApiInsert, fN as ContextConfigApiInsertSchema, cm as ContextConfigApiSelect, fM as ContextConfigApiSelectSchema, co as ContextConfigApiUpdate, fO as ContextConfigApiUpdateSchema, fK as ContextConfigInsertSchema, gQ as ContextConfigListResponse, gA as ContextConfigResponse, fJ as ContextConfigSelectSchema, fL as ContextConfigUpdateSchema, cg as ConversationApiInsert, eq as ConversationApiInsertSchema, cf as ConversationApiSelect, ep as ConversationApiSelectSchema, ch as ConversationApiUpdate, er as ConversationApiUpdateSchema, en as ConversationInsertSchema, gZ as ConversationListResponse, gJ as ConversationResponse, dx as ConversationScopeOptions, em as ConversationSelectSchema, eo as ConversationUpdateSchema, fm as CreateCredentialInStoreRequestSchema, fn as CreateCredentialInStoreResponseSchema, fi as CredentialReferenceApiInsertSchema, cV as CredentialReferenceApiSelect, fh as CredentialReferenceApiSelectSchema, cW as CredentialReferenceApiUpdate, fj as CredentialReferenceApiUpdateSchema, ff as CredentialReferenceInsertSchema, gS as CredentialReferenceListResponse, gC as CredentialReferenceResponse, fe as CredentialReferenceSelectSchema, fg as CredentialReferenceUpdateSchema, fl as CredentialStoreListResponseSchema, fk as CredentialStoreSchema, cw as DataComponentApiInsert, eJ as DataComponentApiInsertSchema, cv as DataComponentApiSelect, eI as DataComponentApiSelectSchema, cx as DataComponentApiUpdate, eK as DataComponentApiUpdateSchema, hd as DataComponentArrayResponse, eG as DataComponentBaseSchema, eF as DataComponentInsertSchema, gV as DataComponentListResponse, gF as DataComponentResponse, eE as DataComponentSelectSchema, eH as DataComponentUpdateSchema, aG as DataPart, gl as ErrorResponseSchema, gm as ExistsResponseSchema, cO as ExternalAgentApiInsert, f5 as ExternalAgentApiInsertSchema, cN as ExternalAgentApiSelect, f4 as ExternalAgentApiSelectSchema, cP as ExternalAgentApiUpdate, f6 as ExternalAgentApiUpdateSchema, f2 as ExternalAgentInsertSchema, gP as ExternalAgentListResponse, gz as ExternalAgentResponse, f1 as ExternalAgentSelectSchema, f3 as ExternalAgentUpdateSchema, bU as ExternalSubAgentRelationApiInsert, d_ as ExternalSubAgentRelationApiInsertSchema, bT as ExternalSubAgentRelationInsert, dZ as ExternalSubAgentRelationInsertSchema, cq as FetchConfig, fH as FetchConfigSchema, cp as FetchDefinition, fI as FetchDefinitionSchema, aC as FileBase, aF as FilePart, aD as FileWithBytes, aE as FileWithUri, df as FullAgentAgentInsert, a as FullAgentAgentInsertSchema, h3 as FullProjectDefinitionResponse, gu as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, cc as FunctionApiSelect, j as FunctionApiSelectSchema, cd as FunctionApiUpdate, k as FunctionApiUpdateSchema, ca as FunctionInsert, fF as FunctionInsertSchema, gT as FunctionListResponse, gD as FunctionResponse, c9 as FunctionSelect, fE as FunctionSelectSchema, fC as FunctionToolApiInsertSchema, ce as FunctionToolApiSelect, fB as FunctionToolApiSelectSchema, fD as FunctionToolApiUpdateSchema, dL as FunctionToolConfig, dK as FunctionToolConfigSchema, fz as FunctionToolInsertSchema, gU as FunctionToolListResponse, gE as FunctionToolResponse, fy as FunctionToolSelectSchema, fA as FunctionToolUpdateSchema, cb as FunctionUpdate, fG as FunctionUpdateSchema, bt as GetTaskPushNotificationConfigRequest, bG as GetTaskPushNotificationConfigResponse, bF as GetTaskPushNotificationConfigSuccessResponse, bq as GetTaskRequest, bA as GetTaskResponse, bz as GetTaskSuccessResponse, aN as HTTPAuthSecurityScheme, hf as HeadersScopeSchema, aR as ImplicitOAuthFlow, b4 as InternalError, ba as InvalidAgentResponseError, b3 as InvalidParamsError, b1 as InvalidRequestError, b0 as JSONParseError, bl as JSONRPCError, bn as JSONRPCErrorResponse, bj as JSONRPCMessage, bk as JSONRPCRequest, bm as JSONRPCResult, dd as LedgerArtifactApiInsert, g9 as LedgerArtifactApiInsertSchema, dc as LedgerArtifactApiSelect, g8 as LedgerArtifactApiSelectSchema, de as LedgerArtifactApiUpdate, ga as LedgerArtifactApiUpdateSchema, da as LedgerArtifactInsert, g6 as LedgerArtifactInsertSchema, g5 as LedgerArtifactSelectSchema, db as LedgerArtifactUpdate, g7 as LedgerArtifactUpdateSchema, gj as ListResponseSchema, hp as MCPCatalogListResponse, dH as MCPServerType, ft as MCPToolConfigSchema, dA as McpAuthType, dB as McpServerAuth, dD as McpServerCapabilities, dE as McpToolDefinition, ej as McpToolDefinitionSchema, h8 as McpToolListResponse, h7 as McpToolResponse, fs as McpToolSchema, dC as McpTransportConfig, eh as McpTransportConfigSchema, aX as Message, ck as MessageApiInsert, ew as MessageApiInsertSchema, cj as MessageApiSelect, ev as MessageApiSelectSchema, cl as MessageApiUpdate, ex as MessageApiUpdateSchema, et as MessageInsertSchema, g_ as MessageListResponse, ds as MessageMode, bJ as MessagePart, gK as MessageResponse, dr as MessageRole, ci as MessageSelect, es as MessageSelectSchema, bh as MessageSendConfiguration, bi as MessageSendParams, dq as MessageType, eu as MessageUpdateSchema, b2 as MethodNotFoundError, dI as ModelSchema, g as ModelSettings, M as ModelSettingsSchema, dt as Models, aT as OAuth2SecurityScheme, fr as OAuthCallbackQuerySchema, aO as OAuthFlows, fq as OAuthLoginQuerySchema, aU as OpenIdConnectSecurityScheme, dn as Pagination, ho as PaginationQueryParamsSchema, gi as PaginationSchema, P as Part, aA as PartBase, aS as PasswordOAuthFlow, dl as ProjectApiInsert, gs as ProjectApiInsertSchema, dk as ProjectApiSelect, gr as ProjectApiSelectSchema, dm as ProjectApiUpdate, gt as ProjectApiUpdateSchema, gp as ProjectInsertSchema, gL as ProjectListResponse, dJ as ProjectModelSchema, du as ProjectModels, gv as ProjectResponse, go as ProjectSelectSchema, gq as ProjectUpdateSchema, bc as PushNotificationAuthenticationInfo, bd as PushNotificationConfig, b7 as PushNotificationNotSupportedError, h5 as RelatedAgentInfoListResponse, fo as RelatedAgentInfoSchema, gn as RemovedResponseSchema, aV as SecurityScheme, aL as SecuritySchemeBase, bo as SendMessageRequest, bw as SendMessageResponse, bv as SendMessageSuccessResponse, bp as SendStreamingMessageRequest, by as SendStreamingMessageResponse, bx as SendStreamingMessageSuccessResponse, bs as SetTaskPushNotificationConfigRequest, bE as SetTaskPushNotificationConfigResponse, bD as SetTaskPushNotificationConfigSuccessResponse, gk as SingleResponseSchema, dw as StatusComponent, gb as StatusComponentSchema, gc as StatusUpdateSchema, dv as StatusUpdateSettings, d as StopWhen, S as StopWhenSchema, bM as SubAgentApiInsert, dQ as SubAgentApiInsertSchema, bL as SubAgentApiSelect, dP as SubAgentApiSelectSchema, bN as SubAgentApiUpdate, dR as SubAgentApiUpdateSchema, cL as SubAgentArtifactComponentApiInsert, e$ as SubAgentArtifactComponentApiInsertSchema, cK as SubAgentArtifactComponentApiSelect, e_ as SubAgentArtifactComponentApiSelectSchema, cM as SubAgentArtifactComponentApiUpdate, f0 as SubAgentArtifactComponentApiUpdateSchema, cI as SubAgentArtifactComponentInsert, eY as SubAgentArtifactComponentInsertSchema, h2 as SubAgentArtifactComponentListResponse, h0 as SubAgentArtifactComponentResponse, cH as SubAgentArtifactComponentSelect, eX as SubAgentArtifactComponentSelectSchema, cJ as SubAgentArtifactComponentUpdate, eZ as SubAgentArtifactComponentUpdateSchema, cC as SubAgentDataComponentApiInsert, eP as SubAgentDataComponentApiInsertSchema, cB as SubAgentDataComponentApiSelect, eO as SubAgentDataComponentApiSelectSchema, cD as SubAgentDataComponentApiUpdate, eQ as SubAgentDataComponentApiUpdateSchema, cz as SubAgentDataComponentInsert, eM as SubAgentDataComponentInsertSchema, h1 as SubAgentDataComponentListResponse, g$ as SubAgentDataComponentResponse, cy as SubAgentDataComponentSelect, eL as SubAgentDataComponentSelectSchema, cA as SubAgentDataComponentUpdate, eN as SubAgentDataComponentUpdateSchema, di as SubAgentDefinition, d3 as SubAgentExternalAgentRelationApiInsert, fZ as SubAgentExternalAgentRelationApiInsertSchema, d2 as SubAgentExternalAgentRelationApiSelect, fY as SubAgentExternalAgentRelationApiSelectSchema, d4 as SubAgentExternalAgentRelationApiUpdate, f_ as SubAgentExternalAgentRelationApiUpdateSchema, fW as SubAgentExternalAgentRelationInsertSchema, hc as SubAgentExternalAgentRelationListResponse, hb as SubAgentExternalAgentRelationResponse, d0 as SubAgentExternalAgentRelationSelect, fV as SubAgentExternalAgentRelationSelectSchema, d1 as SubAgentExternalAgentRelationUpdate, fX as SubAgentExternalAgentRelationUpdateSchema, dN as SubAgentInsertSchema, gM as SubAgentListResponse, bQ as SubAgentRelationApiInsert, dW as SubAgentRelationApiInsertSchema, bP as SubAgentRelationApiSelect, dV as SubAgentRelationApiSelectSchema, bR as SubAgentRelationApiUpdate, dX as SubAgentRelationApiUpdateSchema, dT as SubAgentRelationInsertSchema, gX as SubAgentRelationListResponse, bS as SubAgentRelationQuery, dY as SubAgentRelationQuerySchema, gH as SubAgentRelationResponse, bO as SubAgentRelationSelect, dS as SubAgentRelationSelectSchema, dU as SubAgentRelationUpdateSchema, gw as SubAgentResponse, dM as SubAgentSelectSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema, d8 as SubAgentTeamAgentRelationApiInsert, g3 as SubAgentTeamAgentRelationApiInsertSchema, d7 as SubAgentTeamAgentRelationApiSelect, g2 as SubAgentTeamAgentRelationApiSelectSchema, d9 as SubAgentTeamAgentRelationApiUpdate, g4 as SubAgentTeamAgentRelationApiUpdateSchema, g0 as SubAgentTeamAgentRelationInsertSchema, ha as SubAgentTeamAgentRelationListResponse, h9 as SubAgentTeamAgentRelationResponse, d5 as SubAgentTeamAgentRelationSelect, f$ as SubAgentTeamAgentRelationSelectSchema, d6 as SubAgentTeamAgentRelationUpdate, g1 as SubAgentTeamAgentRelationUpdateSchema, c_ as SubAgentToolRelationApiInsert, fT as SubAgentToolRelationApiInsertSchema, cZ as SubAgentToolRelationApiSelect, fS as SubAgentToolRelationApiSelectSchema, c$ as SubAgentToolRelationApiUpdate, fU as SubAgentToolRelationApiUpdateSchema, cY as SubAgentToolRelationInsert, fQ as SubAgentToolRelationInsertSchema, gY as SubAgentToolRelationListResponse, gI as SubAgentToolRelationResponse, cX as SubAgentToolRelationSelect, fP as SubAgentToolRelationSelectSchema, fR as SubAgentToolRelationUpdateSchema, dO as SubAgentUpdateSchema, dp as SummaryEvent, dF as TOOL_STATUS_VALUES, aZ as Task, b_ as TaskApiInsert, e9 as TaskApiInsertSchema, bZ as TaskApiSelect, e8 as TaskApiSelectSchema, b$ as TaskApiUpdate, ea as TaskApiUpdateSchema, bK as TaskArtifact, a$ as TaskArtifactUpdateEvent, bf as TaskIdParams, e6 as TaskInsertSchema, b6 as TaskNotCancelableError, b5 as TaskNotFoundError, be as TaskPushNotificationConfig, bg as TaskQueryParams, c4 as TaskRelationApiInsert, ef as TaskRelationApiInsertSchema, c3 as TaskRelationApiSelect, ee as TaskRelationApiSelectSchema, c5 as TaskRelationApiUpdate, eg as TaskRelationApiUpdateSchema, c1 as TaskRelationInsert, ec as TaskRelationInsertSchema, c0 as TaskRelationSelect, eb as TaskRelationSelectSchema, c2 as TaskRelationUpdate, ed as TaskRelationUpdateSchema, bu as TaskResubscriptionRequest, e5 as TaskSelectSchema, aH as TaskState, aY as TaskStatus, a_ as TaskStatusUpdateEvent, bY as TaskUpdate, e7 as TaskUpdateSchema, gg as TeamAgentSchema, hh as TenantIdParamsSchema, hg as TenantParamsSchema, hl as TenantProjectAgentIdParamsSchema, hk as TenantProjectAgentParamsSchema, hn as TenantProjectAgentSubAgentIdParamsSchema, hm as TenantProjectAgentSubAgentParamsSchema, hj as TenantProjectIdParamsSchema, hi as TenantProjectParamsSchema, aB as TextPart, hq as ThirdPartyMCPServerResponse, c7 as ToolApiInsert, fw as ToolApiInsertSchema, c6 as ToolApiSelect, fv as ToolApiSelectSchema, c8 as ToolApiUpdate, fx as ToolApiUpdateSchema, dj as ToolDefinition, el as ToolInsertSchema, gO as ToolListResponse, gy as ToolResponse, ek as ToolSelectSchema, ei as ToolStatusSchema, fu as ToolUpdateSchema, b8 as UnsupportedOperationError, dG as VALID_RELATION_TYPES, ge as canDelegateToExternalAgentSchema, gf as canDelegateToTeamAgentSchema } from './utility-B5hlet30.js';
|
|
8
8
|
import { CredentialStoreRegistry } from './credential-stores/index.js';
|
|
9
9
|
export { InMemoryCredentialStore, KeyChainStore, NangoCredentialStore, createDefaultCredentialStores, createKeyChainStore, createNangoCredentialStore } from './credential-stores/index.js';
|
|
10
|
-
import { D as DatabaseClient } from './client-
|
|
11
|
-
export { a as DatabaseConfig, c as createDatabaseClient } from './client-
|
|
10
|
+
import { D as DatabaseClient } from './client-BLjor29e.js';
|
|
11
|
+
export { a as DatabaseConfig, c as createDatabaseClient } from './client-BLjor29e.js';
|
|
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';
|
|
15
15
|
import { PgTable } from 'drizzle-orm/pg-core';
|
|
16
16
|
import { UserOrganization, User } from './auth/auth-validation-schemas.js';
|
|
17
|
-
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-
|
|
17
|
+
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-DCB_LgW9.js';
|
|
18
18
|
export { cleanupTestDatabase, closeTestDatabase, createTestDatabaseClient, createTestOrganization, createTestProject } from './db/test-client.js';
|
|
19
19
|
import { ValidateFunction } from 'ajv';
|
|
20
20
|
import { Context, Next } from 'hono';
|
|
@@ -549,14 +549,13 @@ declare const deleteFullAgent: (db: DatabaseClient, logger?: AgentLogger) => (pa
|
|
|
549
549
|
declare const getAgentById: (db: DatabaseClient) => (params: {
|
|
550
550
|
scopes: AgentScopeConfig;
|
|
551
551
|
}) => Promise<{
|
|
552
|
-
tenantId: string;
|
|
553
|
-
projectId: string;
|
|
554
552
|
id: string;
|
|
555
553
|
name: string;
|
|
556
|
-
description: string | null;
|
|
557
|
-
prompt: string | null;
|
|
558
554
|
createdAt: string;
|
|
559
555
|
updatedAt: string;
|
|
556
|
+
description: string | null;
|
|
557
|
+
projectId: string;
|
|
558
|
+
tenantId: string;
|
|
560
559
|
models: {
|
|
561
560
|
base?: {
|
|
562
561
|
model?: string | undefined;
|
|
@@ -576,6 +575,7 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
|
|
|
576
575
|
} | null;
|
|
577
576
|
defaultSubAgentId: string | null;
|
|
578
577
|
contextConfigId: string | null;
|
|
578
|
+
prompt: string | null;
|
|
579
579
|
statusUpdates: {
|
|
580
580
|
enabled?: boolean | undefined;
|
|
581
581
|
numEvents?: number | undefined;
|
|
@@ -595,14 +595,13 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
|
|
|
595
595
|
declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
|
|
596
596
|
scopes: AgentScopeConfig;
|
|
597
597
|
}) => Promise<{
|
|
598
|
-
tenantId: string;
|
|
599
|
-
projectId: string;
|
|
600
598
|
id: string;
|
|
601
599
|
name: string;
|
|
602
|
-
description: string | null;
|
|
603
|
-
prompt: string | null;
|
|
604
600
|
createdAt: string;
|
|
605
601
|
updatedAt: string;
|
|
602
|
+
description: string | null;
|
|
603
|
+
projectId: string;
|
|
604
|
+
tenantId: string;
|
|
606
605
|
models: {
|
|
607
606
|
base?: {
|
|
608
607
|
model?: string | undefined;
|
|
@@ -622,6 +621,7 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
|
|
|
622
621
|
} | null;
|
|
623
622
|
defaultSubAgentId: string | null;
|
|
624
623
|
contextConfigId: string | null;
|
|
624
|
+
prompt: string | null;
|
|
625
625
|
statusUpdates: {
|
|
626
626
|
enabled?: boolean | undefined;
|
|
627
627
|
numEvents?: number | undefined;
|
|
@@ -638,15 +638,13 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
|
|
|
638
638
|
}[] | undefined;
|
|
639
639
|
} | null;
|
|
640
640
|
defaultSubAgent: {
|
|
641
|
-
tenantId: string;
|
|
642
|
-
projectId: string;
|
|
643
641
|
id: string;
|
|
644
642
|
name: string;
|
|
645
|
-
description: string;
|
|
646
|
-
prompt: string;
|
|
647
|
-
agentId: string;
|
|
648
643
|
createdAt: string;
|
|
649
644
|
updatedAt: string;
|
|
645
|
+
description: string;
|
|
646
|
+
projectId: string;
|
|
647
|
+
tenantId: string;
|
|
650
648
|
models: {
|
|
651
649
|
base?: {
|
|
652
650
|
model?: string | undefined;
|
|
@@ -664,20 +662,21 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
|
|
|
664
662
|
stopWhen: {
|
|
665
663
|
stepCountIs?: number | undefined;
|
|
666
664
|
} | null;
|
|
665
|
+
agentId: string;
|
|
666
|
+
prompt: string;
|
|
667
667
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
668
668
|
} | null;
|
|
669
669
|
} | null>;
|
|
670
670
|
declare const listAgents: (db: DatabaseClient) => (params: {
|
|
671
671
|
scopes: ProjectScopeConfig;
|
|
672
672
|
}) => Promise<{
|
|
673
|
-
tenantId: string;
|
|
674
|
-
projectId: string;
|
|
675
673
|
id: string;
|
|
676
674
|
name: string;
|
|
677
|
-
description: string | null;
|
|
678
|
-
prompt: string | null;
|
|
679
675
|
createdAt: string;
|
|
680
676
|
updatedAt: string;
|
|
677
|
+
description: string | null;
|
|
678
|
+
projectId: string;
|
|
679
|
+
tenantId: string;
|
|
681
680
|
models: {
|
|
682
681
|
base?: {
|
|
683
682
|
model?: string | undefined;
|
|
@@ -697,6 +696,7 @@ declare const listAgents: (db: DatabaseClient) => (params: {
|
|
|
697
696
|
} | null;
|
|
698
697
|
defaultSubAgentId: string | null;
|
|
699
698
|
contextConfigId: string | null;
|
|
699
|
+
prompt: string | null;
|
|
700
700
|
statusUpdates: {
|
|
701
701
|
enabled?: boolean | undefined;
|
|
702
702
|
numEvents?: number | undefined;
|
|
@@ -769,14 +769,13 @@ declare const listAgentsPaginated: (db: DatabaseClient) => (params: {
|
|
|
769
769
|
};
|
|
770
770
|
}>;
|
|
771
771
|
declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promise<{
|
|
772
|
-
tenantId: string;
|
|
773
|
-
projectId: string;
|
|
774
772
|
id: string;
|
|
775
773
|
name: string;
|
|
776
|
-
description: string | null;
|
|
777
|
-
prompt: string | null;
|
|
778
774
|
createdAt: string;
|
|
779
775
|
updatedAt: string;
|
|
776
|
+
description: string | null;
|
|
777
|
+
projectId: string;
|
|
778
|
+
tenantId: string;
|
|
780
779
|
models: {
|
|
781
780
|
base?: {
|
|
782
781
|
model?: string | undefined;
|
|
@@ -796,6 +795,7 @@ declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promis
|
|
|
796
795
|
} | null;
|
|
797
796
|
defaultSubAgentId: string | null;
|
|
798
797
|
contextConfigId: string | null;
|
|
798
|
+
prompt: string | null;
|
|
799
799
|
statusUpdates: {
|
|
800
800
|
enabled?: boolean | undefined;
|
|
801
801
|
numEvents?: number | undefined;
|
|
@@ -896,49 +896,49 @@ declare const getApiKeyById: (db: DatabaseClient) => (params: {
|
|
|
896
896
|
scopes: ProjectScopeConfig;
|
|
897
897
|
id: string;
|
|
898
898
|
}) => Promise<{
|
|
899
|
-
tenantId: string;
|
|
900
|
-
projectId: string;
|
|
901
899
|
id: string;
|
|
902
900
|
name: string | null;
|
|
901
|
+
createdAt: string;
|
|
902
|
+
updatedAt: string;
|
|
903
|
+
expiresAt: string | null;
|
|
904
|
+
projectId: string;
|
|
905
|
+
tenantId: string;
|
|
903
906
|
agentId: string;
|
|
904
907
|
publicId: string;
|
|
905
908
|
keyHash: string;
|
|
906
909
|
keyPrefix: string;
|
|
907
910
|
lastUsedAt: string | null;
|
|
908
|
-
expiresAt: string | null;
|
|
909
|
-
createdAt: string;
|
|
910
|
-
updatedAt: string;
|
|
911
911
|
} | undefined>;
|
|
912
912
|
declare const getApiKeyByPublicId: (db: DatabaseClient) => (publicId: string) => Promise<{
|
|
913
|
-
tenantId: string;
|
|
914
|
-
projectId: string;
|
|
915
913
|
id: string;
|
|
916
914
|
name: string | null;
|
|
915
|
+
createdAt: string;
|
|
916
|
+
updatedAt: string;
|
|
917
|
+
expiresAt: string | null;
|
|
918
|
+
projectId: string;
|
|
919
|
+
tenantId: string;
|
|
917
920
|
agentId: string;
|
|
918
921
|
publicId: string;
|
|
919
922
|
keyHash: string;
|
|
920
923
|
keyPrefix: string;
|
|
921
924
|
lastUsedAt: string | null;
|
|
922
|
-
expiresAt: string | null;
|
|
923
|
-
createdAt: string;
|
|
924
|
-
updatedAt: string;
|
|
925
925
|
} | undefined>;
|
|
926
926
|
declare const listApiKeys: (db: DatabaseClient) => (params: {
|
|
927
927
|
scopes: ProjectScopeConfig;
|
|
928
928
|
agentId?: string;
|
|
929
929
|
}) => Promise<{
|
|
930
|
-
tenantId: string;
|
|
931
|
-
projectId: string;
|
|
932
930
|
id: string;
|
|
933
931
|
name: string | null;
|
|
932
|
+
createdAt: string;
|
|
933
|
+
updatedAt: string;
|
|
934
|
+
expiresAt: string | null;
|
|
935
|
+
projectId: string;
|
|
936
|
+
tenantId: string;
|
|
934
937
|
agentId: string;
|
|
935
938
|
publicId: string;
|
|
936
939
|
keyHash: string;
|
|
937
940
|
keyPrefix: string;
|
|
938
941
|
lastUsedAt: string | null;
|
|
939
|
-
expiresAt: string | null;
|
|
940
|
-
createdAt: string;
|
|
941
|
-
updatedAt: string;
|
|
942
942
|
}[]>;
|
|
943
943
|
declare const listApiKeysPaginated: (db: DatabaseClient) => (params: {
|
|
944
944
|
scopes: ProjectScopeConfig;
|
|
@@ -954,18 +954,18 @@ declare const listApiKeysPaginated: (db: DatabaseClient) => (params: {
|
|
|
954
954
|
};
|
|
955
955
|
}>;
|
|
956
956
|
declare const createApiKey: (db: DatabaseClient) => (params: ApiKeyInsert) => Promise<{
|
|
957
|
-
tenantId: string;
|
|
958
|
-
projectId: string;
|
|
959
957
|
id: string;
|
|
960
958
|
name: string | null;
|
|
959
|
+
createdAt: string;
|
|
960
|
+
updatedAt: string;
|
|
961
|
+
expiresAt: string | null;
|
|
962
|
+
projectId: string;
|
|
963
|
+
tenantId: string;
|
|
961
964
|
agentId: string;
|
|
962
965
|
publicId: string;
|
|
963
966
|
keyHash: string;
|
|
964
967
|
keyPrefix: string;
|
|
965
968
|
lastUsedAt: string | null;
|
|
966
|
-
expiresAt: string | null;
|
|
967
|
-
createdAt: string;
|
|
968
|
-
updatedAt: string;
|
|
969
969
|
}>;
|
|
970
970
|
declare const updateApiKey: (db: DatabaseClient) => (params: {
|
|
971
971
|
scopes: ProjectScopeConfig;
|
|
@@ -1012,13 +1012,13 @@ declare const getArtifactComponentById: (db: DatabaseClient) => (params: {
|
|
|
1012
1012
|
scopes: ProjectScopeConfig;
|
|
1013
1013
|
id: string;
|
|
1014
1014
|
}) => Promise<{
|
|
1015
|
-
tenantId: string;
|
|
1016
|
-
projectId: string;
|
|
1017
1015
|
id: string;
|
|
1018
1016
|
name: string;
|
|
1019
|
-
description: string;
|
|
1020
1017
|
createdAt: string;
|
|
1021
1018
|
updatedAt: string;
|
|
1019
|
+
description: string;
|
|
1020
|
+
projectId: string;
|
|
1021
|
+
tenantId: string;
|
|
1022
1022
|
props: Record<string, unknown> | null;
|
|
1023
1023
|
} | undefined>;
|
|
1024
1024
|
declare const listArtifactComponents: (db: DatabaseClient) => (params: {
|
|
@@ -1046,13 +1046,13 @@ declare const listArtifactComponentsPaginated: (db: DatabaseClient) => (params:
|
|
|
1046
1046
|
};
|
|
1047
1047
|
}>;
|
|
1048
1048
|
declare const createArtifactComponent: (db: DatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
|
|
1049
|
-
tenantId: string;
|
|
1050
|
-
projectId: string;
|
|
1051
1049
|
id: string;
|
|
1052
1050
|
name: string;
|
|
1053
|
-
description: string;
|
|
1054
1051
|
createdAt: string;
|
|
1055
1052
|
updatedAt: string;
|
|
1053
|
+
description: string;
|
|
1054
|
+
projectId: string;
|
|
1055
|
+
tenantId: string;
|
|
1056
1056
|
props: Record<string, unknown> | null;
|
|
1057
1057
|
}>;
|
|
1058
1058
|
declare const updateArtifactComponent: (db: DatabaseClient) => (params: {
|
|
@@ -1089,11 +1089,11 @@ declare const associateArtifactComponentWithAgent: (db: DatabaseClient) => (para
|
|
|
1089
1089
|
scopes: SubAgentScopeConfig;
|
|
1090
1090
|
artifactComponentId: string;
|
|
1091
1091
|
}) => Promise<{
|
|
1092
|
-
tenantId: string;
|
|
1093
|
-
projectId: string;
|
|
1094
1092
|
id: string;
|
|
1095
|
-
agentId: string;
|
|
1096
1093
|
createdAt: string;
|
|
1094
|
+
projectId: string;
|
|
1095
|
+
tenantId: string;
|
|
1096
|
+
agentId: string;
|
|
1097
1097
|
subAgentId: string;
|
|
1098
1098
|
artifactComponentId: string;
|
|
1099
1099
|
}>;
|
|
@@ -1132,11 +1132,11 @@ declare const upsertAgentArtifactComponentRelation: (db: DatabaseClient) => (par
|
|
|
1132
1132
|
scopes: SubAgentScopeConfig;
|
|
1133
1133
|
artifactComponentId: string;
|
|
1134
1134
|
}) => Promise<{
|
|
1135
|
-
tenantId: string;
|
|
1136
|
-
projectId: string;
|
|
1137
1135
|
id: string;
|
|
1138
|
-
agentId: string;
|
|
1139
1136
|
createdAt: string;
|
|
1137
|
+
projectId: string;
|
|
1138
|
+
tenantId: string;
|
|
1139
|
+
agentId: string;
|
|
1140
1140
|
subAgentId: string;
|
|
1141
1141
|
artifactComponentId: string;
|
|
1142
1142
|
} | null>;
|
|
@@ -1216,26 +1216,26 @@ declare const getContextConfigById: (db: DatabaseClient) => (params: {
|
|
|
1216
1216
|
scopes: AgentScopeConfig;
|
|
1217
1217
|
id: string;
|
|
1218
1218
|
}) => Promise<{
|
|
1219
|
-
tenantId: string;
|
|
1220
|
-
projectId: string;
|
|
1221
1219
|
id: string;
|
|
1222
|
-
agentId: string;
|
|
1223
1220
|
createdAt: string;
|
|
1224
1221
|
updatedAt: string;
|
|
1222
|
+
projectId: string;
|
|
1223
|
+
tenantId: string;
|
|
1225
1224
|
headersSchema: unknown;
|
|
1226
1225
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
1226
|
+
agentId: string;
|
|
1227
1227
|
} | undefined>;
|
|
1228
1228
|
declare const listContextConfigs: (db: DatabaseClient) => (params: {
|
|
1229
1229
|
scopes: AgentScopeConfig;
|
|
1230
1230
|
}) => Promise<{
|
|
1231
|
-
tenantId: string;
|
|
1232
|
-
projectId: string;
|
|
1233
1231
|
id: string;
|
|
1234
|
-
agentId: string;
|
|
1235
1232
|
createdAt: string;
|
|
1236
1233
|
updatedAt: string;
|
|
1234
|
+
projectId: string;
|
|
1235
|
+
tenantId: string;
|
|
1237
1236
|
headersSchema: unknown;
|
|
1238
1237
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
1238
|
+
agentId: string;
|
|
1239
1239
|
}[]>;
|
|
1240
1240
|
declare const listContextConfigsPaginated: (db: DatabaseClient) => (params: {
|
|
1241
1241
|
scopes: AgentScopeConfig;
|
|
@@ -1250,14 +1250,14 @@ declare const listContextConfigsPaginated: (db: DatabaseClient) => (params: {
|
|
|
1250
1250
|
};
|
|
1251
1251
|
}>;
|
|
1252
1252
|
declare const createContextConfig: (db: DatabaseClient) => (params: ContextConfigInsert) => Promise<{
|
|
1253
|
-
tenantId: string;
|
|
1254
|
-
projectId: string;
|
|
1255
1253
|
id: string;
|
|
1256
|
-
agentId: string;
|
|
1257
1254
|
createdAt: string;
|
|
1258
1255
|
updatedAt: string;
|
|
1256
|
+
projectId: string;
|
|
1257
|
+
tenantId: string;
|
|
1259
1258
|
headersSchema: unknown;
|
|
1260
1259
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
1260
|
+
agentId: string;
|
|
1261
1261
|
}>;
|
|
1262
1262
|
declare const updateContextConfig: (db: DatabaseClient) => (params: {
|
|
1263
1263
|
scopes: AgentScopeConfig;
|
|
@@ -1290,14 +1290,14 @@ declare const countContextConfigs: (db: DatabaseClient) => (params: {
|
|
|
1290
1290
|
declare const upsertContextConfig: (db: DatabaseClient) => (params: {
|
|
1291
1291
|
data: ContextConfigInsert;
|
|
1292
1292
|
}) => Promise<{
|
|
1293
|
-
tenantId: string;
|
|
1294
|
-
projectId: string;
|
|
1295
1293
|
id: string;
|
|
1296
|
-
agentId: string;
|
|
1297
1294
|
createdAt: string;
|
|
1298
1295
|
updatedAt: string;
|
|
1296
|
+
projectId: string;
|
|
1297
|
+
tenantId: string;
|
|
1299
1298
|
headersSchema: unknown;
|
|
1300
1299
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
1300
|
+
agentId: string;
|
|
1301
1301
|
}>;
|
|
1302
1302
|
|
|
1303
1303
|
declare const listConversations: (db: DatabaseClient) => (params: {
|
|
@@ -1309,14 +1309,14 @@ declare const listConversations: (db: DatabaseClient) => (params: {
|
|
|
1309
1309
|
total: number;
|
|
1310
1310
|
}>;
|
|
1311
1311
|
declare const createConversation: (db: DatabaseClient) => (params: ConversationInsert) => Promise<{
|
|
1312
|
-
tenantId: string;
|
|
1313
|
-
projectId: string;
|
|
1314
1312
|
id: string;
|
|
1315
|
-
title: string | null;
|
|
1316
1313
|
createdAt: string;
|
|
1317
1314
|
updatedAt: string;
|
|
1318
|
-
metadata: ConversationMetadata | null;
|
|
1319
1315
|
userId: string | null;
|
|
1316
|
+
metadata: ConversationMetadata | null;
|
|
1317
|
+
title: string | null;
|
|
1318
|
+
projectId: string;
|
|
1319
|
+
tenantId: string;
|
|
1320
1320
|
activeSubAgentId: string;
|
|
1321
1321
|
lastContextResolution: string | null;
|
|
1322
1322
|
}>;
|
|
@@ -1360,14 +1360,14 @@ declare const getConversation: (db: DatabaseClient) => (params: {
|
|
|
1360
1360
|
scopes: ProjectScopeConfig;
|
|
1361
1361
|
conversationId: string;
|
|
1362
1362
|
}) => Promise<{
|
|
1363
|
-
tenantId: string;
|
|
1364
|
-
projectId: string;
|
|
1365
1363
|
id: string;
|
|
1366
|
-
title: string | null;
|
|
1367
1364
|
createdAt: string;
|
|
1368
1365
|
updatedAt: string;
|
|
1369
|
-
metadata: ConversationMetadata | null;
|
|
1370
1366
|
userId: string | null;
|
|
1367
|
+
metadata: ConversationMetadata | null;
|
|
1368
|
+
title: string | null;
|
|
1369
|
+
projectId: string;
|
|
1370
|
+
tenantId: string;
|
|
1371
1371
|
activeSubAgentId: string;
|
|
1372
1372
|
lastContextResolution: string | null;
|
|
1373
1373
|
} | undefined>;
|
|
@@ -1384,14 +1384,14 @@ declare const createOrGetConversation: (db: DatabaseClient) => (input: Conversat
|
|
|
1384
1384
|
metadata?: ConversationMetadata | null | undefined;
|
|
1385
1385
|
contextConfigId?: string | undefined;
|
|
1386
1386
|
} | {
|
|
1387
|
-
tenantId: string;
|
|
1388
|
-
projectId: string;
|
|
1389
1387
|
id: string;
|
|
1390
|
-
title: string | null;
|
|
1391
1388
|
createdAt: string;
|
|
1392
1389
|
updatedAt: string;
|
|
1393
|
-
metadata: ConversationMetadata | null;
|
|
1394
1390
|
userId: string | null;
|
|
1391
|
+
metadata: ConversationMetadata | null;
|
|
1392
|
+
title: string | null;
|
|
1393
|
+
projectId: string;
|
|
1394
|
+
tenantId: string;
|
|
1395
1395
|
activeSubAgentId: string;
|
|
1396
1396
|
lastContextResolution: string | null;
|
|
1397
1397
|
}>;
|
|
@@ -1410,14 +1410,14 @@ declare const getActiveAgentForConversation: (db: DatabaseClient) => (params: {
|
|
|
1410
1410
|
scopes: ProjectScopeConfig;
|
|
1411
1411
|
conversationId: string;
|
|
1412
1412
|
}) => Promise<{
|
|
1413
|
-
tenantId: string;
|
|
1414
|
-
projectId: string;
|
|
1415
1413
|
id: string;
|
|
1416
|
-
title: string | null;
|
|
1417
1414
|
createdAt: string;
|
|
1418
1415
|
updatedAt: string;
|
|
1419
|
-
metadata: ConversationMetadata | null;
|
|
1420
1416
|
userId: string | null;
|
|
1417
|
+
metadata: ConversationMetadata | null;
|
|
1418
|
+
title: string | null;
|
|
1419
|
+
projectId: string;
|
|
1420
|
+
tenantId: string;
|
|
1421
1421
|
activeSubAgentId: string;
|
|
1422
1422
|
lastContextResolution: string | null;
|
|
1423
1423
|
} | undefined>;
|
|
@@ -1580,11 +1580,11 @@ declare const associateDataComponentWithAgent: (db: DatabaseClient) => (params:
|
|
|
1580
1580
|
scopes: SubAgentScopeConfig;
|
|
1581
1581
|
dataComponentId: string;
|
|
1582
1582
|
}) => Promise<{
|
|
1583
|
-
tenantId: string;
|
|
1584
|
-
projectId: string;
|
|
1585
1583
|
id: string;
|
|
1586
|
-
agentId: string;
|
|
1587
1584
|
createdAt: string;
|
|
1585
|
+
projectId: string;
|
|
1586
|
+
tenantId: string;
|
|
1587
|
+
agentId: string;
|
|
1588
1588
|
subAgentId: string;
|
|
1589
1589
|
dataComponentId: string;
|
|
1590
1590
|
}>;
|
|
@@ -1622,11 +1622,11 @@ declare const upsertAgentDataComponentRelation: (db: DatabaseClient) => (params:
|
|
|
1622
1622
|
scopes: SubAgentScopeConfig;
|
|
1623
1623
|
dataComponentId: string;
|
|
1624
1624
|
}) => Promise<{
|
|
1625
|
-
tenantId: string;
|
|
1626
|
-
projectId: string;
|
|
1627
1625
|
id: string;
|
|
1628
|
-
agentId: string;
|
|
1629
1626
|
createdAt: string;
|
|
1627
|
+
projectId: string;
|
|
1628
|
+
tenantId: string;
|
|
1629
|
+
agentId: string;
|
|
1630
1630
|
subAgentId: string;
|
|
1631
1631
|
dataComponentId: string;
|
|
1632
1632
|
} | null>;
|
|
@@ -1801,14 +1801,14 @@ declare const createFunctionTool: (db: DatabaseClient) => (params: {
|
|
|
1801
1801
|
data: FunctionToolApiInsert;
|
|
1802
1802
|
scopes: AgentScopeConfig;
|
|
1803
1803
|
}) => Promise<{
|
|
1804
|
-
tenantId: string;
|
|
1805
|
-
projectId: string;
|
|
1806
1804
|
id: string;
|
|
1807
1805
|
name: string;
|
|
1808
|
-
description: string | null;
|
|
1809
|
-
agentId: string;
|
|
1810
1806
|
createdAt: string;
|
|
1811
1807
|
updatedAt: string;
|
|
1808
|
+
description: string | null;
|
|
1809
|
+
projectId: string;
|
|
1810
|
+
tenantId: string;
|
|
1811
|
+
agentId: string;
|
|
1812
1812
|
functionId: string;
|
|
1813
1813
|
}>;
|
|
1814
1814
|
/**
|
|
@@ -1843,14 +1843,14 @@ declare const upsertFunctionTool: (db: DatabaseClient) => (params: {
|
|
|
1843
1843
|
data: FunctionToolApiInsert;
|
|
1844
1844
|
scopes: AgentScopeConfig;
|
|
1845
1845
|
}) => Promise<{
|
|
1846
|
-
tenantId: string;
|
|
1847
|
-
projectId: string;
|
|
1848
1846
|
id: string;
|
|
1849
1847
|
name: string;
|
|
1850
|
-
description: string | null;
|
|
1851
|
-
agentId: string;
|
|
1852
1848
|
createdAt: string;
|
|
1853
1849
|
updatedAt: string;
|
|
1850
|
+
description: string | null;
|
|
1851
|
+
projectId: string;
|
|
1852
|
+
tenantId: string;
|
|
1853
|
+
agentId: string;
|
|
1854
1854
|
functionId: string;
|
|
1855
1855
|
}>;
|
|
1856
1856
|
declare const getFunctionToolsForSubAgent: (db: DatabaseClient) => (params: {
|
|
@@ -1980,14 +1980,14 @@ declare const getMessageById: (db: DatabaseClient) => (params: {
|
|
|
1980
1980
|
scopes: ProjectScopeConfig;
|
|
1981
1981
|
messageId: string;
|
|
1982
1982
|
}) => Promise<{
|
|
1983
|
-
tenantId: string;
|
|
1984
|
-
projectId: string;
|
|
1985
1983
|
id: string;
|
|
1986
1984
|
createdAt: string;
|
|
1987
1985
|
updatedAt: string;
|
|
1988
1986
|
metadata: MessageMetadata | null;
|
|
1989
|
-
content: MessageContent;
|
|
1990
1987
|
role: string;
|
|
1988
|
+
projectId: string;
|
|
1989
|
+
tenantId: string;
|
|
1990
|
+
content: MessageContent;
|
|
1991
1991
|
conversationId: string;
|
|
1992
1992
|
fromSubAgentId: string | null;
|
|
1993
1993
|
toSubAgentId: string | null;
|
|
@@ -2111,14 +2111,14 @@ declare const getVisibleMessages: (db: DatabaseClient) => (params: {
|
|
|
2111
2111
|
id: string;
|
|
2112
2112
|
}[]>;
|
|
2113
2113
|
declare const createMessage: (db: DatabaseClient) => (params: MessageInsert) => Promise<{
|
|
2114
|
-
tenantId: string;
|
|
2115
|
-
projectId: string;
|
|
2116
2114
|
id: string;
|
|
2117
2115
|
createdAt: string;
|
|
2118
2116
|
updatedAt: string;
|
|
2119
2117
|
metadata: MessageMetadata | null;
|
|
2120
|
-
content: MessageContent;
|
|
2121
2118
|
role: string;
|
|
2119
|
+
projectId: string;
|
|
2120
|
+
tenantId: string;
|
|
2121
|
+
content: MessageContent;
|
|
2122
2122
|
conversationId: string;
|
|
2123
2123
|
fromSubAgentId: string | null;
|
|
2124
2124
|
toSubAgentId: string | null;
|
|
@@ -2164,14 +2164,14 @@ declare const deleteMessage: (db: DatabaseClient) => (params: {
|
|
|
2164
2164
|
scopes: ProjectScopeConfig;
|
|
2165
2165
|
messageId: string;
|
|
2166
2166
|
}) => Promise<{
|
|
2167
|
-
tenantId: string;
|
|
2168
|
-
projectId: string;
|
|
2169
2167
|
id: string;
|
|
2170
2168
|
createdAt: string;
|
|
2171
2169
|
updatedAt: string;
|
|
2172
2170
|
metadata: MessageMetadata | null;
|
|
2173
|
-
content: MessageContent;
|
|
2174
2171
|
role: string;
|
|
2172
|
+
projectId: string;
|
|
2173
|
+
tenantId: string;
|
|
2174
|
+
content: MessageContent;
|
|
2175
2175
|
conversationId: string;
|
|
2176
2176
|
fromSubAgentId: string | null;
|
|
2177
2177
|
toSubAgentId: string | null;
|
|
@@ -2326,15 +2326,15 @@ declare const getSubAgentExternalAgentRelationById: (db: DatabaseClient) => (par
|
|
|
2326
2326
|
scopes: SubAgentScopeConfig;
|
|
2327
2327
|
relationId: string;
|
|
2328
2328
|
}) => Promise<{
|
|
2329
|
-
tenantId: string;
|
|
2330
|
-
projectId: string;
|
|
2331
2329
|
id: string;
|
|
2332
|
-
agentId: string;
|
|
2333
2330
|
createdAt: string;
|
|
2334
2331
|
updatedAt: string;
|
|
2335
2332
|
headers: Record<string, string> | null;
|
|
2336
|
-
|
|
2333
|
+
projectId: string;
|
|
2334
|
+
tenantId: string;
|
|
2335
|
+
agentId: string;
|
|
2337
2336
|
subAgentId: string;
|
|
2337
|
+
externalAgentId: string;
|
|
2338
2338
|
} | undefined>;
|
|
2339
2339
|
declare const listSubAgentExternalAgentRelations: (db: DatabaseClient) => (params: {
|
|
2340
2340
|
scopes: SubAgentScopeConfig;
|
|
@@ -2361,28 +2361,28 @@ declare const listSubAgentExternalAgentRelations: (db: DatabaseClient) => (param
|
|
|
2361
2361
|
declare const getSubAgentExternalAgentRelations: (db: DatabaseClient) => (params: {
|
|
2362
2362
|
scopes: SubAgentScopeConfig;
|
|
2363
2363
|
}) => Promise<{
|
|
2364
|
-
tenantId: string;
|
|
2365
|
-
projectId: string;
|
|
2366
2364
|
id: string;
|
|
2367
|
-
agentId: string;
|
|
2368
2365
|
createdAt: string;
|
|
2369
2366
|
updatedAt: string;
|
|
2370
2367
|
headers: Record<string, string> | null;
|
|
2371
|
-
|
|
2368
|
+
projectId: string;
|
|
2369
|
+
tenantId: string;
|
|
2370
|
+
agentId: string;
|
|
2372
2371
|
subAgentId: string;
|
|
2372
|
+
externalAgentId: string;
|
|
2373
2373
|
}[]>;
|
|
2374
2374
|
declare const getSubAgentExternalAgentRelationsByAgent: (db: DatabaseClient) => (params: {
|
|
2375
2375
|
scopes: AgentScopeConfig;
|
|
2376
2376
|
}) => Promise<{
|
|
2377
|
-
tenantId: string;
|
|
2378
|
-
projectId: string;
|
|
2379
2377
|
id: string;
|
|
2380
|
-
agentId: string;
|
|
2381
2378
|
createdAt: string;
|
|
2382
2379
|
updatedAt: string;
|
|
2383
2380
|
headers: Record<string, string> | null;
|
|
2384
|
-
|
|
2381
|
+
projectId: string;
|
|
2382
|
+
tenantId: string;
|
|
2383
|
+
agentId: string;
|
|
2385
2384
|
subAgentId: string;
|
|
2385
|
+
externalAgentId: string;
|
|
2386
2386
|
}[]>;
|
|
2387
2387
|
declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: DatabaseClient) => (params: {
|
|
2388
2388
|
scopes: AgentScopeConfig;
|
|
@@ -2497,15 +2497,15 @@ declare const createSubAgentExternalAgentRelation: (db: DatabaseClient) => (para
|
|
|
2497
2497
|
headers?: Record<string, string> | null;
|
|
2498
2498
|
};
|
|
2499
2499
|
}) => Promise<{
|
|
2500
|
-
tenantId: string;
|
|
2501
|
-
projectId: string;
|
|
2502
2500
|
id: string;
|
|
2503
|
-
agentId: string;
|
|
2504
2501
|
createdAt: string;
|
|
2505
2502
|
updatedAt: string;
|
|
2506
2503
|
headers: Record<string, string> | null;
|
|
2507
|
-
|
|
2504
|
+
projectId: string;
|
|
2505
|
+
tenantId: string;
|
|
2506
|
+
agentId: string;
|
|
2508
2507
|
subAgentId: string;
|
|
2508
|
+
externalAgentId: string;
|
|
2509
2509
|
}>;
|
|
2510
2510
|
/**
|
|
2511
2511
|
* Check if sub-agent external agent relation exists by params
|
|
@@ -2514,15 +2514,15 @@ declare const getSubAgentExternalAgentRelationByParams: (db: DatabaseClient) =>
|
|
|
2514
2514
|
scopes: SubAgentScopeConfig;
|
|
2515
2515
|
externalAgentId: string;
|
|
2516
2516
|
}) => Promise<{
|
|
2517
|
-
tenantId: string;
|
|
2518
|
-
projectId: string;
|
|
2519
2517
|
id: string;
|
|
2520
|
-
agentId: string;
|
|
2521
2518
|
createdAt: string;
|
|
2522
2519
|
updatedAt: string;
|
|
2523
2520
|
headers: Record<string, string> | null;
|
|
2524
|
-
|
|
2521
|
+
projectId: string;
|
|
2522
|
+
tenantId: string;
|
|
2523
|
+
agentId: string;
|
|
2525
2524
|
subAgentId: string;
|
|
2525
|
+
externalAgentId: string;
|
|
2526
2526
|
} | undefined>;
|
|
2527
2527
|
/**
|
|
2528
2528
|
* Upsert sub-agent external agent relation (create if it doesn't exist, update if it does)
|
|
@@ -2535,15 +2535,15 @@ declare const upsertSubAgentExternalAgentRelation: (db: DatabaseClient) => (para
|
|
|
2535
2535
|
headers?: Record<string, string> | null;
|
|
2536
2536
|
};
|
|
2537
2537
|
}) => Promise<{
|
|
2538
|
-
tenantId: string;
|
|
2539
|
-
projectId: string;
|
|
2540
2538
|
id: string;
|
|
2541
|
-
agentId: string;
|
|
2542
2539
|
createdAt: string;
|
|
2543
2540
|
updatedAt: string;
|
|
2544
2541
|
headers: Record<string, string> | null;
|
|
2545
|
-
|
|
2542
|
+
projectId: string;
|
|
2543
|
+
tenantId: string;
|
|
2544
|
+
agentId: string;
|
|
2546
2545
|
subAgentId: string;
|
|
2546
|
+
externalAgentId: string;
|
|
2547
2547
|
}>;
|
|
2548
2548
|
declare const updateSubAgentExternalAgentRelation: (db: DatabaseClient) => (params: {
|
|
2549
2549
|
scopes: SubAgentScopeConfig;
|
|
@@ -2575,12 +2575,12 @@ declare const getAgentRelationById: (db: DatabaseClient) => (params: {
|
|
|
2575
2575
|
scopes: AgentScopeConfig;
|
|
2576
2576
|
relationId: string;
|
|
2577
2577
|
}) => Promise<{
|
|
2578
|
-
tenantId: string;
|
|
2579
|
-
projectId: string;
|
|
2580
2578
|
id: string;
|
|
2581
|
-
agentId: string;
|
|
2582
2579
|
createdAt: string;
|
|
2583
2580
|
updatedAt: string;
|
|
2581
|
+
projectId: string;
|
|
2582
|
+
tenantId: string;
|
|
2583
|
+
agentId: string;
|
|
2584
2584
|
sourceSubAgentId: string;
|
|
2585
2585
|
targetSubAgentId: string | null;
|
|
2586
2586
|
relationType: string | null;
|
|
@@ -2610,12 +2610,12 @@ declare const listAgentRelations: (db: DatabaseClient) => (params: {
|
|
|
2610
2610
|
declare const getAgentRelations: (db: DatabaseClient) => (params: {
|
|
2611
2611
|
scopes: SubAgentScopeConfig;
|
|
2612
2612
|
}) => Promise<{
|
|
2613
|
-
tenantId: string;
|
|
2614
|
-
projectId: string;
|
|
2615
2613
|
id: string;
|
|
2616
|
-
agentId: string;
|
|
2617
2614
|
createdAt: string;
|
|
2618
2615
|
updatedAt: string;
|
|
2616
|
+
projectId: string;
|
|
2617
|
+
tenantId: string;
|
|
2618
|
+
agentId: string;
|
|
2619
2619
|
sourceSubAgentId: string;
|
|
2620
2620
|
targetSubAgentId: string | null;
|
|
2621
2621
|
relationType: string | null;
|
|
@@ -2623,12 +2623,12 @@ declare const getAgentRelations: (db: DatabaseClient) => (params: {
|
|
|
2623
2623
|
declare const getAgentRelationsByAgent: (db: DatabaseClient) => (params: {
|
|
2624
2624
|
scopes: AgentScopeConfig;
|
|
2625
2625
|
}) => Promise<{
|
|
2626
|
-
tenantId: string;
|
|
2627
|
-
projectId: string;
|
|
2628
2626
|
id: string;
|
|
2629
|
-
agentId: string;
|
|
2630
2627
|
createdAt: string;
|
|
2631
2628
|
updatedAt: string;
|
|
2629
|
+
projectId: string;
|
|
2630
|
+
tenantId: string;
|
|
2631
|
+
agentId: string;
|
|
2632
2632
|
sourceSubAgentId: string;
|
|
2633
2633
|
targetSubAgentId: string | null;
|
|
2634
2634
|
relationType: string | null;
|
|
@@ -2691,12 +2691,12 @@ declare const getRelatedAgentsForAgent: (db: DatabaseClient) => (params: {
|
|
|
2691
2691
|
}[];
|
|
2692
2692
|
}>;
|
|
2693
2693
|
declare const createSubAgentRelation: (db: DatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
|
|
2694
|
-
tenantId: string;
|
|
2695
|
-
projectId: string;
|
|
2696
2694
|
id: string;
|
|
2697
|
-
agentId: string;
|
|
2698
2695
|
createdAt: string;
|
|
2699
2696
|
updatedAt: string;
|
|
2697
|
+
projectId: string;
|
|
2698
|
+
tenantId: string;
|
|
2699
|
+
agentId: string;
|
|
2700
2700
|
sourceSubAgentId: string;
|
|
2701
2701
|
targetSubAgentId: string | null;
|
|
2702
2702
|
relationType: string | null;
|
|
@@ -2710,12 +2710,12 @@ declare const getAgentRelationByParams: (db: DatabaseClient) => (params: {
|
|
|
2710
2710
|
targetSubAgentId?: string;
|
|
2711
2711
|
relationType: string;
|
|
2712
2712
|
}) => Promise<{
|
|
2713
|
-
tenantId: string;
|
|
2714
|
-
projectId: string;
|
|
2715
2713
|
id: string;
|
|
2716
|
-
agentId: string;
|
|
2717
2714
|
createdAt: string;
|
|
2718
2715
|
updatedAt: string;
|
|
2716
|
+
projectId: string;
|
|
2717
|
+
tenantId: string;
|
|
2718
|
+
agentId: string;
|
|
2719
2719
|
sourceSubAgentId: string;
|
|
2720
2720
|
targetSubAgentId: string | null;
|
|
2721
2721
|
relationType: string | null;
|
|
@@ -2724,12 +2724,12 @@ declare const getAgentRelationByParams: (db: DatabaseClient) => (params: {
|
|
|
2724
2724
|
* Upsert agent relation (create if it doesn't exist, no-op if it does)
|
|
2725
2725
|
*/
|
|
2726
2726
|
declare const upsertSubAgentRelation: (db: DatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
|
|
2727
|
-
tenantId: string;
|
|
2728
|
-
projectId: string;
|
|
2729
2727
|
id: string;
|
|
2730
|
-
agentId: string;
|
|
2731
2728
|
createdAt: string;
|
|
2732
2729
|
updatedAt: string;
|
|
2730
|
+
projectId: string;
|
|
2731
|
+
tenantId: string;
|
|
2732
|
+
agentId: string;
|
|
2733
2733
|
sourceSubAgentId: string;
|
|
2734
2734
|
targetSubAgentId: string | null;
|
|
2735
2735
|
relationType: string | null;
|
|
@@ -2766,16 +2766,16 @@ declare const createAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
|
2766
2766
|
headers?: Record<string, string> | null;
|
|
2767
2767
|
};
|
|
2768
2768
|
}) => Promise<{
|
|
2769
|
-
tenantId: string;
|
|
2770
|
-
projectId: string;
|
|
2771
2769
|
id: string;
|
|
2772
|
-
agentId: string;
|
|
2773
2770
|
createdAt: string;
|
|
2774
2771
|
updatedAt: string;
|
|
2775
2772
|
headers: Record<string, string> | null;
|
|
2776
|
-
|
|
2773
|
+
projectId: string;
|
|
2774
|
+
tenantId: string;
|
|
2775
|
+
agentId: string;
|
|
2777
2776
|
selectedTools: string[] | null;
|
|
2778
2777
|
subAgentId: string;
|
|
2778
|
+
toolId: string;
|
|
2779
2779
|
}>;
|
|
2780
2780
|
declare const updateAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
2781
2781
|
scopes: AgentScopeConfig;
|
|
@@ -2804,16 +2804,16 @@ declare const getAgentToolRelationById: (db: DatabaseClient) => (params: {
|
|
|
2804
2804
|
scopes: SubAgentScopeConfig;
|
|
2805
2805
|
relationId: string;
|
|
2806
2806
|
}) => Promise<{
|
|
2807
|
-
tenantId: string;
|
|
2808
|
-
projectId: string;
|
|
2809
2807
|
id: string;
|
|
2810
|
-
agentId: string;
|
|
2811
2808
|
createdAt: string;
|
|
2812
2809
|
updatedAt: string;
|
|
2813
2810
|
headers: Record<string, string> | null;
|
|
2814
|
-
|
|
2811
|
+
projectId: string;
|
|
2812
|
+
tenantId: string;
|
|
2813
|
+
agentId: string;
|
|
2815
2814
|
selectedTools: string[] | null;
|
|
2816
2815
|
subAgentId: string;
|
|
2816
|
+
toolId: string;
|
|
2817
2817
|
} | undefined>;
|
|
2818
2818
|
declare const getAgentToolRelationByAgent: (db: DatabaseClient) => (params: {
|
|
2819
2819
|
scopes: SubAgentScopeConfig;
|
|
@@ -2980,15 +2980,13 @@ declare const getSubAgentById: (db: DatabaseClient) => (params: {
|
|
|
2980
2980
|
scopes: AgentScopeConfig;
|
|
2981
2981
|
subAgentId: string;
|
|
2982
2982
|
}) => Promise<{
|
|
2983
|
-
tenantId: string;
|
|
2984
|
-
projectId: string;
|
|
2985
2983
|
id: string;
|
|
2986
2984
|
name: string;
|
|
2987
|
-
description: string;
|
|
2988
|
-
prompt: string;
|
|
2989
|
-
agentId: string;
|
|
2990
2985
|
createdAt: string;
|
|
2991
2986
|
updatedAt: string;
|
|
2987
|
+
description: string;
|
|
2988
|
+
projectId: string;
|
|
2989
|
+
tenantId: string;
|
|
2992
2990
|
models: {
|
|
2993
2991
|
base?: {
|
|
2994
2992
|
model?: string | undefined;
|
|
@@ -3006,20 +3004,20 @@ declare const getSubAgentById: (db: DatabaseClient) => (params: {
|
|
|
3006
3004
|
stopWhen: {
|
|
3007
3005
|
stepCountIs?: number | undefined;
|
|
3008
3006
|
} | null;
|
|
3007
|
+
agentId: string;
|
|
3008
|
+
prompt: string;
|
|
3009
3009
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
3010
3010
|
} | undefined>;
|
|
3011
3011
|
declare const listSubAgents: (db: DatabaseClient) => (params: {
|
|
3012
3012
|
scopes: AgentScopeConfig;
|
|
3013
3013
|
}) => Promise<{
|
|
3014
|
-
tenantId: string;
|
|
3015
|
-
projectId: string;
|
|
3016
3014
|
id: string;
|
|
3017
3015
|
name: string;
|
|
3018
|
-
description: string;
|
|
3019
|
-
prompt: string;
|
|
3020
|
-
agentId: string;
|
|
3021
3016
|
createdAt: string;
|
|
3022
3017
|
updatedAt: string;
|
|
3018
|
+
description: string;
|
|
3019
|
+
projectId: string;
|
|
3020
|
+
tenantId: string;
|
|
3023
3021
|
models: {
|
|
3024
3022
|
base?: {
|
|
3025
3023
|
model?: string | undefined;
|
|
@@ -3037,6 +3035,8 @@ declare const listSubAgents: (db: DatabaseClient) => (params: {
|
|
|
3037
3035
|
stopWhen: {
|
|
3038
3036
|
stepCountIs?: number | undefined;
|
|
3039
3037
|
} | null;
|
|
3038
|
+
agentId: string;
|
|
3039
|
+
prompt: string;
|
|
3040
3040
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
3041
3041
|
}[]>;
|
|
3042
3042
|
declare const listSubAgentsPaginated: (db: DatabaseClient) => (params: {
|
|
@@ -3080,15 +3080,13 @@ declare const listSubAgentsPaginated: (db: DatabaseClient) => (params: {
|
|
|
3080
3080
|
};
|
|
3081
3081
|
}>;
|
|
3082
3082
|
declare const createSubAgent: (db: DatabaseClient) => (params: SubAgentInsert) => Promise<{
|
|
3083
|
-
tenantId: string;
|
|
3084
|
-
projectId: string;
|
|
3085
3083
|
id: string;
|
|
3086
3084
|
name: string;
|
|
3087
|
-
description: string;
|
|
3088
|
-
prompt: string;
|
|
3089
|
-
agentId: string;
|
|
3090
3085
|
createdAt: string;
|
|
3091
3086
|
updatedAt: string;
|
|
3087
|
+
description: string;
|
|
3088
|
+
projectId: string;
|
|
3089
|
+
tenantId: string;
|
|
3092
3090
|
models: {
|
|
3093
3091
|
base?: {
|
|
3094
3092
|
model?: string | undefined;
|
|
@@ -3106,6 +3104,8 @@ declare const createSubAgent: (db: DatabaseClient) => (params: SubAgentInsert) =
|
|
|
3106
3104
|
stopWhen: {
|
|
3107
3105
|
stepCountIs?: number | undefined;
|
|
3108
3106
|
} | null;
|
|
3107
|
+
agentId: string;
|
|
3108
|
+
prompt: string;
|
|
3109
3109
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
3110
3110
|
}>;
|
|
3111
3111
|
declare const updateSubAgent: (db: DatabaseClient) => (params: {
|
|
@@ -3188,13 +3188,13 @@ declare const getSubAgentTeamAgentRelationById: (db: DatabaseClient) => (params:
|
|
|
3188
3188
|
scopes: SubAgentScopeConfig;
|
|
3189
3189
|
relationId: string;
|
|
3190
3190
|
}) => Promise<{
|
|
3191
|
-
tenantId: string;
|
|
3192
|
-
projectId: string;
|
|
3193
3191
|
id: string;
|
|
3194
|
-
agentId: string;
|
|
3195
3192
|
createdAt: string;
|
|
3196
3193
|
updatedAt: string;
|
|
3197
3194
|
headers: Record<string, string> | null;
|
|
3195
|
+
projectId: string;
|
|
3196
|
+
tenantId: string;
|
|
3197
|
+
agentId: string;
|
|
3198
3198
|
subAgentId: string;
|
|
3199
3199
|
targetAgentId: string;
|
|
3200
3200
|
} | undefined>;
|
|
@@ -3223,26 +3223,26 @@ declare const listSubAgentTeamAgentRelations: (db: DatabaseClient) => (params: {
|
|
|
3223
3223
|
declare const getSubAgentTeamAgentRelations: (db: DatabaseClient) => (params: {
|
|
3224
3224
|
scopes: SubAgentScopeConfig;
|
|
3225
3225
|
}) => Promise<{
|
|
3226
|
-
tenantId: string;
|
|
3227
|
-
projectId: string;
|
|
3228
3226
|
id: string;
|
|
3229
|
-
agentId: string;
|
|
3230
3227
|
createdAt: string;
|
|
3231
3228
|
updatedAt: string;
|
|
3232
3229
|
headers: Record<string, string> | null;
|
|
3230
|
+
projectId: string;
|
|
3231
|
+
tenantId: string;
|
|
3232
|
+
agentId: string;
|
|
3233
3233
|
subAgentId: string;
|
|
3234
3234
|
targetAgentId: string;
|
|
3235
3235
|
}[]>;
|
|
3236
3236
|
declare const getSubAgentTeamAgentRelationsByAgent: (db: DatabaseClient) => (params: {
|
|
3237
3237
|
scopes: AgentScopeConfig;
|
|
3238
3238
|
}) => Promise<{
|
|
3239
|
-
tenantId: string;
|
|
3240
|
-
projectId: string;
|
|
3241
3239
|
id: string;
|
|
3242
|
-
agentId: string;
|
|
3243
3240
|
createdAt: string;
|
|
3244
3241
|
updatedAt: string;
|
|
3245
3242
|
headers: Record<string, string> | null;
|
|
3243
|
+
projectId: string;
|
|
3244
|
+
tenantId: string;
|
|
3245
|
+
agentId: string;
|
|
3246
3246
|
subAgentId: string;
|
|
3247
3247
|
targetAgentId: string;
|
|
3248
3248
|
}[]>;
|
|
@@ -3389,13 +3389,13 @@ declare const createSubAgentTeamAgentRelation: (db: DatabaseClient) => (params:
|
|
|
3389
3389
|
headers?: Record<string, string> | null;
|
|
3390
3390
|
};
|
|
3391
3391
|
}) => Promise<{
|
|
3392
|
-
tenantId: string;
|
|
3393
|
-
projectId: string;
|
|
3394
3392
|
id: string;
|
|
3395
|
-
agentId: string;
|
|
3396
3393
|
createdAt: string;
|
|
3397
3394
|
updatedAt: string;
|
|
3398
3395
|
headers: Record<string, string> | null;
|
|
3396
|
+
projectId: string;
|
|
3397
|
+
tenantId: string;
|
|
3398
|
+
agentId: string;
|
|
3399
3399
|
subAgentId: string;
|
|
3400
3400
|
targetAgentId: string;
|
|
3401
3401
|
}>;
|
|
@@ -3406,13 +3406,13 @@ declare const getSubAgentTeamAgentRelationByParams: (db: DatabaseClient) => (par
|
|
|
3406
3406
|
scopes: SubAgentScopeConfig;
|
|
3407
3407
|
targetAgentId: string;
|
|
3408
3408
|
}) => Promise<{
|
|
3409
|
-
tenantId: string;
|
|
3410
|
-
projectId: string;
|
|
3411
3409
|
id: string;
|
|
3412
|
-
agentId: string;
|
|
3413
3410
|
createdAt: string;
|
|
3414
3411
|
updatedAt: string;
|
|
3415
3412
|
headers: Record<string, string> | null;
|
|
3413
|
+
projectId: string;
|
|
3414
|
+
tenantId: string;
|
|
3415
|
+
agentId: string;
|
|
3416
3416
|
subAgentId: string;
|
|
3417
3417
|
targetAgentId: string;
|
|
3418
3418
|
} | undefined>;
|
|
@@ -3427,13 +3427,13 @@ declare const upsertSubAgentTeamAgentRelation: (db: DatabaseClient) => (params:
|
|
|
3427
3427
|
headers?: Record<string, string> | null;
|
|
3428
3428
|
};
|
|
3429
3429
|
}) => Promise<{
|
|
3430
|
-
tenantId: string;
|
|
3431
|
-
projectId: string;
|
|
3432
3430
|
id: string;
|
|
3433
|
-
agentId: string;
|
|
3434
3431
|
createdAt: string;
|
|
3435
3432
|
updatedAt: string;
|
|
3436
3433
|
headers: Record<string, string> | null;
|
|
3434
|
+
projectId: string;
|
|
3435
|
+
tenantId: string;
|
|
3436
|
+
agentId: string;
|
|
3437
3437
|
subAgentId: string;
|
|
3438
3438
|
targetAgentId: string;
|
|
3439
3439
|
}>;
|
|
@@ -3464,14 +3464,14 @@ declare const deleteSubAgentTeamAgentRelationsByAgent: (db: DatabaseClient) => (
|
|
|
3464
3464
|
}) => Promise<boolean>;
|
|
3465
3465
|
|
|
3466
3466
|
declare const createTask: (db: DatabaseClient) => (params: TaskInsert) => Promise<{
|
|
3467
|
-
tenantId: string;
|
|
3468
|
-
projectId: string;
|
|
3469
3467
|
id: string;
|
|
3470
|
-
agentId: string;
|
|
3471
3468
|
createdAt: string;
|
|
3472
3469
|
updatedAt: string;
|
|
3473
3470
|
metadata: TaskMetadataConfig | null;
|
|
3474
3471
|
status: string;
|
|
3472
|
+
projectId: string;
|
|
3473
|
+
tenantId: string;
|
|
3474
|
+
agentId: string;
|
|
3475
3475
|
contextId: string;
|
|
3476
3476
|
subAgentId: string;
|
|
3477
3477
|
}>;
|
|
@@ -3505,20 +3505,20 @@ declare const getToolById: (db: DatabaseClient) => (params: {
|
|
|
3505
3505
|
scopes: ProjectScopeConfig;
|
|
3506
3506
|
toolId: string;
|
|
3507
3507
|
}) => Promise<{
|
|
3508
|
-
tenantId: string;
|
|
3509
|
-
projectId: string;
|
|
3510
3508
|
id: string;
|
|
3511
3509
|
name: string;
|
|
3512
|
-
|
|
3510
|
+
createdAt: string;
|
|
3511
|
+
updatedAt: string;
|
|
3512
|
+
headers: Record<string, string> | null;
|
|
3513
3513
|
config: {
|
|
3514
3514
|
type: "mcp";
|
|
3515
3515
|
mcp: ToolMcpConfig;
|
|
3516
3516
|
};
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
headers: Record<string, string> | null;
|
|
3517
|
+
description: string | null;
|
|
3518
|
+
projectId: string;
|
|
3519
|
+
tenantId: string;
|
|
3521
3520
|
capabilities: ToolServerCapabilities | null;
|
|
3521
|
+
credentialReferenceId: string | null;
|
|
3522
3522
|
imageUrl: string | null;
|
|
3523
3523
|
lastError: string | null;
|
|
3524
3524
|
} | null>;
|
|
@@ -3552,20 +3552,20 @@ declare const listTools: (db: DatabaseClient) => (params: {
|
|
|
3552
3552
|
};
|
|
3553
3553
|
}>;
|
|
3554
3554
|
declare const createTool: (db: DatabaseClient) => (params: ToolInsert) => Promise<{
|
|
3555
|
-
tenantId: string;
|
|
3556
|
-
projectId: string;
|
|
3557
3555
|
id: string;
|
|
3558
3556
|
name: string;
|
|
3559
|
-
|
|
3557
|
+
createdAt: string;
|
|
3558
|
+
updatedAt: string;
|
|
3559
|
+
headers: Record<string, string> | null;
|
|
3560
3560
|
config: {
|
|
3561
3561
|
type: "mcp";
|
|
3562
3562
|
mcp: ToolMcpConfig;
|
|
3563
3563
|
};
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
headers: Record<string, string> | null;
|
|
3564
|
+
description: string | null;
|
|
3565
|
+
projectId: string;
|
|
3566
|
+
tenantId: string;
|
|
3568
3567
|
capabilities: ToolServerCapabilities | null;
|
|
3568
|
+
credentialReferenceId: string | null;
|
|
3569
3569
|
imageUrl: string | null;
|
|
3570
3570
|
lastError: string | null;
|
|
3571
3571
|
}>;
|
|
@@ -3602,32 +3602,32 @@ declare const addToolToAgent: (db: DatabaseClient) => (params: {
|
|
|
3602
3602
|
selectedTools?: string[] | null;
|
|
3603
3603
|
headers?: Record<string, string> | null;
|
|
3604
3604
|
}) => Promise<{
|
|
3605
|
-
tenantId: string;
|
|
3606
|
-
projectId: string;
|
|
3607
3605
|
id: string;
|
|
3608
|
-
agentId: string;
|
|
3609
3606
|
createdAt: string;
|
|
3610
3607
|
updatedAt: string;
|
|
3611
3608
|
headers: Record<string, string> | null;
|
|
3612
|
-
|
|
3609
|
+
projectId: string;
|
|
3610
|
+
tenantId: string;
|
|
3611
|
+
agentId: string;
|
|
3613
3612
|
selectedTools: string[] | null;
|
|
3614
3613
|
subAgentId: string;
|
|
3614
|
+
toolId: string;
|
|
3615
3615
|
}>;
|
|
3616
3616
|
declare const removeToolFromAgent: (db: DatabaseClient) => (params: {
|
|
3617
3617
|
scopes: AgentScopeConfig;
|
|
3618
3618
|
subAgentId: string;
|
|
3619
3619
|
toolId: string;
|
|
3620
3620
|
}) => Promise<{
|
|
3621
|
-
tenantId: string;
|
|
3622
|
-
projectId: string;
|
|
3623
3621
|
id: string;
|
|
3624
|
-
agentId: string;
|
|
3625
3622
|
createdAt: string;
|
|
3626
3623
|
updatedAt: string;
|
|
3627
3624
|
headers: Record<string, string> | null;
|
|
3628
|
-
|
|
3625
|
+
projectId: string;
|
|
3626
|
+
tenantId: string;
|
|
3627
|
+
agentId: string;
|
|
3629
3628
|
selectedTools: string[] | null;
|
|
3630
3629
|
subAgentId: string;
|
|
3630
|
+
toolId: string;
|
|
3631
3631
|
}>;
|
|
3632
3632
|
/**
|
|
3633
3633
|
* Upsert agent-tool relation (create if it doesn't exist, update if it does)
|
|
@@ -3640,16 +3640,16 @@ declare const upsertSubAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
|
3640
3640
|
headers?: Record<string, string> | null;
|
|
3641
3641
|
relationId?: string;
|
|
3642
3642
|
}) => Promise<{
|
|
3643
|
-
tenantId: string;
|
|
3644
|
-
projectId: string;
|
|
3645
3643
|
id: string;
|
|
3646
|
-
agentId: string;
|
|
3647
3644
|
createdAt: string;
|
|
3648
3645
|
updatedAt: string;
|
|
3649
3646
|
headers: Record<string, string> | null;
|
|
3650
|
-
|
|
3647
|
+
projectId: string;
|
|
3648
|
+
tenantId: string;
|
|
3649
|
+
agentId: string;
|
|
3651
3650
|
selectedTools: string[] | null;
|
|
3652
3651
|
subAgentId: string;
|
|
3652
|
+
toolId: string;
|
|
3653
3653
|
}>;
|
|
3654
3654
|
/**
|
|
3655
3655
|
* Upsert a tool (create if it doesn't exist, update if it does)
|
|
@@ -3657,20 +3657,20 @@ declare const upsertSubAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
|
3657
3657
|
declare const upsertTool: (db: DatabaseClient) => (params: {
|
|
3658
3658
|
data: ToolInsert;
|
|
3659
3659
|
}) => Promise<{
|
|
3660
|
-
tenantId: string;
|
|
3661
|
-
projectId: string;
|
|
3662
3660
|
id: string;
|
|
3663
3661
|
name: string;
|
|
3664
|
-
|
|
3662
|
+
createdAt: string;
|
|
3663
|
+
updatedAt: string;
|
|
3664
|
+
headers: Record<string, string> | null;
|
|
3665
3665
|
config: {
|
|
3666
3666
|
type: "mcp";
|
|
3667
3667
|
mcp: ToolMcpConfig;
|
|
3668
3668
|
};
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
headers: Record<string, string> | null;
|
|
3669
|
+
description: string | null;
|
|
3670
|
+
projectId: string;
|
|
3671
|
+
tenantId: string;
|
|
3673
3672
|
capabilities: ToolServerCapabilities | null;
|
|
3673
|
+
credentialReferenceId: string | null;
|
|
3674
3674
|
imageUrl: string | null;
|
|
3675
3675
|
lastError: string | null;
|
|
3676
3676
|
}>;
|