@inkeep/agents-core 0.33.2 → 0.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-62UIQW4L.js → chunk-4VUM4EJL.js} +1 -1
- package/dist/{chunk-MQTANAMG.js → chunk-7CLFCY6J.js} +2 -0
- package/dist/{chunk-S75NGJ6E.js → chunk-EKV6C5GS.js} +1 -1
- package/dist/{chunk-6MC5N2NE.js → chunk-UMFCT6A6.js} +3 -2
- package/dist/client-exports.cjs +3 -2
- package/dist/client-exports.d.cts +5 -5
- package/dist/client-exports.d.ts +5 -5
- package/dist/client-exports.js +2 -2
- package/dist/constants/models.cjs +2 -0
- package/dist/constants/models.d.cts +2 -0
- package/dist/constants/models.d.ts +2 -0
- package/dist/constants/models.js +1 -1
- package/dist/db/schema.cjs +1 -1
- package/dist/db/schema.d.cts +2 -2
- package/dist/db/schema.d.ts +2 -2
- package/dist/db/schema.js +1 -1
- package/dist/index.cjs +42 -7
- package/dist/index.d.cts +251 -245
- package/dist/index.d.ts +251 -245
- package/dist/index.js +44 -12
- package/dist/{schema-DYCQuSqA.d.ts → schema-CaEvIRdT.d.cts} +2 -2
- package/dist/{schema-dODUpZEu.d.cts → schema-DvYv9PQ1.d.ts} +2 -2
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/{utility-B73oHEd8.d.cts → utility-htaewQEL.d.cts} +246 -242
- package/dist/{utility-B73oHEd8.d.ts → utility-htaewQEL.d.ts} +246 -242
- package/dist/validation/index.cjs +3 -2
- 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/meta/0000_snapshot.json +93 -459
- package/drizzle/meta/_journal.json +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2,14 +2,14 @@ export { ANTHROPIC_MODELS, AnthropicModel, GOOGLE_MODELS, GoogleModel, ModelName
|
|
|
2
2
|
import { r as PinoLogger, s as getLogger } from './auth-detection-CGqhPDnj.js';
|
|
3
3
|
export { i as ACTIVITY_NAMES, g as ACTIVITY_STATUS, f as ACTIVITY_TYPES, h as AGENT_IDS, p as AGGREGATE_OPERATORS, A as AI_OPERATIONS, j as AI_TOOL_TYPES, o as DATA_SOURCES, k as DATA_TYPES, D as DELEGATION_FROM_SUB_AGENT_ID, b as DELEGATION_ID, a as DELEGATION_TO_SUB_AGENT_ID, F as FIELD_TYPES, L as LoggerFactoryConfig, M as McpOAuthFlowResult, u as McpTokenExchangeResult, t as OAuthConfig, O as OPERATORS, m as ORDER_DIRECTIONS, P as PANEL_TYPES, x as PinoLoggerConfig, q as QUERY_DEFAULTS, l as QUERY_EXPRESSIONS, Q as QUERY_FIELD_CONFIGS, n as QUERY_TYPES, R as REDUCE_OPERATIONS, e as SPAN_KEYS, S as SPAN_NAMES, T as TRANSFER_FROM_SUB_AGENT_ID, c as TRANSFER_TO_SUB_AGENT_ID, U as UNKNOWN_VALUE, d as detectAuthenticationRequired, w as exchangeMcpAuthorizationCode, v as initiateMcpOAuthFlow, y as loggerFactory } from './auth-detection-CGqhPDnj.js';
|
|
4
4
|
import { z } from 'zod';
|
|
5
|
-
import { r as CredentialReferenceApiInsert, s as ContextConfigSelect, l as ContextFetchDefinition, i as MCPTransportType, t as MCPToolConfig, u as ProjectScopeConfig, v as FullAgentDefinition, w as AgentScopeConfig, C as ConversationHistoryConfig, x as PaginationConfig, y as AgentInsert, z as AgentUpdate, B as AgentSelect, D as ApiKeySelect, E as ApiKeyInsert, G as ApiKeyUpdate, H as CreateApiKeyParams, I as ApiKeyCreateResult, J as ArtifactComponentSelect, K as ArtifactComponentInsert, L as ArtifactComponentUpdate, N as SubAgentScopeConfig, O as ContextCacheSelect, Q as ContextCacheInsert, R as ContextConfigInsert, U as ContextConfigUpdate, V as ConversationSelect, W as ConversationInsert, o as ConversationMetadata, X as ConversationUpdate, Y as CredentialReferenceSelect, Z as ToolSelect, _ as ExternalAgentSelect, $ as CredentialReferenceInsert, a0 as CredentialReferenceUpdate, a1 as DataComponentSelect, a2 as DataComponentInsert, a3 as DataComponentUpdate, a4 as ExternalAgentInsert, a5 as ExternalAgentUpdate, a6 as FunctionApiInsert, a7 as FunctionToolApiInsert, a8 as FunctionToolApiUpdate, a9 as Artifact, aa as LedgerArtifactSelect, p as MessageContent, q as MessageMetadata, ab as MessageVisibility, ac as MessageInsert, ad as MessageUpdate, ae as FullProjectDefinition, af as ProjectInfo, ag as ProjectSelect, ah as PaginationResult, ai as ProjectResourceCounts, aj as ProjectInsert, ak as ProjectUpdate, al as SubAgentExternalAgentRelationInsert, am as SubAgentRelationInsert, an as SubAgentRelationUpdate, ao as SubAgentToolRelationUpdate, m as ToolMcpConfig, n as ToolServerCapabilities, ap as SubAgentInsert, aq as SubAgentUpdate, ar as SubAgentSelect, as as SubAgentTeamAgentRelationInsert, at as TaskInsert, T as TaskMetadataConfig, au as TaskSelect, av as McpTool, aw as ToolInsert, ax as ToolUpdate, h as CredentialStoreType, ay as ExecutionContext } from './utility-
|
|
6
|
-
export { ba as A2AError, bG as A2ARequest, bH as A2AResponse, aL as APIKeySecurityScheme, bV as AgentApiInsert, e2 as AgentApiInsertSchema, bU as AgentApiSelect, e1 as AgentApiSelectSchema, bW as AgentApiUpdate, e3 as AgentApiUpdateSchema, aH as AgentCapabilities, aV as AgentCard, dx as AgentConversationHistoryConfig, d$ as AgentInsertSchema, gM as AgentListResponse, aI as AgentProvider, gw as AgentResponse, d_ as AgentSelectSchema, aJ as AgentSkill, e as AgentStopWhen, b as AgentStopWhenSchema, e0 as AgentUpdateSchema, h3 as AgentWithinContextOfProjectResponse, gg as AgentWithinContextOfProjectSchema, f6 as AllAgentSchema, cP as AllAgentSelect, cT as ApiKeyApiCreationResponse, fb as ApiKeyApiCreationResponseSchema, cR as ApiKeyApiInsert, fc as ApiKeyApiInsertSchema, cQ as ApiKeyApiSelect, fa as ApiKeyApiSelectSchema, cS as ApiKeyApiUpdate, A as ApiKeyApiUpdateSchema, f8 as ApiKeyInsertSchema, gQ as ApiKeyListResponse, gA as ApiKeyResponse, f7 as ApiKeySelectSchema, f9 as ApiKeyUpdateSchema, cE as ArtifactComponentApiInsert, eU as ArtifactComponentApiInsertSchema, cD as ArtifactComponentApiSelect, eT as ArtifactComponentApiSelectSchema, cF as ArtifactComponentApiUpdate, eV as ArtifactComponentApiUpdateSchema, hd as ArtifactComponentArrayResponse, eR as ArtifactComponentInsertSchema, gV as ArtifactComponentListResponse, gF as ArtifactComponentResponse, eQ as ArtifactComponentSelectSchema, eS as ArtifactComponentUpdateSchema, aO as AuthorizationCodeOAuthFlow, dg as CanDelegateToExternalAgent, df as CanUseItem, gc as CanUseItemSchema, bq as CancelTaskRequest, bB as CancelTaskResponse, bA as CancelTaskSuccessResponse, aP as ClientCredentialsOAuthFlow, h5 as ComponentAssociationListResponse, fo as ComponentAssociationSchema, b8 as ContentTypeNotSupportedError, cs as ContextCacheApiInsert, eB as ContextCacheApiInsertSchema, cr as ContextCacheApiSelect, eA as ContextCacheApiSelectSchema, ct as ContextCacheApiUpdate, eC as ContextCacheApiUpdateSchema, dy as ContextCacheEntry, ey as ContextCacheInsertSchema, ex as ContextCacheSelectSchema, cq as ContextCacheUpdate, ez as ContextCacheUpdateSchema, cm as ContextConfigApiInsert, fM as ContextConfigApiInsertSchema, cl as ContextConfigApiSelect, fL as ContextConfigApiSelectSchema, cn as ContextConfigApiUpdate, fN as ContextConfigApiUpdateSchema, fJ as ContextConfigInsertSchema, gP as ContextConfigListResponse, gz as ContextConfigResponse, fI as ContextConfigSelectSchema, fK as ContextConfigUpdateSchema, cf as ConversationApiInsert, ep as ConversationApiInsertSchema, ce as ConversationApiSelect, eo as ConversationApiSelectSchema, cg as ConversationApiUpdate, eq as ConversationApiUpdateSchema, em as ConversationInsertSchema, gY as ConversationListResponse, gI as ConversationResponse, dw as ConversationScopeOptions, el as ConversationSelectSchema, en as ConversationUpdateSchema, fl as CreateCredentialInStoreRequestSchema, fm as CreateCredentialInStoreResponseSchema, fh as CredentialReferenceApiInsertSchema, cU as CredentialReferenceApiSelect, fg as CredentialReferenceApiSelectSchema, cV as CredentialReferenceApiUpdate, fi as CredentialReferenceApiUpdateSchema, fe as CredentialReferenceInsertSchema, gR as CredentialReferenceListResponse, gB as CredentialReferenceResponse, fd as CredentialReferenceSelectSchema, ff as CredentialReferenceUpdateSchema, fk as CredentialStoreListResponseSchema, fj as CredentialStoreSchema, cv as DataComponentApiInsert, eI as DataComponentApiInsertSchema, cu as DataComponentApiSelect, eH as DataComponentApiSelectSchema, cw as DataComponentApiUpdate, eJ as DataComponentApiUpdateSchema, hc as DataComponentArrayResponse, eF as DataComponentBaseSchema, eE as DataComponentInsertSchema, gU as DataComponentListResponse, gE as DataComponentResponse, eD as DataComponentSelectSchema, eG as DataComponentUpdateSchema, aF as DataPart, gk as ErrorResponseSchema, gl as ExistsResponseSchema, cN as ExternalAgentApiInsert, f4 as ExternalAgentApiInsertSchema, cM as ExternalAgentApiSelect, f3 as ExternalAgentApiSelectSchema, cO as ExternalAgentApiUpdate, f5 as ExternalAgentApiUpdateSchema, f1 as ExternalAgentInsertSchema, gO as ExternalAgentListResponse, gy as ExternalAgentResponse, f0 as ExternalAgentSelectSchema, f2 as ExternalAgentUpdateSchema, bT as ExternalSubAgentRelationApiInsert, dZ as ExternalSubAgentRelationApiInsertSchema, bS as ExternalSubAgentRelationInsert, dY as ExternalSubAgentRelationInsertSchema, cp as FetchConfig, fG as FetchConfigSchema, co as FetchDefinition, fH as FetchDefinitionSchema, aB as FileBase, aE as FilePart, aC as FileWithBytes, aD as FileWithUri, de as FullAgentAgentInsert, a as FullAgentAgentInsertSchema, h2 as FullProjectDefinitionResponse, gt as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, cb as FunctionApiSelect, j as FunctionApiSelectSchema, cc as FunctionApiUpdate, k as FunctionApiUpdateSchema, c9 as FunctionInsert, fE as FunctionInsertSchema, gS as FunctionListResponse, gC as FunctionResponse, c8 as FunctionSelect, fD as FunctionSelectSchema, fB as FunctionToolApiInsertSchema, cd as FunctionToolApiSelect, fA as FunctionToolApiSelectSchema, fC as FunctionToolApiUpdateSchema, dK as FunctionToolConfig, dJ as FunctionToolConfigSchema, fy as FunctionToolInsertSchema, gT as FunctionToolListResponse, gD as FunctionToolResponse, fx as FunctionToolSelectSchema, fz as FunctionToolUpdateSchema, ca as FunctionUpdate, fF as FunctionUpdateSchema, bs as GetTaskPushNotificationConfigRequest, bF as GetTaskPushNotificationConfigResponse, bE as GetTaskPushNotificationConfigSuccessResponse, bp as GetTaskRequest, bz as GetTaskResponse, by as GetTaskSuccessResponse, aM as HTTPAuthSecurityScheme, he as HeadersScopeSchema, aQ as ImplicitOAuthFlow, b3 as InternalError, b9 as InvalidAgentResponseError, b2 as InvalidParamsError, b0 as InvalidRequestError, a$ as JSONParseError, bk as JSONRPCError, bm as JSONRPCErrorResponse, bi as JSONRPCMessage, bj as JSONRPCRequest, bl as JSONRPCResult, dc as LedgerArtifactApiInsert, g8 as LedgerArtifactApiInsertSchema, db as LedgerArtifactApiSelect, g7 as LedgerArtifactApiSelectSchema, dd as LedgerArtifactApiUpdate, g9 as LedgerArtifactApiUpdateSchema, d9 as LedgerArtifactInsert, g5 as LedgerArtifactInsertSchema, g4 as LedgerArtifactSelectSchema, da as LedgerArtifactUpdate, g6 as LedgerArtifactUpdateSchema, gi as ListResponseSchema, dG as MCPServerType, fs as MCPToolConfigSchema, dz as McpAuthType, dA as McpServerAuth, dC as McpServerCapabilities, dD as McpToolDefinition, ei as McpToolDefinitionSchema, h7 as McpToolListResponse, h6 as McpToolResponse, fr as McpToolSchema, dB as McpTransportConfig, eg as McpTransportConfigSchema, aW as Message, cj as MessageApiInsert, ev as MessageApiInsertSchema, ci as MessageApiSelect, eu as MessageApiSelectSchema, ck as MessageApiUpdate, ew as MessageApiUpdateSchema, es as MessageInsertSchema, gZ as MessageListResponse, dr as MessageMode, bI as MessagePart, gJ as MessageResponse, dq as MessageRole, ch as MessageSelect, er as MessageSelectSchema, bg as MessageSendConfiguration, bh as MessageSendParams, dp as MessageType, et as MessageUpdateSchema, b1 as MethodNotFoundError, dH as ModelSchema, g as ModelSettings, M as ModelSettingsSchema, ds as Models, aS as OAuth2SecurityScheme, fq as OAuthCallbackQuerySchema, aN as OAuthFlows, fp as OAuthLoginQuerySchema, aT as OpenIdConnectSecurityScheme, dm as Pagination, hn as PaginationQueryParamsSchema, gh as PaginationSchema, P as Part, az as PartBase, aR as PasswordOAuthFlow, dk as ProjectApiInsert, gr as ProjectApiInsertSchema, dj as ProjectApiSelect, gq as ProjectApiSelectSchema, dl as ProjectApiUpdate, gs as ProjectApiUpdateSchema, go as ProjectInsertSchema, gK as ProjectListResponse, dI as ProjectModelSchema, dt as ProjectModels, gu as ProjectResponse, gn as ProjectSelectSchema, gp as ProjectUpdateSchema, bb as PushNotificationAuthenticationInfo, bc as PushNotificationConfig, b6 as PushNotificationNotSupportedError, h4 as RelatedAgentInfoListResponse, fn as RelatedAgentInfoSchema, gm as RemovedResponseSchema, aU as SecurityScheme, aK as SecuritySchemeBase, bn as SendMessageRequest, bv as SendMessageResponse, bu as SendMessageSuccessResponse, bo as SendStreamingMessageRequest, bx as SendStreamingMessageResponse, bw as SendStreamingMessageSuccessResponse, br as SetTaskPushNotificationConfigRequest, bD as SetTaskPushNotificationConfigResponse, bC as SetTaskPushNotificationConfigSuccessResponse, gj as SingleResponseSchema, dv as StatusComponent, ga as StatusComponentSchema, gb as StatusUpdateSchema, du as StatusUpdateSettings, d as StopWhen, S as StopWhenSchema, bL as SubAgentApiInsert, dP as SubAgentApiInsertSchema, bK as SubAgentApiSelect, dO as SubAgentApiSelectSchema, bM as SubAgentApiUpdate, dQ as SubAgentApiUpdateSchema, cK as SubAgentArtifactComponentApiInsert, e_ as SubAgentArtifactComponentApiInsertSchema, cJ as SubAgentArtifactComponentApiSelect, eZ as SubAgentArtifactComponentApiSelectSchema, cL as SubAgentArtifactComponentApiUpdate, e$ as SubAgentArtifactComponentApiUpdateSchema, cH as SubAgentArtifactComponentInsert, eX as SubAgentArtifactComponentInsertSchema, h1 as SubAgentArtifactComponentListResponse, g$ as SubAgentArtifactComponentResponse, cG as SubAgentArtifactComponentSelect, eW as SubAgentArtifactComponentSelectSchema, cI as SubAgentArtifactComponentUpdate, eY as SubAgentArtifactComponentUpdateSchema, cB as SubAgentDataComponentApiInsert, eO as SubAgentDataComponentApiInsertSchema, cA as SubAgentDataComponentApiSelect, eN as SubAgentDataComponentApiSelectSchema, cC as SubAgentDataComponentApiUpdate, eP as SubAgentDataComponentApiUpdateSchema, cy as SubAgentDataComponentInsert, eL as SubAgentDataComponentInsertSchema, h0 as SubAgentDataComponentListResponse, g_ as SubAgentDataComponentResponse, cx as SubAgentDataComponentSelect, eK as SubAgentDataComponentSelectSchema, cz as SubAgentDataComponentUpdate, eM as SubAgentDataComponentUpdateSchema, dh as SubAgentDefinition, d2 as SubAgentExternalAgentRelationApiInsert, fY as SubAgentExternalAgentRelationApiInsertSchema, d1 as SubAgentExternalAgentRelationApiSelect, fX as SubAgentExternalAgentRelationApiSelectSchema, d3 as SubAgentExternalAgentRelationApiUpdate, fZ as SubAgentExternalAgentRelationApiUpdateSchema, fV as SubAgentExternalAgentRelationInsertSchema, hb as SubAgentExternalAgentRelationListResponse, ha as SubAgentExternalAgentRelationResponse, c$ as SubAgentExternalAgentRelationSelect, fU as SubAgentExternalAgentRelationSelectSchema, d0 as SubAgentExternalAgentRelationUpdate, fW as SubAgentExternalAgentRelationUpdateSchema, dM as SubAgentInsertSchema, gL as SubAgentListResponse, bP as SubAgentRelationApiInsert, dV as SubAgentRelationApiInsertSchema, bO as SubAgentRelationApiSelect, dU as SubAgentRelationApiSelectSchema, bQ as SubAgentRelationApiUpdate, dW as SubAgentRelationApiUpdateSchema, dS as SubAgentRelationInsertSchema, gW as SubAgentRelationListResponse, bR as SubAgentRelationQuery, dX as SubAgentRelationQuerySchema, gG as SubAgentRelationResponse, bN as SubAgentRelationSelect, dR as SubAgentRelationSelectSchema, dT as SubAgentRelationUpdateSchema, gv as SubAgentResponse, dL as SubAgentSelectSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema, d7 as SubAgentTeamAgentRelationApiInsert, g2 as SubAgentTeamAgentRelationApiInsertSchema, d6 as SubAgentTeamAgentRelationApiSelect, g1 as SubAgentTeamAgentRelationApiSelectSchema, d8 as SubAgentTeamAgentRelationApiUpdate, g3 as SubAgentTeamAgentRelationApiUpdateSchema, f$ as SubAgentTeamAgentRelationInsertSchema, h9 as SubAgentTeamAgentRelationListResponse, h8 as SubAgentTeamAgentRelationResponse, d4 as SubAgentTeamAgentRelationSelect, f_ as SubAgentTeamAgentRelationSelectSchema, d5 as SubAgentTeamAgentRelationUpdate, g0 as SubAgentTeamAgentRelationUpdateSchema, cZ as SubAgentToolRelationApiInsert, fS as SubAgentToolRelationApiInsertSchema, cY as SubAgentToolRelationApiSelect, fR as SubAgentToolRelationApiSelectSchema, c_ as SubAgentToolRelationApiUpdate, fT as SubAgentToolRelationApiUpdateSchema, cX as SubAgentToolRelationInsert, fP as SubAgentToolRelationInsertSchema, gX as SubAgentToolRelationListResponse, gH as SubAgentToolRelationResponse, cW as SubAgentToolRelationSelect, fO as SubAgentToolRelationSelectSchema, fQ as SubAgentToolRelationUpdateSchema, dN as SubAgentUpdateSchema, dn as SummaryEvent, dE as TOOL_STATUS_VALUES, aY as Task, bZ as TaskApiInsert, e8 as TaskApiInsertSchema, bY as TaskApiSelect, e7 as TaskApiSelectSchema, b_ as TaskApiUpdate, e9 as TaskApiUpdateSchema, bJ as TaskArtifact, a_ as TaskArtifactUpdateEvent, be as TaskIdParams, e5 as TaskInsertSchema, b5 as TaskNotCancelableError, b4 as TaskNotFoundError, bd as TaskPushNotificationConfig, bf as TaskQueryParams, c3 as TaskRelationApiInsert, ee as TaskRelationApiInsertSchema, c2 as TaskRelationApiSelect, ed as TaskRelationApiSelectSchema, c4 as TaskRelationApiUpdate, ef as TaskRelationApiUpdateSchema, c0 as TaskRelationInsert, eb as TaskRelationInsertSchema, b$ as TaskRelationSelect, ea as TaskRelationSelectSchema, c1 as TaskRelationUpdate, ec as TaskRelationUpdateSchema, bt as TaskResubscriptionRequest, e4 as TaskSelectSchema, aG as TaskState, aX as TaskStatus, aZ as TaskStatusUpdateEvent, bX as TaskUpdate, e6 as TaskUpdateSchema, gf as TeamAgentSchema, hg as TenantIdParamsSchema, hf as TenantParamsSchema, hk as TenantProjectAgentIdParamsSchema, hj as TenantProjectAgentParamsSchema, hm as TenantProjectAgentSubAgentIdParamsSchema, hl as TenantProjectAgentSubAgentParamsSchema, hi as TenantProjectIdParamsSchema, hh as TenantProjectParamsSchema, aA as TextPart, c6 as ToolApiInsert, fv as ToolApiInsertSchema, c5 as ToolApiSelect, fu as ToolApiSelectSchema, c7 as ToolApiUpdate, fw as ToolApiUpdateSchema, di as ToolDefinition, ek as ToolInsertSchema, gN as ToolListResponse, gx as ToolResponse, ej as ToolSelectSchema, eh as ToolStatusSchema, ft as ToolUpdateSchema, b7 as UnsupportedOperationError, dF as VALID_RELATION_TYPES, gd as canDelegateToExternalAgentSchema, ge as canDelegateToTeamAgentSchema } from './utility-B73oHEd8.js';
|
|
5
|
+
import { r as CredentialReferenceApiInsert, s as ContextConfigSelect, l as ContextFetchDefinition, i as MCPTransportType, t as MCPToolConfig, u as ProjectScopeConfig, v as FullAgentDefinition, w as AgentScopeConfig, C as ConversationHistoryConfig, x as PaginationConfig, y as AgentInsert, z as AgentUpdate, B as AgentSelect, D as ApiKeySelect, E as ApiKeyInsert, G as ApiKeyUpdate, H as CreateApiKeyParams, I as ApiKeyCreateResult, J as ArtifactComponentSelect, K as ArtifactComponentInsert, L as ArtifactComponentUpdate, N as SubAgentScopeConfig, O as ContextCacheSelect, Q as ContextCacheInsert, R as ContextConfigInsert, U as ContextConfigUpdate, V as ConversationSelect, W as ConversationInsert, o as ConversationMetadata, X as ConversationUpdate, Y as CredentialReferenceSelect, Z as ToolSelect, _ as ExternalAgentSelect, $ as CredentialReferenceInsert, a0 as CredentialReferenceUpdate, a1 as DataComponentSelect, a2 as DataComponentInsert, a3 as DataComponentUpdate, a4 as ExternalAgentInsert, a5 as ExternalAgentUpdate, a6 as FunctionApiInsert, a7 as FunctionToolApiInsert, a8 as FunctionToolApiUpdate, a9 as Artifact, aa as LedgerArtifactSelect, p as MessageContent, q as MessageMetadata, 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-htaewQEL.js';
|
|
6
|
+
export { ba as A2AError, bG as A2ARequest, bH as A2AResponse, aL as APIKeySecurityScheme, bV as AgentApiInsert, e2 as AgentApiInsertSchema, bU as AgentApiSelect, e1 as AgentApiSelectSchema, bW as AgentApiUpdate, e3 as AgentApiUpdateSchema, aH as AgentCapabilities, aV as AgentCard, dx as AgentConversationHistoryConfig, d$ as AgentInsertSchema, gM as AgentListResponse, aI as AgentProvider, gw as AgentResponse, d_ as AgentSelectSchema, aJ as AgentSkill, e as AgentStopWhen, b as AgentStopWhenSchema, e0 as AgentUpdateSchema, h3 as AgentWithinContextOfProjectResponse, gg as AgentWithinContextOfProjectSchema, f6 as AllAgentSchema, cP as AllAgentSelect, cT as ApiKeyApiCreationResponse, fb as ApiKeyApiCreationResponseSchema, cR as ApiKeyApiInsert, fc as ApiKeyApiInsertSchema, cQ as ApiKeyApiSelect, fa as ApiKeyApiSelectSchema, cS as ApiKeyApiUpdate, A as ApiKeyApiUpdateSchema, f8 as ApiKeyInsertSchema, gQ as ApiKeyListResponse, gA as ApiKeyResponse, f7 as ApiKeySelectSchema, f9 as ApiKeyUpdateSchema, cE as ArtifactComponentApiInsert, eU as ArtifactComponentApiInsertSchema, cD as ArtifactComponentApiSelect, eT as ArtifactComponentApiSelectSchema, cF as ArtifactComponentApiUpdate, eV as ArtifactComponentApiUpdateSchema, hd as ArtifactComponentArrayResponse, eR as ArtifactComponentInsertSchema, gV as ArtifactComponentListResponse, gF as ArtifactComponentResponse, eQ as ArtifactComponentSelectSchema, eS as ArtifactComponentUpdateSchema, aO as AuthorizationCodeOAuthFlow, dg as CanDelegateToExternalAgent, df as CanUseItem, gc as CanUseItemSchema, bq as CancelTaskRequest, bB as CancelTaskResponse, bA as CancelTaskSuccessResponse, aP as ClientCredentialsOAuthFlow, h5 as ComponentAssociationListResponse, fo as ComponentAssociationSchema, b8 as ContentTypeNotSupportedError, cs as ContextCacheApiInsert, eB as ContextCacheApiInsertSchema, cr as ContextCacheApiSelect, eA as ContextCacheApiSelectSchema, ct as ContextCacheApiUpdate, eC as ContextCacheApiUpdateSchema, dy as ContextCacheEntry, ey as ContextCacheInsertSchema, ex as ContextCacheSelectSchema, cq as ContextCacheUpdate, ez as ContextCacheUpdateSchema, cm as ContextConfigApiInsert, fM as ContextConfigApiInsertSchema, cl as ContextConfigApiSelect, fL as ContextConfigApiSelectSchema, cn as ContextConfigApiUpdate, fN as ContextConfigApiUpdateSchema, fJ as ContextConfigInsertSchema, gP as ContextConfigListResponse, gz as ContextConfigResponse, fI as ContextConfigSelectSchema, fK as ContextConfigUpdateSchema, cf as ConversationApiInsert, ep as ConversationApiInsertSchema, ce as ConversationApiSelect, eo as ConversationApiSelectSchema, cg as ConversationApiUpdate, eq as ConversationApiUpdateSchema, em as ConversationInsertSchema, gY as ConversationListResponse, gI as ConversationResponse, dw as ConversationScopeOptions, el as ConversationSelectSchema, en as ConversationUpdateSchema, fl as CreateCredentialInStoreRequestSchema, fm as CreateCredentialInStoreResponseSchema, fh as CredentialReferenceApiInsertSchema, cU as CredentialReferenceApiSelect, fg as CredentialReferenceApiSelectSchema, cV as CredentialReferenceApiUpdate, fi as CredentialReferenceApiUpdateSchema, fe as CredentialReferenceInsertSchema, gR as CredentialReferenceListResponse, gB as CredentialReferenceResponse, fd as CredentialReferenceSelectSchema, ff as CredentialReferenceUpdateSchema, fk as CredentialStoreListResponseSchema, fj as CredentialStoreSchema, cv as DataComponentApiInsert, eI as DataComponentApiInsertSchema, cu as DataComponentApiSelect, eH as DataComponentApiSelectSchema, cw as DataComponentApiUpdate, eJ as DataComponentApiUpdateSchema, hc as DataComponentArrayResponse, eF as DataComponentBaseSchema, eE as DataComponentInsertSchema, gU as DataComponentListResponse, gE as DataComponentResponse, eD as DataComponentSelectSchema, eG as DataComponentUpdateSchema, aF as DataPart, gk as ErrorResponseSchema, gl as ExistsResponseSchema, cN as ExternalAgentApiInsert, f4 as ExternalAgentApiInsertSchema, cM as ExternalAgentApiSelect, f3 as ExternalAgentApiSelectSchema, cO as ExternalAgentApiUpdate, f5 as ExternalAgentApiUpdateSchema, f1 as ExternalAgentInsertSchema, gO as ExternalAgentListResponse, gy as ExternalAgentResponse, f0 as ExternalAgentSelectSchema, f2 as ExternalAgentUpdateSchema, bT as ExternalSubAgentRelationApiInsert, dZ as ExternalSubAgentRelationApiInsertSchema, bS as ExternalSubAgentRelationInsert, dY as ExternalSubAgentRelationInsertSchema, cp as FetchConfig, fG as FetchConfigSchema, co as FetchDefinition, fH as FetchDefinitionSchema, aB as FileBase, aE as FilePart, aC as FileWithBytes, aD as FileWithUri, de as FullAgentAgentInsert, a as FullAgentAgentInsertSchema, h2 as FullProjectDefinitionResponse, gt as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, cb as FunctionApiSelect, j as FunctionApiSelectSchema, cc as FunctionApiUpdate, k as FunctionApiUpdateSchema, c9 as FunctionInsert, fE as FunctionInsertSchema, gS as FunctionListResponse, gC as FunctionResponse, c8 as FunctionSelect, fD as FunctionSelectSchema, fB as FunctionToolApiInsertSchema, cd as FunctionToolApiSelect, fA as FunctionToolApiSelectSchema, fC as FunctionToolApiUpdateSchema, dK as FunctionToolConfig, dJ as FunctionToolConfigSchema, fy as FunctionToolInsertSchema, gT as FunctionToolListResponse, gD as FunctionToolResponse, fx as FunctionToolSelectSchema, fz as FunctionToolUpdateSchema, ca as FunctionUpdate, fF as FunctionUpdateSchema, bs as GetTaskPushNotificationConfigRequest, bF as GetTaskPushNotificationConfigResponse, bE as GetTaskPushNotificationConfigSuccessResponse, bp as GetTaskRequest, bz as GetTaskResponse, by as GetTaskSuccessResponse, aM as HTTPAuthSecurityScheme, he as HeadersScopeSchema, aQ as ImplicitOAuthFlow, b3 as InternalError, b9 as InvalidAgentResponseError, b2 as InvalidParamsError, b0 as InvalidRequestError, a$ as JSONParseError, bk as JSONRPCError, bm as JSONRPCErrorResponse, bi as JSONRPCMessage, bj as JSONRPCRequest, bl as JSONRPCResult, dc as LedgerArtifactApiInsert, g8 as LedgerArtifactApiInsertSchema, db as LedgerArtifactApiSelect, g7 as LedgerArtifactApiSelectSchema, dd as LedgerArtifactApiUpdate, g9 as LedgerArtifactApiUpdateSchema, d9 as LedgerArtifactInsert, g5 as LedgerArtifactInsertSchema, g4 as LedgerArtifactSelectSchema, da as LedgerArtifactUpdate, g6 as LedgerArtifactUpdateSchema, gi as ListResponseSchema, dG as MCPServerType, fs as MCPToolConfigSchema, dz as McpAuthType, dA as McpServerAuth, dC as McpServerCapabilities, dD as McpToolDefinition, ei as McpToolDefinitionSchema, h7 as McpToolListResponse, h6 as McpToolResponse, fr as McpToolSchema, dB as McpTransportConfig, eg as McpTransportConfigSchema, aW as Message, cj as MessageApiInsert, ev as MessageApiInsertSchema, ci as MessageApiSelect, eu as MessageApiSelectSchema, ck as MessageApiUpdate, ew as MessageApiUpdateSchema, es as MessageInsertSchema, gZ as MessageListResponse, dr as MessageMode, bI as MessagePart, gJ as MessageResponse, dq as MessageRole, ch as MessageSelect, er as MessageSelectSchema, bg as MessageSendConfiguration, bh as MessageSendParams, dp as MessageType, et as MessageUpdateSchema, b1 as MethodNotFoundError, dH as ModelSchema, g as ModelSettings, M as ModelSettingsSchema, ds as Models, aS as OAuth2SecurityScheme, fq as OAuthCallbackQuerySchema, aN as OAuthFlows, fp as OAuthLoginQuerySchema, aT as OpenIdConnectSecurityScheme, dm as Pagination, hn as PaginationQueryParamsSchema, gh as PaginationSchema, P as Part, az as PartBase, aR as PasswordOAuthFlow, dk as ProjectApiInsert, gr as ProjectApiInsertSchema, dj as ProjectApiSelect, gq as ProjectApiSelectSchema, dl as ProjectApiUpdate, gs as ProjectApiUpdateSchema, go as ProjectInsertSchema, gK as ProjectListResponse, dI as ProjectModelSchema, dt as ProjectModels, gu as ProjectResponse, gn as ProjectSelectSchema, gp as ProjectUpdateSchema, bb as PushNotificationAuthenticationInfo, bc as PushNotificationConfig, b6 as PushNotificationNotSupportedError, h4 as RelatedAgentInfoListResponse, fn as RelatedAgentInfoSchema, gm as RemovedResponseSchema, aU as SecurityScheme, aK as SecuritySchemeBase, bn as SendMessageRequest, bv as SendMessageResponse, bu as SendMessageSuccessResponse, bo as SendStreamingMessageRequest, bx as SendStreamingMessageResponse, bw as SendStreamingMessageSuccessResponse, br as SetTaskPushNotificationConfigRequest, bD as SetTaskPushNotificationConfigResponse, bC as SetTaskPushNotificationConfigSuccessResponse, gj as SingleResponseSchema, dv as StatusComponent, ga as StatusComponentSchema, gb as StatusUpdateSchema, du as StatusUpdateSettings, d as StopWhen, S as StopWhenSchema, bL as SubAgentApiInsert, dP as SubAgentApiInsertSchema, bK as SubAgentApiSelect, dO as SubAgentApiSelectSchema, bM as SubAgentApiUpdate, dQ as SubAgentApiUpdateSchema, cK as SubAgentArtifactComponentApiInsert, e_ as SubAgentArtifactComponentApiInsertSchema, cJ as SubAgentArtifactComponentApiSelect, eZ as SubAgentArtifactComponentApiSelectSchema, cL as SubAgentArtifactComponentApiUpdate, e$ as SubAgentArtifactComponentApiUpdateSchema, cH as SubAgentArtifactComponentInsert, eX as SubAgentArtifactComponentInsertSchema, h1 as SubAgentArtifactComponentListResponse, g$ as SubAgentArtifactComponentResponse, cG as SubAgentArtifactComponentSelect, eW as SubAgentArtifactComponentSelectSchema, cI as SubAgentArtifactComponentUpdate, eY as SubAgentArtifactComponentUpdateSchema, cB as SubAgentDataComponentApiInsert, eO as SubAgentDataComponentApiInsertSchema, cA as SubAgentDataComponentApiSelect, eN as SubAgentDataComponentApiSelectSchema, cC as SubAgentDataComponentApiUpdate, eP as SubAgentDataComponentApiUpdateSchema, cy as SubAgentDataComponentInsert, eL as SubAgentDataComponentInsertSchema, h0 as SubAgentDataComponentListResponse, g_ as SubAgentDataComponentResponse, cx as SubAgentDataComponentSelect, eK as SubAgentDataComponentSelectSchema, cz as SubAgentDataComponentUpdate, eM as SubAgentDataComponentUpdateSchema, dh as SubAgentDefinition, d2 as SubAgentExternalAgentRelationApiInsert, fY as SubAgentExternalAgentRelationApiInsertSchema, d1 as SubAgentExternalAgentRelationApiSelect, fX as SubAgentExternalAgentRelationApiSelectSchema, d3 as SubAgentExternalAgentRelationApiUpdate, fZ as SubAgentExternalAgentRelationApiUpdateSchema, fV as SubAgentExternalAgentRelationInsertSchema, hb as SubAgentExternalAgentRelationListResponse, ha as SubAgentExternalAgentRelationResponse, c$ as SubAgentExternalAgentRelationSelect, fU as SubAgentExternalAgentRelationSelectSchema, d0 as SubAgentExternalAgentRelationUpdate, fW as SubAgentExternalAgentRelationUpdateSchema, dM as SubAgentInsertSchema, gL as SubAgentListResponse, bP as SubAgentRelationApiInsert, dV as SubAgentRelationApiInsertSchema, bO as SubAgentRelationApiSelect, dU as SubAgentRelationApiSelectSchema, bQ as SubAgentRelationApiUpdate, dW as SubAgentRelationApiUpdateSchema, dS as SubAgentRelationInsertSchema, gW as SubAgentRelationListResponse, bR as SubAgentRelationQuery, dX as SubAgentRelationQuerySchema, gG as SubAgentRelationResponse, bN as SubAgentRelationSelect, dR as SubAgentRelationSelectSchema, dT as SubAgentRelationUpdateSchema, gv as SubAgentResponse, dL as SubAgentSelectSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema, d7 as SubAgentTeamAgentRelationApiInsert, g2 as SubAgentTeamAgentRelationApiInsertSchema, d6 as SubAgentTeamAgentRelationApiSelect, g1 as SubAgentTeamAgentRelationApiSelectSchema, d8 as SubAgentTeamAgentRelationApiUpdate, g3 as SubAgentTeamAgentRelationApiUpdateSchema, f$ as SubAgentTeamAgentRelationInsertSchema, h9 as SubAgentTeamAgentRelationListResponse, h8 as SubAgentTeamAgentRelationResponse, d4 as SubAgentTeamAgentRelationSelect, f_ as SubAgentTeamAgentRelationSelectSchema, d5 as SubAgentTeamAgentRelationUpdate, g0 as SubAgentTeamAgentRelationUpdateSchema, cZ as SubAgentToolRelationApiInsert, fS as SubAgentToolRelationApiInsertSchema, cY as SubAgentToolRelationApiSelect, fR as SubAgentToolRelationApiSelectSchema, c_ as SubAgentToolRelationApiUpdate, fT as SubAgentToolRelationApiUpdateSchema, cX as SubAgentToolRelationInsert, fP as SubAgentToolRelationInsertSchema, gX as SubAgentToolRelationListResponse, gH as SubAgentToolRelationResponse, cW as SubAgentToolRelationSelect, fO as SubAgentToolRelationSelectSchema, fQ as SubAgentToolRelationUpdateSchema, dN as SubAgentUpdateSchema, dn as SummaryEvent, dE as TOOL_STATUS_VALUES, aY as Task, bZ as TaskApiInsert, e8 as TaskApiInsertSchema, bY as TaskApiSelect, e7 as TaskApiSelectSchema, b_ as TaskApiUpdate, e9 as TaskApiUpdateSchema, bJ as TaskArtifact, a_ as TaskArtifactUpdateEvent, be as TaskIdParams, e5 as TaskInsertSchema, b5 as TaskNotCancelableError, b4 as TaskNotFoundError, bd as TaskPushNotificationConfig, bf as TaskQueryParams, c3 as TaskRelationApiInsert, ee as TaskRelationApiInsertSchema, c2 as TaskRelationApiSelect, ed as TaskRelationApiSelectSchema, c4 as TaskRelationApiUpdate, ef as TaskRelationApiUpdateSchema, c0 as TaskRelationInsert, eb as TaskRelationInsertSchema, b$ as TaskRelationSelect, ea as TaskRelationSelectSchema, c1 as TaskRelationUpdate, ec as TaskRelationUpdateSchema, bt as TaskResubscriptionRequest, e4 as TaskSelectSchema, aG as TaskState, aX as TaskStatus, aZ as TaskStatusUpdateEvent, bX as TaskUpdate, e6 as TaskUpdateSchema, gf as TeamAgentSchema, hg as TenantIdParamsSchema, hf as TenantParamsSchema, hk as TenantProjectAgentIdParamsSchema, hj as TenantProjectAgentParamsSchema, hm as TenantProjectAgentSubAgentIdParamsSchema, hl as TenantProjectAgentSubAgentParamsSchema, hi as TenantProjectIdParamsSchema, hh as TenantProjectParamsSchema, aA as TextPart, c6 as ToolApiInsert, fv as ToolApiInsertSchema, c5 as ToolApiSelect, fu as ToolApiSelectSchema, c7 as ToolApiUpdate, fw as ToolApiUpdateSchema, di as ToolDefinition, ek as ToolInsertSchema, gN as ToolListResponse, gx as ToolResponse, ej as ToolSelectSchema, eh as ToolStatusSchema, ft as ToolUpdateSchema, b7 as UnsupportedOperationError, dF as VALID_RELATION_TYPES, gd as canDelegateToExternalAgentSchema, ge as canDelegateToTeamAgentSchema } from './utility-htaewQEL.js';
|
|
7
7
|
import { CredentialStore } from './types/index.js';
|
|
8
8
|
export { CorsConfig, ServerConfig, ServerOptions } from './types/index.js';
|
|
9
9
|
import { NodePgDatabase } from 'drizzle-orm/node-postgres';
|
|
10
10
|
import { PgliteDatabase } from 'drizzle-orm/pglite';
|
|
11
|
-
import { s as schema } from './schema-
|
|
12
|
-
export { G as agentRelations, J as agentToolRelationsRelations, a as agents, y as apiKeys, I as apiKeysRelations, j as artifactComponents, O as artifactComponentsRelations, b as contextCache, E as contextCacheRelations, c as contextConfigs, D as contextConfigsRelations, v as conversations, M as conversationsRelations, z as credentialReferences, K as credentialReferencesRelations, h as dataComponents, Q as dataComponentsRelations, f as externalAgents, H as externalAgentsRelations, m as functionTools, V as functionToolsRelations, n as functions, T as functionsRelations, x as ledgerArtifacts, S as ledgerArtifactsRelations, w as messages, N as messagesRelations, p as projects, B as projectsRelations, k as subAgentArtifactComponents, P as subAgentArtifactComponentsRelations, i as subAgentDataComponents, R as subAgentDataComponentsRelations, q as subAgentExternalAgentRelations, X as subAgentExternalAgentRelationsRelations, u as subAgentFunctionToolRelations, W as subAgentFunctionToolRelationsRelations, e as subAgentRelations, U as subAgentRelationsRelations, r as subAgentTeamAgentRelations, Y as subAgentTeamAgentRelationsRelations, o as subAgentToolRelations, d as subAgents, F as subAgentsRelations, g as taskRelations, C as taskRelationsRelations, t as tasks, A as tasksRelations, l as tools, L as toolsRelations } from './schema-
|
|
11
|
+
import { s as schema } from './schema-DvYv9PQ1.js';
|
|
12
|
+
export { G as agentRelations, J as agentToolRelationsRelations, a as agents, y as apiKeys, I as apiKeysRelations, j as artifactComponents, O as artifactComponentsRelations, b as contextCache, E as contextCacheRelations, c as contextConfigs, D as contextConfigsRelations, v as conversations, M as conversationsRelations, z as credentialReferences, K as credentialReferencesRelations, h as dataComponents, Q as dataComponentsRelations, f as externalAgents, H as externalAgentsRelations, m as functionTools, V as functionToolsRelations, n as functions, T as functionsRelations, x as ledgerArtifacts, S as ledgerArtifactsRelations, w as messages, N as messagesRelations, p as projects, B as projectsRelations, k as subAgentArtifactComponents, P as subAgentArtifactComponentsRelations, i as subAgentDataComponents, R as subAgentDataComponentsRelations, q as subAgentExternalAgentRelations, X as subAgentExternalAgentRelationsRelations, u as subAgentFunctionToolRelations, W as subAgentFunctionToolRelationsRelations, e as subAgentRelations, U as subAgentRelationsRelations, r as subAgentTeamAgentRelations, Y as subAgentTeamAgentRelationsRelations, o as subAgentToolRelations, d as subAgents, F as subAgentsRelations, g as taskRelations, C as taskRelationsRelations, t as tasks, A as tasksRelations, l as tools, L as toolsRelations } from './schema-DvYv9PQ1.js';
|
|
13
13
|
import { SSEClientTransportOptions } from '@modelcontextprotocol/sdk/client/sse.js';
|
|
14
14
|
import { StreamableHTTPClientTransportOptions } from '@modelcontextprotocol/sdk/client/streamableHttp.js';
|
|
15
15
|
import { ClientCapabilities } from '@modelcontextprotocol/sdk/types.js';
|
|
@@ -264,6 +264,12 @@ declare class TemplateEngine {
|
|
|
264
264
|
* Render a template string with context data using JMESPath
|
|
265
265
|
*/
|
|
266
266
|
static render(template: string, context: TemplateContext, options?: TemplateRenderOptions): string;
|
|
267
|
+
/**
|
|
268
|
+
* Normalize JMES path by wrapping property names with dashes in quotes
|
|
269
|
+
* Example: headers.x-tenant-id -> headers."x-tenant-id"
|
|
270
|
+
* Example: api-responses[0].response-code -> "api-responses"[0]."response-code"
|
|
271
|
+
*/
|
|
272
|
+
private static normalizeJMESPath;
|
|
267
273
|
/**
|
|
268
274
|
* Process variable substitutions {{variable.path}} using JMESPath
|
|
269
275
|
*/
|
|
@@ -840,13 +846,14 @@ declare const deleteFullAgent: (db: DatabaseClient, logger?: AgentLogger) => (pa
|
|
|
840
846
|
declare const getAgentById: (db: DatabaseClient) => (params: {
|
|
841
847
|
scopes: AgentScopeConfig;
|
|
842
848
|
}) => Promise<{
|
|
843
|
-
|
|
849
|
+
tenantId: string;
|
|
850
|
+
projectId: string;
|
|
844
851
|
id: string;
|
|
852
|
+
name: string;
|
|
845
853
|
description: string | null;
|
|
854
|
+
prompt: string | null;
|
|
846
855
|
createdAt: string;
|
|
847
856
|
updatedAt: string;
|
|
848
|
-
projectId: string;
|
|
849
|
-
tenantId: string;
|
|
850
857
|
models: {
|
|
851
858
|
base?: {
|
|
852
859
|
model?: string | undefined;
|
|
@@ -866,7 +873,6 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
|
|
|
866
873
|
} | null;
|
|
867
874
|
defaultSubAgentId: string | null;
|
|
868
875
|
contextConfigId: string | null;
|
|
869
|
-
prompt: string | null;
|
|
870
876
|
statusUpdates: {
|
|
871
877
|
enabled?: boolean | undefined;
|
|
872
878
|
numEvents?: number | undefined;
|
|
@@ -886,13 +892,14 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
|
|
|
886
892
|
declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
|
|
887
893
|
scopes: AgentScopeConfig;
|
|
888
894
|
}) => Promise<{
|
|
889
|
-
|
|
895
|
+
tenantId: string;
|
|
896
|
+
projectId: string;
|
|
890
897
|
id: string;
|
|
898
|
+
name: string;
|
|
891
899
|
description: string | null;
|
|
900
|
+
prompt: string | null;
|
|
892
901
|
createdAt: string;
|
|
893
902
|
updatedAt: string;
|
|
894
|
-
projectId: string;
|
|
895
|
-
tenantId: string;
|
|
896
903
|
models: {
|
|
897
904
|
base?: {
|
|
898
905
|
model?: string | undefined;
|
|
@@ -912,7 +919,6 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
|
|
|
912
919
|
} | null;
|
|
913
920
|
defaultSubAgentId: string | null;
|
|
914
921
|
contextConfigId: string | null;
|
|
915
|
-
prompt: string | null;
|
|
916
922
|
statusUpdates: {
|
|
917
923
|
enabled?: boolean | undefined;
|
|
918
924
|
numEvents?: number | undefined;
|
|
@@ -929,13 +935,15 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
|
|
|
929
935
|
}[] | undefined;
|
|
930
936
|
} | null;
|
|
931
937
|
defaultSubAgent: {
|
|
932
|
-
|
|
938
|
+
tenantId: string;
|
|
939
|
+
projectId: string;
|
|
933
940
|
id: string;
|
|
941
|
+
name: string;
|
|
934
942
|
description: string;
|
|
943
|
+
prompt: string;
|
|
944
|
+
agentId: string;
|
|
935
945
|
createdAt: string;
|
|
936
946
|
updatedAt: string;
|
|
937
|
-
projectId: string;
|
|
938
|
-
tenantId: string;
|
|
939
947
|
models: {
|
|
940
948
|
base?: {
|
|
941
949
|
model?: string | undefined;
|
|
@@ -953,21 +961,20 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
|
|
|
953
961
|
stopWhen: {
|
|
954
962
|
stepCountIs?: number | undefined;
|
|
955
963
|
} | null;
|
|
956
|
-
|
|
957
|
-
prompt: string;
|
|
958
|
-
conversationHistoryConfig: ConversationHistoryConfig;
|
|
964
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
959
965
|
} | null;
|
|
960
966
|
} | null>;
|
|
961
967
|
declare const listAgents: (db: DatabaseClient) => (params: {
|
|
962
968
|
scopes: ProjectScopeConfig;
|
|
963
969
|
}) => Promise<{
|
|
964
|
-
|
|
970
|
+
tenantId: string;
|
|
971
|
+
projectId: string;
|
|
965
972
|
id: string;
|
|
973
|
+
name: string;
|
|
966
974
|
description: string | null;
|
|
975
|
+
prompt: string | null;
|
|
967
976
|
createdAt: string;
|
|
968
977
|
updatedAt: string;
|
|
969
|
-
projectId: string;
|
|
970
|
-
tenantId: string;
|
|
971
978
|
models: {
|
|
972
979
|
base?: {
|
|
973
980
|
model?: string | undefined;
|
|
@@ -987,7 +994,6 @@ declare const listAgents: (db: DatabaseClient) => (params: {
|
|
|
987
994
|
} | null;
|
|
988
995
|
defaultSubAgentId: string | null;
|
|
989
996
|
contextConfigId: string | null;
|
|
990
|
-
prompt: string | null;
|
|
991
997
|
statusUpdates: {
|
|
992
998
|
enabled?: boolean | undefined;
|
|
993
999
|
numEvents?: number | undefined;
|
|
@@ -1060,13 +1066,14 @@ declare const listAgentsPaginated: (db: DatabaseClient) => (params: {
|
|
|
1060
1066
|
};
|
|
1061
1067
|
}>;
|
|
1062
1068
|
declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promise<{
|
|
1063
|
-
|
|
1069
|
+
tenantId: string;
|
|
1070
|
+
projectId: string;
|
|
1064
1071
|
id: string;
|
|
1072
|
+
name: string;
|
|
1065
1073
|
description: string | null;
|
|
1074
|
+
prompt: string | null;
|
|
1066
1075
|
createdAt: string;
|
|
1067
1076
|
updatedAt: string;
|
|
1068
|
-
projectId: string;
|
|
1069
|
-
tenantId: string;
|
|
1070
1077
|
models: {
|
|
1071
1078
|
base?: {
|
|
1072
1079
|
model?: string | undefined;
|
|
@@ -1086,7 +1093,6 @@ declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promis
|
|
|
1086
1093
|
} | null;
|
|
1087
1094
|
defaultSubAgentId: string | null;
|
|
1088
1095
|
contextConfigId: string | null;
|
|
1089
|
-
prompt: string | null;
|
|
1090
1096
|
statusUpdates: {
|
|
1091
1097
|
enabled?: boolean | undefined;
|
|
1092
1098
|
numEvents?: number | undefined;
|
|
@@ -1187,49 +1193,49 @@ declare const getApiKeyById: (db: DatabaseClient) => (params: {
|
|
|
1187
1193
|
scopes: ProjectScopeConfig;
|
|
1188
1194
|
id: string;
|
|
1189
1195
|
}) => Promise<{
|
|
1190
|
-
name: string | null;
|
|
1191
|
-
id: string;
|
|
1192
|
-
createdAt: string;
|
|
1193
|
-
updatedAt: string;
|
|
1194
|
-
projectId: string;
|
|
1195
1196
|
tenantId: string;
|
|
1197
|
+
projectId: string;
|
|
1198
|
+
id: string;
|
|
1199
|
+
name: string | null;
|
|
1196
1200
|
agentId: string;
|
|
1197
|
-
expiresAt: string | null;
|
|
1198
1201
|
publicId: string;
|
|
1199
1202
|
keyHash: string;
|
|
1200
1203
|
keyPrefix: string;
|
|
1201
1204
|
lastUsedAt: string | null;
|
|
1202
|
-
|
|
1203
|
-
declare const getApiKeyByPublicId: (db: DatabaseClient) => (publicId: string) => Promise<{
|
|
1204
|
-
name: string | null;
|
|
1205
|
-
id: string;
|
|
1205
|
+
expiresAt: string | null;
|
|
1206
1206
|
createdAt: string;
|
|
1207
1207
|
updatedAt: string;
|
|
1208
|
-
|
|
1208
|
+
} | undefined>;
|
|
1209
|
+
declare const getApiKeyByPublicId: (db: DatabaseClient) => (publicId: string) => Promise<{
|
|
1209
1210
|
tenantId: string;
|
|
1211
|
+
projectId: string;
|
|
1212
|
+
id: string;
|
|
1213
|
+
name: string | null;
|
|
1210
1214
|
agentId: string;
|
|
1211
|
-
expiresAt: string | null;
|
|
1212
1215
|
publicId: string;
|
|
1213
1216
|
keyHash: string;
|
|
1214
1217
|
keyPrefix: string;
|
|
1215
1218
|
lastUsedAt: string | null;
|
|
1219
|
+
expiresAt: string | null;
|
|
1220
|
+
createdAt: string;
|
|
1221
|
+
updatedAt: string;
|
|
1216
1222
|
} | undefined>;
|
|
1217
1223
|
declare const listApiKeys: (db: DatabaseClient) => (params: {
|
|
1218
1224
|
scopes: ProjectScopeConfig;
|
|
1219
1225
|
agentId?: string;
|
|
1220
1226
|
}) => Promise<{
|
|
1221
|
-
name: string | null;
|
|
1222
|
-
id: string;
|
|
1223
|
-
createdAt: string;
|
|
1224
|
-
updatedAt: string;
|
|
1225
|
-
projectId: string;
|
|
1226
1227
|
tenantId: string;
|
|
1228
|
+
projectId: string;
|
|
1229
|
+
id: string;
|
|
1230
|
+
name: string | null;
|
|
1227
1231
|
agentId: string;
|
|
1228
|
-
expiresAt: string | null;
|
|
1229
1232
|
publicId: string;
|
|
1230
1233
|
keyHash: string;
|
|
1231
1234
|
keyPrefix: string;
|
|
1232
1235
|
lastUsedAt: string | null;
|
|
1236
|
+
expiresAt: string | null;
|
|
1237
|
+
createdAt: string;
|
|
1238
|
+
updatedAt: string;
|
|
1233
1239
|
}[]>;
|
|
1234
1240
|
declare const listApiKeysPaginated: (db: DatabaseClient) => (params: {
|
|
1235
1241
|
scopes: ProjectScopeConfig;
|
|
@@ -1245,18 +1251,18 @@ declare const listApiKeysPaginated: (db: DatabaseClient) => (params: {
|
|
|
1245
1251
|
};
|
|
1246
1252
|
}>;
|
|
1247
1253
|
declare const createApiKey: (db: DatabaseClient) => (params: ApiKeyInsert) => Promise<{
|
|
1248
|
-
name: string | null;
|
|
1249
|
-
id: string;
|
|
1250
|
-
createdAt: string;
|
|
1251
|
-
updatedAt: string;
|
|
1252
|
-
projectId: string;
|
|
1253
1254
|
tenantId: string;
|
|
1255
|
+
projectId: string;
|
|
1256
|
+
id: string;
|
|
1257
|
+
name: string | null;
|
|
1254
1258
|
agentId: string;
|
|
1255
|
-
expiresAt: string | null;
|
|
1256
1259
|
publicId: string;
|
|
1257
1260
|
keyHash: string;
|
|
1258
1261
|
keyPrefix: string;
|
|
1259
1262
|
lastUsedAt: string | null;
|
|
1263
|
+
expiresAt: string | null;
|
|
1264
|
+
createdAt: string;
|
|
1265
|
+
updatedAt: string;
|
|
1260
1266
|
}>;
|
|
1261
1267
|
declare const updateApiKey: (db: DatabaseClient) => (params: {
|
|
1262
1268
|
scopes: ProjectScopeConfig;
|
|
@@ -1303,13 +1309,13 @@ declare const getArtifactComponentById: (db: DatabaseClient) => (params: {
|
|
|
1303
1309
|
scopes: ProjectScopeConfig;
|
|
1304
1310
|
id: string;
|
|
1305
1311
|
}) => Promise<{
|
|
1306
|
-
|
|
1312
|
+
tenantId: string;
|
|
1313
|
+
projectId: string;
|
|
1307
1314
|
id: string;
|
|
1315
|
+
name: string;
|
|
1308
1316
|
description: string;
|
|
1309
1317
|
createdAt: string;
|
|
1310
1318
|
updatedAt: string;
|
|
1311
|
-
projectId: string;
|
|
1312
|
-
tenantId: string;
|
|
1313
1319
|
props: Record<string, unknown> | null;
|
|
1314
1320
|
} | undefined>;
|
|
1315
1321
|
declare const listArtifactComponents: (db: DatabaseClient) => (params: {
|
|
@@ -1337,13 +1343,13 @@ declare const listArtifactComponentsPaginated: (db: DatabaseClient) => (params:
|
|
|
1337
1343
|
};
|
|
1338
1344
|
}>;
|
|
1339
1345
|
declare const createArtifactComponent: (db: DatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
|
|
1340
|
-
|
|
1346
|
+
tenantId: string;
|
|
1347
|
+
projectId: string;
|
|
1341
1348
|
id: string;
|
|
1349
|
+
name: string;
|
|
1342
1350
|
description: string;
|
|
1343
1351
|
createdAt: string;
|
|
1344
1352
|
updatedAt: string;
|
|
1345
|
-
projectId: string;
|
|
1346
|
-
tenantId: string;
|
|
1347
1353
|
props: Record<string, unknown> | null;
|
|
1348
1354
|
}>;
|
|
1349
1355
|
declare const updateArtifactComponent: (db: DatabaseClient) => (params: {
|
|
@@ -1380,11 +1386,11 @@ declare const associateArtifactComponentWithAgent: (db: DatabaseClient) => (para
|
|
|
1380
1386
|
scopes: SubAgentScopeConfig;
|
|
1381
1387
|
artifactComponentId: string;
|
|
1382
1388
|
}) => Promise<{
|
|
1383
|
-
id: string;
|
|
1384
|
-
createdAt: string;
|
|
1385
|
-
projectId: string;
|
|
1386
1389
|
tenantId: string;
|
|
1390
|
+
projectId: string;
|
|
1391
|
+
id: string;
|
|
1387
1392
|
agentId: string;
|
|
1393
|
+
createdAt: string;
|
|
1388
1394
|
subAgentId: string;
|
|
1389
1395
|
artifactComponentId: string;
|
|
1390
1396
|
}>;
|
|
@@ -1423,11 +1429,11 @@ declare const upsertAgentArtifactComponentRelation: (db: DatabaseClient) => (par
|
|
|
1423
1429
|
scopes: SubAgentScopeConfig;
|
|
1424
1430
|
artifactComponentId: string;
|
|
1425
1431
|
}) => Promise<{
|
|
1426
|
-
id: string;
|
|
1427
|
-
createdAt: string;
|
|
1428
|
-
projectId: string;
|
|
1429
1432
|
tenantId: string;
|
|
1433
|
+
projectId: string;
|
|
1434
|
+
id: string;
|
|
1430
1435
|
agentId: string;
|
|
1436
|
+
createdAt: string;
|
|
1431
1437
|
subAgentId: string;
|
|
1432
1438
|
artifactComponentId: string;
|
|
1433
1439
|
} | null>;
|
|
@@ -1507,26 +1513,26 @@ declare const getContextConfigById: (db: DatabaseClient) => (params: {
|
|
|
1507
1513
|
scopes: AgentScopeConfig;
|
|
1508
1514
|
id: string;
|
|
1509
1515
|
}) => Promise<{
|
|
1516
|
+
tenantId: string;
|
|
1517
|
+
projectId: string;
|
|
1510
1518
|
id: string;
|
|
1519
|
+
agentId: string;
|
|
1511
1520
|
createdAt: string;
|
|
1512
1521
|
updatedAt: string;
|
|
1513
|
-
projectId: string;
|
|
1514
|
-
tenantId: string;
|
|
1515
1522
|
headersSchema: unknown;
|
|
1516
1523
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
1517
|
-
agentId: string;
|
|
1518
1524
|
} | undefined>;
|
|
1519
1525
|
declare const listContextConfigs: (db: DatabaseClient) => (params: {
|
|
1520
1526
|
scopes: AgentScopeConfig;
|
|
1521
1527
|
}) => Promise<{
|
|
1528
|
+
tenantId: string;
|
|
1529
|
+
projectId: string;
|
|
1522
1530
|
id: string;
|
|
1531
|
+
agentId: string;
|
|
1523
1532
|
createdAt: string;
|
|
1524
1533
|
updatedAt: string;
|
|
1525
|
-
projectId: string;
|
|
1526
|
-
tenantId: string;
|
|
1527
1534
|
headersSchema: unknown;
|
|
1528
1535
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
1529
|
-
agentId: string;
|
|
1530
1536
|
}[]>;
|
|
1531
1537
|
declare const listContextConfigsPaginated: (db: DatabaseClient) => (params: {
|
|
1532
1538
|
scopes: AgentScopeConfig;
|
|
@@ -1541,14 +1547,14 @@ declare const listContextConfigsPaginated: (db: DatabaseClient) => (params: {
|
|
|
1541
1547
|
};
|
|
1542
1548
|
}>;
|
|
1543
1549
|
declare const createContextConfig: (db: DatabaseClient) => (params: ContextConfigInsert) => Promise<{
|
|
1550
|
+
tenantId: string;
|
|
1551
|
+
projectId: string;
|
|
1544
1552
|
id: string;
|
|
1553
|
+
agentId: string;
|
|
1545
1554
|
createdAt: string;
|
|
1546
1555
|
updatedAt: string;
|
|
1547
|
-
projectId: string;
|
|
1548
|
-
tenantId: string;
|
|
1549
1556
|
headersSchema: unknown;
|
|
1550
1557
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
1551
|
-
agentId: string;
|
|
1552
1558
|
}>;
|
|
1553
1559
|
declare const updateContextConfig: (db: DatabaseClient) => (params: {
|
|
1554
1560
|
scopes: AgentScopeConfig;
|
|
@@ -1581,14 +1587,14 @@ declare const countContextConfigs: (db: DatabaseClient) => (params: {
|
|
|
1581
1587
|
declare const upsertContextConfig: (db: DatabaseClient) => (params: {
|
|
1582
1588
|
data: ContextConfigInsert;
|
|
1583
1589
|
}) => Promise<{
|
|
1590
|
+
tenantId: string;
|
|
1591
|
+
projectId: string;
|
|
1584
1592
|
id: string;
|
|
1593
|
+
agentId: string;
|
|
1585
1594
|
createdAt: string;
|
|
1586
1595
|
updatedAt: string;
|
|
1587
|
-
projectId: string;
|
|
1588
|
-
tenantId: string;
|
|
1589
1596
|
headersSchema: unknown;
|
|
1590
1597
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
1591
|
-
agentId: string;
|
|
1592
1598
|
}>;
|
|
1593
1599
|
|
|
1594
1600
|
declare const listConversations: (db: DatabaseClient) => (params: {
|
|
@@ -1600,12 +1606,12 @@ declare const listConversations: (db: DatabaseClient) => (params: {
|
|
|
1600
1606
|
total: number;
|
|
1601
1607
|
}>;
|
|
1602
1608
|
declare const createConversation: (db: DatabaseClient) => (params: ConversationInsert) => Promise<{
|
|
1609
|
+
tenantId: string;
|
|
1610
|
+
projectId: string;
|
|
1603
1611
|
id: string;
|
|
1604
1612
|
title: string | null;
|
|
1605
1613
|
createdAt: string;
|
|
1606
1614
|
updatedAt: string;
|
|
1607
|
-
projectId: string;
|
|
1608
|
-
tenantId: string;
|
|
1609
1615
|
metadata: ConversationMetadata | null;
|
|
1610
1616
|
userId: string | null;
|
|
1611
1617
|
activeSubAgentId: string;
|
|
@@ -1651,12 +1657,12 @@ declare const getConversation: (db: DatabaseClient) => (params: {
|
|
|
1651
1657
|
scopes: ProjectScopeConfig;
|
|
1652
1658
|
conversationId: string;
|
|
1653
1659
|
}) => Promise<{
|
|
1660
|
+
tenantId: string;
|
|
1661
|
+
projectId: string;
|
|
1654
1662
|
id: string;
|
|
1655
1663
|
title: string | null;
|
|
1656
1664
|
createdAt: string;
|
|
1657
1665
|
updatedAt: string;
|
|
1658
|
-
projectId: string;
|
|
1659
|
-
tenantId: string;
|
|
1660
1666
|
metadata: ConversationMetadata | null;
|
|
1661
1667
|
userId: string | null;
|
|
1662
1668
|
activeSubAgentId: string;
|
|
@@ -1675,12 +1681,12 @@ declare const createOrGetConversation: (db: DatabaseClient) => (input: Conversat
|
|
|
1675
1681
|
metadata?: ConversationMetadata | null | undefined;
|
|
1676
1682
|
contextConfigId?: string | undefined;
|
|
1677
1683
|
} | {
|
|
1684
|
+
tenantId: string;
|
|
1685
|
+
projectId: string;
|
|
1678
1686
|
id: string;
|
|
1679
1687
|
title: string | null;
|
|
1680
1688
|
createdAt: string;
|
|
1681
1689
|
updatedAt: string;
|
|
1682
|
-
projectId: string;
|
|
1683
|
-
tenantId: string;
|
|
1684
1690
|
metadata: ConversationMetadata | null;
|
|
1685
1691
|
userId: string | null;
|
|
1686
1692
|
activeSubAgentId: string;
|
|
@@ -1701,12 +1707,12 @@ declare const getActiveAgentForConversation: (db: DatabaseClient) => (params: {
|
|
|
1701
1707
|
scopes: ProjectScopeConfig;
|
|
1702
1708
|
conversationId: string;
|
|
1703
1709
|
}) => Promise<{
|
|
1710
|
+
tenantId: string;
|
|
1711
|
+
projectId: string;
|
|
1704
1712
|
id: string;
|
|
1705
1713
|
title: string | null;
|
|
1706
1714
|
createdAt: string;
|
|
1707
1715
|
updatedAt: string;
|
|
1708
|
-
projectId: string;
|
|
1709
|
-
tenantId: string;
|
|
1710
1716
|
metadata: ConversationMetadata | null;
|
|
1711
1717
|
userId: string | null;
|
|
1712
1718
|
activeSubAgentId: string;
|
|
@@ -1871,11 +1877,11 @@ declare const associateDataComponentWithAgent: (db: DatabaseClient) => (params:
|
|
|
1871
1877
|
scopes: SubAgentScopeConfig;
|
|
1872
1878
|
dataComponentId: string;
|
|
1873
1879
|
}) => Promise<{
|
|
1874
|
-
id: string;
|
|
1875
|
-
createdAt: string;
|
|
1876
|
-
projectId: string;
|
|
1877
1880
|
tenantId: string;
|
|
1881
|
+
projectId: string;
|
|
1882
|
+
id: string;
|
|
1878
1883
|
agentId: string;
|
|
1884
|
+
createdAt: string;
|
|
1879
1885
|
subAgentId: string;
|
|
1880
1886
|
dataComponentId: string;
|
|
1881
1887
|
}>;
|
|
@@ -1913,11 +1919,11 @@ declare const upsertAgentDataComponentRelation: (db: DatabaseClient) => (params:
|
|
|
1913
1919
|
scopes: SubAgentScopeConfig;
|
|
1914
1920
|
dataComponentId: string;
|
|
1915
1921
|
}) => Promise<{
|
|
1916
|
-
id: string;
|
|
1917
|
-
createdAt: string;
|
|
1918
|
-
projectId: string;
|
|
1919
1922
|
tenantId: string;
|
|
1923
|
+
projectId: string;
|
|
1924
|
+
id: string;
|
|
1920
1925
|
agentId: string;
|
|
1926
|
+
createdAt: string;
|
|
1921
1927
|
subAgentId: string;
|
|
1922
1928
|
dataComponentId: string;
|
|
1923
1929
|
} | null>;
|
|
@@ -2092,14 +2098,14 @@ declare const createFunctionTool: (db: DatabaseClient) => (params: {
|
|
|
2092
2098
|
data: FunctionToolApiInsert;
|
|
2093
2099
|
scopes: AgentScopeConfig;
|
|
2094
2100
|
}) => Promise<{
|
|
2095
|
-
|
|
2101
|
+
tenantId: string;
|
|
2102
|
+
projectId: string;
|
|
2096
2103
|
id: string;
|
|
2104
|
+
name: string;
|
|
2097
2105
|
description: string | null;
|
|
2106
|
+
agentId: string;
|
|
2098
2107
|
createdAt: string;
|
|
2099
2108
|
updatedAt: string;
|
|
2100
|
-
projectId: string;
|
|
2101
|
-
tenantId: string;
|
|
2102
|
-
agentId: string;
|
|
2103
2109
|
functionId: string;
|
|
2104
2110
|
}>;
|
|
2105
2111
|
/**
|
|
@@ -2134,14 +2140,14 @@ declare const upsertFunctionTool: (db: DatabaseClient) => (params: {
|
|
|
2134
2140
|
data: FunctionToolApiInsert;
|
|
2135
2141
|
scopes: AgentScopeConfig;
|
|
2136
2142
|
}) => Promise<{
|
|
2137
|
-
|
|
2143
|
+
tenantId: string;
|
|
2144
|
+
projectId: string;
|
|
2138
2145
|
id: string;
|
|
2146
|
+
name: string;
|
|
2139
2147
|
description: string | null;
|
|
2148
|
+
agentId: string;
|
|
2140
2149
|
createdAt: string;
|
|
2141
2150
|
updatedAt: string;
|
|
2142
|
-
projectId: string;
|
|
2143
|
-
tenantId: string;
|
|
2144
|
-
agentId: string;
|
|
2145
2151
|
functionId: string;
|
|
2146
2152
|
}>;
|
|
2147
2153
|
declare const getFunctionToolsForSubAgent: (db: DatabaseClient) => (params: {
|
|
@@ -2271,11 +2277,11 @@ declare const getMessageById: (db: DatabaseClient) => (params: {
|
|
|
2271
2277
|
scopes: ProjectScopeConfig;
|
|
2272
2278
|
messageId: string;
|
|
2273
2279
|
}) => Promise<{
|
|
2280
|
+
tenantId: string;
|
|
2281
|
+
projectId: string;
|
|
2274
2282
|
id: string;
|
|
2275
2283
|
createdAt: string;
|
|
2276
2284
|
updatedAt: string;
|
|
2277
|
-
projectId: string;
|
|
2278
|
-
tenantId: string;
|
|
2279
2285
|
content: MessageContent;
|
|
2280
2286
|
metadata: MessageMetadata | null;
|
|
2281
2287
|
conversationId: string;
|
|
@@ -2402,11 +2408,11 @@ declare const getVisibleMessages: (db: DatabaseClient) => (params: {
|
|
|
2402
2408
|
id: string;
|
|
2403
2409
|
}[]>;
|
|
2404
2410
|
declare const createMessage: (db: DatabaseClient) => (params: MessageInsert) => Promise<{
|
|
2411
|
+
tenantId: string;
|
|
2412
|
+
projectId: string;
|
|
2405
2413
|
id: string;
|
|
2406
2414
|
createdAt: string;
|
|
2407
2415
|
updatedAt: string;
|
|
2408
|
-
projectId: string;
|
|
2409
|
-
tenantId: string;
|
|
2410
2416
|
content: MessageContent;
|
|
2411
2417
|
metadata: MessageMetadata | null;
|
|
2412
2418
|
conversationId: string;
|
|
@@ -2455,11 +2461,11 @@ declare const deleteMessage: (db: DatabaseClient) => (params: {
|
|
|
2455
2461
|
scopes: ProjectScopeConfig;
|
|
2456
2462
|
messageId: string;
|
|
2457
2463
|
}) => Promise<{
|
|
2464
|
+
tenantId: string;
|
|
2465
|
+
projectId: string;
|
|
2458
2466
|
id: string;
|
|
2459
2467
|
createdAt: string;
|
|
2460
2468
|
updatedAt: string;
|
|
2461
|
-
projectId: string;
|
|
2462
|
-
tenantId: string;
|
|
2463
2469
|
content: MessageContent;
|
|
2464
2470
|
metadata: MessageMetadata | null;
|
|
2465
2471
|
conversationId: string;
|
|
@@ -2580,15 +2586,15 @@ declare const getSubAgentExternalAgentRelationById: (db: DatabaseClient) => (par
|
|
|
2580
2586
|
scopes: SubAgentScopeConfig;
|
|
2581
2587
|
relationId: string;
|
|
2582
2588
|
}) => Promise<{
|
|
2583
|
-
|
|
2589
|
+
tenantId: string;
|
|
2590
|
+
projectId: string;
|
|
2584
2591
|
id: string;
|
|
2592
|
+
agentId: string;
|
|
2585
2593
|
createdAt: string;
|
|
2586
2594
|
updatedAt: string;
|
|
2587
|
-
|
|
2588
|
-
tenantId: string;
|
|
2589
|
-
agentId: string;
|
|
2590
|
-
subAgentId: string;
|
|
2595
|
+
headers: Record<string, string> | null;
|
|
2591
2596
|
externalAgentId: string;
|
|
2597
|
+
subAgentId: string;
|
|
2592
2598
|
} | undefined>;
|
|
2593
2599
|
declare const listSubAgentExternalAgentRelations: (db: DatabaseClient) => (params: {
|
|
2594
2600
|
scopes: SubAgentScopeConfig;
|
|
@@ -2615,28 +2621,28 @@ declare const listSubAgentExternalAgentRelations: (db: DatabaseClient) => (param
|
|
|
2615
2621
|
declare const getSubAgentExternalAgentRelations: (db: DatabaseClient) => (params: {
|
|
2616
2622
|
scopes: SubAgentScopeConfig;
|
|
2617
2623
|
}) => Promise<{
|
|
2618
|
-
|
|
2624
|
+
tenantId: string;
|
|
2625
|
+
projectId: string;
|
|
2619
2626
|
id: string;
|
|
2627
|
+
agentId: string;
|
|
2620
2628
|
createdAt: string;
|
|
2621
2629
|
updatedAt: string;
|
|
2622
|
-
|
|
2623
|
-
tenantId: string;
|
|
2624
|
-
agentId: string;
|
|
2625
|
-
subAgentId: string;
|
|
2630
|
+
headers: Record<string, string> | null;
|
|
2626
2631
|
externalAgentId: string;
|
|
2632
|
+
subAgentId: string;
|
|
2627
2633
|
}[]>;
|
|
2628
2634
|
declare const getSubAgentExternalAgentRelationsByAgent: (db: DatabaseClient) => (params: {
|
|
2629
2635
|
scopes: AgentScopeConfig;
|
|
2630
2636
|
}) => Promise<{
|
|
2631
|
-
|
|
2637
|
+
tenantId: string;
|
|
2638
|
+
projectId: string;
|
|
2632
2639
|
id: string;
|
|
2640
|
+
agentId: string;
|
|
2633
2641
|
createdAt: string;
|
|
2634
2642
|
updatedAt: string;
|
|
2635
|
-
|
|
2636
|
-
tenantId: string;
|
|
2637
|
-
agentId: string;
|
|
2638
|
-
subAgentId: string;
|
|
2643
|
+
headers: Record<string, string> | null;
|
|
2639
2644
|
externalAgentId: string;
|
|
2645
|
+
subAgentId: string;
|
|
2640
2646
|
}[]>;
|
|
2641
2647
|
declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: DatabaseClient) => (params: {
|
|
2642
2648
|
scopes: AgentScopeConfig;
|
|
@@ -2714,7 +2720,7 @@ declare const getSubAgentsForExternalAgent: (db: DatabaseClient) => (params: {
|
|
|
2714
2720
|
name: string;
|
|
2715
2721
|
description: string;
|
|
2716
2722
|
prompt: string;
|
|
2717
|
-
conversationHistoryConfig: ConversationHistoryConfig;
|
|
2723
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
2718
2724
|
models: {
|
|
2719
2725
|
base?: {
|
|
2720
2726
|
model?: string | undefined;
|
|
@@ -2751,15 +2757,15 @@ declare const createSubAgentExternalAgentRelation: (db: DatabaseClient) => (para
|
|
|
2751
2757
|
headers?: Record<string, string> | null;
|
|
2752
2758
|
};
|
|
2753
2759
|
}) => Promise<{
|
|
2754
|
-
|
|
2760
|
+
tenantId: string;
|
|
2761
|
+
projectId: string;
|
|
2755
2762
|
id: string;
|
|
2763
|
+
agentId: string;
|
|
2756
2764
|
createdAt: string;
|
|
2757
2765
|
updatedAt: string;
|
|
2758
|
-
|
|
2759
|
-
tenantId: string;
|
|
2760
|
-
agentId: string;
|
|
2761
|
-
subAgentId: string;
|
|
2766
|
+
headers: Record<string, string> | null;
|
|
2762
2767
|
externalAgentId: string;
|
|
2768
|
+
subAgentId: string;
|
|
2763
2769
|
}>;
|
|
2764
2770
|
/**
|
|
2765
2771
|
* Check if sub-agent external agent relation exists by params
|
|
@@ -2768,15 +2774,15 @@ declare const getSubAgentExternalAgentRelationByParams: (db: DatabaseClient) =>
|
|
|
2768
2774
|
scopes: SubAgentScopeConfig;
|
|
2769
2775
|
externalAgentId: string;
|
|
2770
2776
|
}) => Promise<{
|
|
2771
|
-
|
|
2777
|
+
tenantId: string;
|
|
2778
|
+
projectId: string;
|
|
2772
2779
|
id: string;
|
|
2780
|
+
agentId: string;
|
|
2773
2781
|
createdAt: string;
|
|
2774
2782
|
updatedAt: string;
|
|
2775
|
-
|
|
2776
|
-
tenantId: string;
|
|
2777
|
-
agentId: string;
|
|
2778
|
-
subAgentId: string;
|
|
2783
|
+
headers: Record<string, string> | null;
|
|
2779
2784
|
externalAgentId: string;
|
|
2785
|
+
subAgentId: string;
|
|
2780
2786
|
} | undefined>;
|
|
2781
2787
|
/**
|
|
2782
2788
|
* Upsert sub-agent external agent relation (create if it doesn't exist, update if it does)
|
|
@@ -2789,15 +2795,15 @@ declare const upsertSubAgentExternalAgentRelation: (db: DatabaseClient) => (para
|
|
|
2789
2795
|
headers?: Record<string, string> | null;
|
|
2790
2796
|
};
|
|
2791
2797
|
}) => Promise<{
|
|
2792
|
-
|
|
2798
|
+
tenantId: string;
|
|
2799
|
+
projectId: string;
|
|
2793
2800
|
id: string;
|
|
2801
|
+
agentId: string;
|
|
2794
2802
|
createdAt: string;
|
|
2795
2803
|
updatedAt: string;
|
|
2796
|
-
|
|
2797
|
-
tenantId: string;
|
|
2798
|
-
agentId: string;
|
|
2799
|
-
subAgentId: string;
|
|
2804
|
+
headers: Record<string, string> | null;
|
|
2800
2805
|
externalAgentId: string;
|
|
2806
|
+
subAgentId: string;
|
|
2801
2807
|
}>;
|
|
2802
2808
|
declare const updateSubAgentExternalAgentRelation: (db: DatabaseClient) => (params: {
|
|
2803
2809
|
scopes: SubAgentScopeConfig;
|
|
@@ -2829,12 +2835,12 @@ declare const getAgentRelationById: (db: DatabaseClient) => (params: {
|
|
|
2829
2835
|
scopes: AgentScopeConfig;
|
|
2830
2836
|
relationId: string;
|
|
2831
2837
|
}) => Promise<{
|
|
2838
|
+
tenantId: string;
|
|
2839
|
+
projectId: string;
|
|
2832
2840
|
id: string;
|
|
2841
|
+
agentId: string;
|
|
2833
2842
|
createdAt: string;
|
|
2834
2843
|
updatedAt: string;
|
|
2835
|
-
projectId: string;
|
|
2836
|
-
tenantId: string;
|
|
2837
|
-
agentId: string;
|
|
2838
2844
|
sourceSubAgentId: string;
|
|
2839
2845
|
targetSubAgentId: string | null;
|
|
2840
2846
|
relationType: string | null;
|
|
@@ -2864,12 +2870,12 @@ declare const listAgentRelations: (db: DatabaseClient) => (params: {
|
|
|
2864
2870
|
declare const getAgentRelations: (db: DatabaseClient) => (params: {
|
|
2865
2871
|
scopes: SubAgentScopeConfig;
|
|
2866
2872
|
}) => Promise<{
|
|
2873
|
+
tenantId: string;
|
|
2874
|
+
projectId: string;
|
|
2867
2875
|
id: string;
|
|
2876
|
+
agentId: string;
|
|
2868
2877
|
createdAt: string;
|
|
2869
2878
|
updatedAt: string;
|
|
2870
|
-
projectId: string;
|
|
2871
|
-
tenantId: string;
|
|
2872
|
-
agentId: string;
|
|
2873
2879
|
sourceSubAgentId: string;
|
|
2874
2880
|
targetSubAgentId: string | null;
|
|
2875
2881
|
relationType: string | null;
|
|
@@ -2877,12 +2883,12 @@ declare const getAgentRelations: (db: DatabaseClient) => (params: {
|
|
|
2877
2883
|
declare const getAgentRelationsByAgent: (db: DatabaseClient) => (params: {
|
|
2878
2884
|
scopes: AgentScopeConfig;
|
|
2879
2885
|
}) => Promise<{
|
|
2886
|
+
tenantId: string;
|
|
2887
|
+
projectId: string;
|
|
2880
2888
|
id: string;
|
|
2889
|
+
agentId: string;
|
|
2881
2890
|
createdAt: string;
|
|
2882
2891
|
updatedAt: string;
|
|
2883
|
-
projectId: string;
|
|
2884
|
-
tenantId: string;
|
|
2885
|
-
agentId: string;
|
|
2886
2892
|
sourceSubAgentId: string;
|
|
2887
2893
|
targetSubAgentId: string | null;
|
|
2888
2894
|
relationType: string | null;
|
|
@@ -2945,12 +2951,12 @@ declare const getRelatedAgentsForAgent: (db: DatabaseClient) => (params: {
|
|
|
2945
2951
|
}[];
|
|
2946
2952
|
}>;
|
|
2947
2953
|
declare const createSubAgentRelation: (db: DatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
|
|
2954
|
+
tenantId: string;
|
|
2955
|
+
projectId: string;
|
|
2948
2956
|
id: string;
|
|
2957
|
+
agentId: string;
|
|
2949
2958
|
createdAt: string;
|
|
2950
2959
|
updatedAt: string;
|
|
2951
|
-
projectId: string;
|
|
2952
|
-
tenantId: string;
|
|
2953
|
-
agentId: string;
|
|
2954
2960
|
sourceSubAgentId: string;
|
|
2955
2961
|
targetSubAgentId: string | null;
|
|
2956
2962
|
relationType: string | null;
|
|
@@ -2964,12 +2970,12 @@ declare const getAgentRelationByParams: (db: DatabaseClient) => (params: {
|
|
|
2964
2970
|
targetSubAgentId?: string;
|
|
2965
2971
|
relationType: string;
|
|
2966
2972
|
}) => Promise<{
|
|
2973
|
+
tenantId: string;
|
|
2974
|
+
projectId: string;
|
|
2967
2975
|
id: string;
|
|
2976
|
+
agentId: string;
|
|
2968
2977
|
createdAt: string;
|
|
2969
2978
|
updatedAt: string;
|
|
2970
|
-
projectId: string;
|
|
2971
|
-
tenantId: string;
|
|
2972
|
-
agentId: string;
|
|
2973
2979
|
sourceSubAgentId: string;
|
|
2974
2980
|
targetSubAgentId: string | null;
|
|
2975
2981
|
relationType: string | null;
|
|
@@ -2978,12 +2984,12 @@ declare const getAgentRelationByParams: (db: DatabaseClient) => (params: {
|
|
|
2978
2984
|
* Upsert agent relation (create if it doesn't exist, no-op if it does)
|
|
2979
2985
|
*/
|
|
2980
2986
|
declare const upsertSubAgentRelation: (db: DatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
|
|
2987
|
+
tenantId: string;
|
|
2988
|
+
projectId: string;
|
|
2981
2989
|
id: string;
|
|
2990
|
+
agentId: string;
|
|
2982
2991
|
createdAt: string;
|
|
2983
2992
|
updatedAt: string;
|
|
2984
|
-
projectId: string;
|
|
2985
|
-
tenantId: string;
|
|
2986
|
-
agentId: string;
|
|
2987
2993
|
sourceSubAgentId: string;
|
|
2988
2994
|
targetSubAgentId: string | null;
|
|
2989
2995
|
relationType: string | null;
|
|
@@ -3020,16 +3026,16 @@ declare const createAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
|
3020
3026
|
headers?: Record<string, string> | null;
|
|
3021
3027
|
};
|
|
3022
3028
|
}) => Promise<{
|
|
3023
|
-
|
|
3029
|
+
tenantId: string;
|
|
3030
|
+
projectId: string;
|
|
3024
3031
|
id: string;
|
|
3032
|
+
agentId: string;
|
|
3025
3033
|
createdAt: string;
|
|
3026
3034
|
updatedAt: string;
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
agentId: string;
|
|
3035
|
+
headers: Record<string, string> | null;
|
|
3036
|
+
toolId: string;
|
|
3030
3037
|
selectedTools: string[] | null;
|
|
3031
3038
|
subAgentId: string;
|
|
3032
|
-
toolId: string;
|
|
3033
3039
|
}>;
|
|
3034
3040
|
declare const updateAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
3035
3041
|
scopes: AgentScopeConfig;
|
|
@@ -3058,16 +3064,16 @@ declare const getAgentToolRelationById: (db: DatabaseClient) => (params: {
|
|
|
3058
3064
|
scopes: SubAgentScopeConfig;
|
|
3059
3065
|
relationId: string;
|
|
3060
3066
|
}) => Promise<{
|
|
3061
|
-
|
|
3067
|
+
tenantId: string;
|
|
3068
|
+
projectId: string;
|
|
3062
3069
|
id: string;
|
|
3070
|
+
agentId: string;
|
|
3063
3071
|
createdAt: string;
|
|
3064
3072
|
updatedAt: string;
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
agentId: string;
|
|
3073
|
+
headers: Record<string, string> | null;
|
|
3074
|
+
toolId: string;
|
|
3068
3075
|
selectedTools: string[] | null;
|
|
3069
3076
|
subAgentId: string;
|
|
3070
|
-
toolId: string;
|
|
3071
3077
|
} | undefined>;
|
|
3072
3078
|
declare const getAgentToolRelationByAgent: (db: DatabaseClient) => (params: {
|
|
3073
3079
|
scopes: SubAgentScopeConfig;
|
|
@@ -3197,7 +3203,7 @@ declare const getAgentsForTool: (db: DatabaseClient) => (params: {
|
|
|
3197
3203
|
name: string;
|
|
3198
3204
|
description: string;
|
|
3199
3205
|
prompt: string;
|
|
3200
|
-
conversationHistoryConfig: ConversationHistoryConfig;
|
|
3206
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
3201
3207
|
models: {
|
|
3202
3208
|
base?: {
|
|
3203
3209
|
model?: string | undefined;
|
|
@@ -3234,13 +3240,15 @@ declare const getSubAgentById: (db: DatabaseClient) => (params: {
|
|
|
3234
3240
|
scopes: AgentScopeConfig;
|
|
3235
3241
|
subAgentId: string;
|
|
3236
3242
|
}) => Promise<{
|
|
3237
|
-
|
|
3243
|
+
tenantId: string;
|
|
3244
|
+
projectId: string;
|
|
3238
3245
|
id: string;
|
|
3246
|
+
name: string;
|
|
3239
3247
|
description: string;
|
|
3248
|
+
prompt: string;
|
|
3249
|
+
agentId: string;
|
|
3240
3250
|
createdAt: string;
|
|
3241
3251
|
updatedAt: string;
|
|
3242
|
-
projectId: string;
|
|
3243
|
-
tenantId: string;
|
|
3244
3252
|
models: {
|
|
3245
3253
|
base?: {
|
|
3246
3254
|
model?: string | undefined;
|
|
@@ -3258,20 +3266,20 @@ declare const getSubAgentById: (db: DatabaseClient) => (params: {
|
|
|
3258
3266
|
stopWhen: {
|
|
3259
3267
|
stepCountIs?: number | undefined;
|
|
3260
3268
|
} | null;
|
|
3261
|
-
|
|
3262
|
-
prompt: string;
|
|
3263
|
-
conversationHistoryConfig: ConversationHistoryConfig;
|
|
3269
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
3264
3270
|
} | undefined>;
|
|
3265
3271
|
declare const listSubAgents: (db: DatabaseClient) => (params: {
|
|
3266
3272
|
scopes: AgentScopeConfig;
|
|
3267
3273
|
}) => Promise<{
|
|
3268
|
-
|
|
3274
|
+
tenantId: string;
|
|
3275
|
+
projectId: string;
|
|
3269
3276
|
id: string;
|
|
3277
|
+
name: string;
|
|
3270
3278
|
description: string;
|
|
3279
|
+
prompt: string;
|
|
3280
|
+
agentId: string;
|
|
3271
3281
|
createdAt: string;
|
|
3272
3282
|
updatedAt: string;
|
|
3273
|
-
projectId: string;
|
|
3274
|
-
tenantId: string;
|
|
3275
3283
|
models: {
|
|
3276
3284
|
base?: {
|
|
3277
3285
|
model?: string | undefined;
|
|
@@ -3289,9 +3297,7 @@ declare const listSubAgents: (db: DatabaseClient) => (params: {
|
|
|
3289
3297
|
stopWhen: {
|
|
3290
3298
|
stepCountIs?: number | undefined;
|
|
3291
3299
|
} | null;
|
|
3292
|
-
|
|
3293
|
-
prompt: string;
|
|
3294
|
-
conversationHistoryConfig: ConversationHistoryConfig;
|
|
3300
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
3295
3301
|
}[]>;
|
|
3296
3302
|
declare const listSubAgentsPaginated: (db: DatabaseClient) => (params: {
|
|
3297
3303
|
scopes: AgentScopeConfig;
|
|
@@ -3301,7 +3307,7 @@ declare const listSubAgentsPaginated: (db: DatabaseClient) => (params: {
|
|
|
3301
3307
|
createdAt: string;
|
|
3302
3308
|
updatedAt: string;
|
|
3303
3309
|
prompt: string;
|
|
3304
|
-
conversationHistoryConfig: ConversationHistoryConfig;
|
|
3310
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
3305
3311
|
models: {
|
|
3306
3312
|
base?: {
|
|
3307
3313
|
model?: string | undefined;
|
|
@@ -3334,13 +3340,15 @@ declare const listSubAgentsPaginated: (db: DatabaseClient) => (params: {
|
|
|
3334
3340
|
};
|
|
3335
3341
|
}>;
|
|
3336
3342
|
declare const createSubAgent: (db: DatabaseClient) => (params: SubAgentInsert) => Promise<{
|
|
3337
|
-
|
|
3343
|
+
tenantId: string;
|
|
3344
|
+
projectId: string;
|
|
3338
3345
|
id: string;
|
|
3346
|
+
name: string;
|
|
3339
3347
|
description: string;
|
|
3348
|
+
prompt: string;
|
|
3349
|
+
agentId: string;
|
|
3340
3350
|
createdAt: string;
|
|
3341
3351
|
updatedAt: string;
|
|
3342
|
-
projectId: string;
|
|
3343
|
-
tenantId: string;
|
|
3344
3352
|
models: {
|
|
3345
3353
|
base?: {
|
|
3346
3354
|
model?: string | undefined;
|
|
@@ -3358,9 +3366,7 @@ declare const createSubAgent: (db: DatabaseClient) => (params: SubAgentInsert) =
|
|
|
3358
3366
|
stopWhen: {
|
|
3359
3367
|
stepCountIs?: number | undefined;
|
|
3360
3368
|
} | null;
|
|
3361
|
-
|
|
3362
|
-
prompt: string;
|
|
3363
|
-
conversationHistoryConfig: ConversationHistoryConfig;
|
|
3369
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
3364
3370
|
}>;
|
|
3365
3371
|
declare const updateSubAgent: (db: DatabaseClient) => (params: {
|
|
3366
3372
|
scopes: AgentScopeConfig;
|
|
@@ -3370,7 +3376,7 @@ declare const updateSubAgent: (db: DatabaseClient) => (params: {
|
|
|
3370
3376
|
createdAt: string;
|
|
3371
3377
|
updatedAt: string;
|
|
3372
3378
|
prompt: string;
|
|
3373
|
-
conversationHistoryConfig: ConversationHistoryConfig;
|
|
3379
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
3374
3380
|
models: {
|
|
3375
3381
|
base?: {
|
|
3376
3382
|
model?: string | undefined;
|
|
@@ -3412,7 +3418,7 @@ declare const getSubAgentsByIds: (db: DatabaseClient) => (params: {
|
|
|
3412
3418
|
createdAt: string;
|
|
3413
3419
|
updatedAt: string;
|
|
3414
3420
|
prompt: string;
|
|
3415
|
-
conversationHistoryConfig: ConversationHistoryConfig;
|
|
3421
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
3416
3422
|
models: {
|
|
3417
3423
|
base?: {
|
|
3418
3424
|
model?: string | undefined;
|
|
@@ -3442,13 +3448,13 @@ declare const getSubAgentTeamAgentRelationById: (db: DatabaseClient) => (params:
|
|
|
3442
3448
|
scopes: SubAgentScopeConfig;
|
|
3443
3449
|
relationId: string;
|
|
3444
3450
|
}) => Promise<{
|
|
3445
|
-
|
|
3451
|
+
tenantId: string;
|
|
3452
|
+
projectId: string;
|
|
3446
3453
|
id: string;
|
|
3454
|
+
agentId: string;
|
|
3447
3455
|
createdAt: string;
|
|
3448
3456
|
updatedAt: string;
|
|
3449
|
-
|
|
3450
|
-
tenantId: string;
|
|
3451
|
-
agentId: string;
|
|
3457
|
+
headers: Record<string, string> | null;
|
|
3452
3458
|
subAgentId: string;
|
|
3453
3459
|
targetAgentId: string;
|
|
3454
3460
|
} | undefined>;
|
|
@@ -3477,26 +3483,26 @@ declare const listSubAgentTeamAgentRelations: (db: DatabaseClient) => (params: {
|
|
|
3477
3483
|
declare const getSubAgentTeamAgentRelations: (db: DatabaseClient) => (params: {
|
|
3478
3484
|
scopes: SubAgentScopeConfig;
|
|
3479
3485
|
}) => Promise<{
|
|
3480
|
-
|
|
3486
|
+
tenantId: string;
|
|
3487
|
+
projectId: string;
|
|
3481
3488
|
id: string;
|
|
3489
|
+
agentId: string;
|
|
3482
3490
|
createdAt: string;
|
|
3483
3491
|
updatedAt: string;
|
|
3484
|
-
|
|
3485
|
-
tenantId: string;
|
|
3486
|
-
agentId: string;
|
|
3492
|
+
headers: Record<string, string> | null;
|
|
3487
3493
|
subAgentId: string;
|
|
3488
3494
|
targetAgentId: string;
|
|
3489
3495
|
}[]>;
|
|
3490
3496
|
declare const getSubAgentTeamAgentRelationsByAgent: (db: DatabaseClient) => (params: {
|
|
3491
3497
|
scopes: AgentScopeConfig;
|
|
3492
3498
|
}) => Promise<{
|
|
3493
|
-
|
|
3499
|
+
tenantId: string;
|
|
3500
|
+
projectId: string;
|
|
3494
3501
|
id: string;
|
|
3502
|
+
agentId: string;
|
|
3495
3503
|
createdAt: string;
|
|
3496
3504
|
updatedAt: string;
|
|
3497
|
-
|
|
3498
|
-
tenantId: string;
|
|
3499
|
-
agentId: string;
|
|
3505
|
+
headers: Record<string, string> | null;
|
|
3500
3506
|
subAgentId: string;
|
|
3501
3507
|
targetAgentId: string;
|
|
3502
3508
|
}[]>;
|
|
@@ -3606,7 +3612,7 @@ declare const getSubAgentsForTeamAgent: (db: DatabaseClient) => (params: {
|
|
|
3606
3612
|
name: string;
|
|
3607
3613
|
description: string;
|
|
3608
3614
|
prompt: string;
|
|
3609
|
-
conversationHistoryConfig: ConversationHistoryConfig;
|
|
3615
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
3610
3616
|
models: {
|
|
3611
3617
|
base?: {
|
|
3612
3618
|
model?: string | undefined;
|
|
@@ -3643,13 +3649,13 @@ declare const createSubAgentTeamAgentRelation: (db: DatabaseClient) => (params:
|
|
|
3643
3649
|
headers?: Record<string, string> | null;
|
|
3644
3650
|
};
|
|
3645
3651
|
}) => Promise<{
|
|
3646
|
-
|
|
3652
|
+
tenantId: string;
|
|
3653
|
+
projectId: string;
|
|
3647
3654
|
id: string;
|
|
3655
|
+
agentId: string;
|
|
3648
3656
|
createdAt: string;
|
|
3649
3657
|
updatedAt: string;
|
|
3650
|
-
|
|
3651
|
-
tenantId: string;
|
|
3652
|
-
agentId: string;
|
|
3658
|
+
headers: Record<string, string> | null;
|
|
3653
3659
|
subAgentId: string;
|
|
3654
3660
|
targetAgentId: string;
|
|
3655
3661
|
}>;
|
|
@@ -3660,13 +3666,13 @@ declare const getSubAgentTeamAgentRelationByParams: (db: DatabaseClient) => (par
|
|
|
3660
3666
|
scopes: SubAgentScopeConfig;
|
|
3661
3667
|
targetAgentId: string;
|
|
3662
3668
|
}) => Promise<{
|
|
3663
|
-
|
|
3669
|
+
tenantId: string;
|
|
3670
|
+
projectId: string;
|
|
3664
3671
|
id: string;
|
|
3672
|
+
agentId: string;
|
|
3665
3673
|
createdAt: string;
|
|
3666
3674
|
updatedAt: string;
|
|
3667
|
-
|
|
3668
|
-
tenantId: string;
|
|
3669
|
-
agentId: string;
|
|
3675
|
+
headers: Record<string, string> | null;
|
|
3670
3676
|
subAgentId: string;
|
|
3671
3677
|
targetAgentId: string;
|
|
3672
3678
|
} | undefined>;
|
|
@@ -3681,13 +3687,13 @@ declare const upsertSubAgentTeamAgentRelation: (db: DatabaseClient) => (params:
|
|
|
3681
3687
|
headers?: Record<string, string> | null;
|
|
3682
3688
|
};
|
|
3683
3689
|
}) => Promise<{
|
|
3684
|
-
|
|
3690
|
+
tenantId: string;
|
|
3691
|
+
projectId: string;
|
|
3685
3692
|
id: string;
|
|
3693
|
+
agentId: string;
|
|
3686
3694
|
createdAt: string;
|
|
3687
3695
|
updatedAt: string;
|
|
3688
|
-
|
|
3689
|
-
tenantId: string;
|
|
3690
|
-
agentId: string;
|
|
3696
|
+
headers: Record<string, string> | null;
|
|
3691
3697
|
subAgentId: string;
|
|
3692
3698
|
targetAgentId: string;
|
|
3693
3699
|
}>;
|
|
@@ -3718,12 +3724,12 @@ declare const deleteSubAgentTeamAgentRelationsByAgent: (db: DatabaseClient) => (
|
|
|
3718
3724
|
}) => Promise<boolean>;
|
|
3719
3725
|
|
|
3720
3726
|
declare const createTask: (db: DatabaseClient) => (params: TaskInsert) => Promise<{
|
|
3727
|
+
tenantId: string;
|
|
3728
|
+
projectId: string;
|
|
3721
3729
|
id: string;
|
|
3730
|
+
agentId: string;
|
|
3722
3731
|
createdAt: string;
|
|
3723
3732
|
updatedAt: string;
|
|
3724
|
-
projectId: string;
|
|
3725
|
-
tenantId: string;
|
|
3726
|
-
agentId: string;
|
|
3727
3733
|
status: string;
|
|
3728
3734
|
metadata: TaskMetadataConfig | null;
|
|
3729
3735
|
contextId: string;
|
|
@@ -3754,25 +3760,25 @@ declare const listTaskIdsByContextId: (db: DatabaseClient) => (params: {
|
|
|
3754
3760
|
contextId: string;
|
|
3755
3761
|
}) => Promise<string[]>;
|
|
3756
3762
|
|
|
3757
|
-
declare const dbResultToMcpTool: (dbResult: ToolSelect, dbClient: DatabaseClient, credentialStoreRegistry?: CredentialStoreRegistry) => Promise<McpTool>;
|
|
3763
|
+
declare const dbResultToMcpTool: (dbResult: ToolSelect, dbClient: DatabaseClient, credentialStoreRegistry?: CredentialStoreRegistry, relationshipId?: string) => Promise<McpTool>;
|
|
3758
3764
|
declare const getToolById: (db: DatabaseClient) => (params: {
|
|
3759
3765
|
scopes: ProjectScopeConfig;
|
|
3760
3766
|
toolId: string;
|
|
3761
3767
|
}) => Promise<{
|
|
3768
|
+
tenantId: string;
|
|
3769
|
+
projectId: string;
|
|
3770
|
+
id: string;
|
|
3762
3771
|
name: string;
|
|
3763
|
-
|
|
3772
|
+
description: string | null;
|
|
3764
3773
|
config: {
|
|
3765
3774
|
type: "mcp";
|
|
3766
3775
|
mcp: ToolMcpConfig;
|
|
3767
3776
|
};
|
|
3768
|
-
|
|
3769
|
-
description: string | null;
|
|
3777
|
+
credentialReferenceId: string | null;
|
|
3770
3778
|
createdAt: string;
|
|
3771
3779
|
updatedAt: string;
|
|
3772
|
-
|
|
3773
|
-
tenantId: string;
|
|
3780
|
+
headers: Record<string, string> | null;
|
|
3774
3781
|
capabilities: ToolServerCapabilities | null;
|
|
3775
|
-
credentialReferenceId: string | null;
|
|
3776
3782
|
imageUrl: string | null;
|
|
3777
3783
|
lastError: string | null;
|
|
3778
3784
|
} | null>;
|
|
@@ -3806,20 +3812,20 @@ declare const listTools: (db: DatabaseClient) => (params: {
|
|
|
3806
3812
|
};
|
|
3807
3813
|
}>;
|
|
3808
3814
|
declare const createTool: (db: DatabaseClient) => (params: ToolInsert) => Promise<{
|
|
3815
|
+
tenantId: string;
|
|
3816
|
+
projectId: string;
|
|
3817
|
+
id: string;
|
|
3809
3818
|
name: string;
|
|
3810
|
-
|
|
3819
|
+
description: string | null;
|
|
3811
3820
|
config: {
|
|
3812
3821
|
type: "mcp";
|
|
3813
3822
|
mcp: ToolMcpConfig;
|
|
3814
3823
|
};
|
|
3815
|
-
|
|
3816
|
-
description: string | null;
|
|
3824
|
+
credentialReferenceId: string | null;
|
|
3817
3825
|
createdAt: string;
|
|
3818
3826
|
updatedAt: string;
|
|
3819
|
-
|
|
3820
|
-
tenantId: string;
|
|
3827
|
+
headers: Record<string, string> | null;
|
|
3821
3828
|
capabilities: ToolServerCapabilities | null;
|
|
3822
|
-
credentialReferenceId: string | null;
|
|
3823
3829
|
imageUrl: string | null;
|
|
3824
3830
|
lastError: string | null;
|
|
3825
3831
|
}>;
|
|
@@ -3856,32 +3862,32 @@ declare const addToolToAgent: (db: DatabaseClient) => (params: {
|
|
|
3856
3862
|
selectedTools?: string[] | null;
|
|
3857
3863
|
headers?: Record<string, string> | null;
|
|
3858
3864
|
}) => Promise<{
|
|
3859
|
-
|
|
3865
|
+
tenantId: string;
|
|
3866
|
+
projectId: string;
|
|
3860
3867
|
id: string;
|
|
3868
|
+
agentId: string;
|
|
3861
3869
|
createdAt: string;
|
|
3862
3870
|
updatedAt: string;
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
agentId: string;
|
|
3871
|
+
headers: Record<string, string> | null;
|
|
3872
|
+
toolId: string;
|
|
3866
3873
|
selectedTools: string[] | null;
|
|
3867
3874
|
subAgentId: string;
|
|
3868
|
-
toolId: string;
|
|
3869
3875
|
}>;
|
|
3870
3876
|
declare const removeToolFromAgent: (db: DatabaseClient) => (params: {
|
|
3871
3877
|
scopes: AgentScopeConfig;
|
|
3872
3878
|
subAgentId: string;
|
|
3873
3879
|
toolId: string;
|
|
3874
3880
|
}) => Promise<{
|
|
3875
|
-
|
|
3881
|
+
tenantId: string;
|
|
3882
|
+
projectId: string;
|
|
3876
3883
|
id: string;
|
|
3884
|
+
agentId: string;
|
|
3877
3885
|
createdAt: string;
|
|
3878
3886
|
updatedAt: string;
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
agentId: string;
|
|
3887
|
+
headers: Record<string, string> | null;
|
|
3888
|
+
toolId: string;
|
|
3882
3889
|
selectedTools: string[] | null;
|
|
3883
3890
|
subAgentId: string;
|
|
3884
|
-
toolId: string;
|
|
3885
3891
|
}>;
|
|
3886
3892
|
/**
|
|
3887
3893
|
* Upsert agent-tool relation (create if it doesn't exist, update if it does)
|
|
@@ -3894,16 +3900,16 @@ declare const upsertSubAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
|
3894
3900
|
headers?: Record<string, string> | null;
|
|
3895
3901
|
relationId?: string;
|
|
3896
3902
|
}) => Promise<{
|
|
3897
|
-
|
|
3903
|
+
tenantId: string;
|
|
3904
|
+
projectId: string;
|
|
3898
3905
|
id: string;
|
|
3906
|
+
agentId: string;
|
|
3899
3907
|
createdAt: string;
|
|
3900
3908
|
updatedAt: string;
|
|
3901
|
-
|
|
3902
|
-
|
|
3903
|
-
agentId: string;
|
|
3909
|
+
headers: Record<string, string> | null;
|
|
3910
|
+
toolId: string;
|
|
3904
3911
|
selectedTools: string[] | null;
|
|
3905
3912
|
subAgentId: string;
|
|
3906
|
-
toolId: string;
|
|
3907
3913
|
}>;
|
|
3908
3914
|
/**
|
|
3909
3915
|
* Upsert a tool (create if it doesn't exist, update if it does)
|
|
@@ -3911,20 +3917,20 @@ declare const upsertSubAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
|
3911
3917
|
declare const upsertTool: (db: DatabaseClient) => (params: {
|
|
3912
3918
|
data: ToolInsert;
|
|
3913
3919
|
}) => Promise<{
|
|
3920
|
+
tenantId: string;
|
|
3921
|
+
projectId: string;
|
|
3922
|
+
id: string;
|
|
3914
3923
|
name: string;
|
|
3915
|
-
|
|
3924
|
+
description: string | null;
|
|
3916
3925
|
config: {
|
|
3917
3926
|
type: "mcp";
|
|
3918
3927
|
mcp: ToolMcpConfig;
|
|
3919
3928
|
};
|
|
3920
|
-
|
|
3921
|
-
description: string | null;
|
|
3929
|
+
credentialReferenceId: string | null;
|
|
3922
3930
|
createdAt: string;
|
|
3923
3931
|
updatedAt: string;
|
|
3924
|
-
|
|
3925
|
-
tenantId: string;
|
|
3932
|
+
headers: Record<string, string> | null;
|
|
3926
3933
|
capabilities: ToolServerCapabilities | null;
|
|
3927
|
-
credentialReferenceId: string | null;
|
|
3928
3934
|
imageUrl: string | null;
|
|
3929
3935
|
lastError: string | null;
|
|
3930
3936
|
}>;
|