@inkeep/agents-core 0.22.9 → 0.22.11
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-F3AFTJB7.js → chunk-4SE2FOJY.js} +1 -1
- package/dist/{chunk-PR3DDXVU.js → chunk-5B6IOJZY.js} +1 -0
- package/dist/{chunk-TSKVAFS4.js → chunk-NLZO4BB6.js} +125 -40
- package/dist/client-exports.cjs +1 -0
- package/dist/client-exports.d.cts +6 -6
- package/dist/client-exports.d.ts +6 -6
- package/dist/client-exports.js +2 -2
- package/dist/db/schema.cjs +1 -0
- package/dist/db/schema.d.cts +2 -2
- package/dist/db/schema.d.ts +2 -2
- package/dist/db/schema.js +1 -1
- package/dist/index.cjs +106 -1
- package/dist/index.d.cts +257 -257
- package/dist/index.d.ts +257 -257
- package/dist/index.js +23 -8
- package/dist/{schema-lnJ7dKE3.d.cts → schema-B8-O-pmG.d.cts} +26 -1
- package/dist/{schema-9o975__r.d.ts → schema-BPRMaYtZ.d.ts} +26 -1
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/{utility-DmLVF565.d.cts → utility-06QUJeMa.d.cts} +388 -246
- package/dist/{utility-DmLVF565.d.ts → utility-06QUJeMa.d.ts} +388 -246
- package/dist/validation/index.cjs +127 -39
- package/dist/validation/index.d.cts +54 -36
- package/dist/validation/index.d.ts +54 -36
- package/dist/validation/index.js +2 -2
- package/drizzle/0010_wet_vampiro.sql +2 -0
- package/drizzle/meta/0010_snapshot.json +2751 -0
- package/drizzle/meta/_journal.json +7 -0
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export { ANTHROPIC_MODELS, AnthropicModel, GOOGLE_MODELS, GoogleModel, ModelName, OPENAI_MODELS, OpenAIModel } from './constants/models.cjs';
|
|
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-Bqpkx5sK.cjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
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-
|
|
5
|
-
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-DmLVF565.cjs';
|
|
4
|
+
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-06QUJeMa.cjs';
|
|
5
|
+
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-06QUJeMa.cjs';
|
|
6
6
|
import { CredentialStore } from './types/index.cjs';
|
|
7
7
|
export { CorsConfig, ServerConfig, ServerOptions } from './types/index.cjs';
|
|
8
8
|
import { LibSQLDatabase } from 'drizzle-orm/libsql';
|
|
9
|
-
import { s as schema } from './schema-
|
|
10
|
-
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-
|
|
9
|
+
import { s as schema } from './schema-B8-O-pmG.cjs';
|
|
10
|
+
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-B8-O-pmG.cjs';
|
|
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';
|
|
@@ -19,7 +19,7 @@ import { z as z$1 } from '@hono/zod-openapi';
|
|
|
19
19
|
import { HTTPException } from 'hono/http-exception';
|
|
20
20
|
export { convertZodToJsonSchema, convertZodToJsonSchemaWithPreview, extractPreviewFields, isZodSchema, preview } from './utils/schema-conversion.cjs';
|
|
21
21
|
import { Span, Tracer } from '@opentelemetry/api';
|
|
22
|
-
export { A2AMessageMetadata, A2AMessageMetadataSchema, DataOperationDetails, DataOperationDetailsSchema, DataOperationEvent, DataOperationEventSchema, DelegationReturnedData, DelegationReturnedDataSchema, DelegationSentData, DelegationSentDataSchema, TransferData, TransferDataSchema, generateIdFromName, isExternalAgent, isInternalAgent, isValidResourceId, validateAgentRelationships, validateAgentStructure, validateAndTypeAgentData, validateArtifactComponentReferences, validateDataComponentReferences, validateToolReferences } from './validation/index.cjs';
|
|
22
|
+
export { A2AMessageMetadata, A2AMessageMetadataSchema, DataOperationDetails, DataOperationDetailsSchema, DataOperationEvent, DataOperationEventSchema, DelegationReturnedData, DelegationReturnedDataSchema, DelegationSentData, DelegationSentDataSchema, PreviewValidationResult, TransferData, TransferDataSchema, generateIdFromName, isExternalAgent, isInternalAgent, isValidResourceId, validateAgentRelationships, validateAgentStructure, validateAndTypeAgentData, validateArtifactComponentReferences, validateDataComponentReferences, validatePreview, validateToolReferences } from './validation/index.cjs';
|
|
23
23
|
export { P as PropsValidationResult, v as validatePropsAsJsonSchema } from './props-validation-BMR1qNiy.cjs';
|
|
24
24
|
import 'drizzle-zod';
|
|
25
25
|
import 'drizzle-orm';
|
|
@@ -844,14 +844,13 @@ declare class CredentialStuffer {
|
|
|
844
844
|
declare const getAgentById: (db: DatabaseClient) => (params: {
|
|
845
845
|
scopes: AgentScopeConfig;
|
|
846
846
|
}) => Promise<{
|
|
847
|
-
tenantId: string;
|
|
848
|
-
projectId: string;
|
|
849
|
-
id: string;
|
|
850
847
|
name: string;
|
|
851
|
-
|
|
852
|
-
prompt: string | null;
|
|
848
|
+
id: string;
|
|
853
849
|
createdAt: string;
|
|
854
850
|
updatedAt: string;
|
|
851
|
+
projectId: string;
|
|
852
|
+
tenantId: string;
|
|
853
|
+
description: string | null;
|
|
855
854
|
models: {
|
|
856
855
|
base?: {
|
|
857
856
|
model?: string | undefined;
|
|
@@ -871,6 +870,7 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
|
|
|
871
870
|
} | null;
|
|
872
871
|
defaultSubAgentId: string | null;
|
|
873
872
|
contextConfigId: string | null;
|
|
873
|
+
prompt: string | null;
|
|
874
874
|
statusUpdates: {
|
|
875
875
|
enabled?: boolean | undefined;
|
|
876
876
|
numEvents?: number | undefined;
|
|
@@ -890,14 +890,13 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
|
|
|
890
890
|
declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
|
|
891
891
|
scopes: AgentScopeConfig;
|
|
892
892
|
}) => Promise<{
|
|
893
|
-
tenantId: string;
|
|
894
|
-
projectId: string;
|
|
895
|
-
id: string;
|
|
896
893
|
name: string;
|
|
897
|
-
|
|
898
|
-
prompt: string | null;
|
|
894
|
+
id: string;
|
|
899
895
|
createdAt: string;
|
|
900
896
|
updatedAt: string;
|
|
897
|
+
projectId: string;
|
|
898
|
+
tenantId: string;
|
|
899
|
+
description: string | null;
|
|
901
900
|
models: {
|
|
902
901
|
base?: {
|
|
903
902
|
model?: string | undefined;
|
|
@@ -917,6 +916,7 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
|
|
|
917
916
|
} | null;
|
|
918
917
|
defaultSubAgentId: string | null;
|
|
919
918
|
contextConfigId: string | null;
|
|
919
|
+
prompt: string | null;
|
|
920
920
|
statusUpdates: {
|
|
921
921
|
enabled?: boolean | undefined;
|
|
922
922
|
numEvents?: number | undefined;
|
|
@@ -933,15 +933,13 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
|
|
|
933
933
|
}[] | undefined;
|
|
934
934
|
} | null;
|
|
935
935
|
defaultSubAgent: {
|
|
936
|
-
tenantId: string;
|
|
937
|
-
projectId: string;
|
|
938
|
-
id: string;
|
|
939
936
|
name: string;
|
|
940
|
-
|
|
941
|
-
prompt: string;
|
|
942
|
-
agentId: string;
|
|
937
|
+
id: string;
|
|
943
938
|
createdAt: string;
|
|
944
939
|
updatedAt: string;
|
|
940
|
+
projectId: string;
|
|
941
|
+
tenantId: string;
|
|
942
|
+
description: string;
|
|
945
943
|
models: {
|
|
946
944
|
base?: {
|
|
947
945
|
model?: string | undefined;
|
|
@@ -959,20 +957,21 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
|
|
|
959
957
|
stopWhen: {
|
|
960
958
|
stepCountIs?: number | undefined;
|
|
961
959
|
} | null;
|
|
960
|
+
agentId: string;
|
|
961
|
+
prompt: string;
|
|
962
962
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
963
963
|
} | null;
|
|
964
964
|
} | null>;
|
|
965
965
|
declare const listAgents: (db: DatabaseClient) => (params: {
|
|
966
966
|
scopes: ProjectScopeConfig;
|
|
967
967
|
}) => Promise<{
|
|
968
|
-
tenantId: string;
|
|
969
|
-
projectId: string;
|
|
970
|
-
id: string;
|
|
971
968
|
name: string;
|
|
972
|
-
|
|
973
|
-
prompt: string | null;
|
|
969
|
+
id: string;
|
|
974
970
|
createdAt: string;
|
|
975
971
|
updatedAt: string;
|
|
972
|
+
projectId: string;
|
|
973
|
+
tenantId: string;
|
|
974
|
+
description: string | null;
|
|
976
975
|
models: {
|
|
977
976
|
base?: {
|
|
978
977
|
model?: string | undefined;
|
|
@@ -992,6 +991,7 @@ declare const listAgents: (db: DatabaseClient) => (params: {
|
|
|
992
991
|
} | null;
|
|
993
992
|
defaultSubAgentId: string | null;
|
|
994
993
|
contextConfigId: string | null;
|
|
994
|
+
prompt: string | null;
|
|
995
995
|
statusUpdates: {
|
|
996
996
|
enabled?: boolean | undefined;
|
|
997
997
|
numEvents?: number | undefined;
|
|
@@ -1064,14 +1064,13 @@ declare const listAgentsPaginated: (db: DatabaseClient) => (params: {
|
|
|
1064
1064
|
};
|
|
1065
1065
|
}>;
|
|
1066
1066
|
declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promise<{
|
|
1067
|
-
tenantId: string;
|
|
1068
|
-
projectId: string;
|
|
1069
|
-
id: string;
|
|
1070
1067
|
name: string;
|
|
1071
|
-
|
|
1072
|
-
prompt: string | null;
|
|
1068
|
+
id: string;
|
|
1073
1069
|
createdAt: string;
|
|
1074
1070
|
updatedAt: string;
|
|
1071
|
+
projectId: string;
|
|
1072
|
+
tenantId: string;
|
|
1073
|
+
description: string | null;
|
|
1075
1074
|
models: {
|
|
1076
1075
|
base?: {
|
|
1077
1076
|
model?: string | undefined;
|
|
@@ -1091,6 +1090,7 @@ declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promis
|
|
|
1091
1090
|
} | null;
|
|
1092
1091
|
defaultSubAgentId: string | null;
|
|
1093
1092
|
contextConfigId: string | null;
|
|
1093
|
+
prompt: string | null;
|
|
1094
1094
|
statusUpdates: {
|
|
1095
1095
|
enabled?: boolean | undefined;
|
|
1096
1096
|
numEvents?: number | undefined;
|
|
@@ -1111,14 +1111,13 @@ declare const updateAgent: (db: DatabaseClient) => (params: {
|
|
|
1111
1111
|
scopes: AgentScopeConfig;
|
|
1112
1112
|
data: AgentUpdate;
|
|
1113
1113
|
}) => Promise<{
|
|
1114
|
-
tenantId: string;
|
|
1115
|
-
projectId: string;
|
|
1116
|
-
id: string;
|
|
1117
1114
|
name: string;
|
|
1118
|
-
|
|
1119
|
-
prompt: string | null;
|
|
1115
|
+
id: string;
|
|
1120
1116
|
createdAt: string;
|
|
1121
1117
|
updatedAt: string;
|
|
1118
|
+
projectId: string;
|
|
1119
|
+
tenantId: string;
|
|
1120
|
+
description: string | null;
|
|
1122
1121
|
models: {
|
|
1123
1122
|
base?: {
|
|
1124
1123
|
model?: string | undefined;
|
|
@@ -1138,6 +1137,7 @@ declare const updateAgent: (db: DatabaseClient) => (params: {
|
|
|
1138
1137
|
} | null;
|
|
1139
1138
|
defaultSubAgentId: string | null;
|
|
1140
1139
|
contextConfigId: string | null;
|
|
1140
|
+
prompt: string | null;
|
|
1141
1141
|
statusUpdates: {
|
|
1142
1142
|
enabled?: boolean | undefined;
|
|
1143
1143
|
numEvents?: number | undefined;
|
|
@@ -1191,49 +1191,49 @@ declare const getApiKeyById: (db: DatabaseClient) => (params: {
|
|
|
1191
1191
|
scopes: ProjectScopeConfig;
|
|
1192
1192
|
id: string;
|
|
1193
1193
|
}) => Promise<{
|
|
1194
|
-
tenantId: string;
|
|
1195
|
-
projectId: string;
|
|
1196
|
-
id: string;
|
|
1197
1194
|
name: string | null;
|
|
1195
|
+
id: string;
|
|
1196
|
+
createdAt: string;
|
|
1197
|
+
updatedAt: string;
|
|
1198
|
+
projectId: string;
|
|
1199
|
+
tenantId: string;
|
|
1198
1200
|
agentId: string;
|
|
1199
1201
|
publicId: string;
|
|
1200
1202
|
keyHash: string;
|
|
1201
1203
|
keyPrefix: string;
|
|
1202
1204
|
lastUsedAt: string | null;
|
|
1203
1205
|
expiresAt: string | null;
|
|
1204
|
-
createdAt: string;
|
|
1205
|
-
updatedAt: string;
|
|
1206
1206
|
} | undefined>;
|
|
1207
1207
|
declare const getApiKeyByPublicId: (db: DatabaseClient) => (publicId: string) => Promise<{
|
|
1208
|
-
tenantId: string;
|
|
1209
|
-
projectId: string;
|
|
1210
|
-
id: string;
|
|
1211
1208
|
name: string | null;
|
|
1209
|
+
id: string;
|
|
1210
|
+
createdAt: string;
|
|
1211
|
+
updatedAt: string;
|
|
1212
|
+
projectId: string;
|
|
1213
|
+
tenantId: string;
|
|
1212
1214
|
agentId: string;
|
|
1213
1215
|
publicId: string;
|
|
1214
1216
|
keyHash: string;
|
|
1215
1217
|
keyPrefix: string;
|
|
1216
1218
|
lastUsedAt: string | null;
|
|
1217
1219
|
expiresAt: string | null;
|
|
1218
|
-
createdAt: string;
|
|
1219
|
-
updatedAt: string;
|
|
1220
1220
|
} | undefined>;
|
|
1221
1221
|
declare const listApiKeys: (db: DatabaseClient) => (params: {
|
|
1222
1222
|
scopes: ProjectScopeConfig;
|
|
1223
1223
|
agentId?: string;
|
|
1224
1224
|
}) => Promise<{
|
|
1225
|
-
tenantId: string;
|
|
1226
|
-
projectId: string;
|
|
1227
|
-
id: string;
|
|
1228
1225
|
name: string | null;
|
|
1226
|
+
id: string;
|
|
1227
|
+
createdAt: string;
|
|
1228
|
+
updatedAt: string;
|
|
1229
|
+
projectId: string;
|
|
1230
|
+
tenantId: string;
|
|
1229
1231
|
agentId: string;
|
|
1230
1232
|
publicId: string;
|
|
1231
1233
|
keyHash: string;
|
|
1232
1234
|
keyPrefix: string;
|
|
1233
1235
|
lastUsedAt: string | null;
|
|
1234
1236
|
expiresAt: string | null;
|
|
1235
|
-
createdAt: string;
|
|
1236
|
-
updatedAt: string;
|
|
1237
1237
|
}[]>;
|
|
1238
1238
|
declare const listApiKeysPaginated: (db: DatabaseClient) => (params: {
|
|
1239
1239
|
scopes: ProjectScopeConfig;
|
|
@@ -1249,36 +1249,36 @@ declare const listApiKeysPaginated: (db: DatabaseClient) => (params: {
|
|
|
1249
1249
|
};
|
|
1250
1250
|
}>;
|
|
1251
1251
|
declare const createApiKey: (db: DatabaseClient) => (params: ApiKeyInsert) => Promise<{
|
|
1252
|
-
tenantId: string;
|
|
1253
|
-
projectId: string;
|
|
1254
|
-
id: string;
|
|
1255
1252
|
name: string | null;
|
|
1253
|
+
id: string;
|
|
1254
|
+
createdAt: string;
|
|
1255
|
+
updatedAt: string;
|
|
1256
|
+
projectId: string;
|
|
1257
|
+
tenantId: string;
|
|
1256
1258
|
agentId: string;
|
|
1257
1259
|
publicId: string;
|
|
1258
1260
|
keyHash: string;
|
|
1259
1261
|
keyPrefix: string;
|
|
1260
1262
|
lastUsedAt: string | null;
|
|
1261
1263
|
expiresAt: string | null;
|
|
1262
|
-
createdAt: string;
|
|
1263
|
-
updatedAt: string;
|
|
1264
1264
|
}>;
|
|
1265
1265
|
declare const updateApiKey: (db: DatabaseClient) => (params: {
|
|
1266
1266
|
scopes: ProjectScopeConfig;
|
|
1267
1267
|
id: string;
|
|
1268
1268
|
data: ApiKeyUpdate;
|
|
1269
1269
|
}) => Promise<{
|
|
1270
|
-
tenantId: string;
|
|
1271
|
-
projectId: string;
|
|
1272
|
-
id: string;
|
|
1273
1270
|
name: string | null;
|
|
1271
|
+
id: string;
|
|
1272
|
+
createdAt: string;
|
|
1273
|
+
updatedAt: string;
|
|
1274
|
+
projectId: string;
|
|
1275
|
+
tenantId: string;
|
|
1274
1276
|
agentId: string;
|
|
1275
1277
|
publicId: string;
|
|
1276
1278
|
keyHash: string;
|
|
1277
1279
|
keyPrefix: string;
|
|
1278
1280
|
lastUsedAt: string | null;
|
|
1279
1281
|
expiresAt: string | null;
|
|
1280
|
-
createdAt: string;
|
|
1281
|
-
updatedAt: string;
|
|
1282
1282
|
}>;
|
|
1283
1283
|
declare const deleteApiKey: (db: DatabaseClient) => (params: {
|
|
1284
1284
|
scopes: ProjectScopeConfig;
|
|
@@ -1307,13 +1307,13 @@ declare const getArtifactComponentById: (db: DatabaseClient) => (params: {
|
|
|
1307
1307
|
scopes: ProjectScopeConfig;
|
|
1308
1308
|
id: string;
|
|
1309
1309
|
}) => Promise<{
|
|
1310
|
-
tenantId: string;
|
|
1311
|
-
projectId: string;
|
|
1312
|
-
id: string;
|
|
1313
1310
|
name: string;
|
|
1314
|
-
|
|
1311
|
+
id: string;
|
|
1315
1312
|
createdAt: string;
|
|
1316
1313
|
updatedAt: string;
|
|
1314
|
+
projectId: string;
|
|
1315
|
+
tenantId: string;
|
|
1316
|
+
description: string;
|
|
1317
1317
|
props: Record<string, unknown> | null;
|
|
1318
1318
|
} | undefined>;
|
|
1319
1319
|
declare const listArtifactComponents: (db: DatabaseClient) => (params: {
|
|
@@ -1341,13 +1341,13 @@ declare const listArtifactComponentsPaginated: (db: DatabaseClient) => (params:
|
|
|
1341
1341
|
};
|
|
1342
1342
|
}>;
|
|
1343
1343
|
declare const createArtifactComponent: (db: DatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
|
|
1344
|
-
tenantId: string;
|
|
1345
|
-
projectId: string;
|
|
1346
|
-
id: string;
|
|
1347
1344
|
name: string;
|
|
1348
|
-
|
|
1345
|
+
id: string;
|
|
1349
1346
|
createdAt: string;
|
|
1350
1347
|
updatedAt: string;
|
|
1348
|
+
projectId: string;
|
|
1349
|
+
tenantId: string;
|
|
1350
|
+
description: string;
|
|
1351
1351
|
props: Record<string, unknown> | null;
|
|
1352
1352
|
}>;
|
|
1353
1353
|
declare const updateArtifactComponent: (db: DatabaseClient) => (params: {
|
|
@@ -1355,13 +1355,13 @@ declare const updateArtifactComponent: (db: DatabaseClient) => (params: {
|
|
|
1355
1355
|
id: string;
|
|
1356
1356
|
data: ArtifactComponentUpdate;
|
|
1357
1357
|
}) => Promise<{
|
|
1358
|
-
tenantId: string;
|
|
1359
|
-
projectId: string;
|
|
1360
|
-
id: string;
|
|
1361
1358
|
name: string;
|
|
1362
|
-
|
|
1359
|
+
id: string;
|
|
1363
1360
|
createdAt: string;
|
|
1364
1361
|
updatedAt: string;
|
|
1362
|
+
projectId: string;
|
|
1363
|
+
tenantId: string;
|
|
1364
|
+
description: string;
|
|
1365
1365
|
props: Record<string, unknown> | null;
|
|
1366
1366
|
}>;
|
|
1367
1367
|
declare const deleteArtifactComponent: (db: DatabaseClient) => (params: {
|
|
@@ -1384,11 +1384,11 @@ declare const associateArtifactComponentWithAgent: (db: DatabaseClient) => (para
|
|
|
1384
1384
|
scopes: SubAgentScopeConfig;
|
|
1385
1385
|
artifactComponentId: string;
|
|
1386
1386
|
}) => Promise<{
|
|
1387
|
-
tenantId: string;
|
|
1388
|
-
projectId: string;
|
|
1389
1387
|
id: string;
|
|
1390
|
-
agentId: string;
|
|
1391
1388
|
createdAt: string;
|
|
1389
|
+
projectId: string;
|
|
1390
|
+
tenantId: string;
|
|
1391
|
+
agentId: string;
|
|
1392
1392
|
subAgentId: string;
|
|
1393
1393
|
artifactComponentId: string;
|
|
1394
1394
|
}>;
|
|
@@ -1427,11 +1427,11 @@ declare const upsertAgentArtifactComponentRelation: (db: DatabaseClient) => (par
|
|
|
1427
1427
|
scopes: SubAgentScopeConfig;
|
|
1428
1428
|
artifactComponentId: string;
|
|
1429
1429
|
}) => Promise<{
|
|
1430
|
-
tenantId: string;
|
|
1431
|
-
projectId: string;
|
|
1432
1430
|
id: string;
|
|
1433
|
-
agentId: string;
|
|
1434
1431
|
createdAt: string;
|
|
1432
|
+
projectId: string;
|
|
1433
|
+
tenantId: string;
|
|
1434
|
+
agentId: string;
|
|
1435
1435
|
subAgentId: string;
|
|
1436
1436
|
artifactComponentId: string;
|
|
1437
1437
|
} | null>;
|
|
@@ -1511,26 +1511,26 @@ declare const getContextConfigById: (db: DatabaseClient) => (params: {
|
|
|
1511
1511
|
scopes: AgentScopeConfig;
|
|
1512
1512
|
id: string;
|
|
1513
1513
|
}) => Promise<{
|
|
1514
|
-
tenantId: string;
|
|
1515
|
-
projectId: string;
|
|
1516
1514
|
id: string;
|
|
1517
|
-
agentId: string;
|
|
1518
1515
|
createdAt: string;
|
|
1519
1516
|
updatedAt: string;
|
|
1517
|
+
projectId: string;
|
|
1518
|
+
tenantId: string;
|
|
1520
1519
|
headersSchema: unknown;
|
|
1521
1520
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
1521
|
+
agentId: string;
|
|
1522
1522
|
} | undefined>;
|
|
1523
1523
|
declare const listContextConfigs: (db: DatabaseClient) => (params: {
|
|
1524
1524
|
scopes: AgentScopeConfig;
|
|
1525
1525
|
}) => Promise<{
|
|
1526
|
-
tenantId: string;
|
|
1527
|
-
projectId: string;
|
|
1528
1526
|
id: string;
|
|
1529
|
-
agentId: string;
|
|
1530
1527
|
createdAt: string;
|
|
1531
1528
|
updatedAt: string;
|
|
1529
|
+
projectId: string;
|
|
1530
|
+
tenantId: string;
|
|
1532
1531
|
headersSchema: unknown;
|
|
1533
1532
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
1533
|
+
agentId: string;
|
|
1534
1534
|
}[]>;
|
|
1535
1535
|
declare const listContextConfigsPaginated: (db: DatabaseClient) => (params: {
|
|
1536
1536
|
scopes: AgentScopeConfig;
|
|
@@ -1545,28 +1545,28 @@ declare const listContextConfigsPaginated: (db: DatabaseClient) => (params: {
|
|
|
1545
1545
|
};
|
|
1546
1546
|
}>;
|
|
1547
1547
|
declare const createContextConfig: (db: DatabaseClient) => (params: ContextConfigInsert) => Promise<{
|
|
1548
|
-
tenantId: string;
|
|
1549
|
-
projectId: string;
|
|
1550
1548
|
id: string;
|
|
1551
|
-
agentId: string;
|
|
1552
1549
|
createdAt: string;
|
|
1553
1550
|
updatedAt: string;
|
|
1551
|
+
projectId: string;
|
|
1552
|
+
tenantId: string;
|
|
1554
1553
|
headersSchema: unknown;
|
|
1555
1554
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
1555
|
+
agentId: string;
|
|
1556
1556
|
}>;
|
|
1557
1557
|
declare const updateContextConfig: (db: DatabaseClient) => (params: {
|
|
1558
1558
|
scopes: AgentScopeConfig;
|
|
1559
1559
|
id: string;
|
|
1560
1560
|
data: Partial<ContextConfigUpdate>;
|
|
1561
1561
|
}) => Promise<{
|
|
1562
|
-
tenantId: string;
|
|
1563
|
-
projectId: string;
|
|
1564
1562
|
id: string;
|
|
1565
|
-
agentId: string;
|
|
1566
1563
|
createdAt: string;
|
|
1567
1564
|
updatedAt: string;
|
|
1565
|
+
projectId: string;
|
|
1566
|
+
tenantId: string;
|
|
1568
1567
|
headersSchema: unknown;
|
|
1569
1568
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
1569
|
+
agentId: string;
|
|
1570
1570
|
}>;
|
|
1571
1571
|
declare const deleteContextConfig: (db: DatabaseClient) => (params: {
|
|
1572
1572
|
scopes: AgentScopeConfig;
|
|
@@ -1585,14 +1585,14 @@ declare const countContextConfigs: (db: DatabaseClient) => (params: {
|
|
|
1585
1585
|
declare const upsertContextConfig: (db: DatabaseClient) => (params: {
|
|
1586
1586
|
data: ContextConfigInsert;
|
|
1587
1587
|
}) => Promise<{
|
|
1588
|
-
tenantId: string;
|
|
1589
|
-
projectId: string;
|
|
1590
1588
|
id: string;
|
|
1591
|
-
agentId: string;
|
|
1592
1589
|
createdAt: string;
|
|
1593
1590
|
updatedAt: string;
|
|
1591
|
+
projectId: string;
|
|
1592
|
+
tenantId: string;
|
|
1594
1593
|
headersSchema: unknown;
|
|
1595
1594
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
1595
|
+
agentId: string;
|
|
1596
1596
|
}>;
|
|
1597
1597
|
|
|
1598
1598
|
declare const listConversations: (db: DatabaseClient) => (params: {
|
|
@@ -1604,12 +1604,12 @@ declare const listConversations: (db: DatabaseClient) => (params: {
|
|
|
1604
1604
|
total: number;
|
|
1605
1605
|
}>;
|
|
1606
1606
|
declare const createConversation: (db: DatabaseClient) => (params: ConversationInsert) => Promise<{
|
|
1607
|
-
tenantId: string;
|
|
1608
|
-
projectId: string;
|
|
1609
1607
|
id: string;
|
|
1610
|
-
title: string | null;
|
|
1611
1608
|
createdAt: string;
|
|
1612
1609
|
updatedAt: string;
|
|
1610
|
+
projectId: string;
|
|
1611
|
+
tenantId: string;
|
|
1612
|
+
title: string | null;
|
|
1613
1613
|
metadata: ConversationMetadata | null;
|
|
1614
1614
|
userId: string | null;
|
|
1615
1615
|
activeSubAgentId: string;
|
|
@@ -1620,12 +1620,12 @@ declare const updateConversation: (db: DatabaseClient) => (params: {
|
|
|
1620
1620
|
conversationId: string;
|
|
1621
1621
|
data: ConversationUpdate;
|
|
1622
1622
|
}) => Promise<{
|
|
1623
|
-
tenantId: string;
|
|
1624
|
-
projectId: string;
|
|
1625
1623
|
id: string;
|
|
1626
|
-
title: string | null;
|
|
1627
1624
|
createdAt: string;
|
|
1628
1625
|
updatedAt: string;
|
|
1626
|
+
projectId: string;
|
|
1627
|
+
tenantId: string;
|
|
1628
|
+
title: string | null;
|
|
1629
1629
|
metadata: ConversationMetadata | null;
|
|
1630
1630
|
userId: string | null;
|
|
1631
1631
|
activeSubAgentId: string;
|
|
@@ -1640,12 +1640,12 @@ declare const updateConversationActiveAgent: (db: DatabaseClient) => (params: {
|
|
|
1640
1640
|
conversationId: string;
|
|
1641
1641
|
activeSubAgentId: string;
|
|
1642
1642
|
}) => Promise<{
|
|
1643
|
-
tenantId: string;
|
|
1644
|
-
projectId: string;
|
|
1645
1643
|
id: string;
|
|
1646
|
-
title: string | null;
|
|
1647
1644
|
createdAt: string;
|
|
1648
1645
|
updatedAt: string;
|
|
1646
|
+
projectId: string;
|
|
1647
|
+
tenantId: string;
|
|
1648
|
+
title: string | null;
|
|
1649
1649
|
metadata: ConversationMetadata | null;
|
|
1650
1650
|
userId: string | null;
|
|
1651
1651
|
activeSubAgentId: string;
|
|
@@ -1655,12 +1655,12 @@ declare const getConversation: (db: DatabaseClient) => (params: {
|
|
|
1655
1655
|
scopes: ProjectScopeConfig;
|
|
1656
1656
|
conversationId: string;
|
|
1657
1657
|
}) => Promise<{
|
|
1658
|
-
tenantId: string;
|
|
1659
|
-
projectId: string;
|
|
1660
1658
|
id: string;
|
|
1661
|
-
title: string | null;
|
|
1662
1659
|
createdAt: string;
|
|
1663
1660
|
updatedAt: string;
|
|
1661
|
+
projectId: string;
|
|
1662
|
+
tenantId: string;
|
|
1663
|
+
title: string | null;
|
|
1664
1664
|
metadata: ConversationMetadata | null;
|
|
1665
1665
|
userId: string | null;
|
|
1666
1666
|
activeSubAgentId: string;
|
|
@@ -1679,12 +1679,12 @@ declare const createOrGetConversation: (db: DatabaseClient) => (input: Conversat
|
|
|
1679
1679
|
metadata?: ConversationMetadata | null | undefined;
|
|
1680
1680
|
contextConfigId?: string | undefined;
|
|
1681
1681
|
} | {
|
|
1682
|
-
tenantId: string;
|
|
1683
|
-
projectId: string;
|
|
1684
1682
|
id: string;
|
|
1685
|
-
title: string | null;
|
|
1686
1683
|
createdAt: string;
|
|
1687
1684
|
updatedAt: string;
|
|
1685
|
+
projectId: string;
|
|
1686
|
+
tenantId: string;
|
|
1687
|
+
title: string | null;
|
|
1688
1688
|
metadata: ConversationMetadata | null;
|
|
1689
1689
|
userId: string | null;
|
|
1690
1690
|
activeSubAgentId: string;
|
|
@@ -1705,12 +1705,12 @@ declare const getActiveAgentForConversation: (db: DatabaseClient) => (params: {
|
|
|
1705
1705
|
scopes: ProjectScopeConfig;
|
|
1706
1706
|
conversationId: string;
|
|
1707
1707
|
}) => Promise<{
|
|
1708
|
-
tenantId: string;
|
|
1709
|
-
projectId: string;
|
|
1710
1708
|
id: string;
|
|
1711
|
-
title: string | null;
|
|
1712
1709
|
createdAt: string;
|
|
1713
1710
|
updatedAt: string;
|
|
1711
|
+
projectId: string;
|
|
1712
|
+
tenantId: string;
|
|
1713
|
+
title: string | null;
|
|
1714
1714
|
metadata: ConversationMetadata | null;
|
|
1715
1715
|
userId: string | null;
|
|
1716
1716
|
activeSubAgentId: string;
|
|
@@ -1874,11 +1874,11 @@ declare const associateDataComponentWithAgent: (db: DatabaseClient) => (params:
|
|
|
1874
1874
|
scopes: SubAgentScopeConfig;
|
|
1875
1875
|
dataComponentId: string;
|
|
1876
1876
|
}) => Promise<{
|
|
1877
|
-
tenantId: string;
|
|
1878
|
-
projectId: string;
|
|
1879
1877
|
id: string;
|
|
1880
|
-
agentId: string;
|
|
1881
1878
|
createdAt: string;
|
|
1879
|
+
projectId: string;
|
|
1880
|
+
tenantId: string;
|
|
1881
|
+
agentId: string;
|
|
1882
1882
|
subAgentId: string;
|
|
1883
1883
|
dataComponentId: string;
|
|
1884
1884
|
}>;
|
|
@@ -1916,11 +1916,11 @@ declare const upsertAgentDataComponentRelation: (db: DatabaseClient) => (params:
|
|
|
1916
1916
|
scopes: SubAgentScopeConfig;
|
|
1917
1917
|
dataComponentId: string;
|
|
1918
1918
|
}) => Promise<{
|
|
1919
|
-
tenantId: string;
|
|
1920
|
-
projectId: string;
|
|
1921
1919
|
id: string;
|
|
1922
|
-
agentId: string;
|
|
1923
1920
|
createdAt: string;
|
|
1921
|
+
projectId: string;
|
|
1922
|
+
tenantId: string;
|
|
1923
|
+
agentId: string;
|
|
1924
1924
|
subAgentId: string;
|
|
1925
1925
|
dataComponentId: string;
|
|
1926
1926
|
} | null>;
|
|
@@ -2095,14 +2095,14 @@ declare const createFunctionTool: (db: DatabaseClient) => (params: {
|
|
|
2095
2095
|
data: FunctionToolApiInsert;
|
|
2096
2096
|
scopes: AgentScopeConfig;
|
|
2097
2097
|
}) => Promise<{
|
|
2098
|
-
tenantId: string;
|
|
2099
|
-
projectId: string;
|
|
2100
|
-
id: string;
|
|
2101
2098
|
name: string;
|
|
2102
|
-
|
|
2103
|
-
agentId: string;
|
|
2099
|
+
id: string;
|
|
2104
2100
|
createdAt: string;
|
|
2105
2101
|
updatedAt: string;
|
|
2102
|
+
projectId: string;
|
|
2103
|
+
tenantId: string;
|
|
2104
|
+
description: string | null;
|
|
2105
|
+
agentId: string;
|
|
2106
2106
|
functionId: string;
|
|
2107
2107
|
}>;
|
|
2108
2108
|
/**
|
|
@@ -2113,14 +2113,14 @@ declare const updateFunctionTool: (db: DatabaseClient) => (params: {
|
|
|
2113
2113
|
functionToolId: string;
|
|
2114
2114
|
data: FunctionToolApiUpdate;
|
|
2115
2115
|
}) => Promise<{
|
|
2116
|
-
tenantId: string;
|
|
2117
|
-
projectId: string;
|
|
2118
|
-
id: string;
|
|
2119
2116
|
name: string;
|
|
2120
|
-
|
|
2121
|
-
agentId: string;
|
|
2117
|
+
id: string;
|
|
2122
2118
|
createdAt: string;
|
|
2123
2119
|
updatedAt: string;
|
|
2120
|
+
projectId: string;
|
|
2121
|
+
tenantId: string;
|
|
2122
|
+
description: string | null;
|
|
2123
|
+
agentId: string;
|
|
2124
2124
|
functionId: string;
|
|
2125
2125
|
}>;
|
|
2126
2126
|
/**
|
|
@@ -2137,14 +2137,14 @@ declare const upsertFunctionTool: (db: DatabaseClient) => (params: {
|
|
|
2137
2137
|
data: FunctionToolApiInsert;
|
|
2138
2138
|
scopes: AgentScopeConfig;
|
|
2139
2139
|
}) => Promise<{
|
|
2140
|
-
tenantId: string;
|
|
2141
|
-
projectId: string;
|
|
2142
|
-
id: string;
|
|
2143
2140
|
name: string;
|
|
2144
|
-
|
|
2145
|
-
agentId: string;
|
|
2141
|
+
id: string;
|
|
2146
2142
|
createdAt: string;
|
|
2147
2143
|
updatedAt: string;
|
|
2144
|
+
projectId: string;
|
|
2145
|
+
tenantId: string;
|
|
2146
|
+
description: string | null;
|
|
2147
|
+
agentId: string;
|
|
2148
2148
|
functionId: string;
|
|
2149
2149
|
}>;
|
|
2150
2150
|
declare const getFunctionToolsForSubAgent: (db: DatabaseClient) => (params: {
|
|
@@ -2301,11 +2301,11 @@ declare const getMessageById: (db: DatabaseClient) => (params: {
|
|
|
2301
2301
|
scopes: ProjectScopeConfig;
|
|
2302
2302
|
messageId: string;
|
|
2303
2303
|
}) => Promise<{
|
|
2304
|
-
tenantId: string;
|
|
2305
|
-
projectId: string;
|
|
2306
2304
|
id: string;
|
|
2307
2305
|
createdAt: string;
|
|
2308
2306
|
updatedAt: string;
|
|
2307
|
+
projectId: string;
|
|
2308
|
+
tenantId: string;
|
|
2309
2309
|
metadata: MessageMetadata | null;
|
|
2310
2310
|
content: MessageContent;
|
|
2311
2311
|
conversationId: string;
|
|
@@ -2422,11 +2422,11 @@ declare const getVisibleMessages: (db: DatabaseClient) => (params: {
|
|
|
2422
2422
|
id: string;
|
|
2423
2423
|
}[]>;
|
|
2424
2424
|
declare const createMessage: (db: DatabaseClient) => (params: MessageInsert) => Promise<{
|
|
2425
|
-
tenantId: string;
|
|
2426
|
-
projectId: string;
|
|
2427
2425
|
id: string;
|
|
2428
2426
|
createdAt: string;
|
|
2429
2427
|
updatedAt: string;
|
|
2428
|
+
projectId: string;
|
|
2429
|
+
tenantId: string;
|
|
2430
2430
|
metadata: MessageMetadata | null;
|
|
2431
2431
|
content: MessageContent;
|
|
2432
2432
|
conversationId: string;
|
|
@@ -2447,11 +2447,11 @@ declare const updateMessage: (db: DatabaseClient) => (params: {
|
|
|
2447
2447
|
messageId: string;
|
|
2448
2448
|
data: MessageUpdate;
|
|
2449
2449
|
}) => Promise<{
|
|
2450
|
-
tenantId: string;
|
|
2451
|
-
projectId: string;
|
|
2452
2450
|
id: string;
|
|
2453
2451
|
createdAt: string;
|
|
2454
2452
|
updatedAt: string;
|
|
2453
|
+
projectId: string;
|
|
2454
|
+
tenantId: string;
|
|
2455
2455
|
metadata: MessageMetadata | null;
|
|
2456
2456
|
content: MessageContent;
|
|
2457
2457
|
conversationId: string;
|
|
@@ -2471,11 +2471,11 @@ declare const deleteMessage: (db: DatabaseClient) => (params: {
|
|
|
2471
2471
|
scopes: ProjectScopeConfig;
|
|
2472
2472
|
messageId: string;
|
|
2473
2473
|
}) => Promise<{
|
|
2474
|
-
tenantId: string;
|
|
2475
|
-
projectId: string;
|
|
2476
2474
|
id: string;
|
|
2477
2475
|
createdAt: string;
|
|
2478
2476
|
updatedAt: string;
|
|
2477
|
+
projectId: string;
|
|
2478
|
+
tenantId: string;
|
|
2479
2479
|
metadata: MessageMetadata | null;
|
|
2480
2480
|
content: MessageContent;
|
|
2481
2481
|
conversationId: string;
|
|
@@ -2594,12 +2594,12 @@ declare const getAgentRelationById: (db: DatabaseClient) => (params: {
|
|
|
2594
2594
|
scopes: AgentScopeConfig;
|
|
2595
2595
|
relationId: string;
|
|
2596
2596
|
}) => Promise<{
|
|
2597
|
-
tenantId: string;
|
|
2598
|
-
projectId: string;
|
|
2599
2597
|
id: string;
|
|
2600
|
-
agentId: string;
|
|
2601
2598
|
createdAt: string;
|
|
2602
2599
|
updatedAt: string;
|
|
2600
|
+
projectId: string;
|
|
2601
|
+
tenantId: string;
|
|
2602
|
+
agentId: string;
|
|
2603
2603
|
sourceSubAgentId: string;
|
|
2604
2604
|
targetSubAgentId: string | null;
|
|
2605
2605
|
externalSubAgentId: string | null;
|
|
@@ -2631,12 +2631,12 @@ declare const listAgentRelations: (db: DatabaseClient) => (params: {
|
|
|
2631
2631
|
declare const getAgentRelations: (db: DatabaseClient) => (params: {
|
|
2632
2632
|
scopes: SubAgentScopeConfig;
|
|
2633
2633
|
}) => Promise<{
|
|
2634
|
-
tenantId: string;
|
|
2635
|
-
projectId: string;
|
|
2636
2634
|
id: string;
|
|
2637
|
-
agentId: string;
|
|
2638
2635
|
createdAt: string;
|
|
2639
2636
|
updatedAt: string;
|
|
2637
|
+
projectId: string;
|
|
2638
|
+
tenantId: string;
|
|
2639
|
+
agentId: string;
|
|
2640
2640
|
sourceSubAgentId: string;
|
|
2641
2641
|
targetSubAgentId: string | null;
|
|
2642
2642
|
externalSubAgentId: string | null;
|
|
@@ -2645,12 +2645,12 @@ declare const getAgentRelations: (db: DatabaseClient) => (params: {
|
|
|
2645
2645
|
declare const getAgentRelationsByAgent: (db: DatabaseClient) => (params: {
|
|
2646
2646
|
scopes: AgentScopeConfig;
|
|
2647
2647
|
}) => Promise<{
|
|
2648
|
-
tenantId: string;
|
|
2649
|
-
projectId: string;
|
|
2650
2648
|
id: string;
|
|
2651
|
-
agentId: string;
|
|
2652
2649
|
createdAt: string;
|
|
2653
2650
|
updatedAt: string;
|
|
2651
|
+
projectId: string;
|
|
2652
|
+
tenantId: string;
|
|
2653
|
+
agentId: string;
|
|
2654
2654
|
sourceSubAgentId: string;
|
|
2655
2655
|
targetSubAgentId: string | null;
|
|
2656
2656
|
externalSubAgentId: string | null;
|
|
@@ -2750,12 +2750,12 @@ declare const getRelatedAgentsForAgent: (db: DatabaseClient) => (params: {
|
|
|
2750
2750
|
}[];
|
|
2751
2751
|
}>;
|
|
2752
2752
|
declare const createSubAgentRelation: (db: DatabaseClient) => (params: SubAgentRelationInsert) => 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;
|
|
@@ -2771,12 +2771,12 @@ declare const getAgentRelationByParams: (db: DatabaseClient) => (params: {
|
|
|
2771
2771
|
externalSubAgentId?: string;
|
|
2772
2772
|
relationType: string;
|
|
2773
2773
|
}) => Promise<{
|
|
2774
|
-
tenantId: string;
|
|
2775
|
-
projectId: string;
|
|
2776
2774
|
id: string;
|
|
2777
|
-
agentId: string;
|
|
2778
2775
|
createdAt: string;
|
|
2779
2776
|
updatedAt: string;
|
|
2777
|
+
projectId: string;
|
|
2778
|
+
tenantId: string;
|
|
2779
|
+
agentId: string;
|
|
2780
2780
|
sourceSubAgentId: string;
|
|
2781
2781
|
targetSubAgentId: string | null;
|
|
2782
2782
|
externalSubAgentId: string | null;
|
|
@@ -2786,24 +2786,24 @@ declare const getAgentRelationByParams: (db: DatabaseClient) => (params: {
|
|
|
2786
2786
|
* Upsert agent relation (create if it doesn't exist, no-op if it does)
|
|
2787
2787
|
*/
|
|
2788
2788
|
declare const upsertSubAgentRelation: (db: DatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
|
|
2789
|
-
tenantId: string;
|
|
2790
|
-
projectId: string;
|
|
2791
2789
|
id: string;
|
|
2792
|
-
agentId: string;
|
|
2793
2790
|
createdAt: string;
|
|
2794
2791
|
updatedAt: string;
|
|
2792
|
+
projectId: string;
|
|
2793
|
+
tenantId: string;
|
|
2794
|
+
agentId: string;
|
|
2795
2795
|
sourceSubAgentId: string;
|
|
2796
2796
|
targetSubAgentId: string | null;
|
|
2797
2797
|
externalSubAgentId: string | null;
|
|
2798
2798
|
relationType: string | null;
|
|
2799
2799
|
}>;
|
|
2800
2800
|
declare const createExternalAgentRelation: (db: DatabaseClient) => (params: ExternalSubAgentRelationInsert) => Promise<{
|
|
2801
|
-
tenantId: string;
|
|
2802
|
-
projectId: string;
|
|
2803
2801
|
id: string;
|
|
2804
|
-
agentId: string;
|
|
2805
2802
|
createdAt: string;
|
|
2806
2803
|
updatedAt: string;
|
|
2804
|
+
projectId: string;
|
|
2805
|
+
tenantId: string;
|
|
2806
|
+
agentId: string;
|
|
2807
2807
|
sourceSubAgentId: string;
|
|
2808
2808
|
targetSubAgentId: string | null;
|
|
2809
2809
|
externalSubAgentId: string | null;
|
|
@@ -2814,12 +2814,12 @@ declare const updateAgentRelation: (db: DatabaseClient) => (params: {
|
|
|
2814
2814
|
relationId: string;
|
|
2815
2815
|
data: SubAgentRelationUpdate;
|
|
2816
2816
|
}) => Promise<{
|
|
2817
|
-
tenantId: string;
|
|
2818
|
-
projectId: string;
|
|
2819
2817
|
id: string;
|
|
2820
|
-
agentId: string;
|
|
2821
2818
|
createdAt: string;
|
|
2822
2819
|
updatedAt: string;
|
|
2820
|
+
projectId: string;
|
|
2821
|
+
tenantId: string;
|
|
2822
|
+
agentId: string;
|
|
2823
2823
|
sourceSubAgentId: string;
|
|
2824
2824
|
targetSubAgentId: string | null;
|
|
2825
2825
|
externalSubAgentId: string | null;
|
|
@@ -2842,32 +2842,32 @@ declare const createAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
|
2842
2842
|
headers?: Record<string, string> | null;
|
|
2843
2843
|
};
|
|
2844
2844
|
}) => Promise<{
|
|
2845
|
-
|
|
2846
|
-
projectId: string;
|
|
2845
|
+
headers: Record<string, string> | null;
|
|
2847
2846
|
id: string;
|
|
2848
|
-
agentId: string;
|
|
2849
2847
|
createdAt: string;
|
|
2850
2848
|
updatedAt: string;
|
|
2851
|
-
|
|
2852
|
-
|
|
2849
|
+
projectId: string;
|
|
2850
|
+
tenantId: string;
|
|
2851
|
+
agentId: string;
|
|
2853
2852
|
selectedTools: string[] | null;
|
|
2854
2853
|
subAgentId: string;
|
|
2854
|
+
toolId: string;
|
|
2855
2855
|
}>;
|
|
2856
2856
|
declare const updateAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
2857
2857
|
scopes: AgentScopeConfig;
|
|
2858
2858
|
relationId: string;
|
|
2859
2859
|
data: SubAgentToolRelationUpdate;
|
|
2860
2860
|
}) => Promise<{
|
|
2861
|
-
|
|
2862
|
-
projectId: string;
|
|
2861
|
+
headers: Record<string, string> | null;
|
|
2863
2862
|
id: string;
|
|
2864
|
-
agentId: string;
|
|
2865
2863
|
createdAt: string;
|
|
2866
2864
|
updatedAt: string;
|
|
2867
|
-
|
|
2868
|
-
|
|
2865
|
+
projectId: string;
|
|
2866
|
+
tenantId: string;
|
|
2867
|
+
agentId: string;
|
|
2869
2868
|
selectedTools: string[] | null;
|
|
2870
2869
|
subAgentId: string;
|
|
2870
|
+
toolId: string;
|
|
2871
2871
|
}>;
|
|
2872
2872
|
declare const deleteAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
2873
2873
|
scopes: AgentScopeConfig;
|
|
@@ -2880,16 +2880,16 @@ declare const getAgentToolRelationById: (db: DatabaseClient) => (params: {
|
|
|
2880
2880
|
scopes: SubAgentScopeConfig;
|
|
2881
2881
|
relationId: string;
|
|
2882
2882
|
}) => Promise<{
|
|
2883
|
-
|
|
2884
|
-
projectId: string;
|
|
2883
|
+
headers: Record<string, string> | null;
|
|
2885
2884
|
id: string;
|
|
2886
|
-
agentId: string;
|
|
2887
2885
|
createdAt: string;
|
|
2888
2886
|
updatedAt: string;
|
|
2889
|
-
|
|
2890
|
-
|
|
2887
|
+
projectId: string;
|
|
2888
|
+
tenantId: string;
|
|
2889
|
+
agentId: string;
|
|
2891
2890
|
selectedTools: string[] | null;
|
|
2892
2891
|
subAgentId: string;
|
|
2892
|
+
toolId: string;
|
|
2893
2893
|
} | undefined>;
|
|
2894
2894
|
declare const getAgentToolRelationByAgent: (db: DatabaseClient) => (params: {
|
|
2895
2895
|
scopes: SubAgentScopeConfig;
|
|
@@ -3059,15 +3059,13 @@ declare const getSubAgentById: (db: DatabaseClient) => (params: {
|
|
|
3059
3059
|
scopes: AgentScopeConfig;
|
|
3060
3060
|
subAgentId: string;
|
|
3061
3061
|
}) => Promise<{
|
|
3062
|
-
tenantId: string;
|
|
3063
|
-
projectId: string;
|
|
3064
|
-
id: string;
|
|
3065
3062
|
name: string;
|
|
3066
|
-
|
|
3067
|
-
prompt: string;
|
|
3068
|
-
agentId: string;
|
|
3063
|
+
id: string;
|
|
3069
3064
|
createdAt: string;
|
|
3070
3065
|
updatedAt: string;
|
|
3066
|
+
projectId: string;
|
|
3067
|
+
tenantId: string;
|
|
3068
|
+
description: string;
|
|
3071
3069
|
models: {
|
|
3072
3070
|
base?: {
|
|
3073
3071
|
model?: string | undefined;
|
|
@@ -3085,20 +3083,20 @@ declare const getSubAgentById: (db: DatabaseClient) => (params: {
|
|
|
3085
3083
|
stopWhen: {
|
|
3086
3084
|
stepCountIs?: number | undefined;
|
|
3087
3085
|
} | null;
|
|
3086
|
+
agentId: string;
|
|
3087
|
+
prompt: string;
|
|
3088
3088
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
3089
3089
|
} | undefined>;
|
|
3090
3090
|
declare const listSubAgents: (db: DatabaseClient) => (params: {
|
|
3091
3091
|
scopes: AgentScopeConfig;
|
|
3092
3092
|
}) => Promise<{
|
|
3093
|
-
tenantId: string;
|
|
3094
|
-
projectId: string;
|
|
3095
|
-
id: string;
|
|
3096
3093
|
name: string;
|
|
3097
|
-
|
|
3098
|
-
prompt: string;
|
|
3099
|
-
agentId: string;
|
|
3094
|
+
id: string;
|
|
3100
3095
|
createdAt: string;
|
|
3101
3096
|
updatedAt: string;
|
|
3097
|
+
projectId: string;
|
|
3098
|
+
tenantId: string;
|
|
3099
|
+
description: string;
|
|
3102
3100
|
models: {
|
|
3103
3101
|
base?: {
|
|
3104
3102
|
model?: string | undefined;
|
|
@@ -3116,6 +3114,8 @@ declare const listSubAgents: (db: DatabaseClient) => (params: {
|
|
|
3116
3114
|
stopWhen: {
|
|
3117
3115
|
stepCountIs?: number | undefined;
|
|
3118
3116
|
} | null;
|
|
3117
|
+
agentId: string;
|
|
3118
|
+
prompt: string;
|
|
3119
3119
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
3120
3120
|
}[]>;
|
|
3121
3121
|
declare const listSubAgentsPaginated: (db: DatabaseClient) => (params: {
|
|
@@ -3159,15 +3159,13 @@ declare const listSubAgentsPaginated: (db: DatabaseClient) => (params: {
|
|
|
3159
3159
|
};
|
|
3160
3160
|
}>;
|
|
3161
3161
|
declare const createSubAgent: (db: DatabaseClient) => (params: SubAgentInsert) => Promise<{
|
|
3162
|
-
tenantId: string;
|
|
3163
|
-
projectId: string;
|
|
3164
|
-
id: string;
|
|
3165
3162
|
name: string;
|
|
3166
|
-
|
|
3167
|
-
prompt: string;
|
|
3168
|
-
agentId: string;
|
|
3163
|
+
id: string;
|
|
3169
3164
|
createdAt: string;
|
|
3170
3165
|
updatedAt: string;
|
|
3166
|
+
projectId: string;
|
|
3167
|
+
tenantId: string;
|
|
3168
|
+
description: string;
|
|
3171
3169
|
models: {
|
|
3172
3170
|
base?: {
|
|
3173
3171
|
model?: string | undefined;
|
|
@@ -3185,6 +3183,8 @@ declare const createSubAgent: (db: DatabaseClient) => (params: SubAgentInsert) =
|
|
|
3185
3183
|
stopWhen: {
|
|
3186
3184
|
stepCountIs?: number | undefined;
|
|
3187
3185
|
} | null;
|
|
3186
|
+
agentId: string;
|
|
3187
|
+
prompt: string;
|
|
3188
3188
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
3189
3189
|
}>;
|
|
3190
3190
|
declare const updateSubAgent: (db: DatabaseClient) => (params: {
|
|
@@ -3192,15 +3192,13 @@ declare const updateSubAgent: (db: DatabaseClient) => (params: {
|
|
|
3192
3192
|
subAgentId: string;
|
|
3193
3193
|
data: SubAgentUpdate;
|
|
3194
3194
|
}) => Promise<{
|
|
3195
|
-
tenantId: string;
|
|
3196
|
-
projectId: string;
|
|
3197
|
-
id: string;
|
|
3198
3195
|
name: string;
|
|
3199
|
-
|
|
3200
|
-
prompt: string;
|
|
3201
|
-
agentId: string;
|
|
3196
|
+
id: string;
|
|
3202
3197
|
createdAt: string;
|
|
3203
3198
|
updatedAt: string;
|
|
3199
|
+
projectId: string;
|
|
3200
|
+
tenantId: string;
|
|
3201
|
+
description: string;
|
|
3204
3202
|
models: {
|
|
3205
3203
|
base?: {
|
|
3206
3204
|
model?: string | undefined;
|
|
@@ -3218,6 +3216,8 @@ declare const updateSubAgent: (db: DatabaseClient) => (params: {
|
|
|
3218
3216
|
stopWhen: {
|
|
3219
3217
|
stepCountIs?: number | undefined;
|
|
3220
3218
|
} | null;
|
|
3219
|
+
agentId: string;
|
|
3220
|
+
prompt: string;
|
|
3221
3221
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
3222
3222
|
}>;
|
|
3223
3223
|
/**
|
|
@@ -3264,12 +3264,12 @@ declare const getSubAgentsByIds: (db: DatabaseClient) => (params: {
|
|
|
3264
3264
|
}[]>;
|
|
3265
3265
|
|
|
3266
3266
|
declare const createTask: (db: DatabaseClient) => (params: TaskInsert) => 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;
|
|
@@ -3285,12 +3285,12 @@ declare const updateTask: (db: DatabaseClient) => (params: {
|
|
|
3285
3285
|
metadata?: any;
|
|
3286
3286
|
};
|
|
3287
3287
|
}) => Promise<{
|
|
3288
|
-
tenantId: string;
|
|
3289
|
-
projectId: string;
|
|
3290
3288
|
id: string;
|
|
3291
|
-
agentId: string;
|
|
3292
3289
|
createdAt: string;
|
|
3293
3290
|
updatedAt: string;
|
|
3291
|
+
projectId: string;
|
|
3292
|
+
tenantId: string;
|
|
3293
|
+
agentId: string;
|
|
3294
3294
|
status: string;
|
|
3295
3295
|
metadata: TaskMetadataConfig | null;
|
|
3296
3296
|
contextId: string;
|
|
@@ -3305,20 +3305,20 @@ declare const getToolById: (db: DatabaseClient) => (params: {
|
|
|
3305
3305
|
scopes: ProjectScopeConfig;
|
|
3306
3306
|
toolId: string;
|
|
3307
3307
|
}) => Promise<{
|
|
3308
|
-
tenantId: string;
|
|
3309
|
-
projectId: string;
|
|
3310
|
-
id: string;
|
|
3311
3308
|
name: string;
|
|
3309
|
+
headers: Record<string, string> | null;
|
|
3310
|
+
id: string;
|
|
3311
|
+
createdAt: string;
|
|
3312
|
+
updatedAt: string;
|
|
3313
|
+
projectId: string;
|
|
3314
|
+
tenantId: string;
|
|
3312
3315
|
description: string | null;
|
|
3316
|
+
credentialReferenceId: string | null;
|
|
3317
|
+
capabilities: ToolServerCapabilities | null;
|
|
3313
3318
|
config: {
|
|
3314
3319
|
type: "mcp";
|
|
3315
3320
|
mcp: ToolMcpConfig;
|
|
3316
3321
|
};
|
|
3317
|
-
credentialReferenceId: string | null;
|
|
3318
|
-
createdAt: string;
|
|
3319
|
-
updatedAt: string;
|
|
3320
|
-
headers: Record<string, string> | null;
|
|
3321
|
-
capabilities: ToolServerCapabilities | null;
|
|
3322
3322
|
imageUrl: string | null;
|
|
3323
3323
|
lastError: string | null;
|
|
3324
3324
|
} | null>;
|
|
@@ -3352,20 +3352,20 @@ declare const listTools: (db: DatabaseClient) => (params: {
|
|
|
3352
3352
|
};
|
|
3353
3353
|
}>;
|
|
3354
3354
|
declare const createTool: (db: DatabaseClient) => (params: ToolInsert) => Promise<{
|
|
3355
|
-
tenantId: string;
|
|
3356
|
-
projectId: string;
|
|
3357
|
-
id: string;
|
|
3358
3355
|
name: string;
|
|
3356
|
+
headers: Record<string, string> | null;
|
|
3357
|
+
id: string;
|
|
3358
|
+
createdAt: string;
|
|
3359
|
+
updatedAt: string;
|
|
3360
|
+
projectId: string;
|
|
3361
|
+
tenantId: string;
|
|
3359
3362
|
description: string | null;
|
|
3363
|
+
credentialReferenceId: string | null;
|
|
3364
|
+
capabilities: ToolServerCapabilities | null;
|
|
3360
3365
|
config: {
|
|
3361
3366
|
type: "mcp";
|
|
3362
3367
|
mcp: ToolMcpConfig;
|
|
3363
3368
|
};
|
|
3364
|
-
credentialReferenceId: string | null;
|
|
3365
|
-
createdAt: string;
|
|
3366
|
-
updatedAt: string;
|
|
3367
|
-
headers: Record<string, string> | null;
|
|
3368
|
-
capabilities: ToolServerCapabilities | null;
|
|
3369
3369
|
imageUrl: string | null;
|
|
3370
3370
|
lastError: string | null;
|
|
3371
3371
|
}>;
|
|
@@ -3374,20 +3374,20 @@ declare const updateTool: (db: DatabaseClient) => (params: {
|
|
|
3374
3374
|
toolId: string;
|
|
3375
3375
|
data: ToolUpdate;
|
|
3376
3376
|
}) => Promise<{
|
|
3377
|
-
tenantId: string;
|
|
3378
|
-
projectId: string;
|
|
3379
|
-
id: string;
|
|
3380
3377
|
name: string;
|
|
3378
|
+
headers: Record<string, string> | null;
|
|
3379
|
+
id: string;
|
|
3380
|
+
createdAt: string;
|
|
3381
|
+
updatedAt: string;
|
|
3382
|
+
projectId: string;
|
|
3383
|
+
tenantId: string;
|
|
3381
3384
|
description: string | null;
|
|
3385
|
+
credentialReferenceId: string | null;
|
|
3386
|
+
capabilities: ToolServerCapabilities | null;
|
|
3382
3387
|
config: {
|
|
3383
3388
|
type: "mcp";
|
|
3384
3389
|
mcp: ToolMcpConfig;
|
|
3385
3390
|
};
|
|
3386
|
-
credentialReferenceId: string | null;
|
|
3387
|
-
createdAt: string;
|
|
3388
|
-
updatedAt: string;
|
|
3389
|
-
headers: Record<string, string> | null;
|
|
3390
|
-
capabilities: ToolServerCapabilities | null;
|
|
3391
3391
|
imageUrl: string | null;
|
|
3392
3392
|
lastError: string | null;
|
|
3393
3393
|
}>;
|
|
@@ -3402,32 +3402,32 @@ declare const addToolToAgent: (db: DatabaseClient) => (params: {
|
|
|
3402
3402
|
selectedTools?: string[] | null;
|
|
3403
3403
|
headers?: Record<string, string> | null;
|
|
3404
3404
|
}) => Promise<{
|
|
3405
|
-
|
|
3406
|
-
projectId: string;
|
|
3405
|
+
headers: Record<string, string> | null;
|
|
3407
3406
|
id: string;
|
|
3408
|
-
agentId: string;
|
|
3409
3407
|
createdAt: string;
|
|
3410
3408
|
updatedAt: string;
|
|
3411
|
-
|
|
3412
|
-
|
|
3409
|
+
projectId: string;
|
|
3410
|
+
tenantId: string;
|
|
3411
|
+
agentId: string;
|
|
3413
3412
|
selectedTools: string[] | null;
|
|
3414
3413
|
subAgentId: string;
|
|
3414
|
+
toolId: string;
|
|
3415
3415
|
}>;
|
|
3416
3416
|
declare const removeToolFromAgent: (db: DatabaseClient) => (params: {
|
|
3417
3417
|
scopes: AgentScopeConfig;
|
|
3418
3418
|
subAgentId: string;
|
|
3419
3419
|
toolId: string;
|
|
3420
3420
|
}) => Promise<{
|
|
3421
|
-
|
|
3422
|
-
projectId: string;
|
|
3421
|
+
headers: Record<string, string> | null;
|
|
3423
3422
|
id: string;
|
|
3424
|
-
agentId: string;
|
|
3425
3423
|
createdAt: string;
|
|
3426
3424
|
updatedAt: string;
|
|
3427
|
-
|
|
3428
|
-
|
|
3425
|
+
projectId: string;
|
|
3426
|
+
tenantId: string;
|
|
3427
|
+
agentId: string;
|
|
3429
3428
|
selectedTools: string[] | null;
|
|
3430
3429
|
subAgentId: string;
|
|
3430
|
+
toolId: string;
|
|
3431
3431
|
}>;
|
|
3432
3432
|
/**
|
|
3433
3433
|
* Upsert agent-tool relation (create if it doesn't exist, update if it does)
|
|
@@ -3440,16 +3440,16 @@ declare const upsertSubAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
|
3440
3440
|
headers?: Record<string, string> | null;
|
|
3441
3441
|
relationId?: string;
|
|
3442
3442
|
}) => Promise<{
|
|
3443
|
-
|
|
3444
|
-
projectId: string;
|
|
3443
|
+
headers: Record<string, string> | null;
|
|
3445
3444
|
id: string;
|
|
3446
|
-
agentId: string;
|
|
3447
3445
|
createdAt: string;
|
|
3448
3446
|
updatedAt: string;
|
|
3449
|
-
|
|
3450
|
-
|
|
3447
|
+
projectId: string;
|
|
3448
|
+
tenantId: string;
|
|
3449
|
+
agentId: string;
|
|
3451
3450
|
selectedTools: string[] | null;
|
|
3452
3451
|
subAgentId: string;
|
|
3452
|
+
toolId: string;
|
|
3453
3453
|
}>;
|
|
3454
3454
|
/**
|
|
3455
3455
|
* Upsert a tool (create if it doesn't exist, update if it does)
|
|
@@ -3457,20 +3457,20 @@ declare const upsertSubAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
|
3457
3457
|
declare const upsertTool: (db: DatabaseClient) => (params: {
|
|
3458
3458
|
data: ToolInsert;
|
|
3459
3459
|
}) => Promise<{
|
|
3460
|
-
tenantId: string;
|
|
3461
|
-
projectId: string;
|
|
3462
|
-
id: string;
|
|
3463
3460
|
name: string;
|
|
3461
|
+
headers: Record<string, string> | null;
|
|
3462
|
+
id: string;
|
|
3463
|
+
createdAt: string;
|
|
3464
|
+
updatedAt: string;
|
|
3465
|
+
projectId: string;
|
|
3466
|
+
tenantId: string;
|
|
3464
3467
|
description: string | null;
|
|
3468
|
+
credentialReferenceId: string | null;
|
|
3469
|
+
capabilities: ToolServerCapabilities | null;
|
|
3465
3470
|
config: {
|
|
3466
3471
|
type: "mcp";
|
|
3467
3472
|
mcp: ToolMcpConfig;
|
|
3468
3473
|
};
|
|
3469
|
-
credentialReferenceId: string | null;
|
|
3470
|
-
createdAt: string;
|
|
3471
|
-
updatedAt: string;
|
|
3472
|
-
headers: Record<string, string> | null;
|
|
3473
|
-
capabilities: ToolServerCapabilities | null;
|
|
3474
3474
|
imageUrl: string | null;
|
|
3475
3475
|
lastError: string | null;
|
|
3476
3476
|
}>;
|