@inkeep/agents-core 0.8.7 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-AX77SEE3.js → chunk-JXAL2ALG.js} +1 -0
- package/dist/{chunk-GPGFF2K4.js → chunk-YVGNJIQZ.js} +1 -1
- package/dist/client-exports.cjs +1 -0
- package/dist/client-exports.d.cts +8 -7
- package/dist/client-exports.d.ts +8 -7
- package/dist/client-exports.js +2 -2
- package/dist/db/schema.d.cts +2 -2
- package/dist/db/schema.d.ts +2 -2
- package/dist/index.cjs +154 -38
- package/dist/index.d.cts +177 -176
- package/dist/index.d.ts +177 -176
- package/dist/index.js +158 -43
- package/dist/{schema-BsLudkuV.d.cts → schema-B0z-X5Hq.d.cts} +1 -1
- package/dist/{schema-CjWNQuEl.d.ts → schema-BQoMyAN6.d.ts} +1 -1
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/{utility-DP6lt8z3.d.cts → utility-8RXSemmL.d.cts} +115 -110
- package/dist/{utility-DP6lt8z3.d.ts → utility-8RXSemmL.d.ts} +115 -110
- package/dist/validation/index.cjs +1 -0
- package/dist/validation/index.d.cts +2 -2
- package/dist/validation/index.d.ts +2 -2
- package/dist/validation/index.js +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { l as CredentialReferenceApiInsert, m as ContextConfigSelect, f as ContextFetchDefinition, M as MCPTransportType, n as MCPToolConfig, o as GraphScopeConfig, C as ConversationHistoryConfig, p as ProjectScopeConfig, q as PaginationConfig, r as AgentGraphInsert, s as AgentGraphUpdate, t as FullGraphDefinition, u as AgentScopeConfig, v as AgentRelationInsert, E as ExternalAgentRelationInsert, w as AgentRelationUpdate, x as AgentToolRelationUpdate, g as ToolMcpConfig, h as ToolServerCapabilities, y as AgentInsert, z as AgentUpdate, B as AgentSelect, D as ApiKeySelect, H as ApiKeyInsert, I as ApiKeyUpdate, J as CreateApiKeyParams, K as ApiKeyCreateResult, L as ArtifactComponentSelect, N as ArtifactComponentInsert, O as ArtifactComponentUpdate, Q as ContextCacheSelect, R as ContextCacheInsert, U as ContextConfigInsert, V as ContextConfigUpdate, W as ConversationSelect, X as ConversationInsert, i as ConversationMetadata, Y as ConversationUpdate, Z as CredentialReferenceSelect, _ as ToolSelect, $ as CredentialReferenceInsert, a0 as CredentialReferenceUpdate, a1 as DataComponentSelect, a2 as DataComponentInsert, a3 as DataComponentUpdate, a4 as ExternalAgentInsert, a5 as ExternalAgentSelect, a6 as ExternalAgentUpdate, a7 as Artifact, a8 as LedgerArtifactSelect, k as MessageMetadata, j as MessageContent, a9 as MessageVisibility, aa as MessageInsert, ab as MessageUpdate, ac as FullProjectDefinition, ad as ProjectInfo, ae as ProjectSelect, af as PaginationResult, ag as ProjectResourceCounts, ah as ProjectInsert, ai as ProjectUpdate, aj as TaskInsert, T as TaskMetadataConfig, ak as TaskSelect, al as McpTool, am as ToolInsert, an as ToolUpdate, e as CredentialStoreType, ao as ExecutionContext } from './utility-
|
|
3
|
-
export { b0 as A2AError, bw as A2ARequest, bx as A2AResponse, aB as APIKeySecurityScheme, bB as AgentApiInsert, dt as AgentApiInsertSchema, bA as AgentApiSelect, ds as AgentApiSelectSchema, bC as AgentApiUpdate, du as AgentApiUpdateSchema, cu as AgentArtifactComponentApiInsert, eE as AgentArtifactComponentApiInsertSchema, ct as AgentArtifactComponentApiSelect, eD as AgentArtifactComponentApiSelectSchema, cv as AgentArtifactComponentApiUpdate, eF as AgentArtifactComponentApiUpdateSchema, cr as AgentArtifactComponentInsert, eB as AgentArtifactComponentInsertSchema, cq as AgentArtifactComponentSelect, eA as AgentArtifactComponentSelectSchema, cs as AgentArtifactComponentUpdate, eC as AgentArtifactComponentUpdateSchema, ax as AgentCapabilities, aL as AgentCard, d7 as AgentConversationHistoryConfig, cl as AgentDataComponentApiInsert, es as AgentDataComponentApiInsertSchema, ck as AgentDataComponentApiSelect, er as AgentDataComponentApiSelectSchema, cm as AgentDataComponentApiUpdate, et as AgentDataComponentApiUpdateSchema, ci as AgentDataComponentInsert, ep as AgentDataComponentInsertSchema, ch as AgentDataComponentSelect, eo as AgentDataComponentSelectSchema, cj as AgentDataComponentUpdate, eq as AgentDataComponentUpdateSchema, cT as AgentDefinition, bL as AgentGraphApiInsert, dI as AgentGraphApiInsertSchema, bK as AgentGraphApiSelect, dH as AgentGraphApiSelectSchema, bM as AgentGraphApiUpdate, dJ as AgentGraphApiUpdateSchema, dF as AgentGraphInsertSchema, bJ as AgentGraphSelect, dE as AgentGraphSelectSchema, dG as AgentGraphUpdateSchema, dq as AgentInsertSchema, ay as AgentProvider, bF as AgentRelationApiInsert, dz as AgentRelationApiInsertSchema, bE as AgentRelationApiSelect, dy as AgentRelationApiSelectSchema, bG as AgentRelationApiUpdate, dA as AgentRelationApiUpdateSchema, dw as AgentRelationInsertSchema, bH as AgentRelationQuery, dB as AgentRelationQuerySchema, bD as AgentRelationSelect, dv as AgentRelationSelectSchema, dx as AgentRelationUpdateSchema, dp as AgentSelectSchema, az as AgentSkill, d as AgentStopWhen, a as AgentStopWhenSchema, cJ as AgentToolRelationApiInsert, ff as AgentToolRelationApiInsertSchema, cI as AgentToolRelationApiSelect, fe as AgentToolRelationApiSelectSchema, cK as AgentToolRelationApiUpdate, fg as AgentToolRelationApiUpdateSchema, cH as AgentToolRelationInsert, fc as AgentToolRelationInsertSchema, cG as AgentToolRelationSelect, fb as AgentToolRelationSelectSchema, fd as AgentToolRelationUpdateSchema, dr as AgentUpdateSchema, eM as AllAgentSchema, cz as AllAgentSelect, cD as ApiKeyApiCreationResponse, eR as ApiKeyApiCreationResponseSchema, cB as ApiKeyApiInsert, eS as ApiKeyApiInsertSchema, cA as ApiKeyApiSelect, eQ as ApiKeyApiSelectSchema, cC as ApiKeyApiUpdate, A as ApiKeyApiUpdateSchema, eO as ApiKeyInsertSchema, eN as ApiKeySelectSchema, eP as ApiKeyUpdateSchema, co as ArtifactComponentApiInsert, ey as ArtifactComponentApiInsertSchema, cn as ArtifactComponentApiSelect, ex as ArtifactComponentApiSelectSchema, cp as ArtifactComponentApiUpdate, ez as ArtifactComponentApiUpdateSchema, ev as ArtifactComponentInsertSchema, eu as ArtifactComponentSelectSchema, ew as ArtifactComponentUpdateSchema, aE as AuthorizationCodeOAuthFlow, cR as CanUseItem, fp as CanUseItemSchema, bg as CancelTaskRequest, br as CancelTaskResponse, bq as CancelTaskSuccessResponse, aF as ClientCredentialsOAuthFlow, a_ as ContentTypeNotSupportedError, cc as ContextCacheApiInsert, ef as ContextCacheApiInsertSchema, cb as ContextCacheApiSelect, ee as ContextCacheApiSelectSchema, cd as ContextCacheApiUpdate, eg as ContextCacheApiUpdateSchema, d8 as ContextCacheEntry, ec as ContextCacheInsertSchema, eb as ContextCacheSelectSchema, ca as ContextCacheUpdate, ed as ContextCacheUpdateSchema, c6 as ContextConfigApiInsert, f9 as ContextConfigApiInsertSchema, c5 as ContextConfigApiSelect, f8 as ContextConfigApiSelectSchema, c7 as ContextConfigApiUpdate, fa as ContextConfigApiUpdateSchema, f6 as ContextConfigInsertSchema, f5 as ContextConfigSelectSchema, f7 as ContextConfigUpdateSchema, b$ as ConversationApiInsert, e3 as ConversationApiInsertSchema, b_ as ConversationApiSelect, e2 as ConversationApiSelectSchema, c0 as ConversationApiUpdate, e4 as ConversationApiUpdateSchema, e0 as ConversationInsertSchema, d6 as ConversationScopeOptions, d$ as ConversationSelectSchema, e1 as ConversationUpdateSchema, eX as CredentialReferenceApiInsertSchema, cE as CredentialReferenceApiSelect, eW as CredentialReferenceApiSelectSchema, cF as CredentialReferenceApiUpdate, eY as CredentialReferenceApiUpdateSchema, eU as CredentialReferenceInsertSchema, eT as CredentialReferenceSelectSchema, eV as CredentialReferenceUpdateSchema, cf as DataComponentApiInsert, em as DataComponentApiInsertSchema, ce as DataComponentApiSelect, el as DataComponentApiSelectSchema, cg as DataComponentApiUpdate, en as DataComponentApiUpdateSchema, ej as DataComponentBaseSchema, ei as DataComponentInsertSchema, eh as DataComponentSelectSchema, ek as DataComponentUpdateSchema, av as DataPart, fv as ErrorResponseSchema, fw as ExistsResponseSchema, cx as ExternalAgentApiInsert, eK as ExternalAgentApiInsertSchema, cw as ExternalAgentApiSelect, eJ as ExternalAgentApiSelectSchema, cy as ExternalAgentApiUpdate, eL as ExternalAgentApiUpdateSchema, eH as ExternalAgentInsertSchema, bI as ExternalAgentRelationApiInsert, dD as ExternalAgentRelationApiInsertSchema, dC as ExternalAgentRelationInsertSchema, eG as ExternalAgentSelectSchema, eI as ExternalAgentUpdateSchema, c9 as FetchConfig, f3 as FetchConfigSchema, c8 as FetchDefinition, f4 as FetchDefinitionSchema, ar as FileBase, au as FilePart, as as FileWithBytes, at as FileWithUri, cQ as FullGraphAgentInsert, F as FullGraphAgentInsertSchema, fq as FullGraphDefinitionSchema, fE as FullProjectDefinitionSchema, bi as GetTaskPushNotificationConfigRequest, bv as GetTaskPushNotificationConfigResponse, bu as GetTaskPushNotificationConfigSuccessResponse, bf as GetTaskRequest, bp as GetTaskResponse, bo as GetTaskSuccessResponse, c as GraphStopWhen, G as GraphStopWhenSchema, fr as GraphWithinContextOfProjectSchema, aC as HTTPAuthSecurityScheme, fF as HeadersScopeSchema, fM as IdParamsSchema, aG as ImplicitOAuthFlow, cS as InternalAgentDefinition, aV as InternalError, a$ as InvalidAgentResponseError, aU as InvalidParamsError, aS as InvalidRequestError, aR as JSONParseError, ba as JSONRPCError, bc as JSONRPCErrorResponse, b8 as JSONRPCMessage, b9 as JSONRPCRequest, bb as JSONRPCResult, cO as LedgerArtifactApiInsert, fl as LedgerArtifactApiInsertSchema, cN as LedgerArtifactApiSelect, fk as LedgerArtifactApiSelectSchema, cP as LedgerArtifactApiUpdate, fm as LedgerArtifactApiUpdateSchema, cL as LedgerArtifactInsert, fi as LedgerArtifactInsertSchema, fh as LedgerArtifactSelectSchema, cM as LedgerArtifactUpdate, fj as LedgerArtifactUpdateSchema, ft as ListResponseSchema, di as MAX_ID_LENGTH, dg as MCPServerType, e_ as MCPToolConfigSchema, dh as MIN_ID_LENGTH, d9 as McpAuthType, da as McpServerAuth, dc as McpServerCapabilities, dd as McpToolDefinition, dY as McpToolDefinitionSchema, eZ as McpToolSchema, db as McpTransportConfig, dW as McpTransportConfigSchema, aM as Message, c3 as MessageApiInsert, e9 as MessageApiInsertSchema, c2 as MessageApiSelect, e8 as MessageApiSelectSchema, c4 as MessageApiUpdate, ea as MessageApiUpdateSchema, e6 as MessageInsertSchema, d0 as MessageMode, by as MessagePart, c$ as MessageRole, c1 as MessageSelect, e5 as MessageSelectSchema, b6 as MessageSendConfiguration, b7 as MessageSendParams, c_ as MessageType, e7 as MessageUpdateSchema, aT as MethodNotFoundError, dm as ModelSchema, d3 as ModelSettings, dl as ModelSettingsSchema, d1 as Models, aI as OAuth2SecurityScheme, aD as OAuthFlows, aJ as OpenIdConnectSecurityScheme, cY as Pagination, fN as PaginationQueryParamsSchema, fs as PaginationSchema, P as Part, ap as PartBase, aH as PasswordOAuthFlow, cW as ProjectApiInsert, fC as ProjectApiInsertSchema, cV as ProjectApiSelect, fB as ProjectApiSelectSchema, cX as ProjectApiUpdate, fD as ProjectApiUpdateSchema, fz as ProjectInsertSchema, dn as ProjectModelSchema, d2 as ProjectModels, fy as ProjectSelectSchema, fA as ProjectUpdateSchema, b1 as PushNotificationAuthenticationInfo, b2 as PushNotificationConfig, aY as PushNotificationNotSupportedError, fx as RemovedResponseSchema, aK as SecurityScheme, aA as SecuritySchemeBase, bd as SendMessageRequest, bl as SendMessageResponse, bk as SendMessageSuccessResponse, be as SendStreamingMessageRequest, bn as SendStreamingMessageResponse, bm as SendStreamingMessageSuccessResponse, bh as SetTaskPushNotificationConfigRequest, bt as SetTaskPushNotificationConfigResponse, bs as SetTaskPushNotificationConfigSuccessResponse, fu as SingleResponseSchema, d5 as StatusComponent, fn as StatusComponentSchema, fo as StatusUpdateSchema, d4 as StatusUpdateSettings, b as StopWhen, S as StopWhenSchema, cZ as SummaryEvent, de as TOOL_STATUS_VALUES, aO as Task, bP as TaskApiInsert, dO as TaskApiInsertSchema, bO as TaskApiSelect, dN as TaskApiSelectSchema, bQ as TaskApiUpdate, dP as TaskApiUpdateSchema, bz as TaskArtifact, aQ as TaskArtifactUpdateEvent, b4 as TaskIdParams, dL as TaskInsertSchema, aX as TaskNotCancelableError, aW as TaskNotFoundError, b3 as TaskPushNotificationConfig, b5 as TaskQueryParams, bV as TaskRelationApiInsert, dU as TaskRelationApiInsertSchema, bU as TaskRelationApiSelect, dT as TaskRelationApiSelectSchema, bW as TaskRelationApiUpdate, dV as TaskRelationApiUpdateSchema, bS as TaskRelationInsert, dR as TaskRelationInsertSchema, bR as TaskRelationSelect, dQ as TaskRelationSelectSchema, bT as TaskRelationUpdate, dS as TaskRelationUpdateSchema, bj as TaskResubscriptionRequest, dK as TaskSelectSchema, aw as TaskState, aN as TaskStatus, aP as TaskStatusUpdateEvent, bN as TaskUpdate, dM as TaskUpdateSchema, fL as TenantIdParamsSchema, fG as TenantParamsSchema, fJ as TenantProjectGraphIdParamsSchema, fI as TenantProjectGraphParamsSchema, fK as TenantProjectIdParamsSchema, fH as TenantProjectParamsSchema, aq as TextPart, bY as ToolApiInsert, f1 as ToolApiInsertSchema, bX as ToolApiSelect, f0 as ToolApiSelectSchema, bZ as ToolApiUpdate, f2 as ToolApiUpdateSchema, cU as ToolDefinition, d_ as ToolInsertSchema, dZ as ToolSelectSchema, dX as ToolStatusSchema, e$ as ToolUpdateSchema, dj as URL_SAFE_ID_PATTERN, aZ as UnsupportedOperationError, df as VALID_RELATION_TYPES, dk as resourceIdSchema } from './utility-DP6lt8z3.js';
|
|
2
|
+
import { l as CredentialReferenceApiInsert, m as ContextConfigSelect, f as ContextFetchDefinition, M as MCPTransportType, n as MCPToolConfig, o as GraphScopeConfig, C as ConversationHistoryConfig, p as ProjectScopeConfig, q as PaginationConfig, r as AgentGraphInsert, s as AgentGraphUpdate, t as FullGraphDefinition, u as AgentScopeConfig, v as AgentRelationInsert, E as ExternalAgentRelationInsert, w as AgentRelationUpdate, x as AgentToolRelationUpdate, g as ToolMcpConfig, h as ToolServerCapabilities, y as AgentInsert, z as AgentUpdate, B as AgentSelect, D as ApiKeySelect, H as ApiKeyInsert, I as ApiKeyUpdate, J as CreateApiKeyParams, K as ApiKeyCreateResult, L as ArtifactComponentSelect, N as ArtifactComponentInsert, O as ArtifactComponentUpdate, Q as ContextCacheSelect, R as ContextCacheInsert, U as ContextConfigInsert, V as ContextConfigUpdate, W as ConversationSelect, X as ConversationInsert, i as ConversationMetadata, Y as ConversationUpdate, Z as CredentialReferenceSelect, _ as ToolSelect, $ as CredentialReferenceInsert, a0 as CredentialReferenceUpdate, a1 as DataComponentSelect, a2 as DataComponentInsert, a3 as DataComponentUpdate, a4 as ExternalAgentInsert, a5 as ExternalAgentSelect, a6 as ExternalAgentUpdate, a7 as Artifact, a8 as LedgerArtifactSelect, k as MessageMetadata, j as MessageContent, a9 as MessageVisibility, aa as MessageInsert, ab as MessageUpdate, ac as FullProjectDefinition, ad as ProjectInfo, ae as ProjectSelect, af as PaginationResult, ag as ProjectResourceCounts, ah as ProjectInsert, ai as ProjectUpdate, aj as TaskInsert, T as TaskMetadataConfig, ak as TaskSelect, al as McpTool, am as ToolInsert, an as ToolUpdate, e as CredentialStoreType, ao as ExecutionContext } from './utility-8RXSemmL.js';
|
|
3
|
+
export { b0 as A2AError, bw as A2ARequest, bx as A2AResponse, aB as APIKeySecurityScheme, bB as AgentApiInsert, dt as AgentApiInsertSchema, bA as AgentApiSelect, ds as AgentApiSelectSchema, bC as AgentApiUpdate, du as AgentApiUpdateSchema, cu as AgentArtifactComponentApiInsert, eE as AgentArtifactComponentApiInsertSchema, ct as AgentArtifactComponentApiSelect, eD as AgentArtifactComponentApiSelectSchema, cv as AgentArtifactComponentApiUpdate, eF as AgentArtifactComponentApiUpdateSchema, cr as AgentArtifactComponentInsert, eB as AgentArtifactComponentInsertSchema, cq as AgentArtifactComponentSelect, eA as AgentArtifactComponentSelectSchema, cs as AgentArtifactComponentUpdate, eC as AgentArtifactComponentUpdateSchema, ax as AgentCapabilities, aL as AgentCard, d7 as AgentConversationHistoryConfig, cl as AgentDataComponentApiInsert, es as AgentDataComponentApiInsertSchema, ck as AgentDataComponentApiSelect, er as AgentDataComponentApiSelectSchema, cm as AgentDataComponentApiUpdate, et as AgentDataComponentApiUpdateSchema, ci as AgentDataComponentInsert, ep as AgentDataComponentInsertSchema, ch as AgentDataComponentSelect, eo as AgentDataComponentSelectSchema, cj as AgentDataComponentUpdate, eq as AgentDataComponentUpdateSchema, cT as AgentDefinition, bL as AgentGraphApiInsert, dI as AgentGraphApiInsertSchema, bK as AgentGraphApiSelect, dH as AgentGraphApiSelectSchema, bM as AgentGraphApiUpdate, dJ as AgentGraphApiUpdateSchema, dF as AgentGraphInsertSchema, bJ as AgentGraphSelect, dE as AgentGraphSelectSchema, dG as AgentGraphUpdateSchema, dq as AgentInsertSchema, ay as AgentProvider, bF as AgentRelationApiInsert, dz as AgentRelationApiInsertSchema, bE as AgentRelationApiSelect, dy as AgentRelationApiSelectSchema, bG as AgentRelationApiUpdate, dA as AgentRelationApiUpdateSchema, dw as AgentRelationInsertSchema, bH as AgentRelationQuery, dB as AgentRelationQuerySchema, bD as AgentRelationSelect, dv as AgentRelationSelectSchema, dx as AgentRelationUpdateSchema, dp as AgentSelectSchema, az as AgentSkill, d as AgentStopWhen, a as AgentStopWhenSchema, cJ as AgentToolRelationApiInsert, ff as AgentToolRelationApiInsertSchema, cI as AgentToolRelationApiSelect, fe as AgentToolRelationApiSelectSchema, cK as AgentToolRelationApiUpdate, fg as AgentToolRelationApiUpdateSchema, cH as AgentToolRelationInsert, fc as AgentToolRelationInsertSchema, cG as AgentToolRelationSelect, fb as AgentToolRelationSelectSchema, fd as AgentToolRelationUpdateSchema, dr as AgentUpdateSchema, eM as AllAgentSchema, cz as AllAgentSelect, cD as ApiKeyApiCreationResponse, eR as ApiKeyApiCreationResponseSchema, cB as ApiKeyApiInsert, eS as ApiKeyApiInsertSchema, cA as ApiKeyApiSelect, eQ as ApiKeyApiSelectSchema, cC as ApiKeyApiUpdate, A as ApiKeyApiUpdateSchema, eO as ApiKeyInsertSchema, eN as ApiKeySelectSchema, eP as ApiKeyUpdateSchema, co as ArtifactComponentApiInsert, ey as ArtifactComponentApiInsertSchema, cn as ArtifactComponentApiSelect, ex as ArtifactComponentApiSelectSchema, cp as ArtifactComponentApiUpdate, ez as ArtifactComponentApiUpdateSchema, ev as ArtifactComponentInsertSchema, eu as ArtifactComponentSelectSchema, ew as ArtifactComponentUpdateSchema, aE as AuthorizationCodeOAuthFlow, cR as CanUseItem, fp as CanUseItemSchema, bg as CancelTaskRequest, br as CancelTaskResponse, bq as CancelTaskSuccessResponse, aF as ClientCredentialsOAuthFlow, a_ as ContentTypeNotSupportedError, cc as ContextCacheApiInsert, ef as ContextCacheApiInsertSchema, cb as ContextCacheApiSelect, ee as ContextCacheApiSelectSchema, cd as ContextCacheApiUpdate, eg as ContextCacheApiUpdateSchema, d8 as ContextCacheEntry, ec as ContextCacheInsertSchema, eb as ContextCacheSelectSchema, ca as ContextCacheUpdate, ed as ContextCacheUpdateSchema, c6 as ContextConfigApiInsert, f9 as ContextConfigApiInsertSchema, c5 as ContextConfigApiSelect, f8 as ContextConfigApiSelectSchema, c7 as ContextConfigApiUpdate, fa as ContextConfigApiUpdateSchema, f6 as ContextConfigInsertSchema, f5 as ContextConfigSelectSchema, f7 as ContextConfigUpdateSchema, b$ as ConversationApiInsert, e3 as ConversationApiInsertSchema, b_ as ConversationApiSelect, e2 as ConversationApiSelectSchema, c0 as ConversationApiUpdate, e4 as ConversationApiUpdateSchema, e0 as ConversationInsertSchema, d6 as ConversationScopeOptions, d$ as ConversationSelectSchema, e1 as ConversationUpdateSchema, eX as CredentialReferenceApiInsertSchema, cE as CredentialReferenceApiSelect, eW as CredentialReferenceApiSelectSchema, cF as CredentialReferenceApiUpdate, eY as CredentialReferenceApiUpdateSchema, eU as CredentialReferenceInsertSchema, eT as CredentialReferenceSelectSchema, eV as CredentialReferenceUpdateSchema, cf as DataComponentApiInsert, em as DataComponentApiInsertSchema, ce as DataComponentApiSelect, el as DataComponentApiSelectSchema, cg as DataComponentApiUpdate, en as DataComponentApiUpdateSchema, ej as DataComponentBaseSchema, ei as DataComponentInsertSchema, eh as DataComponentSelectSchema, ek as DataComponentUpdateSchema, av as DataPart, fv as ErrorResponseSchema, fw as ExistsResponseSchema, cx as ExternalAgentApiInsert, eK as ExternalAgentApiInsertSchema, cw as ExternalAgentApiSelect, eJ as ExternalAgentApiSelectSchema, cy as ExternalAgentApiUpdate, eL as ExternalAgentApiUpdateSchema, eH as ExternalAgentInsertSchema, bI as ExternalAgentRelationApiInsert, dD as ExternalAgentRelationApiInsertSchema, dC as ExternalAgentRelationInsertSchema, eG as ExternalAgentSelectSchema, eI as ExternalAgentUpdateSchema, c9 as FetchConfig, f3 as FetchConfigSchema, c8 as FetchDefinition, f4 as FetchDefinitionSchema, ar as FileBase, au as FilePart, as as FileWithBytes, at as FileWithUri, cQ as FullGraphAgentInsert, F as FullGraphAgentInsertSchema, fq as FullGraphDefinitionSchema, fE as FullProjectDefinitionSchema, bi as GetTaskPushNotificationConfigRequest, bv as GetTaskPushNotificationConfigResponse, bu as GetTaskPushNotificationConfigSuccessResponse, bf as GetTaskRequest, bp as GetTaskResponse, bo as GetTaskSuccessResponse, c as GraphStopWhen, G as GraphStopWhenSchema, fr as GraphWithinContextOfProjectSchema, aC as HTTPAuthSecurityScheme, fF as HeadersScopeSchema, fM as IdParamsSchema, aG as ImplicitOAuthFlow, cS as InternalAgentDefinition, aV as InternalError, a$ as InvalidAgentResponseError, aU as InvalidParamsError, aS as InvalidRequestError, aR as JSONParseError, ba as JSONRPCError, bc as JSONRPCErrorResponse, b8 as JSONRPCMessage, b9 as JSONRPCRequest, bb as JSONRPCResult, cO as LedgerArtifactApiInsert, fl as LedgerArtifactApiInsertSchema, cN as LedgerArtifactApiSelect, fk as LedgerArtifactApiSelectSchema, cP as LedgerArtifactApiUpdate, fm as LedgerArtifactApiUpdateSchema, cL as LedgerArtifactInsert, fi as LedgerArtifactInsertSchema, fh as LedgerArtifactSelectSchema, cM as LedgerArtifactUpdate, fj as LedgerArtifactUpdateSchema, ft as ListResponseSchema, di as MAX_ID_LENGTH, dg as MCPServerType, e_ as MCPToolConfigSchema, dh as MIN_ID_LENGTH, d9 as McpAuthType, da as McpServerAuth, dc as McpServerCapabilities, dd as McpToolDefinition, dY as McpToolDefinitionSchema, eZ as McpToolSchema, db as McpTransportConfig, dW as McpTransportConfigSchema, aM as Message, c3 as MessageApiInsert, e9 as MessageApiInsertSchema, c2 as MessageApiSelect, e8 as MessageApiSelectSchema, c4 as MessageApiUpdate, ea as MessageApiUpdateSchema, e6 as MessageInsertSchema, d0 as MessageMode, by as MessagePart, c$ as MessageRole, c1 as MessageSelect, e5 as MessageSelectSchema, b6 as MessageSendConfiguration, b7 as MessageSendParams, c_ as MessageType, e7 as MessageUpdateSchema, aT as MethodNotFoundError, dm as ModelSchema, d3 as ModelSettings, dl as ModelSettingsSchema, d1 as Models, aI as OAuth2SecurityScheme, aD as OAuthFlows, aJ as OpenIdConnectSecurityScheme, cY as Pagination, fN as PaginationQueryParamsSchema, fs as PaginationSchema, P as Part, ap as PartBase, aH as PasswordOAuthFlow, cW as ProjectApiInsert, fC as ProjectApiInsertSchema, cV as ProjectApiSelect, fB as ProjectApiSelectSchema, cX as ProjectApiUpdate, fD as ProjectApiUpdateSchema, fz as ProjectInsertSchema, dn as ProjectModelSchema, d2 as ProjectModels, fy as ProjectSelectSchema, fA as ProjectUpdateSchema, b1 as PushNotificationAuthenticationInfo, b2 as PushNotificationConfig, aY as PushNotificationNotSupportedError, fx as RemovedResponseSchema, aK as SecurityScheme, aA as SecuritySchemeBase, bd as SendMessageRequest, bl as SendMessageResponse, bk as SendMessageSuccessResponse, be as SendStreamingMessageRequest, bn as SendStreamingMessageResponse, bm as SendStreamingMessageSuccessResponse, bh as SetTaskPushNotificationConfigRequest, bt as SetTaskPushNotificationConfigResponse, bs as SetTaskPushNotificationConfigSuccessResponse, fu as SingleResponseSchema, d5 as StatusComponent, fn as StatusComponentSchema, fo as StatusUpdateSchema, d4 as StatusUpdateSettings, b as StopWhen, S as StopWhenSchema, cZ as SummaryEvent, de as TOOL_STATUS_VALUES, aO as Task, bP as TaskApiInsert, dO as TaskApiInsertSchema, bO as TaskApiSelect, dN as TaskApiSelectSchema, bQ as TaskApiUpdate, dP as TaskApiUpdateSchema, bz as TaskArtifact, aQ as TaskArtifactUpdateEvent, b4 as TaskIdParams, dL as TaskInsertSchema, aX as TaskNotCancelableError, aW as TaskNotFoundError, b3 as TaskPushNotificationConfig, b5 as TaskQueryParams, bV as TaskRelationApiInsert, dU as TaskRelationApiInsertSchema, bU as TaskRelationApiSelect, dT as TaskRelationApiSelectSchema, bW as TaskRelationApiUpdate, dV as TaskRelationApiUpdateSchema, bS as TaskRelationInsert, dR as TaskRelationInsertSchema, bR as TaskRelationSelect, dQ as TaskRelationSelectSchema, bT as TaskRelationUpdate, dS as TaskRelationUpdateSchema, bj as TaskResubscriptionRequest, dK as TaskSelectSchema, aw as TaskState, aN as TaskStatus, aP as TaskStatusUpdateEvent, bN as TaskUpdate, dM as TaskUpdateSchema, fL as TenantIdParamsSchema, fG as TenantParamsSchema, fJ as TenantProjectGraphIdParamsSchema, fI as TenantProjectGraphParamsSchema, fK as TenantProjectIdParamsSchema, fH as TenantProjectParamsSchema, aq as TextPart, bY as ToolApiInsert, f1 as ToolApiInsertSchema, bX as ToolApiSelect, f0 as ToolApiSelectSchema, bZ as ToolApiUpdate, f2 as ToolApiUpdateSchema, cU as ToolDefinition, d_ as ToolInsertSchema, dZ as ToolSelectSchema, dX as ToolStatusSchema, e$ as ToolUpdateSchema, dj as URL_SAFE_ID_PATTERN, aZ as UnsupportedOperationError, df as VALID_RELATION_TYPES, dk as resourceIdSchema } from './utility-8RXSemmL.js';
|
|
4
4
|
import { CredentialStore } from './types/index.js';
|
|
5
5
|
export { CorsConfig, ServerConfig, ServerOptions } from './types/index.js';
|
|
6
6
|
import { LibSQLDatabase } from 'drizzle-orm/libsql';
|
|
7
|
-
import { s as schema } from './schema-
|
|
8
|
-
export { k as agentArtifactComponents, O as agentArtifactComponentsRelations, i as agentDataComponents, Q as agentDataComponentsRelations, a as agentGraph, F as agentGraphRelations, e as agentRelations, S as agentRelationsRelations, m as agentToolRelations, I as agentToolRelationsRelations, d as agents, E as agentsRelations, r as apiKeys, H as apiKeysRelations, j as artifactComponents, N as artifactComponentsRelations, b as contextCache, D as contextCacheRelations, c as contextConfigs, C as contextConfigsRelations, n as conversations, L as conversationsRelations, u as credentialReferences, J as credentialReferencesRelations, h as dataComponents, P as dataComponentsRelations, f as externalAgents, G as externalAgentsRelations, q as ledgerArtifacts, x as ledgerArtifactsContextIdIdx, R as ledgerArtifactsRelations, y as ledgerArtifactsTaskContextNameUnique, v as ledgerArtifactsTaskIdIdx, w as ledgerArtifactsToolCallIdIdx, o as messages, M as messagesRelations, p as projects, A as projectsRelations, g as taskRelations, B as taskRelationsRelations, t as tasks, z as tasksRelations, l as tools, K as toolsRelations } from './schema-
|
|
7
|
+
import { s as schema } from './schema-BQoMyAN6.js';
|
|
8
|
+
export { k as agentArtifactComponents, O as agentArtifactComponentsRelations, i as agentDataComponents, Q as agentDataComponentsRelations, a as agentGraph, F as agentGraphRelations, e as agentRelations, S as agentRelationsRelations, m as agentToolRelations, I as agentToolRelationsRelations, d as agents, E as agentsRelations, r as apiKeys, H as apiKeysRelations, j as artifactComponents, N as artifactComponentsRelations, b as contextCache, D as contextCacheRelations, c as contextConfigs, C as contextConfigsRelations, n as conversations, L as conversationsRelations, u as credentialReferences, J as credentialReferencesRelations, h as dataComponents, P as dataComponentsRelations, f as externalAgents, G as externalAgentsRelations, q as ledgerArtifacts, x as ledgerArtifactsContextIdIdx, R as ledgerArtifactsRelations, y as ledgerArtifactsTaskContextNameUnique, v as ledgerArtifactsTaskIdIdx, w as ledgerArtifactsToolCallIdIdx, o as messages, M as messagesRelations, p as projects, A as projectsRelations, g as taskRelations, B as taskRelationsRelations, t as tasks, z as tasksRelations, l as tools, K as toolsRelations } from './schema-BQoMyAN6.js';
|
|
9
9
|
import { LoggerOptions, TransportSingleOptions, Logger } from 'pino';
|
|
10
10
|
import { SSEClientTransportOptions } from '@modelcontextprotocol/sdk/client/sse.js';
|
|
11
11
|
import { StreamableHTTPClientTransportOptions } from '@modelcontextprotocol/sdk/client/streamableHttp.js';
|
|
@@ -773,9 +773,13 @@ declare const getAgentGraphById: (db: DatabaseClient) => (params: {
|
|
|
773
773
|
scopes: GraphScopeConfig;
|
|
774
774
|
}) => Promise<{
|
|
775
775
|
tenantId: string;
|
|
776
|
+
projectId: string;
|
|
776
777
|
id: string;
|
|
777
778
|
name: string;
|
|
778
779
|
description: string | null;
|
|
780
|
+
createdAt: string;
|
|
781
|
+
updatedAt: string;
|
|
782
|
+
defaultAgentId: string | null;
|
|
779
783
|
models: {
|
|
780
784
|
base?: {
|
|
781
785
|
model?: string | undefined;
|
|
@@ -793,10 +797,6 @@ declare const getAgentGraphById: (db: DatabaseClient) => (params: {
|
|
|
793
797
|
stopWhen: {
|
|
794
798
|
transferCountIs?: number | undefined;
|
|
795
799
|
} | null;
|
|
796
|
-
createdAt: string;
|
|
797
|
-
updatedAt: string;
|
|
798
|
-
projectId: string;
|
|
799
|
-
defaultAgentId: string | null;
|
|
800
800
|
contextConfigId: string | null;
|
|
801
801
|
statusUpdates: {
|
|
802
802
|
enabled?: boolean | undefined;
|
|
@@ -819,9 +819,13 @@ declare const getAgentGraphWithDefaultAgent: (db: DatabaseClient) => (params: {
|
|
|
819
819
|
scopes: GraphScopeConfig;
|
|
820
820
|
}) => Promise<{
|
|
821
821
|
tenantId: string;
|
|
822
|
+
projectId: string;
|
|
822
823
|
id: string;
|
|
823
824
|
name: string;
|
|
824
825
|
description: string | null;
|
|
826
|
+
createdAt: string;
|
|
827
|
+
updatedAt: string;
|
|
828
|
+
defaultAgentId: string | null;
|
|
825
829
|
models: {
|
|
826
830
|
base?: {
|
|
827
831
|
model?: string | undefined;
|
|
@@ -839,10 +843,6 @@ declare const getAgentGraphWithDefaultAgent: (db: DatabaseClient) => (params: {
|
|
|
839
843
|
stopWhen: {
|
|
840
844
|
transferCountIs?: number | undefined;
|
|
841
845
|
} | null;
|
|
842
|
-
createdAt: string;
|
|
843
|
-
updatedAt: string;
|
|
844
|
-
projectId: string;
|
|
845
|
-
defaultAgentId: string | null;
|
|
846
846
|
contextConfigId: string | null;
|
|
847
847
|
statusUpdates: {
|
|
848
848
|
enabled?: boolean | undefined;
|
|
@@ -862,9 +862,15 @@ declare const getAgentGraphWithDefaultAgent: (db: DatabaseClient) => (params: {
|
|
|
862
862
|
graphPrompt: string | null;
|
|
863
863
|
defaultAgent: {
|
|
864
864
|
tenantId: string;
|
|
865
|
+
projectId: string;
|
|
865
866
|
id: string;
|
|
866
867
|
name: string;
|
|
867
868
|
description: string;
|
|
869
|
+
prompt: string;
|
|
870
|
+
graphId: string;
|
|
871
|
+
createdAt: string;
|
|
872
|
+
updatedAt: string;
|
|
873
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
868
874
|
models: {
|
|
869
875
|
base?: {
|
|
870
876
|
model?: string | undefined;
|
|
@@ -882,21 +888,19 @@ declare const getAgentGraphWithDefaultAgent: (db: DatabaseClient) => (params: {
|
|
|
882
888
|
stopWhen: {
|
|
883
889
|
stepCountIs?: number | undefined;
|
|
884
890
|
} | null;
|
|
885
|
-
createdAt: string;
|
|
886
|
-
updatedAt: string;
|
|
887
|
-
projectId: string;
|
|
888
|
-
prompt: string;
|
|
889
|
-
graphId: string;
|
|
890
|
-
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
891
891
|
} | null;
|
|
892
892
|
} | null>;
|
|
893
893
|
declare const listAgentGraphs: (db: DatabaseClient) => (params: {
|
|
894
894
|
scopes: ProjectScopeConfig;
|
|
895
895
|
}) => Promise<{
|
|
896
896
|
tenantId: string;
|
|
897
|
+
projectId: string;
|
|
897
898
|
id: string;
|
|
898
899
|
name: string;
|
|
899
900
|
description: string | null;
|
|
901
|
+
createdAt: string;
|
|
902
|
+
updatedAt: string;
|
|
903
|
+
defaultAgentId: string | null;
|
|
900
904
|
models: {
|
|
901
905
|
base?: {
|
|
902
906
|
model?: string | undefined;
|
|
@@ -914,10 +918,6 @@ declare const listAgentGraphs: (db: DatabaseClient) => (params: {
|
|
|
914
918
|
stopWhen: {
|
|
915
919
|
transferCountIs?: number | undefined;
|
|
916
920
|
} | null;
|
|
917
|
-
createdAt: string;
|
|
918
|
-
updatedAt: string;
|
|
919
|
-
projectId: string;
|
|
920
|
-
defaultAgentId: string | null;
|
|
921
921
|
contextConfigId: string | null;
|
|
922
922
|
statusUpdates: {
|
|
923
923
|
enabled?: boolean | undefined;
|
|
@@ -993,9 +993,13 @@ declare const listAgentGraphsPaginated: (db: DatabaseClient) => (params: {
|
|
|
993
993
|
}>;
|
|
994
994
|
declare const createAgentGraph: (db: DatabaseClient) => (data: AgentGraphInsert) => Promise<{
|
|
995
995
|
tenantId: string;
|
|
996
|
+
projectId: string;
|
|
996
997
|
id: string;
|
|
997
998
|
name: string;
|
|
998
999
|
description: string | null;
|
|
1000
|
+
createdAt: string;
|
|
1001
|
+
updatedAt: string;
|
|
1002
|
+
defaultAgentId: string | null;
|
|
999
1003
|
models: {
|
|
1000
1004
|
base?: {
|
|
1001
1005
|
model?: string | undefined;
|
|
@@ -1013,10 +1017,6 @@ declare const createAgentGraph: (db: DatabaseClient) => (data: AgentGraphInsert)
|
|
|
1013
1017
|
stopWhen: {
|
|
1014
1018
|
transferCountIs?: number | undefined;
|
|
1015
1019
|
} | null;
|
|
1016
|
-
createdAt: string;
|
|
1017
|
-
updatedAt: string;
|
|
1018
|
-
projectId: string;
|
|
1019
|
-
defaultAgentId: string | null;
|
|
1020
1020
|
contextConfigId: string | null;
|
|
1021
1021
|
statusUpdates: {
|
|
1022
1022
|
enabled?: boolean | undefined;
|
|
@@ -1040,9 +1040,13 @@ declare const updateAgentGraph: (db: DatabaseClient) => (params: {
|
|
|
1040
1040
|
data: AgentGraphUpdate;
|
|
1041
1041
|
}) => Promise<{
|
|
1042
1042
|
tenantId: string;
|
|
1043
|
+
projectId: string;
|
|
1043
1044
|
id: string;
|
|
1044
1045
|
name: string;
|
|
1045
1046
|
description: string | null;
|
|
1047
|
+
createdAt: string;
|
|
1048
|
+
updatedAt: string;
|
|
1049
|
+
defaultAgentId: string | null;
|
|
1046
1050
|
models: {
|
|
1047
1051
|
base?: {
|
|
1048
1052
|
model?: string | undefined;
|
|
@@ -1060,10 +1064,6 @@ declare const updateAgentGraph: (db: DatabaseClient) => (params: {
|
|
|
1060
1064
|
stopWhen: {
|
|
1061
1065
|
transferCountIs?: number | undefined;
|
|
1062
1066
|
} | null;
|
|
1063
|
-
createdAt: string;
|
|
1064
|
-
updatedAt: string;
|
|
1065
|
-
projectId: string;
|
|
1066
|
-
defaultAgentId: string | null;
|
|
1067
1067
|
contextConfigId: string | null;
|
|
1068
1068
|
statusUpdates: {
|
|
1069
1069
|
enabled?: boolean | undefined;
|
|
@@ -1119,11 +1119,11 @@ declare const getAgentRelationById: (db: DatabaseClient) => (params: {
|
|
|
1119
1119
|
relationId: string;
|
|
1120
1120
|
}) => Promise<{
|
|
1121
1121
|
tenantId: string;
|
|
1122
|
+
projectId: string;
|
|
1122
1123
|
id: string;
|
|
1124
|
+
graphId: string;
|
|
1123
1125
|
createdAt: string;
|
|
1124
1126
|
updatedAt: string;
|
|
1125
|
-
projectId: string;
|
|
1126
|
-
graphId: string;
|
|
1127
1127
|
sourceAgentId: string;
|
|
1128
1128
|
targetAgentId: string | null;
|
|
1129
1129
|
externalAgentId: string | null;
|
|
@@ -1156,11 +1156,11 @@ declare const getAgentRelations: (db: DatabaseClient) => (params: {
|
|
|
1156
1156
|
scopes: AgentScopeConfig;
|
|
1157
1157
|
}) => Promise<{
|
|
1158
1158
|
tenantId: string;
|
|
1159
|
+
projectId: string;
|
|
1159
1160
|
id: string;
|
|
1161
|
+
graphId: string;
|
|
1160
1162
|
createdAt: string;
|
|
1161
1163
|
updatedAt: string;
|
|
1162
|
-
projectId: string;
|
|
1163
|
-
graphId: string;
|
|
1164
1164
|
sourceAgentId: string;
|
|
1165
1165
|
targetAgentId: string | null;
|
|
1166
1166
|
externalAgentId: string | null;
|
|
@@ -1170,11 +1170,11 @@ declare const getAgentRelationsByGraph: (db: DatabaseClient) => (params: {
|
|
|
1170
1170
|
scopes: GraphScopeConfig;
|
|
1171
1171
|
}) => Promise<{
|
|
1172
1172
|
tenantId: string;
|
|
1173
|
+
projectId: string;
|
|
1173
1174
|
id: string;
|
|
1175
|
+
graphId: string;
|
|
1174
1176
|
createdAt: string;
|
|
1175
1177
|
updatedAt: string;
|
|
1176
|
-
projectId: string;
|
|
1177
|
-
graphId: string;
|
|
1178
1178
|
sourceAgentId: string;
|
|
1179
1179
|
targetAgentId: string | null;
|
|
1180
1180
|
externalAgentId: string | null;
|
|
@@ -1275,11 +1275,11 @@ declare const getRelatedAgentsForGraph: (db: DatabaseClient) => (params: {
|
|
|
1275
1275
|
}>;
|
|
1276
1276
|
declare const createAgentRelation: (db: DatabaseClient) => (params: AgentRelationInsert) => Promise<{
|
|
1277
1277
|
tenantId: string;
|
|
1278
|
+
projectId: string;
|
|
1278
1279
|
id: string;
|
|
1280
|
+
graphId: string;
|
|
1279
1281
|
createdAt: string;
|
|
1280
1282
|
updatedAt: string;
|
|
1281
|
-
projectId: string;
|
|
1282
|
-
graphId: string;
|
|
1283
1283
|
sourceAgentId: string;
|
|
1284
1284
|
targetAgentId: string | null;
|
|
1285
1285
|
externalAgentId: string | null;
|
|
@@ -1296,11 +1296,11 @@ declare const getAgentRelationByParams: (db: DatabaseClient) => (params: {
|
|
|
1296
1296
|
relationType: string;
|
|
1297
1297
|
}) => Promise<{
|
|
1298
1298
|
tenantId: string;
|
|
1299
|
+
projectId: string;
|
|
1299
1300
|
id: string;
|
|
1301
|
+
graphId: string;
|
|
1300
1302
|
createdAt: string;
|
|
1301
1303
|
updatedAt: string;
|
|
1302
|
-
projectId: string;
|
|
1303
|
-
graphId: string;
|
|
1304
1304
|
sourceAgentId: string;
|
|
1305
1305
|
targetAgentId: string | null;
|
|
1306
1306
|
externalAgentId: string | null;
|
|
@@ -1311,11 +1311,11 @@ declare const getAgentRelationByParams: (db: DatabaseClient) => (params: {
|
|
|
1311
1311
|
*/
|
|
1312
1312
|
declare const upsertAgentRelation: (db: DatabaseClient) => (params: AgentRelationInsert) => Promise<{
|
|
1313
1313
|
tenantId: string;
|
|
1314
|
+
projectId: string;
|
|
1314
1315
|
id: string;
|
|
1316
|
+
graphId: string;
|
|
1315
1317
|
createdAt: string;
|
|
1316
1318
|
updatedAt: string;
|
|
1317
|
-
projectId: string;
|
|
1318
|
-
graphId: string;
|
|
1319
1319
|
sourceAgentId: string;
|
|
1320
1320
|
targetAgentId: string | null;
|
|
1321
1321
|
externalAgentId: string | null;
|
|
@@ -1323,11 +1323,11 @@ declare const upsertAgentRelation: (db: DatabaseClient) => (params: AgentRelatio
|
|
|
1323
1323
|
}>;
|
|
1324
1324
|
declare const createExternalAgentRelation: (db: DatabaseClient) => (params: ExternalAgentRelationInsert) => Promise<{
|
|
1325
1325
|
tenantId: string;
|
|
1326
|
+
projectId: string;
|
|
1326
1327
|
id: string;
|
|
1328
|
+
graphId: string;
|
|
1327
1329
|
createdAt: string;
|
|
1328
1330
|
updatedAt: string;
|
|
1329
|
-
projectId: string;
|
|
1330
|
-
graphId: string;
|
|
1331
1331
|
sourceAgentId: string;
|
|
1332
1332
|
targetAgentId: string | null;
|
|
1333
1333
|
externalAgentId: string | null;
|
|
@@ -1339,11 +1339,11 @@ declare const updateAgentRelation: (db: DatabaseClient) => (params: {
|
|
|
1339
1339
|
data: AgentRelationUpdate;
|
|
1340
1340
|
}) => Promise<{
|
|
1341
1341
|
tenantId: string;
|
|
1342
|
+
projectId: string;
|
|
1342
1343
|
id: string;
|
|
1344
|
+
graphId: string;
|
|
1343
1345
|
createdAt: string;
|
|
1344
1346
|
updatedAt: string;
|
|
1345
|
-
projectId: string;
|
|
1346
|
-
graphId: string;
|
|
1347
1347
|
sourceAgentId: string;
|
|
1348
1348
|
targetAgentId: string | null;
|
|
1349
1349
|
externalAgentId: string | null;
|
|
@@ -1367,15 +1367,15 @@ declare const createAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
|
1367
1367
|
};
|
|
1368
1368
|
}) => Promise<{
|
|
1369
1369
|
tenantId: string;
|
|
1370
|
+
projectId: string;
|
|
1370
1371
|
id: string;
|
|
1372
|
+
graphId: string;
|
|
1371
1373
|
createdAt: string;
|
|
1372
1374
|
updatedAt: string;
|
|
1373
|
-
projectId: string;
|
|
1374
|
-
graphId: string;
|
|
1375
1375
|
headers: Record<string, string> | null;
|
|
1376
|
-
agentId: string;
|
|
1377
1376
|
toolId: string;
|
|
1378
1377
|
selectedTools: string[] | null;
|
|
1378
|
+
agentId: string;
|
|
1379
1379
|
}>;
|
|
1380
1380
|
declare const updateAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
1381
1381
|
scopes: GraphScopeConfig;
|
|
@@ -1383,15 +1383,15 @@ declare const updateAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
|
1383
1383
|
data: AgentToolRelationUpdate;
|
|
1384
1384
|
}) => Promise<{
|
|
1385
1385
|
tenantId: string;
|
|
1386
|
+
projectId: string;
|
|
1386
1387
|
id: string;
|
|
1388
|
+
graphId: string;
|
|
1387
1389
|
createdAt: string;
|
|
1388
1390
|
updatedAt: string;
|
|
1389
|
-
projectId: string;
|
|
1390
|
-
graphId: string;
|
|
1391
1391
|
headers: Record<string, string> | null;
|
|
1392
|
-
agentId: string;
|
|
1393
1392
|
toolId: string;
|
|
1394
1393
|
selectedTools: string[] | null;
|
|
1394
|
+
agentId: string;
|
|
1395
1395
|
}>;
|
|
1396
1396
|
declare const deleteAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
1397
1397
|
scopes: GraphScopeConfig;
|
|
@@ -1405,15 +1405,15 @@ declare const getAgentToolRelationById: (db: DatabaseClient) => (params: {
|
|
|
1405
1405
|
relationId: string;
|
|
1406
1406
|
}) => Promise<{
|
|
1407
1407
|
tenantId: string;
|
|
1408
|
+
projectId: string;
|
|
1408
1409
|
id: string;
|
|
1410
|
+
graphId: string;
|
|
1409
1411
|
createdAt: string;
|
|
1410
1412
|
updatedAt: string;
|
|
1411
|
-
projectId: string;
|
|
1412
|
-
graphId: string;
|
|
1413
1413
|
headers: Record<string, string> | null;
|
|
1414
|
-
agentId: string;
|
|
1415
1414
|
toolId: string;
|
|
1416
1415
|
selectedTools: string[] | null;
|
|
1416
|
+
agentId: string;
|
|
1417
1417
|
} | undefined>;
|
|
1418
1418
|
declare const getAgentToolRelationByAgent: (db: DatabaseClient) => (params: {
|
|
1419
1419
|
scopes: AgentScopeConfig;
|
|
@@ -1583,9 +1583,15 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
|
|
|
1583
1583
|
agentId: string;
|
|
1584
1584
|
}) => Promise<{
|
|
1585
1585
|
tenantId: string;
|
|
1586
|
+
projectId: string;
|
|
1586
1587
|
id: string;
|
|
1587
1588
|
name: string;
|
|
1588
1589
|
description: string;
|
|
1590
|
+
prompt: string;
|
|
1591
|
+
graphId: string;
|
|
1592
|
+
createdAt: string;
|
|
1593
|
+
updatedAt: string;
|
|
1594
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
1589
1595
|
models: {
|
|
1590
1596
|
base?: {
|
|
1591
1597
|
model?: string | undefined;
|
|
@@ -1603,20 +1609,20 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
|
|
|
1603
1609
|
stopWhen: {
|
|
1604
1610
|
stepCountIs?: number | undefined;
|
|
1605
1611
|
} | null;
|
|
1606
|
-
createdAt: string;
|
|
1607
|
-
updatedAt: string;
|
|
1608
|
-
projectId: string;
|
|
1609
|
-
prompt: string;
|
|
1610
|
-
graphId: string;
|
|
1611
|
-
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
1612
1612
|
} | undefined>;
|
|
1613
1613
|
declare const listAgents: (db: DatabaseClient) => (params: {
|
|
1614
1614
|
scopes: GraphScopeConfig;
|
|
1615
1615
|
}) => Promise<{
|
|
1616
1616
|
tenantId: string;
|
|
1617
|
+
projectId: string;
|
|
1617
1618
|
id: string;
|
|
1618
1619
|
name: string;
|
|
1619
1620
|
description: string;
|
|
1621
|
+
prompt: string;
|
|
1622
|
+
graphId: string;
|
|
1623
|
+
createdAt: string;
|
|
1624
|
+
updatedAt: string;
|
|
1625
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
1620
1626
|
models: {
|
|
1621
1627
|
base?: {
|
|
1622
1628
|
model?: string | undefined;
|
|
@@ -1634,12 +1640,6 @@ declare const listAgents: (db: DatabaseClient) => (params: {
|
|
|
1634
1640
|
stopWhen: {
|
|
1635
1641
|
stepCountIs?: number | undefined;
|
|
1636
1642
|
} | null;
|
|
1637
|
-
createdAt: string;
|
|
1638
|
-
updatedAt: string;
|
|
1639
|
-
projectId: string;
|
|
1640
|
-
prompt: string;
|
|
1641
|
-
graphId: string;
|
|
1642
|
-
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
1643
1643
|
}[]>;
|
|
1644
1644
|
declare const listAgentsPaginated: (db: DatabaseClient) => (params: {
|
|
1645
1645
|
scopes: GraphScopeConfig;
|
|
@@ -1683,9 +1683,15 @@ declare const listAgentsPaginated: (db: DatabaseClient) => (params: {
|
|
|
1683
1683
|
}>;
|
|
1684
1684
|
declare const createAgent: (db: DatabaseClient) => (params: AgentInsert) => Promise<{
|
|
1685
1685
|
tenantId: string;
|
|
1686
|
+
projectId: string;
|
|
1686
1687
|
id: string;
|
|
1687
1688
|
name: string;
|
|
1688
1689
|
description: string;
|
|
1690
|
+
prompt: string;
|
|
1691
|
+
graphId: string;
|
|
1692
|
+
createdAt: string;
|
|
1693
|
+
updatedAt: string;
|
|
1694
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
1689
1695
|
models: {
|
|
1690
1696
|
base?: {
|
|
1691
1697
|
model?: string | undefined;
|
|
@@ -1703,12 +1709,6 @@ declare const createAgent: (db: DatabaseClient) => (params: AgentInsert) => Prom
|
|
|
1703
1709
|
stopWhen: {
|
|
1704
1710
|
stepCountIs?: number | undefined;
|
|
1705
1711
|
} | null;
|
|
1706
|
-
createdAt: string;
|
|
1707
|
-
updatedAt: string;
|
|
1708
|
-
projectId: string;
|
|
1709
|
-
prompt: string;
|
|
1710
|
-
graphId: string;
|
|
1711
|
-
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
1712
1712
|
}>;
|
|
1713
1713
|
declare const updateAgent: (db: DatabaseClient) => (params: {
|
|
1714
1714
|
scopes: GraphScopeConfig;
|
|
@@ -1716,9 +1716,15 @@ declare const updateAgent: (db: DatabaseClient) => (params: {
|
|
|
1716
1716
|
data: AgentUpdate;
|
|
1717
1717
|
}) => Promise<{
|
|
1718
1718
|
tenantId: string;
|
|
1719
|
+
projectId: string;
|
|
1719
1720
|
id: string;
|
|
1720
1721
|
name: string;
|
|
1721
1722
|
description: string;
|
|
1723
|
+
prompt: string;
|
|
1724
|
+
graphId: string;
|
|
1725
|
+
createdAt: string;
|
|
1726
|
+
updatedAt: string;
|
|
1727
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
1722
1728
|
models: {
|
|
1723
1729
|
base?: {
|
|
1724
1730
|
model?: string | undefined;
|
|
@@ -1736,12 +1742,6 @@ declare const updateAgent: (db: DatabaseClient) => (params: {
|
|
|
1736
1742
|
stopWhen: {
|
|
1737
1743
|
stepCountIs?: number | undefined;
|
|
1738
1744
|
} | null;
|
|
1739
|
-
createdAt: string;
|
|
1740
|
-
updatedAt: string;
|
|
1741
|
-
projectId: string;
|
|
1742
|
-
prompt: string;
|
|
1743
|
-
graphId: string;
|
|
1744
|
-
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
1745
1745
|
}>;
|
|
1746
1746
|
/**
|
|
1747
1747
|
* Upsert agent (create if it doesn't exist, update if it does)
|
|
@@ -1791,48 +1791,48 @@ declare const getApiKeyById: (db: DatabaseClient) => (params: {
|
|
|
1791
1791
|
id: string;
|
|
1792
1792
|
}) => Promise<{
|
|
1793
1793
|
tenantId: string;
|
|
1794
|
+
projectId: string;
|
|
1794
1795
|
id: string;
|
|
1795
1796
|
name: string | null;
|
|
1796
|
-
createdAt: string;
|
|
1797
|
-
updatedAt: string;
|
|
1798
|
-
projectId: string;
|
|
1799
1797
|
graphId: string;
|
|
1800
1798
|
publicId: string;
|
|
1801
1799
|
keyHash: string;
|
|
1802
1800
|
keyPrefix: string;
|
|
1803
1801
|
lastUsedAt: string | null;
|
|
1804
1802
|
expiresAt: string | null;
|
|
1803
|
+
createdAt: string;
|
|
1804
|
+
updatedAt: string;
|
|
1805
1805
|
} | undefined>;
|
|
1806
1806
|
declare const getApiKeyByPublicId: (db: DatabaseClient) => (publicId: string) => Promise<{
|
|
1807
1807
|
tenantId: string;
|
|
1808
|
+
projectId: string;
|
|
1808
1809
|
id: string;
|
|
1809
1810
|
name: string | null;
|
|
1810
|
-
createdAt: string;
|
|
1811
|
-
updatedAt: string;
|
|
1812
|
-
projectId: string;
|
|
1813
1811
|
graphId: string;
|
|
1814
1812
|
publicId: string;
|
|
1815
1813
|
keyHash: string;
|
|
1816
1814
|
keyPrefix: string;
|
|
1817
1815
|
lastUsedAt: string | null;
|
|
1818
1816
|
expiresAt: string | null;
|
|
1817
|
+
createdAt: string;
|
|
1818
|
+
updatedAt: string;
|
|
1819
1819
|
} | undefined>;
|
|
1820
1820
|
declare const listApiKeys: (db: DatabaseClient) => (params: {
|
|
1821
1821
|
scopes: ProjectScopeConfig;
|
|
1822
1822
|
graphId?: string;
|
|
1823
1823
|
}) => Promise<{
|
|
1824
1824
|
tenantId: string;
|
|
1825
|
+
projectId: string;
|
|
1825
1826
|
id: string;
|
|
1826
1827
|
name: string | null;
|
|
1827
|
-
createdAt: string;
|
|
1828
|
-
updatedAt: string;
|
|
1829
|
-
projectId: string;
|
|
1830
1828
|
graphId: string;
|
|
1831
1829
|
publicId: string;
|
|
1832
1830
|
keyHash: string;
|
|
1833
1831
|
keyPrefix: string;
|
|
1834
1832
|
lastUsedAt: string | null;
|
|
1835
1833
|
expiresAt: string | null;
|
|
1834
|
+
createdAt: string;
|
|
1835
|
+
updatedAt: string;
|
|
1836
1836
|
}[]>;
|
|
1837
1837
|
declare const listApiKeysPaginated: (db: DatabaseClient) => (params: {
|
|
1838
1838
|
scopes: ProjectScopeConfig;
|
|
@@ -1849,17 +1849,17 @@ declare const listApiKeysPaginated: (db: DatabaseClient) => (params: {
|
|
|
1849
1849
|
}>;
|
|
1850
1850
|
declare const createApiKey: (db: DatabaseClient) => (params: ApiKeyInsert) => Promise<{
|
|
1851
1851
|
tenantId: string;
|
|
1852
|
+
projectId: string;
|
|
1852
1853
|
id: string;
|
|
1853
1854
|
name: string | null;
|
|
1854
|
-
createdAt: string;
|
|
1855
|
-
updatedAt: string;
|
|
1856
|
-
projectId: string;
|
|
1857
1855
|
graphId: string;
|
|
1858
1856
|
publicId: string;
|
|
1859
1857
|
keyHash: string;
|
|
1860
1858
|
keyPrefix: string;
|
|
1861
1859
|
lastUsedAt: string | null;
|
|
1862
1860
|
expiresAt: string | null;
|
|
1861
|
+
createdAt: string;
|
|
1862
|
+
updatedAt: string;
|
|
1863
1863
|
}>;
|
|
1864
1864
|
declare const updateApiKey: (db: DatabaseClient) => (params: {
|
|
1865
1865
|
scopes: ProjectScopeConfig;
|
|
@@ -1867,17 +1867,17 @@ declare const updateApiKey: (db: DatabaseClient) => (params: {
|
|
|
1867
1867
|
data: ApiKeyUpdate;
|
|
1868
1868
|
}) => Promise<{
|
|
1869
1869
|
tenantId: string;
|
|
1870
|
+
projectId: string;
|
|
1870
1871
|
id: string;
|
|
1871
1872
|
name: string | null;
|
|
1872
|
-
createdAt: string;
|
|
1873
|
-
updatedAt: string;
|
|
1874
|
-
projectId: string;
|
|
1875
1873
|
graphId: string;
|
|
1876
1874
|
publicId: string;
|
|
1877
1875
|
keyHash: string;
|
|
1878
1876
|
keyPrefix: string;
|
|
1879
1877
|
lastUsedAt: string | null;
|
|
1880
1878
|
expiresAt: string | null;
|
|
1879
|
+
createdAt: string;
|
|
1880
|
+
updatedAt: string;
|
|
1881
1881
|
}>;
|
|
1882
1882
|
declare const deleteApiKey: (db: DatabaseClient) => (params: {
|
|
1883
1883
|
scopes: ProjectScopeConfig;
|
|
@@ -1907,12 +1907,12 @@ declare const getArtifactComponentById: (db: DatabaseClient) => (params: {
|
|
|
1907
1907
|
id: string;
|
|
1908
1908
|
}) => Promise<{
|
|
1909
1909
|
tenantId: string;
|
|
1910
|
+
projectId: string;
|
|
1910
1911
|
id: string;
|
|
1911
1912
|
name: string;
|
|
1912
1913
|
description: string;
|
|
1913
1914
|
createdAt: string;
|
|
1914
1915
|
updatedAt: string;
|
|
1915
|
-
projectId: string;
|
|
1916
1916
|
summaryProps: Record<string, unknown> | null;
|
|
1917
1917
|
fullProps: Record<string, unknown> | null;
|
|
1918
1918
|
} | undefined>;
|
|
@@ -1943,12 +1943,12 @@ declare const listArtifactComponentsPaginated: (db: DatabaseClient) => (params:
|
|
|
1943
1943
|
}>;
|
|
1944
1944
|
declare const createArtifactComponent: (db: DatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
|
|
1945
1945
|
tenantId: string;
|
|
1946
|
+
projectId: string;
|
|
1946
1947
|
id: string;
|
|
1947
1948
|
name: string;
|
|
1948
1949
|
description: string;
|
|
1949
1950
|
createdAt: string;
|
|
1950
1951
|
updatedAt: string;
|
|
1951
|
-
projectId: string;
|
|
1952
1952
|
summaryProps: Record<string, unknown> | null;
|
|
1953
1953
|
fullProps: Record<string, unknown> | null;
|
|
1954
1954
|
}>;
|
|
@@ -1958,12 +1958,12 @@ declare const updateArtifactComponent: (db: DatabaseClient) => (params: {
|
|
|
1958
1958
|
data: ArtifactComponentUpdate;
|
|
1959
1959
|
}) => Promise<{
|
|
1960
1960
|
tenantId: string;
|
|
1961
|
+
projectId: string;
|
|
1961
1962
|
id: string;
|
|
1962
1963
|
name: string;
|
|
1963
1964
|
description: string;
|
|
1964
1965
|
createdAt: string;
|
|
1965
1966
|
updatedAt: string;
|
|
1966
|
-
projectId: string;
|
|
1967
1967
|
summaryProps: Record<string, unknown> | null;
|
|
1968
1968
|
fullProps: Record<string, unknown> | null;
|
|
1969
1969
|
}>;
|
|
@@ -1989,10 +1989,10 @@ declare const associateArtifactComponentWithAgent: (db: DatabaseClient) => (para
|
|
|
1989
1989
|
artifactComponentId: string;
|
|
1990
1990
|
}) => Promise<{
|
|
1991
1991
|
tenantId: string;
|
|
1992
|
-
id: string;
|
|
1993
|
-
createdAt: string;
|
|
1994
1992
|
projectId: string;
|
|
1993
|
+
id: string;
|
|
1995
1994
|
graphId: string;
|
|
1995
|
+
createdAt: string;
|
|
1996
1996
|
agentId: string;
|
|
1997
1997
|
artifactComponentId: string;
|
|
1998
1998
|
}>;
|
|
@@ -2032,10 +2032,10 @@ declare const upsertAgentArtifactComponentRelation: (db: DatabaseClient) => (par
|
|
|
2032
2032
|
artifactComponentId: string;
|
|
2033
2033
|
}) => Promise<{
|
|
2034
2034
|
tenantId: string;
|
|
2035
|
-
id: string;
|
|
2036
|
-
createdAt: string;
|
|
2037
2035
|
projectId: string;
|
|
2036
|
+
id: string;
|
|
2038
2037
|
graphId: string;
|
|
2038
|
+
createdAt: string;
|
|
2039
2039
|
agentId: string;
|
|
2040
2040
|
artifactComponentId: string;
|
|
2041
2041
|
} | null>;
|
|
@@ -2116,12 +2116,12 @@ declare const getContextConfigById: (db: DatabaseClient) => (params: {
|
|
|
2116
2116
|
id: string;
|
|
2117
2117
|
}) => Promise<{
|
|
2118
2118
|
tenantId: string;
|
|
2119
|
+
projectId: string;
|
|
2119
2120
|
id: string;
|
|
2120
2121
|
name: string;
|
|
2121
2122
|
description: string;
|
|
2122
2123
|
createdAt: string;
|
|
2123
2124
|
updatedAt: string;
|
|
2124
|
-
projectId: string;
|
|
2125
2125
|
requestContextSchema: unknown;
|
|
2126
2126
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
2127
2127
|
} | undefined>;
|
|
@@ -2129,12 +2129,12 @@ declare const listContextConfigs: (db: DatabaseClient) => (params: {
|
|
|
2129
2129
|
scopes: ProjectScopeConfig;
|
|
2130
2130
|
}) => Promise<{
|
|
2131
2131
|
tenantId: string;
|
|
2132
|
+
projectId: string;
|
|
2132
2133
|
id: string;
|
|
2133
2134
|
name: string;
|
|
2134
2135
|
description: string;
|
|
2135
2136
|
createdAt: string;
|
|
2136
2137
|
updatedAt: string;
|
|
2137
|
-
projectId: string;
|
|
2138
2138
|
requestContextSchema: unknown;
|
|
2139
2139
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
2140
2140
|
}[]>;
|
|
@@ -2152,12 +2152,12 @@ declare const listContextConfigsPaginated: (db: DatabaseClient) => (params: {
|
|
|
2152
2152
|
}>;
|
|
2153
2153
|
declare const createContextConfig: (db: DatabaseClient) => (params: ContextConfigInsert) => Promise<{
|
|
2154
2154
|
tenantId: string;
|
|
2155
|
+
projectId: string;
|
|
2155
2156
|
id: string;
|
|
2156
2157
|
name: string;
|
|
2157
2158
|
description: string;
|
|
2158
2159
|
createdAt: string;
|
|
2159
2160
|
updatedAt: string;
|
|
2160
|
-
projectId: string;
|
|
2161
2161
|
requestContextSchema: unknown;
|
|
2162
2162
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
2163
2163
|
}>;
|
|
@@ -2167,12 +2167,12 @@ declare const updateContextConfig: (db: DatabaseClient) => (params: {
|
|
|
2167
2167
|
data: Partial<ContextConfigUpdate>;
|
|
2168
2168
|
}) => Promise<{
|
|
2169
2169
|
tenantId: string;
|
|
2170
|
+
projectId: string;
|
|
2170
2171
|
id: string;
|
|
2171
2172
|
name: string;
|
|
2172
2173
|
description: string;
|
|
2173
2174
|
createdAt: string;
|
|
2174
2175
|
updatedAt: string;
|
|
2175
|
-
projectId: string;
|
|
2176
2176
|
requestContextSchema: unknown;
|
|
2177
2177
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
2178
2178
|
}>;
|
|
@@ -2192,12 +2192,12 @@ declare const getContextConfigsByName: (db: DatabaseClient) => (params: {
|
|
|
2192
2192
|
name: string;
|
|
2193
2193
|
}) => Promise<{
|
|
2194
2194
|
tenantId: string;
|
|
2195
|
+
projectId: string;
|
|
2195
2196
|
id: string;
|
|
2196
2197
|
name: string;
|
|
2197
2198
|
description: string;
|
|
2198
2199
|
createdAt: string;
|
|
2199
2200
|
updatedAt: string;
|
|
2200
|
-
projectId: string;
|
|
2201
2201
|
requestContextSchema: unknown;
|
|
2202
2202
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
2203
2203
|
}[]>;
|
|
@@ -2208,12 +2208,12 @@ declare const upsertContextConfig: (db: DatabaseClient) => (params: {
|
|
|
2208
2208
|
data: ContextConfigInsert;
|
|
2209
2209
|
}) => Promise<{
|
|
2210
2210
|
tenantId: string;
|
|
2211
|
+
projectId: string;
|
|
2211
2212
|
id: string;
|
|
2212
2213
|
name: string;
|
|
2213
2214
|
description: string;
|
|
2214
2215
|
createdAt: string;
|
|
2215
2216
|
updatedAt: string;
|
|
2216
|
-
projectId: string;
|
|
2217
2217
|
requestContextSchema: unknown;
|
|
2218
2218
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
2219
2219
|
}>;
|
|
@@ -2228,14 +2228,14 @@ declare const listConversations: (db: DatabaseClient) => (params: {
|
|
|
2228
2228
|
}>;
|
|
2229
2229
|
declare const createConversation: (db: DatabaseClient) => (params: ConversationInsert) => Promise<{
|
|
2230
2230
|
tenantId: string;
|
|
2231
|
+
projectId: string;
|
|
2231
2232
|
id: string;
|
|
2232
2233
|
createdAt: string;
|
|
2233
2234
|
updatedAt: string;
|
|
2234
|
-
|
|
2235
|
+
title: string | null;
|
|
2235
2236
|
metadata: ConversationMetadata | null;
|
|
2236
2237
|
userId: string | null;
|
|
2237
2238
|
activeAgentId: string;
|
|
2238
|
-
title: string | null;
|
|
2239
2239
|
lastContextResolution: string | null;
|
|
2240
2240
|
}>;
|
|
2241
2241
|
declare const updateConversation: (db: DatabaseClient) => (params: {
|
|
@@ -2244,14 +2244,14 @@ declare const updateConversation: (db: DatabaseClient) => (params: {
|
|
|
2244
2244
|
data: ConversationUpdate;
|
|
2245
2245
|
}) => Promise<{
|
|
2246
2246
|
tenantId: string;
|
|
2247
|
+
projectId: string;
|
|
2247
2248
|
id: string;
|
|
2248
2249
|
createdAt: string;
|
|
2249
2250
|
updatedAt: string;
|
|
2250
|
-
|
|
2251
|
+
title: string | null;
|
|
2251
2252
|
metadata: ConversationMetadata | null;
|
|
2252
2253
|
userId: string | null;
|
|
2253
2254
|
activeAgentId: string;
|
|
2254
|
-
title: string | null;
|
|
2255
2255
|
lastContextResolution: string | null;
|
|
2256
2256
|
}>;
|
|
2257
2257
|
declare const deleteConversation: (db: DatabaseClient) => (params: {
|
|
@@ -2264,14 +2264,14 @@ declare const updateConversationActiveAgent: (db: DatabaseClient) => (params: {
|
|
|
2264
2264
|
activeAgentId: string;
|
|
2265
2265
|
}) => Promise<{
|
|
2266
2266
|
tenantId: string;
|
|
2267
|
+
projectId: string;
|
|
2267
2268
|
id: string;
|
|
2268
2269
|
createdAt: string;
|
|
2269
2270
|
updatedAt: string;
|
|
2270
|
-
|
|
2271
|
+
title: string | null;
|
|
2271
2272
|
metadata: ConversationMetadata | null;
|
|
2272
2273
|
userId: string | null;
|
|
2273
2274
|
activeAgentId: string;
|
|
2274
|
-
title: string | null;
|
|
2275
2275
|
lastContextResolution: string | null;
|
|
2276
2276
|
}>;
|
|
2277
2277
|
declare const getConversation: (db: DatabaseClient) => (params: {
|
|
@@ -2279,14 +2279,14 @@ declare const getConversation: (db: DatabaseClient) => (params: {
|
|
|
2279
2279
|
conversationId: string;
|
|
2280
2280
|
}) => Promise<{
|
|
2281
2281
|
tenantId: string;
|
|
2282
|
+
projectId: string;
|
|
2282
2283
|
id: string;
|
|
2283
2284
|
createdAt: string;
|
|
2284
2285
|
updatedAt: string;
|
|
2285
|
-
|
|
2286
|
+
title: string | null;
|
|
2286
2287
|
metadata: ConversationMetadata | null;
|
|
2287
2288
|
userId: string | null;
|
|
2288
2289
|
activeAgentId: string;
|
|
2289
|
-
title: string | null;
|
|
2290
2290
|
lastContextResolution: string | null;
|
|
2291
2291
|
} | undefined>;
|
|
2292
2292
|
declare const createOrGetConversation: (db: DatabaseClient) => (input: ConversationInsert) => Promise<{
|
|
@@ -2317,14 +2317,14 @@ declare const getActiveAgentForConversation: (db: DatabaseClient) => (params: {
|
|
|
2317
2317
|
conversationId: string;
|
|
2318
2318
|
}) => Promise<{
|
|
2319
2319
|
tenantId: string;
|
|
2320
|
+
projectId: string;
|
|
2320
2321
|
id: string;
|
|
2321
2322
|
createdAt: string;
|
|
2322
2323
|
updatedAt: string;
|
|
2323
|
-
|
|
2324
|
+
title: string | null;
|
|
2324
2325
|
metadata: ConversationMetadata | null;
|
|
2325
2326
|
userId: string | null;
|
|
2326
2327
|
activeAgentId: string;
|
|
2327
|
-
title: string | null;
|
|
2328
2328
|
lastContextResolution: string | null;
|
|
2329
2329
|
} | undefined>;
|
|
2330
2330
|
/**
|
|
@@ -2486,10 +2486,10 @@ declare const associateDataComponentWithAgent: (db: DatabaseClient) => (params:
|
|
|
2486
2486
|
dataComponentId: string;
|
|
2487
2487
|
}) => Promise<{
|
|
2488
2488
|
tenantId: string;
|
|
2489
|
-
id: string;
|
|
2490
|
-
createdAt: string;
|
|
2491
2489
|
projectId: string;
|
|
2490
|
+
id: string;
|
|
2492
2491
|
graphId: string;
|
|
2492
|
+
createdAt: string;
|
|
2493
2493
|
agentId: string;
|
|
2494
2494
|
dataComponentId: string;
|
|
2495
2495
|
}>;
|
|
@@ -2528,10 +2528,10 @@ declare const upsertAgentDataComponentRelation: (db: DatabaseClient) => (params:
|
|
|
2528
2528
|
dataComponentId: string;
|
|
2529
2529
|
}) => Promise<{
|
|
2530
2530
|
tenantId: string;
|
|
2531
|
-
id: string;
|
|
2532
|
-
createdAt: string;
|
|
2533
2531
|
projectId: string;
|
|
2532
|
+
id: string;
|
|
2534
2533
|
graphId: string;
|
|
2534
|
+
createdAt: string;
|
|
2535
2535
|
agentId: string;
|
|
2536
2536
|
dataComponentId: string;
|
|
2537
2537
|
} | null>;
|
|
@@ -2723,19 +2723,19 @@ declare const getMessageById: (db: DatabaseClient) => (params: {
|
|
|
2723
2723
|
messageId: string;
|
|
2724
2724
|
}) => Promise<{
|
|
2725
2725
|
tenantId: string;
|
|
2726
|
+
projectId: string;
|
|
2726
2727
|
id: string;
|
|
2727
2728
|
createdAt: string;
|
|
2728
2729
|
updatedAt: string;
|
|
2729
|
-
projectId: string;
|
|
2730
|
-
conversationId: string;
|
|
2731
2730
|
metadata: MessageMetadata | null;
|
|
2732
|
-
agentId: string | null;
|
|
2733
2731
|
role: string;
|
|
2732
|
+
content: MessageContent;
|
|
2733
|
+
conversationId: string;
|
|
2734
|
+
agentId: string | null;
|
|
2734
2735
|
fromAgentId: string | null;
|
|
2735
2736
|
toAgentId: string | null;
|
|
2736
2737
|
fromExternalAgentId: string | null;
|
|
2737
2738
|
toExternalAgentId: string | null;
|
|
2738
|
-
content: MessageContent;
|
|
2739
2739
|
visibility: string;
|
|
2740
2740
|
messageType: string;
|
|
2741
2741
|
taskId: string | null;
|
|
@@ -2849,19 +2849,19 @@ declare const getVisibleMessages: (db: DatabaseClient) => (params: {
|
|
|
2849
2849
|
}[]>;
|
|
2850
2850
|
declare const createMessage: (db: DatabaseClient) => (params: MessageInsert) => Promise<{
|
|
2851
2851
|
tenantId: string;
|
|
2852
|
+
projectId: string;
|
|
2852
2853
|
id: string;
|
|
2853
2854
|
createdAt: string;
|
|
2854
2855
|
updatedAt: string;
|
|
2855
|
-
projectId: string;
|
|
2856
|
-
conversationId: string;
|
|
2857
2856
|
metadata: MessageMetadata | null;
|
|
2858
|
-
agentId: string | null;
|
|
2859
2857
|
role: string;
|
|
2858
|
+
content: MessageContent;
|
|
2859
|
+
conversationId: string;
|
|
2860
|
+
agentId: string | null;
|
|
2860
2861
|
fromAgentId: string | null;
|
|
2861
2862
|
toAgentId: string | null;
|
|
2862
2863
|
fromExternalAgentId: string | null;
|
|
2863
2864
|
toExternalAgentId: string | null;
|
|
2864
|
-
content: MessageContent;
|
|
2865
2865
|
visibility: string;
|
|
2866
2866
|
messageType: string;
|
|
2867
2867
|
taskId: string | null;
|
|
@@ -2875,19 +2875,19 @@ declare const updateMessage: (db: DatabaseClient) => (params: {
|
|
|
2875
2875
|
data: MessageUpdate;
|
|
2876
2876
|
}) => Promise<{
|
|
2877
2877
|
tenantId: string;
|
|
2878
|
+
projectId: string;
|
|
2878
2879
|
id: string;
|
|
2879
2880
|
createdAt: string;
|
|
2880
2881
|
updatedAt: string;
|
|
2881
|
-
projectId: string;
|
|
2882
|
-
conversationId: string;
|
|
2883
2882
|
metadata: MessageMetadata | null;
|
|
2884
|
-
agentId: string | null;
|
|
2885
2883
|
role: string;
|
|
2884
|
+
content: MessageContent;
|
|
2885
|
+
conversationId: string;
|
|
2886
|
+
agentId: string | null;
|
|
2886
2887
|
fromAgentId: string | null;
|
|
2887
2888
|
toAgentId: string | null;
|
|
2888
2889
|
fromExternalAgentId: string | null;
|
|
2889
2890
|
toExternalAgentId: string | null;
|
|
2890
|
-
content: MessageContent;
|
|
2891
2891
|
visibility: string;
|
|
2892
2892
|
messageType: string;
|
|
2893
2893
|
taskId: string | null;
|
|
@@ -2900,19 +2900,19 @@ declare const deleteMessage: (db: DatabaseClient) => (params: {
|
|
|
2900
2900
|
messageId: string;
|
|
2901
2901
|
}) => Promise<{
|
|
2902
2902
|
tenantId: string;
|
|
2903
|
+
projectId: string;
|
|
2903
2904
|
id: string;
|
|
2904
2905
|
createdAt: string;
|
|
2905
2906
|
updatedAt: string;
|
|
2906
|
-
projectId: string;
|
|
2907
|
-
conversationId: string;
|
|
2908
2907
|
metadata: MessageMetadata | null;
|
|
2909
|
-
agentId: string | null;
|
|
2910
2908
|
role: string;
|
|
2909
|
+
content: MessageContent;
|
|
2910
|
+
conversationId: string;
|
|
2911
|
+
agentId: string | null;
|
|
2911
2912
|
fromAgentId: string | null;
|
|
2912
2913
|
toAgentId: string | null;
|
|
2913
2914
|
fromExternalAgentId: string | null;
|
|
2914
2915
|
toExternalAgentId: string | null;
|
|
2915
|
-
content: MessageContent;
|
|
2916
2916
|
visibility: string;
|
|
2917
2917
|
messageType: string;
|
|
2918
2918
|
taskId: string | null;
|
|
@@ -3021,13 +3021,13 @@ declare const deleteProject: (db: DatabaseClient) => (params: {
|
|
|
3021
3021
|
|
|
3022
3022
|
declare const createTask: (db: DatabaseClient) => (params: TaskInsert) => Promise<{
|
|
3023
3023
|
tenantId: string;
|
|
3024
|
+
projectId: string;
|
|
3024
3025
|
id: string;
|
|
3025
3026
|
createdAt: string;
|
|
3026
3027
|
updatedAt: string;
|
|
3027
|
-
projectId: string;
|
|
3028
|
-
contextId: string;
|
|
3029
|
-
status: string;
|
|
3030
3028
|
metadata: TaskMetadataConfig | null;
|
|
3029
|
+
status: string;
|
|
3030
|
+
contextId: string;
|
|
3031
3031
|
agentId: string;
|
|
3032
3032
|
}>;
|
|
3033
3033
|
declare const getTask: (db: DatabaseClient) => (params: {
|
|
@@ -3041,13 +3041,13 @@ declare const updateTask: (db: DatabaseClient) => (params: {
|
|
|
3041
3041
|
};
|
|
3042
3042
|
}) => Promise<{
|
|
3043
3043
|
tenantId: string;
|
|
3044
|
+
projectId: string;
|
|
3044
3045
|
id: string;
|
|
3045
3046
|
createdAt: string;
|
|
3046
3047
|
updatedAt: string;
|
|
3047
|
-
projectId: string;
|
|
3048
|
-
contextId: string;
|
|
3049
|
-
status: string;
|
|
3050
3048
|
metadata: TaskMetadataConfig | null;
|
|
3049
|
+
status: string;
|
|
3050
|
+
contextId: string;
|
|
3051
3051
|
agentId: string;
|
|
3052
3052
|
}>;
|
|
3053
3053
|
declare const listTaskIdsByContextId: (db: DatabaseClient) => (params: {
|
|
@@ -3060,19 +3060,19 @@ declare const getToolById: (db: DatabaseClient) => (params: {
|
|
|
3060
3060
|
toolId: string;
|
|
3061
3061
|
}) => Promise<{
|
|
3062
3062
|
tenantId: string;
|
|
3063
|
+
projectId: string;
|
|
3063
3064
|
id: string;
|
|
3064
3065
|
name: string;
|
|
3065
|
-
createdAt: string;
|
|
3066
|
-
updatedAt: string;
|
|
3067
|
-
projectId: string;
|
|
3068
|
-
credentialReferenceId: string | null;
|
|
3069
|
-
headers: Record<string, string> | null;
|
|
3070
3066
|
config: {
|
|
3071
3067
|
type: "mcp";
|
|
3072
3068
|
mcp: ToolMcpConfig;
|
|
3073
3069
|
};
|
|
3074
|
-
|
|
3070
|
+
credentialReferenceId: string | null;
|
|
3071
|
+
createdAt: string;
|
|
3072
|
+
updatedAt: string;
|
|
3073
|
+
headers: Record<string, string> | null;
|
|
3075
3074
|
capabilities: ToolServerCapabilities | null;
|
|
3075
|
+
imageUrl: string | null;
|
|
3076
3076
|
lastError: string | null;
|
|
3077
3077
|
} | null>;
|
|
3078
3078
|
declare const listTools: (db: DatabaseClient) => (params: {
|
|
@@ -3105,19 +3105,19 @@ declare const listTools: (db: DatabaseClient) => (params: {
|
|
|
3105
3105
|
}>;
|
|
3106
3106
|
declare const createTool: (db: DatabaseClient) => (params: ToolInsert) => Promise<{
|
|
3107
3107
|
tenantId: string;
|
|
3108
|
+
projectId: string;
|
|
3108
3109
|
id: string;
|
|
3109
3110
|
name: string;
|
|
3110
|
-
createdAt: string;
|
|
3111
|
-
updatedAt: string;
|
|
3112
|
-
projectId: string;
|
|
3113
|
-
credentialReferenceId: string | null;
|
|
3114
|
-
headers: Record<string, string> | null;
|
|
3115
3111
|
config: {
|
|
3116
3112
|
type: "mcp";
|
|
3117
3113
|
mcp: ToolMcpConfig;
|
|
3118
3114
|
};
|
|
3119
|
-
|
|
3115
|
+
credentialReferenceId: string | null;
|
|
3116
|
+
createdAt: string;
|
|
3117
|
+
updatedAt: string;
|
|
3118
|
+
headers: Record<string, string> | null;
|
|
3120
3119
|
capabilities: ToolServerCapabilities | null;
|
|
3120
|
+
imageUrl: string | null;
|
|
3121
3121
|
lastError: string | null;
|
|
3122
3122
|
}>;
|
|
3123
3123
|
declare const updateTool: (db: DatabaseClient) => (params: {
|
|
@@ -3126,19 +3126,19 @@ declare const updateTool: (db: DatabaseClient) => (params: {
|
|
|
3126
3126
|
data: ToolUpdate;
|
|
3127
3127
|
}) => Promise<{
|
|
3128
3128
|
tenantId: string;
|
|
3129
|
+
projectId: string;
|
|
3129
3130
|
id: string;
|
|
3130
3131
|
name: string;
|
|
3131
|
-
createdAt: string;
|
|
3132
|
-
updatedAt: string;
|
|
3133
|
-
projectId: string;
|
|
3134
|
-
credentialReferenceId: string | null;
|
|
3135
|
-
headers: Record<string, string> | null;
|
|
3136
3132
|
config: {
|
|
3137
3133
|
type: "mcp";
|
|
3138
3134
|
mcp: ToolMcpConfig;
|
|
3139
3135
|
};
|
|
3140
|
-
|
|
3136
|
+
credentialReferenceId: string | null;
|
|
3137
|
+
createdAt: string;
|
|
3138
|
+
updatedAt: string;
|
|
3139
|
+
headers: Record<string, string> | null;
|
|
3141
3140
|
capabilities: ToolServerCapabilities | null;
|
|
3141
|
+
imageUrl: string | null;
|
|
3142
3142
|
lastError: string | null;
|
|
3143
3143
|
}>;
|
|
3144
3144
|
declare const deleteTool: (db: DatabaseClient) => (params: {
|
|
@@ -3153,15 +3153,15 @@ declare const addToolToAgent: (db: DatabaseClient) => (params: {
|
|
|
3153
3153
|
headers?: Record<string, string> | null;
|
|
3154
3154
|
}) => Promise<{
|
|
3155
3155
|
tenantId: string;
|
|
3156
|
+
projectId: string;
|
|
3156
3157
|
id: string;
|
|
3158
|
+
graphId: string;
|
|
3157
3159
|
createdAt: string;
|
|
3158
3160
|
updatedAt: string;
|
|
3159
|
-
projectId: string;
|
|
3160
|
-
graphId: string;
|
|
3161
3161
|
headers: Record<string, string> | null;
|
|
3162
|
-
agentId: string;
|
|
3163
3162
|
toolId: string;
|
|
3164
3163
|
selectedTools: string[] | null;
|
|
3164
|
+
agentId: string;
|
|
3165
3165
|
}>;
|
|
3166
3166
|
declare const removeToolFromAgent: (db: DatabaseClient) => (params: {
|
|
3167
3167
|
scopes: GraphScopeConfig;
|
|
@@ -3169,15 +3169,15 @@ declare const removeToolFromAgent: (db: DatabaseClient) => (params: {
|
|
|
3169
3169
|
toolId: string;
|
|
3170
3170
|
}) => Promise<{
|
|
3171
3171
|
tenantId: string;
|
|
3172
|
+
projectId: string;
|
|
3172
3173
|
id: string;
|
|
3174
|
+
graphId: string;
|
|
3173
3175
|
createdAt: string;
|
|
3174
3176
|
updatedAt: string;
|
|
3175
|
-
projectId: string;
|
|
3176
|
-
graphId: string;
|
|
3177
3177
|
headers: Record<string, string> | null;
|
|
3178
|
-
agentId: string;
|
|
3179
3178
|
toolId: string;
|
|
3180
3179
|
selectedTools: string[] | null;
|
|
3180
|
+
agentId: string;
|
|
3181
3181
|
}>;
|
|
3182
3182
|
/**
|
|
3183
3183
|
* Upsert agent-tool relation (create if it doesn't exist, update if it does)
|
|
@@ -3188,17 +3188,18 @@ declare const upsertAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
|
3188
3188
|
toolId: string;
|
|
3189
3189
|
selectedTools?: string[] | null;
|
|
3190
3190
|
headers?: Record<string, string> | null;
|
|
3191
|
+
relationId?: string;
|
|
3191
3192
|
}) => Promise<{
|
|
3192
3193
|
tenantId: string;
|
|
3194
|
+
projectId: string;
|
|
3193
3195
|
id: string;
|
|
3196
|
+
graphId: string;
|
|
3194
3197
|
createdAt: string;
|
|
3195
3198
|
updatedAt: string;
|
|
3196
|
-
projectId: string;
|
|
3197
|
-
graphId: string;
|
|
3198
3199
|
headers: Record<string, string> | null;
|
|
3199
|
-
agentId: string;
|
|
3200
3200
|
toolId: string;
|
|
3201
3201
|
selectedTools: string[] | null;
|
|
3202
|
+
agentId: string;
|
|
3202
3203
|
}>;
|
|
3203
3204
|
/**
|
|
3204
3205
|
* Upsert a tool (create if it doesn't exist, update if it does)
|
|
@@ -3207,19 +3208,19 @@ declare const upsertTool: (db: DatabaseClient) => (params: {
|
|
|
3207
3208
|
data: ToolInsert;
|
|
3208
3209
|
}) => Promise<{
|
|
3209
3210
|
tenantId: string;
|
|
3211
|
+
projectId: string;
|
|
3210
3212
|
id: string;
|
|
3211
3213
|
name: string;
|
|
3212
|
-
createdAt: string;
|
|
3213
|
-
updatedAt: string;
|
|
3214
|
-
projectId: string;
|
|
3215
|
-
credentialReferenceId: string | null;
|
|
3216
|
-
headers: Record<string, string> | null;
|
|
3217
3214
|
config: {
|
|
3218
3215
|
type: "mcp";
|
|
3219
3216
|
mcp: ToolMcpConfig;
|
|
3220
3217
|
};
|
|
3221
|
-
|
|
3218
|
+
credentialReferenceId: string | null;
|
|
3219
|
+
createdAt: string;
|
|
3220
|
+
updatedAt: string;
|
|
3221
|
+
headers: Record<string, string> | null;
|
|
3222
3222
|
capabilities: ToolServerCapabilities | null;
|
|
3223
|
+
imageUrl: string | null;
|
|
3223
3224
|
lastError: string | null;
|
|
3224
3225
|
}>;
|
|
3225
3226
|
|