@inkeep/agents-core 0.8.5 → 0.8.7
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 +7 -7
- package/dist/client-exports.d.ts +7 -7
- package/dist/db/schema.d.cts +2 -2
- package/dist/db/schema.d.ts +2 -2
- package/dist/index.cjs +4 -2
- package/dist/index.d.cts +176 -176
- package/dist/index.d.ts +176 -176
- package/dist/index.js +4 -2
- package/dist/{schema-CLlwzACy.d.ts → schema-BsLudkuV.d.cts} +1 -1
- package/dist/{schema-CfuN6Yh-.d.cts → schema-CjWNQuEl.d.ts} +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-DwuJfFDC.d.cts → utility-DP6lt8z3.d.cts} +110 -110
- package/dist/{utility-DwuJfFDC.d.ts → utility-DP6lt8z3.d.ts} +110 -110
package/dist/index.d.cts
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-DwuJfFDC.cjs';
|
|
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-DP6lt8z3.cjs';
|
|
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.cjs';
|
|
4
4
|
import { CredentialStore } from './types/index.cjs';
|
|
5
5
|
export { CorsConfig, ServerConfig, ServerOptions } from './types/index.cjs';
|
|
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-BsLudkuV.cjs';
|
|
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-BsLudkuV.cjs';
|
|
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,13 +773,9 @@ declare const getAgentGraphById: (db: DatabaseClient) => (params: {
|
|
|
773
773
|
scopes: GraphScopeConfig;
|
|
774
774
|
}) => Promise<{
|
|
775
775
|
tenantId: string;
|
|
776
|
-
projectId: string;
|
|
777
776
|
id: string;
|
|
778
777
|
name: string;
|
|
779
778
|
description: string | null;
|
|
780
|
-
createdAt: string;
|
|
781
|
-
updatedAt: string;
|
|
782
|
-
defaultAgentId: string | null;
|
|
783
779
|
models: {
|
|
784
780
|
base?: {
|
|
785
781
|
model?: string | undefined;
|
|
@@ -797,6 +793,10 @@ declare const getAgentGraphById: (db: DatabaseClient) => (params: {
|
|
|
797
793
|
stopWhen: {
|
|
798
794
|
transferCountIs?: number | undefined;
|
|
799
795
|
} | 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,13 +819,9 @@ declare const getAgentGraphWithDefaultAgent: (db: DatabaseClient) => (params: {
|
|
|
819
819
|
scopes: GraphScopeConfig;
|
|
820
820
|
}) => Promise<{
|
|
821
821
|
tenantId: string;
|
|
822
|
-
projectId: string;
|
|
823
822
|
id: string;
|
|
824
823
|
name: string;
|
|
825
824
|
description: string | null;
|
|
826
|
-
createdAt: string;
|
|
827
|
-
updatedAt: string;
|
|
828
|
-
defaultAgentId: string | null;
|
|
829
825
|
models: {
|
|
830
826
|
base?: {
|
|
831
827
|
model?: string | undefined;
|
|
@@ -843,6 +839,10 @@ declare const getAgentGraphWithDefaultAgent: (db: DatabaseClient) => (params: {
|
|
|
843
839
|
stopWhen: {
|
|
844
840
|
transferCountIs?: number | undefined;
|
|
845
841
|
} | 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,15 +862,9 @@ declare const getAgentGraphWithDefaultAgent: (db: DatabaseClient) => (params: {
|
|
|
862
862
|
graphPrompt: string | null;
|
|
863
863
|
defaultAgent: {
|
|
864
864
|
tenantId: string;
|
|
865
|
-
projectId: string;
|
|
866
865
|
id: string;
|
|
867
866
|
name: string;
|
|
868
867
|
description: string;
|
|
869
|
-
prompt: string;
|
|
870
|
-
graphId: string;
|
|
871
|
-
createdAt: string;
|
|
872
|
-
updatedAt: string;
|
|
873
|
-
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
874
868
|
models: {
|
|
875
869
|
base?: {
|
|
876
870
|
model?: string | undefined;
|
|
@@ -888,19 +882,21 @@ declare const getAgentGraphWithDefaultAgent: (db: DatabaseClient) => (params: {
|
|
|
888
882
|
stopWhen: {
|
|
889
883
|
stepCountIs?: number | undefined;
|
|
890
884
|
} | 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;
|
|
898
897
|
id: string;
|
|
899
898
|
name: string;
|
|
900
899
|
description: string | null;
|
|
901
|
-
createdAt: string;
|
|
902
|
-
updatedAt: string;
|
|
903
|
-
defaultAgentId: string | null;
|
|
904
900
|
models: {
|
|
905
901
|
base?: {
|
|
906
902
|
model?: string | undefined;
|
|
@@ -918,6 +914,10 @@ declare const listAgentGraphs: (db: DatabaseClient) => (params: {
|
|
|
918
914
|
stopWhen: {
|
|
919
915
|
transferCountIs?: number | undefined;
|
|
920
916
|
} | 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,13 +993,9 @@ 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;
|
|
997
996
|
id: string;
|
|
998
997
|
name: string;
|
|
999
998
|
description: string | null;
|
|
1000
|
-
createdAt: string;
|
|
1001
|
-
updatedAt: string;
|
|
1002
|
-
defaultAgentId: string | null;
|
|
1003
999
|
models: {
|
|
1004
1000
|
base?: {
|
|
1005
1001
|
model?: string | undefined;
|
|
@@ -1017,6 +1013,10 @@ declare const createAgentGraph: (db: DatabaseClient) => (data: AgentGraphInsert)
|
|
|
1017
1013
|
stopWhen: {
|
|
1018
1014
|
transferCountIs?: number | undefined;
|
|
1019
1015
|
} | 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,13 +1040,9 @@ declare const updateAgentGraph: (db: DatabaseClient) => (params: {
|
|
|
1040
1040
|
data: AgentGraphUpdate;
|
|
1041
1041
|
}) => Promise<{
|
|
1042
1042
|
tenantId: string;
|
|
1043
|
-
projectId: string;
|
|
1044
1043
|
id: string;
|
|
1045
1044
|
name: string;
|
|
1046
1045
|
description: string | null;
|
|
1047
|
-
createdAt: string;
|
|
1048
|
-
updatedAt: string;
|
|
1049
|
-
defaultAgentId: string | null;
|
|
1050
1046
|
models: {
|
|
1051
1047
|
base?: {
|
|
1052
1048
|
model?: string | undefined;
|
|
@@ -1064,6 +1060,10 @@ declare const updateAgentGraph: (db: DatabaseClient) => (params: {
|
|
|
1064
1060
|
stopWhen: {
|
|
1065
1061
|
transferCountIs?: number | undefined;
|
|
1066
1062
|
} | 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;
|
|
1123
1122
|
id: string;
|
|
1124
|
-
graphId: string;
|
|
1125
1123
|
createdAt: string;
|
|
1126
1124
|
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;
|
|
1160
1159
|
id: string;
|
|
1161
|
-
graphId: string;
|
|
1162
1160
|
createdAt: string;
|
|
1163
1161
|
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;
|
|
1174
1173
|
id: string;
|
|
1175
|
-
graphId: string;
|
|
1176
1174
|
createdAt: string;
|
|
1177
1175
|
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;
|
|
1279
1278
|
id: string;
|
|
1280
|
-
graphId: string;
|
|
1281
1279
|
createdAt: string;
|
|
1282
1280
|
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;
|
|
1300
1299
|
id: string;
|
|
1301
|
-
graphId: string;
|
|
1302
1300
|
createdAt: string;
|
|
1303
1301
|
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;
|
|
1315
1314
|
id: string;
|
|
1316
|
-
graphId: string;
|
|
1317
1315
|
createdAt: string;
|
|
1318
1316
|
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;
|
|
1327
1326
|
id: string;
|
|
1328
|
-
graphId: string;
|
|
1329
1327
|
createdAt: string;
|
|
1330
1328
|
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;
|
|
1343
1342
|
id: string;
|
|
1344
|
-
graphId: string;
|
|
1345
1343
|
createdAt: string;
|
|
1346
1344
|
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;
|
|
1371
1370
|
id: string;
|
|
1372
|
-
graphId: string;
|
|
1373
1371
|
createdAt: string;
|
|
1374
1372
|
updatedAt: string;
|
|
1373
|
+
projectId: string;
|
|
1374
|
+
graphId: string;
|
|
1375
1375
|
headers: Record<string, string> | null;
|
|
1376
|
+
agentId: string;
|
|
1376
1377
|
toolId: string;
|
|
1377
1378
|
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;
|
|
1387
1386
|
id: string;
|
|
1388
|
-
graphId: string;
|
|
1389
1387
|
createdAt: string;
|
|
1390
1388
|
updatedAt: string;
|
|
1389
|
+
projectId: string;
|
|
1390
|
+
graphId: string;
|
|
1391
1391
|
headers: Record<string, string> | null;
|
|
1392
|
+
agentId: string;
|
|
1392
1393
|
toolId: string;
|
|
1393
1394
|
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;
|
|
1409
1408
|
id: string;
|
|
1410
|
-
graphId: string;
|
|
1411
1409
|
createdAt: string;
|
|
1412
1410
|
updatedAt: string;
|
|
1411
|
+
projectId: string;
|
|
1412
|
+
graphId: string;
|
|
1413
1413
|
headers: Record<string, string> | null;
|
|
1414
|
+
agentId: string;
|
|
1414
1415
|
toolId: string;
|
|
1415
1416
|
selectedTools: string[] | null;
|
|
1416
|
-
agentId: string;
|
|
1417
1417
|
} | undefined>;
|
|
1418
1418
|
declare const getAgentToolRelationByAgent: (db: DatabaseClient) => (params: {
|
|
1419
1419
|
scopes: AgentScopeConfig;
|
|
@@ -1583,15 +1583,9 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
|
|
|
1583
1583
|
agentId: string;
|
|
1584
1584
|
}) => Promise<{
|
|
1585
1585
|
tenantId: string;
|
|
1586
|
-
projectId: string;
|
|
1587
1586
|
id: string;
|
|
1588
1587
|
name: string;
|
|
1589
1588
|
description: string;
|
|
1590
|
-
prompt: string;
|
|
1591
|
-
graphId: string;
|
|
1592
|
-
createdAt: string;
|
|
1593
|
-
updatedAt: string;
|
|
1594
|
-
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
1595
1589
|
models: {
|
|
1596
1590
|
base?: {
|
|
1597
1591
|
model?: string | undefined;
|
|
@@ -1609,20 +1603,20 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
|
|
|
1609
1603
|
stopWhen: {
|
|
1610
1604
|
stepCountIs?: number | undefined;
|
|
1611
1605
|
} | 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;
|
|
1618
1617
|
id: string;
|
|
1619
1618
|
name: string;
|
|
1620
1619
|
description: string;
|
|
1621
|
-
prompt: string;
|
|
1622
|
-
graphId: string;
|
|
1623
|
-
createdAt: string;
|
|
1624
|
-
updatedAt: string;
|
|
1625
|
-
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
1626
1620
|
models: {
|
|
1627
1621
|
base?: {
|
|
1628
1622
|
model?: string | undefined;
|
|
@@ -1640,6 +1634,12 @@ declare const listAgents: (db: DatabaseClient) => (params: {
|
|
|
1640
1634
|
stopWhen: {
|
|
1641
1635
|
stepCountIs?: number | undefined;
|
|
1642
1636
|
} | 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,15 +1683,9 @@ 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;
|
|
1687
1686
|
id: string;
|
|
1688
1687
|
name: string;
|
|
1689
1688
|
description: string;
|
|
1690
|
-
prompt: string;
|
|
1691
|
-
graphId: string;
|
|
1692
|
-
createdAt: string;
|
|
1693
|
-
updatedAt: string;
|
|
1694
|
-
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
1695
1689
|
models: {
|
|
1696
1690
|
base?: {
|
|
1697
1691
|
model?: string | undefined;
|
|
@@ -1709,6 +1703,12 @@ declare const createAgent: (db: DatabaseClient) => (params: AgentInsert) => Prom
|
|
|
1709
1703
|
stopWhen: {
|
|
1710
1704
|
stepCountIs?: number | undefined;
|
|
1711
1705
|
} | 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,15 +1716,9 @@ declare const updateAgent: (db: DatabaseClient) => (params: {
|
|
|
1716
1716
|
data: AgentUpdate;
|
|
1717
1717
|
}) => Promise<{
|
|
1718
1718
|
tenantId: string;
|
|
1719
|
-
projectId: string;
|
|
1720
1719
|
id: string;
|
|
1721
1720
|
name: string;
|
|
1722
1721
|
description: string;
|
|
1723
|
-
prompt: string;
|
|
1724
|
-
graphId: string;
|
|
1725
|
-
createdAt: string;
|
|
1726
|
-
updatedAt: string;
|
|
1727
|
-
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
1728
1722
|
models: {
|
|
1729
1723
|
base?: {
|
|
1730
1724
|
model?: string | undefined;
|
|
@@ -1742,6 +1736,12 @@ declare const updateAgent: (db: DatabaseClient) => (params: {
|
|
|
1742
1736
|
stopWhen: {
|
|
1743
1737
|
stepCountIs?: number | undefined;
|
|
1744
1738
|
} | 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;
|
|
1795
1794
|
id: string;
|
|
1796
1795
|
name: string | null;
|
|
1796
|
+
createdAt: string;
|
|
1797
|
+
updatedAt: string;
|
|
1798
|
+
projectId: string;
|
|
1797
1799
|
graphId: string;
|
|
1798
1800
|
publicId: string;
|
|
1799
1801
|
keyHash: string;
|
|
1800
1802
|
keyPrefix: string;
|
|
1801
1803
|
lastUsedAt: string | null;
|
|
1802
1804
|
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;
|
|
1809
1808
|
id: string;
|
|
1810
1809
|
name: string | null;
|
|
1810
|
+
createdAt: string;
|
|
1811
|
+
updatedAt: string;
|
|
1812
|
+
projectId: string;
|
|
1811
1813
|
graphId: string;
|
|
1812
1814
|
publicId: string;
|
|
1813
1815
|
keyHash: string;
|
|
1814
1816
|
keyPrefix: string;
|
|
1815
1817
|
lastUsedAt: string | null;
|
|
1816
1818
|
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;
|
|
1826
1825
|
id: string;
|
|
1827
1826
|
name: string | null;
|
|
1827
|
+
createdAt: string;
|
|
1828
|
+
updatedAt: string;
|
|
1829
|
+
projectId: string;
|
|
1828
1830
|
graphId: string;
|
|
1829
1831
|
publicId: string;
|
|
1830
1832
|
keyHash: string;
|
|
1831
1833
|
keyPrefix: string;
|
|
1832
1834
|
lastUsedAt: string | null;
|
|
1833
1835
|
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;
|
|
1853
1852
|
id: string;
|
|
1854
1853
|
name: string | null;
|
|
1854
|
+
createdAt: string;
|
|
1855
|
+
updatedAt: string;
|
|
1856
|
+
projectId: string;
|
|
1855
1857
|
graphId: string;
|
|
1856
1858
|
publicId: string;
|
|
1857
1859
|
keyHash: string;
|
|
1858
1860
|
keyPrefix: string;
|
|
1859
1861
|
lastUsedAt: string | null;
|
|
1860
1862
|
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;
|
|
1871
1870
|
id: string;
|
|
1872
1871
|
name: string | null;
|
|
1872
|
+
createdAt: string;
|
|
1873
|
+
updatedAt: string;
|
|
1874
|
+
projectId: string;
|
|
1873
1875
|
graphId: string;
|
|
1874
1876
|
publicId: string;
|
|
1875
1877
|
keyHash: string;
|
|
1876
1878
|
keyPrefix: string;
|
|
1877
1879
|
lastUsedAt: string | null;
|
|
1878
1880
|
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;
|
|
1911
1910
|
id: string;
|
|
1912
1911
|
name: string;
|
|
1913
1912
|
description: string;
|
|
1914
1913
|
createdAt: string;
|
|
1915
1914
|
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;
|
|
1947
1946
|
id: string;
|
|
1948
1947
|
name: string;
|
|
1949
1948
|
description: string;
|
|
1950
1949
|
createdAt: string;
|
|
1951
1950
|
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;
|
|
1962
1961
|
id: string;
|
|
1963
1962
|
name: string;
|
|
1964
1963
|
description: string;
|
|
1965
1964
|
createdAt: string;
|
|
1966
1965
|
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
|
-
projectId: string;
|
|
1993
1992
|
id: string;
|
|
1994
|
-
graphId: string;
|
|
1995
1993
|
createdAt: string;
|
|
1994
|
+
projectId: string;
|
|
1995
|
+
graphId: 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
|
-
projectId: string;
|
|
2036
2035
|
id: string;
|
|
2037
|
-
graphId: string;
|
|
2038
2036
|
createdAt: string;
|
|
2037
|
+
projectId: string;
|
|
2038
|
+
graphId: 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;
|
|
2120
2119
|
id: string;
|
|
2121
2120
|
name: string;
|
|
2122
2121
|
description: string;
|
|
2123
2122
|
createdAt: string;
|
|
2124
2123
|
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;
|
|
2133
2132
|
id: string;
|
|
2134
2133
|
name: string;
|
|
2135
2134
|
description: string;
|
|
2136
2135
|
createdAt: string;
|
|
2137
2136
|
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;
|
|
2156
2155
|
id: string;
|
|
2157
2156
|
name: string;
|
|
2158
2157
|
description: string;
|
|
2159
2158
|
createdAt: string;
|
|
2160
2159
|
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;
|
|
2171
2170
|
id: string;
|
|
2172
2171
|
name: string;
|
|
2173
2172
|
description: string;
|
|
2174
2173
|
createdAt: string;
|
|
2175
2174
|
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;
|
|
2196
2195
|
id: string;
|
|
2197
2196
|
name: string;
|
|
2198
2197
|
description: string;
|
|
2199
2198
|
createdAt: string;
|
|
2200
2199
|
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;
|
|
2212
2211
|
id: string;
|
|
2213
2212
|
name: string;
|
|
2214
2213
|
description: string;
|
|
2215
2214
|
createdAt: string;
|
|
2216
2215
|
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;
|
|
2232
2231
|
id: string;
|
|
2233
2232
|
createdAt: string;
|
|
2234
2233
|
updatedAt: string;
|
|
2235
|
-
|
|
2234
|
+
projectId: string;
|
|
2236
2235
|
metadata: ConversationMetadata | null;
|
|
2237
2236
|
userId: string | null;
|
|
2238
2237
|
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;
|
|
2248
2247
|
id: string;
|
|
2249
2248
|
createdAt: string;
|
|
2250
2249
|
updatedAt: string;
|
|
2251
|
-
|
|
2250
|
+
projectId: string;
|
|
2252
2251
|
metadata: ConversationMetadata | null;
|
|
2253
2252
|
userId: string | null;
|
|
2254
2253
|
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;
|
|
2268
2267
|
id: string;
|
|
2269
2268
|
createdAt: string;
|
|
2270
2269
|
updatedAt: string;
|
|
2271
|
-
|
|
2270
|
+
projectId: string;
|
|
2272
2271
|
metadata: ConversationMetadata | null;
|
|
2273
2272
|
userId: string | null;
|
|
2274
2273
|
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;
|
|
2283
2282
|
id: string;
|
|
2284
2283
|
createdAt: string;
|
|
2285
2284
|
updatedAt: string;
|
|
2286
|
-
|
|
2285
|
+
projectId: string;
|
|
2287
2286
|
metadata: ConversationMetadata | null;
|
|
2288
2287
|
userId: string | null;
|
|
2289
2288
|
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;
|
|
2321
2320
|
id: string;
|
|
2322
2321
|
createdAt: string;
|
|
2323
2322
|
updatedAt: string;
|
|
2324
|
-
|
|
2323
|
+
projectId: string;
|
|
2325
2324
|
metadata: ConversationMetadata | null;
|
|
2326
2325
|
userId: string | null;
|
|
2327
2326
|
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
|
-
projectId: string;
|
|
2490
2489
|
id: string;
|
|
2491
|
-
graphId: string;
|
|
2492
2490
|
createdAt: string;
|
|
2491
|
+
projectId: string;
|
|
2492
|
+
graphId: 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
|
-
projectId: string;
|
|
2532
2531
|
id: string;
|
|
2533
|
-
graphId: string;
|
|
2534
2532
|
createdAt: string;
|
|
2533
|
+
projectId: string;
|
|
2534
|
+
graphId: 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;
|
|
2727
2726
|
id: string;
|
|
2728
2727
|
createdAt: string;
|
|
2729
2728
|
updatedAt: string;
|
|
2730
|
-
|
|
2731
|
-
role: string;
|
|
2732
|
-
content: MessageContent;
|
|
2729
|
+
projectId: string;
|
|
2733
2730
|
conversationId: string;
|
|
2731
|
+
metadata: MessageMetadata | null;
|
|
2734
2732
|
agentId: string | null;
|
|
2733
|
+
role: string;
|
|
2735
2734
|
fromAgentId: string | null;
|
|
2736
2735
|
toAgentId: string | null;
|
|
2737
2736
|
fromExternalAgentId: string | null;
|
|
2738
2737
|
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;
|
|
2853
2852
|
id: string;
|
|
2854
2853
|
createdAt: string;
|
|
2855
2854
|
updatedAt: string;
|
|
2856
|
-
|
|
2857
|
-
role: string;
|
|
2858
|
-
content: MessageContent;
|
|
2855
|
+
projectId: string;
|
|
2859
2856
|
conversationId: string;
|
|
2857
|
+
metadata: MessageMetadata | null;
|
|
2860
2858
|
agentId: string | null;
|
|
2859
|
+
role: string;
|
|
2861
2860
|
fromAgentId: string | null;
|
|
2862
2861
|
toAgentId: string | null;
|
|
2863
2862
|
fromExternalAgentId: string | null;
|
|
2864
2863
|
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;
|
|
2879
2878
|
id: string;
|
|
2880
2879
|
createdAt: string;
|
|
2881
2880
|
updatedAt: string;
|
|
2882
|
-
|
|
2883
|
-
role: string;
|
|
2884
|
-
content: MessageContent;
|
|
2881
|
+
projectId: string;
|
|
2885
2882
|
conversationId: string;
|
|
2883
|
+
metadata: MessageMetadata | null;
|
|
2886
2884
|
agentId: string | null;
|
|
2885
|
+
role: string;
|
|
2887
2886
|
fromAgentId: string | null;
|
|
2888
2887
|
toAgentId: string | null;
|
|
2889
2888
|
fromExternalAgentId: string | null;
|
|
2890
2889
|
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;
|
|
2904
2903
|
id: string;
|
|
2905
2904
|
createdAt: string;
|
|
2906
2905
|
updatedAt: string;
|
|
2907
|
-
|
|
2908
|
-
role: string;
|
|
2909
|
-
content: MessageContent;
|
|
2906
|
+
projectId: string;
|
|
2910
2907
|
conversationId: string;
|
|
2908
|
+
metadata: MessageMetadata | null;
|
|
2911
2909
|
agentId: string | null;
|
|
2910
|
+
role: string;
|
|
2912
2911
|
fromAgentId: string | null;
|
|
2913
2912
|
toAgentId: string | null;
|
|
2914
2913
|
fromExternalAgentId: string | null;
|
|
2915
2914
|
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;
|
|
3025
3024
|
id: string;
|
|
3026
3025
|
createdAt: string;
|
|
3027
3026
|
updatedAt: string;
|
|
3028
|
-
|
|
3029
|
-
status: string;
|
|
3027
|
+
projectId: string;
|
|
3030
3028
|
contextId: string;
|
|
3029
|
+
status: string;
|
|
3030
|
+
metadata: TaskMetadataConfig | null;
|
|
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;
|
|
3045
3044
|
id: string;
|
|
3046
3045
|
createdAt: string;
|
|
3047
3046
|
updatedAt: string;
|
|
3048
|
-
|
|
3049
|
-
status: string;
|
|
3047
|
+
projectId: string;
|
|
3050
3048
|
contextId: string;
|
|
3049
|
+
status: string;
|
|
3050
|
+
metadata: TaskMetadataConfig | null;
|
|
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;
|
|
3064
3063
|
id: string;
|
|
3065
3064
|
name: string;
|
|
3065
|
+
createdAt: string;
|
|
3066
|
+
updatedAt: string;
|
|
3067
|
+
projectId: string;
|
|
3068
|
+
credentialReferenceId: string | null;
|
|
3069
|
+
headers: Record<string, string> | null;
|
|
3066
3070
|
config: {
|
|
3067
3071
|
type: "mcp";
|
|
3068
3072
|
mcp: ToolMcpConfig;
|
|
3069
3073
|
};
|
|
3070
|
-
credentialReferenceId: string | null;
|
|
3071
|
-
createdAt: string;
|
|
3072
|
-
updatedAt: string;
|
|
3073
|
-
headers: Record<string, string> | null;
|
|
3074
|
-
capabilities: ToolServerCapabilities | null;
|
|
3075
3074
|
imageUrl: string | null;
|
|
3075
|
+
capabilities: ToolServerCapabilities | 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;
|
|
3109
3108
|
id: string;
|
|
3110
3109
|
name: string;
|
|
3110
|
+
createdAt: string;
|
|
3111
|
+
updatedAt: string;
|
|
3112
|
+
projectId: string;
|
|
3113
|
+
credentialReferenceId: string | null;
|
|
3114
|
+
headers: Record<string, string> | null;
|
|
3111
3115
|
config: {
|
|
3112
3116
|
type: "mcp";
|
|
3113
3117
|
mcp: ToolMcpConfig;
|
|
3114
3118
|
};
|
|
3115
|
-
credentialReferenceId: string | null;
|
|
3116
|
-
createdAt: string;
|
|
3117
|
-
updatedAt: string;
|
|
3118
|
-
headers: Record<string, string> | null;
|
|
3119
|
-
capabilities: ToolServerCapabilities | null;
|
|
3120
3119
|
imageUrl: string | null;
|
|
3120
|
+
capabilities: ToolServerCapabilities | 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;
|
|
3130
3129
|
id: string;
|
|
3131
3130
|
name: string;
|
|
3131
|
+
createdAt: string;
|
|
3132
|
+
updatedAt: string;
|
|
3133
|
+
projectId: string;
|
|
3134
|
+
credentialReferenceId: string | null;
|
|
3135
|
+
headers: Record<string, string> | null;
|
|
3132
3136
|
config: {
|
|
3133
3137
|
type: "mcp";
|
|
3134
3138
|
mcp: ToolMcpConfig;
|
|
3135
3139
|
};
|
|
3136
|
-
credentialReferenceId: string | null;
|
|
3137
|
-
createdAt: string;
|
|
3138
|
-
updatedAt: string;
|
|
3139
|
-
headers: Record<string, string> | null;
|
|
3140
|
-
capabilities: ToolServerCapabilities | null;
|
|
3141
3140
|
imageUrl: string | null;
|
|
3141
|
+
capabilities: ToolServerCapabilities | 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;
|
|
3157
3156
|
id: string;
|
|
3158
|
-
graphId: string;
|
|
3159
3157
|
createdAt: string;
|
|
3160
3158
|
updatedAt: string;
|
|
3159
|
+
projectId: string;
|
|
3160
|
+
graphId: string;
|
|
3161
3161
|
headers: Record<string, string> | null;
|
|
3162
|
+
agentId: string;
|
|
3162
3163
|
toolId: string;
|
|
3163
3164
|
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;
|
|
3173
3172
|
id: string;
|
|
3174
|
-
graphId: string;
|
|
3175
3173
|
createdAt: string;
|
|
3176
3174
|
updatedAt: string;
|
|
3175
|
+
projectId: string;
|
|
3176
|
+
graphId: string;
|
|
3177
3177
|
headers: Record<string, string> | null;
|
|
3178
|
+
agentId: string;
|
|
3178
3179
|
toolId: string;
|
|
3179
3180
|
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)
|
|
@@ -3190,15 +3190,15 @@ declare const upsertAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
|
3190
3190
|
headers?: Record<string, string> | null;
|
|
3191
3191
|
}) => Promise<{
|
|
3192
3192
|
tenantId: string;
|
|
3193
|
-
projectId: string;
|
|
3194
3193
|
id: string;
|
|
3195
|
-
graphId: string;
|
|
3196
3194
|
createdAt: string;
|
|
3197
3195
|
updatedAt: string;
|
|
3196
|
+
projectId: string;
|
|
3197
|
+
graphId: string;
|
|
3198
3198
|
headers: Record<string, string> | null;
|
|
3199
|
+
agentId: string;
|
|
3199
3200
|
toolId: string;
|
|
3200
3201
|
selectedTools: string[] | null;
|
|
3201
|
-
agentId: string;
|
|
3202
3202
|
}>;
|
|
3203
3203
|
/**
|
|
3204
3204
|
* Upsert a tool (create if it doesn't exist, update if it does)
|
|
@@ -3207,19 +3207,19 @@ declare const upsertTool: (db: DatabaseClient) => (params: {
|
|
|
3207
3207
|
data: ToolInsert;
|
|
3208
3208
|
}) => Promise<{
|
|
3209
3209
|
tenantId: string;
|
|
3210
|
-
projectId: string;
|
|
3211
3210
|
id: string;
|
|
3212
3211
|
name: string;
|
|
3212
|
+
createdAt: string;
|
|
3213
|
+
updatedAt: string;
|
|
3214
|
+
projectId: string;
|
|
3215
|
+
credentialReferenceId: string | null;
|
|
3216
|
+
headers: Record<string, string> | null;
|
|
3213
3217
|
config: {
|
|
3214
3218
|
type: "mcp";
|
|
3215
3219
|
mcp: ToolMcpConfig;
|
|
3216
3220
|
};
|
|
3217
|
-
credentialReferenceId: string | null;
|
|
3218
|
-
createdAt: string;
|
|
3219
|
-
updatedAt: string;
|
|
3220
|
-
headers: Record<string, string> | null;
|
|
3221
|
-
capabilities: ToolServerCapabilities | null;
|
|
3222
3221
|
imageUrl: string | null;
|
|
3222
|
+
capabilities: ToolServerCapabilities | null;
|
|
3223
3223
|
lastError: string | null;
|
|
3224
3224
|
}>;
|
|
3225
3225
|
|