@inkeep/agents-core 0.29.9 → 0.29.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client-exports.d.cts +6 -6
- package/dist/client-exports.d.ts +6 -6
- package/dist/db/schema.d.cts +2 -2
- package/dist/db/schema.d.ts +2 -2
- package/dist/index.d.cts +321 -321
- package/dist/index.d.ts +321 -321
- package/dist/index.js +2 -2
- package/dist/{schema-B7LgU7Uc.d.ts → schema-BQf2wGSE.d.ts} +1 -1
- package/dist/{schema-BiOhaqXf.d.cts → schema-C-rqra-r.d.cts} +1 -1
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/validation/index.d.cts +2 -2
- package/dist/validation/index.d.ts +2 -2
- package/package.json +1 -1
- package/dist/{utility-DhRaNM5g.d.cts → utility-C5D70uSj.d.cts} +264 -264
- package/dist/{utility-DhRaNM5g.d.ts → utility-C5D70uSj.d.ts} +264 -264
package/dist/index.d.cts
CHANGED
|
@@ -2,13 +2,13 @@ export { ANTHROPIC_MODELS, AnthropicModel, GOOGLE_MODELS, GoogleModel, ModelName
|
|
|
2
2
|
import { r as PinoLogger, s as getLogger } from './auth-detection-DtO-n2WD.cjs';
|
|
3
3
|
export { i as ACTIVITY_NAMES, g as ACTIVITY_STATUS, f as ACTIVITY_TYPES, h as AGENT_IDS, p as AGGREGATE_OPERATORS, A as AI_OPERATIONS, j as AI_TOOL_TYPES, o as DATA_SOURCES, k as DATA_TYPES, D as DELEGATION_FROM_SUB_AGENT_ID, b as DELEGATION_ID, a as DELEGATION_TO_SUB_AGENT_ID, F as FIELD_TYPES, L as LoggerFactoryConfig, M as McpOAuthFlowResult, u as McpTokenExchangeResult, t as OAuthConfig, O as OPERATORS, m as ORDER_DIRECTIONS, P as PANEL_TYPES, x as PinoLoggerConfig, q as QUERY_DEFAULTS, l as QUERY_EXPRESSIONS, Q as QUERY_FIELD_CONFIGS, n as QUERY_TYPES, R as REDUCE_OPERATIONS, e as SPAN_KEYS, S as SPAN_NAMES, T as TRANSFER_FROM_SUB_AGENT_ID, c as TRANSFER_TO_SUB_AGENT_ID, U as UNKNOWN_VALUE, d as detectAuthenticationRequired, w as exchangeMcpAuthorizationCode, v as initiateMcpOAuthFlow, y as loggerFactory } from './auth-detection-DtO-n2WD.cjs';
|
|
4
4
|
import { z } from 'zod';
|
|
5
|
-
import { r as CredentialReferenceApiInsert, s as ContextConfigSelect, l as ContextFetchDefinition, i as MCPTransportType, t as MCPToolConfig, u as ProjectScopeConfig, v as FullAgentDefinition, w as AgentScopeConfig, C as ConversationHistoryConfig, x as PaginationConfig, y as AgentInsert, z as AgentUpdate, B as AgentSelect, D as ApiKeySelect, E as ApiKeyInsert, G as ApiKeyUpdate, H as CreateApiKeyParams, I as ApiKeyCreateResult, J as ArtifactComponentSelect, K as ArtifactComponentInsert, L as ArtifactComponentUpdate, N as SubAgentScopeConfig, O as ContextCacheSelect, Q as ContextCacheInsert, R as ContextConfigInsert, U as ContextConfigUpdate, V as ConversationSelect, W as ConversationInsert, o as ConversationMetadata, X as ConversationUpdate, Y as CredentialReferenceSelect, Z as ToolSelect, _ as ExternalAgentSelect, $ as CredentialReferenceInsert, a0 as CredentialReferenceUpdate, a1 as DataComponentSelect, a2 as DataComponentInsert, a3 as DataComponentUpdate, a4 as ExternalAgentInsert, a5 as ExternalAgentUpdate, a6 as FunctionApiInsert, a7 as FunctionToolApiInsert, a8 as FunctionToolApiUpdate, a9 as Artifact, aa as LedgerArtifactSelect, q as MessageMetadata, p as MessageContent, ab as MessageVisibility, ac as MessageInsert, ad as MessageUpdate, ae as FullProjectDefinition, af as ProjectInfo, ag as ProjectSelect, ah as PaginationResult, ai as ProjectResourceCounts, aj as ProjectInsert, ak as ProjectUpdate, al as SubAgentExternalAgentRelationInsert, am as SubAgentRelationInsert, an as SubAgentRelationUpdate, ao as SubAgentToolRelationUpdate, m as ToolMcpConfig, n as ToolServerCapabilities, ap as SubAgentInsert, aq as SubAgentUpdate, ar as SubAgentSelect, as as SubAgentTeamAgentRelationInsert, at as TaskInsert, T as TaskMetadataConfig, au as TaskSelect, av as McpTool, aw as ToolInsert, ax as ToolUpdate, h as CredentialStoreType, ay as ExecutionContext } from './utility-
|
|
6
|
-
export { ba as A2AError, bG as A2ARequest, bH as A2AResponse, aL as APIKeySecurityScheme, bV as AgentApiInsert, e6 as AgentApiInsertSchema, bU as AgentApiSelect, e5 as AgentApiSelectSchema, bW as AgentApiUpdate, e7 as AgentApiUpdateSchema, aH as AgentCapabilities, aV as AgentCard, dx as AgentConversationHistoryConfig, e3 as AgentInsertSchema, gI as AgentListResponse, aI as AgentProvider, gs as AgentResponse, e2 as AgentSelectSchema, aJ as AgentSkill, e as AgentStopWhen, b as AgentStopWhenSchema, e4 as AgentUpdateSchema, gc as AgentWithinContextOfProjectSchema, fa as AllAgentSchema, cP as AllAgentSelect, cT as ApiKeyApiCreationResponse, ff as ApiKeyApiCreationResponseSchema, cR as ApiKeyApiInsert, fg as ApiKeyApiInsertSchema, cQ as ApiKeyApiSelect, fe as ApiKeyApiSelectSchema, cS as ApiKeyApiUpdate, A as ApiKeyApiUpdateSchema, fc as ApiKeyInsertSchema, gM as ApiKeyListResponse, gw as ApiKeyResponse, fb as ApiKeySelectSchema, fd as ApiKeyUpdateSchema, cE as ArtifactComponentApiInsert, eY as ArtifactComponentApiInsertSchema, cD as ArtifactComponentApiSelect, eX as ArtifactComponentApiSelectSchema, cF as ArtifactComponentApiUpdate, eZ as ArtifactComponentApiUpdateSchema, eV as ArtifactComponentInsertSchema, gR as ArtifactComponentListResponse, gB as ArtifactComponentResponse, eU as ArtifactComponentSelectSchema, eW as ArtifactComponentUpdateSchema, aO as AuthorizationCodeOAuthFlow, dg as CanDelegateToExternalAgent, df as CanUseItem, g8 as CanUseItemSchema, bq as CancelTaskRequest, bB as CancelTaskResponse, bA as CancelTaskSuccessResponse, aP as ClientCredentialsOAuthFlow, b8 as ContentTypeNotSupportedError, cs as ContextCacheApiInsert, eF as ContextCacheApiInsertSchema, cr as ContextCacheApiSelect, eE as ContextCacheApiSelectSchema, ct as ContextCacheApiUpdate, eG as ContextCacheApiUpdateSchema, dy as ContextCacheEntry, eC as ContextCacheInsertSchema, eB as ContextCacheSelectSchema, cq as ContextCacheUpdate, eD as ContextCacheUpdateSchema, cm as ContextConfigApiInsert, fI as ContextConfigApiInsertSchema, cl as ContextConfigApiSelect, fH as ContextConfigApiSelectSchema, cn as ContextConfigApiUpdate, fJ as ContextConfigApiUpdateSchema, fF as ContextConfigInsertSchema, gL as ContextConfigListResponse, gv as ContextConfigResponse, fE as ContextConfigSelectSchema, fG as ContextConfigUpdateSchema, cf as ConversationApiInsert, et as ConversationApiInsertSchema, ce as ConversationApiSelect, es as ConversationApiSelectSchema, cg as ConversationApiUpdate, eu as ConversationApiUpdateSchema, eq as ConversationInsertSchema, gU as ConversationListResponse, gE as ConversationResponse, dw as ConversationScopeOptions, ep as ConversationSelectSchema, er as ConversationUpdateSchema, fl as CredentialReferenceApiInsertSchema, cU as CredentialReferenceApiSelect, fk as CredentialReferenceApiSelectSchema, cV as CredentialReferenceApiUpdate, fm as CredentialReferenceApiUpdateSchema, fi as CredentialReferenceInsertSchema, gN as CredentialReferenceListResponse, gx as CredentialReferenceResponse, fh as CredentialReferenceSelectSchema, fj as CredentialReferenceUpdateSchema, cv as DataComponentApiInsert, eM as DataComponentApiInsertSchema, cu as DataComponentApiSelect, eL as DataComponentApiSelectSchema, cw as DataComponentApiUpdate, eN as DataComponentApiUpdateSchema, eJ as DataComponentBaseSchema, eI as DataComponentInsertSchema, gQ as DataComponentListResponse, gA as DataComponentResponse, eH as DataComponentSelectSchema, eK as DataComponentUpdateSchema, aF as DataPart, gg as ErrorResponseSchema, gh as ExistsResponseSchema, cN as ExternalAgentApiInsert, f8 as ExternalAgentApiInsertSchema, cM as ExternalAgentApiSelect, f7 as ExternalAgentApiSelectSchema, cO as ExternalAgentApiUpdate, f9 as ExternalAgentApiUpdateSchema, f5 as ExternalAgentInsertSchema, gK as ExternalAgentListResponse, gu as ExternalAgentResponse, f4 as ExternalAgentSelectSchema, f6 as ExternalAgentUpdateSchema, bT as ExternalSubAgentRelationApiInsert, e1 as ExternalSubAgentRelationApiInsertSchema, bS as ExternalSubAgentRelationInsert, e0 as ExternalSubAgentRelationInsertSchema, cp as FetchConfig, fC as FetchConfigSchema, co as FetchDefinition, fD as FetchDefinitionSchema, aB as FileBase, aE as FilePart, aC as FileWithBytes, aD as FileWithUri, de as FullAgentAgentInsert, a as FullAgentAgentInsertSchema, gp as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, cb as FunctionApiSelect, j as FunctionApiSelectSchema, cc as FunctionApiUpdate, k as FunctionApiUpdateSchema, c9 as FunctionInsert, fA as FunctionInsertSchema, gO as FunctionListResponse, gy as FunctionResponse, c8 as FunctionSelect, fz as FunctionSelectSchema, fx as FunctionToolApiInsertSchema, cd as FunctionToolApiSelect, fw as FunctionToolApiSelectSchema, fy as FunctionToolApiUpdateSchema, dO as FunctionToolConfig, dN as FunctionToolConfigSchema, fu as FunctionToolInsertSchema, gP as FunctionToolListResponse, gz as FunctionToolResponse, ft as FunctionToolSelectSchema, fv as FunctionToolUpdateSchema, ca as FunctionUpdate, fB as FunctionUpdateSchema, bs as GetTaskPushNotificationConfigRequest, bF as GetTaskPushNotificationConfigResponse, bE as GetTaskPushNotificationConfigSuccessResponse, bp as GetTaskRequest, bz as GetTaskResponse, by as GetTaskSuccessResponse, aM as HTTPAuthSecurityScheme, g_ as HeadersScopeSchema, aQ as ImplicitOAuthFlow, b3 as InternalError, b9 as InvalidAgentResponseError, b2 as InvalidParamsError, b0 as InvalidRequestError, a$ as JSONParseError, bk as JSONRPCError, bm as JSONRPCErrorResponse, bi as JSONRPCMessage, bj as JSONRPCRequest, bl as JSONRPCResult, dc as LedgerArtifactApiInsert, g4 as LedgerArtifactApiInsertSchema, db as LedgerArtifactApiSelect, g3 as LedgerArtifactApiSelectSchema, dd as LedgerArtifactApiUpdate, g5 as LedgerArtifactApiUpdateSchema, d9 as LedgerArtifactInsert, g1 as LedgerArtifactInsertSchema, g0 as LedgerArtifactSelectSchema, da as LedgerArtifactUpdate, g2 as LedgerArtifactUpdateSchema, ge as ListResponseSchema, dI as MAX_ID_LENGTH, dG as MCPServerType, fo as MCPToolConfigSchema, dH as MIN_ID_LENGTH, dz as McpAuthType, dA as McpServerAuth, dC as McpServerCapabilities, dD as McpToolDefinition, em as McpToolDefinitionSchema, fn as McpToolSchema, dB as McpTransportConfig, ek as McpTransportConfigSchema, aW as Message, cj as MessageApiInsert, ez as MessageApiInsertSchema, ci as MessageApiSelect, ey as MessageApiSelectSchema, ck as MessageApiUpdate, eA as MessageApiUpdateSchema, ew as MessageInsertSchema, gV as MessageListResponse, dr as MessageMode, bI as MessagePart, gF as MessageResponse, dq as MessageRole, ch as MessageSelect, ev as MessageSelectSchema, bg as MessageSendConfiguration, bh as MessageSendParams, dp as MessageType, ex as MessageUpdateSchema, b1 as MethodNotFoundError, dL as ModelSchema, g as ModelSettings, M as ModelSettingsSchema, ds as Models, aS as OAuth2SecurityScheme, aN as OAuthFlows, aT as OpenIdConnectSecurityScheme, dm as Pagination, h7 as PaginationQueryParamsSchema, gd as PaginationSchema, P as Part, az as PartBase, aR as PasswordOAuthFlow, dk as ProjectApiInsert, gn as ProjectApiInsertSchema, dj as ProjectApiSelect, gm as ProjectApiSelectSchema, dl as ProjectApiUpdate, go as ProjectApiUpdateSchema, gk as ProjectInsertSchema, gG as ProjectListResponse, dM as ProjectModelSchema, dt as ProjectModels, gq as ProjectResponse, gj as ProjectSelectSchema, gl as ProjectUpdateSchema, bb as PushNotificationAuthenticationInfo, bc as PushNotificationConfig, b6 as PushNotificationNotSupportedError, gi as RemovedResponseSchema, aU as SecurityScheme, aK as SecuritySchemeBase, bn as SendMessageRequest, bv as SendMessageResponse, bu as SendMessageSuccessResponse, bo as SendStreamingMessageRequest, bx as SendStreamingMessageResponse, bw as SendStreamingMessageSuccessResponse, br as SetTaskPushNotificationConfigRequest, bD as SetTaskPushNotificationConfigResponse, bC as SetTaskPushNotificationConfigSuccessResponse, gf as SingleResponseSchema, dv as StatusComponent, g6 as StatusComponentSchema, g7 as StatusUpdateSchema, du as StatusUpdateSettings, d as StopWhen, S as StopWhenSchema, bL as SubAgentApiInsert, dT as SubAgentApiInsertSchema, bK as SubAgentApiSelect, dS as SubAgentApiSelectSchema, bM as SubAgentApiUpdate, dU as SubAgentApiUpdateSchema, cK as SubAgentArtifactComponentApiInsert, f2 as SubAgentArtifactComponentApiInsertSchema, cJ as SubAgentArtifactComponentApiSelect, f1 as SubAgentArtifactComponentApiSelectSchema, cL as SubAgentArtifactComponentApiUpdate, f3 as SubAgentArtifactComponentApiUpdateSchema, cH as SubAgentArtifactComponentInsert, e$ as SubAgentArtifactComponentInsertSchema, gZ as SubAgentArtifactComponentListResponse, gX as SubAgentArtifactComponentResponse, cG as SubAgentArtifactComponentSelect, e_ as SubAgentArtifactComponentSelectSchema, cI as SubAgentArtifactComponentUpdate, f0 as SubAgentArtifactComponentUpdateSchema, cB as SubAgentDataComponentApiInsert, eS as SubAgentDataComponentApiInsertSchema, cA as SubAgentDataComponentApiSelect, eR as SubAgentDataComponentApiSelectSchema, cC as SubAgentDataComponentApiUpdate, eT as SubAgentDataComponentApiUpdateSchema, cy as SubAgentDataComponentInsert, eP as SubAgentDataComponentInsertSchema, gY as SubAgentDataComponentListResponse, gW as SubAgentDataComponentResponse, cx as SubAgentDataComponentSelect, eO as SubAgentDataComponentSelectSchema, cz as SubAgentDataComponentUpdate, eQ as SubAgentDataComponentUpdateSchema, dh as SubAgentDefinition, d2 as SubAgentExternalAgentRelationApiInsert, fU as SubAgentExternalAgentRelationApiInsertSchema, d1 as SubAgentExternalAgentRelationApiSelect, fT as SubAgentExternalAgentRelationApiSelectSchema, d3 as SubAgentExternalAgentRelationApiUpdate, fV as SubAgentExternalAgentRelationApiUpdateSchema, fR as SubAgentExternalAgentRelationInsertSchema, c$ as SubAgentExternalAgentRelationSelect, fQ as SubAgentExternalAgentRelationSelectSchema, d0 as SubAgentExternalAgentRelationUpdate, fS as SubAgentExternalAgentRelationUpdateSchema, dQ as SubAgentInsertSchema, gH as SubAgentListResponse, bP as SubAgentRelationApiInsert, dZ as SubAgentRelationApiInsertSchema, bO as SubAgentRelationApiSelect, dY as SubAgentRelationApiSelectSchema, bQ as SubAgentRelationApiUpdate, d_ as SubAgentRelationApiUpdateSchema, dW as SubAgentRelationInsertSchema, gS as SubAgentRelationListResponse, bR as SubAgentRelationQuery, d$ as SubAgentRelationQuerySchema, gC as SubAgentRelationResponse, bN as SubAgentRelationSelect, dV as SubAgentRelationSelectSchema, dX as SubAgentRelationUpdateSchema, gr as SubAgentResponse, dP as SubAgentSelectSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema, d7 as SubAgentTeamAgentRelationApiInsert, f_ as SubAgentTeamAgentRelationApiInsertSchema, d6 as SubAgentTeamAgentRelationApiSelect, fZ as SubAgentTeamAgentRelationApiSelectSchema, d8 as SubAgentTeamAgentRelationApiUpdate, f$ as SubAgentTeamAgentRelationApiUpdateSchema, fX as SubAgentTeamAgentRelationInsertSchema, d4 as SubAgentTeamAgentRelationSelect, fW as SubAgentTeamAgentRelationSelectSchema, d5 as SubAgentTeamAgentRelationUpdate, fY as SubAgentTeamAgentRelationUpdateSchema, cZ as SubAgentToolRelationApiInsert, fO as SubAgentToolRelationApiInsertSchema, cY as SubAgentToolRelationApiSelect, fN as SubAgentToolRelationApiSelectSchema, c_ as SubAgentToolRelationApiUpdate, fP as SubAgentToolRelationApiUpdateSchema, cX as SubAgentToolRelationInsert, fL as SubAgentToolRelationInsertSchema, gT as SubAgentToolRelationListResponse, gD as SubAgentToolRelationResponse, cW as SubAgentToolRelationSelect, fK as SubAgentToolRelationSelectSchema, fM as SubAgentToolRelationUpdateSchema, dR as SubAgentUpdateSchema, dn as SummaryEvent, dE as TOOL_STATUS_VALUES, aY as Task, bZ as TaskApiInsert, ec as TaskApiInsertSchema, bY as TaskApiSelect, eb as TaskApiSelectSchema, b_ as TaskApiUpdate, ed as TaskApiUpdateSchema, bJ as TaskArtifact, a_ as TaskArtifactUpdateEvent, be as TaskIdParams, e9 as TaskInsertSchema, b5 as TaskNotCancelableError, b4 as TaskNotFoundError, bd as TaskPushNotificationConfig, bf as TaskQueryParams, c3 as TaskRelationApiInsert, ei as TaskRelationApiInsertSchema, c2 as TaskRelationApiSelect, eh as TaskRelationApiSelectSchema, c4 as TaskRelationApiUpdate, ej as TaskRelationApiUpdateSchema, c0 as TaskRelationInsert, ef as TaskRelationInsertSchema, b$ as TaskRelationSelect, ee as TaskRelationSelectSchema, c1 as TaskRelationUpdate, eg as TaskRelationUpdateSchema, bt as TaskResubscriptionRequest, e8 as TaskSelectSchema, aG as TaskState, aX as TaskStatus, aZ as TaskStatusUpdateEvent, bX as TaskUpdate, ea as TaskUpdateSchema, gb as TeamAgentSchema, h0 as TenantIdParamsSchema, g$ as TenantParamsSchema, h4 as TenantProjectAgentIdParamsSchema, h3 as TenantProjectAgentParamsSchema, h6 as TenantProjectAgentSubAgentIdParamsSchema, h5 as TenantProjectAgentSubAgentParamsSchema, h2 as TenantProjectIdParamsSchema, h1 as TenantProjectParamsSchema, aA as TextPart, c6 as ToolApiInsert, fr as ToolApiInsertSchema, c5 as ToolApiSelect, fq as ToolApiSelectSchema, c7 as ToolApiUpdate, fs as ToolApiUpdateSchema, di as ToolDefinition, eo as ToolInsertSchema, gJ as ToolListResponse, gt as ToolResponse, en as ToolSelectSchema, el as ToolStatusSchema, fp as ToolUpdateSchema, dJ as URL_SAFE_ID_PATTERN, b7 as UnsupportedOperationError, dF as VALID_RELATION_TYPES, g9 as canDelegateToExternalAgentSchema, ga as canDelegateToTeamAgentSchema, dK as resourceIdSchema } from './utility-DhRaNM5g.cjs';
|
|
5
|
+
import { r as CredentialReferenceApiInsert, s as ContextConfigSelect, l as ContextFetchDefinition, i as MCPTransportType, t as MCPToolConfig, u as ProjectScopeConfig, v as FullAgentDefinition, w as AgentScopeConfig, C as ConversationHistoryConfig, x as PaginationConfig, y as AgentInsert, z as AgentUpdate, B as AgentSelect, D as ApiKeySelect, E as ApiKeyInsert, G as ApiKeyUpdate, H as CreateApiKeyParams, I as ApiKeyCreateResult, J as ArtifactComponentSelect, K as ArtifactComponentInsert, L as ArtifactComponentUpdate, N as SubAgentScopeConfig, O as ContextCacheSelect, Q as ContextCacheInsert, R as ContextConfigInsert, U as ContextConfigUpdate, V as ConversationSelect, W as ConversationInsert, o as ConversationMetadata, X as ConversationUpdate, Y as CredentialReferenceSelect, Z as ToolSelect, _ as ExternalAgentSelect, $ as CredentialReferenceInsert, a0 as CredentialReferenceUpdate, a1 as DataComponentSelect, a2 as DataComponentInsert, a3 as DataComponentUpdate, a4 as ExternalAgentInsert, a5 as ExternalAgentUpdate, a6 as FunctionApiInsert, a7 as FunctionToolApiInsert, a8 as FunctionToolApiUpdate, a9 as Artifact, aa as LedgerArtifactSelect, q as MessageMetadata, p as MessageContent, ab as MessageVisibility, ac as MessageInsert, ad as MessageUpdate, ae as FullProjectDefinition, af as ProjectInfo, ag as ProjectSelect, ah as PaginationResult, ai as ProjectResourceCounts, aj as ProjectInsert, ak as ProjectUpdate, al as SubAgentExternalAgentRelationInsert, am as SubAgentRelationInsert, an as SubAgentRelationUpdate, ao as SubAgentToolRelationUpdate, m as ToolMcpConfig, n as ToolServerCapabilities, ap as SubAgentInsert, aq as SubAgentUpdate, ar as SubAgentSelect, as as SubAgentTeamAgentRelationInsert, at as TaskInsert, T as TaskMetadataConfig, au as TaskSelect, av as McpTool, aw as ToolInsert, ax as ToolUpdate, h as CredentialStoreType, ay as ExecutionContext } from './utility-C5D70uSj.cjs';
|
|
6
|
+
export { ba as A2AError, bG as A2ARequest, bH as A2AResponse, aL as APIKeySecurityScheme, bV as AgentApiInsert, e6 as AgentApiInsertSchema, bU as AgentApiSelect, e5 as AgentApiSelectSchema, bW as AgentApiUpdate, e7 as AgentApiUpdateSchema, aH as AgentCapabilities, aV as AgentCard, dx as AgentConversationHistoryConfig, e3 as AgentInsertSchema, gI as AgentListResponse, aI as AgentProvider, gs as AgentResponse, e2 as AgentSelectSchema, aJ as AgentSkill, e as AgentStopWhen, b as AgentStopWhenSchema, e4 as AgentUpdateSchema, gc as AgentWithinContextOfProjectSchema, fa as AllAgentSchema, cP as AllAgentSelect, cT as ApiKeyApiCreationResponse, ff as ApiKeyApiCreationResponseSchema, cR as ApiKeyApiInsert, fg as ApiKeyApiInsertSchema, cQ as ApiKeyApiSelect, fe as ApiKeyApiSelectSchema, cS as ApiKeyApiUpdate, A as ApiKeyApiUpdateSchema, fc as ApiKeyInsertSchema, gM as ApiKeyListResponse, gw as ApiKeyResponse, fb as ApiKeySelectSchema, fd as ApiKeyUpdateSchema, cE as ArtifactComponentApiInsert, eY as ArtifactComponentApiInsertSchema, cD as ArtifactComponentApiSelect, eX as ArtifactComponentApiSelectSchema, cF as ArtifactComponentApiUpdate, eZ as ArtifactComponentApiUpdateSchema, eV as ArtifactComponentInsertSchema, gR as ArtifactComponentListResponse, gB as ArtifactComponentResponse, eU as ArtifactComponentSelectSchema, eW as ArtifactComponentUpdateSchema, aO as AuthorizationCodeOAuthFlow, dg as CanDelegateToExternalAgent, df as CanUseItem, g8 as CanUseItemSchema, bq as CancelTaskRequest, bB as CancelTaskResponse, bA as CancelTaskSuccessResponse, aP as ClientCredentialsOAuthFlow, b8 as ContentTypeNotSupportedError, cs as ContextCacheApiInsert, eF as ContextCacheApiInsertSchema, cr as ContextCacheApiSelect, eE as ContextCacheApiSelectSchema, ct as ContextCacheApiUpdate, eG as ContextCacheApiUpdateSchema, dy as ContextCacheEntry, eC as ContextCacheInsertSchema, eB as ContextCacheSelectSchema, cq as ContextCacheUpdate, eD as ContextCacheUpdateSchema, cm as ContextConfigApiInsert, fI as ContextConfigApiInsertSchema, cl as ContextConfigApiSelect, fH as ContextConfigApiSelectSchema, cn as ContextConfigApiUpdate, fJ as ContextConfigApiUpdateSchema, fF as ContextConfigInsertSchema, gL as ContextConfigListResponse, gv as ContextConfigResponse, fE as ContextConfigSelectSchema, fG as ContextConfigUpdateSchema, cf as ConversationApiInsert, et as ConversationApiInsertSchema, ce as ConversationApiSelect, es as ConversationApiSelectSchema, cg as ConversationApiUpdate, eu as ConversationApiUpdateSchema, eq as ConversationInsertSchema, gU as ConversationListResponse, gE as ConversationResponse, dw as ConversationScopeOptions, ep as ConversationSelectSchema, er as ConversationUpdateSchema, fl as CredentialReferenceApiInsertSchema, cU as CredentialReferenceApiSelect, fk as CredentialReferenceApiSelectSchema, cV as CredentialReferenceApiUpdate, fm as CredentialReferenceApiUpdateSchema, fi as CredentialReferenceInsertSchema, gN as CredentialReferenceListResponse, gx as CredentialReferenceResponse, fh as CredentialReferenceSelectSchema, fj as CredentialReferenceUpdateSchema, cv as DataComponentApiInsert, eM as DataComponentApiInsertSchema, cu as DataComponentApiSelect, eL as DataComponentApiSelectSchema, cw as DataComponentApiUpdate, eN as DataComponentApiUpdateSchema, eJ as DataComponentBaseSchema, eI as DataComponentInsertSchema, gQ as DataComponentListResponse, gA as DataComponentResponse, eH as DataComponentSelectSchema, eK as DataComponentUpdateSchema, aF as DataPart, gg as ErrorResponseSchema, gh as ExistsResponseSchema, cN as ExternalAgentApiInsert, f8 as ExternalAgentApiInsertSchema, cM as ExternalAgentApiSelect, f7 as ExternalAgentApiSelectSchema, cO as ExternalAgentApiUpdate, f9 as ExternalAgentApiUpdateSchema, f5 as ExternalAgentInsertSchema, gK as ExternalAgentListResponse, gu as ExternalAgentResponse, f4 as ExternalAgentSelectSchema, f6 as ExternalAgentUpdateSchema, bT as ExternalSubAgentRelationApiInsert, e1 as ExternalSubAgentRelationApiInsertSchema, bS as ExternalSubAgentRelationInsert, e0 as ExternalSubAgentRelationInsertSchema, cp as FetchConfig, fC as FetchConfigSchema, co as FetchDefinition, fD as FetchDefinitionSchema, aB as FileBase, aE as FilePart, aC as FileWithBytes, aD as FileWithUri, de as FullAgentAgentInsert, a as FullAgentAgentInsertSchema, gp as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, cb as FunctionApiSelect, j as FunctionApiSelectSchema, cc as FunctionApiUpdate, k as FunctionApiUpdateSchema, c9 as FunctionInsert, fA as FunctionInsertSchema, gO as FunctionListResponse, gy as FunctionResponse, c8 as FunctionSelect, fz as FunctionSelectSchema, fx as FunctionToolApiInsertSchema, cd as FunctionToolApiSelect, fw as FunctionToolApiSelectSchema, fy as FunctionToolApiUpdateSchema, dO as FunctionToolConfig, dN as FunctionToolConfigSchema, fu as FunctionToolInsertSchema, gP as FunctionToolListResponse, gz as FunctionToolResponse, ft as FunctionToolSelectSchema, fv as FunctionToolUpdateSchema, ca as FunctionUpdate, fB as FunctionUpdateSchema, bs as GetTaskPushNotificationConfigRequest, bF as GetTaskPushNotificationConfigResponse, bE as GetTaskPushNotificationConfigSuccessResponse, bp as GetTaskRequest, bz as GetTaskResponse, by as GetTaskSuccessResponse, aM as HTTPAuthSecurityScheme, g_ as HeadersScopeSchema, aQ as ImplicitOAuthFlow, b3 as InternalError, b9 as InvalidAgentResponseError, b2 as InvalidParamsError, b0 as InvalidRequestError, a$ as JSONParseError, bk as JSONRPCError, bm as JSONRPCErrorResponse, bi as JSONRPCMessage, bj as JSONRPCRequest, bl as JSONRPCResult, dc as LedgerArtifactApiInsert, g4 as LedgerArtifactApiInsertSchema, db as LedgerArtifactApiSelect, g3 as LedgerArtifactApiSelectSchema, dd as LedgerArtifactApiUpdate, g5 as LedgerArtifactApiUpdateSchema, d9 as LedgerArtifactInsert, g1 as LedgerArtifactInsertSchema, g0 as LedgerArtifactSelectSchema, da as LedgerArtifactUpdate, g2 as LedgerArtifactUpdateSchema, ge as ListResponseSchema, dI as MAX_ID_LENGTH, dG as MCPServerType, fo as MCPToolConfigSchema, dH as MIN_ID_LENGTH, dz as McpAuthType, dA as McpServerAuth, dC as McpServerCapabilities, dD as McpToolDefinition, em as McpToolDefinitionSchema, fn as McpToolSchema, dB as McpTransportConfig, ek as McpTransportConfigSchema, aW as Message, cj as MessageApiInsert, ez as MessageApiInsertSchema, ci as MessageApiSelect, ey as MessageApiSelectSchema, ck as MessageApiUpdate, eA as MessageApiUpdateSchema, ew as MessageInsertSchema, gV as MessageListResponse, dr as MessageMode, bI as MessagePart, gF as MessageResponse, dq as MessageRole, ch as MessageSelect, ev as MessageSelectSchema, bg as MessageSendConfiguration, bh as MessageSendParams, dp as MessageType, ex as MessageUpdateSchema, b1 as MethodNotFoundError, dL as ModelSchema, g as ModelSettings, M as ModelSettingsSchema, ds as Models, aS as OAuth2SecurityScheme, aN as OAuthFlows, aT as OpenIdConnectSecurityScheme, dm as Pagination, h7 as PaginationQueryParamsSchema, gd as PaginationSchema, P as Part, az as PartBase, aR as PasswordOAuthFlow, dk as ProjectApiInsert, gn as ProjectApiInsertSchema, dj as ProjectApiSelect, gm as ProjectApiSelectSchema, dl as ProjectApiUpdate, go as ProjectApiUpdateSchema, gk as ProjectInsertSchema, gG as ProjectListResponse, dM as ProjectModelSchema, dt as ProjectModels, gq as ProjectResponse, gj as ProjectSelectSchema, gl as ProjectUpdateSchema, bb as PushNotificationAuthenticationInfo, bc as PushNotificationConfig, b6 as PushNotificationNotSupportedError, gi as RemovedResponseSchema, aU as SecurityScheme, aK as SecuritySchemeBase, bn as SendMessageRequest, bv as SendMessageResponse, bu as SendMessageSuccessResponse, bo as SendStreamingMessageRequest, bx as SendStreamingMessageResponse, bw as SendStreamingMessageSuccessResponse, br as SetTaskPushNotificationConfigRequest, bD as SetTaskPushNotificationConfigResponse, bC as SetTaskPushNotificationConfigSuccessResponse, gf as SingleResponseSchema, dv as StatusComponent, g6 as StatusComponentSchema, g7 as StatusUpdateSchema, du as StatusUpdateSettings, d as StopWhen, S as StopWhenSchema, bL as SubAgentApiInsert, dT as SubAgentApiInsertSchema, bK as SubAgentApiSelect, dS as SubAgentApiSelectSchema, bM as SubAgentApiUpdate, dU as SubAgentApiUpdateSchema, cK as SubAgentArtifactComponentApiInsert, f2 as SubAgentArtifactComponentApiInsertSchema, cJ as SubAgentArtifactComponentApiSelect, f1 as SubAgentArtifactComponentApiSelectSchema, cL as SubAgentArtifactComponentApiUpdate, f3 as SubAgentArtifactComponentApiUpdateSchema, cH as SubAgentArtifactComponentInsert, e$ as SubAgentArtifactComponentInsertSchema, gZ as SubAgentArtifactComponentListResponse, gX as SubAgentArtifactComponentResponse, cG as SubAgentArtifactComponentSelect, e_ as SubAgentArtifactComponentSelectSchema, cI as SubAgentArtifactComponentUpdate, f0 as SubAgentArtifactComponentUpdateSchema, cB as SubAgentDataComponentApiInsert, eS as SubAgentDataComponentApiInsertSchema, cA as SubAgentDataComponentApiSelect, eR as SubAgentDataComponentApiSelectSchema, cC as SubAgentDataComponentApiUpdate, eT as SubAgentDataComponentApiUpdateSchema, cy as SubAgentDataComponentInsert, eP as SubAgentDataComponentInsertSchema, gY as SubAgentDataComponentListResponse, gW as SubAgentDataComponentResponse, cx as SubAgentDataComponentSelect, eO as SubAgentDataComponentSelectSchema, cz as SubAgentDataComponentUpdate, eQ as SubAgentDataComponentUpdateSchema, dh as SubAgentDefinition, d2 as SubAgentExternalAgentRelationApiInsert, fU as SubAgentExternalAgentRelationApiInsertSchema, d1 as SubAgentExternalAgentRelationApiSelect, fT as SubAgentExternalAgentRelationApiSelectSchema, d3 as SubAgentExternalAgentRelationApiUpdate, fV as SubAgentExternalAgentRelationApiUpdateSchema, fR as SubAgentExternalAgentRelationInsertSchema, c$ as SubAgentExternalAgentRelationSelect, fQ as SubAgentExternalAgentRelationSelectSchema, d0 as SubAgentExternalAgentRelationUpdate, fS as SubAgentExternalAgentRelationUpdateSchema, dQ as SubAgentInsertSchema, gH as SubAgentListResponse, bP as SubAgentRelationApiInsert, dZ as SubAgentRelationApiInsertSchema, bO as SubAgentRelationApiSelect, dY as SubAgentRelationApiSelectSchema, bQ as SubAgentRelationApiUpdate, d_ as SubAgentRelationApiUpdateSchema, dW as SubAgentRelationInsertSchema, gS as SubAgentRelationListResponse, bR as SubAgentRelationQuery, d$ as SubAgentRelationQuerySchema, gC as SubAgentRelationResponse, bN as SubAgentRelationSelect, dV as SubAgentRelationSelectSchema, dX as SubAgentRelationUpdateSchema, gr as SubAgentResponse, dP as SubAgentSelectSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema, d7 as SubAgentTeamAgentRelationApiInsert, f_ as SubAgentTeamAgentRelationApiInsertSchema, d6 as SubAgentTeamAgentRelationApiSelect, fZ as SubAgentTeamAgentRelationApiSelectSchema, d8 as SubAgentTeamAgentRelationApiUpdate, f$ as SubAgentTeamAgentRelationApiUpdateSchema, fX as SubAgentTeamAgentRelationInsertSchema, d4 as SubAgentTeamAgentRelationSelect, fW as SubAgentTeamAgentRelationSelectSchema, d5 as SubAgentTeamAgentRelationUpdate, fY as SubAgentTeamAgentRelationUpdateSchema, cZ as SubAgentToolRelationApiInsert, fO as SubAgentToolRelationApiInsertSchema, cY as SubAgentToolRelationApiSelect, fN as SubAgentToolRelationApiSelectSchema, c_ as SubAgentToolRelationApiUpdate, fP as SubAgentToolRelationApiUpdateSchema, cX as SubAgentToolRelationInsert, fL as SubAgentToolRelationInsertSchema, gT as SubAgentToolRelationListResponse, gD as SubAgentToolRelationResponse, cW as SubAgentToolRelationSelect, fK as SubAgentToolRelationSelectSchema, fM as SubAgentToolRelationUpdateSchema, dR as SubAgentUpdateSchema, dn as SummaryEvent, dE as TOOL_STATUS_VALUES, aY as Task, bZ as TaskApiInsert, ec as TaskApiInsertSchema, bY as TaskApiSelect, eb as TaskApiSelectSchema, b_ as TaskApiUpdate, ed as TaskApiUpdateSchema, bJ as TaskArtifact, a_ as TaskArtifactUpdateEvent, be as TaskIdParams, e9 as TaskInsertSchema, b5 as TaskNotCancelableError, b4 as TaskNotFoundError, bd as TaskPushNotificationConfig, bf as TaskQueryParams, c3 as TaskRelationApiInsert, ei as TaskRelationApiInsertSchema, c2 as TaskRelationApiSelect, eh as TaskRelationApiSelectSchema, c4 as TaskRelationApiUpdate, ej as TaskRelationApiUpdateSchema, c0 as TaskRelationInsert, ef as TaskRelationInsertSchema, b$ as TaskRelationSelect, ee as TaskRelationSelectSchema, c1 as TaskRelationUpdate, eg as TaskRelationUpdateSchema, bt as TaskResubscriptionRequest, e8 as TaskSelectSchema, aG as TaskState, aX as TaskStatus, aZ as TaskStatusUpdateEvent, bX as TaskUpdate, ea as TaskUpdateSchema, gb as TeamAgentSchema, h0 as TenantIdParamsSchema, g$ as TenantParamsSchema, h4 as TenantProjectAgentIdParamsSchema, h3 as TenantProjectAgentParamsSchema, h6 as TenantProjectAgentSubAgentIdParamsSchema, h5 as TenantProjectAgentSubAgentParamsSchema, h2 as TenantProjectIdParamsSchema, h1 as TenantProjectParamsSchema, aA as TextPart, c6 as ToolApiInsert, fr as ToolApiInsertSchema, c5 as ToolApiSelect, fq as ToolApiSelectSchema, c7 as ToolApiUpdate, fs as ToolApiUpdateSchema, di as ToolDefinition, eo as ToolInsertSchema, gJ as ToolListResponse, gt as ToolResponse, en as ToolSelectSchema, el as ToolStatusSchema, fp as ToolUpdateSchema, dJ as URL_SAFE_ID_PATTERN, b7 as UnsupportedOperationError, dF as VALID_RELATION_TYPES, g9 as canDelegateToExternalAgentSchema, ga as canDelegateToTeamAgentSchema, dK as resourceIdSchema } from './utility-C5D70uSj.cjs';
|
|
7
7
|
import { CredentialStore } from './types/index.cjs';
|
|
8
8
|
export { CorsConfig, ServerConfig, ServerOptions } from './types/index.cjs';
|
|
9
9
|
import { LibSQLDatabase } from 'drizzle-orm/libsql';
|
|
10
|
-
import { s as schema } from './schema-
|
|
11
|
-
export { G as agentRelations, J as agentToolRelationsRelations, a as agents, y as apiKeys, I as apiKeysRelations, j as artifactComponents, O as artifactComponentsRelations, b as contextCache, E as contextCacheRelations, c as contextConfigs, D as contextConfigsRelations, v as conversations, M as conversationsRelations, z as credentialReferences, K as credentialReferencesRelations, h as dataComponents, Q as dataComponentsRelations, f as externalAgents, H as externalAgentsRelations, m as functionTools, V as functionToolsRelations, n as functions, T as functionsRelations, x as ledgerArtifacts, S as ledgerArtifactsRelations, w as messages, N as messagesRelations, p as projects, B as projectsRelations, k as subAgentArtifactComponents, P as subAgentArtifactComponentsRelations, i as subAgentDataComponents, R as subAgentDataComponentsRelations, q as subAgentExternalAgentRelations, X as subAgentExternalAgentRelationsRelations, u as subAgentFunctionToolRelations, W as subAgentFunctionToolRelationsRelations, e as subAgentRelations, U as subAgentRelationsRelations, r as subAgentTeamAgentRelations, Y as subAgentTeamAgentRelationsRelations, o as subAgentToolRelations, d as subAgents, F as subAgentsRelations, g as taskRelations, C as taskRelationsRelations, t as tasks, A as tasksRelations, l as tools, L as toolsRelations } from './schema-
|
|
10
|
+
import { s as schema } from './schema-C-rqra-r.cjs';
|
|
11
|
+
export { G as agentRelations, J as agentToolRelationsRelations, a as agents, y as apiKeys, I as apiKeysRelations, j as artifactComponents, O as artifactComponentsRelations, b as contextCache, E as contextCacheRelations, c as contextConfigs, D as contextConfigsRelations, v as conversations, M as conversationsRelations, z as credentialReferences, K as credentialReferencesRelations, h as dataComponents, Q as dataComponentsRelations, f as externalAgents, H as externalAgentsRelations, m as functionTools, V as functionToolsRelations, n as functions, T as functionsRelations, x as ledgerArtifacts, S as ledgerArtifactsRelations, w as messages, N as messagesRelations, p as projects, B as projectsRelations, k as subAgentArtifactComponents, P as subAgentArtifactComponentsRelations, i as subAgentDataComponents, R as subAgentDataComponentsRelations, q as subAgentExternalAgentRelations, X as subAgentExternalAgentRelationsRelations, u as subAgentFunctionToolRelations, W as subAgentFunctionToolRelationsRelations, e as subAgentRelations, U as subAgentRelationsRelations, r as subAgentTeamAgentRelations, Y as subAgentTeamAgentRelationsRelations, o as subAgentToolRelations, d as subAgents, F as subAgentsRelations, g as taskRelations, C as taskRelationsRelations, t as tasks, A as tasksRelations, l as tools, L as toolsRelations } from './schema-C-rqra-r.cjs';
|
|
12
12
|
import { SSEClientTransportOptions } from '@modelcontextprotocol/sdk/client/sse.js';
|
|
13
13
|
import { StreamableHTTPClientTransportOptions } from '@modelcontextprotocol/sdk/client/streamableHttp.js';
|
|
14
14
|
import { ClientCapabilities } from '@modelcontextprotocol/sdk/types.js';
|
|
@@ -790,13 +790,14 @@ declare const deleteFullAgent: (db: DatabaseClient, logger?: AgentLogger) => (pa
|
|
|
790
790
|
declare const getAgentById: (db: DatabaseClient) => (params: {
|
|
791
791
|
scopes: AgentScopeConfig;
|
|
792
792
|
}) => Promise<{
|
|
793
|
-
|
|
793
|
+
tenantId: string;
|
|
794
|
+
projectId: string;
|
|
794
795
|
id: string;
|
|
796
|
+
name: string;
|
|
797
|
+
description: string | null;
|
|
798
|
+
prompt: string | null;
|
|
795
799
|
createdAt: string;
|
|
796
800
|
updatedAt: string;
|
|
797
|
-
projectId: string;
|
|
798
|
-
tenantId: string;
|
|
799
|
-
description: string | null;
|
|
800
801
|
models: {
|
|
801
802
|
base?: {
|
|
802
803
|
model?: string | undefined;
|
|
@@ -816,7 +817,6 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
|
|
|
816
817
|
} | null;
|
|
817
818
|
defaultSubAgentId: string | null;
|
|
818
819
|
contextConfigId: string | null;
|
|
819
|
-
prompt: string | null;
|
|
820
820
|
statusUpdates: {
|
|
821
821
|
enabled?: boolean | undefined;
|
|
822
822
|
numEvents?: number | undefined;
|
|
@@ -836,13 +836,14 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
|
|
|
836
836
|
declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
|
|
837
837
|
scopes: AgentScopeConfig;
|
|
838
838
|
}) => Promise<{
|
|
839
|
-
|
|
839
|
+
tenantId: string;
|
|
840
|
+
projectId: string;
|
|
840
841
|
id: string;
|
|
842
|
+
name: string;
|
|
843
|
+
description: string | null;
|
|
844
|
+
prompt: string | null;
|
|
841
845
|
createdAt: string;
|
|
842
846
|
updatedAt: string;
|
|
843
|
-
projectId: string;
|
|
844
|
-
tenantId: string;
|
|
845
|
-
description: string | null;
|
|
846
847
|
models: {
|
|
847
848
|
base?: {
|
|
848
849
|
model?: string | undefined;
|
|
@@ -862,7 +863,6 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
|
|
|
862
863
|
} | null;
|
|
863
864
|
defaultSubAgentId: string | null;
|
|
864
865
|
contextConfigId: string | null;
|
|
865
|
-
prompt: string | null;
|
|
866
866
|
statusUpdates: {
|
|
867
867
|
enabled?: boolean | undefined;
|
|
868
868
|
numEvents?: number | undefined;
|
|
@@ -879,13 +879,15 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
|
|
|
879
879
|
}[] | undefined;
|
|
880
880
|
} | null;
|
|
881
881
|
defaultSubAgent: {
|
|
882
|
-
|
|
882
|
+
tenantId: string;
|
|
883
|
+
projectId: string;
|
|
883
884
|
id: string;
|
|
885
|
+
name: string;
|
|
886
|
+
description: string;
|
|
887
|
+
prompt: string;
|
|
888
|
+
agentId: string;
|
|
884
889
|
createdAt: string;
|
|
885
890
|
updatedAt: string;
|
|
886
|
-
projectId: string;
|
|
887
|
-
tenantId: string;
|
|
888
|
-
description: string;
|
|
889
891
|
models: {
|
|
890
892
|
base?: {
|
|
891
893
|
model?: string | undefined;
|
|
@@ -903,21 +905,20 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
|
|
|
903
905
|
stopWhen: {
|
|
904
906
|
stepCountIs?: number | undefined;
|
|
905
907
|
} | null;
|
|
906
|
-
agentId: string;
|
|
907
|
-
prompt: string;
|
|
908
908
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
909
909
|
} | null;
|
|
910
910
|
} | null>;
|
|
911
911
|
declare const listAgents: (db: DatabaseClient) => (params: {
|
|
912
912
|
scopes: ProjectScopeConfig;
|
|
913
913
|
}) => Promise<{
|
|
914
|
-
|
|
914
|
+
tenantId: string;
|
|
915
|
+
projectId: string;
|
|
915
916
|
id: string;
|
|
917
|
+
name: string;
|
|
918
|
+
description: string | null;
|
|
919
|
+
prompt: string | null;
|
|
916
920
|
createdAt: string;
|
|
917
921
|
updatedAt: string;
|
|
918
|
-
projectId: string;
|
|
919
|
-
tenantId: string;
|
|
920
|
-
description: string | null;
|
|
921
922
|
models: {
|
|
922
923
|
base?: {
|
|
923
924
|
model?: string | undefined;
|
|
@@ -937,7 +938,6 @@ declare const listAgents: (db: DatabaseClient) => (params: {
|
|
|
937
938
|
} | null;
|
|
938
939
|
defaultSubAgentId: string | null;
|
|
939
940
|
contextConfigId: string | null;
|
|
940
|
-
prompt: string | null;
|
|
941
941
|
statusUpdates: {
|
|
942
942
|
enabled?: boolean | undefined;
|
|
943
943
|
numEvents?: number | undefined;
|
|
@@ -1010,13 +1010,14 @@ declare const listAgentsPaginated: (db: DatabaseClient) => (params: {
|
|
|
1010
1010
|
};
|
|
1011
1011
|
}>;
|
|
1012
1012
|
declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promise<{
|
|
1013
|
-
|
|
1013
|
+
tenantId: string;
|
|
1014
|
+
projectId: string;
|
|
1014
1015
|
id: string;
|
|
1016
|
+
name: string;
|
|
1017
|
+
description: string | null;
|
|
1018
|
+
prompt: string | null;
|
|
1015
1019
|
createdAt: string;
|
|
1016
1020
|
updatedAt: string;
|
|
1017
|
-
projectId: string;
|
|
1018
|
-
tenantId: string;
|
|
1019
|
-
description: string | null;
|
|
1020
1021
|
models: {
|
|
1021
1022
|
base?: {
|
|
1022
1023
|
model?: string | undefined;
|
|
@@ -1036,7 +1037,6 @@ declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promis
|
|
|
1036
1037
|
} | null;
|
|
1037
1038
|
defaultSubAgentId: string | null;
|
|
1038
1039
|
contextConfigId: string | null;
|
|
1039
|
-
prompt: string | null;
|
|
1040
1040
|
statusUpdates: {
|
|
1041
1041
|
enabled?: boolean | undefined;
|
|
1042
1042
|
numEvents?: number | undefined;
|
|
@@ -1057,13 +1057,14 @@ declare const updateAgent: (db: DatabaseClient) => (params: {
|
|
|
1057
1057
|
scopes: AgentScopeConfig;
|
|
1058
1058
|
data: AgentUpdate;
|
|
1059
1059
|
}) => Promise<{
|
|
1060
|
-
|
|
1060
|
+
tenantId: string;
|
|
1061
|
+
projectId: string;
|
|
1061
1062
|
id: string;
|
|
1063
|
+
name: string;
|
|
1064
|
+
description: string | null;
|
|
1065
|
+
prompt: string | null;
|
|
1062
1066
|
createdAt: string;
|
|
1063
1067
|
updatedAt: string;
|
|
1064
|
-
projectId: string;
|
|
1065
|
-
tenantId: string;
|
|
1066
|
-
description: string | null;
|
|
1067
1068
|
models: {
|
|
1068
1069
|
base?: {
|
|
1069
1070
|
model?: string | undefined;
|
|
@@ -1083,7 +1084,6 @@ declare const updateAgent: (db: DatabaseClient) => (params: {
|
|
|
1083
1084
|
} | null;
|
|
1084
1085
|
defaultSubAgentId: string | null;
|
|
1085
1086
|
contextConfigId: string | null;
|
|
1086
|
-
prompt: string | null;
|
|
1087
1087
|
statusUpdates: {
|
|
1088
1088
|
enabled?: boolean | undefined;
|
|
1089
1089
|
numEvents?: number | undefined;
|
|
@@ -1137,49 +1137,49 @@ declare const getApiKeyById: (db: DatabaseClient) => (params: {
|
|
|
1137
1137
|
scopes: ProjectScopeConfig;
|
|
1138
1138
|
id: string;
|
|
1139
1139
|
}) => Promise<{
|
|
1140
|
-
name: string | null;
|
|
1141
|
-
id: string;
|
|
1142
|
-
createdAt: string;
|
|
1143
|
-
updatedAt: string;
|
|
1144
|
-
projectId: string;
|
|
1145
1140
|
tenantId: string;
|
|
1141
|
+
projectId: string;
|
|
1142
|
+
id: string;
|
|
1143
|
+
name: string | null;
|
|
1146
1144
|
agentId: string;
|
|
1147
|
-
expiresAt: string | null;
|
|
1148
1145
|
publicId: string;
|
|
1149
1146
|
keyHash: string;
|
|
1150
1147
|
keyPrefix: string;
|
|
1151
1148
|
lastUsedAt: string | null;
|
|
1152
|
-
|
|
1153
|
-
declare const getApiKeyByPublicId: (db: DatabaseClient) => (publicId: string) => Promise<{
|
|
1154
|
-
name: string | null;
|
|
1155
|
-
id: string;
|
|
1149
|
+
expiresAt: string | null;
|
|
1156
1150
|
createdAt: string;
|
|
1157
1151
|
updatedAt: string;
|
|
1158
|
-
|
|
1152
|
+
} | undefined>;
|
|
1153
|
+
declare const getApiKeyByPublicId: (db: DatabaseClient) => (publicId: string) => Promise<{
|
|
1159
1154
|
tenantId: string;
|
|
1155
|
+
projectId: string;
|
|
1156
|
+
id: string;
|
|
1157
|
+
name: string | null;
|
|
1160
1158
|
agentId: string;
|
|
1161
|
-
expiresAt: string | null;
|
|
1162
1159
|
publicId: string;
|
|
1163
1160
|
keyHash: string;
|
|
1164
1161
|
keyPrefix: string;
|
|
1165
1162
|
lastUsedAt: string | null;
|
|
1163
|
+
expiresAt: string | null;
|
|
1164
|
+
createdAt: string;
|
|
1165
|
+
updatedAt: string;
|
|
1166
1166
|
} | undefined>;
|
|
1167
1167
|
declare const listApiKeys: (db: DatabaseClient) => (params: {
|
|
1168
1168
|
scopes: ProjectScopeConfig;
|
|
1169
1169
|
agentId?: string;
|
|
1170
1170
|
}) => Promise<{
|
|
1171
|
-
name: string | null;
|
|
1172
|
-
id: string;
|
|
1173
|
-
createdAt: string;
|
|
1174
|
-
updatedAt: string;
|
|
1175
|
-
projectId: string;
|
|
1176
1171
|
tenantId: string;
|
|
1172
|
+
projectId: string;
|
|
1173
|
+
id: string;
|
|
1174
|
+
name: string | null;
|
|
1177
1175
|
agentId: string;
|
|
1178
|
-
expiresAt: string | null;
|
|
1179
1176
|
publicId: string;
|
|
1180
1177
|
keyHash: string;
|
|
1181
1178
|
keyPrefix: string;
|
|
1182
1179
|
lastUsedAt: string | null;
|
|
1180
|
+
expiresAt: string | null;
|
|
1181
|
+
createdAt: string;
|
|
1182
|
+
updatedAt: string;
|
|
1183
1183
|
}[]>;
|
|
1184
1184
|
declare const listApiKeysPaginated: (db: DatabaseClient) => (params: {
|
|
1185
1185
|
scopes: ProjectScopeConfig;
|
|
@@ -1195,36 +1195,36 @@ declare const listApiKeysPaginated: (db: DatabaseClient) => (params: {
|
|
|
1195
1195
|
};
|
|
1196
1196
|
}>;
|
|
1197
1197
|
declare const createApiKey: (db: DatabaseClient) => (params: ApiKeyInsert) => Promise<{
|
|
1198
|
-
name: string | null;
|
|
1199
|
-
id: string;
|
|
1200
|
-
createdAt: string;
|
|
1201
|
-
updatedAt: string;
|
|
1202
|
-
projectId: string;
|
|
1203
1198
|
tenantId: string;
|
|
1199
|
+
projectId: string;
|
|
1200
|
+
id: string;
|
|
1201
|
+
name: string | null;
|
|
1204
1202
|
agentId: string;
|
|
1205
|
-
expiresAt: string | null;
|
|
1206
1203
|
publicId: string;
|
|
1207
1204
|
keyHash: string;
|
|
1208
1205
|
keyPrefix: string;
|
|
1209
1206
|
lastUsedAt: string | null;
|
|
1207
|
+
expiresAt: string | null;
|
|
1208
|
+
createdAt: string;
|
|
1209
|
+
updatedAt: string;
|
|
1210
1210
|
}>;
|
|
1211
1211
|
declare const updateApiKey: (db: DatabaseClient) => (params: {
|
|
1212
1212
|
scopes: ProjectScopeConfig;
|
|
1213
1213
|
id: string;
|
|
1214
1214
|
data: ApiKeyUpdate;
|
|
1215
1215
|
}) => Promise<{
|
|
1216
|
-
name: string | null;
|
|
1217
|
-
id: string;
|
|
1218
|
-
createdAt: string;
|
|
1219
|
-
updatedAt: string;
|
|
1220
|
-
projectId: string;
|
|
1221
1216
|
tenantId: string;
|
|
1217
|
+
projectId: string;
|
|
1218
|
+
id: string;
|
|
1219
|
+
name: string | null;
|
|
1222
1220
|
agentId: string;
|
|
1223
|
-
expiresAt: string | null;
|
|
1224
1221
|
publicId: string;
|
|
1225
1222
|
keyHash: string;
|
|
1226
1223
|
keyPrefix: string;
|
|
1227
1224
|
lastUsedAt: string | null;
|
|
1225
|
+
expiresAt: string | null;
|
|
1226
|
+
createdAt: string;
|
|
1227
|
+
updatedAt: string;
|
|
1228
1228
|
}>;
|
|
1229
1229
|
declare const deleteApiKey: (db: DatabaseClient) => (params: {
|
|
1230
1230
|
scopes: ProjectScopeConfig;
|
|
@@ -1253,13 +1253,13 @@ declare const getArtifactComponentById: (db: DatabaseClient) => (params: {
|
|
|
1253
1253
|
scopes: ProjectScopeConfig;
|
|
1254
1254
|
id: string;
|
|
1255
1255
|
}) => Promise<{
|
|
1256
|
-
|
|
1256
|
+
tenantId: string;
|
|
1257
|
+
projectId: string;
|
|
1257
1258
|
id: string;
|
|
1259
|
+
name: string;
|
|
1260
|
+
description: string;
|
|
1258
1261
|
createdAt: string;
|
|
1259
1262
|
updatedAt: string;
|
|
1260
|
-
projectId: string;
|
|
1261
|
-
tenantId: string;
|
|
1262
|
-
description: string;
|
|
1263
1263
|
props: Record<string, unknown> | null;
|
|
1264
1264
|
} | undefined>;
|
|
1265
1265
|
declare const listArtifactComponents: (db: DatabaseClient) => (params: {
|
|
@@ -1287,13 +1287,13 @@ declare const listArtifactComponentsPaginated: (db: DatabaseClient) => (params:
|
|
|
1287
1287
|
};
|
|
1288
1288
|
}>;
|
|
1289
1289
|
declare const createArtifactComponent: (db: DatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
|
|
1290
|
-
|
|
1290
|
+
tenantId: string;
|
|
1291
|
+
projectId: string;
|
|
1291
1292
|
id: string;
|
|
1293
|
+
name: string;
|
|
1294
|
+
description: string;
|
|
1292
1295
|
createdAt: string;
|
|
1293
1296
|
updatedAt: string;
|
|
1294
|
-
projectId: string;
|
|
1295
|
-
tenantId: string;
|
|
1296
|
-
description: string;
|
|
1297
1297
|
props: Record<string, unknown> | null;
|
|
1298
1298
|
}>;
|
|
1299
1299
|
declare const updateArtifactComponent: (db: DatabaseClient) => (params: {
|
|
@@ -1301,13 +1301,13 @@ declare const updateArtifactComponent: (db: DatabaseClient) => (params: {
|
|
|
1301
1301
|
id: string;
|
|
1302
1302
|
data: ArtifactComponentUpdate;
|
|
1303
1303
|
}) => Promise<{
|
|
1304
|
-
|
|
1304
|
+
tenantId: string;
|
|
1305
|
+
projectId: string;
|
|
1305
1306
|
id: string;
|
|
1307
|
+
name: string;
|
|
1308
|
+
description: string;
|
|
1306
1309
|
createdAt: string;
|
|
1307
1310
|
updatedAt: string;
|
|
1308
|
-
projectId: string;
|
|
1309
|
-
tenantId: string;
|
|
1310
|
-
description: string;
|
|
1311
1311
|
props: Record<string, unknown> | null;
|
|
1312
1312
|
}>;
|
|
1313
1313
|
declare const deleteArtifactComponent: (db: DatabaseClient) => (params: {
|
|
@@ -1330,11 +1330,11 @@ declare const associateArtifactComponentWithAgent: (db: DatabaseClient) => (para
|
|
|
1330
1330
|
scopes: SubAgentScopeConfig;
|
|
1331
1331
|
artifactComponentId: string;
|
|
1332
1332
|
}) => Promise<{
|
|
1333
|
-
id: string;
|
|
1334
|
-
createdAt: string;
|
|
1335
|
-
projectId: string;
|
|
1336
1333
|
tenantId: string;
|
|
1334
|
+
projectId: string;
|
|
1335
|
+
id: string;
|
|
1337
1336
|
agentId: string;
|
|
1337
|
+
createdAt: string;
|
|
1338
1338
|
subAgentId: string;
|
|
1339
1339
|
artifactComponentId: string;
|
|
1340
1340
|
}>;
|
|
@@ -1373,11 +1373,11 @@ declare const upsertAgentArtifactComponentRelation: (db: DatabaseClient) => (par
|
|
|
1373
1373
|
scopes: SubAgentScopeConfig;
|
|
1374
1374
|
artifactComponentId: string;
|
|
1375
1375
|
}) => Promise<{
|
|
1376
|
-
id: string;
|
|
1377
|
-
createdAt: string;
|
|
1378
|
-
projectId: string;
|
|
1379
1376
|
tenantId: string;
|
|
1377
|
+
projectId: string;
|
|
1378
|
+
id: string;
|
|
1380
1379
|
agentId: string;
|
|
1380
|
+
createdAt: string;
|
|
1381
1381
|
subAgentId: string;
|
|
1382
1382
|
artifactComponentId: string;
|
|
1383
1383
|
} | null>;
|
|
@@ -1457,26 +1457,26 @@ declare const getContextConfigById: (db: DatabaseClient) => (params: {
|
|
|
1457
1457
|
scopes: AgentScopeConfig;
|
|
1458
1458
|
id: string;
|
|
1459
1459
|
}) => Promise<{
|
|
1460
|
+
tenantId: string;
|
|
1461
|
+
projectId: string;
|
|
1460
1462
|
id: string;
|
|
1463
|
+
agentId: string;
|
|
1461
1464
|
createdAt: string;
|
|
1462
1465
|
updatedAt: string;
|
|
1463
|
-
projectId: string;
|
|
1464
|
-
tenantId: string;
|
|
1465
1466
|
headersSchema: unknown;
|
|
1466
1467
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
1467
|
-
agentId: string;
|
|
1468
1468
|
} | undefined>;
|
|
1469
1469
|
declare const listContextConfigs: (db: DatabaseClient) => (params: {
|
|
1470
1470
|
scopes: AgentScopeConfig;
|
|
1471
1471
|
}) => Promise<{
|
|
1472
|
+
tenantId: string;
|
|
1473
|
+
projectId: string;
|
|
1472
1474
|
id: string;
|
|
1475
|
+
agentId: string;
|
|
1473
1476
|
createdAt: string;
|
|
1474
1477
|
updatedAt: string;
|
|
1475
|
-
projectId: string;
|
|
1476
|
-
tenantId: string;
|
|
1477
1478
|
headersSchema: unknown;
|
|
1478
1479
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
1479
|
-
agentId: string;
|
|
1480
1480
|
}[]>;
|
|
1481
1481
|
declare const listContextConfigsPaginated: (db: DatabaseClient) => (params: {
|
|
1482
1482
|
scopes: AgentScopeConfig;
|
|
@@ -1491,28 +1491,28 @@ declare const listContextConfigsPaginated: (db: DatabaseClient) => (params: {
|
|
|
1491
1491
|
};
|
|
1492
1492
|
}>;
|
|
1493
1493
|
declare const createContextConfig: (db: DatabaseClient) => (params: ContextConfigInsert) => Promise<{
|
|
1494
|
+
tenantId: string;
|
|
1495
|
+
projectId: string;
|
|
1494
1496
|
id: string;
|
|
1497
|
+
agentId: string;
|
|
1495
1498
|
createdAt: string;
|
|
1496
1499
|
updatedAt: string;
|
|
1497
|
-
projectId: string;
|
|
1498
|
-
tenantId: string;
|
|
1499
1500
|
headersSchema: unknown;
|
|
1500
1501
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
1501
|
-
agentId: string;
|
|
1502
1502
|
}>;
|
|
1503
1503
|
declare const updateContextConfig: (db: DatabaseClient) => (params: {
|
|
1504
1504
|
scopes: AgentScopeConfig;
|
|
1505
1505
|
id: string;
|
|
1506
1506
|
data: Partial<ContextConfigUpdate>;
|
|
1507
1507
|
}) => Promise<{
|
|
1508
|
+
tenantId: string;
|
|
1509
|
+
projectId: string;
|
|
1508
1510
|
id: string;
|
|
1511
|
+
agentId: string;
|
|
1509
1512
|
createdAt: string;
|
|
1510
1513
|
updatedAt: string;
|
|
1511
|
-
projectId: string;
|
|
1512
|
-
tenantId: string;
|
|
1513
1514
|
headersSchema: unknown;
|
|
1514
1515
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
1515
|
-
agentId: string;
|
|
1516
1516
|
}>;
|
|
1517
1517
|
declare const deleteContextConfig: (db: DatabaseClient) => (params: {
|
|
1518
1518
|
scopes: AgentScopeConfig;
|
|
@@ -1531,14 +1531,14 @@ declare const countContextConfigs: (db: DatabaseClient) => (params: {
|
|
|
1531
1531
|
declare const upsertContextConfig: (db: DatabaseClient) => (params: {
|
|
1532
1532
|
data: ContextConfigInsert;
|
|
1533
1533
|
}) => Promise<{
|
|
1534
|
+
tenantId: string;
|
|
1535
|
+
projectId: string;
|
|
1534
1536
|
id: string;
|
|
1537
|
+
agentId: string;
|
|
1535
1538
|
createdAt: string;
|
|
1536
1539
|
updatedAt: string;
|
|
1537
|
-
projectId: string;
|
|
1538
|
-
tenantId: string;
|
|
1539
1540
|
headersSchema: unknown;
|
|
1540
1541
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
1541
|
-
agentId: string;
|
|
1542
1542
|
}>;
|
|
1543
1543
|
|
|
1544
1544
|
declare const listConversations: (db: DatabaseClient) => (params: {
|
|
@@ -1550,12 +1550,12 @@ declare const listConversations: (db: DatabaseClient) => (params: {
|
|
|
1550
1550
|
total: number;
|
|
1551
1551
|
}>;
|
|
1552
1552
|
declare const createConversation: (db: DatabaseClient) => (params: ConversationInsert) => Promise<{
|
|
1553
|
+
tenantId: string;
|
|
1554
|
+
projectId: string;
|
|
1553
1555
|
id: string;
|
|
1556
|
+
title: string | null;
|
|
1554
1557
|
createdAt: string;
|
|
1555
1558
|
updatedAt: string;
|
|
1556
|
-
projectId: string;
|
|
1557
|
-
tenantId: string;
|
|
1558
|
-
title: string | null;
|
|
1559
1559
|
metadata: ConversationMetadata | null;
|
|
1560
1560
|
userId: string | null;
|
|
1561
1561
|
activeSubAgentId: string;
|
|
@@ -1566,12 +1566,12 @@ declare const updateConversation: (db: DatabaseClient) => (params: {
|
|
|
1566
1566
|
conversationId: string;
|
|
1567
1567
|
data: ConversationUpdate;
|
|
1568
1568
|
}) => Promise<{
|
|
1569
|
+
tenantId: string;
|
|
1570
|
+
projectId: string;
|
|
1569
1571
|
id: string;
|
|
1572
|
+
title: string | null;
|
|
1570
1573
|
createdAt: string;
|
|
1571
1574
|
updatedAt: string;
|
|
1572
|
-
projectId: string;
|
|
1573
|
-
tenantId: string;
|
|
1574
|
-
title: string | null;
|
|
1575
1575
|
metadata: ConversationMetadata | null;
|
|
1576
1576
|
userId: string | null;
|
|
1577
1577
|
activeSubAgentId: string;
|
|
@@ -1586,12 +1586,12 @@ declare const updateConversationActiveAgent: (db: DatabaseClient) => (params: {
|
|
|
1586
1586
|
conversationId: string;
|
|
1587
1587
|
activeSubAgentId: string;
|
|
1588
1588
|
}) => Promise<{
|
|
1589
|
+
tenantId: string;
|
|
1590
|
+
projectId: string;
|
|
1589
1591
|
id: string;
|
|
1592
|
+
title: string | null;
|
|
1590
1593
|
createdAt: string;
|
|
1591
1594
|
updatedAt: string;
|
|
1592
|
-
projectId: string;
|
|
1593
|
-
tenantId: string;
|
|
1594
|
-
title: string | null;
|
|
1595
1595
|
metadata: ConversationMetadata | null;
|
|
1596
1596
|
userId: string | null;
|
|
1597
1597
|
activeSubAgentId: string;
|
|
@@ -1601,12 +1601,12 @@ declare const getConversation: (db: DatabaseClient) => (params: {
|
|
|
1601
1601
|
scopes: ProjectScopeConfig;
|
|
1602
1602
|
conversationId: string;
|
|
1603
1603
|
}) => Promise<{
|
|
1604
|
+
tenantId: string;
|
|
1605
|
+
projectId: string;
|
|
1604
1606
|
id: string;
|
|
1607
|
+
title: string | null;
|
|
1605
1608
|
createdAt: string;
|
|
1606
1609
|
updatedAt: string;
|
|
1607
|
-
projectId: string;
|
|
1608
|
-
tenantId: string;
|
|
1609
|
-
title: string | null;
|
|
1610
1610
|
metadata: ConversationMetadata | null;
|
|
1611
1611
|
userId: string | null;
|
|
1612
1612
|
activeSubAgentId: string;
|
|
@@ -1625,12 +1625,12 @@ declare const createOrGetConversation: (db: DatabaseClient) => (input: Conversat
|
|
|
1625
1625
|
metadata?: ConversationMetadata | null | undefined;
|
|
1626
1626
|
contextConfigId?: string | undefined;
|
|
1627
1627
|
} | {
|
|
1628
|
+
tenantId: string;
|
|
1629
|
+
projectId: string;
|
|
1628
1630
|
id: string;
|
|
1631
|
+
title: string | null;
|
|
1629
1632
|
createdAt: string;
|
|
1630
1633
|
updatedAt: string;
|
|
1631
|
-
projectId: string;
|
|
1632
|
-
tenantId: string;
|
|
1633
|
-
title: string | null;
|
|
1634
1634
|
metadata: ConversationMetadata | null;
|
|
1635
1635
|
userId: string | null;
|
|
1636
1636
|
activeSubAgentId: string;
|
|
@@ -1651,12 +1651,12 @@ declare const getActiveAgentForConversation: (db: DatabaseClient) => (params: {
|
|
|
1651
1651
|
scopes: ProjectScopeConfig;
|
|
1652
1652
|
conversationId: string;
|
|
1653
1653
|
}) => Promise<{
|
|
1654
|
+
tenantId: string;
|
|
1655
|
+
projectId: string;
|
|
1654
1656
|
id: string;
|
|
1657
|
+
title: string | null;
|
|
1655
1658
|
createdAt: string;
|
|
1656
1659
|
updatedAt: string;
|
|
1657
|
-
projectId: string;
|
|
1658
|
-
tenantId: string;
|
|
1659
|
-
title: string | null;
|
|
1660
1660
|
metadata: ConversationMetadata | null;
|
|
1661
1661
|
userId: string | null;
|
|
1662
1662
|
activeSubAgentId: string;
|
|
@@ -1821,11 +1821,11 @@ declare const associateDataComponentWithAgent: (db: DatabaseClient) => (params:
|
|
|
1821
1821
|
scopes: SubAgentScopeConfig;
|
|
1822
1822
|
dataComponentId: string;
|
|
1823
1823
|
}) => Promise<{
|
|
1824
|
-
id: string;
|
|
1825
|
-
createdAt: string;
|
|
1826
|
-
projectId: string;
|
|
1827
1824
|
tenantId: string;
|
|
1825
|
+
projectId: string;
|
|
1826
|
+
id: string;
|
|
1828
1827
|
agentId: string;
|
|
1828
|
+
createdAt: string;
|
|
1829
1829
|
subAgentId: string;
|
|
1830
1830
|
dataComponentId: string;
|
|
1831
1831
|
}>;
|
|
@@ -1863,11 +1863,11 @@ declare const upsertAgentDataComponentRelation: (db: DatabaseClient) => (params:
|
|
|
1863
1863
|
scopes: SubAgentScopeConfig;
|
|
1864
1864
|
dataComponentId: string;
|
|
1865
1865
|
}) => Promise<{
|
|
1866
|
-
id: string;
|
|
1867
|
-
createdAt: string;
|
|
1868
|
-
projectId: string;
|
|
1869
1866
|
tenantId: string;
|
|
1867
|
+
projectId: string;
|
|
1868
|
+
id: string;
|
|
1870
1869
|
agentId: string;
|
|
1870
|
+
createdAt: string;
|
|
1871
1871
|
subAgentId: string;
|
|
1872
1872
|
dataComponentId: string;
|
|
1873
1873
|
} | null>;
|
|
@@ -2042,14 +2042,14 @@ declare const createFunctionTool: (db: DatabaseClient) => (params: {
|
|
|
2042
2042
|
data: FunctionToolApiInsert;
|
|
2043
2043
|
scopes: AgentScopeConfig;
|
|
2044
2044
|
}) => Promise<{
|
|
2045
|
-
name: string;
|
|
2046
|
-
id: string;
|
|
2047
|
-
createdAt: string;
|
|
2048
|
-
updatedAt: string;
|
|
2049
|
-
projectId: string;
|
|
2050
2045
|
tenantId: string;
|
|
2046
|
+
projectId: string;
|
|
2047
|
+
id: string;
|
|
2048
|
+
name: string;
|
|
2051
2049
|
description: string | null;
|
|
2052
2050
|
agentId: string;
|
|
2051
|
+
createdAt: string;
|
|
2052
|
+
updatedAt: string;
|
|
2053
2053
|
functionId: string;
|
|
2054
2054
|
}>;
|
|
2055
2055
|
/**
|
|
@@ -2060,14 +2060,14 @@ declare const updateFunctionTool: (db: DatabaseClient) => (params: {
|
|
|
2060
2060
|
functionToolId: string;
|
|
2061
2061
|
data: FunctionToolApiUpdate;
|
|
2062
2062
|
}) => Promise<{
|
|
2063
|
-
name: string;
|
|
2064
|
-
id: string;
|
|
2065
|
-
createdAt: string;
|
|
2066
|
-
updatedAt: string;
|
|
2067
|
-
projectId: string;
|
|
2068
2063
|
tenantId: string;
|
|
2064
|
+
projectId: string;
|
|
2065
|
+
id: string;
|
|
2066
|
+
name: string;
|
|
2069
2067
|
description: string | null;
|
|
2070
2068
|
agentId: string;
|
|
2069
|
+
createdAt: string;
|
|
2070
|
+
updatedAt: string;
|
|
2071
2071
|
functionId: string;
|
|
2072
2072
|
}>;
|
|
2073
2073
|
/**
|
|
@@ -2084,14 +2084,14 @@ declare const upsertFunctionTool: (db: DatabaseClient) => (params: {
|
|
|
2084
2084
|
data: FunctionToolApiInsert;
|
|
2085
2085
|
scopes: AgentScopeConfig;
|
|
2086
2086
|
}) => Promise<{
|
|
2087
|
-
name: string;
|
|
2088
|
-
id: string;
|
|
2089
|
-
createdAt: string;
|
|
2090
|
-
updatedAt: string;
|
|
2091
|
-
projectId: string;
|
|
2092
2087
|
tenantId: string;
|
|
2088
|
+
projectId: string;
|
|
2089
|
+
id: string;
|
|
2090
|
+
name: string;
|
|
2093
2091
|
description: string | null;
|
|
2094
2092
|
agentId: string;
|
|
2093
|
+
createdAt: string;
|
|
2094
|
+
updatedAt: string;
|
|
2095
2095
|
functionId: string;
|
|
2096
2096
|
}>;
|
|
2097
2097
|
declare const getFunctionToolsForSubAgent: (db: DatabaseClient) => (params: {
|
|
@@ -2221,11 +2221,11 @@ declare const getMessageById: (db: DatabaseClient) => (params: {
|
|
|
2221
2221
|
scopes: ProjectScopeConfig;
|
|
2222
2222
|
messageId: string;
|
|
2223
2223
|
}) => Promise<{
|
|
2224
|
+
tenantId: string;
|
|
2225
|
+
projectId: string;
|
|
2224
2226
|
id: string;
|
|
2225
2227
|
createdAt: string;
|
|
2226
2228
|
updatedAt: string;
|
|
2227
|
-
projectId: string;
|
|
2228
|
-
tenantId: string;
|
|
2229
2229
|
metadata: MessageMetadata | null;
|
|
2230
2230
|
content: MessageContent;
|
|
2231
2231
|
conversationId: string;
|
|
@@ -2352,11 +2352,11 @@ declare const getVisibleMessages: (db: DatabaseClient) => (params: {
|
|
|
2352
2352
|
id: string;
|
|
2353
2353
|
}[]>;
|
|
2354
2354
|
declare const createMessage: (db: DatabaseClient) => (params: MessageInsert) => Promise<{
|
|
2355
|
+
tenantId: string;
|
|
2356
|
+
projectId: string;
|
|
2355
2357
|
id: string;
|
|
2356
2358
|
createdAt: string;
|
|
2357
2359
|
updatedAt: string;
|
|
2358
|
-
projectId: string;
|
|
2359
|
-
tenantId: string;
|
|
2360
2360
|
metadata: MessageMetadata | null;
|
|
2361
2361
|
content: MessageContent;
|
|
2362
2362
|
conversationId: string;
|
|
@@ -2379,11 +2379,11 @@ declare const updateMessage: (db: DatabaseClient) => (params: {
|
|
|
2379
2379
|
messageId: string;
|
|
2380
2380
|
data: MessageUpdate;
|
|
2381
2381
|
}) => Promise<{
|
|
2382
|
+
tenantId: string;
|
|
2383
|
+
projectId: string;
|
|
2382
2384
|
id: string;
|
|
2383
2385
|
createdAt: string;
|
|
2384
2386
|
updatedAt: string;
|
|
2385
|
-
projectId: string;
|
|
2386
|
-
tenantId: string;
|
|
2387
2387
|
metadata: MessageMetadata | null;
|
|
2388
2388
|
content: MessageContent;
|
|
2389
2389
|
conversationId: string;
|
|
@@ -2405,11 +2405,11 @@ declare const deleteMessage: (db: DatabaseClient) => (params: {
|
|
|
2405
2405
|
scopes: ProjectScopeConfig;
|
|
2406
2406
|
messageId: string;
|
|
2407
2407
|
}) => Promise<{
|
|
2408
|
+
tenantId: string;
|
|
2409
|
+
projectId: string;
|
|
2408
2410
|
id: string;
|
|
2409
2411
|
createdAt: string;
|
|
2410
2412
|
updatedAt: string;
|
|
2411
|
-
projectId: string;
|
|
2412
|
-
tenantId: string;
|
|
2413
2413
|
metadata: MessageMetadata | null;
|
|
2414
2414
|
content: MessageContent;
|
|
2415
2415
|
conversationId: string;
|
|
@@ -2530,15 +2530,15 @@ declare const getSubAgentExternalAgentRelationById: (db: DatabaseClient) => (par
|
|
|
2530
2530
|
scopes: SubAgentScopeConfig;
|
|
2531
2531
|
relationId: string;
|
|
2532
2532
|
}) => Promise<{
|
|
2533
|
-
|
|
2533
|
+
tenantId: string;
|
|
2534
|
+
projectId: string;
|
|
2534
2535
|
id: string;
|
|
2536
|
+
agentId: string;
|
|
2535
2537
|
createdAt: string;
|
|
2536
2538
|
updatedAt: string;
|
|
2537
|
-
|
|
2538
|
-
tenantId: string;
|
|
2539
|
-
agentId: string;
|
|
2540
|
-
subAgentId: string;
|
|
2539
|
+
headers: Record<string, string> | null;
|
|
2541
2540
|
externalAgentId: string;
|
|
2541
|
+
subAgentId: string;
|
|
2542
2542
|
} | undefined>;
|
|
2543
2543
|
declare const listSubAgentExternalAgentRelations: (db: DatabaseClient) => (params: {
|
|
2544
2544
|
scopes: SubAgentScopeConfig;
|
|
@@ -2565,28 +2565,28 @@ declare const listSubAgentExternalAgentRelations: (db: DatabaseClient) => (param
|
|
|
2565
2565
|
declare const getSubAgentExternalAgentRelations: (db: DatabaseClient) => (params: {
|
|
2566
2566
|
scopes: SubAgentScopeConfig;
|
|
2567
2567
|
}) => Promise<{
|
|
2568
|
-
|
|
2568
|
+
tenantId: string;
|
|
2569
|
+
projectId: string;
|
|
2569
2570
|
id: string;
|
|
2571
|
+
agentId: string;
|
|
2570
2572
|
createdAt: string;
|
|
2571
2573
|
updatedAt: string;
|
|
2572
|
-
|
|
2573
|
-
tenantId: string;
|
|
2574
|
-
agentId: string;
|
|
2575
|
-
subAgentId: string;
|
|
2574
|
+
headers: Record<string, string> | null;
|
|
2576
2575
|
externalAgentId: string;
|
|
2576
|
+
subAgentId: string;
|
|
2577
2577
|
}[]>;
|
|
2578
2578
|
declare const getSubAgentExternalAgentRelationsByAgent: (db: DatabaseClient) => (params: {
|
|
2579
2579
|
scopes: AgentScopeConfig;
|
|
2580
2580
|
}) => Promise<{
|
|
2581
|
-
|
|
2581
|
+
tenantId: string;
|
|
2582
|
+
projectId: string;
|
|
2582
2583
|
id: string;
|
|
2584
|
+
agentId: string;
|
|
2583
2585
|
createdAt: string;
|
|
2584
2586
|
updatedAt: string;
|
|
2585
|
-
|
|
2586
|
-
tenantId: string;
|
|
2587
|
-
agentId: string;
|
|
2588
|
-
subAgentId: string;
|
|
2587
|
+
headers: Record<string, string> | null;
|
|
2589
2588
|
externalAgentId: string;
|
|
2589
|
+
subAgentId: string;
|
|
2590
2590
|
}[]>;
|
|
2591
2591
|
declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: DatabaseClient) => (params: {
|
|
2592
2592
|
scopes: AgentScopeConfig;
|
|
@@ -2701,15 +2701,15 @@ declare const createSubAgentExternalAgentRelation: (db: DatabaseClient) => (para
|
|
|
2701
2701
|
headers?: Record<string, string> | null;
|
|
2702
2702
|
};
|
|
2703
2703
|
}) => Promise<{
|
|
2704
|
-
|
|
2704
|
+
tenantId: string;
|
|
2705
|
+
projectId: string;
|
|
2705
2706
|
id: string;
|
|
2707
|
+
agentId: string;
|
|
2706
2708
|
createdAt: string;
|
|
2707
2709
|
updatedAt: string;
|
|
2708
|
-
|
|
2709
|
-
tenantId: string;
|
|
2710
|
-
agentId: string;
|
|
2711
|
-
subAgentId: string;
|
|
2710
|
+
headers: Record<string, string> | null;
|
|
2712
2711
|
externalAgentId: string;
|
|
2712
|
+
subAgentId: string;
|
|
2713
2713
|
}>;
|
|
2714
2714
|
/**
|
|
2715
2715
|
* Check if sub-agent external agent relation exists by params
|
|
@@ -2718,15 +2718,15 @@ declare const getSubAgentExternalAgentRelationByParams: (db: DatabaseClient) =>
|
|
|
2718
2718
|
scopes: SubAgentScopeConfig;
|
|
2719
2719
|
externalAgentId: string;
|
|
2720
2720
|
}) => Promise<{
|
|
2721
|
-
|
|
2721
|
+
tenantId: string;
|
|
2722
|
+
projectId: string;
|
|
2722
2723
|
id: string;
|
|
2724
|
+
agentId: string;
|
|
2723
2725
|
createdAt: string;
|
|
2724
2726
|
updatedAt: string;
|
|
2725
|
-
|
|
2726
|
-
tenantId: string;
|
|
2727
|
-
agentId: string;
|
|
2728
|
-
subAgentId: string;
|
|
2727
|
+
headers: Record<string, string> | null;
|
|
2729
2728
|
externalAgentId: string;
|
|
2729
|
+
subAgentId: string;
|
|
2730
2730
|
} | undefined>;
|
|
2731
2731
|
/**
|
|
2732
2732
|
* Upsert sub-agent external agent relation (create if it doesn't exist, update if it does)
|
|
@@ -2739,30 +2739,30 @@ declare const upsertSubAgentExternalAgentRelation: (db: DatabaseClient) => (para
|
|
|
2739
2739
|
headers?: Record<string, string> | null;
|
|
2740
2740
|
};
|
|
2741
2741
|
}) => Promise<{
|
|
2742
|
-
|
|
2742
|
+
tenantId: string;
|
|
2743
|
+
projectId: string;
|
|
2743
2744
|
id: string;
|
|
2745
|
+
agentId: string;
|
|
2744
2746
|
createdAt: string;
|
|
2745
2747
|
updatedAt: string;
|
|
2746
|
-
|
|
2747
|
-
tenantId: string;
|
|
2748
|
-
agentId: string;
|
|
2749
|
-
subAgentId: string;
|
|
2748
|
+
headers: Record<string, string> | null;
|
|
2750
2749
|
externalAgentId: string;
|
|
2750
|
+
subAgentId: string;
|
|
2751
2751
|
}>;
|
|
2752
2752
|
declare const updateSubAgentExternalAgentRelation: (db: DatabaseClient) => (params: {
|
|
2753
2753
|
scopes: SubAgentScopeConfig;
|
|
2754
2754
|
relationId: string;
|
|
2755
2755
|
data: Partial<SubAgentExternalAgentRelationInsert>;
|
|
2756
2756
|
}) => Promise<{
|
|
2757
|
-
|
|
2757
|
+
tenantId: string;
|
|
2758
|
+
projectId: string;
|
|
2758
2759
|
id: string;
|
|
2760
|
+
agentId: string;
|
|
2759
2761
|
createdAt: string;
|
|
2760
2762
|
updatedAt: string;
|
|
2761
|
-
|
|
2762
|
-
tenantId: string;
|
|
2763
|
-
agentId: string;
|
|
2764
|
-
subAgentId: string;
|
|
2763
|
+
headers: Record<string, string> | null;
|
|
2765
2764
|
externalAgentId: string;
|
|
2765
|
+
subAgentId: string;
|
|
2766
2766
|
}>;
|
|
2767
2767
|
declare const deleteSubAgentExternalAgentRelation: (db: DatabaseClient) => (params: {
|
|
2768
2768
|
scopes: SubAgentScopeConfig;
|
|
@@ -2779,12 +2779,12 @@ declare const getAgentRelationById: (db: DatabaseClient) => (params: {
|
|
|
2779
2779
|
scopes: AgentScopeConfig;
|
|
2780
2780
|
relationId: string;
|
|
2781
2781
|
}) => Promise<{
|
|
2782
|
+
tenantId: string;
|
|
2783
|
+
projectId: string;
|
|
2782
2784
|
id: string;
|
|
2785
|
+
agentId: string;
|
|
2783
2786
|
createdAt: string;
|
|
2784
2787
|
updatedAt: string;
|
|
2785
|
-
projectId: string;
|
|
2786
|
-
tenantId: string;
|
|
2787
|
-
agentId: string;
|
|
2788
2788
|
sourceSubAgentId: string;
|
|
2789
2789
|
targetSubAgentId: string | null;
|
|
2790
2790
|
relationType: string | null;
|
|
@@ -2814,12 +2814,12 @@ declare const listAgentRelations: (db: DatabaseClient) => (params: {
|
|
|
2814
2814
|
declare const getAgentRelations: (db: DatabaseClient) => (params: {
|
|
2815
2815
|
scopes: SubAgentScopeConfig;
|
|
2816
2816
|
}) => Promise<{
|
|
2817
|
+
tenantId: string;
|
|
2818
|
+
projectId: string;
|
|
2817
2819
|
id: string;
|
|
2820
|
+
agentId: string;
|
|
2818
2821
|
createdAt: string;
|
|
2819
2822
|
updatedAt: string;
|
|
2820
|
-
projectId: string;
|
|
2821
|
-
tenantId: string;
|
|
2822
|
-
agentId: string;
|
|
2823
2823
|
sourceSubAgentId: string;
|
|
2824
2824
|
targetSubAgentId: string | null;
|
|
2825
2825
|
relationType: string | null;
|
|
@@ -2827,12 +2827,12 @@ declare const getAgentRelations: (db: DatabaseClient) => (params: {
|
|
|
2827
2827
|
declare const getAgentRelationsByAgent: (db: DatabaseClient) => (params: {
|
|
2828
2828
|
scopes: AgentScopeConfig;
|
|
2829
2829
|
}) => Promise<{
|
|
2830
|
+
tenantId: string;
|
|
2831
|
+
projectId: string;
|
|
2830
2832
|
id: string;
|
|
2833
|
+
agentId: string;
|
|
2831
2834
|
createdAt: string;
|
|
2832
2835
|
updatedAt: string;
|
|
2833
|
-
projectId: string;
|
|
2834
|
-
tenantId: string;
|
|
2835
|
-
agentId: string;
|
|
2836
2836
|
sourceSubAgentId: string;
|
|
2837
2837
|
targetSubAgentId: string | null;
|
|
2838
2838
|
relationType: string | null;
|
|
@@ -2895,12 +2895,12 @@ declare const getRelatedAgentsForAgent: (db: DatabaseClient) => (params: {
|
|
|
2895
2895
|
}[];
|
|
2896
2896
|
}>;
|
|
2897
2897
|
declare const createSubAgentRelation: (db: DatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
|
|
2898
|
+
tenantId: string;
|
|
2899
|
+
projectId: string;
|
|
2898
2900
|
id: string;
|
|
2901
|
+
agentId: string;
|
|
2899
2902
|
createdAt: string;
|
|
2900
2903
|
updatedAt: string;
|
|
2901
|
-
projectId: string;
|
|
2902
|
-
tenantId: string;
|
|
2903
|
-
agentId: string;
|
|
2904
2904
|
sourceSubAgentId: string;
|
|
2905
2905
|
targetSubAgentId: string | null;
|
|
2906
2906
|
relationType: string | null;
|
|
@@ -2914,12 +2914,12 @@ declare const getAgentRelationByParams: (db: DatabaseClient) => (params: {
|
|
|
2914
2914
|
targetSubAgentId?: string;
|
|
2915
2915
|
relationType: string;
|
|
2916
2916
|
}) => Promise<{
|
|
2917
|
+
tenantId: string;
|
|
2918
|
+
projectId: string;
|
|
2917
2919
|
id: string;
|
|
2920
|
+
agentId: string;
|
|
2918
2921
|
createdAt: string;
|
|
2919
2922
|
updatedAt: string;
|
|
2920
|
-
projectId: string;
|
|
2921
|
-
tenantId: string;
|
|
2922
|
-
agentId: string;
|
|
2923
2923
|
sourceSubAgentId: string;
|
|
2924
2924
|
targetSubAgentId: string | null;
|
|
2925
2925
|
relationType: string | null;
|
|
@@ -2928,12 +2928,12 @@ declare const getAgentRelationByParams: (db: DatabaseClient) => (params: {
|
|
|
2928
2928
|
* Upsert agent relation (create if it doesn't exist, no-op if it does)
|
|
2929
2929
|
*/
|
|
2930
2930
|
declare const upsertSubAgentRelation: (db: DatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
|
|
2931
|
+
tenantId: string;
|
|
2932
|
+
projectId: string;
|
|
2931
2933
|
id: string;
|
|
2934
|
+
agentId: string;
|
|
2932
2935
|
createdAt: string;
|
|
2933
2936
|
updatedAt: string;
|
|
2934
|
-
projectId: string;
|
|
2935
|
-
tenantId: string;
|
|
2936
|
-
agentId: string;
|
|
2937
2937
|
sourceSubAgentId: string;
|
|
2938
2938
|
targetSubAgentId: string | null;
|
|
2939
2939
|
relationType: string | null;
|
|
@@ -2943,12 +2943,12 @@ declare const updateAgentRelation: (db: DatabaseClient) => (params: {
|
|
|
2943
2943
|
relationId: string;
|
|
2944
2944
|
data: SubAgentRelationUpdate;
|
|
2945
2945
|
}) => Promise<{
|
|
2946
|
+
tenantId: string;
|
|
2947
|
+
projectId: string;
|
|
2946
2948
|
id: string;
|
|
2949
|
+
agentId: string;
|
|
2947
2950
|
createdAt: string;
|
|
2948
2951
|
updatedAt: string;
|
|
2949
|
-
projectId: string;
|
|
2950
|
-
tenantId: string;
|
|
2951
|
-
agentId: string;
|
|
2952
2952
|
sourceSubAgentId: string;
|
|
2953
2953
|
targetSubAgentId: string | null;
|
|
2954
2954
|
relationType: string | null;
|
|
@@ -2970,32 +2970,32 @@ declare const createAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
|
2970
2970
|
headers?: Record<string, string> | null;
|
|
2971
2971
|
};
|
|
2972
2972
|
}) => Promise<{
|
|
2973
|
-
|
|
2973
|
+
tenantId: string;
|
|
2974
|
+
projectId: string;
|
|
2974
2975
|
id: string;
|
|
2976
|
+
agentId: string;
|
|
2975
2977
|
createdAt: string;
|
|
2976
2978
|
updatedAt: string;
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
agentId: string;
|
|
2979
|
+
headers: Record<string, string> | null;
|
|
2980
|
+
toolId: string;
|
|
2980
2981
|
selectedTools: string[] | null;
|
|
2981
2982
|
subAgentId: string;
|
|
2982
|
-
toolId: string;
|
|
2983
2983
|
}>;
|
|
2984
2984
|
declare const updateAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
2985
2985
|
scopes: AgentScopeConfig;
|
|
2986
2986
|
relationId: string;
|
|
2987
2987
|
data: SubAgentToolRelationUpdate;
|
|
2988
2988
|
}) => Promise<{
|
|
2989
|
-
|
|
2989
|
+
tenantId: string;
|
|
2990
|
+
projectId: string;
|
|
2990
2991
|
id: string;
|
|
2992
|
+
agentId: string;
|
|
2991
2993
|
createdAt: string;
|
|
2992
2994
|
updatedAt: string;
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
agentId: string;
|
|
2995
|
+
headers: Record<string, string> | null;
|
|
2996
|
+
toolId: string;
|
|
2996
2997
|
selectedTools: string[] | null;
|
|
2997
2998
|
subAgentId: string;
|
|
2998
|
-
toolId: string;
|
|
2999
2999
|
}>;
|
|
3000
3000
|
declare const deleteAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
3001
3001
|
scopes: AgentScopeConfig;
|
|
@@ -3008,16 +3008,16 @@ declare const getAgentToolRelationById: (db: DatabaseClient) => (params: {
|
|
|
3008
3008
|
scopes: SubAgentScopeConfig;
|
|
3009
3009
|
relationId: string;
|
|
3010
3010
|
}) => Promise<{
|
|
3011
|
-
|
|
3011
|
+
tenantId: string;
|
|
3012
|
+
projectId: string;
|
|
3012
3013
|
id: string;
|
|
3014
|
+
agentId: string;
|
|
3013
3015
|
createdAt: string;
|
|
3014
3016
|
updatedAt: string;
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
agentId: string;
|
|
3017
|
+
headers: Record<string, string> | null;
|
|
3018
|
+
toolId: string;
|
|
3018
3019
|
selectedTools: string[] | null;
|
|
3019
3020
|
subAgentId: string;
|
|
3020
|
-
toolId: string;
|
|
3021
3021
|
} | undefined>;
|
|
3022
3022
|
declare const getAgentToolRelationByAgent: (db: DatabaseClient) => (params: {
|
|
3023
3023
|
scopes: SubAgentScopeConfig;
|
|
@@ -3184,13 +3184,15 @@ declare const getSubAgentById: (db: DatabaseClient) => (params: {
|
|
|
3184
3184
|
scopes: AgentScopeConfig;
|
|
3185
3185
|
subAgentId: string;
|
|
3186
3186
|
}) => Promise<{
|
|
3187
|
-
|
|
3187
|
+
tenantId: string;
|
|
3188
|
+
projectId: string;
|
|
3188
3189
|
id: string;
|
|
3190
|
+
name: string;
|
|
3191
|
+
description: string;
|
|
3192
|
+
prompt: string;
|
|
3193
|
+
agentId: string;
|
|
3189
3194
|
createdAt: string;
|
|
3190
3195
|
updatedAt: string;
|
|
3191
|
-
projectId: string;
|
|
3192
|
-
tenantId: string;
|
|
3193
|
-
description: string;
|
|
3194
3196
|
models: {
|
|
3195
3197
|
base?: {
|
|
3196
3198
|
model?: string | undefined;
|
|
@@ -3208,20 +3210,20 @@ declare const getSubAgentById: (db: DatabaseClient) => (params: {
|
|
|
3208
3210
|
stopWhen: {
|
|
3209
3211
|
stepCountIs?: number | undefined;
|
|
3210
3212
|
} | null;
|
|
3211
|
-
agentId: string;
|
|
3212
|
-
prompt: string;
|
|
3213
3213
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
3214
3214
|
} | undefined>;
|
|
3215
3215
|
declare const listSubAgents: (db: DatabaseClient) => (params: {
|
|
3216
3216
|
scopes: AgentScopeConfig;
|
|
3217
3217
|
}) => Promise<{
|
|
3218
|
-
|
|
3218
|
+
tenantId: string;
|
|
3219
|
+
projectId: string;
|
|
3219
3220
|
id: string;
|
|
3221
|
+
name: string;
|
|
3222
|
+
description: string;
|
|
3223
|
+
prompt: string;
|
|
3224
|
+
agentId: string;
|
|
3220
3225
|
createdAt: string;
|
|
3221
3226
|
updatedAt: string;
|
|
3222
|
-
projectId: string;
|
|
3223
|
-
tenantId: string;
|
|
3224
|
-
description: string;
|
|
3225
3227
|
models: {
|
|
3226
3228
|
base?: {
|
|
3227
3229
|
model?: string | undefined;
|
|
@@ -3239,8 +3241,6 @@ declare const listSubAgents: (db: DatabaseClient) => (params: {
|
|
|
3239
3241
|
stopWhen: {
|
|
3240
3242
|
stepCountIs?: number | undefined;
|
|
3241
3243
|
} | null;
|
|
3242
|
-
agentId: string;
|
|
3243
|
-
prompt: string;
|
|
3244
3244
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
3245
3245
|
}[]>;
|
|
3246
3246
|
declare const listSubAgentsPaginated: (db: DatabaseClient) => (params: {
|
|
@@ -3284,13 +3284,15 @@ declare const listSubAgentsPaginated: (db: DatabaseClient) => (params: {
|
|
|
3284
3284
|
};
|
|
3285
3285
|
}>;
|
|
3286
3286
|
declare const createSubAgent: (db: DatabaseClient) => (params: SubAgentInsert) => Promise<{
|
|
3287
|
-
|
|
3287
|
+
tenantId: string;
|
|
3288
|
+
projectId: string;
|
|
3288
3289
|
id: string;
|
|
3290
|
+
name: string;
|
|
3291
|
+
description: string;
|
|
3292
|
+
prompt: string;
|
|
3293
|
+
agentId: string;
|
|
3289
3294
|
createdAt: string;
|
|
3290
3295
|
updatedAt: string;
|
|
3291
|
-
projectId: string;
|
|
3292
|
-
tenantId: string;
|
|
3293
|
-
description: string;
|
|
3294
3296
|
models: {
|
|
3295
3297
|
base?: {
|
|
3296
3298
|
model?: string | undefined;
|
|
@@ -3308,8 +3310,6 @@ declare const createSubAgent: (db: DatabaseClient) => (params: SubAgentInsert) =
|
|
|
3308
3310
|
stopWhen: {
|
|
3309
3311
|
stepCountIs?: number | undefined;
|
|
3310
3312
|
} | null;
|
|
3311
|
-
agentId: string;
|
|
3312
|
-
prompt: string;
|
|
3313
3313
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
3314
3314
|
}>;
|
|
3315
3315
|
declare const updateSubAgent: (db: DatabaseClient) => (params: {
|
|
@@ -3317,13 +3317,15 @@ declare const updateSubAgent: (db: DatabaseClient) => (params: {
|
|
|
3317
3317
|
subAgentId: string;
|
|
3318
3318
|
data: SubAgentUpdate;
|
|
3319
3319
|
}) => Promise<{
|
|
3320
|
-
|
|
3320
|
+
tenantId: string;
|
|
3321
|
+
projectId: string;
|
|
3321
3322
|
id: string;
|
|
3323
|
+
name: string;
|
|
3324
|
+
description: string;
|
|
3325
|
+
prompt: string;
|
|
3326
|
+
agentId: string;
|
|
3322
3327
|
createdAt: string;
|
|
3323
3328
|
updatedAt: string;
|
|
3324
|
-
projectId: string;
|
|
3325
|
-
tenantId: string;
|
|
3326
|
-
description: string;
|
|
3327
3329
|
models: {
|
|
3328
3330
|
base?: {
|
|
3329
3331
|
model?: string | undefined;
|
|
@@ -3341,8 +3343,6 @@ declare const updateSubAgent: (db: DatabaseClient) => (params: {
|
|
|
3341
3343
|
stopWhen: {
|
|
3342
3344
|
stepCountIs?: number | undefined;
|
|
3343
3345
|
} | null;
|
|
3344
|
-
agentId: string;
|
|
3345
|
-
prompt: string;
|
|
3346
3346
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
3347
3347
|
}>;
|
|
3348
3348
|
/**
|
|
@@ -3392,13 +3392,13 @@ declare const getSubAgentTeamAgentRelationById: (db: DatabaseClient) => (params:
|
|
|
3392
3392
|
scopes: SubAgentScopeConfig;
|
|
3393
3393
|
relationId: string;
|
|
3394
3394
|
}) => Promise<{
|
|
3395
|
-
|
|
3395
|
+
tenantId: string;
|
|
3396
|
+
projectId: string;
|
|
3396
3397
|
id: string;
|
|
3398
|
+
agentId: string;
|
|
3397
3399
|
createdAt: string;
|
|
3398
3400
|
updatedAt: string;
|
|
3399
|
-
|
|
3400
|
-
tenantId: string;
|
|
3401
|
-
agentId: string;
|
|
3401
|
+
headers: Record<string, string> | null;
|
|
3402
3402
|
subAgentId: string;
|
|
3403
3403
|
targetAgentId: string;
|
|
3404
3404
|
} | undefined>;
|
|
@@ -3427,26 +3427,26 @@ declare const listSubAgentTeamAgentRelations: (db: DatabaseClient) => (params: {
|
|
|
3427
3427
|
declare const getSubAgentTeamAgentRelations: (db: DatabaseClient) => (params: {
|
|
3428
3428
|
scopes: SubAgentScopeConfig;
|
|
3429
3429
|
}) => Promise<{
|
|
3430
|
-
|
|
3430
|
+
tenantId: string;
|
|
3431
|
+
projectId: string;
|
|
3431
3432
|
id: string;
|
|
3433
|
+
agentId: string;
|
|
3432
3434
|
createdAt: string;
|
|
3433
3435
|
updatedAt: string;
|
|
3434
|
-
|
|
3435
|
-
tenantId: string;
|
|
3436
|
-
agentId: string;
|
|
3436
|
+
headers: Record<string, string> | null;
|
|
3437
3437
|
subAgentId: string;
|
|
3438
3438
|
targetAgentId: string;
|
|
3439
3439
|
}[]>;
|
|
3440
3440
|
declare const getSubAgentTeamAgentRelationsByAgent: (db: DatabaseClient) => (params: {
|
|
3441
3441
|
scopes: AgentScopeConfig;
|
|
3442
3442
|
}) => Promise<{
|
|
3443
|
-
|
|
3443
|
+
tenantId: string;
|
|
3444
|
+
projectId: string;
|
|
3444
3445
|
id: string;
|
|
3446
|
+
agentId: string;
|
|
3445
3447
|
createdAt: string;
|
|
3446
3448
|
updatedAt: string;
|
|
3447
|
-
|
|
3448
|
-
tenantId: string;
|
|
3449
|
-
agentId: string;
|
|
3449
|
+
headers: Record<string, string> | null;
|
|
3450
3450
|
subAgentId: string;
|
|
3451
3451
|
targetAgentId: string;
|
|
3452
3452
|
}[]>;
|
|
@@ -3593,13 +3593,13 @@ declare const createSubAgentTeamAgentRelation: (db: DatabaseClient) => (params:
|
|
|
3593
3593
|
headers?: Record<string, string> | null;
|
|
3594
3594
|
};
|
|
3595
3595
|
}) => Promise<{
|
|
3596
|
-
|
|
3596
|
+
tenantId: string;
|
|
3597
|
+
projectId: string;
|
|
3597
3598
|
id: string;
|
|
3599
|
+
agentId: string;
|
|
3598
3600
|
createdAt: string;
|
|
3599
3601
|
updatedAt: string;
|
|
3600
|
-
|
|
3601
|
-
tenantId: string;
|
|
3602
|
-
agentId: string;
|
|
3602
|
+
headers: Record<string, string> | null;
|
|
3603
3603
|
subAgentId: string;
|
|
3604
3604
|
targetAgentId: string;
|
|
3605
3605
|
}>;
|
|
@@ -3610,13 +3610,13 @@ declare const getSubAgentTeamAgentRelationByParams: (db: DatabaseClient) => (par
|
|
|
3610
3610
|
scopes: SubAgentScopeConfig;
|
|
3611
3611
|
targetAgentId: string;
|
|
3612
3612
|
}) => Promise<{
|
|
3613
|
-
|
|
3613
|
+
tenantId: string;
|
|
3614
|
+
projectId: string;
|
|
3614
3615
|
id: string;
|
|
3616
|
+
agentId: string;
|
|
3615
3617
|
createdAt: string;
|
|
3616
3618
|
updatedAt: string;
|
|
3617
|
-
|
|
3618
|
-
tenantId: string;
|
|
3619
|
-
agentId: string;
|
|
3619
|
+
headers: Record<string, string> | null;
|
|
3620
3620
|
subAgentId: string;
|
|
3621
3621
|
targetAgentId: string;
|
|
3622
3622
|
} | undefined>;
|
|
@@ -3631,13 +3631,13 @@ declare const upsertSubAgentTeamAgentRelation: (db: DatabaseClient) => (params:
|
|
|
3631
3631
|
headers?: Record<string, string> | null;
|
|
3632
3632
|
};
|
|
3633
3633
|
}) => Promise<{
|
|
3634
|
-
|
|
3634
|
+
tenantId: string;
|
|
3635
|
+
projectId: string;
|
|
3635
3636
|
id: string;
|
|
3637
|
+
agentId: string;
|
|
3636
3638
|
createdAt: string;
|
|
3637
3639
|
updatedAt: string;
|
|
3638
|
-
|
|
3639
|
-
tenantId: string;
|
|
3640
|
-
agentId: string;
|
|
3640
|
+
headers: Record<string, string> | null;
|
|
3641
3641
|
subAgentId: string;
|
|
3642
3642
|
targetAgentId: string;
|
|
3643
3643
|
}>;
|
|
@@ -3646,13 +3646,13 @@ declare const updateSubAgentTeamAgentRelation: (db: DatabaseClient) => (params:
|
|
|
3646
3646
|
relationId: string;
|
|
3647
3647
|
data: Partial<SubAgentTeamAgentRelationInsert>;
|
|
3648
3648
|
}) => Promise<{
|
|
3649
|
-
|
|
3649
|
+
tenantId: string;
|
|
3650
|
+
projectId: string;
|
|
3650
3651
|
id: string;
|
|
3652
|
+
agentId: string;
|
|
3651
3653
|
createdAt: string;
|
|
3652
3654
|
updatedAt: string;
|
|
3653
|
-
|
|
3654
|
-
tenantId: string;
|
|
3655
|
-
agentId: string;
|
|
3655
|
+
headers: Record<string, string> | null;
|
|
3656
3656
|
subAgentId: string;
|
|
3657
3657
|
targetAgentId: string;
|
|
3658
3658
|
}>;
|
|
@@ -3668,12 +3668,12 @@ declare const deleteSubAgentTeamAgentRelationsByAgent: (db: DatabaseClient) => (
|
|
|
3668
3668
|
}) => Promise<boolean>;
|
|
3669
3669
|
|
|
3670
3670
|
declare const createTask: (db: DatabaseClient) => (params: TaskInsert) => Promise<{
|
|
3671
|
+
tenantId: string;
|
|
3672
|
+
projectId: string;
|
|
3671
3673
|
id: string;
|
|
3674
|
+
agentId: string;
|
|
3672
3675
|
createdAt: string;
|
|
3673
3676
|
updatedAt: string;
|
|
3674
|
-
projectId: string;
|
|
3675
|
-
tenantId: string;
|
|
3676
|
-
agentId: string;
|
|
3677
3677
|
status: string;
|
|
3678
3678
|
metadata: TaskMetadataConfig | null;
|
|
3679
3679
|
contextId: string;
|
|
@@ -3689,12 +3689,12 @@ declare const updateTask: (db: DatabaseClient) => (params: {
|
|
|
3689
3689
|
metadata?: any;
|
|
3690
3690
|
};
|
|
3691
3691
|
}) => Promise<{
|
|
3692
|
+
tenantId: string;
|
|
3693
|
+
projectId: string;
|
|
3692
3694
|
id: string;
|
|
3695
|
+
agentId: string;
|
|
3693
3696
|
createdAt: string;
|
|
3694
3697
|
updatedAt: string;
|
|
3695
|
-
projectId: string;
|
|
3696
|
-
tenantId: string;
|
|
3697
|
-
agentId: string;
|
|
3698
3698
|
status: string;
|
|
3699
3699
|
metadata: TaskMetadataConfig | null;
|
|
3700
3700
|
contextId: string;
|
|
@@ -3709,20 +3709,20 @@ declare const getToolById: (db: DatabaseClient) => (params: {
|
|
|
3709
3709
|
scopes: ProjectScopeConfig;
|
|
3710
3710
|
toolId: string;
|
|
3711
3711
|
}) => Promise<{
|
|
3712
|
-
name: string;
|
|
3713
|
-
headers: Record<string, string> | null;
|
|
3714
|
-
id: string;
|
|
3715
|
-
createdAt: string;
|
|
3716
|
-
updatedAt: string;
|
|
3717
|
-
projectId: string;
|
|
3718
3712
|
tenantId: string;
|
|
3713
|
+
projectId: string;
|
|
3714
|
+
id: string;
|
|
3715
|
+
name: string;
|
|
3719
3716
|
description: string | null;
|
|
3720
|
-
credentialReferenceId: string | null;
|
|
3721
|
-
capabilities: ToolServerCapabilities | null;
|
|
3722
3717
|
config: {
|
|
3723
3718
|
type: "mcp";
|
|
3724
3719
|
mcp: ToolMcpConfig;
|
|
3725
3720
|
};
|
|
3721
|
+
credentialReferenceId: string | null;
|
|
3722
|
+
createdAt: string;
|
|
3723
|
+
updatedAt: string;
|
|
3724
|
+
headers: Record<string, string> | null;
|
|
3725
|
+
capabilities: ToolServerCapabilities | null;
|
|
3726
3726
|
imageUrl: string | null;
|
|
3727
3727
|
lastError: string | null;
|
|
3728
3728
|
} | null>;
|
|
@@ -3756,20 +3756,20 @@ declare const listTools: (db: DatabaseClient) => (params: {
|
|
|
3756
3756
|
};
|
|
3757
3757
|
}>;
|
|
3758
3758
|
declare const createTool: (db: DatabaseClient) => (params: ToolInsert) => Promise<{
|
|
3759
|
-
name: string;
|
|
3760
|
-
headers: Record<string, string> | null;
|
|
3761
|
-
id: string;
|
|
3762
|
-
createdAt: string;
|
|
3763
|
-
updatedAt: string;
|
|
3764
|
-
projectId: string;
|
|
3765
3759
|
tenantId: string;
|
|
3760
|
+
projectId: string;
|
|
3761
|
+
id: string;
|
|
3762
|
+
name: string;
|
|
3766
3763
|
description: string | null;
|
|
3767
|
-
credentialReferenceId: string | null;
|
|
3768
|
-
capabilities: ToolServerCapabilities | null;
|
|
3769
3764
|
config: {
|
|
3770
3765
|
type: "mcp";
|
|
3771
3766
|
mcp: ToolMcpConfig;
|
|
3772
3767
|
};
|
|
3768
|
+
credentialReferenceId: string | null;
|
|
3769
|
+
createdAt: string;
|
|
3770
|
+
updatedAt: string;
|
|
3771
|
+
headers: Record<string, string> | null;
|
|
3772
|
+
capabilities: ToolServerCapabilities | null;
|
|
3773
3773
|
imageUrl: string | null;
|
|
3774
3774
|
lastError: string | null;
|
|
3775
3775
|
}>;
|
|
@@ -3778,20 +3778,20 @@ declare const updateTool: (db: DatabaseClient) => (params: {
|
|
|
3778
3778
|
toolId: string;
|
|
3779
3779
|
data: ToolUpdate;
|
|
3780
3780
|
}) => Promise<{
|
|
3781
|
-
name: string;
|
|
3782
|
-
headers: Record<string, string> | null;
|
|
3783
|
-
id: string;
|
|
3784
|
-
createdAt: string;
|
|
3785
|
-
updatedAt: string;
|
|
3786
|
-
projectId: string;
|
|
3787
3781
|
tenantId: string;
|
|
3782
|
+
projectId: string;
|
|
3783
|
+
id: string;
|
|
3784
|
+
name: string;
|
|
3788
3785
|
description: string | null;
|
|
3789
|
-
credentialReferenceId: string | null;
|
|
3790
|
-
capabilities: ToolServerCapabilities | null;
|
|
3791
3786
|
config: {
|
|
3792
3787
|
type: "mcp";
|
|
3793
3788
|
mcp: ToolMcpConfig;
|
|
3794
3789
|
};
|
|
3790
|
+
credentialReferenceId: string | null;
|
|
3791
|
+
createdAt: string;
|
|
3792
|
+
updatedAt: string;
|
|
3793
|
+
headers: Record<string, string> | null;
|
|
3794
|
+
capabilities: ToolServerCapabilities | null;
|
|
3795
3795
|
imageUrl: string | null;
|
|
3796
3796
|
lastError: string | null;
|
|
3797
3797
|
}>;
|
|
@@ -3806,32 +3806,32 @@ declare const addToolToAgent: (db: DatabaseClient) => (params: {
|
|
|
3806
3806
|
selectedTools?: string[] | null;
|
|
3807
3807
|
headers?: Record<string, string> | null;
|
|
3808
3808
|
}) => Promise<{
|
|
3809
|
-
|
|
3809
|
+
tenantId: string;
|
|
3810
|
+
projectId: string;
|
|
3810
3811
|
id: string;
|
|
3812
|
+
agentId: string;
|
|
3811
3813
|
createdAt: string;
|
|
3812
3814
|
updatedAt: string;
|
|
3813
|
-
|
|
3814
|
-
|
|
3815
|
-
agentId: string;
|
|
3815
|
+
headers: Record<string, string> | null;
|
|
3816
|
+
toolId: string;
|
|
3816
3817
|
selectedTools: string[] | null;
|
|
3817
3818
|
subAgentId: string;
|
|
3818
|
-
toolId: string;
|
|
3819
3819
|
}>;
|
|
3820
3820
|
declare const removeToolFromAgent: (db: DatabaseClient) => (params: {
|
|
3821
3821
|
scopes: AgentScopeConfig;
|
|
3822
3822
|
subAgentId: string;
|
|
3823
3823
|
toolId: string;
|
|
3824
3824
|
}) => Promise<{
|
|
3825
|
-
|
|
3825
|
+
tenantId: string;
|
|
3826
|
+
projectId: string;
|
|
3826
3827
|
id: string;
|
|
3828
|
+
agentId: string;
|
|
3827
3829
|
createdAt: string;
|
|
3828
3830
|
updatedAt: string;
|
|
3829
|
-
|
|
3830
|
-
|
|
3831
|
-
agentId: string;
|
|
3831
|
+
headers: Record<string, string> | null;
|
|
3832
|
+
toolId: string;
|
|
3832
3833
|
selectedTools: string[] | null;
|
|
3833
3834
|
subAgentId: string;
|
|
3834
|
-
toolId: string;
|
|
3835
3835
|
}>;
|
|
3836
3836
|
/**
|
|
3837
3837
|
* Upsert agent-tool relation (create if it doesn't exist, update if it does)
|
|
@@ -3844,16 +3844,16 @@ declare const upsertSubAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
|
3844
3844
|
headers?: Record<string, string> | null;
|
|
3845
3845
|
relationId?: string;
|
|
3846
3846
|
}) => Promise<{
|
|
3847
|
-
|
|
3847
|
+
tenantId: string;
|
|
3848
|
+
projectId: string;
|
|
3848
3849
|
id: string;
|
|
3850
|
+
agentId: string;
|
|
3849
3851
|
createdAt: string;
|
|
3850
3852
|
updatedAt: string;
|
|
3851
|
-
|
|
3852
|
-
|
|
3853
|
-
agentId: string;
|
|
3853
|
+
headers: Record<string, string> | null;
|
|
3854
|
+
toolId: string;
|
|
3854
3855
|
selectedTools: string[] | null;
|
|
3855
3856
|
subAgentId: string;
|
|
3856
|
-
toolId: string;
|
|
3857
3857
|
}>;
|
|
3858
3858
|
/**
|
|
3859
3859
|
* Upsert a tool (create if it doesn't exist, update if it does)
|
|
@@ -3861,20 +3861,20 @@ declare const upsertSubAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
|
3861
3861
|
declare const upsertTool: (db: DatabaseClient) => (params: {
|
|
3862
3862
|
data: ToolInsert;
|
|
3863
3863
|
}) => Promise<{
|
|
3864
|
-
name: string;
|
|
3865
|
-
headers: Record<string, string> | null;
|
|
3866
|
-
id: string;
|
|
3867
|
-
createdAt: string;
|
|
3868
|
-
updatedAt: string;
|
|
3869
|
-
projectId: string;
|
|
3870
3864
|
tenantId: string;
|
|
3865
|
+
projectId: string;
|
|
3866
|
+
id: string;
|
|
3867
|
+
name: string;
|
|
3871
3868
|
description: string | null;
|
|
3872
|
-
credentialReferenceId: string | null;
|
|
3873
|
-
capabilities: ToolServerCapabilities | null;
|
|
3874
3869
|
config: {
|
|
3875
3870
|
type: "mcp";
|
|
3876
3871
|
mcp: ToolMcpConfig;
|
|
3877
3872
|
};
|
|
3873
|
+
credentialReferenceId: string | null;
|
|
3874
|
+
createdAt: string;
|
|
3875
|
+
updatedAt: string;
|
|
3876
|
+
headers: Record<string, string> | null;
|
|
3877
|
+
capabilities: ToolServerCapabilities | null;
|
|
3878
3878
|
imageUrl: string | null;
|
|
3879
3879
|
lastError: string | null;
|
|
3880
3880
|
}>;
|