@inkeep/agents-core 0.0.0-dev-20251008200151 → 0.0.0-dev-20251009005405
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-BNXFEUNP.js → chunk-HZZTBK7Y.js} +61 -7
- package/dist/{chunk-PR7XWHED.js → chunk-MLKHAZVU.js} +1 -1
- package/dist/{chunk-5ZHSPLXI.js → chunk-TN5JDW2L.js} +41 -3
- package/dist/client-exports.cjs +101 -7
- 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.cjs +40 -2
- package/dist/db/schema.d.cts +2 -2
- package/dist/db/schema.d.ts +2 -2
- package/dist/db/schema.js +1 -1
- package/dist/index.cjs +2818 -2506
- package/dist/index.d.cts +326 -244
- package/dist/index.d.ts +326 -244
- package/dist/index.js +2458 -2254
- package/dist/{schema-Cn2ZkYOh.d.cts → schema-DKTW_XSC.d.cts} +249 -3
- package/dist/{schema-BYR5XAeI.d.ts → schema-DfH0zjbm.d.ts} +249 -3
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/{utility-6UlHR5nQ.d.cts → utility-BHDxGp6I.d.cts} +827 -237
- package/dist/{utility-6UlHR5nQ.d.ts → utility-BHDxGp6I.d.ts} +827 -237
- package/dist/validation/index.cjs +105 -7
- package/dist/validation/index.d.cts +2 -2
- package/dist/validation/index.d.ts +2 -2
- package/dist/validation/index.js +2 -2
- package/drizzle/0002_brown_marvel_apes.sql +16 -0
- package/drizzle/0003_gifted_doctor_spectrum.sql +343 -0
- package/drizzle/meta/{0001_snapshot.json → 0003_snapshot.json} +135 -11
- package/drizzle/meta/_journal.json +9 -2
- package/package.json +1 -1
- package/drizzle/meta/0000_snapshot.json +0 -2425
package/dist/index.d.cts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import {
|
|
3
|
-
export { b2 as A2AError, by as A2ARequest, bz as A2AResponse, aD as APIKeySecurityScheme, bD as AgentApiInsert, dt as AgentApiInsertSchema, bC as AgentApiSelect, ds as AgentApiSelectSchema, bE as AgentApiUpdate, du as AgentApiUpdateSchema, cw as AgentArtifactComponentApiInsert, eE as AgentArtifactComponentApiInsertSchema, cv as AgentArtifactComponentApiSelect, eD as AgentArtifactComponentApiSelectSchema, cx as AgentArtifactComponentApiUpdate, eF as AgentArtifactComponentApiUpdateSchema, ct as AgentArtifactComponentInsert, eB as AgentArtifactComponentInsertSchema, cs as AgentArtifactComponentSelect, eA as AgentArtifactComponentSelectSchema, cu as AgentArtifactComponentUpdate, eC as AgentArtifactComponentUpdateSchema, az as AgentCapabilities, aN as AgentCard, d8 as AgentConversationHistoryConfig, cn as AgentDataComponentApiInsert, es as AgentDataComponentApiInsertSchema, cm as AgentDataComponentApiSelect, er as AgentDataComponentApiSelectSchema, co as AgentDataComponentApiUpdate, et as AgentDataComponentApiUpdateSchema, ck as AgentDataComponentInsert, ep as AgentDataComponentInsertSchema, cj as AgentDataComponentSelect, eo as AgentDataComponentSelectSchema, cl as AgentDataComponentUpdate, eq as AgentDataComponentUpdateSchema, cV as AgentDefinition, bN as AgentGraphApiInsert, dI as AgentGraphApiInsertSchema, bM as AgentGraphApiSelect, dH as AgentGraphApiSelectSchema, bO as AgentGraphApiUpdate, dJ as AgentGraphApiUpdateSchema, dF as AgentGraphInsertSchema, bL as AgentGraphSelect, dE as AgentGraphSelectSchema, dG as AgentGraphUpdateSchema, dq as AgentInsertSchema, aA as AgentProvider, bH as AgentRelationApiInsert, dz as AgentRelationApiInsertSchema, bG as AgentRelationApiSelect, dy as AgentRelationApiSelectSchema, bI as AgentRelationApiUpdate, dA as AgentRelationApiUpdateSchema, dw as AgentRelationInsertSchema, bJ as AgentRelationQuery, dB as AgentRelationQuerySchema, bF as AgentRelationSelect, dv as AgentRelationSelectSchema, dx as AgentRelationUpdateSchema, dp as AgentSelectSchema, aB as AgentSkill, d as AgentStopWhen, a as AgentStopWhenSchema, cL as AgentToolRelationApiInsert, ff as AgentToolRelationApiInsertSchema, cK as AgentToolRelationApiSelect, fe as AgentToolRelationApiSelectSchema, cM as AgentToolRelationApiUpdate, fg as AgentToolRelationApiUpdateSchema, cJ as AgentToolRelationInsert, fc as AgentToolRelationInsertSchema, cI as AgentToolRelationSelect, fb as AgentToolRelationSelectSchema, fd as AgentToolRelationUpdateSchema, dr as AgentUpdateSchema, eM as AllAgentSchema, cB as AllAgentSelect, cF as ApiKeyApiCreationResponse, eR as ApiKeyApiCreationResponseSchema, cD as ApiKeyApiInsert, eS as ApiKeyApiInsertSchema, cC as ApiKeyApiSelect, eQ as ApiKeyApiSelectSchema, cE as ApiKeyApiUpdate, A as ApiKeyApiUpdateSchema, eO as ApiKeyInsertSchema, eN as ApiKeySelectSchema, eP as ApiKeyUpdateSchema, cq as ArtifactComponentApiInsert, ey as ArtifactComponentApiInsertSchema, cp as ArtifactComponentApiSelect, ex as ArtifactComponentApiSelectSchema, cr as ArtifactComponentApiUpdate, ez as ArtifactComponentApiUpdateSchema, ev as ArtifactComponentInsertSchema, eu as ArtifactComponentSelectSchema, ew as ArtifactComponentUpdateSchema, aG as AuthorizationCodeOAuthFlow, cT as CanUseItem, fp as CanUseItemSchema, bi as CancelTaskRequest, bt as CancelTaskResponse, bs as CancelTaskSuccessResponse, aH as ClientCredentialsOAuthFlow, b0 as ContentTypeNotSupportedError, ce as ContextCacheApiInsert, ef as ContextCacheApiInsertSchema, cd as ContextCacheApiSelect, ee as ContextCacheApiSelectSchema, cf as ContextCacheApiUpdate, eg as ContextCacheApiUpdateSchema, d9 as ContextCacheEntry, ec as ContextCacheInsertSchema, eb as ContextCacheSelectSchema, cc as ContextCacheUpdate, ed as ContextCacheUpdateSchema, c8 as ContextConfigApiInsert, f9 as ContextConfigApiInsertSchema, c7 as ContextConfigApiSelect, f8 as ContextConfigApiSelectSchema, c9 as ContextConfigApiUpdate, fa as ContextConfigApiUpdateSchema, f6 as ContextConfigInsertSchema, f5 as ContextConfigSelectSchema, f7 as ContextConfigUpdateSchema, c1 as ConversationApiInsert, e3 as ConversationApiInsertSchema, c0 as ConversationApiSelect, e2 as ConversationApiSelectSchema, c2 as ConversationApiUpdate, e4 as ConversationApiUpdateSchema, e0 as ConversationInsertSchema, d7 as ConversationScopeOptions, d$ as ConversationSelectSchema, e1 as ConversationUpdateSchema, eX as CredentialReferenceApiInsertSchema, cG as CredentialReferenceApiSelect, eW as CredentialReferenceApiSelectSchema, cH as CredentialReferenceApiUpdate, eY as CredentialReferenceApiUpdateSchema, eU as CredentialReferenceInsertSchema, eT as CredentialReferenceSelectSchema, eV as CredentialReferenceUpdateSchema, ch as DataComponentApiInsert, em as DataComponentApiInsertSchema, cg as DataComponentApiSelect, el as DataComponentApiSelectSchema, ci as DataComponentApiUpdate, en as DataComponentApiUpdateSchema, ej as DataComponentBaseSchema, ei as DataComponentInsertSchema, eh as DataComponentSelectSchema, ek as DataComponentUpdateSchema, ax as DataPart, fv as ErrorResponseSchema, fw as ExistsResponseSchema, cz as ExternalAgentApiInsert, eK as ExternalAgentApiInsertSchema, cy as ExternalAgentApiSelect, eJ as ExternalAgentApiSelectSchema, cA as ExternalAgentApiUpdate, eL as ExternalAgentApiUpdateSchema, eH as ExternalAgentInsertSchema, bK as ExternalAgentRelationApiInsert, dD as ExternalAgentRelationApiInsertSchema, dC as ExternalAgentRelationInsertSchema, eG as ExternalAgentSelectSchema, eI as ExternalAgentUpdateSchema, cb as FetchConfig, f3 as FetchConfigSchema, ca as FetchDefinition, f4 as FetchDefinitionSchema, at as FileBase, aw as FilePart, au as FileWithBytes, av as FileWithUri, cS as FullGraphAgentInsert, F as FullGraphAgentInsertSchema, fq as FullGraphDefinitionSchema, fE as FullProjectDefinitionSchema, bk as GetTaskPushNotificationConfigRequest, bx as GetTaskPushNotificationConfigResponse, bw as GetTaskPushNotificationConfigSuccessResponse, bh as GetTaskRequest, br as GetTaskResponse, bq as GetTaskSuccessResponse, c as GraphStopWhen, G as GraphStopWhenSchema, fr as GraphWithinContextOfProjectSchema, aE as HTTPAuthSecurityScheme, fF as HeadersScopeSchema, fM as IdParamsSchema, aI as ImplicitOAuthFlow, cU as InternalAgentDefinition, aX as InternalError, b1 as InvalidAgentResponseError, aW as InvalidParamsError, aU as InvalidRequestError, aT as JSONParseError, bc as JSONRPCError, be as JSONRPCErrorResponse, ba as JSONRPCMessage, bb as JSONRPCRequest, bd as JSONRPCResult, cQ as LedgerArtifactApiInsert, fl as LedgerArtifactApiInsertSchema, cP as LedgerArtifactApiSelect, fk as LedgerArtifactApiSelectSchema, cR as LedgerArtifactApiUpdate, fm as LedgerArtifactApiUpdateSchema, cN as LedgerArtifactInsert, fi as LedgerArtifactInsertSchema, fh as LedgerArtifactSelectSchema, cO as LedgerArtifactUpdate, fj as LedgerArtifactUpdateSchema, ft as ListResponseSchema, dj as MAX_ID_LENGTH, dh as MCPServerType, e_ as MCPToolConfigSchema, di as MIN_ID_LENGTH, da as McpAuthType, db as McpServerAuth, dd as McpServerCapabilities, de as McpToolDefinition, dY as McpToolDefinitionSchema, eZ as McpToolSchema, dc as McpTransportConfig, dW as McpTransportConfigSchema, aO as Message, c5 as MessageApiInsert, e9 as MessageApiInsertSchema, c4 as MessageApiSelect, e8 as MessageApiSelectSchema, c6 as MessageApiUpdate, ea as MessageApiUpdateSchema, e6 as MessageInsertSchema, d2 as MessageMode, bA as MessagePart, d1 as MessageRole, c3 as MessageSelect, e5 as MessageSelectSchema, b8 as MessageSendConfiguration, b9 as MessageSendParams, d0 as MessageType, e7 as MessageUpdateSchema, aV as MethodNotFoundError, dm as ModelSchema, e as ModelSettings, M as ModelSettingsSchema, d3 as Models, aK as OAuth2SecurityScheme, aF as OAuthFlows, aL as OpenIdConnectSecurityScheme, c_ as Pagination, fN as PaginationQueryParamsSchema, fs as PaginationSchema, P as Part, ar as PartBase, aJ as PasswordOAuthFlow, cY as ProjectApiInsert, fC as ProjectApiInsertSchema, cX as ProjectApiSelect, fB as ProjectApiSelectSchema, cZ as ProjectApiUpdate, fD as ProjectApiUpdateSchema, fz as ProjectInsertSchema, dn as ProjectModelSchema, d4 as ProjectModels, fy as ProjectSelectSchema, fA as ProjectUpdateSchema, b3 as PushNotificationAuthenticationInfo, b4 as PushNotificationConfig, a_ as PushNotificationNotSupportedError, fx as RemovedResponseSchema, aM as SecurityScheme, aC as SecuritySchemeBase, bf as SendMessageRequest, bn as SendMessageResponse, bm as SendMessageSuccessResponse, bg as SendStreamingMessageRequest, bp as SendStreamingMessageResponse, bo as SendStreamingMessageSuccessResponse, bj as SetTaskPushNotificationConfigRequest, bv as SetTaskPushNotificationConfigResponse, bu as SetTaskPushNotificationConfigSuccessResponse, fu as SingleResponseSchema, d6 as StatusComponent, fn as StatusComponentSchema, fo as StatusUpdateSchema, d5 as StatusUpdateSettings, b as StopWhen, S as StopWhenSchema, c$ as SummaryEvent, df as TOOL_STATUS_VALUES, aQ as Task, bR as TaskApiInsert, dO as TaskApiInsertSchema, bQ as TaskApiSelect, dN as TaskApiSelectSchema, bS as TaskApiUpdate, dP as TaskApiUpdateSchema, bB as TaskArtifact, aS as TaskArtifactUpdateEvent, b6 as TaskIdParams, dL as TaskInsertSchema, aZ as TaskNotCancelableError, aY as TaskNotFoundError, b5 as TaskPushNotificationConfig, b7 as TaskQueryParams, bX as TaskRelationApiInsert, dU as TaskRelationApiInsertSchema, bW as TaskRelationApiSelect, dT as TaskRelationApiSelectSchema, bY as TaskRelationApiUpdate, dV as TaskRelationApiUpdateSchema, bU as TaskRelationInsert, dR as TaskRelationInsertSchema, bT as TaskRelationSelect, dQ as TaskRelationSelectSchema, bV as TaskRelationUpdate, dS as TaskRelationUpdateSchema, bl as TaskResubscriptionRequest, dK as TaskSelectSchema, ay as TaskState, aP as TaskStatus, aR as TaskStatusUpdateEvent, bP as TaskUpdate, dM as TaskUpdateSchema, fL as TenantIdParamsSchema, fG as TenantParamsSchema, fJ as TenantProjectGraphIdParamsSchema, fI as TenantProjectGraphParamsSchema, fK as TenantProjectIdParamsSchema, fH as TenantProjectParamsSchema, as as TextPart, b_ as ToolApiInsert, f1 as ToolApiInsertSchema, bZ as ToolApiSelect, f0 as ToolApiSelectSchema, b$ as ToolApiUpdate, f2 as ToolApiUpdateSchema, cW as ToolDefinition, d_ as ToolInsertSchema, dZ as ToolSelectSchema, dX as ToolStatusSchema, e$ as ToolUpdateSchema, dk as URL_SAFE_ID_PATTERN, a$ as UnsupportedOperationError, dg as VALID_RELATION_TYPES, dl as resourceIdSchema } from './utility-6UlHR5nQ.cjs';
|
|
2
|
+
import { r as CredentialReferenceApiInsert, s as ContextConfigSelect, l as ContextFetchDefinition, h as MCPTransportType, t as MCPToolConfig, u as GraphScopeConfig, C as ConversationHistoryConfig, v as ProjectScopeConfig, w as PaginationConfig, x as AgentGraphInsert, y as AgentGraphUpdate, z as FullGraphDefinition, B as AgentScopeConfig, D as AgentRelationInsert, E as ExternalAgentRelationInsert, H as AgentRelationUpdate, I as AgentToolRelationUpdate, m as ToolMcpConfig, n as ToolServerCapabilities, J as AgentInsert, K as AgentUpdate, L as AgentSelect, N as ApiKeySelect, O as ApiKeyInsert, Q as ApiKeyUpdate, R as CreateApiKeyParams, U as ApiKeyCreateResult, V as ArtifactComponentSelect, W as ArtifactComponentInsert, X as ArtifactComponentUpdate, Y as ContextCacheSelect, Z as ContextCacheInsert, _ as ContextConfigInsert, $ as ContextConfigUpdate, a0 as ConversationSelect, a1 as ConversationInsert, o as ConversationMetadata, a2 as ConversationUpdate, a3 as CredentialReferenceSelect, a4 as ToolSelect, a5 as CredentialReferenceInsert, a6 as CredentialReferenceUpdate, a7 as DataComponentSelect, a8 as DataComponentInsert, a9 as DataComponentUpdate, aa as ExternalAgentInsert, ab as ExternalAgentSelect, ac as ExternalAgentUpdate, ad as FunctionApiInsert, ae as Artifact, af as LedgerArtifactSelect, q as MessageMetadata, p as MessageContent, ag as MessageVisibility, ah as MessageInsert, ai as MessageUpdate, aj as FullProjectDefinition, ak as ProjectInfo, al as ProjectSelect, am as PaginationResult, an as ProjectResourceCounts, ao as ProjectInsert, ap as ProjectUpdate, aq as TaskInsert, T as TaskMetadataConfig, ar as TaskSelect, as as McpTool, at as ToolInsert, au as ToolUpdate, g as CredentialStoreType, av as ExecutionContext } from './utility-BHDxGp6I.cjs';
|
|
3
|
+
export { b7 as A2AError, bD as A2ARequest, bE as A2AResponse, aI as APIKeySecurityScheme, bI as AgentApiInsert, dG as AgentApiInsertSchema, bH as AgentApiSelect, dF as AgentApiSelectSchema, bJ as AgentApiUpdate, dH as AgentApiUpdateSchema, cG as AgentArtifactComponentApiInsert, eR as AgentArtifactComponentApiInsertSchema, cF as AgentArtifactComponentApiSelect, eQ as AgentArtifactComponentApiSelectSchema, cH as AgentArtifactComponentApiUpdate, eS as AgentArtifactComponentApiUpdateSchema, cD as AgentArtifactComponentInsert, eO as AgentArtifactComponentInsertSchema, cC as AgentArtifactComponentSelect, eN as AgentArtifactComponentSelectSchema, cE as AgentArtifactComponentUpdate, eP as AgentArtifactComponentUpdateSchema, aE as AgentCapabilities, aS as AgentCard, di as AgentConversationHistoryConfig, cx as AgentDataComponentApiInsert, eF as AgentDataComponentApiInsertSchema, cw as AgentDataComponentApiSelect, eE as AgentDataComponentApiSelectSchema, cy as AgentDataComponentApiUpdate, eG as AgentDataComponentApiUpdateSchema, cu as AgentDataComponentInsert, eC as AgentDataComponentInsertSchema, ct as AgentDataComponentSelect, eB as AgentDataComponentSelectSchema, cv as AgentDataComponentUpdate, eD as AgentDataComponentUpdateSchema, d3 as AgentDefinition, bS as AgentGraphApiInsert, dV as AgentGraphApiInsertSchema, bR as AgentGraphApiSelect, dU as AgentGraphApiSelectSchema, bT as AgentGraphApiUpdate, dW as AgentGraphApiUpdateSchema, dS as AgentGraphInsertSchema, bQ as AgentGraphSelect, dR as AgentGraphSelectSchema, dT as AgentGraphUpdateSchema, dD as AgentInsertSchema, aF as AgentProvider, bM as AgentRelationApiInsert, dM as AgentRelationApiInsertSchema, bL as AgentRelationApiSelect, dL as AgentRelationApiSelectSchema, bN as AgentRelationApiUpdate, dN as AgentRelationApiUpdateSchema, dJ as AgentRelationInsertSchema, bO as AgentRelationQuery, dO as AgentRelationQuerySchema, bK as AgentRelationSelect, dI as AgentRelationSelectSchema, dK as AgentRelationUpdateSchema, dC as AgentSelectSchema, aG as AgentSkill, e as AgentStopWhen, b as AgentStopWhenSchema, cV as AgentToolRelationApiInsert, fv as AgentToolRelationApiInsertSchema, cU as AgentToolRelationApiSelect, fu as AgentToolRelationApiSelectSchema, cW as AgentToolRelationApiUpdate, fw as AgentToolRelationApiUpdateSchema, cT as AgentToolRelationInsert, fs as AgentToolRelationInsertSchema, cS as AgentToolRelationSelect, fr as AgentToolRelationSelectSchema, ft as AgentToolRelationUpdateSchema, dE as AgentUpdateSchema, eZ as AllAgentSchema, cL as AllAgentSelect, cP as ApiKeyApiCreationResponse, f2 as ApiKeyApiCreationResponseSchema, cN as ApiKeyApiInsert, f3 as ApiKeyApiInsertSchema, cM as ApiKeyApiSelect, f1 as ApiKeyApiSelectSchema, cO as ApiKeyApiUpdate, A as ApiKeyApiUpdateSchema, e$ as ApiKeyInsertSchema, e_ as ApiKeySelectSchema, f0 as ApiKeyUpdateSchema, cA as ArtifactComponentApiInsert, eL as ArtifactComponentApiInsertSchema, cz as ArtifactComponentApiSelect, eK as ArtifactComponentApiSelectSchema, cB as ArtifactComponentApiUpdate, eM as ArtifactComponentApiUpdateSchema, eI as ArtifactComponentInsertSchema, eH as ArtifactComponentSelectSchema, eJ as ArtifactComponentUpdateSchema, aL as AuthorizationCodeOAuthFlow, d1 as CanUseItem, fF as CanUseItemSchema, bn as CancelTaskRequest, by as CancelTaskResponse, bx as CancelTaskSuccessResponse, aM as ClientCredentialsOAuthFlow, b5 as ContentTypeNotSupportedError, co as ContextCacheApiInsert, es as ContextCacheApiInsertSchema, cn as ContextCacheApiSelect, er as ContextCacheApiSelectSchema, cp as ContextCacheApiUpdate, et as ContextCacheApiUpdateSchema, dj as ContextCacheEntry, ep as ContextCacheInsertSchema, eo as ContextCacheSelectSchema, cm as ContextCacheUpdate, eq as ContextCacheUpdateSchema, ci as ContextConfigApiInsert, fp as ContextConfigApiInsertSchema, ch as ContextConfigApiSelect, fo as ContextConfigApiSelectSchema, cj as ContextConfigApiUpdate, fq as ContextConfigApiUpdateSchema, fm as ContextConfigInsertSchema, fl as ContextConfigSelectSchema, fn as ContextConfigUpdateSchema, cb as ConversationApiInsert, eg as ConversationApiInsertSchema, ca as ConversationApiSelect, ef as ConversationApiSelectSchema, cc as ConversationApiUpdate, eh as ConversationApiUpdateSchema, ed as ConversationInsertSchema, dh as ConversationScopeOptions, ec as ConversationSelectSchema, ee as ConversationUpdateSchema, f8 as CredentialReferenceApiInsertSchema, cQ as CredentialReferenceApiSelect, f7 as CredentialReferenceApiSelectSchema, cR as CredentialReferenceApiUpdate, f9 as CredentialReferenceApiUpdateSchema, f5 as CredentialReferenceInsertSchema, f4 as CredentialReferenceSelectSchema, f6 as CredentialReferenceUpdateSchema, cr as DataComponentApiInsert, ez as DataComponentApiInsertSchema, cq as DataComponentApiSelect, ey as DataComponentApiSelectSchema, cs as DataComponentApiUpdate, eA as DataComponentApiUpdateSchema, ew as DataComponentBaseSchema, ev as DataComponentInsertSchema, eu as DataComponentSelectSchema, ex as DataComponentUpdateSchema, aC as DataPart, fL as ErrorResponseSchema, fM as ExistsResponseSchema, cJ as ExternalAgentApiInsert, eX as ExternalAgentApiInsertSchema, cI as ExternalAgentApiSelect, eW as ExternalAgentApiSelectSchema, cK as ExternalAgentApiUpdate, eY as ExternalAgentApiUpdateSchema, eU as ExternalAgentInsertSchema, bP as ExternalAgentRelationApiInsert, dQ as ExternalAgentRelationApiInsertSchema, dP as ExternalAgentRelationInsertSchema, eT as ExternalAgentSelectSchema, eV as ExternalAgentUpdateSchema, cl as FetchConfig, fj as FetchConfigSchema, ck as FetchDefinition, fk as FetchDefinitionSchema, ay as FileBase, aB as FilePart, az as FileWithBytes, aA as FileWithUri, d0 as FullGraphAgentInsert, a as FullGraphAgentInsertSchema, fG as FullGraphDefinitionSchema, fU as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, c8 as FunctionApiSelect, i as FunctionApiSelectSchema, c9 as FunctionApiUpdate, j as FunctionApiUpdateSchema, c6 as FunctionInsert, fh as FunctionInsertSchema, c5 as FunctionSelect, fg as FunctionSelectSchema, dB as FunctionToolConfig, dA as FunctionToolConfigSchema, c7 as FunctionUpdate, fi as FunctionUpdateSchema, bp as GetTaskPushNotificationConfigRequest, bC as GetTaskPushNotificationConfigResponse, bB as GetTaskPushNotificationConfigSuccessResponse, bm as GetTaskRequest, bw as GetTaskResponse, bv as GetTaskSuccessResponse, d as GraphStopWhen, G as GraphStopWhenSchema, fH as GraphWithinContextOfProjectSchema, aJ as HTTPAuthSecurityScheme, fV as HeadersScopeSchema, g0 as IdParamsSchema, aN as ImplicitOAuthFlow, d2 as InternalAgentDefinition, b0 as InternalError, b6 as InvalidAgentResponseError, a$ as InvalidParamsError, aZ as InvalidRequestError, aY as JSONParseError, bh as JSONRPCError, bj as JSONRPCErrorResponse, bf as JSONRPCMessage, bg as JSONRPCRequest, bi as JSONRPCResult, c_ as LedgerArtifactApiInsert, fB as LedgerArtifactApiInsertSchema, cZ as LedgerArtifactApiSelect, fA as LedgerArtifactApiSelectSchema, c$ as LedgerArtifactApiUpdate, fC as LedgerArtifactApiUpdateSchema, cX as LedgerArtifactInsert, fy as LedgerArtifactInsertSchema, fx as LedgerArtifactSelectSchema, cY as LedgerArtifactUpdate, fz as LedgerArtifactUpdateSchema, fJ as ListResponseSchema, du as MAX_ID_LENGTH, ds as MCPServerType, fb as MCPToolConfigSchema, dt as MIN_ID_LENGTH, dk as McpAuthType, dl as McpServerAuth, dn as McpServerCapabilities, dp as McpToolDefinition, e9 as McpToolDefinitionSchema, fa as McpToolSchema, dm as McpTransportConfig, e7 as McpTransportConfigSchema, aT as Message, cf as MessageApiInsert, em as MessageApiInsertSchema, ce as MessageApiSelect, el as MessageApiSelectSchema, cg as MessageApiUpdate, en as MessageApiUpdateSchema, ej as MessageInsertSchema, dc as MessageMode, bF as MessagePart, db as MessageRole, cd as MessageSelect, ei as MessageSelectSchema, bd as MessageSendConfiguration, be as MessageSendParams, da as MessageType, ek as MessageUpdateSchema, a_ as MethodNotFoundError, dx as ModelSchema, f as ModelSettings, M as ModelSettingsSchema, dd as Models, aP as OAuth2SecurityScheme, aK as OAuthFlows, aQ as OpenIdConnectSecurityScheme, d8 as Pagination, g1 as PaginationQueryParamsSchema, fI as PaginationSchema, P as Part, aw as PartBase, aO as PasswordOAuthFlow, d6 as ProjectApiInsert, fS as ProjectApiInsertSchema, d5 as ProjectApiSelect, fR as ProjectApiSelectSchema, d7 as ProjectApiUpdate, fT as ProjectApiUpdateSchema, fP as ProjectInsertSchema, dy as ProjectModelSchema, de as ProjectModels, fO as ProjectSelectSchema, fQ as ProjectUpdateSchema, b8 as PushNotificationAuthenticationInfo, b9 as PushNotificationConfig, b3 as PushNotificationNotSupportedError, fN as RemovedResponseSchema, dz as SandboxConfig, k as SandboxConfigSchema, aR as SecurityScheme, aH as SecuritySchemeBase, bk as SendMessageRequest, bs as SendMessageResponse, br as SendMessageSuccessResponse, bl as SendStreamingMessageRequest, bu as SendStreamingMessageResponse, bt as SendStreamingMessageSuccessResponse, bo as SetTaskPushNotificationConfigRequest, bA as SetTaskPushNotificationConfigResponse, bz as SetTaskPushNotificationConfigSuccessResponse, fK as SingleResponseSchema, dg as StatusComponent, fD as StatusComponentSchema, fE as StatusUpdateSchema, df as StatusUpdateSettings, c as StopWhen, S as StopWhenSchema, d9 as SummaryEvent, dq as TOOL_STATUS_VALUES, aV as Task, bW as TaskApiInsert, d$ as TaskApiInsertSchema, bV as TaskApiSelect, d_ as TaskApiSelectSchema, bX as TaskApiUpdate, e0 as TaskApiUpdateSchema, bG as TaskArtifact, aX as TaskArtifactUpdateEvent, bb as TaskIdParams, dY as TaskInsertSchema, b2 as TaskNotCancelableError, b1 as TaskNotFoundError, ba as TaskPushNotificationConfig, bc as TaskQueryParams, c0 as TaskRelationApiInsert, e5 as TaskRelationApiInsertSchema, b$ as TaskRelationApiSelect, e4 as TaskRelationApiSelectSchema, c1 as TaskRelationApiUpdate, e6 as TaskRelationApiUpdateSchema, bZ as TaskRelationInsert, e2 as TaskRelationInsertSchema, bY as TaskRelationSelect, e1 as TaskRelationSelectSchema, b_ as TaskRelationUpdate, e3 as TaskRelationUpdateSchema, bq as TaskResubscriptionRequest, dX as TaskSelectSchema, aD as TaskState, aU as TaskStatus, aW as TaskStatusUpdateEvent, bU as TaskUpdate, dZ as TaskUpdateSchema, f$ as TenantIdParamsSchema, fW as TenantParamsSchema, fZ as TenantProjectGraphIdParamsSchema, fY as TenantProjectGraphParamsSchema, f_ as TenantProjectIdParamsSchema, fX as TenantProjectParamsSchema, ax as TextPart, c3 as ToolApiInsert, fe as ToolApiInsertSchema, c2 as ToolApiSelect, fd as ToolApiSelectSchema, c4 as ToolApiUpdate, ff as ToolApiUpdateSchema, d4 as ToolDefinition, eb as ToolInsertSchema, ea as ToolSelectSchema, e8 as ToolStatusSchema, fc as ToolUpdateSchema, dv as URL_SAFE_ID_PATTERN, b4 as UnsupportedOperationError, dr as VALID_RELATION_TYPES, dw as resourceIdSchema } from './utility-BHDxGp6I.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,
|
|
7
|
+
import { s as schema } from './schema-DKTW_XSC.cjs';
|
|
8
|
+
export { k as agentArtifactComponents, L as agentArtifactComponentsRelations, i as agentDataComponents, N as agentDataComponentsRelations, a as agentGraph, C as agentGraphRelations, e as agentRelations, Q as agentRelationsRelations, n as agentToolRelations, F as agentToolRelationsRelations, d as agents, B as agentsRelations, u as apiKeys, E as apiKeysRelations, j as artifactComponents, K as artifactComponentsRelations, b as contextCache, A as contextCacheRelations, c as contextConfigs, z as contextConfigsRelations, o as conversations, I as conversationsRelations, v as credentialReferences, G as credentialReferencesRelations, h as dataComponents, M as dataComponentsRelations, f as externalAgents, D as externalAgentsRelations, m as functions, P as functionsRelations, r as ledgerArtifacts, O as ledgerArtifactsRelations, q as messages, J as messagesRelations, p as projects, x as projectsRelations, g as taskRelations, y as taskRelationsRelations, t as tasks, w as tasksRelations, l as tools, H as toolsRelations } from './schema-DKTW_XSC.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';
|
|
@@ -828,13 +828,13 @@ declare class CredentialStuffer {
|
|
|
828
828
|
declare const getAgentGraphById: (db: DatabaseClient) => (params: {
|
|
829
829
|
scopes: GraphScopeConfig;
|
|
830
830
|
}) => Promise<{
|
|
831
|
-
|
|
831
|
+
tenantId: string;
|
|
832
|
+
projectId: string;
|
|
832
833
|
id: string;
|
|
834
|
+
name: string;
|
|
835
|
+
description: string | null;
|
|
833
836
|
createdAt: string;
|
|
834
837
|
updatedAt: string;
|
|
835
|
-
projectId: string;
|
|
836
|
-
tenantId: string;
|
|
837
|
-
description: string | null;
|
|
838
838
|
models: {
|
|
839
839
|
base?: {
|
|
840
840
|
model?: string | undefined;
|
|
@@ -874,13 +874,13 @@ declare const getAgentGraphById: (db: DatabaseClient) => (params: {
|
|
|
874
874
|
declare const getAgentGraphWithDefaultAgent: (db: DatabaseClient) => (params: {
|
|
875
875
|
scopes: GraphScopeConfig;
|
|
876
876
|
}) => Promise<{
|
|
877
|
-
|
|
877
|
+
tenantId: string;
|
|
878
|
+
projectId: string;
|
|
878
879
|
id: string;
|
|
880
|
+
name: string;
|
|
881
|
+
description: string | null;
|
|
879
882
|
createdAt: string;
|
|
880
883
|
updatedAt: string;
|
|
881
|
-
projectId: string;
|
|
882
|
-
tenantId: string;
|
|
883
|
-
description: string | null;
|
|
884
884
|
models: {
|
|
885
885
|
base?: {
|
|
886
886
|
model?: string | undefined;
|
|
@@ -917,13 +917,15 @@ declare const getAgentGraphWithDefaultAgent: (db: DatabaseClient) => (params: {
|
|
|
917
917
|
} | null;
|
|
918
918
|
graphPrompt: string | null;
|
|
919
919
|
defaultAgent: {
|
|
920
|
-
|
|
920
|
+
tenantId: string;
|
|
921
|
+
projectId: string;
|
|
921
922
|
id: string;
|
|
923
|
+
name: string;
|
|
924
|
+
description: string;
|
|
925
|
+
prompt: string;
|
|
926
|
+
graphId: string;
|
|
922
927
|
createdAt: string;
|
|
923
928
|
updatedAt: string;
|
|
924
|
-
projectId: string;
|
|
925
|
-
tenantId: string;
|
|
926
|
-
description: string;
|
|
927
929
|
models: {
|
|
928
930
|
base?: {
|
|
929
931
|
model?: string | undefined;
|
|
@@ -941,21 +943,19 @@ declare const getAgentGraphWithDefaultAgent: (db: DatabaseClient) => (params: {
|
|
|
941
943
|
stopWhen: {
|
|
942
944
|
stepCountIs?: number | undefined;
|
|
943
945
|
} | null;
|
|
944
|
-
graphId: string;
|
|
945
|
-
prompt: string;
|
|
946
946
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
947
947
|
} | null;
|
|
948
948
|
} | null>;
|
|
949
949
|
declare const listAgentGraphs: (db: DatabaseClient) => (params: {
|
|
950
950
|
scopes: ProjectScopeConfig;
|
|
951
951
|
}) => Promise<{
|
|
952
|
-
|
|
952
|
+
tenantId: string;
|
|
953
|
+
projectId: string;
|
|
953
954
|
id: string;
|
|
955
|
+
name: string;
|
|
956
|
+
description: string | null;
|
|
954
957
|
createdAt: string;
|
|
955
958
|
updatedAt: string;
|
|
956
|
-
projectId: string;
|
|
957
|
-
tenantId: string;
|
|
958
|
-
description: string | null;
|
|
959
959
|
models: {
|
|
960
960
|
base?: {
|
|
961
961
|
model?: string | undefined;
|
|
@@ -1048,13 +1048,13 @@ declare const listAgentGraphsPaginated: (db: DatabaseClient) => (params: {
|
|
|
1048
1048
|
};
|
|
1049
1049
|
}>;
|
|
1050
1050
|
declare const createAgentGraph: (db: DatabaseClient) => (data: AgentGraphInsert) => Promise<{
|
|
1051
|
-
|
|
1051
|
+
tenantId: string;
|
|
1052
|
+
projectId: string;
|
|
1052
1053
|
id: string;
|
|
1054
|
+
name: string;
|
|
1055
|
+
description: string | null;
|
|
1053
1056
|
createdAt: string;
|
|
1054
1057
|
updatedAt: string;
|
|
1055
|
-
projectId: string;
|
|
1056
|
-
tenantId: string;
|
|
1057
|
-
description: string | null;
|
|
1058
1058
|
models: {
|
|
1059
1059
|
base?: {
|
|
1060
1060
|
model?: string | undefined;
|
|
@@ -1095,13 +1095,13 @@ declare const updateAgentGraph: (db: DatabaseClient) => (params: {
|
|
|
1095
1095
|
scopes: GraphScopeConfig;
|
|
1096
1096
|
data: AgentGraphUpdate;
|
|
1097
1097
|
}) => Promise<{
|
|
1098
|
-
|
|
1098
|
+
tenantId: string;
|
|
1099
|
+
projectId: string;
|
|
1099
1100
|
id: string;
|
|
1101
|
+
name: string;
|
|
1102
|
+
description: string | null;
|
|
1100
1103
|
createdAt: string;
|
|
1101
1104
|
updatedAt: string;
|
|
1102
|
-
projectId: string;
|
|
1103
|
-
tenantId: string;
|
|
1104
|
-
description: string | null;
|
|
1105
1105
|
models: {
|
|
1106
1106
|
base?: {
|
|
1107
1107
|
model?: string | undefined;
|
|
@@ -1174,12 +1174,12 @@ declare const getAgentRelationById: (db: DatabaseClient) => (params: {
|
|
|
1174
1174
|
scopes: GraphScopeConfig;
|
|
1175
1175
|
relationId: string;
|
|
1176
1176
|
}) => Promise<{
|
|
1177
|
+
tenantId: string;
|
|
1178
|
+
projectId: string;
|
|
1177
1179
|
id: string;
|
|
1180
|
+
graphId: string;
|
|
1178
1181
|
createdAt: string;
|
|
1179
1182
|
updatedAt: string;
|
|
1180
|
-
projectId: string;
|
|
1181
|
-
tenantId: string;
|
|
1182
|
-
graphId: string;
|
|
1183
1183
|
sourceAgentId: string;
|
|
1184
1184
|
targetAgentId: string | null;
|
|
1185
1185
|
externalAgentId: string | null;
|
|
@@ -1211,12 +1211,12 @@ declare const listAgentRelations: (db: DatabaseClient) => (params: {
|
|
|
1211
1211
|
declare const getAgentRelations: (db: DatabaseClient) => (params: {
|
|
1212
1212
|
scopes: AgentScopeConfig;
|
|
1213
1213
|
}) => Promise<{
|
|
1214
|
+
tenantId: string;
|
|
1215
|
+
projectId: string;
|
|
1214
1216
|
id: string;
|
|
1217
|
+
graphId: string;
|
|
1215
1218
|
createdAt: string;
|
|
1216
1219
|
updatedAt: string;
|
|
1217
|
-
projectId: string;
|
|
1218
|
-
tenantId: string;
|
|
1219
|
-
graphId: string;
|
|
1220
1220
|
sourceAgentId: string;
|
|
1221
1221
|
targetAgentId: string | null;
|
|
1222
1222
|
externalAgentId: string | null;
|
|
@@ -1225,12 +1225,12 @@ declare const getAgentRelations: (db: DatabaseClient) => (params: {
|
|
|
1225
1225
|
declare const getAgentRelationsByGraph: (db: DatabaseClient) => (params: {
|
|
1226
1226
|
scopes: GraphScopeConfig;
|
|
1227
1227
|
}) => Promise<{
|
|
1228
|
+
tenantId: string;
|
|
1229
|
+
projectId: string;
|
|
1228
1230
|
id: string;
|
|
1231
|
+
graphId: string;
|
|
1229
1232
|
createdAt: string;
|
|
1230
1233
|
updatedAt: string;
|
|
1231
|
-
projectId: string;
|
|
1232
|
-
tenantId: string;
|
|
1233
|
-
graphId: string;
|
|
1234
1234
|
sourceAgentId: string;
|
|
1235
1235
|
targetAgentId: string | null;
|
|
1236
1236
|
externalAgentId: string | null;
|
|
@@ -1330,12 +1330,12 @@ declare const getRelatedAgentsForGraph: (db: DatabaseClient) => (params: {
|
|
|
1330
1330
|
}[];
|
|
1331
1331
|
}>;
|
|
1332
1332
|
declare const createAgentRelation: (db: DatabaseClient) => (params: AgentRelationInsert) => Promise<{
|
|
1333
|
+
tenantId: string;
|
|
1334
|
+
projectId: string;
|
|
1333
1335
|
id: string;
|
|
1336
|
+
graphId: string;
|
|
1334
1337
|
createdAt: string;
|
|
1335
1338
|
updatedAt: string;
|
|
1336
|
-
projectId: string;
|
|
1337
|
-
tenantId: string;
|
|
1338
|
-
graphId: string;
|
|
1339
1339
|
sourceAgentId: string;
|
|
1340
1340
|
targetAgentId: string | null;
|
|
1341
1341
|
externalAgentId: string | null;
|
|
@@ -1351,12 +1351,12 @@ declare const getAgentRelationByParams: (db: DatabaseClient) => (params: {
|
|
|
1351
1351
|
externalAgentId?: string;
|
|
1352
1352
|
relationType: string;
|
|
1353
1353
|
}) => Promise<{
|
|
1354
|
+
tenantId: string;
|
|
1355
|
+
projectId: string;
|
|
1354
1356
|
id: string;
|
|
1357
|
+
graphId: string;
|
|
1355
1358
|
createdAt: string;
|
|
1356
1359
|
updatedAt: string;
|
|
1357
|
-
projectId: string;
|
|
1358
|
-
tenantId: string;
|
|
1359
|
-
graphId: string;
|
|
1360
1360
|
sourceAgentId: string;
|
|
1361
1361
|
targetAgentId: string | null;
|
|
1362
1362
|
externalAgentId: string | null;
|
|
@@ -1366,24 +1366,24 @@ declare const getAgentRelationByParams: (db: DatabaseClient) => (params: {
|
|
|
1366
1366
|
* Upsert agent relation (create if it doesn't exist, no-op if it does)
|
|
1367
1367
|
*/
|
|
1368
1368
|
declare const upsertAgentRelation: (db: DatabaseClient) => (params: AgentRelationInsert) => Promise<{
|
|
1369
|
+
tenantId: string;
|
|
1370
|
+
projectId: string;
|
|
1369
1371
|
id: string;
|
|
1372
|
+
graphId: string;
|
|
1370
1373
|
createdAt: string;
|
|
1371
1374
|
updatedAt: string;
|
|
1372
|
-
projectId: string;
|
|
1373
|
-
tenantId: string;
|
|
1374
|
-
graphId: string;
|
|
1375
1375
|
sourceAgentId: string;
|
|
1376
1376
|
targetAgentId: string | null;
|
|
1377
1377
|
externalAgentId: string | null;
|
|
1378
1378
|
relationType: string | null;
|
|
1379
1379
|
}>;
|
|
1380
1380
|
declare const createExternalAgentRelation: (db: DatabaseClient) => (params: ExternalAgentRelationInsert) => Promise<{
|
|
1381
|
+
tenantId: string;
|
|
1382
|
+
projectId: string;
|
|
1381
1383
|
id: string;
|
|
1384
|
+
graphId: string;
|
|
1382
1385
|
createdAt: string;
|
|
1383
1386
|
updatedAt: string;
|
|
1384
|
-
projectId: string;
|
|
1385
|
-
tenantId: string;
|
|
1386
|
-
graphId: string;
|
|
1387
1387
|
sourceAgentId: string;
|
|
1388
1388
|
targetAgentId: string | null;
|
|
1389
1389
|
externalAgentId: string | null;
|
|
@@ -1394,12 +1394,12 @@ declare const updateAgentRelation: (db: DatabaseClient) => (params: {
|
|
|
1394
1394
|
relationId: string;
|
|
1395
1395
|
data: AgentRelationUpdate;
|
|
1396
1396
|
}) => Promise<{
|
|
1397
|
+
tenantId: string;
|
|
1398
|
+
projectId: string;
|
|
1397
1399
|
id: string;
|
|
1400
|
+
graphId: string;
|
|
1398
1401
|
createdAt: string;
|
|
1399
1402
|
updatedAt: string;
|
|
1400
|
-
projectId: string;
|
|
1401
|
-
tenantId: string;
|
|
1402
|
-
graphId: string;
|
|
1403
1403
|
sourceAgentId: string;
|
|
1404
1404
|
targetAgentId: string | null;
|
|
1405
1405
|
externalAgentId: string | null;
|
|
@@ -1422,32 +1422,32 @@ declare const createAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
|
1422
1422
|
headers?: Record<string, string> | null;
|
|
1423
1423
|
};
|
|
1424
1424
|
}) => Promise<{
|
|
1425
|
-
|
|
1425
|
+
tenantId: string;
|
|
1426
|
+
projectId: string;
|
|
1426
1427
|
id: string;
|
|
1428
|
+
graphId: string;
|
|
1427
1429
|
createdAt: string;
|
|
1428
1430
|
updatedAt: string;
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
graphId: string;
|
|
1431
|
+
headers: Record<string, string> | null;
|
|
1432
|
+
toolId: string;
|
|
1432
1433
|
selectedTools: string[] | null;
|
|
1433
1434
|
agentId: string;
|
|
1434
|
-
toolId: string;
|
|
1435
1435
|
}>;
|
|
1436
1436
|
declare const updateAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
1437
1437
|
scopes: GraphScopeConfig;
|
|
1438
1438
|
relationId: string;
|
|
1439
1439
|
data: AgentToolRelationUpdate;
|
|
1440
1440
|
}) => Promise<{
|
|
1441
|
-
|
|
1441
|
+
tenantId: string;
|
|
1442
|
+
projectId: string;
|
|
1442
1443
|
id: string;
|
|
1444
|
+
graphId: string;
|
|
1443
1445
|
createdAt: string;
|
|
1444
1446
|
updatedAt: string;
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
graphId: string;
|
|
1447
|
+
headers: Record<string, string> | null;
|
|
1448
|
+
toolId: string;
|
|
1448
1449
|
selectedTools: string[] | null;
|
|
1449
1450
|
agentId: string;
|
|
1450
|
-
toolId: string;
|
|
1451
1451
|
}>;
|
|
1452
1452
|
declare const deleteAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
1453
1453
|
scopes: GraphScopeConfig;
|
|
@@ -1460,16 +1460,16 @@ declare const getAgentToolRelationById: (db: DatabaseClient) => (params: {
|
|
|
1460
1460
|
scopes: AgentScopeConfig;
|
|
1461
1461
|
relationId: string;
|
|
1462
1462
|
}) => Promise<{
|
|
1463
|
-
|
|
1463
|
+
tenantId: string;
|
|
1464
|
+
projectId: string;
|
|
1464
1465
|
id: string;
|
|
1466
|
+
graphId: string;
|
|
1465
1467
|
createdAt: string;
|
|
1466
1468
|
updatedAt: string;
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
graphId: string;
|
|
1469
|
+
headers: Record<string, string> | null;
|
|
1470
|
+
toolId: string;
|
|
1470
1471
|
selectedTools: string[] | null;
|
|
1471
1472
|
agentId: string;
|
|
1472
|
-
toolId: string;
|
|
1473
1473
|
} | undefined>;
|
|
1474
1474
|
declare const getAgentToolRelationByAgent: (db: DatabaseClient) => (params: {
|
|
1475
1475
|
scopes: AgentScopeConfig;
|
|
@@ -1557,10 +1557,19 @@ declare const getToolsForAgent: (db: DatabaseClient) => (params: {
|
|
|
1557
1557
|
tool: {
|
|
1558
1558
|
id: string;
|
|
1559
1559
|
name: string;
|
|
1560
|
+
description: string | null;
|
|
1560
1561
|
config: {
|
|
1561
1562
|
type: "mcp";
|
|
1562
1563
|
mcp: ToolMcpConfig;
|
|
1564
|
+
} | {
|
|
1565
|
+
type: "function";
|
|
1566
|
+
function?: {
|
|
1567
|
+
inputSchema: Record<string, unknown>;
|
|
1568
|
+
executeCode: string;
|
|
1569
|
+
dependencies: Record<string, unknown>;
|
|
1570
|
+
};
|
|
1563
1571
|
};
|
|
1572
|
+
functionId: string | null;
|
|
1564
1573
|
createdAt: string;
|
|
1565
1574
|
updatedAt: string;
|
|
1566
1575
|
capabilities: ToolServerCapabilities | null;
|
|
@@ -1638,13 +1647,15 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
|
|
|
1638
1647
|
scopes: GraphScopeConfig;
|
|
1639
1648
|
agentId: string;
|
|
1640
1649
|
}) => Promise<{
|
|
1641
|
-
|
|
1650
|
+
tenantId: string;
|
|
1651
|
+
projectId: string;
|
|
1642
1652
|
id: string;
|
|
1653
|
+
name: string;
|
|
1654
|
+
description: string;
|
|
1655
|
+
prompt: string;
|
|
1656
|
+
graphId: string;
|
|
1643
1657
|
createdAt: string;
|
|
1644
1658
|
updatedAt: string;
|
|
1645
|
-
projectId: string;
|
|
1646
|
-
tenantId: string;
|
|
1647
|
-
description: string;
|
|
1648
1659
|
models: {
|
|
1649
1660
|
base?: {
|
|
1650
1661
|
model?: string | undefined;
|
|
@@ -1662,20 +1673,20 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
|
|
|
1662
1673
|
stopWhen: {
|
|
1663
1674
|
stepCountIs?: number | undefined;
|
|
1664
1675
|
} | null;
|
|
1665
|
-
graphId: string;
|
|
1666
|
-
prompt: string;
|
|
1667
1676
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
1668
1677
|
} | undefined>;
|
|
1669
1678
|
declare const listAgents: (db: DatabaseClient) => (params: {
|
|
1670
1679
|
scopes: GraphScopeConfig;
|
|
1671
1680
|
}) => Promise<{
|
|
1672
|
-
|
|
1681
|
+
tenantId: string;
|
|
1682
|
+
projectId: string;
|
|
1673
1683
|
id: string;
|
|
1684
|
+
name: string;
|
|
1685
|
+
description: string;
|
|
1686
|
+
prompt: string;
|
|
1687
|
+
graphId: string;
|
|
1674
1688
|
createdAt: string;
|
|
1675
1689
|
updatedAt: string;
|
|
1676
|
-
projectId: string;
|
|
1677
|
-
tenantId: string;
|
|
1678
|
-
description: string;
|
|
1679
1690
|
models: {
|
|
1680
1691
|
base?: {
|
|
1681
1692
|
model?: string | undefined;
|
|
@@ -1693,8 +1704,6 @@ declare const listAgents: (db: DatabaseClient) => (params: {
|
|
|
1693
1704
|
stopWhen: {
|
|
1694
1705
|
stepCountIs?: number | undefined;
|
|
1695
1706
|
} | null;
|
|
1696
|
-
graphId: string;
|
|
1697
|
-
prompt: string;
|
|
1698
1707
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
1699
1708
|
}[]>;
|
|
1700
1709
|
declare const listAgentsPaginated: (db: DatabaseClient) => (params: {
|
|
@@ -1738,13 +1747,15 @@ declare const listAgentsPaginated: (db: DatabaseClient) => (params: {
|
|
|
1738
1747
|
};
|
|
1739
1748
|
}>;
|
|
1740
1749
|
declare const createAgent: (db: DatabaseClient) => (params: AgentInsert) => Promise<{
|
|
1741
|
-
|
|
1750
|
+
tenantId: string;
|
|
1751
|
+
projectId: string;
|
|
1742
1752
|
id: string;
|
|
1753
|
+
name: string;
|
|
1754
|
+
description: string;
|
|
1755
|
+
prompt: string;
|
|
1756
|
+
graphId: string;
|
|
1743
1757
|
createdAt: string;
|
|
1744
1758
|
updatedAt: string;
|
|
1745
|
-
projectId: string;
|
|
1746
|
-
tenantId: string;
|
|
1747
|
-
description: string;
|
|
1748
1759
|
models: {
|
|
1749
1760
|
base?: {
|
|
1750
1761
|
model?: string | undefined;
|
|
@@ -1762,8 +1773,6 @@ declare const createAgent: (db: DatabaseClient) => (params: AgentInsert) => Prom
|
|
|
1762
1773
|
stopWhen: {
|
|
1763
1774
|
stepCountIs?: number | undefined;
|
|
1764
1775
|
} | null;
|
|
1765
|
-
graphId: string;
|
|
1766
|
-
prompt: string;
|
|
1767
1776
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
1768
1777
|
}>;
|
|
1769
1778
|
declare const updateAgent: (db: DatabaseClient) => (params: {
|
|
@@ -1771,13 +1780,15 @@ declare const updateAgent: (db: DatabaseClient) => (params: {
|
|
|
1771
1780
|
agentId: string;
|
|
1772
1781
|
data: AgentUpdate;
|
|
1773
1782
|
}) => Promise<{
|
|
1774
|
-
|
|
1783
|
+
tenantId: string;
|
|
1784
|
+
projectId: string;
|
|
1775
1785
|
id: string;
|
|
1786
|
+
name: string;
|
|
1787
|
+
description: string;
|
|
1788
|
+
prompt: string;
|
|
1789
|
+
graphId: string;
|
|
1776
1790
|
createdAt: string;
|
|
1777
1791
|
updatedAt: string;
|
|
1778
|
-
projectId: string;
|
|
1779
|
-
tenantId: string;
|
|
1780
|
-
description: string;
|
|
1781
1792
|
models: {
|
|
1782
1793
|
base?: {
|
|
1783
1794
|
model?: string | undefined;
|
|
@@ -1795,8 +1806,6 @@ declare const updateAgent: (db: DatabaseClient) => (params: {
|
|
|
1795
1806
|
stopWhen: {
|
|
1796
1807
|
stepCountIs?: number | undefined;
|
|
1797
1808
|
} | null;
|
|
1798
|
-
graphId: string;
|
|
1799
|
-
prompt: string;
|
|
1800
1809
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
1801
1810
|
}>;
|
|
1802
1811
|
/**
|
|
@@ -1846,49 +1855,49 @@ declare const getApiKeyById: (db: DatabaseClient) => (params: {
|
|
|
1846
1855
|
scopes: ProjectScopeConfig;
|
|
1847
1856
|
id: string;
|
|
1848
1857
|
}) => Promise<{
|
|
1849
|
-
name: string | null;
|
|
1850
|
-
id: string;
|
|
1851
|
-
createdAt: string;
|
|
1852
|
-
updatedAt: string;
|
|
1853
|
-
projectId: string;
|
|
1854
1858
|
tenantId: string;
|
|
1859
|
+
projectId: string;
|
|
1860
|
+
id: string;
|
|
1861
|
+
name: string | null;
|
|
1855
1862
|
graphId: string;
|
|
1856
1863
|
publicId: string;
|
|
1857
1864
|
keyHash: string;
|
|
1858
1865
|
keyPrefix: string;
|
|
1859
1866
|
lastUsedAt: string | null;
|
|
1860
1867
|
expiresAt: string | null;
|
|
1861
|
-
} | undefined>;
|
|
1862
|
-
declare const getApiKeyByPublicId: (db: DatabaseClient) => (publicId: string) => Promise<{
|
|
1863
|
-
name: string | null;
|
|
1864
|
-
id: string;
|
|
1865
1868
|
createdAt: string;
|
|
1866
1869
|
updatedAt: string;
|
|
1867
|
-
|
|
1870
|
+
} | undefined>;
|
|
1871
|
+
declare const getApiKeyByPublicId: (db: DatabaseClient) => (publicId: string) => Promise<{
|
|
1868
1872
|
tenantId: string;
|
|
1873
|
+
projectId: string;
|
|
1874
|
+
id: string;
|
|
1875
|
+
name: string | null;
|
|
1869
1876
|
graphId: string;
|
|
1870
1877
|
publicId: string;
|
|
1871
1878
|
keyHash: string;
|
|
1872
1879
|
keyPrefix: string;
|
|
1873
1880
|
lastUsedAt: string | null;
|
|
1874
1881
|
expiresAt: string | null;
|
|
1882
|
+
createdAt: string;
|
|
1883
|
+
updatedAt: string;
|
|
1875
1884
|
} | undefined>;
|
|
1876
1885
|
declare const listApiKeys: (db: DatabaseClient) => (params: {
|
|
1877
1886
|
scopes: ProjectScopeConfig;
|
|
1878
1887
|
graphId?: string;
|
|
1879
1888
|
}) => Promise<{
|
|
1880
|
-
name: string | null;
|
|
1881
|
-
id: string;
|
|
1882
|
-
createdAt: string;
|
|
1883
|
-
updatedAt: string;
|
|
1884
|
-
projectId: string;
|
|
1885
1889
|
tenantId: string;
|
|
1890
|
+
projectId: string;
|
|
1891
|
+
id: string;
|
|
1892
|
+
name: string | null;
|
|
1886
1893
|
graphId: string;
|
|
1887
1894
|
publicId: string;
|
|
1888
1895
|
keyHash: string;
|
|
1889
1896
|
keyPrefix: string;
|
|
1890
1897
|
lastUsedAt: string | null;
|
|
1891
1898
|
expiresAt: string | null;
|
|
1899
|
+
createdAt: string;
|
|
1900
|
+
updatedAt: string;
|
|
1892
1901
|
}[]>;
|
|
1893
1902
|
declare const listApiKeysPaginated: (db: DatabaseClient) => (params: {
|
|
1894
1903
|
scopes: ProjectScopeConfig;
|
|
@@ -1904,36 +1913,36 @@ declare const listApiKeysPaginated: (db: DatabaseClient) => (params: {
|
|
|
1904
1913
|
};
|
|
1905
1914
|
}>;
|
|
1906
1915
|
declare const createApiKey: (db: DatabaseClient) => (params: ApiKeyInsert) => Promise<{
|
|
1907
|
-
name: string | null;
|
|
1908
|
-
id: string;
|
|
1909
|
-
createdAt: string;
|
|
1910
|
-
updatedAt: string;
|
|
1911
|
-
projectId: string;
|
|
1912
1916
|
tenantId: string;
|
|
1917
|
+
projectId: string;
|
|
1918
|
+
id: string;
|
|
1919
|
+
name: string | null;
|
|
1913
1920
|
graphId: string;
|
|
1914
1921
|
publicId: string;
|
|
1915
1922
|
keyHash: string;
|
|
1916
1923
|
keyPrefix: string;
|
|
1917
1924
|
lastUsedAt: string | null;
|
|
1918
1925
|
expiresAt: string | null;
|
|
1926
|
+
createdAt: string;
|
|
1927
|
+
updatedAt: string;
|
|
1919
1928
|
}>;
|
|
1920
1929
|
declare const updateApiKey: (db: DatabaseClient) => (params: {
|
|
1921
1930
|
scopes: ProjectScopeConfig;
|
|
1922
1931
|
id: string;
|
|
1923
1932
|
data: ApiKeyUpdate;
|
|
1924
1933
|
}) => Promise<{
|
|
1925
|
-
name: string | null;
|
|
1926
|
-
id: string;
|
|
1927
|
-
createdAt: string;
|
|
1928
|
-
updatedAt: string;
|
|
1929
|
-
projectId: string;
|
|
1930
1934
|
tenantId: string;
|
|
1935
|
+
projectId: string;
|
|
1936
|
+
id: string;
|
|
1937
|
+
name: string | null;
|
|
1931
1938
|
graphId: string;
|
|
1932
1939
|
publicId: string;
|
|
1933
1940
|
keyHash: string;
|
|
1934
1941
|
keyPrefix: string;
|
|
1935
1942
|
lastUsedAt: string | null;
|
|
1936
1943
|
expiresAt: string | null;
|
|
1944
|
+
createdAt: string;
|
|
1945
|
+
updatedAt: string;
|
|
1937
1946
|
}>;
|
|
1938
1947
|
declare const deleteApiKey: (db: DatabaseClient) => (params: {
|
|
1939
1948
|
scopes: ProjectScopeConfig;
|
|
@@ -1962,13 +1971,13 @@ declare const getArtifactComponentById: (db: DatabaseClient) => (params: {
|
|
|
1962
1971
|
scopes: ProjectScopeConfig;
|
|
1963
1972
|
id: string;
|
|
1964
1973
|
}) => Promise<{
|
|
1965
|
-
|
|
1974
|
+
tenantId: string;
|
|
1975
|
+
projectId: string;
|
|
1966
1976
|
id: string;
|
|
1977
|
+
name: string;
|
|
1978
|
+
description: string;
|
|
1967
1979
|
createdAt: string;
|
|
1968
1980
|
updatedAt: string;
|
|
1969
|
-
projectId: string;
|
|
1970
|
-
tenantId: string;
|
|
1971
|
-
description: string;
|
|
1972
1981
|
props: Record<string, unknown> | null;
|
|
1973
1982
|
} | undefined>;
|
|
1974
1983
|
declare const listArtifactComponents: (db: DatabaseClient) => (params: {
|
|
@@ -1996,13 +2005,13 @@ declare const listArtifactComponentsPaginated: (db: DatabaseClient) => (params:
|
|
|
1996
2005
|
};
|
|
1997
2006
|
}>;
|
|
1998
2007
|
declare const createArtifactComponent: (db: DatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
|
|
1999
|
-
|
|
2008
|
+
tenantId: string;
|
|
2009
|
+
projectId: string;
|
|
2000
2010
|
id: string;
|
|
2011
|
+
name: string;
|
|
2012
|
+
description: string;
|
|
2001
2013
|
createdAt: string;
|
|
2002
2014
|
updatedAt: string;
|
|
2003
|
-
projectId: string;
|
|
2004
|
-
tenantId: string;
|
|
2005
|
-
description: string;
|
|
2006
2015
|
props: Record<string, unknown> | null;
|
|
2007
2016
|
}>;
|
|
2008
2017
|
declare const updateArtifactComponent: (db: DatabaseClient) => (params: {
|
|
@@ -2010,13 +2019,13 @@ declare const updateArtifactComponent: (db: DatabaseClient) => (params: {
|
|
|
2010
2019
|
id: string;
|
|
2011
2020
|
data: ArtifactComponentUpdate;
|
|
2012
2021
|
}) => Promise<{
|
|
2013
|
-
|
|
2022
|
+
tenantId: string;
|
|
2023
|
+
projectId: string;
|
|
2014
2024
|
id: string;
|
|
2025
|
+
name: string;
|
|
2026
|
+
description: string;
|
|
2015
2027
|
createdAt: string;
|
|
2016
2028
|
updatedAt: string;
|
|
2017
|
-
projectId: string;
|
|
2018
|
-
tenantId: string;
|
|
2019
|
-
description: string;
|
|
2020
2029
|
props: Record<string, unknown> | null;
|
|
2021
2030
|
}>;
|
|
2022
2031
|
declare const deleteArtifactComponent: (db: DatabaseClient) => (params: {
|
|
@@ -2039,11 +2048,11 @@ declare const associateArtifactComponentWithAgent: (db: DatabaseClient) => (para
|
|
|
2039
2048
|
scopes: AgentScopeConfig;
|
|
2040
2049
|
artifactComponentId: string;
|
|
2041
2050
|
}) => Promise<{
|
|
2042
|
-
id: string;
|
|
2043
|
-
createdAt: string;
|
|
2044
|
-
projectId: string;
|
|
2045
2051
|
tenantId: string;
|
|
2052
|
+
projectId: string;
|
|
2053
|
+
id: string;
|
|
2046
2054
|
graphId: string;
|
|
2055
|
+
createdAt: string;
|
|
2047
2056
|
agentId: string;
|
|
2048
2057
|
artifactComponentId: string;
|
|
2049
2058
|
}>;
|
|
@@ -2082,11 +2091,11 @@ declare const upsertAgentArtifactComponentRelation: (db: DatabaseClient) => (par
|
|
|
2082
2091
|
scopes: AgentScopeConfig;
|
|
2083
2092
|
artifactComponentId: string;
|
|
2084
2093
|
}) => Promise<{
|
|
2085
|
-
id: string;
|
|
2086
|
-
createdAt: string;
|
|
2087
|
-
projectId: string;
|
|
2088
2094
|
tenantId: string;
|
|
2095
|
+
projectId: string;
|
|
2096
|
+
id: string;
|
|
2089
2097
|
graphId: string;
|
|
2098
|
+
createdAt: string;
|
|
2090
2099
|
agentId: string;
|
|
2091
2100
|
artifactComponentId: string;
|
|
2092
2101
|
} | null>;
|
|
@@ -2166,30 +2175,30 @@ declare const getContextConfigById: (db: DatabaseClient) => (params: {
|
|
|
2166
2175
|
scopes: GraphScopeConfig;
|
|
2167
2176
|
id: string;
|
|
2168
2177
|
}) => Promise<{
|
|
2169
|
-
|
|
2178
|
+
tenantId: string;
|
|
2179
|
+
projectId: string;
|
|
2170
2180
|
id: string;
|
|
2181
|
+
name: string;
|
|
2182
|
+
description: string;
|
|
2183
|
+
graphId: string;
|
|
2171
2184
|
createdAt: string;
|
|
2172
2185
|
updatedAt: string;
|
|
2173
|
-
projectId: string;
|
|
2174
|
-
tenantId: string;
|
|
2175
|
-
description: string;
|
|
2176
2186
|
requestContextSchema: unknown;
|
|
2177
2187
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
2178
|
-
graphId: string;
|
|
2179
2188
|
} | undefined>;
|
|
2180
2189
|
declare const listContextConfigs: (db: DatabaseClient) => (params: {
|
|
2181
2190
|
scopes: GraphScopeConfig;
|
|
2182
2191
|
}) => Promise<{
|
|
2183
|
-
|
|
2192
|
+
tenantId: string;
|
|
2193
|
+
projectId: string;
|
|
2184
2194
|
id: string;
|
|
2195
|
+
name: string;
|
|
2196
|
+
description: string;
|
|
2197
|
+
graphId: string;
|
|
2185
2198
|
createdAt: string;
|
|
2186
2199
|
updatedAt: string;
|
|
2187
|
-
projectId: string;
|
|
2188
|
-
tenantId: string;
|
|
2189
|
-
description: string;
|
|
2190
2200
|
requestContextSchema: unknown;
|
|
2191
2201
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
2192
|
-
graphId: string;
|
|
2193
2202
|
}[]>;
|
|
2194
2203
|
declare const listContextConfigsPaginated: (db: DatabaseClient) => (params: {
|
|
2195
2204
|
scopes: GraphScopeConfig;
|
|
@@ -2204,32 +2213,32 @@ declare const listContextConfigsPaginated: (db: DatabaseClient) => (params: {
|
|
|
2204
2213
|
};
|
|
2205
2214
|
}>;
|
|
2206
2215
|
declare const createContextConfig: (db: DatabaseClient) => (params: ContextConfigInsert) => Promise<{
|
|
2207
|
-
|
|
2216
|
+
tenantId: string;
|
|
2217
|
+
projectId: string;
|
|
2208
2218
|
id: string;
|
|
2219
|
+
name: string;
|
|
2220
|
+
description: string;
|
|
2221
|
+
graphId: string;
|
|
2209
2222
|
createdAt: string;
|
|
2210
2223
|
updatedAt: string;
|
|
2211
|
-
projectId: string;
|
|
2212
|
-
tenantId: string;
|
|
2213
|
-
description: string;
|
|
2214
2224
|
requestContextSchema: unknown;
|
|
2215
2225
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
2216
|
-
graphId: string;
|
|
2217
2226
|
}>;
|
|
2218
2227
|
declare const updateContextConfig: (db: DatabaseClient) => (params: {
|
|
2219
2228
|
scopes: GraphScopeConfig;
|
|
2220
2229
|
id: string;
|
|
2221
2230
|
data: Partial<ContextConfigUpdate>;
|
|
2222
2231
|
}) => Promise<{
|
|
2223
|
-
|
|
2232
|
+
tenantId: string;
|
|
2233
|
+
projectId: string;
|
|
2224
2234
|
id: string;
|
|
2235
|
+
name: string;
|
|
2236
|
+
description: string;
|
|
2237
|
+
graphId: string;
|
|
2225
2238
|
createdAt: string;
|
|
2226
2239
|
updatedAt: string;
|
|
2227
|
-
projectId: string;
|
|
2228
|
-
tenantId: string;
|
|
2229
|
-
description: string;
|
|
2230
2240
|
requestContextSchema: unknown;
|
|
2231
2241
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
2232
|
-
graphId: string;
|
|
2233
2242
|
}>;
|
|
2234
2243
|
declare const deleteContextConfig: (db: DatabaseClient) => (params: {
|
|
2235
2244
|
scopes: GraphScopeConfig;
|
|
@@ -2246,16 +2255,16 @@ declare const getContextConfigsByName: (db: DatabaseClient) => (params: {
|
|
|
2246
2255
|
scopes: GraphScopeConfig;
|
|
2247
2256
|
name: string;
|
|
2248
2257
|
}) => Promise<{
|
|
2249
|
-
|
|
2258
|
+
tenantId: string;
|
|
2259
|
+
projectId: string;
|
|
2250
2260
|
id: string;
|
|
2261
|
+
name: string;
|
|
2262
|
+
description: string;
|
|
2263
|
+
graphId: string;
|
|
2251
2264
|
createdAt: string;
|
|
2252
2265
|
updatedAt: string;
|
|
2253
|
-
projectId: string;
|
|
2254
|
-
tenantId: string;
|
|
2255
|
-
description: string;
|
|
2256
2266
|
requestContextSchema: unknown;
|
|
2257
2267
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
2258
|
-
graphId: string;
|
|
2259
2268
|
}[]>;
|
|
2260
2269
|
/**
|
|
2261
2270
|
* Upsert a context config (create if it doesn't exist, update if it does)
|
|
@@ -2263,16 +2272,16 @@ declare const getContextConfigsByName: (db: DatabaseClient) => (params: {
|
|
|
2263
2272
|
declare const upsertContextConfig: (db: DatabaseClient) => (params: {
|
|
2264
2273
|
data: ContextConfigInsert;
|
|
2265
2274
|
}) => Promise<{
|
|
2266
|
-
|
|
2275
|
+
tenantId: string;
|
|
2276
|
+
projectId: string;
|
|
2267
2277
|
id: string;
|
|
2278
|
+
name: string;
|
|
2279
|
+
description: string;
|
|
2280
|
+
graphId: string;
|
|
2268
2281
|
createdAt: string;
|
|
2269
2282
|
updatedAt: string;
|
|
2270
|
-
projectId: string;
|
|
2271
|
-
tenantId: string;
|
|
2272
|
-
description: string;
|
|
2273
2283
|
requestContextSchema: unknown;
|
|
2274
2284
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
2275
|
-
graphId: string;
|
|
2276
2285
|
}>;
|
|
2277
2286
|
|
|
2278
2287
|
declare const listConversations: (db: DatabaseClient) => (params: {
|
|
@@ -2284,11 +2293,11 @@ declare const listConversations: (db: DatabaseClient) => (params: {
|
|
|
2284
2293
|
total: number;
|
|
2285
2294
|
}>;
|
|
2286
2295
|
declare const createConversation: (db: DatabaseClient) => (params: ConversationInsert) => Promise<{
|
|
2296
|
+
tenantId: string;
|
|
2297
|
+
projectId: string;
|
|
2287
2298
|
id: string;
|
|
2288
2299
|
createdAt: string;
|
|
2289
2300
|
updatedAt: string;
|
|
2290
|
-
projectId: string;
|
|
2291
|
-
tenantId: string;
|
|
2292
2301
|
title: string | null;
|
|
2293
2302
|
metadata: ConversationMetadata | null;
|
|
2294
2303
|
userId: string | null;
|
|
@@ -2300,11 +2309,11 @@ declare const updateConversation: (db: DatabaseClient) => (params: {
|
|
|
2300
2309
|
conversationId: string;
|
|
2301
2310
|
data: ConversationUpdate;
|
|
2302
2311
|
}) => Promise<{
|
|
2312
|
+
tenantId: string;
|
|
2313
|
+
projectId: string;
|
|
2303
2314
|
id: string;
|
|
2304
2315
|
createdAt: string;
|
|
2305
2316
|
updatedAt: string;
|
|
2306
|
-
projectId: string;
|
|
2307
|
-
tenantId: string;
|
|
2308
2317
|
title: string | null;
|
|
2309
2318
|
metadata: ConversationMetadata | null;
|
|
2310
2319
|
userId: string | null;
|
|
@@ -2320,11 +2329,11 @@ declare const updateConversationActiveAgent: (db: DatabaseClient) => (params: {
|
|
|
2320
2329
|
conversationId: string;
|
|
2321
2330
|
activeAgentId: string;
|
|
2322
2331
|
}) => Promise<{
|
|
2332
|
+
tenantId: string;
|
|
2333
|
+
projectId: string;
|
|
2323
2334
|
id: string;
|
|
2324
2335
|
createdAt: string;
|
|
2325
2336
|
updatedAt: string;
|
|
2326
|
-
projectId: string;
|
|
2327
|
-
tenantId: string;
|
|
2328
2337
|
title: string | null;
|
|
2329
2338
|
metadata: ConversationMetadata | null;
|
|
2330
2339
|
userId: string | null;
|
|
@@ -2335,11 +2344,11 @@ declare const getConversation: (db: DatabaseClient) => (params: {
|
|
|
2335
2344
|
scopes: ProjectScopeConfig;
|
|
2336
2345
|
conversationId: string;
|
|
2337
2346
|
}) => Promise<{
|
|
2347
|
+
tenantId: string;
|
|
2348
|
+
projectId: string;
|
|
2338
2349
|
id: string;
|
|
2339
2350
|
createdAt: string;
|
|
2340
2351
|
updatedAt: string;
|
|
2341
|
-
projectId: string;
|
|
2342
|
-
tenantId: string;
|
|
2343
2352
|
title: string | null;
|
|
2344
2353
|
metadata: ConversationMetadata | null;
|
|
2345
2354
|
userId: string | null;
|
|
@@ -2373,11 +2382,11 @@ declare const getActiveAgentForConversation: (db: DatabaseClient) => (params: {
|
|
|
2373
2382
|
scopes: ProjectScopeConfig;
|
|
2374
2383
|
conversationId: string;
|
|
2375
2384
|
}) => Promise<{
|
|
2385
|
+
tenantId: string;
|
|
2386
|
+
projectId: string;
|
|
2376
2387
|
id: string;
|
|
2377
2388
|
createdAt: string;
|
|
2378
2389
|
updatedAt: string;
|
|
2379
|
-
projectId: string;
|
|
2380
|
-
tenantId: string;
|
|
2381
2390
|
title: string | null;
|
|
2382
2391
|
metadata: ConversationMetadata | null;
|
|
2383
2392
|
userId: string | null;
|
|
@@ -2542,11 +2551,11 @@ declare const associateDataComponentWithAgent: (db: DatabaseClient) => (params:
|
|
|
2542
2551
|
scopes: AgentScopeConfig;
|
|
2543
2552
|
dataComponentId: string;
|
|
2544
2553
|
}) => Promise<{
|
|
2545
|
-
id: string;
|
|
2546
|
-
createdAt: string;
|
|
2547
|
-
projectId: string;
|
|
2548
2554
|
tenantId: string;
|
|
2555
|
+
projectId: string;
|
|
2556
|
+
id: string;
|
|
2549
2557
|
graphId: string;
|
|
2558
|
+
createdAt: string;
|
|
2550
2559
|
agentId: string;
|
|
2551
2560
|
dataComponentId: string;
|
|
2552
2561
|
}>;
|
|
@@ -2584,11 +2593,11 @@ declare const upsertAgentDataComponentRelation: (db: DatabaseClient) => (params:
|
|
|
2584
2593
|
scopes: AgentScopeConfig;
|
|
2585
2594
|
dataComponentId: string;
|
|
2586
2595
|
}) => Promise<{
|
|
2587
|
-
id: string;
|
|
2588
|
-
createdAt: string;
|
|
2589
|
-
projectId: string;
|
|
2590
2596
|
tenantId: string;
|
|
2597
|
+
projectId: string;
|
|
2598
|
+
id: string;
|
|
2591
2599
|
graphId: string;
|
|
2600
|
+
createdAt: string;
|
|
2592
2601
|
agentId: string;
|
|
2593
2602
|
dataComponentId: string;
|
|
2594
2603
|
} | null>;
|
|
@@ -2686,6 +2695,34 @@ declare const countExternalAgents: (db: DatabaseClient) => (params: {
|
|
|
2686
2695
|
scopes: GraphScopeConfig;
|
|
2687
2696
|
}) => Promise<number>;
|
|
2688
2697
|
|
|
2698
|
+
/**
|
|
2699
|
+
* Create or update a function (project-scoped)
|
|
2700
|
+
*/
|
|
2701
|
+
declare const upsertFunction: (db: DatabaseClient) => (params: {
|
|
2702
|
+
data: FunctionApiInsert;
|
|
2703
|
+
scopes: ProjectScopeConfig;
|
|
2704
|
+
}) => Promise<void>;
|
|
2705
|
+
/**
|
|
2706
|
+
* Get a function by ID (project-scoped)
|
|
2707
|
+
*/
|
|
2708
|
+
declare const getFunction: (db: DatabaseClient) => (params: {
|
|
2709
|
+
functionId: string;
|
|
2710
|
+
scopes: ProjectScopeConfig;
|
|
2711
|
+
}) => Promise<FunctionApiInsert | null>;
|
|
2712
|
+
/**
|
|
2713
|
+
* List all functions for a project
|
|
2714
|
+
*/
|
|
2715
|
+
declare const listFunctions: (db: DatabaseClient) => (params: {
|
|
2716
|
+
scopes: ProjectScopeConfig;
|
|
2717
|
+
}) => Promise<FunctionApiInsert[]>;
|
|
2718
|
+
/**
|
|
2719
|
+
* Delete a function (project-scoped)
|
|
2720
|
+
*/
|
|
2721
|
+
declare const deleteFunction: (db: DatabaseClient) => (params: {
|
|
2722
|
+
functionId: string;
|
|
2723
|
+
scopes: ProjectScopeConfig;
|
|
2724
|
+
}) => Promise<void>;
|
|
2725
|
+
|
|
2689
2726
|
interface GraphLogger {
|
|
2690
2727
|
info(obj: Record<string, any>, msg?: string): void;
|
|
2691
2728
|
error(obj: Record<string, any>, msg?: string): void;
|
|
@@ -2779,11 +2816,11 @@ declare const getMessageById: (db: DatabaseClient) => (params: {
|
|
|
2779
2816
|
scopes: ProjectScopeConfig;
|
|
2780
2817
|
messageId: string;
|
|
2781
2818
|
}) => Promise<{
|
|
2819
|
+
tenantId: string;
|
|
2820
|
+
projectId: string;
|
|
2782
2821
|
id: string;
|
|
2783
2822
|
createdAt: string;
|
|
2784
2823
|
updatedAt: string;
|
|
2785
|
-
projectId: string;
|
|
2786
|
-
tenantId: string;
|
|
2787
2824
|
metadata: MessageMetadata | null;
|
|
2788
2825
|
content: MessageContent;
|
|
2789
2826
|
conversationId: string;
|
|
@@ -2905,11 +2942,11 @@ declare const getVisibleMessages: (db: DatabaseClient) => (params: {
|
|
|
2905
2942
|
id: string;
|
|
2906
2943
|
}[]>;
|
|
2907
2944
|
declare const createMessage: (db: DatabaseClient) => (params: MessageInsert) => Promise<{
|
|
2945
|
+
tenantId: string;
|
|
2946
|
+
projectId: string;
|
|
2908
2947
|
id: string;
|
|
2909
2948
|
createdAt: string;
|
|
2910
2949
|
updatedAt: string;
|
|
2911
|
-
projectId: string;
|
|
2912
|
-
tenantId: string;
|
|
2913
2950
|
metadata: MessageMetadata | null;
|
|
2914
2951
|
content: MessageContent;
|
|
2915
2952
|
conversationId: string;
|
|
@@ -2931,11 +2968,11 @@ declare const updateMessage: (db: DatabaseClient) => (params: {
|
|
|
2931
2968
|
messageId: string;
|
|
2932
2969
|
data: MessageUpdate;
|
|
2933
2970
|
}) => Promise<{
|
|
2971
|
+
tenantId: string;
|
|
2972
|
+
projectId: string;
|
|
2934
2973
|
id: string;
|
|
2935
2974
|
createdAt: string;
|
|
2936
2975
|
updatedAt: string;
|
|
2937
|
-
projectId: string;
|
|
2938
|
-
tenantId: string;
|
|
2939
2976
|
metadata: MessageMetadata | null;
|
|
2940
2977
|
content: MessageContent;
|
|
2941
2978
|
conversationId: string;
|
|
@@ -2956,11 +2993,11 @@ declare const deleteMessage: (db: DatabaseClient) => (params: {
|
|
|
2956
2993
|
scopes: ProjectScopeConfig;
|
|
2957
2994
|
messageId: string;
|
|
2958
2995
|
}) => Promise<{
|
|
2996
|
+
tenantId: string;
|
|
2997
|
+
projectId: string;
|
|
2959
2998
|
id: string;
|
|
2960
2999
|
createdAt: string;
|
|
2961
3000
|
updatedAt: string;
|
|
2962
|
-
projectId: string;
|
|
2963
|
-
tenantId: string;
|
|
2964
3001
|
metadata: MessageMetadata | null;
|
|
2965
3002
|
content: MessageContent;
|
|
2966
3003
|
conversationId: string;
|
|
@@ -3077,12 +3114,12 @@ declare const deleteProject: (db: DatabaseClient) => (params: {
|
|
|
3077
3114
|
}) => Promise<boolean>;
|
|
3078
3115
|
|
|
3079
3116
|
declare const createTask: (db: DatabaseClient) => (params: TaskInsert) => Promise<{
|
|
3117
|
+
tenantId: string;
|
|
3118
|
+
projectId: string;
|
|
3080
3119
|
id: string;
|
|
3120
|
+
graphId: string;
|
|
3081
3121
|
createdAt: string;
|
|
3082
3122
|
updatedAt: string;
|
|
3083
|
-
projectId: string;
|
|
3084
|
-
tenantId: string;
|
|
3085
|
-
graphId: string;
|
|
3086
3123
|
status: string;
|
|
3087
3124
|
metadata: TaskMetadataConfig | null;
|
|
3088
3125
|
contextId: string;
|
|
@@ -3098,12 +3135,12 @@ declare const updateTask: (db: DatabaseClient) => (params: {
|
|
|
3098
3135
|
metadata?: any;
|
|
3099
3136
|
};
|
|
3100
3137
|
}) => Promise<{
|
|
3138
|
+
tenantId: string;
|
|
3139
|
+
projectId: string;
|
|
3101
3140
|
id: string;
|
|
3141
|
+
graphId: string;
|
|
3102
3142
|
createdAt: string;
|
|
3103
3143
|
updatedAt: string;
|
|
3104
|
-
projectId: string;
|
|
3105
|
-
tenantId: string;
|
|
3106
|
-
graphId: string;
|
|
3107
3144
|
status: string;
|
|
3108
3145
|
metadata: TaskMetadataConfig | null;
|
|
3109
3146
|
contextId: string;
|
|
@@ -3118,19 +3155,28 @@ declare const getToolById: (db: DatabaseClient) => (params: {
|
|
|
3118
3155
|
scopes: ProjectScopeConfig;
|
|
3119
3156
|
toolId: string;
|
|
3120
3157
|
}) => Promise<{
|
|
3121
|
-
name: string;
|
|
3122
|
-
headers: Record<string, string> | null;
|
|
3123
|
-
id: string;
|
|
3124
|
-
createdAt: string;
|
|
3125
|
-
updatedAt: string;
|
|
3126
|
-
projectId: string;
|
|
3127
3158
|
tenantId: string;
|
|
3128
|
-
|
|
3129
|
-
|
|
3159
|
+
projectId: string;
|
|
3160
|
+
id: string;
|
|
3161
|
+
name: string;
|
|
3162
|
+
description: string | null;
|
|
3130
3163
|
config: {
|
|
3131
3164
|
type: "mcp";
|
|
3132
3165
|
mcp: ToolMcpConfig;
|
|
3166
|
+
} | {
|
|
3167
|
+
type: "function";
|
|
3168
|
+
function?: {
|
|
3169
|
+
inputSchema: Record<string, unknown>;
|
|
3170
|
+
executeCode: string;
|
|
3171
|
+
dependencies: Record<string, unknown>;
|
|
3172
|
+
};
|
|
3133
3173
|
};
|
|
3174
|
+
credentialReferenceId: string | null;
|
|
3175
|
+
createdAt: string;
|
|
3176
|
+
updatedAt: string;
|
|
3177
|
+
headers: Record<string, string> | null;
|
|
3178
|
+
capabilities: ToolServerCapabilities | null;
|
|
3179
|
+
functionId: string | null;
|
|
3134
3180
|
imageUrl: string | null;
|
|
3135
3181
|
lastError: string | null;
|
|
3136
3182
|
} | null>;
|
|
@@ -3142,10 +3188,19 @@ declare const listTools: (db: DatabaseClient) => (params: {
|
|
|
3142
3188
|
createdAt: string;
|
|
3143
3189
|
updatedAt: string;
|
|
3144
3190
|
name: string;
|
|
3191
|
+
description: string | null;
|
|
3145
3192
|
config: {
|
|
3146
3193
|
type: "mcp";
|
|
3147
3194
|
mcp: ToolMcpConfig;
|
|
3195
|
+
} | {
|
|
3196
|
+
type: "function";
|
|
3197
|
+
function?: {
|
|
3198
|
+
inputSchema: Record<string, unknown>;
|
|
3199
|
+
executeCode: string;
|
|
3200
|
+
dependencies: Record<string, unknown>;
|
|
3201
|
+
};
|
|
3148
3202
|
};
|
|
3203
|
+
functionId: string | null;
|
|
3149
3204
|
credentialReferenceId: string | null;
|
|
3150
3205
|
headers: Record<string, string> | null;
|
|
3151
3206
|
imageUrl: string | null;
|
|
@@ -3163,19 +3218,28 @@ declare const listTools: (db: DatabaseClient) => (params: {
|
|
|
3163
3218
|
};
|
|
3164
3219
|
}>;
|
|
3165
3220
|
declare const createTool: (db: DatabaseClient) => (params: ToolInsert) => Promise<{
|
|
3166
|
-
name: string;
|
|
3167
|
-
headers: Record<string, string> | null;
|
|
3168
|
-
id: string;
|
|
3169
|
-
createdAt: string;
|
|
3170
|
-
updatedAt: string;
|
|
3171
|
-
projectId: string;
|
|
3172
3221
|
tenantId: string;
|
|
3173
|
-
|
|
3174
|
-
|
|
3222
|
+
projectId: string;
|
|
3223
|
+
id: string;
|
|
3224
|
+
name: string;
|
|
3225
|
+
description: string | null;
|
|
3175
3226
|
config: {
|
|
3176
3227
|
type: "mcp";
|
|
3177
3228
|
mcp: ToolMcpConfig;
|
|
3229
|
+
} | {
|
|
3230
|
+
type: "function";
|
|
3231
|
+
function?: {
|
|
3232
|
+
inputSchema: Record<string, unknown>;
|
|
3233
|
+
executeCode: string;
|
|
3234
|
+
dependencies: Record<string, unknown>;
|
|
3235
|
+
};
|
|
3178
3236
|
};
|
|
3237
|
+
credentialReferenceId: string | null;
|
|
3238
|
+
createdAt: string;
|
|
3239
|
+
updatedAt: string;
|
|
3240
|
+
headers: Record<string, string> | null;
|
|
3241
|
+
capabilities: ToolServerCapabilities | null;
|
|
3242
|
+
functionId: string | null;
|
|
3179
3243
|
imageUrl: string | null;
|
|
3180
3244
|
lastError: string | null;
|
|
3181
3245
|
}>;
|
|
@@ -3184,19 +3248,28 @@ declare const updateTool: (db: DatabaseClient) => (params: {
|
|
|
3184
3248
|
toolId: string;
|
|
3185
3249
|
data: ToolUpdate;
|
|
3186
3250
|
}) => Promise<{
|
|
3187
|
-
name: string;
|
|
3188
|
-
headers: Record<string, string> | null;
|
|
3189
|
-
id: string;
|
|
3190
|
-
createdAt: string;
|
|
3191
|
-
updatedAt: string;
|
|
3192
|
-
projectId: string;
|
|
3193
3251
|
tenantId: string;
|
|
3194
|
-
|
|
3195
|
-
|
|
3252
|
+
projectId: string;
|
|
3253
|
+
id: string;
|
|
3254
|
+
name: string;
|
|
3255
|
+
description: string | null;
|
|
3196
3256
|
config: {
|
|
3197
3257
|
type: "mcp";
|
|
3198
3258
|
mcp: ToolMcpConfig;
|
|
3259
|
+
} | {
|
|
3260
|
+
type: "function";
|
|
3261
|
+
function?: {
|
|
3262
|
+
inputSchema: Record<string, unknown>;
|
|
3263
|
+
executeCode: string;
|
|
3264
|
+
dependencies: Record<string, unknown>;
|
|
3265
|
+
};
|
|
3199
3266
|
};
|
|
3267
|
+
credentialReferenceId: string | null;
|
|
3268
|
+
createdAt: string;
|
|
3269
|
+
updatedAt: string;
|
|
3270
|
+
headers: Record<string, string> | null;
|
|
3271
|
+
capabilities: ToolServerCapabilities | null;
|
|
3272
|
+
functionId: string | null;
|
|
3200
3273
|
imageUrl: string | null;
|
|
3201
3274
|
lastError: string | null;
|
|
3202
3275
|
}>;
|
|
@@ -3211,32 +3284,32 @@ declare const addToolToAgent: (db: DatabaseClient) => (params: {
|
|
|
3211
3284
|
selectedTools?: string[] | null;
|
|
3212
3285
|
headers?: Record<string, string> | null;
|
|
3213
3286
|
}) => Promise<{
|
|
3214
|
-
|
|
3287
|
+
tenantId: string;
|
|
3288
|
+
projectId: string;
|
|
3215
3289
|
id: string;
|
|
3290
|
+
graphId: string;
|
|
3216
3291
|
createdAt: string;
|
|
3217
3292
|
updatedAt: string;
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
graphId: string;
|
|
3293
|
+
headers: Record<string, string> | null;
|
|
3294
|
+
toolId: string;
|
|
3221
3295
|
selectedTools: string[] | null;
|
|
3222
3296
|
agentId: string;
|
|
3223
|
-
toolId: string;
|
|
3224
3297
|
}>;
|
|
3225
3298
|
declare const removeToolFromAgent: (db: DatabaseClient) => (params: {
|
|
3226
3299
|
scopes: GraphScopeConfig;
|
|
3227
3300
|
agentId: string;
|
|
3228
3301
|
toolId: string;
|
|
3229
3302
|
}) => Promise<{
|
|
3230
|
-
|
|
3303
|
+
tenantId: string;
|
|
3304
|
+
projectId: string;
|
|
3231
3305
|
id: string;
|
|
3306
|
+
graphId: string;
|
|
3232
3307
|
createdAt: string;
|
|
3233
3308
|
updatedAt: string;
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
graphId: string;
|
|
3309
|
+
headers: Record<string, string> | null;
|
|
3310
|
+
toolId: string;
|
|
3237
3311
|
selectedTools: string[] | null;
|
|
3238
3312
|
agentId: string;
|
|
3239
|
-
toolId: string;
|
|
3240
3313
|
}>;
|
|
3241
3314
|
/**
|
|
3242
3315
|
* Upsert agent-tool relation (create if it doesn't exist, update if it does)
|
|
@@ -3249,16 +3322,16 @@ declare const upsertAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
|
3249
3322
|
headers?: Record<string, string> | null;
|
|
3250
3323
|
relationId?: string;
|
|
3251
3324
|
}) => Promise<{
|
|
3252
|
-
|
|
3325
|
+
tenantId: string;
|
|
3326
|
+
projectId: string;
|
|
3253
3327
|
id: string;
|
|
3328
|
+
graphId: string;
|
|
3254
3329
|
createdAt: string;
|
|
3255
3330
|
updatedAt: string;
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
graphId: string;
|
|
3331
|
+
headers: Record<string, string> | null;
|
|
3332
|
+
toolId: string;
|
|
3259
3333
|
selectedTools: string[] | null;
|
|
3260
3334
|
agentId: string;
|
|
3261
|
-
toolId: string;
|
|
3262
3335
|
}>;
|
|
3263
3336
|
/**
|
|
3264
3337
|
* Upsert a tool (create if it doesn't exist, update if it does)
|
|
@@ -3266,19 +3339,28 @@ declare const upsertAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
|
3266
3339
|
declare const upsertTool: (db: DatabaseClient) => (params: {
|
|
3267
3340
|
data: ToolInsert;
|
|
3268
3341
|
}) => Promise<{
|
|
3269
|
-
name: string;
|
|
3270
|
-
headers: Record<string, string> | null;
|
|
3271
|
-
id: string;
|
|
3272
|
-
createdAt: string;
|
|
3273
|
-
updatedAt: string;
|
|
3274
|
-
projectId: string;
|
|
3275
3342
|
tenantId: string;
|
|
3276
|
-
|
|
3277
|
-
|
|
3343
|
+
projectId: string;
|
|
3344
|
+
id: string;
|
|
3345
|
+
name: string;
|
|
3346
|
+
description: string | null;
|
|
3278
3347
|
config: {
|
|
3279
3348
|
type: "mcp";
|
|
3280
3349
|
mcp: ToolMcpConfig;
|
|
3350
|
+
} | {
|
|
3351
|
+
type: "function";
|
|
3352
|
+
function?: {
|
|
3353
|
+
inputSchema: Record<string, unknown>;
|
|
3354
|
+
executeCode: string;
|
|
3355
|
+
dependencies: Record<string, unknown>;
|
|
3356
|
+
};
|
|
3281
3357
|
};
|
|
3358
|
+
credentialReferenceId: string | null;
|
|
3359
|
+
createdAt: string;
|
|
3360
|
+
updatedAt: string;
|
|
3361
|
+
headers: Record<string, string> | null;
|
|
3362
|
+
capabilities: ToolServerCapabilities | null;
|
|
3363
|
+
functionId: string | null;
|
|
3282
3364
|
imageUrl: string | null;
|
|
3283
3365
|
lastError: string | null;
|
|
3284
3366
|
}>;
|
|
@@ -3981,4 +4063,4 @@ declare function setSpanWithError(span: Span, error: Error, logger?: {
|
|
|
3981
4063
|
*/
|
|
3982
4064
|
declare function getTracer(serviceName: string, serviceVersion?: string): Tracer;
|
|
3983
4065
|
|
|
3984
|
-
export { AgentGraphInsert, AgentGraphUpdate, AgentInsert, AgentRelationInsert, AgentRelationUpdate, AgentScopeConfig, AgentSelect, AgentToolRelationUpdate, AgentUpdate, ApiKeyCreateResult, type ApiKeyGenerationResult, ApiKeyInsert, ApiKeySelect, ApiKeyUpdate, Artifact, ArtifactComponentInsert, ArtifactComponentSelect, ArtifactComponentUpdate, type CommonCreateErrorResponses, type CommonDeleteErrorResponses, type CommonGetErrorResponses, type CommonUpdateErrorResponses, ContextCache, ContextCacheInsert, ContextCacheSelect, ContextConfigBuilder, type ContextConfigBuilderOptions, ContextConfigInsert, ContextConfigSelect, ContextConfigUpdate, ContextFetchDefinition, ContextFetcher, type ContextResolutionOptions, type ContextResolutionResult, ContextResolver, type ContextResolverInterface, type ContextValidationError, type ContextValidationResult, ConversationHistoryConfig, ConversationInsert, ConversationMetadata, ConversationSelect, ConversationUpdate, CreateApiKeyParams, type CredentialContext, type CredentialData, CredentialReferenceApiInsert, CredentialReferenceInsert, CredentialReferenceSelect, CredentialReferenceUpdate, type CredentialReferenceWithTools, type CredentialResolverInput, CredentialStore, type CredentialStoreReference, CredentialStoreRegistry, CredentialStoreType, CredentialStuffer, DataComponentInsert, DataComponentSelect, DataComponentUpdate, type DatabaseClient, type DatabaseConfig, type DotPaths, ERROR_DOCS_BASE_URL, ErrorCode, type ErrorCodes, type ErrorResponse, ExecutionContext, ExternalAgentInsert, ExternalAgentRelationInsert, ExternalAgentSelect, ExternalAgentUpdate, type FetchResult, FullGraphDefinition, FullProjectDefinition, type GraphLogger, GraphScopeConfig, HTTP_REQUEST_PARTS, type HttpRequestPart, InMemoryCredentialStore, KeyChainStore, LedgerArtifactSelect, type LoggerFactoryConfig, MCPToolConfig, MCPTransportType, McpClient, type McpClientOptions, type McpSSEConfig, type McpServerConfig, type McpStreamableHttpConfig, McpTool, MessageContent, MessageInsert, MessageMetadata, MessageUpdate, MessageVisibility, NangoCredentialStore, type OAuthConfig, PaginationConfig, PaginationResult, type ParsedHttpRequest, PinoLogger, type PinoLoggerConfig, type ProblemDetails, ProjectInfo, ProjectInsert, type ProjectLogger, ProjectResourceCounts, ProjectScopeConfig, ProjectSelect, ProjectUpdate, type ResolvedContext, TaskInsert, TaskMetadataConfig, TaskSelect, type TemplateContext, TemplateEngine, type TemplateRenderOptions, ToolInsert, ToolMcpConfig, ToolSelect, ToolServerCapabilities, ToolUpdate, addLedgerArtifacts, addToolToAgent, apiFetch, associateArtifactComponentWithAgent, associateDataComponentWithAgent, cleanupTenantCache, clearContextConfigCache, clearConversationCache, commonCreateErrorResponses, commonDeleteErrorResponses, commonGetErrorResponses, commonUpdateErrorResponses, contextConfig, contextValidationMiddleware, countApiKeys, countArtifactComponents, countArtifactComponentsForAgent, countContextConfigs, countCredentialReferences, countDataComponents, countExternalAgents, countLedgerArtifactsByTask, countMessagesByConversation, countProjects, createAgent, createAgentGraph, createAgentRelation, createAgentToolRelation, createApiError, createApiKey, createArtifactComponent, createContextConfig, createConversation, createCredentialReference, createDataComponent, createDatabaseClient, createDefaultCredentialStores, createExecutionContext, createExternalAgent, createExternalAgentRelation, createFullGraphServerSide, createFullProjectServerSide, createInMemoryDatabaseClient, createKeyChainStore, createMessage, createNangoCredentialStore, createOrGetConversation, createProject, createTask, createTool, createValidatedDataAccess, dbResultToMcpTool, deleteAgent, deleteAgentArtifactComponentRelationByAgent, deleteAgentDataComponentRelationByAgent, deleteAgentGraph, deleteAgentRelation, deleteAgentRelationsByGraph, deleteAgentToolRelation, deleteAgentToolRelationByAgent, deleteApiKey, deleteArtifactComponent, deleteContextConfig, deleteConversation, deleteCredentialReference, deleteDataComponent, deleteExternalAgent, deleteFullGraph, deleteFullProject, deleteLedgerArtifactsByContext, deleteLedgerArtifactsByTask, deleteMessage, deleteProject, deleteTool, detectAuthenticationRequired, determineContextTrigger, discoverOAuthEndpoints, errorResponseSchema, errorSchemaFactory, externalAgentExists, externalAgentUrlExists, extractPublicId, fetchComponentRelationships, fetchDefinition, generateAndCreateApiKey, generateApiKey, getActiveAgentForConversation, getAgentById, getAgentGraphById, getAgentGraphWithDefaultAgent, getAgentRelationById, getAgentRelationByParams, getAgentRelations, getAgentRelationsByGraph, getAgentRelationsBySource, getAgentRelationsByTarget, getAgentToolRelationByAgent, getAgentToolRelationById, getAgentToolRelationByTool, getAgentsByIds, getAgentsForTool, getAgentsUsingArtifactComponent, getAgentsUsingDataComponent, getApiKeyById, getApiKeyByPublicId, getArtifactComponentById, getArtifactComponentsForAgent, getCacheEntry, getCachedValidator, getContextConfigById, getContextConfigCacheEntries, getContextConfigsByName, getConversation, getConversationCacheEntries, getConversationHistory, getConversationId, getCredentialReference, getCredentialReferenceById, getCredentialReferenceWithTools, getCredentialStoreLookupKeyFromRetrievalParams, getDataComponent, getDataComponentsForAgent, getExternalAgent, getExternalAgentByUrl, getExternalAgentRelations, getFullGraph, getFullGraphDefinition, getFullProject, getGraphAgentInfos, getLedgerArtifacts, getLedgerArtifactsByContext, getLogger, getMessageById, getMessagesByConversation, getMessagesByTask, getProject, getProjectResourceCounts, getRelatedAgentsForGraph, getRequestExecutionContext, getTask, getToolById, getToolsForAgent, getTracer, getVisibleMessages, graphHasArtifactComponents, handleApiError, handleContextConfigChange, handleContextResolution, hasApiKey, hasContextConfig, hasCredentialReference, hashApiKey, invalidateInvocationDefinitionsCache, invalidateRequestContextCache, isApiKeyExpired, isArtifactComponentAssociatedWithAgent, isDataComponentAssociatedWithAgent, isValidHttpRequest, listAgentGraphs, listAgentGraphsPaginated, listAgentRelations, listAgentToolRelations, listAgents, listAgentsPaginated, listApiKeys, listApiKeysPaginated, listArtifactComponents, listArtifactComponentsPaginated, listContextConfigs, listContextConfigsPaginated, listConversations, listCredentialReferences, listCredentialReferencesPaginated, listDataComponents, listDataComponentsPaginated, listExternalAgents, listExternalAgentsPaginated, listMessages, listProjects, listProjectsPaginated, listTaskIdsByContextId, listTools, loadEnvironmentFiles, loggerFactory, maskApiKey, problemDetailsSchema, projectExists, projectExistsInTable, projectHasResources, removeArtifactComponentFromAgent, removeDataComponentFromAgent, removeToolFromAgent, requestContextSchema, setActiveAgentForConversation, setActiveAgentForThread, setCacheEntry, setSpanWithError, updateAgent, updateAgentGraph, updateAgentRelation, updateAgentToolRelation, updateApiKey, updateApiKeyLastUsed, updateArtifactComponent, updateContextConfig, updateConversation, updateConversationActiveAgent, updateCredentialReference, updateDataComponent, updateExternalAgent, updateFullGraphServerSide, updateFullProjectServerSide, updateMessage, updateProject, updateTask, updateTool, upsertAgent, upsertAgentArtifactComponentRelation, upsertAgentDataComponentRelation, upsertAgentGraph, upsertAgentRelation, upsertAgentToolRelation, upsertArtifactComponent, upsertContextConfig, upsertCredentialReference, upsertDataComponent, upsertExternalAgent, upsertLedgerArtifact, upsertTool, validateAgainstJsonSchema, validateAndGetApiKey, validateApiKey, validateExternalAgent, validateHttpRequestHeaders, validateInternalAgent, validateProjectExists, validateRequestContext, validationHelper, withProjectValidation };
|
|
4066
|
+
export { AgentGraphInsert, AgentGraphUpdate, AgentInsert, AgentRelationInsert, AgentRelationUpdate, AgentScopeConfig, AgentSelect, AgentToolRelationUpdate, AgentUpdate, ApiKeyCreateResult, type ApiKeyGenerationResult, ApiKeyInsert, ApiKeySelect, ApiKeyUpdate, Artifact, ArtifactComponentInsert, ArtifactComponentSelect, ArtifactComponentUpdate, type CommonCreateErrorResponses, type CommonDeleteErrorResponses, type CommonGetErrorResponses, type CommonUpdateErrorResponses, ContextCache, ContextCacheInsert, ContextCacheSelect, ContextConfigBuilder, type ContextConfigBuilderOptions, ContextConfigInsert, ContextConfigSelect, ContextConfigUpdate, ContextFetchDefinition, ContextFetcher, type ContextResolutionOptions, type ContextResolutionResult, ContextResolver, type ContextResolverInterface, type ContextValidationError, type ContextValidationResult, ConversationHistoryConfig, ConversationInsert, ConversationMetadata, ConversationSelect, ConversationUpdate, CreateApiKeyParams, type CredentialContext, type CredentialData, CredentialReferenceApiInsert, CredentialReferenceInsert, CredentialReferenceSelect, CredentialReferenceUpdate, type CredentialReferenceWithTools, type CredentialResolverInput, CredentialStore, type CredentialStoreReference, CredentialStoreRegistry, CredentialStoreType, CredentialStuffer, DataComponentInsert, DataComponentSelect, DataComponentUpdate, type DatabaseClient, type DatabaseConfig, type DotPaths, ERROR_DOCS_BASE_URL, ErrorCode, type ErrorCodes, type ErrorResponse, ExecutionContext, ExternalAgentInsert, ExternalAgentRelationInsert, ExternalAgentSelect, ExternalAgentUpdate, type FetchResult, FullGraphDefinition, FullProjectDefinition, FunctionApiInsert, type GraphLogger, GraphScopeConfig, HTTP_REQUEST_PARTS, type HttpRequestPart, InMemoryCredentialStore, KeyChainStore, LedgerArtifactSelect, type LoggerFactoryConfig, MCPToolConfig, MCPTransportType, McpClient, type McpClientOptions, type McpSSEConfig, type McpServerConfig, type McpStreamableHttpConfig, McpTool, MessageContent, MessageInsert, MessageMetadata, MessageUpdate, MessageVisibility, NangoCredentialStore, type OAuthConfig, PaginationConfig, PaginationResult, type ParsedHttpRequest, PinoLogger, type PinoLoggerConfig, type ProblemDetails, ProjectInfo, ProjectInsert, type ProjectLogger, ProjectResourceCounts, ProjectScopeConfig, ProjectSelect, ProjectUpdate, type ResolvedContext, TaskInsert, TaskMetadataConfig, TaskSelect, type TemplateContext, TemplateEngine, type TemplateRenderOptions, ToolInsert, ToolMcpConfig, ToolSelect, ToolServerCapabilities, ToolUpdate, addLedgerArtifacts, addToolToAgent, apiFetch, associateArtifactComponentWithAgent, associateDataComponentWithAgent, cleanupTenantCache, clearContextConfigCache, clearConversationCache, commonCreateErrorResponses, commonDeleteErrorResponses, commonGetErrorResponses, commonUpdateErrorResponses, contextConfig, contextValidationMiddleware, countApiKeys, countArtifactComponents, countArtifactComponentsForAgent, countContextConfigs, countCredentialReferences, countDataComponents, countExternalAgents, countLedgerArtifactsByTask, countMessagesByConversation, countProjects, createAgent, createAgentGraph, createAgentRelation, createAgentToolRelation, createApiError, createApiKey, createArtifactComponent, createContextConfig, createConversation, createCredentialReference, createDataComponent, createDatabaseClient, createDefaultCredentialStores, createExecutionContext, createExternalAgent, createExternalAgentRelation, createFullGraphServerSide, createFullProjectServerSide, createInMemoryDatabaseClient, createKeyChainStore, createMessage, createNangoCredentialStore, createOrGetConversation, createProject, createTask, createTool, createValidatedDataAccess, dbResultToMcpTool, deleteAgent, deleteAgentArtifactComponentRelationByAgent, deleteAgentDataComponentRelationByAgent, deleteAgentGraph, deleteAgentRelation, deleteAgentRelationsByGraph, deleteAgentToolRelation, deleteAgentToolRelationByAgent, deleteApiKey, deleteArtifactComponent, deleteContextConfig, deleteConversation, deleteCredentialReference, deleteDataComponent, deleteExternalAgent, deleteFullGraph, deleteFullProject, deleteFunction, deleteLedgerArtifactsByContext, deleteLedgerArtifactsByTask, deleteMessage, deleteProject, deleteTool, detectAuthenticationRequired, determineContextTrigger, discoverOAuthEndpoints, errorResponseSchema, errorSchemaFactory, externalAgentExists, externalAgentUrlExists, extractPublicId, fetchComponentRelationships, fetchDefinition, generateAndCreateApiKey, generateApiKey, getActiveAgentForConversation, getAgentById, getAgentGraphById, getAgentGraphWithDefaultAgent, getAgentRelationById, getAgentRelationByParams, getAgentRelations, getAgentRelationsByGraph, getAgentRelationsBySource, getAgentRelationsByTarget, getAgentToolRelationByAgent, getAgentToolRelationById, getAgentToolRelationByTool, getAgentsByIds, getAgentsForTool, getAgentsUsingArtifactComponent, getAgentsUsingDataComponent, getApiKeyById, getApiKeyByPublicId, getArtifactComponentById, getArtifactComponentsForAgent, getCacheEntry, getCachedValidator, getContextConfigById, getContextConfigCacheEntries, getContextConfigsByName, getConversation, getConversationCacheEntries, getConversationHistory, getConversationId, getCredentialReference, getCredentialReferenceById, getCredentialReferenceWithTools, getCredentialStoreLookupKeyFromRetrievalParams, getDataComponent, getDataComponentsForAgent, getExternalAgent, getExternalAgentByUrl, getExternalAgentRelations, getFullGraph, getFullGraphDefinition, getFullProject, getFunction, getGraphAgentInfos, getLedgerArtifacts, getLedgerArtifactsByContext, getLogger, getMessageById, getMessagesByConversation, getMessagesByTask, getProject, getProjectResourceCounts, getRelatedAgentsForGraph, getRequestExecutionContext, getTask, getToolById, getToolsForAgent, getTracer, getVisibleMessages, graphHasArtifactComponents, handleApiError, handleContextConfigChange, handleContextResolution, hasApiKey, hasContextConfig, hasCredentialReference, hashApiKey, invalidateInvocationDefinitionsCache, invalidateRequestContextCache, isApiKeyExpired, isArtifactComponentAssociatedWithAgent, isDataComponentAssociatedWithAgent, isValidHttpRequest, listAgentGraphs, listAgentGraphsPaginated, listAgentRelations, listAgentToolRelations, listAgents, listAgentsPaginated, listApiKeys, listApiKeysPaginated, listArtifactComponents, listArtifactComponentsPaginated, listContextConfigs, listContextConfigsPaginated, listConversations, listCredentialReferences, listCredentialReferencesPaginated, listDataComponents, listDataComponentsPaginated, listExternalAgents, listExternalAgentsPaginated, listFunctions, listMessages, listProjects, listProjectsPaginated, listTaskIdsByContextId, listTools, loadEnvironmentFiles, loggerFactory, maskApiKey, problemDetailsSchema, projectExists, projectExistsInTable, projectHasResources, removeArtifactComponentFromAgent, removeDataComponentFromAgent, removeToolFromAgent, requestContextSchema, setActiveAgentForConversation, setActiveAgentForThread, setCacheEntry, setSpanWithError, updateAgent, updateAgentGraph, updateAgentRelation, updateAgentToolRelation, updateApiKey, updateApiKeyLastUsed, updateArtifactComponent, updateContextConfig, updateConversation, updateConversationActiveAgent, updateCredentialReference, updateDataComponent, updateExternalAgent, updateFullGraphServerSide, updateFullProjectServerSide, updateMessage, updateProject, updateTask, updateTool, upsertAgent, upsertAgentArtifactComponentRelation, upsertAgentDataComponentRelation, upsertAgentGraph, upsertAgentRelation, upsertAgentToolRelation, upsertArtifactComponent, upsertContextConfig, upsertCredentialReference, upsertDataComponent, upsertExternalAgent, upsertFunction, upsertLedgerArtifact, upsertTool, validateAgainstJsonSchema, validateAndGetApiKey, validateApiKey, validateExternalAgent, validateHttpRequestHeaders, validateInternalAgent, validateProjectExists, validateRequestContext, validationHelper, withProjectValidation };
|