@inkeep/agents-core 0.23.3 → 0.23.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client-exports.d.cts +6 -6
- package/dist/client-exports.d.ts +6 -6
- package/dist/db/schema.d.cts +2 -2
- package/dist/db/schema.d.ts +2 -2
- package/dist/index.d.cts +262 -262
- package/dist/index.d.ts +262 -262
- package/dist/{schema-PgBNwsV-.d.ts → schema-CxJkXzMM.d.ts} +1 -1
- package/dist/{schema-B8NMPwEM.d.cts → schema-DygzZEj3.d.cts} +1 -1
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/validation/index.d.cts +2 -2
- package/dist/validation/index.d.ts +2 -2
- package/package.json +1 -1
- package/dist/{utility-mGrlR4Ta.d.cts → utility-DVhMoRLZ.d.cts} +253 -253
- package/dist/{utility-mGrlR4Ta.d.ts → utility-DVhMoRLZ.d.ts} +253 -253
package/dist/index.d.cts
CHANGED
|
@@ -2,13 +2,13 @@ export { ANTHROPIC_MODELS, AnthropicModel, GOOGLE_MODELS, GoogleModel, ModelName
|
|
|
2
2
|
import { r as PinoLogger, s as getLogger } from './auth-detection-BO8bSpe4.cjs';
|
|
3
3
|
export { i as ACTIVITY_NAMES, g as ACTIVITY_STATUS, f as ACTIVITY_TYPES, h as AGENT_IDS, p as AGGREGATE_OPERATORS, A as AI_OPERATIONS, j as AI_TOOL_TYPES, o as DATA_SOURCES, k as DATA_TYPES, D as DELEGATION_FROM_SUB_AGENT_ID, b as DELEGATION_ID, a as DELEGATION_TO_SUB_AGENT_ID, F as FIELD_TYPES, L as LoggerFactoryConfig, M as McpOAuthFlowResult, u as McpTokenExchangeResult, t as OAuthConfig, O as OPERATORS, m as ORDER_DIRECTIONS, P as PANEL_TYPES, x as PinoLoggerConfig, q as QUERY_DEFAULTS, l as QUERY_EXPRESSIONS, Q as QUERY_FIELD_CONFIGS, n as QUERY_TYPES, R as REDUCE_OPERATIONS, e as SPAN_KEYS, S as SPAN_NAMES, T as TRANSFER_FROM_SUB_AGENT_ID, c as TRANSFER_TO_SUB_AGENT_ID, U as UNKNOWN_VALUE, d as detectAuthenticationRequired, w as exchangeMcpAuthorizationCode, v as initiateMcpOAuthFlow, y as loggerFactory } from './auth-detection-BO8bSpe4.cjs';
|
|
4
4
|
import { z } from 'zod';
|
|
5
|
-
import { r as CredentialReferenceApiInsert, s as ContextConfigSelect, l as ContextFetchDefinition, i as MCPTransportType, t as MCPToolConfig, u as AgentScopeConfig, C as ConversationHistoryConfig, v as ProjectScopeConfig, w as PaginationConfig, x as AgentInsert, y as AgentUpdate, z as FullAgentDefinition, 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 CredentialReferenceInsert, $ as CredentialReferenceUpdate, a0 as DataComponentSelect, a1 as DataComponentInsert, a2 as DataComponentUpdate, a3 as ExternalAgentInsert, a4 as ExternalAgentSelect, 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 SubAgentRelationInsert, am as ExternalSubAgentRelationInsert, an as SubAgentRelationUpdate, ao as SubAgentToolRelationUpdate, m as ToolMcpConfig, n as ToolServerCapabilities, ap as SubAgentInsert, aq as SubAgentUpdate, ar as SubAgentSelect, as as TaskInsert, T as TaskMetadataConfig, at as TaskSelect, au as McpTool, av as ToolInsert, aw as ToolUpdate, h as CredentialStoreType, ax as ExecutionContext } from './utility-
|
|
6
|
-
export { b9 as A2AError, bF as A2ARequest, bG as A2AResponse, aK as APIKeySecurityScheme, bT as AgentApiInsert, dW as AgentApiInsertSchema, bS as AgentApiSelect, dV as AgentApiSelectSchema, bU as AgentApiUpdate, dX as AgentApiUpdateSchema, aG as AgentCapabilities, aU as AgentCard, dk as AgentConversationHistoryConfig, dT as AgentInsertSchema, gh as AgentListResponse, aH as AgentProvider, g1 as AgentResponse, dS as AgentSelectSchema, aI as AgentSkill, e as AgentStopWhen, b as AgentStopWhenSchema, dU as AgentUpdateSchema, fN as AgentWithinContextOfProjectSchema, e_ as AllAgentSchema, cN as AllAgentSelect, cR as ApiKeyApiCreationResponse, f3 as ApiKeyApiCreationResponseSchema, cP as ApiKeyApiInsert, f4 as ApiKeyApiInsertSchema, cO as ApiKeyApiSelect, f2 as ApiKeyApiSelectSchema, cQ as ApiKeyApiUpdate, A as ApiKeyApiUpdateSchema, f0 as ApiKeyInsertSchema, gl as ApiKeyListResponse, g5 as ApiKeyResponse, e$ as ApiKeySelectSchema, f1 as ApiKeyUpdateSchema, cC as ArtifactComponentApiInsert, eM as ArtifactComponentApiInsertSchema, cB as ArtifactComponentApiSelect, eL as ArtifactComponentApiSelectSchema, cD as ArtifactComponentApiUpdate, eN as ArtifactComponentApiUpdateSchema, eJ as ArtifactComponentInsertSchema, gq as ArtifactComponentListResponse, ga as ArtifactComponentResponse, eI as ArtifactComponentSelectSchema, eK as ArtifactComponentUpdateSchema, aN as AuthorizationCodeOAuthFlow, d3 as CanUseItem, fM as CanUseItemSchema, bp as CancelTaskRequest, bA as CancelTaskResponse, bz as CancelTaskSuccessResponse, aO as ClientCredentialsOAuthFlow, b7 as ContentTypeNotSupportedError, cq as ContextCacheApiInsert, et as ContextCacheApiInsertSchema, cp as ContextCacheApiSelect, es as ContextCacheApiSelectSchema, cr as ContextCacheApiUpdate, eu as ContextCacheApiUpdateSchema, dl as ContextCacheEntry, eq as ContextCacheInsertSchema, ep as ContextCacheSelectSchema, co as ContextCacheUpdate, er as ContextCacheUpdateSchema, ck as ContextConfigApiInsert, fw as ContextConfigApiInsertSchema, cj as ContextConfigApiSelect, fv as ContextConfigApiSelectSchema, cl as ContextConfigApiUpdate, fx as ContextConfigApiUpdateSchema, ft as ContextConfigInsertSchema, gk as ContextConfigListResponse, g4 as ContextConfigResponse, fs as ContextConfigSelectSchema, fu as ContextConfigUpdateSchema, cd as ConversationApiInsert, eh as ConversationApiInsertSchema, cc as ConversationApiSelect, eg as ConversationApiSelectSchema, ce as ConversationApiUpdate, ei as ConversationApiUpdateSchema, ee as ConversationInsertSchema, gt as ConversationListResponse, gd as ConversationResponse, dj as ConversationScopeOptions, ed as ConversationSelectSchema, ef as ConversationUpdateSchema, f9 as CredentialReferenceApiInsertSchema, cS as CredentialReferenceApiSelect, f8 as CredentialReferenceApiSelectSchema, cT as CredentialReferenceApiUpdate, fa as CredentialReferenceApiUpdateSchema, f6 as CredentialReferenceInsertSchema, gm as CredentialReferenceListResponse, g6 as CredentialReferenceResponse, f5 as CredentialReferenceSelectSchema, f7 as CredentialReferenceUpdateSchema, ct as DataComponentApiInsert, eA as DataComponentApiInsertSchema, cs as DataComponentApiSelect, ez as DataComponentApiSelectSchema, cu as DataComponentApiUpdate, eB as DataComponentApiUpdateSchema, ex as DataComponentBaseSchema, ew as DataComponentInsertSchema, gp as DataComponentListResponse, g9 as DataComponentResponse, ev as DataComponentSelectSchema, ey as DataComponentUpdateSchema, aE as DataPart, fR as ErrorResponseSchema, fS as ExistsResponseSchema, eY as ExternalAgentApiInsertSchema, cK as ExternalAgentApiSelect, eX as ExternalAgentApiSelectSchema, cM as ExternalAgentApiUpdate, eZ as ExternalAgentApiUpdateSchema, eV as ExternalAgentInsertSchema, gj as ExternalAgentListResponse, g3 as ExternalAgentResponse, eU as ExternalAgentSelectSchema, eW as ExternalAgentUpdateSchema, cL as ExternalSubAgentApiInsert, bR as ExternalSubAgentRelationApiInsert, dR as ExternalSubAgentRelationApiInsertSchema, dQ as ExternalSubAgentRelationInsertSchema, cn as FetchConfig, fq as FetchConfigSchema, cm as FetchDefinition, fr as FetchDefinitionSchema, aA as FileBase, aD as FilePart, aB as FileWithBytes, aC as FileWithUri, d2 as FullAgentAgentInsert, a as FullAgentAgentInsertSchema, f_ as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, c9 as FunctionApiSelect, j as FunctionApiSelectSchema, ca as FunctionApiUpdate, k as FunctionApiUpdateSchema, c7 as FunctionInsert, fo as FunctionInsertSchema, gn as FunctionListResponse, g7 as FunctionResponse, c6 as FunctionSelect, fn as FunctionSelectSchema, fl as FunctionToolApiInsertSchema, cb as FunctionToolApiSelect, fk as FunctionToolApiSelectSchema, fm as FunctionToolApiUpdateSchema, dC as FunctionToolConfig, dB as FunctionToolConfigSchema, fi as FunctionToolInsertSchema, go as FunctionToolListResponse, g8 as FunctionToolResponse, fh as FunctionToolSelectSchema, fj as FunctionToolUpdateSchema, c8 as FunctionUpdate, fp as FunctionUpdateSchema, br as GetTaskPushNotificationConfigRequest, bE as GetTaskPushNotificationConfigResponse, bD as GetTaskPushNotificationConfigSuccessResponse, bo as GetTaskRequest, by as GetTaskResponse, bx as GetTaskSuccessResponse, aL as HTTPAuthSecurityScheme, gz as HeadersScopeSchema, aP as ImplicitOAuthFlow, b2 as InternalError, d4 as InternalSubAgentDefinition, b8 as InvalidAgentResponseError, b1 as InvalidParamsError, a$ as InvalidRequestError, a_ as JSONParseError, bj as JSONRPCError, bl as JSONRPCErrorResponse, bh as JSONRPCMessage, bi as JSONRPCRequest, bk as JSONRPCResult, d0 as LedgerArtifactApiInsert, fI as LedgerArtifactApiInsertSchema, c$ as LedgerArtifactApiSelect, fH as LedgerArtifactApiSelectSchema, d1 as LedgerArtifactApiUpdate, fJ as LedgerArtifactApiUpdateSchema, cZ as LedgerArtifactInsert, fF as LedgerArtifactInsertSchema, fE as LedgerArtifactSelectSchema, c_ as LedgerArtifactUpdate, fG as LedgerArtifactUpdateSchema, fP as ListResponseSchema, dw as MAX_ID_LENGTH, du as MCPServerType, fc as MCPToolConfigSchema, dv as MIN_ID_LENGTH, dm as McpAuthType, dn as McpServerAuth, dq as McpServerCapabilities, dr as McpToolDefinition, ea as McpToolDefinitionSchema, fb as McpToolSchema, dp as McpTransportConfig, e8 as McpTransportConfigSchema, aV as Message, ch as MessageApiInsert, en as MessageApiInsertSchema, cg as MessageApiSelect, em as MessageApiSelectSchema, ci as MessageApiUpdate, eo as MessageApiUpdateSchema, ek as MessageInsertSchema, gu as MessageListResponse, de as MessageMode, bH as MessagePart, ge as MessageResponse, dd as MessageRole, cf as MessageSelect, ej as MessageSelectSchema, bf as MessageSendConfiguration, bg as MessageSendParams, dc as MessageType, el as MessageUpdateSchema, b0 as MethodNotFoundError, dz as ModelSchema, g as ModelSettings, M as ModelSettingsSchema, df as Models, aR as OAuth2SecurityScheme, aM as OAuthFlows, aS as OpenIdConnectSecurityScheme, da as Pagination, gI as PaginationQueryParamsSchema, fO as PaginationSchema, P as Part, ay as PartBase, aQ as PasswordOAuthFlow, d8 as ProjectApiInsert, fY as ProjectApiInsertSchema, d7 as ProjectApiSelect, fX as ProjectApiSelectSchema, d9 as ProjectApiUpdate, fZ as ProjectApiUpdateSchema, fV as ProjectInsertSchema, gf as ProjectListResponse, dA as ProjectModelSchema, dg as ProjectModels, f$ as ProjectResponse, fU as ProjectSelectSchema, fW as ProjectUpdateSchema, ba as PushNotificationAuthenticationInfo, bb as PushNotificationConfig, b5 as PushNotificationNotSupportedError, fT as RemovedResponseSchema, aT as SecurityScheme, aJ as SecuritySchemeBase, bm as SendMessageRequest, bu as SendMessageResponse, bt as SendMessageSuccessResponse, bn as SendStreamingMessageRequest, bw as SendStreamingMessageResponse, bv as SendStreamingMessageSuccessResponse, bq as SetTaskPushNotificationConfigRequest, bC as SetTaskPushNotificationConfigResponse, bB as SetTaskPushNotificationConfigSuccessResponse, fQ as SingleResponseSchema, di as StatusComponent, fK as StatusComponentSchema, fL as StatusUpdateSchema, dh as StatusUpdateSettings, d as StopWhen, S as StopWhenSchema, bK as SubAgentApiInsert, dH as SubAgentApiInsertSchema, bJ as SubAgentApiSelect, dG as SubAgentApiSelectSchema, bL as SubAgentApiUpdate, dI as SubAgentApiUpdateSchema, cI as SubAgentArtifactComponentApiInsert, eS as SubAgentArtifactComponentApiInsertSchema, cH as SubAgentArtifactComponentApiSelect, eR as SubAgentArtifactComponentApiSelectSchema, cJ as SubAgentArtifactComponentApiUpdate, eT as SubAgentArtifactComponentApiUpdateSchema, cF as SubAgentArtifactComponentInsert, eP as SubAgentArtifactComponentInsertSchema, gy as SubAgentArtifactComponentListResponse, gw as SubAgentArtifactComponentResponse, cE as SubAgentArtifactComponentSelect, eO as SubAgentArtifactComponentSelectSchema, cG as SubAgentArtifactComponentUpdate, eQ as SubAgentArtifactComponentUpdateSchema, cz as SubAgentDataComponentApiInsert, eG as SubAgentDataComponentApiInsertSchema, cy as SubAgentDataComponentApiSelect, eF as SubAgentDataComponentApiSelectSchema, cA as SubAgentDataComponentApiUpdate, eH as SubAgentDataComponentApiUpdateSchema, cw as SubAgentDataComponentInsert, eD as SubAgentDataComponentInsertSchema, gx as SubAgentDataComponentListResponse, gv as SubAgentDataComponentResponse, cv as SubAgentDataComponentSelect, eC as SubAgentDataComponentSelectSchema, cx as SubAgentDataComponentUpdate, eE as SubAgentDataComponentUpdateSchema, d5 as SubAgentDefinition, dE as SubAgentInsertSchema, gg as SubAgentListResponse, bO as SubAgentRelationApiInsert, dN as SubAgentRelationApiInsertSchema, bN as SubAgentRelationApiSelect, dM as SubAgentRelationApiSelectSchema, bP as SubAgentRelationApiUpdate, dO as SubAgentRelationApiUpdateSchema, dK as SubAgentRelationInsertSchema, gr as SubAgentRelationListResponse, bQ as SubAgentRelationQuery, dP as SubAgentRelationQuerySchema, gb as SubAgentRelationResponse, bM as SubAgentRelationSelect, dJ as SubAgentRelationSelectSchema, dL as SubAgentRelationUpdateSchema, g0 as SubAgentResponse, dD as SubAgentSelectSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema, cX as SubAgentToolRelationApiInsert, fC as SubAgentToolRelationApiInsertSchema, cW as SubAgentToolRelationApiSelect, fB as SubAgentToolRelationApiSelectSchema, cY as SubAgentToolRelationApiUpdate, fD as SubAgentToolRelationApiUpdateSchema, cV as SubAgentToolRelationInsert, fz as SubAgentToolRelationInsertSchema, gs as SubAgentToolRelationListResponse, gc as SubAgentToolRelationResponse, cU as SubAgentToolRelationSelect, fy as SubAgentToolRelationSelectSchema, fA as SubAgentToolRelationUpdateSchema, dF as SubAgentUpdateSchema, db as SummaryEvent, ds as TOOL_STATUS_VALUES, aX as Task, bX as TaskApiInsert, e0 as TaskApiInsertSchema, bW as TaskApiSelect, d$ as TaskApiSelectSchema, bY as TaskApiUpdate, e1 as TaskApiUpdateSchema, bI as TaskArtifact, aZ as TaskArtifactUpdateEvent, bd as TaskIdParams, dZ as TaskInsertSchema, b4 as TaskNotCancelableError, b3 as TaskNotFoundError, bc as TaskPushNotificationConfig, be as TaskQueryParams, c1 as TaskRelationApiInsert, e6 as TaskRelationApiInsertSchema, c0 as TaskRelationApiSelect, e5 as TaskRelationApiSelectSchema, c2 as TaskRelationApiUpdate, e7 as TaskRelationApiUpdateSchema, b_ as TaskRelationInsert, e3 as TaskRelationInsertSchema, bZ as TaskRelationSelect, e2 as TaskRelationSelectSchema, b$ as TaskRelationUpdate, e4 as TaskRelationUpdateSchema, bs as TaskResubscriptionRequest, dY as TaskSelectSchema, aF as TaskState, aW as TaskStatus, aY as TaskStatusUpdateEvent, bV as TaskUpdate, d_ as TaskUpdateSchema, gB as TenantIdParamsSchema, gA as TenantParamsSchema, gF as TenantProjectAgentIdParamsSchema, gE as TenantProjectAgentParamsSchema, gH as TenantProjectAgentSubAgentIdParamsSchema, gG as TenantProjectAgentSubAgentParamsSchema, gD as TenantProjectIdParamsSchema, gC as TenantProjectParamsSchema, az as TextPart, c4 as ToolApiInsert, ff as ToolApiInsertSchema, c3 as ToolApiSelect, fe as ToolApiSelectSchema, c5 as ToolApiUpdate, fg as ToolApiUpdateSchema, d6 as ToolDefinition, ec as ToolInsertSchema, gi as ToolListResponse, g2 as ToolResponse, eb as ToolSelectSchema, e9 as ToolStatusSchema, fd as ToolUpdateSchema, dx as URL_SAFE_ID_PATTERN, b6 as UnsupportedOperationError, dt as VALID_RELATION_TYPES, dy as resourceIdSchema } from './utility-mGrlR4Ta.cjs';
|
|
5
|
+
import { r as CredentialReferenceApiInsert, s as ContextConfigSelect, l as ContextFetchDefinition, i as MCPTransportType, t as MCPToolConfig, u as AgentScopeConfig, C as ConversationHistoryConfig, v as ProjectScopeConfig, w as PaginationConfig, x as AgentInsert, y as AgentUpdate, z as FullAgentDefinition, 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 CredentialReferenceInsert, $ as CredentialReferenceUpdate, a0 as DataComponentSelect, a1 as DataComponentInsert, a2 as DataComponentUpdate, a3 as ExternalAgentInsert, a4 as ExternalAgentSelect, 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 SubAgentRelationInsert, am as ExternalSubAgentRelationInsert, an as SubAgentRelationUpdate, ao as SubAgentToolRelationUpdate, m as ToolMcpConfig, n as ToolServerCapabilities, ap as SubAgentInsert, aq as SubAgentUpdate, ar as SubAgentSelect, as as TaskInsert, T as TaskMetadataConfig, at as TaskSelect, au as McpTool, av as ToolInsert, aw as ToolUpdate, h as CredentialStoreType, ax as ExecutionContext } from './utility-DVhMoRLZ.cjs';
|
|
6
|
+
export { b9 as A2AError, bF as A2ARequest, bG as A2AResponse, aK as APIKeySecurityScheme, bT as AgentApiInsert, dW as AgentApiInsertSchema, bS as AgentApiSelect, dV as AgentApiSelectSchema, bU as AgentApiUpdate, dX as AgentApiUpdateSchema, aG as AgentCapabilities, aU as AgentCard, dk as AgentConversationHistoryConfig, dT as AgentInsertSchema, gh as AgentListResponse, aH as AgentProvider, g1 as AgentResponse, dS as AgentSelectSchema, aI as AgentSkill, e as AgentStopWhen, b as AgentStopWhenSchema, dU as AgentUpdateSchema, fN as AgentWithinContextOfProjectSchema, e_ as AllAgentSchema, cN as AllAgentSelect, cR as ApiKeyApiCreationResponse, f3 as ApiKeyApiCreationResponseSchema, cP as ApiKeyApiInsert, f4 as ApiKeyApiInsertSchema, cO as ApiKeyApiSelect, f2 as ApiKeyApiSelectSchema, cQ as ApiKeyApiUpdate, A as ApiKeyApiUpdateSchema, f0 as ApiKeyInsertSchema, gl as ApiKeyListResponse, g5 as ApiKeyResponse, e$ as ApiKeySelectSchema, f1 as ApiKeyUpdateSchema, cC as ArtifactComponentApiInsert, eM as ArtifactComponentApiInsertSchema, cB as ArtifactComponentApiSelect, eL as ArtifactComponentApiSelectSchema, cD as ArtifactComponentApiUpdate, eN as ArtifactComponentApiUpdateSchema, eJ as ArtifactComponentInsertSchema, gq as ArtifactComponentListResponse, ga as ArtifactComponentResponse, eI as ArtifactComponentSelectSchema, eK as ArtifactComponentUpdateSchema, aN as AuthorizationCodeOAuthFlow, d3 as CanUseItem, fM as CanUseItemSchema, bp as CancelTaskRequest, bA as CancelTaskResponse, bz as CancelTaskSuccessResponse, aO as ClientCredentialsOAuthFlow, b7 as ContentTypeNotSupportedError, cq as ContextCacheApiInsert, et as ContextCacheApiInsertSchema, cp as ContextCacheApiSelect, es as ContextCacheApiSelectSchema, cr as ContextCacheApiUpdate, eu as ContextCacheApiUpdateSchema, dl as ContextCacheEntry, eq as ContextCacheInsertSchema, ep as ContextCacheSelectSchema, co as ContextCacheUpdate, er as ContextCacheUpdateSchema, ck as ContextConfigApiInsert, fw as ContextConfigApiInsertSchema, cj as ContextConfigApiSelect, fv as ContextConfigApiSelectSchema, cl as ContextConfigApiUpdate, fx as ContextConfigApiUpdateSchema, ft as ContextConfigInsertSchema, gk as ContextConfigListResponse, g4 as ContextConfigResponse, fs as ContextConfigSelectSchema, fu as ContextConfigUpdateSchema, cd as ConversationApiInsert, eh as ConversationApiInsertSchema, cc as ConversationApiSelect, eg as ConversationApiSelectSchema, ce as ConversationApiUpdate, ei as ConversationApiUpdateSchema, ee as ConversationInsertSchema, gt as ConversationListResponse, gd as ConversationResponse, dj as ConversationScopeOptions, ed as ConversationSelectSchema, ef as ConversationUpdateSchema, f9 as CredentialReferenceApiInsertSchema, cS as CredentialReferenceApiSelect, f8 as CredentialReferenceApiSelectSchema, cT as CredentialReferenceApiUpdate, fa as CredentialReferenceApiUpdateSchema, f6 as CredentialReferenceInsertSchema, gm as CredentialReferenceListResponse, g6 as CredentialReferenceResponse, f5 as CredentialReferenceSelectSchema, f7 as CredentialReferenceUpdateSchema, ct as DataComponentApiInsert, eA as DataComponentApiInsertSchema, cs as DataComponentApiSelect, ez as DataComponentApiSelectSchema, cu as DataComponentApiUpdate, eB as DataComponentApiUpdateSchema, ex as DataComponentBaseSchema, ew as DataComponentInsertSchema, gp as DataComponentListResponse, g9 as DataComponentResponse, ev as DataComponentSelectSchema, ey as DataComponentUpdateSchema, aE as DataPart, fR as ErrorResponseSchema, fS as ExistsResponseSchema, eY as ExternalAgentApiInsertSchema, cK as ExternalAgentApiSelect, eX as ExternalAgentApiSelectSchema, cM as ExternalAgentApiUpdate, eZ as ExternalAgentApiUpdateSchema, eV as ExternalAgentInsertSchema, gj as ExternalAgentListResponse, g3 as ExternalAgentResponse, eU as ExternalAgentSelectSchema, eW as ExternalAgentUpdateSchema, cL as ExternalSubAgentApiInsert, bR as ExternalSubAgentRelationApiInsert, dR as ExternalSubAgentRelationApiInsertSchema, dQ as ExternalSubAgentRelationInsertSchema, cn as FetchConfig, fq as FetchConfigSchema, cm as FetchDefinition, fr as FetchDefinitionSchema, aA as FileBase, aD as FilePart, aB as FileWithBytes, aC as FileWithUri, d2 as FullAgentAgentInsert, a as FullAgentAgentInsertSchema, f_ as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, c9 as FunctionApiSelect, j as FunctionApiSelectSchema, ca as FunctionApiUpdate, k as FunctionApiUpdateSchema, c7 as FunctionInsert, fo as FunctionInsertSchema, gn as FunctionListResponse, g7 as FunctionResponse, c6 as FunctionSelect, fn as FunctionSelectSchema, fl as FunctionToolApiInsertSchema, cb as FunctionToolApiSelect, fk as FunctionToolApiSelectSchema, fm as FunctionToolApiUpdateSchema, dC as FunctionToolConfig, dB as FunctionToolConfigSchema, fi as FunctionToolInsertSchema, go as FunctionToolListResponse, g8 as FunctionToolResponse, fh as FunctionToolSelectSchema, fj as FunctionToolUpdateSchema, c8 as FunctionUpdate, fp as FunctionUpdateSchema, br as GetTaskPushNotificationConfigRequest, bE as GetTaskPushNotificationConfigResponse, bD as GetTaskPushNotificationConfigSuccessResponse, bo as GetTaskRequest, by as GetTaskResponse, bx as GetTaskSuccessResponse, aL as HTTPAuthSecurityScheme, gz as HeadersScopeSchema, aP as ImplicitOAuthFlow, b2 as InternalError, d4 as InternalSubAgentDefinition, b8 as InvalidAgentResponseError, b1 as InvalidParamsError, a$ as InvalidRequestError, a_ as JSONParseError, bj as JSONRPCError, bl as JSONRPCErrorResponse, bh as JSONRPCMessage, bi as JSONRPCRequest, bk as JSONRPCResult, d0 as LedgerArtifactApiInsert, fI as LedgerArtifactApiInsertSchema, c$ as LedgerArtifactApiSelect, fH as LedgerArtifactApiSelectSchema, d1 as LedgerArtifactApiUpdate, fJ as LedgerArtifactApiUpdateSchema, cZ as LedgerArtifactInsert, fF as LedgerArtifactInsertSchema, fE as LedgerArtifactSelectSchema, c_ as LedgerArtifactUpdate, fG as LedgerArtifactUpdateSchema, fP as ListResponseSchema, dw as MAX_ID_LENGTH, du as MCPServerType, fc as MCPToolConfigSchema, dv as MIN_ID_LENGTH, dm as McpAuthType, dn as McpServerAuth, dq as McpServerCapabilities, dr as McpToolDefinition, ea as McpToolDefinitionSchema, fb as McpToolSchema, dp as McpTransportConfig, e8 as McpTransportConfigSchema, aV as Message, ch as MessageApiInsert, en as MessageApiInsertSchema, cg as MessageApiSelect, em as MessageApiSelectSchema, ci as MessageApiUpdate, eo as MessageApiUpdateSchema, ek as MessageInsertSchema, gu as MessageListResponse, de as MessageMode, bH as MessagePart, ge as MessageResponse, dd as MessageRole, cf as MessageSelect, ej as MessageSelectSchema, bf as MessageSendConfiguration, bg as MessageSendParams, dc as MessageType, el as MessageUpdateSchema, b0 as MethodNotFoundError, dz as ModelSchema, g as ModelSettings, M as ModelSettingsSchema, df as Models, aR as OAuth2SecurityScheme, aM as OAuthFlows, aS as OpenIdConnectSecurityScheme, da as Pagination, gI as PaginationQueryParamsSchema, fO as PaginationSchema, P as Part, ay as PartBase, aQ as PasswordOAuthFlow, d8 as ProjectApiInsert, fY as ProjectApiInsertSchema, d7 as ProjectApiSelect, fX as ProjectApiSelectSchema, d9 as ProjectApiUpdate, fZ as ProjectApiUpdateSchema, fV as ProjectInsertSchema, gf as ProjectListResponse, dA as ProjectModelSchema, dg as ProjectModels, f$ as ProjectResponse, fU as ProjectSelectSchema, fW as ProjectUpdateSchema, ba as PushNotificationAuthenticationInfo, bb as PushNotificationConfig, b5 as PushNotificationNotSupportedError, fT as RemovedResponseSchema, aT as SecurityScheme, aJ as SecuritySchemeBase, bm as SendMessageRequest, bu as SendMessageResponse, bt as SendMessageSuccessResponse, bn as SendStreamingMessageRequest, bw as SendStreamingMessageResponse, bv as SendStreamingMessageSuccessResponse, bq as SetTaskPushNotificationConfigRequest, bC as SetTaskPushNotificationConfigResponse, bB as SetTaskPushNotificationConfigSuccessResponse, fQ as SingleResponseSchema, di as StatusComponent, fK as StatusComponentSchema, fL as StatusUpdateSchema, dh as StatusUpdateSettings, d as StopWhen, S as StopWhenSchema, bK as SubAgentApiInsert, dH as SubAgentApiInsertSchema, bJ as SubAgentApiSelect, dG as SubAgentApiSelectSchema, bL as SubAgentApiUpdate, dI as SubAgentApiUpdateSchema, cI as SubAgentArtifactComponentApiInsert, eS as SubAgentArtifactComponentApiInsertSchema, cH as SubAgentArtifactComponentApiSelect, eR as SubAgentArtifactComponentApiSelectSchema, cJ as SubAgentArtifactComponentApiUpdate, eT as SubAgentArtifactComponentApiUpdateSchema, cF as SubAgentArtifactComponentInsert, eP as SubAgentArtifactComponentInsertSchema, gy as SubAgentArtifactComponentListResponse, gw as SubAgentArtifactComponentResponse, cE as SubAgentArtifactComponentSelect, eO as SubAgentArtifactComponentSelectSchema, cG as SubAgentArtifactComponentUpdate, eQ as SubAgentArtifactComponentUpdateSchema, cz as SubAgentDataComponentApiInsert, eG as SubAgentDataComponentApiInsertSchema, cy as SubAgentDataComponentApiSelect, eF as SubAgentDataComponentApiSelectSchema, cA as SubAgentDataComponentApiUpdate, eH as SubAgentDataComponentApiUpdateSchema, cw as SubAgentDataComponentInsert, eD as SubAgentDataComponentInsertSchema, gx as SubAgentDataComponentListResponse, gv as SubAgentDataComponentResponse, cv as SubAgentDataComponentSelect, eC as SubAgentDataComponentSelectSchema, cx as SubAgentDataComponentUpdate, eE as SubAgentDataComponentUpdateSchema, d5 as SubAgentDefinition, dE as SubAgentInsertSchema, gg as SubAgentListResponse, bO as SubAgentRelationApiInsert, dN as SubAgentRelationApiInsertSchema, bN as SubAgentRelationApiSelect, dM as SubAgentRelationApiSelectSchema, bP as SubAgentRelationApiUpdate, dO as SubAgentRelationApiUpdateSchema, dK as SubAgentRelationInsertSchema, gr as SubAgentRelationListResponse, bQ as SubAgentRelationQuery, dP as SubAgentRelationQuerySchema, gb as SubAgentRelationResponse, bM as SubAgentRelationSelect, dJ as SubAgentRelationSelectSchema, dL as SubAgentRelationUpdateSchema, g0 as SubAgentResponse, dD as SubAgentSelectSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema, cX as SubAgentToolRelationApiInsert, fC as SubAgentToolRelationApiInsertSchema, cW as SubAgentToolRelationApiSelect, fB as SubAgentToolRelationApiSelectSchema, cY as SubAgentToolRelationApiUpdate, fD as SubAgentToolRelationApiUpdateSchema, cV as SubAgentToolRelationInsert, fz as SubAgentToolRelationInsertSchema, gs as SubAgentToolRelationListResponse, gc as SubAgentToolRelationResponse, cU as SubAgentToolRelationSelect, fy as SubAgentToolRelationSelectSchema, fA as SubAgentToolRelationUpdateSchema, dF as SubAgentUpdateSchema, db as SummaryEvent, ds as TOOL_STATUS_VALUES, aX as Task, bX as TaskApiInsert, e0 as TaskApiInsertSchema, bW as TaskApiSelect, d$ as TaskApiSelectSchema, bY as TaskApiUpdate, e1 as TaskApiUpdateSchema, bI as TaskArtifact, aZ as TaskArtifactUpdateEvent, bd as TaskIdParams, dZ as TaskInsertSchema, b4 as TaskNotCancelableError, b3 as TaskNotFoundError, bc as TaskPushNotificationConfig, be as TaskQueryParams, c1 as TaskRelationApiInsert, e6 as TaskRelationApiInsertSchema, c0 as TaskRelationApiSelect, e5 as TaskRelationApiSelectSchema, c2 as TaskRelationApiUpdate, e7 as TaskRelationApiUpdateSchema, b_ as TaskRelationInsert, e3 as TaskRelationInsertSchema, bZ as TaskRelationSelect, e2 as TaskRelationSelectSchema, b$ as TaskRelationUpdate, e4 as TaskRelationUpdateSchema, bs as TaskResubscriptionRequest, dY as TaskSelectSchema, aF as TaskState, aW as TaskStatus, aY as TaskStatusUpdateEvent, bV as TaskUpdate, d_ as TaskUpdateSchema, gB as TenantIdParamsSchema, gA as TenantParamsSchema, gF as TenantProjectAgentIdParamsSchema, gE as TenantProjectAgentParamsSchema, gH as TenantProjectAgentSubAgentIdParamsSchema, gG as TenantProjectAgentSubAgentParamsSchema, gD as TenantProjectIdParamsSchema, gC as TenantProjectParamsSchema, az as TextPart, c4 as ToolApiInsert, ff as ToolApiInsertSchema, c3 as ToolApiSelect, fe as ToolApiSelectSchema, c5 as ToolApiUpdate, fg as ToolApiUpdateSchema, d6 as ToolDefinition, ec as ToolInsertSchema, gi as ToolListResponse, g2 as ToolResponse, eb as ToolSelectSchema, e9 as ToolStatusSchema, fd as ToolUpdateSchema, dx as URL_SAFE_ID_PATTERN, b6 as UnsupportedOperationError, dt as VALID_RELATION_TYPES, dy as resourceIdSchema } from './utility-DVhMoRLZ.cjs';
|
|
7
7
|
import { CredentialStore } from './types/index.cjs';
|
|
8
8
|
export { CorsConfig, ServerConfig, ServerOptions } from './types/index.cjs';
|
|
9
9
|
import { LibSQLDatabase } from 'drizzle-orm/libsql';
|
|
10
|
-
import { s as schema } from './schema-
|
|
11
|
-
export { E as agentRelations, H as agentToolRelationsRelations, a as agents, w as apiKeys, G as apiKeysRelations, j as artifactComponents, M as artifactComponentsRelations, b as contextCache, C as contextCacheRelations, c as contextConfigs, B as contextConfigsRelations, r as conversations, K as conversationsRelations, x as credentialReferences, I as credentialReferencesRelations, h as dataComponents, O as dataComponentsRelations, f as externalAgents, F as externalAgentsRelations, m as functionTools, T as functionToolsRelations, n as functions, R as functionsRelations, v as ledgerArtifacts, Q as ledgerArtifactsRelations, u as messages, L as messagesRelations, p as projects, z as projectsRelations, k as subAgentArtifactComponents, N as subAgentArtifactComponentsRelations, i as subAgentDataComponents, P as subAgentDataComponentsRelations, q as subAgentFunctionToolRelations, U as subAgentFunctionToolRelationsRelations, e as subAgentRelations, S as subAgentRelationsRelations, o as subAgentToolRelations, d as subAgents, D as subAgentsRelations, g as taskRelations, A as taskRelationsRelations, t as tasks, y as tasksRelations, l as tools, J as toolsRelations } from './schema-
|
|
10
|
+
import { s as schema } from './schema-DygzZEj3.cjs';
|
|
11
|
+
export { E as agentRelations, H as agentToolRelationsRelations, a as agents, w as apiKeys, G as apiKeysRelations, j as artifactComponents, M as artifactComponentsRelations, b as contextCache, C as contextCacheRelations, c as contextConfigs, B as contextConfigsRelations, r as conversations, K as conversationsRelations, x as credentialReferences, I as credentialReferencesRelations, h as dataComponents, O as dataComponentsRelations, f as externalAgents, F as externalAgentsRelations, m as functionTools, T as functionToolsRelations, n as functions, R as functionsRelations, v as ledgerArtifacts, Q as ledgerArtifactsRelations, u as messages, L as messagesRelations, p as projects, z as projectsRelations, k as subAgentArtifactComponents, N as subAgentArtifactComponentsRelations, i as subAgentDataComponents, P as subAgentDataComponentsRelations, q as subAgentFunctionToolRelations, U as subAgentFunctionToolRelationsRelations, e as subAgentRelations, S as subAgentRelationsRelations, o as subAgentToolRelations, d as subAgents, D as subAgentsRelations, g as taskRelations, A as taskRelationsRelations, t as tasks, y as tasksRelations, l as tools, J as toolsRelations } from './schema-DygzZEj3.cjs';
|
|
12
12
|
import { SSEClientTransportOptions } from '@modelcontextprotocol/sdk/client/sse.js';
|
|
13
13
|
import { StreamableHTTPClientTransportOptions } from '@modelcontextprotocol/sdk/client/streamableHttp.js';
|
|
14
14
|
import { ClientCapabilities } from '@modelcontextprotocol/sdk/types.js';
|
|
@@ -765,14 +765,13 @@ declare class CredentialStuffer {
|
|
|
765
765
|
declare const getAgentById: (db: DatabaseClient) => (params: {
|
|
766
766
|
scopes: AgentScopeConfig;
|
|
767
767
|
}) => Promise<{
|
|
768
|
-
tenantId: string;
|
|
769
|
-
projectId: string;
|
|
770
|
-
id: string;
|
|
771
768
|
name: string;
|
|
772
|
-
|
|
773
|
-
prompt: string | null;
|
|
769
|
+
id: string;
|
|
774
770
|
createdAt: string;
|
|
775
771
|
updatedAt: string;
|
|
772
|
+
projectId: string;
|
|
773
|
+
tenantId: string;
|
|
774
|
+
description: string | null;
|
|
776
775
|
models: {
|
|
777
776
|
base?: {
|
|
778
777
|
model?: string | undefined;
|
|
@@ -792,6 +791,7 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
|
|
|
792
791
|
} | null;
|
|
793
792
|
defaultSubAgentId: string | null;
|
|
794
793
|
contextConfigId: string | null;
|
|
794
|
+
prompt: string | null;
|
|
795
795
|
statusUpdates: {
|
|
796
796
|
enabled?: boolean | undefined;
|
|
797
797
|
numEvents?: number | undefined;
|
|
@@ -811,14 +811,13 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
|
|
|
811
811
|
declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
|
|
812
812
|
scopes: AgentScopeConfig;
|
|
813
813
|
}) => Promise<{
|
|
814
|
-
tenantId: string;
|
|
815
|
-
projectId: string;
|
|
816
|
-
id: string;
|
|
817
814
|
name: string;
|
|
818
|
-
|
|
819
|
-
prompt: string | null;
|
|
815
|
+
id: string;
|
|
820
816
|
createdAt: string;
|
|
821
817
|
updatedAt: string;
|
|
818
|
+
projectId: string;
|
|
819
|
+
tenantId: string;
|
|
820
|
+
description: string | null;
|
|
822
821
|
models: {
|
|
823
822
|
base?: {
|
|
824
823
|
model?: string | undefined;
|
|
@@ -838,6 +837,7 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
|
|
|
838
837
|
} | null;
|
|
839
838
|
defaultSubAgentId: string | null;
|
|
840
839
|
contextConfigId: string | null;
|
|
840
|
+
prompt: string | null;
|
|
841
841
|
statusUpdates: {
|
|
842
842
|
enabled?: boolean | undefined;
|
|
843
843
|
numEvents?: number | undefined;
|
|
@@ -854,15 +854,13 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
|
|
|
854
854
|
}[] | undefined;
|
|
855
855
|
} | null;
|
|
856
856
|
defaultSubAgent: {
|
|
857
|
-
tenantId: string;
|
|
858
|
-
projectId: string;
|
|
859
|
-
id: string;
|
|
860
857
|
name: string;
|
|
861
|
-
|
|
862
|
-
prompt: string;
|
|
863
|
-
agentId: string;
|
|
858
|
+
id: string;
|
|
864
859
|
createdAt: string;
|
|
865
860
|
updatedAt: string;
|
|
861
|
+
projectId: string;
|
|
862
|
+
tenantId: string;
|
|
863
|
+
description: string;
|
|
866
864
|
models: {
|
|
867
865
|
base?: {
|
|
868
866
|
model?: string | undefined;
|
|
@@ -880,20 +878,21 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
|
|
|
880
878
|
stopWhen: {
|
|
881
879
|
stepCountIs?: number | undefined;
|
|
882
880
|
} | null;
|
|
881
|
+
agentId: string;
|
|
882
|
+
prompt: string;
|
|
883
883
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
884
884
|
} | null;
|
|
885
885
|
} | null>;
|
|
886
886
|
declare const listAgents: (db: DatabaseClient) => (params: {
|
|
887
887
|
scopes: ProjectScopeConfig;
|
|
888
888
|
}) => Promise<{
|
|
889
|
-
tenantId: string;
|
|
890
|
-
projectId: string;
|
|
891
|
-
id: string;
|
|
892
889
|
name: string;
|
|
893
|
-
|
|
894
|
-
prompt: string | null;
|
|
890
|
+
id: string;
|
|
895
891
|
createdAt: string;
|
|
896
892
|
updatedAt: string;
|
|
893
|
+
projectId: string;
|
|
894
|
+
tenantId: string;
|
|
895
|
+
description: string | null;
|
|
897
896
|
models: {
|
|
898
897
|
base?: {
|
|
899
898
|
model?: string | undefined;
|
|
@@ -913,6 +912,7 @@ declare const listAgents: (db: DatabaseClient) => (params: {
|
|
|
913
912
|
} | null;
|
|
914
913
|
defaultSubAgentId: string | null;
|
|
915
914
|
contextConfigId: string | null;
|
|
915
|
+
prompt: string | null;
|
|
916
916
|
statusUpdates: {
|
|
917
917
|
enabled?: boolean | undefined;
|
|
918
918
|
numEvents?: number | undefined;
|
|
@@ -985,14 +985,13 @@ declare const listAgentsPaginated: (db: DatabaseClient) => (params: {
|
|
|
985
985
|
};
|
|
986
986
|
}>;
|
|
987
987
|
declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promise<{
|
|
988
|
-
tenantId: string;
|
|
989
|
-
projectId: string;
|
|
990
|
-
id: string;
|
|
991
988
|
name: string;
|
|
992
|
-
|
|
993
|
-
prompt: string | null;
|
|
989
|
+
id: string;
|
|
994
990
|
createdAt: string;
|
|
995
991
|
updatedAt: string;
|
|
992
|
+
projectId: string;
|
|
993
|
+
tenantId: string;
|
|
994
|
+
description: string | null;
|
|
996
995
|
models: {
|
|
997
996
|
base?: {
|
|
998
997
|
model?: string | undefined;
|
|
@@ -1012,6 +1011,7 @@ declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promis
|
|
|
1012
1011
|
} | null;
|
|
1013
1012
|
defaultSubAgentId: string | null;
|
|
1014
1013
|
contextConfigId: string | null;
|
|
1014
|
+
prompt: string | null;
|
|
1015
1015
|
statusUpdates: {
|
|
1016
1016
|
enabled?: boolean | undefined;
|
|
1017
1017
|
numEvents?: number | undefined;
|
|
@@ -1032,14 +1032,13 @@ declare const updateAgent: (db: DatabaseClient) => (params: {
|
|
|
1032
1032
|
scopes: AgentScopeConfig;
|
|
1033
1033
|
data: AgentUpdate;
|
|
1034
1034
|
}) => Promise<{
|
|
1035
|
-
tenantId: string;
|
|
1036
|
-
projectId: string;
|
|
1037
|
-
id: string;
|
|
1038
1035
|
name: string;
|
|
1039
|
-
|
|
1040
|
-
prompt: string | null;
|
|
1036
|
+
id: string;
|
|
1041
1037
|
createdAt: string;
|
|
1042
1038
|
updatedAt: string;
|
|
1039
|
+
projectId: string;
|
|
1040
|
+
tenantId: string;
|
|
1041
|
+
description: string | null;
|
|
1043
1042
|
models: {
|
|
1044
1043
|
base?: {
|
|
1045
1044
|
model?: string | undefined;
|
|
@@ -1059,6 +1058,7 @@ declare const updateAgent: (db: DatabaseClient) => (params: {
|
|
|
1059
1058
|
} | null;
|
|
1060
1059
|
defaultSubAgentId: string | null;
|
|
1061
1060
|
contextConfigId: string | null;
|
|
1061
|
+
prompt: string | null;
|
|
1062
1062
|
statusUpdates: {
|
|
1063
1063
|
enabled?: boolean | undefined;
|
|
1064
1064
|
numEvents?: number | undefined;
|
|
@@ -1112,49 +1112,49 @@ declare const getApiKeyById: (db: DatabaseClient) => (params: {
|
|
|
1112
1112
|
scopes: ProjectScopeConfig;
|
|
1113
1113
|
id: string;
|
|
1114
1114
|
}) => Promise<{
|
|
1115
|
-
tenantId: string;
|
|
1116
|
-
projectId: string;
|
|
1117
|
-
id: string;
|
|
1118
1115
|
name: string | null;
|
|
1116
|
+
id: string;
|
|
1117
|
+
createdAt: string;
|
|
1118
|
+
updatedAt: string;
|
|
1119
|
+
projectId: string;
|
|
1120
|
+
tenantId: string;
|
|
1119
1121
|
agentId: string;
|
|
1122
|
+
expiresAt: string | null;
|
|
1120
1123
|
publicId: string;
|
|
1121
1124
|
keyHash: string;
|
|
1122
1125
|
keyPrefix: string;
|
|
1123
1126
|
lastUsedAt: string | null;
|
|
1124
|
-
expiresAt: string | null;
|
|
1125
|
-
createdAt: string;
|
|
1126
|
-
updatedAt: string;
|
|
1127
1127
|
} | undefined>;
|
|
1128
1128
|
declare const getApiKeyByPublicId: (db: DatabaseClient) => (publicId: string) => Promise<{
|
|
1129
|
-
tenantId: string;
|
|
1130
|
-
projectId: string;
|
|
1131
|
-
id: string;
|
|
1132
1129
|
name: string | null;
|
|
1130
|
+
id: string;
|
|
1131
|
+
createdAt: string;
|
|
1132
|
+
updatedAt: string;
|
|
1133
|
+
projectId: string;
|
|
1134
|
+
tenantId: string;
|
|
1133
1135
|
agentId: string;
|
|
1136
|
+
expiresAt: string | null;
|
|
1134
1137
|
publicId: string;
|
|
1135
1138
|
keyHash: string;
|
|
1136
1139
|
keyPrefix: string;
|
|
1137
1140
|
lastUsedAt: string | null;
|
|
1138
|
-
expiresAt: string | null;
|
|
1139
|
-
createdAt: string;
|
|
1140
|
-
updatedAt: string;
|
|
1141
1141
|
} | undefined>;
|
|
1142
1142
|
declare const listApiKeys: (db: DatabaseClient) => (params: {
|
|
1143
1143
|
scopes: ProjectScopeConfig;
|
|
1144
1144
|
agentId?: string;
|
|
1145
1145
|
}) => Promise<{
|
|
1146
|
-
tenantId: string;
|
|
1147
|
-
projectId: string;
|
|
1148
|
-
id: string;
|
|
1149
1146
|
name: string | null;
|
|
1147
|
+
id: string;
|
|
1148
|
+
createdAt: string;
|
|
1149
|
+
updatedAt: string;
|
|
1150
|
+
projectId: string;
|
|
1151
|
+
tenantId: string;
|
|
1150
1152
|
agentId: string;
|
|
1153
|
+
expiresAt: string | null;
|
|
1151
1154
|
publicId: string;
|
|
1152
1155
|
keyHash: string;
|
|
1153
1156
|
keyPrefix: string;
|
|
1154
1157
|
lastUsedAt: string | null;
|
|
1155
|
-
expiresAt: string | null;
|
|
1156
|
-
createdAt: string;
|
|
1157
|
-
updatedAt: string;
|
|
1158
1158
|
}[]>;
|
|
1159
1159
|
declare const listApiKeysPaginated: (db: DatabaseClient) => (params: {
|
|
1160
1160
|
scopes: ProjectScopeConfig;
|
|
@@ -1170,36 +1170,36 @@ declare const listApiKeysPaginated: (db: DatabaseClient) => (params: {
|
|
|
1170
1170
|
};
|
|
1171
1171
|
}>;
|
|
1172
1172
|
declare const createApiKey: (db: DatabaseClient) => (params: ApiKeyInsert) => Promise<{
|
|
1173
|
-
tenantId: string;
|
|
1174
|
-
projectId: string;
|
|
1175
|
-
id: string;
|
|
1176
1173
|
name: string | null;
|
|
1174
|
+
id: string;
|
|
1175
|
+
createdAt: string;
|
|
1176
|
+
updatedAt: string;
|
|
1177
|
+
projectId: string;
|
|
1178
|
+
tenantId: string;
|
|
1177
1179
|
agentId: string;
|
|
1180
|
+
expiresAt: string | null;
|
|
1178
1181
|
publicId: string;
|
|
1179
1182
|
keyHash: string;
|
|
1180
1183
|
keyPrefix: string;
|
|
1181
1184
|
lastUsedAt: string | null;
|
|
1182
|
-
expiresAt: string | null;
|
|
1183
|
-
createdAt: string;
|
|
1184
|
-
updatedAt: string;
|
|
1185
1185
|
}>;
|
|
1186
1186
|
declare const updateApiKey: (db: DatabaseClient) => (params: {
|
|
1187
1187
|
scopes: ProjectScopeConfig;
|
|
1188
1188
|
id: string;
|
|
1189
1189
|
data: ApiKeyUpdate;
|
|
1190
1190
|
}) => Promise<{
|
|
1191
|
-
tenantId: string;
|
|
1192
|
-
projectId: string;
|
|
1193
|
-
id: string;
|
|
1194
1191
|
name: string | null;
|
|
1192
|
+
id: string;
|
|
1193
|
+
createdAt: string;
|
|
1194
|
+
updatedAt: string;
|
|
1195
|
+
projectId: string;
|
|
1196
|
+
tenantId: string;
|
|
1195
1197
|
agentId: string;
|
|
1198
|
+
expiresAt: string | null;
|
|
1196
1199
|
publicId: string;
|
|
1197
1200
|
keyHash: string;
|
|
1198
1201
|
keyPrefix: string;
|
|
1199
1202
|
lastUsedAt: string | null;
|
|
1200
|
-
expiresAt: string | null;
|
|
1201
|
-
createdAt: string;
|
|
1202
|
-
updatedAt: string;
|
|
1203
1203
|
}>;
|
|
1204
1204
|
declare const deleteApiKey: (db: DatabaseClient) => (params: {
|
|
1205
1205
|
scopes: ProjectScopeConfig;
|
|
@@ -1228,13 +1228,13 @@ declare const getArtifactComponentById: (db: DatabaseClient) => (params: {
|
|
|
1228
1228
|
scopes: ProjectScopeConfig;
|
|
1229
1229
|
id: string;
|
|
1230
1230
|
}) => Promise<{
|
|
1231
|
-
tenantId: string;
|
|
1232
|
-
projectId: string;
|
|
1233
|
-
id: string;
|
|
1234
1231
|
name: string;
|
|
1235
|
-
|
|
1232
|
+
id: string;
|
|
1236
1233
|
createdAt: string;
|
|
1237
1234
|
updatedAt: string;
|
|
1235
|
+
projectId: string;
|
|
1236
|
+
tenantId: string;
|
|
1237
|
+
description: string;
|
|
1238
1238
|
props: Record<string, unknown> | null;
|
|
1239
1239
|
} | undefined>;
|
|
1240
1240
|
declare const listArtifactComponents: (db: DatabaseClient) => (params: {
|
|
@@ -1262,13 +1262,13 @@ declare const listArtifactComponentsPaginated: (db: DatabaseClient) => (params:
|
|
|
1262
1262
|
};
|
|
1263
1263
|
}>;
|
|
1264
1264
|
declare const createArtifactComponent: (db: DatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
|
|
1265
|
-
tenantId: string;
|
|
1266
|
-
projectId: string;
|
|
1267
|
-
id: string;
|
|
1268
1265
|
name: string;
|
|
1269
|
-
|
|
1266
|
+
id: string;
|
|
1270
1267
|
createdAt: string;
|
|
1271
1268
|
updatedAt: string;
|
|
1269
|
+
projectId: string;
|
|
1270
|
+
tenantId: string;
|
|
1271
|
+
description: string;
|
|
1272
1272
|
props: Record<string, unknown> | null;
|
|
1273
1273
|
}>;
|
|
1274
1274
|
declare const updateArtifactComponent: (db: DatabaseClient) => (params: {
|
|
@@ -1276,13 +1276,13 @@ declare const updateArtifactComponent: (db: DatabaseClient) => (params: {
|
|
|
1276
1276
|
id: string;
|
|
1277
1277
|
data: ArtifactComponentUpdate;
|
|
1278
1278
|
}) => Promise<{
|
|
1279
|
-
tenantId: string;
|
|
1280
|
-
projectId: string;
|
|
1281
|
-
id: string;
|
|
1282
1279
|
name: string;
|
|
1283
|
-
|
|
1280
|
+
id: string;
|
|
1284
1281
|
createdAt: string;
|
|
1285
1282
|
updatedAt: string;
|
|
1283
|
+
projectId: string;
|
|
1284
|
+
tenantId: string;
|
|
1285
|
+
description: string;
|
|
1286
1286
|
props: Record<string, unknown> | null;
|
|
1287
1287
|
}>;
|
|
1288
1288
|
declare const deleteArtifactComponent: (db: DatabaseClient) => (params: {
|
|
@@ -1305,11 +1305,11 @@ declare const associateArtifactComponentWithAgent: (db: DatabaseClient) => (para
|
|
|
1305
1305
|
scopes: SubAgentScopeConfig;
|
|
1306
1306
|
artifactComponentId: string;
|
|
1307
1307
|
}) => Promise<{
|
|
1308
|
-
tenantId: string;
|
|
1309
|
-
projectId: string;
|
|
1310
1308
|
id: string;
|
|
1311
|
-
agentId: string;
|
|
1312
1309
|
createdAt: string;
|
|
1310
|
+
projectId: string;
|
|
1311
|
+
tenantId: string;
|
|
1312
|
+
agentId: string;
|
|
1313
1313
|
subAgentId: string;
|
|
1314
1314
|
artifactComponentId: string;
|
|
1315
1315
|
}>;
|
|
@@ -1348,11 +1348,11 @@ declare const upsertAgentArtifactComponentRelation: (db: DatabaseClient) => (par
|
|
|
1348
1348
|
scopes: SubAgentScopeConfig;
|
|
1349
1349
|
artifactComponentId: string;
|
|
1350
1350
|
}) => Promise<{
|
|
1351
|
-
tenantId: string;
|
|
1352
|
-
projectId: string;
|
|
1353
1351
|
id: string;
|
|
1354
|
-
agentId: string;
|
|
1355
1352
|
createdAt: string;
|
|
1353
|
+
projectId: string;
|
|
1354
|
+
tenantId: string;
|
|
1355
|
+
agentId: string;
|
|
1356
1356
|
subAgentId: string;
|
|
1357
1357
|
artifactComponentId: string;
|
|
1358
1358
|
} | null>;
|
|
@@ -1432,26 +1432,26 @@ declare const getContextConfigById: (db: DatabaseClient) => (params: {
|
|
|
1432
1432
|
scopes: AgentScopeConfig;
|
|
1433
1433
|
id: string;
|
|
1434
1434
|
}) => Promise<{
|
|
1435
|
-
tenantId: string;
|
|
1436
|
-
projectId: string;
|
|
1437
1435
|
id: string;
|
|
1438
|
-
agentId: string;
|
|
1439
1436
|
createdAt: string;
|
|
1440
1437
|
updatedAt: string;
|
|
1438
|
+
projectId: string;
|
|
1439
|
+
tenantId: string;
|
|
1441
1440
|
headersSchema: unknown;
|
|
1442
1441
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
1442
|
+
agentId: string;
|
|
1443
1443
|
} | undefined>;
|
|
1444
1444
|
declare const listContextConfigs: (db: DatabaseClient) => (params: {
|
|
1445
1445
|
scopes: AgentScopeConfig;
|
|
1446
1446
|
}) => Promise<{
|
|
1447
|
-
tenantId: string;
|
|
1448
|
-
projectId: string;
|
|
1449
1447
|
id: string;
|
|
1450
|
-
agentId: string;
|
|
1451
1448
|
createdAt: string;
|
|
1452
1449
|
updatedAt: string;
|
|
1450
|
+
projectId: string;
|
|
1451
|
+
tenantId: string;
|
|
1453
1452
|
headersSchema: unknown;
|
|
1454
1453
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
1454
|
+
agentId: string;
|
|
1455
1455
|
}[]>;
|
|
1456
1456
|
declare const listContextConfigsPaginated: (db: DatabaseClient) => (params: {
|
|
1457
1457
|
scopes: AgentScopeConfig;
|
|
@@ -1466,28 +1466,28 @@ declare const listContextConfigsPaginated: (db: DatabaseClient) => (params: {
|
|
|
1466
1466
|
};
|
|
1467
1467
|
}>;
|
|
1468
1468
|
declare const createContextConfig: (db: DatabaseClient) => (params: ContextConfigInsert) => Promise<{
|
|
1469
|
-
tenantId: string;
|
|
1470
|
-
projectId: string;
|
|
1471
1469
|
id: string;
|
|
1472
|
-
agentId: string;
|
|
1473
1470
|
createdAt: string;
|
|
1474
1471
|
updatedAt: string;
|
|
1472
|
+
projectId: string;
|
|
1473
|
+
tenantId: string;
|
|
1475
1474
|
headersSchema: unknown;
|
|
1476
1475
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
1476
|
+
agentId: string;
|
|
1477
1477
|
}>;
|
|
1478
1478
|
declare const updateContextConfig: (db: DatabaseClient) => (params: {
|
|
1479
1479
|
scopes: AgentScopeConfig;
|
|
1480
1480
|
id: string;
|
|
1481
1481
|
data: Partial<ContextConfigUpdate>;
|
|
1482
1482
|
}) => Promise<{
|
|
1483
|
-
tenantId: string;
|
|
1484
|
-
projectId: string;
|
|
1485
1483
|
id: string;
|
|
1486
|
-
agentId: string;
|
|
1487
1484
|
createdAt: string;
|
|
1488
1485
|
updatedAt: string;
|
|
1486
|
+
projectId: string;
|
|
1487
|
+
tenantId: string;
|
|
1489
1488
|
headersSchema: unknown;
|
|
1490
1489
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
1490
|
+
agentId: string;
|
|
1491
1491
|
}>;
|
|
1492
1492
|
declare const deleteContextConfig: (db: DatabaseClient) => (params: {
|
|
1493
1493
|
scopes: AgentScopeConfig;
|
|
@@ -1506,14 +1506,14 @@ declare const countContextConfigs: (db: DatabaseClient) => (params: {
|
|
|
1506
1506
|
declare const upsertContextConfig: (db: DatabaseClient) => (params: {
|
|
1507
1507
|
data: ContextConfigInsert;
|
|
1508
1508
|
}) => Promise<{
|
|
1509
|
-
tenantId: string;
|
|
1510
|
-
projectId: string;
|
|
1511
1509
|
id: string;
|
|
1512
|
-
agentId: string;
|
|
1513
1510
|
createdAt: string;
|
|
1514
1511
|
updatedAt: string;
|
|
1512
|
+
projectId: string;
|
|
1513
|
+
tenantId: string;
|
|
1515
1514
|
headersSchema: unknown;
|
|
1516
1515
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
1516
|
+
agentId: string;
|
|
1517
1517
|
}>;
|
|
1518
1518
|
|
|
1519
1519
|
declare const listConversations: (db: DatabaseClient) => (params: {
|
|
@@ -1525,12 +1525,12 @@ declare const listConversations: (db: DatabaseClient) => (params: {
|
|
|
1525
1525
|
total: number;
|
|
1526
1526
|
}>;
|
|
1527
1527
|
declare const createConversation: (db: DatabaseClient) => (params: ConversationInsert) => Promise<{
|
|
1528
|
-
tenantId: string;
|
|
1529
|
-
projectId: string;
|
|
1530
1528
|
id: string;
|
|
1531
|
-
title: string | null;
|
|
1532
1529
|
createdAt: string;
|
|
1533
1530
|
updatedAt: string;
|
|
1531
|
+
projectId: string;
|
|
1532
|
+
tenantId: string;
|
|
1533
|
+
title: string | null;
|
|
1534
1534
|
metadata: ConversationMetadata | null;
|
|
1535
1535
|
userId: string | null;
|
|
1536
1536
|
activeSubAgentId: string;
|
|
@@ -1541,12 +1541,12 @@ declare const updateConversation: (db: DatabaseClient) => (params: {
|
|
|
1541
1541
|
conversationId: string;
|
|
1542
1542
|
data: ConversationUpdate;
|
|
1543
1543
|
}) => Promise<{
|
|
1544
|
-
tenantId: string;
|
|
1545
|
-
projectId: string;
|
|
1546
1544
|
id: string;
|
|
1547
|
-
title: string | null;
|
|
1548
1545
|
createdAt: string;
|
|
1549
1546
|
updatedAt: string;
|
|
1547
|
+
projectId: string;
|
|
1548
|
+
tenantId: string;
|
|
1549
|
+
title: string | null;
|
|
1550
1550
|
metadata: ConversationMetadata | null;
|
|
1551
1551
|
userId: string | null;
|
|
1552
1552
|
activeSubAgentId: string;
|
|
@@ -1561,12 +1561,12 @@ declare const updateConversationActiveAgent: (db: DatabaseClient) => (params: {
|
|
|
1561
1561
|
conversationId: string;
|
|
1562
1562
|
activeSubAgentId: string;
|
|
1563
1563
|
}) => Promise<{
|
|
1564
|
-
tenantId: string;
|
|
1565
|
-
projectId: string;
|
|
1566
1564
|
id: string;
|
|
1567
|
-
title: string | null;
|
|
1568
1565
|
createdAt: string;
|
|
1569
1566
|
updatedAt: string;
|
|
1567
|
+
projectId: string;
|
|
1568
|
+
tenantId: string;
|
|
1569
|
+
title: string | null;
|
|
1570
1570
|
metadata: ConversationMetadata | null;
|
|
1571
1571
|
userId: string | null;
|
|
1572
1572
|
activeSubAgentId: string;
|
|
@@ -1576,12 +1576,12 @@ declare const getConversation: (db: DatabaseClient) => (params: {
|
|
|
1576
1576
|
scopes: ProjectScopeConfig;
|
|
1577
1577
|
conversationId: string;
|
|
1578
1578
|
}) => Promise<{
|
|
1579
|
-
tenantId: string;
|
|
1580
|
-
projectId: string;
|
|
1581
1579
|
id: string;
|
|
1582
|
-
title: string | null;
|
|
1583
1580
|
createdAt: string;
|
|
1584
1581
|
updatedAt: string;
|
|
1582
|
+
projectId: string;
|
|
1583
|
+
tenantId: string;
|
|
1584
|
+
title: string | null;
|
|
1585
1585
|
metadata: ConversationMetadata | null;
|
|
1586
1586
|
userId: string | null;
|
|
1587
1587
|
activeSubAgentId: string;
|
|
@@ -1600,12 +1600,12 @@ declare const createOrGetConversation: (db: DatabaseClient) => (input: Conversat
|
|
|
1600
1600
|
metadata?: ConversationMetadata | null | undefined;
|
|
1601
1601
|
contextConfigId?: string | undefined;
|
|
1602
1602
|
} | {
|
|
1603
|
-
tenantId: string;
|
|
1604
|
-
projectId: string;
|
|
1605
1603
|
id: string;
|
|
1606
|
-
title: string | null;
|
|
1607
1604
|
createdAt: string;
|
|
1608
1605
|
updatedAt: string;
|
|
1606
|
+
projectId: string;
|
|
1607
|
+
tenantId: string;
|
|
1608
|
+
title: string | null;
|
|
1609
1609
|
metadata: ConversationMetadata | null;
|
|
1610
1610
|
userId: string | null;
|
|
1611
1611
|
activeSubAgentId: string;
|
|
@@ -1626,12 +1626,12 @@ declare const getActiveAgentForConversation: (db: DatabaseClient) => (params: {
|
|
|
1626
1626
|
scopes: ProjectScopeConfig;
|
|
1627
1627
|
conversationId: string;
|
|
1628
1628
|
}) => Promise<{
|
|
1629
|
-
tenantId: string;
|
|
1630
|
-
projectId: string;
|
|
1631
1629
|
id: string;
|
|
1632
|
-
title: string | null;
|
|
1633
1630
|
createdAt: string;
|
|
1634
1631
|
updatedAt: string;
|
|
1632
|
+
projectId: string;
|
|
1633
|
+
tenantId: string;
|
|
1634
|
+
title: string | null;
|
|
1635
1635
|
metadata: ConversationMetadata | null;
|
|
1636
1636
|
userId: string | null;
|
|
1637
1637
|
activeSubAgentId: string;
|
|
@@ -1795,11 +1795,11 @@ declare const associateDataComponentWithAgent: (db: DatabaseClient) => (params:
|
|
|
1795
1795
|
scopes: SubAgentScopeConfig;
|
|
1796
1796
|
dataComponentId: string;
|
|
1797
1797
|
}) => Promise<{
|
|
1798
|
-
tenantId: string;
|
|
1799
|
-
projectId: string;
|
|
1800
1798
|
id: string;
|
|
1801
|
-
agentId: string;
|
|
1802
1799
|
createdAt: string;
|
|
1800
|
+
projectId: string;
|
|
1801
|
+
tenantId: string;
|
|
1802
|
+
agentId: string;
|
|
1803
1803
|
subAgentId: string;
|
|
1804
1804
|
dataComponentId: string;
|
|
1805
1805
|
}>;
|
|
@@ -1837,11 +1837,11 @@ declare const upsertAgentDataComponentRelation: (db: DatabaseClient) => (params:
|
|
|
1837
1837
|
scopes: SubAgentScopeConfig;
|
|
1838
1838
|
dataComponentId: string;
|
|
1839
1839
|
}) => Promise<{
|
|
1840
|
-
tenantId: string;
|
|
1841
|
-
projectId: string;
|
|
1842
1840
|
id: string;
|
|
1843
|
-
agentId: string;
|
|
1844
1841
|
createdAt: string;
|
|
1842
|
+
projectId: string;
|
|
1843
|
+
tenantId: string;
|
|
1844
|
+
agentId: string;
|
|
1845
1845
|
subAgentId: string;
|
|
1846
1846
|
dataComponentId: string;
|
|
1847
1847
|
} | null>;
|
|
@@ -2016,14 +2016,14 @@ declare const createFunctionTool: (db: DatabaseClient) => (params: {
|
|
|
2016
2016
|
data: FunctionToolApiInsert;
|
|
2017
2017
|
scopes: AgentScopeConfig;
|
|
2018
2018
|
}) => Promise<{
|
|
2019
|
-
tenantId: string;
|
|
2020
|
-
projectId: string;
|
|
2021
|
-
id: string;
|
|
2022
2019
|
name: string;
|
|
2023
|
-
|
|
2024
|
-
agentId: string;
|
|
2020
|
+
id: string;
|
|
2025
2021
|
createdAt: string;
|
|
2026
2022
|
updatedAt: string;
|
|
2023
|
+
projectId: string;
|
|
2024
|
+
tenantId: string;
|
|
2025
|
+
description: string | null;
|
|
2026
|
+
agentId: string;
|
|
2027
2027
|
functionId: string;
|
|
2028
2028
|
}>;
|
|
2029
2029
|
/**
|
|
@@ -2034,14 +2034,14 @@ declare const updateFunctionTool: (db: DatabaseClient) => (params: {
|
|
|
2034
2034
|
functionToolId: string;
|
|
2035
2035
|
data: FunctionToolApiUpdate;
|
|
2036
2036
|
}) => Promise<{
|
|
2037
|
-
tenantId: string;
|
|
2038
|
-
projectId: string;
|
|
2039
|
-
id: string;
|
|
2040
2037
|
name: string;
|
|
2041
|
-
|
|
2042
|
-
agentId: string;
|
|
2038
|
+
id: string;
|
|
2043
2039
|
createdAt: string;
|
|
2044
2040
|
updatedAt: string;
|
|
2041
|
+
projectId: string;
|
|
2042
|
+
tenantId: string;
|
|
2043
|
+
description: string | null;
|
|
2044
|
+
agentId: string;
|
|
2045
2045
|
functionId: string;
|
|
2046
2046
|
}>;
|
|
2047
2047
|
/**
|
|
@@ -2057,15 +2057,15 @@ declare const deleteFunctionTool: (db: DatabaseClient) => (params: {
|
|
|
2057
2057
|
declare const upsertFunctionTool: (db: DatabaseClient) => (params: {
|
|
2058
2058
|
data: FunctionToolApiInsert;
|
|
2059
2059
|
scopes: AgentScopeConfig;
|
|
2060
|
-
}) => Promise<{
|
|
2061
|
-
tenantId: string;
|
|
2062
|
-
projectId: string;
|
|
2063
|
-
id: string;
|
|
2060
|
+
}) => Promise<{
|
|
2064
2061
|
name: string;
|
|
2065
|
-
|
|
2066
|
-
agentId: string;
|
|
2062
|
+
id: string;
|
|
2067
2063
|
createdAt: string;
|
|
2068
2064
|
updatedAt: string;
|
|
2065
|
+
projectId: string;
|
|
2066
|
+
tenantId: string;
|
|
2067
|
+
description: string | null;
|
|
2068
|
+
agentId: string;
|
|
2069
2069
|
functionId: string;
|
|
2070
2070
|
}>;
|
|
2071
2071
|
declare const getFunctionToolsForSubAgent: (db: DatabaseClient) => (params: {
|
|
@@ -2222,11 +2222,11 @@ declare const getMessageById: (db: DatabaseClient) => (params: {
|
|
|
2222
2222
|
scopes: ProjectScopeConfig;
|
|
2223
2223
|
messageId: string;
|
|
2224
2224
|
}) => Promise<{
|
|
2225
|
-
tenantId: string;
|
|
2226
|
-
projectId: string;
|
|
2227
2225
|
id: string;
|
|
2228
2226
|
createdAt: string;
|
|
2229
2227
|
updatedAt: string;
|
|
2228
|
+
projectId: string;
|
|
2229
|
+
tenantId: string;
|
|
2230
2230
|
metadata: MessageMetadata | null;
|
|
2231
2231
|
content: MessageContent;
|
|
2232
2232
|
conversationId: string;
|
|
@@ -2343,11 +2343,11 @@ declare const getVisibleMessages: (db: DatabaseClient) => (params: {
|
|
|
2343
2343
|
id: string;
|
|
2344
2344
|
}[]>;
|
|
2345
2345
|
declare const createMessage: (db: DatabaseClient) => (params: MessageInsert) => Promise<{
|
|
2346
|
-
tenantId: string;
|
|
2347
|
-
projectId: string;
|
|
2348
2346
|
id: string;
|
|
2349
2347
|
createdAt: string;
|
|
2350
2348
|
updatedAt: string;
|
|
2349
|
+
projectId: string;
|
|
2350
|
+
tenantId: string;
|
|
2351
2351
|
metadata: MessageMetadata | null;
|
|
2352
2352
|
content: MessageContent;
|
|
2353
2353
|
conversationId: string;
|
|
@@ -2368,11 +2368,11 @@ declare const updateMessage: (db: DatabaseClient) => (params: {
|
|
|
2368
2368
|
messageId: string;
|
|
2369
2369
|
data: MessageUpdate;
|
|
2370
2370
|
}) => Promise<{
|
|
2371
|
-
tenantId: string;
|
|
2372
|
-
projectId: string;
|
|
2373
2371
|
id: string;
|
|
2374
2372
|
createdAt: string;
|
|
2375
2373
|
updatedAt: string;
|
|
2374
|
+
projectId: string;
|
|
2375
|
+
tenantId: string;
|
|
2376
2376
|
metadata: MessageMetadata | null;
|
|
2377
2377
|
content: MessageContent;
|
|
2378
2378
|
conversationId: string;
|
|
@@ -2392,11 +2392,11 @@ declare const deleteMessage: (db: DatabaseClient) => (params: {
|
|
|
2392
2392
|
scopes: ProjectScopeConfig;
|
|
2393
2393
|
messageId: string;
|
|
2394
2394
|
}) => Promise<{
|
|
2395
|
-
tenantId: string;
|
|
2396
|
-
projectId: string;
|
|
2397
2395
|
id: string;
|
|
2398
2396
|
createdAt: string;
|
|
2399
2397
|
updatedAt: string;
|
|
2398
|
+
projectId: string;
|
|
2399
|
+
tenantId: string;
|
|
2400
2400
|
metadata: MessageMetadata | null;
|
|
2401
2401
|
content: MessageContent;
|
|
2402
2402
|
conversationId: string;
|
|
@@ -2515,12 +2515,12 @@ declare const getAgentRelationById: (db: DatabaseClient) => (params: {
|
|
|
2515
2515
|
scopes: AgentScopeConfig;
|
|
2516
2516
|
relationId: string;
|
|
2517
2517
|
}) => Promise<{
|
|
2518
|
-
tenantId: string;
|
|
2519
|
-
projectId: string;
|
|
2520
2518
|
id: string;
|
|
2521
|
-
agentId: string;
|
|
2522
2519
|
createdAt: string;
|
|
2523
2520
|
updatedAt: string;
|
|
2521
|
+
projectId: string;
|
|
2522
|
+
tenantId: string;
|
|
2523
|
+
agentId: string;
|
|
2524
2524
|
sourceSubAgentId: string;
|
|
2525
2525
|
targetSubAgentId: string | null;
|
|
2526
2526
|
externalSubAgentId: string | null;
|
|
@@ -2552,12 +2552,12 @@ declare const listAgentRelations: (db: DatabaseClient) => (params: {
|
|
|
2552
2552
|
declare const getAgentRelations: (db: DatabaseClient) => (params: {
|
|
2553
2553
|
scopes: SubAgentScopeConfig;
|
|
2554
2554
|
}) => Promise<{
|
|
2555
|
-
tenantId: string;
|
|
2556
|
-
projectId: string;
|
|
2557
2555
|
id: string;
|
|
2558
|
-
agentId: string;
|
|
2559
2556
|
createdAt: string;
|
|
2560
2557
|
updatedAt: string;
|
|
2558
|
+
projectId: string;
|
|
2559
|
+
tenantId: string;
|
|
2560
|
+
agentId: string;
|
|
2561
2561
|
sourceSubAgentId: string;
|
|
2562
2562
|
targetSubAgentId: string | null;
|
|
2563
2563
|
externalSubAgentId: string | null;
|
|
@@ -2566,12 +2566,12 @@ declare const getAgentRelations: (db: DatabaseClient) => (params: {
|
|
|
2566
2566
|
declare const getAgentRelationsByAgent: (db: DatabaseClient) => (params: {
|
|
2567
2567
|
scopes: AgentScopeConfig;
|
|
2568
2568
|
}) => Promise<{
|
|
2569
|
-
tenantId: string;
|
|
2570
|
-
projectId: string;
|
|
2571
2569
|
id: string;
|
|
2572
|
-
agentId: string;
|
|
2573
2570
|
createdAt: string;
|
|
2574
2571
|
updatedAt: string;
|
|
2572
|
+
projectId: string;
|
|
2573
|
+
tenantId: string;
|
|
2574
|
+
agentId: string;
|
|
2575
2575
|
sourceSubAgentId: string;
|
|
2576
2576
|
targetSubAgentId: string | null;
|
|
2577
2577
|
externalSubAgentId: string | null;
|
|
@@ -2671,12 +2671,12 @@ declare const getRelatedAgentsForAgent: (db: DatabaseClient) => (params: {
|
|
|
2671
2671
|
}[];
|
|
2672
2672
|
}>;
|
|
2673
2673
|
declare const createSubAgentRelation: (db: DatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
|
|
2674
|
-
tenantId: string;
|
|
2675
|
-
projectId: string;
|
|
2676
2674
|
id: string;
|
|
2677
|
-
agentId: string;
|
|
2678
2675
|
createdAt: string;
|
|
2679
2676
|
updatedAt: string;
|
|
2677
|
+
projectId: string;
|
|
2678
|
+
tenantId: string;
|
|
2679
|
+
agentId: string;
|
|
2680
2680
|
sourceSubAgentId: string;
|
|
2681
2681
|
targetSubAgentId: string | null;
|
|
2682
2682
|
externalSubAgentId: string | null;
|
|
@@ -2692,12 +2692,12 @@ declare const getAgentRelationByParams: (db: DatabaseClient) => (params: {
|
|
|
2692
2692
|
externalSubAgentId?: string;
|
|
2693
2693
|
relationType: string;
|
|
2694
2694
|
}) => Promise<{
|
|
2695
|
-
tenantId: string;
|
|
2696
|
-
projectId: string;
|
|
2697
2695
|
id: string;
|
|
2698
|
-
agentId: string;
|
|
2699
2696
|
createdAt: string;
|
|
2700
2697
|
updatedAt: string;
|
|
2698
|
+
projectId: string;
|
|
2699
|
+
tenantId: string;
|
|
2700
|
+
agentId: string;
|
|
2701
2701
|
sourceSubAgentId: string;
|
|
2702
2702
|
targetSubAgentId: string | null;
|
|
2703
2703
|
externalSubAgentId: string | null;
|
|
@@ -2707,24 +2707,24 @@ declare const getAgentRelationByParams: (db: DatabaseClient) => (params: {
|
|
|
2707
2707
|
* Upsert agent relation (create if it doesn't exist, no-op if it does)
|
|
2708
2708
|
*/
|
|
2709
2709
|
declare const upsertSubAgentRelation: (db: DatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
|
|
2710
|
-
tenantId: string;
|
|
2711
|
-
projectId: string;
|
|
2712
2710
|
id: string;
|
|
2713
|
-
agentId: string;
|
|
2714
2711
|
createdAt: string;
|
|
2715
2712
|
updatedAt: string;
|
|
2713
|
+
projectId: string;
|
|
2714
|
+
tenantId: string;
|
|
2715
|
+
agentId: string;
|
|
2716
2716
|
sourceSubAgentId: string;
|
|
2717
2717
|
targetSubAgentId: string | null;
|
|
2718
2718
|
externalSubAgentId: string | null;
|
|
2719
2719
|
relationType: string | null;
|
|
2720
2720
|
}>;
|
|
2721
2721
|
declare const createExternalAgentRelation: (db: DatabaseClient) => (params: ExternalSubAgentRelationInsert) => Promise<{
|
|
2722
|
-
tenantId: string;
|
|
2723
|
-
projectId: string;
|
|
2724
2722
|
id: string;
|
|
2725
|
-
agentId: string;
|
|
2726
2723
|
createdAt: string;
|
|
2727
2724
|
updatedAt: string;
|
|
2725
|
+
projectId: string;
|
|
2726
|
+
tenantId: string;
|
|
2727
|
+
agentId: string;
|
|
2728
2728
|
sourceSubAgentId: string;
|
|
2729
2729
|
targetSubAgentId: string | null;
|
|
2730
2730
|
externalSubAgentId: string | null;
|
|
@@ -2735,12 +2735,12 @@ declare const updateAgentRelation: (db: DatabaseClient) => (params: {
|
|
|
2735
2735
|
relationId: string;
|
|
2736
2736
|
data: SubAgentRelationUpdate;
|
|
2737
2737
|
}) => Promise<{
|
|
2738
|
-
tenantId: string;
|
|
2739
|
-
projectId: string;
|
|
2740
2738
|
id: string;
|
|
2741
|
-
agentId: string;
|
|
2742
2739
|
createdAt: string;
|
|
2743
2740
|
updatedAt: string;
|
|
2741
|
+
projectId: string;
|
|
2742
|
+
tenantId: string;
|
|
2743
|
+
agentId: string;
|
|
2744
2744
|
sourceSubAgentId: string;
|
|
2745
2745
|
targetSubAgentId: string | null;
|
|
2746
2746
|
externalSubAgentId: string | null;
|
|
@@ -2763,32 +2763,32 @@ declare const createAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
|
2763
2763
|
headers?: Record<string, string> | null;
|
|
2764
2764
|
};
|
|
2765
2765
|
}) => Promise<{
|
|
2766
|
-
|
|
2767
|
-
projectId: string;
|
|
2766
|
+
headers: Record<string, string> | null;
|
|
2768
2767
|
id: string;
|
|
2769
|
-
agentId: string;
|
|
2770
2768
|
createdAt: string;
|
|
2771
2769
|
updatedAt: string;
|
|
2772
|
-
|
|
2773
|
-
|
|
2770
|
+
projectId: string;
|
|
2771
|
+
tenantId: string;
|
|
2772
|
+
agentId: string;
|
|
2774
2773
|
selectedTools: string[] | null;
|
|
2775
2774
|
subAgentId: string;
|
|
2775
|
+
toolId: string;
|
|
2776
2776
|
}>;
|
|
2777
2777
|
declare const updateAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
2778
2778
|
scopes: AgentScopeConfig;
|
|
2779
2779
|
relationId: string;
|
|
2780
2780
|
data: SubAgentToolRelationUpdate;
|
|
2781
2781
|
}) => Promise<{
|
|
2782
|
-
|
|
2783
|
-
projectId: string;
|
|
2782
|
+
headers: Record<string, string> | null;
|
|
2784
2783
|
id: string;
|
|
2785
|
-
agentId: string;
|
|
2786
2784
|
createdAt: string;
|
|
2787
2785
|
updatedAt: string;
|
|
2788
|
-
|
|
2789
|
-
|
|
2786
|
+
projectId: string;
|
|
2787
|
+
tenantId: string;
|
|
2788
|
+
agentId: string;
|
|
2790
2789
|
selectedTools: string[] | null;
|
|
2791
2790
|
subAgentId: string;
|
|
2791
|
+
toolId: string;
|
|
2792
2792
|
}>;
|
|
2793
2793
|
declare const deleteAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
2794
2794
|
scopes: AgentScopeConfig;
|
|
@@ -2801,16 +2801,16 @@ declare const getAgentToolRelationById: (db: DatabaseClient) => (params: {
|
|
|
2801
2801
|
scopes: SubAgentScopeConfig;
|
|
2802
2802
|
relationId: string;
|
|
2803
2803
|
}) => Promise<{
|
|
2804
|
-
|
|
2805
|
-
projectId: string;
|
|
2804
|
+
headers: Record<string, string> | null;
|
|
2806
2805
|
id: string;
|
|
2807
|
-
agentId: string;
|
|
2808
2806
|
createdAt: string;
|
|
2809
2807
|
updatedAt: string;
|
|
2810
|
-
|
|
2811
|
-
|
|
2808
|
+
projectId: string;
|
|
2809
|
+
tenantId: string;
|
|
2810
|
+
agentId: string;
|
|
2812
2811
|
selectedTools: string[] | null;
|
|
2813
2812
|
subAgentId: string;
|
|
2813
|
+
toolId: string;
|
|
2814
2814
|
} | undefined>;
|
|
2815
2815
|
declare const getAgentToolRelationByAgent: (db: DatabaseClient) => (params: {
|
|
2816
2816
|
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
|
-
id: string;
|
|
2986
2983
|
name: string;
|
|
2987
|
-
|
|
2988
|
-
prompt: string;
|
|
2989
|
-
agentId: string;
|
|
2984
|
+
id: string;
|
|
2990
2985
|
createdAt: string;
|
|
2991
2986
|
updatedAt: string;
|
|
2987
|
+
projectId: string;
|
|
2988
|
+
tenantId: string;
|
|
2989
|
+
description: 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
|
-
id: string;
|
|
3017
3014
|
name: string;
|
|
3018
|
-
|
|
3019
|
-
prompt: string;
|
|
3020
|
-
agentId: string;
|
|
3015
|
+
id: string;
|
|
3021
3016
|
createdAt: string;
|
|
3022
3017
|
updatedAt: string;
|
|
3018
|
+
projectId: string;
|
|
3019
|
+
tenantId: string;
|
|
3020
|
+
description: 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
|
-
id: string;
|
|
3086
3083
|
name: string;
|
|
3087
|
-
|
|
3088
|
-
prompt: string;
|
|
3089
|
-
agentId: string;
|
|
3084
|
+
id: string;
|
|
3090
3085
|
createdAt: string;
|
|
3091
3086
|
updatedAt: string;
|
|
3087
|
+
projectId: string;
|
|
3088
|
+
tenantId: string;
|
|
3089
|
+
description: 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: {
|
|
@@ -3113,15 +3113,13 @@ declare const updateSubAgent: (db: DatabaseClient) => (params: {
|
|
|
3113
3113
|
subAgentId: string;
|
|
3114
3114
|
data: SubAgentUpdate;
|
|
3115
3115
|
}) => Promise<{
|
|
3116
|
-
tenantId: string;
|
|
3117
|
-
projectId: string;
|
|
3118
|
-
id: string;
|
|
3119
3116
|
name: string;
|
|
3120
|
-
|
|
3121
|
-
prompt: string;
|
|
3122
|
-
agentId: string;
|
|
3117
|
+
id: string;
|
|
3123
3118
|
createdAt: string;
|
|
3124
3119
|
updatedAt: string;
|
|
3120
|
+
projectId: string;
|
|
3121
|
+
tenantId: string;
|
|
3122
|
+
description: string;
|
|
3125
3123
|
models: {
|
|
3126
3124
|
base?: {
|
|
3127
3125
|
model?: string | undefined;
|
|
@@ -3139,6 +3137,8 @@ declare const updateSubAgent: (db: DatabaseClient) => (params: {
|
|
|
3139
3137
|
stopWhen: {
|
|
3140
3138
|
stepCountIs?: number | undefined;
|
|
3141
3139
|
} | null;
|
|
3140
|
+
agentId: string;
|
|
3141
|
+
prompt: string;
|
|
3142
3142
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
3143
3143
|
}>;
|
|
3144
3144
|
/**
|
|
@@ -3185,12 +3185,12 @@ declare const getSubAgentsByIds: (db: DatabaseClient) => (params: {
|
|
|
3185
3185
|
}[]>;
|
|
3186
3186
|
|
|
3187
3187
|
declare const createTask: (db: DatabaseClient) => (params: TaskInsert) => Promise<{
|
|
3188
|
-
tenantId: string;
|
|
3189
|
-
projectId: string;
|
|
3190
3188
|
id: string;
|
|
3191
|
-
agentId: string;
|
|
3192
3189
|
createdAt: string;
|
|
3193
3190
|
updatedAt: string;
|
|
3191
|
+
projectId: string;
|
|
3192
|
+
tenantId: string;
|
|
3193
|
+
agentId: string;
|
|
3194
3194
|
status: string;
|
|
3195
3195
|
metadata: TaskMetadataConfig | null;
|
|
3196
3196
|
contextId: string;
|
|
@@ -3206,12 +3206,12 @@ declare const updateTask: (db: DatabaseClient) => (params: {
|
|
|
3206
3206
|
metadata?: any;
|
|
3207
3207
|
};
|
|
3208
3208
|
}) => Promise<{
|
|
3209
|
-
tenantId: string;
|
|
3210
|
-
projectId: string;
|
|
3211
3209
|
id: string;
|
|
3212
|
-
agentId: string;
|
|
3213
3210
|
createdAt: string;
|
|
3214
3211
|
updatedAt: string;
|
|
3212
|
+
projectId: string;
|
|
3213
|
+
tenantId: string;
|
|
3214
|
+
agentId: string;
|
|
3215
3215
|
status: string;
|
|
3216
3216
|
metadata: TaskMetadataConfig | null;
|
|
3217
3217
|
contextId: string;
|
|
@@ -3226,20 +3226,20 @@ declare const getToolById: (db: DatabaseClient) => (params: {
|
|
|
3226
3226
|
scopes: ProjectScopeConfig;
|
|
3227
3227
|
toolId: string;
|
|
3228
3228
|
}) => Promise<{
|
|
3229
|
-
tenantId: string;
|
|
3230
|
-
projectId: string;
|
|
3231
|
-
id: string;
|
|
3232
3229
|
name: string;
|
|
3230
|
+
headers: Record<string, string> | null;
|
|
3231
|
+
id: string;
|
|
3232
|
+
createdAt: string;
|
|
3233
|
+
updatedAt: string;
|
|
3234
|
+
projectId: string;
|
|
3235
|
+
tenantId: string;
|
|
3233
3236
|
description: string | null;
|
|
3237
|
+
credentialReferenceId: string | null;
|
|
3238
|
+
capabilities: ToolServerCapabilities | null;
|
|
3234
3239
|
config: {
|
|
3235
3240
|
type: "mcp";
|
|
3236
3241
|
mcp: ToolMcpConfig;
|
|
3237
3242
|
};
|
|
3238
|
-
credentialReferenceId: string | null;
|
|
3239
|
-
createdAt: string;
|
|
3240
|
-
updatedAt: string;
|
|
3241
|
-
headers: Record<string, string> | null;
|
|
3242
|
-
capabilities: ToolServerCapabilities | null;
|
|
3243
3243
|
imageUrl: string | null;
|
|
3244
3244
|
lastError: string | null;
|
|
3245
3245
|
} | null>;
|
|
@@ -3273,20 +3273,20 @@ declare const listTools: (db: DatabaseClient) => (params: {
|
|
|
3273
3273
|
};
|
|
3274
3274
|
}>;
|
|
3275
3275
|
declare const createTool: (db: DatabaseClient) => (params: ToolInsert) => Promise<{
|
|
3276
|
-
tenantId: string;
|
|
3277
|
-
projectId: string;
|
|
3278
|
-
id: string;
|
|
3279
3276
|
name: string;
|
|
3277
|
+
headers: Record<string, string> | null;
|
|
3278
|
+
id: string;
|
|
3279
|
+
createdAt: string;
|
|
3280
|
+
updatedAt: string;
|
|
3281
|
+
projectId: string;
|
|
3282
|
+
tenantId: string;
|
|
3280
3283
|
description: string | null;
|
|
3284
|
+
credentialReferenceId: string | null;
|
|
3285
|
+
capabilities: ToolServerCapabilities | null;
|
|
3281
3286
|
config: {
|
|
3282
3287
|
type: "mcp";
|
|
3283
3288
|
mcp: ToolMcpConfig;
|
|
3284
3289
|
};
|
|
3285
|
-
credentialReferenceId: string | null;
|
|
3286
|
-
createdAt: string;
|
|
3287
|
-
updatedAt: string;
|
|
3288
|
-
headers: Record<string, string> | null;
|
|
3289
|
-
capabilities: ToolServerCapabilities | null;
|
|
3290
3290
|
imageUrl: string | null;
|
|
3291
3291
|
lastError: string | null;
|
|
3292
3292
|
}>;
|
|
@@ -3295,20 +3295,20 @@ declare const updateTool: (db: DatabaseClient) => (params: {
|
|
|
3295
3295
|
toolId: string;
|
|
3296
3296
|
data: ToolUpdate;
|
|
3297
3297
|
}) => Promise<{
|
|
3298
|
-
tenantId: string;
|
|
3299
|
-
projectId: string;
|
|
3300
|
-
id: string;
|
|
3301
3298
|
name: string;
|
|
3299
|
+
headers: Record<string, string> | null;
|
|
3300
|
+
id: string;
|
|
3301
|
+
createdAt: string;
|
|
3302
|
+
updatedAt: string;
|
|
3303
|
+
projectId: string;
|
|
3304
|
+
tenantId: string;
|
|
3302
3305
|
description: string | null;
|
|
3306
|
+
credentialReferenceId: string | null;
|
|
3307
|
+
capabilities: ToolServerCapabilities | null;
|
|
3303
3308
|
config: {
|
|
3304
3309
|
type: "mcp";
|
|
3305
3310
|
mcp: ToolMcpConfig;
|
|
3306
3311
|
};
|
|
3307
|
-
credentialReferenceId: string | null;
|
|
3308
|
-
createdAt: string;
|
|
3309
|
-
updatedAt: string;
|
|
3310
|
-
headers: Record<string, string> | null;
|
|
3311
|
-
capabilities: ToolServerCapabilities | null;
|
|
3312
3312
|
imageUrl: string | null;
|
|
3313
3313
|
lastError: string | null;
|
|
3314
3314
|
}>;
|
|
@@ -3323,32 +3323,32 @@ declare const addToolToAgent: (db: DatabaseClient) => (params: {
|
|
|
3323
3323
|
selectedTools?: string[] | null;
|
|
3324
3324
|
headers?: Record<string, string> | null;
|
|
3325
3325
|
}) => Promise<{
|
|
3326
|
-
|
|
3327
|
-
projectId: string;
|
|
3326
|
+
headers: Record<string, string> | null;
|
|
3328
3327
|
id: string;
|
|
3329
|
-
agentId: string;
|
|
3330
3328
|
createdAt: string;
|
|
3331
3329
|
updatedAt: string;
|
|
3332
|
-
|
|
3333
|
-
|
|
3330
|
+
projectId: string;
|
|
3331
|
+
tenantId: string;
|
|
3332
|
+
agentId: string;
|
|
3334
3333
|
selectedTools: string[] | null;
|
|
3335
3334
|
subAgentId: string;
|
|
3335
|
+
toolId: string;
|
|
3336
3336
|
}>;
|
|
3337
3337
|
declare const removeToolFromAgent: (db: DatabaseClient) => (params: {
|
|
3338
3338
|
scopes: AgentScopeConfig;
|
|
3339
3339
|
subAgentId: string;
|
|
3340
3340
|
toolId: string;
|
|
3341
3341
|
}) => Promise<{
|
|
3342
|
-
|
|
3343
|
-
projectId: string;
|
|
3342
|
+
headers: Record<string, string> | null;
|
|
3344
3343
|
id: string;
|
|
3345
|
-
agentId: string;
|
|
3346
3344
|
createdAt: string;
|
|
3347
3345
|
updatedAt: string;
|
|
3348
|
-
|
|
3349
|
-
|
|
3346
|
+
projectId: string;
|
|
3347
|
+
tenantId: string;
|
|
3348
|
+
agentId: string;
|
|
3350
3349
|
selectedTools: string[] | null;
|
|
3351
3350
|
subAgentId: string;
|
|
3351
|
+
toolId: string;
|
|
3352
3352
|
}>;
|
|
3353
3353
|
/**
|
|
3354
3354
|
* Upsert agent-tool relation (create if it doesn't exist, update if it does)
|
|
@@ -3361,16 +3361,16 @@ declare const upsertSubAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
|
3361
3361
|
headers?: Record<string, string> | null;
|
|
3362
3362
|
relationId?: string;
|
|
3363
3363
|
}) => Promise<{
|
|
3364
|
-
|
|
3365
|
-
projectId: string;
|
|
3364
|
+
headers: Record<string, string> | null;
|
|
3366
3365
|
id: string;
|
|
3367
|
-
agentId: string;
|
|
3368
3366
|
createdAt: string;
|
|
3369
3367
|
updatedAt: string;
|
|
3370
|
-
|
|
3371
|
-
|
|
3368
|
+
projectId: string;
|
|
3369
|
+
tenantId: string;
|
|
3370
|
+
agentId: string;
|
|
3372
3371
|
selectedTools: string[] | null;
|
|
3373
3372
|
subAgentId: string;
|
|
3373
|
+
toolId: string;
|
|
3374
3374
|
}>;
|
|
3375
3375
|
/**
|
|
3376
3376
|
* Upsert a tool (create if it doesn't exist, update if it does)
|
|
@@ -3378,20 +3378,20 @@ declare const upsertSubAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
|
3378
3378
|
declare const upsertTool: (db: DatabaseClient) => (params: {
|
|
3379
3379
|
data: ToolInsert;
|
|
3380
3380
|
}) => Promise<{
|
|
3381
|
-
tenantId: string;
|
|
3382
|
-
projectId: string;
|
|
3383
|
-
id: string;
|
|
3384
3381
|
name: string;
|
|
3382
|
+
headers: Record<string, string> | null;
|
|
3383
|
+
id: string;
|
|
3384
|
+
createdAt: string;
|
|
3385
|
+
updatedAt: string;
|
|
3386
|
+
projectId: string;
|
|
3387
|
+
tenantId: string;
|
|
3385
3388
|
description: string | null;
|
|
3389
|
+
credentialReferenceId: string | null;
|
|
3390
|
+
capabilities: ToolServerCapabilities | null;
|
|
3386
3391
|
config: {
|
|
3387
3392
|
type: "mcp";
|
|
3388
3393
|
mcp: ToolMcpConfig;
|
|
3389
3394
|
};
|
|
3390
|
-
credentialReferenceId: string | null;
|
|
3391
|
-
createdAt: string;
|
|
3392
|
-
updatedAt: string;
|
|
3393
|
-
headers: Record<string, string> | null;
|
|
3394
|
-
capabilities: ToolServerCapabilities | null;
|
|
3395
3395
|
imageUrl: string | null;
|
|
3396
3396
|
lastError: string | null;
|
|
3397
3397
|
}>;
|