@inkeep/agents-core 0.19.2 → 0.19.4
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-LZJWVTQ2.js +23 -0
- package/dist/client-exports.d.cts +6 -6
- package/dist/client-exports.d.ts +6 -6
- package/dist/constants/models.cjs +11 -15
- package/dist/constants/models.d.cts +14 -18
- package/dist/constants/models.d.ts +14 -18
- package/dist/constants/models.js +1 -1
- package/dist/db/schema.d.cts +2 -2
- package/dist/db/schema.d.ts +2 -2
- package/dist/index.cjs +11 -15
- package/dist/index.d.cts +257 -257
- package/dist/index.d.ts +257 -257
- package/dist/index.js +2 -2
- package/dist/{schema-D8h85qdU.d.ts → schema-C8QBUZZH.d.ts} +1 -1
- package/dist/{schema-CcSN2XcZ.d.cts → schema-wXveVxxd.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/chunk-4VEUH2FG.js +0 -27
- package/dist/{utility-HqRMF7sM.d.ts → utility-BFHClCiL.d.cts} +246 -246
- package/dist/{utility-HqRMF7sM.d.cts → utility-BFHClCiL.d.ts} +246 -246
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export { ANTHROPIC_MODELS, AnthropicModel, GOOGLE_MODELS, GoogleModel, ModelName, OPENAI_MODELS, OpenAIModel } from './constants/models.js';
|
|
2
2
|
export { h as ACTIVITY_NAMES, f as ACTIVITY_STATUS, e as ACTIVITY_TYPES, g as AGENT_IDS, o as AGGREGATE_OPERATORS, A as AI_OPERATIONS, i as AI_TOOL_TYPES, n as DATA_SOURCES, j 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, O as OPERATORS, l as ORDER_DIRECTIONS, P as PANEL_TYPES, p as QUERY_DEFAULTS, k as QUERY_EXPRESSIONS, Q as QUERY_FIELD_CONFIGS, m as QUERY_TYPES, R as REDUCE_OPERATIONS, d 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 } from './signoz-queries-CuWMQh1H.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import { s as CredentialReferenceApiInsert, t as ContextConfigSelect, m as ContextFetchDefinition, i as MCPTransportType, u as MCPToolConfig, v as AgentScopeConfig, C as ConversationHistoryConfig, w as ProjectScopeConfig, x as PaginationConfig, y as AgentInsert, z as AgentUpdate, B as FullAgentDefinition, D as AgentSelect, E as ApiKeySelect, G as ApiKeyInsert, H as ApiKeyUpdate, I as CreateApiKeyParams, J as ApiKeyCreateResult, K as ArtifactComponentSelect, L as ArtifactComponentInsert, N as ArtifactComponentUpdate, O as SubAgentScopeConfig, Q as ContextCacheSelect, R as ContextCacheInsert, U as ContextConfigInsert, V as ContextConfigUpdate, W as ConversationSelect, X as ConversationInsert, p as ConversationMetadata, Y as ConversationUpdate, Z as CredentialReferenceSelect, _ as ToolSelect, $ as CredentialReferenceInsert, a0 as CredentialReferenceUpdate, a1 as DataComponentSelect, a2 as DataComponentInsert, a3 as DataComponentUpdate, a4 as ExternalAgentInsert, a5 as ExternalAgentSelect, a6 as ExternalAgentUpdate, a7 as FunctionApiInsert, a8 as FunctionToolApiInsert, a9 as FunctionToolApiUpdate, aa as Artifact, ab as LedgerArtifactSelect, r as MessageMetadata, q as MessageContent, ac as MessageVisibility, ad as MessageInsert, ae as MessageUpdate, af as FullProjectDefinition, ag as ProjectInfo, ah as ProjectSelect, ai as PaginationResult, aj as ProjectResourceCounts, ak as ProjectInsert, al as ProjectUpdate, am as SubAgentRelationInsert, an as ExternalSubAgentRelationInsert, ao as SubAgentRelationUpdate, ap as SubAgentToolRelationUpdate, n as ToolMcpConfig, o as ToolServerCapabilities, aq as SubAgentInsert, ar as SubAgentUpdate, as as SubAgentSelect, 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-
|
|
5
|
-
export { ba as A2AError, bG as A2ARequest, bH as A2AResponse, aL as APIKeySecurityScheme, bU as AgentApiInsert, dY as AgentApiInsertSchema, bT as AgentApiSelect, dX as AgentApiSelectSchema, bV as AgentApiUpdate, dZ as AgentApiUpdateSchema, aH as AgentCapabilities, aV as AgentCard, dl as AgentConversationHistoryConfig, dV as AgentInsertSchema, gj as AgentListResponse, aI as AgentProvider, g3 as AgentResponse, dU as AgentSelectSchema, aJ as AgentSkill, e as AgentStopWhen, b as AgentStopWhenSchema, dW as AgentUpdateSchema, fP as AgentWithinContextOfProjectSchema, f0 as AllAgentSchema, cO as AllAgentSelect, cS as ApiKeyApiCreationResponse, f5 as ApiKeyApiCreationResponseSchema, cQ as ApiKeyApiInsert, f6 as ApiKeyApiInsertSchema, cP as ApiKeyApiSelect, f4 as ApiKeyApiSelectSchema, cR as ApiKeyApiUpdate, A as ApiKeyApiUpdateSchema, f2 as ApiKeyInsertSchema, gn as ApiKeyListResponse, g7 as ApiKeyResponse, f1 as ApiKeySelectSchema, f3 as ApiKeyUpdateSchema, cD as ArtifactComponentApiInsert, eO as ArtifactComponentApiInsertSchema, cC as ArtifactComponentApiSelect, eN as ArtifactComponentApiSelectSchema, cE as ArtifactComponentApiUpdate, eP as ArtifactComponentApiUpdateSchema, eL as ArtifactComponentInsertSchema, gs as ArtifactComponentListResponse, gc as ArtifactComponentResponse, eK as ArtifactComponentSelectSchema, eM as ArtifactComponentUpdateSchema, aO as AuthorizationCodeOAuthFlow, d4 as CanUseItem, fO as CanUseItemSchema, bq as CancelTaskRequest, bB as CancelTaskResponse, bA as CancelTaskSuccessResponse, aP as ClientCredentialsOAuthFlow, b8 as ContentTypeNotSupportedError, cr as ContextCacheApiInsert, ev as ContextCacheApiInsertSchema, cq as ContextCacheApiSelect, eu as ContextCacheApiSelectSchema, cs as ContextCacheApiUpdate, ew as ContextCacheApiUpdateSchema, dm as ContextCacheEntry, es as ContextCacheInsertSchema, er as ContextCacheSelectSchema, cp as ContextCacheUpdate, et as ContextCacheUpdateSchema, cl as ContextConfigApiInsert, fy as ContextConfigApiInsertSchema, ck as ContextConfigApiSelect, fx as ContextConfigApiSelectSchema, cm as ContextConfigApiUpdate, fz as ContextConfigApiUpdateSchema, fv as ContextConfigInsertSchema, gm as ContextConfigListResponse, g6 as ContextConfigResponse, fu as ContextConfigSelectSchema, fw as ContextConfigUpdateSchema, ce as ConversationApiInsert, ej as ConversationApiInsertSchema, cd as ConversationApiSelect, ei as ConversationApiSelectSchema, cf as ConversationApiUpdate, ek as ConversationApiUpdateSchema, eg as ConversationInsertSchema, gv as ConversationListResponse, gf as ConversationResponse, dk as ConversationScopeOptions, ef as ConversationSelectSchema, eh as ConversationUpdateSchema, fb as CredentialReferenceApiInsertSchema, cT as CredentialReferenceApiSelect, fa as CredentialReferenceApiSelectSchema, cU as CredentialReferenceApiUpdate, fc as CredentialReferenceApiUpdateSchema, f8 as CredentialReferenceInsertSchema, go as CredentialReferenceListResponse, g8 as CredentialReferenceResponse, f7 as CredentialReferenceSelectSchema, f9 as CredentialReferenceUpdateSchema, cu as DataComponentApiInsert, eC as DataComponentApiInsertSchema, ct as DataComponentApiSelect, eB as DataComponentApiSelectSchema, cv as DataComponentApiUpdate, eD as DataComponentApiUpdateSchema, ez as DataComponentBaseSchema, ey as DataComponentInsertSchema, gr as DataComponentListResponse, gb as DataComponentResponse, ex as DataComponentSelectSchema, eA as DataComponentUpdateSchema, aF as DataPart, fT as ErrorResponseSchema, fU as ExistsResponseSchema, e_ as ExternalAgentApiInsertSchema, cL as ExternalAgentApiSelect, eZ as ExternalAgentApiSelectSchema, cN as ExternalAgentApiUpdate, e$ as ExternalAgentApiUpdateSchema, eX as ExternalAgentInsertSchema, gl as ExternalAgentListResponse, g5 as ExternalAgentResponse, eW as ExternalAgentSelectSchema, eY as ExternalAgentUpdateSchema, cM as ExternalSubAgentApiInsert, bS as ExternalSubAgentRelationApiInsert, dT as ExternalSubAgentRelationApiInsertSchema, dS as ExternalSubAgentRelationInsertSchema, co as FetchConfig, fs as FetchConfigSchema, cn as FetchDefinition, ft as FetchDefinitionSchema, aB as FileBase, aE as FilePart, aC as FileWithBytes, aD as FileWithUri, d3 as FullAgentAgentInsert, a as FullAgentAgentInsertSchema, g0 as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, ca as FunctionApiSelect, j as FunctionApiSelectSchema, cb as FunctionApiUpdate, k as FunctionApiUpdateSchema, c8 as FunctionInsert, fq as FunctionInsertSchema, gp as FunctionListResponse, g9 as FunctionResponse, c7 as FunctionSelect, fp as FunctionSelectSchema, fn as FunctionToolApiInsertSchema, cc as FunctionToolApiSelect, fm as FunctionToolApiSelectSchema, fo as FunctionToolApiUpdateSchema, dE as FunctionToolConfig, dD as FunctionToolConfigSchema, fk as FunctionToolInsertSchema, gq as FunctionToolListResponse, ga as FunctionToolResponse, fj as FunctionToolSelectSchema, fl as FunctionToolUpdateSchema, c9 as FunctionUpdate, fr as FunctionUpdateSchema, bs as GetTaskPushNotificationConfigRequest, bF as GetTaskPushNotificationConfigResponse, bE as GetTaskPushNotificationConfigSuccessResponse, bp as GetTaskRequest, bz as GetTaskResponse, by as GetTaskSuccessResponse, aM as HTTPAuthSecurityScheme, gB as HeadersScopeSchema, aQ as ImplicitOAuthFlow, b3 as InternalError, d5 as InternalSubAgentDefinition, 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, d1 as LedgerArtifactApiInsert, fK as LedgerArtifactApiInsertSchema, d0 as LedgerArtifactApiSelect, fJ as LedgerArtifactApiSelectSchema, d2 as LedgerArtifactApiUpdate, fL as LedgerArtifactApiUpdateSchema, c_ as LedgerArtifactInsert, fH as LedgerArtifactInsertSchema, fG as LedgerArtifactSelectSchema, c$ as LedgerArtifactUpdate, fI as LedgerArtifactUpdateSchema, fR as ListResponseSchema, dx as MAX_ID_LENGTH, dv as MCPServerType, fe as MCPToolConfigSchema, dw as MIN_ID_LENGTH, dn as McpAuthType, dp as McpServerAuth, dr as McpServerCapabilities, ds as McpToolDefinition, ec as McpToolDefinitionSchema, fd as McpToolSchema, dq as McpTransportConfig, ea as McpTransportConfigSchema, aW as Message, ci as MessageApiInsert, ep as MessageApiInsertSchema, ch as MessageApiSelect, eo as MessageApiSelectSchema, cj as MessageApiUpdate, eq as MessageApiUpdateSchema, em as MessageInsertSchema, gw as MessageListResponse, df as MessageMode, bI as MessagePart, gg as MessageResponse, de as MessageRole, cg as MessageSelect, el as MessageSelectSchema, bg as MessageSendConfiguration, bh as MessageSendParams, dd as MessageType, en as MessageUpdateSchema, b1 as MethodNotFoundError, dA as ModelSchema, g as ModelSettings, M as ModelSettingsSchema, dg as Models, aS as OAuth2SecurityScheme, aN as OAuthFlows, aT as OpenIdConnectSecurityScheme, db as Pagination, gK as PaginationQueryParamsSchema, fQ as PaginationSchema, P as Part, az as PartBase, aR as PasswordOAuthFlow, d9 as ProjectApiInsert, f_ as ProjectApiInsertSchema, d8 as ProjectApiSelect, fZ as ProjectApiSelectSchema, da as ProjectApiUpdate, f$ as ProjectApiUpdateSchema, fX as ProjectInsertSchema, gh as ProjectListResponse, dB as ProjectModelSchema, dh as ProjectModels, g1 as ProjectResponse, fW as ProjectSelectSchema, fY as ProjectUpdateSchema, bb as PushNotificationAuthenticationInfo, bc as PushNotificationConfig, b6 as PushNotificationNotSupportedError, fV as RemovedResponseSchema, dC as SandboxConfig, l as SandboxConfigSchema, 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, fS as SingleResponseSchema, dj as StatusComponent, fM as StatusComponentSchema, fN as StatusUpdateSchema, di as StatusUpdateSettings, d as StopWhen, S as StopWhenSchema, bL as SubAgentApiInsert, dJ as SubAgentApiInsertSchema, bK as SubAgentApiSelect, dI as SubAgentApiSelectSchema, bM as SubAgentApiUpdate, dK as SubAgentApiUpdateSchema, cJ as SubAgentArtifactComponentApiInsert, eU as SubAgentArtifactComponentApiInsertSchema, cI as SubAgentArtifactComponentApiSelect, eT as SubAgentArtifactComponentApiSelectSchema, cK as SubAgentArtifactComponentApiUpdate, eV as SubAgentArtifactComponentApiUpdateSchema, cG as SubAgentArtifactComponentInsert, eR as SubAgentArtifactComponentInsertSchema, gA as SubAgentArtifactComponentListResponse, gy as SubAgentArtifactComponentResponse, cF as SubAgentArtifactComponentSelect, eQ as SubAgentArtifactComponentSelectSchema, cH as SubAgentArtifactComponentUpdate, eS as SubAgentArtifactComponentUpdateSchema, cA as SubAgentDataComponentApiInsert, eI as SubAgentDataComponentApiInsertSchema, cz as SubAgentDataComponentApiSelect, eH as SubAgentDataComponentApiSelectSchema, cB as SubAgentDataComponentApiUpdate, eJ as SubAgentDataComponentApiUpdateSchema, cx as SubAgentDataComponentInsert, eF as SubAgentDataComponentInsertSchema, gz as SubAgentDataComponentListResponse, gx as SubAgentDataComponentResponse, cw as SubAgentDataComponentSelect, eE as SubAgentDataComponentSelectSchema, cy as SubAgentDataComponentUpdate, eG as SubAgentDataComponentUpdateSchema, d6 as SubAgentDefinition, dG as SubAgentInsertSchema, gi as SubAgentListResponse, bP as SubAgentRelationApiInsert, dP as SubAgentRelationApiInsertSchema, bO as SubAgentRelationApiSelect, dO as SubAgentRelationApiSelectSchema, bQ as SubAgentRelationApiUpdate, dQ as SubAgentRelationApiUpdateSchema, dM as SubAgentRelationInsertSchema, gt as SubAgentRelationListResponse, bR as SubAgentRelationQuery, dR as SubAgentRelationQuerySchema, gd as SubAgentRelationResponse, bN as SubAgentRelationSelect, dL as SubAgentRelationSelectSchema, dN as SubAgentRelationUpdateSchema, g2 as SubAgentResponse, dF as SubAgentSelectSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema, cY as SubAgentToolRelationApiInsert, fE as SubAgentToolRelationApiInsertSchema, cX as SubAgentToolRelationApiSelect, fD as SubAgentToolRelationApiSelectSchema, cZ as SubAgentToolRelationApiUpdate, fF as SubAgentToolRelationApiUpdateSchema, cW as SubAgentToolRelationInsert, fB as SubAgentToolRelationInsertSchema, gu as SubAgentToolRelationListResponse, ge as SubAgentToolRelationResponse, cV as SubAgentToolRelationSelect, fA as SubAgentToolRelationSelectSchema, fC as SubAgentToolRelationUpdateSchema, dH as SubAgentUpdateSchema, dc as SummaryEvent, dt as TOOL_STATUS_VALUES, aY as Task, bY as TaskApiInsert, e2 as TaskApiInsertSchema, bX as TaskApiSelect, e1 as TaskApiSelectSchema, bZ as TaskApiUpdate, e3 as TaskApiUpdateSchema, bJ as TaskArtifact, a_ as TaskArtifactUpdateEvent, be as TaskIdParams, d$ as TaskInsertSchema, b5 as TaskNotCancelableError, b4 as TaskNotFoundError, bd as TaskPushNotificationConfig, bf as TaskQueryParams, c2 as TaskRelationApiInsert, e8 as TaskRelationApiInsertSchema, c1 as TaskRelationApiSelect, e7 as TaskRelationApiSelectSchema, c3 as TaskRelationApiUpdate, e9 as TaskRelationApiUpdateSchema, b$ as TaskRelationInsert, e5 as TaskRelationInsertSchema, b_ as TaskRelationSelect, e4 as TaskRelationSelectSchema, c0 as TaskRelationUpdate, e6 as TaskRelationUpdateSchema, bt as TaskResubscriptionRequest, d_ as TaskSelectSchema, aG as TaskState, aX as TaskStatus, aZ as TaskStatusUpdateEvent, bW as TaskUpdate, e0 as TaskUpdateSchema, gD as TenantIdParamsSchema, gC as TenantParamsSchema, gH as TenantProjectAgentIdParamsSchema, gG as TenantProjectAgentParamsSchema, gJ as TenantProjectAgentSubAgentIdParamsSchema, gI as TenantProjectAgentSubAgentParamsSchema, gF as TenantProjectIdParamsSchema, gE as TenantProjectParamsSchema, aA as TextPart, c5 as ToolApiInsert, fh as ToolApiInsertSchema, c4 as ToolApiSelect, fg as ToolApiSelectSchema, c6 as ToolApiUpdate, fi as ToolApiUpdateSchema, d7 as ToolDefinition, ee as ToolInsertSchema, gk as ToolListResponse, g4 as ToolResponse, ed as ToolSelectSchema, eb as ToolStatusSchema, ff as ToolUpdateSchema, dy as URL_SAFE_ID_PATTERN, b7 as UnsupportedOperationError, du as VALID_RELATION_TYPES, dz as resourceIdSchema } from './utility-HqRMF7sM.js';
|
|
4
|
+
import { s as CredentialReferenceApiInsert, t as ContextConfigSelect, m as ContextFetchDefinition, i as MCPTransportType, u as MCPToolConfig, v as AgentScopeConfig, C as ConversationHistoryConfig, w as ProjectScopeConfig, x as PaginationConfig, y as AgentInsert, z as AgentUpdate, B as FullAgentDefinition, D as AgentSelect, E as ApiKeySelect, G as ApiKeyInsert, H as ApiKeyUpdate, I as CreateApiKeyParams, J as ApiKeyCreateResult, K as ArtifactComponentSelect, L as ArtifactComponentInsert, N as ArtifactComponentUpdate, O as SubAgentScopeConfig, Q as ContextCacheSelect, R as ContextCacheInsert, U as ContextConfigInsert, V as ContextConfigUpdate, W as ConversationSelect, X as ConversationInsert, p as ConversationMetadata, Y as ConversationUpdate, Z as CredentialReferenceSelect, _ as ToolSelect, $ as CredentialReferenceInsert, a0 as CredentialReferenceUpdate, a1 as DataComponentSelect, a2 as DataComponentInsert, a3 as DataComponentUpdate, a4 as ExternalAgentInsert, a5 as ExternalAgentSelect, a6 as ExternalAgentUpdate, a7 as FunctionApiInsert, a8 as FunctionToolApiInsert, a9 as FunctionToolApiUpdate, aa as Artifact, ab as LedgerArtifactSelect, r as MessageMetadata, q as MessageContent, ac as MessageVisibility, ad as MessageInsert, ae as MessageUpdate, af as FullProjectDefinition, ag as ProjectInfo, ah as ProjectSelect, ai as PaginationResult, aj as ProjectResourceCounts, ak as ProjectInsert, al as ProjectUpdate, am as SubAgentRelationInsert, an as ExternalSubAgentRelationInsert, ao as SubAgentRelationUpdate, ap as SubAgentToolRelationUpdate, n as ToolMcpConfig, o as ToolServerCapabilities, aq as SubAgentInsert, ar as SubAgentUpdate, as as SubAgentSelect, 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-BFHClCiL.js';
|
|
5
|
+
export { ba as A2AError, bG as A2ARequest, bH as A2AResponse, aL as APIKeySecurityScheme, bU as AgentApiInsert, dY as AgentApiInsertSchema, bT as AgentApiSelect, dX as AgentApiSelectSchema, bV as AgentApiUpdate, dZ as AgentApiUpdateSchema, aH as AgentCapabilities, aV as AgentCard, dl as AgentConversationHistoryConfig, dV as AgentInsertSchema, gj as AgentListResponse, aI as AgentProvider, g3 as AgentResponse, dU as AgentSelectSchema, aJ as AgentSkill, e as AgentStopWhen, b as AgentStopWhenSchema, dW as AgentUpdateSchema, fP as AgentWithinContextOfProjectSchema, f0 as AllAgentSchema, cO as AllAgentSelect, cS as ApiKeyApiCreationResponse, f5 as ApiKeyApiCreationResponseSchema, cQ as ApiKeyApiInsert, f6 as ApiKeyApiInsertSchema, cP as ApiKeyApiSelect, f4 as ApiKeyApiSelectSchema, cR as ApiKeyApiUpdate, A as ApiKeyApiUpdateSchema, f2 as ApiKeyInsertSchema, gn as ApiKeyListResponse, g7 as ApiKeyResponse, f1 as ApiKeySelectSchema, f3 as ApiKeyUpdateSchema, cD as ArtifactComponentApiInsert, eO as ArtifactComponentApiInsertSchema, cC as ArtifactComponentApiSelect, eN as ArtifactComponentApiSelectSchema, cE as ArtifactComponentApiUpdate, eP as ArtifactComponentApiUpdateSchema, eL as ArtifactComponentInsertSchema, gs as ArtifactComponentListResponse, gc as ArtifactComponentResponse, eK as ArtifactComponentSelectSchema, eM as ArtifactComponentUpdateSchema, aO as AuthorizationCodeOAuthFlow, d4 as CanUseItem, fO as CanUseItemSchema, bq as CancelTaskRequest, bB as CancelTaskResponse, bA as CancelTaskSuccessResponse, aP as ClientCredentialsOAuthFlow, b8 as ContentTypeNotSupportedError, cr as ContextCacheApiInsert, ev as ContextCacheApiInsertSchema, cq as ContextCacheApiSelect, eu as ContextCacheApiSelectSchema, cs as ContextCacheApiUpdate, ew as ContextCacheApiUpdateSchema, dm as ContextCacheEntry, es as ContextCacheInsertSchema, er as ContextCacheSelectSchema, cp as ContextCacheUpdate, et as ContextCacheUpdateSchema, cl as ContextConfigApiInsert, fy as ContextConfigApiInsertSchema, ck as ContextConfigApiSelect, fx as ContextConfigApiSelectSchema, cm as ContextConfigApiUpdate, fz as ContextConfigApiUpdateSchema, fv as ContextConfigInsertSchema, gm as ContextConfigListResponse, g6 as ContextConfigResponse, fu as ContextConfigSelectSchema, fw as ContextConfigUpdateSchema, ce as ConversationApiInsert, ej as ConversationApiInsertSchema, cd as ConversationApiSelect, ei as ConversationApiSelectSchema, cf as ConversationApiUpdate, ek as ConversationApiUpdateSchema, eg as ConversationInsertSchema, gv as ConversationListResponse, gf as ConversationResponse, dk as ConversationScopeOptions, ef as ConversationSelectSchema, eh as ConversationUpdateSchema, fb as CredentialReferenceApiInsertSchema, cT as CredentialReferenceApiSelect, fa as CredentialReferenceApiSelectSchema, cU as CredentialReferenceApiUpdate, fc as CredentialReferenceApiUpdateSchema, f8 as CredentialReferenceInsertSchema, go as CredentialReferenceListResponse, g8 as CredentialReferenceResponse, f7 as CredentialReferenceSelectSchema, f9 as CredentialReferenceUpdateSchema, cu as DataComponentApiInsert, eC as DataComponentApiInsertSchema, ct as DataComponentApiSelect, eB as DataComponentApiSelectSchema, cv as DataComponentApiUpdate, eD as DataComponentApiUpdateSchema, ez as DataComponentBaseSchema, ey as DataComponentInsertSchema, gr as DataComponentListResponse, gb as DataComponentResponse, ex as DataComponentSelectSchema, eA as DataComponentUpdateSchema, aF as DataPart, fT as ErrorResponseSchema, fU as ExistsResponseSchema, e_ as ExternalAgentApiInsertSchema, cL as ExternalAgentApiSelect, eZ as ExternalAgentApiSelectSchema, cN as ExternalAgentApiUpdate, e$ as ExternalAgentApiUpdateSchema, eX as ExternalAgentInsertSchema, gl as ExternalAgentListResponse, g5 as ExternalAgentResponse, eW as ExternalAgentSelectSchema, eY as ExternalAgentUpdateSchema, cM as ExternalSubAgentApiInsert, bS as ExternalSubAgentRelationApiInsert, dT as ExternalSubAgentRelationApiInsertSchema, dS as ExternalSubAgentRelationInsertSchema, co as FetchConfig, fs as FetchConfigSchema, cn as FetchDefinition, ft as FetchDefinitionSchema, aB as FileBase, aE as FilePart, aC as FileWithBytes, aD as FileWithUri, d3 as FullAgentAgentInsert, a as FullAgentAgentInsertSchema, g0 as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, ca as FunctionApiSelect, j as FunctionApiSelectSchema, cb as FunctionApiUpdate, k as FunctionApiUpdateSchema, c8 as FunctionInsert, fq as FunctionInsertSchema, gp as FunctionListResponse, g9 as FunctionResponse, c7 as FunctionSelect, fp as FunctionSelectSchema, fn as FunctionToolApiInsertSchema, cc as FunctionToolApiSelect, fm as FunctionToolApiSelectSchema, fo as FunctionToolApiUpdateSchema, dE as FunctionToolConfig, dD as FunctionToolConfigSchema, fk as FunctionToolInsertSchema, gq as FunctionToolListResponse, ga as FunctionToolResponse, fj as FunctionToolSelectSchema, fl as FunctionToolUpdateSchema, c9 as FunctionUpdate, fr as FunctionUpdateSchema, bs as GetTaskPushNotificationConfigRequest, bF as GetTaskPushNotificationConfigResponse, bE as GetTaskPushNotificationConfigSuccessResponse, bp as GetTaskRequest, bz as GetTaskResponse, by as GetTaskSuccessResponse, aM as HTTPAuthSecurityScheme, gB as HeadersScopeSchema, aQ as ImplicitOAuthFlow, b3 as InternalError, d5 as InternalSubAgentDefinition, 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, d1 as LedgerArtifactApiInsert, fK as LedgerArtifactApiInsertSchema, d0 as LedgerArtifactApiSelect, fJ as LedgerArtifactApiSelectSchema, d2 as LedgerArtifactApiUpdate, fL as LedgerArtifactApiUpdateSchema, c_ as LedgerArtifactInsert, fH as LedgerArtifactInsertSchema, fG as LedgerArtifactSelectSchema, c$ as LedgerArtifactUpdate, fI as LedgerArtifactUpdateSchema, fR as ListResponseSchema, dx as MAX_ID_LENGTH, dv as MCPServerType, fe as MCPToolConfigSchema, dw as MIN_ID_LENGTH, dn as McpAuthType, dp as McpServerAuth, dr as McpServerCapabilities, ds as McpToolDefinition, ec as McpToolDefinitionSchema, fd as McpToolSchema, dq as McpTransportConfig, ea as McpTransportConfigSchema, aW as Message, ci as MessageApiInsert, ep as MessageApiInsertSchema, ch as MessageApiSelect, eo as MessageApiSelectSchema, cj as MessageApiUpdate, eq as MessageApiUpdateSchema, em as MessageInsertSchema, gw as MessageListResponse, df as MessageMode, bI as MessagePart, gg as MessageResponse, de as MessageRole, cg as MessageSelect, el as MessageSelectSchema, bg as MessageSendConfiguration, bh as MessageSendParams, dd as MessageType, en as MessageUpdateSchema, b1 as MethodNotFoundError, dA as ModelSchema, g as ModelSettings, M as ModelSettingsSchema, dg as Models, aS as OAuth2SecurityScheme, aN as OAuthFlows, aT as OpenIdConnectSecurityScheme, db as Pagination, gK as PaginationQueryParamsSchema, fQ as PaginationSchema, P as Part, az as PartBase, aR as PasswordOAuthFlow, d9 as ProjectApiInsert, f_ as ProjectApiInsertSchema, d8 as ProjectApiSelect, fZ as ProjectApiSelectSchema, da as ProjectApiUpdate, f$ as ProjectApiUpdateSchema, fX as ProjectInsertSchema, gh as ProjectListResponse, dB as ProjectModelSchema, dh as ProjectModels, g1 as ProjectResponse, fW as ProjectSelectSchema, fY as ProjectUpdateSchema, bb as PushNotificationAuthenticationInfo, bc as PushNotificationConfig, b6 as PushNotificationNotSupportedError, fV as RemovedResponseSchema, dC as SandboxConfig, l as SandboxConfigSchema, 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, fS as SingleResponseSchema, dj as StatusComponent, fM as StatusComponentSchema, fN as StatusUpdateSchema, di as StatusUpdateSettings, d as StopWhen, S as StopWhenSchema, bL as SubAgentApiInsert, dJ as SubAgentApiInsertSchema, bK as SubAgentApiSelect, dI as SubAgentApiSelectSchema, bM as SubAgentApiUpdate, dK as SubAgentApiUpdateSchema, cJ as SubAgentArtifactComponentApiInsert, eU as SubAgentArtifactComponentApiInsertSchema, cI as SubAgentArtifactComponentApiSelect, eT as SubAgentArtifactComponentApiSelectSchema, cK as SubAgentArtifactComponentApiUpdate, eV as SubAgentArtifactComponentApiUpdateSchema, cG as SubAgentArtifactComponentInsert, eR as SubAgentArtifactComponentInsertSchema, gA as SubAgentArtifactComponentListResponse, gy as SubAgentArtifactComponentResponse, cF as SubAgentArtifactComponentSelect, eQ as SubAgentArtifactComponentSelectSchema, cH as SubAgentArtifactComponentUpdate, eS as SubAgentArtifactComponentUpdateSchema, cA as SubAgentDataComponentApiInsert, eI as SubAgentDataComponentApiInsertSchema, cz as SubAgentDataComponentApiSelect, eH as SubAgentDataComponentApiSelectSchema, cB as SubAgentDataComponentApiUpdate, eJ as SubAgentDataComponentApiUpdateSchema, cx as SubAgentDataComponentInsert, eF as SubAgentDataComponentInsertSchema, gz as SubAgentDataComponentListResponse, gx as SubAgentDataComponentResponse, cw as SubAgentDataComponentSelect, eE as SubAgentDataComponentSelectSchema, cy as SubAgentDataComponentUpdate, eG as SubAgentDataComponentUpdateSchema, d6 as SubAgentDefinition, dG as SubAgentInsertSchema, gi as SubAgentListResponse, bP as SubAgentRelationApiInsert, dP as SubAgentRelationApiInsertSchema, bO as SubAgentRelationApiSelect, dO as SubAgentRelationApiSelectSchema, bQ as SubAgentRelationApiUpdate, dQ as SubAgentRelationApiUpdateSchema, dM as SubAgentRelationInsertSchema, gt as SubAgentRelationListResponse, bR as SubAgentRelationQuery, dR as SubAgentRelationQuerySchema, gd as SubAgentRelationResponse, bN as SubAgentRelationSelect, dL as SubAgentRelationSelectSchema, dN as SubAgentRelationUpdateSchema, g2 as SubAgentResponse, dF as SubAgentSelectSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema, cY as SubAgentToolRelationApiInsert, fE as SubAgentToolRelationApiInsertSchema, cX as SubAgentToolRelationApiSelect, fD as SubAgentToolRelationApiSelectSchema, cZ as SubAgentToolRelationApiUpdate, fF as SubAgentToolRelationApiUpdateSchema, cW as SubAgentToolRelationInsert, fB as SubAgentToolRelationInsertSchema, gu as SubAgentToolRelationListResponse, ge as SubAgentToolRelationResponse, cV as SubAgentToolRelationSelect, fA as SubAgentToolRelationSelectSchema, fC as SubAgentToolRelationUpdateSchema, dH as SubAgentUpdateSchema, dc as SummaryEvent, dt as TOOL_STATUS_VALUES, aY as Task, bY as TaskApiInsert, e2 as TaskApiInsertSchema, bX as TaskApiSelect, e1 as TaskApiSelectSchema, bZ as TaskApiUpdate, e3 as TaskApiUpdateSchema, bJ as TaskArtifact, a_ as TaskArtifactUpdateEvent, be as TaskIdParams, d$ as TaskInsertSchema, b5 as TaskNotCancelableError, b4 as TaskNotFoundError, bd as TaskPushNotificationConfig, bf as TaskQueryParams, c2 as TaskRelationApiInsert, e8 as TaskRelationApiInsertSchema, c1 as TaskRelationApiSelect, e7 as TaskRelationApiSelectSchema, c3 as TaskRelationApiUpdate, e9 as TaskRelationApiUpdateSchema, b$ as TaskRelationInsert, e5 as TaskRelationInsertSchema, b_ as TaskRelationSelect, e4 as TaskRelationSelectSchema, c0 as TaskRelationUpdate, e6 as TaskRelationUpdateSchema, bt as TaskResubscriptionRequest, d_ as TaskSelectSchema, aG as TaskState, aX as TaskStatus, aZ as TaskStatusUpdateEvent, bW as TaskUpdate, e0 as TaskUpdateSchema, gD as TenantIdParamsSchema, gC as TenantParamsSchema, gH as TenantProjectAgentIdParamsSchema, gG as TenantProjectAgentParamsSchema, gJ as TenantProjectAgentSubAgentIdParamsSchema, gI as TenantProjectAgentSubAgentParamsSchema, gF as TenantProjectIdParamsSchema, gE as TenantProjectParamsSchema, aA as TextPart, c5 as ToolApiInsert, fh as ToolApiInsertSchema, c4 as ToolApiSelect, fg as ToolApiSelectSchema, c6 as ToolApiUpdate, fi as ToolApiUpdateSchema, d7 as ToolDefinition, ee as ToolInsertSchema, gk as ToolListResponse, g4 as ToolResponse, ed as ToolSelectSchema, eb as ToolStatusSchema, ff as ToolUpdateSchema, dy as URL_SAFE_ID_PATTERN, b7 as UnsupportedOperationError, du as VALID_RELATION_TYPES, dz as resourceIdSchema } from './utility-BFHClCiL.js';
|
|
6
6
|
import { CredentialStore } from './types/index.js';
|
|
7
7
|
export { CorsConfig, ServerConfig, ServerOptions } from './types/index.js';
|
|
8
8
|
import { LibSQLDatabase } from 'drizzle-orm/libsql';
|
|
9
|
-
import { s as schema } from './schema-
|
|
10
|
-
export { q as agentFunctionToolRelations, U as agentFunctionToolRelationsRelations, 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, 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-
|
|
9
|
+
import { s as schema } from './schema-C8QBUZZH.js';
|
|
10
|
+
export { q as agentFunctionToolRelations, U as agentFunctionToolRelationsRelations, 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, 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-C8QBUZZH.js';
|
|
11
11
|
import { LoggerOptions, TransportSingleOptions, Logger } from 'pino';
|
|
12
12
|
import { SSEClientTransportOptions } from '@modelcontextprotocol/sdk/client/sse.js';
|
|
13
13
|
import { StreamableHTTPClientTransportOptions } from '@modelcontextprotocol/sdk/client/streamableHttp.js';
|
|
@@ -823,14 +823,13 @@ declare class CredentialStuffer {
|
|
|
823
823
|
declare const getAgentById: (db: DatabaseClient) => (params: {
|
|
824
824
|
scopes: AgentScopeConfig;
|
|
825
825
|
}) => Promise<{
|
|
826
|
-
tenantId: string;
|
|
827
|
-
projectId: string;
|
|
828
|
-
id: string;
|
|
829
826
|
name: string;
|
|
830
|
-
|
|
831
|
-
prompt: string | null;
|
|
827
|
+
id: string;
|
|
832
828
|
createdAt: string;
|
|
833
829
|
updatedAt: string;
|
|
830
|
+
projectId: string;
|
|
831
|
+
tenantId: string;
|
|
832
|
+
description: string | null;
|
|
834
833
|
models: {
|
|
835
834
|
base?: {
|
|
836
835
|
model?: string | undefined;
|
|
@@ -850,6 +849,7 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
|
|
|
850
849
|
} | null;
|
|
851
850
|
defaultSubAgentId: string | null;
|
|
852
851
|
contextConfigId: string | null;
|
|
852
|
+
prompt: string | null;
|
|
853
853
|
statusUpdates: {
|
|
854
854
|
enabled?: boolean | undefined;
|
|
855
855
|
numEvents?: number | undefined;
|
|
@@ -869,14 +869,13 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
|
|
|
869
869
|
declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
|
|
870
870
|
scopes: AgentScopeConfig;
|
|
871
871
|
}) => Promise<{
|
|
872
|
-
tenantId: string;
|
|
873
|
-
projectId: string;
|
|
874
|
-
id: string;
|
|
875
872
|
name: string;
|
|
876
|
-
|
|
877
|
-
prompt: string | null;
|
|
873
|
+
id: string;
|
|
878
874
|
createdAt: string;
|
|
879
875
|
updatedAt: string;
|
|
876
|
+
projectId: string;
|
|
877
|
+
tenantId: string;
|
|
878
|
+
description: string | null;
|
|
880
879
|
models: {
|
|
881
880
|
base?: {
|
|
882
881
|
model?: string | undefined;
|
|
@@ -896,6 +895,7 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
|
|
|
896
895
|
} | null;
|
|
897
896
|
defaultSubAgentId: string | null;
|
|
898
897
|
contextConfigId: string | null;
|
|
898
|
+
prompt: string | null;
|
|
899
899
|
statusUpdates: {
|
|
900
900
|
enabled?: boolean | undefined;
|
|
901
901
|
numEvents?: number | undefined;
|
|
@@ -912,15 +912,13 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
|
|
|
912
912
|
}[] | undefined;
|
|
913
913
|
} | null;
|
|
914
914
|
defaultSubAgent: {
|
|
915
|
-
tenantId: string;
|
|
916
|
-
projectId: string;
|
|
917
|
-
id: string;
|
|
918
915
|
name: string;
|
|
919
|
-
|
|
920
|
-
prompt: string;
|
|
921
|
-
agentId: string;
|
|
916
|
+
id: string;
|
|
922
917
|
createdAt: string;
|
|
923
918
|
updatedAt: string;
|
|
919
|
+
projectId: string;
|
|
920
|
+
tenantId: string;
|
|
921
|
+
description: string;
|
|
924
922
|
models: {
|
|
925
923
|
base?: {
|
|
926
924
|
model?: string | undefined;
|
|
@@ -938,20 +936,21 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
|
|
|
938
936
|
stopWhen: {
|
|
939
937
|
stepCountIs?: number | undefined;
|
|
940
938
|
} | null;
|
|
939
|
+
agentId: string;
|
|
940
|
+
prompt: string;
|
|
941
941
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
942
942
|
} | null;
|
|
943
943
|
} | null>;
|
|
944
944
|
declare const listAgents: (db: DatabaseClient) => (params: {
|
|
945
945
|
scopes: ProjectScopeConfig;
|
|
946
946
|
}) => Promise<{
|
|
947
|
-
tenantId: string;
|
|
948
|
-
projectId: string;
|
|
949
|
-
id: string;
|
|
950
947
|
name: string;
|
|
951
|
-
|
|
952
|
-
prompt: string | null;
|
|
948
|
+
id: string;
|
|
953
949
|
createdAt: string;
|
|
954
950
|
updatedAt: string;
|
|
951
|
+
projectId: string;
|
|
952
|
+
tenantId: string;
|
|
953
|
+
description: string | null;
|
|
955
954
|
models: {
|
|
956
955
|
base?: {
|
|
957
956
|
model?: string | undefined;
|
|
@@ -971,6 +970,7 @@ declare const listAgents: (db: DatabaseClient) => (params: {
|
|
|
971
970
|
} | null;
|
|
972
971
|
defaultSubAgentId: string | null;
|
|
973
972
|
contextConfigId: string | null;
|
|
973
|
+
prompt: string | null;
|
|
974
974
|
statusUpdates: {
|
|
975
975
|
enabled?: boolean | undefined;
|
|
976
976
|
numEvents?: number | undefined;
|
|
@@ -1043,14 +1043,13 @@ declare const listAgentsPaginated: (db: DatabaseClient) => (params: {
|
|
|
1043
1043
|
};
|
|
1044
1044
|
}>;
|
|
1045
1045
|
declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promise<{
|
|
1046
|
-
tenantId: string;
|
|
1047
|
-
projectId: string;
|
|
1048
|
-
id: string;
|
|
1049
1046
|
name: string;
|
|
1050
|
-
|
|
1051
|
-
prompt: string | null;
|
|
1047
|
+
id: string;
|
|
1052
1048
|
createdAt: string;
|
|
1053
1049
|
updatedAt: string;
|
|
1050
|
+
projectId: string;
|
|
1051
|
+
tenantId: string;
|
|
1052
|
+
description: string | null;
|
|
1054
1053
|
models: {
|
|
1055
1054
|
base?: {
|
|
1056
1055
|
model?: string | undefined;
|
|
@@ -1070,6 +1069,7 @@ declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promis
|
|
|
1070
1069
|
} | null;
|
|
1071
1070
|
defaultSubAgentId: string | null;
|
|
1072
1071
|
contextConfigId: string | null;
|
|
1072
|
+
prompt: string | null;
|
|
1073
1073
|
statusUpdates: {
|
|
1074
1074
|
enabled?: boolean | undefined;
|
|
1075
1075
|
numEvents?: number | undefined;
|
|
@@ -1090,14 +1090,13 @@ declare const updateAgent: (db: DatabaseClient) => (params: {
|
|
|
1090
1090
|
scopes: AgentScopeConfig;
|
|
1091
1091
|
data: AgentUpdate;
|
|
1092
1092
|
}) => Promise<{
|
|
1093
|
-
tenantId: string;
|
|
1094
|
-
projectId: string;
|
|
1095
|
-
id: string;
|
|
1096
1093
|
name: string;
|
|
1097
|
-
|
|
1098
|
-
prompt: string | null;
|
|
1094
|
+
id: string;
|
|
1099
1095
|
createdAt: string;
|
|
1100
1096
|
updatedAt: string;
|
|
1097
|
+
projectId: string;
|
|
1098
|
+
tenantId: string;
|
|
1099
|
+
description: string | null;
|
|
1101
1100
|
models: {
|
|
1102
1101
|
base?: {
|
|
1103
1102
|
model?: string | undefined;
|
|
@@ -1117,6 +1116,7 @@ declare const updateAgent: (db: DatabaseClient) => (params: {
|
|
|
1117
1116
|
} | null;
|
|
1118
1117
|
defaultSubAgentId: string | null;
|
|
1119
1118
|
contextConfigId: string | null;
|
|
1119
|
+
prompt: string | null;
|
|
1120
1120
|
statusUpdates: {
|
|
1121
1121
|
enabled?: boolean | undefined;
|
|
1122
1122
|
numEvents?: number | undefined;
|
|
@@ -1170,49 +1170,49 @@ declare const getApiKeyById: (db: DatabaseClient) => (params: {
|
|
|
1170
1170
|
scopes: ProjectScopeConfig;
|
|
1171
1171
|
id: string;
|
|
1172
1172
|
}) => 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;
|
|
1178
1180
|
publicId: string;
|
|
1179
1181
|
keyHash: string;
|
|
1180
1182
|
keyPrefix: string;
|
|
1181
1183
|
lastUsedAt: string | null;
|
|
1182
1184
|
expiresAt: string | null;
|
|
1183
|
-
createdAt: string;
|
|
1184
|
-
updatedAt: string;
|
|
1185
1185
|
} | undefined>;
|
|
1186
1186
|
declare const getApiKeyByPublicId: (db: DatabaseClient) => (publicId: string) => Promise<{
|
|
1187
|
-
tenantId: string;
|
|
1188
|
-
projectId: string;
|
|
1189
|
-
id: string;
|
|
1190
1187
|
name: string | null;
|
|
1188
|
+
id: string;
|
|
1189
|
+
createdAt: string;
|
|
1190
|
+
updatedAt: string;
|
|
1191
|
+
projectId: string;
|
|
1192
|
+
tenantId: string;
|
|
1191
1193
|
agentId: string;
|
|
1192
1194
|
publicId: string;
|
|
1193
1195
|
keyHash: string;
|
|
1194
1196
|
keyPrefix: string;
|
|
1195
1197
|
lastUsedAt: string | null;
|
|
1196
1198
|
expiresAt: string | null;
|
|
1197
|
-
createdAt: string;
|
|
1198
|
-
updatedAt: string;
|
|
1199
1199
|
} | undefined>;
|
|
1200
1200
|
declare const listApiKeys: (db: DatabaseClient) => (params: {
|
|
1201
1201
|
scopes: ProjectScopeConfig;
|
|
1202
1202
|
agentId?: string;
|
|
1203
1203
|
}) => Promise<{
|
|
1204
|
-
tenantId: string;
|
|
1205
|
-
projectId: string;
|
|
1206
|
-
id: string;
|
|
1207
1204
|
name: string | null;
|
|
1205
|
+
id: string;
|
|
1206
|
+
createdAt: string;
|
|
1207
|
+
updatedAt: string;
|
|
1208
|
+
projectId: string;
|
|
1209
|
+
tenantId: string;
|
|
1208
1210
|
agentId: string;
|
|
1209
1211
|
publicId: string;
|
|
1210
1212
|
keyHash: string;
|
|
1211
1213
|
keyPrefix: string;
|
|
1212
1214
|
lastUsedAt: string | null;
|
|
1213
1215
|
expiresAt: string | null;
|
|
1214
|
-
createdAt: string;
|
|
1215
|
-
updatedAt: string;
|
|
1216
1216
|
}[]>;
|
|
1217
1217
|
declare const listApiKeysPaginated: (db: DatabaseClient) => (params: {
|
|
1218
1218
|
scopes: ProjectScopeConfig;
|
|
@@ -1228,36 +1228,36 @@ declare const listApiKeysPaginated: (db: DatabaseClient) => (params: {
|
|
|
1228
1228
|
};
|
|
1229
1229
|
}>;
|
|
1230
1230
|
declare const createApiKey: (db: DatabaseClient) => (params: ApiKeyInsert) => Promise<{
|
|
1231
|
-
tenantId: string;
|
|
1232
|
-
projectId: string;
|
|
1233
|
-
id: string;
|
|
1234
1231
|
name: string | null;
|
|
1232
|
+
id: string;
|
|
1233
|
+
createdAt: string;
|
|
1234
|
+
updatedAt: string;
|
|
1235
|
+
projectId: string;
|
|
1236
|
+
tenantId: string;
|
|
1235
1237
|
agentId: string;
|
|
1236
1238
|
publicId: string;
|
|
1237
1239
|
keyHash: string;
|
|
1238
1240
|
keyPrefix: string;
|
|
1239
1241
|
lastUsedAt: string | null;
|
|
1240
1242
|
expiresAt: string | null;
|
|
1241
|
-
createdAt: string;
|
|
1242
|
-
updatedAt: string;
|
|
1243
1243
|
}>;
|
|
1244
1244
|
declare const updateApiKey: (db: DatabaseClient) => (params: {
|
|
1245
1245
|
scopes: ProjectScopeConfig;
|
|
1246
1246
|
id: string;
|
|
1247
1247
|
data: ApiKeyUpdate;
|
|
1248
1248
|
}) => Promise<{
|
|
1249
|
-
tenantId: string;
|
|
1250
|
-
projectId: string;
|
|
1251
|
-
id: string;
|
|
1252
1249
|
name: string | null;
|
|
1250
|
+
id: string;
|
|
1251
|
+
createdAt: string;
|
|
1252
|
+
updatedAt: string;
|
|
1253
|
+
projectId: string;
|
|
1254
|
+
tenantId: string;
|
|
1253
1255
|
agentId: string;
|
|
1254
1256
|
publicId: string;
|
|
1255
1257
|
keyHash: string;
|
|
1256
1258
|
keyPrefix: string;
|
|
1257
1259
|
lastUsedAt: string | null;
|
|
1258
1260
|
expiresAt: string | null;
|
|
1259
|
-
createdAt: string;
|
|
1260
|
-
updatedAt: string;
|
|
1261
1261
|
}>;
|
|
1262
1262
|
declare const deleteApiKey: (db: DatabaseClient) => (params: {
|
|
1263
1263
|
scopes: ProjectScopeConfig;
|
|
@@ -1286,13 +1286,13 @@ declare const getArtifactComponentById: (db: DatabaseClient) => (params: {
|
|
|
1286
1286
|
scopes: ProjectScopeConfig;
|
|
1287
1287
|
id: string;
|
|
1288
1288
|
}) => Promise<{
|
|
1289
|
-
tenantId: string;
|
|
1290
|
-
projectId: string;
|
|
1291
|
-
id: string;
|
|
1292
1289
|
name: string;
|
|
1293
|
-
|
|
1290
|
+
id: string;
|
|
1294
1291
|
createdAt: string;
|
|
1295
1292
|
updatedAt: string;
|
|
1293
|
+
projectId: string;
|
|
1294
|
+
tenantId: string;
|
|
1295
|
+
description: string;
|
|
1296
1296
|
props: Record<string, unknown> | null;
|
|
1297
1297
|
} | undefined>;
|
|
1298
1298
|
declare const listArtifactComponents: (db: DatabaseClient) => (params: {
|
|
@@ -1320,13 +1320,13 @@ declare const listArtifactComponentsPaginated: (db: DatabaseClient) => (params:
|
|
|
1320
1320
|
};
|
|
1321
1321
|
}>;
|
|
1322
1322
|
declare const createArtifactComponent: (db: DatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
|
|
1323
|
-
tenantId: string;
|
|
1324
|
-
projectId: string;
|
|
1325
|
-
id: string;
|
|
1326
1323
|
name: string;
|
|
1327
|
-
|
|
1324
|
+
id: string;
|
|
1328
1325
|
createdAt: string;
|
|
1329
1326
|
updatedAt: string;
|
|
1327
|
+
projectId: string;
|
|
1328
|
+
tenantId: string;
|
|
1329
|
+
description: string;
|
|
1330
1330
|
props: Record<string, unknown> | null;
|
|
1331
1331
|
}>;
|
|
1332
1332
|
declare const updateArtifactComponent: (db: DatabaseClient) => (params: {
|
|
@@ -1334,13 +1334,13 @@ declare const updateArtifactComponent: (db: DatabaseClient) => (params: {
|
|
|
1334
1334
|
id: string;
|
|
1335
1335
|
data: ArtifactComponentUpdate;
|
|
1336
1336
|
}) => Promise<{
|
|
1337
|
-
tenantId: string;
|
|
1338
|
-
projectId: string;
|
|
1339
|
-
id: string;
|
|
1340
1337
|
name: string;
|
|
1341
|
-
|
|
1338
|
+
id: string;
|
|
1342
1339
|
createdAt: string;
|
|
1343
1340
|
updatedAt: string;
|
|
1341
|
+
projectId: string;
|
|
1342
|
+
tenantId: string;
|
|
1343
|
+
description: string;
|
|
1344
1344
|
props: Record<string, unknown> | null;
|
|
1345
1345
|
}>;
|
|
1346
1346
|
declare const deleteArtifactComponent: (db: DatabaseClient) => (params: {
|
|
@@ -1363,11 +1363,11 @@ declare const associateArtifactComponentWithAgent: (db: DatabaseClient) => (para
|
|
|
1363
1363
|
scopes: SubAgentScopeConfig;
|
|
1364
1364
|
artifactComponentId: string;
|
|
1365
1365
|
}) => Promise<{
|
|
1366
|
-
tenantId: string;
|
|
1367
|
-
projectId: string;
|
|
1368
1366
|
id: string;
|
|
1369
|
-
agentId: string;
|
|
1370
1367
|
createdAt: string;
|
|
1368
|
+
projectId: string;
|
|
1369
|
+
tenantId: string;
|
|
1370
|
+
agentId: string;
|
|
1371
1371
|
subAgentId: string;
|
|
1372
1372
|
artifactComponentId: string;
|
|
1373
1373
|
}>;
|
|
@@ -1406,11 +1406,11 @@ declare const upsertAgentArtifactComponentRelation: (db: DatabaseClient) => (par
|
|
|
1406
1406
|
scopes: SubAgentScopeConfig;
|
|
1407
1407
|
artifactComponentId: string;
|
|
1408
1408
|
}) => Promise<{
|
|
1409
|
-
tenantId: string;
|
|
1410
|
-
projectId: string;
|
|
1411
1409
|
id: string;
|
|
1412
|
-
agentId: string;
|
|
1413
1410
|
createdAt: string;
|
|
1411
|
+
projectId: string;
|
|
1412
|
+
tenantId: string;
|
|
1413
|
+
agentId: string;
|
|
1414
1414
|
subAgentId: string;
|
|
1415
1415
|
artifactComponentId: string;
|
|
1416
1416
|
} | null>;
|
|
@@ -1490,26 +1490,26 @@ declare const getContextConfigById: (db: DatabaseClient) => (params: {
|
|
|
1490
1490
|
scopes: AgentScopeConfig;
|
|
1491
1491
|
id: string;
|
|
1492
1492
|
}) => Promise<{
|
|
1493
|
-
tenantId: string;
|
|
1494
|
-
projectId: string;
|
|
1495
1493
|
id: string;
|
|
1496
|
-
agentId: string;
|
|
1497
1494
|
createdAt: string;
|
|
1498
1495
|
updatedAt: string;
|
|
1496
|
+
projectId: string;
|
|
1497
|
+
tenantId: string;
|
|
1499
1498
|
headersSchema: unknown;
|
|
1500
1499
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
1500
|
+
agentId: string;
|
|
1501
1501
|
} | undefined>;
|
|
1502
1502
|
declare const listContextConfigs: (db: DatabaseClient) => (params: {
|
|
1503
1503
|
scopes: AgentScopeConfig;
|
|
1504
1504
|
}) => Promise<{
|
|
1505
|
-
tenantId: string;
|
|
1506
|
-
projectId: string;
|
|
1507
1505
|
id: string;
|
|
1508
|
-
agentId: string;
|
|
1509
1506
|
createdAt: string;
|
|
1510
1507
|
updatedAt: string;
|
|
1508
|
+
projectId: string;
|
|
1509
|
+
tenantId: string;
|
|
1511
1510
|
headersSchema: unknown;
|
|
1512
1511
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
1512
|
+
agentId: string;
|
|
1513
1513
|
}[]>;
|
|
1514
1514
|
declare const listContextConfigsPaginated: (db: DatabaseClient) => (params: {
|
|
1515
1515
|
scopes: AgentScopeConfig;
|
|
@@ -1524,28 +1524,28 @@ declare const listContextConfigsPaginated: (db: DatabaseClient) => (params: {
|
|
|
1524
1524
|
};
|
|
1525
1525
|
}>;
|
|
1526
1526
|
declare const createContextConfig: (db: DatabaseClient) => (params: ContextConfigInsert) => Promise<{
|
|
1527
|
-
tenantId: string;
|
|
1528
|
-
projectId: string;
|
|
1529
1527
|
id: string;
|
|
1530
|
-
agentId: string;
|
|
1531
1528
|
createdAt: string;
|
|
1532
1529
|
updatedAt: string;
|
|
1530
|
+
projectId: string;
|
|
1531
|
+
tenantId: string;
|
|
1533
1532
|
headersSchema: unknown;
|
|
1534
1533
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
1534
|
+
agentId: string;
|
|
1535
1535
|
}>;
|
|
1536
1536
|
declare const updateContextConfig: (db: DatabaseClient) => (params: {
|
|
1537
1537
|
scopes: AgentScopeConfig;
|
|
1538
1538
|
id: string;
|
|
1539
1539
|
data: Partial<ContextConfigUpdate>;
|
|
1540
1540
|
}) => Promise<{
|
|
1541
|
-
tenantId: string;
|
|
1542
|
-
projectId: string;
|
|
1543
1541
|
id: string;
|
|
1544
|
-
agentId: string;
|
|
1545
1542
|
createdAt: string;
|
|
1546
1543
|
updatedAt: string;
|
|
1544
|
+
projectId: string;
|
|
1545
|
+
tenantId: string;
|
|
1547
1546
|
headersSchema: unknown;
|
|
1548
1547
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
1548
|
+
agentId: string;
|
|
1549
1549
|
}>;
|
|
1550
1550
|
declare const deleteContextConfig: (db: DatabaseClient) => (params: {
|
|
1551
1551
|
scopes: AgentScopeConfig;
|
|
@@ -1564,14 +1564,14 @@ declare const countContextConfigs: (db: DatabaseClient) => (params: {
|
|
|
1564
1564
|
declare const upsertContextConfig: (db: DatabaseClient) => (params: {
|
|
1565
1565
|
data: ContextConfigInsert;
|
|
1566
1566
|
}) => Promise<{
|
|
1567
|
-
tenantId: string;
|
|
1568
|
-
projectId: string;
|
|
1569
1567
|
id: string;
|
|
1570
|
-
agentId: string;
|
|
1571
1568
|
createdAt: string;
|
|
1572
1569
|
updatedAt: string;
|
|
1570
|
+
projectId: string;
|
|
1571
|
+
tenantId: string;
|
|
1573
1572
|
headersSchema: unknown;
|
|
1574
1573
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
1574
|
+
agentId: string;
|
|
1575
1575
|
}>;
|
|
1576
1576
|
|
|
1577
1577
|
declare const listConversations: (db: DatabaseClient) => (params: {
|
|
@@ -1583,12 +1583,12 @@ declare const listConversations: (db: DatabaseClient) => (params: {
|
|
|
1583
1583
|
total: number;
|
|
1584
1584
|
}>;
|
|
1585
1585
|
declare const createConversation: (db: DatabaseClient) => (params: ConversationInsert) => Promise<{
|
|
1586
|
-
tenantId: string;
|
|
1587
|
-
projectId: string;
|
|
1588
1586
|
id: string;
|
|
1589
|
-
title: string | null;
|
|
1590
1587
|
createdAt: string;
|
|
1591
1588
|
updatedAt: string;
|
|
1589
|
+
projectId: string;
|
|
1590
|
+
tenantId: string;
|
|
1591
|
+
title: string | null;
|
|
1592
1592
|
metadata: ConversationMetadata | null;
|
|
1593
1593
|
userId: string | null;
|
|
1594
1594
|
activeSubAgentId: string;
|
|
@@ -1599,12 +1599,12 @@ declare const updateConversation: (db: DatabaseClient) => (params: {
|
|
|
1599
1599
|
conversationId: string;
|
|
1600
1600
|
data: ConversationUpdate;
|
|
1601
1601
|
}) => Promise<{
|
|
1602
|
-
tenantId: string;
|
|
1603
|
-
projectId: string;
|
|
1604
1602
|
id: string;
|
|
1605
|
-
title: string | null;
|
|
1606
1603
|
createdAt: string;
|
|
1607
1604
|
updatedAt: string;
|
|
1605
|
+
projectId: string;
|
|
1606
|
+
tenantId: string;
|
|
1607
|
+
title: string | null;
|
|
1608
1608
|
metadata: ConversationMetadata | null;
|
|
1609
1609
|
userId: string | null;
|
|
1610
1610
|
activeSubAgentId: string;
|
|
@@ -1619,12 +1619,12 @@ declare const updateConversationActiveAgent: (db: DatabaseClient) => (params: {
|
|
|
1619
1619
|
conversationId: string;
|
|
1620
1620
|
activeSubAgentId: string;
|
|
1621
1621
|
}) => Promise<{
|
|
1622
|
-
tenantId: string;
|
|
1623
|
-
projectId: string;
|
|
1624
1622
|
id: string;
|
|
1625
|
-
title: string | null;
|
|
1626
1623
|
createdAt: string;
|
|
1627
1624
|
updatedAt: string;
|
|
1625
|
+
projectId: string;
|
|
1626
|
+
tenantId: string;
|
|
1627
|
+
title: string | null;
|
|
1628
1628
|
metadata: ConversationMetadata | null;
|
|
1629
1629
|
userId: string | null;
|
|
1630
1630
|
activeSubAgentId: string;
|
|
@@ -1634,12 +1634,12 @@ declare const getConversation: (db: DatabaseClient) => (params: {
|
|
|
1634
1634
|
scopes: ProjectScopeConfig;
|
|
1635
1635
|
conversationId: string;
|
|
1636
1636
|
}) => Promise<{
|
|
1637
|
-
tenantId: string;
|
|
1638
|
-
projectId: string;
|
|
1639
1637
|
id: string;
|
|
1640
|
-
title: string | null;
|
|
1641
1638
|
createdAt: string;
|
|
1642
1639
|
updatedAt: string;
|
|
1640
|
+
projectId: string;
|
|
1641
|
+
tenantId: string;
|
|
1642
|
+
title: string | null;
|
|
1643
1643
|
metadata: ConversationMetadata | null;
|
|
1644
1644
|
userId: string | null;
|
|
1645
1645
|
activeSubAgentId: string;
|
|
@@ -1658,12 +1658,12 @@ declare const createOrGetConversation: (db: DatabaseClient) => (input: Conversat
|
|
|
1658
1658
|
metadata?: ConversationMetadata | null | undefined;
|
|
1659
1659
|
contextConfigId?: string | undefined;
|
|
1660
1660
|
} | {
|
|
1661
|
-
tenantId: string;
|
|
1662
|
-
projectId: string;
|
|
1663
1661
|
id: string;
|
|
1664
|
-
title: string | null;
|
|
1665
1662
|
createdAt: string;
|
|
1666
1663
|
updatedAt: string;
|
|
1664
|
+
projectId: string;
|
|
1665
|
+
tenantId: string;
|
|
1666
|
+
title: string | null;
|
|
1667
1667
|
metadata: ConversationMetadata | null;
|
|
1668
1668
|
userId: string | null;
|
|
1669
1669
|
activeSubAgentId: string;
|
|
@@ -1684,12 +1684,12 @@ declare const getActiveAgentForConversation: (db: DatabaseClient) => (params: {
|
|
|
1684
1684
|
scopes: ProjectScopeConfig;
|
|
1685
1685
|
conversationId: string;
|
|
1686
1686
|
}) => Promise<{
|
|
1687
|
-
tenantId: string;
|
|
1688
|
-
projectId: string;
|
|
1689
1687
|
id: string;
|
|
1690
|
-
title: string | null;
|
|
1691
1688
|
createdAt: string;
|
|
1692
1689
|
updatedAt: string;
|
|
1690
|
+
projectId: string;
|
|
1691
|
+
tenantId: string;
|
|
1692
|
+
title: string | null;
|
|
1693
1693
|
metadata: ConversationMetadata | null;
|
|
1694
1694
|
userId: string | null;
|
|
1695
1695
|
activeSubAgentId: string;
|
|
@@ -1853,11 +1853,11 @@ declare const associateDataComponentWithAgent: (db: DatabaseClient) => (params:
|
|
|
1853
1853
|
scopes: SubAgentScopeConfig;
|
|
1854
1854
|
dataComponentId: string;
|
|
1855
1855
|
}) => Promise<{
|
|
1856
|
-
tenantId: string;
|
|
1857
|
-
projectId: string;
|
|
1858
1856
|
id: string;
|
|
1859
|
-
agentId: string;
|
|
1860
1857
|
createdAt: string;
|
|
1858
|
+
projectId: string;
|
|
1859
|
+
tenantId: string;
|
|
1860
|
+
agentId: string;
|
|
1861
1861
|
subAgentId: string;
|
|
1862
1862
|
dataComponentId: string;
|
|
1863
1863
|
}>;
|
|
@@ -1895,11 +1895,11 @@ declare const upsertAgentDataComponentRelation: (db: DatabaseClient) => (params:
|
|
|
1895
1895
|
scopes: SubAgentScopeConfig;
|
|
1896
1896
|
dataComponentId: string;
|
|
1897
1897
|
}) => Promise<{
|
|
1898
|
-
tenantId: string;
|
|
1899
|
-
projectId: string;
|
|
1900
1898
|
id: string;
|
|
1901
|
-
agentId: string;
|
|
1902
1899
|
createdAt: string;
|
|
1900
|
+
projectId: string;
|
|
1901
|
+
tenantId: string;
|
|
1902
|
+
agentId: string;
|
|
1903
1903
|
subAgentId: string;
|
|
1904
1904
|
dataComponentId: string;
|
|
1905
1905
|
} | null>;
|
|
@@ -2074,14 +2074,14 @@ declare const createFunctionTool: (db: DatabaseClient) => (params: {
|
|
|
2074
2074
|
data: FunctionToolApiInsert;
|
|
2075
2075
|
scopes: AgentScopeConfig;
|
|
2076
2076
|
}) => Promise<{
|
|
2077
|
-
tenantId: string;
|
|
2078
|
-
projectId: string;
|
|
2079
|
-
id: string;
|
|
2080
2077
|
name: string;
|
|
2081
|
-
|
|
2082
|
-
agentId: string;
|
|
2078
|
+
id: string;
|
|
2083
2079
|
createdAt: string;
|
|
2084
2080
|
updatedAt: string;
|
|
2081
|
+
projectId: string;
|
|
2082
|
+
tenantId: string;
|
|
2083
|
+
description: string | null;
|
|
2084
|
+
agentId: string;
|
|
2085
2085
|
functionId: string;
|
|
2086
2086
|
}>;
|
|
2087
2087
|
/**
|
|
@@ -2092,14 +2092,14 @@ declare const updateFunctionTool: (db: DatabaseClient) => (params: {
|
|
|
2092
2092
|
functionToolId: string;
|
|
2093
2093
|
data: FunctionToolApiUpdate;
|
|
2094
2094
|
}) => Promise<{
|
|
2095
|
-
tenantId: string;
|
|
2096
|
-
projectId: string;
|
|
2097
|
-
id: string;
|
|
2098
2095
|
name: string;
|
|
2099
|
-
|
|
2100
|
-
agentId: string;
|
|
2096
|
+
id: string;
|
|
2101
2097
|
createdAt: string;
|
|
2102
2098
|
updatedAt: string;
|
|
2099
|
+
projectId: string;
|
|
2100
|
+
tenantId: string;
|
|
2101
|
+
description: string | null;
|
|
2102
|
+
agentId: string;
|
|
2103
2103
|
functionId: string;
|
|
2104
2104
|
}>;
|
|
2105
2105
|
/**
|
|
@@ -2116,14 +2116,14 @@ declare const upsertFunctionTool: (db: DatabaseClient) => (params: {
|
|
|
2116
2116
|
data: FunctionToolApiInsert;
|
|
2117
2117
|
scopes: AgentScopeConfig;
|
|
2118
2118
|
}) => Promise<{
|
|
2119
|
-
tenantId: string;
|
|
2120
|
-
projectId: string;
|
|
2121
|
-
id: string;
|
|
2122
2119
|
name: string;
|
|
2123
|
-
|
|
2124
|
-
agentId: string;
|
|
2120
|
+
id: string;
|
|
2125
2121
|
createdAt: string;
|
|
2126
2122
|
updatedAt: string;
|
|
2123
|
+
projectId: string;
|
|
2124
|
+
tenantId: string;
|
|
2125
|
+
description: string | null;
|
|
2126
|
+
agentId: string;
|
|
2127
2127
|
functionId: string;
|
|
2128
2128
|
}>;
|
|
2129
2129
|
declare const getFunctionToolsForSubAgent: (db: DatabaseClient) => (params: {
|
|
@@ -2280,11 +2280,11 @@ declare const getMessageById: (db: DatabaseClient) => (params: {
|
|
|
2280
2280
|
scopes: ProjectScopeConfig;
|
|
2281
2281
|
messageId: string;
|
|
2282
2282
|
}) => Promise<{
|
|
2283
|
-
tenantId: string;
|
|
2284
|
-
projectId: string;
|
|
2285
2283
|
id: string;
|
|
2286
2284
|
createdAt: string;
|
|
2287
2285
|
updatedAt: string;
|
|
2286
|
+
projectId: string;
|
|
2287
|
+
tenantId: string;
|
|
2288
2288
|
metadata: MessageMetadata | null;
|
|
2289
2289
|
content: MessageContent;
|
|
2290
2290
|
conversationId: string;
|
|
@@ -2401,11 +2401,11 @@ declare const getVisibleMessages: (db: DatabaseClient) => (params: {
|
|
|
2401
2401
|
id: string;
|
|
2402
2402
|
}[]>;
|
|
2403
2403
|
declare const createMessage: (db: DatabaseClient) => (params: MessageInsert) => Promise<{
|
|
2404
|
-
tenantId: string;
|
|
2405
|
-
projectId: string;
|
|
2406
2404
|
id: string;
|
|
2407
2405
|
createdAt: string;
|
|
2408
2406
|
updatedAt: string;
|
|
2407
|
+
projectId: string;
|
|
2408
|
+
tenantId: string;
|
|
2409
2409
|
metadata: MessageMetadata | null;
|
|
2410
2410
|
content: MessageContent;
|
|
2411
2411
|
conversationId: string;
|
|
@@ -2426,11 +2426,11 @@ declare const updateMessage: (db: DatabaseClient) => (params: {
|
|
|
2426
2426
|
messageId: string;
|
|
2427
2427
|
data: MessageUpdate;
|
|
2428
2428
|
}) => Promise<{
|
|
2429
|
-
tenantId: string;
|
|
2430
|
-
projectId: string;
|
|
2431
2429
|
id: string;
|
|
2432
2430
|
createdAt: string;
|
|
2433
2431
|
updatedAt: string;
|
|
2432
|
+
projectId: string;
|
|
2433
|
+
tenantId: string;
|
|
2434
2434
|
metadata: MessageMetadata | null;
|
|
2435
2435
|
content: MessageContent;
|
|
2436
2436
|
conversationId: string;
|
|
@@ -2450,11 +2450,11 @@ declare const deleteMessage: (db: DatabaseClient) => (params: {
|
|
|
2450
2450
|
scopes: ProjectScopeConfig;
|
|
2451
2451
|
messageId: string;
|
|
2452
2452
|
}) => Promise<{
|
|
2453
|
-
tenantId: string;
|
|
2454
|
-
projectId: string;
|
|
2455
2453
|
id: string;
|
|
2456
2454
|
createdAt: string;
|
|
2457
2455
|
updatedAt: string;
|
|
2456
|
+
projectId: string;
|
|
2457
|
+
tenantId: string;
|
|
2458
2458
|
metadata: MessageMetadata | null;
|
|
2459
2459
|
content: MessageContent;
|
|
2460
2460
|
conversationId: string;
|
|
@@ -2478,7 +2478,7 @@ declare const countMessagesByConversation: (db: DatabaseClient) => (params: {
|
|
|
2478
2478
|
/**
|
|
2479
2479
|
* Server-side data access layer for Full Project operations.
|
|
2480
2480
|
* This module provides functions for creating, retrieving, updating, and deleting
|
|
2481
|
-
* complete project definitions with all nested resources (
|
|
2481
|
+
* complete project definitions with all nested resources (Agents, Sub Agents, tools, etc.).
|
|
2482
2482
|
*/
|
|
2483
2483
|
|
|
2484
2484
|
type ProjectLogger = ReturnType<typeof getLogger>;
|
|
@@ -2573,12 +2573,12 @@ declare const getAgentRelationById: (db: DatabaseClient) => (params: {
|
|
|
2573
2573
|
scopes: AgentScopeConfig;
|
|
2574
2574
|
relationId: string;
|
|
2575
2575
|
}) => Promise<{
|
|
2576
|
-
tenantId: string;
|
|
2577
|
-
projectId: string;
|
|
2578
2576
|
id: string;
|
|
2579
|
-
agentId: string;
|
|
2580
2577
|
createdAt: string;
|
|
2581
2578
|
updatedAt: string;
|
|
2579
|
+
projectId: string;
|
|
2580
|
+
tenantId: string;
|
|
2581
|
+
agentId: string;
|
|
2582
2582
|
sourceSubAgentId: string;
|
|
2583
2583
|
targetSubAgentId: string | null;
|
|
2584
2584
|
externalSubAgentId: string | null;
|
|
@@ -2610,12 +2610,12 @@ declare const listAgentRelations: (db: DatabaseClient) => (params: {
|
|
|
2610
2610
|
declare const getAgentRelations: (db: DatabaseClient) => (params: {
|
|
2611
2611
|
scopes: SubAgentScopeConfig;
|
|
2612
2612
|
}) => Promise<{
|
|
2613
|
-
tenantId: string;
|
|
2614
|
-
projectId: string;
|
|
2615
2613
|
id: string;
|
|
2616
|
-
agentId: string;
|
|
2617
2614
|
createdAt: string;
|
|
2618
2615
|
updatedAt: string;
|
|
2616
|
+
projectId: string;
|
|
2617
|
+
tenantId: string;
|
|
2618
|
+
agentId: string;
|
|
2619
2619
|
sourceSubAgentId: string;
|
|
2620
2620
|
targetSubAgentId: string | null;
|
|
2621
2621
|
externalSubAgentId: string | null;
|
|
@@ -2624,12 +2624,12 @@ declare const getAgentRelations: (db: DatabaseClient) => (params: {
|
|
|
2624
2624
|
declare const getAgentRelationsByAgent: (db: DatabaseClient) => (params: {
|
|
2625
2625
|
scopes: AgentScopeConfig;
|
|
2626
2626
|
}) => Promise<{
|
|
2627
|
-
tenantId: string;
|
|
2628
|
-
projectId: string;
|
|
2629
2627
|
id: string;
|
|
2630
|
-
agentId: string;
|
|
2631
2628
|
createdAt: string;
|
|
2632
2629
|
updatedAt: string;
|
|
2630
|
+
projectId: string;
|
|
2631
|
+
tenantId: string;
|
|
2632
|
+
agentId: string;
|
|
2633
2633
|
sourceSubAgentId: string;
|
|
2634
2634
|
targetSubAgentId: string | null;
|
|
2635
2635
|
externalSubAgentId: string | null;
|
|
@@ -2729,12 +2729,12 @@ declare const getRelatedAgentsForAgent: (db: DatabaseClient) => (params: {
|
|
|
2729
2729
|
}[];
|
|
2730
2730
|
}>;
|
|
2731
2731
|
declare const createSubAgentRelation: (db: DatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
|
|
2732
|
-
tenantId: string;
|
|
2733
|
-
projectId: string;
|
|
2734
2732
|
id: string;
|
|
2735
|
-
agentId: string;
|
|
2736
2733
|
createdAt: string;
|
|
2737
2734
|
updatedAt: string;
|
|
2735
|
+
projectId: string;
|
|
2736
|
+
tenantId: string;
|
|
2737
|
+
agentId: string;
|
|
2738
2738
|
sourceSubAgentId: string;
|
|
2739
2739
|
targetSubAgentId: string | null;
|
|
2740
2740
|
externalSubAgentId: string | null;
|
|
@@ -2750,12 +2750,12 @@ declare const getAgentRelationByParams: (db: DatabaseClient) => (params: {
|
|
|
2750
2750
|
externalSubAgentId?: string;
|
|
2751
2751
|
relationType: string;
|
|
2752
2752
|
}) => Promise<{
|
|
2753
|
-
tenantId: string;
|
|
2754
|
-
projectId: string;
|
|
2755
2753
|
id: string;
|
|
2756
|
-
agentId: string;
|
|
2757
2754
|
createdAt: string;
|
|
2758
2755
|
updatedAt: string;
|
|
2756
|
+
projectId: string;
|
|
2757
|
+
tenantId: string;
|
|
2758
|
+
agentId: string;
|
|
2759
2759
|
sourceSubAgentId: string;
|
|
2760
2760
|
targetSubAgentId: string | null;
|
|
2761
2761
|
externalSubAgentId: string | null;
|
|
@@ -2765,24 +2765,24 @@ declare const getAgentRelationByParams: (db: DatabaseClient) => (params: {
|
|
|
2765
2765
|
* Upsert agent relation (create if it doesn't exist, no-op if it does)
|
|
2766
2766
|
*/
|
|
2767
2767
|
declare const upsertAgentRelation: (db: DatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
|
|
2768
|
-
tenantId: string;
|
|
2769
|
-
projectId: string;
|
|
2770
2768
|
id: string;
|
|
2771
|
-
agentId: string;
|
|
2772
2769
|
createdAt: string;
|
|
2773
2770
|
updatedAt: string;
|
|
2771
|
+
projectId: string;
|
|
2772
|
+
tenantId: string;
|
|
2773
|
+
agentId: string;
|
|
2774
2774
|
sourceSubAgentId: string;
|
|
2775
2775
|
targetSubAgentId: string | null;
|
|
2776
2776
|
externalSubAgentId: string | null;
|
|
2777
2777
|
relationType: string | null;
|
|
2778
2778
|
}>;
|
|
2779
2779
|
declare const createExternalAgentRelation: (db: DatabaseClient) => (params: ExternalSubAgentRelationInsert) => Promise<{
|
|
2780
|
-
tenantId: string;
|
|
2781
|
-
projectId: string;
|
|
2782
2780
|
id: string;
|
|
2783
|
-
agentId: string;
|
|
2784
2781
|
createdAt: string;
|
|
2785
2782
|
updatedAt: string;
|
|
2783
|
+
projectId: string;
|
|
2784
|
+
tenantId: string;
|
|
2785
|
+
agentId: string;
|
|
2786
2786
|
sourceSubAgentId: string;
|
|
2787
2787
|
targetSubAgentId: string | null;
|
|
2788
2788
|
externalSubAgentId: string | null;
|
|
@@ -2793,12 +2793,12 @@ declare const updateAgentRelation: (db: DatabaseClient) => (params: {
|
|
|
2793
2793
|
relationId: string;
|
|
2794
2794
|
data: SubAgentRelationUpdate;
|
|
2795
2795
|
}) => Promise<{
|
|
2796
|
-
tenantId: string;
|
|
2797
|
-
projectId: string;
|
|
2798
2796
|
id: string;
|
|
2799
|
-
agentId: string;
|
|
2800
2797
|
createdAt: string;
|
|
2801
2798
|
updatedAt: string;
|
|
2799
|
+
projectId: string;
|
|
2800
|
+
tenantId: string;
|
|
2801
|
+
agentId: string;
|
|
2802
2802
|
sourceSubAgentId: string;
|
|
2803
2803
|
targetSubAgentId: string | null;
|
|
2804
2804
|
externalSubAgentId: string | null;
|
|
@@ -2821,32 +2821,32 @@ declare const createAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
|
2821
2821
|
headers?: Record<string, string> | null;
|
|
2822
2822
|
};
|
|
2823
2823
|
}) => Promise<{
|
|
2824
|
-
|
|
2825
|
-
projectId: string;
|
|
2824
|
+
headers: Record<string, string> | null;
|
|
2826
2825
|
id: string;
|
|
2827
|
-
agentId: string;
|
|
2828
2826
|
createdAt: string;
|
|
2829
2827
|
updatedAt: string;
|
|
2830
|
-
|
|
2831
|
-
|
|
2828
|
+
projectId: string;
|
|
2829
|
+
tenantId: string;
|
|
2830
|
+
agentId: string;
|
|
2832
2831
|
selectedTools: string[] | null;
|
|
2833
2832
|
subAgentId: string;
|
|
2833
|
+
toolId: string;
|
|
2834
2834
|
}>;
|
|
2835
2835
|
declare const updateAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
2836
2836
|
scopes: AgentScopeConfig;
|
|
2837
2837
|
relationId: string;
|
|
2838
2838
|
data: SubAgentToolRelationUpdate;
|
|
2839
2839
|
}) => Promise<{
|
|
2840
|
-
|
|
2841
|
-
projectId: string;
|
|
2840
|
+
headers: Record<string, string> | null;
|
|
2842
2841
|
id: string;
|
|
2843
|
-
agentId: string;
|
|
2844
2842
|
createdAt: string;
|
|
2845
2843
|
updatedAt: string;
|
|
2846
|
-
|
|
2847
|
-
|
|
2844
|
+
projectId: string;
|
|
2845
|
+
tenantId: string;
|
|
2846
|
+
agentId: string;
|
|
2848
2847
|
selectedTools: string[] | null;
|
|
2849
2848
|
subAgentId: string;
|
|
2849
|
+
toolId: string;
|
|
2850
2850
|
}>;
|
|
2851
2851
|
declare const deleteAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
2852
2852
|
scopes: AgentScopeConfig;
|
|
@@ -2859,16 +2859,16 @@ declare const getAgentToolRelationById: (db: DatabaseClient) => (params: {
|
|
|
2859
2859
|
scopes: SubAgentScopeConfig;
|
|
2860
2860
|
relationId: string;
|
|
2861
2861
|
}) => Promise<{
|
|
2862
|
-
|
|
2863
|
-
projectId: string;
|
|
2862
|
+
headers: Record<string, string> | null;
|
|
2864
2863
|
id: string;
|
|
2865
|
-
agentId: string;
|
|
2866
2864
|
createdAt: string;
|
|
2867
2865
|
updatedAt: string;
|
|
2868
|
-
|
|
2869
|
-
|
|
2866
|
+
projectId: string;
|
|
2867
|
+
tenantId: string;
|
|
2868
|
+
agentId: string;
|
|
2870
2869
|
selectedTools: string[] | null;
|
|
2871
2870
|
subAgentId: string;
|
|
2871
|
+
toolId: string;
|
|
2872
2872
|
} | undefined>;
|
|
2873
2873
|
declare const getAgentToolRelationByAgent: (db: DatabaseClient) => (params: {
|
|
2874
2874
|
scopes: SubAgentScopeConfig;
|
|
@@ -3038,15 +3038,13 @@ declare const getSubAgentById: (db: DatabaseClient) => (params: {
|
|
|
3038
3038
|
scopes: AgentScopeConfig;
|
|
3039
3039
|
subAgentId: string;
|
|
3040
3040
|
}) => Promise<{
|
|
3041
|
-
tenantId: string;
|
|
3042
|
-
projectId: string;
|
|
3043
|
-
id: string;
|
|
3044
3041
|
name: string;
|
|
3045
|
-
|
|
3046
|
-
prompt: string;
|
|
3047
|
-
agentId: string;
|
|
3042
|
+
id: string;
|
|
3048
3043
|
createdAt: string;
|
|
3049
3044
|
updatedAt: string;
|
|
3045
|
+
projectId: string;
|
|
3046
|
+
tenantId: string;
|
|
3047
|
+
description: string;
|
|
3050
3048
|
models: {
|
|
3051
3049
|
base?: {
|
|
3052
3050
|
model?: string | undefined;
|
|
@@ -3064,20 +3062,20 @@ declare const getSubAgentById: (db: DatabaseClient) => (params: {
|
|
|
3064
3062
|
stopWhen: {
|
|
3065
3063
|
stepCountIs?: number | undefined;
|
|
3066
3064
|
} | null;
|
|
3065
|
+
agentId: string;
|
|
3066
|
+
prompt: string;
|
|
3067
3067
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
3068
3068
|
} | undefined>;
|
|
3069
3069
|
declare const listSubAgents: (db: DatabaseClient) => (params: {
|
|
3070
3070
|
scopes: AgentScopeConfig;
|
|
3071
3071
|
}) => Promise<{
|
|
3072
|
-
tenantId: string;
|
|
3073
|
-
projectId: string;
|
|
3074
|
-
id: string;
|
|
3075
3072
|
name: string;
|
|
3076
|
-
|
|
3077
|
-
prompt: string;
|
|
3078
|
-
agentId: string;
|
|
3073
|
+
id: string;
|
|
3079
3074
|
createdAt: string;
|
|
3080
3075
|
updatedAt: string;
|
|
3076
|
+
projectId: string;
|
|
3077
|
+
tenantId: string;
|
|
3078
|
+
description: string;
|
|
3081
3079
|
models: {
|
|
3082
3080
|
base?: {
|
|
3083
3081
|
model?: string | undefined;
|
|
@@ -3095,6 +3093,8 @@ declare const listSubAgents: (db: DatabaseClient) => (params: {
|
|
|
3095
3093
|
stopWhen: {
|
|
3096
3094
|
stepCountIs?: number | undefined;
|
|
3097
3095
|
} | null;
|
|
3096
|
+
agentId: string;
|
|
3097
|
+
prompt: string;
|
|
3098
3098
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
3099
3099
|
}[]>;
|
|
3100
3100
|
declare const listSubAgentsPaginated: (db: DatabaseClient) => (params: {
|
|
@@ -3138,15 +3138,13 @@ declare const listSubAgentsPaginated: (db: DatabaseClient) => (params: {
|
|
|
3138
3138
|
};
|
|
3139
3139
|
}>;
|
|
3140
3140
|
declare const createSubAgent: (db: DatabaseClient) => (params: SubAgentInsert) => Promise<{
|
|
3141
|
-
tenantId: string;
|
|
3142
|
-
projectId: string;
|
|
3143
|
-
id: string;
|
|
3144
3141
|
name: string;
|
|
3145
|
-
|
|
3146
|
-
prompt: string;
|
|
3147
|
-
agentId: string;
|
|
3142
|
+
id: string;
|
|
3148
3143
|
createdAt: string;
|
|
3149
3144
|
updatedAt: string;
|
|
3145
|
+
projectId: string;
|
|
3146
|
+
tenantId: string;
|
|
3147
|
+
description: string;
|
|
3150
3148
|
models: {
|
|
3151
3149
|
base?: {
|
|
3152
3150
|
model?: string | undefined;
|
|
@@ -3164,6 +3162,8 @@ declare const createSubAgent: (db: DatabaseClient) => (params: SubAgentInsert) =
|
|
|
3164
3162
|
stopWhen: {
|
|
3165
3163
|
stepCountIs?: number | undefined;
|
|
3166
3164
|
} | null;
|
|
3165
|
+
agentId: string;
|
|
3166
|
+
prompt: string;
|
|
3167
3167
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
3168
3168
|
}>;
|
|
3169
3169
|
declare const updateSubAgent: (db: DatabaseClient) => (params: {
|
|
@@ -3171,15 +3171,13 @@ declare const updateSubAgent: (db: DatabaseClient) => (params: {
|
|
|
3171
3171
|
subAgentId: string;
|
|
3172
3172
|
data: SubAgentUpdate;
|
|
3173
3173
|
}) => Promise<{
|
|
3174
|
-
tenantId: string;
|
|
3175
|
-
projectId: string;
|
|
3176
|
-
id: string;
|
|
3177
3174
|
name: string;
|
|
3178
|
-
|
|
3179
|
-
prompt: string;
|
|
3180
|
-
agentId: string;
|
|
3175
|
+
id: string;
|
|
3181
3176
|
createdAt: string;
|
|
3182
3177
|
updatedAt: string;
|
|
3178
|
+
projectId: string;
|
|
3179
|
+
tenantId: string;
|
|
3180
|
+
description: string;
|
|
3183
3181
|
models: {
|
|
3184
3182
|
base?: {
|
|
3185
3183
|
model?: string | undefined;
|
|
@@ -3197,6 +3195,8 @@ declare const updateSubAgent: (db: DatabaseClient) => (params: {
|
|
|
3197
3195
|
stopWhen: {
|
|
3198
3196
|
stepCountIs?: number | undefined;
|
|
3199
3197
|
} | null;
|
|
3198
|
+
agentId: string;
|
|
3199
|
+
prompt: string;
|
|
3200
3200
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
3201
3201
|
}>;
|
|
3202
3202
|
/**
|
|
@@ -3243,12 +3243,12 @@ declare const getSubAgentsByIds: (db: DatabaseClient) => (params: {
|
|
|
3243
3243
|
}[]>;
|
|
3244
3244
|
|
|
3245
3245
|
declare const createTask: (db: DatabaseClient) => (params: TaskInsert) => Promise<{
|
|
3246
|
-
tenantId: string;
|
|
3247
|
-
projectId: string;
|
|
3248
3246
|
id: string;
|
|
3249
|
-
agentId: string;
|
|
3250
3247
|
createdAt: string;
|
|
3251
3248
|
updatedAt: string;
|
|
3249
|
+
projectId: string;
|
|
3250
|
+
tenantId: string;
|
|
3251
|
+
agentId: string;
|
|
3252
3252
|
status: string;
|
|
3253
3253
|
metadata: TaskMetadataConfig | null;
|
|
3254
3254
|
contextId: string;
|
|
@@ -3264,12 +3264,12 @@ declare const updateTask: (db: DatabaseClient) => (params: {
|
|
|
3264
3264
|
metadata?: any;
|
|
3265
3265
|
};
|
|
3266
3266
|
}) => Promise<{
|
|
3267
|
-
tenantId: string;
|
|
3268
|
-
projectId: string;
|
|
3269
3267
|
id: string;
|
|
3270
|
-
agentId: string;
|
|
3271
3268
|
createdAt: string;
|
|
3272
3269
|
updatedAt: string;
|
|
3270
|
+
projectId: string;
|
|
3271
|
+
tenantId: string;
|
|
3272
|
+
agentId: string;
|
|
3273
3273
|
status: string;
|
|
3274
3274
|
metadata: TaskMetadataConfig | null;
|
|
3275
3275
|
contextId: string;
|
|
@@ -3284,20 +3284,20 @@ declare const getToolById: (db: DatabaseClient) => (params: {
|
|
|
3284
3284
|
scopes: ProjectScopeConfig;
|
|
3285
3285
|
toolId: string;
|
|
3286
3286
|
}) => Promise<{
|
|
3287
|
-
tenantId: string;
|
|
3288
|
-
projectId: string;
|
|
3289
|
-
id: string;
|
|
3290
3287
|
name: string;
|
|
3288
|
+
headers: Record<string, string> | null;
|
|
3289
|
+
id: string;
|
|
3290
|
+
createdAt: string;
|
|
3291
|
+
updatedAt: string;
|
|
3292
|
+
projectId: string;
|
|
3293
|
+
tenantId: string;
|
|
3291
3294
|
description: string | null;
|
|
3295
|
+
credentialReferenceId: string | null;
|
|
3296
|
+
capabilities: ToolServerCapabilities | null;
|
|
3292
3297
|
config: {
|
|
3293
3298
|
type: "mcp";
|
|
3294
3299
|
mcp: ToolMcpConfig;
|
|
3295
3300
|
};
|
|
3296
|
-
credentialReferenceId: string | null;
|
|
3297
|
-
createdAt: string;
|
|
3298
|
-
updatedAt: string;
|
|
3299
|
-
headers: Record<string, string> | null;
|
|
3300
|
-
capabilities: ToolServerCapabilities | null;
|
|
3301
3301
|
imageUrl: string | null;
|
|
3302
3302
|
lastError: string | null;
|
|
3303
3303
|
} | null>;
|
|
@@ -3331,20 +3331,20 @@ declare const listTools: (db: DatabaseClient) => (params: {
|
|
|
3331
3331
|
};
|
|
3332
3332
|
}>;
|
|
3333
3333
|
declare const createTool: (db: DatabaseClient) => (params: ToolInsert) => Promise<{
|
|
3334
|
-
tenantId: string;
|
|
3335
|
-
projectId: string;
|
|
3336
|
-
id: string;
|
|
3337
3334
|
name: string;
|
|
3335
|
+
headers: Record<string, string> | null;
|
|
3336
|
+
id: string;
|
|
3337
|
+
createdAt: string;
|
|
3338
|
+
updatedAt: string;
|
|
3339
|
+
projectId: string;
|
|
3340
|
+
tenantId: string;
|
|
3338
3341
|
description: string | null;
|
|
3342
|
+
credentialReferenceId: string | null;
|
|
3343
|
+
capabilities: ToolServerCapabilities | null;
|
|
3339
3344
|
config: {
|
|
3340
3345
|
type: "mcp";
|
|
3341
3346
|
mcp: ToolMcpConfig;
|
|
3342
3347
|
};
|
|
3343
|
-
credentialReferenceId: string | null;
|
|
3344
|
-
createdAt: string;
|
|
3345
|
-
updatedAt: string;
|
|
3346
|
-
headers: Record<string, string> | null;
|
|
3347
|
-
capabilities: ToolServerCapabilities | null;
|
|
3348
3348
|
imageUrl: string | null;
|
|
3349
3349
|
lastError: string | null;
|
|
3350
3350
|
}>;
|
|
@@ -3353,20 +3353,20 @@ declare const updateTool: (db: DatabaseClient) => (params: {
|
|
|
3353
3353
|
toolId: string;
|
|
3354
3354
|
data: ToolUpdate;
|
|
3355
3355
|
}) => Promise<{
|
|
3356
|
-
tenantId: string;
|
|
3357
|
-
projectId: string;
|
|
3358
|
-
id: string;
|
|
3359
3356
|
name: string;
|
|
3357
|
+
headers: Record<string, string> | null;
|
|
3358
|
+
id: string;
|
|
3359
|
+
createdAt: string;
|
|
3360
|
+
updatedAt: string;
|
|
3361
|
+
projectId: string;
|
|
3362
|
+
tenantId: string;
|
|
3360
3363
|
description: string | null;
|
|
3364
|
+
credentialReferenceId: string | null;
|
|
3365
|
+
capabilities: ToolServerCapabilities | null;
|
|
3361
3366
|
config: {
|
|
3362
3367
|
type: "mcp";
|
|
3363
3368
|
mcp: ToolMcpConfig;
|
|
3364
3369
|
};
|
|
3365
|
-
credentialReferenceId: string | null;
|
|
3366
|
-
createdAt: string;
|
|
3367
|
-
updatedAt: string;
|
|
3368
|
-
headers: Record<string, string> | null;
|
|
3369
|
-
capabilities: ToolServerCapabilities | null;
|
|
3370
3370
|
imageUrl: string | null;
|
|
3371
3371
|
lastError: string | null;
|
|
3372
3372
|
}>;
|
|
@@ -3381,32 +3381,32 @@ declare const addToolToAgent: (db: DatabaseClient) => (params: {
|
|
|
3381
3381
|
selectedTools?: string[] | null;
|
|
3382
3382
|
headers?: Record<string, string> | null;
|
|
3383
3383
|
}) => Promise<{
|
|
3384
|
-
|
|
3385
|
-
projectId: string;
|
|
3384
|
+
headers: Record<string, string> | null;
|
|
3386
3385
|
id: string;
|
|
3387
|
-
agentId: string;
|
|
3388
3386
|
createdAt: string;
|
|
3389
3387
|
updatedAt: string;
|
|
3390
|
-
|
|
3391
|
-
|
|
3388
|
+
projectId: string;
|
|
3389
|
+
tenantId: string;
|
|
3390
|
+
agentId: string;
|
|
3392
3391
|
selectedTools: string[] | null;
|
|
3393
3392
|
subAgentId: string;
|
|
3393
|
+
toolId: string;
|
|
3394
3394
|
}>;
|
|
3395
3395
|
declare const removeToolFromAgent: (db: DatabaseClient) => (params: {
|
|
3396
3396
|
scopes: AgentScopeConfig;
|
|
3397
3397
|
subAgentId: string;
|
|
3398
3398
|
toolId: string;
|
|
3399
3399
|
}) => Promise<{
|
|
3400
|
-
|
|
3401
|
-
projectId: string;
|
|
3400
|
+
headers: Record<string, string> | null;
|
|
3402
3401
|
id: string;
|
|
3403
|
-
agentId: string;
|
|
3404
3402
|
createdAt: string;
|
|
3405
3403
|
updatedAt: string;
|
|
3406
|
-
|
|
3407
|
-
|
|
3404
|
+
projectId: string;
|
|
3405
|
+
tenantId: string;
|
|
3406
|
+
agentId: string;
|
|
3408
3407
|
selectedTools: string[] | null;
|
|
3409
3408
|
subAgentId: string;
|
|
3409
|
+
toolId: string;
|
|
3410
3410
|
}>;
|
|
3411
3411
|
/**
|
|
3412
3412
|
* Upsert agent-tool relation (create if it doesn't exist, update if it does)
|
|
@@ -3419,16 +3419,16 @@ declare const upsertSubAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
|
3419
3419
|
headers?: Record<string, string> | null;
|
|
3420
3420
|
relationId?: string;
|
|
3421
3421
|
}) => Promise<{
|
|
3422
|
-
|
|
3423
|
-
projectId: string;
|
|
3422
|
+
headers: Record<string, string> | null;
|
|
3424
3423
|
id: string;
|
|
3425
|
-
agentId: string;
|
|
3426
3424
|
createdAt: string;
|
|
3427
3425
|
updatedAt: string;
|
|
3428
|
-
|
|
3429
|
-
|
|
3426
|
+
projectId: string;
|
|
3427
|
+
tenantId: string;
|
|
3428
|
+
agentId: string;
|
|
3430
3429
|
selectedTools: string[] | null;
|
|
3431
3430
|
subAgentId: string;
|
|
3431
|
+
toolId: string;
|
|
3432
3432
|
}>;
|
|
3433
3433
|
/**
|
|
3434
3434
|
* Upsert a tool (create if it doesn't exist, update if it does)
|
|
@@ -3436,20 +3436,20 @@ declare const upsertSubAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
|
3436
3436
|
declare const upsertTool: (db: DatabaseClient) => (params: {
|
|
3437
3437
|
data: ToolInsert;
|
|
3438
3438
|
}) => Promise<{
|
|
3439
|
-
tenantId: string;
|
|
3440
|
-
projectId: string;
|
|
3441
|
-
id: string;
|
|
3442
3439
|
name: string;
|
|
3440
|
+
headers: Record<string, string> | null;
|
|
3441
|
+
id: string;
|
|
3442
|
+
createdAt: string;
|
|
3443
|
+
updatedAt: string;
|
|
3444
|
+
projectId: string;
|
|
3445
|
+
tenantId: string;
|
|
3443
3446
|
description: string | null;
|
|
3447
|
+
credentialReferenceId: string | null;
|
|
3448
|
+
capabilities: ToolServerCapabilities | null;
|
|
3444
3449
|
config: {
|
|
3445
3450
|
type: "mcp";
|
|
3446
3451
|
mcp: ToolMcpConfig;
|
|
3447
3452
|
};
|
|
3448
|
-
credentialReferenceId: string | null;
|
|
3449
|
-
createdAt: string;
|
|
3450
|
-
updatedAt: string;
|
|
3451
|
-
headers: Record<string, string> | null;
|
|
3452
|
-
capabilities: ToolServerCapabilities | null;
|
|
3453
3453
|
imageUrl: string | null;
|
|
3454
3454
|
lastError: string | null;
|
|
3455
3455
|
}>;
|